1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{265:(e,t,n)=>{"use strict";n.d(t,{MobileBottomNav:()=>c});var r=n(2469),a=n(1800),s=n.n(a),i=n(2909),o=n(5493);let l=[{href:"/",label:"Home",match:e=>"/"===e,icon:function(e){let{className:t}=e;return(0,r.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",className:t,children:[(0,r.jsx)("path",{d:"M3 10.5L12 3l9 7.5V21H3z"}),(0,r.jsx)("path",{d:"M9 21V13h6v8"})]})}},{href:"/menu",label:"Menu",match:e=>e.startsWith("/menu"),icon:function(e){let{className:t}=e;return(0,r.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",className:t,children:[(0,r.jsx)("path",{d:"M6 3v7a2 2 0 002 2v9M8 3v5M6 3v5"}),(0,r.jsx)("path",{d:"M17 3c-1.5 0-2.5 2-2.5 5s1 4 2.5 4v9"})]})}},{href:"/reserve",label:"Reserve",match:e=>e.startsWith("/reserve"),icon:function(e){let{className:t}=e;return(0,r.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",className:t,children:[(0,r.jsx)("rect",{x:"3",y:"5",width:"18",height:"16",rx:"2"}),(0,r.jsx)("path",{d:"M3 10h18M8 3v4M16 3v4"})]})}},{href:"https://order.toasttab.com/online/casa-manila-danforth-508-danforth-ave",label:"Order â",match:()=>!1,icon:function(e){let{className:t}=e;return(0,r.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",className:t,children:[(0,r.jsx)("path",{d:"M6 4h12l-1 4H7zM4 8h16l-1.5 11a2 2 0 0 1-2 1.8H7.5a2 2 0 0 1-2-1.8z"}),(0,r.jsx)("path",{d:"M10 12v4M14 12v4"})]})},external:!0},{href:"/shop",label:"Trays",match:e=>e.startsWith("/shop"),icon:function(e){let{className:t}=e;return(0,r.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",className:t,children:[(0,r.jsx)("rect",{x:"3",y:"6",width:"18",height:"13",rx:"2"}),(0,r.jsx)("path",{d:"M7 6V4h10v2"}),(0,r.jsx)("path",{d:"M7 12h10M7 16h6"})]})}}];function c(){let e=(0,i.usePathname)()??"/",{open:t,lines:n}=(0,o._$)(),a=(0,o.Op)(n);return e.startsWith("/admin")||e.startsWith("/signin")?null:(0,r.jsx)("nav",{"aria-label":"Mobile navigation",className:"fixed inset-x-0 bottom-0 z-40 border-t border-rule/70 bg-paper/92 backdrop-blur-md md:hidden",style:{paddingBottom:"env(safe-area-inset-bottom, 0)"},children:(0,r.jsxs)("ul",{className:"grid grid-cols-6",children:[l.map(t=>{let n=t.match(e),a=t.icon,i=(0,r.jsxs)("span",{className:`flex flex-col items-center gap-1 py-2.5 text-[0.62rem] uppercase tracking-[0.12em] transition ${n?"text-brand":"text-ink-soft hover:text-ink"}`,children:[(0,r.jsx)(a,{className:"h-[22px] w-[22px]"}),(0,r.jsx)("span",{className:"font-mono",children:t.label})]});return(0,r.jsx)("li",{children:t.external?(0,r.jsx)("a",{href:t.href,target:"_blank",rel:"noopener noreferrer",children:i}):(0,r.jsx)(s(),{href:t.href,children:i})},t.href)}),(0,r.jsx)("li",{children:(0,r.jsx)("button",{type:"button",onClick:t,"aria-label":`Open cart (${a} ${1===a?"item":"items"})`,className:"w-full",children:(0,r.jsxs)("span",{className:"relative flex flex-col items-center gap-1 py-2.5 text-[0.62rem] uppercase tracking-[0.12em] text-ink-soft transition hover:text-ink",children:[(0,r.jsx)(d,{className:"h-[22px] w-[22px]"}),a>0&&(0,r.jsx)("span",{"aria-hidden":!0,className:"font-mono absolute right-1/2 top-1 translate-x-3 rounded-full bg-brand px-1.5 text-[0.55rem] leading-[1.4] text-paper",children:a}),(0,r.jsx)("span",{className:"font-mono",children:"Cart"})]})})})]})})}function d(e){let{className:t}=e;return(0,r.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",className:t,children:[(0,r.jsx)("path",{d:"M4 5h2l2.7 11.4a2 2 0 0 0 2 1.6h7.6a2 2 0 0 0 2-1.5L22 9H7"}),(0,r.jsx)("circle",{cx:"10",cy:"20",r:"1.4"}),(0,r.jsx)("circle",{cx:"18",cy:"20",r:"1.4"})]})}},354:e=>{e.exports={style:{fontFamily:"'Manrope', 'Manrope Fallback'",fontStyle:"normal"},className:"__className_73ee6c",variable:"__variable_73ee6c"}},1735:(e,t,n)=>{"use strict";n.d(t,{GoogleAnalytics:()=>o,T:()=>l});var r=n(2469),a=n(5269),s=n.n(a);let i="G-M75ZBMCYEN";function o(){return i?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s(),{id:"ga-consent-default",strategy:"afterInteractive",children:` 2 window.dataLayer = window.dataLayer || []; 3 function gtag(){dataLayer.push(arguments);} 4 window.gtag = gtag; 5 gtag('consent', 'default', { 6 ad_storage: 'denied', 7 ad_user_data: 'denied', 8 ad_personalization: 'denied', 9 analytics_storage: 'denied' 10 }); 11 try { 12 var m = document.cookie.match(/(?:^|; )casamanila_consent=([^;]*)/); 13 if (m && decodeURIComponent(m[1]) === 'accepted') { 14 gtag('consent', 'update', { analytics_storage: 'granted' }); 15 } 16 } catch (e) {} 17 `}),(0,r.jsx)(s(),{src:`https://www.googletagmanager.com/gtag/js?i
17d=${i}`,strategy:"lazyOnload"}),(0,r.jsx)(s(),{id:"ga-init",strategy:"lazyOnload",children:` 18 gtag('js', new Date()); 19 gtag('config', '${i}', { anonymize_ip: true }); 20 `})]}):null}function l(e){"function"==typeof window.gtag&&window.gtag("consent","update",{analytics_storage:e?"granted":"denied"})}},2859:(e,t,n)=>{"use strict";n.d(t,{CartDrawer:()=>d});var r=n(2469),a=n(5889),s=n(5493),i=n(3138),o=n(399);let l=(0,o.createServerReference)("407a42812d31f1eb4f0a8a3b4922d47a17b7c40262",o.callServer,void 0,o.findSourceMapURL,"createCheckoutSession");function c(){return(0,r.jsxs)("a",{href:"https://masayagourmet.com?utm_source=casamanila&utm_medium=cart&utm_campaign=cross-sell",target:"_blank",rel:"noopener noreferrer",className:"mt-4 flex items-center gap-3 border border-rule bg-paper px-3.5 py-3 transition hover:border-leaf hover:bg-leaf/5",children:[(0,r.jsx)("span",{className:"flex h-11 w-11 shrink-0 items-center justify-center bg-leaf/12 text-leaf",children:(0,r.jsx)("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round",children:(0,r.jsx)("path",{d:"M9 3h6M10 3v3.2a4 4 0 0 1-.6 2.1L8 10.5A5 5 0 0 0 7.2 13v6a2 2 0 0 0 2 2h5.6a2 2 0 0 0 2-2v-6a5 5 0 0 0-.8-2.5l-1.4-2.2A4 4 0 0 1 14 6.2V3"})})}),(0,r.jsxs)("span",{className:"flex-1",children:[(0,r.jsxs)("span",{className:"flex items-baseline justify-between gap-2",children:[(0,r.jsx)("span",{className:"text-[0.9rem] font-medium text-ink",children:"Take the flavours home"}),(0,r.jsx)("span",{className:"font-mono text-[0.72rem] uppercase tracking-[0.12em] text-leaf",children:"15% off 1st order"})]}),(0,r.jsx)("span",{className:"mt-0.5 block text-[0.78rem] leading-snug text-ink-soft",children:"Our sister brand Masaya â five Filipino sauces, shipped across Canada. Shop the jars â"})]})]})}function d(){let{isOpen:e,close:t,lines:n,updateQuantity:o,remove:d,clear:u}=(0,s._$)(),x=(0,s.MW)(n),[m,p]=(0,a.useTransition)(),[h,f]=(0,a.useState)(null),[b,g]=(0,a.useState)(!1),v=x%100==0?100:100-x%100,k=b?v:0;return(0,a.useEffect)(()=>{if(!e)return;let n=e=>"Escape"===e.key&&t();return window.addEventListener("keydown",n),()=>window.removeEventListener("keydown",n)},[e,t]),(0,a.useEffect)(()=>(document.body.style.overflow=e?"hidden":"",()=>{document.body.style.overflow=""}),[e]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{"aria-hidden":!e,onClick:t,className:`fixed inset-0 z-50 bg-ink/40 backdrop-blur-sm transition-opacity duration-300 ${e?"opacity-100":"pointer-events-none opacity-0"}`}),(0,r.jsxs)("aside",{role:"dialog","aria-label":"Cart","aria-hidden":!e,className:`fixed right-0 top-0 z-50 flex h-dvh w-full max-w-md flex-col border-l border-ink/10 bg-paper shadow-2xl transition-transform duration-300 ease-out ${e?"translate-x-0":"translate-x-full"}`,children:[(0,r.jsxs)("header",{className:"flex items-center justify-between border-b border-rule px-6 py-5",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"font-mono text-[0.7rem] uppercase tracking-[0.18em] text-ink-soft",children:"Your order"}),(0,r.jsx)("p",{className:"font-display text-2xl text-ink",style:{fontVariationSettings:"'opsz' 144, 'SOFT' 50"},children:"Cart"})]}),(0,r.jsx)("button",{type:"button",onClick:t,"aria-label":"Close cart",className:"rounded-sm p-2 text-ink-soft transition hover:bg-paper-deep hover:text-ink",children:(0,r.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",children:(0,r.jsx)("path",{d:"M6 6l12 12M18 6l-12 12"})})})]}),(0,r.jsx)("div",{className:"flex-1 overflow-y-auto",children:0===n.length?(0,r.jsxs)("div",{className:"flex h-full flex-col items-center justify-center px-8 text-center",children:[(0,r.jsx)("p",{className:"font-display text-3xl text-ink",style:{fontVariationSettings:"'opsz' 144, 'SOFT' 50"},children:"Empty."}),(0,r.jsx)("p",{className:"mt-3 max-w-xs text-ink-soft",children:"Start with a tray of lumpia. Everyone always does."}),(0,r.jsx)("button",{type:"button",onClick:t,className:"mt-8 rounded-sm border border-ink/20 px-5 py-2.5 text-[0.9rem] font-medium text-ink transition hover:border-ink hover:bg-ink hover:text-paper",children:"Browse the menu â"})]}):(0,r.jsx)("ul",{className:"divide-y divide-rule",children:n.map(e=>(0,r.jsxs)("li",{className:"flex gap-4 px-6 py-5",children:[(0,r.jsx)("div",{className:"h-20 w-20 flex-shrink-0 overflow-hidden bg-paper-deep",children:e.imageSrc?(0,r.jsx)("img",{src:e.imageSrc,alt:"",className:"h-full w-full object-cover"}):(0,r.jsx)("div",{className:"flex h-full w-full items-center justify-center bg-brand text-paper",children:(0,r.jsx)("span",{className:"font-display text-2xl",style:{fontVariationSettings:"'opsz' 144, 'SOFT' 100"},children:e.productName.charAt(0)})})}),(0,r.jsxs)("div",{className:"flex flex-1 flex-col",children:[(0,r.jsxs)("div",{className:"flex items-baseline justify-between gap-3",children:[(0,r.jsx)("p",{className:"font-display text-lg text-ink",children:e.productName}),(0,r.jsx)("p",{className:"font-mono text-[0.85rem] text-ink",children:(0,i.$g)(e.unitPriceCents*e.quantity)})]}),(0,r.jsxs)("p",{className:"font-mono text-[0.7rem] uppercase tracking-[0.14em] text-ink-soft",children:[e.variantLabel," \xb7 ",e.servings]}),(0,r.jsxs)("div",{className:"mt-3 flex items-center justify-between",children:[(0,r.jsxs)("div",{className:"inline-flex items-center border border-ink/15",children:[(0,r.jsx)("button",{type:"button",onClick:()=>o(e.productSlug,e.variantCode,e.quantity-1),className:"px-3 py-1.5 text-ink-soft transition hover:text-ink","aria-label":"Decrease quantity",children:"â"}),(0,r.jsx)("span",{className:"font-mono px-3 text-[0.85rem] text-ink",children:e.quantity}),(0,r.jsx)("button",{type:"button",onClick:()=>o(e.productSlug,e.variantCode,e.quantity+1),className:"px-3 py-1.5 text-ink-soft transition hover:text-ink","aria-label":"Increase quantity",children:"+"})]}),(0,r.jsx)("button",{type:"button",onClick:()=>d(e.productSlug,e.variantCode),className:"text-[0.78rem] text-ink-soft underline-offset-2 transition hover:text-brand hover:underline",children:"Remove"})]})]})]},`${e.productSlug}-${e.variantCode}`))})}),n.length>0&&(0,r.jsxs)("footer",{className:"border-t border-ink/15 bg-paper-deep px-6 py-5",children:[(0,r.jsxs)("div",{className:"flex items-baseline justify-between",children:[(0,r.jsx)("span",{className:"font-mono text-[0.78rem] uppercase tracking-[0.18em] text-ink-soft",children:"Subtotal"}),(0,r.jsx)("span",{className:"font-display text-3xl text-ink",style:{fontVariationSettings:"'opsz' 144, 'SOFT' 30"},children:(0,i.$g)(x)})]}),(0,r.jsx)("p",{className:"font-mono mt-1 text-[0.7rem] uppercase tracking-[0.14em] text-ink-soft",children:"Tax + pickup details captured at checkout"}),(0,r.jsxs)("label",{className:"mt-4 flex cursor-pointer items-start gap-3 border border-rule bg-paper p-3.5",children:[(0,r.jsx)("input",{type:"checkbox",checked:b,onChange:e=>g(e.target.checked),className:"mt-0.5 h-4 w-4 shrink-0 accent-brand"}),(0,r.jsxs)("span",{className:"flex-1",children:[(0,r.jsxs)("span",{className:"flex items-baseline justify-between gap-2",children:[(0,r.jsx)("span",{className:"text-[0.9rem] font-medium text-ink",children:"Round up for KLIKme & GAFAA"}),(0,r.jsxs)("span",{className:"font-mono text-[0.85rem] text-brand",children:["+",(0,i.$g)(v)]})]}),(0,r.jsx)("span",{className:"mt-0.5 block text-[0.78rem] leading-snug text-ink-soft",children:"We're a social enterprise â
20100% of your round-up goes to our charities."})]})]}),(0,r.jsx)(c,{}),h&&(0,r.jsx)("div",{className:"mt-3 border-l-2 border-brand bg-paper px-3 py-2",children:(0,r.jsx)("p",{className:"text-[0.85rem] text-ink",children:h})}),(0,r.jsx)("button",{type:"button",onClick:()=>{f(null),p(async()=>{let e=await l({lines:n.map(e=>({productSlug:e.productSlug,productName:e.productName,variantCode:e.variantCode,variantLabel:e.variantLabel,servings:e.servings,unitPriceCents:e.unitPriceCents,quantity:e.quantity,imageSrc:e.imageSrc})),donationCents:k});if(!e.ok)return void f(e.error);window.location.href=e.url})},disabled:m,className:"mt-5 inline-flex w-full items-center justify-center gap-3 rounded-sm bg-brand px-6 py-3.5 text-[0.95rem] font-medium text-paper transition hover:bg-brand-deep disabled:cursor-not-allowed disabled:opacity-70",children:m?"Sending you to Stripeâ¦":"Checkout â secure with Stripe â"}),(0,r.jsx)("button",{type:"button",onClick:u,className:"mt-3 w-full text-[0.78rem] text-ink-soft transition hover:text-brand",children:"Clear cart"})]})]})]})}},2909:(e,t,n)=>{"use strict";var r=n(1321);n.o(r,"usePathname")&&n.d(t,{usePathname:function(){return r.usePathname}}),n.o(r,"useRouter")&&n.d(t,{useRouter:function(){return r.useRouter}}),n.o(r,"useSearchParams")&&n.d(t,{useSearchParams:function(){return r.useSearchParams}})},2961:(e,t,n)=>{"use strict";n.d(t,{Concierge:()=>i});var r=n(2469),a=n(5889);let s=["What are your hours?","Do you have vegan options?","How does Kamayan work?","Can you cater my office?"];function i(){let[e,t]=(0,a.useState)(!1),[n,i]=(0,a.useState)([]),[l,c]=(0,a.useState)(""),[d,u]=(0,a.useState)(!1),x=(0,a.useRef)(null);async function m(e){let t=e.trim().slice(0,800);if(!t||d)return;let r=[...n,{role:"user",content:t}];i(r),c(""),u(!0);try{let e=await fetch("/api/concierge",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({messages:r.slice(-14)})}),t=await e.json().catch(()=>({}));i(e=>[...e,{role:"assistant",content:t.reply??"Sorry â please call us at (416) 443-9654."}])}catch{i(e=>[...e,{role:"assistant",content:"Iâm having trouble connecting. Please call (416) 443-9654."}])}finally{u(!1)}}return(0,a.useEffect)(()=>{x.current?.scrollTo({top:x.current.scrollHeight,behavior:"smooth"})},[n,d,e]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("button",{type:"button",onClick:()=>t(e=>!e),"aria-label":e?"Close concierge chat":"Open concierge chat",className:"fixed bottom-20 right-4 z-40 flex h-14 w-14 items-center justify-center rounded-full bg-brand text-paper shadow-lg transition hover:bg-brand-deep md:bottom-6 md:right-6",children:e?(0,r.jsx)("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:(0,r.jsx)("path",{d:"M6 6l12 12M18 6L6 18"})}):(0,r.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.7",strokeLinecap:"round",strokeLinejoin:"round",children:(0,r.jsx)("path",{d:"M21 11.5a8.38 8.38 0 0 1-8.5 8.5 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8A8.5 8.5 0 0 1 21 11.5z"})})}),e&&(0,r.jsxs)("div",{className:"fixed bottom-36 right-4 z-40 flex max-h-[70vh] w-[calc(100vw-2rem)] max-w-sm flex-col overflow-hidden rounded-lg border border-ink/15 bg-paper shadow-2xl md:bottom-24 md:right-6",children:[(0,r.jsxs)("header",{className:"flex items-center gap-3 border-b border-rule bg-ink px-4 py-3 text-paper",children:[(0,r.jsx)("span",{className:"flex h-8 w-8 items-center justify-center rounded-full bg-mango text-ink",children:(0,r.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:(0,r.jsx)("path",{d:"M12 2C6.48 2 2 6.03 2 11c0 2.4 1.03 4.58 2.7 6.2L4 22l5.1-1.6c.9.26 1.87.4 2.9.4 5.52 0 10-4.03 10-9S17.52 2 12 2z"})})}),(0,r.jsxs)("div",{className:"leading-tight",children:[(0,r.jsx)("p",{className:"font-display text-[1.05rem]",style:{fontVariationSettings:"'opsz' 144, 'SOFT' 50"},children:"Casa Manila concierge"}),(0,r.jsx)("p",{className:"font-mono text-[0.6rem] uppercase tracking-[0.16em] text-paper/60",children:"AI assistant"})]})]}),(0,r.jsxs)("div",{ref:x,className:"flex-1 space-y-3 overflow-y-auto px-4 py-4",children:[(0,r.jsx)(o,{role:"assistant",text:"Hi! Iâm the Casa Manila concierge. Ask me about hours, the menu, vegan or gluten-free options, Kamayan, party trays, or catering. \uD83C\uDF34"}),n.map((e,t)=>(0,r.jsx)(o,{role:e.role,text:e.content},t)),0===n.length&&(0,r.jsx)("div",{className:"flex flex-wrap gap-2 pt-1",children:s.map(e=>(0,r.jsx)("button",{type:"button",onClick:()=>m(e),className:"rounded-full border border-ink/15 px-3 py-1.5 text-[0.8rem] text-ink-soft transition hover:border-brand hover:text-brand",children:e},e))}),d&&(0,r.jsx)(o,{role:"assistant",text:"â¦"})]}),(0,r.jsxs)("form",{onSubmit:e=>{e.preventDefault(),m(l)},className:"flex items-center gap-2 border-t border-rule px-3 py-3",children:[(0,r.jsx)("input",{value:l,onCh
20ange:e=>c(e.target.value),maxLength:800,placeholder:"Ask about hours, menu, cateringâ¦",className:"min-w-0 flex-1 border border-rule bg-paper px-3 py-2 text-[0.9rem] text-ink outline-none focus:border-brand"}),(0,r.jsx)("button",{type:"submit",disabled:d||!l.trim(),className:"shrink-0 rounded-sm bg-brand px-3 py-2 text-paper transition hover:bg-brand-deep disabled:opacity-50","aria-label":"Send",children:(0,r.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:(0,r.jsx)("path",{d:"M22 2L11 13M22 2l-7 20-4-9-9-4 20-7z"})})})]}),(0,r.jsx)("p",{className:"px-4 pb-3 text-center text-[0.66rem] text-ink-soft",children:"AI can make mistakes â for bookings, call (416) 443-9654."})]})]})}function o(e){let{role:t,text:n}=e,a="user"===t;return(0,r.jsx)("div",{className:`flex ${a?"justify-end":"justify-start"}`,children:(0,r.jsx)("div",{className:`max-w-[85%] rounded-lg px-3.5 py-2.5 text-[0.9rem] leading-snug ${a?"bg-brand text-paper":"border border-rule bg-paper-deep text-ink"}`,children:n})})}},4111:(e,t,n)=>{Promise.resolve().then(n.t.bind(n,8168,23)),Promise.resolve().then(n.bind(n,1735)),Promise.resolve().then(n.bind(n,2859)),Promise.resolve().then(n.bind(n,2961)),Promise.resolve().then(n.bind(n,5223)),Promise.resolve().then(n.bind(n,265)),Promise.resolve().then(n.bind(n,6636)),Promise.resolve().then(n.t.bind(n,8835,23)),Promise.resolve().then(n.t.bind(n,354,23)),Promise.resolve().then(n.t.bind(n,6078,23))},5223:(e,t,n)=>{"use strict";n.d(t,{CookieConsent:()=>c});var r=n(2469),a=n(5889),s=n(1800),i=n.n(s),o=n(1735);let l="casamanila_consent";function c(){let[e,t]=(0,a.useState)(!1);return((0,a.useEffect)(()=>{if(function(e){if("undefined"==typeof document)return null;let t=document.cookie.match(RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null}(l))return;let e=window.setTimeout(()=>t(!0),800);return()=>window.clearTimeout(e)},[]),e)?(0,r.jsxs)("div",{role:"dialog","aria-label":"Cookie preferences",className:"fixed bottom-4 left-4 right-4 z-[60] mx-auto max-w-2xl border border-ink bg-paper p-5 shadow-2xl md:bottom-6 md:left-auto md:right-6",children:[(0,r.jsx)("p",{className:"font-mono text-[0.7rem] uppercase tracking-[0.18em] text-ink-soft",children:"Cookies"}),(0,r.jsxs)("p",{className:"mt-2 text-[0.95rem] leading-relaxed text-ink",children:["We use a few essential cookies to keep you signed in and your cart intact. No advertising trackers. See our"," ",(0,r.jsx)(i(),{href:"/privacy#cookies",className:"underline decoration-brand decoration-2 underline-offset-4 hover:text-brand",children:"Privacy Policy"})," ","for the details."]}),(0,r.jsxs)("div",{className:"mt-4 flex flex-wrap items-center gap-3",children:[(0,r.jsx)("button",{type:"button",onClick:()=>{d(l,"accepted",365),(0,o.T)(!0),t(!1)},className:"rounded-sm bg-brand px-5 py-2.5 text-[0.88rem] font-medium text-paper transition hover:bg-brand-deep",children:"Accept"}),(0,r.jsx)("button",{type:"button",onClick:()=>{d(l,"essential-only",365),(0,o.T)(!1),t(!1)},className:"font-mono border border-ink/20 px-4 py-2 text-[0.78rem] uppercase tracking-[0.14em] text-ink transition hover:border-ink hover:bg-ink hover:text-paper",children:"Essential only"})]})]}):null}function d(e,t,n){let r=new Date(Date.now()+24*n*36e5).toUTCString();document.cookie=`${e}=${encodeURIComponent(t)}; expires=${r}; path=/; SameSite=Lax${"https:"===location.protocol?"; Secure":""}`}},5493:(e,t,n)=>{"use strict";n.d(t,{MW:()=>l,Op:()=>o,_$:()=>i});var r=n(7758),a=n(9288);let s=e=>`${e.productSlug}__${e.variantCode}`,i=(0,r.v)()((0,a.Zr)(e=>({isOpen:!1,lines:[],open:()=>e({isOpen:!0}),close:()=>e({isOpen:!1}),toggle:()=>e(e=>({isOpen:!e.isOpen})),add:t=>e(e=>{let n=t.quantity??1,r=e.lines.findIndex(e=>s(e)===s(t));if(r>=0){let t=e.lines.slice();return t[r]={...t[r],quantity:t[r].quantity+n},{lines:t,isOpen:!0}}return{lines:[...e.lines,{...t,quantity:n}],isOpen:!0}}),remove:(t,n)=>e(e=>({lines:e.lines.filter(e=>s(e)!==s({productSlug:t,variantCode:n}))})),updateQuantity:(t,n,r)=>e(e=>({lines:e.lines.map(e=>s(e)===s({productSlug:t,variantCode:n})?{...e,quantity:r}:e).filter(e=>e.quantity>0)})),clear:()=>e({lines:[]})}),{name:"casamanila-cart"})),o=e=>e.reduce((e,t)=>
20e+t.quantity,0),l=e=>e.reduce((e,t)=>e+t.unitPriceCents*t.quantity,0)},6078:e=>{e.exports={style:{fontFamily:"'JetBrains Mono', 'JetBrains Mono Fallback'",fontStyle:"normal"},className:"__className_8fb6c0",variable:"__variable_8fb6c0"}},6636:(e,t,n)=>{"use strict";n.d(t,{SwRegister:()=>a});var r=n(5889);function a(){return(0,r.useEffect)(()=>{"serviceWorker"in navigator&&navigator.serviceWorker.register("/sw.js").catch(e=>{console.warn("[sw] register failed",e)})},[]),null}},8168:()=>{},8835:e=>{e.exports={style:{fontFamily:"'Fraunces', 'Fraunces Fallback'",fontStyle:"normal"},className:"__className_eaa818",variable:"__variable_eaa818"}}},e=>{e.O(0,[8735,1800,8565,3138,5322,9808,7358],()=>e(e.s=4111)),_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.