@zonos/elements 1.3.48 → 1.3.50
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/{cart-3e8bc2af.js → cart-688d674d.js} +38 -6
- package/dist/cjs/{createCustomEvent-88a5a894.js → createCustomEvent-01bacaea.js} +2 -2
- package/dist/cjs/{getBorderRadius-4413e191.js → getBorderRadius-a6a3b35e.js} +1 -1
- package/dist/cjs/index.cjs.js +7 -7
- package/dist/cjs/{isDarkColor-4eb96a1e.js → isDarkColor-7a056d05.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{paypal-540886f1.js → paypal-ce1516ba.js} +3 -3
- package/dist/cjs/zonos-address_8.cjs.entry.js +4 -4
- package/dist/cjs/zonos-badge_2.cjs.entry.js +1 -1
- 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.cjs.entry.js +2 -2
- package/dist/cjs/zonos-cart-items_12.cjs.entry.js +6 -6
- package/dist/cjs/zonos-checkout.cjs.entry.js +6 -6
- package/dist/cjs/zonos-controller.cjs.entry.js +28 -15
- package/dist/cjs/zonos-country-flag.cjs.entry.js +4 -4
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +4 -4
- package/dist/cjs/zonos-elements.cjs.js +1 -1
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +4 -4
- package/dist/cjs/zonos-hello.cjs.entry.js +58 -15
- package/dist/cjs/zonos-input.cjs.entry.js +2 -2
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +4 -4
- package/dist/cjs/zonos-logo.cjs.entry.js +1 -1
- package/dist/cjs/zonos-notification_3.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/zonos-v-stack.cjs.entry.js +1 -1
- package/dist/cjs/{zonosStore-56401fdb.js → zonosStore-67139f0e.js} +5 -0
- package/dist/collection/components/hello/zonos-hello/zonos-hello.css +53 -103
- package/dist/collection/components/hello/zonos-hello/zonos-hello.js +55 -11
- package/dist/collection/components/main/zonos-controller.js +12 -4
- package/dist/collection/components/store/zonosStore.js +5 -0
- package/dist/collection/components/utils/handleFetch.js +2 -2
- package/dist/collection/components/utils/hello/currencyConversion/currencyFormat.js +7 -1
- package/dist/collection/components/utils/hello/currencyConversion/numberFormat.js +27 -0
- package/dist/collection/components/utils/hello/initHello.js +14 -9
- package/dist/collection/environment.js +6 -2
- package/dist/collection/types/generated/graphql.customer.types.js +20 -0
- package/dist/esm/{cart-e76844eb.js → cart-4f300fcb.js} +38 -6
- package/dist/esm/{createCustomEvent-c38df09e.js → createCustomEvent-c5ed9070.js} +2 -2
- package/dist/esm/{getBorderRadius-3ba98361.js → getBorderRadius-23398fc6.js} +1 -1
- package/dist/esm/index.js +7 -7
- package/dist/esm/{isDarkColor-3119e351.js → isDarkColor-c927f77d.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{paypal-3565fdd5.js → paypal-70caf283.js} +3 -3
- package/dist/esm/zonos-address_8.entry.js +4 -4
- package/dist/esm/zonos-badge_2.entry.js +1 -1
- package/dist/esm/zonos-banner.entry.js +1 -1
- package/dist/esm/zonos-button_3.entry.js +3 -3
- package/dist/esm/zonos-card.entry.js +2 -2
- package/dist/esm/zonos-cart-items_12.entry.js +6 -6
- package/dist/esm/zonos-checkout.entry.js +6 -6
- package/dist/esm/zonos-controller.entry.js +28 -15
- package/dist/esm/zonos-country-flag.entry.js +4 -4
- package/dist/esm/zonos-country-select_4.entry.js +4 -4
- package/dist/esm/zonos-elements.js +1 -1
- package/dist/esm/zonos-hello-dialog.entry.js +4 -4
- package/dist/esm/zonos-hello.entry.js +58 -15
- package/dist/esm/zonos-input.entry.js +2 -2
- package/dist/esm/zonos-language-select_2.entry.js +4 -4
- package/dist/esm/zonos-logo.entry.js +1 -1
- package/dist/esm/zonos-notification_3.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/zonos-v-stack.entry.js +1 -1
- package/dist/esm/{zonosStore-8fc9ceb2.js → zonosStore-473f4654.js} +5 -0
- package/dist/esm-es5/{cart-e76844eb.js → cart-4f300fcb.js} +1 -1
- package/dist/esm-es5/{createCustomEvent-c38df09e.js → createCustomEvent-c5ed9070.js} +1 -1
- package/dist/esm-es5/{getBorderRadius-3ba98361.js → getBorderRadius-23398fc6.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{isDarkColor-3119e351.js → isDarkColor-c927f77d.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{paypal-3565fdd5.js → paypal-70caf283.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.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-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-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-language-select_2.entry.js +1 -1
- package/dist/esm-es5/zonos-logo.entry.js +1 -1
- package/dist/esm-es5/zonos-notification_3.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/zonos-v-stack.entry.js +1 -1
- package/dist/esm-es5/{zonosStore-8fc9ceb2.js → zonosStore-473f4654.js} +1 -1
- package/dist/scripts/index.d.ts +82 -6
- 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/hello/zonos-hello/zonos-hello.d.ts +9 -0
- package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
- package/dist/types/components/utils/hello/currencyConversion/numberFormat.d.ts +13 -0
- package/dist/types/components/utils/hello/initHello.d.ts +6 -2
- package/dist/types/components/utils/logging/sendErrorLog.d.ts +1 -1
- package/dist/types/environment.d.ts +3 -1
- package/dist/types/scripts/_zonosBase.d.ts +77 -3
- package/dist/types/types/generated/graphql.customer.types.d.ts +27 -3
- package/dist/types/types/generated/graphql.customer.types.ts +38 -3
- package/dist/types/types/generated/graphql.frontend.types.d.ts +14 -14
- package/dist/types/types/generated/graphql.frontend.types.ts +12 -12
- package/dist/types/types/hello/HelloConfig.d.ts +3 -1
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-debbb058.entry.js → p-00f219bd.entry.js} +1 -1
- package/dist/zonos-elements/p-05dff37f.js +1 -0
- package/dist/zonos-elements/{p-1d1a0e05.js → p-124e3426.js} +1 -1
- package/dist/zonos-elements/p-1719bedd.entry.js +1 -0
- package/dist/zonos-elements/{p-e8f7fb29.system.entry.js → p-1c72e53f.system.entry.js} +1 -1
- package/dist/zonos-elements/p-1f2db2ff.entry.js +1 -0
- package/dist/zonos-elements/{p-8befc549.js → p-2018969a.js} +1 -1
- package/dist/zonos-elements/{p-38542341.system.entry.js → p-22e8d4ad.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-6ac72711.js → p-23a84835.js} +1 -1
- package/dist/zonos-elements/p-27f2e8af.system.entry.js +1 -0
- package/dist/zonos-elements/{p-40c21634.system.js → p-29814fd7.system.js} +1 -1
- package/dist/zonos-elements/{p-e28ffd2c.system.js → p-31905b60.system.js} +1 -1
- package/dist/zonos-elements/{p-5d18f3ae.system.entry.js → p-322600aa.system.entry.js} +1 -1
- package/dist/zonos-elements/p-40d52dd6.system.entry.js +1 -0
- package/dist/zonos-elements/{p-9ffaf4ae.entry.js → p-4452dddc.entry.js} +1 -1
- package/dist/zonos-elements/{p-6bb0b7d2.system.entry.js → p-47c72c50.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-b9ec9675.entry.js → p-480a6094.entry.js} +1 -1
- package/dist/zonos-elements/{p-e7cd5a89.entry.js → p-4849604d.entry.js} +1 -1
- package/dist/zonos-elements/{p-717028a2.system.entry.js → p-4b59ada6.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-e07bf9ea.entry.js → p-54f66cd1.entry.js} +1 -1
- package/dist/zonos-elements/{p-5b183187.entry.js → p-595d406e.entry.js} +1 -1
- package/dist/zonos-elements/{p-52947dab.system.entry.js → p-5a59ed7f.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-b3400abd.system.entry.js → p-5beccdce.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-9220f63d.entry.js → p-5f7f51bd.entry.js} +1 -1
- package/dist/zonos-elements/{p-9a319774.entry.js → p-6013e370.entry.js} +1 -1
- package/dist/zonos-elements/{p-7889b70d.system.js → p-6ab615e6.system.js} +1 -1
- package/dist/zonos-elements/{p-9420f9db.entry.js → p-6dcef5ce.entry.js} +1 -1
- package/dist/zonos-elements/{p-c7301a88.entry.js → p-70bb4a25.entry.js} +1 -1
- package/dist/zonos-elements/{p-14067782.system.entry.js → p-7ef2737b.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-f6ffaa37.system.js → p-81540fd6.system.js} +1 -1
- package/dist/zonos-elements/{p-61e14008.entry.js → p-89b1f4a5.entry.js} +1 -1
- package/dist/zonos-elements/{p-9eadd9a7.system.entry.js → p-89d8c1ad.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-a691a6ee.system.entry.js → p-8af4a9e7.system.entry.js} +1 -1
- package/dist/zonos-elements/p-8e8defdc.system.js +1 -0
- package/dist/zonos-elements/{p-dc368ad5.entry.js → p-8e9dcaa3.entry.js} +1 -1
- package/dist/zonos-elements/{p-04054425.js → p-9dd6b00d.js} +1 -1
- package/dist/zonos-elements/{p-4f454a91.system.entry.js → p-a3547b34.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-9d1f13c2.entry.js → p-a4309beb.entry.js} +1 -1
- package/dist/zonos-elements/{p-9b55838d.entry.js → p-a67578ae.entry.js} +1 -1
- package/dist/zonos-elements/p-c78dd680.system.js +1 -1
- package/dist/zonos-elements/{p-6ced2b64.system.js → p-ceb8b836.system.js} +2 -2
- package/dist/zonos-elements/{p-8b01aafb.entry.js → p-cf9a46e8.entry.js} +1 -1
- package/dist/zonos-elements/{p-6de9dc99.system.entry.js → p-d1cd0a5f.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-f7bb4368.system.entry.js → p-d709ad28.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-ae12eb52.system.entry.js → p-e7e73693.system.entry.js} +1 -1
- package/dist/zonos-elements/p-e97793ce.system.js +1 -0
- package/dist/zonos-elements/{p-706d2bad.entry.js → p-eb3520e7.entry.js} +1 -1
- package/dist/zonos-elements/{p-40f33928.system.entry.js → p-ec31cd17.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-0229282c.system.entry.js → p-ecd6a58a.system.entry.js} +1 -1
- package/dist/zonos-elements/p-f05f3e27.js +1 -0
- package/dist/zonos-elements/{p-c4bb2949.system.entry.js → p-f3811c4c.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-bc46fdc1.entry.js → p-fe198a6c.entry.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/zonos-elements/p-225231a5.entry.js +0 -1
- package/dist/zonos-elements/p-2fecf308.system.entry.js +0 -1
- package/dist/zonos-elements/p-52fb6876.js +0 -1
- package/dist/zonos-elements/p-539974db.system.js +0 -1
- package/dist/zonos-elements/p-67bc8798.system.entry.js +0 -1
- package/dist/zonos-elements/p-842564b4.js +0 -1
- package/dist/zonos-elements/p-8809964a.system.js +0 -1
- package/dist/zonos-elements/p-f652d433.entry.js +0 -1
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-d56e0a8b.js');
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
7
|
-
const cart = require('./cart-
|
|
6
|
+
const zonosStore = require('./zonosStore-67139f0e.js');
|
|
7
|
+
const cart = require('./cart-688d674d.js');
|
|
8
8
|
const classes = require('./classes-b7918f56.js');
|
|
9
9
|
const logError = require('./logError-4e2f2020.js');
|
|
10
10
|
const getHasMoreSpaceOnRight = require('./getHasMoreSpaceOnRight-4c94667f.js');
|
|
11
|
-
require('./isDarkColor-
|
|
12
|
-
require('./getBorderRadius-
|
|
11
|
+
require('./isDarkColor-7a056d05.js');
|
|
12
|
+
require('./getBorderRadius-a6a3b35e.js');
|
|
13
13
|
|
|
14
14
|
var root = zonosStore._root;
|
|
15
15
|
|
|
@@ -472,11 +472,10 @@ const getProductsOnPage = () => {
|
|
|
472
472
|
return mergedElements;
|
|
473
473
|
};
|
|
474
474
|
|
|
475
|
-
const zonosHelloCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:inline-block}:host .zonos--hello-wrapper{position:relative}:host .zonos--hello-wrapper .zonos--hello-dialog-wrapper-mobile-override{position:fixed;bottom:0;left:0;width:100vw;z-index:1001;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}@media (max-width: 768px){:host .zonos--hello-wrapper{position:fixed;bottom:0;left:0;width:100vw;z-index:1001;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}}:host .zonos--hello-widget{-webkit-transition:all 0.7s cubic-bezier(0.31, -0.02, 0.06, 1.53);transition:all 0.7s cubic-bezier(0.31, -0.02, 0.06, 1.53);padding:6px;border-radius:30px;background:var(--zonos-elements-page-background);font-size:var(--zonos-elements-font-size-s);border:var(--zonos-elements-border);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;cursor:pointer;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;position:relative;z-index:1000}:host .zonos--hello-widget>.zonos--hello-message{-ms-flex-order:0;order:0;max-width:0;height:100%;white-space:nowrap;-webkit-transition:border 0.3s ease-in, all 0.7s cubic-bezier(0.31, -0.02, 0.06, 1.53);transition:border 0.3s ease-in, all 0.7s cubic-bezier(0.31, -0.02, 0.06, 1.53);overflow:hidden;color:var(--zonos-elements-text-color);position:absolute;background:var(--zonos-elements-page-background);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;border-top-left-radius:30px;border-bottom-left-radius:30px;left:0;-webkit-transform:translateX(calc(-100% + 16px));transform:translateX(calc(-100% + 16px));width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;border-top:var(--zonos-elements-border);border-bottom:var(--zonos-elements-border)}:host .zonos--hello-widget.zonos--hello-has-restrictions{background:var(--zonos-elements-red-100);border:1px solid var(--zonos-elements-red-200)}:host .zonos--hello-widget.zonos--hello-has-restrictions>.zonos--hello-message{background:var(--zonos-elements-red-100);color:var(--zonos-elements-red-800);font-weight:500}:host .zonos--hello-widget.zonos--hello-has-restrictions.zonos--hello-show-peek-message>.zonos--hello-message{border:1px solid var(--zonos-elements-red-200)}:host .zonos--hello-widget.zonos--hello-show-peek-message{max-width:100vw;width:100%}:host .zonos--hello-widget.zonos--hello-show-peek-message>.zonos--hello-message{max-width:100vw;padding:0 6px;padding-right:16px;border:var(--zonos-elements-border)}:host .zonos--hello-widget.zonos--hello-show-peek-message:not(.zonos--hello-widget-animate-from-left)
|
|
475
|
+
const zonosHelloCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:inline-block}:host .zonos--hello-wrapper{position:relative}:host .zonos--hello-wrapper .zonos--hello-dialog-wrapper-mobile-override{position:fixed;bottom:0;left:0;width:100vw;z-index:1001;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}@media (max-width: 768px){:host .zonos--hello-wrapper .zonos--hello-dialog-wrapper{position:fixed;bottom:0;left:0;width:100vw;z-index:1001;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}}:host .zonos--hello-widget{-webkit-transition:all 0.7s cubic-bezier(0.31, -0.02, 0.06, 1.53);transition:all 0.7s cubic-bezier(0.31, -0.02, 0.06, 1.53);padding:6px;border-radius:30px;background:var(--zonos-elements-page-background);font-size:var(--zonos-elements-font-size-s);border:var(--zonos-elements-border);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;cursor:pointer;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;position:relative;z-index:1000}:host .zonos--hello-widget>.zonos--hello-message{-ms-flex-order:0;order:0;max-width:0;height:100%;white-space:nowrap;-webkit-transition:border 0.3s ease-in, all 0.7s cubic-bezier(0.31, -0.02, 0.06, 1.53);transition:border 0.3s ease-in, all 0.7s cubic-bezier(0.31, -0.02, 0.06, 1.53);overflow:hidden;color:var(--zonos-elements-text-color);position:absolute;background:var(--zonos-elements-page-background);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;border-top-left-radius:30px;border-bottom-left-radius:30px;left:0;-webkit-transform:translateX(calc(-100% + 16px));transform:translateX(calc(-100% + 16px));width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;border-top:var(--zonos-elements-border);border-bottom:var(--zonos-elements-border)}:host .zonos--hello-widget.zonos--hello-has-restrictions{background:var(--zonos-elements-red-100);border:1px solid var(--zonos-elements-red-200)}:host .zonos--hello-widget.zonos--hello-has-restrictions>.zonos--hello-message{background:var(--zonos-elements-red-100);color:var(--zonos-elements-red-800);font-weight:500}:host .zonos--hello-widget.zonos--hello-has-restrictions.zonos--hello-show-peek-message>.zonos--hello-message{border:1px solid var(--zonos-elements-red-200)}:host .zonos--hello-widget.zonos--hello-show-peek-message{max-width:100vw;width:100%}:host .zonos--hello-widget.zonos--hello-show-peek-message>.zonos--hello-message{max-width:100vw;padding:0 6px;padding-right:16px;border:var(--zonos-elements-border)}:host .zonos--hello-widget.zonos--hello-show-peek-message:not(.zonos--hello-widget-animate-from-left)>.zonos--hello-message{border-right:none}:host .zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left>.zonos--hello-message{border-left:0}:host .zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left>.zonos--hello-message{padding-left:16px;padding-right:6px;border-left:none}:host .zonos--hello-widget.zonos--hello-widget-animate-from-left>.zonos--hello-message{-ms-flex-order:1;order:1;-webkit-transform:translateX(calc(100% - 16px));transform:translateX(calc(100% - 16px));right:0;left:auto;border-top-right-radius:30px;border-bottom-right-radius:30px}:host .zonos--hello-widget .zonos--hello-country-flag-wrapper{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}:host .zonos--hello-widget .zonos--hello-country-flag-wrapper .zonos--hello-country-flag{height:18px;width:18px;position:relative;overflow:hidden;border-radius:30px;-webkit-box-shadow:var(--zonos-elements-v3-shadow-medium);box-shadow:var(--zonos-elements-v3-shadow-medium);z-index:10;justify-self:center}:host .zonos--hello-widget.zonos--hello-widget-float{position:fixed;bottom:72px;right:32px}:host .zonos--hello-widget.zonos--hello-widget-float.zonos--hello-widget-left{left:32px;right:auto}:host .zonos--hello-widget.zonos--hello-widget-float.zonos--hello-widget-top{bottom:auto;top:32px}:host .zonos--hello-widget.zonos--hello-widget-float.zonos--hello-has-restrictions.zonos--hello-show-peek-message>.zonos--hello-message{border:none}:host .zonos--hello-widget.zonos--hello-widget-float>.zonos--hello-message{position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;border-radius:30px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;top:0;bottom:0;left:0;-webkit-transform:translateX(0);transform:translateX(0);width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;border:none}:host .zonos--hello-widget.zonos--hello-widget-float.zonos--hello-widget-animate-from-left>.zonos--hello-message{-webkit-transform:translateX(0);transform:translateX(0)}:host .zonos--hello-widget.zonos--hello-widget-float.zonos--hello-show-peek-message{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}:host .zonos--hello-widget.zonos--hello-widget-float.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left>.zonos--hello-message{padding-left:8px;padding-right:4px}:host .zonos--hello-widget.zonos--hello-widget-float.zonos--hello-show-peek-message>.zonos--hello-message{padding:0 var(--zonos-elements-radius-4);padding-right:6px;border:none}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-float{position:fixed;bottom:72px;right:32px}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-float.zonos--hello-widget-left{left:32px;right:auto}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-float.zonos--hello-widget-top{bottom:auto;top:32px}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-float.zonos--hello-has-restrictions.zonos--hello-show-peek-message>.zonos--hello-message{border:none}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-float>.zonos--hello-message{position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;border-radius:30px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;top:0;bottom:0;left:0;-webkit-transform:translateX(0);transform:translateX(0);width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;border:none}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-float.zonos--hello-widget-animate-from-left>.zonos--hello-message{-webkit-transform:translateX(0);transform:translateX(0)}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-float.zonos--hello-show-peek-message{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-float.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left>.zonos--hello-message{padding-left:8px;padding-right:4px}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-float.zonos--hello-show-peek-message>.zonos--hello-message{padding:0 var(--zonos-elements-radius-4);padding-right:6px;border:none}";
|
|
476
476
|
const ZonosHelloStyle0 = zonosHelloCss;
|
|
477
477
|
|
|
478
478
|
const PEEK_MESSAGE_CLOSE_DELAY_MS = 3000;
|
|
479
|
-
const RESIZE_DEBOUNCE_DELAY_MS = 500;
|
|
480
479
|
const ZonosHello = class {
|
|
481
480
|
constructor(hostRef) {
|
|
482
481
|
index.registerInstance(this, hostRef);
|
|
@@ -622,6 +621,9 @@ const ZonosHello = class {
|
|
|
622
621
|
this.changeShowDialog = (value) => {
|
|
623
622
|
this.showDialog = value;
|
|
624
623
|
};
|
|
624
|
+
/**
|
|
625
|
+
* Determine if the peek message should animate from left or not
|
|
626
|
+
*/
|
|
625
627
|
this.shouldAnimateLeftDesktop = () => {
|
|
626
628
|
// Get Hello position (relative = desktop, fixed = mobile)
|
|
627
629
|
const elPosition = this.helloRef && getComputedStyle(this.helloRef).position;
|
|
@@ -663,6 +665,7 @@ const ZonosHello = class {
|
|
|
663
665
|
this.allFoundProducts = [];
|
|
664
666
|
this.productsOnPage = [];
|
|
665
667
|
this.isHelloWidgetRendered = false;
|
|
668
|
+
this.isMobile = false;
|
|
666
669
|
}
|
|
667
670
|
/**
|
|
668
671
|
* Get the country list the hello widget's country select is using
|
|
@@ -729,7 +732,7 @@ const ZonosHello = class {
|
|
|
729
732
|
this.changeShowDialog(value);
|
|
730
733
|
}
|
|
731
734
|
handleResize() {
|
|
732
|
-
|
|
735
|
+
this.isMobile = window.innerWidth <= 768;
|
|
733
736
|
}
|
|
734
737
|
/**
|
|
735
738
|
* This method will handle the Hello widget initialized state, should only trigger once
|
|
@@ -750,6 +753,44 @@ const ZonosHello = class {
|
|
|
750
753
|
}));
|
|
751
754
|
}
|
|
752
755
|
}
|
|
756
|
+
getHelloLocation() {
|
|
757
|
+
const mobileLocation = this.mobileLocationOverride || zonosStore.zonosStore.helloSettings.mobileLocation;
|
|
758
|
+
const desktopLocation = zonosStore.zonosStore.helloSettings.desktopLocation;
|
|
759
|
+
const isMobileWindow = this.isMobile;
|
|
760
|
+
switch (true) {
|
|
761
|
+
// Mobile
|
|
762
|
+
case isMobileWindow: {
|
|
763
|
+
const isOnLeft = this.animateFromLeftOverride || (mobileLocation === null || mobileLocation === void 0 ? void 0 : mobileLocation.includes('LEFT'));
|
|
764
|
+
const isOnTop = mobileLocation === null || mobileLocation === void 0 ? void 0 : mobileLocation.includes('TOP');
|
|
765
|
+
return {
|
|
766
|
+
isMobileWindow,
|
|
767
|
+
isOnLeft,
|
|
768
|
+
isOnTop,
|
|
769
|
+
shouldFloat: !!mobileLocation,
|
|
770
|
+
};
|
|
771
|
+
}
|
|
772
|
+
// Desktop
|
|
773
|
+
default:
|
|
774
|
+
case !isMobileWindow: {
|
|
775
|
+
/**
|
|
776
|
+
* Only float on desktop if there is no anchor specified and desktopLocation is set
|
|
777
|
+
* This is to keep the same behavior as it is now (display at anchor if set on desktop, float on mobile).
|
|
778
|
+
**/
|
|
779
|
+
const shouldFloat = !zonosStore.zonosStore.helloSettings.anchorElementSelector && !!desktopLocation;
|
|
780
|
+
const isOnLeft = this.animateFromLeftOverride ||
|
|
781
|
+
(desktopLocation === null || desktopLocation === void 0 ? void 0 : desktopLocation.includes('LEFT')) ||
|
|
782
|
+
this.shouldAnimateLeftDesktop();
|
|
783
|
+
const isOnTop = desktopLocation === null || desktopLocation === void 0 ? void 0 : desktopLocation.includes('TOP');
|
|
784
|
+
return {
|
|
785
|
+
isMobileWindow,
|
|
786
|
+
isOnLeft,
|
|
787
|
+
isOnTop,
|
|
788
|
+
// Only float if
|
|
789
|
+
shouldFloat,
|
|
790
|
+
};
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
}
|
|
753
794
|
handleAppearanceSettingsOverrideChange() {
|
|
754
795
|
var _a;
|
|
755
796
|
if ((_a = this.appearanceSettingsOverride) === null || _a === void 0 ? void 0 : _a.theme) {
|
|
@@ -757,6 +798,9 @@ const ZonosHello = class {
|
|
|
757
798
|
this.appearanceSettingsOverride.theme = zonosStore.getZonosStoreTheme(this.appearanceSettingsOverride.theme);
|
|
758
799
|
}
|
|
759
800
|
}
|
|
801
|
+
componentDidLoad() {
|
|
802
|
+
this.isMobile = window.innerWidth <= 768;
|
|
803
|
+
}
|
|
760
804
|
render() {
|
|
761
805
|
var _a, _b;
|
|
762
806
|
const isExcludedUrl = (_a = zonosStore.zonosStore.helloSettings.excludedUrlPatterns) === null || _a === void 0 ? void 0 : _a.some(pattern => new RegExp(pattern).test(window.location.href));
|
|
@@ -765,13 +809,7 @@ const ZonosHello = class {
|
|
|
765
809
|
return null;
|
|
766
810
|
}
|
|
767
811
|
const { selectedCountryCode, targetCurrency } = cart.localizationStore;
|
|
768
|
-
const
|
|
769
|
-
const isMobileWindow = window.innerWidth < 768;
|
|
770
|
-
const isOnLeft = this.animateFromLeftOverride ||
|
|
771
|
-
(isMobileWindow && mobileLocation.includes('LEFT')) ||
|
|
772
|
-
this.shouldAnimateLeftDesktop() ||
|
|
773
|
-
false;
|
|
774
|
-
const isOnTop = mobileLocation.includes('TOP');
|
|
812
|
+
const { isOnLeft, isOnTop, shouldFloat } = this.getHelloLocation();
|
|
775
813
|
const appearanceSettings = zonosStore.mergeConfig(zonosStore.zonosStore.appearance, this.appearanceSettingsOverride);
|
|
776
814
|
const { theme } = appearanceSettings;
|
|
777
815
|
const restrictedItemsOnPage = (_b = this.allRestrictedItems) === null || _b === void 0 ? void 0 : _b.filter(product => this.productsOnPage.some(restriction => restriction.description === product.itemDescription));
|
|
@@ -786,7 +824,10 @@ const ZonosHello = class {
|
|
|
786
824
|
currencyCode: targetCurrency,
|
|
787
825
|
});
|
|
788
826
|
}
|
|
789
|
-
return (index.h(index.Host, { class: "zonos--hello zonos--elements", "data-theme": theme }, showHello && (index.h("div", { class:
|
|
827
|
+
return (index.h(index.Host, { class: "zonos--hello zonos--elements", "data-theme": theme }, showHello && (index.h("div", { class: classes.classes([
|
|
828
|
+
'zonos--hello-wrapper',
|
|
829
|
+
shouldFloat && 'zonos--hello-widget-float',
|
|
830
|
+
]) }, index.h("button", { class: classes.classes([
|
|
790
831
|
'zonos--hello-widget',
|
|
791
832
|
this.showPeekMessage && 'zonos--hello-show-peek-message',
|
|
792
833
|
this.mobileLocationOverride && 'zonos--hello-mobile-override',
|
|
@@ -795,12 +836,14 @@ const ZonosHello = class {
|
|
|
795
836
|
isOnTop && 'zonos--hello-widget-top',
|
|
796
837
|
!!this.allRestrictedItems.length &&
|
|
797
838
|
'zonos--hello-has-restrictions',
|
|
839
|
+
shouldFloat && 'zonos--hello-widget-float',
|
|
798
840
|
]), onClick: () => {
|
|
799
841
|
void this.changeShowDialog(!this.showDialog);
|
|
800
842
|
}, onMouseEnter: () => this.enableShowPeekMessage(), onMouseLeave: () => (this.showPeekMessage = false), ref: el => el && (this.helloRef = el) }, index.h("zonos-text", { class: "zonos--hello-message" }, this.peekMessage), selectedCountryCode && (index.h("div", { class: "zonos--hello-country-flag-wrapper" }, index.h("zonos-country-flag", { class: "zonos--hello-country-flag", countryCode: selectedCountryCode })))), index.h("div", { class: classes.classes([
|
|
801
843
|
'zonos--hello-dialog-wrapper',
|
|
802
844
|
this.mobileLocationOverride &&
|
|
803
845
|
'zonos--hello-dialog-wrapper-mobile-override',
|
|
846
|
+
shouldFloat && 'zonos--hello-widget-float',
|
|
804
847
|
]), style: { height: this.showDialog ? 'fit-content' : '0px' } }, index.h("zonos-hello-dialog", { animateFromLeftOverride: this.animateFromLeftOverride, appearanceSettings: appearanceSettings, isOpen: this.showDialog, mobileLocationOverride: this.mobileLocationOverride, restrictedItems: restrictedItemsOnPage, setIsOpen: this.changeShowDialog }))))));
|
|
805
848
|
}
|
|
806
849
|
static get watchers() { return {
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-d56e0a8b.js');
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
6
|
+
const zonosStore = require('./zonosStore-67139f0e.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
|
-
const getBorderRadius = require('./getBorderRadius-
|
|
8
|
+
const getBorderRadius = require('./getBorderRadius-a6a3b35e.js');
|
|
9
9
|
|
|
10
10
|
const zonosInputCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{margin:1px;}:host .zonos--label-wrapper{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;height:100%;width:100%;background:var(--zonos-elements-input-background);border-radius:var(--border-radius);border:var(--zonos-elements-border)}:host .zonos--label-wrapper:hover{border:1px solid var(--zonos-elements-gray-300)}:host .zonos--floated-input{-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;padding:0 16px;outline:none;-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);width:100%;border-radius:var(--border-radius);background:var(--zonos-elements-input-background);border:0;-ms-flex-order:2;order:2;font-weight:500}:host .zonos--floated-input :-internal-autofill-selected{border-radius:var(--zonos-elements-radius-6) 0 0 var(--zonos-elements-radius-6)}:host .zonos--floated-input :-internal-autofill-selected+label+div{background-color:#e8f0fe}:host .zonos--floated-input.has-label{padding:16px 4px 8px 16px}:host .zonos--floated-input.has-label.has-input-prefix{padding-left:0}:host .zonos--floated-input.has-label.has-input-prefix+.zonos--floated-label::before{margin-left:0}:host .zonos--floated-input:not(.has-label)::-webkit-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input:not(.has-label)::-moz-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input:not(.has-label):-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input:not(.has-label)::-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input:not(.has-label)::placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input::-webkit-input-placeholder{-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}:host .zonos--floated-input::-moz-placeholder{-moz-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}:host .zonos--floated-input:-ms-input-placeholder{-ms-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}:host .zonos--floated-input::-ms-input-placeholder{-ms-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}:host .zonos--floated-input::placeholder{-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}:host .zonos--floated-input:focus{outline:none}:host .zonos--floated-input:focus+.zonos--floated-label::after{-webkit-box-shadow:var(--zonos-elements-glow-blue);box-shadow:var(--zonos-elements-glow-blue)}:host .zonos--floated-input.has-error+.zonos--floated-label::after{-webkit-box-shadow:var(--zonos-elements-glow-error);box-shadow:var(--zonos-elements-glow-error)}:host .zonos--floated-input.has-content::-webkit-input-placeholder,:host .zonos--floated-input:focus::-webkit-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input.has-content::-moz-placeholder,:host .zonos--floated-input:focus::-moz-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input.has-content:-ms-input-placeholder,:host .zonos--floated-input:focus:-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input.has-content::-ms-input-placeholder,:host .zonos--floated-input:focus::-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input.has-content::placeholder,:host .zonos--floated-input:focus::placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input.has-content+.zonos--floated-label::before,:host .zonos--floated-input:focus+.zonos--floated-label::before{top:11px;-webkit-transform:scale(0.8);transform:scale(0.8)}:host .zonos--floated-input:-webkit-autofill,:host .zonos--floated-input:-moz-autofill{background-color:var(--zonos-elements-input-background);color:var(--zonos-elements-text-color)}:host .zonos--floated-label{display:block;max-height:0;pointer-events:none;-ms-flex-order:1;order:1}:host .zonos--floated-label::before{content:attr(data-label);color:var(--zonos-elements-gray-800);position:absolute;font-size:var(--zonos-elements-font-size-base);line-height:var(--zonos-elements-font-size-base);display:inline-block;-webkit-filter:blur(0);filter:blur(0);-webkit-transform-origin:left top;transform-origin:left top;-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);margin-left:16px;top:calc(50% - var(--zonos-elements-font-size-base) / 2);z-index:1}:host .zonos--floated-label::after{content:\"\";position:absolute;left:0;right:0;top:0;bottom:0;border-radius:var(--border-radius)}:host .disabled .zonos--floated-label{pointer-events:inherit}:host .disabled .zonos--floated-label::after{cursor:not-allowed;z-index:1}:host(.sm){height:calc(var(--zonos-elements-size-sm) - 2px)}:host(.sm) .zonos--floated-input.has-label{padding-top:13px;padding-bottom:0}:host(.sm) .zonos--floated-input.has-label:focus+.zonos--floated-label::before,:host(.sm) .zonos--floated-input.has-label.has-content+.zonos--floated-label::before{top:2px}:host(.md){height:calc(var(--zonos-elements-size-md) - 2px)}:host(.md) .zonos--floated-input.has-label{padding-top:20px}:host(.md) .zonos--floated-input.has-label:focus+.zonos--floated-label::before,:host(.md) .zonos--floated-input.has-label.has-content+.zonos--floated-label::before{top:6px}:host(.lg){height:calc(var(--zonos-elements-size-lg) - 2px)}:host(.lg) .zonos--floated-input.has-label:focus+.zonos--floated-label::before,:host(.lg) .zonos--floated-input.has-label.has-content+.zonos--floated-label::before{top:10px}:host(.xl){height:calc(var(--zonos-elements-size-xl) - 2px)}:host(.xl) .zonos--floated-input.has-label{padding-bottom:2px}";
|
|
11
11
|
const ZonosInputStyle0 = zonosInputCss;
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-d56e0a8b.js');
|
|
6
|
-
const cart = require('./cart-
|
|
7
|
-
const zonosStore = require('./zonosStore-
|
|
6
|
+
const cart = require('./cart-688d674d.js');
|
|
7
|
+
const zonosStore = require('./zonosStore-67139f0e.js');
|
|
8
8
|
const ILanguage = require('./ILanguage-98b04442.js');
|
|
9
9
|
require('./logError-4e2f2020.js');
|
|
10
|
-
require('./isDarkColor-
|
|
11
|
-
require('./getBorderRadius-
|
|
10
|
+
require('./isDarkColor-7a056d05.js');
|
|
11
|
+
require('./getBorderRadius-a6a3b35e.js');
|
|
12
12
|
|
|
13
13
|
const GreenCheckDuotoneIcon = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
14
14
|
<path d="M7.99996 2.6665C5.05444 2.6665 2.66663 5.05432 2.66663 7.99984C2.66663 10.9454 5.05444 13.3332 7.99996 13.3332C10.9455 13.3332 13.3333 10.9454 13.3333 7.99984C13.3333 5.05432 10.9455 2.6665 7.99996 2.6665Z" fill="#AFF8C3"/>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-d56e0a8b.js');
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
6
|
+
const zonosStore = require('./zonosStore-67139f0e.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
8
|
|
|
9
9
|
const zonosLogoCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-inline-flexbox;display:inline-flex}:host img{-webkit-filter:var(--filter-color);filter:var(--filter-color);width:var(--width)}";
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-d56e0a8b.js');
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
6
|
+
const zonosStore = require('./zonosStore-67139f0e.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
|
-
const cart = require('./cart-
|
|
8
|
+
const cart = require('./cart-688d674d.js');
|
|
9
9
|
const logError = require('./logError-4e2f2020.js');
|
|
10
|
-
const paypal = require('./paypal-
|
|
11
|
-
require('./isDarkColor-
|
|
12
|
-
require('./getBorderRadius-
|
|
10
|
+
const paypal = require('./paypal-ce1516ba.js');
|
|
11
|
+
require('./isDarkColor-7a056d05.js');
|
|
12
|
+
require('./getBorderRadius-a6a3b35e.js');
|
|
13
13
|
|
|
14
14
|
const zonosNotificationCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}:host .zonos--notification-items{position:fixed;z-index:9999999999;bottom:24px;gap:8px;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column}:host .zonos--notification-item{cursor:pointer;-webkit-transition:all 0.3s ease;transition:all 0.3s ease;padding:8px;border-radius:var(--border-radius, var(--zonos-elements-radius-6));opacity:0;-ms-flex-negative:0.0001;flex-shrink:0.0001;-webkit-transform:translateY(100%);transform:translateY(100%)}:host .zonos--notification-item+:host .zonos--notification-item{margin-top:8px}:host .zonos--notification-item.show{opacity:1;-webkit-transform:translateY(0);transform:translateY(0);-ms-flex-positive:1000;flex-grow:1000}:host .zonos--notification-item.success{background-color:var(--zonos-elements-green-700)}:host .zonos--notification-item.error{background-color:var(--zonos-elements-red-700)}:host .zonos--notification-item.warning{background-color:var(--zonos-elements-orange-700)}";
|
|
15
15
|
const ZonosNotificationStyle0 = zonosNotificationCss;
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-d56e0a8b.js');
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
6
|
+
const zonosStore = require('./zonosStore-67139f0e.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
|
-
const getBorderRadius = require('./getBorderRadius-
|
|
8
|
+
const getBorderRadius = require('./getBorderRadius-a6a3b35e.js');
|
|
9
9
|
const isColorVariable = require('./isColorVariable-6f5a9608.js');
|
|
10
10
|
|
|
11
11
|
const zonosShippingRichRadioCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host input{margin:0;accent-color:var(--selected-border-color, var(--zonos-elements-blue-600))}:host .zonos--shipping-rich-radio-item{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;padding:16px;-ms-flex-align:center;align-items:center;gap:16px;cursor:pointer;border:1px solid var(--zonos-elements-gray-200)}:host .zonos--shipping-rich-radio-item:first-child{border-top-left-radius:var(--border-radius, var(--zonos-elements-radius-10));border-top-right-radius:var(--border-radius, var(--zonos-elements-radius-10))}:host .zonos--shipping-rich-radio-item:last-child{border-bottom-right-radius:var(--border-radius, var(--zonos-elements-radius-10));border-bottom-left-radius:var(--border-radius, var(--zonos-elements-radius-10))}:host .zonos--shipping-rich-radio-item:not(:last-child){border-bottom:none}:host .zonos--shipping-rich-radio-item.selected{outline:1px solid var(--selected-border-color, var(--zonos-elements-blue-600));outline-offset:-1px}:host .zonos--shipping-info{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex:1;flex:1}:host .zonos--shipping-detail{-ms-flex:1;flex:1}:host .zonos--sub-detail{display:-ms-inline-flexbox;display:inline-flex;gap:8px;-ms-flex-wrap:wrap;flex-wrap:wrap}";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-d56e0a8b.js');
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
6
|
+
const zonosStore = require('./zonosStore-67139f0e.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
8
|
const isColorVariable = require('./isColorVariable-6f5a9608.js');
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-d56e0a8b.js');
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
6
|
+
const zonosStore = require('./zonosStore-67139f0e.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
8
|
|
|
9
9
|
const zonosVStackCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .vstack{display:grid;grid-auto-columns:minmax(0, 1fr);grid-row-gap:var(--spacing, 24px);grid-auto-flow:row}";
|
|
@@ -2814,6 +2814,10 @@ const { dispose: zonosStoreDispose, reset, state: zonosStore, } = createStore(()
|
|
|
2814
2814
|
countryOverrideBehavior: 'URL_PARAM',
|
|
2815
2815
|
currencyBehavior: 'ENABLED',
|
|
2816
2816
|
currencyElementSelector: '.money',
|
|
2817
|
+
/**
|
|
2818
|
+
* Default to bottom right so hello would float if anchorElementSelector is not set. Otherwise, this will be ignored
|
|
2819
|
+
*/
|
|
2820
|
+
desktopLocation: 'BOTTOM_RIGHT',
|
|
2817
2821
|
excludedUrlPatterns: [],
|
|
2818
2822
|
homepageUrlPattern: '',
|
|
2819
2823
|
mobileLocation: 'BOTTOM_RIGHT',
|
|
@@ -2828,6 +2832,7 @@ const { dispose: zonosStoreDispose, reset, state: zonosStore, } = createStore(()
|
|
|
2828
2832
|
productTitleElementSelector: '',
|
|
2829
2833
|
restrictionBehavior: 'DISABLED',
|
|
2830
2834
|
showForCountries: 'ONLY_SHIPPABLE',
|
|
2835
|
+
visibilityStatus: 'ENABLED',
|
|
2831
2836
|
},
|
|
2832
2837
|
loadedConfig: false,
|
|
2833
2838
|
organizationId: '',
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
height: fit-content;
|
|
47
47
|
}
|
|
48
48
|
@media (max-width: 768px) {
|
|
49
|
-
:host .zonos--hello-wrapper {
|
|
49
|
+
:host .zonos--hello-wrapper .zonos--hello-dialog-wrapper {
|
|
50
50
|
position: fixed;
|
|
51
51
|
bottom: 0;
|
|
52
52
|
left: 0;
|
|
@@ -112,17 +112,9 @@
|
|
|
112
112
|
padding-right: 16px;
|
|
113
113
|
border: var(--zonos-elements-border);
|
|
114
114
|
}
|
|
115
|
-
:host .zonos--hello-widget.zonos--hello-show-peek-message:not(.zonos--hello-widget-animate-from-left) {
|
|
116
|
-
border-top-left-radius: 0;
|
|
117
|
-
border-bottom-left-radius: 0;
|
|
118
|
-
}
|
|
119
115
|
:host .zonos--hello-widget.zonos--hello-show-peek-message:not(.zonos--hello-widget-animate-from-left) > .zonos--hello-message {
|
|
120
116
|
border-right: none;
|
|
121
117
|
}
|
|
122
|
-
:host .zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left {
|
|
123
|
-
border-top-right-radius: 0;
|
|
124
|
-
border-bottom-right-radius: 0;
|
|
125
|
-
}
|
|
126
118
|
:host .zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left > .zonos--hello-message {
|
|
127
119
|
border-left: 0;
|
|
128
120
|
}
|
|
@@ -136,8 +128,6 @@
|
|
|
136
128
|
transform: translateX(calc(100% - 16px));
|
|
137
129
|
right: 0;
|
|
138
130
|
left: auto;
|
|
139
|
-
border-top-left-radius: 0;
|
|
140
|
-
border-bottom-left-radius: 0;
|
|
141
131
|
border-top-right-radius: 30px;
|
|
142
132
|
border-bottom-right-radius: 30px;
|
|
143
133
|
}
|
|
@@ -155,92 +145,23 @@
|
|
|
155
145
|
z-index: 10;
|
|
156
146
|
justify-self: center;
|
|
157
147
|
}
|
|
158
|
-
|
|
159
|
-
:host .zonos--hello-widget .zonos--hello-country-flag-wrapper .zonos--hello-country-flag {
|
|
160
|
-
border-radius: var(--zonos-elements-radius-4);
|
|
161
|
-
width: 24px;
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
@media (max-width: 768px) {
|
|
165
|
-
:host .zonos--hello-widget {
|
|
166
|
-
position: fixed;
|
|
167
|
-
bottom: 32px;
|
|
168
|
-
right: 32px;
|
|
169
|
-
border-radius: var(--zonos-elements-radius-4);
|
|
170
|
-
padding: 4px;
|
|
171
|
-
border: 1px solid transparent;
|
|
172
|
-
}
|
|
173
|
-
:host .zonos--hello-widget.zonos--hello-widget-left {
|
|
174
|
-
left: 32px;
|
|
175
|
-
right: auto;
|
|
176
|
-
}
|
|
177
|
-
:host .zonos--hello-widget.zonos--hello-widget-top {
|
|
178
|
-
bottom: auto;
|
|
179
|
-
top: 32px;
|
|
180
|
-
}
|
|
181
|
-
:host .zonos--hello-widget.zonos--hello-has-restrictions.zonos--hello-show-peek-message > .zonos--hello-message {
|
|
182
|
-
border: none;
|
|
183
|
-
}
|
|
184
|
-
:host .zonos--hello-widget > .zonos--hello-message {
|
|
185
|
-
position: relative;
|
|
186
|
-
display: flex;
|
|
187
|
-
align-items: center;
|
|
188
|
-
border-radius: 30px;
|
|
189
|
-
height: fit-content;
|
|
190
|
-
top: 0;
|
|
191
|
-
bottom: 0;
|
|
192
|
-
left: 0;
|
|
193
|
-
transform: translateX(0);
|
|
194
|
-
width: fit-content;
|
|
195
|
-
border: none;
|
|
196
|
-
}
|
|
197
|
-
:host .zonos--hello-widget.zonos--hello-widget-animate-from-left > .zonos--hello-message {
|
|
198
|
-
transform: translateX(0);
|
|
199
|
-
}
|
|
200
|
-
:host .zonos--hello-widget.zonos--hello-show-peek-message {
|
|
201
|
-
width: fit-content;
|
|
202
|
-
}
|
|
203
|
-
:host .zonos--hello-widget.zonos--hello-show-peek-message:not(.zonos--hello-widget-animate-from-left) {
|
|
204
|
-
border-top-left-radius: var(--zonos-elements-radius-4);
|
|
205
|
-
border-bottom-left-radius: var(--zonos-elements-radius-4);
|
|
206
|
-
}
|
|
207
|
-
:host .zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left {
|
|
208
|
-
border-top-right-radius: var(--zonos-elements-radius-4);
|
|
209
|
-
border-bottom-right-radius: var(--zonos-elements-radius-4);
|
|
210
|
-
}
|
|
211
|
-
:host .zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left > .zonos--hello-message {
|
|
212
|
-
padding-left: 8px;
|
|
213
|
-
padding-right: 4px;
|
|
214
|
-
}
|
|
215
|
-
:host .zonos--hello-widget.zonos--hello-show-peek-message > .zonos--hello-message {
|
|
216
|
-
padding: 0 var(--zonos-elements-radius-4);
|
|
217
|
-
padding-right: 6px;
|
|
218
|
-
border: none;
|
|
219
|
-
}
|
|
220
|
-
:host .zonos--hello-widget .zonos--hello-country-flag-wrapper {
|
|
221
|
-
border-radius: var(--zonos-elements-radius-4);
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
:host .zonos--hello-mobile-override.zonos--hello-widget {
|
|
148
|
+
:host .zonos--hello-widget.zonos--hello-widget-float {
|
|
225
149
|
position: fixed;
|
|
226
|
-
bottom:
|
|
150
|
+
bottom: 72px;
|
|
227
151
|
right: 32px;
|
|
228
|
-
border-radius: var(--zonos-elements-radius-4);
|
|
229
|
-
padding: 4px;
|
|
230
|
-
border: 1px solid transparent;
|
|
231
152
|
}
|
|
232
|
-
:host .zonos--hello-
|
|
153
|
+
:host .zonos--hello-widget.zonos--hello-widget-float.zonos--hello-widget-left {
|
|
233
154
|
left: 32px;
|
|
234
155
|
right: auto;
|
|
235
156
|
}
|
|
236
|
-
:host .zonos--hello-
|
|
157
|
+
:host .zonos--hello-widget.zonos--hello-widget-float.zonos--hello-widget-top {
|
|
237
158
|
bottom: auto;
|
|
238
159
|
top: 32px;
|
|
239
160
|
}
|
|
240
|
-
:host .zonos--hello-
|
|
161
|
+
:host .zonos--hello-widget.zonos--hello-widget-float.zonos--hello-has-restrictions.zonos--hello-show-peek-message > .zonos--hello-message {
|
|
241
162
|
border: none;
|
|
242
163
|
}
|
|
243
|
-
:host .zonos--hello-
|
|
164
|
+
:host .zonos--hello-widget.zonos--hello-widget-float > .zonos--hello-message {
|
|
244
165
|
position: relative;
|
|
245
166
|
display: flex;
|
|
246
167
|
align-items: center;
|
|
@@ -253,33 +174,62 @@
|
|
|
253
174
|
width: fit-content;
|
|
254
175
|
border: none;
|
|
255
176
|
}
|
|
256
|
-
:host .zonos--hello-
|
|
177
|
+
:host .zonos--hello-widget.zonos--hello-widget-float.zonos--hello-widget-animate-from-left > .zonos--hello-message {
|
|
257
178
|
transform: translateX(0);
|
|
258
179
|
}
|
|
259
|
-
:host .zonos--hello-
|
|
180
|
+
:host .zonos--hello-widget.zonos--hello-widget-float.zonos--hello-show-peek-message {
|
|
260
181
|
width: fit-content;
|
|
261
182
|
}
|
|
262
|
-
:host .zonos--hello-
|
|
263
|
-
border-top-left-radius: var(--zonos-elements-radius-4);
|
|
264
|
-
border-bottom-left-radius: var(--zonos-elements-radius-4);
|
|
265
|
-
}
|
|
266
|
-
:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left {
|
|
267
|
-
border-top-right-radius: var(--zonos-elements-radius-4);
|
|
268
|
-
border-bottom-right-radius: var(--zonos-elements-radius-4);
|
|
269
|
-
}
|
|
270
|
-
:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left > .zonos--hello-message {
|
|
183
|
+
:host .zonos--hello-widget.zonos--hello-widget-float.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left > .zonos--hello-message {
|
|
271
184
|
padding-left: 8px;
|
|
272
185
|
padding-right: 4px;
|
|
273
186
|
}
|
|
274
|
-
:host .zonos--hello-
|
|
187
|
+
:host .zonos--hello-widget.zonos--hello-widget-float.zonos--hello-show-peek-message > .zonos--hello-message {
|
|
275
188
|
padding: 0 var(--zonos-elements-radius-4);
|
|
276
189
|
padding-right: 6px;
|
|
277
190
|
border: none;
|
|
278
191
|
}
|
|
279
|
-
:host .zonos--hello-mobile-override.zonos--hello-widget
|
|
280
|
-
|
|
192
|
+
:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-float {
|
|
193
|
+
position: fixed;
|
|
194
|
+
bottom: 72px;
|
|
195
|
+
right: 32px;
|
|
281
196
|
}
|
|
282
|
-
:host .zonos--hello-mobile-override.zonos--hello-widget
|
|
283
|
-
|
|
284
|
-
|
|
197
|
+
:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-float.zonos--hello-widget-left {
|
|
198
|
+
left: 32px;
|
|
199
|
+
right: auto;
|
|
200
|
+
}
|
|
201
|
+
:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-float.zonos--hello-widget-top {
|
|
202
|
+
bottom: auto;
|
|
203
|
+
top: 32px;
|
|
204
|
+
}
|
|
205
|
+
:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-float.zonos--hello-has-restrictions.zonos--hello-show-peek-message > .zonos--hello-message {
|
|
206
|
+
border: none;
|
|
207
|
+
}
|
|
208
|
+
:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-float > .zonos--hello-message {
|
|
209
|
+
position: relative;
|
|
210
|
+
display: flex;
|
|
211
|
+
align-items: center;
|
|
212
|
+
border-radius: 30px;
|
|
213
|
+
height: fit-content;
|
|
214
|
+
top: 0;
|
|
215
|
+
bottom: 0;
|
|
216
|
+
left: 0;
|
|
217
|
+
transform: translateX(0);
|
|
218
|
+
width: fit-content;
|
|
219
|
+
border: none;
|
|
220
|
+
}
|
|
221
|
+
:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-float.zonos--hello-widget-animate-from-left > .zonos--hello-message {
|
|
222
|
+
transform: translateX(0);
|
|
223
|
+
}
|
|
224
|
+
:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-float.zonos--hello-show-peek-message {
|
|
225
|
+
width: fit-content;
|
|
226
|
+
}
|
|
227
|
+
:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-float.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left > .zonos--hello-message {
|
|
228
|
+
padding-left: 8px;
|
|
229
|
+
padding-right: 4px;
|
|
230
|
+
}
|
|
231
|
+
:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-float.zonos--hello-show-peek-message > .zonos--hello-message {
|
|
232
|
+
padding: 0 var(--zonos-elements-radius-4);
|
|
233
|
+
padding-right: 6px;
|
|
234
|
+
border: none;
|
|
285
235
|
}
|