PageSourceSearch

https://www.dugansbar.com/_next/static/chunks/92-cbef4743fbd1b12b.js

js dugansbar.com collected 2026-10-08 04:00:58 UTC 7,835 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[92],{62907:function(e,t,n){n.d(t,{Gz:function(){return u}});var i=n(52322),r=n(2784),o=n(53237),l=n(97421),a=n(20496);let s=a.Rj,c=a.om,d=a.Qn;function u(e){let{onRetry:t,variant:n="panel",heading:o=s,message:u,retryLabel:m=a.j6,retryingLabel:b="Trying again…",isRetrying:v=!1,"data-testid":j,retryTestId:y}=e,w=(0,r.useRef)(!1),$=(0,r.useRef)(null),k=(0,r.useCallback)(()=>{w.current=!1,$.current&&(clearTimeout($.current),$.current=null)},[]);(0,r.useEffect)(()=>{v||k()},[v,k]),(0,r.useEffect)(()=>k,[k]);let z=t?(0,i.jsx)(l.Db,{"data-css-override":"StyledPrimaryButton",type:"button","data-testid":y,size:"banner"===n?"small":void 0,disabled:v,onClick:()=>{!t||v||w.current||(w.current=!0,$.current=setTimeout(k,1e3),t())},children:v?b:m}):null;return"banner"===n?(0,i.jsxs)(x,{role:"alert","data-testid":j,children:[(0,i.jsx)(f,{children:null!=u?u:d}),z]}):(0,i.jsxs)(p,{role:"alert","data-testid":j,children:[(0,i.jsx)(g,{children:o}),(0,i.jsx)(h,{children:null!=u?u:c}),z]})}let p=(0,o.zo)("div",{display:"flex",flexDirection:"column",alignItems:"center",gap:"$4",padding:"$14",textAlign:"center"}),g=(0,o.zo)("h2",{fontSize:"$text400",fontWeight:"bold",textAlign:"center",margin:0}),h=(0,o.zo)("p",{fontSize:"$text200",textAlign:"center",margin:0}),x=(0,o.zo)("div",{display:"flex",flexDirection:"column",gap:"8px",padding:"12px 16px",marginBottom:"16px",border:"1px solid var(--connection-error__border-color, #d93025)",borderRadius:"4px",backgroundColor:"var(--connection-error__background-color, #fdecea)",color:"var(--connection-error__color, #5f1414)","@sm":{flexDirection:"row",alignItems:"center",justifyContent:"center"}}),f=(0,o.zo)("p",{margin:"0 !important",fontSize:"14px",lineHeight:"20px",whiteSpace:"pre-line",paddingRight:"12px",paddingLeft:"12px"})},25746:function(e,t,n){n.d(t,{R:function(){return d}});var i=n(40024),r=n(47661),o=n(75470),l=n(17609),a=n(97549),s=n(62638),c=n(28461);function d(e){var t,n,d;let u,{location:p,wantedAt:g,maxItems:h=15}=e,{popular_products:x}=(0,o.v9)(e=>e.app.cmsConfig.webConfig.menu),{popular_products_header:f}=(0,o.v9)(e=>e.app.cmsConfig.strings.store);u=(0,a.P$)(window.location.host);let m=(0,s.xj)(p),b=(0,r.a)({queryKey:["popular-items",{id:m,wantedAt:null!=g?g:"asap"}],queryFn:()=>{if(void 0===m)throw Error("usePopularItems requires a resolved location id, received ".concat(String(p)));return(0,i.ji)({locationId:m,maxItems:h,wantedAt:g},{client:(0,l.d9)({origin:u})})},enabled:x&&void 0!==m,refetchOnWindowFocus:!1,staleTime:1/0,keepPreviousData:!0});return{response:b,count:null!==(d=null==b?void 0:null===(n=b.data)||void 0===n?void 0:null===(t=n.products)||void 0===t?void 0:t.length)&&void 0!==d?d:0,title:f,enabled:x,getItem:function(e){return(0,c.P_)(e.products[0])}}}},9381:function(e,t,n){n.d(t,{$:function(){return v}});var i=n(52322),r=n(53237),o=n(926),l=n(74115),a=n(73695),s=n(46956);function c(e){let{image:t,name:n,description:r,calories:c,price:f,onClick:m}=e,{primary_border_color:b,border_radius:v}=(0,a.$E)("global"),{primary_font:j}=(0,a.$E)("text"),{color:y}=(0,s.l)(j),{hide_calories:w,hide_price:$,hide_description:k,hide_description_mobile:z,hide_image:C}=(0,a.$E)("menu_product_card");return(0,i.jsxs)(x,{onClick:m,direction:"vertical",css:{border:"1px solid ".concat(b),borderRadius:"".concat(v,"px"),color:y},children:[(0,i.jsx)(l.H,{condition:!C,children:(0,i.jsx)(d,{children:t&&(0,i.jsx)(u,{src:t,alt:n})})}),(0,i.jsxs)(p,{css:{flex:"1 0 0",fontSize:"$text200",padding:"$3 $2 $6"},direction:"vertical",children:[(0,i.jsx)(g,{children:n}),(0,i.jsx)(l.H,{condition:!k,children:(0,i.jsx)(h,{hideOnMobile:z,children:r})}),(0,i.jsxs)(o.Kq,{css:{gap:0,marginTop:"auto",flexDirection:"column","@sm":{flexDirection:"row",gap:"$2"}},position:"center",children:[(0,i.jsx)(l.H,{condition:!$,children:(0,i.jsx)("strong",{children:f})}),(0,i.jsx)(l.H,{condition:!w,children:(0,i.jsx)("span",{children:c})})]})]})]})}let d=(0,r.zo)("div",{aspectRatio:"1 / 1",backgroundColor:"$shade200",overflow:"hidden",transition:"all .4s ease",width:"100%"}),u=(0,r.zo)("img",{display:"block",height:"100%",objectFit:"cover",transition:"all .4s ease",width:"100%",maxWidth:300}),p=(0,r.zo)(o.Kq,{transition:"all .2s ease"}),g=(0,r.zo)("h3",{fontSize:"1rem",margin:0}),h=(0,r.zo)("p",{margin:0,variants:{hideOnMobile:{false:{display:"block"},true:{display:"none","@md":{display:"block"}}}}}),x=(0,r.zo)(o.Kq,{cursor:"pointer",height:"100%",overflow:"hidden",textAlign:"center",transition:"all .4s ease",transform:"translate3d(0,
10,0)",["&:hover ".concat(u)]:{transform:"scale(1.1)"},["&:hover ".concat(d)]:{backgroundColor:"$shade300"}});var f=n(2784),m=n(124),b=n(28500);function v(e){let{children:t,items:n,count:r,onClick:a}=e,{backProps:s,nextProps:d,itemProps:u,dots:p}=function(e){let{count:t,perPage:n=1}=e,[i,r]=(0,f.useState)(0),[o,l]=(0,f.useState)(!0),[a,s]=(0,f.useState)(!0),[c,d]=(0,f.useState)(0),[u,p]=(0,f.useState)(Math.ceil(t/n));return(0,f.useEffect)(()=>{let e=0===i,r=i===u-1;l(!!e),s(!!r),t<=n||(r&&t%n!=0?d(-((i*n-(n-t%n))*100)):d(-(i*n*100)))},[i,t,n,u]),(0,f.useEffect)(()=>{p(Math.ceil(t/n))},[t,n]),{backProps:{onClick:function(){r(e=>o?e:e-1)},disabled:o},nextProps:{onClick:function(){r(e=>a?e:e+1)},disabled:a},itemProps:{style:{transform:"translateX(".concat(c,"%)")}},dots:Array.from(Array(u).keys()).map(e=>({label:e+1,props:{onClick:()=>r(e),active:i===e}})),pages:u,page:i,setPage:r}}({count:r,perPage:5});return n.length?(0,i.jsxs)(j,{"data-testid":"popular-items-widget",children:[t,(0,i.jsx)(l.H,{condition:r>5,children:(0,i.jsx)(o.xu,{"data-testid":"popular-items-widget-controls",css:{display:"none","@lg":{display:"block"}},children:(0,i.jsxs)(o.Kq,{align:"center",position:"trailing",children:[(0,i.jsx)(w,{...s,css:{transform:"rotate(180deg)"},children:(0,i.jsx)(m.Z.Caret,{title:"previous"})}),(0,i.jsx)(w,{...d,children:(0,i.jsx)(m.Z.Caret,{title:"next"})})]})})}),(0,i.jsx)(o.xu,{css:{margin:"0 -$3","@md":{margin:"0 -$8"},"@lg":{margin:"0 -$3"}},children:(0,i.jsxs)(o.Kq,{align:"fill",gap:"0",css:{overflow:"scroll",padding:"$7 0 0",scrollSnapType:"x mandatory",scrollbarWidth:"none","-ms-overflow-style":"none","&::-webkit-scrollbar":{"-webkit-appearance":"none",display:"none",height:0,width:0},"@lg":{justifyContent:r>5?"flex-start":"center",overflow:"hidden"}},children:[n.map((e,t)=>(0,i.jsx)(y,{"data-testid":"popular-items-widget-card",css:{transition:"transform 0.6s ease","@lg":{...u.style}},children:(0,i.jsx)(c,{image:(0,b.Wr)(e,{width:300}),name:e.name,description:e.description,calories:e.pretty_calories,price:e.pretty_price,onClick:()=>a(e,t)})},e.id)),(0,i.jsx)(y,{css:{width:"$1","@lg":{display:"none"}}})]})}),(0,i.jsx)(l.H,{condition:r>5,children:(0,i.jsx)(o.xu,{css:{display:"none","@lg":{display:"block"}},children:(0,i.jsx)(o.Kq,{position:"center",gap:"$6",css:{padding:"$8 0 0","@lg":{padding:"$12 0 0"}},children:p.map((e,t)=>(0,i.jsx)($,{...e.props,children:e.label},t))})})})]}):null}let j=(0,r.zo)("div",{textAlign:"center"}),y=(0,r.zo)("div",{flex:"none",padding:"0 0 0 $2",scrollSnapAlign:"start",width:"40%","@sm":{padding:"0 0 0 $4",width:"30%"},"@lg":{padding:"0 $3",width:"20%"}}),w=(0,r.zo)("button",{all:"unset",borderRadius:"$sm",cursor:"pointer",svg:{display:"block"},"&:focus":{backgroundColor:"rgba(0,0,0,.08)"},variants:{disabled:{true:{cursor:"default",opacity:.2}}}}),$=(0,r.zo)("button",{all:"unset",backgroundColor:"$accentPrimary",borderRadius:"100%",color:"$accentPrimary",height:"$3",opacity:.1,overflow:"hidden",transition:"all .2s ease",width:"$3",variants:{active:{true:{opacity:1,"&:hover, &:focus":{opacity:1}}}},"&:hover":{opacity:.5},"&:focus":{boxShadow:"0 0 0 2px white, 0 0 0 4px currentColor",opacity:.5},"@lg":{cursor:"pointer"}})}}]);
2//# sourceMappingURL=92-cbef4743fbd1b12b.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.