PageSourceSearch

https://www.antoniospizzafl.com/_next/static/chunks/pages/before-checkout-fb89d2bf7b92eb30.js

js antoniospizzafl.com collected 2026-10-02 01:23:27 UTC 4,587 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[684],{50116:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/before-checkout",function(){return s(39227)}])},20743:function(e,t,s){"use strict";s.d(t,{T:function(){return c}});var l=s(85893),a=s(67294),n=s(94184),r=s.n(n),i=s(79127);let c=e=>{var t,s;let{brand:n}=(0,a.useContext)(i.I),c=null!==(s=null!==(t=e.url)&&void 0!==t?t:n.background)&&void 0!==s?s:"/images/default-brand-background.png";return(0,l.jsxs)("div",{className:r()("text-white flex flex-col text-3xl z-10 relative w-full",e.className),style:{...e.style,backgroundImage:"url(".concat(c,")"),backgroundSize:"cover",zIndex:1,backgroundPosition:"center"},children:[(0,l.jsx)("div",{className:"absolute top-0 left-0 bg-black bg-opacity-60 z-20 w-full h-full",style:{zIndex:-1}}),(0,l.jsx)("div",{className:"relative z-30 flex justify-center items-center flex-grow",children:e.children})]})}},5208:function(e,t,s){"use strict";s.d(t,{q:function(){return d}});var l=s(85893),a=s(50948),n=s(67294),r=s(64712),i=s(87399),c=s(79127);let o=e=>{let{itemCard:t}=e,[s,n]=(0,a.useFetch)({url:"/api/schedule/".concat(t.schedule_hash_id,"/next-available"),isAllowed:!!t.schedule_hash_id});if(!t.schedule_hash_id||!s||s.is_open)return null;let r=new Date(s.start_at),i=new Date,c=r.getDate()!==i.getDate();return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{children:c?"Available on ":"Available from "}),(0,l.jsx)(a.DateFormat,{format:c?"eeee, h:mma":"h:mma",value:s.start_at}),(0,l.jsx)("span",{children:" - "}),(0,l.jsx)(a.DateFormat,{format:"h:mma",value:s.end_at})]})},d=e=>{var t;let{itemCard:s}=e,[d,u]=null!==(t=s.price_ranges)&&void 0!==t?t:[],h=[d,u].filter(e=>!!e);d===u&&(h=[d]);let x=h.map(e=>0===e?"Free":"".concat(parseFloat("".concat(e/100)).toFixed(2))),{order:m,setOrder:f,setCartNotifications:p,setCartModalOpen:g}=(0,n.useContext)(c.I),{setAlert:_}=(0,n.useContext)(a.JourneyAppContext),b=async e=>{if(!s.is_editable)try{let e=await (0,a.enhancedFetch)("/api/order/add-item",{method:"POST",body:{size_hash_id:s.hash_id,quantity:1,children:[],toppings:[]}});!(null==m?void 0:m.items.some(e=>e.has_free_toppings))&&e.items.some(e=>e.has_free_toppings)&&g(!0),r.Am.success("Added ".concat(s.name," to your cart.")),p(t=>(0,i.RM)(t,m,e)),f(e)}catch(e){_(e.message)}};return(0,l.jsxs)(a.Button,{href:s.is_editable?"/item/".concat(s.slug):void 0,onClick:b,className:"border bg-white hover:text-typography hover:border-gray-400 flex h-32 p-0 pl-3 items-start justify-between rounded w-full text-left",children:[(0,l.jsx)("div",{className:"p-2 h-full flex justify-center flex-col",children:(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"text-lg flex items-center space-x-2",children:(0,l.jsx)("span",{className:"heading-font lg:text-xl font-bold",children:s.name})}),s.description&&(0,l.jsx)("span",{className:"text-left text-sm font-normal line-clamp-2 flex-grow",children:s.description}),(0,l.jsx)(o,{itemCard:s})]})}),(0,l.jsxs)("div",{className:"flex-shrink-0 justify-end min-w-[4rem] items-start h-full",children:[(0,l.jsx)("span",{className:"flex-shrink-0 text-sm text-right text-black! bg-gray-100 p-1 rounded absolute top-1 right-1 font-bold bg-opacity-80 z-10",children:x.join(" - ")}),s.picture&&(0,l.jsx)(a.Img,{size:{w:108,h:148},className:"max-w-[8rem] h-full",alt:s.name,src:(0,i.dU)(s.picture)})]})]})}},39227:function(e,t,s){"use strict";s.r(t),s.d(t,{__N_SSP:function(){return h}});var l=s(85893),a=s(50948),n=s(67294),r=s(11163),i=s(19819),c=s(79127),o=s(82849),d=s(20743),u=s(5208),h=!0;t.default=e=>{let{brand:t,item_cards:s}=e;(0,r.useRouter)();let{order:h}=(0,n.useContext)(c.I);return console.log({itemCards:s}),(0,l.jsxs)(o.n,{brand:t,title:"Before Checkout",description:"See items before checking out.",backUrl:"/menu",className:"full-screen",children:[(0,l.jsx)(d.T,{className:"h-32",children:(0,l.jsx)("h2",{className:"text-xl sm:text-3xl z-20 font-bold text-center px-1",children:"Before Checkout"})}),(0,l.jsxs)("div",{className:"flex flex-col items-center text-center",children:[(0,l.jsx)("div",{className:"py-2",children:"Need anything else before checking out?"}),(0,l.jsx)("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 max-w-[1080px] max-h-[500px] overflow-y-auto",children:s.map(e=>(0,l.jsx)(u.q,{itemCard:e},e.hash_id))}),(0,l.jsx)("div",{className:"py-2",children:(0,l.jsxs)(a.Button,{className:"w-[300px] primary",href:"/checkout",children:["Checkout",(0,l.jsx)(a.Icon,{src:i.Z,className:"pb-0.5"})]})})]})]})}}},function(e){e.O(0,[849,888,774,179],function(){return e(e.s=50116)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.