ui.shipaid.com 0.3.177 → 0.3.178
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 +5 -2
- package/dist/widget.iife.js +11 -11
- package/dist/widget.umd.js +11 -11
- package/package.json +1 -1
package/dist/widget.es.js
CHANGED
|
@@ -6985,6 +6985,7 @@ class ShipAidCheckoutPlus extends s$1 {
|
|
|
6985
6985
|
return x`${styles2}${content}`;
|
|
6986
6986
|
}
|
|
6987
6987
|
_renderLegacyContent({ isGreen, isFreeGiftEnabled, iconImg, price }) {
|
|
6988
|
+
var _a, _b, _c, _d, _e, _f;
|
|
6988
6989
|
const helpClass = isGreen ? "cp-help green" : "cp-help";
|
|
6989
6990
|
const title2 = get("checkout-plus.labels.cta");
|
|
6990
6991
|
const protectedLabel = get("checkout-plus.labels.protected");
|
|
@@ -7001,6 +7002,8 @@ class ShipAidCheckoutPlus extends s$1 {
|
|
|
7001
7002
|
const withFreeGift = isFreeGiftEnabled ? ` ${get("plus.suffix.with-free-gift")}` : "";
|
|
7002
7003
|
const unprotectedLabel = get("checkout-plus.continue");
|
|
7003
7004
|
const noGiftSuffix = isFreeGiftEnabled ? get("plus.suffix.no-gift") : "";
|
|
7005
|
+
const customProtectionLabel = (_c = (_b = (_a = this._store) == null ? void 0 : _a.checkoutPlus) == null ? void 0 : _b.labels) == null ? void 0 : _c.protectedLabel;
|
|
7006
|
+
const customNoProtectionLabel = (_f = (_e = (_d = this._store) == null ? void 0 : _d.checkoutPlus) == null ? void 0 : _e.labels) == null ? void 0 : _f.noProtectedLabel;
|
|
7004
7007
|
return x`
|
|
7005
7008
|
<div class="cp-container">
|
|
7006
7009
|
<div class="cp-topbar">
|
|
@@ -7028,12 +7031,12 @@ class ShipAidCheckoutPlus extends s$1 {
|
|
|
7028
7031
|
</div>
|
|
7029
7032
|
|
|
7030
7033
|
<button class="cp-primary" ?disabled=${this._toggleLoading} @click=${this.handleLegacyPrimaryClick}>
|
|
7031
|
-
${this._hasProtectionInCart ? checkoutLabel : x`${primaryProtected}${withFreeGift}`}
|
|
7034
|
+
${customProtectionLabel || (this._hasProtectionInCart ? checkoutLabel : x`${primaryProtected}${withFreeGift}`)}
|
|
7032
7035
|
</button>
|
|
7033
7036
|
</div>
|
|
7034
7037
|
${this._hasProtectionInCart ? A : x`
|
|
7035
7038
|
<button class="cp-secondary" ?disabled=${this._toggleLoading} @click=${this.handleLegacySecondaryClick}>
|
|
7036
|
-
${unprotectedLabel}${noGiftSuffix}
|
|
7039
|
+
${customNoProtectionLabel || unprotectedLabel}${!customNoProtectionLabel || noGiftSuffix}
|
|
7037
7040
|
</button>
|
|
7038
7041
|
`}
|
|
7039
7042
|
`;
|
package/dist/widget.iife.js
CHANGED
|
@@ -1964,39 +1964,39 @@ function GA(A,e,t){return A?e():null==t?void 0:t()}const JA=aA`
|
|
|
1964
1964
|
--cp-icon:11px;
|
|
1965
1965
|
}
|
|
1966
1966
|
}
|
|
1967
|
-
</style>`;this._hasRenderedLegacyOnce||"legacy"!==this._uiMode||(this._hasRenderedLegacyOnce=!0);const u="legacy"===this._uiMode?this._renderLegacyContent({isGreen:r,isFreeGiftEnabled:a,iconImg:o,price:g}):this._renderToggleContent({isGreen:r,isFreeGiftEnabled:a,iconImg:o,price:g});return E`${v}${u}`}_renderLegacyContent({isGreen:A,isFreeGiftEnabled:e,iconImg:t,price:d}){const
|
|
1967
|
+
</style>`;this._hasRenderedLegacyOnce||"legacy"!==this._uiMode||(this._hasRenderedLegacyOnce=!0);const u="legacy"===this._uiMode?this._renderLegacyContent({isGreen:r,isFreeGiftEnabled:a,iconImg:o,price:g}):this._renderToggleContent({isGreen:r,isFreeGiftEnabled:a,iconImg:o,price:g});return E`${v}${u}`}_renderLegacyContent({isGreen:A,isFreeGiftEnabled:e,iconImg:t,price:d}){var n,r,a,o,g,v;const u=A?"cp-help green":"cp-help",f=qA("checkout-plus.labels.cta"),D=qA("checkout-plus.labels.protected"),B=e?qA("plus.suffix.free-gift"):"",Q=A?qA("plus.suffix.tree"):"",p=qA("plus.learn-more"),s=qA("plus.benefits.title"),c=qA("plus.see-details"),i=qA("plus.benefits.protected"),l=qA("plus.benefits.free-gift"),P=qA("plus.benefits.tree"),b=qA("checkout-plus.buttons.secondary"),z=qA("checkout-plus.buttons.primary"),N=e?` ${qA("plus.suffix.with-free-gift")}`:"",X=qA("checkout-plus.continue"),w=e?qA("plus.suffix.no-gift"):"",m=null==(a=null==(r=null==(n=this._store)?void 0:n.checkoutPlus)?void 0:r.labels)?void 0:a.protectedLabel,O=null==(v=null==(g=null==(o=this._store)?void 0:o.checkoutPlus)?void 0:g.labels)?void 0:v.noProtectedLabel;return E`
|
|
1968
1968
|
<div class="cp-container">
|
|
1969
1969
|
<div class="cp-topbar">
|
|
1970
1970
|
<div class="cp-left">
|
|
1971
|
-
<img src="${t}" alt="${
|
|
1972
|
-
<span class="cp-title">${
|
|
1971
|
+
<img src="${t}" alt="${f}" class="cp-icon" />
|
|
1972
|
+
<span class="cp-title">${f} <small>${D}${B}${Q}</small></span>
|
|
1973
1973
|
</div>
|
|
1974
1974
|
<div class="cp-price">
|
|
1975
1975
|
<span>${d||"—"}</span>
|
|
1976
|
-
<span class=${
|
|
1976
|
+
<span class=${u} title="${p}" @click=${this.toggleDetails} aria-expanded="${this.isDetailsOpen}">${ne}</span>
|
|
1977
1977
|
</div>
|
|
1978
1978
|
</div>
|
|
1979
1979
|
<div class="cp-benefits-container ${this.isDetailsOpen?"open":""}">
|
|
1980
1980
|
<div class="cp-benefits">
|
|
1981
1981
|
<div class="cp-benefits__header">
|
|
1982
|
-
<span>${
|
|
1983
|
-
<a href="#" class="cp-benefits__link" @click=${()=>Ve("shipaid-checkout-plus")}>${
|
|
1982
|
+
<span>${s}</span>
|
|
1983
|
+
<a href="#" class="cp-benefits__link" @click=${()=>Ve("shipaid-checkout-plus")}>${c}</a>
|
|
1984
1984
|
</div>
|
|
1985
1985
|
<ul>
|
|
1986
|
-
<li>${ae}${
|
|
1987
|
-
${e?E`<li>${re}${
|
|
1988
|
-
${A?E`<li>${de}${
|
|
1986
|
+
<li>${ae}${i}</li>
|
|
1987
|
+
${e?E`<li>${re}${l}</li>`:T}
|
|
1988
|
+
${A?E`<li>${de}${P}</li>`:T}
|
|
1989
1989
|
</ul>
|
|
1990
1990
|
</div>
|
|
1991
1991
|
</div>
|
|
1992
1992
|
|
|
1993
1993
|
<button class="cp-primary" ?disabled=${this._toggleLoading} @click=${this.handleLegacyPrimaryClick}>
|
|
1994
|
-
${this._hasProtectionInCart?
|
|
1994
|
+
${m||(this._hasProtectionInCart?b:E`${z}${N}`)}
|
|
1995
1995
|
</button>
|
|
1996
1996
|
</div>
|
|
1997
1997
|
${this._hasProtectionInCart?T:E`
|
|
1998
1998
|
<button class="cp-secondary" ?disabled=${this._toggleLoading} @click=${this.handleLegacySecondaryClick}>
|
|
1999
|
-
${
|
|
1999
|
+
${O||X}${!O||w}
|
|
2000
2000
|
</button>
|
|
2001
2001
|
`}
|
|
2002
2002
|
`}_renderToggleContent({isGreen:A,isFreeGiftEnabled:e,iconImg:t,price:d}){const n=this._desiredProtection,r=A?"cp-help green":"cp-help",a=qA("checkout-plus.labels.cta"),o=qA("checkout-plus.labels.protected"),g=e?qA("plus.suffix.free-gift"):"",v=A?qA("plus.suffix.tree"):"",u=qA("plus.learn-more"),f=qA("plus.benefits.title"),D=qA("plus.see-details"),B=qA("plus.benefits.protected"),Q=qA("plus.benefits.free-gift"),p=qA("plus.benefits.tree"),s=qA("checkout-plus.aria.shipping"),c=qA("checkout-plus.buttons.secondary");return E`
|
package/dist/widget.umd.js
CHANGED
|
@@ -1964,39 +1964,39 @@ function GA(A,e,t){return A?e():null==t?void 0:t()}const JA=aA`
|
|
|
1964
1964
|
--cp-icon:11px;
|
|
1965
1965
|
}
|
|
1966
1966
|
}
|
|
1967
|
-
</style>`;this._hasRenderedLegacyOnce||"legacy"!==this._uiMode||(this._hasRenderedLegacyOnce=!0);const u="legacy"===this._uiMode?this._renderLegacyContent({isGreen:r,isFreeGiftEnabled:a,iconImg:o,price:g}):this._renderToggleContent({isGreen:r,isFreeGiftEnabled:a,iconImg:o,price:g});return E`${v}${u}`}_renderLegacyContent({isGreen:A,isFreeGiftEnabled:e,iconImg:t,price:d}){const
|
|
1967
|
+
</style>`;this._hasRenderedLegacyOnce||"legacy"!==this._uiMode||(this._hasRenderedLegacyOnce=!0);const u="legacy"===this._uiMode?this._renderLegacyContent({isGreen:r,isFreeGiftEnabled:a,iconImg:o,price:g}):this._renderToggleContent({isGreen:r,isFreeGiftEnabled:a,iconImg:o,price:g});return E`${v}${u}`}_renderLegacyContent({isGreen:A,isFreeGiftEnabled:e,iconImg:t,price:d}){var n,r,a,o,g,v;const u=A?"cp-help green":"cp-help",f=qA("checkout-plus.labels.cta"),D=qA("checkout-plus.labels.protected"),B=e?qA("plus.suffix.free-gift"):"",Q=A?qA("plus.suffix.tree"):"",p=qA("plus.learn-more"),s=qA("plus.benefits.title"),c=qA("plus.see-details"),i=qA("plus.benefits.protected"),l=qA("plus.benefits.free-gift"),P=qA("plus.benefits.tree"),b=qA("checkout-plus.buttons.secondary"),z=qA("checkout-plus.buttons.primary"),N=e?` ${qA("plus.suffix.with-free-gift")}`:"",X=qA("checkout-plus.continue"),w=e?qA("plus.suffix.no-gift"):"",m=null==(a=null==(r=null==(n=this._store)?void 0:n.checkoutPlus)?void 0:r.labels)?void 0:a.protectedLabel,O=null==(v=null==(g=null==(o=this._store)?void 0:o.checkoutPlus)?void 0:g.labels)?void 0:v.noProtectedLabel;return E`
|
|
1968
1968
|
<div class="cp-container">
|
|
1969
1969
|
<div class="cp-topbar">
|
|
1970
1970
|
<div class="cp-left">
|
|
1971
|
-
<img src="${t}" alt="${
|
|
1972
|
-
<span class="cp-title">${
|
|
1971
|
+
<img src="${t}" alt="${f}" class="cp-icon" />
|
|
1972
|
+
<span class="cp-title">${f} <small>${D}${B}${Q}</small></span>
|
|
1973
1973
|
</div>
|
|
1974
1974
|
<div class="cp-price">
|
|
1975
1975
|
<span>${d||"—"}</span>
|
|
1976
|
-
<span class=${
|
|
1976
|
+
<span class=${u} title="${p}" @click=${this.toggleDetails} aria-expanded="${this.isDetailsOpen}">${ne}</span>
|
|
1977
1977
|
</div>
|
|
1978
1978
|
</div>
|
|
1979
1979
|
<div class="cp-benefits-container ${this.isDetailsOpen?"open":""}">
|
|
1980
1980
|
<div class="cp-benefits">
|
|
1981
1981
|
<div class="cp-benefits__header">
|
|
1982
|
-
<span>${
|
|
1983
|
-
<a href="#" class="cp-benefits__link" @click=${()=>Ve("shipaid-checkout-plus")}>${
|
|
1982
|
+
<span>${s}</span>
|
|
1983
|
+
<a href="#" class="cp-benefits__link" @click=${()=>Ve("shipaid-checkout-plus")}>${c}</a>
|
|
1984
1984
|
</div>
|
|
1985
1985
|
<ul>
|
|
1986
|
-
<li>${ae}${
|
|
1987
|
-
${e?E`<li>${re}${
|
|
1988
|
-
${A?E`<li>${de}${
|
|
1986
|
+
<li>${ae}${i}</li>
|
|
1987
|
+
${e?E`<li>${re}${l}</li>`:T}
|
|
1988
|
+
${A?E`<li>${de}${P}</li>`:T}
|
|
1989
1989
|
</ul>
|
|
1990
1990
|
</div>
|
|
1991
1991
|
</div>
|
|
1992
1992
|
|
|
1993
1993
|
<button class="cp-primary" ?disabled=${this._toggleLoading} @click=${this.handleLegacyPrimaryClick}>
|
|
1994
|
-
${this._hasProtectionInCart?
|
|
1994
|
+
${m||(this._hasProtectionInCart?b:E`${z}${N}`)}
|
|
1995
1995
|
</button>
|
|
1996
1996
|
</div>
|
|
1997
1997
|
${this._hasProtectionInCart?T:E`
|
|
1998
1998
|
<button class="cp-secondary" ?disabled=${this._toggleLoading} @click=${this.handleLegacySecondaryClick}>
|
|
1999
|
-
${
|
|
1999
|
+
${O||X}${!O||w}
|
|
2000
2000
|
</button>
|
|
2001
2001
|
`}
|
|
2002
2002
|
`}_renderToggleContent({isGreen:A,isFreeGiftEnabled:e,iconImg:t,price:d}){const n=this._desiredProtection,r=A?"cp-help green":"cp-help",a=qA("checkout-plus.labels.cta"),o=qA("checkout-plus.labels.protected"),g=e?qA("plus.suffix.free-gift"):"",v=A?qA("plus.suffix.tree"):"",u=qA("plus.learn-more"),f=qA("plus.benefits.title"),D=qA("plus.see-details"),B=qA("plus.benefits.protected"),Q=qA("plus.benefits.free-gift"),p=qA("plus.benefits.tree"),s=qA("checkout-plus.aria.shipping"),c=qA("checkout-plus.buttons.secondary");return E`
|