ui.shipaid.com 0.3.171 → 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 +3 -2
- package/dist/widget.iife.js +10 -9
- package/dist/widget.umd.js +10 -9
- package/package.json +1 -1
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, activeLogo, inactiveLogo } = ((_b = (_a = this._store) == null ? void 0 : _a.widgetConfigurations) == null ? void 0 : _b.widget) || { useToggle: false, leftCheckbox: false, activeLogo: null, inactiveLogo: null };
|
|
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
|
);
|
|
@@ -5078,7 +5078,7 @@ const _ShipAidWidget = class _ShipAidWidget extends s$1 {
|
|
|
5078
5078
|
</div>
|
|
5079
5079
|
</div>
|
|
5080
5080
|
<div class="prompt-product-actions">
|
|
5081
|
-
<p class="prompt-product-actions-price">
|
|
5081
|
+
<p class="prompt-product-actions-price" style="${priceStyles || ""}">
|
|
5082
5082
|
${((_g = this._protectionVariant) == null ? void 0 : _g.price) && this._currencyFormat(this._protectionVariant.price)}
|
|
5083
5083
|
</p>
|
|
5084
5084
|
${n(
|
|
@@ -5086,6 +5086,7 @@ const _ShipAidWidget = class _ShipAidWidget extends s$1 {
|
|
|
5086
5086
|
() => x`
|
|
5087
5087
|
<label
|
|
5088
5088
|
class="shipaid-${useToggle ? "toggle" : "checkbox"} ${isGreenProtectionEnabled ? "green" : ""}"
|
|
5089
|
+
style="${toggleStyles || ""}"
|
|
5089
5090
|
>
|
|
5090
5091
|
${this._hasProtectionInCart || !this._hasFinishedSetup ? x`<input
|
|
5091
5092
|
type="checkbox"
|