ui.shipaid.com 0.3.183 → 0.3.184
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 +6 -5
- package/dist/widget.iife.js +6 -5
- package/dist/widget.umd.js +6 -5
- package/package.json +1 -1
package/dist/widget.es.js
CHANGED
|
@@ -4936,9 +4936,9 @@ const _ShipAidWidget = class _ShipAidWidget extends s$1 {
|
|
|
4936
4936
|
window.location.href = `/checkout?attributes[_shipaid-internal]=1&updates[${(_b2 = this._protectionVariant) == null ? void 0 : _b2.id}]=1`;
|
|
4937
4937
|
}}
|
|
4938
4938
|
>
|
|
4939
|
-
${this.buttonTitle || (checkoutText ? x`<span>${checkoutText}</span>
|
|
4940
|
-
|
|
4941
|
-
|
|
4939
|
+
${this.buttonTitle || (checkoutText ? x`<span class="shipaid-checkout-text">${checkoutText}</span>
|
|
4940
|
+
<span class="shipaid-checkout-amount">${cartTotal ? this._currencyFormat(cartTotal) : loading2}</span>` : x`<slot name="checkout-button-text">CHECKOUT+</slot>
|
|
4941
|
+
<span class="shipaid-checkout-amount">${cartTotal ? this._currencyFormat(cartTotal) : loading2}</span>`)}
|
|
4942
4942
|
</button>
|
|
4943
4943
|
` : x`
|
|
4944
4944
|
<a
|
|
@@ -4954,14 +4954,15 @@ const _ShipAidWidget = class _ShipAidWidget extends s$1 {
|
|
|
4954
4954
|
);
|
|
4955
4955
|
}}
|
|
4956
4956
|
>
|
|
4957
|
-
${this.buttonTitle || x
|
|
4957
|
+
${this.buttonTitle || (checkoutText ? x`<span class="shipaid-checkout-text">${checkoutText}</span>
|
|
4958
|
+
<span class="shipaid-checkout-amount">${cartTotal ? this._currencyFormat(cartTotal) : loading2}</span>` : x`
|
|
4958
4959
|
<span class="shipaid-checkout-text"
|
|
4959
4960
|
>${translate("checkout-plus.checkout")}+</span
|
|
4960
4961
|
>
|
|
4961
4962
|
<span class="shipaid-checkout-amount"
|
|
4962
4963
|
>${cartTotal ? this._currencyFormat(cartTotal) : loading2}</span
|
|
4963
4964
|
>
|
|
4964
|
-
`}
|
|
4965
|
+
`)}
|
|
4965
4966
|
</a>
|
|
4966
4967
|
`}
|
|
4967
4968
|
<a
|
package/dist/widget.iife.js
CHANGED
|
@@ -1208,9 +1208,9 @@ function GA(A,e,t){return A?e():null==t?void 0:t()}const JA=aA`
|
|
|
1208
1208
|
class="${this.buttonClasses||A}"
|
|
1209
1209
|
@click=${async()=>{var A,e;sessionStorage.setItem("shipaid_variant",JSON.stringify(null==(A=this._protectionVariant)?void 0:A.id)),await this.addCartProtectionVariant(),window.location.href=`/checkout?attributes[_shipaid-internal]=1&updates[${null==(e=this._protectionVariant)?void 0:e.id}]=1`}}
|
|
1210
1210
|
>
|
|
1211
|
-
${this.buttonTitle||(c?E`<span>${c}</span>
|
|
1212
|
-
|
|
1213
|
-
|
|
1211
|
+
${this.buttonTitle||(c?E`<span class="shipaid-checkout-text">${c}</span>
|
|
1212
|
+
<span class="shipaid-checkout-amount">${t?this._currencyFormat(t):a}</span>`:E`<slot name="checkout-button-text">CHECKOUT+</slot>
|
|
1213
|
+
<span class="shipaid-checkout-amount">${t?this._currencyFormat(t):a}</span>`)}
|
|
1214
1214
|
</button>
|
|
1215
1215
|
`:E`
|
|
1216
1216
|
<a
|
|
@@ -1220,14 +1220,15 @@ function GA(A,e,t){return A?e():null==t?void 0:t()}const JA=aA`
|
|
|
1220
1220
|
class="${this.buttonClasses||A}"
|
|
1221
1221
|
@click=${()=>{var A;sessionStorage.setItem("shipaid_variant",JSON.stringify(null==(A=this._protectionVariant)?void 0:A.id))}}
|
|
1222
1222
|
>
|
|
1223
|
-
${this.buttonTitle||E
|
|
1223
|
+
${this.buttonTitle||(c?E`<span class="shipaid-checkout-text">${c}</span>
|
|
1224
|
+
<span class="shipaid-checkout-amount">${t?this._currencyFormat(t):a}</span>`:E`
|
|
1224
1225
|
<span class="shipaid-checkout-text"
|
|
1225
1226
|
>${LA("checkout-plus.checkout")}+</span
|
|
1226
1227
|
>
|
|
1227
1228
|
<span class="shipaid-checkout-amount"
|
|
1228
1229
|
>${t?this._currencyFormat(t):a}</span
|
|
1229
1230
|
>
|
|
1230
|
-
`}
|
|
1231
|
+
`)}
|
|
1231
1232
|
</a>
|
|
1232
1233
|
`}
|
|
1233
1234
|
<a
|
package/dist/widget.umd.js
CHANGED
|
@@ -1208,9 +1208,9 @@ function GA(A,e,t){return A?e():null==t?void 0:t()}const JA=aA`
|
|
|
1208
1208
|
class="${this.buttonClasses||A}"
|
|
1209
1209
|
@click=${async()=>{var A,e;sessionStorage.setItem("shipaid_variant",JSON.stringify(null==(A=this._protectionVariant)?void 0:A.id)),await this.addCartProtectionVariant(),window.location.href=`/checkout?attributes[_shipaid-internal]=1&updates[${null==(e=this._protectionVariant)?void 0:e.id}]=1`}}
|
|
1210
1210
|
>
|
|
1211
|
-
${this.buttonTitle||(c?E`<span>${c}</span>
|
|
1212
|
-
|
|
1213
|
-
|
|
1211
|
+
${this.buttonTitle||(c?E`<span class="shipaid-checkout-text">${c}</span>
|
|
1212
|
+
<span class="shipaid-checkout-amount">${t?this._currencyFormat(t):a}</span>`:E`<slot name="checkout-button-text">CHECKOUT+</slot>
|
|
1213
|
+
<span class="shipaid-checkout-amount">${t?this._currencyFormat(t):a}</span>`)}
|
|
1214
1214
|
</button>
|
|
1215
1215
|
`:E`
|
|
1216
1216
|
<a
|
|
@@ -1220,14 +1220,15 @@ function GA(A,e,t){return A?e():null==t?void 0:t()}const JA=aA`
|
|
|
1220
1220
|
class="${this.buttonClasses||A}"
|
|
1221
1221
|
@click=${()=>{var A;sessionStorage.setItem("shipaid_variant",JSON.stringify(null==(A=this._protectionVariant)?void 0:A.id))}}
|
|
1222
1222
|
>
|
|
1223
|
-
${this.buttonTitle||E
|
|
1223
|
+
${this.buttonTitle||(c?E`<span class="shipaid-checkout-text">${c}</span>
|
|
1224
|
+
<span class="shipaid-checkout-amount">${t?this._currencyFormat(t):a}</span>`:E`
|
|
1224
1225
|
<span class="shipaid-checkout-text"
|
|
1225
1226
|
>${LA("checkout-plus.checkout")}+</span
|
|
1226
1227
|
>
|
|
1227
1228
|
<span class="shipaid-checkout-amount"
|
|
1228
1229
|
>${t?this._currencyFormat(t):a}</span
|
|
1229
1230
|
>
|
|
1230
|
-
`}
|
|
1231
|
+
`)}
|
|
1231
1232
|
</a>
|
|
1232
1233
|
`}
|
|
1233
1234
|
<a
|