PageSourceSearch

https://www.antoniospizzafl.com/_next/static/chunks/pages/menu-7058c5e4b1896c30.js

js antoniospizzafl.com collected 2026-10-02 01:23:22 UTC 13,555 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[934],{93019:function(e,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/menu",function(){return n(78670)}])},20743:function(e,s,n){"use strict";n.d(s,{T:function(){return i}});var t=n(85893),l=n(67294),r=n(94184),a=n.n(r),c=n(79127);let i=e=>{var s,n;let{brand:r}=(0,l.useContext)(c.I),i=null!==(n=null!==(s=e.url)&&void 0!==s?s:r.background)&&void 0!==n?n:"/images/default-brand-background.png";return(0,t.jsxs)("div",{className:a()("text-white flex flex-col text-3xl z-10 relative w-full",e.className),style:{...e.style,backgroundImage:"url(".concat(i,")"),backgroundSize:"cover",zIndex:1,backgroundPosition:"center"},children:[(0,t.jsx)("div",{className:"absolute top-0 left-0 bg-black bg-opacity-60 z-20 w-full h-full",style:{zIndex:-1}}),(0,t.jsx)("div",{className:"relative z-30 flex justify-center items-center flex-grow",children:e.children})]})}},5208:function(e,s,n){"use strict";n.d(s,{q:function(){return d}});var t=n(85893),l=n(50948),r=n(67294),a=n(64712),c=n(87399),i=n(79127);let o=e=>{let{itemCard:s}=e,[n,r]=(0,l.useFetch)({url:"/api/schedule/".concat(s.schedule_hash_id,"/next-available"),isAllowed:!!s.schedule_hash_id});if(!s.schedule_hash_id||!n||n.is_open)return null;let a=new Date(n.start_at),c=new Date,i=a.getDate()!==c.getDate();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{children:i?"Available on ":"Available from "}),(0,t.jsx)(l.DateFormat,{format:i?"eeee, h:mma":"h:mma",value:n.start_at}),(0,t.jsx)("span",{children:" - "}),(0,t.jsx)(l.DateFormat,{format:"h:mma",value:n.end_at})]})},d=e=>{var s;let{itemCard:n}=e,[d,x]=null!==(s=n.price_ranges)&&void 0!==s?s:[],m=[d,x].filter(e=>!!e);d===x&&(m=[d]);let h=m.map(e=>0===e?"Free":"".concat(parseFloat("".concat(e/100)).toFixed(2))),{order:u,setOrder:p,setCartNotifications:f,setCartModalOpen:j}=(0,r.useContext)(i.I),{setAlert:g}=(0,r.useContext)(l.JourneyAppContext),y=async e=>{if(!n.is_editable)try{let e=await (0,l.enhancedFetch)("/api/order/add-item",{method:"POST",body:{size_hash_id:n.hash_id,quantity:1,children:[],toppings:[]}});!(null==u?void 0:u.items.some(e=>e.has_free_toppings))&&e.items.some(e=>e.has_free_toppings)&&j(!0),a.Am.success("Added ".concat(n.name," to your cart.")),f(s=>(0,c.RM)(s,u,e)),p(e)}catch(e){g(e.message)}};return(0,t.jsxs)(l.Button,{href:n.is_editable?"/item/".concat(n.slug):void 0,onClick:y,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,t.jsx)("div",{className:"p-2 h-full flex justify-center flex-col",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"text-lg flex items-center space-x-2",children:(0,t.jsx)("span",{className:"heading-font lg:text-xl font-bold",children:n.name})}),n.description&&(0,t.jsx)("span",{className:"text-left text-sm font-normal line-clamp-2 flex-grow",children:n.description}),(0,t.jsx)(o,{itemCard:n})]})}),(0,t.jsxs)("div",{className:"flex-shrink-0 justify-end min-w-[4rem] items-start h-full",children:[(0,t.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:h.join(" - ")}
1),n.picture&&(0,t.jsx)(l.Img,{size:{w:108,h:148},className:"max-w-[8rem] h-full",alt:n.name,src:(0,c.dU)(n.picture)})]})]})}},78670:function(e,s,n){"use strict";n.r(s),n.d(s,{__N_SSP:function(){return P},default:function(){return T}});var t=n(85893),l=n(50948),r=n(67294),a=n(36275),c=n(86484),i=n(52580),o=n(23011),d=n(56126),x=n(50949),m=n(94115),h=n(66472),u=n(82849);let p=(0,r.createContext)({});var f=n(72997),j=n(5208);let g=e=>{let{section:s}=e;return(0,t.jsxs)(t.Fragment,{children:[s.description?(0,t.jsx)("div",{className:"py-4 justify-center flex items-center text-center",children:s.description}):null,(0,t.jsx)(l.Row,{children:s.item_cards.map(e=>(0,t.jsx)(l.Col,{lg:4,sm:6,xs:12,children:(0,t.jsx)(j.q,{itemCard:e})},e.name))})]})},y=e=>{let{section:s}=e;return(0,t.jsxs)(l.Accordion,{className:"flex-nowrap",openByDefault:!0,children:[(0,t.jsxs)(l.AccordionHeader,{className:"section-header",id:s.slug,children:[(0,t.jsx)("span",{children:s.name}),(0,t.jsx)(l.AccordionCaret,{})]}),(0,t.jsx)(l.AccordionContent,{className:"p-1",children:(0,t.jsx)(g,{section:s})})]})};function v(e){let s=[];return e.forEach(e=>{let n=e.group_name?e.group_name:e.name,t=s.find(e=>e.name===n);t||(t={name:n,sections:[],slug:e.group_slug?e.group_slug:e.slug,hash_id:e.group_name?e.group_name:e.hash_id},s.push(t)),t.sections.push(e)}),s}let _=e=>{let{sections:s}=e,n=v(s);return(0,t.jsx)(t.Fragment,{children:n.map(e=>{let{sections:s,name:n,slug:r}=e;return s.length<=1?(0,t.jsx)(y,{section:s[0]},s[0].hash_id):(0,t.jsxs)(l.Accordion,{className:"flex-nowrap",openByDefault:!0,children:[(0,t.jsxs)(l.AccordionHeader,{className:"section-header",id:r,children:[(0,t.jsx)("span",{children:n}),(0,t.jsx)(l.AccordionCaret,{})]}),(0,t.jsx)(l.AccordionContent,{className:"p-1",children:s.map(e=>(0,t.jsxs)("div",{className:"py-2",children:[(0,t.jsx)("div",{className:"flex justify-center items-center heading-font text-md my-5",children:(0,t.jsx)("span",{className:"border-b-2 border-dashed px-4",children:e.name})}),(0,t.jsx)(g,{section:e})]},e.hash_id))})]},n)})})},N=()=>{let{sections:e}=(0,r.useContext)(p),[s,n]=(0,r.useState)(!1),[a,c]=(0,r.useState)([]),i=(0,r.useRef)(null),o=v(e),d=(0,f.Lm)();return(0,r.useEffect)(()=>{c([...i.current.querySelectorAll("a")].filter(e=>{let{x:s,width:n}=e.getBoundingClientRect(),{width:t}=e.parentElement.getBoundingClientRect();return t-72<s+n}).map(e=>e.text))},[d]),(0,t.jsxs)("div",{className:"sticky z-20 top-0 flex flex-nowrap w-full h-14 inset-0 bg-primary text-primary-contrast px-1 justify-between",children:[(0,t.jsx)("div",{className:"flex flex-nowrap px-4 space-x-4 justify-start items-center overflow-hidden w-full",ref:i,children:o.map(e=>(0,t.jsx)(l.A,{className:"flex heading-font justify-center flex-grow flex-shrink-0 text-white font-bold",href:"#".concat(e.slug),children:e.name},e.hash_id))}),a.length>0?(0,t.jsxs)(l.Select,{onOpen:()=>n(!0),onClose:()=>n(!1),isOpen:s,className:"flex items-center",children:[(0,t.jsxs)(l.SelectButton,{className:"heading-font text-white border-none",children:[(0,t.jsx)("span",{children:"More"}),(0,t.jsx)(l.SelectButtonCaret,{})]}),(0,t.jsx)(l.SelectDropdown,{children:o.filter(e=>a.includes(e.name)).map(e=>(0,t.jsx)(l.Button,{href:"#".concat(e.slug),onClick:()=>n(!1),className:"heading-font border-none w-full rounded-none",children:e.name},e.hash_id))})]}):null]})};var w=n(20743),b=n(94184),k=n.n(b),C=n(64491),F=n(82086),A=n(1634);let I=l.Journey.div("flex space-x-4 items-center p-2"),S=e=>(0,t.jsx)(l.Icon,{...e,className:k()(e.className,"w-10 h-10 flex-shrink-0 text-primary")});var z=()=>{let{brand:e,rewardModalOpen:s,setRewardModalOpen:n}=(0,r.useContext)(p),a=Math.ceil(e.min_reward_points/e.reward_points_per_order),c=a*e.reward_points_per_order,i=parseFloat("".concat(c/100)).toFixed(2),o="$".concat(parseFloat("".concat(e.reward_sub_total_threshold/100)).toFixed(2));return(0,t.jsxs)(l.Modal,{isOpen:s,onClose:()=>n(!1),children:[(0,t.jsx)(l.ModalHeader,{children:"Rewards"}),(0,t.jsxs)(l.ModalContent,{children:[(0,t.jsxs)("div",{className:"w-full flex justify-center items-center py-4",children:[(0,t.jsx)("span",{className:"text-2xl font-bold",children:"Place ".concat(a," Orders Online, Get ").concat(c," points!")}),(0,t.jsx)("span",{className:"text-sm text-green-500 px-1",children:"($".concat(i,")")})]}),(0,t.jsxs)(I,{children:[(0,t.jsx)(S,{src:C.Z}),(0,t.jsx)("span",{children:"Every online order placed with a subtotal over ".concat(o," will earn you points.\
1n            After ").concat(a," orders, you'll be able to redeem your ").concat(c," points for discounts.")})]}),(0,t.jsxs)(I,{children:[(0,t.jsx)(S,{src:F.Z}),(0,t.jsx)("span",{children:"When you place your online order, we will ask you for your email address which is used as the identifier for your reward points for next time!"})]}),(0,t.jsxs)(I,{children:[(0,t.jsx)(S,{src:A.Z}),(0,t.jsx)("span",{children:"Simply use the same email address each time you order and we'll automatically keep track your rewards."})]})]})]})},O=n(79127),B=n(85420),D=n(19819),Z=n(11163),E=n(94724),M=n(75953);let R=()=>{var e;let{setCartModalOpen:s,order:n,brand:a,seenUpsell:c,setSeenUpsell:i,setOrder:o,cartNotifications:d}=(0,r.useContext)(O.I);(0,Z.useRouter)();let x=(0,M.w)();return(null!==(e=null==n?void 0:n.items)&&void 0!==e?e:[]).length<=0?null:(0,t.jsxs)("div",{className:"sticky bottom-0 p-2 w-full hidden md:flex justify-center z-40 space-x-2",children:[(0,t.jsxs)(l.Button,{className:k()("space-x-2 items-center flex justify-between bg-gray-100 transition-colors duration-500 p-3 rounded-full overflow-visible"),onClick:()=>s(!0),children:[(0,t.jsx)("span",{children:"Cart"}),(0,t.jsxs)("div",{children:[(0,t.jsx)(E.k,{className:"top-1 right-1 pt-0.5"}),(0,t.jsx)(l.Icon,{src:B.Z})]})]}),(0,t.jsxs)(l.Button,{className:"primary",onClick:x,children:[(0,t.jsx)("span",{children:"Checkout"}),(0,t.jsx)(l.Icon,{src:D.Z})]})]})};var P=!0,T=e=>{let{brand:s,sections:n,system_down_reason:f,menu_notification:j,description:g}=e,[y,v]=(0,r.useState)(!1),{setScheduleModalOpen:b,user:k}=(0,r.useContext)(O.I),[C,F,A]=(0,l.useFetch)({url:"/api/brand/".concat(null==s?void 0:s.hash_id,"/next-time-open")}),I=null==C?void 0:C.next_time_open,S=null==C?void 0:C.vacation,B=null==C?void 0:C.is_offline,D=null==C?void 0:C.is_open;return(0,t.jsx)(p.Provider,{value:{brand:s,is_offline:B,menu_notification:j,rewardModalOpen:y,setRewardModalOpen:v,sections:n,is_open:D,description:g},children:(0,t.jsxs)(u.n,{brand:s,title:"".concat(s.name,"'s Menu"),description:"".concat(s.name,"'s at ").concat(s.location_display," official menu and online ordering."),className:"menu-page full-screen",children:[(0,t.jsx)(w.T,{className:"min-h-40 p-4",children:(0,t.jsxs)("div",{className:"z-20 flex flex-col bg-white border space-y-2 text-gray-700 p-6 text-black shadow-xl rounded-xl brand-menu-header-panel",children:[(0,t.jsxs)("div",{className:"border-b-2 border-dashed",children:[(0,t.jsx)("div",{className:"text-xl font-bold heading-font",children:g}),(0,t.jsx)("div",{className:"text-sm",children:s.location_display})]}),(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)(l.Suspense,{hook:A,children:I?(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row space-y-2 sm:space-y-0 space-x-2 text-sm",children:[(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)(l.Icon,{className:"flex-shrink-0",src:c.Z}),(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{children:"Open again"}),(0,t.jsx)(l.MomentsAgo,{className:"px-1",value:I}),(0,t.jsx)("span",{children:"on"}),(0,t.jsx)(l.DateFormat,{className:"pl-1",value:I,format:"E, h:mma"})]})]}),s.has_scheduled_orders?(0,t.jsxs)(l.Button,{className:"size-sm px-4",onClick:()=>b(!0),children:[(0,t.jsx)("span",{children:"Schedule Order Later"}),(0,t.jsx)(l.Icon,{className:"flex-shrink-0",src:i.Z})]}):null]}):(0,t.jsx)("div",{className:"flex items-center space-x-2 text-sm",children:s.is_onboarding?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.Icon,{className:"flex-shrink-0 text-red-500",src:o.Z}),(0,t.jsx)("span",{children:"Online Ordering Coming Soon"})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.Icon,{className:"flex-shrink-0",style:{color:D?"#1fdb1f":"red"},src:d.Z}),(0,t.jsx)("span",{children:D?"Online & Taking Orders Now":"Currently offline"})]})})}),s.has_rewards?(0,t.jsxs)("div",{className:"flex  flex-col sm:flex-row space-y-2 sm:space-y-0 justify-between space-x-2 text-sm",children:[(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)(l.Icon,{className:"flex-shrink-0",src:x.Z}),(0,t.jsx)("span",{children:"Earn ".concat(s.reward_points_per_order," reward points per order")})]}),(0,t.jsxs)(l.Button,{className:"size-sm px-4",onClick:()=>v(!0),children:[(0,t.jsx)("span",{children:"Our Rewards"}),(0,t.jsx)(l.Icon,{className:"flex-shrink-0",src:m.Z})]})]}):null,k?(0,t.jsxs)("div",{className:"flex justify-between items-center",children:[(0,t.jsxs)("div",{className:"text-sm space-x-2 flex items-center max-w-[200px]",children:[(0,t.jsx)(l.Icon,{className:"animate-bounce flex-shrink-0",src:h.Z}),(0,t.jsx)("span",{children:"Welcome back ".concat(k.name.split(" ")[0],", reorder your favorite again.")})]}),(0,t.jsx)(l.Button,{className:"size-sm px-4",href:"/user/orders",children:"Reorder"})]}):null]})]})}),(0,t.jsx)(N,{}),f&&(0,t.jsx)("div",{className:"bg-red-500 py-4 text-white text-lg flex justify-center items-center",children:f}),S&&(0,t.jsxs)("div",{className:"flex flex-col md:flex-row px-2 md:px-0 justify-center items-center font-bold my-4 space-x-1 text-lg",children:[(0,t.jsx)("span",{children:"We are temporarily offline from"}),(0,t.jsx)(l.DateFormat,{value:S.start_date,format:"M/d/y"}),(0,t.jsx)("span",{children:"to"}),(0,t.jsx)(l.DateFormat,{value:S.end_date,format:"M/d/y"})]}),j&&(0,t.jsx)("div",{className:"flex justify-center items-center my-4 font-bold space-x-2",children:(0,t.jsx)(a.D,{children:j})}),B&&(0,t.jsx)("div",{className:"flex justify-center items-center my-4",children:(0,t.jsx)("span",{children:"Sorry, our online ordering is temporarily offline, please call in your order directly at ".concat(s.phone_number,".")})}),(0,t.jsx)("div",{className:"w-full",children:(0,t.jsx)(_,{sections:n})}),(0,t.jsx)(R,{}),(0,t.jsx)(z,{})]})})}}},function(e){e.O(0,[86,849,888,774,179],function(){return e(e.s=93019)}),_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.