@zonos/elements 1.3.129 → 1.3.131
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/{CheckoutConfig-62479cef.js → CheckoutConfig-1d38a21d.js} +2 -0
- package/dist/cjs/{cart-ba8cca00.js → cart-d5240ba9.js} +192 -5
- package/dist/cjs/{getBorderRadius-61ed5601.js → getBorderRadius-f72d8edf.js} +1 -1
- package/dist/cjs/index.cjs.js +40 -8
- package/dist/cjs/{isDarkColor-d206c6fa.js → isDarkColor-dd6d723b.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{paypal-441c3f79.js → paypal-78db30b7.js} +3 -3
- package/dist/cjs/zonos-address_7.cjs.entry.js +4 -4
- 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_3.cjs.entry.js +3 -3
- package/dist/cjs/zonos-card.cjs.entry.js +2 -2
- package/dist/cjs/zonos-cart-items_13.cjs.entry.js +5 -5
- package/dist/cjs/zonos-checkout.cjs.entry.js +82 -7
- package/dist/cjs/zonos-collapse.cjs.entry.js +1 -1
- package/dist/cjs/zonos-controller.cjs.entry.js +4 -4
- 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 +4 -4
- 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-toggle.cjs.entry.js +1 -1
- package/dist/cjs/zonos-v-stack.cjs.entry.js +1 -1
- package/dist/cjs/{zonosStore-e12d459c.js → zonosStore-293bb3ba.js} +1 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +77 -1
- package/dist/collection/components/store/translationStore/strings.arabic.js +9 -0
- package/dist/collection/components/store/translationStore/strings.base.js +9 -0
- package/dist/collection/components/store/translationStore/strings.chinese.js +9 -0
- package/dist/collection/components/store/translationStore/strings.danish.js +9 -0
- package/dist/collection/components/store/translationStore/strings.dutch.js +9 -0
- package/dist/collection/components/store/translationStore/strings.french.js +9 -0
- package/dist/collection/components/store/translationStore/strings.german.js +9 -0
- package/dist/collection/components/store/translationStore/strings.hebrew.js +9 -0
- package/dist/collection/components/store/translationStore/strings.indonesian.js +9 -0
- package/dist/collection/components/store/translationStore/strings.italian.js +9 -0
- package/dist/collection/components/store/translationStore/strings.japanese.js +9 -0
- package/dist/collection/components/store/translationStore/strings.korean.js +9 -0
- package/dist/collection/components/store/translationStore/strings.norwegian.js +9 -0
- package/dist/collection/components/store/translationStore/strings.polish.js +9 -0
- package/dist/collection/components/store/translationStore/strings.portuguese.js +9 -0
- package/dist/collection/components/store/translationStore/strings.russian.js +9 -0
- package/dist/collection/components/store/translationStore/strings.spanish.js +9 -0
- package/dist/collection/components/store/translationStore/strings.swedish.js +9 -0
- package/dist/collection/components/store/translationStore/strings.turkish.js +9 -0
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +9 -0
- package/dist/collection/components/store/zonosStore.js +1 -0
- package/dist/collection/components/utils/api/prepCalculateLandedCost.js +9 -2
- package/dist/collection/scripts/_overrideWithTestPublicCredential.js +32 -0
- package/dist/collection/scripts/_zonosBase.js +3 -0
- package/dist/collection/scripts/cart/_setupCartData.js +2 -0
- package/dist/collection/types/TestPublicCredential.js +1 -0
- package/dist/collection/types/generated/graphql.internal.types.js +3 -0
- package/dist/collection/types/index.js +1 -0
- package/dist/esm/{CheckoutConfig-5da839fa.js → CheckoutConfig-56c63bdf.js} +2 -0
- package/dist/esm/{cart-01b5bf4a.js → cart-4f1ee6dd.js} +192 -5
- package/dist/esm/{getBorderRadius-008516a4.js → getBorderRadius-bdd709e7.js} +1 -1
- package/dist/esm/index.js +42 -10
- package/dist/esm/{isDarkColor-dc08fa26.js → isDarkColor-c6924924.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{paypal-4c094b25.js → paypal-5b1964b6.js} +3 -3
- package/dist/esm/zonos-address_7.entry.js +4 -4
- package/dist/esm/zonos-badge.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_13.entry.js +5 -5
- package/dist/esm/zonos-checkout.entry.js +83 -8
- package/dist/esm/zonos-collapse.entry.js +1 -1
- package/dist/esm/zonos-controller.entry.js +4 -4
- 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 +4 -4
- 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-toggle.entry.js +1 -1
- package/dist/esm/zonos-v-stack.entry.js +1 -1
- package/dist/esm/{zonosStore-6b5bd87c.js → zonosStore-c493c4fe.js} +1 -0
- package/dist/esm-es5/{CheckoutConfig-5da839fa.js → CheckoutConfig-56c63bdf.js} +1 -1
- package/dist/esm-es5/cart-4f1ee6dd.js +1 -0
- package/dist/esm-es5/{getBorderRadius-008516a4.js → getBorderRadius-bdd709e7.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{isDarkColor-dc08fa26.js → isDarkColor-c6924924.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{paypal-4c094b25.js → paypal-5b1964b6.js} +1 -1
- package/dist/esm-es5/zonos-address_7.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_3.entry.js +1 -1
- package/dist/esm-es5/zonos-card.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_13.entry.js +1 -1
- package/dist/esm-es5/zonos-checkout.entry.js +1 -1
- package/dist/esm-es5/zonos-collapse.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-toggle.entry.js +1 -1
- package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
- package/dist/esm-es5/{zonosStore-6b5bd87c.js → zonosStore-c493c4fe.js} +1 -1
- package/dist/scripts/index.d.ts +7 -0
- package/dist/scripts/index.js +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.base.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.danish.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.french.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.german.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.italian.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.korean.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.polish.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.russian.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +9 -0
- package/dist/types/components/store/translationStore.d.ts +1 -1
- package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
- package/dist/types/scripts/_overrideWithTestPublicCredential.d.ts +4 -0
- package/dist/types/types/TestPublicCredential.d.ts +3 -0
- package/dist/types/types/Version.d.ts +3 -0
- package/dist/types/types/checkout/CheckoutConfig.d.ts +5 -0
- package/dist/types/types/checkout/api/CalculateLandedCost.d.ts +1 -0
- package/dist/types/types/checkout/api/NormalizedTempCart.d.ts +1 -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/generated/graphql.internal.types.d.ts +13 -0
- package/dist/types/types/generated/graphql.internal.types.ts +26 -1
- package/dist/types/types/index.d.ts +1 -0
- package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-2faa3104.system.entry.js → p-0531689a.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-1e4d8228.entry.js → p-0cf44851.entry.js} +1 -1
- package/dist/zonos-elements/{p-57d93236.entry.js → p-0cfab69e.entry.js} +1 -1
- package/dist/zonos-elements/{p-5ac777a7.system.entry.js → p-0fc96872.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-700c5732.entry.js → p-10cebad7.entry.js} +1 -1
- package/dist/zonos-elements/{p-e1ce04b1.js → p-10d6fe23.js} +1 -1
- package/dist/zonos-elements/{p-00dc1507.system.js → p-10efff62.system.js} +1 -1
- package/dist/zonos-elements/{p-55a3db7d.entry.js → p-124a4a50.entry.js} +1 -1
- package/dist/zonos-elements/{p-c93c9524.system.js → p-14022fab.system.js} +2 -2
- package/dist/zonos-elements/{p-7312d038.system.entry.js → p-19944a13.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-9d057d1d.entry.js → p-1a6e9eec.entry.js} +1 -1
- package/dist/zonos-elements/{p-8ca3b73a.entry.js → p-1da0c1cb.entry.js} +1 -1
- package/dist/zonos-elements/{p-ff0a79e6.system.entry.js → p-22458c90.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-ce391c90.entry.js → p-30d6e78c.entry.js} +1 -1
- package/dist/zonos-elements/{p-4fee6e7f.system.entry.js → p-320e7cb9.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-0bc813a9.system.entry.js → p-3a89fb48.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-4cd1e79c.system.entry.js → p-3cfa90d1.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-2bb86f3d.system.entry.js → p-3e4b11ed.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-6c047faf.system.entry.js → p-3efbcf88.system.entry.js} +1 -1
- package/dist/zonos-elements/p-3f40806c.entry.js +1 -0
- package/dist/zonos-elements/{p-5e22a288.system.js → p-40596087.system.js} +1 -1
- package/dist/zonos-elements/{p-c3e98be6.system.js → p-46a5ec52.system.js} +1 -1
- package/dist/zonos-elements/p-49fff22c.js +1 -0
- package/dist/zonos-elements/{p-970527fe.entry.js → p-5b90dd6d.entry.js} +1 -1
- package/dist/zonos-elements/{p-0f465aa6.entry.js → p-5cd970b9.entry.js} +1 -1
- package/dist/zonos-elements/{p-3b5f49f6.system.entry.js → p-68cfdd01.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-2906956b.entry.js → p-6b00344a.entry.js} +1 -1
- package/dist/zonos-elements/p-6b6cd6c3.system.js +1 -0
- package/dist/zonos-elements/{p-17a5550a.system.entry.js → p-72c682ac.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-10aef679.system.entry.js → p-7af3b735.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-a9069f68.js → p-7d3a63c5.js} +2 -2
- package/dist/zonos-elements/{p-91e111c4.entry.js → p-7fa88e0a.entry.js} +1 -1
- package/dist/zonos-elements/{p-8390f23d.system.entry.js → p-876ded0e.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-5ee9685e.system.entry.js → p-87945d75.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-6de5611e.entry.js → p-92fbf9e6.entry.js} +1 -1
- package/dist/zonos-elements/p-942a0605.js +1 -0
- package/dist/zonos-elements/{p-08948e65.system.entry.js → p-9cb6599d.system.entry.js} +1 -1
- package/dist/zonos-elements/p-a1c26abb.system.entry.js +1 -0
- package/dist/zonos-elements/{p-8612f8d1.system.entry.js → p-a277cde0.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-26172f0d.entry.js → p-a49ac35e.entry.js} +1 -1
- package/dist/zonos-elements/p-a50ebda1.entry.js +1 -0
- package/dist/zonos-elements/{p-c562de4a.entry.js → p-bc8b22ad.entry.js} +1 -1
- package/dist/zonos-elements/{p-8b3d9796.system.entry.js → p-c39dc3e9.system.entry.js} +1 -1
- package/dist/zonos-elements/p-c78dd680.system.js +1 -1
- package/dist/zonos-elements/{p-67a32cc5.js → p-d10ffd69.js} +1 -1
- package/dist/zonos-elements/{p-0c6a933c.entry.js → p-d963d9d4.entry.js} +1 -1
- package/dist/zonos-elements/{p-5610934b.entry.js → p-db5e0d2b.entry.js} +1 -1
- package/dist/zonos-elements/{p-7c7feadb.system.entry.js → p-dc09df19.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-d6f8309b.entry.js → p-dc823080.entry.js} +1 -1
- package/dist/zonos-elements/p-e1aea7c6.system.js +1 -0
- package/dist/zonos-elements/{p-e6fad32a.system.entry.js → p-e205ef1c.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-6b0a8709.system.entry.js → p-e5f27005.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-91cfbf46.js → p-edc16f69.js} +1 -1
- package/dist/zonos-elements/{p-798d715c.entry.js → p-fb6cf324.entry.js} +1 -1
- package/dist/zonos-elements/{p-a372a9a0.entry.js → p-fce202ab.entry.js} +1 -1
- package/dist/zonos-elements/p-fd05d150.system.js +1 -0
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/cart-01b5bf4a.js +0 -1
- package/dist/zonos-elements/p-0e8613be.entry.js +0 -1
- package/dist/zonos-elements/p-4d4ea5dc.system.entry.js +0 -1
- package/dist/zonos-elements/p-582cdd52.system.js +0 -1
- package/dist/zonos-elements/p-60b0025b.system.js +0 -1
- package/dist/zonos-elements/p-94146bc9.js +0 -1
- package/dist/zonos-elements/p-9b0cbd91.entry.js +0 -1
- package/dist/zonos-elements/p-b7cfbfc1.js +0 -1
- package/dist/zonos-elements/p-c85b4e43.system.js +0 -1
|
@@ -3,14 +3,14 @@
|
|
|
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-d5240ba9.js');
|
|
7
|
+
const zonosStore = require('./zonosStore-293bb3ba.js');
|
|
8
8
|
const classes = require('./classes-b7918f56.js');
|
|
9
9
|
const formatStringWithLinks = require('./formatStringWithLinks-52341fc7.js');
|
|
10
10
|
const getHasMoreSpaceOnRight = require('./getHasMoreSpaceOnRight-4c94667f.js');
|
|
11
11
|
require('./handleFetch-a8dfb07c.js');
|
|
12
|
-
require('./isDarkColor-
|
|
13
|
-
require('./getBorderRadius-
|
|
12
|
+
require('./isDarkColor-dd6d723b.js');
|
|
13
|
+
require('./getBorderRadius-f72d8edf.js');
|
|
14
14
|
|
|
15
15
|
const getHasMoreSpaceAbove = (ref) => {
|
|
16
16
|
const componentRect = ref.getBoundingClientRect();
|
|
@@ -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-293bb3ba.js');
|
|
7
|
+
const cart = require('./cart-d5240ba9.js');
|
|
8
8
|
const classes = require('./classes-b7918f56.js');
|
|
9
9
|
const handleFetch = require('./handleFetch-a8dfb07c.js');
|
|
10
10
|
const getHasMoreSpaceOnRight = require('./getHasMoreSpaceOnRight-4c94667f.js');
|
|
11
|
-
require('./isDarkColor-
|
|
12
|
-
require('./getBorderRadius-
|
|
11
|
+
require('./isDarkColor-dd6d723b.js');
|
|
12
|
+
require('./getBorderRadius-f72d8edf.js');
|
|
13
13
|
|
|
14
14
|
var root = zonosStore._root;
|
|
15
15
|
|
|
@@ -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-293bb3ba.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
|
-
const getBorderRadius = require('./getBorderRadius-
|
|
8
|
+
const getBorderRadius = require('./getBorderRadius-f72d8edf.js');
|
|
9
9
|
|
|
10
10
|
const zonosInputCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--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(--zonos--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(--zonos--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(--zonos--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-d5240ba9.js');
|
|
7
|
+
const zonosStore = require('./zonosStore-293bb3ba.js');
|
|
8
8
|
const ILanguage = require('./ILanguage-98b04442.js');
|
|
9
9
|
require('./handleFetch-a8dfb07c.js');
|
|
10
|
-
require('./isDarkColor-
|
|
11
|
-
require('./getBorderRadius-
|
|
10
|
+
require('./isDarkColor-dd6d723b.js');
|
|
11
|
+
require('./getBorderRadius-f72d8edf.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-293bb3ba.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
8
|
|
|
9
9
|
const zonosLogoCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--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(--zonos--filter-color);filter:var(--zonos--filter-color);width:var(--zonos--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-293bb3ba.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
|
-
const getBorderRadius = require('./getBorderRadius-
|
|
9
|
-
const cart = require('./cart-
|
|
8
|
+
const getBorderRadius = require('./getBorderRadius-f72d8edf.js');
|
|
9
|
+
const cart = require('./cart-d5240ba9.js');
|
|
10
10
|
const handleFetch = require('./handleFetch-a8dfb07c.js');
|
|
11
|
-
const paypal = require('./paypal-
|
|
12
|
-
require('./isDarkColor-
|
|
11
|
+
const paypal = require('./paypal-78db30b7.js');
|
|
12
|
+
require('./isDarkColor-dd6d723b.js');
|
|
13
13
|
|
|
14
14
|
const zonosNotificationCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--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(--zonos--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-293bb3ba.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
|
-
const getBorderRadius = require('./getBorderRadius-
|
|
8
|
+
const getBorderRadius = require('./getBorderRadius-f72d8edf.js');
|
|
9
9
|
const isColorVariable = require('./isColorVariable-525dbfa7.js');
|
|
10
10
|
|
|
11
11
|
const zonosShippingRichRadioCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--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(--zonos--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(--zonos--border-radius, var(--zonos-elements-radius-10));border-top-right-radius:var(--zonos--border-radius, var(--zonos-elements-radius-10))}:host .zonos--shipping-rich-radio-item:last-child{border-bottom-right-radius:var(--zonos--border-radius, var(--zonos-elements-radius-10));border-bottom-left-radius:var(--zonos--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(--zonos--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-293bb3ba.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
8
|
const isColorVariable = require('./isColorVariable-525dbfa7.js');
|
|
9
9
|
const styles = require('./styles-d1e64fb9.js');
|
|
@@ -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-293bb3ba.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
8
|
|
|
9
9
|
const zonosToggleCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--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 .wrapper{position:relative;border-radius:6px;background-color:var(--zonos-elements-gray-50);display:-ms-flexbox;display:flex}:host .zonos--toggle-selected-slider{z-index:1;position:absolute;background-color:var(--zonos-elements-raised-surface-color);height:100%;-webkit-box-shadow:var(--zonos-elements-shadow-button-standard);box-shadow:var(--zonos-elements-shadow-button-standard);border-radius:6px;-webkit-animation:translate 0.3s ease-in-out;animation:translate 0.3s ease-in-out}:host .zonos--option{background:transparent;border:0;z-index:2;cursor:pointer;padding:4px 12px;border-radius:6px;-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);font-size:var(--zonos-elements-font-size-base);font-weight:500;color:var(--zonos-elements-text-color-secondary)}:host .zonos--option:focus{outline:none}:host .zonos--option:hover:not(.selected){color:var(--zonos-elements-text-color)}:host .zonos--option.selected{color:var(--zonos-elements-text-color);background-color:var(--zonos-elements-raised-surface-color);height:100%;-webkit-box-shadow:var(--zonos-elements-shadow-button-standard);box-shadow:var(--zonos-elements-shadow-button-standard);border-radius:6px;-webkit-animation:translate 0.3s ease-in-out;animation:translate 0.3s ease-in-out}";
|
|
@@ -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-293bb3ba.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
8
|
|
|
9
9
|
const zonosVStackCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--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}";
|
|
@@ -2771,6 +2771,7 @@ const { dispose: zonosStoreDispose, reset, state: zonosStore, } = createStore(()
|
|
|
2771
2771
|
checkoutSettings: {
|
|
2772
2772
|
allowedCharacterSets: 'ALL',
|
|
2773
2773
|
analyticsProviders: [],
|
|
2774
|
+
cartExpiration: 60,
|
|
2774
2775
|
externalPaymentMethods: [],
|
|
2775
2776
|
externalServiceTokens: [],
|
|
2776
2777
|
mode: 'TEST',
|
|
@@ -55,6 +55,34 @@ export class ZonosCheckout {
|
|
|
55
55
|
paypalEnabled: paypalStoreHasPaypalEnabled(),
|
|
56
56
|
});
|
|
57
57
|
};
|
|
58
|
+
/**
|
|
59
|
+
* Check if the cart is expired, return `true` if the cart is expired
|
|
60
|
+
*/
|
|
61
|
+
this.handleCartExpiredCheck = () => {
|
|
62
|
+
var _a;
|
|
63
|
+
// don't check for cart expiration if the cart is in test mode
|
|
64
|
+
if (getIsTestMode()) {
|
|
65
|
+
log('Not checking for cart expiration in test mode');
|
|
66
|
+
return false;
|
|
67
|
+
}
|
|
68
|
+
// Do nothing if no cart data or cart expiration is not set
|
|
69
|
+
if (!zonosStore.checkoutSettings.cartExpiration ||
|
|
70
|
+
!((_a = window.Zonos.cartData) === null || _a === void 0 ? void 0 : _a.createdAt)) {
|
|
71
|
+
return false;
|
|
72
|
+
}
|
|
73
|
+
const cartCreatedAt = new Date(window.Zonos.cartData.createdAt).getTime();
|
|
74
|
+
const currentTime = new Date().getTime();
|
|
75
|
+
const timeDiff = currentTime - cartCreatedAt;
|
|
76
|
+
const timeDiffInMinutes = Math.floor(timeDiff / 60000);
|
|
77
|
+
log(`Cart has been created for ${timeDiffInMinutes} minutes`);
|
|
78
|
+
if (zonosStore.checkoutSettings.cartExpiration) {
|
|
79
|
+
if (timeDiffInMinutes > zonosStore.checkoutSettings.cartExpiration) {
|
|
80
|
+
this.isCartExpired = true;
|
|
81
|
+
return true;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
return false;
|
|
85
|
+
};
|
|
58
86
|
this.formatDate = (timestamp) => {
|
|
59
87
|
if (!timestamp) {
|
|
60
88
|
return '';
|
|
@@ -99,6 +127,7 @@ export class ZonosCheckout {
|
|
|
99
127
|
this.storybookPaymentStatusOverride = undefined;
|
|
100
128
|
this.isLegacyCheckout = window.Zonos.isLegacyCheckout;
|
|
101
129
|
this.confirmDialogOpen = false;
|
|
130
|
+
this.isCartExpired = false;
|
|
102
131
|
this.inventoryCheckErrorMessage = null;
|
|
103
132
|
this.placedOrderInfo = null;
|
|
104
133
|
}
|
|
@@ -154,6 +183,11 @@ export class ZonosCheckout {
|
|
|
154
183
|
// if tempCartUUID is provided, use it instead of buildCartDetail
|
|
155
184
|
if (window.Zonos.cartData) {
|
|
156
185
|
log('tempCartUUID is provided, start building cart');
|
|
186
|
+
const isExpired = this.handleCartExpiredCheck();
|
|
187
|
+
if (isExpired) {
|
|
188
|
+
// Do not proceed if the cart is expired
|
|
189
|
+
return;
|
|
190
|
+
}
|
|
157
191
|
const { adjustments, cartItems } = buildCartItemsByTempCart(window.Zonos.cartData);
|
|
158
192
|
await cartStoreUpdateItems({ adjustments, cartItems });
|
|
159
193
|
}
|
|
@@ -168,6 +202,12 @@ export class ZonosCheckout {
|
|
|
168
202
|
logError('Failed to build cart, please try again.');
|
|
169
203
|
return;
|
|
170
204
|
}
|
|
205
|
+
window.Zonos.cartData = cartData;
|
|
206
|
+
const isExpired = this.handleCartExpiredCheck();
|
|
207
|
+
if (isExpired) {
|
|
208
|
+
// Do not proceed if the cart is expired
|
|
209
|
+
return;
|
|
210
|
+
}
|
|
171
211
|
const { adjustments, cartItems } = buildCartItemsByTempCart(cartData);
|
|
172
212
|
await cartStoreUpdateItems({ adjustments, cartItems });
|
|
173
213
|
}
|
|
@@ -293,6 +333,9 @@ export class ZonosCheckout {
|
|
|
293
333
|
try {
|
|
294
334
|
// buildCartDetail may throw an error
|
|
295
335
|
const result = await this.buildCartAndInit();
|
|
336
|
+
if (this.isCartExpired) {
|
|
337
|
+
throw new Error('This shopping cart is expired');
|
|
338
|
+
}
|
|
296
339
|
if (!result) {
|
|
297
340
|
throw new Error('Error building cart');
|
|
298
341
|
}
|
|
@@ -315,6 +358,9 @@ export class ZonosCheckout {
|
|
|
315
358
|
// stop loading
|
|
316
359
|
stripeStore.isFetchingSession = false;
|
|
317
360
|
logError(err);
|
|
361
|
+
if (this.isCartExpired) {
|
|
362
|
+
return;
|
|
363
|
+
}
|
|
318
364
|
// We want to log the error anytime we fail to create a checkout session
|
|
319
365
|
void sendErrorLog({
|
|
320
366
|
endpoint: 'Error creating Checkout',
|
|
@@ -538,6 +584,29 @@ export class ZonosCheckout {
|
|
|
538
584
|
void this.closeDialogHandler({ confirmed: true });
|
|
539
585
|
}
|
|
540
586
|
}
|
|
587
|
+
handleCartExpiredDialogConfirm() {
|
|
588
|
+
var _a;
|
|
589
|
+
this.isCartExpired = false;
|
|
590
|
+
// Redirect to the vendor store url if this is legacy checkout
|
|
591
|
+
if (this.isLegacyCheckout) {
|
|
592
|
+
const storeBaseUrl = (_a = window.Zonos.cartData) === null || _a === void 0 ? void 0 : _a.storeBaseUrl;
|
|
593
|
+
if (!storeBaseUrl) {
|
|
594
|
+
return;
|
|
595
|
+
}
|
|
596
|
+
if (window.parent) {
|
|
597
|
+
window.parent.location.href = storeBaseUrl;
|
|
598
|
+
}
|
|
599
|
+
window.location.href = storeBaseUrl;
|
|
600
|
+
return;
|
|
601
|
+
}
|
|
602
|
+
/**
|
|
603
|
+
* For normal integration, the checkout modal opens on top of merchant site. Therefore, should reload the page when cart is expired so whole page can be reloaded and merchant cart might also be reset.
|
|
604
|
+
**/
|
|
605
|
+
if (window.parent) {
|
|
606
|
+
window.parent.location.href = window.location.href;
|
|
607
|
+
}
|
|
608
|
+
window.location.reload();
|
|
609
|
+
}
|
|
541
610
|
async handleStripePaymentContinue() {
|
|
542
611
|
// reset error state
|
|
543
612
|
stripeStore.hasPaymentError = false;
|
|
@@ -761,7 +830,13 @@ export class ZonosCheckout {
|
|
|
761
830
|
// If dialog is in open state, the message should not be null
|
|
762
831
|
dialogSubtitle: cartStore.inventoryCheckErrorMessage, dialogTitle: translate("Couldn't place order"), dialogType: "alert",
|
|
763
832
|
// Mark user selected confirm to close the dialog
|
|
764
|
-
onConfirmClicked: () => this.handleInventoryCheckDialogConfirm() }))
|
|
833
|
+
onConfirmClicked: () => this.handleInventoryCheckDialogConfirm() }), h("zonos-confirm-dialog", { class: "zonos--shopping-cart-expired-dialog", dialogConfirmBtnText: translate('OK'), dialogIntent: "danger",
|
|
834
|
+
// Show dialog if inventory check error message is not null
|
|
835
|
+
dialogOpen: this.isCartExpired,
|
|
836
|
+
// If dialog is in open state, the message should not be null
|
|
837
|
+
dialogSubtitle: translate('You are being sent back to the shop to re-add items to your cart.'), dialogTitle: translate('Shopping cart expired'), dialogType: "alert",
|
|
838
|
+
// Mark user selected confirm to close the dialog
|
|
839
|
+
onConfirmClicked: () => this.handleCartExpiredDialogConfirm() })));
|
|
765
840
|
}
|
|
766
841
|
static get is() { return "zonos-checkout"; }
|
|
767
842
|
static get encapsulation() { return "scoped"; }
|
|
@@ -894,6 +969,7 @@ export class ZonosCheckout {
|
|
|
894
969
|
"storybookPaymentStatusOverride": {},
|
|
895
970
|
"isLegacyCheckout": {},
|
|
896
971
|
"confirmDialogOpen": {},
|
|
972
|
+
"isCartExpired": {},
|
|
897
973
|
"inventoryCheckErrorMessage": {},
|
|
898
974
|
"placedOrderInfo": {}
|
|
899
975
|
};
|
|
@@ -185,6 +185,9 @@ export const stringsArabic = {
|
|
|
185
185
|
'Nothing due at the door': {
|
|
186
186
|
value: 'لا شيء مستحق عند الباب',
|
|
187
187
|
},
|
|
188
|
+
OK: {
|
|
189
|
+
value: 'حسنًا',
|
|
190
|
+
},
|
|
188
191
|
'Order complete!': {
|
|
189
192
|
value: 'اكتمل الطلب!',
|
|
190
193
|
},
|
|
@@ -299,6 +302,9 @@ export const stringsArabic = {
|
|
|
299
302
|
'Shipping method': {
|
|
300
303
|
value: 'طريقة الشحن',
|
|
301
304
|
},
|
|
305
|
+
'Shopping cart expired': {
|
|
306
|
+
value: 'انتهت صلاحية عربة التسوق',
|
|
307
|
+
},
|
|
302
308
|
Show: {
|
|
303
309
|
value: 'عرض',
|
|
304
310
|
},
|
|
@@ -380,6 +386,9 @@ export const stringsArabic = {
|
|
|
380
386
|
'Would you like to close checkout and return to the site?': {
|
|
381
387
|
value: 'هل ترغب في إغلاق عملية الدفع والعودة إلى الموقع؟',
|
|
382
388
|
},
|
|
389
|
+
'You are being sent back to the shop to re-add items to your cart.': {
|
|
390
|
+
value: 'يتم إرسالك مرة أخرى إلى المتجر لإعادة إضافة العناصر إلى سلة التسوق الخاصة بك.',
|
|
391
|
+
},
|
|
383
392
|
'You may incur additional fees from the shipping carrier by not prepaying.': {
|
|
384
393
|
value: 'قد تتكبد رسومًا إضافية من شركة الشحن إذا لم تدفع مسبقًا.',
|
|
385
394
|
},
|
|
@@ -185,6 +185,9 @@ export const stringsBase = {
|
|
|
185
185
|
'Nothing due at the door': {
|
|
186
186
|
value: 'Nothing due at the door',
|
|
187
187
|
},
|
|
188
|
+
OK: {
|
|
189
|
+
value: 'OK',
|
|
190
|
+
},
|
|
188
191
|
'Order complete!': {
|
|
189
192
|
value: 'Order complete!',
|
|
190
193
|
},
|
|
@@ -299,6 +302,9 @@ export const stringsBase = {
|
|
|
299
302
|
'Shipping method': {
|
|
300
303
|
value: 'Shipping method',
|
|
301
304
|
},
|
|
305
|
+
'Shopping cart expired': {
|
|
306
|
+
value: 'Shopping cart expired',
|
|
307
|
+
},
|
|
302
308
|
Show: {
|
|
303
309
|
value: 'Show',
|
|
304
310
|
},
|
|
@@ -380,6 +386,9 @@ export const stringsBase = {
|
|
|
380
386
|
'Would you like to close checkout and return to the site?': {
|
|
381
387
|
value: 'Would you like to close checkout and return to the site?',
|
|
382
388
|
},
|
|
389
|
+
'You are being sent back to the shop to re-add items to your cart.': {
|
|
390
|
+
value: 'You are being sent back to the shop to re-add items to your cart.',
|
|
391
|
+
},
|
|
383
392
|
'You may incur additional fees from the shipping carrier by not prepaying.': {
|
|
384
393
|
value: 'You may incur additional fees from the shipping carrier by not prepaying.',
|
|
385
394
|
},
|
|
@@ -185,6 +185,9 @@ export const stringsChinese = {
|
|
|
185
185
|
'Nothing due at the door': {
|
|
186
186
|
value: '门口无需付款',
|
|
187
187
|
},
|
|
188
|
+
OK: {
|
|
189
|
+
value: '好的',
|
|
190
|
+
},
|
|
188
191
|
'Order complete!': {
|
|
189
192
|
value: '订单完成!',
|
|
190
193
|
},
|
|
@@ -299,6 +302,9 @@ export const stringsChinese = {
|
|
|
299
302
|
'Shipping method': {
|
|
300
303
|
value: '运输方式',
|
|
301
304
|
},
|
|
305
|
+
'Shopping cart expired': {
|
|
306
|
+
value: '购物车已过期',
|
|
307
|
+
},
|
|
302
308
|
Show: {
|
|
303
309
|
value: '显示',
|
|
304
310
|
},
|
|
@@ -380,6 +386,9 @@ export const stringsChinese = {
|
|
|
380
386
|
'Would you like to close checkout and return to the site?': {
|
|
381
387
|
value: '您要关闭结帐并返回网站吗?',
|
|
382
388
|
},
|
|
389
|
+
'You are being sent back to the shop to re-add items to your cart.': {
|
|
390
|
+
value: '您被送回商店以重新将商品添加到购物车。',
|
|
391
|
+
},
|
|
383
392
|
'You may incur additional fees from the shipping carrier by not prepaying.': {
|
|
384
393
|
value: '如果不预付,您可能会产生来自运输公司的额外费用。',
|
|
385
394
|
},
|
|
@@ -185,6 +185,9 @@ export const stringsDanish = {
|
|
|
185
185
|
'Nothing due at the door': {
|
|
186
186
|
value: 'Intet at betale ved døren',
|
|
187
187
|
},
|
|
188
|
+
OK: {
|
|
189
|
+
value: 'OK',
|
|
190
|
+
},
|
|
188
191
|
'Order complete!': {
|
|
189
192
|
value: 'Bestilling fuldført!',
|
|
190
193
|
},
|
|
@@ -299,6 +302,9 @@ export const stringsDanish = {
|
|
|
299
302
|
'Shipping method': {
|
|
300
303
|
value: 'Leveringsmetode',
|
|
301
304
|
},
|
|
305
|
+
'Shopping cart expired': {
|
|
306
|
+
value: 'Indkøbskurv udløbet',
|
|
307
|
+
},
|
|
302
308
|
Show: {
|
|
303
309
|
value: 'Vis',
|
|
304
310
|
},
|
|
@@ -380,6 +386,9 @@ export const stringsDanish = {
|
|
|
380
386
|
'Would you like to close checkout and return to the site?': {
|
|
381
387
|
value: 'Vil du lukke kassen og vende tilbage til siden?',
|
|
382
388
|
},
|
|
389
|
+
'You are being sent back to the shop to re-add items to your cart.': {
|
|
390
|
+
value: 'Du bliver sendt tilbage til butikken for at tilføje varer til din kurv igen.',
|
|
391
|
+
},
|
|
383
392
|
'You may incur additional fees from the shipping carrier by not prepaying.': {
|
|
384
393
|
value: 'Du kan pådrage dig ekstra gebyrer fra fragtfirmaet ved ikke at forudbetale.',
|
|
385
394
|
},
|
|
@@ -185,6 +185,9 @@ export const stringsDutch = {
|
|
|
185
185
|
'Nothing due at the door': {
|
|
186
186
|
value: 'Niets te betalen aan de deur',
|
|
187
187
|
},
|
|
188
|
+
OK: {
|
|
189
|
+
value: 'OK',
|
|
190
|
+
},
|
|
188
191
|
'Order complete!': {
|
|
189
192
|
value: 'Bestelling voltooid!',
|
|
190
193
|
},
|
|
@@ -299,6 +302,9 @@ export const stringsDutch = {
|
|
|
299
302
|
'Shipping method': {
|
|
300
303
|
value: 'Verzendmethode',
|
|
301
304
|
},
|
|
305
|
+
'Shopping cart expired': {
|
|
306
|
+
value: 'Winkelwagen verlopen',
|
|
307
|
+
},
|
|
302
308
|
Show: {
|
|
303
309
|
value: 'Tonen',
|
|
304
310
|
},
|
|
@@ -380,6 +386,9 @@ export const stringsDutch = {
|
|
|
380
386
|
'Would you like to close checkout and return to the site?': {
|
|
381
387
|
value: 'Wilt u de kassa sluiten en terugkeren naar de site?',
|
|
382
388
|
},
|
|
389
|
+
'You are being sent back to the shop to re-add items to your cart.': {
|
|
390
|
+
value: 'U wordt teruggestuurd naar de winkel om items opnieuw aan uw winkelwagentje toe te voegen.',
|
|
391
|
+
},
|
|
383
392
|
'You may incur additional fees from the shipping carrier by not prepaying.': {
|
|
384
393
|
value: 'U kunt extra kosten van de vervoerder krijgen als u niet vooraf betaalt.',
|
|
385
394
|
},
|
|
@@ -185,6 +185,9 @@ export const stringsFrench = {
|
|
|
185
185
|
'Nothing due at the door': {
|
|
186
186
|
value: 'Rien à payer à la porte',
|
|
187
187
|
},
|
|
188
|
+
OK: {
|
|
189
|
+
value: 'OK',
|
|
190
|
+
},
|
|
188
191
|
'Order complete!': {
|
|
189
192
|
value: 'Commande terminée!',
|
|
190
193
|
},
|
|
@@ -299,6 +302,9 @@ export const stringsFrench = {
|
|
|
299
302
|
'Shipping method': {
|
|
300
303
|
value: 'Mode de livraison',
|
|
301
304
|
},
|
|
305
|
+
'Shopping cart expired': {
|
|
306
|
+
value: 'Panier expiré',
|
|
307
|
+
},
|
|
302
308
|
Show: {
|
|
303
309
|
value: 'Montrer',
|
|
304
310
|
},
|
|
@@ -380,6 +386,9 @@ export const stringsFrench = {
|
|
|
380
386
|
'Would you like to close checkout and return to the site?': {
|
|
381
387
|
value: 'Voulez-vous fermer la caisse et retourner sur le site?',
|
|
382
388
|
},
|
|
389
|
+
'You are being sent back to the shop to re-add items to your cart.': {
|
|
390
|
+
value: 'Vous êtes renvoyé au magasin pour réajouter des articles à votre panier.',
|
|
391
|
+
},
|
|
383
392
|
'You may incur additional fees from the shipping carrier by not prepaying.': {
|
|
384
393
|
value: "Vous pourriez encourir des frais supplémentaires de la part du transporteur si vous ne payez pas à l'avance.",
|
|
385
394
|
},
|
|
@@ -185,6 +185,9 @@ export const stringsGerman = {
|
|
|
185
185
|
'Nothing due at the door': {
|
|
186
186
|
value: 'An der Tür nichts zu bezahlen',
|
|
187
187
|
},
|
|
188
|
+
OK: {
|
|
189
|
+
value: 'OK',
|
|
190
|
+
},
|
|
188
191
|
'Order complete!': {
|
|
189
192
|
value: 'Bestellung abgeschlossen!',
|
|
190
193
|
},
|
|
@@ -299,6 +302,9 @@ export const stringsGerman = {
|
|
|
299
302
|
'Shipping method': {
|
|
300
303
|
value: 'Versandart',
|
|
301
304
|
},
|
|
305
|
+
'Shopping cart expired': {
|
|
306
|
+
value: 'Einkaufswagen abgelaufen',
|
|
307
|
+
},
|
|
302
308
|
Show: {
|
|
303
309
|
value: 'Zeigen',
|
|
304
310
|
},
|
|
@@ -380,6 +386,9 @@ export const stringsGerman = {
|
|
|
380
386
|
'Would you like to close checkout and return to the site?': {
|
|
381
387
|
value: 'Möchten Sie den Checkout schließen und zur Seite zurückkehren?',
|
|
382
388
|
},
|
|
389
|
+
'You are being sent back to the shop to re-add items to your cart.': {
|
|
390
|
+
value: 'Sie werden zurück zum Geschäft geschickt, um Artikel erneut in Ihren Warenkorb zu legen.',
|
|
391
|
+
},
|
|
383
392
|
'You may incur additional fees from the shipping carrier by not prepaying.': {
|
|
384
393
|
value: 'Sie können zusätzliche Gebühren vom Versanddienstleister erhalten, wenn Sie nicht im Voraus bezahlen.',
|
|
385
394
|
},
|
|
@@ -185,6 +185,9 @@ export const stringsHebrew = {
|
|
|
185
185
|
'Nothing due at the door': {
|
|
186
186
|
value: 'אין כלום לשלם בדלת',
|
|
187
187
|
},
|
|
188
|
+
OK: {
|
|
189
|
+
value: 'בסדר',
|
|
190
|
+
},
|
|
188
191
|
'Order complete!': {
|
|
189
192
|
value: 'ההזמנה הושלמה!',
|
|
190
193
|
},
|
|
@@ -299,6 +302,9 @@ export const stringsHebrew = {
|
|
|
299
302
|
'Shipping method': {
|
|
300
303
|
value: 'שיטת משלוח',
|
|
301
304
|
},
|
|
305
|
+
'Shopping cart expired': {
|
|
306
|
+
value: 'תוקף עגלת הקניות פג',
|
|
307
|
+
},
|
|
302
308
|
Show: {
|
|
303
309
|
value: 'הצג',
|
|
304
310
|
},
|
|
@@ -380,6 +386,9 @@ export const stringsHebrew = {
|
|
|
380
386
|
'Would you like to close checkout and return to the site?': {
|
|
381
387
|
value: 'האם תרצה לסגור את הקופה ולחזור לאתר?',
|
|
382
388
|
},
|
|
389
|
+
'You are being sent back to the shop to re-add items to your cart.': {
|
|
390
|
+
value: 'אתה נשלח חזרה לחנות כדי להוסיף פריטים לעגלת הקניות שלך.',
|
|
391
|
+
},
|
|
383
392
|
'You may incur additional fees from the shipping carrier by not prepaying.': {
|
|
384
393
|
value: 'ייתכן שתחויב בעמלות נוספות מהמשלח אם לא תשלם מראש.',
|
|
385
394
|
},
|
|
@@ -185,6 +185,9 @@ export const stringsIndonesian = {
|
|
|
185
185
|
'Nothing due at the door': {
|
|
186
186
|
value: 'Tidak ada yang harus dibayar di pintu',
|
|
187
187
|
},
|
|
188
|
+
OK: {
|
|
189
|
+
value: 'OK',
|
|
190
|
+
},
|
|
188
191
|
'Order complete!': {
|
|
189
192
|
value: 'Pesanan selesai!',
|
|
190
193
|
},
|
|
@@ -299,6 +302,9 @@ export const stringsIndonesian = {
|
|
|
299
302
|
'Shipping method': {
|
|
300
303
|
value: 'Metode pengiriman',
|
|
301
304
|
},
|
|
305
|
+
'Shopping cart expired': {
|
|
306
|
+
value: 'Keranjang belanja kedaluwarsa',
|
|
307
|
+
},
|
|
302
308
|
Show: {
|
|
303
309
|
value: 'Tampilkan',
|
|
304
310
|
},
|
|
@@ -380,6 +386,9 @@ export const stringsIndonesian = {
|
|
|
380
386
|
'Would you like to close checkout and return to the site?': {
|
|
381
387
|
value: 'Apakah Anda ingin menutup pembayaran dan kembali ke situs?',
|
|
382
388
|
},
|
|
389
|
+
'You are being sent back to the shop to re-add items to your cart.': {
|
|
390
|
+
value: 'Anda dikirim kembali ke toko untuk menambahkan barang ke keranjang Anda.',
|
|
391
|
+
},
|
|
383
392
|
'You may incur additional fees from the shipping carrier by not prepaying.': {
|
|
384
393
|
value: 'Anda mungkin dikenakan biaya tambahan dari pengangkut jika tidak membayar di muka.',
|
|
385
394
|
},
|
|
@@ -185,6 +185,9 @@ export const stringsItalian = {
|
|
|
185
185
|
'Nothing due at the door': {
|
|
186
186
|
value: 'Nulla da pagare alla porta',
|
|
187
187
|
},
|
|
188
|
+
OK: {
|
|
189
|
+
value: 'OK',
|
|
190
|
+
},
|
|
188
191
|
'Order complete!': {
|
|
189
192
|
value: 'Ordine completato!',
|
|
190
193
|
},
|
|
@@ -299,6 +302,9 @@ export const stringsItalian = {
|
|
|
299
302
|
'Shipping method': {
|
|
300
303
|
value: 'Metodo di spedizione',
|
|
301
304
|
},
|
|
305
|
+
'Shopping cart expired': {
|
|
306
|
+
value: 'Carrello della spesa scaduto',
|
|
307
|
+
},
|
|
302
308
|
Show: {
|
|
303
309
|
value: 'Mostra',
|
|
304
310
|
},
|
|
@@ -380,6 +386,9 @@ export const stringsItalian = {
|
|
|
380
386
|
'Would you like to close checkout and return to the site?': {
|
|
381
387
|
value: 'Vuoi chiudere il checkout e tornare al sito?',
|
|
382
388
|
},
|
|
389
|
+
'You are being sent back to the shop to re-add items to your cart.': {
|
|
390
|
+
value: 'Stai tornando al negozio per riaggiungere articoli al tuo carrello.',
|
|
391
|
+
},
|
|
383
392
|
'You may incur additional fees from the shipping carrier by not prepaying.': {
|
|
384
393
|
value: 'Potresti incorrere in costi aggiuntivi dal corriere se non paghi in anticipo.',
|
|
385
394
|
},
|
|
@@ -185,6 +185,9 @@ export const stringsJapanese = {
|
|
|
185
185
|
'Nothing due at the door': {
|
|
186
186
|
value: 'ドアでの支払いはありません',
|
|
187
187
|
},
|
|
188
|
+
OK: {
|
|
189
|
+
value: 'OK',
|
|
190
|
+
},
|
|
188
191
|
'Order complete!': {
|
|
189
192
|
value: '注文完了!',
|
|
190
193
|
},
|
|
@@ -299,6 +302,9 @@ export const stringsJapanese = {
|
|
|
299
302
|
'Shipping method': {
|
|
300
303
|
value: '配送方法',
|
|
301
304
|
},
|
|
305
|
+
'Shopping cart expired': {
|
|
306
|
+
value: 'ショッピングカートの期限が切れました',
|
|
307
|
+
},
|
|
302
308
|
Show: {
|
|
303
309
|
value: '表示',
|
|
304
310
|
},
|
|
@@ -380,6 +386,9 @@ export const stringsJapanese = {
|
|
|
380
386
|
'Would you like to close checkout and return to the site?': {
|
|
381
387
|
value: 'チェックアウトを終了してサイトに戻りますか?',
|
|
382
388
|
},
|
|
389
|
+
'You are being sent back to the shop to re-add items to your cart.': {
|
|
390
|
+
value: 'カートに商品を再追加するためにショップに戻されています。',
|
|
391
|
+
},
|
|
383
392
|
'You may incur additional fees from the shipping carrier by not prepaying.': {
|
|
384
393
|
value: '前払いしないと、配送業者から追加料金が発生する可能性があります。',
|
|
385
394
|
},
|