PageSourceSearch

https://www.danishcrown.com/_nuxt/Dzg2BbpS.js

js danishcrown.com collected 2026-10-01 10:46:02 UTC 30,086 bytes, 1 lines download raw bytes

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