{"version":3,"sources":["webpack:///./src/views/v2/Detail.vue?2768","webpack:///./src/views/v2/Detail.vue?fa0d","webpack:///./node_modules/@capacitor/share/dist/esm/index.js","webpack:///./src/views/v2/Detail.vue?4b97","webpack:///./src/views/v2/Detail.vue"],"names":["_withScopeId","n","_pushScopeId","_popScopeId","_hoisted_1","key","_hoisted_2","class","_hoisted_3","style","_hoisted_4","_hoisted_5","src","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_createElementVNode","_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","_hoisted_37","_hoisted_38","_hoisted_39","_hoisted_40","_hoisted_41","_hoisted_42","_hoisted_43","for","_hoisted_44","_hoisted_45","_hoisted_46","_hoisted_47","_hoisted_48","_hoisted_49","_hoisted_50","_hoisted_51","_hoisted_52","_hoisted_53","_hoisted_54","_hoisted_55","_hoisted_56","_hoisted_57","_hoisted_58","_hoisted_59","_hoisted_60","_hoisted_61","_hoisted_62","_hoisted_63","_hoisted_64","_hoisted_65","_hoisted_66","_hoisted_67","_hoisted_68","_hoisted_69","_hoisted_70","_hoisted_71","_hoisted_72","_hoisted_73","_hoisted_74","_hoisted_75","_hoisted_76","_hoisted_77","_hoisted_78","_hoisted_79","_hoisted_80","_hoisted_81","_hoisted_82","render","_ctx","_cache","$props","$setup","$data","$options","_component_router_view","_resolveComponent","_component_ion_back_button","_component_ion_buttons","_component_ion_menu_button","_component_ald_logo","_component_ion_title","_component_ion_toolbar","_component_ion_header","_component_ion_loading","_component_ion_avatar","_component_ion_label","_component_ion_icon","_component_ion_chip","_component_ion_text","_component_Button","_component_ion_card_content","_component_ion_card","_component_ion_button","_component_Textarea","_component_ion_content","_component_ion_modal","_component_ion_toast","_component_ion_page","_openBlock","_createBlock","default","_withCtx","routerKey","_createVNode","color","slot","_","isLoading","cssClass","message","lang","Detail","InCaricamento","defunto","_createElementBlock","anagrafica","imageUrl","_toDisplayString","fullname","birthDate","innerHTML","displayData","Date","hasInnacurateDates","_createCommentVNode","dieDate","calcEta","relation","_createTextVNode","icon","closeCircle","onClick","$event","onRemoveRelation","nDayFromDieDay","timeOutline","AnniversarioMortePassato","AnniversarioMortePassatoPostfix","AnniversarioMorteOggi","AnniversarioMorteInArrivo","AnniversarioMorteInArrivoPostfix","presentAlertAddToFavorites","_Fragment","_renderList","activeCandlesCount","label","SendFlowers","onClickShop","iconPos","Other","presentActionSheet","currentPosition","PositionTitle","burialCityName","PositionCityLabel","cemeteryName","PositionCemeteryLabel","position","PositionNameLabel","latitude","longitude","presentAlertOpenMap","shape","size","_ctx$defunto$anagrafi","_ctx$defunto$anagrafi2","BioTitle","biography","isClaimed","BioInfo1","capitalizeFirstLetter","name","BioInfo2","BioInfo3","BioInfo4","presentAlertRivendica","BioRiscattaButtonText","edit","BioEditButtonText","_ctx$defunto$anagrafi3","_ctx$currentContentsI","_ctx$currentContentsI2","MesTitle","MesLabel1","id","placeholder","MesPalceholder","autoResize","rows","modelValue","newMessage","sending","onSendMessage","disabled","lastContents","c","contentType","text","title","createdFrom","currentUser","onContentDelete","humanizeDuration","publishDate","MesFrom","creatorProfileImageUrl","currentContentsInfo","hasOtherResults","isContentsLoading","onLoadOtherContents","currentRelatedDefunti","length","d","detail","gotoDetail","isAbuseModalOpen","breakpoints","onDidDismiss","setAbuseModalOpen","AbuseModalTitle","AbuseModalCancel","AbuseModalText1","AbuseModalText2","abuseMessage","onSendAbuseMessage","AbuseModalButtonText","isToastOpen","toastMessage","duration","toastColor","header","toastHeader","setIsToastOpen","Share","web","then","m","ShareWeb","defineComponent","components","IonHeader","IonToolbar","IonTitle","IonContent","IonPage","IonText","IonMenuButton","IonBackButton","IonButtons","IonLoading","aldLogo","IonLabel","IonList","IonItem","IonCard","IonCardHeader","IonCardContent","IonCardSubtitle","IonCardTitle","IonButton","IonAvatar","IonIcon","IonChip","IonToast","Textarea","Button","RouterView","IonModal","setup","store","useStore","router","useRouter","route","useRoute","path","ref","isShareable","isAdding","setIsLoading","state","value","setIsAdding","computed","current","_store$state$auth","auth","user","isAnonymous","displayName","currentContentInfo","console","log","personalInfo","isAuth","isAdmin","roles","includes","nDayFromBirthDay","setRelation","refreshToken","async","result","FirebaseMessaging","isSupported","checkPermissions","receive","requestPermissions","tokenResult","getToken","token","events","DataService","getEventSubscriptions","postdata","subscriptions","editEventSubscriptions","calcNumDayFrom","fromDate","today","rifDate","getFullYear","getMonth","getDate","dif","getTime","days","Math","ceil","toLocaleDateString","loadDefunto","dispatch","defuntoId","relatedUsers","onMounted","index","params","lastIndexOf","substring","canShare","PresentAlertError","msg","buttons","alert","alertController","create","subHeader","present","role","str","words","split","ret","i","charAt","toUpperCase","slice","toLowerCase","trim","_lang$value$Detail$Ca","_lang$value","_lang$value$Detail$Wa","_lang$value2","CancelButton","handler","contentId","WarnAnonimoTitle","onAddDefunto","mieiDefunti","items","filter","_state$value$current","_lang$value$Detail$Wa4","_lang$value7","_lang$value8","_lang$value9","WarnDefuntoOkButton","WarnDefuntoExistsTitle","WarnDefuntoExistsText","data","appUserId","dbUserId","_lang$value$Detail$Ca2","_lang$value3","_lang$value$Detail$Lo","_lang$value4","_lang$value$Detail$Wa2","_lang$value5","_lang$value$Detail$Wa3","_lang$value6","LoginButton","push","WarnAnonimoText","onAddCandle","_lang$value$Detail$Ca3","_lang$value10","_lang$value$Detail$Lo2","_lang$value11","_lang$value$Detail$Wa5","_lang$value12","_lang$value$Detail$Wa6","_lang$value13","availsableServices","hasShopAvailable","_lang$value$Detail$Ca4","_lang$value14","_lang$value$Detail$Lo3","_lang$value15","_lang$value$Detail$Wa7","_lang$value16","_lang$value$Detail$Wa8","_lang$value17","_defunto$value$anagra","_defunto$value","_defunto$value2","AlertAddToFavText1","AlertAddToFavText2","inputs","type","checked","AlertAddToFavConfirmText","presentAlertAddCandle","_defunto$value$anagra2","_defunto$value3","_defunto$value4","AlertAddCandleText1","AlertAddCandleText2","AlertAddCondelConfirmText","_defunto$value$anagra3","_defunto$value5","_defunto$value6","AlertRivendicaText1","AlertRivendicaText2","AlertRivendicaText3","AlertRivendicaConfirmText","phoneNumber","phoneVerified","_lang$value$Detail$Ca5","_lang$value18","_lang$value$Detail$Lo4","_lang$value19","_lang$value$Detail$Wa9","_lang$value20","_lang$value$Detail$Wa10","_lang$value21","ApriMappaHeader","ApriMappaBody1","ApriMappaBody2","ApriMappaConfirm","openMapInSystemBrowser","_defunto$value7","ActionAcquista","flowerOutline","ActionNoFollow","heartDislikeOutline","ActionFollow","heartOutline","ActionShare","shareOutline","defuntoUrl","getDefuntoShareLink","share","ShareTitle","ShareText","url","dialogTitle","ShareDialog","addCandleAvailable","ActionCandle","bonfireOutline","ActionEdit","createOutline","ActionRiscatta","ActionAbuse","warningOutline","ActionClose","close","areaId","globeOutline","_defunto$value8","_defunto$value9","_defunto$value10","cemeteryId","postoId","mapOutline","_defunto$value11","_defunto$value12","_defunto$value13","actionSheet","actionSheetController","ActionsTile","subject","sendMessage","diffInTime","floor","date","isInnacurate","toString","t1","t2","seconds","round","abs","_defunto$value14","_defunto$value15","window","open","locateOutline","__exports__"],"mappings":"kHAAA,W,yDCEA,MAAMA,EAAeC,IAAMC,eAAa,mBAAmBD,EAAEA,IAAIE,iBAAcF,GACzEG,EAAa,CAAEC,IAAK,GACpBC,EAAa,CAAEC,MAAO,OACtBC,EAAa,CACjBD,MAAO,QACPE,MAAO,CAAC,gBAAgB,QAEpBC,EAAa,CAAC,OACdC,EAAa,CACjBN,IAAK,EACLO,IAAK,2BAEDC,EAAa,CACjBN,MAAO,QACPE,MAAO,CAAC,gBAAgB,MAAM,eAAe,QAEzCK,EAAa,CAAEL,MAAO,CAAC,cAAc,SACrCM,EAAa,CA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oC,uBAAe,IAAAiW,OAAA,EAAzCA,EAA2CxV,WAAY,kBACrKyV,OAAOC,KAAK1C,EAAK,UAAW,iBAG9B,MAAO,CACL/V,UACAN,YACA2K,WACAgB,SACAyE,eACA5N,cACArC,OACA4D,wBACA8R,qBACAmD,sBACA7T,aACAE,gBACAnD,6BACAX,oBACAG,mBACAN,WACAyC,YACAlE,YACA+T,wBACA5B,cACA1N,wBACAzB,qBACA2B,OACAsC,mBACAG,oBACAM,sBACAD,eACAvC,KACA0C,cACAM,iBACAH,aACAF,eACAI,cACA7B,oBACAD,kBACAD,cACAS,sBACAH,sBACAE,oBACAE,wBACAI,cACAxF,WACA4K,mBACApK,iBACAC,oBACAd,eACAwC,sBACA8B,c,oCC5/BN,MAAM6T,GAA2B,KAAgB,GAAQ,CAAC,CAAC,SAASzb,IAAQ,CAAC,YAAY,qBAE1E,iB","file":"js/chunk-2ffd9c8d.73fc0b27.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!./Detail.vue?vue&type=style&index=0&id=50c0be09&scoped=true&lang=css\"","import { resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock, createVNode as _createVNode, withCtx as _withCtx, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, renderList as _renderList, Fragment as _Fragment, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-50c0be09\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { key: 0 }\nconst _hoisted_2 = { class: \"row\" }\nconst _hoisted_3 = {\n  class: \"col-4\",\n  style: {\"padding-right\":\"0px\"}\n}\nconst _hoisted_4 = [\"src\"]\nconst _hoisted_5 = {\n  key: 1,\n  src: \"/assets/icon/avatar.png\"\n}\nconst _hoisted_6 = {\n  class: \"col-8\",\n  style: {\"padding-right\":\"0px\",\"padding-left\":\"0px\"}\n}\nconst _hoisted_7 = { style: {\"font-weight\":\"bold\"} }\nconst _hoisted_8 = { key: 0 }\nconst _hoisted_9 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", {\n  class: \"graffitti-text\",\n  style: {\"margin-right\":\"2px\"}\n}, \"N.\", -1))\nconst _hoisted_10 = [\"innerHTML\"]\nconst _hoisted_11 = { key: 1 }\nconst _hoisted_12 = { key: 2 }\nconst _hoisted_13 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", {\n  class: \"graffitti-text\",\n  style: {\"margin-right\":\"2px\"}\n}, \"M.\", -1))\nconst _hoisted_14 = [\"innerHTML\"]\nconst _hoisted_15 = { key: 0 }\nconst _hoisted_16 = { class: \"graffitti-text\" }\nconst _hoisted_17 = {\n  key: 2,\n  class: \"mb-2\"\n}\nconst _hoisted_18 = {\n  key: 3,\n  class: \"mb-2\"\n}\nconst _hoisted_19 = {\n  key: 4,\n  class: \"mb-2\"\n}\nconst _hoisted_20 = { class: \"row\" }\nconst _hoisted_21 = { class: \"col\" }\nconst _hoisted_22 = { class: \"buttons-container float-start mt-2\" }\nconst _hoisted_23 = { class: \"buttons-container float-end mt-2\" }\nconst _hoisted_24 = { class: \"card-title\" }\nconst _hoisted_25 = { key: 0 }\nconst _hoisted_26 = { class: \"graffitti-text\" }\nconst _hoisted_27 = { class: \"px-2 py-1\" }\nconst _hoisted_28 = { key: 1 }\nconst _hoisted_29 = { class: \"graffitti-text\" }\nconst _hoisted_30 = { class: \"px-2 py-1\" }\nconst _hoisted_31 = { key: 2 }\nconst _hoisted_32 = { class: \"graffitti-text\" }\nconst _hoisted_33 = { class: \"px-2 py-1\" }\nconst _hoisted_34 = {\n  key: 0,\n  class: \"text-center mt-2\"\n}\nconst _hoisted_35 = { class: \"card-title\" }\nconst _hoisted_36 = [\"innerHTML\"]\nconst _hoisted_37 = { key: 1 }\nconst _hoisted_38 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"br\", null, null, -1))\nconst _hoisted_39 = { key: 2 }\nconst _hoisted_40 = {\n  key: 3,\n  class: \"text-center\"\n}\nconst _hoisted_41 = {\n  key: 4,\n  class: \"text-end\"\n}\nconst _hoisted_42 = { class: \"card-title\" }\nconst _hoisted_43 = { for: \"write\" }\nconst _hoisted_44 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"br\", null, null, -1))\nconst _hoisted_45 = { class: \"p-inputgroup pb-3 pt-2\" }\nconst _hoisted_46 = {\n  key: 0,\n  class: \"alert p-2 alert-info user-text\"\n}\nconst _hoisted_47 = {\n  key: 1,\n  class: \"alert p-2 alert-warning\"\n}\nconst _hoisted_48 = {\n  key: 2,\n  class: \"alert p-2 alert-secondary mb-1\"\n}\nconst _hoisted_49 = { class: \"row align-items-center\" }\nconst _hoisted_50 = {\n  key: 0,\n  class: \"col-auto\"\n}\nconst _hoisted_51 = [\"src\"]\nconst _hoisted_52 = { class: \"col\" }\nconst _hoisted_53 = { style: {\"font-style\":\"italic\"} }\nconst _hoisted_54 = { class: \"d-flex justify-content-between align-items-center flex-wrap\" }\nconst _hoisted_55 = {\n  key: 0,\n  style: {\"font-size\":\"0.75rem\"}\n}\nconst _hoisted_56 = [\"onClick\"]\nconst _hoisted_57 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"i\", {\n  style: {\"font-size\":\"0.75rem\"},\n  class: \"pi pi-trash\"\n}, null, -1))\nconst _hoisted_58 = { key: 1 }\nconst _hoisted_59 = { class: \"creator text-end\" }\nconst _hoisted_60 = [\"src\"]\nconst _hoisted_61 = {\n  key: 1,\n  src: \"/assets/icon/avatar.png\"\n}\nconst _hoisted_62 = {\n  key: 0,\n  class: \"text-center mt-2\"\n}\nconst _hoisted_63 = {\n  key: 1,\n  class: \"text-center mt-2\"\n}\nconst _hoisted_64 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"small\", null, \"Caricamento in corso...\", -1))\nconst _hoisted_65 = [\n  _hoisted_64\n]\nconst _hoisted_66 = {\n  key: 2,\n  class: \"mt-4\"\n}\nconst _hoisted_67 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"h6\", { class: \"px-3 my-title\" }, \"Potresti conoscere anche\", -1))\nconst _hoisted_68 = { class: \"d-flex flex-wrap\" }\nconst _hoisted_69 = [\"onClick\"]\nconst _hoisted_70 = {\n  class: \"defunto-container\",\n  style: {\"position\":\"relative\",\"min-height\":\"200px\"}\n}\nconst _hoisted_71 = [\"src\"]\nconst _hoisted_72 = {\n  key: 1,\n  src: \"/assets/icon/avatar.png\"\n}\nconst _hoisted_73 = { class: \"text-center my-title mt-1 card-title text\" }\nconst _hoisted_74 = {\n  class: \"bottom-info\",\n  style: {\"position\":\"absolute\",\"bottom\":\"0px\",\"right\":\"0px\",\"width\":\"100%\"}\n}\nconst _hoisted_75 = {\n  key: 0,\n  class: \"text-center\"\n}\nconst _hoisted_76 = { class: \"graffitti-text\" }\nconst _hoisted_77 = { class: \"text-center\" }\nconst _hoisted_78 = { key: 0 }\nconst _hoisted_79 = { key: 1 }\nconst _hoisted_80 = { class: \"card-title\" }\nconst _hoisted_81 = { class: \"pb-3 pt-2\" }\nconst _hoisted_82 = { class: \"text-center mb-3\" }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n  const _component_router_view = _resolveComponent(\"router-view\")!\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_ion_avatar = _resolveComponent(\"ion-avatar\")!\n  const _component_ion_label = _resolveComponent(\"ion-label\")!\n  const _component_ion_icon = _resolveComponent(\"ion-icon\")!\n  const _component_ion_chip = _resolveComponent(\"ion-chip\")!\n  const _component_ion_text = _resolveComponent(\"ion-text\")!\n  const _component_Button = _resolveComponent(\"Button\")!\n  const _component_ion_card_content = _resolveComponent(\"ion-card-content\")!\n  const _component_ion_card = _resolveComponent(\"ion-card\")!\n  const _component_ion_button = _resolveComponent(\"ion-button\")!\n  const _component_Textarea = _resolveComponent(\"Textarea\")!\n  const _component_ion_content = _resolveComponent(\"ion-content\")!\n  const _component_ion_modal = _resolveComponent(\"ion-modal\")!\n  const _component_ion_toast = _resolveComponent(\"ion-toast\")!\n  const _component_ion_page = _resolveComponent(\"ion-page\")!\n\n  return (_openBlock(), _createBlock(_component_ion_page, null, {\n    default: _withCtx(() => [\n      (_openBlock(), _createBlock(_component_router_view, { key: _ctx.routerKey })),\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, { \"default-href\": \"/tabs/tab1/results\" })\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\" }, {\n        default: _withCtx(() => [\n          (!_ctx.isLoading && _ctx.defunto)\n            ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n                _createVNode(_component_ion_card, null, {\n                  default: _withCtx(() => [\n                    _createVNode(_component_ion_card_content, null, {\n                      default: _withCtx(() => [\n                        _createElementVNode(\"div\", _hoisted_2, [\n                          _createElementVNode(\"div\", _hoisted_3, [\n                            _createVNode(_component_ion_avatar, null, {\n                              default: _withCtx(() => [\n                                (_ctx.defunto.anagrafica && _ctx.defunto.anagrafica.imageUrl)\n                                  ? (_openBlock(), _createElementBlock(\"img\", {\n                                      key: 0,\n                                      src: _ctx.defunto.anagrafica.imageUrl\n                                    }, null, 8, _hoisted_4))\n                                  : (_openBlock(), _createElementBlock(\"img\", _hoisted_5))\n                              ]),\n                              _: 1\n                            })\n                          ]),\n                          _createElementVNode(\"div\", _hoisted_6, [\n                            _createElementVNode(\"h2\", _hoisted_7, _toDisplayString(_ctx.defunto.anagrafica.fullname), 1),\n                            _createElementVNode(\"p\", null, [\n                              (_ctx.defunto.anagrafica && _ctx.defunto.anagrafica.birthDate)\n                                ? (_openBlock(), _createElementBlock(\"small\", _hoisted_8, [\n                                    _hoisted_9,\n                                    _createElementVNode(\"span\", {\n                                      innerHTML: _ctx.displayData(new Date(_ctx.defunto.anagrafica.birthDate), _ctx.defunto.anagrafica.hasInnacurateDates)\n                                    }, null, 8, _hoisted_10)\n                                  ]))\n                                : _createCommentVNode(\"\", true),\n                              (_ctx.defunto.anagrafica && _ctx.defunto.anagrafica.birthDate && _ctx.defunto.anagrafica.dieDate)\n                                ? (_openBlock(), _createElementBlock(\"span\", _hoisted_11, \" - \"))\n                                : _createCommentVNode(\"\", true),\n                              (_ctx.defunto.anagrafica && _ctx.defunto.anagrafica.dieDate)\n                                ? (_openBlock(), _createElementBlock(\"small\", _hoisted_12, [\n                                    _hoisted_13,\n                                    _createElementVNode(\"span\", {\n                                      innerHTML: _ctx.displayData(new Date(_ctx.defunto.anagrafica.dieDate), _ctx.defunto.anagrafica.hasInnacurateDates)\n                                    }, null, 8, _hoisted_14)\n                                  ]))\n                                : _createCommentVNode(\"\", true)\n                            ]),\n                            (_ctx.defunto.anagrafica && _ctx.defunto.anagrafica.birthDate && _ctx.defunto.anagrafica.dieDate)\n                              ? (_openBlock(), _createElementBlock(\"p\", _hoisted_15, [\n                                  _createElementVNode(\"small\", null, [\n                                    _createElementVNode(\"span\", _hoisted_16, _toDisplayString(_ctx.calcEta(new Date(_ctx.defunto.anagrafica.birthDate), new\r\n                    Date(_ctx.defunto.anagrafica.dieDate))) + \" anni\", 1)\n                                  ])\n                                ]))\n                              : _createCommentVNode(\"\", true),\n                            (_ctx.relation)\n                              ? (_openBlock(), _createBlock(_component_ion_chip, {\n                                  key: 1,\n                                  color: \"secondary\",\n                                  style: {\"margin-left\":\"0px\"}\n                                }, {\n                                  default: _withCtx(() => [\n                                    _createVNode(_component_ion_label, { color: \"dark\" }, {\n                                      default: _withCtx(() => [\n                                        _createTextVNode(_toDisplayString(_ctx.relation), 1)\n                                      ]),\n                                      _: 1\n                                    }),\n                                    _createVNode(_component_ion_icon, {\n                                      icon: _ctx.closeCircle,\n                                      onClick: _cache[0] || (_cache[0] = ($event: any) => (_ctx.onRemoveRelation()))\n                                    }, null, 8, [\"icon\"])\n                                  ]),\n                                  _: 1\n                                }))\n                              : _createCommentVNode(\"\", true),\n                            (_ctx.nDayFromDieDay > -3 && _ctx.nDayFromDieDay < 0)\n                              ? (_openBlock(), _createElementBlock(\"div\", _hoisted_17, [\n                                  _createVNode(_component_ion_icon, {\n                                    icon: _ctx.timeOutline,\n                                    style: {\"font-size\":\"15px\",\"vertical-align\":\"middle\",\"padding-right\":\"3px\",\"margin-top\":\"-2px\"}\n                                  }, null, 8, [\"icon\"]),\n                                  _createElementVNode(\"small\", null, [\n                                    _createVNode(_component_ion_text, { color: \"primary\" }, {\n                                      default: _withCtx(() => [\n                                        _createTextVNode(_toDisplayString(_ctx.lang.Detail.AnniversarioMortePassato) + \" \" + _toDisplayString(_ctx.nDayFromDieDay) + \" \" + _toDisplayString(_ctx.lang.Detail.AnniversarioMortePassatoPostfix), 1)\n                                      ]),\n                                      _: 1\n                                    })\n                                  ])\n                                ]))\n                              : _createCommentVNode(\"\", true),\n                            (_ctx.nDayFromDieDay == 0)\n                              ? (_openBlock(), _createElementBlock(\"div\", _hoisted_18, [\n                                  _createVNode(_component_ion_icon, {\n                                    icon: _ctx.timeOutline,\n                                    style: {\"font-size\":\"15px\",\"vertical-align\":\"middle\",\"padding-right\":\"3px\",\"margin-top\":\"-2px\"}\n                                  }, null, 8, [\"icon\"]),\n                                  _createElementVNode(\"small\", null, [\n                                    _createVNode(_component_ion_text, { color: \"primary\" }, {\n                                      default: _withCtx(() => [\n                                        _createTextVNode(_toDisplayString(_ctx.lang.Detail.AnniversarioMorteOggi), 1)\n                                      ]),\n                                      _: 1\n                                    })\n                                  ])\n                                ]))\n                              : _createCommentVNode(\"\", true),\n                            (_ctx.nDayFromDieDay > 0 && _ctx.nDayFromDieDay <= 20)\n                              ? (_openBlock(), _createElementBlock(\"div\", _hoisted_19, [\n                                  _createVNode(_component_ion_icon, {\n                                    icon: _ctx.timeOutline,\n                                    style: {\"font-size\":\"15px\",\"vertical-align\":\"middle\",\"padding-right\":\"3px\",\"margin-top\":\"-2px\"}\n                                  }, null, 8, [\"icon\"]),\n                                  _createElementVNode(\"small\", null, [\n                                    _createVNode(_component_ion_text, { color: \"primary\" }, {\n                                      default: _withCtx(() => [\n                                        _createTextVNode(_toDisplayString(_ctx.lang.Detail.AnniversarioMorteInArrivo) + \" \" + _toDisplayString(_ctx.nDayFromDieDay) + \" \" + _toDisplayString(_ctx.lang.Detail.AnniversarioMorteInArrivoPostfix), 1)\n                                      ]),\n                                      _: 1\n                                    })\n                                  ])\n                                ]))\n                              : _createCommentVNode(\"\", true)\n                          ])\n                        ]),\n                        _createElementVNode(\"div\", _hoisted_20, [\n                          _createElementVNode(\"div\", _hoisted_21, [\n                            _createElementVNode(\"div\", _hoisted_22, [\n                              (!_ctx.relation)\n                                ? (_openBlock(), _createBlock(_component_Button, {\n                                    key: 0,\n                                    icon: \"pi pi-heart\",\n                                    class: \"p-button-sm p-button-rounded p-button-outlined\",\n                                    onClick: _cache[1] || (_cache[1] = ($event: any) => (_ctx.presentAlertAddToFavorites()))\n                                  }))\n                                : _createCommentVNode(\"\", true),\n                              (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.defunto.anagrafica.activeCandlesCount, (n) => {\n                                return (_openBlock(), _createElementBlock(\"span\", {\n                                  key: n,\n                                  class: \"icon-candle-lg icon-primary\"\n                                }))\n                              }), 128))\n                            ]),\n                            _createElementVNode(\"div\", _hoisted_23, [\n                              _createVNode(_component_Button, {\n                                icon: \"pi icon-flower icon-secondary\",\n                                class: \"p-component p-button-sm p-button-rounded p-button-outlined p-text-button\",\n                                style: {\"margin-left\":\"5px\"},\n                                label: _ctx.lang.Detail.SendFlowers,\n                                onClick: _cache[2] || (_cache[2] = ($event: any) => (_ctx.onClickShop()))\n                              }, null, 8, [\"label\"]),\n                              _createVNode(_component_Button, {\n                                icon: \"pi pi-ellipsis-v\",\n                                iconPos: \"right\",\n                                label: _ctx.lang.Detail.Other,\n                                class: \"p-component p-button-sm p-button-rounded p-button-outlined p-text-button p-button-plain\",\n                                style: {\"margin-left\":\"5px\"},\n                                onClick: _cache[3] || (_cache[3] = ($event: any) => (_ctx.presentActionSheet()))\n                              }, null, 8, [\"label\"])\n                            ])\n                          ])\n                        ])\n                      ]),\n                      _: 1\n                    })\n                  ]),\n                  _: 1\n                }),\n                (_ctx.defunto.anagrafica && _ctx.defunto.anagrafica.currentPosition)\n                  ? (_openBlock(), _createBlock(_component_ion_card, { key: 0 }, {\n                      default: _withCtx(() => [\n                        _createVNode(_component_ion_card_content, null, {\n                          default: _withCtx(() => [\n                            _createElementVNode(\"p\", _hoisted_24, _toDisplayString(_ctx.lang.Detail.PositionTitle), 1),\n                            _createElementVNode(\"table\", null, [\n                              (_ctx.defunto.anagrafica.currentPosition.burialCityName)\n                                ? (_openBlock(), _createElementBlock(\"tr\", _hoisted_25, [\n                                    _createElementVNode(\"td\", null, [\n                                      _createElementVNode(\"small\", _hoisted_26, _toDisplayString(_ctx.lang.Detail.PositionCityLabel) + \":\", 1)\n                                    ]),\n                                    _createElementVNode(\"td\", _hoisted_27, _toDisplayString(_ctx.defunto.anagrafica.currentPosition.burialCityName), 1)\n                                  ]))\n                                : _createCommentVNode(\"\", true),\n                              (_ctx.defunto.anagrafica.currentPosition.cemeteryName)\n                                ? (_openBlock(), _createElementBlock(\"tr\", _hoisted_28, [\n                                    _createElementVNode(\"td\", null, [\n                                      _createElementVNode(\"small\", _hoisted_29, _toDisplayString(_ctx.lang.Detail.PositionCemeteryLabel) + \":\", 1)\n                                    ]),\n                                    _createElementVNode(\"td\", _hoisted_30, _toDisplayString(_ctx.defunto.anagrafica.currentPosition.cemeteryName), 1)\n                                  ]))\n                                : _createCommentVNode(\"\", true),\n                              (_ctx.defunto.anagrafica.currentPosition.position)\n                                ? (_openBlock(), _createElementBlock(\"tr\", _hoisted_31, [\n                                    _createElementVNode(\"td\", null, [\n                                      _createElementVNode(\"small\", _hoisted_32, _toDisplayString(_ctx.lang.Detail.PositionNameLabel) + \":\", 1)\n                                    ]),\n                                    _createElementVNode(\"td\", _hoisted_33, _toDisplayString(_ctx.defunto.anagrafica.currentPosition.position), 1)\n                                  ]))\n                                : _createCommentVNode(\"\", true)\n                            ]),\n                            (_ctx.defunto.anagrafica.currentPosition.latitude && _ctx.defunto.anagrafica.currentPosition.longitude)\n                              ? (_openBlock(), _createElementBlock(\"p\", _hoisted_34, [\n                                  _createVNode(_component_ion_button, {\n                                    onClick: _cache[4] || (_cache[4] = ($event: any) => (_ctx.presentAlertOpenMap())),\n                                    shape: \"round\",\n                                    size: \"small\"\n                                  }, {\n                                    default: _withCtx(() => [\n                                      _createTextVNode(\"Apri mappa\")\n                                    ]),\n                                    _: 1\n                                  })\n                                ]))\n                              : _createCommentVNode(\"\", true)\n                          ]),\n                          _: 1\n                        })\n                      ]),\n                      _: 1\n                    }))\n                  : _createCommentVNode(\"\", true),\n                (_ctx.defunto.anagrafica)\n                  ? (_openBlock(), _createBlock(_component_ion_card, { key: 1 }, {\n                      default: _withCtx(() => [\n                        _createVNode(_component_ion_card_content, null, {\n                          default: _withCtx(() => [\n                            _createElementVNode(\"p\", _hoisted_35, [\n                              _createElementVNode(\"span\", null, _toDisplayString(_ctx.lang.Detail.BioTitle), 1)\n                            ]),\n                            (_ctx.defunto.biography)\n                              ? (_openBlock(), _createElementBlock(\"div\", {\n                                  key: 0,\n                                  innerHTML: _ctx.defunto.biography,\n                                  style: {\"font-style\":\"italic\"},\n                                  class: \"mb-3\"\n                                }, null, 8, _hoisted_36))\n                              : _createCommentVNode(\"\", true),\n                            (!_ctx.isClaimed)\n                              ? (_openBlock(), _createElementBlock(\"p\", _hoisted_37, [\n                                  _createTextVNode(_toDisplayString(_ctx.lang.Detail.BioInfo1) + \" \" + _toDisplayString(_ctx.capitalizeFirstLetter(\r\n                  _ctx.defunto.anagrafica.name ?? _ctx.defunto.anagrafica.fullname\r\n                )) + \"?\", 1),\n                                  _hoisted_38,\n                                  _createTextVNode(\" \" + _toDisplayString(_ctx.lang.Detail.BioInfo2), 1)\n                                ]))\n                              : _createCommentVNode(\"\", true),\n                            (!_ctx.defunto.biography && _ctx.isClaimed)\n                              ? (_openBlock(), _createElementBlock(\"p\", _hoisted_39, _toDisplayString(_ctx.lang.Detail.BioInfo3) + \" \" + _toDisplayString(_ctx.capitalizeFirstLetter(\r\n                  _ctx.defunto.anagrafica.name ?? _ctx.defunto.anagrafica.fullname\r\n                )) + \". \" + _toDisplayString(_ctx.lang.Detail.BioInfo4), 1))\n                              : _createCommentVNode(\"\", true),\n                            (!_ctx.isClaimed)\n                              ? (_openBlock(), _createElementBlock(\"p\", _hoisted_40, [\n                                  _createVNode(_component_ion_button, {\n                                    onClick: _cache[5] || (_cache[5] = ($event: any) => (_ctx.presentAlertRivendica())),\n                                    shape: \"round\",\n                                    size: \"small\"\n                                  }, {\n                                    default: _withCtx(() => [\n                                      _createTextVNode(_toDisplayString(_ctx.lang.Detail.BioRiscattaButtonText), 1)\n                                    ]),\n                                    _: 1\n                                  })\n                                ]))\n                              : _createCommentVNode(\"\", true),\n                            (_ctx.isClaimed)\n                              ? (_openBlock(), _createElementBlock(\"p\", _hoisted_41, [\n                                  _createVNode(_component_ion_button, {\n                                    onClick: _cache[6] || (_cache[6] = ($event: any) => (_ctx.edit())),\n                                    shape: \"round\",\n                                    size: \"small\"\n                                  }, {\n                                    default: _withCtx(() => [\n                                      _createTextVNode(_toDisplayString(_ctx.lang.Detail.BioEditButtonText), 1)\n                                    ]),\n                                    _: 1\n                                  })\n                                ]))\n                              : _createCommentVNode(\"\", true)\n                          ]),\n                          _: 1\n                        })\n                      ]),\n                      _: 1\n                    }))\n                  : _createCommentVNode(\"\", true),\n                _createVNode(_component_ion_card, null, {\n                  default: _withCtx(() => [\n                    _createVNode(_component_ion_card_content, null, {\n                      default: _withCtx(() => [\n                        _createElementVNode(\"p\", _hoisted_42, _toDisplayString(_ctx.lang.Detail.MesTitle), 1),\n                        _createElementVNode(\"label\", _hoisted_43, [\n                          _createTextVNode(_toDisplayString(_ctx.lang.Detail.MesLabel1) + \" \" + _toDisplayString(_ctx.capitalizeFirstLetter(\r\n                  _ctx.defunto.anagrafica.name ?? _ctx.defunto.anagrafica.fullname\r\n                )) + \"!\", 1),\n                          _hoisted_44\n                        ]),\n                        _createElementVNode(\"div\", _hoisted_45, [\n                          _createVNode(_component_Textarea, {\n                            id: \"write\",\n                            placeholder: _ctx.lang.Detail.MesPalceholder,\n                            autoResize: true,\n                            rows: \"1\",\n                            class: \"textarea\",\n                            modelValue: _ctx.newMessage,\n                            \"onUpdate:modelValue\": _cache[7] || (_cache[7] = ($event: any) => ((_ctx.newMessage) = $event))\n                          }, null, 8, [\"placeholder\", \"modelValue\"]),\n                          (!_ctx.sending)\n                            ? (_openBlock(), _createBlock(_component_Button, {\n                                key: 0,\n                                icon: \"pi pi-send\",\n                                onClick: _cache[8] || (_cache[8] = ($event: any) => (_ctx.onSendMessage()))\n                              }))\n                            : _createCommentVNode(\"\", true),\n                          (_ctx.sending)\n                            ? (_openBlock(), _createBlock(_component_Button, {\n                                key: 1,\n                                icon: \"pi pi-send\",\n                                disabled: true\n                              }))\n                            : _createCommentVNode(\"\", true)\n                        ]),\n                        (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.defunto.lastContents, (c) => {\n                          return (_openBlock(), _createElementBlock(\"div\", {\n                            key: c.id,\n                            class: \"simple-content-container mb-2\"\n                          }, [\n                            (c.contentType === 'Message')\n                              ? (_openBlock(), _createElementBlock(\"p\", _hoisted_46, _toDisplayString(c.text), 1))\n                              : _createCommentVNode(\"\", true),\n                            (c.contentType === 'Candle')\n                              ? (_openBlock(), _createElementBlock(\"p\", _hoisted_47, \"Acceso un cero virtuale 🕯️\"))\n                              : _createCommentVNode(\"\", true),\n                            (c.contentType === 'Order')\n                              ? (_openBlock(), _createElementBlock(\"div\", _hoisted_48, [\n                                  _createElementVNode(\"div\", _hoisted_49, [\n                                    (c.imageUrl)\n                                      ? (_openBlock(), _createElementBlock(\"div\", _hoisted_50, [\n                                          _createElementVNode(\"img\", {\n                                            class: \"img-fluid\",\n                                            src: c.imageUrl,\n                                            style: {\"width\":\"64px\"}\n                                          }, null, 8, _hoisted_51)\n                                        ]))\n                                      : _createCommentVNode(\"\", true),\n                                    _createElementVNode(\"div\", _hoisted_52, [\n                                      _createElementVNode(\"p\", null, [\n                                        _createElementVNode(\"strong\", null, _toDisplayString(c.title), 1)\n                                      ]),\n                                      _createElementVNode(\"p\", _hoisted_53, _toDisplayString(c.text), 1)\n                                    ])\n                                  ])\n                                ]))\n                              : _createCommentVNode(\"\", true),\n                            _createElementVNode(\"div\", _hoisted_54, [\n                              (c.createdFrom == _ctx.currentUser)\n                                ? (_openBlock(), _createElementBlock(\"p\", _hoisted_55, [\n                                    _createElementVNode(\"a\", {\n                                      onClick: ($event: any) => (_ctx.onContentDelete(c.id))\n                                    }, [\n                                      _hoisted_57,\n                                      _createTextVNode(\" Elimina\")\n                                    ], 8, _hoisted_56)\n                                  ]))\n                                : (_openBlock(), _createElementBlock(\"p\", _hoisted_58)),\n                              _createElementVNode(\"p\", _hoisted_59, [\n                                _createTextVNode(_toDisplayString(_ctx.humanizeDuration(c.publishDate)) + \", \" + _toDisplayString(_ctx.lang.Detail.MesFrom) + \" \" + _toDisplayString(c.createdFrom) + \" \", 1),\n                                _createVNode(_component_ion_avatar, { style: {\"display\":\"inline\"} }, {\n                                  default: _withCtx(() => [\n                                    (c.creatorProfileImageUrl)\n                                      ? (_openBlock(), _createElementBlock(\"img\", {\n                                          key: 0,\n                                          src: c.creatorProfileImageUrl\n                                        }, null, 8, _hoisted_60))\n                                      : (_openBlock(), _createElementBlock(\"img\", _hoisted_61))\n                                  ]),\n                                  _: 2\n                                }, 1024)\n                              ])\n                            ])\n                          ]))\n                        }), 128)),\n                        (_ctx.currentContentsInfo?.hasOtherResults && !_ctx.isContentsLoading)\n                          ? (_openBlock(), _createElementBlock(\"p\", _hoisted_62, [\n                              _createVNode(_component_ion_button, {\n                                size: \"small\",\n                                shape: \"round\",\n                                color: \"light\",\n                                onClick: _cache[9] || (_cache[9] = ($event: any) => (_ctx.onLoadOtherContents()))\n                              }, {\n                                default: _withCtx(() => [\n                                  _createTextVNode(\"Carica precedenti\")\n                                ]),\n                                _: 1\n                              })\n                            ]))\n                          : _createCommentVNode(\"\", true),\n                        (_ctx.currentContentsInfo?.hasOtherResults && _ctx.isContentsLoading)\n                          ? (_openBlock(), _createElementBlock(\"p\", _hoisted_63, _hoisted_65))\n                          : _createCommentVNode(\"\", true)\n                      ]),\n                      _: 1\n                    })\n                  ]),\n                  _: 1\n                }),\n                (_ctx.currentRelatedDefunti && _ctx.currentRelatedDefunti.length > 0)\n                  ? (_openBlock(), _createElementBlock(\"div\", _hoisted_66, [\n                      _hoisted_67,\n                      _createElementVNode(\"div\", _hoisted_68, [\n                        (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.currentRelatedDefunti, (d) => {\n                          return (_openBlock(), _createElementBlock(\"div\", {\n                            class: \"col-6 col-lg-3 m-0 p-0\",\n                            key: d.id,\n                            detail: \"true\",\n                            onClick: ($event: any) => (_ctx.gotoDetail(d.id))\n                          }, [\n                            _createVNode(_component_ion_card, { class: \"defunto-card\" }, {\n                              default: _withCtx(() => [\n                                _createVNode(_component_ion_card_content, null, {\n                                  default: _withCtx(() => [\n                                    _createElementVNode(\"div\", _hoisted_70, [\n                                      _createElementVNode(\"div\", null, [\n                                        _createVNode(_component_ion_avatar, { class: \"mx-auto\" }, {\n                                          default: _withCtx(() => [\n                                            (d.imageUrl)\n                                              ? (_openBlock(), _createElementBlock(\"img\", {\n                                                  key: 0,\n                                                  src: d.imageUrl\n                                                }, null, 8, _hoisted_71))\n                                              : (_openBlock(), _createElementBlock(\"img\", _hoisted_72))\n                                          ]),\n                                          _: 2\n                                        }, 1024)\n                                      ]),\n                                      _createElementVNode(\"div\", _hoisted_73, [\n                                        _createElementVNode(\"small\", null, _toDisplayString(d.fullname), 1)\n                                      ]),\n                                      _createElementVNode(\"div\", _hoisted_74, [\n                                        (d.birthDate && d.dieDate)\n                                          ? (_openBlock(), _createElementBlock(\"p\", _hoisted_75, [\n                                              _createElementVNode(\"small\", _hoisted_76, \"- \" + _toDisplayString(_ctx.calcEta(new\r\n                          Date(d.birthDate), new Date(d.dieDate))) + \" anni -\", 1)\n                                            ]))\n                                          : _createCommentVNode(\"\", true),\n                                        _createElementVNode(\"p\", _hoisted_77, [\n                                          (d.currentPosition && d.currentPosition.cemeteryName)\n                                            ? (_openBlock(), _createElementBlock(\"small\", _hoisted_78, _toDisplayString(d.currentPosition.cemeteryName), 1))\n                                            : _createCommentVNode(\"\", true),\n                                          (d.currentPosition && d.currentPosition.burialCityName)\n                                            ? (_openBlock(), _createElementBlock(\"small\", _hoisted_79, \" (\" + _toDisplayString(d.currentPosition.burialCityName) + \")\", 1))\n                                            : _createCommentVNode(\"\", true)\n                                        ])\n                                      ])\n                                    ])\n                                  ]),\n                                  _: 2\n                                }, 1024)\n                              ]),\n                              _: 2\n                            }, 1024)\n                          ], 8, _hoisted_69))\n                        }), 128))\n                      ])\n                    ]))\n                  : _createCommentVNode(\"\", true),\n                _createVNode(_component_ion_modal, {\n                  \"is-open\": _ctx.isAbuseModalOpen,\n                  \"initial-breakpoint\": 0.85,\n                  breakpoints: [0, 0.25, 0.5, 0.85],\n                  onDidDismiss: _cache[13] || (_cache[13] = ($event: any) => (_ctx.setAbuseModalOpen(false)))\n                }, {\n                  default: _withCtx(() => [\n                    _createVNode(_component_ion_header, null, {\n                      default: _withCtx(() => [\n                        _createVNode(_component_ion_toolbar, null, {\n                          default: _withCtx(() => [\n                            _createVNode(_component_ion_title, null, {\n                              default: _withCtx(() => [\n                                _createTextVNode(_toDisplayString(_ctx.lang.Detail.AbuseModalTitle), 1)\n                              ]),\n                              _: 1\n                            }),\n                            _createVNode(_component_ion_buttons, { slot: \"end\" }, {\n                              default: _withCtx(() => [\n                                _createVNode(_component_ion_button, {\n                                  onClick: _cache[10] || (_cache[10] = ($event: any) => (_ctx.setAbuseModalOpen(false)))\n                                }, {\n                                  default: _withCtx(() => [\n                                    _createTextVNode(_toDisplayString(_ctx.lang.Detail.AbuseModalCancel), 1)\n                                  ]),\n                                  _: 1\n                                })\n                              ]),\n                              _: 1\n                            })\n                          ]),\n                          _: 1\n                        })\n                      ]),\n                      _: 1\n                    }),\n                    _createVNode(_component_ion_content, { class: \"ion-padding\" }, {\n                      default: _withCtx(() => [\n                        _createElementVNode(\"p\", _hoisted_80, _toDisplayString(_ctx.lang.Detail.AbuseModalText1) + \" \" + _toDisplayString(_ctx.defunto.anagrafica.fullname) + \"?\", 1),\n                        _createElementVNode(\"small\", null, _toDisplayString(_ctx.lang.Detail.AbuseModalText2), 1),\n                        _createElementVNode(\"div\", _hoisted_81, [\n                          _createVNode(_component_Textarea, {\n                            id: \"write\",\n                            placeholder: _ctx.lang.Detail.MesPalceholder,\n                            autoResize: true,\n                            rows: \"7\",\n                            class: \"textarea\",\n                            modelValue: _ctx.abuseMessage,\n                            \"onUpdate:modelValue\": _cache[11] || (_cache[11] = ($event: any) => ((_ctx.abuseMessage) = $event)),\n                            style: {\"width\":\"100%\"}\n                          }, null, 8, [\"placeholder\", \"modelValue\"]),\n                          _createElementVNode(\"p\", _hoisted_82, [\n                            _createVNode(_component_ion_button, {\n                              shape: \"round\",\n                              onClick: _cache[12] || (_cache[12] = ($event: any) => (_ctx.onSendAbuseMessage()))\n                            }, {\n                              default: _withCtx(() => [\n                                _createTextVNode(_toDisplayString(_ctx.lang.Detail.AbuseModalButtonText) + \" >\", 1)\n                              ]),\n                              _: 1\n                            })\n                          ])\n                        ])\n                      ]),\n                      _: 1\n                    })\n                  ]),\n                  _: 1\n                }, 8, [\"is-open\"]),\n                _createVNode(_component_ion_toast, {\n                  \"is-open\": _ctx.isToastOpen,\n                  message: _ctx.toastMessage,\n                  duration: 5000,\n                  color: _ctx.toastColor,\n                  header: _ctx.toastHeader,\n                  position: \"top\",\n                  onDidDismiss: _cache[14] || (_cache[14] = ($event: any) => (_ctx.setIsToastOpen(false)))\n                }, null, 8, [\"is-open\", \"message\", \"color\", \"header\"])\n              ]))\n            : _createCommentVNode(\"\", true)\n        ]),\n        _: 1\n      })\n    ]),\n    _: 1\n  }))\n}","import { registerPlugin } from '@capacitor/core';\nconst Share = registerPlugin('Share', {\n    web: () => import('./web').then(m => new m.ShareWeb()),\n});\nexport * from './definitions';\nexport { Share };\n//# sourceMappingURL=index.js.map","\r\nimport {\r\n  IonPage,\r\n  IonHeader,\r\n  IonToolbar,\r\n  IonTitle,\r\n  IonContent,\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  IonChip,\r\n  IonModal,\r\n  IonToast,\r\n  alertController,\r\n  actionSheetController,\r\n} from \"@ionic/vue\";\r\nimport {\r\n  computed,\r\n  defineComponent,\r\n  onBeforeMount,\r\n  onMounted,\r\n  ref,\r\n  watch,\r\n} from \"vue\";\r\nimport aldLogo from \"@/components/aldilapp/shared/ald-logo.vue\";\r\nimport { useStore } from \"vuex\";\r\nimport { key } from \"../../store\";\r\nimport { useRoute, useRouter, RouterView } from \"vue-router\";\r\nimport {\r\n  heartOutline,\r\n  locateOutline,\r\n  closeCircle,\r\n  bonfireOutline,\r\n  close,\r\n  createOutline,\r\n  warningOutline,\r\n  flowerOutline, heartDislikeOutline, shareOutline, timeOutline, mapOutline, globeOutline\r\n} from \"ionicons/icons\";\r\n\r\nimport { NewRelationAppUserDefuntoDTO } from \"@/models\";\r\nimport { DataService } from \"@/services/data.service\";\r\nimport { Share } from '@capacitor/share';\r\nimport Textarea from \"primevue/textarea\";\r\nimport Button from \"primevue/button\";\r\nimport { FirebaseMessaging } from '@capacitor-firebase/messaging';\r\n\r\n\r\n//import { GoogleMap, Marker } from '@capacitor/google-maps';\r\n\r\n\r\nexport default defineComponent({\r\n  name: \"Detail\",\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    IonChip,\r\n    IonToast,\r\n    Textarea,\r\n    Button,\r\n    RouterView,\r\n    IonModal,\r\n\r\n  },\r\n\r\n  setup() {\r\n    const store = useStore(key);\r\n    const router = useRouter();\r\n    const route = useRoute();\r\n    const routerKey = route.path;\r\n    const id = ref<number | null>();\r\n\r\n    const isShareable = ref(false);\r\n    const isLoading = ref(false);\r\n    const isAdding = ref(false);\r\n    const isAbuseModalOpen = ref(false);\r\n    const isMapModalOpen = ref(false);\r\n    const isToastOpen = ref(false);\r\n    const isContentsLoading = ref(false);\r\n    const mapRef = ref<InstanceType<typeof HTMLElement> | null>(null);\r\n    const mapObj = ref();\r\n    const setIsLoading = (state: boolean) => (isLoading.value = state);\r\n    const setIsAdding = (state: boolean) => (isAdding.value = state);\r\n    const setAbuseModalOpen = (state: boolean) => (isAbuseModalOpen.value = state);\r\n    const setMapModalOpen = (state: boolean) => (isMapModalOpen.value = state);\r\n    const setIsToastOpen = (state: boolean) => (isToastOpen.value = state);\r\n    const lang = computed(() => store.state.lang);\r\n    const defunto = computed(() => store.state.current);\r\n    const currentUser = computed(() => store.state.auth?.user && !store.state.auth.user.isAnonymous && store.state.auth.user.displayName ? store.state.auth.user.displayName : \"\");\r\n    const currentContentsInfo = computed(() => store.state.currentContentInfo);\r\n    const currentRelatedDefunti = computed(() => store.state.currentRelatedDefunti);\r\n    console.log('currentUser: ', currentUser.value);\r\n    const state = computed(() => store.state);\r\n    const sending = ref(false);\r\n    const personalInfo = computed(() => store.state.personalInfo);\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    const isAdmin = computed(() => {\r\n      return (\r\n        store.state.auth &&\r\n        store.state.auth.user &&\r\n        !store.state.auth.user.isAnonymous &&\r\n        (store.state.auth.roles.includes('CemeteryOperator') || store.state.auth.roles.includes('Admin'))\r\n      );\r\n    });\r\n\r\n    const newMessage = ref(\"\");\r\n    const relation = ref(\"\");\r\n    const isClaimed = ref(false);\r\n    const abuseMessage = ref(\"\");\r\n    const toastMessage = ref(\"\");\r\n    const toastColor = ref(\"\");\r\n    const toastHeader = ref(\"\");\r\n    const nDayFromBirthDay = ref(-1);\r\n    const nDayFromDieDay = ref(-100);\r\n    const setRelation = (state: string) => (relation.value = state);\r\n\r\n    const refreshToken = async () => {\r\n      console.log('Refresh FCM Token');\r\n      const result = await FirebaseMessaging.isSupported();\r\n      console.log('FCM isSupported: ', result);\r\n\r\n      if (result && result.isSupported) {\r\n        const result = await FirebaseMessaging.checkPermissions();\r\n        console.log('FCM checkPermissions: ', result);\r\n        if (result.receive !== \"granted\") {\r\n          const result = await FirebaseMessaging.requestPermissions();\r\n          console.log('FCM requestPermissions: ', result.receive);\r\n        }\r\n        const tokenResult = await FirebaseMessaging.getToken({});\r\n        console.log('Token result: ', tokenResult);\r\n        if (tokenResult && tokenResult.token && tokenResult.token.length > 0) {\r\n          const events = await DataService.getEventSubscriptions();\r\n          const postdata = { token: tokenResult.token, subscriptions: events };\r\n          await DataService.editEventSubscriptions(postdata);\r\n          console.log(\"Refreshed FCM Token: \", tokenResult.token);\r\n        }\r\n      }\r\n      else {\r\n        console.log(\"FCM not supported!\")\r\n      }\r\n    };\r\n\r\n    const calcNumDayFrom = function (fromDate: Date | null) {\r\n      if (fromDate == null)\r\n        return -100;\r\n      const today = new Date();\r\n      const rifDate = new Date(today.getFullYear(), new Date(fromDate).getMonth(), new Date(fromDate).getDate());\r\n      const dif = rifDate.getTime() - today.getTime();\r\n      const days = Math.ceil(dif / (1000 * 3600 * 24));\r\n      console.log('calcNumDayFrom ', rifDate.toLocaleDateString(), ':', days)\r\n      return days;\r\n    };\r\n\r\n    const loadDefunto = async (defuntoId: number): Promise<void> => {\r\n      if (!isLoading.value) {\r\n        setIsLoading(true);\r\n        await store.dispatch(\"selectDetail\", defuntoId);\r\n        console.log(\"Caricamento dati defunto \" + defuntoId, defunto.value);\r\n        if (defunto.value && defunto.value.relatedUsers.length > 0) {\r\n          setRelation(defunto.value.relatedUsers[0].relation);\r\n          isClaimed.value = defunto.value.relatedUsers[0].isClaimed;\r\n        }\r\n        //if (defunto.value && defunto.value.anagrafica && defunto.value.anagrafica.birthDate)\r\n        //  nDayFromBirthDay.value = calcNumDayFrom(defunto.value.anagrafica.birthDate)  \r\n        if (defunto.value && defunto.value.anagrafica && defunto.value.anagrafica.dieDate)\r\n          nDayFromDieDay.value = calcNumDayFrom(defunto.value.anagrafica.dieDate)\r\n        setIsLoading(false);\r\n      }\r\n    };\r\n\r\n    /*const createMap = async () => {\r\n      const latitude = defunto.value?.anagrafica.currentPosition?.latitude!;\r\n      const longitude = defunto.value?.anagrafica.currentPosition?.longitude!;\r\n      const apiKey = process.env.VUE_APP_GMAP_KEY;\r\n      if (!apiKey)\r\n        console.log('api key google map non definta');\r\n      if (!mapRef.value)\r\n        console.log('Riferimento mapRef undefined');\r\n      console.log('Latitude', latitude);\r\n      console.log('Longitude', longitude);\r\n      \r\n        mapObj.value = await GoogleMap.create({\r\n        id: 'map', // Unique identifier for this map instance\r\n        element: mapRef.value!, // reference to the capacitor-google-map element\r\n        apiKey: apiKey!, // Your Google Maps API Key\r\n        config: {\r\n          center: {\r\n            // The initial position to be rendered by the map\r\n            lat: latitude,\r\n            lng: longitude\r\n          },\r\n          zoom: 18, // The initial zoom level\r\n        },\r\n      });\r\n\r\n      const markerId = await mapObj.value.addMarker({\r\n        coordinate: {\r\n          lat: latitude,\r\n          lng: longitude\r\n        },\r\n        title: defunto.value?.anagrafica.fullname,\r\n        snippet: defunto.value?.anagrafica.currentPosition?.position,\r\n        iconUrl: ''\r\n      });\r\n\r\n      //await mapObj.value.enableCurrentLocation(true);\r\n\r\n      console.log('Mappa creata')\r\n    };*/\r\n\r\n    onMounted(async () => {\r\n      console.log(\"Mounted: \", route.path);\r\n      const index = route.params.id.lastIndexOf('-');\r\n      if (index < 0)\r\n        id.value = +route.params.id;\r\n      else\r\n        id.value = +(route.params.id as string).substring(index + 1);\r\n\r\n      await loadDefunto(id.value);\r\n      await store.dispatch('loadCurrentRelatedDefunti', id.value);\r\n\r\n      const result = await Share.canShare();\r\n      isShareable.value = result.value;\r\n\r\n      /* if (defunto.value?.anagrafica.currentPosition?.latitude && defunto.value?.anagrafica.currentPosition?.longitude)\r\n       {\r\n         console.log('Defunto geolocalizzato');\r\n         await createMap();\r\n       }*/\r\n    });\r\n\r\n\r\n\r\n    const PresentAlertError = async (\r\n      title: string,\r\n      msg: string,\r\n      buttons: Array<any>\r\n    ) => {\r\n      const alert = await alertController.create({\r\n        cssClass: \"my-alert-class\",\r\n        header: title,\r\n        subHeader: \"\",\r\n        message: msg,\r\n        buttons,\r\n      });\r\n      await alert.present();\r\n      const { role } = await alert.onDidDismiss();\r\n      console.log(\"onDidDismiss resolved with role\", role);\r\n    };\r\n\r\n    const capitalizeFirstLetter = (str: string): string => {\r\n      const words = str.split(\" \");\r\n      let ret = \"\";\r\n      for (let i = 0; i < words.length; i++) {\r\n        ret =\r\n          ret +\r\n          words[i].charAt(0).toUpperCase() +\r\n          words[i].slice(1).toLowerCase() +\r\n          \" \";\r\n      }\r\n      return ret.trim();\r\n    };\r\n\r\n    const onContentDelete = async (contentId: number) => {\r\n      const buttons: Array<any> = [\r\n        {\r\n          text: lang.value?.Detail.CancelButton ?? \"Annulla\",\r\n          role: \"cancel\",\r\n          handler: () => {\r\n            console.log(\"Eliminazione annullata\");\r\n          },\r\n        },\r\n        {\r\n          text: 'Si. Elimina!',\r\n          handler: async () => {\r\n            console.log('Conferma eliminazione');\r\n            isContentsLoading.value = true;\r\n            await store.dispatch('removeContent', contentId);\r\n            isContentsLoading.value = false;\r\n          },\r\n        },\r\n      ];\r\n      PresentAlertError(\r\n        lang.value?.Detail.WarnAnonimoTitle ?? \"ATTENZIONE!\",\r\n        \"Confermi l'eliminazione del contenuto?\",\r\n        buttons\r\n      );\r\n    };\r\n\r\n    const onLoadOtherContents = async (): Promise<void> => {\r\n      isContentsLoading.value = true;\r\n      await store.dispatch('loadOtherContents');\r\n      isContentsLoading.value = false;\r\n    };\r\n\r\n    const onAddDefunto = async (): Promise<void> => {\r\n\r\n      console.log(\"isAuth\", isAuth.value);\r\n      if (!isAuth.value) {\r\n        const buttons: Array<any> = [\r\n          {\r\n            text: lang.value?.Detail.CancelButton ?? \"Annulla\",\r\n            role: \"cancel\",\r\n            handler: () => {\r\n              console.log(\"Cancel clicked\");\r\n            },\r\n          },\r\n          {\r\n            text: lang.value?.Detail.LoginButton ?? \"Accedi\",\r\n            handler: () => {\r\n              router.push(\"/login\");\r\n            },\r\n          },\r\n        ];\r\n        PresentAlertError(\r\n          lang.value?.Detail.WarnAnonimoTitle ?? \"ATTENZIONE!\",\r\n          lang.value?.Detail.WarnAnonimoText ??\r\n          \"Questa funzione è abilitata solo per gli utenti registrati.\",\r\n          buttons\r\n        );\r\n      } else if (\r\n        state.value.mieiDefunti.items.filter(\r\n          (i) => i.id == state.value.current?.anagrafica.id\r\n        ).length > 0\r\n      ) {\r\n        const buttons: Array<any> = [\r\n          {\r\n            text: lang.value?.Detail.WarnDefuntoOkButton ?? \"OK\",\r\n            role: \"cancel\",\r\n            handler: () => {\r\n              console.log(\"Cancel clicked\");\r\n            },\r\n          },\r\n        ];\r\n        PresentAlertError(\r\n          lang.value?.Detail.WarnDefuntoExistsTitle,\r\n          lang.value?.Detail.WarnDefuntoExistsText,\r\n          buttons\r\n        );\r\n      } else {\r\n        setIsAdding(true);\r\n        const data: NewRelationAppUserDefuntoDTO = {\r\n          defuntoId: defunto.value!.anagrafica.id,\r\n          appUserId: state.value!.auth!.dbUserId!,\r\n          relation: relation.value,\r\n          isClaimed: false,\r\n        };\r\n        await store.dispatch(\"addDefunto\", data);\r\n        setIsAdding(false);\r\n        console.log(\"Aggiunto defunto \" + route.params.id);\r\n\r\n        await refreshToken();\r\n      }\r\n    };\r\n\r\n    const onAddCandle = async (): Promise<void> => {\r\n      if (!isAuth.value) {\r\n        const buttons: Array<any> = [\r\n          {\r\n            text: lang.value?.Detail.CancelButton ?? \"Annulla\",\r\n            role: \"cancel\",\r\n            handler: () => {\r\n              console.log(\"Cancel clicked\");\r\n            },\r\n          },\r\n          {\r\n            text: lang.value?.Detail.LoginButton ?? \"Accedi\",\r\n            handler: () => {\r\n              router.push(\"/login\");\r\n            },\r\n          },\r\n        ];\r\n        PresentAlertError(\r\n          lang.value?.Detail.WarnAnonimoTitle ?? \"ATTENZIONE!\",\r\n          lang.value?.Detail.WarnAnonimoText ??\r\n          \"Questa funzione è abilitata solo per gli utenti registrati.\",\r\n          buttons\r\n        );\r\n      } else {\r\n        await store.dispatch(\"addCandle\");\r\n        console.log(\"Added candle!\");\r\n      }\r\n    };\r\n\r\n    const onRemoveRelation = async () => {\r\n      await store.dispatch(\"removeDefunto\");\r\n      setRelation(\"\");\r\n      console.log(\"Rimosso defunto \" + route.params.id);\r\n    };\r\n\r\n    const onClickShop = (): void => {\r\n      if (\r\n        defunto.value &&\r\n        defunto.value.availsableServices &&\r\n        defunto.value.availsableServices.hasShopAvailable\r\n      ) {\r\n        const route = \"/tabs/shop\";\r\n        router.push(route);\r\n      } else {\r\n        PresentAlertError(\r\n          \"ATTENZIONE!\",\r\n          \"Su questo cimitero il servizio di invio fiori non è ancora attivo.\",\r\n          [\"Ok\"]\r\n        );\r\n      }\r\n    };\r\n\r\n    const onSendMessage = async () => {\r\n      sending.value = true;\r\n      if (!isAuth.value) {\r\n        const buttons: Array<any> = [\r\n          {\r\n            text: lang.value?.Detail.CancelButton ?? \"Annulla\",\r\n            role: \"cancel\",\r\n            handler: () => {\r\n              console.log(\"Cancel clicked\");\r\n            },\r\n          },\r\n          {\r\n            text: lang.value?.Detail.LoginButton ?? \"Accedi\",\r\n            handler: () => {\r\n              router.push(\"/login\");\r\n            },\r\n          },\r\n        ];\r\n        PresentAlertError(\r\n          lang.value?.Detail.WarnAnonimoTitle ?? \"ATTENZIONE!\",\r\n          lang.value?.Detail.WarnAnonimoText ??\r\n          \"Questa funzione è abilitata solo per gli utenti registrati.\",\r\n          buttons\r\n        );\r\n      } else {\r\n        console.log(\"Click send:\", newMessage.value);\r\n        if (newMessage.value && newMessage.value && newMessage.value.length > 0)\r\n          await store.dispatch(\"addMessageContent\", newMessage.value);\r\n        newMessage.value = \"\";\r\n      }\r\n      sending.value = false;\r\n    };\r\n\r\n    const presentAlertAddToFavorites = async () => {\r\n      const alert = await alertController.create({\r\n        cssClass: \"alert-add-to-favorite\",\r\n        subHeader:\r\n          lang.value.Detail.AlertAddToFavText1 +\r\n          (defunto.value?.anagrafica.name ?? defunto.value?.anagrafica.fullname) + \" ?\",\r\n        message: '<small>' + lang.value.Detail.AlertAddToFavText2 + '</small>',\r\n        inputs: [\r\n          {\r\n            type: \"radio\",\r\n            label: \"Genitore\",\r\n            value: \"Genitore\",\r\n            handler: () => {\r\n              setRelation(\"Genitore\");\r\n            },\r\n          },\r\n          {\r\n            type: \"radio\",\r\n            label: \"Moglie/Marito\",\r\n            value: \"Moglie/Marito\",\r\n            handler: () => {\r\n              setRelation(\"Moglie/Marito\");\r\n            },\r\n          },\r\n          {\r\n            type: \"radio\",\r\n            label: \"Nonno/a\",\r\n            value: \"Nonno/a\",\r\n            handler: () => {\r\n              setRelation(\"Nonno/a\");\r\n            },\r\n          },\r\n          {\r\n            type: \"radio\",\r\n            label: \"Figlio/a\",\r\n            value: \"Figlio/a\",\r\n            handler: () => {\r\n              setRelation(\"Figlio/a\");\r\n            },\r\n          },\r\n          {\r\n            type: \"radio\",\r\n            label: \"Fratello/Sorella\",\r\n            value: \"Fratello/Sorella\",\r\n            handler: () => {\r\n              setRelation(\"Fratello/Sorella\");\r\n            },\r\n          },\r\n          {\r\n            type: \"radio\",\r\n            label: \"Cognato/a\",\r\n            value: \"Cognato/a\",\r\n            handler: () => {\r\n              setRelation(\"Cognato/a\");\r\n            },\r\n          },\r\n          {\r\n            type: \"radio\",\r\n            label: \"Zio/a\",\r\n            value: \"Zio/a\",\r\n            handler: () => {\r\n              setRelation(\"Zio/a\");\r\n            },\r\n          },\r\n          {\r\n            type: \"radio\",\r\n            label: \"Nipote\",\r\n            value: \"Nipote\",\r\n            handler: () => {\r\n              setRelation(\"Nipote\");\r\n            },\r\n          },\r\n          {\r\n            type: \"radio\",\r\n            label: \"Cugino/a\",\r\n            value: \"Cugino/a\",\r\n            handler: () => {\r\n              setRelation(\"Cugino/a\");\r\n            },\r\n          },\r\n          {\r\n            type: \"radio\",\r\n            label: \"Collega\",\r\n            value: \"Collega\",\r\n            handler: () => {\r\n              setRelation(\"Collega\");\r\n            },\r\n          },\r\n          {\r\n            type: \"radio\",\r\n            label: \"Amico/a\",\r\n            value: \"Amico/a\",\r\n            handler: () => {\r\n              setRelation(\"Amico/a\");\r\n            },\r\n          },\r\n          {\r\n            type: \"radio\",\r\n            label: \"Altro\",\r\n            value: \"Altro\",\r\n            handler: () => {\r\n              setRelation(\"Altro\");\r\n            },\r\n            checked: true,\r\n          },\r\n        ],\r\n        buttons: [\r\n          {\r\n            text: lang.value.Detail.CancelButton,\r\n            role: \"cancel\",\r\n            cssClass: \"secondary\",\r\n            handler: () => {\r\n              setRelation(\"\");\r\n            },\r\n          },\r\n          {\r\n            text: lang.value.Detail.AlertAddToFavConfirmText,\r\n            cssClass: \"primary\",\r\n            handler: async () => {\r\n              if (relation.value == \"\") setRelation(\"Conoscente\");\r\n              await onAddDefunto();\r\n            },\r\n          },\r\n        ],\r\n      });\r\n      return alert.present();\r\n    };\r\n\r\n    const presentAlertAddCandle = async () => {\r\n      const alert = await alertController.create({\r\n        cssClass: \"alert-add-to-favorite\",\r\n        subHeader:\r\n          lang.value.Detail.AlertAddCandleText1 +\r\n          (defunto.value?.anagrafica.name ??\r\n            defunto.value?.anagrafica.fullname) +\r\n          \" ?\",\r\n        message:\r\n          '<div class=\"text-center mt-3\"><img src=\"/assets/img/candle3_100.png\" /></div><small>' + lang.value.Detail.AlertAddCandleText2 + '</small>',\r\n\r\n        buttons: [\r\n          {\r\n            text: lang.value.Detail.CancelButton,\r\n            role: \"cancel\",\r\n            cssClass: \"secondary\",\r\n            handler: () => { },\r\n          },\r\n          {\r\n            text: lang.value.Detail.AlertAddCondelConfirmText,\r\n            cssClass: \"primary\",\r\n            handler: async () => {\r\n              await onAddCandle();\r\n            },\r\n          },\r\n        ],\r\n      });\r\n      return alert.present();\r\n    };\r\n\r\n    const presentAlertRivendica = async () => {\r\n      if (!isAuth.value) {\r\n        const buttons: Array<any> = [\r\n          {\r\n            text: lang.value?.Detail.CancelButton ?? \"Annulla\",\r\n            role: \"cancel\",\r\n            handler: () => {\r\n              console.log(\"Cancel clicked\");\r\n            },\r\n          },\r\n          {\r\n            text: lang.value?.Detail.LoginButton ?? \"Accedi\",\r\n            handler: () => {\r\n              router.push(\"/login\");\r\n            },\r\n          },\r\n        ];\r\n        PresentAlertError(\r\n          lang.value?.Detail.WarnAnonimoTitle ?? \"ATTENZIONE!\",\r\n          lang.value?.Detail.WarnAnonimoText ?? \"Questa funzione è abilitata solo per gli utenti registrati.\",\r\n          buttons\r\n        );\r\n      } else {\r\n        const alert = await alertController.create({\r\n          cssClass: \"alert-add-to-favorite\",\r\n          subHeader: '' + lang.value.Detail.AlertRivendicaText1 + (defunto.value?.anagrafica.name ?? defunto.value?.anagrafica.fullname) + \".\",\r\n          message: '<div class =\"text-center mt-3 w-100\">' + lang.value.Detail.AlertRivendicaText2 + '</div><div class=\"w-25 my-2 mx-auto\"><img src=\"/assets/img/content.png\"  /></div><small>' + lang.value.Detail.AlertRivendicaText3 + '</small>',\r\n\r\n          buttons: [\r\n            {\r\n              text: lang.value.Detail.CancelButton,\r\n              role: \"cancel\",\r\n              cssClass: \"secondary\",\r\n              handler: () => { },\r\n            },\r\n            {\r\n              text: lang.value.Detail.AlertRivendicaConfirmText,\r\n              cssClass: \"primary\",\r\n              handler: async () => {\r\n                //se l'utente non ha gia inserito le informazioni personali\r\n                await store.dispatch(\"loadPersonalInfo\");\r\n                console.log('personalInfo:', personalInfo.value);\r\n                if (\r\n                  !personalInfo.value ||\r\n                  !personalInfo.value ||\r\n                  !personalInfo.value.phoneNumber\r\n                )\r\n                  await router.push(\"/tabs/tab1/personal-info\");\r\n                //se l'utente no ha già verificato l'email.\r\n                // await router.push('/tabs/email-verification');\r\n                //se l'utente no ha già verificato il numero di telefono.\r\n                else if (!personalInfo.value.phoneVerified)\r\n                  await router.push(\"/tabs/tab1/phone-confirmation\");\r\n                //await router.push(\"/tabs/tab1/personal-info\");\r\n\r\n                else await router.push(\"/tabs/tab1/claim-disclaimer\");\r\n              },\r\n            },\r\n          ],\r\n        });\r\n        return alert.present();\r\n      }\r\n    };\r\n\r\n    const presentAlertOpenMap = async () => {\r\n      const alert = await alertController.create({\r\n        cssClass: \"alert-open-map\",\r\n        subHeader: lang.value.Detail.ApriMappaHeader,\r\n        message: '<div class =\"text-center mt-3 w-100\">' + lang.value.Detail.ApriMappaBody1 + '</div><div class=\"w-25 my-2 mx-auto\"><img src=\"/assets/img/map.png\"  /></div><small>' + lang.value.Detail.ApriMappaBody2 + '</small>',\r\n\r\n        buttons: [\r\n          {\r\n            text: lang.value.Detail.CancelButton,\r\n            role: \"cancel\",\r\n            cssClass: \"secondary\",\r\n            handler: () => { },\r\n          },\r\n          {\r\n            text: lang.value.Detail.ApriMappaConfirm,\r\n            cssClass: \"primary\",\r\n            handler: async () => {\r\n              //se l'utente non ha gia inserito le informazioni personali\r\n              openMapInSystemBrowser()\r\n            },\r\n          },\r\n        ],\r\n      });\r\n      return alert.present();\r\n    }\r\n\r\n    const edit = async () => {\r\n      await router.push(\"/tabs/tab1/edit\");\r\n    };\r\n\r\n    const presentActionSheet = async () => {\r\n      const buttons = [\r\n        {\r\n          text: lang.value.Detail.ActionAcquista,\r\n          icon: flowerOutline,\r\n          id: \"acquista-button\",\r\n          role: \"destructive\",\r\n          data: \"Data value\",\r\n          handler: () => {\r\n            console.log(\"Acqista clicked\");\r\n            onClickShop();\r\n          },\r\n        },\r\n      ];\r\n\r\n      if (!relation.value) {\r\n        buttons.push(\r\n          {\r\n            text: lang.value.Detail.ActionFollow,\r\n            icon: heartOutline,\r\n            id: \"segui-button\",\r\n            role: \"\",\r\n            data: \"follow\",\r\n            handler: async () => {\r\n              await presentAlertAddToFavorites();\r\n              console.log(\"Segui clicked\");\r\n            },\r\n          });\r\n      }\r\n      else {\r\n        buttons.push(\r\n          {\r\n            text: lang.value.Detail.ActionNoFollow,\r\n            icon: heartDislikeOutline,\r\n            id: \"segui-button\",\r\n            role: \"\",\r\n            data: \"follow\",\r\n            handler: async () => {\r\n              await onRemoveRelation();\r\n              console.log(\"Non seguire più clicked\");\r\n            },\r\n          });\r\n      }\r\n\r\n      if (isShareable.value) {\r\n        buttons.push(\r\n          {\r\n            text: lang.value.Detail.ActionShare,\r\n            icon: shareOutline,\r\n            id: \"share-button\",\r\n            role: \"\",\r\n            data: \"follow\",\r\n            handler: async () => {\r\n              console.log(\"Share clicked\");\r\n              if (defunto.value) {\r\n                const defuntoUrl = await DataService.getDefuntoShareLink(defunto.value.anagrafica.id);\r\n                await Share.share({\r\n                  title: defunto.value.anagrafica.fullname + lang.value.Detail.ShareTitle,\r\n                  text: lang.value.Detail.ShareText,\r\n                  url: defuntoUrl,\r\n                  dialogTitle: 'Condividi il profilo di ' + lang.value.Detail.ShareDialog,\r\n                });\r\n              }\r\n            },\r\n          });\r\n      }\r\n\r\n      if (defunto.value?.availsableServices.addCandleAvailable) {\r\n        buttons.push(\r\n          {\r\n            text: lang.value.Detail.ActionCandle,\r\n            icon: bonfireOutline,\r\n            id: \"cero-button\",\r\n            role: \"\",\r\n            data: \"Cero\",\r\n            handler: async () => {\r\n              console.log(\"Cero clicked\");\r\n              await presentAlertAddCandle();\r\n            }\r\n          });\r\n      }\r\n\r\n      if (isClaimed.value) {\r\n        buttons.push(\r\n          {\r\n            text: lang.value.Detail.ActionEdit,\r\n            icon: createOutline,\r\n            id: \"bio-button\",\r\n            role: \"\",\r\n            data: \"Foto\",\r\n            handler: async () => {\r\n              console.log(\"Modifica clicked\");\r\n              await edit();\r\n            },\r\n          }\r\n        );\r\n      }\r\n      else {\r\n        buttons.push(\r\n          {\r\n            text: lang.value.Detail.ActionRiscatta,\r\n            icon: createOutline,\r\n            id: \"bio-button\",\r\n            role: \"\",\r\n            data: \"Foto\",\r\n            handler: async () => {\r\n              console.log(\"Riscatta clicked\");\r\n              await presentAlertRivendica();\r\n            },\r\n          }\r\n        );\r\n      }\r\n\r\n      buttons.push(\r\n        {\r\n          text: lang.value.Detail.ActionAbuse,\r\n          icon: warningOutline,\r\n          id: \"abuso-button\",\r\n          role: \"\",\r\n          data: \"\",\r\n          handler: () => {\r\n            console.log(\"Segnala clicked\");\r\n            setAbuseModalOpen(true);\r\n          },\r\n        },\r\n        {\r\n          text: lang.value.Detail.ActionClose,\r\n          icon: close,\r\n          role: \"cancel\",\r\n          id: \"abuso-button\",\r\n          data: \"\",\r\n          handler: () => {\r\n            console.log(\"Cancel clicked\");\r\n          },\r\n        },\r\n      );\r\n\r\n      console.log(\"isAdmin\", isAdmin.value);\r\n      if (isAdmin.value && defunto.value && defunto.value.anagrafica && defunto.value.anagrafica.currentPosition && defunto.value.anagrafica.currentPosition.areaId) {\r\n        buttons.push(\r\n          {\r\n            text: 'Apri area',\r\n            icon: globeOutline,\r\n            id: \"geo-area\",\r\n            role: \"\",\r\n            data: \"area\",\r\n            handler: async () => {\r\n              console.log(\"Apri area clicked\");\r\n              await store.dispatch('loadGestioneCemetery', defunto.value?.anagrafica.currentPosition?.cemeteryId);\r\n              await store.dispatch('loadCemeteryArea', defunto.value?.anagrafica.currentPosition?.areaId);\r\n              router.push('/tabs/tabAdmin/area/' + defunto.value?.anagrafica.currentPosition?.areaId);\r\n            }\r\n          });\r\n      }\r\n      if (isAdmin.value && defunto.value && defunto.value.anagrafica && defunto.value.anagrafica.currentPosition && defunto.value.anagrafica.currentPosition.postoId) {\r\n        buttons.push(\r\n          {\r\n            text: 'Apri posto',\r\n            icon: mapOutline,\r\n            id: \"geo-posto\",\r\n            role: \"\",\r\n            data: \"Posto\",\r\n            handler: async () => {\r\n              console.log(\"Apri posto clicked\");\r\n              await store.dispatch('loadGestioneCemetery', defunto.value?.anagrafica.currentPosition?.cemeteryId);\r\n              router.push('/tabs/tabAdmin/posto/' + defunto.value?.anagrafica.currentPosition?.postoId + '/' + defunto.value?.anagrafica.currentPosition?.id);\r\n            }\r\n          });\r\n      }\r\n\r\n      const actionSheet = await actionSheetController.create({\r\n        header: lang.value.Detail.ActionsTile,\r\n        cssClass: \"my-custom-class\",\r\n        buttons: buttons\r\n      });\r\n      await actionSheet.present();\r\n\r\n      const { role, data } = await actionSheet.onDidDismiss();\r\n      console.log(\"onDidDismiss resolved with role and data\", role, data);\r\n    };\r\n\r\n    const onSendAbuseMessage = async () => {\r\n      setAbuseModalOpen(false);\r\n      if (abuseMessage.value && abuseMessage.value.trim().length > 0) {\r\n        const subject = \"Segnalazione abuso/errore da App Aldilapp\";\r\n        const result = await DataService.sendMessage(defunto.value!.anagrafica.id, subject, abuseMessage.value);\r\n        if (result) {\r\n          toastColor.value = \"success\";\r\n          toastMessage.value = \"Segnalazione inviata.\";\r\n          toastHeader.value = \"GRAZIE!\"\r\n        }\r\n        else {\r\n          toastColor.value = \"danger\";\r\n          toastMessage.value = \"Errore durante l'invio del messaggio! Inviaci una email su info@stup1.com\";\r\n          toastHeader.value = \"ATTENZIONE!\"\r\n        }\r\n        setIsToastOpen(true);\r\n      }\r\n    };\r\n\r\n    const gotoDetail = (id: number) => {\r\n      const route = \"/tabs/tab1/detail/\" + id;\r\n      router.push(route);\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 displayData = (date: Date, isInnacurate: boolean | null): string => {\r\n      if (isInnacurate && date.getMonth() == 0 && date.getDate() == 1)\r\n        return date.getFullYear().toString();\r\n      else\r\n        return date.toLocaleDateString('it-IT');\r\n    };\r\n\r\n\r\n    const humanizeDuration = (publishDate: string): string => {\r\n      const t1 = new Date();\r\n      const t2 = new Date(publishDate);\r\n      const dif = t1.getTime() - t2.getTime();\r\n      const seconds = Math.round(Math.abs(dif / 1000));\r\n      if (seconds < 60 * 2)\r\n        return \"poco fa\";\r\n      else if (seconds < 60 * 60)\r\n        return Math.round(seconds / 60) + \" minuti fa\";\r\n      else if (seconds < 60 * 60 * 24)\r\n        return Math.round(seconds / 3600) + \" ore fa\";\r\n      else if (seconds < 60 * 60 * 24 * 30)\r\n        return Math.round(seconds / 86400) === 1 ? \"ieri\" : Math.round(seconds / 86400) + \" giorni fa\";\r\n      else if (seconds < 60 * 60 * 24 * 365)\r\n        return Math.round(seconds / 2592000) + \" mesi fa\";\r\n      else\r\n        return Math.round(seconds / 31536000) + \" anni fa\";\r\n    }\r\n\r\n    /*watch(\r\n      () => route.params.id,\r\n      async newId => {\r\n        console.log('rilevato id change: ', newId, ' - ',routerKey);\r\n      }\r\n    )*/\r\n    const openMapInSystemBrowser = () => {\r\n      const url = 'https://maps.google.com/maps?q=' + defunto.value?.anagrafica.currentPosition?.latitude + '%2C' + defunto.value?.anagrafica.currentPosition?.longitude + '&z=28&hl=it&t=k'\r\n      window.open(url, '_system', 'location=yes');\r\n    }\r\n\r\n    return {\r\n      defunto,\r\n      isLoading,\r\n      isAdding,\r\n      isAuth,\r\n      onAddDefunto,\r\n      onClickShop,\r\n      lang,\r\n      capitalizeFirstLetter,\r\n      heartOutline,\r\n      locateOutline,\r\n      newMessage,\r\n      onSendMessage,\r\n      presentAlertAddToFavorites,\r\n      closeCircle,\r\n      onRemoveRelation,\r\n      relation,\r\n      isClaimed,\r\n      routerKey,\r\n      presentAlertAddCandle,\r\n      onAddCandle,\r\n      presentAlertRivendica,\r\n      presentActionSheet,\r\n      edit,\r\n      isAbuseModalOpen,\r\n      setAbuseModalOpen,\r\n      onSendAbuseMessage,\r\n      abuseMessage,\r\n      id,\r\n      isToastOpen,\r\n      setIsToastOpen,\r\n      toastColor,\r\n      toastMessage,\r\n      toastHeader,\r\n      humanizeDuration,\r\n      onContentDelete,\r\n      currentUser,\r\n      onLoadOtherContents,\r\n      currentContentsInfo,\r\n      isContentsLoading,\r\n      currentRelatedDefunti,\r\n      gotoDetail,\r\n      calcEta,\r\n      nDayFromBirthDay,\r\n      nDayFromDieDay,\r\n      timeOutline,\r\n      displayData,\r\n      presentAlertOpenMap,\r\n      sending\r\n    };\r\n  },\r\n});\r\n","import { render } from \"./Detail.vue?vue&type=template&id=50c0be09&scoped=true&ts=true\"\nimport script from \"./Detail.vue?vue&type=script&lang=ts\"\nexport * from \"./Detail.vue?vue&type=script&lang=ts\"\n\nimport \"./Detail.vue?vue&type=style&index=0&id=50c0be09&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-50c0be09\"]])\n\nexport default __exports__"],"sourceRoot":""}