ui.shipaid.com 0.3.170 → 0.3.172

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
@@ -5003,7 +5003,7 @@ const _ShipAidWidget = class _ShipAidWidget extends s$1 {
5003
5003
  if (this.useShipAidCheckout && this.dataSelector) {
5004
5004
  return this.checkoutButtonTemplate();
5005
5005
  }
5006
- const { useToggle, leftCheckbox } = ((_b = (_a = this._store) == null ? void 0 : _a.widgetConfigurations) == null ? void 0 : _b.widget) || { useToggle: false, leftCheckbox: false };
5006
+ const { useToggle, leftCheckbox, activeLogo, inactiveLogo, toggleStyles, priceStyles } = ((_b = (_a = this._store) == null ? void 0 : _a.widgetConfigurations) == null ? void 0 : _b.widget) || { useToggle: false, leftCheckbox: false, activeLogo: null, inactiveLogo: null, toggleStyles: null, priceStyles: null };
5007
5007
  const isGreenProtectionEnabled = Boolean(
5008
5008
  (_d = (_c = this._store) == null ? void 0 : _c.greenProtection) == null ? void 0 : _d.enabled
5009
5009
  );
@@ -5036,11 +5036,17 @@ const _ShipAidWidget = class _ShipAidWidget extends s$1 {
5036
5036
  ${n(
5037
5037
  this._hasProtectionInCart,
5038
5038
  () => impactActive ? x`<img
5039
- src="${ShipAidBlackImpactIcon}"
5039
+ src="${activeLogo || ShipAidBlackImpactIcon}"
5040
+ style="width: 50px;"
5041
+ />` : activeLogo ? x`<img
5042
+ src="${activeLogo}"
5040
5043
  style="width: 50px;"
5041
5044
  />` : ShipAidLogo,
5042
5045
  () => impactActive ? x`<img
5043
- src="${ShipAidImpactIcon}"
5046
+ src="${inactiveLogo || ShipAidImpactIcon}"
5047
+ style="width: 50px;"
5048
+ />` : inactiveLogo ? x`<img
5049
+ src="${activeLogo}"
5044
5050
  style="width: 50px;"
5045
5051
  />` : CheckmarkIcon
5046
5052
  )}
@@ -5072,7 +5078,7 @@ const _ShipAidWidget = class _ShipAidWidget extends s$1 {
5072
5078
  </div>
5073
5079
  </div>
5074
5080
  <div class="prompt-product-actions">
5075
- <p class="prompt-product-actions-price">
5081
+ <p class="prompt-product-actions-price" style="${priceStyles || ""}">
5076
5082
  ${((_g = this._protectionVariant) == null ? void 0 : _g.price) && this._currencyFormat(this._protectionVariant.price)}
5077
5083
  </p>
5078
5084
  ${n(
@@ -5080,6 +5086,7 @@ const _ShipAidWidget = class _ShipAidWidget extends s$1 {
5080
5086
  () => x`
5081
5087
  <label
5082
5088
  class="shipaid-${useToggle ? "toggle" : "checkbox"} ${isGreenProtectionEnabled ? "green" : ""}"
5089
+ style="${toggleStyles || ""}"
5083
5090
  >
5084
5091
  ${this._hasProtectionInCart || !this._hasFinishedSetup ? x`<input
5085
5092
  type="checkbox"