@dropins/storefront-checkout 0.1.0-alpha45 → 0.1.0-alpha47

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 (220) hide show
  1. package/__generated__/types.d.ts +22 -20
  2. package/api/errors/index.d.ts +16 -0
  3. package/api/estimateShippingMethods/graphql/estimateShippingMethods.graphql.d.ts +16 -0
  4. package/api/estimateShippingMethods/graphql/index.d.ts +16 -0
  5. package/api/estimateShippingMethods/index.d.ts +16 -0
  6. package/api/fetch-graphql/fetch-graphql.d.ts +16 -0
  7. package/api/fetch-graphql/index.d.ts +16 -0
  8. package/api/fetchAddressFormFields/fetchAddressFormFields.d.ts +16 -0
  9. package/api/fetchAddressFormFields/graphql/fetchAddressFormFields.graphql.d.ts +16 -0
  10. package/api/fetchAddressFormFields/index.d.ts +16 -0
  11. package/api/getCart/getCart.d.ts +16 -0
  12. package/api/getCart/graphql/getCart.graphql.d.ts +16 -0
  13. package/api/getCart/graphql/index.d.ts +16 -0
  14. package/api/getCart/index.d.ts +16 -0
  15. package/api/getCheckoutData/getCheckoutData.d.ts +16 -0
  16. package/api/getCheckoutData/index.d.ts +16 -0
  17. package/api/getCountries/getCountries.d.ts +16 -0
  18. package/api/getCountries/graphql/getCountries.graphql.d.ts +16 -0
  19. package/api/getCountries/index.d.ts +16 -0
  20. package/api/getCustomer/graphql/getCustomer.graphql.d.ts +16 -0
  21. package/api/getCustomer/graphql/index.d.ts +16 -0
  22. package/api/getCustomer/index.d.ts +16 -0
  23. package/api/getRegions/graphql/getRegions.graphql.d.ts +16 -0
  24. package/api/getRegions/index.d.ts +16 -0
  25. package/api/getStoreConfig/graphql/getStoreConfig.graphql.d.ts +16 -0
  26. package/api/getStoreConfig/index.d.ts +16 -0
  27. package/api/index.d.ts +16 -0
  28. package/api/initialize/index.d.ts +16 -0
  29. package/api/initialize/listeners.d.ts +16 -0
  30. package/api/initializeCheckout/index.d.ts +16 -0
  31. package/api/initializeCheckout/initializeCheckout.d.ts +16 -0
  32. package/api/isEmailAvailable/graphql/isEmailAvailable.graphql.d.ts +16 -0
  33. package/api/isEmailAvailable/index.d.ts +16 -0
  34. package/api/placeOrder/graphql/index.d.ts +16 -0
  35. package/api/placeOrder/graphql/placeOrder.graphql.d.ts +17 -1
  36. package/api/placeOrder/index.d.ts +16 -0
  37. package/api/placeOrder/placeOrder.d.ts +16 -0
  38. package/api/redirect/index.d.ts +16 -0
  39. package/api/redirect/redirect.d.ts +16 -0
  40. package/api/resetCheckout/index.d.ts +16 -0
  41. package/api/resetCheckout/resetCheckout.d.ts +16 -0
  42. package/api/resetCustomer/index.d.ts +16 -0
  43. package/api/resetCustomer/resetCustomer.d.ts +16 -0
  44. package/api/setBillingAddress/graphql/setBillingAddress.graphql.d.ts +16 -0
  45. package/api/setBillingAddress/index.d.ts +16 -0
  46. package/api/setGuestEmailOnCart/graphql/setGuestEmailOnCart.graphql.d.ts +16 -0
  47. package/api/setGuestEmailOnCart/index.d.ts +16 -0
  48. package/api/setGuestEmailOnCart/setGuestEmailOnCart.d.ts +16 -0
  49. package/api/setPaymentMethod/graphql/setPaymentMethod.graphql.d.ts +16 -0
  50. package/api/setPaymentMethod/index.d.ts +16 -0
  51. package/api/setPaymentMethod/setPaymentMethod.d.ts +16 -0
  52. package/api/setShippingAddress/graphql/setShippingAddress.graphql.d.ts +16 -0
  53. package/api/setShippingAddress/index.d.ts +16 -0
  54. package/api/setShippingAddress/setShippingAddress.d.ts +17 -1
  55. package/api/setShippingMethods/graphql/setShippingMethodsOnCart.graphql.d.ts +16 -0
  56. package/api/setShippingMethods/index.d.ts +16 -0
  57. package/api/setShippingMethods/setShippingMethods.d.ts +16 -0
  58. package/api/utils/enqueueRequest.d.ts +16 -0
  59. package/api.js +1 -1
  60. package/chunks/BillToShippingAddress.js +1 -1
  61. package/chunks/OrderError.js +1 -0
  62. package/chunks/ShippingMethods.js +1 -1
  63. package/chunks/fixtures.js +15 -0
  64. package/chunks/getCart.graphql.js +6 -20
  65. package/chunks/getCustomer.js +1 -1
  66. package/chunks/getMultilineValues.js +43 -0
  67. package/chunks/placeOrder.js +6 -2
  68. package/chunks/resetCustomer.js +1 -1
  69. package/chunks/setBillingAddress.js +3 -3
  70. package/chunks/setGuestEmailOnCart.js +17 -0
  71. package/chunks/setPaymentMethod.js +13 -0
  72. package/chunks/setShippingAddress.js +16 -0
  73. package/chunks/setShippingMethods.js +3 -85
  74. package/chunks/transform-shipping-methods.js +1 -0
  75. package/chunks/withConditionalRendering.js +1 -0
  76. package/components/AddressForm/constants.d.ts +16 -0
  77. package/components/AddressForm/index.d.ts +16 -0
  78. package/components/BillToShippingAddress/index.d.ts +16 -0
  79. package/components/EstimateShipping/index.d.ts +16 -0
  80. package/components/FieldsForm/index.d.ts +16 -0
  81. package/components/Heading/index.d.ts +16 -0
  82. package/components/LoginForm/index.d.ts +16 -0
  83. package/components/OutOfStock/index.d.ts +16 -0
  84. package/components/OverlayLoader/index.d.ts +16 -0
  85. package/components/PaymentMethods/index.d.ts +16 -0
  86. package/components/PlaceOrder/PlaceOrder.d.ts +1 -1
  87. package/components/PlaceOrder/index.d.ts +16 -0
  88. package/components/ServerError/index.d.ts +16 -0
  89. package/components/ShippingMethods/index.d.ts +16 -0
  90. package/components/ToggleButton/assets/icons/index.d.ts +16 -0
  91. package/components/ToggleButton/assets/images/index.d.ts +16 -0
  92. package/components/ToggleButton/index.d.ts +16 -0
  93. package/components/index.d.ts +16 -2
  94. package/containers/BillToShippingAddress/BillToShippingAddress.d.ts +1 -1
  95. package/containers/BillToShippingAddress/constants.d.ts +16 -0
  96. package/containers/BillToShippingAddress/index.d.ts +16 -0
  97. package/containers/BillToShippingAddress.js +1 -1
  98. package/containers/BillingForm/BillingForm.d.ts +1 -1
  99. package/containers/BillingForm/constants.d.ts +16 -0
  100. package/containers/BillingForm/index.d.ts +16 -0
  101. package/containers/BillingForm.js +1 -1
  102. package/containers/ErrorBanner/index.d.ts +16 -0
  103. package/containers/ErrorBanner.js +1 -1
  104. package/containers/EstimateShipping/index.d.ts +16 -0
  105. package/containers/EstimateShipping.js +1 -1
  106. package/containers/LoginForm/LoginForm.d.ts +1 -1
  107. package/containers/LoginForm/constants.d.ts +16 -0
  108. package/containers/LoginForm/index.d.ts +16 -0
  109. package/containers/LoginForm.js +1 -1
  110. package/containers/MergedCartBanner/index.d.ts +16 -0
  111. package/containers/MergedCartBanner.js +1 -1
  112. package/containers/OutOfStock/index.d.ts +16 -0
  113. package/containers/OutOfStock.js +1 -1
  114. package/containers/PaymentMethods/PaymentMethods.d.ts +10 -11
  115. package/containers/PaymentMethods/defaultHandlers.d.ts +2 -9
  116. package/containers/PaymentMethods/index.d.ts +16 -0
  117. package/containers/PaymentMethods.js +1 -1
  118. package/containers/PlaceOrder/PlaceOrder.d.ts +10 -3
  119. package/containers/PlaceOrder/index.d.ts +16 -0
  120. package/containers/PlaceOrder.js +1 -1
  121. package/containers/ServerError/ServerError.d.ts +8 -0
  122. package/containers/ServerError/index.d.ts +19 -0
  123. package/containers/ServerError.d.ts +3 -0
  124. package/containers/ServerError.js +1 -0
  125. package/containers/ShippingForm/ShippingForm.d.ts +1 -1
  126. package/containers/ShippingForm/constants.d.ts +16 -0
  127. package/containers/ShippingForm/index.d.ts +17 -1
  128. package/containers/ShippingForm.js +1 -1
  129. package/containers/ShippingMethods/ShippingMethods.d.ts +7 -3
  130. package/containers/ShippingMethods/hooks/useShippingEstimateEventEmitter.d.ts +16 -0
  131. package/containers/ShippingMethods/index.d.ts +16 -0
  132. package/containers/ShippingMethods.js +1 -1
  133. package/containers/index.d.ts +17 -2
  134. package/data/models/acdl.d.ts +16 -0
  135. package/data/models/country.d.ts +16 -0
  136. package/data/models/custom-attribute.d.ts +16 -0
  137. package/data/models/email-availability.d.ts +16 -0
  138. package/data/models/index.d.ts +16 -0
  139. package/data/models/payment-method.d.ts +16 -0
  140. package/data/models/price.d.ts +16 -0
  141. package/data/models/region.d.ts +16 -0
  142. package/data/models/store-config.d.ts +16 -0
  143. package/data/transforms/index.d.ts +16 -0
  144. package/hocs/index.d.ts +16 -0
  145. package/hocs/withConditionalRendering.d.ts +1 -1
  146. package/hooks/index.d.ts +16 -0
  147. package/hooks/useBreakpoint/index.d.ts +16 -0
  148. package/hooks/useBreakpoint/useBreakpoint.d.ts +16 -0
  149. package/hooks/useLockScroll/index.d.ts +16 -0
  150. package/hooks/useLockScroll/useLockScroll.d.ts +16 -0
  151. package/hooks/useValidity/index.d.ts +16 -0
  152. package/hooks/useValidity/useValidity.d.ts +16 -0
  153. package/i18n/en_US.json.d.ts +0 -8
  154. package/lib/backup-data.d.ts +16 -0
  155. package/lib/fetch-error.d.ts +16 -0
  156. package/lib/index.d.ts +16 -0
  157. package/lib/network-error.d.ts +16 -0
  158. package/lib/redirect.d.ts +16 -0
  159. package/lib/state.d.ts +16 -0
  160. package/msw/browser.d.ts +16 -0
  161. package/msw/fixtures/fragments/billing-address.d.ts +16 -0
  162. package/msw/fixtures/fragments/cart.d.ts +16 -0
  163. package/msw/fixtures/fragments/index.d.ts +16 -0
  164. package/msw/fixtures/fragments/shipping-address.d.ts +16 -0
  165. package/msw/fixtures/index.d.ts +16 -0
  166. package/msw/fixtures/mutations/index.d.ts +16 -0
  167. package/msw/fixtures/queries/index.d.ts +16 -0
  168. package/msw/server.d.ts +16 -0
  169. package/package.json +1 -1
  170. package/render/index.d.ts +16 -0
  171. package/render.js +4 -3
  172. package/signals/IsBillToShippingSignal.d.ts +16 -0
  173. package/signals/ServerErrorSignal.d.ts +18 -0
  174. package/signals/index.d.ts +17 -0
  175. package/tests/constants.d.ts +16 -0
  176. package/tests/integration/utils/index.d.ts +16 -0
  177. package/tests/integration/utils/setup.d.ts +6 -4
  178. package/tests/integration/utils/user-actions.d.ts +16 -0
  179. package/tests/mocks/svg.d.ts +16 -0
  180. package/tests/utils/expectError.d.ts +16 -0
  181. package/tests/utils/index.d.ts +16 -0
  182. package/tests/utils/mockEvents.d.ts +16 -0
  183. package/utils/autocompleteFieldCodes/autocompleteFieldCodes.d.ts +16 -0
  184. package/utils/autocompleteFieldCodes/index.d.ts +16 -0
  185. package/utils/getDisplayName/index.d.ts +16 -0
  186. package/utils/getMultilineValues/getMultilineValues.d.ts +16 -0
  187. package/utils/getMultilineValues/index.d.ts +16 -0
  188. package/utils/index.d.ts +19 -0
  189. package/utils/isEmpty/index.d.ts +16 -0
  190. package/utils/isEmpty/isEmpty.d.ts +16 -0
  191. package/utils/isNullish/index.d.ts +16 -0
  192. package/utils/isNullish/isNullish.d.ts +16 -0
  193. package/utils/isUnexpectedError/index.d.ts +18 -0
  194. package/utils/isUnexpectedError/isUnexpectedError.d.ts +18 -0
  195. package/utils/parseRegionId/index.d.ts +16 -0
  196. package/utils/parseRegionId/parseRegionId.d.ts +16 -0
  197. package/utils/processFormFields/index.d.ts +16 -0
  198. package/utils/refetchEstimatedShippingMethods/index.d.ts +16 -0
  199. package/utils/scrollToElement/index.d.ts +18 -0
  200. package/utils/scrollToElement/scrollToElement.d.ts +18 -0
  201. package/utils/shippingMethods/index.d.ts +16 -0
  202. package/utils/validateForms/index.d.ts +18 -0
  203. package/utils/validateForms/validateForms.d.ts +18 -0
  204. package/chunks/EmptyCart.js +0 -1
  205. package/chunks/ErrorBanner.js +0 -1
  206. package/chunks/MergedCartBanner.js +0 -1
  207. package/chunks/OutOfStock.js +0 -1
  208. package/components/Checkout/Checkout.d.ts +0 -28
  209. package/components/Checkout/index.d.ts +0 -3
  210. package/components/EmptyCart/EmptyCart.d.ts +0 -9
  211. package/components/EmptyCart/index.d.ts +0 -3
  212. package/containers/Checkout/Checkout.d.ts +0 -35
  213. package/containers/Checkout/constants.d.ts +0 -2
  214. package/containers/Checkout/index.d.ts +0 -4
  215. package/containers/Checkout.d.ts +0 -3
  216. package/containers/Checkout.js +0 -1
  217. package/containers/EmptyCart/EmptyCart.d.ts +0 -8
  218. package/containers/EmptyCart/index.d.ts +0 -3
  219. package/containers/EmptyCart.d.ts +0 -3
  220. package/containers/EmptyCart.js +0 -1
