PageSourceSearch

https://todayeethuis.nl/_next/static/chunks/5903-28b1aabd8bb89a34.js

js todayeethuis.nl collected 2026-10-04 23:49:01 UTC 47,607 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5903],{75903:function(e,n,t){t.d(n,{K:function(){return Zn},Z:function(){return On}});var r=t(63200),i=t(23642),o=t(39485),l=t(81467),c=t(33906),a=t(51776),d=t(28757),s=t(24439),u=t(49610),m=t(56451),f=t(14487),p=t(16947),h=t(17119),v=t(63155),g=t(72082),b=function(){var e=(0,o.KO)(u.p8),n=(0,r.Z)(e,2),t=n[0],i=n[1],d=(0,l.Dv)(u.IX),s=(0,c.useRouter)(),m=(0,g.Z)().isNightShop;return(0,a.useEffect)((function(){var e=m?"/products/":"/menu/",n=s.asPath.split(e)[1];n.includes("/")&&(n=n.split("/")[0]);var t=parseInt((0,v.H_)(n));i(t!==d)}),[s.asPath]),t},x=function(e){var n=(0,m.Z)(),t=(0,o.KO)(u.IX),i=(0,r.Z)(t,1)[0],c=(0,l.yW)(u.JB);(0,a.useEffect)((function(){void 0!==n&&void 0!==i||!1!==e||c(!0)}),[e])},j=t(70237),_=t(71252),y=t(6889),Z=t(92782),w=t(82446),O=t(27542),k=t(90103),C=t(44187),P=t(46777),I=t(64954),D=t(86088),S=t(45784),E=t(36734),F=(0,Z.default)(P.Z).withConfig({displayName:"Basket__Container",componentId:"sc-1yyizzj-0"})(["animation:"," 1.5s linear infinite;","{display:none;}"],(function(e){return e.animation?O.s:void 0}),(function(e){return e.theme.mediaQueries.lg})),z=function(e){var n=e.isWatch,t=void 0!==n&&n,i=e.onClick,c=(e.onChange,e.statuses,(0,o.KO)(u.IX)),s=(0,r.Z)(c,1)[0],m=(0,d.Z)("common").t,f=(0,d.Z)("menu").t,p=(0,l.yW)(u.JB),h=(0,l.yW)(u.KZ),g=(0,a.useState)(!1),b=g[0],x=g[1],j=(0,w.Z)().cart,_=(0,a.useMemo)((function(){return j.reduce((function(e,n){return e+n.quantity}),0)}),[j]),y=(0,I.Z)().overallTotal,Z=(0,D.Z)(),O=Z.hasDelivery,z=Z.hasTakeAway;(0,a.useEffect)((function(){!1===b&&x(!0)}),[j]),(0,a.useEffect)((function(){b&&setTimeout((function(){x(!1)}),1500)}),[b]);var W=O&&z?s===S.Gl.Delivery?m("ratherTakeaway"):m("ratherDelivery"):m(O?"editZipcode":"editBranch");return(0,E.jsxs)(F,{animation:b,justifyContent:"space-between",padding:"1.5rem",bg:"card_background_color",color:"card_text_color",position:"fixed",zIndex:100,left:"0",width:"100%",bottom:"0",borderTop:"solid 2px",borderColor:"button_background_color",children:[W&&(0,E.jsx)(C.Z,{bg:"card_background_color",color:"card_text_color",right:"0",top:"-4rem",position:"absolute",children:(0,E.jsx)(C.Z,{borderLeft:"solid 2px",borderRight:"solid 2px",borderTop:"solid 2px",borderColor:"button_background_color",padding:"1rem",fontSize:"1.4rem",cursor:"pointer",onClick:function(){p(!0),h(!1)},fontWeight:"900",color:"card_text_color",children:W})}),(0,E.jsx)(P.Z,{flexWrap:"wrap",gap:"1rem",children:t?(0,E.jsx)(k.Z,{onClick:function(){return p(!0)},children:f("iWantToOrder")}):(0,E.jsx)(k.Z,{onClick:i,children:f("seeOrder")})}),(0,E.jsxs)(C.Z,{pl:"3rem",borderLeft:"1px solid",borderColor:"button_background_color",children:[(0,E.jsx)(C.Z,{mb:"0.5rem",fontWeight:"bold",fontSize:"2rem",children:(0,v.T4)(y)}),(0,E.jsxs)(C.Z,{children:[_," ",f("product"),1===_?"":"en"]})]})]})},W=t(60427),R=t(27337),A=t(5748),N=t(45059),M=t(73134),T=(0,Z.default)(M.Z).withConfig({displayName:"Rotate",componentId:"sc-1fghuf-0"})(["",";transform:rotate(",");"],N.eR,(function(e){var n=e.degrees;return"".concat(n,"deg")})),L=t(54136),B=(0,Z.default)(C.Z).withConfig({displayName:"FilterButton__Dropdown",componentId:"sc-1abwi6h-0"})((function(e){e.theme;return{borderRadius:"0.2rem",boxShadow:"#000008 0px 2px 4px 0px",width:"100%",minWidth:"23rem",background:"white",zIndex:2,textTransform:"capitalize"}})),X=function(e){var n=e.hasFilters,t=e.options,r=void 0===t?[]:t,i=e.onChange,o=e.children,l=e.filter,c=(0,d.Z)("menu").t,s=(0,a.useRef)(),u=(0,a.useState)([]),m=u[0],f=u[1],p=(0,a.useState)(!1),h=p[0],g=p[1];(0,W.Z)(s,(function(){return g(!1)}));var b=function(){return g(!1)};return(0,E.jsxs)(C.Z,{ref:s,position:"relative",children:[n&&(0,E.jsx)(C.Z,{position:"absolute",top:"-1rem",left:"-0.5rem",onClick:function(){return f([]),i&&i([]),void b()},children:(0,E.jsx)(L.Z,{length:l.length})}),(0,E.jsx)(C.Z,{mb:{_:h?"0":"2rem",md:"none"},width:{_:"100%"},children:(0,E.jsx)(k.Z,{width:{_:"100%",md:"inherit"},onClick:function(){return g(!h)},children:(0,E.jsxs)(P.Z,{width:{_:"100%",md:"inherit"},alignItems:"center",justifyContent:{_:"space-between",md:"flex-start"},flexDirection:"row",children:[(0,E.jsxs)(C.Z,{mr:"1rem",children:[" ",o]}),(0,E.jsx)(T,{degrees:h?"0":"180",variants:"chevron",fill:"button_text_color",width:"1.3rem",height:"0.8rem",display:"block"})]})})}),(0,E.jsxs)(B,{mb:{_:h?"2rem":"0",md:"none"},display:h?"block":"none",position:{_:"relative",md:"absolute"},top:{md:"6rem"},padding:"2rem",children:[(0,E.jsx)(C.Z,{height:"100%",maxHeight:{md:"30rem"},overflowY:"auto",children:null===r||void 0===r?void 0:r.map((function(e,n){return(0,E.jsx)(C.Z,{mb:"1rem",children:(0,E.jsx)(R.Z,{checked:m.includes(e.id),onChange:function(){return f((0,v.w_)(m,e.id))},sizing:"small",variant:"secondary",children:(0,E.jsx)(C.Z,{color:"black",children:e.name})})},n)}))}),(0,E.jsxs)(C.Z,{children:[(0,E.jsx)(A.Z,{bg:"mid_grey",my:"2rem"}),(0,E.jsx)(k.Z,{onClick:function(){return i(m),void b()},children:c("save")})]})]})]})},K=t(63963),q=t(57628),V=t(16422),J=t(99029),Q=function(e){var n,t=e.items,i=(0,d.Z)("menu").t,c=(0,j.Z)().enable,s=(0,o.KO)(u.v1),f=(0,r.Z)(s,2),p=f[0],h=f[1],v=(0,l.Dv)(u.IX),g=(0,l.yW)(u.iN),b=(0,m.Z)(),x=(0,y.Z)(null===b||void 0===b?void 0:b.item_id,void 0,v).menu,_=function(){c(),h(!1),g(!1)};(0,a.useEffect)((function(){}),[]);return(0,E.jsx)(J.Z,{onExit:_,width:{_:"95%",md:"70rem"},show:p,children:(0,E.jsxs)(C.Z,{p:"2rem",children:[(0,E.jsx)(C.Z,{fontSize:"2rem",fontWeight:600,mb:"3rem",children:i("categoriesModal.title")}),(0,E.jsx)(V.X2,{children:null===x||void 0===x||null===(n=x.navigation_content)||void 0===n?void 0:n.filter((function(e){var n;return 0!==(null===(n=e.sub_content)||void 0===n?void 0:n.length)})).map((function(e){var n;return(0,E.jsx)(V.JX,{md:4,xs:12,children:(0,E.jsxs)(C.Z,{cursor:"pointer",onClick:function(){return function(e){var n=null===t||void 0===t?void 0:t.find((function(n){return parseInt(n.id)===e}));n&&(null===n||void 0===n||n.getBoundingClientRect().top,window.pageYOffset,n.scrollIntoView({behavior:"smooth",block:"start"}),h(!1))}(e.item_id)},mb:"2.5rem",children:[e.name," (",null===(n=e.sub_content)||void 0===n?void 0:n.length,")"]})},e.item_id)}))})]})})},Y=function(e){var n=e.show,t=e.setShow,r=e.labels,i=e.setFilter,o=e.filter,l=e.hasAllergen,c=(0,d.Z)("menu").t,s=(0,a.useRef)(),u=(0,j.Z)(),m=u.enable,f
1=u.disable;(0,W.Z)(s,(function(){return t(!1)}));var p=function(){t(!1)};return(0,a.useEffect)((function(){n?(f(),window.scrollTo({top:0,behavior:"auto"})):m()}),[n]),(0,E.jsxs)(C.Z,{ref:s,overflow:"auto",position:"fixed",bg:"background_color",color:"background_labels_text_color",width:"100%",zIndex:1e3,height:"calc(100% - 7.61rem)",top:"7.51rem",display:{_:n?"block":"none",md:"none"},padding:"1rem",children:[(0,E.jsx)(Zn,{filter:o,setFilter:i,labels:r,hasAllergen:l}),(0,E.jsx)(C.Z,{width:"100%",padding:"0 1rem",left:"50%",transform:"translate(-50%,-50%)",bottom:"0rem",position:"absolute",children:(0,E.jsx)(k.Z,{onClick:function(){return p()},justifyContent:"center",width:"100%",children:c("show")})})]})},H=t(56307),G=t(36398),$=t(37998),U=["src"];function ee(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function ne(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ee(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ee(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var te=function(e){var n=e.src,t=(0,G.Z)(e,U),r=(0,a.useState)(!0),i=r[0],o=r[1],l=(0,a.useRef)(),c=(0,a.useMemo)((function(){return!(0,v.Wv)(n||"")}),[n]);return(0,E.jsxs)(E.Fragment,{children:[i&&(0,E.jsx)(C.Z,{children:(0,E.jsx)($.Z,{size:100})}),(0,E.jsx)(C.Z,ne(ne({display:i?"none":"block",ref:l},t),{},{as:c?"img":"video",src:n,controls:!c,onLoad:function(){return o(!1)},children:c?void 0:(0,E.jsx)("source",{type:"video/mp4",src:n})}))]})},re=t(57654),ie={egg:"ei.png",gluten:"gluten.png",lupine:"lupine.png",milk:"milk.png",mustard:"mosterd.png",nuts:"noten.png",peanut:"pindas.png",scaled:"schaald.png",celery:"selderij.png",sesame:"sesamzaad.png",soja:"soja.png",fish:"vis.png",mollusks:"weekdieren.png",sulfur:"zwavel.png",wheat:"wheat.png"},oe=function(e){var n=e.img,t=e.maxWidth,r=void 0===t?"3rem":t,i=(0,d.Z)("menu").t;return(0,E.jsx)(C.Z,{display:"block",as:"img",width:"100%",maxWidth:r,src:"/images/".concat(ie[n.toLowerCase()]),alt:n,"data-tip":i(n)})},le=function(e){var n=e.allergies,t=void 0===n?[]:n,r=e.name,i=void 0!==r&&r,o=(0,d.Z)("menu").t;return(0,a.useEffect)((function(){re.Z.rebuild()}),[t]),(0,E.jsx)(E.Fragment,{children:null===t||void 0===t?void 0:t.map((function(e,n){var t=S.Gc.find((function(n){return n.id===e}));return(0,E.jsxs)(P.Z,{alignItems:"center",flexDirection:"row",justifyContent:"flex-start",children:[i&&(0,E.jsx)(C.Z,{width:"10rem",children:o(t.name)}),(0,E.jsx)(oe,{img:t.name.toLowerCase()},n)]},n)}))})},ce=t(48e3),ae=function(e){var n,t=e.labels,r=void 0===t?[]:t;return(0,E.jsx)(P.Z,{gap:"1rem",flexWrap:"wrap",alignItems:"center",children:null===(n=(0,v._2)(r))||void 0===n?void 0:n.map((function(e,n){return(0,E.jsx)(P.Z,{alignItems:"center",mr:"0.25rem",children:(0,E.jsx)(ce.Z,{children:e})},n)}))})},de=function(e){var n=e.hasImage,t=void 0!==n&&n,r=e.hasDetail,i=void 0===r||r,o=e.isDetailed,l=void 0!==o&&o,c=e.labels,a=void 0===c?[]:c,s=e.name,u=e.description,m=void 0===u?"":u,f=e.descriptionLength,p=void 0===f?0:f,h=e.onClick,v=(0,d.Z)("common").t;return(0,E.jsxs)(E.Fragment,{children:[0!==(null===a||void 0===a?void 0:a.length)&&(0,E.jsx)(C.Z,{mb:"1rem",children:(0,E.jsx)(ae,{labels:a})}),(0,E.jsx)(C.Z,{mt:t||0!==(null===a||void 0===a?void 0:a.length)?"0":"0.5rem",mb:"1rem",fontWeight:600,children:s}),(0,E.jsxs)(C.Z,{wordBreak:"break-all",lineHeight:"1.8rem",fontWeight:500,children:[l?m:"".concat(m.slice(0,p)).concat((null===m||void 0===m?void 0:m.length)>=p?"...":""," "),i&&!l&&(0,E.jsx)(C.Z,{fontWeight:600,display:"inline-block",cursor:"pointer",onClick:h,children:v("readMore")})]})]})},se=function(){var e,n=(0,j.Z)().enable,t=(0,o.KO)(u.Rc),i=(0,r.Z)(t,2),c=i[0],d=i[1],s=(0,l.yW)(u.iN),m=!1!==c?(0,v._2)(c.extended_media_value):[],f=(0,a.useMemo)((function(){if(!1!==c&&void 0!==c.image_cloudinary_id)return c.image_cloudinary_id.replace("h_128","h_1280").replace("w_128","w_1920").replace("fill","fit")}),[c]);return(0,E.jsx)(J.Z,{onExit:function(){s(!1),d(!1),n()},width:{_:"95%",md:"95rem"},show:!1!==c,children:!1!==c&&(0,E.jsxs)(C.Z,{p:"2rem",children:[(0,E.jsx)(de,{isDetailed:!0,hasDetail:!1,hasImage:!1,name:c.name,labels:c.label,description:null===c||void 0===c?void 0:c.description}),(null===(e=(0,v._2)(null===c||void 0===c?void 0:c.allergen))||void 0===e?void 0:e.length)>0&&(0,E.jsx)(H.Z,{defaultValue:!0,title:"Allergenen",variant:"tertiary",children:(0,E.jsx)(le,{name:!0,allergies:(0,v._2)(null===c||void 0===c?void 0:c.allergen)})}),(0,E.jsxs)(V.X2,{children:[f&&(0,E.jsx)(V.JX,{xs:12,md:6,children:(0,E.jsx)(te,{height:"auto",objectFit:"cover",width:"100%",maxWidth:"30rem",alt:"media",src:f})}),m.map((function(e,n){return(0,E.jsx)(V.JX,{xs:12,md:6,children:(0,E.jsx)(te,{minHeight:"30rem",width:"100%",alt:"media",src:e})},n)}))]})]})})},ue=Z.default.div.withConfig({displayName:"MenuStyles__Container",componentId:"sc-11r0dyu-0"})(['display:flex;justify-content:space-between;width:100%;max-width:114rem;padding:0 1rem;margin-left:auto;margin-right:auto;position:relative;&::before{content:"";display:',";width:100%;height:100%;background:",";
1opacity:0;position:absolute;z-index:10;left:0;}"],(function(e){e.theme;return e.isFetching?"inline-block":"none"}),(function(e){return e.theme.colors.dark_grey})),me=Z.default.div.withConfig({displayName:"MenuStyles__Content",componentId:"sc-11r0dyu-1"})(["width:100%;","{min-width:calc(100% - 28.5rem);}"],(function(e){return e.theme.mediaQueries.md})),fe=Z.default.div.withConfig({displayName:"MenuStyles__Side",componentId:"sc-11r0dyu-2"})(["width:100%;height:100%;overflow:auto;display:",";flex-direction:column;justify-content:flex-start;position:fixed;z-index:10000;max-width:100%;left:50%;transform:translate(-50%,-50%);top:50%;box-shadow:0 5px 10px #555;padding:1rem;background:",";color:",";","{transform:unset;top:unset;left:unset;box-shadow:unset;padding:unset;top:2rem;display:block;padding-right:",";padding-left:",";z-index:1;position:sticky;overflow:auto;}"],(function(e){return e.active?"flex":"none"}),(function(e){return e.theme.colors.background_color}),(function(e){return e.theme.colors.background_labels_text_color}),(function(e){return e.theme.mediaQueries.lg}),(function(e){return e.isArabic?"2rem":"unset"}),(function(e){return e.isArabic?"unset":"2rem"})),pe=((0,Z.default)(C.Z).withConfig({displayName:"MenuStyles__Inner",componentId:"sc-11r0dyu-3"})(["max-height:100vh;overflow:auto;display:",";position:fixed;z-index:10000;","{display:block;z-index:1;position:sticky;overflow:auto;}"],(function(e){return e.active?"block":"none"}),(function(e){return e.theme.mediaQueries.md})),function(e){var n=e.children,t=e.isFetching;return(0,E.jsxs)(ue,{isFetching:t,children:[n,t&&(0,E.jsx)(C.Z,{left:"50%",top:"50%",zIndex:"10",position:"fixed",transform:"translate(-50%,-50%)",children:(0,E.jsx)($.Z,{size:100})})]})}),he=t(24180),ve=function(e,n){var t,r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return{description:null!==(t=e.description)&&void 0!==t?t:"",quantity:i,parent_id:n,menu_item_id:e.item_id,note:null!==(r=e.note)&&void 0!==r?r:"",sub_content:[],price:e.price,name:e.name,is_18_plus:e.is_18_plus}},ge=t(76233),be=t(34114),xe=t(51365),je=t(75724),_e=t(31230),ye=function(e){var n,t=e.errors,r=e.name,i=void 0===r?"":r,o=e.showImage,l=void 0!==o&&o,c=e.showText,d=void 0===c||c,s=e.options,u=e.onChange,f=e.value,p=!(!t||!t[i]),h=(0,m.Z)();return(0,a.useEffect)((function(){re.Z.rebuild()}),[]),(0,E.jsxs)("div",{children:[s.map((function(e){var n=e.image_cloudinary_id?(0,v.$j)(e.image_cloudinary_id,null===h||void 0===h?void 0:h.item_id):void 0;return(0,E.jsxs)(C.Z,{mb:"1.25rem",children:[l&&n&&(0,E.jsx)(re.Z,{id:"tt-".concat(e.item_id),children:(0,E.jsx)(C.Z,{bg:"grey",width:"10rem",height:"10rem",as:n?"img":"div",src:n,objectFit:"cover"})}),(0,E.jsx)(R.Z,{onChange:function(){var n=(null===f||void 0===f?void 0:f.item_id)===e.item_id?void 0:e.item_id;u(void 0===n?-1:n)},checked:e.item_id===(null===f||void 0===f?void 0:f.item_id),name:e.name,children:(0,E.jsxs)(P.Z,{alignItems:"center",children:[l&&(0,E.jsx)(C.Z,{objectFit:"cover","data-tip":"","data-for":"tt-".concat(e.item_id),width:"2.7rem",bg:"grey",mx:"1.5rem",height:"2.7rem",borderRadius:"100%",as:n?"img":"div",src:n}),d&&(0,E.jsx)(C.Z,{children:e.name})]})})]},e.item_id)})),p&&(0,E.jsx)(_e.Z,{bg:"error",padding:"1rem",color:"white",mt:"1rem",children:null===(n=t[i])||void 0===n?void 0:n.message})]})},Ze=t(34868);function we(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Oe(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?we(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):we(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ke=function(e){return"(+ ".concat((0,v.T4)(e),")")},Ce=function(e){var n,t,r,i=e.type,o=e.toppings,l=e.onChange,c=e.errors,s=e.name,u=e.index,m=e.textAndImageProperty,f=void 0===m?je.f6.only_text:m,p=e.defaultValue,h=(0,d.Z)("common").t,g=(0,a.useMemo)((function(){return(0,v.Z8)(i)}),[i]),b=f===je.f6.only_image||f===je.f6.image_and_text,x=f!==je.f6.only_image,j=b&&g;(0,a.useEffect)((function(){p&&w(p.item_id)}),[]);var _=(0,a.useState)([]),y=_[0],Z=_[1],w=function(e){if(-1===e)return Z([]);var n=null===o||void 0===o?void 0:o.find((function(n){return n.item_id===e}));return Z((function(e){return g?[n]:(0,v.w_)(e,n)}))},O=null===c||void 0===c||null===(n=c.sub_content)||void 0===n?void 0:n[u],k=[];return k[s]=O,(0,a.useEffect)((function(){l(y)}),[y]),g?j?(0,E.jsx)(ye,{name:s,errors:k,showImage:b,showText:x,onChange:function(e){return w(e)},options:o,value:y[0]}):(0,E.jsxs)(Ze.Z,Oe(Oe(Oe({name:s,errors:k},p?{value:null!==(t=null===(r=y[0])||void 0===r?void 0:r.item_id)&&void 0!==t?t:-1}:{}),p?{}:{defaultValue:-1}),{},{onChange:function(e){return w(parseInt(e.target.value))},placeholder:h("makeAChooice"),children:[(0,E.jsx)("option",{value:-1,disabled:!0,children:h("makeAChooice")}),2===i&&(0,E.jsx)("option",{value:-1,children:h("noChooice")}),o.map((function(e){return(0,E.jsxs)("option",{value:e.item_id,children:[e.name," ",0!==parseFloat(e.price)&&ke(parseFloat(e.price))]},e.item_id)}))]})):(0,E.jsx)(V.X2,{nogutter:!0,children:o.map((function(e){var n;return(0,E.jsx)(V.JX,{xs:12,md:6,children:(0,E.jsx)(C.Z,{mb:"1.25rem",children:(0,E.jsxs)(R.Z,{image:b?null!==(n=null===e||void 0===e?void 0:e.image_cloudinary_id)&&void 0!==n?n:"":void 0,id:e.item_id,onChange:function(){return w(e.item_id)},sizing:"mini",variant:"secondary",checked:y.some((function(n){return n.item_id===e.item_id})),children:[x?e.name:""," ",0!==parseFloat(e.price)&&ke(parseFloat(e.price))]})})},e.item_id)}))})},Pe=(0,a.memo)(Ce),Ie=function(e,n,t){return(0,a.useMemo)((function(){return e.reduce((function(e,n){return e+parseFloat("".concat(n.price))}),parseFloat(t))*n}),[e,n,t])};function De(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Se(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};
1n%2?De(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):De(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Ee=function(e){var n=e.onExit,t=(0,d.Z)("menu").t,i=(0,h.Z)(),c=(0,a.useRef)(),s=(0,l.yW)(u.MT),m=(0,be.Z)().add,f=(0,o.KO)(u.fe),p=(0,r.Z)(f,1)[0],g=(0,a.useState)(1),b=g[0],x=g[1],j=(0,ge.Z)().setChosenFreeProducts,_=(0,he.cI)({shouldFocusError:!1}),y=_.formState.errors,Z=_.control,w=_.handleSubmit,O=(0,he.qo)({control:Z,name:"sub_content",defaultValue:[]}),I=!1!==p?p.sub_content:[],D=Ie(null===O||void 0===O?void 0:O.slice(0,I.length).flat(),b,!1!==p?null===p||void 0===p?void 0:p.price:"0");return(0,a.useEffect)((function(){!function(){var e,n=(null===y||void 0===y?void 0:y.sub_content)||[],t=null===n||void 0===n?void 0:n.filter((function(e){return 0!==Object.keys(e).length})),r=null===t||void 0===t?void 0:t[0],i=null===r||void 0===r||null===(e=r.ref)||void 0===e?void 0:e.name;if(i){var o=document.querySelector('*[name="'.concat(i,'"]'));o&&c.current.scrollTo({top:o.getBoundingClientRect().top})}}()}),[y]),(0,E.jsx)(J.Z,{ref:c,onExit:n,width:{_:"95%",md:"65rem"},children:(0,E.jsx)("form",{onSubmit:w((function(e){if(!1!==p){var t,r,i=p.sub_content.map((function(e){return e.item_id})),o=null===(t=e.sub_content)||void 0===t||null===(r=t.slice(0,null===i||void 0===i?void 0:i.length))||void 0===r?void 0:r.flat();o=o.filter((function(e){return i.includes(e.parent_id)}));var l=ve(Se({},p),p.parent_id,b);if(l=Se(Se({},l),{},{sub_content:o}),"free"===p.type){var c=(0,u.Cz)(l);j((function(e){return e.map((function(e){return"0"===e.price&&e.item_id===p.item_id&&c?Se(Se({},p),{},{price:"".concat(c),chosen_sub_content:o}):e}))}))}else s(l),m(l);n()}})),children:!1!==p&&(0,E.jsxs)(C.Z,{p:"4rem 4rem 3rem 4rem",children:[(0,E.jsx)(de,{isDetailed:!0,name:p.name,labels:p.label}),(0,E.jsx)(A.Z,{my:"2rem",bg:"light_grey"}),(0,E.jsx)(C.Z,{children:p.sub_content.map((function(e,n){return(0,E.jsxs)(C.Z,{children:[(0,E.jsx)(C.Z,{mb:"2rem",fontWeight:600,children:e.name}),(0,E.jsx)(he.Qr,{name:"sub_content.".concat(n),control:Z,rules:{required:{value:1===e.topping_content_type,message:t("isObligatory")}
1},render:function(t){var r,i=t.field,o=i.onChange,l=i.name;return(0,E.jsx)(Pe,{textAndImageProperty:e.item_image_and_text_properties,index:n,errors:y,name:l,onChange:function(n){return o(n.map((function(n){return Se(Se({},n),{},{parent_id:e.item_id,menu_item_id:n.item_id})})))},type:e.topping_content_type,toppings:e.sub_content,defaultValue:1===e.topping_content_type&&1===(null===(r=e.sub_content)||void 0===r?void 0:r.length)?e.sub_content[0]:void 0})}}),(0,E.jsx)(A.Z,{my:"2.5rem",bg:"light_grey"})]},e.item_id)}))}),(0,E.jsxs)(P.Z,{alignItems:"center",children:[(0,E.jsx)(C.Z,{fontSize:"2.75rem",fontWeight:"bold",children:(0,v.T4)(D)}),i&&(0,E.jsxs)(P.Z,{ml:"auto",alignItems:"center",children:["free"!==p.type&&(0,E.jsx)(xe.Z,{variants:"secondary",value:b,onIncreaseClick:function(){return x((function(e){return e+1}))},onDecreaseClick:function(){return x((function(e){return e-1>0?e-=1:e}))}}),(0,E.jsx)(C.Z,{ml:"1rem",children:(0,E.jsx)(k.Z,{type:"submit",children:t("order")})})]})]})]})})})},Fe=t(69487),ze=Z.default.div.withConfig({displayName:"Chapter__Image",componentId:"sc-1cik1d5-0"})(["position:absolute;bottom:0;right:0;width:35%;height:100%;background-image:url(",');background-repeat:no-repeat;background-size:cover;&::before{content:"";position:absolute;background:',";height:100%;width:25%;left:-1px;top:0;display:block;clip-path:polygon(0 0,100% 0,10% 100%,0 100%);}"],(function(e){return e.src}),(function(e){return e.theme.colors.category_background_color})),We=function(e){var n=e.children,t=e.title,r=void 0===t?"Gezonde specialiteiten":t,i=e.description,o=e.img;return(0,E.jsxs)(C.Z,{children:[(0,E.jsxs)(C.Z,{overflow:"hidden",position:"relative",p:"1.5rem 2rem 2.5rem 2rem",fontSize:"larger",borderRadius:"0.4rem",fontWeight:"bold",bg:"category_background_color",color:"category_text_color",mb:"2rem",children:[(0,E.jsx)(C.Z,{mb:"0.5rem",children:r}),i&&(0,E.jsx)(C.Z,{fontWeight:"300",fontSize:"1.6rem",width:"65%",children:i}),o&&(0,E.jsx)(ze,{src:o})]}),n]})},Re=t(36931),Ae=t(32332),Ne=t(41443),Me=["hasChildren","hasPricedAddons","sale","price"];function Te(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Le(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Te(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Te(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Be=(0,Z.default)(C.Z).withConfig({displayName:"ProductButton__Button",componentId:"sc-10khpe1-0"})(["width:100%;padding:1.25rem 1rem;border:none;background:",";border-radius:0.4rem;outline:none;",";&:hover,&:active,&:focus{background:",";}"],(function(e){return e.theme.colors.light_grey}),N.eR,(function(e){var n=e.theme,t=e.hasChildren;return(0,Ae.$n)(t?.9:.95,n.colors.button_background_color)})),Xe=function(e){var n=e.hasChildren,t=void 0===n||n,r=e.hasPricedAddons,i=void 0===r||r,o=e.sale,l=void 0!==o&&o,c=e.price,a=void 0===c?"3.5":c,s=(0,G.Z)(e,Me),u=(0,d.Z)("menu").t,m=(0,Ne.Z)();return(0,E.jsx)(Be,Le(Le({color:"black",hasChildren:t,cursor:t?"pointer":"unset"},s),{},{children:(0,E.jsxs)(P.Z,{justifyContent:"space-between",alignItems:"center",children:[i&&(0,E.jsx)(C.Z,{fontWeight:600,fontSize:"1.1rem",color:"black",children:u("from")}),(0,E.jsxs)(P.Z,{ml:m?"":"auto",mr:m?"auto":"",alignItems:"center",children:[(0,E.jsx)(C.Z,{mr:"1rem",color:"black",display:l?"block":"none",fontStyle:"italic",fontSize:"1.1rem",children:u("discountPrice")}),(0,E.jsxs)(C.Z,{mx:"1rem",fontWeight:"bold",children:["\u20ac",a]}),t&&(0,E.jsx)(M.Z,{width:"1rem",variants:"chevron-down",fill:"#000000"})]})]})}))},Ke=Z.default.div.withConfig({displayName:"RecommendedProduct__Recommended",componentId:"sc-1elk3yg-0"})(["display:flex;flex-wrap:wrap;align-items:center;color:",";background:",";padding:1rem;font-size:1.4rem;position:relative;",'{margin-top:2rem;filter:drop-shadow(0px 0px 2px #f0eae4);&::after{content:"";position:absolute;
1left:50%;top:0;margin-top:-23px;margin-left:-12px;display:block;border:solid 12px transparent;border-bottom-color:',";}}"],(function(e){return e.theme.colors.recommendation_card_text_color}),(function(e){return e.theme.colors.recommendation_card_background_color}),(function(e){return e.theme.mediaQueries.md}),(function(e){return e.theme.colors.recommendation_card_background_color})),qe=function(e){var n,t=e.onAddClick,r=e.name,i=e.image_cloudinary_id,o=e.price,c=e.item_id,s=(0,d.Z)("menu").t,m=(0,a.useState)(1),f=m[0],h=m[1],v=(0,p.Z)(),g=null===(n=(0,l.Dv)(u.Lf).find((function(e){return e.item_id===c})))||void 0===n?void 0:n.parent_id;return(0,E.jsxs)(Ke,{children:[i&&(0,E.jsx)(C.Z,{height:"auto",width:"100%",objectFit:"cover",maxWidth:"8rem",as:"img",src:i,alt:"Foto van ".concat(r)}),(0,E.jsxs)(P.Z,{width:"calc(100% - 11rem)",flexDirection:"column",fontWeight:"bold",ml:"2rem",children:[(0,E.jsx)(C.Z,{fontWeight:"light",fontSize:"1.1rem",mb:"1rem",children:s("alsoNice")}),(0,E.jsx)(C.Z,{mb:"2rem",children:r}),(0,E.jsxs)(P.Z,{justifyContent:"space-between",alignItems:"center",children:[(0,E.jsxs)(C.Z,{mr:"2rem",children:[" \u20ac",parseFloat(o).toFixed(2)]}),(0,E.jsxs)(P.Z,{children:[!v&&(0,E.jsx)(C.Z,{mr:"0.5rem",children:(0,E.jsx)(xe.Z,{value:f,onIncreaseClick:function(){return h((function(e){return e+1}))},onDecreaseClick:function(){return h((function(e){return e-1}))},variants:"secondary"})}),(0,E.jsx)(C.Z,{ml:{_:"auto",md:"1rem"},children:(0,E.jsx)(k.Z,{onClick:function(){return t({quantity:f,parent_id:g})},variant:"senary",children:s("add")})})]})]})]})]})},Ve=function(e){return(0,a.useMemo)((function(){var n,t,r=parseFloat(null===e||void 0===e?void 0:e.price),i=null===e||void 0===e||null===(n=e.sub_content)||void 0===n||null===(t=n.filter((function(e){return 1===e.topping_content_type})))||void 0===t?void 0:t.map((function(e){var n;return null===e||void 0===e||null===(n=e.sub_content)||void 0===n?void 0:n.reduce((function(e,n){return parseFloat(n.price)<parseFloat(n.price)?n:e}),{price:"0"})}));return i&&i.length>0&&(r=i.reduce((function(e,n){return e+parseFloat(n.price)}),r)),"".concat(r)}),[e])},Je=function(e){var n=(0,o.KO)(u.Lf),t=(0,r.Z)(n,1)[0];return{recommendedProduct:(0,a.useMemo)((function(){return null===t||void 0===t?void 0:t.find((function(n){return n.item_id===e}))}),[t,e])}},Qe=["index"];function Ye(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function He(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Ye(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ye(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Ge=Z.default.div.withConfig({displayName:"Product__ImageContainer",componentId:"sc-uliruf-0"})(["position:relative;width:13rem;height:13rem;cursor:",";&:hover{& > div{opacity:",";",";}& > #searchIcon{opacity:1;",";}}"],(function(e){return e.hasDetail?"pointer":"unset"}),(function(e){return e.hasDetail?.4:0}),N.eR,N.eR),$e=Z.default.img.withConfig({displayName:"Product__Image",componentId:"sc-uliruf-1"})(["display:block;width:13rem;height:13rem;object-fit:contain;border-radius:0.4rem;position:relative;"]),Ue=(0,Z.default)(P.Z).withConfig({displayName:"Product__Container",componentId:"sc-uliruf-2"})(["flex-wrap:wrap;z-index:0;& img{flex:1 0 50%;margin-bottom:0.5rem;}"]),en=(0,a.forwardRef)((function(e,n){e.index;var t=(0,G.Z)(e,Qe),i=t.parent_id,s=t.product,m=s.item_id,f=s.name,p=s.sub_content,g=s.image_cloudinary_id,b=s.description,x=s.allergen,j=s.label,_=s.status_enum,y=s.recommended_menu_item_id,Z=s.extended_media_value,w=Ve(t.product),O=(0,d.Z)("menu").t,I=(0,h.Z)(),D=(0,v._2)(x),S=(0,l.yW)(u.MT),F=(0,v._2)(Z),z=(0,l.Dv)(u.IX),W=(0,l.Dv)(u.Ro),R=(0,l.Dv)(u.ko),A=F.some((function(e){return(0,v.Wv)(e)})),N=(0,v.Bx)(Z),T=(0,a.useMemo)((function(){return(null===D||void 0===D?void 0:D.length)>0||(null===F||void 0===F?void 0:F.length)>0||""!==b&&(null===b||void 0===b?void 0:b.length)>=N||!1}),[b,D,Z]),L=(0,l.yW)(u.JB),B=(0,l.yW)(u.Rc),X=((0,c.useRouter)(),(0,o.KO)(u.p8)),K=(0,r.Z)(X,1)[0],q=11===_||!1,V=12===_||!1,J=(0,l.yW)(u.fe),Q=p&&0!==(null===p||void 0===p?void 0:p.length),Y=Q&&(null===p||void 0===p?void 0:p.some((function(e){var n;return(null===e||void 0===e||null===(n=e.sub_content)||void 0===n?void 0:n.some((function(e){return parseFloat(e.price)>0})))||!1}))),H=Je(y).recommendedProduct,$=(0,be.Z)().add,U=function(e,n){if(void 0===z||void 0===W||1===z&&""===R)return L(!0);var t=ve(e,n),r=He(He({},e),{},{parent_id:n});return I?K?L(!0):Q?J(r):(S(t),$(t)):J(r)};return(0,E.jsxs)(C.Z,{type:"product",id:m,height:{md:"calc(100% - 8rem)"},children:[(0,E.jsxs)(C.Z,{height:H?"auto":"100%",id:m,ref:n,children:[(0,E.jsx)(Re.default,{height:"100%",customMargin:"special",borders:"top",fluid:!0,children:(0,E.jsxs)(P.Z,{height:"100%",position:"relative",children:[g&&(0,E.jsxs)(Ge,{hasDetail:!0,onClick:function(){return B(He({},t.product))},children:[(0,E.jsx)($e,{src:g,alt:"Foto van product ".concat(f)}),(0,E.jsx)(C.Z,{bg:"black",left:"0",top:"0",width:"13rem",height:"13rem",position:"absolute",borderRadius:"0.4rem",opacity:0}
1),(0,E.jsx)(C.Z,{opacity:0,id:"searchIcon",position:"absolute",left:"50%",top:"50%",transform:"translate(-50%,-50%)",children:(0,E.jsx)(M.Z,{variants:A?"play":"search",size:"3rem",fill:"white"})})]}),(0,E.jsx)(C.Z,{flex:"1 1 auto",padding:"0 1rem",children:(0,E.jsx)(de,{descriptionLength:N,hasDetail:T,onClick:function(){T&&B(He({},t.product))},hasImage:void 0!==g,labels:j,name:f,description:b})})]})}),(0,E.jsxs)(P.Z,{position:"relative",justifyContent:"space-between",flexWrap:"wrap",alignItems:"center",minHeight:"7.2rem",p:"1.5rem",bg:"card_background_color",color:"card_text_color",children:[q||V?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(C.Z,{children:(0,v.T4)(w)}),(0,E.jsx)(C.Z,{fontSize:"small",color:"card_text_color",fontStyle:"italic",children:O(q?"soldOut":"notAvaibleATM")})]}):(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(C.Z,{flex:{_:"1 0 auto",md:"1 1 auto"},mr:{_:"1rem"},width:{md:"auto"},children:(0,E.jsx)(Xe,{hasChildren:Q,hasPricedAddons:Y,sale:!1,onClick:function(){return Q&&U(t.product,i)},price:"".concat((0,v.lb)(parseFloat(w)))})}),(0,E.jsx)(C.Z,{children:(!I&&Q||I)&&(0,E.jsx)(k.Z,{onClick:function(){return U(t.product,i)},variant:"secondary",children:O(I?"order":"see")})})]}),0!==(null===D||void 0===D?void 0:D.length)&&(0,E.jsx)(Ue,{position:{_:"relative",md:"absolute"},bottom:{md:"-2rem"},left:{md:"0.25rem"},alignItems:"center",flexDirection:"row",justifyContent:"flex-start",mt:{_:"1rem",md:"unset"},flex:{_:"1 1 100%",md:"unset"},children:(0,E.jsx)(le,{allergies:D||[]})})]})]}),H&&(0,E.jsx)(qe,He({onAddClick:function(e){var n=e.quantity,t=e.parent_id;H.sub_content&&0!==H.sub_content.length?U(H,t):$(ve(He({},H),t,n))}},H))]})})),nn=(0,a.memo)(en),tn=(0,a.forwardRef)((function(e,n){var t,r,i=e.item_id,o=(e.item_type,e.name),l=e.sub_content,c=e.image_cloudinary_id,a=e.filter,d=e.search,s=e.description;return(0,E.jsxs)(C.Z,{ref:n,children:[(0,E.jsx)(We,{description:s,img:c,title:o}),(0,E.jsx)(C.Z,{children:(0,E.jsx)(V.X2,{children:null===l||void 0===l||null===(t=l.filter((function(e){var n,t;return 0===(null===(n=a.labels)||void 0===n?void 0:n.length)||(null===(t=(0,v._2)(null===e||void 0===e?void 0:e.label))||void 0===t?void 0:t.some((function(e){return a.labels.includes(e)})))})))||void 0===t||null===(r=t.filter((function(e){var n;return!Array.isArray(null===e||void 0===e?void 0:e.allergen)||!(null!==(n=(0,v._2)(null===e||void 0===e?void 0:e.allergen))&&void 0!==n&&n.some((function(e){return a.allergies.includes(e)})))})))||void 0===r?void 0:r.filter((function(e){return""===d||e.name.toLowerCase().includes(d.toLowerCase())})).map((function(e,n){return(0,E.jsx)(V.JX,{xs:12,md:6,children:(0,E.jsx)(C.Z,{height:"100%",pb:{_:"0.5rem",md:"3rem"},children:(0,E.jsx)(nn,{parent_id:i,product:e,index:n})})},e.item_id)}))})})]})})),rn=(0,a.memo)(tn),on=t(84577),ln=["value","onExitClick"];function cn(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function an(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?cn(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):cn(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var dn=(0,Z.default)(C.Z).withConfig({displayName:"Search__Container",componentId:"sc-qax0a1-0"})(["transform:translateY(-40%);"]),sn=(0,Z.default)(on.Z).withConfig({displayName:"Search__Styled",componentId:"sc-qax0a1-1"})(["padding-left:4rem;background:",";"],(function(e){return e.theme.colors.light_grey})),un=function(e){var n=e.value,t=void 0===n?"":n,r=e.onExitClick,i=(0,G.Z)(e,ln),o=(0,d.Z)("menu").t;return(0,E.jsxs)(C.Z,{cursor:"pointer",position:"relative",children:[(0,E.jsx)(dn,{onClick:r,left:"1rem",top:"50%",position:"absolute",children:(0,E.jsx)(M.Z,{fill:"#000000",width:"1.5rem",variants:""===t?"search":"times"})}),(0,E.jsx)(sn,an({placeholder:o("search"),value:t},i))]})},mn=(0,a.memo)(un),fn=t(52738),pn=t(13493),hn=t(2469),vn=t(87020),gn=(t(30933),t(68770),(0,Z.default)(vn.tq).withConfig({displayName:"ScrollNav__CenteredSwiper",componentId:"sc-urzi4v-0"})(["align-items:center;.swiper-wrapper{align-items:center;}"])),bn=(0,Z.default)(C.Z).withConfig({displayName:"ScrollNav__Wrapper",componentId:"sc-urzi4v-1"})(["z-index:5;background:",";position:sticky;top:-1px;touch-action:pan-y;",";"],(function(e){return e.theme.colors.background_color}),N.eR),xn=(Z.default.div.withConfig({displayName:"ScrollNav__Inside",componentId:"sc-urzi4v-2"})(["touch-action:pan-y;display:flex;flex-wrap:nowrap;padding:1.5rem 1rem;
1align-items:center;overflow:auto;scroll-behavior:smooth;","{overflow:hidden;}"],(function(e){return e.theme.mediaQueries.md})),{value:!1,item_id:void 0,index:void 0}),jn=function(e){var n=e.items,t=e.categories,r=void 0===t?[]:t,i=(0,d.Z)("menu").t,o=(0,a.useMemo)((function(){return r.map((function(e){return e.item_id}))}),[r]),c=(0,a.useMemo)((function(){return n.map((function(e){return null===e||void 0===e?void 0:e.id}))}),[n]),s=(0,l.yW)(u.v1),m=(0,a.useState)(null),f=m[0],p=m[1],h=(0,a.useState)(xn),v=h[0],g=h[1],b=(0,hn.YD)({threshold:1}),x=b.ref,j=b.entry,_=(0,Z.useTheme)(),y=function(){!0!==v.value&&(null===n||void 0===n||n.map((function(e){var n=e,t=null===n||void 0===n?void 0:n.getBoundingClientRect();if(null!==t&&void 0!==t){var i=t.top,o=t.bottom;if(i<50&&o>=50){var l=r.findIndex((function(e,t){return e.item_id===parseInt(n.id)}));void 0!==f&&(null===f||void 0===f?void 0:f.activeIndex)!==l&&f.slideTo(l)}}})))};(0,a.useEffect)((function(){document.documentElement.style.scrollBehavior="auto"}),[]),(0,a.useEffect)((function(){return window.addEventListener("scroll",y,!1),function(){return window.removeEventListener("scroll",y,!1)}}),[f,o,c,v.value]);var w=(0,a.useMemo)((function(){return(null===j||void 0===j?void 0:j.intersectionRatio)<1}),[j]);return(0,a.useEffect)((function(){if(v.value){f.slideTo(v.index);var e=null===n||void 0===n?void 0:n.find((function(e){return parseInt(e.id)===v.item_id}));if(e){var t=(null===e||void 0===e?void 0:e.getBoundingClientRect().top)+window.pageYOffset+-49.6;window.scrollTo({top:t,behavior:"smooth"})}g(xn)}}),[v]),(0,E.jsx)(bn,{boxShadow:w?"0px 0px 5px rgb(0 0 0 / 30%)":"",color:_.colors.card_text_color,ref:x,children:(0,E.jsxs)(P.Z,{alignItems:"center",width:"100%",children:[(0,E.jsx)(C.Z,{display:{_:"none",md:"block"},children:(0,E.jsx)(fn.Z,{fill:"#000000",bg:_.colors.light_grey,left:!0,onClick:function(){return f.slideTo(f.activeIndex-1)}})}),(0,E.jsx)(C.Z,{onClick:function(){return s(!0)},cursor:"pointer",padding:"1rem",bg:"button_background_color",fontWeight:"bold",color:"button_text_color",ml:{md:"2rem"},children:i("all")}),(0,E.jsx)(gn,{observer:!0,onSwiper:p,slidesPerView:"auto",children:r.map((function(e,n){return(0,E.jsx)(vn.o5,{style:{width:"fit-content"},children:(0,E.jsx)(pn.Z,{onClick:function(){return t=e.item_id,void g({value:!0,item_id:t,index:n});var t},item_id:e.item_id,children:e.name})},n)}))}),(0,E.jsx)(C.Z,{display:{_:"none",md:"block"},children:(0,E.jsx)(fn.Z,{onClick:function(){return f.slideTo(f.activeIndex+=1)},fill:"#000000",bg:_.colors.light_grey})})]})})};function _n(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function yn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?_n(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):_n(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Zn=function(e){var n,t,r=e.filter,i=e.setFilter,o=e.labels,l=e.hasAllergen,c=(0,d.Z)("menu").t;return(0,E.jsxs)(E.Fragment,{children:[l&&(0,E.jsx)(X,{filter:r.allergies,hasFilters:0!==(null===(n=r.allergies)||void 0===n?void 0:n.length),onChange:function(e){return i((function(n){return yn(yn({},n),{},{allergies:e})}))},options:S.Gc,children:c("allergens")}),(null===o||void 0===o?void 0:o.length)>0&&(0,E.jsx)(X,{filter:r.labels,hasFilters:0!==(null===(t=r.labels)||void 0===t?void 0:t.length),onChange:function(e){return i((function(n){return yn(yn({},n),{},{labels:e})}))},options:o,children:c("filter")})]})},wn={labels:[],allergies:[]},On=function(e){var n,t,i,g=e.settings,Z=(0,d.Z)("menu").t,w=(0,d.Z)("common").t,O=((0,h.Z)(),(0,p.Z)()),I=(0,j.Z)(),D=I.enable,S=I.disable,F=(0,l.Dv)(u.IX),W=(0,a.useState)(!1),R=W[0],A=W[1],N=(0,a.useState)(wn),M=N[0],T=N[1],B=-1!==(0,l.Dv)(u.TB).id,X=(0,l.Dv)(u.Rc),V=(0,c.useRouter)(),J=b(),H=(0,m.Z)();x(J);var G=(0,y.Z)(null===H||void 0===H?void 0:H.item_id,void 0,F),U=G.menu,ee=G.isFetching,ne=G.isSuccess,te=G.isError,re=G.labels,ie=G.hasAllergen,oe=(0,a.useState)([]),le=oe[0],ce=oe[1],ae=null!==(n=U.navigation_content)&&void 0!==n?n:[],de=(0,o.KO)(u.KZ),ue=(0,r.Z)(de,2),he=ue[0],ve=ue[1],be=(0,a.useState)(""),xe=be[0],je=be[1],_e=(0,_.Z)(F),ye=_e.isOpenMutateAsync,Ze=_e.statuses,we=_e.isLoading,Oe=((0,f.Z)().discountCode,(0,ge.Z)().show,(0,l.Dv)(u.cY)),ke=((0,r.Z)(Oe,1)[0],(0,o.KO)(u.fe)),Ce=(0,r.Z)(ke,2),Pe=Ce[0],Ie=Ce[1],De=(0,l.yW)(u.iN),Se=(0,Ne.Z)();(0,a.useEffect)((function(){if(O)return he?S():D()}),[he,O]),(0,a.useEffect)((function(){H&&ye(H.item_id)}),[H]);var ze=(0,a.useMemo)((function(){var e,n;return null===ae||void 0===ae||null===(e=ae.filter((function(e){var n;return null===e||void 0===e||null===(n=e.sub_content)||void 0===n?void 0:n.some((function(e){var n,t;return 0===(null===(n=M.labels)||void 0===n?void 0:n.length)||(null===(t=(0,v._2)(null===e||void 0===e?void 0:e.label))||void 0===t?void 0:t.some((function(e){return M.labels.includes(e)})))}
1))})))||void 0===e||null===(n=e.filter((function(e){var n;return null===e||void 0===e||null===(n=e.sub_content)||void 0===n?void 0:n.some((function(e){var n,t;return 0===(null===(n=M.allergies)||void 0===n?void 0:n.length)||!(null!==(t=(0,v._2)(null===e||void 0===e?void 0:e.allergen))&&void 0!==t&&t.some((function(e){return M.allergies.includes(e)})))}))})))||void 0===n?void 0:n.filter((function(e){return""===xe||(e.name.toLowerCase().includes(xe.toLowerCase())||e.sub_content.find((function(e){return e.name.toLowerCase().includes(xe.toLowerCase())})))}))}),[xe,M.allergies,M.labels,ae]);(0,a.useEffect)((function(){var e,n=null===(e=document.getElementById("categories"))||void 0===e?void 0:e.childNodes;void 0!==n&&ce(Array.from(n))}),[ze]);var We=null===ae||void 0===ae?void 0:ae.filter((function(e){var n;return 0!==(null===e||void 0===e||null===(n=e.sub_content)||void 0===n?void 0:n.length)}));(0,a.useEffect)((function(){V.prefetch("/checkout","/checkout")}),[]);var Re=!(0,v.FX)(Pe);return(0,E.jsx)(K.Z,{title:Z("title"),settings:g,children:!ee||ne||te?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(Q,{items:le}),B&&(0,E.jsx)(q.Z,{}),!1!==X&&(0,E.jsx)(se,{}),(0,E.jsx)(Y,{filter:M,show:R,setShow:A,labels:re,setFilter:T,hasAllergen:ie}),(0,E.jsx)(z,{statuses:Ze,isWatch:J,onClick:function(){return ve(!0)},onChange:function(e){}}),Re&&(0,E.jsx)(Ee,{onExit:function(){D(),Ie(!1),De(!1)}}),(0,E.jsxs)(pe,{isFetching:!1,children:[(0,E.jsxs)(me,{children:[We.length>1&&""===xe&&0===(null===(t=M.labels)||void 0===t?void 0:t.length)&&0===(null===(i=M.allergies)||void 0===i?void 0:i.length)&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(jn,{items:le,categories:We}),(0,E.jsx)(C.Z,{mt:"5rem",borderBottom:"solid 0.5rem",borderColor:"light_grey"})]}),(0,E.jsxs)(P.Z,{justifyContent:"space-between",flexDirection:{_:"row",md:"row-reverse"},alignItems:"center",mt:"2rem",children:[(0,E.jsx)(C.Z,{display:{_:"none",md:"flex"},gap:"2rem",children:(0,E.jsx)(Zn,{filter:M,setFilter:T,labels:re,hasAllergen:ie})}),(0,E.jsx)(mn,{value:xe,onExitClick:function(){return je("")},onChange:function(e){return je(e.target.value)}}),(ie||(null===re||void 0===re?void 0:re.length)>0)&&(0,E.jsxs)(C.Z,{position:"relative",display:{_:"block",md:"none"},children:[M!==wn&&(0,E.jsx)(C.Z,{position:"absolute",top:"-1rem",left:"-0.5rem",onClick:function(){return T(wn)},children:(0,E.jsx)(L.Z,{})}),(0,E.jsx)(k.Z,{onClick:function(){return A(!0)},children:"Filter"})]})]}),(0,E.jsx)(C.Z,{id:"categories",mt:"3rem",overflowX:"hidden",children:null===ze||void 0===ze?void 0:ze.map((function(e,n){return(0,E.jsx)(C.Z,{scrollMarginTop:"5rem",id:e.item_id,mb:"2rem",children:(0,E.jsx)(rn,yn({search:xe,filter:M},e))},e.item_id)}))})]}),(0,E.jsx)(fe,{active:he,isArabic:Se,children:(0,E.jsx)(Fe.Z,{statuses:Ze,isLoading:we,onClick:function(){ye(H.item_id).then((function(){V.push("/checkout")})).then((function(){})).catch((function(e){s.Am.error(w("branchClosed"))}))},setSide:ve,side:he})})]})]}):(0,E.jsx)(P.Z,{justifyContent:"center",children:(0,E.jsx)($.Z,{color:"background_labels_text_color",size:50})})})}},13493:function(e,n,t){var r=t(23642),i=t(36398),o=t(32332),l=(t(51776),t(92782)),c=t(45059),a=t(44187),d=t(36734),s=["id","children","active","clicked"];function u(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function m(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?u(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):u(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var f=(0,l.default)(a.Z).withConfig({displayName:"ScrollNavItem__Item",componentId:"sc-q480ln-0"})(["font-weight:",";text-transform:uppercase;cursor:",";white-space:nowrap;position:relative;color:",";",";&:hover,&:active,&:focus{color:",";}"],(function(e){return e.theme.fontWeights.bold}),(function(e){e.theme;return e.active?"not-allowed":"pointer"}),(function(e){var n=e.theme;return e.active?(0,o.$n)(.5,n.colors.background_labels_text_color):n.colors.background_labels_text_color}),c.eR,(function(e){var n=e.theme;return e.active?(0,o.$n)(.5,n.colors.background_labels_text_color):n.colors.background_labels_text_color}));n.Z=function(e){var n=e.id,t=void 0===n?-1:n,r=e.children,o=e.active,l=void 0!==o&&o,c=(e.clicked,(0,i.Z)(e,s));return(0,d.jsx)(f,m(m({ml:{_:"3rem",md:"5rem"},id:t,active:l},c),{},{children:r}))}},48e3:function(e,n,t){var r=t(92782),i=t(88690),o=r.default.div.withConfig({displayName:"Tag",componentId:"sc-1u03prx-0"})([""," ",";"],(function(e){var n=e.theme;return"\n  text-transform: uppercase;\n    display: inline-block;\n    font-weight: ".concat(n.fontWeights.semiBold,";\n    font-size: ").concat(n.fontSizes.mini,";\n    color: ").concat(n.colors.button_text_color,";\n    padding: 0.4rem 0.5rem;\n    line-height: 0.75rem;\n")}),(function(e){var n=e.theme;return(0,i.bU)({variants:{primary:{background:n.colors.button_background_color,borderRadius:" 1.25rem"}}})}));o.defaultProps={variant:"primary"},n.Z=o},6889:function(e,n,t){var r=t(23642),i=t(77895),o=t(63200),l=t(17),c=t.n(l),a=t(81467),d=t(51776),s=t(14700),u=t(49610),m=t(58490),f=t(63155),p=t(86088),h=t(45784),v=t(99885),g=t(39485);function b(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function x(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};
1n%2?b(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):b(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e,n,t){var r=(0,p.Z)().isDeliveryActiveAndInuse,l=(0,a.Dv)(u.fr),b=(0,g.KO)(u.Lf),j=(0,o.Z)(b,2),_=j[0],y=j[1],Z=(0,v.Z)(),w=t||(r(1)?h.Vz.Delivery:r(2)?h.Vz.Takeaway:h.Vz.All),O=(0,f.f1)(null===Z||void 0===Z?void 0:Z.country)===+l?0:parseInt(l),k=(0,s.useQuery)(["menu",e,w,l],(0,i.Z)(c().mark((function n(){return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(n.t0=void 0!==e,!n.t0){n.next=5;break}return n.next=4,(0,m.r7)(e,0===O?0:O||1,w);case 4:n.t0=n.sent;case 5:return n.abrupt("return",n.t0);case 6:case"end":return n.stop()}}),n)}))),{initialData:n,enabled:void 0!==e&&void 0!==t,refetchOnMount:!1}),C=(0,d.useMemo)((function(){var e;if(void 0===k.data)return{information:void 0,navigation_content:[]};var n=k.data,t=null===n||void 0===n||null===(e=n.navigation_content)||void 0===e?void 0:e.flatMap((function(e){return null===e||void 0===e?void 0:e.sub_content.map((function(n){return x(x({},n),{},{parent_id:e.item_id})}))}));return y(t),n}),[k.data]),P=(0,d.useMemo)((function(){var e,n=new Set;return null===C||void 0===C||null===(e=C.navigation_content)||void 0===e||e.forEach((function(e){return e.sub_content.forEach((function(e){return(0,f._2)(null===e||void 0===e?void 0:e.label).forEach((function(e){return n.add(e)}))}))})),Array.from(n).map((function(e){return{name:e,id:e}}))}),[C]),I=(0,d.useMemo)((function(){return null===_||void 0===_?void 0:_.some((function(e){var n;return void 0!==(null===e||void 0===e?void 0:e.allergen)&&(null===e||void 0===e||null===(n=e.allergen)||void 0===n?void 0:n.length)>0}))}),[_]);return x(x({},k),{},{menu:C,labels:P,hasAllergen:I})}}}]);

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.