1"use strict";(self.webpackChunk_griddo_cx=self.webpackChunk_griddo_cx||[]).push([[1400],{84666:function(e,t,l){l.r(t);var i=l(26322),n=l(81816),a=l(19491),o=l(55354),r=l(71932),c=l(39816),s=l(82086),d=l(52296),m=l(58552),u=l(32356),h=l(70278),x=l(11441),p=l.n(x),g=l(95437),f=l(37447),v=l(52343);const{Module:w}=f.A,y=(0,v.default)(h.Flex).withConfig({displayName:"HeroProgramVideo__Wrapper",componentId:"sc-r96hin-0"})(["flex-direction:column;width:100%;"]),b=(0,v.keyframes)(["0%{transform:translateY(100%);}100%{transform:translateY(-100%);}"]),E=(0,v.default)(h.Text).withConfig({displayName:"HeroProgramVideo__StyledText",componentId:"sc-r96hin-1"})(["position:absolute;width:100%;text-align:center;animation:"," 4s linear infinite;"],b),k=(0,v.default)(h.Text).withConfig({displayName:"HeroProgramVideo__StyledTextDelayed",componentId:"sc-r96hin-2"})(["position:absolute;width:100%;text-align:center;animation:"," 4s linear infinite;animation-delay:2s;transform:translateY(100%);"],b),I=({isTablet:e,image:t,veil:l,children:n,URL:a,adBlockEnabled:o})=>{const[s,d]=i.useState();return(0,i.useEffect)(()=>{var e;null!=t&&null!==(e=t.file)&&void 0!==e&&e.URL||(async e=>{if(e.includes("youtube")||e.includes("youtu.be")){const t=await(0,m.$6)(e);d(t)}else if(e.includes("vimeo")){const t=await(0,m.ex)(e);d(t)}})(a)},[a]),i.createElement(h.Flex,{position:"relative",height:"100%",width:"100%",overflow:"hidden"},o?!a||!s||null!=t&&t.file?i.createElement(r.A,{image:null==t?void 0:t.file,title:null==t?void 0:t.title,alt:null==t?void 0:t.alt,lazy:!1,fetchPriority:"high",widths:["600","1600","2000"],sizes:"100vw",sources:[{media:"(max-width:599px)",width:"150",height:"300"},{media:"(min-width:768px)",width:"500",height:"300"},{media:"(min-width:1024px)",width:"1024",height:"550"}],overlayOpacity:null!=t&&t.veil&&0!==(null==t?void 0:t.veil)?(null==t?void 0:t.veil)/100:.001}):i.createElement(c.A,{url:s,title:"Youtube video thumbnail",alt:"Video from Youtube",lazy:!1,overlayOpacity:l/100}):!a||!s||null!=t&&t.file?e&&i.createElement(r.A,{image:null==t?void 0:t.file,title:null==t?void 0:t.title,alt:null==t?void 0:t.alt,lazy:!1,eager:!0,fetchPriority:"high",widths:["600","1024"],sizes:"100vw",sources:[{media:"(max-width:599px)",width:"150",height:"300"},{media:"(min-width:768px)",width:"500",height:"300"},{media:"(min-width:1024px)",width:"1024",height:"550"}],overlayOpacity:null!=t&&t.veil&&0!==(null==t?void 0:t.veil)?(null==t?void 0:t.veil)/100:.001}):i.createElement(c.A,{url:s,title:"Youtube video thumbnail",alt:"Video from Youtube",lazy:!1,overlayOpacity:l/100}),i.createElement(h.Flex,{height:"100%",width:"100%",bg:e||!e&&o?"transparent":"black"},n))};t.default=({anchorID:e,titleOverwrite:t=!0,noShowTitle:l,subtitle:r,image:c,imageDesktop:m,button:x,downloadBrochureHeroButton:f,applyHeroButton:v,video:b,veil:T,automaticSubtitles:S,newElement:A})=>{var B,z;const _=(0,u.ig)({name:"inverse"}),{title:H,breadcrumb:P,pageLanguages:C,languageId:U}=(0,u.N5)(),{isEditor:Y}=(0,u.J5)(),{getNestedTranslation:D}=(0,u.s9)(),V=D("modules.programDistributor.new","new"),W=[];(null==f?void 0:f.link)&&W.push(f),(null==v?void 0:v.link)&&W.push(v);const F=(0,u.Ub)("(max-width: 320px)"),N=(0,u.Ub)("(max-width: 600px)"),j=(0,u.Ub)("(max-width: 1024px)"),L=(0,u.Ub)("(max-width: 1216px)"),O=t&&!Y&&C?(null===(B=C.find(e=>e.languageId===U))||void 0===B?void 0:B.title)||(null===(z=C[0])||void 0===z?void 0:z.title):H,R=b&&(b.includes("youtube")||b.includes("youtu.be")),$=b&&b.includes("vimeo"),M=R?`https://www.youtube.com/watch?v=${(0,d.W5)(b)}`:b&&`https://player.vimeo.com/video/${(0,d.Ve)(b)}?autoplay=1&loop=1&autopause=0&background=1`,{0:q,1:G}=(0,i.useState)(!1);(0,i.useEffect)(()=>{(async()=>{try{(await fetch(new Request("https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"))).ok||G(!0)}catch(e){G(!0)}})()},[]);const J=!(j||q||!b||!M),{0:Z,1:K}=(0,i.useState)(!1),{0:Q,1:X}=(0,i.useState)(!1),{0:ee,1:te}=(0,i.useState)(!1);return(0,i.useEffect)(()=>{if(K(!1),X(!1),te(!1),!J)return;const e=setTimeout(()=>K(!0),1500);return()=>clearTimeout(e)},[J,M]),i.createElement(i.Fragment,null,b&&i.createElement(g.m,null,R&&i.createElement("link",{rel:"prec
1onnect",href:"https://www.youtube.com",crossorigin:!0}),R&&i.createElement("link",{rel:"preconnect",href:"https://www.youtube-nocookie.com",crossorigin:!0}),R&&i.createElement("link",{rel:"preconnect",href:"https://i.ytimg.com",crossorigin:!0}),$&&i.createElement("link",{rel:"preconnect",href:"https://player.vimeo.com",crossorigin:!0}),$&&i.createElement("link",{rel:"preconnect",href:"https://i.vimeocdn.com",crossorigin:!0})),i.createElement(o.NP,{theme:_},i.createElement(w,{id:e,bleed:!0,fluid:!0,noMaxWidth:!0,fit:"both",transparent:!0,position:"relative",bg:"white",noTransition:!0,style:{zIndex:"0"}},i.createElement(h.Box,{display:"flex",alignItems:"center",width:"100%",height:"fit-content",minHeight:{default:"65vh",l:"calc(100vh - 150px)",xl:"calc(100vh - 190px)",xxl:"calc(100vh - 282px)"},overflow:"hidden"},i.createElement(I,{image:F||N?c:m,isTablet:j,adBlockEnabled:q,URL:M,veil:T},Z&&J&&i.createElement(p(),{url:M,height:"56.25vw",width:"100%",style:{position:"absolute",left:0,top:"50%",transform:"translate(0, -50%)"},playing:!0,loop:!0,muted:!0,pip:!0}),i.createElement(y,{style:{zIndex:"0",background:!j&&b&&void 0!==T?`rgba(0, 0, 0, ${T/100})`:"none"},height:"fit-content",minHeight:{default:"65vh",l:"calc(100vh - 150px)",xl:"calc(100vh - 190px)",xxl:"calc(100vh - 282px)"}},i.createElement(h.Flex,{zIndex:"1",flexGrow:1,flexDirection:"column",justifyContent:"center",alignItems:"center",textAlign:"center",px:a.Es.moduleSidePadding,pt:L?"96px":"131px",pb:"s"},A&&i.createElement(h.Flex,{justifyContent:"center",alignItems:"center",width:"100px",height:"20px",overflow:"hidden",bg:"brand01",px:"m",mb:"s",mt:{default:0,m:"m"},position:"relative"},i.createElement(E,{textStyle:"heading3xs",color:"#fff"},V),i.createElement(k,{textStyle:"heading3xs",color:"#fff"},V)),O&&!l&&i.createElement(h.Box,{mb:{default:"xs",m:"s",l:"m"}},i.createElement(h.Text,{as:"h1",color:"text01",textStyle:"headingxl",caps:!0,style:{textWrap:"balance"}},i.createElement(s.A,{allowAllTypes:!0,source:O}))),r&&i.createElement(h.Box,{pb:{default:"0",m:"xxs"},mb:{default:"xs",m:"s"}},i.createElement(h.Text,{as:"div",color:"text01",textStyle:"subtitle01",style:{textWrap:"balance"}},i.createElement(s.A,{allowAllTypes:!0,source:r}))),j&&x&&b&&i.createElement(n.Av,{component:"HeroProgramVideo",url:b,text:x,automaticSubtitles:S}),Array.isArray(W)?i.createElement(h.Stack,{flexDirection:F?"column":"row",justifyContent:!F&&"center",my:"xs",hs:F?"0px":N&&!F?"xxs":"s",vs:F&&"xxs",width:null!=N?N:"100%"},W.map((e,t)=>i.createElement(h.Box,{maxWidth:{default:"319.5px",m:"36.5vw",xl:"411px"}},i.createElement(n.Ui,{key:t,component:"DescriptionButton",link:e.link,auxText:e.auxText,appearance:e.style,leftIcon:e.showLeftIcon&&e.leftIcon,rightIcon:e.showRigthIcon&&e.rightIcon,minWidth:F||0!==t?N?"100%":"225px":"211px",minHeight:"48px"})))):null),(null==P?void 0:P.length)&&i.createElement(h.Box,{alignSelf:{default:"start",l:"center"},zIndex:"1",mb:"xxl",mx:{defult:"xs",m:"57px",l:0}},i.createElement(n.YZ,{currentPageTitle:O,links:P}))))))))}}}]);
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.