@@ -1,3 +1,19 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2024 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
1
17
  export * from './AddressFormFieldsSignal';
2
18
  export * from './CartSignal';
3
19
  export * from './CountryListSignal';
@@ -6,5 +22,6 @@ export * from './EstimateShippingMethodsSignal';
6
22
  export * from './IsBillToShippingSignal';
7
23
  export * from './RegionsSignal';
8
24
  export * from './SelectedShippingMethodSignal';
25
+ export * from './ServerErrorSignal';
9
26
  export * from './StoreConfigSignal';
10
27
  //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,19 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2024 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
1
17
  export declare const TEST_CART_ID = "fake-cart-id";
2
18
  export declare const TEST_ORDER_ID = "fake-order-id";
3
19
  //# sourceMappingURL=constants.d.ts.map
@@ -1,3 +1,19 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2024 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
1
17
  export * from './setup';
2
18
  export * from './user-actions';
3
19
  //# sourceMappingURL=index.d.ts.map
@@ -1,6 +1,8 @@
1
- export declare function setupCheckout({ clearLocalStorage, dropinProps, registerCheckoutListeners, }?: {
2
- clearLocalStorage?: boolean | undefined;
3
- dropinProps?: {} | undefined;
4
- registerCheckoutListeners?: boolean | undefined;
1
+ import { JSX } from 'preact';
2
+
3
+ export declare function setupCheckout({ clearLocalStorage, registerCheckoutListeners, checkout, }: {
4
+ clearLocalStorage?: boolean;
5
+ registerCheckoutListeners?: boolean;
6
+ checkout: JSX.Element;
5
7
  }): Promise<void>;
6
8
  //# sourceMappingURL=setup.d.ts.map
@@ -1,2 +1,18 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2024 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
1
17
  export declare function fillShippingAddress(): Promise<void>;
2
18
  //# sourceMappingURL=user-actions.d.ts.map
@@ -1,3 +1,19 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2024 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
1
17
  declare const _default: "SvgrURL";
2
18
  export default _default;
3
19
  export declare const ReactComponent = "div";
@@ -1,3 +1,19 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2024 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
1
17
  type expectErrorProps = {
2
18
  candidate: (...args: any[]) => Promise<any>;
3
19
  args: any[];
@@ -1,3 +1,19 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2024 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
1
17
  export * from './expectError';
2
18
  export * from './mockEvents';
3
19
  //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,19 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2024 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
1
17
  export declare const mockEvents: (eventsMapping: Record<string, {
2
18
  waitForEmit?: boolean;
3
19
  payload?: any;
@@ -1,3 +1,19 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2024 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
1
17
  export interface fieldCodes {
2
18
  firstname: string;
3
19
  lastname: string;
@@ -1,2 +1,18 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2024 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
1
17
  export * from './autocompleteFieldCodes';
2
18
  //# sourceMappingURL=index.d.ts.map
@@ -1,2 +1,18 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2024 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
1
17
  export * from './getDisplayName';
2
18
  //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,19 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2024 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
1
17
  declare const getMultilineValues: (code: string, records: Record<string, string>) => string[];
2
18
  export { getMultilineValues };
3
19
  //# sourceMappingURL=getMultilineValues.d.ts.map
@@ -1,2 +1,18 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2024 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
1
17
  export * from './getMultilineValues';
2
18
  //# sourceMappingURL=index.d.ts.map
package/utils/index.d.ts CHANGED
@@ -1,8 +1,27 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2024 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
1
17
  export * from './autocompleteFieldCodes';
2
18
  export * from './getDisplayName';
3
19
  export * from './getMultilineValues';
4
20
  export * from './isEmpty';
21
+ export * from './isUnexpectedError';
5
22
  export * from './parseRegionId';
6
23
  export * from './processFormFields';
7
24
  export * from './refetchEstimatedShippingMethods';
25
+ export * from './scrollToElement';
26
+ export * from './validateForms';
8
27
  //# sourceMappingURL=index.d.ts.map
@@ -1,2 +1,18 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2024 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
1
17
  export * from './isEmpty';
2
18
  //# sourceMappingURL=index.d.ts.map
@@ -1,2 +1,18 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2024 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
1
17
  export declare function isEmpty(obj: Record<string, any>): boolean;
2
18
  //# sourceMappingURL=isEmpty.d.ts.map
@@ -1,2 +1,18 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2024 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
1
17
  export * from './isNullish';
2
18
  //# sourceMappingURL=index.d.ts.map
@@ -1,2 +1,18 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2024 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
1
17
  export declare const isNullish: (value: any) => boolean;
2
18
  //# sourceMappingURL=isNullish.d.ts.map
@@ -0,0 +1,18 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL:
3
+ * __________________
4
+ *
5
+ * Copyright 2024 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
17
+ export * from './isUnexpectedError';
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,18 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2024 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
17
+ export declare const isUnexpectedError: (error: any) => boolean;
18
+ //# sourceMappingURL=isUnexpectedError.d.ts.map
@@ -1,2 +1,18 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2024 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
1
17
  export * from './parseRegionId';
2
18
  //# sourceMappingURL=index.d.ts.map
@@ -1,2 +1,18 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2024 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
1
17
  export declare const parseRegionId: (regionId: string) => number | undefined;
2
18
  //# sourceMappingURL=parseRegionId.d.ts.map
@@ -1,2 +1,18 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2024 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
1
17
  export * from './processFormFields';
2
18
  //# sourceMappingURL=index.d.ts.map
@@ -1,2 +1,18 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2024 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
1
17
  export * from './refetchEstimatedShippingMethods';
2
18
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,18 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL:
3
+ * __________________
4
+ *
5
+ * Copyright 2024 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
17
+ export * from './scrollToElement';
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,18 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL:
3
+ * __________________
4
+ *
5
+ * Copyright 2024 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
17
+ export declare const scrollToElement: (element: HTMLElement) => void;
18
+ //# sourceMappingURL=scrollToElement.d.ts.map
@@ -1,2 +1,18 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2024 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
1
17
  export * from './isEqual';
2
18
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,18 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL:
3
+ * __________________
4
+ *
5
+ * Copyright 2024 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
17
+ export * from './validateForms';
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,18 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL:
3
+ * __________________
4
+ *
5
+ * Copyright 2024 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
17
+ export declare const validateForms: (names: string[]) => HTMLFormElement[];
18
+ //# sourceMappingURL=validateForms.d.ts.map
@@ -1 +0,0 @@
1
- import{jsx as n}from"@dropins/tools/preact-jsx-runtime.js";import"./ShippingMethods.js";import"@dropins/tools/event-bus.js";import"@dropins/tools/preact-hooks.js";import{n as s}from"./getCart.graphql.js";import{classes as i}from"@dropins/tools/lib.js";import{IllustratedMessage as l,Icon as m,Button as p}from"@dropins/tools/components.js";import"./BillToShippingAddress.js";import{useText as h}from"@dropins/tools/i18n.js";import*as e from"@dropins/tools/preact-compat.js";const x=({routeHome:r})=>{const a=s.value.data;return a!==void 0&&(a===null||a.isEmpty)?n(C,{routeHome:r}):null},u=r=>e.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...r},e.createElement("g",{clipPath:"url(#clip0_102_196)"},e.createElement("path",{vectorEffect:"non-scaling-stroke",d:"M18.3601 18.16H6.5601L4.8801 3H2.3501M19.6701 19.59C19.6701 20.3687 19.0388 21 18.2601 21C17.4814 21 16.8501 20.3687 16.8501 19.59C16.8501 18.8113 17.4814 18.18 18.2601 18.18C19.0388 18.18 19.6701 18.8113 19.6701 19.59ZM7.42986 19.59C7.42986 20.3687 6.79858 21 6.01986 21C5.24114 21 4.60986 20.3687 4.60986 19.59C4.60986 18.8113 5.24114 18.18 6.01986 18.18C6.79858 18.18 7.42986 18.8113 7.42986 19.59Z",stroke:"currentColor",strokeLinejoin:"round"}),e.createElement("path",{vectorEffect:"non-scaling-stroke",d:"M5.25 6.37L20.89 8.06L20.14 14.8H6.19",stroke:"currentColor",strokeLinejoin:"round"})),e.createElement("defs",null,e.createElement("clipPath",{id:"clip0_102_196"},e.createElement("rect",{vectorEffect:"non-scaling-stroke",width:19.29,height:19.5,fill:"white",transform:"translate(2.3501 2.25)"})))),C=({className:r,title:a,routeHome:t,...o})=>{const c=h({Title:"Checkout.EmptyCart.title",Button:"Checkout.EmptyCart.button"});return n(l,{...o,"data-testid":"checkout-empty-cart",className:i(["checkout-empty-cart",r]),heading:a??c.Title,icon:n(m,{className:i(["checkout-empty-cart__icon"]),source:u}),action:t!=null&&t()?n(p,{className:"checkout-empty-cart__button",size:"medium",variant:"primary",type:"submit",href:t==null?void 0:t(),children:c.Button},"routeHome"):void 0})};export{x as E};
@@ -1 +0,0 @@
1
- import{jsx as o}from"@dropins/tools/preact-jsx-runtime.js";import*as c from"@dropins/tools/preact-compat.js";import{useState as m,useEffect as f}from"@dropins/tools/preact-compat.js";import{events as a}from"@dropins/tools/event-bus.js";import{AlertBanner as u,Icon as g}from"@dropins/tools/components.js";import{useText as p}from"@dropins/tools/i18n.js";const h=r=>c.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...r},c.createElement("path",{vectorEffect:"non-scaling-stroke",fillRule:"evenodd",clipRule:"evenodd",d:"M1 20.8953L12.1922 1.5L23.395 20.8953H1ZM13.0278 13.9638L13.25 10.0377V9H11.25V10.0377L11.4722 13.9638H13.0278ZM11.2994 16V17.7509H13.2253V16H11.2994Z",fill:"currentColor"})),x=r=>{const[i,s]=m(!1),t=p({message:"Checkout.ErrorBanner.genericMessage"});f(()=>{const n=a.on("error",e=>{(e==null?void 0:e.source)==="checkout"&&(e==null?void 0:e.type)==="network"&&s(!0)});return()=>{n==null||n.off()}},[]);const l=()=>{s(!1)};return i?o(u,{...r,className:"checkout__banner","data-testid":"error-banner",icon:o(g,{source:h}),message:o("span",{children:t.message}),"aria-label":t.message,onDismiss:l,variant:"warning"}):null};export{x as E};
@@ -1 +0,0 @@
1
- import{jsx as e}from"@dropins/tools/preact-jsx-runtime.js";import{AlertBanner as f,Icon as u}from"@dropins/tools/components.js";import{events as g}from"@dropins/tools/event-bus.js";import*as i from"@dropins/tools/preact-compat.js";import{useState as p,useEffect as I}from"@dropins/tools/preact-compat.js";import{useText as h,Text as v}from"@dropins/tools/i18n.js";const M=t=>i.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 12C0 5.37931 5.37931 0 12 0C18.6207 0 24 5.37931 24 12C24 18.6207 18.6207 24 12 24C5.37931 24 0 18.6207 0 12ZM11.8885 5.06101C11.1405 5.06101 10.5357 5.66579 10.5357 6.4138V6.57295C10.5835 7.27321 11.1882 7.81433 11.8885 7.76658H12.0795C12.7797 7.70292 13.289 7.09815 13.2413 6.4138C13.2413 5.66579 12.6365 5.06101 11.8885 5.06101ZM13.1935 16.8223H14.1007C14.2599 16.8223 14.4031 16.9655 14.4031 17.1247V17.7294C14.4031 17.9045 14.2599 18.0318 14.1007 18.0318H9.8832C9.70813 18.0318 9.58081 17.8886 9.58081 17.7294V17.1247C9.58081 16.9496 9.72405 16.8223 9.8832 16.8223H10.7904V10.7905H9.8832C9.70813 10.7905 9.58081 10.6472 9.58081 10.4881V9.88329C9.58081 9.70823 9.72405 9.58091 9.8832 9.58091H12.5888C12.923 9.58091 13.1935 9.85146 13.1935 10.1857V16.8223Z",fill:"currentColor"})),E=t=>{const[r,s]=p(0),a=h({mergedCartBannerItems:e(v,{id:"Checkout.MergedCartBanner.items",fields:{count:r},plural:r})});I(()=>{const n=g.on("cart/merged",o=>{var m;const l=(m=o==null?void 0:o.oldCartItems)==null?void 0:m.reduce((C,d)=>C+d.quantity,0);l>0&&s(l)});return()=>{n==null||n.off()}},[]);const c=()=>{s(0)};return r?e(f,{...t,className:"checkout__banner","data-testid":"merged-cart-banner",icon:e(u,{source:M}),message:e("span",{children:a.mergedCartBannerItems}),"aria-label":a.mergedCartBannerItems,onDismiss:c,variant:"neutral"}):null};export{E as M};
@@ -1 +0,0 @@
1
- import{jsx as c,jsxs as k}from"@dropins/tools/preact-jsx-runtime.js";import"./ShippingMethods.js";import{events as f}from"@dropins/tools/event-bus.js";import"@dropins/tools/preact-hooks.js";import"./getCart.graphql.js";import{classes as h}from"@dropins/tools/lib.js";import{Card as d,Icon as p,Image as O}from"@dropins/tools/components.js";import"./BillToShippingAddress.js";import{useText as g}from"@dropins/tools/i18n.js";import*as t from"@dropins/tools/preact-compat.js";import{useState as L,useCallback as v,useEffect as E}from"@dropins/tools/preact-compat.js";const _=r=>t.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...r},t.createElement("g",{clipPath:"url(#clip0_4797_15331)"},t.createElement("path",{vectorEffect:"non-scaling-stroke",d:"M10.25 20.91L1.5 17.55V6.51996L10.25 9.92996V20.91Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{vectorEffect:"non-scaling-stroke",d:"M6.24023 4.64001L14.9902 8.06001V11.42",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{className:"error-icon",vectorEffect:"non-scaling-stroke",d:"M19 13.31L15.5 19.37H22.5L19 13.31Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{className:"error-icon",vectorEffect:"non-scaling-stroke",d:"M19.0202 17.11H18.9802L18.9502 15.56H19.0502L19.0202 17.11ZM18.9602 18.29V18.06H19.0502V18.29H18.9602Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{vectorEffect:"non-scaling-stroke",d:"M19 12.16V6.51996L10.25 9.92996V20.91L14.27 19.37L14.4 19.32",stroke:"currentColor",strokeLinejoin:"round"}),t.createElement("path",{vectorEffect:"non-scaling-stroke",d:"M1.5 6.51999L10.25 3.04999L19 6.51999L10.25 9.92999L1.5 6.51999Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),t.createElement("defs",null,t.createElement("clipPath",{id:"clip0_4797_15331"},t.createElement("rect",{width:22,height:18.86,fill:"white",transform:"translate(1 2.54999)"})))),b=({onCartProductsUpdate:r,routeCart:i})=>{const[o,u]=L([]),l=e=>e.outOfStock||e.insufficientQuantity,n=v(()=>{if(!r)return;const e=o.filter(s=>s.outOfStock).map(s=>({uid:s.uid,quantity:0}));r(e)},[o,r]);if(E(()=>{const e=f.on("cart/data",s=>{const m=(s==null?void 0:s.items)||[];u(m.filter(l))},{eager:!0});return()=>{e==null||e.off()}},[]),o.length===0)return null;const a=!o.some(e=>e.insufficientQuantity);return c(S,{items:o,onRemoveOutOfStock:a?n:void 0,routeCart:i==null?void 0:i()})},S=({className:r,items:i,onRemoveOutOfStock:o,routeCart:u,...l})=>{const n=g({title:"Checkout.OutOfStock.title",message:"Checkout.OutOfStock.message",reviewCart:"Checkout.OutOfStock.actions.reviewCart",removeOutOfStock:"Checkout.OutOfStock.actions.removeOutOfStock"});return k(d,{className:h(["checkout-out-of-stock",r]),"data-testid":"checkout-out-of-stock",variant:"secondary",...l,children:[k("h4",{className:"checkout-out-of-stock__title",children:[c(p,{source:_,size:"16",stroke:"1"}),n.title]}),c("p",{className:"checkout-out-of-stock__message",children:n.message}),c("ol",{className:"checkout-out-of-stock__items",children:i.map(a=>c("li",{"data-testid":"out-of-stock-item",className:"checkout-out-of-stock__item",children:c(O,{loading:"eager",src:a.image.src,alt:a.image.alt,width:"100",height:"100",params:{width:100}})},a.sku))}),k("div",{className:"checkout-out-of-stock__actions",children:[u&&c("a",{"data-testid":"review-cart",className:"checkout-out-of-stock__action",href:u,children:n.reviewCart}),o&&c("button",{className:"checkout-out-of-stock__action","data-testid":"remove-out-of-stock",type:"button",onClick:o,children:n.removeOutOfStock})]})]})};export{b as O,_ as S};