@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
|
@@ -22,8 +22,9 @@ export class ZonosConfirmDialog {
|
|
|
22
22
|
this.submitBtnColor = undefined;
|
|
23
23
|
this.dialogConfirmBtnText = undefined;
|
|
24
24
|
this.dialogCancelBtnText = undefined;
|
|
25
|
+
this.dialogType = 'confirm';
|
|
25
26
|
this.isMobile = false;
|
|
26
|
-
this.dialogOpen =
|
|
27
|
+
this.dialogOpen = undefined;
|
|
27
28
|
this.noClickOutside = false;
|
|
28
29
|
}
|
|
29
30
|
handleKeyDown(ev) {
|
|
@@ -81,12 +82,12 @@ export class ZonosConfirmDialog {
|
|
|
81
82
|
const borderStyle = getBorderRadius();
|
|
82
83
|
// Get theme for the update dialog, inherit from the theme, no from this component theme
|
|
83
84
|
const theme = getZonosStoreTheme(zonosStore.appearance.theme);
|
|
84
|
-
return (h(Host, { key: '
|
|
85
|
+
return (h(Host, { key: '0adbea273e5504ac29ef8040fd968ded3f731f4b', class: classes([this.dialogOpen && 'open', 'zonos--elements']), "data-dialog-type": this.dialogType, "data-theme": theme, style: {
|
|
85
86
|
'--border-radius': borderStyle,
|
|
86
87
|
'--font-family': zonosStoreFontFamily(),
|
|
87
|
-
} }, h("div", { key: '
|
|
88
|
+
} }, h("div", { key: '4dbb78a0d1fc37dbd573c23aee53838a4578e18e', class: "zonos--backdrop", tabIndex: -1 }), h("div", { key: '106e28d9bea08a332063cf8fe07f7e1db7ef3f0b', "aria-hidden": "true", class: classes(['zonos--confirm-layout', this.dialogIntent]), onClick: e => this.clickOutsideDialogHandler(e) }, h("div", { key: 'b296e7d2c30815147396b6e5c50207b40722d6f5', class: "zonos--confirm-dialog", onBlur: () => {
|
|
88
89
|
this.focusDialog();
|
|
89
|
-
} }, h("div", { key: '
|
|
90
|
+
} }, h("div", { key: 'ba8c7aa3f0a6c3753f2275b2fd9daac8181d8e05', class: "wrapper" }, h("div", { key: '60490f9e714881bd75c6fcad07aebf3ae9d9947b', class: "icon-wrapper" }, this.renderIcon()), h("div", { key: 'd735c7e03bff1d41fdbc003c9628a4abaa4f9313', class: "content" }, h("div", { key: 'e085cea22f8036b3deec9fa9f51c977629e6cc74', class: "title" }, h("zonos-text", { key: '4e41e3b2fe012a8c28daa7ceab614b19299c7cdf', type: "subheader" }, this.dialogTitle)), this.dialogSubtitle && (h("div", { key: '5cc1fefbe7a551bf5ad7ff3744d7ecc6ecf5e73a', class: "subtitle" }, h("zonos-text", { key: '07afaf41a189f491db17d135cf074d4c6152e3cb', textColor: "gray-800" }, this.dialogSubtitle)))), h("div", { key: 'fbcfeb7f1a195ad928dea606f5085d8d2c1f2df6', class: "footer" }, this.dialogType === 'confirm' && (h("zonos-button", { key: 'eab37a4bf872bcde807ea50f33f2f082889a47c1', backgroundColor: "gray-0", class: "cancel-button", onClick: () => this.closeDialogHandler(), size: "lg", withBoxShadow: true }, this.dialogCancelBtnText || translate('Cancel'))), h("zonos-button", { key: '21e66354e0eaa951fd68f86beda36c4a89f06e44', class: "confirm-button", onClick: () => this.confirmDialogHandler(), size: "lg", variant: this.getButtonConfirmVariant() }, this.dialogConfirmBtnText)))))));
|
|
90
91
|
}
|
|
91
92
|
static get is() { return "zonos-confirm-dialog"; }
|
|
92
93
|
static get encapsulation() { return "shadow"; }
|
|
@@ -205,11 +206,11 @@ export class ZonosConfirmDialog {
|
|
|
205
206
|
"mutable": false,
|
|
206
207
|
"complexType": {
|
|
207
208
|
"original": "string",
|
|
208
|
-
"resolved": "string",
|
|
209
|
+
"resolved": "string | undefined",
|
|
209
210
|
"references": {}
|
|
210
211
|
},
|
|
211
|
-
"required":
|
|
212
|
-
"optional":
|
|
212
|
+
"required": false,
|
|
213
|
+
"optional": true,
|
|
213
214
|
"docs": {
|
|
214
215
|
"tags": [],
|
|
215
216
|
"text": "Cancel button text"
|
|
@@ -217,6 +218,27 @@ export class ZonosConfirmDialog {
|
|
|
217
218
|
"attribute": "dialog-cancel-btn-text",
|
|
218
219
|
"reflect": false
|
|
219
220
|
},
|
|
221
|
+
"dialogType": {
|
|
222
|
+
"type": "string",
|
|
223
|
+
"mutable": false,
|
|
224
|
+
"complexType": {
|
|
225
|
+
"original": "'alert' | 'confirm'",
|
|
226
|
+
"resolved": "\"alert\" | \"confirm\"",
|
|
227
|
+
"references": {}
|
|
228
|
+
},
|
|
229
|
+
"required": false,
|
|
230
|
+
"optional": false,
|
|
231
|
+
"docs": {
|
|
232
|
+
"tags": [{
|
|
233
|
+
"name": "default",
|
|
234
|
+
"text": "\"confirm\""
|
|
235
|
+
}],
|
|
236
|
+
"text": "Type of dialog\n- \"alert\" - Only confirm button\n- \"confirm\" - Both Confirm and cancel buttons"
|
|
237
|
+
},
|
|
238
|
+
"attribute": "dialog-type",
|
|
239
|
+
"reflect": false,
|
|
240
|
+
"defaultValue": "'confirm'"
|
|
241
|
+
},
|
|
220
242
|
"isMobile": {
|
|
221
243
|
"type": "boolean",
|
|
222
244
|
"mutable": false,
|
|
@@ -243,15 +265,14 @@ export class ZonosConfirmDialog {
|
|
|
243
265
|
"resolved": "boolean",
|
|
244
266
|
"references": {}
|
|
245
267
|
},
|
|
246
|
-
"required":
|
|
268
|
+
"required": true,
|
|
247
269
|
"optional": false,
|
|
248
270
|
"docs": {
|
|
249
271
|
"tags": [],
|
|
250
272
|
"text": "Whether or not the dialog is open"
|
|
251
273
|
},
|
|
252
274
|
"attribute": "dialog-open",
|
|
253
|
-
"reflect": false
|
|
254
|
-
"defaultValue": "false"
|
|
275
|
+
"reflect": false
|
|
255
276
|
},
|
|
256
277
|
"noClickOutside": {
|
|
257
278
|
"type": "boolean",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
display: flex;
|
|
56
56
|
align-items: center;
|
|
57
57
|
justify-content: center;
|
|
58
|
-
z-index:
|
|
58
|
+
z-index: 2147483009;
|
|
59
59
|
background: var(--zonos-elements-gray-0);
|
|
60
60
|
border-radius: var(--border-radius, var(--zonos-elements-radius-10));
|
|
61
61
|
}
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
}
|
|
74
74
|
:host .zonos--dialog {
|
|
75
75
|
position: relative;
|
|
76
|
-
z-index:
|
|
76
|
+
z-index: 2147483008;
|
|
77
77
|
background: var(--zonos-elements-gray-0);
|
|
78
78
|
max-width: 90vw;
|
|
79
79
|
max-height: 90vh;
|
|
@@ -127,12 +127,12 @@
|
|
|
127
127
|
visibility: visible;
|
|
128
128
|
}
|
|
129
129
|
:host(.open) .zonos--backdrop {
|
|
130
|
-
z-index:
|
|
130
|
+
z-index: 2147483008;
|
|
131
131
|
opacity: 0.65;
|
|
132
132
|
}
|
|
133
133
|
:host(.open) .zonos--dialog-layout {
|
|
134
134
|
opacity: 1;
|
|
135
|
-
z-index:
|
|
135
|
+
z-index: 2147483009;
|
|
136
136
|
transform: scale(1);
|
|
137
137
|
}
|
|
138
138
|
|
|
Binary file
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
font-family: var(--font-family, Inter), Inter;
|
|
3
|
+
display: block;
|
|
4
|
+
white-space: normal;
|
|
5
|
+
}
|
|
6
|
+
:host * {
|
|
7
|
+
font-family: var(--font-family, Inter), Inter;
|
|
8
|
+
}
|
|
9
|
+
:host img {
|
|
10
|
+
max-width: 100%;
|
|
11
|
+
}
|
|
12
|
+
:host dl,
|
|
13
|
+
:host dd,
|
|
14
|
+
:host h1,
|
|
15
|
+
:host h2,
|
|
16
|
+
:host h3,
|
|
17
|
+
:host h4,
|
|
18
|
+
:host h5,
|
|
19
|
+
:host h6,
|
|
20
|
+
:host hr,
|
|
21
|
+
:host figure,
|
|
22
|
+
:host p,
|
|
23
|
+
:host pre {
|
|
24
|
+
margin: 0;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* All sets of variable are here */
|
|
28
|
+
/* smooth font rendering */
|
|
29
|
+
:host {
|
|
30
|
+
-moz-osx-font-smoothing: grayscale;
|
|
31
|
+
-webkit-font-smoothing: antialiased;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
:host {
|
|
35
|
+
height: 100%;
|
|
36
|
+
width: 100%;
|
|
37
|
+
display: flex;
|
|
38
|
+
justify-content: center;
|
|
39
|
+
align-items: center;
|
|
40
|
+
flex-direction: column;
|
|
41
|
+
gap: 20px;
|
|
42
|
+
}
|
|
43
|
+
:host .zonos--restState-image {
|
|
44
|
+
width: 124px;
|
|
45
|
+
height: 124px;
|
|
46
|
+
margin-bottom: 15px;
|
|
47
|
+
}
|
|
48
|
+
:host .content {
|
|
49
|
+
display: flex;
|
|
50
|
+
flex-direction: column;
|
|
51
|
+
align-items: center;
|
|
52
|
+
gap: 8px;
|
|
53
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { getAssetPath, h, Host } from "@stencil/core";
|
|
2
|
+
import { zonosStoreFontFamily } from "../../store/zonosStore";
|
|
3
|
+
import { classes } from "../../utils/classes";
|
|
4
|
+
export class ZonosRestState {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.getImageRestState = () => {
|
|
7
|
+
const imageSrc = getAssetPath(`./assets/${this.restStateType}.png`);
|
|
8
|
+
return imageSrc;
|
|
9
|
+
};
|
|
10
|
+
this.restStateSubtitle = undefined;
|
|
11
|
+
this.restStateTitle = undefined;
|
|
12
|
+
this.restStateType = undefined;
|
|
13
|
+
this.isErrorImageLoad = false;
|
|
14
|
+
}
|
|
15
|
+
render() {
|
|
16
|
+
const imageUrl = this.getImageRestState();
|
|
17
|
+
return (h(Host, { key: '1bfff1095ec5c517b04106972431ac2e7f6355d9', class: classes(['zonos--elements zonos--restState']), style: {
|
|
18
|
+
'--font-family': zonosStoreFontFamily(),
|
|
19
|
+
} }, h("div", { key: 'e4c9b3b63f73c8c9ed04e196369a888fdbece30a', class: "zonos--restState-image" }, h("img", { key: 'e7444fae5141035f415ae0255ce5ff1446910fa4', alt: this.restStateType, onError: () => {
|
|
20
|
+
this.isErrorImageLoad = true;
|
|
21
|
+
}, src: imageUrl })), h("div", { key: '2f1d1ac03dcf47d7fd7bc7014a8c4af0486d3a80', class: "content" }, h("zonos-text", { key: 'bf9fe66af7349c07c6fba5dd4e749a808b051fcc', class: "title", type: "boldSubheader" }, this.restStateTitle), h("zonos-text", { key: '2b9fc699b05557487ad8534f34857febb0defda8', class: "subtitle" }, this.restStateSubtitle)), h("div", { key: 'fe7c44da5367b5b52abbbee2631a955544f41042', class: "action" }, h("slot", { key: '395e78af0e2dff6f0a98e7ac005509c3abb965fd' }))));
|
|
22
|
+
}
|
|
23
|
+
static get is() { return "zonos-rest-state"; }
|
|
24
|
+
static get encapsulation() { return "shadow"; }
|
|
25
|
+
static get originalStyleUrls() {
|
|
26
|
+
return {
|
|
27
|
+
"$": ["zonos-rest-state.scss"]
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
static get styleUrls() {
|
|
31
|
+
return {
|
|
32
|
+
"$": ["zonos-rest-state.css"]
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
static get assetsDirs() { return ["assets"]; }
|
|
36
|
+
static get properties() {
|
|
37
|
+
return {
|
|
38
|
+
"restStateSubtitle": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"mutable": false,
|
|
41
|
+
"complexType": {
|
|
42
|
+
"original": "string",
|
|
43
|
+
"resolved": "string",
|
|
44
|
+
"references": {}
|
|
45
|
+
},
|
|
46
|
+
"required": true,
|
|
47
|
+
"optional": false,
|
|
48
|
+
"docs": {
|
|
49
|
+
"tags": [],
|
|
50
|
+
"text": "The subtitle of the rest state"
|
|
51
|
+
},
|
|
52
|
+
"attribute": "rest-state-subtitle",
|
|
53
|
+
"reflect": false
|
|
54
|
+
},
|
|
55
|
+
"restStateTitle": {
|
|
56
|
+
"type": "string",
|
|
57
|
+
"mutable": false,
|
|
58
|
+
"complexType": {
|
|
59
|
+
"original": "string",
|
|
60
|
+
"resolved": "string",
|
|
61
|
+
"references": {}
|
|
62
|
+
},
|
|
63
|
+
"required": true,
|
|
64
|
+
"optional": false,
|
|
65
|
+
"docs": {
|
|
66
|
+
"tags": [],
|
|
67
|
+
"text": "The title of the rest state"
|
|
68
|
+
},
|
|
69
|
+
"attribute": "rest-state-title",
|
|
70
|
+
"reflect": false
|
|
71
|
+
},
|
|
72
|
+
"restStateType": {
|
|
73
|
+
"type": "string",
|
|
74
|
+
"mutable": false,
|
|
75
|
+
"complexType": {
|
|
76
|
+
"original": "RestStateType",
|
|
77
|
+
"resolved": "\"Boxes\" | \"Earth\" | \"EmptyBox\" | \"Lock\" | \"PigBank\" | \"Scribble\" | \"Search\" | \"Settings\" | \"ShoppingCart\" | \"SpilledCup\" | \"Switch\" | \"TaxId\" | \"Truck\" | \"Warning\"",
|
|
78
|
+
"references": {
|
|
79
|
+
"RestStateType": {
|
|
80
|
+
"location": "import",
|
|
81
|
+
"path": "src/components/utils/restStateType",
|
|
82
|
+
"id": "src/components/utils/restStateType.ts::RestStateType"
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"required": true,
|
|
87
|
+
"optional": false,
|
|
88
|
+
"docs": {
|
|
89
|
+
"tags": [],
|
|
90
|
+
"text": "The type of rest state"
|
|
91
|
+
},
|
|
92
|
+
"attribute": "rest-state-type",
|
|
93
|
+
"reflect": false
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
static get states() {
|
|
98
|
+
return {
|
|
99
|
+
"isErrorImageLoad": {}
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
}
|
package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js
CHANGED
|
@@ -8,9 +8,9 @@ export class ZonosSelectDialogHeader {
|
|
|
8
8
|
this.label = '';
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
|
-
return (h(Host, { key: '
|
|
11
|
+
return (h(Host, { key: 'aee08db0e889bd5a5b9084180f6ee038c120a3b2', class: "zonos--elements", style: {
|
|
12
12
|
'--font-family': zonosStoreFontFamily(),
|
|
13
|
-
} }, h("zonos-v-stack", { key: '
|
|
13
|
+
} }, h("zonos-v-stack", { key: '565a273f0037418387c0868c74943c3325ab6c35', class: "zonos--select-dialog-header-wrapper", spacing: 8 }, h("div", { key: '0d994f27c948e49c092d016a0f1d6e453f80f00a', class: "zonos--select-dialog-header" }, h("zonos-text", { key: 'ee7bb796e921b2a14fa6201c8f17d0dfd9f3a3c2', type: "boldLabel" }, this.label), h("zonos-button", { key: '0e3a6c9c2cc4b67a51015b2fb7345c47a0e5ef23', class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close select dialog", content: RemoveIcon, size: 20 }), noBackground: true, onClick: () => this.handleOnClose() })), h("slot", { key: 'ad9fb089fa4a571a5443431c0d686b4804d25b0a' }))));
|
|
14
14
|
}
|
|
15
15
|
static get is() { return "zonos-select-dialog-header"; }
|
|
16
16
|
static get encapsulation() { return "shadow"; }
|
|
@@ -7,10 +7,10 @@ export class ZonosTooltip {
|
|
|
7
7
|
this.showTooltip = false;
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return (h(Host, { key: '
|
|
10
|
+
return (h(Host, { key: '62f307eee14511a4d37aecd927a25f797e206d8f', class: "zonos--elements" }, h("div", { key: '8bcdbbbd4d9fffe487c975d2f42bc0e7ecc0d7a5', class: "zonos--tooltip", onMouseEnter: () => (this.showTooltip = true), onMouseLeave: () => (this.showTooltip = false) }, h("slot", { key: '53413e70a522d44f044bf08154c933e8d2b6863e' }), h("div", { key: 'b3ff18f30520346abe71df2987763d08ccc21c3c', class: classes([
|
|
11
11
|
this.showTooltip && 'zonos--show-tooltip',
|
|
12
12
|
'zonos--tooltip-content',
|
|
13
|
-
]) }, h("zonos-text", { key: '
|
|
13
|
+
]) }, h("zonos-text", { key: '72567e2ace426b1d45e46a7bb68aa17076fcf7d3', size: "s", textColor: "gray-0", type: "boldLabel" }, this.label), h("zonos-text", { key: '183b70f17a065b3eb3eef65df38bee2092c91582', size: "xs", textColor: "gray-0" }, this.subtitle)))));
|
|
14
14
|
}
|
|
15
15
|
static get is() { return "zonos-tooltip"; }
|
|
16
16
|
static get encapsulation() { return "shadow"; }
|
|
@@ -7,9 +7,9 @@ export class VStack {
|
|
|
7
7
|
this.spacing = 24;
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return (h(Host, { key: '
|
|
10
|
+
return (h(Host, { key: '9b7115624d2e27b1c6da58ac16f6059d5cad71a9', style: {
|
|
11
11
|
'--font-family': zonosStoreFontFamily(),
|
|
12
|
-
} }, h("div", { key: '
|
|
12
|
+
} }, h("div", { key: 'bd3ccd8700897292fd1a9ad40825c851a484fcf2', class: classes(['vstack']), style: { 'grid-row-gap': `${this.spacing}px` } }, h("slot", { key: '1c6fe3e6dc8eda9461eb90180535c9bd563a1840' }))));
|
|
13
13
|
}
|
|
14
14
|
static get is() { return "zonos-v-stack"; }
|
|
15
15
|
static get encapsulation() { return "shadow"; }
|
|
@@ -10,7 +10,7 @@ export class ZonosComponent {
|
|
|
10
10
|
return format(this.first, this.middle, this.last);
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
|
-
return h("div", { key: '
|
|
13
|
+
return h("div", { key: 'b2d57ce9356cd0d1454c7ef195fe0ac21f694b7b' }, "Hello, World! I'm ", this.getText());
|
|
14
14
|
}
|
|
15
15
|
static get is() { return "zonos-component"; }
|
|
16
16
|
static get encapsulation() { return "shadow"; }
|
|
@@ -37,7 +37,9 @@ export class ZonosHello {
|
|
|
37
37
|
case 'productDetail':
|
|
38
38
|
return translate(`See duty and tax thresholds`);
|
|
39
39
|
default:
|
|
40
|
-
return
|
|
40
|
+
return translate('Welcome to [storeName]!', {
|
|
41
|
+
storeName: organizationName,
|
|
42
|
+
});
|
|
41
43
|
}
|
|
42
44
|
};
|
|
43
45
|
this.enableShowPeekMessage = () => {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
import { localizationStore } from "../../../store/hello/localization";
|
|
3
3
|
import { isDarkColor } from "../../../utils/isDarkColor";
|
|
4
|
-
// import { isElementUsingDarkTheme } from 'src/components/utils/isElementUsingDarkTheme';
|
|
5
4
|
import { languages } from "../../../../types/ILanguage";
|
|
6
5
|
// eslint-disable-next-line no-relative-import-paths/no-relative-import-paths
|
|
7
6
|
import Globe from "./assets/globe.svg";
|
|
@@ -19,9 +18,9 @@ export class ZonosHelloDialogFooter {
|
|
|
19
18
|
const language = (_b = languages.find(x => x.code === localizationStore.selectedLocale)) === null || _b === void 0 ? void 0 : _b.translatedLabel;
|
|
20
19
|
// Only use gray-0 (white) when the background color is dark (apply inverted color if the element is using dark theme variable)
|
|
21
20
|
const mainColor = primaryColor && isDarkColor(primaryColor) ? 'white' : 'black';
|
|
22
|
-
return (h(Host, { key: '
|
|
21
|
+
return (h(Host, { key: 'f84d021e99271bd6a00da32edd35fdc5e0520c5a', class: "zonos--elements" }, h("div", { key: '96eeeb3df6698a18ae1439c3c35bc2337fe3e83c', class: "zonos--hello-dialog-footer", style: {
|
|
23
22
|
'--primary-color': primaryColor,
|
|
24
|
-
} }, h("a", { key: '
|
|
23
|
+
} }, h("a", { key: 'bb17cee42a3cb6d88e1b064649184c686ef41201', href: "https://zonos.com", target: "_blank", title: "Zonos website" }, h("zonos-icon", { key: '9183c662eb9d2dbb63b5149c338d013439767634', "aria-label": "Zonos Logo", autoHeight: true, content: ZonosIcon, iconColor: mainColor, size: 108 })), h("div", { key: 'dd5bed89a4a2ae9386fa39fe15362c42fa7535ee', class: "zonos--hello-locale-wrapper" }, h("zonos-button", { key: 'cbe6cb613fb2ca39f772363f8276cbc8c9e28b70', buttonColor: mainColor, icon: h("zonos-icon", { "aria-label": "Open language select", content: Globe, iconColor: mainColor }), onClick: () => this.setShowLanguageSelect(true), variant: "subtle" }, language), h("zonos-button", { key: 'e05876aa9b1e56f945f810b82163335cd14202d1', buttonColor: mainColor, icon: h("zonos-country-flag", { "aria-label": "Open country select", class: "zonos--footer-country-flag", countryCode: localizationStore.selectedCountryCode }), onClick: () => this.setShowCountrySelect(true), variant: "subtle" }, localizationStore.selectedCountryCode)))));
|
|
25
24
|
}
|
|
26
25
|
static get is() { return "zonos-hello-dialog-footer"; }
|
|
27
26
|
static get encapsulation() { return "shadow"; }
|
|
@@ -71,19 +71,19 @@ export class ZonosHelloDialog {
|
|
|
71
71
|
return null;
|
|
72
72
|
}
|
|
73
73
|
const dutyDeminimis = landedCost.dutyDeminimus;
|
|
74
|
-
return translate('Orders to
|
|
74
|
+
return translate('Orders to [countryName] must be over [threshold] to ship.', {
|
|
75
75
|
countryName: 'United Kingdom',
|
|
76
76
|
threshold: currencyFormat({ amount: dutyDeminimis }),
|
|
77
77
|
});
|
|
78
78
|
};
|
|
79
79
|
this.getAustraliaDutyTaxMessage = (landedCost) => {
|
|
80
|
-
return translate('
|
|
80
|
+
return translate('[percentage] GST due on any order above [threshold].', {
|
|
81
81
|
percentage: `${landedCost.vatTaxRate * 100}%`,
|
|
82
82
|
threshold: currencyFormat({ amount: landedCost.vatTaxDeminimus }),
|
|
83
83
|
});
|
|
84
84
|
};
|
|
85
85
|
this.getNewZealandDutyTaxMessge = (landedCost) => {
|
|
86
|
-
return translate('
|
|
86
|
+
return translate('[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.', {
|
|
87
87
|
percentage: `${landedCost.vatTaxRate * 100}%`,
|
|
88
88
|
threshold: currencyFormat({ amount: landedCost.vatTaxDeminimus }),
|
|
89
89
|
});
|
|
@@ -143,23 +143,25 @@ export class ZonosHelloDialog {
|
|
|
143
143
|
(this.dialogRef && getHasMoreSpaceOnRight(this.dialogRef));
|
|
144
144
|
const animateFromBottom = this.dialogRef && getHasMoreSpaceAbove(this.dialogRef);
|
|
145
145
|
const { customMessages } = localizationStore;
|
|
146
|
-
const welcomeMessage =
|
|
146
|
+
const welcomeMessage = translate('Welcome to [storeName]!', {
|
|
147
|
+
storeName: zonosStore.organizationName,
|
|
148
|
+
});
|
|
147
149
|
const defaultMessageStr = ((_a = customMessages.find(x => x.pageName === 'hello_default')) === null || _a === void 0 ? void 0 : _a.message) ||
|
|
148
150
|
translate('Know about duties and taxes before you buy. Shop with confidence!');
|
|
149
151
|
const defaultMessage = formatStringWithLinks(defaultMessageStr);
|
|
150
152
|
const currentPage = this.getCurrentPageEnum();
|
|
151
153
|
const filteredMessages = customMessages.filter(x => x.pageName === currentPage);
|
|
152
|
-
return (h(Host, { key: '
|
|
154
|
+
return (h(Host, { key: '354758888accf5c5f44e321cc36f3126fe161596', class: "zonos--elements" }, h("div", { key: 'b6e9ef3ac53035b578f1ccb6940e04561a6c7362', "aria-hidden": "true", class: classes([
|
|
153
155
|
'zonos--hello-dialog',
|
|
154
156
|
animateLeft && 'zonos--hello-dialog-animate-from-left',
|
|
155
157
|
animateFromBottom && 'zonos--hello-dialog-animate-from-bottom',
|
|
156
158
|
!!this.mobileLocationOverride &&
|
|
157
159
|
'zonos--hello-dialog-mobile-override',
|
|
158
160
|
this.isOpen && 'zonos--hello-dialog-open',
|
|
159
|
-
]), ref: el => el && (this.dialogRef = el) }, !this.showCountrySelect && !this.showLanguageSelect && (h("div", { key: '
|
|
161
|
+
]), ref: el => el && (this.dialogRef = el) }, !this.showCountrySelect && !this.showLanguageSelect && (h("div", { key: 'cba389a7107bf0505743237a7e61e27988955a44' }, h("div", { key: '3cef5f247dca70671ad0c304f29980f7147cf21c', class: "zonos--hello-dialog-content" }, h("zonos-button", { key: '013764140f25f64ab52f4588a50b5148f4b170d0', class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close Zonos Hello dialog", content: RemoveIcon }), noBackground: true, onClick: () => this.setIsOpen(false) }), h("zonos-v-stack", { key: '099dc23581474e5167cfa8bd90be9987b3caa47f', spacing: 24 }, h("zonos-country-flag", { key: 'c545313157e3a488433619292306419588e20e50', class: "zonos--hello-country-flag", countryCode: selectedCountryCode }), h("zonos-v-stack", { key: 'f8be1b95571b28be7ed4fc3caee5d13177845150', class: "zonos--hello-dialog-header", spacing: 4 }, h("zonos-text", { key: '9ac86d0f247cecd0bfa19ffc041eee89bd19b168', type: "boldSubheader" }, welcomeMessage), h("zonos-text", { key: '3234c9640aa1d484c6dcb78e7e3bf43e3545d67e', innerHTML: defaultMessage, textColor: "gray-800" })), h("zonos-v-stack", { key: '2f090b934ede76c8400b7891b6caa391e1f039b0', spacing: 8 }, this.restrictedItems.map(item => {
|
|
160
162
|
var _a;
|
|
161
163
|
return item && (h("zonos-banner", { bannerTitle: item.name, intent: "error" }, (_a = item.itemRestrictions) === null || _a === void 0 ? void 0 : _a.map(x => (h("zonos-text", { textColor: "red-800" }, x === null || x === void 0 ? void 0 : x.note)))));
|
|
162
|
-
}), h("zonos-card", { key: '
|
|
164
|
+
}), h("zonos-card", { key: 'e7ec890c1673b4025e650ed737ee4ba0e37ceb5d', spacing: "12px" }, h("zonos-v-stack", { key: 'a09bc2634da2795a4f0e2ef8b66680db9b0e403d', spacing: 12 }, h("div", { key: '2182aac10dc9b654b81234188cf0ef4decb2328a', class: "zonos--flex-message" }, h("zonos-icon", { key: '362807633b9a55a4438e95a9150c4c80f5bd836b', "aria-label": "Duty de minimis", content: ImportIcon }), h("zonos-text", { key: '10bbbd399a255ad3a593b246d4b8b475e1c089e1' }, dutyDeMinimisMessage)), h("div", { key: '451c58a91d38413cc295a377e08ffa9947411112', class: "zonos--flex-message" }, h("zonos-icon", { key: '2eceeced9d2b0ab482c94b8edd768134ba936d2d', "aria-label": "Tax de minimis", content: MoneyIcon }), h("zonos-text", { key: 'f4284b8e56522de93d5ca1160103ca2fac85250e' }, taxDeMinimisMessage)), additionalInformation && (h("div", { key: 'f9f0a09a1a7bfa85b2a70f843aabea7961250141', class: "zonos--flex-message" }, h("zonos-icon", { key: '147ee865b2708d662c185e4fe5d4dba7f099c310', "aria-label": "Low value order shipping restriction", content: BagIcon }), h("zonos-text", { key: 'ccb671b31672ebfd41369a9b0fda8e49ed3739cc' }, additionalInformation))))), filteredMessages.map(x => (h("zonos-custom-message", { icon: MessageIcon, message: x.message })))))), h("zonos-hello-dialog-footer", { key: '16b584281762c987d375b15e5cd3b5784fce5cd4', appearanceSettings: this.appearanceSettings, setShowCountrySelect: value => this.setShowCountrySelect(value), setShowLanguageSelect: value => this.setShowLanguageSelect(value) }))), this.showCountrySelect && (h("div", { key: '1122d535ce9bf451aa823726764a1a662c0378df' }, h("zonos-country-select", { key: '73c417e435dcbb15be72879ecde8271cb5cc01a1', handleOnClose: () => this.setShowCountrySelect(false) }))), this.showLanguageSelect && (h("div", { key: '4555dcf5260fa976458f6d612efce72a39564abf' }, h("zonos-language-select", { key: 'c19ca73913d2b026976acc36c1d9eb68bf90f07c', handleOnClose: () => this.setShowLanguageSelect(false) }))))));
|
|
163
165
|
}
|
|
164
166
|
static get is() { return "zonos-hello-dialog"; }
|
|
165
167
|
static get encapsulation() { return "shadow"; }
|
|
@@ -178,7 +178,7 @@ export class ZonosController {
|
|
|
178
178
|
zonosStore.organizationName = organizationName;
|
|
179
179
|
}
|
|
180
180
|
render() {
|
|
181
|
-
return h(Host, { key: '
|
|
181
|
+
return h(Host, { key: 'a5a97e414d4be249a1d8a733356111a65623aaeb', class: "zonos--elements" });
|
|
182
182
|
}
|
|
183
183
|
static get is() { return "zonos-controller"; }
|
|
184
184
|
static get encapsulation() { return "shadow"; }
|
|
@@ -55,6 +55,7 @@ const startExchangeRateTimeout = ({ isGuaranteed, maxAge, }) => {
|
|
|
55
55
|
const getNewLocalization = async () => {
|
|
56
56
|
log('get new localization store');
|
|
57
57
|
const { isShippableCountry, selectedCountryCode } = localizationStore;
|
|
58
|
+
localizationStore.countryLandedCost = await getCountryLandedCost(localizationStore.selectedCountryCode);
|
|
58
59
|
if (zonosStore.helloSettings.currencyBehavior === 'DISABLED' ||
|
|
59
60
|
!isShippableCountry ||
|
|
60
61
|
!selectedCountryCode) {
|
|
@@ -63,7 +64,6 @@ const getNewLocalization = async () => {
|
|
|
63
64
|
const isGuaranteed = zonosStore.checkoutSettings.visibilityStatus === 'ENABLED';
|
|
64
65
|
const { maxAge } = await triggerGetExchangeRate(isGuaranteed);
|
|
65
66
|
startExchangeRateTimeout({ isGuaranteed, maxAge });
|
|
66
|
-
localizationStore.countryLandedCost = await getCountryLandedCost(localizationStore.selectedCountryCode);
|
|
67
67
|
};
|
|
68
68
|
const getCustomMessages = async () => {
|
|
69
69
|
if (!localizationStore.selectedCountryCode || !zonosStore.storeId) {
|
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
export const stringsArabic = {
|
|
2
|
-
'${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.': {
|
|
3
|
-
value: '${percentage} ضريبة القيمة المضافة مستحقة على أي طلب يتجاوز ${threshold} بالإضافة إلى رسوم معاملة إدخال الاستيراد ورسوم MPI.',
|
|
4
|
-
},
|
|
5
|
-
'${percentage} GST due on any order above ${threshold}.': {
|
|
6
|
-
value: '${percentage} ضريبة القيمة المضافة مستحقة على أي طلب يتجاوز ${threshold}.',
|
|
7
|
-
},
|
|
8
2
|
'Above de minimis threshold for': {
|
|
9
3
|
value: 'أعلى من الحد الأدنى لـ',
|
|
10
4
|
},
|
|
@@ -131,8 +125,8 @@ export const stringsArabic = {
|
|
|
131
125
|
'Order total': {
|
|
132
126
|
value: 'إجمالي الطلبية',
|
|
133
127
|
},
|
|
134
|
-
'Orders to
|
|
135
|
-
value: 'يجب أن تتجاوز الطلبيات إلى
|
|
128
|
+
'Orders to [countryName] must be over [threshold] to ship.': {
|
|
129
|
+
value: 'يجب أن تتجاوز الطلبيات إلى [countryName] [threshold] ليتم شحنها.',
|
|
136
130
|
},
|
|
137
131
|
Pay: {
|
|
138
132
|
value: 'دفع',
|
|
@@ -167,6 +161,9 @@ export const stringsArabic = {
|
|
|
167
161
|
'Prepay duties and taxes at checkout': {
|
|
168
162
|
value: 'دفع الرسوم والضرائب مقدمًا عند الدفع',
|
|
169
163
|
},
|
|
164
|
+
Reload: {
|
|
165
|
+
value: 'إعادة تحميل',
|
|
166
|
+
},
|
|
170
167
|
'Restricted item': {
|
|
171
168
|
value: 'عنصر مقيد',
|
|
172
169
|
},
|
|
@@ -185,6 +182,9 @@ export const stringsArabic = {
|
|
|
185
182
|
'Select a language': {
|
|
186
183
|
value: 'اختر لغة',
|
|
187
184
|
},
|
|
185
|
+
'Session timed out': {
|
|
186
|
+
value: 'انتهت الجلسة',
|
|
187
|
+
},
|
|
188
188
|
Shipping: {
|
|
189
189
|
value: 'الشحن',
|
|
190
190
|
},
|
|
@@ -239,8 +239,8 @@ export const stringsArabic = {
|
|
|
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: 'لقد أرسلنا إليك تأكيدًا بالبريد الإلكتروني لتفاصيل الطلبية لمراجعتك. ويقوم فريقنا بإعداد طلبيتك بعناية حتى تصل في الوقت المحدد.',
|
|
241
241
|
},
|
|
242
|
-
'Welcome to': {
|
|
243
|
-
value: '
|
|
242
|
+
'Welcome to [storeName]!': {
|
|
243
|
+
value: 'مرحبًا بك في [storeName]!',
|
|
244
244
|
},
|
|
245
245
|
'Welcome!': {
|
|
246
246
|
value: 'أهلا بك!',
|
|
@@ -254,9 +254,18 @@ export const stringsArabic = {
|
|
|
254
254
|
"You're all set!": {
|
|
255
255
|
value: 'أنت جاهز!',
|
|
256
256
|
},
|
|
257
|
+
'Your checkout session has expired. Please reload the page to continue.': {
|
|
258
|
+
value: 'انتهت جلستك الدفعية. يرجى إعادة تحميل الصفحة للمتابعة.',
|
|
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: 'تمت عملية الدفع بنجاح! شكرا لتسوقك معنا! نأمل أن تكون قد استمتعت بتجربة رائعة ودعمك يعني لنا الكثير.',
|
|
259
262
|
},
|
|
263
|
+
'[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.': {
|
|
264
|
+
value: '[percentage] ضريبة القيمة المضافة مستحقة على أي طلب يتجاوز [threshold] بالإضافة إلى رسوم معاملة إدخال الاستيراد ورسوم MPI.',
|
|
265
|
+
},
|
|
266
|
+
'[percentage] GST due on any order above [threshold].': {
|
|
267
|
+
value: '[percentage] ضريبة القيمة المضافة مستحقة على أي طلب يتجاوز [threshold].',
|
|
268
|
+
},
|
|
260
269
|
'business days': {
|
|
261
270
|
value: 'أيام العمل',
|
|
262
271
|
},
|