PageSourceSearch

https://www.energiedirect.nl/chunk-DN5MTuZ8.js

js energiedirect.nl collected 2026-10-05 18:26:07 UTC 27,070 bytes, 5 lines download raw bytes

1import {ds as J$1,i,dt as ne,du as S,j as g$2,dv as P,dw as de,dx as Y,dy as J$2,dz as se,dA as G,cr as xe,ct as oe,cu as Av,dB as ae,ci as F$1,dC as de$1,dD as ee$1,dE as oe$1,dF as c,dG as _$1,dH as Ve,dI as re,dJ as V,dK as nt,dL as Z,dM as R,dN as b,dO as Ne,dP as tt,dQ as Q,dR as qt,dS as W,cv as Sv,cw as Lv,cy as Z0,cz as J0,cA as Ss,cJ as qs,cG as $v,cH as Gv,cI as d,dT as qo$1,dU as _e$1,dV as ue,dW as fe$2,d as ct,bf as me}from'./chunk-CSpcGET_.js';import {o as ot,f as fe$1,j as jt,a as At,R as Rt}from'./chunk-Dli2UD91.js';import {m as mr,aE as g$1,aL as st,aM as rt,bW as lt,c8 as io$1,c0 as P$1,u,bO as _,aw as To$1,b$ as C$1,c9 as ne$1,ca as tK,aq as O$2,aT as we,ay as ut,bX as mo$1,bY as lo$1,c2 as Rn,c3 as Sn,c4 as Fn,c5 as Yt$1,R as Rl,bD as mb,J as Pt,as as it,cb as ce,G as s,P as Pc,aV as O$3,am as Sc$1,Q as Nn}from'./chunk-Be-9WVRD.js';import {aO as tr,aP as bn,Y as Yt,i as ee,g,b3 as _U,b5 as O$1,aR as G$1,aS as F,d as d1,n as zy,a as Ie$1,p as lt$1,M as yN,e as at,t as tf,x as xy,X as zd,a0 as mo$2,a2 as Wd,a7 as ho$1,a4 as nr,V as YF,a1 as Di,Z as Kd,aF as EC,aG as DC,ab as kr,a8 as Sc,ak as Iy,ad as Fr,aT as R3,ae as vU,aa as IS,af as E1,ac as t1,ag as C1,aC as Nn$1,ao as Nt,ah as b1,a5 as d1$1,b4 as w1,aZ as p1,au as VF,aU as BF,av as $F,aL as yy,aM as Yd,aD as n1,bm as DS,aJ as o1}from'./main-CYRAVWC7.js';import {$ as $a,f as dt,m as mt,W as Wa}from'./chunk-BGH9asDx.js';import'./chunk-BABTpi0f.js';var fe=(()=>{let t=class t{constructor(){this.stepper=ee.required(),this.submitState=ee.required(),this.formInteraction=zy();}};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=Yt({type:t,selectors:[["wl-insulation-order-form"]],inputs:{stepper:[1,"stepper"],submitState:[1,"submitState"]},outputs:{formInteraction:"formInteraction"},decls:5,vars:4,consts:[[1,"layout"],[1,"stepper"],[3,"data"],[3,"data","submitState"]],template:function(n,r){if(n&1&&(zd(0,"div",0)(1,"div",1),mo$2(2,"wl-address-data-step",2)(3,"wl-personal-data-step",2)(4,"wl-confirmation-step",3),Wd()()),n&2){let a=r.stepper();ho$1(2),nr("data",a.steps.addressStep),ho$1(),nr("data",a.steps.personalStep),ho$1(),nr("data",a.steps.confirmationStep)("submitState",r.submitState());}},dependencies:[jt,At,Rt],styles:[`.stepper[_ngcontent-%COMP%]{max-width:50rem;display:flex;flex-direction:column;gap:1rem;grid-area:stepper}
2/*# sourceMappingURL=insulation-order-form.component-L722NHXN.css.map */`],changeDetection:0});let e=t;return e})();function fo(e,t){e&1&&mo$2(0,"rfa-submit-error");}var he=(()=>{let t=class t{constructor(){this.formSubmit=zy(),this.secondaryButtonPressed=zy(),this.formInteraction=zy(),this.addressCheckState=ee.required(),this.form=ee.required(),this.title=ee.required(),this.primaryButtonText=ee.required(),this.secondaryButtonText=ee.required();}};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=Yt({type:t,selectors:[["wl-insulation-wizard"]],inputs:{addressCheckState:[1,"addressCheckState"],form:[1,"form"],title:[1,"title"],primaryButtonText:[1,"primaryButtonText"],secondaryButtonText:[1,"secondaryButtonText"]},outputs:{formSubmit:"formSubmit",secondaryButtonPressed:"secondaryButtonPressed",formInteraction:"formInteraction"},decls:13,vars:9,consts:[["slot","title","sessionReplay","capture"],[3,"ngSubmit","formInteraction","formGroup"],[3,"form"],[3,"control"],[1,"buttons"],["automationId","insulationWizardForm-submit",3,"submitState"],["variant","tertiary","sessionReplay","capture",3,"click"]],template:function(n,r){if(n&1){let a=YF();zd(0,"crnt-card")(1,"h3",0),Di(2),Wd(),zd(3,"form",1),Kd("ngSubmit",function(){return EC(a),DC(r.formSubmit.emit())})("formInteraction",function(){return EC(a),DC(r.formInteraction.emit())}),mo$2(4,"rfa-address",2)(5,"rfa-select",3)(6,"rfa-checkbox",3),zd(7,"div",4)(8,"rfa-submit",5),Di(9),Wd(),zd(10,"crnt-button",6),Kd("click",function(){return EC(a),DC(r.secondaryButtonPressed.emit())}),Di(11),Wd(),kr(12,fo,1,0,"rfa-submit-error"),Wd()()();}if(n&2){let a=r.form();ho$1(2),Sc(r.title()),ho$1(),nr("formGroup",a),ho$1(),nr("form",a.controls.address),ho$1(),nr("control",a.controls.buildingType),ho$1(),nr("control",a.controls.houseIsBought),ho$1(2),nr("submitState",r.addressCheckState()),ho$1(),Iy(" ",r.primaryButtonText()," "),ho$1(2),Iy(" ",r.secondaryButtonText()," "),ho$1(),Fr(r.addressCheckState().status==="ERROR"?12:-1);}},dependencies:[Rn,Sn,Fn,Yt$1,Z0,J0,Ss,qs,$v,Gv,Rl,mb,d,Pt],styles:[`h3[_ngcontent-%COMP%]{font-size:1.44rem}.buttons[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;gap:1rem}
3/*# sourceMappingURL=insulation-wizard.component-Y7D4QJ6J.css.map */`],changeDetection:0});let e=t;return e})();var no=(e,t,i,o)=>mo$1({toolName:o,steps:[],toolComplete:{selector:()=>{},onComplete:()=>({step:3,payload:{"type gebouw":i,producten:t.map(n=>ne.mapToCommerce(n)),[lo$1]:e}})}});function ve(e,t,i){return new fe$1({addressStep:{name:"Address step",form:ho(e),editable:false,analytics:{step:0,stepName:"address"}},personalStep:{name:"Personal step",form:Co(e),analytics:{step:1,stepName:"personal_details"}},confirmationStep:{name:"Confirmation step",form:vo(e),analytics:{step:2,stepName:"confirmation"}}},t&&i?{dataTracker:t,utils:i,name:e}:void 0)}function ho(e){return new P$1(Av(void 0,`${e} adres`))}function vo(e){return new P$1(Sv(void 0,`${e} bevestiging`))}function Co(e){return new P$1(F({},Lv(void 0,`${e} persoonlijke gegevens`)))}function io(e,t,i,o,n){return {type:"insulation",products:[{category:"insulation"}
3],consent:{dataUsage:e.confirmationDetails.allowDataUsage,promotion:e.confirmationDetails.allowPromotionalUpdates},context:{brand:n,channel:"Online",requestType:"Advies"},lead:{title:e.personalDetails.title,initials:e.personalDetails.name.initials,prefix:e.personalDetails.name.insertion||void 0,lastName:e.personalDetails.name.lastName,addresses:{communication:{postcode:e.addressDetails.postcode,houseNumber:e.addressDetails.houseNumber,houseNumberExtension:e.addressDetails.houseNumberAddition?.trim()||void 0,street:e.addressDetails.street,city:e.addressDetails.city}},phone:e.personalDetails.phone,email:e.personalDetails.email},metadata:{createdOn:new Date().toISOString(),source:"Online",environment:"Consument",referrer:i,leadTrackingId:"DirectOther",e2eTrackingId:o.trackingId??"",gclid:t.gclid??"",temperature:4,remarks:o.selectedProducts.map(r=>r.productType.value).join(",")||void 0}}}function yo(e,t){if(e&1&&(zd(0,"wl-content-section",0),mo$2(1,"wl-insulation-order-form",1),Wd()),e&2){let i=Nn$1();nr("id",i.id())("theme",i.theme())("title",i.title())("hasContext",!!i.context()),ho$1(),nr("stepper",i.stepper())("submitState",i.submitState());}}var ro=(()=>{let t=class t{constructor(){this.rendering=ee.required(),this.context=ee(),this.destroyRef=g(Ie$1),this.store=g(mr),this.utils=g(_),this.dataTracker=g(To$1),this.trackToolService=g(F$1),this.insulationJourneyService=g(de$1),this.id=st(this.rendering),this.theme=rt(this.rendering),this.title=lt(this.rendering),this.submitState=this.store.selectSignal(ee$1),this.config=this.store.selectSignal(C$1),this.prefilledAddress=this.store.selectSignal(oe$1),this.stepper=lt$1(ve("temp"));}ngOnInit(){this.store.dispatch(de("orderForm",this.rendering().fields.FunnelSettings)),this.stepper.set(ve(this.rendering().componentName,this.dataTracker,this.utils)),this.stepper().submitAll.pipe(yN(this.destroyRef)).subscribe(()=>{this.submitForm();});let o=this.prefilledAddress();o&&(this.stepper().steps.addressStep?.form.setValue(o),this.stepper().steps.addressStep.submit()),this.stepper()?.steps.personalStep.form.valueChanges.pipe(yN(this.destroyRef),at(1)).subscribe(()=>this.formFirstInteraction());}formFirstInteraction(){this.insulationJourneyService.orderFormStarted(this.rendering().fields.FunnelSettings?.componentName?.value??"");}submitForm(){if(this.stepper===void 0)return;this.handleFormSubmissionAnalytics();let o=this.store.selectSignal(ne$1),n=this.store.selectSignal(tK),r=this.store.selectSignal(c),a={addressDetails:this.stepper().steps.addressStep.form.getRawValue(),personalDetails:this.stepper().steps.personalStep.form.getRawValue(),confirmationDetails:this.stepper().steps.confirmationStep.form.getRawValue()};this.store.dispatch(_$1({redirectUrl:void 0,data:io(a,o(),n(),r(),Ve(this.config()?.brand??"essent"))}));}handleFormSubmissionAnalytics(){let o=this.store.selectSignal(re);this.trackToolService.completeTool(no(o().trackingId,o().products,o().buildingType,this.rendering().componentName)),this.insulationJourneyService.orderFormCompleted(),this.insulationJourneyService.leadCreated();}};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=Yt({type:t,selectors:[["wl-insulation-order-form-container"]],inputs:{rendering:[1,"rendering"],context:[1,"context"]},decls:1,vars:1,consts:[[3,"id","theme","title","hasContext"],[3,"stepper","submitState"]],template:function(n,r){n&1&&kr(0,yo,2,6,"wl-content-section",0),n&2&&Fr(r.stepper()?0:-1);},dependencies:[fe,it],encapsulation:2});let e=t;return e})();new P$1({address:new P$1(Av({componentName:"",fields:{}},void 0,false)),buildingType:new xe("",{label:"Soort woning",prefix:{icon:"house"},entries:[{text:"hoekwoning",value:"hoekwoning"}],validators:[oe.required],errorMsgs:{required:"Is verplicht"},dataAutomationId:"insulationWizardForm-buildingType"}),houseIsBought:new xe(false,{label:"Ik heb een koophuis.",validators:[oe.requiredTrue],errorMsgs:{required:"Is verplicht"},dataAutomationId:"insulationWizardForm-houseIsBought"})});var O=(function(e){return e.WOONWAGEN_WOONBOOT="woonwagen-woonboot",e.ETAGEWONING="etagewoning",e.FLAT_APPARTEMENT="flat-appartement",e.VRIJSTAANDE_WONING="vrijstaande-woning",e.RIJTJESHUIS="rijtjeshuis",e.HOEKWONING="hoekwoning",e.TWEE_ONDER_EEN_KAP="twee-onder-een-kap",e.GESCHAKELDE_WONING="geschakelde-woning",e})(O||{}),C=(function(e){return e.VLOERISOLATIE="vloerisolatie",e.SPOUWMUURISOLATIE="spouwmuurisolatie",e.DAKISOLATIE="dakisolatie",e.ANDERS="anders",e})(C||{});
3var Ce="https://tst-sitecore-essent-cd-open-consument.innogynederland.nl/-/media/biogas-goeievraag-rechts-small.ashx?h=200&iar=0&w=350&hash=0995295FD1E05BE7203DF5826C4C6697",ye=[{suiteCrmId:"spouwmuur",productType:{value:C.SPOUWMUURISOLATIE},content:{usps:[{text:"Warm in de winter en koel in de zomer",inactive:false,tooltip:""}],productInfo:[],title:"Spouwmuurisolatie",highlight:"",scores:[{text:"Materiaal",outOf5:3}],text:"Isolatie voor <em>in</em> je muur",image:{src:Ce,alt:""},subTitle:"Warm in de winter",submitButtonText:"submit",submitButtonAction:"navigate",submitButtonLink:{href:"/submit"},secondaryButtonText:"secondary",secondaryButtonStyle:"btn btn-link",secondaryButtonAction:"navigate",secondaryButtonLink:{href:"/secondary"}},pricePerSquareMeter:20.18,startingInstallationCosts:155,minimumInstallationCosts:900,gasSavingsPerSquareMeterPerYear:9,buildingConstructionYearMinimum:1930,unsuitableBuildingTypes:[{label:"Flat of appartement",value:O.FLAT_APPARTEMENT}]},{suiteCrmId:"vloer",productType:{value:C.VLOERISOLATIE},content:{usps:[{text:"Mooie USP 1",inactive:false,tooltip:""}],productInfo:[],title:"Vloerisolatie",highlight:"",scores:[{text:"Materiaal",outOf5:1}],text:"Hier veeg je de vloer mee aan",image:{src:Ce,alt:""},subTitle:"",submitButtonText:"submit",submitButtonAction:"navigate",submitButtonLink:{href:"/submit"},secondaryButtonText:"secondary",secondaryButtonStyle:"btn btn-link",secondaryButtonAction:"navigate",secondaryButtonLink:{href:"/secondary"}},pricePerSquareMeter:31.78,startingInstallationCosts:0,minimumInstallationCosts:900,gasSavingsPerSquareMeterPerYear:6,buildingConstructionYearMinimum:1930,unsuitableBuildingTypes:[{label:"Flat of appartement",value:O.FLAT_APPARTEMENT}]},{suiteCrmId:"dak",productType:{value:C.DAKISOLATIE},content:{usps:[{text:"Mooie USP 1",inactive:false,tooltip:""}],productInfo:[],title:"Dakisolatie",highlight:"",scores:[{text:"Materiaal",outOf5:1}],text:"Je kan het dak op!",image:{src:Ce,alt:""},subTitle:"",submitButtonText:"submit",submitButtonAction:"navigate",submitButtonLink:{href:"/submit"},secondaryButtonText:"secondary",secondaryButtonStyle:"btn btn-link",secondaryButtonAction:"navigate",secondaryButtonLink:{href:"/secondary"}},pricePerSquareMeter:68.78,startingInstallationCosts:0,minimumInstallationCosts:900,gasSavingsPerSquareMeterPerYear:8,buildingConstructionYearMinimum:1930,unsuitableBuildingTypes:[{label:"Flat of appartement",value:O.FLAT_APPARTEMENT},{label:"Etagewoning",value:O.ETAGEWONING},{label:"Woonwagen of woonboot",value:O.WOONWAGEN_WOONBOOT}]}],J=[G$1(F({},ye[0]),{installationCosts:9436,paybackPeriodInYears:52,yearlySavings:183,gasSavingsPerSquareMeterPerYear:4139}),G$1(F({},ye[1]),{installationCosts:176566,paybackPeriodInYears:1304,yearlySavings:135,gasSavingsPerSquareMeterPerYear:33335}),G$1(F({},ye[2]),{installationCosts:465878,paybackPeriodInYears:2117,yearlySavings:220,gasSavingsPerSquareMeterPerYear:54188})],ao=J[0];var Se={addressData:{street:"goat-street",houseNumber:4,houseNumberAddition:"",postalCode:"1234GT",city:"goat-city"},isVisible:true,products:J,alreadyInsulated:false,suitableProductTypes:[C.DAKISOLATIE,C.SPOUWMUURISOLATIE,C.VLOERISOLATIE],selectedProducts:J,selectedProductsTotalYearlySavings:538};var be={unsuitableProducts:[C.VLOERISOLATIE],selectedProducts:[ao],maxYearlySavings:420};var lo=O$1(G());var xo=e=>({savings:e}),To=e=>({mode:"rich_text",variables:e}),wo=(e,t,i)=>({track:e,trackingConfig:t,context:i,trackMode:"product-impression"});function Po(e,t){if(e&1&&(zd(0,"p",5),Di(1," Bekijk met welke soorten isolatie jij jaarlijks kan besparen op "),zd(2,"strong"),Di(3),Wd()()),e&2){let i=Nn$1(2);ho$1(3),DS(" ",i.addressData.street," ",i.addressData.houseNumber,", ",i.addressData.postalCode," ",i.addressData.city," ");}}function Fo(e,t){if(e&1){let i=YF();zd(0,"div",12)(1,"wl-generic-offer",13),mo$2(2,"wl-generic-price-info",14),zd(3,"div",15)(4,"wl-toggle-with-info",16),Kd("toggled",function(){let n=EC(i),r=Nn$1(4);return DC(r.toggleProduct(n))}),Wd()()()();}if(e&2){let i=t,o=Nn$1().context,n=Nn$1(2),r=Nn$1(),a=n1(0);ho$1(),nr("rendering",a)("wlTrackProduct",p1(14,wo,i,r.trackProductConfig,o))("product",i)("selected",r.productSelected(n.selectedProducts,i)),ho$1(),nr("prefixLabel",a.fields.ProductPricePrefixLabel)("suffixLabel",a.fields.ProductPriceSuffixLabel)("price",i.yearlySavings)("hasContentBelow",!(i.content.productInfo!=null&&i.content.productInfo.length)),ho$1(2),nr("toggleId",o1("insulation-product-toggle-",o.index))("rendering",a)("title",a.fields.ToggleProductTitle)("description",a.fields.ToggleProductDescription)("checked",r.productSelected(n.selectedProducts,i));}}function Oo(e,t){if(e&1&&kr(0,Fo,5,18,"div",12),e&2){let i,o=t.$implicit,n=Nn$1(3);Fr((i=n.stronglyTypedProduct(o))?0:-1,i);}}function No(e,t){if(e&1){let i=YF();zd(0,"button",17),Kd("click",function(n){EC(i);let r=Nn$1(2),a=Nn$1();return DC(a.submitClicked(n,r.selectedProducts))}),Wd();}if(e&2){let i=Nn$1(2);nr("disabled",i.selectedProducts.length===0);}}function Ro(e,t){e&1&&mo$2(0,"a",20);}
3function Mo(e,t){if(e&1&&(zd(0,"div",11)(1,"div",18),Nt(2,Ro,1,0,"a",19),Wd()()),e&2){Nn$1(3);let i=n1(0);ho$1(2),nr("wlGenericLink",i.fields.SecondaryButton);}}function Do(e,t){if(e&1&&(zd(0,"wl-content-section",0)(1,"wl-rich-text-wrapper",1),E1(2,"currency"),E1(3,"interpolate"),mo$2(4,"p",2),Wd(),zd(5,"div",3)(6,"div",4),kr(7,Po,4,4,"p",5),Wd()(),zd(8,"div",6)(9,"wl-generic-offer-container",7),Nt(10,Oo,1,1,"ng-template"),Wd()(),zd(11,"div",8)(12,"div",9),Nt(13,No,1,1,"button",10),Wd()(),kr(14,Mo,3,1,"div",11),Wd()),e&2){let i=Nn$1(),o=Nn$1(),n=n1(0);nr("id",o.id())("theme",o.theme())("title",o.title())("hasContext",!!o.context()),ho$1(),nr("field",b1(3,16,n==null||n.fields==null?null:n.fields.ProductOverviewTitle,d1$1(21,To,d1$1(19,xo,w1(2,11,i.selectedProductsTotalYearlySavings,"EUR","symbol","1.0-0"))))),ho$1(6),Fr(i.addressData?7:-1),ho$1(),nr("id",o.insulationProductOverviewKey),ho$1(),nr("products",i.products)("listName",n.componentName),ho$1(4),nr("scText",n.fields.NextPageButtonText),ho$1(),Fr(n.fields.SecondaryButton.value!=null&&n.fields.SecondaryButton.value.href?14:-1);}}function Eo(e,t){e&1&&kr(0,Do,15,23,"wl-content-section",0),e&2&&Fr(t.isVisible?0:-1);}var _e=(()=>{let t=class t{constructor(){this.rendering=ee.required(),this.context=ee(),this.id=st(this.rendering),this.theme=rt(this.rendering),this.title=lt(this.rendering),this.store$=g(mr),this.trackingConfig=g(ne),this.trackProductService=g(g$2),this.viewModel$=this.store$.select(S(se,Se)),this.insulationProductOverviewKey=P,this.trackProductConfig=this.trackingConfig.config;}ngOnInit(){this.store$.dispatch(de("productOverview",this.rendering().fields.FunnelSettings));}stronglyTypedProduct(o){return o}productSelected(o,n){return (0, lo.default)(o,n)}toggleProduct(o){this.store$.dispatch(Y({product:o}));}submitClicked(o,n){let r=this.rendering().fields.componentName.value||io$1;o.preventDefault(),this.store$.dispatch(J$2()),n.forEach((a,y)=>{this.trackProductService.trackSelection(this.trackProductConfig.mapToCommerce(a,{index:y,listName:r,numberOfProducts:1}));});}};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=Yt({type:t,selectors:[["wl-insulation-product-overview"]],inputs:{rendering:[1,"rendering"],context:[1,"context"]},decls:3,vars:4,consts:[[3,"id","theme","title","hasContext"],[3,"field"],[1,"mb-1"],[1,"row","mb-6"],[1,"col-12"],["sessionReplay","mask"],[1,"pb-4",3,"id"],[3,"products","listName"],[1,"row","justify-content-center"],[1,"col-12","col-md-4"],["type","submit","class","btn btn-sales-primary w-100","wlAutomationId","next-page-button","sessionReplay","capture",3,"disabled","click",4,"scText"],[1,"row","justify-content-center","mt-1"],[1,"h-100"],["mode","select",1,"d-flex","h-100",3,"rendering","wlTrackProduct","product","selected"],["top","",1,"d-block","mx-2",3,"prefixLabel","suffixLabel","price","hasContentBelow"],["bottom","",1,"p-2"],[3,"toggled","rendering","title","description","toggleId","checked"],["type","submit","wlAutomationId","next-page-button","sessionReplay","capture",1,"btn","btn-sales-primary","w-100",3,"click","disabled"],[1,"col-6","col-md-4"],["type","submit","class","btn btn-link w-100","wlAutomationId","secondary-button","sessionReplay","capture",4,"wlGenericLink"],["type","submit","wlAutomationId","secondary-button","sessionReplay","capture",1,"btn","btn-link","w-100"]],template:function(n,r){if(n&1&&(IS(0),kr(1,Eo,1,1),E1(2,"async")),n&2){let a,y=t1(r.rendering());ho$1(),Fr((a=C1(2,2,y&&r.viewModel$))?1:-1,a);}},dependencies:[R3,ce,s,qo$1,_e$1,ue,fe$2,Pt,it,Pc,ct,vU,_U,O$3],encapsulation:2});let e=t;return e})();var Ao=e=>({savings:e}),Bo=e=>({variables:e}),Lo=(e,t,i)=>({rendering:e,track:t,trackingConfig:i,trackMode:"product-detail"});function Wo(e,t){if(e&1&&(zd(0,"wl-receipt-breakdown-row",3),yy(1,4),zd(2,"p",5),Di(3),Wd(),mo$2(4,"wl-generic-usps",6),Yd(),Wd()),e&2){let i=t.$implicit,o=Nn$1(3);nr("separator",true)("hasRightPart",false),ho$1(3),Iy(" ",i.content.title," "),ho$1(),nr("usps",o.formattedSavings(i));}}function zo(e,t){if(e&1&&VF(0,Wo,5,4,"wl-receipt-breakdown-row",3,BF
3),e&2){let i=Nn$1();$F(i.selectedProducts);}}function Vo(e,t){e&1&&mo$2(0,"div",9);}function Go(e,t){if(e&1&&(zd(0,"wl-receipt-breakdown-row",7),yy(1,4),Nt(2,Vo,1,0,"div",8),E1(3,"translate"),Yd(),Wd()),e&2){let i=Nn$1(2),o=Nn$1();nr("hasRightPart",false),ho$1(2),nr("wlGenericRichText",o.formatUnsuitableDisclaimer(i.unsuitableProducts,C1(3,2,"Or")));}}function qo(e,t){e&1&&Nt(0,Go,4,4,"ng-template",2);}function Uo(e,t){if(e&1&&(zd(0,"wl-receipt",0),E1(1,"currency"),E1(2,"interpolate"),Nt(3,zo,2,0,"ng-template",1),kr(4,qo,1,0,null,2),Wd()),e&2){let i=t,o=Nn$1();nr("title",b1(2,9,o.rendering().fields.Title.value,d1$1(14,Bo,d1$1(12,Ao,w1(1,4,i.maxYearlySavings,"EUR","symbol","1.0-0")))))("sticky",true)("wlTrackProduct",p1(16,Lo,o.rendering(),i.selectedProducts,o.trackProductConfig)),ho$1(4),Fr(i.unsuitableProducts.length?4:-1);}}var Ie=(()=>{let t=class t{constructor(){this.rendering=ee.required(),this.store$=g(mr),this.currencyPipe=g(_U),this.interpolationService=g(g$1),this.trackingConfig=g(ne),this.trackProductConfig=this.trackingConfig.config,this.viewModel$=this.store$.select(S(ae,be));}formattedSavings(o){let n=this.currencyPipe.transform(o.yearlySavings,"EUR","symbol","1.0-0")??0;return [{text:this.interpolationService.interpolate(this.rendering().fields.SavingsPerYearText,{savings:n},"plain_text").value,inactive:false,tooltip:""},...(o.content.usps??[]).slice(0,2)]}formatUnsuitableDisclaimer(o,n){let r="";return o.length===1?r=o[0]:r=o.reduce((a,y,xe,Te)=>xe===0?y:xe<Te.length-1||Te.length===1?`${a}, ${y}`:`${a} ${n} ${y}`,""),this.interpolationService.interpolate(this.rendering().fields.ProductSelectionDisclaimer,{unsuitable:r},"rich_text")}};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=Yt({type:t,selectors:[["wl-insulation-receipt"]],inputs:{rendering:[1,"rendering"]},decls:2,vars:3,consts:[["stickyWrapperClass","mb-2",3,"title","sticky","wlTrackProduct"],["wlReceiptBreakdown",""],["wlReceiptConclusion",""],[3,"separator","hasRightPart"],["leftProjection",""],["sessionReplay","capture",1,"receipt-product-title","crnt-typography-heading-4","mb-1"],[3,"usps"],[3,"hasRightPart"],["sessionReplay","capture",4,"wlGenericRichText"],["sessionReplay","capture"]],template:function(n,r){if(n&1&&(kr(0,Uo,5,20,"wl-receipt",0),E1(1,"async")),n&2){let a;Fr((a=C1(1,1,r.viewModel$))?0:-1,a);}},dependencies:[ce,$a,dt,mt,Wa,me,Pt,Sc$1,Nn,vU,_U,O$3],styles:[`[_ngcontent-%COMP%]:root{--font-intro-color: #000}[_ngcontent-%COMP%]:root{--headings-color: #410073}.progress[_ngcontent-%COMP%]{border:2px solid var(--crnt-color-common-border-subtle)}.ed[_nghost-%COMP%]   .receipt-product-title[_ngcontent-%COMP%], .ed   [_nghost-%COMP%]   .receipt-product-title[_ngcontent-%COMP%]{margin-bottom:1rem;color:#410073;text-transform:capitalize}
4/*# sourceMappingURL=insulation-receipt.component.ed-3HBHW3HC.css.map */`,`.progress[_ngcontent-%COMP%]{border:1px solid var(--crnt-color-common-border-subtle)}.essent[_nghost-%COMP%], .essent   [_nghost-%COMP%]{--receipt-breakdown-row-margin-bottom: 1rem}
5/*# sourceMappingURL=insulation-receipt.component.essent-RP3VXJTZ.css.map */`]});let e=t;return e})();function co(e){let t=e.BuildingTypes?.map(o=>({text:o.label,value:o.value}))??[],i=e.componentName+" postcode check";return new P$1({address:new P$1(Av({componentName:"",fields:{}},i,false)),buildingType:new xe("",{label:e.BuildingTypeLabel??"Soort woning",prefix:{icon:"house"},entries:t,validators:[oe.required],errorMsgs:{required:"Is verplicht"},dataAutomationId:"insulationWizardForm-buildingType",analytics:{valueChangeTracker:{componentName:i,fieldName:"In wat voor soort woning woon je?"}}}),houseIsBought:new xe(false,{label:e.HouseIsBoughtLabel??"Ik heb een koophuis.",validators:[oe.requiredTrue],errorMsgs:{required:"Is verplicht"},dataAutomationId:"insulationWizardForm-houseIsBought",analytics:{valueChangeTracker:{componentName:i,fieldName:"Ik heb een koophuis."}}})})}function mo(e,t){return mo$1(F(F({},{steps:[{step:0,stepName:"postcode check",id:"wizard"}],toolComplete:{selector:()=>{},onComplete:()=>({step:1,payload:{"type woning":t.value.buildingType}})}}),e&&{toolName:e}))}var uo=(()=>{var t;let e=(t=class{constructor(){this.store=g(mr),this.location=g(O$2),this.trackToolService=g(F$1),this.insulationJourneyService=g(de$1),this.rendering=ee.required(),this.context=ee(),this.id=st(this.rendering),this.theme=rt(this.rendering),this.fields=tf(()=>ot(this.rendering())),this.form=tf(()=>co(this.fields())),this.trackToolConfig=tf(()=>mo(this.fields().componentName??"",this.form())),this.addressCheckState=this.store.selectSignal(V),this.formValuesState=this.store.selectSignal(nt),xy(()=>{let o=this.addressCheckState();this.performSubmitStateChangeEffect(o);});}performSubmitStateChangeEffect(o){let{AlreadyInsulatedPage:n,NoProductsAvailablePage:r,ProductOverviewPage:a}=this.rendering().fields.FunnelSettings.fields;switch(o.status){case we.SUCCESS:{o.data?.alreadyInsulated?(this.insulationJourneyService.wizardCompleted("ineligible","already_insulated"),this.navigateOrError(n)):!o.data?.alreadyInsulated&&o.data?.suitableProductTypes.length===0?(this.insulationJourneyService.wizardCompleted("ineligible","house_type_incompatible"),this.navigateOrError(r)):!o.data?.alreadyInsulated&&(o.data?.suitableProductTypes.length??0)>0&&(this.insulationJourneyService.wizardCompleted("eligible","eligible"),this.store.dispatch(b()),this.navigateOrError(a));break}case we.ERROR:{o.error?.status===404?this.store.dispatch(Z()):this.store.dispatch(R());break}}}ngOnInit(){this.store.dispatch(de("wizard",this.rendering().fields.FunnelSettings)),this.store.dispatch(Ne.getGetaddressinfoV1.clearAction()),this.trackToolService.trackTool({type:ut.STEP,toolName:"isolatie keuzehulp",stepName:"postcode check",step:0}),this.form().setValue(this.formValuesState());}submit(){if(this.form().valid){let o=this.rendering().fields.FunnelSettings,n=this.form().value;this.trackToolService.completeTool(this.trackToolConfig()),this.store.dispatch(tt()),this.store.dispatch(Q()),this.store.dispatch(qt()),this.store.dispatch(Ne.getGetaddressinfoV1.requestAction({payload:{postalCode:n.address?.postcode,houseNumber:n.address?.houseNumber,houseNumberAddition:n.address?.houseNumberAddition,buildingType:n.buildingType,funnelSettingsId:o.id}}));}}navigateOrError(o){let n=o?.value?.href;n?this.location.navigateGeneralLink(n):this.store.dispatch(W({message:"page is not defined on FunnelSettings"}));}formFirstInteraction(){this.insulationJourneyService.wizardFirstInteraction(this.rendering().fields.Title?.value??"");}},t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=Yt({type:t,selectors:[["wl-insulation-wizard-container"]],inputs:{rendering:[1,"rendering"],context:[1,"context"]},decls:2,vars:8,consts:[[3,"id","theme","hasContext"],[3,"formSubmit","secondaryButtonPressed","formInteraction","form","t
5itle","addressCheckState","primaryButtonText","secondaryButtonText"]],template:function(n,r){if(n&1&&(zd(0,"wl-content-section",0)(1,"wl-insulation-wizard",1),Kd("formSubmit",function(){return r.submit()})("secondaryButtonPressed",function(){return r.navigateOrError(r.rendering().fields.SecondaryButtonLink)})("formInteraction",function(){return r.formFirstInteraction()}),Wd()()),n&2){let a;nr("id",r.id())("theme",r.theme())("hasContext",!!r.context()),ho$1(),nr("form",r.form())("title",r.fields().Title??"")("addressCheckState",r.addressCheckState())("primaryButtonText",r.fields().SubmitButtonText??"")("secondaryButtonText",((a=r.fields().SecondaryButtonLink)==null?null:a.text)??"");}},dependencies:[he,it],encapsulation:2,changeDetection:0}),t);return e=u([d1({name:"FEIT-Insulation-Wizard-Container"})],e),e})();var Mr=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=tr({type:t}),t.\u0275inj=bn({providers:[i({InsulationWizard:uo,InsulationProductOverview:_e,InsulationReceipt:Ie,InsulationOrderForm:ro})],imports:[J$1,Ie,_e]});let e=t;return e})();export{Mr as FehInsulationLazyModule};//# sourceMappingURL=chunk-DN5MTuZ8.js.map

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.