ui.shipaid.com 0.3.133 → 0.3.134

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.
package/dist/widget.es.js CHANGED
@@ -4094,13 +4094,14 @@ const _ShipAidWidget = class _ShipAidWidget extends s$1 {
4094
4094
  }
4095
4095
  /** Templates */
4096
4096
  learnMorePopupTemplate() {
4097
- var _a;
4097
+ var _a, _b;
4098
4098
  const carousel = document.querySelector("shipaid-learn-more-carousel");
4099
+ const isGreenEnabled = Boolean((_b = (_a = this._store) == null ? void 0 : _a.greenProtection) == null ? void 0 : _b.enabled);
4099
4100
  if (carousel) return;
4100
4101
  return x`
4101
4102
  <shipaid-learn-more-carousel
4102
4103
  carousel-state=${this._popup === "learn-more" ? "open" : "close"}
4103
- carousel-type=${((_a = this._store) == null ? void 0 : _a.greenProtection.enabled) || this.previewGreenShipAid ? "green-protection" : "standard-protection"}
4104
+ green-protection=${isGreenEnabled}
4104
4105
  >
4105
4106
  </shipaid-learn-more-carousel>
4106
4107
  `;