@zonos/elements 1.3.81 → 1.3.82
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{cart-97e693e4.js → cart-ba540c8e.js} +349 -64
- package/dist/cjs/{createCustomEvent-777b3fa7.js → createCustomEvent-1fd24ad8.js} +1 -3
- package/dist/cjs/index.cjs.js +7 -7
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{paypal-16029169.js → paypal-6bbe55a7.js} +1 -1
- package/dist/cjs/zonos-address_8.cjs.entry.js +11 -11
- package/dist/cjs/zonos-badge.cjs.entry.js +44 -0
- package/dist/cjs/zonos-button_3.cjs.entry.js +3 -3
- package/dist/cjs/zonos-card.cjs.entry.js +4 -4
- package/dist/cjs/{zonos-badge_13.cjs.entry.js → zonos-cart-items_12.cjs.entry.js} +54 -69
- package/dist/cjs/zonos-checkout.cjs.entry.js +4 -4
- package/dist/cjs/zonos-component.cjs.entry.js +1 -1
- package/dist/cjs/zonos-controller.cjs.entry.js +2 -2
- package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +9 -9
- 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 +1 -1
- package/dist/cjs/zonos-input.cjs.entry.js +4 -4
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +5 -5
- package/dist/cjs/zonos-link.cjs.entry.js +1 -1
- package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
- package/dist/cjs/zonos-notification_3.cjs.entry.js +4 -4
- package/dist/cjs/zonos-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/zonos-v-stack.cjs.entry.js +2 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-items/zonos-cart-items.js +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.css +10 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js +73 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +5 -3
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +8 -9
- package/dist/collection/components/common/zonos-badge/assets/RemoveLineIcon.svg +3 -0
- package/dist/collection/components/common/zonos-badge/zonos-badge.css +3 -0
- package/dist/collection/components/common/zonos-badge/zonos-badge.js +43 -3
- package/dist/collection/components/common/zonos-button/zonos-button.js +3 -3
- package/dist/collection/components/common/zonos-card/zonos-card.js +4 -4
- package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +3 -3
- package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +8 -7
- package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
- package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +3 -3
- package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +2 -2
- package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +3 -3
- package/dist/collection/components/common/zonos-input/zonos-input.js +4 -4
- package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
- package/dist/collection/components/common/zonos-link/zonos-link.js +1 -1
- package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
- package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.js +3 -3
- package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
- package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
- package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
- package/dist/collection/components/common/zonos-virtual-scroll/zonos-virtual-scroll.js +2 -2
- package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -2
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +4 -4
- package/dist/collection/components/main/zonos-controller.js +1 -1
- package/dist/collection/components/paypal/zonos-paypal-payment.js +1 -1
- package/dist/collection/components/store/checkout/cart.js +17 -1
- package/dist/collection/components/store/checkout/stripe.js +119 -65
- 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/stripe/zonos-address/zonos-address.js +1 -1
- package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +1 -1
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
- package/dist/collection/components/utils/api/prepCalculateLandedCost.js +22 -0
- package/dist/collection/components/utils/api/trackConversionEvent.js +0 -2
- package/dist/collection/components/utils/api/triggerBuildLandedCost.js +1 -0
- package/dist/collection/components/utils/hello/currencyConversion/currencyFormat.js +1 -1
- package/dist/esm/{cart-9bf6dece.js → cart-7df78f9f.js} +347 -65
- package/dist/esm/{createCustomEvent-a18e45a2.js → createCustomEvent-fcec608e.js} +1 -3
- package/dist/esm/index.js +7 -7
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{paypal-edab4cee.js → paypal-a27aad03.js} +1 -1
- package/dist/esm/zonos-address_8.entry.js +11 -11
- package/dist/esm/zonos-badge.entry.js +40 -0
- package/dist/esm/zonos-button_3.entry.js +3 -3
- package/dist/esm/zonos-card.entry.js +4 -4
- package/dist/esm/{zonos-badge_13.entry.js → zonos-cart-items_12.entry.js} +56 -70
- package/dist/esm/zonos-checkout.entry.js +4 -4
- package/dist/esm/zonos-component.entry.js +1 -1
- package/dist/esm/zonos-controller.entry.js +2 -2
- package/dist/esm/zonos-country-flag.entry.js +1 -1
- package/dist/esm/zonos-country-select_4.entry.js +9 -9
- 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 +1 -1
- package/dist/esm/zonos-input.entry.js +4 -4
- package/dist/esm/zonos-language-select_2.entry.js +5 -5
- package/dist/esm/zonos-link.entry.js +1 -1
- package/dist/esm/zonos-logo.entry.js +2 -2
- package/dist/esm/zonos-notification_3.entry.js +4 -4
- package/dist/esm/zonos-tooltip.entry.js +2 -2
- package/dist/esm/zonos-v-stack.entry.js +2 -2
- package/dist/esm-es5/cart-7df78f9f.js +1 -0
- package/dist/esm-es5/{createCustomEvent-a18e45a2.js → createCustomEvent-fcec608e.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{paypal-edab4cee.js → paypal-a27aad03.js} +1 -1
- package/dist/esm-es5/zonos-address_8.entry.js +1 -1
- package/dist/esm-es5/zonos-badge.entry.js +1 -0
- package/dist/esm-es5/zonos-button_3.entry.js +1 -1
- package/dist/esm-es5/zonos-card.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -0
- package/dist/esm-es5/zonos-checkout.entry.js +1 -1
- package/dist/esm-es5/zonos-component.entry.js +1 -1
- package/dist/esm-es5/zonos-controller.entry.js +1 -1
- package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
- package/dist/esm-es5/zonos-country-select_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-link.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-tooltip.entry.js +1 -1
- package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
- package/dist/scripts/index.d.ts +45 -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-cart-subtotal/zonos-cart-subtotal.d.ts +12 -0
- package/dist/types/components/common/zonos-badge/zonos-badge.d.ts +9 -0
- package/dist/types/components/store/checkout/cart.d.ts +8 -1
- package/dist/types/components/store/checkout/stripe.d.ts +12 -2
- 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/triggerBuildLandedCost.d.ts +1 -0
- package/dist/types/components/utils/checkout/sortServiceLevelOptions.d.ts +3 -2
- package/dist/types/components.d.ts +34 -0
- package/dist/types/types/checkout/api/CalculateLandedCost.d.ts +2 -0
- package/dist/types/types/generated/graphql.internal.types.d.ts +12 -0
- package/dist/types/types/generated/graphql.internal.types.ts +9 -0
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-264fbd27.entry.js → p-112a969c.entry.js} +1 -1
- package/dist/zonos-elements/{p-e3cb74fd.system.js → p-15651b06.system.js} +1 -1
- package/dist/zonos-elements/p-1a92ff9a.system.entry.js +1 -0
- package/dist/zonos-elements/p-2024313c.js +1 -0
- package/dist/zonos-elements/{p-1e4f7997.system.entry.js → p-22e81fee.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-8cbbdd53.system.entry.js → p-270cc182.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-d775bd42.entry.js → p-2c5e2163.entry.js} +1 -1
- package/dist/zonos-elements/{p-1b8c8e0c.system.entry.js → p-2d2edb5a.system.entry.js} +1 -1
- package/dist/zonos-elements/p-2d2ff962.entry.js +1 -0
- package/dist/zonos-elements/{p-2a47d2cc.system.entry.js → p-38886017.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-811ed9bf.system.entry.js → p-4097a25b.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-41f42a5c.entry.js → p-42636c5a.entry.js} +1 -1
- package/dist/zonos-elements/{p-92ba4082.system.entry.js → p-43e2de45.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-d26d827d.system.js → p-4683797b.system.js} +1 -1
- package/dist/zonos-elements/{p-8dae668f.system.entry.js → p-4e06a2bb.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-25633055.entry.js → p-58832515.entry.js} +1 -1
- package/dist/zonos-elements/{p-95f0ffd1.system.entry.js → p-59806a8e.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-19fc5e11.system.entry.js → p-5d186fc7.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-51f8c3d5.system.entry.js → p-5d4bde9c.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-f3fc05a8.entry.js → p-6a5d714a.entry.js} +1 -1
- package/dist/zonos-elements/{p-fca6f444.entry.js → p-6a83b682.entry.js} +1 -1
- package/dist/zonos-elements/p-85600e22.system.entry.js +1 -0
- package/dist/zonos-elements/{p-bc4a147d.entry.js → p-8dd38974.entry.js} +1 -1
- package/dist/zonos-elements/p-8fd6ae63.js +1 -0
- package/dist/zonos-elements/{p-49478dba.system.js → p-957b1c1b.system.js} +1 -1
- package/dist/zonos-elements/{p-7be7bd28.entry.js → p-997c8f07.entry.js} +1 -1
- package/dist/zonos-elements/{p-97f0d9d2.entry.js → p-a4cdd4f2.entry.js} +1 -1
- package/dist/zonos-elements/p-aa899bf7.entry.js +1 -0
- package/dist/zonos-elements/{p-7ca0622f.js → p-acabfc47.js} +1 -1
- package/dist/zonos-elements/{p-a3e2592b.system.entry.js → p-ae7526a2.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-6de38759.entry.js → p-afad2fae.entry.js} +1 -1
- package/dist/zonos-elements/{p-e468f85e.entry.js → p-b09c3702.entry.js} +1 -1
- package/dist/zonos-elements/{p-a2fedd1c.entry.js → p-bf84416a.entry.js} +1 -1
- package/dist/zonos-elements/{p-a033685e.system.entry.js → p-c2b7b670.system.entry.js} +1 -1
- package/dist/zonos-elements/p-c78dd680.system.js +1 -1
- package/dist/zonos-elements/{p-fac38f60.entry.js → p-cd17565d.entry.js} +1 -1
- package/dist/zonos-elements/{p-a3200d5c.entry.js → p-cfd53396.entry.js} +1 -1
- package/dist/zonos-elements/{p-214724f8.system.entry.js → p-cffe7cc8.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-f7b5ae86.system.entry.js → p-d48f3bd3.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-ba05f1d6.system.entry.js → p-d621f462.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-df4deb97.entry.js → p-df83e30b.entry.js} +1 -1
- package/dist/zonos-elements/p-e7eb0a92.system.js +1 -0
- package/dist/zonos-elements/{p-f4765417.entry.js → p-e93b511f.entry.js} +1 -1
- package/dist/zonos-elements/{p-747eed39.entry.js → p-ea68ee1f.entry.js} +1 -1
- package/dist/zonos-elements/{p-de93cc65.system.entry.js → p-f68c38d8.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-d56f87ab.system.entry.js → p-f7bbdd0c.system.entry.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/cart-9bf6dece.js +0 -1
- package/dist/esm-es5/zonos-badge_13.entry.js +0 -1
- package/dist/zonos-elements/p-23358611.js +0 -1
- package/dist/zonos-elements/p-62044821.system.js +0 -1
- package/dist/zonos-elements/p-6b4fec5a.js +0 -1
- package/dist/zonos-elements/p-6f821997.entry.js +0 -1
- package/dist/zonos-elements/p-d08ed3ea.system.entry.js +0 -1
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { createStore } from "@stencil/store";
|
|
2
|
-
import { cartStore, cartStoreApplySubtotals, cartStoreCheckItemRestrictions, cartStoreResetCartItems, cartStoreSetCheckoutSession, } from "./cart";
|
|
2
|
+
import { cartStore, cartStoreApplySubtotals, cartStoreCheckItemRestrictions, cartStorePreviousStep, cartStoreResetCartItems, cartStoreSetCheckoutSession, cartStoreUpdateSelectedShippingOption, } from "./cart";
|
|
3
3
|
import { localizationStore } from "../hello/localization";
|
|
4
4
|
import { translate } from "../translationStore";
|
|
5
5
|
import { zonosStore } from "../zonosStore";
|
|
6
6
|
import { calculateLandedCostNormalized } from "../../utils/api/calculateLandedCostNormaliz";
|
|
7
7
|
import { buildTranslateRequest } from "../../utils/checkout/buildTranslateRequest";
|
|
8
|
+
import { sortServiceLevelOptions } from "../../utils/checkout/sortServiceLevelOptions";
|
|
8
9
|
import { handleFetch } from "../../utils/handleFetch";
|
|
9
10
|
import { isDarkColor } from "../../utils/isDarkColor";
|
|
10
11
|
import { jsonParse } from "../../utils/jsonParse";
|
|
@@ -163,8 +164,42 @@ const isPrefetchInfoOutdated = () => {
|
|
|
163
164
|
// if landed cost data is not available, we need to fetch it
|
|
164
165
|
!cartStore.landedCostData || isAddressOutdated || isTotalAmountChanged);
|
|
165
166
|
};
|
|
166
|
-
const
|
|
167
|
-
|
|
167
|
+
const stripeCalculateLandedCost = async () => {
|
|
168
|
+
const abortController = new AbortController();
|
|
169
|
+
stripeStore.fetchingLandedCostAbortController = abortController;
|
|
170
|
+
// Reset cart items to non-restricted state and restricted item list
|
|
171
|
+
cartStoreResetCartItems();
|
|
172
|
+
const { checkoutSessionWorkflow, itemCreateWorkflow, landedCostCalculateWorkflow, shipmentRatingCalculateWorkflow, } = await calculateLandedCostNormalized(abortController);
|
|
173
|
+
cartStore.shippingData = sortServiceLevelOptions((shipmentRatingCalculateWorkflow === null || shipmentRatingCalculateWorkflow === void 0 ? void 0 : shipmentRatingCalculateWorkflow.filter(Boolean)) || []);
|
|
174
|
+
// check and update cart items with restrictions
|
|
175
|
+
cartStoreCheckItemRestrictions(itemCreateWorkflow);
|
|
176
|
+
// reset abort controller after we are done
|
|
177
|
+
stripeStore.fetchingLandedCostAbortController = null;
|
|
178
|
+
// update cart store with landed cost info
|
|
179
|
+
cartStore.landedCostData =
|
|
180
|
+
(checkoutSessionWorkflow === null || checkoutSessionWorkflow === void 0 ? void 0 : checkoutSessionWorkflow.map(checkoutSession => {
|
|
181
|
+
const foundLandedCost = landedCostCalculateWorkflow === null || landedCostCalculateWorkflow === void 0 ? void 0 : landedCostCalculateWorkflow.find(item => (item === null || item === void 0 ? void 0 : item.id) === checkoutSession.landedCostId);
|
|
182
|
+
if (!foundLandedCost) {
|
|
183
|
+
return null;
|
|
184
|
+
}
|
|
185
|
+
return Object.assign(Object.assign({}, checkoutSession), { landedCost: foundLandedCost });
|
|
186
|
+
}).filter(Boolean)) || [];
|
|
187
|
+
// update adjustmentTotal
|
|
188
|
+
// highlight promocode input error if promocode is applied but no adjustment applied in landed cost
|
|
189
|
+
const isInvalidPromoCode = cartStore.promoCodeApplied &&
|
|
190
|
+
!cartStore.landedCostData.find(item => {
|
|
191
|
+
var _a;
|
|
192
|
+
return (_a = item.landedCost.appliedAdjustments) === null || _a === void 0 ? void 0 : _a.find(_item => _item.type === 'PROMO_CODE');
|
|
193
|
+
});
|
|
194
|
+
cartStore.promoCodeError = isInvalidPromoCode;
|
|
195
|
+
// When promocode is valid, set promoCode to session storage so if user close the modal, we can still reapply for them
|
|
196
|
+
if (!isInvalidPromoCode) {
|
|
197
|
+
sessionStorage.setItem('promoCode', cartStore.promoCode);
|
|
198
|
+
}
|
|
199
|
+
};
|
|
200
|
+
const stripeStorePrefetchLandedCost = async (params) => {
|
|
201
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
202
|
+
const applyingPromocode = !!(params === null || params === void 0 ? void 0 : params.applyingPromocode);
|
|
168
203
|
const stripeAddressReady = !!((_a = stripeStore.stripeAddressEventData) === null || _a === void 0 ? void 0 : _a.complete);
|
|
169
204
|
const stripeLinkReady = !!((_b = stripeStore.stripeLinkEventData) === null || _b === void 0 ? void 0 : _b.complete);
|
|
170
205
|
const stripeBillingAddressReady = stripeStore.stripeShippingSameAsBilling
|
|
@@ -176,68 +211,87 @@ const stripeStorePrefetchLandedCost = async () => {
|
|
|
176
211
|
(_e = stripeStore.fetchingLandedCostAbortController) === null || _e === void 0 ? void 0 : _e.abort();
|
|
177
212
|
stripeStore.fetchingLandedCostAbortController = null;
|
|
178
213
|
}
|
|
179
|
-
//
|
|
180
|
-
if (
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
// check and update cart items with restrictions
|
|
219
|
-
cartStoreCheckItemRestrictions(itemCreateWorkflow);
|
|
220
|
-
if (subtotals) {
|
|
221
|
-
// prefetch landed cost will not update shipping and taxes since we haven't selected shipping method yet
|
|
222
|
-
cartStoreApplySubtotals({
|
|
223
|
-
adjustments: subtotals.adjustments,
|
|
224
|
-
exchangeRate: subtotals.exchangeRate,
|
|
225
|
-
items: subtotals.items,
|
|
226
|
-
landedCostTotal: 0,
|
|
227
|
-
presentmentCurrencyCode: subtotals.presentmentCurrencyCode,
|
|
228
|
-
shipping: 0,
|
|
229
|
-
total: subtotals.items,
|
|
230
|
-
});
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
catch (err) {
|
|
234
|
-
// default to empty array if we failed to fetch landed cost, so we can show the error message
|
|
235
|
-
cartStore.landedCostData = [];
|
|
236
|
-
cartStore.shippingData = [];
|
|
237
|
-
logError(err);
|
|
214
|
+
// Do not fetch if we are not ready or data is not outdated
|
|
215
|
+
if ((!shouldRefetch && !applyingPromocode) ||
|
|
216
|
+
!stripeAddressReady ||
|
|
217
|
+
!stripeLinkReady ||
|
|
218
|
+
!stripeBillingAddressReady) {
|
|
219
|
+
return;
|
|
220
|
+
}
|
|
221
|
+
stripeStore.isFetchingLandedCost = true;
|
|
222
|
+
if (stripeStore.stripeAddressEventData) {
|
|
223
|
+
stripeStore.stripeAddressUsedWhenFetchingLC = Object.assign({}, stripeStore.stripeAddressEventData);
|
|
224
|
+
}
|
|
225
|
+
if (stripeStore.stripeBillingAddressEventData) {
|
|
226
|
+
stripeStore.stripeBillingAddressUsedWhenFetchingLC = Object.assign({}, stripeStore.stripeBillingAddressEventData);
|
|
227
|
+
}
|
|
228
|
+
if (stripeStore.stripeLinkEventData) {
|
|
229
|
+
stripeStore.stripeLinkUsedWhenFetchingLC = Object.assign({}, stripeStore.stripeLinkEventData);
|
|
230
|
+
}
|
|
231
|
+
try {
|
|
232
|
+
// Reset cart items to non-restricted state and restricted item list
|
|
233
|
+
cartStoreResetCartItems();
|
|
234
|
+
// fetch and apply landed cost
|
|
235
|
+
await stripeCalculateLandedCost();
|
|
236
|
+
// This is the cheapest service level since we already sorted them after fetching landed cost
|
|
237
|
+
const cheapestServiceLevel = (_f = cartStore.shippingData) === null || _f === void 0 ? void 0 : _f.find(Boolean);
|
|
238
|
+
// Landed cost that matches with service level
|
|
239
|
+
const matchLandedCost = (_g = cartStore.landedCostData) === null || _g === void 0 ? void 0 : _g.find(x => x.landedCost.shipmentRating.id === (cheapestServiceLevel === null || cheapestServiceLevel === void 0 ? void 0 : cheapestServiceLevel.id));
|
|
240
|
+
// apply new subtotal and total, this is mainly to show items in the presentment currency
|
|
241
|
+
const subtotals = !!matchLandedCost ? matchLandedCost.subtotals : null;
|
|
242
|
+
if (subtotals) {
|
|
243
|
+
// prefetch landed cost will not update shipping and taxes since we haven't selected shipping method yet
|
|
244
|
+
cartStoreApplySubtotals({
|
|
245
|
+
adjustments: subtotals.adjustments,
|
|
246
|
+
exchangeRate: subtotals.exchangeRate,
|
|
247
|
+
items: subtotals.items,
|
|
248
|
+
landedCostTotal: subtotals.landedCostTotal,
|
|
249
|
+
presentmentCurrencyCode: subtotals.presentmentCurrencyCode,
|
|
250
|
+
shipping: subtotals.shipping,
|
|
251
|
+
total: subtotals.total,
|
|
252
|
+
});
|
|
238
253
|
}
|
|
239
|
-
stripeStore.isFetchingLandedCost = false;
|
|
240
254
|
}
|
|
255
|
+
catch (err) {
|
|
256
|
+
// default to empty array if we failed to fetch landed cost, so we can show the error message
|
|
257
|
+
cartStore.landedCostData = [];
|
|
258
|
+
cartStore.shippingData = [];
|
|
259
|
+
logError(err);
|
|
260
|
+
}
|
|
261
|
+
stripeStore.isFetchingLandedCost = false;
|
|
262
|
+
};
|
|
263
|
+
const stripeStoreApplyPromoCode = async () => {
|
|
264
|
+
var _a, _b;
|
|
265
|
+
await stripeStorePrefetchLandedCost({
|
|
266
|
+
applyingPromocode: true,
|
|
267
|
+
});
|
|
268
|
+
// Go back to shipping step if we are in payment step so user can reselect shipping method
|
|
269
|
+
if (cartStore.step === 'payment') {
|
|
270
|
+
cartStorePreviousStep();
|
|
271
|
+
}
|
|
272
|
+
// This is the cheapest service level since we already sorted them after fetching landed cost
|
|
273
|
+
const cheapestServiceLevel = (_a = cartStore.shippingData) === null || _a === void 0 ? void 0 : _a.find(Boolean);
|
|
274
|
+
// Landed cost that matches with service level
|
|
275
|
+
const matchLandedCost = (_b = cartStore.landedCostData) === null || _b === void 0 ? void 0 : _b.find(x => x.landedCost.id === (cheapestServiceLevel === null || cheapestServiceLevel === void 0 ? void 0 : cheapestServiceLevel.id));
|
|
276
|
+
if (!cheapestServiceLevel || !matchLandedCost) {
|
|
277
|
+
return;
|
|
278
|
+
}
|
|
279
|
+
await cartStoreUpdateSelectedShippingOption(cheapestServiceLevel, matchLandedCost.landedCostId);
|
|
280
|
+
};
|
|
281
|
+
const stripeStoreResetPromoCode = () => {
|
|
282
|
+
cartStore.promoCode = '';
|
|
283
|
+
sessionStorage.removeItem('promoCode');
|
|
284
|
+
// reset promocode error state
|
|
285
|
+
cartStore.promoCodeError = false;
|
|
286
|
+
cartStore.promoCodeApplied = false;
|
|
287
|
+
};
|
|
288
|
+
const stripeStoreRemovePromoCode = async () => {
|
|
289
|
+
// Go back to shipping step if we are in payment step so user can reselect shipping method
|
|
290
|
+
if (cartStore.step === 'payment') {
|
|
291
|
+
cartStorePreviousStep();
|
|
292
|
+
}
|
|
293
|
+
stripeStoreResetPromoCode();
|
|
294
|
+
await stripeStoreApplyPromoCode();
|
|
241
295
|
};
|
|
242
296
|
const stripeStoreMessageBasedOnStatus = (status) => {
|
|
243
297
|
let messages = [];
|
|
@@ -521,7 +575,7 @@ const stripeStoreTranslateAddressToLatin = async ({ addressInvalidCharactersList
|
|
|
521
575
|
: {},
|
|
522
576
|
billingAddress: !stripeStore.stripeShippingSameAsBilling
|
|
523
577
|
? buildTranslatedAddress({
|
|
524
|
-
currentAddress: Object.assign(Object.assign({}, billingAddress), { name: (_d = stripeStore.stripeBillingAddressEventData) === null || _d === void 0 ? void 0 : _d.value.name })
|
|
578
|
+
currentAddress: Object.assign(Object.assign({}, billingAddress), { name: (_d = stripeStore.stripeBillingAddressEventData) === null || _d === void 0 ? void 0 : _d.value.name }),
|
|
525
579
|
translatedAddressResult: json.billingAddress || null,
|
|
526
580
|
})
|
|
527
581
|
: {},
|
|
@@ -536,4 +590,4 @@ onChange('clientSecret', clientSecret => {
|
|
|
536
590
|
sessionStorage.removeItem('zonos--client-secret');
|
|
537
591
|
}
|
|
538
592
|
});
|
|
539
|
-
export { initStripeElements, stripeStore, stripeStoreCleanupDomesticShippingSession, stripeStoreConfirmPayment, stripeStoreGetDomesticShippingSession, stripeStoreHandleInventoryCheck, stripeStoreInitCheckoutSession, stripeStoreMessageBasedOnStatus, stripeStorePrefetchLandedCost, stripeStoreReset, stripeStoreRetrievePayment, stripeStoreSaveDomesticShippingSession, stripeStoreTranslateAddressToLatin, stripeStoreUpdateCheckoutSession, };
|
|
593
|
+
export { initStripeElements, stripeCalculateLandedCost, stripeStore, stripeStoreApplyPromoCode, stripeStoreCleanupDomesticShippingSession, stripeStoreConfirmPayment, stripeStoreGetDomesticShippingSession, stripeStoreHandleInventoryCheck, stripeStoreInitCheckoutSession, stripeStoreMessageBasedOnStatus, stripeStorePrefetchLandedCost, stripeStoreRemovePromoCode, stripeStoreReset, stripeStoreResetPromoCode, stripeStoreRetrievePayment, stripeStoreSaveDomesticShippingSession, stripeStoreTranslateAddressToLatin, stripeStoreUpdateCheckoutSession, };
|
|
@@ -8,6 +8,9 @@ export const stringsArabic = {
|
|
|
8
8
|
'Above de minimis threshold for': {
|
|
9
9
|
value: 'أعلى من الحد الأدنى لـ',
|
|
10
10
|
},
|
|
11
|
+
'Add promotional code': {
|
|
12
|
+
value: 'أضف رمز ترويجي',
|
|
13
|
+
},
|
|
11
14
|
Address: {
|
|
12
15
|
value: 'العنوان',
|
|
13
16
|
},
|
|
@@ -20,6 +23,9 @@ export const stringsArabic = {
|
|
|
20
23
|
'An unexpected error occurred when processing PayPal order.': {
|
|
21
24
|
value: 'حدث خطأ غير متوقع عند معالجة طلب PayPal.',
|
|
22
25
|
},
|
|
26
|
+
Apply: {
|
|
27
|
+
value: 'تطبيق',
|
|
28
|
+
},
|
|
23
29
|
'Are you sure?': {
|
|
24
30
|
value: 'هل أنت متأكد؟',
|
|
25
31
|
},
|
|
@@ -122,6 +128,9 @@ export const stringsArabic = {
|
|
|
122
128
|
Hide: {
|
|
123
129
|
value: 'اخفِ',
|
|
124
130
|
},
|
|
131
|
+
'Invalid promo code': {
|
|
132
|
+
value: 'رمز ترويجي غير صالح',
|
|
133
|
+
},
|
|
125
134
|
'Keep shopping': {
|
|
126
135
|
value: 'متابعة التسوق',
|
|
127
136
|
},
|
|
@@ -8,6 +8,9 @@ export const stringsBase = {
|
|
|
8
8
|
'Above de minimis threshold for': {
|
|
9
9
|
value: 'Above de minimis threshold for',
|
|
10
10
|
},
|
|
11
|
+
'Add promotional code': {
|
|
12
|
+
value: 'Add promotional code',
|
|
13
|
+
},
|
|
11
14
|
Address: {
|
|
12
15
|
value: 'Address',
|
|
13
16
|
},
|
|
@@ -20,6 +23,9 @@ export const stringsBase = {
|
|
|
20
23
|
'An unexpected error occurred when processing PayPal order.': {
|
|
21
24
|
value: 'An unexpected error occurred when processing PayPal order.',
|
|
22
25
|
},
|
|
26
|
+
Apply: {
|
|
27
|
+
value: 'Apply',
|
|
28
|
+
},
|
|
23
29
|
'Are you sure?': {
|
|
24
30
|
value: 'Are you sure?',
|
|
25
31
|
},
|
|
@@ -122,6 +128,9 @@ export const stringsBase = {
|
|
|
122
128
|
Hide: {
|
|
123
129
|
value: 'Hide',
|
|
124
130
|
},
|
|
131
|
+
'Invalid promo code': {
|
|
132
|
+
value: 'Invalid promo code',
|
|
133
|
+
},
|
|
125
134
|
'Keep shopping': {
|
|
126
135
|
value: 'Keep shopping',
|
|
127
136
|
},
|
|
@@ -8,6 +8,9 @@ export const stringsChinese = {
|
|
|
8
8
|
'Above de minimis threshold for': {
|
|
9
9
|
value: '超过最低征税门槛',
|
|
10
10
|
},
|
|
11
|
+
'Add promotional code': {
|
|
12
|
+
value: '添加促销代码',
|
|
13
|
+
},
|
|
11
14
|
Address: {
|
|
12
15
|
value: '地址',
|
|
13
16
|
},
|
|
@@ -20,6 +23,9 @@ export const stringsChinese = {
|
|
|
20
23
|
'An unexpected error occurred when processing PayPal order.': {
|
|
21
24
|
value: '处理PayPal订单时发生意外错误。',
|
|
22
25
|
},
|
|
26
|
+
Apply: {
|
|
27
|
+
value: '应用',
|
|
28
|
+
},
|
|
23
29
|
'Are you sure?': {
|
|
24
30
|
value: '你确定吗?',
|
|
25
31
|
},
|
|
@@ -122,6 +128,9 @@ export const stringsChinese = {
|
|
|
122
128
|
Hide: {
|
|
123
129
|
value: '隐藏',
|
|
124
130
|
},
|
|
131
|
+
'Invalid promo code': {
|
|
132
|
+
value: '无效的促销代码',
|
|
133
|
+
},
|
|
125
134
|
'Keep shopping': {
|
|
126
135
|
value: '继续购物',
|
|
127
136
|
},
|
|
@@ -8,6 +8,9 @@ export const stringsDanish = {
|
|
|
8
8
|
'Above de minimis threshold for': {
|
|
9
9
|
value: 'Over de minimis-grænsen for',
|
|
10
10
|
},
|
|
11
|
+
'Add promotional code': {
|
|
12
|
+
value: 'Tilføj kampagnekode',
|
|
13
|
+
},
|
|
11
14
|
Address: {
|
|
12
15
|
value: 'Adresse',
|
|
13
16
|
},
|
|
@@ -20,6 +23,9 @@ export const stringsDanish = {
|
|
|
20
23
|
'An unexpected error occurred when processing PayPal order.': {
|
|
21
24
|
value: 'Der opstod en uventet fejl ved behandling af PayPal-ordren.',
|
|
22
25
|
},
|
|
26
|
+
Apply: {
|
|
27
|
+
value: 'Anvend',
|
|
28
|
+
},
|
|
23
29
|
'Are you sure?': {
|
|
24
30
|
value: 'Er du sikker?',
|
|
25
31
|
},
|
|
@@ -122,6 +128,9 @@ export const stringsDanish = {
|
|
|
122
128
|
Hide: {
|
|
123
129
|
value: 'Skjul',
|
|
124
130
|
},
|
|
131
|
+
'Invalid promo code': {
|
|
132
|
+
value: 'Ugyldig kampagnekode',
|
|
133
|
+
},
|
|
125
134
|
'Keep shopping': {
|
|
126
135
|
value: 'Fortsæt med at handle',
|
|
127
136
|
},
|
|
@@ -8,6 +8,9 @@ export const stringsDutch = {
|
|
|
8
8
|
'Above de minimis threshold for': {
|
|
9
9
|
value: 'Boven de minimale drempel voor',
|
|
10
10
|
},
|
|
11
|
+
'Add promotional code': {
|
|
12
|
+
value: 'Promotiecode toevoegen',
|
|
13
|
+
},
|
|
11
14
|
Address: {
|
|
12
15
|
value: 'Adres',
|
|
13
16
|
},
|
|
@@ -20,6 +23,9 @@ export const stringsDutch = {
|
|
|
20
23
|
'An unexpected error occurred when processing PayPal order.': {
|
|
21
24
|
value: 'Er is een onverwachte fout opgetreden bij het verwerken van de PayPal-bestelling.',
|
|
22
25
|
},
|
|
26
|
+
Apply: {
|
|
27
|
+
value: 'Toepassen',
|
|
28
|
+
},
|
|
23
29
|
'Are you sure?': {
|
|
24
30
|
value: 'Weet je het zeker?',
|
|
25
31
|
},
|
|
@@ -122,6 +128,9 @@ export const stringsDutch = {
|
|
|
122
128
|
Hide: {
|
|
123
129
|
value: 'Verbergen',
|
|
124
130
|
},
|
|
131
|
+
'Invalid promo code': {
|
|
132
|
+
value: 'Ongeldige promotiecode',
|
|
133
|
+
},
|
|
125
134
|
'Keep shopping': {
|
|
126
135
|
value: 'Blijf winkelen',
|
|
127
136
|
},
|
|
@@ -8,6 +8,9 @@ export const stringsFrench = {
|
|
|
8
8
|
'Above de minimis threshold for': {
|
|
9
9
|
value: 'Au-dessus du seuil de minimis pour',
|
|
10
10
|
},
|
|
11
|
+
'Add promotional code': {
|
|
12
|
+
value: 'Ajouter un code promotionnel',
|
|
13
|
+
},
|
|
11
14
|
Address: {
|
|
12
15
|
value: 'Adresse',
|
|
13
16
|
},
|
|
@@ -20,6 +23,9 @@ export const stringsFrench = {
|
|
|
20
23
|
'An unexpected error occurred when processing PayPal order.': {
|
|
21
24
|
value: "Une erreur inattendue s'est produite lors du traitement de la commande PayPal.",
|
|
22
25
|
},
|
|
26
|
+
Apply: {
|
|
27
|
+
value: 'Appliquer',
|
|
28
|
+
},
|
|
23
29
|
'Are you sure?': {
|
|
24
30
|
value: 'Es-tu sûr?',
|
|
25
31
|
},
|
|
@@ -122,6 +128,9 @@ export const stringsFrench = {
|
|
|
122
128
|
Hide: {
|
|
123
129
|
value: 'Cacher',
|
|
124
130
|
},
|
|
131
|
+
'Invalid promo code': {
|
|
132
|
+
value: 'Code promotionnel invalide',
|
|
133
|
+
},
|
|
125
134
|
'Keep shopping': {
|
|
126
135
|
value: 'Continuer à faire du shopping',
|
|
127
136
|
},
|
|
@@ -8,6 +8,9 @@ export const stringsGerman = {
|
|
|
8
8
|
'Above de minimis threshold for': {
|
|
9
9
|
value: 'Über der Mindestgrenze für',
|
|
10
10
|
},
|
|
11
|
+
'Add promotional code': {
|
|
12
|
+
value: 'Promo-Code hinzufügen',
|
|
13
|
+
},
|
|
11
14
|
Address: {
|
|
12
15
|
value: 'Adresse',
|
|
13
16
|
},
|
|
@@ -20,6 +23,9 @@ export const stringsGerman = {
|
|
|
20
23
|
'An unexpected error occurred when processing PayPal order.': {
|
|
21
24
|
value: 'Beim Verarbeiten der PayPal-Bestellung ist ein unerwarteter Fehler aufgetreten.',
|
|
22
25
|
},
|
|
26
|
+
Apply: {
|
|
27
|
+
value: 'Anwenden',
|
|
28
|
+
},
|
|
23
29
|
'Are you sure?': {
|
|
24
30
|
value: 'Bist du sicher?',
|
|
25
31
|
},
|
|
@@ -122,6 +128,9 @@ export const stringsGerman = {
|
|
|
122
128
|
Hide: {
|
|
123
129
|
value: 'Verstecken',
|
|
124
130
|
},
|
|
131
|
+
'Invalid promo code': {
|
|
132
|
+
value: 'Ungültiger Promo-Code',
|
|
133
|
+
},
|
|
125
134
|
'Keep shopping': {
|
|
126
135
|
value: 'Einkauf fortsetzen',
|
|
127
136
|
},
|
|
@@ -8,6 +8,9 @@ export const stringsHebrew = {
|
|
|
8
8
|
'Above de minimis threshold for': {
|
|
9
9
|
value: 'מעל סף המינימום עבור',
|
|
10
10
|
},
|
|
11
|
+
'Add promotional code': {
|
|
12
|
+
value: 'הוסף קוד מבצע',
|
|
13
|
+
},
|
|
11
14
|
Address: {
|
|
12
15
|
value: 'כתובת',
|
|
13
16
|
},
|
|
@@ -20,6 +23,9 @@ export const stringsHebrew = {
|
|
|
20
23
|
'An unexpected error occurred when processing PayPal order.': {
|
|
21
24
|
value: 'אירעה שגיאה בלתי צפויה בעת עיבוד הזמנת PayPal.',
|
|
22
25
|
},
|
|
26
|
+
Apply: {
|
|
27
|
+
value: 'החל',
|
|
28
|
+
},
|
|
23
29
|
'Are you sure?': {
|
|
24
30
|
value: 'אתה בטוח?',
|
|
25
31
|
},
|
|
@@ -122,6 +128,9 @@ export const stringsHebrew = {
|
|
|
122
128
|
Hide: {
|
|
123
129
|
value: 'הסתר',
|
|
124
130
|
},
|
|
131
|
+
'Invalid promo code': {
|
|
132
|
+
value: 'קוד מבצע לא תקף',
|
|
133
|
+
},
|
|
125
134
|
'Keep shopping': {
|
|
126
135
|
value: 'המשך בקנייה',
|
|
127
136
|
},
|
|
@@ -8,6 +8,9 @@ export const stringsIndonesian = {
|
|
|
8
8
|
'Above de minimis threshold for': {
|
|
9
9
|
value: 'Di atas ambang batas de minimis untuk',
|
|
10
10
|
},
|
|
11
|
+
'Add promotional code': {
|
|
12
|
+
value: 'Tambahkan kode promosi',
|
|
13
|
+
},
|
|
11
14
|
Address: {
|
|
12
15
|
value: 'Alamat',
|
|
13
16
|
},
|
|
@@ -20,6 +23,9 @@ export const stringsIndonesian = {
|
|
|
20
23
|
'An unexpected error occurred when processing PayPal order.': {
|
|
21
24
|
value: 'Terjadi kesalahan tak terduga saat memproses pesanan PayPal.',
|
|
22
25
|
},
|
|
26
|
+
Apply: {
|
|
27
|
+
value: 'Terapkan',
|
|
28
|
+
},
|
|
23
29
|
'Are you sure?': {
|
|
24
30
|
value: 'Apakah Anda yakin?',
|
|
25
31
|
},
|
|
@@ -122,6 +128,9 @@ export const stringsIndonesian = {
|
|
|
122
128
|
Hide: {
|
|
123
129
|
value: 'Sembunyikan',
|
|
124
130
|
},
|
|
131
|
+
'Invalid promo code': {
|
|
132
|
+
value: 'Kode promo tidak valid',
|
|
133
|
+
},
|
|
125
134
|
'Keep shopping': {
|
|
126
135
|
value: 'Lanjut belanja',
|
|
127
136
|
},
|
|
@@ -8,6 +8,9 @@ export const stringsItalian = {
|
|
|
8
8
|
'Above de minimis threshold for': {
|
|
9
9
|
value: 'Sopra la soglia di minimis per',
|
|
10
10
|
},
|
|
11
|
+
'Add promotional code': {
|
|
12
|
+
value: 'Aggiungi codice promozionale',
|
|
13
|
+
},
|
|
11
14
|
Address: {
|
|
12
15
|
value: 'Indirizzo',
|
|
13
16
|
},
|
|
@@ -20,6 +23,9 @@ export const stringsItalian = {
|
|
|
20
23
|
'An unexpected error occurred when processing PayPal order.': {
|
|
21
24
|
value: "Si è verificato un errore imprevisto durante l'elaborazione dell'ordine PayPal.",
|
|
22
25
|
},
|
|
26
|
+
Apply: {
|
|
27
|
+
value: 'Applica',
|
|
28
|
+
},
|
|
23
29
|
'Are you sure?': {
|
|
24
30
|
value: 'Sei sicuro?',
|
|
25
31
|
},
|
|
@@ -122,6 +128,9 @@ export const stringsItalian = {
|
|
|
122
128
|
Hide: {
|
|
123
129
|
value: 'Nascondi',
|
|
124
130
|
},
|
|
131
|
+
'Invalid promo code': {
|
|
132
|
+
value: 'Codice promozionale non valido',
|
|
133
|
+
},
|
|
125
134
|
'Keep shopping': {
|
|
126
135
|
value: 'Continua gli acquisti',
|
|
127
136
|
},
|
|
@@ -8,6 +8,9 @@ export const stringsJapanese = {
|
|
|
8
8
|
'Above de minimis threshold for': {
|
|
9
9
|
value: 'デミニマスの閾値を超える',
|
|
10
10
|
},
|
|
11
|
+
'Add promotional code': {
|
|
12
|
+
value: 'プロモーションコードを追加',
|
|
13
|
+
},
|
|
11
14
|
Address: {
|
|
12
15
|
value: '住所',
|
|
13
16
|
},
|
|
@@ -20,6 +23,9 @@ export const stringsJapanese = {
|
|
|
20
23
|
'An unexpected error occurred when processing PayPal order.': {
|
|
21
24
|
value: 'PayPal注文の処理中に予期しないエラーが発生しました。',
|
|
22
25
|
},
|
|
26
|
+
Apply: {
|
|
27
|
+
value: '適用',
|
|
28
|
+
},
|
|
23
29
|
'Are you sure?': {
|
|
24
30
|
value: '本気ですか?',
|
|
25
31
|
},
|
|
@@ -122,6 +128,9 @@ export const stringsJapanese = {
|
|
|
122
128
|
Hide: {
|
|
123
129
|
value: '隠す',
|
|
124
130
|
},
|
|
131
|
+
'Invalid promo code': {
|
|
132
|
+
value: '無効なプロモーションコード',
|
|
133
|
+
},
|
|
125
134
|
'Keep shopping': {
|
|
126
135
|
value: '買い物を続ける',
|
|
127
136
|
},
|
|
@@ -8,6 +8,9 @@ export const stringsKorean = {
|
|
|
8
8
|
'Above de minimis threshold for': {
|
|
9
9
|
value: '최소 임계값을 초과하여',
|
|
10
10
|
},
|
|
11
|
+
'Add promotional code': {
|
|
12
|
+
value: '프로모션 코드 추가',
|
|
13
|
+
},
|
|
11
14
|
Address: {
|
|
12
15
|
value: '주소',
|
|
13
16
|
},
|
|
@@ -20,6 +23,9 @@ export const stringsKorean = {
|
|
|
20
23
|
'An unexpected error occurred when processing PayPal order.': {
|
|
21
24
|
value: 'PayPal 주문을 처리하는 중에 예기치 않은 오류가 발생했습니다.',
|
|
22
25
|
},
|
|
26
|
+
Apply: {
|
|
27
|
+
value: '적용',
|
|
28
|
+
},
|
|
23
29
|
'Are you sure?': {
|
|
24
30
|
value: '확실합니까?',
|
|
25
31
|
},
|
|
@@ -122,6 +128,9 @@ export const stringsKorean = {
|
|
|
122
128
|
Hide: {
|
|
123
129
|
value: '숨기다',
|
|
124
130
|
},
|
|
131
|
+
'Invalid promo code': {
|
|
132
|
+
value: '유효하지 않은 프로모션 코드',
|
|
133
|
+
},
|
|
125
134
|
'Keep shopping': {
|
|
126
135
|
value: '쇼핑 계속하기',
|
|
127
136
|
},
|
|
@@ -8,6 +8,9 @@ export const stringsNorwegian = {
|
|
|
8
8
|
'Above de minimis threshold for': {
|
|
9
9
|
value: 'Over minstegrensen for',
|
|
10
10
|
},
|
|
11
|
+
'Add promotional code': {
|
|
12
|
+
value: 'Legg til kampanjekode',
|
|
13
|
+
},
|
|
11
14
|
Address: {
|
|
12
15
|
value: 'Adresse',
|
|
13
16
|
},
|
|
@@ -20,6 +23,9 @@ export const stringsNorwegian = {
|
|
|
20
23
|
'An unexpected error occurred when processing PayPal order.': {
|
|
21
24
|
value: 'En uventet feil oppstod ved behandling av PayPal-bestillingen.',
|
|
22
25
|
},
|
|
26
|
+
Apply: {
|
|
27
|
+
value: 'Bruk',
|
|
28
|
+
},
|
|
23
29
|
'Are you sure?': {
|
|
24
30
|
value: 'Er du sikker?',
|
|
25
31
|
},
|
|
@@ -122,6 +128,9 @@ export const stringsNorwegian = {
|
|
|
122
128
|
Hide: {
|
|
123
129
|
value: 'Gjem',
|
|
124
130
|
},
|
|
131
|
+
'Invalid promo code': {
|
|
132
|
+
value: 'Ugyldig kampanjekode',
|
|
133
|
+
},
|
|
125
134
|
'Keep shopping': {
|
|
126
135
|
value: 'Fortsett å handle',
|
|
127
136
|
},
|
|
@@ -8,6 +8,9 @@ export const stringsPolish = {
|
|
|
8
8
|
'Above de minimis threshold for': {
|
|
9
9
|
value: 'Powyżej progu minimis dla',
|
|
10
10
|
},
|
|
11
|
+
'Add promotional code': {
|
|
12
|
+
value: 'Dodaj kod promocyjny',
|
|
13
|
+
},
|
|
11
14
|
Address: {
|
|
12
15
|
value: 'Adres',
|
|
13
16
|
},
|
|
@@ -20,6 +23,9 @@ export const stringsPolish = {
|
|
|
20
23
|
'An unexpected error occurred when processing PayPal order.': {
|
|
21
24
|
value: 'Wystąpił nieoczekiwany błąd podczas przetwarzania zamówienia PayPal.',
|
|
22
25
|
},
|
|
26
|
+
Apply: {
|
|
27
|
+
value: 'Zastosuj',
|
|
28
|
+
},
|
|
23
29
|
'Are you sure?': {
|
|
24
30
|
value: 'Jesteś pewien?',
|
|
25
31
|
},
|
|
@@ -122,6 +128,9 @@ export const stringsPolish = {
|
|
|
122
128
|
Hide: {
|
|
123
129
|
value: 'Ukryj',
|
|
124
130
|
},
|
|
131
|
+
'Invalid promo code': {
|
|
132
|
+
value: 'Nieprawidłowy kod promocyjny',
|
|
133
|
+
},
|
|
125
134
|
'Keep shopping': {
|
|
126
135
|
value: 'Kontynuuj zakupy',
|
|
127
136
|
},
|