PageSourceSearch

https://www.antoniospizzafl.com/_next/static/chunks/849-8aa5a0b7c80e7f23.js

js antoniospizzafl.com collected 2026-10-02 01:23:11 UTC 7,806 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[849],{82849:function(e,n,r){r.d(n,{n:function(){return I}});var s=r(85893),t=r(50948),l=r(9008),a=r.n(l),o=r(67294),c=r(94184),i=r.n(c),d=r(11163),h=r(34270),u=r(85420),x=r(58067),m=r(79127),j=r(94724),f=r(75953);let v=e=>{let{children:n,activePattern:r,className:l}=e,a=(0,d.useRouter)().asPath.includes(r);return(0,s.jsx)(t.Button,{...e,className:i()(l,"flex-grow relative flex-col hover:bg-white hover:text-primary space-y-1 rounded-none border-none",{"text-primary":a,"text-gray-500":!a}),children:n})},p=t.Journey.div("text-xs"),g=e=>{let{setCartModalOpen:n,order:r,cartNotifications:l}=(0,o.useContext)(m.I),a=(0,f.w)();return(0,s.jsx)(t.Footer,{className:i()(e.className,"justify-center p-0 md:hidden sticky bottom-0 app-footer"),children:(0,s.jsxs)("div",{className:"max-w-[1080px] flex w-full",children:[(0,s.jsxs)(v,{href:"/menu",activePattern:"/menu",children:[(0,s.jsx)(t.Icon,{src:h.Z}),(0,s.jsx)(p,{children:"Menu"})]}),(0,s.jsxs)(v,{onClick:()=>n(!0),children:[(0,s.jsx)(t.Icon,{src:u.Z}),(0,s.jsx)(j.k,{className:"top-0 left-[52%] pt-0.5"}),(0,s.jsx)(p,{children:(0,s.jsx)("span",{children:"Cart"})})]}),r?(0,s.jsxs)(v,{onClick:a,activePattern:"/checkout",children:[(0,s.jsx)(t.Icon,{src:x.Z}),(0,s.jsx)(p,{children:"Checkout"})]}):null]})})},_=e=>{let{brand:n}=(0,o.useContext)(m.I);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(g,{...e}),(0,s.jsx)("div",{className:"justify-center hidden md:flex p-4",children:(0,s.jsxs)("div",{className:"content-container text-xs border-t border-gray-200 py-4",children:[(0,s.jsx)("div",{children:n.name}),(0,s.jsx)("div",{children:"".concat(n.address,", ").concat(n.city_name,", ").concat(n.state_abbreviation)}),(0,s.jsx)("div",{children:n.phone_number}),(0,s.jsxs)("div",{children:["\xa9"," ",new Date().getFullYear()," ","Pizzamico, LLC"]})]})})]})};var b=r(75357),N=r(87399);let y=e=>{let{brand:n}=(0,o.useContext)(m.I);return n.logo?(0,s.jsx)(t.Logo,{size:{w:200,h:50},src:(0,N.dU)(n.logo),href:"/"}):(0,s.jsx)(t.A,{className:"heading-font text-xl md:text-2xl font-bold color-inherit px-2",href:"/",children:n.name})},w=e=>{let{user:n}=e,r=(0,d.useRouter)(),{setUser:l,brand:a}=(0,o.useContext)(m.I),c=async()=>{await (0,t.enhancedFetch)("/api/auth/logout",{method:"POST"}),l(null),r.push("/").catch(console.error)};return(0,s.jsxs)(t.Select,{className:"hidden md:inline-flex",children:[(0,s.jsx)(t.SelectButton,{className:"nav-button",children:(0,s.jsx)(t.Avatar,{src:(0,N.dU)(n.avatar)})}),(0,s.jsxs)(t.SelectDropdown,{children:[n.is_pizzamico_team?(0,s.jsx)(t.Button,{className:"w-full border-none rounded-none",href:"/admin",children:"Admin"}):null,(0,s.jsx)(t.Button,{className:"w-full border-none rounded-none",href:"/user/orders",children:"Orders"}),(0,s.jsx)(t.Button,{className:"w-full border-none rounded-none",href:"/user/settings",children:"Settings"}),a.has_rewards?(0,s.jsx)(t.Button,{className:"w-full border-none rounded-none",href:"/user/rewards",children:"Rewards"}):null,(0,s.jsx)(t.Button,{className:"w-full border-none rounded-none",onClick:c,children:"Logout"})]})]})},k=e=>(0,s.jsx)(t.Button,{...e,className:i()(e.className,"w-full font-bold border-none"),children:e.children}),C=e=>{let{brand:n,backUrl:r}=e,{setCartModalOpen:l,order:a,user:c}=(0,o.useContext)(m.I);return(0,s.jsxs)(t.Nav,{children:[r?(0,s.jsx)(t.Button,{href:r,className:"absolute top-3 left-2 md:relative md:top-0 md:left-0 border-none text-lg",children:(0,s.jsx)(t.Icon,{src:b.Z})}):null,(0,s.jsx)("div",{className:"flex items-center flex-grow justify-center md:justify-start space-x-2 px-0 md:px-4",children:(0,s.jsx)(y,{})}),(0,s.jsxs)("div",{className:"items-center md:flex hidden",children:[n.links.map(e=>(0,s.jsx)(t.Button,{className:"nav-button",href:e.url.startsWith("http")?e.url:"/".concat(e.url),children:e.name},e.url)),(0,s.jsx)(t.Button,{href:"/location",className:"nav-button",children:"Location"}),c?(0,s.jsx)(w,{user:c}):(0,s.jsx)(t.Button,{className:"nav-button",href:"/login",children:"Login"}),(0,s.jsx)(t.Button,{className:"nav-button","aria-label":"Cart",onClick:()=>l(!0),children:(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)(t.Icon,{src:u.Z}),(0,s.jsx)(j.k,{})]})}),(0,s.jsxs)(t.Button,{href:"/menu",className:"nav-button primary-nav-button",children:[(0,s.jsx)(t.Icon,{src:h.Z}),(0,s.jsx)("span",{children:"Menu & Order Online"})]})]}),(0,s.jsx)(t.DrawerToggleButton,{className:"absolute right-2 top-2 md:hidden"}),(0,s.jsxs)(t.Drawer,{children:[(0,s.jsxs)("div",{children:[(0,s.jsx)(t.DrawerHeader,{children:(0,s.jsx)(y,{})}),n.links.map(e=>(0,s.jsx)(t.Button,{className:"w-full border-none",href:e.url,children:e.name},e.url)),(0,s.jsx)(k,{href:"/location",children:"Location"}),(0,s.jsx)(k,{href:"/menu",children:"Menu & Order Online"}),(0,s.jsx)(k,{href:"/cart",children:"Cart"}),c?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(k,{href:"/user/orders",children:"Orders"}),(0,s.jsx)(k,{href:"/user/settings",children:"Settings"}),n.has_rewards?(0,s.jsx)(k,{href:"/user/rewards",children:"Rewards"}):null]}):(0,s.jsx)(k,{href:"/login",children:"Login"})]}),(0,s.jsxs)("div",{className:"flex flex-grow items-end flex-col-reverse",children:[(0,s.jsx)(k,{href:"/returns",children:"Returns"}),(0,s.jsx)(k,{href:"/privacy",children:"Privacy"}),(0,s.jsx)(k,{href:"/terms",children:"Terms"})]})]})]})};function B(e){return!e||0===e.length}let I=e=>{var n;
1let{title:r,description:l,fullScreen:c,backUrl:d,children:h,className:u,brand:x}=e,m=function(e){var n,r,s,t,l,a;let o=B(null===(n=e.css_vars)||void 0===n?void 0:n.header_bg_color)?"30,30,30":null===(r=e.css_vars)||void 0===r?void 0:r.header_bg_color,c=B(null===(s=e.css_vars)||void 0===s?void 0:s.header_text_color)?"255,255,255":null===(t=e.css_vars)||void 0===t?void 0:t.header_text_color,i=B(null===(l=e.css_vars)||void 0===l?void 0:l.primary_color)?"178,30,35":e.css_vars.primary_color,d={...null!==(a=null==e?void 0:e.css_vars)&&void 0!==a?a:{},primary:i,secondary:(0,N.yj)(i,1.3),header_bg_color:o,header_text_color:c};return"\n  :root {\n    ".concat(Object.keys(d).map(e=>"--".concat(e,": ").concat(d[e]," !important")).join(";\n"),"\n  }\n  ")}(x);return(0,o.useEffect)(()=>{if(""===x.code_head)return;let e=document.createElement("script");return e.innerHTML=x.code_head,e.className="code-head",document.head.append(e),()=>{e.remove()}},[x.code_head]),(0,s.jsxs)(t.Page,{className:u,children:[(0,s.jsxs)(a(),{children:[(0,s.jsx)("title",{children:r}),(0,s.jsx)("meta",{name:"description",content:l}),(0,s.jsx)("link",{rel:"icon",href:"/favicon.ico"}),(0,s.jsx)("link",{rel:"preload",href:"/fonts/Lato/Lato-Regular.ttf",as:"font",type:"font/ttf",crossOrigin:"anonymous"}),(null===(n=x.css_vars)||void 0===n?void 0:n.header_font)?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("link",{rel:"preload",href:"https://fonts.googleapis.com/css?family=".concat(x.css_vars.header_font),as:"style"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=".concat(x.css_vars.header_font)})]}):null,""!==x.css_style?(0,s.jsx)("style",{children:x.css_style}):null,(0,s.jsx)("style",{children:m}),(0,s.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0, viewport-fit=cover, maximum-scale=1, user-scalable=0"})]}),(0,s.jsx)(C,{brand:x,backUrl:d}),(0,s.jsx)(t.Content,{className:i()("justify-start",{"p-0":!!c}),children:h}),(0,s.jsx)(_,{})]})}},94724:function(e,n,r){r.d(n,{k:function(){return c}});var s=r(85893),t=r(67294),l=r(94184),a=r.n(l),o=r(79127);let c=e=>{let{className:n}=e,{order:r,cartNotifications:l}=(0,t.useContext)(o.I);return(null==r?void 0:r.items.length)?(0,s.jsx)("div",{className:a()("cart-item-count transition-colors duration-500",{"animate-bounce bg-green-400":l.length>0},n),children:null==r?void 0:r.items.length}):null}}}]);

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.