@zonos/elements 1.3.50 → 1.3.52

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.
Files changed (208) hide show
  1. package/dist/cjs/CheckoutConfig-65376e00.js +40 -0
  2. package/dist/cjs/{cart-688d674d.js → cart-61a8983d.js} +238 -370
  3. package/dist/cjs/{createCustomEvent-01bacaea.js → createCustomEvent-228027b5.js} +3 -2
  4. package/dist/cjs/handleFetch-842c95b0.js +322 -0
  5. package/dist/cjs/index.cjs.js +75 -35
  6. package/dist/cjs/loader.cjs.js +1 -1
  7. package/dist/cjs/{paypal-ce1516ba.js → paypal-f1eb6621.js} +16 -16
  8. package/dist/cjs/zonos-address_8.cjs.entry.js +4 -4
  9. package/dist/cjs/{zonos-cart-items_12.cjs.entry.js → zonos-badge_13.cjs.entry.js} +41 -9
  10. package/dist/cjs/zonos-checkout.cjs.entry.js +75 -174
  11. package/dist/cjs/zonos-controller.cjs.entry.js +27 -25
  12. package/dist/cjs/zonos-country-flag.cjs.entry.js +2 -2
  13. package/dist/cjs/zonos-country-select_4.cjs.entry.js +2 -2
  14. package/dist/cjs/zonos-elements.cjs.js +1 -1
  15. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +2 -2
  16. package/dist/cjs/zonos-hello.cjs.entry.js +11 -11
  17. package/dist/cjs/zonos-language-select_2.cjs.entry.js +2 -2
  18. package/dist/cjs/zonos-notification_3.cjs.entry.js +9 -9
  19. package/dist/cjs/zonos-tooltip.cjs.entry.js +27 -0
  20. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js +5 -2
  21. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +44 -20
  22. package/dist/collection/components/store/checkout/cart.js +14 -2
  23. package/dist/collection/components/store/checkout/stripe.js +9 -4
  24. package/dist/collection/components/store/translationStore/strings.arabic.js +3 -3
  25. package/dist/collection/components/store/translationStore/strings.base.js +3 -3
  26. package/dist/collection/components/store/translationStore/strings.chinese.js +3 -3
  27. package/dist/collection/components/store/translationStore/strings.danish.js +3 -3
  28. package/dist/collection/components/store/translationStore/strings.dutch.js +3 -3
  29. package/dist/collection/components/store/translationStore/strings.french.js +3 -3
  30. package/dist/collection/components/store/translationStore/strings.german.js +3 -3
  31. package/dist/collection/components/store/translationStore/strings.hebrew.js +3 -3
  32. package/dist/collection/components/store/translationStore/strings.indonesian.js +3 -3
  33. package/dist/collection/components/store/translationStore/strings.italian.js +3 -3
  34. package/dist/collection/components/store/translationStore/strings.japanese.js +3 -3
  35. package/dist/collection/components/store/translationStore/strings.korean.js +3 -3
  36. package/dist/collection/components/store/translationStore/strings.norwegian.js +3 -3
  37. package/dist/collection/components/store/translationStore/strings.polish.js +3 -3
  38. package/dist/collection/components/store/translationStore/strings.portuguese.js +3 -3
  39. package/dist/collection/components/store/translationStore/strings.russian.js +3 -3
  40. package/dist/collection/components/store/translationStore/strings.spanish.js +3 -3
  41. package/dist/collection/components/store/translationStore/strings.swedish.js +3 -3
  42. package/dist/collection/components/store/translationStore/strings.turkish.js +3 -3
  43. package/dist/collection/components/store/translationStore/strings.vietnamese.js +3 -3
  44. package/dist/collection/components/utils/api/buildCartItemsByTempCart.js +14 -14
  45. package/dist/collection/components/utils/api/calculateLandedCostNormalized.js +28 -0
  46. package/dist/collection/components/utils/api/cartCalculateLandedCost.js +19 -0
  47. package/dist/collection/components/utils/api/prepCalculateLandedCost.js +65 -0
  48. package/dist/collection/components/utils/api/triggerBuildLandedCost.js +2 -2
  49. package/dist/collection/components/utils/checkout/initCheckout.js +4 -2
  50. package/dist/collection/components/utils/handleFetch.js +6 -1
  51. package/dist/collection/environment.js +1 -1
  52. package/dist/collection/scripts/_getNextFallbackUrl.js +1 -0
  53. package/dist/collection/scripts/_getTempCartById.js +14 -0
  54. package/dist/collection/scripts/_zonosBase.js +39 -10
  55. package/dist/collection/scripts/cart/_getCartIdFromParam.js +9 -0
  56. package/dist/collection/scripts/cart/_setupCartData.js +18 -0
  57. package/dist/collection/types/checkout/CheckoutConfig.js +2 -1
  58. package/dist/collection/types/generated/graphql.customer.types.js +12 -0
  59. package/dist/collection/utils/formattedCloudflareApiUrl.js +8 -2
  60. package/dist/collection/utils/generateCloudflareDeployUrl.js +3 -0
  61. package/dist/esm/CheckoutConfig-57350b28.js +36 -0
  62. package/dist/esm/{cart-4f300fcb.js → cart-45d2861f.js} +194 -323
  63. package/dist/esm/{createCustomEvent-c5ed9070.js → createCustomEvent-3fcc948a.js} +2 -1
  64. package/dist/esm/handleFetch-37cea185.js +315 -0
  65. package/dist/esm/index.js +56 -17
  66. package/dist/esm/loader.js +1 -1
  67. package/dist/esm/{paypal-70caf283.js → paypal-ee310945.js} +2 -2
  68. package/dist/esm/zonos-address_8.entry.js +2 -2
  69. package/dist/esm/{zonos-cart-items_12.entry.js → zonos-badge_13.entry.js} +40 -9
  70. package/dist/esm/zonos-checkout.entry.js +61 -160
  71. package/dist/esm/zonos-controller.entry.js +6 -4
  72. package/dist/esm/zonos-country-flag.entry.js +2 -2
  73. package/dist/esm/zonos-country-select_4.entry.js +2 -2
  74. package/dist/esm/zonos-elements.js +1 -1
  75. package/dist/esm/zonos-hello-dialog.entry.js +2 -2
  76. package/dist/esm/zonos-hello.entry.js +2 -2
  77. package/dist/esm/zonos-language-select_2.entry.js +2 -2
  78. package/dist/esm/zonos-notification_3.entry.js +3 -3
  79. package/dist/esm/zonos-tooltip.entry.js +23 -0
  80. package/dist/esm-es5/CheckoutConfig-57350b28.js +1 -0
  81. package/dist/esm-es5/cart-45d2861f.js +1 -0
  82. package/dist/esm-es5/{createCustomEvent-c5ed9070.js → createCustomEvent-3fcc948a.js} +1 -1
  83. package/dist/esm-es5/handleFetch-37cea185.js +1 -0
  84. package/dist/esm-es5/index.js +1 -1
  85. package/dist/esm-es5/loader.js +1 -1
  86. package/dist/esm-es5/{paypal-70caf283.js → paypal-ee310945.js} +1 -1
  87. package/dist/esm-es5/zonos-address_8.entry.js +1 -1
  88. package/dist/esm-es5/zonos-badge_13.entry.js +1 -0
  89. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  90. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  91. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  92. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  93. package/dist/esm-es5/zonos-elements.js +1 -1
  94. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  95. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  96. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  97. package/dist/esm-es5/zonos-notification_3.entry.js +1 -1
  98. package/dist/esm-es5/zonos-tooltip.entry.js +1 -0
  99. package/dist/scripts/index.d.ts +74 -87
  100. package/dist/scripts/index.js +1 -1
  101. package/dist/scripts/loadZonos.js +1 -1
  102. package/dist/scripts/zonos.js +1 -1
  103. package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +0 -2
  104. package/dist/types/components/store/checkout/cart.d.ts +13 -3
  105. package/dist/types/components/store/checkout/stripe.d.ts +3 -1
  106. package/dist/types/components/store/translationStore/strings.arabic.d.ts +3 -3
  107. package/dist/types/components/store/translationStore/strings.base.d.ts +3 -3
  108. package/dist/types/components/store/translationStore/strings.chinese.d.ts +3 -3
  109. package/dist/types/components/store/translationStore/strings.danish.d.ts +3 -3
  110. package/dist/types/components/store/translationStore/strings.dutch.d.ts +3 -3
  111. package/dist/types/components/store/translationStore/strings.french.d.ts +3 -3
  112. package/dist/types/components/store/translationStore/strings.german.d.ts +3 -3
  113. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +3 -3
  114. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +3 -3
  115. package/dist/types/components/store/translationStore/strings.italian.d.ts +3 -3
  116. package/dist/types/components/store/translationStore/strings.japanese.d.ts +3 -3
  117. package/dist/types/components/store/translationStore/strings.korean.d.ts +3 -3
  118. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +3 -3
  119. package/dist/types/components/store/translationStore/strings.polish.d.ts +3 -3
  120. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +3 -3
  121. package/dist/types/components/store/translationStore/strings.russian.d.ts +3 -3
  122. package/dist/types/components/store/translationStore/strings.spanish.d.ts +3 -3
  123. package/dist/types/components/store/translationStore/strings.swedish.d.ts +3 -3
  124. package/dist/types/components/store/translationStore/strings.turkish.d.ts +3 -3
  125. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +3 -3
  126. package/dist/types/components/store/translationStore.d.ts +1 -1
  127. package/dist/types/components/utils/api/buildCartItemsByTempCart.d.ts +8 -3
  128. package/dist/types/components/utils/api/calculateLandedCostNormalized.d.ts +2 -0
  129. package/dist/types/components/utils/api/cartCalculateLandedCost.d.ts +5 -0
  130. package/dist/types/components/utils/api/prepCalculateLandedCost.d.ts +5 -1
  131. package/dist/types/components/utils/checkout/getIsTestMode.d.ts +1 -1
  132. package/dist/types/scripts/_getNextFallbackUrl.d.ts +1 -0
  133. package/dist/types/scripts/_getTempCartById.d.ts +8 -0
  134. package/dist/types/scripts/_zonosBase.d.ts +15 -12
  135. package/dist/types/scripts/cart/_getCartIdFromParam.d.ts +4 -0
  136. package/dist/types/scripts/cart/_setupCartData.d.ts +7 -0
  137. package/dist/types/types/checkout/CheckoutConfig.d.ts +18 -3
  138. package/dist/types/types/checkout/api/CalculateLandedCostRequest.d.ts +42 -1
  139. package/dist/types/types/checkout/api/NormalizedTempCart.d.ts +37 -0
  140. package/dist/types/types/generated/graphql.customer.types.d.ts +249 -2
  141. package/dist/types/types/generated/graphql.customer.types.ts +251 -3
  142. package/dist/types/utils/formattedCloudflareApiUrl.d.ts +2 -2
  143. package/dist/zonos-elements/index.esm.js +1 -1
  144. package/dist/zonos-elements/p-042c466d.system.entry.js +1 -0
  145. package/dist/zonos-elements/p-10cb0064.entry.js +1 -0
  146. package/dist/zonos-elements/{p-fe198a6c.entry.js → p-259ccf8d.entry.js} +1 -1
  147. package/dist/zonos-elements/p-2a47d2cc.system.entry.js +1 -0
  148. package/dist/zonos-elements/{p-89b1f4a5.entry.js → p-31eb835c.entry.js} +1 -1
  149. package/dist/zonos-elements/{p-4849604d.entry.js → p-36360905.entry.js} +1 -1
  150. package/dist/zonos-elements/{p-322600aa.system.entry.js → p-3703b814.system.entry.js} +1 -1
  151. package/dist/zonos-elements/p-4146feec.js +1 -0
  152. package/dist/zonos-elements/p-446c8f02.system.entry.js +1 -0
  153. package/dist/zonos-elements/{p-31905b60.system.js → p-5590f90c.system.js} +1 -1
  154. package/dist/zonos-elements/p-588396df.js +1 -0
  155. package/dist/zonos-elements/{p-124e3426.js → p-6e59c6e4.js} +2 -2
  156. package/dist/zonos-elements/p-6eedc3f8.entry.js +1 -0
  157. package/dist/zonos-elements/p-747eed39.entry.js +1 -0
  158. package/dist/zonos-elements/{p-d1cd0a5f.system.entry.js → p-8228e87c.system.entry.js} +1 -1
  159. package/dist/zonos-elements/p-827868e6.entry.js +1 -0
  160. package/dist/zonos-elements/{p-a67578ae.entry.js → p-88005b94.entry.js} +1 -1
  161. package/dist/zonos-elements/p-895fdefb.js +1 -0
  162. package/dist/zonos-elements/p-8f7773b0.system.js +1 -0
  163. package/dist/zonos-elements/{p-480a6094.entry.js → p-8fa49d94.entry.js} +1 -1
  164. package/dist/zonos-elements/p-a74a7afa.system.js +1 -0
  165. package/dist/zonos-elements/p-b1861e64.system.js +1 -0
  166. package/dist/zonos-elements/{p-ec31cd17.system.entry.js → p-b842b96a.system.entry.js} +1 -1
  167. package/dist/zonos-elements/{p-1719bedd.entry.js → p-bb186075.entry.js} +1 -1
  168. package/dist/zonos-elements/{p-8af4a9e7.system.entry.js → p-c008648a.system.entry.js} +1 -1
  169. package/dist/zonos-elements/p-c78dd680.system.js +1 -1
  170. package/dist/zonos-elements/{p-22e8d4ad.system.entry.js → p-cd4ad1be.system.entry.js} +1 -1
  171. package/dist/zonos-elements/{p-e7e73693.system.entry.js → p-d62e6bb0.system.entry.js} +1 -1
  172. package/dist/zonos-elements/{p-40d52dd6.system.entry.js → p-dc12f30a.system.entry.js} +1 -1
  173. package/dist/zonos-elements/p-eb2aedd0.js +1 -0
  174. package/dist/zonos-elements/{p-ceb8b836.system.js → p-f124e459.system.js} +2 -2
  175. package/dist/zonos-elements/p-f527cd5b.entry.js +1 -0
  176. package/dist/zonos-elements/p-f826b979.system.entry.js +1 -0
  177. package/dist/zonos-elements/p-f87a635b.system.js +1 -0
  178. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  179. package/package.json +2 -1
  180. package/dist/cjs/logError-4e2f2020.js +0 -58
  181. package/dist/cjs/zonos-badge_2.cjs.entry.js +0 -57
  182. package/dist/collection/components/utils/api/tempCartItem/getAttributes.js +0 -66
  183. package/dist/collection/components/utils/api/tempCartItem/getMeasurements.js +0 -58
  184. package/dist/esm/logError-c456c092.js +0 -55
  185. package/dist/esm/zonos-badge_2.entry.js +0 -52
  186. package/dist/esm-es5/cart-4f300fcb.js +0 -1
  187. package/dist/esm-es5/logError-c456c092.js +0 -1
  188. package/dist/esm-es5/zonos-badge_2.entry.js +0 -1
  189. package/dist/esm-es5/zonos-cart-items_12.entry.js +0 -1
  190. package/dist/types/components/utils/api/tempCartItem/getAttributes.d.ts +0 -11
  191. package/dist/types/components/utils/api/tempCartItem/getMeasurements.d.ts +0 -7
  192. package/dist/types/types/checkout/api/TempCart.d.ts +0 -80
  193. package/dist/zonos-elements/p-00f219bd.entry.js +0 -1
  194. package/dist/zonos-elements/p-05dff37f.js +0 -1
  195. package/dist/zonos-elements/p-1f2db2ff.entry.js +0 -1
  196. package/dist/zonos-elements/p-2018969a.js +0 -1
  197. package/dist/zonos-elements/p-27f2e8af.system.entry.js +0 -1
  198. package/dist/zonos-elements/p-4452dddc.entry.js +0 -1
  199. package/dist/zonos-elements/p-47c72c50.system.entry.js +0 -1
  200. package/dist/zonos-elements/p-595d406e.entry.js +0 -1
  201. package/dist/zonos-elements/p-5beccdce.system.entry.js +0 -1
  202. package/dist/zonos-elements/p-6013e370.entry.js +0 -1
  203. package/dist/zonos-elements/p-63db40b9.system.js +0 -1
  204. package/dist/zonos-elements/p-6ab615e6.system.js +0 -1
  205. package/dist/zonos-elements/p-81540fd6.system.js +0 -1
  206. package/dist/zonos-elements/p-d709ad28.system.entry.js +0 -1
  207. package/dist/zonos-elements/p-eaa335e1.js +0 -1
  208. /package/dist/collection/types/checkout/api/{TempCart.js → NormalizedTempCart.js} +0 -0
