1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./specials-list.component-DGHHTADT.js","./main.1.45.0.js","../css/main.1.45.0.css","./DefaultPropsProvider-C2syA4QN.js","./use-product-variants-8pehLRot.js","./use-store-CbMJqTO8.js","./button.component-XeC76gV5.js","./createSvgIcon-BKM72nfj.js","./Close-DmkQrzuU.js","./utils-DvjLjrK8.js","./inheritsLoose-Cagl8Uqp.js","./assertThisInitialized-PUtynf78.js","./Paper-DpdCpDyz.js","./Button-D9wQSZ3k.js","../css/button-x5AhJg1G.css","./Grid-tNXov3EZ.js","./Typography-C-divtet.js","../css/specials-list-BIdn4Qwe.css","./effects-list.component-B6kTgFn-.js","../css/effects-list-CU3Ln8eF.css","./terpene-list.component-C2F4_pfX.js","../css/terpene-list-Olc41b8e.css","./cannabinoid-list.component-DN8cgoK3.js","../css/cannabinoid-list-fAIW5UvV.css","./rrh-ad-unit.component-q0nKftLV.js","../css/rrh-ad-unit-DG19D4iQ.css","./surfside-ad-unit.component-Dr88s3Ut.js","./moodi-day-rating.component-Cp68JUNT.js","./moodi-day-reviews.component-6V20Nvge.js","./jane-dm-recommended-pdp-row.component-DJm7j-VW.js","./sponsored-label.component-D_E-27fX.js","../css/sponsored-label-NSPu1sFS.css","./slider.component-BqfYuRbu.js","./product-interaction-context-CgFTGeYC.js","./ecommerce-search-provider-B-RJ2BJM.js","./search-config-BhBQGKEp.js","./index-D_ibIeF5.js","./config-BQfsxwia.js","./index-BzcYWA6j.js","./use-add-to-checkout-lvc8nSru.js","./index-Bru-Ui9l.js","./search-api.service-r7bhVHZf.js","./product-dialog.component-CqxxQqi1.js","./useMediaQuery-Ll-jLsY2.js","./getThemeProps-Hzf5EfZS.js","./Dialog-C1imcgja.js","./Toolbar-Chet2LTv.js","./DialogContent-1FO7MY8V.js","./CircularProgress-d2-jiF45.js","../css/product-dialog-Brg_aGUu.css","../css/slider-DudPeNie.css","../css/jane-dm-recommended-pdp-row-DgpwWldY.css"])))=>i.map(i=>d[i]); 2var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;import{n as i,c as o,r as s,I as r,j as n,R as d,_ as c}from"./main.1.45.0.js";import{c as l}from"./DefaultPropsProvider-C2syA4QN.js";import{C as p}from"./product-interaction-context-CgFTGeYC.js";import{A as m}from"./add-to-cart-button.component-C671kBMs.js";import{Q as u}from"./quantity-select.component-CrJ8Jj29.js";import{C as j,P as _,S as h,a as x,V as b,b as f,B as v}from"./social-share.component-Z2Kgkh2_.js";import{L as g}from"./LocalOffer-CaV4pcPm.js";import{u as y,d as S}from"./use-store-CbMJqTO8.js";import{a as N,b as w}from"./product-contents.component-FIAmPMdK.js";import{u as C}from"./useMediaQuery-Ll-jLsY2.js";import{G as O}from"./Grid-tNXov3EZ.js";import{T as I}from"./Typography-C-divtet.js";import{P as V}from"./Paper-DpdCpDyz.js";import"./ecommerce-search-provider-B-RJ2BJM.js";import"./search-config-BhBQGKEp.js";import"./index-D_ibIeF5.js";import"./config-BQfsxwia.js";import"./inheritsLoose-Cagl8Uqp.js";import"./assertThisInitialized-PUtynf78.js";import"./index-BzcYWA6j.js";import"./use-add-to-checkout-lvc8nSru.js";import"./use-product-variants-8pehLRot.js";import"./index-Bru-Ui9l.js";import"./search-api.service-r7bhVHZf.js";import"./button.component-XeC76gV5.js";import"./createSvgIcon-BKM72nfj.js";import"./Close-DmkQrzuU.js";import"./utils-DvjLjrK8.js";import"./Button-D9wQSZ3k.js";import"./MenuItem-BB1eqUrL.js";import"./dividerClasses-D_-b5-a1.js";import"./clsx-BeLtu-UY.js";import"./Stack-OSSMca52.js";import"./useThemeProps-CilF4Ygb.js";import"./getThemeProps-Hzf5EfZS.js";import"./slider.component-BqfYuRbu.js";import"./product-dialog.component-CqxxQqi1.js";import"./Dialog-C1imcgja.js";import"./Toolbar-Chet2LTv.js";import"./DialogContent-1FO7MY8V.js";import"./CircularProgress-d2-jiF45.js";import"./ListItemText-CS_JM3_w.js";import"./Divider-CYqPJc_P.js";import"./lazysizes-DuioMqv2.js";const k={container:"product-detail-5g-module__container___yZwYP",productHeader:"product-detail-5g-module__productHeader___hQmgO",headerContent:"product-detail-5g-module__headerContent___KVVln",productBody:"product-detail-5g-module__productBody___BPQKG",productSpecials:"product-detail-5g-module__productSpecials___fOOXq",detailSection:"product-detail-5g-module__detailSection___mMq7i",actionsSection:"product-detail-5g-module__actionsSection___Rj7jO",brand:"product-detail-5g-module__brand___ChVRF",image:"product-detail-5g-module__image___YOUJb",buttonContainer:"product-detail-5g-module__buttonContainer___pjLUb",quantitySelect:"product-detail-5g-module__quantitySelect___tXI8A"},A=d.lazy((()=>c((()=>import("./specials-list.component-DGHHTADT.js")),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]),import.meta.url))),P=d.lazy((()=>c((()=>import("./effects-list.component-B6kTgFn-.js")),__vite__mapDeps([18,1,2,7,3,16,15,12,19]),import.meta.url))),T=d.lazy((()=>c((()=>import("./terpene-list.component-C2F4_pfX.js")),__vite__mapDeps([20,1,2,3,16,15,7,12,21]),import.meta.url))),E=d.lazy((()=>c((()=>import("./cannabinoid-list.component-DN8cgoK3.js")),__vite__mapDeps([22,1,2,3,16,15,7,12,23]),import.meta.url))),D=d.lazy((()=>c((()=>import("./rrh-ad-unit.component-q0nKftLV.js")),__vite__mapDeps([24,1,2,3,25]),import.meta.url))),L=d.lazy((()=>c((()=>import("./surfside-ad-unit.component-Dr88s3Ut.js")),__vite__mapDeps([26,1,2]),import.meta.url))),z=d.lazy((()=>c((()=>import("./moodi-day-rating.component-Cp68JUNT.js")),__vite__mapDeps([27,1,2]),import.meta.url))),R=d.lazy((()=>c((()=>import("./moodi-day-reviews.component-6V20Nvge.js")),__vite__mapDeps([28,1,2]),import.meta.url))),q=d.lazy((()=>c((()=>import("./jane-dm-recommended-pdp-row.component-DJm7j-VW.js")),__vite__mapDeps([29,1,2,30,3,16,31,32,33,34,35,36,37,10,11,38,5,39,4,40,41,7,8,9,42,43,44,45,12,46,47,48,49,50,51]),import.meta.url)));function B(d){var c,B=d,{product:H,variants:Q,selectedVariant:M,quantity:W,handleVariantChange:U,handleQuantityChange:Y,handleAddToCart:G,isAddingToCart:K,outOfStock:X}=B;((i,o)=>{var s={};for(var r in i)e.call(i,r)&&o.indexOf(r)<0&&(s[r]=i[r]);if(null!=i&&t)for(var r of t(i))o.indexOf(r)<0&&a.call(i,r)&&(s[r]=i[r])})(B,["product","variants","selectedVariant","quantity","handleVariantChange","handleQuantityChange","handleAddToCart","isAddingToCart","outOfStock"]);const Z=i(),{ma_compliance_enabled:$}=o(),F=y(S),J=s.useContext(r),tt=C((t=>t.breakpoints.down("md")));return H?n.jsxs("div",{className:l(k.container,"joint-product-details"),children:[n.jsx("div",{className:l(k.productHeader,"joint-product-details-header"),children:n.jsx(j,{maxWidth:"lg",children:n.jsxs(O,{container:!0,spacing:2,children:[n.jsx(O,{item:!0,xs:12,md:4,className:l(k.imageContainer,"joint-product-details-image-container"),children:n.jsx(_,{product:H,className:l(k.image,"joint-product-details-image")})}),n.jsxs(O,{item:!0,xs:12,md:8,className:k.headerContent,children:[n.jsxs("div",{style:{display:"flex",alignItems:"flex-start",ga
2p:8},children:[n.jsx(N,{product:H}),n.jsx("div",{style:{marginLeft:"auto"},children:n.jsx(h,{title:H.name.raw})})]}),n.jsxs("div",{className:k.titleSection,children:[n.jsx(I,{id:"product-item-dialog-title",variant:"h3",component:"div",className:l(k.name,"joint-product-details-name"),children:H.name.raw}),n.jsx(I,{variant:"body1",component:"div",className:l(k.brand,"joint-product-details-brand"),children:H.brandName.raw?`by ${H.brandName.raw}`:""}),n.jsx(w,{product:H,typographyVariant:"body1",className:"joint-product-details-contents"})]}),(null==J?void 0:J.moodiDay)&&n.jsx(s.Suspense,{fallback:null,children:n.jsx(z,{productId:H.jointId.raw})}),(null==(c=p[H.category.raw])?void 0:c.isCannabis)&&n.jsx(x,{product:H,variant:"5g",containerComponent:"paper",className:l("joint-product-details-section","joint-product-details-summary")}),X&&n.jsx("div",{className:l("joint-product-details-section","joint-product-out-of-stock"),children:n.jsx(I,{variant:"body1",component:"div",className:l("joint-product-out-of-stock-message"),children:"Currently out of stock, check back soon!"})}),!X&&n.jsx("div",{className:l(k.actionsSection,"joint-product-details-section","joint-product-details-actions"),children:n.jsxs(O,{container:!0,spacing:2,children:[n.jsx(O,{item:!0,xs:12,md:6,children:n.jsx(b,{product:H,variants:Q,selectedVariant:M,handleVariantChange:U,layout:tt?"row":"column"})}),n.jsx(O,{item:!0,xs:12,md:6,children:n.jsxs(V,{className:l(k.buttonContainer,"joint-product-details-button-container"),children:[n.jsx(u,{className:k.quantitySelect,value:W,max:Number(M.quantity),handleChange:Y}),n.jsx(m,{fullWidth:!0,variant:"contained",color:"primary",className:"joint-product-details-button joint-add-to-cart j-mt-1",onClick:G,disabled:K,children:K?"Adding...":"Add to cart"})]})})]})})]})]})})}),H.applicableSpecials.raw.length>0&&n.jsx("div",{className:l(k.productSpecials,"joint-product-details-specials"),children:n.jsxs(j,{maxWidth:"lg",children:[n.jsx("div",{className:l("j-mb-2"),children:n.jsxs(I,{variant:"h3",component:"div",children:[n.jsx(g,{style:{verticalAlign:"middle"}})," ",$&&"MA"===(null==F?void 0:F.state_abbr)?"Shop Offers":"Special Offers"]})}),n.jsx(s.Suspense,{fallback:null,children:n.jsx(A,{specials:H.applicableSpecials.raw})})]})}),n.jsx("div",{className:l(k.productBody,"joint-product-details-body"),children:n.jsxs(j,{maxWidth:"lg",children:[n.jsxs("div",{className:k.titleSection,children:[n.jsx(I,{id:"product-item-dialog-title",variant:"h3",component:"div",className:l(k.name,"joint-product-details-name"),children:H.name.raw}),n.jsx(I,{variant:"body1",component:"div",className:l(k.brand,"joint-product-details-brand"),children:H.brandName.raw?`by ${H.brandName.raw}`:""})]}),(H.description.raw||H.descriptionHtml.raw)&&n.jsx("div",{className:l(k.detailSection,"joint-product-details-section","joint-product-details-description"),children:n.jsx(I,{variant:"body1",component:"div",dangerouslySetInnerHTML:{__html:H.descriptionHtml.raw||H.description.raw}})}),(null==F?void 0:F.show_effects)&&H.effects.raw.length>0&&n.jsx("div",{className:l(k.detailSection,"joint-product-details-section","joint-product-details-effects"),children:n.jsx(s.Suspense,{fallback:null,children:n.jsx(P,{effects:H.effects.raw,variant:"paper"})})}),(null==J?void 0:J.moodiDay)&&n.jsx(s.Suspense,{fallback:null,children:n.jsx(R,{productId:H.jointId.raw})}),H.terpenes&&H.terpenes.raw.length>0&&n.jsx("div",{className:l(k.detailSection,"joint-product-details-section","joint-product-details-terpenes"),children:n.jsx(s.Suspense,{fallback:null,children:n.jsx(T,{terpenes:H.terpenes.raw,variant:"paper"})})}),H.cannabinoids&&H.cannabinoids.raw.length>0&&n.jsx("div",{className:l(k.detailSection,"joint-product-details-section","joint-product-details-cannabinoids"),children:n.jsx(s.Suspense,{fallback:null,children:n.jsx(E,{cannabinoids:H.cannabinoids.raw,variant:"paper"})})}),J.rrhAdvertising&&n.jsx(s.Suspense,{fallback:null,children:n.jsx(D,{formatId:"129505",className:"joint-product-detail-ad j-align-center"})}),(null==Z?void 0:Z.surfside)&&n.jsx(s.Suspense,{fallback:null,children:n.jsx(L,{unit:"product_detail_unit"})}),J.janeAds&&n.jsx("div",{className:l(k.detailSection,"joint-product-details-section","joint-product-details-recommended-products"),children:n.jsx(s.Suspense,{fallback:null,children:n.jsx(q,{product:H})})}),n.jsx("div",{className:l(k.detailSection,"joint-product-details-section","joint-product-details-similar-products"),children:n.jsx(f,{product:H})}),H.brandName.raw&&n.jsx("div",{className:l(k.detailSection,"joint-product-details-section","joint-product-details-brand-products"),children:n.jsx(v,{brand:H.brandName.raw})})]})})]}):null}export{B as ProductDetail5g,B as default};
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.