PageSourceSearch

https://account.dansktandforsikring.dk/9444.76eddfa2059a55a4.js

js dansktandforsikring.dk collected 2026-10-07 20:03:53 UTC 23,250 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkfrontend_ddi=self.webpackChunkfrontend_ddi||[]).push([[9444],{46821:(B,T,o)=>{o.d(T,{S:()=>d});var y=o(82436),u=o(59953);const d=C=>C&&C.status!==u.A.TERMINATED&&C.status!==u.A.QUOTE&&C.status!==u.A.DECLINED&&!(C.status===u.A.ACTIVE&&C.renewalMode===y.Z.TERMINATE)},19444:(B,T,o)=>{o.d(T,{n:()=>ie});var y=o(79817),u=o(8929),d=(()=>{return(r=d||(d={})).CANCEL="Cancel",r.REINSTATE="Reinstate",d;var r})(),C=o(46821),I=o(80142),E=(()=>{return(r=E||(E={})).CAN_BY_MISTAKE="CAN_BY_MISTAKE",r.CAN_BY_SYS_ERROR="CAN_BY_SYS_ERROR",E;var r})(),e=o(55062),R=o(88708),m=o(31128),v=o(24006),p=(()=>{return(r=p||(p={})).FREE_CANCELLATION="FREE_CANCELLATION",r.QUICK_TERMINATION="QUICK_TERMINATION",r.STANDARD_TERMINATION="STANDARD_TERMINATION",r.CANCELLED_ON_RENEWAL="CANCELLED_ON_RENEWAL",r.END_OF_MONTH_CANCELLATION="END_OF_MONTH_CANCELLATION",p;var r})(),S=o(40681),N=o(29838),M=o(58014),b=o(42466),Z=o(7498),L=o(36895),x=o(49847),U=o(36358);function G(r,i){if(1&r&&e._UZ(0,"div",9),2&r){const c=e.oxw();e.Q6J("innerText",c.additionalMessage)}}function V(r,i){if(1&r){const c=e.EpF();e.TgZ(0,"div",10)(1,"div",11)(2,"div",12)(3,"label",13),e._uU(4,"Cancel to first start date of given policy year"),e.qZA()(),e.TgZ(5,"p-checkbox",14),e.NdJ("onChange",function(n){e.CHM(c);const a=e.oxw();return e.KtG(a.setDate(n.checked))}),e.qZA()()()}2&r&&(e.xp6(5),e.Q6J("binary",!0))}let Q=(()=>{const i=class extends R.u{constructor(t,n,a){super(t),this.translateService=n,this.authService=a,this.isContract=!1,this.formConfig={effectiveDateDisabled:!1,effectiveDateValue:null,effectiveDateRequired:!1,hideTerminationFee:!0,hideSendEmail:!0,requireTerminationFee:!1},this.TerminationReason=p}ngOnChanges(t){t.reasonOptions&&this.reasonOptions&&this.rebuildForm(),t.action&&this.action&&(this.isPolicyCancel=this.action===d.CANCEL,this.formConfig.hideSendEmail=this.isPolicyCancel),super.ngOnChanges(t),this.policy&&void 0===this.policy.annualEffectiveDate&&void 0===this.policy.annualExpirationDate&&(this.isContract=!0)}getFormMetadata(){return this.action===d.CANCEL?{type:m.E.GROUP,subFields:{effectiveDate:{name:"effectiveDate",label:this.translateService.instant("MODEL.policy.cancellationDate"),type:m.E.CALENDAR,validators:[S.d.requiredIf(()=>this.formConfig.effectiveDateRequired&&!this.isContract)]},terminationReason:{name:"terminationReason",label:this.translateService.instant("MODEL.policy.terminationReason"),type:m.E.DROPDOWN,componentOptions:{options:this.reasonOptions},validators:[v.kI.required]},terminationFee:{name:"terminationFee",type:m.E.INPUTNUMBER,label:this.translateService.instant("MODEL.policy.terminationFee"),disabled:this.isContract,validators:[S.d.conditionalValidator(()=>this.formConfig.requireTerminationFee&&!this.isContract,t=>"0"!=t&&!t,"required")]},skipDocuments:{name:"skipDocuments",label:this.translateService.instant("MODEL.policy.dontSendEmail"),type:m.E.CHECKBOX,styleClass:"filter-checkbox"}}}:{type:m.E.GROUP,subFields:{reinstateReason:{name:"reinstateReason",label:this.translateService.instant("MODEL.policy.reinstateReason"),type:m.E.DROPDOWN,componentOptions:{options:this.reasonOptions},validators:[v.kI.required]},skipDocuments:{name:"skipDocuments",label:this.translateService.instant("MODEL.policy.dontSendEmail"),type:m.E.CHECKBOX,styleClass:"filter-checkbox"}}}}reasonChange(t){switch(t){case p.QUICK_TERMINATION:this.formConfig.effectiveDateDisabled=!1,this.formConfig.effectiveDateValue=null,this.formConfig.effectiveDateRequired=!0,this.formConfig.hideTerminationFee=this.authService.getActiveTenant()===N.V.DK,this.formConfig.hideSendEmail=!1,this.formConfig.requireTerminationFee=this.authService.getActiveTenant()===N.V.NO;break;case p.FREE_CANCELLATION:this.formConfig.effectiveDateDisabled=!0,this.formConfig.effectiveDateValue=new Date(this.policy.effectiveDate?this.policy.effectiveDate:this.policy.annualEffectiveDate),this.formConfig.effectiveDateRequired=!1,this.formConfig.hideTerminationFee=!0,this.formConfig.hideSendEmail=!0,this.form.controls.skipDocuments.setValue(null);break;case p.STANDARD_TERMINATION:this.formConfig.effectiveDateDisabled=!0,this.formConfig.effectiveDateValue=new Date(this.cancelDate),this.formConfig.effectiveDateRequired=!0,this.formConfig.hideTerminationFee=!0,this.formConfig.hideSendEmail=!0,this.form.controls.skipDocuments.setValue(null);break;case p.END_OF_MONTH_CANCELLATION:this.formConfig.effectiveDateDisabled=!0,this.formConfig.effectiveDateValue=new Date(this.cancelDate),this.formConfig.effectiveDateRequired=!0,this.formConfig.hideTerminationFee=this.authService.getActiveTenant()===N.V.DK,this.formConfig.hideSendEmail=!1,this.formConfig.requireTerminationFee=this.authService.getActiveTenant()===N.V.NO}this.action===d.REINSTATE&&(this.formConfig.hideSendEmail=!1),this.updateForm()}setDate(t){t?(this.form.controls.effectiveDate.setValue(new Date(this.policy.annualEffectiveDate)),this.form.controls.effectiveDate.disable()):(this.form.controls.effectiveDate.setValue(null),this.form.controls.effectiveDate.enable())}updateForm(){this.formConfig.effectiveDateDisabled?this.form.controls.effectiveDate?.disable():this.form.controls.effectiveDate?.enable(),this.formConfig.hideTerminationFee?(this.form.controls.terminationFee?.disable(),this.form.controls.terminationFee?.setValue(null)):this.form.controls.terminationFee?.enable(),this.form.controls.effectiveDate?.setValue(this.formConfig.effectiveDateValue)}};let r=i;return i.\u0275fac=function(n){return new(n||i)(e.Y36(M.r),e.Y36(b.sK),e.Y36(Z.Zq5))},i.\u0275cmp=e.Xpm({type:i,selectors:[["ddi-policy-cancel-form"]],inputs:{policy:"policy",reasonOptions:"reasonOptions",action:"action",additionalMe
1ssage:"additionalMessage",cancelDate:"cancelDate"},features:[e.qOj,e.TTD],decls:15,vars:16,consts:[[1,"ui-g-1"],[1,"ui-g-10","ui-fluid"],["style","font-weight: 600; color: red",3,"innerText",4,"ngIf"],[1,"filter-container-labeled",3,"hidden"],[3,"formFieldConfig","zIndex","valueChange"],[3,"formFieldConfig","zIndex"],[3,"formFieldConfig"],["style","margin-left: 19px; margin-top: 20px;",4,"ngIf"],[2,"margin-left","19px","margin-top","20px",3,"hidden"],[2,"font-weight","600","color","red",3,"innerText"],[2,"margin-left","19px","margin-top","20px"],["ng-reflect-ng-class","filter-checkbox",1,"form-field-container","global-custom-emails-container","filter-checkbox"],[1,"form-field-label"],["for","skipDocuments"],[3,"binary","onChange"]],template:function(n,a){1&n&&(e._UZ(0,"div",0),e.TgZ(1,"div",1),e.YNc(2,G,1,1,"div",2),e.TgZ(3,"div",3)(4,"ar-form-field",4),e.NdJ("valueChange",function(l){return a.reasonChange(l)}),e.qZA()(),e.TgZ(5,"div",3)(6,"ar-form-field",4),e.NdJ("valueChange",function(l){return a.reasonChange(l)}),e.qZA()(),e.TgZ(7,"div",3),e._UZ(8,"ar-form-field",5),e.qZA(),e.TgZ(9,"div",3),e._UZ(10,"ar-form-field",6),e.qZA(),e.YNc(11,V,6,1,"div",7),e.TgZ(12,"div",8),e._UZ(13,"ar-form-field",5),e.qZA()(),e._UZ(14,"div",0)),2&n&&(e.xp6(2),e.Q6J("ngIf",a.additionalMessage),e.xp6(1),e.Q6J("hidden",!a.isPolicyCancel),e.xp6(1),e.Q6J("formFieldConfig",a.formConfiguration.subFields.terminationReason)("zIndex",7e3),e.xp6(1),e.Q6J("hidden",a.isPolicyCancel),e.xp6(1),e.Q6J("formFieldConfig",a.formConfiguration.subFields.reinstateReason)("zIndex",7e3),e.xp6(1),e.Q6J("hidden",!a.formConfig.effectiveDateRequired),e.xp6(1),e.Q6J("formFieldConfig",a.formConfiguration.subFields.effectiveDate)("zIndex",7e3),e.xp6(1),e.Q6J("hidden",a.formConfig.hideTerminationFee||a.isContract),e.xp6(1),e.Q6J("formFieldConfig",a.formConfiguration.subFields.terminationFee),e.xp6(1),e.Q6J("ngIf",a.form.value.terminationReason===a.TerminationReason.QUICK_TERMINATION),e.xp6(1),e.Q6J("hidden",a.formConfig.hideSendEmail),e.xp6(1),e.Q6J("formFieldConfig",a.formConfiguration.subFields.skipDocuments)("zIndex",7e3))},dependencies:[L.O5,x.h,U.XZ],encapsulation:2}),r})(),A=(()=>{const i=class{constructor(t){this.adminRestService=t,this.acceptDisabledChange=new u.xQ,this.rejectDisabledChange=new u.xQ,this.dataChange=new u.xQ,this.accept=!1}ngOnInit(){this.action=(0,C.S)(this.inputData)?d.CANCEL:d.REINSTATE,this.action===d.CANCEL?this.adminRestService.getPolicyTerminationReasons(this.inputData.policyNumber).then(t=>{this.additionalMessage=t.getData().message?t.getData().message:null,this.reasonOptions=t.getData().terminationReasons.map(n=>({label:n.name,value:n.code})),this.cancelDate=t.getData().cancelDate}):this.reasonOptions=[{label:"Cancelled by mistake",value:E.CAN_BY_MISTAKE},{label:"Cancelled by system error",value:E.CAN_BY_SYS_ERROR}],this.acceptDisabledChange.next(this.accept)}ngOnDestroy(){this.acceptDisabledChange.next(!0)}getAcceptDisabledChangeObservable(){return this.acceptDisabledChange.asObservable()}getRejectDisabledChangeObservable(){return this.rejectDisabledChange.asObservable()}getDataTransferObservable(){return this.dataChange.asObservable()}};let r=i;return i.\u0275fac=function(n){return new(n||i)(e.Y36(I.J))},i.\u0275cmp=e.Xpm({type:i,selectors:[["ddi-confirm-policy-cancel"]],decls:1,vars:5,consts:[[3,"policy","action","reasonOptions","additionalMessage","cancelDate","modelChange","validChange"]],template:function(n,a){1&n&&(e.TgZ(0,"ddi-policy-cancel-form",0),e.NdJ("modelChange",function(l){return a.dataChange.next(l)})("validChange",function(l){return a.acceptDisabledChange.next(l)}),e.qZA()),2&n&&e.Q6J("policy",a.inputData)("action",a.action)("reasonOptions",a.reasonOptions)("additionalMessage",a.additionalMessage)("cancelDate",a.cancelDate)},dependencies:[Q],encapsulation:2}),r})();var J=o(52434),g=o(44511),Y=o(26584),k=o(79920);class K extends k.U{constructor(){super(...arguments),this.regexp=/^\d*$/}onInput(i,c){return!this.regexp.test(i)||i.length>4?{display:c,value:c}:{display:i,value:i}}}class q extends k.U{constructor(){super(...arguments),this.regexp=/^\d*$/}onInput(i,c){return!this.regexp.test(i)||i.length>10?{display:c,value:c}
1:{display:i,value:i}}onBlur(i,c){return this.addZeroNumbersToAccountNumber(i)}addZeroNumbersToAccountNumber(i){let c=i;for(;c?.length<10;)c=`0${c}`;return{display:c,value:c}}}function w(r,i){if(1&r&&(e.TgZ(0,"div",3),e._UZ(1,"ar-form-field",4),e.qZA()),2&r){const c=e.oxw();e.xp6(1),e.Q6J("formFieldConfig",c.formConfiguration.subFields.bankName)("zIndex",7e3)}}function j(r,i){if(1&r&&(e.TgZ(0,"div",3),e._UZ(1,"ar-form-field",4),e.qZA()),2&r){const c=e.oxw();e.xp6(1),e.Q6J("formFieldConfig",c.formConfiguration.subFields.bankCodeValue)("zIndex",7e3)}}function z(r,i){if(1&r&&(e.TgZ(0,"div",3),e._UZ(1,"ar-form-field",4),e.qZA()),2&r){const c=e.oxw();e.xp6(1),e.Q6J("formFieldConfig",c.formConfiguration.subFields.bankNumber)("zIndex",7e3)}}let X=(()=>{const i=class extends R.u{constructor(t,n,a){super(t),this.translateService=n,this.dictionaryStoreService=a}ngOnChanges(t){this.updateBankForm(),super.ngOnChanges(t)}preparePaymentMethodOptions(t){let n=t;const a=this.policy?.paymentMethod;return a!==g.X.VIPPS_MOBILEPAY&&(n=t.filter(s=>s.value!==g.X.VIPPS_MOBILEPAY)),n.forEach(s=>{s.label=this.dictionaryStoreService.translateCode(s.value,"PaymentMethod")}),n.length<2&&a===g.X.GIRO&&n.unshift({value:g.X.GIRO,label:this.dictionaryStoreService.translateCode(g.X.GIRO,"PaymentMethod")}),n}preparePaymentFrequencyOptions(t){return t.map(n=>{n.label=this.dictionaryStoreService.translateCode(n.value,"InstallmentDefinition")}),t}getFormMetadata(){return{type:m.E.GROUP,subFields:{paymentMethod:{name:"paymentMethod",label:this.translateService.instant("MODEL.transaction.paymentMethod"),type:m.E.DROPDOWN,disabled:this.policy.paymentMethodOptions.length<2&&this.policy.paymentMethod!==g.X.GIRO,componentOptions:{options:this.preparePaymentMethodOptions(this.policy.paymentMethodOptions)},validators:[v.kI.required]},bankName:{name:"bankName",label:this.translateService.instant("MODEL.paymentBankAccount.bankName"),type:m.E.INPUTTEXT,validators:[S.d.requiredIf(()=>this.isPBSLocked)],validationErrors:{required:this.translateService.instant("MESSAGE.SHARED.validation.required",{field:this.translateService.instant("MODEL.paymentBankAccount.bankName")})}},bankCodeValue:{name:"bankCodeValue",label:this.translateService.instant("MODEL.paymentBankAccount.bankCodeValue"),type:m.E.INPUTTEXT,validators:[v.kI.pattern(/^\d{4}$/),S.d.requiredIf(()=>this.isPBSLocked)],validationErrors:{pattern:this.translateService.instant("MESSAGE.SHARED.validation.requiredLength",{"err.requiredLength":4}),required:this.translateService.instant("MESSAGE.SHARED.validation.required",{field:this.translateService.instant("MODEL.paymentBankAccount.bankCodeValue")})},componentOptions:{formatter:K.instance(),step:1}},bankNumber:{name:"bankNumber",label:this.translateService.instant("MODEL.paymentBankAccount.bankAccountNumber"),type:m.E.INPUTTEXT,validators:[S.d.requiredIf(()=>this.isPBSLocked),v.kI.pattern(Y.r.NUMBERS_ONLY)],validationErrors:{required:this.translateService.instant("MESSAGE.SHARED.validation.required",{field:this.translateService.instant("MODEL.paymentBankAccount.bankAccountNumber")})},componentOptions:{formatter:q.instance(),step:1}},installmentDefinitionCode:{name:"installmentDefinitionCode",label:this.translateService.instant("MODEL.policy.installmentDefinitionCode"),type:m.E.DROPDOWN,disabled:this.policy.paymentFrequencyOptions.length<2,componentOptions:{options:this.preparePaymentFrequencyOptions(this.policy.paymentFrequencyOptions)},validators:[v.kI.required]},forceCreateRefund:{name:"forceCreateRefund",label:"MODEL.transaction.forceCreateRefund",type:m.E.CHECKBOX,styleClass:"filter-checkbox"}}}}updateBankForm(){this.form?.controls.bankName.updateValueAndValidity(),this.form?.controls.bankNumber.updateValueAndValidity(),this.form?.controls.bankCodeValue.updateValueAndValidity()}};let r=i;return i.\u0275fac=function(n){return new(n||i)(e.Y36(M.r),e.Y36(b.sK),e.Y36(J.e))},i.\u0275cmp=e.Xpm({type:i,selectors:[["ddi-update-payment-form"]],inputs:{policy:"policy",isPBSLocked:"isPBSLocked"},features:[e.qOj,e.TTD],decls:16,vars:9,consts:[[1,"ui-g-1"],[1,"ui-g-10","ui-fluid"],[2,"font-weight","600","color","red","text-align","center","padding","15px"],[1,"filter-container-labeled"],[3,"formFieldConfig","zIndex"],["class","filter-container-labeled",4,"ngIf"]],template:function(n,a){1&n&&(e._UZ(0,"div",0),e.TgZ(1,"div",1)(2,"div",2),e._uU(3," The recalculated payment plan will be applied from the start date of the next unposted installment. "),e._UZ(4,"br"),e._uU(5,' If you want to change it right away and refund paid premium, then enable the \u201cForce new installment plan immediately" option. '),e.qZA(),e.TgZ(6,"div",3),e._UZ(7,"ar-form-field",4),e.qZA(),e.YNc(8,w,2,2,"div",5),e.YNc(9,j,2,2,"div",5),e.YNc(10,z,2,2,"div",5),e.TgZ(11,"div",3),e._UZ(12,"ar-form-field",4),e.qZA(),e.TgZ(13,"div",3),e._UZ(14,"ar-form-field",4),e.qZA()(),e._UZ(15,"div",0)),2&n&&(e.xp6(7),e.Q6J("formFieldConfig",a.formConfiguration.subFields.paymentMethod)("zIndex",7e3),e.xp6(1),e.Q6J("ngIf",a.isPBSLocked),e.xp6(1),e.Q6J("ngIf",a.isPBSLocked),e.xp6(1),e.Q6J("ngIf",a.isPBSLocked),e.xp6(2),e.Q6J("formFieldConfig",a.formConfiguration.subFields.installmentDefinitionCode)("zIndex",7e3),e.xp6(2),e.Q6J("formFieldConfig",a.formConfiguration.subFields.forceCreateRefund)("zIndex",7e3))},dependencies:[L.O5,x.h],encapsulation:2}),r})();var _=o(68307);const H=["updatePaymentFormComponent"];let W=(()=>{const i=class{constructor(t,n,a){this.transactionService=t,this.reportService=n,this.translateService=a,this.acceptDisabledChange=new u.xQ,this.rejectDisabledChange=new u.xQ,this.dataChange=new u.xQ,this.accept=!1,this.isPBSLocked=!1}ngOnInit(){this.acceptDisabledChange.next(this.accept)}ngOnDestroy(){this.acceptDisabledChange.next(!0)}ngAfterViewInit(){this.fillForm(this.updatePaymentFormComponent.form.controls),this.updatePaymentFormComponent.form.valueChanges.subscribe(t=>{this.accept=this.areDataChanged(t)&&this.isBankInfoFormValid(),setTimeout(()=>this.acceptDisabledChange.next(this.accept),0)}),this.updatePaymentFormComponent.form.controls.paymentMethod.valueChanges.subscribe(t=>{this.checkForPBSMandate(t)}),this.acceptDisabledChange.next(this.accept)}getAcceptDisabledChangeObservable(){return this.acceptDisabledChange.asObservable()}getRejectDisabledChangeObservable(){return this.rejectDisabledChange.asObservable()}getDataTransferObservable(){return this.dataChange.asObservable()}fillForm(t){t&&(t.paymentMethod.setValue(this.inputData.paymentMethod),t.installmentDefinitionCode.setValue(this.inputData.installmentDefinitionCode),void 0!==this.inputData.forceCreateRefund?t.forceCreateRefund.setValue(this.inputData.forceCreateRefund):(t.forceCreateRefund.setValue(!1),this.inputData.forceCreateRefund=!1))}areDataChanged(t){return void 0!==t.paymentMethod&&this.inputData.paymentMethod!==t.paymentMethod||void 0!==t.installmentDefinitionCode&&this.inputData.installmentDefinitionCode!==t.installmentDefinitionCode}isBankInfoFormValid(){return this.updatePaymentFormComponent.form.valid}checkForPBSMandate(t){const n=this.updatePaymentFormComponent.policy?.policyMembers[
10].customerId;t===g.X.PBS&&this.transactionService.searchActivePBS(n.toString()).then(a=>{this.isPBSLocked=!a.getListData().length}).catch(()=>{this.reportService.errorMessage("Error",this.translateService.instant("MESSAGE.error.standardErrorDetails")),this.isPBSLocked=!1}),this.isPBSLocked=!1}};let r=i;return i.\u0275fac=function(n){return new(n||i)(e.Y36(_.p),e.Y36(y.r),e.Y36(b.sK))},i.\u0275cmp=e.Xpm({type:i,selectors:[["ddi-confirm-update-payment"]],viewQuery:function(n,a){if(1&n&&e.Gf(H,5),2&n){let s;e.iGM(s=e.CRH())&&(a.updatePaymentFormComponent=s.first)}},decls:2,vars:2,consts:[[3,"policy","isPBSLocked","validChange","modelChange"],["updatePaymentFormComponent",""]],template:function(n,a){1&n&&(e.TgZ(0,"ddi-update-payment-form",0,1),e.NdJ("validChange",function(l){return a.acceptDisabledChange.next(l)})("modelChange",function(l){return a.dataChange.next(l)}),e.qZA()),2&n&&e.Q6J("policy",a.inputData)("isPBSLocked",a.isPBSLocked)},dependencies:[X],encapsulation:2}),r})();var $=o(96413);class ee{constructor(i,c,t,n,a){this.partyId=i,this.registrationNo=c,this.debtorsCPRCVRNo=t,this.bankAccountNumber=n,this.bankName=a}}var D=o(72492);class te extends $.g{constructor(i,c,t,n){super(),this.createPBS=new ee(t,i.bankCodeValue,n,i.bankNumber,i.bankName),this.paymentData={paymentMethod:i.paymentMethod,installmentDefinitionCode:i.installmentDefinitionCode,policyNumber:c.policyNumber,forceCreateRefund:i.forceCreateRefund?D.l.YES:D.l.NO},this.policy=c,this.partyId=t,this.personalNumber=n}}let ne=(()=>{const i=class{constructor(t,n,a,s){this.adminGroupRestService=t,this.transactionService=n,this.reportService=a,this.translateService=s}handlePaymentUpdate(t,n){return this.resolve=n,t.createPBS.bankAccountNumber?this.createPBS(t):this.updatePayment(t)}createPBS(t){return this.transactionService.createPBS(t.createPBS).then(()=>this.updatePaymentWithNewPBS(t)).catch(()=>(this.reportService.errorMessage("MESSAGE.SHARED.type.ERROR",this.translateService.instant("MESSAGE.error.standardErrorDetails")),!1))}updatePayment(t){return this.adminGroupRestService.updatePayment(t.paymentData).then(n=>(this.resolve(n.getData()),!0)).catch(n=>(this.reportService.standardErrorMessage(n),!1))}updatePaymentWithNewPBS(t){return this.transactionService.searchActivePBS(t.partyId).then(()=>this.updatePayment(t)).catch(n=>(this.reportService.standardErrorMessage(n),!1))}};let r=i;return i.\u0275fac=function(n){return new(n||i)(e.LFG(I.J),e.LFG(_.p),e.LFG(y.r),e.LFG(b.sK))},i.\u0275prov=e.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),r})(),ie=(()=>{const i=class{constructor(t,n,a,s){this.adminGroupRestService=t,this.reportService=n,this.translateService=a,this.transactionPbsService=s}cancelWithConfirmAdminGroup(t,n,a,s){return new Promise((l,h)=>{this.reportService.confirmMessage({text:this.translateService.instant("ContractDetails"!==a?"PAGE.BACKOFFICE.globalSearch.confirmation":"PAGE.BACKOFFICE.globalSearch.confirmationCancelContract",{action:d.CANCEL,policyId:t.policyNumber,customerName:n||"",customerLastName:""}),accept:f=>{const F={cancelDate:f.terminationReason===p.STANDARD_TERMINATION?null:f.effectiveDate,cancelReason:f.terminationReason,actionFee:f.terminationFee,policyNumber:t.policyNumber,skipDocuments:f.skipDocuments?D.l.YES:D.l.NO,info:"",objectNo:s};let O;switch(a){case"IndividualPolicyDetailsProxyDTO":O=this.adminGroupRestService.cancelIndividualDetailsPolicyAction(F);break;case"ContractDetails":O=this.adminGroupRestService.cancelContract(F,t.policyNo);break;default:O=this.adminGroupRestService.cancelIndividualPolicyAction(F)}return O.then(P=>(l(P.getData()),this.reportService.successMessage("MESSAGE.SHARED.type.SUCCESS","MESSAGE.success.cancelPolicy"),!0)).catch(P=>(this.reportService.standardErrorMessage(P),!1))},reject:()=>{h("")},insideComponent:A,componentInputData:t})})}reinstateWithConfirm(t){return new Promise((n,a)=>{this.reportService.confirmMessage({text:this.translateService.instant("PAGE.BACKOFFICE.globalSearch.confirmation",{action:d.REINSTATE,policyId:t.policyNumber,customerName:t.policyMembers[0].customerName||"",customerLastName:""}),accept:s=>this.adminGroupRestService.reinstatePolicy({reinstateReason:s.reinstateReason,policyNumber:t.policyNumber,skipDocuments:s.skipDocuments?D.l.YES:D.l.NO}).then(h=>(n(h.getData()),!0)).catch(h=>(this.reportService.standardErrorMessage(h),!1)),reject:()=>{a()},insideComponent:A,componentInputData:t})})}reinstateWithConfirmPolicyMember(t,n){return new Promise((a,s)=>{this.reportService.confirmMessage({text:this.translateService.instant("PAGE.BACKOFFICE.globalSearch.confirmation",{action:d.REINSTATE,policyId:n,customerName:t.customerName||"",customerLastName:""}),accept:l=>this.adminGroupRestService.reinstatePolicy({reinstateReason:l.reinstateReason,policyNumber:n,objectNo:t.objectNo}).then(f=>(a(f.getData()),!0)).catch(f=>(this.reportService.standardErrorMessage(f),!1)),reject:()=>{s()},insideComponent:A,componentInputData:t})})}cancelWithConfirmPolicyMember(t,n){return t.policyNumber=n,new Promise((a,s)=>{this.reportService.confirmMessage({text:this.translateService.instant("PAGE.BACKOFFICE.globalSearch.confirmation",{action:d.CANCEL,policyId:n,customerName:t.customerName||"",customerLastName:""}),accept:l=>this.adminGroupRestService.cancelIndividualPolicyAction({cancelDate:l.terminationReason===p.STANDARD_TERMINATION?null:l.effectiveDate,cancelReason:l.terminationReason,actionFee:l.terminationFee,policyNumber:n,info:"",objectNo:t.objectNo}).then(f=>(a(f.getData()),!0)).catch(f=>(this.reportService.standardErrorMessage(f),!1)),reject:()=>{s("")},insideComponent:A,componentInputData:t})})}updatePayment(t,n,a){return new Promise((s,l)=>{this.reportService.confirmMessage({text:this.translateService.instant("PAGE.BACKOFFICE.globalSearch.confirmation",{action:"update payment options",policyId:t.policyNumber,customerName:t.policyMembers[
10].customerName||"",customerLastName:""}),accept:h=>{const f=new te(h,t,n,a);return this.transactionPbsService.handlePaymentUpdate(f,s)},reject:()=>{l()},insideComponent:W,componentInputData:t})})}};let r=i;return i.\u0275fac=function(n){return new(n||i)(e.LFG(I.J),e.LFG(y.r),e.LFG(b.sK),e.LFG(ne))},i.\u0275prov=e.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),r})()}}]);

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.