PageSourceSearch

https://espressohouse.de/_next/static/chunks/pages/menu/[category]/[product]-a310854ca312764a.js

js espressohouse.de collected 2026-10-06 16:17:20 UTC 26,417 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[164],{1452:(e,l,t)=>{"use strict";function n(e){let l="\xe5\xe0\xe1\xe4\xe2\xe8\xe9\xeb\xea\xec\xed\xef\xee\xf2\xf3\xf6\xf4\xf9\xfa\xfc\xfb\xf1\xe7\xdf\xffœ\xe6ŕśńṕẃǵǹḿǘẍźḧ\xb7/_,:;",t=RegExp(l.split("").join("|"),"g");return null==e?"":e.toString().toLowerCase().replace(/\s+/g,"-").replace(t,e=>"aaaaaeeeeiiiioooouuuuncsyoarsnpwgnmuxzh------".charAt(l.indexOf(e))).replace(/&/g,"-and-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"").slice(0,200)}function a(e){return e?e.replace(/\-/g," "):null}t.d(l,{Yv:()=>n,r5:()=>a})},2171:(e,l,t)=>{"use strict";t.d(l,{A:()=>c});var n=t(7876),a=t(9995),r=t(5062),s=t(6795),i=t.n(s);function c(e){let{className:l,linkEls:t,currentPage:s,style:c}=e;return(0,n.jsx)("nav",{className:(0,a.A)(l,"text-h4"),style:c,"aria-label":"Breadcrumb",children:(0,n.jsxs)("ol",{className:i().breadcrumb,children:[t.map((e,l)=>(0,n.jsx)("li",{className:"flex items-center capitalize",children:e},l)),(0,n.jsx)("li",{"aria-current":"page",className:"ease max-w-[200px] cursor-pointer truncate border-b-2 border-b-white capitalize transition duration-150 hover:border-b-ehouse-dark-green lg:max-w-[400px]",children:s||(0,n.jsx)(r.A,{width:"150px"})})]})})}},2470:(e,l,t)=>{"use strict";t.d(l,{J:()=>d,k:()=>m});var n=t(8888),a=t(6853),r=t(223),s=t(4585);function i(){let e=(0,n._)(["\n  _id,\n  _type,\n  language,\n  openGraphImage {","}\n"]);return i=function(){return e},e}function c(){let e=(0,n._)(['*[\n    // get the document with $slug in $locale\n    slug.current == $slug && language == $locale]{\n      "doc": *[_id == ^._id] {\n        ',",\n        ","\n      }[0]\n  }[0].doc"]);return c=function(){return e},e}function o(){let e=(0,n._)(["\n  *[_type == $type && language == $locale]{\n    ",",\n    ","\n  }[0]\n"]);return o=function(){return e},e}let u=(0,s.A)(i(),a.b),d=e=>{let{pageProjection:l,extraParams:t}=e,n=(0,s.A)(c(),l,u);return function(e){let{slug:l,locale:a,country:s,isBaseLocale:i,baseLocale:c}=e;return{groq:n,params:{slug:l,locale:a,countryLocale:r.A.countryLanguages[s],isBaseLocale:i,baseLocale:c,...t||{}}}}},m=e=>{let{pageProjection:l,extraParams:t}=e,n=(0,s.A)(o(),l,u);return function(e){let{type:l,locale:a,country:s,isBaseLocale:i,baseLocale:c}=e;return{groq:n,params:{type:l,locale:a,countryLocale:r.A.countryLanguages[s],isBaseLocale:i,baseLocale:c,...t||{}}}}}},2657:(e,l,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/menu/[category]/[product]",function(){return t(6638)}])},5586:(e,l,t)=>{"use strict";t.d(l,{KU:()=>c});var n=t(3001),a=t(1937),r=t(5364);let s=(0,n.UU)({...a.$,perspective:"published"}),i=(0,n.UU)({...a.$,useCdn:!1,token:r.env.SANITY_API_TOKEN,perspective:"raw"}),c=e=>e?i:s},6638:(e,l,t)=>{"use strict";t.r(l),t.d(l,{__N_SSG:()=>eg,default:()=>ex});var n=t(8888),a=t(7876),r=t(7470),s=t(7693),i=t(4585),c=t(3274),o=t(2470),u=t(9099),d=t(8149),m=t(9209),h=t(5062),g=t(9995),x=t(893),p=t(8827),v=t.n(p),b=t(223),f=t(7123);function j(e){var l,t,n;let{className:r,menuMasterProduct:s,menuMasterProductArticle:i}=e,c=null==i||null==(l=i.name)?void 0:l.split(" ").some(e=>e.length>=10);return(0,a.jsxs)("div",{className:(0,g.A)(r,"eh-auto-margin relative lg:flex lg:items-center"),children:[(0,a.jsx)("section",{className:(0,g.A)("lg:w-1/2"),children:(0,a.jsx)("div",{className:"lg:max-w-[461px]",children:(0,a.jsx)(x.A,{ellipsis:c,className:"mb-10 lg:mb-0",headingClassName:"text-heading-product",theme:"light",heading:i?null!=(t=null==i?void 0:i.name)?t:"Missing name":(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(h.A,{className:"w-[7ch]"}),(0,a.jsx)(h.A,{className:"w-[5ch]"})]}),paragraph:(0,a.jsx)("span",{className:"text-b1",children:i?null!=(n=null==i?void 0:i.description)?n:(0,a.jsx)("span",{className:"text-red-500",children:!1}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(h.A,{className:"w-full"}),(0,a.jsx)(h.A,{className:"w-full"}),(0,a.jsx)(h.A,{className:"w-full"}),(0,a.jsx)(h.A,{className:"w-[8ch]"})]})}),type:"hero"})})}),(0,a.jsx)("div",{className:"relative h-full lg:w-1/2 lg:p-0 lg:pt-12",children:(0,a.jsxs)("div",{className:(0,g.A)("relative  h-[250px] w-full rounded-lg bg-ehouse-beige text-center lg:h-[408px] lg:w-[560px]"),children:[s&&(0,a.jsx)("div",{className:"flex h-full w-full justify-center",children:(0,a.jsx)("div",{className:"relative h-[250px] w-[250px] lg:h-[408px] lg:w-[410px]",children:s.image?(0,a.jsx)(v(),{priority:!0,src:new URL(s.image).href,layout:"fill",objectFit:"contain",alt:s.name,sizes:"(min-width: ".concat(b.A.breakpointDesktopPx,"px) 560px, 100vw")}):(0,a.jsx)("span",{className:"text-red-500",children:!1})})}),(0,a.jsx)(f.e,{show:!s,enter:"transition-opacity duration-0",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"transition-opacity duration-150",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,a.jsx)(h.A,{variant:"rectangular",className:"absolute inset-0 h-full w-full bg-ehouse-beige",width:"100%",height:"100%"})})]})})]})}var N=t(2850),y=t(5805),w=t(4232),P=t(8778);let A=e=>{let{choices:l,heading:t,setProductSelection:n,productSelection:r}=e;return(0,a.jsxs)("div",{className:"mb-6 lg:mb-12",children:[(0,a.jsx)("h3",{className:" my-4 text-h4 lg:mb-6",children:t}),null==l?void 0:l.map((e,t)=>{var s;let i=void 0!==(null==r?void 0:r.selectedPaths),c=null==r||null==(s=r.selectedPaths)?void 0:s.includes(e.path);return(0,a.jsx)("li",{className:"",children:(0,a.jsx)("label",{className:(0,g.A)("\n                mb-2 flex min-h-[64px] curs
1or-pointer items-center justify-between rounded-lg border-2  px-6\n                 text-center text-button lg:min-h-[72px]  ".concat(c?"bg-ehouse-dark-green text-white":"bg-white text-ehouse-dark-gray")),children:i?(0,a.jsxs)(a.Fragment,{children:[e.articleName,!1,(0,a.jsx)("input",{className:"w-fill peer h-full opacity-0",type:"radio",onClick:()=>{var t;let a=null==r||null==(t=r.selectedPaths)?void 0:t.filter(e=>!l.find(l=>l.path===e));n(l=>({...l,selectedPaths:[...a,e.path]}))}}),(0,a.jsx)(P.g9_,{className:"text-[35px] text-white lg:text-[33px]"})]}):(0,a.jsx)(h.A,{className:"w-[10ch]"})})},t)})]})},k=e=>{let[l,t]=(0,w.useState)(!1);return(0,a.jsx)(a.Fragment,{children:e.productSelection&&(0,a.jsxs)("button",{className:"mb-2 mr-2\n        flex\n        min-h-[64px] w-full cursor-pointer items-center justify-between rounded-lg border-2 px-6  text-center\n        text-button lg:min-h-[72px]  ".concat(l?"bg-ehouse-dark-green text-white":"bg-white text-ehouse-dark-gray"),onClick:()=>{t(!l),l?e.setProductSelection(l=>({...l,selectedPaths:[...l.selectedPaths.filter(l=>l!==e.path)]})):e.setProductSelection(l=>({...l,selectedPaths:[...l.selectedPaths,e.path]}))},children:[e.articleName,!1,(0,a.jsx)(P.g9_,{className:"text-2xl text-white"})]})})},S=e=>{let{choices:l,page:t,heading:n,setProductSelection:r,productSelection:s}=e;return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"mb-6 lg:mb-12",children:[(0,a.jsx)("h3",{className:"my-4 text-h4 lg:mb-6",children:n}),l.map((e,l)=>(0,a.jsx)(k,{...e,productSelection:s,setProductSelection:r},l))]})})},_=e=>{var l;let{selectedProductRecipeData:t,page:n,productSelection:r,setProductSelection:s}=e;if(!t)return(0,a.jsxs)("ul",{className:"mb-80",children:[(0,a.jsx)("h3",{className:" my-4 text-h4 lg:mb-6",children:null==n?void 0:n.customizeSubHeadingOne}),[1,2,3,4,5,6,7,8].map((e,l)=>(0,a.jsx)("li",{className:"",children:(0,a.jsx)("label",{className:"mb-2 flex  min-h-[64px] cursor-pointer items-center justify-between  rounded-lg border-2 bg-white px-6 text-center lg:min-h-[72px]",children:(0,a.jsx)(h.A,{className:"w-[12ch]"})})},l))]});let i=null==t||null==(l=t.choiceGroups)?void 0:l.filter(e=>e.customerMustSelect);return(0,a.jsx)(a.Fragment,{children:i.map((e,l)=>(0,a.jsx)(w.Fragment,{children:1===e.requiredNumberOfSelections?(0,a.jsx)("div",{className:"relative",children:(0,a.jsx)("ul",{children:(0,a.jsx)(A,{heading:null==n?void 0:n.customizeSubHeadingOne,...e,productSelection:r,setProductSelection:s})})}):(0,a.jsx)("div",{children:(0,a.jsx)(S,{heading:null==n?void 0:n.customizeSubHeadingOne,page:n,...e,productSelection:r,setProductSelection:s})})},l))})},C=e=>{let{buttonText:l,onClick:t,buttonIcon:n,isSelected:r}=e;return(0,a.jsx)("div",{className:"w-full",children:(0,a.jsxs)("button",{className:(0,g.A)("mr-1 h-full min-h-[138px] w-full rounded-lg border-2 px-2 py-4 text-button lg:min-h-[181px] lg:p-6",{"bg-ehouse-dark-green text-white":r}),onClick:t,children:[(0,a.jsx)("div",{style:{mixBlendMode:r?"plus-lighter":void 0},className:(0,g.A)("-my-2 flex justify-center",{invert:r}),children:n?(0,a.jsx)(v(),{height:100,width:100,src:n,alt:"alternative"}):null}),(0,a.jsx)("div",{className:"relative z-[1]",children:null!=l?l:(0,a.jsx)("span",{className:"text-red-500",children:!1})})]})})};var E=t(4819),M=t(1433),L=t(4897);let D=e=>{let{headline:l,content:t,defaultOpen:n}=e;return(0,a.jsx)(E.E,{defaultOpen:n,children:e=>{let{open:n}=e;return(0,a.jsxs)("div",{style:{boxShadow:"inset 0px -1px 0px rgba(0, 0, 0, 0.2)"},children:[(0,a.jsxs)(E.E.Button,{className:"flex w-full items-center justify-between rounded-none border-x-0 px-0 py-6 text-[20px] font-normal normal-case lg:py-11 lg:text-2xl ",children:[(0,a.jsx)("span",{className:"text-h4",children:l}),n?(0,a.jsx)(M.A,{}):(0,a.jsx)(L.A,{})]}),(0,a.jsxs)(E.E.Panel,{className:"pb-6 text-lg text-ehouse-black lg:text-xl",children:[!t&&(0,a.jsx)(h.A,{height:110}),t&&t.map((e,l)=>(0,a.jsx)("div",{children:e},l))]})]})}},"disclosure-allergens")};var O=t(367),G=t(5463),F=t(9075),H=t(6439),T=t(2214),I=t(26),q=t(9266);let R=(0,w.createContext)(null),B=Object.assign((0,O.FX)(function(e,l){let t=(0,G.B)(),{id:n="headlessui-label-".concat(t),passive:a=!1,...r}=e,s=function e(){let l=(0,w.useContext)(R);if(null===l){let l=Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(l,e),l}return l}(),i=(0,I.P)(l);(0,T.s)(()=>s.register(n),[n,s.register]);let c={ref:i,...s.props,id:n};return a&&("onClick"in c&&(delete c.htmlFor,delete c.onClick),"onClick"in r&&delete r.onClick),(0,O.XX)({ourProps:c,theirProps:r,slot:s.slot||{},defaultTag:"label",name:s.name||"Label"})}),{});var z=t(6345),U=t(6668),X=t(5285),$=t(4193),K=t(9129),Y=t(5069);let V=(0,w.createContext)(null);V.displayName="GroupContext";let Q=w.Fragment,W=Object.assign((0,O.FX)(function(e,l){let t=(0,G.B)(),{id:n="headlessui-switch-".concat(t),checked:a,defaultChecked:r=!1,onChange:s,name:i,value:c,form:o,...u}=e,d=(0,w.useContext)(V),m=(0,w.useRef)(null),h=(0,I.P)(m,l,null===d?null:d.setSwitch),[g,x]=(0,K.P)(a,s,r),p=(0,q._)(()=>null==x?void 0:x(!g)),v=(0,q._)(e=>{if((0,H.l)(e.currentTarget))return e.preventDefault();e.preventDefault(),p()}),b=(0,q._)(e=>{e.key===F.D.Space?(e.preventDefault(),p()):e.key===F.D.Enter&&(0,$.q)(e.currentTarget)}),f=(0,q._)(e=>e.preventDefault()),j=(0,w.useMemo)(()=>({checked:g}),[g]),N={id:n,ref:h,role:"switch",type:(0,U.c)(e,m),tabIndex:0,"aria-checked":g,"aria-labelledby":null==d?void 0:d.labelledby,"aria-describedby":null==d?void 0:d.describedby,onClick:v,onKeyUp:b,onKeyPress:f},y=(0,Y.L)();return(0,w.useEffect)(()=>{var e;let l=null==(e=m.current)?void 0:e.closest("form");l&&void 0!==r&&y.addEventListener(l,"reset",()=>{x(r)})},[m,x]),w.createElement(w.Fragment,null,null!=i&&g&&w.createElement(X.j,{features:X.O.Hidden,...(0,O.oE)({as:"input",type:"checkbox",hidden:!0,readOnly:!0,form:o,checked:g,name:i,value:c})}),(0,O.XX)({ourProps:N,theirProps:u,slot:j,defaultTag:"button",name:"Switch"}))}),{Group:function(e){var l;let[t,n]=(0,w.useState)(null),[a,r]=function(){let[e,l]=(0,w.useState)([]);return[e.length>0?e.join(" "):void 0,(0,w.useMemo)(()=>function(e){let t=(0,q._)(e=>(l(l=>[...l,e]),()=>l(l=>{let t=l.slice(),n=t.indexOf(e);return -1!==n&&t.splice(n,1),t}))),n=(0,w.useMemo)(()=>({register:t,slot:e.slot,name:e.name,props:e.props}),[t,e.slot,e.name,e.props]);return w.createElement(R.Provider,{value:n},e.children)},[l])]}(),[s,i]=(0,z.r)(),c=(0,w.useMemo)(()=>({switch:t,setSwitch:n,labelledby:a,describedby:s}),[t,n,a,s]);return w.createElement(i,{name:"Switch.Description"},w.createElement(r,{name:"Switch.Label",props:{htmlFor:null==(l=c.switch)?void 0:l.id,onClick(e){t&&("LABEL"===e.currentTarget.tagName&&e.preventDefault(),t.click(),t.focus({preventScroll:!0}))}}},w.createElement(V.Provider,{value:c},(0,O.XX)({ourProps:{},theirProps:e,defaultTag:Q,name:"Switch.Group"}))))},Label:B,Description:z.V}),J=e=>{let{headline:l,firstElement:t,perOneHundredGramText:n,perPortionText:r,selectedNutrientsPer100G:s,selectedNutrientsPerServing:i,perServingWeight:c}=e,[o,u]=(0,w.useState)(!1);return(0,a.jsx)(E.E,{children:e=>{let{open:d}=e;return(0,a.jsxs)("div",{style:{boxShadow:"inset 0px -1px 0px rgba(0, 0, 0, 0.2)"},children:[(0,a.jsxs)(E.E.Button,{className:"flex w-full items-center justify-between rounded-none border-x-0 px-0 py-6 text-[20px] font-normal normal-case lg:py-11 lg:text-2xl ".concat(t?"border-t":""),children:[(0,a.jsx)("span",{className:"text-h4",children:l}),d?(0,a.jsx)(M.A,{}):(0,a.jsx)(L.A,{})]}),(0,a.jsx)(E.E.Panel,{className:"pb-6 text-lg text-ehouse-black lg:text-xl",children:(0,a.jsxs)("div",{className:"w-full lg:w-1/2",children:[(0,a.jsx)(W,{checked:o,onChange:u,className:"w-full ",children:(0,a.jsxs)("span",{className:"flex h-[62px] w-full items-center rounded-full border-2",children:[(0,a.jsx)("div",{className:"z-10\n                  w-1/2 text-center transition duration-300 ease-in-out ".concat(o?"text-ehouse-dark-gray":"text-white"),children:n.toUpperCase()}),(0,a.jsxs)("div",{className:"z-10\n                  w-1/2 px-3 text-center leading-5 transition duration-300 ease-in-out ".concat(o?"text-white":"text-ehouse-dark-gray"),children:[r.toUpperCase()," ",c&&"(".concat(c,"G)")]}),(0,a.jsx)("span",{className:"absolute block h-[56px] w-1/2 transform rounded-full bg-ehouse-dark-green text-center text-white transition duration-300 ease-in-out lg:w-1/4  ".concat(o?"translate-x-[98%]":"")})]})}),(0,a.jsx)("div",{className:"mt-5 ",children:s&&i&&o?i.nutrients.map(e=>(0,a.jsxs)("div",{className:" flex justify-between text-black",children:[(0,a.jsx)("div",{children:e.text}),(0,a.jsx)("div",{className:"inline",children:e.localizedTextValue})]},e.text)):s&&s.nutrients.map(e=>(0,a.jsxs)("div",{className:" flex justify-between text-black",children:[(0,a.jsx)("div",{children:e.text}),(0,a.jsx)("div",{className:"inline",children:e.localizedTextValue})]},e.text))})]})})]})}},"disclosure-allergens")};function Z(e){var l,t,n,r,s,i;let{className:c,selectedProductData:o,nutritionHeading:u,tracesHeading:d,allergensHeading:m,ingredientsHeading:x,missingProductInformationMessage:p}=e;return(0,a.jsx)("div",{className:(0,g.A)(c,"eh-auto-margin relative lg:flex lg:flex-col lg:shadow-[inset_0px_1px_0px_rgba(0,0,0,0.2)]"),children:o?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(D,{headline:m,content:p?[p]:null!=(r=[null==o||null==(l=o.selectedNutrientsPer100G)?void 0:l.allergens].flatMap(e=>e))?r:[""],defaultOpen:!0}),o.defaultNutrientsPer100G.traces.length>
10&&(0,a.jsx)(D,{headline:d,content:p?[p]:null!=(s=[o.defaultNutrientsPer100G.traces].flatMap(e=>e))?s:[""],defaultOpen:!0}),(0,a.jsx)(D,{headline:x,content:p?[p]:null!=(i=[null==o||null==(t=o.selectedNutrientsPer100G)?void 0:t.ingredients].flatMap(e=>e))?i:[""]}),(0,a.jsx)(J,{headline:u,perPortionText:"Per Serving",perOneHundredGramText:"Per 100G",firstElement:!1,selectedNutrientsPer100G:null==o?void 0:o.selectedNutrientsPer100G,perServingWeight:null==o||null==(n=o.selectedNutrientsPerServing)?void 0:n.weight,selectedNutrientsPerServing:null==o?void 0:o.selectedNutrientsPerServing})]}):(0,a.jsx)(h.A,{variant:"rectangular",className:"h-18 my-12 w-full"})})}var ee=t(9243),el=t(2171),et=t(8230),en=t.n(et),ea=t(8206),er=t(1452),es=t(6853);function ei(){let e=(0,n._)(["\n  ...,\n  pageBlocks[] {\n    ...,\n    video { ..., asset->},\n    image { "," },\n    images[] { "," },  \n    backgroundImage { "," },\n    bottomImage { "," },\n    button {","},\n    buttonA {","},\n    buttonB {","},\n    bottomImageAdditionalParameters {\n    ...,\n    imageOnMobile { \n      ...,\n      asset->\n      }\n    }\n  }\n"]);return ei=function(){return e},e}function ec(e){var l,t,n,r,i,o,x,p,v,b,f,y,P,A,k,S,E,M,L;let{category:D}=(0,u.useRouter)().query,O=(0,ea.$8)(),G=null==O?void 0:O.categoryData,F=null==O?void 0:O.menuRouteSlug,[H,T]=(0,w.useState)(),[I,q]=(0,w.useState)(),R=null==O?void 0:O.menuMasterProduct,B=(0,w.useCallback)(e=>(q(void 0),T(e)),[]),z=(0,w.useMemo)(()=>{var e;return R?null==R||null==(e=R.articles)?void 0:e.find(e=>e.articleNumber===(null==H?void 0:H.articleNumber)):null},[R,null==H?void 0:H.articleNumber]),U="?languageCode=".concat(null==(l=e.page)?void 0:l.language),X=(0,d.Ay)(H?"".concat("https://myespressohouse.com/reapi/api/Recipe/v1","/").concat(H.articleNumber).concat(U).concat((null==(t=H.selectedPaths)?void 0:t.length)?"&selectedPaths=".concat(H.selectedPaths):""):null,m.GO);(0,w.useEffect)(()=>{if(R){var e;B(null==R||null==(e=R.articles)?void 0:e.find(e=>e.articleNumber===R.defaultArticleNumber))}},[R,B]),(0,w.useEffect)(()=>{var e,l;let t=null==X||null==(l=X.data)||null==(e=l.recipes)?void 0:e[0];if(t&&void 0===(null==H?void 0:H.selectedPaths)){let e=t.choiceGroups.filter(e=>e.requiredNumberOfSelections>0).flatMap(e=>e.choices.filter(e=>e.selected).map(e=>e.path));B({articleNumber:t.articleNumber,selectedPaths:e})}},[X,B,H]),(0,w.useEffect)(()=>{var e,l;let t=null==O||null==(l=O.recipeResponse)||null==(e=l.data)?void 0:e.recipes[0];if(t){let e=t.choiceGroups.filter(e=>e.requiredNumberOfSelections>0).flatMap(e=>e.choices.filter(e=>e.selected).map(e=>e.path));B({articleNumber:t.articleNumber,selectedPaths:e})}},[null==O||null==(n=O.recipeResponse)?void 0:n.data,B]),(0,w.useEffect)(()=>{var e;let l=null==O||null==(e=O.recipeResponse)?void 0:e.data;void 0!==l&&void 0!==l.recipes?q(l.recipes[0]):q(void 0)},[null==O||null==(r=O.recipeResponse)?void 0:r.data]),(0,w.useEffect)(()=>{let e=null==X?void 0:X.data;void 0!==e&&void 0!==e.recipes?q(e.recipes[0]):q(void 0)},[null==X?void 0:X.data]);let $=null==R?void 0:R.articles,K=null==I||null==(i=I.choiceGroups)?void 0:i.filter(e=>e.customerMustSelect),Y=!!$&&(null==$?void 0:$.length)<=1,V=!!$&&(null==$?void 0:$.length)<=1&&!!K&&(null==K?void 0:K.length)<1;$&&K&&((null==$?void 0:$.length)>1||null==K||K.length);let{page:Q,footer:W}=e,{containsHeading:J,containsInformationMessageHeading:et,containsInformationMessageParagraph:es,allergenLinkLabel:ei,url:ec,customizeSubHeadingOne:eo,customizeSubHeadingTwo:eu,pageBlocks:ed}=Q||{},em=(null==I||null==(o=I.choiceGroups)?void 0:o.length)&&I.choiceGroups.filter(e=>!0===e.customerMustSelect).length>1;return(0,a.jsxs)("div",{children:[(0,a.jsx)(s.Ay,{sanityNavbar:e.navbar}),(0,a.jsxs)("main",{children:[(0,a.jsx)(el.A,{className:"eh-auto-margin my-6  lg:mt-10",linkEls:[(0,a.jsx)(en(),{href:"/".concat(F),children:(null!=(E=null==(x=O.menuData)?void 0:x.name)?E:(0,er.r5)(F))||(0,a.jsx)(h.A,{className:"inline-block w-[10ch]"})},"15"),(0,a.jsxs)(en(),{href:"/".concat(F,"/").concat(D),children:[(0,a.jsx)("span",{className:"sm:hidden",children:"..."}),(0,a.jsx)("span",{className:"hidden sm:inline",children:(null!=(M=null==G?void 0:G.name)?M:(0,er.r5)(D))||(0,a.jsx)(h.A,{className:"inline-block w-[10ch]"})})]},"25")],currentPage:null==R?void 0:R.name}),(0,a.jsxs)("div",{className:"relative",children:[!1,(0,a.jsx)(j,{className:"mb-16 lg:mb-24",productRecipeData:I,menuMasterProduct:R,menuMasterProductArticle:z}),(0,a.jsx)("div",{children:(null==I?void 0:I.recipeStatus)==="OK"||(null==I?void 0:I.recipeStatus)===void 0?(0,a.jsx)("div",{children:(null==(p=e.page)?void 0:p.language)==="en"?(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"eh-auto-margin relative gap-x-32 lg:flex lg:items-center",children:(0,a.jsx)("h2",{className:"mb-6  text-heading-product lg:mb-10 ",children:J})}),(0,a.jsx)(ee.A,{containsInformationMessageHeading:et,containsInformationMessageParagraph:es,allergenLinkUrl:ei,url:ec,className:"mb-6 lg:mb-10"})]}),(0,a.jsx)("div",{className:"eh-auto-margin py-12 text-h4",children:null==(v=e.page)?void 0:v.missingProductInformationMessage})]}):(0,a.jsxs)("div",{children:[!V&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h2",{className:"eh-auto-margin mb-6 text-heading-product lg:mb-10 ",children:null!=(L=null==(b=e.page)?void 0:b.customizeHeading)?L:(0,a.jsx)(h.A,{className:"w-[10ch]"})}),(0,a.jsxs)("div",{className:"eh-auto-margin relative mb-16 md:flex lg:mb-24",children:[!Y&&(0,a.jsxs)("section",{className:(0,g.A)("box-border w-full md:pr-16 lg:w-1/2 lg:pr-32",{"lg:w-1/2":em}),children:[(0,a.jsx)("h3",{className:"my-4 text-h4 lg:mb-6",children:eo}),(0,a.jsx)("div",{className:"grid w-full auto-rows-fr grid-cols-2 gap-4",children:$&&$.map((e,l)=>(0,a.jsx)(C,{buttonText:e.navigationName,buttonIcon:e.navigationIcon,isSelected:!!H&&H.articleNumber===e.articleNumber,onClick:()=>{B(()=>({articleNumber:e.articleNumber,selectedPaths:void 0}))}},l))})]}),(0,a.jsx)("section",{className:(0,g.A)("lg:w-1/2",{"w-full":!em}),children:(0,a.jsx)(_,{setProductSelection:B,productSelection:H,selectedProductRecipeData:I,page:Q})})]})]}),(0,a.jsx)("div",{className:"eh-auto-margin relative gap-x-32 lg:flex lg:items-center",children:(0,a.jsx)("h2",{className:"mb-6  text-heading-product lg:mb-10 ",children:J})}),(0,a.jsx)(ee.A,{containsInformationMessageHeading:et,containsInformationMessageParagraph:es,allergenLinkUrl:ei,url:ec,className:"mb-6 lg:mb-10"}),(0,a.jsx)(Z,{nutritionHeading:null==(f=e.page)?void 0:f.nutrionsHeading,tracesHeading:null==(y=e.page)?void 0:y.tracesHeading,allergensHeading:null==(P=e.page)?void 0:P.allergensHeading,ingredientsHeading:null==(A=e.page)?void 0:A.ingredientsHeading,missingProductInformationMessage:(null==(k=e.page)?void 0:k.language)==="en"?null==(S=e.page)?void 0:S.missingProductInformationMessage:void 0,className:"mb-8 lg:mb-16",selectedProductData:I})]})}):(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"eh-auto-margin relative gap-x-32 lg:flex lg:items-center",children:(0,a.jsx)("h2",{className:"mb-6  text-heading-product lg:mb-10 ",children:J})}),(0,a.jsx)(ee.A,{containsInformationMessageHeading:et,containsInformationMessageParagraph:es,allergenLinkUrl:ei,url:ec,className:"mb-6 lg:mb-10"})]})}),(0,a.jsx)(N.A,{blockList:ed}
1)]})]}),(0,a.jsx)("footer",{children:(0,a.jsx)(c.A,{sanityFooter:W})})]})}let eo=(0,i.A)(ei(),es.b,es.b,es.b,es.b,y.m,y.m,y.m);ec.getQuery=(0,o.k)({pageProjection:eo});var eu=t(5538),ed=t(2867);function em(){let e=(0,n._)(['\n  {\n    "navbar": ',',\n    "footer": ',',\n    "page": ',',\n    "globals": ',",\n  }\n"]);return em=function(){return e},e}let eh=e=>(0,i.A)(em(),s.HB,c.O,e,eu.XH);var eg=!0;function ex(e){let{preview:l,data:t}=e,n=null==t?void 0:t.masterProductData,{data:s}=(0,ea.AD)(),{sanityData:i}=(0,r._f)({getRouteQuery:eh,data:t,isPreview:l,pageComponent:ec}),c=(0,w.useMemo)(()=>null==n?void 0:n.articles.find(e=>e.articleNumber===n.defaultArticleNumber),[n]),o=n?null==i?void 0:i.page.title.replace("{{productName}}",n.name):void 0;return(0,a.jsx)(eu.vs,{value:null==i?void 0:i.globals,children:(0,a.jsx)(ea.bE,{categoryData:null==t?void 0:t.categoryData,menuData:s,children:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(ed.bV,{title:o,description:c?c.shortDescription:void 0,openGraph:n?{images:[{url:n.image,alt:n.name}]}:void 0,noindex:!1,nofollow:!1}),(0,a.jsx)(ec,{navbar:null==i?void 0:i.navbar,footer:null==i?void 0:i.footer,page:null==i?void 0:i.page})]})||"unknown page component"})})}},6795:e=>{e.exports={breadcrumb:"Breadcrumb_breadcrumb__WeqTb"}},7470:(e,l,t)=>{"use strict";t.d(l,{HN:()=>i,_f:()=>s}),t(5586);var n=t(223);t(9209);var a=t(7753),r=t(9099);function s(e){let{getRouteQuery:l,data:t,isPreview:s,pageComponent:i}=e,c=(0,r.useRouter)(),o=t&&c.locale&&i?i.getQuery({type:t.type,locale:c.locale,country:c.query.country,isBaseLocale:c.locale===n.A.baseLocale,baseLocale:n.A.baseLocale}):null,u=(null==o?void 0:o.groq)?l(o.groq):void 0,{data:d}=(0,a.h)(u,{initialData:null==t?void 0:t.sanity,enabled:s&&!!(null==t?void 0:t.sanity),params:{isBaseLocale:c.locale===n.A.baseLocale,locale:c.locale,countryLocale:n.A.countryLanguages[c.query.country]}});return{errorPageCode:c.isFallback||(null==t?void 0:t.sanity)&&(null==d?void 0:d.page)?void 0:500,sanityData:d,PageComp:i}}function i(e){let{getRouteQuery:l,data:t,isPreview:s,pageComponents:i}=e,c=(0,r.useRouter)(),o=t?t.type[0].toUpperCase()+t.type.slice(1):void 0,u=o?i[o]:void 0,d=t&&c.locale&&u?u.getQuery({slug:t.slug,locale:c.locale,country:c.query.country,isBaseLocale:c.locale===n.A.baseLocale,baseLocale:n.A.baseLocale}):null,m=(null==d?void 0:d.groq)?l(d.groq):void 0,{data:h}=(0,a.h)(m,{initialData:null==t?void 0:t.sanity,enabled:s&&!!(null==t?void 0:t.sanity),params:{isBaseLocale:c.locale===n.A.baseLocale,slug:null==t?void 0:t.slug,locale:c.locale,countryLocale:n.A.countryLanguages[c.query.country]}});return{errorPageCode:c.isFallback||(null==t?void 0:t.sanity)?void 0:404,sanityData:h,PageComp:u}}},8206:(e,l,t)=>{"use strict";t.d(l,{$8:()=>m,AD:()=>d,bE:()=>h});var n=t(7876),a=t(4232),r=t(8149),s=t(9209),i=t(9099),c=t(1452),o=t(6001);let u=a.createContext(null),d=()=>{let{country:e,locale:l}=(0,o.A)();return(0,r.Ay)("".concat("https://myespressohouse.com/DoeApi/api/Market/v1","/menu/").concat(e,"/").concat(l),s.GO,{dedupingInterval:6e4})},m=()=>{let e=a.useContext(u);if(null===e)throw Error("useProductMenuContext must be used within a ProductMenuContextProvider");return e},h=e=>{let{children:l,menuData:t,categoryData:d}=e,m=(0,i.useRouter)(),{product:h}=m.query,g=(null==m?void 0:m.asPath.split("?")[0].split("/").filter(e=>!!e))[0],x=(0,a.useMemo)(()=>((e,l)=>{if(l&&e)return e.menu.flatMap(e=>e.masterProducts).find(e=>(0,c.Yv)(e.name)===l)||null})(t,h),[t,h]),p=(0,a.useMemo)(()=>((e,l)=>{if(l&&e)return e.masterProducts.find(e=>(0,c.Yv)(e.name)===l)||null})(d,h),[d,h]),v=null===x?null:p,{locale:b}=(0,o.A)(),f=(0,r.Ay)((null==v?void 0:v.defaultArticleNumber)?"".concat("https://myespressohouse.com/reapi/api/Recipe/v1","/").concat(v.defaultArticleNumber,"?languageCode=").concat(b):null,s.GO);return(0,n.jsx)(u.Provider,{value:{menuData:t,categoryData:d,recipeResponse:f,menuRouteSlug:g,menuMasterProduct:v},children:l})}}},e=>{e.O(0,[167,371,903,210,1,661,899,9,620,636,593,792],()=>e(e.s=2657)),_N_E=e.O()}]);

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.