(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[69],{3893:(e,t,s)=>{Promise.resolve().then(s.bind(s,5311))},5311:(e,t,s)=>{"use strict";s.d(t,{Order:()=>h});var o=s(5155),r=s(2115),a=s(63),i=s(4536),l=s(2800),n=s(8018),d=s(6241);let h=()=>{let e=(0,a.useRouter)(),t=(0,d.GV)(e=>e.cart.list),s=(0,d.GV)(e=>e.cart.total);return(0,r.useEffect)(()=>{0===t.length&&e.push(l.A.routes.cartEmpty)},[t]),(0,o.jsx)(n.d.MotionWrapper,{children:(0,o.jsxs)(n.d.SafeAreaView,{children:[(0,o.jsx)(n.d.Header,{title:"Order",showGoBack:!0,showBasket:!0}),(0,o.jsxs)("main",{style:{marginBottom:l.A.sizes.tabBarHeight,marginTop:l.A.sizes.headerHeight,paddingLeft:20,paddingRight:20,paddingBottom:20,paddingTop:18,overflowY:"auto"},children:[(0,o.jsx)("ul",{style:{...l.A.flex.flexColumn,gap:10,marginBottom:30},children:t.map((e,t)=>(0,o.jsx)(i.l.OrderItem,{dish:e},t))}),(0,o.jsxs)("div",{style:{...l.A.flex.flexRow,gap:6,marginBottom:20},children:[(0,o.jsxs)("span",{style:{fontSize:16,fontWeight:700,color:l.A.colors.mainDarkColor},children:["Total: (",t.length,") items:"]}),(0,o.jsxs)("span",{style:{fontSize:16,fontWeight:700,color:"#E94F08"},children:["$",s.toFixed(2)]})]}),(0,o.jsx)(n.d.Button,{label:"Process to Checkout",onClickAction:()=>{t.length>0&&e.push(l.A.routes.checkout)}})]}),(0,o.jsx)(n.d.BottomTabBar,{}),(0,o.jsx)(n.d.SafeAreaInsetBottom,{})]})})}}},e=>{e.O(0,[171,385,406,18,155,441,315,358],()=>e(e.s=3893)),_N_E=e.O()}]);