@dropins/storefront-checkout 2.1.0-beta2 → 2.2.0-alpha1

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 (187) hide show
  1. package/api/getCompanyCredit/getCompanyCredit.d.ts +4 -0
  2. package/api/getCompanyCredit/graphql/getCompanyCredit.graphql.d.ts +18 -0
  3. package/api/{setNegotiableQuoteBillingAddress → getCompanyCredit/graphql}/index.d.ts +1 -1
  4. package/{types/ComponentTypes.d.ts → api/getCompanyCredit/index.d.ts} +2 -2
  5. package/api/getStoreConfig/getStoreConfig.d.ts +1 -0
  6. package/api/graphql/CartAddressFragment.graphql.d.ts +1 -1
  7. package/api/graphql/NegotiableQuoteAddressFragment.graphql.d.ts +1 -1
  8. package/api/graphql/PaymentMethodFragment.graphql.d.ts +1 -1
  9. package/api/index.d.ts +1 -5
  10. package/api/initialize/initialize.d.ts +21 -3
  11. package/api/initialize/listeners.d.ts +3 -17
  12. package/api/initializeCheckout/initializeCheckout.d.ts +2 -2
  13. package/api/{setShippingAddress/graphql/setShippingAddressAndUseAsBilling.graphql.d.ts → setBillingAddress/graphql/index.d.ts} +3 -2
  14. package/api/{setPaymentMethod/graphql/setPaymentMethod.graphql.d.ts → setBillingAddress/graphql/setBillingAddressOnCartMutation.graphql.d.ts} +2 -2
  15. package/api/setBillingAddress/graphql/setBillingAddressOnQuoteMutation.graphql.d.ts +18 -0
  16. package/api/setBillingAddress/setBillingAddress.d.ts +2 -2
  17. package/api/setPaymentMethod/graphql/index.d.ts +19 -0
  18. package/api/{setBillingAddress/graphql/setBillingAddress.graphql.d.ts → setPaymentMethod/graphql/setPaymentMethodOnCart.graphql.d.ts} +2 -2
  19. package/api/{setNegotiableQuotePaymentMethod/graphql/index.d.ts → setPaymentMethod/graphql/setPaymentMethodOnQuote.graphql.d.ts} +2 -2
  20. package/api/setPaymentMethod/setPaymentMethod.d.ts +2 -2
  21. package/api/setShippingAddress/graphql/index.d.ts +21 -0
  22. package/api/setShippingAddress/graphql/setShippingAddressOnCartAndUseAsBillingMutation.graphql.d.ts +18 -0
  23. package/api/setShippingAddress/graphql/{setShippingAddress.graphql.d.ts → setShippingAddressOnCartMutation.graphql.d.ts} +2 -2
  24. package/api/{setNegotiableQuoteBillingAddress/graphql/index.d.ts → setShippingAddress/graphql/setShippingAddressOnQuote.graphql.d.ts} +2 -2
  25. package/api/setShippingAddress/graphql/setShippingAddressOnQuoteAndUseAsBillingMutation.graphql.d.ts +18 -0
  26. package/api/setShippingAddress/setShippingAddress.d.ts +1 -1
  27. package/api/setShippingMethods/graphql/index.d.ts +19 -0
  28. package/api/setShippingMethods/graphql/setShippingMethodsOnCart.graphql.d.ts +1 -1
  29. package/api/{setNegotiableQuotePaymentMethod/index.d.ts → setShippingMethods/graphql/setShippingMethodsOnQuote.graphql.d.ts} +2 -2
  30. package/api/setShippingMethods/index.d.ts +1 -0
  31. package/api/setShippingMethods/setShippingMethods.d.ts +3 -17
  32. package/api/synchronizeCheckout/synchronizeCheckout.d.ts +2 -2
  33. package/api.js +2 -137
  34. package/api.js.map +1 -1
  35. package/chunks/ConditionalWrapper.js +1 -1
  36. package/chunks/ConditionalWrapper.js.map +1 -1
  37. package/chunks/PaymentOnAccount2.js +4 -0
  38. package/chunks/PaymentOnAccount2.js.map +1 -0
  39. package/chunks/PurchaseOrder.js +4 -0
  40. package/chunks/PurchaseOrder.js.map +1 -0
  41. package/chunks/classifiers.js +4 -0
  42. package/chunks/classifiers.js.map +1 -0
  43. package/chunks/dom.js.map +1 -1
  44. package/chunks/events.js +4 -0
  45. package/chunks/events.js.map +1 -0
  46. package/chunks/events2.js +4 -0
  47. package/chunks/events2.js.map +1 -0
  48. package/chunks/fetch-graphql.js +2 -2
  49. package/chunks/fetch-graphql.js.map +1 -1
  50. package/chunks/getCompanyCredit.js +15 -0
  51. package/chunks/getCompanyCredit.js.map +1 -0
  52. package/chunks/guards.js +4 -0
  53. package/chunks/guards.js.map +1 -0
  54. package/chunks/render.js +10 -0
  55. package/chunks/render.js.map +1 -0
  56. package/chunks/setBillingAddress.js +25 -5
  57. package/chunks/setBillingAddress.js.map +1 -1
  58. package/chunks/setGuestEmailOnCart.js +4 -4
  59. package/chunks/setGuestEmailOnCart.js.map +1 -1
  60. package/chunks/setPaymentMethod.js +21 -6
  61. package/chunks/setPaymentMethod.js.map +1 -1
  62. package/chunks/setShippingAddress.js +109 -0
  63. package/chunks/setShippingAddress.js.map +1 -0
  64. package/chunks/setShippingMethods.js +18 -3
  65. package/chunks/setShippingMethods.js.map +1 -1
  66. package/chunks/synchronizeCheckout.js +13 -5
  67. package/chunks/synchronizeCheckout.js.map +1 -1
  68. package/chunks/transform-shipping-estimate.js +4 -0
  69. package/chunks/transform-shipping-estimate.js.map +1 -0
  70. package/chunks/transform-shipping-methods.js +4 -0
  71. package/chunks/transform-shipping-methods.js.map +1 -0
  72. package/chunks/values.js +1 -1
  73. package/chunks/values.js.map +1 -1
  74. package/components/AddressValidation/AddressValidation.d.ts +14 -0
  75. package/components/AddressValidation/index.d.ts +19 -0
  76. package/components/PaymentMethods/PaymentMethods.d.ts +1 -1
  77. package/components/PaymentOnAccount/PaymentOnAccount.d.ts +17 -0
  78. package/components/PaymentOnAccount/PaymentOnAccountSkeleton.d.ts +4 -0
  79. package/components/PaymentOnAccount/index.d.ts +20 -0
  80. package/components/PurchaseOrder/PurchaseOrder.d.ts +10 -0
  81. package/components/PurchaseOrder/index.d.ts +19 -0
  82. package/components/ShippingMethods/ShippingMethods.d.ts +1 -1
  83. package/components/index.d.ts +4 -1
  84. package/containers/AddressValidation/AddressValidation.d.ts +12 -0
  85. package/containers/AddressValidation/index.d.ts +19 -0
  86. package/containers/AddressValidation.d.ts +3 -0
  87. package/containers/AddressValidation.js +4 -0
  88. package/containers/AddressValidation.js.map +1 -0
  89. package/containers/BillToShippingAddress.js +1 -1
  90. package/containers/BillToShippingAddress.js.map +1 -1
  91. package/containers/EstimateShipping.js +1 -1
  92. package/containers/EstimateShipping.js.map +1 -1
  93. package/containers/LoginForm/LoginForm.d.ts +1 -1
  94. package/containers/LoginForm.js +1 -1
  95. package/containers/LoginForm.js.map +1 -1
  96. package/containers/MergedCartBanner.js +1 -1
  97. package/containers/MergedCartBanner.js.map +1 -1
  98. package/containers/OutOfStock.js +1 -1
  99. package/containers/OutOfStock.js.map +1 -1
  100. package/containers/PaymentMethods/PaymentMethods.d.ts +9 -8
  101. package/containers/PaymentMethods/handlers.d.ts +11 -0
  102. package/containers/PaymentMethods.js +1 -1
  103. package/containers/PaymentMethods.js.map +1 -1
  104. package/containers/PaymentOnAccount/PaymentOnAccount.d.ts +10 -0
  105. package/containers/PaymentOnAccount/index.d.ts +11 -0
  106. package/containers/PaymentOnAccount.d.ts +3 -0
  107. package/containers/PaymentOnAccount.js +4 -0
  108. package/containers/PaymentOnAccount.js.map +1 -0
  109. package/containers/PlaceOrder/PlaceOrder.d.ts +2 -1
  110. package/containers/PlaceOrder.js +1 -1
  111. package/containers/PlaceOrder.js.map +1 -1
  112. package/containers/PurchaseOrder/PurchaseOrder.d.ts +10 -0
  113. package/containers/PurchaseOrder/index.d.ts +19 -0
  114. package/containers/PurchaseOrder.d.ts +3 -0
  115. package/containers/PurchaseOrder.js +4 -0
  116. package/containers/PurchaseOrder.js.map +1 -0
  117. package/containers/ServerError/ServerError.d.ts +2 -1
  118. package/containers/ServerError.js +1 -1
  119. package/containers/ServerError.js.map +1 -1
  120. package/containers/ShippingMethods/ShippingMethods.d.ts +2 -2
  121. package/containers/ShippingMethods.js +1 -1
  122. package/containers/ShippingMethods.js.map +1 -1
  123. package/containers/TermsAndConditions.js +1 -1
  124. package/containers/TermsAndConditions.js.map +1 -1
  125. package/containers/index.d.ts +3 -0
  126. package/data/models/address.d.ts +9 -1
  127. package/data/models/api.d.ts +23 -10
  128. package/data/models/cart.d.ts +1 -8
  129. package/data/models/company-credit.d.ts +7 -0
  130. package/data/models/index.d.ts +1 -0
  131. package/data/models/payment-method.d.ts +2 -0
  132. package/data/models/quote.d.ts +1 -0
  133. package/data/models/values.d.ts +1 -1
  134. package/data/transforms/index.d.ts +3 -0
  135. package/data/transforms/transform-api.d.ts +12 -0
  136. package/data/transforms/transform-cart-address.d.ts +34 -35
  137. package/data/transforms/transform-company-credit.d.ts +7 -0
  138. package/data/transforms/transform-custom-attributes.d.ts +5 -0
  139. package/data/transforms/transform-quote-address.d.ts +29 -14
  140. package/fragments.js +84 -57
  141. package/fragments.js.map +1 -1
  142. package/i18n/en_US.json.d.ts +26 -0
  143. package/lib/enqueueRequest.d.ts +2 -3
  144. package/lib/errors/classifiers.d.ts +3 -1
  145. package/lib/errors/customErrors.d.ts +3 -0
  146. package/lib/events.d.ts +3 -2
  147. package/{api/setNegotiableQuoteShippingAddress/index.d.ts → lib/guards.d.ts} +2 -2
  148. package/lib/index.d.ts +1 -1
  149. package/lib/state.d.ts +5 -4
  150. package/lib/utils/api.d.ts +16 -0
  151. package/lib/utils/events.d.ts +10 -0
  152. package/lib/utils/forms.d.ts +5 -0
  153. package/lib/utils/fragments.d.ts +19 -0
  154. package/lib/utils/index.d.ts +24 -0
  155. package/lib/utils/meta.d.ts +19 -0
  156. package/lib/utils/transformers.d.ts +6 -0
  157. package/lib/utils.d.ts +1 -0
  158. package/lib/utils.js +4 -0
  159. package/lib/utils.js.map +1 -0
  160. package/package.json +1 -1
  161. package/render.js +4 -4
  162. package/render.js.map +1 -1
  163. package/tests/fixtures/fragments/cart.d.ts +46 -40
  164. package/tests/fixtures/fragments/shipping-address.d.ts +2 -1
  165. package/tests/fixtures/helpers/session-storage.d.ts +68 -0
  166. package/tests/fixtures/index.d.ts +1 -0
  167. package/tests/fixtures/models/index.d.ts +1 -1
  168. package/tests/fixtures/models/quote.d.ts +9 -0
  169. package/tests/fixtures/queries/get-company-credit.d.ts +14 -0
  170. package/tests/fixtures/queries/index.d.ts +1 -0
  171. package/types/api.d.ts +6 -0
  172. package/types/{TitleProps.d.ts → components.d.ts} +2 -1
  173. package/types/guards.d.ts +5 -0
  174. package/types/index.d.ts +22 -0
  175. package/types/storefront.d.ts +165 -0
  176. package/{api/setNegotiableQuoteBillingAddress/graphql/setNegotiableQuoteBillingAddress.graphql.d.ts → types/utils.d.ts} +3 -2
  177. package/api/setNegotiableQuoteBillingAddress/setNegotiableQuoteBillingAddress.d.ts +0 -6
  178. package/api/setNegotiableQuotePaymentMethod/graphql/setNegotiableQuotePaymentMethod.graphql.d.ts +0 -18
  179. package/api/setNegotiableQuotePaymentMethod/setNegotiableQuotePaymentMethod.d.ts +0 -6
  180. package/api/setNegotiableQuoteShippingAddress/graphql/index.d.ts +0 -18
  181. package/api/setNegotiableQuoteShippingAddress/graphql/setNegotiableQuoteShippingAddress.graphql.d.ts +0 -18
  182. package/api/setNegotiableQuoteShippingAddress/setNegotiableQuoteShippingAddress.d.ts +0 -6
  183. package/api/setNegotiableQuoteShippingMethods/graphql/index.d.ts +0 -18
  184. package/api/setNegotiableQuoteShippingMethods/graphql/setNegotiableQuoteShippingMethods.graphql.d.ts +0 -18
  185. package/api/setNegotiableQuoteShippingMethods/index.d.ts +0 -18
  186. package/api/setNegotiableQuoteShippingMethods/setNegotiableQuoteShippingMethods.d.ts +0 -18
  187. /package/lib/{dom.d.ts → utils/dom.d.ts} +0 -0
