1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8939],{19873:function(e,t,n){"use strict";var r,i=n(52983);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}t.Z=function(e){return i.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 8"},e),r||(r=i.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m1 1 6 6 6-6"})))}},41512:function(e,t,n){"use strict";var r=n(21963);let i=(0,r.cn)(!1);t.Z=i},48939:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return tl}});var r,i,a,l,o,s,c,u,d,m,h,f,p,g,v,_,y,w,b,k,x,j,M,S,C,E,T,N,O,P,H=n(97458),L=n(31536),B=n(46402),I=n(13132),A=n(98414),F=n.n(A),W=n(52983),K=n(60879),Z=n(41512),R=function(){return(R=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function D(e,t,n,r,i){var a=Math.min(Math.max(e+n-(n>0?Math.max(0,Math.min(n,-t)):Math.min(0,Math.max(n,-t))),r),i)-Math.min(Math.max(e,r),i);return[a,n-a]}function V(e,t,n){return 0===Math.abs(t)&&Math.abs(n)>0||Math.sign(t)===Math.sign(n)?.3*e*Math.sign(n)*Math.log10(1+.5*Math.abs(n)/e):n}function z(e){return!!e&&e.scrollWidth>e.clientWidth}function q(e){return!!e&&e.scrollHeight>e.clientHeight}function Y(e){return"function"==typeof e}function X(e,t){var n,r,i=function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];var o=Date.now()-n,s=Y(t)?t():t||0;o<s&&o>=0?r=setTimeout(function(){return i.apply(void 0,a)},s-o):e.apply(void 0,a)},a=function(){for(var e=[],a=0;a<arguments.length;a++)e[a]=arguments[a];n=Date.now(),r=setTimeout(function(){return i.apply(void 0,e)},Y(t)?t():t||0)};return a.clear=function(){clearTimeout(r)},a}function G(e){var t=(0,W.useRef)(e);return(0,W.useEffect)(function(){t.current=e},[e]),t}(r=i||(i={}))[r.Left=1]="Left",r[r.Middle=4]="Middle",r[r.Right=2]="Right";var U=function(){function e(e,t){var n,r,i,a,l=this;this.getScrollMode=function(e){if(l.getOptions().overscroll&&l.reference.current&&e){var t=l.reference.current,n=t.scrollLeft,r=t.scrollTop,i=t.clientHeight,a=t.clientWidth,o=t.scrollHeight,s=t.scrollWidth;return e.left<0&&n>0||e.left>0&&n<s-a||e.top<0&&r>
10||e.top>0&&r<o-i?"local":"global"}return"local"},this.clearStyles=function(){l.reference.current&&l.reference.current.childNodes.forEach(function(e,t){e.style.transition=l.originalStyles.transition[t],e.style.transform=l.originalStyles.transform[t],e.style.pointerEvents=l.originalStyles.pointerEvents[t]}),l.overflow.left=0,l.overflow.top=0,l.overflow.prevent=!1},this.inertia=function(e,t){var n=l.calculateScroll({left:l.inertiaSpeed.left*e,top:l.inertiaSpeed.top*e});l.inertiaSpeed.left=(n.left.local+n.left.overflow)/e*.95,l.inertiaSpeed.top=(n.top.local+n.top.overflow)/e*.95,l.applyScroll(n),.05>Math.abs(l.inertiaSpeed.left)&&.05>Math.abs(l.inertiaSpeed.top)&&(null==t||t())},this.reference=e,this.options=t,this.originalStyles={transform:[],transition:[],pointerEvents:[]},this.overflow={left:0,top:0,prevent:!1},this.inertiaSpeed={left:0,top:0},this.mode=null,this.active=!1,this.loopedInertia=(n=this.inertia,i=!1,a={run:function(e){i=!1;var t=performance.now(),l=function(){a.cancel(),null==e||e()},o=function(e){i||(n(e-t,l),t=e,r=window.requestAnimationFrame(function(e){return o(e)}))};r=window.requestAnimationFrame(function(e){return o(e)})},cancel:function(){i=!0,window.cancelAnimationFrame(r)}}),this.debouncedClearStyles=X(this.clearStyles,300)}return e.prototype.getOptions=function(){return R({inertia:!0,rubberBand:!0},this.options.current)},e.prototype.start=function(e){var t=this;this.active&&this.cancel(),this.mode=this.getScrollMode(e),this.reference.current&&this.reference.current.childNodes.forEach(function(e){e.addEventListener("click",t.preventEvent);var n=window.getComputedStyle(e),r=n.transform,i=n.transition,a=n.pointerEvents;t.originalStyles.transition.push(i),t.originalStyles.transform.push(r),t.originalStyles.pointerEvents.push(a),e.style.pointerEvents="none"}),this.active=!0},e.prototype.scroll=function(e){this.applyScroll(this.calculateScroll(e))},e.prototype.end=function(e,t){var n=this,r=this.getOptions().inertia,i=function(){n.cancel(),null==t||t()};this.inertiaSpeed.left=e?e.left:0,this.inertiaSpeed.top=e?e.top:0,r?this.loopedInertia.run(i):i()},e.prototype.cancel=function(){var e,t=this;null===(e=this.reference.current)||void 0===e||e.childNodes.forEach(function(e){e.removeEventListener("click",t.preventEvent)}),this.resetOverflow(),this.loopedInertia.cancel(),this.mode=null,this.active=!1},e.prototype.resetOverflow=function(){var e,t=this.overflow.left||this.overflow.top;t&&(this.overflow.prevent=!0,(null===(e=this.reference.current)||void 0===e?void 0:e.childNodes).forEach(function(e){e.style.transform="translate3d(0px, 0px, 0px)",e.style.transition="300ms"})),t?this.debouncedClearStyles():this.clearStyles()},e.prototype.preventEvent=function(e){e.preventDefault(),e.stopImmediatePropagation()},e.prototype.applyScroll=function(e){var t=this,n=e.left,r=e.top;(n.global||r.global)&&window.scrollTo({left:window.scrollX+n.global,top:window.scrollY+r.global,behavior:"auto"}),this.reference.current&&(this.reference.current.scrollLeft+=n.local,this.reference.current.scrollTop+=r.local,!this.overflow.prevent&&(n.overflow||r.overflow)&&(this.overflow.left+=n.overflow,this.overflow.top+=r.overflow,this.reference.current.childNodes.forEach(function(e){e.style.transform="translate3d("+-t.overflow.left+"px, "+-t.overflow.top+"px, 0px)",e.style.transition="0ms"})))},e.prototype.calculateScroll=function(e){var t=this.getOptions().rubberBand,n={local:0,global:0,overflow:0},r={local:0,global:0,overflow:0};if("global"===this.mode)n.global=e.left,r.global=e.top;else if(this.reference.current){var i=this.reference.current,a=i.scrollLeft,l=i.scrollTop,o=i.scrollWidth,s=i.clientWidth,c=i.scrollHeight,u=i.clientHeight;if(z(this.reference.current)){var d=D(a,this.overflow.left,e.left,0,o-s),m=d[0],h=d[1];n.local=m,t&&(n.overflow=V(s,this.overflow.left,h))}if(q(this.reference.current)){var f=D(l,this.overflow.top,e.top,0,c-u);m=f[0],h=f[1],r.local=m,t&&(r.overflow=V(s,this.overflow.top,h))}}return{left:n,top:r}},e}(),J=(0,W.forwardRef)(function(e,t){var n,r,a,l,o,s,c,u,d,m,h,f,p,g,v,_,y,w,b,k,x,j,M,S=R({mouseScrollImplementation:void 0},e),C=S.children,E=S.className,T=S.component,N=S.hideScrollbars,O=S.mouseScroll,P=S.mouseScrollImplementation,H=S.onStartScroll,L=S.onEndScroll,B=S.onScroll,I=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(S,["children","className","component","hideScrollbars","mouseScroll","mouseScrollImplementation","onStart
1Scroll","onEndScroll","onScroll"]),A=T||"div",F=(n={mouseScroll:void 0===O||O,mouseScrollImplementation:P,onStartScroll:H,onEndScroll:L,onScroll:B},o=(0,W.useRef)(null),s=1/60*1e3,c=(0,W.useRef)({scrolling:!1,started:!1,pressed:!1,artificial:!1,mouse:!1}),u=(0,W.useRef)({active:{left:!1,top:!1},initialClick:{left:0,top:0},speedX:0,speedY:0,clientX:0,clientY:0}),d=(0,W.useRef)({body:{},reference:{}}),m=G(n),h=G(R({activationDistance:20,cursor:!0,buttons:[i.Left]},null!==(r=m.current.mouseScroll)&&"object"==typeof r?m.current.mouseScroll:{})),f=(0,W.useState)("mouseScrollImplementation"in n&&n.mouseScrollImplementation?n.mouseScrollImplementation(o,h):new U(o,h))[0],p=function(){var e=function(){window.requestAnimationFrame(function(){var e,t;null===(t=(e=m.current).onEndScroll)||void 0===t||t.call(e),c.current.started=!1,c.current.scrolling=!1,c.current.artificial=!1})};c.current.artificial?f.end({left:u.current.speedX,top:u.current.speedY},e):e()},g=function(e){var t,n,r=h.current.ignoreElements;m.current.mouseScroll&&function(e,t,n){if(n&&e&&t){var r=e.closest(n);return null===r||r.contains(t)}return!!(e&&t)}(e.target,o.current,r)&&(z(o.current)||q(o.current))&&-1!==h.current.buttons.indexOf(e.buttons)&&(t=e.clientX,n=e.clientY,u.current.speedY=0,u.current.speedX=0,u.current.clientX=t,u.current.clientY=n,u.current.active.left=!1,u.current.active.top=!1,u.current.initialClick.top=n,u.current.initialClick.left=t,c.current.mouse=!0,c.current.pressed=!0,f.cancel())},v=function(e){var t,n,r,i,a,l;m.current.mouseScroll&&c.current.pressed&&c.current.mouse&&(t=e.clientX,n=e.clientY,i=(r=h.current).activationDistance,a=r.cursor,Math.abs(t-u.current.initialClick.left)>i&&(u.current.active.left=!0),Math.abs(n-u.current.initialClick.top)>i&&(u.current.active.top=!0),l={left:u.current.active.left?u.current.clientX-t:0,top:u.current.active.top?u.current.clientY-n:0},f.active?c.current.pressed&&(u.current.speedX=l.left/s,u.current.speedY=l.top/s,u.current.clientX=t,u.current.clientY=n,f.scroll(l),window.requestAnimationFrame(function(){u.current.speedX=0,u.current.speedY=0})):(u.current.active.top||u.current.active.left)&&(f.start(l),u.current.clientX=t,u.current.clientY=n,c.current.artificial=!0,a&&(d.current.body.cursor=document.body.style.cursor,document.body.style.cursor="grabbing",o.current&&(d.current.reference.cursor=o.current.style.cursor,o.current.style.cursor="grabbing")),o.current&&(d.current.reference.userSelect=o.current.style.userSelect,o.current.style.userSelect="none")),e.preventDefault(),e.stopPropagation())},_=function(){c.current.pressed&&(f.active&&p(),c.current.pressed=!1,c.current.mouse=!1,y())},y=function(){h.current.cursor&&(document.body.style.cursor=d.current.body.cursor||"",o.current&&(o.current.style.cursor=d.current.reference.cursor||"")),o.current&&(o.current.style.userSelect=d.current.reference.userSelect||"")},w=function(){c.current.artificial=!1,c.current.pressed=!0},b=function(){c.current.pressed&&(c.current.started&&!c.current.scrolling&&p(),c.current.pressed=!1)},k=function(){var e,t,n,r;c.current.scrolling=!0,c.current.started?null===(t=(e=m.current).onScroll)||void 0===t||t.call(e):(c.current.started=!0,null===(r=(n=m.current).onStartScroll)||void 0===r||r.call(n)),x()},a=G(function(){var e=c.current,t=e.pressed,n=e.started,r=e.artificial;t||!n||r||p(),c.current.scrolling=!1}),l=G(250),x=(0,W.useRef)(X(function(){var e;null===(e=a.current)||void 0===e||e.call(a)},function(){return l.current})).current,j=(0,W.useCallback)(function(e){o.current!==e&&(o.current&&(o.current.removeEventListener("mousedown",g),o.current.removeEventListener("scroll",k),o.current.removeEventListener("touchstart",w)),o.current=e,o.current&&(o.current.addEventListener("mousedown",g,{passive:!1}),o.current.addEventListener("scroll",k,{passive:!1}),o.current.addEventListener("touchstart",w)))},[]),(0,W.useEffect)(function(){return window.addEventListener("mouseup",_),window.addEventListener("mousemove",v),window.addEventListener("touchend",b),function(){window.removeEventListener("mouseup",_),window.removeEventListener("mousemove",v),window.removeEventListener("touchend",b),y()}},[]),{ref:j});return W.createElement(A,R({className:[E,"indiana-scroll-container",(void 0===N||N)&&"indiana-scroll-container--hide-scrollbars"].filter(function(e){return e}).join(" "),ref:(M=[t,F.ref],function(e){M.forEach(function(t){"function"==typeof t?t(e):null!=t&&(t.current=e)})})},I),C)}),Q=n(37648);function $(e){let[t,n]=(0,W.useState)({windowHeight:0,documentHeight:0,scrollPosition:0,elementToTop:0,elementToWindowTop:0,percentToWindow:0,percentToWindowCapped:0,elementHeight:0,bottomPercentToWindow:0,elementToDocument:0}),r=(0,W.useCallback)(()=>
1{if(e.current){let t=e.current.getBoundingClientRect(),r=t.top/window.innerHeight*100;r>100&&(r=100),r<0&&(r=0);let i=t.top/window.innerHeight*100,a=(t.top+t.height)/window.innerHeight*100;n({windowHeight:window.innerHeight,documentHeight:document.body.scrollHeight,scrollPosition:window.scrollY,elementToWindowTop:t.top,elementToTop:t.top+window.scrollY,percentToWindow:i,percentToWindowCapped:r,elementHeight:t.height,bottomPercentToWindow:a,elementToDocument:e.current.offsetTop})}},[e]);return(0,W.useEffect)(()=>(r(),document.addEventListener("scroll",r),()=>document.removeEventListener("scroll",r)),[]),t}function ee(){return(ee=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n(38565);var et=function(e){return W.createElement("svg",ee({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),a||(a=W.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M13.326 13.945H2.674a1 1 0 0 1-.88-1.474l5.325-9.89a1 1 0 0 1 1.762 0l5.325 9.89a1 1 0 0 1-.88 1.474Z"})),l||(l=W.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"m8 9.918-.18-3.812a.18.18 0 1 1 .36.001L8 9.918Z"})),o||(o=W.createElement("path",{fill:"currentColor",d:"M8 12.414a.625.625 0 1 1 0-1.25.625.625 0 0 1 0 1.25Z"})))}
1,en=n(19873),er=n(21963);let ei=(0,er.cn)([]),ea=(0,er.cn)([]),el=(0,er.cn)(!1),eo=(0,er.cn)([]);function es(){return(es=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var ec=function(e){return W.createElement("svg",es({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 13"},e),s||(s=W.createElement("g",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,clipPath:"url(#double-chevron-up_svg__a)"},W.createElement("path",{d:"M13 12 7 6l-6 6"}),W.createElement("path",{d:"M13 7 7 1 1 7"}))),c||(c=W.createElement("defs",null,W.createElement("clipPath",{id:"double-chevron-up_svg__a"},W.createElement("path",{fill:"#fff",d:"M0 0h14v13H0z"})))))},eu=n(8231),ed=n.n(eu);function em(e){let{sections:t,categoryStyles:n,activeSection:r,goToCategory:i}=e,{slug:a}=(0,L.Tt)(),{acf:{information:{appearance:{template:l}}}}=(0,L.FC)(),o=(0,W.useRef)(null),s=(0,W.useRef)(null),[c,u]=(0,W.useState)(!1),[d,m]=(0,W.useState)(!0),h=(0,W.useCallback)(()=>{var e,t,n;let r=0,i=(null===(e=o.current)||void 0===e?void 0:e.scrollLeft)||0,a=(null===(t=o.current)||void 0===t?void 0:t.getBoundingClientRect().width)||0,l=null===(n=s.current)||void 0===n?void 0:n.querySelectorAll("[data-cat-no]");null==l||l.forEach(e=>{r+=e.getBoundingClientRect().width+75}),u(r>a),m(i>0)},[]);(0,W.useEffect)(function(){setTimeout(()=>h(),10)},[h,t]);let f=(0,W.useCallback)(()=>{var e,t;let n=(null===(e=o.current)||void 0===e?void 0:e.scrollLeft)||0;null===(t=o.current)||void 0===t||t.scrollTo({left:n+150,behavior:"smooth"})},[]),p=(0,W.useCallback)(()=>{var e,t;let n=(null===(e=o.current)||void 0===e?void 0:e.scrollLeft)||0;null===(t=o.current)||void 0===t||t.scrollTo({left:n-150,behavior:"smooth"})},[]);return(0,H.jsxs)("div",{className:ed().categoriesMenuCont,"data-template":l,"data-theme":a,children:[(0,H.jsx)(J,{style:n,ref:o,onScroll:()=>h(),className:ed().scrollContainer,children:(0,H.jsx)("div",{className:ed().menuCategories,ref:s,children:null==t?void 0:t.map((e,t)=>(0,H.jsx)("button",{"data-cat-no":t,className:ed().menuCatTitle,"data-active-cat":e.name===r,onClick:()=>i(e.name),children:e.name},"cat-button-".concat(t)))})}),d&&(0,H.jsx)("button",{className:ed().prevArrow,onClick:()=>p(),children:(0,H.jsx)(ec,{})}),c&&(0,H.jsx)("button",{className:ed().nextArrow,onClick:()=>f(),children:(0,H.jsx)(ec,{})})]})}let eh=[12,11,22,68,8,77,10,20,31,24,23,76,21,1014,1015,1017,1018,1016,1019,1020,81],ef=[{name:"Cereals with Gluten",children:["Wheat","Rye","Oats","Barley","Kamut","Spelt"]},{name:"Milk",children:[]},{name:"Eggs",children:[]},{name:"Tree Nuts (Almonds, Hazelnuts, Walnuts, Cashews, Brazil Nuts, Pistachio, Pecan and Macadamia)",children:[]},{name:"Tree Nuts",children:["Almonds","Hazelnuts","Walnuts","Cashews","Pecans","Brazil","Pistachios","Macadamia"]},{name:"Peanuts",children:[]},{name:"Fish",children:[]},{name:"Crustaceans",children:[]},{name:"Molluscs",children:[]},{name:"Sesame Seeds",children:[]},{name:"Soya",children:[]},{name:"Mustard",children:[]},{name:"Celery",children:[]},{name:"Sulphur Dioxide/Sulphites",children:[]},{name:"Lupin",children:[]},{name:"Garlic",children:[]},{name:"Onion",children:[]},{name:"Mushroom",children:[]},{name:"Tomatoes",children:[]},{name:"Pepper (includes capsicums/bell peppers, chillies, cayenne, paprika, pimento)",children:[]},{name:"Strawberries",children:[]},{name:"Kiwi",children:[]}],ep=[{name:"Cereals with Gluten",children:["Wheat","Rye","Oats","Barley","Kamut","Spelt"]},{name:"Milk",children:[]},{name:"Eggs",children:[]},{name:"Tree Nuts (Almonds, Hazelnuts, Walnuts, Cashews, Brazil Nuts, Pistachio, Pecan and Macadamia)",children:[]},{name:"Tree Nuts",children:["Almonds","Hazelnuts","Walnuts","Cashews","Pecans","Brazil","Pistachios","Macadamia"]},{name:"Peanuts",children:[]},{name:"Fish",children:[]},{name:"Crustaceans",children:[]},{name:"Molluscs",children:[]},{name:"Sesame Seeds",children:[]},{name:"Soya",children:[]},{name:"Mustard",children:[]},{name:"Celery",children:[]},{name:"Sulphur Dioxide/Sulphites",children:[]},{name:"Lupin",children:[]}],eg=["Garlic","Onion","Mushroom","Tomatoes","Peppers","Strawberries","Kiwi"],ev=["Garlic","Onion","Mushroom","Tomatoes","Peppers","Strawberries","Kiwi"],e_=[1017,1015,1016,1018,1014,1019,1020],ey=[{id:12,name:"Cereals with Gluten"},{id:11,name:"Milk"},{id:22,name:"Eggs"},{id:81,name:"Tree Nuts (Almonds, Hazelnuts, Walnuts, Cashews, Brazil Nuts, Pistachio, Pecan and Macadamia)"},{id:68,name:"Peanuts"},{id:8,name:"Fish"},{id:77,name:"Crustaceans"},{id:10,name:"Molluscs"},{id:20,name:"Sesame Seeds"},{id:31,name:"Soya"},{id:24,name:"Mustard"},{id:23,name:"Celery"},{id:76,name:"Sulphur Dioxide/Sulphites"},{id:21,name:"Lupin"},{id:1014,name:"Garlic"},{id:1015,name:"Onion"},{id:1016,name:"Mushroom"},{id:1017,name:"Tomatoes"},{id:1018,name:"Pepper (includes capsicums/bell peppers, chillies, cayenne, paprika, pimento)"},{id:1019,name:"Strawberries"},{id:1020,name:"Kiwi"}],ew=[{id:12,name:"Cereals with Gluten"},{id:11,name:"Milk"},{id:22,name:"Eggs"},{id:81,name:"Tree Nuts (Almonds, Hazelnuts, Walnuts, Cashews, Brazil Nuts, Pistachio, Pecan and Macadamia)"},{id:68,name:"Peanuts"},{id:8,name:"Fish"},{id:77,name:"Crustaceans"},{id:10,name:"Molluscs"},{id:20,name:"Sesame Seeds"},{id:31,name:"Soya"},{id:24,name:"Mustard"},{id:23,name:"Celery"},{id:76,name:"Sulphur Dioxide/Sulphites"},{id:21,name:"Lupin"}],eb=["Vegetarian","Vegan"],ek=["Spicy - Mild","Spicy - Medium","Spicy - Hot"],ex=["Vegetarian*","Vegan*"];function ej(e){return e.split(/[ \s(]+/)[0].toLowerCase().replace(/s$/,"")}function eM(e){let t=ej(e);return ev.some(e=>ej(e)===t)}function eS(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{filterDuplicates:!1},n=[];
1return e.forEach(e=>{var t;n=(null===(t=e.child_dietary)||void 0===t?void 0:t.length)?[...eS(e.child_dietary),...n]:[e.name,...n]}),t.filterDuplicates&&(n=n.filter(e=>!(eb.includes("".concat(e))&&ex.includes("".concat(e,"*"))))),[...new Set(n)]}function eC(){return(eC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var eE=function(e){return W.createElement("svg",eC({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none"},e),u||(u=W.createElement("g",{clipPath:"url(#alchohol_svg__a)"},W.createElement("path",{stroke:"#000",d:"M8 15.5a7.5 7.5 0 1 0 0-15 7.5 7.5 0 0 0 0 15Z"}),W.createElement("path",{fill:"#000",d:"M6.075 11H5l2.415-7h1.17L11 11H9.925L8.028 5.271h-.053L6.075 11Zm.18-2.741h3.487v.888H6.255V8.26Z"}))),d||(d=W.createElement("defs",null,W.createElement("clipPath",{id:"alchohol_svg__a"},W.createElement("path",{fill:"#fff",d:"M0 0h16v16H0z"})))))},eT=n(87920),eN=n.n(eT);function eO(){return(eO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var eP=function(e){return W.createElement("svg",eO({xmlns:"http://www.w3.org/2000/svg",width:16,height:17,fill:"none"},e),m||(m=W.createElement("circle",{cx:8,cy:8.5,r:7.5,stroke:"currentColor"})),h||(h=W.createElement("path",{fill:"currentColor",d:"M8.807 6.98v5.52H7.15V6.98h1.657ZM9 5.47a.887.887 0 0 1-.08.372 1.017 1.017 0 0 1-.546.511 1.02 1.02 0 0 1-1.085-.207c-.09-.089-.16-.19-.214-.304A.94.94 0 0 1 7 5.47c0-.135.025-.261.075-.378.053-.117.125-.22.214-.309.092-.089.198-.158.315-.207a1.02 1.02 0 0 1 .77 0 1.003 1.003 0 0 1 .546.516c.053.117.08.243.08.378Z"})))};function eH(){return(eH=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var eL=function(e){return W.createElement("svg",eH({xmlns:"http://www.w3.org/2000/svg",width:27,height:17,fill:"none"},e),W.createElement("mask",{id:"spice-hot_svg__a",width:13,height:17,x:7,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"}},f||(f=W.createElement("path",{fill:"#fff",d:"M20 .5H7v16h13V.5Z"}))),p||(p=W.createElement("g",{mask:"url(#spice-hot_svg__a)"},W.createElement("path",{fill:"#E74343",d:"M19.713.5s-1.38.214-1.834 1.67a1.248 1.248 0 0 0-.735-.043.258.258 0 0 0-.146.102c-.141-.01-.297 0-.463.03a.247.247 0 0 0-.172.13 2.228 2.228 0 0 0-1.047.19c-.73.322-1.038.931-1.134 1.13-.277.551-.267 1.072-.261 1.32.04 2.032-.726 4.043-.962 4.613a8.242 8.242 0 0 1-.957 1.685c-.867 1.238-2.756 2.548-3.884 3.332-.836.58-1.022.72-1.083.877-.09.243-.03.55.151.74.167.17.393.229.63.229.212 0 .428-.044.63-.093 2.105-.52 3.994-1.811 4.074-1.87 1.25-.862 1.88-1.296 2.564-1.953 1.038-.994 2.03-2.314 2.785-3.721 1.053-1.953 1.743-3.249 1.194-4.554-.02-.049-.045-.093-.065-.137a.888.888 0 0 0 0-.487c.15-.604-.393-1.032-.68-1.251.317-1.262 1.4-1.442 1.46-1.452A.245.245 0 0 0 19.99.71a.253.253 0 0 0-.287-.204l.01-.005ZM17.43 8.639c-.735 1.364-1.687 2.645-2.69 3.6-.66.627-1.274 1.056-2.503 1.904-.02.014-1.888 1.295-3.903 1.792-.413.102-.67.102-.766.005a.284.284 0 0 1-.065-.21c.065-.087.498-.39.916-.677 1.154-.803 3.088-2.143 4.005-3.453.246-.346.654-.93 1.007-1.778.247-.589 1.038-2.678.997-4.831 0-.205-.015-.629.212-1.072.09-.175.327-.648.891-.9.252-.113.494-.147.716-.147.327 0 .594.083.7.127.826.365 1.4.881 1.657 1.495.463 1.096-.151 2.24-1.174 4.145Z"}))),W.createElement("mask",{id:"spice-hot_svg__b",width:13,height:17,x:14,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"}},g||(g=W.createElement("path",{fill:"#fff",d:"M27 .5H14v16h13V.5Z"}))),v||(v=W.createElement("g",{mask:"url(#spice-hot_svg__b)"},W.createElement("path",{fill:"#E74343",d:"M26.713.5s-1.38.214-1.834 1.67a1.248 1.248 0 0 0-.735-.043.258.258 0 0 0-.146.102c-.141-.01-.297 0-.463.03a.247.247 0 0 0-.172.13 2.228 2.228 0 0 0-1.047.19c-.73.322-1.038.931-1.133 1.13-.278.551-.267 1.072-.262 1.32.04 2.032-.726 4.043-.962 4.613a8.242 8.242 0 0 1-.957 1.685c-.867 1.238-2.756 2.548-3.884 3.332-.836.58-1.022.72-1.083.877-.09.243-.03.55.151.74.167.17.393.229.63.229.211 0 .428-.044.63-.093 2.105-.52 3.994-1.811 4.074-1.87 1.25-.862 1.88-1.296 2.564-1.953 1.038-.994 2.03-2.314 2.785-3.721 1.053-1.953 1.743-3.249 1.194-4.554-.02-.049-.045-.093-.065-.137a.888.888 0 0 0 0-.487c.15-.604-.393-1.032-.68-1.251.317-1.262 1.4-1.442 1.46-1.452A.245.245 0 0 0 26.99.71a.253.253 0 0 0-.287-.204l.01-.005ZM24.43 8.639c-.735 1.364-1.687 2.645-2.69 3.6-.66.627-1.274 1.056-2.503 1.904-.02.014-1.889 1.295-3.903 1.792-.413.102-.67.102-.766.005a.283.283 0 0 1-.065-.21c.065-.087.498-.39.916-.677 1.154-.803 3.088-2.143 4.005-3.453.246-.346.654-.93 1.007-1.778.247-.589 1.038-2.678.997-4.831 0-.205-.015-.629.212-1.072.09-.175.327-.648.891-.9.252-.113.494-.147.716-.147.327 0 .594.083.7.127.826.365 1.4.881 1.657 1.495.463 1.096-.151 2.24-1.174 4.145Z"}))),W.createElement("mask",{id:"spice-hot_svg__c",width:13,height:17,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"}},_||(_=W.createElement("path",{fill:"#fff",d:"M13 .5H0v16h13V.5Z"}))),y||(y=W.createElement("g",{mask:"url(#spice-hot_svg__c)"},W.createElement("path",{fill:"#E74343",d:"M12.713.5s-1.38.214-1.833 1.67a1.248 1.248 0 0 0-.736-.043.258.258 0 0 0-.146.102 1.93 1.93 0 0 0-.463.03.247.247 0 0 0-.172.13 2.229 2.229 0 0 0-1.047.19c-.73.322-1.038.931-1.134
11.13-.277.551-.266 1.072-.261 1.32.04 2.032-.726 4.043-.962 4.613a8.247 8.247 0 0 1-.957 1.685c-.867 1.238-2.756 2.548-3.884 3.332-.836.58-1.022.72-1.083.877-.09.243-.03.55.151.74.167.17.393.229.63.229.212 0 .428-.044.63-.093 2.105-.52 3.994-1.811 4.074-1.87 1.25-.862 1.88-1.296 2.564-1.953 1.038-.994 2.03-2.314 2.785-3.721 1.053-1.953 1.743-3.249 1.194-4.554-.02-.049-.045-.093-.065-.137a.888.888 0 0 0 0-.487c.15-.604-.393-1.032-.68-1.251.317-1.262 1.4-1.442 1.46-1.452A.245.245 0 0 0 12.99.71a.253.253 0 0 0-.287-.204l.01-.005ZM10.43 8.639c-.735 1.364-1.687 2.645-2.69 3.6-.66.627-1.274 1.056-2.503 1.904-.02.014-1.889 1.295-3.903 1.792-.413.102-.67.102-.766.005a.284.284 0 0 1-.065-.21c.065-.087.498-.39.916-.677 1.154-.803 3.088-2.143 4.005-3.453.246-.346.654-.93 1.007-1.778.247-.589 1.038-2.678.997-4.831 0-.205-.015-.629.212-1.072.09-.175.327-.648.891-.9.252-.113.494-.147.716-.147.327 0 .594.083.7.127.826.365 1.4.881 1.657 1.495.463 1.096-.151 2.24-1.174 4.145Z"}))))};function eB(){return(eB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var eI=function(e){return W.createElement("svg",eB({xmlns:"http://www.w3.org/2000/svg",width:20,height:17,fill:"none"},e),w||(w=W.createElement("g",{clipPath:"url(#spice-med_svg__a)"},W.createElement("path",{fill:"#E74343",d:"M19.713.5s-1.38.214-1.834 1.67a1.248 1.248 0 0 0-.735-.043.258.258 0 0 0-.146.102c-.141-.01-.297 0-.463.03a.247.247 0 0 0-.172.13 2.228 2.228 0 0 0-1.047.19c-.73.322-1.038.931-1.134 1.13-.277.551-.267 1.072-.261 1.32.04 2.032-.726 4.043-.962 4.613a8.242 8.242 0 0 1-.957 1.685c-.867 1.238-2.756 2.548-3.884 3.332-.836.58-1.022.72-1.083.877-.09.243-.03.55.151.74.167.17.393.229.63.229.212 0 .428-.044.63-.093 2.105-.52 3.994-1.811 4.074-1.87 1.25-.862 1.88-1.296 2.564-1.953 1.038-.994 2.03-2.314 2.785-3.721 1.053-1.953 1.743-3.249 1.194-4.554-.02-.049-.045-.093-.065-.137a.888.888 0 0 0 0-.487c.15-.604-.393-1.032-.68-1.251.317-1.262 1.4-1.442 1.46-1.452A.245.245 0 0 0 19.99.71a.253.253 0 0 0-.287-.204l.01-.005ZM17.43 8.639c-.735 1.364-1.687 2.645-2.69 3.6-.66.627-1.274 1.056-2.503 1.904-.02.014-1.888 1.295-3.903 1.792-.413.102-.67.102-.766.005a.284.284 0 0 1-.065-.21c.065-.087.498-.39.916-.677 1.154-.803 3.088-2.143 4.005-3.453.246-.346.654-.93 1.007-1.778.247-.589 1.038-2.678.997-4.831 0-.205-.015-.629.212-1.072.09-.175.327-.648.891-.9.252-.113.494-.147.716-.147.327 0 .594.083.7.127.826.365 1.4.881 1.657 1.495.463 1.096-.151 2.24-1.174 4.145Z"}))),b||(b=W.createElement("g",{clipPath:"url(#spice-med_svg__b)"},W.createElement("path",{fill:"#E74343",d:"M12.713.5s-1.38.214-1.833 1.67a1.248 1.248 0 0 0-.736-.043.258.258 0 0 0-.146.102 1.93 1.93 0 0 0-.463.03.247.247 0 0 0-.172.13 2.229 2.229 0 0 0-1.047.19c-.73.322-1.038.931-1.134 1.13-.277.551-.266 1.072-.261 1.32.04 2.032-.726 4.043-.962 4.613a8.247 8.247 0 0 1-.957 1.685c-.867 1.238-2.756 2.548-3.884 3.332-.836.58-1.022.72-1.083.877-.09.243-.03.55.151.74.167.17.393.229.63.229.212 0 .428-.044.63-.093 2.105-.52 3.994-1.811 4.074-1.87 1.25-.862 1.88-1.296 2.564-1.953 1.038-.994 2.03-2.314 2.785-3.721 1.053-1.953 1.743-3.249 1.194-4.554-.02-.049-.045-.093-.065-.137a.888.888 0 0 0 0-.487c.15-.604-.393-1.032-.68-1.251.317-1.262 1.4-1.442 1.46-1.452A.245.245 0 0 0 12.99.71a.253.253 0 0 0-.287-.204l.01-.005ZM10.43 8.639c-.735 1.364-1.687 2.645-2.69 3.6-.66.627-1.274 1.056-2.503 1.904-.02.014-1.889 1.295-3.903 1.792-.413.102-.67.102-.766.005a.284.284 0 0 1-.065-.21c.065-.087.498-.39.916-.677 1.154-.803 3.088-2.143 4.005-3.453.246-.346.654-.93 1.007-1.778.247-.589 1.038-2.678.997-4.831 0-.205-.015-.629.212-1.072.09-.175.327-.648.891-.9.252-.113.494-.147.716-.147.327 0 .594.083.7.127.826.365 1.4.881 1.657 1.495.463 1.096-.151 2.24-1.174 4.145Z"}))),k||(k=W.createElement("defs",null,W.createElement("clipPath",{id:"spice-med_svg__a"},W.createElement("path",{fill:"#fff",d:"M7 .5h13v16H7z"})),W.createElement("clipPath",{id:"spice-med_svg__b"},W.createElement("path",{fill:"#fff",d:"M0 .5h13v16H0z"})))))};function eA(){return(eA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var eF=function(e){return W.createElement("svg",eA({xmlns:"http://www.w3.org/2000/svg",width:13,height:17,fill:"none"},e),x||(x=W.createElement("g",{clipPath:"url(#spice-mild_svg__a)"},W.createElement("path",{fill:"#E74343",d:"M12.713.5s-1.38.214-1.833 1.67a1.248 1.248 0 0 0-.736-.043.258.258 0 0 0-.146.102 1.93 1.93 0 0 0-.463.03.247.247 0 0 0-.172.13 2.229 2.229 0 0 0-1.047.19c-.73.322-1.038.931-1.134
11.13-.277.551-.266 1.072-.261 1.32.04 2.032-.726 4.043-.962 4.613a8.247 8.247 0 0 1-.957 1.685c-.867 1.238-2.756 2.548-3.884 3.332-.836.58-1.022.72-1.083.877-.09.243-.03.55.151.74.167.17.393.229.63.229.212 0 .428-.044.63-.093 2.105-.52 3.994-1.811 4.074-1.87 1.25-.862 1.88-1.296 2.564-1.953 1.038-.994 2.03-2.314 2.785-3.721 1.053-1.953 1.743-3.249 1.194-4.554-.02-.049-.045-.093-.065-.137a.888.888 0 0 0 0-.487c.15-.604-.393-1.032-.68-1.251.317-1.262 1.4-1.442 1.46-1.452A.245.245 0 0 0 12.99.71a.253.253 0 0 0-.287-.204l.01-.005ZM10.43 8.639c-.735 1.364-1.687 2.645-2.69 3.6-.66.627-1.274 1.056-2.503 1.904-.02.014-1.889 1.295-3.903 1.792-.413.102-.67.102-.766.005a.284.284 0 0 1-.065-.21c.065-.087.498-.39.916-.677 1.154-.803 3.088-2.143 4.005-3.453.246-.346.654-.93 1.007-1.778.247-.589 1.038-2.678.997-4.831 0-.205-.015-.629.212-1.072.09-.175.327-.648.891-.9.252-.113.494-.147.716-.147.327 0 .594.083.7.127.826.365 1.4.881 1.657 1.495.463 1.096-.151 2.24-1.174 4.145Z"}))),j||(j=W.createElement("defs",null,W.createElement("clipPath",{id:"spice-mild_svg__a"},W.createElement("path",{fill:"#fff",d:"M0 .5h13v16H0z"})))))};function eW(){return(eW=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var eK=function(e){return W.createElement("svg",eW({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none"},e),M||(M=W.createElement("circle",{cx:8,cy:8,r:7.5,stroke:"currentColor"})),S||(S=W.createElement("path",{fill:"currentColor",d:"M3 5h1.083a.47.47 0 0 1 .287.082.45.45 0 0 1 .159.219l1.123 3.212c.05.14.1.292.151.457.053.165.102.337.147.519a6.681 6.681 0 0 1 .275-.976L7.34 5.3a.45.45 0 0 1 .155-.206A.431.431 0 0 1 7.778 5h1.09l-2.324 6H5.325L3 5ZM13.163 5v1.07h-2.38v1.4h1.823V8.5h-1.824v1.43h2.381V11H9.43V5h3.734Z"})))};function eZ(){return(eZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var eR=function(e){return W.createElement("svg",eZ({xmlns:"http://www.w3.org/2000/svg",width:25,height:16,fill:"none"},e),C||(C=W.createElement("path",{fill:"currentColor",d:"m17.474 11 .088-2.292-2.037 1.23L15 9.062 17.146 8 15 6.937l.525-.875 2.037 1.23L17.474 5h1.052l-.088 2.292 2.037-1.23.525.875L18.854 8 21 9.063l-.526.874-2.036-1.229.088 2.292h-1.052ZM4 5h1.083a.47.47 0 0 1 .287.082.45.45 0 0 1 .159.219l1.123 3.212c.05.14.1.292.151.457.053.165.102.337.147.519a6.681 6.681 0 0 1 .275-.976L8.34 5.3a.45.45 0 0 1 .155-.206A.431.431 0 0 1 8.778 5h1.09l-2.324 6H6.325L4 5ZM14.163 5v1.07h-2.38v1.4h1.823V8.5h-1.824v1.43h2.381V11H10.43V5h3.734Z"})),E||(E=W.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M25 8a8 8 0 0 0-8-8H8a8 8 0 1 0 0 16h9a8 8 0 0 0 8-8Zm-1.19 0a7 7 0 0 0-7-7H8.19a7 7 0 1 0 0 14h8.62a7 7 0 0 0 7-7Z",clipRule:"evenodd"})))};function eD(){return(eD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var eV=function(e){return W.createElement("svg",eD({xmlns:"http://www.w3.org/2000/svg",width:21,height:16,fill:"none"},e),T||(T=W.createElement("g",{fill:"currentColor",clipPath:"url(#vegetarian-may_svg__a)"},W.createElement("path",{d:"m13.475 11 .087-2.292-2.037 1.23L11 9.062 13.146 8 11 6.937l.525-.875 2.037 1.23L13.475 5h1.05l-.087 2.292 2.036-1.23.526.875L14.854 8 17 9.063l-.526.874-2.036-1.229.087 2.292h-1.05ZM5 5h1.127c.122 0 .221.028.298.083a.454.454 0 0 1 .166.22L7.76 8.535c.052.14.105.294.157.46.055.165.107.34.154.522.038-.183.082-.357.132-.522.053-.166.104-.32.153-.46l1.16-3.232a.454.454 0 0 1 .162-.208A.459.459 0 0 1 9.973 5h1.135l-2.42 6.037H7.42L5 5Z"}),W.createElement("path",{fillRule:"evenodd",d:"M21 8a8 8 0 0 0-8-8H8a8 8 0 1 0 0 16h5a8 8 0 0 0 8-8Zm-1 0a7 7 0 0 0-7-7H8a7 7 0 1 0 0 14h5a7 7 0 0 0 7-7Z",clipRule:"evenodd"}))),N||(N=W.createElement("defs",null,W.createElement("clipPath",{id:"vegetarian-may_svg__a"},W.createElement("path",{fill:"currentColor",d:"M0 0h21v16H0z"})))))};function ez(){return(ez=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var eq=function(e){return W.createElement("svg",ez({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none"},e),O||(O=W.createElement("circle",{cx:8,cy:8,r:7.5,stroke:"currentColor"})),P||(P=W.createElement("path",{fill:"currentColor",d:"M5 5h1.127c.122 0 .221.028.298.083a.454.454 0 0 1 .166.22L7.76 8.535c.052.14.105.294.157.46.055.165.107.34.154.522.038-.183.082-.357.132-.522.053-.166.104-.32.153-.46l1.16-3.232a.454.454 0 0 1 .162-.208A.459.459 0 0 1 9.973 5h1.135l-2.42 6.037H7.42L5 5Z"})))};function eY(e){let{dietary:t,allergens:n,nutrition:r,isDrinksMenu:i}=e,a=(0,W.useMemo)(()=>eS(t,{filterDuplicates:!1}).sort((e,t)=>
1e.localeCompare(t)),[t]),l=(0,W.useMemo)(()=>{let e=eS(t,{filterDuplicates:!1});return e=e.filter(t=>!e.includes("".concat(t,"*")))},[t]),o=e=>"Vegetarian*"===e?eV:"Vegetarian"===e?eq:"Vegan"===e?eK:"Vegan*"===e?eR:"Spicy - Mild"===e?eF:"Spicy - Medium"===e?eI:"Spicy - Hot"===e?eL:"Contains Alcohol"===e?eE:null,s=(0,W.useCallback)((e,t)=>{let n=[];return e.forEach(e=>{e.child_allergens.length&&(n=[...s(e.child_allergens,t),...n]),!t===e.is_confirmed&&(n=[e.name,...n])}),n=[...new Set(n)]},[]),c=(0,W.useMemo)(()=>{let e=s(n,!0),t=i?ep:ef;return t.filter(t=>{let n=t.children.map(t=>{if(e.includes(t))return t}).filter(e=>e);return!!e.includes(t.name)||!!n.length}).map(t=>{let n=t.children.map(t=>{if(e.includes(t))return t}).filter(e=>e),r=eM(t.name)?"*":"";return"".concat(t.name).concat(r).concat(n.length?" (".concat(n.join(", "),")"):"")})},[n,s,i]),u=(0,W.useMemo)(()=>{let e=s(n,!1),t=i?ep:ef;return t.filter(t=>{let n=t.children.map(t=>{if(e.includes(t))return t}).filter(e=>e);return!!e.includes(t.name)||!!n.length}).map(t=>{let n=t.children.map(t=>{if(e.includes(t))return t}).filter(e=>e),r=eM(t.name)?"*":"";return"".concat(t.name).concat(r).concat(n.length?" (".concat(n.join(", "),")"):"")})},[n,s,i]),d=(0,W.useMemo)(()=>[...eb,...ex,...ek].filter(e=>a.includes(e)),[a]),m=(0,W.useMemo)(()=>{let e=[];return Object.keys(r).forEach(t=>{let n=r[t];Number(n.per_serving)&&(e[t]=n)}),e},[r]),h=(0,W.useMemo)(()=>u.length>0||c.length>0||d.length>0||Object.keys(m).length>0,[u.length,m,c.length,d.length]),[f,p]=(0,W.useState)(!1),g=(0,W.useCallback)(()=>{window.innerWidth<800&&!f?document.documentElement.style.overflow="hidden":document.documentElement.style.overflow="",p(!f)},[f]),v=e=>{switch(e){case"energy (kcal)":return"Energy (kCal)";case"of which sugars (g)":return"of which Sugars (g)";default:return e.split(" ").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}};return(0,H.jsxs)("div",{className:eN().icons,children:[l.map((e,t)=>{let n=o(e);return n?(0,H.jsxs)("div",{className:eN().icon,children:[(0,H.jsx)(n,{}),(0,H.jsx)("span",{children:e})]},"info-icon-".concat(t)):null}),h&&(0,H.jsxs)("button",{className:eN().icon,"data-display":f,onClick:g,children:[(0,H.jsx)(eP,{}),(0,H.jsx)("div",{className:eN().allergenInfoBG}),(0,H.jsxs)("div",{className:eN().allergenInfo,children:[(0,H.jsx)("div",{className:eN().close}),(0,H.jsxs)("div",{className:eN().topInfo,children:[d.length>0&&(0,H.jsxs)("div",{children:[(0,H.jsx)("b",{children:"Suitable For: "}),d.join(", ")]}),u.length>0&&(0,H.jsxs)("div",{children:[(0,H.jsx)("b",{children:"Contains: "}),u.join(", ")]}),c.length>0&&(0,H.jsxs)("div",{children:[(0,H.jsx)("b",{children:"May Contain: "})," ",c.join(", ")]}),0===c.length&&0===u.length&&(0,H.jsx)("div",{children:"This item contains none of the listed allergens"})]}),Object.keys(m).length>0&&(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)("hr",{className:eN().seperator}),(0,H.jsx)("h6",{className:eN().nutritionHead,children:"Nutrion (per portion)"}),(0,H.jsx)("div",{className:eN().nutritionTable,children:["energy (kcal)","protein (g)","carb (g)","of which sugars (g)","fat (g)","sat fat (g)","salt (g)"].map((e,t)=>{let n=v(e),i=e+t+r[e].per_serving;return(0,H.jsxs)("div",{className:eN().nutrionRow,children:[(0,H.jsx)("div",{children:n}),(0,H.jsx)("div",{children:r[e].per_serving})]},i)})})]})]})]})]})}var eX=n(65827),eG=n.n(eX);function eU(e){var t,n,r;let{item:i,isDrinksMenu:a}=e;return(0,H.jsxs)("div",{className:eG().itemInfo,children:[(0,H.jsxs)("div",{className:eG().left,children:[(null===(t=i.nutrition["energy (kcal)"])||void 0===t?void 0:t.per_serving)!=="-"&&(0,H.jsxs)("span",{className:eG().cals,children:[null===(n=i.nutrition["energy (kcal)"])||void 0===n?void 0:n.per_serving,null===(r=i.nutrition["energy (kcal)"])||void 0===r?void 0:r.metric]}),(0,H.jsx)(eY,{isDrinksMenu:a,dietary:i.dietary,allergens:i.allergens,nutrition:i.nutrition})]}),(0,H.jsxs)("span",{className:eG().price,children:[i.price&&"\xa3",i.price]})]})}var eJ=n(17877),eQ=n.n(eJ);function e$(e){let{item:t,inCategory:n=!1,isDrinksMenu:r}=e;return(0,W.useEffect)(()=>
1{t.allergens.forEach(e=>{eg.includes(e.name)&&!e_.includes(e.id)&&console.log(e.id)})},[t]),(0,H.jsxs)("div",{className:eQ().item,"data-in-category":n,onClick:()=>console.log(t),children:[(0,H.jsx)("h5",{className:eQ().title,children:t.name}),t.description&&(0,H.jsx)("p",{className:eQ().description,dangerouslySetInnerHTML:{__html:t.description}}),(0,H.jsx)(eU,{item:t,isDrinksMenu:r})]})}var e0=n(83784),e1=n.n(e0);function e2(e){let{section:t,indented:n=!1,isDrinksMenu:r}=e,i=(0,W.useMemo)(()=>(null==t?void 0:t.sub_sections)||[],[t]),a=(0,W.useMemo)(()=>(null==t?void 0:t.items)||[],[t]),l=(0,W.useMemo)(()=>{let e=[...i,...a].sort((e,t)=>e.order!==t.order?e.order>t.order?1:-1:void 0!==e.sub_sections&&void 0===t.sub_sections?1:void 0!==t.sub_sections&&void 0===e.sub_sections?-1:0),t=[],n=!0;for(;n;)if(e.length){let n=e[0];void 0===n.sub_sections?t.push({type:"item",data:n}):t.push({type:"subsection",data:n}),e.shift()}else n=!1;return t},[a,i]);return t||0!==a.length?(0,H.jsxs)("div",{className:e1().section,"data-indented":n,onClick:()=>console.log(t),children:[(0,H.jsx)("div",{className:e1().info,children:t&&(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)("h4",{className:e1().sectionHead,children:t.name}),t.description&&(0,H.jsx)("p",{className:e1().sectionDesc,dangerouslySetInnerHTML:{__html:t.description}})]})}),l.map((e,t)=>"subsection"===e.type?(0,H.jsx)("div",{className:e1().subsections,children:(0,H.jsx)(e2,{section:e.data,indented:!0,isDrinksMenu:r})},"sub-section-".concat(t,"-").concat(JSON.stringify(e))):"item"===e.type?(0,H.jsx)("div",{className:e1().itemsCont,children:(0,H.jsx)(e$,{item:e.data,isDrinksMenu:r})},"".concat(e.data.name,"-").concat(t,"-").concat(JSON.stringify(e))):null)]}):null}var e3=n(95652),e4=n.n(e3);function e5(e){let{category:t,openMenuCats:n,toggleMenuDisplay:r,screenWidth:i,index:a,setSectionPosition:l,first:o,last:s,isDrinksMenu:c}=e,u=(0,W.useRef)(null),d=(0,W.useRef)(null),m=$(u);(0,W.useEffect)(function(){setTimeout(()=>{l(t.name,{start:o?0:m.elementToDocument,end:s?m.documentHeight:m.elementToTop+m.elementHeight})},10)},[t.name,o,s,m,l]);let h=(0,W.useMemo)(()=>n.includes(t.name)||i>800,[t,n,i]),f=(0,W.useMemo)(()=>{let e=i>800||h;return{height:e?"auto":0}},[h,i]),p=(0,W.useMemo)(()=>t.items||[],[t.items]),g=(0,W.useMemo)(()=>t.sub_sections||[],[t]),v=(0,W.useMemo)(()=>{let e=g.map(e=>e.order),t=p.map(e=>e.order),n=[...e,...t].sort(),r=[];return n.forEach(e=>{let t=g.find(t=>t.order===e),n=p.find(t=>t.order===e);n&&r.push({type:"item",data:n}),t&&r.push({type:"subsection",data:t})}),r},[g,p]);return(0,H.jsxs)("div",{className:e4().menuCategoryContent,"data-tenkites-category":t.name,ref:u,"data-menu-cat-open":h,"data-screen-width":i,"data-index":a,children:[(0,H.jsxs)("div",{className:e4().menuHeadingCont,children:[(0,H.jsx)("h2",{className:e4().menuHeading,children:t.name}),(0,H.jsx)("span",{className:e4().menuChevronToggle,children:(0,H.jsx)(en.Z,{})}),(0,H.jsx)("button",{"aria-label":"toggle ".concat(t.name),className:e4().menuToggle,onClick:()=>r(t.name)})]}),(0,H.jsx)("div",{className:e4().menuCatAccordion,style:f,children:(0,H.jsxs)("div",{ref:d,children:[(0,H.jsx)("p",{className:e4().menuSubHeading,dangerouslySetInnerHTML:{__html:t.description}}),(0,H.jsx)("div",{className:e4().menuItems,children:v.map((e,t)=>"item"===e.type?(0,H.jsx)(e$,{item:e.data,inCategory:!0,isDrinksMenu:c},"".concat(e.data.name,"-").concat(t,"-").concat(JSON.stringify(e))):"subsection"===e.type?(0,H.jsx)(e2,{section:e.data,isDrinksMenu:c},"".concat(e.data.name,"-sub-").concat(t,"-").concat(JSON.stringify(e))):null)})]})})]})}function e8(e,t){let n=e.find(e=>e.id===t);return n}var e7=n(13387),e6=n.n(e7);function e9(e){let{mayContainActive:t,mayContainCallback:n,activeFilters:r=[],toggleFilter:i,clearFilters:a,closeFilter:l,menuContentType:o}=e;(0,W.useEffect)(function(){function e(e){let t=e.target;t.closest("[data-tenkites-filter]")||t.hasAttribute("data-tenkites-toggle")||l()}return document.addEventListener("click",e),()=>document.removeEventListener("click",e)},[l]);let s=(0,W.useMemo)(()=>!t,[t]),c=(0,W.useMemo)(()=>"drink"===o?ew:ey,[o]);return(0,H.jsxs)("div",{className:e6().tenkitesFilter,"data-tenkites-filter":!0,"data-menu-content-type":o,children:[(0,H.jsxs)("div",{className:e6().head,children:[(0,H.jsx)("p",{children:'Exclude dishes that "May Contain" selected allergens? This filter removes dishes where suppliers have identified a risk of cross-contact for the 14 mandatory allergens. Allergens marked (*) are not included in this filter.'}),(0,H.jsx)("div",{children:(0,H.jsx)("button",{className:e6().toggle,"data-active":s,onClick:()=>n(!t),children:(0,H.jsx)("span",{children:s?"Yes":"No"})})})]}),(0,H.jsxs)("div",{className:e6().headings,children:[(0,H.jsx)("span",{className:e6().doesNotContain,children:"Does Not Contain:"}),(0,H.jsxs)("div",{className:e6().headerButton,children:[(0,H.jsx)("button",{className:e6().clearButton,onClick:a,children:"Clear Selection"}),(0,H.jsx)("button",{className:e6().clearButton,onClick:l,children:"Hide Filter"})]})]}),(0,H.jsx)("div",{className:e6().body,children:c.map((e,t)=>{let n=eM(e.name);return(0,H.jsx)("div",{children:(0,H.jsxs)("button",{"data-filter-active":r.includes(e.id),onClick:()=>i(e.id),className:e6().option,children:[(0,H.jsx)("span",{}),e.name,n?"*":""]})},"".concat(e.id,"-").concat(t))})})]})}var te=n(64103),tt=n.n(te);function tn(e){let{categoriesPosition:t,headerOffset:n}=e,r=(0,W.useCallback)(()=>{let e=document.querySelector("[data-propcom-tenkites-head]");if(!e)return;let t=window.scrollY+e.getBoundingClientRect().top;window.scrollTo({top:t-n,behavior:"smooth"})},[n]),i=(0,W.useMemo)(()=>t.percentToWindow<100&&t.bottomPercentToWindow>0,[t]);return(0,H.jsx)("button",{className:tt().toTop,onClick:r,"data-show":i,children:(0,H.jsx)(ec,{})})}function tr(e){let{menus:t,phc:n}=e,r=(0,W.useRef)(null),i=(0,W.useRef)(null),[a,l]=(0,W.useState)(0),o=$(i),{slug:s}=(0,L.Tt)(),{acf:{information:{appearance:{template:c}}}}=(0,L.FC)(),u=$(r),d=(0,W.useMemo)(()=>"t1"===c?a>
1800?40:120:"t2"===c?a>800?100:170:0,[a,c]);(0,W.useEffect)(function(){let e=()=>{l(window.innerWidth)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let[m,h]=(0,W.useState)(null),[f,p]=(0,W.useState)([]),[g,v]=(0,I.KO)(el),[_,y]=(0,W.useState)(!1),[w,b]=(0,I.KO)(ei),[k,x]=(0,I.KO)(eo),[j,M]=(0,I.KO)(ea);(0,W.useEffect)(()=>{b(function(e){let t=[],n=(e,t)=>{let n=e.find(e=>e.id===t.id);return!n&&eh.includes(t.id)?[...e,{id:t.id,name:t.name}]:e};return e.forEach(e=>{var r;null===(r=e.menu.data.allergens)||void 0===r||r.forEach(e=>{t=n(t,e)})}),t}(t))},[t,b]);let S=(0,W.useCallback)((e,t,r,i,a,l,o,u)=>{window.dataLayer.push({event:e,filterType:t,valueUpdated:r,oldValue:i,newValue:a,template:c,format:s,phc:n,dietaryReqs:l,menuAllergen:o,mayContain:u})},[s,n,c]),C=(0,W.useCallback)(e=>{if(k.includes(e)){let t=k.filter(t=>t!==e);x(t),S("allergen_updated","allergen",e,!0,!1,j,t,!g)}else{let t=[e,...k];x(t=>[e,...t]),S("allergen_updated","allergen",e,!1,!0,j,t,!g)}},[j,g,k,x,S]),E=(0,W.useCallback)(e=>{v(e),S("may_contain_updated","May Contain","May contain",e,!e,j,k,!e)},[j,k,v,S]),T=(0,W.useCallback)(()=>{y(!1)},[y]),N=(0,W.useCallback)(()=>{x([]),S("allergens_cleared","allergen","cleared",!1,!1,j,[],!g)},[j,g,x,S]),O=(0,W.useCallback)(e=>{if(j.includes(e)){let t=j.filter(t=>t!==e);M(t),S("dietary_req_updated","dietry Requirement",e,!0,!1,t,k,!g)}else{let t=[e,...j];M(t),S("dietary_req_updated","dietry Requirement",e,!1,!0,t,k,!g)}},[j,g,k,M,S]),P=(0,W.useCallback)(e=>{a<800&&f.includes(e)&&p(t=>t.filter(t=>t!==e)),a<800&&!f.includes(e)&&p(t=>[e,...t])},[f,a]);(0,W.useEffect)(function(){null===m&&t.length&&h(t[0].id)},[m,t]);let B=(0,W.useCallback)(e=>{var t;let n=null===(t=r.current)||void 0===t?void 0:t.querySelector('[data-tenkites-category="'.concat(e,'"]')),i=window.innerWidth>=800?1:300;p([e]),n&&setTimeout(()=>{let e=document.documentElement.scrollTop+n.getBoundingClientRect().top||0;window.scrollTo({top:e-d,behavior:"smooth"})},i)},[d]),A=(0,W.useMemo)(()=>null===m?null:e8(t,m),[m,t]),F=(0,W.useMemo)(()=>{let e=function e(t,n,r,i){let a=[];return null==t||t.forEach(t=>{let l=(t.items||[]).filter(e=>{if(!r.length)return!0;let t=eS(e.dietary);return t.filter(e=>r.includes(e)).length>0}).filter(e=>{let t=n.filter(t=>{let n=function e(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{excludeMayContain:!1},r=[];return(n.excludeMayContain?t.filter(e=>e.is_confirmed):t).forEach(t=>{t.child_allergens.length&&(r=[...e(t.child_allergens,{excludeMayContain:n.excludeMayContain}),...r]),r=[t.id,...r]}),r=[...new Set(r)]}(e.allergens,{excludeMayContain:i});return n.includes(t)});return 0===t.length}),o=!!("Modifier Choices"===t.buildYourOwnType&&!l.length),s=e(t.sub_sections||[],n,r,i).filter(e=>!o||"Add-on Options"!==e.buildYourOwnType);(l.length||s.length)&&a.push({...t,items:l,sub_sections:s})}),a}(null==A?void 0:A.menu.data.sections,k,j,g);return e},[null==A?void 0:A.menu.data.sections,j,g,k]),K=(0,W.useMemo)(()=>{if(a>=800)return{};let e=0;try{e=11*t[0].acf.information.settings.ten_kites_display_name.length}catch(t){e=50}return{paddingLeft:"calc(50% - ".concat(e/2,"px)"),paddingRight:"calc(50% - ".concat(e/2,"px)")}},[t,a]),Z=(0,W.useMemo)(()=>{if(a>=800)return{};let e=0;try{e=5.5*F[0].name.length}catch(t){e=50}return{paddingLeft:"calc(50% - ".concat(e/2,"px)"),paddingRight:"calc(50% - ".concat(e/2,"px)")}},[a,F]),[R,D]=(0,W.useState)(null);(0,W.useEffect)(function(){D(null)},[m]);let V=(0,W.useCallback)((e,t)=>{D(n=>{let r=null===n?{}:{...n};return r[e]=t,r})},[]),z=(0,W.useMemo)(()=>{if(null===R)return"";let e=Object.keys(R).filter(e=>{let t=R[e];return u.scrollPosition+200>t.start&&u.scrollPosition+200<t.end});return e[0]||""},[u.scrollPosition,R]),q=(0,W.useCallback)(e=>{let n=e8(t,e);if(!A||!n)return;let r=k.filter(e=>e_.includes(e));"drink"===n.acf.information.settings.menu_content_type&&"food"===A.acf.information.settings.menu_content_type&&r.length>0&&(Q.Am.info("Please note that it is not possible to filter on your selected allergen for our drinks menus. Please speak to a member of our team for more information. (".concat(r.map(e=>{let t=w.find(t=>
1t.id===e);return(null==t?void 0:t.name)||""}).join(", "),")"),{autoClose:!1}),x(e=>e.filter(e=>!e_.includes(e)))),h(e)},[t,A,k,x,w]),Y=(0,W.useMemo)(()=>!!A&&"drink"===A.acf.information.settings.menu_content_type,[A]),X=(0,W.useMemo)(()=>A?A.acf.information.settings.header_terms_override?A.acf.information.settings.header_terms_override:Y?"Our drinks are prepared in areas where cross-contact may occur. We do not make any âfree fromâ claims or\ndeclare that any of our drinks are gluten free. Our allergen information only states allergens if they are an\ningredient of a product. To remove drinks that contain an allergen, please select the allergen in the filter.\nWhere suppliers indicate possible cross-contact, âmay containâ risks are declared. Menu descriptions do not\nlist all ingredients. If you want to include drinks that âmay containâ the ingredient that you are allergic to,\nplease change the toggle on the allergen section to âNoâ before you filter. Please talk to us if you have any\nallergies or intolerances before you order your drinks. We want to cater safely for everyone. Please speak\nto our team if you have concerns or questions. V/VE Suitable for vegetarians/vegans or option available.\nAdults need around 2000 kcal a day.":"Our food and drinks are prepared and cooked in food areas where cross\ncontact may occur. We do not make any âfree fromâ claims or declare that any of our dishes are gluten free. Our allergen information only states allergens if they are an ingredient of a product. To remove dishes that contain an allergen, please select the allergen in the filter. Where our suppliers have indicated possible cross contact, we declare their âmay containâ risks. Our menu descriptions do not include all ingredients. If you want to include dishes that âmay containâ the food that you are allergic to, please change the toggle on the allergen section to âNoâ before you filter. If you have an allergy or intolerance, please speak to a member of our team before you order your food & drinks. Please speak to a member of staff should you have any concerns or require more information. Adults need around 2000 kcal a day.":"",[A,Y]),G=(0,W.useMemo)(()=>A?A.acf.information.settings.footer_terms_override?A.acf.information.settings.footer_terms_override:Y?"Products shown are subject to availability. Prices include VAT at the current rate. Alcohol may only be served to or purchased by persons aged 18 years or over and photographic identification may be required. The Managerâs decision is final, and service may be refused at their discretion. It is never our intention to encourage excessive consumption of alcohol or to discriminate against any person; we encourage responsible drinking, visit www.drinkaware.co.uk for the facts. Calorie counts are for guidance only, based on the complete drink as listed on the menu at the time of printing. Values may vary between pubs due to portion sizes and temporary ingredient substitutions. Please note that allergen/calorie information excludes any dish adaptations. Single spirit = 25ml measure. Double up = 50ml measure. Pepsi Max, Pepsi or R.Whiteâs Lemonade - Zero sugar mixer = 4oz dash.":"V/VE Suitable for vegetarians and vegans or option available. V*/VE* We cannot guarantee that our vegetarian and vegan dishes have been cooked in dedicated vegetarian and vegan fryers. We select our fish from sustainable sources. Our scampi is made from more than one tail of Langoustine caught in UK waters. We regret that we cannot guarantee that our meat and seafood dishes do not contain bones or shell. ÊContains alcohol. Where we state a weight, itâs a raw weight and 1oz equals approximately 28 grams. Calorie counts are guidance only and are based on the complete dish/drink as listed on the menu. Portion sizes may vary from the quantity on which the calculations have been based, therefore values may vary between pubs. To ensure our customers have choice, temporary product substitutions may be required which can affect the calorie content listed for our dishes on the menu. Please drink responsibly.":"",[A,Y]);return(0,H.jsxs)("div",{className:e4().menuBlock,ref:r,"data-allergens-active":k.length>0,children:[(0,H.jsx)("div",{className:e4().title,children:(0,H.jsxs)("h2",{children:["Our Menus",(0,H.jsxs)("div",{className:e4().headingAccent,children:[(0,H.jsx)("span",{}),(0,H.jsx)("span",{}),(0,H.jsx)("span",{}),(0,H.jsx)("span",{})]})]})}),(0,H.jsx)("p",{className:e4().paragraph,children:X}),(0,H.jsxs)("div",{className:e4().head,"data-propcom-tenkites-head":!0,children:[(0,H.jsx)("div",{className:e4().alergenToggleCont,children:(0,H.jsxs)("button",{className:e4().alergenToggle,"data-filter-open":_,onClick:()=>y(!_),"data-tenkites-toggle":!0,children:["Allergen Filter ",(0,H.jsx)(en.Z,{})]})}),(0,H.jsxs)("div",{className:e4().headQuickFilters,children:[(0,H.jsx)("span",{children:"Show me:"}),eb.map((e,t)=>(0,H.jsxs)("button",{className:e4().headFilter,onClick:()=>O(e),"data-is-active":j.includes(e),children:[(0,H.jsx)("span",{}),e]},"dietry-req-".concat(e,"-").concat(t)))]}),_&&A&&(0,H.jsx)(e9,{mayContainActive:g,mayContainCallback:E,activeFilters:k,toggleFilter:C,clearFilters:N,closeFilter:T,menuContentType:A.acf.information.settings.menu_content_type},JSON.stringify(A))]}),(0,H.jsxs)("div",{className:e4().allergenAlert,children:[(0,H.jsx)(et,{className:e4().allergenAlertIcon}),(0,H.jsx)("p",{children:"Our food is prepared in a shared kitchen. While we take care, we can't guarantee dishes are allergen-free"}),(0,H.jsx)(et,{className:e4().allergenAlertIcon})]}),(0,H.jsxs)("div",{className:e4().main,children:[k.length>0&&(0,H.jsxs)("div",{className:e4().activeFiltersCont,"data-template":c,children:[(0,H.jsx)("span",{children:"Active filters:"}),(0,H.jsx)(J,{className:e4().activeFilters,children:k.map((e,t)=>{let n=w.find(t=>e===t.id);return(0,H.jsx)("span",{children:null==n?void 0:n.name},"".concat(e,"-").concat(t))})})]}),(0,H.jsx)("div",{className:e4().menusList,style:K,children:t.map((e,t)=>(0,H.jsx)("button",{"data-menu-no":t,className:e4().menuSelect,"data-menu-active":e.id===m,onClick:()=>q(e.id),children:(0,H.jsx)("span",{children:e.acf.information.settings.ten_kites_display_name})},e.acf.information.settings.ten_kites_internal_name))}),(0,H.jsxs)("div",{className:e4().content,children:[(0,H.jsx)("h2",{className:e4().menuTitle,onClick:()=>console.log(null==A?void 0:A.id),children:null==A?void 0:A.acf.information.settings.ten_kites_display_name}),(0,H.jsx)(em,{sections:F,categoryStyles:Z,activeSection:z,goToCategory:B}),(0,H.jsxs)("div",{className:e4().categories,ref:i,children:[(0,H.jsx)(tn,{categoriesPosition:o,headerOffset:d}),null==F?void 0:F.map((e,t)=>(0,H.jsx)(e5,{first:0===t,last:t+1===F.length,category:e,openMenuCats:f,screenWidth:a,index:t,toggleMenuDisplay:P,setSectionPosition:V,isDrinksMenu:Y},"category-".concat(t)))]}),(0,H.jsx)("p",{className:e4().notice,children:G})]})]})]})}var ti=n(94750);async function ta(e){let t=await ti.ey.getMany({basename:"pub-menus",options:{per_page:100,phc:e,include_menu_data:!0}});return t}function tl(e){let{hide_ten_kites:t,use_propcom_tenkites:n,campaign:r,campaignName:i}=e,{acf:{information:{site:{phc:a}}}}=(0,L.FC)(),{data:l}=(0,B.a)(["menu"],()=>ta(a),{staleTime:1/0}),o=(0,W.useMemo)(()=>(null==l?void 0:l.result)?l.result.filter(e=>{let t=!1;return t=!1===e.acf.information.settings.campaigns?"none"===r:e.acf.information.settings.campaigns.filter(e=>"other"===r&&e.campaignName===i||"other"!==r&&e.campaign===r).length>0,!!e.menu_type&&"none"!==e.menu_type.location&&"all"===e.menu_type.location&&!!t}).sort((e,t)=>
1{if(!e.menu_type&&!t.menu_type)return 0;if(!e.menu_type||!t.menu_type)return -1;let n=parseInt(e.menu_type.sort_order,10),r=parseInt(t.menu_type.sort_order,10);return n-r}):[],[r,i,l]),s=(0,W.useMemo)(()=>{if(!n&&!t){let e=null==l?void 0:l.result.find(e=>e.acf.information.settings.ten_kites_url.length&&e.acf.information.settings.ten_kites_url.includes("menus.tenkites"));if(e)return e.acf.information.settings.ten_kites_url}return null},[t,l,n]),c=(0,I.b9)(Z.Z),[u,d]=(0,K.YD)();return((0,W.useMemo)(()=>{c(d)},[d,c]),!t&&n)?(0,H.jsx)(tr,{menus:o,phc:a}):s?(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(F(),{src:"https://menus.tenkites.com/Scripts/_k10.min.js?sbk=20160720",strategy:"afterInteractive",onReady:()=>(function(e){let t=window.$k10;t(function(){t.ajax({url:e,type:"GET",crossDomain:!0,success(e){let n=t("<div/>",{html:e}),r=n.find(".tk-html-header-scripts").html(),i=n.find(".tk-html-body").html(),a=n.find(".tk-html-body-scripts").html();t("head").append(r),t(".k10-html-container").append(i),setTimeout(function(){t("body").append(a)},50)},error(){console.error("Ten Kites: POST failed")}})})})(s)}),(0,H.jsx)("div",{className:"container padded",ref:u,children:(0,H.jsx)("div",{className:"k10-html-container"})})]}):null}},38565:function(){},8231:function(e){e.exports={scrollContainer:"CategoriesMenu_scrollContainer__L_cvO",menuCategories:"CategoriesMenu_menuCategories__qzaH9",categoriesMenuCont:"CategoriesMenu_categoriesMenuCont__iTXNr",menuCatTitle:"CategoriesMenu_menuCatTitle__4TGia",nextArrow:"CategoriesMenu_nextArrow__le2cK",prevArrow:"CategoriesMenu_prevArrow__9ks_W"}},17877:function(e){e.exports={title:"Item_title__J50KY",item:"Item_item__t0J93"}},87920:function(e){e.exports={icons:"Icons_icons__hM10B",allergenInfo:"Icons_allergenInfo__PvV5S",allergenInfoBG:"Icons_allergenInfoBG__CI1lv",icon:"Icons_icon__FC_sy",seperator:"Icons_seperator__RfA7A",nutritionHead:"Icons_nutritionHead__SC9E8",nutritionTable:"Icons_nutritionTable__GNSZy",nutrionRow:"Icons_nutrionRow__1A8gA",topInfo:"Icons_topInfo__JSIGI",close:"Icons_close__bIST_",modalBackdrop:"Icons_modalBackdrop__M2smX"}},65827:function(e){e.exports={itemInfo:"ItemInfo_itemInfo__hxl_6",left:"ItemInfo_left__8Y38R",cals:"ItemInfo_cals__YFqCo",price:"ItemInfo_price__iWhb4"}},83784:function(e){e.exports={section:"Section_section__ASJpE",subsectionsHead:"Section_subsectionsHead__8P_f2",subsectionsDesc:"Section_subsectionsDesc__k1y9r",subsections:"Section_subsections__HuPG_",sectionHead:"Section_sectionHead__dLh2V",info:"Section_info__DStu3",itemsCont:"Section_itemsCont__96nRD"}},95652:function(e){e.exports={menuBlock:"TenKitesMenuBlock_menuBlock__0W6HD",head:"TenKitesMenuBlock_head___CJuY",headFilter:"TenKitesMenuBlock_headFilter__3vHkB",headQuickFilters:"TenKitesMenuBlock_headQuickFilters__WvfCi",alergenToggle:"TenKitesMenuBlock_alergenToggle__4pSyW",main:"TenKitesMenuBlock_main__iYS_d",menusList:"TenKitesMenuBlock_menusList__D_ORl",menuSelect:"TenKitesMenuBlock_menuSelect__zZaSs",content:"TenKitesMenuBlock_content__onlIm",menuCatAccordion:"TenKitesMenuBlock_menuCatAccordion__GQFkX",menuCategoryContent:"TenKitesMenuBlock_menuCategoryContent__SXD9S",menuHeading:"TenKitesMenuBlock_menuHeading__Blzxg",menuSubHeading:"TenKitesMenuBlock_menuSubHeading__1uqBS",menuItems:"TenKitesMenuBlock_menuItems__iCbF5",menuHeadingCont:"TenKitesMenuBlock_menuHeadingCont__vwb37",menuChevronToggle:"TenKitesMenuBlock_menuChevronToggle__wQ6Uq",notice:"TenKitesMenuBlock_notice__Vdv2N",menuTitle:"TenKitesMenuBlock_menuTitle__wDNvx",menuToggle:"TenKitesMenuBlock_menuToggle__U6cFc",alergenToggleCont:"TenKitesMenuBlock_alergenToggleCont__Fz15D",paragraph:"TenKitesMenuBlock_paragraph__uau8N",title:"TenKitesMenuBlock_title__UkMUT",headingAccent:"TenKitesMenuBlock_headingAccent__U_4Bz",activeFiltersCont:"TenKitesMenuBlock_activeFiltersCont__bCPco",activeFilters:"TenKitesMenuBlock_activeFilters__fOu2N",categories:"TenKitesMenuBlock_categories__ACeFe",allergenAlert:"TenKitesMenuBlock_allergenAlert__qwwru",allergenAlertIcon:"TenKitesMenuBlock_allergenAlertIcon__bP1zS"}},13387:function(e){e.exports={tenkitesFilter:"TenkitesFilter_tenkitesFilter__rLB3n",head:"TenkitesFilter_head__9XKO6",toggle:"TenkitesFilter_toggle__bSdJq",doesNotContain:"TenkitesFilter_doesNotContain__vdcbw",body:"TenkitesFilter_body__keTE9",option:"TenkitesFilter_option__lftc8",headings:"TenkitesFilter_headings__SmHyk",clearButton:"TenkitesFilter_clearButton__PIRBu",headerButton:"TenkitesFilter_headerButton___XVWV"}},64103:function(e){e.exports={toTop:"ToTopTab_toTop__2UWfD"}}}]);
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.