1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./product-detail-5g.layout-DZrkqvaY.js","./main.1.45.0.js","../css/main.1.45.0.css","./DefaultPropsProvider-C2syA4QN.js","./product-interaction-context-CgFTGeYC.js","./ecommerce-search-provider-B-RJ2BJM.js","./search-config-BhBQGKEp.js","./index-D_ibIeF5.js","./config-BQfsxwia.js","./inheritsLoose-Cagl8Uqp.js","./assertThisInitialized-PUtynf78.js","./index-BzcYWA6j.js","./use-store-CbMJqTO8.js","./use-add-to-checkout-lvc8nSru.js","./use-product-variants-8pehLRot.js","./index-Bru-Ui9l.js","./search-api.service-r7bhVHZf.js","./add-to-cart-button.component-C671kBMs.js","./button.component-XeC76gV5.js","./createSvgIcon-BKM72nfj.js","./Close-DmkQrzuU.js","./utils-DvjLjrK8.js","./Paper-DpdCpDyz.js","./Button-D9wQSZ3k.js","../css/button-x5AhJg1G.css","./quantity-select.component-CrJ8Jj29.js","./MenuItem-BB1eqUrL.js","./dividerClasses-D_-b5-a1.js","../css/quantity-select-CPtPQ4vy.css","./social-share.component-Z2Kgkh2_.js","./clsx-BeLtu-UY.js","./Stack-OSSMca52.js","./useThemeProps-CilF4Ygb.js","./getThemeProps-Hzf5EfZS.js","./slider.component-BqfYuRbu.js","./product-dialog.component-CqxxQqi1.js","./useMediaQuery-Ll-jLsY2.js","./Dialog-C1imcgja.js","./Toolbar-Chet2LTv.js","./DialogContent-1FO7MY8V.js","./CircularProgress-d2-jiF45.js","../css/product-dialog-Brg_aGUu.css","./Typography-C-divtet.js","../css/slider-DudPeNie.css","./product-contents.component-FIAmPMdK.js","./lazysizes-DuioMqv2.js","../css/product-contents-BsXRJyim.css","./ListItemText-CS_JM3_w.js","./Divider-CYqPJc_P.js","../css/social-share-BWvM62k8.css","./LocalOffer-CaV4pcPm.js","./Grid-tNXov3EZ.js","../css/product-detail-5g-C_P_JnTT.css","./product-detail-og.layout-BiqCCOaq.js","../css/product-detail-og-BYl7iffC.css"])))=>i.map(i=>d[i]); 2var t=Object.defineProperty,e=Object.defineProperties,r=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable,s=(e,r,a)=>r in e?t(e,r,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[r]=a,n=(t,e)=>{for(var r in e||(e={}))o.call(e,r)&&s(t,r,e[r]);if(a)for(var r of a(e))i.call(e,r)&&s(t,r,e[r]);return t};import{i as c,r as l,c1 as d,R as u,c2 as p,c3 as m,c4 as f,a4 as j,_ as y,C as v,j as h}from"./main.1.45.0.js";import{u as g,a as _}from"./use-product-variants-8pehLRot.js";import{A as b}from"./ecommerce-search-provider-B-RJ2BJM.js";import{u as O}from"./use-add-to-checkout-lvc8nSru.js";import"./use-store-CbMJqTO8.js";import"./search-config-BhBQGKEp.js";import"./index-D_ibIeF5.js";import"./config-BQfsxwia.js";import"./inheritsLoose-Cagl8Uqp.js";import"./assertThisInitialized-PUtynf78.js";import"./DefaultPropsProvider-C2syA4QN.js";import"./index-BzcYWA6j.js";const x=({product:t,productMeta:e,outOfStock:r,defaultVariant:a,onAddToCart:o,children:i})=>{const s=c(),n=l.useContext(b),{addItem:y,isAdding:v}=O(),{variants:h,selectedVariant:_,setSelectedVariant:x}=g(t),[P,I]=l.useState(1),E=d();u.useEffect((()=>{(null==h?void 0:h.length)>0&&a&&x(a)}),[h,a]),u.useEffect((()=>{t&&(p({product:t,analyticsContext:n}),m(t))}),[t]),u.useEffect((()=>{var t;E.moodiDay&&f(null==(t=E.moodiDay.credentials)?void 0:t.client_id)}),[E]);return i({product:t,variants:h,selectedVariant:_,quantity:P,handleQuantityChange:t=>{I(t)},handleVariantChange:t=>{x(t)},handleAddToCart:()=>{return e=null,r=null,a=function*(){_?(yield y({productId:t.jointId.raw,option:_.option,quantity:Number(P),analyticsListId:n.listId,analyticsListName:n.listName,analyticsIndex:t.index||0}),o&&o()):s(j({message:"No variant selected",type:"error"}))},new Promise(((t,o)=>{var i=t=>{try{n(a.next(t))}catch(e){o(e)}},s=t=>{try{n(a.throw(t))}catch(e){o(e)}},n=e=>e.done?t(e.value):Promise.resolve(e.value).then(i,s);n((a=a.apply(e,r)).next())}));var e,r,a},isAddingToCart:v,outOfStock:r})},P={[_.fiveg]:()=>y((()=>import("./product-detail-5g.layout-DZrkqvaY.js")),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52]),import.meta.url),[_.og]:()=>y((()=>import("./product-detail-og.layout-BiqCCOaq.js")),__vite__mapDeps([53,1,2,3,17,18,19,20,21,9,10,22,23,24,25,26,27,28,29,30,31,32,33,34,4,5,6,7,8,11,12,13,14,15,16,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,54]),import.meta.url)};function I(t){const{product_details_layout:a}=v(),o=a||_.fiveg,i=l.useMemo((()=>P[o]||P[_.fiveg]),[o]),s=l.useMemo((()=>l.lazy(i)),[i]);return h.jsx(x,(c=n({},t),e(c,r({children:t=>h.jsx(l.Suspense,{fallback:null,children:h.jsx(s,n({},t))})}))));var c}
2export{I as ProductDetail,I 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.