@vio-live/web-sdk 0.10.0 → 0.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { Vio, __decorateClass, primaryImageUrl, displayPrice, getGlobalCurrency, formatPrice } from './chunk-PX27CQGX.js';
1
+ import { Vio, __decorateClass, primaryImageUrl, displayPrice, getGlobalCurrency, formatPrice } from './chunk-TJ43TE7H.js';
2
2
  import { LitElement, css, html } from 'lit';
3
3
  import { property, state, query } from 'lit/decorators.js';
4
4
 
@@ -2458,10 +2458,13 @@ var VioCart = class extends LitElement {
2458
2458
  this.open = false;
2459
2459
  }
2460
2460
  show() {
2461
+ const wasClosed = !this.open;
2461
2462
  this.open = true;
2462
- this.dispatchEvent(
2463
- new CustomEvent("vio:open-cart", { bubbles: true, composed: true })
2464
- );
2463
+ if (wasClosed) {
2464
+ this.dispatchEvent(
2465
+ new CustomEvent("vio:open-cart", { bubbles: true, composed: true })
2466
+ );
2467
+ }
2465
2468
  void this.loadAvailablePaymentMethods();
2466
2469
  }
2467
2470
  /** Which payment buttons to render — backend-configured per sponsor.
@@ -4872,5 +4875,5 @@ function registerVioElements() {
4872
4875
  }
4873
4876
 
4874
4877
  export { VioCart, VioCheckout, VioProduct, VioProductCarousel, VioProductDetail, VioTokens, applyVioTheme, registerVioElements };
4875
- //# sourceMappingURL=chunk-WIQ53CCM.js.map
4876
- //# sourceMappingURL=chunk-WIQ53CCM.js.map
4878
+ //# sourceMappingURL=chunk-7TGCXO5J.js.map
4879
+ //# sourceMappingURL=chunk-7TGCXO5J.js.map