@zonos/elements 1.2.4-alpha.12 → 1.2.4-alpha.13
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-963ffc24.js → cart-cfa5d5fd.js} +4 -4
- package/dist/cjs/{getBorderRadius-bf4a4276.js → getBorderRadius-c3c63ee6.js} +1 -1
- package/dist/cjs/index.cjs.js +5 -5
- package/dist/cjs/{isDarkColor-ff6ff183.js → isDarkColor-fc8c294a.js} +1 -1
- package/dist/cjs/{localization-994933ce.js → localization-4746acf7.js} +1 -1
- package/dist/cjs/{submitGtag-e047f309.js → submitGtag-ca175427.js} +2 -2
- package/dist/cjs/zonos-address_2.cjs.entry.js +5 -5
- package/dist/cjs/zonos-badge.cjs.entry.js +1 -1
- package/dist/cjs/zonos-banner.cjs.entry.js +1 -1
- package/dist/cjs/zonos-button_2.cjs.entry.js +3 -3
- package/dist/cjs/zonos-card_2.cjs.entry.js +1 -1
- package/dist/cjs/zonos-cart-items_10.cjs.entry.js +6 -6
- package/dist/cjs/zonos-checkout.cjs.entry.js +6 -6
- package/dist/cjs/zonos-controller.cjs.entry.js +5 -5
- package/dist/cjs/zonos-country-flag_4.cjs.entry.js +3 -3
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +2 -2
- package/dist/cjs/zonos-hello.cjs.entry.js +8 -5
- package/dist/cjs/zonos-icon.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-shipping-rich-radio.cjs.entry.js +2 -2
- package/dist/cjs/zonos-text.cjs.entry.js +1 -1
- package/dist/cjs/{zonosStore-b43ef5db.js → zonosStore-10d1d6ff.js} +0 -8
- package/dist/collection/components/hello/zonos-hello/zonos-hello.js +6 -3
- package/dist/collection/components/main/zonos-controller.js +2 -2
- package/dist/collection/components/store/zonosStore.js +0 -8
- package/dist/collection/types/generated/graphql.customer.types.js +31 -0
- package/dist/components/zonos-hello.js +6 -3
- package/dist/components/zonosStore.js +0 -8
- package/dist/esm/{cart-c5236eec.js → cart-d81b92ea.js} +4 -4
- package/dist/esm/{getBorderRadius-178a0a05.js → getBorderRadius-77e97943.js} +1 -1
- package/dist/esm/index.js +5 -5
- package/dist/esm/{isDarkColor-416d6047.js → isDarkColor-69090b29.js} +1 -1
- package/dist/esm/{localization-3cb32a71.js → localization-0c5b29fd.js} +1 -1
- package/dist/esm/{submitGtag-9de4957f.js → submitGtag-8a0fbd41.js} +2 -2
- package/dist/esm/zonos-address_2.entry.js +5 -5
- package/dist/esm/zonos-badge.entry.js +1 -1
- package/dist/esm/zonos-banner.entry.js +1 -1
- package/dist/esm/zonos-button_2.entry.js +3 -3
- package/dist/esm/zonos-card_2.entry.js +1 -1
- package/dist/esm/zonos-cart-items_10.entry.js +6 -6
- package/dist/esm/zonos-checkout.entry.js +6 -6
- package/dist/esm/zonos-controller.entry.js +5 -5
- package/dist/esm/zonos-country-flag_4.entry.js +3 -3
- package/dist/esm/zonos-hello-dialog.entry.js +2 -2
- package/dist/esm/zonos-hello.entry.js +8 -5
- package/dist/esm/zonos-icon.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-shipping-rich-radio.entry.js +2 -2
- package/dist/esm/zonos-text.entry.js +1 -1
- package/dist/esm/{zonosStore-61e74f58.js → zonosStore-34f07ee8.js} +0 -8
- package/dist/esm-es5/{cart-c5236eec.js → cart-d81b92ea.js} +1 -1
- package/dist/esm-es5/{getBorderRadius-178a0a05.js → getBorderRadius-77e97943.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{isDarkColor-416d6047.js → isDarkColor-69090b29.js} +1 -1
- package/dist/esm-es5/{localization-3cb32a71.js → localization-0c5b29fd.js} +1 -1
- package/dist/esm-es5/{submitGtag-9de4957f.js → submitGtag-8a0fbd41.js} +1 -1
- package/dist/esm-es5/zonos-address_2.entry.js +1 -1
- package/dist/esm-es5/zonos-badge.entry.js +1 -1
- package/dist/esm-es5/zonos-banner.entry.js +1 -1
- package/dist/esm-es5/zonos-button_2.entry.js +1 -1
- package/dist/esm-es5/zonos-card_2.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_10.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_4.entry.js +1 -1
- package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm-es5/zonos-hello.entry.js +1 -1
- package/dist/esm-es5/zonos-icon.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-shipping-rich-radio.entry.js +1 -1
- package/dist/esm-es5/zonos-text.entry.js +1 -1
- package/dist/esm-es5/{zonosStore-61e74f58.js → zonosStore-34f07ee8.js} +1 -1
- package/dist/scripts/loadZonos.js +3 -3
- package/dist/scripts/zonos.js +3 -3
- package/dist/types/components/store/zonosStore.d.ts +0 -2
- package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
- package/dist/types/scripts/zonos.d.ts +0 -2
- package/dist/types/types/checkout/CheckoutConfig.d.ts +0 -1
- package/dist/types/types/generated/graphql.customer.types.d.ts +35 -0
- package/dist/types/types/generated/graphql.customer.types.ts +44 -0
- package/dist/types/types/generated/graphql.frontend.types.d.ts +1 -1
- package/dist/types/types/generated/graphql.frontend.types.ts +1 -1
- package/dist/types/types/hello/HelloConfig.d.ts +0 -1
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-e2c2584c.js → p-06a332cd.js} +1 -1
- package/dist/zonos-elements/{p-bb24e583.entry.js → p-124857ae.entry.js} +1 -1
- package/dist/zonos-elements/{p-e98be2d0.system.entry.js → p-1f494581.system.entry.js} +1 -1
- package/dist/zonos-elements/p-24fbe845.system.js +1 -1
- package/dist/zonos-elements/{p-425996c1.js → p-2b41549a.js} +1 -1
- package/dist/zonos-elements/p-2e1e9074.js +1 -0
- package/dist/zonos-elements/{p-2801d868.entry.js → p-3509ffaa.entry.js} +1 -1
- package/dist/zonos-elements/{p-1d4a970b.entry.js → p-3c8763a7.entry.js} +1 -1
- package/dist/zonos-elements/{p-49f09b91.entry.js → p-3e7444c6.entry.js} +1 -1
- package/dist/zonos-elements/{p-55f49f1e.js → p-4b3baf99.js} +1 -1
- package/dist/zonos-elements/{p-509eb1de.system.js → p-5066955b.system.js} +1 -1
- package/dist/zonos-elements/{p-39013804.entry.js → p-516ae038.entry.js} +1 -1
- package/dist/zonos-elements/{p-e5ae22a9.system.entry.js → p-53ea93c2.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-f367f2fe.system.entry.js → p-5bada106.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-b85be1ab.system.js → p-7730250d.system.js} +1 -1
- package/dist/zonos-elements/{p-089ba905.js → p-86f22026.js} +1 -1
- package/dist/zonos-elements/{p-0d536271.entry.js → p-88600956.entry.js} +1 -1
- package/dist/zonos-elements/{p-89c210d6.entry.js → p-8b1cb8a4.entry.js} +1 -1
- package/dist/zonos-elements/p-8bd04aaa.entry.js +1 -0
- package/dist/zonos-elements/{p-47390db7.system.entry.js → p-935fa685.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-83c7c3f4.entry.js → p-9c1f19b6.entry.js} +1 -1
- package/dist/zonos-elements/{p-4d93275c.entry.js → p-a063c4b7.entry.js} +1 -1
- package/dist/zonos-elements/p-a174d834.system.js +1 -0
- package/dist/zonos-elements/{p-bbb154a9.js → p-a244579e.js} +1 -1
- package/dist/zonos-elements/{p-24eed2a8.system.js → p-a54d8db3.system.js} +1 -1
- package/dist/zonos-elements/{p-e1f6ab97.entry.js → p-ab00288a.entry.js} +1 -1
- package/dist/zonos-elements/{p-8a8b08e9.system.js → p-ab179c88.system.js} +1 -1
- package/dist/zonos-elements/{p-8cefaae6.entry.js → p-ad2b4bda.entry.js} +1 -1
- package/dist/zonos-elements/{p-65749745.system.entry.js → p-b3a71ae4.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-d856a200.system.entry.js → p-b3e034bb.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-6f8da71e.entry.js → p-b7e061e7.entry.js} +1 -1
- package/dist/zonos-elements/{p-6aa44c88.system.entry.js → p-bb7de2c4.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-da060b1c.system.js → p-c1665c4f.system.js} +1 -1
- package/dist/zonos-elements/{p-2f43da39.system.entry.js → p-c1e298d5.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-e06711b8.system.entry.js → p-c520d819.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c9348bb0.system.entry.js → p-ca875e60.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-7fdc8b27.system.entry.js → p-ccd1794a.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-e100f180.system.entry.js → p-d2539712.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-510d3aa3.system.entry.js → p-daa10b8c.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-07ebdfd9.entry.js → p-e3bca405.entry.js} +1 -1
- package/dist/zonos-elements/{p-a376a37f.entry.js → p-e58cc024.entry.js} +1 -1
- package/dist/zonos-elements/{p-938803f4.entry.js → p-e6556b0d.entry.js} +1 -1
- package/dist/zonos-elements/{p-f33e1ffb.system.js → p-ed074fbf.system.js} +1 -1
- package/dist/zonos-elements/{p-560aa686.system.entry.js → p-f1e9b431.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-8e4794fe.system.entry.js → p-f7b07128.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-5554ff33.system.entry.js → p-fbc09dae.system.entry.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/collection/types/online-store/OnlineStoreConfig.js +0 -1
- package/dist/types/types/online-store/OnlineStoreConfig.d.ts +0 -3
- package/dist/zonos-elements/p-3e70063e.entry.js +0 -1
- package/dist/zonos-elements/p-6d4232a6.system.js +0 -1
- package/dist/zonos-elements/p-ff95f098.js +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const zonosStore = require('./zonosStore-
|
|
4
|
-
const localization = require('./localization-
|
|
5
|
-
const isDarkColor = require('./isDarkColor-
|
|
6
|
-
const getBorderRadius = require('./getBorderRadius-
|
|
3
|
+
const zonosStore = require('./zonosStore-10d1d6ff.js');
|
|
4
|
+
const localization = require('./localization-4746acf7.js');
|
|
5
|
+
const isDarkColor = require('./isDarkColor-fc8c294a.js');
|
|
6
|
+
const getBorderRadius = require('./getBorderRadius-c3c63ee6.js');
|
|
7
7
|
|
|
8
8
|
const prepCalculateLandedCost = () => {
|
|
9
9
|
// maybe we don't need email now for prefetch the landed cost
|
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const cart = require('./cart-
|
|
6
|
-
require('./zonosStore-
|
|
5
|
+
const cart = require('./cart-cfa5d5fd.js');
|
|
6
|
+
require('./zonosStore-10d1d6ff.js');
|
|
7
7
|
require('./index-0dcccc22.js');
|
|
8
|
-
require('./localization-
|
|
9
|
-
require('./isDarkColor-
|
|
10
|
-
require('./getBorderRadius-
|
|
8
|
+
require('./localization-4746acf7.js');
|
|
9
|
+
require('./isDarkColor-fc8c294a.js');
|
|
10
|
+
require('./getBorderRadius-c3c63ee6.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const zonosStore = require('./zonosStore-
|
|
3
|
+
const zonosStore = require('./zonosStore-10d1d6ff.js');
|
|
4
4
|
|
|
5
5
|
var tinycolor = zonosStore.createCommonjsModule(function (module, exports) {
|
|
6
6
|
// This file is autogenerated. It's used to publish CJS to npm.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const zonosStore = require('./zonosStore-
|
|
4
|
-
const localization = require('./localization-
|
|
3
|
+
const zonosStore = require('./zonosStore-10d1d6ff.js');
|
|
4
|
+
const localization = require('./localization-4746acf7.js');
|
|
5
5
|
|
|
6
6
|
const checkoutBreakpoint = 890;
|
|
7
7
|
const isCheckoutMobile = (isMobile) => {
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-0dcccc22.js');
|
|
6
|
-
const cart = require('./cart-
|
|
7
|
-
const localization = require('./localization-
|
|
8
|
-
require('./zonosStore-
|
|
9
|
-
require('./isDarkColor-
|
|
10
|
-
require('./getBorderRadius-
|
|
6
|
+
const cart = require('./cart-cfa5d5fd.js');
|
|
7
|
+
const localization = require('./localization-4746acf7.js');
|
|
8
|
+
require('./zonosStore-10d1d6ff.js');
|
|
9
|
+
require('./isDarkColor-fc8c294a.js');
|
|
10
|
+
require('./getBorderRadius-c3c63ee6.js');
|
|
11
11
|
|
|
12
12
|
const zonosAddressCss = ".sc-zonos-address-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-address-h *.sc-zonos-address{font-family:var(--font-family, Inter), Inter}.sc-zonos-address-h img.sc-zonos-address{max-width:100%}.sc-zonos-address-h dl.sc-zonos-address,.sc-zonos-address-h dd.sc-zonos-address,.sc-zonos-address-h h1.sc-zonos-address,.sc-zonos-address-h h2.sc-zonos-address,.sc-zonos-address-h h3.sc-zonos-address,.sc-zonos-address-h h4.sc-zonos-address,.sc-zonos-address-h h5.sc-zonos-address,.sc-zonos-address-h h6.sc-zonos-address,.sc-zonos-address-h hr.sc-zonos-address,.sc-zonos-address-h figure.sc-zonos-address,.sc-zonos-address-h p.sc-zonos-address,.sc-zonos-address-h pre.sc-zonos-address{margin:0}.sc-zonos-address-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-address-h .zonos--title.sc-zonos-address{margin-bottom:var(--amino-space-16)}";
|
|
13
13
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-0dcccc22.js');
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
6
|
+
const zonosStore = require('./zonosStore-10d1d6ff.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
8
|
|
|
9
9
|
const zonosBadgeCss = ":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 .zonos--badge-content{display:-ms-flexbox;display:flex;gap:var(--amino-space-8);font-size:var(--amino-font-size-s);padding:4px 8px;text-align:center;border-radius:var(--amino-radius-6);background-color:var(--amino-gray-100);color:var(--amino-gray-800);-ms-flex-align:center;align-items:center}:host p{font-weight:600;line-height:16px}:host .icon-right svg{-ms-flex-order:2;order:2}:host .small{padding:2px 8px}:host .rounded{border-radius:20px}:host .bold{background-color:var(--amino-gray-600);color:var(--amino-gray-100)}:host .blue{background-color:var(--amino-blue-100);color:var(--amino-blue-800)}:host .blue.bold{background-color:var(--amino-blue-600);color:var(--amino-blue-100)}:host .green{background-color:var(--amino-green-100);color:var(--amino-green-800)}:host .green.bold{background-color:var(--amino-green-600);color:var(--amino-green-100)}:host .red{background-color:var(--amino-red-100);color:var(--amino-red-800)}:host .red.bold{background-color:var(--amino-red-600);color:var(--amino-red-100)}:host .orange{background-color:var(--amino-orange-100);color:var(--amino-orange-800)}:host .orange.bold{background-color:var(--amino-orange-600);color:var(--amino-orange-100)}:host .purple{background-color:var(--amino-purple-100);color:var(--amino-purple-800)}:host .purple.bold{background-color:var(--amino-purple-600);color:var(--amino-purple-100)}:host .cyan{background-color:var(--amino-cyan-100);color:var(--amino-cyan-800)}:host .cyan.bold{background-color:var(--amino-cyan-600);color:var(--amino-cyan-100)}";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-0dcccc22.js');
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
6
|
+
const zonosStore = require('./zonosStore-10d1d6ff.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
8
|
|
|
9
9
|
const zonosBannerCss = ":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{border-radius:var(--amino-radius-10);padding:var(--amino-space-16);background:var(--amino-gray-100)}:host .zonos--container{display:grid;-ms-flex-align:center;align-items:center;grid-template-areas:\"icon header\" \". content\";grid-template-columns:32px auto 0}:host .zonos--icon-wrapper{grid-area:icon;display:-ms-flexbox;display:flex;justify-self:start}:host .zonos--header-wrapper{margin-top:var(--amino-space-0);grid-area:header}:host .zonos--content-wrapper{grid-area:content;margin-top:var(--amino-space-4)}:host(.info){background-color:var(--amino-blue-100);border:1px solid var(--amino-blue-200)}:host(.success){background-color:var(--amino-green-100);border:1px solid var(--amino-green-200)}:host(.error){background-color:var(--amino-red-100);border:1px solid var(--amino-red-200)}:host(.warning){background-color:var(--amino-orange-100);border:1px solid var(--amino-orange-200)}";
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-0dcccc22.js');
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
6
|
+
const zonosStore = require('./zonosStore-10d1d6ff.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
|
-
const getBorderRadius = require('./getBorderRadius-
|
|
8
|
+
const getBorderRadius = require('./getBorderRadius-c3c63ee6.js');
|
|
9
9
|
const isColorVariable = require('./isColorVariable-41cacd82.js');
|
|
10
|
-
const isDarkColor = require('./isDarkColor-
|
|
10
|
+
const isDarkColor = require('./isDarkColor-fc8c294a.js');
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Get theme for button text based on background color
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-0dcccc22.js');
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
6
|
+
const zonosStore = require('./zonosStore-10d1d6ff.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
8
|
|
|
9
9
|
const zonosCardCss = ":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 .styled-card{border:var(--amino-border);border-radius:var(--amino-radius-6);padding:var(--spacing, var(--amino-space-24));text-align:left}:host .styled-card hr{margin-left:calc(var(--spacing, var(--amino-space-24)) * -1);margin-right:calc(var(--spacing, var(--amino-space-24)) * -1)}:host .styled-card .card-header{margin:calc(var(--spacing, var(--amino-space-24)) * -1);padding:var(--spacing, var(--amino-space-24));display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-bottom:var(--spacing, var(--amino-space-24));border-bottom:var(--amino-border);height:65px;line-height:65px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host .styled-card .card-header h5{margin-bottom:0;-ms-flex:1;flex:1}:host .styled-card .card-footer{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:calc(var(--spacing, var(--amino-space-24)) * -1);padding:var(--spacing, var(--amino-space-24));border-top:var(--amino-border);background:var(--amino-surface-color-secondary);margin-top:var(--spacing, var(--amino-space-24));border-bottom-left-radius:var(--amino-radius-8);border-bottom-right-radius:var(--amino-radius-8);height:var(--footerHeight)}";
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-0dcccc22.js');
|
|
6
|
-
const cart = require('./cart-
|
|
7
|
-
const localization = require('./localization-
|
|
8
|
-
const getBorderRadius = require('./getBorderRadius-
|
|
9
|
-
const submitGtag = require('./submitGtag-
|
|
10
|
-
const zonosStore = require('./zonosStore-
|
|
6
|
+
const cart = require('./cart-cfa5d5fd.js');
|
|
7
|
+
const localization = require('./localization-4746acf7.js');
|
|
8
|
+
const getBorderRadius = require('./getBorderRadius-c3c63ee6.js');
|
|
9
|
+
const submitGtag = require('./submitGtag-ca175427.js');
|
|
10
|
+
const zonosStore = require('./zonosStore-10d1d6ff.js');
|
|
11
11
|
const classes = require('./classes-b7918f56.js');
|
|
12
|
-
require('./isDarkColor-
|
|
12
|
+
require('./isDarkColor-fc8c294a.js');
|
|
13
13
|
|
|
14
14
|
const formatCurrency = ({ amount, currency, showCurrencyText, }) => showCurrencyText
|
|
15
15
|
? `${new Intl.NumberFormat('en-US', {
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-0dcccc22.js');
|
|
6
|
-
const cart = require('./cart-
|
|
7
|
-
const localization = require('./localization-
|
|
8
|
-
const zonosStore = require('./zonosStore-
|
|
9
|
-
const submitGtag = require('./submitGtag-
|
|
6
|
+
const cart = require('./cart-cfa5d5fd.js');
|
|
7
|
+
const localization = require('./localization-4746acf7.js');
|
|
8
|
+
const zonosStore = require('./zonosStore-10d1d6ff.js');
|
|
9
|
+
const submitGtag = require('./submitGtag-ca175427.js');
|
|
10
10
|
const classes = require('./classes-b7918f56.js');
|
|
11
|
-
const getBorderRadius = require('./getBorderRadius-
|
|
12
|
-
const isDarkColor = require('./isDarkColor-
|
|
11
|
+
const getBorderRadius = require('./getBorderRadius-c3c63ee6.js');
|
|
12
|
+
const isDarkColor = require('./isDarkColor-fc8c294a.js');
|
|
13
13
|
|
|
14
14
|
const LeftArrow = `<svg color="var(--amino-gray-800)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M9.707 16.707a1 1 0 0 1-1.414 0l-3.647-3.646a1.5 1.5 0 0 1 0-2.122l3.647-3.646a1 1 0 0 1 1.414 1.414L7.414 11H19a1 1 0 1 1 0 2H7.414l2.293 2.293a1 1 0 0 1 0 1.414Z" fill="currentColor" fill-rule="evenodd"></path></svg>`;
|
|
15
15
|
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-0dcccc22.js');
|
|
6
|
-
const cart = require('./cart-
|
|
7
|
-
const localization = require('./localization-
|
|
8
|
-
const zonosStore = require('./zonosStore-
|
|
9
|
-
require('./isDarkColor-
|
|
10
|
-
require('./getBorderRadius-
|
|
6
|
+
const cart = require('./cart-cfa5d5fd.js');
|
|
7
|
+
const localization = require('./localization-4746acf7.js');
|
|
8
|
+
const zonosStore = require('./zonosStore-10d1d6ff.js');
|
|
9
|
+
require('./isDarkColor-fc8c294a.js');
|
|
10
|
+
require('./getBorderRadius-c3c63ee6.js');
|
|
11
11
|
|
|
12
12
|
const getZonosSettings = async () => {
|
|
13
13
|
const url = `${"https://v1.route.js.zonos.com"}/api/zonos-elements/zonos-settings`;
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-0dcccc22.js');
|
|
6
|
-
const localization = require('./localization-
|
|
7
|
-
const zonosStore = require('./zonosStore-
|
|
6
|
+
const localization = require('./localization-4746acf7.js');
|
|
7
|
+
const zonosStore = require('./zonosStore-10d1d6ff.js');
|
|
8
8
|
const classes = require('./classes-b7918f56.js');
|
|
9
|
-
const isDarkColor = require('./isDarkColor-
|
|
9
|
+
const isDarkColor = require('./isDarkColor-fc8c294a.js');
|
|
10
10
|
|
|
11
11
|
const zonosCountryFlagCss = ":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 .flag-container{position:relative;overflow:hidden;width:100%;height:100%}:host .flag-icon{position:absolute;top:0;left:0;width:100%;height:100%;background-position:center;background-repeat:no-repeat;background-size:cover}";
|
|
12
12
|
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-0dcccc22.js');
|
|
6
|
-
const localization = require('./localization-
|
|
7
|
-
const zonosStore = require('./zonosStore-
|
|
6
|
+
const localization = require('./localization-4746acf7.js');
|
|
7
|
+
const zonosStore = require('./zonosStore-10d1d6ff.js');
|
|
8
8
|
const classes = require('./classes-b7918f56.js');
|
|
9
9
|
const getHasMoreSpaceOnRight = require('./getHasMoreSpaceOnRight-4c94667f.js');
|
|
10
10
|
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-0dcccc22.js');
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
7
|
-
const localization = require('./localization-
|
|
6
|
+
const zonosStore = require('./zonosStore-10d1d6ff.js');
|
|
7
|
+
const localization = require('./localization-4746acf7.js');
|
|
8
8
|
const classes = require('./classes-b7918f56.js');
|
|
9
9
|
const getHasMoreSpaceOnRight = require('./getHasMoreSpaceOnRight-4c94667f.js');
|
|
10
10
|
|
|
@@ -459,7 +459,7 @@ const RESIZE_DEBOUNCE_DELAY_MS = 500;
|
|
|
459
459
|
const ZonosHello = class {
|
|
460
460
|
constructor(hostRef) {
|
|
461
461
|
index.registerInstance(this, hostRef);
|
|
462
|
-
this.getHelloPeekMessage = () => {
|
|
462
|
+
this.getHelloPeekMessage = (organizationName) => {
|
|
463
463
|
const isRestrictionPage = zonosStore.zonosStore.currentHelloPage === 'productDetail' ||
|
|
464
464
|
zonosStore.zonosStore.currentHelloPage === 'productList';
|
|
465
465
|
if (isRestrictionPage && this.allRestrictedItems.length) {
|
|
@@ -476,7 +476,7 @@ const ZonosHello = class {
|
|
|
476
476
|
case 'productDetail':
|
|
477
477
|
return localization.translate(`See duty and tax thresholds`);
|
|
478
478
|
default:
|
|
479
|
-
return `${localization.translate('Welcome to')} ${
|
|
479
|
+
return `${localization.translate('Welcome to')} ${organizationName}`;
|
|
480
480
|
}
|
|
481
481
|
};
|
|
482
482
|
this.enableShowPeekMessage = () => {
|
|
@@ -496,7 +496,7 @@ const ZonosHello = class {
|
|
|
496
496
|
return newRestrictions;
|
|
497
497
|
};
|
|
498
498
|
this.triggerShowPeekMessage = () => {
|
|
499
|
-
this.peekMessage = this.getHelloPeekMessage();
|
|
499
|
+
this.peekMessage = this.getHelloPeekMessage(zonosStore.zonosStore.organizationName);
|
|
500
500
|
const { peekMessageBehavior, peekMessageDelay } = zonosStore.zonosStore.helloSettings;
|
|
501
501
|
// peek message delay is passed in seconds, but setTimeout expects milliseconds
|
|
502
502
|
const peekMessageDelayToUse = peekMessageDelay * 1000;
|
|
@@ -692,6 +692,9 @@ const ZonosHello = class {
|
|
|
692
692
|
const appearanceSettings = zonosStore.mergeConfig(zonosStore.zonosStore.appearance, this.appearanceSettingsOverride);
|
|
693
693
|
const { theme } = appearanceSettings;
|
|
694
694
|
const restrictedItemsOnPage = (_b = this.allRestrictedItems) === null || _b === void 0 ? void 0 : _b.filter(product => this.productsOnPage.some(restriction => restriction.description === product.itemDescription));
|
|
695
|
+
// The organization name can be changed after init with the updateOrganizationName method.
|
|
696
|
+
// This will cause the element to rerender with the new org name when it changes. (used for preview on dashboard)
|
|
697
|
+
this.peekMessage = this.getHelloPeekMessage(zonosStore.zonosStore.organizationName);
|
|
695
698
|
const showHello = this.isShippableCountry() && !!selectedCountryCode;
|
|
696
699
|
return (index.h(index.Host, { class: "zonos--hello zonos--elements", "data-theme": theme }, showHello && (index.h("div", { class: "zonos--hello-wrapper" }, index.h("button", { class: classes.classes([
|
|
697
700
|
'zonos--hello-widget',
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-0dcccc22.js');
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
6
|
+
const zonosStore = require('./zonosStore-10d1d6ff.js');
|
|
7
7
|
|
|
8
8
|
const zonosIconCss = ":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 svg{width:var(--width);height:var(--height);fill:var(--color);color:var(--color)}";
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-0dcccc22.js');
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
6
|
+
const zonosStore = require('./zonosStore-10d1d6ff.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
8
|
|
|
9
9
|
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:9999999;bottom:var(--amino-space-24);gap:var(--amino-space-8);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:var(--amino-space-8);border-radius:var(--border-radius, var(--amino-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(--amino-green-700)}:host .zonos--notification-item.error{background-color:var(--amino-red-700)}:host .zonos--notification-item.warning{background-color:var(--amino-orange-700)}";
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-0dcccc22.js');
|
|
6
|
-
const cart = require('./cart-
|
|
7
|
-
require('./zonosStore-
|
|
8
|
-
require('./localization-
|
|
9
|
-
require('./isDarkColor-
|
|
10
|
-
require('./getBorderRadius-
|
|
6
|
+
const cart = require('./cart-cfa5d5fd.js');
|
|
7
|
+
require('./zonosStore-10d1d6ff.js');
|
|
8
|
+
require('./localization-4746acf7.js');
|
|
9
|
+
require('./isDarkColor-fc8c294a.js');
|
|
10
|
+
require('./getBorderRadius-c3c63ee6.js');
|
|
11
11
|
|
|
12
12
|
const zonosPaymentCss = ".sc-zonos-payment-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-payment-h *.sc-zonos-payment{font-family:var(--font-family, Inter), Inter}.sc-zonos-payment-h img.sc-zonos-payment{max-width:100%}.sc-zonos-payment-h dl.sc-zonos-payment,.sc-zonos-payment-h dd.sc-zonos-payment,.sc-zonos-payment-h h1.sc-zonos-payment,.sc-zonos-payment-h h2.sc-zonos-payment,.sc-zonos-payment-h h3.sc-zonos-payment,.sc-zonos-payment-h h4.sc-zonos-payment,.sc-zonos-payment-h h5.sc-zonos-payment,.sc-zonos-payment-h h6.sc-zonos-payment,.sc-zonos-payment-h hr.sc-zonos-payment,.sc-zonos-payment-h figure.sc-zonos-payment,.sc-zonos-payment-h p.sc-zonos-payment,.sc-zonos-payment-h pre.sc-zonos-payment{margin:0}.sc-zonos-payment-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-payment-h .zonos--title.sc-zonos-payment{margin-bottom:var(--amino-space-16)}";
|
|
13
13
|
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-0dcccc22.js');
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
6
|
+
const zonosStore = require('./zonosStore-10d1d6ff.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
|
-
const getBorderRadius = require('./getBorderRadius-
|
|
8
|
+
const getBorderRadius = require('./getBorderRadius-c3c63ee6.js');
|
|
9
9
|
const isColorVariable = require('./isColorVariable-41cacd82.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(--amino-blue-600))}:host .zonos--shipping-rich-radio-item{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;padding:var(--amino-space-16);-ms-flex-align:center;align-items:center;gap:var(--amino-space-16);cursor:pointer;border:1px solid var(--amino-gray-200)}:host .zonos--shipping-rich-radio-item:first-child{border-top-left-radius:var(--border-radius, var(--amino-radius-10));border-top-right-radius:var(--border-radius, var(--amino-radius-10))}:host .zonos--shipping-rich-radio-item:last-child{border-bottom-right-radius:var(--border-radius, var(--amino-radius-10));border-bottom-left-radius:var(--border-radius, var(--amino-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(--amino-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-0dcccc22.js');
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
6
|
+
const zonosStore = require('./zonosStore-10d1d6ff.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
8
|
|
|
9
9
|
const textOptions = {
|
|
@@ -2529,7 +2529,6 @@ const { reset, state: zonosStore } = createStore(() => ({
|
|
|
2529
2529
|
zonosAttribution: 'DISABLED',
|
|
2530
2530
|
},
|
|
2531
2531
|
checkoutSettings: {
|
|
2532
|
-
allowedDomains: [],
|
|
2533
2532
|
analyticsProviders: [],
|
|
2534
2533
|
orderNotifications: {
|
|
2535
2534
|
abandonedCart: {
|
|
@@ -2563,7 +2562,6 @@ const { reset, state: zonosStore } = createStore(() => ({
|
|
|
2563
2562
|
},
|
|
2564
2563
|
currentHelloPage: '',
|
|
2565
2564
|
helloSettings: {
|
|
2566
|
-
allowedDomains: [],
|
|
2567
2565
|
anchorElementSelector: '',
|
|
2568
2566
|
cartUrlPattern: '',
|
|
2569
2567
|
currencyBehavior: 'ENABLED',
|
|
@@ -2585,9 +2583,6 @@ const { reset, state: zonosStore } = createStore(() => ({
|
|
|
2585
2583
|
restrictionBehavior: 'DISABLED',
|
|
2586
2584
|
},
|
|
2587
2585
|
loadedConfig: false,
|
|
2588
|
-
onlineStoreSettings: {
|
|
2589
|
-
allowedDomains: [],
|
|
2590
|
-
},
|
|
2591
2586
|
organizationName: '',
|
|
2592
2587
|
sourceCurrency: 'USD',
|
|
2593
2588
|
storeId: null,
|
|
@@ -2613,9 +2608,6 @@ const zonosStoreInitSetting = ({ overrideSettings, zonosSettings, }) => {
|
|
|
2613
2608
|
(zonosSettings === null || zonosSettings === void 0 ? void 0 : zonosSettings.checkoutSettings) ||
|
|
2614
2609
|
null, overrideSettings.checkoutSettings);
|
|
2615
2610
|
zonosStore.helloSettings = mergeConfig(zonosStore.helloSettings, (savedZonosSettings === null || savedZonosSettings === void 0 ? void 0 : savedZonosSettings.helloSettings) || (zonosSettings === null || zonosSettings === void 0 ? void 0 : zonosSettings.helloSettings) || null, overrideSettings.helloSettings);
|
|
2616
|
-
zonosStore.onlineStoreSettings = mergeConfig(zonosStore.onlineStoreSettings, (savedZonosSettings === null || savedZonosSettings === void 0 ? void 0 : savedZonosSettings.onlineStoreSettings) ||
|
|
2617
|
-
(zonosSettings === null || zonosSettings === void 0 ? void 0 : zonosSettings.onlineStoreSettings) ||
|
|
2618
|
-
null, overrideSettings.onlineStoreSettings);
|
|
2619
2611
|
// set flag to true to indicate that config is ready
|
|
2620
2612
|
zonosStore.loadedConfig = true;
|
|
2621
2613
|
zonosStore.organizationName = ((_a = zonosSettings === null || zonosSettings === void 0 ? void 0 : zonosSettings.organization) === null || _a === void 0 ? void 0 : _a.name) || '';
|
|
@@ -20,7 +20,7 @@ const PEEK_MESSAGE_CLOSE_DELAY_MS = 3000;
|
|
|
20
20
|
const RESIZE_DEBOUNCE_DELAY_MS = 500;
|
|
21
21
|
export class ZonosHello {
|
|
22
22
|
constructor() {
|
|
23
|
-
this.getHelloPeekMessage = () => {
|
|
23
|
+
this.getHelloPeekMessage = (organizationName) => {
|
|
24
24
|
const isRestrictionPage = zonosStore.currentHelloPage === 'productDetail' ||
|
|
25
25
|
zonosStore.currentHelloPage === 'productList';
|
|
26
26
|
if (isRestrictionPage && this.allRestrictedItems.length) {
|
|
@@ -37,7 +37,7 @@ export class ZonosHello {
|
|
|
37
37
|
case 'productDetail':
|
|
38
38
|
return translate(`See duty and tax thresholds`);
|
|
39
39
|
default:
|
|
40
|
-
return `${translate('Welcome to')} ${
|
|
40
|
+
return `${translate('Welcome to')} ${organizationName}`;
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
43
|
this.enableShowPeekMessage = () => {
|
|
@@ -57,7 +57,7 @@ export class ZonosHello {
|
|
|
57
57
|
return newRestrictions;
|
|
58
58
|
};
|
|
59
59
|
this.triggerShowPeekMessage = () => {
|
|
60
|
-
this.peekMessage = this.getHelloPeekMessage();
|
|
60
|
+
this.peekMessage = this.getHelloPeekMessage(zonosStore.organizationName);
|
|
61
61
|
const { peekMessageBehavior, peekMessageDelay } = zonosStore.helloSettings;
|
|
62
62
|
// peek message delay is passed in seconds, but setTimeout expects milliseconds
|
|
63
63
|
const peekMessageDelayToUse = peekMessageDelay * 1000;
|
|
@@ -253,6 +253,9 @@ export class ZonosHello {
|
|
|
253
253
|
const appearanceSettings = mergeConfig(zonosStore.appearance, this.appearanceSettingsOverride);
|
|
254
254
|
const { theme } = appearanceSettings;
|
|
255
255
|
const restrictedItemsOnPage = (_b = this.allRestrictedItems) === null || _b === void 0 ? void 0 : _b.filter(product => this.productsOnPage.some(restriction => restriction.description === product.itemDescription));
|
|
256
|
+
// The organization name can be changed after init with the updateOrganizationName method.
|
|
257
|
+
// This will cause the element to rerender with the new org name when it changes. (used for preview on dashboard)
|
|
258
|
+
this.peekMessage = this.getHelloPeekMessage(zonosStore.organizationName);
|
|
256
259
|
const showHello = this.isShippableCountry() && !!selectedCountryCode;
|
|
257
260
|
return (h(Host, { class: "zonos--hello zonos--elements", "data-theme": theme }, showHello && (h("div", { class: "zonos--hello-wrapper" }, h("button", { class: classes([
|
|
258
261
|
'zonos--hello-widget',
|
|
@@ -220,7 +220,7 @@ export class ZonosController {
|
|
|
220
220
|
"mutable": false,
|
|
221
221
|
"complexType": {
|
|
222
222
|
"original": "LoadZonosParamsConfig",
|
|
223
|
-
"resolved": "{ appearance?: Partial<AppearanceConfig> | undefined; checkoutSettings?: Partial<CheckoutConfig> | undefined; currencyConverter?: CurrencyConverter | undefined; helloSettings?: Partial<HelloConfig> | undefined;
|
|
223
|
+
"resolved": "{ appearance?: Partial<AppearanceConfig> | undefined; checkoutSettings?: Partial<CheckoutConfig> | undefined; currencyConverter?: CurrencyConverter | undefined; helloSettings?: Partial<HelloConfig> | undefined; }",
|
|
224
224
|
"references": {
|
|
225
225
|
"LoadZonosParamsConfig": {
|
|
226
226
|
"location": "import",
|
|
@@ -353,7 +353,7 @@ export class ZonosController {
|
|
|
353
353
|
"signature": "(config: LoadZonosParamsConfig) => Promise<void>",
|
|
354
354
|
"parameters": [{
|
|
355
355
|
"name": "config",
|
|
356
|
-
"type": "{ appearance?: Partial<AppearanceConfig> | undefined; checkoutSettings?: Partial<CheckoutConfig> | undefined; currencyConverter?: CurrencyConverter | undefined; helloSettings?: Partial<HelloConfig> | undefined;
|
|
356
|
+
"type": "{ appearance?: Partial<AppearanceConfig> | undefined; checkoutSettings?: Partial<CheckoutConfig> | undefined; currencyConverter?: CurrencyConverter | undefined; helloSettings?: Partial<HelloConfig> | undefined; }",
|
|
357
357
|
"docs": "config that need to override the default setting"
|
|
358
358
|
}],
|
|
359
359
|
"references": {
|
|
@@ -10,7 +10,6 @@ const { reset, state: zonosStore } = createStore(() => ({
|
|
|
10
10
|
zonosAttribution: 'DISABLED',
|
|
11
11
|
},
|
|
12
12
|
checkoutSettings: {
|
|
13
|
-
allowedDomains: [],
|
|
14
13
|
analyticsProviders: [],
|
|
15
14
|
orderNotifications: {
|
|
16
15
|
abandonedCart: {
|
|
@@ -44,7 +43,6 @@ const { reset, state: zonosStore } = createStore(() => ({
|
|
|
44
43
|
},
|
|
45
44
|
currentHelloPage: '',
|
|
46
45
|
helloSettings: {
|
|
47
|
-
allowedDomains: [],
|
|
48
46
|
anchorElementSelector: '',
|
|
49
47
|
cartUrlPattern: '',
|
|
50
48
|
currencyBehavior: 'ENABLED',
|
|
@@ -66,9 +64,6 @@ const { reset, state: zonosStore } = createStore(() => ({
|
|
|
66
64
|
restrictionBehavior: 'DISABLED',
|
|
67
65
|
},
|
|
68
66
|
loadedConfig: false,
|
|
69
|
-
onlineStoreSettings: {
|
|
70
|
-
allowedDomains: [],
|
|
71
|
-
},
|
|
72
67
|
organizationName: '',
|
|
73
68
|
sourceCurrency: 'USD',
|
|
74
69
|
storeId: null,
|
|
@@ -94,9 +89,6 @@ const zonosStoreInitSetting = ({ overrideSettings, zonosSettings, }) => {
|
|
|
94
89
|
(zonosSettings === null || zonosSettings === void 0 ? void 0 : zonosSettings.checkoutSettings) ||
|
|
95
90
|
null, overrideSettings.checkoutSettings);
|
|
96
91
|
zonosStore.helloSettings = mergeConfig(zonosStore.helloSettings, (savedZonosSettings === null || savedZonosSettings === void 0 ? void 0 : savedZonosSettings.helloSettings) || (zonosSettings === null || zonosSettings === void 0 ? void 0 : zonosSettings.helloSettings) || null, overrideSettings.helloSettings);
|
|
97
|
-
zonosStore.onlineStoreSettings = mergeConfig(zonosStore.onlineStoreSettings, (savedZonosSettings === null || savedZonosSettings === void 0 ? void 0 : savedZonosSettings.onlineStoreSettings) ||
|
|
98
|
-
(zonosSettings === null || zonosSettings === void 0 ? void 0 : zonosSettings.onlineStoreSettings) ||
|
|
99
|
-
null, overrideSettings.onlineStoreSettings);
|
|
100
92
|
// set flag to true to indicate that config is ready
|
|
101
93
|
zonosStore.loadedConfig = true;
|
|
102
94
|
zonosStore.organizationName = ((_a = zonosSettings === null || zonosSettings === void 0 ? void 0 : zonosSettings.organization) === null || _a === void 0 ? void 0 : _a.name) || '';
|
|
@@ -51,10 +51,18 @@ export const carrierAccountApiUsage = {
|
|
|
51
51
|
Label: 'LABEL',
|
|
52
52
|
Rating: 'RATING',
|
|
53
53
|
};
|
|
54
|
+
export const carrierAccountIntegrationType = {
|
|
55
|
+
Rest: 'REST',
|
|
56
|
+
Soap: 'SOAP',
|
|
57
|
+
};
|
|
54
58
|
export const carrierAccountRateType = {
|
|
55
59
|
Negotiated: 'NEGOTIATED',
|
|
56
60
|
Retail: 'RETAIL',
|
|
57
61
|
};
|
|
62
|
+
export const carrierAccountRegistrationType = {
|
|
63
|
+
Other: 'OTHER',
|
|
64
|
+
Zonos: 'ZONOS',
|
|
65
|
+
};
|
|
58
66
|
export const carrierAccountUsageCategoryCode = {
|
|
59
67
|
Shipping: 'SHIPPING',
|
|
60
68
|
};
|
|
@@ -1024,6 +1032,12 @@ export const exchangeRateType = {
|
|
|
1024
1032
|
Guaranteed: 'GUARANTEED',
|
|
1025
1033
|
MidMarket: 'MID_MARKET',
|
|
1026
1034
|
};
|
|
1035
|
+
export const exportJobStatus = {
|
|
1036
|
+
Completed: 'COMPLETED',
|
|
1037
|
+
Error: 'ERROR',
|
|
1038
|
+
Initialized: 'INITIALIZED',
|
|
1039
|
+
Processing: 'PROCESSING',
|
|
1040
|
+
};
|
|
1027
1041
|
export const externalServiceTokenType = {
|
|
1028
1042
|
StripePublishableToken: 'STRIPE_PUBLISHABLE_TOKEN',
|
|
1029
1043
|
};
|
|
@@ -1244,6 +1258,12 @@ export const landedCostAdjustmentType = {
|
|
|
1244
1258
|
Item: 'ITEM',
|
|
1245
1259
|
Shipping: 'SHIPPING',
|
|
1246
1260
|
};
|
|
1261
|
+
export const landedCostBillingPartyType = {
|
|
1262
|
+
Customer: 'CUSTOMER',
|
|
1263
|
+
Merchant: 'MERCHANT',
|
|
1264
|
+
ThirdParty: 'THIRD_PARTY',
|
|
1265
|
+
Zonos: 'ZONOS',
|
|
1266
|
+
};
|
|
1247
1267
|
export const landedCostCalculationMethod = {
|
|
1248
1268
|
Dap: 'DAP',
|
|
1249
1269
|
Ddp: 'DDP',
|
|
@@ -1271,6 +1291,7 @@ export const landedCostFeeType = {
|
|
|
1271
1291
|
Item: 'ITEM',
|
|
1272
1292
|
Other: 'OTHER',
|
|
1273
1293
|
Shipping: 'SHIPPING',
|
|
1294
|
+
Tax: 'TAX',
|
|
1274
1295
|
ZonosLandedCostGuarantee: 'ZONOS_LANDED_COST_GUARANTEE',
|
|
1275
1296
|
};
|
|
1276
1297
|
export const landedCostGuaranteeCode = {
|
|
@@ -1758,9 +1779,19 @@ export const wcoVersion = {
|
|
|
1758
1779
|
Wco_1997: 'WCO_1997',
|
|
1759
1780
|
Wco_2002: 'WCO_2002',
|
|
1760
1781
|
Wco_2007: 'WCO_2007',
|
|
1782
|
+
Wco_2012: 'WCO_2012',
|
|
1761
1783
|
Wco_2017: 'WCO_2017',
|
|
1762
1784
|
Wco_2022: 'WCO_2022',
|
|
1763
1785
|
Wco_2027: 'WCO_2027',
|
|
1786
|
+
Wco_2032: 'WCO_2032',
|
|
1787
|
+
Wco_2037: 'WCO_2037',
|
|
1788
|
+
Wco_2042: 'WCO_2042',
|
|
1789
|
+
Wco_2047: 'WCO_2047',
|
|
1790
|
+
Wco_2052: 'WCO_2052',
|
|
1791
|
+
Wco_2057: 'WCO_2057',
|
|
1792
|
+
Wco_2062: 'WCO_2062',
|
|
1793
|
+
Wco_2067: 'WCO_2067',
|
|
1794
|
+
Wco_2072: 'WCO_2072',
|
|
1764
1795
|
};
|
|
1765
1796
|
export const weightUnitCode = {
|
|
1766
1797
|
Gram: 'GRAM',
|
|
@@ -468,7 +468,7 @@ const ZonosHello$1 = /*@__PURE__*/ proxyCustomElement(class ZonosHello extends H
|
|
|
468
468
|
super();
|
|
469
469
|
this.__registerHost();
|
|
470
470
|
this.__attachShadow();
|
|
471
|
-
this.getHelloPeekMessage = () => {
|
|
471
|
+
this.getHelloPeekMessage = (organizationName) => {
|
|
472
472
|
const isRestrictionPage = zonosStore.currentHelloPage === 'productDetail' ||
|
|
473
473
|
zonosStore.currentHelloPage === 'productList';
|
|
474
474
|
if (isRestrictionPage && this.allRestrictedItems.length) {
|
|
@@ -485,7 +485,7 @@ const ZonosHello$1 = /*@__PURE__*/ proxyCustomElement(class ZonosHello extends H
|
|
|
485
485
|
case 'productDetail':
|
|
486
486
|
return translate(`See duty and tax thresholds`);
|
|
487
487
|
default:
|
|
488
|
-
return `${translate('Welcome to')} ${
|
|
488
|
+
return `${translate('Welcome to')} ${organizationName}`;
|
|
489
489
|
}
|
|
490
490
|
};
|
|
491
491
|
this.enableShowPeekMessage = () => {
|
|
@@ -505,7 +505,7 @@ const ZonosHello$1 = /*@__PURE__*/ proxyCustomElement(class ZonosHello extends H
|
|
|
505
505
|
return newRestrictions;
|
|
506
506
|
};
|
|
507
507
|
this.triggerShowPeekMessage = () => {
|
|
508
|
-
this.peekMessage = this.getHelloPeekMessage();
|
|
508
|
+
this.peekMessage = this.getHelloPeekMessage(zonosStore.organizationName);
|
|
509
509
|
const { peekMessageBehavior, peekMessageDelay } = zonosStore.helloSettings;
|
|
510
510
|
// peek message delay is passed in seconds, but setTimeout expects milliseconds
|
|
511
511
|
const peekMessageDelayToUse = peekMessageDelay * 1000;
|
|
@@ -701,6 +701,9 @@ const ZonosHello$1 = /*@__PURE__*/ proxyCustomElement(class ZonosHello extends H
|
|
|
701
701
|
const appearanceSettings = mergeConfig(zonosStore.appearance, this.appearanceSettingsOverride);
|
|
702
702
|
const { theme } = appearanceSettings;
|
|
703
703
|
const restrictedItemsOnPage = (_b = this.allRestrictedItems) === null || _b === void 0 ? void 0 : _b.filter(product => this.productsOnPage.some(restriction => restriction.description === product.itemDescription));
|
|
704
|
+
// The organization name can be changed after init with the updateOrganizationName method.
|
|
705
|
+
// This will cause the element to rerender with the new org name when it changes. (used for preview on dashboard)
|
|
706
|
+
this.peekMessage = this.getHelloPeekMessage(zonosStore.organizationName);
|
|
704
707
|
const showHello = this.isShippableCountry() && !!selectedCountryCode;
|
|
705
708
|
return (h(Host, { class: "zonos--hello zonos--elements", "data-theme": theme }, showHello && (h("div", { class: "zonos--hello-wrapper" }, h("button", { class: classes([
|
|
706
709
|
'zonos--hello-widget',
|
|
@@ -2527,7 +2527,6 @@ const { reset, state: zonosStore } = createStore(() => ({
|
|
|
2527
2527
|
zonosAttribution: 'DISABLED',
|
|
2528
2528
|
},
|
|
2529
2529
|
checkoutSettings: {
|
|
2530
|
-
allowedDomains: [],
|
|
2531
2530
|
analyticsProviders: [],
|
|
2532
2531
|
orderNotifications: {
|
|
2533
2532
|
abandonedCart: {
|
|
@@ -2561,7 +2560,6 @@ const { reset, state: zonosStore } = createStore(() => ({
|
|
|
2561
2560
|
},
|
|
2562
2561
|
currentHelloPage: '',
|
|
2563
2562
|
helloSettings: {
|
|
2564
|
-
allowedDomains: [],
|
|
2565
2563
|
anchorElementSelector: '',
|
|
2566
2564
|
cartUrlPattern: '',
|
|
2567
2565
|
currencyBehavior: 'ENABLED',
|
|
@@ -2583,9 +2581,6 @@ const { reset, state: zonosStore } = createStore(() => ({
|
|
|
2583
2581
|
restrictionBehavior: 'DISABLED',
|
|
2584
2582
|
},
|
|
2585
2583
|
loadedConfig: false,
|
|
2586
|
-
onlineStoreSettings: {
|
|
2587
|
-
allowedDomains: [],
|
|
2588
|
-
},
|
|
2589
2584
|
organizationName: '',
|
|
2590
2585
|
sourceCurrency: 'USD',
|
|
2591
2586
|
storeId: null,
|
|
@@ -2611,9 +2606,6 @@ const zonosStoreInitSetting = ({ overrideSettings, zonosSettings, }) => {
|
|
|
2611
2606
|
(zonosSettings === null || zonosSettings === void 0 ? void 0 : zonosSettings.checkoutSettings) ||
|
|
2612
2607
|
null, overrideSettings.checkoutSettings);
|
|
2613
2608
|
zonosStore.helloSettings = mergeConfig(zonosStore.helloSettings, (savedZonosSettings === null || savedZonosSettings === void 0 ? void 0 : savedZonosSettings.helloSettings) || (zonosSettings === null || zonosSettings === void 0 ? void 0 : zonosSettings.helloSettings) || null, overrideSettings.helloSettings);
|
|
2614
|
-
zonosStore.onlineStoreSettings = mergeConfig(zonosStore.onlineStoreSettings, (savedZonosSettings === null || savedZonosSettings === void 0 ? void 0 : savedZonosSettings.onlineStoreSettings) ||
|
|
2615
|
-
(zonosSettings === null || zonosSettings === void 0 ? void 0 : zonosSettings.onlineStoreSettings) ||
|
|
2616
|
-
null, overrideSettings.onlineStoreSettings);
|
|
2617
2609
|
// set flag to true to indicate that config is ready
|
|
2618
2610
|
zonosStore.loadedConfig = true;
|
|
2619
2611
|
zonosStore.organizationName = ((_a = zonosSettings === null || zonosSettings === void 0 ? void 0 : zonosSettings.organization) === null || _a === void 0 ? void 0 : _a.name) || '';
|