{"version":3,"sources":["webpack:///./src/views/v2/Gestione/Index.vue?b35d","webpack:///./src/views/v2/Gestione/Index.vue?57c0","webpack:///./src/views/v2/Gestione/Index.vue?6c39","webpack:///./src/views/v2/Gestione/Index.vue"],"names":["_withScopeId","n","_pushScopeId","_popScopeId","_hoisted_1","_createElementVNode","class","_hoisted_2","_hoisted_3","_hoisted_4","for","_hoisted_5","key","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","render","_ctx","_cache","$props","$setup","$data","$options","_component_ion_menu_button","_resolveComponent","_component_ion_buttons","_component_ald_logo","_component_ion_title","_component_ion_icon","_component_ion_toolbar","_component_ion_header","_component_Dropdown","_component_AutoComplete","_component_ion_button","_component_ion_card_content","_component_ion_card","_component_ion_toast","_component_ion_content","_component_ion_page","_openBlock","_createBlock","default","_withCtx","_createVNode","color","slot","_","icon","cogOutline","style","id","modelValue","selectedCountry","$event","options","countries","optionLabel","filter","placeholder","showClear","onChange","onCountryChange","value","slotProps","_createElementBlock","src","code","width","_toDisplayString","name","option","lang","Search","Label1","ref","selectedCity","suggestions","filteredCity","onComplete","searchCity","onItemSelect","selectCity","inputStyle","field","forceSelection","autoHighlight","Info1","validFields","comune","filteredCemeteries","length","Label2","selectedCemetery","scrollHeight","_createCommentVNode","expand","size","shape","disabled","disableButton","onClick","_createTextVNode","isToastOpen","message","toastMessage","duration","toastColor","position","onDidDismiss","setIsToastOpen","defineComponent","components","IonHeader","IonToolbar","IonTitle","IonContent","IonPage","IonItem","IonLabel","IonInput","IonDatetime","IonButton","IonMenuButton","IonButtons","IonList","IonCard","IonCardContent","IonToast","IonAvatar","aldLogo","IonSelect","IonSelectOption","IonText","AutoComplete","Dropdown","InputText","Checkbox","IonToggle","IonIcon","Carousel","setup","store","useStore","router","useRouter","autocomplete1","useIonRouter","dropCemetery","computed","state","auth","modes","Array","isAuth","user","isAnonymous","cities","mapActions","cemeteries","reactive","cemetery","onIonViewDidEnter","async","console","log","DataService","getCitiesByCountry","map","i","locationName","originLocationName","err","Utils","PresentAlertError","isRequired","event","setTimeout","query","normalized","toLowerCase","replace","trim","p","startsWith","focus","getCemeteriesByCity","c","calcEta","birthDate","dieDate","diffInTime","getTime","Math","floor","selectCemetery","url","push","authetication","allCimiteri","cimiteri","searchSuccess","resultErrorMessage","searchResultMessage","resultsCount","searchResultsCount","results","__exports__"],"mappings":"kHAAA,W,yDCEA,MAAMA,EAAeC,IAAMC,eAAa,mBAAmBD,EAAEA,IAAIE,iBAAcF,GACzEG,EAA2BJ,EAAa,IAAmBK,eAAoB,IAAK,CAAEC,MAAO,cAAgB,iCAAkC,IAC/IC,EAA2BP,EAAa,IAAmBK,eAAoB,IAAK,CAAEC,MAAO,SAAW,yBAA0B,IAClIE,EAAa,CAAEF,MAAO,QACtBG,EAA2BT,EAAa,IAAmBK,eAAoB,QAAS,CAAEK,IAAK,eAAiB,WAAY,IAC5HC,EAAa,CACjBC,IAAK,EACLN,MAAO,mCAEHO,EAAa,CAAC,OACdC,EAAa,CAAEF,IAAK,GACpBG,EAAa,CAAET,MAAO,gBACtBU,EAAa,CAAC,OACdC,EAAc,CAAEX,MAAO,QACvBY,EAAc,CAAER,IAAK,gBACrBS,EAAc,CAClBP,IAAK,EACLN,MAAO,aAEHc,EAAc,CAAEV,IAAK,gBACrBW,EAAc,CAAEf,MAAO,QAEvB,SAAUgB,EAAOC,EAAUC,EAAYC,EAAYC,EAAYC,EAAWC,GAC9E,MAAMC,EAA6BC,eAAkB,mBAC/CC,EAAyBD,eAAkB,eAC3CE,EAAsBF,eAAkB,YACxCG,EAAuBH,eAAkB,aACzCI,EAAsBJ,eAAkB,YACxCK,EAAyBL,eAAkB,eAC3CM,EAAwBN,eAAkB,cAC1CO,EAAsBP,eAAkB,YACxCQ,EAA0BR,eAAkB,gBAC5CS,EAAwBT,eAAkB,cAC1CU,EAA8BV,eAAkB,oBAChDW,EAAsBX,eAAkB,YACxCY,EAAuBZ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C,QAASzD,eAAS,IAAMP,EAAMQ,MAAMwD,SACpCtI,OACAQ,aACAE,aACAN,eACAE,eAEAqH,iBACAtG,mBACAH,qBAEAF,cACAY,gBACA8C,gBAEA7C,UACAhD,kBACAG,YACAM,kBAEA8H,UACApC,QACAjD,cACAO,iBACAL,eACAE,aACA+C,SACAN,eACAnG,sB,iCClVR,MAAM8J,EAA2B,IAAgB,EAAQ,CAAC,CAAC,SAAS9L,GAAQ,CAAC,YAAY,qBAE1E,gB","file":"js/chunk-22324899.d6af0ee2.js","sourcesContent":["export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader-v16/dist/index.js??ref--1-1!./Index.vue?vue&type=style&index=0&id=70c0b1a7&scoped=true&lang=css\"","import { resolveComponent as _resolveComponent, createVNode as _createVNode, withCtx as _withCtx, createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createTextVNode as _createTextVNode, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-70c0b1a7\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"p\", { class: \"card-title\" }, \"Gestione aree/zone cimteriali\", -1))\nconst _hoisted_2 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"p\", { class: \"small\" }, \"Seleziona un cimitero\", -1))\nconst _hoisted_3 = { class: \"mt-3\" }\nconst _hoisted_4 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"label\", { for: \"dropCountry\" }, \"Nazione\", -1))\nconst _hoisted_5 = {\n key: 0,\n class: \"country-item country-item-value\"\n}\nconst _hoisted_6 = [\"src\"]\nconst _hoisted_7 = { key: 1 }\nconst _hoisted_8 = { class: \"country-item\" }\nconst _hoisted_9 = [\"src\"]\nconst _hoisted_10 = { class: \"mt-4\" }\nconst _hoisted_11 = { for: \"autocomplete\" }\nconst _hoisted_12 = {\n key: 0,\n class: \"mt-4 mb-2\"\n}\nconst _hoisted_13 = { for: \"dropCemetery\" }\nconst _hoisted_14 = { class: \"mt-4\" }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_ion_menu_button = _resolveComponent(\"ion-menu-button\")!\n const _component_ion_buttons = _resolveComponent(\"ion-buttons\")!\n const _component_ald_logo = _resolveComponent(\"ald-logo\")!\n const _component_ion_title = _resolveComponent(\"ion-title\")!\n const _component_ion_icon = _resolveComponent(\"ion-icon\")!\n const _component_ion_toolbar = _resolveComponent(\"ion-toolbar\")!\n const _component_ion_header = _resolveComponent(\"ion-header\")!\n const _component_Dropdown = _resolveComponent(\"Dropdown\")!\n const _component_AutoComplete = _resolveComponent(\"AutoComplete\")!\n const _component_ion_button = _resolveComponent(\"ion-button\")!\n const _component_ion_card_content = _resolveComponent(\"ion-card-content\")!\n const _component_ion_card = _resolveComponent(\"ion-card\")!\n const _component_ion_toast = _resolveComponent(\"ion-toast\")!\n const _component_ion_content = _resolveComponent(\"ion-content\")!\n const _component_ion_page = _resolveComponent(\"ion-page\")!\n\n return (_openBlock(), _createBlock(_component_ion_page, null, {\n default: _withCtx(() => [\n _createVNode(_component_ion_header, { class: \"ion-no-border\" }, {\n default: _withCtx(() => [\n _createVNode(_component_ion_toolbar, { color: \"tertiary\" }, {\n default: _withCtx(() => [\n _createVNode(_component_ion_buttons, { slot: \"end\" }, {\n default: _withCtx(() => [\n _createVNode(_component_ion_menu_button)\n ]),\n _: 1\n }),\n _createVNode(_component_ion_title, null, {\n default: _withCtx(() => [\n _createVNode(_component_ald_logo)\n ]),\n _: 1\n }),\n _createVNode(_component_ion_icon, {\n icon: _ctx.cogOutline,\n style: {\"padding\":\"0 10px\",\"font-size\":\"large\",\"font-weight\":\"bold\"},\n slot: \"start\"\n }, null, 8, [\"icon\"])\n ]),\n _: 1\n })\n ]),\n _: 1\n }),\n _createVNode(_component_ion_content, { class: \"map-backgorund\" }, {\n default: _withCtx(() => [\n _createVNode(_component_ion_card, { class: \"mt-3\" }, {\n default: _withCtx(() => [\n _createVNode(_component_ion_card_content, null, {\n default: _withCtx(() => [\n _hoisted_1,\n _hoisted_2,\n _createElementVNode(\"div\", _hoisted_3, [\n _hoisted_4,\n _createVNode(_component_Dropdown, {\n id: \"dropCountry\",\n modelValue: _ctx.selectedCountry,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((_ctx.selectedCountry) = $event)),\n options: _ctx.countries,\n optionLabel: \"name\",\n filter: false,\n placeholder: \"Seleziona nazione\",\n showClear: false,\n onChange: _cache[1] || (_cache[1] = ($event: any) => (_ctx.onCountryChange()))\n }, {\n value: _withCtx((slotProps) => [\n (slotProps.value)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_5, [\n _createElementVNode(\"img\", {\n src: '/assets/img/flags/'+slotProps.value.code+'.png',\n width: \"32\"\n }, null, 8, _hoisted_6),\n _createElementVNode(\"span\", null, _toDisplayString(slotProps.value.name), 1)\n ]))\n : (_openBlock(), _createElementBlock(\"span\", _hoisted_7, _toDisplayString(slotProps.placeholder), 1))\n ]),\n option: _withCtx((slotProps) => [\n _createElementVNode(\"div\", _hoisted_8, [\n _createElementVNode(\"img\", {\n src: '/assets/img/flags/'+slotProps.option.code+'.png',\n width: \"32\"\n }, null, 8, _hoisted_9),\n _createElementVNode(\"span\", null, _toDisplayString(slotProps.option.name), 1)\n ])\n ]),\n _: 1\n }, 8, [\"modelValue\", \"options\"])\n ]),\n _createElementVNode(\"div\", _hoisted_10, [\n _createElementVNode(\"label\", _hoisted_11, _toDisplayString(_ctx.lang.Search.Label1), 1),\n _createVNode(_component_AutoComplete, {\n ref: \"autocomplete1\",\n modelValue: _ctx.selectedCity,\n \"onUpdate:modelValue\": _cache[2] || (_cache[2] = ($event: any) => ((_ctx.selectedCity) = $event)),\n suggestions: _ctx.filteredCity,\n onComplete: _cache[3] || (_cache[3] = ($event: any) => (_ctx.searchCity($event))),\n onItemSelect: _cache[4] || (_cache[4] = ($event: any) => (_ctx.selectCity($event))),\n inputStyle: {width:'100%'},\n field: \"originLocationName\",\n forceSelection: \"\",\n autoHighlight: true\n }, null, 8, [\"modelValue\", \"suggestions\"]),\n _createElementVNode(\"small\", null, _toDisplayString(_ctx.lang.Search.Info1), 1)\n ]),\n (_ctx.validFields.comune && _ctx.filteredCemeteries && _ctx.filteredCemeteries.length > 0)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_12, [\n _createElementVNode(\"label\", _hoisted_13, _toDisplayString(_ctx.lang.Search.Label2), 1),\n _createVNode(_component_Dropdown, {\n id: \"dropCemetery\",\n ref: \"dropCemetery\",\n modelValue: _ctx.selectedCemetery,\n \"onUpdate:modelValue\": _cache[5] || (_cache[5] = ($event: any) => ((_ctx.selectedCemetery) = $event)),\n options: _ctx.filteredCemeteries,\n optionLabel: \"name\",\n filter: false,\n placeholder: \"Seleziona cimitero\",\n showClear: false,\n scrollHeight: \"300px\"\n }, null, 8, [\"modelValue\", \"options\"])\n ]))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"div\", _hoisted_14, [\n (_ctx.selectedCemetery)\n ? (_openBlock(), _createBlock(_component_ion_button, {\n key: 0,\n color: \"primary\",\n expand: \"block\",\n size: \"default\",\n shape: \"round\",\n disabled: _ctx.disableButton,\n onClick: _cache[6] || (_cache[6] = ($event: any) => (_ctx.onClick()))\n }, {\n default: _withCtx(() => [\n _createTextVNode(\" Gestisci cimitero \")\n ]),\n _: 1\n }, 8, [\"disabled\"]))\n : _createCommentVNode(\"\", true)\n ])\n ]),\n _: 1\n })\n ]),\n _: 1\n }),\n _createVNode(_component_ion_toast, {\n \"is-open\": _ctx.isToastOpen,\n message: _ctx.toastMessage,\n duration: 4000,\n color: _ctx.toastColor,\n position: \"top\",\n onDidDismiss: _cache[7] || (_cache[7] = ($event: any) => (_ctx.setIsToastOpen(false)))\n }, null, 8, [\"is-open\", \"message\", \"color\"])\n ]),\n _: 1\n })\n ]),\n _: 1\n }))\n}","\r\n import {\r\n IonPage,\r\n IonHeader,\r\n IonToolbar,\r\n IonTitle,\r\n IonContent,\r\n IonLabel,\r\n IonItem,\r\n IonSelect,\r\n IonSelectOption,\r\n IonInput,\r\n IonDatetime,\r\n IonButton,\r\n IonMenuButton,\r\n IonButtons,\r\n IonList,\r\n IonText,\r\n IonAvatar,\r\n IonCard,\r\n IonToggle,\r\n IonCardContent,\r\n IonToast,\r\n IonIcon,\r\n useIonRouter,onIonViewDidEnter\r\n } from \"@ionic/vue\";\r\n import { ref, onMounted, computed, defineComponent, reactive } from \"vue\";\r\n import aldLogo from \"@/components/aldilapp/shared/ald-logo.vue\";\r\n import Dropdown from 'primevue/dropdown';\r\n import { useStore, mapActions } from \"vuex\";\r\n import { key, SearchFilter } from \"../../../store\";\r\n import { useRouter } from \"vue-router\";\r\n import AutoComplete from \"primevue/autocomplete\";\r\n import InputText from 'primevue/inputtext';\r\n import Checkbox from 'primevue/checkbox';\r\n \r\n import { DataService } from \"@/services/data.service\";\r\n import { CemeteryDTO, LocationDTO, SearchResultItemDTO, AppUserLocationInterestDTO, FeaturedContetDTO } from \"@/models\";\r\n import Utils from \"@/services/utils.service\";\r\n import { FirebaseMessaging } from '@capacitor-firebase/messaging';\r\n import { FcmManager } from '@/services/fcm.service';\r\n import Carousel from 'primevue/carousel';\r\n import { cogOutline } from \"ionicons/icons\";\r\n \r\n export default defineComponent({\r\n name: \"GestioneIndex\",\r\n components: {\r\n IonHeader,\r\n IonToolbar,\r\n IonTitle,\r\n IonContent,\r\n IonPage,\r\n IonItem,\r\n IonLabel,\r\n IonInput,\r\n IonDatetime,\r\n IonButton,\r\n IonMenuButton,\r\n IonButtons,\r\n IonList,\r\n IonCard,\r\n IonCardContent,\r\n IonToast,\r\n IonAvatar,\r\n aldLogo,\r\n IonSelect,\r\n IonSelectOption,\r\n IonText,\r\n AutoComplete,\r\n Dropdown,\r\n InputText,\r\n Checkbox,\r\n IonToggle,\r\n IonIcon,\r\n //Swiper,\r\n //SwiperSlide \r\n Carousel\r\n },\r\n setup() {\r\n const store = useStore(key);\r\n const router = useRouter();\r\n const ionRouter = useIonRouter();\r\n const autocomplete1 = ref();\r\n const dropCemetery = ref(null);\r\n const disableButton = ref(false);\r\n const lang = computed(() => store.state.lang);\r\n const user = computed(() => store.state.auth);\r\n const selectedCountry = ref({name: 'Italia', code: 'it'});\r\n const modes = ref(new Array());\r\n const emailMode = ref(false);\r\n const pushMode = ref(false);\r\n const isToastOpen = ref(false);\r\n const setIsToastOpen = (state: boolean) => (isToastOpen.value = state);\r\n const toastMessage = ref(\"\");\r\n const toastColor = ref(\"\");\r\n const cityInterest = ref(0);\r\n const featuredContents = ref([]);\r\n const countries = ref([\r\n {name: 'Italia', code: 'it'},\r\n //{name: 'Francia', code: 'fr'},\r\n //{name: 'Germania', code: 'de'},\r\n //{name: 'Spgna', code: 'es'},\r\n ]);\r\n \r\n const isAuth = computed(() => {\r\n return (\r\n store.state.auth &&\r\n store.state.auth.user &&\r\n !store.state.auth.user.isAnonymous\r\n );\r\n });\r\n \r\n \r\n \r\n const actions = {\r\n ...mapActions([\"setFilter\"])\r\n }\r\n \r\n \r\n const cities = ref>(new Array());\r\n const selectedCity = ref();\r\n const filteredCity = ref();\r\n \r\n let cemeteries = new Array();\r\n const selectedCemetery = ref();\r\n const filteredCemeteries = ref();\r\n \r\n \r\n const validFields = reactive({\r\n comune: false,\r\n cemetery: false,\r\n name: false,\r\n });\r\n \r\n \r\n onIonViewDidEnter(async () => {\r\n try{\r\n console.log('Tab1.OnMounted()...');\r\n cities.value = await DataService.getCitiesByCountry(\"it\");\r\n console.log('Caricati comuni:', cities.value.length);\r\n \r\n cities.value = cities.value.map((i)=> { return {id: i.id, locationName: i.locationName, originLocationName: i.locationName}} );\r\n }\r\n catch(err: any){\r\n Utils.PresentAlertError('Errore nel caricamento comuni', err.message, ['Ok']);\r\n }\r\n });\r\n \r\n\r\n const onCountryChange = async () => {\r\n cities.value = await DataService.getCitiesByCountry(selectedCountry.value.code);\r\n cities.value = cities.value.map((i)=> { return {id: i.id, locationName: i.locationName, originLocationName: i.locationName}} );\r\n console.log('Caricati comuni per ',selectedCountry.value.code, cities.value.length);\r\n selectedCity.value = null;\r\n filteredCity.value = [];\r\n cemeteries = [];\r\n filteredCemeteries.value = [];\r\n selectedCemetery.value = null;\r\n validFields.comune = false;\r\n validFields.cemetery = false;\r\n }; \r\n \r\n const isRequired = (value: any) => {\r\n if (!value) {\r\n return \"Questo è un dato necessario!\";\r\n }\r\n return true;\r\n };\r\n \r\n const searchCity = (event: any) => {\r\n setTimeout(async () => {\r\n console.log(\"Comune digitato\", event.query);\r\n const normalized = event.query.toLowerCase().replace(\"’\",\"'\");\r\n console.log(\"Comune digitato normalizzato\", normalized);\r\n \r\n if (cities.value.length > 0 && selectedCity.value) {\r\n if (!event.query.trim().length) {\r\n filteredCity.value = cities.value;\r\n validFields.comune = false;\r\n } else {\r\n filteredCity.value = cities.value.filter((p: any) => {\r\n return p.locationName\r\n .toLowerCase()\r\n .startsWith(normalized);\r\n });\r\n console.log(\"Comuni filtrati:\", filteredCity.value.length);\r\n if (\r\n filteredCity.value.length === 1 &&\r\n normalized === filteredCity.value[0].locationName.toLowerCase()\r\n ) {\r\n \r\n console.log(\r\n \"Corrispondenza unica con Location per: \",\r\n event.query\r\n );\r\n\r\n if (dropCemetery.value)\r\n dropCemetery.value.focus();\r\n \r\n /*cemeteries = await DataService.getCemeteriesByCity(\r\n event.query.toLowerCase()\r\n );\r\n filteredCemeteries.value = cemeteries;\r\n validFields.comune = true;\r\n if (autocomplete2.value) \r\n autocomplete2.value.focus();*/\r\n \r\n } else {\r\n validFields.comune = false;\r\n cemeteries = [];\r\n filteredCemeteries.value = [];\r\n selectedCemetery.value = null;\r\n }\r\n }\r\n }\r\n }, 250);\r\n };\r\n \r\n const selectCity = (event: any) => {\r\n setTimeout(async () => {\r\n if (cities.value.length > 0 && selectedCity.value) {\r\n console.log(\"Caricamento dei cimiteri presenti nel comune \",selectedCity.value.locationName);\r\n cemeteries = await DataService.getCemeteriesByCity(\r\n selectedCity.value.locationName.toLowerCase()\r\n );\r\n cemeteries = cemeteries.filter((c: CemeteryDTO) => {return c.id != 0});\r\n console.log('Cemeteri', cemeteries);\r\n filteredCemeteries.value = cemeteries;\r\n if (filteredCemeteries.value.length > 0){\r\n selectedCemetery.value = filteredCemeteries.value[0];\r\n }\r\n validFields.comune = true;\r\n disableButton.value = false;\r\n\r\n if (dropCemetery.value)\r\n dropCemetery.value.focus();\r\n\r\n } \r\n else \r\n {\r\n validFields.comune = false;\r\n cemeteries = [];\r\n filteredCemeteries.value = [];\r\n }\r\n }, 50);\r\n };\r\n \r\n /*const searchCemetery = (event: any) => {\r\n console.log(event);\r\n setTimeout(() => {\r\n if (!event.query.trim().length) {\r\n filteredCemeteries.value = [...cemeteries];\r\n }\r\n else {\r\n filteredCemeteries.value = cemeteries.filter((c) => {\r\n return c.name.toLowerCase().startsWith(event.query.toLowerCase());\r\n });\r\n }\r\n }, 250);\r\n };*/\r\n \r\n const calcEta = (birthDate: Date, dieDate: Date) => {\r\n const diffInTime = dieDate.getTime() - birthDate.getTime();\r\n return Math.floor(diffInTime / (1000 * 3600 * 24 * 365));\r\n }\r\n \r\n const selectCemetery = (event: any) => {\r\n \r\n setTimeout(async () => {\r\n if (cemeteries.length > 0 && selectedCemetery.value && selectedCity.value) {\r\n disableButton.value = false;\r\n console.log(\"Cimitero selezionato: \", selectedCemetery.value.name);\r\n if (selectedCemetery.value.id == 0)\r\n {\r\n console.log(\"Caricamento nomi defunti presenti in TUTTI i cimiteri del comune \", selectedCity.value.locationName);\r\n //...\r\n }\r\n else{\r\n console.log(\"Caricamento nomi defunti presenti nel cimitero \", selectedCemetery.value.name ,\" del comune\", selectedCity.value.locationName);\r\n ///...\r\n }\r\n validFields.cemetery = true;\r\n } else {\r\n validFields.cemetery = false;\r\n //names.value = [];\r\n }\r\n }, 50);\r\n };\r\n \r\n const onClick = async () => {\r\n if (selectedCity.value && selectedCemetery.value)\r\n {\r\n disableButton.value = true;\r\n //const url = \"/gestione-cimitero/\" + selectedCemetery.value.id;\r\n const url = \"/tabs/tabAdmin/cimitero/\" + selectedCemetery.value.id;\r\n console.log(\"GoTo \", url); \r\n await router.push(url);\r\n disableButton.value = false;\r\n }\r\n else\r\n {\r\n toastColor.value=\"danger\";\r\n toastMessage.value=\"Seleziona prima un comune, quindi un cimitero.
Se il cimitero non è presente contattare il reparto IT\";\r\n setIsToastOpen(true);\r\n }\r\n }; \r\n \r\n \r\n \r\n return {\r\n router,\r\n isRequired,\r\n authetication: computed(() => store.state.auth),\r\n allCimiteri: computed(() => store.state.cimiteri),\r\n searchSuccess: computed(() => store.state.searchSuccess),\r\n resultErrorMessage: computed(() => store.state.searchResultMessage),\r\n resultsCount: computed(() => store.state.searchResultsCount),\r\n results: computed(() => store.state.results),\r\n lang,\r\n searchCity,\r\n selectCity,\r\n selectedCity,\r\n filteredCity,\r\n //searchCemetery,\r\n selectCemetery,\r\n selectedCemetery,\r\n filteredCemeteries,\r\n \r\n validFields,\r\n disableButton,\r\n autocomplete1,\r\n \r\n onClick,\r\n selectedCountry,\r\n countries,\r\n onCountryChange,\r\n //gotoDetail,\r\n calcEta,\r\n modes,\r\n isToastOpen,\r\n setIsToastOpen,\r\n toastMessage,\r\n toastColor,\r\n isAuth,\r\n dropCemetery,\r\n cogOutline\r\n };\r\n },\r\n });\r\n ","import { render } from \"./Index.vue?vue&type=template&id=70c0b1a7&scoped=true&ts=true\"\nimport script from \"./Index.vue?vue&type=script&lang=ts\"\nexport * from \"./Index.vue?vue&type=script&lang=ts\"\n\nimport \"./Index.vue?vue&type=style&index=0&id=70c0b1a7&scoped=true&lang=css\"\n\nimport exportComponent from \"C:\\\\Projects\\\\Aldilapp\\\\ionic-capacitor-v3\\\\ionic\\\\aldilapp\\\\node_modules\\\\vue-loader-v16\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-70c0b1a7\"]])\n\nexport default __exports__"],"sourceRoot":""}