1import{B as e}from"./BaseElement.wji90fuE.min.js";import{c as t}from"./quickshop.CfUuCQCc.min.js";import{W as i}from"./WithModalDialog.CpI_Ubm9.min.js";import{e as o,g as s,t as d}from"./vendor-lit.2u3dzq2T.min.js";import"./modal-context.CE7TbCWB.min.js";var r=Object.defineProperty,a=Object.getOwnPropertyDescriptor,n=(e,t,i,o)=>{for(var s,d=o>1?void 0:o?a(t,i):t,n=e.length-1;n>=0;n--)(s=e[n])&&(d=(o?s(t,i,d):s(d))||d);return o&&d&&r(t,i,d),d};let c=class extends(i(e)){handleQuickShopClose(){this.quickShop&&this.closeModal()}connectedCallback(){super.connectedCallback(),window.addEventListener("cart:items-added",this.handleQuickShopClose.bind(this))}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("cart:items-added",this.handleQuickShopClose.bind(this))}updated(e){super.updated(e),this.quickShop&&(this.$dialog.url=this.quickShop,this.openModal())}firstUpdated(e){if(super.firstUpdated(e),!this.quickShop)return this.closeModal()}};n([o("modal-dialog")],c.prototype,"$dialog",2),n([s({context:t,subscribe:!0})],c.prototype,"quickShop",2),c=n([d("quick-shop")],c);export{c as QuickShop};
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.