1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6073],{56073:(e,l,t)=>{t.r(l),t.d(l,{default:()=>G});var i=t(95155),o=t(12115),a=t(97837),n=t(78057),r=t(20063),s=t(95604),d=t(21042),c=t(54866),_=t(20410),m=t(58002),h=t(17800),g=t(52382),u=t(39940),x=t(89078),p=t(67611),f=t(85863);let b=e=>{let{imageChild:l,contentChild:t,ctaChild:o,layout:a="image_top",backgroundColor:n="white",textColor:r="standard",imageAspectRatio:s="16/9",className:d=""}=e,{getBackgroundColorClass:c,getTextColorClass:_,getAspectRatioClassName:m}=(0,h.J)(),g=(0,u.A)(["image_top"===a?"flex-col":"","image_left"===a?"md:flex-row":"","image_right"===a?"md:flex-row-reverse":"",l&&t?"border-neutral-400":"border-transparent","flex h-full flex-col overflow-hidden border rounded-lg",d]),x=(0,u.A)(["image_top"===a?"w-full":"","image_left"===a?"w-full md:w-[calc(50%+8px)] md:-mr-8":"","image_right"===a?"w-full md:w-[calc(50%+8px)] md:-ml-8 ":"","overflow-hidden relative",t||o?"":"rounded-lg",m(s)]),p=(0,u.A)([l&&"image_top"===a?"-top-8 -mb-8":"",l&&"image_left"===a?"-top-8 -mb-8 md:top-0 md:mb-0":"",l&&"image_right"===a?"-top-8 -mb-8 md:top-0 md:mb-0":"","relative flex flex-1 flex-col justify-between rounded-lg p-16 overflow-hidden",!t&&o?"!p-0":"",c(n),_(r)]);return(0,i.jsxs)("div",{className:g,children:[l&&(0,i.jsx)("div",{className:x,children:l}),(t||o)&&(0,i.jsxs)("div",{className:p,children:[t&&(0,i.jsx)("div",{children:t}),o]})]})};var k=t(83831);let w=e=>{let{content:l,subline:t,asteriskText:o,priority:a=!1}=e;if(!l)return null;let{getButtonVariant:n,getTextColorClass:r}=(0,h.J)(),s=(0,u.A)(["rounded-lg"]),d=(0,k.A)({variant:n(l.call_to_action_style||"primary"),size:"s",className:"inline-flex items-center justify-center",includesIcon:!1}),g=l.tile_headline||l.tile_text_content||t||o||l.general_link?.href&&l.general_link?.title||l.call_to_action_link?.href&&l.call_to_action_link?.title,x=l.show_call_to_action&&(l.general_link?.href&&l.general_link?.title||l.call_to_action_link?.href&&l.call_to_action_link?.title)&&(0,i.jsx)(m.A,{link:l?.call_to_action_link?.href||l.general_link?.href||"",nofollow:l.nofollow_cta||!1,className:d,children:l?.call_to_action_link?.title||l.general_link?.title}),p=(0,i.jsx)(_.A,{src:l?.image_desktop?.url||l?.image_mobile?.url||"/placeholder.svg",width:l?.image_desktop?.dimension?.width??l?.image_mobile?.dimension?.width??1920,height:l?.image_desktop?.dimension?.height??l?.image_mobile?.dimension?.height??1080,mobileSrc:l?.image_mobile?.url||l?.image_desktop?.url||void 0,mobileWidth:l?.image_mobile?.dimension?.width??l?.image_desktop?.dimension?.width??828,mobileHeight:l?.image_mobile?.dimension?.height??l?.image_desktop?.dimension?.height??1080,mobileBreakpoint:"(max-width: 1023px)",mobileSizes:"100vw",simpleTitle:l?.image_desktop?.title||l?.image_mobile?.title||l?.tile_headline,simpleAlt:l?.image_desktop?.description||l?.image_mobile?.description||l?.tile_headline,className:`object-contain ${s} ${l?.layout==="hero_right"?"object-left":"object-right"}`,style:{width:"100%",height:"auto"},sizes:"(max-width: 1023px) 100vw, 66vw",priority:a,fetchPriority:a?"high":"auto"});return(0,i.jsx)("div",{className:`mx-auto flex w-full max-w-screen-xl ${r(l.tile_text_color)}`,children:(0,i.jsxs)("div",{className:`flex w-full flex-col lg:items-stretch lg:gap-32 ${"hero_right"===l.layout?"lg:flex-row":"lg:flex-row-reverse"}`,children:[(0,i.jsx)("div",{className:"w-full lg:w-2/3",children:l?.general_link?.href?(0,i.jsx)(m.A,{link:l.general_link.href,nofollow:l.nofollow_general||!1,className:"block",children:p}):p}),g&&(0,i.jsxs)("div",{className:"flex flex-col justify-center p-16 md:px-0 lg:w-1/3 lg:p-8 xl:p-12",children:[l.tile_headline&&(0,i.jsx)(c.A,{className:"mb-16",level:2,children:l.tile_headline}),t&&(0,i.jsx)(c.A,{className:"mb-16",level:3,children:t}),l.tile_text_content&&(0,i.jsx)("div",{className:"cs-htmlContent mb-16 lg:mb-40",dangerouslySetInnerHTML:{__html:l.tile_text_content}}),o&&(0,i.jsx)("div",{className:"mb-16 text-sm text-neutral-700",children:o}),x]})]})})},y=e=>{let{content:l,preloadedData:t,columns:o,isAboveTheFold:a}=e;if((!l||!l.brand_reference)&&!t)return null;let{generateImageSizes:n}=(0,h.J)(),r=n(o),s=t||l.brand_reference[0];return(0,i.jsx)(i.Fragment,{children:s&&(0,i.jsx)(m.A,{className:"my-16 block h-88",link:s.url||"",title:s.title,nofollow:l.nofollow||!1,children:s?.image?.url||s?.image?.file?.url?(0,i.jsx)(_.A,{src:s.image?.url||s.image?.file?.url||"/images/product-image-placeholder.svg",simpleTitle:s.title,alt:s.image?.description,width:s.image?.dimension?.width??400,height:88,style:{width:"100%",height:"100%",objectFit:"contain"},sizes:r,priority:a}):(0,i.jsx)("div",{children:s.title})})})};
1var v=t(54898),j=t(45008);let A=(0,o.createContext)({}),N=e=>{let{queryId:l,children:t}=e;return(0,o.useEffect)(()=>{l&&(0,j.TP)(l)},[l]),(0,i.jsx)(A.Provider,{value:{queryId:l},children:t})};var T=t(24699);let $=e=>{let{preloadedData:l,isAboveTheFold:t,index:a=0}=e,{addItem:n}=(0,T._$)(),{queryId:r}=(0,o.useContext)(A),{trackProductsClicked:s}=(0,j.Ay)();return l?(0,i.jsx)(v.A,{product:l,isAboveTheFold:t,onAddToCart:async(e,l)=>{r&&(0,j.TP)(r),await n(e,l)},onClick:()=>{if(!r)return;(0,j.TP)(r),(0,j.lG)();let e=l.productId?.trim();e&&s([{objectID:e}],[a+1],r)}}):null},C={CATEGORY_TILE:"category_tile",IMAGE_TEXT_TILE:"image_text_tile",BRAND_TILE:"brand_tile",PREMIUM_BRAND_AUTOLOAD:"premiumbrand_autoload",MAGAZIN_TILE:"magazin_tile",PAGE:"page",PRODUCT:"product_tile",PRODUCT_SLIDER:"product_slider"},I={[C.CATEGORY_TILE]:{component:e=>{let{content:l,columns:t,isAboveTheFold:o}=e,{locale:a}=(0,r.useParams)(),{getLocalizedValue:n}=(0,x.A)(a),k=(0,s.useTranslations)(),{flattenedCategories:w}=(0,p.Ck)(),{getBackgroundColorClass:y,getBorderColorClass:v,getButtonVariant:j,generateImageSizes:A}=(0,h.J)(),N=A(t),T="de-AT"===a?l.category_at?.data:l.category?.data,$=T?.[0],C="de-AT"===a?l.manual_subcategories_at?.data:l.manual_subcategories?.data,I=w.find(e=>e.categoryKey===$?.key);if(!T?.length)return null;let z=[];return z=C&&C.length?C.map(e=>{let l=w.find(l=>l.categoryKey===e.key);return l||(0,f.logWarning)(`Subcategory with ID ${e.id} not found in flattened categories`,{meta:{component:"CategoryTile",subcatId:e.id}}),l}).filter(e=>!!e)||[]:w?.find(e=>e.categoryKey===$?.key)?.descendants?.slice(0,7)||[],(0,i.jsx)("div",{className:"category-tile h-full","data-show-desktop":l.show_on_desktop,"data-show-mobile":l.show_on_mobile,children:(0,i.jsx)(b,{backgroundColor:l.tile_background_color||"white",imageChild:l.image?.url&&(0,i.jsx)(m.A,{link:`${n(I?._url||{})||""}`,children:(0,i.jsx)(_.A,{src:l.image?.url||"/images/product-image-placeholder.svg",simpleTitle:l.image?.title||n($.name),alt:l.image?.description,width:l.image?.dimension?.width??800,height:l.image?.dimension?.height??450,style:{width:"100%",height:"100%",objectFit:"cover"},sizes:N,priority:o})}),contentChild:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:(0,u.A)(["-mx-16 -mt-16 p-16",l.header_background_color?y(l.header_background_color):"",l.header_border_color?`${v(l.header_border_color)} border-b-2 mb-16`:""]),children:[(0,i.jsx)(m.A,{link:`${n(I?._url||{})||""}`,variant:"primary",size:"m",className:"block !font-body !no-underline",children:(0,i.jsx)(c.A,{level:5,className:"text-neutral-900",children:l.manual_title||n($.name)})}),l.subline&&(0,i.jsx)("div",{className:"mt-8 text-neutral-700",children:l.subline})]}),(0,i.jsxs)("div",{className:(0,u.A)(["columns"===l.layout?"grid grid-cols-2 gap-8":"flex flex-col gap-32"]),children:[z.length>0&&(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{className:"mb-16 font-heading font-bold",children:l.category_subtitle||k("common.popularCategories")}),(0,i.jsx)("ul",{className:(0,u.A)(["columns"===l.layout?"flex flex-col gap-8":"flex flex-row flex-wrap gap-8"]),children:z.map(e=>(0,i.jsx)("li",{children:(0,i.jsx)(m.A,{link:`${n(e?._url||{})||""}`,children:(0,i.jsx)(g.A,{variant:"outline",className:"!inline-block max-w-full overflow-hidden text-ellipsis",badgeSize:"lg",children:e.name})})},e.categoryId))})]}),l.brands&&l.brands.length>0&&(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{className:"mb-16 font-heading font-bold",children:l.brand_subtitle||k("common.popularBrands")}),(0,i.jsx)("div",{className:(0,u.A)(["grid gap-16 mt-8 grid-cols-[repeat(auto-fit,minmax(100px,1fr))] "]),children:l.brands.map((e,l)=>(0,i.jsx)(m.A,{link:e.url||"",title:e.title,children:e.image?.url?(0,i.jsx)(_.A,{src:e.image?.url||"/images/product-image-placeholder.svg",simpleTitle:e.title,width:e.image?.dimension?.width??200,height:e.image?.dimension?.height??100,style:{width:"100%",height:"auto",objectFit:"contain"},sizes:N,priority:o}):(0,i.jsx)("div",{children:e.title})},l))})]})]})]}),ctaChild:l.show_call_to_action&&(0,i.jsx)(m.A,{link:l.call_to_action_link?.href||`/${n($.slug)||""}
1`,className:"mt-16 w-full",title:l.call_to_action_link?.title||l.manual_title||n($.name)||k("common.moreLink"),children:(0,i.jsx)(d.A,{variant:j(l.call_to_action_style),size:"m",className:"w-full",children:l.call_to_action_link?.title||k("common.moreLink")})})})})},keyGenerator:(e,l)=>{let t=e?.category?.data?.[0]?.id;return t?`category-${t}-${l}`:`category-${l}`}},[C.IMAGE_TEXT_TILE]:{component:e=>{let{content:l,index:t,columns:a,isAboveTheFold:n}=e,{getButtonVariant:r,getTextColorClass:x,getBackgroundColorClass:p,generateImageSizes:f,getHeadlineLevel:k}=(0,h.J)(),y=f(a),v=(0,s.useTranslations)();if(!l)return null;let j=(e=>e.tile_headline||e.general_link?.title||e.image_desktop?.title||e.image_mobile?.title||"")(l),A="image_top"===l.layout||"image_left"===l.layout||"image_right"===l.layout,N="hero_left"===l.layout||"hero_right"===l.layout,T=(0,u.A)([l.show_on_desktop?"":"md:hidden",l.show_on_mobile||"image_circle_subline"!==l.layout?"":"hidden md:flex flex-col",l.show_on_mobile||"plain_image_text"!==l.layout?"":"hidden md:block",l.show_on_mobile||"plain_image_text"===l.layout||"image_circle_subline"===l.layout?"":"hidden md:flex"]),$=(0,u.A)([(l.layout,"top-8 left-8"),"image_right"===l.layout?"top-8 left-8 md:top-8 md:left-16":"","flex absolute gap-8"]),C={"--mobile-height":l.max_mobile_height?`${l.max_mobile_height}px !important`:"auto","--desktop-height":l.max_desktop_height?`${l.max_desktop_height}px !important`:"auto"},I={"--mobile-diameter":l.max_mobile_height?`${l.max_mobile_height}px`:"100%","--desktop-diameter":l.max_desktop_height?`${l.max_desktop_height}px`:"100%"},z=(0,o.useRef)(null);(0,o.useEffect)(()=>{if(z.current){let e=l.max_mobile_height?`${l.max_mobile_height}px`:"auto",t=l.max_desktop_height?`${l.max_desktop_height}px`:"auto";z.current.style.setProperty("--mobile-height",e),z.current.style.setProperty("--desktop-height",t)}},[l.max_mobile_height,l.max_desktop_height]);let P=(0,u.A)(["[height:var(--mobile-height)]","md:[height:var(--desktop-height)]",l.image_animation?"transition-transform duration-500 ease-in-out hover:scale-110":"",l.tile_headline||l.tile_text_content||l.show_call_to_action?"":"overflow-hidden"]),D=(0,u.A)(["relative",l.max_mobile_height?"[height:var(--mobile-height)]":"h-full",l.max_desktop_height?"md:[height:var(--desktop-height)]":"md:h-full",l.image_animation?"transition-transform duration-500 ease-in-out hover:scale-110":"",l.tile_headline||l.tile_text_content||l.show_call_to_action?"":"rounded-lg overflow-hidden"]),E=l.max_desktop_height&&"image_circle_subline"!==l.layout?"object-contain":"object-cover",L=(0,i.jsxs)("div",{className:A?D:P,children:[(0,i.jsx)(_.A,{src:l.image_desktop?.url||l.image_mobile?.url,width:l.image_desktop?.dimension?.width??l.image_mobile?.dimension?.width??1920,height:l.image_desktop?.dimension?.height??l.image_mobile?.dimension?.height??1080,mobileSrc:l.image_mobile?.url,mobileWidth:l.image_mobile?.dimension?.width??l.image_desktop?.dimension?.width??828,mobileHeight:l.image_mobile?.dimension?.height??l.image_desktop?.dimension?.height??1080,mobileSizes:y,simpleTitle:l.image_desktop?.title||l.image_mobile?.title||l.tile_headline,alt:(l.image_desktop||l.image_mobile)?.description,className:`size-full rounded-lg ${E}`,sizes:y,priority:n,fetchPriority:n?"high":"auto"}),l.badge_tag&&(0,i.jsx)("div",{className:$,children:l.badge_tag.map((e,l)=>(0,i.jsx)(g.A,{variant:e.tag_content.badge_style,children:e.tag_content.badge},l))})]}),G=(0,i.jsx)(i.Fragment,{children:l.show_call_to_action&&(0,i.jsx)(m.A,{link:l.call_to_action_link?.href||l.general_link?.href||"",className:(0,u.A)(["w-full",l?.tile_headline||l?.tile_text_content?"mt-16":""]),title:l.call_to_action_link?.title||l.general_link?.title||v("common.moreLink"),nofollow:l.nofollow_cta||!1,children:(0,i.jsx)(d.A,{variant:r(l.call_to_action_style),size:"m",className:"w-full",children:l.call_to_action_link?.title||l.general_link?.title||v("common.moreLink")})})});return"image_circle_subline"===l.layout?(0,i.jsxs)("div",{className:T,style:I,children:[(0,i.jsx)("div",{className:(0,u.A)(["rounded-full aspect-1 border-2 border-neutral-400 flex place-content-center items-center overflow-hidden justify-self-center","[width:var(--mobile-diameter)] md:[width:var(--desktop-diameter)] max-w-full",p(l.tile_background_color)||"bg-white"]),style:{"--mobile-height":"100%","--desktop-height":"100%"},children:(l.image_desktop?.url||l.image_mobile?.url)&&(l.general_link?.href?(0,i.jsxs)(m.A,{link:l.general_link?.href||"",className:"relative size-full",nofollow:l.nofollow_general||!1,children:[L,j?(0,i.jsx)("span",{className:"sr-only",children:j}):null]}):(0,i.jsx)(i.Fragment,{children:L}))}),l.tile_headline&&l.general_link?.href?(0,i.jsx)(m.A,{link:l.general_link?.href||"",nofollow:l.nofollow_general||!1,variant:"primary",size:"m",className:"mb-8 block !font-body !no-underline",children:(0,i.jsx)(c.A,{level:k(l?.tile_headline_level||"h5"),className:(0,u.A)(["my-16 text-center w-full",x(l.tile_text_color)]),children:l.tile_headline})}):l.tile_headline&&(0,i.jsx)(c.A,{level:k(l?.tile_headline_level||"h5"),className:(0,u.A)(["my-16 text-center w-full",x(l.tile_text_color)]),children:l.tile_headline}
1),l.tile_text_content&&(0,i.jsx)("div",{className:(0,u.A)(["cs-htmlContent",x(l.tile_text_color)]),dangerouslySetInnerHTML:{__html:l.tile_text_content||""}}),l.show_call_to_action&&(l.call_to_action_link?.href||l.general_link?.href)&&G]}):"plain_image_text"===l.layout?(0,i.jsxs)("div",{ref:z,className:(0,u.A)([T,p(l.tile_background_color)||"bg-white","transparent"!==l.tile_background_color?"p-16 rounded-md":""]),style:C,children:[(l.image_desktop?.url||l.image_mobile?.url)&&(l.general_link?.href?(0,i.jsxs)(m.A,{link:l.general_link?.href||"",nofollow:l.nofollow_general||!1,className:"relative size-full",children:[L,j?(0,i.jsx)("span",{className:"sr-only",children:j}):null]}):(0,i.jsx)(i.Fragment,{children:L})),l.tile_headline&&l.general_link?.href?(0,i.jsx)(m.A,{link:l.general_link?.href||"",nofollow:l.nofollow_general||!1,variant:"primary",size:"m",className:"mb-8 block !font-body !no-underline",children:(0,i.jsx)(c.A,{level:k(l?.tile_headline_level||"h5"),className:(0,u.A)(["my-16 text-center w-full",x(l.tile_text_color)]),children:l.tile_headline})}):(0,i.jsx)(c.A,{level:k(l?.tile_headline_level||"h5"),className:(0,u.A)(["my-16 text-center w-full",x(l.tile_text_color)]),children:l.tile_headline}
1),l.tile_text_content&&(0,i.jsx)("div",{className:(0,u.A)(["cs-htmlContent",x(l.tile_text_color)]),dangerouslySetInnerHTML:{__html:l.tile_text_content||""}}),l.show_call_to_action&&(l.call_to_action_link?.href||l.general_link?.href)&&G]}):N?(0,i.jsx)(w,{content:l,priority:0===t&&n},"test"):(0,i.jsx)(b,{className:T,layout:l.layout,backgroundColor:l.tile_background_color||"white",textColor:l.tile_text_color||"standard",imageAspectRatio:l.image_aspect_ratio||"16/9",imageChild:(l.image_desktop?.url||l.image_mobile?.url)&&(l.general_link?.href?(0,i.jsxs)(m.A,{link:l.general_link?.href||"",nofollow:l.nofollow_general||!1,className:"relative",children:[L,j?(0,i.jsx)("span",{className:"sr-only",children:j}):null]}):(0,i.jsx)(i.Fragment,{children:L})),contentChild:(l.tile_headline||l.tile_text_content)&&(0,i.jsxs)(i.Fragment,{children:[l.tile_headline&&l.general_link?.href?(0,i.jsx)(m.A,{link:l.general_link?.href||"",nofollow:l.nofollow_general||!1,variant:"primary",size:"m",className:"mb-8 block !font-body !no-underline",children:(0,i.jsx)(c.A,{level:k(l?.tile_headline_level||"h5"),className:(0,u.A)(["mb-16",x(l.tile_text_color)]),children:l.tile_headline})}):(0,i.jsx)(c.A,{level:k(l?.tile_headline_level||"h5"),className:(0,u.A)(["mb-16",x(l.tile_text_color)]),children:l.tile_headline}),(0,i.jsx)("div",{className:(0,u.A)(["cs-htmlContent",x(l.tile_text_color)]),dangerouslySetInnerHTML:{__html:l.tile_text_content||""}})]}),ctaChild:l.show_call_to_action&&(l.call_to_action_link?.href||l.general_link?.href)&&G})},keyGenerator:(e,l)=>{let t=e?.tile_headline;return t?`image-text-${t}-${l}`:`image-text-${l}`}},[C.BRAND_TILE]:{component:y,keyGenerator:(e,l)=>{let t=e?.brand_reference;return t?`brand-${t.id}-${l}`:`brand-${l}`}},[C.PREMIUM_BRAND_AUTOLOAD]:{component:y,keyGenerator:(e,l)=>{let t=e?.brand_reference;return t?`brand-${t.id}-${l}`:`brand-${l}`}},[C.MAGAZIN_TILE]:{component:e=>{let{content:l,preloadedData:t,columns:o,isAboveTheFold:a}=e,{getButtonVariant:n,getTextColorClass:r,generateImageSizes:x}=(0,h.J)(),p=x(o),f=(0,s.useTranslations)(),k=(0,u.A)([l.show_on_desktop?"":"md:!hidden",l.show_on_mobile?"":"!hidden md:!flex"]),w=(0,u.A)([(l.layout,"top-8 left-8"),"image_right"===l.layout?"top-8 left-8 md:top-8 md:left-16":"","flex absolute gap-8"]);return(0,i.jsx)(b,{className:k,layout:l.layout,backgroundColor:l.tile_background_color||"white",textColor:l.tile_text_color||"standard",imageAspectRatio:l.image_aspect_ratio||"16/9",imageChild:(0,i.jsxs)(m.A,{link:l.magazin_page_link||"",title:`${t?.title||""} - ${f("common.readMore")}`,nofollow:l.nofollow||!1,children:[(0,i.jsx)(_.A,{src:t?.image,simpleTitle:t?.title||"",width:800,height:450,style:{width:"100%",height:"100%",objectFit:"cover"},sizes:p,priority:a}),l.badge_tag&&(0,i.jsx)("div",{className:w,children:l.badge_tag.map((e,l)=>(0,i.jsx)(g.A,{variant:e.tag_content.badge_style,children:e.tag_content.badge},l))})]}),contentChild:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(m.A,{link:l.magazin_page_link||"",variant:"primary",size:"m",className:"mb-8 block !font-body !no-underline",title:`${t?.title||""} - ${f("common.readMore")}`,nofollow:l.nofollow||!1,children:(0,i.jsx)(c.A,{level:5,className:(0,u.A)(["mb-16",r(l.tile_text_color)]),children:t?.title})}),(0,i.jsx)("div",{children:t?.description})]}),ctaChild:l.show_call_to_action&&(0,i.jsx)(m.A,{link:l.magazin_page_link||"",className:"mt-16 w-full",title:`${t?.title||""} - ${f("common.readMore")}`,nofollow:l.nofollow||!1,children:(0,i.jsx)(d.A,{variant:n(l.call_to_action_style),size:"m",className:"w-full",children:l.call_to_action_button_title||f("common.moreLink")})})})},keyGenerator:(e,l)=>{let t=e?.brand_reference;return t?`brand-${t.id}-${l}`:`brand-${l}`}},[C.PAGE]:{component:e=>{let{content:l,columns:t,isAboveTheFold:o}=e,{generateImageSizes:a}=(0,h.J)();if(!l||!l.page_ref?.length)return null;let[n]=l.page_ref,r=n.promotion_banner_card;if((t.desktop_columns??4)<=1)return(0,i.jsx)(w,{content:((e,l)=>{let t=e.promotion_banner_card;return{image_desktop:e.teaser_image_for_overview_pages,image_mobile:null,image_aspect_ratio:"original",image_animation:!1,tile_headline:t?.promotion_headline||e.page_title||e.title,tile_text_content:t?.promotion_text||void 0,general_link:{title:e.title,href:e.url||""},nofollow_general:l,show_call_to_action:!!t?.promotion_cta_text,call_to_action_link:{title:t?.promotion_cta_text||"",href:e.url||""},nofollow_cta:l,call_to_action_style:"primary",show_on_mobile:!0,show_on_desktop:!0,layout:"hero_left",tile_background_color:"transparent",tile_text_color:"standard"}})(n,l.nofollow||!1),subline:r?.promotion_subline||void 0,asteriskText:r?.asterisk_text||void 0,priority:o});let s=r?.promotion_headline||r?.promotion_subline_card&&r?.promotion_subline||r?.promotion_text_card&&r?.promotion_text||r?.asterisk_text_card&&r?.asterisk_text,d=a(t);return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(m.A,{className:`${s?"flex flex-col rounded-lg border pb-8 transition-shadow duration-200 ease-in-out hover:shadow-lg":""}`,link:n.url||"",title:n.title,nofollow:l.nofollow||!1,children:[(0,i.jsx)("div",{className:`block overflow-hidden ${s?"rounded-t-lg":"rounded-lg transition-shadow duration-200 ease-in-out hover:shadow-lg"}`,children:n.teaser_image_for_overview_pages?.url?(0,i.jsx)(_.A,{src:n.teaser_image_for_overview_pages?.url,simpleTitle:n.title,fill:!0,className:"!relative block object-contain",sizes:d,priority:o}):(0,i.jsx)("div",{className:"flex size-full items-center justify-center bg-gray-200 text-center font-heading text-3xl text-gray-900",children:n.page_title})}),r?.promotion_headline&&(0,i.jsx)(c.A,{level:5,className:"mt-8 px-8 text-neutral-900",children:r.promotion_headline}),r?.promotion_subline_card&&r.promotion_subline&&(0,i.jsx)(c.A,{level:6,className:"mb-4 px-8 text-neutral-900",children:r.promotion_subline}),r?.promotion_text_card&&r.promotion_text&&(0,i.jsx)("div",{className:"mt-4 px-8 text-base text-neutral-900",children:r.promotion_text}),r?.asterisk_text_card&&r.asterisk_text&&(0,i.jsx)("div",{className:"mt-1 px-8 text-sm text-neutral-700",children:r.asterisk_text})]})})},keyGenerator:(e,l)=>`subpage-${l}`},[C.PRODUCT]:{component:$,keyGenerator:(e,l)=>`product-slider-${l}`},[C.PRODUCT_SLIDER]:{component:$,keyGenerator:(e,l)=>`product-slider-${l}`}},z=e=>Object.values(C).includes(e),P=(e,l,t,i,a,n)=>{let r=(e=>{let l=Object.keys(e).find(e=>z(e));return l&&z(l)?l:null})(e);if(!r)return(0,f.logWarning)("Unknown tile type",{meta:{component:"TileFactory",keys:Object.keys(e)}}),null;let s=I[r].component,d=e[r],c=I[r].keyGenerator(d,l);return o.createElement(s,{content:d,index:l,key:c,columns:t,isAboveTheFold:i,moduleIndex:a,preloadedData:n})};var D=t(80320),E=t(82643),L=t(67570);let G=e=>{let{headline:l,subline:t,grid_slider_content:r,slider_grid_settings:s,layout_settings:d,visibility_settings:c,preloadedData:_,isAboveTheFold:m=!0,index:g}=e,{trackProductsViewed:x}=(0,j.Ay)(),p=(0,o.useRef)(void 0),{mobile_columns:f,tablet_columns:b,desktop_columns:k,display_as_slider_mobile:w,display_as_slider_tablet:y,display_as_slider_desktop:v,slides_per_view_mobile:A,slides_per_view_tablet:T,slides_per_view_desktop:$,enable_overflow:C,loop:I,arrows:z,dots:G,auto
1play:M}=s,{headline_color:O}=d,{getColumnClassName:R,getTabletColumnClassName:S,getDesktopColumnClassName:F,getTextColorClass:B}=(0,h.J)();(0,o.useEffect)(()=>{let e=_?.recommendQueryId,l=_?.productTilesData;if(!e||!l||p.current===e)return;p.current=e;let t=Object.values(l).map(e=>e.productId?.trim()).filter(e=>!!e);t.length&&x(t.map(e=>({objectID:e})))},[_?.recommendQueryId,_?.productTilesData,x]);let U=r||[];if(!U||!(0,L.Xg)(c))return null;r?.[0]?.hasOwnProperty("product_slider")&&_?.productTilesData&&Object.keys(_.productTilesData).length>0&&(U=Object.values(_.productTilesData).map(e=>({product_tile:{productId:e.productId}})));let H=`grid gap-24 ${R(f)} ${S(b)} ${F(k)}`,J=(0,u.A)([l?"pt-20":"",!w||y||v?"":"block md:hidden lg:hidden",w||!y||v?"":"hidden md:block lg:hidden",w||y||!v?"":"hidden md:hidden lg:block",w&&y&&!v?"block lg:hidden":"",w&&!y&&v?"block md:hidden lg:block":"",!w&&y&&v?"hidden md:block":"",w&&y&&v?"block":""]),V=(0,u.A)([!w||y||v?"":"hidden md:grid lg:grid",w||!y||v?"":"grid md:hidden lg:grid",w||y||!v?"":"grid md:grid lg:hidden",w&&y&&!v?"hidden lg:grid":"",w&&!y&&v?"hidden md:grid lg:hidden":"",!w&&y&&v?"grid md:hidden":"",w&&y&&v?"hidden":""]),W=(e,l)=>{let t=`tile_${l}`;return e.hasOwnProperty("category_tile")&&_?.categoryTilesData?_?.categoryTilesData[t]:e.hasOwnProperty("magazin_tile")&&_?.magazinTilesData?_?.magazinTilesData[t]:e.hasOwnProperty("product_tile")&&_?.productTilesData?_?.productTilesData[t]:e.hasOwnProperty("brand_tile")&&_?.brandTilesData?_?.brandTilesData[t]:void 0};return(0,i.jsx)(N,{queryId:_?.recommendQueryId,children:(0,i.jsxs)(E.A,{layoutSettings:d,className:"flex flex-col",wrapperClassName:C?"":"overflow-x-hidden",children:[l&&(0,i.jsx)(n.A,{layoutSettings:d,className:"mb-12",children:l}),t&&(0,i.jsx)("div",{className:(0,u.A)(["my-12",B(O)]),dangerouslySetInnerHTML:{__html:t||""}}),(v||y||w)&&(0,i.jsx)("div",{className:`relative ${J}`,children:(0,i.jsx)(a.A,{slidesPerView:A??T??$??4,spaceBetween:16,slidesPerGroup:(A&&Math.floor(A))??(T&&Math.floor(T))??($&&Math.floor($))??4,breakpoints:{[D.Hw]:{slidesPerView:A??1.3,slidesPerGroup:Math.floor(A??1),spaceBetween:8},[D.n5]:{spaceBetween:8,slidesPerView:T??3,slidesPerGroup:Math.floor(T??3)},[D.L_]:{spaceBetween:24,slidesPerView:$??4,slidesPerGroup:Math.floor($??4)}},loop:I||!1,arrows:z||!1,forceArrows:z||!1,dots:G||!1,autoplay:M||!1,loopAddBlankSlides:!0,detectSlideVisibility:!0,overflow:C||!1,children:U?.map((e,l)=>P(e,l,{mobile_columns:A,tablet_columns:T,desktop_columns:$},m,g,W(e,l)))})}),(!v||!y||!w)&&(0,i.jsx)("div",{className:`pt-20 ${H} ${V}`,children:U?.map((e,l)=>P(e,l,{mobile_columns:f,tablet_columns:b,desktop_columns:k},m,g,W(e,l)))})]})})}}}]); 2//# sourceMappingURL=6073-5c7a8344fc1df0e8.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.