@@ -48,8 +48,6 @@ export declare class ZonosCheckout {
48
48
  isMobile: boolean;
49
49
  zonosReviewRef?: HTMLZonosReviewElement;
50
50
  storybookPaymentStatusOverride?: PaymentIntent['status'];
51
- domesticRedirectedBtnSelector: string;
52
- legacyCheckoutHiddenBtnSelector: string;
53
51
  isLegacyCheckout: boolean;
54
52
  /**
55
53
  * Confirm dialog open state
@@ -1,6 +1,6 @@
1
1
  /// <reference types="node" />
2
2
  import { stripeStoreUpdateCheckoutSession } from "./stripe";
3
- import type { CalculateLandedCostMutation, CheckoutPresentmentFragment, CurrencyCode, ItemMeasurementType, ItemType, ItemUnitOfMeasure, LandedCostFragment, ShipmentRatingFragment } from "../../../types/generated/graphql.customer.types";
3
+ import type { CalculateLandedCostMutation, CartQuery, CheckoutPresentmentFragment, CurrencyCode, ItemMeasurementType, ItemType, ItemUnitOfMeasure, LandedCostFragment, ShipmentRatingFragment } from "../../../types/generated/graphql.customer.types";
4
4
  type Step = 'customer-info' | 'shipping' | 'payment' | 'finish' | 'error';
5
5
  export type TabItem = {
6
6
  index: number;
@@ -47,10 +47,16 @@ export type CartItem = {
47
47
  quantity: number;
48
48
  sku?: string;
49
49
  };
50
+ export type CartAdjustment = NonNullable<CartQuery['cart']>['adjustments'][number];
50
51
  type CartItemToUse = CartItem & {
51
52
  isRestricted: boolean;
52
53
  };
53
54
  type CartStore = {
55
+ adjustmentTotal: number;
56
+ /**
57
+ * Adjustments from cart
58
+ */
59
+ adjustments: CartAdjustment[];
54
60
  checkoutSessionId: string | null;
55
61
  /**
56
62
  * Checkout session timeout
@@ -133,6 +139,7 @@ declare const cartStoreUpdateToErrorState: ({ messages, title, }: {
133
139
  title: string;
134
140
  }) => void;
135
141
  type CartSubtotals = {
142
+ adjustments: number;
136
143
  exchangeRate: {
137
144
  id: string;
138
145
  rate: number;
@@ -152,7 +159,7 @@ type CartStoreRecalculateTotalParams = Omit<Parameters<typeof stripeStoreUpdateC
152
159
  * Detect if there are any items in cart that are not restricted and have positive amount, exclude negative amount items
153
160
  */
154
161
  declare const cartStoreHasOneEligibleItem: () => boolean;
155
- declare const cartStoreReCalculateTotal: ({ currency, itemsAmount, landedCostId, }: CartStoreRecalculateTotalParams) => Promise<boolean>;
162
+ declare const cartStoreReCalculateTotal: ({ adjustmentAmount, cartId, currency, itemsAmount, landedCostId, }: CartStoreRecalculateTotalParams) => Promise<boolean>;
156
163
  declare const cartStoreUpdateSelectedShippingOption: (selectedShippingOption: ShipmentRatingFragment) => Promise<boolean>;
157
164
  declare const cartStoreStartCheckoutInterval: ({ isPreview, sessionTimeout, }: {
158
165
  isPreview: boolean;
@@ -163,7 +170,10 @@ declare const cartStoreStartCheckoutInterval: ({ isPreview, sessionTimeout, }: {
163
170
  }) => void;
164
171
  declare const cartStoreClearCheckoutInterval: () => void;
165
172
  declare const cartStoreResetCartItems: () => void;
166
- declare const cartStoreUpdateItems: (cartItems: CartItem[]) => Promise<void>;
173
+ declare const cartStoreUpdateItems: ({ adjustments, cartItems, }: {
174
+ adjustments: CartAdjustment[];
175
+ cartItems: CartItem[];
176
+ }) => Promise<void>;
167
177
  declare const cartStoreNextStep: () => void;
168
178
  declare const cartStoreResetTabItems: () => void;
169
179
  export { cartStore, cartStoreApplySubtotals, cartStoreCheckItemRestrictions, cartStoreClearCheckoutInterval, cartStoreGetShippingTransitInfo, cartStoreHasOneEligibleItem, cartStoreNextStep, cartStoreReCalculateTotal, cartStoreReset, cartStoreResetCartItems, cartStoreResetTabItems, cartStoreStartCheckoutInterval, cartStoreUpdateItems, cartStoreUpdateSelectedShippingOption, cartStoreUpdateToErrorState, };
@@ -105,6 +105,8 @@ declare const stripeStoreConfirmPayment: () => Promise<void>;
105
105
  */
106
106
  declare const stripeStoreInitCheckoutSession: () => Promise<boolean>;
107
107
  type CheckoutSessionUpdateRequest = {
108
+ adjustmentAmount: number;
109
+ cartId: string | null;
108
110
  currency?: string;
109
111
  id: string;
110
112
  itemsAmount?: number;
@@ -118,7 +120,7 @@ type CheckoutSessionUpdateRequest = {
118
120
  /**
119
121
  * Update checkout session. Use for updating amount with landed cost id, or update session when cart items change
120
122
  */
121
- declare const stripeStoreUpdateCheckoutSession: ({ currency, id, itemsAmount, landedCostId, presentmentCountryCode, }: CheckoutSessionUpdateRequest) => Promise<{
123
+ declare const stripeStoreUpdateCheckoutSession: ({ adjustmentAmount, cartId, currency, id, itemsAmount, landedCostId, presentmentCountryCode, }: CheckoutSessionUpdateRequest) => Promise<{
122
124
  errors: import("../../..").JsonError[];
123
125
  json: CheckoutSessionUpdateMutation | null;
124
126
  }>;
@@ -68,6 +68,9 @@ export declare const stringsArabic: {
68
68
  'Delivery options': {
69
69
  value: string;
70
70
  };
71
+ Discounts: {
72
+ value: string;
73
+ };
71
74
  "Don't close": {
72
75
  value: string;
73
76
  };
@@ -146,9 +149,6 @@ export declare const stringsArabic: {
146
149
  'Nothing due at the door': {
147
150
  value: string;
148
151
  };
149
- 'Order is over the de minimis threshold for both duty and tax': {
150
- value: string;
151
- };
152
152
  'Order total': {
153
153
  value: string;
154
154
  };
@@ -68,6 +68,9 @@ export declare const stringsBase: {
68
68
  'Delivery options': {
69
69
  value: string;
70
70
  };
71
+ Discounts: {
72
+ value: string;
73
+ };
71
74
  "Don't close": {
72
75
  value: string;
73
76
  };
@@ -146,9 +149,6 @@ export declare const stringsBase: {
146
149
  'Nothing due at the door': {
147
150
  value: string;
148
151
  };
149
- 'Order is over the de minimis threshold for both duty and tax': {
150
- value: string;
151
- };
152
152
  'Order total': {
153
153
  value: string;
154
154
  };
@@ -68,6 +68,9 @@ export declare const stringsChinese: {
68
68
  'Delivery options': {
69
69
  value: string;
70
70
  };
71
+ Discounts: {
72
+ value: string;
73
+ };
71
74
  "Don't close": {
72
75
  value: string;
73
76
  };
@@ -146,9 +149,6 @@ export declare const stringsChinese: {
146
149
  'Nothing due at the door': {
147
150
  value: string;
148
151
  };
149
- 'Order is over the de minimis threshold for both duty and tax': {
150
- value: string;
151
- };
152
152
  'Order total': {
153
153
  value: string;
154
154
  };
@@ -68,6 +68,9 @@ export declare const stringsDanish: {
68
68
  'Delivery options': {
69
69
  value: string;
70
70
  };
71
+ Discounts: {
72
+ value: string;
73
+ };
71
74
  "Don't close": {
72
75
  value: string;
73
76
  };
@@ -146,9 +149,6 @@ export declare const stringsDanish: {
146
149
  'Nothing due at the door': {
147
150
  value: string;
148
151
  };
149
- 'Order is over the de minimis threshold for both duty and tax': {
150
- value: string;
151
- };
152
152
  'Order total': {
153
153
  value: string;
154
154
  };
@@ -68,6 +68,9 @@ export declare const stringsDutch: {
68
68
  'Delivery options': {
69
69
  value: string;
70
70
  };
71
+ Discounts: {
72
+ value: string;
73
+ };
71
74
  "Don't close": {
72
75
  value: string;
73
76
  };
@@ -146,9 +149,6 @@ export declare const stringsDutch: {
146
149
  'Nothing due at the door': {
147
150
  value: string;
148
151
  };
149
- 'Order is over the de minimis threshold for both duty and tax': {
150
- value: string;
151
- };
152
152
  'Order total': {
153
153
  value: string;
154
154
  };
@@ -68,6 +68,9 @@ export declare const stringsFrench: {
68
68
  'Delivery options': {
69
69
  value: string;
70
70
  };
71
+ Discounts: {
72
+ value: string;
73
+ };
71
74
  "Don't close": {
72
75
  value: string;
73
76
  };
@@ -146,9 +149,6 @@ export declare const stringsFrench: {
146
149
  'Nothing due at the door': {
147
150
  value: string;
148
151
  };
149
- 'Order is over the de minimis threshold for both duty and tax': {
150
- value: string;
151
- };
152
152
  'Order total': {
153
153
  value: string;
154
154
  };
@@ -68,6 +68,9 @@ export declare const stringsGerman: {
68
68
  'Delivery options': {
69
69
  value: string;
70
70
  };
71
+ Discounts: {
72
+ value: string;
73
+ };
71
74
  "Don't close": {
72
75
  value: string;
73
76
  };
@@ -146,9 +149,6 @@ export declare const stringsGerman: {
146
149
  'Nothing due at the door': {
147
150
  value: string;
148
151
  };
149
- 'Order is over the de minimis threshold for both duty and tax': {
150
- value: string;
151
- };
152
152
  'Order total': {
153
153
  value: string;
154
154
  };
@@ -68,6 +68,9 @@ export declare const stringsHebrew: {
68
68
  'Delivery options': {
69
69
  value: string;
70
70
  };
71
+ Discounts: {
72
+ value: string;
73
+ };
71
74
  "Don't close": {
72
75
  value: string;
73
76
  };
@@ -146,9 +149,6 @@ export declare const stringsHebrew: {
146
149
  'Nothing due at the door': {
147
150
  value: string;
148
151
  };
149
- 'Order is over the de minimis threshold for both duty and tax': {
150
- value: string;
151
- };
152
152
  'Order total': {
153
153
  value: string;
154
154
  };
@@ -68,6 +68,9 @@ export declare const stringsIndonesian: {
68
68
  'Delivery options': {
69
69
  value: string;
70
70
  };
71
+ Discounts: {
72
+ value: string;
73
+ };
71
74
  "Don't close": {
72
75
  value: string;
73
76
  };
@@ -146,9 +149,6 @@ export declare const stringsIndonesian: {
146
149
  'Nothing due at the door': {
147
150
  value: string;
148
151
  };
149
- 'Order is over the de minimis threshold for both duty and tax': {
150
- value: string;
151
- };
152
152
  'Order total': {
153
153
  value: string;
154
154
  };
@@ -68,6 +68,9 @@ export declare const stringsItalian: {
68
68
  'Delivery options': {
69
69
  value: string;
70
70
  };
71
+ Discounts: {
72
+ value: string;
73
+ };
71
74
  "Don't close": {
72
75
  value: string;
73
76
  };
@@ -146,9 +149,6 @@ export declare const stringsItalian: {
146
149
  'Nothing due at the door': {
147
150
  value: string;
148
151
  };
149
- 'Order is over the de minimis threshold for both duty and tax': {
150
- value: string;
151
- };
152
152
  'Order total': {
153
153
  value: string;
154
154
  };
@@ -68,6 +68,9 @@ export declare const stringsJapanese: {
68
68
  'Delivery options': {
69
69
  value: string;
70
70
  };
71
+ Discounts: {
72
+ value: string;
73
+ };
71
74
  "Don't close": {
72
75
  value: string;
73
76
  };
@@ -146,9 +149,6 @@ export declare const stringsJapanese: {
146
149
  'Nothing due at the door': {
147
150
  value: string;
148
151
  };
149
- 'Order is over the de minimis threshold for both duty and tax': {
150
- value: string;
151
- };
152
152
  'Order total': {
153
153
  value: string;
154
154
  };
@@ -68,6 +68,9 @@ export declare const stringsKorean: {
68
68
  'Delivery options': {
69
69
  value: string;
70
70
  };
71
+ Discounts: {
72
+ value: string;
73
+ };
71
74
  "Don't close": {
72
75
  value: string;
73
76
  };
@@ -146,9 +149,6 @@ export declare const stringsKorean: {
146
149
  'Nothing due at the door': {
147
150
  value: string;
148
151
  };
149
- 'Order is over the de minimis threshold for both duty and tax': {
150
- value: string;
151
- };
152
152
  'Order total': {
153
153
  value: string;
154
154
  };
@@ -68,6 +68,9 @@ export declare const stringsNorwegian: {
68
68
  'Delivery options': {
69
69
  value: string;
70
70
  };
71
+ Discounts: {
72
+ value: string;
73
+ };
71
74
  "Don't close": {
72
75
  value: string;
73
76
  };
@@ -146,9 +149,6 @@ export declare const stringsNorwegian: {
146
149
  'Nothing due at the door': {
147
150
  value: string;
148
151
  };
149
- 'Order is over the de minimis threshold for both duty and tax': {
150
- value: string;
151
- };
152
152
  'Order total': {
153
153
  value: string;
154
154
  };
@@ -68,6 +68,9 @@ export declare const stringsPolish: {
68
68
  'Delivery options': {
69
69
  value: string;
70
70
  };
71
+ Discounts: {
72
+ value: string;
73
+ };
71
74
  "Don't close": {
72
75
  value: string;
73
76
  };
@@ -146,9 +149,6 @@ export declare const stringsPolish: {
146
149
  'Nothing due at the door': {
147
150
  value: string;
148
151
  };
149
- 'Order is over the de minimis threshold for both duty and tax': {
150
- value: string;
151
- };
152
152
  'Order total': {
153
153
  value: string;
154
154
  };
@@ -68,6 +68,9 @@ export declare const stringsPortuguese: {
68
68
  'Delivery options': {
69
69
  value: string;
70
70
  };
71
+ Discounts: {
72
+ value: string;
73
+ };
71
74
  "Don't close": {
72
75
  value: string;
73
76
  };
@@ -146,9 +149,6 @@ export declare const stringsPortuguese: {
146
149
  'Nothing due at the door': {
147
150
  value: string;
148
151
  };
149
- 'Order is over the de minimis threshold for both duty and tax': {
150
- value: string;
151
- };
152
152
  'Order total': {
153
153
  value: string;
154
154
  };
@@ -68,6 +68,9 @@ export declare const stringsRussian: {
68
68
  'Delivery options': {
69
69
  value: string;
70
70
  };
71
+ Discounts: {
72
+ value: string;
73
+ };
71
74
  "Don't close": {
72
75
  value: string;
73
76
  };
@@ -146,9 +149,6 @@ export declare const stringsRussian: {
146
149
  'Nothing due at the door': {
147
150
  value: string;
148
151
  };
149
- 'Order is over the de minimis threshold for both duty and tax': {
150
- value: string;
151
- };
152
152
  'Order total': {
153
153
  value: string;
154
154
  };
@@ -68,6 +68,9 @@ export declare const stringsSpanish: {
68
68
  'Delivery options': {
69
69
  value: string;
70
70
  };
71
+ Discounts: {
72
+ value: string;
73
+ };
71
74
  "Don't close": {
72
75
  value: string;
73
76
  };
@@ -146,9 +149,6 @@ export declare const stringsSpanish: {
146
149
  'Nothing due at the door': {
147
150
  value: string;
148
151
  };
149
- 'Order is over the de minimis threshold for both duty and tax': {
150
- value: string;
151
- };
152
152
  'Order total': {
153
153
  value: string;
154
154
  };
@@ -68,6 +68,9 @@ export declare const stringsSwedish: {
68
68
  'Delivery options': {
69
69
  value: string;
70
70
  };
71
+ Discounts: {
72
+ value: string;
73
+ };
71
74
  "Don't close": {
72
75
  value: string;
73
76
  };
@@ -146,9 +149,6 @@ export declare const stringsSwedish: {
146
149
  'Nothing due at the door': {
147
150
  value: string;
148
151
  };
149
- 'Order is over the de minimis threshold for both duty and tax': {
150
- value: string;
151
- };
152
152
  'Order total': {
153
153
  value: string;
154
154
  };
@@ -68,6 +68,9 @@ export declare const stringsTurkish: {
68
68
  'Delivery options': {
69
69
  value: string;
70
70
  };
71
+ Discounts: {
72
+ value: string;
73
+ };
71
74
  "Don't close": {
72
75
  value: string;
73
76
  };
@@ -146,9 +149,6 @@ export declare const stringsTurkish: {
146
149
  'Nothing due at the door': {
147
150
  value: string;
148
151
  };
149
- 'Order is over the de minimis threshold for both duty and tax': {
150
- value: string;
151
- };
152
152
  'Order total': {
153
153
  value: string;
154
154
  };
@@ -68,6 +68,9 @@ export declare const stringsVietnamese: {
68
68
  'Delivery options': {
69
69
  value: string;
70
70
  };
71
+ Discounts: {
72
+ value: string;
73
+ };
71
74
  "Don't close": {
72
75
  value: string;
73
76
  };
@@ -146,9 +149,6 @@ export declare const stringsVietnamese: {
146
149
  'Nothing due at the door': {
147
150
  value: string;
148
151
  };
149
- 'Order is over the de minimis threshold for both duty and tax': {
150
- value: string;
151
- };
152
152
  'Order total': {
153
153
  value: string;
154
154
  };
@@ -30,5 +30,5 @@ type TranslateParams<T extends string> = ExtractVariables<T> extends never ? [T,
30
30
  * // No variables:
31
31
  * translate('Above de minimis threshold for')
32
32
  */
33
- declare const translate: <T extends "Shipping" | "Email" | "Name" | "Guaranteed" | "Customer" | "Country" | "Failure" | "Success" | "Hide" | "or" | "Delivery" | "Payment" | "Above de minimis threshold for" | "Address" | "Address line 1" | "Address line 2" | "An unexpected error occurred when processing PayPal order." | "Are you sure?" | "Back" | "Billing" | "Billing address" | "Cancel" | "Card number copied to clipboard" | "Cart subtotal" | "City" | "Click to copy the card number. Use any future expiration date and three number CVC." | "Close" | "Contact" | "Continue to shipping" | "Couldn't place order" | "Customer information" | "Delivery options" | "Don't close" | "Duties & taxes in Australia, VAT or GST is [percentage] and is due on all orders." | "Duties and taxes will be applied to items and shipping." | "Duties will apply to all orders." | "Duties, taxes, and fees" | "Error creating Checkout" | "Error updating Checkout" | "Expected delivery" | "Failed to create PayPal order. Please try again, or consider using an alternative method." | "First name" | "Go to payment" | "Keep shopping" | "Know about duties and taxes before you buy. Shop with confidence!" | "Last name" | "Learn more." | "Missing required fields. Make sure all fields are completed." | "No countries found" | "No shipping method selected" | "No shipping methods found - please review and update your address details by selecting the \"Customer\" tab above. If you continue to encounter issues, contact our support team for assistance." | "No shipping methods found - try editing your address or contacting support if the error persists" | "Nothing due at the door" | "Order is over the de minimis threshold for both duty and tax" | "Order total" | "Orders to [countryName] must be over [threshold] to ship." | "Pay [orderTotal]" | "Pay [organizationName]" | "Payment failed" | "Payment failed. Please try another payment method." | "Payment method" | "Payment processing. We'll update you when payment is received." | "Phone number" | "Please ensure your text uses the Latin alphabet only (A-Z, a-z)." | "Postal code" | "Powered by" | "Prepay duties and taxes at checkout" | "Product prices already include duties and fees. No additional duties or fees will be added at checkout, with rare exceptions." | "Product prices already include duties and taxes. No additional duties or taxes will be added at checkout, with rare exceptions." | "Product prices already include duties, taxes, and fees. No additional duties, taxes, or fees will be added at checkout, with rare exceptions." | "Product prices already include duties. No additional duties will be added at checkout, with rare exceptions." | "Product prices already include fees. No additional fees will be added at checkout, with rare exceptions." | "Product prices already include taxes and fees. No additional taxes or fees will be added at checkout, with rare exceptions." | "Product prices already include taxes. No additional taxes will be added at checkout, with rare exceptions." | "Reload" | "Restricted item" | "Restricted items found" | "Return to cart" | "Search countries" | "See duty and tax thresholds" | "Select a country" | "Select a language" | "Session timed out" | "Shipping address same as billing" | "Shipping method" | "Show" | "Something went wrong." | "Spend [threshold] duty free." | "Spend [threshold] tax free." | "State" | "State/Province" | "Taxes will apply to all orders." | "Test cards" | "Test mode" | "The following items are unable to be shipped to your country and are not included in your cart total." | "The low-value GST law passed July 1st, 2018 applies to this retailer." | "There's been an error creating your checkout session. Please reload and try again or contact support if the error persists" | "There's been an error updating your checkout session. Please reload and try again or contact support if the error persists" | "To ensure delivery all address details must be in Latin characters." | "Translated address" | "Unable to check inventory. Please try again." | "Update address" | "Update your address" | "We couldn't complete your payment. Please verify the payment details and try again." | "We've sent an email confirmation of the order details for your review. And our team is carefully preparing your order so it arrives on time." | "Welcome to [storeName]" | "Welcome!" | "What you entered" | "Would you like to close checkout and return to the site?" | "You're all set!" | "Your checkout session has expired. Please reload the page to continue." | "Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us." | "[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy." | "[percentage] GST due on any order above [threshold]." | "business days" | "click to learn more" | "restricted items">(...[key, replacement]: TranslateParams<T>) => string;
33
+ declare const translate: <T extends "Shipping" | "Email" | "Name" | "Guaranteed" | "Customer" | "Country" | "Failure" | "Success" | "Hide" | "or" | "Delivery" | "Payment" | "Above de minimis threshold for" | "Address" | "Address line 1" | "Address line 2" | "An unexpected error occurred when processing PayPal order." | "Are you sure?" | "Back" | "Billing" | "Billing address" | "Cancel" | "Card number copied to clipboard" | "Cart subtotal" | "City" | "Click to copy the card number. Use any future expiration date and three number CVC." | "Close" | "Contact" | "Continue to shipping" | "Couldn't place order" | "Customer information" | "Delivery options" | "Discounts" | "Don't close" | "Duties & taxes in Australia, VAT or GST is [percentage] and is due on all orders." | "Duties and taxes will be applied to items and shipping." | "Duties will apply to all orders." | "Duties, taxes, and fees" | "Error creating Checkout" | "Error updating Checkout" | "Expected delivery" | "Failed to create PayPal order. Please try again, or consider using an alternative method." | "First name" | "Go to payment" | "Keep shopping" | "Know about duties and taxes before you buy. Shop with confidence!" | "Last name" | "Learn more." | "Missing required fields. Make sure all fields are completed." | "No countries found" | "No shipping method selected" | "No shipping methods found - please review and update your address details by selecting the \"Customer\" tab above. If you continue to encounter issues, contact our support team for assistance." | "No shipping methods found - try editing your address or contacting support if the error persists" | "Nothing due at the door" | "Order total" | "Orders to [countryName] must be over [threshold] to ship." | "Pay [orderTotal]" | "Pay [organizationName]" | "Payment failed" | "Payment failed. Please try another payment method." | "Payment method" | "Payment processing. We'll update you when payment is received." | "Phone number" | "Please ensure your text uses the Latin alphabet only (A-Z, a-z)." | "Postal code" | "Powered by" | "Prepay duties and taxes at checkout" | "Product prices already include duties and fees. No additional duties or fees will be added at checkout, with rare exceptions." | "Product prices already include duties and taxes. No additional duties or taxes will be added at checkout, with rare exceptions." | "Product prices already include duties, taxes, and fees. No additional duties, taxes, or fees will be added at checkout, with rare exceptions." | "Product prices already include duties. No additional duties will be added at checkout, with rare exceptions." | "Product prices already include fees. No additional fees will be added at checkout, with rare exceptions." | "Product prices already include taxes and fees. No additional taxes or fees will be added at checkout, with rare exceptions." | "Product prices already include taxes. No additional taxes will be added at checkout, with rare exceptions." | "Reload" | "Restricted item" | "Restricted items found" | "Return to cart" | "Search countries" | "See duty and tax thresholds" | "Select a country" | "Select a language" | "Session timed out" | "Shipping address same as billing" | "Shipping method" | "Show" | "Something went wrong." | "Spend [threshold] duty free." | "Spend [threshold] tax free." | "State" | "State/Province" | "Taxes will apply to all orders." | "Test cards" | "Test mode" | "The following items are unable to be shipped to your country and are not included in your cart total." | "The low-value GST law passed July 1st, 2018 applies to this retailer." | "There's been an error creating your checkout session. Please reload and try again or contact support if the error persists" | "There's been an error updating your checkout session. Please reload and try again or contact support if the error persists" | "To ensure delivery all address details must be in Latin characters." | "Translated address" | "Unable to check inventory. Please try again." | "Update address" | "Update your address" | "We couldn't complete your payment. Please verify the payment details and try again." | "We've sent an email confirmation of the order details for your review. And our team is carefully preparing your order so it arrives on time." | "Welcome to [storeName]" | "Welcome!" | "What you entered" | "Would you like to close checkout and return to the site?" | "You're all set!" | "Your checkout session has expired. Please reload the page to continue." | "Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us." | "[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy." | "[percentage] GST due on any order above [threshold]." | "business days" | "click to learn more" | "restricted items">(...[key, replacement]: TranslateParams<T>) => string;
34
34
  export { translate, translationStore, translationStoreUpdateLanguage };
@@ -1,7 +1,12 @@
1
- import type { CartItem } from "../../store/checkout/cart";
2
- import type { TempCart } from "../../../types/checkout/api/TempCart";
1
+ import type { CartAdjustment, CartItem } from "../../store/checkout/cart";
2
+ import type { NormalizedTempCart } from "../../../types/checkout/api/NormalizedTempCart";
3
+ type Return = {
4
+ adjustments: CartAdjustment[];
5
+ cartItems: CartItem[];
6
+ };
3
7
  /**
4
8
  * Map the items from tempCart like how we do it in dgs
5
9
  * @ref https://github.com/Zonos/ShippingQuoteService/blob/f8bd4f1ff41cb34b49b9f3f435576ec28dedf906/src/main/java/com/iglobal/services/shippingquote/dto/ShippingQuoteRequestDto.java#L393
6
10
  */
7
- export declare const buildCartItemsByTempCart: (tempCartData: TempCart) => CartItem[];
11
+ export declare const buildCartItemsByTempCart: (tempCartData: NormalizedTempCart) => Return;
12
+ export {};
@@ -0,0 +1,2 @@
1
+ import type { CalculateLandedCostMutation } from "../../../types/generated/graphql.customer.types";
2
+ export declare const calculateLandedCostNormalized: (abortController: AbortController) => Promise<CalculateLandedCostMutation>;
@@ -0,0 +1,5 @@
1
+ import type { CartCalculateLandedCostMutation } from "../../../types/generated/graphql.customer.types";
2
+ export declare const cartCalculateLandedCost: ({ abortController, cartId, }: {
3
+ abortController?: AbortController;
4
+ cartId: string;
5
+ }) => Promise<CartCalculateLandedCostMutation>;
@@ -1,2 +1,6 @@
1
- import type { CalculateLandedCostRequest } from "../../../types/checkout/api/CalculateLandedCostRequest";
1
+ import type { CalculateLandedCostRequest, CartCalculateLandedCostRequest } from "../../../types/checkout/api/CalculateLandedCostRequest";
2
+ /**
3
+ * Similar to prepCalculateLandedCost except it only uses
4
+ */
5
+ export declare const prepCartCalculateLandedCost: (cartId: string) => CartCalculateLandedCostRequest;
2
6
  export declare const prepCalculateLandedCost: () => CalculateLandedCostRequest;
@@ -1 +1 @@
1
- export declare const getIsTestMode: () => boolean;
1
+ export declare const getIsTestMode: () => boolean | undefined;
@@ -1,5 +1,6 @@
1
1
  export declare const fallbackList: readonly ["jsdelivr", "cdnjs", "unpkg", "vercel"];
2
2
  export type InjectScriptType = (typeof fallbackList)[number];
3
+ export declare const MAIN_LOAD_CDN_TYPE: InjectScriptType;
3
4
  /**
4
5
  * Get the next cdn type in the fallback list
5
6
  * @param currentCdnType The current cdn type that want to get the next fallback url
@@ -0,0 +1,8 @@
1
+ import type { NormalizedTempCart } from "../types/checkout/api/NormalizedTempCart";
2
+ type TempCartResult = {
3
+ cartData: NormalizedTempCart;
4
+ storeFaviconUrl: string;
5
+ storeLogoUrl: string;
6
+ };
7
+ export declare const getTempCartById: (cartId: string) => Promise<TempCartResult | null>;
8
+ export {};