@zonos/elements 1.3.38 → 1.3.40
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-c7212410.js → cart-775440b7.js} +240 -7
- package/dist/cjs/{getBorderRadius-074b46ef.js → getBorderRadius-9ae7890c.js} +1 -1
- package/dist/cjs/{index-b071017b.js → index-ef8b2c76.js} +234 -167
- package/dist/cjs/index.cjs.js +10 -4
- package/dist/cjs/{isDarkColor-371a3b1a.js → isDarkColor-5f56770b.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/paypal-25c84e33.js +461 -0
- package/dist/cjs/{submitGtag-7a679d92.js → sendErrorLog-7818b288.js} +2 -19
- package/dist/cjs/zonos-address_8.cjs.entry.js +8 -8
- package/dist/cjs/zonos-badge_2.cjs.entry.js +2 -2
- package/dist/cjs/zonos-banner.cjs.entry.js +2 -2
- package/dist/cjs/zonos-button_3.cjs.entry.js +4 -4
- package/dist/cjs/zonos-card.cjs.entry.js +3 -3
- package/dist/cjs/zonos-cart-items_12.cjs.entry.js +73 -35
- package/dist/cjs/zonos-checkout.cjs.entry.js +50 -70
- package/dist/cjs/zonos-component.cjs.entry.js +1 -1
- package/dist/cjs/zonos-controller.cjs.entry.js +15 -15
- package/dist/cjs/zonos-country-flag.cjs.entry.js +5 -5
- package/dist/cjs/zonos-country-select_3.cjs.entry.js +5 -5
- package/dist/cjs/zonos-elements.cjs.js +3 -3
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +5 -5
- package/dist/cjs/zonos-hello.cjs.entry.js +5 -5
- package/dist/cjs/zonos-input.cjs.entry.js +3 -3
- 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_2.cjs.entry.js → zonos-notification_3.cjs.entry.js} +59 -7
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +3 -3
- package/dist/cjs/zonos-text.cjs.entry.js +2 -2
- package/dist/cjs/zonos-v-stack.cjs.entry.js +2 -2
- package/dist/cjs/{zonosStore-4c6c85da.js → zonosStore-b6c72408.js} +5 -1
- package/dist/collection/__tests__/build-utils/urlCheckOne.js +3 -1
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-update-dialog.css +1 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +39 -8
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.css +1 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.css +7 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +37 -22
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.css +3 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +37 -60
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.css +1 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.css +1 -0
- package/dist/collection/components/main/zonos-controller.js +22 -8
- package/dist/collection/components/paypal/zonos-paypal-payment.css +37 -0
- package/dist/collection/components/paypal/zonos-paypal-payment.js +92 -0
- package/dist/collection/components/store/checkout/cart.js +26 -1
- package/dist/collection/components/store/checkout/paypal.js +219 -0
- package/dist/collection/components/store/checkout/stripe.js +16 -4
- package/dist/collection/components/store/translationStore/strings.arabic.js +9 -0
- package/dist/collection/components/store/translationStore/strings.base.js +9 -0
- package/dist/collection/components/store/translationStore/strings.chinese.js +9 -0
- package/dist/collection/components/store/translationStore/strings.danish.js +9 -0
- package/dist/collection/components/store/translationStore/strings.dutch.js +9 -0
- package/dist/collection/components/store/translationStore/strings.french.js +9 -0
- package/dist/collection/components/store/translationStore/strings.german.js +9 -0
- package/dist/collection/components/store/translationStore/strings.hebrew.js +9 -0
- package/dist/collection/components/store/translationStore/strings.indonesian.js +9 -0
- package/dist/collection/components/store/translationStore/strings.italian.js +9 -0
- package/dist/collection/components/store/translationStore/strings.japanese.js +9 -0
- package/dist/collection/components/store/translationStore/strings.korean.js +9 -0
- package/dist/collection/components/store/translationStore/strings.norwegian.js +9 -0
- package/dist/collection/components/store/translationStore/strings.polish.js +9 -0
- package/dist/collection/components/store/translationStore/strings.portuguese.js +9 -0
- package/dist/collection/components/store/translationStore/strings.russian.js +9 -0
- package/dist/collection/components/store/translationStore/strings.spanish.js +9 -0
- package/dist/collection/components/store/translationStore/strings.swedish.js +9 -0
- package/dist/collection/components/store/translationStore/strings.turkish.js +9 -0
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +9 -0
- package/dist/collection/components/store/zonosStore.js +4 -0
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +2 -2
- package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +1 -1
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +2 -3
- package/dist/collection/components/utils/api/getZonosSettings.js +3 -3
- package/dist/collection/components/utils/api/paypalCaptureOrder.js +8 -0
- package/dist/collection/components/utils/api/paypalCreateOrder.js +8 -0
- package/dist/collection/components/utils/getContrastColor.js +6 -2
- package/dist/collection/components/utils/handleFetch.js +6 -1
- package/dist/collection/components/utils/isContrastColor.js +7 -0
- package/dist/collection/environment.js +4 -5
- package/dist/collection/scripts/_getZonosQaUrl.js +4 -0
- package/dist/collection/scripts/_zonosBase.js +2 -0
- package/dist/collection/styles/stripe/addressRuleStyle.js +6 -0
- package/dist/collection/types/generated/graphql.customer.types.js +35 -0
- package/dist/esm/{cart-eb75b113.js → cart-e9cd8286.js} +236 -8
- package/dist/esm/{getBorderRadius-947c24de.js → getBorderRadius-3c75c4c1.js} +1 -1
- package/dist/esm/{index-3b46f3c3.js → index-5a37ccde.js} +234 -167
- package/dist/esm/index.js +10 -4
- package/dist/esm/{isDarkColor-f8324c10.js → isDarkColor-3eb31a6d.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/paypal-da2b3db1.js +453 -0
- package/dist/esm/{submitGtag-0bc0baa0.js → sendErrorLog-2fcf78a2.js} +3 -19
- package/dist/esm/zonos-address_8.entry.js +8 -8
- package/dist/esm/zonos-badge_2.entry.js +2 -2
- package/dist/esm/zonos-banner.entry.js +2 -2
- package/dist/esm/zonos-button_3.entry.js +4 -4
- package/dist/esm/zonos-card.entry.js +3 -3
- package/dist/esm/zonos-cart-items_12.entry.js +60 -22
- package/dist/esm/zonos-checkout.entry.js +41 -61
- package/dist/esm/zonos-component.entry.js +1 -1
- package/dist/esm/zonos-controller.entry.js +15 -15
- package/dist/esm/zonos-country-flag.entry.js +5 -5
- package/dist/esm/zonos-country-select_3.entry.js +5 -5
- package/dist/esm/zonos-elements.js +4 -4
- package/dist/esm/zonos-hello-dialog.entry.js +5 -5
- package/dist/esm/zonos-hello.entry.js +5 -5
- package/dist/esm/zonos-input.entry.js +3 -3
- 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_2.entry.js → zonos-notification_3.entry.js} +60 -9
- package/dist/esm/zonos-shipping-rich-radio.entry.js +3 -3
- package/dist/esm/zonos-text.entry.js +2 -2
- package/dist/esm/zonos-v-stack.entry.js +2 -2
- package/dist/esm/{zonosStore-ba9e541e.js → zonosStore-425abc1b.js} +5 -1
- package/dist/esm-es5/cart-e9cd8286.js +1 -0
- package/dist/esm-es5/{getBorderRadius-947c24de.js → getBorderRadius-3c75c4c1.js} +1 -1
- package/dist/esm-es5/index-5a37ccde.js +2 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{isDarkColor-f8324c10.js → isDarkColor-3eb31a6d.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/paypal-da2b3db1.js +17 -0
- package/dist/esm-es5/sendErrorLog-2fcf78a2.js +1 -0
- package/dist/esm-es5/zonos-address_8.entry.js +1 -1
- package/dist/esm-es5/zonos-badge_2.entry.js +1 -1
- package/dist/esm-es5/zonos-banner.entry.js +1 -1
- package/dist/esm-es5/zonos-button_3.entry.js +1 -1
- package/dist/esm-es5/zonos-card.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
- 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_3.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 -0
- package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
- package/dist/esm-es5/zonos-text.entry.js +1 -1
- package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
- package/dist/esm-es5/{zonosStore-ba9e541e.js → zonosStore-425abc1b.js} +1 -1
- package/dist/scripts/index.d.ts +91 -6
- package/dist/scripts/index.js +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.d.ts +2 -1
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.d.ts +8 -4
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +1 -20
- package/dist/types/components/main/zonos-controller.d.ts +6 -0
- package/dist/types/components/paypal/zonos-paypal-payment.d.ts +17 -0
- package/dist/types/components/store/checkout/cart.d.ts +19 -1
- package/dist/types/components/store/checkout/paypal.d.ts +28 -0
- package/dist/types/components/store/checkout/stripe.d.ts +10 -1
- 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/store/zonosStore.d.ts +4 -0
- package/dist/types/components/utils/api/getZonosSettings.d.ts +2 -0
- package/dist/types/components/utils/api/paypalCaptureOrder.d.ts +10 -0
- package/dist/types/components/utils/api/paypalCreateOrder.d.ts +9 -0
- package/dist/types/components/utils/handleFetch.d.ts +4 -0
- package/dist/types/components/utils/isContrastColor.d.ts +4 -0
- package/dist/types/components.d.ts +50 -6
- package/dist/types/scripts/_zonosBase.d.ts +9 -1
- package/dist/types/stencil-public-runtime.d.ts +3 -10
- package/dist/types/types/checkout/CheckoutConfig.d.ts +14 -1
- package/dist/types/types/generated/graphql.customer.types.d.ts +71 -11
- package/dist/types/types/generated/graphql.customer.types.ts +103 -11
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-ed333de6.system.entry.js → p-01bd2187.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-f06bb776.system.entry.js → p-14b53e8f.system.entry.js} +1 -1
- package/dist/zonos-elements/p-15ecad81.entry.js +1 -0
- package/dist/zonos-elements/p-1b499bcc.system.js +1 -0
- package/dist/zonos-elements/{p-d2992457.system.entry.js → p-1daa3b1e.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-085548f2.entry.js → p-1debb7b2.entry.js} +1 -1
- package/dist/zonos-elements/{p-9de374a7.system.entry.js → p-2bfb5e4b.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-01304a58.system.entry.js → p-2c03ac78.system.entry.js} +1 -1
- package/dist/zonos-elements/p-3447ef24.system.js +17 -0
- package/dist/zonos-elements/{p-699a5376.entry.js → p-3496183d.entry.js} +1 -1
- package/dist/zonos-elements/{p-59f37de3.entry.js → p-36df9785.entry.js} +1 -1
- package/dist/zonos-elements/p-3996d025.system.js +1 -0
- package/dist/zonos-elements/p-3b6a7200.entry.js +1 -0
- package/dist/zonos-elements/p-3d98f422.system.entry.js +1 -0
- package/dist/zonos-elements/{p-31b3d26b.js → p-3da1bc42.js} +1 -1
- package/dist/zonos-elements/{p-a21ec316.system.entry.js → p-445fb353.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-3541e6dd.entry.js → p-54101ed6.entry.js} +1 -1
- package/dist/zonos-elements/p-54971a77.system.js +1 -0
- package/dist/zonos-elements/{p-c0fcc0fa.system.entry.js → p-5a5d1a12.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c21802e9.entry.js → p-5e55dcbc.entry.js} +1 -1
- package/dist/zonos-elements/{p-71882ac9.system.entry.js → p-5f68f356.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-73ba4398.system.entry.js → p-61842b4f.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-3523c3b4.entry.js → p-657be9e9.entry.js} +1 -1
- package/dist/zonos-elements/p-6897be29.entry.js +1 -0
- package/dist/zonos-elements/{p-3f5e2e5c.system.entry.js → p-6f39051c.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-966ab4e7.system.entry.js → p-70b024ad.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-22882fd6.entry.js → p-71037fe5.entry.js} +1 -1
- package/dist/zonos-elements/p-7dd54a63.entry.js +1 -0
- package/dist/zonos-elements/{p-e3c014ae.entry.js → p-7f96d3b4.entry.js} +1 -1
- package/dist/zonos-elements/p-800db524.system.js +1 -0
- package/dist/zonos-elements/{p-9a1c0d02.js → p-890f5788.js} +1 -1
- package/dist/zonos-elements/{p-62ed4236.entry.js → p-8d149b99.entry.js} +1 -1
- package/dist/zonos-elements/p-916adba7.entry.js +1 -0
- package/dist/zonos-elements/{p-5821856c.js → p-92bebe7a.js} +1 -1
- package/dist/zonos-elements/p-94279862.system.js +1 -0
- package/dist/zonos-elements/{p-b903af96.system.entry.js → p-97dadd90.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-e37440ad.system.js → p-b2007124.system.js} +1 -1
- package/dist/zonos-elements/p-b55b557a.system.js +2 -0
- package/dist/zonos-elements/{p-18b28104.entry.js → p-bfa5ec2b.entry.js} +1 -1
- package/dist/zonos-elements/p-c55a5fe4.system.entry.js +1 -0
- package/dist/zonos-elements/p-c5a5512a.system.entry.js +1 -0
- package/dist/zonos-elements/p-c87113fb.system.entry.js +1 -0
- package/dist/zonos-elements/p-ca58f16e.system.entry.js +1 -0
- package/dist/zonos-elements/{p-6c3390b7.entry.js → p-d46fa40a.entry.js} +1 -1
- package/dist/zonos-elements/p-d6135575.js +1 -0
- package/dist/zonos-elements/p-d95cb86a.system.js +1 -0
- package/dist/zonos-elements/{p-d8c1eb99.entry.js → p-d9d5ee2f.entry.js} +1 -1
- package/dist/zonos-elements/{p-2a45c837.system.entry.js → p-da15b587.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-8acdf43b.system.entry.js → p-dc6a17fe.system.entry.js} +1 -1
- package/dist/zonos-elements/p-dd61b7a0.js +2 -0
- package/dist/zonos-elements/p-e252d86f.entry.js +1 -0
- package/dist/zonos-elements/{p-da2e5289.system.entry.js → p-e6efc2e1.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-63a27875.entry.js → p-efdc7748.entry.js} +1 -1
- package/dist/zonos-elements/{p-2aa72606.entry.js → p-f643035f.entry.js} +1 -1
- package/dist/zonos-elements/p-f98f7066.js +17 -0
- package/dist/zonos-elements/{p-9d29f3f4.system.entry.js → p-fa02dd07.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c3619b3d.entry.js → p-fa95c3dc.entry.js} +1 -1
- package/dist/zonos-elements/p-fb63bd03.js +1 -0
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/dist/zonos-elements/zonos-elements.js +1 -1
- package/loader/cdn.js +1 -2
- package/loader/index.cjs.js +1 -2
- package/loader/index.d.ts +3 -0
- package/loader/index.es2017.js +1 -2
- package/loader/index.js +1 -2
- package/package.json +12 -11
- package/dist/esm-es5/cart-eb75b113.js +0 -1
- package/dist/esm-es5/index-3b46f3c3.js +0 -2
- package/dist/esm-es5/submitGtag-0bc0baa0.js +0 -1
- package/dist/esm-es5/zonos-notification_2.entry.js +0 -1
- package/dist/zonos-elements/p-02405211.system.entry.js +0 -1
- package/dist/zonos-elements/p-0b538ed4.system.js +0 -1
- package/dist/zonos-elements/p-357322ea.system.entry.js +0 -1
- package/dist/zonos-elements/p-467f934c.system.entry.js +0 -1
- package/dist/zonos-elements/p-53acc999.js +0 -1
- package/dist/zonos-elements/p-548ac127.entry.js +0 -1
- package/dist/zonos-elements/p-5609876a.system.entry.js +0 -1
- package/dist/zonos-elements/p-57617755.entry.js +0 -1
- package/dist/zonos-elements/p-6f9448bb.entry.js +0 -1
- package/dist/zonos-elements/p-70262120.system.js +0 -1
- package/dist/zonos-elements/p-878293fe.js +0 -1
- package/dist/zonos-elements/p-a8b934c2.entry.js +0 -1
- package/dist/zonos-elements/p-a8cb25de.system.js +0 -1
- package/dist/zonos-elements/p-abe8ea12.system.js +0 -1
- package/dist/zonos-elements/p-ad37d20e.system.js +0 -1
- package/dist/zonos-elements/p-ae04d3ff.entry.js +0 -1
- package/dist/zonos-elements/p-b684f8aa.system.entry.js +0 -1
- package/dist/zonos-elements/p-ce347974.js +0 -2
- package/dist/zonos-elements/p-d99232c5.system.js +0 -2
- package/dist/zonos-elements/p-e0bf9666.system.js +0 -1
- package/dist/zonos-elements/p-e1db1bc9.entry.js +0 -1
|
@@ -72,6 +72,9 @@ export declare const accountingFeeType: {
|
|
|
72
72
|
readonly Item: "ITEM";
|
|
73
73
|
readonly LandedCostGuarantee: "LANDED_COST_GUARANTEE";
|
|
74
74
|
readonly MerchantProcessing: "MERCHANT_PROCESSING";
|
|
75
|
+
readonly PaypalCancel: "PAYPAL_CANCEL";
|
|
76
|
+
readonly PaypalOrder: "PAYPAL_ORDER";
|
|
77
|
+
readonly PaypalRefund: "PAYPAL_REFUND";
|
|
75
78
|
readonly Shipping: "SHIPPING";
|
|
76
79
|
readonly Transaction: "TRANSACTION";
|
|
77
80
|
};
|
|
@@ -373,6 +376,13 @@ export declare const checkoutVisibilityStatus: {
|
|
|
373
376
|
readonly Enabled: "ENABLED";
|
|
374
377
|
};
|
|
375
378
|
export type CheckoutVisibilityStatus = (typeof checkoutVisibilityStatus)[keyof typeof checkoutVisibilityStatus];
|
|
379
|
+
export declare const classificationBulkExportJobStatus: {
|
|
380
|
+
readonly Completed: "COMPLETED";
|
|
381
|
+
readonly Error: "ERROR";
|
|
382
|
+
readonly Initialized: "INITIALIZED";
|
|
383
|
+
readonly Processing: "PROCESSING";
|
|
384
|
+
};
|
|
385
|
+
export type ClassificationBulkExportJobStatus = (typeof classificationBulkExportJobStatus)[keyof typeof classificationBulkExportJobStatus];
|
|
376
386
|
export declare const classificationBulkJobStatus: {
|
|
377
387
|
readonly Classified: "CLASSIFIED";
|
|
378
388
|
readonly Completed: "COMPLETED";
|
|
@@ -443,6 +453,12 @@ export declare const collectUploadStatus: {
|
|
|
443
453
|
readonly SucceededWithErrors: "SUCCEEDED_WITH_ERRORS";
|
|
444
454
|
};
|
|
445
455
|
export type CollectUploadStatus = (typeof collectUploadStatus)[keyof typeof collectUploadStatus];
|
|
456
|
+
export declare const commercialInvoiceImageCarrier: {
|
|
457
|
+
readonly Dhl: "DHL";
|
|
458
|
+
readonly Fedex: "FEDEX";
|
|
459
|
+
readonly Ups: "UPS";
|
|
460
|
+
};
|
|
461
|
+
export type CommercialInvoiceImageCarrier = (typeof commercialInvoiceImageCarrier)[keyof typeof commercialInvoiceImageCarrier];
|
|
446
462
|
export declare const confidenceScoreDisplayStatus: {
|
|
447
463
|
readonly Disabled: "DISABLED";
|
|
448
464
|
readonly Enabled: "ENABLED";
|
|
@@ -1340,7 +1356,17 @@ export declare const exportJobStatus: {
|
|
|
1340
1356
|
readonly Processing: "PROCESSING";
|
|
1341
1357
|
};
|
|
1342
1358
|
export type ExportJobStatus = (typeof exportJobStatus)[keyof typeof exportJobStatus];
|
|
1359
|
+
export declare const externalPaymentMethodStatus: {
|
|
1360
|
+
readonly Disabled: "DISABLED";
|
|
1361
|
+
readonly Enabled: "ENABLED";
|
|
1362
|
+
};
|
|
1363
|
+
export type ExternalPaymentMethodStatus = (typeof externalPaymentMethodStatus)[keyof typeof externalPaymentMethodStatus];
|
|
1364
|
+
export declare const externalPaymentMethodType: {
|
|
1365
|
+
readonly Paypal: "PAYPAL";
|
|
1366
|
+
};
|
|
1367
|
+
export type ExternalPaymentMethodType = (typeof externalPaymentMethodType)[keyof typeof externalPaymentMethodType];
|
|
1343
1368
|
export declare const externalServiceTokenType: {
|
|
1369
|
+
readonly PaypalClientId: "PAYPAL_CLIENT_ID";
|
|
1344
1370
|
readonly StripePublishableToken: "STRIPE_PUBLISHABLE_TOKEN";
|
|
1345
1371
|
};
|
|
1346
1372
|
export type ExternalServiceTokenType = (typeof externalServiceTokenType)[keyof typeof externalServiceTokenType];
|
|
@@ -2064,6 +2090,7 @@ export declare const partyType: {
|
|
|
2064
2090
|
};
|
|
2065
2091
|
export type PartyType = (typeof partyType)[keyof typeof partyType];
|
|
2066
2092
|
export declare const paymentProcessorCode: {
|
|
2093
|
+
readonly Paypal: "PAYPAL";
|
|
2067
2094
|
readonly Stripe: "STRIPE";
|
|
2068
2095
|
};
|
|
2069
2096
|
export type PaymentProcessorCode = (typeof paymentProcessorCode)[keyof typeof paymentProcessorCode];
|
|
@@ -2072,6 +2099,12 @@ export declare const paymentType: {
|
|
|
2072
2099
|
readonly UsBankAccount: "US_BANK_ACCOUNT";
|
|
2073
2100
|
};
|
|
2074
2101
|
export type PaymentType = (typeof paymentType)[keyof typeof paymentType];
|
|
2102
|
+
export declare const paypalMockResponse: {
|
|
2103
|
+
readonly InstrumentDeclined: "INSTRUMENT_DECLINED";
|
|
2104
|
+
readonly InternalServerError: "INTERNAL_SERVER_ERROR";
|
|
2105
|
+
readonly TransactionRefused: "TRANSACTION_REFUSED";
|
|
2106
|
+
};
|
|
2107
|
+
export type PaypalMockResponse = (typeof paypalMockResponse)[keyof typeof paypalMockResponse];
|
|
2075
2108
|
export declare const pddpAmountType: {
|
|
2076
2109
|
readonly FlcTotalCost: "FLC_TOTAL_COST";
|
|
2077
2110
|
readonly InsuredValue: "INSURED_VALUE";
|
|
@@ -2388,6 +2421,7 @@ export declare const taxMethodType: {
|
|
|
2388
2421
|
readonly Consignment: "CONSIGNMENT";
|
|
2389
2422
|
readonly Default: "DEFAULT";
|
|
2390
2423
|
readonly Domestic: "DOMESTIC";
|
|
2424
|
+
readonly DomesticLcg: "DOMESTIC_LCG";
|
|
2391
2425
|
readonly SellerOfRecord: "SELLER_OF_RECORD";
|
|
2392
2426
|
};
|
|
2393
2427
|
export type TaxMethodType = (typeof taxMethodType)[keyof typeof taxMethodType];
|
|
@@ -2719,6 +2753,13 @@ export type FulfillmentCenterQuery = {
|
|
|
2719
2753
|
type: FulfillmentCenterType;
|
|
2720
2754
|
}> | null;
|
|
2721
2755
|
};
|
|
2756
|
+
export type PaypalOrderCaptureMutation = {
|
|
2757
|
+
paypalOrderCapture: {
|
|
2758
|
+
order: {
|
|
2759
|
+
id: string;
|
|
2760
|
+
} | null;
|
|
2761
|
+
};
|
|
2762
|
+
};
|
|
2722
2763
|
export type CheckItemRestrictionsMutation = {
|
|
2723
2764
|
itemRestrictionApply: {
|
|
2724
2765
|
id: string;
|
|
@@ -2844,6 +2885,11 @@ export type CheckoutDetailsFragment = {
|
|
|
2844
2885
|
total: number;
|
|
2845
2886
|
};
|
|
2846
2887
|
};
|
|
2888
|
+
export type PaypalOrderCreateMutation = {
|
|
2889
|
+
paypalOrderCreate: {
|
|
2890
|
+
paypalOrderId: string | null;
|
|
2891
|
+
};
|
|
2892
|
+
};
|
|
2847
2893
|
export type ExchangeRateCreateMutation = {
|
|
2848
2894
|
exchangeRateCreate: {
|
|
2849
2895
|
expiresAt: string;
|
|
@@ -3002,7 +3048,14 @@ export type ZonosSettingsQuery = {
|
|
|
3002
3048
|
}>;
|
|
3003
3049
|
createdAt: string;
|
|
3004
3050
|
createdBy: string;
|
|
3005
|
-
|
|
3051
|
+
externalPaymentMethods: Array<{
|
|
3052
|
+
status: ExternalPaymentMethodStatus;
|
|
3053
|
+
type: ExternalPaymentMethodType;
|
|
3054
|
+
}> | null;
|
|
3055
|
+
externalServiceTokens: Array<{
|
|
3056
|
+
token: string;
|
|
3057
|
+
type: ExternalServiceTokenType;
|
|
3058
|
+
}>;
|
|
3006
3059
|
id: string;
|
|
3007
3060
|
mode: Mode;
|
|
3008
3061
|
orderNotifications: {
|
|
@@ -3029,13 +3082,10 @@ export type ZonosSettingsQuery = {
|
|
|
3029
3082
|
};
|
|
3030
3083
|
organization: string;
|
|
3031
3084
|
placeOrderButtonSelector: string | null;
|
|
3032
|
-
|
|
3085
|
+
status: CheckoutStatus;
|
|
3033
3086
|
subscriptionStatus: CheckoutSubscriptionStatus;
|
|
3034
3087
|
successBehavior: CheckoutSuccessBehavior;
|
|
3035
|
-
|
|
3036
|
-
token: string;
|
|
3037
|
-
type: ExternalServiceTokenType;
|
|
3038
|
-
}>;
|
|
3088
|
+
successRedirectUrl: string;
|
|
3039
3089
|
updatedAt: string;
|
|
3040
3090
|
updatedBy: string;
|
|
3041
3091
|
visibilityStatus: CheckoutVisibilityStatus;
|
|
@@ -3087,7 +3137,14 @@ export type CheckoutSettingFragment = {
|
|
|
3087
3137
|
}>;
|
|
3088
3138
|
createdAt: string;
|
|
3089
3139
|
createdBy: string;
|
|
3090
|
-
|
|
3140
|
+
externalPaymentMethods: Array<{
|
|
3141
|
+
status: ExternalPaymentMethodStatus;
|
|
3142
|
+
type: ExternalPaymentMethodType;
|
|
3143
|
+
}> | null;
|
|
3144
|
+
externalServiceTokens: Array<{
|
|
3145
|
+
token: string;
|
|
3146
|
+
type: ExternalServiceTokenType;
|
|
3147
|
+
}>;
|
|
3091
3148
|
id: string;
|
|
3092
3149
|
mode: Mode;
|
|
3093
3150
|
orderNotifications: {
|
|
@@ -3117,10 +3174,7 @@ export type CheckoutSettingFragment = {
|
|
|
3117
3174
|
status: CheckoutStatus;
|
|
3118
3175
|
subscriptionStatus: CheckoutSubscriptionStatus;
|
|
3119
3176
|
successBehavior: CheckoutSuccessBehavior;
|
|
3120
|
-
|
|
3121
|
-
token: string;
|
|
3122
|
-
type: ExternalServiceTokenType;
|
|
3123
|
-
}>;
|
|
3177
|
+
successRedirectUrl: string;
|
|
3124
3178
|
updatedAt: string;
|
|
3125
3179
|
updatedBy: string;
|
|
3126
3180
|
visibilityStatus: CheckoutVisibilityStatus;
|
|
@@ -3420,6 +3474,12 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
|
|
|
3420
3474
|
orderUpdateAccountOrderNumber(variables?: {
|
|
3421
3475
|
[x: string]: never;
|
|
3422
3476
|
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<OrderUpdateAccountOrderNumberMutation>;
|
|
3477
|
+
paypalOrderCapture(variables?: {
|
|
3478
|
+
[x: string]: never;
|
|
3479
|
+
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<PaypalOrderCaptureMutation>;
|
|
3480
|
+
paypalOrderCreate(variables?: {
|
|
3481
|
+
[x: string]: never;
|
|
3482
|
+
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<PaypalOrderCreateMutation>;
|
|
3423
3483
|
removeTrackingNumber(variables?: {
|
|
3424
3484
|
[x: string]: never;
|
|
3425
3485
|
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<RemoveTrackingNumberMutation>;
|
|
@@ -48,6 +48,9 @@ export const accountingFeeType = {
|
|
|
48
48
|
Item: 'ITEM',
|
|
49
49
|
LandedCostGuarantee: 'LANDED_COST_GUARANTEE',
|
|
50
50
|
MerchantProcessing: 'MERCHANT_PROCESSING',
|
|
51
|
+
PaypalCancel: 'PAYPAL_CANCEL',
|
|
52
|
+
PaypalOrder: 'PAYPAL_ORDER',
|
|
53
|
+
PaypalRefund: 'PAYPAL_REFUND',
|
|
51
54
|
Shipping: 'SHIPPING',
|
|
52
55
|
Transaction: 'TRANSACTION',
|
|
53
56
|
} as const;
|
|
@@ -465,6 +468,15 @@ export const checkoutVisibilityStatus = {
|
|
|
465
468
|
|
|
466
469
|
export type CheckoutVisibilityStatus =
|
|
467
470
|
(typeof checkoutVisibilityStatus)[keyof typeof checkoutVisibilityStatus];
|
|
471
|
+
export const classificationBulkExportJobStatus = {
|
|
472
|
+
Completed: 'COMPLETED',
|
|
473
|
+
Error: 'ERROR',
|
|
474
|
+
Initialized: 'INITIALIZED',
|
|
475
|
+
Processing: 'PROCESSING',
|
|
476
|
+
} as const;
|
|
477
|
+
|
|
478
|
+
export type ClassificationBulkExportJobStatus =
|
|
479
|
+
(typeof classificationBulkExportJobStatus)[keyof typeof classificationBulkExportJobStatus];
|
|
468
480
|
|
|
469
481
|
export const classificationBulkJobStatus = {
|
|
470
482
|
Classified: 'CLASSIFIED',
|
|
@@ -562,6 +574,14 @@ export const collectUploadStatus = {
|
|
|
562
574
|
|
|
563
575
|
export type CollectUploadStatus =
|
|
564
576
|
(typeof collectUploadStatus)[keyof typeof collectUploadStatus];
|
|
577
|
+
export const commercialInvoiceImageCarrier = {
|
|
578
|
+
Dhl: 'DHL',
|
|
579
|
+
Fedex: 'FEDEX',
|
|
580
|
+
Ups: 'UPS',
|
|
581
|
+
} as const;
|
|
582
|
+
|
|
583
|
+
export type CommercialInvoiceImageCarrier =
|
|
584
|
+
(typeof commercialInvoiceImageCarrier)[keyof typeof commercialInvoiceImageCarrier];
|
|
565
585
|
|
|
566
586
|
export const confidenceScoreDisplayStatus = {
|
|
567
587
|
Disabled: 'DISABLED',
|
|
@@ -1548,7 +1568,22 @@ export const exportJobStatus = {
|
|
|
1548
1568
|
export type ExportJobStatus =
|
|
1549
1569
|
(typeof exportJobStatus)[keyof typeof exportJobStatus];
|
|
1550
1570
|
|
|
1571
|
+
export const externalPaymentMethodStatus = {
|
|
1572
|
+
Disabled: 'DISABLED',
|
|
1573
|
+
Enabled: 'ENABLED',
|
|
1574
|
+
} as const;
|
|
1575
|
+
|
|
1576
|
+
export type ExternalPaymentMethodStatus =
|
|
1577
|
+
(typeof externalPaymentMethodStatus)[keyof typeof externalPaymentMethodStatus];
|
|
1578
|
+
export const externalPaymentMethodType = {
|
|
1579
|
+
Paypal: 'PAYPAL',
|
|
1580
|
+
} as const;
|
|
1581
|
+
|
|
1582
|
+
export type ExternalPaymentMethodType =
|
|
1583
|
+
(typeof externalPaymentMethodType)[keyof typeof externalPaymentMethodType];
|
|
1584
|
+
|
|
1551
1585
|
export const externalServiceTokenType = {
|
|
1586
|
+
PaypalClientId: 'PAYPAL_CLIENT_ID',
|
|
1552
1587
|
StripePublishableToken: 'STRIPE_PUBLISHABLE_TOKEN',
|
|
1553
1588
|
} as const;
|
|
1554
1589
|
|
|
@@ -2358,6 +2393,7 @@ export const orderStatus = {
|
|
|
2358
2393
|
} as const;
|
|
2359
2394
|
|
|
2360
2395
|
export type OrderStatus = (typeof orderStatus)[keyof typeof orderStatus];
|
|
2396
|
+
|
|
2361
2397
|
export const orderTransactionBillingMethod = {
|
|
2362
2398
|
BillingDgs: 'BILLING_DGS',
|
|
2363
2399
|
Legacy: 'LEGACY',
|
|
@@ -2471,17 +2507,28 @@ export const partyType = {
|
|
|
2471
2507
|
export type PartyType = (typeof partyType)[keyof typeof partyType];
|
|
2472
2508
|
|
|
2473
2509
|
export const paymentProcessorCode = {
|
|
2510
|
+
Paypal: 'PAYPAL',
|
|
2474
2511
|
Stripe: 'STRIPE',
|
|
2475
2512
|
} as const;
|
|
2476
2513
|
|
|
2477
2514
|
export type PaymentProcessorCode =
|
|
2478
2515
|
(typeof paymentProcessorCode)[keyof typeof paymentProcessorCode];
|
|
2516
|
+
|
|
2479
2517
|
export const paymentType = {
|
|
2480
2518
|
Card: 'CARD',
|
|
2481
2519
|
UsBankAccount: 'US_BANK_ACCOUNT',
|
|
2482
2520
|
} as const;
|
|
2483
2521
|
|
|
2484
2522
|
export type PaymentType = (typeof paymentType)[keyof typeof paymentType];
|
|
2523
|
+
export const paypalMockResponse = {
|
|
2524
|
+
InstrumentDeclined: 'INSTRUMENT_DECLINED',
|
|
2525
|
+
InternalServerError: 'INTERNAL_SERVER_ERROR',
|
|
2526
|
+
TransactionRefused: 'TRANSACTION_REFUSED',
|
|
2527
|
+
} as const;
|
|
2528
|
+
|
|
2529
|
+
export type PaypalMockResponse =
|
|
2530
|
+
(typeof paypalMockResponse)[keyof typeof paypalMockResponse];
|
|
2531
|
+
|
|
2485
2532
|
export const pddpAmountType = {
|
|
2486
2533
|
FlcTotalCost: 'FLC_TOTAL_COST',
|
|
2487
2534
|
InsuredValue: 'INSURED_VALUE',
|
|
@@ -2899,6 +2946,7 @@ export const taxMethodType = {
|
|
|
2899
2946
|
Consignment: 'CONSIGNMENT',
|
|
2900
2947
|
Default: 'DEFAULT',
|
|
2901
2948
|
Domestic: 'DOMESTIC',
|
|
2949
|
+
DomesticLcg: 'DOMESTIC_LCG',
|
|
2902
2950
|
SellerOfRecord: 'SELLER_OF_RECORD',
|
|
2903
2951
|
} as const;
|
|
2904
2952
|
|
|
@@ -3234,6 +3282,10 @@ export type FulfillmentCenterQuery = {
|
|
|
3234
3282
|
}> | null;
|
|
3235
3283
|
};
|
|
3236
3284
|
|
|
3285
|
+
export type PaypalOrderCaptureMutation = {
|
|
3286
|
+
paypalOrderCapture: { order: { id: string } | null };
|
|
3287
|
+
};
|
|
3288
|
+
|
|
3237
3289
|
export type CheckItemRestrictionsMutation = {
|
|
3238
3290
|
itemRestrictionApply: {
|
|
3239
3291
|
id: string;
|
|
@@ -3352,6 +3404,10 @@ export type CheckoutDetailsFragment = {
|
|
|
3352
3404
|
};
|
|
3353
3405
|
};
|
|
3354
3406
|
|
|
3407
|
+
export type PaypalOrderCreateMutation = {
|
|
3408
|
+
paypalOrderCreate: { paypalOrderId: string | null };
|
|
3409
|
+
};
|
|
3410
|
+
|
|
3355
3411
|
export type ExchangeRateCreateMutation = {
|
|
3356
3412
|
exchangeRateCreate: {
|
|
3357
3413
|
expiresAt: string;
|
|
@@ -3495,7 +3551,14 @@ export type ZonosSettingsQuery = {
|
|
|
3495
3551
|
}>;
|
|
3496
3552
|
createdAt: string;
|
|
3497
3553
|
createdBy: string;
|
|
3498
|
-
|
|
3554
|
+
externalPaymentMethods: Array<{
|
|
3555
|
+
status: ExternalPaymentMethodStatus;
|
|
3556
|
+
type: ExternalPaymentMethodType;
|
|
3557
|
+
}> | null;
|
|
3558
|
+
externalServiceTokens: Array<{
|
|
3559
|
+
token: string;
|
|
3560
|
+
type: ExternalServiceTokenType;
|
|
3561
|
+
}>;
|
|
3499
3562
|
id: string;
|
|
3500
3563
|
mode: Mode;
|
|
3501
3564
|
orderNotifications: {
|
|
@@ -3522,13 +3585,10 @@ export type ZonosSettingsQuery = {
|
|
|
3522
3585
|
};
|
|
3523
3586
|
organization: string;
|
|
3524
3587
|
placeOrderButtonSelector: string | null;
|
|
3525
|
-
|
|
3588
|
+
status: CheckoutStatus;
|
|
3526
3589
|
subscriptionStatus: CheckoutSubscriptionStatus;
|
|
3527
3590
|
successBehavior: CheckoutSuccessBehavior;
|
|
3528
|
-
|
|
3529
|
-
token: string;
|
|
3530
|
-
type: ExternalServiceTokenType;
|
|
3531
|
-
}>;
|
|
3591
|
+
successRedirectUrl: string;
|
|
3532
3592
|
updatedAt: string;
|
|
3533
3593
|
updatedBy: string;
|
|
3534
3594
|
visibilityStatus: CheckoutVisibilityStatus;
|
|
@@ -3577,7 +3637,14 @@ export type CheckoutSettingFragment = {
|
|
|
3577
3637
|
}>;
|
|
3578
3638
|
createdAt: string;
|
|
3579
3639
|
createdBy: string;
|
|
3580
|
-
|
|
3640
|
+
externalPaymentMethods: Array<{
|
|
3641
|
+
status: ExternalPaymentMethodStatus;
|
|
3642
|
+
type: ExternalPaymentMethodType;
|
|
3643
|
+
}> | null;
|
|
3644
|
+
externalServiceTokens: Array<{
|
|
3645
|
+
token: string;
|
|
3646
|
+
type: ExternalServiceTokenType;
|
|
3647
|
+
}>;
|
|
3581
3648
|
id: string;
|
|
3582
3649
|
mode: Mode;
|
|
3583
3650
|
orderNotifications: {
|
|
@@ -3604,10 +3671,7 @@ export type CheckoutSettingFragment = {
|
|
|
3604
3671
|
status: CheckoutStatus;
|
|
3605
3672
|
subscriptionStatus: CheckoutSubscriptionStatus;
|
|
3606
3673
|
successBehavior: CheckoutSuccessBehavior;
|
|
3607
|
-
|
|
3608
|
-
token: string;
|
|
3609
|
-
type: ExternalServiceTokenType;
|
|
3610
|
-
}>;
|
|
3674
|
+
successRedirectUrl: string;
|
|
3611
3675
|
updatedAt: string;
|
|
3612
3676
|
updatedBy: string;
|
|
3613
3677
|
visibilityStatus: CheckoutVisibilityStatus;
|
|
@@ -4141,6 +4205,34 @@ export function getSdk(
|
|
|
4141
4205
|
'mutation',
|
|
4142
4206
|
);
|
|
4143
4207
|
},
|
|
4208
|
+
paypalOrderCapture(
|
|
4209
|
+
variables?: { [x: string]: never },
|
|
4210
|
+
requestHeaders?: GraphQLClientRequestHeaders,
|
|
4211
|
+
): Promise<PaypalOrderCaptureMutation> {
|
|
4212
|
+
return withWrapper(
|
|
4213
|
+
wrappedRequestHeaders =>
|
|
4214
|
+
client.request<PaypalOrderCaptureMutation>('', variables, {
|
|
4215
|
+
...requestHeaders,
|
|
4216
|
+
...wrappedRequestHeaders,
|
|
4217
|
+
}),
|
|
4218
|
+
'paypalOrderCapture',
|
|
4219
|
+
'mutation',
|
|
4220
|
+
);
|
|
4221
|
+
},
|
|
4222
|
+
paypalOrderCreate(
|
|
4223
|
+
variables?: { [x: string]: never },
|
|
4224
|
+
requestHeaders?: GraphQLClientRequestHeaders,
|
|
4225
|
+
): Promise<PaypalOrderCreateMutation> {
|
|
4226
|
+
return withWrapper(
|
|
4227
|
+
wrappedRequestHeaders =>
|
|
4228
|
+
client.request<PaypalOrderCreateMutation>('', variables, {
|
|
4229
|
+
...requestHeaders,
|
|
4230
|
+
...wrappedRequestHeaders,
|
|
4231
|
+
}),
|
|
4232
|
+
'paypalOrderCreate',
|
|
4233
|
+
'mutation',
|
|
4234
|
+
);
|
|
4235
|
+
},
|
|
4144
4236
|
removeTrackingNumber(
|
|
4145
4237
|
variables?: { [x: string]: never },
|
|
4146
4238
|
requestHeaders?: GraphQLClientRequestHeaders,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{l as e,a as n}from"./p-eaa335e1.js";const t=["jsdelivr","unpkg","vercel"],o=e=>{const n=t.indexOf(e);return t[n+1]||null},s="https://js.stripe.com/v3",r=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,i="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used";let l=null;const c=Promise.resolve().then((()=>{return e=null,null!==l||(l=new Promise(((t,o)=>{if("undefined"!=typeof window&&"undefined"!=typeof document)if(window.Stripe&&e&&console.warn(i),window.Stripe)t(window.Stripe);else try{let l=(()=>{const e=document.querySelectorAll(`script[src^="${s}"]`);for(let n=0;n<e.length;n++){const t=e[n];if(t&&r.test(t.src))return t}return null})();l&&e?console.warn(i):l||(l=(e=>{const t=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",o=document.createElement("script");o.src=`${s}${t}`;const r=document.head||document.body;return r?(r.appendChild(o),o):(n("Expected document.body not to be null. Stripe.js requires a <body> element."),null)})(e)),null==l||l.addEventListener("load",(()=>{window.Stripe?t(window.Stripe):o(new Error("Stripe.js not available"))})),null==l||l.addEventListener("error",(()=>{o(new Error("Failed to load Stripe.js"))}))}catch(e){return void o(e)}else t(null)}))),l;var e}));let d=!1;var u;c.catch((e=>{d||console.warn(e)}));const a=(()=>{if("undefined"==typeof document)return null;const e=document.querySelector('script[src*="/zonos.js"]'),{currentLoadScriptUrl:n,isWhiteListed:t}=(({loadScriptSrc:e})=>{if(!e)return{currentLoadScriptUrl:"",isForceLoadVersionDomain:!1,isWhiteListed:!1};const n=new URL(e).origin,t=["dev.elements.zonos.com",".js.zonos.com","zonos-elements-test-git","zonos-elements-git"].some((e=>n.includes(e))),o=["qa.js.zonos.com"].some((e=>n.includes(e)));return{currentLoadScriptUrl:n,isForceLoadVersionDomain:o,isWhiteListed:t}})({loadScriptSrc:null==e?void 0:e.src});return t?n:null})(),m="https://v1.3.
|
|
1
|
+
import{l as e,a as n}from"./p-eaa335e1.js";const t=["jsdelivr","unpkg","vercel"],o=e=>{const n=t.indexOf(e);return t[n+1]||null},s="https://js.stripe.com/v3",r=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,i="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used";let l=null;const c=Promise.resolve().then((()=>{return e=null,null!==l||(l=new Promise(((t,o)=>{if("undefined"!=typeof window&&"undefined"!=typeof document)if(window.Stripe&&e&&console.warn(i),window.Stripe)t(window.Stripe);else try{let l=(()=>{const e=document.querySelectorAll(`script[src^="${s}"]`);for(let n=0;n<e.length;n++){const t=e[n];if(t&&r.test(t.src))return t}return null})();l&&e?console.warn(i):l||(l=(e=>{const t=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",o=document.createElement("script");o.src=`${s}${t}`;const r=document.head||document.body;return r?(r.appendChild(o),o):(n("Expected document.body not to be null. Stripe.js requires a <body> element."),null)})(e)),null==l||l.addEventListener("load",(()=>{window.Stripe?t(window.Stripe):o(new Error("Stripe.js not available"))})),null==l||l.addEventListener("error",(()=>{o(new Error("Failed to load Stripe.js"))}))}catch(e){return void o(e)}else t(null)}))),l;var e}));let d=!1;var u;c.catch((e=>{d||console.warn(e)}));const a=(()=>{if("undefined"==typeof document)return null;const e=document.querySelector('script[src*="/zonos.js"]'),{currentLoadScriptUrl:n,isWhiteListed:t}=(({loadScriptSrc:e})=>{if(!e)return{currentLoadScriptUrl:"",isForceLoadVersionDomain:!1,isWhiteListed:!1};const n=new URL(e).origin,t=["dev.elements.zonos.com",".js.zonos.com","zonos-elements-test-git","zonos-elements-git"].some((e=>n.includes(e))),o=["qa.js.zonos.com"].some((e=>n.includes(e)));return{currentLoadScriptUrl:n,isForceLoadVersionDomain:o,isWhiteListed:t}})({loadScriptSrc:null==e?void 0:e.src});return t?n:null})(),m="https://v1.3.40.js.zonos.com",p=a||"https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.40",w="jsdelivr",f="https://rsms.me",h="https://fonts.googleapis.com",v=/^https:\/\/rsms\.me\/inter\/inter\.css(.*)$/;class y{}u=y,y.doneInit=!1,y.debug="undefined"!=typeof window&&!!window.location.search.match(/\?.*(&*)zonosDebug=1/),y.zonosConversionTest="undefined"!=typeof window&&!!window.location.search.match(/\?.*(&*)zonosConversionTest/),y._paypalMockResponse=null,y.isBigCommerce=!1,y.isNpm=!0,y.zonosQaUrl=null,y.version="v1.3.40",y.modeAlerted=!1,y.tempCartData=null,y.paypal=null,y.getCurrentTimestamp=()=>(new Date).getTime(),y.zonosController=null,y.init=async({appearance:t,checkoutSettings:o,currencyConverter:s,helloSettings:r,onCountryChange:i,overrideCurrencyFormat:l,storeId:c,zonosApiKey:d})=>{u.doneInit||(e(`====== ZONOS DEBUG MODE: on (${u.version}) ======`),d?(u.zonosApiKey=d,u.storeId=c,e("init zonos"),u.injectZonosCdn(),u.injectZonosCss(),u.injectFonts(),u.injectController({config:{appearance:t,checkoutSettings:o,currencyConverter:s,helloSettings:r,onCountryChange:i,overrideCurrencyFormat:l},zonosApiKey:d}),u.doneInit=!0):n("Missing Zonos API key"))},y.displayCurrency=()=>{const e=document.querySelector("zonos-hello");e&&e.displayCurrency()},y.openHelloDialog=e=>{const n=document.querySelector("zonos-hello");n&&n.openHelloDialog(null==e||e)},y.showNotification=e=>{var n;null===(n=u.zonosController)||void 0===n||n.showNotification(e)},y.updateOrganizationName=e=>{var n;null===(n=u.zonosController)||void 0===n||n.updateOrganizationName(e)},y.disablePlaceOrderButtons=({autoEnable:e=!0,config:n,disable:t,placeOrderButtonSelector:o})=>{var s;if(!(null===(s=n.checkoutSettings)||void 0===s?void 0:s.disablePlaceOrderButtonActivation)&&o){const n=document.querySelectorAll(o),s=e=>{e.target.getAttribute("disabled")&&(e.preventDefault(),e.stopPropagation())};n.forEach((e=>{e.getAttribute("data-zonos-checkout-attached")||(t?(e.setAttribute("disabled","true"),e.addEventListener("click",s)):(e.removeAttribute("disabled"),e.removeEventListener("click",s)))})),e&&t&&setTimeout((()=>{n.forEach((e=>{e.removeAttribute("disabled"),e.removeEventListener("click",s)}))}),5e3)}},y.injectController=({config:t,zonosApiKey:o})=>{var s;if(document.querySelector("zonos-controller"))return;if(null===(s=t.checkoutSettings)||void 0===s?void 0:s.placeOrderButtonSelector){const e=t.checkoutSettings.placeOrderButtonSelector;u.disablePlaceOrderButtons({config:t,disable:!0,placeOrderButtonSelector:e}),new MutationObserver((()=>{u.disablePlaceOrderButtons({config:t,disable:!0,placeOrderButtonSelector:e})})).observe(document.body,{childList:!0,subtree:!0})}const r=document.createElement("zonos-controller");r.config=t,r.zonosApiKey=o,r.addEventListener("stripeInitEvent",(async t=>{const{detail:o}=t;e("loading Stripe");const s=await(async(...e)=>{d=!0;const n=Date.now();return c.then((t=>((e,n,t)=>{if(null===e)return null;const o=e.apply(void 0,n);return((e,n)=>{e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",startTime:n})})(o,t),o})(t,e,n)))})(o.publishableKey);s?(window.Zonos.stripe=s,r.initCheckoutElement(s)):n("API seems to be invalid or missing. Failed to load Stripe")})),document.body.appendChild(r),u.zonosController=r,e("Zonos controller injected!")},y.injectScript=({cdnType:t,isModule:s,theRestUrl:r})=>{const i=`${u.getZonosUrl(t)}/${r}`;if(document.querySelector(`script[src="${i}"]`))return void e(`Zonos script "${i}" already exists in the document`,"warn");const l=document.head||document.body,c=document.createElement("script");s?c.type="module":c.noModule=!0,c.src=i,c.crossOrigin="anonymous",c.onerror=()=>{n(`Failed to load ${c.src}`);const e=o(t);e&&u.injectScript({cdnType:e,isModule:s,theRestUrl:r})},l.appendChild(c)},y.getZonosUrl=n=>{const t=()=>{switch(n){case"jsdelivr":return p;case"unpkg":return"https://unpkg.com/@zonos/elements@1.3.40";default:return m}};return u.isNpm&&(()=>{if("undefined"==typeof window)return null;const n=(e=>{if(!e)return null;const n=new URL(e).searchParams.get("zonosQaUrl");return n?/[^a-zA-Z0-9-_]+/.test(n)?null:n:null})(window.location.href);if(!n&&"dev.demo.elements.zonos.com"===window.location.hostname)return"https://dev.elements.zonos.com";if(!n)return null;if("dev-elements"===n)return"https://dev.elements.zonos.com";const t=`https://${n}.preview.js.zonos.com`;return e(`[ZONOS-WARNING] using '${t}' for loading script`,"warn"),fetch(t).then((()=>{window.sessionStorage.removeItem("zonos--checkout-session-id"),window.sessionStorage.removeItem("zonos--client-secret")})).catch((()=>{alert(`[ZONOS-WARNING] '${t}' IS NO LONGER AVAILABLE. REMOVING zonosQaUrl PARAM AND RELOADING THE PAGE`);const e=new URLSearchParams(window.location.search);e.delete("zonosQaUrl");const{pathname:n}=window.location,o=`${n}?${e.toString()}`;return window.history.replaceState(window.history.state,"",o),window.location.reload(),null})),t})()||t()},y.injectZonosCdn=()=>{u.injectScript({cdnType:w,isModule:!0,theRestUrl:"dist/zonos-elements/zonos-elements.esm.js"}),u.injectScript({cdnType:w,isModule:!1,theRestUrl:"dist/zonos-elements/zonos-elements.js"}),e("Zonos cdn script injected!")},y.injectStylesheet=({cdnType:e,theRestUrl:t})=>{const s=u.getZonosUrl(e),r=document.head||document.body,i=document.createElement("link");i.rel="preconnect",i.href=`${m}/`,r.appendChild(i);const l=document.createElement("link");l.rel="stylesheet",l.href=`${s}/${t}`,l.onerror=()=>{n(`Failed to load ${l.href}`);const s=o(e);s&&u.injectStylesheet({cdnType:s,theRestUrl:t})},r.appendChild(l)},y.injectZonosCss=()=>{document.querySelector('link[rel="stylesheet"][href*="/dist/zonos-elements/zonos-elements.css"]')?e("Zonos style links already injected","warn"):(u.injectStylesheet({cdnType:w,theRestUrl:"dist/zonos-elements/zonos-elements.css"}),e("Zonos style css injected!"))},y.injectFonts=()=>{if((()=>{const e=document.querySelectorAll(`link[rel="stylesheet"][href^="${f}"]`);for(let n=0;n<e.length;n++){const t=e[n];if(t&&!v.test(t.href))return t}return null})())return void e("Inter font already injected","warn");const n=document.head||document.body,t=document.createElement("link");t.rel="preconnect",t.href=f,n.appendChild(t);const o=document.createElement("link");o.rel="stylesheet",o.href=`${f}/inter/inter.css`,n.appendChild(o),e("Zonos font injected!")},y.setupGoogleFont=e=>{var n;null===(n=u.zonosController)||void 0===n||n.setupGoogleFont(e)},y.injectSupportGoogleFont=n=>{var t;e(`[FONT] injecting ${n}`);const o=null===(t=n.match(/family=(.*?):/))||void 0===t?void 0:t[1],s=document.head||document.body;if(!document.querySelector(`link[rel="preconnect"][href^="${h}"]`)){const e=document.createElement("link");e.rel="preconnect",e.href=h,s.appendChild(e)}if(document.querySelector(`link[rel="stylesheet"][href="${n}"]`))return void e(`[FONT] ${o} font already injected`,"warn");const r=document.createElement("link");r.rel="stylesheet",r.href=n,s.appendChild(r),e(`[FONT] ${o} font injected!`)};export{y as Zonos}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-b55b557a.system.js","./p-d95cb86a.system.js","./p-23e7c655.system.js"],(function(o){"use strict";var e,t,s,n,r;return{setters:[function(o){e=o.r;t=o.h;s=o.H},function(o){n=o.d},function(o){r=o.c}],execute:function(){var a=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-inline-flexbox;display:inline-flex}:host .zonos--badge-content{display:-ms-flexbox;display:flex;gap:8px;font-size:var(--zonos-elements-font-size-s);padding:4px 8px;text-align:center;border-radius:var(--zonos-elements-radius-6);background-color:var(--zonos-elements-gray-100);color:var(--zonos-elements-gray-800);-ms-flex-align:center;align-items:center}:host p{font-weight:600;line-height:16px}:host .icon-right svg{-ms-flex-order:2;order:2}:host .small{padding:2px 8px}:host .rounded{border-radius:20px}:host .bold{background-color:var(--zonos-elements-gray-600);color:var(--zonos-elements-gray-100)}:host .blue{background-color:var(--zonos-elements-blue-100);color:var(--zonos-elements-blue-800)}:host .blue.bold{background-color:var(--zonos-elements-blue-600);color:var(--zonos-elements-blue-100)}:host .green{background-color:var(--zonos-elements-green-100);color:var(--zonos-elements-green-800)}:host .green.bold{background-color:var(--zonos-elements-green-600);color:var(--zonos-elements-green-100)}:host .red{background-color:var(--zonos-elements-red-100);color:var(--zonos-elements-red-800)}:host .red.bold{background-color:var(--zonos-elements-red-600);color:var(--zonos-elements-red-100)}:host .orange{background-color:var(--zonos-elements-orange-100);color:var(--zonos-elements-orange-800);border:1px solid var(--zonos-elements-orange-200)}:host .orange.bold{background-color:var(--zonos-elements-orange-600);color:var(--zonos-elements-orange-100)}:host .purple{background-color:var(--zonos-elements-purple-100);color:var(--zonos-elements-purple-800)}:host .purple.bold{background-color:var(--zonos-elements-purple-600);color:var(--zonos-elements-purple-100)}:host .cyan{background-color:var(--zonos-elements-cyan-100);color:var(--zonos-elements-cyan-800)}:host .cyan.bold{background-color:var(--zonos-elements-cyan-600);color:var(--zonos-elements-cyan-100)}:host .transparent{background-color:transparent;border:1px solid var(--zonos-elements-gray-200);color:var(--zonos-elements-gray-800)}:host .transparent.bold{background-color:var(--zonos-elements-glass-600);color:var(--zonos-elements-gray-100)}";var l=a;var i=o("zonos_badge",function(){function o(o){e(this,o);this.bold=false;this.badgeColor="gray";this.icon=undefined;this.iconRight=false;this.size="default";this.rounded=false}o.prototype.render=function(){return t(s,{key:"4e022b4090de017818c5ba8f86e2d7684a1b8f05",class:r(["zonos--elements zonos--badge"]),style:{"--font-family":n()}},t("div",{key:"8e6a4c0fcf81939d69fd3aec91463ed6c7a2d67d",class:r(["zonos--badge-content",this.badgeColor,this.rounded&&"rounded",this.iconRight&&"icon-right",this.size,this.bold&&"bold"])},this.icon,t("zonos-text",{key:"5824866453d31abef18443179e6bc1692e9e98a3",textColor:"".concat(this.badgeColor,"-800")},t("slot",{key:"9bc411177ae04e8fa1061098023860204fa1a5d7"}))))};return o}());i.style=l;var c=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .zonos--tooltip{position:relative}:host .zonos--tooltip .zonos--tooltip-content{position:absolute;bottom:100%;left:0;width:-webkit-max-content;width:-moz-max-content;width:max-content;padding:12px;background-color:var(--zonos-elements-gray-1200);opacity:0;-webkit-transform:scale(0);transform:scale(0);-webkit-transition:all 0.2s ease-in-out;transition:all 0.2s ease-in-out;-webkit-transform-origin:bottom left;transform-origin:bottom left;border-radius:var(--zonos-elements-radius-4);z-index:100;-webkit-box-shadow:var(--zonos-elements-v3-shadow-large);box-shadow:var(--zonos-elements-v3-shadow-large)}:host .zonos--tooltip .zonos--tooltip-content.zonos--show-tooltip{opacity:1;-webkit-transform:scale(1);transform:scale(1)}";var d=c;var h=o("zonos_tooltip",function(){function o(o){e(this,o);this.label="";this.subtitle="";this.showTooltip=false}o.prototype.render=function(){var o=this;return t(s,{key:"a38f8d5dec27abcfc73f341b9451ac29c71f3e1a",class:"zonos--elements"},t("div",{key:"dc2d9d599437e79d61ea6a7c4dc1cbba6ab03748",class:"zonos--tooltip",onMouseEnter:function(){return o.showTooltip=true},onMouseLeave:function(){return o.showTooltip=false}},t("slot",{key:"a0e10b6ea75346cee1b5a42f0c35f9a86ba4f1ee"}),t("div",{key:"bed28d732fe207e56f03ba50ea835c562c5d08cb",class:r([this.showTooltip&&"zonos--show-tooltip","zonos--tooltip-content"])},t("zonos-text",{key:"920ef6419d1dedd71e46be23e9a19dc1042925ce",size:"s",textColor:"gray-0",type:"boldLabel"},this.label),t("zonos-text",{key:"259961488d833d3728819f6ba93ea6579b0f3f9d",size:"xs",textColor:"gray-0"},this.subtitle))))};return o}());h.style=d}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-b55b557a.system.js","./p-800db524.system.js","./p-d95cb86a.system.js","./p-23e7c655.system.js","./p-63db40b9.system.js","./p-b2007124.system.js","./p-1b499bcc.system.js"],(function(t){"use strict";var s,n,o,e,i,a,h;return{setters:[function(t){s=t.r;n=t.h;o=t.H;e=t.d},function(t){i=t.l},function(t){a=t.d},function(t){h=t.c},function(){},function(){},function(){}],execute:function(){var r=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-inline-flexbox;display:inline-flex}:host .flag-container{position:relative;overflow:hidden;width:100%;height:100%}:host .flag-icon{position:absolute;top:0;left:0;width:100%;height:100%;background-position:center;background-repeat:no-repeat;background-size:cover}";var f=r;var l="https://zonos-store-assets.s3.amazonaws.com/images/elements-flags";var c=t("zonos_country_flag",function(){function t(t){s(this,t);this.countryCode=i.selectedCountryCode;this.size=undefined}t.prototype.render=function(){if(!this.el.shadowRoot||!this.countryCode){return null}var t="".concat(l,"/").concat(this.countryCode,".svg");var s=a();return n(o,{class:"zonos--elements",style:this.size?{"--font-family":s,height:"".concat(this.size,"px"),width:"".concat(this.size,"px")}:{"--font-family":s}},n("div",{class:h(["flag-container"])},n("div",{class:"flag-icon",style:{backgroundImage:"url(".concat(t,")")}})))};Object.defineProperty(t.prototype,"el",{get:function(){return e(this)},enumerable:false,configurable:true});return t}());c.style=f}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as o,h as s,H as n,d as a,c as t}from"./p-dd61b7a0.js";import{d as e}from"./p-92bebe7a.js";import{c as i}from"./p-b4b7f705.js";import{j as p}from"./p-fb63bd03.js";import{a as c,l as m}from"./p-eaa335e1.js";import{d as l}from"./p-f98f7066.js";import"./p-890f5788.js";import"./p-3da1bc42.js";const r=class{constructor(s){o(this,s),this.notificationArray=[]}async showNotification(o){const s=`id-${Math.random().toString(36).substring(2,9)}`,n=Object.assign(Object.assign({},o),{id:s,timeout:o.timeout||5e3,transitionClass:"",type:o.type||"success"});this.notificationArray=[...this.notificationArray,n],setTimeout((()=>{this.updateTransitionClass({id:s,transitionClass:"show"})}),50),setTimeout((()=>{this.removeNotification(s)}),n.timeout)}updateTransitionClass({id:o,transitionClass:s}){this.notificationArray=this.notificationArray.map((n=>n.id===o?Object.assign(Object.assign({},n),{transitionClass:s}):n))}removeNotification(o){this.updateTransitionClass({id:o,transitionClass:""}),setTimeout((()=>{this.notificationArray=this.notificationArray.filter((s=>s.id!==o))}),300)}render(){return s(n,{key:"17c08c90c6c1dfade4e43451c196127a0f53429e",class:i(["zonos--elements zonos--notification"]),style:{"--font-family":e()}},s("div",{key:"6624419d86a5c7518539069dbc5c9d7c08262c75",class:"zonos--notification-items"},this.notificationArray.map((o=>s("div",{"aria-hidden":"true",class:i(["zonos--notification-item",o.type,o.transitionClass]),key:o.id,onClick:()=>{this.removeNotification(o.id)}},s("zonos-text",{textColor:"gray-0"},o.message))))))}};r.style=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}:host .zonos--notification-items{position:fixed;z-index:9999999999;bottom:24px;gap:8px;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column}:host .zonos--notification-item{cursor:pointer;-webkit-transition:all 0.3s ease;transition:all 0.3s ease;padding:8px;border-radius:var(--border-radius, var(--zonos-elements-radius-6));opacity:0;-ms-flex-negative:0.0001;flex-shrink:0.0001;-webkit-transform:translateY(100%);transform:translateY(100%)}:host .zonos--notification-item+:host .zonos--notification-item{margin-top:8px}:host .zonos--notification-item.show{opacity:1;-webkit-transform:translateY(0);transform:translateY(0);-ms-flex-positive:1000;flex-grow:1000}:host .zonos--notification-item.success{background-color:var(--zonos-elements-green-700)}:host .zonos--notification-item.error{background-color:var(--zonos-elements-red-700)}:host .zonos--notification-item.warning{background-color:var(--zonos-elements-orange-700)}";const y=class{constructor(s){o(this,s),this.titleText=void 0,this.stripe=p.stripe,this.stripeElements=p.stripeElements}watchInitStripe(){if(!this.stripeElements)return;const o=p.stripePaymentElement||this.stripeElements.create("payment",{layout:"accordion"}),s=this.el.querySelector(".zonos--payment-component");s?(o.mount(s),o.on("change",(o=>{p.stripePaymentEventData=o})),p.stripePaymentElement=o):c("Cannot find container element for paymentElement")}componentDidLoad(){this.watchInitStripe()}render(){return s(n,{key:"a6df9bab4826d7c4e4027bf6b7e58f176cb25ca1",class:"zonos--payment zonos--elements"},this.titleText&&s("zonos-text",{key:"a2f3d1288537a8e63c26bef9c87cae7f3a6f94fa",class:"zonos--title",type:"semiBoldLabel"},this.titleText),s("div",{key:"4e30103e4b6fa407450afc71474b663377233310",class:"zonos--payment-component"}),s("div",{key:"66a9798018fb25e86933a839014ed0d2ed16d8b3",class:"zonos--payment-paypal-container"}))}get el(){return a(this)}static get watchers(){return{stripeElements:["watchInitStripe"],stripe:["watchInitStripe"]}}};y.style=".sc-zonos-payment-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-payment-h *.sc-zonos-payment{font-family:var(--font-family, Inter), Inter}.sc-zonos-payment-h img.sc-zonos-payment{max-width:100%}.sc-zonos-payment-h dl.sc-zonos-payment,.sc-zonos-payment-h dd.sc-zonos-payment,.sc-zonos-payment-h h1.sc-zonos-payment,.sc-zonos-payment-h h2.sc-zonos-payment,.sc-zonos-payment-h h3.sc-zonos-payment,.sc-zonos-payment-h h4.sc-zonos-payment,.sc-zonos-payment-h h5.sc-zonos-payment,.sc-zonos-payment-h h6.sc-zonos-payment,.sc-zonos-payment-h hr.sc-zonos-payment,.sc-zonos-payment-h figure.sc-zonos-payment,.sc-zonos-payment-h p.sc-zonos-payment,.sc-zonos-payment-h pre.sc-zonos-payment{margin:0}.sc-zonos-payment-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-payment-h .zonos--title.sc-zonos-payment{margin-bottom:16px}";const h=class{constructor(s){o(this,s),this.paypalSessionDone=t(this,"paypalSessionDone",7),this.paypalSessionFail=t(this,"paypalSessionFail",7)}async loadPaypal(){if(!window.Zonos.paypal)return void m("Paypal is not available");const o=l({onPaypalFail:()=>{m("onPaypalFail"),this.paypalSessionFail.emit()},onPaypalSessionDone:({orderId:o})=>{m("onPaypalSessionDone","info",{orderId:o}),this.paypalSessionDone.emit({orderId:o})}});if(!(null==o?void 0:o.length))return void m("There are no paypal buttons available");const s=this.el.querySelector(".zonos--payment-paypal-container");s?o.forEach((async o=>{await o.render(s)})):m("Cannot find container element for paypal buttons")}componentDidLoad(){this.loadPaypal()}render(){return s(n,{key:"036a9d43da99e1c08293936d89ca5f97d5acdf10",class:"zonos--paypal-payment zonos--elements"},s("div",{key:"f38290dce670024e001d8219d2d8d1e9fde1f9e2",class:"zonos--payment-paypal-container"}))}get el(){return a(this)}};h.style=".sc-zonos-paypal-payment-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-paypal-payment-h *.sc-zonos-paypal-payment{font-family:var(--font-family, Inter), Inter}.sc-zonos-paypal-payment-h img.sc-zonos-paypal-payment{max-width:100%}.sc-zonos-paypal-payment-h dl.sc-zonos-paypal-payment,.sc-zonos-paypal-payment-h dd.sc-zonos-paypal-payment,.sc-zonos-paypal-payment-h h1.sc-zonos-paypal-payment,.sc-zonos-paypal-payment-h h2.sc-zonos-paypal-payment,.sc-zonos-paypal-payment-h h3.sc-zonos-paypal-payment,.sc-zonos-paypal-payment-h h4.sc-zonos-paypal-payment,.sc-zonos-paypal-payment-h h5.sc-zonos-paypal-payment,.sc-zonos-paypal-payment-h h6.sc-zonos-paypal-payment,.sc-zonos-paypal-payment-h hr.sc-zonos-paypal-payment,.sc-zonos-paypal-payment-h figure.sc-zonos-paypal-payment,.sc-zonos-paypal-payment-h p.sc-zonos-paypal-payment,.sc-zonos-paypal-payment-h pre.sc-zonos-paypal-payment{margin:0}.sc-zonos-paypal-payment-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-paypal-payment-h{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column}";export{r as zonos_notification,y as zonos_payment,h as zonos_paypal_payment}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./p-d95cb86a.system.js"],(function(t){"use strict";var n;return{setters:[function(t){n=t.z}],execute:function(){var r=t("g",(function(t){var r=(t===null||t===void 0?void 0:t.customRoundRadius)||"10px";var e=t===null||t===void 0?void 0:t.overrideBorderStyle;if(e){return e==="SHARP"?"0px":r}return n.appearance.style==="SHARP"?"0px":r}))}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-b55b557a.system.js"],(function(t){"use strict";var o,s;return{setters:[function(t){o=t.r;s=t.h}],execute:function(){function n(t,o,s){return(t||"")+(o?" ".concat(o):"")+(s?" ".concat(s):"")}var e=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}div{color:red;font-size:large}";var h=e;var i=t("zonos_component",function(){function t(t){o(this,t);this.first="";this.middle="";this.last=""}t.prototype.getText=function(){return n(this.first,this.middle,this.last)};t.prototype.render=function(){return s("div",{key:"23fbe02ded67e42f94b5c3641aae55970cef052d"},"Hello, World! I'm ",this.getText())};return t}());i.style=h}}}));
|