@dropins/storefront-checkout 0.1.0-alpha8 → 1.0.0-beta1

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 (282) hide show
  1. package/api/authenticateCustomer/authenticateCustomer.d.ts +18 -0
  2. package/api/authenticateCustomer/index.d.ts +18 -0
  3. package/api/errors/errors.d.ts +30 -0
  4. package/api/errors/index.d.ts +18 -0
  5. package/api/estimateShippingMethods/estimateShippingMethods.d.ts +13 -0
  6. package/api/estimateShippingMethods/fixtures.d.ts +8 -0
  7. package/api/estimateShippingMethods/graphql/estimateShippingMethods.graphql.d.ts +18 -0
  8. package/api/estimateShippingMethods/graphql/index.d.ts +18 -0
  9. package/api/estimateShippingMethods/index.d.ts +18 -0
  10. package/api/fetch-graphql/fetch-graphql.d.ts +25 -0
  11. package/api/fetch-graphql/index.d.ts +18 -0
  12. package/api/fragments.d.ts +19 -0
  13. package/api/getCart/fixtures.d.ts +12 -0
  14. package/api/getCart/getCart.d.ts +18 -0
  15. package/api/getCart/graphql/getCart.graphql.d.ts +19 -0
  16. package/api/getCart/graphql/index.d.ts +18 -0
  17. package/api/getCart/index.d.ts +18 -0
  18. package/api/getCustomer/fixtures.d.ts +5 -0
  19. package/api/getCustomer/getCustomer.d.ts +4 -0
  20. package/api/getCustomer/graphql/getCustomer.graphql.d.ts +18 -0
  21. package/api/getCustomer/graphql/index.d.ts +18 -0
  22. package/api/getCustomer/index.d.ts +18 -0
  23. package/api/getStoreConfig/getStoreConfig.d.ts +6 -0
  24. package/api/getStoreConfig/graphql/getStoreConfig.graphql.d.ts +18 -0
  25. package/api/getStoreConfig/index.d.ts +18 -0
  26. package/api/graphql/CartAddressFragment.graphql.d.ts +19 -0
  27. package/api/graphql/CheckoutDataFragment.graphql.d.ts +18 -0
  28. package/api/graphql/CustomerFragment.graphql.d.ts +18 -0
  29. package/api/index.d.ts +34 -0
  30. package/api/initialize/index.d.ts +18 -0
  31. package/api/initialize/initialize.d.ts +15 -0
  32. package/api/initialize/listeners.d.ts +20 -0
  33. package/api/initializeCheckout/index.d.ts +18 -0
  34. package/api/initializeCheckout/initializeCheckout.d.ts +4 -0
  35. package/api/isEmailAvailable/graphql/isEmailAvailable.graphql.d.ts +18 -0
  36. package/api/isEmailAvailable/index.d.ts +18 -0
  37. package/api/isEmailAvailable/isEmailAvailable.d.ts +4 -0
  38. package/api/resetCheckout/index.d.ts +2 -0
  39. package/api/resetCheckout/resetCheckout.d.ts +18 -0
  40. package/api/setBillingAddress/graphql/setBillingAddress.graphql.d.ts +18 -0
  41. package/api/setBillingAddress/index.d.ts +18 -0
  42. package/api/setBillingAddress/setBillingAddress.d.ts +4 -0
  43. package/api/setGuestEmailOnCart/graphql/setGuestEmailOnCart.graphql.d.ts +18 -0
  44. package/api/setGuestEmailOnCart/index.d.ts +18 -0
  45. package/api/setGuestEmailOnCart/setGuestEmailOnCart.d.ts +18 -0
  46. package/api/setPaymentMethod/graphql/setPaymentMethod.graphql.d.ts +18 -0
  47. package/api/setPaymentMethod/index.d.ts +18 -0
  48. package/api/setPaymentMethod/setPaymentMethod.d.ts +4 -0
  49. package/api/setShippingAddress/graphql/setShippingAddress.graphql.d.ts +18 -0
  50. package/api/setShippingAddress/index.d.ts +18 -0
  51. package/api/setShippingAddress/setShippingAddress.d.ts +4 -0
  52. package/api/setShippingMethods/graphql/setShippingMethodsOnCart.graphql.d.ts +18 -0
  53. package/api/setShippingMethods/index.d.ts +18 -0
  54. package/api/setShippingMethods/setShippingMethods.d.ts +18 -0
  55. package/api/synchronizeCheckout/index.d.ts +18 -0
  56. package/api/synchronizeCheckout/synchronizeCheckout.d.ts +4 -0
  57. package/api/utils/dispatchApiCall.d.ts +40 -0
  58. package/api/utils/enqueueRequest.d.ts +26 -0
  59. package/api/utils/filterControlledErrors.d.ts +18 -0
  60. package/api.d.ts +1 -0
  61. package/api.js +39 -2
  62. package/chunks/OrderError.js +3 -0
  63. package/chunks/ServerErrorSignal.js +3 -0
  64. package/chunks/classes.js +3 -0
  65. package/chunks/fetch-graphql.js +12 -0
  66. package/chunks/setBillingAddress.js +13 -0
  67. package/chunks/setGuestEmailOnCart.js +19 -0
  68. package/chunks/setPaymentMethod.js +18 -0
  69. package/chunks/setShippingMethods.js +18 -0
  70. package/chunks/store-config.js +3 -0
  71. package/chunks/synchronizeCheckout.js +27 -0
  72. package/chunks/withConditionalRendering.js +3 -0
  73. package/components/BillToShippingAddress/BillToShippingAddress.d.ts +9 -0
  74. package/components/BillToShippingAddress/BillToShippingAddressSkeleton.d.ts +4 -0
  75. package/components/BillToShippingAddress/index.d.ts +20 -0
  76. package/components/EstimateShipping/EstimateShipping.d.ts +12 -0
  77. package/components/EstimateShipping/EstimateShippingSkeleton.d.ts +4 -0
  78. package/components/EstimateShipping/index.d.ts +20 -0
  79. package/components/LoginForm/Email.d.ts +13 -0
  80. package/components/LoginForm/LoginForm.d.ts +20 -0
  81. package/components/LoginForm/LoginFormSkeleton.d.ts +4 -0
  82. package/components/LoginForm/SignIn.d.ts +8 -0
  83. package/components/LoginForm/SignOut.d.ts +8 -0
  84. package/components/LoginForm/index.d.ts +22 -0
  85. package/components/OutOfStock/OutOfStock.d.ts +11 -0
  86. package/components/OutOfStock/index.d.ts +19 -0
  87. package/components/PaymentMethods/PaymentMethods.d.ts +14 -0
  88. package/components/PaymentMethods/PaymentMethodsSkeleton.d.ts +4 -0
  89. package/components/PaymentMethods/index.d.ts +20 -0
  90. package/components/PlaceOrder/PlaceOrder.d.ts +9 -0
  91. package/components/PlaceOrder/PlaceOrderSkeleton.d.ts +4 -0
  92. package/components/PlaceOrder/index.d.ts +19 -0
  93. package/components/ServerError/ServerError.d.ts +10 -0
  94. package/components/ServerError/index.d.ts +19 -0
  95. package/components/ShippingMethods/ShippingMethods.d.ts +12 -0
  96. package/components/ShippingMethods/ShippingMethodsSkeleton.d.ts +4 -0
  97. package/components/ShippingMethods/index.d.ts +20 -0
  98. package/components/index.d.ts +25 -0
  99. package/containers/BillToShippingAddress/BillToShippingAddress.d.ts +24 -0
  100. package/containers/BillToShippingAddress/index.d.ts +19 -0
  101. package/containers/BillToShippingAddress.d.ts +3 -0
  102. package/containers/BillToShippingAddress.js +3 -1
  103. package/containers/ErrorBanner/ErrorBanner.d.ts +5 -0
  104. package/containers/ErrorBanner/index.d.ts +19 -0
  105. package/containers/ErrorBanner.d.ts +3 -0
  106. package/containers/ErrorBanner.js +3 -0
  107. package/containers/EstimateShipping/EstimateShipping.d.ts +4 -0
  108. package/containers/EstimateShipping/index.d.ts +19 -0
  109. package/containers/EstimateShipping.d.ts +3 -0
  110. package/containers/EstimateShipping.js +3 -0
  111. package/containers/LoginForm/LoginForm.d.ts +11 -0
  112. package/containers/LoginForm/index.d.ts +19 -0
  113. package/containers/LoginForm.d.ts +3 -0
  114. package/containers/LoginForm.js +3 -1
  115. package/containers/MergedCartBanner/MergedCartBanner.d.ts +7 -0
  116. package/containers/MergedCartBanner/index.d.ts +19 -0
  117. package/containers/MergedCartBanner.d.ts +3 -0
  118. package/containers/MergedCartBanner.js +3 -0
  119. package/containers/OutOfStock/OutOfStock.d.ts +13 -0
  120. package/containers/OutOfStock/index.d.ts +19 -0
  121. package/containers/OutOfStock.d.ts +3 -0
  122. package/containers/OutOfStock.js +3 -0
  123. package/containers/PaymentMethods/PaymentMethods.d.ts +27 -0
  124. package/containers/PaymentMethods/defaultHandlers.d.ts +4 -0
  125. package/containers/PaymentMethods/index.d.ts +19 -0
  126. package/containers/PaymentMethods.d.ts +3 -0
  127. package/containers/PaymentMethods.js +3 -1
  128. package/containers/PlaceOrder/PlaceOrder.d.ts +16 -0
  129. package/containers/PlaceOrder/index.d.ts +19 -0
  130. package/containers/PlaceOrder.d.ts +3 -0
  131. package/containers/PlaceOrder.js +3 -2
  132. package/containers/ServerError/ServerError.d.ts +8 -0
  133. package/containers/ServerError/index.d.ts +19 -0
  134. package/containers/ServerError.d.ts +3 -0
  135. package/containers/ServerError.js +3 -0
  136. package/containers/ShippingMethods/ShippingMethods.d.ts +17 -0
  137. package/containers/ShippingMethods/hooks/useShippingEstimateEventEmitter.d.ts +19 -0
  138. package/containers/ShippingMethods/index.d.ts +19 -0
  139. package/containers/ShippingMethods.d.ts +3 -0
  140. package/containers/ShippingMethods.js +3 -1
  141. package/containers/index.d.ts +27 -0
  142. package/data/models/address.d.ts +21 -0
  143. package/data/models/api.d.ts +33 -0
  144. package/data/models/cart.d.ts +19 -0
  145. package/data/models/country.d.ts +21 -0
  146. package/data/models/custom-attribute.d.ts +21 -0
  147. package/data/models/customer.d.ts +22 -0
  148. package/data/models/email-availability.d.ts +18 -0
  149. package/data/models/index.d.ts +30 -0
  150. package/data/models/payment-method.d.ts +21 -0
  151. package/data/models/price.d.ts +21 -0
  152. package/data/models/region.d.ts +22 -0
  153. package/data/models/shipping-estimate.d.ts +17 -0
  154. package/data/models/shipping-method.d.ts +19 -0
  155. package/data/models/store-config.d.ts +30 -0
  156. package/data/transforms/index.d.ts +24 -0
  157. package/data/transforms/transform-address.d.ts +95 -0
  158. package/data/transforms/transform-cart.d.ts +7 -0
  159. package/data/transforms/transform-customer.d.ts +7 -0
  160. package/data/transforms/transform-email-availability.d.ts +6 -0
  161. package/data/transforms/transform-payment-methods.d.ts +9 -0
  162. package/data/transforms/transform-shipping-estimate.d.ts +5 -0
  163. package/data/transforms/transform-shipping-methods.d.ts +14 -0
  164. package/data/transforms/transform-store-config.d.ts +6 -0
  165. package/fragments.d.ts +1 -0
  166. package/fragments.js +134 -0
  167. package/hocs/index.d.ts +18 -0
  168. package/hocs/withConditionalRendering.d.ts +13 -0
  169. package/hooks/index.d.ts +20 -0
  170. package/hooks/useBreakpoint/index.d.ts +18 -0
  171. package/hooks/useBreakpoint/useBreakpoint.d.ts +18 -0
  172. package/hooks/useLockScroll/index.d.ts +18 -0
  173. package/hooks/useLockScroll/useLockScroll.d.ts +21 -0
  174. package/hooks/useStableList/index.d.ts +2 -0
  175. package/hooks/useStableList/useStableList.d.ts +2 -0
  176. package/i18n/en_US.json.d.ts +79 -0
  177. package/lib/fetch-error.d.ts +23 -0
  178. package/lib/index.d.ts +21 -0
  179. package/lib/network-error.d.ts +22 -0
  180. package/lib/state.d.ts +24 -0
  181. package/lib/validation.d.ts +5 -0
  182. package/msw/browser.d.ts +18 -0
  183. package/msw/fixtures/fragments/available-shipping-methods.d.ts +23 -0
  184. package/msw/fixtures/fragments/billing-address.d.ts +60 -0
  185. package/msw/fixtures/fragments/cart.d.ts +149 -0
  186. package/msw/fixtures/fragments/index.d.ts +21 -0
  187. package/msw/fixtures/fragments/shipping-address.d.ts +62 -0
  188. package/msw/fixtures/index.d.ts +20 -0
  189. package/msw/fixtures/mutations/estimate-shipping-methods.d.ts +4 -0
  190. package/msw/fixtures/mutations/index.d.ts +23 -0
  191. package/msw/fixtures/mutations/set-billing-address.d.ts +5 -0
  192. package/msw/fixtures/mutations/set-guest-email.d.ts +4 -0
  193. package/msw/fixtures/mutations/set-payment-method.d.ts +4 -0
  194. package/msw/fixtures/mutations/set-shipping-address.d.ts +4 -0
  195. package/msw/fixtures/mutations/set-shipping-methods.d.ts +4 -0
  196. package/msw/fixtures/queries/get-cart.d.ts +4 -0
  197. package/msw/fixtures/queries/get-customer-cart-stock-status.d.ts +4 -0
  198. package/msw/fixtures/queries/get-customer.d.ts +5 -0
  199. package/msw/fixtures/queries/get-stock-status.d.ts +4 -0
  200. package/msw/fixtures/queries/get-store-config.d.ts +4 -0
  201. package/msw/fixtures/queries/index.d.ts +23 -0
  202. package/msw/fixtures/queries/is-email-available.d.ts +4 -0
  203. package/msw/handlers.d.ts +4 -0
  204. package/msw/server.d.ts +18 -0
  205. package/package.json +1 -1
  206. package/render/Provider.d.ts +8 -0
  207. package/render/index.d.ts +18 -0
  208. package/render/render.d.ts +6 -0
  209. package/render.d.ts +1 -0
  210. package/render.js +9 -1
  211. package/signals/CartSignal.d.ts +7 -0
  212. package/signals/CustomerSignal.d.ts +7 -0
  213. package/signals/EstimateShippingMethodsSignal.d.ts +7 -0
  214. package/signals/IsBillToShippingSignal.d.ts +18 -0
  215. package/signals/SelectedPaymentMethodSignal.d.ts +18 -0
  216. package/signals/SelectedShippingMethodSignal.d.ts +4 -0
  217. package/signals/ServerErrorSignal.d.ts +18 -0
  218. package/signals/StoreConfigSignal.d.ts +7 -0
  219. package/signals/index.d.ts +25 -0
  220. package/tests/constants.d.ts +19 -0
  221. package/tests/integration/utils/index.d.ts +19 -0
  222. package/tests/integration/utils/setup.d.ts +8 -0
  223. package/tests/integration/utils/user-actions.d.ts +18 -0
  224. package/tests/mocks/svg.d.ts +20 -0
  225. package/tests/utils/expectError.d.ts +25 -0
  226. package/tests/utils/index.d.ts +19 -0
  227. package/tests/utils/mockEvents.d.ts +21 -0
  228. package/utils/convertCase/convertCase.d.ts +4 -0
  229. package/utils/convertCase/index.d.ts +18 -0
  230. package/utils/getDisplayName/getDisplayName.d.ts +4 -0
  231. package/utils/getDisplayName/index.d.ts +18 -0
  232. package/utils/index.d.ts +21 -0
  233. package/utils/isEmpty/index.d.ts +18 -0
  234. package/utils/isEmpty/isEmpty.d.ts +18 -0
  235. package/utils/isNullish/index.d.ts +18 -0
  236. package/utils/isNullish/isNullish.d.ts +18 -0
  237. package/utils/isUnexpectedError/index.d.ts +18 -0
  238. package/utils/isUnexpectedError/isUnexpectedError.d.ts +18 -0
  239. package/utils/shippingMethods/index.d.ts +18 -0
  240. package/utils/shippingMethods/isEqual.d.ts +4 -0
  241. package/139.js +0 -1
  242. package/213.js +0 -2
  243. package/213.js.LICENSE.txt +0 -1
  244. package/292.js +0 -2
  245. package/292.js.LICENSE.txt +0 -1
  246. package/350.js +0 -2
  247. package/350.js.LICENSE.txt +0 -1
  248. package/357.js +0 -1
  249. package/393.js +0 -2
  250. package/393.js.LICENSE.txt +0 -1
  251. package/4.js +0 -1
  252. package/41.js +0 -2
  253. package/41.js.LICENSE.txt +0 -1
  254. package/43.js +0 -1
  255. package/483.js +0 -2
  256. package/483.js.LICENSE.txt +0 -1
  257. package/494.js +0 -2
  258. package/494.js.LICENSE.txt +0 -1
  259. package/516.js +0 -1
  260. package/549.js +0 -2
  261. package/549.js.LICENSE.txt +0 -1
  262. package/584.js +0 -1
  263. package/636.js +0 -2
  264. package/636.js.LICENSE.txt +0 -1
  265. package/687.js +0 -2
  266. package/687.js.LICENSE.txt +0 -1
  267. package/693.js +0 -1
  268. package/731.js +0 -1
  269. package/802.js +0 -2
  270. package/802.js.LICENSE.txt +0 -1
  271. package/805.js +0 -2
  272. package/805.js.LICENSE.txt +0 -1
  273. package/88.js +0 -2
  274. package/88.js.LICENSE.txt +0 -1
  275. package/api.js.LICENSE.txt +0 -3
  276. package/containers/BillingForm.js +0 -1
  277. package/containers/Checkout.js +0 -2
  278. package/containers/Checkout.js.LICENSE.txt +0 -1
  279. package/containers/OrderSummary.js +0 -1
  280. package/containers/PlaceOrder.js.LICENSE.txt +0 -1
  281. package/containers/ShippingForm.js +0 -1
  282. package/runtime.js +0 -1
