1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7102],{7102:(e,i,t)=>{t.r(i),t.d(i,{TeaserLarge:()=>L});var n=t(37876),r=t(68831),a=t(9833),l=t(48837),o=t(14232),d=t(79879),s=t(7710),c=t(40861),p=t(81479),g=t(5646),u=t(97384);let h=g.Ay.div.withConfig({componentId:"sc-4cd0afd4-0"})(["width:100%;overflow:hidden;height:248px;border-radius:100%/100px;border-top-left-radius:0;border-top-right-radius:0;img{object-fit:cover;width:100%;height:100%;}@media (min-width:768px){width:50%;height:auto;min-height:500px;border-radius:150px/100%;}",""],e=>"product"===e.$type?` 2 img { 3 object-fit: contain; 4 } 5 `:""),m=g.Ay.div.withConfig({componentId:"sc-4cd0afd4-1"})(["min-width:100%;display:flex;flex-direction:column-reverse;background-color:var(--color-important,#fdf9f4);border-radius:10px;overflow:hidden;@media (min-width:768px){flex-direction:row;max-height:500px;border-radius:16px;:nth-child(even){flex-direction:row-reverse;","{border-top-left-radius:0;border-bottom-left-radius:0;}}:nth-child(odd){","{border-top-right-radius:0px;border-bottom-right-radius:0px;}}}"],h,h),f=g.Ay.div.withConfig({componentId:"sc-4cd0afd4-2"})(["width:100%;display:flex;flex-direction:column;justify-content:center;padding:0 16px;text-align:center;@media (min-width:768px){width:50%;padding:0 64px;text-align:left;}"]),k=(0,g.Ay)(u.Title).withConfig({componentId:"sc-4cd0afd4-3"})(["margin-top:24px;color:var(--color-accent,inherit);overflow:hidden;@media (min-width:768px){margin-top:0;}"]),x=g.Ay.span.withConfig({componentId:"sc-4cd0afd4-4"})(["color:var(--color-neutral,inherit);margin-bottom:12px;@media (max-width:768px){margin-top:16px;}"]),y=(0,g.Ay)(u.Text).withConfig({componentId:"sc-4cd0afd4-5"})(["margin-top:20px;color:var(--color-neutral,inherit);overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;white-space:pre-wrap;min-height:84px;@media (min-width:768px){-webkit-line-clamp:8;}"]),$=g.Ay.a.withConfig({componentId:"sc-4cd0afd4-6"})(["position:relative;"]);var w=t(70073);let L=({teasers:e})=>{let{pathTranslations:i}=(0,s.S)(),[t,g]=(0,o.useState)(),[u,L]=(0,o.useState)(!1),{themeName:b}=(0,s.S)();return(0,o.useEffect)(()=>{let i=new Date;g(e?.map(e=>{let t=[];return[...e.filter(e=>new Date(e.startDate||"")<i&&new Date(e.endDate||"")>i&&!e.isAlgolia),(t=e.filter(e=>new Date(e.startDate||"")<i&&new Date(e.endDate||"")>i&&e.isAlgolia))[Math.floor(Math.random()*t.length)]].filter(e=>void 0!==e)}))},[]),(0,o.useEffect)(()=>{L(!0)},[t]),(0,n.jsx)(r.Grid,{children:(0,n.jsx)(r.GridRow,{className:"mt-10",children:u?(0,n.jsx)(w.Slider,{slidesPerView:1,isFullWidth:!0,isStaticArrows:!0,children:t?.map(e=>(0,n.jsx)(n.Fragment,{children:e?.map((e,t)=>(0,n.jsxs)(m,{children:[(0,n.jsxs)(f,{children:[b&&(0,n.jsx)(x,{children:e.title}),(0,n.jsx)(k,{type:"md",tag:"h4",children:b&&e.heading?e.heading:e.title}),(0,n.jsx)(y,{type:"md",tag:"div",children:e.description}),(0,n.jsx)($,{href:c.Z.getInternalLinks({item:e?.link,pathTranslations:i})||e?.link?.url||"",className:b&&"flex justify-center md:justify-start",children:(0,n.jsx)(a.LiquidButton,{text:e?.link?.displayName||"Teaser",height:50,width:250,color:p.l.primary,textColor:p.l.white})})]}),(0,n.jsx)(h,{$type:e.type,children:(0,n.jsx)(l.A,{sources:d.M.getPictureSources(e.images),alt:e.title??""})})]},`teaser-${e.id??t}`))}))}):null})})}},40861:(e,i,t)=>{t.d(i,{Z:()=>r});var n=t(24654);let r={getInternalLinks:({item:e,pathTranslations:i,parentLink:t,isHeroBanner:r,locale:a})=>{let l;if(e?.internalLink&&e?.internalLink?.__typename==="GenericPage")"Generic"===e.internalLink.type?l=`${i?.genericPage}${e?.internalLink?.slug}`:e.internalLink.type&&(l=`${i[n.h.lowerCaseFirstLetter(e.internalLink.type)]}${e.internalLink.subPath?e.internalLink.subPath.substring(1):""}${e.internalLink.slug}`);else if(e?.internalLink&&e?.internalLink?.__typename==="ProductSubcategoryPage"){let n,a;l=r?(n=e?.internalLink?.productCategoryPage?.slug||e?.internalLink?.productSubcategoryPage?.productCategoryPage?.slug,a=e?.internalLink?.productSubcategoryPage?.slug,`${i.productsSubCategory}${t?`${t}/`:""}${n?`${n}/`:""}${a?`${a}/`:""}${e?.internalLink.slug}`):`${i.productsSubCategory}${t?`${t}/`:""}${e?.internalLink.slug}`}else if(e?.internalLink&&e?.internalLink.__typename==="ProductCategoryPage")l=`${i?.productsCategory}${e?.internalLink.slug}`;else if(e?.internalLink&&e?.internalLink.__typename==="RecipeLandingPage")l=i?.recipes?.match(/\/([^/]*)\/$/)?.[1]===e?.internalLink.slug?i?.recipes:`${i?.recipes}${e?.internalLink.slug}`;else if(e?.internalLink&&e?.internalLink.__typename==="ProductLandingPage")l=i?.products?.match(/\/([^/]*)\/$/)?.[1]===e?.internalLink.slug?i?.products:`${i?.products}${e?.internalLink.slug}`;else if(e?.internalLink&&e?.internalLink.__typename==="RecipeCategory")l=`${i?.recipesCategory}${e?.internalLink.slug}`;else{let n,a;e?.internalLink&&e?.internalLink.__typename==="RecipeSubcategory"&&(l=r?(n=e?.internalLink?.recipeCategory?.slug||e?.internalLink?.recipeSubcategory?.recipeCategory?.slug,a=e?.internalLink?.recipeSubcategory?.slug,`${i?.recipesSubCategory}${t?`${t}/`:""}${n?`${n}/`:""}${a?`${a}/`:""}${e?.internalLink.slug}`):`${i.recipesSubCategory}${t?`${t}/`:""}${e?.internalLink.slug}`)}let o=a?`${a}/${l}`.replace(/\/{2,}/g,"/"):l;return o?o.replace(/\/+$/,""):o},sanitizeUrl:e=>e.replace(/(?<!https?:)\/{2,}/g,"/")}}}]); 6//# sourceMappingURL=7102.1ab18ca51528a320.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.