1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="f5f26ffa-2e77-48a0-a88b-4e4f609442a0",e._sentryDebugIdIdentifier="sentry-dbid-f5f26ffa-2e77-48a0-a88b-4e4f609442a0")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2455],{7567:(e,t,s)=>{"use strict";s.d(t,{A:()=>u});var l=s(95155),a=s(8558),d=s(5680),i=s(91866),n=s(18947),r=s(20323),o=s(12115),c=s(79912),m=s(32359);let u=e=>{let{isOpen:t,onClose:s}=e,[u,x]=(0,o.useState)(0),{dynamicMenu:h,setDynamicMenu:f}=(0,c.A)(),{clearCart:b}=(0,m.A)(),p=()=>{b(),f(!0),s()},g=()=>{f(!1),b(),s()};return(0,l.jsx)(a.Y,{size:"md",isOpen:t,onClose:()=>{x(0),s()},classNames:{base:"rounded-3xl mx-4",body:"px-6 pb-6",header:"px-6 pt-6 pb-0"},children:(0,l.jsx)(d.g,{children:e=>(0,l.jsx)(l.Fragment,{children:h?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(i.c,{className:"pb-0",children:(0,l.jsx)("div",{className:"w-full text-center",children:(0,l.jsx)("div",{className:"text-xl font-bold tracking-tight text-black mb-1",children:"Switch to Full Menu"})})}),(0,l.jsxs)(n.h,{children:[(0,l.jsxs)("div",{className:"flex flex-col gap-3 bg-neutral-50 rounded-2xl p-4 mb-1",children:[(0,l.jsxs)("div",{className:"flex gap-3",children:[(0,l.jsx)("div",{className:"w-2 h-2 rounded-full bg-primary shrink-0 mt-1.5"}),(0,l.jsxs)("p",{className:"text-sm text-default-700",children:[(0,l.jsx)("span",{className:"font-semibold text-black",children:"On Demand Menu"})," â Get your order delivered as soon as possible"]})]}),(0,l.jsxs)("div",{className:"flex gap-3",children:[(0,l.jsx)("div",{className:"w-2 h-2 rounded-full bg-secondary shrink-0 mt-1.5"}),(0,l.jsxs)("p",{className:"text-sm text-default-700",children:[(0,l.jsx)("span",{className:"font-semibold text-black",children:"Full Menu"})," â Browse our wide range of products and schedule your delivery"]})]})]}),(0,l.jsx)("p",{className:"text-xs text-default-400 text-center font-medium",children:"* Your shopping cart will be emptied if you switch menus."}),(0,l.jsx)(r.T,{fullWidth:!0,radius:"full",onClick:g,className:"bg-secondary font-semibold text-white py-6 mt-1",onPress:e,children:"Switch to Full Menu"}),(0,l.jsx)(r.T,{fullWidth:!0,radius:"full",onClick:e,className:"border-default-200 py-6 text-default-600 font-medium",variant:"bordered",onPress:e,children:"Stay on On Demand Menu"})]})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(i.c,{className:"pb-0",children:(0,l.jsx)("div",{className:"w-full text-center",children:(0,l.jsx)("div",{className:"text-xl font-bold tracking-tight text-black mb-1",children:"Switch to On Demand Menu"})})}),(0,l.jsxs)(n.h,{children:[(0,l.jsxs)("div",{className:"flex flex-col gap-3 bg-neutral-50 rounded-2xl p-4 mb-1",children:[(0,l.jsxs)("div",{className:"flex gap-3",children:[(0,l.jsx)("div",{className:"w-2 h-2 rounded-full bg-primary shrink-0 mt-1.5"}),(0,l.jsxs)("p",{className:"text-sm text-default-700",children:[(0,l.jsx)("span",{className:"font-semibold text-black",children:"On Demand Menu"})," â Get your order delivered as soon as possible"]})]}),(0,l.jsxs)("div",{className:"flex gap-3",children:[(0,l.jsx)("div",{className:"w-2 h-2 rounded-full bg-secondary shrink-0 mt-1.5"}),(0,l.jsxs)("p",{className:"text-sm text-default-700",children:[(0,l.jsx)("span",{className:"font-semibold text-black",children:"Full Menu"})," â Browse our wide range of products and schedule your delivery"]})]})]}),(0,l.jsx)("p",{className:"text-xs text-default-400 text-center font-medium",children:"* Your shopping cart will be emptied if you switch menus."}),(0,l.jsx)(r.T,{fullWidth:!0,radius:"full",onClick:p,className:"bg-black font-semibold text-white py-6 mt-1",onPress:e,children:"Switch to On Demand Menu"}),(0,l.jsx)(r.T,{fullWidth:!0,radius:"full",onClick:e,className:"border-default-200 py-6 text-default-600 font-medium",variant:"bordered",onPress:e,children:"Stay on Full Menu"})]})]})})})})}},17451:(e,t,s)=>{"use strict";s.d(t,{default:()=>i});var l=s(95155),a=s(52694),d=s(20063);function i(){let e=(0,d.useRouter)();return(0,l.jsxs)("div",{onClick:e.back,className:"text-xm text-black underline cursor-pointer flex",children:[(0,l.jsx)(a.kRp,{className:"text-lg mt-1"})," Back to shop"]})}},18947:(e,t,s)=>{"use strict";s.d(t,{h:()=>c});var l=s(34254),a=s(12115),d=s(22280),i=s(68603),n=s(16849),r=s(95155),o=(0,d.Rf)((e,t)=>{let{as:s,children:d,className:o,...c}=e,{slots:m,classNames:u,bodyId:x,setBodyMounted:h}=(0,l.k)(),f=(0,i.zD)(t);return(0,a.useEffect)(()=>(h(!0),()=>h(!1)),[h]),(0,r.jsx)(s||"div",{ref:f,className:m.body({class:(0,n.$)(null==u?void 0:u.body,o)}),id:x,...c,children:d})});o.displayName="NextUI.ModalBody";var c=o},32359:(e,t,s)=>{"use strict";s.d(t,{A:()=>d});var l=s(95988),a=s(89863);let d=(0,l.vt)((0,a.Zr)((e,t)=>({items:[],promoCode:"",promoId:"",creditPromoId:"",referralCode:"",reward:"",addItem:s=>{e(((e,t)=>t.find(t=>
1t.id===e.id)?{items:t.map(t=>t.id===e.id?{...t,quantity:t.quantity+1}:t)}:{items:[{...e,quantity:1},...t]})(s,t().items))},setPromoCode:s=>{e({items:t().items,promoCode:s})},setPromoId:s=>{e({items:t().items,promoId:s})},setCreditPromoId:s=>{e({items:t().items,creditPromoId:s})},setReferralCode:s=>{e({items:t().items,referralCode:s})},setReward:s=>{e({items:t().items,reward:s})},setItemQuantity:(s,l)=>{let a=t().items;a.find(e=>e.id===s)&&(l<=0?e({items:a.filter(e=>e.id!==s)}):e({items:a.map(e=>e.id===s?{...e,quantity:l}:e)}))},removeItem:s=>{e(((e,t)=>{let s=t.find(t=>t.id===e.id);return s&&s.quantity>1?{items:t.map(t=>t.id===e.id?{...t,quantity:t.quantity-1}:t)}:s&&1===s.quantity?{items:t.filter(t=>t.id!==e.id)}:{items:[...t,{...e,quantity:1}]}})(s,t().items))},removeItemsById:s=>{e({items:t().items.filter(e=>!s.includes(e.id))})},clearCart:()=>e({items:[],promoCode:"",promoId:"",creditPromoId:"",reward:"",referralCode:""}),updatePrices:s=>{e({items:t().items.map(e=>{let t=s.find(t=>t.productId===e.id);return t?{...e,retailPrice:t.retailPrice,salePrice:t.newPrice}:e})})},getItemInCart:e=>{let s=t().items.find(t=>t.id===e);return s?{...s}:null},getTotalItemCount:()=>t().items.reduce((e,t)=>e+t.quantity,0)}),{name:"cart-storage"}))},33099:(e,t,s)=>{"use strict";s.d(t,{default:()=>C});var l=s(95155),a=s(12115),d=s(3648);function i(){let e=(0,d._)(["\nquery GetDeal(\n $id: String!\n $lat: String\n $long: String\n $dynamicMenu: Boolean){\n GetDeal(\n id: $id\n lat: $lat\n long: $long\n dynamicMenu: $dynamicMenu){\n id\n promoCode\n promoId\n items {\n limit\n name\n products {\n id\n name\n flowerType\n assets {\n thumbURL\n }\n thc\n weight\n unitPrice\n salePrice\n maxQuantity\n }\n }\n }\n}\n"]);return i=function(){return e},e}let n=(0,s(80207).J1)(i());var r=s(65581),o=s(79912),c=s(48389),m=s(56821),u=s(15239);let x=e=>{var t;let{product:s,totalCount:d,setTotalCount:i,handleGlobalCount:n,removeItem:r,addItem:o,limit:c}=e,{badge:m,flowerType:x,thumbnailPhoto:h,name:f,thc:b}=s,[p,g]=(0,a.useState)(0),[v,j]=(0,a.useState)(!1),y=null!=(t=s.maxQuantity)?t:null,N=p>0,w=d>=c,k=e=>{-1===e&&p>0?(j(!1),i(d-1),n(-1),g(p-1),r(s)):1!==e||w||(null!==y&&p>=y?j(!0):(j(!1),i(d+1),n(1),g(p+1),o(s)))};return(0,l.jsxs)("div",{className:"relative rounded-2xl border-2 transition-all duration-200 bg-white flex flex-col h-full ".concat(N?"border-black shadow-md":"border-slate-200 shadow-sm"),children:[(0,l.jsxs)("div",{className:"absolute left-2 top-2 flex flex-wrap gap-1 z-[1]",children:[m&&(0,l.jsx)("div",{className:"text-[10px] font-semibold px-2 py-0.5 text-white bg-yellow rounded-full",children:m}),x&&(0,l.jsxs)(l.Fragment,{children:["Indica"===x&&(0,l.jsx)("div",{className:"text-[10px] font-semibold px-2 py-0.5 text-white rounded-full bg-indica",children:x}),"Hybrid"===x&&(0,l.jsx)("div",{className:"text-[10px] font-semibold px-2 py-0.5 text-white bg-hybrid rounded-full",children:x}),"Sativa"===x&&(0,l.jsx)("div",{className:"text-[10px] font-semibold px-2 py-0.5 text-white bg-sativa rounded-full",children:x})]})]}),N&&(0,l.jsx)("div",{className:"absolute top-2 right-2 z-[1] w-5 h-5 rounded-full bg-black flex items-center justify-center",children:(0,l.jsx)("svg",{className:"w-3 h-3 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3,d:"M5 13l4 4L19 7"})})}),(0,l.jsx)("div",{className:"mx-2 mt-2 mb-1 rounded-xl bg-white aspect-square w-32 flex items-center justify-center overflow-hidden",children:(0,l.jsx)(u.default,{alt:f,className:"w-full h-full object-contain p-4",src:h||"/flower_circle.svg",width:200,height:200})}),(0,l.jsxs)("div",{className:"px-2.5 pb-2.5 flex flex-col flex-grow",children:[(0,l.jsx)("p",{className:"font-bold leading-snug text-[13px] tracking-tight mb-1 flex-grow",children:f}),(0,l.jsx)("div",{className:"mb-2.5",children:b>0&&(0,l.jsxs)("div",{className:"text-[11px] font-semibold text-secondary",children:[b.toFixed(0),"% THC"]})}),(0,l.jsx)("div",{className:"rounded-full overflow-hidden border-2 transition-all duration-200 ".concat(N?"border-black bg-black":"border-slate-200 bg-white"),children:(0,l.jsxs)("div",{className:"grid grid-cols-3 text-center w-full",children:[(0,l.jsx)("button",{className:"py-2 text-base font-bold transition-colors active:opacity-70 ".concat(N?"text-white":"text-default-400"),onClick:()=>k(-1),children:"â"}),(0,l.jsx)("div",{className:"py-2 font-bold text-sm ".concat(N?"text-white":"text-default-600"),children:p}),(0,l.jsx)("button",{className:"py-2 text-base font-bold transition-colors active:opacity-70 ".concat(w?"text-white/30":N?"text-white":"text-default-700"),onClick:()=>k(1),children:"+"})]})})]})]})};var h=s(68072),f=s(52694);s(70790);let b=e=>{let{products:t,handleGlobalCount:s,addItem:d,removeItem:i,limit:n,handleNext:r}=e,[o,c]=(0,h.A)({dragFree:!0,containScroll:"trimSnaps"}),[m,u]=(0,a.useState)(0),[b,p]=(0,a.useState)(!0),[g,v]=(0,a.useState)(!1),j=(0,a.useCallback)(()=>c&&c.scrollNext(),[c]),y=(0,a.useCallback)(()=>c&&c.scrollPrev(),[c]);(0,a.useEffect)(()=>{m===n&&r()},[m]);let N=(0,a.useCallback)(()=>{c&&(v(c.canScrollPrev()),p(c.canScrollNext()))},[c]);return(0,a.useEffect)(()=>{c&&(c.on("select",N),N())},[c,N]),(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)("div",{className:"embla overflow-hidden ",ref:o,children:(0,l.jsx)("div",{className:"embla__container flex ",children:t.map((e,t)=>(0,l.jsx)("div",{className:"deal_slide",children:(0,l.jsx)(x,{product:{id:e.id,name:e.name,thumbnailPhoto:e.assets.length>0&&e.assets[0].thumbURL?e.assets[0].thumbURL:"",flowerType:e.flowerType,totalCannabinoids:e.cbn,thc:e.thc,retailPrice:e.unitPrice,badge:e.badge,isDeal:e.isDeal,brand:"",maxQuantity:e.maxQuantity},totalCount:m,setTotalCount:u,handleGlobalCount:s,addItem:d,removeItem:i,limit:n})},"".concat(e.id,"-").concat(t)))})}),b&&(0,l.jsx)("div",{className:"hidden md:block absolute text-white bg-black rounded-full p-2 text-3xl right-0 top-28 cursor-pointer",children:(0,l.jsx)(f.dyV,{onClick:j})}),g&&(0,l.jsx)("div",{onClick:y,className:"hidden md:block absolute text-white bg-black left-0 top-28 rounded-full p-2 text-3xl cursor-pointer",children:(0,l.jsx)(f.kRp,{})})]})};var p=s(64717),g=s(32359),v=s(20323),j=s(81616),y=s(34120);function N(){return(0,l.jsx)("div",{className:"relative",children:(0,l.jsx)(y.m,{className:"space-y-5 p-5"})})}var w=s(56744),k=s(7567);let C=e=>{let{dealId:t}=e,{openCart:s}=(0,j.A)(),{addItem:d,setPromoCode:i,setPromoId:u}=(0,g.A)(),{openAddressModal:x}=(0,w.A)(),[h,y]=(0,a.useState)(new Set(["item_0"])),[C,I]=(0,a.useState)(!1),[S,P]=(0,a.useState)(!1),[D,M]=(0,a.useState)([]),[O,A]=(0,a.useState)(0),[_,q]=(0,a.useState)(100),{dynamicMenu:R,address:T,hydrated:F,setDynamicMenu:G}=(0,o.A)(),{data:U,error:$,loading:z}=(0,r.IT)(n,{fetchPolicy:"cache-and-network",variables:{id:t,lat:T.latitude?T.latitude.toString():"",long:T.longitude?T.longitude.toString():"",dynamicMenu:R},onCompleted(e){for(var t=0,s=!1,l=0;l<e.GetDeal.items.length;l++)0==e.GetDeal.items[l].products.length&&(s=!0),t+=e.GetDeal.items[l].limit;I(s),q(t)}}),E=e=>{var t=JSON.parse(JSON.stringify(D));let s=D.findIndex(t=>t.id===e.id);if(s>-1)t[s].quantity+=1,M(t);else{var l=JSON.parse(JSON.stringify(e));l.quantity=1,t.push(l),M(t)}},B=e=>{M(t=>t.reduce((t,s)=>{if(s.id===e.id){let l=s.quantity-e.quantity;return l>0?[...t,{...s,quantity:l}]:[...t]}return[...t,s]},[]))},L=e=>{A(O+e)};(0,a.useEffect)(()=>{F&&!T.latitude&&x()},[T,F]);let{getTotalItemCount:W}=(0,g.A)(),[J,Q]=(0,a.useState)(!1),H=U&&O===_,Y=U&&_<100?_:0;return(0,l.jsxs)("div",{className:"mb-10",children:[S?(0,l.jsxs)("div",{className:"flex items-center gap-3 bg-green-50 border border-green-200 p-4 rounded-2xl",children:[(0,l.jsx)("div",{className:"w-8 h-8 rounded-full bg-green-500 flex items-center justify-center shrink-0",children:(0,l.jsx)(f.YrT,{className:"text-white text-base"})}),(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"font-semibold text-green-800",children:"Deal added to cart!"}),(0,l.jsx)("div",{className:"text-xs text-green-600",children:"Review your cart to complete checkout."})]})]}):C?(0,l.jsxs)("div",{className:"bg-amber-50 border border-amber-200 p-4 rounded-2xl",children:[(0,l.jsxs)("div",{className:"flex items-start gap-3 mb-3",children:[(0,l.jsx)(p.mRc,{className:"text-2xl text-amber-500 shrink-0 mt-0.5"}),(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"font-semibold text-amber-900",children:"Some items unavailable"}),R&&(0,l.jsx)("div",{className:"text-sm text-amber-700 mt-0.5",children:"Switch to the full menu to order this deal now."})]})]}),R&&(0,l.jsx)(v.T,{onPress:()=>{W()>0?Q(!0):T.latitude||T.longitude?0>
1=W()?G(!1):Q(!0):x()},radius:"full",className:"w-full bg-black text-white font-medium",children:"Switch to Full Menu"})]}):U?(0,l.jsxs)(l.Fragment,{children:[Y>0&&(0,l.jsxs)("div",{className:"mb-5 p-3.5 bg-default-50 rounded-2xl border border-default-200",children:[(0,l.jsxs)("div",{className:"flex justify-between items-center mb-2",children:[(0,l.jsx)("span",{className:"text-sm font-semibold text-default-700",children:"Items selected"}),(0,l.jsxs)("span",{className:"text-sm font-bold ".concat(H?"text-primary":"text-default-500"),children:[O," / ",_]})]}),(0,l.jsx)("div",{className:"flex gap-1.5",children:Array.from({length:Y}).map((e,t)=>(0,l.jsx)("div",{className:"h-2 flex-1 rounded-full transition-all duration-300 ".concat(t<O?"bg-primary":"bg-default-200")},t))})]}),(0,l.jsx)(c.D,{selectedKeys:h,onSelectionChange:y,variant:"bordered",className:"rounded-2xl overflow-hidden",children:U.GetDeal.items.map((e,t)=>(0,l.jsx)(m.R,{"aria-label":"Step ".concat(t+1),title:(0,l.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,l.jsx)("div",{className:"w-6 h-6 rounded-full bg-black text-white text-xs font-bold flex items-center justify-center shrink-0",children:t+1}),(0,l.jsx)("span",{className:"font-semibold text-sm",children:"Choose ".concat(e.limit," item").concat(e.limit>1?"s":"")})]}),keepContentMounted:!0,children:(0,l.jsx)(b,{handleNext:()=>y(new Set(["item_".concat(t+1)])),limit:e.limit,removeItem:B,addItem:E,handleGlobalCount:L,products:e.products})},"item_".concat(t)))}),(0,l.jsx)(v.T,{disabled:!H,onClick:()=>{for(var e=0;e<D.length;e++)for(var t=1;t<=D[e].quantity;t++)d(D[e]);u(U.GetDeal.promoId),P(!0),s()},fullWidth:!0,radius:"full",className:"mt-5 font-semibold text-base py-6 transition-all duration-200 ".concat(H?"bg-black text-white":"bg-default-100 text-default-400 cursor-not-allowed"),children:H?"Add to Cart":"Select ".concat(_-O," more item").concat(_-O!=1?"s":""," to continue")})]}):(0,l.jsx)(N,{}),(0,l.jsx)(k.A,{isOpen:J,onClose:()=>Q(!1)})]})}},34137:(e,t,s)=>{Promise.resolve().then(s.bind(s,33099)),Promise.resolve().then(s.t.bind(s,52619,23)),Promise.resolve().then(s.t.bind(s,81356,23)),Promise.resolve().then(s.bind(s,17451))},56744:(e,t,s)=>{"use strict";s.d(t,{A:()=>l});let l=(0,s(95988).vt)(e=>({addressModalOpen:!1,openAddressModal:()=>e(e=>({...e,addressModalOpen:!0})),closeAddressModal:()=>e(e=>({...e,addressModalOpen:!1}))}))},70790:()=>{},79912:(e,t,s)=>{"use strict";s.d(t,{A:()=>d});var l=s(95988),a=s(89863);let d=(0,l.vt)((0,a.Zr)((e,t)=>({user:{id:"",firstName:"",lastName:"",email:"",phone:"",emailOptIn:!1,textOptIn:!1,idUploaded:!1,medRecUploaded:!1,blazeId:""},address:{address:"",city:"",state:"",zipCode:"",latitude:"",longitude:""},dynamicMenu:!1,asapDisabled:!1,hydrated:!1,hours:{open:"",close:""},storeInfo:{terminalId:"",storeId:"",region:null},setHours:t=>e(e=>({...e,hours:t})),setDynamicMenu:t=>e(e=>({...e,dynamicMenu:t})),setAsapDisabled:t=>e(e=>({...e,asapDisabled:t})),setHydrated:t=>e(e=>({...e,hydrated:t})),setUser:t=>e({user:t}),setAddress:t=>e({address:t}),setStoreInfo:t=>e(e=>({...e,storeInfo:t})),clearUser:()=>e({user:{id:"",firstName:"",lastName:"",email:"",phone:"",emailOptIn:!1,textOptIn:!1,idUploaded:!1,medRecUploaded:!1,blazeId:""}}),clearAddress:()=>e({asapDisabled:!1,address:{address:"",city:"",state:"",zipCode:"",latitude:"",longitude:""}})}),{name:"user-storage",onRehydrateStorage:e=>{let{setHydrated:t}=e;return e=>{t(!0)}}}))},81616:(e,t,s)=>{"use strict";s.d(t,{A:()=>l});let l=(0,s(95988).vt)(e=>({cartOpen:!1,openCart:()=>e(e=>({cartOpen:!0})),closeCart:()=>e(e=>({cartOpen:!1}))}))}},e=>{e.O(0,[6525,6603,2084,6148,323,2619,1356,8214,8255,5581,8459,4164,2978,813,1833,2732,9585,4850,8441,1117,7358],()=>e(e.s=34137)),_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.