1import{a as u,B as S}from"./BaseElement.DUV4NqCX.min.js";import{W as a}from"./WithShopifyCart.VS7x7X6E.min.js";import{x as h}from"./lit-element.mvcqtviJ.min.js";import{t as m}from"./custom-element.BhZVzxrc.min.js";import{n as f}from"./property.C7OeqhA5.min.js";import"./quantity-input.7_FqQSQ1.min.js";import{f as C}from"./firstFocusableElement.wwkZq-sM.min.js";import{H as y}from"./HTMLUpdateUtility.NzbekZNU.min.js";import{r as _}from"./state.Cmay8SOG.min.js";import{o as T}from"./unsafe-html.BnzeGhOW.min.js";import"./WithApiClient.DyDsqC0I.min.js";import"./index.CKJCYK2x.min.js";import"./cart-sections.WoVMkNAv.min.js";import"./create-context.89xeped_.min.js";import"./consume.CHsRYPSi.min.js";import"./context-request-event.CcEA9XIP.min.js";import"./floating-ui.dom.CIB-_hsR.min.js";import"./debounce.D6ZMjh7U.min.js";import"./LiveRegionUtility.44lKd9Yx.min.js";import"./aria-live-region-context.BZEtRCSs.min.js";import"./directive.C_Rw-dL6.min.js";var v=Object.defineProperty,H=Object.getOwnPropertyDescriptor,d=(s,t,i,r)=>{for(var e=r>1?void 0:r?H(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=(r?n(t,i,e):n(e))||e);return r&&e&&v(t,i,e),e};let l=class extends a(u){_handleClick(s){s.preventDefault(),this.key&&this.removeItemFromCart([this.key])}render(){return h` <slot @click=${this._handleClick}></slot> `}};d([f({type:String})],l.prototype,"key",2);l=d([m("cart-remove-toggle")],l);var I=Object.defineProperty,O=Object.getOwnPropertyDescriptor,p=(s,t,i,r)=>{for(var e=r>1?void 0:r?O(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=(r?n(t,i,e):n(e))||e);return r&&e&&I(t,i,e),e};let c=class extends a(S){constructor(){super(...arguments),this.$htmlUpdateUtility=new y(this),this.sectionHTML=null}connectedCallback(){super.connectedCallback(),this.sectionHTML===null&&(this.sectionHTML=this.innerHTML,this.innerHTML=""),this.$htmlUpdateUtility.addPostProcessCallback(()=>{var s,t;(t=(s=window==null?void 0:window.Shopify)==null?void 0:s.PaymentButton)==null||t.init(),this.lastFocusedElementSelectorId&&setTimeout(()=>{var r;const i=document.querySelector(`#${this.lastFocusedElementSelectorId}`);i?i==null||i.focus():(r=C(this))==null||r.focus(),this.lastFocusedElementSelectorId=null},50)})}updated(s){if(s.has("sectionHTML")&&this.$htmlUpdateUtility.reRunScripts(this),this.cartSections[this.sectionId]&&JSON.stringify(this.cartSections[this.sectionId])!==c.SECTIONS_CACHE[this.sectionId]){c.SECTIONS_CACHE[this.sectionId]=JSON.stringify(this.cartSections[this.sectionId]);const t=this.$htmlUpdateUtility.parseSectionStringForSelector(this.cartSections[this.sectionId],`[section-id="${this.sectionId}"]`);t&&this.$htmlUpdateUtility.wrapUpdateProcess(this,t,i=>{this.sectionHTML=i.innerHTML})}}render(){return h`${T(this.sectionHTML)}`}};c.SECTIONS_CACHE={};p([f({type:String,attribute:"section-id"})],c.prototype,"sectionId",2);p([_()],c.prototype,"sectionHTML",2);c=p([m("cart-sections")],c);
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.