@zonos/elements 1.3.22 → 1.3.24
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/{ILanguage-d247b45b.js → ILanguage-98b04442.js} +2 -2
- package/dist/cjs/{cart-f963b239.js → cart-31ad351d.js} +399 -220
- package/dist/cjs/{getBorderRadius-332422ab.js → getBorderRadius-ea0984bb.js} +1 -1
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/{isDarkColor-3ddf6511.js → isDarkColor-b14d5752.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{submitGtag-8d562ad4.js → submitGtag-d37af04d.js} +2 -2
- package/dist/cjs/zonos-address_8.cjs.entry.js +7 -7
- package/dist/cjs/zonos-badge_2.cjs.entry.js +3 -3
- package/dist/cjs/zonos-banner.cjs.entry.js +1 -1
- package/dist/cjs/zonos-button_3.cjs.entry.js +3 -3
- package/dist/cjs/zonos-card_2.cjs.entry.js +5 -5
- package/dist/cjs/{zonos-cart-items_11.cjs.entry.js → zonos-cart-items_12.cjs.entry.js} +41 -12
- package/dist/cjs/zonos-checkout.cjs.entry.js +46 -6
- package/dist/cjs/zonos-component.cjs.entry.js +1 -1
- package/dist/cjs/zonos-controller.cjs.entry.js +9 -7
- package/dist/cjs/zonos-country-flag.cjs.entry.js +4 -4
- package/dist/cjs/zonos-country-select_3.cjs.entry.js +7 -7
- package/dist/cjs/zonos-elements.cjs.js +1 -1
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +13 -11
- package/dist/cjs/zonos-hello.cjs.entry.js +15 -11
- package/dist/cjs/zonos-input.cjs.entry.js +2 -2
- package/dist/cjs/zonos-logo.cjs.entry.js +1 -1
- package/dist/cjs/zonos-notification.cjs.entry.js +1 -1
- package/dist/cjs/zonos-payment.cjs.entry.js +5 -5
- package/dist/cjs/zonos-select-dialog-header_2.cjs.entry.js +5 -5
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +2 -2
- package/dist/cjs/zonos-text.cjs.entry.js +1 -1
- package/dist/cjs/{zonosStore-768d6ca0.js → zonosStore-3958bbeb.js} +0 -2
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.css +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +44 -2
- package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.css +2 -2
- package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +31 -10
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.css +4 -4
- package/dist/collection/components/common/zonos-rest-state/assets/Boxes.png +0 -0
- package/dist/collection/components/common/zonos-rest-state/assets/Earth.png +0 -0
- package/dist/collection/components/common/zonos-rest-state/assets/EmptyBox.png +0 -0
- package/dist/collection/components/common/zonos-rest-state/assets/Lock.png +0 -0
- package/dist/collection/components/common/zonos-rest-state/assets/PigBank.png +0 -0
- package/dist/collection/components/common/zonos-rest-state/assets/Scribble.png +0 -0
- package/dist/collection/components/common/zonos-rest-state/assets/Search.png +0 -0
- package/dist/collection/components/common/zonos-rest-state/assets/Settings.png +0 -0
- package/dist/collection/components/common/zonos-rest-state/assets/ShoppingCart.png +0 -0
- package/dist/collection/components/common/zonos-rest-state/assets/SpilledCup.png +0 -0
- package/dist/collection/components/common/zonos-rest-state/assets/Switch.png +0 -0
- package/dist/collection/components/common/zonos-rest-state/assets/TaxId.png +0 -0
- package/dist/collection/components/common/zonos-rest-state/assets/Truck.png +0 -0
- package/dist/collection/components/common/zonos-rest-state/assets/Warning.png +0 -0
- package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.css +53 -0
- package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.js +102 -0
- package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
- package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
- package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
- package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
- package/dist/collection/components/hello/zonos-hello/zonos-hello.js +3 -1
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -3
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +9 -7
- package/dist/collection/components/main/zonos-controller.js +1 -1
- package/dist/collection/components/store/hello/localization.js +1 -1
- package/dist/collection/components/store/translationStore/strings.arabic.js +19 -10
- package/dist/collection/components/store/translationStore/strings.base.js +19 -10
- package/dist/collection/components/store/translationStore/strings.chinese.js +19 -10
- package/dist/collection/components/store/translationStore/strings.danish.js +19 -10
- package/dist/collection/components/store/translationStore/strings.dutch.js +19 -10
- package/dist/collection/components/store/translationStore/strings.french.js +19 -10
- package/dist/collection/components/store/translationStore/strings.german.js +19 -10
- package/dist/collection/components/store/translationStore/strings.hebrew.js +19 -10
- package/dist/collection/components/store/translationStore/strings.indonesian.js +19 -10
- package/dist/collection/components/store/translationStore/strings.italian.js +19 -10
- package/dist/collection/components/store/translationStore/strings.japanese.js +19 -10
- package/dist/collection/components/store/translationStore/strings.korean.js +19 -10
- package/dist/collection/components/store/translationStore/strings.norwegian.js +19 -10
- package/dist/collection/components/store/translationStore/strings.polish.js +19 -10
- package/dist/collection/components/store/translationStore/strings.portuguese.js +19 -10
- package/dist/collection/components/store/translationStore/strings.russian.js +19 -10
- package/dist/collection/components/store/translationStore/strings.spanish.js +19 -10
- package/dist/collection/components/store/translationStore/strings.swedish.js +19 -10
- package/dist/collection/components/store/translationStore/strings.turkish.js +19 -10
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +19 -10
- package/dist/collection/components/store/translationStore.js +2 -2
- package/dist/collection/components/store/zonosStore.js +0 -2
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +1 -1
- package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +1 -1
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
- package/dist/collection/components/utils/hello/currencyConversion/currencyDisplay.js +1 -15
- package/dist/collection/components/utils/hello/currencyConversion/defaultCurrencyConverter.js +14 -2
- package/dist/collection/components/utils/hello/getCurrentHelloLocalePage.js +8 -6
- package/dist/collection/components/utils/hello/initHello.js +4 -2
- package/dist/collection/components/utils/restStateType.js +16 -0
- package/dist/collection/types/ILanguage.js +2 -2
- package/dist/esm/{ILanguage-97790bee.js → ILanguage-cd6acb72.js} +2 -2
- package/dist/esm/{cart-efecbea6.js → cart-8662415b.js} +399 -220
- package/dist/esm/{getBorderRadius-a2e46e26.js → getBorderRadius-5e5a5800.js} +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/{isDarkColor-69ed8e39.js → isDarkColor-5185b62c.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{submitGtag-a7b8a86e.js → submitGtag-07553cf5.js} +2 -2
- package/dist/esm/zonos-address_8.entry.js +7 -7
- package/dist/esm/zonos-badge_2.entry.js +3 -3
- package/dist/esm/zonos-banner.entry.js +1 -1
- package/dist/esm/zonos-button_3.entry.js +3 -3
- package/dist/esm/zonos-card_2.entry.js +5 -5
- package/dist/esm/{zonos-cart-items_11.entry.js → zonos-cart-items_12.entry.js} +41 -13
- package/dist/esm/zonos-checkout.entry.js +47 -7
- package/dist/esm/zonos-component.entry.js +1 -1
- package/dist/esm/zonos-controller.entry.js +9 -7
- package/dist/esm/zonos-country-flag.entry.js +4 -4
- package/dist/esm/zonos-country-select_3.entry.js +7 -7
- package/dist/esm/zonos-elements.js +1 -1
- package/dist/esm/zonos-hello-dialog.entry.js +13 -11
- package/dist/esm/zonos-hello.entry.js +15 -11
- package/dist/esm/zonos-input.entry.js +2 -2
- package/dist/esm/zonos-logo.entry.js +1 -1
- package/dist/esm/zonos-notification.entry.js +1 -1
- package/dist/esm/zonos-payment.entry.js +5 -5
- package/dist/esm/zonos-select-dialog-header_2.entry.js +5 -5
- package/dist/esm/zonos-shipping-rich-radio.entry.js +2 -2
- package/dist/esm/zonos-text.entry.js +1 -1
- package/dist/esm/{zonosStore-93da32b4.js → zonosStore-8b9ea19c.js} +0 -2
- package/dist/esm-es5/ILanguage-cd6acb72.js +1 -0
- package/dist/esm-es5/cart-8662415b.js +1 -0
- package/dist/esm-es5/{getBorderRadius-a2e46e26.js → getBorderRadius-5e5a5800.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{isDarkColor-69ed8e39.js → isDarkColor-5185b62c.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{submitGtag-a7b8a86e.js → submitGtag-07553cf5.js} +1 -1
- package/dist/esm-es5/zonos-address_8.entry.js +1 -1
- package/dist/esm-es5/zonos-badge_2.entry.js +1 -1
- package/dist/esm-es5/zonos-banner.entry.js +1 -1
- package/dist/esm-es5/zonos-button_3.entry.js +1 -1
- package/dist/esm-es5/zonos-card_2.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -0
- package/dist/esm-es5/zonos-checkout.entry.js +1 -1
- package/dist/esm-es5/zonos-component.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_3.entry.js +1 -1
- package/dist/esm-es5/zonos-elements.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-input.entry.js +1 -1
- package/dist/esm-es5/zonos-logo.entry.js +1 -1
- package/dist/esm-es5/zonos-notification.entry.js +1 -1
- package/dist/esm-es5/zonos-payment.entry.js +1 -1
- package/dist/esm-es5/zonos-select-dialog-header_2.entry.js +1 -1
- package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
- package/dist/esm-es5/zonos-text.entry.js +1 -1
- package/dist/esm-es5/{zonosStore-93da32b4.js → zonosStore-8b9ea19c.js} +1 -1
- package/dist/scripts/index.d.ts +74 -12
- 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/checkout/zonos-checkout/zonos-checkout.d.ts +12 -0
- package/dist/types/components/common/zonos-confirm-dialog/zonos-confirm-dialog.d.ts +8 -1
- package/dist/types/components/common/zonos-rest-state/zonos-rest-state.d.ts +21 -0
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +17 -8
- package/dist/types/components/store/translationStore/strings.base.d.ts +17 -8
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +17 -8
- package/dist/types/components/store/translationStore/strings.danish.d.ts +17 -8
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +17 -8
- package/dist/types/components/store/translationStore/strings.french.d.ts +17 -8
- package/dist/types/components/store/translationStore/strings.german.d.ts +17 -8
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +17 -8
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +17 -8
- package/dist/types/components/store/translationStore/strings.italian.d.ts +17 -8
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +17 -8
- package/dist/types/components/store/translationStore/strings.korean.d.ts +17 -8
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +17 -8
- package/dist/types/components/store/translationStore/strings.polish.d.ts +17 -8
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +17 -8
- package/dist/types/components/store/translationStore/strings.russian.d.ts +17 -8
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +17 -8
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +17 -8
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +17 -8
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +17 -8
- package/dist/types/components/store/translationStore.d.ts +7 -7
- package/dist/types/components/utils/hello/currencyConversion/getCurrencyElements.d.ts +1 -1
- package/dist/types/components/utils/restStateType.d.ts +2 -0
- package/dist/types/components.d.ts +52 -3
- package/dist/types/scripts/_zonosBase.d.ts +21 -2
- package/dist/types/types/ILanguage.d.ts +2 -2
- package/dist/types/types/hello/HelloConfig.d.ts +1 -3
- package/dist/zonos-elements/assets/Boxes.png +0 -0
- package/dist/zonos-elements/assets/Earth.png +0 -0
- package/dist/zonos-elements/assets/EmptyBox.png +0 -0
- package/dist/zonos-elements/assets/Lock.png +0 -0
- package/dist/zonos-elements/assets/PigBank.png +0 -0
- package/dist/zonos-elements/assets/Scribble.png +0 -0
- package/dist/zonos-elements/assets/Search.png +0 -0
- package/dist/zonos-elements/assets/Settings.png +0 -0
- package/dist/zonos-elements/assets/ShoppingCart.png +0 -0
- package/dist/zonos-elements/assets/SpilledCup.png +0 -0
- package/dist/zonos-elements/assets/Switch.png +0 -0
- package/dist/zonos-elements/assets/TaxId.png +0 -0
- package/dist/zonos-elements/assets/Truck.png +0 -0
- package/dist/zonos-elements/assets/Warning.png +0 -0
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-c77c056d.system.entry.js → p-02a01106.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-283aa6f9.system.entry.js → p-088d6460.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-13940c52.entry.js → p-0ea19a4d.entry.js} +1 -1
- package/dist/zonos-elements/p-144147f8.system.entry.js +1 -0
- package/dist/zonos-elements/{p-ecaed308.system.entry.js → p-1620d0cc.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-7d2fc0fd.entry.js → p-1752853e.entry.js} +1 -1
- package/dist/zonos-elements/{p-8df58197.system.entry.js → p-1d7c9c24.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-33f83b9a.system.entry.js → p-1e2fbb1d.system.entry.js} +1 -1
- package/dist/zonos-elements/p-1fed304e.system.js +1 -0
- package/dist/zonos-elements/{p-498a0e18.entry.js → p-2701e08c.entry.js} +1 -1
- package/dist/zonos-elements/{p-140bb400.system.entry.js → p-299bceb7.system.entry.js} +1 -1
- package/dist/zonos-elements/p-33b054d9.system.js +1 -0
- package/dist/zonos-elements/{p-d6f829c2.entry.js → p-33bcb4ab.entry.js} +1 -1
- package/dist/zonos-elements/{p-5b7438ef.entry.js → p-41413c70.entry.js} +1 -1
- package/dist/zonos-elements/{p-bbe5d0f0.entry.js → p-44c59c27.entry.js} +1 -1
- package/dist/zonos-elements/p-45969dde.system.entry.js +1 -0
- package/dist/zonos-elements/p-4f2986fa.system.entry.js +1 -0
- package/dist/zonos-elements/{p-1e07c616.system.entry.js → p-5992c6fb.system.entry.js} +1 -1
- package/dist/zonos-elements/p-5a11a235.system.entry.js +1 -0
- package/dist/zonos-elements/{p-c53f7199.entry.js → p-6260d404.entry.js} +1 -1
- package/dist/zonos-elements/p-687f1f62.entry.js +1 -0
- package/dist/zonos-elements/{p-36f8a3df.system.js → p-7d48c12c.system.js} +1 -1
- package/dist/zonos-elements/{p-68e3ef26.system.entry.js → p-7f08c0f4.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-a20f6ba3.entry.js → p-7fa5a6ea.entry.js} +1 -1
- package/dist/zonos-elements/p-81750812.entry.js +1 -0
- package/dist/zonos-elements/{p-298b5d95.entry.js → p-84791c5c.entry.js} +1 -1
- package/dist/zonos-elements/{p-884b41a8.system.js → p-8853e051.system.js} +1 -1
- package/dist/zonos-elements/{p-57d70603.entry.js → p-8e584524.entry.js} +1 -1
- package/dist/zonos-elements/{p-8171d013.system.entry.js → p-941a01be.system.entry.js} +1 -1
- package/dist/zonos-elements/p-97aceb11.js +1 -0
- package/dist/zonos-elements/{p-2d3940dc.entry.js → p-9c0859b5.entry.js} +1 -1
- package/dist/zonos-elements/{p-c0f0edbe.entry.js → p-9c8705ac.entry.js} +1 -1
- package/dist/zonos-elements/{p-795a3ed5.js → p-a5e9d372.js} +1 -1
- package/dist/zonos-elements/p-a67e5a9b.js +1 -0
- package/dist/zonos-elements/p-afc277d9.entry.js +1 -0
- package/dist/zonos-elements/{p-85a49fb8.system.entry.js → p-b45db572.system.entry.js} +1 -1
- package/dist/zonos-elements/p-b56c38a9.entry.js +1 -0
- package/dist/zonos-elements/{p-3bee1a04.system.entry.js → p-b79753bb.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-a52afd83.system.js → p-be14323b.system.js} +1 -1
- package/dist/zonos-elements/{p-95ffff25.js → p-bf9dca26.js} +1 -1
- package/dist/zonos-elements/{p-5ca32f4f.entry.js → p-bfc30599.entry.js} +1 -1
- package/dist/zonos-elements/{p-d8255adf.entry.js → p-c0ddef11.entry.js} +1 -1
- package/dist/zonos-elements/{p-20ab8daf.system.entry.js → p-c41d1708.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-df267420.js → p-c53cef11.js} +1 -1
- package/dist/zonos-elements/{p-2641f474.system.entry.js → p-c8e83577.system.entry.js} +1 -1
- package/dist/zonos-elements/p-c9e433c0.system.js +1 -0
- package/dist/zonos-elements/{p-6e717c40.system.entry.js → p-cbe5c7bb.system.entry.js} +1 -1
- package/dist/zonos-elements/p-d1b8bfce.system.js +1 -0
- package/dist/zonos-elements/p-d29b5bff.entry.js +1 -0
- package/dist/zonos-elements/{p-18432252.js → p-d6307a6d.js} +1 -1
- package/dist/zonos-elements/{p-5edc4f18.system.entry.js → p-d6796b73.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c2328652.system.entry.js → p-d7e6cad0.system.entry.js} +1 -1
- package/dist/zonos-elements/p-e0bf9666.system.js +1 -1
- package/dist/zonos-elements/{p-e5f7ff0f.entry.js → p-f3feed11.entry.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +7 -15
- package/dist/esm-es5/ILanguage-97790bee.js +0 -1
- package/dist/esm-es5/cart-efecbea6.js +0 -1
- package/dist/esm-es5/zonos-cart-items_11.entry.js +0 -1
- package/dist/zonos-elements/p-102c670d.entry.js +0 -1
- package/dist/zonos-elements/p-16ad90ca.js +0 -1
- package/dist/zonos-elements/p-348adf28.js +0 -1
- package/dist/zonos-elements/p-49061c5d.entry.js +0 -1
- package/dist/zonos-elements/p-678daa20.system.entry.js +0 -1
- package/dist/zonos-elements/p-8a65433a.entry.js +0 -1
- package/dist/zonos-elements/p-968df90a.entry.js +0 -1
- package/dist/zonos-elements/p-9a299a98.system.entry.js +0 -1
- package/dist/zonos-elements/p-abe7524f.system.js +0 -1
- package/dist/zonos-elements/p-c7360a6c.system.js +0 -1
- package/dist/zonos-elements/p-d0a2b1ba.system.entry.js +0 -1
- package/dist/zonos-elements/p-d0c53fba.system.js +0 -1
- package/dist/zonos-elements/p-dafc6260.system.js +0 -1
- package/dist/zonos-elements/p-e625f68d.system.entry.js +0 -1
- package/dist/zonos-elements/p-edfb5021.entry.js +0 -1
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
export const stringsVietnamese = {
|
|
2
|
-
'${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.': {
|
|
3
|
-
value: '${percentage} GST phải trả cho bất kỳ đơn hàng nào trên ${threshold}, cùng với phí giao dịch nhập khẩu và thuế MPI.',
|
|
4
|
-
},
|
|
5
|
-
'${percentage} GST due on any order above ${threshold}.': {
|
|
6
|
-
value: '${percentage} GST phải trả cho bất kỳ đơn hàng nào trên ${threshold}.',
|
|
7
|
-
},
|
|
8
2
|
'Above de minimis threshold for': {
|
|
9
3
|
value: 'Vượt ngưỡng miễn thuế đối với',
|
|
10
4
|
},
|
|
@@ -131,8 +125,8 @@ export const stringsVietnamese = {
|
|
|
131
125
|
'Order total': {
|
|
132
126
|
value: 'Tổng đơn hàng',
|
|
133
127
|
},
|
|
134
|
-
'Orders to
|
|
135
|
-
value: 'Đơn hàng đến
|
|
128
|
+
'Orders to [countryName] must be over [threshold] to ship.': {
|
|
129
|
+
value: 'Đơn hàng đến [countryName] phải trên [threshold] mới được gửi.',
|
|
136
130
|
},
|
|
137
131
|
Pay: {
|
|
138
132
|
value: 'Thanh toán',
|
|
@@ -167,6 +161,9 @@ export const stringsVietnamese = {
|
|
|
167
161
|
'Prepay duties and taxes at checkout': {
|
|
168
162
|
value: 'Thanh toán trước thuế và phí khi thanh toán',
|
|
169
163
|
},
|
|
164
|
+
Reload: {
|
|
165
|
+
value: 'Tải lại',
|
|
166
|
+
},
|
|
170
167
|
'Restricted item': {
|
|
171
168
|
value: 'Hàng hóa bị hạn chế',
|
|
172
169
|
},
|
|
@@ -185,6 +182,9 @@ export const stringsVietnamese = {
|
|
|
185
182
|
'Select a language': {
|
|
186
183
|
value: 'Chọn một ngôn ngữ',
|
|
187
184
|
},
|
|
185
|
+
'Session timed out': {
|
|
186
|
+
value: 'Phiên đã hết hạn',
|
|
187
|
+
},
|
|
188
188
|
Shipping: {
|
|
189
189
|
value: 'Vận chuyển',
|
|
190
190
|
},
|
|
@@ -239,8 +239,8 @@ export const stringsVietnamese = {
|
|
|
239
239
|
"We've sent an email confirmation of the order details for your review. And our team is carefully preparing your order so it arrives on time.": {
|
|
240
240
|
value: 'Chúng tôi đã gửi email xác nhận chi tiết đơn hàng để bạn xem lại. Và đội ngũ của chúng tôi đang cẩn thận chuẩn bị đơn hàng của bạn để đảm bảo giao đúng hạn.',
|
|
241
241
|
},
|
|
242
|
-
'Welcome to': {
|
|
243
|
-
value: 'Chào mừng đến với',
|
|
242
|
+
'Welcome to [storeName]!': {
|
|
243
|
+
value: 'Chào mừng đến với [storeName]!',
|
|
244
244
|
},
|
|
245
245
|
'Welcome!': {
|
|
246
246
|
value: 'Chào mừng!',
|
|
@@ -254,9 +254,18 @@ export const stringsVietnamese = {
|
|
|
254
254
|
"You're all set!": {
|
|
255
255
|
value: 'Bạn đã sẵn sàng!',
|
|
256
256
|
},
|
|
257
|
+
'Your checkout session has expired. Please reload the page to continue.': {
|
|
258
|
+
value: 'Phiên thanh toán của bạn đã hết hạn. Vui lòng tải lại trang để tiếp tục.',
|
|
259
|
+
},
|
|
257
260
|
'Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us.': {
|
|
258
261
|
value: 'Thanh toán của bạn thành công! Cảm ơn bạn đã mua sắm với chúng tôi! Chúng tôi hy vọng bạn có trải nghiệm thú vị và sự ủng hộ của bạn thật sự ý nghĩa với chúng tôi.',
|
|
259
262
|
},
|
|
263
|
+
'[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.': {
|
|
264
|
+
value: '[percentage] GST phải trả cho bất kỳ đơn hàng nào trên [threshold], cùng với phí giao dịch nhập khẩu và thuế MPI.',
|
|
265
|
+
},
|
|
266
|
+
'[percentage] GST due on any order above [threshold].': {
|
|
267
|
+
value: '[percentage] GST phải trả cho bất kỳ đơn hàng nào trên [threshold].',
|
|
268
|
+
},
|
|
260
269
|
'business days': {
|
|
261
270
|
value: 'ngày làm việc',
|
|
262
271
|
},
|
|
@@ -90,7 +90,7 @@ const translationStoreUpdateLanguage = (language) => {
|
|
|
90
90
|
* Translate a string with variables if variable pattern is present in the string
|
|
91
91
|
* @example
|
|
92
92
|
* // Require variables:
|
|
93
|
-
* translate('
|
|
93
|
+
* translate('[percentage] GST due on any order above [threshold].', { percentage: '5%', threshold: '$100' })
|
|
94
94
|
* // No variables:
|
|
95
95
|
* translate('Above de minimis threshold for')
|
|
96
96
|
*/
|
|
@@ -100,7 +100,7 @@ const translate = (...[key, replacement]) => {
|
|
|
100
100
|
// replace all variables in the string
|
|
101
101
|
let translatedString = ((_a = translationStore.translatedChunks[key]) === null || _a === void 0 ? void 0 : _a.value) || key;
|
|
102
102
|
Object.entries(replacement).forEach(([replacementKey, replaceValue]) => {
|
|
103
|
-
translatedString = translatedString.replace(new RegExp(
|
|
103
|
+
translatedString = translatedString.replace(new RegExp(`\\[${replacementKey}\\]`, 'g'), replaceValue);
|
|
104
104
|
});
|
|
105
105
|
return translatedString;
|
|
106
106
|
}
|
|
@@ -52,7 +52,6 @@ const { dispose: zonosStoreDispose, reset, state: zonosStore, } = createStore(()
|
|
|
52
52
|
countryOverrideBehavior: 'URL_PARAM',
|
|
53
53
|
currencyBehavior: 'ENABLED',
|
|
54
54
|
currencyElementSelector: '.money',
|
|
55
|
-
dutyTaxEstimationBehavior: 'ENABLED',
|
|
56
55
|
excludedUrlPatterns: [],
|
|
57
56
|
homepageUrlPattern: '',
|
|
58
57
|
mobileLocation: 'BOTTOM_RIGHT',
|
|
@@ -64,7 +63,6 @@ const { dispose: zonosStoreDispose, reset, state: zonosStore, } = createStore(()
|
|
|
64
63
|
productDescriptionElementSelector: '',
|
|
65
64
|
productDetailUrlPattern: '',
|
|
66
65
|
productListUrlPattern: '',
|
|
67
|
-
productPriceElementSelector: '',
|
|
68
66
|
productTitleElementSelector: '',
|
|
69
67
|
restrictionBehavior: 'DISABLED',
|
|
70
68
|
},
|
|
@@ -135,7 +135,7 @@ export class ZonosAddress {
|
|
|
135
135
|
}
|
|
136
136
|
render() {
|
|
137
137
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
138
|
-
return (h(Host, { key: '
|
|
138
|
+
return (h(Host, { key: 'cc7f2af47b78430a164bcc6e96e60c133b8a8139', class: "zonos--address zonos--elements" }, h("zonos-text", { key: 'f8f09068fccd362fff50b2d5736394378ebb179a', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("div", { key: '2facdefb52dbb811931484933fe73c576420205d', class: "zonos--address-component" })));
|
|
139
139
|
}
|
|
140
140
|
static get is() { return "zonos-address"; }
|
|
141
141
|
static get encapsulation() { return "scoped"; }
|
package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js
CHANGED
|
@@ -42,7 +42,7 @@ export class ZonosLinkAuthentication {
|
|
|
42
42
|
}
|
|
43
43
|
render() {
|
|
44
44
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
45
|
-
return (h(Host, { key: '
|
|
45
|
+
return (h(Host, { key: '3f2df53c0bdbd8b5d2fdd82c1af2cafe762d9063', class: "zonos--link-authentication zonos--elements" }, h("zonos-text", { key: 'fed343301247701859cec912cd03404eefd886f7', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("div", { key: '46c604f145c75749060c4660ad10b38820bc6907', class: "zonos--link-authentication-component" })));
|
|
46
46
|
}
|
|
47
47
|
static get is() { return "zonos-link-authentication"; }
|
|
48
48
|
static get encapsulation() { return "scoped"; }
|
|
@@ -37,7 +37,7 @@ export class ZonosPayment {
|
|
|
37
37
|
}
|
|
38
38
|
render() {
|
|
39
39
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
40
|
-
return (h(Host, { key: '
|
|
40
|
+
return (h(Host, { key: '0add83652f88a929eb76727e27455a0ddd6866fb', class: "zonos--payment zonos--elements" }, this.titleText && (h("zonos-text", { key: 'ff4eb31c3f402562d4c85848bf6bb34c4f0b1bab', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), h("div", { key: 'fba7df5c0ca94d2374aab0f24e3111f4b08eff11', class: "zonos--payment-component" })));
|
|
41
41
|
}
|
|
42
42
|
static get is() { return "zonos-payment"; }
|
|
43
43
|
static get encapsulation() { return "scoped"; }
|
|
@@ -1,22 +1,8 @@
|
|
|
1
1
|
import { zonosStore } from "../../../store/zonosStore";
|
|
2
|
-
import { currencyConvert } from "./currencyConvert";
|
|
3
|
-
import { currencyConvertAndFormat } from "./currencyConvertAndFormat";
|
|
4
|
-
import { currencyFormat } from "./currencyFormat";
|
|
5
2
|
import { defaultCurrencyConverter } from "./defaultCurrencyConverter";
|
|
6
3
|
export const currencyDisplay = () => {
|
|
7
4
|
if (zonosStore.helloSettings.currencyBehavior === 'DISABLED') {
|
|
8
5
|
return;
|
|
9
6
|
}
|
|
10
|
-
|
|
11
|
-
if (zonosStore.currencyConverter) {
|
|
12
|
-
zonosStore.currencyConverter({
|
|
13
|
-
convert: currencyConvert,
|
|
14
|
-
convertAndFormat: currencyConvertAndFormat,
|
|
15
|
-
format: (value) => currencyFormat({ amount: value }),
|
|
16
|
-
selector: currencyElementSelector,
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
defaultCurrencyConverter();
|
|
21
|
-
}
|
|
7
|
+
defaultCurrencyConverter();
|
|
22
8
|
};
|
package/dist/collection/components/utils/hello/currencyConversion/defaultCurrencyConverter.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { localizationStore } from "../../../store/hello/localization";
|
|
2
2
|
import { zonosStore } from "../../../store/zonosStore";
|
|
3
|
+
import { currencyConvert } from "./currencyConvert";
|
|
3
4
|
import { currencyConvertAndFormat } from "./currencyConvertAndFormat";
|
|
5
|
+
import { currencyFormat } from "./currencyFormat";
|
|
4
6
|
import { getCurrencyElements } from "./getCurrencyElements";
|
|
5
7
|
import { getInitialElementAmount } from "./getInitialElementAmount";
|
|
6
8
|
import { logError } from "../../logging/logError";
|
|
@@ -27,7 +29,17 @@ const convertCurrency = (element) => {
|
|
|
27
29
|
rate !== currentIntlRateValue ||
|
|
28
30
|
// Update currency when the country code changes
|
|
29
31
|
currentCountryValue !== localizationStore.selectedCountryCode)) {
|
|
30
|
-
const
|
|
32
|
+
const customizedCurrencyFormat = typeof zonosStore.currencyConverter === 'function' &&
|
|
33
|
+
zonosStore.currencyConverter({
|
|
34
|
+
convert: currencyConvert,
|
|
35
|
+
convertAndFormat: currencyConvertAndFormat,
|
|
36
|
+
currencyCode: localizationStore.targetCurrency,
|
|
37
|
+
format: (value) => currencyFormat({ amount: value }),
|
|
38
|
+
originalAmount: amount,
|
|
39
|
+
selector: element,
|
|
40
|
+
});
|
|
41
|
+
// default to the currencyConvertAndFormat if the currencyConverter function does not return a value, or invalid value. This is to make sure we don't break the merchant's price.
|
|
42
|
+
const observedFormattedValue = customizedCurrencyFormat || currencyConvertAndFormat(amount);
|
|
31
43
|
element.textContent = observedFormattedValue;
|
|
32
44
|
// save the new rate to the data-zrate attribute
|
|
33
45
|
element.setAttribute('data-zrate', rate.toString());
|
|
@@ -47,7 +59,7 @@ export const defaultCurrencyConverter = () => {
|
|
|
47
59
|
logError('Could not display currency. Exchange rate and format data is not available.');
|
|
48
60
|
return;
|
|
49
61
|
}
|
|
50
|
-
currencyElements.forEach(
|
|
62
|
+
currencyElements.forEach(element => {
|
|
51
63
|
// convert the currency and save the formatted value to the data-zintl attribute
|
|
52
64
|
convertCurrency(element);
|
|
53
65
|
});
|
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
import { zonosStore } from "../../store/zonosStore";
|
|
2
|
+
const matchUrlPattern = (urlPattern) => {
|
|
3
|
+
const trimmedUrl = urlPattern === null || urlPattern === void 0 ? void 0 : urlPattern.replace('www.', '').replace('https://', '');
|
|
4
|
+
return trimmedUrl && new RegExp(trimmedUrl).test(window.location.href);
|
|
5
|
+
};
|
|
2
6
|
export const getCurrentHelloLocalePage = () => {
|
|
3
|
-
const { href } = window.location;
|
|
4
7
|
const { cartUrlPattern, homepageUrlPattern, productDetailUrlPattern, productListUrlPattern, } = zonosStore.helloSettings;
|
|
5
8
|
// The 'if' statements are sorted by most specific to least specific to help with regex matching
|
|
6
|
-
if (
|
|
9
|
+
if (matchUrlPattern(cartUrlPattern)) {
|
|
7
10
|
return 'cart';
|
|
8
11
|
}
|
|
9
|
-
if (productDetailUrlPattern
|
|
10
|
-
new RegExp(productDetailUrlPattern).test(href)) {
|
|
12
|
+
if (matchUrlPattern(productDetailUrlPattern)) {
|
|
11
13
|
return 'productDetail';
|
|
12
14
|
}
|
|
13
|
-
if (
|
|
15
|
+
if (matchUrlPattern(productListUrlPattern)) {
|
|
14
16
|
return 'productList';
|
|
15
17
|
}
|
|
16
|
-
if (
|
|
18
|
+
if (matchUrlPattern(homepageUrlPattern)) {
|
|
17
19
|
return 'home';
|
|
18
20
|
}
|
|
19
21
|
return '';
|
|
@@ -72,9 +72,11 @@ export const initHello = async (helloSettings) => {
|
|
|
72
72
|
childList: true,
|
|
73
73
|
subtree: true,
|
|
74
74
|
});
|
|
75
|
-
// kill observer after
|
|
75
|
+
// kill observer after 1 second if the hello still not injected, if the hello still not injected after 1 second, it's likely that the selector the user doesn't want to use hello
|
|
76
76
|
setTimeout(() => {
|
|
77
77
|
observer.disconnect();
|
|
78
|
-
|
|
78
|
+
// inject hello to mobile anchor if hello is still not found
|
|
79
|
+
injectHelloComponent(mobileHelloAnchor);
|
|
80
|
+
}, 1000);
|
|
79
81
|
}
|
|
80
82
|
};
|
|
@@ -7,11 +7,11 @@ export const languages = [
|
|
|
7
7
|
{ code: 'it', label: 'Italian', translatedLabel: 'Italiano' },
|
|
8
8
|
{ code: 'pl', label: 'Polish', translatedLabel: 'Polskie' },
|
|
9
9
|
{ code: 'ar', label: 'Arabic', translatedLabel: 'عربى' },
|
|
10
|
-
{ code: 'de', label: 'German', translatedLabel: '
|
|
10
|
+
{ code: 'de', label: 'German', translatedLabel: 'Deutsch' },
|
|
11
11
|
{ code: 'ja', label: 'Japanese', translatedLabel: '日本語' },
|
|
12
12
|
{ code: 'no', label: 'Norwegian', translatedLabel: 'norsk' },
|
|
13
13
|
{ code: 'vi', label: 'Vietnamese', translatedLabel: 'Tiếng Việt' },
|
|
14
|
-
{ code: 'tr', label: 'Turkish', translatedLabel: '
|
|
14
|
+
{ code: 'tr', label: 'Turkish', translatedLabel: 'Türkçe' },
|
|
15
15
|
{ code: 'he', label: 'Hebrew', translatedLabel: 'עִברִית' },
|
|
16
16
|
{ code: 'fr', label: 'French', translatedLabel: 'Français' },
|
|
17
17
|
{ code: 'nl', label: 'Dutch', translatedLabel: 'Nederlands' },
|
|
@@ -7,11 +7,11 @@ const languages = [
|
|
|
7
7
|
{ code: 'it', label: 'Italian', translatedLabel: 'Italiano' },
|
|
8
8
|
{ code: 'pl', label: 'Polish', translatedLabel: 'Polskie' },
|
|
9
9
|
{ code: 'ar', label: 'Arabic', translatedLabel: 'عربى' },
|
|
10
|
-
{ code: 'de', label: 'German', translatedLabel: '
|
|
10
|
+
{ code: 'de', label: 'German', translatedLabel: 'Deutsch' },
|
|
11
11
|
{ code: 'ja', label: 'Japanese', translatedLabel: '日本語' },
|
|
12
12
|
{ code: 'no', label: 'Norwegian', translatedLabel: 'norsk' },
|
|
13
13
|
{ code: 'vi', label: 'Vietnamese', translatedLabel: 'Tiếng Việt' },
|
|
14
|
-
{ code: 'tr', label: 'Turkish', translatedLabel: '
|
|
14
|
+
{ code: 'tr', label: 'Turkish', translatedLabel: 'Türkçe' },
|
|
15
15
|
{ code: 'he', label: 'Hebrew', translatedLabel: 'עִברִית' },
|
|
16
16
|
{ code: 'fr', label: 'French', translatedLabel: 'Français' },
|
|
17
17
|
{ code: 'nl', label: 'Dutch', translatedLabel: 'Nederlands' },
|