@zonos/elements 1.3.218 → 1.3.220
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/buildCartItemsByTempCart-309fcebf.js +28 -0
- package/dist/cjs/{cart-c54d05ce.js → cart-9a9ae4b9.js} +90 -47
- package/dist/cjs/cleanHtmlMarkdown-577d0a77.js +999 -0
- package/dist/cjs/index.cjs.js +19 -9
- package/dist/cjs/isCollectMobileTablet-7a9413e3.js +175 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/localization-0169b27d.js +738 -0
- package/dist/cjs/{paypal-d36b5dd1.js → paypal-9ee374a0.js} +12 -8
- package/dist/cjs/placeTestOrder-0dfff170.js +93 -0
- package/dist/cjs/{localization-ab7e1902.js → translationStore-0c67178f.js} +1023 -734
- package/dist/cjs/zonos-address_11.cjs.entry.js +116 -74
- package/dist/cjs/zonos-badge.cjs.entry.js +3 -3
- package/dist/cjs/{zonos-banner.cjs.entry.js → zonos-banner_2.cjs.entry.js} +40 -0
- package/dist/cjs/zonos-button_3.cjs.entry.js +3 -3
- package/dist/cjs/{zonos-cart-items_14.cjs.entry.js → zonos-cart-items_12.cjs.entry.js} +70 -1292
- package/dist/cjs/zonos-checkout.cjs.entry.js +25 -48
- package/dist/cjs/zonos-collapse.cjs.entry.js +2 -2
- package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +92 -0
- package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +811 -0
- package/dist/cjs/zonos-collect.cjs.entry.js +468 -0
- package/dist/cjs/zonos-component.cjs.entry.js +1 -1
- package/dist/cjs/zonos-confirm-dialog_2.cjs.entry.js +168 -0
- package/dist/cjs/zonos-controller.cjs.entry.js +84 -28
- package/dist/cjs/zonos-country-flag.cjs.entry.js +2 -1
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +11 -10
- package/dist/cjs/zonos-elements.cjs.js +1 -1
- package/dist/cjs/zonos-empty-state-payment_4.cjs.entry.js +23 -5
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +34 -33
- package/dist/cjs/zonos-hello.cjs.entry.js +8 -7
- package/dist/cjs/zonos-input.cjs.entry.js +4 -4
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +6 -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-stripe-input.cjs.entry.js +8 -5
- package/dist/cjs/zonos-text.cjs.entry.js +1 -1
- package/dist/cjs/zonos-toggle.cjs.entry.js +2 -2
- package/dist/cjs/zonos-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/zonos-v-stack.cjs.entry.js +2 -2
- package/dist/collection/collection-manifest.json +10 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +2 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +5 -1
- package/dist/collection/components/checkout/zonos-collect/assets/ChevronDownIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-cart-items/assets/empty-item.jpeg +0 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-cart-items/zonos-collect-cart-items.css +60 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-cart-items/zonos-collect-cart-items.js +39 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/assets/RemoveIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/assets/SuccessIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.css +90 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.js +405 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/assets/chevronDownIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/assets/globe.svg +3 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/assets/zonosIconDark.svg +10 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/assets/zonosIconLight.svg +10 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/assets/zonosWordmark.svg +7 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.css +152 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.js +164 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-order-details/assets/ChevronDownIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-order-details/assets/ChevronUpIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-order-details/zonos-collect-order-details.css +109 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-order-details/zonos-collect-order-details.js +194 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/assets/CheckmarkLineIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/assets/RemoveLineIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/zonos-collect-payment.css +98 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/zonos-collect-payment.js +369 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-review/zonos-collect-review.css +71 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-review/zonos-collect-review.js +151 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-subtotal/zonos-collect-subtotal.css +78 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-subtotal/zonos-collect-subtotal.js +115 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect.css +349 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect.js +547 -0
- package/dist/collection/components/common/zonos-badge/zonos-badge.js +3 -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 +3 -3
- 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 +3 -3
- 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-h-stack/zonos-h-stack.css +38 -0
- package/dist/collection/components/common/zonos-h-stack/zonos-h-stack.js +63 -0
- 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-loading-overlay/zonos-loading-overlay.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-skeleton/assets/RemoveLineIcon.svg +3 -0
- package/dist/collection/components/common/zonos-skeleton/zonos-skeleton.css +40 -0
- package/dist/collection/components/common/zonos-skeleton/zonos-skeleton.js +102 -0
- package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.js +8 -5
- package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.js +5 -5
- package/dist/collection/components/common/zonos-stripe-select/zonos-stripe-select.js +5 -5
- package/dist/collection/components/common/zonos-text/zonos-text.css +1 -0
- package/dist/collection/components/common/zonos-toggle/zonos-toggle.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 +91 -25
- package/dist/collection/components/paypal/zonos-paypal-payment.js +13 -2
- package/dist/collection/components/store/checkout/cart.js +36 -15
- package/dist/collection/components/store/checkout/collect.js +160 -0
- package/dist/collection/components/store/checkout/paypal.js +4 -2
- package/dist/collection/components/store/checkout/stripe.js +31 -12
- package/dist/collection/components/store/translationStore/strings.arabic.js +51 -0
- package/dist/collection/components/store/translationStore/strings.base.js +51 -0
- package/dist/collection/components/store/translationStore/strings.chinese.js +51 -0
- package/dist/collection/components/store/translationStore/strings.danish.js +51 -0
- package/dist/collection/components/store/translationStore/strings.dutch.js +51 -0
- package/dist/collection/components/store/translationStore/strings.french.js +51 -0
- package/dist/collection/components/store/translationStore/strings.german.js +51 -0
- package/dist/collection/components/store/translationStore/strings.hebrew.js +51 -0
- package/dist/collection/components/store/translationStore/strings.indonesian.js +51 -0
- package/dist/collection/components/store/translationStore/strings.italian.js +51 -0
- package/dist/collection/components/store/translationStore/strings.japanese.js +51 -0
- package/dist/collection/components/store/translationStore/strings.korean.js +51 -0
- package/dist/collection/components/store/translationStore/strings.norwegian.js +51 -0
- package/dist/collection/components/store/translationStore/strings.polish.js +51 -0
- package/dist/collection/components/store/translationStore/strings.portuguese.js +51 -0
- package/dist/collection/components/store/translationStore/strings.russian.js +51 -0
- package/dist/collection/components/store/translationStore/strings.spanish.js +51 -0
- package/dist/collection/components/store/translationStore/strings.swedish.js +51 -0
- package/dist/collection/components/store/translationStore/strings.turkish.js +51 -0
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +51 -0
- package/dist/collection/components/store/translationStore.js +2 -1
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +35 -18
- package/dist/collection/components/stripe/zonos-custom-address/zonos-address-suggestions/zonos-address-suggestions.js +2 -2
- package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.js +2 -2
- package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +29 -4
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +9 -1
- package/dist/collection/components/utils/checkout/initCollect.js +15 -0
- package/dist/collection/components/utils/checkout/isCollectMobileTablet.js +10 -0
- package/dist/collection/components/utils/checkout/renderCheckoutCurrency.js +10 -1
- package/dist/collection/components/utils/renderFallback.js +7 -0
- package/dist/collection/scripts/_getZonosQaUrl.js +5 -1
- package/dist/collection/scripts/_zonosBase.js +7 -1
- package/dist/collection/types/checkout/api/PartyInfo.js +1 -0
- package/dist/collection/types/generated/graphql.internal.types.js +113 -0
- package/dist/collection/types/index.js +1 -0
- package/dist/esm/buildCartItemsByTempCart-c4488f73.js +26 -0
- package/dist/esm/{cart-bb0ee971.js → cart-b2dd578c.js} +68 -27
- package/dist/esm/cleanHtmlMarkdown-b5b18743.js +997 -0
- package/dist/esm/index.js +19 -9
- package/dist/esm/isCollectMobileTablet-7f9a5e2b.js +168 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/localization-d7125e4e.js +719 -0
- package/dist/esm/{paypal-bd4520eb.js → paypal-555bbf1e.js} +7 -4
- package/dist/esm/placeTestOrder-2d67c1a9.js +90 -0
- package/dist/esm/{localization-d8326254.js → translationStore-13502f49.js} +1023 -718
- package/dist/esm/zonos-address_11.entry.js +85 -43
- package/dist/esm/zonos-badge.entry.js +3 -3
- package/dist/esm/{zonos-banner.entry.js → zonos-banner_2.entry.js} +40 -1
- package/dist/esm/zonos-button_3.entry.js +3 -3
- package/dist/esm/{zonos-cart-items_14.entry.js → zonos-cart-items_12.entry.js} +20 -1240
- package/dist/esm/zonos-checkout.entry.js +6 -29
- package/dist/esm/zonos-collapse.entry.js +2 -2
- package/dist/esm/zonos-collect-cart-items_3.entry.js +86 -0
- package/dist/esm/zonos-collect-finish_6.entry.js +802 -0
- package/dist/esm/zonos-collect.entry.js +464 -0
- package/dist/esm/zonos-component.entry.js +1 -1
- package/dist/esm/zonos-confirm-dialog_2.entry.js +163 -0
- package/dist/esm/zonos-controller.entry.js +84 -28
- package/dist/esm/zonos-country-flag.entry.js +2 -1
- package/dist/esm/zonos-country-select_4.entry.js +11 -10
- package/dist/esm/zonos-elements.js +1 -1
- package/dist/esm/zonos-empty-state-payment_4.entry.js +23 -5
- package/dist/esm/zonos-hello-dialog.entry.js +6 -5
- package/dist/esm/zonos-hello.entry.js +2 -1
- package/dist/esm/zonos-input.entry.js +4 -4
- package/dist/esm/zonos-language-select_2.entry.js +6 -5
- package/dist/esm/zonos-link.entry.js +1 -1
- package/dist/esm/zonos-logo.entry.js +2 -2
- package/dist/esm/zonos-stripe-input.entry.js +9 -6
- package/dist/esm/zonos-text.entry.js +1 -1
- package/dist/esm/zonos-toggle.entry.js +2 -2
- package/dist/esm/zonos-tooltip.entry.js +2 -2
- package/dist/esm/zonos-v-stack.entry.js +2 -2
- package/dist/esm-es5/buildCartItemsByTempCart-c4488f73.js +1 -0
- package/dist/esm-es5/cart-b2dd578c.js +1 -0
- package/dist/esm-es5/cleanHtmlMarkdown-b5b18743.js +1 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/isCollectMobileTablet-7f9a5e2b.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/localization-d7125e4e.js +1 -0
- package/dist/esm-es5/paypal-555bbf1e.js +17 -0
- package/dist/esm-es5/placeTestOrder-2d67c1a9.js +1 -0
- package/dist/esm-es5/translationStore-13502f49.js +1 -0
- package/dist/esm-es5/zonos-address_11.entry.js +1 -1
- package/dist/esm-es5/zonos-badge.entry.js +1 -1
- package/dist/esm-es5/zonos-banner_2.entry.js +1 -0
- package/dist/esm-es5/zonos-button_3.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-collapse.entry.js +1 -1
- package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +1 -0
- package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -0
- package/dist/esm-es5/zonos-collect.entry.js +1 -0
- package/dist/esm-es5/zonos-component.entry.js +1 -1
- package/dist/esm-es5/zonos-confirm-dialog_2.entry.js +1 -0
- 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-empty-state-payment_4.entry.js +1 -1
- package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm-es5/zonos-hello.entry.js +1 -1
- package/dist/esm-es5/zonos-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-stripe-input.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-tooltip.entry.js +1 -1
- package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
- package/dist/scripts/index.d.ts +470 -2
- 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-collect/zonos-collect-cart-items/zonos-collect-cart-items.d.ts +4 -0
- package/dist/types/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.d.ts +50 -0
- package/dist/types/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.d.ts +25 -0
- package/dist/types/components/checkout/zonos-collect/zonos-collect-order-details/zonos-collect-order-details.d.ts +29 -0
- package/dist/types/components/checkout/zonos-collect/zonos-collect-payment/zonos-collect-payment.d.ts +62 -0
- package/dist/types/components/checkout/zonos-collect/zonos-collect-review/zonos-collect-review.d.ts +22 -0
- package/dist/types/components/checkout/zonos-collect/zonos-collect-subtotal/zonos-collect-subtotal.d.ts +10 -0
- package/dist/types/components/checkout/zonos-collect/zonos-collect.d.ts +86 -0
- package/dist/types/components/common/zonos-h-stack/zonos-h-stack.d.ts +9 -0
- package/dist/types/components/common/zonos-skeleton/zonos-skeleton.d.ts +17 -0
- package/dist/types/components/main/zonos-controller.d.ts +5 -0
- package/dist/types/components/paypal/zonos-paypal-payment.d.ts +3 -0
- package/dist/types/components/store/checkout/cart.d.ts +23 -3
- package/dist/types/components/store/checkout/collect.d.ts +21 -0
- package/dist/types/components/store/checkout/paypal.d.ts +4 -3
- package/dist/types/components/store/checkout/stripe.d.ts +6 -2
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +51 -0
- package/dist/types/components/store/translationStore/strings.base.d.ts +51 -0
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +51 -0
- package/dist/types/components/store/translationStore/strings.danish.d.ts +51 -0
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +51 -0
- package/dist/types/components/store/translationStore/strings.french.d.ts +51 -0
- package/dist/types/components/store/translationStore/strings.german.d.ts +51 -0
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +51 -0
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +51 -0
- package/dist/types/components/store/translationStore/strings.italian.d.ts +51 -0
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +51 -0
- package/dist/types/components/store/translationStore/strings.korean.d.ts +51 -0
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +51 -0
- package/dist/types/components/store/translationStore/strings.polish.d.ts +51 -0
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +51 -0
- package/dist/types/components/store/translationStore/strings.russian.d.ts +51 -0
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +51 -0
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +51 -0
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +51 -0
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +51 -0
- package/dist/types/components/store/translationStore.d.ts +2 -1
- package/dist/types/components/stripe/zonos-address/zonos-address.d.ts +1 -2
- package/dist/types/components/stripe/zonos-link-authentication/zonos-link-authentication.d.ts +3 -1
- package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
- package/dist/types/components/utils/checkout/initCollect.d.ts +1 -0
- package/dist/types/components/utils/checkout/isCollectMobileTablet.d.ts +4 -0
- package/dist/types/components/utils/renderFallback.d.ts +6 -0
- package/dist/types/components.d.ts +401 -2
- package/dist/types/scripts/_zonosBase.d.ts +5 -0
- package/dist/types/scripts/cart/_setupCartDataWithSettings.d.ts +5 -0
- package/dist/types/types/checkout/api/CheckoutSession.d.ts +9 -1
- package/dist/types/types/checkout/api/CreateParty.d.ts +24 -0
- package/dist/types/types/checkout/api/NormalizedTempCart.d.ts +6 -1
- package/dist/types/types/checkout/api/PartyInfo.d.ts +24 -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 +616 -5
- package/dist/types/types/generated/graphql.internal.types.ts +626 -6
- package/dist/types/types/index.d.ts +1 -0
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-7b5de646.entry.js → p-02667a58.entry.js} +1 -1
- package/dist/zonos-elements/p-031d646e.system.js +1 -0
- package/dist/zonos-elements/p-0e07e1d6.entry.js +1 -0
- package/dist/zonos-elements/p-0ef2a242.js +1 -0
- package/dist/zonos-elements/p-126087a2.system.entry.js +1 -0
- package/dist/zonos-elements/{p-c7d5d45d.entry.js → p-14f9bc8c.entry.js} +1 -1
- package/dist/zonos-elements/p-27d9abab.js +1 -0
- package/dist/zonos-elements/p-2813d72e.system.js +1 -0
- package/dist/zonos-elements/p-295d9c07.system.entry.js +1 -0
- package/dist/zonos-elements/p-29c80a34.js +1 -0
- package/dist/zonos-elements/p-2a6c964d.js +1 -0
- package/dist/zonos-elements/p-2b3c7c77.system.entry.js +1 -0
- package/dist/zonos-elements/p-2b8897d1.system.entry.js +1 -0
- package/dist/zonos-elements/{p-544c173a.system.entry.js → p-30432622.system.entry.js} +1 -1
- package/dist/zonos-elements/p-3462e9e4.system.entry.js +1 -0
- package/dist/zonos-elements/p-372c2fc5.entry.js +1 -0
- package/dist/zonos-elements/p-3c1b1be1.system.entry.js +1 -0
- package/dist/zonos-elements/p-40a4266f.js +1 -0
- package/dist/zonos-elements/{p-47ffacd8.system.entry.js → p-421dfb66.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-288761b1.system.entry.js → p-4f8563ad.system.entry.js} +1 -1
- package/dist/zonos-elements/p-52d35358.system.entry.js +1 -0
- package/dist/zonos-elements/p-567f7de7.entry.js +1 -0
- package/dist/zonos-elements/p-5d9410da.entry.js +1 -0
- package/dist/zonos-elements/p-637b22ee.system.entry.js +1 -0
- package/dist/zonos-elements/p-63a42823.entry.js +1 -0
- package/dist/zonos-elements/p-69451a50.system.js +1 -0
- package/dist/zonos-elements/p-6b3a0874.entry.js +1 -0
- package/dist/zonos-elements/p-73c1e91f.js +1 -0
- package/dist/zonos-elements/p-759ef3ca.entry.js +1 -0
- package/dist/zonos-elements/p-79d8c3f3.system.entry.js +1 -0
- package/dist/zonos-elements/{p-3f31901f.entry.js → p-7c4e7651.entry.js} +1 -1
- package/dist/zonos-elements/{p-1c45cd15.entry.js → p-7d2d2c94.entry.js} +1 -1
- package/dist/zonos-elements/{p-1ac8bfbb.system.entry.js → p-7e5bd9af.system.entry.js} +1 -1
- package/dist/zonos-elements/p-7ecbb2cb.entry.js +1 -0
- package/dist/zonos-elements/p-81b357f7.system.js +1 -1
- package/dist/zonos-elements/p-82e88a33.system.js +1 -0
- package/dist/zonos-elements/p-849b47aa.entry.js +1 -0
- package/dist/zonos-elements/p-8dd47520.system.entry.js +1 -0
- package/dist/zonos-elements/p-932600b7.js +1 -0
- package/dist/zonos-elements/p-960e0ab1.system.entry.js +1 -0
- package/dist/zonos-elements/p-9c5b8239.system.js +1 -0
- package/dist/zonos-elements/{p-d55aec11.system.entry.js → p-9fdd3264.system.entry.js} +1 -1
- package/dist/zonos-elements/p-a08a005d.entry.js +1 -0
- package/dist/zonos-elements/p-a10de7fb.entry.js +1 -0
- package/dist/zonos-elements/p-a49b5e7f.system.entry.js +1 -0
- package/dist/zonos-elements/{p-62813488.entry.js → p-a5b0a636.entry.js} +1 -1
- package/dist/zonos-elements/p-a61a9b65.system.entry.js +1 -0
- package/dist/zonos-elements/{p-d6fa2dc2.entry.js → p-a77ed1b9.entry.js} +1 -1
- package/dist/zonos-elements/{p-eeb01de6.system.entry.js → p-a800965d.system.entry.js} +1 -1
- package/dist/zonos-elements/p-b2ae8eb7.system.js +1 -0
- package/dist/zonos-elements/p-b3d5bcf9.entry.js +1 -0
- package/dist/zonos-elements/{p-da4c01da.system.entry.js → p-b669050d.system.entry.js} +1 -1
- package/dist/zonos-elements/p-b9e9b82f.system.entry.js +1 -0
- package/dist/zonos-elements/{p-714c28b1.system.entry.js → p-ba18c5f5.system.entry.js} +1 -1
- package/dist/zonos-elements/p-bbf48b31.entry.js +1 -0
- package/dist/zonos-elements/{p-77666360.entry.js → p-c4b3c878.entry.js} +1 -1
- package/dist/zonos-elements/p-c7b57886.js +17 -0
- package/dist/zonos-elements/p-c803753e.entry.js +1 -0
- package/dist/zonos-elements/{p-e640e8b8.entry.js → p-cbb01de9.entry.js} +1 -1
- package/dist/zonos-elements/p-ce15d62d.system.js +1 -0
- package/dist/zonos-elements/p-d291e964.system.entry.js +1 -0
- package/dist/zonos-elements/p-d3485a03.system.js +1 -0
- package/dist/zonos-elements/{p-59eaebe3.system.entry.js → p-de626806.system.entry.js} +1 -1
- package/dist/zonos-elements/p-e5388438.system.entry.js +1 -0
- package/dist/zonos-elements/p-e77b6e42.entry.js +1 -0
- package/dist/zonos-elements/p-ea8aff21.system.js +17 -0
- package/dist/zonos-elements/{p-7ab62a26.system.entry.js → p-eb6a35ce.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-92cc26b7.system.entry.js → p-ee6f8c02.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-a98b1e8d.entry.js → p-efa6203f.entry.js} +1 -1
- package/dist/zonos-elements/{p-edc77ea1.entry.js → p-f4fa8720.entry.js} +1 -1
- package/dist/zonos-elements/{p-ebaaaee9.entry.js → p-fa90adb8.entry.js} +1 -1
- package/dist/zonos-elements/p-fe7e2dc4.entry.js +1 -0
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/zonos-card.cjs.entry.js +0 -49
- package/dist/esm/zonos-card.entry.js +0 -45
- package/dist/esm-es5/cart-bb0ee971.js +0 -1
- package/dist/esm-es5/localization-d8326254.js +0 -1
- package/dist/esm-es5/paypal-bd4520eb.js +0 -17
- package/dist/esm-es5/zonos-banner.entry.js +0 -1
- package/dist/esm-es5/zonos-card.entry.js +0 -1
- package/dist/esm-es5/zonos-cart-items_14.entry.js +0 -1
- package/dist/zonos-elements/p-043f57e8.system.entry.js +0 -1
- package/dist/zonos-elements/p-0631d2b9.js +0 -1
- package/dist/zonos-elements/p-0a6ac265.system.js +0 -1
- package/dist/zonos-elements/p-0f041dc5.system.entry.js +0 -1
- package/dist/zonos-elements/p-1432a217.system.entry.js +0 -1
- package/dist/zonos-elements/p-1b51b738.system.entry.js +0 -1
- package/dist/zonos-elements/p-3a1513ae.system.entry.js +0 -1
- package/dist/zonos-elements/p-3b8d11dd.entry.js +0 -1
- package/dist/zonos-elements/p-4333afcb.entry.js +0 -1
- package/dist/zonos-elements/p-4d0d89da.system.entry.js +0 -1
- package/dist/zonos-elements/p-5dd9cb44.system.entry.js +0 -1
- package/dist/zonos-elements/p-605a21ac.entry.js +0 -1
- package/dist/zonos-elements/p-674981ad.system.js +0 -1
- package/dist/zonos-elements/p-6d090b53.entry.js +0 -1
- package/dist/zonos-elements/p-73c8c551.system.entry.js +0 -1
- package/dist/zonos-elements/p-795d223d.entry.js +0 -1
- package/dist/zonos-elements/p-8218ff62.system.entry.js +0 -1
- package/dist/zonos-elements/p-82f80c8a.entry.js +0 -1
- package/dist/zonos-elements/p-88f7256d.js +0 -1
- package/dist/zonos-elements/p-8b083884.entry.js +0 -1
- package/dist/zonos-elements/p-a449940d.entry.js +0 -1
- package/dist/zonos-elements/p-a5a4ad2f.entry.js +0 -1
- package/dist/zonos-elements/p-a5d45585.system.entry.js +0 -1
- package/dist/zonos-elements/p-a751e819.system.entry.js +0 -1
- package/dist/zonos-elements/p-ad556be6.entry.js +0 -1
- package/dist/zonos-elements/p-b4792af0.entry.js +0 -1
- package/dist/zonos-elements/p-b9ff6458.entry.js +0 -1
- package/dist/zonos-elements/p-d3dbae8c.system.js +0 -1
- package/dist/zonos-elements/p-ebb9b902.system.js +0 -17
- package/dist/zonos-elements/p-ef1ce617.system.entry.js +0 -1
- package/dist/zonos-elements/p-ef75da6f.js +0 -17
- package/dist/zonos-elements/p-f3dbe934.entry.js +0 -1
- package/dist/zonos-elements/p-f741407e.system.entry.js +0 -1
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import { createStore } from "@stencil/store";
|
|
2
|
+
import { cartStore, cartStoreUpdateSelectedShippingOption, } from "./cart";
|
|
3
|
+
import { stripeStore, stripeStoreBuildAddressForPartyCreate, } from "./stripe";
|
|
4
|
+
import { storageStore } from "../storageStore";
|
|
5
|
+
import { zonosStore } from "../zonosStore";
|
|
6
|
+
import { handleFetch } from "../../utils/handleFetch";
|
|
7
|
+
import { allLogs } from "../../utils/logging/log";
|
|
8
|
+
import { logError } from "../../utils/logging/logError";
|
|
9
|
+
import { sendErrorLog } from "../../utils/logging/sendErrorLog";
|
|
10
|
+
const { reset: collectStoreReset, state: collectStore } = createStore(() => ({
|
|
11
|
+
amountDutyTaxFeeTotal: null,
|
|
12
|
+
amountTotalPaid: null,
|
|
13
|
+
isFetchingShippingInfo: true,
|
|
14
|
+
landedCostShortId: null,
|
|
15
|
+
originCompanyName: null,
|
|
16
|
+
partyBillingId: null,
|
|
17
|
+
shippingAddress: null,
|
|
18
|
+
}));
|
|
19
|
+
const collectStoreInitShippingInfo = async ({ landedCostId, retries = 5, }) => {
|
|
20
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
21
|
+
collectStore.isFetchingShippingInfo = true;
|
|
22
|
+
const response = await handleFetch('/api/zonos-elements/collect/get-shipping-info-by-lc-id', {
|
|
23
|
+
body: {
|
|
24
|
+
landedCostId,
|
|
25
|
+
},
|
|
26
|
+
method: 'POST',
|
|
27
|
+
});
|
|
28
|
+
if (response.errors.length) {
|
|
29
|
+
if (retries > 0) {
|
|
30
|
+
// Wait for 1 second before retrying
|
|
31
|
+
await new Promise(resolve => setTimeout(resolve, 1000));
|
|
32
|
+
// Keep retrying until we get the shipping address or we run out of retries
|
|
33
|
+
return collectStoreInitShippingInfo({
|
|
34
|
+
landedCostId,
|
|
35
|
+
retries: retries - 1,
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
collectStore.landedCostShortId = ((_a = response.json) === null || _a === void 0 ? void 0 : _a.landedCostShortId) || null;
|
|
41
|
+
collectStore.isFetchingShippingInfo = false;
|
|
42
|
+
collectStore.shippingAddress = ((_b = response.json) === null || _b === void 0 ? void 0 : _b.shipping) || null;
|
|
43
|
+
const landedCost = (_c = cartStore.checkoutSession) === null || _c === void 0 ? void 0 : _c.landedCost;
|
|
44
|
+
const checkoutSessionSubtotals = (_d = cartStore.checkoutSession) === null || _d === void 0 ? void 0 : _d.subtotals;
|
|
45
|
+
const amountTotalPaid = (((_e = landedCost === null || landedCost === void 0 ? void 0 : landedCost.amountSubtotals) === null || _e === void 0 ? void 0 : _e.shipping) || 0) +
|
|
46
|
+
(((_f = landedCost === null || landedCost === void 0 ? void 0 : landedCost.amountSubtotals) === null || _f === void 0 ? void 0 : _f.items) || 0);
|
|
47
|
+
// Convert the amount to the presentment currency
|
|
48
|
+
collectStore.amountTotalPaid =
|
|
49
|
+
amountTotalPaid * (((_g = checkoutSessionSubtotals === null || checkoutSessionSubtotals === void 0 ? void 0 : checkoutSessionSubtotals.exchangeRate) === null || _g === void 0 ? void 0 : _g.rate) || 1);
|
|
50
|
+
collectStore.amountDutyTaxFeeTotal =
|
|
51
|
+
((checkoutSessionSubtotals === null || checkoutSessionSubtotals === void 0 ? void 0 : checkoutSessionSubtotals.duties) || 0) +
|
|
52
|
+
((checkoutSessionSubtotals === null || checkoutSessionSubtotals === void 0 ? void 0 : checkoutSessionSubtotals.taxes) || 0) +
|
|
53
|
+
((checkoutSessionSubtotals === null || checkoutSessionSubtotals === void 0 ? void 0 : checkoutSessionSubtotals.fees) || 0);
|
|
54
|
+
collectStore.originCompanyName = ((_j = (_h = response.json) === null || _h === void 0 ? void 0 : _h.origin) === null || _j === void 0 ? void 0 : _j.companyName) || null;
|
|
55
|
+
if (collectStore.amountTotalPaid === 0) {
|
|
56
|
+
void sendErrorLog({
|
|
57
|
+
endpoint: 'COLLECT_NO_TOTAL_PAID',
|
|
58
|
+
errors: [],
|
|
59
|
+
metadata: {
|
|
60
|
+
landedCostId,
|
|
61
|
+
organizationId: zonosStore.organizationId,
|
|
62
|
+
},
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
const collectStoreAsyncAddressUpdate = async () => {
|
|
67
|
+
var _a, _b, _c, _d;
|
|
68
|
+
if (!((_a = stripeStore.stripeBillingAddressEventData) === null || _a === void 0 ? void 0 : _a.complete)) {
|
|
69
|
+
return {
|
|
70
|
+
partiesCreated: false,
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
const landedCostRootId = (_c = (_b = cartStore.checkoutSession) === null || _b === void 0 ? void 0 : _b.landedCost) === null || _c === void 0 ? void 0 : _c.rootId;
|
|
74
|
+
if (!landedCostRootId) {
|
|
75
|
+
// do nothing if we don't have selected landed cost
|
|
76
|
+
void sendErrorLog({
|
|
77
|
+
endpoint: 'PF_NO_SELECTED_LANDED_COST',
|
|
78
|
+
errors: ['No selected landed cost'],
|
|
79
|
+
metadata: {
|
|
80
|
+
allLogs,
|
|
81
|
+
cartId: window.Zonos.cartId,
|
|
82
|
+
checkoutSessionId: storageStore.checkoutSessionId,
|
|
83
|
+
},
|
|
84
|
+
});
|
|
85
|
+
return {
|
|
86
|
+
partiesCreated: false,
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
if (!storageStore.checkoutSessionId) {
|
|
90
|
+
void sendErrorLog({
|
|
91
|
+
endpoint: 'COLLECT_NO_CHECKOUT_SESSION_ID',
|
|
92
|
+
errors: ['No checkout session id'],
|
|
93
|
+
metadata: {
|
|
94
|
+
allLogs,
|
|
95
|
+
cartId: window.Zonos.cartId,
|
|
96
|
+
landedCostRootId,
|
|
97
|
+
},
|
|
98
|
+
});
|
|
99
|
+
return {
|
|
100
|
+
partiesCreated: false,
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
const billingAddress = stripeStoreBuildAddressForPartyCreate({
|
|
104
|
+
address: stripeStore.stripeBillingAddressEventData.value.address,
|
|
105
|
+
firstName: stripeStore.stripeBillingAddressEventData.value.firstName,
|
|
106
|
+
lastName: stripeStore.stripeBillingAddressEventData.value.lastName,
|
|
107
|
+
name: stripeStore.stripeBillingAddressEventData.value.name,
|
|
108
|
+
phone: stripeStore.stripeBillingAddressEventData.value.phone,
|
|
109
|
+
});
|
|
110
|
+
const isE2ETest = new URLSearchParams(window.location.search).get('zonosE2ETest') === '1';
|
|
111
|
+
const { errors, json } = await handleFetch('/api/zonos-elements/create-billing-party', {
|
|
112
|
+
body: {
|
|
113
|
+
billingAddress,
|
|
114
|
+
checkoutSessionId: storageStore.checkoutSessionId,
|
|
115
|
+
companyName: stripeStore.companyName,
|
|
116
|
+
email: ((_d = stripeStore.stripeLinkEventData) === null || _d === void 0 ? void 0 : _d.value.email) || '',
|
|
117
|
+
isTest: isE2ETest,
|
|
118
|
+
rootId: landedCostRootId,
|
|
119
|
+
},
|
|
120
|
+
method: 'POST',
|
|
121
|
+
});
|
|
122
|
+
if (errors.length || !json) {
|
|
123
|
+
logError('Error occurs when creating billing party', JSON.stringify(errors, null, 2));
|
|
124
|
+
void sendErrorLog({
|
|
125
|
+
endpoint: 'COLLECT_BILLING_PARTY_CREATE_FAILED',
|
|
126
|
+
errors: ['[COLLECT] Failed to create billing party'],
|
|
127
|
+
metadata: {
|
|
128
|
+
allLogs,
|
|
129
|
+
cartId: window.Zonos.cartId,
|
|
130
|
+
checkoutSessionId: storageStore.checkoutSessionId,
|
|
131
|
+
errors,
|
|
132
|
+
json,
|
|
133
|
+
},
|
|
134
|
+
});
|
|
135
|
+
return {
|
|
136
|
+
partiesCreated: false,
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
collectStore.partyBillingId = json.billToPartyId;
|
|
140
|
+
return {
|
|
141
|
+
partiesCreated: true,
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
const collectStoreUpdateSelectedShippingOption = async (checkoutSession) => {
|
|
145
|
+
const landedCost = checkoutSession.landedCost;
|
|
146
|
+
if (!landedCost) {
|
|
147
|
+
return false;
|
|
148
|
+
}
|
|
149
|
+
// Convert the landed cost to the format that cartStore expects
|
|
150
|
+
cartStore.landedCostData = [
|
|
151
|
+
Object.assign(Object.assign({}, checkoutSession), { landedCost: Object.assign({}, landedCost), landedCostId: landedCost.id }),
|
|
152
|
+
];
|
|
153
|
+
return cartStoreUpdateSelectedShippingOption({
|
|
154
|
+
// No need to update checkout session again, we already called it when starting collect, only need to apply subtotals here to utilize the cart store
|
|
155
|
+
applySubtotalsOnly: true,
|
|
156
|
+
landedCostId: landedCost.id,
|
|
157
|
+
selectedShippingOption: landedCost.shipmentRating,
|
|
158
|
+
});
|
|
159
|
+
};
|
|
160
|
+
export { collectStore, collectStoreAsyncAddressUpdate, collectStoreInitShippingInfo, collectStoreReset, collectStoreUpdateSelectedShippingOption, };
|
|
@@ -14,9 +14,10 @@ import { log } from "../../utils/logging/log";
|
|
|
14
14
|
import { logError } from "../../utils/logging/logError";
|
|
15
15
|
import { submitGtag } from "../../utils/submitGtag";
|
|
16
16
|
import { validateCheckoutSession } from "../../utils/validateCheckoutSession";
|
|
17
|
-
const { reset: paypalStoreReset, state: paypalStore } = createStore(() => ({
|
|
17
|
+
const { onChange: paypalStoreOnChange, reset: paypalStoreReset, state: paypalStore, } = createStore(() => ({
|
|
18
18
|
intent: 'capture',
|
|
19
19
|
orderIdCreated: null,
|
|
20
|
+
paypal: null,
|
|
20
21
|
paypalButtons: [],
|
|
21
22
|
paypalClientId: '',
|
|
22
23
|
paypalErrorMessage: null,
|
|
@@ -205,6 +206,7 @@ const paypalInitScript = async ({ currency }) => {
|
|
|
205
206
|
environment,
|
|
206
207
|
intent: paypalStore.intent,
|
|
207
208
|
});
|
|
209
|
+
paypalStore.paypal = window.Zonos.paypal;
|
|
208
210
|
log('==== Paypal script loaded');
|
|
209
211
|
};
|
|
210
212
|
const paypalStoreInitButtons = (props) => {
|
|
@@ -248,4 +250,4 @@ const paypalStoreHasPaypalEnabled = () => {
|
|
|
248
250
|
const paypalEnabledInSetting = ((_b = (_a = zonosStore.checkoutSettings.externalPaymentMethods) === null || _a === void 0 ? void 0 : _a.find(payment => payment.type === 'PAYPAL')) === null || _b === void 0 ? void 0 : _b.status) === 'ENABLED';
|
|
249
251
|
return paypalEnabledInSetting || !!paypalStore.paypalButtons.length;
|
|
250
252
|
};
|
|
251
|
-
export { paypalInitScript, paypalStore, paypalStoreCreaterOrder, paypalStoreHasPaypalEnabled, paypalStoreInitButtons, paypalStoreReset, };
|
|
253
|
+
export { paypalInitScript, paypalStore, paypalStoreCreaterOrder, paypalStoreHasPaypalEnabled, paypalStoreInitButtons, paypalStoreOnChange, paypalStoreReset, };
|
|
@@ -150,15 +150,15 @@ const initStripeElements = async (props) => {
|
|
|
150
150
|
JSON.stringify(stripeStore.stripeElementsOptions);
|
|
151
151
|
if (!stripeStore.stripeElements ||
|
|
152
152
|
!stripeStore.stripeElementsForBillingAddress) {
|
|
153
|
+
// init stripe elements for billing address
|
|
154
|
+
stripeStore.stripeElementsForBillingAddress =
|
|
155
|
+
(_a = stripeStore.stripe) === null || _a === void 0 ? void 0 : _a.elements(stripeOptions);
|
|
156
|
+
log('Stripe elements for billing address initialized');
|
|
153
157
|
// init stripe elements if it doesn't exist
|
|
154
|
-
stripeStore.stripeElements = (
|
|
158
|
+
stripeStore.stripeElements = (_b = stripeStore.stripe) === null || _b === void 0 ? void 0 : _b.elements(stripeOptions);
|
|
155
159
|
// save stripe elements options for later comparison
|
|
156
160
|
stripeStore.stripeElementsOptions = stripeOptions;
|
|
157
161
|
log('Stripe elements initialized');
|
|
158
|
-
// init stripe elements for billing address
|
|
159
|
-
stripeStore.stripeElementsForBillingAddress =
|
|
160
|
-
(_b = stripeStore.stripe) === null || _b === void 0 ? void 0 : _b.elements(stripeOptions);
|
|
161
|
-
log('Stripe elements for billing address initialized');
|
|
162
162
|
return;
|
|
163
163
|
}
|
|
164
164
|
if (!isSameOptions) {
|
|
@@ -204,7 +204,7 @@ const checkIsAddressOutdatedForAsyncAddressUpdate = () => {
|
|
|
204
204
|
isTaxIdDirty ||
|
|
205
205
|
isCompanyNameDirty);
|
|
206
206
|
};
|
|
207
|
-
const
|
|
207
|
+
const stripeStoreBuildAddressForPartyCreate = ({ address, firstName, lastName, name, phone, }) => {
|
|
208
208
|
const { firstName: _firstName, lastName: _lastName } = extractName({
|
|
209
209
|
firstName,
|
|
210
210
|
lastName,
|
|
@@ -286,7 +286,7 @@ const stripeStoreAsyncAddressUpdate = async () => {
|
|
|
286
286
|
partiesCreated: false,
|
|
287
287
|
};
|
|
288
288
|
}
|
|
289
|
-
const address =
|
|
289
|
+
const address = stripeStoreBuildAddressForPartyCreate({
|
|
290
290
|
address: stripeStore.stripeAddressEventData.value.address,
|
|
291
291
|
firstName: stripeStore.stripeAddressEventData.value.firstName,
|
|
292
292
|
lastName: stripeStore.stripeAddressEventData.value.lastName,
|
|
@@ -295,7 +295,7 @@ const stripeStoreAsyncAddressUpdate = async () => {
|
|
|
295
295
|
});
|
|
296
296
|
const billingAddress = stripeStore.stripeShippingSameAsBilling
|
|
297
297
|
? address
|
|
298
|
-
:
|
|
298
|
+
: stripeStoreBuildAddressForPartyCreate({
|
|
299
299
|
address: stripeStore.stripeBillingAddressEventData.value.address,
|
|
300
300
|
firstName: stripeStore.stripeBillingAddressEventData.value.firstName,
|
|
301
301
|
lastName: stripeStore.stripeBillingAddressEventData.value.lastName,
|
|
@@ -605,7 +605,11 @@ const stripeStoreApplyPromoCode = async () => {
|
|
|
605
605
|
if (!cheapestServiceLevel || !matchLandedCost) {
|
|
606
606
|
return;
|
|
607
607
|
}
|
|
608
|
-
await cartStoreUpdateSelectedShippingOption(
|
|
608
|
+
await cartStoreUpdateSelectedShippingOption({
|
|
609
|
+
applySubtotalsOnly: false,
|
|
610
|
+
landedCostId: matchLandedCost.landedCostId,
|
|
611
|
+
selectedShippingOption: cheapestServiceLevel,
|
|
612
|
+
});
|
|
609
613
|
};
|
|
610
614
|
const stripeStoreResetPromoCode = () => {
|
|
611
615
|
cartStore.promoCode = '';
|
|
@@ -625,6 +629,7 @@ const stripeStoreRemovePromoCode = async () => {
|
|
|
625
629
|
const stripeStoreMessageBasedOnStatus = (status) => {
|
|
626
630
|
let messages = [];
|
|
627
631
|
let isError = true;
|
|
632
|
+
const isCollect = window.Zonos.isCollect;
|
|
628
633
|
// Inspect the PaymentIntent `status` to indicate the status of the payment
|
|
629
634
|
// to your customer.
|
|
630
635
|
//
|
|
@@ -639,6 +644,13 @@ const stripeStoreMessageBasedOnStatus = (status) => {
|
|
|
639
644
|
'',
|
|
640
645
|
translate("We've sent an email confirmation of the order details for your review. And our team is carefully preparing your order so it arrives on time."),
|
|
641
646
|
];
|
|
647
|
+
if (isCollect) {
|
|
648
|
+
messages = [
|
|
649
|
+
translate('Thank you for submitting your payment. We appreciate your prompt attention.'),
|
|
650
|
+
'',
|
|
651
|
+
translate('A confirmation email with your payment details has been sent for your records. If you have any questions or need support, our team is here to help.'),
|
|
652
|
+
];
|
|
653
|
+
}
|
|
642
654
|
isError = false;
|
|
643
655
|
break;
|
|
644
656
|
}
|
|
@@ -654,6 +666,11 @@ const stripeStoreMessageBasedOnStatus = (status) => {
|
|
|
654
666
|
messages = [
|
|
655
667
|
translate('Payment failed. Please try another payment method.'),
|
|
656
668
|
];
|
|
669
|
+
if (isCollect) {
|
|
670
|
+
messages = [
|
|
671
|
+
translate('Payment failed. Please reload the page and try another payment method.'),
|
|
672
|
+
];
|
|
673
|
+
}
|
|
657
674
|
break;
|
|
658
675
|
}
|
|
659
676
|
case 'requires_action': {
|
|
@@ -766,14 +783,15 @@ const stripeStoreRetrievePayment = async ({ clientSecret: _clientSecret, storybo
|
|
|
766
783
|
status,
|
|
767
784
|
};
|
|
768
785
|
};
|
|
769
|
-
const stripeStoreConfirmPayment = async () => {
|
|
786
|
+
const stripeStoreConfirmPayment = async (props) => {
|
|
770
787
|
var _a, _b;
|
|
771
788
|
const stripePaymentReady = !!((_a = stripeStore.stripePaymentEventData) === null || _a === void 0 ? void 0 : _a.complete);
|
|
772
789
|
const stripeElements = stripeStore.stripeElements;
|
|
773
790
|
const stripe = stripeStore.stripe;
|
|
774
791
|
const stripeClientSecret = stripeStore.clientSecret;
|
|
775
792
|
stripeStore.customErrorMessage = null;
|
|
776
|
-
if (!((_b = cartStore.selectedLandedCost) === null || _b === void 0 ? void 0 : _b.landedCost.id)
|
|
793
|
+
if (!((_b = cartStore.selectedLandedCost) === null || _b === void 0 ? void 0 : _b.landedCost.id) &&
|
|
794
|
+
!(props === null || props === void 0 ? void 0 : props.noLandedCostCheck)) {
|
|
777
795
|
throw new Error('Attempted to confirm the payment when no landed cost is found in store');
|
|
778
796
|
}
|
|
779
797
|
// Check if the checkout session is valid before proceeding
|
|
@@ -834,6 +852,7 @@ export const getCheckoutSessionBody = () => {
|
|
|
834
852
|
cartId: window.Zonos.cartId,
|
|
835
853
|
currency: ((_a = cartStore.items.find(Boolean)) === null || _a === void 0 ? void 0 : _a.currencyCode) || '',
|
|
836
854
|
customerAuthenticationToken: cartStore.customerAuthenticationToken || undefined,
|
|
855
|
+
isCollect: window.Zonos.isCollect,
|
|
837
856
|
itemsAmount: total,
|
|
838
857
|
metadata: [
|
|
839
858
|
{
|
|
@@ -1130,4 +1149,4 @@ stripeStoreOnChange('clientSecret', clientSecret => {
|
|
|
1130
1149
|
sessionStorage.removeItem('zonos--client-secret');
|
|
1131
1150
|
}
|
|
1132
1151
|
});
|
|
1133
|
-
export { initStripeElements, stripeCalculateLandedCost, stripeStore, stripeStoreApplyPromoCode, stripeStoreAsyncAddressUpdate, stripeStoreCleanupDomesticShippingSession, stripeStoreConfirmPayment, stripeStoreGetDomesticShippingSession, stripeStoreGetPaymentIntent, stripeStoreHandleInventoryCheck, stripeStoreHandleInventoryRefund, stripeStoreInitCheckoutSession, stripeStoreMessageBasedOnStatus, stripeStoreOnChange, stripeStorePrefetchLandedCost, stripeStoreRemovePromoCode, stripeStoreReset, stripeStoreResetPromoCode, stripeStoreRetrievePayment, stripeStoreSaveDomesticShippingSession, stripeStoreTranslateAddressToLatin, stripeStoreUpdateCheckoutSession, stripeStoreUpdateCheckoutSessionBaseCurrency, };
|
|
1152
|
+
export { initStripeElements, stripeCalculateLandedCost, stripeStore, stripeStoreApplyPromoCode, stripeStoreAsyncAddressUpdate, stripeStoreBuildAddressForPartyCreate, stripeStoreCleanupDomesticShippingSession, stripeStoreConfirmPayment, stripeStoreGetDomesticShippingSession, stripeStoreGetPaymentIntent, stripeStoreHandleInventoryCheck, stripeStoreHandleInventoryRefund, stripeStoreInitCheckoutSession, stripeStoreMessageBasedOnStatus, stripeStoreOnChange, stripeStorePrefetchLandedCost, stripeStoreRemovePromoCode, stripeStoreReset, stripeStoreResetPromoCode, stripeStoreRetrievePayment, stripeStoreSaveDomesticShippingSession, stripeStoreTranslateAddressToLatin, stripeStoreUpdateCheckoutSession, stripeStoreUpdateCheckoutSessionBaseCurrency, };
|
|
@@ -5,6 +5,9 @@ export const stringsArabic = {
|
|
|
5
5
|
' (Duties prepaid)': {
|
|
6
6
|
value: ' (الرسوم مدفوعة مسبقًا)',
|
|
7
7
|
},
|
|
8
|
+
'A confirmation email with your payment details has been sent for your records. If you have any questions or need support, our team is here to help.': {
|
|
9
|
+
value: 'تم إرسال بريد إلكتروني للتأكيد مع تفاصيل الدفع الخاصة بك لسجلاتك. إذا كان لديك أي أسئلة أو تحتاج إلى دعم، فإن فريقنا هنا للمساعدة.',
|
|
10
|
+
},
|
|
8
11
|
'Above de minimis threshold for': {
|
|
9
12
|
value: 'أعلى من الحد الأدنى لـ',
|
|
10
13
|
},
|
|
@@ -59,6 +62,9 @@ export const stringsArabic = {
|
|
|
59
62
|
'Billing address': {
|
|
60
63
|
value: 'عنوان الفوترة',
|
|
61
64
|
},
|
|
65
|
+
'Billing info': {
|
|
66
|
+
value: 'معلومات الفواتير',
|
|
67
|
+
},
|
|
62
68
|
'By paying in USD, your card will be charged directly with no currency conversion. However, using a non-USD based card may result in additional currency conversion fees at the bank level.': {
|
|
63
69
|
value: 'عند الدفع بالدولار الأمريكي، سيتم خصم المبلغ من بطاقتك مباشرة دون تحويل العملة. ومع ذلك، قد يؤدي استخدام بطاقة غير قائمة على الدولار الأمريكي إلى رسوم إضافية لتحويل العملة على مستوى البنك.',
|
|
64
70
|
},
|
|
@@ -101,6 +107,9 @@ export const stringsArabic = {
|
|
|
101
107
|
'Company name (optional)': {
|
|
102
108
|
value: 'اسم الشركة (اختياري)',
|
|
103
109
|
},
|
|
110
|
+
'Confirmation #:[confirmationId]': {
|
|
111
|
+
value: 'تأكيد #:[confirmationId]',
|
|
112
|
+
},
|
|
104
113
|
Contact: {
|
|
105
114
|
value: 'اتصل بنا',
|
|
106
115
|
},
|
|
@@ -125,6 +134,12 @@ export const stringsArabic = {
|
|
|
125
134
|
'Customer information': {
|
|
126
135
|
value: 'معلومات العميل',
|
|
127
136
|
},
|
|
137
|
+
'Customs fees for your recent purchase from [companyName] are ready for payment': {
|
|
138
|
+
value: 'رسوم الجمارك لشرائك الأخير من [companyName] جاهزة للدفع',
|
|
139
|
+
},
|
|
140
|
+
'Customs fees total': {
|
|
141
|
+
value: 'إجمالي رسوم الجمارك',
|
|
142
|
+
},
|
|
128
143
|
Delivery: {
|
|
129
144
|
value: 'التوصيل',
|
|
130
145
|
},
|
|
@@ -170,6 +185,9 @@ export const stringsArabic = {
|
|
|
170
185
|
'Due to the VOEC tax law, all orders will be assessed at [percentage] VAT regardless of order total.': {
|
|
171
186
|
value: 'بسبب قانون الضرائب VOEC، سيتم تقييم جميع الطلبات بنسبة [percentage] ضريبة القيمة المضافة بغض النظر عن إجمالي الطلب.',
|
|
172
187
|
},
|
|
188
|
+
Duties: {
|
|
189
|
+
value: 'واجبات',
|
|
190
|
+
},
|
|
173
191
|
'Duties and taxes will be applied to items and shipping.': {
|
|
174
192
|
value: 'سيتم تطبيق الرسوم والضرائب على العناصر والشحن.',
|
|
175
193
|
},
|
|
@@ -209,6 +227,9 @@ export const stringsArabic = {
|
|
|
209
227
|
Failure: {
|
|
210
228
|
value: 'فشل',
|
|
211
229
|
},
|
|
230
|
+
Fees: {
|
|
231
|
+
value: 'رسوم',
|
|
232
|
+
},
|
|
212
233
|
'First name': {
|
|
213
234
|
value: 'الاسم الأول',
|
|
214
235
|
},
|
|
@@ -236,6 +257,9 @@ export const stringsArabic = {
|
|
|
236
257
|
'Invalid promo code': {
|
|
237
258
|
value: 'رمز ترويجي غير صالح',
|
|
238
259
|
},
|
|
260
|
+
'Invalid session': {
|
|
261
|
+
value: 'جلسة غير صالحة',
|
|
262
|
+
},
|
|
239
263
|
Island: {
|
|
240
264
|
value: 'جزيرة',
|
|
241
265
|
},
|
|
@@ -308,9 +332,15 @@ export const stringsArabic = {
|
|
|
308
332
|
'Order complete!': {
|
|
309
333
|
value: 'اكتمل الطلب!',
|
|
310
334
|
},
|
|
335
|
+
'Order details': {
|
|
336
|
+
value: 'تفاصيل الطلب',
|
|
337
|
+
},
|
|
311
338
|
'Order total': {
|
|
312
339
|
value: 'إجمالي الطلبية',
|
|
313
340
|
},
|
|
341
|
+
'Ordered from': {
|
|
342
|
+
value: 'تم الطلب من',
|
|
343
|
+
},
|
|
314
344
|
'Orders to [countryName] must be over [threshold] to ship.': {
|
|
315
345
|
value: 'يجب أن تتجاوز الطلبيات إلى [countryName] [threshold] ليتم شحنها.',
|
|
316
346
|
},
|
|
@@ -332,6 +362,9 @@ export const stringsArabic = {
|
|
|
332
362
|
'Payment failed': {
|
|
333
363
|
value: 'فشل الدفع',
|
|
334
364
|
},
|
|
365
|
+
'Payment failed. Please reload the page and try another payment method.': {
|
|
366
|
+
value: 'فشل الدفع. يرجى إعادة تحميل الصفحة وتجربة طريقة دفع أخرى.',
|
|
367
|
+
},
|
|
335
368
|
'Payment failed. Please try another payment method.': {
|
|
336
369
|
value: 'فشل الدفع. يرجى تجربة طريقة دفع أخرى.',
|
|
337
370
|
},
|
|
@@ -452,6 +485,9 @@ export const stringsArabic = {
|
|
|
452
485
|
'Select a language': {
|
|
453
486
|
value: 'اختر لغة',
|
|
454
487
|
},
|
|
488
|
+
'Session does not have valid landed cost. Please contact [organizationName] for assistance.': {
|
|
489
|
+
value: 'الجلسة لا تحتوي على تكلفة هبوط صالحة. يرجى الاتصال بـ [organizationName] للحصول على المساعدة.',
|
|
490
|
+
},
|
|
455
491
|
'Session timed out': {
|
|
456
492
|
value: 'انتهت الجلسة',
|
|
457
493
|
},
|
|
@@ -512,12 +548,18 @@ export const stringsArabic = {
|
|
|
512
548
|
'Street or avenue': {
|
|
513
549
|
value: 'شارع أو جادة',
|
|
514
550
|
},
|
|
551
|
+
Subtotal: {
|
|
552
|
+
value: 'المجموع الفرعي',
|
|
553
|
+
},
|
|
515
554
|
Success: {
|
|
516
555
|
value: 'نجاح',
|
|
517
556
|
},
|
|
518
557
|
'Tax id is required': {
|
|
519
558
|
value: 'مطلوب رقم التعريف الضريبي',
|
|
520
559
|
},
|
|
560
|
+
Taxes: {
|
|
561
|
+
value: 'الضرائب',
|
|
562
|
+
},
|
|
521
563
|
'Taxes and fees': {
|
|
522
564
|
value: 'الضرائب والرسوم',
|
|
523
565
|
},
|
|
@@ -530,6 +572,9 @@ export const stringsArabic = {
|
|
|
530
572
|
'Test mode': {
|
|
531
573
|
value: 'وضع الاختبار',
|
|
532
574
|
},
|
|
575
|
+
'Thank you for submitting your payment. We appreciate your prompt attention.': {
|
|
576
|
+
value: 'شكرًا لتقديم دفعتك. نحن نقدر اهتمامك السريع.',
|
|
577
|
+
},
|
|
533
578
|
'The field is incomplete': {
|
|
534
579
|
value: 'الحقل غير مكتمل',
|
|
535
580
|
},
|
|
@@ -551,6 +596,9 @@ export const stringsArabic = {
|
|
|
551
596
|
'To ensure delivery all address details must be in Latin characters.': {
|
|
552
597
|
value: 'لضمان التوصيل، يجب أن تكون جميع تفاصيل العنوان بأحرف لاتينية.',
|
|
553
598
|
},
|
|
599
|
+
'Total paid': {
|
|
600
|
+
value: 'إجمالي المدفوع',
|
|
601
|
+
},
|
|
554
602
|
Town: {
|
|
555
603
|
value: 'مدينة',
|
|
556
604
|
},
|
|
@@ -584,6 +632,9 @@ export const stringsArabic = {
|
|
|
584
632
|
'Update your address': {
|
|
585
633
|
value: 'قم بتحديث عنوانك',
|
|
586
634
|
},
|
|
635
|
+
'View receipt': {
|
|
636
|
+
value: 'عرض الإيصال',
|
|
637
|
+
},
|
|
587
638
|
Village: {
|
|
588
639
|
value: 'قرية',
|
|
589
640
|
},
|
|
@@ -5,6 +5,9 @@ export const stringsBase = {
|
|
|
5
5
|
' (Duties prepaid)': {
|
|
6
6
|
value: ' (Duties prepaid)',
|
|
7
7
|
},
|
|
8
|
+
'A confirmation email with your payment details has been sent for your records. If you have any questions or need support, our team is here to help.': {
|
|
9
|
+
value: 'A confirmation email with your payment details has been sent for your records. If you have any questions or need support, our team is here to help.',
|
|
10
|
+
},
|
|
8
11
|
'Above de minimis threshold for': {
|
|
9
12
|
value: 'Above de minimis threshold for',
|
|
10
13
|
},
|
|
@@ -59,6 +62,9 @@ export const stringsBase = {
|
|
|
59
62
|
'Billing address': {
|
|
60
63
|
value: 'Billing address',
|
|
61
64
|
},
|
|
65
|
+
'Billing info': {
|
|
66
|
+
value: 'Billing info',
|
|
67
|
+
},
|
|
62
68
|
'By paying in USD, your card will be charged directly with no currency conversion. However, using a non-USD based card may result in additional currency conversion fees at the bank level.': {
|
|
63
69
|
value: 'By paying in USD, your card will be charged directly with no currency conversion. However, using a non-USD based card may result in additional currency conversion fees at the bank level.',
|
|
64
70
|
},
|
|
@@ -102,6 +108,9 @@ export const stringsBase = {
|
|
|
102
108
|
'Company name (optional)': {
|
|
103
109
|
value: 'Company name (optional)',
|
|
104
110
|
},
|
|
111
|
+
'Confirmation #:[confirmationId]': {
|
|
112
|
+
value: 'Confirmation #:[confirmationId]',
|
|
113
|
+
},
|
|
105
114
|
Contact: {
|
|
106
115
|
value: 'Contact',
|
|
107
116
|
},
|
|
@@ -126,6 +135,12 @@ export const stringsBase = {
|
|
|
126
135
|
'Customer information': {
|
|
127
136
|
value: 'Customer information',
|
|
128
137
|
},
|
|
138
|
+
'Customs fees for your recent purchase from [companyName] are ready for payment': {
|
|
139
|
+
value: 'Customs fees for your recent purchase from [companyName] are ready for payment',
|
|
140
|
+
},
|
|
141
|
+
'Customs fees total': {
|
|
142
|
+
value: 'Customs fees total',
|
|
143
|
+
},
|
|
129
144
|
Delivery: {
|
|
130
145
|
value: 'Delivery',
|
|
131
146
|
},
|
|
@@ -171,6 +186,9 @@ export const stringsBase = {
|
|
|
171
186
|
'Due to the VOEC tax law, all orders will be assessed at [percentage] VAT regardless of order total.': {
|
|
172
187
|
value: 'Due to the VOEC tax law, all orders will be assessed at [percentage] VAT regardless of order total.',
|
|
173
188
|
},
|
|
189
|
+
Duties: {
|
|
190
|
+
value: 'Duties',
|
|
191
|
+
},
|
|
174
192
|
'Duties and taxes will be applied to items and shipping.': {
|
|
175
193
|
value: 'Duties and taxes will be applied to items and shipping.',
|
|
176
194
|
},
|
|
@@ -210,6 +228,9 @@ export const stringsBase = {
|
|
|
210
228
|
Failure: {
|
|
211
229
|
value: 'Failure',
|
|
212
230
|
},
|
|
231
|
+
Fees: {
|
|
232
|
+
value: 'Fees',
|
|
233
|
+
},
|
|
213
234
|
'First name': {
|
|
214
235
|
value: 'First name',
|
|
215
236
|
},
|
|
@@ -237,6 +258,9 @@ export const stringsBase = {
|
|
|
237
258
|
'Invalid promo code': {
|
|
238
259
|
value: 'Invalid promo code',
|
|
239
260
|
},
|
|
261
|
+
'Invalid session': {
|
|
262
|
+
value: 'Invalid session',
|
|
263
|
+
},
|
|
240
264
|
Island: {
|
|
241
265
|
value: 'Island',
|
|
242
266
|
},
|
|
@@ -309,9 +333,15 @@ export const stringsBase = {
|
|
|
309
333
|
'Order complete!': {
|
|
310
334
|
value: 'Order complete!',
|
|
311
335
|
},
|
|
336
|
+
'Order details': {
|
|
337
|
+
value: 'Order details',
|
|
338
|
+
},
|
|
312
339
|
'Order total': {
|
|
313
340
|
value: 'Order total',
|
|
314
341
|
},
|
|
342
|
+
'Ordered from': {
|
|
343
|
+
value: 'Ordered from',
|
|
344
|
+
},
|
|
315
345
|
'Orders to [countryName] must be over [threshold] to ship.': {
|
|
316
346
|
value: 'Orders to [countryName] must be over [threshold] to ship.',
|
|
317
347
|
},
|
|
@@ -333,6 +363,9 @@ export const stringsBase = {
|
|
|
333
363
|
'Payment failed': {
|
|
334
364
|
value: 'Payment failed',
|
|
335
365
|
},
|
|
366
|
+
'Payment failed. Please reload the page and try another payment method.': {
|
|
367
|
+
value: 'Payment failed. Please reload the page and try another payment method.',
|
|
368
|
+
},
|
|
336
369
|
'Payment failed. Please try another payment method.': {
|
|
337
370
|
value: 'Payment failed. Please try another payment method.',
|
|
338
371
|
},
|
|
@@ -453,6 +486,9 @@ export const stringsBase = {
|
|
|
453
486
|
'Select a language': {
|
|
454
487
|
value: 'Select a language',
|
|
455
488
|
},
|
|
489
|
+
'Session does not have valid landed cost. Please contact [organizationName] for assistance.': {
|
|
490
|
+
value: 'Session does not have valid landed cost. Please contact [organizationName] for assistance.',
|
|
491
|
+
},
|
|
456
492
|
'Session timed out': {
|
|
457
493
|
value: 'Session timed out',
|
|
458
494
|
},
|
|
@@ -513,12 +549,18 @@ export const stringsBase = {
|
|
|
513
549
|
'Street or avenue': {
|
|
514
550
|
value: 'Street or avenue',
|
|
515
551
|
},
|
|
552
|
+
Subtotal: {
|
|
553
|
+
value: 'Subtotal',
|
|
554
|
+
},
|
|
516
555
|
Success: {
|
|
517
556
|
value: 'Success',
|
|
518
557
|
},
|
|
519
558
|
'Tax id is required': {
|
|
520
559
|
value: 'Tax id is required',
|
|
521
560
|
},
|
|
561
|
+
Taxes: {
|
|
562
|
+
value: 'Taxes',
|
|
563
|
+
},
|
|
522
564
|
'Taxes and fees': {
|
|
523
565
|
value: 'Taxes and fees',
|
|
524
566
|
},
|
|
@@ -531,6 +573,9 @@ export const stringsBase = {
|
|
|
531
573
|
'Test mode': {
|
|
532
574
|
value: 'Test mode',
|
|
533
575
|
},
|
|
576
|
+
'Thank you for submitting your payment. We appreciate your prompt attention.': {
|
|
577
|
+
value: 'Thank you for submitting your payment. We appreciate your prompt attention.',
|
|
578
|
+
},
|
|
534
579
|
'The field is incomplete': {
|
|
535
580
|
value: 'The field is incomplete',
|
|
536
581
|
},
|
|
@@ -552,6 +597,9 @@ export const stringsBase = {
|
|
|
552
597
|
'To ensure delivery all address details must be in Latin characters.': {
|
|
553
598
|
value: 'To ensure delivery all address details must be in Latin characters.',
|
|
554
599
|
},
|
|
600
|
+
'Total paid': {
|
|
601
|
+
value: 'Total paid',
|
|
602
|
+
},
|
|
555
603
|
Town: {
|
|
556
604
|
value: 'Town',
|
|
557
605
|
},
|
|
@@ -585,6 +633,9 @@ export const stringsBase = {
|
|
|
585
633
|
'Update your address': {
|
|
586
634
|
value: 'Update your address',
|
|
587
635
|
},
|
|
636
|
+
'View receipt': {
|
|
637
|
+
value: 'View receipt',
|
|
638
|
+
},
|
|
588
639
|
Village: {
|
|
589
640
|
value: 'Village',
|
|
590
641
|
},
|