1"use strict";(self.webpackChunkconsumer=self.webpackChunkconsumer||[]).push([[8157,23875,30527,92758],{8157:function(e,t,r){r.r(t);var n=r(4390),s=r(23875),o=r(65043),u=r(92758),a=r(59557),l=r(36891),i=r(30527),c=r(70579);t.default=(0,n.PA)((function(e){var t,r,{getCartItemFromQueryParams:n,children:d}=e,{getCartItem:m,removeCartItem:f}=(0,u.default)(),h=(0,a.W6)(),{locationCode:p}=(0,a.g)(),v=(0,l.default)(),g=(0,o.useRef)(null),w=m(),E=n(),k=null!==(t=null!==(r=g.current)&&void 0!==r?r:w)&&void 0!==t?t:E;return(0,o.useEffect)((()=>{var e=e=>{e.key!==i.Keys.Esc&&e.key!==i.Keys.Escape||h.goBack()};return window.addEventListener("keyup",e),()=>{f(),window.removeEventListener("keyup",e)}}),[h,f]),k?(g.current=k,(0,c.jsx)(s.default,{cartItem:k,children:d})):(h.push({pathname:"/".concat(p),search:v.toString()}),null)}))},23875:function(e,t,r){r.r(t),r.d(t,{ItemSheetProviderContext:function(){return l}});var n=r(65043),s=r(4390),o=r(59557),u=r(36891),a=r(70579),l=n.createContext(void 0);t.default=(0,s.PA)((function(e){var{children:t,cartItem:r}=e,[s,i]=(0,n.useState)(!1),[c,d]=(0,n.useState)(!1),[m,f]=(0,n.useState)(r),[h,p]=(0,n.useState)([r]),[v,g]=(0,n.useState)([]),[w,E]=(0,n.useState)([]),k=(0,o.W6)(),C=(0,u.default)(),S=(0,n.useCallback)((e=>{v.includes(e)||g((t=>[...t,e]))}),[v]),y=(0,n.useCallback)((e=>{v.includes(e)&&g((t=>t.filter((t=>t!==e))))}),[]),b=(0,n.useCallback)((e=>{w.includes(e)||E((t=>[...t,e]))}),[w]),A=(0,n.useCallback)((e=>{w.includes(e)&&E((t=>t.filter((t=>t!==e))))}),[]),I=(0,n.useCallback)((e=>{d(!1),f((()=>e)),g((()=>[])),setTimeout((()=>{var e;return null===(e=document.querySelector(".ant-modal-wrap"))||void 0===e?void 0:e.scrollTo({top:0})}))}),[d,f]),P=(0,n.useCallback)((e=>{p((t=>[...t,e])),I(e),C.set("item",e.menu_item_id),k.push({search:C.toString()})}),[I,C,k]);return(0,n.useEffect)((()=>k.listen(((e,t)=>{"POP"===t&&(p((e=>e.length>1?e.slice(0,-1):e)),I(h.length>1?h[h.length-2]:h[h.length-1]))}))),[k,h]),(0,a.jsx)(l.Provider,{value:{processing:s,setProcessing:i,submitPressed:c,setSubmitPressed:d,cartItem:h[h.length-1],pushCartItem:P,displayedItem:m,setDisplayedItem:I,htmlElementErrors:v,addHTMLElementError:S,removeHTMLElementError:y,modsWithMissingSelections:w,addModWithMissingSelections:b,removeModWithMissingSelections:A,closeModal:k.goBack},children:t})}))},30527:function(e,t,r){var n;r.r(t),r.d(t,{Keys:function(){return n}}),function(e){e.Down="Down",e.ArrowDown="ArrowDown",e.Up="Up",e.ArrowUp="ArrowUp",e.Left="Left",e.ArrowLeft="ArrowLeft",e.Right="Right",e.ArrowRight="ArrowRight",e.Enter="Enter",e.Esc="Esc",e.Escape="Escape",e.Space=" "}(n||(n={}))},92758:function(e,t,r){r.r(t);var n=r(65345).useEditorContext;t.default=n}}]); 2//# sourceMappingURL=8157.31ad2b95.chunk.js.map
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.