1import{B as t}from"./BaseElement.DAzHg0T6.min.js";import{n as e,t as r}from"./vendor-lit.Cg17OMaX.min.js";var n,i,o,s,a,c,d,l,h,u=Object.defineProperty,p=Object.getOwnPropertyDescriptor,v=t=>{throw TypeError(t)},f=(t,e,r,n)=>{for(var i,o=n>1?void 0:n?p(e,r):e,s=t.length-1;s>=0;s--)(i=t[s])&&(o=(n?i(e,r,o):i(o))||o);return n&&o&&u(e,r,o),o},m=(t,e,r)=>e.has(t)||v("Cannot "+r),b=(t,e,r)=>(m(t,e,"read from private field"),r?r.call(t):e.get(t)),w=(t,e,r)=>e.has(t)?v("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),y=(t,e,r)=>(m(t,e,"access private method"),r);let E=class extends t{constructor(){super(...arguments),w(this,c),this.handle="",this.variantId="",this.sectionId="product-card",this.abortController=null,w(this,n,t=>{if(!(t.target instanceof Element))return;const e=t.target.closest("[data-product-view-flyout-open]");if(!e||!this.contains(e))return;const r=e.getAttribute("data-product-view-flyout-open");r&&(t.preventDefault(),document.dispatchEvent(new CustomEvent("flyout-drawer:open",{bubbles:!0,composed:!0,detail:{drawer:"flyout-drawer",id:r}})))}),w(this,i,(t,e)=>{if(!(t.target instanceof Element))return;const r=t.target.closest("[data-product-view-flyout-open]");if(!r||!this.contains(r))return;const n=r.getAttribute("data-product-view-flyout-open");n&&document.dispatchEvent(new CustomEvent("flyout-drawer:prefetch",{bubbles:!0,composed:!0,detail:{id:n,reason:e}}))}),w(this,o,t=>{b(this,i).call(this,t,"hover")}),w(this,s,t=>{b(this,i).call(this,t,"commit")}),w(this,a,()=>{y(this,c,d).call(this)})}connectedCallback(){super.connectedCallback(),document.addEventListener("cart:updated",b(this,a)),this.addEventListener("click",b(this,n)),this.addEventListener("pointerover",b(this,o)),this.addEventListener("focusin",b(this,o)),this.addEventListener("pointerdown",b(this,s))}disconnectedCallback(){var t;super.disconnectedCallback(),document.removeEventListener("cart:updated",b(this,a)),this.removeEventListener("click",b(this,n)),this.removeEventListener("pointerover",b(this,o)),this.removeEventListener("focusin",b(this,o)),this.removeEventListener("pointerdown",b(this,s)),null==(t=this.abortController)||t.abort()}};n=new WeakMap,i=new WeakMap,o=new WeakMap,s=new WeakMap,a=new WeakMap,c=new WeakSet,d=async function(){var t;if("false"===this.getAttribute("data-show-price"))return;const e=this.handle||y(this,c,h).call(this);if(e){null==(t=this.abortController)||t.abort(),this.abortController=new AbortController;try{const t=new URLSearchParams({section_id:this.sectionId,_cache:Date.now().toString()});this.variantId&&t.set("variant",this.variantId);const r=await fetch(`${window.Shopify.routes.root}products/${e}?${t}`,{signal:this.abortController.signal});if(!r.ok)return;const n=await r.text(),i=(new DOMParser).parseFromString(n,"text/html");y(this,c,l).call(this,i,"[sub-section-id='product-badges']"),y(this,c,l).call(this,i,"[sub-section-id='price']")||y(this,c,l).call(this,i,".group\\/price")}catch(r){if(r instanceof DOMException&&"AbortError"===r.name)return;console.error("Failed to refresh promotional content:",r)}}},l=function(t,e){const r=this.querySelector(e),n=t.querySelector(e);return!(!r||!n||(r.replaceWith(n.cloneNode(!0)),0))},h=function(){const t=this.querySelector("[data-product-url]");if(null==t?void 0:t.href){const e=t.href.match(/\/products\/([^/?#]+)/);if(e)return e[1]}return null},f([e({type:String,attribute:"handle"})],E.prototype,"handle",2),f([e({type:String,attribute:"variant-id"})],E.prototype,"variantId",2),f([e({type:String,attribute:"section-id"})],E.prototype,"sectionId",2),E=f([r("product-card-wrapper")],E);
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.