{"version":3,"file":"Dg8YxLUt.js","sources":["../../../../node_modules/vuetify/lib/composables/ssrBoot.mjs","../../../../store/map-settings/map-settings.ts"],"sourcesContent":["// Utilities\nimport { computed, onMounted, readonly, shallowRef } from 'vue';\n\n// Composables\nexport function useSsrBoot() {\n const isBooted = shallowRef(false);\n onMounted(() => {\n window.requestAnimationFrame(() => {\n isBooted.value = true;\n });\n });\n const ssrBootStyles = computed(() => !isBooted.value ? {\n transition: 'none !important'\n } : undefined);\n return {\n ssrBootStyles,\n isBooted: readonly(isBooted)\n };\n}\n//# sourceMappingURL=ssrBoot.mjs.map","import { defineStore } from 'pinia'\nimport { StoreId } from '@/store'\n\n/* Types */\nimport { MapSettingsState } from '@/store/map-settings/map-settings.types'\nimport { MapSettings } from '@/store/city/city.types'\nimport { Success } from '@/api/results'\n\nconst defaultState: MapSettingsState = {\n mapSettings: {\n service_settings: {\n api_key: '',\n coords: [0, 0],\n zoom: 16,\n provider: '',\n },\n geocode_settings: {\n api_key: '',\n provider: '',\n },\n suggestion_settings: {\n api_key: '',\n provider: '',\n },\n },\n}\n\nexport const useMapSettingsStore = defineStore({\n id: StoreId.MAP_SETTINGS,\n state: (): MapSettingsState => defaultState,\n actions: {\n setMapSettings(mapSettings: MapSettings | null) {\n this.mapSettings = mapSettings || this.mapSettings\n },\n async fetchMapSettings() {\n const { $apiService } = useNuxtApp()\n\n const result = await $apiService.city.fetchMapSettings()\n\n if (result instanceof Success) {\n this.setMapSettings(result.data)\n }\n },\n },\n getters: {\n mapProviderName: ({ mapSettings }) =>\n mapSettings?.service_settings?.provider,\n mapProviderApiKey: ({ mapSettings }) =>\n mapSettings?.service_settings?.api_key,\n suggestionProviderApiKey: ({ mapSettings }) =>\n mapSettings?.suggestion_settings?.api_key,\n suggestionProviderName: ({ mapSettings }) =>\n mapSettings?.suggestion_settings?.provider,\n getCoords: ({ mapSettings }) => {\n return {\n longitude: mapSettings?.service_settings?.coords[1],\n latitude: mapSettings?.service_settings?.coords[0],\n }\n },\n zoom: ({ mapSettings }) => mapSettings?.service_settings?.zoom,\n },\n})\n"],"names":["useSsrBoot","isBooted","shallowRef","onMounted","computed","readonly","defaultState","useMapSettingsStore","defineStore","StoreId","mapSettings","$apiService","useNuxtApp","result","Success","_a","_b"],"mappings":";;uYAIO,SAASA,GAAa,CAC3B,MAAMC,EAAWC,EAAW,EAAK,EACjC,OAAAC,EAAU,IAAM,CACd,OAAO,sBAAsB,IAAM,CACjCF,EAAS,MAAQ,EACvB,CAAK,CACL,CAAG,EAIM,CACL,cAJoBG,EAAS,IAAOH,EAAS,MAE3C,OAFmD,CACrD,WAAY,iBACb,CAAY,EAGX,SAAUI,EAASJ,CAAQ,CAC/B,CACA,CCVA,MAAMK,EAAiC,CACrC,YAAa,CACX,iBAAkB,CAChB,QAAS,GACT,OAAQ,CAAC,EAAG,CAAC,EACb,KAAM,GACN,SAAU,EACZ,EACA,iBAAkB,CAChB,QAAS,GACT,SAAU,EACZ,EACA,oBAAqB,CACnB,QAAS,GACT,SAAU,EACZ,CACF,CACF,EAEaC,EAAsBC,EAAY,CAC7C,GAAIC,EAAQ,aACZ,MAAO,IAAwBH,EAC/B,QAAS,CACP,eAAeI,EAAiC,CACzC,KAAA,YAAcA,GAAe,KAAK,WACzC,EACA,MAAM,kBAAmB,CACjB,KAAA,CAAE,YAAAC,GAAgBC,IAElBC,EAAS,MAAMF,EAAY,KAAK,iBAAiB,EAEnDE,aAAkBC,GACf,KAAA,eAAeD,EAAO,IAAI,CAEnC,CACF,EACA,QAAS,CACP,gBAAiB,CAAC,CAAE,YAAAH,CAAY,IAAA,OAC9B,OAAAK,EAAAL,GAAA,YAAAA,EAAa,mBAAb,YAAAK,EAA+B,UACjC,kBAAmB,CAAC,CAAE,YAAAL,CAAY,IAAA,OAChC,OAAAK,EAAAL,GAAA,YAAAA,EAAa,mBAAb,YAAAK,EAA+B,SACjC,yBAA0B,CAAC,CAAE,YAAAL,CAAY,IAAA,OACvC,OAAAK,EAAAL,GAAA,YA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