{"version":3,"sources":["webpack:///./src/views/v2/PersonalInfo.vue?6dbd","webpack:///./src/views/v2/PersonalInfo.vue?8d9c","webpack:///./src/views/v2/PersonalInfo.vue?55a9","webpack:///./src/views/v2/PersonalInfo.vue"],"names":["_hoisted_1","class","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","for","_hoisted_6","key","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","_hoisted_19","_hoisted_20","_hoisted_21","_hoisted_22","_hoisted_23","_hoisted_24","_hoisted_25","_hoisted_26","_hoisted_27","_hoisted_28","_hoisted_29","_hoisted_30","_hoisted_31","_hoisted_32","_hoisted_33","_hoisted_34","_hoisted_35","_hoisted_36","render","_ctx","_cache","$props","$setup","$data","$options","_component_ion_back_button","_resolveComponent","_component_ion_buttons","_component_ion_menu_button","_component_ald_logo","_component_ion_title","_component_ion_toolbar","_component_ion_header","_component_ion_loading","_component_InputText","_component_AutoComplete","_component_Calendar","_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","_","isLoading","cssClass","message","lang","Detail","InCaricamento","_createElementVNode","_toDisplayString","PersonalInfo","Title","SubTitle","type","modelValue","personalInfo","cognome","$event","_normalizeClass","errors","LabelCognome","_createElementBlock","_createCommentVNode","nome","LabelNome","ref","selectedBirthCity","suggestions","filteredBirthCity","onComplete","searchBirthCity","onItemSelect","selectBirthCity","inputStyle","width","field","birthLocationId","forceSelection","LabelComuneNascita","LabelInfo1","birthDate","dateFormat","maxDate","Date","id","LabelData","selectedResidenceCity","filteredResidenceCity","searchResidenceCity","selectResidenceCity","residenceLocationId","LabelComuneRes","address","LabelInd","phoneNumber","LabelTel","InfoTel","isPosting","shape","onClick","onNext","_createTextVNode","ButtonText","valitationErrors","isToastOpen","errorMessage","duration","position","onDidDismiss","setIsToastOpen","defineComponent","name","components","IonHeader","IonToolbar","IonTitle","IonContent","IonPage","IonText","IonMenuButton","IonBackButton","IonButtons","IonLoading","aldLogo","IonLabel","IonList","IonItem","IonCard","IonCardHeader","IonCardContent","IonCardSubtitle","IonCardTitle","IonButton","IonAvatar","IonIcon","InputText","IonModal","StripeElements","StripeElement","IonToast","Calendar","AutoComplete","setup","_currPersonalInfo$val","_currPersonalInfo$val2","_currPersonalInfo$val3","_currPersonalInfo$val4","_currPersonalInfo$val5","_currPersonalInfo$val6","_currPersonalInfo$val7","_currPersonalInfo$val8","_currPersonalInfo$val9","_currPersonalInfo$val10","_currPersonalInfo$val11","_currPersonalInfo$val12","_currPersonalInfo$val13","_currPersonalInfo$val14","_currPersonalInfo$val15","_currPersonalInfo$val16","store","useStore","router","useRouter","useRoute","computed","state","currPersonalInfo","appUserId","auth","dbUserId","value","email","birthCountry","validate","setIsLoading","autocomplete1","autocomplete2","inputDataNascita","cities","Array","onMounted","async","DataService","getCitiesByCountry","console","log","length","err","Utils","PresentAlertError","event","setTimeout","query","trim","filter","p","locationName","toLowerCase","startsWith","$el","focus","dispatch","push","__exports__"],"mappings":"gHAAA,W,gFCEA,MAAMA,EAAa,CAAEC,MAAO,cACtBC,EAAa,CAAED,MAAO,uBACtBE,EAAa,CAAEF,MAAO,mBACtBG,EAAa,CAAEH,MAAO,iBACtBI,EAAa,CAAEC,IAAK,QACpBC,EAAa,CACjBC,IAAK,EACLP,MAAO,WAEHQ,EAAa,CAAER,MAAO,mBACtBS,EAAa,CAAET,MAAO,iBACtBU,EAAa,CAAEL,IAAK,QACpBM,EAAc,CAClBJ,IAAK,EACLP,MAAO,WAEHY,EAAc,CAAEZ,MAAO,mBACvBa,EAAc,CAAEb,MAAO,iBACvBc,EAAc,CAAET,IAAK,gBACrBU,EAAc,CAAER,IAAK,GACrBS,EAAc,CAClBT,IAAK,EACLP,MAAO,WAEHiB,EAAc,CAAEjB,MAAO,mBACvBkB,EAAc,CAAElB,M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C,YACAM,uB,kCClTN,MAAMoG,GAA2B,KAAgB,EAAQ,CAAC,CAAC,SAASlM,KAErD","file":"js/chunk-b3dd7bf8.a91641fc.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!./PersonalInfo.vue?vue&type=style&index=0&id=1edf7ea8&lang=css\"","import { resolveComponent as _resolveComponent, createVNode as _createVNode, withCtx as _withCtx, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createTextVNode as _createTextVNode, createBlock as _createBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"card-title\" }\nconst _hoisted_2 = { class: \"form-container mt-5\" }\nconst _hoisted_3 = { class: \"form-group mt-4\" }\nconst _hoisted_4 = { class: \"p-float-label\" }\nconst _hoisted_5 = { for: \"nome\" }\nconst _hoisted_6 = {\n key: 0,\n class: \"p-error\"\n}\nconst _hoisted_7 = { class: \"form-group mt-4\" }\nconst _hoisted_8 = { class: \"p-float-label\" }\nconst _hoisted_9 = { for: \"nome\" }\nconst _hoisted_10 = {\n key: 0,\n class: \"p-error\"\n}\nconst _hoisted_11 = { class: \"form-group mt-4\" }\nconst _hoisted_12 = { class: \"p-float-label\" }\nconst _hoisted_13 = { for: \"autocomplete\" }\nconst _hoisted_14 = { key: 0 }\nconst _hoisted_15 = {\n key: 1,\n class: \"p-error\"\n}\nconst _hoisted_16 = { class: \"form-group mt-4\" }\nconst _hoisted_17 = { class: \"p-float-label\" }\nconst _hoisted_18 = { for: \"calendar\" }\nconst _hoisted_19 = { key: 0 }\nconst _hoisted_20 = {\n key: 1,\n class: \"p-error\"\n}\nconst _hoisted_21 = { class: \"form-group mt-4\" }\nconst _hoisted_22 = { class: \"p-float-label\" }\nconst _hoisted_23 = { for: \"autocomplete\" }\nconst _hoisted_24 = {\n key: 0,\n class: \"text-muted\"\n}\nconst _hoisted_25 = {\n key: 1,\n class: \"p-error\"\n}\nconst _hoisted_26 = { class: \"form-group mt-4\" }\nconst _hoisted_27 = { class: \"p-float-label\" }\nconst _hoisted_28 = { for: \"address\" }\nconst _hoisted_29 = {\n key: 0,\n class: \"p-error\"\n}\nconst _hoisted_30 = { class: \"form-group mt-4\" }\nconst _hoisted_31 = { class: \"p-float-label\" }\nconst _hoisted_32 = { for: \"phone\" }\nconst _hoisted_33 = { key: 0 }\nconst _hoisted_34 = {\n key: 1,\n class: \"p-error\"\n}\nconst _hoisted_35 = { class: \"text-center mt-2\" }\nconst _hoisted_36 = {\n key: 2,\n class: \"text-center text-danger\"\n}\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_ion_back_button = _resolveComponent(\"ion-back-button\")!\n const _component_ion_buttons = _resolveComponent(\"ion-buttons\")!\n const _component_ion_menu_button = _resolveComponent(\"ion-menu-button\")!\n const _component_ald_logo = _resolveComponent(\"ald-logo\")!\n const _component_ion_title = _resolveComponent(\"ion-title\")!\n const _component_ion_toolbar = _resolveComponent(\"ion-toolbar\")!\n const _component_ion_header = _resolveComponent(\"ion-header\")!\n const _component_ion_loading = _resolveComponent(\"ion-loading\")!\n const _component_InputText = _resolveComponent(\"InputText\")!\n const _component_AutoComplete = _resolveComponent(\"AutoComplete\")!\n const _component_Calendar = _resolveComponent(\"Calendar\")!\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: \"primary\" }, {\n default: _withCtx(() => [\n _createVNode(_component_ion_buttons, { slot: \"start\" }, {\n default: _withCtx(() => [\n _createVNode(_component_ion_back_button)\n ]),\n _: 1\n }),\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 ]),\n _: 1\n })\n ]),\n _: 1\n }),\n _createVNode(_component_ion_loading, {\n \"is-open\": _ctx.isLoading,\n cssClass: \"my-custom-class\",\n message: _ctx.lang.Detail.InCaricamento\n }, null, 8, [\"is-open\", \"message\"]),\n _createVNode(_component_ion_content, { class: \"map-backgorund ion-padding\" }, {\n default: _withCtx(() => [\n _createVNode(_component_ion_card, null, {\n default: _withCtx(() => [\n _createVNode(_component_ion_card_content, null, {\n default: _withCtx(() => [\n _createElementVNode(\"p\", _hoisted_1, _toDisplayString(_ctx.lang.PersonalInfo.Title), 1),\n _createElementVNode(\"small\", null, _toDisplayString(_ctx.lang.PersonalInfo.SubTitle), 1),\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"span\", _hoisted_4, [\n _createVNode(_component_InputText, {\n type: \"text\",\n modelValue: _ctx.personalInfo.cognome,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((_ctx.personalInfo.cognome) = $event)),\n class: _normalizeClass({ 'p-invalid': _ctx.errors.cognome !== '' })\n }, null, 8, [\"modelValue\", \"class\"]),\n _createElementVNode(\"label\", _hoisted_5, _toDisplayString(_ctx.lang.PersonalInfo.LabelCognome), 1)\n ]),\n (_ctx.errors.cognome)\n ? (_openBlock(), _createElementBlock(\"small\", _hoisted_6, _toDisplayString(_ctx.errors.cognome), 1))\n : _createCommentVNode(\"\", true)\n ]),\n _createElementVNode(\"div\", _hoisted_7, [\n _createElementVNode(\"span\", _hoisted_8, [\n _createVNode(_component_InputText, {\n type: \"text\",\n modelValue: _ctx.personalInfo.nome,\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => ((_ctx.personalInfo.nome) = $event)),\n class: _normalizeClass({ 'p-invalid': _ctx.errors.nome !== '' })\n }, null, 8, [\"modelValue\", \"class\"]),\n _createElementVNode(\"label\", _hoisted_9, _toDisplayString(_ctx.lang.PersonalInfo.LabelNome), 1)\n ]),\n (_ctx.errors.nome)\n ? (_openBlock(), _createElementBlock(\"small\", _hoisted_10, _toDisplayString(_ctx.errors.nome), 1))\n : _createCommentVNode(\"\", true)\n ]),\n _createElementVNode(\"div\", _hoisted_11, [\n _createElementVNode(\"span\", _hoisted_12, [\n _createVNode(_component_AutoComplete, {\n ref: \"autocomplete1\",\n modelValue: _ctx.selectedBirthCity,\n \"onUpdate:modelValue\": _cache[2] || (_cache[2] = ($event: any) => ((_ctx.selectedBirthCity) = $event)),\n suggestions: _ctx.filteredBirthCity,\n onComplete: _cache[3] || (_cache[3] = ($event: any) => (_ctx.searchBirthCity($event))),\n onItemSelect: _cache[4] || (_cache[4] = ($event: any) => (_ctx.selectBirthCity($event))),\n inputStyle: {width:'100%'},\n field: \"locationName\",\n class: _normalizeClass({ 'p-invalid': _ctx.errors.birthLocationId !== '' }),\n forceSelection: \"\"\n }, null, 8, [\"modelValue\", \"suggestions\", \"class\"]),\n _createElementVNode(\"label\", _hoisted_13, _toDisplayString(_ctx.lang.PersonalInfo.LabelComuneNascita), 1)\n ]),\n (!_ctx.selectedBirthCity && !_ctx.errors.birthLocationId)\n ? (_openBlock(), _createElementBlock(\"small\", _hoisted_14, _toDisplayString(_ctx.lang.PersonalInfo.LabelInfo1), 1))\n : _createCommentVNode(\"\", true),\n (_ctx.errors.birthLocationId)\n ? (_openBlock(), _createElementBlock(\"small\", _hoisted_15, _toDisplayString(_ctx.errors.birthLocationId), 1))\n : _createCommentVNode(\"\", true)\n ]),\n _createElementVNode(\"div\", _hoisted_16, [\n _createElementVNode(\"span\", _hoisted_17, [\n _createVNode(_component_Calendar, {\n modelValue: _ctx.personalInfo.birthDate,\n \"onUpdate:modelValue\": _cache[5] || (_cache[5] = ($event: any) => ((_ctx.personalInfo.birthDate) = $event)),\n dateFormat: \"dd/mm/yy\",\n maxDate: new Date(),\n id: \"calendar\",\n ref: \"inputDataNascita\",\n class: _normalizeClass({ 'p-invalid': _ctx.errors.birthDate !== '' })\n }, null, 8, [\"modelValue\", \"maxDate\", \"class\"]),\n _createElementVNode(\"label\", _hoisted_18, _toDisplayString(_ctx.lang.PersonalInfo.LabelData), 1)\n ]),\n (!_ctx.errors.birthDate)\n ? (_openBlock(), _createElementBlock(\"small\", _hoisted_19, \"Nel formato gg/mm/aaaa (es. 23/10/1972)\"))\n : _createCommentVNode(\"\", true),\n (_ctx.errors.birthDate)\n ? (_openBlock(), _createElementBlock(\"small\", _hoisted_20, _toDisplayString(_ctx.errors.birthDate), 1))\n : _createCommentVNode(\"\", true)\n ]),\n _createElementVNode(\"div\", _hoisted_21, [\n _createElementVNode(\"span\", _hoisted_22, [\n _createVNode(_component_AutoComplete, {\n ref: \"autocomplete2\",\n modelValue: _ctx.selectedResidenceCity,\n \"onUpdate:modelValue\": _cache[6] || (_cache[6] = ($event: any) => ((_ctx.selectedResidenceCity) = $event)),\n suggestions: _ctx.filteredResidenceCity,\n onComplete: _cache[7] || (_cache[7] = ($event: any) => (_ctx.searchResidenceCity($event))),\n onItemSelect: _cache[8] || (_cache[8] = ($event: any) => (_ctx.selectResidenceCity($event))),\n inputStyle: {width:'100%'},\n field: \"locationName\",\n class: _normalizeClass({ 'p-invalid': _ctx.errors.residenceLocationId !== ''}),\n forceSelection: \"\"\n }, null, 8, [\"modelValue\", \"suggestions\", \"class\"]),\n _createElementVNode(\"label\", _hoisted_23, _toDisplayString(_ctx.lang.PersonalInfo.LabelComuneRes), 1)\n ]),\n (!_ctx.selectedResidenceCity && !_ctx.errors.residenceLocationId)\n ? (_openBlock(), _createElementBlock(\"small\", _hoisted_24, _toDisplayString(_ctx.lang.PersonalInfo.LabelInfo1), 1))\n : _createCommentVNode(\"\", true),\n (_ctx.errors.residenceLocationId)\n ? (_openBlock(), _createElementBlock(\"small\", _hoisted_25, _toDisplayString(_ctx.errors.residenceLocationId), 1))\n : _createCommentVNode(\"\", true)\n ]),\n _createElementVNode(\"div\", _hoisted_26, [\n _createElementVNode(\"span\", _hoisted_27, [\n _createVNode(_component_InputText, {\n type: \"text\",\n id: \"address\",\n modelValue: _ctx.personalInfo.address,\n \"onUpdate:modelValue\": _cache[9] || (_cache[9] = ($event: any) => ((_ctx.personalInfo.address) = $event)),\n ref: \"address\",\n class: _normalizeClass({ 'p-invalid': _ctx.errors.address !== ''})\n }, null, 8, [\"modelValue\", \"class\"]),\n _createElementVNode(\"label\", _hoisted_28, _toDisplayString(_ctx.lang.PersonalInfo.LabelInd), 1)\n ]),\n (_ctx.errors.address)\n ? (_openBlock(), _createElementBlock(\"small\", _hoisted_29, _toDisplayString(_ctx.errors.address), 1))\n : _createCommentVNode(\"\", true)\n ]),\n _createElementVNode(\"div\", _hoisted_30, [\n _createElementVNode(\"span\", _hoisted_31, [\n _createVNode(_component_InputText, {\n type: \"text\",\n id: \"phone\",\n modelValue: _ctx.personalInfo.phoneNumber,\n \"onUpdate:modelValue\": _cache[10] || (_cache[10] = ($event: any) => ((_ctx.personalInfo.phoneNumber) = $event)),\n class: _normalizeClass({ 'p-invalid': _ctx.errors.phoneNumber !== ''})\n }, null, 8, [\"modelValue\", \"class\"]),\n _createElementVNode(\"label\", _hoisted_32, _toDisplayString(_ctx.lang.PersonalInfo.LabelTel), 1)\n ]),\n (!_ctx.errors.phoneNumber)\n ? (_openBlock(), _createElementBlock(\"small\", _hoisted_33, _toDisplayString(_ctx.lang.PersonalInfo.InfoTel), 1))\n : _createCommentVNode(\"\", true),\n (_ctx.errors.phoneNumber)\n ? (_openBlock(), _createElementBlock(\"small\", _hoisted_34, _toDisplayString(_ctx.errors.phoneNumber), 1))\n : _createCommentVNode(\"\", true)\n ]),\n _createElementVNode(\"div\", _hoisted_35, [\n (!_ctx.isPosting)\n ? (_openBlock(), _createBlock(_component_ion_button, {\n key: 0,\n shape: \"round\",\n onClick: _cache[11] || (_cache[11] = ($event: any) => (_ctx.onNext()))\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.lang.PersonalInfo.ButtonText) + \" >\", 1)\n ]),\n _: 1\n }))\n : _createCommentVNode(\"\", true),\n (_ctx.isPosting)\n ? (_openBlock(), _createBlock(_component_ion_button, {\n key: 1,\n shape: \"round\",\n color: \"secondary\"\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.lang.PersonalInfo.ButtonText) + \" >\", 1)\n ]),\n _: 1\n }))\n : _createCommentVNode(\"\", true),\n (_ctx.valitationErrors)\n ? (_openBlock(), _createElementBlock(\"p\", _hoisted_36, \"Sono presenti degli errori. Controlla i campi inseriti.\"))\n : _createCommentVNode(\"\", true)\n ])\n ])\n ]),\n _: 1\n })\n ]),\n _: 1\n }),\n _createVNode(_component_ion_toast, {\n \"is-open\": _ctx.isToastOpen,\n message: _ctx.errorMessage,\n duration: 3500,\n color: \"danger\",\n position: \"top\",\n onDidDismiss: _cache[12] || (_cache[12] = ($event: any) => (_ctx.setIsToastOpen(false)))\n }, null, 8, [\"is-open\", \"message\"])\n ]),\n _: 1\n })\n ]),\n _: 1\n }))\n}","\r\nimport {\r\n IonPage,\r\n IonHeader,\r\n IonToolbar,\r\n IonTitle,\r\n IonText,\r\n IonMenuButton,\r\n IonBackButton,\r\n IonButtons,\r\n IonLoading,\r\n IonLabel,\r\n IonList,\r\n IonItem,\r\n IonCard,\r\n IonCardHeader,\r\n IonCardContent,\r\n IonCardSubtitle,\r\n IonCardTitle,\r\n IonButton,\r\n IonAvatar,\r\n IonIcon,\r\n IonModal,\r\n IonContent,\r\n IonToast,\r\n} from \"@ionic/vue\";\r\nimport aldLogo from \"@/components/aldilapp/shared/ald-logo.vue\";\r\nimport { useStore, mapActions } from \"vuex\";\r\nimport { key } from \"../../store\";\r\nimport { useRoute, useRouter } from \"vue-router\";\r\nimport InputText from \"primevue/inputtext\";\r\nimport Calendar from \"primevue/calendar\";\r\nimport AutoComplete from \"primevue/autocomplete\";\r\nimport { computed, defineComponent, onMounted, ref, onUnmounted } from \"vue\";\r\n//import { defineCustomElements } from '@stripe-elements/stripe-elements/loader';\r\nimport { StripeElements, StripeElement } from \"vue-stripe-js\";\r\nimport { EditAppUserPersonalInfoDTO, LocationDTO } from \"@/models/index\";\r\nimport { DataService } from \"@/services/data.service\";\r\nimport Utils from \"@/services/utils.service\";\r\n\r\nexport default defineComponent({\r\n name: \"PersonalInfo\",\r\n components: {\r\n IonHeader,\r\n IonToolbar,\r\n IonTitle,\r\n IonContent,\r\n IonPage,\r\n IonText,\r\n IonMenuButton,\r\n IonBackButton,\r\n IonButtons,\r\n IonLoading,\r\n aldLogo,\r\n IonLabel,\r\n IonList,\r\n IonItem,\r\n IonCard,\r\n IonCardHeader,\r\n IonCardContent,\r\n IonCardSubtitle,\r\n IonCardTitle,\r\n IonButton,\r\n IonAvatar,\r\n IonIcon,\r\n InputText,\r\n IonModal,\r\n StripeElements,\r\n StripeElement,\r\n IonToast,\r\n Calendar,\r\n AutoComplete,\r\n },\r\n setup() {\r\n const isToastOpen = ref(false);\r\n const isLoading = ref(false);\r\n const isPosting = ref(false);\r\n const store = useStore(key);\r\n const router = useRouter();\r\n const route = useRoute();\r\n const lang = computed(() => store.state.lang);\r\n const currPersonalInfo = computed(() => store.state.personalInfo);\r\n const appUserId = computed(() => {\r\n return (\r\n store.state.auth!.dbUserId\r\n );\r\n });\r\n const personalInfo = ref({\r\n appUserId: appUserId.value,\r\n cognome: currPersonalInfo.value?.cognome ?? \"\",\r\n nome: currPersonalInfo.value?.nome ?? \"\",\r\n birthDate: currPersonalInfo.value?.birthDate ?? null,\r\n birthLocationId: currPersonalInfo.value?.birthLocationId ?? null,\r\n residenceLocationId: currPersonalInfo.value?.residenceLocationId ?? null,\r\n address: currPersonalInfo.value?.address ?? \"\",\r\n email: currPersonalInfo.value?.email ?? \"\",\r\n phoneNumber: currPersonalInfo.value?.phoneNumber ?? \"\",\r\n });\r\n\r\n const errors = ref({\r\n cognome: \"\",\r\n nome: \"\",\r\n birthDate: \"\",\r\n birthLocationId: \"\",\r\n residenceLocationId: \"\",\r\n address: \"\",\r\n phoneNumber: \"\",\r\n birthCountry: \"\"\r\n });\r\n\r\n\r\n const validate = (): boolean => {\r\n if (!personalInfo.value.cognome)\r\n errors.value.cognome = \"Campo obbligatorio!\";\r\n else\r\n errors.value.cognome = \"\";\r\n if (!personalInfo.value.nome)\r\n errors.value.nome = \"Campo obbligatorio!\";\r\n else\r\n errors.value.nome = \"\";\r\n\r\n if (!personalInfo.value.birthDate)\r\n errors.value.birthDate = \"Campo obbligatorio!\";\r\n else \r\n errors.value.birthDate = \"\";\r\n\r\n if (!personalInfo.value.birthLocationId)\r\n errors.value.birthLocationId = \"Campo obbligatorio!\";\r\n else \r\n errors.value.birthLocationId = \"\";\r\n\r\n if (!personalInfo.value.residenceLocationId)\r\n errors.value.residenceLocationId = \"Campo obbligatorio!\";\r\n else \r\n errors.value.residenceLocationId = \"\";\r\n\r\n if (!personalInfo.value.address)\r\n errors.value.address = \"Campo obbligatorio!\"; \r\n else \r\n errors.value.address = \"\";\r\n\r\n if (!personalInfo.value.phoneNumber)\r\n errors.value.phoneNumber = \"Campo obbligatorio!\";\r\n else \r\n errors.value.phoneNumber = \"\"; \r\n\r\n if (errors.value.cognome || errors.value.nome || errors.value.birthDate || errors.value.birthLocationId || errors.value.residenceLocationId || errors.value.address || errors.value.phoneNumber)\r\n return false;\r\n return true;\r\n };\r\n\r\n const setIsToastOpen = (state: boolean) => (isToastOpen.value = state);\r\n const setIsLoading = (state: boolean) => (isLoading.value = state);\r\n const autocomplete1 = ref();\r\n const autocomplete2 = ref();\r\n const inputDataNascita = ref();\r\n const address = ref();\r\n const errorMessage = ref(\"\");\r\n const valitationErrors = ref(false);\r\n let cities = new Array();\r\n const selectedBirthCity = ref();\r\n const filteredBirthCity = ref();\r\n\r\n const selectedResidenceCity = ref();\r\n const filteredResidenceCity = ref();\r\n \r\n const countries = [\"IT\"];\r\n const selectedCountry = \"IT\";\r\n\r\n\r\n onMounted(async () => {\r\n try {\r\n setIsLoading(true);\r\n cities = await DataService.getCitiesByCountry(\"it\");\r\n console.log(\"Caricati comuni:\", cities.length);\r\n console.log(cities[0]);\r\n setIsLoading(false);\r\n } catch (err: any) {\r\n Utils.PresentAlertError(\"Errore nel caricamento comuni\", err.message, [\r\n \"Ok\",\r\n ]);\r\n }\r\n });\r\n\r\n const searchBirthCity = (event: any) => {\r\n setTimeout(async () => {\r\n //console.log(\"Comune digitato\", selectedBirthCity.value);\r\n if (cities.length > 0 && selectedBirthCity.value) {\r\n if (!event.query.trim().length) {\r\n filteredBirthCity.value = cities;\r\n //validFields.comune = false;\r\n } else {\r\n filteredBirthCity.value = cities.filter((p: LocationDTO) => {\r\n return p.locationName\r\n .toLowerCase()\r\n .startsWith(event.query.toLowerCase());\r\n });\r\n console.log(\"Comuni filtrati:\", filteredBirthCity.value.length);\r\n if (\r\n filteredBirthCity.value.length === 1 &&\r\n event.query.toLowerCase() === filteredBirthCity.value[0].locationName.toLowerCase()\r\n ) {\r\n //Passo al campo successivo\r\n personalInfo.value.birthLocationId = selectedBirthCity.value.id;\r\n /*if (inputDataNascita.value){\r\n inputDataNascita.value.focus();\r\n console.log(\"Sposto il focus sulla data di nascita\")\r\n } */\r\n }\r\n }\r\n }\r\n }, 250);\r\n };\r\n\r\n const selectBirthCity = (event: any) => {\r\n setTimeout(async () => {\r\n if (cities.length > 0 && selectedBirthCity.value) {\r\n personalInfo.value.birthLocationId = selectedBirthCity.value.id;\r\n } else {\r\n }\r\n }, 50);\r\n };\r\n\r\n const searchResidenceCity = (event: any) => {\r\n setTimeout(async () => {\r\n //console.log(\"Comune digitato\", selectedBirthCity.value);\r\n if (cities.length > 0 && selectedResidenceCity.value) {\r\n if (!event.query.trim().length) {\r\n filteredResidenceCity.value = cities;\r\n //validFields.comune = false;\r\n } else {\r\n filteredResidenceCity.value = cities.filter((p: LocationDTO) => {\r\n return p.locationName\r\n .toLowerCase()\r\n .startsWith(event.query.toLowerCase());\r\n });\r\n console.log(\r\n \"Comuni di residenza filtrati:\",\r\n filteredResidenceCity.value.length\r\n );\r\n if (\r\n filteredResidenceCity.value.length === 1 &&\r\n event.query.toLowerCase() ===\r\n filteredResidenceCity.value[0].locationName.toLowerCase()\r\n ) {\r\n //Passo al campo successivo\r\n personalInfo.value.residenceLocationId = selectedResidenceCity.value.id;\r\n if (address.value && address.value.$el){\r\n address.value.$el.focus();\r\n console.log('Cambio fuoco');\r\n }\r\n }\r\n }\r\n }\r\n }, 250);\r\n };\r\n\r\n const selectResidenceCity = (event: any) => {\r\n setTimeout(async () => {\r\n if (cities.length > 0 && selectedResidenceCity.value) {\r\n personalInfo.value.residenceLocationId = selectedResidenceCity.value.id;\r\n if (address.value && address.value.$el){\r\n address.value.$el.focus();\r\n console.log('Cambio fuoco');\r\n }\r\n } else {\r\n \r\n }\r\n }, 50);\r\n };\r\n\r\n const onNext = async () => {\r\n console.log(\"Valori inseriti: \", personalInfo.value);\r\n valitationErrors.value = !validate();\r\n if (!valitationErrors.value)\r\n {\r\n isPosting.value = true;\r\n console.log('validazione ok');\r\n //await actions.editPersonalInfo(personalInfo.value);\r\n await store.dispatch('editPersonalInfo', personalInfo.value);\r\n isPosting.value = false;\r\n\r\n //carico i dati personali nello store. \r\n await store.dispatch(\"loadPersonalInfo\");\r\n \r\n await router.push('/tabs/tab1/phone-confirmation');\r\n }\r\n };\r\n\r\n return {\r\n lang,\r\n isLoading,\r\n isToastOpen,\r\n setIsToastOpen,\r\n setIsLoading,\r\n errorMessage,\r\n //setErrorMessage,\r\n autocomplete1,\r\n autocomplete2,\r\n personalInfo,\r\n selectedBirthCity,\r\n selectedResidenceCity,\r\n filteredBirthCity,\r\n filteredResidenceCity,\r\n searchBirthCity,\r\n selectBirthCity,\r\n searchResidenceCity,\r\n selectResidenceCity,\r\n inputDataNascita,\r\n address,\r\n onNext,\r\n errors,\r\n isPosting,\r\n valitationErrors\r\n };\r\n },\r\n});\r\n","import { render } from \"./PersonalInfo.vue?vue&type=template&id=1edf7ea8&ts=true\"\nimport script from \"./PersonalInfo.vue?vue&type=script&lang=ts\"\nexport * from \"./PersonalInfo.vue?vue&type=script&lang=ts\"\n\nimport \"./PersonalInfo.vue?vue&type=style&index=0&id=1edf7ea8&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]])\n\nexport default __exports__"],"sourceRoot":""}