PageSourceSearch

https://shop.thebkrycannabis.ca/_next/static/chunks/09jxr28o8e1_9.js

js thebkrycannabis.ca collected 2026-09-30 16:19:34 UTC 53,168 bytes, 8 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,94182,(e,t,o)=>{t.exports=e.r(61457)},48062,e=>{e.v({"burger-category-list":"CategoryList-module-scss-module___LkBYW__burger-category-list","product-group-active":"CategoryList-module-scss-module___LkBYW__product-group-active"})},33932,e=>{e.v({"age-vrf-p":"branchSelection-module-scss-module__vDSNTW__age-vrf-p",ageVrfT:"branchSelection-module-scss-module__vDSNTW__ageVrfT",branch_modal_header:"branchSelection-module-scss-module__vDSNTW__branch_modal_header",branch_name:"branchSelection-module-scss-module__vDSNTW__branch_name",branch_section_wrapper:"branchSelection-module-scss-module__vDSNTW__branch_section_wrapper","close-btn":"branchSelection-module-scss-module__vDSNTW__close-btn"})},9137,e=>{e.v({spin:"spinner-module-scss-module__oAR2xa__spin",spinner:"spinner-module-scss-module__oAR2xa__spinner"})},9659,94078,73843,20089,3606,35118,34260,e=>{"use strict";var t=e.i(91398),o=e.i(58678),s=e.i(91788),r=e.i(36218),a=e.i(78856),c=e.i(62795),i=e.i(24083),n=e.i(26019),l=e.i(3828),d=e.i(22276),u=e.i(44186),m=e.i(48062),h=e.i(9137);let p=({className:e="",color:o="#9FCEB3",size:s=20})=>{let r={width:`${s}px`,height:`${s}px`,borderTopColor:o,borderLeftColor:o,borderRightColor:o};return(0,t.jsx)("div",{className:`${h.default.spinner} ${e}`,style:r})};e.s(["default",0,p],94078);let b=({productGroupLoading:e,open:o,categories:s,onCategoryClick:r,selectedCategoryId:a,sortId:c,todayMenuProductGroupId:i})=>(0,t.jsxs)("div",{children:[e&&(0,t.jsx)("div",{className:"d-flex justify-content-center align-items-center vh-100 vw-100",children:(0,t.jsx)(p,{className:"spinner-add-to-cart",color:"#9FCEB3",size:30})}),(0,t.jsx)("div",{children:o&&(0,t.jsxs)("ul",{className:m.default["burger-category-list"],children:[(0,t.jsx)("li",{className:"berger-body-item",onClick:()=>r(i||null,"",c||1),children:(0,t.jsx)("span",{className:a==i?`${m.default["product-group-active"]}`:"",children:"All"})}),(s||[]).map((e,o)=>(0,t.jsx)("li",{className:"berger-body-item",onClick:()=>r(e.id,c),children:(0,t.jsx)("span",{className:e.id==a?`${m.default["product-group-active"]}`:"",children:e.name})},o))]})})]});var _=e.i(4654),g=e.i(32896),f=e.i(64437);function x(){return{type:f.START_FILTER_LOADING}}e.s(["selectView",0,e=>({type:f.SELECT_VIEW,selectedViewId:e}),"setProductGroupFilter",0,(e,t,o)=>({type:f.SET_PRODUCT_GROUP_FILTER,productGroup:e,categoryId:t,sortId:o}),"startFilterLoading",0,x,"stopFilterLoading",0,function(){return{type:f.STOP_FILTER_LOADING}}],73843);var v=e.i(27756),y=e.i(64627),j=e.i(72683),C=e.i(91567),I=e.i(33932);let S=({userBranches:e=[],closeSelectBranchDialog:o,selectedBranchName:s})=>(0,t.jsx)("div",{className:"text-center",children:(0,t.jsx)("div",{className:I.default.branch_section_wrapper,children:e.map((e,r)=>(0,t.jsx)("div",{className:I.default.branch_name,onClick:()=>o(e.id,e.slugName),style:{backgroundColor:s===e.name?"#f7f7f7":""},children:(0,t.jsx)("span",{children:e.name})},r))})});S.propTypes={userBranches:C.default.arrayOf(C.default.shape({id:C.default.oneOfType([C.default.string,C.default.number]).isRequired,name:C.default.string.isRequired})),closeSelectBranchDialog:C.default.func.isRequired};var N=e.i(43690),w=e.i(14928),P=e.i(72991);let k=e=>"HomePage"===(e?.rootPage||"Branches")?"":"/homepage";e.s(["getCanonicalUrl",0,(e,t)=>"HomePage"===t?`${e}`:`${e}/homepage`,"getHomeUrlByBranch",0,(e,t)=>"HomePage"===t?`/${e}`:`/${e}/homepage`,"getRootPages",0,k],20089);var E=e.i(31387);let M=(0,g.default)(()=>e.A(11592),{loadableGenerated:{modules:[14364]},ssr:!1}),q=({branchId:e,seoSettings:o,applicationSettings:m})=>{let h=(0,d.useDispatch)(),{cart:p,loggedIn:g,isExpress:f,headerBackgroundColor:C,headerBackgroundImageUrl:I,headerForegroundColor:q,todayMenuProductGroupId:A,branches:T,homeIconImageUrl:$,showLocationDialog:L,signInToAccessSite:G,headerBorderColor:B,headerBorderWidth:F,isLogged:U,sideCartModeEnabled:W,branchSelectionDialogProp:R,userBranches:D}=(0,d.useSelector)(e=>({cart:e.cart,loggedIn:e.common.loggedIn,isExpress:e.common.expressCheckout,loading:e.common.ajaxCallsInProgress>
10,headerBackgroundColor:e.entity.webMenuUISettings.headerBackgroundColor,headerBackgroundImageUrl:e.entity.webMenuUISettings.headerBackgroundImageUrl,headerForegroundColor:e.entity.webMenuUISettings.headerForegroundColor,todayMenuProductGroupId:e.entity.webMenuUISettings.todayMenuProductGroupId,branches:e.common.branches,homeIconImageUrl:e.entity.webMenuUISettings.homeIconImageUrl,showLocationDialog:e.entity.webMenuUISettings.showLocationDialog,signInToAccessSite:e.entity.webMenuUISettings.signInToAccessSite,headerBorderColor:e.entity.webMenuUISettings.headerBorderColor,headerBorderWidth:e.entity.webMenuUISettings.headerBorderWidth,isLogged:e.common.loggedIn.authenticated,sideCartModeEnabled:e.entity.webMenuUISettings.sideCartModeEnabled,branchSelectionDialogProp:e.common.branchSelectionDialog,userBranches:e.common.branches})),O=(0,l.useRouter)(),{branchSlug:z}=O.query,H=(0,w.createBranchSlug)(z),Q=e=>{let t=O.query[e];return t||null},[V,Y]=(0,s.useState)(!1),[Z,K]=(0,s.useState)(Q("searchtext")||""),[X,J]=(0,s.useState)(!1),[ee,et]=(0,s.useState)(Q("productgroupid")||""),eo=m==E.APPLICATION_TYPE.VAPE,es=(L||T?.length>1)&&!f,[er,ea]=(0,s.useState)(""),[ec,ei]=(0,s.useState)("white"),[en,el]=(0,s.useState)({borderStyle:"solid",borderWidth:0,borderColor:"#fff"}),[ed,eu]=(0,s.useState)("");(0,s.useEffect)(()=>{eu(T?.find(t=>t.id==e)?.name||"")},[T,e]),(0,s.useEffect)(()=>{(0,u.setToLocalStorage)("headerBackgroundColor",C),ea((0,u.getFromLocalStorage)("headerBackgroundColor")||C)},[C]),(0,s.useEffect)(()=>{let e="White";"Black"===q?ei(e="White"):ei(q||e)},[q]),(0,s.useEffect)(()=>{el({borderStyle:"solid",borderWidth:F||0,borderColor:B||(C?.toLowerCase()==="white"?"#fff":C)})},[F,B,C]),(0,s.useEffect)(()=>{{let e=()=>{window.scrollY>25?J(!0):J(!1)};return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)}},[]);let{searchtext:em}=O.query,eh=()=>{Y(!V),!0!==V&&eC()},ep=e=>{let t=e.target.value;K(t);let o=t?.trim();o?.length===0&&ef(!0)},eb=e=>{("Enter"===e.key||"Enter"===e.code||13===e.which)&&ef()},e_=()=>{h((0,a.signOut)()),h((0,c.getCart)(e,!0)),G&&!f?O.push((0,v.buildPath)({branchSlug:H,path:"/",isExpress:f})):O.push((0,v.buildPath)({branchSlug:H,path:O.asPath,isExpress:f}))},eg=()=>{h((0,a.openBranchSelectionDialog)()),eh()},ef=(e=!1)=>{let t={};if(t.searchtext=e?void 0:Z?.trim(),O.pathname.includes("/menu")&&O.query?.productgroupid){let{branchSlug:e,...o}=O.query||{};t={...o,...t}}h(x()),O.push({pathname:(0,v.buildPath)({branchSlug:H,path:"/menu",isExpress:f}),query:t},void 0,{shallow:!1})},[ex,ev]=(0,s.useState)([]),[ey,ej]=(0,s.useState)(!1),eC=async()=>{let e=(0,u.getFromSessionStorage)("webMenuProductGroupList");if(e)ev(e);else try{ej(!0);let e=await _.default.HttpGet(`menu/${H}`),t=e?.data,o=t.success?t.data:[];ev(o),(0,u.setFromSessionStorage)("webMenuProductGroupList",o),ej(!1)}catch(e){console.error("Error fetching web menu product group:",e),ev([]),(0,u.setFromSessionStorage)("webMenuProductGroupList",[]),ej(!1)}};(0,s.useEffect)(()=>{let e=()=>{h((0,c.closeSideBarCart)())};return O.events.on("routeChangeStart",e),()=>{O.events.off("routeChangeStart",e)}},[O,h]);let eI=(0,s.useCallback)(()=>{h((0,a.closeBranchSelectionDialog)())},[h]),eS=y.NavigationIcon.home,eN=y.NavigationIcon.cart,ew=y.NavigationIcon.login,eP=y.NavigationIcon.search,ek=y.NavigationIcon.logoutIcon,eE=y.NavigationIcon.accountIcon,eM=y.GeneralIcon.plus,eq="string"==typeof ec&&""!==ec.trim()?ec:void 0,eA="string"==typeof er&&""!==er.trim()?er:void 0,eT="string"==typeof I&&""!==I.trim()?`url(${I})`:void 0;return(!G||U)&&(0,t.jsxs)("div",{children:[(0,t.jsx)(j.default,{open:R&&!0,title:"Pick Your Nearest Location",onClose:eI,size:"large",children:(0,t.jsx)(S,{closeSelectBranchDialog:(t,s)=>{h((0,c.cleanCart)({branchId:e})),h((0,a.closeBranchSelectionDialog)()),h((0,i.resetProductGroupImagesLoaded)()),(0,u.removeFromSessionStorage)("webMenuProductGroupList");let r="";o?.disableIdInBranchSlug||(r=(0,P.getBranchSlugFromId)(D,t)),O.push((0,v.buildPath)({branchSlug:`${o?.disableIdInBranchSlug?s:`${r}-${t}`}`,path:k(o),isExpress:f}),void 0,{shallow:!1})},userBranches:D,selectedBranchName:ed})}),(0,t.jsx)("div",{className:`main_header ${X?"fixedHeader":""}`,style:{backgroundColor:eA,backgroundImage:eT},children:(0,t.jsx)("div",{style:en,children:(0,t.jsxs)("div",{className:"header-row",children:[(0,t.jsxs)("div",{className:"d-flx flx-start menu_item_gap",children:[(0,t.jsxs)("div",{className:`hamburger ${V?"open":""}`,onClick:eh,children:[(0,t.jsx)("div",{className:"bar",style:{backgroundColor:eq}}),(0,t.jsx)("div",{className:"bar",style:{backgroundColor:eq}}),(0,t.jsx)("div",{className:"bar",style:{backgroundColor:eq}})]}),$?(0,t.jsx)(r.default,{className:"menu_links home_icon",href:(0,v.buildPath)({branchSlug:H,path:k(o),isExpress:f}),children:(0,t.jsx)(n.default,{className:"home-icon img-fluid h-auto",src:$,alt:"Home",height:0,width:80})}):(0,t.jsxs)(r.default,{className:"menu_links home_icon",href:(0,v.buildPath)({branchSlug:H,path:k(o),isExpress:f}),children:[(0,t.jsx)(eS,{color:ec}),(0,t.jsx)("span",{style:{color:ec},children:"Home"})]}),T&&es&&(0,t.jsx)(M,{isHamburgerMenu:!1,selectedBranchName:ed,clearSelectedBranch:eg,color:ec})]}),(0,t.jsxs)("div",{className:"position-relative nav_search_bar",children:[(0,t.jsx)("span",{className:"icon_search_box",onClick:()=>ef(),children:(0,t.jsx)(eP,{color:"#444"})}),(0,t.jsx)("input",{type:"text",className:"form-control nav_header_search",value:Z,placeholder:"Search products...",onChange:ep,onKeyDown:eb,name:"searchBox"})]}),(0,t.jsxs)("div",{className:"nav_cart_icon d-flx flx-end",children:[!f&&(0,t.jsx)("span",{className:"account-info",children:g&&!g.isLoggedIn?(0,t.jsx)(r.default,{href:(0,v.buildPath)({branchSlug:H,path:"/account/signin",isExpress:f}),children:(0,t.jsxs)("div",{className:"menu_links",children:[(0,t.jsx)(ew,{color:ec}),(0,t.jsx)("span",{style:{color:ec},children:"Login | Sign up"})]})}):(0,t.jsxs)("span",{className:"my-account",children:[(0,t.jsxs)(r.default,{href:(0,v.buildPath)({branchSlug:H,path:"/account/member-portal",isExpress:f}),style:{color:ec},children:[(0,t.jsx)(eE,{size:"20",color:ec}),(0,t.jsx)("span",{style:{color:ec}
1,children:"My Account"})]}),(0,t.jsxs)("div",{onClick:e_,style:{color:ec},children:[(0,t.jsx)(ek,{size:"20",color:ec}),"Logout"]})]})}),(0,t.jsxs)("div",{onClick:()=>void(W?h((0,c.toggleCart)()):O.push((0,v.buildPath)({branchSlug:H,path:"/cart",isExpress:f}))),className:"menu_links",children:[(0,t.jsxs)("div",{className:"cart_section",children:[(0,t.jsx)("span",{className:"cart-count",children:(0,N.getTotalQuantity)(p?.cartItems)}),(0,t.jsx)(eN,{color:ec})]}),(0,t.jsxs)("span",{className:"nav_cart_data",style:{color:ec},children:["$ ",p?.subTotal.toFixed(2)]})]})]})]})})}),(0,t.jsx)("div",{style:{backgroundColor:eA,backgroundImage:eT},className:"mobile-searchbar position-relative",children:(0,t.jsxs)("div",{className:"mobile-search-wrapper",children:[(0,t.jsx)("span",{className:"icon_search_box",onClick:()=>ef(),children:(0,t.jsx)(eP,{color:"#444"})}),(0,t.jsx)("input",{type:"text",className:"form-control nav_header_search",value:Z,placeholder:"Search products...",onChange:ep,onKeyDown:eb,name:"searchBox"})]})}),(0,t.jsx)("div",{className:V?"burger-bg show":"burger-bg hide",onClick:eh,children:(0,t.jsxs)("div",{className:V?"burger-items show":"burger-items",style:{transform:V?"translateX(0)":"translateX(-100%)"},onClick:e=>e.stopPropagation(),children:[(0,t.jsxs)("div",{className:"berger-body",children:[(0,t.jsx)("div",{className:"berger-body-item",children:(0,t.jsx)("div",{className:"close-btn",onClick:eh,children:(0,t.jsx)(eM,{color:"#444",size:"32"})})}),(0,t.jsxs)(r.default,{className:"berger-body-item",href:(0,v.buildPath)({branchSlug:H,path:k(o),isExpress:f}),children:[(0,t.jsx)(eS,{color:"#444"}),(0,t.jsx)("span",{children:"Home"})]}),!f&&(0,t.jsx)(t.Fragment,{children:g&&!g.isLoggedIn?(0,t.jsx)(r.default,{href:(0,v.buildPath)({branchSlug:H,path:"/account/signin",isExpress:f}),children:(0,t.jsxs)("div",{className:"berger-body-item",onClick:eh,children:[(0,t.jsx)(ew,{color:"#444"}),(0,t.jsx)("span",{children:"Login | Sign up"})]})}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(r.default,{className:"berger-body-item",href:(0,v.buildPath)({branchSlug:H,path:"/account/member-portal",isExpress:f}),children:[(0,t.jsx)(ek,{size:"20",color:"#444"}),"My Account"]}),(0,t.jsxs)("div",{className:"berger-body-item",onClick:e_,children:[(0,t.jsx)(eE,{size:"20",color:"#444"}),"Logout"]})]})}),T&&es&&(0,t.jsx)(M,{isHamburgerMenu:!0,selectedBranchName:ed,clearSelectedBranch:eg,color:"#444"})]}),(0,t.jsx)("div",{children:(0,t.jsx)(b,{open:!0,categories:ex,onCategoryClick:(e,t=eo?11:1)=>{Y(!V),et(e),h(x()),O.push({pathname:(0,v.buildPath)({branchSlug:H,path:"/menu",isExpress:f}),query:{productgroupid:e??0,category:"",sortid:t??(eo?11:1)}},void 0,{shallow:!1})},productGroupId:"",selectedCategoryId:ee,todayMenuProductGroupId:A,productGroupLoading:ey})})]})})]})};var A=e.i(961),T=e.i(61614),$=e.i(9650),$=$,L=e.i(62317);let G=function(e={}){let{autoHideDuration:t=null,disableWindowBlurListener:o=!1,onClose:r,open:a,resumeHideDuration:c}=e,i=(0,$.default)();s.useEffect(()=>{if(a)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){e.defaultPrevented||"Escape"!==e.key||r?.(e,"escapeKeyDown")}},[a,r]);let n=(0,T.unstable_useEventCallback)((e,t)=>{r?.(e,t)}),l=(0,T.unstable_useEventCallback)(e=>{r&&null!=e&&i.start(e,()=>{n(null,"timeout")})});s.useEffect(()=>(a&&l(t),i.clear),[a,t,l,i]);let d=i.clear,u=s.useCallback(()=>{null!=t&&l(null!=c?c:.5*t)},[t,c,l]);return s.useEffect(()=>{if(!o&&a)return window.addEventListener("focus",u),window.addEventListener("blur",d),()=>{window.removeEventListener("focus",u),window.removeEventListener("blur",d)}},[o,a,u,d]),{getRootProps:(t={})=>{let o={...(0,L.default)(e),...(0,L.default)(t)};return{role:"presentation",...t,...o,onBlur:e=>{let t=o.onBlur;t?.(e),u()},onFocus:e=>{let t=o.onFocus;t?.(e),d()},onMouseEnter:e=>{let t=o.onMouseEnter;t?.(e),d()},onMouseLeave:e=>{let t=o.onMouseLeave;t?.(e),u()}}},onClickAway:e=>{r?.(e,"clickaway")}}};var B=e.i(97364),F=e.i(91357),U=e.i(73456);function W(e){return e.substring(2).toLowerCase()}function R(e){let{children:t,disableReactTree:o=!1,mouseEvent:r="onClick",onClickAway:a,touchEvent:c="onTouchEnd"}=e,i=s.useRef(!1),n=s.useRef(null),l=s.useRef(!1),d=s.useRef(!1);s.useEffect(()=>(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);let u=(0,F.unstable_useForkRef)((0,U.default)(t),n),m=(0,T.unstable_useEventCallback)(e=>{let t=d.current;d.current=!1;
1let s=(0,B.unstable_ownerDocument)(n.current);if(!(!l.current||!n.current||"clientX"in e&&(s.documentElement.clientWidth<e.clientX||s.documentElement.clientHeight<e.clientY))){if(i.current){i.current=!1;return}(e.composedPath?e.composedPath().includes(n.current):!s.documentElement.contains(e.target)||n.current.contains(e.target))||!o&&t||a(e)}}),h=e=>o=>{d.current=!0;let s=t.props[e];s&&s(o)},p={ref:u};return!1!==c&&(p[c]=h(c)),s.useEffect(()=>{if(!1!==c){let e=W(c),t=(0,B.unstable_ownerDocument)(n.current),o=()=>{i.current=!0};return t.addEventListener(e,m),t.addEventListener("touchmove",o),()=>{t.removeEventListener(e,m),t.removeEventListener("touchmove",o)}}},[m,c]),!1!==r&&(p[r]=h(r)),s.useEffect(()=>{if(!1!==r){let e=W(r),t=(0,B.unstable_ownerDocument)(n.current);return t.addEventListener(e,m),()=>{t.removeEventListener(e,m)}}},[m,r]),s.cloneElement(t,p)}var D=e.i(80445),O=e.i(51221),z=e.i(90117),H=e.i(95724),Q=e.i(64107),V=e.i(47113),Y=e.i(56206),Z=e.i(3060),K=e.i(88152),X=e.i(13149),J=e.i(46739);function ee(e){return(0,J.default)("MuiSnackbarContent",e)}(0,X.default)("MuiSnackbarContent",["root","message","action"]);let et=(0,D.styled)(K.default,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})((0,z.default)(({theme:e})=>{let t="light"===e.palette.mode?.8:.98,o=(0,Z.emphasize)(e.palette.background.default,t);return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(o),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:o,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),eo=(0,D.styled)("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),es=(0,D.styled)("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),er=s.forwardRef(function(e,o){let s=(0,H.useDefaultProps)({props:e,name:"MuiSnackbarContent"}),{action:r,className:a,message:c,role:i="alert",...n}=s,l=(e=>{let{classes:t}=e;return(0,A.default)({root:["root"],action:["action"],message:["message"]},ee,t)})(s);return(0,t.jsxs)(et,{role:i,square:!0,elevation:6,className:(0,Y.default)(l.root,a),ownerState:s,ref:o,...n,children:[(0,t.jsx)(eo,{className:l.message,ownerState:s,children:c}),r?(0,t.jsx)(es,{className:l.action,ownerState:s,children:r}):null]})});function ea(e){return(0,J.default)("MuiSnackbar",e)}(0,X.default)("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);var ec=e.i(69998);let ei=(0,D.styled)("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.root,t[`anchorOrigin${(0,Q.default)(o.anchorOrigin.vertical)}${(0,Q.default)(o.anchorOrigin.horizontal)}`]]}})((0,z.default)(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical,style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:e})=>"top"!==e.anchorOrigin.vertical,style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:e})=>"left"===e.anchorOrigin.horizontal,style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:e})=>"right"===e.anchorOrigin.horizontal,style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:e})=>"center"===e.anchorOrigin.horizontal,style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),en=s.forwardRef(function(e,o){let r=(0,H.useDefaultProps)({props:e,name:"MuiSnackbar"}),a=(0,O.useTheme)(),c={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{action:i,anchorOrigin:{vertical:n,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:d=null,children:u,className:m,ClickAwayListenerProps:h,ContentProps:p,disableWindowBlurListener:b=!1,message:_,onBlur:g,onClose:f,onF
1ocus:x,onMouseEnter:v,onMouseLeave:y,open:j,resumeHideDuration:C,slots:I={},slotProps:S={},TransitionComponent:N,transitionDuration:w=c,TransitionProps:{onEnter:P,onExited:k,...E}={},...M}=r,q={...r,anchorOrigin:{vertical:n,horizontal:l},autoHideDuration:d,disableWindowBlurListener:b,TransitionComponent:N,transitionDuration:w},T=(e=>{let{classes:t,anchorOrigin:o}=e,s={root:["root",`anchorOrigin${(0,Q.default)(o.vertical)}${(0,Q.default)(o.horizontal)}`]};return(0,A.default)(s,ea,t)})(q),{getRootProps:$,onClickAway:L}=G({...q}),[B,F]=s.useState(!0),U={slots:{transition:N,...I},slotProps:{content:p,clickAwayListener:h,transition:E,...S}},[W,D]=(0,ec.default)("root",{ref:o,className:[T.root,m],elementType:ei,getSlotProps:$,externalForwardedProps:{...U,...M},ownerState:q}),[z,{ownerState:Y,...Z}]=(0,ec.default)("clickAwayListener",{elementType:R,externalForwardedProps:U,getSlotProps:e=>({onClickAway:(...t)=>{e.onClickAway?.(...t),L(...t)}}),ownerState:q}),[K,X]=(0,ec.default)("content",{elementType:er,shouldForwardComponentProp:!0,externalForwardedProps:U,additionalProps:{message:_,action:i},ownerState:q}),[J,ee]=(0,ec.default)("transition",{elementType:V.default,externalForwardedProps:U,getSlotProps:e=>({onEnter:(...t)=>{e.onEnter?.(...t),((e,t)=>{F(!1),P&&P(e,t)})(...t)},onExited:(...t)=>{e.onExited?.(...t),(e=>{F(!0),k&&k(e)})(...t)}}),additionalProps:{appear:!0,in:j,timeout:w,direction:"top"===n?"down":"up"},ownerState:q});return!j&&B?null:(0,t.jsx)(z,{...Z,...I.clickAwayListener&&{ownerState:Y},children:(0,t.jsx)(W,{...D,children:(0,t.jsx)(J,{...ee,children:u||(0,t.jsx)(K,{...X})})})})});var el=e.i(62651);let ed=()=>{let e=(0,d.useDispatch)(),{open:o,message:s,snackbarBackgroundColor:r}=(0,d.useSelector)(e=>({open:e.common?.snackbar?.open||!1,message:e.common?.snackbar?.message||"",snackbarBackgroundColor:e.entity?.webMenuUISettings?.snackbarBackgroundColor||"#000"}));return(0,t.jsx)(en,{open:o,message:s,autoHideDuration:5e3,onClose:()=>{e({type:el.SNACKBAR_HIDE_MESSAGE})},anchorOrigin:{vertical:"bottom",horizontal:"center"},sx:{zIndex:0x3b9ac9ff,"& .MuiSnackbarContent-root":{backgroundColor:r}}})},eu=e=>e.common.feedbackMessage?{display:e.common.feedbackMessage.display,success:e.common.feedbackMessage.success,heading:e.common.feedbackMessage.heading,message:e.common.feedbackMessage.message}:null;var em=e.i(30943);let eh=()=>{let e=(0,d.useDispatch)(),o=(0,d.useSelector)(eu),[r,c]=(0,s.useState)(!1);if((0,s.useEffect)(()=>{if(o){c(!0);let t=setTimeout(()=>{c(!1),e((0,a.clearFeedbackMessage)())},2500);return()=>clearTimeout(t)}},[o,e]),!o)return null;let i=o.success?"alert-success":"alert-warning";return em.default.createPortal((0,t.jsx)("div",{className:`custom-toast-wrapper ${r?"show":"hide"}`,children:(0,t.jsxs)("div",{className:`alert ${i} alert-dismissible fade show`,role:"alert",children:[(0,t.jsx)("strong",{children:o.heading})," ",o.message,(0,t.jsx)("button",{type:"button",className:"close",onClick:()=>{c(!1),e((0,a.clearFeedbackMessage)())},children:(0,t.jsx)("span",{"aria-hidden":"true",children:"×"})})]})}),document.body)};var ep=e.i(91683),eb=e.i(80220),e_=e.i(48199),eg=e.i(4063),ef=e.i(30791),ex=e.i(36110);let ev=({product:e,minusQuantity:o,plusQuantity:s,changeQuantity:r,initialValue:a,PlusIcon:c,MinusIcon:i,className:n,disableControls:l})=>(0,t.jsxs)("div",{className:`${ex.default["product-detail-qty"]} ${n}`,children:[(0,t.jsx)("div",{className:`${ex.default.quantity_minus} ${l?ex.default.control_disabled:""}`,onClick:()=>{l||o(e)},"aria-disabled":l,children:(0,t.jsx)(i,{color:"#444",size:"16"})}),(0,t.jsx)("div",{className:`${ex.default.quantity_unit}`,children:(0,t.jsx)("input",{className:ex.default["quantity-text-entry"],value:a,onChange:t=>r(e,t.target.value)})}),(0,t.jsx)("div",{className:`${ex.default.quantity_plus} ${l?ex.default.control_disabled:""}`,onClick:()=>{l||s(e)},"aria-disabled":l,children:(0,t.jsx)(c,{color:"#444",size:"16"})})]}),ey=({product:e,showSpin:o,minusQuantity:s,plusQuantity:r,changeQuantity:a,initialValue:c,className:i,disableControls:n=!1})=>{let l=y.GeneralIcon.plus,d=y.GeneralIcon.minus;return(0,t.jsx)(ev,{product:e,minusQuantity:s,plusQuantity:r,changeQuantity:a,PlusIcon:l,MinusIcon:d,smallSpin:o,initialValue:c,className:i,disableControls:n})};e.s(["default",0,ey],3606);var ej=e.i(83884),eC=e.i(17364),eI=e.i(77865),eS=e.i(6134);let eN=({open:e,onClose:o,combos:a=[],onAddCombo:c,productSlugOptions:i={},isExpress:n=!1,branchSlug:l})=>
1{let[d,u]=(0,s.useState)({});return(0,t.jsx)(j.default,{open:e,onClose:o,title:"Available combos",size:"full",isFit:!0,children:(0,t.jsxs)("div",{className:eS.default["combo-modal"],children:[(0,t.jsx)("p",{className:eS.default["combo-modal-intro"],children:"This item is available in these combos."}),(0,t.jsx)("div",{className:eS.default["combo-list"],children:a.map(e=>{let{id:o,name:s,description:a,price:m,products:h}=e,p=!!d[o];return(0,t.jsxs)("div",{className:eS.default["combo-row"],children:[(0,t.jsxs)("div",{className:eS.default["combo-row-header"],children:[(0,t.jsxs)("div",{className:eS.default["combo-copy"],children:[(0,t.jsx)("strong",{children:s}),a&&(0,t.jsx)("span",{children:a}),(0,t.jsx)("button",{type:"button",className:eS.default["combo-details-trigger"],onClick:()=>{u(e=>({...e,[o]:!e[o]}))},"aria-expanded":p,children:p?"Hide details":"Details"})]}),(0,t.jsxs)("div",{className:eS.default["combo-row-actions"],children:[(0,t.jsx)("div",{className:eS.default["combo-price"],children:`$${Number(m??0).toFixed(2)}`}),(0,t.jsx)(eI.default,{name:`addCombo_${o}`,size:"small",onClick:t=>{t.stopPropagation(),c?.(e)},label:"Add Combo to Cart"})]})]}),p&&(0,t.jsx)("div",{className:eS.default["combo-row-products"],children:h.map(e=>{let s;return(0,t.jsx)(r.default,{className:eS.default["combo-row-product"],href:(s=e?.id)&&l?(0,P.buildProductUrl)(i,{...e,id:s,productId:s,productName:e?.name,webName:e?.name},n,l):"#",children:e.name},`${o}_item_${e.id}`)})})]},o)})}),(0,t.jsx)("div",{className:eS.default["combo-actions"],children:(0,t.jsx)(eI.default,{name:"closeComboModal",type:"warningType",onClick:o,label:"Close"})})]})})};e.s(["default",0,eN],35118);let ew=({item:e,className:o,color:s,size:r})=>{let a=e?.comboNoticeIcon||e?.comboIcon||e?.comboNoticeIconKey,c="function"==typeof a?a:"string"==typeof a&&y.GeneralIcon[a]?y.GeneralIcon[a]:y.GeneralIcon.fire;return(0,t.jsx)(c,{className:o,color:s,size:r})},eP=({item:e,branchId:o,branchSlug:i,isExpress:l,seoSettings:u,applicationSettings:m})=>{let h,p=(0,d.useDispatch)(),b=(0,ej.useSurfside)(),_=(0,d.useSelector)(e=>e.entity.webMenuUISettings.signInToShowProducts),g=(0,d.useSelector)(e=>e.common.loggedIn.authenticated),f=(0,d.useSelector)(e=>e.cart),x=(0,d.useSelector)(e=>e.common.cartAjaxCallsInProgress>0),v=(0,d.useSelector)(e=>e.entity.webMenuUISettings.bodyButtonBackgroudColor),j=(0,d.useSelector)(e=>e.form),[C,I]=(0,s.useState)(!1),[S,w]=(0,s.useState)(!1),[k,M]=(0,s.useState)({updateFromQuantities:!0}),q=m==E.APPLICATION_TYPE.VAPE,A=m==E.APPLICATION_TYPE.MEDICAL,[T,$]=(0,s.useState)(e_.default),L=Array.isArray(e?.combos)?e.combos:[],G=L.length>0,B="string"==typeof(h=e?.comboNoticeColor||e?.comboColor||e?.comboAccentColor)&&""!==h.trim()?h:"string"==typeof v&&""!==v.trim()?v:"#7b61e2",F=e?.comboNoticeIconColor||"#f59e0b",U={"--combo-notice-bg":(0,eC.toRgba)(B,.09),"--combo-notice-border":(0,eC.toRgba)(B,.28),"--combo-notice-border-hover":(0,eC.toRgba)(B,.48),"--combo-notice-text":B};(0,s.useEffect)(()=>{!_||g||l?e.imageUrl?.length>0?$(e.imageUrl[0]):$(e_.default):$(eb.default)},[_,g,l,e.id,e.imageUrl]);let W=y.GeneralIcon.trash;(0,s.useEffect)(()=>{k.updateFromQuantities!==f&&(f.cartItems.forEach(e=>{p((0,ef.formInput)(`cartProduct${e.id}`,e.quantity))}),M(e=>({...e,updateFromQuantities:!1})))},[f,p,k.updateFromQuantities]);let R=(e,t,o)=>{b.changeQty(e,t,o)},D=(e,t,s,r)=>{p((0,c.updateCart)(o,{productId:e,quantity:parseInt(t,10),weightPerUnit:s,measurementType:r}))},O=e=>Math.round((Number(e)+Number.EPSILON)*100)/100,z=y.GeneralIcon.check;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:eg.default["item-cart"],children:[(0,t.jsx)("div",{className:eg.default.image_section,children:(0,t.jsx)(r.default,{href:(0,P.buildProductUrl)(u.productSlugOptions||{},e,l,i),prefetch:!1,className:eg.default["container-product-image"],children:(0,t.jsx)(n.default,{src:"string"==typeof T?`${T}?${e.productId}`:T,alt:e.name??"Product-image",width:80,height:80,onError:()=>$(e_.default),unoptimized:!0},`${e.productId}-${e.id}-${e.imageUrl?.[0]||"default"}`)})}),(0,t.jsxs)("div",{className:eg.default.product_infos,children:[(0,t.jsxs)("div",{className:eg.default.product_item_with_action,children:[(0,t.jsx)("div",{className:eg.default["container-product-info"],children:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h2",{className:`${eg.default["product-name"]} app-header`,children:(0,t.jsx)(r.default,{href:(0,P.buildProductUrl)(u.productSlugOptions||{},e,l,i),prefetch:!1,children:e.productName})}),!q&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:eg.default["product-info"],children:e.weightPerUnit?`Weight: ${e.
1weightPerUnit} g`:""}),(0,t.jsx)("p",{className:eg.default["product-info"],children:e.dfe?`${e.dfe}g dried flower equivalent`:""})]}),e.discountReason&&(0,t.jsxs)("label",{className:"discount_reason",children:[(0,t.jsx)("span",{children:e.discountReason}),(0,t.jsx)(z,{className:eg.default["complete-check-circle"],color:"#4caf50",size:20})]}),G&&(0,t.jsxs)("button",{type:"button",className:eg.default["combo-notice"],onClick:()=>w(!0),style:U,children:[(0,t.jsx)(ew,{item:e,className:eg.default["combo-notice-icon"],color:F,size:22}),(0,t.jsxs)("span",{className:eg.default["combo-notice-copy"],children:[(0,t.jsx)("span",{className:eg.default["combo-notice-eyebrow"],children:"Combo Offer"}),(0,t.jsx)("span",{className:eg.default["combo-notice-text"],children:"You can add this item as part of a combo"})]})]})]})}),(0,t.jsx)("div",{className:eg.default["container-product-actions"],children:(0,t.jsx)("div",{className:eg.default["remove-option"],onClick:()=>{p((0,c.removeFromCart)(o,e.id)),R(e,e.quantity,"remove")},children:(0,t.jsx)("button",{onMouseEnter:()=>I(!0),onMouseLeave:()=>I(!1),children:(0,t.jsx)(W,{className:"cursor_pointer",color:C?"red":"#444",size:20})})})})]}),(0,t.jsxs)("div",{className:`mt-3 ${eg.default.product_item_with_action}`,children:[(0,t.jsx)("div",{className:`${eg.default["price-section"]} ${eg.default["w-full"]}`,children:(0,t.jsx)("p",{children:parseFloat(e.unitPrice+e.discountAmount).toFixed(2)===e.discountedUnitPrice.toFixed(2)?"$"+O(e.unitPrice).toFixed(2):"$"+O(e.discountedUnitPrice).toFixed(2)})}),(0,t.jsx)("div",{className:`${eg.default["quantity-section"]} ${eg.default["w-80"]}`,children:(0,t.jsx)(ey,{product:e,minusQuantity:e=>{e.quantity-1>0&&(D(e.productId,e.quantity-1,e.weightPerUnit,e.measurementType),p((0,ef.formInput)(`cartProduct${e.id}`,e.quantity-1)),R(e,e.quantity-1,"remove"))},plusQuantity:e=>{let t=A&&1===e.measurementType?(0,N.countWeightInCart)(o,e.productId):(0,N.countProductInCart)(o,e.productId);if(t<e.stockLevel){let o=0===j[`cartProduct${e.id}`]?1:e.quantity+1,s=f?.cartItems||[];if(!A&&(0,N.isDfeLimitExceeded)(s,e,1))return void p((0,a.showSnackbar)("Sorry! You've reached the 30g purchase limit for flower due to federal regulations."));D(e.productId,o,e.weightPerUnit,e.measurementType),R(e,o-t,"add"),p((0,ef.formInput)(`cartProduct${e.id}`,o))}else p((0,a.showSnackbar)("Insufficient Stock!"))},changeQuantity:(e,t)=>{let s=parseInt(t,10),r=parseInt(e.quantity,10);""===t||0===s?p((0,ef.formInput)(`cartProduct${e.id}`,0)):s<=e.stockLevel?(p((0,c.updateCart)(o,{productId:e.productId,quantity:s,weightPerUnit:e?.weightPerUnit,measurementType:e?.measurementType})),p((0,ef.formInput)(`cartProduct${e.id}`,s)),r<s?R(e,s-r,"add"):R(e,r-s,"remove")):(p((0,c.updateCart)(o,{productId:e.productId,quantity:e.stockLevel,weightPerUnit:e?.weightPerUnit,measurementType:e?.measurementType})),p((0,ef.formInput)(`cartProduct${e.id}`,e.stockLevel)))},disableControls:x,initialValue:j[`cartProduct${e.id}`]??1})})]})]})]}),(0,t.jsx)(eN,{open:S,onClose:()=>w(!1),combos:L,onAddCombo:t=>{let{combo:s,comboId:r,comboProducts:i}=(0,c.getComboCartDetails)(t);r&&i.length?(p((0,c.removeFromCart)(o,e.id)),p((0,c.addComboToCart)(o,s,1)),w(!1),p((0,a.showSnackbar)("Combo added to cart."))):p((0,a.showSnackbar)("No products found for this combo."))},productSlugOptions:u?.productSlugOptions||{},isExpress:l,branchSlug:i})]})};var ek=e.i(36128),eE=e.i(32908);let eM=({cart:e,branchId:o,seoSettings:r,applicationSettings:a})=>{let[c,n]=(0,s.useState)([]),u=(0,d.useSelector)(e=>e.entity.relatedProducts),m=(0,d.useSelector)(e=>e.entity.getRelatedProductsPending),h=(0,d.useSelector)(e=>e.entity.webMenuUISettings.signInToShowProducts),p=(0,d.useSelector)(e=>e.common.loggedIn.authenticated),b=(0,d.useSelector)(e=>e.common.expressCheckout),_=(0,d.useDispatch)(),{branchSlug:g}=(0,l.useRouter)().query,f=(0,s.useRef)(""),x=(0,s.useRef)(!1);(0,s.useEffect)(()=>{let t=(e.cartItems||[]).map(e=>e.id).sort().join(","),o=e.isVisible&&!x.current,s=t!==f.current;x.current=e.isVisible,f.current=t,(o||s)&&e.isVisible&&(e.cartItems||[]).length>0&&v()},[e.cartItems,e.isVisible]),(0,s.useEffect)(()=>{c&&c.length>0&&y()},[c]);let v=()=>{n(e.cartItems.map(e=>e.categoryId))},y=async()=>{let t=[...new Set(c)],s=e.cartItems.map(e=>e.productId);!m&&t.length>0&&_((0,i.getRelatedProductsAction)({branchId:o,ids:t,excludeProductIds:s}))},j=t=>{if(!e.cartItems||0===e.cartItems.length)return[];let o=Array.isArray(e.cartItems)?e.cartItems:[],s=Array.isArray(t)?t:[],r=new Set(o.map(e=>e.id));return s.filter(e=>!r.has(e.id))};return e.cartItems?.length===0||0===j(u).length?null:u.length>0?(0,t.jsx)("div",{className:`${eE.default["related-Products-context"]}`,children:(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:eE.default["related-product-title"],children:(0,t.jsx)("p",{children:"Customers Also Bought"})}),j(u)?.map(e=>(0,t.jsx)(ek.default,{product:e,signInToShowProducts:h,isLogged:p,isExpress:b,isShopModel:!0,className:"shop_product",isRelatedProduct:!0,branchId:o,branchSlug:g,seoSettings:r,applicationSettings:a},`card-${e.id}`))]})}):null};var eq=e.i(10574),eA=e.i(95761),eT=e.i(53233),e$=e.i(29060);let eL=e=>null==e?"":eT.default.species?.[e]??"",eG=e=>{let t=Number(e?.unitPrice);if(Number.isFinite(t)&&t>=0)return t;let o=eR(e),s=Number(e?.priceBeforeDiscount??e?.price??0);return Number.isFinite(s)&&s>=0?s/o:0},eB=e=>{let t=Number(e?.discountedUnitPrice);if(Number.isFinite(t)&&t>=0)return t;let o=eR(e),s=Number(e?.discountedPrice??e?.discountPrice);return Number.isFinite(s)&&s>=0?s/o:eG(e)}
1,eF="string"==typeof e_.default?e_.default:e_.default.src,eU=e=>String(e?.id??e?.productId??e?.sku??"default"),eW=e=>`$${Number(e??0).toFixed(2)}`,eR=e=>{let t=Number(e?.quantity??0);return Number.isFinite(t)&&t>0?t:1},eD=({comboGroup:e,branchSlug:o,isExpress:a,seoSettings:c,onRemoveCombo:i,isCollapsed:l=!0})=>{let[d,u]=(0,s.useState)(l),[m,h]=(0,s.useState)({}),p=e.items,{title:b,description:_,comboPrice:g}=e,f=(0,s.useMemo)(()=>{let e=p.reduce((e,t)=>{let o=eR(t),s=Number(t?.priceBeforeDiscount??t?.price);return e+(Number.isFinite(s)&&s>=0?s:eG(t)*o)},0),t=p.reduce((e,t)=>{let o=eR(t),s=Number(t?.discountedPrice??t?.discountPrice);return e+(Number.isFinite(s)&&s>=0?s:eB(t)*o)},0),o=Number(g),s=Number.isFinite(o)&&o>=0?o:t,r=Math.max(0,e-s);return{regularSubtotal:e,discountedSubtotal:s,savings:r}},[p,g]),x=y.GeneralIcon.trash;return(0,t.jsxs)("section",{className:e$.default["combo-group"],children:[(0,t.jsxs)("div",{className:e$.default["combo-header"],children:[(0,t.jsxs)("div",{className:e$.default["combo-header-copy"],children:[(0,t.jsx)("h3",{children:b}),_&&(0,t.jsx)("p",{children:_}),(0,t.jsx)("div",{className:'styles["combo-details-row combo-header-total"] mt-2',children:(0,t.jsx)("strong",{children:eW(f.discountedSubtotal)})}),(0,t.jsx)("div",{className:e$.default["combo-details-row"],children:(0,t.jsx)("button",{type:"button",className:e$.default["combo-details-button"],onClick:()=>u(e=>!e),children:d?"Details":"Hide details"})})]}),(0,t.jsx)("div",{className:e$.default["combo-header-actions"],children:(0,t.jsx)("div",{className:e$.default["combo-actions"],children:(0,t.jsx)("button",{type:"button",onClick:()=>i(e),"aria-label":"Remove combo",title:"Remove combo",children:(0,t.jsx)(x,{size:20,color:"currentColor"})})})})]}
1),!d&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:e$.default["combo-items"],children:p.map(e=>(0,t.jsxs)("div",{className:e$.default["combo-item"],children:[(0,t.jsx)(r.default,{href:(0,P.buildProductUrl)(c?.productSlugOptions||{},e,a,o),prefetch:!1,className:e$.default["combo-item-image"],children:(0,t.jsx)(n.default,{src:m[eU(e)]||(Array.isArray(e?.imageUrl)?e.imageUrl.find(e=>"string"==typeof e&&""!==e.trim())||eF:"string"==typeof e?.imageUrl&&""!==e.imageUrl.trim()?e.imageUrl:eF),alt:e?.productName||"Product",width:72,height:72,onError:()=>h(t=>({...t,[eU(e)]:eF})),unoptimized:!0})}),(0,t.jsxs)("div",{className:e$.default["combo-item-copy"],children:[eL(e?.species)&&(0,t.jsx)("span",{className:e$.default["combo-species"],children:eL(e?.species)}),(0,t.jsx)("p",{className:e$.default["combo-item-name"],children:e?.productName}),e?.weightPerUnit?(0,t.jsxs)("span",{className:e$.default["combo-item-weight"],children:[e.weightPerUnit,"g"]}):null]}),(0,t.jsxs)("div",{className:e$.default["combo-item-meta"],children:[(0,t.jsx)("div",{className:e$.default["combo-qty-box"],children:(0,t.jsxs)("span",{children:["Qty: ",eR(e)]})}),(0,t.jsxs)("div",{className:e$.default["combo-item-pricing"],children:[(0,t.jsx)("span",{className:e$.default["combo-price-old"],children:eW(eG(e)*eR(e))}),(0,t.jsx)("span",{className:e$.default["combo-price-new"],children:eW(eB(e)*eR(e))})]})]})]},`combo_cart_${e.id}_${e.productId}`))}),(0,t.jsxs)("div",{className:e$.default["combo-summary"],children:[(0,t.jsx)("h5",{children:"Combo Summary"}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("span",{children:["Subtotal (",p.length," items)"]}),(0,t.jsx)("strong",{children:eW(f.regularSubtotal)})]}),(0,t.jsxs)("div",{className:e$.default.savings,children:[(0,t.jsx)("span",{children:"You Save"}),(0,t.jsxs)("strong",{children:["- ",eW(f.savings)]})]}),(0,t.jsxs)("div",{className:e$.default.total,children:[(0,t.jsxs)("span",{children:[b," Total"]}),(0,t.jsx)("strong",{children:eW(f.discountedSubtotal)})]})]})]})]})};e.s(["default",0,eD],34260);let eO=(e,t=0)=>{let o=Number(e);return Number.isFinite(o)?o:t},ez=({branchId:e,seoSettings:o,applicationSettings:r})=>{let a=(0,d.useDispatch)(),i=(0,l.useRouter)(),{branchSlug:n}=i.query,u=y.GeneralIcon.trash,m=(0,d.useSelector)(e=>e.cart),h=(0,d.useSelector)(e=>e.common.expressCheckout),p=y.GeneralIcon.plus,b=()=>{a((0,c.toggleCart)())},[_,g]=(0,s.useState)(!1),{comboGroups:f,regularItems:x}=(0,s.useMemo)(()=>{let e=new Map,t=[];return m.cartItems.forEach(o=>{let s=(e=>{let{comboId:t,comboName:o,comboDescription:s,comboPrice:r}=e;return t?{comboId:t,key:`combo_${t}`,name:o,description:s,price:r}:null})(o);if(!s)return void t.push(o);let r=e.get(s.comboId);r?r.sourceItems.push(o):e.set(s.comboId,{key:s.key,comboId:s.comboId,title:s.name,description:s.description,comboPrice:s.price,sourceItems:[o]})}),{comboGroups:Array.from(e.values()).flatMap(e=>{let t,o=(t=e.sourceItems.map(e=>eO(e?.comboQuantity,1)).filter(e=>e>0)).length?Math.max(...t):1,s=e.sourceItems.map(e=>({...e,quantity:((e,t)=>{let o=eO(e?.quantity,1);if(t<=1)return Math.max(o,1);let s=o/t;return Number.isInteger(s)&&s>0?s:Math.max(1,Math.floor(s))})(e,o),comboQuantity:1}));return 1===o?[{...e,items:s}]:Array.from({length:o},(t,o)=>({...e,key:`${e.key}_instance_${o+1}`,items:s}))}),regularItems:t}},[m.cartItems]),j=t=>{a((0,c.removeFromCart)(e,`combo:${t.comboId}`))};return(0,t.jsx)("div",{className:`${ep.default["side-cart-bg"]} ${m.isVisible?ep.default.open:""}`,onClick:b,children:(0,t.jsxs)("div",{className:ep.default["side-cart-holder"],onClick:e=>{e.stopPropagation()},children:[(0,t.jsxs)("div",{className:ep.default["side-cart-header"],children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{children:"Shopping Cart"}),(0,t.jsxs)("p",{children:["Subtotal: ",(0,t.jsxs)("span",{children:[" $",m.subTotal?.toFixed(2)]})]})]}),(0,t.jsxs)("div",{className:"d-flex justify-content-between align-items-center",children:[m.cartItems?.length>0&&(0,t.jsx)("div",{className:ep.default["remove-option"],onClick:()=>{(0,eA.showGlobalModal)({title:"Clear Cart",content:(0,t.jsx)("p",{children:"This will remove all items from your cart. This action cannot be undone."}),onConfirm:()=>{a((0,c.cleanCart)({branchId:e}))},onCancel:()=>{},confirmText:"Yes, Clear",cancelText:"Cancel"})},onMouseEnter:()=>g(!0),onMouseLeave:()=>g(!1),style:{backgroundColor:_?"#e74c3c":"#f1f1f1",color:_?"#fff":"#444"},children:(0,t.jsxs)("button",{className:"d-flex align-items-center",children:[(0,t.jsx)(u,{className:"cursor_pointer",size:20,color:_?"#fff":"#444"}),(0,t.jsx)("span",{className:"ms-1",style:{color:_?"#fff":"#444"},children:"Clear Cart"})]})}),(0,t.jsx)("div",{className:ep.default["close-btn"],onClick:b,children:(0,t.jsx)(p,{color:"#444"})})]})]}),(0,t.jsx)("div",{className:ep.default["side-cart-main"],children:m.id&&0==m.cartItems.length?(0,t.jsx)("div",{className:"container-fluid main-container-screen",children:(0,t.jsx)("div",{className:"text-center mt-2",children:(0,t.jsx)("h4",{className:"app-header",children:"Your cart is empty."})})}):(0,t.jsxs)(t.Fragment,{children:[f.map(e=>(0,t.jsx)(eD,{comboGroup:e,branchSlug:n,isExpress:h,seoSettings:o,onRemoveCombo:j},e.key)),x.map(s=>(0,t.jsx)(eP,{item:s,branchId:e,branchSlug:n,isExpress:h,seoSettings:o,applicationSettings:r},`${s.id}_${s.productId}`))]})}),(0,t.jsxs)("div",{className:ep.default["side-cart-footer"],children:[(0,t.jsx)(eq.default,{as:"button",type:"backToShop",onClick:()=>{i.pathname.includes("/menu")?b():i.push((0,v.buildPath)({branchSlug:n,path:"/menu",isExpress:h}))}}),(0,t.jsxs)("div",{className:"d-flex justify-content-between align-items-end mt-3",children:[(0,t.jsxs)("div",{className:ep.default.cart_footer_wrapper,children:[(0,t.jsxs)("p",{children:["Subtotal:",(0,t.jsxs)("span",{children:[" $",m.subTotal?.toFixed(2)]})]}),(0,t.jsx)("p",{className:ep.default.subContent,children:"*Sales tax will be added at checkout."})]}),(0,t.jsx)("div",{className:"btn_wrapper",children:(0,t.jsx)(eI.default,{label:"Proceed to checkout",name:"checkOut",onClick:()=>{a((0,c.toggleCart)()),i.push((0,v.buildPath)({branchSlug:n,path:"/cart",isExpress:h}))}})})]})]}),m.cartItems?.length>0&&(0,t.jsx)(eM,{cart:m,branchId:e,seoSettings:o,applicationSettings:r})]})})},eH={title:"",description:"",canonical:void 0,ogType:"website",ogImage:"",twitterCard:"",twitterImage:""},eQ=({headerHtml:e})=>(0,t.jsx)("div",{dangerouslySetInnerHTML:{__html:e}});var eV=e.i(94182);let eY={src:e.i(14652).default,width:1024,height:256,blurWidth:8,blurHeight:2,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAACCAYAAABllJ3tAAAAQ0lEQVR42hXLsQmAQBBE0f07p+aCCrZgbAGCiKYK9l/KzQUPBoYfoLVoeDPLTTADo03W9hJS//vcITdld9lhj50OvwplpQOzyC9kogAAAABJRU5ErkJggg=="},eZ=({meta:e=eH,children:a,schema:c,isLandingPage:i=!1,useBackgroun
1d:l=!0,seoSettings:u,applicationSettings:m,branchId:h})=>{let p,[b,_]=(0,s.useState)(!1),g=(0,d.useSelector)(e=>e.entity.webMenuUISettings.bodyBackgroundColor),f=(0,d.useSelector)(e=>e.entity.webMenuUISettings.bodyBackgroundImageUrl),x=(0,d.useSelector)(e=>e.entity.webMenuUISettings.surfside),v=(0,d.useSelector)(e=>e.common.expressCheckout);(0,s.useEffect)(()=>{_(!0)},[]);let y=b?(p={},l&&(g&&""!==g.trim()&&(p.backgroundColor=g),f&&""!==f.trim()&&(p.backgroundImage=`url(${f})`)),Object.keys(p).length>0?p:void 0):void 0,{title:j,description:C,canonical:I,ogType:S,ogImage:N,twitterCard:w,twitterImage:P,host:k}=e,E=u?`${j?`${j} | `:""}${u.title??"Website"}`:"Loading...",M=C||u?.defaultDescription,A=(e=>{let t;if(!e)return[];let o=/<script([^>]*)>([\s\S]*?)<\/script>/gi,s=[];for(;null!==(t=o.exec(e));)s.push({attrs:t[1].trim(),content:t[2].trim()});let r=e.replace(o,"").trim();return r&&s.push({attrs:"",content:r}),s})(u?.customScript);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(o.default,{children:[(0,t.jsx)("title",{children:E}),(0,t.jsx)("meta",{name:"description",content:M}),u?.favicon&&(0,t.jsx)("link",{rel:"icon",href:u?.favicon}),(0,t.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),(0,t.jsx)("meta",{charSet:"UTF-8"}),I&&k&&(0,t.jsx)("link",{rel:"canonical",href:`${k}/${I}`}),(0,t.jsx)("meta",{name:"google-signin-client_id",content:"551646096484-05h522hb49246v9fvnkh4vveqqh3vmgf.apps.googleusercontent.com"}),(0,t.jsx)("meta",{property:"og:type",content:S}),(0,t.jsx)("meta",{property:"og:title",content:E}),(0,t.jsx)("meta",{property:"og:description",content:M}),(0,t.jsx)("meta",{property:"og:image",content:N}),(0,t.jsx)("meta",{name:"twitter:card",content:w}),(0,t.jsx)("meta",{name:"twitter:title",content:E}),(0,t.jsx)("meta",{name:"twitter:description",content:M}),(0,t.jsx)("meta",{name:"twitter:image",content:P||"/default-twitter-image.jpg"}),u?.style&&(0,t.jsx)("style",{children:u?.style}),(0,t.jsx)("meta",{name:"keywords",content:"buy cannabis online, cannabis delivery, weed online shop, marijuana dispensary, THC, CBD, cannabis edibles"}),v&&(0,t.jsx)("meta",{name:"robots",content:"noindex, nofollow"})]}),c?.length>0&&c.map((e,o)=>(0,t.jsx)(eV.default,{id:`schema-${o}`,type:"application/ld+json",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:JSON.stringify(e)}},o)),x&&(0,t.jsx)(eV.default,{id:"surfside-script",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:`
2              (function(){
3                var s = document.createElement('script');
4                s.src='//cdn.surfside.io/ads/2.0.0/r.js';
5                s.async = true;
6                document.head.appendChild(s);
7              })();
8            `}}),A.map((e,o)=>{let s=e.attrs.match(/src="([^"]+)"/);return s?(0,t.jsx)(eV.default,{id:`custom-script-${o}`,src:s[1],strategy:"afterInteractive"},o):(0,t.jsx)(eV.default,{id:`custom-inline-${o}`,strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:e.content}},o)}),(0,t.jsxs)("header",{className:"custom_header",children:[u?.footerHtml&&!v&&(0,t.jsx)(eQ,{headerHtml:u.footerHtml}),v&&u?.logo&&(0,t.jsx)("div",{className:"d-flex p-2 justify-content-center align-items-center",children:(0,t.jsx)(n.default,{height:0,width:120,className:"img-fluid h-auto logo-express",src:u?.logo,alt:u?.title||"Logo"})}),!i&&(0,t.jsx)(q,{branchId:h,seoSettings:u,applicationSettings:m})]}),(0,t.jsx)(ed,{open:!1,message:""}),(0,t.jsx)(eh,{name:"commonFeedbackMessage"}),(0,t.jsx)(ez,{branchId:h,seoSettings:u,applicationSettings:m}),(0,t.jsx)("main",{style:y,children:a}),(0,t.jsxs)("footer",{children:[u?.headerHtml&&!v&&(0,t.jsx)("div",{dangerouslySetInnerHTML:{__html:u.headerHtml}}),(0,t.jsx)("div",{className:"private-policy",children:(0,t.jsx)(r.default,{href:"https://techpos.ca/privacy/",children:"Terms & Privacy Policy"})}),(0,t.jsxs)("div",{className:"footer-company",children:["Powered by"," ",(0,t.jsx)(r.default,{href:"https://techpos.ca",target:"_blank",children:(0,t.jsx)(n.default,{alt:"Tech POS",src:eY,height:0,width:90})})," ","V2.0 E-Commerce © 2025"]})]})]})};eZ.getInitialProps=async e=>({req:e.req}),e.s(["default",0,eZ],9659)},36110,e=>{e.v({control_disabled:"productQuantity-module-scss-module__N1u5WG__control_disabled","product-detail-qty":"productQuantity-module-scss-module__N1u5WG__product-detail-qty","product-detail-qty-text":"productQuantity-module-scss-module__N1u5WG__product-detail-qty-text","quantity-text-entry":"productQuantity-module-scss-module__N1u5WG__quantity-text-entry",quantity_minus:"productQuantity-module-scss-module__N1u5WG__quantity_minus",quantity_plus:"productQuantity-module-scss-module__N1u5WG__quantity_plus",quantity_unit:"productQuantity-module-scss-module__N1u5WG__quantity_unit"})},32908,e=>{e.v({loader:"relatedProduct-module-scss-module__7kwVda__loader","loader-context":"relatedProduct-module-scss-module__7kwVda__loader-context","related-Products-context":"relatedProduct-module-scss-module__7kwVda__related-Products-context","related-product-title":"relatedProduct-module-scss-module__7kwVda__related-product-title",spin:"relatedProduct-module-scss-module__7kwVda__spin"})},6134,e=>{e.v({"combo-actions":"ComboAvailabilityModal-module-scss-module__-Z2bvq__combo-actions","combo-copy":"ComboAvailabilityModal-module-scss-module__-Z2bvq__combo-copy","combo-detail
8s-trigger":"ComboAvailabilityModal-module-scss-module__-Z2bvq__combo-details-trigger","combo-list":"ComboAvailabilityModal-module-scss-module__-Z2bvq__combo-list","combo-modal":"ComboAvailabilityModal-module-scss-module__-Z2bvq__combo-modal","combo-modal-intro":"ComboAvailabilityModal-module-scss-module__-Z2bvq__combo-modal-intro","combo-price":"ComboAvailabilityModal-module-scss-module__-Z2bvq__combo-price","combo-row":"ComboAvailabilityModal-module-scss-module__-Z2bvq__combo-row","combo-row-actions":"ComboAvailabilityModal-module-scss-module__-Z2bvq__combo-row-actions","combo-row-header":"ComboAvailabilityModal-module-scss-module__-Z2bvq__combo-row-header","combo-row-product":"ComboAvailabilityModal-module-scss-module__-Z2bvq__combo-row-product","combo-row-products":"ComboAvailabilityModal-module-scss-module__-Z2bvq__combo-row-products"})},4063,e=>{e.v({"combo-global-list":"cartItem-module-scss-module__d8nthW__combo-global-list","combo-global-modal":"cartItem-module-scss-module__d8nthW__combo-global-modal","combo-global-modal-intro":"cartItem-module-scss-module__d8nthW__combo-global-modal-intro","combo-global-row":"cartItem-module-scss-module__d8nthW__combo-global-row","combo-global-row-copy":"cartItem-module-scss-module__d8nthW__combo-global-row-copy","combo-global-row-price":"cartItem-module-scss-module__d8nthW__combo-global-row-price","combo-notice":"cartItem-module-scss-module__d8nthW__combo-notice","combo-notice-copy":"cartItem-module-scss-module__d8nthW__combo-notice-copy","combo-notice-eyebrow":"cartItem-module-scss-module__d8nthW__combo-notice-eyebrow","combo-notice-icon":"cartItem-module-scss-module__d8nthW__combo-notice-icon","combo-notice-text":"cartItem-module-scss-module__d8nthW__combo-notice-text","container-product-actions":"cartItem-module-scss-module__d8nthW__container-product-actions","container-product-image":"cartItem-module-scss-module__d8nthW__container-product-image","container-product-info":"cartItem-module-scss-module__d8nthW__container-product-info",image_section:"cartItem-module-scss-module__d8nthW__image_section","item-cart":"cartItem-module-scss-module__d8nthW__item-cart","price-section":"cartItem-module-scss-module__d8nthW__price-section",price_original:"cartItem-module-scss-module__d8nthW__price_original","product-info":"cartItem-module-scss-module__d8nthW__product-info","product-name":"cartItem-module-scss-module__d8nthW__product-name",product_infos:"cartItem-module-scss-module__d8nthW__product_infos",product_item_with_action:"cartItem-module-scss-module__d8nthW__product_item_with_action","quantity-section":"cartItem-module-scss-module__d8nthW__quantity-section",red_text:"cartItem-module-scss-module__d8nthW__red_text","remove-option":"cartItem-module-scss-module__d8nthW__remove-option","w-80":"cartItem-module-scss-module__d8nthW__w-80","w-full":"cartItem-module-scss-module__d8nthW__w-full"})},29060,e=>{e.v({"combo-actions":"comboCartGroup-module-scss-module__sE9Piq__combo-actions","combo-details-button":"comboCartGroup-module-scss-module__sE9Piq__combo-details-button","combo-details-row":"comboCartGroup-module-scss-module__sE9Piq__combo-details-row","combo-group":"comboCartGroup-module-scss-module__sE9Piq__combo-group","combo-header":"comboCartGroup-module-scss-module__sE9Piq__combo-header","combo-header-actions":"comboCartGroup-module-scss-module__sE9Piq__combo-header-actions","combo-header-copy":"comboCartGroup-module-scss-module__sE9Piq__combo-header-copy","combo-header-total":"comboCartGroup-module-scss-module__sE9Piq__combo-header-total","combo-item":"comboCartGroup-module-scss-module__sE9Piq__combo-item","combo-item-copy":"comboCartGroup-module-scss-module__sE9Piq__combo-item-copy","combo-item-image":"comboCartGroup-module-scss-module__sE9Piq__combo-item-image","combo-item-meta":"comboCartGroup-module-scss-module__sE9Piq__combo-item-meta","combo-item-name":"comboCartGroup-module-scss-module__sE9Piq__combo-item-name","combo-item-pricing":"comboCartGroup-module-scss-module__sE9Piq__combo-item-pricing","combo-item-weight":"comboCartGroup-module-scss-module__sE9Piq__combo-item-weight","combo-items":"comboCartGroup-module-scss-module__sE9Piq__combo-items","combo-price-new":"comboCartGroup-module-scss-module__sE9Piq__combo-price-new","combo-price-old":"comboCartGroup-module-scss-module__sE9Piq__combo-price-old","combo-qty-box":"comboCartGroup-module-scss-module__sE9Piq__combo-qty-box","combo-species":"comboCartGroup-module-scss-module__sE9Piq__combo-species","combo-summary":"comboCartGroup-module-scss-module__sE9Piq__combo-summary",savings:"comboCartGroup-module-scss-module__sE9Piq__savings",total:"comboCartGroup-module-scss-module__sE9Piq__total"})},91683,e=>{e.v({"back-to-shop":"sideBarCart-module-scss-module__0vhcIG__back-to-shop",cart_footer_wrapper:"sideBarCart-module-scss-module__0vhcIG__cart_footer_wrapper","close-btn":"sideBarCart-module-scss-module__0vhcIG__close-btn",open:"sideBarCart-module-scss-module__0vhcIG__open","remove-option":"sideBarCart-module-scss-module__0vhcIG__remove-option","side-cart-bg":"sideBarCart-module-scss-module__0vhcIG__side-cart-bg","side-cart-footer":"sideBarCart-module-scss-module__0vhcIG__side-cart-footer","side-cart-header":"sideBarCart-module-scss-module__0vhcIG__side-cart-header","side-cart-holder":"sideBarCart-module-scss-module__0vhcIG__side-cart-holder","side-cart-main":"sideBarCart-module-scss-module__0vhcIG__side-cart-main",subContent:"sideBarCart-module-scss-module__0vhcIG__subContent"})}]);

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.