@@ -0,0 +1,149 @@
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 cartFixture: {
18
+ __typename?: "Cart" | undefined;
19
+ id: string;
20
+ is_virtual: boolean;
21
+ email?: string | null | undefined;
22
+ total_quantity: number;
23
+ billing_address?: {
24
+ __typename?: "BillingCartAddress" | undefined;
25
+ id?: number | null | undefined;
26
+ city: string;
27
+ firstname: string;
28
+ lastname: string;
29
+ company?: string | null | undefined;
30
+ postcode?: string | null | undefined;
31
+ vat_id?: string | null | undefined;
32
+ street: (string | null)[];
33
+ telephone?: string | null | undefined;
34
+ prefix?: string | null | undefined;
35
+ suffix?: string | null | undefined;
36
+ middlename?: string | null | undefined;
37
+ fax?: string | null | undefined;
38
+ country: {
39
+ __typename?: "CartAddressCountry" | undefined;
40
+ code: string;
41
+ label: string;
42
+ };
43
+ region?: {
44
+ __typename?: "CartAddressRegion" | undefined;
45
+ region_id?: number | null | undefined;
46
+ code?: string | null | undefined;
47
+ label?: string | null | undefined;
48
+ } | null | undefined;
49
+ custom_attributes: ({
50
+ __typename?: "AttributeSelectedOptions" | undefined;
51
+ } | {
52
+ __typename?: "AttributeValue" | undefined;
53
+ code: string;
54
+ value: string;
55
+ } | null)[];
56
+ } | null | undefined;
57
+ shipping_addresses: ({
58
+ __typename?: "ShippingCartAddress" | undefined;
59
+ id?: number | null | undefined;
60
+ firstname: string;
61
+ lastname: string;
62
+ company?: string | null | undefined;
63
+ street: (string | null)[];
64
+ city: string;
65
+ postcode?: string | null | undefined;
66
+ vat_id?: string | null | undefined;
67
+ telephone?: string | null | undefined;
68
+ same_as_billing: boolean;
69
+ prefix?: string | null | undefined;
70
+ suffix?: string | null | undefined;
71
+ middlename?: string | null | undefined;
72
+ fax?: string | null | undefined;
73
+ region?: {
74
+ __typename?: "CartAddressRegion" | undefined;
75
+ region_id?: number | null | undefined;
76
+ code?: string | null | undefined;
77
+ label?: string | null | undefined;
78
+ } | null | undefined;
79
+ country: {
80
+ __typename?: "CartAddressCountry" | undefined;
81
+ code: string;
82
+ label: string;
83
+ };
84
+ custom_attributes: ({
85
+ __typename?: "AttributeSelectedOptions" | undefined;
86
+ } | {
87
+ __typename?: "AttributeValue" | undefined;
88
+ code: string;
89
+ value: string;
90
+ } | null)[];
91
+ available_shipping_methods?: ({
92
+ __typename?: "AvailableShippingMethod" | undefined;
93
+ available: boolean;
94
+ carrier_code: string;
95
+ carrier_title: string;
96
+ error_message?: string | null | undefined;
97
+ method_code?: string | null | undefined;
98
+ method_title?: string | null | undefined;
99
+ amount: {
100
+ __typename?: "Money" | undefined;
101
+ currency?: import('../../../__generated__/types').CurrencyEnum | null | undefined;
102
+ value?: number | null | undefined;
103
+ };
104
+ price_excl_tax: {
105
+ __typename?: "Money" | undefined;
106
+ value?: number | null | undefined;
107
+ currency?: import('../../../__generated__/types').CurrencyEnum | null | undefined;
108
+ };
109
+ price_incl_tax: {
110
+ __typename?: "Money" | undefined;
111
+ value?: number | null | undefined;
112
+ currency?: import('../../../__generated__/types').CurrencyEnum | null | undefined;
113
+ };
114
+ } | null)[] | null | undefined;
115
+ selected_shipping_method?: {
116
+ __typename?: "SelectedShippingMethod" | undefined;
117
+ carrier_code: string;
118
+ carrier_title: string;
119
+ method_code: string;
120
+ method_title: string;
121
+ amount: {
122
+ __typename?: "Money" | undefined;
123
+ value?: number | null | undefined;
124
+ currency?: import('../../../__generated__/types').CurrencyEnum | null | undefined;
125
+ };
126
+ price_excl_tax: {
127
+ __typename?: "Money" | undefined;
128
+ value?: number | null | undefined;
129
+ currency?: import('../../../__generated__/types').CurrencyEnum | null | undefined;
130
+ };
131
+ price_incl_tax: {
132
+ __typename?: "Money" | undefined;
133
+ value?: number | null | undefined;
134
+ currency?: import('../../../__generated__/types').CurrencyEnum | null | undefined;
135
+ };
136
+ } | null | undefined;
137
+ } | null)[];
138
+ available_payment_methods?: ({
139
+ __typename?: "AvailablePaymentMethod" | undefined;
140
+ code: string;
141
+ title: string;
142
+ } | null)[] | null | undefined;
143
+ selected_payment_method?: {
144
+ __typename?: "SelectedPaymentMethod" | undefined;
145
+ code: string;
146
+ title: string;
147
+ } | null | undefined;
148
+ } | null | undefined;
149
+ //# sourceMappingURL=cart.d.ts.map
@@ -0,0 +1,21 @@
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 './shipping-address';
18
+ export * from './available-shipping-methods';
19
+ export * from './billing-address';
20
+ export * from './cart';
21
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,62 @@
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 shippingAddressFixture: {
18
+ firstname: string;
19
+ lastname: string;
20
+ company: null;
21
+ street: string[];
22
+ city: string;
23
+ postcode: string;
24
+ vat_id: null;
25
+ country: {
26
+ code: string;
27
+ label: string;
28
+ };
29
+ region: {
30
+ region_id: number;
31
+ code: string;
32
+ label: string;
33
+ };
34
+ telephone: string;
35
+ custom_attributes: {}[];
36
+ available_shipping_methods: {
37
+ amount: {
38
+ currency: import('../../../__generated__/types').CurrencyEnum;
39
+ value: number;
40
+ };
41
+ available: boolean;
42
+ carrier_code: string;
43
+ carrier_title: string;
44
+ error_message: string;
45
+ method_code: string;
46
+ method_title: string;
47
+ price_excl_tax: {
48
+ value: number;
49
+ currency: import('../../../__generated__/types').CurrencyEnum;
50
+ };
51
+ price_incl_tax: {
52
+ value: number;
53
+ currency: import('../../../__generated__/types').CurrencyEnum;
54
+ };
55
+ }[];
56
+ selected_shipping_method: null;
57
+ prefix: string;
58
+ suffix: string;
59
+ middlename: string;
60
+ fax: string;
61
+ };
62
+ //# sourceMappingURL=shipping-address.d.ts.map
@@ -0,0 +1,20 @@
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 './fragments';
18
+ export * from './queries';
19
+ export * from './mutations';
20
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,4 @@
1
+ import { EstimateShippingMethodsMutation } from '../../../__generated__/types';
2
+
3
+ export declare const estimateShippingMethodsFixture: EstimateShippingMethodsMutation;
4
+ //# sourceMappingURL=estimate-shipping-methods.d.ts.map
@@ -0,0 +1,23 @@
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 './estimate-shipping-methods';
18
+ export * from './set-billing-address';
19
+ export * from './set-guest-email';
20
+ export * from './set-payment-method';
21
+ export * from './set-shipping-address';
22
+ export * from './set-shipping-methods';
23
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,5 @@
1
+ import { SetBillingAddressMutation } from '../../../__generated__/types';
2
+
3
+ export declare const setBillingAddressFixture: SetBillingAddressMutation;
4
+ export declare const setBillingAddressSameAsShippingFixture: SetBillingAddressMutation;
5
+ //# sourceMappingURL=set-billing-address.d.ts.map
@@ -0,0 +1,4 @@
1
+ import { SetGuestEmailMutation } from '../../../__generated__/types';
2
+
3
+ export declare const setGuestEmailFixture: SetGuestEmailMutation;
4
+ //# sourceMappingURL=set-guest-email.d.ts.map
@@ -0,0 +1,4 @@
1
+ import { SetPaymentMethodMutation } from '../../../__generated__/types';
2
+
3
+ export declare const setPaymentMethodFixture: SetPaymentMethodMutation;
4
+ //# sourceMappingURL=set-payment-method.d.ts.map
@@ -0,0 +1,4 @@
1
+ import { SetShippingAddressMutation } from '../../../__generated__/types';
2
+
3
+ export declare const setShippingAddressFixture: SetShippingAddressMutation;
4
+ //# sourceMappingURL=set-shipping-address.d.ts.map
@@ -0,0 +1,4 @@
1
+ import { SetShippingMethodsMutation } from '../../../__generated__/types';
2
+
3
+ export declare const setShippingMethodsFixture: SetShippingMethodsMutation;
4
+ //# sourceMappingURL=set-shipping-methods.d.ts.map
@@ -0,0 +1,4 @@
1
+ import { GetCartQuery } from '../../../__generated__/types';
2
+
3
+ export declare const getCartFixture: GetCartQuery;
4
+ //# sourceMappingURL=get-cart.d.ts.map
@@ -0,0 +1,4 @@
1
+ import { GetCustomerCartStockStatusQuery } from '../../../__generated__/types';
2
+
3
+ export declare const getCustomerCartStockStatusFixture: GetCustomerCartStockStatusQuery;
4
+ //# sourceMappingURL=get-customer-cart-stock-status.d.ts.map
@@ -0,0 +1,5 @@
1
+ import { GetCustomerQuery } from '../../../__generated__/types';
2
+
3
+ export declare const getCustomerFixture: GetCustomerQuery;
4
+ export declare const getUkCustomerFixture: GetCustomerQuery;
5
+ //# sourceMappingURL=get-customer.d.ts.map
@@ -0,0 +1,4 @@
1
+ import { GetCartStockStatusQuery } from '../../../__generated__/types';
2
+
3
+ export declare const getCartStockStatusFixture: GetCartStockStatusQuery;
4
+ //# sourceMappingURL=get-stock-status.d.ts.map
@@ -0,0 +1,4 @@
1
+ import { GetStoreConfigQuery } from '../../../__generated__/types';
2
+
3
+ export declare const getStoreConfigFixture: GetStoreConfigQuery;
4
+ //# sourceMappingURL=get-store-config.d.ts.map
@@ -0,0 +1,23 @@
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 './get-cart';
18
+ export * from './get-store-config';
19
+ export * from './get-stock-status';
20
+ export * from './is-email-available';
21
+ export * from './get-customer';
22
+ export * from './get-customer-cart-stock-status';
23
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,4 @@
1
+ import { IsEmailAvailableQuery } from '../../../__generated__/types';
2
+
3
+ export declare const isEmailAvailableFixture: IsEmailAvailableQuery;
4
+ //# sourceMappingURL=is-email-available.d.ts.map
@@ -0,0 +1,4 @@
1
+ import { GraphQLHandler } from 'msw';
2
+
3
+ export declare const handlers: GraphQLHandler[];
4
+ //# sourceMappingURL=handlers.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 server: import('msw/node').SetupServerApi;
18
+ //# sourceMappingURL=server.d.ts.map
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name": "@dropins/storefront-checkout", "version": "0.1.0-alpha8", "dependencies": { "@dropins/elsie": "~0.10.0" } }
1
+ {"name": "@dropins/storefront-checkout", "version": "1.0.0-beta1", "@dropins/tools": "~0.36.0"}
@@ -0,0 +1,8 @@
1
+ import { FunctionComponent } from 'preact';
2
+
3
+ interface IntlProviderProps {
4
+ children?: any;
5
+ }
6
+ export declare const Provider: FunctionComponent<IntlProviderProps>;
7
+ export {};
8
+ //# sourceMappingURL=Provider.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 './render';
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,6 @@
1
+ import { Render } from '@dropins/tools/types/elsie/src/lib';
2
+ import { Provider } from './Provider';
3
+
4
+ export { Provider };
5
+ export declare const render: Render;
6
+ //# sourceMappingURL=render.d.ts.map
package/render.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './render/index'
package/render.js CHANGED
@@ -1 +1,9 @@
1
- import*as e from"@dropins/elsie/event-bus.js";import*as t from"@dropins/elsie/fetch-graphql.js";import*as r from"@dropins/elsie/preact-compat.js";import*as n from"@dropins/elsie/preact-hooks.js";import*as o from"@dropins/elsie/preact-jsx-runtime.js";import*as i from"@dropins/elsie/preact.js";export const id=70;export const ids=[70];export const modules={6680:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key),"symbol"===n(i)?i:String(i)),o)}var i}function i(e,t,r){return t&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}function l(e){var t=f();return function(){var r,o=d(e);if(t){var i=d(this).constructor;r=Reflect.construct(o,arguments,i)}else r=o.apply(this,arguments);return function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function s(e){var t="function"==typeof Map?new Map:void 0;return s=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return c(e,arguments,d(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),p(r,e)},s(e)}function c(e,t,r){return c=f()?Reflect.construct.bind():function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&p(o,r.prototype),o},c.apply(null,arguments)}function f(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}r.d(t,{Cl:()=>g,Pz:()=>y,S2:()=>v,UM:()=>w,dz:()=>b,e8:()=>S,fQ:()=>h,kp:()=>m});var m=function(e){u(r,e);var t=l(r);function r(e){var n;return a(this,r),(n=t.call(this,e.map((function(e){return e.message})).join(" "))).name="FetchError",n}return i(r)}(s(Error)),y=function(e){u(r,e);var t=l(r);function r(e){var n;return a(this,r),(n=t.call(this,e)).name="InvalidArgument",n}return i(r)}(s(Error)),v=function(e){u(r,e);var t=l(r);function r(e){var n;return a(this,r),(n=t.call(this,e)).name="UnexpectedError",n}return i(r)}(s(Error)),h=function(e){u(r,e);var t=l(r);function r(){return a(this,r),t.call(this,"Cart ID is required")}return i(r)}(y),b=function(e){u(r,e);var t=l(r);function r(){return a(this,r),t.call(this,"Email is required")}return i(r)}(y),g=function(e){u(r,e);var t=l(r);function r(){return a(this,r),t.call(this,"Payment method code is required")}return i(r)}(y),S=function(e){u(r,e);var t=l(r);function r(){return a(this,r),t.call(this,"Billing address is required")}return i(r)}(y),w=function(e){u(r,e);var t=l(r);function r(){return a(this,r),t.call(this,"Country Code is required")}return i(r)}(y)},7096:(e,t,r)=>{r.d(t,{g:()=>o,m:()=>n});var n="\n fragment CheckoutData on Cart {\n id\n is_virtual\n email\n items {\n uid\n }\n billing_address {\n city\n country {\n code\n label\n }\n firstname\n lastname\n company\n postcode\n vat_id\n region {\n code\n label\n }\n street\n telephone\n custom_attributes {\n ... on AttributeValue {\n code\n value\n }\n }\n }\n shipping_addresses {\n firstname\n lastname\n company\n street\n city\n postcode\n vat_id\n region {\n code\n label\n }\n country {\n code\n label\n }\n telephone\n custom_attributes {\n ... on AttributeValue {\n code\n value\n }\n }\n available_shipping_methods {\n amount {\n currency\n value\n }\n available\n carrier_code\n carrier_title\n error_message\n method_code\n method_title\n price_excl_tax {\n value\n currency\n }\n price_incl_tax {\n value\n currency\n }\n }\n selected_shipping_method {\n amount {\n value\n currency\n }\n carrier_code\n carrier_title\n method_code\n method_title\n }\n }\n available_payment_methods {\n code\n title\n }\n selected_payment_method {\n code\n title\n }\n applied_coupons {\n code\n }\n prices {\n grand_total {\n value\n currency\n }\n subtotal_excluding_tax {\n value\n currency\n }\n subtotal_including_tax {\n value\n currency\n }\n applied_taxes {\n label\n amount {\n currency\n value\n }\n }\n }\n }\n",o="\n query GET_CHECKOUT_DATA($cartId: String!) {\n cart(cart_id: $cartId) {\n id\n ...CheckoutData\n }\n }\n ".concat(n,"\n")},7159:(e,t,r)=>{r.d(t,{Hz:()=>u,Su:()=>l});var n=r(3474),o=r(5437),i=r(7188),a=(0,n.createContext)({});function u(e){var t=e.children,r=e.services;return(0,i.jsx)(a.Provider,{value:r,children:t})}function l(){var e=(0,o.useContext)(a);if(void 0!==e)return e;throw new Error("useServices must be used within a ServicesProvider")}},8481:(e,t,r)=>{r.d(t,{s:()=>S});var n=r(3516),o=r(4114),i=r(8393),a=r(7159);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==u(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key),"symbol"===u(o)?o:String(o)),n)}var o}var s=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,(r=[{key:"isAvailable",value:function(){return!!window.localStorage}},{key:"getKeys",value:function(){return this.isAvailable()?Object.keys(window.localStorage):[]}},{key:"setItem",value:function(e,t){this.isAvailable()&&window.localStorage.setItem(e,t)}},{key:"getItem",value:function(e){return this.isAvailable()?window.localStorage.getItem(e):null}},{key:"removeItem",value:function(e){this.isAvailable()&&window.localStorage.removeItem(e)}}])&&l(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==c(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key),"symbol"===c(o)?o:String(o)),n)}var o}var p=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.namespace=t,this.repository=r}var t,r;return t=e,(r=[{key:"namespaced",value:function(e){return"".concat(this.namespace,":").concat(e)}},{key:"backup",value:function(e,t){return this.repository.setItem(this.namespaced(e),JSON.stringify(t))}},{key:"restore",value:function(e){var t=this.repository.getItem(this.namespaced(e));return t?JSON.parse(t):null}},{key:"remove",value:function(e){return this.repository.removeItem(this.namespaced(e))}},{key:"clear",value:function(){var e=this;this.repository.getKeys().filter((function(t){return t.startsWith(e.namespace)})).forEach((function(t){e.repository.removeItem(t)}))}}])&&f(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),d=r(9978),m=r(6765),y=r(5437),v=r(7188);function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var b={default:r(7770)},g=function(e){var t,r,n=e.children,u=o.v.getConfig().storeKey,l=(t=(0,y.useState)("en_US"),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,u=[],l=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(u.push(n.value),u.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}}(t,r)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=l[0],f=l[1],g=(0,y.useMemo)((function(){return new p(u,new s)}),[u]);return(0,y.useEffect)((function(){var e=m.events.on("locale",(function(e){f(e)}),{eager:!0});return function(){null==e||e.off()}}),[]),(0,v.jsx)(d.J,{lang:c,langDefinitions:b,children:(0,v.jsx)(i.oo,{children:(0,v.jsx)(a.Hz,{services:{backupService:g},children:n})})})},S=new n.H((0,v.jsx)(g,{}))},6765:(t,r,n)=>{var o,i;t.exports=(o={events:()=>e.events},i={},n.d(i,o),i)},9699:(e,r,n)=>{var o,i;e.exports=(o={FetchGraphQL:()=>t.FetchGraphQL},i={},n.d(i,o),i)},4853:(e,t,n)=>{var o,i;e.exports=(o={forwardRef:()=>r.forwardRef,useCallback:()=>r.useCallback,useEffect:()=>r.useEffect,useImperativeHandle:()=>r.useImperativeHandle,useMemo:()=>r.useMemo,useRef:()=>r.useRef,useState:()=>r.useState},i={},n.d(i,o),i)},5437:(e,t,r)=>{var o,i;e.exports=(o={useCallback:()=>n.useCallback,useContext:()=>n.useContext,useDebugValue:()=>n.useDebugValue,useEffect:()=>n.useEffect,useId:()=>n.useId,useImperativeHandle:()=>n.useImperativeHandle,useLayoutEffect:()=>n.useLayoutEffect,useMemo:()=>n.useMemo,useReducer:()=>n.useReducer,useRef:()=>n.useRef,useState:()=>n.useState},i={},r.d(i,o),i)},4142:(e,t,r)=>{var n,i;e.exports=(n={Fragment:()=>o.Fragment,jsx:()=>o.jsx,jsxs:()=>o.jsxs},i={},r.d(i,n),i)},3474:(e,t,r)=>{var n,o;e.exports=(n={Component:()=>i.Component,Fragment:()=>i.Fragment,cloneElement:()=>i.cloneElement,createContext:()=>i.createContext,createElement:()=>i.createElement,createRef:()=>i.createRef,h:()=>i.h,hydrate:()=>i.hydrate,isValidElement:()=>i.isValidElement,options:()=>i.options,render:()=>i.render,toChildArray:()=>i.toChildArray},o={},r.d(o,n),o)},7770:e=>{e.exports=JSON.parse('{"Checkout":{"title":"Checkout","LoginForm":{"title":"Contact details","account":"Already have an account?","ariaLabel":"Email","invalidEmailError":"Please enter a valid email address.","missingEmailError":"Enter an email address.","emailExists":"It looks like you already have an account. Sign in for a faster checkout.","floatingLabel":"Email *","placeholder":"Enter your email address","signIn":"Sign in"},"ShippingMethods":{"title":"Shipping options","emptyState":"This order can\'t be shipped to the address provided. Please review the address details you entered and make sure they\'re correct."},"ShippingAddress":{"title":"Delivery"},"BillingAddress":{"title":"Billing Address"},"AddressForm":{"Validity":{"badInput":"Provide a valid {field}.","patternMismatch":"Ensure you have entered a correct {field} format.","rangeOverflow":"Choose a valid {field} within the allowed range.","rangeUnderflow":"Choose a valid {field} within the allowed range.","tooLong":"This entry is too long. Keep it under {field} characters.","tooShort":"Use at least {field} characters.","typeMismatch":"Enter a valid {field}.","valueMissing":"Enter a {field}, this field is required."}},"BillToShippingAddress":{"title":"Bill to shipping address"},"PaymentMethods":{"title":"Payment","emptyState":"No payment methods available"},"OrderSummary":{"title":"Order summary","total":"Total","totalExclTax":"Total excluding taxes","subtotal":"Subtotal","tax":"Tax","taxTotal":"Tax total","taxBreakdown":"Taxes","includingTaxes":"Including taxes","shipping":"Shipping","estimatedShipping":"Estimated shipping","freeShipping":"Free shipping"},"OutOfStock":{"title":"Out of stock","message":"Some items are no longer available. Please review your cart before placing the order.","button":"Review cart"},"PlaceOrder":{"button":"Place Order"},"ServerError":{"title":"We were unable to process your order","contactSupport":"If you continue to have issues, please contact support.","unexpected":"An unexpected error occurred while processing your order. Please try again later.","button":"Try again"},"EmptyCard":{"title":"Your cart is empty","button":"Start shopping"}}}')}};import a from"./runtime.js";import*as u from"./4.js";a.C(u);import*as l from"./350.js";a.C(l);import*as s from"./292.js";a.C(s);import*as c from"./393.js";a.C(c);import*as f from"./render.js";a.C(f);var p=(8481,a(a.s=8481)).s;export{p as render};
1
+ /*! Copyright 2024 Adobe
2
+ All Rights Reserved. */
3
+ (function(n,o){try{if(typeof document<"u"){const t=document.createElement("style"),r=o.styleId;for(const e in o.attributes)t.setAttribute(e,o.attributes[e]);t.setAttribute("data-dropin",r),t.appendChild(document.createTextNode(n));const a=document.querySelector('style[data-dropin="sdk"]');if(a)a.after(t);else{const e=document.querySelector('link[rel="stylesheet"], style');e?e.before(t):document.head.append(t)}}}catch(t){console.error("dropin-styles (injectCodeFunction)",t)}})(`.checkout__banner{margin-bottom:var(--spacing-xlarge)}
4
+ .checkout-estimate-shipping{display:grid;grid-template-columns:1fr 1fr;gap:var(--spacing-xxsmall);align-items:center;color:var(--color-neutral-800)}.checkout-estimate-shipping__label,.checkout-estimate-shipping__price{font:var(--type-body-1-default-font);letter-spacing:var(--type-body-1-default-letter-spacing)}.checkout-estimate-shipping__label--muted{font:var(--type-body-2-default-font);letter-spacing:var(--type-body-2-default-letter-spacing);color:var(--color-neutral-700)}.checkout-estimate-shipping__price--muted{font:var(--type-body-2-default-font);letter-spacing:var(--type-body-2-default-letter-spacing)}.checkout-estimate-shipping__price{text-align:right}.checkout-estimate-shipping__label--bold,.checkout-estimate-shipping__price--bold{font:var(--type-body-1-emphasized-font);letter-spacing:var(--type-body-1-emphasized-letter-spacing)}.checkout-estimate-shipping__caption{font:var(--type-details-caption-2-font);letter-spacing:var(--type-details-caption-2-letter-spacing);color:var(--color-neutral-700)}.cart-order-summary__shipping .dropin-skeleton{grid-template-columns:1fr}.checkout-login-form__heading{display:grid;grid-template-columns:1fr max-content;grid-auto-rows:max-content}.checkout-login-form__content{grid-auto-rows:max-content}.checkout-login-form__content .dropin-field__hint a{font-weight:400}.checkout-login-form__customer-details{display:grid;grid-auto-flow:row;gap:var(--spacing-xxsmall)}.checkout-login-form__customer-name{font:var(--type-body-1-strong-font);letter-spacing:var(--type-body-1-default-letter-spacing)}.checkout-login-form__customer-email{font:var(--type-body-2-default-font);letter-spacing:var(--type-body-2-default-letter-spacing);color:var(--color-neutral-700)}.checkout-login-form__title{grid-column-start:1;color:var(--color-neutral-800);font:var(--type-headline-2-default-font);letter-spacing:var(--type-headline-2-default-letter-spacing);margin:0 0 var(--spacing-medium) 0}.checkout-login-form__sign-in,.checkout-login-form__sign-out{grid-column-start:2;color:var(--color-neutral-800);font:var(--type-body-2-default-font);letter-spacing:var(--type-body-2-default-letter-spacing);justify-self:flex-end;margin-top:var(--spacing-xxsmall)}a.checkout-login-form__link{font:var(--type-body-2-strong-font);letter-spacing:var(--type-body-2-strong-letter-spacing);margin-left:var(--spacing-xxsmall)}@media only screen and (min-width: 320px) and (max-width: 768px){.checkout-login-form__heading{grid-template-columns:repeat(1,1fr [col-start]);grid-template-rows:1fr}.checkout-login-form__sign-in,.checkout-login-form__sign-out{grid-column-start:1;align-self:flex-start;justify-self:flex-start;margin-top:0;margin-bottom:var(--spacing-medium)}}.checkout-out-of-stock.dropin-card{border-color:var(--color-warning-500)}.checkout-out-of-stock .dropin-card__content{gap:var(--spacing-small);padding:var(--spacing-small)}.checkout-out-of-stock__title{color:var(--color-neutral-900);font:var(--type-body-2-strong-font);margin:0;display:flex;gap:var(--spacing-xxsmall);align-items:center;justify-content:left;text-align:center}.checkout-out-of-stock__message{color:var(--color-neutral-800);font:var(--type-body-2-default-font);margin:0}.checkout-out-of-stock__items{display:grid;grid-template-columns:repeat(5,100px);grid-gap:var(--spacing-small);list-style:none;padding:0;margin:0}.checkout-out-of-stock__item img{width:100%;height:auto}.checkout-out-of-stock__actions{display:flex;gap:var(--spacing-small);justify-content:flex-end}a.checkout-out-of-stock__action{font:var(--type-details-caption-1-font)}.checkout-out-of-stock__action{background:none;border:none;padding:0;cursor:pointer}.checkout-out-of-stock__action:hover{--textColor: var(--color-brand-700);text-decoration:solid underline var(--textColor);text-underline-offset:6px}.checkout-server-error{position:relative;text-align:center}.checkout-server-error__icon .error-icon{color:var(--color-alert-500)}.checkout-server-error a{font:var(--type-body-2-strong-font);letter-spacing:var(--type-body-2-strong-letter-spacing)}
5
+ .checkout-shipping-methods__title{color:var(--color-neutral-800);font:var(--type-body-1-default-font);letter-spacing:var(--type-body-1-default-letter-spacing);margin:0 0 var(--spacing-medium) 0}.checkout-shipping-methods__content{position:relative;display:block}.checkout-shipping-methods__method{margin-bottom:var(--spacing-medium);width:fit-content;cursor:pointer;font:var(--type-body-2-default-font);letter-spacing:var(--type-body-2-default-letter-spacing)}.checkout-shipping-methods__method:last-child{margin-bottom:0}.dropin-radio-button__label .dropin-price{color:var(--color-neutral-800);font-weight:400}.checkout-shipping-methods__options--loading{opacity:.4;pointer-events:none}.checkout-shipping-methods__spinner{margin:0 auto;position:absolute;z-index:999;left:0;right:0;top:calc(50% - (var(--size) / 2));bottom:0}
6
+ .checkout-place-order{display:grid;padding-bottom:var(--spacing-big)}.checkout-place-order__button{align-self:flex-end;justify-self:flex-end}@media only screen and (min-width:320px) and (max-width: 768px){.checkout-place-order{background-color:var(--color-neutral-200);padding:var(--spacing-medium) var(--spacing-medium) var(--spacing-big) var(--spacing-medium)}.checkout-place-order__button{align-self:center;justify-self:stretch}}
7
+ .checkout-payment-methods__title{color:var(--color-neutral-800);font:var(--type-headline-2-default-font);letter-spacing:var(--type-headline-2-default-letter-spacing);margin:0 0 var(--spacing-medium) 0}.checkout-payment-methods__wrapper{position:relative;display:grid}.checkout-payment-methods__methods{display:grid;grid-template-columns:1fr 1fr;gap:var(--spacing-medium)}.checkout-payment-methods__content>div[data-slot=PaymentMethodSlot]:not(:empty){margin-top:var(--spacing-medium)}.checkout-payment-methods--full-width{grid-template-columns:1fr}.checkout-payment-methods--loading{opacity:.4;pointer-events:none}.checkout-payment-methods__spinner{margin:0 auto;position:absolute;z-index:999;left:0;right:0;top:calc(50% - (var(--size) / 2));bottom:0}.checkout__content [data-slot=PaymentMethods]:empty{display:none}@media only screen and (min-width: 320px) and (max-width: 768px){.checkout-payment-methods__methods{grid-template-columns:1fr}}
8
+ .checkout-bill-to-shipping-address label{font:var(--type-body-2-default-font);letter-spacing:var(--type-body-2-default-letter-spacing);gap:0}`,{styleId:"checkout"});
9
+ import{jsx as f}from"@dropins/tools/preact-jsx-runtime.js";import{Render as d}from"@dropins/tools/lib.js";import"./chunks/fetch-graphql.js";import"./chunks/store-config.js";import"./chunks/ServerErrorSignal.js";import{events as p}from"@dropins/tools/event-bus.js";import{c as g}from"./chunks/synchronizeCheckout.js";import{UIProvider as y}from"@dropins/tools/components.js";import{useState as b,useEffect as h}from"@dropins/tools/preact-hooks.js";import"@dropins/tools/fetch-graphql.js";import"@dropins/tools/signals.js";import"./fragments.js";function O(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var S=function(r){return E(r)&&!w(r)};function E(e){return!!e&&typeof e=="object"}function w(e){var r=Object.prototype.toString.call(e);return r==="[object RegExp]"||r==="[object Date]"||M(e)}var v=typeof Symbol=="function"&&Symbol.for,j=v?Symbol.for("react.element"):60103;function M(e){return e.$$typeof===j}function A(e){return Array.isArray(e)?[]:{}}function i(e,r){return r.clone!==!1&&r.isMergeableObject(e)?a(A(e),e,r):e}function P(e,r,t){return e.concat(r).map(function(o){return i(o,t)})}function I(e,r){if(!r.customMerge)return a;var t=r.customMerge(e);return typeof t=="function"?t:a}function T(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(r){return Object.propertyIsEnumerable.call(e,r)}):[]}function l(e){return Object.keys(e).concat(T(e))}function m(e,r){try{return r in e}catch{return!1}}function C(e,r){return m(e,r)&&!(Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))}function x(e,r,t){var o={};return t.isMergeableObject(e)&&l(e).forEach(function(n){o[n]=i(e[n],t)}),l(r).forEach(function(n){C(e,n)||(m(e,n)&&t.isMergeableObject(r[n])?o[n]=I(n,t)(e[n],r[n],t):o[n]=i(r[n],t))}),o}function a(e,r,t){t=t||{},t.arrayMerge=t.arrayMerge||P,t.isMergeableObject=t.isMergeableObject||S,t.cloneUnlessOtherwiseSpecified=i;var o=Array.isArray(r),n=Array.isArray(e),c=o===n;return c?o?t.arrayMerge(e,r,t):x(e,r,t):i(r,t)}a.all=function(r,t){if(!Array.isArray(r))throw new Error("first argument should be an array");return r.reduce(function(o,n){return a(o,n,t)},{})};var D=a,B=D;const L=O(B),_={title:"Checkout",LoginForm:{title:"Contact details",account:"Already have an account?",ariaLabel:"Email",invalidEmailError:"Please enter a valid email address.",missingEmailError:"Enter an email address.",emailExists:{alreadyHaveAccount:"It looks like you already have an account.",signInButton:"Sign in",forFasterCheckout:"for a faster checkout."},floatingLabel:"Email *",placeholder:"Enter your email address",signIn:"Sign In",switch:"Do you want to switch account?",signOut:"Sign Out"},ShippingMethods:{title:"Shipping options",emptyState:"This order can't be shipped to the address provided. Please review the address details you entered and make sure they're correct."},BillToShippingAddress:{title:"Bill to shipping address"},PaymentMethods:{title:"Payment",emptyState:"No payment methods available"},OutOfStock:{title:"Your cart contains items that are out of stock",message:"The following items are out of stock:",actions:{reviewCart:"Review cart",removeOutOfStock:"Remove out of stock items"},lowInventory:{one:"Last item!",many:"Only {{count}} left!"},alert:"Out of stock!"},PlaceOrder:{button:"Place Order"},ServerError:{title:"We were unable to process your order",contactSupport:"If you continue to have issues, please contact support.",unexpected:"An unexpected error occurred while processing your order. Please try again later.",button:"Try again"},EmptyCart:{title:"Your cart is empty",button:"Start shopping"},ErrorBanner:{genericMessage:"Server error detected. Please check your connection and try again."},MergedCartBanner:{items:{one:"1 item from a previous session was added to your cart. Please review your new subtotal.",many:"{{count}} items from a previous session were added to your cart. Please review your new subtotal."}},EstimateShipping:{estimated:"Estimated Shipping",freeShipping:"Free",label:"Shipping",taxToBeDetermined:"TBD",withTaxes:"Including taxes",withoutTaxes:"Excluding taxes"}},R={Checkout:_},U={default:R},k=({children:e})=>{var c;const[r,t]=b(),o=(c=g.getConfig())==null?void 0:c.langDefinitions;h(()=>{const s=p.on("locale",u=>{u!==r&&t(u)},{eager:!0});return()=>{s==null||s.off()}},[r]);const n=L(U,o??{});return f(y,{lang:r,langDefinitions:n,children:e})},Q=new d(f(k,{}));export{k as Provider,Q as render};
@@ -0,0 +1,7 @@
1
+ import { Cart } from '../data/models';
2
+
3
+ export declare const cartSignal: import('@preact/signals-core').Signal<{
4
+ pending: boolean;
5
+ data?: Cart | null | undefined;
6
+ }>;
7
+ //# sourceMappingURL=CartSignal.d.ts.map
@@ -0,0 +1,7 @@
1
+ import { Customer } from '../data/models';
2
+
3
+ export declare const customerSignal: import('@preact/signals-core').Signal<{
4
+ pending: boolean;
5
+ data?: Customer | null | undefined;
6
+ }>;
7
+ //# sourceMappingURL=CustomerSignal.d.ts.map
@@ -0,0 +1,7 @@
1
+ import { ShippingMethod } from '../data/models';
2
+
3
+ export declare const estimateShippingMethodsSignal: import('@preact/signals-core').Signal<{
4
+ pending: boolean;
5
+ data?: ShippingMethod[] | undefined;
6
+ }>;
7
+ //# sourceMappingURL=EstimateShippingMethodsSignal.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 isBillToShippingSignal: import('@preact/signals-core').Signal<boolean>;
18
+ //# sourceMappingURL=IsBillToShippingSignal.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 selectedPaymentMethodSignal: import('@preact/signals-core').Signal<string | undefined>;
18
+ //# sourceMappingURL=SelectedPaymentMethodSignal.d.ts.map
@@ -0,0 +1,4 @@
1
+ import { ShippingMethod } from '../data/models';
2
+
3
+ export declare const selectedShippingMethodSignal: import('@preact/signals-core').Signal<ShippingMethod | undefined>;
4
+ //# sourceMappingURL=SelectedShippingMethodSignal.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 serverErrorSignal: import('@preact/signals-core').Signal<string | undefined>;
18
+ //# sourceMappingURL=ServerErrorSignal.d.ts.map
@@ -0,0 +1,7 @@
1
+ import { StoreConfig } from '../data/models';
2
+
3
+ export declare const storeConfigSignal: import('@preact/signals-core').Signal<{
4
+ data?: StoreConfig | undefined;
5
+ pending: boolean;
6
+ }>;
7
+ //# sourceMappingURL=StoreConfigSignal.d.ts.map