1"use strict";(self.webpackChunkadressandring_web=self.webpackChunkadressandring_web||[]).push([[888],{888:(R,P,s)=>{s.r(P),s.d(P,{MoveAndForwardAddPersonsComponent:()=>b});var t=s(8431),m=s(2534),v=s(7229),g=s(9645),f=s(6358),h=s(7933),C=s(7638),D=s(5381),d=s(6233),I=s(4460),M=s(8503),e=s(539),S=s(7480),T=s(1439);function y(l,x){1&l&&(e.j41(0,"div"),e.nrm(1,"app-loading"),e.k0s())}function O(l,x){if(1&l){const p=e.RV6();e.qex(0),e.j41(1,"div",2)(2,"a",3),e.bIt("click",function(){e.eBV(p);const _=e.XpG(2);return e.Njj(_.onlyMeMoving())}),e.k0s()(),e.j41(3,"app-add-persons",4),e.bIt("formChanged",function(_){e.eBV(p);const E=e.XpG(2);return e.Njj(E.onFormChanged(_))}),e.k0s(),e.bVm()}if(2&l){const p=e.XpG().ngIf;e.R7$(2),e.Y8G("translate","product.general.addPersons.onlyMe"),e.R7$(),e.Y8G("context",p.context)}}function G(l,x){if(1&l&&(e.qex(0),e.DNE(1,y,2,0,"div",1)(2,O,4,2,"ng-container",1),e.bVm()),2&l){const p=x.ngIf;e.R7$(),e.Y8G("ngIf",p.isLoading),e.R7$(),e.Y8G("ngIf",p.isLoaded)}}let b=(()=>{class l extends v.K{constructor(p,u,_,E){super(p),this.router=u,this.store=_,this.addPersonStore=E,this.vm$=this.addPersonStore.vm$,this.addPersonsContext={personalNumber:this.currentState.responsiblePerson.personalNumber,persons:this.currentState.persons,fromAddress:this.currentState.moveRequested.origin,toAddress:this.currentState.moveRequested.destination,starting:this.currentState.moveRequested.dateOfMove,ending:g(this.currentState.moveRequested.dateOfMove).add(1,"year").toDate(),productCode:this.currentState.productCode,personsAtSameNra:null},this.addPersonStore.loadContext$(this.addPersonsContext)}onFormChanged(p){this.canContinue=p.isValid&&p.applicants.length>0,p.isValid&&this.dispatch(p.applicants)}onlyMeMoving(){this.dispatch([]),this.router.navigate([this.stepData.nextPath])}dispatch(p){this.store.dispatch((0,f.Nn)({persons:p})),this.store.dispatch((0,m.tq)({value:(p.length+1).toString(),labelKey:"product.move.addPersons.stepLabel",routeIndex:this.stepData.index}))}static{this.\u0275fac=function(u){return new(u||l)(e.rXU(S.nX),e.rXU(S.Ix),e.rXU(T.il),e.rXU(h.C))}}static{this.\u0275cmp=e.VBU({type:l,selectors:[["app-move-and-forward-add-persons"]],features:[e.Jv_([h.C]),e.Vt3],decls:3,vars:5,consts:[[3,"canContinue","nextPath"],[4,"ngIf"],[1,"d-flex","justify-content-center","mb-3"],["routerLink","",1,"btn","btn-primary",3,"click","translate"],[3,"formChanged","context"]],template:function(u,_){1&u&&(e.j41(0,"app-process-step",0),e.DNE(1,G,3,2,"ng-container",1),e.nI1(2,"async"),e.k0s()),2&u&&(e.Y8G("canContinue",_.canContinue)("nextPath",_.stepData.nextPath),e.R7$(),e.Y8G("ngIf",e.bMT(2,3,_.vm$)))},dependencies:[C.D,D.b,d.q,I.bT,I.Jj,t.iI,t.Wk,M.h,M.Mm],encapsulation:2})}}return l})()},6533:(R,P,s)=>{s.d(P,{D5:()=>g,y8:()=>v});var t=s(1439);const m=(0,t.UX)("analytics"),v=(0,t.Mz)(m,r=>r.accumulated),g=(0,t.Mz)(m,r=>r.quoteEvent)},7229:(R,P,s)=>{s.d(P,{K:()=>C});var t=s(7480),m=s(1439),v=s(5240),g=s(8666),r=s(539),f=s(6533),h=s(9074);class C{constructor(d){this.route=d,this._gtmStore=(0,r.WQX)(m.il),this._gtmRouter=(0,r.WQX)(t.Ix),this.gtmContext=(0,h.ot)(this._gtmStore.select(f.y8)),this.currentState=d.snapshot.data.state,this.currentUser=d.snapshot.data.user,this.stepData=d.snapshot.data.stepData,this.trackStep()}trackStep(){const d=this._gtmRouter.url.split("/").filter(Boolean);this._gtmStore.dispatch((0,v.bp)({eventType:g.D.FUNNEL_STEPS,payload:{...this.gtmContext(),index:this.stepData.index,customerType:d.includes("foretag")?"organization":"private",step_name:d[d.length-1],product:d[d.length-2]}}))}}},7638:(R,P,s)=>{s.d(P,{D:()=>E});var t=s(539),m=s(8431);class v{get CurrentPath(){return this.route.snapshot.routeConfig.path}get CurrentRouteIndex(){return this.router.config.findIndex(i=>i.path==this.CurrentPath)}constructor(i,o){this.route=i,this.router=o,this.stepData=i.snapshot.data.stepData,this.setupHistorySteps(),this.setupDefaultNextPath()}navigateNext(i){this.router.navigate([this.nextPath],i)}setNextPath(i){return this.getPath(i)}setupHistorySteps(){const i=this.route.snapshot.data.historySteps;this.historySteps=(i?i.steps:[]).filter(c=>c.routeId<(this.stepData.index||this.CurrentRouteIndex))}setupDefaultNextPath(){return this.setNextPath(1)}getPath(i){return this.router.config[this.CurrentRouteIndex+i].path}}var g=s(2526),r=s(2394),f=s(6350),h=s(8503),C=s(4460);let D=(()=>{class n{static{this.\u0275fac=function(c){return new(c||n)}}static{this.\u0275cmp=t.VBU({type:n,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(c,a){1&c&&(t.j41(0,"a",0),t.nrm(1,"i",1),t.EFF(2),t.nI1(3,"translate"),t.k0s()),2&c&&(t.Y8G("ngClass",a.cssClass),t.R7$(2),t.SpI("",t.bMT(3,2,a.label),"\n"))},dependencies:[h.h,h.D9,C.YU],encapsulation:2,changeDetection:0})}}return n})();var d=s(7480),I=s(1439);const M=["*"],e=n=>({"step--wide":n}),S=n=>({"mb-4 mb-lg-6":n});function T(n,i){if(1&n&&(t.j41(0,"div",7)(1,"a",8),t.nrm(2,"span",9)(3,"i",10),t.k0s()()),2&n){const o=t.XpG();t.R7$(),t.Y8G("routerLink",o.previousPath),t.R7$(),t.Y8G("translate","general.back")}}function y(n,i){1&n&&t.nrm(0,"span",9),2&n&&t.Y8G("translate","general.showPrevious")}function O(n,i){1&n&&t.nrm(0,"span",9),2&n&&t.Y8G("translate","general.hidePrevious")}function G(n,i){if(1&n){const o=t.RV6();t.j41(0,"div",7)(1,"button",11),t.bIt("click",function(){t.eBV(o);const a=t.XpG();return t.Njj(a.showPrevious())}),t.DNE(2,y,1,1,"span",12)(3,O,1,1,"span",12),t.nrm(4,"i",13),t.k0s()()}if(2&n){const o=t.XpG();t.R7$(2),t.Y8G("ngIf",!o.showProcessHistory),t.R7$(),t.Y8G("ngIf",o.showProcessHistory),t.R7$(),t.Y8G("@rotateIcon",o.showProcessHistory?"down":"up")}}function b(n,i){if(1&n&&t.nrm(0,"h1",17),2&n){const o=t.XpG(2);t.Y8G("translate",o.stepData.heading.title)}}function l(n,i){if(1&n&&(t.nrm(0,"p",18),t.nI1(1,"translate")),2&n){const o=t.XpG(2);t.Y8G("innerHTML",t.bMT(1,1,o.stepData.heading.intro),t.npT)}}
1function x(n,i){if(1&n&&(t.j41(0,"div",14),t.DNE(1,b,1,1,"h1",15)(2,l,2,3,"p",16),t.k0s()),2&n){const o=t.XpG();t.Y8G("ngClass",t.eq3(3,S,(null==o.stepData.heading?null:o.stepData.heading.title)&&(null==o.stepData.heading?null:o.stepData.heading.intro))),t.R7$(),t.Y8G("ngIf",(null==o.stepData.heading?null:o.stepData.heading.title)&&!o.hideHeading),t.R7$(),t.Y8G("ngIf",(null==o.stepData.heading?null:o.stepData.heading.intro)&&!o.hideIntro)}}function p(n,i){1&n&&(t.qex(0),t.j41(1,"div",19),t.nrm(2,"a",20),t.k0s(),t.bVm()),2&n&&(t.R7$(2),t.Y8G("routerLink","/")("translate","general.close"))}function u(n,i){if(1&n){const o=t.RV6();t.j41(0,"app-process-next-button",21),t.bIt("click",function(){t.eBV(o);const a=t.XpG();return t.Njj(a.onNextStepClick())}),t.k0s()}if(2&n){const o=t.XpG();t.Y8G("label",o.nextLabel)("cssClass",o.nextStepClass)}}var _=function(n){return n[n.ENTER=13]="ENTER",n}(_||{});let E=(()=>{class n extends v{keyEvent(o){o.keyCode===_.ENTER&&this.canContinue&&this.onNextStepClick()}constructor(o,c,a){super(o,c),this.store=a,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(c){return new(c||n)(t.rXU(d.nX),t.rXU(d.Ix),t.rXU(I.il))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["app-process-step"]],hostBindings:function(c,a){1&c&&t.bIt("keyup",function(A){return a.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:M,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(c,a){1&c&&(t.NAR(),t.j41(0,"div",0)(1,"div",1),t.nrm(2,"app-process-history",2),t.k0s(),t.DNE(3,T,4,2,"div",3)(4,G,5,3,"div",3)(5,x,3,5,"div",4),t.SdG(6),t.DNE(7,p,3,2,"ng-container",5)(8,u,1,2,"app-process-next-button",6),t.k0s()),2&c&&(t.Y8G("ngClass",t.eq3(8,e,a.wideStep)),t.R7$(),t.Y8G("@openClose",a.showProcessHistory?"open":"closed"),t.R7$(),t.Y8G("steps",a.historySteps),t.R7$(),t.Y8G("ngIf",a.previousPath),t.R7$(),t.Y8G("ngIf",!a.previousPath&&!a.hideProcessHistory),t.R7$(),t.Y8G("ngIf",(null==a.stepData.heading?null:a.stepData.heading.title)||(null==a.stepData.heading?null:a.stepData.heading.intro)),t.R7$(2),t.Y8G("ngIf",a.closable),t.R7$(),t.Y8G("ngIf",a.canContinue))},dependencies:[f.z,m.iI,m.Wk,h.h,h.D9,h.Mm,C.bT,C.YU,D],encapsulation:2,data:{animation:[(0,r.hZ)("rotateIcon",[(0,r.wk)("up",(0,r.iF)({transform:"rotate(0deg)"})),(0,r.wk)("down",(0,r.iF)({transform:"rotate(-180deg)"})),(0,r.kY)("up <=> down",(0,r.i0)("0.3s ease-in-out"))]),(0,r.hZ)("openClose",[(0,r.wk)("closed",(0,r.iF)({height:"0px"})),(0,r.wk)("open",(0,r.iF)({height:"*"})),(0,r.kY)("open <=> closed",[(0,r.i0)("0.3s ease-in-out")])])]},changeDetection:0})}}return n})()}}]);
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.