@zonos/elements 1.3.128 → 1.3.130
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-8e3cdcb3.js → CheckoutConfig-1d38a21d.js} +3 -1
- package/dist/cjs/{cart-3bdaf092.js → cart-d5240ba9.js} +214 -8
- package/dist/cjs/{getBorderRadius-61ed5601.js → getBorderRadius-f72d8edf.js} +1 -1
- package/dist/cjs/{handleFetch-fa0ce321.js → handleFetch-a8dfb07c.js} +1 -1
- package/dist/cjs/index.cjs.js +15 -9
- package/dist/cjs/{isDarkColor-d206c6fa.js → isDarkColor-dd6d723b.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{paypal-2f48ab8d.js → paypal-78db30b7.js} +4 -4
- package/dist/cjs/zonos-address_7.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_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 +9 -12
- package/dist/cjs/zonos-checkout.cjs.entry.js +86 -12
- package/dist/cjs/zonos-collapse.cjs.entry.js +1 -1
- package/dist/cjs/zonos-controller.cjs.entry.js +5 -5
- package/dist/cjs/zonos-country-flag.cjs.entry.js +5 -5
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +5 -5
- package/dist/cjs/zonos-elements.cjs.js +1 -1
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +5 -5
- package/dist/cjs/zonos-hello.cjs.entry.js +5 -5
- package/dist/cjs/zonos-input.cjs.entry.js +2 -2
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +5 -5
- package/dist/cjs/zonos-logo.cjs.entry.js +1 -1
- package/dist/cjs/zonos-notification_3.cjs.entry.js +6 -6
- 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-finish/zonos-checkout-finish.js +3 -6
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +80 -4
- package/dist/collection/components/store/checkout/stripe.js +17 -2
- 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 +13 -2
- package/dist/collection/components/utils/checkout/watchBigcommerceDomesticCheckout.js +0 -1
- package/dist/collection/components/utils/logging/sendErrorLog.js +1 -1
- package/dist/collection/scripts/_zonosBase.js +6 -0
- package/dist/collection/scripts/cart/_setupCartData.js +2 -0
- package/dist/collection/types/generated/graphql.frontend.types.js +5 -0
- package/dist/collection/types/generated/graphql.internal.types.js +39 -0
- package/dist/esm/{CheckoutConfig-101b97e6.js → CheckoutConfig-56c63bdf.js} +3 -1
- package/dist/esm/{cart-519f08e3.js → cart-4f1ee6dd.js} +214 -8
- package/dist/esm/{getBorderRadius-008516a4.js → getBorderRadius-bdd709e7.js} +1 -1
- package/dist/esm/{handleFetch-da1a9c5d.js → handleFetch-40fc3562.js} +1 -1
- package/dist/esm/index.js +16 -10
- package/dist/esm/{isDarkColor-dc08fa26.js → isDarkColor-c6924924.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{paypal-d0a05eda.js → paypal-5b1964b6.js} +4 -4
- package/dist/esm/zonos-address_7.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_3.entry.js +3 -3
- package/dist/esm/zonos-card.entry.js +2 -2
- package/dist/esm/zonos-cart-items_13.entry.js +9 -12
- package/dist/esm/zonos-checkout.entry.js +87 -13
- package/dist/esm/zonos-collapse.entry.js +1 -1
- package/dist/esm/zonos-controller.entry.js +5 -5
- package/dist/esm/zonos-country-flag.entry.js +5 -5
- package/dist/esm/zonos-country-select_4.entry.js +5 -5
- package/dist/esm/zonos-elements.js +1 -1
- package/dist/esm/zonos-hello-dialog.entry.js +5 -5
- package/dist/esm/zonos-hello.entry.js +5 -5
- package/dist/esm/zonos-input.entry.js +2 -2
- package/dist/esm/zonos-language-select_2.entry.js +5 -5
- package/dist/esm/zonos-logo.entry.js +1 -1
- package/dist/esm/zonos-notification_3.entry.js +6 -6
- 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-101b97e6.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/handleFetch-40fc3562.js +1 -0
- 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-d0a05eda.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 +13 -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/checkout/stripe.d.ts +1 -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/_zonosBase.d.ts +2 -0
- package/dist/types/types/checkout/CheckoutConfig.d.ts +5 -0
- package/dist/types/types/checkout/api/CalculateLandedCost.d.ts +9 -0
- package/dist/types/types/checkout/api/NormalizedTempCart.d.ts +1 -0
- package/dist/types/types/generated/graphql.frontend.types.d.ts +24 -1
- package/dist/types/types/generated/graphql.frontend.types.ts +34 -1
- package/dist/types/types/generated/graphql.internal.types.d.ts +45 -0
- package/dist/types/types/generated/graphql.internal.types.ts +58 -0
- package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/p-0531689a.system.entry.js +1 -0
- 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-0cfb97ae.js +1 -0
- package/dist/zonos-elements/{p-5ac777a7.system.entry.js → p-0fc96872.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-3dbfe639.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-ea8663b7.entry.js → p-124a4a50.entry.js} +1 -1
- package/dist/zonos-elements/{p-abbfde44.system.js → p-14022fab.system.js} +1 -1
- package/dist/zonos-elements/{p-e2cda105.system.entry.js → p-19944a13.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-f50f48da.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-2b29a3ac.system.js +1 -0
- package/dist/zonos-elements/{p-76d03238.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-8df3d5d0.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-d9dceba1.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-0cb426b8.entry.js → p-5cd970b9.entry.js} +1 -1
- package/dist/zonos-elements/p-6305e92c.system.js +1 -0
- 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-2db962f9.system.entry.js → p-72c682ac.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-f962fc6a.system.entry.js → p-7af3b735.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-00ff4f4a.js → p-7d3a63c5.js} +2 -2
- package/dist/zonos-elements/{p-723c9d4d.entry.js → p-7fa88e0a.entry.js} +1 -1
- package/dist/zonos-elements/{p-167b7fa8.system.entry.js → p-876ded0e.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-9833f37d.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-eca920dc.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-d6f1b6fa.system.entry.js → p-a277cde0.system.entry.js} +1 -1
- package/dist/zonos-elements/p-a49ac35e.entry.js +1 -0
- package/dist/zonos-elements/{p-bf2f9095.entry.js → p-a50ebda1.entry.js} +1 -1
- 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-efffbaec.entry.js → p-dc823080.entry.js} +1 -1
- 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-519f08e3.js +0 -1
- package/dist/esm-es5/handleFetch-da1a9c5d.js +0 -1
- package/dist/zonos-elements/p-0fa85ff9.system.js +0 -1
- package/dist/zonos-elements/p-2402e12c.js +0 -1
- package/dist/zonos-elements/p-61380d53.system.entry.js +0 -1
- package/dist/zonos-elements/p-685e395e.entry.js +0 -1
- package/dist/zonos-elements/p-7769b60c.js +0 -1
- package/dist/zonos-elements/p-a3b195e9.js +0 -1
- package/dist/zonos-elements/p-a7eaa9ad.entry.js +0 -1
- package/dist/zonos-elements/p-bc9987f2.system.entry.js +0 -1
- package/dist/zonos-elements/p-c85b4e43.system.js +0 -1
- package/dist/zonos-elements/p-dcd4e458.system.js +0 -1
- package/dist/zonos-elements/p-f7d56ce5.system.js +0 -1
|
@@ -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
|
},
|
|
@@ -185,6 +185,9 @@ export const stringsKorean = {
|
|
|
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 stringsKorean = {
|
|
|
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 stringsKorean = {
|
|
|
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 stringsNorwegian = {
|
|
|
185
185
|
'Nothing due at the door': {
|
|
186
186
|
value: 'Ingenting å betale ved døren',
|
|
187
187
|
},
|
|
188
|
+
OK: {
|
|
189
|
+
value: 'OK',
|
|
190
|
+
},
|
|
188
191
|
'Order complete!': {
|
|
189
192
|
value: 'Bestilling fullført!',
|
|
190
193
|
},
|
|
@@ -299,6 +302,9 @@ export const stringsNorwegian = {
|
|
|
299
302
|
'Shipping method': {
|
|
300
303
|
value: 'Fraktmetode',
|
|
301
304
|
},
|
|
305
|
+
'Shopping cart expired': {
|
|
306
|
+
value: 'Handlekurv utløpt',
|
|
307
|
+
},
|
|
302
308
|
Show: {
|
|
303
309
|
value: 'Vis',
|
|
304
310
|
},
|
|
@@ -380,6 +386,9 @@ export const stringsNorwegian = {
|
|
|
380
386
|
'Would you like to close checkout and return to the site?': {
|
|
381
387
|
value: 'Vil du avslutte utsjekkingen og gå tilbake til siden?',
|
|
382
388
|
},
|
|
389
|
+
'You are being sent back to the shop to re-add items to your cart.': {
|
|
390
|
+
value: 'Du blir sendt tilbake til butikken for å legge til varer i handlekurven din igjen.',
|
|
391
|
+
},
|
|
383
392
|
'You may incur additional fees from the shipping carrier by not prepaying.': {
|
|
384
393
|
value: 'Du kan pådra deg ekstra gebyrer fra transportøren ved å ikke forhåndsbetale.',
|
|
385
394
|
},
|
|
@@ -185,6 +185,9 @@ export const stringsPolish = {
|
|
|
185
185
|
'Nothing due at the door': {
|
|
186
186
|
value: 'Nic do zapłacenia przy drzwiach',
|
|
187
187
|
},
|
|
188
|
+
OK: {
|
|
189
|
+
value: 'OK',
|
|
190
|
+
},
|
|
188
191
|
'Order complete!': {
|
|
189
192
|
value: 'Zamówienie zakończone!',
|
|
190
193
|
},
|
|
@@ -299,6 +302,9 @@ export const stringsPolish = {
|
|
|
299
302
|
'Shipping method': {
|
|
300
303
|
value: 'Metoda wysyłki',
|
|
301
304
|
},
|
|
305
|
+
'Shopping cart expired': {
|
|
306
|
+
value: 'Koszyk wygasł',
|
|
307
|
+
},
|
|
302
308
|
Show: {
|
|
303
309
|
value: 'Pokaż',
|
|
304
310
|
},
|
|
@@ -380,6 +386,9 @@ export const stringsPolish = {
|
|
|
380
386
|
'Would you like to close checkout and return to the site?': {
|
|
381
387
|
value: 'Czy chcesz zamknąć kasę i wrócić na stronę?',
|
|
382
388
|
},
|
|
389
|
+
'You are being sent back to the shop to re-add items to your cart.': {
|
|
390
|
+
value: 'Zostajesz odesłany z powrotem do sklepu, aby ponownie dodać przedmioty do koszyka.',
|
|
391
|
+
},
|
|
383
392
|
'You may incur additional fees from the shipping carrier by not prepaying.': {
|
|
384
393
|
value: 'Możesz ponieść dodatkowe opłaty od przewoźnika, jeśli nie zapłacisz z góry.',
|
|
385
394
|
},
|
|
@@ -185,6 +185,9 @@ export const stringsPortuguese = {
|
|
|
185
185
|
'Nothing due at the door': {
|
|
186
186
|
value: 'Nada a pagar na porta',
|
|
187
187
|
},
|
|
188
|
+
OK: {
|
|
189
|
+
value: 'OK',
|
|
190
|
+
},
|
|
188
191
|
'Order complete!': {
|
|
189
192
|
value: 'Pedido completo!',
|
|
190
193
|
},
|
|
@@ -299,6 +302,9 @@ export const stringsPortuguese = {
|
|
|
299
302
|
'Shipping method': {
|
|
300
303
|
value: 'Método de envio',
|
|
301
304
|
},
|
|
305
|
+
'Shopping cart expired': {
|
|
306
|
+
value: 'Carrinho de compras expirado',
|
|
307
|
+
},
|
|
302
308
|
Show: {
|
|
303
309
|
value: 'Mostrar',
|
|
304
310
|
},
|
|
@@ -380,6 +386,9 @@ export const stringsPortuguese = {
|
|
|
380
386
|
'Would you like to close checkout and return to the site?': {
|
|
381
387
|
value: 'Gostaria de fechar o checkout e voltar ao site?',
|
|
382
388
|
},
|
|
389
|
+
'You are being sent back to the shop to re-add items to your cart.': {
|
|
390
|
+
value: 'Você está sendo enviado de volta à loja para readicionar itens ao seu carrinho.',
|
|
391
|
+
},
|
|
383
392
|
'You may incur additional fees from the shipping carrier by not prepaying.': {
|
|
384
393
|
value: 'Você pode incorrer em taxas adicionais da transportadora por não pagar antecipadamente.',
|
|
385
394
|
},
|
|
@@ -185,6 +185,9 @@ export const stringsRussian = {
|
|
|
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 stringsRussian = {
|
|
|
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 stringsRussian = {
|
|
|
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 stringsSpanish = {
|
|
|
185
185
|
'Nothing due at the door': {
|
|
186
186
|
value: 'Nada debido en la puerta',
|
|
187
187
|
},
|
|
188
|
+
OK: {
|
|
189
|
+
value: 'OK',
|
|
190
|
+
},
|
|
188
191
|
'Order complete!': {
|
|
189
192
|
value: '¡Pedido completado!',
|
|
190
193
|
},
|
|
@@ -299,6 +302,9 @@ export const stringsSpanish = {
|
|
|
299
302
|
'Shipping method': {
|
|
300
303
|
value: 'Método de envío',
|
|
301
304
|
},
|
|
305
|
+
'Shopping cart expired': {
|
|
306
|
+
value: 'Carrito de compras caducado',
|
|
307
|
+
},
|
|
302
308
|
Show: {
|
|
303
309
|
value: 'Mostrar',
|
|
304
310
|
},
|
|
@@ -380,6 +386,9 @@ export const stringsSpanish = {
|
|
|
380
386
|
'Would you like to close checkout and return to the site?': {
|
|
381
387
|
value: '¿Te gustaría cerrar la caja y volver al sitio?',
|
|
382
388
|
},
|
|
389
|
+
'You are being sent back to the shop to re-add items to your cart.': {
|
|
390
|
+
value: 'Se le envía de regreso a la tienda para volver a agregar artículos a su carrito.',
|
|
391
|
+
},
|
|
383
392
|
'You may incur additional fees from the shipping carrier by not prepaying.': {
|
|
384
393
|
value: 'Puede incurrir en tarifas adicionales del transportista si no paga por adelantado.',
|
|
385
394
|
},
|
|
@@ -185,6 +185,9 @@ export const stringsSwedish = {
|
|
|
185
185
|
'Nothing due at the door': {
|
|
186
186
|
value: 'Ingenting att betala vid dörren',
|
|
187
187
|
},
|
|
188
|
+
OK: {
|
|
189
|
+
value: 'OK',
|
|
190
|
+
},
|
|
188
191
|
'Order complete!': {
|
|
189
192
|
value: 'Beställning slutförd!',
|
|
190
193
|
},
|
|
@@ -299,6 +302,9 @@ export const stringsSwedish = {
|
|
|
299
302
|
'Shipping method': {
|
|
300
303
|
value: 'Fraktmetod',
|
|
301
304
|
},
|
|
305
|
+
'Shopping cart expired': {
|
|
306
|
+
value: 'Kundvagn har gått ut',
|
|
307
|
+
},
|
|
302
308
|
Show: {
|
|
303
309
|
value: 'Visa',
|
|
304
310
|
},
|
|
@@ -380,6 +386,9 @@ export const stringsSwedish = {
|
|
|
380
386
|
'Would you like to close checkout and return to the site?': {
|
|
381
387
|
value: 'Vill du stänga kassan och återvända till webbplatsen?',
|
|
382
388
|
},
|
|
389
|
+
'You are being sent back to the shop to re-add items to your cart.': {
|
|
390
|
+
value: 'Du skickas tillbaka till butiken för att lägga till varor i din kundvagn igen.',
|
|
391
|
+
},
|
|
383
392
|
'You may incur additional fees from the shipping carrier by not prepaying.': {
|
|
384
393
|
value: 'Du kan få extra avgifter från fraktbolaget om du inte förbetalar.',
|
|
385
394
|
},
|
|
@@ -185,6 +185,9 @@ export const stringsTurkish = {
|
|
|
185
185
|
'Nothing due at the door': {
|
|
186
186
|
value: 'Kapıda ödenecek bir şey yok',
|
|
187
187
|
},
|
|
188
|
+
OK: {
|
|
189
|
+
value: 'Tamam',
|
|
190
|
+
},
|
|
188
191
|
'Order complete!': {
|
|
189
192
|
value: 'Sipariş tamamlandı!',
|
|
190
193
|
},
|
|
@@ -299,6 +302,9 @@ export const stringsTurkish = {
|
|
|
299
302
|
'Shipping method': {
|
|
300
303
|
value: 'Kargo yöntemi',
|
|
301
304
|
},
|
|
305
|
+
'Shopping cart expired': {
|
|
306
|
+
value: 'Alışveriş sepeti süresi doldu',
|
|
307
|
+
},
|
|
302
308
|
Show: {
|
|
303
309
|
value: 'Göster',
|
|
304
310
|
},
|
|
@@ -380,6 +386,9 @@ export const stringsTurkish = {
|
|
|
380
386
|
'Would you like to close checkout and return to the site?': {
|
|
381
387
|
value: 'Ödemeyi kapatıp siteye geri dönmek ister misiniz?',
|
|
382
388
|
},
|
|
389
|
+
'You are being sent back to the shop to re-add items to your cart.': {
|
|
390
|
+
value: 'Sepetinize ürünleri yeniden eklemek için mağazaya geri gönderiliyorsunuz.',
|
|
391
|
+
},
|
|
383
392
|
'You may incur additional fees from the shipping carrier by not prepaying.': {
|
|
384
393
|
value: 'Ön ödeme yapmazsanız, nakliye şirketinden ek ücretler alabilirsiniz.',
|
|
385
394
|
},
|
|
@@ -185,6 +185,9 @@ export const stringsVietnamese = {
|
|
|
185
185
|
'Nothing due at the door': {
|
|
186
186
|
value: 'Không có gì phải trả tại cửa',
|
|
187
187
|
},
|
|
188
|
+
OK: {
|
|
189
|
+
value: 'OK',
|
|
190
|
+
},
|
|
188
191
|
'Order complete!': {
|
|
189
192
|
value: 'Đơn hàng đã hoàn thành!',
|
|
190
193
|
},
|
|
@@ -299,6 +302,9 @@ export const stringsVietnamese = {
|
|
|
299
302
|
'Shipping method': {
|
|
300
303
|
value: 'Phương thức vận chuyển',
|
|
301
304
|
},
|
|
305
|
+
'Shopping cart expired': {
|
|
306
|
+
value: 'Giỏ hàng đã hết hạn',
|
|
307
|
+
},
|
|
302
308
|
Show: {
|
|
303
309
|
value: 'Hiển thị',
|
|
304
310
|
},
|
|
@@ -380,6 +386,9 @@ export const stringsVietnamese = {
|
|
|
380
386
|
'Would you like to close checkout and return to the site?': {
|
|
381
387
|
value: 'Bạn có muốn đóng thanh toán và quay lại trang web không?',
|
|
382
388
|
},
|
|
389
|
+
'You are being sent back to the shop to re-add items to your cart.': {
|
|
390
|
+
value: 'Bạn đang được gửi lại cửa hàng để thêm lại các mặt hàng vào giỏ hàng của mình.',
|
|
391
|
+
},
|
|
383
392
|
'You may incur additional fees from the shipping carrier by not prepaying.': {
|
|
384
393
|
value: 'Bạn có thể phải chịu thêm phí từ nhà vận chuyển nếu không trả trước.',
|
|
385
394
|
},
|
|
@@ -12,6 +12,7 @@ const { dispose: zonosStoreDispose, reset, state: zonosStore, } = createStore(()
|
|
|
12
12
|
checkoutSettings: {
|
|
13
13
|
allowedCharacterSets: 'ALL',
|
|
14
14
|
analyticsProviders: [],
|
|
15
|
+
cartExpiration: 60,
|
|
15
16
|
externalPaymentMethods: [],
|
|
16
17
|
externalServiceTokens: [],
|
|
17
18
|
mode: 'TEST',
|
|
@@ -25,6 +25,7 @@ const getTranslatedAddress = ({ currentAddress, translatedAddress, }) => {
|
|
|
25
25
|
*/
|
|
26
26
|
export const prepCartCalculateLandedCost = (cartId) => {
|
|
27
27
|
var _a;
|
|
28
|
+
const isE2ETest = new URLSearchParams(window.location.search).get('zonosE2ETest') === '1';
|
|
28
29
|
// maybe we don't need email now for prefetch the landed cost
|
|
29
30
|
const stripeLinkData = stripeStore.stripeLinkEventData;
|
|
30
31
|
const stripeAddressData = stripeStore.stripeAddressEventData;
|
|
@@ -75,6 +76,7 @@ export const prepCartCalculateLandedCost = (cartId) => {
|
|
|
75
76
|
lastName: shippingLastName,
|
|
76
77
|
phone: translatedShippingAddress.phone,
|
|
77
78
|
},
|
|
79
|
+
isTest: !!isE2ETest,
|
|
78
80
|
landedCostAdjustments: cartStore.promoCode
|
|
79
81
|
? [
|
|
80
82
|
{
|
|
@@ -97,6 +99,7 @@ export const prepCartCalculateLandedCost = (cartId) => {
|
|
|
97
99
|
};
|
|
98
100
|
};
|
|
99
101
|
export const prepCalculateLandedCost = () => {
|
|
102
|
+
const isE2ETest = new URLSearchParams(window.location.search).get('zonosE2ETest') === '1';
|
|
100
103
|
// maybe we don't need email now for prefetch the landed cost
|
|
101
104
|
const stripeLinkData = stripeStore.stripeLinkEventData;
|
|
102
105
|
const stripeAddressData = stripeStore.stripeAddressEventData;
|
|
@@ -120,6 +123,13 @@ export const prepCalculateLandedCost = () => {
|
|
|
120
123
|
});
|
|
121
124
|
const billingFirstName = translatedBillingAddress.name.split(' ')[0] || '';
|
|
122
125
|
const billingLastName = translatedBillingAddress.name.split(' ').splice(1).join(' ') || '';
|
|
126
|
+
const convertedCartAdjuments = cartStore.adjustments.map(adjustment => ({
|
|
127
|
+
amount: adjustment.amount,
|
|
128
|
+
name: adjustment.description || null,
|
|
129
|
+
productId: adjustment.productId,
|
|
130
|
+
sku: adjustment.sku,
|
|
131
|
+
type: adjustment.type,
|
|
132
|
+
}));
|
|
123
133
|
const adjustments = cartStore.promoCode
|
|
124
134
|
? [
|
|
125
135
|
{
|
|
@@ -129,9 +139,9 @@ export const prepCalculateLandedCost = () => {
|
|
|
129
139
|
sku: null,
|
|
130
140
|
type: 'PROMO_CODE',
|
|
131
141
|
},
|
|
132
|
-
...
|
|
142
|
+
...convertedCartAdjuments,
|
|
133
143
|
]
|
|
134
|
-
:
|
|
144
|
+
: convertedCartAdjuments;
|
|
135
145
|
return {
|
|
136
146
|
billingAddress: {
|
|
137
147
|
addressLine1: translatedBillingAddress.line1,
|
|
@@ -157,6 +167,7 @@ export const prepCalculateLandedCost = () => {
|
|
|
157
167
|
lastName: shippingLastName,
|
|
158
168
|
phone: translatedShippingAddress.phone,
|
|
159
169
|
},
|
|
170
|
+
isTest: isE2ETest,
|
|
160
171
|
items: cartStore.items,
|
|
161
172
|
landedCostAdjustments: adjustments,
|
|
162
173
|
shippingAddress: {
|
|
@@ -23,7 +23,7 @@ export const sendErrorLog = async ({ endpoint, errors, metadata, shouldPostRelea
|
|
|
23
23
|
endpoint,
|
|
24
24
|
errors,
|
|
25
25
|
href: window.location.href,
|
|
26
|
-
metadata: Object.assign({ userAgent: userAgentData && userAgentData.brands.length > 0
|
|
26
|
+
metadata: Object.assign({ domain: window.Zonos.domain, userAgent: userAgentData && userAgentData.brands.length > 0
|
|
27
27
|
? userAgentData
|
|
28
28
|
: window.navigator.userAgent }, metadata),
|
|
29
29
|
};
|
|
@@ -44,6 +44,12 @@ Zonos._paypalMockResponse = null;
|
|
|
44
44
|
Zonos.isBigCommerce = false;
|
|
45
45
|
Zonos.releaseDate = process.env.NEXT_PUBLIC_RELEASE_DATE;
|
|
46
46
|
Zonos.isLegacyCheckout = false;
|
|
47
|
+
Zonos.domain = typeof window !== 'undefined'
|
|
48
|
+
? // domain that embeds the iframe
|
|
49
|
+
(window.location != window.parent.location && document.referrer) ||
|
|
50
|
+
// current domain
|
|
51
|
+
document.location.hostname
|
|
52
|
+
: '';
|
|
47
53
|
Zonos.showBaseForeign = typeof window !== 'undefined' &&
|
|
48
54
|
window.location.search.includes('zonosShowBaseForeign');
|
|
49
55
|
/**
|
|
@@ -14,6 +14,8 @@ export const setupCartData = async (cartId) => {
|
|
|
14
14
|
logError('[ZONOS - loadZonos] Error getting temp cart data, stop checkout process.');
|
|
15
15
|
return null;
|
|
16
16
|
}
|
|
17
|
+
window.Zonos.storeId = tempCartResult.cartData.storeId;
|
|
18
|
+
window.Zonos.zonosApiKey = tempCartResult.cartData.credentialToken;
|
|
17
19
|
return {
|
|
18
20
|
cartData: tempCartResult.cartData,
|
|
19
21
|
storeFavicon: tempCartResult.storeFaviconUrl,
|
|
@@ -29,6 +29,7 @@ export const featureAspectKeyEnum = {
|
|
|
29
29
|
NewPayoutReport: 'new_payout_report',
|
|
30
30
|
PageAuditor: 'page_auditor',
|
|
31
31
|
PromptExplorer: 'prompt_explorer',
|
|
32
|
+
SupportTicketSystem: 'support_ticket_system',
|
|
32
33
|
TeamAuditor: 'team_auditor',
|
|
33
34
|
};
|
|
34
35
|
export const featureAudienceNameEnum = {
|
|
@@ -54,6 +55,7 @@ export const featureAudienceNameEnum = {
|
|
|
54
55
|
PrincipalEngineer: 'principal_engineer',
|
|
55
56
|
ProServeHead: 'pro_serve_head',
|
|
56
57
|
ProductManager: 'product_manager',
|
|
58
|
+
SupportTicketMerchants: 'support_ticket_merchants',
|
|
57
59
|
TechLead: 'tech_lead',
|
|
58
60
|
};
|
|
59
61
|
export const graphHubCategoryLabelEnum = {
|
|
@@ -483,6 +485,9 @@ export function getSdk(client, withWrapper = defaultWrapper) {
|
|
|
483
485
|
deleteReserveOrders(variables, requestHeaders) {
|
|
484
486
|
return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'deleteReserveOrders', 'mutation');
|
|
485
487
|
},
|
|
488
|
+
failToGetQuoteErrors(variables, requestHeaders) {
|
|
489
|
+
return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'failToGetQuoteErrors', 'query');
|
|
490
|
+
},
|
|
486
491
|
getAudienceByAspectKey(variables, requestHeaders) {
|
|
487
492
|
return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getAudienceByAspectKey', 'query');
|
|
488
493
|
},
|