@zonos/elements 1.3.279 → 1.3.281
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/cjs/{TaxId-12acedde.js → TaxId-cd9d490e.js} +1 -1
- package/dist/cjs/{cart-e8bc11a3.js → cart-3313cb0c.js} +2 -2
- package/dist/cjs/{collect-e6485168.js → collect-2659c5af.js} +2 -2
- package/dist/cjs/formatStringWithLinks-c25b4018.js +24 -0
- package/dist/cjs/{hasInclusivePrice-798ce42d.js → hasInclusivePrice-d132daaa.js} +1 -1
- package/dist/cjs/index.cjs.js +8 -8
- package/dist/cjs/{invoice-dff7ec81.js → invoice-26f52c07.js} +2 -2
- package/dist/cjs/isSameHostCheckoutLink-6148cabb.js +28 -0
- package/dist/cjs/{localization-90650d7d.js → localization-6189080f.js} +120 -120
- package/dist/cjs/{paypal-77bd640c.js → paypal-f6a256b5.js} +2 -2
- package/dist/cjs/{placeTestOrder-7767d119.js → placeTestOrder-695f2b32.js} +2 -2
- package/dist/cjs/{renderCheckoutCurrency-66377cf5.js → renderCheckoutCurrency-fe56094f.js} +2 -2
- package/dist/cjs/{shouldRenderTaxIdInput-b8abf6de.js → shouldRenderTaxIdInput-7d19556c.js} +1 -1
- package/dist/cjs/zonos-address-display_8.cjs.entry.js +4 -4
- package/dist/cjs/zonos-address_4.cjs.entry.js +4 -4
- package/dist/cjs/zonos-airwallex-payment.cjs.entry.js +4 -4
- package/dist/cjs/zonos-card_5.cjs.entry.js +4 -4
- package/dist/cjs/zonos-cart-items_12.cjs.entry.js +27 -12
- package/dist/cjs/zonos-checkout.cjs.entry.js +190 -14
- package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +3 -3
- package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +7 -7
- package/dist/cjs/zonos-collect.cjs.entry.js +5 -5
- package/dist/cjs/zonos-controller.cjs.entry.js +3 -3
- package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +3 -2
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +5 -4
- package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
- package/dist/cjs/zonos-invoice-cart-items_2.cjs.entry.js +5 -5
- package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +7 -7
- package/dist/cjs/zonos-invoice.cjs.entry.js +5 -5
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +1 -1
- package/dist/cjs/zonos-policy-consent_2.cjs.entry.js +4 -4
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js +13 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +36 -2
- package/dist/collection/components/store/translationStore/strings.arabic.js +6 -6
- package/dist/collection/components/store/translationStore/strings.base.js +6 -6
- package/dist/collection/components/store/translationStore/strings.chinese.js +6 -6
- package/dist/collection/components/store/translationStore/strings.danish.js +6 -6
- package/dist/collection/components/store/translationStore/strings.dutch.js +6 -6
- package/dist/collection/components/store/translationStore/strings.french.js +6 -6
- package/dist/collection/components/store/translationStore/strings.german.js +6 -6
- package/dist/collection/components/store/translationStore/strings.hebrew.js +6 -6
- package/dist/collection/components/store/translationStore/strings.indonesian.js +6 -6
- package/dist/collection/components/store/translationStore/strings.italian.js +6 -6
- package/dist/collection/components/store/translationStore/strings.japanese.js +6 -6
- package/dist/collection/components/store/translationStore/strings.korean.js +6 -6
- package/dist/collection/components/store/translationStore/strings.norwegian.js +6 -6
- package/dist/collection/components/store/translationStore/strings.polish.js +6 -6
- package/dist/collection/components/store/translationStore/strings.portuguese.js +6 -6
- package/dist/collection/components/store/translationStore/strings.russian.js +6 -6
- package/dist/collection/components/store/translationStore/strings.spanish.js +6 -6
- package/dist/collection/components/store/translationStore/strings.swedish.js +6 -6
- package/dist/collection/components/store/translationStore/strings.turkish.js +6 -6
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +6 -6
- package/dist/collection/components/utils/checkout/buildBigcommerceRedirectUrl.js +6 -1
- package/dist/collection/components/utils/checkout/watchImmediateBigcommerceDomesticCheckoutRedirect.js +144 -7
- package/dist/collection/components/utils/formatStringWithLinks.js +12 -6
- package/dist/collection/components/utils/isSameHostCheckoutLink.js +24 -0
- package/dist/collection/components/utils/taxIdValidationResult.js +6 -3
- package/dist/collection/types/checkout/TaxId.js +1 -1
- package/dist/collection/types/generated/graphql.internal.types.js +84 -0
- package/dist/esm/{TaxId-50d72254.js → TaxId-63a14057.js} +1 -1
- package/dist/esm/{cart-8b8dc79f.js → cart-c66ec17e.js} +3 -3
- package/dist/esm/{collect-f4965586.js → collect-915fd59d.js} +2 -2
- package/dist/esm/formatStringWithLinks-0d48f183.js +22 -0
- package/dist/esm/{hasInclusivePrice-1589fef9.js → hasInclusivePrice-6fd935f3.js} +1 -1
- package/dist/esm/index.js +8 -8
- package/dist/esm/{invoice-b7a1fb14.js → invoice-2a17c93c.js} +2 -2
- package/dist/esm/isSameHostCheckoutLink-c1b88ab7.js +26 -0
- package/dist/esm/{localization-d49867ed.js → localization-6d36209f.js} +120 -120
- package/dist/esm/{paypal-da551105.js → paypal-cae1d404.js} +2 -2
- package/dist/esm/{placeTestOrder-4309b170.js → placeTestOrder-955269d2.js} +2 -2
- package/dist/esm/{renderCheckoutCurrency-0ed221ac.js → renderCheckoutCurrency-951386a5.js} +2 -2
- package/dist/esm/{shouldRenderTaxIdInput-2572bf77.js → shouldRenderTaxIdInput-ef7b5860.js} +1 -1
- package/dist/esm/zonos-address-display_8.entry.js +4 -4
- package/dist/esm/zonos-address_4.entry.js +4 -4
- package/dist/esm/zonos-airwallex-payment.entry.js +4 -4
- package/dist/esm/zonos-card_5.entry.js +4 -4
- package/dist/esm/zonos-cart-items_12.entry.js +27 -12
- package/dist/esm/zonos-checkout.entry.js +190 -14
- package/dist/esm/zonos-collect-cart-items_3.entry.js +3 -3
- package/dist/esm/zonos-collect-finish_6.entry.js +7 -7
- package/dist/esm/zonos-collect.entry.js +5 -5
- package/dist/esm/zonos-controller.entry.js +3 -3
- package/dist/esm/zonos-country-flag.entry.js +1 -1
- package/dist/esm/zonos-country-select_4.entry.js +3 -2
- package/dist/esm/zonos-hello-dialog.entry.js +5 -4
- package/dist/esm/zonos-hello.entry.js +1 -1
- package/dist/esm/zonos-invoice-cart-items_2.entry.js +5 -5
- package/dist/esm/zonos-invoice-finish_5.entry.js +7 -7
- package/dist/esm/zonos-invoice.entry.js +5 -5
- package/dist/esm/zonos-language-select_2.entry.js +1 -1
- package/dist/esm/zonos-policy-consent_2.entry.js +4 -4
- package/dist/esm-es5/{TaxId-50d72254.js → TaxId-63a14057.js} +1 -1
- package/dist/esm-es5/{cart-8b8dc79f.js → cart-c66ec17e.js} +1 -1
- package/dist/esm-es5/{collect-f4965586.js → collect-915fd59d.js} +1 -1
- package/dist/esm-es5/formatStringWithLinks-0d48f183.js +1 -0
- package/dist/esm-es5/{hasInclusivePrice-1589fef9.js → hasInclusivePrice-6fd935f3.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{invoice-b7a1fb14.js → invoice-2a17c93c.js} +1 -1
- package/dist/esm-es5/isSameHostCheckoutLink-c1b88ab7.js +1 -0
- package/dist/esm-es5/localization-6d36209f.js +1 -0
- package/dist/esm-es5/{paypal-da551105.js → paypal-cae1d404.js} +1 -1
- package/dist/esm-es5/{placeTestOrder-4309b170.js → placeTestOrder-955269d2.js} +1 -1
- package/dist/esm-es5/{renderCheckoutCurrency-0ed221ac.js → renderCheckoutCurrency-951386a5.js} +1 -1
- package/dist/esm-es5/{shouldRenderTaxIdInput-2572bf77.js → shouldRenderTaxIdInput-ef7b5860.js} +1 -1
- package/dist/esm-es5/zonos-address-display_8.entry.js +1 -1
- package/dist/esm-es5/zonos-address_4.entry.js +1 -1
- package/dist/esm-es5/zonos-airwallex-payment.entry.js +1 -1
- package/dist/esm-es5/zonos-card_5.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
- package/dist/esm-es5/zonos-checkout.entry.js +1 -1
- package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +1 -1
- package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -1
- package/dist/esm-es5/zonos-collect.entry.js +1 -1
- package/dist/esm-es5/zonos-controller.entry.js +1 -1
- package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
- package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
- package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm-es5/zonos-hello.entry.js +1 -1
- package/dist/esm-es5/zonos-invoice-cart-items_2.entry.js +1 -1
- package/dist/esm-es5/zonos-invoice-finish_5.entry.js +1 -1
- package/dist/esm-es5/zonos-invoice.entry.js +1 -1
- package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
- package/dist/esm-es5/zonos-policy-consent_2.entry.js +1 -1
- package/dist/scripts/index.d.ts +3 -3
- package/dist/scripts/index.js +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +3 -3
- package/dist/types/components/store/translationStore/strings.base.d.ts +3 -3
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +3 -3
- package/dist/types/components/store/translationStore/strings.danish.d.ts +3 -3
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +3 -3
- package/dist/types/components/store/translationStore/strings.french.d.ts +3 -3
- package/dist/types/components/store/translationStore/strings.german.d.ts +3 -3
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +3 -3
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +3 -3
- package/dist/types/components/store/translationStore/strings.italian.d.ts +3 -3
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +3 -3
- package/dist/types/components/store/translationStore/strings.korean.d.ts +3 -3
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +3 -3
- package/dist/types/components/store/translationStore/strings.polish.d.ts +3 -3
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +3 -3
- package/dist/types/components/store/translationStore/strings.russian.d.ts +3 -3
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +3 -3
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +3 -3
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +3 -3
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +3 -3
- package/dist/types/components/utils/isSameHostCheckoutLink.d.ts +14 -0
- package/dist/types/components/utils/taxIdValidationResult.d.ts +1 -1
- package/dist/types/types/checkout/TaxId.d.ts +1 -1
- package/dist/types/types/generated/graphql.internal.types.d.ts +84 -0
- package/dist/types/types/generated/graphql.internal.types.ts +85 -0
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-d5945ddc.entry.js → p-03fda4a8.entry.js} +1 -1
- package/dist/zonos-elements/{p-43815edd.system.entry.js → p-060c521b.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-8bd37d3b.entry.js → p-09da3c76.entry.js} +1 -1
- package/dist/zonos-elements/{p-5e09c22d.system.js → p-0ac1aa87.system.js} +1 -1
- package/dist/zonos-elements/p-0d2f81ce.system.js +1 -0
- package/dist/zonos-elements/p-11206fe2.js +1 -0
- package/dist/zonos-elements/{p-5c76ef2a.js → p-156891c5.js} +1 -1
- package/dist/zonos-elements/p-1577a739.js +1 -0
- package/dist/zonos-elements/{p-4e6e9a3c.system.entry.js → p-179caaea.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-5827c868.entry.js → p-1ee5f392.entry.js} +1 -1
- package/dist/zonos-elements/p-26ca8ce7.js +1 -0
- package/dist/zonos-elements/p-29b60bf3.system.js +1 -1
- package/dist/zonos-elements/p-2b97f7ed.js +1 -0
- package/dist/zonos-elements/{p-b36205f4.entry.js → p-30067eed.entry.js} +1 -1
- package/dist/zonos-elements/{p-a8c79850.js → p-3246d120.js} +1 -1
- package/dist/zonos-elements/{p-2aecc055.entry.js → p-38879af9.entry.js} +1 -1
- package/dist/zonos-elements/{p-647438d6.system.js → p-39695a8b.system.js} +1 -1
- package/dist/zonos-elements/p-3e6bbf0b.system.entry.js +1 -0
- package/dist/zonos-elements/{p-12a08423.system.entry.js → p-3f6fe80a.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-998f9df5.system.entry.js → p-40b96482.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-8d87e748.entry.js → p-4441c451.entry.js} +1 -1
- package/dist/zonos-elements/{p-7614ea6f.system.entry.js → p-4c3f5fda.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-5bc43687.system.entry.js → p-54a8d4cf.system.entry.js} +1 -1
- package/dist/zonos-elements/p-5677d31f.entry.js +1 -0
- package/dist/zonos-elements/p-56fc3210.js +1 -0
- package/dist/zonos-elements/{p-ed676ad1.system.entry.js → p-5a61c301.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-73d3fa61.entry.js → p-5e1aad7d.entry.js} +1 -1
- package/dist/zonos-elements/p-67426156.system.js +1 -0
- package/dist/zonos-elements/{p-0402af0d.entry.js → p-683ec0bf.entry.js} +1 -1
- package/dist/zonos-elements/{p-8b42245d.entry.js → p-6df034d6.entry.js} +1 -1
- package/dist/zonos-elements/p-6df6cb8a.entry.js +1 -0
- package/dist/zonos-elements/{p-02065a08.system.js → p-717cbe90.system.js} +1 -1
- package/dist/zonos-elements/{p-7e8aba66.system.entry.js → p-71cb16da.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-9beb2624.entry.js → p-727387ed.entry.js} +1 -1
- package/dist/zonos-elements/{p-77fa437c.entry.js → p-746bdebe.entry.js} +1 -1
- package/dist/zonos-elements/{p-48d55793.system.js → p-7ac8846c.system.js} +1 -1
- package/dist/zonos-elements/{p-32278945.system.js → p-8005e102.system.js} +1 -1
- package/dist/zonos-elements/{p-2654556b.js → p-8051403a.js} +1 -1
- package/dist/zonos-elements/{p-d7cb9ef6.system.entry.js → p-8308f7d6.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-6fae9835.system.entry.js → p-86d6961c.system.entry.js} +1 -1
- package/dist/zonos-elements/p-9448d960.js +1 -0
- package/dist/zonos-elements/{p-2b8345d8.system.js → p-989cb22b.system.js} +1 -1
- package/dist/zonos-elements/{p-5afea02c.system.entry.js → p-a23d3b3f.system.entry.js} +1 -1
- package/dist/zonos-elements/p-a34269b1.system.entry.js +1 -0
- package/dist/zonos-elements/p-a553e132.js +1 -0
- package/dist/zonos-elements/{p-74ebd766.js → p-a5f8dc19.js} +1 -1
- package/dist/zonos-elements/p-a6535773.system.entry.js +1 -0
- package/dist/zonos-elements/{p-ee434a71.entry.js → p-a6773627.entry.js} +1 -1
- package/dist/zonos-elements/{p-cd41b16b.system.entry.js → p-ae30e6c0.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-0745e440.entry.js → p-b406bb39.entry.js} +1 -1
- package/dist/zonos-elements/{p-6b361d2b.js → p-bcf5cffb.js} +1 -1
- package/dist/zonos-elements/{p-e6165cc2.system.js → p-bf942ef0.system.js} +1 -1
- package/dist/zonos-elements/p-c345d1f5.system.js +1 -0
- package/dist/zonos-elements/p-d4337686.entry.js +1 -0
- package/dist/zonos-elements/{p-1b963905.system.js → p-ddf68916.system.js} +1 -1
- package/dist/zonos-elements/p-df8b8827.entry.js +1 -0
- package/dist/zonos-elements/{p-abf61f6f.system.entry.js → p-e0ec0aa3.system.entry.js} +1 -1
- package/dist/zonos-elements/p-e210edd9.system.js +1 -0
- package/dist/zonos-elements/{p-f44a3338.entry.js → p-e7a45f6c.entry.js} +1 -1
- package/dist/zonos-elements/p-edf613ea.entry.js +1 -0
- package/dist/zonos-elements/p-ee3c7b11.system.entry.js +1 -0
- package/dist/zonos-elements/{p-293183c1.system.entry.js → p-f156e2e5.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-3f380c8f.system.js → p-f314217a.system.js} +1 -1
- package/dist/zonos-elements/{p-ac59f5c1.system.entry.js → p-f3e1a6a7.system.entry.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +3 -3
- package/dist/cjs/formatStringWithLinks-52341fc7.js +0 -17
- package/dist/esm/formatStringWithLinks-9e819405.js +0 -15
- package/dist/esm-es5/formatStringWithLinks-9e819405.js +0 -1
- package/dist/esm-es5/localization-d49867ed.js +0 -1
- package/dist/zonos-elements/p-21d925d7.entry.js +0 -1
- package/dist/zonos-elements/p-2d6557ee.system.js +0 -1
- package/dist/zonos-elements/p-32704baa.js +0 -1
- package/dist/zonos-elements/p-3cf22558.entry.js +0 -1
- package/dist/zonos-elements/p-45e1c33b.entry.js +0 -1
- package/dist/zonos-elements/p-5d3ea491.system.entry.js +0 -1
- package/dist/zonos-elements/p-63a383f4.js +0 -1
- package/dist/zonos-elements/p-6b4ef7e0.entry.js +0 -1
- package/dist/zonos-elements/p-7365e22c.system.js +0 -1
- package/dist/zonos-elements/p-7522ec43.js +0 -1
- package/dist/zonos-elements/p-9fab45aa.system.js +0 -1
- package/dist/zonos-elements/p-a87561b8.js +0 -1
- package/dist/zonos-elements/p-c209e36d.js +0 -1
- package/dist/zonos-elements/p-d7bda14d.js +0 -1
- package/dist/zonos-elements/p-d93991c3.system.entry.js +0 -1
- package/dist/zonos-elements/p-eb9369b9.system.entry.js +0 -1
- package/dist/zonos-elements/p-f3a73132.entry.js +0 -1
- package/dist/zonos-elements/p-ffbf87c8.system.entry.js +0 -1
|
@@ -70,10 +70,13 @@ export const taxIdValidationResult = ({ companyName, shippingCountry, taxId, })
|
|
|
70
70
|
}
|
|
71
71
|
// validate tax id for mexico;
|
|
72
72
|
if (shippingCountry === 'MX') {
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
// RFC: 3-4 letters + 6 digit date + 3 character homoclave (12-13 total)
|
|
74
|
+
const isValidRfc = /^[A-ZÑ]{3,4}[0-9]{6}[A-Z0-9]{3}$/.test(taxId);
|
|
75
|
+
// CURP: 4 letters + 6 digit date + gender (H/M/X) + 5 letters + alphanumeric + digit (18 total)
|
|
76
|
+
const isValidCurp = /^[A-Z]{4}[0-9]{6}[HMX][A-Z]{5}[A-Z0-9][0-9]$/.test(taxId);
|
|
77
|
+
if (!isValidRfc && !isValidCurp) {
|
|
75
78
|
return {
|
|
76
|
-
error: 'Invalid RFC format. Must be 12–13 uppercase letters and numbers only.',
|
|
79
|
+
error: 'Invalid RFC or CURP format. Must be a 12–13 character RFC or an 18 character CURP, uppercase letters and numbers only.',
|
|
77
80
|
valid: false,
|
|
78
81
|
};
|
|
79
82
|
}
|
|
@@ -74,7 +74,7 @@ export const shipToTaxIdLabels = {
|
|
|
74
74
|
LV: { friendlyName: 'EORI number', placeholder: 'DE123456789' },
|
|
75
75
|
MT: { friendlyName: 'EORI number', placeholder: 'DE123456789' },
|
|
76
76
|
MX: {
|
|
77
|
-
friendlyName: 'RFC number',
|
|
77
|
+
friendlyName: 'RFC or CURP number',
|
|
78
78
|
placeholder: 'XAXX010101000',
|
|
79
79
|
},
|
|
80
80
|
NL: { friendlyName: 'EORI number', placeholder: 'DE123456789' },
|
|
@@ -26,6 +26,7 @@ export const accountingFeeType = {
|
|
|
26
26
|
Adjustment: 'ADJUSTMENT',
|
|
27
27
|
Advancement: 'ADVANCEMENT',
|
|
28
28
|
AirlineRecoveryFee: 'AIRLINE_RECOVERY_FEE',
|
|
29
|
+
AirwallexTransferFee: 'AIRWALLEX_TRANSFER_FEE',
|
|
29
30
|
AnnualPlatformFee: 'ANNUAL_PLATFORM_FEE',
|
|
30
31
|
ApiCrossDocking: 'API_CROSS_DOCKING',
|
|
31
32
|
ApiGuaranteeOrder: 'API_GUARANTEE_ORDER',
|
|
@@ -111,6 +112,9 @@ export const accountingFeeType = {
|
|
|
111
112
|
CyprusPrepayFee: 'CYPRUS_PREPAY_FEE',
|
|
112
113
|
CyprusPrepayPercent: 'CYPRUS_PREPAY_PERCENT',
|
|
113
114
|
CyprusPrepayPhotoDiscount: 'CYPRUS_PREPAY_PHOTO_DISCOUNT',
|
|
115
|
+
CzechDisbursementFee: 'CZECH_DISBURSEMENT_FEE',
|
|
116
|
+
CzechGuaranteeOrder: 'CZECH_GUARANTEE_ORDER',
|
|
117
|
+
CzechRemittanceFee: 'CZECH_REMITTANCE_FEE',
|
|
114
118
|
DashboardLite: 'DASHBOARD_LITE',
|
|
115
119
|
DdpServiceFee: 'DDP_SERVICE_FEE',
|
|
116
120
|
DdpServiceFeeBuffer: 'DDP_SERVICE_FEE_BUFFER',
|
|
@@ -123,7 +127,43 @@ export const accountingFeeType = {
|
|
|
123
127
|
DutyBrokerageUs: 'DUTY_BROKERAGE_US',
|
|
124
128
|
DutyFx: 'DUTY_FX',
|
|
125
129
|
DutyRemittance: 'DUTY_REMITTANCE',
|
|
130
|
+
DutyRemittanceAt: 'DUTY_REMITTANCE_AT',
|
|
131
|
+
DutyRemittanceAx: 'DUTY_REMITTANCE_AX',
|
|
132
|
+
DutyRemittanceBe: 'DUTY_REMITTANCE_BE',
|
|
133
|
+
DutyRemittanceBg: 'DUTY_REMITTANCE_BG',
|
|
134
|
+
DutyRemittanceCy: 'DUTY_REMITTANCE_CY',
|
|
135
|
+
DutyRemittanceCz: 'DUTY_REMITTANCE_CZ',
|
|
136
|
+
DutyRemittanceDe: 'DUTY_REMITTANCE_DE',
|
|
137
|
+
DutyRemittanceDk: 'DUTY_REMITTANCE_DK',
|
|
138
|
+
DutyRemittanceEe: 'DUTY_REMITTANCE_EE',
|
|
139
|
+
DutyRemittanceEs: 'DUTY_REMITTANCE_ES',
|
|
140
|
+
DutyRemittanceFi: 'DUTY_REMITTANCE_FI',
|
|
141
|
+
DutyRemittanceFr: 'DUTY_REMITTANCE_FR',
|
|
142
|
+
DutyRemittanceGb: 'DUTY_REMITTANCE_GB',
|
|
143
|
+
DutyRemittanceGf: 'DUTY_REMITTANCE_GF',
|
|
144
|
+
DutyRemittanceGp: 'DUTY_REMITTANCE_GP',
|
|
145
|
+
DutyRemittanceGr: 'DUTY_REMITTANCE_GR',
|
|
146
|
+
DutyRemittanceHr: 'DUTY_REMITTANCE_HR',
|
|
147
|
+
DutyRemittanceHu: 'DUTY_REMITTANCE_HU',
|
|
148
|
+
DutyRemittanceIc: 'DUTY_REMITTANCE_IC',
|
|
149
|
+
DutyRemittanceIe: 'DUTY_REMITTANCE_IE',
|
|
150
|
+
DutyRemittanceIt: 'DUTY_REMITTANCE_IT',
|
|
151
|
+
DutyRemittanceLt: 'DUTY_REMITTANCE_LT',
|
|
152
|
+
DutyRemittanceLu: 'DUTY_REMITTANCE_LU',
|
|
153
|
+
DutyRemittanceLv: 'DUTY_REMITTANCE_LV',
|
|
154
|
+
DutyRemittanceMc: 'DUTY_REMITTANCE_MC',
|
|
155
|
+
DutyRemittanceMq: 'DUTY_REMITTANCE_MQ',
|
|
156
|
+
DutyRemittanceMt: 'DUTY_REMITTANCE_MT',
|
|
157
|
+
DutyRemittanceNl: 'DUTY_REMITTANCE_NL',
|
|
158
|
+
DutyRemittancePl: 'DUTY_REMITTANCE_PL',
|
|
159
|
+
DutyRemittancePt: 'DUTY_REMITTANCE_PT',
|
|
160
|
+
DutyRemittanceRe: 'DUTY_REMITTANCE_RE',
|
|
161
|
+
DutyRemittanceRo: 'DUTY_REMITTANCE_RO',
|
|
162
|
+
DutyRemittanceSe: 'DUTY_REMITTANCE_SE',
|
|
163
|
+
DutyRemittanceSi: 'DUTY_REMITTANCE_SI',
|
|
164
|
+
DutyRemittanceSk: 'DUTY_REMITTANCE_SK',
|
|
126
165
|
DutyRemittanceUs: 'DUTY_REMITTANCE_US',
|
|
166
|
+
DutyRemittanceYt: 'DUTY_REMITTANCE_YT',
|
|
127
167
|
DutyTax: 'DUTY_TAX',
|
|
128
168
|
DutyTaxBuffer: 'DUTY_TAX_BUFFER',
|
|
129
169
|
DutyTaxFee: 'DUTY_TAX_FEE',
|
|
@@ -156,9 +196,11 @@ export const accountingFeeType = {
|
|
|
156
196
|
IsraelRemittanceFee: 'ISRAEL_REMITTANCE_FEE',
|
|
157
197
|
ItalianeRemittanceFee: 'ITALIANE_REMITTANCE_FEE',
|
|
158
198
|
Item: 'ITEM',
|
|
199
|
+
JapanDisbursementFee: 'JAPAN_DISBURSEMENT_FEE',
|
|
159
200
|
JapanPrepayFee: 'JAPAN_PREPAY_FEE',
|
|
160
201
|
JapanPrepayPercent: 'JAPAN_PREPAY_PERCENT',
|
|
161
202
|
JapanPrepayPhotoDiscount: 'JAPAN_PREPAY_PHOTO_DISCOUNT',
|
|
203
|
+
JapanRemittanceFee: 'JAPAN_REMITTANCE_FEE',
|
|
162
204
|
KazpostDisbursementFee: 'KAZPOST_DISBURSEMENT_FEE',
|
|
163
205
|
KazpostPrepayFee: 'KAZPOST_PREPAY_FEE',
|
|
164
206
|
KazpostPrepayPercent: 'KAZPOST_PREPAY_PERCENT',
|
|
@@ -2789,6 +2831,7 @@ export const invoiceDetailCategoryInputType = {
|
|
|
2789
2831
|
Adjustment: 'ADJUSTMENT',
|
|
2790
2832
|
Advancement: 'ADVANCEMENT',
|
|
2791
2833
|
AirlineRecoveryFee: 'AIRLINE_RECOVERY_FEE',
|
|
2834
|
+
AirwallexTransferFee: 'AIRWALLEX_TRANSFER_FEE',
|
|
2792
2835
|
AnnualPlatformFee: 'ANNUAL_PLATFORM_FEE',
|
|
2793
2836
|
ApiAnnualFlat: 'API_ANNUAL_FLAT',
|
|
2794
2837
|
ApiAnnualMonthlyFlat: 'API_ANNUAL_MONTHLY_FLAT',
|
|
@@ -2888,6 +2931,9 @@ export const invoiceDetailCategoryInputType = {
|
|
|
2888
2931
|
CyprusPrepayPercent: 'CYPRUS_PREPAY_PERCENT',
|
|
2889
2932
|
CyprusPrepayPhotoDiscount: 'CYPRUS_PREPAY_PHOTO_DISCOUNT',
|
|
2890
2933
|
CyprusRemittanceFee: 'CYPRUS_REMITTANCE_FEE',
|
|
2934
|
+
CzechDisbursementFee: 'CZECH_DISBURSEMENT_FEE',
|
|
2935
|
+
CzechGuaranteeOrder: 'CZECH_GUARANTEE_ORDER',
|
|
2936
|
+
CzechRemittanceFee: 'CZECH_REMITTANCE_FEE',
|
|
2891
2937
|
DashboardLite: 'DASHBOARD_LITE',
|
|
2892
2938
|
DdpServiceFee: 'DDP_SERVICE_FEE',
|
|
2893
2939
|
DdpServiceFeeBuffer: 'DDP_SERVICE_FEE_BUFFER',
|
|
@@ -2900,7 +2946,43 @@ export const invoiceDetailCategoryInputType = {
|
|
|
2900
2946
|
DutyBrokerageUs: 'DUTY_BROKERAGE_US',
|
|
2901
2947
|
DutyFx: 'DUTY_FX',
|
|
2902
2948
|
DutyRemittance: 'DUTY_REMITTANCE',
|
|
2949
|
+
DutyRemittanceAt: 'DUTY_REMITTANCE_AT',
|
|
2950
|
+
DutyRemittanceAx: 'DUTY_REMITTANCE_AX',
|
|
2951
|
+
DutyRemittanceBe: 'DUTY_REMITTANCE_BE',
|
|
2952
|
+
DutyRemittanceBg: 'DUTY_REMITTANCE_BG',
|
|
2953
|
+
DutyRemittanceCy: 'DUTY_REMITTANCE_CY',
|
|
2954
|
+
DutyRemittanceCz: 'DUTY_REMITTANCE_CZ',
|
|
2955
|
+
DutyRemittanceDe: 'DUTY_REMITTANCE_DE',
|
|
2956
|
+
DutyRemittanceDk: 'DUTY_REMITTANCE_DK',
|
|
2957
|
+
DutyRemittanceEe: 'DUTY_REMITTANCE_EE',
|
|
2958
|
+
DutyRemittanceEs: 'DUTY_REMITTANCE_ES',
|
|
2959
|
+
DutyRemittanceFi: 'DUTY_REMITTANCE_FI',
|
|
2960
|
+
DutyRemittanceFr: 'DUTY_REMITTANCE_FR',
|
|
2961
|
+
DutyRemittanceGb: 'DUTY_REMITTANCE_GB',
|
|
2962
|
+
DutyRemittanceGf: 'DUTY_REMITTANCE_GF',
|
|
2963
|
+
DutyRemittanceGp: 'DUTY_REMITTANCE_GP',
|
|
2964
|
+
DutyRemittanceGr: 'DUTY_REMITTANCE_GR',
|
|
2965
|
+
DutyRemittanceHr: 'DUTY_REMITTANCE_HR',
|
|
2966
|
+
DutyRemittanceHu: 'DUTY_REMITTANCE_HU',
|
|
2967
|
+
DutyRemittanceIc: 'DUTY_REMITTANCE_IC',
|
|
2968
|
+
DutyRemittanceIe: 'DUTY_REMITTANCE_IE',
|
|
2969
|
+
DutyRemittanceIt: 'DUTY_REMITTANCE_IT',
|
|
2970
|
+
DutyRemittanceLt: 'DUTY_REMITTANCE_LT',
|
|
2971
|
+
DutyRemittanceLu: 'DUTY_REMITTANCE_LU',
|
|
2972
|
+
DutyRemittanceLv: 'DUTY_REMITTANCE_LV',
|
|
2973
|
+
DutyRemittanceMc: 'DUTY_REMITTANCE_MC',
|
|
2974
|
+
DutyRemittanceMq: 'DUTY_REMITTANCE_MQ',
|
|
2975
|
+
DutyRemittanceMt: 'DUTY_REMITTANCE_MT',
|
|
2976
|
+
DutyRemittanceNl: 'DUTY_REMITTANCE_NL',
|
|
2977
|
+
DutyRemittancePl: 'DUTY_REMITTANCE_PL',
|
|
2978
|
+
DutyRemittancePt: 'DUTY_REMITTANCE_PT',
|
|
2979
|
+
DutyRemittanceRe: 'DUTY_REMITTANCE_RE',
|
|
2980
|
+
DutyRemittanceRo: 'DUTY_REMITTANCE_RO',
|
|
2981
|
+
DutyRemittanceSe: 'DUTY_REMITTANCE_SE',
|
|
2982
|
+
DutyRemittanceSi: 'DUTY_REMITTANCE_SI',
|
|
2983
|
+
DutyRemittanceSk: 'DUTY_REMITTANCE_SK',
|
|
2903
2984
|
DutyRemittanceUs: 'DUTY_REMITTANCE_US',
|
|
2985
|
+
DutyRemittanceYt: 'DUTY_REMITTANCE_YT',
|
|
2904
2986
|
DutyTaxBuffer: 'DUTY_TAX_BUFFER',
|
|
2905
2987
|
DutyTaxFee: 'DUTY_TAX_FEE',
|
|
2906
2988
|
EmiratesDisbursementFee: 'EMIRATES_DISBURSEMENT_FEE',
|
|
@@ -2929,9 +3011,11 @@ export const invoiceDetailCategoryInputType = {
|
|
|
2929
3011
|
IsraelRemittanceFee: 'ISRAEL_REMITTANCE_FEE',
|
|
2930
3012
|
ItalianeRemittanceFee: 'ITALIANE_REMITTANCE_FEE',
|
|
2931
3013
|
Item: 'ITEM',
|
|
3014
|
+
JapanDisbursementFee: 'JAPAN_DISBURSEMENT_FEE',
|
|
2932
3015
|
JapanPrepayFee: 'JAPAN_PREPAY_FEE',
|
|
2933
3016
|
JapanPrepayPercent: 'JAPAN_PREPAY_PERCENT',
|
|
2934
3017
|
JapanPrepayPhotoDiscount: 'JAPAN_PREPAY_PHOTO_DISCOUNT',
|
|
3018
|
+
JapanRemittanceFee: 'JAPAN_REMITTANCE_FEE',
|
|
2935
3019
|
KazpostDisbursementFee: 'KAZPOST_DISBURSEMENT_FEE',
|
|
2936
3020
|
KazpostPrepayFee: 'KAZPOST_PREPAY_FEE',
|
|
2937
3021
|
KazpostPrepayPercent: 'KAZPOST_PREPAY_PERCENT',
|
|
@@ -74,7 +74,7 @@ const shipToTaxIdLabels = {
|
|
|
74
74
|
LV: { friendlyName: 'EORI number', placeholder: 'DE123456789' },
|
|
75
75
|
MT: { friendlyName: 'EORI number', placeholder: 'DE123456789' },
|
|
76
76
|
MX: {
|
|
77
|
-
friendlyName: 'RFC number',
|
|
77
|
+
friendlyName: 'RFC or CURP number',
|
|
78
78
|
placeholder: 'XAXX010101000',
|
|
79
79
|
},
|
|
80
80
|
NL: { friendlyName: 'EORI number', placeholder: 'DE123456789' },
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { c as createStore, z as zonosStore } from './zonosStore-b7d3f9b0.js';
|
|
2
|
-
import { s as storageStore, t as translate, l as localizationStore, j as getOverridenZCountry, f as filterValidTests, d as storageStoreSetEnabledVariantTestKeys } from './localization-
|
|
2
|
+
import { s as storageStore, t as translate, l as localizationStore, j as getOverridenZCountry, f as filterValidTests, d as storageStoreSetEnabledVariantTestKeys } from './localization-6d36209f.js';
|
|
3
3
|
import { l as log, b as allLogs } from './VarianceTest-572cecf5.js';
|
|
4
4
|
import { h as handleFetch, l as logError, f as fallbackApiList, g as getIsTestMode, a as getIsStagingMode, s as sendErrorLog, j as jsonParse } from './handleFetch-a844cac1.js';
|
|
5
5
|
import { i as isDarkColor } from './isDarkColor-039ef212.js';
|
|
6
6
|
import { g as getBorderRadius } from './getBorderRadius-dc982fe6.js';
|
|
7
|
-
import { e as euCountryCodes } from './TaxId-
|
|
7
|
+
import { e as euCountryCodes } from './TaxId-63a14057.js';
|
|
8
8
|
|
|
9
9
|
const getCheckoutSession = async () => {
|
|
10
10
|
if (!storageStore.checkoutSessionId) {
|
|
@@ -2729,4 +2729,4 @@ const cartStoreUpdateStoreCredit = () => {
|
|
|
2729
2729
|
}, 300);
|
|
2730
2730
|
};
|
|
2731
2731
|
|
|
2732
|
-
export { storeCreditStoreSetEnabled as $, validateCheckoutSession as A, storeCreditStoreCreateOrder as B, stripeStoreConfirmPayment as C, stripeStoreHandleInventoryRefund as D, policyConsentStore as E, stripeStoreReset as F, cartStoreOnChange as G, stripeStoreOnChange as H, storeCreditStoreGetEffectiveAmount as I, stripeStoreRecordPolicyConsent as J, stripeStoreBuildAddressForPartyCreate as K, cartStoreUpdateSelectedShippingOption as L, cartStoreHasOneEligibleItem as M, isEuDapRemittance as N, stripeStoreApplyPromoCode as O, stripeStoreRemovePromoCode as P, stripeStoreResetPromoCode as Q, stripeStoreMessageBasedOnStatus as R, storeCreditStore as S, storeCreditStoreReset as T, stripeStoreTranslateAddressToLatin as U, extractName as V, stripeStoreAsyncAddressUpdate as W, cartStoreGetShippingTransitInfo as X, cartStoreGetMethod as Y, sortServiceLevelOptionsByAmount as Z, getEnabledPolicies as _, stripeStoreSaveDomesticShippingSession as a, storeCreditStoreSetUseFullBalance as a0, cartStoreUpdateStoreCredit as a1, storeCreditStoreSetAmount as a2, storeCreditStoreRefreshBalance as a3, stripeStore as b, stripeStoreRetrievePayment as c, cartStore as d, cartStoreUpdateItems as e, cartStoreReset as f, cartStoreResetTabItems as g, cartStoreClearCheckoutInterval as h, initStripeElements as i, stripeStoreInitCheckoutSession as j, stripeStoreGetPaymentIntent as k,
|
|
2732
|
+
export { storeCreditStoreSetEnabled as $, validateCheckoutSession as A, storeCreditStoreCreateOrder as B, stripeStoreConfirmPayment as C, stripeStoreHandleInventoryRefund as D, policyConsentStore as E, stripeStoreReset as F, cartStoreOnChange as G, stripeStoreOnChange as H, storeCreditStoreGetEffectiveAmount as I, stripeStoreRecordPolicyConsent as J, stripeStoreBuildAddressForPartyCreate as K, cartStoreUpdateSelectedShippingOption as L, cartStoreHasOneEligibleItem as M, isEuDapRemittance as N, stripeStoreApplyPromoCode as O, stripeStoreRemovePromoCode as P, stripeStoreResetPromoCode as Q, stripeStoreMessageBasedOnStatus as R, storeCreditStore as S, storeCreditStoreReset as T, stripeStoreTranslateAddressToLatin as U, extractName as V, stripeStoreAsyncAddressUpdate as W, cartStoreGetShippingTransitInfo as X, cartStoreGetMethod as Y, sortServiceLevelOptionsByAmount as Z, getEnabledPolicies as _, stripeStoreSaveDomesticShippingSession as a, storeCreditStoreSetUseFullBalance as a0, cartStoreUpdateStoreCredit as a1, storeCreditStoreSetAmount as a2, storeCreditStoreRefreshBalance as a3, stripeStore as b, stripeStoreRetrievePayment as c, cartStore as d, cartStoreUpdateItems as e, cartStoreReset as f, cartStoreResetTabItems as g, cartStoreClearCheckoutInterval as h, initStripeElements as i, stripeStoreInitCheckoutSession as j, stripeStoreGetPaymentIntent as k, stripeStoreHandleInventoryCheck as l, cartStoreStartCheckoutInterval as m, getCheckoutSessionBody as n, cartStoreUpdateToErrorState as o, policyConsentStoreReset as p, stripeStoreCleanupDomesticShippingSession as q, cartStoreSetCheckoutSession as r, stripeStoreGetDomesticShippingSession as s, trackConversionEvent as t, stripeStorePrefetchLandedCost as u, cartStoreNextStep as v, isPolicyConsentRequired as w, stripeStoreUpdateCheckoutSessionBaseCurrency as x, storeCreditStoreApplyCredit as y, storeCreditStoreCoversFullAmount as z };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { c as createStore, z as zonosStore } from './zonosStore-b7d3f9b0.js';
|
|
2
|
-
import { t as translate, l as localizationStore, s as storageStore } from './localization-
|
|
2
|
+
import { t as translate, l as localizationStore, s as storageStore } from './localization-6d36209f.js';
|
|
3
3
|
import { l as logError$1, h as handleFetch, s as sendErrorLog } from './handleFetch-a844cac1.js';
|
|
4
4
|
import { l as log, b as allLogs } from './VarianceTest-572cecf5.js';
|
|
5
|
-
import { b as stripeStore, K as stripeStoreBuildAddressForPartyCreate, d as cartStore, L as cartStoreUpdateSelectedShippingOption } from './cart-
|
|
5
|
+
import { b as stripeStore, K as stripeStoreBuildAddressForPartyCreate, d as cartStore, L as cartStoreUpdateSelectedShippingOption } from './cart-c66ec17e.js';
|
|
6
6
|
|
|
7
7
|
// src/constant/common.ts
|
|
8
8
|
function _array_like_to_array(arr, len) {
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { i as isSameHostCheckoutLink } from './isSameHostCheckoutLink-c1b88ab7.js';
|
|
2
|
+
|
|
3
|
+
const formatStringWithLinks = (str) => {
|
|
4
|
+
// Match Markdown-style links or standalone URLs not in Markdown format
|
|
5
|
+
const linkRegex = /\[([^\]]+)\]\((https?:\/\/[^\s\)]+)\)|(https?:\/\/[^\s]+)/g;
|
|
6
|
+
const messageWithLinks = str.replace(linkRegex, (_match, text, markdownUrl, url) => {
|
|
7
|
+
var _a;
|
|
8
|
+
const href = markdownUrl || url;
|
|
9
|
+
// For BigCommerce, a same-host `/checkout` link navigates the current tab
|
|
10
|
+
// (`_self`) instead of opening a new one — the Zonos checkout unloads and
|
|
11
|
+
// the native checkout opens in its place rather than leaving two
|
|
12
|
+
// checkouts open at once (05CHECK-887).
|
|
13
|
+
const target = !!((_a = window.Zonos) === null || _a === void 0 ? void 0 : _a.isBigCommerce) && isSameHostCheckoutLink(href)
|
|
14
|
+
? '_self'
|
|
15
|
+
: '_blank';
|
|
16
|
+
const label = markdownUrl ? text : url;
|
|
17
|
+
return `<zonos-link href="${href}" target="${target}" rel="noopener noreferrer">${label}</zonos-link>`;
|
|
18
|
+
});
|
|
19
|
+
return messageWithLinks;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export { formatStringWithLinks as f };
|
package/dist/esm/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { g as getIsTestMode, a as getIsStagingMode, h as handleFetch, l as logEr
|
|
|
6
6
|
import { g as getAbandonedCartRenewTokenValue, _ as _getIsValidCartId, c as checkoutHiddenBtnSelector, a as checkoutHiddenInternationalBtnSelector } from './CheckoutConfig-724d7bae.js';
|
|
7
7
|
export { c as checkoutHiddenBtnSelector, a as checkoutHiddenInternationalBtnSelector, d as domesticRedirectedBtnSelector } from './CheckoutConfig-724d7bae.js';
|
|
8
8
|
export { c as countryRequireShortAddressCode } from './ShortAddressCode-7620e622.js';
|
|
9
|
-
export { c as countryRequireTaxId, e as euCountryCodes, s as shipToTaxIdLabels } from './TaxId-
|
|
9
|
+
export { c as countryRequireTaxId, e as euCountryCodes, s as shipToTaxIdLabels } from './TaxId-63a14057.js';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Get the load version and url based on the loadScriptSrc and version
|
|
@@ -131,7 +131,7 @@ const getZonosQaUrl = () => {
|
|
|
131
131
|
return null;
|
|
132
132
|
}
|
|
133
133
|
const qaUrl = extractZonosQaUrl(window.location.href);
|
|
134
|
-
const cdnUrl = "https://v1.3.
|
|
134
|
+
const cdnUrl = "https://v1.3.281.js.zonos.com";
|
|
135
135
|
// when the qaUrl is not set and the built URL is from the test domain, use the test domain for testing
|
|
136
136
|
if (!qaUrl &&
|
|
137
137
|
(cdnUrl.includes('test.') ||
|
|
@@ -397,10 +397,10 @@ const zonosLoadUrl = (() => {
|
|
|
397
397
|
return null;
|
|
398
398
|
})();
|
|
399
399
|
const startLoadTime = Date.now();
|
|
400
|
-
const ZONOS_URL = "https://v1.3.
|
|
401
|
-
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.
|
|
402
|
-
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.
|
|
403
|
-
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.
|
|
400
|
+
const ZONOS_URL = "https://v1.3.281.js.zonos.com";
|
|
401
|
+
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.281";
|
|
402
|
+
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.281";
|
|
403
|
+
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.281";
|
|
404
404
|
const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
|
|
405
405
|
const GOOGLE_FONT_REGEX = /^https:\/\/fonts\.googleapis\.com/;
|
|
406
406
|
class Zonos {
|
|
@@ -418,7 +418,7 @@ Zonos.iframeLogType = typeof window !== 'undefined'
|
|
|
418
418
|
? new URLSearchParams(window.location.search).get('iframeLogType')
|
|
419
419
|
: null;
|
|
420
420
|
Zonos.isBigCommerce = false;
|
|
421
|
-
Zonos.releaseDate = "
|
|
421
|
+
Zonos.releaseDate = "1784328589757";
|
|
422
422
|
Zonos.isLegacyCheckout = false;
|
|
423
423
|
Zonos.googleAnalyticId = null;
|
|
424
424
|
Zonos.googleAnalyticReady = false;
|
|
@@ -443,7 +443,7 @@ Zonos.isNpm = true;
|
|
|
443
443
|
Zonos.zonosQaUrl = null;
|
|
444
444
|
Zonos.zonosQaUrlApi = null;
|
|
445
445
|
Zonos.trackEventLogs = [];
|
|
446
|
-
Zonos.version = `v${"1.3.
|
|
446
|
+
Zonos.version = `v${"1.3.281"}`;
|
|
447
447
|
Zonos.modeAlerted = false;
|
|
448
448
|
Zonos.cartData = null;
|
|
449
449
|
Zonos.paypal = null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as createStore, z as zonosStore } from './zonosStore-b7d3f9b0.js';
|
|
2
|
-
import { b as stripeStore, K as stripeStoreBuildAddressForPartyCreate, d as cartStore, L as cartStoreUpdateSelectedShippingOption } from './cart-
|
|
3
|
-
import { s as storageStore } from './localization-
|
|
2
|
+
import { b as stripeStore, K as stripeStoreBuildAddressForPartyCreate, d as cartStore, L as cartStoreUpdateSelectedShippingOption } from './cart-c66ec17e.js';
|
|
3
|
+
import { s as storageStore } from './localization-6d36209f.js';
|
|
4
4
|
import { h as handleFetch, s as sendErrorLog, l as logError } from './handleFetch-a844cac1.js';
|
|
5
5
|
import { b as allLogs } from './VarianceTest-572cecf5.js';
|
|
6
6
|
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whether a link points at the same-origin native `/checkout` page.
|
|
3
|
+
*
|
|
4
|
+
* Merchant custom messages in the international checkout can contain a link
|
|
5
|
+
* like "click here to complete checkout" that targets the store's native
|
|
6
|
+
* BigCommerce checkout. When that link is same-host `/checkout`, we want it to
|
|
7
|
+
* navigate the current tab instead of opening a new one — so the Zonos checkout
|
|
8
|
+
* unloads and the native checkout opens in its place rather than leaving two
|
|
9
|
+
* checkouts open at once (05CHECK-887).
|
|
10
|
+
*
|
|
11
|
+
* Returns `false` for cross-origin links, non-`/checkout` paths, or unparsable
|
|
12
|
+
* hrefs (which should keep their default new-tab behavior).
|
|
13
|
+
*/
|
|
14
|
+
const isSameHostCheckoutLink = (href) => {
|
|
15
|
+
try {
|
|
16
|
+
const url = new URL(href, window.location.href);
|
|
17
|
+
// Normalize a trailing slash so `/checkout` and `/checkout/` both match.
|
|
18
|
+
const pathname = url.pathname.replace(/\/+$/, '');
|
|
19
|
+
return (url.hostname === window.location.hostname && pathname === '/checkout');
|
|
20
|
+
}
|
|
21
|
+
catch (_a) {
|
|
22
|
+
return false;
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export { isSameHostCheckoutLink as i };
|