1"use strict";(self.webpackChunkfrontend_setup=self.webpackChunkfrontend_setup||[]).push([[130],{5323:(e,r,t)=>{t(6337)},2311:(e,r,t)=>{t.d(r,{a:()=>ContactButtons});var o=t(7995),a=t(6320),n=t(5044);const ContactButtons=e=>(0,o.h)("div",{class:`c-contact-buttons u-flex u-flex-column u-flex-row--md ${e.classes||""}`},e.chat&&(0,o.h)("button",{"js-hook-chat-open":!0,onClick:e.chatOnClick,"data-pane":"chat",class:"contact-buttons__button u-flex u-flex-middle"},(0,o.h)("span",{class:"contact-buttons__icon u-flex u-flex-center u-flex-middle"},(0,o.h)(a.Zz,{name:"contact-chat"})),(0,o.h)("span",{class:"contact-buttons__label u-body-normal-bold"},(0,n.qM)("StartChat"))),e.faqUrl&&(0,o.h)("a",{href:e.faqUrl,class:"contact-buttons__button u-flex u-flex-middle"},(0,o.h)("span",{class:"contact-buttons__icon u-flex u-flex-center u-flex-middle"},(0,o.h)(a.Zz,{name:"contact-faq"})),(0,o.h)("span",{class:"contact-buttons__label u-body-normal-bold"},(0,n.qM)("FrequentlyAskedQuestions"))))},7130:(e,r,t)=>{t.r(r);t(5323);var o=t(9490),a=t(7995),n=t(7691),i=t(2152),c=t(2002),l=t(2503),s=t(6346),u=t(3352),m=t(6320),d=t(1856),h=t(2311),f=t(7655),b=t(4025),p=t(5940),_=t(5044),g=t(3748),y=t(9847);function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){_defineProperty(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function _defineProperty(e,r,t){return(r=function _toPropertyKey(e){var r=function _toPrimitive(e,r){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,r||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"==typeof r?r:r+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}const v="brochure-form",BrochureForm=({element:e})=>{const[r]=(0,o.v9)("constructionNumberId",null),[t]=(0,o.v9)("propertyTypeId",null),[k]=(0,o.v9)("additionalPdf",null),[j]=(0,o.v9)("image",null),[x]=(0,o.v9)("imageAlt",null),[w]=(0,o.v9)("pageUrl",""),[q,P]=(0,_.XK)("..."),N=(0,o.YP)("[js-hook-brochure-form]"),S=(0,o.YP)("[js-hook-brochure-form-submit]"),O=(0,_.iY)("[js-hook-brochure-form-submit]"),T=(0,o.YP)("[js-hook-brochure-form-confirmation]");let E,M,I,A;(0,o.YP)("bpd-pages",{as:"bpdPages"});const $=k?function decodeAdditionalPdf(e){return e.split(",").map(e=>{const[r,t]=e.split(":");return{name:r,id:t}})}(k):void 0;return(0,_.Rd)(y.Z),(0,o.N_)(async()=>{E=await u._n.getData(window.__ENVIRONMENT_DETAILS__.areaId),r&&(I=E.constructionNumbers.find(({id:e})=>e===r)),t&&(M=E.propertyTypes.find(({id:e})=>e===t)),A=I?.projectPhase||M?.projectPhase,A&&async function setSubtitleText(e){const r=I?`${e?.name} #${I.identifier||""}`:`${e?.name} ${M?.name||""}`;let t=await(0,_.WU)("BrochureRequest-WhichInformationYouRequest");t=t.replace("{0}",r),P(t)}(A),function triggerLoadGTMEvent(){const{houseType:e}=M||I?.propertyType||{};(0,p.d)({event:"gtm.trackEvent",eventCategory:"digital brochure",eventAction:"request brochure click",eventLabel:`${A?.name}, ${e}`})}()}),(0,o.iX)(N,"change",()=>{const{valid:e}=N.current.validate(!1);e?S.current.removeAttribute("disabled"):S.current.setAttribute("disabled","disabled")}),(0,o.iX)(N,"serializedForm",async o=>{O(!0);try{!function triggerSubmitGTMEvent(e){const r=M?.name||I?.propertyType?.name,t=`${A?.name||""} - ${r||""}`,o=e?.split(",").filter(e=>!!e),a={event:"gtm.trackEvent",eventCategory:"digital brochure",eventLabel:t};o?.length?o.forEach(e=>{const r=function findBrochureNameById(e){return $?.find(r=>r.id===e)?.name}(e);(0,p.d)(_objectSpread(_objectSpread({},a),{},{eventAction:`request ${r}`}))}):(0,p.d)(_objectSpread(_objectSpread({},a),{},{eventAction:"request default brochure"}))}(o.detail["additional-pdf"]),await(0,b.U)({additionalPdfs:o.detail["additional-pdf"],email:o.detail.email,firstName:o.detail.firstname,lastNamePrefix:o.detail["lastname-prefix"],lastName:o.detail.lastname,areaProjectId:E?.areaProject.id||"",projectPhaseId:A?.id||"",propertyTypeId:t,constructionNumberId:r,pageUrl:w}),await async function renderConfirmation(e,r){const{hasChat:t,faqUrl:o}=window.__ENVIRONMENT_DETAILS__;let n=`${A?.name||""} `;n+=I?`#${I.identifier||""}`:M?.name||"";let i=await(0,_.WU)("BrochureRequest-MailedTo");i=i.replace("[project-name]",n).replace("[brochure-receiver-name]",e);const c=$&&r?$?.filter(e=>r.split(",").includes(e.id)).map(({name:e})=>e):[];T.current.append((0,a.h)(a.H,null,(0,a.h)("h3",{class:"u-h4 u-h3--md"},(0,_.qM)("BrochureRequest-ConfirmationTitle")),(0,a.h)("p",{class:"brochure-form__confirmation-subtitle"},i),!!c.length&&(0,a.h)("ul",{class:"brochure-form__pdf-container"},c.map(e=>(0,a.h)("li",{class:"brochure-form__pdf u-flex u-flex-middle u-body-normal-bold"},(0,a.h)(m.Zz,{name:"icons-checkmark"})," ",e))),(t||o)&&(0,a.h)(a.H,null,(0,a.h)("p",null,(0,_.qM)("BrochureRequest-AnyQestions")),(0,a.h)(h.a,{classes:"brochure-form__chat-buttons",chat:t,chatOnClick:()=>(0,f.Mr)(v),faqUrl:o}))))}(o.detail.email,o.detail["additional-pdf"]),e.bpdPages.selectNext()}finally{O(!1)}}),(0,a.h)(l.A,{id:v,active:!1},(0,a.h)("bpd-pages",{selector:"[js-hook-brochure-form-page]"},(0,a.h)("div",{"js-hook-brochure-form-page":!0},(0,a.h)("h3",{class:"u-h4 u-h3--md"},(0,_.qM)("ViewBrochure")),(0,a.h)("p",{class:"brochure-form__subtitle"},q),(0,a.h)("bpd-form",{"js-hook-brochure-form":!0},(0,a.h)("form",null,$&&(0,a.h)("div",{className:"brochure-form__pdf-container"},(0,a.h)(m.$L,null,$.map(({name:e,id:r})=>(0,a.h)(n.Z,{name:"additional-pdf[]",id:`additional-pdf-${r}`,value:r,label:e,classes:"brochure-form__checkbox"})))),j&&(0,a.h)(c.E,{classes:"brochure-form__image",image:j,alt:x||"Brochure",preload:{width:16},settings:{480:{width:480,height:240},"740w":{width:740,height:370}}}),(0,a.h)("h4",{class:"u-subtitle-2"},(0,_.qM)("BrochureRequest-SendToWho")),(0,a.h)(s.X2,{extraClass:"brochure-form__input-container"},(0,a.h)(s.JX,{cols:[12,,(0,g.F)()?6:5]},(0,a.h)(i.k,{id:"brochure-form-firstname",name:"firstname",label:(0,_.qM)("FirstName"),validationTypes:"required"})),!(0,g.F)()&&(0,a.h)(s.JX,{cols:[12,,2]},(0,a.h)(i.k,{id:"brochure-form-lastname-prefix",name:"lastname-prefix",label:(0,_.qM)("LastNamePrefix")})),(0,a.h)(s.JX,{cols:[12,,(0,g.F)()?6:5]},(0,a.h)(i.k,{id:"brochure-form-lastname",name:"lastname",label:(0,_.qM)("LastName"),validationTypes:"required"})),(0,a.h)(s.JX,{cols:[12]},(0,a.h)(i.k,{id:"brochure-form-email",name:"email",label:(0,_.qM)("EmailAdres"),validationTypes:"required,email"})),(0,a.h)(s.JX,{cols:[12,,9]},(0,a.h)("p",{class:"brochure-form__explanation"},(0,_.qM)("BrochureRequest-NameExplanation"))),(0,a.h)(s.JX,{cols:[12,,3],extraClass:"u-flex u-flex-end"},(0,a.h)(d.zx,{type:"submit",hook:"brochure-form-submit",width:"full-width-mobile",classes:"brochure-form__submit",label:(0,_.qM)("SendByEmail"),hasLoading:!0,disabled:!0})))))),(0,a.h)("div",{"js-hook-brochure-form-page":!0},(0,a.h)("div",{"js-hook-brochure-form-confirmation":!0}))))};BrochureForm.props={constructionNumberId:{type:String},propertyTypeId:{type:String},additionalPdf:{type:String},image:{type:String},imageAlt:{type:String},pageUrl:{type:String,required:!0}},(0,o.Nk)("brochure-form",BrochureForm)},9847:(e,r,t)=>{t.d(r,{Z:()=>c});var o=t(8081),a=t.n(o),n=t(3645),i=t.n(n)()(a());
1i.push([e.id,"brochure-form{display:block}.brochure-form__subtitle{margin-bottom:2.4rem;margin-top:.8rem}.brochure-form__pdf-container{border:1px solid var(--color-grey-10);list-style:none;margin-bottom:2.4rem;padding:3.2rem}.brochure-form__pdf-container .checkbox__label{font-weight:600;margin-bottom:0}.brochure-form__pdf-container .form__item{margin-bottom:0}.brochure-form__checkbox+.brochure-form__checkbox .form__item{margin-top:1.6rem}.brochure-form__image{margin-bottom:2.4rem}.brochure-form__input-container{margin-top:2.4rem}.brochure-form__confirmation-subtitle{margin-bottom:2.4rem}.brochure-form__pdf{margin:0}.brochure-form__pdf+.brochure-form__pdf{margin-top:1.6rem}.brochure-form__pdf .svg-icons-checkmark{color:var(--color-primary);margin-right:1.6rem}.brochure-form__chat-buttons{margin-top:1.6rem}@media only screen and (max-width:47.96875em){.brochure-form__submit{margin-top:2.4rem}}",""]);const c=i.toString()}}]); 2//# sourceMappingURL=130.c96ac9af933e38e1075b.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.