PageSourceSearch

https://shopjgo.com/_next/static/immutable/chunks/05xho0oglt9k4.js

js shopjgo.com collected 2026-10-10 02:34:32 UTC 76,239 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,73923,e=>{"use strict";let t;var i,n=e.i(43476),r=e.i(18566),a=e.i(71645),o=e.i(46932),l=e.i(88653),s=e.i(57688),c=e.i(51050);function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i<t;i++)n[i]=e[i];return n}let u=Object.entries,h=Object.setPrototypeOf,p=Object.isFrozen,m=Object.getPrototypeOf,x=Object.getOwnPropertyDescriptor,f=Object.freeze,g=Object.seal,b=Object.create,y="u">typeof Reflect&&Reflect,w=y.apply,v=y.construct;f||(f=function(e){return e}),g||(g=function(e){return e}),w||(w=function(e,t){for(var i=arguments.length,n=Array(i>2?i-2:0),r=2;r<i;r++)n[r-2]=arguments[r];return e.apply(t,n)}),v||(v=function(e){for(var t=arguments.length,i=Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];return new e(...i)});let j=W(Array.prototype.forEach),N=W(Array.prototype.lastIndexOf),k=W(Array.prototype.pop),S=W(Array.prototype.push),T=W(Array.prototype.splice),A=Array.isArray,C=W(String.prototype.toLowerCase),E=W(String.prototype.toString),_=W(String.prototype.match),D=W(String.prototype.replace),L=W(String.prototype.indexOf),O=W(String.prototype.trim),R=W(Number.prototype.toString),P=W(Boolean.prototype.toString),I="u"<typeof BigInt?null:W(BigInt.prototype.toString),M="u"<typeof Symbol?null:W(Symbol.prototype.toString),z=W(Object.prototype.hasOwnProperty),U=W(Object.prototype.toString),B=W(RegExp.prototype.test),F=(i=TypeError,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return v(i,t)});function W(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var i=arguments.length,n=Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];return w(e,t,n)}}function $(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:C;if(h&&h(e,null),!A(t))return e;let n=t.length;for(;n--;){let r=t[n];if("string"==typeof r){let e=i(r);e!==r&&(p(t)||(t[n]=e),r=e)}e[r]=!0}return e}function H(e){let t=b(null);for(let n of u(e)){var i=function(e){if(Array.isArray(e))return e}(n)||function(e){var t=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var i,n,r,a,o=[],l=!0,s=!1;try{r=(t=t.call(e)).next,!1;for(;!(l=(i=r.call(t)).done)&&(o.push(i.value),2!==o.length);l=!0);}catch(e){s=!0,n=e}finally{try{if(!l&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(s)throw n}}return o}}(n)||function(e){if(e){if("string"==typeof e)return d(e,2);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?d(e,2):void 0}}(n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();let r=i[0],a=i[1];z(e,r)&&(A(a)?t[r]=function(e){for(let t=0;t<e.length;t++)z(e,t)||(e[t]=null);return e}(a):a&&"object"==typeof a&&a.constructor===Object?t[r]=H(a):t[r]=a)}return t}function Y(e,t){for(;null!==e;){let i=x(e,t);if(i){if(i.get)return W(i.get);if("function"==typeof i.value)return W(i.value)}e=m(e)}return function(){return null}}let G=f(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),q=f(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),V=f(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Q=f(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),K=f(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),X=f(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Z=f(["#text"]),J=f(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
1spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),ee=f(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),et=f(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ei=f(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),en=g(/{{[\w\W]*|^[\w\W]*}}/g),er=g(/<%[\w\W]*|^[\w\W]*%>/g),ea=g(/\${[\w\W]*/g),eo=g(/^data-[\-\w.\u00B7-\uFFFF]+$/),el=g(/^aria-[\-\w]+$/),es=g(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ec=g(/^(?:\w+script|data):/i),ed=g(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),eu=g(/^html$/i),eh=g(/^[a-z][.\w]*(-[.\w]+)+$/i),ep=g(/<[/\w!]/g),em=g(/<[/\w]/g),ex=g(/<\/no(script|embed|frames)/i),ef=g(/\/>/i),eg=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],eb=f($({},eg)),ey=(t={},j(eg,e=>{t[e]=g(RegExp("</"+e+"(?=[\\t\\n\\f\\r />])","i"))}),f(t)),ew=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let i=null,n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(i=t.getAttribute(n));let r="dompurify"+(i?"#"+i:"");try{return e.createPolicy(r,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}},ev=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},ej=function(e,t,i,n){return z(e,t)&&A(e[t])?$(n.base?H(n.base):{},e[t],n.transform):i},eN=function(e,t,i){let n=z(e,t)?e[t]:void 0;return n&&"object"==typeof n?H(n):i()};var ek=function e(){let t,i,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"u"<typeof window?null:window,r=t=>e(t);if(r.version="3.4.15",r.removed=[],!n||!n.document||9!==n.document.nodeType||!n.Element)return r.isSupported=!1,r;let a=n.document,o=a,l=o.currentScript;n.DocumentFragment;let s=n.HTMLTemplateElement,c=n.Node,d=n.Element,h=n.NodeFilter;void 0===n.NamedNodeMap&&(n.NamedNodeMap||n.MozNamedAttrMap),n.HTMLFormElement;let p=n.DOMParser,m=n.trustedTypes,x=d.prototype,y=Y(x,"cloneNode"),w=Y(x,"remove"),v=Y(x,"removeAttributeNode"),W=Y(x,"nextSibling"),eg=Y(x,"childNodes"),ek=Y(x,"parentNode"),eS=Y(x,"shadowRoot"),eT=Y(x,"attributes"),eA=c&&c.prototype?Y(c.prototype,"nodeType"):null,eC=c&&c.prototype?Y(c.prototype,"nodeName"):null,eE=c&&c.prototype?Y(c.prototype,"ownerDocument"):null,e_=function(e){return eA?eA(e):e.nodeType},eD=function(e){return eC?eC(e):e.nodeName};if("function"==typeof s){let e=a.createElement("template");e.content&&e.content.ownerDocument&&(a=e.content.ownerDocument)}let eL="",eO=!1,eR=0,eP=function(){if(eR>0)throw F('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},eI=function(e){eP(),eR++;try{return t.createHTML(e)}finally{eR--}},eM=function(e){eP(),eR++;try{return t.createScriptURL(e)}finally{eR--}},ez=a,eU=ez.implementation,eB=ez.createNodeIterator,eF=ez.createDocumentFragment,eW=ez.getElementsByTagName,e$=o.importNode,eH=ev();r.isSupported="function"==typeof u&&"function"==typeof ek&&eU&&void 0!==eU.createHTMLDocument;let eY=es,eG=null,eq=$({},[...G,...q,...V,...K,...Z]),eV=null,eQ=$({}
vendor: 1,285 bytes, line 1
1,[...J,...ee,...et,...ei]),eK=Object.seal(b(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),eX=null,eZ=null,eJ=Object.seal(b(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),e0=!0,e1=!0,e2=!1,e5=!0,e4=!1,e3=!0,e8=!1,e6=!1,e9=null,e7=null,te=!1,tt=!1,ti=!1,tn=!1,tr=!0,ta=!1,to="user-content-",tl=!0,ts=!1,tc={},td=null,tu=$({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),th=null,tp=$({},["audio","video","img","source","image","track"]),tm=null,tx=$({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),tf="http://www.w3.org/1998/Math/MathML",tg="http://www.w3.org/2000/svg",tb="http://www.w3.org/1999/xhtml",ty=tb,tw=!1,tv=null,tj=$({},[tf,tg,tb],E),tN=f(["mi","mo","mn","ms","mtext"]),tk=$({},tN),tS=f(["annotation-xml"]),tT=$({},tS),tA=$({}
1,["title","style","font","a","script"]),tC=null,tE=["application/xhtml+xml","text/html"],t_=null,tD=null,tL=a.createElement("form"),tO=function(e){return e instanceof RegExp||e instanceof Function},tR=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(tD&&tD===e)return;e&&"object"==typeof e||(e={}),e=H(e),t_="application/xhtml+xml"===(tC=-1===tE.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE)?E:C,eG=ej(e,"ALLOWED_TAGS",eq,{transform:t_}),eV=ej(e,"ALLOWED_ATTR",eQ,{transform:t_}),tv=ej(e,"ALLOWED_NAMESPACES",tj,{transform:E}),tm=ej(e,"ADD_URI_SAFE_ATTR",tx,{transform:t_,base:tx}),th=ej(e,"ADD_DATA_URI_TAGS",tp,{transform:t_,base:tp}),td=ej(e,"FORBID_CONTENTS",tu,{transform:t_}),eX=ej(e,"FORBID_TAGS",H({}),{transform:t_}),eZ=ej(e,"FORBID_ATTR",H({}),{transform:t_}),tc=!!z(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?H(e.USE_PROFILES):e.USE_PROFILES),e0=!1!==e.ALLOW_ARIA_ATTR,e1=!1!==e.ALLOW_DATA_ATTR,e2=e.ALLOW_UNKNOWN_PROTOCOLS||!1,e5=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,e4=e.SAFE_FOR_TEMPLATES||!1,e3=!1!==e.SAFE_FOR_XML,e8=e.WHOLE_DOCUMENT||!1,tt=e.RETURN_DOM||!1,ti=e.RETURN_DOM_FRAGMENT||!1,tn=e.RETURN_TRUSTED_TYPE||!1,te=e.FORCE_BODY||!1,tr=!1!==e.SANITIZE_DOM,ta=e.SANITIZE_NAMED_PROPS||!1,tl=!1!==e.KEEP_CONTENT,ts=e.IN_PLACE||!1,eY=!function(e){try{return B(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?es:e.ALLOWED_URI_REGEXP,ty="string"==typeof e.NAMESPACE?e.NAMESPACE:tb,tk=eN(e,"MATHML_TEXT_INTEGRATION_POINTS",()=>$({},tN)),tT=eN(e,"HTML_INTEGRATION_POINTS",()=>$({},tS));let n=eN(e,"CUSTOM_ELEMENT_HANDLING",()=>b(null));if(eK=b(null),z(n,"tagNameCheck")&&tO(n.tagNameCheck)&&(eK.tagNameCheck=n.tagNameCheck),z(n,"attributeNameCheck")&&tO(n.attributeNameCheck)&&(eK.attributeNameCheck=n.attributeNameCheck),z(n,"allowCustomizedBuiltInElements")&&"boolean"==typeof n.allowCustomizedBuiltInElements&&(eK.allowCustomizedBuiltInElements=n.allowCustomizedBuiltInElements),g(eK),e4&&(e1=!1),ti&&(tt=!0),tc&&(eG=$({},Z),eV=b(null),!0===tc.html&&($(eG,G),$(eV,J)),!0===tc.svg&&($(eG,q),$(eV,ee),$(eV,ei)),!0===tc.svgFilters&&($(eG,V),$(eV,ee),$(eV,ei)),!0===tc.mathMl&&($(eG,K),$(eV,et),$(eV,ei))),eJ.tagCheck=null,eJ.attributeCheck=null,z(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?eJ.tagCheck=e.ADD_TAGS:A(e.ADD_TAGS)&&(eG===eq&&(eG=H(eG)),$(eG,e.ADD_TAGS,t_))),z(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?eJ.attributeCheck=e.ADD_ATTR:A(e.ADD_ATTR)&&(eV===eQ&&(eV=H(eV)),$(eV,e.ADD_ATTR,t_))),z(e,"ADD_FORBID_CONTENTS")&&A(e.ADD_FORBID_CONTENTS)&&(td===tu&&(td=H(td)),$(td,e.ADD_FORBID_CONTENTS,t_)),tl&&(eG["#text"]=!0),e8&&$(eG,["html","head","body"]),eG.table&&($(eG,["tbody"]),delete eX.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw F('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw F('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let i=t;t=e.TRUSTED_TYPES_POLICY;try{eL=eI("")}catch(e){throw t=i,e}}else null===e.TRUSTED_TYPES_POLICY?(t=void 0,eL=""):(void 0===t&&(eO||(i=ew(m,l),eO=!0),t=i),t&&"string"==typeof eL&&(eL=eI("")));f&&f(e),tD=e},tP=$({},[...q,...V,...Q]),tI=$({},[...K,...X]),tM=function(e){var t,i,n;let r=ek(e);r&&r.tagName||(r={namespaceURI:ty,tagName:"template"});let a=C(e.tagName),o=C(r.tagName);return!!tv[e.namespaceURI]&&(e.namespaceURI===tg?(t=r).namespaceURI===tb?"svg"===a:t.namespaceURI===tf?"svg"===a&&("annotation-xml"===o||tk[o]):!!tP[a]:e.namespaceURI===tf?(i=r).namespaceURI===tb?"math"===a:i.namespaceURI===tg?"math"===a&&tT[o]:!!tI[a]:e.namespaceURI===tb?((n=r).namespaceURI!==tg||!!tT[o])&&(n.namespaceURI!==tf||!!tk[o])&&!tI[a]&&(tA[a]||!tP[a]):"application/xhtml+xml"===tC&&!!tv[e.namespaceURI])},tz=function(e){S(r.removed,{element:e});try{ek(e).removeChild(e)}catch(t){if(w(e),!ek(e))throw F("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},tU=function(e,t,i){try{v(e,t)}catch(t){try{e.removeAttribute(i)}catch(e){}}},tB=function(e){t$(e);let t=eg(e);if(t){let e=[];j(t,t=>{S(e,t)}),j(e,e=>{try{w(e)}catch(e){}})}let i=eT(e);
1if(i)for(let t=i.length-1;t>=0;--t){let n=i[t],r=n&&n.name;"string"==typeof r&&tU(e,n,r)}},tF=function(e,t,i){if(!i)try{i=t.getAttributeNode(e)}catch(e){i=null}S(r.removed,{attribute:i||null,from:t});try{i?v(t,i):t.removeAttribute(e)}catch(i){try{t.removeAttribute(e)}catch(e){}}if("is"===e)if(tt||ti)try{tz(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},tW=function(e){let t=eT(e);if(t)for(let i=t.length-1;i>=0;--i){let n=t[i],r=n&&n.name;"string"!=typeof r||eV[t_(r)]||tU(e,n,r)}},t$=function(e){let t=[e];for(;t.length>0;){let e=t.pop();1===e_(e)&&tW(e);let i=eg(e);if(i)for(let e=i.length-1;e>=0;--e)t.push(i[e])}},tH=function(e,t){return!!e3&&("patchsrc"===e||"for"===e&&"label"!==t&&"output"!==t)},tY=function(e){if(!e3)return;let t=[e];for(;t.length>0;){let e=t.pop(),i=e_(e);if(7===i||8===i&&B(em,e.data)){try{w(e)}catch(e){}continue}if(1===i){let t=t_(eD(e));try{e.hasAttribute&&e.hasAttribute("patchsrc")&&e.removeAttribute("patchsrc"),e.hasAttribute&&e.hasAttribute("for")&&tH("for",t)&&e.removeAttribute("for")}catch(e){}}let n=eg(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},tG=function(e){let i=null,n=null;if(te)e="<remove></remove>"+e;else{let t=_(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===tC&&ty===tb&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");let r=t?eI(e):e;if(ty===tb)try{i=new p().parseFromString(r,tC)}catch(e){}if(!i||!i.documentElement){i=eU.createDocument(ty,"template",null);try{i.documentElement.innerHTML=tw?eL:r}catch(e){}}let o=i.body||i.documentElement;return(e&&n&&o.insertBefore(a.createTextNode(n),o.childNodes[0]||null),ty===tb)?eW.call(i,e8?"html":"body")[0]:e8?i.documentElement:o},tq=function(e){let t=eE?eE(e):e.ownerDocument;return eB.call(t||e,e,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},tV=function(e){return e=D(e,en," "),e=D(e,er," "),e=D(e,ea," ")},tQ=function(e){var t;e.normalize();let i=eE?eE(e):e.ownerDocument,n=eB.call(i||e,e,h.SHOW_TEXT|h.SHOW_COMMENT|h.SHOW_CDATA_SECTION|h.SHOW_PROCESSING_INSTRUCTION,null),r=n.nextNode();for(;r;)r.data=tV(r.data),r=n.nextNode();let a=null==(t=e.querySelectorAll)?void 0:t.call(e,"template");a&&j(a,e=>{tX(e.content)&&tQ(e.content)})},tK=function(e){let t=eC?eC(e):null;return"string"==typeof t&&"form"===t_(t)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||e.attributes!==eT(e)||"function"!=typeof e.removeAttribute||"function"!=typeof e.removeAttributeNode||"function"!=typeof e.getAttributeNode||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes||e.nodeType!==eA(e)||e.childNodes!==eg(e))},tX=function(e){if(!eA||"object"!=typeof e||null===e)return!1;try{return 11===eA(e)}catch(e){return!1}},tZ=function(e){if(!eA||"object"!=typeof e||null===e)return!1;try{return"number"==typeof eA(e)}catch(e){return!1}};function tJ(e,t,i){0!==e.length&&j(e,e=>{e.call(r,t,i,tD)})}let t0=function(e,t){if(e instanceof RegExp)return B(e,t);if(e instanceof Function){for(var i=arguments.length,n=Array(i>2?i-2:0),r=2;r<i;r++)n[r-2]=arguments[r];return!!e(t,...n)}return!1},t1=function(e,t,i){if(!eX[t]&&t6(t)&&t0(eK.tagNameCheck,t))return!1;if(tl&&!td[t]){let t=ek(e),n=eg(e);if(n&&t){let r=n.length;for(let a=r-1;a>=0;--a){let r=e===i?y(n[a],!0):n[a];t.insertBefore(r,W(e))}}}return tz(e),!0},t2=function(e,t,i,n){return 0===e.length?t:t===i||t===n?H(t):t},t5=function(e,t){return e!==t&&null===ek(e)&&(ts&&t$(e),!0)},t4=function(e,t){if(tJ(eH.beforeSanitizeElements,e,null),t5(e,t))return!0;if(tK(e))return tz(e),!0;let i=t_(eD(e));if(eG=t2(eH.uponSanitizeElement,eG,eq,e9),tJ(eH.uponSanitizeElement,e,{tagName:i,allowedTags:eG}),t5(e,t))return!0;if(e3&&e.hasChildNodes()&&!tZ(e.firstElementChild)&&B(ep,e.textContent)&&B(ep,e.innerHTML)||e3&&e.namespaceURI===tb&&eb[i]&&(tZ(e.firstElementChild)||"string"==typeof e.textContent&&B(ey[i],e.textContent))||7===e.nodeType||e3&&8===e.nodeType&&B(em,e.data))return tz(e),!0;if(eX[i]||!(eJ.tagCheck instanceof Function&&eJ.tagCheck(i))&&!eG[i]){let n=t1(e,i,t);return!1===n&&tJ(eH.afterSanitizeElements,e,null),n}if(1===e_(e)&&!tM(e)||("noscript"===i||"noembed"===i||"noframes"===i)&&B(ex,e.innerHTML))return tz(e),!0;
1if(e4&&3===e.nodeType){let t=tV(e.textContent);e.textContent!==t&&(S(r.removed,{element:e.cloneNode()}),e.textContent=t)}return tJ(eH.afterSanitizeElements,e,null),!1},t3=function(e,t,i){if(eZ[t]||tH(t,e)||tr&&("id"===t||"name"===t)&&(i in a||i in tL))return!1;let n=eV[t]||eJ.attributeCheck instanceof Function&&eJ.attributeCheck(t,e);return!!(e1&&B(eo,t)||e0&&B(el,t))||(n?!(!(tm[t]||B(eY,D(i,ed,"")))&&("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==L(i,"data:")||!th[e])&&(!e2||B(ec,D(i,ed,""))))||!i:t6(e)&&t0(eK.tagNameCheck,e)&&t0(eK.attributeNameCheck,t,e)||"is"===t&&eK.allowCustomizedBuiltInElements&&t0(eK.tagNameCheck,i))},t8=$({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),t6=function(e){return!t8[C(e)]&&B(eh,e)},t9=function(e,i,n,r){if(t&&"object"==typeof m&&"function"==typeof m.getAttributeType&&!n)switch(m.getAttributeType(e,i)){case"TrustedHTML":return eI(r);case"TrustedScriptURL":return eM(r)}return r},t7=function(e,t,i,n){try{if(i?e.setAttributeNS(i,t,n):e.setAttribute(t,n),tK(e))return tz(e),!1;return!0}catch(i){return tF(t,e),!1}},ie=function(e){tJ(eH.beforeSanitizeAttributes,e,null);let t=e.attributes;if(!t||tK(e))return;let i={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:eV=t2(eH.uponSanitizeAttribute,eV,eQ,e7),forceKeepAttr:void 0},n=t.length,a=t_(e.nodeName);for(;n--;){let o=t[n],l=o.name,s=o.namespaceURI,c=o.value,d=t_(l),u="value"===l?c:O(c),h=!1;if(i.attrName=d,i.attrValue=u,i.keepAttr=!0,i.forceKeepAttr=void 0,tJ(eH.uponSanitizeAttribute,e,i),u=i.attrValue,ta&&("id"===d||"name"===d)&&0!==L(u,to)&&(tF(l,e,o),u=to+u,h=!0),e3&&B(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,u)||"attributename"===d&&_(u,"href")){tF(l,e,o);continue}if(!i.forceKeepAttr){if(!i.keepAttr||!e5&&B(ef,u)||(e4&&(u=tV(u)),!t3(a,d,u))){tF(l,e,o);continue}(u=t9(a,d,s,u))!==c&&t7(e,l,s,u)&&h&&k(r.removed)}}tJ(eH.afterSanitizeAttributes,e,null)},it=function(e){let t=null,i=tq(e);for(tJ(eH.beforeSanitizeShadowDOM,e,null);t=i.nextNode();)if(tJ(eH.uponSanitizeShadowNode,t,null),t4(t,e),ie(t),tX(t.content)&&it(t.content),1===e_(t)){let e=eS(t);tX(e)&&(ii(e),it(e))}tJ(eH.afterSanitizeShadowDOM,e,null)},ii=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){it(e.shadow);continue}let i=e.node,n=1===e_(i),r=eg(i);if(r)for(let e=r.length-1;e>=0;--e)t.push({node:r[e],shadow:null});if(n){let e=eC?eC(i):null;if("string"==typeof e&&"template"===t_(e)){let e=i.content;tX(e)&&t.push({node:e,shadow:null})}}if(n){let e=eS(i);tX(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return r.sanitize=function(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,a=null,l=null,s=null;if((tw=!e)&&(e="<!-->"),"string"!=typeof e&&!tZ(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return R(e);case"boolean":return P(e);case"bigint":return I?I(e):"0";case"symbol":return M?M(e):"Symbol()";case"undefined":default:return U(e);case"function":case"object":{if(null===e)return U(e);let t=Y(e,"toString");if("function"==typeof t){let i=t(e);return"string"==typeof i?i:U(i)}return U(e)}}}(e)))throw F("dirty is not a string, aborting");if(!r.isSupported)return e;e6?(eG=e9,eV=e7):tR(i),(eH.uponSanitizeElement.length>0||eH.uponSanitizeAttribute.length>0)&&(eG=H(eG)),eH.uponSanitizeAttribute.length>0&&(eV=H(eV)),r.removed=[];let c=ts&&"string"!=typeof e&&tZ(e);if(c){tY(e);let t=eD(e);if("string"==typeof t){let i=t_(t);if(!eG[i]||eX[i])throw tB(e),F("root node is forbidden and cannot be sanitized in-place")}if(tK(e))throw tB(e),F("root node is clobbered and cannot be sanitized in-place");try{ii(e)}catch(t){throw tB(e),t}}else if(tZ(e))1===(a=(n=tG("<!---->")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?n=a:n.appendChild(a),ii(n);else{if(!tt&&!e4&&!e8&&-1===e.indexOf("<"))return t&&tn?eI(e):e;if(!(n=tG(e)))return tt?null:tn?eL:""}n&&te&&tz(n.firstChild);let d=c?e:n;try{let e=tq(d);for(;l=e.nextNode();)t4(l,d),ie(l),tX(l.content)&&it(l.content)}catch(t){throw c&&(tB(e),j(r.removed,e=>{e.element&&t$(e.element)})),t}if(c)return j(r.removed,e=>{e.element&&t$(e.element)}),e4&&tQ(e),e;if(tt){if(e4&&tQ(n),ti)for(s=eF.call(n.ownerDocument);n.firstChild;)s.appendChild(n.firstChild);else s=n;return(eV.shadowroot||eV.shadowrootmode)&&(s=e$.call(o,s,!0)),s}let u=e8?n.outerHTML:n.innerHTML;return e8&&eG["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&B(eu,n.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+u),e4&&(u=tV(u)),t&&tn?eI(u):u},r.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};tR(e),e6=!0,e9=eG,e7=eV},r.clearConfig=function(){tD=null,e6=!1,e9=null,e7=null,t=i,eL=""},r.isValidAttribute=function(e,t,i){return tD||tR({}),t3(t_(e),t_(t),i)},r.addHook=function(e,t){"function"!=typeof t||z(eH,e)&&S(eH[e],t)},r.removeHook=function(e,t){if(z(eH,e)){if(void 0!==t){let i=N(eH[e],t);return -1===i?void 0:T(eH[e],i,1)[0]}return k(eH[e])}},r.removeHooks=function(e){z(eH,e)&&(eH[e]=[])},r.removeAllHooks=function(){eH=ev()},r}();ek.sanitize.bind(ek),ek.isSupported,ek.addHook.bind(ek),ek.removeHook.bind(ek),ek.removeHooks.bind(ek),ek.removeAllHooks.bind(ek),ek.setConfig.bind(ek),ek.clearConfig.bind(ek),ek.isValidAttribute.bind(ek),ek.version,ek.removed;var eS=e.i(3374),eT=e.i(89359),eA=e.i(87610),eC=e.i(78941),eE=e.i(34807);function e_({currentProduct:e,allProducts:t}){let{lines:i}=(0,c.useCart)(),r=(0,a.useMemo)(()=>
1(0,eC.getUpsellRecommendation)(e,i,t),[e,i,t]);return r?(0,n.jsxs)("div",{className:"rounded-2xl bg-white/[0.03] border border-white/[0.06] p-3 sm:p-4",children:[(0,n.jsx)("p",{className:"text-jgo-light text-[10px] font-bold uppercase tracking-[0.18em] mb-2",children:"Customers also add"}),(0,n.jsx)(eE.default,{product:r.product,reason:r.reason,variant:"product-page",surface:"product_page_upsell"})]}):null}var eD=e.i(22016),eL=e.i(55338);let eO={weekly:{percent:20,label:"Weekly",interval:"Every week"},biweekly:{percent:15,label:"Bi-Weekly",interval:"Every 2 weeks"},monthly:{percent:10,label:"Monthly",interval:"Every month"},none:{percent:0,label:"One-time",interval:""}},eR=[{minQty:25,percent:50,label:"Wholesale"},{minQty:6,percent:20,label:"Bulk 6+"},{minQty:4,percent:15,label:"Bulk 4+"},{minQty:2,percent:10,label:"Bulk 2+"}];function eP(e){for(let t of eR)if(e>=t.minQty)return{percent:t.percent,label:t.label};return null}var eI=e.i(27809),eM=e.i(33548);let ez=/\bcoa\b|certificate of analysis|lab (?:test|result)/i;function eU(e){return e.replace(/<[^>]+>/g,"").replace(/&amp;/g,"&").replace(/&nbsp;/g," ").replace(/\s+/g," ").trim()}function eB(e){let t={};for(let i of e?.selectedOptions??[])t[i.name]=i.value;return t}function eF(e,t){let i=eB(e);return Object.entries(t).every(([e,t])=>i[e]===t)}function eW({options:e,variants:t,selectedVariantId:i,onSelect:r,appearance:a="pills",renderValueMeta:o}){let l=eB(t.find(e=>e.id===i));return(0,n.jsx)("div",{className:"space-y-5",children:e.map(e=>{let i="segmented"===a;return(0,n.jsxs)("div",{children:[(0,n.jsxs)("p",{className:"text-sm text-white/80 font-bold tracking-wider uppercase mb-3",children:[e.name,l[e.name]&&(0,n.jsx)("span",{className:"ml-2 normal-case tracking-normal font-semibold text-jgo-light",children:l[e.name]})]}),(0,n.jsx)("div",{role:"radiogroup","aria-label":e.name,className:i?"grid gap-1 rounded-2xl bg-white/[0.04] border border-white/[0.08] p-1":"flex flex-wrap gap-2",style:i?{gridTemplateColumns:`repeat(${Math.min(e.values.length,4)}, minmax(0, 1fr))`}:void 0,children:e.values.map(a=>{let s=t.find(t=>eF(t,{...l,[e.name]:a}))??t.find(t=>eB(t)[e.name]===a),c=l[e.name]===a,d=s?.inStock??!1,u=o?.(e.name,a,s);return(0,n.jsxs)("button",{type:"button",role:"radio","aria-checked":c,"aria-disabled":!d,onClick:()=>{var i;let n,o,s,c;return i=e.name,n={...l,[i]:a},o=t.find(e=>eF(e,n)),s=t.find(e=>eB(e)[i]===a),void((c=o??s)&&r(c.id))},className:i?`min-h-[56px] rounded-xl px-2 py-2.5 text-center transition-all duration-300 ${c?"gradient-jgo text-white glow-jgo":d?"text-white/70 hover:text-white hover:bg-white/[0.06]":"text-white/30 line-through hover:bg-white/[0.03]"}`:`px-5 py-3 rounded-xl text-base font-medium transition-all duration-300 ${c?"gradient-jgo text-white glow-jgo":d?"bg-white/[0.07] border border-white/15 text-white/80 hover:text-white":"bg-white/[0.03] border border-white/10 text-white/35 line-through"}`,children:[(0,n.jsx)("span",{className:i?"block text-sm font-bold":void 0,children:a}),i&&u&&(0,n.jsx)("span",{className:`block text-[11px] mt-0.5 ${c?"text-white/85":"text-white/45"}`,children:u})]},a)})})]},e.name)})})}let e$=[{label:"2018 Farm Bill compliant",icon:"M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622C17.176 19.29 21 14.591 21 9c0-1.042-.133-2.052-.382-3.016z"},{label:"Under 0.3% Δ9 THC",icon:"M9.75 3.104v5.714a2.25 2.25 0 01-.659 1.591L5 14.5M9.75 3.104c-.251.023-.501.05-.75.082m.75-.082a24.301 24.301 0 014.5 0m0 0v5.714c0 .597.237 1.17.659 1.591L19.8 15.3M14.25 3.104c.251.023.501.05.75.082M19.8 15.3l-1.57.393A9.065 9.065 0 0112 15a9.065 9.065 0 00-6.23-.693L5 14.5m14.8.8l1.402 1.402c1.232 1.232.65 3.318-1.067 3.611A48.309 48.309 0 0112 21c-2.773 0-5.491-.235-8.135-.687-1.718-.293-2.3-2.379-1.067-3.61L5 14.5"},{label:"21+ only",icon:"M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"},{label:"Third-party lab tested",icon:"M9 12h6m-6 4h6M7 4h10a2 2 0 012 2v14a2 2 0 01-2 2H7a2 2 0 01-2-2V6a2 2 0 012-2z"},{label:"Ships where legal",icon:"M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"}];function eH({compact:e=!1}){return e?(0,n.jsx)("ul",{className:"flex flex-wrap gap-x-4 gap-y-1.5 text-[11px] md:text-xs font-medium text-white/60","aria-label":"Compliance",children:e$.map(e=>(0,n.jsxs)("li",{className:"flex items-center gap-1.5",children:[(0,n.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"#3FDA5B",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,n.jsx)("path",{d:e.icon})}),e.label]},e.label))}):(0,n.jsx)("ul",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-5 ga
1p-3","aria-label":"Compliance",children:e$.map(e=>(0,n.jsxs)("li",{className:"flex items-center gap-3 rounded-2xl bg-white/[0.04] border border-white/[0.08] px-4 py-3",children:[(0,n.jsx)("span",{className:"flex h-9 w-9 flex-shrink-0 items-center justify-center rounded-xl bg-jgo/15 text-jgo-light",children:(0,n.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,n.jsx)("path",{d:e.icon})})}),(0,n.jsx)("span",{className:"text-sm font-semibold text-white/85 leading-tight",children:e.label})]},e.label))})}var eY=e.i(12015);function eG({product:e,selectedVariant:t,unitPrice:i,hasCoa:r}){let a=t?.selectedOptions?.find(e=>"size"===e.name.toLowerCase())?.value??t?.name,o=(0,eM.formatPerGram)(i,a),l=(0,eM.getStrainType)(e),s=(0,eM.getCannabinoidTier)(e),c=[];for(let t of("top-shelf"===s&&c.push({label:"✦ Top Shelf",accent:!0}),l&&c.push({label:l}),e.thcaPercent&&c.push({label:`${e.thcaPercent.toFixed(1)}% THCa`}),e.cbdPercent&&c.push({label:`${e.cbdPercent.toFixed(1)}% CBD`}),e.terpenes??[]))c.push({label:t});return(0,n.jsxs)("div",{className:"space-y-3",children:[(o||c.length>0)&&(0,n.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[o&&(0,n.jsxs)("span",{className:"px-3 py-1.5 rounded-lg bg-jgo/15 border border-jgo/25 text-jgo-light text-xs font-bold tracking-wide",children:[o,a?` \xb7 ${a}`:""]}),c.map(e=>(0,n.jsx)("span",{className:`px-3 py-1.5 rounded-lg text-xs font-semibold ${e.accent?"bg-gradient-to-br from-[#F0D48A]/25 to-[#C9A24A]/20 border border-[#F0D48A]/40 text-[#F7E6B5]":"bg-white/[0.06] border border-white/12 text-white/75"}`,children:e.label},e.label))]}),(0,n.jsx)(eH,{compact:!0}),e.thcaPercent?(0,n.jsxs)("p",{className:"text-[11px] md:text-xs text-white/50 leading-relaxed",children:["Per state guidelines, THCa flower cannot ship to ",eY.THCA_RESTRICTED_STATES_LABEL,". Checkout will not offer shipping to those addresses."]}):null,r&&(0,n.jsxs)("a",{href:"#certificate-of-analysis",className:"inline-flex items-center gap-1.5 text-sm font-semibold text-jgo-light hover:text-white transition-colors",children:["View Certificate of Analysis",(0,n.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,n.jsx)("polyline",{points:"6 9 12 15 18 9"})})]})]})}var eq=e.i(72328);function eV({sections:e,defaultOpen:t=0}){let[i,r]=(0,a.useState)(()=>new Set(e[t]?[e[t].id]:[])),s=(0,eq.useReducedMotion)();return(0,n.jsx)("div",{className:"divide-y divide-white/[0.08]",children:e.map(e=>{let t=i.has(e.id),a=`desc-${e.id}`;return(0,n.jsxs)("div",{children:[(0,n.jsxs)("button",{type:"button",onClick:()=>{var t;return t=e.id,void r(e=>{let i=new Set(e);return i.has(t)?i.delete(t):i.add(t),i})},"aria-expanded":t,"aria-controls":a,className:"w-full flex items-center justify-between gap-4 py-4 text-left group",children:[(0,n.jsx)("span",{className:"text-base md:text-lg font-bold text-white group-hover:text-jgo-light transition-colors",children:e.title}),(0,n.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:`flex-shrink-0 text-white/50 transition-transform duration-300 ${t?"rotate-180":""}`,children:(0,n.jsx)("polyline",{points:"6 9 12 15 18 9"})})]}),(0,n.jsx)(l.AnimatePresence,{initial:!1,children:t&&(0,n.jsx)(o.motion.div,{id:a,initial:!s&&{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:s?void 0:{height:0,opacity:0},transition:{duration:.3,ease:[.16,1,.3,1]},className:"overflow-hidden",children:(0,n.jsx)("div",{className:"product-description text-white/85 text-base leading-relaxed pb-5",dangerouslySetInnerHTML:{__html:ek.sanitize(e.html)}})},"panel")})]},e.id)})})}function eQ({image:e,productName:t,summary:i}){let[r,c]=(0,a.useState)(!1),[d,u]=(0,a.useState)(!1);(0,a.useEffect)(()=>{if(!d)return;let e=e=>{"Escape"===e.key&&u(!1)};window.addEventListener("keydown",e);let{overflow:t}=document.body.style;return document.body.style.overflow="hidden",()=>{window.removeEventListener("keydown",e),document.body.style.overflow=t}},[d]);let h=e.alt||`Certificate of analysis for ${t}`;return(0,n.jsxs)(o.motion.section,{id:"certificate-of-analysis",initial:{opacity:0,y:20}
1,animate:{opacity:1,y:0},transition:{duration:.6,delay:.2},className:"mt-12 max-w-3xl rounded-3xl surface-panel p-6 md:p-7 scroll-mt-32",children:[(0,n.jsxs)("button",{type:"button",onClick:()=>c(e=>!e),"aria-expanded":r,"aria-controls":"coa-panel",className:"w-full flex items-center justify-between gap-4 text-left group",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"text-jgo-light text-[11px] font-bold uppercase tracking-[0.2em] mb-1",children:"Third-party lab tested"}),(0,n.jsx)("h2",{className:"text-xl font-bold text-white group-hover:text-jgo-light transition-colors",children:"Certificate of Analysis"}),i&&(0,n.jsx)("p",{className:"text-white/55 text-sm mt-1",children:i})]}),(0,n.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:`flex-shrink-0 text-white/50 transition-transform duration-300 ${r?"rotate-180":""}`,children:(0,n.jsx)("polyline",{points:"6 9 12 15 18 9"})})]}),(0,n.jsx)(l.AnimatePresence,{initial:!1,children:r&&(0,n.jsxs)(o.motion.div,{id:"coa-panel",initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3,ease:[.16,1,.3,1]},className:"overflow-hidden",children:[(0,n.jsx)("button",{type:"button",onClick:()=>u(!0),className:"mt-5 block w-full rounded-2xl overflow-hidden border border-white/[0.1] bg-white/[0.03] hover:border-jgo/40 transition-colors","aria-label":"Zoom certificate of analysis",children:(0,n.jsx)("div",{className:"relative w-full aspect-[8.5/11]",children:(0,n.jsx)(s.default,{src:e.url,alt:h,fill:!0,className:"object-contain",sizes:"(max-width: 768px) 100vw, 768px"})})}),(0,n.jsx)("p",{className:"mt-3 text-white/45 text-xs",children:"Tap the certificate to zoom. Results are batch-specific."})]},"coa")}),(0,n.jsx)(l.AnimatePresence,{children:d&&(0,n.jsxs)(o.motion.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},className:"fixed inset-0 z-[90] bg-black/85 backdrop-blur-sm p-4 md:p-8 overflow-auto",onClick:()=>u(!1),role:"dialog","aria-modal":"true","aria-label":"Certificate of analysis",children:[(0,n.jsx)("button",{type:"button",onClick:()=>u(!1),className:"fixed top-4 right-4 z-[91] h-11 w-11 rounded-full bg-white/10 border border-white/20 text-white text-xl flex items-center justify-center hover:bg-white/20","aria-label":"Close",children:"×"}),(0,n.jsx)("div",{className:"relative mx-auto w-full max-w-4xl aspect-[8.5/11]",onClick:e=>e.stopPropagation(),children:(0,n.jsx)(s.default,{src:e.url,alt:h,fill:!0,className:"object-contain",sizes:"100vw"})})]})})]})}var eK=e.i(46200),eX=e.i(94529);function eZ({rating:e,count:t}){return(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("div",{className:"flex",children:[1,2,3,4,5].map(t=>(0,n.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:t<=Math.round(e)?"#E4C06A":"none",stroke:t<=Math.round(e)?"#E4C06A":"#4A5168",strokeWidth:"2",children:(0,n.jsx)("polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"})},t))}),t>0&&(0,n.jsxs)("a",{href:"#customer-reviews",onClick:e=>{e.preventDefault();let t=document.getElementById("customer-reviews");t&&t.scrollIntoView({behavior:"smooth",block:"start"})},className:"text-white/70 text-base hover:text-jgo-light transition-colors cursor-pointer",children:["(",t," review",1!==t?"s":"",")"]})]})}e.s(["default",0,function(){let e,t,i,d=(0,r.useParams)().slug,{addItem:u}=(0,c.useCart)(),[h,p]=(0,a.useState)(null),[m,x]=(0,a.useState)([]),[f,g]=(0,a.useState)(!0),[b,y]=(0,a.useState)(1),[w,v]=(0,a.useState)("1"),j=e=>{let t=Math.max(1,Math.min(9999,e));y(t),v(String(t))},[N,k]=(0,a.useState)(""),[S,T]=(0,a.useState)(!1),[A,C]=(0,a.useState)(""),[E,_]=(0,a.useState)(!1),D=(0,a.useRef)(null),[L,O]=(0,a.useState)(!1);(0,a.useEffect)(()=>{let e=D.current;if(!e)return;let t=new IntersectionObserver(([e])=>O(!e.isIntersecting),{rootMargin:"-80px 0px 0px 0px"});return t.observe(e),()=>t.disconnect()},[h]);let[R,P]=(0,a.useState)("none"),[I,M]=(0,a.useState)(0),[z,U]=(0,a.useState)(new Set),[B,F]=(0,a.useState)("description"),[W,$]=(0,a.useState)({reviews:[],totalReviews:0,averageScore:0,starDistribution:{},page:1,loading:!0}),[H,Y]=(0,a.useState)(!1),[G,q]=(0,a.useState)({name:"",email:"",title:"",content:"",score:5}),[V,Q]=(0,a.useState)([]),[K,X]=(0,a.useState)(!1),[Z,J]=(0,a.useState)(!1);(0,a.useEffect)(()=>{Promise.all([fetch(`/api/products?handle=${d}`).then(e=>e.json()),fetch("/api/products?line=all").then(e=>e.json())]).then(([e,t])=>{let i=e.product;p(i),x(t.products||[]),i?.variants?.[0]&&k(i.variants[0].id)}).catch(console.error).finally(()=>g(!1))},[d]);let ee=(0,a.useMemo)(()=>{if(!h)return[];let e=(0,eM.isCannabinoidLine)(h);return m.filter(t=>t.id!==h.id&&(0,eM.isCannabinoidLine)(t)===e&&(t.category===h.category||t.effect.some(e=>h.effect.includes(e)))).slice(0,4)},[h,m]),et=(0,a.useMemo)(()=>{let e=h?.descriptionHtml||"";return{description:e=(e=e.replace(/<p>\s*<a[^>]*href=['"]https?:\/\/jgocbd\.com\/?['"][^>]*>[\s\S]*?<\/a>\s*<\/p>/i,"")).replace(/<p>\s*<em>\s*This product is not intended[\s\S]*?<\/em>\s*<\/p>/i,"").trim()}},[h?.descriptionHtml]),ei=(0,a.useCallback)(e=>{if(!h)return;$(e=>({...e,loading:!0}));let t=h.id.replace(/^gid:\/\/shopify\/Product\//,"");fetch(`/api/reviews?productId=${encodeURIComponent(t)}&page=${e}&perPage=5`).then(e=>e.json()).then(t=>{$(i=>({reviews:1===e?t.reviews:[...i.reviews,...t.reviews],totalReviews:t.totalReviews,averageScore:t.averageScore,starDistribution:t.starDistribution,page:e,loading:!1}))}).catch(()=>$(e=>({...e,loading:!1})))},[h]);(0,a.useEffect)(()=>{h&&ei(1)},[h,ei]);let[en,er]=(0,a.useState)(""),ea=async e=>{if(e.preventDefault(),h){X(!0),er("");try{let e=h.id.replace(/^gid:\/\/shopify\/Product\//,""),t=[];for(let e of V){let i=await new Promise(t=>{let i=new FileReader;i.onload=()=>t(i.result),i.readAsDataURL(e)});t.push(i)}(await fetch("/api/reviews",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({productId:e,productTitle:h.name,productUrl:`https://shopjgo.com/product/${h.slug}`,...G,images:t})})).ok?(J(!0),Y(!1),q({name:"",email:"",title:"",content:"",score:5}),Q([])):er("Unable to submit review. Please try again.")}catch{er("Unable to submit review. Please try again.")}finally{X(!1)}}};if((0,a.useEffect)(()=>{h&&(0,eL.trackEvent)("Product Viewed",{product_id:h.id,product_name:(0,eX.getSafeDisplayName)(h),category:h.category,line:(0,eM.isCannabinoidLine)(h)?"cannabinoid":"botanical",price:h.price,variant_id:N||void 0})},[h,N]),f)return(0,n.jsx)("div",{className:"min-h-screen bg-background flex items-center justify-center",children:(0,n.jsx)("div",{className:"w-8 h-8 border-2 border-jgo/30 border-t-jgo rounded-full animate-spin"})});if(!h)return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(eT.default,{}),(0,n.jsx)(eS.default,{}),(0,n.jsxs)("main",{className:"relative z-10 pt-32 px-6 max-w-4xl mx-auto text-center",children:[(0,n.jsx)("h1",{className:"text-3xl font-bold text-white mb-4",children:"Product not found"}),(0,n.jsx)(eD.default,{href:"/shop",className:"text-jgo-light hover:underline text-lg",children:"Back to shop"})]})]});let eo=h.variants?.find(e=>e.id===N),el=eo?.priceOverride??h.price,{gallery:es,coa:ec}
1=(e=[],t=null,h.images.forEach((i,n)=>{let r=h.imageAlts?.[n]??null,a={url:i,alt:r,index:n};!t&&r&&ez.test(r)?t=a:e.push(a)}),{gallery:e,coa:t}),ed=es.map(e=>e.url),eu=ed[I],eh=(0,eM.isCannabinoidLine)(h),ep=(0,eM.isFlowerProduct)(h),em=function(e){if(!e)return[];let t=/<h2[\s>]/i.test(e)?"2":/<h3[\s>]/i.test(e)?"3":null;if(!t)return eU(e)?[{id:"description",title:"Description",html:e}]:[];let i=RegExp(`<h${t}[^>]*>([\\s\\S]*?)<\\/h${t}>`,"gi"),n=[],r=new Set,a=0,o=null,l=(e,t)=>{if(!eU(t))return;let i=e??"Description",a=i.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,"")||"section";for(;r.has(a);)a=`${a}-${n.length}`;r.add(a),n.push({id:a,title:i,html:t.trim()})};for(let t of e.matchAll(i))l(o,e.slice(a,t.index)),o=eU(t[1])||"Details",a=(t.index??0)+t[0].length;return l(o,e.slice(a)),n}(et.description),ex=[h.thcaPercent?`${h.thcaPercent.toFixed(1)}% THCa`:null,h.cbdPercent?`${h.cbdPercent.toFixed(1)}% CBD`:null,eh?"Under 0.3% Δ9 THC":null].filter(Boolean).join(" · "),ef=(0,eX.getSafeDisplayName)(h),eg=N||h.shopifyVariantId||h.variants?.[0]?.id,eb=(0,eI.getPricingPolicy)(h),ey=function(e,t,i="none",n={}){let r=!1===n.bulk?null:eP(t),a=eO[i].percent,o=Math.max(r?.percent||0,a),l=0===o?null:o===(r?.percent||0)&&r?r.label:eO[i].label,s=e*(1-o/100),c=s*t,d=e*t-c;return{unitPrice:s,totalPrice:c,savings:d,appliedDiscount:l}}(el,b,eb.subscriptions?R:"none",{bulk:eb.bulkTiers}),ew=eb.bulkTiers?eP(b):null,ev=eb.bulkTiers?function(e){for(let t of[...eR].reverse())if(e<t.minQty)return{qtyNeeded:t.minQty-e,percent:t.percent,label:t.label};return null}(b):null,ej=eb.subscriptions&&"none"!==R&&h.sellingPlans?h.sellingPlans.find(e=>{let t=e.name.toLowerCase();return"weekly"===R?t.includes("week")&&!t.includes("bi")&&!t.includes("every 2"):"biweekly"===R?t.includes("bi-week")||t.includes("biweek")||t.includes("every 2 week"):"monthly"===R&&t.includes("month")})||h.sellingPlans[0]:null,eN=async()=>{if(eg){C("");try{await u(eg,b,{productId:h.id,productName:ef,category:h.category,line:eh?"cannabinoid":"botanical",price:ey.unitPrice,variantId:N||void 0},ej?.id||void 0),T(!0),setTimeout(()=>T(!1),2500)}catch{C("We couldn't add that to your cart. Please try again — or contact us if it keeps happening.")}}},eC=e=>{U(t=>new Set(t).add(e))};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(eT.default,{}),(0,n.jsx)(eS.default,{}),(0,n.jsxs)("main",{className:"relative z-10 pt-32 pb-36 md:pb-20 px-6 max-w-6xl mx-auto",children:[(0,n.jsxs)(o.motion.nav,{initial:{opacity:0}
1,animate:{opacity:1},className:"mb-8 flex items-center gap-2 rounded-full surface-panel px-4 py-2 text-base text-white/85",children:[(0,n.jsx)(eD.default,{href:"/",className:"hover:text-white transition-colors",children:"Home"}),(0,n.jsx)("span",{children:"/"}),eh?(0,n.jsx)(eD.default,{href:"/flower",className:"hover:text-white transition-colors",children:"Flower"}):(0,n.jsx)(eD.default,{href:"/shop",className:"hover:text-white transition-colors",children:"Shop"}),(0,n.jsx)("span",{children:"/"}),(0,n.jsx)("span",{className:"text-white/90 truncate max-w-[300px]",children:ef})]}),(0,n.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-10 md:gap-16",children:[(0,n.jsxs)(o.motion.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{duration:.6},className:"space-y-4",children:[(0,n.jsxs)("div",{className:"relative aspect-square overflow-hidden rounded-3xl surface-panel-strong",children:[(0,n.jsx)(l.AnimatePresence,{mode:"wait",children:(0,n.jsx)(o.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},className:"absolute inset-0",children:eu&&!z.has(I)?(0,n.jsx)(s.default,{src:eu,alt:`${ef} - Image ${I+1}`,fill:!0,className:"object-contain p-6",onError:()=>eC(I),sizes:"(max-width: 768px) 100vw, 50vw",priority:0===I}):(0,n.jsx)("div",{className:"absolute inset-0 flex items-center justify-center",children:(0,n.jsx)("div",{className:"w-32 h-32 rounded-2xl flex items-center justify-center bg-white/[0.04]",children:(0,n.jsx)("span",{className:"text-6xl",children:"🌿"})})})},I)}),ed.length>1&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("button",{onClick:()=>M(e=>(e-1+ed.length)%ed.length),className:"absolute left-3 top-1/2 -translate-y-1/2 w-10 h-10 rounded-full bg-black/40 backdrop-blur-sm flex items-center justify-center text-white/80 hover:text-white hover:bg-black/60 transition-all z-10",children:(0,n.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:(0,n.jsx)("polyline",{points:"15 18 9 12 15 6"})})}),(0,n.jsx)("button",{onClick:()=>M(e=>(e+1)%ed.length),className:"absolute right-3 top-1/2 -translate-y-1/2 w-10 h-10 rounded-full bg-black/40 backdrop-blur-sm flex items-center justify-center text-white/80 hover:text-white hover:bg-black/60 transition-all z-10",children:(0,n.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:(0,n.jsx)("polyline",{points:"9 18 15 12 9 6"})})}),(0,n.jsxs)("div",{className:"absolute bottom-3 left-1/2 -translate-x-1/2 px-3 py-1.5 rounded-full bg-black/40 backdrop-blur-sm text-white/80 text-xs font-semibold z-10",children:[I+1," / ",ed.length]})]})]}),ed.length>1&&(0,n.jsx)("div",{className:"flex gap-2 overflow-x-auto pb-1",children:ed.map((e,t)=>(0,n.jsx)("button",{onClick:()=>M(t),className:`w-20 h-20 rounded-xl overflow-hidden border-2 transition-all flex-shrink-0 ${I===t?"border-jgo/50 ring-1 ring-jgo/20":"border-white/15 hover:border-white/30"}`,children:z.has(t)?(0,n.jsx)("div",{className:"w-full h-full flex items-center justify-center bg-white/[0.03] text-xl",children:"🌿"}):(0,n.jsx)(s.default,{src:e,alt:"",width:80,height:80,className:"object-contain w-full h-full p-1",onError:()=>eC(t)})},t))})]}),(0,n.jsxs)(o.motion.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{duration:.6,delay:.1},className:"space-y-5 rounded-3xl surface-panel-strong p-6 md:p-7",children:[(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,n.jsx)("span",{className:"text-sm font-semibold text-jgo-light uppercase tracking-wider",children:h.category}),h.strength&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"text-white/40 text-sm",children:"/"}),(0,n.jsx)("span",{className:"text-sm text-white/82 tracking-wide",children:h.strength})]})]}),(0,n.jsx)("h1",{className:"text-2xl md:text-3xl font-bold text-white tracking-tight mb-3",children:ef}),(0,n.jsx)(eZ,{rating:h.rating,count:(0,eK.getDisplayReviewCount)(h.slug,h.reviewCount)})]}),h.variants&&h.variants.length>1&&h.options?.length?(0,n.jsx)(eW,{options:h.options,variants:h.variants,selectedVariantId:N,onSelect:k,appearance:ep?"segmented":"pills",renderValueMeta:ep?(e,t,i)=>"size"===e.toLowerCase()&&i?(0,eM.formatPerGram)(i.priceOverride??h.price,t):null:void 0}):h.variants&&h.variants.length>1&&(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"text-sm text-white/80 font-bold tracking-wider up
1percase mb-3",children:"Options"}),(0,n.jsx)("div",{className:"flex flex-wrap gap-2",children:h.variants.map(e=>(0,n.jsx)("button",{onClick:()=>k(e.id),className:`px-5 py-3 rounded-xl text-base font-medium transition-all duration-300 ${N===e.id?"gradient-jgo text-white glow-jgo":"bg-white/[0.07] border border-white/15 text-white/80 hover:text-white"}`,children:e.name},e.id))})]}),eb.subscriptions?(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"text-sm text-white/80 font-bold tracking-wider uppercase mb-3",children:"Subscribe & Save"}),(0,n.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-2",children:["none","weekly","biweekly","monthly"].map(e=>{let t=eO[e];return(0,n.jsxs)("button",{onClick:()=>P(e),className:`px-3 py-3 rounded-xl text-center transition-all duration-300 ${R===e?"gradient-jgo text-white glow-jgo":"bg-white/[0.04] border border-white/[0.08] text-white/60 hover:text-white hover:bg-white/[0.07]"}`,children:[(0,n.jsx)("span",{className:"block text-sm font-bold",children:t.label}),t.percent>0&&(0,n.jsxs)("span",{className:"block text-xs opacity-70 mt-0.5",children:["Save ",t.percent,"%"]})]},e)})}),(0,n.jsx)("p",{className:"text-[11px] text-white/40 mt-2 leading-relaxed",children:"All subscriptions require a minimum of 2 deliveries before they can be paused or cancelled."})]}):!eY.SUBSCRIPTIONS_ENABLED&&(h.sellingPlans?.length??0)>0?(0,n.jsxs)("div",{className:"rounded-xl border border-white/[0.08] bg-white/[0.04] px-4 py-3",children:[(0,n.jsx)("p",{className:"text-sm text-white/80 font-bold tracking-wider uppercase mb-1",children:"Subscribe & Save"}),(0,n.jsx)("p",{className:"text-xs text-white/50 leading-relaxed",children:eY.SUBSCRIPTIONS_UNAVAILABLE_NOTICE})]}):null,(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsxs)("div",{className:"flex items-baseline gap-3",children:[(0,n.jsxs)("span",{className:"text-4xl font-bold text-white",children:["$",ey.unitPrice.toFixed(2)]}),ey.savings>0&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("span",{className:"text-lg text-white/40 line-through",children:["$",el.toFixed(2)]}),(0,n.jsx)("span",{className:"text-sm font-bold text-jgo-light px-3 py-1 rounded-lg bg-jgo/15",children:ey.appliedDiscount})]})]}),ey.savings>0&&(0,n.jsxs)("p",{className:"text-sm text-jgo-light font-medium",children:["You save $",ey.savings.toFixed(2)," on this order"]})]}),ep&&(0,n.jsx)(eG,{product:h,selectedVariant:eo,unitPrice:ey.unitPrice,hasCoa:!!ec}),eb.bulkTiers&&(0,n.jsxs)("div",{children:[(0,n.jsxs)("button",{type:"button",onClick:()=>_(!E),"aria-expanded":E,className:"w-full flex items-center justify-between gap-3 rounded-xl border border-white/[0.08] bg-white/[0.03] px-4 py-3 text-left hover:bg-white/[0.06] transition-colors",children:[(0,n.jsxs)("span",{className:"text-sm font-semibold text-white/80",children:["Buying more? ",(0,n.jsxs)("span",{className:"text-jgo-light font-bold",children:["Save up to ",Math.max(...eR.map(e=>e.percent)),"%"]})," with bulk pricing"]}),(0,n.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",className:`flex-shrink-0 text-white/50 transition-transform ${E?"rotate-180":""}`,"aria-hidden":"true",children:(0,n.jsx)("polyline",{points:"6 9 12 15 18 9"})})]}),E&&(0,n.jsxs)("div",{className:"mt-2 rounded-xl border border-white/[0.08] bg-white/[0.03] p-3 space-y-1",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between text-[11px] text-white/30 font-bold uppercase tracking-wider px-3 pb-1 border-b border-white/[0.06]",children:[(0,n.jsx)("span",{children:"Quantity"}),(0,n.jsx)("span",{children:"Discount"}),(0,n.jsx)("span",{children:"Unit Price"})]}),eR.slice().reverse().map(e=>{let t=ew?.label===e.label,i=el*(1-e.percent/100);return(0,n.jsxs)("div",{onClick:()=>y(e.minQty),className:`flex items-center justify-between text-sm px-3 py-2 rounded-lg transition-colors cursor-pointer ${t?"bg-jgo/15 text-jgo-light font-semibold":"text-white/50 hover:bg-white/[0.03]"}`,children:[(0,n.jsxs)("span",{children:[e.minQty,"+ units"]}),(0,n.jsxs)("span",{className:"font-semibold",children:[e.percent,"% off",e.minQty>=25?" (Wholesale)":""]}),(0,n.jsxs)("span",{children:["$",i.toFixed(2)]})]},e.minQty)})]}),ev&&b<25&&(0,n.jsxs)("p",{className:"text-xs text-white/40 mt-2",children:["Add ",ev.qtyNeeded," more for ",ev.percent,"% off (",ev.label,")"]})]}),eY.SITE_PAUSED?(0,n.jsxs)("div",{className:"rounded-2xl border border-cosmic-red/40 bg-cosmic-red/10 px-5 py-5 space-y-2",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,n.jsxs)("span",{className:"relative flex h-2.5 w-2.5",children:[(0,n.jsx)("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-cosmic-red opacity-75"}),(0,n.jsx)("span",{className:"relative inline-flex rounded-full h-2.5 w-2.5 bg-cosmic-red"})]}),(0,n.jsx)("p",{className:"text-base font-bold text-white",children:"Ordering is temporarily paused"})]}),(0,n.jsx)("p",{className:"text-sm text-white/80 leading-relaxed",children:"We're not taking orders right now while we resolve an issue with a fulfillment partner. We won't ship anything that doesn't meet our standards. Thank y
1ou for your patience — we'll be back very soon."}),(0,n.jsx)(eD.default,{href:"/contact",className:"inline-block text-sm font-bold text-jgo-light underline underline-offset-2 hover:text-jgo transition-colors",children:"Questions? Contact our team"})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{ref:D,className:"flex items-center gap-3 pt-1",children:[(0,n.jsxs)("div",{className:"flex items-center rounded-xl overflow-hidden border border-white/25 bg-white/[0.07]",children:[(0,n.jsx)("button",{type:"button","aria-label":"Decrease quantity",onClick:()=>j(b-1),className:"px-5 py-3.5 text-white/90 hover:text-white transition-colors text-xl font-medium",children:"−"}),(0,n.jsx)("input",{type:"text",inputMode:"numeric",pattern:"[0-9]*","aria-label":"Quantity",value:w,onChange:e=>{let t=e.target.value;if(""===t)return void v("");if(!/^\d+$/.test(t))return;let i=parseInt(t,10);v(t),i>=1&&y(Math.min(9999,i))},onBlur:()=>{let e=parseInt(w,10);if(!Number.isFinite(e)||e<1)y(1),v("1");else{let t=Math.min(9999,e);y(t),v(String(t))}},onFocus:e=>e.currentTarget.select(),onKeyDown:e=>{"Enter"===e.key&&e.currentTarget.blur()},className:"w-20 text-center py-3.5 text-white text-lg font-bold bg-transparent outline-none"}),(0,n.jsx)("button",{type:"button","aria-label":"Increase quantity",onClick:()=>j(b+1),className:"px-5 py-3.5 text-white/90 hover:text-white transition-colors text-xl font-medium",children:"+"})]}),(0,n.jsx)(o.motion.button,{whileHover:{scale:1.02},whileTap:{scale:.97},onClick:eN,className:`flex-1 py-4 rounded-xl font-bold text-base transition-all duration-500 ${S?"gradient-jgo text-white glow-jgo-strong":"gradient-jgo text-white glow-jgo hover:opacity-90"}`,children:S?(0,n.jsxs)(o.motion.span,{initial:{scale:.8},animate:{scale:1},className:"flex items-center justify-center gap-2",children:[(0,n.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,n.jsx)("polyline",{points:"20 6 9 17 4 12"})}),"Added to Cart!"]}):`Add to Cart — $${ey.totalPrice.toFixed(2)}`})]}),(0,n.jsx)("button",{onClick:async()=>{if(eg){C("");try{let e=await fetch("/api/cart",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"create",lines:[{merchandiseId:eg,quantity:b,...ej?.id?{sellingPlanId:ej.id}:{}}]})}
1),t=await e.json();e.ok&&t.cart?.checkoutUrl?window.location.href=t.cart.checkoutUrl:C("We couldn't start checkout. Please try again — or contact us if it keeps happening.")}catch{C("We couldn't start checkout. Please try again — or contact us if it keeps happening.")}}},className:"w-full py-3.5 rounded-xl font-bold text-base bg-white/[0.08] border border-white/15 text-white hover:bg-white/[0.12] transition-all flex items-center justify-center gap-2",children:"Buy Now — Skip to Checkout"}),A&&(0,n.jsx)("p",{className:"text-sm text-cosmic-red font-semibold",role:"alert",children:A})]}),!eY.SITE_PAUSED&&(0,n.jsx)(e_,{currentProduct:h,allProducts:m}),eb.bulkTiers&&b>=25&&(0,n.jsxs)("div",{className:"rounded-xl px-4 py-3 border border-jgo/20 bg-jgo/10 flex items-center gap-3",children:[(0,n.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"#3FDA5B",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,n.jsx)("path",{d:"M20.59 13.41l-7.17 7.17a2 2 0 01-2.83 0L2 12V2h10l8.59 8.59a2 2 0 010 2.82z"}),(0,n.jsx)("line",{x1:"7",y1:"7",x2:"7.01",y2:"7"})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"text-sm font-bold text-jgo-light",children:"Wholesale Pricing Active"}),(0,n.jsx)("p",{className:"text-xs text-white/40",children:"50% off automatically applied for 25+ units"})]})]}),h.effect.length>0&&(0,n.jsxs)("div",{className:"flex flex-wrap gap-2 pt-1",children:[h.effect.map(e=>(0,n.jsx)(eD.default,{href:eh?"/flower":`/shop?effect=${e.toLowerCase()}`,className:"px-4 py-2.5 rounded-lg text-sm font-semibold text-white/80 bg-white/[0.07] border border-white/15 hover:border-white/30 hover:text-white transition-all",children:e},e)),h.plantType&&(0,n.jsx)("span",{className:"px-4 py-2.5 rounded-lg text-sm font-semibold text-white/80 bg-white/[0.07] border border-white/15",children:h.plantType})]})]})]}),eh&&(0,n.jsx)(o.motion.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{duration:.6,delay:.1},className:"mt-8",children:(0,n.jsx)(eH,{})}),(0,n.jsx)(o.motion.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{duration:.6,delay:.15},className:"grid grid-cols-2 sm:grid-cols-4 gap-3 mt-8",children:[{label:"Lab Tested",desc:"Third-party verified",icon:(0,n.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,n.jsx)("path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"})})},{label:"cGMP Certified",desc:"USA manufacturing",icon:(0,n.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,n.jsx)("path",{d:"M22 11.08V12a10 10 0 11-5.93-9.14"}),(0,n.jsx)("polyline",{points:"22 4 12 14.01 9 11.01"})]})},{label:"Free Ship $100+",desc:"Standard shipping",icon:(0,n.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,n.jsx)("rect",{x:"1",y:"3",width:"15",height:"13"}),(0,n.jsx)("polygon",{points:"16 8 20 8 23 11 23 16 16 16 16 8"}),(0,n.jsx)("circle",{cx:"5.5",cy:"18.5",r:"2.5"}),(0,n.jsx)("circle",{cx:"18.5",cy:"18.5",r:"2.5"})]})},{label:"1 Tree Planted",desc:"Per order placed",icon:(0,n.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,n.jsx)("path",{d:"M12 22V8"}),(0,n.jsx)("path",{d:"M5 12H2a10 10 0 0020 0h-3"}),(0,n.jsx)("path",{d:"M12 2a5 5 0 00-5 5h10a5 5 0 00-5-5z"})]})}].map(e=>(0,n.jsxs)("div",{className:"rounded-xl bg-white/[0.04] border border-white/[0.08] p-4 text-center",children:[(0,n.jsx)("div",{className:"text-jgo-light flex justify-center mb-2",children:e.icon}),(0,n.jsx)("p",{className:"text-white font-bold text-sm",children:e.label}),(0,n.jsx)("p",{className:"text-white/50 text-xs mt-0.5",children:e.desc})]},e.label))}),em.length>=2?(0,n.jsxs)(o.motion.section,{initial:{opacity:0,y:20}
1,animate:{opacity:1,y:0},transition:{duration:.6,delay:.2},className:"mt-12 max-w-3xl rounded-3xl surface-panel p-6 md:p-7",children:[(0,n.jsx)(eV,{sections:em}),(0,n.jsx)("p",{className:"mt-6 text-white/45 text-xs",children:"This product is not intended to diagnose, treat, cure, or prevent any disease. Consult a healthcare provider before use."})]}):(i=h.ingredients,(0,n.jsxs)(o.motion.section,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.2},className:"mt-12 max-w-3xl rounded-3xl surface-panel p-6 md:p-7",children:[(0,n.jsx)("div",{className:"flex border-b border-white/[0.08] mb-6 overflow-x-auto",children:[{id:"description",label:"Description"},...i?[{id:"ingredients",label:"Ingredients"}]:[]].map(e=>(0,n.jsxs)("button",{onClick:()=>F(e.id),className:`px-5 py-3 text-sm font-bold tracking-wide transition-all relative whitespace-nowrap ${B===e.id?"text-jgo-light":"text-white/40 hover:text-white/70"}`,children:[e.label,B===e.id&&(0,n.jsx)("div",{className:"absolute bottom-0 left-0 right-0 h-0.5 gradient-jgo rounded-full"})]},e.id))}),(0,n.jsxs)(l.AnimatePresence,{mode:"wait",children:["description"===B&&(0,n.jsx)(o.motion.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},exit:{opacity:0,y:-8},transition:{duration:.2},className:"space-y-5",children:et.description?(0,n.jsx)("div",{className:"product-description text-white/85 text-base leading-relaxed",dangerouslySetInnerHTML:{__html:ek.sanitize(et.description)}}):(0,n.jsx)("p",{className:"text-white/85 text-base leading-relaxed",children:h.description})},"description"),"ingredients"===B&&i&&(0,n.jsx)(o.motion.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},exit:{opacity:0,y:-8},transition:{duration:.2},children:(0,n.jsxs)("div",{className:"space-y-4",children:[(0,n.jsx)("h3",{className:"text-lg font-bold text-white",children:"Ingredients"}),(0,n.jsx)("div",{className:"rounded-xl bg-white/[0.04] border border-white/[0.08] p-5",children:(0,n.jsx)("p",{className:"text-white/85 text-base leading-relaxed",children:i})}),(0,n.jsx)("div",{className:"flex flex-wrap gap-3 pt-3",children:["Plant-Based","Lab Tested","Made in USA","cGMP Certified"].map(e=>(0,n.jsx)("span",{className:"px-3 py-1.5 rounded-lg bg-white/[0.05] border border-white/[0.08] text-white/60 text-sm font-medium",children:e},e))})]})},"ingredients")]}),(0,n.jsx)("p",{className:"mt-6 text-white/45 text-xs",children:"This product is not intended to diagnose, treat, cure, or prevent any disease. Consult a healthcare provider before use."})]})),ec&&(0,n.jsx)(eQ,{image:ec,productName:ef,summary:ex||void 0}),(0,n.jsxs)(o.motion.section,{id:"customer-reviews",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.25},className:"mt-12 max-w-3xl rounded-3xl surface-panel p-6 md:p-7 scroll-mt-32",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("h2",{className:"text-xl font-bold text-white",children:"Customer Reviews"}),W.totalReviews>0&&(0,n.jsxs)("div",{className:"flex items-center gap-2 mt-1",children:[(0,n.jsx)("div",{className:"flex",children:[1,2,3,4,5].map(e=>(0,n.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:e<=Math.round(W.averageScore)?"#E4C06A":"none",stroke:e<=Math.round(W.averageScore)?"#E4C06A":"#4A5168",strokeWidth:"2",children:(0,n.jsx)("polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"})},e))}),(0,n.jsxs)("span",{className:"text-white/60 text-sm",children:[W.averageScore.toFixed(1)," (",W.totalReviews," review",1!==W.totalReviews?"s":"",")"]})]})]}),(0,n.jsx)("button",{onClick:()=>Y(!H),className:"px-4 py-2 rounded-lg gradient-jgo text-white text-xs font-bold glow-jgo hover:brightness-110 transition-all",children:"Write a Review"})]}),W.totalReviews>0&&(0,n.jsx)("div",{className:"mb-6 space-y-1.5",children:[5,4,3,2,1].map(e=>{let t=W.starDistribution[String(e)]||0,i=W.totalReviews>0?t/W.totalReviews*100:0;return(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsxs)("span",{className:"text-white/50 text-xs w-8",children:[e," star"]}),(0,n.jsx)("div",{className:"flex-1 h-2 rounded-full bg-white/[0.08] overflow-hidden",children:(0,n.jsx)("div",{className:"h-full rounded-full bg-cosmic-gold",style:{width:`${i}%`}})}),(0,n.jsx)("span",{className:"text-white/40 text-xs w-6 text-right",children:t})]},e)})}),en&&(0,n.jsx)("div",{className:"rounded-xl bg-cosmic-red/10 border border-cosmic-red/20 p-4 mb-4 text-cosmic-red text-sm font-bold",children:en}),Z&&(0,n.jsx)("div",{className:"rounded-xl bg-jgo/10 border border-jgo/20 p-4 mb-4 text-jgo-light text-sm font-bold",children:"Thank y
1ou! Your review has been submitted and will appear after moderation."}),(0,n.jsx)(l.AnimatePresence,{children:H&&(0,n.jsxs)(o.motion.form,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},onSubmit:ea,className:"mb-6 rounded-xl bg-white/[0.04] border border-white/[0.08] p-4 space-y-3",children:[(0,n.jsx)("div",{className:"flex items-center gap-1 mb-2",children:[1,2,3,4,5].map(e=>(0,n.jsx)("button",{type:"button",onClick:()=>q(t=>({...t,score:e})),children:(0,n.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:e<=G.score?"#E4C06A":"none",stroke:e<=G.score?"#E4C06A":"#4A5168",strokeWidth:"2",className:"cursor-pointer hover:scale-110 transition-transform",children:(0,n.jsx)("polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"})})},e))}),(0,n.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,n.jsx)("input",{type:"text",placeholder:"Your name",required:!0,value:G.name,onChange:e=>q(t=>({...t,name:e.target.value})),className:"bg-white/[0.06] border border-white/[0.1] rounded-lg px-3 py-2.5 text-white text-sm placeholder:text-white/30 focus:border-jgo/40 focus:outline-none"}),(0,n.jsx)("input",{type:"email",placeholder:"Your email",required:!0,value:G.email,onChange:e=>q(t=>({...t,email:e.target.value})),className:"bg-white/[0.06] border border-white/[0.1] rounded-lg px-3 py-2.5 text-white text-sm placeholder:text-white/30 focus:border-jgo/40 focus:outline-none"})]}),(0,n.jsx)("input",{type:"text",placeholder:"Review title",required:!0,value:G.title,onChange:e=>q(t=>({...t,title:e.target.value})),className:"w-full bg-white/[0.06] border border-white/[0.1] rounded-lg px-3 py-2.5 text-white text-sm placeholder:text-white/30 focus:border-jgo/40 focus:outline-none"}),(0,n.jsx)("textarea",{placeholder:"Your review",required:!0,rows:4,value:G.content,onChange:e=>q(t=>({...t,content:e.target.value})),className:"w-full bg-white/[0.06] border border-white/[0.1] rounded-lg px-3 py-2.5 text-white text-sm placeholder:text-white/30 focus:border-jgo/40 focus:outline-none resize-none"}),(0,n.jsxs)("div",{children:[(0,n.jsxs)("label",{className:"flex items-center gap-2 px-3 py-2.5 rounded-lg bg-white/[0.06] border border-white/[0.1] cursor-pointer hover:bg-white/[0.1] transition-colors",children:[(0,n.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:"text-white/40",children:[(0,n.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),(0,n.jsx)("circle",{cx:"8.5",cy:"8.5",r:"1.5"}),(0,n.jsx)("path",{d:"M21 15l-5-5L5 21"})]}),(0,n.jsx)("span",{className:"text-white/40 text-sm",children:V.length>0?`${V.length} file${V.length>1?"s":""} selected`:"Add photos or video (optional)"}),(0,n.jsx)("input",{type:"file",accept:"image/*,video/*",multiple:!0,className:"hidden",onChange:e=>{Q(Array.from(e.target.files||[]).slice(0,5))}})]}),V.length>0&&(0,n.jsx)("div",{className:"flex gap-2 mt-2 flex-wrap",children:V.map((e,t)=>(0,n.jsxs)("div",{className:"relative group",children:[e.type.startsWith("image/")?(0,n.jsx)("img",{src:URL.createObjectURL(e),alt:"",className:"w-16 h-16 rounded-lg object-cover border border-white/[0.1]"}):(0,n.jsx)("div",{className:"w-16 h-16 rounded-lg bg-white/[0.06] border border-white/[0.1] flex items-center justify-center",children:(0,n.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",className:"text-white/40",children:(0,n.jsx)("polygon",{points:"5 3 19 12 5 21 5 3"})})}),(0,n.jsx)("button",{type:"button",onClick:()=>Q(e=>e.filter((e,i)=>i!==t)),className:"absolute -top-1.5 -right-1.5 w-5 h-5 rounded-full bg-cosmic-red text-white text-xs flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity",children:"×"})]},t))})]}),(0,n.jsx)("button",{type:"submit",disabled:K,className:"px-6 py-2.5 rounded-lg gradient-jgo text-white text-sm font-bold glow-jgo hover:brightness-110 transition-all disabled:opacity-50",children:K?"Submitting...":"Submit Review"})]})}),W.reviews.length>0?(0,n.jsxs)("div",{className:"space-y-4",children:[W.reviews.map(e=>(0,n.jsxs)("div",{className:"border-b border-white/[0.06] pb-4 last:border-0",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("div",{className:"flex",children:[1,2,3,4,5].map(t=>(0,n.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:t<=e.score?"#E4C06A"
1:"none",stroke:t<=e.score?"#E4C06A":"#4A5168",strokeWidth:"2",children:(0,n.jsx)("polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"})},t))}),(0,n.jsx)("span",{className:"text-white font-bold text-sm",children:e.user.display_name}),e.verified_buyer&&(0,n.jsx)("span",{className:"text-[10px] font-bold text-jgo-light bg-jgo/10 border border-jgo/20 px-1.5 py-0.5 rounded",children:"Verified"})]}),(0,n.jsx)("span",{className:"text-white/30 text-xs",children:new Date(e.created_at).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})})]}),e.title&&(0,n.jsx)("p",{className:"text-white font-semibold text-sm mb-1",children:e.title}),(0,n.jsx)("p",{className:"text-white/70 text-sm",children:e.content})]},e.id)),W.reviews.length<W.totalReviews&&(0,n.jsx)("button",{onClick:()=>ei(W.page+1),disabled:W.loading,className:"w-full py-3 rounded-lg bg-white/[0.06] border border-white/[0.1] text-white/60 text-sm font-bold hover:bg-white/[0.1] transition-all",children:W.loading?"Loading...":"Load More Reviews"})]}):W.loading?(0,n.jsx)("div",{className:"flex justify-center py-8",children:(0,n.jsx)("div",{className:"w-6 h-6 border-2 border-jgo/30 border-t-jgo rounded-full animate-spin"})}):(0,n.jsx)("p",{className:"text-white/40 text-sm text-center py-4",children:"No reviews yet. Be the first to review this product!"})]}),ee.length>0&&(0,n.jsxs)(o.motion.section,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.3},className:"mt-20",children:[(0,n.jsx)("h2",{className:"text-2xl font-bold text-white tracking-tight mb-6",children:"You might also like"}),(0,n.jsx)("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4 sm:gap-5",children:ee.map((e,t)=>(0,n.jsx)(eA.default,{product:e,index:t},e.id))})]})]}),!eY.SITE_PAUSED&&(0,n.jsx)(l.AnimatePresence,{children:L&&(0,n.jsx)(o.motion.div,{initial:{y:100,opacity:0},animate:{y:0,opacity:1},exit:{y:100,opacity:0},transition:{type:"spring",damping:30,stiffness:300},className:"fixed inset-x-0 bottom-0 z-[60] md:hidden",children:(0,n.jsxs)("div",{className:"mx-3 mb-3 rounded-2xl border border-white/10 bg-black/85 backdrop-blur-md p-2.5 flex items-center gap-3",style:{boxShadow:"0 10px 30px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06)"},children:[(0,n.jsx)("div",{className:"w-12 h-12 rounded-xl bg-white/5 flex-shrink-0 overflow-hidden flex items-center justify-center",children:ed[0]&&!z.has(0)?(0,n.jsx)(s.default,{src:ed[0],alt:"",width:48,height:48,className:"object-contain w-full h-full p-1"}):(0,n.jsx)("span",{className:"text-xl",children:"🌿"})}),(0,n.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,n.jsxs)("p",{className:"text-sm font-bold text-white truncate",children:[ef,eo?.name&&"Default Title"!==eo.name?` \xb7 ${eo.name}`:""]}),(0,n.jsxs)("p",{className:"text-sm font-semibold text-jgo-light",children:["$",ey.unitPrice.toFixed(2),b>1?` \xd7 ${b}`:""]})]}),(0,n.jsx)("button",{type:"button",onClick:eN,className:`flex-shrink-0 px-5 py-3 rounded-xl text-sm font-bold text-white transition-all duration-300 ${S?"gradient-jgo glow-jgo-strong":"gradient-jgo glow-jgo active:brightness-110"}`,children:S?"Added!":`Add \xb7 $${ey.totalPrice.toFixed(2)}`})]})})})]})}],73923)}]);

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.