1import{r as P,ao as nt,q,aX as ot,c as n,o as e,a as i,C as l,a2 as L,a3 as D,K as C,e as o,D as j,E as B,Y as K,b6 as lt,Z as V,b7 as at,af as E,aq as Y,$ as c,a1 as d,a_ as it,B as h,a4 as st,x as X,l as Z,aW as G,m as A,R as rt,ah as ut,J as I,aR as J,aT as ct,at as dt,am as gt,f as ht,y as mt,z as bt,b8 as vt,U as ft,M as yt,a8 as pt,aY as wt}from"#entry";import{_ as Q,a as kt}from"./BXzbBp7c.js";import F from"./XIrq9obg.js";import{a as Lt}from"./D1t_yPrx.js";import{_ as xt}from"./BEYypUmn.js";import{_ as $t}from"./C5PQOluh.js";import"./B1DSmGTb.js";import"./DQf_S3JJ.js";import"./CkJtqNYN.js";import"./B0G8u8KX.js";import"./ewXf8lY0.js";import"./BNJwGEGE.js";import"./DE8qzq99.js";import"./ChaLThV1.js";const Tt={class:"c-product-hero-slider relative"},St={class:"c-product-hero-slider__inner relative w-full flex flex-col >=375:gap-y-8 >=960:gap-y-16"},Mt={class:"<768:hidden w-full absolute top-[50%] translate-y-1/2 px-layout-margin z-[20]"},Pt={class:"c-product-hero-slider__slider-controls-wrapper relative w-full mx-auto mt-full z-[20] bottom-[30px] right-0"},Ct={class:"absolute left-0 top-0 flex items-center w-full justify-between"},Ht={__name:"ProductHeroSlider",props:{content:Object,layoutType:String,doctype:String,noCrop:{type:Boolean,default:!0}},setup(t){const a=t,m=P(null),{isSwiping:w,direction:$}=nt(m,{onSwipeEnd(){p.value||(w.value&&$.value==="left"&&r(b.value+1,!0),w.value&&$.value==="right"&&(b.value-1<0?r(a.content.images.length-1,!0,"left"):r(b.value-1,!0,"left")))}}),u=P("right"),b=P(0),v=P(!1),x=P(null),p=P(!1),r=(k,M,R)=>{R==="left"?u.value="left":u.value="right",M&&clearInterval(x.value);const N=Array.from(document.getElementsByClassName("c-product-hero-slider__nav-button"));N.forEach(s=>{p.value=!0,s.disabled=!0}),setTimeout(()=>{N.forEach(s=>{p.value=!1,s.disabled=!1})},900);const{length:H}=a.content.images;k<0?b.value=H-1:b.value=k>H-1?0:k},f=()=>{!v.value&&document.hasFocus()&&r(b.value+1)},S=P(!1);return q(()=>{x.value=ot(f,5e3),setTimeout(()=>{S.value=!0},1e3)}),(k,M)=>{const R=lt,N=at,H=Y;return e(),n("div",Tt,[i("div",St,[t.content.images&&t.content.images.length>1?(e(),n("div",{key:0,ref_key:"sliderWrapper",ref:m,class:"c-product-hero-slider__wrapper relative h-full overflow-hidden",onMouseover:M[0]||(M[0]=s=>v.value=!0),onMouseleave:M[1]||(M[1]=s=>v.value=!1)},[(e(!0),n(L,null,D(t.content.images,(s,y)=>(e(),n("div",{key:y,class:C(["c-product-hero-slider__contents absolute flex flex-col justify-end items-center w-full",[`c-product-hero-slider__contents__direction--${o(u)}`]])},[j(E,{name:"t-page-hero-slider__item-image"},{default:B(()=>[s&&y===o(b)?(e(),n("picture",{key:0,class:C(["absolute inset-0 w-full max-h-fit",{">=960:pl-56 >=1920:pl-64":t.noCrop}]),style:K(`--image-fit: ${t.noCrop?"contain":"cover"}`)},[j(R,{media:"(min-width: 1024px)",src:("useLocalFocus"in k?k.useLocalFocus:o(V))(s.cropUrl,s.localFocusPoint),width:s.width,height:s.height,sizes:"1024:100vw 1200:100vw 1440:100vw",ratio:t.noCrop?s.width/s.height:100/40},null,8,["src","width","height","ratio"]),j(R,{media:"(min-width: 960px AND max-width: 1024px)",src:("useLocalFocus"in k?k.useLocalFocus:o(V))(s.cropUrl,s.localFocusPoint),width:s.width,height:s.height,sizes:"1024:100vw 960:100vw",ratio:t.noCrop?s.width/s.height:100/60},null,8,["src","width","height","ratio"]),j(R,{media:"(min-width: 605px AND max-width: 960px)",src:("useLocalFocus"in k?k.useLocalFocus:o(V))(s.cropUrl,s.localFocusPoint),width:s.width,height:s.height,sizes:"605:100vw 960:100vw",ratio:t.noCrop?s.width/s.height:100/70},null,8,["src","width","height","ratio"]),j(R,{media:"(max-width: 605px)",src:("useLocalFocus"in k?k.useLocalFocus:o(V))(s.cropUrl,s.localFocusPoint),width:s.width,height:s.height,sizes:"605:100vw",ratio:t.noCrop?s.width/s.height:100/100},null,8,["src","width","height","ratio"]),j(N,{srcset:"",src:("useLocalFocus"in k?k.useLocalFocus:o(V))(s.cropUrl,s.localFocusPoint),alt:s.altText,width:s.width,height:s.height,sizes:"605:100vw",loading:"eager",fetchpriority:"high",format:"webp"},null,8,["src","alt","width","height"])],6)):l("",!0)]),_:2},1024)],2))),128))],544)):l("",!0),i("div",Mt,[i("div",Pt,[i("div",Ct,[j(H,{invert:"",class:"c-product-hero-slider__nav-button group border-white text-white hover:>=960:text-black hover:bg-transparent hover:>=960:bg-white active:<960:bg-white active:<960:duration-0",click:()=>r(o(b)-1,!0,"left")},{icon:B(()=>[...M[2]||(M[2]=[i("div",{class:"w-56 h-56 min-w-[56px] >=960:w-60 >=960:h-60 >=960:min-w-[60px] relative"}
1,[i("div",{class:"absolute top-1/2 left-21 group-hover:>=960:left-16 -translate-y-full w-10 h-1 bg-white group-hover:>=960:bg-black group-active:<960:bg-black group-active:<960:duration-0 rotate-45 duration-300 ease-in-out origin-bottom-left"}),i("div",{class:"absolute top-1/2 left-22 group-hover:>=960:left-17 group-hover:>=960:w-20 -translate-y-full w-15 h-1 bg-white group-hover:>=960:bg-black group-active:<960:bg-black group-active:<960:duration-0 duration-300 ease-in-out"}),i("div",{class:"absolute top-1/2 left-21 group-hover:>=960:left-16 -translate-y-full w-10 h-1 bg-white group-hover:>=960:bg-black group-active:<960:bg-black group-active:<960:duration-0 -rotate-45 duration-300 ease-in-out origin-top-left"})],-1)])]),_:1},8,["click"]),j(H,{invert:"",class:"c-product-hero-slider__nav-button group border-white text-white hover:>=960:text-black hover:bg-transparent hover:>=960:bg-white active:<960:bg-white active:<960:duration-0",click:()=>r(o(b)+1,!0,"right")},{icon:B(()=>[...M[3]||(M[3]=[i("div",{class:"w-56 h-56 min-w-[56px] >=960:w-60 >=960:h-60 >=960:min-w-[60px] relative"},[i("div",{class:"absolute top-1/2 right-21 group-hover:>=960:right-16 -translate-y-full w-10 h-1 bg-white group-hover:>=960:bg-black group-active:<960:bg-black group-active:<960:duration-0 -rotate-45 duration-300 ease-in-out origin-bottom-right"}),i("div",{class:"absolute top-1/2 right-22 group-hover:>=960:right-17 group-hover:>=960:w-20 -translate-y-full w-15 h-1 bg-white group-hover:>=960:bg-black group-active:<960:bg-black group-active:<960:duration-0 duration-300 ease-in-out"}),i("div",{class:"absolute top-1/2 right-21 group-hover:>=960:right-16 -translate-y-full w-10 h-1 bg-white group-hover:>=960:bg-black group-active:<960:bg-black group-active:<960:duration-0 rotate-45 duration-300 ease-in-out origin-top-right"})],-1)])]),_:1},8,["click"])])])])])])}}},jt={key:0,class:"c-vendor-selector"},Rt={class:"w-full <960:max-w-layout-max >=960:w-8col >=1200:w-6col h-fit z-20 p-24 >=960:p-56 >=1920:p-64 bg-current-primary text-current-color"},Nt={class:"flex justify-between items-center mb-36"},Bt={class:"text-header-md font-bold"},Dt={class:"c-vendor-selector__list flex flex-col"},Ot=["innerHTML"],Ut={class:"relative w-45 mr-6"},Vt={key:1,class:"w-full h-1 bg-current-color opacity-20"},It=["innerHTML"],Ft={__name:"VendorSelector",props:{vendors:Array,show:Boolean,dialogText:String,product:{type:Object,default:null}},emits:["closed"],setup(t,{emit:a}){const m=t,w=a,$=()=>{w("closed")};function u(){return typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():`txn-${Date.now()}-${Math.random().toString(36).slice(2,10)}`}function b(v){if(!m.product)return;const{pushPurchase:x}=X(),p=v?.name||v?.label||v?.altText||v?.logo?.altText||"";x({store:p,items:[m.product],transaction_id:u(),value:"1",price:"1"})}return(v,x)=>{const p=F,r=xt,f=st;return t.show?(e(),n("div",jt,[i("div",{class:"c-vendor-selector-inner",onClick:x[0]||(x[0]=()=>$())}),i("div",Rt,[i("div",Nt,[i("span",Bt,c(("useLabel"in v?v.useLabel:o(d))("chooseOnlineStore").value),1),i("button",{onClick:x[1]||(x[1]=()=>$())},[j(o(it),{class:"w-32 >=375:w-48"})])]),i("div",Dt,[(e(!0),n(L,null,D(t.vendors,(S,k)=>(e(),n(L,{key:k},[S.link?(e(),h(f,{key:0,to:S.link,class:"flex flex-shrink-0 justify-between items-center group py-20 <375:py-12 first-of-type:pt-0 last-of-type:pb-0",onClick:M=>b(S)},{default:B(()=>[S?.logo?.svgString?(e(),n("div",{key:0,class:"h-50 >=375:h-60 w-auto",innerHTML:S.logo.svgString},null,8,Ot)):S?.logo?.url?(e(),h(p,{key:1,src:S.logo.url,width:200,class:"h-50 >=375:h-60 w-auto",alt:S.altText},null,8,["src","alt"])):l("",!0),i("div",Ut,[j(r,{class:"absolute left-0 mt-4"})])]),_:2},1032,["to","onClick"])):l("",!0),k!==t.vendors.length-1?(e(),n("div",Vt)):l("",!0)],64))),128))]),t.dialogText?(e(),n("div",{key:0,class:"c-vendor-selector__dialog-text-box mt-50",innerHTML:t.dialogText},null,8,It)):l("",!0)])])):l("",!0)}}},zt={class:"c-product-hero w-full"},Et={class:C(["c-block-list__separator-padding w-full","c-block-list__separator-line bg-current-color"])},At={class:"c-product-hero__inner >=1920:w-full flex <960:flex-col-reverse"},qt={class:C(["w-12col >=960:w-5col >=960:min-w-5col >=1200:w-4col >=1200:min-w-4col","<960:mx-auto <960:max-w-layout-max flex flex-col py-md2","bg-current-color text-current-primary >=960:pr-layout-margin",">=1440:pr-48 >=960:py-48 >=960:pt-0 <375:pt-layout-margin"])},Wt={class:"flex flex-col"},_t={key:0,class:"text-caption-md-caps mb-12"},Gt=["innerHTML"],Jt={class:"text-caption-sm-caps uppercase font-bold"},Kt={key:2,class:"flex flex-col gap-5 mt-20"},Yt={key:0},Xt={key:1},Zt=["innerHTML"],Qt={class:"flex <960:justify-between >=605:gap-y-24 >=960:gap-y-0 flex-col >=605:flex-row-reverse >=960:flex-col gap-x-50"},te={key:0,class:"<960:hidden >=960:block flex items-center >=960:mb-36"},ee={key:1,class:"flex items-end"},ne={key:0,class:"<605:hidden >=960:hidden flex items-center >=960:mb-36"}
1,oe={key:1,class:"flex <605:flex-row-reverse justify-between items-center >=960:mt-36"},le={key:0,class:"<605:flex <605:justify-between"},ae={class:"flex gap-x-10"},ie={key:0,class:"w-48 >=375:w-64 >=960:w-80"},se=["innerHTML"],re={key:1,class:">=605:hidden flex items-center >=960:mb-36"},ue={class:"c-product-hero__image w-full >=960:w-8col >=1920:w-auto relative grow bg-current-secondary-4 overflow-hidden"},ce={class:"absolute z-overlay flex gap-layout-gutter top-layout-margin left-layout-margin >=960:top-48 >=960:left-48"},de={key:0,class:"w-48 >=375:w-64 >=960:w-80"},ge=["innerHTML"],he={__name:"ProductHero",props:{content:Object,umbMeta:Object,author:String,productNo:String,markings:Array,rating:Object,focusCode:String,locallySubmittedRating:Number},emits:["rating-submit"],setup(t,{emit:a}){const m=t,w=a,{site:$,brandSite:u}=Z(),b=P({});b.value=u?.productCatalogSettings||$?.productCatalogSettings;const v=P(!1),x=s=>{v.value&&(v.value=!1),s&&(v.value=!0),M.value<960&&(v.value?document.body.classList.add("mobile-menu-lock"):document.body.classList.remove("mobile-menu-lock"))},p=P(!1),r=P(!1),f=P([]),S=P({});G("productCatalogue",f);const k=()=>{const s=f.value.findIndex(y=>y.id==m.umbMeta.id);p.value&&s!==-1?(f.value.splice(s,1),p.value=!1):(f.value.push(S.value),p.value=!0),G("productCatalogue",f.value)},M=P(null);q(()=>{window.addEventListener("resize",R),R(),S.value={id:m.umbMeta.id,name:m.umbMeta.title,productNo:m.productNo},f.value.filter(y=>{y.id==m.umbMeta.id&&(p.value=!0)}),r.value=!0;const{pushViewItem:s}=X();s({item_name:H.value.item_name,item_category:H.value.item_category,item_brand:H.value.item_brand,packageSize:H.value.packageSize,relatedRecipe:""})}),rt(()=>{window.removeEventListener("resize",R)});const R=()=>{M.value=window.innerWidth};ut(f,(s,y)=>{y.length>s.length&&y.filter(O=>!s.some(U=>U.id===O.id))[0].id==m.umbMeta.id&&(p.value=!1),s.length===0&&(p.value=!1)});const N=I(m.umbMeta,"ModuleProductItem"),H=A(()=>{const s=(m.umbMeta?.title||m.content?.title||"").replace(/<[^>]*>/g,"");return{item_id:m.umbMeta?.id||m.productNo||"",item_name:s,item_category:m.content?.subLabel||"",item_brand:m.author||u?.siteName||$?.siteName||"",packageSize:m.content?.weight||""}});return(s,y)=>{const T=Q,O=Y,U=F,tt=Ht,et=Lt,W=Ft,_=ct;return e(),n(L,null,[i("div",zt,[i("div",Et,[i("div",At,[i("div",qt,[i("div",Wt,[t.content.subLabel?(e(),n("span",_t,c(t.content.subLabel),1)):l("",!0),t.content.title?(e(),n("h1",{key:1,class:"text-header-lg font-bold mb-12",innerHTML:t.content.title},null,8,Gt)):l("",!0),i("span",Jt,c(t.content.weight),1),o(b)?.hasPdfGenerator&&!o(u)&&(t.productNo||t.focusCode)?(e(),n("div",Kt,[t.productNo?(e(),n("span",Yt,c(("useLabel"in s?s.useLabel:o(d))("productNo").value)+" "+c(t.productNo),1)):l("",!0),t.focusCode?(e(),n("span",Xt,c(("useLabel"in s?s.useLabel:o(d))("productFocusCode").value)+" "+c(t.focusCode),1)):l("",!0)])):l("",!0),t.content.description?(e(),n("div",{key:3,class:"text-body-lg mt-20",innerHTML:t.content.description},null,8,Zt)):l("",!0)]),i("div",{class:C(["flex <605:flex-col-reverse >=960:flex-col grow flex-shrink-0 mt-md2",t.content.buyButton&&t.content.buyButton.length>0||t.content.portions&&t.content.portions.length>0?"justify-between":"justify-end"])},[i("div",Qt,[o(b)?.disableRating?l("",!0):(e(),n("div",te,[o($)?.recipeOverviewSettings?.disableRating?l("",!0):(e(),h(T,{key:0,"umb-meta":t.umbMeta,type:"product",rating:t.rating,"comments-disabled":!0,"locally-submitted-rating":t.locallySubmittedRating,onRatingSubmit:y[0]||(y[0]=g=>w("rating-submit",g))},null,8,["umb-meta","rating","locally-submitted-rating"]))])),t.content.buyButton&&t.content.buyButton.length>0?(e(),n("div",ee,[j(O,{class:"<605:w-full bg-current-primary hover:bg-current-color border-current-primary text-current-color hover:text-current-primary <605:mt-md2",text:("useLabel"in s?s.useLabel:o(d))("buyOnline").value,click:o(v)?()=>x(!1):()=>x(!0)},null,8,["text","click"])])):l("",!0)]),o(b)?.disableRating?l("",!0):(e(),n("div",ne,[o($)?.productCatalogSettings?.disableRating?l("",!0):(e(),h(T,{key:0,"umb-meta":t.umbMeta,type:"product",rating:t.rating,"comments-disabled":!0,"locally-submitted-rating":t.locallySubmittedRating,onRatingSubmit:y[1]||(y[1]=g=>w("rating-submit",g))},null,8,["umb-meta","rating","locally-submitted-rating"]))])),t.content?.portions?.length>0||!o(b)?.disableRating&&t.rating?(e(),n("div",oe,[t.content?.portions?.length>0?(e(),n("div",le,[i("div",ae,[(e(!0),n(L,null,D(t.content.portions,(g,z)=>(e(),n(L,{key:z},[g?.cropUrl||g?.svgString?(e(),n("div",ie,[g.mediaType!=="svg"?(e(),h(U,{key:0,class:"w-full h-auto",src:g.cropUrl,width:g.width,ratio:g.width/g.height,alt:g.altText},null,8,["src","width","ratio","alt"])):g.mediaType==="svg"?(e(),n("div",{key:1,class:"w-full h-auto",innerHTML:g?.svgString},null,8,se)):l("",!0)])):l("",!0)],64))),128))])])):l("",!0),o(b)?.disableRating?l("",!0):(e(),n("div",re,[o($)?.recipeOverviewSettings?.disableRating?l("",!0):(e(),h(T,{key:0,"umb-meta":t.umbMeta,type:"product",rating:t.rating,"comments-disabled":!0,"locally-submitted-rating":t.locallySubmittedRating,onRatingSubmit:y[2]||(y[2]=g=>w("rating-submit",g))},null,8,["umb-meta","rating","locally-submitted-rating"]))]))])):l("",!0)],2)]),i("div",ue,[t.content?.images&&t.content?.images.length===1?(e(),h(U,{key:0,class:"flex items-center justify-center w-full h-full max-h-full p-md2 <960:p-layout-margin",src:t.content.images[0]?.cropUrl,width:t.content.images[0]?.width,height:t.content.images[0]?.height,fit:"contain",ratio:t.content.images[0]?.width/t.content.images[0]?.height,sizes:"<960:100vw >=960:50vw >=1920:40vw >=2560:30vw",alt:t.content.images[0]?.altText,loading:"eager"},null,8,["src","width","height","ratio","alt"])):t.content?.images&&t.content?.images.length>1?(e(),h(tt,{key:1,content:t.content},null,8,["content"])):l("",!0),i("div",ce,[(e(!0),n(L,null,D(t.content.splashes,(g,z)=>(e(),n(L,{key:z},[g?.cropUrl||g?.svgString?(e(),n("div",de,[g.mediaType!=="svg"?(e(),h(U,{key:0,class:"w-full h-auto",src:g.cropUrl,width:g.width,ratio:g.width/g.height,alt:g.altText},null,8,["src","width","ratio","alt"])):g.mediaType==="svg"?(e(),n("div",{key:1,class:"w-full h-auto",innerHTML:g?.svgString},null,8,ge)):l("",!0)])):l("",!0)],64))),128))]),o(b)?.hasPdfGenerator&&!o(u)&&t.umbMeta.id&&t.productNo?(e(),h(et,{key:2,"is-added":o(p),class:C(["opacity-0 duration-300 delay-200 ease-in-out",o(r)&&"opacity-100"]),onToggleProduct:y[3]||(y[3]=()=>k())},null,8,["is-added","class"])):l("",!0)])])])]),o(M)>=960?(e(),h(_,{key:0},{default:B(()=>[(e(),h(J,{to:"#global-popup-overlay"},[j(E,{name:"t-vendors",duration:"500"},{default:B(()=>[t.content.buyButton&&t.content.buyButton.length>0&&o(v)?(e(),h(W,{key:0,id:"vendor-selector",class:C(o(N)),vendors:t.content.buyButton,show:o(v),"dialog-text":o(b)?.buyButtonDialogText,product:o(H),onClosed:y[4]||(y[4]=g=>x(!1))},null,8,["class","vendors","show","dialog-text","product"])):l("",!0)]),_:1})]))]),_:1})):(e(),h(_,{key:1},{default:B(()=>[(e(),h(J,{to:"body"},[j(E,{name:"t-vendors",duration:"500"},{default:B(()=>[t.content.buyButton&&t.content.buyButton.length>0&&o(v)?(e(),h(W,{key:0,id:"vendor-selector",class:C(o(N)),vendors:t.content.buyButton,show:o(v),"dialog-text":o(b)?.buyButtonDialogText,product:o(H),onClosed:y[5]||(y[5]=g=>x(!1))},null,8,["class","vendors","show","dialog-text","product"])):l("",!0)]),_:1})]))]),_:1}))],64)}}},me={class:"c-product-nutrition-list"},be={key:0,class:"flex flex-col"},ve={key:0,class:"text-header-sm font-bold mb-24 >=605:mb-28 >=960:mb-36"},fe={key:1,class:"flex flex-col w-full"},ye={key:0,class:"nutrition-item flex justify-between pb-16"},pe={class:"font-bold"},we={key:1,class:"nutrition-item flex justify-between pb-16 gap-10"},ke={class:"font-bold"},Le={key:0,class:"font-bold w-70 text-right"},xe={key:0,class:"nutrition-item flex justify-between pb-16 gap-10 pt-16 last-of-type:pb-0"},$e={class:"font-bold flex-grow"},Te={key:0,class:"w-70 text-right"},Se={key:2,class:"mt-30"},Me={key:0},Pe={class:"text-header-sm font-bold mb-24 >=605:mb-28 >=960:mb-28"},Ce={class:"flex flex-col w-full"},He={key:0,class:"nutrition-item flex justify-between pb-16"},je={class:"font-bold"},Re={key:1,class:"nutrition-item flex justify-between py-16"},Ne={class:"font-bold"},Be={__name:"ProductNutritionList",props:{content:Object,ingredients:Object,product:Object},setup(t){return(a,m)=>(e(),n("div",me,[t.ingredients?(e(),n("div",be,[t.ingredients?.nutrition.length>0?(e(),n("h2",ve,c(("useLabel"in a?a.useLabel:o(d))("nutritional").value),1)):l("",!0),t.ingredients?.nutrition.length>0?(e(),n("div",fe,[t.ingredients.kj||t.ingredients.kcal?(e(),n("div",ye,[i("span",pe,c(("useLabel"in a?a.useLabel:o(d))("nutri_ENER-").value),1),i("span",null,c(t.ingredients.kj)+" "+c(t.ingredients?.kj?.length>0?("useLabel"in a?a.useLabel:o(d))("nutri_KJO").value:"")+" "+c(t.ingredients?.kj?.length&&t.ingredients?.kcal?.length>0?"Â /Â ":"")+" "+c(t.ingredients.kcal)+" "+c(t.ingredients?.kcal?.length>0?("useLabel"in a?a.useLabel:o(d))("nutri_E14").value:""),1)])):l("",!0),("useLabel"in a?a.useLabel:o(d))("percentDailyValueHeadline")?.value?.length>0||("useLabel"in a?a.useLabel:o(d))("quantityPerServingHeadline")?.value?.length>0?(e(),n("div",we,[m[0]||(m[0]=i("div",{class:"flex-grow"},null,-1)),i("div",ke,c(("useLabel"in a?a.useLabel:o(d))("quantityPerServingHeadline")?.value),1),t.ingredients.nutrition.some(w=>w.nrv.length>0)?(e(),n("div",Le,c(("useLabel"in a?a.useLabel:o(d))("percentDailyValueHeadline")?.value),1)):l("",!0)])):l("",!0),(e(!0),n(L,null,D(t.ingredients.nutrition,(w,$)=>(e(),n(L,{key:$},[w?(e(),n("div",xe,[i("span",$e,c(("useLabel"in a?a.useLabel:o(d))(`nutri_${w.item}`).value),1),i("span",null,c(w.amount),1),t.ingredients.nutrition.some(u=>u.nrv.length>0)?(e(),n("span",Te,c(w.nrv),1)):l("",!0)])):l("",!0)],64))),128)),("useLabel"in a?a.useLabel:o(d))("percentDailyValueHelpText")?.value?.length>0||("useLabel"in a?a.useLabel:o(d))("quantityPerServingHelpText")?.value?.length>0?(e(),n("div",Se,[i("div",null,c(("useLabel"in a?a.useLabel:o(d))("quantityPerServingHelpText")?.value),1),t.ingredients.nutrition.some(w=>w.nrv.length>0)?(e(),n("div",Me,c(("useLabel"in a?a.useLabel:o(d))("percentDailyValueHelpText")?.value),1)):l("",!0)])):l("",!0)])):l("",!0),t.product.eanPerPiece||t.product.eanPerCarton||t.product.focusCode?(e(),n("div",{key:2,class:C(t.ingredients?.nutrition.length>0?"mt-layout-margin":"")},[i("h2",Pe,c(("useLabel"in a?a.useLabel:o(d))("productDataLabel").value),1),i("div",Ce,[t.product.eanPerPiece?(e(),n("div",He,[i("span",je,c(("useLabel"in a?a.useLabel:o(d))("eanPerP
1iece").value),1),i("span",null,c(t.product.eanPerPiece),1)])):l("",!0),t.product.eanPerCarton?(e(),n("div",Re,[i("span",Ne,c(("useLabel"in a?a.useLabel:o(d))("eanPerCarton").value),1),i("span",null,c(t.product.eanPerCarton),1)])):l("",!0)])],2)):l("",!0)])):l("",!0)]))}},De={class:"c-product-instruction-list"},Oe={class:"flex flex-col"},Ue={class:"max-w-[1100px] <960:w-12col <960:mx-auto"},Ve={key:0},Ie={class:"text-header-sm font-bold"},Fe=["innerHTML"],ze={key:1,class:"mt-md2"},Ee={class:"text-header-sm font-bold"},Ae=["innerHTML"],qe={key:2,class:"w-full h-full mt-md2"},We={key:3,class:"mt-md2"},_e={class:"text-header-sm font-bold"},Ge=["innerHTML"],Je={key:4,class:"mt-md2"},Ke={class:"text-header-sm font-bold"},Ye={key:0,class:"mt-24 flex flex-col"},Xe={key:0,class:"mb-5"},Ze={key:1,class:"mb-5 last-of-type:mb-0"},Qe={key:2,class:"mb-5 last-of-type:mb-0"},tn={class:"mt-24 flex flex-wrap gap-layout-gutter"},en=["innerHTML"],nn={key:5,class:"mt-md2"},on={class:"text-header-sm font-bold"},ln={class:"mt-24 flex flex-wrap gap-layout-gutter"},an=["innerHTML"],sn={key:6,class:"mt-md2"},rn={class:"text-header-sm font-bold"},un={class:"mt-24 flex flex-wrap gap-layout-gutter"},cn=["innerHTML"],dn={__name:"ProductInstructions",props:{content:Object,parentTheme:String},setup(t){const a=t,m=A(()=>{const u=[];return a.content?.product?.cookingVideo?.statistic&&u.push("statistic"),a.content?.product?.cookingVideo?.functional&&u.push("functional"),a.content?.product?.cookingVideo?.marketing&&u.push("marketing"),u}),w=A(()=>a.content?.product?.cookingVideo.details?.thumbnails[0].width>a.content.product.cookingVideo.details?.thumbnails[0].height?a.content.product.cookingVideo.details?.thumbnails[0].width/a.content.product.cookingVideo.details?.thumbnails[0].height:a.content.product.cookingVideo.details?.thumbnails[0].height/a.content.product.cookingVideo.details?.thumbnails[0].width),$=P(!1);return q(()=>{setTimeout(()=>{$.value=!0},1e3)}),(u,b)=>{const v=$t,x=gt,p=F;return e(),n("div",De,[i("div",Oe,[i("div",Ue,[t.content.ingredients?.description?(e(),n("div",Ve,[i("h2",Ie,c(("useLabel"in u?u.useLabel:o(d))("productIngredients").value),1),i("div",{class:"text-body-lg mt-24",innerHTML:t.content.ingredients?.description},null,8,Fe)])):l("",!0),t.content.product?.cooking?(e(),n("div",ze,[i("span",Ee,c(("useLabel"in u?u.useLabel:o(d))("productCooking").value),1),i("div",{class:"c-product-instruction-list__cooking mt-24",innerHTML:t.content.product.cooking},null,8,Ae)])):l("",!0),t.content?.product?.cookingVideo?.embed?.html?(e(),n("div",qe,[j(x,{"required-categories":o(m),class:"w-full h-full"},{default:B(()=>[t.content?.product?.cookingVideo?.type!=="spot"?(e(),h(v,{key:0,class:"aspect-video self-end",video:t.content?.product?.cookingVideo,theme:t.parentTheme},null,8,["video","theme"])):t.content?.product?.cookingVideo?.type==="spot"?(e(),n("div",{key:1,class:C(["c-product-instruction-list__video","relative w-full self-end"]),style:K(`aspect-ratio: ${o(w)}`)},[o($)?(e(),h(dt,{key:t.content?.product?.cookingVideo.details?.id,embed:t.content?.product?.cookingVideo.embed?.html},null,8,["embed"])):l("",!0)],4)):l("",!0)]),_:1},8,["required-categories"])])):l("",!0),t.content.product?.servingSuggestion?(e(),n("div",We,[i("span",_e,c(("useLabel"in u?u.useLabel:o(d))("productServingSuggestion").value),1),i("div",{class:"mt-24",innerHTML:t.content.product?.servingSuggestion},null,8,Ge)])):l("",!0),t.content.product?.storage?.length?(e(),n("div",Je,[i("span",Ke,c(("useLabel"in u?u.useLabel:o(d))("productStorage").value),1),t.content.product?.temperature?.min||t.content.product?.temperature?.max||t.content.product?.shelfLifeLabel?(e(),n("div",Ye,[t.content.product?.shelfLifeLabel!==""?(e(),n("span",Xe,c(t.content.product.shelfLifeLabel),1)):l("",!0),t.content.product?.temperature?.min!==""?(e(),n("span",Ze,c(("useLabel"in u?u.useLabel:o(d))("productTempMin").value)+" "+c(t.content.product.temperature.min)+c(("useLabel"in u?u.useLabel:o(d))("productTempPostfix").value),1)):l("",!0),t.content.product?.temperature?.max!==""?(e(),n("span",Qe,c(("useLabel"in u?u.useLabel:o(d))("productTempMax").value)+" "+c(t.content.product.temperature.max)+c(("useLabel"in u?u.useLabel:o(d))("productTempPostfix").value),1)):l("",!0)])):l("",!0),i("div",tn,[(e(!0),n(L,null,D(t.content.product.storage,(r,f)=>(e(),n(L,{key:f},[r?.cropUrl||r?.svgString?(e(),n(L,{key:0},[r.mediaType!=="svg"?(e(),h(p,{key:0,class:"h-60 max-w-fit",src:r.cropUrl,width:r.width,ratio:r.width/r.height,alt:r.altText},null,8,["src","width","ratio","alt"])):r.mediaType==="svg"?(e(),n("div",{key:1,class:"h-60 max-w-fit",innerHTML:r?.svgString},null,8,en)):l("",!0)],64)):l("",!0)],64))),128))])])):l("",!0),t.content.product?.commodity?.length>0&&t.content.product.commodity!=="N/A"?(e(),n("div",nn,[i("span",on,c(("useLabel"in u?u.useLabel:o(d))("productC
1ommodity").value),1),i("div",ln,[(e(!0),n(L,null,D(t.content.product.commodity,(r,f)=>(e(),n(L,{key:f},[r?.cropUrl||r?.svgString?(e(),n(L,{key:0},[r.mediaType!=="svg"?(e(),h(p,{key:0,class:"h-60 max-w-fit",src:r.cropUrl,width:r.width,ratio:r.width/r.height,alt:r.altText},null,8,["src","width","ratio","alt"])):r.mediaType==="svg"?(e(),n("div",{key:1,class:"h-60 max-w-fit",innerHTML:r?.svgString},null,8,an)):l("",!0)],64)):l("",!0)],64))),128))])])):l("",!0),t.content.product?.allergens?.length>0?(e(),n("div",sn,[i("span",rn,c(("useLabel"in u?u.useLabel:o(d))("productAllergens").value),1),i("div",un,[(e(!0),n(L,null,D(t.content.product.allergens,(r,f)=>(e(),n(L,{key:f},[r?.cropUrl||r?.svgString?(e(),n(L,{key:0},[r.mediaType!=="svg"?(e(),h(p,{key:0,class:"h-60 max-w-fit",src:r.cropUrl,width:r.width,ratio:r.width/r.height,alt:r.altText},null,8,["src","width","ratio","alt"])):r.mediaType==="svg"?(e(),n("div",{key:1,class:"h-60 max-w-fit",innerHTML:r?.svgString},null,8,cn)):l("",!0)],64)):l("",!0)],64))),128))])])):l("",!0)])])])}}},gn={class:"d-product-page__main-area flex flex-col items-center w-full"},hn={class:"d-product-page__content-inner w-full flex <960:flex-col-reverse"},mn={class:C(["w-12col >=960:w-5col >=960:min-w-5col >=1200:w-4col >=1200:min-w-4col <960:mx-auto","<960:max-w-layout-max flex flex-col bg-current-color >=960:pr-layout-margin","py-md2 >=960:pt-48 >=960:pb-64 >=1440:pr-48 text-current-primary"])},bn={key:0,class:"flex gap-layout-gutter flex-wrap <960:justify-center >=960:mt-6 mb-layout-margin"},vn={key:0,class:"h-60 >=960:h-80"},fn=["innerHTML"],yn={class:C(["w-full grow >=1920:w-auto >=960:px-layout-margin","py-md2 >=960:pt-48 >=960:pb-64 flex flex-col","text-current-primary >=1440:pr-48 bg-current-secondary-4"])},pn={inheritAttrs:!1},Bn=Object.assign(pn,{__name:"ProductPage",props:{hero:Object,productHero:Object,productData:Object,blocks:Array,umbMeta:Object,rating:Object,theme:String,sku:String,productNumber:String,brand:Object,hideRelatedProducts:{type:Boolean,default:!1},relatedFilter:{type:Object,default:()=>{}}},setup(t){const a=t,{site:m}=Z(),w=ht(),$=I(a.umbMeta,"ModuleProductItem"),u=I(a.umbMeta,"ModuleProductItemBody"),b=I(a.umbMeta,"ModuleProductItemRelated"),v=mt(w.fullPath),x=P(null);function p(f){x.value=f}const r=!m?.productCatalogSettings?.disableRating&&a.rating?.averageRating?{"@type":"AggregateRating",ratingValue:a.rating?.averageRating,ratingCount:a.rating?.totalRatings}:null;return bt([vt({"@id":`${v}#product`,name:a.umbMeta.title,image:{"@type":"ImageObject",url:a?.productHero?.images?.[0]?.cropUrl},description:a.productHero.description?a.productHero.description.replace(/(<([^>]+)>)/gi,""):"",brand:a?.brand?.name,mpn:a.productData?.product?.focusCode,sku:a?.sku,gtin14:a.productData?.product?.eanPerPiece,aggregateRating:r})]),(f,S)=>{const k=wt,M=he,R=F,N=Be,H=dn,s=Q,y=kt;return e(),n("div",{class:C([o($),"d-product-page"])},[t.umbMeta?(e(),h(k,{key:0,"umb-meta":t.umbMeta,content:t.hero,theme:o($)},null,8,["umb-meta","content","theme"])):l("",!0),i("div",gn,[t.productHero?(e(),h(M,{key:0,content:t.productHero,"umb-meta":t.umbMeta,author:t.brand?.name,"product-no":t.productNumber,markings:t.productData.markings,rating:t.rating,"focus-code":t.productData.product.focusCode,"locally-submitted-rating":o(x),onRatingSubmit:S[0]||(S[0]=T=>p(T))},null,8,["content","umb-meta","author","product-no","markings","rating","focus-code","locally-submitted-rating"])):l("",!0),t.productData!==null?(e(),n("div",{key:1,class:C([o(u),"d-product-page__content c-block-list__separator-padding","c-block-list__separator-line w-full bg-current-color"]),"data-intersection-element":""},[i("div",hn,[i("div",mn,[t.productData?.markings?.length>0?(e(),n("div",bn,[(e(!0),n(L,null,D(t.productData.markings,(T,O)=>(e(),n(L,{key:O},[T?.cropUrl||T?.svgString?(e(),n("div",vn,[T.mediaType!=="svg"?(e(),h(R,{key:0,class:"h-full w-auto",src:T.cropUrl,width:T.width,ratio:T.width/T.height,alt:T.altText},null,8,["src","width","ratio","alt"])):T.mediaType==="svg"?(e(),n("div",{key:1,class:"h-60 >=960:h-80 w-auto",innerHTML:T?.svgString},null,8,fn)):l("",!0)])):l("",!0)],64))),128))])):l("",!0),t.productData?(e(),h(N,ft(yt({key:1},{...t.productData})),null,16)):l("",!0)]),i("div",yn,[t.productData?(e(),h(H,{key:0,content:t.productData,"parent-theme":o(u)},null,8,["content","parent-theme"])):l("",!0)])])],2)):l("",!0),o(m)?.productCatalogSettings?.disableRating?l("",!0):(e(),h(s,{key:2,"umb-meta":t.umbMeta,type:"product",context:"page",rating:t.rating,"comments-disabled":!0,"locally-submitted-rating":o(x),onRatingSubmit:S[1]||(S[1]=T=>p(T))},null,8,["umb-meta","rating","locally-submitted-rating"])),t.blocks?(e(),h(pt,{key:3,"block-list":t.blocks,class:"w-full"},null,8,["block-list"])):l("",!0),t.hideRelatedProducts?l("",!0):(e(),h(y,{key:4,theme:o(b),class:C(o(b)),"current-id":t.umbMeta.id,type:"product",filter:t.relatedFilter,headline:("useLabel"in f?f.useLabel:o(d))("relatedProductsHeadline").value,label:("useLabel"in f?f.useLabel:o(d))("relatedProductsLabel").value},null,8,["theme","class","current-id","filter","headline","label"]))])],2)}}});
1export{Bn as default};
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.