ui.shipaid.com 0.3.170 → 0.3.171

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 } = ((_b = (_a = this._store) == null ? void 0 : _a.widgetConfigurations) == null ? void 0 : _b.widget) || { useToggle: false, leftCheckbox: false, activeLogo: null, inactiveLogo: 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
  )}