1"use strict";(self.webpackChunkadressandring_web=self.webpackChunkadressandring_web||[]).push([[2419],{2419:(v,h,n)=>{n.r(h),n.d(h,{EstateToAddressComponent:()=>P});var t=n(6358),u=n(2534),m=n(7229),g=n(7638),a=n(9325),c=n(539),_=n(7480),f=n(1439);let P=(()=>{class i extends m.K{constructor(l,d){super(l),this.store=d,this.toAddressContext={personalNumber:this.currentState.responsiblePerson?.personalNumber,fromAddress:this.currentState.forwardingRequested?.origin,toAddress:this.currentState.forwardingRequested?.destination,starting:this.currentState.forwardingRequested?.servicePeriod.starting,ending:this.currentState.forwardingRequested?.servicePeriod.ending,careOf:null,productCode:this.currentState.productCode}}onFormChanged(l){if(this.isValid=l.isValid,this.isValid){this.store.dispatch((0,t.yE)({destination:l.address}));let d=l.address.aptno?l.address.fullAddress.replace(",",` LGH ${l.address.aptno},`):l.address.fullAddress;d=l.address.careOf?"C/O "+l.address.careOf+" "+d:d,this.store.dispatch((0,u.tq)({value:d,labelKey:"product.estate.toAddress.stepLabel",routeIndex:this.stepData.index}))}}static{this.\u0275fac=function(d){return new(d||i)(c.rXU(_.nX),c.rXU(f.il))}}static{this.\u0275cmp=c.VBU({type:i,selectors:[["app-estate-to-address"]],features:[c.Vt3],decls:2,vars:4,consts:[[3,"canContinue","nextPath"],[3,"formChanged","context","useCareOf"]],template:function(d,C){1&d&&(c.j41(0,"app-process-step",0)(1,"app-to-address",1),c.bIt("formChanged",function(x){return C.onFormChanged(x)}),c.k0s()()),2&d&&(c.Y8G("canContinue",C.isValid)("nextPath",C.stepData.nextPath),c.R7$(),c.Y8G("context",C.toAddressContext)("useCareOf",!0))},dependencies:[g.D,a.Z],encapsulation:2})}}return i})()},6533:(v,h,n)=>{n.d(h,{D5:()=>g,y8:()=>m});var t=n(1439);const u=(0,t.UX)("analytics"),m=(0,t.Mz)(u,a=>a.accumulated),g=(0,t.Mz)(u,a=>a.quoteEvent)},7229:(v,h,n)=>{n.d(h,{K:()=>f});var t=n(7480),u=n(1439),m=n(5240),g=n(8666),a=n(539),c=n(6533),_=n(9074);class f{constructor(i){this.route=i,this._gtmStore=(0,a.WQX)(u.il),this._gtmRouter=(0,a.WQX)(t.Ix),this.gtmContext=(0,_.ot)(this._gtmStore.select(c.y8)),this.currentState=i.snapshot.data.state,this.currentUser=i.snapshot.data.user,this.stepData=i.snapshot.data.stepData,this.trackStep()}trackStep(){const i=this._gtmRouter.url.split("/").filter(Boolean);this._gtmStore.dispatch((0,m.bp)({eventType:g.D.FUNNEL_STEPS,payload:{...this.gtmContext(),index:this.stepData.index,customerType:i.includes("foretag")?"organization":"private",step_name:i[i.length-1],product:i[i.length-2]}}))}}},7638:(v,h,n)=>{n.d(h,{D:()=>O});var t=n(539),u=n(8431);class m{get CurrentPath(){return this.route.snapshot.routeConfig.path}get CurrentRouteIndex(){return this.router.config.findIndex(r=>r.path==this.CurrentPath)}constructor(r,s){this.route=r,this.router=s,this.stepData=r.snapshot.data.stepData,this.setupHistorySteps(),this.setupDefaultNextPath()}navigateNext(r){this.router.navigate([this.nextPath],r)}setNextPath(r){return this.getPath(r)}setupHistorySteps(){const r=this.route.snapshot.data.historySteps;this.historySteps=(r?r.steps:[]).filter(p=>p.routeId<(this.stepData.index||this.CurrentRouteIndex))}setupDefaultNextPath(){return this.setNextPath(1)}getPath(r){return this.router.config[this.CurrentRouteIndex+r].path}}var g=n(2526),a=n(2394),c=n(6350),_=n(8503),f=n(4460);let P=(()=>{class e{static{this.\u0275fac=function(p){return new(p||e)}}static{this.\u0275cmp=t.VBU({type:e,selectors:[["app-process-next-button"]],inputs:{path:"path",url:"url",show:"show",label:"label",cssClass:"cssClass",disabled:"disabled"},decls:4,vars:4,consts:[["id","next-button",1,"next-button",3,"ngClass"],[1,"icon","icon-angle-down","icon-xs","me-2"]],template:function(p,o){1&p&&(t.j41(0,"a",0),t.nrm(1,"i",1),t.EFF(2),t.nI1(3,"translate"),t.k0s()),2&p&&(t.Y8G("ngClass",o.cssClass),t.R7$(2),t.SpI("",t.bMT(3,2,o.label),"\n"))},dependencies:[_.h,_.D9,f.YU],encapsulation:2,changeDetection:0})}}return e})();var i=n(7480),I=n(1439);const l=["*"],d=e=>({"step--wide":e}),C=e=>({"mb-4 mb-lg-6":e});function E(e,r){if(1&e&&(t.j41(0,"div",7)(1,"a",8),t.nrm(2,"span",9)(3,"i",10),t.k0s()()),2&e){const s=t.XpG();t.R7$(),t.Y8G("routerLink",s.previousPath),t.R7$(),t.Y8G("translate","general.back")}}function x(e,r){1&e&&t.nrm(0,"span",9),2&e&&t.Y8G("translate","general.showPrevious")}function S(e,r){1&e&&t.nrm(0,"span",9),2&e&&t.Y8G("translate","general.hidePrevious")}function T(e,r){if(1&e){const s=t.RV6();t.j41(0,"div",7)(1,"button",11),t.bIt("click",function(){t.eBV(s);const o=t.XpG();return t.Njj(o.showPrevious())}),t.DNE(2,x,1,1,"span",12)(3,S,1,1,"span",12),t.nrm(4,"i",13),t.k0s()()}if(2&e){const s=t.XpG();t.R7$(2),t.Y8G("ngIf",!s.showProcessHistory),t.R7$(),t.Y8G("ngIf",s.showProcessHistory),t.R7$(),t.Y8G("@rotateIcon",s.showProcessHistory?"down":"up")}}function R(e,r){if(1&e&&t.nrm(0,"h1",17),2&e){const s=t.XpG(2);t.Y8G("translate",s.stepData.heading.title)}}function y(e,r){if(1&e&&(t.nrm(0,"p",18),t.nI1(1,"translate")),2&e){const s=t.XpG(2);t.Y8G("innerHTML",t.bMT(1,1,s.stepData.heading.intro),t.npT)}}function b(e,r){if(1&e&&(t.j41(0,"div",14),t.DNE(1,R,1,1,"h1",15)(2,y,2,3,"p",16),t.k0s()),2&e){const s=t.XpG();t.Y8G("ngClass",t.eq3(3,C,(null==s.stepData.heading?null:s.stepData.heading.title)&&(null==s.stepData.heading?null:s.stepData.heading.intro))),t.R7$(),t.Y8G("ngIf",(null==s.stepData.heading?null:s.stepData.heading.title)&&!s.hideHeading),t.R7$(),t.Y8G("ngIf",(null==s.stepData.heading?null:s.stepData.heading.intro)&&!s.hideIntro)}}function G(e,r){1&e&&(t.qex(0),t.j41(1,"div",19),t.nrm(2,"a",20),t.k0s(),t.bVm()),2&e&&(t.R7$(2),t.Y8G("routerLink","/")("translate","general.close"))}function M(e,r){if(1&e){const s=t.RV6();t.j41(0,"app-process-next-button",21),t.bIt("click",function(){t.eBV(s);const o=t.XpG();return t.Njj(o.onNextStepClick())}),t.k0s()}if(2&e){const s=t.XpG();t.Y8G("label",s.nextLabel)("cssClass",s.nextStepClass)}}
1var D=function(e){return e[e.ENTER=13]="ENTER",e}(D||{});let O=(()=>{class e extends m{keyEvent(s){s.keyCode===D.ENTER&&this.canContinue&&this.onNextStepClick()}constructor(s,p,o){super(s,p),this.store=o,this.nextLabel="general.next",this.wideStep=!1,this.onNextStepClicked=new t.bkB,this.showProcessHistory=!1}showPrevious(){this.showProcessHistory=!this.showProcessHistory}onNextStepClick(){this.store.dispatch((0,g.Ip)({reversed:!1})),this.activateNextClickEvent?this.onNextStepClicked.emit(!0):this.router.navigate([this.nextPath],{queryParamsHandling:"preserve"})}steppedInReversed(){this.store.dispatch((0,g.Ip)({reversed:!0}))}getAnimationParams(){return{enter_from:"100%",enter_to:"0%",leave_from:"0%",leave_to:"-100%"}}static{this.\u0275fac=function(p){return new(p||e)(t.rXU(i.nX),t.rXU(i.Ix),t.rXU(I.il))}}static{this.\u0275cmp=t.VBU({type:e,selectors:[["app-process-step"]],hostBindings:function(p,o){1&p&&t.bIt("keyup",function(A){return o.keyEvent(A)},!1,t.tSv)},inputs:{canContinue:"canContinue",nextPath:"nextPath",previousPath:"previousPath",stepValue:"stepValue",hideProcessHistory:"hideProcessHistory",hideHeading:"hideHeading",hideIntro:"hideIntro",nextLabel:"nextLabel",closable:"closable",wideStep:"wideStep",nextStepClass:"nextStepClass",activateNextClickEvent:"activateNextClickEvent"},outputs:{onNextStepClicked:"onNextStepClicked"},features:[t.Vt3],ngContentSelectors:l,decls:9,vars:10,consts:[["id","step",1,"step","pt-4","pt-lg-6","px-2","px-lg-0","pb-11",3,"ngClass"],[1,"overflow-hidden"],["id","steps",1,"d-block","mb-5",3,"steps"],["class","mb-4 mb-lg-6",4,"ngIf"],[3,"ngClass",4,"ngIf"],[4,"ngIf"],[3,"label","cssClass","click",4,"ngIf"],[1,"mb-4","mb-lg-6"],[1,"btn","btn-primary-tertiary","btn-icon-e
1nd",3,"routerLink"],[3,"translate"],[1,"icon","icon-angle-up","d-inline-flex"],[1,"btn","btn-primary-tertiary","btn-icon-end",3,"click"],[3,"translate",4,"ngIf"],[1,"icon","icon-angle-down"],[3,"ngClass"],["class","heading-large mb-1",3,"translate",4,"ngIf"],[3,"innerHTML",4,"ngIf"],[1,"heading-large","mb-1",3,"translate"],[3,"innerHTML"],[1,"d-flex","justify-content-center","mt-6"],[1,"btn","btn-primary-tertiary",3,"routerLink","translate"],[3,"click","label","cssClass"]],template:function(p,o){1&p&&(t.NAR(),t.j41(0,"div",0)(1,"div",1),t.nrm(2,"app-process-history",2),t.k0s(),t.DNE(3,E,4,2,"div",3)(4,T,5,3,"div",3)(5,b,3,5,"div",4),t.SdG(6),t.DNE(7,G,3,2,"ng-container",5)(8,M,1,2,"app-process-next-button",6),t.k0s()),2&p&&(t.Y8G("ngClass",t.eq3(8,d,o.wideStep)),t.R7$(),t.Y8G("@openClose",o.showProcessHistory?"open":"closed"),t.R7$(),t.Y8G("steps",o.historySteps),t.R7$(),t.Y8G("ngIf",o.previousPath),t.R7$(),t.Y8G("ngIf",!o.previousPath&&!o.hideProcessHistory),t.R7$(),t.Y8G("ngIf",(null==o.stepData.heading?null:o.stepData.heading.title)||(null==o.stepData.heading?null:o.stepData.heading.intro)),t.R7$(2),t.Y8G("ngIf",o.closable),t.R7$(),t.Y8G("ngIf",o.canContinue))},dependencies:[c.z,u.iI,u.Wk,_.h,_.D9,_.Mm,f.bT,f.YU,P],encapsulation:2,data:{animation:[(0,a.hZ)("rotateIcon",[(0,a.wk)("up",(0,a.iF)({transform:"rotate(0deg)"})),(0,a.wk)("down",(0,a.iF)({transform:"rotate(-180deg)"})),(0,a.kY)("up <=> down",(0,a.i0)("0.3s ease-in-out"))]),(0,a.hZ)("openClose",[(0,a.wk)("closed",(0,a.iF)({height:"0px"})),(0,a.wk)("open",(0,a.iF)({height:"*"})),(0,a.kY)("open <=> closed",[(0,a.i0)("0.3s ease-in-out")])])]},changeDetection:0})}}return e})()}}]);
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.