package/fragments.js CHANGED
@@ -20,7 +20,7 @@ const e=`
20
20
  currency
21
21
  }
22
22
  }
23
- `,_=`
23
+ `,t=`
24
24
  fragment SELECTED_SHIPPING_METHOD_FRAGMENT on SelectedShippingMethod {
25
25
  amount {
26
26
  currency
@@ -41,77 +41,79 @@ const e=`
41
41
  }
42
42
  `,a=`
43
43
  fragment BILLING_CART_ADDRESS_FRAGMENT on BillingCartAddress {
44
- id
45
44
  city
46
- country {
47
- code
48
- label
49
- }
50
- firstname
51
- lastname
52
45
  company
53
- postcode
54
- vat_id
55
- region {
56
- region_id
46
+ country {
57
47
  code
58
48
  label
59
49
  }
60
- street
61
- telephone
62
50
  custom_attributes {
63
51
  ... on AttributeValue {
64
52
  code
65
53
  value
66
54
  }
67
55
  }
68
- prefix
69
- suffix
70
- middlename
71
56
  fax
72
- }
73
- `,A=`
74
- fragment SHIPPING_CART_ADDRESS_FRAGMENT on ShippingCartAddress {
75
- id
76
57
  firstname
58
+ id
77
59
  lastname
78
- company
79
- street
80
- city
60
+ middlename
81
61
  postcode
82
- vat_id
62
+ prefix
83
63
  region {
84
64
  region_id
85
65
  code
86
66
  label
87
67
  }
68
+ street
69
+ suffix
70
+ telephone
71
+ uid
72
+ vat_id
73
+ }
74
+ `,i=`
75
+ fragment SHIPPING_CART_ADDRESS_FRAGMENT on ShippingCartAddress {
76
+ available_shipping_methods {
77
+ ...AVAILABLE_SHIPPING_METHOD_FRAGMENT
78
+ }
79
+ city
80
+ company
88
81
  country {
89
82
  code
90
83
  label
91
84
  }
92
- telephone
93
85
  custom_attributes {
94
86
  ... on AttributeValue {
95
87
  code
96
88
  value
97
89
  }
98
90
  }
99
- available_shipping_methods {
100
- ...AVAILABLE_SHIPPING_METHOD_FRAGMENT
91
+ fax
92
+ firstname
93
+ id
94
+ lastname
95
+ middlename
96
+ postcode
97
+ prefix
98
+ region {
99
+ region_id
100
+ code
101
+ label
101
102
  }
103
+ same_as_billing
102
104
  selected_shipping_method {
103
105
  ...SELECTED_SHIPPING_METHOD_FRAGMENT
104
106
  }
105
- same_as_billing
106
- prefix
107
+ street
107
108
  suffix
108
- middlename
109
- fax
109
+ telephone
110
+ uid
111
+ vat_id
110
112
  }
111
113
 
112
114
  ${e}
113
- ${_}
114
- `,t=`
115
+ ${t}
116
+ `,_=`
115
117
  fragment AVAILABLE_PAYMENT_METHOD_FRAGMENT on AvailablePaymentMethod {
116
118
  code
117
119
  title
@@ -120,8 +122,9 @@ const e=`
120
122
  fragment SELECTED_PAYMENT_METHOD_FRAGMENT on SelectedPaymentMethod {
121
123
  code
122
124
  title
125
+ purchase_order_number
123
126
  }
124
- `,o=`
127
+ `,A=`
125
128
  fragment CHECKOUT_DATA_FRAGMENT on Cart {
126
129
  id
127
130
  is_virtual
@@ -142,63 +145,87 @@ const e=`
142
145
  }
143
146
 
144
147
  ${a}
145
- ${A}
146
- ${t}
148
+ ${i}
149
+ ${_}
147
150
  ${E}
148
- `,T=`
151
+ `,r=`
149
152
  fragment CUSTOMER_FRAGMENT on Customer {
150
153
  firstname
151
154
  lastname
152
155
  email
153
156
  }
154
- `,i=`
157
+ `,n=`
155
158
  fragment NEGOTIABLE_QUOTE_BILLING_ADDRESS_FRAGMENT on NegotiableQuoteBillingAddress {
156
159
  city
160
+ company
157
161
  country {
158
162
  code
159
163
  label
160
164
  }
165
+ custom_attributes {
166
+ ... on AttributeValue {
167
+ code
168
+ value
169
+ }
170
+ }
171
+ fax
161
172
  firstname
162
173
  lastname
163
- company
174
+ middlename
164
175
  postcode
176
+ prefix
165
177
  region {
166
178
  region_id
167
179
  code
168
180
  label
169
181
  }
170
182
  street
183
+ suffix
171
184
  telephone
185
+ uid
186
+ vat_id
172
187
  }
173
- `,n=`
188
+ `,o=`
174
189
  fragment NEGOTIABLE_QUOTE_SHIPPING_ADDRESS_FRAGMENT on NegotiableQuoteShippingAddress {
190
+ available_shipping_methods {
191
+ ...AVAILABLE_SHIPPING_METHOD_FRAGMENT
192
+ }
193
+ city
194
+ company
195
+ country {
196
+ code
197
+ label
198
+ }
199
+ custom_attributes {
200
+ ... on AttributeValue {
201
+ code
202
+ value
203
+ }
204
+ }
205
+ fax
175
206
  firstname
176
207
  lastname
177
- company
178
- street
179
- city
208
+ middlename
180
209
  postcode
210
+ prefix
181
211
  region {
182
212
  region_id
183
213
  code
184
214
  label
185
215
  }
186
- country {
187
- code
188
- label
189
- }
190
- telephone
191
- available_shipping_methods {
192
- ...AVAILABLE_SHIPPING_METHOD_FRAGMENT
193
- }
194
216
  selected_shipping_method {
195
217
  ...SELECTED_SHIPPING_METHOD_FRAGMENT
196
218
  }
219
+ street
220
+ suffix
221
+ telephone
222
+ uid
223
+ vat_id
197
224
  }
198
225
 
199
226
  ${e}
200
- ${_}
201
- `,l=`
227
+ ${t}
228
+ `,T=`
202
229
  fragment NEGOTIABLE_QUOTE_FRAGMENT on NegotiableQuote {
203
230
  available_payment_methods {
204
231
  ...AVAILABLE_PAYMENT_METHOD_FRAGMENT
@@ -220,9 +247,9 @@ const e=`
220
247
  uid
221
248
  }
222
249
 
223
- ${i}
224
250
  ${n}
225
- ${t}
251
+ ${o}
252
+ ${_}
226
253
  ${E}
227
- `;export{t as AVAILABLE_PAYMENT_METHOD_FRAGMENT,e as AVAILABLE_SHIPPING_METHOD_FRAGMENT,a as BILLING_CART_ADDRESS_FRAGMENT,o as CHECKOUT_DATA_FRAGMENT,T as CUSTOMER_FRAGMENT,i as NEGOTIABLE_QUOTE_BILLING_ADDRESS_FRAGMENT,l as NEGOTIABLE_QUOTE_FRAGMENT,n as NEGOTIABLE_QUOTE_SHIPPING_ADDRESS_FRAGMENT,E as SELECTED_PAYMENT_METHOD_FRAGMENT,_ as SELECTED_SHIPPING_METHOD_FRAGMENT,A as SHIPPING_CART_ADDRESS_FRAGMENT};
254
+ `;export{_ as AVAILABLE_PAYMENT_METHOD_FRAGMENT,e as AVAILABLE_SHIPPING_METHOD_FRAGMENT,a as BILLING_CART_ADDRESS_FRAGMENT,A as CHECKOUT_DATA_FRAGMENT,r as CUSTOMER_FRAGMENT,n as NEGOTIABLE_QUOTE_BILLING_ADDRESS_FRAGMENT,T as NEGOTIABLE_QUOTE_FRAGMENT,o as NEGOTIABLE_QUOTE_SHIPPING_ADDRESS_FRAGMENT,E as SELECTED_PAYMENT_METHOD_FRAGMENT,t as SELECTED_SHIPPING_METHOD_FRAGMENT,i as SHIPPING_CART_ADDRESS_FRAGMENT};
228
255
  //# sourceMappingURL=fragments.js.map
package/fragments.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"fragments.js","sources":["/@dropins/storefront-checkout/src/api/graphql/ShippingMethodFragment.graphql.ts","/@dropins/storefront-checkout/src/api/graphql/CartAddressFragment.graphql.ts","/@dropins/storefront-checkout/src/api/graphql/PaymentMethodFragment.graphql.ts","/@dropins/storefront-checkout/src/api/graphql/CheckoutDataFragment.graphql.ts","/@dropins/storefront-checkout/src/api/graphql/CustomerFragment.graphql.ts","/@dropins/storefront-checkout/src/api/graphql/NegotiableQuoteAddressFragment.graphql.ts","/@dropins/storefront-checkout/src/api/graphql/NegotiableQuoteFragment.graphql.ts"],"sourcesContent":["/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2025 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nexport const AVAILABLE_SHIPPING_METHOD_FRAGMENT = /* GraphQL */ `\n fragment AVAILABLE_SHIPPING_METHOD_FRAGMENT on AvailableShippingMethod {\n amount {\n currency\n value\n }\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`;\n\nexport const SELECTED_SHIPPING_METHOD_FRAGMENT = /* GraphQL */ `\n fragment SELECTED_SHIPPING_METHOD_FRAGMENT on SelectedShippingMethod {\n amount {\n currency\n value\n }\n carrier_code\n carrier_title\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`;\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2024 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nimport {\n AVAILABLE_SHIPPING_METHOD_FRAGMENT,\n SELECTED_SHIPPING_METHOD_FRAGMENT,\n} from './ShippingMethodFragment.graphql';\n\nexport const BILLING_CART_ADDRESS_FRAGMENT = /* GraphQL */ `\n fragment BILLING_CART_ADDRESS_FRAGMENT on BillingCartAddress {\n id\n city\n country {\n code\n label\n }\n firstname\n lastname\n company\n postcode\n vat_id\n region {\n region_id\n code\n label\n }\n street\n telephone\n custom_attributes {\n ... on AttributeValue {\n code\n value\n }\n }\n prefix\n suffix\n middlename\n fax\n }\n`;\n\nexport const SHIPPING_CART_ADDRESS_FRAGMENT = /* GraphQL */ `\n fragment SHIPPING_CART_ADDRESS_FRAGMENT on ShippingCartAddress {\n id\n firstname\n lastname\n company\n street\n city\n postcode\n vat_id\n region {\n region_id\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 ...AVAILABLE_SHIPPING_METHOD_FRAGMENT\n }\n selected_shipping_method {\n ...SELECTED_SHIPPING_METHOD_FRAGMENT\n }\n same_as_billing\n prefix\n suffix\n middlename\n fax\n }\n\n ${AVAILABLE_SHIPPING_METHOD_FRAGMENT}\n ${SELECTED_SHIPPING_METHOD_FRAGMENT}\n`;\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2025 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nexport const AVAILABLE_PAYMENT_METHOD_FRAGMENT = /* GraphQL */ `\n fragment AVAILABLE_PAYMENT_METHOD_FRAGMENT on AvailablePaymentMethod {\n code\n title\n }\n`;\n\nexport const SELECTED_PAYMENT_METHOD_FRAGMENT = /* GraphQL */ `\n fragment SELECTED_PAYMENT_METHOD_FRAGMENT on SelectedPaymentMethod {\n code\n title\n }\n`;\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2024 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nimport {\n BILLING_CART_ADDRESS_FRAGMENT,\n SHIPPING_CART_ADDRESS_FRAGMENT,\n} from './CartAddressFragment.graphql';\nimport {\n AVAILABLE_PAYMENT_METHOD_FRAGMENT,\n SELECTED_PAYMENT_METHOD_FRAGMENT,\n} from './PaymentMethodFragment.graphql';\n\nexport const CHECKOUT_DATA_FRAGMENT = /* GraphQL */ `\n fragment CHECKOUT_DATA_FRAGMENT on Cart {\n id\n is_virtual\n email\n total_quantity\n billing_address {\n ...BILLING_CART_ADDRESS_FRAGMENT\n }\n shipping_addresses {\n ...SHIPPING_CART_ADDRESS_FRAGMENT\n }\n available_payment_methods {\n ...AVAILABLE_PAYMENT_METHOD_FRAGMENT\n }\n selected_payment_method {\n ...SELECTED_PAYMENT_METHOD_FRAGMENT\n }\n }\n\n ${BILLING_CART_ADDRESS_FRAGMENT}\n ${SHIPPING_CART_ADDRESS_FRAGMENT}\n ${AVAILABLE_PAYMENT_METHOD_FRAGMENT}\n ${SELECTED_PAYMENT_METHOD_FRAGMENT}\n`;\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2024 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nexport const CUSTOMER_FRAGMENT = /* GraphQL */ `\n fragment CUSTOMER_FRAGMENT on Customer {\n firstname\n lastname\n email\n }\n`;\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2025 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nimport {\n AVAILABLE_SHIPPING_METHOD_FRAGMENT,\n SELECTED_SHIPPING_METHOD_FRAGMENT,\n} from './ShippingMethodFragment.graphql';\n\nexport const NEGOTIABLE_QUOTE_BILLING_ADDRESS_FRAGMENT = /* GraphQL */ `\n fragment NEGOTIABLE_QUOTE_BILLING_ADDRESS_FRAGMENT on NegotiableQuoteBillingAddress {\n city\n country {\n code\n label\n }\n firstname\n lastname\n company\n postcode\n region {\n region_id\n code\n label\n }\n street\n telephone\n }\n`;\n\nexport const NEGOTIABLE_QUOTE_SHIPPING_ADDRESS_FRAGMENT = /* GraphQL */ `\n fragment NEGOTIABLE_QUOTE_SHIPPING_ADDRESS_FRAGMENT on NegotiableQuoteShippingAddress {\n firstname\n lastname\n company\n street\n city\n postcode\n region {\n region_id\n code\n label\n }\n country {\n code\n label\n }\n telephone\n available_shipping_methods {\n ...AVAILABLE_SHIPPING_METHOD_FRAGMENT\n }\n selected_shipping_method {\n ...SELECTED_SHIPPING_METHOD_FRAGMENT\n }\n }\n\n ${AVAILABLE_SHIPPING_METHOD_FRAGMENT}\n ${SELECTED_SHIPPING_METHOD_FRAGMENT}\n`;\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2025 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nimport {\n NEGOTIABLE_QUOTE_BILLING_ADDRESS_FRAGMENT,\n NEGOTIABLE_QUOTE_SHIPPING_ADDRESS_FRAGMENT,\n} from './NegotiableQuoteAddressFragment.graphql';\n\nimport {\n AVAILABLE_PAYMENT_METHOD_FRAGMENT,\n SELECTED_PAYMENT_METHOD_FRAGMENT,\n} from './PaymentMethodFragment.graphql';\n\nexport const NEGOTIABLE_QUOTE_FRAGMENT = /* GraphQL */ `\n fragment NEGOTIABLE_QUOTE_FRAGMENT on NegotiableQuote {\n available_payment_methods {\n ...AVAILABLE_PAYMENT_METHOD_FRAGMENT\n }\n billing_address {\n ...NEGOTIABLE_QUOTE_BILLING_ADDRESS_FRAGMENT\n }\n email\n is_virtual\n name\n selected_payment_method {\n ...SELECTED_PAYMENT_METHOD_FRAGMENT\n }\n shipping_addresses {\n ...NEGOTIABLE_QUOTE_SHIPPING_ADDRESS_FRAGMENT\n }\n status\n total_quantity\n uid\n }\n\n ${NEGOTIABLE_QUOTE_BILLING_ADDRESS_FRAGMENT}\n ${NEGOTIABLE_QUOTE_SHIPPING_ADDRESS_FRAGMENT}\n ${AVAILABLE_PAYMENT_METHOD_FRAGMENT}\n ${SELECTED_PAYMENT_METHOD_FRAGMENT}\n`;\n"],"names":["AVAILABLE_SHIPPING_METHOD_FRAGMENT","SELECTED_SHIPPING_METHOD_FRAGMENT","BILLING_CART_ADDRESS_FRAGMENT","SHIPPING_CART_ADDRESS_FRAGMENT","AVAILABLE_PAYMENT_METHOD_FRAGMENT","SELECTED_PAYMENT_METHOD_FRAGMENT","CHECKOUT_DATA_FRAGMENT","CUSTOMER_FRAGMENT","NEGO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AAA;AAAA;AAAA;AAAA;AAAA,ECKlCC,EAA0D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAqB1DC,EAA2D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IA0BpET,CAAkC;AAAA,IAClCC,CAAiC;AAAA,EC3CxBS,EAA0C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAsBnDF,CAAyC;AAAA,IACzCC,CAA0C;AAAA,IAC1CL,CAAiC;AAAA,IACjCC,CAAgC;"}
1
+ {"version":3,"file":"fragments.js","sources":["/@dropins/storefront-checkout/src/api/graphql/ShippingMethodFragment.graphql.ts","/@dropins/storefront-checkout/src/api/graphql/CartAddressFragment.graphql.ts","/@dropins/storefront-checkout/src/api/graphql/PaymentMethodFragment.graphql.ts","/@dropins/storefront-checkout/src/api/graphql/CheckoutDataFragment.graphql.ts","/@dropins/storefront-checkout/src/api/graphql/CustomerFragment.graphql.ts","/@dropins/storefront-checkout/src/api/graphql/NegotiableQuoteAddressFragment.graphql.ts","/@dropins/storefront-checkout/src/api/graphql/NegotiableQuoteFragment.graphql.ts"],"sourcesContent":["/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2025 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nexport const AVAILABLE_SHIPPING_METHOD_FRAGMENT = /* GraphQL */ `\n fragment AVAILABLE_SHIPPING_METHOD_FRAGMENT on AvailableShippingMethod {\n amount {\n currency\n value\n }\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`;\n\nexport const SELECTED_SHIPPING_METHOD_FRAGMENT = /* GraphQL */ `\n fragment SELECTED_SHIPPING_METHOD_FRAGMENT on SelectedShippingMethod {\n amount {\n currency\n value\n }\n carrier_code\n carrier_title\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`;\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2024 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nimport {\n AVAILABLE_SHIPPING_METHOD_FRAGMENT,\n SELECTED_SHIPPING_METHOD_FRAGMENT,\n} from './ShippingMethodFragment.graphql';\n\nexport const BILLING_CART_ADDRESS_FRAGMENT = /* GraphQL */ `\n fragment BILLING_CART_ADDRESS_FRAGMENT on BillingCartAddress {\n city\n company\n country {\n code\n label\n }\n custom_attributes {\n ... on AttributeValue {\n code\n value\n }\n }\n fax\n firstname\n id\n lastname\n middlename\n postcode\n prefix\n region {\n region_id\n code\n label\n }\n street\n suffix\n telephone\n uid\n vat_id\n }\n`;\n\nexport const SHIPPING_CART_ADDRESS_FRAGMENT = /* GraphQL */ `\n fragment SHIPPING_CART_ADDRESS_FRAGMENT on ShippingCartAddress {\n available_shipping_methods {\n ...AVAILABLE_SHIPPING_METHOD_FRAGMENT\n }\n city\n company\n country {\n code\n label\n }\n custom_attributes {\n ... on AttributeValue {\n code\n value\n }\n }\n fax\n firstname\n id\n lastname\n middlename\n postcode\n prefix\n region {\n region_id\n code\n label\n }\n same_as_billing\n selected_shipping_method {\n ...SELECTED_SHIPPING_METHOD_FRAGMENT\n }\n street\n suffix\n telephone\n uid\n vat_id\n }\n\n ${AVAILABLE_SHIPPING_METHOD_FRAGMENT}\n ${SELECTED_SHIPPING_METHOD_FRAGMENT}\n`;\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2025 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nexport const AVAILABLE_PAYMENT_METHOD_FRAGMENT = /* GraphQL */ `\n fragment AVAILABLE_PAYMENT_METHOD_FRAGMENT on AvailablePaymentMethod {\n code\n title\n }\n`;\n\nexport const SELECTED_PAYMENT_METHOD_FRAGMENT = /* GraphQL */ `\n fragment SELECTED_PAYMENT_METHOD_FRAGMENT on SelectedPaymentMethod {\n code\n title\n purchase_order_number\n }\n`;\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2024 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nimport {\n BILLING_CART_ADDRESS_FRAGMENT,\n SHIPPING_CART_ADDRESS_FRAGMENT,\n} from './CartAddressFragment.graphql';\nimport {\n AVAILABLE_PAYMENT_METHOD_FRAGMENT,\n SELECTED_PAYMENT_METHOD_FRAGMENT,\n} from './PaymentMethodFragment.graphql';\n\nexport const CHECKOUT_DATA_FRAGMENT = /* GraphQL */ `\n fragment CHECKOUT_DATA_FRAGMENT on Cart {\n id\n is_virtual\n email\n total_quantity\n billing_address {\n ...BILLING_CART_ADDRESS_FRAGMENT\n }\n shipping_addresses {\n ...SHIPPING_CART_ADDRESS_FRAGMENT\n }\n available_payment_methods {\n ...AVAILABLE_PAYMENT_METHOD_FRAGMENT\n }\n selected_payment_method {\n ...SELECTED_PAYMENT_METHOD_FRAGMENT\n }\n }\n\n ${BILLING_CART_ADDRESS_FRAGMENT}\n ${SHIPPING_CART_ADDRESS_FRAGMENT}\n ${AVAILABLE_PAYMENT_METHOD_FRAGMENT}\n ${SELECTED_PAYMENT_METHOD_FRAGMENT}\n`;\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2024 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nexport const CUSTOMER_FRAGMENT = /* GraphQL */ `\n fragment CUSTOMER_FRAGMENT on Customer {\n firstname\n lastname\n email\n }\n`;\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2025 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nimport {\n AVAILABLE_SHIPPING_METHOD_FRAGMENT,\n SELECTED_SHIPPING_METHOD_FRAGMENT,\n} from './ShippingMethodFragment.graphql';\n\nexport const NEGOTIABLE_QUOTE_BILLING_ADDRESS_FRAGMENT = /* GraphQL */ `\n fragment NEGOTIABLE_QUOTE_BILLING_ADDRESS_FRAGMENT on NegotiableQuoteBillingAddress {\n city\n company\n country {\n code\n label\n }\n custom_attributes {\n ... on AttributeValue {\n code\n value\n }\n }\n fax\n firstname\n lastname\n middlename\n postcode\n prefix\n region {\n region_id\n code\n label\n }\n street\n suffix\n telephone\n uid\n vat_id\n }\n`;\n\nexport const NEGOTIABLE_QUOTE_SHIPPING_ADDRESS_FRAGMENT = /* GraphQL */ `\n fragment NEGOTIABLE_QUOTE_SHIPPING_ADDRESS_FRAGMENT on NegotiableQuoteShippingAddress {\n available_shipping_methods {\n ...AVAILABLE_SHIPPING_METHOD_FRAGMENT\n }\n city\n company\n country {\n code\n label\n }\n custom_attributes {\n ... on AttributeValue {\n code\n value\n }\n }\n fax\n firstname\n lastname\n middlename\n postcode\n prefix\n region {\n region_id\n code\n label\n }\n selected_shipping_method {\n ...SELECTED_SHIPPING_METHOD_FRAGMENT\n }\n street\n suffix\n telephone\n uid\n vat_id\n }\n\n ${AVAILABLE_SHIPPING_METHOD_FRAGMENT}\n ${SELECTED_SHIPPING_METHOD_FRAGMENT}\n`;\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2025 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nimport {\n NEGOTIABLE_QUOTE_BILLING_ADDRESS_FRAGMENT,\n NEGOTIABLE_QUOTE_SHIPPING_ADDRESS_FRAGMENT,\n} from './NegotiableQuoteAddressFragment.graphql';\n\nimport {\n AVAILABLE_PAYMENT_METHOD_FRAGMENT,\n SELECTED_PAYMENT_METHOD_FRAGMENT,\n} from './PaymentMethodFragment.graphql';\n\nexport const NEGOTIABLE_QUOTE_FRAGMENT = /* GraphQL */ `\n fragment NEGOTIABLE_QUOTE_FRAGMENT on NegotiableQuote {\n available_payment_methods {\n ...AVAILABLE_PAYMENT_METHOD_FRAGMENT\n }\n billing_address {\n ...NEGOTIABLE_QUOTE_BILLING_ADDRESS_FRAGMENT\n }\n email\n is_virtual\n name\n selected_payment_method {\n ...SELECTED_PAYMENT_METHOD_FRAGMENT\n }\n shipping_addresses {\n ...NEGOTIABLE_QUOTE_SHIPPING_ADDRESS_FRAGMENT\n }\n status\n total_quantity\n uid\n }\n\n ${NEGOTIABLE_QUOTE_BILLING_ADDRESS_FRAGMENT}\n ${NEGOTIABLE_QUOTE_SHIPPING_ADDRESS_FRAGMENT}\n ${AVAILABLE_PAYMENT_METHOD_FRAGMENT}\n ${SELECTED_PAYMENT_METHOD_FRAGMENT}\n`;\n"],"names":["AVAILABLE_SHIPPING_METHOD_FRAGMENT","SELECTED_SHIPPING_METHOD_FRAGMENT","BILLING_CART_ADDRESS_FRAGMENT","SHIPPING_CART_ADDRESS_FRAGMENT","AVAILABLE_PAYMENT_METHOD_FRAGMENT","SELECTED_PAYMENT_METHOD_FRAGMENT","CHECKOUT_DATA_FRAGMENT","CUSTOMER_FRAGMENT","NEGOTIABLE_QUOTE_BILLING_ADDRESS_FRAGMENT","NEGOTIABLE_QUOTE_SHIPPING_ADDRESS_FRAGMENT","NEGOTIABLE_QUOTE_FRAGMENT"],"mappings":"AAiBa,MAAAA,EAAmD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAsBnDC,EAAkD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA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AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAsCpET,CAAkC;AAAA,IAClCC,CAAiC;AAAA,ECnExBS,EAA0C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAsBnDF,CAAyC;AAAA,IACzCC,CAA0C;AAAA,IAC1CL,CAAiC;AAAA,IACjCC,CAAgC;"}
@@ -1,5 +1,11 @@
1
1
  declare const _default: {
2
2
  "Checkout": {
3
+ "AddressValidation": {
4
+ "title": "Verify your address",
5
+ "subtitle": "To ensure accurate delivery, we suggest the changes highlighted below. Please choose which address you would like to use. If neither option is correct, edit your address.",
6
+ "suggestedAddress": "Suggested Address",
7
+ "originalAddress": "Original Address"
8
+ },
3
9
  "BillToShippingAddress": {
4
10
  "cartSyncError": "We were unable to save your changes. Please try again later.",
5
11
  "title": "Bill to shipping address"
@@ -58,6 +64,22 @@ declare const _default: {
58
64
  "emptyState": "No payment methods available",
59
65
  "title": "Payment"
60
66
  },
67
+ "PaymentOnAccount": {
68
+ "referenceNumberLabel": "Custom Reference Number",
69
+ "referenceNumberPlaceholder": "Enter custom reference number",
70
+ "referenceNumberHint": "",
71
+ "availableCreditLabel": "Available Credit",
72
+ "exceedLimitWarning": "The credit limit is {{creditLimit}}. It will be exceeded by {{exceededAmount}} with this order.",
73
+ "exceedLimitWarningPrefix": "The credit limit is",
74
+ "exceedLimitWarningMiddle": ". It will be exceeded by",
75
+ "exceedLimitWarningSuffix": "with this order.",
76
+ "exceedLimitError": "Payment On Account cannot be used for this order because your order amount exceeds your credit amount."
77
+ },
78
+ "PurchaseOrder": {
79
+ "referenceNumberLabel": "Custom Reference Number",
80
+ "referenceNumberPlaceholder": "Enter custom reference number",
81
+ "referenceNumberHint": ""
82
+ },
61
83
  "PlaceOrder": {
62
84
  "button": "Place Order"
63
85
  },
@@ -67,6 +89,10 @@ declare const _default: {
67
89
  "title": "We were unable to process your order",
68
90
  "unexpected": "An unexpected error occurred while processing your order. Please try again later."
69
91
  },
92
+ "Quote": {
93
+ "permissionDenied": "You do not have permission to checkout with this quote.",
94
+ "dataError": "We were unable to retrieve the quote data. Please try again later."
95
+ },
70
96
  "ShippingMethods": {
71
97
  "cartSyncError": "We were unable to save your changes. Please try again later.",
72
98
  "emptyState": "This order can't be shipped to the address provided. Please review the address details you entered and make sure they're correct.",
@@ -1,14 +1,13 @@
1
1
  import { ReadonlySignal } from '@dropins/tools/types/elsie/src/lib/signals';
2
2
 
3
3
  export declare enum QueueName {
4
- CartUpdate = "cartUpdate",
5
- QuoteUpdates = "quoteUpdates",
4
+ Updates = "updates",
6
5
  Default = "default",
7
6
  ShippingEstimate = "shippingEstimate"
8
7
  }
9
8
  type Request<T> = () => Promise<T>;
10
9
  export declare function enqueueRequest<T>(requestFn: Request<T>, name?: QueueName): Promise<T>;
11
- export declare const hasPendingCartUpdates: ReadonlySignal<boolean>;
10
+ export declare const hasPendingUpdates: ReadonlySignal<boolean>;
12
11
  export declare const hasPendingShippingEstimate: ReadonlySignal<boolean>;
13
12
  export {};
14
13
  //# sourceMappingURL=enqueueRequest.d.ts.map
@@ -19,7 +19,9 @@ export declare enum ErrorCodes {
19
19
  INVALID_INPUT = "INVALID_INPUT",
20
20
  SERVER_ERROR = "SERVER_ERROR",
21
21
  UNAUTHENTICATED = "UNAUTHENTICATED",
22
- UNKNOWN_ERROR = "UNKNOWN_ERROR"
22
+ UNKNOWN_ERROR = "UNKNOWN_ERROR",
23
+ QUOTE_DATA_ERROR = "QUOTE_DATA_ERROR",
24
+ QUOTE_PERMISSION_DENIED = "QUOTE_PERMISSION_DENIED"
23
25
  }
24
26
  export interface ErrorClassifier {
25
27
  /**
@@ -12,6 +12,9 @@ export declare class MissingArgument extends InvalidInput {
12
12
  export declare class MissingCart extends MissingArgument {
13
13
  constructor();
14
14
  }
15
+ export declare class MissingCartAndQuote extends InvalidInput {
16
+ constructor();
17
+ }
15
18
  export declare class Unauthenticated extends Error {
16
19
  constructor();
17
20
  }
package/lib/events.d.ts CHANGED
@@ -1,9 +1,10 @@
1
- import { Cart as DataModel } from '../data/models';
1
+ import { Cart, NegotiableQuote } from '../data/models';
2
2
 
3
+ type DataModel = Cart | NegotiableQuote;
3
4
  export declare function getInitialCheckoutData(): DataModel | null;
4
5
  export declare function getLatestCheckoutUpdate(): DataModel | null;
5
6
  export declare function getCheckoutData(): DataModel | null;
6
7
  export declare function hasShippingAddress(): boolean;
7
- export declare function isVirtualCart(): boolean;
8
8
  export declare function getCartEmail(): string | null;
9
+ export {};
9
10
  //# sourceMappingURL=events.d.ts.map
@@ -14,5 +14,5 @@
14
14
  * is strictly forbidden unless prior written permission is obtained
15
15
  * from Adobe.
16
16
  *******************************************************************/
17
- export * from './setNegotiableQuoteShippingAddress';
18
- //# sourceMappingURL=index.d.ts.map
17
+ export declare const ensureHasCartOrQuoteId: () => void;
18
+ //# sourceMappingURL=guards.d.ts.map
package/lib/index.d.ts CHANGED
@@ -14,8 +14,8 @@
14
14
  * is strictly forbidden unless prior written permission is obtained
15
15
  * from Adobe.
16
16
  *******************************************************************/
17
+ export * from './utils';
17
18
  export * from './dispatchApiCall';
18
- export * from './dom';
19
19
  export * from './enqueueRequest';
20
20
  export * from './errors/mapErrorToCode';
21
21
  export * from './events';
package/lib/state.d.ts CHANGED
@@ -2,12 +2,13 @@ import { StoreConfig } from '../data/models';
2
2
 
3
3
  type State = {
4
4
  authenticated: boolean;
5
- cartId: string | null;
6
- quoteId?: string | null;
7
- initialized: boolean;
5
+ cartId?: string | null;
8
6
  config: StoreConfig | null;
7
+ initialized: boolean;
8
+ quoteId?: string | null;
9
9
  };
10
10
  export declare const state: State;
11
- export declare const getStoreConfigCache: () => StoreConfig | null;
11
+ export declare function isQuoteCheckout(): boolean;
12
+ export declare function isCartCheckout(): boolean;
12
13
  export {};
13
14
  //# sourceMappingURL=state.d.ts.map
@@ -0,0 +1,16 @@
1
+ import { RenderAPI } from '../../types';
2
+
3
+ type AddressFormChange = {
4
+ data: Record<string, any>;
5
+ isDataValid: boolean;
6
+ };
7
+ export declare function setAddressOnCart({ type, debounceMs, placeOrderBtn, }: {
8
+ type?: 'shipping' | 'billing';
9
+ debounceMs?: number;
10
+ placeOrderBtn?: RenderAPI;
11
+ }): ({ data, isDataValid }: AddressFormChange) => void;
12
+ export declare function estimateShippingCost({ debounceMs }: {
13
+ debounceMs?: number | undefined;
14
+ }): ({ data, isDataValid }: AddressFormChange) => void;
15
+ export {};
16
+ //# sourceMappingURL=api.d.ts.map
@@ -0,0 +1,10 @@
1
+ import { Cart } from '../../data/models/cart';
2
+
3
+ type CartData = Cart | null;
4
+ export declare function isVirtualCart(data?: CartData): boolean;
5
+ export declare function isEmptyCart(data: CartData): boolean;
6
+ export declare function getCartShippingMethod(data: CartData): import('../../data/models/shipping-method').ShippingMethod | null | undefined;
7
+ export declare function getCartAddress(data: CartData, type?: 'shipping' | 'billing'): Record<string, any> | null;
8
+ export declare function getCartPaymentMethod(data: CartData): import('../../data/models/payment-method').PaymentMethod | null | undefined;
9
+ export {};
10
+ //# sourceMappingURL=events.d.ts.map
@@ -0,0 +1,5 @@
1
+ import { FormRef } from '../../types/storefront-account';
2
+ import { RefObject } from 'preact';
3
+
4
+ export declare function validateForm(formName: string, formRef: RefObject<FormRef>): boolean;
5
+ //# sourceMappingURL=forms.d.ts.map
@@ -0,0 +1,19 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2025 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 function createFragment(html: string): DocumentFragment;
18
+ export declare function createScopedSelector(fragment: DocumentFragment): (selector: string) => HTMLElement | null;
19
+ //# sourceMappingURL=fragments.d.ts.map
@@ -0,0 +1,24 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2025 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 './api';
18
+ export * from './events';
19
+ export * from './forms';
20
+ export * from './fragments';
21
+ export * from './meta';
22
+ export * from './transformers';
23
+ export * from './dom';
24
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,19 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2025 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 function createMetaTag(property: string, content: string, type: string): void;
18
+ export declare function setMetaTags(dropin: string): void;
19
+ //# sourceMappingURL=meta.d.ts.map
@@ -0,0 +1,6 @@
1
+ import { BillingAddressInput, ShippingAddressInput } from '../../data/models/api';
2
+ import { CartAddress } from '../../data/models/cart';
3
+
4
+ export declare const transformAddressFormValuesToAddressInput: (data: Record<string, any>) => ShippingAddressInput | BillingAddressInput;
5
+ export declare const transformCartAddressToFormValues: (address: CartAddress) => Record<string, any>;
6
+ //# sourceMappingURL=transformers.d.ts.map
package/lib/utils.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './utils/index'
package/lib/utils.js ADDED
@@ -0,0 +1,4 @@
1
+ /*! Copyright 2025 Adobe
2
+ All Rights Reserved. */
3
+ import"../chunks/fetch-graphql.js";import{s as l,e as C}from"../chunks/setShippingAddress.js";import{debounce as f}from"@dropins/tools/lib.js";import"@dropins/tools/event-bus.js";import{s as y}from"../chunks/setBillingAddress.js";import{b as H,c as J,g as K,a as L,i as Q}from"../chunks/events.js";import{s as X}from"../chunks/dom.js";import"@dropins/tools/signals.js";import"@dropins/tools/fetch-graphql.js";import"../chunks/transform-shipping-estimate.js";import"../chunks/transform-shipping-methods.js";import"../chunks/values.js";import"../chunks/synchronizeCheckout.js";import"../fragments.js";import"../chunks/classifiers.js";import"../chunks/guards.js";import"../chunks/events2.js";let p=0;function P({type:e="shipping",debounceMs:i=0,placeOrderBtn:o}){const r=e==="shipping"?l:y,t=f(s=>{p+=1,r(s).catch(console.error).finally(()=>{p-=1,p===0&&(o==null||o.setProps(n=>({...n,disabled:!1})))})},i);return({data:s,isDataValid:n})=>{if(!n)return;o==null||o.setProps(m=>({...m,disabled:!0}));const u=A(s);t(u)}}function _({debounceMs:e=0}){let i={},o=!1;const r=f(t=>{var n,u,m,g;if(o)return;const s={country_code:t.countryCode,region_name:String(((n=t.region)==null?void 0:n.regionCode)||""),region_id:String(((u=t.region)==null?void 0:u.regionId)||""),zip:t.postcode};C({criteria:s}),i={countryCode:t.countryCode,regionCode:((m=t.region)==null?void 0:m.regionCode)||"",regionId:((g=t.region)==null?void 0:g.regionId)||"",postcode:t.postcode}},e);return({data:t,isDataValid:s})=>{var n,u;if(s){o=!0;return}i.countryCode===t.countryCode&&i.regionCode===(((n=t.region)==null?void 0:n.regionCode)||"")&&i.regionId===(((u=t.region)==null?void 0:u.regionId)||"")&&i.postcode===t.postcode||r(t)}}function q(e,i){const o=document.forms.namedItem(e);return!o||!(o&&o.offsetParent!==null)?!0:(o.setAttribute("novalidate",""),i&&i.current?i.current.handleValidationSubmit(!1):o.checkValidity())}function D(e){return document.createRange().createContextualFragment(e)}function $(e){return function(i){return e.querySelector(i)}}function c(e,i,o){if(!e||!o)return;const r=document.head.querySelector(`meta[${o}="${e}"]`);if(!i){r==null||r.remove();return}if(r)r.setAttribute("content",i);else{const t=document.createElement("meta");t.setAttribute(o,e),t.setAttribute("content",i),document.head.appendChild(t)}}function z(e){c("title",e,"name"),c("description",e,"name"),c("keywords",e,"name"),c("og:description",e,"property"),c("og:title",e,"property"),c("og:url",window.location.href,"property")}const A=e=>{var r,t,s;if(!(!(e!=null&&e.id)&&!(e!=null&&e.uid)))return{customerAddressId:e.id,customerAddressUid:e.uid};const o=(r=e.customAttributes)==null?void 0:r.map(({code:n,value:u})=>({code:n,value:String(u)}));return{address:{city:e.city,company:e==null?void 0:e.company,countryCode:e.countryCode,customAttributes:o,fax:e.fax,firstName:e.firstName,lastName:e.lastName,middleName:e.middleName,postcode:e.postcode,prefix:e.prefix,region:(t=e==null?void 0:e.region)==null?void 0:t.regionCode,regionId:(s=e==null?void 0:e.region)==null?void 0:s.regionId,street:e.street,suffix:e.suffix,telephone:e.telephone,vatId:e.vatId,saveInAddressBook:e.saveAddressBook}}},U=e=>{var i,o,r;return{city:e.city,company:e==null?void 0:e.company,countryCode:(i=e.country)==null?void 0:i.code,customAttributes:e.customAttributes,fax:e.fax,firstName:e.firstName,lastName:e.lastName,middleName:e.middleName,postcode:e.postCode,prefix:e.prefix,region:{regionCode:(o=e.region)==null?void 0:o.code,regionId:(r=e.region)==null?void 0:r.id},street:e.street,suffix:e.suffix,telephone:e.telephone,vatId:e.vatId}};export{D as createFragment,c as createMetaTag,$ as createScopedSelector,_ as estimateShippingCost,H as getCartAddress,J as getCartPaymentMethod,K as getCartShippingMethod,L as isEmptyCart,Q as isVirtualCart,X as scrollToElement,P as setAddressOnCart,z as setMetaTags,A as transformAddressFormValuesToAddressInput,U as transformCartAddressToFormValues,q as validateForm};
4
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sources":["/@dropins/storefront-checkout/src/lib/utils/api.ts","/@dropins/storefront-checkout/src/lib/utils/forms.ts","/@dropins/storefront-checkout/src/lib/utils/fragments.ts","/@dropins/storefront-checkout/src/lib/utils/meta.ts","/@dropins/storefront-checkout/src/lib/utils/transformers.ts"],"sourcesContent":["/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2025 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nimport {\n estimateShippingMethods,\n setBillingAddress,\n setShippingAddress,\n} from '@/checkout/api';\nimport {\n BillingAddressInput,\n ShippingAddressInput,\n} from '@/checkout/data/models/api';\nimport { transformAddressFormValuesToAddressInput } from '@/checkout/lib/utils';\nimport { RenderAPI } from '@/checkout/types';\nimport { debounce } from '@adobe-commerce/elsie/lib';\n\ntype AddressFormChange = {\n data: Record<string, any>;\n isDataValid: boolean;\n};\n\nlet ongoingSetAddressCalls = 0;\n\nexport function setAddressOnCart({\n type = 'shipping',\n debounceMs = 0,\n placeOrderBtn,\n}: {\n type?: 'shipping' | 'billing';\n debounceMs?: number;\n placeOrderBtn?: RenderAPI;\n}) {\n const api = type === 'shipping' ? setShippingAddress : setBillingAddress;\n\n const debouncedApi = debounce(\n (address: ShippingAddressInput | BillingAddressInput) => {\n ongoingSetAddressCalls += 1;\n api(address)\n .catch(console.error)\n .finally(() => {\n ongoingSetAddressCalls -= 1;\n if (ongoingSetAddressCalls === 0) {\n placeOrderBtn?.setProps((prev) => ({ ...prev, disabled: false }));\n }\n });\n },\n debounceMs\n );\n\n return ({ data, isDataValid }: AddressFormChange) => {\n if (!isDataValid) return;\n placeOrderBtn?.setProps((prev) => ({ ...prev, disabled: true }));\n const address = transformAddressFormValuesToAddressInput(data);\n debouncedApi(address);\n };\n}\n\nexport function estimateShippingCost({ debounceMs = 0 }) {\n let prevEstimateShippingData: {\n countryCode?: string;\n regionCode?: string;\n regionId?: string;\n postcode?: string;\n } = {};\n\n let shouldCancelDebounce = false;\n\n const debouncedApi = debounce((data: Record<string, any>) => {\n if (shouldCancelDebounce) return;\n\n const estimateShippingInputCriteria = {\n country_code: data.countryCode,\n region_name: String(data.region?.regionCode || ''),\n region_id: String(data.region?.regionId || ''),\n zip: data.postcode,\n };\n\n estimateShippingMethods({ criteria: estimateShippingInputCriteria });\n\n prevEstimateShippingData = {\n countryCode: data.countryCode,\n regionCode: data.region?.regionCode || '',\n regionId: data.region?.regionId || '',\n postcode: data.postcode,\n };\n }, debounceMs);\n\n return ({ data, isDataValid }: AddressFormChange) => {\n if (isDataValid) {\n shouldCancelDebounce = true;\n return;\n }\n\n if (\n prevEstimateShippingData.countryCode === data.countryCode &&\n prevEstimateShippingData.regionCode === (data.region?.regionCode || '') &&\n prevEstimateShippingData.regionId === (data.region?.regionId || '') &&\n prevEstimateShippingData.postcode === data.postcode\n )\n return;\n\n debouncedApi(data);\n };\n}\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2025 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nimport { FormRef } from '@/checkout/types/storefront-account';\nimport { RefObject } from 'preact';\n\nexport function validateForm(\n formName: string,\n formRef: RefObject<FormRef>\n): boolean {\n const formElement = document.forms.namedItem(formName);\n\n if (!formElement) {\n return true;\n }\n\n const isVisible = formElement && formElement.offsetParent !== null;\n if (!isVisible) {\n return true;\n }\n\n formElement.setAttribute('novalidate', '');\n\n if (formRef && formRef.current) {\n return formRef.current.handleValidationSubmit(false);\n }\n\n return formElement.checkValidity();\n}\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2025 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nexport function createFragment(html: string): DocumentFragment {\n return document.createRange().createContextualFragment(html);\n}\n\nexport function createScopedSelector(\n fragment: DocumentFragment\n): (selector: string) => HTMLElement | null {\n return function (selector: string): HTMLElement | null {\n return fragment.querySelector(selector);\n };\n}\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2025 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nexport function createMetaTag(property: string, content: string, type: string) {\n if (!property || !type) {\n return;\n }\n\n const meta = document.head.querySelector<HTMLMetaElement>(\n `meta[${type}=\"${property}\"]`\n );\n\n if (!content) {\n meta?.remove();\n return;\n }\n\n if (meta) {\n meta.setAttribute('content', content);\n } else {\n const newMeta = document.createElement('meta');\n newMeta.setAttribute(type, property);\n newMeta.setAttribute('content', content);\n document.head.appendChild(newMeta);\n }\n}\n\nexport function setMetaTags(dropin: string) {\n createMetaTag('title', dropin, 'name');\n createMetaTag('description', dropin, 'name');\n createMetaTag('keywords', dropin, 'name');\n createMetaTag('og:description', dropin, 'property');\n createMetaTag('og:title', dropin, 'property');\n createMetaTag('og:url', window.location.href, 'property');\n}\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2025 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nimport {\n BillingAddressInput,\n ShippingAddressInput,\n} from '@/checkout/data/models/api';\nimport { CartAddress } from '@/checkout/data/models/cart';\n\nexport const transformAddressFormValuesToAddressInput = (\n data: Record<string, any>\n): ShippingAddressInput | BillingAddressInput => {\n const isNewAddress = !data?.id && !data?.uid;\n\n if (!isNewAddress) {\n return {\n customerAddressId: data.id,\n customerAddressUid: data.uid,\n };\n }\n\n const customAttributes = data.customAttributes?.map(\n ({ code, value }: { code: string; value: unknown }) => ({\n code,\n value: String(value),\n })\n );\n\n return {\n address: {\n city: data.city,\n company: data?.company,\n countryCode: data.countryCode,\n customAttributes,\n fax: data.fax,\n firstName: data.firstName,\n lastName: data.lastName,\n middleName: data.middleName,\n postcode: data.postcode,\n prefix: data.prefix,\n region: data?.region?.regionCode,\n regionId: data?.region?.regionId,\n street: data.street,\n suffix: data.suffix,\n telephone: data.telephone,\n vatId: data.vatId,\n saveInAddressBook: data.saveAddressBook,\n },\n };\n};\n\nexport const transformCartAddressToFormValues = (\n address: CartAddress\n): Record<string, any> => {\n return {\n city: address.city,\n company: address?.company,\n countryCode: address.country?.code,\n customAttributes: address.customAttributes,\n fax: address.fax,\n firstName: address.firstName,\n lastName: address.lastName,\n middleName: address.middleName,\n postcode: address.postCode,\n prefix: address.prefix,\n region: {\n regionCode: address.region?.code,\n regionId: address.region?.id,\n },\n street: address.street,\n suffix: address.suffix,\n telephone: address.telephone,\n vatId: address.vatId,\n };\n};\n"],"names":["ongoingSetAddressCalls","setAddressOnCart","type","debounceMs","placeOrderBtn","api","setShippingAddress","setBillingAddress","debouncedApi","debounce","address","prev","data","isDataValid","transformAddressFormValuesToAddressInput","estimateShippingCost","prevEstimateShippingData","shouldCancelDebounce","estimateShippingInputCriteria","_a","_b","estimateShippingMethods","_c","_d","validateForm","formName","formRef","formElement","createFragment","html","createScopedSelector","fragment","selector","createMetaTag","property","content","meta","newMeta","setMetaTags","dropin","customAttributes","code","value","transformCartAddressToFormValues"],"mappings":"irBAmCA,IAAIA,EAAyB,EAEtB,SAASC,EAAiB,CAC/B,KAAAC,EAAO,WACP,WAAAC,EAAa,EACb,cAAAC,CACF,EAIG,CACK,MAAAC,EAAMH,IAAS,WAAaI,EAAqBC,EAEjDC,EAAeC,EAClBC,GAAwD,CAC7BV,GAAA,EAC1BK,EAAIK,CAAO,EACR,MAAM,QAAQ,KAAK,EACnB,QAAQ,IAAM,CACaV,GAAA,EACtBA,IAA2B,IACdI,GAAA,MAAAA,EAAA,SAAUO,IAAU,CAAE,GAAGA,EAAM,SAAU,MAC1D,CACD,CACL,EACAR,CACF,EAEA,MAAO,CAAC,CAAE,KAAAS,EAAM,YAAAC,KAAqC,CACnD,GAAI,CAACA,EAAa,OACHT,GAAA,MAAAA,EAAA,SAAUO,IAAU,CAAE,GAAGA,EAAM,SAAU,MAClD,MAAAD,EAAUI,EAAyCF,CAAI,EAC7DJ,EAAaE,CAAO,CACtB,CACF,CAEO,SAASK,EAAqB,CAAE,WAAAZ,EAAa,GAAK,CACvD,IAAIa,EAKA,CAAC,EAEDC,EAA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,EAAc,WACtB,UAAUE,EAAAV,GAAA,YAAAA,EAAM,SAAN,YAAAU,EAAc,SACxB,OAAQV,EAAK,OACb,OAAQA,EAAK,OACb,UAAWA,EAAK,UAChB,MAAOA,EAAK,MACZ,kBAAmBA,EAAK,eAAA,CAE5B,CACF,EAEa+B,EACXjC,GACwB,WACjB,MAAA,CACL,KAAMA,EAAQ,KACd,QAASA,GAAA,YAAAA,EAAS,QAClB,aAAaS,EAAAT,EAAQ,UAAR,YAAAS,EAAiB,KAC9B,iBAAkBT,EAAQ,iBAC1B,IAAKA,EAAQ,IACb,UAAWA,EAAQ,UACnB,SAAUA,EAAQ,SAClB,WAAYA,EAAQ,WACpB,SAAUA,EAAQ,SAClB,OAAQA,EAAQ,OAChB,OAAQ,CACN,YAAYU,EAAAV,EAAQ,SAAR,YAAAU,EAAgB,KAC5B,UAAUE,EAAAZ,EAAQ,SAAR,YAAAY,EAAgB,EAC5B,EACA,OAAQZ,EAAQ,OAChB,OAAQA,EAAQ,OAChB,UAAWA,EAAQ,UACnB,MAAOA,EAAQ,KACjB,CACF"}
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name": "@dropins/storefront-checkout", "version": "2.1.0-beta2", "@dropins/tools": "^1.4.0", "license": "SEE LICENSE IN LICENSE.md"}
1
+ {"name": "@dropins/storefront-checkout", "version": "2.2.0-alpha1", "@dropins/tools": "^1.5.0-beta2", "license": "SEE LICENSE IN LICENSE.md"}