1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9568],{14:e=>{e.exports={sectionWrapper:"lead-module_sectionWrapper__Qnh8D","one-of-one":"lead-module_one-of-one__JX05t","one-of-two":"lead-module_one-of-two__z0p1D","one-of-three":"lead-module_one-of-three__0u6VW","one-of-four":"lead-module_one-of-four__j5HI_",text:"lead-module_text__KjnIM"}},27789:e=>{e.exports={box:"module-box_box__kHs7h",moduleHeadlineKolo:"module-box_moduleHeadlineKolo__1N5gh",contentBox:"module-box_contentBox__kCefY",justifyContent:"module-box_justifyContent__srbJS",boxLarge:"module-box_boxLarge__3Uxz4",iconBox:"module-box_iconBox__Mlf_0",closeIcon:"module-box_closeIcon___lAnd",spinnerWrapper:"module-box_spinnerWrapper__TbWv4",overlay:"module-box_overlay__iN7fa",form_wrapper:"module-box_form_wrapper__ZMQXy",form_submission_feedback:"module-box_form_submission_feedback__skixf",overlayIframe:"module-box_overlayIframe__BOcaq"}},57187:(e,o,t)=>{"use strict";t.r(o),t.d(o,{LeadModule:()=>U});var n=t(67867),s=t(11470),l=t(95155),r=t(10685),i=t.n(r),a=t(75462),d=t(98569),c=t(33723),u=t(14),_=t.n(u),m=t(69187),f=t(80542),x=t(30956),h=t(58083),p=t(96256),b=t(44287),y=t(12115),v=t(2
10063),j=t(27789),k=t.n(j),g=t(70622),w=t(64850),C=t(72),I=t(45983),N=t(37401),B=t.n(N),S=t(69917),M=t(93192),W=t(88408),E=t(92348),T=t(62249),F=t(23130),H=t(40912),z=t(64543);function L(e){var o,t,r=e.headline,a=e.text,d=e.icon,c=e.buttonText,u=e.type,_=e.url,m=e.urlType,j=e.forms,N=e.window,L=e.identifier,X=e.scriptUrl,q=e.styleUrl,D=e.itemIndex,U=e.itemsSize,A=e.section,K=e.sectionTitle,P=e.sectionAnchor,J=e.isChild,O=(0,T.al)(),Q=(0,f._)((0,y.useState)(!1),2),V=Q[0],Z=Q[1],$=(0,f._)((0,y.useState)(!1),2),G=$[0],R=$[1],Y=(0,f._)((0,y.useState)({status:{},submitMessages:{}}),2),ee=Y[0],eo=Y[1],et=(o=(0,y.useMemo)(function(){return"tool-".concat(i()({identifier:L}))},[L]),t=(0,S.f)(),(0,y.useEffect)(function(){if(X&&V&&L)try{var e,n;document.getElementById("script-".concat(o))||((e=document.createElement("script")).src=X,e.id="script-".concat(o),e.type="text/javascript",e.onload=function(){if(window[L]&&"function"==typeof window[L].init){var e=t.includes("-")?t.split("-"):[t,t];window[L].init({containerSelector:"#".concat(o),localisationCode:"".concat(e[0].toLowerCase(),"-").concat(e[1].toUpperCase()),mode:"embedded"})}},document.head.appendChild(e)),q&&!document.getElementById("style-".concat(o))&&((n=document.createElement("link")).href=q,n.id="style-".concat(o),n.type="text/css",n.rel="stylesheet",document.head.appendChild(n))}catch(e){}},[V,X,o,L,t,q]),(0,y.useCallback)(function(){return(0,l.jsx)("div",{id:o},X)},[X,o])),en=(0,v.useRouter)(),es=(0,F.d)(),el=(0,z.$)(),er=el.trackOutClickB2C,ei=el.trackCtaClick,ea=O?"xl":"l",ed=function(){switch(d){case"inspirator":er({page_section:"lead-module",tool_type:"inspiration-tool",link_text:(0,E.j)(c),link_url:_});break;case"newsletter":ei({page_section:"lead-module",link_text:"newsletter-form",link_url:_});break;case"contact-form":ei({page_section:"lead-module",link_text:"contact-form",link_url:_});break;case"3d-bath-planner":er({page_section:"lead-module",tool_type:"3d-planner",link_text:(0,E.j)(c),link_url:_,value:2})}},ec=(0,y.useCallback)(function(e){switch(ed(),u){case"nordics_lead_module_link":"internal"===m&&"_self"===N?en.push((0,H.B)(_,A,K,P)):"mailto"===m?window.open("mailto:".concat(_),"_self"):window.open(_,N);break;case"nordics_lead_module_iframe":case"nordics_lead_module_form":case"nordics_lead_module_script":Z(!0);break;default:e.preventDefault()}},[u,_,N]),eu=(0,y.useMemo)(function(){var e,o,t=(e=B()(ee.status)||!ee.status.messageIcon?"custom":"alert"===ee.status.messageIcon?"error":"success",o={size:ea,noFooterButton:!0,closeDialogue:function(){}},"custom"===e?(0,s._)((0,n._)({},o),{type:e,titleLabel:""}):(0,s._)((0,n._)({},o),{type:e,headerLabel:"error"===e?"Error":"Success",bodyContent:"error"===e?ee.submitMessages.error:ee.submitMessages.success,headerSymbol:"error"===e?"WarningSevere":"Check"}));return"custom"!==t.type?(0,l.jsx)("div",{className:k().form_submission_feedback,children:(0,l.jsx)(x.X,(0,s._)((0,n._)({},t),{body:(0,l.jsx)("p",{children:t.bodyContent}),onClose:function(){eo({status:{},submitMessages:{}}),Z(!1)}}))}):(0,l.jsx)("div",{className:k().form_wrapper,children:(0,l.jsx)(x.X,(0,s._)((0,n._)({},t),{body:["nordics_lead_module_form"===u&&(0,l.jsx)(C.FormController,(0,s._)((0,n._)({},null==j?void 0:j[0]),{onFormStatusChange:eo,resetFormStatus:!0,formType:"leadmodule",border:"disable-border"})),"nordics_lead_module_iframe"===u&&(0,l.jsxs)(l.Fragment,{children:[!G&&(0,l.jsx)("div",{className:k().spinnerWrapper,children:(0,l.jsx)(h.y,{})}),(0,l.jsx)("iframe",{src:_,title:r,onLoad:function(){return R(!0)}})]}),"nordics_lead_module_script"===u&&(0,l.jsx)(l.Fragment,{children:et()})],onClose:function(){return Z(!1)},showCloseBtn:!0,size:"l",type:"custom"}))})},[ea]);return(0,y.useEffect)(function(){if(V){var e=document.body.style.overflow;return document.body.style.overflow="hidden",function(){document.body.style.overflow=e}}return function(){}},[V]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",(0,s._)((0,n._)({},(0,W.q)("#".concat(D))),{className:k().box,children:[(0,l.jsx)("div",{className:k().iconBox,children:(0,l.jsx)(g.In,{symbol:d})}),(0,l.jsxs)("div",{className:k().contentBox,children:[r&&(0,l.jsx)(I.Headline,{titlePreviewId:"#st_headline",tag:es?"h3":"h4",variant:"h6",title:(0,E.j)(r)}),(0,l.jsxs)("div",{className:k().justifyContent,children:[(0,l.jsx)(p.Z,{variant:"p2",as:"div",children:(0,l.jsx)(w.InnerHtml,{previewId:"#st_text",content:a,as:"p",headlineTagsVariant:es?void 0!==J&&J?{h4:"h5",h5:"h5"}:{h4:"h3",h5:"h3"}:void 0,trackPageSection:"lead-module"})}),(0,l.jsx)(b.$,(0,s._)((0,n._)({},(0,W.q)("#st_buttonText")),{stretched:!0,onClick:ec,stylingType:1===(void 0===U?0:U)?"primary":void 0,children:(0,E.j)(c)}))]})]})]})),V?(0,l.jsx)("div",{className:(0,M.B)(k().overlay,"nordics_lead_module_iframe"===u&&k().overlayIframe),children:eu}):null]})}var X=t(50663),q=t(5742),D={1:[4,8,8],2:[4,8,8],3:[4,8,12],4:[4,8,12]};function U(e){var o=e.contentIndex,t=e.titleInAnchor,r=e.anchor,u=e.title,f=e.subtitle,x=e.text,h=e.modules,p=e.isChild,b=void 0!==p&&p,y=(0,q._)(u,r,t,o),v=(0,F.d)()?b?m.X.h5:m.X.h3:void 0;return(0,l.jsx)("section",{className:_().sectionWrapper,id:y,children:(0,l.jsxs)(a.m,{maxContentWidth:(0,X.gi)(X.pc.gddsFullGrid),children:[(0,l.jsx)(I.Headline,{title:u,subtitle:f,text:x,textClassName:_().text,tag:"h2",textHeadlineTag:v,trackPageSection:"lead-module"}),(0,l.jsx)(d.f,{children:(0,l.jsx)(c.f,{size:D[h.length],children:(0,l.jsx)("div",(0,s._)((0,n._)({className:_()[["","one-of-one","one-of-two","one-of-three","one-of-four"][h.length]]},(0,W.q)("#st_leadModules")),{children:h.map(function(e,o){return(0,l.jsx)(L,(0,n._)({headline:e.headline,text:e.text,itemIndex:o,itemsSize:h.length,isChild:b},e),i()(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.