PageSourceSearch

https://www.profikarstensen.de/_next/static/chunks/15-dd28bb9ebdd564e8.js

js profikarstensen.de collected 2026-10-05 03:41:37 UTC 190,690 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[15],{8161:function(e,t,l){"use strict";var a=l(2846);function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(this,arguments)}t.Z=function(e){return a.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 27.29 50.18"},e),a.createElement("defs",null,a.createElement("clipPath",{id:"Agrar_svg__a"},a.createElement("path",{d:"M0 0h27.29v50.18H0z",style:{fill:"none"}}))),a.createElement("g",{style:{clipPath:"url(#Agrar_svg__a)",fill:"none"}},a.createElement("path",{d:"M21.1 40.04c-1.77 1.54-4.15 2-6.17 1.23-.47-2.12.32-4.4 2.09-5.94 1.92-1.66 5.69-3.11 7.95-2.77.02 2.27-1.94 5.8-3.87 7.48m-8.75 1.23c-2.03.76-4.4.3-6.17-1.23-1.93-1.67-3.89-5.21-3.87-7.48 2.25-.34 6.03 1.1 7.95 2.77 1.77 1.54 2.56 3.82 2.09 5.94M7.03 23.62c.28.15.56.27.85.38.91.44 1.75.96 2.37 1.5 1.77 1.54 2.56 3.82 2.09 5.94-2.03.77-4.4.31-6.17-1.23C4.24 28.54 2.28 25 2.3 22.73c1.29-.19 3.07.21 4.73.89m-.27-2.99c-1.71-1.58-3.39-4.84-3.34-6.92 2.07-.2 5.46 1.22 7.16 2.79.04.04.07.08.11.12 1.1 1.07 1.73 2.46 1.78 3.87v.04c.02.48-.03.95-.14 1.42-1.15.38-2.4.34-3.56-.09-.24
1-.12-.49-.23-.75-.33-.45-.24-.87-.54-1.26-.9m6.86-17.92c1.72 1.46 3.1 5.24 3.1 7.78 0 2.34-1.2 4.42-3.1 5.45-.46-.25-.87-.56-1.24-.92l-.09-.09c-1.11-1.13-1.77-2.71-1.77-4.44 0-2.53 1.38-6.31 3.1-7.78m10.23 11c.05 2.08-1.64 5.34-3.34 6.92-.39.36-.81.66-1.26.9-.26.11-.51.22-.75.34-1.16.42-2.41.47-3.56.09a5.24 5.24 0 0 1-.15-1.42v-.04c.06-1.46.72-2.9 1.9-3.99 1.7-1.57 5.08-2.99 7.16-2.79m1.12 9.02c.02 2.27-1.94 5.8-3.87 7.48-1.77 1.54-4.15 2-6.17 1.23-.47-2.12.32-4.4 2.09-5.94.63-.54 1.46-1.06 2.37-1.5.29-.11.58-.24.86-.39 1.65-.68 3.43-1.08 4.72-.88m2.04 8.04-.58-.22c-.66-.25-1.4-.35-2.19-.35 1.88-2.41 3.53-5.96 2.91-8.66l-.14-.6-.58-.22c-.8-.3-1.73-.4-2.71-.33 1.6-2.3 2.92-5.52 2.28-7.94l-.16-.6-.58-.2c-1.87-.64-4.32-.11-6.46.83.15-.64.23-1.31.23-2 0-3.11-1.73-8.54-4.87-10.21L13.61 0l-.55.29C10.05 1.91 8.2 7.32 8.2 10.49c0 .68.08 1.34.22 1.98-2.12-.93-4.55-1.44-6.4-.81l-.59.2-.16.6c-.64 2.42.68 5.64 2.28 7.94-.98-.06-1.91.03-2.71.33l-.58.22-.14.6c-.62 2.7 1.03 6.24 2.91 8.65-.79 0-1.54.1-2.19.35l-.58.22-.14.6c-.8 3.47 2.17 8.36 4.53 10.4 1.64 1.42 3.67 2.16 5.68 2.16.72 0 1.44-.11 2.14-.3v6.53h2.31v-6.53c.7.19 1.42.3 2.14.3 2.01 0 4.04-.74 5.68-2.16 2.36-2.05 5.33-6.93 4.53-10.4l-.14-.6Z",style:{fill:"currentColor"}})))}},5906:function(e,t,l){"use strict";var a=l(2846);function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(this,arguments)}t.Z=function(e){return a.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 49.23 33.69"},e),a.createElement("path",{d:"M13.81 23.16h21.48v8.45H13.81v-8.45ZM2.09 12.62h21.48v8.45H2.09v-8.45Zm23.57 0h21.48v8.45H25.66v-8.45ZM13.87 2.09h21.48v8.45H13.87V2.09ZM11.78 0v10.53H0v12.62h11.72v10.54h25.66V23.15h11.85V10.53H37.44V0H11.79Z",style:{fill:"currentColor"}}))}},7847:function(e,t,l){"use strict";var a,n,r,s=l(2846);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(this,arguments)}t.Z=function(e){return s.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",id:"Energie_svg__Ebene_1",viewBox:"0 0 32.54 44.75"},e),s.createElement("defs",null,s.createElement("clipPath",{id:"Energie_svg__clippath"},s.createElement("path",{d:"M0 0h32.53v44.75H0z",style:{fill:"none"}})),a||(a=s.createElement("style",null,".Energie_svg__cls-3{fill:currentColor}"))),s.createElement("g",{style:{clipPath:"url(#Energie_svg__clippath)",fill:"none"}},n||(n=s.createElement("path",{d:"M4.24 21.72a13.833 13.833 0 0 0-1.77 6.76c0 7.61 6.19 13.8 13.8 13.8s13.8-6.19 13.8-13.8c0-4.18-2.43-6.58-5.23-9.35-3.38-3.34-7.17-7.08-7.17-14.51-4.32 3.16-6.72 7.59-7.15 13.21-.37 4.9.97 8.92.98 8.96l.97 2.85-2.69-1.34c-.2-.1-4.17-2.14-5.52-6.58m12.02 23.03C7.3 44.75 0 37.45 0 28.48c0-3.99 1.46-7.83 4.11-10.81l2.22-2.49-.06 3.33c-.04 2.46.98 4.28 2.08 5.53-.87-5.62-.89-16.57 10.05-22.85l2.09-1.2-.24 2.39c-.81 7.93 2.82 11.52 6.32 14.98 2.93 2.9 5.96 5.89 5.96 11.11 0 8.97-7.3 16.27-16.27 16.27",className:"Energie_svg__cls-3"})),r||(r=s.createElement("path",{d:"m20.32 38.87-.89-2.31a9.396 9.396 0 0 0 5.8-6.84l2.42.5c-.81 3.96-3.56 7.2-7.34 8.65",className:"Energie_svg__cls-3"}))))}},8723:function(e,t,l){"use strict";var a,n=l(2846);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(this,arguments)}t.Z=function(e){return n.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",width:32,height:24,fill:"none"},e),a||(a=n.createElement("path",{fill:"currentColor",d:"M30.414 12 24 18.414 22.586 17l4-4H2v-2h24.586l-4-4L24 5.586 30.414 12Z"})))}},9663:function(e,t,l){"use strict";var a,n=l(2846);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(this,arguments)}t.Z=function(e){return n.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},e),a||(a=n.createElement("path",{fill:"currentColor",d:"M22.414 12 14 20.414 12.586 19l6-6H2v-2h16.586l-6-6L14 3.586 22.414 12Z"})))}},2981:function(e,t,l){"use strict";var a,n=l(2846);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(this,arguments)}t.Z=function(e){return n.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),a||(a=n.createElement("path",{fill:"currentColor",d:"m12 14.586-7-7L3.586 9 12 17.414 20.414 9 19 7.586l-7 7Z"})))}},4155:function(e,t,l){"use strict";var a,n=l(2846);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(this,arguments)}t.Z=function(e){return n.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},e),a||(a=n.createElement("path",{fill:"currentColor",d:"m9.414 12 7-7L15 3.586 6.586 12 15 20.414 16.414 19l-7-7Z"})))}},5901:function(e,t,l){"use strict";var a,n=l(2846);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(this,arguments)}t.Z=function(e){return n.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},e),a||(a=n.createElement("path",{fill:"currentColor",d:"M12 10.586 5.636 4.222 4.222 5.636 10.586 12l-6.364 6.364 1.414 1.414L12 13.414l6.364 6.364 1.414-1.414L13.414 12l6.364-6.364-1.414-1.414L12 10.586Z"})))}},2553:function(e,t,l){"use strict";var a,n,r=l(2846);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(this,arguments)}t.Z=function(e){return r.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},e),r.createElement("mask",{id:"maps_svg__a",width:24,height:24,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},a||(a=r.createElement("path",{fill:"currentColor",d:"M0 0h24v24H0z"}))),n||(n=r.createElement("g",{mask:"url(#maps_svg__a)"},r.createElement("path",{fill:"currentColor",d:"M12 12c.55 0 1.02-.196 1.412-.588.392-.391.588-.862.588-1.412 0-.55-.196-1.02-.588-1.412A1.926 1.926 0 0 0 12 8c-.55 0-1.02.196-1.412.588A1.926 1.926 0 0 0 10 10c0 .55.196 1.02.588 1.412.391.392.862.588 1.412.588Zm0 7.35c2.033-1.867 3.542-3.563 4.525-5.088C17.508 12.738 18 11.383 18 10.2c0-1.817-.58-3.304-1.738-4.462C15.104 4.579 13.683 4 12 4c-1.683 0-3.104.58-4.263 1.737C6.58 
16.896 6 8.383 6 10.2c0 1.183.492 2.538 1.475 4.063.983 1.524 2.492 3.22 4.525 5.087ZM12 22c-2.683-2.283-4.688-4.404-6.013-6.363C4.662 13.68 4 11.867 4 10.2c0-2.5.804-4.492 2.412-5.975C8.021 2.742 9.883 2 12 2s3.98.742 5.587 2.225C19.197 5.708 20 7.7 20 10.2c0 1.667-.663 3.48-1.988 5.438C16.688 17.595 14.683 19.716 12 22Z"}))))}},4188:function(e,t,l){"use strict";var a,n=l(2846);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(this,arguments)}t.Z=function(e){return n.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},e),a||(a=n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M14.5 6.5a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0Zm2 0a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0ZM21 21a9.001 9.001 0 0 0-18 0v1h18v-1Zm-9-7a7.002 7.002 0 0 0-6.93 6h13.86A7.001 7.001 0 0 0 12 14Z",clipRule:"evenodd"})))}},2771:function(e,t,l){"use strict";var a,n,r,s=l(2846);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(this,arguments)}t.Z=function(e){return s.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},e),s.createElement("g",{clipPath:"url(#search_svg__a)"},s.createElement("mask",{id:"search_svg__b",width:24,height:24,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},a||(a=s.createElement("path",{fill:"currentColor",d:"M0 0h24v24H0z"}))),n||(n=s.createElement("g",{mask:"url(#search_svg__b)"},s.createElement("path",{fill:"currentColor",d:"m19.6 21-6.3-6.3A6.096 6.096 0 0 1 9.5 16c-1.817 0-3.354-.63-4.612-1.887C3.629 12.854 3 11.317 3 9.5c0-1.817.63-3.354 1.888-4.612C6.146 3.629 7.683 3 9.5 3c1.817 0 3.354.63 4.613 1.888C15.37 6.146 16 7.683 16 9.5a6.096 6.096 0 0 1-1.3 3.8l6.3 6.3-1.4 1.4ZM9.5 14c1.25 0 2.313-.438 3.188-1.313C13.562 11.813 14 10.75 14 9.5c0-1.25-.438-2.313-1.313-3.188C11.813 5.438 10.75 5 9.5 5c-1.25 0-2.313.438-3.188 1.313S5 8.25 5 9.5c0 1.25.438 2.313 1.313 3.188C7.188 13.562 8.25 14 9.5 14Z"})))),r||(r=s.createElement("defs",null,s.createElement("clipPath",{id:"search_svg__a"},s.createElement("path",{fill:"#fff",d:"M0 0h24v24H0z"})))))}},7941:function(e,t,l){"use strict";l.d(t,{M:function(){return n}});var a=l(2215);let n={PUBLIC_ACCESS_TOKEN:"guqRnkr1xJbuDMVf2QRGvAtt",PREVIEW_ACCESS_TOKEN:"5Q2OYIEFg57xGsa0VKW3wwtt",ASSET_ACCESS_TOKEN:a.env.STORYBLOK_ASSET_ACCESS_TOKEN||"",SPACE_ID:a.env.STORYBLOK_SPACE_ID||"252781",CONTACT_ASSETS_FOLDER_ID:a.env.STORYBLOK_CONTACT_ASSETS_FOLDER_ID||"336547",MANAGEMENT_ACCESS_TOKEN:a.env.STORYBLOK_MANAGEMENT_ACCESS_TOKEN||a.env.STORYBLOK_PERSONAL_ACCESS_TOKEN||"",VERSION_MODE:a.env.STORYBLOK_VERSION_MODE||"published",SITEMAP_ACCEPTED_PAGE_TYPES:["page","news_article","location"],locationsBauParentFolderId:a.env.STORYBLOK_BAU_LOCATIONS_PARENT_FOLDER_ID||"421197519",locationsEnergiehandelParentFolderId:a.env.STORYBLOK_ENERGIEHANDEL_LOCATIONS_PARENT_FOLDER_ID||"421197520",locationsTankstellenParentFolderId:a.env.STORYBLOK_TANKSTELLEN_LOCATIONS_PARENT_FOLDER_ID||"421197522",locationsAgrarParentFolderId:a.env.STORYBLOK_AGRAR_LOCATIONS_PARENT_FOLDER_ID||"421197518",locationsTankautomatenParentFolderId:a.env.STORYBLOK_TANKAUTOMATEN_LOCATIONS_PARENT_FOLDER_ID||"421197523",ASSETSDOMAIN:"assets.team.de",BRAND_FOLDER:"b__profikarstensen",BRAND_FOLDER_PREFIX:"b__"}},7069:function(e,t,l){"use strict";var a=l(3827),n=l(703),r=l(8792),s=l(3737),i=l(7864),o=l(9097),c=l(2553),d=l(2771),m=l(985);t.Z=e=>{let t=(0,i.l)(e=>e.showSearchOverlay);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.Z,{headerName:null==e?void 0:e.header}),(0,a.jsxs)("div",{className:"grid grid-cols-4 gap-x-2 md:flex md:flex-col md:gap-y-10 ",children:[e.socialLinks.length>0&&(0,a.jsx)("div",{className:"grid grid-cols-3 max-w-[124px] col-span-2 gap-0.5",children:e.socialLinks.map(e=>{var t,l,s,i;return(0,a.jsx)("li",{className:"list-none social-links items-center",children:(0,a.jsx)(r.default,{prefetch:!1,title:"".concat(e.name),className:"text-base text-body text-body-primary no-underline hover:no-underline",rel:"noopener noreferrer",href:(0,o.Q)(null==e?void 0:e.social_link),target:(null===(t=e.social_link)||void 0===t?void 0:t.linktype)==="url"?"_blank":"_self",children:(0,a.jsx)(n.default,{src:null===(l=e.social_icon)||void 0===l?void 0:l.filename,width:40,height:40,unoptimized:!0,alt:null!==(i=null===(s=e.social_icon)||void 0===s?void 0:s.alt)&&void 0!==i?i:""})})},e._uid)})}),(0,a.jsxs)("div",{className:"flex flex-col col-span-2 md:items-start pt-2 md:pt-0 gap-3 md:gap-2",children:[m.Vw&&(0,a.jsxs)("li",{className:"list-none flex flex-row gap-3 items-center",children:[(0,a.jsx)(c.Z,{alt:""}),(0,a.jsx)(r.default,{className:"text-base link-text text-text-body-primary hover:text-neutral-900 no-underline hover:no-underline",rel:"noopener noreferrer",href:{pathname:"/standort"},children:"Standorte"})]}),m.Yb&&(0,a.jsxs)("li",{className:"list-none flex flex-row gap-3 items-center",children:[(0,a.jsx)(d.Z,{alt:""}),(0,a.jsx)("button",{className:"text-base link-text text-text-body-primary hover:text-neutral-900 no-underline hover:no-underline",onClick:()=>t(!0),children:"Suche"})]})]})]})]})}},8745:function(e,t,l){"use strict";l.d(t,{Z:function(){return c}});var a=l(3827),n=l(3167),r=l(3737),s=l(8792),i=l(9097),o=e=>{var t,l;return(0,a.jsx)("nav",{id:null==e?void 0:null===(t=e.header)||void 0===t?void 0:t.split(" ").join("-"),children:(0,a.jsx)("ul",{className:"flex flex-col gap-2 flex-wrap",children:null===(l=e.footerLinks)||void 0===l?void 0:l.map(e=>{var t;return(0,a.jsx)("li",{className:"list-none w-full break-words hyphens-auto",children:(0,a.jsx)(s.default,{prefetch:!1,className:"text-base text-text-body-primary hover:text-neutral-900 no-underline hover:no-underline",rel:"noopener noreferrer",href:(0,i.Q)(e.link),target:null===(t=e.link)||void 0===t?void 0:t.target,children:e.name})},e._uid)})})})},c=e=>{var t;let l=12-2*e.navigationLinks.length+1;return null===(t=e.navigationLinks)||void 0===t?void 0:t.map((e,t)=>{let s=l+2*t,i=(0,n.Z)({"md:col-start-5":5===s,"md:col-start-7":7===s,"md:col-start-9":9===s,"md:col-start-11":11===s});return(0,a.jsxs)("div",{className:"col-span-2 ".concat(i),children:[(0,a.jsx)(r.Z,{headerName:null==e?void 0:e.footer_nav_header}),(0,a.jsx)(o,{footerLinks:e.footer_navigation_links,header:e.footer_nav_header})]},e._uid)})}},473:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return h}});var a=l(3827),n=l(4090),r=l(6511),s=l(3167),i=l(8792),o=l(7907),c=l(6054),d=l(5189);let m=()=>
1{let[e,t]=(0,n.useState)({width:0,height:0});return(0,n.useEffect)(()=>{let e=()=>t({width:window.innerWidth,height:window.innerHeight});return window.addEventListener("resize",e),e(),()=>window.removeEventListener("resize",e)},[]),e};var u=l(9097),p=l(7069),x=l(8745),h=e=>{var t,l,h;let{width:f}=m(),{isMd:g}=(0,d.G)("md"),v=(0,n.useRef)(null),b=(0,n.useRef)(null),j=(0,n.useRef)(0),y=(0,n.useRef)(0),w=(0,n.useRef)(0),N=(0,n.useRef)(0),_=(0,n.useRef)(0),k=e.blok.contact_us_caption||e.blok.contact_us_headline||e.blok.contact_us_cta_link||e.blok.contact_us_cta_label;(0,n.useEffect)(()=>{var e,t;let l=g?656:f,a=(null===(e=v.current)||void 0===e?void 0:e.clientHeight)||0,n=(null==b?void 0:null===(t=b.current)||void 0===t?void 0:t.clientHeight)||0;N.current=n,y.current=f/100*4,w.current=Math.round(l*Math.tan(-6)),j.current=g?a+y.current:a,_.current=g?32:20},[f,g]);let E=(0,o.usePathname)(),Z=E.split("/").filter(e=>e),S=Z.includes("standort")&&Z.length>1?{slug:E,name:Z[Z.indexOf("standort")+2],type:Z[Z.indexOf("standort")+1]}:void 0;return(0,n.useEffect)(()=>{let e=document.querySelectorAll("footer[data-blok-uid]"),t="visual-editor-footer-style";if(e.length>1&&"/footer-config"===E){let e=document.getElementById(t)||document.createElement("style");e.innerHTML="\n        main + footer {\n          display: none !important;\n        }\n      ",e.id=t,document.head.appendChild(e)}return()=>{let e=document.getElementById(t);e&&e.remove()}},[E]),(0,a.jsxs)("footer",{ref:v,style:{marginTop:"".concat(N.current+(g?y.current:0)+_.current,"px")},className:"bg-surface-neutral-50 pb-24 pt-20 md:pt-20 px-4 md:px-16 w-full relative after:-z-10 after:origin-top-left after:absolute after:w-full after:h-full after:content-[''] after:bg-inherit after:top-0 after:right-0 after:bottom-0 after:left-0 after:-skew-y-6 z-10",...(0,r.LF)(e.blok),children:[(0,a.jsx)("div",{ref:b,id:"orange-box",style:{bottom:j.current},className:"w-full absolute right-1/2 translate-x-1/2 -z-10 md:w-[656px] md:z-10",children:k&&(0,a.jsxs)("div",{className:(0,s.Z)("bg-surface-primary relative w-full h-full max-md:after:hidden after:bg-yellow after:origin-right after:absolute after:w-full after:h-full after:content-[''] after:bg-inherit after:top-0 after:right-0 after:bottom-0 after:left-0 after:-skew-y-6","pt-large md:pt-3xlarge px-double md:px-large pb-xlarge md:pb-large flex flex-col md:flex-row gap-triple md:gap-large md:items-center md:justify-between"),children:[(e.blok.contact_us_caption||e.blok.contact_us_headline)&&(0,a.jsxs)("div",{className:"z-50",children:[e.blok.contact_us_caption&&(0,a.jsx)(c.default,{className:"!text-sm gap-base pb-base md:pb-small text-text-neutral-0",slashIconClassName:"!text-neutral-neutral-0",children:e.blok.contact_us_caption}),e.blok.contact_us_headline&&(0,a.jsx)("p",{className:"hyphens-auto text-text-neutral-0 font-sanscondensed uppercase font-extrabold text-3xl md:text-4xl",children:e.blok.contact_us_headline})]}),e.blok.contact_us_cta_label&&e.blok.contact_us_cta_link&&(0,a.jsx)("div",{className:"z-50",children:(0,a.jsx)(i.default,{prefetch:!1,className:"py-3 px-double bg-button-surface-primary-neutral-800 inline-block text-button-text-primary text-sm font-bold leading-[100%] tracking-[0.28px] font-sans uppercase",href:"".concat((0,u.Q)(e.blok.contact_us_cta_link)).concat(S?"?standort=".concat(S.name,"&typ=").concat(S.type):""),target:"url"===e.blok.contact_us_cta_link.linktype?"_blank":"_self",children:e.blok.contact_us_cta_label})})]})}),(0,a.jsxs)("div",{className:"relative container max-md:px-0 grid grid-cols-4 gap-12 gap-x-2 md:pt-14 md:justify-between md:grid-cols-12 md:gap-4",children:[(0,a.jsx)("div",{className:"col-span-4 md:col-span-3 lg:col-span-2 md:col-start-1 border-b border-stroke-neutral-200 pb-14 md: md:border-0 md:pb-0",children:(0,a.jsx)(p.Z,{header:null===(t=e.blok)||void 0===t?void 0:t.header,socialLinks:null===(l=e.blok)||void 0===l?void 0:l.social_links})}),(0,a.jsx)(x.Z,{navigationLinks:null===(h=e.blok)||void 0===h?void 0:h.navigational_links_right})]})]})}},3737:function(e,t,l){"use strict";var a=l(3827);t.Z=e=>(0,a.jsx)("div",{className:"text-sm mb-4 text-text-headlines font-bold uppercase text-left font-sanscondensed break-words hyphens-auto",children:e.headerName})},3058:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return G}});var a,n,r=l(3827),s=l(4090),i=l(7907),o=l(3370),c=l(3167),d=l(3707),m=e=>{let{id:t,isMobile:l}=e;return(0,r.jsxs)("form",{action:"/standort",method:"GET",className:"pb-4",children:[(0,r.jsx)("label",{className:"block text-body-lg text-text-headlines font-bold font-sanscondensed mb-3",htmlFor:"area",children:"Standorte in Ihrer N\xe4he"}),(0,r.jsxs)("div",{className:"flex items-end gap-2",children:[(0,r.jsx)("input",{className:(0,
1c.Z)("peer block h-12 bg-input-surface-neutral-50 pl-4 md:pr-14 text-body-md focus:outline-none placeholder:text-input-text-label-idle placeholder:text-base",l?"flex-1":"w-[312px]"),name:"area",placeholder:"Ort oder PLZ",id:t,type:"text"}),(0,r.jsx)(d.Z,{className:"text-btn-sm h-12 peer-invalid:opacity-70 peer-invalid:pointer-events-none",variant:"primary",type:"submit",as:"button",target:"_self",children:"Suche"})]})]})},u=l(8161),p=l(5906),x=l(7847),h=l(2846);function f(){return(f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(this,arguments)}var g=l(703),v=l(6054),b=e=>{let{children:t,element:l="div",className:a}=e;return(0,r.jsx)(l,{children:t&&(0,r.jsx)(v.default,{className:a,children:t})})},j=l(8792),y=l(8723),w=e=>{let{children:t,className:l,hasArrow:a,href:n,closeMobileMenu:s,isArrowStretched:i=!1}=e,o=(null==n?void 0:n.startsWith("https://"))||(null==n?void 0:n.startsWith("http://"));return(0,r.jsx)(j.default,{prefetch:!1,className:(0,c.Z)("hover:no-underline",i?"items-start":"items-center",a?"text-body-lg text-text-headlines font-sanscondensed font-bold flex hover:text-link-text-hover-menu":"block text-body-md text-link-menu-text hover:text-link-text-hover",l),href:{pathname:o?n:"/"+n},onClick:s,target:o?"_blank":"_self",children:a?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:(0,c.Z)({"flex-1 shrink":i,"md:flex-none":void 0!==l}),children:t}),(0,r.jsx)(y.Z,{className:"ml-double pt-0.5 md:pt-1 shrink-0"})]}):t})},N=e=>{let{children:t,className:l,href:a,image:n,label:s}=e;return(0,r.jsxs)("figure",{className:(0,c.Z)(l),children:[(0,r.jsx)(g.default,{alt:n.alt,className:"w-full mb-double",height:0,sizes:"100vh",src:n.src,style:{height:"auto",width:"100%"},width:0,loading:"lazy"}),(0,r.jsx)(b,{className:"!pb-0",element:"figcaption",children:s}),(0,r.jsx)(w,{hasArrow:!0,href:a,isArrowStretched:!0,children:t})]})},_=e=>{let t=function(e,t){let l=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:(0,c.Z)("mr-base",{hidden:!t||l}),children:"/"}),(0,r.jsx)("span",{className:(0,c.Z)({italic:t}),children:e})]})};return"link"===e.type?(0,r.jsx)(j.default,{prefetch:!1,className:(0,c.Z)("block uppercase font-extrabold text-headline-sm font-sanscondensed hover:text-link-text-hover-menu hover:no-underline",e.isActive?"text-link-text-hover-menu":"text-button-text-secondary-neutral-800",e.className),href:{pathname:"/"+e.href},onMouseEnter:e.onHover,children:t(e.children,e.isActive)}):"button"===e.type?(0,r.jsx)("button",{className:(0,c.Z)("block uppercase font-extrabold font-sanscondensed p-0 border-none text-headline-sm text-button-text-secondary-neutral-800 mb-double",e.isMobile?"":"hover:text-link-text-hover-menu",e.className),onClick:e.onClick,children:t(e.children,!1)}):(0,r.jsx)("p",{className:(0,c.Z)("block uppercase font-extrabold font-sanscondensed text-link-text-hover-menu",e.isNav?"text-3xl":"text-headline-sm",e.className),children:t(e.children,!0,e.isNav)})};let k={energy:(0,r.jsx)(x.Z,{className:"w-triple h-triple"}),house:(0,r.jsx)(function(e){return h.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 49.39 45.88"},e),h.createElement("defs",null,h.createElement("clipPath",{id:"Privatkunden_svg__a"},h.createElement("path",{d:"M0 0h49.39v45.88H0z",style:{fill:"none"}}))),h.createElement("g",{style:{clipPath:"url(#Privatkunden_svg__a)",fill:"none"}},h.createElement("path",{d:"m44.48 20.5 3.9 3.88M4.9 20.5 1 24.38M24.69 1 4.9 20.5v24.38h13.75V30.81h12.08v14.07h13.75V20.5L24.69 1Z",style:{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,fill:"none"}})))},{className:"w-triple h-triple"}),tools:(0,r.jsx)(p.Z,{className:"w-triple h-triple"}),wheat:(0,r.jsx)(u.Z,{className:"w-triple h-triple"})};var E=e=>{let{additionalLinks:t,additionalLinksHeadline:l,mobileActiveNavigation:a,onMobileNavChange:n,subNavigation:i,closeMobileMenu:o}
1=e,[d,u]=(0,s.useState)(i[0]),p=i.find(e=>{let{key:t}=e;return t===(null==a?void 0:a[1])}),x=!!n,h=x&&(null==p?void 0:p.link.alternativeLabel)?{href:p.link.href,label:p.link.alternativeLabel}:!x&&d.link.alternativeLabel?{href:d.link.href,label:d.link.alternativeLabel}:void 0,f=()=>(0,r.jsxs)("div",{className:(0,c.Z)("flex flex-col h-full pt-3xlarge pb-2xlarge lg:pt-2xlarge lg:pb-10 min-w-[240px]",{"border-r-base border-surface-neutral-50 basis-1/4 pr-base justify-between":!x}),children:[(0,r.jsx)("div",{children:i.map((e,a)=>x?(0,r.jsx)(_,{className:(0,c.Z)({"!mb-2xlarge":(l||!!(null==t?void 0:t.length))&&a===i.length-1,"mb-double":(l||!!(null==t?void 0:t.length))&&a!==i.length-1}),isActive:d.key===e.key,onClick:()=>n(e.key,!0),type:"button",isMobile:x,children:e.link.label},e.key):(0,r.jsx)(_,{className:(0,c.Z)("mb-double"),href:e.link.href,isActive:d.key===e.key,onHover:()=>u(e),type:"link",children:e.link.label},e.key))}),!!(null==t?void 0:t.length)&&(0,r.jsxs)("div",{className:"pb-4",children:[l&&(0,r.jsx)(b,{className:(0,c.Z)({"!pb-4":!!(null==t?void 0:t.length)}),children:l}),t.map((e,l)=>{let{href:a,icon:n,key:s,label:i}=e;return(0,r.jsxs)(w,{className:(0,c.Z)("flex items-center gap-4",{"mb-double":l!==t.length-1}),href:a,closeMobileMenu:o,children:[n&&k[n],i]},s)})]})]}),g=e=>(0,r.jsxs)("div",{className:(0,c.Z)("overflow-none",{"flex flex-1 flex-col":!x,"mb-3xlarge":x&&!!e.imageBlockLink}),children:[(0,r.jsxs)("div",{className:(0,c.Z)({"flex-1":!x}),children:[h&&(0,r.jsx)(w,{className:"mb-6 md:mb-5",hasArrow:!0,href:h.href,isArrowStretched:!0,closeMobileMenu:o,children:h.label}),(0,r.jsx)("div",{className:(0,c.Z)({"columns-2":!x&&e.subNavigation.length>8}),children:(null==e?void 0:e.subNavigation).map((t,l)=>{let{href:a,key:n,label:s}=t;return(0,r.jsx)(w,{className:(0,c.Z)("mb-3",{"mb-3xlarge":x&&l===e.subNavigation.length-1}),href:a,closeMobileMenu:o,children:s},n)})})]}),(0,r.jsx)(m,{id:(null==e?void 0:e.key)||"search-id",isMobile:x})]}),v=e=>e.imageBlockLink?(0,r.jsx)(N,{className:"w-full lg:w-[23vw] lg:max-w-[320px]",href:e.imageBlockLink.link.href,image:e.imageBlockLink.image,label:e.imageBlockLink.label,children:e.imageBlockLink.link.label}):null;return x?(null==a?void 0:a[1])?(0,r.jsxs)("div",{className:"pt-large pb-36 sm:pb-40",children:[g(p),v(p)]}):(0,r.jsx)(r.Fragment,{children:f()}):(0,r.jsxs)("div",{className:"container flex h-full",children:[f(),(0,r.jsxs)("div",{className:"flex gap-medium pt-2xlarge pb-large pl-2xlarge w-full",children:[g(d),v(d)]})]})},Z=l(2553),S=l(985),C=e=>{let{heading:t,imageBlockLink:l,isMobile:a=!1,subLinks:n,topLink:s}=e;return(0,r.jsxs)("div",{className:(0,c.Z)("container",a?"py-large":"py-2xlarge",{"flex space-between":!a}),children:[(0,r.jsxs)("div",{className:(0,c.Z)({"flex-1":!a}),children:[!a&&(0,r.jsx)(_,{className:"mb-medium",type:"text",children:t}),s&&(0,r.jsx)(w,{className:"mb-6 md:mb-5",hasArrow:!0,href:s.href,isArrowStretched:a,children:s.label}),n.map(e=>{let{href:t,key:l,label:a}=e;return(0,r.jsx)(w,{className:"mb-4 md:mb-3 last:mb-0",href:t,children:a},l)})]}),l&&(0,r.jsx)(N,{className:"w-full pb-4xlarge mt-16 lg:pb-0 lg:mb-0 lg:w-[23vw]",href:l.link.href,image:l.image,label:l.label,children:l.link.label})]})},M=e=>{let{mobileActiveNavigation:t,navigation:l,onMobileNavChange:a,serviceLinks:n,closeMobileMenu:s}=e,i=l.find(e=>{let{key:l}=e;return t[0]===l}),o=(null==i?void 0:i.link.alternativeLabel)?{href:i.link.href,label:i.link.alternativeLabel}:void 0;return(0,r.jsx)("div",{children:(0,r.jsx)("section",{className:(0,c.Z)({"portrait:h-dyn-screen portrait:h-[calc(100vh-55px)] landscape:h-dyn-screen landscape:h-min":!i}),children:i&&i.subNavigation.length?i.subNavigation[0].subNavigation?(0,r.jsx)("div",{className:"container",children:(0,r.jsx)(E,{additionalLinks:i.additionalLinks,mobileActiveNavigation:t,onMobileNavChange:a,subNavigation:i.subNavigation,closeMobileMenu:s,additionalLinksHeadline:i.additionalLinksHeadline})}):(0,r.jsx)("div",{className:"container",children:(0,r.jsx)(C,{heading:i.link.label,imageBlockLink:i.imageBlockLink,isMobile:!0,topLink:o,subLinks:i.subNavigation})}):(0,r.jsxs)("div",{className:"flex flex-col justify-between h-full",children:[(0,r.jsxs)("div",{className:"container py-3xlarge m-0",children:[l.map((e,t)=>{let{link:n,key:i,subNavigation:o}=e;
1return o.length?(0,r.jsx)("button",{className:(0,c.Z)("block p-0 border-none font-bold font-sanscondensed text-left text-3xl text-link-text-neutral-800 lg:hover:text-link-text-hover-menu",{"mb-3xlarge":t===l.length-1,"mb-double":t!==l.length-1}),onClick:()=>a(i),children:n.label},i):(0,r.jsx)(w,{className:(0,c.Z)("block p-0 border-none font-bold font-sanscondensed text-left !text-3xl text-link-text-neutral-800 lg:hover:text-link-text-hover-menu",{"mb-3xlarge":t===l.length-1,"mb-double":t!==l.length-1}),href:n.href,closeMobileMenu:s,children:n.label},n.label)}),null==n?void 0:n.map((e,t)=>{let{href:l,title:a}=e;return(0,r.jsx)(w,{className:(0,c.Z)({"mb-3":t!==n.length-1}),href:l,closeMobileMenu:s,children:a},a)})]}),(S.Vw||S.kn)&&(0,r.jsxs)("div",{className:"w-screen landscape:pb-4xlarge flex flew-row",children:[S.Vw&&(0,r.jsxs)(d.Z,{variant:"secondary",href:"/standort",className:"flex-1 w-6/12 text-btn-sm h-[48px]",target:"_self",children:[(0,r.jsx)(Z.Z,{}),"Standorte"]}),S.kn&&(0,r.jsx)(d.Z,{variant:"primary",href:"/login",className:"flex-1 w-6/12 text-btn-sm h-[48px]",target:"_self",children:"Login"})]})]})})})},O=e=>{let{hoveredMainLink:t,isDropdownOpen:l,isMobileMenuOpen:a,mobileActiveNavigation:n,navigation:s,onMobileNavChange:i,onNavContentHover:o,serviceLinks:c,closeMobileMenu:d}=e,m=s.find(e=>{let{key:l}=e;return t===l}),u=(null==m?void 0:m.link.alternativeLabel)?{href:m.link.href,label:m.link.alternativeLabel}:void 0;return(0,r.jsxs)(r.Fragment,{children:[m&&l&&!!m.subNavigation.length&&(0,r.jsx)("div",{className:"z-50 hidden lg:block absolute w-full bg-icon-neutral-800/60 bg-opacity-60 h-[calc(100vh-theme(height.desktop-navbar)-theme(height.service-menu))] top-[calc(theme(height.desktop-navbar)+theme(height.service-menu))] overflow-auto",children:(0,r.jsx)("section",{className:"bg-neutral-neutral-0 min-h-[550px] h-main-navigation max-h-[calc(95vh-theme(height.desktop-navbar)-theme(height.service-menu))]",children:(0,r.jsx)("div",{className:"h-full",onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),children:m.subNavigation[0].subNavigation?(0,r.jsx)(E,{additionalLinks:m.additionalLinks,additionalLinksHeadline:m.additionalLinksHeadline,subNavigation:m.subNavigation},t):(0,r.jsx)(C,{heading:m.link.label,imageBlockLink:m.imageBlockLink,subLinks:m.subNavigation,topLink:u})})})}),a&&(0,r.jsx)("div",{className:"z-50 block lg:hidden absolute w-full bg-neutral-neutral-0 min-h-screen h-full top-[calc(theme(height.mobile-navbar))] pb-[calc(theme(height.mobile-navbar))] overflow-y-auto",children:(0,r.jsx)(M,{mobileActiveNavigation:n,navigation:s,onMobileNavChange:i,serviceLinks:c,closeMobileMenu:d})})]})},L=l(1345),P=l(7864);function T(){return(T=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(this,arguments)}var A=function(e){return h.createElement("svg",T({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},e),a||(a=h.createElement("path",{fill:"currentColor",d:"m11.414 5-6 6H22v2H5.414l6 6L10 20.414 1.586 12 10 3.586 11.414 5Z"})))},R=l(4155),F=l(5901);function I(){return(I=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(this,arguments)}var z=function(e){return h.createElement("svg",I({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},e),n||(n=h.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M2 4.5h20v2H2v-2Zm0 7h20v2H2v-2Zm0 7h20v2H2v-2Z",clipRule:"evenodd"})))},H=l(4188),B=l(2771),D=e=>{let{className:t,href:l,Icon:a,onMouseEnter:n,showUnderlineOnHover:s=!1,title:i,componentType:o="Link",onClick:d}=e,m=(0,c.Z)("text-link-menu-text text-[15px] min-[1060px]:text-base hover:no-underline hover:text-link-text-hover",{"lg:hover:border-y-[3px] lg:hover:border-solid lg:hover:border-b-stroke-neutral-800":s,"lg:hover:border-t-surface-neutral-0 lg:hover:h-full lg:hover:flex lg:hover:items-center":s},t),u=a?(0,r.jsxs)("span",{className:"flex gap-2",children:[a,(0,r.jsx)("span",{className:"hidden lg:inline",children:i})]}):(0,r.jsx)(r.Fragment,{children:i}),p=!1;return((void 0!==l&&l.startsWith("https://")||void 0!==l&&l.startsWith("http://"))&&(p=!0),"Link"===o&&void 0!==l)?(0,r.jsx)(j.default,{prefetch:!1,className:m,href:{pathname:p?l:"/"+l},target:p?"_blank":"_self",onMouseEnter:n,children:u}):(0,r.jsx)("button",{className:m,onClick:d,children:u})},V=e=>{var t;let{isMobileMenuOpen:l,logo:a,mobileActiveNavigation:n,mainNavigation:s,onBackButton:i,onMenuBlockHover:o,onMenuLinkHover:d,onMobileToggleMenu:m}=e,u=(0,P.l)(e=>e.showSearchOverlay),p=!n[0],x=!!n[0]&&!n[1],h=!!n[1],f=s.find(e=>{let{key:t}=e;return t===n[0]}),v=null!=f&&null!==(t=f.subNavigation[0])&&void 0!==t&&!!t.subNavigation,b=null==f?void 0:f.subNavigation.find(e=>{let{key:t}=e;return t===n[1]}),y=S.Yb||S.Vw||S.kn;return(0,r.jsxs)("nav",{className:"z-50 bg-surface-neutral-0 h-mobile-navbar lg:h-desktop-navbar relative",children:[(0,r.jsx)("div",{className:"absolute bottom-0 left-0 right-0 top-0 border-b border-solid border-b-stroke-neutral-100 pointer-events-none"}),(0,r.jsxs)("div",{className:"container flex items-center justify-between lg:grid lg:grid-cols-8 xl:grid-cols-12 gap-2 md:gap-4 h-full",children:[(0,r.jsx)("div",{className:"hidden h-full whitespace-nowrap justify-start items-center lg:flex lg:col-span-3 md:gap-x-4 xl:col-span-5 xl:gap-x-8",onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),children:s.map(e=>{let{key:t,link:{href:l,label:a}}=e;return(0,r.jsx)(D,{href:l,onMouseEnter:()=>d(t),title:a,showUnderlineOnHover:!0,className:"min-h-full flex items-center"},t)})}
1),(0,r.jsx)(j.default,{prefetch:!1,className:(0,c.Z)(y?"justify-center lg:col-span-2":"justify-end lg:col-span-5 xl:col-span-7","flex",{hidden:!p}),href:"/",children:(0,r.jsx)(g.default,{...a.image,alt:a.image.alt,unoptimized:!0})}),x&&v&&(0,r.jsxs)("div",{className:"flex gap-3 lg:hidden",children:[(0,r.jsx)("button",{className:"border-none p-0",onClick:i,children:(0,r.jsx)(R.Z,{})}),f&&(0,r.jsx)("p",{className:"text-body-lg font-bold font-sanscondensed text-text-headlines",children:f.link.label})]}),(h||x&&!v)&&(0,r.jsx)("button",{className:"border-none p-0 lg:hidden",onClick:i,children:(0,r.jsx)(A,{})}),(h&&b||x&&!v)&&(0,r.jsx)(_,{className:"lg:hidden",isNav:!0,type:"text",children:h?null==b?void 0:b.link.label:null==f?void 0:f.link.label}),(0,r.jsxs)("div",{className:(0,c.Z)("flex items-center gap-4 justify-end lg:col-span-3 xl:col-span-5",{"lg:hidden":!y}),children:[(0,r.jsx)("button",{className:(0,c.Z)("border-none p-0 lg:hidden",{hidden:!l}),onClick:m,children:(0,r.jsx)(F.Z,{})}),(0,r.jsxs)(r.Fragment,{children:[S.Yb&&(0,r.jsx)(D,{className:(0,c.Z)("lg:block",{hidden:l}),Icon:(0,r.jsx)(B.Z,{alt:""}),title:"Suche",onClick:()=>u(!0),componentType:"Button"}),S.Vw&&(0,r.jsx)(D,{className:(0,c.Z)("lg:block",{hidden:l}),href:"standort",Icon:(0,r.jsx)(Z.Z,{alt:""}),title:"Standorte"}),S.kn&&(0,r.jsx)(D,{className:"hidden lg:block",href:"login",Icon:(0,r.jsx)(H.Z,{alt:""}),title:"Log in"}),(0,r.jsx)("button",{"aria-label":"Mobilmen\xfc nutzen",className:(0,c.Z)("border-none p-0 lg:hidden",{hidden:l}),onClick:m,children:(0,r.jsx)(z,{})})]})]})]})]})},q=e=>{let{serviceMenuLinks:t}=e;return(null==t?void 0:t.length)?(0,r.jsx)("nav",{className:"bg-surface-neutral-50 hidden h-service-menu lg:block",children:(0,r.jsx)("div",{className:"container flex gap-6 justify-end items-center h-full",children:t.map(e=>{let{href:t,title:l}=e;return(0,r.jsx)(D,{className:"!text-sm",title:l,href:t},l)})})}):null},G=(0,o.Pf)(e=>{let{logo:t,mainNavigation:l,serviceMenuLinks:a}=e,[n,o]=(0,s.useState)(!1),[c,d]=(0,s.useState)(),[m,u]=(0,s.useState)([void 0,void 0]),[p,x]=(0,s.useState)(!1),h=()=>{o(!1),u([void 0,void 0])};(0,s.useEffect)(()=>{let e=l.find(e=>{let{key:t}=e;return c===t});(n&&"undefined"!=typeof document||p&&"undefined"!=typeof document)&&(null==e?void 0:e.subNavigation.length)?(document.body.style.overflow="hidden",document.documentElement.style.scrollbarGutter="stable"):(document.body.style.overflow="auto",document.documentElement.style.scrollbarGutter="initial")},[n,p,c,l]);let f=(0,i.usePathname)();return(0,s.useEffect)(()=>{x(!1),h()},[f]),(0,r.jsxs)("header",{className:"z-50",onMouseLeave:()=>d(void 0),children:[(0,r.jsx)(q,{serviceMenuLinks:a}),(0,r.jsx)(V,{isMobileMenuOpen:n,logo:t,mainNavigation:l,mobileActiveNavigation:m,onBackButton:()=>u(e=>e[1]?[e[0],void 0]:[void 0,void 0]),onMenuBlockHover:x,onMenuLinkHover:d,onMobileToggleMenu:()=>{n&&u([void 0,void 0]),o(e=>!e)}}),(0,r.jsx)(O,{hoveredMainLink:c,isDropdownOpen:p,isMobileMenuOpen:n,mobileActiveNavigation:m,navigation:l,onMobileNavChange:function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return u(l=>t?[l[0],e]:[e,void 0])},onNavContentHover:x,serviceLinks:a,closeMobileMenu:h})]})},{FallbackComponent:L.H})},9535:function(e,t,l){"use strict";l.r(t),l.d(t,{LocationWrapper:function(){return eE},locationLoadingStore:function(){return ek},locationStore:function(){return e_}});var a,n,r,s,i,o,c,d,m,u,p,x,h,f,g=l(3827),v=l(4090),b=l(2020),j=l(5249),y=l(6511),w=l(7941);l(1085);var N=l(9077),_=l(2215);async function k(e){let t=(0,y.bS)(),l=e?"draft":w.M.VERSION_MODE,a=Math.ceil((await t.getStories({version:l,starts_with:(0,N.Gg)("standort"),per_page:1,page:1})).total/100),n=[];for(let e=1;e<=a;e++)n.push(t.getStories({version:l,starts_with:(0,N.Gg)("standort"),per_page:100,page:e,sort_by:"content.zip_code: asc",content_type:"location"}));return(await Promise.all(n)).flatMap(e=>e.data.stories).map(e=>({content:{primary_category:e.content.primary_category,products:e.content.products,services:e.content.services,latitude:e.content.latitude,longitude:e.content.longitude,primary_phone_number:e.content.primary_phone_number,business_name:e.content.business_name,address_line_1:e.content.address_line_1,zip_code:e.content.zip_code,city:e.content.city},uuid:e.uuid,id:e.id,full_slug:e.full_slug.startsWith((0,N.Gg)())?e.full_slug.replace((0,N.Gg)(),""):e.full_slug,name:e.name}))}async function E(e,t,l,a){arguments.length>4&&void 0!==arguments[4]&&arguments[4];let n=arguments.length>5?arguments[5]:void 0,r=e_.getState();if(r)return Z(r.locations,t,l,a);let s=(0,y.bS)(),i={version:n?"draft":w.M.VERSION_MODE,starts_with:(0,N.Gg)("standort"),per_page:1,page:1,sort_by:"content.zip_code: asc",content_type:"location",filter_query:{}};t&&(i.filter_query.primary_category={in:t}),l&&l.length>0&&(i.filter_query.products={all_in_array:l.join(",")}),a&&a.length>0&&(i.filter_query.services={all_in_array:a.join(",")});let o=Math.ceil((await s.getStories(i)).total/100),c=[];for(let e=1;e<=o;e++){let t={...i,per_page:100,page:e};
1c.push(s.getStories(t))}return{items:(await Promise.all(c)).flatMap(e=>e.data.stories),requestId:e}}let Z=(e,t,l,a)=>e.filter(e=>{let n=!t||e.content.primary_category===t,r=!l.length||l.every(t=>{var l;return null===(l=e.content.products)||void 0===l?void 0:l.includes(t)}),s=!a.length||a.every(t=>{var l;return null===(l=e.content.services)||void 0===l?void 0:l.includes(t)});return n&&r&&s}),S=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=(0,y.bS)(),n=0,r=await a.getStories({content_type:e,page:t,per_page:100,starts_with:(0,N.Gg)()}).then(e=>(n=e.total,e.data)).catch(e=>{console.log(e),_.exit(1)});if(0===r.stories.length)return l;let s=[...null!=l?l:[],...r.stories];return n<100*t?s:S(e,t+1,s)};var C=l(7907);let M=e=>{let t;console.log("throwError | entry");try{t=JSON.parse(e)}catch(l){console.log("throwError | catch",e),t={message:"Internal Server Error",status:500,response:e}}if(404===t.status)console.log("throwError | 404 calling notFound",t.message),(0,C.notFound)();else throw console.log("throwError | else",t.message),Error(t.message,{cause:t.response})};var O=l(7746);let L=e=>{let t=(0,v.useRef)(null);return(0,v.useEffect)(()=>{let l=l=>{t.current&&!t.current.contains(l.target)&&e()};return document.addEventListener("mousedown",l),()=>{document.removeEventListener("mousedown",l)}},[e]),t};var P=l(5189),T=l(3167),A=l(1258),R=l(9656),F=l(8161),I=l(5906),z=l(7847),H=l(2553),B=l(2846);function D(){return(D=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(this,arguments)}var V=function(e){return B.createElement("svg",D({xmlns:"http://www.w3.org/2000/svg",id:"Tankstellen_svg__Ebene_1",viewBox:"0 0 54.6 56.53"},e),B.createElement("defs",null,B.createElement("clipPath",{id:"Tankstellen_svg__clippath"},B.createElement("path",{d:"M0 0h54.6v56.53H0z",style:{fill:"none"}})),a||(a=B.createElement("style",null,".Tankstellen_svg__cls-4{fill:none;stroke-linecap:round;stroke-linejoin:round;stroke:currentColor;stroke-width:2.75px}"))),B.createElement("g",{style:{clipPath:"url(#Tankstellen_svg__clippath)",fill:"none"}},n||(n=B.createElement("path",{d:"M44.77 9.43v9.67c0 .6.24 1.17.66 1.6l5.03 5.03",className:"Tankstellen_svg__cls-4"})),B.createElement("path",{d:"M37.2 25.06h2.02c2.01 0 3.65 1.63 3.65 3.65v10.77a4.22 4.22 0 0 0 8.44 0V19.3",style:{strokeWidth:"6.59px",strokeLinecap:"round",strokeLinejoin:"round",stroke:"#fff",fill:"none"}}),r||(r=B.createElement("path",{d:"M27.96 21.63H13.85c-.5 0-.91-.41-.91-.91V10.08c0-.5.41-.91.91-.91h14.11c.5 0 .91.41.91.91v10.64c0 .5-.41.91-.91.91Zm7.97 21V4.77c0-1.87-1.52-3.39-3.39-3.39H9.28c-1.87 0-3.39 1.52-3.39 3.39v37.85m31.32-17.56h2.02c2.01 0 3.65 1.63 3.65 3.65v10.77a4.22 4.22 0 0 0 8.44 0V17.52c0-1-.4-1.96-1.1-2.67l-8.14-8.14",className:"Tankstellen_svg__cls-4"})),B.createElement("path",{d:"M38.06 52.78H3.76v-4.89c0-1.13.91-2.04 2.04-2.04h30.22c1.13 0 2.04.91 2.04 2.04v4.89Z",style:{strokeLinecap:"round",strokeLinejoin:"round",stroke:"#fff",strokeWidth:"7.51px",fill:"none"}}),s||(s=B.createElement("path",{d:"M38.06 52.78H3.76v-4.89c0-1.13.91-2.04 2.04-2.04h30.22c1.13 0 2.04.91 2.04 2.04v4.89Z",className:"Tankstellen_svg__cls-4"}))))},q=l(5901),G=e=>{let{className:t,icon:l,handleClick:a,handleClose:n,category:r}=e;return(0,g.jsxs)("div",{onClick:()=>a?a(r):()=>{},className:(0,T.Z)("inline-flex items-center justify-start whitespace-nowrap text-sm px-6 py-3",t),children:[l&&(0,g.jsx)("span",{className:"mr-2",children:l}),r,n&&(0,g.jsx)(q.Z,{className:"ml-2 cursor-pointer",onClick:n})]})},U=l(2388),K=l(2981);function W(){return(W=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(this,arguments)}var Y=function(e){return B.createElement("svg",W({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},e),i||(i=B.createElement("path",{fill:"currentColor",d:"m9.55 18-5.7-5.7 1.425-1.425L9.55 15.15l9.175-9.175L20.15 7.4 9.55 18Z"})))},Q=e=>{let{label:t,name:l,checked:a=!1,inputProps:n}=e,[r,s]=(0,v.useState)(a);return(0,g.jsx)("label",{className:"group flex cursor-pointer w-full border-b last:border-0 hover:bg-surface-neutral-50",children:(0,g.jsxs)("span",{className:"flex gap-2 content-center p-2 relative",children:[(0,g.jsx)("input",{type:"checkbox",onClick:()=>s(!r),value:l,name:l,id:l,checked:r,className:(0,T.Z)("appearance-none w-6 h-6 bg-surface-neutral-50 group-hover:bg-white shrink-0"),...n}),(0,g.jsx)("span",{className:(0,T.Z)("shrink",r?"text-neutral-900":"text-neutral-600"),children:t}),(0,g.jsx)(Y,{className:(0,T.Z)("absolute top-2 left-2",{hidden:!r})})]})})},X=e=>{let{placeholder:t,options:l,className:a,handleChange:n,subCategory:r,selectedItems:s}=e,[i,o]=(0,v.useState)(!1),[c,d]=(0,v.useState)(s||[]),m=e=>{let t=[...c];d(t=e.target.checked?[...c,e.target.value]:c.filter(t=>t!==e.target.value)),n(t,r,e.target.checked,e.target.value)},u=e=>{o(e)},p=L(()=>{o(!1)});if(l.length)return(0,g.jsx)("div",{ref:p,className:a,children:(0,g.jsxs)("div",{className:"relative",children:[(0,g.jsxs)("div",{onClick:()=>u(!i),className:(0,T.Z)("block w-full h-12 bg-input-surface-neutral-50 pl-4 pr-10 py-2 text-body-md focus:outline-none placeholder:text-input-text-label-idle placeholder:text-base cursor-pointer",(null==l?void 0:l.length)===0&&"pointer-events-none"),children:[(0,g.jsx)("span",{className:"flex items-center",children:(0,g.jsxs)("span",{className:"text-input-text-label-idle",children:[t," ",c.length>0&&(0,g.jsxs)("span",{children:["(",c.length,")"]})]})}),l.length>0&&(0,g.jsx)("span",{className:"pointer-events-none absolute inset-y-0 right-2 flex cursor-pointer items-center",children:(0,g.jsx)(K.Z,{className:(0,T.Z)(i&&"rotate-180","h-6 w-6 text-text transition-all duration-300")})})]}),(0,g.jsx)(U.u,{show:i,as:v.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,g.jsx)("div",{className:"absolute z-10 mt-1 max-h-56 w-full text-base bg-white shadow-default border border-stroke-neutral-100 overflow-auto",children:l.length>0&&l.map(e=>
1(0,g.jsx)(Q,{inputProps:{onChange:e=>m(e)},name:e.uuid,label:e.label,checked:c.includes(e.uuid)},e.uuid))})})]})})},$=e=>{let{className:t,data:l,handleSetCategoryClick:a,handleRemoveCategoryClick:n,handleSubCategoryChange:r,allServices:s,allProducts:i,filteredProducts:o,filteredServices:c}=e,d=e=>({baustoffhandel:(0,g.jsx)(I.Z,{height:"24",width:"24"}),bau:(0,g.jsx)(I.Z,{height:"24",width:"24"}),baufachhandel:(0,g.jsx)(I.Z,{height:"24",width:"24"}),baumarkt:(0,g.jsx)(I.Z,{height:"24",width:"24"}),tankstellen:(0,g.jsx)(V,{height:"24",width:"24"}),tankstelle:(0,g.jsx)(V,{height:"24",width:"24"}),energiehandel:(0,g.jsx)(z.Z,{height:"24",width:"24"}),agrarhandel:(0,g.jsx)(F.Z,{height:"24",width:"24"}),agrar:(0,g.jsx)(F.Z,{height:"24",width:"24"}),heizölanbieter:(0,g.jsx)(V,{height:"24",width:"24"})})[e.toLowerCase()],m=null===l?[]:l.map(e=>e.content.primary_category),u=Array.from(new Set(m)),p=(0,C.useSearchParams)(),[x,h]=(0,v.useState)(p.get("primary_category")||""),f=null===l?[]:l.filter(e=>e.content.primary_category===x),b=f.map(e=>e.content.products).filter(e=>e).flat(),j=f.map(e=>e.content.services).filter(e=>e).flat(),y=Array.from(new Set(b)),w=Array.from(new Set(j)),N=e=>{h(e),a(e)},_=(e,t,l,a)=>{r(e,t,l,a)};return(0,g.jsx)("div",{className:t,children:""!==x?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(G,{handleClose:()=>{h(""),n()},category:x,className:"bg-surface-neutral-800 text-neutral-50 mr-2 mb-4 last:mb-0",icon:d(x)||(0,g.jsx)(H.Z,{height:"24"})}),(0,g.jsxs)("div",{className:"md:flex md:gap-2",children:[y.length>0&&(0,g.jsx)(X,{subCategory:"products",handleChange:_,options:i.filter(e=>y.includes(e.uuid))||[],placeholder:"Produkte",className:"w-full mt-2 md:mt-4",selectedItems:o}),w.length>0&&(0,g.jsx)(X,{subCategory:"services",handleChange:_,options:s.filter(e=>w.includes(e.uuid))||[],placeholder:"Services",className:"w-full mt-2 md:mt-4",selectedItems:c})]})]}):u.map(e=>e&&(0,g.jsx)(G,{handleClick:N,category:e,className:"border border-1 cursor-pointer mr-2 mb-2 last:mb-0",icon:d(e)||(0,g.jsx)(H.Z,{height:"24"})},e))})},J=l(8792);function ee(){return(ee=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(this,arguments)}var et=function(e){return B.createElement("svg",ee({xmlnsXlink:"http://www.w3.org/1999/xlink",fill:"none",viewBox:"0 0 18 18"},e),o||(o=B.createElement("defs",null,B.createElement("path",{id:"phone_svg__a",stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeOpacity:.2,strokeWidth:1.5,d:"m11.027 15.927.008.004a3.688 3.688 0 0 0 4.589-.503l.516-.516a1.23 1.23 0 0 0 0-1.74L13.966 11a1.23 1.23 0 0 0-1.74 0v0a1.228 1.228 0 0 1-1.738 0L7.009 7.52a1.23 1.23 0 0 1 0-1.739v0a1.229 1.229 0 0 0 0-1.738L4.836 1.867a1.23 1.23 0 0 0-1.74 0l-.515.516a3.69 3.69 0 0 0-.504 4.589l.005.008a33.29 33.29 0 0 0 8.945 8.947v0Z",clipRule:"evenodd"}))),c||(c=B.createElement("path",{stroke:"#606060",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"m11.027 15.927.008.004a3.688 3.688 0 0 0 4.589-.503l.516-.516a1.23 1.23 0 0 0 0-1.74L13.966 11a1.23 1.23 0 0 0-1.74 0v0a1.228 1.228 0 0 1-1.738 0L7.009 7.52a1.23 1.23 0 0 1 0-1.739v0a1.229 1.229 0 0 0 0-1.738L4.836 1.867a1.23 1.23 0 0 0-1.74 0l-.515.516a3.69 3.69 0 0 0-.504 4.589l.005.008a33.29 33.29 0 0 0 8.945 8.947v0Z",clipRule:"evenodd"})),d||(d=B.createElement("use",{xlinkHref:"#phone_svg__a",strokeLinecap:"round",strokeLinejoin:"round",strokeOpacity:.2,strokeWidth:1.5,clipRule:"evenodd"})),m||(m=B.createElement("use",{xlinkHref:"#phone_svg__a",strokeLinecap:"round",strokeLinejoin:"round",strokeOpacity:.2,strokeWidth:1.5,clipRule:"evenodd"})),u||(u=B.createElement("use",{xlinkHref:"#phone_svg__a",strokeLinecap:"round",strokeLinejoin:"round",strokeOpacity:.2,strokeWidth:1.5,clipRule:"evenodd"})),p||(p=B.createElement("use",{xlinkHref:"#phone_svg__a",strokeLinecap:"round",strokeLinejoin:"round",strokeOpacity:.2,strokeWidth:1.5,clipRule:"evenodd"})),x||(x=B.createElement("use",{xlinkHref:"#phone_svg__a",strokeLinecap:"round",strokeLinejoin:"round",strokeOpacity:.2,strokeWidth:1.5,clipRule:"evenodd"})))},el=l(9663),ea=e=>{let{location:t,hasIcon:l}=e;return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("p",{children:[(0,g.jsx)("span",{className:"text-sm font-extrabold text-secondary mr-2",children:"/"}),(0,g.jsx)("span",{className:"text-sm font-sanscondensed font-bold italic uppercase text-neutral-500",children:t.content.primary_category})]}),(0,g.jsxs)("p",{className:"flex items-center justify-between",children:[(0,g.jsx)("span",{className:"md:text-lg font-bold text-text-headlines",children:t.content.business_name}),l&&(0,g.jsx)(el.Z,{className:"h-6 w-6"})]}),(0,g.jsxs)("p",{className:(0,T.Z)("text-sm text-text-headlines",{"pb-6":t.content.primary_phone_number}),children:[t.content.address_line_1,", ",t.content.zip_code," ",t.content.city]})]})};let en=e=>{let{locations:t,handleMouseOver:l}=e,a=ek(e=>e.loadingState),[n,r]=(0,v.useState)(!1);return(0,v.useEffect)(()=>{r(a)},[a]),(0,g.jsxs)("div",{className:"divide-y divide-solid border border-l-0 border-r-0 md:mt-6 mb-10",children:[!n&&(0,g.jsxs)("output",{className:"flex items-center justify-center min-h-[60vh]",children:[(0,g.jsxs)("svg",{"aria-hidden":"true",className:"w-8 h-8 text-gray-200 animate-spin fill-primary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,g.jsx)("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),(0,g.jsx)("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.
11071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}),(0,g.jsx)("span",{className:"sr-only",children:"Daten werden geladen..."})]}),null==t?void 0:t.map(e=>e.content&&(0,g.jsxs)("div",{className:"py-4 md:p-4 hover:bg-surface-neutral-50",children:[(0,g.jsx)(J.default,{prefetch:!1,href:e.full_slug,onMouseOver:()=>l(e.id),onMouseOut:()=>l(-1),children:(0,g.jsx)(ea,{hasIcon:!0,location:e})}),e.content.primary_phone_number&&(0,g.jsx)("a",{href:"tel:".concat(e.content.primary_phone_number),className:"inline-block",children:(0,g.jsxs)("p",{className:"flex items-center",children:[(0,g.jsx)(et,{className:"h-4 w-4 mr-2"}),(0,g.jsx)("span",{className:"text-sm text-text-headlines",children:e.content.primary_phone_number})]})})]},e.id))]})};var er=l(4202),es=l(3707),ei=l(2771),eo=e=>{let{handleClick:t,className:l,defaultLocation:a}=e,[n,r]=(0,v.useState)(a);return(0,g.jsxs)("form",{className:(0,T.Z)("flex items-end gap-2",l),onReset:()=>{r(""),t("")},onSubmit:e=>{e.preventDefault(),t(n||"")},children:[(0,g.jsxs)("div",{className:"relative w-full",children:[(0,g.jsx)(er.Z,{name:"location-search",placeholder:"Suche nach Ort oder PLZ",label:"",inputProps:{onChange:e=>r(e.target.value),value:n||""}}),(0,g.jsx)("button",{type:"reset",className:(0,T.Z)("absolute right-2 top-10",{hidden:!n}),children:(0,g.jsx)(q.Z,{})})]}),(0,g.jsx)(es.Z,{className:"text-btn-sm h-12",variant:"primary",as:"button",type:"submit",children:(0,g.jsx)(ei.Z,{})})]})},ec=e=>{let{className:t}=e;return(0,g.jsx)("div",{className:(0,T.Z)("text-center border-t pt-6",t),children:(0,g.jsxs)("div",{className:"font-bold text-lg",children:[(0,g.jsx)("p",{children:"Unser Standortfinder basiert auf Google Maps. Um diesen Dienst verwenden zu k\xf6nnen ben\xf6tigen wir Ihre Zustimmung."}),(0,g.jsx)("button",{onClick:()=>{UC_UI.showSecondLayer()},className:"text-sm underline pt-2",children:"Bitte klicken Sie hier, um Ihre Cookie-Einstellungen zu \xe4ndern."})]})})},ed=e=>{let{className:t}=e;return(0,g.jsxs)("div",{className:(0,T.Z)("text-center border-t pt-6",t),children:[(0,g.jsx)("div",{className:"font-bold text-lg",children:"Ihre Suche ergab keine Ergebnisse"}),(0,g.jsx)("div",{className:"text-sm",children:"Haben Sie sich vielleicht vertippt?"})]})};function em(){return(em=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(this,arguments)}var eu=function(e){return B.createElement("svg",em({width:25,height:24,fill:"none"},e),B.createElement("mask",{id:"list_svg__a",width:25,height:24,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},h||(h=B.createElement("path",{fill:"#D9D9D9",d:"M.5 0h24v24H.5z"}))),f||(f=B.createElement("g",{mask:"url(#list_svg__a)"},B.createElement("path",{fill:"#1C1B1F",d:"M3.5 19v-1.667h18V19h-18Zm0-4.117v-1.666h18v1.666h-18Zm0-4.1V9.117h18v1.666h-18Zm0-4.116V5h18v1.667h-18Z"}))))};let ep="w-1/2 flex items-center justify-center gap-2 py-3 text-sm text-neutral-800";var ex=e=>{let{handleClick:t,className:l}=e,[a,n]=(0,v.useState)(!0),r=e=>{t(e),n(e)};return(0,g.jsxs)("div",{className:(0,T.Z)("flex w-full md:hidden",l),children:[(0,g.jsxs)("div",{onClick:()=>r(!1),className:(0,T.Z)(ep,{"border-secondary border-b-4 font-bold":!a}),children:[(0,g.jsx)(H.Z,{})," Karte"]}),(0,g.jsxs)("div",{onClick:()=>r(!0),className:(0,T.Z)(ep,{"border-secondary border-b-4 font-bold":a}),children:[(0,g.jsx)(eu,{})," Liste"]})]})},eh=e=>{let{handleViewClick:t,handleSearchClick:l,handleSetCategoryClick:a,handleRemoveCategoryClick:n,handleSubCategoryChange:r,usedData:s,products:i,services:o,productsFilter:c,servicesFilter:d,locations:m,handlePageClick:u,currentPage:p,getPageNumbers:x,isListView:h,setActiveMarker:f,isFiltersEmpty:v,areaFilter:b}=e,j=(0,C.useSearchParams)(),y=(0,R.v)();return(0,g.jsxs)("div",{className:"col-span-4 md:col-span-4 xl:col-span-5 mb-8",children:[(0,g.jsx)("h1",{className:"text-4xl md:text-6xl font-sanscondensed font-extrabold italic uppercase mt-10 md:mt-16",children:"Standorte"}),(0,g.jsx)(eo,{className:"mt-4",defaultLocation:j.get("area"),handleClick:l}),(y||!b)&&(0,g.jsx)($,{handleSetCategoryClick:a,handleRemoveCategoryClick:n,handleSubCategoryChange:r,data:s,allProducts:i,allServices:o,className:"mt-6 md:mt-8",filteredProducts:c,filteredServices:d}),(0,g.jsx)(ex,{className:"mt-4",handleClick:t}),!y&&b?(0,g.jsx)("div",{className:(0,T.Z)("md:opacity-100 md:h-full",{"opacity-0 h-0":!h}),children:(0,g.jsx)(ec,{className:"mt-6"})}):null!==m?(0,g.jsxs)("div",{className:(0,T.Z)("md:opacity-100 md:h-full",{"opacity-0 h-0":!h}
1),children:[0!==m.length||v()?(0,g.jsx)(en,{locations:m,handleMouseOver:f}):(0,g.jsx)(ed,{className:"mt-6"}),(0,g.jsx)("div",{className:"flex gap-2 justify-center",children:x().map(e=>(0,g.jsx)(A.Z,{variant:"pagination",onClick:()=>u(e),disabled:p===e,className:"w-8 h-8",children:e},e))})]}):(0,g.jsx)(g.Fragment,{})]})},ef=l(4232),eg=l(3295),ev=l(985),eb=e=>{let{location:t,activeMarker:l}=e;return(0,g.jsx)(g.Fragment,{children:l===t.id&&(0,g.jsxs)("div",{className:"absolute m-auto left-4 right-4 bottom-4 bg-white p-4 md:right-6 md:left-14 md:bottom-14",children:[(0,g.jsx)(J.default,{prefetch:!1,href:t.full_slug,children:(0,g.jsx)(ea,{hasIcon:!1,location:t})},t.id),t.content.primary_phone_number&&(0,g.jsx)("a",{href:"tel:".concat(t.content.primary_phone_number),className:"inline-block",children:(0,g.jsxs)("p",{className:"flex items-center",children:[(0,g.jsx)(et,{className:"h-4 w-4 mr-2"}),(0,g.jsx)("span",{className:"text-sm text-text-headlines",children:t.content.primary_phone_number})]})})]},t.id)})},ej=e=>{let{mapData:t,mapBoundaryData:l,activeMarker:a,setActiveMarker:n,activeOverlay:r,setActiveOverlay:s,setLoaded:i}=e,{isMd:o}=(0,P.G)("md"),[c,d]=(0,v.useState)(null),m=l.length>0?l:t,{isLoaded:u}=(0,eg.Ji)({id:"google-map-team",googleMapsApiKey:ev.eu,language:"de"}),p=(0,v.useCallback)(e=>{i(!0),d(e)},[i]),x=(0,v.useCallback)(()=>{d(null)},[]);return(0,v.useEffect)(()=>{if(c&&null!==m){let e=new window.google.maps.LatLngBounds;m.map(t=>{e.extend({lat:Number(t.content.latitude),lng:Number(t.content.longitude)})}),c.fitBounds(e,0),1===m.length&&c.setZoom(12)}},[c,m]),(0,g.jsx)(v.Suspense,{children:u?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(eg.b6,{mapContainerStyle:{height:o?"calc(100vh - 100px)":"600px",position:"relative",top:o?"-41px":"0",right:o?"-40px":"0"},onLoad:p,options:{streetViewControl:!1,mapTypeControl:!1,fullscreenControl:!1},onUnmount:x,onClick:()=>{n(-1),s(-1)},children:t&&t.map(e=>(0,g.jsx)(eg.jC,{position:{lat:Number(e.content.latitude),lng:Number(e.content.longitude)},icon:a===e.id?"/assets/pngs/spotlight_marker.png":"/assets/pngs/pinlet_marker.png",onClick:()=>{n(e.id),s(e.id)}},"".concat(e.id,"-").concat(e.id===a)))}),t&&t.map(e=>r===e.id&&(0,g.jsx)(eb,{location:e,activeMarker:a},e.id))]}):(0,g.jsx)(g.Fragment,{})})};let ey=(0,ef.default)(()=>l.e(177).then(l.bind(l,5177)),{loadableGenerated:{webpack:()=>[5177]},ssr:!1}),ew=(0,v.forwardRef)((e,t)=>{let{mapBoundaryData:l,isListView:a,activeMarker:n,activeOverlay:r,mapData:s,setActiveMarker:i,setActiveOverlay:o,setLoaded:c}=e,d=(0,R.v)(),m=(0,v.useRef)(null),{isMd:u}=(0,P.G)("md"),p="calc(100vh - 106px)";return u||(p=a?"0px":"auto"),(0,v.useEffect)(()=>{m&&m.current&&(m.current.style.height=p)},[p]),(0,g.jsx)("div",{ref:m,className:(0,T.Z)("relative col-span-4 md:col-span-4 md:sticky md:top-[41px] md:bottom-0 xl:col-span-7 md:opacity-100 -mt-8 md:mt-0 -mx-4 md:mx-0",{"opacity-0 h-0":a}),children:d?(0,g.jsx)("div",{ref:t,children:(0,g.jsx)(ej,{mapBoundaryData:l,mapData:s,activeMarker:n,setActiveMarker:i,activeOverlay:r,setActiveOverlay:o,setLoaded:c})}):(0,g.jsx)(ey,{})})});var eN=e=>{let{data:t,services:l,products:a}=e,{isMd:n}=(0,P.G)("md"),r=(0,v.useRef)(null),s=(0,v.useRef)(null),i=(0,v.useRef)(null),o=(0,v.useRef)(null),c=(0,v.useRef)(0),d=(0,v.useRef)([]),m=L(()=>{z(-1),F(-1)}),u=(0,C.useSearchParams)(),p=(0,C.useRouter)(),x=(0,C.usePathname)(),h=u.getAll("products").map(e=>{var t;return(null===(t=a.find(t=>t.label===e))||void 0===t?void 0:t.uuid)||""}),f=u.getAll("services").map(e=>{var t;return(null===(t=l.find(t=>t.label===e))||void 0===t?void 0:t.uuid)||""}),[b,j]=(0,v.useState)(u.get("primary_category")||""),[y,w]=(0,v.useState)(f||[]),[N,_]=(0,v.useState)(h||[]),[k,Z]=(0,v.useState)(u.get("area")||""),[S,M]=(0,v.useState)(1),[T,A]=(0,v.useState)(null),[R,F]=(0,v.useState)(-1),[I,z]=(0,v.useState)(-1),[H,B]=(0,v.useState)(!0),[D,V]=(0,v.useState)(!1),[q,G]=(0,v.useState)(!1),U=()=>""===k&&""===b&&0===y.length&&0===N.length;(0,v.useEffect)(()=>{_(u.getAll("products").map(e=>{var t;return(null===(t=a.find(t=>t.label===e))||void 0===t?void 0:t.uuid)||""})),w(u.getAll("services").map(e=>{var t;return(null===(t=l.find(t=>t.label===e))||void 0===t?void 0:t.uuid)||""}))},[q,a,u,l]);let K=U()?t:T,W=null===K?1:Math.ceil(K.length/6),Y=(S-1)*6,Q=null===K?null:K.slice(Y,Y+6),X=n?"1000px":"600px",$=()=>{M(1)},J=function(e,t){let l=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=new URLSearchParams(u);return"products"===e||"services"===e?l?a.append(e,t):a.delete(e,t):""===t?a.delete(e):a.set(e,t),a.toString()},ee=e=>{let t=new URLSearchParams(u);return e.map(e=>{t.delete(e)}),t.toString()},et=(0,v.useCallback)(e=>{let t=[];
1return e.forEach(e=>{let l=e.content.primary_category===b,a=0===N.length||N.every(t=>{var l;return null===(l=e.content.products)||void 0===l?void 0:l.includes(t)}),n=0===y.length||y.every(t=>{var l;return null===(l=e.content.services)||void 0===l?void 0:l.includes(t)});l&&a&&n&&t.push(e)}),t},[b,N,y]),el=(0,v.useCallback)(e=>{if(i.current){let t=(0,O.orderByDistance)(i.current,e.map(e=>({latitude:Number(e.content.latitude),longitude:Number(e.content.longitude),uuid:e.uuid}))),l=[];t.forEach(t=>{let a=e.find(e=>e.uuid===t.uuid);a&&l.push(a)}),""===b&&0===y.length&&0===N.length?(A(l),d.current=l.slice(0,10)):(A(et(l)),d.current=et(l).slice(0,10))}},[et,b,N,y]),ea=(0,v.useCallback)(e=>{var l;null===(l=s.current)||void 0===l||l.geocode({address:"".concat(e,", Germany")},(e,l)=>{if("OK"===l&&e){var a;let l=null===(a=e.filter(e=>!e.types.includes("country"))[0])||void 0===a?void 0:a.geometry.location.toJSON();l?(i.current=l,o.current&&o.current.length>0?el(o.current):el(t)):A([])}})},[t,el]);return(0,v.useEffect)(()=>{q&&(s.current=new window.google.maps.Geocoder)},[q]),(0,v.useEffect)(()=>{""!==k&&s.current?ea(k):(i.current=null,A(o.current))},[k,ea,q,t]),(0,v.useEffect)(()=>{c.current++,""===k?(d.current=[],E(c.current,b,N,y,void 0,D).then(e=>{(c.current===e.requestId||e_.getState().locations.length)&&(o.current=e.items||e,A(e.items||e))})):o.current=null},[b,N,y,k,D]),(0,v.useEffect)(()=>{fetch("/api/draft-mode").then(e=>{200===e.status&&e.json().then(e=>{V(e)})})},[x]),(0,v.useEffect)(()=>{r.current&&(r.current.style.minHeight=X)},[X]),(0,g.jsx)("div",{className:"container pb-6 md:pr-10",children:(0,g.jsxs)("div",{ref:r,className:"relative grid grid-cols-4 md:grid-cols-8 xl:grid-cols-12 gap-x-2 md:gap-x-4",children:[(0,g.jsx)(eh,{handleViewClick:B,handleSearchClick:e=>{p.replace("".concat(x,"?").concat(J("area",e))),Z(t=>t===e?t:e),$()},handleSetCategoryClick:e=>{j(e),p.replace("".concat(x,"?").concat(J("primary_category",e))),$()},handleRemoveCategoryClick:()=>{j(""),w([]),_([]),p.replace("".concat(x,"?").concat(ee(["primary_category","products","services"]))),$()},handleSubCategoryChange:(e,t,n,r)=>{var s,i;let o="";"services"===t?(o=null===(s=l.find(e=>e.uuid===r))||void 0===s?void 0:s.label,w([...e])):(o=null===(i=a.find(e=>e.uuid===r))||void 0===i?void 0:i.label,_([...e])),p.replace("".concat(x,"?").concat(J(t,o||"",n))),$()},usedData:K,products:a,services:l,productsFilter:N,servicesFilter:y,locations:Q,handlePageClick:e=>{F(-1),M(e)},currentPage:S,getPageNumbers:()=>{let e=[],t=W>8?Math.max(1,S-Math.floor(4)):1,l=Math.min(W,t+8-1);for(let a=t;a<=l;a++)e.push(a);return e},isListView:H,setActiveMarker:F,isFiltersEmpty:U,areaFilter:k}),(0,g.jsx)(ew,{mapBoundaryData:d.current,isListView:H,activeMarker:R,activeOverlay:I,mapData:K,setLoaded:G,setActiveMarker:F,setActiveOverlay:z,ref:m})]})})};let e_=(0,b.Ue)((0,j.tJ)(()=>({locations:[],allServices:[],allProducts:[]}),{name:"locationData",storage:(0,j.FL)(()=>sessionStorage)})),ek=(0,b.Ue)(e=>({loadingState:!1,updateLoadingState:t=>e(()=>({loadingState:t}))}));function eE(e){let{isPreview:t}=e,l=(0,v.useRef)(!1),[a,n]=(0,v.useState)({locations:[],allServices:[],allProducts:[]}),r=ek(e=>e.updateLoadingState);return(0,v.useEffect)(()=>{r(l.current)},[a,r]),(0,v.useEffect)(()=>{l.current||e(t);async function e(e){try{let t=e_.getState();if(t.locations.length){n(t),l.current=!0;return}let[a,r,s]=await Promise.all([k(e),S("product"),S("service")]),i=r.map(e=>({label:e.content.product_tile[0].label,uuid:e.uuid})),o=s.map(e=>({label:e.content.service[0].title,uuid:e.uuid}));e_.setState({locations:a,allServices:o,allProducts:i}),n({locations:a,allServices:o,allProducts:i}),l.current=!0;return}catch(e){M(e)}}},[t]),(0,g.jsx)(eN,{data:a.locations,services:a.allServices,products:a.allProducts})}},6054:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return c}});var a,n=l(3827),r=l(3167),s=l(2846);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(this,arguments)}var o=function(e){return s.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:6,height:11,fill:"none"},e),a||(a=s.createElement("path",{fill:"currentColor",d:"M0 11 2.956 0H6L3.044 11H0Z"})))},c=e=>{let{className:t,slashIconClassName:l,children:a}=e;if(a)return(0,n.jsxs)("div",{className:(0,r.Z)("text-text-body-secondary text-xs md:text-sm font-bold text-left font-sanscondensed flex uppercase gap-1.5 items-baseline pb-1.5 md:pb-2",t),children:[(0,n.jsx)("div",{className:(0,r.Z)("text-secondary",l),children:(0,n.jsx)(o,{alt:""})}),(0,n.jsx)("div",{children:a})]})}},1258:function(e,t,l){"use strict";var a=l(3827),n=l(3167),r=l(8792);let s=e=>{let{ariaLabel:t,disabled:l,className:r="",children:s,href:i,onClick:o,type:c,as:d="button",baseStyling:m,variantStyling:u}=e;return(0,a.jsx)(d,{className:(0,n.Z)(m,u,r),disabled:l,href:i,target:i?"_blank":void 0,onClick:o,type:c,"aria-label":t,"aria-disabled":l,children:s})},i=e=>{let{icon:t,iconPosition:l="left",ariaLabel:r,disabled:s,className:i="",children:o,href:c,onClick:d,type:m,as:u="button",iconBaseStyling:p,variantStyling:x}=e;return(0,a.jsxs)(u,{className:(0,n.Z)(p,x,i),disabled:s,href:c,target:c?"_blank":void 0,onClick:d,type:m,"aria-label":r||"Button Icon","aria-disabled":s,children:["left"===l&&t,o&&(0,a.jsx)("span",{className:(0,n.Z)({"mr-6":"left"
1===l,"ml-6":"right"===l}),children:o}),"right"===l&&t]})};t.Z=e=>{let{variant:t="primary",block:l,icon:o,rounded:c,disabled:d,to:m}=e,u=(0,n.Z)("inline-block text-center py-4 px-8 whitespace-nowrap rounded-button font-sanscondensed text-base",{"w-full":l,"rounded-full":c,"cursor-not-allowed opacity-50":d});"pagination"===t&&(u=(0,n.Z)("inline-block text-center whitespace-nowrap rounded-button",{"w-full":l,"rounded-full":c,"cursor-not-allowed":d}));let p=(0,n.Z)("flex items-center justify-center",{"rounded-full":c}),x=(0,n.Z)({"bg-primary hover:bg-primary-targeted active:bg-primary-targeted focus:ring focus:ring-primary-targeted focus:bg-primary-targeted text-white":"primary"===t,"bg-secondary hover:bg-secondary-targeted active:bg-secondary-targeted focus:ring focus:ring-secondary-targeted focus:bg-secondary-targeted text-white":"secondary"===t,"bg-white hover:bg-primary-hover active:bg-primary-hover focus:bg-primary-hover text-primary outline outline-1 outline-primary":"outline"===t,"bg-transparent hover:bg-primary-hover active:bg-primary-hover focus:bg-primary-hover text-primary":"tertiary"===t,"bg-white hover:bg-gray-100 text-black":"white"===t,"font-bold border border-1 border-stroke-neutral-100 bg-white hover:bg-black text-black hover:text-white hover:bg-black active:bg-black focus:bg-black disabled:bg-black disabled:text-white":"pagination"===t,"bg-transparent text-black":"custom"===t});return o?m?(0,a.jsx)(r.default,{href:m,prefetch:!1,children:(0,a.jsx)(i,{iconBaseStyling:p,variantStyling:x,...e})}):(0,a.jsx)(i,{iconBaseStyling:p,variantStyling:x,...e}):m?(0,a.jsx)(r.default,{href:m,prefetch:!1,children:(0,a.jsx)(s,{baseStyling:u,variantStyling:x,...e})}):(0,a.jsx)(s,{baseStyling:u,variantStyling:x,...e})}},8703:function(e,t,l){"use strict";l.d(t,{Z:function(){return d}});var a,n,r=l(3827),s=l(3167),i=l(2846);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(this,arguments)}var c=function(e){return i.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},e),a||(a=i.createElement("rect",{width:24,height:24,fill:"currentColor",rx:12})),n||(n=i.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M13 6h-2v8h2V6Zm0 10h-2v2h2v-2Z",clipRule:"evenodd"})))},d=e=>{let{error:t,className:l,alignLeft:a=!1,hasIcon:n=!0}=e;return(0,r.jsxs)("span",{className:(0,s.Z)("relative flex items-center pt-1 text-alert-error text-xs",l,a?"justify-start":"justify-end"),children:[n&&(0,r.jsx)(c,{className:"absolute -top-12 translate-y-1/2 right-4 w-6 h-6 text-alert-error"}),t]})}},1282:function(e,t,l){"use strict";var a=l(3827),n=l(3167);t.Z=e=>{let{helperText:t,className:l}=e;return(0,a.jsx)("span",{className:(0,n.Z)("flex items-center p-1 text-xs text-text-weak",l),children:t})}},4202:function(e,t,l){"use strict";var a=l(3827),n=l(4090),r=l(3167),s=l(913),i=l(8703),o=l(1282);let c=(0,n.forwardRef)((e,t)=>{let{name:l,label:n,helperText:c,placeholder:d,error:m,className:u,required:p=!1,requiredFlag:x=!1,inputProps:h}=e;return(0,a.jsxs)("div",{className:(0,r.Z)("flex flex-col",u),children:[(0,a.jsxs)("label",{className:"mb-1 block text-input-text-label-idle md:whitespace-nowrap",htmlFor:l,children:[n,"\xa0",p&&x&&(0,a.jsx)("span",{className:"text-alert-error",children:"*"})]}),(0,a.jsx)("input",{ref:t,className:"block h-12 bg-input-surface-neutral-50 pl-4 pr-14 text-body-md focus:outline-none placeholder:text-input-text-label-idle placeholder:text-base",id:l,placeholder:d,name:l,...h,required:p}),(m||c)&&(0,a.jsx)(s.E.div,{initial:{opacity:0}
1,whileInView:{opacity:1},transition:{duration:.4},children:m?(0,a.jsx)(i.Z,{error:m}):(0,a.jsx)(o.Z,{helperText:c})})]})});c.displayName="FormInput",t.Z=c},3707:function(e,t,l){"use strict";var a=l(3827),n=l(3167),r=l(8792),s=l(265);let i=e=>(null==e?void 0:e.includes("mailto:"))?"email":(null==e?void 0:e.includes("assets"))||(null==e?void 0:e.includes("a.storyblok"))?"asset":(null==e?void 0:e.includes("https//:"))?"url":void 0;t.Z=e=>{let{variant:t="primary",children:l,underlined:o,to:c,href:d,rel:m,target:u="_blank",type:p,onClick:x,title:h,as:f="a",className:g,disabled:v=!1}=e,b="inline-block whitespace-nowrap cursor-pointer flex flex-row gap-2 justify-center items-center",j=(0,n.Z)({underline:o}),y=(0,n.Z)({"bg-surface-neutral-800 text-text-neutral-0 hover:text-text-neutral-0 hover:no-underline uppercase font-bold p-5":"primary"===t||"primary-narrow"===t,"bg-surface-neutral-0 text-button-surface-primary-neutral-800 hover:text-neutral-800 hover:no-underline border border-solid border-stroke-neutral-200 uppercase font-bold p-5":"secondary"===t||"secondary-narrow"===t,"bg-surface-neutral-800 text-text-neutral-0 text-sm hover:text-text-neutral-0 hover:no-underline h-11 md:h-12 py-3.5 px-6":"tertiary"===t,"bg-surface-neutral-0 text-text-headlines text-sm hover:text-neutral-800 hover:no-underline border border-solid border-stroke-neutral-100 h-11 md:h-12 py-3.5 px-6":"quaternary"===t,"!p-4 md:!p-5 h-[39px] md:h-[48px]":"primary-narrow"===t||"secondary-narrow"===t}),w=(0,n.Z)({"!bg-input-surface-neutral-50 !text-neutral-500 border-stroke-neutral-500 cursor-wait":v}),N=null==d?void 0:d.replace(/b__[^/]+\//g,"");return c?(0,a.jsx)(r.default,{href:c,rel:m,prefetch:!1,className:(0,n.Z)("unstyled"!==t&&[b,j,y],g),title:h,children:l}):(0,a.jsx)(f,{rel:m,prefetch:"false",type:p,disabled:v,href:"email"===i(N)?"".concat(N):"asset"===i(N)?(0,s.m)(N):N,target:"asset"===i(N)?"_blank":u,onClick:x,className:(0,n.Z)("unstyled"!==t&&[b,j,y,w],g),title:h,children:l})}},7041:function(e,t,l){"use strict";l.r(t);var a=l(3827),n=l(4090),r=l(7907);t.default=()=>{let e=(0,r.usePathname)(),t=(0,r.useSearchParams)();return(0,n.useEffect)(()=>{e&&(window.origin,t.toString()&&t.toString(),window._mtm=window._mtm||[],window._mtm.push({event:"custom.page_view"}))},[e,t]),(0,a.jsx)(a.Fragment,{})}},5189:function(e,t,l){"use strict";l.d(t,{G:function(){return r}});var a=l(8811);let n=l(7254).theme.screens;function r(e){let t=(0,a.useMediaQuery)({query:"(min-width: ".concat(n[e],")")}),l=e.charAt(0).toUpperCase()+e.substring(1);return{["is".concat(l)]:t}}},9656:function(e,t,l){"use strict";l.d(t,{v:function(){return n}});var a=l(4090);let n=()=>{let[e,t]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{let e=function(e){e.detail&&("SAVE"===e.detail.type||"ACCEPT_ALL"===e.detail.type||"DENY_ALL"===e.detail.type)&&t(UC_UI.getServicesBaseInfo().find(e=>"S1pcEj_jZX"===e.id).consent.status)},l=function(){!0===UC_UI.getServicesBaseInfo().find(e=>"S1pcEj_jZX"===e.id).consent.status&&t(!0)};return window.UC_UI&&window.UC_UI.isInitialized()&&l(),window.addEventListener("UC_UI_CMP_EVENT",e),window.addEventListener("UC_UI_INITIALIZED",l),()=>{window.removeEventListener("UC_UI_CMP_EVENT",e),window.removeEventListener("UC_UI_INITIALIZED",l)}},[]),e}},7864:function(e,t,l){"use strict";l.d(t,{l:function(){return r}});var a=l(2020),n=l(5249);let r=(0,a.Ue)()((0,n.mW)((0,n.tJ)(e=>({isSearchOverlayVisible:!1,showSearchOverlay:t=>e({isSearchOverlayVisible:t})}),{name:"search-overlay-storage"})))},985:function(e,t,l){"use strict";l.d(t,{Pb:function(){return m},T:function(){return d},Vw:function(){return u},Yb:function(){return c},ae:function(){return o},eq:function(){return n},eu:function(){return s},ho:function(){return i},kn:function(){return p},m1:function(){return r}});var a=l(2215);let n=50,r="main-body";a.env.MATOMO_TAG_MANAGER_CONTAINER_URL,a.env.MS_GRAPH_MAIL_TENANT_ID,a.env.MS_GRAPH_MAIL_CLIENT_ID,a.env.MS_GRAPH_MAIL_CLIENT_SECRET;let s="AIzaSyAasDYOcq7vaQj84D49uqQx9FwjXbfSTKA";a.env.ALGOLIA_WRITE_KEY;let i="LWRVGFXLMW",o="prod_profikarstensen",c=!0,d="ec69f8a959e1ae33a30116ec10c31cac";
1a.env.USERCENTRICS_DATASETTINGS_ID,a.env.NEXTCACHEDURATION;let m="FCMTHQQQM0BEA8GU";a.env.FRIENDLYCAPTCHA_APIKEY;let u=!1,p=!1},1345:function(e,t,l){"use strict";l.d(t,{H:function(){return n}});var a=l(3827);function n(e){let{error:t}=e;return console.log(t),(0,a.jsx)("div",{className:"bg-surface-primary text-white p-4",children:"Komponente konnte nicht gerendert werden, da ein Fehler passiert ist."})}},1584:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return tm}});var a,n,r,s,i,o,c,d,m,u,p,x,h=l(6511),f=l(4232),g=l(3370),v=l(7941),b=l(3827),j=l(4090),y=l(3167),w=l(2004),N=l(3707),_=l(265),k=l(8112),E=e=>{let{blok:t}=e,l=e=>{if(!e)return"text-left";for(let l of e){var t;if(null===(t=l.props)||void 0===t?void 0:t.className){if(l.props.className.includes("text-center"))return"text-center";if(l.props.className.includes("text-right"))return"text-right"}return"text-left"}},a=e=>j.Children.map(e,e=>{if(j.isValidElement(e)){let t={...e.props};return t.className&&t.className.includes("block")&&(t.className=t.className.replace("block","")),t.children&&(t.children=a(t.children)),j.createElement(e.type,t)}return e});return(0,b.jsx)("div",{...(0,h.LF)(t),className:"py-content-mobile md:py-content-desktop",children:(0,w.sY)(t.text,{markResolvers:{[w.et]:(e,t)=>{let{linktype:l,href:a}=t;return(0,b.jsx)(N.Z,{variant:"unstyled",href:"email"===l?"mailto:".concat(a):"asset"===l?(0,_.m)(a):a,target:"url"===l||"asset"===l?"_blank":"_self",className:(0,y.Z)("text-base font-sans font-bold underline decoration-1 underline-offset-2 text-link-text-neutral-800 [&_span]:!text-link-text-neutral-800","hover:text-link-text-neutral-800 hover:decoration-1"),children:e})},[w.Qp]:e=>(0,b.jsx)("strong",{className:"text-base font-bold text-link-text-neutral-800 font-sans [&_span]:!text-link-text-neutral-800",children:e}),[w.GX]:e=>(0,b.jsx)("sub",{className:"text-xs font-sans text-text-body-primary [&_span]:!text-text-body-primary [&_span]:!text-xs",children:e}),[w.Wp]:e=>(0,b.jsx)("sup",{className:"text-xs font-sans text-text-body-primary [&_span]:!text-text-body-primary [&_span]:!text-xs",children:e})},nodeResolvers:{[w.tw]:(e,t)=>{let{level:a}=t,n="text-left";return e?(n=l(e),(0,b.jsx)("h".concat(a),{className:(0,y.Z)(n,"text-text-headlines hyphens-auto first:mt-0 last:mb-0 [&_span]:!text-text-headlines",1===a||2===a?"text-3xl font-extrabold font-sanscondensed my-4":"text-xl font-bold font-sans my-3"),children:e})):null},[w.iZ]:e=>(0,b.jsx)("ol",{className:"flex flex-col gap-3.5 py-3.5 pl-2 first:mt-0 last:mb-0",children:e}),[w.mD]:e=>(0,b.jsx)("ul",{className:"flex flex-col gap-3.5 py-3.5 first:mt-0 last:mb-0 pl-2",style:{"--marker-color":k.THEME_COLOR_PRIMARY},children:e}),[w.wZ]:e=>(0,b.jsx)("li",{className:"text-base text-text-body-primary font-sans [&>p]:inline [&>p]:mb-0 list-marker",children:e}),[w.e3]:e=>{let t="text-left";if(!e)return null;t=l(e);let n=a(e);return(0,b.jsx)("p",{className:(0,y.Z)("text-base font-sans text-text-body-primary my-8 first:mt-0 last:mb-0 hyphens-auto",t,"[&_span]:!text-base [&_span]:!font-sans [&_span]:!text-text-body-primary"),children:n})}}})})},Z=l(2981);let S=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;for(var l,a=0|t,n=0,r=-4&e.length;n<r;n+=4)a^=Math.imul(l=(l=Math.imul(l=e[n+3]<<24|e[n+2]<<16|e[n+1]<<8|e[n],3432918353))<<15|l>>>17,461845907),a=Math.imul(a=a<<13|a>>>19,5)+3864292196|0;switch(l=0,3&e.length){case 3:l^=e[n+2]<<16;case 2:l^=e[n+1]<<8;case 1:l^=e[n],a^=Math.imul(l=(l=Math.imul(l,3432918353))<<15|l>>>17,461845907)}return a^=e.length,a^=a>>>16,a=Math.imul(a,2246822507),a^=a>>>13,a=Math.imul(a,3266489909),(a^=a>>>16)>>>0},C=e=>{let{headline:t,body:l,index:a,ariaIdPrefix:n,headline_tag:r}=e,[s,i]=(0,j.useState)(!1),o="".concat(n,"-accordion-button-").concat(a),c="".concat(n,"-accordion-item-").concat(a);return(0,b.jsxs)("div",{className:"border-b border-[#b0b0b0] pb-4 md:pb-6",children:[(0,b.jsx)("button",{onClick:()=>i(!s),id:o,"aria-controls":c,"aria-expanded":s,"aria-label":t,className:"flex cursor-pointer justify-between pt-4 md:pt-6 text-left w-full",children:(0,b.jsxs)("div",{className:"flex justify-between w-full items-baseline gap-6",children:[(0,b.jsx)(r||"p",{className:"text-text-headlines text-xl font-extrabold font-sanscondensed self-start",children:t}),(0,b.jsx)("div",{children:(0,b.jsx)(Z.Z,{className:(0,y.Z)("h-7 w-7 shrink-0 transition-all duration-300 hover:shadow-arrow",s&&"rotate-180")}
1)})]})}),(0,b.jsx)("div",{className:"[&>div]:!mt-4 [&>div]:!mb-0 [&>_div]:!m-0 [&>_div]:!p-0",id:c,"aria-labelledby":o,hidden:!s,children:(0,b.jsx)(E,{blok:l[0]})})]})};var M=l(9097),O=l(8723),L=l(703),P=l(6054),T=e=>{var t;let{contact:{position:l,first_name:a,last_name:n,email:r,phone_number:s,mobile_number:i,fax_number:o,image:c,show_phone_number:d,show_mobile_number:m,show_fax_number:u,show_email:p,show_position:x},cta:h,columns:f}=e,[g,v]=(0,j.useState)(c);return(0,j.useEffect)(()=>{var e;let t=(null==c?void 0:null===(e=c.filename)||void 0===e?void 0:e.includes("placeholder"))||!1;if(!(null==c?void 0:c.filename)||t){let e="".concat(null==r?void 0:r.replace(/[@.]/g,"-"));fetch("/api/assets?fileName=".concat(e,"&placeholder=").concat(!t,"}")).then(e=>e&&e.json()).then(e=>{e&&e.filename&&(e.filename=e.filename.replace("s3.amazonaws.com","/"),v(e))})}},[null==c?void 0:c.filename,r]),(0,b.jsxs)("div",{className:(0,y.Z)("bg-surface-neutral-0 border border-surface-neutral-100 col-span-4 grid grid-cols-4",{"md:grid-cols-10 md:col-span-8 xl:col-span-10 xl:col-start-2":!f||"1"===f}),children:[(0,b.jsx)("div",{className:(0,y.Z)("relative max-md:aspect-video col-span-4 w-full",{"aspect-video":"2"===f}),children:(null==g?void 0:g.filename)&&(0,b.jsx)(L.default,{alt:null!==(t=g.alt)&&void 0!==t?t:"",src:g.filename,className:"object-cover",fill:!0,sizes:"2"===f?"(min-width: 1480px) 622px, (min-width: 780px) calc(44.41vw - 26px), calc(100vw - 66px)":"(min-width: 1560px) 441px, (min-width: 1280px) calc(20.77vw + 121px), (min-width: 780px) calc(40vw - 23px), calc(100vw - 34px)",loading:"lazy"})}),(0,b.jsxs)("div",{className:(0,y.Z)("py-6 px-4 md:py-8  col-span-4 md:min-h-[243px]  flex flex-col  justify-between items-start gap-2 md:gap-4",{"md:px-10 md:col-span-6 lg:flex-row lg:items-center":!f||"1"===f}),children:[(0,b.jsxs)("div",{children:[l&&x&&(0,b.jsx)(P.default,{className:"!pb-0.5 md:!pb-0",children:l}),(0,b.jsx)("p",{className:"text-text-headlines text-xl font-sanscondensed font-extrabold hyphens-auto col-span-4 mb-2 md:mb-4 md:col-span-8 md:text-3xl",children:a+" "+n}),(0,b.jsxs)("ul",{className:"text-text-body-primary text-body-sm md:text-base",children:[r&&p&&(0,b.jsxs)("li",{className:"list-none flex flex-row",children:[(0,b.jsx)("span",{className:"inline-block w-20 shrink-0",children:"E-Mail:"}),(0,b.jsx)("a",{href:"mailto:".concat(r),className:"underline break-all",children:r})]}),s&&d&&(0,b.jsxs)("li",{className:"list-none",children:[(0,b.jsx)("span",{className:"inline-block w-20",children:"Telefon:"}),(0,b.jsx)("a",{href:"tel:".concat(s),className:"underline",children:s})]}),i&&m&&(0,b.jsxs)("li",{className:"list-none",children:[(0,b.jsx)("span",{className:"inline-block w-20",children:"Mobil:"}),(0,b.jsx)("a",{href:"tel:".concat(i),className:"underline",children:i})]}),o&&u&&(0,b.jsxs)("li",{className:"list-none",children:[(0,b.jsx)("span",{className:"inline-block w-20",children:"Fax:"}),o]})]})]}),h&&(null==h?void 0:h.length)>0&&(0,b.jsx)("div",{className:(0,y.Z)("pt-3.5 md:pt-0 max-md:w-full flex flex-row gap-2 md:gap-4",{"lg:flex-col":!f||"1"===f,"flex-wrap":"2"===f}),children:null==h?void 0:h.slice(0,2).map((e,t)=>{var l;return(0,b.jsx)(N.Z,{variant:0===t?"primary":"secondary",target:(null===(l=e.url)||void 0===l?void 0:l.linktype)==="url"?"_blank":"_self",href:(0,M.Q)(e.url),className:"max-md:h-[40px] grow text-btn-xs md:text-btn-sm",children:e.label},e._uid)})})]})]})},A=l(7907),R=l(9542),F=l(2670);let I="Bitte f\xfcllen Sie dieses Feld aus",z="Sorry, hier ist was schief gelaufen. Ihre Nachricht konnte leider nicht gesendet werden.",H="Vielen Dank f\xfcr Ihre Nachricht!",B="Wir haben Ihre E-Mail erhalten und melden uns in K\xfcrze bei Ihnen.";var D=l(4202);let V=e=>{var t,l;let{name:a,label:n,required:r=!1,className:s,defaultValue:i,placeholder:o,pattern:c,errorMessage:d="",errorMessagePattern:m=""}=e,{register:u,formState:{errors:p}}=(0,F.Gc)();return(0,b.jsx)(D.Z,{name:a,label:"".concat(n," ").concat(r?"*":""),required:r,className:s,inputProps:{...u(a,{required:r?d||"This field is required":void 0,pattern:{value:c,message:m||"Bitte \xfcberpr\xfcfen Sie das Format ihrer Eingabe"}}),defaultValue:i},placeholder:o,error:null!==(l=null===(t=p[a])||void 0===t?void 0:t.message)&&void 0!==l?l:""})};V.displayName="ValidatedFormInput";var q=l(7111),G=l(2388),U=l(913),K=l(8703),W=l(1282),Y=e=>{let{name:t,label:l,helperText:a,placeholder:n,defaultValue:r,options:s,required:i,requiredFlag:o,error:c,className:d,onChange:m,validate:u,disabled:p}
1=e,[x,h]=(0,j.useState)(r||null);return(0,b.jsxs)("div",{className:d,children:[(0,b.jsx)(q.R,{value:x,onChange:e=>{null==m||m(e),h(e),null==u||u(e)},name:t,children:e=>{let{open:a}=e;return(0,b.jsxs)(b.Fragment,{children:[l&&(0,b.jsxs)(q.R.Label,{className:"mb-1 block text-input-text-label-idle",htmlFor:t,children:[l,"\xa0",i&&o&&(0,b.jsx)("span",{className:"text-alert-error",children:"*"})]}),(0,b.jsxs)("div",{className:"relative",children:[(0,b.jsxs)(q.R.Button,{className:(0,y.Z)("block w-full h-12 bg-input-surface-neutral-50 pl-4 pr-10 py-2 text-body-md focus:outline-none placeholder:text-input-text-label-idle placeholder:text-base",p&&"pointer-events-none",x&&"border-l-2 border-l-stroke-neutral-800"),children:[(0,b.jsx)("span",{className:"flex items-center",children:x?(0,b.jsx)("span",{className:"block truncate",children:x.label}):(0,b.jsx)("span",{className:"text-input-text-label-idle",children:n})}),(0,b.jsx)("span",{className:"pointer-events-none absolute inset-y-0 right-2 flex cursor-pointer items-center",children:(0,b.jsx)(Z.Z,{className:(0,y.Z)(a&&"rotate-180","h-6 w-6 text-text transition-all duration-300"),"aria-hidden":"true"})})]}),(0,b.jsx)(G.u,{show:a,as:j.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,b.jsx)(q.R.Options,{className:"absolute z-10 mt-1 max-h-56 w-full text-base bg-white shadow-default border border-stroke-neutral-100 overflow-y-auto",children:s.map(e=>(0,b.jsx)(q.R.Option,{className:e=>{let{selected:t,active:l}=e;return(0,y.Z)(l||t?"bg-input-surface-neutral-50 text-text":"text-input-text-label-idle","relative cursor-pointer select-none list-none border-b border-b-stroke-neutral-50 last:border-b-0 py-2 pr-9")},value:e,children:t=>{let{selected:l,active:a}=t;return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:"flex items-center",children:(0,b.jsx)("span",{className:(0,y.Z)("","ml-4 block truncate"),children:e.label})}),l?(0,b.jsx)("span",{className:(0,y.Z)(a?"text-white":"text-primary","absolute inset-y-0 right-0 flex items-center pr-4")}):null]})}},e.label))})})]})]})}}),(c||a)&&(0,b.jsx)(U.E.div,{initial:{opacity:0}
1,whileInView:{opacity:1},transition:{duration:.4},children:c?(0,b.jsx)(K.Z,{error:c,hasIcon:!1}):(0,b.jsx)(W.Z,{helperText:a})})]})},Q=e=>{var t,l;let{name:a,label:n,options:r,placeholder:s,defaultValue:i,required:o=!1,className:c,disabled:d=!1,errorMessage:m}=e,{register:u,setValue:p,trigger:x,formState:{errors:h}}=(0,F.Gc)();return u(a,{required:m}),(0,j.useEffect)(()=>{(async function(){i&&(p(a,i.value),await x(i.value))})()},[]),(0,b.jsx)(Y,{name:a,className:c,label:n,options:r,placeholder:s,defaultValue:i,disabled:d,required:o,error:null!==(l=null===(t=h[a])||void 0===t?void 0:t.message)&&void 0!==l?l:"",onChange:async e=>{p(a,null==e?void 0:e.value),await x(a)}})};let X=(0,j.forwardRef)((e,t)=>{let{name:l,label:a,helperText:n,placeholder:r,error:s,className:i,required:o=!1,requiredFlag:c=!1,textareaProps:d}=e;return(0,b.jsxs)("div",{className:(0,y.Z)("flex flex-col",i),children:[(0,b.jsxs)("label",{className:"mb-1 block text-input-text-label-idle",htmlFor:l,children:[a,"\xa0",o&&c&&(0,b.jsx)("span",{className:"text-alert-error",children:"*"})]}),(0,b.jsx)("textarea",{ref:t,className:"block bg-input-surface-neutral-50 px-4 py-2 text-body-md focus:outline-none placeholder:text-input-text-label-idle placeholder:text-base",id:l,placeholder:r,...d}),(s||n)&&(0,b.jsx)(U.E.div,{initial:{opacity:0}
1,whileInView:{opacity:1},transition:{duration:.4},children:s?(0,b.jsx)(K.Z,{error:s}):(0,b.jsx)(W.Z,{helperText:n})})]})});X.displayName="FormTextArea";let $=e=>{var t,l;let{name:a,label:n,required:r=!1,className:s,pattern:i,errorMessage:o="",...c}=e,{register:d,formState:{errors:m}}=(0,F.Gc)();return(0,b.jsx)(X,{name:a,label:"".concat(n," ").concat(r?"*":""),error:null!==(l=null===(t=m[a])||void 0===t?void 0:t.message)&&void 0!==l?l:"",required:r,className:s,textareaProps:{...d(a,{required:r?o||"This field is required":void 0,pattern:{value:i,message:o||"Invalid email address"}}),...c}})};$.displayName="ValidatedFormTextArea";var J=l(8161),ee=l(5906),et=l(7847),el=l(2846);function ea(){return(ea=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(this,arguments)}var en=function(e){return el.createElement("svg",ea({xmlns:"http://www.w3.org/2000/svg",id:"SE_svg__Ebene_1",viewBox:"0 0 48.05 37.19"},e),a||(a=el.createElement("defs",null,el.createElement("style",null,".SE_svg__cls-1{fill:currentColor}"))),n||(n=el.createElement("path",{d:"M7.44 13.93h9.45v20.96H7.44V13.93Zm11.75-2.3V2.3h20.64v32.58H19.19V11.63ZM16.88 0v11.63H5.13v23.26H0v2.3h48.05v-2.3h-5.92V0H16.88Z",className:"SE_svg__cls-1"})),r||(r=el.createElement("path",{d:"M9.38 16.14h2.3v3.55h-2.3zM12.63 16.14h2.3v3.55h-2.3zM9.38 20.87h2.3v3.55h-2.3zM12.63 20.87h2.3v3.55h-2.3zM9.38 25.57h2.3v3.55h-2.3zM12.63 25.57h2.3v3.55h-2.3zM21.78 6.76h2.3v3.55h-2.3zM25.03 6.76h2.3v3.55h-2.3zM21.78 11.48h2.3v3.55h-2.3zM25.03 11.48h2.3v3.55h-2.3zM21.78 16.18h2.3v3.55h-2.3zM25.03 16.18h2.3v3.55h-2.3zM28.43 6.76h2.3v3.55h-2.3zM31.68 6.76h2.3v3.55h-2.3zM28.43 11.48h2.3v3.55h-2.3zM31.68 11.48h2.3v3.55h-2.3zM28.43 16.18h2.3v3.55h-2.3zM31.68 16.18h2.3v3.55h-2.3zM34.93 6.76h2.3v3.55h-2.3zM34.93 11.48h2.3v3.55h-2.3zM34.93 16.18h2.3v3.55h-2.3z",className:"SE_svg__cls-1"})))};let er=/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/,es=/^[A-Za-zäöüßÄÖÜ-]+(\s[A-Za-zäöüßÄÖÜ-]+)*$/,ei=/^[0-9+\-()/\s]+$/,eo=/^(0?[1-9]|[12][0-9]|3[01])\.(0?[1-9]|1[012])\.(\d{2}|\d{4})$/,ec=/^[A-Za-z]{2}[0-9-\s]+$/,ed=/^[A-Za-zäöüßÄÖÜ0-9.\s-]+$/,em=/^\d{5}$/,eu=/^[A-Za-zäöüßÄÖÜ\s.-]+$/;var ep=l(1085),ex=l(9077),eh=e=>{let{name:t,label:l,disabled:a=!1,onBlur:n,id:r,value:s,inputProps:i}=e;return(0,b.jsxs)("div",{className:"flex items-center",children:[(0,b.jsx)("input",{...i,id:r,type:"radio",name:t,value:s,disabled:a,onBlur:n,onChange:n,className:"appearance-none w-5 h-5 bg-input-surface-neutral-50 before:content[''] relative cursor-pointer before:absolute before:top-2/4 before:left-2/4 before:block before:h-3/5 before:w-3/5 before:-translate-y-2/4 before:-translate-x-2/4 checked:before:bg-surface-primary"}),(0,b.jsxs)("label",{htmlFor:r,className:"ml-2 text-md text-input-text-label-idle",children:[l instanceof Array?l.map(e=>e):l,"\xa0"]})]})},ef=e=>{var t;let{name:l,label:a,className:n,labelClassName:r,id:s,value:i,required:o=!1,errorMessage:c="",buttons:d,onBlur:m,...u}=e,{register:p,formState:{errors:x}}=(0,F.Gc)();return(0,b.jsxs)("div",{children:[a&&(0,b.jsxs)("label",{className:(0,y.Z)("block text-input-text-label-idle",r),htmlFor:l,children:[a,"\xa0",o&&"*"]}),(0,b.jsx)("div",{className:n,children:d.map((e,t)=>(0,b.jsx)(eh,{name:l,label:e.label,className:n,id:e.value,onBlur:m,value:e.value,inputProps:{...p(l,{required:o?c||"This field is required":void 0}),id:l,...u}},t))}),(null===(t=x[l])||void 0===t?void 0:t.message)&&(0,b.jsx)("div",{className:"my-2",children:(0,b.jsx)(U.E.div,{initial:{opacity:0}
1,whileInView:{opacity:1},transition:{duration:.4},children:(0,b.jsx)(K.Z,{hasIcon:!1,alignLeft:!0,error:c||"Bitte w\xe4hlen Sie eine Option aus"})})})]})},eg=l(6339),ev=l(985),eb=e=>{let{handleCaptcha:t}=e,l=(0,j.useRef)(),a=(0,j.useRef)(),n=e=>{t(e)},r=e=>{console.log("There was an error when trying to solve the Captcha."),console.log(e)};return(0,j.useEffect)(()=>(!a.current&&l.current&&(a.current=new eg.c(l.current,{startMode:"focus",doneCallback:n,errorCallback:r})),()=>{void 0!==a.current&&a.current.reset()}),[l]),(0,b.jsx)("div",{ref:l,className:"frc-captcha","data-sitekey":ev.Pb})};let ej=async e=>{let t;try{t=await (0,ex.to)(e,!1)}catch(e){t=void 0}return t},ey=async(e,t)=>{var l,a;let n;let r="standort/".concat(t,"/").concat(e);try{n=(await (0,ex.$d)(r,!1)).story}catch(e){n=void 0}return(null==n?void 0:null===(a=n.content)||void 0===a?void 0:null===(l=a.email)||void 0===l?void 0:l.url)||void 0},ew=()=>(0,b.jsx)("div",{id:"thankyou",className:"w-full md:w-[656px] py-content-mobile md:py-content-desktop",children:(0,b.jsxs)("section",{className:"pb-5 md:pb-16",children:[(0,b.jsx)("h2",{className:"text-text-headlines text-2xl font-sanscondensed font-extrabold hyphens-auto col-span-4 md:col-span-8 md:text-3xl xl:col-start-3",children:H}),(0,b.jsx)("p",{className:"text-base font-sans text-text-body-primary pt-1 md:pt-6 pb-5 md:pb-10 hyphens-auto text-left",children:B}),(0,b.jsx)("div",{className:"flex flex-row",children:(0,b.jsx)(N.Z,{className:"whitespace-nowrap uppercase cursor-pointer p-5 font-bold flex flex-row gap-2 justify-center items-center bg-surface-neutral-800 text-text-neutral-0 hover:text-text-neutral-0 hover:no-underline text-btn-xs md:text-btn-sm",variant:"primary",as:"button",to:"/",children:"Zur Startseite"})})]})});var eN=l(4155);function e_(){return(e_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(this,arguments)}var ek=function(e){return el.createElement("svg",e_({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},e),s||(s=el.createElement("path",{fill:"currentColor",d:"M9 3.586 7.586 5l7 7-7 7L9 20.414 17.414 12 9 3.586Z"})))};function eE(){return(eE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(this,arguments)}var eZ=function(e){return el.createElement("svg",eE({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},e),i||(i=el.createElement("path",{fill:"#2C2C2C",d:"M13 2v12.586l6-6L20.414 10 12 18.414 3.585 10 5 8.586l6 6V2h2ZM3 20h18v2H3z"})))};let eS=e=>t=>{t.preventDefault();let l=window.location.host.includes("team.de")?"https://".concat(v.M.ASSETSDOMAIN):"https://s3.amazonaws.com/a.storyblok.com",a=e.replace("https://a.storyblok.com",l),n=a.split("/").pop();return fetch(a,{method:"GET"}).then(e=>e.blob()).then(e=>{var t;let l=window.URL.createObjectURL(new Blob([e])),a=document.createElement("a");a.href=l,a.setAttribute("download",null!=n?n:""),document.body.appendChild(a),a.click(),null===(t=a.parentNode)||void 0===t||t.removeChild(a)}).catch(()=>{})};function eC(){return(eC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(this,arguments)}function eM(){return(eM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(this,arguments)}function eO(){return(eO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(this,arguments)}let eL=[{id:"heatingOil",label:"Heiz\xf6l",icon:(0,b.jsx)(function(e){return el.createElement("svg",eM({xmlns:"http://www.w3.org/2000/svg",id:"Heizoel_svg__Ebene_1",viewBox:"0 0 45.88 66.19"}
1,e),d||(d=el.createElement("defs",null,el.createElement("clipPath",{id:"Heizoel_svg__clippath"},el.createElement("path",{d:"M0 0h45.88v66.1H0z",className:"Heizoel_svg__cls-1"})),el.createElement("clipPath",{id:"Heizoel_svg__clippath-1"},el.createElement("path",{d:"M0 0h45.88v66.1H0z",className:"Heizoel_svg__cls-1"})),el.createElement("style",null,".Heizoel_svg__cls-1{fill:none}"))),el.createElement("g",{style:{clipPath:"url(#Heizoel_svg__clippath)",fill:"none"}},el.createElement("path",{d:"M34.72 31.7c-2.24-4.49-4.99-9.23-7.45-14.3-2.06-4.27-3.92-8.77-5.06-13.55-1.3 5-3.31 9.64-5.5 14.03-2.34 4.7-4.88 9.1-6.97 13.32C7.18 36.37 5.3 41.27 5.3 46.12c0 5.65 1.66 10.05 4.24 13.2 3.25 3.97 7.96 5.95 12.67 5.95s9.16-1.87 12.39-5.62c2.74-3.17 4.51-7.68 4.51-13.53 0-4.56-1.86-9.33-4.4-14.41m-20.56 10.3c-.61 2.85-1.91 4.98-2.92 4.77-1.01-.22-1.33-2.7-.73-5.54.61-2.85 1.92-4.98 2.92-4.76 1.01.21 1.33 2.7.73 5.54m1.11-9.09c-.23 1.07-.72 1.87-1.09 1.79-.38-.08-.5-1.01-.27-2.08.23-1.07.72-1.87 1.1-1.79.38.08.5 1.01.27 2.08m15.41 28.82c-2.62 1.76-6.23 2.74-11.17 1.83 3.91.26 7.68-.32 10.79-2.21 3.07-1.87 5.5-5.01 6.77-9.86-.41 2.19-2.02 7.31-6.39 10.24",style:{fill:"#fff"}})),el.createElement("g",{style:{clipPath:"url(#Heizoel_svg__clippath-1)",fill:"none"}},el.createElement("path",{d:"M34.72 31.7c-2.24-4.49-4.99-9.23-7.45-14.3-2.07-4.27-3.92-8.77-5.06-13.55-1.3 5-3.31 9.64-5.5 14.03-2.34 4.7-4.88 9.1-6.97 13.32C7.18 36.37 5.3 41.27 5.3 46.12c0 5.65 1.65 10.05 4.23 13.2 3.25 3.97 7.96 5.95 12.67 5.95s9.16-1.87 12.39-5.62c2.74-3.17 4.51-7.68 4.51-13.53 0-4.56-1.87-9.33-4.4-14.41m-20.56 10.3c-.61 2.85-1.91 4.98-2.92 4.77-1.01-.22-1.33-2.7-.73-5.54.61-2.85 1.91-4.98 2.92-4.77 1.01.21 1.34 2.7.73 5.54Z",style:{stroke:"currentColor",strokeMiterlimit:10,strokeWidth:"1.86px",fill:"none"}})))},{className:"w-triple h-triple md:w-medium md:h-medium"})},{id:"electricity",label:"Strom",icon:(0,b.jsx)(function(e){return el.createElement("svg",eO({xmlns:"http://www.w3.org/2000/svg",id:"Strom_svg__Ebene_1",viewBox:"0 0 40.96 58.79"},e),el.createElement("defs",null,el.createElement("clipPath",{id:"Strom_svg__clippath"},el.createElement("path",{d:"M0 0h40.96v58.79H0z",style:{fill:"none"}})),m||(m=el.createElement("style",null,".Strom_svg__cls-2{fill:none;stroke:currentColor;stroke-miterlimit:10;stroke-width:2px}"))),el.createElement("g",{style:{clipPath:"url(#Strom_svg__clippath)",fill:"none"}},u||(u=el.createElement("path",{d:"m11.33 28.66 5.45-.79-4.85 8.67 1.64-6.39-5.3.6 7.32-11.28-4.26 9.19Zm12.77 7.9V19.2c0-2.23-1.9-4.05-4.23-4.05H5.23C2.9 15.15 1 16.97 1 19.2v17.36c0 2.23 1.9 4.05 4.23 4.05h14.65c2.33 0 4.23-1.82 4.23-4.05ZM9.01 13.71c0 .7-.67 1.27-1.49 1.27h-.99c-.82 0-1.49-.57-1.49-1.27V2.48c0-.7.66-1.27 1.49-1.27h.99c.82 0 1.49.57 1.49 1.27v11.23ZM20.04 13.56c0 .71-.67 1.28-1.5 1.28h-1c-.83 0-1.49-.57-1.49-1.28V2.28c0-.71.67-1.28 1.49-1.28h1c.83 0 1.5.57 1.5 1.28v11.28ZM9.65 41.44h6.46c.64 0 1.16.52 1.16 1.16v1.74c0 .64-.52 1.16-1.16 1.16H9.65c-.64 0-1.16-.52-1.16-1.16V42.6c0-.64.52-1.16 1.16-1.16ZM24.3 57.79c-.25 0-.49 0-.74-.02-3.25-.15-6.33-1.25-8.66-3.1-2.6-2.06-4.03-4.89-4.03-7.95h3.86c0 2.39 1.4 4 2.57 4.93 1.68 1.33 4.02 2.16 6.43 2.27 5.37.24 11.42-2.9 12.3-12.46l3.84.35c-.49 5.34-2.49 9.65-5.8 12.47-2.67 2.28-6.12 3.51-9.78 3.51Z",className:"Strom_svg__cls-2"}))))},{className:"w-triple h-triple md:w-medium md:h-medium"})},{id:"gas",label:"Erdgas",icon:(0,b.jsx)(function(e){return el.createElement("svg",eC({xmlns:"http://www.w3.org/2000/svg",id:"Erdgas_svg__Ebene_1",viewBox:"0 0 38.6 65.17"},e),el.createElement("defs",null,el.createElement("clipPath",{id:"Erdgas_svg__clippath"},el.createElement("path",{d:"M0 0h38.6v65.17H0z",style:{fill:"none"}})),o||(o=el.createElement("style",null,".Erdgas_svg__cls-3{fill:currentColor}"))),el.createElement("g",{style:{clipPath:"url(#Erdgas_svg__clippath)",fill:"none"}},c||(c=el.createElement("path",{d:"M16.61 0c1.75 3 2.45 5.95 2.44 8.82-.02 7.1-4.34 13.86-7.9 20.45-2.73 5.01-5.07 9.94-5.07 15.11 0 4.45 1.7 9.07 6.34 14.11-1.61-2.85-2.27-5.63-2.26-8.36.02-6.82 4.16-13.41 7.94-20.27 2.82-5.15 5.39-10.49 5.4-15.92 
10-4.6-1.82-9.26-6.88-13.94M26.73 18.86c-3.99 3.18-5.37 6.53-5.38 9.93 0 3.39 1.36 6.83 2.89 10.18 2.08 4.54 4.4 8.93 4.39 13.29 0 2.12-.57 4.23-1.98 6.35 3.7-3.46 5.01-6.77 5.02-10.06 0-3.21-1.24-6.38-2.7-9.63-1.96-4.36-4.36-8.85-4.35-13.37 0-2.22.6-4.46 2.12-6.69M19.89 57.01c-.15 0-.31-.01-.46-.01-1.58 0-3.17.39-4.5 1.16-1.76 1.04-2.84 2.62-3.12 4.54l-10.6-.02L0 63.88l1.2 1.21 11.74.03.87-.36.34-.84v-.2c0-1.89 1.08-2.93 2.01-3.47.93-.55 2.1-.82 3.27-.82.12 0 .23 0 .35.01 1.05.05 2.08.33 2.92.82.92.55 2 1.59 1.99 3.48v.19l.34.84.86.37 11.5.02 1.21-1.21-1.2-1.21-10.37-.02c-.27-1.92-1.35-3.5-3.1-4.55-1.19-.71-2.6-1.1-4.04-1.17",className:"Erdgas_svg__cls-3"}))))},{className:"w-triple h-triple md:w-medium md:h-medium"})}];var eP=l(7069),eT=l(8745),eA=l(473),eR=e=>{let{blok:t}=e,{h1_headline:l,headline:a,text:n,caption:r,keyline:s,headline_highlight_color:i}=t;return(0,b.jsxs)("div",{...(0,h.LF)(t),className:(0,y.Z)("py-content-mobile md:py-content-desktop",{"border-b border-surface-neutral-100 mb-2":s}),children:[r&&(0,b.jsx)(P.default,{className:"!pb-0.5 md:!pb-0",children:r}),(0,b.jsx)(l?"h1":"div",{className:(0,y.Z)("text-left hyphens-auto break-word text-text-headlines font-sanscondensed uppercase italic text-4xl md:text-6xl font-extrabold [&_span[style]]:text-text-neutral-0 [&_span[style]]:inline-block [&_span[style]]:not-italic [&_span[style]]:-skew-x-12 [&_span[style]]:px-[5px]",{"[&_span[style]]:!bg-surface-secondary":"primary"===i||!i,"[&_span[style]]:!bg-surface-primary":"secondary"===i}),children:(0,w.sY)(a,{nodeResolvers:{[w.e3]:e=>e?e.map(e=>e):null}})}),n&&(0,b.jsx)("p",{className:(0,y.Z)("hyphens-auto pt-4 md:pt-6 text-lg text-left text-text-body-primary"),children:n})]})},eF=e=>{let{onLeftClick:t,onRightClick:l}=e;return(0,b.jsxs)("div",{className:"flex",children:[(0,b.jsx)("button",{className:"md:p-small border-none text-icon-neutral-800 mr-double md:hover:shadow-arrow","aria-label":"Vorheriger Slide",onClick:t,children:(0,b.jsx)(eN.Z,{})}),(0,b.jsx)("button",{className:"md:p-small border-none text-icon-neutral-800 md:hover:shadow-arrow",onClick:l,"aria-label":"N\xe4chster Slide",children:(0,b.jsx)(ek,{})})]})};let eI=e=>{let{filename:t,name:l,alt:a="",optimized_max_width:n,optimized_mid_width:r}=e;return(0,b.jsxs)("div",{className:"relative @container",children:[(0,b.jsx)(L.default,{className:"w-full h-auto aspect-video object-cover",src:t,alt:a,sizes:"(min-width: 1480px) ".concat(n,"px, (min-width: 780px) ").concat(r,"vw, calc(100vw - 32px)"),width:0,height:0,loading:"lazy"}),l&&(0,b.jsx)("div",{className:"absolute right-0 -bottom-5 @md:bottom-0",children:(0,b.jsx)("div",{className:"relative inline-flex items-center z-0 max-w-[255px] @md:max-w-xs bg-green-100 p-4 pl-3 @md:p-8 @md:pl-7 hyphens-auto text-sm @md:text-lg font-sans text-text-headlines leading-[22px] @md:leading-[30px] before:block before:absolute before:right-[calc(100%-23px)] before:h-full before:w-[40px] before:-skew-x-12 before:bg-green-100 before:-z-10",children:(0,b.jsx)("p",{className:"line-clamp-3",children:l})})})]})};var ez=l(9663);let eH=e=>{let{className:t}=e;return(0,b.jsx)("span",{className:(0,y.Z)("text-icon-neutral-0 inline-block p-min md:p-small lg:p-base","bg-surface-neutral-800 skew-x-right-arrow-revert",t),children:(0,b.jsx)(ez.Z,{className:"skew-x-right-arrow fill-icon-neutral-0 scale-75 md:scale-90 lg:scale-100"})})};var eB=e=>{let{blok:t,className:l}=e,{label:a,image:n,link:r}=t;return(0,b.jsx)("li",{className:l,children:(0,b.jsx)(N.Z,{variant:"unstyled",...(0,h.LF)(t),href:(0,M.Q)(r),target:"url"===r.linktype?"_blank":"_self",children:(0,b.jsxs)("article",{className:"h-full text-left group border border-stroke-neutral-100 md:hover:shadow-default md:hover:border-none",children:[(0,b.jsxs)("div",{className:"w-full relative aspect-video",children:[(0,b.jsx)(L.default,{alt:n.alt||"",src:n.filename,fill:!0,sizes:"(min-width: 1480px) 318px, (min-width: 780px) 22.21vw, calc(50vw - 22px)",className:"object-cover",loading:"lazy"}),(0,b.jsx)("span",{className:(0,y.Z)("absolute right-6 pt-6"),children:(0,b.jsx)(eH,{className:"hidden md:group-hover:inline-block"})})]}),(0,b.jsx)("div",{className:"min-h-[62px] p-double md:min-h-[108px] md:p-triple",children:(0,b.jsx)("p",{className:"text-text-headlines text-sm md:text-lg hyphens-auto",children:a})})]})})})},eD=e=>{let{blok:{title:t,headline_tag:l,body:a,icon:n},className:r}=e,s=n.filename.endsWith(".svg");return(0,b.jsxs)("li",{className:r,children:[(0,b.jsx)("div",{className:"w-full",children:(0,b.jsx)(L.default,{src:n.filename,alt:n.alt||"",width:0,height:0,sizes:s?void 0:"(min-width: 1520px) 331px, (min-width: 1280px) calc(24.55vw - 37px), (min-width: 1040px) calc(33.18vw - 129px), (min-width: 780px) calc(50vw - 108px), calc(100vw - 112px)",unoptimized:s,className:(0,y.Z)("mx-auto",s?"h-xlarge w-xlarge md:h-3xlarge md:w-3xlarge":"w-full h-full",(t||a)&&"mb-4"),loading:"lazy"})}),t&&(0,b.jsx)(l||"p",{className:(0,y.Z)("text-center text-body-md font-sans font-bold text-text-headlines md:text-lg",a&&"mb-2"),children:t}),a&&(0,b.jsx)("p",{className:"text-center text-text-body-primary text-body-sm md:text-body-md max-w-[320px] m-auto",children:a})]})};let eV=(e,t)=>e/t-30,eq=e=>"services"===e?"services":"products"===e?"produkte":e;var eG=e=>{let{headline:t,blok:l,itemsType:a}=e,n=(0,j.useRef)(null),r=t||("services"===a?"Unsere Services":"Unsere Produkte"),s=1===l.length,i=2===l.length,o=3===l.length,c=4===l.length,d=l.length>4,m=eq(a),u=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return()=>{let t=n.current;if(t){let a=eV(t.scrollWidth,l.length);t.scrollLeft+=e?a:-a}}};return(0,b.jsxs)("section",{className:"pt-content-mobile md:pt-content-desktop",id:m,children:[(0,b.jsxs)("div",{className:"grid grid-cols-12 col-span-12",children:[(0,b.jsx)("div",{className:"col-span-12 md:col-span-7 lg:col-span-5",children:(0,b.jsx)("p",{className:"text-title-sm md:text-3xl text-text-headlines font-extrabold font-sanscondensed",children:r})}),!s&&(0,b.jsx)("div",{className:(0,y.Z)("flex items-end justify-start col-span-12 md:justify-end md:mt-0","md:col-start-5 md:col-span-8 lg:col-start-6 lg:col-span-7 mt-double md:mt-0",{" hidden":i&&"products"===a,"flex sm:hidden":i&&"services"===a,"lg:hidden":o&&"products"===a,"flex md:hidden":o&&"services"===a,"flex xxl:hidden":c&&"products"===a}),children:(0,b.jsx)(eF,{onLeftClick:u(),onRightClick:u(!0)})})]}),"services"===a&&(0,b.jsx)("div",{className:(0,y.Z)("grid grid-cols-xs-usp-slider grid-flow-col auto-cols-xs-usp-item overflow-y-auto gap-x-6 pt-4 pb-5 md:pt-10 md:pb-8 max-md:-mx-double max-md:px-double",{"!flex justify-center [&>div]:!basis-full":s,"md:flex md:flex-wrap md:justify-center md:w-full":s||o,"sm:flex sm:flex-wrap sm:justify-center sm:w-full sm:gap-x-0":i,"md:gap-x-0 lg:gap-0":o,"md:grid-cols-md-usp-slider grid-flow-col md:auto-cols-md-usp-item overflow-y-auto sm:gap-x-6: md:gap-x-4":c||d}),ref:n,children:l.map(e=>(0,j.createElement)("ul",{...(0,h.LF)(e),className:(0,y.Z)({"md:px-10 md:basis-1/3 lg:px-14":s,"sm:px-10 sm:basis-1/2 lg:basis-1/3 lg:px-14":i,"md:px-4 md:basis-1/3 lg:px-6":o,"lg:block":c||d,"col-span-12 xs:col-span-10 xs:col-start-2 md:col-span-8":s,"md:col-span-4":o}),key:e._uid},(0,b.jsx)(eD,{blok:e,className:"list-none block"})))}),"products"===a&&(0,b.jsx)("ul",{className:(0,y.Z)("grid gap-x-2 lg:gap-x-4 c
1ol-span-12 pt-double md:pt-triple pb-content-mobile md:pb-content-desktop lg:py-triple max-md:-mx-double max-md:px-double",{"grid-cols-xs-product-slider grid-flow-col auto-cols-xs-product-item sm:grid-cols-lg-product-slider sm:auto-cols-lg-product-item":s||i,"grid-cols-xs-product-slider auto-cols-xs-product-item sm:grid-cols-lg-product-slider sm:auto-cols-lg-product-item md:grid-cols-xl-product-slider grid-flow-col md:auto-cols-xl-product-item overflow-y-auto":o,"grid-cols-xs-product-slider auto-cols-xs-product-item sm:grid-cols-lg-product-slider sm:auto-cols-lg-product-item lg:grid-cols-xl-product-slider grid-flow-col lg:auto-cols-xl-product-item overflow-y-auto":c||d}),ref:n,children:null==l?void 0:l.map(e=>(0,b.jsx)(eB,{blok:e,className:"list-none block"},e._uid))})]})},eU=l(9656),eK=l(3295),eW=l(5189),eY=e=>{let{longitude:t,latitude:l,business_name:a,fullAddress:n}=e,{isMd:r}=(0,eW.G)("md"),{isLoaded:s}=(0,eK.Ji)({id:"google-map-team",googleMapsApiKey:ev.eu,language:"de"}),i=e=>{let t="".concat(a," ").concat(e),l=window.open("https://www.google.com/maps/search/?api=1&query=".concat(encodeURIComponent(t)),"_blank","noopener,noreferrer");l&&(l.opener=null)};return(0,b.jsx)(b.Fragment,{children:s?(0,b.jsx)(b.Fragment,{children:(0,b.jsx)(eK.b6,{mapContainerStyle:{height:r?"369px":"193px"},zoom:15,center:{lat:Number(l),lng:Number(t)},options:{streetViewControl:!1,mapTypeControl:!1,fullscreenControl:!1},children:(0,b.jsx)(eK.jC,{position:{lat:Number(l),lng:Number(t)},onClick:()=>i(n),icon:"/assets/pngs/spotlight_marker.png",title:a})})}):(0,b.jsx)(b.Fragment,{})})};let eQ=(0,f.default)(()=>l.e(177).then(l.bind(l,5177)),{loadableGenerated:{webpack:()=>[5177]},ssr:!1});var eX=e=>{let{dateString:t}=e,[l,a]=t.split(" "),[n,r,s]=l?l.split("-").map(Number):[0,0,0],[i,o]=a?a.split(":").map(Number):[0,0],c=n&&r?new Date(n,r-1,s,i,o):new Date,d=e=>e<10?"0".concat(e):String(e),m=d(c.getDate()),u=d(c.getMonth()+1),p=String(c.getFullYear()),x="".concat(m,".").concat(u,".").concat(p);return(0,b.jsx)("time",{dateTime:t,children:x})},e$=l(8792),eJ=e=>{let{article:{content:{headline:t,image:l,publication_date:a},full_slug:n}}=e,r=t[0].headline.content[0].content.map(e=>e.text).join(" ");return(0,b.jsx)("li",{className:"list-none",children:(0,b.jsx)(e$.default,{prefetch:!1,href:"/".concat(n),className:"block h-full",children:(0,b.jsxs)("div",{className:"h-full text-left group border border-stroke-neutral-100 md:hover:shadow-default",children:[(0,b.jsx)("div",{className:"w-full aspect-video relative",children:(0,b.jsx)(L.default,{alt:l.alt||"",fill:!0,sizes:"(min-width: 1024px) 432px, (min-width: 780px) 29.56vw, (min-width: 580px) 300px, 255px",src:l.filename,className:"object-cover",loading:"lazy"})}),(0,b.jsxs)("div",{className:"p-double pb-10 md:p-triple md:pb-16",children:[(0,b.jsx)(P.default,{children:(0,b.jsx)("div",{className:"flex items-center gap-3 mb-small",children:(0,b.jsx)("div",{className:"text-body-sm text-text-body-secondary font-bold font-sanscondensed",children:(0,b.jsx)(eX,{dateString:a})})})}),(0,b.jsx)("p",{className:"line-clamp-2 text-text-headlines text-body-sm md:text-body-md",children:r})]})]})})})},e0=e=>{let{blok:{headline:t,headline_tag:l},articles:a}=e,n=1===a.length,r=2===a.length,s=3===a.length,i=4===a.length,o=(0,j.useRef)(null),c=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return()=>{let t=o.current;if(t){let l=eV(t.scrollWidth,a.length);t.scrollLeft+=e?l:-l}}};return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("div",{className:"grid grid-cols-12 col-span-12",children:[(0,b.jsx)("div",{className:"col-span-12 md:col-span-7 lg:col-span-5",children:t&&(0,b.jsx)(l||"p",{className:"text-title-sm md:text-3xl text-text-headlines font-extrabold font-sanscondensed mb-3 md:mb-double",children:t})}),!n&&(0,b.jsx)("div",{className:(0,y.Z)("flex items-end justify-start col-span-12 md:justify-end md:mt-0 md:col-start-5 md:col-span-8 lg:col-start-6 lg:col-span-7",{"md:hidden":r,"lg:hidden":s,"xxl:hidden":i}),children:(0,b.jsx)(eF,{onLeftClick:c(),onRightClick:c(!0)})})]}
1),(0,b.jsx)("ul",{className:"grid gap-x-2 md:gap-x-4 col-span-12 py-double lg:py-triple grid-cols-xl-slider grid-flow-col auto-cols-xl-item overflow-y-auto max-md:-mx-double max-md:px-double",ref:o,children:a.map(e=>(0,b.jsx)(eJ,{article:e},e.uuid))})]})},e1=l(5543),e2=l(8344);l(6978),l(3624),l(7124),l(7916),l(8861);let e4=(0,j.forwardRef)(function(e,t){let{index:l,headline:a,text:n,image:r,isHighlight:s,link:i,linkLabel:o,headlineTag:c}=e,d=(0,e2.c6)(),m=(0,e2.oc)(),u=(0,j.useRef)(null);(0,j.useEffect)(()=>{let e;function t(){clearTimeout(e),e=setTimeout(()=>{let e=Math.min(2/3*100,Math.max(9/19*100,(window.innerHeight-100)/window.innerWidth*100));u.current&&(u.current.style.paddingBottom="".concat(e,"%"))},200)}return window.addEventListener("resize",t,{passive:!0}),window.addEventListener("orientationchange",t,{passive:!0}),t(),()=>{clearTimeout(e),window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t)}},[]);let p=(0,b.jsx)("div",{ref:u,className:"relative pb-[56.25%]",children:(0,b.jsx)(L.default,{alt:(null==r?void 0:r.alt)||"",src:r.filename,sizes:"(min-width: 1480px) 759px, (min-width: 780px) 50vw, calc(50vw - 22px)",className:(0,y.Z)("object-cover absolute h-full w-full top-0 left-0 max-sm:transition-transform max-sm:duration-300",!d.isActive&&(d.isNext||d.isPrev)&&"max-sm:scale-90",!d.isActive&&!d.isNext&&!d.isPrev&&"max-sm:scale-50 max-sm:!duration-100"),width:"700",height:"500",priority:!0})});return(0,b.jsxs)("div",{ref:t,"data-index":l,className:(0,y.Z)("pointer-events-auto flex flex-col"),onClick:e=>{d.isActive||(e.preventDefault(),e.stopPropagation(),m.slideToLoop(l))},children:[i.url||i.cached_url?(0,b.jsx)(N.Z,{variant:"unstyled",target:"_self",className:(0,y.Z)(!d.isActive&&"pointer-events-none"),href:(0,M.Q)(i),children:p}):p,(0,b.jsxs)("div",{className:(0,y.Z)("md:px-16 sm:px-4 px-2 flex flex-col justify-center news-slider-text--visible",!d.isActive&&"news-slider-text--hidden",s?"-mt-4 sm:-mt-8":"mt-8"),children:[a&&(0,b.jsx)(c||"p",{className:(0,y.Z)("break-words hyphens-auto text-center text-title-sm md:text-3xl font-extrabold font-sanscondensed",n&&"mb-base md:mb-double",s?"hyphens-auto break-word uppercase text-title-sm sm:!text-4xl md:!text-5xl lg:!text-6xl text-text-neutral-0 !bg-surface-primary inline-block mx-auto -skew-x-12 px-[5px]":"text-text-headlines"),children:a}),n&&(0,b.jsx)("p",{className:"break-words hyphens-auto text-center text-sm md:text-base",children:n}),(i.url||i.cached_url)&&o&&(0,b.jsxs)(N.Z,{variant:"unstyled",className:"mt-4 text-sm flex flex-row gap-4 group justify-center items-center text-link-text-neutral-800 hover:text-link-text-neutral-900 font-bold",target:(null==i?void 0:i.url.linktype)==="url"?"_blank":"_self",href:(0,M.Q)(i),children:[(0,b.jsx)("span",{className:"shrink",children:o}),(0,b.jsx)(O.Z,{className:"shrink-0 inline-block group-hover:ml-1.5 transition-[margin] ease-out"})]})]})]})});var e3=l(4188),e5=e=>{let{name:t,label:l,disabled:a=!1,onBlur:n,error:r,className:s,required:i,inputProps:o}=e;return(0,b.jsxs)("div",{className:(0,y.Z)("flex flex-col items-start justify-center",s),children:[(0,b.jsxs)("div",{className:"flex items-start",children:[(0,b.jsx)("input",{type:"checkbox",name:t,id:t,disabled:a,onBlur:n,className:(0,y.Z)("min-h-[17px] min-w-[17px] mt-1 cursor-pointer border-border text-white checked:text-white accent-[#48a906] transition duration-200 checked:bg-primary",{"outline-alert-error":r,"cursor-not-allowed ":a}),...o}),(0,b.jsxs)("label",{htmlFor:t,className:"ml-2 text-md text-input-text-label-idle",children:[l instanceof Array?l.map(e=>e):l,"\xa0",i&&(0,b.jsx)("span",{children:"*"})]})]}),r&&(0,b.jsx)("div",{className:"mb-2",children:(0,b.jsx)(U.E.div,{initial:{opacity:0}
1,whileInView:{opacity:1},transition:{duration:.4},children:(0,b.jsx)(K.Z,{hasIcon:!1,error:r})})})]})},e6=e=>{var t,l;let{name:a,label:n,className:r,required:s=!1,errorMessage:i="",...o}=e,{register:c,formState:{errors:d}}=(0,F.Gc)();return(0,b.jsx)(e5,{name:a,label:n,className:r,required:s,inputProps:{...c(a,{required:s?i||"This field is required":void 0}),id:a,...o},error:null!==(l=null===(t=d[a])||void 0===t?void 0:t.message)&&void 0!==l?l:""})};let e8=e=>{let{handleFormSubmit:t,emailSendState:l,handleCaptcha:a,isSubmitting:n}=e,r=(0,F.cI)({mode:"onBlur"}),s=(0,j.useRef)(null),[i,o]=(0,j.useState)(null),c=r.handleSubmit(async e=>{t(e,"business",i)});return(0,b.jsx)(F.RV,{...r,children:(0,b.jsx)("form",{noValidate:!0,className:"flex justify-center mt-6 py-content-mobile md:py-content-desktop",ref:s,onSubmit:c,children:(0,b.jsxs)("div",{className:"w-full",children:[(0,b.jsxs)("section",{className:"",children:[(0,b.jsx)("h3",{className:"text-text-headlines text-xl font-sanscondensed font-extrabold hyphens-auto col-span-4 md:col-span-8 md:text-2xl xl:col-start-3",children:"Pers\xf6nliche Daten"}),(0,b.jsx)("div",{className:"w-full gap-2 grid grid-flow-row-dense grid-cols-1 md:grid-cols-2 grid-rows-1 mt-2 md:mt-4 ",children:(0,b.jsx)(V,{name:"customerCompany",label:"Firma",className:"max-w-full",required:!0,errorMessage:I})}),(0,b.jsxs)("div",{className:"w-full gap-2 grid grid-flow-row-dense grid-cols-1 md:grid-cols-2 md:grid-rows-1 mt-2 md:mt-4 ",children:[(0,b.jsx)(V,{name:"customerFirstName",label:"Vorname",pattern:es,className:"max-w-full",required:!0,errorMessage:I}),(0,b.jsx)(V,{name:"customerLastName",label:"Nachname (Bei GbR: Gesch\xe4ftsf\xfchrer)",pattern:es,className:"max-w-full",required:!0,errorMessage:I})]}),(0,b.jsx)(V,{name:"customerAddress",label:"Stra\xdfe und Hausnummer",pattern:ed,className:"w-full mt-2 md:mt-4",required:!0,errorMessage:I}),(0,b.jsxs)("div",{className:"w-full gap-2 grid grid-flow-row-dense grid-cols-1 md:grid-cols-2 md:grid-rows-1 mt-2 md:mt-4 ",children:[(0,b.jsx)(V,{name:"customerZip",label:"PLZ",pattern:em,className:"max-w-full",required:!0,errorMessage:I}),(0,b.jsx)(V,{name:"customerCity",label:"Ort",pattern:eu,className:"max-w-full",required:!0,errorMessage:I})]}),(0,b.jsxs)("div",{className:"w-full gap-2 grid grid-flow-row-dense grid-cols-1 md:grid-cols-2 md:grid-rows-1 mt-2 md:mt-4 ",children:[(0,b.jsx)(V,{name:"customerTelephone",label:"Rufnummer",pattern:ei,className:"max-w-full",errorMessage:I}),(0,b.jsx)("div",{className:"w-full md:hidden block",children:(0,b.jsx)("small",{children:"Bitte geben Sie Ihre Telefonnummer f\xfcr R\xfcckfragen bei der Lieferung mit an."})}),(0,b.jsx)(V,{name:"customerMail",label:"E-Mail",className:"max-w-full",pattern:er,required:!0,errorMessage:I})]}),(0,b.jsx)("div",{className:"w-full gap-2 grid-flow-row-dense grid-cols-1 md:grid-rows-1 mt-2 md:mt-4 md:grid hidden",children:(0,b.jsx)("small",{children:"Bitte geben Sie Ihre Telefonnummer f\xfcr R\xfcckfragen bei der Lieferung mit an."})}),(0,b.jsx)(Q,{name:"customerNeeds",options:[{label:"Dach- und Holzbau",value:"Dach- und Holzbau"},{label:"Hochbau",value:"Hochbau"},{label:"Innenausbau",value:"Innenausbau"},{label:"Tiefbau",value:"Tiefbau"},{label:"Garten- und Landschaftsbau",value:"Garten- und Landschaftsbau"},{label:"Sonstiges",value:"Sonstiges"}],required:!0,placeholder:"Gewerk",className:"w-full mt-10",errorMessage:"Bitte w\xe4hlen Sie ein Thema aus"},"needs"),(0,b.jsx)($,{name:"customerMessage",label:"Bemerkungen",className:"w-full mt-8",rows:4,errorMessage:I})]}),(0,b.jsxs)("section",{children:[(0,b.jsx)("h3",{className:"text-text-headlines text-xl font-sanscondensed font-extrabold hyphens-auto col-span-4 md:col-span-8 md:text-2xl xl:col-start-3 md:mt-10 mt-6",children:"Zahlungsdaten"}),(0,b.jsxs)("div",{className:"mt-4",children:[(0,b.jsx)(e6,{className:"mb-2",name:"customerInvoicePerMail",errorMessage:I,label:"Rechnungsversand per Email",defaultChecked:!0}),(0,b.jsx)(e6,{className:"mb-2",name:"customerInvoicePerAddress",errorMessage:I,label:"Rechnung pro Lieferadresse"})]}),(0,b.jsx)(V,{name:"customerUST",label:"UST-ID",pattern:ec,className:"w-full mt-2 md:mt-4",required:!1,errorMessage:I,errorMessagePattern:"Bitte benutzen Sie das Format: DE123456789"}),(0,b.jsx)(ef,{name:"customerPay",label:"",required:!0,className:"w-full gap-2 grid grid-flow-row-dense grid-cols-1 md:grid-cols-3 grid-rows-3 md:grid-rows-1 mt-4 md:mt-6",id:"payment",errorMessage:"Bitte w\xe4hlen Sie eine Zahlungsmethode aus.",buttons:[{label:"Zahlung vor Ort",value:"cash"},{label:"Rechnung",value:"invoice"},{label:"Bankeinzug",value:"debit"}],onBlur:e=>{let t=e.target.value;"invoice"===t?o("invoice"):"debit"===t?o("debit"):"cash"===t?o("cash"):o(null)}}),"invoice"===i&&(0,b.jsx)(V,{name:"customerDOB",label:"Geburtsdatum Rechnungsempf\xe4nger",pattern:eo,placeholder:"tt.mm.jjjj",className:"w-full mt-2 md:mt-4",required:!0,errorMessage:I,errorMessagePattern:"Bitte nutzen Sie ein valides Datum im Format: tt.mm.jjjj"}),"debit"===i&&(0,b.jsxs)("div",{className:"w-full gap-2 grid grid-flow-row-dense grid-cols-1 md:grid-cols-2 md:grid-rows-1 mt-2 md:mt-4 ",children:[(0,b.jsx)(V,{name:"customerOwner",label:"SEPA-Lastschriftmandat Kontoinhaber",pattern:es,className:"max-w-full",required:!0,errorMessage:I}),(0,b.jsx)(V,{name:"customerIBAN",label:"SEPA-Lastschriftmandat IBAN",pattern:ec,className:"max-w-full",required:!0,errorMessage:I,errorMessagePattern:"Bitte benutzen Sie das Format: DE1234567890"})]})]}),(0,b.jsxs)("section",{className:"md:mt-8 mt-4",children:[(0,b.jsx)(e6,{className:"mb-2",name:"customerPrivacy",required:!0,errorMessage:I,label:["Ich habe die ",(0,b.jsx)(N.Z,{variant:"unstyled",className:"underline",href:"/datenschutz",children:"Datenschutzhinweise"},"datenschutzLink")," gelesen und akzeptiere diese."]}),(0,b.jsx)(e6,{className:"mb-2",name:"customerAGB",required:!0,errorMessage:I,label:["Ich habe die ",(0,b.jsx)(N.Z,{variant:"unstyled",className:"underline",href:"https://a.storyblok.com/f/252999/x/79d2498071/200124_verkauf_team_baucenter_gmbh___co-_kg_.pdf",children:"allgemeinen Gesch\xe4ftsbedingungen"},"datenschutzLink")," gelesen und akzeptiere diese."]}),"error"===l&&(0,b.jsx)("section",{className:"flex mt-5 md:mt-10 text-alert-error",children:(0,b.jsx)("p",{children:z})}),(0,b.jsx)("p",{className:"pt-4",children:"* Pflichtfeld."})]}),(0,b.jsx)("div",{className:"w-full flex justify-center my-5 md:my-10 [&_.frc-content]:overflow-hidden",children:(0,b.jsx)(eb,{handleCaptcha:a})}),(0,b.jsx)("section",{className:"flex justify-end mt-5 md:mt-10",children:(0,b.jsx)(N.Z,{className:"text-btn-sm h-12",variant:"primary",as:"button",type:"submit",disabled:n,children:"Senden"})})]})})})}
1,e7=e=>{let{handleFormSubmit:t,emailSendState:l,handleCaptcha:a,isSubmitting:n}=e,r=(0,F.cI)({mode:"onBlur"}),s=(0,j.useRef)(null),[i,o]=(0,j.useState)(null),[c,d]=(0,j.useState)(!1),m=r.handleSubmit(async e=>{t(e,"private",i)});return(0,b.jsx)(F.RV,{...r,children:(0,b.jsx)("form",{noValidate:!0,className:"flex justify-center mt-6 py-content-mobile md:py-content-desktop",ref:s,onSubmit:m,children:(0,b.jsxs)("div",{className:"w-full",children:[(0,b.jsxs)("section",{className:"",children:[(0,b.jsx)("h3",{className:"text-text-headlines text-xl font-sanscondensed font-extrabold hyphens-auto col-span-4 md:col-span-8 md:text-2xl xl:col-start-3",children:"Pers\xf6nliche Daten"}),(0,b.jsxs)("div",{className:"w-full gap-2 grid grid-flow-row-dense grid-cols-1 md:grid-cols-2 md:grid-rows-1 mt-2 md:mt-4 ",children:[(0,b.jsx)(V,{name:"customerFirstName",label:"Vorname",pattern:es,className:"max-w-full",required:!0,errorMessage:I}),(0,b.jsx)(V,{name:"customerLastName",label:"Nachname",pattern:es,className:"max-w-full",required:!0,errorMessage:I})]}),(0,b.jsx)(V,{name:"customerAddress",label:"Stra\xdfe und Hausnummer",pattern:ed,className:"w-full mt-2 md:mt-4",required:!0,errorMessage:I}),(0,b.jsxs)("div",{className:"w-full gap-2 grid grid-flow-row-dense grid-cols-1 md:grid-cols-2 md:grid-rows-1 mt-2 md:mt-4 ",children:[(0,b.jsx)(V,{name:"customerZip",label:"PLZ",pattern:em,className:"max-w-full",required:!0,errorMessage:I}),(0,b.jsx)(V,{name:"customerCity",label:"Ort",pattern:eu,className:"max-w-full",required:!0,errorMessage:I})]}),(0,b.jsxs)("div",{className:"w-full gap-2 grid grid-flow-row-dense grid-cols-1 md:grid-cols-2 md:grid-rows-1 mt-2 md:mt-4 ",children:[(0,b.jsx)(V,{name:"customerTelephone",label:"Rufnummer",pattern:ei,className:"max-w-full",errorMessage:I}),(0,b.jsx)("div",{className:"w-full md:hidden block",children:(0,b.jsx)("small",{children:"Bitte geben Sie Ihre Telefonnummer f\xfcr R\xfcckfragen bei der Lieferung mit an."})}),(0,b.jsx)(V,{name:"customerMail",label:"E-Mail",className:"max-w-full",pattern:er,required:!0,errorMessage:I})]}),(0,b.jsx)("div",{className:"w-full gap-2 md:grid hidden grid-flow-row-dense grid-cols-1 md:grid-rows-1 mt-2 md:mt-4 ",children:(0,b.jsx)("small",{children:"Bitte geben Sie Ihre Telefonnummer f\xfcr R\xfcckfragen bei der Lieferung mit an."})}),(0,b.jsxs)("section",{children:[(0,b.jsx)(e6,{className:"mb-2 mt-4 md:mt-8",name:"customerDifferentDeliveryAddress",errorMessage:I,label:"Abweichende Lieferadresse",onChange:e=>{d(e.target.checked)}}),c&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("h3",{className:"text-text-headlines text-xl font-sanscondensed font-extrabold hyphens-auto col-span-4 md:col-span-8 md:text-2xl xl:col-start-3 md:mt-8 mt-4",children:"Lieferadresse"}),(0,b.jsxs)("div",{className:"w-full gap-2 grid grid-flow-row-dense grid-cols-1 md:grid-cols-2 md:grid-rows-1 mt-2 md:mt-4 ",children:[(0,b.jsx)(V,{name:"customerDeliveryFirstName",label:"Vorname",pattern:es,className:"max-w-full",required:!0,errorMessage:I}),(0,b.jsx)(V,{name:"customerDeliveryLastName",label:"Nachname",pattern:es,className:"max-w-full",required:!0,errorMessage:I})]}),(0,b.jsx)("div",{className:"w-full gap-2 grid grid-flow-row-dense grid-cols-1 md:grid-rows-1",children:(0,b.jsx)(V,{name:"customerDeliveryAddress",label:"Stra\xdfe und Hausnummer",pattern:ed,className:"w-full mt-2 md:mt-4",required:!0,errorMessage:I})}),(0,b.jsxs)("div",{className:"w-full gap-2 grid grid-flow-row-dense grid-cols-1 md:grid-cols-2 md:grid-rows-1 mt-2 md:mt-4 ",children:[(0,b.jsx)(V,{name:"customerDeliveryZip",label:"PLZ",pattern:em,className:"max-w-full",required:!0,errorMessage:I}),(0,b.jsx)(V,{name:"customerDeliveryCity",label:"Ort",pattern:eu,className:"max-w-full",required:!0,errorMessage:I})]})]})]}),(0,b.jsx)($,{name:"customerMessage",label:"Bemerkungen",className:"w-full mt-8",rows:4,errorMessage:I})]}),(0,b.jsxs)("section",{children:[(0,b.jsx)("h3",{className:"text-text-headlines text-xl font-sanscondensed font-extrabold hyphens-auto col-span-4 md:col-span-8 md:text-2xl xl:col-start-3 md:mt-10 mt-6",children:"Zahlungsdaten"}),(0,b.jsx)("div",{className:"mt-4",children:(0,b.jsx)(e6,{className:"mb-2",name:"customerInvoicePerMail",errorMessage:I,label:"Rechnungsversand per Email",defaultChecked:!0})}),(0,b.jsx)(ef,{name:"customerPay",label:"",required:!0,className:"w-full gap-2 grid grid-flow-row-dense grid-cols-1 md:grid-cols-3 grid-rows-3 md:grid-rows-1 mt-4 md:mt-6",id:"payment",errorMessage:"Bitte w\xe4hlen Sie eine Zahlungsmethode aus.",buttons:[{label:"Zahlung vor Ort",value:"cash"},{label:"Rechnung",value:"invoice"},{label:"Bankeinzug",value:"debit"}],onBlur:e=>{let t=e.target.value;"invoice"===t?o("invoice"):"debit"===t?o("debit"):"cash"===t?o("cash"):o(null)}}),"invoice"===i&&(0,b.jsx)(V,{name:"customerDOB",label:"Geburtsdatum Rechnungsempf\xe4nger",pattern:eo,placeholder:"tt.mm.jjjj",className:"w-full mt-2 md:mt-4",required:!0,errorMessage:I,errorMessagePattern:"Bitte benutzen Sie das Format: tt.mm.jjjj"}),"debit"===i&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(V,{name:"customerIBAN",label:"SEPA-Lastschriftmandat IBAN",pattern:ec,className:"w-full mt-2 md:mt-4",required:!0,errorMessage:I,errorMessagePattern:"Bitte benutzen Sie das Format: DE1234567890"}),(0,b.jsx)(V,{name:"customerDOB",label:"Geburtsdatum Kontoinhaber",pattern:eo,placeholder:"tt.mm.jjjj",className:"w-full mt-2 md:mt-4",required:!0,errorMessage:I,errorMessagePattern:"Bitte benutzen Sie das Format: tt.mm.jjjj"})]})]}),(0,b.jsxs)("section",{className:"md:mt-8 mt-4",children:[(0,b.jsx)(e6,{className:"mb-2",name:"customerPrivacy",required:!0,errorMessage:I,label:["Ich habe die ",(0,b.jsx)(N.Z,{variant:"unstyled",className:"underline",href:"/datenschutz",children:"Datenschutzhinweise"},"datenschutzLink")," gelesen und akzeptiere diese."]}),(0,b.jsx)(e6,{className:"mb-2",name:"customerAGB",required:!0,errorMessage:I,label:["Ich habe die ",(0,b.jsx)(N.Z,{variant:"unstyled",className:"underline",href:"https://a.storyblok.com/f/252999/x/79d2498071/200124_verkauf_team_baucenter_gmbh___co-_kg_.pdf",children:"allgemeinen Gesch\xe4ftsbedingungen"},"datenschutzLink")," gelesen und akzeptiere diese."]}),"error"===l&&(0,b.jsx)("section",{className:"flex mt-5 md:mt-10 text-alert-error",children:(0,b.jsx)("p",{children:z})}),"mailFormat"===l&&(0,b.jsx)("section",{className:"flex mt-5 md:mt-10 text-alert-error",children:(0,b.jsx)("p",{children:"Die Empfangsadresse ist keine g\xfcltige E-Mail Adresse!"})}),(0,b.jsx)("p",{className:"pt-4",children:"* Pflichtfeld."})]}),(0,b.jsx)("div",{className:"w-full flex justify-center my-5 md:my-10 [&_.frc-content]:overflow-hidden",children:(0,b.jsx)(eb,{handleCaptcha:a})}),(0,b.jsx)("section",{className:"flex justify-end mt-5 md:mt-10",children:(0,b.jsx)(N.Z,{className:"text-btn-sm h-12",variant:"primary",as:"button",type:"submit",disabled:n,children:"Senden"})})]})})})},e9=e=>{let{customHeadline:t="",customMessage:l=""}=e;return(0,b.jsx)("div",{id:"thankyou",className:"w-full md:w-[656px] py-content-mobile md:py-content-desktop",children:(0,b.jsxs)("section",{className:"pb-5 md:pb-16",children:[(0,b.jsx)("h2",{className:"text-text-headlines text-2xl font-sanscondensed font-extrabold hyphens-auto col-span-4 md:col-span-8 md:text-3xl xl:col-start-3",children:t||H}),(0,b.jsx)("p",{className:"text-base font-sans text-text-body-primary pt-1 md:pt-6 pb-5 md:pb-10 hyphens-auto text-left",children:l||B})]})})};var te=e=>{let{blok:t,optimized_col_width:l,className:a,teasersLength:n}=e,{headline:r,headline_tag:s,image:i,link:o,text:c}=t,d=null==i?void 0:i.id,m=1===n,u=2===n,p=3===n,x=n>
13,h=s||"strong",[f,g]=(0,j.useState)(!1),v=void 0!==n&&n>1?e=>{let{children:t}=e;return(0,b.jsx)("li",{className:(0,y.Z)("block list-none",a),children:t})}:e=>{let{children:t}=e;return(0,b.jsx)("div",{className:"block",children:t})},w=l?(1328*parseInt(l)/12).toFixed(0):432,_=l?(96*parseInt(l)/12).toFixed(0):29.56,k=l&&"12"===l?"calc(100vw - 32px)":"300px",E=(null==o?void 0:o.cached_url)||(null==o?void 0:o.url)?e=>{let{children:t}=e;return(0,b.jsxs)(N.Z,{variant:"unstyled",className:"h-full",href:(0,M.Q)(o),target:(null==o?void 0:o.linktype)==="url"?"_blank":"_self",children:[t," "]})}:e=>{let{children:t}=e;return(0,b.jsx)("div",{className:"h-full pointer-events-none [&_.read-more]:hidden",children:t})};return(0,j.useEffect)(()=>{g(()=>"ontouchstart"in window||navigator.maxTouchPoints>0)},[]),(0,b.jsx)(v,{children:(0,b.jsx)(E,{children:d?(0,b.jsxs)("div",{className:(0,y.Z)("h-full text-left bg-surface-neutral-50 group flex flex-col","md:hover:bg-surface-neutral-0 md:hover:shadow-default md:hover:border-none"),children:[(0,b.jsxs)("div",{className:"w-full aspect-video relative",children:[(0,b.jsx)(L.default,{alt:i.alt||"",fill:!0,src:i.filename,className:"object-cover",loading:"lazy",sizes:"(min-width: 1480px) ".concat(w,"px, (min-width: 780px) ").concat(_,"vw, (min-width: 580px) ").concat(k,", 255px")}),(0,b.jsx)("span",{className:(0,y.Z)("absolute",{"top-medium":m||u,"right-medium":m||u,"top-triple":p,"right-triple":p,"top-double":x,"right-double":x}),children:(0,b.jsx)(eH,{className:"hidden md:group-hover:inline-block"})})]}),(0,b.jsxs)("div",{className:"p-double md:p-triple flex-1 flex flex-col justify-between",children:[(0,b.jsxs)("div",{children:[r&&(0,b.jsx)(h,{className:(0,y.Z)("block text-text-headlines font-bold text-body-md mb-small hyphens-auto",{"md:text-title-sm mb-base":m||u,"md:text-body-lg mb-base":p,"md:text-lg mb-small":x}),children:r}),c&&(0,b.jsx)("p",{className:"text-text-body-primary text-body-sm md:text-body-md",children:c})]}),(0,b.jsx)("span",{className:(0,y.Z)("block text-text-headlines text-xs font-bold uppercase mt-large read-more",f||"hidden"),children:"Mehr erfahren"})]})]}):(0,b.jsxs)("div",{className:(0,y.Z)("h-full text-left flex flex-col bg-surface-neutral-50","group md:hover:bg-surface-neutral-0 md:hover:shadow-default md:hover:border-none",m||u?"p-double md:p-medium":"p-double md:p-triple",(c||(null==o?void 0:o.cached_url)||(null==o?void 0:o.url))&&"justify-between",c&&"gap-medium"),children:[(0,b.jsxs)("div",{className:(0,y.Z)("flex gap-x-2 items-top",r?"justify-between":"justify-end"),children:[r&&(0,b.jsx)(h,{className:(0,y.Z)("text-text-headlines text-body-md md:text-title-sm font-bold hyphens-auto break-word",{"basis-full lg:basis-3/5":m||u,"basis-full lg:basis-3/4":p,"basis-full lg:basis-4/5":x}),children:r}),(0,b.jsx)("span",{children:(0,b.jsx)(eH,{className:"invisible md:group-hover:visible"})})]}),(0,b.jsxs)("div",{children:[c&&(0,b.jsx)("p",{className:(0,y.Z)("text-text-body-primary text-body-sm ",{"w-full lg:w-3/5 md:text-body-md":m||u,"w-full lg:w-3/4 md:text-body-md":p,"w-full lg:w-4/5 ":x}),children:c}),((null==o?void 0:o.cached_url)||(null==o?void 0:o.url))&&(0,b.jsx)("span",{className:(0,y.Z)("block text-text-headlines text-xs font-bold uppercase mt-large read-more",f||"hidden"),children:"Mehr erfahren"})]})]})})})},tt=e=>{var t;let{blok:l}=e,{align:a,headline:n,headline_tag:r,link:s,optimized_col_width:i,teasers:o,text:c}=l,d=(0,j.useRef)(null),m=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return()=>{let t=d.current;if(t){let l=eV(t.scrollWidth,o.length);t.scrollLeft+=e?l:-l}}},u="center"===a,p=1===o.length,x=2===o.length,f=3===o.length,g=4===o.length,v=o.length>4,w=p?e=>{let{children:t}=e;return(0,b.jsxs)("div",{className:(0,y.Z)("grid gap-x-2 md:gap-x-4 col-span-12 py-double lg:py-triple max-md:-mx-double max-md:px-double"),children:[t," "]})}:e=>{let{children:t}=e;return(0,b.jsxs)("ul",{className:(0,y.Z)("grid gap-x-2 md:gap-x-4 col-span-12 py-double lg:py-triple max-md:-mx-double max-md:px-double",{"grid-cols-xs-slider grid-flow-col auto-cols-xs-item overflow-y-auto sm:grid-cols-12":x,"grid-cols-xs-slider auto-cols-xs-item sm:grid-cols-lg-slider grid-flow-col sm:auto-cols-lg-item overflow-y-auto md:grid-cols-12":f,"grid-cols-xs-slider auto-cols-xs-item sm:grid-cols-xl-slider grid-flow-col sm:auto-cols-xl-item overflow-y-auto xl:gr
1id-cols-12":g,"grid-cols-xs-slider auto-cols-xs-item sm:grid-cols-xl-slider grid-flow-col sm:auto-cols-xl-item overflow-y-auto":v}),ref:d,children:[" ",t]})};return(0,b.jsxs)("section",{...(0,h.LF)(l),className:"grid grid-cols-12 gap-x-4 py-content-mobile md:py-content-desktop",children:[(0,b.jsxs)("div",{className:"grid grid-cols-12 col-span-12",children:[(0,b.jsxs)("div",{className:(0,y.Z)("col-span-12",u?"md:col-start-3 md:col-span-8 lg:col-start-4 lg:col-span-6":"md:col-span-7 lg:col-span-5"),children:[n&&(0,b.jsx)(r||"p",{className:(0,y.Z)("text-title-sm md:text-3xl text-text-headlines font-extrabold font-sanscondensed",u?"text-center":"text-left",c&&"mb-base md:mb-double"),children:n}),c&&(0,b.jsx)("p",{className:(0,y.Z)("text-body-sm md:text-body-md text-text-body-primary",u?"text-center":"text-left"),children:c})]}),!p&&(0,b.jsx)("div",{className:(0,y.Z)("pt-4 md:pt-0 flex items-end justify-start col-span-12 md:justify-end md:mt-0",u?"md:col-start-11 md:col-span-2 lg:col-start-10 lg:col-span-3":"md:col-start-5 md:col-span-8 lg:col-start-6 lg:col-span-7",c&&n&&"mt-double md:mt-0",{"flex sm:hidden":x,"flex md:hidden":f,"flex xl:hidden":g}),children:(0,b.jsx)(eF,{onLeftClick:m(),onRightClick:m(!0)})})]}),(0,b.jsx)(w,{children:o.map((e,t)=>(0,b.jsx)(te,{blok:e,className:(0,y.Z)({"col-span-12 xs:col-span-10 xs:col-start-2 md:col-span-8":p,"md:col-start-3 lg:col-span-6 lg:col-start-4":p,"sm:col-span-6 md:col-span-5":x,"md:col-start-2":x&&0===t,"md:col-span-4":f,"xl:col-span-3":g}),teasersLength:o.length,optimized_col_width:i},e._uid))}),(null==s?void 0:s[0])&&(0,b.jsxs)(N.Z,{variant:"unstyled",className:(0,y.Z)("flex items-center justify-start col-span-12",{"xs:col-span-10 xs:col-start-2 md:col-span-8 md:col-start-3 lg:col-span-6 lg:col-start-4":p,"md:col-span-10 md:col-start-2 max-sm:pt-small":x,"max-md:pt-small":f,"max-md:pt-small max-xl:pt-base":g,"pt-small md:pt-base":v}),href:(0,M.Q)(s[0].url),target:(null===(t=s[0])||void 0===t?void 0:t.url.linktype)==="url"?"_blank":"_self",children:[(0,b.jsx)("span",{className:"text-text-headlines text-body-sm font-bold uppercase mr-double shrink",children:s[0].label}),(0,b.jsx)(O.Z,{className:"shrink-0"})]})]})};function tl(){return(tl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(this,arguments)}var ta=function(e){return el.createElement("svg",tl({xmlns:"http://www.w3.org/2000/svg",width:56,height:48,fill:"none"},e),p||(p=el.createElement("path",{fill:"#2C2C2C",d:"M0 0h56v48H0z"})),x||(x=el.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M20 14.333 38.125 24 20 33.667V14.333Zm2 3.334v12.666L33.875 24 22 17.667Z",clipRule:"evenodd"})))};let tn=(0,f.default)(()=>l.e(634).then(l.bind(l,9634)),{loadableGenerated:{webpack:()=>[9634]},ssr:!1});var tr=l(2707),ts=l(3251);let ti=async e=>{let{blok:t,className:l}=e,{label:a,image:n,email:r,telephone_number:s,button_label:i,show_button:o,_uid:c}=t;return(0,b.jsx)("li",{className:l,children:(0,b.jsxs)("article",{className:"h-full text-left group border border-stroke-neutral-100 flex flex-col",children:[(0,b.jsx)("div",{className:"w-full relative aspect-video",children:n&&n.filename?(0,b.jsx)(L.default,{alt:(null==n?void 0:n.alt)||"",src:n.filename,fill:!0,sizes:"(min-width: 1480px) 450px, (min-width: 780px) 44.41vw, calc(100vw - 32px)",className:"object-cover",loading:"lazy"}):(0,b.jsx)("div",{className:"w-full relative aspect-video bg-gray-200"})}),(0,b.jsxs)("div",{className:"min-h-[62px] p-double md:min-h-[108px] md:p-triple grow flex flex-col justify-between",children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("p",{className:"text-text-headlines text-xl font-sanscondensed font-extrabold hyphens-auto col-span-4 mb-2 md:mb-4 md:col-span-8 md:text-3xl",children:a}),r&&(0,b.jsx)(b.Fragment,{children:(0,b.jsxs)("a",{className:"underline break-all flex flex-row align-middle mb-2",href:"mailto:".concat(r),children:[(0,b.jsx)(tr.Z,{className:"shrink-0 w-6 text-gray-600 mr-2"}),r]})}),s&&(0,b.jsx)(b.Fragment,{children:(0,b.jsxs)("a",{className:"underline flex flex-row align-middle mb-2",href:"tel:".concat(s),children:[(0,b.jsx)(ts.Z,{className:"shrink-0 w-6 text-gray-600 mr-2"}),s]})})]}),o&&i&&r&&(0,b.jsx)(N.Z,{variant:"primary",className:"w-fit mt-4 md:mt-6 !whitespace-normal 
1!h-fit !py-3 !px-4 text-btn-sm",href:"/kontakt?ctid=".concat(c),title:i,children:i})]})]})})};var to=l(4983),tc=l(1345);let td=(0,f.default)(()=>l.e(92).then(l.bind(l,3092)),{loadableGenerated:{webpack:()=>[3092]},ssr:!1});(0,h.$d)({accessToken:v.M.PREVIEW_ACCESS_TOKEN,use:[h.M$],components:{anchor_module:(0,g.Pf)(e=>{let{blok:{anchor_name:t}}=e;return(0,b.jsx)("section",{id:t})},{FallbackComponent:tc.H}),cta_bar:(0,g.Pf)(e=>{var t;let{blok:{anchor_links:l,external_links:a}}=e,n=(0,A.usePathname)(),r=(0,j.useRef)(null),s=(0,j.useRef)(null),[i,o]=(0,j.useState)(!1),[c,d]=(0,j.useState)(!1),[m,u]=(0,j.useState)(!0),[p,x]=(0,j.useState)(!1);null===(t=document.querySelector("main"))||void 0===t||t.classList.add("overflow-x-hidden"),(0,j.useEffect)(()=>{let e=()=>{var e;(null==r?void 0:null===(e=r.current)||void 0===e?void 0:e.scrollWidth)>window.innerWidth?o(!0):o(!1)};return window.addEventListener("resize",e),e(),()=>window.removeEventListener("resize",e)},[i]),(0,j.useEffect)(()=>{var e;let t=()=>{var e,t,l,a;(null==r?void 0:null===(e=r.current)||void 0===e?void 0:e.scrollLeft)>0?d(!0):d(!1),(null===(t=r.current)||void 0===t?void 0:t.scrollLeft)>=(null===(l=r.current)||void 0===l?void 0:l.scrollWidth)-(null===(a=r.current)||void 0===a?void 0:a.clientWidth)-5?u(!1):u(!0)};return null==r||null===(e=r.current)||void 0===e||e.addEventListener("scroll",t),t(),()=>window.removeEventListener("scroll",t)},[c,m]),(0,j.useEffect)(()=>{new IntersectionObserver(e=>{let t=e[0];(null==t?void 0:t.isIntersecting)||!((null==t?void 0:t.boundingClientRect.top)<=.5)?x(!1):x(!0)},{threshold:1}).observe(s.current)},[p]);let h=e=>e.includes("#");return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:(0,y.Z)(p?"h-[50px] md:h-[60px]":"h-0"),ref:s}),(0,b.jsx)("section",{className:(0,y.Z)("mx-[calc(50%-50vw)] border-y top-0 w-screen left-0 border-stroke-neutral-100 bg-surface-neutral-0 z-20",{"fixed ":p,"relative ":!p}),children:(0,b.jsxs)("div",{className:"relative",children:[(0,b.jsx)("button",{className:(0,y.Z)("pointer-events-none border-none text-icon-neutral-800 md:hover:shadow-arrow pr-5 absolute top-1/2 -translate-y-1/2 bg-gradient-to-r via-white from-white left-0 z-10",{"hidden ":!i||!c}),children:(0,b.jsx)(eN.Z,{})}),(0,b.jsxs)("div",{ref:r,className:(0,y.Z)("sticky-bar container flex md:justify-between relative overflow-x-auto",{"gap-6":!i}),children:[!!(null==l?void 0:l.length)&&(0,b.jsx)("nav",{className:"gap-12",children:(0,b.jsx)("ul",{className:(0,y.Z)("list-none pr-8 flex gap-6 md:gap-12 h-full items-center w-max",{"md:pr-0":!i}),children:l.map(e=>(0,b.jsx)("li",{className:"list-none ",children:(0,b.jsx)(N.Z,{variant:"unstyled",className:"block text-base font-regular text-black py-3 md:pt-[17px] md:pb-[14px] md:border-b-3 md:border-transparent md:hover:border-primary cursor-pointer -mt-px",target:"url"!==e.url.linktype||h(e.url.url)?"_self":"_blank",href:h(e.url.url)?"".concat(n).concat((0,M.Q)(e.url)):(0,M.Q)(e.url),children:e.label})},e._uid))})}),!!(null==a?void 0:a.length)&&(0,b.jsx)("nav",{className:"py-3 md:py-4 flex",children:(0,b.jsx)("ul",{className:(0,y.Z)("list-none flex gap-6 items-center w-max",{"pl-8 border-l border-border-neutral-150":!!(null==l?void 0:l.length),"md:pl-0 md:border-0":!i,"pr-5":i}),children:a.map(e=>(0,b.jsx)("li",{className:"list-none text-sm text-text-body-secondary hover:text-text-headlines cursor-pointer",children:(0,b.jsx)(N.Z,{variant:"unstyled",className:"-mt-px",target:"url"===e.url.linktype?"_blank":"_self",href:(0,M.Q)(e.url),children:e.label})},e._uid))})})]}),(0,b.jsx)("button",{className:(0,y.Z)("pointer-events-none border-none text-icon-neutral-800 md:hover:shadow-arrow pl-5 absolute top-1/2 -translate-y-1/2 right-0 bg-transparent bg-gradient-to-l via-white from-white z-10",{"hidden ":!i||!m}),children:(0,b.jsx)(ek,{})})]})})]})},{FallbackComponent:tc.H}),headline_teaser:(0,g.Pf)(eR,{FallbackComponent:tc.H}),news_list:(0,g.Pf)(e=>{let{blok:t}=e,{category:l}=t,[a,n]=(0,j.useState)([]);return(0,j.useEffect)(()=>{(async()=>{n(await (0,ex.gf)(l))})()},[l]),(0,b.jsx)("section",{...(0,h.LF)(t),className:"grid grid-cols-12 gap-x-4 py-content-mobile md:py-content-desktop",children:(0,b.jsx)(e0,{blok:t,articles:a})})},{FallbackComponent:tc.H}),usp_module:(0,g.Pf)(e=>{let{blok:t}=e,{headline:l,headline_tag:a,usp_items:n}={...t};return(0,b.jsxs)("div",{...(0,h.LF)(t),className:"grid gapx-10 grid-cols-4 md:grid-cols-12 md:gapx-12 py-content-mobile md:py-content-desktop",children:[l&&(0,b.jsx)("div",{className:"mx-auto col-span-4 md:col-start-3 md:col-span-8 lg:col-start-4 lg:col-span-6",children:(0,b.jsx)("".concat(a||"p"),{className:"text-text-headlines text-4xl text-center font-extrabold font-sanscondensed italic uppercase col-span-4 md:text-7xl",children:l})}),(0,b.jsx)("div",{className:"col-span-4 mt-10 md:mt-12 md:col-span-12",children:(0,b.jsx)("ul",{className:"flex flex-wrap justify-center w-full gap-y-6 md:gap-y-8",children:n.map(e=>(0,b.jsx)(eD,{blok:e,className:"list-none px-10 md:basis-1/2 lg:basis-1/3 lg:px-14"},e._uid))})})]})},{FallbackComponent:tc.H}),text_blok:(0,g.Pf)(E,{FallbackComponent:tc.H}),tile_teaser_block:(0,g.Pf)(tt,{FallbackComponent:tc.H}),tile_teaser_block_with_images:(0,g.Pf)(tt,{FallbackComponent:tc.H}),video:(0,g.Pf)(e=>{let{blok:t}=e,{headline:l,headline_tag:a,caption:n,video_id:r,poster_image:s}=t;return(0,b.jsxs)("div",{...(0,h.LF)(t),className:"relative w-full py-content-mobile md:py-content-desktop",children:[l&&(0,b.jsx)(a||"p",{className:"text-text-headlines text-left text-2xl font-sanscondensed font-extrabold hyphens-auto md:text-3xl",children:l}),(0,b.jsx)("div",{className:"relative mt-4 pt-[56.25%] md:mt-6",children:(0,b.jsx)(tn,{playing:!0,url:"https://www.youtube-nocookie.com/watch?v=".concat(r),controls:!0,width:"100%",height:"100%",className:"absolute top-0 left-0",light:null==s?void 0:s.filename,playIcon:(0,b.jsx)(ta,{}),"aria-label":"Video abspielen"})}),n&&(0,b.jsx)("p",{className:"text-text-body-secondary text-xs text-left mt-2",children:n})]})},{FallbackComponent:tc.H}),product_tile_list:(0,g.Pf)(e=>{let{blok:t}=e,{product_tiles:l,headline:a,headline_tag:n,link:r}=t;return(0,b.jsx)("section",{...(0,h.LF)(t),className:"relative w-full",children:(0,b.jsxs)("div",{className:"grid grid-cols-12 gap-x-4 py-content-mobile md:py-content-desktop",children:[a&&(0,b.jsx)(n||"p",{className:"text-text-headlines text-left text-2xl font-sanscondensed font-extrabold hyphens-auto col-span-12 md:text-3xl",children:a}),(0,b.jsx)("ul",{className:"grid grid-cols-12 gap-2 col-span-12 py-4 md:gap-4 md:py-6",children:l.map(e=>(0,b.jsx)(eB,{blok:e,className:"list-none block col-span-6 md:col-span-3"},e._uid))}),(null==r?void 0:r[0])&&(0,b.jsxs)(N.Z,{variant:"unstyled",className:"flex items-center justify-start col-span-12",href:(0,M.Q)(r[0].url),target:"url"===r[0].url.linktype?"_blank":"_self",children:[(0,b.jsx)("span",{className:"text-text-headlines text-body-sm font-bold uppercase mr-double shrink",children:r[0].label}),(0,b.jsx)(O.Z,{className:"shrink-0"})]})]})})},{FallbackComponent:tc.H}),news_article:(0,g.Pf)(e=>{let{blok:t}=e,{headline:l,publication_date:a,image:n,caption:r,text:s}=t,i={...l[0],h1_headline:!0};return(0,b.jsxs)("article",{...(0,h.LF)(t),className:"container grid grid-cols-12 gap-x-4 py-5 md:py-medium",children:[(0,b.jsx)("div",{className:"col-span-12",children:(0,b.jsx)(eR,{blok:i})}),(0,b.jsx)("div",{className:(0,y.Z)("text-text-body-secondary text-body-sm col-span-12 border-b border-surface-neutral-100 py-3 mt-[-20px] mb-10 md:mb-16 md:mt-[-32px]"),children:(0,b.jsx)(eX,{dateString:a})}),(0,b.jsx)("div",{className:"col-span-12 aspect-video relative md:col-span-8 md:col-start-3",children:(0,b.jsx)(L.default,{className:"object-cover",alt:n.alt||"",fill:!0,src:n.filename,loading:"lazy"})}),r&&(0,b.jsx)("p",{className:"text-text-body-secondary text-xs text-left mt-2 col-span-12 md:col-span-8 md:col-start-3",children:r}),(0,b.jsx)("div",{className:"col-span-12 md:col-span-6 md:col-start-4",children:(0,b.jsx)(E,{blok:s[0]})})]})},{FallbackComponent:tc.H}),container:(0,g.Pf)(e=>{let{blok:{column_1:t,column_2:l,width:a,columns:n}}=e,r="col-span-4";return(0,b.jsxs)("div",{className:"grid grid-cols-4 md:grid-cols-8 xl:grid-cols-12 gap-x-2 md:gap-x-4",children:[t&&(0,b.jsx)("div",{className:(0,y.Z)(r,{"xl:col-start-3":"8_cols"===a,"md:col-span-8":"8_cols"===a&&"1"===n,"md:col-span-4":"8_cols"===a&&"2"===n,"md:col-span-8 xl:col-span-12":"12_cols"===a&&"1"===n,"xl:col-span-6":"12_cols"===a&&"2"===n,"md:col-start-2 xl:col-start-4":"6_cols"===a,"md:col-span-3":"6_cols"===a&&"2"===n,"md:col-span-6":"6_cols"===a&&"1"===n}),children:null==t?void 0:t.map(e=>(0,b.jsx)(h.Xj,{blok:e,columns:n},e._uid))}),l&&(0,b.jsx)("div",{className:(0,y.Z)(r,{"md:col-span-8 xl:col-span-12":"12_cols"===a&&"1"===n,"md:col-span-8 xl:col-start-3":"8_cols"===a&&"1"===n,"xl:col-start-7":"8_cols"===a&&"2"===n,"xl:col-start-7 xl:col-span-6":"12_cols"===a&&"2"===n,"md:col-span-3 md:col-start-5 xl:col-start-7":"6_cols"===a&&"2"===n,"md:col-span-6 md:col-start-2 xl:col-start-4":"6_cols"===a&&"1"===n}),children:null==l?void 0:l.map(e=>(0,b.jsx)(h.Xj,{blok:e,columns:n},e._uid))})]})},{FallbackComponent:tc.H}),floating_text_teaser:(0,g.Pf)(e=>{let{blok:t}=e,{components_position:l,desktop_image_orientation:a,image:n,text:r,headline_tag:s,headline:i}={...t},o=(0,y.Z)({"md:float-left aspect-video md:mr-6":"image_left"===l&&"landscape"===a,"md:float-left md:mr-6":"image_left"===l&&"portrait"===a,"md:float-right aspect-video md:ml-6":"image_right"===l&&"landscape"===a,"md:float-right md:ml-6":"image_right"===l&&"portrait"===a});return(0,b.jsxs)("div",{...(0,h.LF)(t),className:"py-content-mobile md:py-content-desktop overflow-y-auto",children:[(0,b.jsx)(s||"p",{className:"text-text-headlines text-2xl md:text-3xl text-left font-extrabold font-sanscondensed pb-4 md:pb-6",children:i}),(0,b.jsx)("div",{className:(0,y.Z)(o,"relative md:w-1/2 items-center mr-0 mb-4 md:mb-5"),children:(0,b.jsx)(L.default,{className:(0,y.Z)("w-full h-auto",{"aspect-video object-cover":"landscape"===a}),src:n.filename,alt:n.alt?n.alt:"Teaser Image",width:"0",height:"0",sizes:"(min-width: 1480px) 664px, (min-width: 780px) 44.41vw, calc(100vw - 32px)",loading:"lazy"})}),(0,b.jsx)("div",{className:"col-span-12 [&>_div]:!m-0 [&>_div]:!p-0",children:(0,b.jsx)(E,{blok:r[0]})})]})},{FallbackComponent:tc.H}),footer_column_left:(0,g.Pf)(eP.Z,{FallbackComponent:tc.H}),footer_column_right:(0,g.Pf)(eT.Z,{FallbackComponent:tc.H}),footer_config:(0,g.Pf)(eA.default,{FallbackComponent:tc.H}),hero_teaser:(0,g.Pf)(e=>{var t,l,a,n;let{blok:r}=e,{image:s,caption:i,headline_highlight:o,headline:c,h1_headline:
1d,text:m,link:u}=r,p=!!u&&void 0!==u[0]&&(null===(l=u[0])||void 0===l?void 0:null===(t=l.url)||void 0===t?void 0:t.cached_url)!=="";return(0,b.jsxs)("div",{...(0,h.LF)(r),className:"grid gap-x-3 gap-y-9 md:gap-3 grid-cols-4 md:grid-cols-12 items-center justify-center relative min-h-0 [&:not(:first-child)]:pt-content-mobile md:[&:not(:first-child)]:pt-content-desktop pb-content-mobile md:pb-content-desktop",children:[(0,b.jsxs)("div",{className:"px-4 items-start flex flex-col justify-start col-span-4 md:justify-center md:px-0 md:col-span-5 order-2 md:order-1",children:[i&&(0,b.jsx)(P.default,{className:"!pb-0.5 md:!pb-0",children:i}),(0,b.jsx)(d?"h1":"div",{className:(0,y.Z)("text-left w-full hyphens-auto break-word text-text-headlines uppercase italic text-4xl md:text-6xl [&_span[style]]: font-extrabold [&_span[style]]: font-sanscondensed [&_span[style]]:text-text-neutral-0 [&_span[style]]:inline-block [&_span[style]]:not-italic [&_span[style]]:-skew-x-12",{"pb-6 md:pb-8":p||!!m,"[&_span[style]]:!bg-surface-secondary [&_span[style]]:px-[5px]":"green"===o||"secondary"===o||!o,"[&_span[style]]:!bg-surface-primary [&_span[style]]:px-[5px]":"orange"===o||"primary"===o}),children:(0,w.sY)(c,{nodeResolvers:{[w.e3]:e=>e?e.map(e=>e):null}})}),(0,b.jsx)("div",{className:(0,y.Z)("text-sm md:text-base text-regular text-text-body-primary text-left hyphens-auto",{"pb-4":p}),dangerouslySetInnerHTML:{__html:(0,h.Zm)(m)}}),p&&(0,b.jsxs)(N.Z,{variant:"unstyled",className:"text-sm flex flex-row gap-4 group justify-center items-center text-link-text-neutral-800 hover:text-link-text-neutral-900 font-bold",target:(null===(a=u[0])||void 0===a?void 0:a.url.linktype)==="url"?"_blank":"_self",href:(0,M.Q)(u[0].url),children:[(0,b.jsx)("span",{className:"shrink",children:null===(n=u[0])||void 0===n?void 0:n.label}),(0,b.jsx)(O.Z,{className:"shrink-0 inline-block group-hover:ml-1.5 transition-[margin] ease-out"})]})]}),(0,b.jsx)("div",{className:"w-full h-full w-vp-full-mobile items-center justify-center col-span-4 flex relative order-1 md:col-span-6 md:col-start-7 md:order-2 object-cover",children:(0,b.jsx)(L.default,{className:"h-auto w-full aspect-video object-cover object-center",src:s.filename,alt:s.alt,title:null==s?void 0:s.title,width:"0",height:"0",sizes:"(min-width: 1480px) 658px, (min-width: 780px) 44.41vw, 100vw",loading:d?"eager":"lazy",priority:!!d})})]})},{FallbackComponent:tc.H}),image_module:(0,g.Pf)(e=>{var t;let{blok:l}=e,{link:a,optimized_col_width:n}=l,r=(null==a?void 0:null===(t=a.story)||void 0===t?void 0:t.url)||(null==a?void 0:a.cached_url),s=n?(1328*parseInt(n)/12).toFixed(0):656,i=n?(96*parseInt(n)/12).toFixed(0):44.41;return(0,b.jsx)("div",{...(0,h.LF)(l),className:"py-content-mobile md:py-content-desktop",children:r?(0,b.jsx)(N.Z,{variant:"unstyled",title:"".concat(r.replace(/[-_]/g," ")),href:(0,M.Q)(a),target:(null==a?void 0:a.linktype)==="url"?"_blank":"_self",children:(0,b.jsx)(eI,{optimized_max_width:s,optimized_mid_width:i,...l.image})}):(0,b.jsx)(eI,{optimized_max_width:s,optimized_mid_width:i,...l.image})})},{FallbackComponent:tc.H}),image_gallery:(0,g.Pf)(e=>{let{blok:t,columns:l}=e,{headline:a,headline_tag:n,images:r,optimized_col_width:s}=t,i=(0,j.useRef)(),o=(0,j.useRef)(),[c,d]=(0,j.useState)(0),m=s?(1328*parseInt(s)/12).toFixed(0):1328,u=s?"".concat((96*parseInt(s)/12).toFixed(0),"vw"):"calc(61.54vw + 380px)",p="(min-width: 1560px) ".concat(m,"px, (min-width: 1280px) ").concat(u,", calc(97.5vw - 25px)"),x=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return()=>d(t=>e?r.length-1===t?0:t+1:0===t?r.length-1:t-1)},f=()=>{if(void 0!==i.current&&void 0!==o.current){let e=o.current-i.current;if(e>ev.eq||e<-ev.eq)return x(e>ev.eq)()}},g=e=>{var t;return i.current="targetTouches"in e?null===(t=e.targetTouches[0])||void 0===t?void 0:t.clientX:e.clientX},v=e=>{var t;i.current=void 0,o.current="targetTouches"in e?null===(t=e.targetTouches[0])||void 0===t?void 0:t.clientX:e.clientX};return r&&0===r.length||!r?null:(0,b.jsxs)("article",{...(0,h.LF)(t),className:"py-content-mobile md:py-content-desktop",children:[(0,b.jsxs)("div",{className:"flex gap-double items-center mb-double md:mb-triple",children:[(0,b.jsxs)(n||"p",{className:"flex-1 text-title-sm md:text-3xl text-text-headlines font-extrabold font-sanscondensed",children:[a," (",c+1,"/",r.length,")"]}),(0,b.jsx)(eF,{onLeftClick:x(),onRightClick:x(!0)})]}),(0,b.jsx)("div",{className:"relative aspect-video",onMouseDown:v,onMouseMove:g,onMouseUp:f,onTouchEnd:f,onTouchMove:g,onTouchStart:v,children:(0,b.jsx)(L.default,{alt:r[c].alt||"",className:"object-cover",draggable:!1,fill:!0,sizes:l&&"2"===l?"(min-width: 1480px) 656px, (min-width: 780px) 44.41vw, calc(100vw - 32px)":p,src:r[c].filename,loading:"lazy"})}),r[c].title&&(0,b.jsx)("p",{className:"text-xs text-text-body-secondary mt-base",children:r[c].title})]})},{FallbackComponent:tc.H}),download_module:(0,g.Pf)(e=>{let{blok:t}=e,{title:l,files:a}=t;return(0,b.jsxs)("div",{...(0,h.LF)(t),className:"py-content-mobile md:py-content-desktop",children:[l&&(0,b.jsx)("p",{className:"mb-4 text-sm font-bold font-sanscondensed text-text-body-secondary uppercase",children:l}),(0,b.jsx)("div",{className:"flex flex-col gap-4 md:gap-3",children:a.map(e=>{let{_uid:t,file:l,label:a}=e;return(0,b.jsxs)("a",{href:l.filename,className:"flex gap-4 items-center w-fit",onClick:eS(l.filename),children:[(0,b.jsx)("p",{className:"shrink text-sm font-bold font-sans text-link-text-neutral-800 uppercase tracking-[0.28px] leading-[100%] hyphens-auto",children:a}),(0,b.jsx)(eZ,{className:"shrink-0"})]},t)})})]})},{FallbackComponent:tc.H}),image_text_teaser:(0,g.Pf)(e=>{var t;let{blok:l}=e,{components_position:a,desktop_image_orientation:n,image:r,text:s,caption:i,headline_tag:o,headline:c,cta_links:d}={...l},m=!(r&&c),u=(0,y.Z)({"@md:col-span-6 @md:col-start-1 @md:order-1":"image_left"===a&&"landscape"===n,"@md:col-span-5 @md:col-start-1 @md:order-1":"image_left"===a&&"portrait"===n,"@md:col-span-6 @md:col-start-7 @md:order-2":"image_right"===a&&"landscape"===n,"@md:col-span-5 @md:col-start-8 @md:order-2":"image_right"===a&&"portrait"===n}),p=(0,y.Z)("items-start flex flex-col justify-start @md:justify-center",{"@md:col-span-4 @md:col-start-8 @md:order-2":"image_left"===a,"@md:col-span-4 @md:col-start-2 @md:order-1":"image_right"===a}),x=(null==d?void 0:d.length)>0;return!m&&(0,b.jsx)("div",{className:"@container w-full",children:(0,b.jsxs)("div",{...(0,h.LF)(l),className:"grid gap-9 grid-cols-1 @md:grid-cols-12 @md:gap-3 items-center justify-center relative min-h-0 py-content-mobile @md:py-content-desktop",children:[(0,b.jsx)("div",{className:(0,y.Z)("w-full h-full relative items-center justify-center flex",u),children:(0,b.jsx)(L.default,{className:(0,y.Z)("w-full h-auto object-cover object-center",{"aspect-video":"landscape"===n}),src:r.filename,alt:null!==(t=r.alt)&&void 0!==t?t:"",width:"0",height:"0",sizes:"landscape"===n?"(min-width: 1480px) 658px, (min-width: 480px) 44.9vw, 160px":"(min-width: 1480px) 546px, (min-width: 480px) 37.35vw, 160px",loading:"lazy"})}),(0,b.jsxs)("div",{className:p,children:[i&&(0,b.jsx)(P.default,{children:i}),(0,b.jsx)(o||"p",{className:"text-text-headlines text-4xl text-left font-extrabold font-sanscondensed pb-3 @md:pb-6 hyphens-auto break-word",children:c}),s&&(0,b.jsx)("div",{...(0,h.LF)(l),className:(0,y.Z)("text-base text-regular text-text-body-primary text-left hyphens-auto",{"pb-7 @md:pb-10":x}),dangerouslySetInnerHTML:{__html:(0,h.Zm)(s)}}),x&&(0,b.jsx)("div",{className:"flex flex-row gap-2 flex-wrap",children:null==d?void 0:d.slice(0,2).map((e,t)=>{var l;return(0,b.jsx)(N.Z,{variant:0===t?"primary":"secondary",target:(null===(l=e.url)||void 0===l?void 0:l.linktype)==="url"?"_blank":"_self",href:(0,M.Q)(e.url),className:"text-btn-xs @md:text-btn-sm",children:e.label},e._uid)})})]})]})})},{FallbackComponent:tc.H}),contact_person:(0,g.Pf)(e=>{var t,l;let{blok:a,columns:n}=e,{headline:r,headline_tag:s,text:i,contact:o,cta:c,link:d}=a,m=o.content,u=(null==d?void 0:null===(t=d[0])||void 0===t?void 0:t.url.url.includes("/kontakte"))||(null==d?void 0:null===(l=d[0])||void 0===l?void 0:l.url.url.includes("/ansprechpartner")),p=(0,b.jsxs)(b.Fragment,{children:[r&&(0,b.jsx)(s||"div",{className:(0,y.Z)({"pb-6 md:pb-10":!i,"md:col-span-8 md:text-4xl xl:col-start-3":!n||"1"===n},"text-center text-text-headlines text-2xl font-sanscondensed font-extrabold hyphens-auto col-span-4"),children:r}),i&&(0,b.jsx)("p",{className:(0,y.Z)("text-center text-text-body-primary col-span-4 pb-4",{"xl:col-start-3 md:pb-6 md:col-span-8":!n||"1"===n}),children:i})]});return(0,b.jsx)("section",{...(0,h.LF)(a),className:(0,y.Z)("py-content-mobile md:py-content-desktop",{"h-full flex":"2"===n}),children:(0,b.jsx)("div",{className:(0,y.Z)("bg-surface-neutral-50",{"mx-[calc(50%-50vw)] ":!n||"1"===n,"w-full":"2"===n}),children:(0,b.jsxs)("div",{className:(0,y.Z)("container py-10",{"grid grid-cols-4 gap-2 md:grid-cols-8 xl:grid-cols-12 md:gap-4 md:py-16":!n||"1"===n,"h-full flex flex-col justify-between md:!px-4":"2"===n}),children:[(r||i)&&n?(0,b.jsx)("div",{children:p}):p,m&&(0,b.jsx)(T,{contact:m,cta:c,columns:n}),(null==d?void 0:d[0])&&(0,b.jsx)("div",{className:(0,y.Z)("md:text-right justify-self-start col-span-4 pt-4 ",{"md:pt-2 md:justify-self-end md:col-span-8 xl:col-span-11":!n||"1"===n}),children:(0,b.jsxs)(N.Z,{variant:"unstyled",className:"flex items-center",href:(0,M.Q)(d[0].url),target:"url"!==d[0].url.linktype||u?"_self":"_blank",children:[(0,b.jsx)("span",{className:"text-text-headlines text-body-sm font-bold uppercase mr-double shrink max-md:align-start",children:d[0].label}),(0,b.jsx)(O.Z,{className:"shrink-0"})]})})]})})})},{FallbackComponent:tc.H}),contact_form:(0,g.Pf)(e=>{var t,l;let{blok:a}=e,n=(0,F.cI)({mode:"onChange"}
1),r=(0,j.useRef)(null),[s,i]=(0,j.useState)(!1),[o,c]=(0,j.useState)(""),[d,m]=(0,j.useState)([]),[u,p]=(0,j.useState)(void 0),[x,h]=(0,j.useState)(null),[f,g]=(0,j.useState)(null),v=(0,A.useSearchParams)().get("standort")||void 0,w=(0,A.useSearchParams)().get("typ")||void 0,_=(0,A.useSearchParams)().get("ctid")||void 0,k=v&&w?{name:v,type:w}:void 0,[E,Z]=(0,j.useState)(!!_),S=(0,j.useRef)(void 0);(0,j.useEffect)(()=>{!async function(){if(_)try{S.current=await ej(_),Z(!!S.current)}catch(e){Z(!1)}}()},[_]);let{show_topics:C,headline_tag:M,headline_business_units:O,business_units:L,headline_user_message:P,headline_user_data:T,topics:H,submit_button_text:B,placeholder_topics_dropdown:D}=a,q=M||"div",G=L&&L.length<2,U={agricultural:{label:"Agrar",icon:(0,b.jsx)(J.Z,{width:24,height:24})},construction:{label:"Bau",icon:(0,b.jsx)(ee.Z,{width:24,height:24})},energy:{label:"Energie",icon:(0,b.jsx)(et.Z,{width:24,height:24})},misc:{label:"team SE",icon:(0,b.jsx)(en,{width:24,height:24})}},K=e=>{let t=[];return H.filter(t=>t.contact_form_topic_business_unit===e).map(e=>{t.push({label:e.contact_form_topic_title,value:e.contact_form_topic_title,selected:e.contact_form_topic_default})}),t},W=e=>{let t=K(e),l=t.find(e=>e.selected);l&&n.setValue("activeTopic",l.value,{shouldTouch:!0}),m(t),c(e),l||n.resetField("activeTopic")},Y=async e=>{W(e.target.value),await n.trigger(["businessUnit"])},X=()=>{r.current&&r.current.scrollIntoView({behavior:"smooth"})},el=(e,t,l)=>{var a;return null===(a=e.find(e=>e.contact_form_topic_title===t&&e.contact_form_topic_business_unit===l))||void 0===a?void 0:a.contact_form_topic_recipient},ea=(e,t,l)=>{var a;return null===(a=e.find(e=>e.contact_form_topic_title===t&&e.contact_form_topic_business_unit===l))||void 0===a?void 0:a.contact_form_topic_cc_recipient},er=(e=>{let t;switch(e){case"bau":t="construction";break;case"agrar":t="agricultural";break;case"tankstellen":case"tankautomaten":case"energiehandel":t="energy";break;default:t=void 0}return t})(null==k?void 0:k.type);(0,j.useEffect)(()=>{er&&W(er)},[]);let es=n.handleSubmit(async e=>{var t,l,a;let n,r,s;i(!0);let{customerMessage:c,customerName:m,customerEmail:u,customerPhone:h,customerAddress:g,customerZip:v,customerCity:b,customerId:j}=e;if(S.current||"construction"!==er||(s=k?await ey(k.name,k.type):void 0),e.activeTopic)n=ea(H,e.activeTopic,o);else{let t=H.find(e=>e.contact_form_topic_default);e.activeTopic=null==t?void 0:t.contact_form_topic_title,r=null==t?void 0:t.contact_form_topic_title,n=(null===(a=S.current)||void 0===a?void 0:a.email_cc)||(null==t?void 0:t.contact_form_topic_cc_recipient)||void 0}r=null===(t=d.find(t=>t.value===e.activeTopic))||void 0===t?void 0:t.label;let y=(null===(l=U[o])||void 0===l?void 0:l.label)||"N/A",w=S.current?S.current.email:el(H,e.activeTopic,o),N="[email protected]";s&&(null==w?void 0:w.includes(N))?(w=null==w?void 0:w.replace(N,s),n=N):s&&"Jobangebote / Karriere"!==r&&(w=s);try{let t=await fetch("/api/sendmail",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({activeBusinessUnitLabel:y,activeTopic:void 0===r?e.activeTopic:r,contactTopic:S.current?S.current.label:"",customerMessage:c,customerName:m,customerType:x,customerEmail:u,customerPhone:h,customerAddress:g,customerZip:v,customerCity:b,customerId:j,topicRecipient:w||N,emailCopyRecipient:n,captchaSolution:f,token:(0,ep.F)(m,u,"")})});202===t.status?((0,R.flushSync)(()=>{p("done")}),X()):p("error")}catch(e){p(e.message)}i(!1)});return(0,j.useEffect)(()=>{G&&W(L[0]||"")},[G]),(0,b.jsx)(F.RV,{...n,children:(0,b.jsx)("form",{noValidate:!0,className:"flex justify-center mt-6 py-content-mobile md:py-content-desktop",onSubmit:es,ref:r,children:"done"===u?(0,b.jsx)(ew,{}):(0,b.jsxs)("div",{className:"w-full md:w-[656px] py-content-mobile md:py-content-desktop",children:[!G&&!k&&!(_&&E)&&(0,b.jsxs)("section",{children:[(0,b.jsx)(q,{className:"text-text-headlines text-xl font-sanscondensed font-extrabold hyphens-auto col-span-4 md:col-span-8 md:text-2xl xl:col-start-3",children:O}),(0,b.jsx)("div",{className:"gap-2 grid grid-flow-row-dense grid-cols-2 md:grid-cols-4 grid-rows-2 md:grid-rows-1 mt-2 md:mt-4",children:null==L?void 0:L.map(e=>{let t=U[e];return(0,b.jsxs)("div",{className:"relative h-[78px]",children:[(0,b.jsx)("input",{type:"radio",...e===er?{checked:!0}:{},id:e,value:e,className:"appearance-none absolute inset-0 h-full w-full cursor-pointer peer",...n.register("businessUnit",{required:"Bitte w\xe4hlen Sie einen Bereich aus"}),...er?{}:{onChange:Y}},e),(0,b.jsxs)("label",{className:"box-border text-center text-sm border border-stroke-neutral-100 bg-surface-neutral-0 flex flex-col items-center justify-center gap-1 md:gap-2 h-full peer-checked:shadow-[inset_0_0_0_1px] peer-checked:shadow-primary peer-checked:border-primary",children:[null==t?void 0:t.icon,(null==t?void 0:t.label)&&(0,b.jsx)("span",{children:null==t?void 0:t.label})]})]},e)})}),(null===(t=n.formState.errors.businessUnit)||void 0===t?void 0:t.message)&&(0,b.jsx)("div",{className:"flex items-center pt-1 justify-end text-alert-error text-xs",children:null===(l=n.formState.errors.businessUnit)||void 0===l?void 0:l.message})]}),(0,b.jsxs)("section",{className:(0,y.Z)(G||k||_&&E?"mt-0":"mt-5 md:mt-10"),children:[(0,b.jsx)(q,{className:"text-text-headlines text-xl font-sanscondensed font-extrabold hyphens-auto col-span-4 md:col-span-8 md:text-2xl xl:col-start-3",children:P}),C&&!(_&&E)&&(0,b.jsx)(Q,{name:"activeTopic",options:d,required:!0,defaultValue:d.find(e=>(null==k?void 0:k.type)==="tankstellen"||(null==k?void 0:k.type)==="tankautomaten"?"Tankstelle"===e.label:e.selected),placeholder:D,className:"w-full mt-2 md:mt-4",disabled:!o,errorMessage:"Bitte w\xe4hlen Sie einen Kontaktgrund aus"},o),(0,b.jsx)($,{name:"customerMessage",label:"Nachricht",className:"w-full [&>
1textarea]:min-h-[190px] mt-2 md:mt-4",rows:6,required:!0,errorMessage:I})]}),(0,b.jsxs)("section",{className:"mt-5 md:mt-10",children:[(0,b.jsx)(q,{className:"text-text-headlines text-xl font-sanscondensed font-extrabold hyphens-auto col-span-4 md:col-span-8 md:text-2xl xl:col-start-3",children:T}),(0,b.jsx)(ef,{name:"customerType",label:"Um Ihre Anfrage schnellstm\xf6glich bearbeiten zu k\xf6nnen, w\xe4hlen Sie bitte zwischen den folgenden Optionen:",required:!0,className:"w-full gap-2 grid grid-flow-row-dense grid-cols-1 md:grid-cols-3 grid-rows-2 md:grid-rows-1 mt-2 md:mt-4",labelClassName:"mt-2",id:"customerType",errorMessage:"Bitte treffen Sie eine Auswahl.",buttons:[{label:"Gesch\xe4ftskunde",value:"customerBusiness"},{label:"Privatkunde",value:"customerPrivate"}],onBlur:e=>{h(e.target.value)}}),(0,b.jsx)(V,{name:"customerName",label:"Name",className:"w-full mt-2 md:mt-4",required:!0,errorMessage:I}),(0,b.jsx)(V,{name:"customerEmail",label:"E-Mail",className:"w-full mt-2 md:mt-4",required:!0,pattern:/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/,errorMessage:I}),(0,b.jsx)(V,{name:"customerPhone",label:"Telefon",className:"w-full mt-2 md:mt-4",required:!1}),(0,b.jsx)(V,{name:"customerAddress",label:"Stra\xdfe und Hausnummer",className:"w-full mt-2 md:mt-4",required:!1}),(0,b.jsx)(V,{name:"customerZip",label:"PLZ (f\xfcr die Zuordnung zum n\xe4chstgelegenen Standort)",className:"w-full mt-2 md:mt-4",required:!0,pattern:em,errorMessage:I}),(0,b.jsx)(V,{name:"customerCity",label:"Ort",className:"w-full mt-2 md:mt-4",required:!1}),(0,b.jsx)(V,{name:"customerId",label:"Kundennummer",className:"w-full mt-2 md:mt-4",required:!1})]}),"error"===u&&(0,b.jsx)("section",{className:"flex mt-5 md:mt-10 text-alert-error",children:(0,b.jsx)("p",{children:z})}),(0,b.jsxs)("p",{className:"pt-4",children:["* Pflichtfeld. Unsere Datenschutzhinweise finden Sie\xa0",(0,b.jsx)(N.Z,{variant:"unstyled",className:"underline",href:"/datenschutz",children:"hier"}),"."]}),(0,b.jsx)("div",{className:"w-full flex justify-center my-5 md:my-10 [&_.frc-content]:overflow-hidden",children:(0,b.jsx)(eb,{handleCaptcha:e=>{g(e)}})}),(0,b.jsx)("section",{className:"flex justify-end mt-5 md:mt-10",children:(0,b.jsx)(N.Z,{className:"text-btn-sm h-12",variant:"primary",as:"button",type:"submit",disabled:s,children:B})})]})})})},{FallbackComponent:tc.H}),registration_form:(0,g.Pf)(function(e){var t;let{blok:l}=e,[a,n]=(0,j.useState)("business"),[r,s]=(0,j.useState)(null),[i,o]=(0,j.useState)(!1),c=(0,j.useRef)(null),d=l.mail_overwrite,m=l.cc_recipient,u=e=>{n(e.target.value)},p=(0,A.useParams)(),[x,h]=(0,j.useState)(void 0),f=async()=>{var e,t;let l;let a=null==p?void 0:p.slug;if(!a)return;a.pop();let n=a.join("/");try{l=(await (0,ex.$d)(n,!1)).story}catch(e){l=void 0}return{location_mail:(null==l?void 0:null===(t=l.content)||void 0===t?void 0:null===(e=t.email)||void 0===e?void 0:e.url)||void 0,location_name:(null==l?void 0:l.name)||void 0}},g=async(e,t,l)=>{o(!0);let a=await f(),n=d||(null==a?void 0:a.location_mail);e.token=(0,ep.F)(e.customerFirstName,e.customerMail,""),e.captchaSolution=r;let s={type:t,recipient:n||void 0,cc_recipient:m||void 0,location_name:(null==a?void 0:a.location_name)||void 0,data:e,paymentMethod:l};try{let e=await fetch("/api/send-registration-form",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)});if(202===e.status){var i;(0,R.flushSync)(()=>{h("done")}),null==c||null===(i=c.current)||void 0===i||i.scrollIntoView({behavior:"smooth",block:"center"})}else h("error")}catch(e){h(e.message)}o(!1)};return(0,b.jsx)("section",{ref:c,className:"md:mb-16 mb-12 w-full md:w-[656px] md:mx-auto",children:"done"===x?(0,b.jsx)(e9,{customMessage:"Wir haben Ihre Daten erhalten und melden uns in K\xfcrze schriftlich bei Ihnen zur\xfcck."}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("h3",{className:"text-text-headlines text-xl font-sanscondensed font-extrabold hyphens-auto col-span-4 md:col-span-8 md:text-2xl xl:col-start-3",children:"Sind Sie Gesch\xe4fts- oder Privatkunde?"}),(0,b.jsxs)("div",{className:"gap-2 grid grid-flow-row-dense grid-cols-1 md:grid-cols-2 grid-rows-2 md:grid-rows-1 mt-2 md:mt-4",children:[(0,b.jsxs)("div",{className:"relative h-[78px]",children:[(0,b.jsx)("input",{type:"radio",id:"business",value:"business",name:"typeSwitch",defaultChecked:!0,className:"appearance-none absolute inset-0 h-full w-full cursor-pointer peer",onChange:u}),(0,b.jsxs)("label",{className:"box-border text-center text-sm border border-stroke-neutral-100 bg-surface-neutral-0 flex flex-col items-center justify-center gap-1 md:gap-2 h-full peer-checked:shadow-[inset_0_0_0_1px] peer-checked:shadow-primary peer-checked:border-primary",children:[(0,b.jsx)(en,{width:24,height:24}),(0,b.jsx)("span",{children:"Gesch\xe4ftskunde"})]})]}),(0,b.jsxs)("div",{className:"relative h-[78px]",children:[(0,b.jsx)("input",{type:"radio",id:"private",value:"private",name:"typeSwitch",className:"appearance-none absolute inset-0 h-full w-full cursor-pointer peer",onChange:u}),(0,b.jsxs)("label",{className:"box-border text-center text-sm border border-stroke-neutral-100 bg-surface-neutral-0 flex flex-col items-center justify-center gap-1 md:gap-2 h-full peer-checked:shadow-[inset_0_0_0_1px] peer-checked:shadow-primary peer-checked:border-primary",children:[(0,b.jsx)(e3.Z,{alt:""}),(0,b.jsx)("span",{children:"Privatkunde"})]})]})]}),(t=e=>{s(e)},"business"===a?(0,b.jsx)(e8,{handleFormSubmit:g,emailSendState:x,handleCaptcha:t,isSubmitting:i}):"private"===a?(0,b.jsx)(e7,{handleFormSubmit:g,emailSendState:x,handleCaptcha:t,isSubmitting:i}):null)]})})},{FallbackComponent:tc.H}),energy_price_calculator:(0,g.Pf)(e=>{var t;let{blok:l}=e,{headline:a,headline_tag:n,caption:r,text:s,default_selected:i}
1=l,[o,c]=(0,j.useState)("PLZ eingeben"),[d,m]=(0,j.useState)({product:(null===(t=eL.find(e=>e.label===i))||void 0===t?void 0:t.id)||"electricity",consumption:"",postal:""}),u="heatingOil"===d.product?"https://www.team.de/heizoel/?offer=on&type=on&target_group=1":"electricity"===d.product?"https://teamstrom.de/?offer=on&type=on&target_group=1":"https://teamgas.de/?offer=on&type=on&target_group=1",p=e=>{m({...d,product:e.target.value})};return(0,j.useEffect)(()=>{c("heatingOil"===d.product?"PLZ eingeben":"Verbrauch kWh / Jahr")},[d.product]),(0,j.useEffect)(()=>{document.querySelectorAll("input[type=radio]").forEach(e=>{e.hasAttribute("checked")&&(e.checked=!0)})},[]),(0,b.jsx)("div",{...(0,h.LF)(l),className:"py-content-mobile md:py-content-desktop",children:(0,b.jsxs)("div",{className:"flex flex-col md:flex-row md:items-center bg-surface-neutral-50  py-10 md:p-[60px]",children:[(0,b.jsxs)("div",{className:"px-4 pb-8 md:p-0 md:w-6/12 md:pr-16",children:[r&&(0,b.jsx)(P.default,{children:r}),(0,b.jsx)(n||"p",{className:"text-text-headlines text-4xl text-left font-extrabold uppercase italic font-sanscondensed md:text-5xl pb-2 md:pb-6",children:a}),(0,b.jsx)("p",{className:"text-sm text-text-body-primary text-left hyphens-auto md:text-base",children:s})]}),(0,b.jsxs)("form",{action:u,method:"GET",className:"md:w-6/12 px-4 md:p-0",target:"_blank",children:[(0,b.jsx)("div",{className:"flex flex-row gap-1 mb-2 md:mb-6 md:gap-2 h-[82px] md:h-[98px]",children:eL.map(e=>(0,b.jsxs)("div",{className:"relative grow",children:[(0,b.jsx)("input",{onChange:p,type:"radio",name:"product",value:e.id,id:e.id,className:"appearance-none absolute inset-0 h-full w-full cursor-pointer peer",defaultChecked:e.label===(i||"Strom")}),(0,b.jsxs)("label",{htmlFor:e.id,className:"box-border text-center text-text-headline font-sanscondensed font-extrabold text-xl md:text-2xl border border-stroke-neutral-100 bg-surface-neutral-0 flex flex-col items-center justify-center gap-1 md:gap-2 h-full peer-checked:shadow-[inset_0_0_0_2px_#ec6501]",children:[e.icon,(0,b.jsx)("span",{children:e.label})]})]},e.id))}),(0,b.jsxs)("div",{className:"flex flex-row gap-2",children:[(0,b.jsx)("input",{type:"hidden",name:"amount",value:""}),(0,b.jsx)("label",{htmlFor:"consumption",className:"heatingOil"!==d.product?"sr-only":"hidden",children:o}),(0,b.jsx)("input",{name:"consumption",id:"consumption",className:"h-12 w-full placeholder:text-input-text-label-idle placeholder:text-base pl-4",type:"heatingOil"!==d.product?"text":"hidden",placeholder:o,defaultValue:d.consumption}),(0,b.jsx)("label",{htmlFor:"postal",className:"heatingOil"===d.product?"sr-only":"hidden",children:o}),(0,b.jsx)("input",{name:"postal",id:"postal",className:"h-12 w-full placeholder:text-input-text-label-idle placeholder:text-base pl-4",type:"heatingOil"===d.product?"text":"hidden",placeholder:o,defaultValue:d.postal}),(0,b.jsx)(N.Z,{className:"text-btn-sm h-12",variant:"primary",as:"button",type:"submit",children:"weiter"})]})]})]})})},{FallbackComponent:tc.H}),iframe_module:(0,g.Pf)(td,{FallbackComponent:tc.H}),accordion:(0,g.Pf)(e=>{let{blok:t}=e,{accordion_items:l,ariaIdPrefix:a}=t,n=(0,j.useMemo)(()=>a||String(S(JSON.stringify(t))),[t,a]);return(0,b.jsx)("div",{...(0,h.LF)(t),className:"grid grid-cols-4 md:grid-cols-12 py-content-mobile md:py-content-desktop",children:(0,b.jsx)("div",{className:"col-span-4 md:col-span-12 gap-4 border-t border-[#b0b0b0]",children:null==l?void 0:l.map((e,t)=>(0,b.jsx)(C,{index:t,headline:e.headline,headline_tag:e.headline_tag,body:e.text,ariaIdPrefix:n,...e},e._uid))})})},{FallbackComponent:tc.H}),item_slider:(0,g.Pf)(eG,{FallbackComponent:tc.H}),page:e=>{var t;let{blok:l}=e;return(0,b.jsx)("div",{className:"container",children:null===(t=l.body)||void 0===t?void 0:t.map(e=>(0,b.jsx)(h.Xj,{blok:e},e._uid))})},location:(0,g.Pf)(e=>{var t,l;let{blok:a}=e,{business_name:n,address_line_1:r,zip_code:s,city:i,primary_category:o,primary_phone_number:c,email:d,cta:m,content_slot_top:u,content_slot_1:p,social_links:x,services_headline:f,services:g,content_slot_2:v,products_headline:j,products:w,latitude:_,longitude:k,opening_hours_monday:E,opening_hours_tuesday:Z,opening_hours_wednesday:S,opening_hours_thursday:C,opening_hours_friday:O,opening_hours_saturday:T,opening_hours_sunday:A}=a,R=(0,eU.v)(),F=g&&g.length>0&&void 0===g[0].content,I=w&&w.length>0&&void 0===w[0].content,z=F?void 0:null==g?void 0:g.map(e=>e.content.service[0]),H=I?void 0:null==w?void 0:w.map(e=>e.content.product_tile[0]),B="".concat(r?r+",":""," ").concat(s," ").concat(i),D=[{day:"Montag",time:E},{day:"Dienstag",time:Z},{day:"Mittwoch",time:S},{day:"Donnerstag",time:C},{day:"Freitag",time:O},{day:"Samstag",time:T},{day:"Sonntag",time:A}].reduce(function(e,t){let l=e[e.length-1];
1return l&&l.time===t.time&&t.time?l.endDay=t.day:(t.time||""===t.time||void 0===t.time)&&e.push(t),e},[]),V=!!m&&void 0!==m[0]&&(null===(l=m[0])||void 0===l?void 0:null===(t=l.url)||void 0===t?void 0:t.cached_url)!=="",q="Tankstellen"===o||"Tankautomaten"===o||"Agrar"===o,G=(0,y.Z)("text-4xl md:text-6xl text-text-headlines font-extrabold font-sanscondensed italic uppercase pb-2 md:pb-4"),U=q?e=>{let{children:t}=e;return(0,b.jsx)("h1",{className:G,children:t})}:e=>{let{children:t}=e;return(0,b.jsx)("div",{className:G,children:t})};return(0,b.jsxs)("div",{...(0,h.LF)(a),className:"container pt-6 md:pt-12",children:[o&&(0,b.jsx)(P.default,{className:"!pb-0.5 md:!pb-0",children:o}),(0,b.jsx)(U,{children:n}),(0,b.jsxs)("div",{className:"flex flex-col md:flex-row gap-4 md:gap-0 md:justify-between pb-5 md:pb-8 md:items-center",children:[(0,b.jsx)("div",{className:"text-text-body-primary text-sm md:text-base",children:B}),(0,b.jsx)("div",{className:"text-text-body-primary text-sm md:text-base",children:(0,b.jsx)("nav",{children:(0,b.jsx)("ul",{className:"flex flex-row gap-4",children:null==x?void 0:x.map(e=>{var t,l,a,n;return(0,b.jsx)("li",{className:"list-none social-links items-center",children:(0,b.jsxs)(N.Z,{variant:"unstyled",className:"text-base text-body text-body-primary no-underline hover:no-underline flex flex-row items-center gap-4 md:gap-1",rel:"noopener noreferrer",href:(0,M.Q)(null==e?void 0:e.social_link),target:null===(t=e.social_link)||void 0===t?void 0:t.target,title:e.name,children:[(0,b.jsx)(L.default,{src:null===(l=e.social_icon)||void 0===l?void 0:l.filename,width:40,height:40,unoptimized:!0,alt:null!==(n=null===(a=e.social_icon)||void 0===a?void 0:a.alt)&&void 0!==n?n:"",loading:"lazy"}),(0,b.jsx)("div",{className:"hidden md:block",children:e.name})]})},e._uid)})})})})]}),null==u?void 0:u.map(e=>(0,b.jsx)(h.Xj,{blok:e},e._uid)),(0,b.jsxs)("div",{className:"grid grid-cols-4 md:grid-cols-12 gap-x-2 gap-y-10 md:gap-4 py-content-mobile md:py-content-desktop",children:[(0,b.jsx)("div",{className:"col-span-4 md:col-span-6",children:R?(0,b.jsx)(eY,{longitude:k,latitude:_,business_name:n,fullAddress:B}):(0,b.jsx)(eQ,{})}),(0,b.jsxs)("div",{className:"flex flex-col justify-center col-span-4 md:col-span-5 md:col-start-8",children:[!(!E&&!Z&&!S&&!C&&!O&&!T&&!A)&&(0,b.jsx)("div",{className:"pb-10",children:(0,b.jsxs)("table",{className:"table-auto",children:[(0,b.jsx)("thead",{children:(0,b.jsx)("tr",{children:(0,b.jsx)("th",{className:"text-text-body-primary text-base font-bold pl-0 text-left",children:"\xd6ffnungszeiten"})})}),(0,b.jsx)("tbody",{children:D.map(e=>{var t;return(0,b.jsxs)("tr",{className:"text-text-body-primary text-base",children:[(0,b.jsx)("td",{children:e.time&&(0,b.jsxs)(b.Fragment,{children:[e.day,e.endDay?" - "+e.endDay:""]})}),(0,b.jsx)("td",{className:"pl-6",children:null!==(t=e.time)&&void 0!==t?t:e.time})]},e.day)})})]})}),(c||(null==d?void 0:d.url))&&(0,b.jsx)("div",{className:"pb-8 md:pb-10",children:(0,b.jsxs)("table",{children:[(0,b.jsx)("thead",{children:(0,b.jsx)("tr",{children:(0,b.jsx)("th",{className:"text-text-body-primary text-base font-bold pl-0 text-left",children:"Kontakt"})})}),(0,b.jsxs)("tbody",{children:[c&&(0,b.jsxs)("tr",{className:"text-text-body-primary text-base",children:[(0,b.jsx)("td",{children:"Telefon:"}),(0,b.jsx)("td",{className:"pl-6",children:(0,b.jsx)(N.Z,{href:"tel:".concat(c),variant:"unstyled",target:"_self",className:(0,y.Z)("text-base  underline decoration-0 underline-offset-2 text-link-hyperlink [&_span]:!text-link-hyperlink","hover:text-link-hyperlink hover:decoration-0"),children:c})})]}),(null==d?void 0:d.url)&&(0,b.jsxs)("tr",{className:"text-text-body-primary text-base",children:[(0,b.jsx)("td",{children:"E-Mail:"}),(0,b.jsx)("td",{className:"pl-6",children:(0,b.jsx)(N.Z,{href:(null==d?void 0:d.linktype)==="email"?"mailto:".concat(d.email):null==d?void 0:d.url,variant:"unstyled",target:"blank",className:(0,y.Z)("text-base  underline decoration-0 underline-offset-2 text-link-hyperlink [&_span]:!text-link-hyperlink","hover:text-link-hyperlink hover:decoration-0"),children:null==d?void 0:d.email})})]})]})]})}),V&&(0,b.jsx)("div",{className:"flex flex-row gap-2 flex-wrap",children:null==m?void 0:m.slice(0,2).map((e,t)=>{var l;return(0,b.jsx)(N.Z,{variant:0===t?"primary-narrow":"secondary-narrow",target:(null===(l=e.url)||void 0===l?void 0:l.linktype)==="url"?"_blank":"_self",href:(0,M.Q)(e.url),className:"text-btn-xs md:text-btn-sm",children:e.label},e._uid)})})]})]}),null==p?void 0:p.map(e=>(0,b.jsx)(h.Xj,{blok:e},e._uid)),z&&z.length>0&&(0,b.jsx)(eG,{headline:f,blok:z,itemsType:"services"}),H&&H.length>0&&(0,b.jsx)(eG,{headline:j,blok:H,itemsType:"products"}),null==v?void 0:v.map(e=>(0,b.jsx)(h.Xj,{blok:e},e._uid))]})},{FallbackComponent:tc.H}),velux_module:(0,g.Pf)(()=>
1(0,b.jsxs)("div",{children:[(0,b.jsx)("div",{id:"ek-product-site","data-url":"https://marketing.velux.de/embedded/12510981/24392"}),(0,b.jsx)(to.default,{src:"https://marketing.velux.de/assets/product-site.js"})]}),{FallbackComponent:tc.H}),news_slider:(0,g.Pf)(e=>{let{blok:t}=e,{slider_items:l,headline_tag:a}=t,[n,r]=(0,j.useState)(!1),[s,i]=(0,j.useState)(0),[o,c]=(0,j.useState)(0),d=(0,j.useRef)([]),m=(0,j.useRef)(null);return(0,j.useEffect)(()=>{let e;function t(){clearTimeout(e),e=setTimeout(()=>{var e,t;let l=d.current.map(e=>e.offsetHeight),a=null===(t=d.current.at(0))||void 0===t?void 0:null===(e=t.children)||void 0===e?void 0:e[0];c(null==a?void 0:a.offsetHeight),i(Math.max(...l))},200)}return window.addEventListener("resize",t,{passive:!0}),window.addEventListener("orientationchange",t,{passive:!0}),t(),()=>{clearTimeout(e),window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t)}},[n]),(0,b.jsx)("div",{...(0,h.LF)(t),className:"md:py-content-desktop py-content-mobile",children:(0,b.jsxs)(e2.tq,{ref:m,onAfterInit:()=>r(!0),className:"h-fit [&>.swiper-wrapper]:pointer-events-none",effect:"coverflow",grabCursor:!0,centeredSlides:!0,slidesPerView:1.55,spaceBetween:-25,loop:!0,keyboard:!0,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},coverflowEffect:{rotate:20,depth:200,modifier:1,slideShadows:!1},style:{perspectiveOrigin:"center ".concat(o/2,"px")},modules:[e1.lI,e1.s5,e1.N1,e1.W_],children:[null==l?void 0:l.map((e,t)=>(0,b.jsx)(e2.o5,{style:{height:"".concat(s,"px")},className:"!flex flex-col",children:(0,b.jsx)(e4,{ref:e=>d.current[t]=e,index:t,headline:e.headline,text:e.copy_text,link:e.link,linkLabel:e.link_label,isHighlight:e.is_highlight,image:e.image,headlineTag:a})},e._uid)),(0,b.jsx)("div",{className:"swiper-button-prev",style:{"--swiper-navigation-top-offset":o+30+"px"}}),(0,b.jsx)("div",{className:"swiper-button-next",style:{"--swiper-navigation-top-offset":o+30+"px"}})]})})},{FallbackComponent:tc.H}),contact_tile_list:(0,g.Pf)(e=>{let{blok:t}=e,{contact_tiles:l,headline:a,headline_tag:n,caption:r}=t;return(0,b.jsx)("section",{...(0,h.LF)(t),className:"relative w-full",children:(0,b.jsxs)("div",{className:"grid grid-cols-12 gap-x-4 py-content-mobile md:py-content-desktop",children:[r&&(0,b.jsx)(P.default,{className:"col-span-12 !pb-0.5 md:!pb-0",children:r}),a&&(0,b.jsx)(n||"p",{className:"text-left hyphens-auto break-word text-text-headlines font-sanscondensed uppercase italic text-4xl md:text-6xl font-extrabold col-span-12",children:a}),(0,b.jsx)("ul",{className:"grid grid-cols-12 gap-2 col-span-12 py-4 md:gap-4 md:py-6",children:l.map(e=>(0,b.jsx)(ti,{blok:e,className:"list-none block col-span-12 sm:col-span-6 md:col-span-4"},e._uid))})]})})},{FallbackComponent:tc.H})}});var tm=e=>{let{children:t}=e;return t}},1085:function(e,t,l){"use strict";l.d(t,{F:function(){return n}});var a=l(2933);let n=(e,t,l)=>{let n="".concat(e).concat(t).concat(l);return a.V8.hashStr(n)}},9097:function(e,t,l){"use strict";l.d(t,{Q:function(){return a}});let a=e=>{if(e)return(e=>{var t;let l=(null===(t=e.story)||void 0===t?void 0:t.full_slug)||e.cached_url,a=e.anchor?"#".concat(e.anchor):"";return(l.endsWith("/")&&(l=l.slice(0,-1)),"url"===e.linktype)?e.url:"story"===e.linktype?a?"/".concat(l).concat(a):"/".concat(l):"email"===e.linktype?"mailto:".concat(l):"asset"===e.linktype?l:"/".concat(e.cached_url)})(e)}},265:function(e,t,l){"use strict";l.d(t,{m:function(){return n}});var a=l(7941);function n(e){return(e||"").replace("//a.storyblok.com","//".concat(a.M.ASSETSDOMAIN))}},8160:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return n}});var a=l(265);function n(e){let{src:t,width:l,quality:n}=e;return t.includes(".svg")?(0,a.m)(t):"".concat((0,a.m)(t),"/m/").concat(l,"x0/filters:quality(").concat(n||75,")")}},9077:function(e,t,l){"use strict";l.d(t,{to:function(){return c},gf:function(){return d},$d:function(){return o},Gg:function(){return i}});var a=l(6511),n=l(7941);function r(e,t,l){for(let a in e){if(e.hasOwnProperty(a)){let n=e[a];
1if(n&&l.includes(n.id)){let e=t.find(e=>e.id===n.id);e.alt&&(n.alt=e.alt),e.copyright&&(n.copyright=e.copyright),e.focus&&(n.focus=e.focus)}}Object.keys(a).length&&"object"==typeof e[a]&&r(e[a],t,l)}return e}var s=e=>{let t=(null==e?void 0:e.assets)||null;if(null==t?void 0:t.length){let l=t.map(e=>e.id);e.stories?e.stories.forEach(e=>r(e.content.body,t,l)):e.story&&r(e.story.content.body,t,l)}return e};function i(e){let t=n.M.BRAND_FOLDER;return(t?t+"/":"")+(e||"")}async function o(e,t){let l=(0,a.bS)(),r={version:t?"draft":n.M.VERSION_MODE,resolve_relations:"contact_person.contact,location.products,location.services",resolve_links:"url",resolve_assets:1};if(!l)return;let{data:s}=await l.get("cdn/stories/"+i(e),r);return s}async function c(e,t){let l=(0,a.bS)(),r=t?"draft":n.M.VERSION_MODE;if(!l)return;let{data:s}=await l.get("cdn/stories/",{version:r,resolve_links:"url",filter_query:{"body.contact_tiles._uid":{in:e}}});if(null==s?void 0:s.stories){for(let t of s.stories)for(let l in t.content.body)if(t.content.body[l].hasOwnProperty("contact_tiles")){for(let a of t.content.body[l].contact_tiles)if(a._uid===e)return a}}}async function d(e,t){var l;let r=(0,a.bS)(),o={version:t?"draft":n.M.VERSION_MODE,starts_with:i("news_articles"),per_page:15,sort_by:"content.publication_date:desc",resolve_assets:1};if(e&&(o.filter_query={categories:{any_in_array:e}}),!r)return;let{data:c}=await r.get("cdn/stories",o);return null!==(l=null==(c=s(c))?void 0:c.stories)&&void 0!==l?l:[]}},7254:function(e,t,l){"use strict";let a=l(8639),n=l(8112),r={neutral:{0:"#ffffff",50:"#ededed",100:"#d5d5d5",200:"#bebebe",300:"#a6a6a6",400:"#8e8e8e",500:"#767676",600:"#5f5f5f",700:"#4a4a49",800:"#2c2c2c",900:"#181818"},green:{100:"#daeecd"},secondary:n.THEME_COLOR_SECONDARY||"#62b32b",primary:n.THEME_COLOR_PRIMARY||"#ec6501",signal:{"error-500":"#d92626","error-200":"#f7d4d4","success-500":"#0fa71e","success-200":"#cfedd2","info-500":"#3664da","info-200":"#d7e0f8","warning-500":"#f5c13d","warning-200":"#fdf3d8"}};e.exports={globalColors:r,content:["./src/app/**/*.{js,ts,jsx,tsx}","./src/components/**/*.{js,ts,jsx,tsx}"],theme:{fontSize:{xs:["12px","145%"],sm:["14px","155%"],base:["16px","160%"],lg:["18px","165%"],xl:["20px","150%"],"2xl":["24px","143%"],"3xl":["30px","126%"],"4xl":["38px","125%"],"5xl":["48px","125%"],"6xl":["60px","125%"],"7xl":["72px","125%"],"7.5xl":["88px","125%"],"8xl":["96px","125%"],"9xl":["128px","125%"]},screens:{xs:"375px",sm:"572px",md:"768px",lg:"1024px",xl:"1280px",xxl:"1440px"},container:!1,extend:{gridAutoColumns:{"xs-item":"minmax(255px, 1fr)","lg-item":"minmax(300px, 1fr)","xl-item":"minmax(320px, 1fr)","xs-usp-item":"minmax(295px, 1fr)","md-usp-item":"minmax(432px, 1fr)","xs-product-item":"minmax(168px, 1fr)","lg-product-item":"minmax(295px, 1fr)","xl-product-item":"minmax(320px, 1fr)"},gridTemplateColumns:{xs:"repeat(4, minmax(0, 1fr))",md:"repeat(8, minmax(0, 1fr))",xl:"repeat(12, minmax(0, 1fr))","xs-slider":"repeat(auto-fill, minmax(255px, 1fr))","lg-slider":"repeat(auto-fill, minmax(300px, 1fr))","xl-slider":"repeat(auto-fill, minmax(320px, 1fr))","xs-usp-slider":"repeat(auto-fill, minmax(295px, 1fr))","md-usp-slider":"repeat(auto-fill, minmax(432px, 1fr))","xs-product-slider":"repeat(auto-fill, minmax(168px, 1fr))","lg-product-slider":"repeat(auto-fill, minmax(295px, 1fr))","xl-product-slider":"repeat(auto-fill, minmax(320px, 1fr))"},fontFamily:{sans:"var(--font-opensans)"},colors:{...r,primary:{DEFAULT:r.secondary,base:r.secondary},secondary:{DEFAULT:r.primary,base:r.primary},neutral:{"neutral-0":r.neutral[0]},text:{headlines:r.neutral[800],"body-primary":r.neutral[700],"body-secondary":r.neutral[500],"neutral-0":r.neutral[0],error:r.signal["error-500"],validated:r.signal["success-500"]},surface:{"neutral-0":r.neutral[0],"neutral-50":r.neutral[50],"neutral-100":r.neutral[100],"neutral-800":r.neutral[800],secondary:r.secondary,"green-100":r.green[100],primary:r.primary},icon:{"neutral-800":r.neutral[800],"neutral-0":r.neutral[0],secondary:r.secondary,primary:r.primary},button:{"surface-primary-secondary":r.secondary,"surface-primary-primary":r.primary,"surface-primary-neutral-800":r.neutral[800],"surface-secondary-neutral-0":r.neutral[0],"border-neutral-100":r.neutral[100],"text-primary":r.neutral[0],"text-secondary-secondary":r.secondary,"text-secondary-primary":r.primary,"text-secondary-neutral-800":r.neutral[800]},link:{"text-neutral-800":r.neutral[800],"text-neutral-900":r.neutral[900],"text-neutral-0":r.neutral[0],"text-hover-menu":r.secondary,"text-hover":r.neutral[900],"menu-text":r.neutral[700],hyperlink:r.neutral[700]},stroke:{"neutral-50":r.neutral[50],"neutral-100":r.neutral[100],"neutral-200":r.neutral[200],"neutral-800":r.neutral[800],secondary:r.secondary,primary:r.primary},input:{"surface-neutral-0":r.neutral[0],"surface-neutral-50":r.neutral[50],"text-label":r.neutral[400],"text-label-idle":r.neutral[600],"text-input"
1:r.neutral[800]},alert:{error:r.signal["error-500"],warning:r.signal["warning-500"],success:r.signal["success-500"],info:r.signal["info-500"]}},borderWidth:{DEFAULT:"1px",base:"1px",3:"3px",22:"22px",34:"34px"},borderRadius:{none:"0px",input:"0px",full:"9999px"},spacing:{min:"2px",small:"4px",base:"8px",double:"16px",18:"18px",triple:"24px",medium:"32px",large:"40px",xlarge:"48px","2xlarge":"56px","3xlarge":"64px","4xlarge":"72px",max:"80px","content-mobile":"20px","content-desktop":"32px"},fontSize:{"headline-sm":["48px",{lineHeight:"125%"}],"headline-md":["56px",{lineHeight:"125%"}],"headline-lg":["64px",{lineHeight:"125%"}],"title-sm":["24px",{lineHeight:"30px"}],"title-md":["32px",{lineHeight:"40px"}],"title-lg":["40px",{lineHeight:"50px"}],"body-sm":["14px",{lineHeight:"24px"}],"body-md":["16px",{lineHeight:"28px"}],"body-lg":["20px",{lineHeight:"34px"}],"btn-xs":["12px",{lineHeight:"12px"}],"btn-sm":["14px",{lineHeight:"14px"}],button:"18px"},height:{"desktop-navbar":"64px","main-navigation":"640px","mobile-navbar":"56px","service-menu":"36px"},skew:{"right-arrow":"5.71deg","right-arrow-revert":"-5.71deg"},keyframes:{customSpin:{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}},colorChange:{"0%":{"border-left-color":"#f04f47"},"25%":{"border-left-color":"#34f04f"},"50%":{"border-left-color":"#47f0f0"},"75%":{"border-left-color":"#e15ff0"},"100%":{"border-left-color":"#f04f47"}}},boxShadow:{default:"0 6px 16px 0 rgba(0, 0, 0, 0.1)",arrow:"0px 6px 16px 0px rgba(0, 0, 0, 0.10)"}}},corePlugins:{textOpacity:!1,backgroundOpacity:!1,borderOpacity:!1,divideOpacity:!1,placeholderOpacity:!1,ringOpacity:!1},plugins:[a(function(e){let{addUtilities:t}=e;t({".hide-webkit-cancel-button::-webkit-search-cancel-button":{appearance:"none"}})}),function(e){let{addComponents:t}=e;t({".container":{margin:"auto",maxWidth:"100%",paddingLeft:"16px",paddingRight:"16px","@screen xs":{paddingLeft:"16px",paddingRight:"16px"},"@screen md":{paddingLeft:"28px",paddingRight:"28px"},"@screen xl":{maxWidth:"1440px",paddingLeft:"56px",paddingRight:"56px"}}})},l(7930)(),l(7656)]}},3624:function(){},8112:function(e){"use strict";e.exports=JSON.parse('{"DOMAIN":"https://app-team-web-prod-sub-karstensen-yellow-hweyf2c7eecsewbf.germanywestcentral-01.azurewebsites.net/","META_TITLE_FALLBACK":"Karstensen – Ihr starker Partner im Baustoffhandel","META_DESCRIPTION_FALLBACK":"Exzellentes und vielf\xe4ltiges Sortiment in Nieb\xfcll & Keitum \xbb Hochbau✔ Dach & Fassade✔ Innenausbau✔ Bauelemente✔ GaLaBau✔ Tiefbau✔ u.v.m. bei Karstensen","THEME_COLOR_PRIMARY":"#e40038","THEME_COLOR_SECONDARY":"#000","THEME_FAV_ICON":"https://a.storyblok.com/f/252999/x/48e5490e52/favicon-karstensen.ico","WEBSITE_NAME_ALTERNATE":"A. Karstensen GmbH & Co. KG","WEBSITE_NAME":"Karstensen"}')}}]);

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.