1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="ed0e5f2a-81f8-45eb-0d30-428dbad44b94")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,622795,e=>{"use strict";var t=e.i(843476),r=e.i(522016),a=e.i(975157);let s={ink:"#FFFFFF",muted:"rgba(255, 255, 255, 0.9)",primary:"rgba(255, 255, 255, 0.94)",primaryFg:"#0B0B0F",accent:"rgba(255, 255, 255, 0.86)",accentFg:"#0B0B0F",fill:"var(--lg-fill, rgba(255, 255, 255, 0.94))",fillFg:"var(--lg-fill-fg, #0B0B0F)",fillRing:"var(--lg-fill-ring, none)",bg:"transparent",bg2:"rgba(12, 10, 9, 0.4)",secondary:"var(--brand-secondary, #8A8278)",display:"var(--font-heading, var(--font-inter), Inter, system-ui, sans-serif)",body:"var(--font-body, var(--font-inter), Inter, system-ui, sans-serif)",pageShell:"mx-auto max-w-[1400px] px-4 sm:px-6 lg:px-8",radius:"rounded-[32px]"};function l(e){return{fontFamily:s.body,color:s.ink,...e}}function i({children:e,index:r}){return(0,t.jsxs)("span",{className:"inline-flex w-fit items-center gap-2 self-start rounded-full border border-white/15 bg-black/35 px-3 py-1 text-[11px] font-semibold uppercase tracking-[0.16em] backdrop-blur-md",style:{color:s.ink,fontFamily:s.display},children:[r?(0,t.jsx)("span",{className:"tabular-nums",style:{color:s.primary},children:r}):(0,t.jsx)("span",{className:"h-1.5 w-1.5 rounded-full",style:{backgroundColor:s.primary},"aria-hidden":!0}),e]})}function n({href:e,children:s,variant:l="fill",className:i,target:n,rel:o}){return(0,t.jsx)(r.default,{href:e,target:n,rel:o,className:(0,a.cn)("btn-touch lg-glass-cta",`lg-glass-cta-${l}`,i),children:s})}function o({children:e,className:r,as:l="h2"}){return(0,t.jsx)(l,{className:(0,a.cn)("m-0 text-[28px] font-semibold leading-[1.1] tracking-tight sm:text-[40px] lg:text-[46px]",r),style:{color:s.ink,fontFamily:s.display},children:e})}function c({children:e,className:r}){return(0,t.jsx)("div",{className:(0,a.cn)("lg-glass w-fit max-w-2xl rounded-[32px] px-6 py-5 sm:px-7 sm:py-6",r),children:e})}function d(e){let t=e.content?.bannerImageUrl?.trim();if(t)return t;let r=e.theme?.heroImages?.[0]?.imageUrl?.trim();return r||e.theme?.bgImages?.find(e=>"hero"===e.section)?.imageUrl?.trim()||null}e.s(["GLASS",0,s,"GlassCopy",()=>c,"GlassCta",()=>n,"GlassKicker",()=>i,"GlassTitle",()=>o,"glassSectionStyle",()=>l,"resolveLiquidGlassBackdropUrl",()=>d])},720037,e=>{"use strict";var t=e.i(843476),r=e.i(577767),a=e.i(271645),s=e.i(225525),l=e.i(664659),i=e.i(655900),n=e.i(299023),o=e.i(788699),c=e.i(107233),d=e.i(201928),m=e.i(727612),u=e.i(985035),x=e.i(317458),h=e.i(708651),p=e.i(943764),f=e.i(531920),g=e.i(282324),b=e.i(692385),y=e.i(205246),j=e.i(587508),N=e.i(697689),v=e.i(360735),w=e.i(628341),C=e.i(734352),k=e.i(622795);function S({data:e}){let S=(0,u.useCurrency)(),M=(0,x.useCartStore)(x.selectItems),I=(0,x.useCartStore)(x.selectItemCount),P=(0,p.useShowMenuImages)(),$="dark"===(0,f.useNonTemplateColorMode)(),q=(0,x.useCartStore)(e=>e.updateQuantity),A=(0,x.useCartStore)(e=>e.removeItem),U=(0,x.useCartStore)(e=>e.clearCart),L=(0,x.useCartStore)(e=>e.addItem),F=(0,x.useCartStore)(e=>e.updateItem),T=(0,x.useCartStore)(e=>e.restaurantId),R=(0,C.useConfirmStore)(e=>e.confirm),[E,G]=(0,a.useState)(null),[D,O]=(0,a.useState)(!1),{promotions:z,lineDiscounts:B,promoDiscount:Y,handleAddOfferTarget:Q,setSelectedPromotion:_}=(0,y.useThemedCartPromotions)(),{categories:K}=(0,r.useLazyFullMenu)(e.menuFullData),W=(0,a.useMemo)(()=>{let e=new Map;for(let t of K)for(let r of t.products)e.set(r.id,r);return e},[K]),V=(0,a.useMemo)(()=>M.find(e=>e.id===E)??null,[M,E]),H=(0,a.useMemo)(()=>{if(!V)return null;let e=W.get(V.productId);return e||{id:V.productId,name:V.productName,price:V.unitPrice,imageUrl:V.imageUrl??null,shortDescription:null,fullDescription:null,type:"REGULAR",addonGroups:[]}},[V,W]),J=Math.max(0,(0,a.useMemo)(()=>M.reduce((e,t)=>{let r=t.addons.reduce((e,t)=>
2e+t.price*t.quantity,0);return e+(t.unitPrice+r)*t.quantity},0),[M])-Y),X=0===M.length,{blocked:Z,guard:ee}=(0,v.useCartMinOrderGuard)(),et=async()=>{await R("All items in your cart will be removed. This cannot be undone.",{title:"Clear your entire cart?",variant:"danger",confirmLabel:"Clear cart"})&&U()};return(0,t.jsx)("div",{className:$?"lg-dark":void 0,style:{fontFamily:k.GLASS.body},children:(0,t.jsxs)("div",{className:"lg-glass flex max-h-[calc(100vh-var(--site-header-offset,var(--site-header-height,4rem))-var(--menu-discovery-sticky-height,5.75rem)-1.5rem)] flex-col overflow-hidden rounded-[28px]",children:[(0,t.jsxs)("div",{className:"flex shrink-0 items-center justify-between gap-2 px-5 py-3",children:[(0,t.jsxs)("h3",{className:"text-[15px] font-bold leading-none",style:{color:k.GLASS.ink},children:["Your Cart"," ",(0,t.jsxs)("span",{className:"font-semibold",style:{color:k.GLASS.muted},children:["(",I," ",1===I?"Item":"Items",")"]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-0.5",children:[!X&&T?(0,t.jsxs)("button",{type:"button",onClick:et,className:"inline-flex items-center gap-1 rounded-full px-2 py-1 text-[11px] font-semibold hover:bg-white/10",style:{color:k.GLASS.accent},"aria-label":"Clear cart",children:[(0,t.jsx)(m.Trash2,{className:"h-3.5 w-3.5"}),"Clear"]}):null,(0,t.jsx)("button",{type:"button",onClick:()=>O(e=>!e),className:"grid h-7 w-7 place-items-center rounded-full hover:bg-white/10",style:{color:k.GLASS.ink},"aria-expanded":!D,"aria-label":D?"Expand cart":"Collapse cart",children:D?(0,t.jsx)(l.ChevronDown,{className:"h-4 w-4"}):(0,t.jsx)(i.ChevronUp,{className:"h-4 w-4"})})]})]}),D?null:X?(0,t.jsx)("div",{className:"px-5 pb-6 pt-2",children:(0,t.jsxs)("div",{className:"lg-glass-tint flex min-h-[12.5rem] flex-col items-center justify-center rounded-2xl px-5 py-8 text-center",children:[(0,t.jsx)("div",{className:"relative mb-4 flex items-center justify-center empty-cart-float",children:(0,t.jsx)("div",{className:"lg-glass relative grid h-16 w-16 place-items-center rounded-2xl","aria-hidden":!0,children:(0,t.jsx)(d.ShoppingCart,{className:"h-7 w-7",strokeWidth:1.6,style:{color:k.GLASS.accent}})})}),(0,t.jsx)("p",{className:"text-[15px] font-semibold",style:{color:k.GLASS.ink},children:"Your cart is empty"}),(0,t.jsx)("p",{className:"mt-1.5 max-w-[200px] text-sm leading-relaxed",style:{color:k.GLASS.muted},children:"Add something delicious from the menu"})]})}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("ul",{className:`min-h-0 space-y-4 px-5 pb-3 pt-2 ${M.length>=5?"premium-cart-scroll max-h-[calc(4*7.75rem+3*1rem+1.75rem)] overflow-y-auto pr-3":"overflow-visible"}`,children:M.map(e=>{let r=(e.unitPrice+e.addons.reduce((e,t)=>e+t.price*t.quantity,0))*e.quantity;return(0,t.jsxs)("li",{className:"flex items-start gap-3",children:[(0,t.jsx)("div",{className:"relative h-14 w-14 shrink-0 overflow-hidden rounded-xl bg-white/10",children:P&&e.imageUrl?(0,t.jsx)(s.default,{src:e.imageUrl,alt:e.productName,fill:!0,sizes:"56px",className:"object-cover"}):(0,t.jsx)(g.MenuItemPlaceholder,{size:"sm",circle:!1,className:"h-full w-full"})}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,t.jsx)("p",{className:"truncate text-[15px] font-semibold",style:{color:k.GLASS.ink},children:e.productName}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-0.5",children:[(0,t.jsx)("button",{type:"button",onClick:()=>G(e.id),className:"grid h-7 w-7 place-items-center rounded-full hover:bg-white/10",style:{color:k.GLASS.accent},"aria-label":`Edit ${e.productName}`,children:(0,t.jsx)(o.Pencil,{className:"h-3.5 w-3.5"})}),(0,t.jsx)("button",{type:"button",onClick:()=>A(e.id),className:"grid h-7 w-7 place-items-center rounded-full hover:bg-white/10",style:{color:k.GLASS.accent},"aria-label":`Delete ${e.productName}`,children:(0,t.jsx)(m.Trash2,{className:"h-3.5 w-3.5"})})]})]}),(0,t.jsx)("div",{className:"mt-0.5 text-sm font-semibold",style:{color:k.GLASS.ink},children:(0,t.jsx)(b.ItemPrice,{original:r,discount:B.get(e.id)?.discount??0,plainClassName:"text-sm font-semibold"})}
2),(0,N.visibleAddonLines)(e.addons).length>0?(0,t.jsxs)("p",{className:"mt-0.5 text-[11px] leading-tight",style:{color:k.GLASS.muted},children:["+"," ",(0,N.visibleAddonLines)(e.addons).map(e=>`${e.addonName}${e.quantity>1?` x${e.quantity}`:""}`).join(", ")]}):null,(0,t.jsxs)("div",{className:"lg-glass mt-2 inline-flex items-center rounded-full px-1 py-0.5",children:[(0,t.jsx)("button",{type:"button",onClick:()=>e.quantity<=1?A(e.id):q(e.id,e.quantity-1),className:"grid h-7 w-7 place-items-center",style:{color:k.GLASS.ink},"aria-label":`Decrease ${e.productName}`,children:(0,t.jsx)(n.Minus,{className:"h-3.5 w-3.5"})}),(0,t.jsx)("span",{className:"min-w-[1.25rem] text-center text-sm font-semibold tabular-nums",style:{color:k.GLASS.ink},children:e.quantity}),(0,t.jsx)("button",{type:"button",onClick:()=>q(e.id,e.quantity+1),className:"grid h-7 w-7 place-items-center",style:{color:k.GLASS.ink},"aria-label":`Increase ${e.productName}`,children:(0,t.jsx)(c.Plus,{className:"h-3.5 w-3.5"})})]})]})]},e.id)})}),(0,t.jsx)(y.CartOfferSection,{className:"px-5 pb-2",promotions:z,onAddOfferTarget:Q,onSelectPromotion:_}),(0,t.jsx)("div",{className:"border-t border-white/15 px-5 py-4",children:(0,t.jsxs)("div",{className:"flex items-baseline justify-between text-[15px] font-bold uppercase tracking-[0.04em]",style:{color:k.GLASS.ink,fontFamily:k.GLASS.display},children:[(0,t.jsx)("span",{children:"Subtotal"}),(0,t.jsx)("span",{className:"tabular-nums normal-case tracking-normal",children:(0,j.formatPrice)(J,S)})]})}),(0,t.jsxs)("div",{className:"px-5 pb-5",children:[(0,t.jsx)(v.CartOrderTypeToggle,{className:"mb-3"}),(0,t.jsx)(w.CheckoutLink,{className:"lg-glass-cta lg-glass-cta-fill flex w-full items-center justify-center rounded-2xl py-3.5",style:{opacity:Z?.5:void 0},onClick:ee,children:"View Cart & Checkout"})]})]}),V&&H?(0,t.jsx)(h.AddToCartModal,{product:H,existingItem:V,onAdd:L,onUpdate:F,onClose:()=>G(null)}):null]})})}e.s(["default",()=>S])},875030,e=>{"use strict";var t=e.i(843476);let r={header:"var(--brand-secondary, #0e0d0c)",ink:"var(--brand-text, #0e0d0c)",cream:"var(--brand-bg, #f7f1e4)",creamCard:"var(--brand-bg2, #fcfaf5)",gold:"var(--brand-primary, #e8a020)",goldDeep:"color-mix(in srgb, var(--brand-primary, #e8a020) 82%, #000)",goldFg:"var(--brand-primary-foreground, #111111)",red:"var(--brand-accent, #7a0b10)",maroon:"var(--brand-accent, #7a0b10)",maroonDeep:"color-mix(in srgb, var(--brand-accent, #7a0b10) 78%, #000)",maroonFg:"var(--brand-accent-foreground, #ffffff)",card:"var(--brand-secondary, #0e0d0c)",footer:"var(--brand-secondary, #0e0d0c)",muted:"rgba(255,255,255,0.72)",script:'var(--font-dancing-script), "Dancing Script", cursive',display:"var(--font-inter), Inter, system-ui, sans-serif",body:"var(--font-inter), Inter, system-ui, sans-serif",pageGutter:"px-4 sm:px-5 lg:px-6",pageWidth:"mx-auto max-w-[1400px]",pageShell:"mx-auto max-w-[1400px] px-4 sm:px-5 lg:px-6",splitCardH:"lg:h-[520px]"};function a({children:e,align:a="center",as:l="h2"}){return(0,t.jsxs)("div",{className:`flex items-center gap-3 ${"center"===a?"justify-center":"justify-start"}`,children:[(0,t.jsx)(s,{}),(0,t.jsx)(l,{className:"m-0 shrink-0 text-[15px] font-bold uppercase tracking-[0.22em] sm:text-base md:text-[17px]",style:{color:r.ink,fontFamily:r.display},children:e}),(0,t.jsx)(s,{mirror:!0})]})}function s({mirror:e=!1}){return(0,t.jsxs)("span",{className:`hidden items-center gap-1.5 sm:inline-flex ${e?"flex-row-reverse":""}`,"aria-hidden":!0,children:[(0,t.jsx)("span",{className:"block h-px w-8 md:w-12",style:{backgroundColor:r.gold}}),(0,t.jsx)("span",{className:"block h-2 w-2 rotate-45",style:{backgroundColor:r.gold}})]})}function l(e){let t=e.trim().split(/\s+/).filter(Boolean);return 0===t.length?{top:"",gold:""}:1===t.length?{top:"",gold:t[0]}:{top:t.slice(0,-1).join(" "),gold:t[t.length-1]}}e.s(["PREMIUM",0,r,"PremiumFlourishTitle",()=>a,"splitDisplayName",()=>l])},655900,e=>{"use strict";let t=(0,e.i(475254).default)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);e.s(["ChevronUp",()=>t],655900)},269392,e=>{"use strict";var t=e.i(843476),r=e.i(577767),a=e.i(271645),s=e.i(225525),l=e.i(664659),i=e.i(6
255900),n=e.i(299023),o=e.i(788699),c=e.i(107233),d=e.i(201928),m=e.i(727612),u=e.i(985035),x=e.i(317458),h=e.i(708651),p=e.i(943764),f=e.i(282324),g=e.i(692385),b=e.i(205246),y=e.i(587508),j=e.i(697689),N=e.i(360735),v=e.i(628341),w=e.i(734352),C=e.i(875030);function k({data:e}){let k=(0,u.useCurrency)(),S=(0,x.useCartStore)(x.selectItems),M=(0,x.useCartStore)(x.selectItemCount),I=(0,p.useShowMenuImages)(),P=(0,x.useCartStore)(e=>e.updateQuantity),$=(0,x.useCartStore)(e=>e.removeItem),q=(0,x.useCartStore)(e=>e.clearCart),A=(0,x.useCartStore)(e=>e.addItem),U=(0,x.useCartStore)(e=>e.updateItem),L=(0,x.useCartStore)(e=>e.restaurantId),F=(0,w.useConfirmStore)(e=>e.confirm),[T,R]=(0,a.useState)(null),[E,G]=(0,a.useState)(!1),{promotions:D,lineDiscounts:O,promoDiscount:z,handleAddOfferTarget:B,setSelectedPromotion:Y}=(0,b.useThemedCartPromotions)(),{categories:Q}=(0,r.useLazyFullMenu)(e.menuFullData),_=(0,a.useMemo)(()=>{let e=new Map;for(let t of Q)for(let r of t.products)e.set(r.id,r);return e},[Q]),K=(0,a.useMemo)(()=>S.find(e=>e.id===T)??null,[S,T]),W=(0,a.useMemo)(()=>{if(!K)return null;let e=_.get(K.productId);return e||{id:K.productId,name:K.productName,price:K.unitPrice,imageUrl:K.imageUrl??null,shortDescription:null,fullDescription:null,type:"REGULAR",addonGroups:[]}},[K,_]),V=Math.max(0,(0,a.useMemo)(()=>S.reduce((e,t)=>{let r=t.addons.reduce((e,t)=>e+t.price*t.quantity,0);return e+(t.unitPrice+r)*t.quantity},0),[S])-z),H=0===S.length,{blocked:J,guard:X}=(0,N.useCartMinOrderGuard)(),Z=async()=>{await F("All items in your cart will be removed. This cannot be undone.",{title:"Clear your entire cart?",variant:"danger",confirmLabel:"Clear cart"})&&q()};return(0,t.jsx)("div",{className:"pt-2",style:{backgroundColor:C.PREMIUM.cream,boxShadow:`0 -1rem 0 ${C.PREMIUM.cream}`},children:(0,t.jsxs)("div",{className:"flex max-h-[calc(100vh-var(--site-header-height,4rem)-0.5rem)] flex-col overflow-hidden rounded-2xl bg-white",style:{fontFamily:C.PREMIUM.body},children:[(0,t.jsxs)("div",{className:"flex shrink-0 items-center justify-between gap-2 px-5 py-2",style:{backgroundColor:C.PREMIUM.maroon},children:[(0,t.jsxs)("h3",{className:"text-[15px] font-bold leading-none text-white",children:["Your Cart"," ",(0,t.jsxs)("span",{className:"font-semibold text-white/80",children:["(",M," ",1===M?"Item":"Items",")"]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-0.5",children:[!H&&L?(0,t.jsxs)("button",{type:"button",onClick:Z,className:"inline-flex items-center gap-1 rounded-md px-1.5 py-1 text-[11px] font-semibold text-white/90 hover:bg-white/10","aria-label":"Clear cart",children:[(0,t.jsx)(m.Trash2,{className:"h-3.5 w-3.5"}),"Clear"]}):null,(0,t.jsx)("button",{type:"button",onClick:()=>G(e=>!e),className:"grid h-7 w-7 place-items-center rounded-md text-white hover:bg-white/10","aria-expanded":!E,"aria-label":E?"Expand cart":"Collapse cart",children:E?(0,t.jsx)(l.ChevronDown,{className:"h-4 w-4"}):(0,t.jsx)(i.ChevronUp,{className:"h-4 w-4"})})]})]}),E?null:H?(0,t.jsx)("div",{className:"px-5 pb-6 pt-5",children:(0,t.jsxs)("div",{className:"relative flex min-h-[12.5rem] flex-col items-center justify-center overflow-hidden rounded-2xl px-5 py-8 text-center",style:{background:`linear-gradient(160deg, color-mix(in srgb, ${C.PREMIUM.gold} 14%, ${C.PREMIUM.cream}) 0%, ${C.PREMIUM.creamCard} 45%, color-mix(in srgb, ${C.PREMIUM.maroon} 10%, ${C.PREMIUM.cream}) 100%)`,boxShadow:`inset 0 0 0 1px color-mix(in srgb, ${C.PREMIUM.gold} 16%, transparent)`},children:[(0,t.jsx)("div",{className:"relative mb-4 flex items-center justify-center empty-cart-float",children:(0,t.jsx)("div",{className:"relative grid h-16 w-16 place-items-center rounded-2xl",style:{background:`linear-gradient(135deg, color-mix(in srgb, ${C.PREMIUM.gold} 24%, white), color-mix(in srgb, ${C.PREMIUM.maroon} 16%, white))`,boxShadow:`0 6px 16px color-mix(in srgb, ${C.PREMIUM.maroon} 14%, transparent)`},"aria-hidden":!0,children:(0,t.jsx)(d.ShoppingCart,{className:"h-7 w-7",strokeWidth:1.6,style:{color:C.PREMIUM.maroon}})})}),(0,t.jsx)("p",{className:"text-[15px] font-semibold",style:{color:C.PREMIUM.ink,fontFamily:C.PREMIUM.body},children:"Your cart is empty"}),(0,t.jsx)("p",{className:"mt-1.5 max-w-[200px] text-sm leading-relaxed text-neutral-500",children:"Add something delicious from the menu"})]})}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("ul",{className:`min-h-0 space-y-4 px-5 pb-3 pt-4 ${S.length>=5?"premium-cart-scroll max-h-[calc(4*7.75rem+3*1rem+1.75rem)] overflow-y-auto pr-3":"overflow-visible"}`,children:S.map(e=>{let r=(e.unitPrice+e.addons.reduce((e,t)=>
2e+t.price*t.quantity,0))*e.quantity;return(0,t.jsxs)("li",{className:"flex items-start gap-3",children:[(0,t.jsx)("div",{className:"relative h-14 w-14 shrink-0 overflow-hidden rounded-xl bg-neutral-100",children:I&&e.imageUrl?(0,t.jsx)(s.default,{src:e.imageUrl,alt:e.productName,fill:!0,sizes:"56px",className:"object-cover"}):(0,t.jsx)(f.MenuItemPlaceholder,{size:"sm",circle:!1,className:"h-full w-full"})}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,t.jsx)("p",{className:"truncate text-[15px] font-semibold",style:{color:C.PREMIUM.ink,fontFamily:C.PREMIUM.body},children:e.productName}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-0.5",children:[(0,t.jsx)("button",{type:"button",onClick:()=>R(e.id),className:"grid h-7 w-7 place-items-center rounded-md hover:bg-red-50",style:{color:C.PREMIUM.maroon},"aria-label":`Edit ${e.productName}`,children:(0,t.jsx)(o.Pencil,{className:"h-3.5 w-3.5"})}),(0,t.jsx)("button",{type:"button",onClick:()=>$(e.id),className:"grid h-7 w-7 place-items-center rounded-md hover:bg-red-50",style:{color:C.PREMIUM.maroon},"aria-label":`Delete ${e.productName}`,children:(0,t.jsx)(m.Trash2,{className:"h-3.5 w-3.5"})})]})]}),(0,t.jsx)("div",{className:"mt-0.5 text-sm font-semibold",style:{color:C.PREMIUM.ink},children:(0,t.jsx)(g.ItemPrice,{original:r,discount:O.get(e.id)?.discount??0,plainClassName:"text-sm font-semibold"})}),(0,j.visibleAddonLines)(e.addons).length>0?(0,t.jsxs)("p",{className:"mt-0.5 text-[11px] leading-tight text-neutral-500",children:["+"," ",(0,j.visibleAddonLines)(e.addons).map(e=>`${e.addonName}${e.quantity>1?` x${e.quantity}`:""}`).join(", ")]}):null,(0,t.jsxs)("div",{className:"mt-2 inline-flex items-center rounded-full border border-neutral-200 bg-white px-1 py-0.5 shadow-sm",children:[(0,t.jsx)("button",{type:"button",onClick:()=>e.quantity<=1?$(e.id):P(e.id,e.quantity-1),className:"grid h-7 w-7 place-items-center text-neutral-700","aria-label":`Decrease ${e.productName}`,children:(0,t.jsx)(n.Minus,{className:"h-3.5 w-3.5"})}),(0,t.jsx)("span",{className:"min-w-[1.25rem] text-center text-sm font-semibold tabular-nums text-neutral-900",children:e.quantity}),(0,t.jsx)("button",{type:"button",onClick:()=>P(e.id,e.quantity+1),className:"grid h-7 w-7 place-items-center text-neutral-700","aria-label":`Increase ${e.productName}`,children:(0,t.jsx)(c.Plus,{className:"h-3.5 w-3.5"})})]})]})]},e.id)})}),(0,t.jsx)(b.CartOfferSection,{className:"px-5 pb-2",promotions:D,onAddOfferTarget:B,onSelectPromotion:Y}),(0,t.jsx)("div",{className:"border-t border-neutral-100 px-5 py-4",children:(0,t.jsxs)("div",{className:"flex items-baseline justify-between text-[15px] font-bold uppercase tracking-[0.04em]",style:{color:C.PREMIUM.ink,fontFamily:C.PREMIUM.display},children:[(0,t.jsx)("span",{children:"Subtotal"}),(0,t.jsx)("span",{className:"tabular-nums normal-case tracking-normal",children:(0,y.formatPrice)(V,k)})]})}),(0,t.jsxs)("div",{className:"px-5 pb-5",children:[(0,t.jsx)(N.CartOrderTypeToggle,{className:"mb-3"}),(0,t.jsx)(v.CheckoutLink,{className:"flex w-full items-center justify-center rounded-2xl py-3.5 text-[12px] font-bold uppercase tracking-[0.14em] text-white",style:{backgroundColor:C.PREMIUM.maroon,fontFamily:C.PREMIUM.display,opacity:J?.5:void 0},onClick:X,children:"View Cart & Checkout"})]})]}),K&&W?(0,t.jsx)(h.AddToCartModal,{product:W,existingItem:K,onAdd:A,onUpdate:U,onClose:()=>R(null)}):null]})})}e.s(["default",()=>k])},87515,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(84336),s=e.i(448207),l=e.i(532278),i=e.i(384994),n=e.i(272196),o=e.i(479532),c=e.i(269392),d=e.i(720037);function m({data:e}){switch(e.cartTemplate){case"cart_2":return(0,t.jsx)(i.default,{data:e});case"cart_3":return(0,t.jsx)(n.default,{data:e});case"cart_modern":return(0,t.jsx)(o.default,{data:e});case"cart_premium":return(0,t.jsx)(c.default,{data:e});case"cart_liquid_glass":return(0,t.jsx)(d.default,{data:e});default:return(0,t.jsx)(l.default,{data:e})}}function u({children:e,siteData:l}
2){let i=(0,s.useSiteData)(),n=l??i;return(0,t.jsxs)("div",{className:"flex w-full min-w-0 max-w-full items-stretch gap-0",children:[(0,t.jsx)("div",{className:"min-w-0 flex-1 overflow-x-clip px-2 -mx-2",children:e}),(0,t.jsx)("aside",{className:"relative hidden w-[360px] shrink-0 lg:block","aria-label":"Your cart",children:(0,t.jsx)("div",{className:"sticky z-30 w-full self-start pl-4 lg:pl-6",style:{top:"calc(var(--site-header-offset, var(--site-header-height, 4rem)) + var(--menu-discovery-sticky-height, 5.75rem) + 0.5rem)"},children:(0,t.jsx)(r.Suspense,{fallback:(0,t.jsx)("div",{className:"w-full",style:{minHeight:200}}),children:n?(0,t.jsx)(m,{data:n}):(0,t.jsx)(a.MenuCartSidebar,{})})})})]})}e.s(["MenuWithCartLayout",()=>u],87515)},532278,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(531278),s=e.i(84336);function l(e){return(0,t.jsx)("div",{className:"w-full",children:(0,t.jsx)(r.Suspense,{fallback:(0,t.jsxs)("div",{className:"flex min-h-[280px] items-center justify-center rounded-xl border border-gray-200 bg-white text-sm text-neutral-500",children:[(0,t.jsx)(a.Loader2,{className:"mr-2 h-4 w-4 animate-spin","aria-hidden":!0}),"Loading cartâ¦"]}),children:(0,t.jsx)(s.MenuCartSidebar,{})})})}e.s(["default",()=>l])},272196,e=>{"use strict";var t=e.i(843476),r=e.i(985035),a=e.i(271645),s=e.i(522016),l=e.i(299023),i=e.i(107233),n=e.i(201928),o=e.i(727612),c=e.i(317458),d=e.i(692385),m=e.i(697689),u=e.i(205246),x=e.i(587508),h=e.i(975157),p=e.i(360735);function f({data:e}){let f=(0,r.useCurrency)(),{theme:g,basePath:b}=e,y=g.primaryColor,j=g.textColor??"#111111",N=(0,c.useCartStore)(c.selectItems),v=(0,c.useCartStore)(e=>e.updateQuantity),w=(0,c.useCartStore)(e=>e.removeItem),{promotions:C,lineDiscounts:k,promoDiscount:S,handleAddOfferTarget:M,setSelectedPromotion:I}=(0,u.useThemedCartPromotions)(),P=(0,a.useMemo)(()=>N.reduce((e,t)=>{let r=t.addons.reduce((e,t)=>e+t.price*t.quantity,0);return e+(t.unitPrice+r)*t.quantity},0),[N]),$=N.reduce((e,t)=>e+t.quantity,0),q=Math.max(0,P-S),A=`${b??""}/checkout`,U=0===N.length,{blocked:L,guard:F}=(0,p.useCartMinOrderGuard)();return(0,t.jsxs)("div",{className:"rounded-lg border border-neutral-200 bg-white p-4",children:[(0,t.jsxs)("div",{className:"flex items-baseline justify-between border-b border-neutral-100 pb-3",children:[(0,t.jsx)("h3",{className:"text-sm font-bold uppercase tracking-wider",style:{color:j},children:"Cart"}),(0,t.jsxs)("span",{className:"text-xs text-neutral-500",children:[$," ",1===$?"item":"items"]})]}),U?(0,t.jsxs)("div",{className:"py-8 text-center",children:[(0,t.jsx)(n.ShoppingCart,{className:"mx-auto h-5 w-5 text-neutral-300","aria-hidden":!0}),(0,t.jsx)("p",{className:"mt-2 text-xs text-neutral-500",children:"Your cart is empty."})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("ul",{className:"divide-y divide-neutral-100 py-1",children:N.map(e=>{let r=(e.unitPrice+e.addons.reduce((e,t)=>e+t.price*t.quantity,0))*e.quantity;return(0,t.jsxs)("li",{className:"flex items-center gap-3 py-2.5",children:[(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("p",{className:"truncate text-sm font-medium",style:{color:j},children:e.productName}),(0,t.jsx)("div",{className:"mt-0.5 text-xs text-neutral-500",children:(0,t.jsx)(d.ItemPrice,{original:r,discount:k.get(e.id)?.discount??0,plainClassName:"text-xs text-neutral-500"})}),(0,m.visibleAddonLines)(e.addons).length>0?(0,t.jsxs)("p",{className:"mt-1 text-[11px] leading-tight text-neutral-500",children:["+"," ",(0,m.visibleAddonLines)(e.addons).map(e=>(0,m.addonQuantityLabel)(e.addonName,e.quantity)).join(", ")]}):null]}),(0,t.jsxs)("div",{className:"flex items-center gap-1.5 text-neutral-700",children:[(0,t.jsx)("button",{type:"button",onClick:()=>e.quantity<=1?w(e.id):v(e.id,e.quantity-1),className:"grid h-6 w-6 place-items-center rounded-md hover:bg-neutral-100","aria-label":e.quantity<=1?`Remove ${e.productName}`:`Decrease ${e.productName}`,children:e.quantity<=1?(0,t.jsx)(o.Trash2,{className:"h-3 w-3","aria-hidden":!0}):(0,t.jsx)(l.Minus,{className:"h-3 w-3","aria-hidden":!0})}),(0,t.jsx)("span",{className:"min-w-[1rem] text-center text-xs font-bold tabular-nums",children:e.quantity}),(0,t.jsx)("button",{type:"button",onClick:()=>v(e.id,e.quantity+1),className:"grid h-6 w-6 place-items-center rounded-md hover:bg-neutral-100","aria-label":`Increase ${e.productName}`,children:(0,t.jsx)(i.Plus,{className:"h-3 w-3","aria-hidden":!0})})]})]},e.id)})}),(0,t.jsx)(u.CartOfferSection,{className:"mt-2",promotions:C,onAddOfferTarget:M,onSelectPromotion:I}),S>0?(0,t.jsxs)("div",{className:"mt-2 flex items-center justify-between text-sm",style:{color:j},children:[(0,t.jsx)("span",{children:"Subtotal"}),(0,t.jsx)("span",{className:"tabular-nums",children:(0,x.formatPrice)(P,f)})]}):null,S>0?(0,t.jsxs)("div",{className:"mt-1 flex items-center justify-between text-sm font-medium text-green-700",children:[(0,t.jsx)("span",{children:"Promo"}),(0,t.jsxs)("span",{className:"tabular-nums",children:["-",(0,x.formatPrice)(S,f)
2]})]}):null,(0,t.jsxs)("div",{className:"mt-2 flex items-center justify-between border-t border-neutral-100 pt-3 text-sm font-bold",style:{color:j},children:[(0,t.jsx)("span",{children:"Total"}),(0,t.jsx)("span",{className:"tabular-nums",children:(0,x.formatPrice)(q,f)})]})]}),U?null:(0,t.jsx)(p.CartOrderTypeToggle,{className:"mt-4"}),(0,t.jsx)(s.default,{href:A,onClick:F,"aria-disabled":U,tabIndex:U?-1:0,className:(0,h.cn)("mt-3 flex items-center justify-center rounded-md py-2.5 text-xs font-semibold transition",U?"pointer-events-none opacity-50":"hover:opacity-90",L&&!U?"opacity-50":""),style:{backgroundColor:y,color:"#ffffff"},children:U?"Browse Menu":"Checkout"})]})}e.s(["default",()=>f])},479532,e=>{"use strict";var t=e.i(843476),r=e.i(577767),a=e.i(985035),s=e.i(271645),l=e.i(522016),i=e.i(225525),n=e.i(972520),o=e.i(299023),c=e.i(788699),d=e.i(107233),m=e.i(201928),u=e.i(727612),x=e.i(317458),h=e.i(708651),p=e.i(943764),f=e.i(282324),g=e.i(692385),b=e.i(205246),y=e.i(587508),j=e.i(697689),N=e.i(360735);function v({data:e}){let v=(0,a.useCurrency)(),{theme:w,basePath:C,locations:k}=e,S=w.primaryColor,M=w.secondaryColor,I=w.textColor??"#111111",P=w.bgColor1??w.bgColor??"#f6f3ee",$=(0,x.useCartStore)(x.selectItems),q=(0,p.useShowMenuImages)(),A=(0,x.useCartStore)(e=>e.updateQuantity),U=(0,x.useCartStore)(e=>e.removeItem),L=(0,x.useCartStore)(e=>e.addItem),F=(0,x.useCartStore)(e=>e.updateItem),T=(0,x.useCartStore)(e=>e.restaurantId);(0,x.useCartStore)(e=>e.cartsByRestaurant[e.restaurantId??""]?.orderType??"PICKUP");let[R,E]=(0,s.useState)(null),{promotions:G,lineDiscounts:D,promoDiscount:O,handleAddOfferTarget:z,setSelectedPromotion:B}=(0,b.useThemedCartPromotions)(),{categories:Y}=(0,r.useLazyFullMenu)(e.menuFullData),Q=(0,s.useMemo)(()=>{let e=new Map;for(let t of Y)for(let r of t.products)e.set(r.id,r);return e},[Y]),_=(0,s.useMemo)(()=>$.find(e=>e.id===R)??null,[$,R]),K=(0,s.useMemo)(()=>{if(!_)return null;let e=Q.get(_.productId);return e||{id:_.productId,name:_.productName,price:_.unitPrice,imageUrl:_.imageUrl??null,shortDescription:null,fullDescription:null,type:"REGULAR",addonGroups:[]}},[_,Q]),W=(0,s.useMemo)(()=>$.reduce((e,t)=>{let r=t.addons.reduce((e,t)=>e+t.price*t.quantity,0);return e+(t.unitPrice+r)*t.quantity},0),[$]),V=$.reduce((e,t)=>e+t.quantity,0),H=Math.max(0,W-O),J=`${C??""}/checkout`,X=0===$.length,{blocked:Z,guard:ee}=(0,N.useCartMinOrderGuard)();return(0,t.jsxs)("div",{className:"rounded-[28px] bg-white p-5 shadow-sm lg:flex lg:max-h-[calc(100vh-7rem)] lg:flex-col lg:rounded-[36px]",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-xs uppercase tracking-[0.2em] text-neutral-400",children:"Current Order"}),(0,t.jsx)("h3",{className:"mt-1 text-2xl font-black tracking-tight",style:{color:I},children:"Your Cart"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[!X&&T?(0,t.jsx)("button",{type:"button",onClick:()=>{$.forEach(e=>U(e.id))},className:"grid h-8 w-8 place-items-center rounded-xl text-neutral-400 transition hover:bg-red-50 hover:text-red-600","aria-label":"Clear cart",title:"Clear cart",children:(0,t.jsx)(u.Trash2,{className:"h-4 w-4","aria-hidden":!0})}):null,(0,t.jsx)("span",{className:"grid h-10 w-10 place-items-center rounded-2xl text-sm font-bold",style:{backgroundColor:`color-mix(in srgb, ${S} 18%, transparent)`,color:S},"aria-label":`${V} items in cart`,children:V})]})]}),X?(0,t.jsxs)("div",{className:"mt-6 rounded-2xl px-4 py-8 text-center",style:{backgroundColor:P},children:[(0,t.jsx)("div",{className:"mx-auto grid h-12 w-12 place-items-center rounded-2xl",style:{backgroundColor:`color-mix(in srgb, ${S} 14%, transparent)`},"aria-hidden":!0,children:(0,t.jsx)(m.ShoppingCart,{className:"h-5 w-5",style:{color:S}})}),(0,t.jsx)("p",{className:"mt-3 text-sm font-semibold",style:{color:I},children:"Your cart is empty"}),(0,t.jsx)("p",{className:"mt-1 text-xs text-neutral-500",children:"Add something delicious from the menu"})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("ul",{className:"mt-5 space-y-3 lg:-mr
2-2 lg:min-h-0 lg:flex-1 lg:overflow-y-auto lg:pr-2",children:$.map(e=>{let r=(e.unitPrice+e.addons.reduce((e,t)=>e+t.price*t.quantity,0))*e.quantity;return(0,t.jsx)("li",{className:"rounded-2xl p-2.5",style:{backgroundColor:P},children:(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden rounded-lg",style:{backgroundColor:`color-mix(in srgb, ${I} 6%, ${P})`},children:q&&e.imageUrl?(0,t.jsx)(i.default,{src:e.imageUrl,alt:e.productName,fill:!0,sizes:"48px",className:"object-cover"}):(0,t.jsx)(f.MenuItemPlaceholder,{size:"sm",circle:!1,className:"h-full w-full"})}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("p",{className:"truncate text-sm font-bold leading-tight",style:{color:I},children:e.productName}),(0,t.jsx)("div",{className:"mt-0.5 text-xs leading-tight text-neutral-500",children:(0,t.jsx)(g.ItemPrice,{original:r,discount:D.get(e.id)?.discount??0,plainClassName:"text-xs text-neutral-500"})}),(0,j.visibleAddonLines)(e.addons).length>0?(0,t.jsxs)("p",{className:"mt-1 text-[11px] leading-tight text-neutral-500",children:["+"," ",(0,j.visibleAddonLines)(e.addons).map(e=>`${e.addonName}${e.quantity>1?` x${e.quantity}`:""}`).join(", ")]}):null,e.specialInstructions?(0,t.jsxs)("p",{className:"mt-1 text-[11px] italic leading-tight text-neutral-500",children:["Note: ",e.specialInstructions]}):null,(0,t.jsxs)("div",{className:"mt-2 flex items-center gap-1.5",children:[(0,t.jsx)("button",{type:"button",onClick:()=>E(e.id),className:"grid h-6 w-6 place-items-center rounded-full border border-neutral-200 bg-white text-neutral-500 shadow-sm transition hover:border-neutral-300 hover:text-neutral-900 hover:shadow focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-neutral-300","aria-label":`Edit ${e.productName}`,title:`Edit ${e.productName}`,children:(0,t.jsx)(c.Pencil,{className:"h-3 w-3","aria-hidden":!0})}),(0,t.jsx)("button",{type:"button",onClick:()=>U(e.id),className:"grid h-6 w-6 place-items-center rounded-full border border-red-200 bg-white text-red-500 shadow-sm transition hover:border-red-300 hover:text-red-700 hover:shadow focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-red-200","aria-label":`Delete ${e.productName}`,title:`Delete ${e.productName}`,children:(0,t.jsx)(u.Trash2,{className:"h-3 w-3","aria-hidden":!0})})]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-1 rounded-full bg-white p-1 shadow-sm",role:"group","aria-label":`Quantity for ${e.productName}`,children:[(0,t.jsx)("button",{type:"button",onClick:()=>e.quantity<=1?U(e.id):A(e.id,e.quantity-1),className:"grid h-6 w-6 place-items-center rounded-full text-neutral-500 transition hover:bg-neutral-100","aria-label":e.quantity<=1?`Remove ${e.productName}`:`Decrease ${e.productName}`,children:(0,t.jsx)(o.Minus,{className:"h-3 w-3","aria-hidden":!0})}),(0,t.jsx)("span",{className:"min-w-[1rem] text-center text-xs font-bold tabular-nums",style:{color:I},children:e.quantity}),(0,t.jsx)("button",{type:"button",onClick:()=>A(e.id,e.quantity+1),className:"grid h-6 w-6 place-items-center rounded-full text-white transition",style:{backgroundColor:M},"aria-label":`Increase ${e.productName}`,children:(0,t.jsx)(d.Plus,{className:"h-3 w-3","aria-hidden":!0})})]})]})},e.id)})}),(0,t.jsx)(b.CartOfferSection,{className:"mt-3",promotions:G,onAddOfferTarget:z,onSelectPromotion:B}),(0,t.jsxs)("div",{className:"mt-5 rounded-2xl p-5 text-white",style:{backgroundColor:M},children:[O>0?(0,t.jsxs)("div",{className:"mt-2 flex items-center justify-between text-sm text-green-300",children:[(0,t.jsx)("span",{children:"Promo"}),(0,t.jsxs)("span",{children:["-",(0,y.formatPrice)(O,v)]})]}):null,(0,t.jsxs)("div",{className:"mt-2 flex items-center justify-between pt-2 text-xl font-black",style:{borderColor:"rgba(255,255,255,0.1)"},children:[(0,t.jsx)("span",{children:"Subtotal"}),(0,t.jsx)("span",{children:(0,y.formatPrice)(H,v)})]})]})]}),X?null:(0,t.jsx)(N.CartOrderTypeToggle,{className:"mt-5"}),X?null:(0,t.jsxs)(l.default,{href:J,onClick:ee,className:"mt-3 flex items-center justify-center gap-2 rounded-2xl py-4 text-sm font-semibold transition hover:opacity-95",
2style:{backgroundColor:S,color:"#ffffff",boxShadow:`0 10px 24px -10px color-mix(in srgb, ${S} 65%, transparent)`,opacity:Z?.5:void 0},children:["Proceed to Checkout",(0,t.jsx)(n.ArrowRight,{className:"h-4 w-4","aria-hidden":!0})]}),_&&K?(0,t.jsx)(h.AddToCartModal,{product:K,existingItem:_,onAdd:L,onUpdate:F,onClose:()=>E(null)}):null]})}e.s(["default",()=>v])},550981,e=>{"use strict";function t(e,t){let r=function(e){if(!e)return null;let t=e.trim(),r=t.replace("#","");if(/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$/.test(r)){let e=3===r.length?r.split("").map(e=>e+e).join(""):r;return{r:Number.parseInt(e.slice(0,2),16),g:Number.parseInt(e.slice(2,4),16),b:Number.parseInt(e.slice(4,6),16)}}let a=t.match(/^rgba?\(\s*(\d+(?:\.\d+)?)\s*[, ]\s*(\d+(?:\.\d+)?)\s*[, ]\s*(\d+(?:\.\d+)?)/i);return a?{r:Math.max(0,Math.min(255,Math.round(Number(a[1])))),g:Math.max(0,Math.min(255,Math.round(Number(a[2])))),b:Math.max(0,Math.min(255,Math.round(Number(a[3]))))}:null}(e);if(!r)return t;let a=e=>{let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4},s=.2126*a(r.r)+.7152*a(r.g)+.0722*a(r.b),l=1.05/(s+.05),i=(s+.05)/.05;return .8>Math.abs(l-i)?"#E5E7EB":i>=l?"#111111":"#FFFFFF"}e.s(["getPremiumOnPrimary",()=>t])},384994,e=>{"use strict";var t=e.i(843476),r=e.i(985035),a=e.i(271645),s=e.i(522016),l=e.i(225525),i=e.i(972520),n=e.i(299023),o=e.i(107233),c=e.i(201928),d=e.i(727612),m=e.i(317458),u=e.i(692385),x=e.i(943764),h=e.i(282324),p=e.i(697689),f=e.i(205246),g=e.i(587508),b=e.i(975157),y=e.i(734352),j=e.i(550981),N=e.i(360735);function v({data:e}){let v=(0,r.useCurrency)(),w=(0,y.useConfirmStore)(e=>e.confirm),{theme:C,basePath:k}=e,S=C.primaryColor??"var(--brand-primary, #f7c200)",M=C.secondaryColor??"#000000",I=C.bgColor??M,P=`color-mix(in srgb, color-mix(in srgb, ${I} 94%, #ffffff) 98%, ${S})`,$=C.textColor??"#ffffff",q=`color-mix(in srgb, ${$} 70%, transparent)`,A=`color-mix(in srgb, ${$} 40%, transparent)`,U=`color-mix(in srgb, ${$} 10%, transparent)`,L=(0,j.getPremiumOnPrimary)(C.primaryColor,"var(--brand-primary-foreground, #111111)"),F=(0,m.useCartStore)(m.selectItems),T=(0,x.useShowMenuImages)(),R=(0,m.useCartStore)(e=>e.updateQuantity),E=(0,m.useCartStore)(e=>e.removeItem),G=(0,m.useCartStore)(e=>e.clearCart),{promotions:D,lineDiscounts:O,promoDiscount:z,handleAddOfferTarget:B,setSelectedPromotion:Y}=(0,f.useThemedCartPromotions)(),Q=(0,a.useMemo)(()=>F.reduce((e,t)=>{let r=t.addons.reduce((e,t)=>e+t.price*t.quantity,0);return e+(t.unitPrice+r)*t.quantity},0),[F]),_=F.reduce((e,t)=>e+t.quantity,0),K=Math.max(0,Q-z),W=`${k??""}/checkout`,V=0===F.length,{blocked:H,guard:J}=(0,N.useCartMinOrderGuard)();async function X(){await w("All items in your cart will be removed. This cannot be undone.",{title:"Clear your entire cart?",variant:"danger",confirmLabel:"Clear cart"})&&G()}return(0,t.jsxs)("div",{"data-color-mode":"dark",className:"rounded-2xl p-6 shadow-2xl lg:flex lg:max-h-[calc(100vh-7rem)] lg:flex-col",style:{backgroundColor:P,color:$,border:`1px solid ${U}`,boxShadow:"0 16px 40px color-mix(in srgb, #000 40%, transparent)"},children:[(0,t.jsxs)("div",{className:"flex shrink-0 items-start justify-between gap-3 border-b pb-4",style:{borderColor:U},children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-[10px] uppercase tracking-[0.25em]",style:{color:S},children:"Reserve & Order"}),(0,t.jsx)("h3",{className:"mt-1 text-xl font-light tracking-wide",style:{color:$},children:"Your Selection"})]}),(0,t.jsx)("span",{className:"grid h-9 w-9 place-items-center rounded-full border text-xs font-bold",style:{borderColor:S,color:S},"aria-label":`${_} items in cart`,children:_})]}),V?(0,t.jsxs)("div",{className:"py-10 text-center",children:[(0,t.jsx)(c.ShoppingCart,{className:"mx-auto h-7 w-7",style:{color:A},"aria-hidden":!0}),(0,t.jsx)("p",{className:"mt-3 text-sm",style:{color:q},children:"No items selected."}),(0,t.jsx)("p",{className:"mt-1 text-xs",style:{color:A},children:"Choose from our curated menu."})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("ul",{className:"cart2-scroll mt-4 divide-y lg:-mr-1 lg:min-h-0 lg:flex-1 lg:overflow-y-auto lg:pr-2",style:{borderColor:U,"--cart2-scroll-thumb":S},children:F.map(e=>{let r=(e.unitPrice+e.addons.reduce((e,t)=>
2e+t.price*t.quantity,0))*e.quantity;return(0,t.jsxs)("li",{className:"flex items-center gap-3 border-b py-3 last:border-b-0",style:{borderColor:U},children:[(0,t.jsx)("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden rounded-lg",style:{backgroundColor:`color-mix(in srgb, ${$} 6%, transparent)`},children:T&&e.imageUrl?(0,t.jsx)(l.default,{src:e.imageUrl,alt:e.productName,fill:!0,sizes:"48px",className:"object-cover"}):(0,t.jsx)(h.MenuItemPlaceholder,{size:"sm",circle:!1,className:"h-full w-full"})}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("p",{className:"truncate text-sm font-medium tracking-wide",style:{color:$},children:e.productName}),(0,t.jsx)("div",{className:"mt-0.5 text-xs",style:{color:S},children:(0,t.jsx)(u.ItemPrice,{original:r,discount:O.get(e.id)?.discount??0,plainClassName:"text-xs"})}),(0,p.visibleAddonLines)(e.addons).length>0?(0,t.jsxs)("p",{className:"mt-1 text-[11px] leading-tight opacity-70",style:{color:$},children:["+"," ",(0,p.visibleAddonLines)(e.addons).map(e=>(0,p.addonQuantityLabel)(e.addonName,e.quantity)).join(", ")]}):null]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("button",{type:"button",onClick:()=>e.quantity<=1?E(e.id):R(e.id,e.quantity-1),className:"grid h-7 w-7 place-items-center rounded-full border transition hover:opacity-90",style:{borderColor:`color-mix(in srgb, ${$} 22%, transparent)`,color:q},"aria-label":e.quantity<=1?`Remove ${e.productName}`:`Decrease ${e.productName}`,children:e.quantity<=1?(0,t.jsx)(d.Trash2,{className:"h-3 w-3","aria-hidden":!0}):(0,t.jsx)(n.Minus,{className:"h-3 w-3","aria-hidden":!0})}),(0,t.jsx)("span",{className:"min-w-[1rem] text-center text-xs font-bold",style:{color:$},children:e.quantity}),(0,t.jsx)("button",{type:"button",onClick:()=>R(e.id,e.quantity+1),className:"grid h-7 w-7 place-items-center rounded-full transition",style:{backgroundColor:S,color:L},"aria-label":`Increase ${e.productName}`,children:(0,t.jsx)(o.Plus,{className:"h-3 w-3","aria-hidden":!0})})]})]},e.id)})}),(0,t.jsxs)("div",{className:"shrink-0",children:[(0,t.jsx)(f.CartOfferSection,{className:"mt-4",promotions:D,onAddOfferTarget:B,onSelectPromotion:Y}),(0,t.jsxs)("div",{className:"mt-5 space-y-2 border-t pt-5 text-sm",style:{borderColor:U},children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",style:{color:q},children:[(0,t.jsx)("span",{children:"Subtotal"}),(0,t.jsx)("span",{children:(0,g.formatPrice)(Q,v)})]}),z>0?(0,t.jsxs)("div",{className:"flex items-center justify-between",style:{color:S},children:[(0,t.jsx)("span",{children:"Promo"}),(0,t.jsxs)("span",{children:["-",(0,g.formatPrice)(z,v)]})]}):null,(0,t.jsxs)("div",{className:"flex items-center justify-between pt-2 text-lg font-light tracking-wide",style:{color:$},children:[(0,t.jsx)("span",{children:"Total"}),(0,t.jsx)("span",{style:{color:S},children:(0,g.formatPrice)(K,v)})]})]})]})]}),V?null:(0,t.jsx)(N.CartOrderTypeToggle,{className:"mt-5 shrink-0",tone:"dark"}),(0,t.jsxs)(s.default,{href:W,onClick:J,"aria-disabled":V,tabIndex:V?-1:0,className:(0,b.cn)("mt-3 flex shrink-0 items-center justify-center gap-2 rounded-full py-3.5 text-xs font-bold uppercase tracking-[0.2em] transition",V?"pointer-events-none opacity-40":"hover:opacity-90",H&&!V?"opacity-50":""),style:{backgroundColor:S,color:L},children:[V?"View Menu":"Proceed to checkout",(0,t.jsx)(i.ArrowRight,{className:"h-3.5 w-3.5","aria-hidden":!0})]}),V?null:(0,t.jsx)("button",{type:"button",onClick:()=>void X(),className:"mt-3 w-full shrink-0 text-center text-xs font-semibold transition hover:opacity-80",style:{color:q},children:"Clear cart"})]})}e.s(["default",()=>v])}]); 3 4//# debugId=ed0e5f2a-81f8-45eb-0d30-428dbad44b94 5//# sourceMappingURL=f943d7df7d348e5a.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.