PageSourceSearch

https://www.generali.es/webapps/mi-generali/1648.33f1f5228aff3f57.js

js generali.es collected 2026-09-25 18:59:32 UTC 134,063 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkmi_generali=self.webpackChunkmi_generali||[]).push([[1648],{71648:(be,F,s)=>{s.r(F),s.d(F,{CoverageDetailService:()=>he,MiGeneraliCoveragesFeatureModule:()=>oo});var l=s(60177),h=s(50884),p=s(51670),I=s(35933),v=s(20464),D=s(68272),d=s(69703),x=s(53280),A=s(61778),Y=s(98842),X=s(586),U=s(21870),k=s(63035),f=s(32785),T=s(1320),E=s(86704),m=s(16740),R=s(28647),e=s(54438),G=s(27392),M=s(15083),J=s(5964),ae=s(96697),se=s(85756),Ae=s(51123),_=s(63734),b=s(34362),H=s(27205),ce=s(23471),y=s(41003),P=s(49552),g=s(87639),Q=s(69957),W=s(43322),V=s(36167),le=s(15751),j=s(64833),w=s(59640),Te=s(57157),Re=s(89692),z=s(5397),De=s(345),B=s(59921),K=s(89308),xe=s(86405);function ke(n,r){if(1&n&&(e.j41(0,"div",14)(1,"p",10),e.EFF(2),e.nI1(3,"transloco"),e.k0s(),e.j41(4,"p",15),e.EFF(5),e.k0s()()),2&n){const t=e.XpG();e.R7$(2),e.SpI("",e.bMT(3,2,"COVERAGE.DETAIL_PAGE.POLICY_OWNER"),":"),e.R7$(3),e.JRh(null==t.coverage.details||null==t.coverage.details.policyHolder?null:t.coverage.details.policyHolder.fullName)}}function Ge(n,r){if(1&n&&(e.j41(0,"div",16)(1,"p",17),e.EFF(2),e.k0s()()),2&n){const t=e.XpG();e.R7$(2),e.JRh(t.riskDescription)}}let _e=(()=>{class n{constructor(t){this.translateService=t,this.isPsi=!1}ngOnInit(){this.coverage.psiDetails?(this.isPsi=!0,this.policyNumberLabel="COVERAGE.DETAIL_PAGE.PSI_N",this.productName=this.coverage.psiDetails?.productName,this.riskDescription=this.coverage.psiDetails?.riskDescription?.join(" "),this.policy=this.coverage.psiId):(this.policyNumberLabel="COVERAGE.DETAIL_PAGE.POLICY_N",this.productName=this.coverage.details?.productName,this.riskDescription=this.coverage.details?.riskDescription?.join(", "),this.policy=this.coverage.policy)}getCoverageIcon(){return A.lZ.getAssetIcon(this.coverage.type||"")}getCoverageTitle(){return A.lZ.getCoverageTitle(this.coverage)}getIsActive(){return this.coverage.isActive?"COVERAGE.ACTIVE":"COVERAGE.INACTIVE"}getStatusColor(){return this.coverage.isActive?g.Jy.green:g.Jy.orange}static{this.\u0275fac=function(i){return new(i||n)(e.rXU(v.JO))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["customer-workspace-coverage-details-header"]],inputs:{coverage:"coverage"},decls:21,vars:14,consts:[[1,"w-full","lg:px-10"],[1,"bg-white","px-6","py-8","lg:px-10"],[1,"place-content-between","lg:flex"],[1,"flex","items-center","text-4xl","font-semibold"],["alt","Platform Icon",1,"w-10",3,"src"],[1,"pl-5"],[1,"pt-5","lg:pt-0"],[3,"badgeText","backgroundColor"],[1,"grid","pt-8","lg:grid-cols-3"],[1,"flex"],[1,"text-2xl","text-gray-500"],[1,"pl-2","text-2xl","font-bold"],["class","flex pt-2",4,"ngIf"],["class","pt-2",4,"ngIf"],[1,"flex","pt-2"],[1,"pl-2","text-2xl"],[1,"pt-2"],[1,"text-2xl"]],template:function(i,o){1&i&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),e.nrm(4,"img",4),e.j41(5,"label",5),e.EFF(6),e.k0s()(),e.j41(7,"div",6),e.nrm(8,"mh-badge",7),e.nI1(9,"transloco"),e.k0s()(),e.j41(10,"div",8)(11,"div")(12,"div",9)(13,"p",10),e.EFF(14),e.nI1(15,"transloco"),e.k0s(),e.j41(16,"p",11),e.EFF(17),e.nI1(18,"coverageId"),e.k0s()()(),e.DNE(19,ke,6,4,"div",12),e.k0s(),e.DNE(20,Ge,3,1,"div",13),e.k0s()()),2&i&&(e.R7$(4),e.Y8G("src",o.getCoverageIcon(),e.B4B),e.R7$(2),e.JRh(o.productName),e.R7$(2),e.Y8G("badgeText",e.bMT(9,8,o.getIsActive()))("backgroundColor",o.getStatusColor()),e.R7$(6),e.SpI("",e.bMT(15,10,o.policyNumberLabel),":"),e.R7$(3),e.JRh(e.bMT(18,12,o.policy)),e.R7$(2),e.Y8G("ngIf",!o.isPsi),e.R7$(),e.Y8G("ngIf",!o.isPsi))},dependencies:[l.bT,v.Kj,xe.i],changeDetection:0})}}return n})();var O=s(20695),we=s(68115);function ye(n,r){if(1&n&&(e.qex(0),e.j41(1,"div",4),e.EFF(2),e.nI1(3,"transloco"),e.k0s(),e.j41(4,"div",6),e.EFF(5),e.nI1(6,"currency"),e.k0s(),e.j41(7,"div",12),e.EFF(8),e.k0s(),e.bVm()),2&n){const t=e.XpG();e.R7$(2),e.SpI(" ",e.bMT(3,3,"COVERAGE.DETAIL_PAGE.PREMIUM_PAID")," "),e.R7$(3),e.SpI(" ",e.bMT(6,5,t.amountPremium)," "),e.R7$(3),e.SpI(" ",t.paymentPeriodicity," ")}}function Oe(n,r){if(1&n&&(e.qex(0),e.j41(1,"div",4),e.EFF(2),e.nI1(3,"transloco"),e.k0s(),e.j41(4,"div",6),e.EFF(5),e.k0s(),e.bVm()),2&n){const t=e.XpG();e.R7$(2),e.SpI(" ",e.bMT(3,2,"COVERAGE.DETAIL_PAGE.PAID_PERIODICITY")," "),e.R7$(3),e.SpI(" ",t.paymentPeriodicity," ")}}function Se(n,r){if(1&n){const t=e.RV6();e.j41(0,"img",16),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.navigateToEdit())}),e.k0s()}}function Ne(n,r){if(1&n){const t=e.RV6();e.j41(0,"img",17),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.showWarningToast())}),e.k0s()}}function Fe(n,r){if(1&n&&(e.qex(0),e.DNE(1,Se,1,0,"img",14)(2,Ne,1,0,"ng-template",null,15,e.C5r),e.bVm()),2&n){const t=e.sdS(3),i=e.XpG(2);e.R7$(),e.Y8G("ngIf",!i.existsBankAccountChange&&!i.limitedUser)("ngIfElse",t)}}const Me=()=>["cajamar","bancamarch"];
1function Pe(n,r){if(1&n&&(e.j41(0,"div",7)(1,"div",8),e.EFF(2),e.nI1(3,"bankAccountTransform"),e.k0s(),e.DNE(4,Fe,4,2,"ng-container",13),e.k0s()),2&n){const t=e.XpG();e.R7$(2),e.SpI(" ",e.bMT(3,2,t.bankAccount)," "),e.R7$(2),e.Y8G("hideIfScope",e.lJ4(4,Me))}}let de=(()=>{class n{constructor(t){this.environment=t,this.clickOnReceipts=new e.bkB,this.clickOnEditAccount=new e.bkB,this.showActiveEditToast=new e.bkB,this.showBankAccountEdit=!1,this.isPsi=!1}ngOnInit(){this.coverage.details?(this.paymentPeriodicity=this.coverage.details.paymentPeriodicity,this.bankAccount=this.coverage.details.bankAccount?.iban,this.existsBankAccountChange=this.coverage.details.bankAccount?.existsBankAccountChange,this.paymentMethod=this.coverage.details.paymentMethod,this.showBankAccountEdit=this.coverage.details.paymentMethod?.toLowerCase()===_.g5.BANK||this.coverage.details.paymentMethod?.toLowerCase()===_.g5.BANK_SHORT||this.environment.scope===m.MJ.CAJAMAR,this.amountPremium=Number(this.coverage.details?.premium?.replace(".","").replace(",","."))):this.coverage.psiDetails&&(this.isPsi=!0,this.paymentPeriodicity=this.coverage.psiDetails.paymentPeriodicity,this.bankAccount=this.coverage.psiDetails.bankAccount?.iban,this.existsBankAccountChange=this.coverage.psiDetails.bankAccount?.existsBankAccountChange,this.paymentMethod=this.coverage.psiDetails.paymentMethod,this.showBankAccountEdit=this.coverage.psiDetails.paymentMethod.toLocaleLowerCase()===_.g5.BANK||this.coverage.psiDetails.paymentMethod.toLocaleLowerCase()===_.g5.BANK_SHORT||this.environment.scope===m.MJ.CAJAMAR)}clickReceipts(){this.clickOnReceipts.emit()}navigateToEdit(){this.clickOnEditAccount.emit()}showWarningToast(){this.showActiveEditToast.emit()}static{this.\u0275fac=function(i){return new(i||n)(e.rXU(V.M))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["customer-workspace-coverage-details-overview"]],inputs:{coverage:"coverage",limitedUser:"limitedUser"},outputs:{clickOnReceipts:"clickOnReceipts",clickOnEditAccount:"clickOnEditAccount",showActiveEditToast:"showActiveEditToast"},decls:36,vars:20,consts:[[1,"grid","grid-cols-2","border-b","border-solid","border-gray-300","bg-white"],[1,"border-r","border-solid","border-gray-300"],[1,"px-6","py-10"],[4,"ngIf"],[1,"text-2xl","text-gray-500"],["class","flex flex-row items-center",4,"ngIf"],[1,"my-2","text-[17px]"],[1,"flex","flex-row","items-center"],[1,"my-2","truncate","text-left","text-2xl"],[1,"flex","cursor-pointer","border-y","border-solid","border-gray-300","bg-white","px-6","py-10",3,"click"],["name","chevron-forward-circle",1,"text-4xl","text-gray-dark"],[1,"flex","items-center","px-3","text-2xl","text-gray-dark"],[1,"my-2","text-[14px]"],[4,"hideIfScope"],["src","./assets/img/icons/f09-edit.svg","alt","edit-iban","class","ml-3 w-10 cursor-pointer",3,"click",4,"ngIf","ngIfElse"],["tooltip",""],["src","./assets/img/icons/f09-edit.svg","alt","edit-iban",1,"ml-3","w-10","cursor-pointer",3,"click"],["src","./assets/img/icons/error-exclamation-white.svg",1,"ml-2","h-10","cursor-pointer",3,"click"]],template:function(i,o){1&i&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2),e.DNE(3,ye,9,7,"ng-container",3)(4,Oe,6,4,"ng-container",3),e.k0s()(),e.j41(5,"div")(6,"div",2)(7,"div")(8,"div",4),e.EFF(9),e.nI1(10,"transloco"),e.k0s()(),e.DNE(11,Pe,5,5,"div",5),e.k0s()()(),e.j41(12,"div",0)(13,"div",1)(14,"div",2),e.qex(15),e.j41(16,"div",4),e.EFF(17),e.nI1(18,"transloco"),e.k0s(),e.j41(19,"div",6),e.EFF(20),e.k0s(),e.bVm(),e.k0s()(),e.j41(21,"div")(22,"div",2)(23,"div")(24,"div",4),e.EFF(25),e.nI1(26,"transloco"),e.k0s()(),e.j41(27,"div",7)(28,"div",8),e.EFF(29),e.nI1(30,"date"),e.k0s()()()()(),e.j41(31,"div",9),e.bIt("click",function(){return o.clickReceipts()}),e.nrm(32,"ion-icon",10),e.j41(33,"p",11),e.EFF(34),e.nI1(35,"transloco"),e.k0s()()),2&i&&(e.R7$(3),e.Y8G("ngIf",!o.isPsi),e.R7$(),e.Y8G("ngIf",o.isPsi),e.R7$(5),e.SpI(" ",e.bMT(10,9,"COVERAGE.DETAIL_PAGE.BANK_ACCOUNT")," "),e.R7$(2),e.Y8G("ngIf",o.showBankAccountEdit),e.R7$(6),e.SpI(" ",e.bMT(18,11,"COVERAGE.DETAIL_PAGE.PAYMENT_MODALITY")," "),e.R7$(3),e.SpI(" ",o.paymentMethod," "),e.R7$(5),e.SpI(" ",o.coverage.effectDate?e.bMT(26,13,"COVERAGE.DETAIL_PAGE.EFFECT_DATE"):""," "),e.R7$(4),e.SpI(" ",e.i5U(30,15,o.coverage.effectDate,"dd/MM/yyyy")," "),e.R7$(5),e.SpI(" ",e.bMT(35,18,"COVERAGE.DETAIL_PAGE.SEE_ALL_PAYMENTS")," "))},dependencies:[l.bT,I.iq,O.B,l.oe,l.vh,v.Kj,we.g],changeDetection:0})}}return n})();function Ve(n,r){if(1&n){const t=e.RV6();e.j41(0,"div",6)(1,"mh-list-item-black-title-2",7),e.bIt("checkEvent",function(){e.eBV(t);const o=e.XpG().index,a=e.XpG();return e.Njj(a.getGuarantees(o))}),e.nI1(2,"titlecase"),e.k0s()()}
1if(2&n){const t=e.XpG(),i=t.$implicit,o=t.index,a=e.XpG();e.R7$(),e.Y8G("padding",!0)("iconLeftActive",!1)("iconRightActive",!0)("badgeStatus",!1)("ionicIcon",!1)("componentText",e.bMT(2,10,i.insuredRisk))("imageBigSize",!1)("tooltipActive",!1)("ionicIcon",!0)("icon1",a.guaranteesRiskBoolean[o]?"ios-arrow-up":"ios-arrow-down")}}function je(n,r){1&n&&(e.j41(0,"div",13)(1,"p",14),e.EFF(2),e.nI1(3,"transloco"),e.k0s()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"COVERAGE.DETAIL_PAGE.GUARANTEES")))}function Be(n,r){1&n&&(e.j41(0,"div",15)(1,"p",14),e.EFF(2),e.nI1(3,"transloco"),e.k0s()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"COVERAGE.DETAIL_PAGE.MY_GUARANTEES")))}function $e(n,r){if(1&n&&(e.qex(0),e.nrm(1,"mh-list-item-black-title-1",19)(2,"mh-divider",17),e.bVm()),2&n){const t=r.$implicit;e.R7$(),e.Y8G("colorBg","grey")("componentText",t.question)("padding",!0)("badgetitle",t.answer)("badgeActive",!!t.answer)("badgeStatus",!1)("iconActive",!0)("toggleActive",!1)("tooltipActive",!1),e.R7$(),e.Y8G("hrShow",!0)("background",!1)("fullWidth",!0)}}function Le(n,r){if(1&n&&(e.qex(0),e.DNE(1,$e,3,12,"ng-container",18),e.bVm()),2&n){const t=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",t.questions)}}function Ye(n,r){if(1&n){const t=e.RV6();e.qex(0),e.j41(1,"mh-list-item-black-title-2",16),e.bIt("checkEvent",function(){const a=e.eBV(t).$implicit,c=e.XpG(4);return e.Njj(c.toggleGuarantee(a))}),e.nI1(2,"titlecase"),e.k0s(),e.nrm(3,"mh-divider",17),e.DNE(4,Le,2,1,"ng-container",4),e.bVm()}if(2&n){const t=r.$implicit,i=e.XpG(4);e.R7$(),e.FS9("icon","./assets/img/icons/"+i.getIcon(t)+".svg"),e.Y8G("padding",!0)("iconLeftActive",!0)("iconRightActive",!!t.questions.length)("badgeActive",i.showBadge(t))("badgetitle",i.getTitleRight(t))("badgeStatus",!1)("ionicIcon",!1)("componentText",e.bMT(2,17,t.guarantee))("imageBigSize",!1)("tooltipActive",!1)("ionicIcon",!0)("icon1",t.expanded?"ios-arrow-up":"ios-arrow-down"),e.R7$(2),e.Y8G("hrShow",!0)("background",!1)("fullWidth",!0),e.R7$(),e.Y8G("ngIf",t.expanded)}}function Xe(n,r){if(1&n&&(e.j41(0,"div",9),e.DNE(1,je,4,3,"div",10)(2,Be,4,3,"div",11)(3,Ye,5,19,"ng-container",12),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.Y8G("ngIf",t.guaranteesRisk.length>1),e.R7$(),e.Y8G("ngIf",1===t.guaranteesRisk.length),e.R7$(),e.Y8G("ngForOf",t.guaranteesCover)("ngForTrackBy",t.trackByGuarantees)}}function Ue(n,r){1&n&&(e.j41(0,"p",14),e.EFF(1),e.nI1(2,"transloco"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"COVERAGE.DETAIL_PAGE.GUARANTEES_NOT_COVER")," "))}function Je(n,r){1&n&&(e.j41(0,"p",14),e.EFF(1),e.nI1(2,"transloco"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"COVERAGE.DETAIL_PAGE.GUARANTEES_NOT_MY_COVER")))}function He(n,r){if(1&n&&(e.qex(0),e.nrm(1,"mh-list-item-black-title-2",22),e.nI1(2,"titlecase"),e.nrm(3,"mh-divider",17),e.bVm()),2&n){const t=r.$implicit,i=e.XpG(4);e.R7$(),e.FS9("icon","./assets/img/icons/"+i.getIcon(t)+".svg"),e.Y8G("padding",!0)("iconLeftActive",!0)("iconRightActive",!1)("badgeActive",!1)("badgetitle","")("badgeStatus",!1)("ionicIcon",!1)("componentText",e.bMT(2,14,t.guarantee))("imageBigSize",!1)("tooltipActive",!1),e.R7$(2),e.Y8G("hrShow",!0)("background",!1)("fullWidth",!0)}}function Qe(n,r){if(1&n&&(e.j41(0,"div",9)(1,"div",15),e.DNE(2,Ue,3,3,"p",20)(3,Je,3,3,"ng-template",null,21,e.C5r),e.k0s(),e.DNE(5,He,4,16,"ng-container",12),e.k0s()),2&n){const t=e.sdS(4),i=e.XpG(3);e.R7$(2),e.Y8G("ngIf",i.guaranteesRisk.length>1)("ngIfElse",t),e.R7$(3),e.Y8G("ngForOf",i.guaranteesNotCover)("ngForTrackBy",i.trackByGuaranteesNoCover)}}function We(n,r){if(1&n&&(e.qex(0),e.DNE(1,Xe,4,4,"div",8)(2,Qe,6,4,"div",8),e.bVm()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.guaranteesCover.length),e.R7$(),e.Y8G("ngIf",t.guaranteesNotCover.length)}}function ze(n,r){1&n&&e.nrm(0,"mh-divider",23),2&n&&e.Y8G("hrShow",!0)("background",!1)("fullWidth",!0)}function Ke(n,r){if(1&n&&(e.j41(0,"div",2),e.DNE(1,Ve,3,12,"div",3)(2,We,3,2,"ng-container",4)(3,ze,1,3,"mh-divider",5),e.k0s()),2&n){const t=r.index,i=e.XpG();e.R7$(),e.Y8G("ngIf",i.guaranteesRisk.length>1||i.type===i.PolicyTypesEnum.INVERNADEROS),e.R7$(),e.Y8G("ngIf",i.guaranteesRiskBoolean[t]),e.R7$(),e.Y8G("ngIf",i.guaranteesRisk.length>1)}}const qe=["contratada","contratado","incluido"],ge=["no contratado","no contratada","no incluido"];let Ze=(()=>{class n{constructor(){this.type="",this.PolicyTypesEnum=g.JS}ngOnInit(){this.guaranteesRiskBoolean=new Array(this.guaranteesRisk.length).fill(!1),1===this.guaranteesRisk.length&&this.getGuarantees(0)}trackByGuaranteesRisk(t){return t}trackByGuarantees(t){return t}trackByGuaranteesNoCover(t){return t}getTitleRight(t){return Number.isNaN(parseInt(t.detail))?t.detail:`${t.detail} \u20ac`}showBadge(t){return!qe.includes(t.detail.toLowerCase())}getGuarantees(t){this.guaranteesRiskBoolean[t]=!this.guaranteesRiskBoolean[t],this.guarantees=this.guaranteesRisk[t].guarantees.map(i=>({...i,expanded:!1})),this.guaranteesCover=this.guarantees.filter(i=>!ge.includes(i.detail.toLowerCase())),this.guaranteesNotCover=this.guarantees.filter(i=>ge.includes(i.detail.toLowerCase()))}toggleGuarantee(t){t.questions?.length&&(this.guaranteesCover=this.guaranteesCover.map(i=>i.guarantee===t.guarantee?{...i,expanded:!t.expanded}:i))}getIcon(t){return this.type!==g.JS.HOGAR.valueOf()?g.ZZ.getIcon(this.type):t.guarantee.includes(g.cx.FIRE_OTHERS.valueOf())?"a01-fire-r":t.guarantee.includes(g.cx.WEATHER_EVENTS.valueOf())?"a06-natural-peril-r":t.guarantee.includes(g.cx.ROBERY_VANDALISM.valueOf())?"a02-burglary-r":t.guarantee.includes(g.cx.CONSEQUENCE_DAMAGES.valueOf())?"a32-lost-keys-r":t.guarantee.includes(g.cx.RESPONSABILITY.valueOf())?"f35-redemption-request-r":t.guarantee.includes(g.cx.WATER_DAMAGE.valueOf())?"a03-tap-water-r":t.guarantee.includes(g.cx.BREAK.valueOf())?"a08-third-party-liability-r":t.guarantee.includes(g.cx.ASSISTANCE_DAY.valueOf())?"f33-assistance-r":"a62-other-home-damage-r"}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["customer-workspace-coverage-details-coverages"]],inputs:{guaranteesRisk:"guaranteesRisk",type:"type"},decls:2,vars:2,consts:[[1,"flex","flex-col"],["class","bg-white md:mb-4",4,"ngFor","ngForOf","ngForTrackBy"],[1,"bg-white","md:mb-4"],["class","title text-left",4,"ngIf"],[4,"ngIf"],["class","md:hidden",3,"hrShow","background","fullWidth",4,"ngIf"],[1,"title","text-left"],[3,"padding","iconLeftActive","
1iconRightActive","badgeStatus","ionicIcon","componentText","imageBigSize","tooltipActive","icon1","checkEvent"],["class","flex flex-col bg-white",4,"ngIf"],[1,"flex","flex-col","bg-white"],["class","border-b border-solid border-gray-300 px-9 pb-9 pt-2",4,"ngIf"],["class","border-b border-solid border-gray-300 p-9",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"border-b","border-solid","border-gray-300","px-9","pb-9","pt-2"],[1,"text-4xl"],[1,"border-b","border-solid","border-gray-300","p-9"],[3,"icon","padding","iconLeftActive","iconRightActive","badgeActive","badgetitle","badgeStatus","ionicIcon","componentText","imageBigSize","tooltipActive","icon1","checkEvent"],[3,"hrShow","background","fullWidth"],[4,"ngFor","ngForOf"],[3,"colorBg","componentText","padding","badgetitle","badgeActive","badgeStatus","iconActive","toggleActive","tooltipActive"],["class","text-4xl",4,"ngIf","ngIfElse"],["myCover",""],[3,"icon","padding","iconLeftActive","iconRightActive","badgeActive","badgetitle","badgeStatus","ionicIcon","componentText","imageBigSize","tooltipActive"],[1,"md:hidden",3,"hrShow","background","fullWidth"]],template:function(i,o){1&i&&(e.j41(0,"div",0),e.DNE(1,Ke,4,3,"div",1),e.k0s()),2&i&&(e.R7$(),e.Y8G("ngForOf",o.guaranteesRisk)("ngForTrackBy",o.trackByGuaranteesRisk))},dependencies:[l.Sq,l.bT,l.PV,v.Kj],styles:["mh-list-item-black-title-2[_ngcontent-%COMP%]{--mh-list-item-black-title-2-title-font-size: 14px}mh-list-item-black-title-1[_ngcontent-%COMP%]{--mh-list-item-black-title-1-title-font-size: 14px}.title[_ngcontent-%COMP%]   mh-list-item-black-title-2[_ngcontent-%COMP%]{--mh-list-item-black-title-2-title-font-size: 20px}"],changeDetection:0})}}return n})();const et=/^\d{4}-\d{2}-\d{2}$/;var it=s(9849);function ot(n,r){if(1&n&&(e.j41(0,"div",6)(1,"div",7)(2,"h2",8),e.EFF(3),e.nI1(4,"transloco"),e.k0s(),e.j41(5,"div",9)(6,"div")(7,"div",2),e.EFF(8),e.nI1(9,"transloco"),e.k0s(),e.j41(10,"div",3),e.EFF(11),e.nI1(12,"currency"),e.k0s()(),e.j41(13,"div")(14,"div",2),e.EFF(15),e.nI1(16,"transloco"),e.k0s(),e.j41(17,"div",10),e.EFF(18),e.nI1(19,"date"),e.k0s(),e.j41(20,"div",2),e.EFF(21),e.nI1(22,"transloco"),e.k0s(),e.j41(23,"div",3),e.EFF(24),e.k0s()()()()()),2&n){const t=e.XpG(),i=e.XpG();e.R7$(3),e.JRh(e.bMT(4,7,"COVERAGE.DETAIL_PAGE.RENTS.MINIMUM_GUARANTEED_INCOME")),e.R7$(5),e.SpI(" ",e.bMT(9,9,"COVERAGE.DETAIL_PAGE.RENTS.MINIMUM_LIFETIME_AMOUNT")," "),e.R7$(3),e.JRh(e.bMT(12,11,t.minimumGuaranteedIncome.minimumLifetimeAmount)),e.R7$(4),e.JRh(e.bMT(16,13,"COVERAGE.DETAIL_PAGE.RENTS.FROM")),e.R7$(3),e.JRh(e.i5U(19,15,t.minimumGuaranteedIncome.from,"dd/MM/yyyy")),e.R7$(3),e.JRh(e.bMT(22,18,"COVERAGE.DETAIL_PAGE.RENTS.TO")),e.R7$(3),e.JRh(i.toDateDisplayOrText(t.minimumGuaranteedIncome.to))}}function rt(n,r){if(1&n&&(e.j41(0,"div",0)(1,"div")(2,"div",1)(3,"div",2),e.EFF(4),e.nI1(5,"transloco"),e.k0s(),e.j41(6,"div",3),e.EFF(7),e.k0s()(),e.j41(8,"div",4)(9,"div",2),e.EFF(10),e.nI1(11,"transloco"),e.k0s(),e.j41(12,"div",3),e.EFF(13),e.nI1(14,"transloco"),e.k0s()()(),e.j41(15,"div")(16,"div")(17,"div",2),e.EFF(18),e.nI1(19,"transloco"),e.k0s(),e.j41(20,"div",3),e.EFF(21),e.nI1(22,"currency"),e.k0s()(),e.j41(23,"div",5)(24,"div",2),e.EFF(25),e.nI1(26,"transloco"),e.k0s(),e.j41(27,"div",3),e.EFF(28),e.nI1(29,"bankAccountHide"),e.k0s()()()(),e.j41(30,"div",6)(31,"div",7)(32,"h2",8),e.EFF(33),e.nI1(34,"transloco"),e.k0s(),e.j41(35,"div",9)(36,"div")(37,"div",2),e.EFF(38),e.nI1(39,"transloco"),e.k0s(),e.j41(40,"div",3),e.EFF(41),e.nI1(42,"currency"),e.k0s()(),e.j41(43,"div")(44,"div",2),e.EFF(45),e.nI1(46,"transloco"),e.k0s(),e.j41(47,"div",10),e.EFF(48),e.nI1(49,"date"),e.k0s(),e.j41(50,"div",2),e.EFF(51),e.nI1(52,"transloco"),e.k0s(),e.j41(53,"div",3),e.EFF(54),e.k0s()()()()(),e.DNE(55,ot,25,20,"div",11)),2&n){const t=e.XpG();e.R7$(4),e.JRh(e.bMT(5,16,"COVERAGE.DETAIL_PAGE.RENTS.RENT_TYPE")),e.R7$(3),e.JRh(r.incomeType),e.R7$(3),e.JRh(e.bMT(11,18,"COVERAGE.DETAIL_PAGE.RENTS.INCOME_PAYMENT_METHOD")),e.R7$(3),e.JRh(e.bMT(14,20,"COVERAGE.DETAIL_PAGE.RENTS.MENSUAL")),e.R7$(5),e.JRh(e.bMT(19,22,"COVERAGE.DETAIL_PAGE.RENTS.DEATH_CAPITAL")),e.R7$(3),e.JRh(e.bMT(22,24,r.deathCapital)),e.R7$(4),e.JRh(e.bMT(26,26,"COVERAGE.DETAIL_PAGE.RENTS.PAYMENT_ACCOUNT")),e.R7$(3),e.JRh(e.bMT(29,28,r.paymentAccount)),e.R7$(5),e.JRh(e.bMT(34,30,"COVERAGE.DETAIL_PAGE.RENTS.LINKAGE_PERIOD")),e.R7$(5),e.JRh(e.bMT(39,32,"COVERAGE.DETAIL_PAGE.RENTS.GROSS_INCOME")),e.R7$(3),e.JRh(e.bMT(42,34,r.linkagePeriod.grossIncome)),e.R7$(4),e.JRh(e.bMT(46,36,"COVERAGE.DETAIL_PAGE.RENTS.FROM")),e.R7$(3),e.JRh(e.i5U(49,38,r.linkagePeriod.from,"dd/MM/yyyy")),e.R7$(3),e.JRh(e.bMT(52,41,"COVERAGE.DETAIL_PAGE.RENTS.TO")),e.R7$(3),e.JRh(t.toDateDisplayOrText(r.linkagePeriod.to)),e.R7$(),e.vxM(55,t.showMinimumGuaranteedIncome()?55:-1)}}function at(n,r){1&n&&(e.j41(0,"div",12),e.nrm(1,"div",13),e.k0s(),e.j41(2,"div",14),e.nrm(3,"div",13),e.k0s(),e.j41(4,"div",14),e.nrm(5,"div",13),e.k0s())}let st=(()=>
1{class n{constructor(){this.rents=(0,e.hFB)(null),this.PolicyTypesEnum=g.JS,this.showMinimumGuaranteedIncome=(0,e.EWP)(()=>{const t=this.rents();return t?.family===n.MINIMUM_GUARANTEED_INCOME_FAMILY&&!!t?.minimumGuaranteedIncome})}static{this.MINIMUM_GUARANTEED_INCOME_FAMILY="RVR01"}toDateDisplayOrText(t){return function nt(n,r="-"){if(!n)return r;if(function tt(n){if(!n||!et.test(n))return!1;const[r,t,i]=n.split("-"),o=Number(r),a=Number(t),c=Number(i),C=new Date(Date.UTC(o,a-1,c));return C.getUTCFullYear()===o&&C.getUTCMonth()+1===a&&C.getUTCDate()===c}(n)){const[t,i,o]=n.split("-");return`${o}/${i}/${t}`}return n}(t)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["customer-workspace-coverage-details-coverages-rents"]],inputs:{rents:[e.Mj6.SignalBased,"rents"]},decls:2,vars:1,consts:[[1,"grid","grid-cols-2","gap-8","border-b","border-solid","border-gray-300","bg-white","pt-10"],[1,"px-6"],[1,"text-2xl","text-gray-500"],[1,"my-2","text-[17px]"],[1,"px-6","py-10"],[1,"py-10"],[1,"mt-3"],[1,"grid","grid-cols-1","border-b","border-solid","border-gray-300","bg-white","px-6","pt-10"],[1,"text-4xl"],[1,"grid","grid-cols-2","gap-8","py-6"],[1,"my-2","pb-5","text-[17px]"],["class","mt-3"],[1,"w-full","md:px-10"],[1,"w-full","animate-pulse","bg-gray-400","py-20","md:px-10"],[1,"mt-3","w-full","md:px-10"]],template:function(i,o){if(1&i&&e.DNE(0,rt,56,43)(1,at,6,0),2&i){let a;e.vxM(0,(a=o.rents())?0:1,a)}},dependencies:[l.oe,l.vh,v.Kj,it.y],changeDetection:0})}}return n})();function ct(n,r){if(1&n){const t=e.RV6();e.qex(0),e.j41(1,"div",3)(2,"mh-list-item-black-title-2",4),e.bIt("click",function(){const a=e.eBV(t).$implicit,c=e.XpG();return e.Njj(c.clickDocument(a))}),e.nI1(3,"transloco"),e.k0s()(),e.bVm()}if(2&n){const t=r.$implicit,i=e.XpG();e.R7$(2),e.Y8G("icon",i.getIconForDocument(t))("iconLeftActive",!0)("iconRightActive",i.isNotLegacyOrGeneral(t))("icon2","./assets/img/icons/f12-download-arrow.svg")("componentText",e.bMT(3,5,i.getLabelForDocument(t)))}}let lt=(()=>{class n{constructor(){this.clickOnDocument=new e.bkB,this.clickLegacyDocument=new e.bkB}ngOnInit(){this.getDocuments()}getIconForDocument(t){return`./assets/img/icons/${this.isNotLegacyOrGeneral(t)?"g07-pdf-document-r":"info-outline-red"}.svg`}getLabelForDocument(t){return`COVERAGE.DETAIL_PAGE.DOCUMENT_TYPE.${t.type}`}clickDocument(t){this.isNotLegacyOrGeneral(t)?this.clickOnDocument.emit(t):this.clickLegacyDocument.emit()}isNotLegacyOrGeneral(t){return t.type!==_.wo.PERSONAL||void 0===this.coverage?.details?.legacy||!this.coverage.details.legacy}getDocuments(){switch(this.documents=this.coverage.scope!=_.VM.GROUP?[{type:_.wo.GENERAL}]:[],this.coverage.type){case g.JS.SALUD:case g.JS.DECESOS:case g.JS.ACCIDENTES:case g.JS.ACCIDENTES_EMPRESAS:case g.JS.VIDA_RIESGO:case g.JS.VIDA_EMPRESAS:case g.JS.AUTOS:case g.JS.MOTOS:case g.JS.HOGAR:this.coverage.rol!==_.D.INSURED&&this.documents.push({type:_.wo.PERSONAL});break;default:this.documents.push({type:_.wo.PERSONAL})}if(this.coverage.details?.itemIdBono&&this.documents.push({type:_.wo.BONUS,itemId:this.coverage.details.itemIdBono}),void 0!==this.precontractualDocs&&this.precontractualDocs.length>0)for(const t of this.precontractualDocs)t.title.includes("PDF")?this.documents.push({type:_.wo.PRECONTRACTUAL_PDF}):this.documents.push({type:_.wo.PRECONTRACTUAL});this.coverage.rol===_.D.INSURED&&"group"===this.coverage.scope&&this.coverage.adhesionCollective&&this.addAdherenceDocuments()}addAdherenceDocuments(){if(this.coverage.center&&this.documents.push({type:_.wo.ADHERENCE,details:{center:this.coverage.center,adhesion:this.coverage.adhesion,application:this.coverage.policy.application}}),this.coverage.details?.insuredMembers)for(const t of this.coverage.details.insuredMembers)t.center&&t.adhesion&&t.application&&!this.documents.some(i=>i.type===_.wo.ADHERENCE&&i.details?.center===t.center.toString())&&this.documents.push({type:_.wo.ADHERENCE,details:{center:t.center.toString(),adhesion:t.adhesion,application:t.application}})}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["customer-workspace-coverage-details-documents"]],inputs:{coverage:"coverage",precontractualDocs:"precontractualDocs"},outputs:{clickOnDocument:"clickOnDocument",clickLegacyDocument:"clickLegacyDocument"},decls:5,vars:4,consts:[[1,"hidden","cursor-pointer","border-b","border-solid","border-gray-300","bg-white","px-6","py-9","md:block"],[1,"px-3","text-4xl"],[4,"ngFor","ngForOf"],[1,"border-b","border-solid","border-gray-300"],["padding","true",3,"icon","iconLeftActive","
1iconRightActive","icon2","componentText","click"]],template:function(i,o){1&i&&(e.j41(0,"div",0)(1,"p",1),e.EFF(2),e.nI1(3,"transloco"),e.k0s()(),e.DNE(4,ct,4,7,"ng-container",2)),2&i&&(e.R7$(2),e.SpI(" ",e.bMT(3,2,"COVERAGE.DETAIL_PAGE.DOCUMENTS")," "),e.R7$(2),e.Y8G("ngForOf",o.documents))},dependencies:[l.Sq,v.Kj],changeDetection:0})}}return n})();function _t(n,r){if(1&n){const t=e.RV6();e.j41(0,"div",9)(1,"mh-list-item-black-title-1",10),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.clickDropdownPolicyHolder())}),e.k0s()()}if(2&n){const t=e.XpG(2);e.R7$(),e.Y8G("componentText",t.policyHolder.fullName)("padding",!0)("iconActive",!0)("icon",t.openContainerPolicyHolder?"ios-arrow-up":"ios-arrow-down")}}function dt(n,r){if(1&n&&e.nrm(0,"mh-list-item-black-title-1",11)(1,"hr"),2&n){const t=e.XpG(2);e.Y8G("componentText",t.policyHolder.fullName)("padding",!0)("iconActive",!1)("toggleActive",!1)("tooltipActive",!1)("iconLeftActive",!1)("badgeActive",!1)("iconRight",!1)("iconActive",!1)("toggleActive",!1)}}function gt(n,r){1&n&&(e.j41(0,"span",18),e.EFF(1),e.nI1(2,"transloco"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"COVERAGE.DETAIL_PAGE.INSURED.BIRTH_DATE"),": "))}function pt(n,r){if(1&n&&(e.j41(0,"div",17),e.EFF(1),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.SpI(" ",t.policyHolder.birthDate," ")}}function mt(n,r){if(1&n&&(e.j41(0,"div",17),e.EFF(1),e.nI1(2,"date"),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.SpI(" ",e.i5U(2,1,t.policyHolder.birthDate,"dd/MM/yyyy")," ")}}function vt(n,r){1&n&&(e.j41(0,"span",18),e.EFF(1),e.nI1(2,"transloco"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"COVERAGE.DETAIL_PAGE.INSURED.NIF"),": "))}function ut(n,r){if(1&n&&(e.j41(0,"div",12)(1,"div",13),e.DNE(2,gt,3,3,"span",14)(3,pt,2,1,"div",15)(4,mt,3,4,"div",15),e.k0s(),e.j41(5,"div",16),e.DNE(6,vt,3,3,"span",14),e.j41(7,"div",17),e.EFF(8),e.k0s()()()),2&n){const t=e.XpG(2);e.R7$(2),e.Y8G("ngIf",t.policyHolder.birthDate),e.R7$(),e.Y8G("ngIf",t.isPsi&&t.policyHolder.birthDate),e.R7$(),e.Y8G("ngIf",!t.isPsi),e.R7$(2),e.Y8G("ngIf",t.policyHolder.nif),e.R7$(2),e.JRh(t.policyHolder.nif)}}function ft(n,r){if(1&n&&(e.j41(0,"div",3)(1,"div",4)(2,"span",5),e.EFF(3),e.nI1(4,"transloco"),e.k0s()(),e.DNE(5,_t,2,4,"div",6)(6,dt,2,10,"ng-template",null,7,e.C5r)(8,ut,9,5,"div",8),e.k0s()),2&n){const t=e.sdS(7),i=e.XpG();e.R7$(3),e.JRh(e.bMT(4,4,"COVERAGE.DETAIL_PAGE.POLICY_HOLDER")),e.R7$(2),e.Y8G("ngIf",i.policyHolder.birthDate||i.policyHolder.nif)("ngIfElse",t),e.R7$(3),e.Y8G("ngIf",i.openContainerPolicyHolder)}}function Ct(n,r){if(1&n&&(e.j41(0,"div",13)(1,"span",24),e.EFF(2),e.nI1(3,"transloco"),e.k0s(),e.j41(4,"div",17),e.EFF(5),e.nI1(6,"date"),e.k0s()()),2&n){const t=e.XpG(2).$implicit;e.R7$(2),e.SpI(" ",e.bMT(3,2,"COVERAGE.DETAIL_PAGE.INSURED.BIRTH_DATE"),": "),e.R7$(3),e.JRh(e.i5U(6,4,t.birthDate,"dd/MM/yyyy"))}}function Et(n,r){if(1&n&&(e.j41(0,"div",13)(1,"span",24),e.EFF(2),e.nI1(3,"transloco"),e.k0s(),e.j41(4,"div",17),e.EFF(5),e.k0s()()),2&n){const t=e.XpG(2).$implicit;e.R7$(2),e.SpI(" ",e.bMT(3,2,"COVERAGE.DETAIL_PAGE.INSURED.CARD_NUMBER"),": "),e.R7$(3),e.JRh(t.cardNumber)}}function It(n,r){if(1&n&&(e.j41(0,"div",13)(1,"span",24),e.EFF(2),e.nI1(3,"transloco"),e.k0s(),e.j41(4,"div",17),e.EFF(5),e.nI1(6,"date"),e.k0s()()),2&n){const t=e.XpG(2).$implicit;e.R7$(2),e.SpI(" ",e.bMT(3,2,"COVERAGE.DETAIL_PAGE.INSURED.CARD_NUMBER_EXPIRATION_DATE"),": "),e.R7$(3),e.SpI(" ",e.i5U(6,4,t.cardNumberExpirationDate,"dd/MM/yyyy")," ")}}function ht(n,r){if(1&n&&(e.j41(0,"div",16)(1,"span",24),e.EFF(2),e.nI1(3,"transloco"),e.k0s(),e.j41(4,"div",17),e.EFF(5),e.nI1(6,"date"),e.k0s()()),2&n){const t=e.XpG(2).$implicit;e.R7$(2),e.SpI(" ",e.bMT(3,2,"COVERAGE.DETAIL_PAGE.INSURED.ENTRY_DATE"),": "),e.R7$(3),e.JRh(e.i5U(6,4,t.entryDate,"dd/MM/yyyy"))}}function bt(n,r){if(1&n&&(e.j41(0,"div",16)(1,"span",24),e.EFF(2),e.nI1(3,"transloco"),e.k0s(),e.j41(4,"div",17),e.EFF(5),e.k0s()()),2&n){const t=e.XpG(2).$implicit;e.R7$(2),e.SpI("",e.bMT(3,2,"COVERAGE.DETAIL_PAGE.INSURED.NIF"),":"),e.R7$(3),e.JRh(t.nif)}}function At(n,r){1&n&&(e.j41(0,"span",39),e.EFF(1),e.nI1(2,"transloco"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"COVERAGE.DETAIL_PAGE.INSURED.SEND_INVITATION")," "))}function Tt(n,r){1&n&&(e.j41(0,"span",39),e.EFF(1),e.nI1(2,"transloco"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"COVERAGE.DETAIL_PAGE.INSURED.RETRY_INVITATION")," "))}function Rt(n,r){if(1&n){const t=e.RV6();e.j41(0,"div",36),e.bIt("click",function(){e.eBV(t);const o=e.XpG(4).$implicit,a=e.XpG(2);return e.Njj(a.sendInvitation(o))}),e.nrm(1,"img",37),e.DNE(2,At,3,3,"span",38)(3,Tt,3,3,"span",38),e.k0s()}if(2&n){const t=e.XpG(4).$implicit,i=e.XpG(2);e.R7$(2),e.Y8G("ngIf",t.invitationState===i.invitationState.NOT_INVITED),e.R7$(),e.Y8G("ngIf",t.invitationState===i.invitationState.INVITED)}}function Dt(n,r){if(1&n){const t=e.RV6();e.j41(0,"div",26)(1,"div",27)(2,"div",28)(3,"span",29),e.EFF(4),e.nI1(5,"transloco"),e.k0s()(),e.j41(6,"div",30)(7,"ion-toggle",31),e.bIt("ionChange",function(o){e.eBV(t);const a=e.XpG(3).$implicit,c=e.XpG(2);return e.Njj(c.changeBlockValue(o,a))}),e.k0s()()(),e.j41(8,"div",32)(9,"div",33),e.nrm(10,"mh-badge",34),e.nI1(11,"transloco"),e.k0s(),e.DNE(12,Rt,4,2,"div",35),e.k0s()()}if(2&n){const t=e.XpG(3).$implicit,i=e.XpG(2);
1e.R7$(4),e.SpI("",e.bMT(5,6,"COVERAGE.DETAIL_PAGE.INSURED.ACCESS"),":"),e.R7$(3),e.Y8G("checked",!t.blocked),e.R7$(3),e.Y8G("badgeText",e.bMT(11,8,i.getUserStatus(t)))("backgroundColor",i.getUserStatusColor(t))("padding",!1),e.R7$(2),e.Y8G("ngIf",t.invitationState===i.invitationState.NOT_INVITED||t.invitationState===i.invitationState.INVITED)}}function xt(n,r){if(1&n&&(e.qex(0),e.DNE(1,Dt,13,10,"div",25),e.bVm()),2&n){const t=e.XpG(2).$implicit;e.R7$(),e.Y8G("ngIf",t&&!t.holder&&t.legalAge)}}const kt=()=>["cajamar"];function Gt(n,r){if(1&n&&(e.j41(0,"div",12),e.DNE(1,Ct,7,7,"div",21)(2,Et,6,4,"div",21)(3,It,7,7,"div",21)(4,ht,7,7,"div",22)(5,bt,6,4,"div",22)(6,xt,2,1,"ng-container",23),e.k0s()),2&n){const t=e.XpG().$implicit;e.R7$(),e.Y8G("ngIf",t.birthDate),e.R7$(),e.Y8G("ngIf",t.cardNumber),e.R7$(),e.Y8G("ngIf",t.cardNumberExpirationDate),e.R7$(),e.Y8G("ngIf",t.entryDate),e.R7$(),e.Y8G("ngIf",t.nif),e.R7$(),e.Y8G("hideIfScope",e.lJ4(6,kt))}}function wt(n,r){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"div",9)(2,"mh-list-item-black-title-1",10),e.bIt("click",function(){const a=e.eBV(t).index,c=e.XpG(2);return e.Njj(c.clickDropdownInsured(a))}),e.k0s()(),e.DNE(3,Gt,7,7,"div",8),e.k0s()}if(2&n){const t=r.$implicit,i=r.index,o=e.XpG(2);e.R7$(2),e.Y8G("componentText",t.fullName)("padding",!0)("iconActive",!0)("icon",o.openContainerInsured[i]?"ios-arrow-up":"ios-arrow-down"),e.R7$(),e.Y8G("ngIf",o.openContainerInsured[i])}}function yt(n,r){if(1&n&&(e.j41(0,"div",19)(1,"div",4)(2,"span",5),e.EFF(3),e.nI1(4,"transloco"),e.k0s()(),e.DNE(5,wt,4,5,"div",20),e.k0s()),2&n){const t=e.XpG();e.R7$(3),e.SpI(" ",e.bMT(4,2,t.insuredMembers.length>1?"COVERAGE.DETAIL_PAGE.INSURED_MEMBERS":"COVERAGE.DETAIL_PAGE.INSURED_MEMBER")," "),e.R7$(2),e.Y8G("ngForOf",t.insuredMembers)}}function Ot(n,r){if(1&n&&(e.j41(0,"div",12)(1,"div",13)(2,"span",18),e.EFF(3),e.nI1(4,"transloco"),e.k0s(),e.j41(5,"div",41),e.EFF(6),e.nI1(7,"date"),e.k0s()(),e.j41(8,"div",16)(9,"span",18),e.EFF(10),e.nI1(11,"transloco"),e.k0s(),e.j41(12,"div",41),e.EFF(13),e.k0s()(),e.j41(14,"div",16)(15,"span",18),e.EFF(16),e.nI1(17,"transloco"),e.k0s(),e.j41(18,"div",41),e.EFF(19),e.nI1(20,"date"),e.k0s()()()),2&n){const t=e.XpG().$implicit;e.R7$(3),e.SpI("",e.bMT(4,6,"COVERAGE.DETAIL_PAGE.INSURED.BIRTH_DATE"),":"),e.R7$(3),e.JRh(e.i5U(7,8,t.birthDate,"dd/MM/yyyy")),e.R7$(4),e.SpI("",e.bMT(11,11,"COVERAGE.DETAIL_PAGE.INSURED.NIF"),":"),e.R7$(3),e.JRh(t.nif),e.R7$(3),e.SpI(" ",e.bMT(17,13,"COVERAGE.DETAIL_PAGE.INSURED.LICENSE_CAR_ISSUE_DATE"),": "),e.R7$(3),e.JRh(e.i5U(20,15,t.licenseCarIssueDate,"dd/MM/yyyy"))}}function St(n,r){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"div",9)(2,"mh-list-item-black-title-1",10),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.clickDropdownDriver())}),e.k0s()(),e.DNE(3,Ot,21,18,"div",8),e.k0s()}if(2&n){const t=r.$implicit,i=e.XpG(2);e.R7$(2),e.Y8G("componentText",t.fullName)("padding",!0)("iconActive",!0)("icon",i.openContainerDriver?"ios-arrow-up":"ios-arrow-down"),e.R7$(),e.Y8G("ngIf",i.openContainerDriver)}}function Nt(n,r){if(1&n&&(e.j41(0,"div",19)(1,"div",4)(2,"span",5),e.EFF(3),e.nI1(4,"transloco"),e.k0s()(),e.DNE(5,St,4,5,"div",40),e.k0s()),2&n){const t=e.XpG();e.R7$(3),e.JRh(e.bMT(4,3,"COVERAGE.DETAIL_PAGE.DRIVERS")),e.R7$(2),e.Y8G("ngForOf",t.drivers)("ngForTrackBy",t.trackByDrivers)}}let pe=(()=>{class n{constructor(){this.movInt=!1,this.isPsi=!1,this.selectSendInvitation=new e.bkB,this.blockInsured=new e.bkB,this.unBlockInsured=new e.bkB,this.openContainerPolicyHolder=!1,this.openContainerDriver=!1,this.invitationState=_.l9}ngOnInit(){this.insuredMembers?.length&&(this.openContainerInsured=new Array(this.insuredMembers?.length).fill(!1))}clickDropdownPolicyHolder(){this.openContainerPolicyHolder=!this.openContainerPolicyHolder}clickDropdownInsured(t){this.openContainerInsured[t]=!this.openContainerInsured[t]}clickDropdownDriver(){this.openContainerDriver=!this.openContainerDriver}trackByInsured(t,i){return i.ypers}trackByDrivers(t,i){return i.nif}getUserStatus(t){switch(t.invitationState){case _.l9.REGISTERED:return t.blocked?"COVERAGE.DETAIL_PAGE.INSURED.USER_
1STATES.BLOCKED":"COVERAGE.DETAIL_PAGE.INSURED.USER_STATES.ACTIVE";case _.l9.INVITED:return"COVERAGE.DETAIL_PAGE.INSURED.USER_STATES.INVITED";case _.l9.NOT_INVITED:return"COVERAGE.DETAIL_PAGE.INSURED.USER_STATES.NO_INVITED";default:return""}}getUserStatusColor(t){switch(t.invitationState){case _.l9.REGISTERED:return t.blocked?"red":"green";case _.l9.INVITED:return"orange";case _.l9.NOT_INVITED:return"red";default:return"green"}}changeBlockValue(t,i){t.detail.checked?this.unBlockInsured.emit(i):this.blockInsured.emit(i)}sendInvitation(t){const{nif:i,mail:o,phone:a,ypers:c,fullName:C}=t;this.selectSendInvitation.emit({nif:i,mail:o,phone:a,ypers:c,name:C})}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["customer-workspace-coverage-details-figures"]],inputs:{drivers:"drivers",insuredMembers:"insuredMembers",policyHolder:"policyHolder",movInt:"movInt",isPsi:"isPsi"},outputs:{selectSendInvitation:"selectSendInvitation",blockInsured:"blockInsured",unBlockInsured:"unBlockInsured"},decls:4,vars:3,consts:[[1,"grid","grid-cols-1","bg-white"],["class","border-solid border-gray-300 px-6 py-10",4,"ngIf"],["class","border-solid border-gray-300 px-6 pb-10",4,"ngIf"],[1,"border-solid","border-gray-300","px-6","py-10"],[1,"w-full","text-4xl"],[1,"w-full"],["class","border-b border-solid border-gray-300",4,"ngIf","ngIfElse"],["showtitle",""],["class","flex w-full flex-col border-b border-solid border-gray-300 py-4 text-2xl",4,"ngIf"],[1,"border-b","border-solid","border-gray-300"],[3,"componentText","padding","iconActive","icon","click"],[3,"componentText","padding","iconActive","toggleActive","tooltipActive","iconLeftActive","badgeActive","iconRight"],[1,"flex","w-full","flex-col","border-b","border-solid","border-gray-300","py-4","text-2xl"],[1,"flex","flex-row","px-6","py-2"],["class","w-1/2 text-gray-500",4,"ngIf"],["class","w-1/2 text-right md:text-left",4,"ngIf"],[1,"flex","w-full","flex-row","px-6","py-2"],[1,"w-1/2","text-right","md:text-left"],[1,"w-1/2","text-gray-500"],[1,"border-solid","border-gray-300","px-6","pb-10"],[4,"ngFor","ngFor$index","ngForOf"],["class","flex flex-row px-6 py-2",4,"ngIf"],["class","flex w-full flex-row px-6 py-2",4,"ngIf"],[4,"hideIfScope"],[1,"w-1/2","pr-6","text-gray-500","md:pr-0"],["class","mt-4 flex flex-col border-t border-solid border-gray-300 px-6 py-4",4,"ngIf"],[1,"mt-4","flex","flex-col","border-t","border-solid","border-gray-300","px-6","py-4"],[1,"flex","flex-row"],[1,"w-1/2","justify-center"],[1,"w-1/2","text-black"],[1,"flex","flex-col","justify-center"],["color","success",1,"z-0",3,"checked","ionChange"],[1,"flex","flex-col","md:flex-row"],[1,"justify-start","pt-4","md:w-1/2","md:justify-center","md:px-8"],[3,"badgeText","backgroundColor","padding"],["class","justify-left flex flex-row pt-4 md:w-1/2 md:pt-0",3,"click",4,"ngIf"],[1,"justify-left","flex","flex-row","pt-4","md:w-1/2","md:pt-0",3,"click"],["src","./assets/img/icons/f65-upload.svg","alt","send-invitation",1,"w-10","cursor-pointer","md:ml-3"],["class","cursor-pointer justify-items-center px-4 py-2",4,"ngIf"],[1,"cursor-pointer","justify-items-center","px-4","py-2"],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"w-1/2"]],template:function(i,o){1&i&&(e.j41(0,"div",0),e.DNE(1,ft,9,6,"div",1)(2,yt,6,4,"div",2)(3,Nt,6,5,"div",2),e.k0s()),2&i&&(e.R7$(),e.Y8G("ngIf",o.policyHolder),e.R7$(),e.Y8G("ngIf",o.insuredMembers&&0!==o.insuredMembers.length),e.R7$(),e.Y8G("ngIf",o.drivers))},dependencies:[l.Sq,l.bT,I.BY,I.hB,O.B,l.vh,v.Kj],changeDetection:0})}}return n})();function Ft(n,r){if(1&n&&(e.j41(0,"div",5)(1,"div",6)(2,"span",7),e.EFF(3),e.nI1(4,"transloco"),e.k0s(),e.j41(5,"div",7),e.EFF(6),e.k0s()(),e.j41(7,"div",8)(8,"span",7),e.EFF(9),e.nI1(10,"transloco"),e.k0s(),e.j41(11,"div",7),e.EFF(12),e.k0s()(),e.j41(13,"div",8)(14,"span",7),e.EFF(15),e.nI1(16,"transloco"),e.k0s(),e.j41(17,"div",7),e.EFF(18),e.k0s()(),e.j41(19,"div",8)(20,"span",7),e.EFF(21),e.nI1(22,"transloco"),e.k0s(),e.j41(23,"div",7),e.EFF(24),e.k0s()(),e.j41(25,"div",8)(26,"span",7),e.EFF(27),e.nI1(28,"transloco"),e.k0s(),e.j41(29,"div",7),e.EFF(30),e.k0s()(),e.j41(31,"div",8)(32,"span",7),e.EFF(33),e.nI1(34,"transloco"),e.k0s(),e.j41(35,"div",7),e.EFF(36),e.k0s()()()),2&n){const t=e.XpG();e.R7$(3),e.SpI("",e.bMT(4,12,"COVERAGE.DETAIL_PAGE.RISKS.BRAND"),":"),e.R7$(3),e.JRh(null==t.coverageDetail||null==t.coverageDetail.vehicle?null:t.coverageDetail.vehicle.brand),e.R7$(3),e.SpI("",e.bMT(10,14,"COVERAGE.DETAIL_PAGE.RISKS.MODEL"),":"),e.R7$(3),e.JRh(null==t.coverageDetail||null==t.coverageDetail.vehicle?null:t.coverageDetail.vehicle.model),e.R7$(3),e.SpI("",e.bMT(16,16,"COVERAGE.DETAIL_PAGE.RISKS.VERSION"),":"),e.R7$(3),e.JRh(null==t.coverageDetail||null==t.coverageDetail.vehicle?null:t.coverageDetail.vehicle.version),e.R7$(3),e.SpI("",e.bMT(22,18,"COVERAGE.DETAIL_PAGE.RISKS.CAR_PLATE"),":"),e.R7$(3),e.JRh(null==t.coverageDetail||null==t.coverageDetail.vehicle?null:t.coverageDetail.vehicle.plateNumber),e.R7$(3),e.SpI("",e.bMT(28,20,"COVERAGE.DETAIL_PAGE.RISKS.DRIVER"),":"),e.R7$(3),e.JRh(null==t.coverageDetail||null==t.coverageDetail.vehicle?null:t.coverageDetail.vehicle.mainDriver),e.R7$(3),e.SpI("",e.bMT(34,22,"COVERAGE.DETAIL_PAGE.RISKS.CODE"),":"),e.R7$(3),e.JRh(null==t.coverageDetail||null==t.coverageDetail.vehicle?null:t.coverageDetail.vehicle.codType)}}let Mt=(()=>{class n{constructor(){this.openContainer=!1}ngOnInit(){this.carInfo=`${this.coverageDetail?.vehicle?.brand} \n    ${this.coverageDetail?.vehicle?.model} \n    ${this.coverageDetail?.vehicle?.version}`}clickDropdown(){this.openContainer=!this.openContainer}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["customer-workspace-coverage-details-insured-risk-car"]],inputs:{coverageDetail:"coverageDetail"},decls:7,vars:8,consts:[[1,"w-full","min-w-full","border-b","border-solid","border-gray-300","lg:pl-8"],[1,"w-full","text-4xl"],[1,"w-full"],[3,"componentText","padding","iconActive","
1icon","click"],["class","flex w-full flex-col pt-4 text-2xl text-gray-500",4,"ngIf"],[1,"flex","w-full","flex-col","pt-4","text-2xl","text-gray-500"],[1,"flex","flex-row","px-6","py-2"],[1,"w-1/2"],[1,"flex","w-full","flex-row","px-6","py-2"]],template:function(i,o){1&i&&(e.j41(0,"div",0)(1,"div",1)(2,"span",2),e.EFF(3),e.nI1(4,"transloco"),e.k0s()(),e.j41(5,"mh-list-item-black-title-1",3),e.bIt("click",function(){return o.clickDropdown()}),e.k0s()(),e.DNE(6,Ft,37,24,"div",4)),2&i&&(e.R7$(3),e.JRh(e.bMT(4,6,"COVERAGE.DETAIL_PAGE.RISKS.WHAT_IS_SECURED")),e.R7$(2),e.Y8G("componentText",o.carInfo.includes("null")?"":o.carInfo)("padding",!0)("iconActive",!0)("icon",o.openContainer?"ios-arrow-up":"ios-arrow-down"),e.R7$(),e.Y8G("ngIf",o.openContainer))},dependencies:[l.bT,v.Kj],changeDetection:0})}}return n})();var Pt=s(46516);function Vt(n,r){if(1&n&&(e.j41(0,"div",8)(1,"div",9)(2,"div",10)(3,"div",11),e.EFF(4),e.nI1(5,"transloco"),e.k0s(),e.j41(6,"div",12),e.EFF(7),e.k0s()()(),e.j41(8,"div",13)(9,"div",10)(10,"div",14),e.EFF(11),e.nI1(12,"transloco"),e.k0s(),e.j41(13,"div",12),e.EFF(14),e.k0s()()()()),2&n){const t=e.XpG();e.R7$(4),e.SpI(" ",e.bMT(5,4,"COVERAGE.DETAIL_PAGE.RISKS.HOME_TYPE")," "),e.R7$(3),e.SpI(" ",null==t.coverageDetail||null==t.coverageDetail.house?null:t.coverageDetail.house.propertyType," "),e.R7$(4),e.SpI(" ",e.bMT(12,6,"COVERAGE.DETAIL_PAGE.RISKS.SECURE_VALUE")," "),e.R7$(3),e.SpI("",null==t.coverageDetail||null==t.coverageDetail.house?null:t.coverageDetail.house.insuredAmount," \u20ac")}}function jt(n,r){if(1&n&&(e.j41(0,"div",16),e.EFF(1),e.nI1(2,"removeContent"),e.k0s()),2&n){const t=r.$implicit;e.R7$(),e.Lme(" ",e.i5U(2,2,t.key,"CONTENIDO - ")," (",t.value,") ")}}function Bt(n,r){if(1&n&&(e.qex(0),e.DNE(1,jt,3,5,"div",15),e.bVm()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngForOf",null==t.coverageDetail||null==t.coverageDetail.house?null:t.coverageDetail.house.insuredContents)}}let $t=(()=>{class n{constructor(){this.openContent=!1,this.openContainer=!0}clickDropdownContent(){this.openContent=!this.openContent}clickDropdownContainer(){this.openContainer=!this.openContainer}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["customer-workspace-coverage-details-insured-risk-home"]],inputs:{coverageDetail:"coverageDetail"},decls:13,vars:17,consts:[[1,"w-full","min-w-full","border-b","border-solid","border-gray-300"],[1,"w-full","text-4xl"],[1,"w-full"],[3,"componentText","padding","iconActive","icon","click"],[1,"flex","w-full","flex-col","text-2xl"],["class","grid grid-cols-2 border-b border-solid border-gray-300",4,"ngIf"],[1,"border-b","border-solid","border-gray-300"],[4,"ngIf"],[1,"grid","grid-cols-2","border-b","border-solid","border-gray-300"],[1,"border-r","border-solid","border-gray-300"],[1,"px-6","py-10"],[1,"text-gray-500"],[1,"my-2","text-3xl"],[1,"border-solid","border-gray-300"],[1,"text-2xl","text-gray-500"],["class","border-b border-solid border-gray-300 p-6 text-gray-500",4,"ngFor","ngForOf"],[1,"border-b","border-solid","border-gray-300","p-6","text-gray-500"]],template:function(i,o){1&i&&(e.j41(0,"div",0)(1,"div",1)(2,"span",2),e.EFF(3),e.nI1(4,"transloco"),e.k0s()(),e.j41(5,"mh-list-item-black-title-1",3),e.bIt("click",function(){return o.clickDropdownContainer()}),e.nI1(6,"transloco"),e.k0s()(),e.j41(7,"div",4),e.DNE(8,Vt,15,8,"div",5),e.j41(9,"div",6)(10,"mh-list-item-black-title-1",3),e.bIt("click",function(){return o.clickDropdownContent()}),e.nI1(11,"transloco"),e.k0s()(),e.DNE(12,Bt,2,1,"ng-container",7),e.k0s()),2&i&&(e.R7$(3),e.JRh(e.bMT(4,11,"COVERAGE.DETAIL_PAGE.RISKS.WHAT_IS_SECURED")),e.R7$(2),e.Y8G("componentText",e.bMT(6,13,"COVERAGE.DETAIL_PAGE.RISKS.CONTINENT"))("padding",!0)("iconActive",!0)("icon",o.openContainer?"ios-arrow-up":"ios-arrow-down"),e.R7$(3),e.Y8G("ngIf",o.openContainer),e.R7$(2),e.Y8G("componentText",e.bMT(11,15,"COVERAGE.DETAIL_PAGE.RISKS.CONTENT"))("padding",!0)("iconActive",!0)("icon",o.openContent?"ios-arrow-up":"ios-arrow-down"),e.R7$(2),e.Y8G("ngIf",o.openContent))},dependencies:[l.Sq,l.bT,v.Kj,Pt.s],changeDetection:0})}}return n})();
1function Lt(n,r){if(1&n&&(e.j41(0,"div",8),e.EFF(1),e.k0s()),2&n){const t=r.$implicit;e.R7$(),e.JRh(t)}}function Yt(n,r){if(1&n&&(e.j41(0,"div",7),e.Z7z(1,Lt,2,1,"div",9,e.Vm6),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Dyx(t.beneficiariesDescription())}}let Xt=(()=>{class n{constructor(){this.beneficiariesDescription=(0,e.hFB)([]),this.openContainerInfo=(0,e.vPA)(!1)}clickDropdownInfo(){this.openContainerInfo.update(t=>!t)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["customer-workspace-coverage-details-beneficiaries"]],inputs:{beneficiariesDescription:[e.Mj6.SignalBased,"beneficiariesDescription"]},decls:10,vars:10,consts:[[1,"grid","grid-cols-1","bg-white"],[1,"px-6","pb-10"],[1,"w-full","text-4xl"],[1,"w-full"],[1,"border-b","border-solid","border-gray-300"],[3,"componentText","padding","iconActive","icon","click"],["class","flex w-full flex-col border-t border-solid border-gray-300 py-4 text-2xl",4,"ngIf"],[1,"flex","w-full","flex-col","border-t","border-solid","border-gray-300","py-4","text-2xl"],[1,"py-2s","px-6"],["class","py-2s px-6"]],template:function(i,o){1&i&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"span",3),e.
1EFF(4),e.nI1(5,"transloco"),e.k0s()(),e.j41(6,"div",4)(7,"mh-list-item-black-title-1",5),e.bIt("click",function(){return o.clickDropdownInfo()}),e.nI1(8,"transloco"),e.k0s(),e.DNE(9,Yt,3,0,"div",6),e.k0s()()()),2&i&&(e.R7$(4),e.JRh(e.bMT(5,6,"COVERAGE.DETAIL_PAGE.BENEFICIARIES")),e.R7$(3),e.Y8G("componentText",e.bMT(8,8,"COVERAGE.DETAIL"))("padding",!0)("iconActive",!0)("icon",o.openContainerInfo()?"ios-arrow-up":"ios-arrow-down"),e.R7$(2),e.Y8G("ngIf",o.openContainerInfo()))},dependencies:[l.bT,v.Kj],changeDetection:0})}}return n})();function Ut(n,r){if(1&n&&(e.j41(0,"div",5)(1,"div",6),e.nrm(2,"span",7),e.nI1(3,"transloco"),e.k0s()()),2&n){const t=e.XpG();e.R7$(2),e.Y8G("innerHTML",e.bMT(3,1,t.answer),e.npT)}}let Jt=(()=>{class n{constructor(){this.openContainerQuestion=!1,this.invitationState=_.l9}clickDropdownPolicyHolder(){this.openContainerQuestion=!this.openContainerQuestion}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["customer-workspace-beacon-details-figures"]],inputs:{question:"question",answer:"answer"},decls:5,vars:7,consts:[[1,"grid","grid-cols-1","bg-white"],[1,"border-solid","border-gray-300","px-6"],[1,"border-b","border-solid","border-gray-300",3,"ngClass"],[3,"colorBg","componentText","padding","iconActive","icon","click"],["class","flex w-full flex-col border-b border-solid border-gray-300 bg-[#f5f5f5] py-4 text-2xl",4,"ngIf"],[1,"flex","w-full","flex-col","border-b","border-solid","border-gray-300","bg-[#f5f5f5]","py-4","text-2xl"],[1,"flex","flex-row","px-6","py-2","text-justify"],[1,"text-[#454b59]",3,"innerHTML"]],template:function(i,o){1&i&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"mh-list-item-black-title-1",3),e.bIt("click",function(){return o.clickDropdownPolicyHolder()}),e.k0s()(),e.DNE(4,Ut,4,3,"div",4),e.k0s()()),2&i&&(e.R7$(2),e.Y8G("ngClass",o.openContainerQuestion?"question_open":"question_close"),e.R7$(),e.Y8G("colorBg","generali")("componentText",o.question)("padding",!0)("iconActive",!0)("icon",o.openContainerQuestion?"ios-arrow-up":"ios-arrow-down"),e.R7$(),e.Y8G("ngIf",o.openContainerQuestion))},dependencies:[l.YU,l.bT,v.Kj],changeDetection:0})}}return n})();function Ht(n,r){if(1&n){const t=e.RV6();e.j41(0,"div",5)(1,"div",6)(2,"h1",7),e.EFF(3),e.nI1(4,"transloco"),e.k0s(),e.j41(5,"div",8)(6,"p",9),e.EFF(7),e.nI1(8,"transloco"),e.k0s()()(),e.j41(9,"div",10)(10,"div",11)(11,"div",12),e.nrm(12,"img",13),e.k0s(),e.j41(13,"div",14)(14,"h3",7),e.EFF(15),e.nI1(16,"transloco"),e.k0s(),e.j41(17,"div",8)(18,"p",9),e.EFF(19),e.nI1(20,"transloco"),e.k0s()()()(),e.j41(21,"div",11)(22,"div",12),e.nrm(23,"img",15),e.k0s(),e.j41(24,"div",14)(25,"h3",7),e.EFF(26),e.nI1(27,"transloco"),e.k0s(),e.j41(28,"div",8)(29,"p",9),e.EFF(30),e.nI1(31,"transloco"),e.k0s()()()(),e.j41(32,"div",11)(33,"div",12),e.nrm(34,"img",16),e.k0s(),e.j41(35,"div",14)(36,"h3",7),e.EFF(37),e.nI1(38,"transloco"),e.k0s(),e.j41(39,"div",8)(40,"p",9),e.EFF(41),e.nI1(42,"transloco"),e.k0s()()()()(),e.j41(43,"div",17)(44,"div",18)(45,"mh-primary-button",19),e.bIt("buttonClicked",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.openConfigureBeacon())}),e.nI1(46,"transloco"),e.k0s()(),e.j41(47,"div",18)(48,"mh-primary-button",20),e.bIt("buttonClicked",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.openBuyBeacon())}),e.nI1(49,"transloco"),e.k0s()()()()}2&n&&(e.R7$(3),e.SpI(" ",e.bMT(4,16,"BEACON.DETAIL_PAGE.BUY.TITLE")," "),e.R7$(4),e.JRh(e.bMT(8,18,"BEACON.DETAIL_PAGE.BUY.SUBTITLE")),e.R7$(8),e.SpI(" ",e.bMT(16,20,"BEACON.DETAIL_PAGE.BUY.TEXT_1.TITLE")," "),e.R7$(4),e.JRh(e.bMT(20,22,"BEACON.DETAIL_PAGE.BUY.TEXT_1.TEXT")),e.R7$(7),e.SpI(" ",e.bMT(27,24,"BEACON.DETAIL_PAGE.BUY.TEXT_2.TITLE")," "),e.R7$(4),e.JRh(e.bMT(31,26,"BEACON.DETAIL_PAGE.BUY.TEXT_2.TEXT")),e.R7$(7),e.SpI(" ",e.bMT(38,28,"BEACON.DETAIL_PAGE.BUY.TEXT_3.TITLE")," "),e.R7$(4),e.JRh(e.bMT(42,30,"BEACON.DETAIL_PAGE.BUY.TEXT_3.TEXT")),e.R7$(4),e.Y8G("text",e.bMT(46,32,"BEACON.DETAIL_PAGE.BUY.BUTTON.VIN"))("big",!0)("outlineButton",!0)("padding",!1),e.R7$(3),e.Y8G("text",e.bMT(49,34,"BEACON.DETAIL_PAGE.BUY.BUTTON.BUY"))("big",!0)("redButton",!0)("padding",!1))}function Qt(n,r){if(1&n){const t=e.RV6();e.j41(0,"div",5)(1,"div",6)(2,"h1",7),e.EFF(3),e.nI1(4,"transloco"),e.k0s(),e.j41(5,"div",8)(6,"p",9),e.EFF(7),e.nI1(8,"transloco"),e.k0s()()(),e.j41(9,"div",10)(10,"div",11)(11,"div",21),e.nrm(12,"img",22),e.k0s(),e.j41(13,"div",14)(14,"div",8)(15,"p",9),e.EFF(16),e.nI1(17,"transloco"),e.k0s()()()(),e.j41(18,"div",11)(19,"div",21),e.nrm(20,"img",23),e.k0s(),e.j41(21,"div",14)(22,"div",8)(23,"p",9),e.EFF(24),e.nI1(25,"transloco"),e.k0s()()()(),e.j41(26,"div",11)(27,"div",21),e.nrm(28,"img",24),e.k0s(),e.j41(29,"div",14)(30,"div",8)(31,"p",9),e.EFF(32),e.nI1(33,"transloco"),e.k0s()()()()(),e.j41(34,"div",25)(35,"div",18)(36,"mh-primary-button",20),e.bIt("buttonClicked",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.openConfigureBeacon())}),e.nI1(37,"transloco"),e.k0s()()()()}2&n&&(e.R7$(3),e.SpI(" ",e.bMT(4,9,"BEACON.DETAIL_PAGE.VIN.TITLE")," "),e.R7$(4),e.JRh(e.bMT(8,11,"BEACON.DETAIL_PAGE.VIN.SUBTITLE")),e.R7$(9),e.JRh(e.bMT(17,13,"BEACON.DETAIL_PAGE.VIN.TEXT_1.TEXT")),e.R7$(8),e.JRh(e.bMT(25,15,"BEACON.DETAIL_PAGE.VIN.TEXT_2.TEXT")),e.R7$(8),e.JRh(e.bMT(33,17,"BEACON.DETAIL_PAGE.VIN.TEXT_3.TEXT")),e.R7$(4),e.Y8G("text",e.bMT(37,19,"BEACON.DETAIL_PAGE.VIN.BUTTON.VIN"))("big",!0)("redButton",!0)("padding",!1))}function Wt(n,r){if(1&n){const t=e.RV6();e.j41(0,"div",6)(1,"div",11)(2,"div",21),e.nrm(3,"img",26),e.k0s(),e.j41(4,"div",14)(5,"h1",7),e.EFF(6),e.nI1(7,"transloco"),e.k0s(),e.j41(8,"div",8)(9,"p",9),e.EFF(10),e.nI1(11,"transloco"),e.j41(12,"span"),e.EFF(13),e.k0s()()()()(),e.j41(14,"div",27)(15,"h1",7),e.EFF(16),e.nI1(17,"transloco"),e.k0s()(),e.j41(18,"div",10)(19,"div",11)(20,"div",21),e.nrm(21,"img",28),e.k0s(),e.j41(22,"div",14)(23,"h3",7),e.EFF(24),e.nI1(25,"transloco"),e.k0s(),e.nrm(26,"div",29),e.nI1(27,"transloco"),e.k0s()(),e.j41(28,"div",11)(29,"div",21),e.nrm(30,"img",30),e.k0s(),e.j41(31,"div",14)(32,"h3",7),e.EFF(33),e.nI1(34,"transloco"),e.k0s(),e.nrm(35,"div",29),e.nI1(36,"transloco"),e.k0s()()(),e.j41(37,"div",27)(38,"h1",7),e.EFF(39),e.nI1(40,"transloco"),e.k0s()(),e.j41(41,"div",25)(42,"div",18)(43,"mh-primary-button",20),e.bIt("buttonClicked",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.openConfigureBeacon())}),e.nI1(44,"transloco"),e.k0s()()()()}if(2&n){const t=e.XpG();e.R7$(6),e.SpI(" ",e.bMT(7,13,"BEACON.DETAIL_PAGE.CONF.TITLE")," "),e.R7$(4),e.SpI(" ",e.bMT(11,15,"BEACON.DETAIL_PAGE.CONF.SUBTITLE")," "),e.R7$(3),e.JRh(t.beacon.codBeacon),e.R7$(3),e.SpI(" ",e.bMT(17,17,"BEACON.DETAIL_PAGE.CONF.HEAD_1")," "),e.R7$(8),e.SpI(" ",e.bMT(25,19,"BEACON.DETAIL_PAGE.CONF.TEXT_1.TITLE")," "),e.R7$(2),e.Y8G("innerHTML",e.bMT(27,21,"BEACON.DETAIL_PAGE.CONF.TEXT_1.TEXT"),e.npT),e.R7$(7),e.SpI(" ",e.bMT(34,23,"BEACON.DETAIL_PAGE.CONF.TEXT_2.TITLE")," "),e.R7$(2),e.Y8G("innerHTML",e.bMT(36,25,"BEACON.DETAIL_PAGE.CONF.TEXT_2.TEXT"),e.npT),e.R7$(4),e.SpI(" ",e.bMT(40,27,"BEACON.DETAIL_PAGE.CONF.HEAD_2")," "),e.R7$(4),e.Y8G("text",e.bMT(44,29,"BEACON.DETAIL_PAGE.CONF.BUTTON.CONF"))("big",!0)("redButton",!0)("padding",!1)}}function zt(n,r){if(1&n&&(e.nrm(0,"customer-workspace-beacon-detail
1s-figures",36),e.nI1(1,"transloco")),2&n){const t=e.XpG().$implicit;e.Y8G("question",e.bMT(1,2,t.question))("answer",t.answer)}}const Kt=()=>[];function qt(n,r){if(1&n&&(e.qex(0),e.DNE(1,zt,2,4,"customer-workspace-beacon-details-figures",35),e.bVm()),2&n){const t=r.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.views?i.showQuestion(t.views):e.lJ4(1,Kt))}}function Zt(n,r){if(1&n&&(e.qex(0),e.j41(1,"div",31)(2,"div",32)(3,"h1",33),e.EFF(4),e.nI1(5,"transloco"),e.k0s()(),e.DNE(6,qt,2,2,"ng-container",34),e.k0s(),e.bVm()),2&n){const t=e.XpG();e.R7$(4),e.JRh(e.bMT(5,2,"BEACON.DETAIL_PAGE.FAQS.TITLE")),e.R7$(2),e.Y8G("ngForOf",t.questions)}}let en=(()=>{class n{constructor(){this.clickOpenWebAppErum=new e.bkB,this.clickOpenLandingErum=new e.bkB,this.questions=[{question:"BEACON.DETAIL_PAGE.FAQS.FAQ_1.QUESTION",answer:"BEACON.DETAIL_PAGE.FAQS.FAQ_1.ANSWER",views:["D","C","V"]},{question:"BEACON.DETAIL_PAGE.FAQS.FAQ_2.QUESTION",answer:"BEACON.DETAIL_PAGE.FAQS.FAQ_2.ANSWER",views:["D","C"]},{question:"BEACON.DETAIL_PAGE.FAQS.FAQ_3.QUESTION",answer:"BEACON.DETAIL_PAGE.FAQS.FAQ_3.ANSWER",views:["D","C"]},{question:"BEACON.DETAIL_PAGE.FAQS.FAQ_4.QUESTION",answer:"BEACON.DETAIL_PAGE.FAQS.FAQ_4.ANSWER",views:["D","C"]},{question:"BEACON.DETAIL_PAGE.FAQS.FAQ_5.QUESTION",answer:"BEACON.DETAIL_PAGE.FAQS.FAQ_5.ANSWER",views:["D","C"]},{question:"BEACON.DETAIL_PAGE.FAQS.FAQ_6.QUESTION",answer:"BEACON.DETAIL_PAGE.FAQS.FAQ_6.ANSWER",views:["D","C"]},{question:"BEACON.DETAIL_PAGE.FAQS.FAQ_7.QUESTION",answer:"BEACON.DETAIL_PAGE.FAQS.FAQ_7.ANSWER",views:["D","C","V"]},{question:"BEACON.DETAIL_PAGE.FAQS.FAQ_8.QUESTION",answer:"BEACON.DETAIL_PAGE.FAQS.FAQ_8.ANSWER",views:["V"]},{question:"BEACON.DETAIL_PAGE.FAQS.FAQ_9.QUESTION",answer:"BEACON.DETAIL_PAGE.FAQS.FAQ_9.ANSWER",views:["V"]},{question:"BEACON.DETAIL_PAGE.FAQS.FAQ_10.QUESTION",answer:"BEACON.DETAIL_PAGE.FAQS.FAQ_10.ANSWER",views:["V"]},{question:"BEACON.DETAIL_PAGE.FAQS.FAQ_11.QUESTION",answer:"BEACON.DETAIL_PAGE.FAQS.FAQ_11.ANSWER",views:["V"]},{question:"BEACON.DETAIL_PAGE.FAQS.FAQ_12.QUESTION",answer:"BEACON.DETAIL_PAGE.FAQS.FAQ_12.ANSWER",views:["V"]},{question:"BEACON.DETAIL_PAGE.FAQS.FAQ_13.QUESTION",answer:"BEACON.DETAIL_PAGE.FAQS.FAQ_13.ANSWER",views:["V"]},{question:"BEACON.DETAIL_PAGE.FAQS.FAQ_14.QUESTION",answer:"BEACON.DETAIL_PAGE.FAQS.FAQ_14.ANSWER",views:["V"]},{question:"BEACON.DETAIL_PAGE.FAQS.FAQ_15.QUESTION",answer:"BEACON.DETAIL_PAGE.FAQS.FAQ_15.ANSWER",views:["V"]},{question:"BEACON.DETAIL_PAGE.FAQS.FAQ_16.QUESTION",answer:"BEACON.DETAIL_PAGE.FAQS.FAQ_16.ANSWER",views:["V"]},{question:"BEACON.DETAIL_PAGE.FAQS.FAQ_17.QUESTION",answer:"BEACON.DETAIL_PAGE.FAQS.FAQ_17.ANSWER",views:["C"]},{question:"BEACON.DETAIL_PAGE.FAQS.FAQ_18.QUESTION",answer:"BEACON.DETAIL_PAGE.FAQS.FAQ_18.ANSWER",views:["V"]}]}showQuestion(t){return t.includes(String(this.beacon.status))}openConfigureBeacon(){this.clickOpenWebAppErum.emit()}openBuyBeacon(){this.clickOpenLandingErum.emit()}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["customer-workspace-coverage-details-beacon"]],inputs:{beacon:"beacon"},outputs:{clickOpenWebAppErum:"clickOpenWebAppErum",clickOpenLandingErum:"clickOpenLandingErum"},decls:6,vars:7,consts:[[1,"mb-8","grid","grid-cols-1","bg-white"],["class","px-6 py-10",4,"ngIf"],["class","w-full px-6 pb-10 text-4xl",4,"ngIf"],[3,"hrShow","background","fullWidth"],[4,"ngIf"],[1,"px-6","py-10"],[1,"w-full","px-6","pb-10","text-4xl"],[1,"m-auto","text-4xl","font-bold","leading-8","text-gray-900"],[1,"mt-20","space-y-6","text-left","md:mt-6"],[1,"text-2xl","text-gray-500"],[1,"w-full","text-4xl"],[1,"px-6","py-10","md:flex","md:items-start"],[1,"mx-auto","flex","size-24","shrink-0","items-center","justify-center","rounded-full"],["src","./assets/img/icons/b06-telefono.svg","alt","Telefono",1,"size-full"],[1,"mt-6","text-center","md:ml-8","md:mt-2","md:text-left"],["src","./assets/img/icons/b07-geolocalizacion.svg","alt","Geolocalizacion",1,"size-full"],["src","./assets/img/icons/b05-producto-homologado.svg","alt","Producto homologado",1,"size-full"],[1,"modal-buttons-container","w-full"],[1,"modal-button","w-full"],["data-testid","button-cancel",3,"text","big","outlineButton","padding","buttonClicked"],["data-testid","button-accept",3,"text","big","redButton","padding","buttonClicked"],[1,"mx-auto","flex","size-24","shrink-0","items-center","justify-center","rounded-full","md:mx-0"],["src","./assets/img/Generali_base_baliza.png","alt","Base baliza",1,"size-full"],["src","./assets/img/icons/b09-digital-focus.svg","alt","Digital focus",1,"size-full"],["src","./assets/img/icons/b08-accept.svg","alt","Accept",1,"size-full"],[1,"modal-buttons-container","justify-beetween","w-full"],["src","./assets/img/icons/b03-baliza-coche-exenta.svg","alt","Coche exenta",1,"size-full"],[1,"px-6","py-10","text-center","md:flex","md:items-start"],["src","./assets/img/icons/b02-baliza-coche-activa.svg","alt","Baliza activa",1,"size-full"],[1,"mt-20","space-y-6","text-left","md:mt-6",3,"innerHTML"],["src","./assets/img/icons/b01-alerta-asistencia.svg","alt","Alerta asistencia",1,"size-full"],[1,"grid","grid-cols-1","bg-white"],[1,"w-full","py-10","text-center","text-4xl"],[1,"w-full"],[4,"ngFor","ngForOf"],[3,"question","answer",4,"ngIf"],[3,"question","answer"]],template:function(i,o){1&i&&(e.j41(0,"div",0),e.DNE(1,Ht,50,36,"div",1)(2,Qt,38,21,"div",1)(3,Wt,45,31,"div",2),e.nrm(4,"mh-divider",3),e.k0s(),e.DNE(5,Zt,7,4,"ng-container",4)),2&i&&(e.R7$(),e.Y8G("ngIf","D"===(null==o.beacon?null:o.beacon.status)),e.R7$(),e.Y8G("ngIf","C"===(null==o.beacon?null:o.beacon.status)),e.R7$(),e.Y8G("ngIf","V"===(null==o.beacon?null:o.beacon.status)),e.R7$(),e.Y8G("hrShow",!0)("background",!1)("fullWidth",!0),e.R7$(),e.Y8G("ngIf",o.questions.length>0))},dependencies:[l.Sq,l.bT,Jt,v.Kj],styles:["mh-list-item-black-title-2[_ngcontent-%COMP%]{--mh-list-item-black-title-2-title-font-size: 14px}mh-list-item-black-title-1[_ngcontent-%COMP%]{--mh-list-item-black-title-1-title-font-size: 14px}.title[_ngcontent-%COMP%]   mh-list-item-black-title-2[_ngcontent-%COMP%]{--mh-list-item-black-title-2-title-font-size: 20px}"],changeDetection:0})}}return n})();function tn(n,r){if(1&n){const t=e.RV6();e.qSk(),e.j41(0,"svg",3),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.inspectCard(o.cardInfo))}),e.nrm(1,"path",4)(2,"path",5),e.k0s()}}let nn=(()=>{class n{constructor(){this.showInspect=!1,this.cardInspected=new e.bkB}setCard(t){switch(t){case"1":return"bg-[url('assets/img/dental-1.png')]";case"2":return"bg-[url('assets/img/dental-2.png')]";default:return"bg-[url('assets/img/dental-3.png')]"}}inspectCard(t){this.cardInspected.emit(t)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["customer-workspace-coverage-my-dental-card"]],inputs:{cardInfo:"cardInfo",showInspect:"showInspect"},outputs:{cardInspected:"cardInspected"},decls:6,vars:6,consts:[[1,"absolute","left-12","top-[56%]","text-2xl","font-bold"],[1,"absolute","left-12","top-[66%]","text-2xl","font-bold"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 20 20","fill","currentColor","data-testid","inspect-card","class","absolute left-1 top-1 size-16 cursor-pointer text-brand md:size-16",3,"click",4,"ngIf"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 20 20","fill","currentColor","data-testid","inspect-card",1,"absolute","left-1","top-1","
1size-16","cursor-pointer","text-brand","md:size-16",3,"click"],["d","M9 9a2 2 0 114 0 2 2 0 01-4 0z"],["fill-rule","evenodd","d","M10 18a8 8 0 100-16 8 8 0 000 16zm1-13a4 4 0 00-3.446 6.032l-2.261 2.26a1 1 0 101.414 1.415l2.261-2.261A4 4 0 1011 5z","clip-rule","evenodd"]],template:function(i,o){1&i&&(e.j41(0,"div")(1,"label",0),e.EFF(2),e.k0s(),e.j41(3,"label",1),e.EFF(4),e.k0s(),e.DNE(5,tn,3,0,"svg",2),e.k0s()),2&i&&(e.ZvI("",o.setCard(o.cardInfo.cardType)," mx-auto h-[19rem] w-[30rem] md:h-[25rem] md:w-[39rem] bg-cover bg-no-repeat border border-solid border-brand rounded-2xl relative text-brand"),e.R7$(2),e.JRh(o.cardInfo.cardNumber),e.R7$(2),e.SpI(" ",o.cardInfo.insuredName," "),e.R7$(),e.Y8G("ngIf",o.showInspect))},dependencies:[l.bT],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return n})();var on=s(91770),me=s(88068),ve=s(8468),q=s(35868),S=s(54948);function rn(n,r){if(1&n){const t=e.RV6();e.j41(0,"div",13)(1,"div",14)(2,"mh-breadcrumbs",15),e.bIt("goBack",function(o){e.eBV(t);const a=e.XpG().ngIf,c=e.XpG();return e.Njj(c.navigateTo(a.breadCrumbs,o))})("goBackTo",function(o){e.eBV(t);const a=e.XpG().ngIf,c=e.XpG();return e.Njj(c.navigateTo(a.breadCrumbs,o))}),e.nI1(3,"transloco"),e.k0s()()()}if(2&n){const t=e.XpG().ngIf,i=e.XpG();e.R7$(2),e.Y8G("breadcrumbs",i.translateBreadCrumbs(t.breadCrumbs))("backLabel",e.bMT(3,3,"BUTTONS.BACK"))("isBreadcrumbDevice",!0)}}function an(n,r){1&n&&e.eu8(0)}const ue=()=>({classContext:"block md:hidden pb-4"});function sn(n,r){if(1&n&&(e.qex(0),e.DNE(1,an,1,0,"ng-container",25),e.bVm()),2&n){e.XpG(4);const t=e.sdS(12);e.R7$(),e.Y8G("ngTemplateOutlet",t)("ngTemplateOutletContext",e.lJ4(2,ue))}}function cn(n,r){1&n&&e.eu8(0)}function ln(n,r){if(1&n){const t=e.RV6();e.j41(0,"customer-workspace-action-item",30),e.bIt("actionEmit",function(){const a=e.eBV(t).$implicit,c=e.XpG(4).ngIf,C=e.XpG();return e.Njj(C.itemActionClicked(a,c.coverage,c.phones,c.emails))}),e.k0s()}if(2&n){const t=r.$implicit;e.Y8G("title",t.title)("icon",t.icon)("isExternalUrl",t.isExternalUrl)("url",t.url)("action",t.action)}}function _n(n,r){if(1&n){const t=e.RV6();e.j41(0,"div",31),e.bIt("click",function(){e.eBV(t);const o=e.XpG(4).ngIf,a=e.XpG();return e.Njj(a.clickLightbulb(o.coverage.type,o.links,null==o.coverage.agent?null:o.coverage.agent.id))}),e.nrm(1,"img",32),e.j41(2,"p",33),e.EFF(3),e.k0s()()}if(2&n){const t=e.XpG(4).ngIf,i=e.XpG();e.R7$(3),e.SpI(" ",i.setAction(t.coverage.type,t.coverage.agent)," ")}}const $=()=>["cajamar"];function dn(n,r){if(1&n){const t=e.RV6();e.j41(0,"div",24),e.DNE(1,sn,2,3,"ng-container",22)(2,cn,1,0,"ng-container",25),e.j41(3,"customer-workspace-horizontal-tab-menu",26),e.bIt("clickTab",function(o){e.eBV(t);const a=e.XpG(4);return e.Njj(a.selectTab(o))}),e.k0s(),e.j41(4,"div",27),e.DNE(5,ln,1,5,"customer-workspace-action-item",28),e.k0s(),e.DNE(6,_n,4,1,"div",29),e.k0s()}if(2&n){const t=e.XpG(3).ngIf,i=e.sdS(14),o=e.XpG();e.R7$(),e.Y8G("hideIfScope",e.lJ4(6,$)),e.R7$(),e.Y8G("ngTemplateOutlet",i)("ngTemplateOutletContext",e.lJ4(7,ue)),e.R7$(),e.Y8G("tabs",o.tabs),e.R7$(2),e.Y8G("ngForOf",o.setContractActions(t.links,t.coverage,t.showTeladoc,t.showDoctor24Online,t.hasMedicalChat,t.hasPlumber,t.isHealthPartnerAvailable,o.environment.scope,t.showCajamarUserOptions,t.showTickets,t.showFunnels,t.switchDoctorChatDate,t.showCsgTickets,t.showCancellationILT)),e.R7$(),e.Y8G("hideIfScope",e.lJ4(8,$))}}function gn(n,r){1&n&&e.eu8(0)}const fe=()=>({classContext:"hidden md:block pb-4"});function pn(n,r){if(1&n&&(e.qex(0),e.DNE(1,gn,1,0,"ng-container",25),e.bVm()),2&n){e.XpG(4);const t=e.sdS(12);e.R7$(),e.Y8G("ngTemplateOutlet",t)("ngTemplateOutletContext",e.lJ4(2,fe))}}function mn(n,r){1&n&&e.eu8(0)}function vn(n,r){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"customer-workspace-coverage-details-overview",38),e.bIt("clickOnReceipts",function(){e.eBV(t);const o=e.XpG(5);return e.Njj(o.goToReceipts())})("clickOnEditAccount",function(){e.eBV(t);const o=e.XpG(5);return e.Njj(o.editIban())})("showActiveEditToast",function(){e.eBV(t);const o=e.XpG(5);return e.Njj(o.showActiveEditToast())}),e.k0s()()}if(2&n){const t=e.XpG(4).ngIf;e.R7$(),e.Y8G("coverage",t.coverage)("limitedUser",t.limitedUser)}}const Z=()=>[];function un(n,r){if(1&n&&e.nrm(0,"customer-workspace-coverage-details-beneficiaries",41),2&n){const t=e.XpG(5).ngIf;let i;e.Y8G("beneficiariesDescription",null!==(i=null==t.coverage.details||null==t.coverage.details.beneficiaries?null:t.coverage.details.beneficiaries.description)&&void 0!==i?i:e.lJ4(2,Z))("coverage",t.coverage)}}function fn(n,r){if(1&n){const t=e.RV6();e.j41(0,"div",39)(1,"customer-workspace-coverage-details-figures",40),e.bIt("unBlockInsured",function(o){e.eBV(t);const a=e.XpG(5);return e.Njj(a.unblockInsured(o))})("blockInsured",function(o){e.eBV(t);const a=e.XpG(5);return e.Njj(a.blockInsured(o))})("selectSendInvitation",function(o){e.eBV(t);const a=e.XpG(4).ngIf,c=e.XpG();return e.Njj(c.invitationOpenModal(o,a.urlLegal,a.movInt))}),e.k0s(),e.DNE(2,un,1,3,"customer-workspace-coverage-details-beneficiaries",41),e.k0s()}if(2&n){const t=e.XpG(4).ngIf,i=e.XpG();e.R7$(),e.Y8G("drivers",null==t.coverage.details?null:t.coverage.details.drivers)("insuredMembers",null==t.coverage.details?null:t.coverage.details.insuredMembers)("policyHolder",null==t.coverage.details?null:t.coverage.details.policyHolder)("isPsi",!1),e.R7$(),e.vxM(2,null!=t.coverage.details&&null!=t.coverage.details.beneficiaries&&null!=t.coverage.details.beneficiaries.description&&t.coverage.details.beneficiaries.description.length&&(t.coverage.type===i.PolicyTypes.VIDA_RIESGO||i.environment.scope===i.Scopes.CAJAMAR&&t.coverage.type===i.PolicyTypes.VIDA_INVERSION)?2:-1)}}function Cn(n,r){1&n&&(e.j41(0,"div",47)(1,"span"),e.EFF(2),e.nI1(3,"transloco"),e.k0s()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"COVERAGE.DETAIL_PAGE.TEST_STATUS_SIGNED")))}function En(n,r){1&n&&(e.j41(0,"div",47)(1,"span"),e.EFF(2),e.nI1(3,"transloco"),e.k0s()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"COVERAGE.DETAIL_PAGE.TEST_STATUS_UNSIGNED")))}function In(n,r){if(1&n&&(e.j41(0,"div",42)(1,"div",43)(2,"div",44)(3,"span",45),e.EFF(4),e.nI1(5,"transloco"),e.k0s()(),e.DNE(6,Cn,4,3,"div",46)(7,En,4,3,"div",46),e.k0s()()),2&n){const t=e.XpG(5);e.R7$(4),e.SpI(" ",e.bMT(5,3,"COVERAGE.DETAIL_PAGE.TEST_STATUS_TITLE")," "),e.R7$(2),e.Y8G("ngIf","SI"===t.testStatus()),e.R7$(),e.Y8G("ngIf","SI"!==t.testStatus())}}function hn(n,r){if(1&n&&(e.j41(0,"swiper-slide"),e.nrm(1,"customer-workspace-coverage-my-dental-card",56),e.k0s()),2&n){const t=r.$implicit;e.R7$(),e.Y8G("cardInfo",t)}}function bn(n,r){if(1&n){const t=e.RV6();e.j41(0,"div",39)(1,"div",48)(2,"div",49)(3,"div",50)(4,"div",51)(5,"span",45),e.EFF(6),e.nI1(7,"transloco"),e.k0s()(),e.j41(8,"div")(9,"div",52),e.bIt("click",function(){e.eBV(t);const o=e.XpG(5);return e.Njj(o.openDentalCardLink())}),e.EFF(10),e.nI1(11,"transloco"),e.k0s()()(),e.j41(12,"swiper-container",53,54),e.DNE(14,hn,2,1,"swiper-slide",55),e.k0s()()()()}if(2&n){const t=e.XpG(4).ngIf,i=e.XpG();e.R7$(6),e.JRh(e.bMT(7,4,"COVERAGE.DETAIL_PAGE.DENTAL_CARD")),e.R7$(4),e.SpI(" ",e.bMT(11,6,"COVERAGE.DETAIL_PAGE.ACTION_MENU.TITLES.CUADRO_MEDICO")," "),e.R7$(2),e.Y8G("config",i.swiperConfig),e.R7$(2),e.Y8G("ngForOf",null==t.coverage.details?null:t.coverage.details.dentalCards)}}function An(n,r){if(1&n&&e.nrm(0,"customer-workspace-coverage-details-insured-risk-home",59),2&n){const t=e.XpG(5).ngIf;e.Y8G("coverageDetail",t.coverage.details)}}function Tn(n,r){if(1&n&&e.nrm(0,"customer-workspace-coverage-details-insured-risk-car",59),2&n){const t=e.XpG(5).ngIf;e.Y8G("coverageDetail",t.coverage.details)}}function Rn(n,r){if(1&n&&(e.j41(0,"div",57),e.DNE(1,An,1,1,"customer-workspace-coverage-details-insured-risk-home",58)(2,Tn,1,1,"customer-workspace-coverage-details-insured-risk-car",58),e.k0s()),2&n){const t=e.XpG(4).ngIf,i=e.XpG();e.R7$(),e.Y8G("ngIf",t.coverage.type===i.PolicyTypes.HOGAR&&(null==t.coverage.details?null:t.coverage.details.house)),e.R7$(),e.Y8G("ngIf",(t.coverage.type===i.PolicyTypes.AUTOS||t.coverage.type===i.PolicyTypes.MOTOS)&&(null==t.coverage.details?null:t.coverage.details.vehicle))}}function Dn(n,r){if(1&n&&(e.j41(0,"div"),e.DNE(1,pn,2,3,"ng-container",22)(2,mn,1,0,"ng-container",25)(3,vn,2,2,"div",0)(4,fn,3,5,"div",34)(5,In,8,5,"div",35)(6,bn,15,8,"div",34),e.j41(7,"div",36),e.DNE(8,Rn,3,2,"div",37),e.k0s()()),2&n){const t=e.XpG(3).ngIf,i=e.sdS(14),o=e.XpG();e.R7$(),e.Y8G("hideIfScope",e.lJ4(8,$)),e.R7$(),e.Y8G("ngTemplateOutlet",i)("ngTemplateOutletContext",e.lJ4(9,fe)),e.R7$(),e.Y8G("ngIf","single"===(null==t.coverage.details?null:t.coverage.details.scope)),e.R7$(),e.Y8G("ngIf",t.showFigures),e.R7$(),e.Y8G("ngIf",o.showSignatureStatus()),e.R7$(),e.Y8G("ngIf",(null==t.coverage.details?null:t.coverage.details.dentalCards)&&((null==t.coverage.details||null==t.coverage.details.dentalCards?null:t.coverage.details.dentalCards.length)||0)>0),e.R7$(2),e.Y8G("ngIf",(t.coverage.type===o.PolicyTypes.HOGAR||t.coverage.type===o.PolicyTypes.AUTOS||t.coverage.type===o.PolicyTypes.MOTOS)&&((null==t.coverage.details?null:t.coverage.details.house)||(null==t.coverage.details?null:t.coverage.details.vehicle)))}}function xn(n,r){if(1&n&&(e.qex(0),e.nrm(1,"customer-workspace-coverage-details-coverages-rents",61),e.bVm()),2&n){const t=e.XpG(4).ngIf;e.R7$(),e.Y8G("coverage",t.coverage)("rents",t.coverageDetailsRents)}}function kn(n,r){if(1&n&&e.nrm(0,"customer-workspace-coverage-details-coverages",62),2&n){const t=e.XpG(4).ngIf;e.Y8G("guarantees",t.coverage.guarantees||e.lJ4(3,Z))("guaranteesRisk",(null==t.coverage.details?null:t.coverage.details.guarantees)||e.lJ4(4,Z))("type",t.coverage.type||"")}}function Gn(n,r){if(1&n&&(e.qex(0),e.DNE(1,xn,2,2,"ng-container",8)(2,kn,1,5,"ng-template",null,60,e.C5r),e.bVm()),2&n){const t=e.sdS(3),i=e.XpG(3).ngIf,o=e.XpG();e.R7$(),e.Y8G("ngIf",o.environment.scope===o.Scopes.CAJAMAR&&"1V"===i.coverage.policy.branch)("ngIfElse",t)}}function wn(n,r){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"customer-workspace-coverage-details-documents",63),e.bIt("clickOnDocument",function(o){e.eBV(t);const a=e.XpG(4);return e.Njj(a.openDocument(o))})("clickLegacyDocument",function(){e.eBV(t);const o=e.XpG(4);return e.Njj(o.legacyDocument())}),e.k0s()()}if(2&n){const t=e.XpG(3).ngIf,i=e.XpG();e.R7$(),e.Y8G("coverage",t.coverage)("precontractualDocs",i.precontractualDocs)}}function yn(n,r){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"customer-workspace-coverage-details-beacon",64),e.bIt("clickOpenWebAppErum",function(){const a=e.eBV(t).ngIf,c=e.XpG(5);return e.Njj(c.openConfigureBeacon(a))})("clickOpenLandingErum",function(){const a=e.eBV(t).ngIf,c=e.XpG(5);return e.Njj(c.openBuyBeacon(a))}),e.k0s()()}if(2&n){const t=r.ngIf;e.R7$(),e.Y8G("beacon",t)}}function On(n,r){if(1&n&&(e.j41(0,"div"),e.DNE(1,yn,2,1,"div",0),e.nI1(2,"async"),e.k0s()),2&n){const t=e.XpG(4);
1e.R7$(),e.Y8G("ngIf",e.bMT(2,1,t.beaconDetailViewModel$))}}function Sn(n,r){if(1&n){const t=e.RV6();e.j41(0,"div",66),e.bIt("click",function(){e.eBV(t);const o=e.XpG(4).ngIf,a=e.XpG();return e.Njj(a.clickLightbulb(o.coverage.type,o.links,null==o.coverage.agent?null:o.coverage.agent.id))}),e.nrm(1,"img",32),e.j41(2,"p",33),e.EFF(3),e.k0s()()}if(2&n){const t=e.XpG(4).ngIf,i=e.XpG();e.R7$(3),e.SpI(" ",i.setAction(t.coverage.type,t.coverage.agent)," ")}}function Nn(n,r){if(1&n&&(e.qex(0),e.DNE(1,Sn,4,1,"div",65),e.bVm()),2&n){const t=e.XpG(3).ngIf;e.R7$(),e.Y8G("ngIf",t.coverage.isActive)}}function Fn(n,r){if(1&n){const t=e.RV6();e.j41(0,"customer-workspace-action-item",69),e.bIt("actionEmit",function(){const a=e.eBV(t).$implicit,c=e.XpG(4).ngIf,C=e.XpG();return e.Njj(C.itemActionClicked(a,c.coverage,c.phones,c.emails))}),e.k0s()}if(2&n){const t=r.$implicit;e.Y8G("title",t.title)("icon",t.icon)}}function Mn(n,r){if(1&n&&(e.j41(0,"div",67),e.DNE(1,Fn,1,2,"customer-workspace-action-item",68),e.k0s()),2&n){const t=e.XpG(3).ngIf,i=e.XpG();e.R7$(),e.Y8G("ngForOf",i.setContractActions(t.links,t.coverage,t.showTeladoc,t.showDoctor24Online,t.hasMedicalChat,t.hasPlumber,t.isHealthPartnerAvailable,i.environment.scope,t.showCajamarUserOptions,t.showTickets,t.showFunnels,t.switchDoctorChatDate,t.showCsgTickets,t.showCancellationILT))}}function Pn(n,r){if(1&n){const t=e.RV6();e.qex(0),e.j41(1,"div",16)(2,"customer-workspace-my-agent-button",17),e.bIt("clickMyAgent",function(o){e.eBV(t);const a=e.XpG(3);return e.Njj(a.openAgentsPage(o))}),e.k0s()(),e.nrm(3,"customer-workspace-coverage-details-header",18),e.j41(4,"div",19),e.DNE(5,dn,7,9,"div",20),e.j41(6,"div",21),e.DNE(7,Dn,9,10,"div",0)(8,Gn,4,2,"ng-container",0)(9,wn,2,2,"div",0)(10,On,3,3,"div",0)(11,Nn,2,1,"ng-container",22),e.k0s(),e.DNE(12,Mn,2,1,"div",23),e.k0s(),e.bVm()}if(2&n){const t=e.XpG(2).ngIf,i=e.XpG();e.R7$(2),e.Y8G("agentImage",t.agentImage)("agentId",t.coverage.agentId),e.R7$(),e.Y8G("coverage",t.coverage),e.R7$(2),e.Y8G("ngIf",t.coverage.isActive),e.R7$(),e.Y8G("ngClass",t.coverage.isActive?"md:w-3/4":"w-full"),e.R7$(),e.Y8G("ngIf",i.currentTab===i.DetailsTab.GENERAL_DATA&&t.coverage.isActive),e.R7$(),e.Y8G("ngIf",i.currentTab===i.DetailsTab.COVERAGES&&t.coverage.isActive),e.R7$(),e.Y8G("ngIf",i.currentTab===i.DetailsTab.DOCUMENTS||!t.coverage.isActive),e.R7$(),e.Y8G("ngIf",i.currentTab===i.DetailsTab.BEACON),e.R7$(),e.Y8G("hideIfScope",e.lJ4(11,$)),e.R7$(),e.Y8G("ngIf",t.coverage.isActive)}}function Vn(n,r){1&n&&(e.qex(0),e.j41(1,"div",70),e.nrm(2,"div",71),e.k0s(),e.j41(3,"div",72),e.nrm(4,"div",73),e.j41(5,"div",74),e.nrm(6,"div",75),e.k0s()(),e.bVm())}function jn(n,r){if(1&n&&(e.qex(0),e.DNE(1,Pn,13,12,"ng-container",0)(2,Vn,7,0,"ng-container",0),e.bVm()),2&n){const t=e.XpG().ngIf;e.R7$(),e.Y8G("ngIf",t.loaded&&t.coverage),e.R7$(),e.Y8G("ngIf",t.loading)}}function Bn(n,r){if(1&n){const t=e.RV6();e.j41(0,"div",76)(1,"customer-workspace-page-error",77),e.bIt("retry",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.retryPage())}),e.k0s()()}}function $n(n,r){if(1&n&&(e.j41(0,"div"),e.nrm(1,"mh-notifications-box",79),e.nI1(2,"transloco"),e.k0s()),2&n){const t=e.XpG().classContext;e.HbH(t),e.R7$(),e.Y8G("padding",!1)("text",e.bMT(2,7,"COVERAGE.DETAIL_PAGE.ENABLE_INVITATION"))("icon","ios-close-circle-outline")("textColor","white")("iconColor","white")}}function Ln(n,r){if(1&n&&e.DNE(0,$n,3,9,"div",78),2&n){const t=e.XpG().ngIf,i=e.XpG();e.Y8G("ngIf",t.showInviteInsured&&i.showInviteInsuredInfo)}}function Yn(n,r){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"mh-notifications-box",80),e.bIt("checkEvent",function(){e.eBV(t);const o=e.XpG(2).ngIf,a=e.XpG();return e.Njj(a.openAgentsPage(null==o||null==o.coverage?null:o.coverage.agentId))}),e.nI1(2,"transloco"),e.nI1(3,"transloco"),e.k0s()()}if(2&n){const t=e.XpG().classContext,i=e.XpG(2);e.HbH(t),e.R7$(),e.Y8G("padding",!1)("text",e.bMT(2,11,"COVERAGE.DETAIL_PAGE.ABOUT_TO_EXPIRE"))("icon","ios-close-circle-outline")("textColor","white")("iconColor","white")("icon1","ios-arrow-dropright-circle")("secondBoxColor",i.environment.scope===i.Scopes.CAJAMAR?"#004a54":"#d75942")("linkWithIconWhite",!0)("link",e.bMT(3,13,"COVERAGE.DETAIL_PAGE.CONTACT_MEDIATOR"))}}function Xn(n,r){if(1&n&&e.DNE(0,Yn,4,15,"div",78),2&n){const t=e.XpG().ngIf,i=e.XpG();e.Y8G("ngIf",(null==t.coverage?null:t.coverage.rol)===i.CoverageRole.HOL
1DER&&t.isAboutToExpire)}}function Un(n,r){if(1&n){const t=e.RV6();e.qex(0),e.nrm(1,"customer-workspace-header",3),e.nI1(2,"async"),e.j41(3,"customer-workspace-my-agent-button",4),e.bIt("clickMyAgent",function(o){e.eBV(t);const a=e.XpG();return e.Njj(a.openAgentsPage(o))}),e.k0s(),e.j41(4,"ion-content"),e.DNE(5,rn,4,5,"div",5),e.j41(6,"main",6)(7,"div",7),e.DNE(8,jn,3,2,"ng-container",8),e.k0s(),e.DNE(9,Bn,2,0,"ng-template",null,9,e.C5r)(11,Ln,1,1,"ng-template",null,10,e.C5r)(13,Xn,1,1,"ng-template",null,11,e.C5r),e.j41(15,"div",12),e.nrm(16,"customer-workspace-footer"),e.k0s()()(),e.bVm()}if(2&n){const t=r.ngIf,i=e.sdS(10),o=e.XpG();e.R7$(),e.Y8G("companyIcon",e.bMT(2,6,o.companyIcon$)),e.R7$(2),e.Y8G("agentImage",(null==t?null:t.agentImage)||"")("agentId",(null==t||null==t.coverage?null:t.coverage.agentId)||""),e.R7$(2),e.Y8G("ngIf",t.breadCrumbs),e.R7$(3),e.Y8G("ngIf",!t.error)("ngIfElse",i)}}function Jn(n,r){if(1&n){const t=e.RV6();e.j41(0,"div",81),e.nrm(1,"div",82),e.j41(2,"div",83)(3,"div",84)(4,"span",85),e.EFF(5,"Salud Mental"),e.k0s(),e.j41(6,"div",86)(7,"button",87),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.closeIframe())}),e.nrm(8,"img",88),e.k0s()()(),e.nrm(9,"iframe",89),e.k0s()()}if(2&n){const t=e.XpG();e.R7$(8),e.Y8G("src",t.iconCloseIframe,e.B4B),e.R7$(),e.Y8G("src",t.externalUrlInspira,e.f$h)}}const Ce=()=>["/"];function Hn(n,r){if(1&n&&(e.j41(0,"div",90),e.nrm(1,"div",91),e.j41(2,"div",92)(3,"div",84)(4,"div",93)(5,"a",94),e.nrm(6,"img",88),e.k0s()()(),e.nrm(7,"iframe",95),e.k0s()()),2&n){const t=e.XpG();e.R7$(5),e.Y8G("routerLink",e.lJ4(3,Ce)),e.R7$(),e.Y8G("src",t.iconCloseIframe,e.B4B),e.R7$(),e.Y8G("src",t.externalUrlWebAppErum,e.f$h)}}function Qn(n,r){if(1&n&&(e.j41(0,"div",90),e.nrm(1,"div",91),e.j41(2,"div",92)(3,"div",84)(4,"div",93)(5,"a",94),e.nrm(6,"img",88),e.k0s()()(),e.nrm(7,"iframe",95),e.k0s()()),2&n){const t=e.XpG();e.R7$(5),e.Y8G("routerLink",e.lJ4(3,Ce)),e.R7$(),e.Y8G("src",t.iconCloseIframe,e.B4B),e.R7$(),e.Y8G("src",t.externalUrlLandingErum,e.f$h)}}let Wn=(()=>{class n{constructor(t,i,o,a,c,C,u,N,ee,te,ne,ie,oe,re,ro,ao,so,co){this.translateSrv=t,this.store=i,this.router=o,this.route=a,this.breadCrumbService=c,this.toastService=C,this.dialogService=u,this.platform=N,this.inAppBrowser=ee,this.medalliaSrv=te,this.clipboardService=ne,this.titleCasePipe=ie,this.userDataFacade=oe,this.contactService=re,this.userDataService=ro,this.cdr=ao,this.sanitizer=so,this.environment=co,this.tabs=[{id:_.Ob.GENERAL_DATA,label:"COVERAGE.DETAIL_PAGE.OVERVIEW",active:!0,notification:!1},{id:_.Ob.COVERAGES,label:"COVERAGE.DETAIL_PAGE.COVERAGES",active:!1,notification:!1},{id:_.Ob.DOCUMENTS,label:"COVERAGE.DETAIL_PAGE.DOCUMENTS",active:!1,notification:!1}],this.currentTab=_.Ob.GENERAL_DATA,this.coverageDetailViewModel$=this.store.select(d.Me.lf),this.beaconDetailViewModel$=this.store.select(H.P3.G6),this.dentalCardLink=this.store.selectSignal(ce.BF.FA),this.petCaseLink=this.store.selectSignal(ce.BF.Vo),this.showRiskDetails=!1,this.showInviteInsuredInfo=!0,this.companyIcon$=this.userDataFacade.companyIcon$,this.CAJAMAR_PRECDOC_EMPLOYEE_OFFICE="9390",this.showExternalUrlInspira=!1,this.showExternalUrlWebAppErum=!1,this.showExternalUrlLandingErum=!1,this.iconCloseIframe="./assets/icons/cross-heroicon-white.svg",this.swiperConfig={modules:[se.Vx,se.dK],slidesPerView:"auto",centeredSlides:!0,spaceBetween:30,preventInteractionOnTransition:!0,navigation:!0,pagination:{clickable:!0,dynamicBullets:!0}},this.today=(new Date).toISOString().split("T")[0],this.testStatus=this.store.selectSignal(d.Me.T0),this.PolicyTypes=g.JS,this.DetailsTab=_.Ob,this.CoverageRole=_.D,this.Scopes=m.MJ,this.insuredMembers=(0,e.vPA)([])}ngOnInit(){this.store.dispatch(d.Vx.enterCoverageDetailsPage()),this.store.dispatch(H.gl.enterCoverageBeaconDetailsPage()),this.loadCoverageDetailsRents(),this.getPrecontractualDocuments();const t=this.store.selectSignal(d.Me.lf);if(t().showCancellationILT){const i=t().coverage?.policy;(("86"===i?.branch||"1V"===i?.branch)&&"8"===i?.company||("9T"===i?.branch||"9X"===i?.branch)&&"9"===i?.company)&&this.get
1SignatureStatus()}this.environment.scope==m.MJ.CAJAMAR&&this.coverageDetailViewModel$.subscribe(()=>{this.setNotificationBoxColorWithRetry()}),this.store.select(H.P3.G6).subscribe(i=>{this.loadBeaconDetails(i),this.externalUrlLandingErum=this.sanitizer.bypassSecurityTrustResourceUrl(String(i.urlLanding)),this.externalUrlWebAppErum=this.sanitizer.bypassSecurityTrustResourceUrl(String(i.urlWebApp))})}loadBeaconDetails(t){this.addBeaconTabOption(t)}openConfigureBeacon(t){this.showExternalUrlWebAppErum=!0}openBuyBeacon(t){this.showExternalUrlLandingErum=!0}addBeaconTabOption(t){this.isActualBeaconPolicy(String(t.policy))&&void 0===this.tabs.find(i=>i.id===_.Ob.BEACON)&&(this.tabs=[...this.tabs,{id:_.Ob.BEACON,label:"COVERAGE.DETAIL_PAGE.BEACON",active:!1,notification:!1}],this.currentTab=t.loaded?_.Ob.BEACON:_.Ob.GENERAL_DATA,this.tabs=this.tabs.map(i=>i.id===this.currentTab?{...i,active:!0}:{...i,active:!1}))}isActualBeaconPolicy(t){const i=this.store.selectSignal(d.Me.lf)().coverage?.policy,o=i?.company+"-"+i?.branch+"-"+(null!=i?.number?"0".repeat(9-i?.number.toString().length):"")+i?.number;return console.log("Comparing beacon policy",t,"with coverage policy",o),t===o}ionViewDidEnter(){this.medalliaSrv.setCustomParam("screenName",P.a.COVERAGE_DETAIL)}ionViewWillLeave(){this.medalliaSrv.setCustomParam("screenName",P.a.NO_SURVEY)}selectTab(t){this.currentTab=t.id}goToReceipts(){this.router.navigate([m.Y4.RECEIPTS],{relativeTo:this.route,queryParamsHandling:"preserve"})}retryPage(){this.store.dispatch(d.Vx.retryCoverageDetailsPage()),this.loadCoverageDetailsRents()}loadCoverageDetailsRents(){this.environment.scope===m.MJ.CAJAMAR&&this.coverageDetailViewModel$.pipe((0,J.p)(t=>"1V"===t?.coverage?.policy?.branch&&!!t?.coverage?.policy?.company&&!!t?.coverage?.productCode&&!!t?.coverage?.policy?.number),(0,ae.s)(1)).subscribe(t=>{const i=t.coverage;!i?.policy?.branch||!i?.policy?.company||!i.productCode||this.store.dispatch(d.Vx.loadCoverageDetailsRents({policy:i.policy,productCode:i.productCode}))})}navigateTo(t,i){this.breadCrumbService.navigateTo(t,i.detail)}translateBreadCrumbs(t){return this.breadCrumbService.translateBreadCrumbs(t)}openDocument(t){switch(this.store.dispatch(b.AG.trackEvent({event:"file_download",params:{link_text:this.translateSrv.translate(`COVERAGE.DETAIL_PAGE.DOCUMENT_TYPE.${t.type}`).toLowerCase(),location:"detalle p\xf3liza"}})),t.type){case _.wo.GENERAL:this.store.dispatch(d.HP.downloadGeneralConditions());break;case _.wo.PERSONAL:this.store.dispatch(d.HP.downloadPersonalConditions());break;case _.wo.ADHERENCE:this.store.dispatch(d.HP.downloadAdherenceDocument({document:t}));break;case _.wo.BONUS:t.itemId&&this.store.dispatch(d.HP.downloadBonusDocument({itemId:t.itemId}));break;case _.wo.PRECONTRACTUAL:this.store.dispatch(d.HP.downloadPrecontractualDocuments({precDocuments:this.precontractualDocs,precDocType:"REG"}));break;case _.wo.PRECONTRACTUAL_PDF:this.store.dispatch(d.HP.downloadPrecontractualDocuments({precDocuments:this.precontractualDocs,precDocType:"PDF"}))}}getPrecontractualDocuments(){const t=this.store.selectSignal(d.Me.lf);t().employeeOffice===this.CAJAMAR_PRECDOC_EMPLOYEE_OFFICE&&t().isCajamarFinancialTerminal&&(this.store.dispatch(d.HP.loadPrecontractualDocuments()),this.store.select(d.Me.hQ).subscribe(i=>{this.precontractualDocs=i}))}legacyDocument(){this.toastService.showErrorToast(this.translateSrv.translate("COVERAGE.DETAIL_PAGE.NO_FIND_DOCUMENT"))}editIban(){this.dialogService.showDialog({component:x.Fn,closeable:!1}).subscribe(t=>{t&&this.store.dispatch(d.Ge.editBankAccountGetOtp({password:t}))})}showActiveEditToast(){this.toastService.showWarningToast(this.translateSrv.translate("COVERAGE.IBAN_CHANGE_ADVISE"))}invitationOpenModal(t,i="",o){this.store.dispatch(b.AG.trackEvent({event:b.Ci.SEND_INVITATION,params:{eventCat:"COVERAGE"}})),this.dialogService.showDialog({component:x.wJ,data:{nif:t.nif,mail:t.mail,phone:t.phone,urlLegal:i,movInt:o},closeable:!1}).pipe((0,J.p)(Boolean)).subscribe(a=>this.store.dispatch(d.JW.inviteInsured({ypersa:t.ypers,mail:a.email,phone:a.phone,nif:t.nif,name:t.name})))}setContractActions(t,i,o,a,c,C,u,N,ee,te,ne,ie,oe,re){return A.lZ.setContractActions(t,i,this.translateSrv,o,a,c,C,u,N,ee,te,ne,ie,oe,re,this.petCaseLink)}setAction(t,i){return t===g.JS.SALUD?this.translateSrv.translate("COVERAGE.DETAIL_PAGE.ACTION_MENU.BIENESTAR"):this.translateSrv.translate("COVERAGE.DETAIL_PAGE.ACTION_MENU.MEDIADOR",{office:this.titleCasePipe.transform(i?.name.replace(/\*/g," "))})}clickLightbulb(t,i,o){if(t===g.JS.SALUD){this.store.dispatch(b.AG.trackEvent({event:b.Ci.HEALTH_WELNESS,params:{eventCat:"COVERAGE"}}));const a=i?.find(c=>c.key===_.zo.BIENESTAR)?.value;a&&G.P.open({url:a,toolbarColor:"ios"!==M.Ii.getPlatform()?"#c5281c":void 0})}else this.store.dispatch(b.AG.trackEvent({event:b.Ci.CONTACT_INFORMATION,params:{eventCat:"COVERAGE"}})),this.router.navigate([m.Y4.MY_AGENTS],{queryParams:{agentId:o}})}clickAction(t){t.detail.isExternalUrl?G.P.open({url:t.detail.url,toolbarColor:"ios"!==M.Ii.getPlatform()?"#c5281c":void 0}):this.router.navigate(t.detail.url)}blockInsured(t){t.blocked||this.store.dispatch(d.JW.blockInsured({ypersa:t.ypers}))}unblockInsured(t){t.blocked&&this.store.dispatch(d.JW.unblockInsured({ypersa:t.ypers}))}itemActionClicked(t,i,o,a){const c=i?.isRGI,C=Object.entries(b.Ci).find(([u])=>t.title.toLowerCase().includes(u));if(C&&this.store.dispatch(b.AG.trackEvent({event:C[1],params:{eventCat:"COVERAGE"}})),t.isExternalUrl)t.url&&G.P.open({url:t.url,toolbarColor:"ios"!==M.Ii.getPlatform()?"#c5281c":void 0});else if(t.action)switch(t?.action){case g.ir.DOCTOR_TELADOC:case g.ir.DOCTOR_TELADOC_OLD:this.store.dispatch(y.Zu.openDoctorTeladocInCoverageDetails());break;case g.ir.DOCTOR_PARTNER:this.store.dispatch(d.Vx.openHealthPartnerMedicalChat());break;case g.ir.MEDICALGUIDE:this.openMedicalGuide(t.url);break;case g.ir.PLUMBER:this.callPlumber();break;case g.ir.MY_HEALTH_AUTHORIZATIONS:this.store.dispatch(d.Vx.openHealthPartnerAuthorizations());break;case g.ir.MY_HEALTH_REFUNDS:this.store.dispatch(d.Vx.openHealthPartnerRefunds());break;case g.ir.MY_HEALTH_GLOBAL:this.store.dispatch(d.Vx.openHealthPartnerGlobal());break;case g.ir.MY_HEALTH_MEDICALGUIDE:this.store.dispatch(d.Vx.openHealthPartnerMedicalGuide());break;case g.ir.ROAD_ASSISTANCE:this.store.dispatch(d.Vx.openRoadAssistance());break;case g.ir.INSPIRA:console.info("esMobile: "+this.platform.is("mobile")),this.platform.is("mobile")?this.userDataService.getInspiraLinks().subscribe(u=>{console.info(u.url),this.isValidUrl(u.url)?(this.externalUrlInspira=this.sanitizer.bypassSecurityTrustResourceUrl(u.url),this.showExternalUrlInspira=!0,this.cdr.detectChanges()):console.warn("URL no v\xe1lida potencialmente insegura:",u.url)}):this.store.dispatch(y.Zu.openInspiraCoverageDetails());break;case g.ir.CANCEL_POLICY:this.store.dispatch(d.Vx.coverageCancelConfirmation())}else t.url?.includes("new-claim")&&c?this.dialogService.showDialog({component:Ae.N1,data:{},closeable:!1}).pipe((0,J.p)(u=>!!u)).subscribe(u=>{u&&this.router.navigate(["my-agents"])}):t.url&&t.url.includes("claims")&&this.environment.scope===m.MJ.MERIDIAN?this.dialogService.showClaimsDialog({title:this.translateSrv.translate("CLAIMS_DIALOG_WORKAROUND.TITLE"),message:[this.translateSrv.translate("CLAIMS_DIALOG_WORKAROUND.MESSAGE_1"),this.translateSrv.translate("CLAIMS_DIALOG_WORKAROUND.MESSAGE_2")],phone:o?.find(u=>"ASSISTANCE"===u?.key)?.value,email:a?.find(u=>"SINISTERS"===u?.key)?.value}):t.url&&this.navigateToAction(t)}isValidUrl(t){return t.length>0&&/^(https?:\/\/)?(www\.)?[a-zA-Z0-9-]+\.[a-z]{2,6}(\S+)?$/.test(t)}navigateToAction(t){t.urlQueryParams?this.router.navigate(t.url,t.copyQueryParams?{queryParams:t.urlQueryParams,queryParamsHandling:"merge"}:{queryParams:t.urlQueryParams}):this.router.navigate(t.url)}openAgentsPage(t){this.contactService.openHelp(t)}openMedicalGuide(t){this.platform.is("desktop")?window.open(t,"_blank","width=700,height=500,left=2
100,top=100"):this.inAppBrowser.create(t,"_blank",this.platform.is("ios")?"toolbarposition=top,closebuttoncaption=Cerrar,location=no,hidenavigationbuttons=yes,toolbarcolor=#c5281c,toolbartranslucent=no":"closebuttoncaption=Cerrar,location=yes,hideurlbar=yes,hidenavigationbuttons=yes,zoom=no,toolbarcolor=#c5281c")}closeInviteInsuredInfo(){this.showInviteInsuredInfo=!1}openDentalCardLink(){this.coverageDetailViewModel$.pipe((0,ae.s)(1)).subscribe(t=>{console.info(t.coverage?.details),t.coverage?.details?.dentalCards&&t.coverage?.details?.dentalCards.forEach(i=>{const o=i.cardType,c=this.dentalCardLink()+"?tipoProducto="+o;G.P.open({url:c,toolbarColor:"ios"!==M.Ii.getPlatform()?"#c5281c":void 0})})})}closeIframe(){this.showExternalUrlInspira=!1,this.showExternalUrlWebAppErum=!1,this.showExternalUrlLandingErum=!1}callPlumber(){const t="91 169 79 28",i=t.replace(/\s+/g,"");this.platform.is("desktop")?(this.clipboardService.copy(i),this.toastService.showSuccessToast(this.translateSrv.translate("COPIED_PHONE",{phone:t}))):window.open("tel:"+i,"_system")}getSignatureStatus(){this.store.dispatch(d.Vx.coverageSignatureStatus())}showSignatureStatus(){const t=this.store.selectSignal(d.Me.lf);return!!t().showCancellationILT&&(("86"===t().coverage?.policy.branch||"1V"===t().coverage?.policy.branch)&&"8"===t().coverage?.policy.company||("9T"===t().coverage?.policy.branch||"9X"===t().coverage?.policy.branch)&&"9"===t().coverage?.policy.company)&&t().isCajamarFinancialTerminal&&t().coverage?.fechaFisica===this.today}setNotificationBoxColorWithRetry(){let t=0;const o=setInterval(()=>{const a=document.querySelectorAll("mh-notifications-box");let c=!1;a.forEach(C=>{const u=C.shadowRoot?.querySelector(".row.align-items-stretch.firstRow.shape-padding");u&&(u.style.setProperty("background","#018190","important"),c=!0)}),t++,(c||t>=15)&&clearInterval(o)},100)}static{this.\u0275fac=function(i){return new(i||n)(e.rXU(v.JO),e.rXU(w.il),e.rXU(h.Ix),e.rXU(h.nX),e.rXU(Q.BZ),e.rXU(j.oV),e.rXU(W.$t),e.rXU(Te.OD),e.rXU(p.N),e.rXU(le.ZT),e.rXU(Re.WW),e.rXU(l.PV),e.rXU(y.Og),e.rXU(z.u),e.rXU(y.Je),e.rXU(e.gRc),e.rXU(De.up),e.rXU(V.M))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["customer-workspace-coverage-details-container"]],features:[e.Jv_([l.PV])],decls:5,vars:6,consts:[[4,"ngIf"],["class","mainContainerInsira",4,"ngIf"],["class","mainContainer",4,"ngIf"],[3,"companyIcon"],[1,"md:hidden",3,"agentImage","agentId","clickMyAgent"],["class","bg-breadcrumb fixed z-50 flex w-full justify-center",4,"ngIf"],[1,"container-footer","md:bg-background","md:pt-8"],[1,"container-footer__content--full","pb-28","md:relative","md:px-6","md:py-12"],[4,"ngIf","ngIfElse"],["pageError",""],["inviteUserInfo",""],["aboutToExpireCoverage",""],[1,"container-footer__footer"],[1,"bg-breadcrumb","fixed","z-50","flex","w-full","justify-center"],[1,"w-full","max-w-screen-xl"],[3,"breadcrumbs","backLabel","isBreadcrumbDevice","goBack","goBackTo"],[1,"hidden","md:absolute","md:right-0","md:block","md:w-28"],[3,"agentImage","agentId","clickMyAgent"],[1,"w-full",3,"coverage"],[1,"w-full","py-8","md:flex","lg:px-10"],["class","md:mr-12 md:flex md:w-1/4 md:max-w-xl md:flex-col md:justify-start",4,"ngIf"],[3,"ngClass"],[4,"hideIfScope"],["class","fixed bottom-0 z-10 flex h-bottom-menu-action w-full flex-row justify-evenly border-t-2 border-solid border-brand bg-white md:hidden",4,"ngIf"],[1,"md:mr-12","md:flex","md:w-1/4","md:max-w-xl","md:flex-col","md:justify-start"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mb-6","md:w-full","md:max-w-xl",3,"tabs","clickTab"],[1,"hidden","md:flex","md:flex-col"],[3,"title","icon","isExternalUrl","url","action","actionEmit",4,"ngFor","ngForOf"],["class","hidden cursor-pointer items-center border-b border-solid border-b-slate-300 bg-white p-6 md:flex md:flex-row",3,"click",4,"hideIfScope"],[3,"title","icon","isExternalUrl","url","action","actionEmit"],[1,"hidden","cursor-pointer","items-center","border-b","border-solid","border-b-slate-300","bg-white","p-6","md:flex","md:flex-row",3,"click"],["src","assets/img/icons/f40-light-bulb-r.svg","alt","lightbulb img"],[1,"font-roboto","ml-4","text-2xl","text-brand"],["class","border-b border-solid border-gray-300 md:mt-6",4,"ngIf"],["class","grid grid-cols-1 border-b border-solid border-gray-300 bg-white md:mt-6",4,"ngIf"],[1,"md:mt-6"],["class","border-b border-solid border-gray-300 bg-white px-6 py-10 md:mt-6",4,"ngIf"],[3,"coverage","limitedUser","clickOnReceipts","clickOnEditAccount","showActiveEditToast"],[1,"border-b","border-solid","border-gray-300","md:mt-6"],[3,"drivers","insuredMembers","policyHolder","isPsi","unBlockInsured","blockInsured","selectSendInvitation"],[3,"beneficiariesDescription","coverage"],[1,"grid","grid-cols-1","border-b","border-solid","border-gray-300","bg-white","md:mt-6"],[1,"w-full","min-w-full"],[1,"m-4","
1w-full","text-4xl"],[1,"w-full"],["class","m-4 ml-8 w-full pr-6 text-2xl md:pr-0",4,"ngIf"],[1,"m-4","ml-8","w-full","pr-6","text-2xl","md:pr-0"],[1,"grid","grid-cols-1","bg-white"],[1,"border-solid","border-gray-300","px-6","py-10"],[1,"place-content-between","lg:flex"],[1,"mb-6","w-full","text-4xl"],[1,"mb-4","flex","w-full","cursor-pointer","whitespace-nowrap","text-2xl","text-brand","underline",3,"click"],["swiperDirective","",3,"config"],["swiper",""],[4,"ngFor","ngForOf"],[3,"cardInfo"],[1,"border-b","border-solid","border-gray-300","bg-white","px-6","py-10","md:mt-6"],[3,"coverageDetail",4,"ngIf"],[3,"coverageDetail"],["defaultCoverages",""],[3,"coverage","rents"],[3,"guarantees","guaranteesRisk","type"],[3,"coverage","precontractualDocs","clickOnDocument","clickLegacyDocument"],[3,"beacon","clickOpenWebAppErum","clickOpenLandingErum"],["class","mt-9 flex cursor-pointer flex-row items-center border-b border-solid border-b-slate-300 bg-white px-6 py-9 md:hidden",3,"click",4,"ngIf"],[1,"mt-9","flex","cursor-pointer","flex-row","items-center","border-b","border-solid","border-b-slate-300","bg-white","px-6","py-9","md:hidden",3,"click"],[1,"fixed","bottom-0","z-10","flex","h-bottom-menu-action","w-full","flex-row","justify-evenly","border-t-2","border-solid","border-brand","bg-white","md:hidden"],["class","flex-1 border-x border-solid border-slate-300 first:border-l-0 last:border-r-0",3,"title","icon","actionEmit",4,"ngFor","ngForOf"],[1,"flex-1","border-x","border-solid","border-slate-300","first:border-l-0","last:border-r-0",3,"title","icon","actionEmit"],[1,"w-full","md:px-10"],[1,"w-full","animate-pulse","bg-gray-400","py-20","md:px-10"],[1,"md:flex","md:w-full","md:px-10","md:py-8"],[1,"h-[200px]","animate-pulse","bg-gray-400","md:w-1/4"],[1,"md:grow","md:pl-8"],[1,"h-[350px]","animate-pulse","bg-gray-400"],[1,"container-action"],[3,"retry"],[3,"class",4,"ngIf"],[3,"padding","text","icon","textColor","iconColor"],[3,"padding","text","icon","textColor","iconColor","icon1","secondBoxColor","linkWithIconWhite","link","checkEvent"],[1,"mainContainerInsira"],[1,"containerAux"],[1,"containerIframe"],[1,"containerTopBar"],[1,"text-3xl","font-medium","text-white"],[1,"containerButton"],[3,"click"],["width","40","height","20","alt","Cerrar iframe",3,"src"],["allowfullscreen","","title","Contenido externo de Inspira",1,"webview-frame","iframeInspira",3,"src"],[1,"mainContainer"],[1,"containerAuxBeacon"],[1,"containerIframeBeacon"],[1,"containerButtonBeacon"],[3,"routerLink"],["allowfullscreen","","title","Contenido externo de Inspira","allow","camera",1,"webview-frame","iframeBeacon",3,"src"]],template:function(i,o){1&i&&(e.DNE(0,Un,17,8,"ng-container",0),e.nI1(1,"async"),e.DNE(2,Jn,10,2,"div",1)(3,Hn,8,4,"div",2)(4,Qn,8,4,"div",2)),2&i&&(e.Y8G("ngIf",e.bMT(1,4,o.coverageDetailViewModel$)),e.R7$(2),e.Y8G("ngIf",o.showExternalUrlInspira),e.R7$(),e.Y8G("ngIf",o.showExternalUrlWebAppErum),e.R7$(),e.Y8G("ngIf",o.showExternalUrlLandingErum))},dependencies:[l.YU,l.Sq,l.bT,l.T3,I.W9,I.oY,B.n,K.l,_e,de,Ze,st,lt,pe,Mt,$t,Xt,en,nn,O.B,on.U,me.P,ve.U,q.D,h.Wk,S.n,l.Jj,v.Kj],styles:['@charset "UTF-8";swiper-container[_ngcontent-%COMP%]{--swiper-navigation-color: var(--color-brand-primary-01);--swiper-pagination-color: var(--color-brand-primary-01)}.mainContainerInsira[_ngcontent-%COMP%]{position:fixed;inset:0;display:flex;flex-direction:column;background:#fff;z-index:1999}.containerTopBar[_ngcontent-%COMP%]{background-color:#c21b17;display:flex;justify-content:center;align-items:center;position:relative;padding-top:env(safe-area-inset-top,0);height:calc(50px + env(safe-area-inset-top,0));box-sizing:border-box;flex-shrink:0;z-index:2002}.containerButton[_ngcontent-%COMP%]{position:absolute;right:3%;top:50%;transform:translateY(-50%)}.containerIframe[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;min-height:0;padding-top:env(safe-area-inset-top,0);padding-bottom:env(safe-area-inset-bottom,0)}.iframeInspira[_ngcontent-%COMP%]{flex:1;width:100%;border:none}.mainContainer[_ngcontent-%COMP%]{width:100%;height:100vh;position:absolute;top:0;left:0;z-index:1999}.containerAuxBeacon[_ngcontent-%COMP%]{position:absolute;top:0;left:0;z-index:2000;width:100%;height:100vh;background-color:#fff}.containerIframeBeacon[_ngcontent-%COMP%]{position:absolute;top:0;left:0;z-index:2001;width:100%;padding-bottom:env(safe-area-inset-bottom,0)}.containerButtonBeacon[_ngcontent-%COMP%]{position:absolute;right:3%;top:10%;padding-top:env(safe-area-inset-top,0)}.iframeBeacon[_ngcontent-%COMP%]{width:100%;height:95vh;position:relative;padding-bottom:env(safe-area-inset-bottom,0)}'],changeDetection:0})}}return n})(),zn=(()=>{class n{constructor(t){this.store=t}ngOnInit(){this.store.dispatch(k.KR.trackAnalytics())}onActivateRoute(){this.content?.scrollToTop()}static{this.\u0275fac=function(i){return new(i||n)(e.rXU(w.il))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["customer-workspace-coverage-financial-container"]],viewQuery:function(i,o){if(1&i&&e.GBs(I.W9,5),2&i){let a;e.mGM(a=e.lsd())&&(o.content=a.first)}},decls:7,vars:1,consts:[[3,"scrollEvents"],[1,"container-footer","md:bg-background"],[1,"container-footer__c
1ontent--full","w-full","pb-28","md:relative","md:px-6","md:pb-12","md:pt-20"],[1,"w-full"],[3,"activate"],[1,"container-footer__footer"]],template:function(i,o){1&i&&(e.j41(0,"ion-content",0)(1,"main",1)(2,"div",2)(3,"div",3)(4,"router-outlet",4),e.bIt("activate",function(){return o.onActivateRoute()}),e.k0s()()(),e.j41(5,"div",5),e.nrm(6,"customer-workspace-footer"),e.k0s()()()),2&i&&e.Y8G("scrollEvents",!0)},dependencies:[I.W9,h.n3,S.n],changeDetection:0})}}return n})();var L=s(16789);function Kn(n,r){if(1&n){const t=e.RV6();e.j41(0,"div",5)(1,"mh-list-item-black-title-2",6),e.bIt("click",function(){const a=e.eBV(t).$implicit,c=e.XpG(2);return e.Njj(c.clickDocument(a))}),e.k0s()()}if(2&n){const t=r.$implicit;e.R7$(),e.Y8G("icon","./assets/img/icons/g07-pdf-document-r.svg")("iconLeftActive",!0)("iconRightActive",!0)("icon2","./assets/img/icons/f12-download-arrow.svg")("componentText",t.title)}}function qn(n,r){if(1&n&&(e.qex(0),e.DNE(1,Kn,2,5,"div",4),e.bVm()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngForOf",t.documents)}}function Zn(n,r){1&n&&(e.j41(0,"div",7),e.nrm(1,"customer-workspace-empty-data",8),e.nI1(2,"transloco"),e.k0s()),2&n&&(e.R7$(),e.Y8G("text",e.bMT(2,1,"COVERAGE.NO_DOCUMENTS")))}let ei=(()=>{class n{constructor(){this.clickOnDocument=new e.bkB}clickDocument(t){this.clickOnDocument.emit(t)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["customer-workspace-coverage-psi-details-documents"]],inputs:{documents:"documents"},outputs:{clickOnDocument:"clickOnDocument"},decls:7,vars:5,consts:[[1,"hidden","cursor-pointer","border-b","border-solid","border-gray-300","bg-white","px-6","py-9","md:block"],[1,"px-3","text-4xl"],[4,"ngIf","ngIfElse"],["noDocuments",""],["class","border-b border-solid border-gray-300",4,"ngFor","ngForOf"],[1,"border-b","border-solid","border-gray-300"],["padding","true",3,"icon","iconLeftActive","iconRightActive","icon2","componentText","click"],[1,"bg-white","p-3"],[3,"text"]],template:function(i,o){if(1&i&&(e.j41(0,"div",0)(1,"p",1),e.EFF(2),e.nI1(3,"transloco"),e.k0s()(),e.DNE(4,qn,2,1,"ng-container",2)(5,Zn,3,3,"ng-template",null,3,e.C5r)),2&i){const a=e.sdS(6);e.R7$(2),e.SpI(" ",e.bMT(3,3,"COVERAGE.DETAIL_PAGE.DOCUMENTS")," "),e.R7$(2),e.Y8G("ngIf",null==o.documents?null:o.documents.length)("ngIfElse",a)}},dependencies:[l.Sq,l.bT,L.V,v.Kj],changeDetection:0})}}return n})();function ti(n,r){if(1&n&&(e.j41(0,"div",5)(1,"div",6)(2,"label"),e.EFF(3),e.k0s()()()),2&n){const t=r.$implicit,i=e.XpG(2);e.R7$(3),e.JRh(i.getTextInsurance(t))}}function ni(n,r){if(1&n&&(e.qex(0),e.DNE(1,ti,4,1,"div",4),e.bVm()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngForOf",t.insurances)}}function ii(n,r){1&n&&(e.j41(0,"div",7),e.nrm(1,"customer-workspace-empty-data",8),e.nI1(2,"transloco"),e.k0s()),2&n&&(e.R7$(),e.Y8G("text",e.bMT(2,1,"COVERAGE.NO_INSURANCES")))}let oi=(()=>{class n{constructor(){}getTextInsurance(t){return`${t.productName} - ${t.riskDescription[0]} ${t.riskDescription[1]?"- "+t.riskDescription[1]:""}`}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["customer-workspace-coverage-insurances"]],inputs:{insurances:"insurances"},decls:7,vars:5,consts:[[1,"cursor-pointer","border-b","border-solid","border-gray-300","bg-white","px-6","py-10"],[1,"px-3","text-4xl"],[4,"ngIf","ngIfElse"],["noInsurances",""],["class","border-b border-solid border-gray-300 bg-white",4,"ngFor","ngForOf"],[1,"border-b","border-solid","border-gray-300","bg-white"],[1,"py-4","px-9","text-2xl","text-gray-500","md:py-8"],[1,"bg-white","p-3"],[3,"text"]],template:function(i,o){if(1&i&&(e.j41(0,"div",0)(1,"p",1),e.EFF(2),e.nI1(3,"transloco"),e.k0s()(),e.DNE(4,ni,2,1,"ng-container",2)(5,ii,3,3,"ng-template",null,3,e.C5r)),2&i){const a=e.sdS(6);e.R7$(2),e.SpI(" ",e.bMT(3,3,"COVERAGE.DETAIL_PAGE.INSURANCES")," "),e.R7$(2),e.Y8G("ngIf",null==o.insurances?null:o.insurances.length)("ngIfElse",a)}},dependencies:[l.Sq,l.bT,L.V,v.Kj],changeDetection:0})}}return n})();function ri(n,r){if(1&n){const t=e.RV6();e.j41(0,"customer-workspace-action-item",18),e.bIt("actionEmit",function(){e.eBV(t);const o=e.XpG(4).ngIf,a=e.XpG();return e.Njj(a.openAgentsPage(o.coverage.agentId))}),e.k0s()}if(2&n){const t=r.ngIf;e.Y8G("title",t.title)("icon",t.icon)("isExternalUrl",t.isExternalUrl)("url",t.url)}}function ai(n,r){if(1&n){const t=e.RV6();e.j41(0,"div",14)(1,"customer-workspace-horizontal-tab-menu",15),e.bIt("clickTab",function(o){e.eBV(t);const a=e.XpG(4);return e.Njj(a.selectTab(o))}),e.k0s(),e.j41(2,"div",16),e.DNE(3,ri,1,4,"customer-workspace-action-item",17),e.k0s()()}if(2&n){const t=e.XpG(3).ngIf,i=e.XpG();e.R7$(),e.Y8G("tabs",i.tabs),e.R7$(2),e.Y8G("ngIf",t.coverage.agentId&&i.getActionItem(t.coverage))}}function si(n,r){if(1&n&&(e.j41(0,"div",23),e.nrm(1,"customer-workspace-coverage-details-figures",24),e.k0s()),2&n){const t=e.XpG(4).ngIf;e.R7$(),e.Y8G("policyHolder",null==t.coverage.psiDetails?null:t.coverage.psiDetails.psiHolder)("isPsi",!0)}}function ci(n,r){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"customer-workspace-coverage-details-overview",19),e.bIt("clickOnReceipts",function(){e.eBV(t);const o=e.XpG(4);return e.Njj(o.goToReceipts())})("clickOnEditAccount",function(){e.eBV(t);const o=e.XpG(4);return e.Njj(o.editIban())})("showActiveEditToast",function(){e.eBV(t);const o=e.XpG(4);return e.Njj(o.showActiveEditToast())}),e.k0s(),e.DNE(2,si,2,2,"div",20),e.j41(3,"div",21),e.nrm(4,"customer-workspace-coverage-insurances",22),e.k0s()()}if(2&n){const t=e.XpG(3).ngIf;e.R7$(),e.Y8G("coverage",t.coverage),e.R7$(),e.Y8G("ngIf",null==t.coverage.psiDetails?null:t.coverage.psiDetails.psiHolder),e.R7$(2),e.Y8G("insurances",null==t.coverage.psiDetails?null:t.coverage.psiDetails.insurances)}}function li(n,r){if(1&n){const t=e.RV6();
1e.j41(0,"div")(1,"customer-workspace-coverage-psi-details-documents",25),e.bIt("clickOnDocument",function(o){e.eBV(t);const a=e.XpG(4);return e.Njj(a.openDocument(o))}),e.k0s()()}if(2&n){const t=e.XpG(3).ngIf;e.R7$(),e.Y8G("documents",null==t.coverage.psiDetails?null:t.coverage.psiDetails.documents)}}function _i(n,r){if(1&n){const t=e.RV6();e.j41(0,"customer-workspace-action-item",18),e.bIt("actionEmit",function(){e.eBV(t);const o=e.XpG(4).ngIf,a=e.XpG();return e.Njj(a.openAgentsPage(o.coverage.agentId))}),e.k0s()}if(2&n){const t=r.ngIf;e.Y8G("title",t.title)("icon",t.icon)("isExternalUrl",t.isExternalUrl)("url",t.url)}}function di(n,r){if(1&n&&(e.j41(0,"div",26),e.DNE(1,_i,1,4,"customer-workspace-action-item",17),e.k0s()),2&n){const t=e.XpG(3).ngIf,i=e.XpG();e.R7$(),e.Y8G("ngIf",i.getActionItem(t.coverage))}}function gi(n,r){if(1&n){const t=e.RV6();e.qex(0),e.j41(1,"div",7)(2,"customer-workspace-my-agent-button",8),e.bIt("clickMyAgent",function(o){e.eBV(t);const a=e.XpG(3);return e.Njj(a.openAgentsPage(o))}),e.k0s()(),e.nrm(3,"customer-workspace-coverage-details-header",9),e.j41(4,"div",10),e.DNE(5,ai,4,2,"div",11),e.j41(6,"div",12),e.DNE(7,ci,5,3,"div",0)(8,li,2,1,"div",0),e.k0s(),e.DNE(9,di,2,1,"div",13),e.k0s(),e.bVm()}if(2&n){const t=e.XpG(2).ngIf,i=e.XpG();e.R7$(2),e.Y8G("agentImage",t.agentImage)("agentId",t.coverage.agentId),e.R7$(),e.Y8G("coverage",t.coverage),e.R7$(2),e.Y8G("ngIf",t.coverage.isActive),e.R7$(2),e.Y8G("ngIf",i.currentTab===i.DetailsTab.GENERAL_DATA&&t.coverage.isActive),e.R7$(),e.Y8G("ngIf",i.currentTab===i.DetailsTab.DOCUMENTS||!t.coverage.isActive),e.R7$(),e.Y8G("ngIf",t.coverage.isActive&&t.coverage.agentId)}}function pi(n,r){1&n&&(e.qex(0),e.j41(1,"div",27),e.nrm(2,"div",28),e.k0s(),e.j41(3,"div",29),e.nrm(4,"div",30),e.j41(5,"div",31),e.nrm(6,"div",32),e.k0s()(),e.bVm())}function mi(n,r){if(1&n&&(e.qex(0),e.DNE(1,gi,10,7,"ng-container",0)(2,pi,7,0,"ng-container",0),e.bVm()),2&n){const t=e.XpG().ngIf;e.R7$(),e.Y8G("ngIf",t.loaded&&t.coverage),e.R7$(),e.Y8G("ngIf",t.loading)}}function vi(n,r){if(1&n){const t=e.RV6();e.j41(0,"div",33)(1,"customer-workspace-page-error",34),e.bIt("retry",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.retryPage())}),e.k0s()()}}function ui(n,r){if(1&n){const t=e.RV6();e.qex(0),e.nrm(1,"customer-workspace-header"),e.j41(2,"customer-workspace-my-agent-button",1),e.bIt("clickMyAgent",function(o){e.eBV(t);const a=e.XpG();return e.Njj(a.openAgentsPage(o))}),e.k0s(),e.j41(3,"ion-content")(4,"main",2)(5,"div",3),e.DNE(6,mi,3,2,"ng-container",4),e.k0s(),e.DNE(7,vi,2,0,"ng-template",null,5,e.C5r),e.j41(9,"div",6),e.nrm(10,"customer-workspace-footer"),e.k0s()()(),e.bVm()}if(2&n){const t=r.ngIf,i=e.sdS(8);e.R7$(2),e.Y8G("agentImage",(null==t?null:t.agentImage)||"")("agentId",(null==t||null==t.coverage?null:t.coverage.agentId)||""),e.R7$(4),e.Y8G("ngIf",!t.error)("ngIfElse",i)}}let fi=(()=>{class n{constructor(t,i,o,a,c,C,u,N){this.translateSrv=t,this.store=i,this.router=o,this.route=a,this.breadCrumbService=c,this.toastService=C,this.dialogService=u,this.contactService=N,this.tabs=[{id:_.Ob.GENERAL_DATA,label:this.translateSrv.translate("COVERAGE.DETAIL_PAGE.OVERVIEW"),active:!0,notification:!1},{id:_.Ob.DOCUMENTS,label:this.translateSrv.translate("COVERAGE.DETAIL_PAGE.DOCUMENTS"),active:!1,notification:!1}],this.currentTab=_.Ob.GENERAL_DATA,this.DetailsTab=_.Ob,this.coveragePsiDetailViewModel$=this.store.select(d.Me.Lh)}ngOnInit(){this.store.dispatch(d.Vx.enterCoveragePsiDetailsPage())}getActionItem(t){return A.lZ.agentContactTab(this.translateSrv,t)}selectTab(t){this.currentTab=t.id}goToReceipts(){this.router.navigate([m.Y4.RECEIPTS],{relativeTo:this.route,queryParamsHandling:"preserve"})}retryPage(){this.store.dispatch(d.Vx.retryCoveragePsiDetailsPage())}navigateTo(t,i){this.breadCrumbService.navigateTo(t,i.detail)}translateBreadCrumbs(t){return this.breadCrumbService.translateBreadCrumbs(t)}openDocument(t){this.store.dispatch(d.HP.downloadPsiDocument({itemId:t.itemId,part:t.part}))}editIban(){this.dialogService.showDialog({component:x.Fn,closeable:!1}).subscribe(t=>{t&&this.store.dispatch(d.Ge.editBankAccountGetOtp({password:t}))})}showActiveEditToast(){this.toastService.showWarningToast(this.translateSrv.translate("COVERAGE.IBAN_CHANGE_ADVISE"))}openAgentsPage(t){this.contactService.openHelp(t)}static{this.\u0275fac=function(i){return new(i||n)(e.rXU(v.JO),e.rXU(w.il),e.rXU(h.Ix),e.rXU(h.nX),e.rXU(Q.BZ),e.rXU(j.oV),e.rXU(W.$t),e.rXU(z.u))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["customer-workspace-coverage-psi-detail
1s-container"]],decls:2,vars:3,consts:[[4,"ngIf"],[1,"md:hidden",3,"agentImage","agentId","clickMyAgent"],[1,"container-footer","md:bg-background","md:pt-8"],[1,"container-footer__content--full","pb-28","md:relative","md:px-6","md:py-12"],[4,"ngIf","ngIfElse"],["pageError",""],[1,"container-footer__footer"],[1,"hidden","md:absolute","md:right-0","md:block","md:w-28"],[3,"agentImage","agentId","clickMyAgent"],[1,"w-full",3,"coverage"],[1,"w-full","py-8","md:flex","lg:px-10"],["class","md:mr-12 md:flex md:w-1/4 md:max-w-xl md:flex-col md:justify-start",4,"ngIf"],[1,"md:grow"],["class","fixed bottom-0 flex h-bottom-menu-action w-full flex-row justify-evenly border-t-2 border-solid border-brand bg-white md:hidden",4,"ngIf"],[1,"md:mr-12","md:flex","md:w-1/4","md:max-w-xl","md:flex-col","md:justify-start"],[1,"mb-6","md:w-full","md:max-w-xl",3,"tabs","clickTab"],[1,"hidden","md:flex","md:flex-col"],[3,"title","icon","isExternalUrl","url","actionEmit",4,"ngIf"],[3,"title","icon","isExternalUrl","url","actionEmit"],[3,"coverage","clickOnReceipts","clickOnEditAccount","showActiveEditToast"],["class","md:mt-6",4,"ngIf"],[1,"mt-6"],[3,"insurances"],[1,"md:mt-6"],[3,"policyHolder","isPsi"],[3,"documents","clickOnDocument"],[1,"fixed","bottom-0","flex","h-bottom-menu-action","w-full","flex-row","justify-evenly","border-t-2","border-solid","border-brand","bg-white","md:hidden"],[1,"w-full","lg:px-10"],[1,"w-full","animate-pulse","bg-gray-400","py-20","lg:px-10"],[1,"lg:flex","lg:w-full","lg:px-10","lg:py-8"],[1,"h-[200px]","animate-pulse","bg-gray-400","lg:w-1/4"],[1,"lg:grow","lg:pl-8"],[1,"h-[350px]","animate-pulse","bg-gray-400"],[1,"container-action"],[3,"retry"]],template:function(i,o){1&i&&(e.DNE(0,ui,11,4,"ng-container",0),e.nI1(1,"async")),2&i&&e.Y8G("ngIf",e.bMT(1,1,o.coveragePsiDetailViewModel$))},dependencies:[l.bT,I.W9,B.n,K.l,_e,de,ei,oi,pe,me.P,ve.U,q.D,S.n,l.Jj],changeDetection:0})}}return n})();function Ci(n,r){1&n&&e.SdG(0,0,["*ngTemplateOutlet","content; context: { showIcon: true }"])}const Ei=()=>({showIcon:!0});function Ii(n,r){if(1&n){const t=e.RV6();e.j41(0,"div",3),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.clickDownload())}),e.DNE(1,Ci,1,0,"ng-content",4),e.k0s()}if(2&n){e.XpG();const t=e.sdS(3);e.R7$(),e.Y8G("ngTemplateOutlet",t)("ngTemplateOutletContext",e.lJ4(2,Ei))}}function hi(n,r){1&n&&e.SdG(0,1,["*ngTemplateOutlet","content; context: { showIcon: false }"])}const bi=()=>({showIcon:!1});function Ai(n,r){if(1&n&&(e.j41(0,"div",5),e.DNE(1,hi,1,0,"ng-content",4),e.k0s()),2&n){e.XpG();const t=e.sdS(3);e.R7$(),e.Y8G("ngTemplateOutlet",t)("ngTemplateOutletContext",e.lJ4(2,bi))}}function Ti(n,r){1&n&&e.nrm(0,"img",16)}function Ri(n,r){if(1&n&&(e.j41(0,"div",14),e.DNE(1,Ti,1,0,"img",15),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.showChargedInfo)}}function Di(n,r){if(1&n&&(e.j41(0,"span",9),e.EFF(1),e.nI1(2,"currency"),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.JRh(e.bMT(2,1,t.amount))}}function xi(n,r){if(1&n&&(e.j41(0,"div",6),e.DNE(1,Ri,2,1,"div",7),e.j41(2,"div",8)(3,"span",9),e.EFF(4),e.k0s(),e.j41(5,"span",10),e.EFF(6),e.nI1(7,"transloco"),e.k0s()()(),e.nrm(8,"div",11),e.j41(9,"div",12),e.DNE(10,Di,3,3,"span",13),e.j41(11,"span",10),e.EFF(12),e.nI1(13,"date"),e.k0s()()),2&n){const t=r.showIcon,i=e.XpG();e.R7$(),e.Y8G("ngIf",t),e.R7$(3),e.JRh(i.receipt.reference),e.R7$(2),e.JRh(e.bMT(7,5,i.state)),e.R7$(4),e.Y8G("ngIf",i.showChargedInfo),e.R7$(2),e.JRh(e.i5U(13,7,i.receipt.date,"dd/MM/yyyy"))}}const Ee=["*","*"],ki=()=>["cajamar"],Gi=()=>["generali","meridian"];let wi=(()=>{class n{constructor(){this.clickOnIcon=new e.bkB,this.environment=(0,e.WQX)(V.M),this.showChargedInfo=!1}ngOnInit(){this.state=this.getState(),this.showChargedInfo=!this.isPsi&&(this.receipt.state===_.PH.CHARGED||this.environment.scope===m.MJ.CAJAMAR),this.amount=Number(this.receipt?.amount?.replace(",","."))}getState(){switch(this.receipt.state){case _.PH.PENDING:return"COVERAGE.RECEIPTS.PENDING";case _.PH.CANCELED:return"COVERAGE.RECEIPTS.CANCELED";case _.PH.CHARGED:return"COVERAGE.RECEIPTS.CHARGED";default:return this.receipt.state}}clickDownload(){this.clickOnIcon.emit(this.receipt)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["customer-workspace-coverage-receipt-details"]],inputs:{receipt:"receipt",isPsi:"isPsi"},outputs:{clickOnIcon:"clickOnIcon"},ngContentSelectors:Ee,decls:4,vars:4,consts:[["class","flex w-full border-b border-solid border-gray-300 p-6",3,"click",4,"hideIfScope"],["class","flex w-full border-b border-solid border-gray-300 p-6",4,"hideIfScope"],["content",""],[1,"flex","w-full","border-b","border-solid","border-gray-300","p-6",3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"flex","w-full","border-b","border-solid","border-gray-300","p-6"],[1,"flex","flex-row"],["class","w-12",4,"ngIf"],[1,"flex","flex-col","pl-2"],[1,"text-2xl","font-bold"],[1,"text-2xl"],[1,"grow"],[1,"flex","flex-col","items-end"],["class","text-2xl font-bold",4,"ngIf"],[1,"w-12"],["src","assets/img/icons/g07-pdf-document-r.svg","class","h-full cursor-pointer",4,"ngIf"],["src","assets/img/icons/g07-pdf-document-r.svg",1,"h-full","cursor-pointer"]],template:function(i,o){1&i&&(e.NAR(Ee),e.DNE(0,Ii,2,3,"div",0)(1,Ai,2,3,"div",1)(2,xi,14,10,"ng-template",null,2,e.C5r)),2&i&&(e.Y8G("hideIfScope",e.lJ4(2,ki)),e.R7$(),e.Y8G("hideIfScope",e.lJ4(3,Gi)))},dependencies:[l.bT,l.T3,O.B,l.oe,l.vh,v.Kj],changeDetection:0})}}return n})();function yi(n,r){if(1&n){const t=e.RV6();e.j41(0,"div",8)(1,"div",9)(2,"mh-breadcrumbs",10),e.bIt("goBack",function(o){e.eBV(t);const a=e.XpG().ngIf,c=e.XpG();return e.Njj(c.navigateTo(a.breadCrumbs,o))})("goBackTo",function(o){e.eBV(t);const a=e.XpG().ngIf,c=e.XpG();return e.Njj(c.navigateTo(a.breadCrumbs,o))}),e.nI1(3,"transloco"),e.k0s()()()}if(2&n){const t=e.XpG().ngIf,i=e.XpG();e.R7$(2),e.Y8G("breadcrumbs",i.translateBreadCrumbs(t.breadCrumbs))("backLabel",e.bMT(3,3,"BUTTONS.BACK"))("isBreadcrumbDevice",!0)}}function Oi(n,r){1&n&&(e.nrm(0,"customer-workspace-empty-data",17),e.nI1(1,"transloco")),2&n&&e.Y8G("text",e.bMT(1,1,"COVERAGE.RECEIPTS.EMPTY"))}function Si(n,r){if(1&n){const t=e.RV6();e.j41(0,"customer-workspace-coverage-receipt-details",18),e.bIt("clickOnIcon",function(o){e.eBV(t);const a=e.XpG(3).ngIf,c=e.XpG();return e.Njj(c.downloadReceiptDoc(o,a.isPsi))}),e.k0s()}if(2&n){const t=r.$implicit,i=e.XpG(3).ngIf;e.Y8G("receipt",t)("isPsi",i.isPsi)}}function Ni(n,r){if(1&n&&(e.j41(0,"div",12)(1,"span",13),e.EFF(2),e.nI1(3,"transloco"),e.k0s(),e.j41(4,"span",14),e.EFF(5),e.nI1(6,"transloco"),e.k0s(),e.DNE(7,Oi,2,3,"customer-workspace-empty-data",15)(8,Si,1,2,"customer-workspace-coverage-receipt-details",16),e.k0s()),2&n){const t=e.XpG(2).ngIf,i=e.XpG();e.R7$(2),e.JRh(e.bMT(3,5,"COVERAGE.RECEIPTS.RECEIPTS_LEGAL")),e.R7$(3),e.SpI(" ",e.bMT(6,7,"COVERAGE.RECEIPTS.TITLE")," "),e.R7$(2),e.Y8G("ngIf",0===t.receipts.length),e.R7$(),e.Y8G("ngForOf",t.receipts)("ngForTrackBy",i.trackbyReceipts)}}function Fi(n,r){1&n&&(e.qex(0),e.j41(1,"div",19),e.nrm(2,"div",20),e.k0s(),e.bVm())}function Mi(n,r){if(1&n&&(e.qex(0),e.DNE(1,Ni,9,9,"div",11)(2,Fi,3,0,"ng-container",0),e.bVm()),2&n){const t=e.XpG().ngIf;e.R7$(),e.Y8G("ngIf",t.loaded&&t.receipts),e.R7$(),e.Y8G("ngIf",t.loading)}}function Pi(n,r){if(1&n){const t=e.RV6();e.j41(0,"div",21)(1,"customer-workspace-page-error",22),e.bIt("retry",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.retryPage())}),e.k0s()()}}function Vi(n,r){if(1&n&&(e.qex(0),e.nrm(1,"customer-workspace-header",1),e.nI1(2,"async"),e.j41(3,"ion-content"),e.DNE(4,yi,4,5,"div",2),e.j41(5,"main",3)(6,"div",4),e.DNE(7,Mi,3,2,"ng-container",5)(8,Pi,2,0,"ng-template",null,6,e.C5r),e.k0s(),e.j41(10,"div",7),e.nrm(11,"customer-workspace-footer"),e.k0s()()(),e.bVm()),2&n){const t=r.ngIf,i=e.sdS(9),o=e.XpG();e.R7$(),e.Y8G("companyIcon",e.bMT(2,4,o.companyIcon$)),e.R7$(3),e.Y8G("ngIf",t.breadCrumbs),e.R7$(3),e.Y8G("ngIf",!t.error)("ngIfElse",i)}}let Ie=(()=>{class n{constructor(t,i,o){this.store=t,this.breadCrumbService=i,this.userDataFacade=o,this.selectCoverageReceiptsViewModel$=this.store.select(d.Me.cP),this.companyIcon$=this.userDataFacade.companyIcon$}ngOnInit(){this.store.dispatch(d.Vx.enterCoverageReceiptsPage())}downloadReceiptDoc(t,i){!i&&t.state===_.PH.CHARGED&&(this.store.dispatch(b.AG.trackEvent({event:b.Ci.DOW
1NLOAD_RECEIPT,params:{eventCat:"COVERAGE"}})),this.store.dispatch(d.HP.downloadCoverageReceipt({receiptId:t.reference})))}trackbyReceipts(t,i){return i.reference}navigateTo(t,i){this.breadCrumbService.navigateTo(t,i.detail)}translateBreadCrumbs(t){return t?.length&&this.breadCrumbService.translateBreadCrumbs(t)||[]}retryPage(){this.store.dispatch(d.Vx.retryCoverageReceiptsPage())}static{this.\u0275fac=function(i){return new(i||n)(e.rXU(w.il),e.rXU(Q.BZ),e.rXU(y.Og))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["customer-workspace-coverage-receipts-container"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"companyIcon"],["class","bg-breadcrumb fixed z-50 flex w-full justify-center",4,"ngIf"],[1,"container-footer","md:bg-background","md:pt-8"],[1,"container-footer__content","pb-28","lg:px-6"],[4,"ngIf","ngIfElse"],["pageError",""],[1,"container-footer__footer"],[1,"bg-breadcrumb","fixed","z-50","flex","w-full","justify-center"],[1,"w-full","max-w-screen-xl"],[3,"breadcrumbs","backLabel","isBreadcrumbDevice","goBack","goBackTo"],["class","flex flex-col bg-white p-6",4,"ngIf"],[1,"flex","flex-col","bg-white","p-6"],[1,"text-2xl"],[1,"border-b","border-solid","border-gray-300","py-6","text-3xl","font-bold","text-gray-500"],["class","mt-4",3,"text",4,"ngIf"],[3,"receipt","isPsi","clickOnIcon",4,"ngFor","ngForOf","ngForTrackBy"],[1,"mt-4",3,"text"],[3,"receipt","isPsi","clickOnIcon"],[1,"flex","h-full","w-full","flex-col","items-center"],[1,"h-96","w-full","animate-pulse","bg-gray-400","md:w-1/2"],[1,"container-action"],[3,"retry"]],template:function(i,o){1&i&&(e.DNE(0,Vi,12,6,"ng-container",0),e.nI1(1,"async")),2&i&&e.Y8G("ngIf",e.bMT(1,1,o.selectCoverageReceiptsViewModel$))},dependencies:[l.Sq,l.bT,I.W9,L.V,B.n,K.l,wi,S.n,l.Jj,v.Kj],changeDetection:0})}}return n})(),he=(()=>{class n{constructor(t){this.environment=t,this.toastSrv=(0,e.WQX)(j.oV),this.router=(0,e.WQX)(h.Ix),this.translateSrv=(0,e.WQX)(v.JO),this.dialogService=(0,e.WQX)(W.$t),this.store=(0,e.WQX)(w.il),this.FINANCIAL_BLOCKED_BRACH="83",this.FINANCIAL_ENABLED_INSURED_BRACH="84",this.FINANCIAL_BLOCKED_INSURED="insured"}navigateToCoverageDetails(t,i){t.policy?.branch===this.FINANCIAL_BLOCKED_BRACH?this.showNotAvailableWarning():t.financialPosition?t.rol!==this.FINANCIAL_BLOCKED_INSURED||t.policy?.branch===this.FINANCIAL_ENABLED_INSURED_BRACH?this.environment.scope===m.MJ.CAJAMAR&&!k.Vv.ut||this.environment.scope===m.MJ.BANCAMARCH?this.showNotAvailableDialog():t.policy?.branch===this.FINANCIAL_ENABLED_INSURED_BRACH&&!i||t.policy?.branch!==this.FINANCIAL_ENABLED_INSURED_BRACH&&!t.isActive?this.showNotAvailableWarning():(this.store.dispatch(D.qS.trackEvent({event:D.aX.ActivePolicies,params:{insurance:t.type}})),this.router.navigate([m.Y4.MY_COVERAGES,m.Y4.FINANCIAL_POSITION,(0,d.q3)(t)],{queryParams:{adhesionCollective:t.adhesionCollective,center:t.center,rol:t.rol,scope:t.scope}})):this.showNotAvailableWarning():"psi"===t.type?.toLowerCase()?this.router.navigate([m.Y4.MY_COVERAGES,"psi",(0,d.q3)(t)],{}):this.router.navigate([m.Y4.MY_COVERAGES,(0,d.q3)(t)],{queryParams:{adhesionCollective:t.adhesionCollective,center:t.center,rol:t.rol,scope:t.scope}})}showNotAvailableWarning(){this.toastSrv.showWarningToast(`${this.translateSrv.translate("COVERAGE.NO_POLICIES_AVAILABLE")} ${this.translateSrv.translate("COVERAGE.CONTACT_AGENT")}`)}showNotAvailableDialog(){this.dialogService.showWarningDialog({title:this.translateSrv.translate("COVERAGE.FINANCIAL_NOT_AVAILABLE_TITLE"),message:[this.translateSrv.translate("COVERAGE.FINANCIAL_NOT_AVAILABLE_TEXT_1"),this.translateSrv.translate("COVERAGE.FINANCIAL_NOT_AVAILABLE_TEXT_2"),this.translateSrv.translate("COVERAGE.FINANCIAL_NOT_AVAILABLE_TEXT_3")],confirmText:this.translateSrv.translate("BUTTONS.CONFIRM")})}static{this.\u0275fac=function(i){return new(i||n)(e.KVO(V.M))}}static{this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var ji=s(39619);function Bi(n,r){if(1&n){const t=e.RV6();e.j41(0,"div",8)(1,"mh-contract-card-first-level",9),e.bIt("cardEvent",function(){const a=e.eBV(t).$implicit,c=e.XpG(2);return e.Njj(c.handleCardClick(a))}),e.nI1(2,"transloco"),e.nI1(3,"transloco"),e.nI1(4,"transloco"),e.nI1(5,"transloco"),e.nI1(6,"transloco"),e.nI1(7,"date"),e.k0s()()}if(2&n){const t=r.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("badgeActive",!0)("borderPresence",!0)("padding",!0)("iconRight","ios-arrow-forward")("icon",i.getIcon((null==t?null:t.type)||""))("componentText",e.bMT(2,15,i.getTitle(t)))("badgetitle",e.bMT(3,17,i.getStatusText(t)))("colorbadge",i.getStatusColor(t.status))("numberPolicy",t.productName)("isNotificationPositive","insured"!==t.rol)("notificationText",e.bMT(4,19,"insured"===t.rol?"COVERAGE.INSURED":""))("details",i.getRiskInsureds(t.riskInsured))("text1",e.bMT(5,21,i.getPolicyNumber(t.psiId?t.psiId:t.policy)))("text2",e.bMT(6,23,t.endDate?"COVERAGE.EXPIRATION_DATE":"COVERAGE.EFFECT_DATE")+": ")("date2",e.i5U(7,25,t.endDate||t.effectDate,"dd/MM/yyyy"))}}function $i(n,r){if(1&n&&(e.j41(0,"div",10),e.nrm(1,"customer-workspace-empty-data",11),e.nI1(2,"transloco"),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("text",e.bMT(2,1,"COVERAGE.NO")+t.title.toLowerCase())}}function Li(n,r){1&n&&e.nrm(0,"mh-skeleton-loader",12),2&n&&e.Y8G("padding",!0)}function Yi(n,r){if(1&n){const t=e.RV6();e.j41(0,"mh-icon-text-2",14),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.loadNextPage())}),e.nI1(1,"transloco"),e.k0s()}2&n&&e.Y8G("text",e.bMT(1,1,"COVERAGE.LOAD_MORE"))}function Xi(n,r){if(1&n&&e.DNE(0,Yi,2,3,"mh-icon-text-2",13),2&n){const t=e.XpG(2);e.Y8G("ngIf",(null==t.pagination?null:t.pagination.hasNext)&&!!t.coverages.length)}}function Ui(n,r){if(1&n&&(e.qex(0),e.j41(1,"div",3),e.DNE(2,Bi,8,28,"div",4)(3,$i,3,3,"div",5)(4,Li,1,1,"mh-skeleton-loader",6)(5,Xi,1,1,"ng-template",null,7,e.C5r),e.k0s(),e.bVm()),2&n){const t=e.sdS(6),i=e.XpG();e.R7$(2),e.Y8G("ngForOf",i.coverages)("ngForTrackBy",i.trackByItems),e.R7$(),e.Y8G("ngIf",i.loaded&&0===i.coverages.length),e.R7$(),e.Y8G("ngIf",!i.loaded)("ngIfElse",t)}}function Ji(n,r){1&n&&e.nrm(0,"customer-workspace-section-error")}let Hi=(()=>{class n{constructor(t){this.translateSrv=t,this.viewCoverage=new e.bkB,this.nextPage=new e.bkB}trackByItems(t,i){return g.et.getCoverageId(i.psiId?i.psiId:i.policy)}getIcon(t){return A.lZ.getIcon(t)}getTitle(t){return A.lZ.getCoverageTitle(t)}
1getStatusText(t){return A.lZ.getStatusText(t)}getStatusColor(t){return A.lZ.getStatusColor(t)}getRiskInsureds(t){return t&&t.length>0?t.join(", "):""}getPolicyNumber(t){return t?`${this.translateSrv.translate("COVERAGE.POLICY_NUMBER")}: ${g.et.getCoverageId(t)}`:""}handleCardClick(t){this.viewCoverage.emit(t)}loadNextPage(){this.nextPage.emit({key:this.title,value:this.pagination.coveragePage})}static{this.\u0275fac=function(i){return new(i||n)(e.rXU(v.JO))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["customer-workspace-coverage-list"]],inputs:{title:"title",coverages:"coverages",pagination:"pagination",loaded:"loaded",error:"error"},outputs:{viewCoverage:"viewCoverage",nextPage:"nextPage"},decls:5,vars:3,consts:[["role","label",1,"text-ho-title","md:ml-8"],[4,"ngIf","ngIfElse"],["sectionError",""],[1,"remove-gap","grid","grid-cols-1","py-8","sm:grid-cols-2","md:grid-cols-3","md:px-8"],["class","-mb-4 w-full",4,"ngFor","ngForOf","ngForTrackBy"],["class","mx-4",4,"ngIf"],[3,"padding",4,"ngIf","ngIfElse"],["iconShowMore",""],[1,"-mb-4","w-full"],[1,"flex","h-full","flex-wrap",3,"badgeActive","borderPresence","padding","iconRight","icon","componentText","badgetitle","colorbadge","numberPolicy","isNotificationPositive","notificationText","details","text1","text2","date2","cardEvent"],[1,"mx-4"],[3,"text"],[3,"padding"],["icon","android-add-circle","class","m-auto py-4",3,"text","click",4,"ngIf"],["icon","android-add-circle",1,"m-auto","py-4",3,"text","click"]],template:function(i,o){if(1&i&&(e.j41(0,"span",0),e.EFF(1),e.k0s(),e.DNE(2,Ui,7,5,"ng-container",1)(3,Ji,1,0,"ng-template",null,2,e.C5r)),2&i){const a=e.sdS(4);e.R7$(),e.JRh(o.title),e.R7$(),e.Y8G("ngIf",!o.error)("ngIfElse",a)}},dependencies:[l.Sq,l.bT,ji.p,L.V,l.vh,v.Kj],styles:[".remove-gap[_ngcontent-%COMP%]{margin:-1rem -1rem 0}"],changeDetection:0})}}return n})();var Qi=s(83303);function Wi(n,r){if(1&n){const t=e.RV6();e.qex(0),e.j41(1,"customer-workspace-coverage-list",12),e.bIt("viewCoverage",function(o){e.eBV(t);const a=e.XpG(2).ngIf,c=e.XpG();return e.Njj(c.viewCoverage(o,a.hasCollective))}),e.nI1(2,"transloco"),e.k0s(),e.bVm()}if(2&n){const t=e.XpG(2).ngIf;e.R7$(),e.FS9("title",e.bMT(2,4,"COVERAGE.PSI_ACTIVE_POLICIES")),e.Y8G("coverages",t.activePsiCoverages.coverages)("loaded",t.activePsiCoverages.loaded)("error",t.activePsiCoverages.error)}}function zi(n,r){if(1&n){const t=e.RV6();e.qex(0),e.j41(1,"customer-workspace-coverage-list",12),e.bIt("viewCoverage",function(o){e.eBV(t);const a=e.XpG(2).ngIf,c=e.XpG();return e.Njj(c.viewCoverage(o,a.hasCollective))}),e.nI1(2,"transloco"),e.k0s(),e.bVm()}if(2&n){const t=e.XpG(2).ngIf;e.R7$(),e.FS9("title",e.bMT(2,4,"COVERAGE.PSI_EXPIRED_POLICIES")),e.Y8G("coverages",t.expiredPsiCoverages.coverages)("loaded",t.expiredPsiCoverages.loaded)("error",t.expiredPsiCoverages.error)}}function Ki(n,r){if(1&n){const t=e.RV6();e.qex(0),e.j41(1,"div",8)(2,"customer-workspace-my-agent-button",9),e.bIt("clickMyAgent",function(o){e.eBV(t);const a=e.XpG(2);return e.Njj(a.openAgentsPage(o))}),e.k0s()(),e.j41(3,"div",10),e.DNE(4,Wi,3,6,"ng-container",0),e.j41(5,"customer-workspace-coverage-list",11),e.bIt("nextPage",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.loadMoreActiveCoverages())})("viewCoverage",function(o){e.eBV(t);const a=e.XpG().ngIf,c=e.XpG();return e.Njj(c.viewCoverage(o,a.hasCollective))}),e.nI1(6,"transloco"),e.k0s(),e.DNE(7,zi,3,6,"ng-container",0),e.j41(8,"customer-workspace-coverage-list",11),e.bIt("nextPage",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.loadMoreExpiredCoverages())})("viewCoverage",function(o){e.eBV(t);const a=e.XpG().ngIf,c=e.XpG();return e.Njj(c.viewCoverage(o,a.hasCollective))}),e.nI1(9,"transloco"),e.k0s()(),e.bVm()}if(2&n){const t=e.XpG().ngIf;e.R7$(2),e.Y8G("agentImage",t.agentsMobile.image)("agentId",t.agentsMobile.id),e.R7$(2),e.Y8G("ngIf",t.activePsiCoverages.coverages.length),e.R7$(),e.FS9("title",e.bMT(6,14,"COVERAGE.ACTIVE_POLICIES")),e.Y8G("coverages",t.activeCoverages.coverages)("pagination",t.activeCoverages.pagination)("loaded",t.activeCoverages.loaded)("error",t.activeCoverages.error),e.R7$(2),e.Y8G("ngIf",t.expiredPsiCoverages.coverages.length),e.R7$(),e.FS9("title",e.bMT(9,16,"COVERAGE.EXPIRED_POLICIES")),e.Y8G("coverages",t.expiredCoverages.coverages)("pagination",t.expiredCoverages.pagination)("loaded",t.expiredCoverages.loaded)("error",t.expiredCoverages.error)}}function qi(n,r){if(1&n){const t=e.RV6();e.j41(0,"div",13)(1,"customer-workspace-page-error",14),e.bIt("retry",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.retry())}),e.k0s()()}}function Zi(n,r){1&n&&(e.j41(0,"div",16),e.nrm(1,"customer-workspace-offers-container"),e.k0s())}function eo(n,r){if(1&n&&(e.qex(0),e.DNE(1,Zi,2,0,"div",15),e.bVm()),2&n){const t=e.XpG().ngIf;e.R7$(),e.Y8G("ngIf",t.showCarousel)}}const to=()=>["cajamar","bancamarch","meridian"];function no(n,r){if(1&n&&(e.j41(0,"ion-content")(1,"main",1)(2,"div",2),e.DNE(3,Ki,10,18,"ng-container",3)(4,qi,2,0,"ng-template",null,4,e.C5r),e.k0s(),e.nrm(6,"div",5),e.DNE(7,eo,2,1,"ng-container",6),e.j41(8,"div",7),e.nrm(9,"customer-workspace-footer"),e.k0s()()()),2&n){const t=r.ngIf,i=e.sdS(5);e.R7$(3),e.Y8G("ngIf",!t.error)("ngIfElse",i),e.R7$(4),e.Y8G("hideIfScope",e.lJ4(3,to))}}let io=(()=>{class n{constructor(t,i,o,a,c){this.store=t,this.toastSrv=i,this.medalliaSrv=o,this.contactService=a,this.coverageDetailService=c,this.coveragesViewModel$=this.store.select(d.Me.mi)}ngOnInit(){this.store.dispatch(d.Vx.enterCoveragesPage())}ionViewDidEnter(){this.medalliaSrv.setCustomParam("screenName",P.a.COVERAGE)}ionViewWillLeave(){this.medalliaSrv.setCustomParam("screenName",P.a.NO_SURVEY)}loadMoreActiveCoverages(){this.toastSrv.dismissCurrentToast(),this.store.dispatch(d.Vx.loadM
1oreActiveCoverages())}loadMoreExpiredCoverages(){this.toastSrv.dismissCurrentToast(),this.store.dispatch(d.Vx.loadMoreExpiredCoverages())}retry(){this.store.dispatch(d.Vx.retryCoverages())}viewCoverage(t,i){this.store.dispatch(b.AG.trackEvent({event:"navigation",params:{location:"Mis seguros",ramo:t.type?.toLocaleLowerCase(),link_text:`${t.cancelledOrExpired?"seguros anulados":"seguros activos"} - ${t.policy.company}-${t.policy.branch}-${t.policy.number}`}})),this.coverageDetailService.navigateToCoverageDetails(t,i)}openAgentsPage(t){this.contactService.openHelp(t)}static{this.\u0275fac=function(i){return new(i||n)(e.rXU(w.il),e.rXU(j.oV),e.rXU(le.ZT),e.rXU(z.u),e.rXU(he))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["customer-workspace-coverages-container"]],decls:2,vars:3,consts:[[4,"ngIf"],[1,"container-footer"],[1,"container-footer__content--full","md:relative"],[4,"ngIf","ngIfElse"],["pageError",""],[1,"grow"],[4,"hideIfScope"],[1,"container-footer__footer"],[1,"hidden","md:absolute","md:right-0","md:block","md:w-28"],[3,"agentImage","agentId","clickMyAgent"],[1,"container-footer__content--full__dashboard"],[3,"title","coverages","pagination","loaded","error","nextPage","viewCoverage"],[3,"title","coverages","loaded","error","viewCoverage"],[1,"container-action"],[3,"retry"],["class","w-full",4,"ngIf"],[1,"w-full"]],template:function(i,o){1&i&&(e.DNE(0,no,10,4,"ion-content",0),e.nI1(1,"async")),2&i&&e.Y8G("ngIf",e.bMT(1,1,o.coveragesViewModel$))},dependencies:[l.bT,I.W9,B.n,Hi,O.B,q.D,Qi.E,S.n,l.Jj,v.Kj],changeDetection:0})}}return n})(),oo=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=e.$C({type:n})}static{this.\u0275inj=e.G2t({providers:[p.N],imports:[l.MD,I.bv,v.Q8,T.al,d.dq,k.Vc,X.t,R._$,x.Hd,E.o,f.fw,A.O0,D.M3,h.iI.forChild([{path:"",pathMatch:"full",component:io,data:{title:"COVERAGE.MY_COVERAGES",breadCrumbs:[{label:"HOME_SCREEN.TITLE",url:m.Y4.HOME},{label:"COVERAGE.MY_COVERAGES",url:m.Y4.MY_COVERAGES}],showAgentFloat:!0}},{path:`${m.Y4.FINANCIAL_POSITION}`,canActivate:[k.oV],component:zn,loadChildren:()=>Promise.all([s.e(2076),s.e(7911)]).then(s.bind(s,87911)).then(t=>t.FinancialPositionFeatureModule)},{path:":id",pathMatch:"full",component:Wn,canActivate:[d.Ex],data:{title:"COVERAGE.COVERAGE_DETAIL",isDetailView:!0,showAgentFloat:!0}},{path:`:id/${m.Y4.RECEIPTS}`,pathMatch:"full",component:Ie,data:{title:"COVERAGE.RECEIPTS.TITLE",isDetailView:!0,holdParams:!0,showAgentFloat:!0}},{path:`${m.Y4.PSI_DETAILS}/:id`,pathMatch:"full",component:fi,data:{title:"COVERAGE.COVERAGE_DETAIL",breadCrumbs:[{label:"COVERAGE.MY_COVERAGES",url:m.Y4.MY_COVERAGES},{label:"COVERAGE.PSI",url:`${m.Y4.MY_COVERAGES}/psi/:id`}],isDetailView:!0,showAgentFloat:!0}},{path:`${m.Y4.PSI_DETAILS}/:id/${m.Y4.RECEIPTS}`,pathMatch:"full",component:Ie,data:{title:"COVERAGE.RECEIPTS.TITLE",isDetailView:!0,showAgentFloat:!0}}]),U.MiGeneraliOffersFeatureModule,Y.J]})}}return n})()},83303:(be,F,s)=>{s.d(F,{E:()=>k});var l=s(29783),h=s(34362),p=s(54438),I=s(59640),v=s(20464),D=s(60177),d=s(46711);function x(f,T){1&f&&p.nrm(0,"div",3)}function A(f,T){if(1&f){const E=p.RV6();p.qex(0),p.j41(1,"customer-workspace-carousel-offers",4),p.bIt("typeProduct",function(R){p.eBV(E);const e=p.XpG(4);return p.Njj(e.handleCarrouselAction(R))}),p.k0s(),p.bVm()}if(2&f){const E=p.XpG(3).ngIf;p.R7$(),p.Y8G("offersList",E.offers)}}function Y(f,T){if(1&f&&p.DNE(0,A,2,1,"ng-container",0),2&f){const E=p.XpG(2).ngIf;p.Y8G("ngIf",E.offers.length>0)}}function X(f,T){if(1&f&&(p.qex(0),p.DNE(1,x,1,0,"div",1)(2,Y,1,1,"ng-template",null,2,p.C5r),p.bVm()),2&f){const E=p.sdS(3),m=p.XpG().ngIf;p.R7$(),p.Y8G("ngIf",!m.loaded)("ngIfElse",E)}}function U(f,T){if(1&f&&(p.qex(0),p.DNE(1,X,4,2,"ng-container",0),p.bVm()),2&f){const E=T.ngIf;p.R7$(),p.Y8G("ngIf",!E.error)}}let k=(()=>{class f{constructor(E,m){this.store=E,this.translateSrv=m,this.offersViewModel$=this.store.select(l.eS.H_)}ngOnInit(){this.store.dispatch(l.V_.enterCarrousel())}handleCarrouselAction(E){const{typeProduct:m,title:R}=E,e=Object.entries(h.cd).find(([G])=>G==="OFFER_"+m);this.store.dispatch(h.AG.trackEvent({event:"navigation",params:{location:"te interesa",link_text:e?this.translateSrv.translate(R):h.cd.OFFER_GENERIC}})),this.store.dispatch(l.V_.handleCarrouselAction({typeProduct:m}))}static{this.\u0275fac=function(m){return new(m||f)(p.rXU(I.il),p.rXU(v.JO))}}static{this.\u0275cmp=p.VBU({type:f,selectors:[["customer-workspace-offers-container"]],decls:2,vars:3,consts:[[4,"ngIf"],["id","skeleton","class","h-[43rem] w-full animate-pulse bg-gray-400",4,"ngIf","ngIfElse"],["offerLoaded",""],["id","skeleton",1,"h-[43rem]","w-full","animate-pulse","bg-gray-400"],[3,"offersList","typeProduct"]],template:function(m,R){1&m&&(p.DNE(0,U,2,1,"ng-container",0),p.nI1(1,"async")),2&m&&p.Y8G("ngIf",p.bMT(1,1,R.offersViewModel$))},dependencies:[D.bT,d.v,D.Jj],changeDetection:0})}}return f})()}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.