@zonos/elements 1.3.284 → 1.3.286
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-94908542.js → cart-0cf8897b.js} +26 -3
- package/dist/cjs/{collect-0c05e2b4.js → collect-79131e52.js} +1 -1
- package/dist/cjs/{getMissingRequiredShippingFields-124b3f20.js → getMissingRequiredShippingFields-a8f04267.js} +1 -1
- package/dist/cjs/index.cjs.js +7 -7
- package/dist/cjs/{invoice-205fb5bc.js → invoice-254ae23b.js} +1 -1
- package/dist/cjs/{paypal-45ca5301.js → paypal-8ca67278.js} +1 -1
- package/dist/cjs/{placeTestOrder-302b6862.js → placeTestOrder-12b63822.js} +1 -1
- package/dist/cjs/{renderCheckoutCurrency-1b0cd5f2.js → renderCheckoutCurrency-a1f71587.js} +1 -1
- package/dist/cjs/zonos-address-completion-dialog_7.cjs.entry.js +2 -2
- package/dist/cjs/zonos-address_4.cjs.entry.js +1 -1
- package/dist/cjs/zonos-airwallex-payment.cjs.entry.js +2 -2
- package/dist/cjs/zonos-card_5.cjs.entry.js +2 -2
- package/dist/cjs/zonos-cart-items_12.cjs.entry.js +21 -9
- package/dist/cjs/zonos-checkout.cjs.entry.js +103 -5
- package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +1 -1
- package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +5 -5
- package/dist/cjs/zonos-collect.cjs.entry.js +3 -3
- package/dist/cjs/zonos-controller.cjs.entry.js +1 -1
- package/dist/cjs/zonos-invoice-cart-items_2.cjs.entry.js +3 -3
- package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +5 -5
- package/dist/cjs/zonos-invoice.cjs.entry.js +3 -3
- package/dist/cjs/zonos-policy-consent_2.cjs.entry.js +2 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js +17 -5
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +104 -5
- package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.js +1 -1
- package/dist/collection/components/main/zonos-controller.js +1 -1
- package/dist/collection/components/store/checkout/cart.js +14 -1
- package/dist/collection/components/utils/validateCheckoutSession.js +11 -3
- package/dist/collection/types/generated/graphql.frontend.types.js +2 -0
- package/dist/collection/types/generated/graphql.internal.types.js +128 -6
- package/dist/esm/{cart-2e407f7b.js → cart-d04742f5.js} +25 -4
- package/dist/esm/{collect-19428e18.js → collect-4c310a16.js} +1 -1
- package/dist/esm/{getMissingRequiredShippingFields-719b206f.js → getMissingRequiredShippingFields-f0878e32.js} +1 -1
- package/dist/esm/index.js +7 -7
- package/dist/esm/{invoice-67a47785.js → invoice-86487dac.js} +1 -1
- package/dist/esm/{paypal-6dca6567.js → paypal-997935ab.js} +1 -1
- package/dist/esm/{placeTestOrder-9563c89a.js → placeTestOrder-a53f2056.js} +1 -1
- package/dist/esm/{renderCheckoutCurrency-282384f0.js → renderCheckoutCurrency-e0e16eb7.js} +1 -1
- package/dist/esm/zonos-address-completion-dialog_7.entry.js +2 -2
- package/dist/esm/zonos-address_4.entry.js +1 -1
- package/dist/esm/zonos-airwallex-payment.entry.js +2 -2
- package/dist/esm/zonos-card_5.entry.js +2 -2
- package/dist/esm/zonos-cart-items_12.entry.js +21 -9
- package/dist/esm/zonos-checkout.entry.js +103 -5
- package/dist/esm/zonos-collect-cart-items_3.entry.js +1 -1
- package/dist/esm/zonos-collect-finish_6.entry.js +5 -5
- package/dist/esm/zonos-collect.entry.js +3 -3
- package/dist/esm/zonos-controller.entry.js +1 -1
- package/dist/esm/zonos-invoice-cart-items_2.entry.js +3 -3
- package/dist/esm/zonos-invoice-finish_5.entry.js +5 -5
- package/dist/esm/zonos-invoice.entry.js +3 -3
- package/dist/esm/zonos-policy-consent_2.entry.js +2 -2
- package/dist/esm-es5/cart-d04742f5.js +1 -0
- package/dist/esm-es5/{collect-19428e18.js → collect-4c310a16.js} +1 -1
- package/dist/esm-es5/getMissingRequiredShippingFields-f0878e32.js +1 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{invoice-67a47785.js → invoice-86487dac.js} +1 -1
- package/dist/esm-es5/{paypal-6dca6567.js → paypal-997935ab.js} +1 -1
- package/dist/esm-es5/{placeTestOrder-9563c89a.js → placeTestOrder-a53f2056.js} +1 -1
- package/dist/esm-es5/{renderCheckoutCurrency-282384f0.js → renderCheckoutCurrency-e0e16eb7.js} +1 -1
- package/dist/esm-es5/zonos-address-completion-dialog_7.entry.js +1 -1
- package/dist/esm-es5/zonos-address_4.entry.js +1 -1
- package/dist/esm-es5/zonos-airwallex-payment.entry.js +1 -1
- package/dist/esm-es5/zonos-card_5.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-collect-cart-items_3.entry.js +1 -1
- package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -1
- package/dist/esm-es5/zonos-collect.entry.js +1 -1
- package/dist/esm-es5/zonos-controller.entry.js +1 -1
- package/dist/esm-es5/zonos-invoice-cart-items_2.entry.js +1 -1
- package/dist/esm-es5/zonos-invoice-finish_5.entry.js +1 -1
- package/dist/esm-es5/zonos-invoice.entry.js +1 -1
- package/dist/esm-es5/zonos-policy-consent_2.entry.js +1 -1
- package/dist/scripts/index.d.ts +4 -0
- package/dist/scripts/index.js +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +14 -0
- package/dist/types/components/store/checkout/cart.d.ts +10 -1
- package/dist/types/types/generated/graphql.frontend.types.d.ts +2 -0
- package/dist/types/types/generated/graphql.frontend.types.ts +2 -0
- package/dist/types/types/generated/graphql.internal.types.d.ts +162 -7
- package/dist/types/types/generated/graphql.internal.types.ts +201 -9
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-dd3c00d6.system.entry.js → p-0c327a57.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-e32ee011.system.entry.js → p-117953db.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-260ad739.system.entry.js → p-1cfb5c2a.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-f4acce01.js → p-277b77e3.js} +1 -1
- package/dist/zonos-elements/{p-ae0de3e4.entry.js → p-278abdcf.entry.js} +1 -1
- package/dist/zonos-elements/p-29b60bf3.system.js +1 -1
- package/dist/zonos-elements/{p-e5c76a9b.js → p-344a6278.js} +2 -2
- package/dist/zonos-elements/{p-f59a0129.system.entry.js → p-3a26e5e7.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-94722bf6.system.entry.js → p-40af92a1.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-e8587f9f.system.entry.js → p-41f1697a.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-e2b4c082.system.entry.js → p-490d7fec.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-1277abac.system.entry.js → p-4941c096.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-d20fe2c2.system.entry.js → p-50d088f7.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-8311edc7.entry.js → p-5227aa69.entry.js} +1 -1
- package/dist/zonos-elements/{p-bced320e.entry.js → p-5d110c2b.entry.js} +1 -1
- package/dist/zonos-elements/{p-b1e95f95.entry.js → p-6de2f9c9.entry.js} +1 -1
- package/dist/zonos-elements/{p-6dde1e85.system.entry.js → p-6eaf7c9e.system.entry.js} +1 -1
- package/dist/zonos-elements/p-7352abe9.js +1 -0
- package/dist/zonos-elements/{p-fe5f05fc.system.js → p-74230da8.system.js} +1 -1
- package/dist/zonos-elements/{p-22e10b7d.entry.js → p-77993ba1.entry.js} +1 -1
- package/dist/zonos-elements/p-78f8e594.entry.js +1 -0
- package/dist/zonos-elements/p-7b525c75.system.js +1 -0
- package/dist/zonos-elements/p-7f688485.system.entry.js +1 -0
- package/dist/zonos-elements/p-8861d47e.js +1 -0
- package/dist/zonos-elements/p-8d14cb66.entry.js +1 -0
- package/dist/zonos-elements/{p-a07e5011.entry.js → p-944c1fb3.entry.js} +1 -1
- package/dist/zonos-elements/{p-cb49dcfe.entry.js → p-96ab529e.entry.js} +1 -1
- package/dist/zonos-elements/{p-eb5f3451.system.js → p-998975a3.system.js} +1 -1
- package/dist/zonos-elements/p-a4c7ee17.js +1 -0
- package/dist/zonos-elements/{p-3a13e58c.system.js → p-c0af11fe.system.js} +1 -1
- package/dist/zonos-elements/p-c112fa12.system.entry.js +1 -0
- package/dist/zonos-elements/{p-2b8c96e3.system.js → p-c4321a1a.system.js} +1 -1
- package/dist/zonos-elements/{p-aecb5d61.entry.js → p-c7329333.entry.js} +1 -1
- package/dist/zonos-elements/{p-2989da12.system.js → p-c756a59d.system.js} +1 -1
- package/dist/zonos-elements/p-d1a51fac.js +1 -0
- package/dist/zonos-elements/{p-d42bd250.system.entry.js → p-d75726e5.system.entry.js} +1 -1
- package/dist/zonos-elements/p-dd866ca3.system.entry.js +1 -0
- package/dist/zonos-elements/{p-8bfe5b2b.entry.js → p-dd8a7bf4.entry.js} +1 -1
- package/dist/zonos-elements/p-e4dc24e1.system.js +1 -0
- package/dist/zonos-elements/{p-60a6b71d.system.js → p-e5865ad9.system.js} +1 -1
- package/dist/zonos-elements/{p-65c1f51e.entry.js → p-e7d7afda.entry.js} +1 -1
- package/dist/zonos-elements/p-f9346f1c.entry.js +1 -0
- package/dist/zonos-elements/{p-0c9fec73.js → p-fc5f6113.js} +1 -1
- package/dist/zonos-elements/p-fe28dbe6.entry.js +1 -0
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/cart-2e407f7b.js +0 -1
- package/dist/esm-es5/getMissingRequiredShippingFields-719b206f.js +0 -1
- package/dist/zonos-elements/p-2c2afed4.entry.js +0 -1
- package/dist/zonos-elements/p-2cdd1b49.system.entry.js +0 -1
- package/dist/zonos-elements/p-46cd14e5.js +0 -1
- package/dist/zonos-elements/p-4a20893e.system.js +0 -1
- package/dist/zonos-elements/p-5a491f28.js +0 -1
- package/dist/zonos-elements/p-5ebb7ae6.entry.js +0 -1
- package/dist/zonos-elements/p-62f6a757.entry.js +0 -1
- package/dist/zonos-elements/p-8b298971.system.entry.js +0 -1
- package/dist/zonos-elements/p-a9ad74e5.system.entry.js +0 -1
- package/dist/zonos-elements/p-c1631c9c.js +0 -1
- package/dist/zonos-elements/p-cb4cb5a3.system.js +0 -1
- package/dist/zonos-elements/p-dc80cb87.js +0 -1
- package/dist/zonos-elements/p-ff4e6811.entry.js +0 -1
|
@@ -527,6 +527,12 @@ export const analyticsProviderType = {
|
|
|
527
527
|
FacebookPixel: 'FACEBOOK_PIXEL',
|
|
528
528
|
GoogleAnalytics: 'GOOGLE_ANALYTICS',
|
|
529
529
|
};
|
|
530
|
+
export const animalDrugApplicationType = {
|
|
531
|
+
AbbreviatedNada: 'ABBREVIATED_NADA',
|
|
532
|
+
ConditionallyApprovedNada: 'CONDITIONALLY_APPROVED_NADA',
|
|
533
|
+
Nada: 'NADA',
|
|
534
|
+
Unspecified: 'UNSPECIFIED',
|
|
535
|
+
};
|
|
530
536
|
export const answerProvenance = {
|
|
531
537
|
Inferred: 'INFERRED',
|
|
532
538
|
Manual: 'MANUAL',
|
|
@@ -534,6 +540,7 @@ export const answerProvenance = {
|
|
|
534
540
|
};
|
|
535
541
|
export const answerType = {
|
|
536
542
|
Boolean: 'BOOLEAN',
|
|
543
|
+
Checkbox: 'CHECKBOX',
|
|
537
544
|
Date: 'DATE',
|
|
538
545
|
Document: 'DOCUMENT',
|
|
539
546
|
MultiSelect: 'MULTI_SELECT',
|
|
@@ -831,9 +838,6 @@ export const brokerageNatureOfTransaction = {
|
|
|
831
838
|
NotForResale: 'NOT_FOR_RESALE',
|
|
832
839
|
Return: 'RETURN',
|
|
833
840
|
};
|
|
834
|
-
export const brokerageNotificationType = {
|
|
835
|
-
ComplianceQuestionnaire: 'COMPLIANCE_QUESTIONNAIRE',
|
|
836
|
-
};
|
|
837
841
|
export const brokeragePgaAgency = {
|
|
838
842
|
Other: 'OTHER',
|
|
839
843
|
UsAtf: 'US_ATF',
|
|
@@ -982,11 +986,13 @@ export const carrierBillingInvoiceStatus = {
|
|
|
982
986
|
};
|
|
983
987
|
export const carrierCode = {
|
|
984
988
|
Apc: 'APC',
|
|
989
|
+
Asendia: 'ASENDIA',
|
|
985
990
|
AustraliaPost: 'AUSTRALIA_POST',
|
|
986
991
|
BermudaPost: 'BERMUDA_POST',
|
|
987
992
|
CanadaPost: 'CANADA_POST',
|
|
988
993
|
CyprusPost: 'CYPRUS_POST',
|
|
989
994
|
Dhl: 'DHL',
|
|
995
|
+
DhlEcommerce: 'DHL_ECOMMERCE',
|
|
990
996
|
DirectLink: 'DIRECT_LINK',
|
|
991
997
|
Ehub: 'EHUB',
|
|
992
998
|
Envia: 'ENVIA',
|
|
@@ -1168,9 +1174,14 @@ export const channelConnectionStatus = {
|
|
|
1168
1174
|
export const channelType = {
|
|
1169
1175
|
Amazon: 'AMAZON',
|
|
1170
1176
|
Bigcommerce: 'BIGCOMMERCE',
|
|
1177
|
+
CustomApi: 'CUSTOM_API',
|
|
1171
1178
|
Ebay: 'EBAY',
|
|
1172
1179
|
Etsy: 'ETSY',
|
|
1180
|
+
Magento: 'MAGENTO',
|
|
1181
|
+
Mirakl: 'MIRAKL',
|
|
1173
1182
|
Shopify: 'SHOPIFY',
|
|
1183
|
+
Walmart: 'WALMART',
|
|
1184
|
+
Walmartca: 'WALMARTCA',
|
|
1174
1185
|
Wix: 'WIX',
|
|
1175
1186
|
Woocommerce: 'WOOCOMMERCE',
|
|
1176
1187
|
};
|
|
@@ -1372,6 +1383,18 @@ export const commercialInvoiceItemUnitOfMeasure = {
|
|
|
1372
1383
|
Pound: 'POUND',
|
|
1373
1384
|
Yard: 'YARD',
|
|
1374
1385
|
};
|
|
1386
|
+
export const complianceObligationReason = {
|
|
1387
|
+
ContentChanged: 'CONTENT_CHANGED',
|
|
1388
|
+
Expired: 'EXPIRED',
|
|
1389
|
+
NewlyApplicable: 'NEWLY_APPLICABLE',
|
|
1390
|
+
VersionRelease: 'VERSION_RELEASE',
|
|
1391
|
+
};
|
|
1392
|
+
export const complianceObligationStatus = {
|
|
1393
|
+
Current: 'CURRENT',
|
|
1394
|
+
InProgress: 'IN_PROGRESS',
|
|
1395
|
+
NeedsReview: 'NEEDS_REVIEW',
|
|
1396
|
+
Unanswered: 'UNANSWERED',
|
|
1397
|
+
};
|
|
1375
1398
|
export const complianceProgramType = {
|
|
1376
1399
|
Fta: 'FTA',
|
|
1377
1400
|
Other: 'OTHER',
|
|
@@ -1947,6 +1970,7 @@ export const countryCode = {
|
|
|
1947
1970
|
Vu: 'VU',
|
|
1948
1971
|
Wf: 'WF',
|
|
1949
1972
|
Ws: 'WS',
|
|
1973
|
+
Xk: 'XK',
|
|
1950
1974
|
Ye: 'YE',
|
|
1951
1975
|
Yt: 'YT',
|
|
1952
1976
|
Za: 'ZA',
|
|
@@ -2270,16 +2294,28 @@ export const customsStage = {
|
|
|
2270
2294
|
InCustoms: 'IN_CUSTOMS',
|
|
2271
2295
|
PreCustoms: 'PRE_CUSTOMS',
|
|
2272
2296
|
};
|
|
2297
|
+
export const dangerousGoodsAccessibility = {
|
|
2298
|
+
Accessible: 'ACCESSIBLE',
|
|
2299
|
+
Inaccessible: 'INACCESSIBLE',
|
|
2300
|
+
};
|
|
2273
2301
|
export const dangerousGoodsCategory = {
|
|
2274
2302
|
BiologicalSubstance: 'BIOLOGICAL_SUBSTANCE',
|
|
2275
2303
|
ConsumerCommodity: 'CONSUMER_COMMODITY',
|
|
2276
2304
|
ExceptedQuantity: 'EXCEPTED_QUANTITY',
|
|
2305
|
+
FullyRegulated: 'FULLY_REGULATED',
|
|
2277
2306
|
LimitedQuantity: 'LIMITED_QUANTITY',
|
|
2278
2307
|
MagnetizedMaterial: 'MAGNETIZED_MATERIAL',
|
|
2279
2308
|
NotRestrictedA02: 'NOT_RESTRICTED_A02',
|
|
2280
2309
|
NotRestrictedA67: 'NOT_RESTRICTED_A67',
|
|
2281
2310
|
NotRestrictedA70: 'NOT_RESTRICTED_A70',
|
|
2282
2311
|
};
|
|
2312
|
+
export const dangerousGoodsOption = {
|
|
2313
|
+
HazardousMaterials: 'HAZARDOUS_MATERIALS',
|
|
2314
|
+
LimitedQuantitiesCommodities: 'LIMITED_QUANTITIES_COMMODITIES',
|
|
2315
|
+
OrmD: 'ORM_D',
|
|
2316
|
+
ReportableQuantities: 'REPORTABLE_QUANTITIES',
|
|
2317
|
+
SmallQuantityException: 'SMALL_QUANTITY_EXCEPTION',
|
|
2318
|
+
};
|
|
2283
2319
|
export const dashboardUnit = {
|
|
2284
2320
|
Imperial: 'IMPERIAL',
|
|
2285
2321
|
Metric: 'METRIC',
|
|
@@ -2368,6 +2404,25 @@ export const detailGroupInputType = {
|
|
|
2368
2404
|
PostalCredit: 'POSTAL_CREDIT',
|
|
2369
2405
|
PostalOrderCancel: 'POSTAL_ORDER_CANCEL',
|
|
2370
2406
|
};
|
|
2407
|
+
export const deviceClass = {
|
|
2408
|
+
ClassI: 'CLASS_I',
|
|
2409
|
+
ClassIi: 'CLASS_II',
|
|
2410
|
+
ClassIii: 'CLASS_III',
|
|
2411
|
+
NotClassified: 'NOT_CLASSIFIED',
|
|
2412
|
+
Unclassified: 'UNCLASSIFIED',
|
|
2413
|
+
Unspecified: 'UNSPECIFIED',
|
|
2414
|
+
};
|
|
2415
|
+
export const deviceEstablishmentRole = {
|
|
2416
|
+
ForeignExporter: 'FOREIGN_EXPORTER',
|
|
2417
|
+
ForeignManufacturer: 'FOREIGN_MANUFACTURER',
|
|
2418
|
+
UnitedStatesManufacturer: 'UNITED_STATES_MANUFACTURER',
|
|
2419
|
+
};
|
|
2420
|
+
export const devicePremarketStatus = {
|
|
2421
|
+
Exempt: 'EXEMPT',
|
|
2422
|
+
RequiredPma: 'REQUIRED_PMA',
|
|
2423
|
+
Required_510K: 'REQUIRED_510K',
|
|
2424
|
+
Unspecified: 'UNSPECIFIED',
|
|
2425
|
+
};
|
|
2371
2426
|
export const dimensionalUnitCode = {
|
|
2372
2427
|
Centimeter: 'CENTIMETER',
|
|
2373
2428
|
Decimeter: 'DECIMETER',
|
|
@@ -2414,6 +2469,7 @@ export const documentReferenceType = {
|
|
|
2414
2469
|
Product: 'PRODUCT',
|
|
2415
2470
|
Shipment: 'SHIPMENT',
|
|
2416
2471
|
Sku: 'SKU',
|
|
2472
|
+
TrackingNumber: 'TRACKING_NUMBER',
|
|
2417
2473
|
};
|
|
2418
2474
|
export const documentType = {
|
|
2419
2475
|
CertificateOfOrigin: 'CERTIFICATE_OF_ORIGIN',
|
|
@@ -2443,6 +2499,10 @@ export const draftDetailEventTrigger = {
|
|
|
2443
2499
|
PaymentCapture: 'PAYMENT_CAPTURE',
|
|
2444
2500
|
TrackingNumber: 'TRACKING_NUMBER',
|
|
2445
2501
|
};
|
|
2502
|
+
export const drugListingType = {
|
|
2503
|
+
Finished: 'FINISHED',
|
|
2504
|
+
Unfinished: 'UNFINISHED',
|
|
2505
|
+
};
|
|
2446
2506
|
export const dutyTaxFeeConfiguration = {
|
|
2447
2507
|
ExcludeAll: 'EXCLUDE_ALL',
|
|
2448
2508
|
ExcludeDuty: 'EXCLUDE_DUTY',
|
|
@@ -3628,9 +3688,11 @@ export const labelBrokerType = {
|
|
|
3628
3688
|
};
|
|
3629
3689
|
export const labelCarrierCode = {
|
|
3630
3690
|
Apc: 'APC',
|
|
3691
|
+
Asendia: 'ASENDIA',
|
|
3631
3692
|
AustraliaPost: 'AUSTRALIA_POST',
|
|
3632
3693
|
CanadaPost: 'CANADA_POST',
|
|
3633
3694
|
Dhl: 'DHL',
|
|
3695
|
+
DhlEcommerce: 'DHL_ECOMMERCE',
|
|
3634
3696
|
DirectLink: 'DIRECT_LINK',
|
|
3635
3697
|
Ehub: 'EHUB',
|
|
3636
3698
|
Envia: 'ENVIA',
|
|
@@ -3682,6 +3744,7 @@ export const labelDangerousGoodsCategory = {
|
|
|
3682
3744
|
BiologicalSubstance: 'BIOLOGICAL_SUBSTANCE',
|
|
3683
3745
|
ConsumerCommodity: 'CONSUMER_COMMODITY',
|
|
3684
3746
|
ExceptedQuantity: 'EXCEPTED_QUANTITY',
|
|
3747
|
+
FullyRegulated: 'FULLY_REGULATED',
|
|
3685
3748
|
LimitedQuantity: 'LIMITED_QUANTITY',
|
|
3686
3749
|
MagnetizedMaterial: 'MAGNETIZED_MATERIAL',
|
|
3687
3750
|
NotRestrictedA02: 'NOT_RESTRICTED_A02',
|
|
@@ -4135,6 +4198,31 @@ export const landedCostWeightUnit = {
|
|
|
4135
4198
|
Oz: 'OZ',
|
|
4136
4199
|
T: 'T',
|
|
4137
4200
|
};
|
|
4201
|
+
export const laneRuleAccess = {
|
|
4202
|
+
Ddp: 'DDP',
|
|
4203
|
+
LcGuarantee: 'LC_GUARANTEE',
|
|
4204
|
+
PostalOperator: 'POSTAL_OPERATOR',
|
|
4205
|
+
PostalOperatorMerchant: 'POSTAL_OPERATOR_MERCHANT',
|
|
4206
|
+
};
|
|
4207
|
+
export const laneRuleOperator = {
|
|
4208
|
+
Eq: 'EQ',
|
|
4209
|
+
Gt: 'GT',
|
|
4210
|
+
Gte: 'GTE',
|
|
4211
|
+
Lt: 'LT',
|
|
4212
|
+
Lte: 'LTE',
|
|
4213
|
+
Neq: 'NEQ',
|
|
4214
|
+
};
|
|
4215
|
+
export const laneRuleSubject = {
|
|
4216
|
+
Cif: 'CIF',
|
|
4217
|
+
Cost: 'COST',
|
|
4218
|
+
Duty: 'DUTY',
|
|
4219
|
+
ItemsTotal: 'ITEMS_TOTAL',
|
|
4220
|
+
Tax: 'TAX',
|
|
4221
|
+
};
|
|
4222
|
+
export const laneThresholdType = {
|
|
4223
|
+
Duty: 'DUTY',
|
|
4224
|
+
Tax: 'TAX',
|
|
4225
|
+
};
|
|
4138
4226
|
export const languageCode = {
|
|
4139
4227
|
Af: 'AF',
|
|
4140
4228
|
Am: 'AM',
|
|
@@ -4311,6 +4399,7 @@ export const manifestSource = {
|
|
|
4311
4399
|
Api: 'API',
|
|
4312
4400
|
Ipc: 'IPC',
|
|
4313
4401
|
Other: 'OTHER',
|
|
4402
|
+
PddpReconciliation: 'PDDP_RECONCILIATION',
|
|
4314
4403
|
Post: 'POST',
|
|
4315
4404
|
Upu: 'UPU',
|
|
4316
4405
|
Usps: 'USPS',
|
|
@@ -4351,6 +4440,14 @@ export const manualClassificationStatus = {
|
|
|
4351
4440
|
Active: 'ACTIVE',
|
|
4352
4441
|
Archived: 'ARCHIVED',
|
|
4353
4442
|
};
|
|
4443
|
+
export const manualCredentialFieldRequirement = {
|
|
4444
|
+
Optional: 'OPTIONAL',
|
|
4445
|
+
Required: 'REQUIRED',
|
|
4446
|
+
};
|
|
4447
|
+
export const manualCredentialFieldType = {
|
|
4448
|
+
Password: 'PASSWORD',
|
|
4449
|
+
Text: 'TEXT',
|
|
4450
|
+
};
|
|
4354
4451
|
export const markDraftPendingAtMonthStartStatus = {
|
|
4355
4452
|
Disabled: 'DISABLED',
|
|
4356
4453
|
Enabled: 'ENABLED',
|
|
@@ -4458,9 +4555,9 @@ export const orderMerchantOfRecordType = {
|
|
|
4458
4555
|
Zonos: 'ZONOS',
|
|
4459
4556
|
};
|
|
4460
4557
|
export const orderModificationStatus = {
|
|
4461
|
-
|
|
4462
|
-
|
|
4463
|
-
|
|
4558
|
+
Committed: 'COMMITTED',
|
|
4559
|
+
Pending: 'PENDING',
|
|
4560
|
+
Voided: 'VOIDED',
|
|
4464
4561
|
};
|
|
4465
4562
|
export const orderNoteType = {
|
|
4466
4563
|
Comment: 'COMMENT',
|
|
@@ -4653,6 +4750,11 @@ export const packagingType = {
|
|
|
4653
4750
|
Polybag: 'POLYBAG',
|
|
4654
4751
|
Tube: 'TUBE',
|
|
4655
4752
|
};
|
|
4753
|
+
export const packingGroup = {
|
|
4754
|
+
I: 'I',
|
|
4755
|
+
Ii: 'II',
|
|
4756
|
+
Iii: 'III',
|
|
4757
|
+
};
|
|
4656
4758
|
export const packingPreference = {
|
|
4657
4759
|
AssignedBox: 'ASSIGNED_BOX',
|
|
4658
4760
|
Consolidated: 'CONSOLIDATED',
|
|
@@ -4684,6 +4786,11 @@ export const partyType = {
|
|
|
4684
4786
|
PortOfEntry: 'PORT_OF_ENTRY',
|
|
4685
4787
|
UltimateConsignee: 'ULTIMATE_CONSIGNEE',
|
|
4686
4788
|
};
|
|
4789
|
+
export const paymentAttributionSource = {
|
|
4790
|
+
InvoiceDetailReference: 'INVOICE_DETAIL_REFERENCE',
|
|
4791
|
+
InvoicePaymentMethod: 'INVOICE_PAYMENT_METHOD',
|
|
4792
|
+
OrderDetailReference: 'ORDER_DETAIL_REFERENCE',
|
|
4793
|
+
};
|
|
4687
4794
|
export const paymentInstrumentAccountHolderType = {
|
|
4688
4795
|
Company: 'COMPANY',
|
|
4689
4796
|
Individual: 'INDIVIDUAL',
|
|
@@ -4705,6 +4812,11 @@ export const paymentInstrumentType = {
|
|
|
4705
4812
|
export const paymentInstrumentVaultProvider = {
|
|
4706
4813
|
BasisTheory: 'BASIS_THEORY',
|
|
4707
4814
|
};
|
|
4815
|
+
export const paymentMethodRemoveType = {
|
|
4816
|
+
Airwallex: 'AIRWALLEX',
|
|
4817
|
+
Stripe_1: 'STRIPE_1',
|
|
4818
|
+
Stripe_2: 'STRIPE_2',
|
|
4819
|
+
};
|
|
4708
4820
|
export const paymentNetworkTokenStatus = {
|
|
4709
4821
|
Active: 'ACTIVE',
|
|
4710
4822
|
Inactive: 'INACTIVE',
|
|
@@ -5334,6 +5446,11 @@ export const questionnaireInferState = {
|
|
|
5334
5446
|
Partial: 'PARTIAL',
|
|
5335
5447
|
ReadyToAttest: 'READY_TO_ATTEST',
|
|
5336
5448
|
};
|
|
5449
|
+
export const questionnaireReleaseImpact = {
|
|
5450
|
+
Compatible: 'COMPATIBLE',
|
|
5451
|
+
Reanswer: 'REANSWER',
|
|
5452
|
+
Reattest: 'REATTEST',
|
|
5453
|
+
};
|
|
5337
5454
|
export const questionnaireStatus = {
|
|
5338
5455
|
Active: 'ACTIVE',
|
|
5339
5456
|
Deprecated: 'DEPRECATED',
|
|
@@ -5912,6 +6029,11 @@ export const stripeTrialEndBehavior = {
|
|
|
5912
6029
|
CreateInvoice: 'CREATE_INVOICE',
|
|
5913
6030
|
Pause: 'PAUSE',
|
|
5914
6031
|
};
|
|
6032
|
+
export const taxCalculationType = {
|
|
6033
|
+
Cif: 'CIF',
|
|
6034
|
+
Custom: 'CUSTOM',
|
|
6035
|
+
Fob: 'FOB',
|
|
6036
|
+
};
|
|
5915
6037
|
export const taxIdType = {
|
|
5916
6038
|
Cnp: 'CNP',
|
|
5917
6039
|
Cuil: 'CUIL',
|
|
@@ -814,7 +814,7 @@ const sortServiceLevelOptionsByAmount = (serviceLevels) => {
|
|
|
814
814
|
* Validate checkout session before confirming payment
|
|
815
815
|
*/
|
|
816
816
|
const validateCheckoutSession = async () => {
|
|
817
|
-
var _a;
|
|
817
|
+
var _a, _b;
|
|
818
818
|
// get checkout session info
|
|
819
819
|
const { errors, json } = await getCheckoutSession();
|
|
820
820
|
if (errors.length || !json) {
|
|
@@ -829,8 +829,16 @@ const validateCheckoutSession = async () => {
|
|
|
829
829
|
valid: false,
|
|
830
830
|
};
|
|
831
831
|
}
|
|
832
|
-
// Make sure landed cost is found in the checkout session
|
|
833
|
-
|
|
832
|
+
// Make sure landed cost is found in the checkout session. Order-modification
|
|
833
|
+
// payment-only sessions (skip-to-payment, no shipping step) never carry a
|
|
834
|
+
// landedCost on the checkout session — same reason stripeStoreConfirmPayment
|
|
835
|
+
// skips its own selectedLandedCost guard for this flow. Inferred here from
|
|
836
|
+
// the session itself (order attached + not completed) rather than a
|
|
837
|
+
// caller-supplied flag, so every call site behaves consistently without
|
|
838
|
+
// needing to know about this special case.
|
|
839
|
+
const isOrderModificationPaymentOnlySession = !!(((_a = json.checkoutSession.order) === null || _a === void 0 ? void 0 : _a.id) && !json.checkoutSession.completedAt);
|
|
840
|
+
if (!isOrderModificationPaymentOnlySession &&
|
|
841
|
+
!((_b = json.checkoutSession.landedCost) === null || _b === void 0 ? void 0 : _b.id)) {
|
|
834
842
|
logError('Landed cost is not found in the checkout session before confirming payment.');
|
|
835
843
|
void sendErrorLog({
|
|
836
844
|
endpoint: 'validateCheckoutSession',
|
|
@@ -2372,6 +2380,19 @@ const cartStoreHasOneEligibleItem = () => {
|
|
|
2372
2380
|
// if there is no item restricted found => all items are restricted
|
|
2373
2381
|
return !!checkItems.find(item => !item.isRestricted);
|
|
2374
2382
|
};
|
|
2383
|
+
/**
|
|
2384
|
+
* An order-modification payment-only session (skip-to-payment, no shipping
|
|
2385
|
+
* step): a session tied to an order that hasn't completed yet, meaning the
|
|
2386
|
+
* shopper is only paying a delta against an already-approved landed cost.
|
|
2387
|
+
* Single source of truth for this detection — previously duplicated inline
|
|
2388
|
+
* at each call site, which let one of them (the forceDialogOpen/preview init
|
|
2389
|
+
* path) miss it entirely.
|
|
2390
|
+
*/
|
|
2391
|
+
const cartStoreIsOrderModificationPaymentOnlySession = () => {
|
|
2392
|
+
var _a, _b;
|
|
2393
|
+
return !!(((_b = (_a = cartStore.checkoutSession) === null || _a === void 0 ? void 0 : _a.order) === null || _b === void 0 ? void 0 : _b.id) &&
|
|
2394
|
+
!cartStore.checkoutSession.completedAt);
|
|
2395
|
+
};
|
|
2375
2396
|
const cartStoreSetCheckoutSession = (checkoutSession) => {
|
|
2376
2397
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
2377
2398
|
// update stripe store with updated information
|
|
@@ -2729,4 +2750,4 @@ const cartStoreUpdateStoreCredit = () => {
|
|
|
2729
2750
|
}, 300);
|
|
2730
2751
|
};
|
|
2731
2752
|
|
|
2732
|
-
export {
|
|
2753
|
+
export { cartStoreGetMethod as $, storeCreditStoreApplyCredit as A, storeCreditStoreCoversFullAmount as B, validateCheckoutSession as C, storeCreditStoreCreateOrder as D, stripeStoreConfirmPayment as E, stripeStoreHandleInventoryRefund as F, policyConsentStore as G, stripeStoreReset as H, cartStoreOnChange as I, stripeStoreOnChange as J, storeCreditStoreGetEffectiveAmount as K, stripeStoreRecordPolicyConsent as L, stripeStoreBuildAddressForPartyCreate as M, cartStoreUpdateSelectedShippingOption as N, cartStoreHasOneEligibleItem as O, isEuDapRemittance as P, stripeStoreApplyPromoCode as Q, stripeStoreRemovePromoCode as R, stripeStoreResetPromoCode as S, stripeStoreMessageBasedOnStatus as T, storeCreditStore as U, storeCreditStoreReset as V, extractName as W, stripeStoreTranslateAddressToLatin as X, getCountryField as Y, stripeStoreAsyncAddressUpdate as Z, cartStoreGetShippingTransitInfo as _, stripeStoreSaveDomesticShippingSession as a, sortServiceLevelOptionsByAmount as a0, getEnabledPolicies as a1, storeCreditStoreSetEnabled as a2, storeCreditStoreSetUseFullBalance as a3, cartStoreUpdateStoreCredit as a4, storeCreditStoreSetAmount as a5, storeCreditStoreRefreshBalance as a6, stripeStore as b, stripeStoreRetrievePayment as c, cartStore as d, cartStoreUpdateItems as e, cartStoreReset as f, getCheckoutSession as g, cartStoreResetTabItems as h, initStripeElements as i, cartStoreClearCheckoutInterval as j, stripeStoreInitCheckoutSession as k, stripeStoreGetPaymentIntent as l, cartStoreIsOrderModificationPaymentOnlySession as m, stripeStoreHandleInventoryCheck as n, cartStoreStartCheckoutInterval as o, policyConsentStoreReset as p, getCheckoutSessionBody as q, cartStoreUpdateToErrorState as r, stripeStoreGetDomesticShippingSession as s, trackConversionEvent as t, stripeStoreCleanupDomesticShippingSession as u, cartStoreSetCheckoutSession as v, stripeStorePrefetchLandedCost as w, cartStoreNextStep as x, isPolicyConsentRequired as y, stripeStoreUpdateCheckoutSessionBaseCurrency as z };
|
|
@@ -2,7 +2,7 @@ import { c as createStore, z as zonosStore } from './zonosStore-eca1e364.js';
|
|
|
2
2
|
import { t as translate, l as localizationStore, s as storageStore } from './localization-36a4dc22.js';
|
|
3
3
|
import { l as logError$1, h as handleFetch, s as sendErrorLog } from './handleFetch-a844cac1.js';
|
|
4
4
|
import { l as log, b as allLogs } from './VarianceTest-572cecf5.js';
|
|
5
|
-
import { b as stripeStore,
|
|
5
|
+
import { b as stripeStore, M as stripeStoreBuildAddressForPartyCreate, d as cartStore, N as cartStoreUpdateSelectedShippingOption } from './cart-d04742f5.js';
|
|
6
6
|
|
|
7
7
|
// src/constant/common.ts
|
|
8
8
|
function _array_like_to_array(arr, len) {
|
package/dist/esm/index.js
CHANGED
|
@@ -131,7 +131,7 @@ const getZonosQaUrl = () => {
|
|
|
131
131
|
return null;
|
|
132
132
|
}
|
|
133
133
|
const qaUrl = extractZonosQaUrl(window.location.href);
|
|
134
|
-
const cdnUrl = "https://v1.3.
|
|
134
|
+
const cdnUrl = "https://v1.3.286.js.zonos.com";
|
|
135
135
|
// when the qaUrl is not set and the built URL is from the test domain, use the test domain for testing
|
|
136
136
|
if (!qaUrl &&
|
|
137
137
|
(cdnUrl.includes('test.') ||
|
|
@@ -397,10 +397,10 @@ const zonosLoadUrl = (() => {
|
|
|
397
397
|
return null;
|
|
398
398
|
})();
|
|
399
399
|
const startLoadTime = Date.now();
|
|
400
|
-
const ZONOS_URL = "https://v1.3.
|
|
401
|
-
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.
|
|
402
|
-
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.
|
|
403
|
-
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.
|
|
400
|
+
const ZONOS_URL = "https://v1.3.286.js.zonos.com";
|
|
401
|
+
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.286";
|
|
402
|
+
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.286";
|
|
403
|
+
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.286";
|
|
404
404
|
const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
|
|
405
405
|
const GOOGLE_FONT_REGEX = /^https:\/\/fonts\.googleapis\.com/;
|
|
406
406
|
class Zonos {
|
|
@@ -418,7 +418,7 @@ Zonos.iframeLogType = typeof window !== 'undefined'
|
|
|
418
418
|
? new URLSearchParams(window.location.search).get('iframeLogType')
|
|
419
419
|
: null;
|
|
420
420
|
Zonos.isBigCommerce = false;
|
|
421
|
-
Zonos.releaseDate = "
|
|
421
|
+
Zonos.releaseDate = "1788207564864";
|
|
422
422
|
Zonos.isLegacyCheckout = false;
|
|
423
423
|
Zonos.googleAnalyticId = null;
|
|
424
424
|
Zonos.googleAnalyticReady = false;
|
|
@@ -443,7 +443,7 @@ Zonos.isNpm = true;
|
|
|
443
443
|
Zonos.zonosQaUrl = null;
|
|
444
444
|
Zonos.zonosQaUrlApi = null;
|
|
445
445
|
Zonos.trackEventLogs = [];
|
|
446
|
-
Zonos.version = `v${"1.3.
|
|
446
|
+
Zonos.version = `v${"1.3.286"}`;
|
|
447
447
|
Zonos.modeAlerted = false;
|
|
448
448
|
Zonos.cartData = null;
|
|
449
449
|
Zonos.paypal = null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as createStore, z as zonosStore } from './zonosStore-eca1e364.js';
|
|
2
|
-
import { b as stripeStore,
|
|
2
|
+
import { b as stripeStore, M as stripeStoreBuildAddressForPartyCreate, d as cartStore, N as cartStoreUpdateSelectedShippingOption } from './cart-d04742f5.js';
|
|
3
3
|
import { s as storageStore } from './localization-36a4dc22.js';
|
|
4
4
|
import { h as handleFetch, s as sendErrorLog, l as logError } from './handleFetch-a844cac1.js';
|
|
5
5
|
import { b as allLogs } from './VarianceTest-572cecf5.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z as zonosStore, c as createStore } from './zonosStore-eca1e364.js';
|
|
2
|
-
import { t as trackConversionEvent,
|
|
2
|
+
import { t as trackConversionEvent, y as isPolicyConsentRequired, G as policyConsentStore, C as validateCheckoutSession, b as stripeStore, d as cartStore, n as stripeStoreHandleInventoryCheck, A as storeCreditStoreApplyCredit, L as stripeStoreRecordPolicyConsent, B as storeCreditStoreCoversFullAmount, D as storeCreditStoreCreateOrder, x as cartStoreNextStep, j as cartStoreClearCheckoutInterval, K as storeCreditStoreGetEffectiveAmount } from './cart-d04742f5.js';
|
|
3
3
|
import { t as translate, s as storageStore } from './localization-36a4dc22.js';
|
|
4
4
|
import { h as handleFetch, g as getIsTestMode, l as logError, j as jsonParse } from './handleFetch-a844cac1.js';
|
|
5
5
|
import { i as isContrastColor } from './isContrastColor-9fa0d013.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as registerInstance, d as createEvent, h, a as Host, g as getElement } from './index-cfd394c8.js';
|
|
2
2
|
import { t as translate, s as storageStore, A as storageStoreOnChange, l as localizationStore } from './localization-36a4dc22.js';
|
|
3
3
|
import { z as zonosStore, f as zonosStoreFontFamily } from './zonosStore-eca1e364.js';
|
|
4
|
-
import { M as MIN_POSTAL_CODE_LENGTH } from './getMissingRequiredShippingFields-
|
|
4
|
+
import { M as MIN_POSTAL_CODE_LENGTH } from './getMissingRequiredShippingFields-f0878e32.js';
|
|
5
5
|
import { c as classes } from './classes-0d95c529.js';
|
|
6
|
-
import {
|
|
6
|
+
import { W as extractName, b as stripeStore, w as stripeStorePrefetchLandedCost, t as trackConversionEvent } from './cart-d04742f5.js';
|
|
7
7
|
import { R as RemoveIcon$1 } from './RemoveIcon-9dc5dd1a.js';
|
|
8
8
|
import { i as isTextContainsNonLatinChars, c as containsNonLatinChars } from './containsNonLatinChars-2d8810c3.js';
|
|
9
9
|
import { g as getBorderRadius } from './getBorderRadius-1f7be586.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, d as createEvent, h, a as Host, g as getElement } from './index-cfd394c8.js';
|
|
2
2
|
import { t as throttle_1 } from './throttle-c4c24e86.js';
|
|
3
|
-
import {
|
|
3
|
+
import { W as extractName, b as stripeStore, t as trackConversionEvent, J as stripeStoreOnChange, w as stripeStorePrefetchLandedCost, d as cartStore } from './cart-d04742f5.js';
|
|
4
4
|
import { s as storageStore, B as getFallbackDefaultCountryCode, t as translate, A as storageStoreOnChange, l as localizationStore } from './localization-36a4dc22.js';
|
|
5
5
|
import { z as zonosStore, g as getZonosStoreTheme, f as zonosStoreFontFamily } from './zonosStore-eca1e364.js';
|
|
6
6
|
import { l as logError, i as isCheckoutMobile, s as sendErrorLog } from './handleFetch-a844cac1.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, d as createEvent, h, a as Host, g as getElement } from './index-cfd394c8.js';
|
|
2
|
-
import { b as airwallexStore, c as collectStore, f as airwallexStoreInitSdk, l as createElement, m as airwallexStoreGetLocale, n as airwallexStoreOnChange } from './collect-
|
|
3
|
-
import { d as cartStore } from './cart-
|
|
2
|
+
import { b as airwallexStore, c as collectStore, f as airwallexStoreInitSdk, l as createElement, m as airwallexStoreGetLocale, n as airwallexStoreOnChange } from './collect-4c310a16.js';
|
|
3
|
+
import { d as cartStore } from './cart-d04742f5.js';
|
|
4
4
|
import { e as localizationStoreOnChange, t as translate, l as localizationStore } from './localization-36a4dc22.js';
|
|
5
5
|
import { z as zonosStore } from './zonosStore-eca1e364.js';
|
|
6
6
|
import { l as log } from './VarianceTest-572cecf5.js';
|
|
@@ -2,10 +2,10 @@ import { r as registerInstance, h, a as Host, g as getElement, d as createEvent
|
|
|
2
2
|
import { f as zonosStoreFontFamily } from './zonosStore-eca1e364.js';
|
|
3
3
|
import { c as classes } from './classes-0d95c529.js';
|
|
4
4
|
import { g as getBorderRadius } from './getBorderRadius-1f7be586.js';
|
|
5
|
-
import { b as stripeStore, t as trackConversionEvent } from './cart-
|
|
5
|
+
import { b as stripeStore, t as trackConversionEvent } from './cart-d04742f5.js';
|
|
6
6
|
import { s as storageStore } from './localization-36a4dc22.js';
|
|
7
7
|
import { l as logError } from './handleFetch-a844cac1.js';
|
|
8
|
-
import { d as paypalStoreInitButtons, e as paypalStoreOnChange } from './paypal-
|
|
8
|
+
import { d as paypalStoreInitButtons, e as paypalStoreOnChange } from './paypal-997935ab.js';
|
|
9
9
|
import { l as log } from './VarianceTest-572cecf5.js';
|
|
10
10
|
import './isDarkColor-939d8e9c.js';
|
|
11
11
|
import './TaxId-63a14057.js';
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { r as registerInstance, e as getAssetPath, h, a as Host, F as Fragment, d as createEvent, g as getElement } from './index-cfd394c8.js';
|
|
2
|
-
import { d as cartStore,
|
|
2
|
+
import { d as cartStore, O as cartStoreHasOneEligibleItem, P as isEuDapRemittance, m as cartStoreIsOrderModificationPaymentOnlySession, b as stripeStore, Q as stripeStoreApplyPromoCode, R as stripeStoreRemovePromoCode, H as stripeStoreReset, c as stripeStoreRetrievePayment, t as trackConversionEvent, S as stripeStoreResetPromoCode, T as stripeStoreMessageBasedOnStatus, U as storeCreditStore, V as storeCreditStoreReset, B as storeCreditStoreCoversFullAmount, y as isPolicyConsentRequired, G as policyConsentStore, L as stripeStoreRecordPolicyConsent, x as cartStoreNextStep, W as extractName, X as stripeStoreTranslateAddressToLatin, I as cartStoreOnChange, Y as getCountryField, Z as stripeStoreAsyncAddressUpdate, N as cartStoreUpdateSelectedShippingOption, _ as cartStoreGetShippingTransitInfo, $ as cartStoreGetMethod, a0 as sortServiceLevelOptionsByAmount } from './cart-d04742f5.js';
|
|
3
3
|
import { t as translate, l as localizationStore, s as storageStore, k as languages, v as getExchangeRate, w as numberFormat, e as localizationStoreOnChange } from './localization-36a4dc22.js';
|
|
4
|
-
import { r as renderCheckoutCurrency } from './renderCheckoutCurrency-
|
|
4
|
+
import { r as renderCheckoutCurrency } from './renderCheckoutCurrency-e0e16eb7.js';
|
|
5
5
|
import { c as cleanHtmlMarkdown } from './cleanHtmlMarkdown-87d195f6.js';
|
|
6
6
|
import { c as classes } from './classes-0d95c529.js';
|
|
7
7
|
import { z as zonosStore, c as createStore, h as zonosStoreOnChange, g as getZonosStoreTheme, f as zonosStoreFontFamily } from './zonosStore-eca1e364.js';
|
|
8
8
|
import { D as DUTY_KEY, T as TAXES_KEY, h as hasInclusivePrice } from './hasInclusivePrice-d801be22.js';
|
|
9
9
|
import { i as isSameHostCheckoutLink } from './isSameHostCheckoutLink-c1b88ab7.js';
|
|
10
|
-
import { s as submitAnalytics, c as paypalStoreReset, a as paypalStore } from './paypal-
|
|
10
|
+
import { s as submitAnalytics, c as paypalStoreReset, a as paypalStore } from './paypal-997935ab.js';
|
|
11
11
|
import { h as handleFetch, s as sendErrorLog, j as jsonParse, g as getIsTestMode, i as isCheckoutMobile, a as getIsStagingMode, l as logError } from './handleFetch-a844cac1.js';
|
|
12
12
|
import { c as createCustomEvent } from './createCustomEvent-58159025.js';
|
|
13
13
|
import { g as getBorderRadius } from './getBorderRadius-1f7be586.js';
|
|
14
14
|
import { l as log, b as allLogs } from './VarianceTest-572cecf5.js';
|
|
15
15
|
import { s as shouldShowLanguageSelect } from './shouldShowLanguageSelect-328f50e2.js';
|
|
16
|
-
import { p as placeTestOrder } from './placeTestOrder-
|
|
16
|
+
import { p as placeTestOrder } from './placeTestOrder-a53f2056.js';
|
|
17
17
|
import { i as isDarkColor } from './isDarkColor-939d8e9c.js';
|
|
18
18
|
import { g as getContrastColor } from './getContrastColor-4c0ae8c1.js';
|
|
19
19
|
import { i as isColorVariable } from './isColorVariable-0a94004f.js';
|
|
20
20
|
import { u as updateCheckoutSessionAttributes } from './updateCheckoutSessionAttributes-23b222de.js';
|
|
21
|
-
import { g as getMissingRequiredShippingFields } from './getMissingRequiredShippingFields-
|
|
21
|
+
import { g as getMissingRequiredShippingFields } from './getMissingRequiredShippingFields-f0878e32.js';
|
|
22
22
|
import { c as containsNonLatinChars } from './containsNonLatinChars-2d8810c3.js';
|
|
23
23
|
import { s as shouldRenderShortAddressCodeInput, a as shouldRenderTaxIdInput } from './shouldRenderTaxIdInput-ef7b5860.js';
|
|
24
24
|
import { e as euCountryCodes } from './TaxId-63a14057.js';
|
|
@@ -317,7 +317,14 @@ const ZonosCartSubtotal = class {
|
|
|
317
317
|
const cartTotal = cartStore.step === 'customer-info'
|
|
318
318
|
? cartStore.subtotal + cartStore.adjustmentTotal
|
|
319
319
|
: cartStore.total;
|
|
320
|
-
|
|
320
|
+
// Order-modification payment-only sessions have no landedCost at all
|
|
321
|
+
// (see validateCheckoutSession) - they're paying a flat delta, not a
|
|
322
|
+
// shipment - so duty/tax/shipping figures here would just be
|
|
323
|
+
// meaningless zeros rather than real data.
|
|
324
|
+
const isOrderModificationPaymentOnlySession = cartStoreIsOrderModificationPaymentOnlySession();
|
|
325
|
+
const showDutyTaxesInfo = !isOrderModificationPaymentOnlySession &&
|
|
326
|
+
(cartStore.step === 'payment' || cartStore.step === 'shipping');
|
|
327
|
+
const showShippingRow = !isOrderModificationPaymentOnlySession;
|
|
321
328
|
// EU 3-EUR cutover (05CHECK-893): when we collect and remit taxes for an EU
|
|
322
329
|
// DAP quote, taxes and fees are included while duties are paid on delivery.
|
|
323
330
|
const euDapDetails = this.getEuDapDetails();
|
|
@@ -329,7 +336,12 @@ const ZonosCartSubtotal = class {
|
|
|
329
336
|
// Store with no discount rules added in the dashboard, checkout would not display have promo code input
|
|
330
337
|
!cartStore.shouldHideDiscountInput &&
|
|
331
338
|
// Only show promo stuff if they are past customer info session in order to get landed cost with promo adjustment
|
|
332
|
-
cartStore.step !== 'customer-info'
|
|
339
|
+
cartStore.step !== 'customer-info' &&
|
|
340
|
+
// Order-modification payment-only sessions skip straight to the payment
|
|
341
|
+
// step with no customer-info/shipping step behind them — applying a
|
|
342
|
+
// promo code here would re-quote against a landed cost these sessions
|
|
343
|
+
// never went through, with no shipping step to return to.
|
|
344
|
+
!isOrderModificationPaymentOnlySession;
|
|
333
345
|
const appliedPromoCode = (_e = (_d = (_c = (_b = (_a = cartStore.landedCostData) === null || _a === void 0 ? void 0 : _a.find(Boolean)) === null || _b === void 0 ? void 0 : _b.landedCost.appliedAdjustments) === null || _c === void 0 ? void 0 : _c.find(x => { var _a; return ((_a = x.adjustment) === null || _a === void 0 ? void 0 : _a.source) === 'PROMO_CODE'; })) === null || _d === void 0 ? void 0 : _d.adjustment) === null || _e === void 0 ? void 0 : _e.name;
|
|
334
346
|
const applyPromoCode = async () => {
|
|
335
347
|
// Promo code apply button is clicked
|
|
@@ -414,12 +426,12 @@ const ZonosCartSubtotal = class {
|
|
|
414
426
|
return (h(Host, { class: "zonos--cart-subtotal zonos--elements" }, h("table", { class: "zonos--cart-table" }, h("tr", { class: "zonos--row zonos--cart-subtotal" }, h("td", { class: "zonos--column" }), h("td", { class: "zonos--column zonos--cart-subtotal-title" }, h("zonos-text", { type: "semiBoldLabel" }, translate('Cart subtotal')), h("zonos-text", { class: "zonos--caption", type: "caption" }, this.getCartSubtotalSubtitle())), h("td", { class: "zonos--column zonos--cart-subtotal-price" }, h("zonos-text", { type: "semiBoldLabel" }, renderCheckoutCurrency({
|
|
415
427
|
amount: subtotal,
|
|
416
428
|
isForeign: true,
|
|
417
|
-
})))), h("tr", { class: "zonos--row zonos--cart-shipping" }, h("td", { class: "zonos--column" }), h("td", { class: "zonos--column zonos--cart-subtotal-title" }, renderShippingInfo()), h("td", { class: "zonos--column zonos--cart-subtotal-price" }, cartStore.shipping
|
|
429
|
+
})))), showShippingRow && (h("tr", { class: "zonos--row zonos--cart-shipping" }, h("td", { class: "zonos--column" }), h("td", { class: "zonos--column zonos--cart-subtotal-title" }, renderShippingInfo()), h("td", { class: "zonos--column zonos--cart-subtotal-price" }, cartStore.shipping
|
|
418
430
|
? renderCheckoutCurrency({
|
|
419
431
|
amount: cartStore.shipping,
|
|
420
432
|
isForeign: true,
|
|
421
433
|
})
|
|
422
|
-
: '-')), showDutyTaxesInfo &&
|
|
434
|
+
: '-'))), showDutyTaxesInfo &&
|
|
423
435
|
(euDapDetails ? (
|
|
424
436
|
// EU DAP remittance: taxes and fees are collected/included, duties
|
|
425
437
|
// are estimated and paid upon delivery — show them on two lines.
|