@afosto/checkout-ui 0.0.1-alpha.1 → 0.0.1-alpha.10

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 (483) hide show
  1. package/dist/Checkout/Checkout.d.ts.map +1 -1
  2. package/dist/Checkout/index.d.ts.map +1 -1
  3. package/dist/CheckoutAccountSelection/CheckoutAccountSelection.d.ts.map +1 -1
  4. package/dist/CheckoutAccountSelection/index.d.ts.map +1 -1
  5. package/dist/CheckoutAccountSelectionCard/CheckoutAccountSelectionCard.d.ts.map +1 -1
  6. package/dist/CheckoutAccountSelectionCard/index.d.ts.map +1 -1
  7. package/dist/CheckoutAddressBlock/CheckoutAddressBlock.d.ts +1 -1
  8. package/dist/CheckoutAddressBlock/CheckoutAddressBlock.d.ts.map +1 -1
  9. package/dist/CheckoutAddressBlock/index.d.ts.map +1 -1
  10. package/dist/CheckoutAddressCard/CheckoutAddressCard.d.ts +2 -2
  11. package/dist/CheckoutAddressCard/CheckoutAddressCard.d.ts.map +1 -1
  12. package/dist/CheckoutAddressCard/index.d.ts.map +1 -1
  13. package/dist/CheckoutAddressCardSkeleton/CheckoutAddressCardSkeleton.d.ts +3 -1
  14. package/dist/CheckoutAddressCardSkeleton/CheckoutAddressCardSkeleton.d.ts.map +1 -1
  15. package/dist/CheckoutAddressCardSkeleton/CheckoutAddressCardSkeleton.js +14 -11
  16. package/dist/CheckoutAddressCardSkeleton/index.d.ts +1 -0
  17. package/dist/CheckoutAddressCardSkeleton/index.d.ts.map +1 -1
  18. package/dist/CheckoutAddressFields/CheckoutAddressFields.d.ts +2 -2
  19. package/dist/CheckoutAddressFields/CheckoutAddressFields.d.ts.map +1 -1
  20. package/dist/CheckoutAddressFields/CheckoutAddressFields.js +8 -8
  21. package/dist/CheckoutAddressFields/index.d.ts.map +1 -1
  22. package/dist/CheckoutAddressSection/CheckoutAddressSection.d.ts.map +1 -1
  23. package/dist/CheckoutAddressSection/index.d.ts.map +1 -1
  24. package/dist/CheckoutAgreementOption/CheckoutAgreementOption.d.ts.map +1 -1
  25. package/dist/CheckoutAgreementOption/index.d.ts.map +1 -1
  26. package/dist/CheckoutAgreementOptionCondition/CheckoutAgreementOptionCondition.d.ts.map +1 -1
  27. package/dist/CheckoutAgreementOptionCondition/index.d.ts.map +1 -1
  28. package/dist/CheckoutAgreementOptionsField/CheckoutAgreementOptionsField.d.ts.map +1 -1
  29. package/dist/CheckoutAgreementOptionsField/index.d.ts.map +1 -1
  30. package/dist/CheckoutAgreementOptionsSection/CheckoutAgreementOptionsSection.d.ts.map +1 -1
  31. package/dist/CheckoutAgreementOptionsSection/index.d.ts.map +1 -1
  32. package/dist/CheckoutAgreementSummaryCard/CheckoutAgreementSummaryCard.d.ts +2 -2
  33. package/dist/CheckoutAgreementSummaryCard/CheckoutAgreementSummaryCard.d.ts.map +1 -1
  34. package/dist/CheckoutAgreementSummaryCard/index.d.ts.map +1 -1
  35. package/dist/CheckoutAgreementsTimeline/CheckoutAgreementsTimeline.d.ts.map +1 -1
  36. package/dist/CheckoutAgreementsTimeline/index.d.ts.map +1 -1
  37. package/dist/CheckoutBillingAddressSection/CheckoutBillingAddressSection.d.ts.map +1 -1
  38. package/dist/CheckoutBillingAddressSection/index.d.ts.map +1 -1
  39. package/dist/CheckoutBusinessDetailsCard/CheckoutBusinessDetailsCard.d.ts.map +1 -1
  40. package/dist/CheckoutBusinessDetailsCard/index.d.ts.map +1 -1
  41. package/dist/CheckoutBusinessDetailsCardSkeleton/CheckoutBusinessDetailsCardSkeleton.d.ts +3 -1
  42. package/dist/CheckoutBusinessDetailsCardSkeleton/CheckoutBusinessDetailsCardSkeleton.d.ts.map +1 -1
  43. package/dist/CheckoutBusinessDetailsCardSkeleton/CheckoutBusinessDetailsCardSkeleton.js +6 -3
  44. package/dist/CheckoutBusinessDetailsCardSkeleton/index.d.ts +1 -0
  45. package/dist/CheckoutBusinessDetailsCardSkeleton/index.d.ts.map +1 -1
  46. package/dist/CheckoutBusinessInformationSection/CheckoutBusinessInformationSection.d.ts.map +1 -1
  47. package/dist/CheckoutBusinessInformationSection/index.d.ts.map +1 -1
  48. package/dist/CheckoutCardRadioField/CheckoutCardRadioField.d.ts.map +1 -1
  49. package/dist/CheckoutCardRadioField/index.d.ts.map +1 -1
  50. package/dist/CheckoutCartProvider/CheckoutCartProvider.d.ts +3 -2
  51. package/dist/CheckoutCartProvider/CheckoutCartProvider.d.ts.map +1 -1
  52. package/dist/CheckoutCartProvider/CheckoutCartProvider.js +52 -44
  53. package/dist/CheckoutCartProvider/index.d.ts.map +1 -1
  54. package/dist/CheckoutCommentField/CheckoutCommentField.d.ts.map +1 -1
  55. package/dist/CheckoutCommentField/index.d.ts.map +1 -1
  56. package/dist/CheckoutContactDetailsCard/CheckoutContactDetailsCard.d.ts.map +1 -1
  57. package/dist/CheckoutContactDetailsCard/index.d.ts.map +1 -1
  58. package/dist/CheckoutContactDetailsSkeleton/CheckoutContactDetailsSkeleton.d.ts +3 -1
  59. package/dist/CheckoutContactDetailsSkeleton/CheckoutContactDetailsSkeleton.d.ts.map +1 -1
  60. package/dist/CheckoutContactDetailsSkeleton/CheckoutContactDetailsSkeleton.js +13 -10
  61. package/dist/CheckoutContactDetailsSkeleton/index.d.ts +1 -0
  62. package/dist/CheckoutContactDetailsSkeleton/index.d.ts.map +1 -1
  63. package/dist/CheckoutContactInformationSection/CheckoutContactInformationSection.d.ts +1 -0
  64. package/dist/CheckoutContactInformationSection/CheckoutContactInformationSection.d.ts.map +1 -1
  65. package/dist/CheckoutContactInformationSection/CheckoutContactInformationSection.js +50 -40
  66. package/dist/CheckoutContactInformationSection/index.d.ts.map +1 -1
  67. package/dist/CheckoutContainer/CheckoutContainer.d.ts.map +1 -1
  68. package/dist/CheckoutContainer/CheckoutContainer.styles.d.ts +1 -1
  69. package/dist/CheckoutContainer/CheckoutContainer.styles.d.ts.map +1 -1
  70. package/dist/CheckoutContainer/index.d.ts.map +1 -1
  71. package/dist/CheckoutCurrency/CheckoutCurrency.d.ts.map +1 -1
  72. package/dist/CheckoutCurrency/index.d.ts.map +1 -1
  73. package/dist/CheckoutDownPaymentAgreementsSummary/CheckoutDownPaymentAgreementsSummary.d.ts.map +1 -1
  74. package/dist/CheckoutDownPaymentAgreementsSummary/index.d.ts.map +1 -1
  75. package/dist/CheckoutEmptyMessageAlert/CheckoutEmptyMessageAlert.d.ts.map +1 -1
  76. package/dist/CheckoutEmptyMessageAlert/index.d.ts.map +1 -1
  77. package/dist/CheckoutErrorMessageAlert/CheckoutErrorMessageAlert.d.ts.map +1 -1
  78. package/dist/CheckoutErrorMessageAlert/index.d.ts.map +1 -1
  79. package/dist/CheckoutExpressButton/CheckoutExpressButton.d.ts.map +1 -1
  80. package/dist/CheckoutExpressButton/index.d.ts.map +1 -1
  81. package/dist/CheckoutExpressCheckoutSection/CheckoutExpressCheckoutSection.d.ts.map +1 -1
  82. package/dist/CheckoutExpressCheckoutSection/index.d.ts.map +1 -1
  83. package/dist/CheckoutForgotPassword/CheckoutForgotPassword.d.ts.map +1 -1
  84. package/dist/CheckoutForgotPassword/index.d.ts.map +1 -1
  85. package/dist/CheckoutForgotPasswordForm/CheckoutForgotPasswordForm.d.ts.map +1 -1
  86. package/dist/CheckoutForgotPasswordForm/index.d.ts +1 -1
  87. package/dist/CheckoutForgotPasswordForm/index.d.ts.map +1 -1
  88. package/dist/CheckoutForgotPasswordForm/validationSchema.d.ts.map +1 -1
  89. package/dist/CheckoutForm/CheckoutForm.d.ts +6 -6
  90. package/dist/CheckoutForm/CheckoutForm.d.ts.map +1 -1
  91. package/dist/CheckoutForm/CheckoutForm.js +142 -120
  92. package/dist/CheckoutForm/index.d.ts.map +1 -1
  93. package/dist/CheckoutFormSkeleton/CheckoutFormSkeleton.d.ts.map +1 -1
  94. package/dist/CheckoutFormSkeleton/index.d.ts.map +1 -1
  95. package/dist/CheckoutInformationStep/CheckoutInformationStep.d.ts.map +1 -1
  96. package/dist/CheckoutInformationStep/index.d.ts.map +1 -1
  97. package/dist/CheckoutIssuersField/CheckoutIssuersField.d.ts.map +1 -1
  98. package/dist/CheckoutIssuersField/index.d.ts.map +1 -1
  99. package/dist/CheckoutItem/CheckoutItem.d.ts.map +1 -1
  100. package/dist/CheckoutItem/index.d.ts.map +1 -1
  101. package/dist/CheckoutLayout/CheckoutLayout.d.ts.map +1 -1
  102. package/dist/CheckoutLayout/index.d.ts.map +1 -1
  103. package/dist/CheckoutLogo/CheckoutLogo.d.ts.map +1 -1
  104. package/dist/CheckoutLogo/index.d.ts.map +1 -1
  105. package/dist/CheckoutMethodRadioField/CheckoutMethodRadioField.d.ts.map +1 -1
  106. package/dist/CheckoutMethodRadioField/index.d.ts.map +1 -1
  107. package/dist/CheckoutMethodRadioSkeleton/CheckoutMethodRadioSkeleton.d.ts.map +1 -1
  108. package/dist/CheckoutMethodRadioSkeleton/index.d.ts.map +1 -1
  109. package/dist/CheckoutMethodSummaryCard/CheckoutMethodSummaryCard.d.ts.map +1 -1
  110. package/dist/CheckoutMethodSummaryCard/index.d.ts.map +1 -1
  111. package/dist/CheckoutMethodSummaryCardSkeleton/CheckoutMethodSummaryCardSkeleton.d.ts.map +1 -1
  112. package/dist/CheckoutMethodSummaryCardSkeleton/index.d.ts.map +1 -1
  113. package/dist/CheckoutMobileStepper/CheckoutMobileStepper.d.ts.map +1 -1
  114. package/dist/CheckoutMobileStepper/index.d.ts.map +1 -1
  115. package/dist/CheckoutMobileStepperSkeleton/CheckoutMobileStepperSkeleton.d.ts.map +1 -1
  116. package/dist/CheckoutMobileStepperSkeleton/index.d.ts.map +1 -1
  117. package/dist/CheckoutNotFoundFeedback/CheckoutNotFoundFeedback.d.ts.map +1 -1
  118. package/dist/CheckoutNotFoundFeedback/index.d.ts.map +1 -1
  119. package/dist/CheckoutOrderProvider/CheckoutOrderProvider.d.ts +3 -2
  120. package/dist/CheckoutOrderProvider/CheckoutOrderProvider.d.ts.map +1 -1
  121. package/dist/CheckoutOrderProvider/CheckoutOrderProvider.js +48 -40
  122. package/dist/CheckoutOrderProvider/index.d.ts.map +1 -1
  123. package/dist/CheckoutPayPalExpressButton/CheckoutPayPalExpressButton.d.ts.map +1 -1
  124. package/dist/CheckoutPayPalExpressButton/index.d.ts.map +1 -1
  125. package/dist/CheckoutPaymentMethodOption/CheckoutPaymentMethodOption.d.ts.map +1 -1
  126. package/dist/CheckoutPaymentMethodOption/index.d.ts.map +1 -1
  127. package/dist/CheckoutPaymentMethodSection/CheckoutPaymentMethodSection.d.ts.map +1 -1
  128. package/dist/CheckoutPaymentMethodSection/index.d.ts.map +1 -1
  129. package/dist/CheckoutPaymentMethodsField/CheckoutPaymentMethodsField.d.ts.map +1 -1
  130. package/dist/CheckoutPaymentMethodsField/index.d.ts.map +1 -1
  131. package/dist/CheckoutPaymentStep/CheckoutPaymentStep.d.ts.map +1 -1
  132. package/dist/CheckoutPaymentStep/index.d.ts.map +1 -1
  133. package/dist/CheckoutPhoneNumberCard/CheckoutPhoneNumberCard.d.ts.map +1 -1
  134. package/dist/CheckoutPhoneNumberCard/index.d.ts.map +1 -1
  135. package/dist/CheckoutPickupPointOption/CheckoutPickupPointOption.d.ts.map +1 -1
  136. package/dist/CheckoutPickupPointOption/index.d.ts.map +1 -1
  137. package/dist/CheckoutPickupPointsField/CheckoutPickupPointsField.d.ts.map +1 -1
  138. package/dist/CheckoutPickupPointsField/index.d.ts.map +1 -1
  139. package/dist/CheckoutPoweredBy/CheckoutPoweredBy.d.ts.map +1 -1
  140. package/dist/CheckoutPoweredBy/index.d.ts.map +1 -1
  141. package/dist/CheckoutPricingLabel/CheckoutPricingLabel.d.ts.map +1 -1
  142. package/dist/CheckoutPricingLabel/index.d.ts.map +1 -1
  143. package/dist/CheckoutProvider/CheckoutProvider.d.ts +3 -1
  144. package/dist/CheckoutProvider/CheckoutProvider.d.ts.map +1 -1
  145. package/dist/CheckoutProvider/CheckoutProvider.js +76 -69
  146. package/dist/CheckoutProvider/components/CheckoutInnerProviders/CheckoutInnerProviders.d.ts.map +1 -1
  147. package/dist/CheckoutProvider/components/CheckoutQueryClientProvider/CheckoutQueryClientProvider.d.ts.map +1 -1
  148. package/dist/CheckoutProvider/components/CheckoutQueryClientProvider/index.d.ts.map +1 -1
  149. package/dist/CheckoutProvider/components/CheckoutThemeProvider/CheckoutThemeProvider.d.ts.map +1 -1
  150. package/dist/CheckoutProvider/components/CheckoutThemeProvider/CheckoutThemeProvider.js +35 -36
  151. package/dist/CheckoutProvider/components/CheckoutThemeProvider/index.d.ts.map +1 -1
  152. package/dist/CheckoutProvider/index.d.ts.map +1 -1
  153. package/dist/CheckoutReviewCommentSection/CheckoutReviewCommentSection.d.ts.map +1 -1
  154. package/dist/CheckoutReviewCommentSection/index.d.ts.map +1 -1
  155. package/dist/CheckoutReviewItemsSection/CheckoutReviewItemsSection.d.ts.map +1 -1
  156. package/dist/CheckoutReviewItemsSection/index.d.ts.map +1 -1
  157. package/dist/CheckoutReviewOrderSection/CheckoutReviewOrderSection.d.ts.map +1 -1
  158. package/dist/CheckoutReviewOrderSection/index.d.ts.map +1 -1
  159. package/dist/CheckoutReviewPaymentSection/CheckoutReviewPaymentSection.d.ts.map +1 -1
  160. package/dist/CheckoutReviewPaymentSection/index.d.ts.map +1 -1
  161. package/dist/CheckoutReviewShippingSection/CheckoutReviewShippingSection.d.ts.map +1 -1
  162. package/dist/CheckoutReviewShippingSection/index.d.ts.map +1 -1
  163. package/dist/CheckoutReviewStep/CheckoutReviewStep.d.ts.map +1 -1
  164. package/dist/CheckoutReviewStep/index.d.ts.map +1 -1
  165. package/dist/CheckoutSection/CheckoutSection.d.ts.map +1 -1
  166. package/dist/CheckoutSection/index.d.ts.map +1 -1
  167. package/dist/CheckoutSectionHeader/CheckoutSectionHeader.d.ts.map +1 -1
  168. package/dist/CheckoutSectionHeader/index.d.ts.map +1 -1
  169. package/dist/CheckoutShippingAddressSection/CheckoutShippingAddressSection.d.ts.map +1 -1
  170. package/dist/CheckoutShippingAddressSection/index.d.ts.map +1 -1
  171. package/dist/CheckoutShippingMethodOption/CheckoutShippingMethodOption.d.ts.map +1 -1
  172. package/dist/CheckoutShippingMethodOption/index.d.ts.map +1 -1
  173. package/dist/CheckoutShippingMethodSection/CheckoutShippingMethodSection.d.ts.map +1 -1
  174. package/dist/CheckoutShippingMethodSection/index.d.ts.map +1 -1
  175. package/dist/CheckoutShippingMethodsField/CheckoutShippingMethodsField.d.ts.map +1 -1
  176. package/dist/CheckoutShippingMethodsField/index.d.ts.map +1 -1
  177. package/dist/CheckoutShippingStep/CheckoutShippingStep.d.ts.map +1 -1
  178. package/dist/CheckoutShippingStep/index.d.ts.map +1 -1
  179. package/dist/CheckoutSignIn/CheckoutSignIn.d.ts.map +1 -1
  180. package/dist/CheckoutSignIn/index.d.ts.map +1 -1
  181. package/dist/CheckoutSignInActions/CheckoutSignInActions.d.ts.map +1 -1
  182. package/dist/CheckoutSignInActions/index.d.ts.map +1 -1
  183. package/dist/CheckoutSignInForm/CheckoutSignInForm.d.ts.map +1 -1
  184. package/dist/CheckoutSignInForm/index.d.ts +1 -1
  185. package/dist/CheckoutSignInForm/index.d.ts.map +1 -1
  186. package/dist/CheckoutSignInForm/validationSchema.d.ts.map +1 -1
  187. package/dist/CheckoutSignedInAsMessage/CheckoutSignedInAsMessage.d.ts.map +1 -1
  188. package/dist/CheckoutSignedInAsMessage/index.d.ts.map +1 -1
  189. package/dist/CheckoutStateProvider/CheckoutStateProvider.d.ts.map +1 -1
  190. package/dist/CheckoutStateProvider/CheckoutStateProvider.js +2 -2
  191. package/dist/CheckoutStateProvider/index.d.ts.map +1 -1
  192. package/dist/CheckoutStepper/CheckoutStepper.d.ts.map +1 -1
  193. package/dist/CheckoutStepper/index.d.ts.map +1 -1
  194. package/dist/CheckoutStepperSkeleton/CheckoutStepperSkeleton.d.ts.map +1 -1
  195. package/dist/CheckoutStepperSkeleton/index.d.ts.map +1 -1
  196. package/dist/CheckoutSubmitButton/CheckoutSubmitButton.d.ts.map +1 -1
  197. package/dist/CheckoutSubmitButton/index.d.ts.map +1 -1
  198. package/dist/CheckoutSummary/CheckoutSummary.d.ts.map +1 -1
  199. package/dist/CheckoutSummary/components/CheckoutSummaryAdjustments/CheckoutSummaryAdjustments.d.ts.map +1 -1
  200. package/dist/CheckoutSummary/components/CheckoutSummaryAdjustments/index.d.ts.map +1 -1
  201. package/dist/CheckoutSummary/components/CheckoutSummaryAgreements/CheckoutSummaryAgreements.d.ts.map +1 -1
  202. package/dist/CheckoutSummary/components/CheckoutSummaryAgreements/index.d.ts.map +1 -1
  203. package/dist/CheckoutSummary/components/CheckoutSummaryCoupons/CheckoutSummaryCoupons.d.ts.map +1 -1
  204. package/dist/CheckoutSummary/components/CheckoutSummaryCoupons/index.d.ts.map +1 -1
  205. package/dist/CheckoutSummary/components/CheckoutSummaryFees/CheckoutSummaryFees.d.ts.map +1 -1
  206. package/dist/CheckoutSummary/components/CheckoutSummaryFees/CheckoutSummaryFees.js +24 -24
  207. package/dist/CheckoutSummary/components/CheckoutSummaryFees/index.d.ts.map +1 -1
  208. package/dist/CheckoutSummary/components/CheckoutSummaryGroup/CheckoutSummaryGroup.d.ts.map +1 -1
  209. package/dist/CheckoutSummary/components/CheckoutSummaryGroup/CheckoutSummaryGroup.js +3 -1
  210. package/dist/CheckoutSummary/components/CheckoutSummaryGroup/index.d.ts.map +1 -1
  211. package/dist/CheckoutSummary/components/CheckoutSummaryItems/CheckoutSummaryItems.d.ts.map +1 -1
  212. package/dist/CheckoutSummary/components/CheckoutSummaryItems/index.d.ts.map +1 -1
  213. package/dist/CheckoutSummary/components/CheckoutSummaryPaymentFees/CheckoutSummaryPaymentFees.d.ts.map +1 -1
  214. package/dist/CheckoutSummary/components/CheckoutSummaryPaymentFees/CheckoutSummaryPaymentFees.js +28 -20
  215. package/dist/CheckoutSummary/components/CheckoutSummaryPaymentFees/index.d.ts.map +1 -1
  216. package/dist/CheckoutSummary/components/CheckoutSummaryRow/CheckoutSummaryRow.d.ts.map +1 -1
  217. package/dist/CheckoutSummary/components/CheckoutSummaryRow/index.d.ts.map +1 -1
  218. package/dist/CheckoutSummary/components/CheckoutSummaryShippingFees/CheckoutSummaryShippingFees.d.ts.map +1 -1
  219. package/dist/CheckoutSummary/components/CheckoutSummaryShippingFees/CheckoutSummaryShippingFees.js +34 -24
  220. package/dist/CheckoutSummary/components/CheckoutSummaryShippingFees/index.d.ts.map +1 -1
  221. package/dist/CheckoutSummary/components/CheckoutSummarySubtotal/CheckoutSummarySubtotal.d.ts.map +1 -1
  222. package/dist/CheckoutSummary/components/CheckoutSummarySubtotal/index.d.ts.map +1 -1
  223. package/dist/CheckoutSummary/components/CheckoutSummaryTitle/CheckoutSummaryTitle.d.ts.map +1 -1
  224. package/dist/CheckoutSummary/components/CheckoutSummaryTitle/index.d.ts.map +1 -1
  225. package/dist/CheckoutSummary/components/CheckoutSummaryTotal/CheckoutSummaryTotal.d.ts.map +1 -1
  226. package/dist/CheckoutSummary/components/CheckoutSummaryTotal/index.d.ts.map +1 -1
  227. package/dist/CheckoutSummary/components/CheckoutSummaryTotalBreakdown/CheckoutSummaryTotalBreakdown.d.ts.map +1 -1
  228. package/dist/CheckoutSummary/components/CheckoutSummaryTotalBreakdown/CheckoutSummaryTotalBreakdown.js +54 -53
  229. package/dist/CheckoutSummary/components/CheckoutSummaryTotalBreakdown/index.d.ts.map +1 -1
  230. package/dist/CheckoutSummary/components/CheckoutSummaryTotalExcludingVat/CheckoutSummaryTotalExcludingVat.d.ts.map +1 -1
  231. package/dist/CheckoutSummary/components/CheckoutSummaryVat/CheckoutSummaryVat.d.ts.map +1 -1
  232. package/dist/CheckoutSummary/components/CheckoutSummaryVat/index.d.ts.map +1 -1
  233. package/dist/CheckoutSummary/index.d.ts.map +1 -1
  234. package/dist/CheckoutSummaryDrawer/CheckoutSummaryDrawer.d.ts.map +1 -1
  235. package/dist/CheckoutSummaryDrawer/CheckoutSummaryDrawer.styles.d.ts.map +1 -1
  236. package/dist/CheckoutSummaryDrawer/index.d.ts.map +1 -1
  237. package/dist/CheckoutSummarySkeleton/CheckoutSummarySkeleton.d.ts.map +1 -1
  238. package/dist/CheckoutSummarySkeleton/index.d.ts.map +1 -1
  239. package/dist/CheckoutSummaryToggleButton/CheckoutSummaryToggleButton.d.ts.map +1 -1
  240. package/dist/CheckoutSummaryToggleButton/index.d.ts.map +1 -1
  241. package/dist/CheckoutTerminalsField/CheckoutTerminalsField.d.ts.map +1 -1
  242. package/dist/CheckoutTerminalsField/index.d.ts.map +1 -1
  243. package/dist/CheckoutTermsAndPrivacyMessage/CheckoutTermsAndPrivacyMessage.d.ts.map +1 -1
  244. package/dist/CheckoutTermsAndPrivacyMessage/index.d.ts.map +1 -1
  245. package/dist/CheckoutTopBar/CheckoutTopBar.d.ts.map +1 -1
  246. package/dist/CheckoutTopBar/index.d.ts.map +1 -1
  247. package/dist/CheckoutTypeSection/CheckoutTypeSection.d.ts.map +1 -1
  248. package/dist/CheckoutTypeSection/index.d.ts.map +1 -1
  249. package/dist/constants/addressAutocomplete.d.ts.map +1 -1
  250. package/dist/constants/addressDefaultValues.d.ts.map +1 -1
  251. package/dist/constants/addressFields.d.ts.map +1 -1
  252. package/dist/constants/addressValidationSchema.d.ts.map +1 -1
  253. package/dist/constants/agreementTypeIconMapping.d.ts.map +1 -1
  254. package/dist/constants/analyticsEvents.d.ts +65 -21
  255. package/dist/constants/analyticsEvents.d.ts.map +1 -1
  256. package/dist/constants/analyticsEvents.js +153 -3
  257. package/dist/constants/carrierIconMapping.d.ts.map +1 -1
  258. package/dist/constants/expressPaymentMethods.d.ts.map +1 -1
  259. package/dist/constants/index.d.ts.map +1 -1
  260. package/dist/constants/issuerIconMapping.d.ts.map +1 -1
  261. package/dist/constants/paymentMethodIconMapping.d.ts.map +1 -1
  262. package/dist/constants/validationTranslations.d.ts.map +1 -1
  263. package/dist/fragments/CoreAddressFields.d.ts.map +1 -1
  264. package/dist/fragments/CoreAddressOptionsFields.d.ts.map +1 -1
  265. package/dist/fragments/CoreCartInitialCheckoutFields.d.ts.map +1 -1
  266. package/dist/fragments/CoreCartProjectionFields.d.ts +1 -1
  267. package/dist/fragments/CoreCartProjectionFields.d.ts.map +1 -1
  268. package/dist/fragments/CoreOrderInitialCheckoutFields.d.ts.map +1 -1
  269. package/dist/fragments/CoreOrderProjectionFields.d.ts +1 -1
  270. package/dist/fragments/CoreOrderProjectionFields.d.ts.map +1 -1
  271. package/dist/fragments/CorePhoneNumberFields.d.ts.map +1 -1
  272. package/dist/fragments/index.d.ts.map +1 -1
  273. package/dist/hooks/index.d.ts.map +1 -1
  274. package/dist/hooks/useCheckoutAccountSelection.d.ts.map +1 -1
  275. package/dist/hooks/useCheckoutAddressFieldFormats.d.ts.map +1 -1
  276. package/dist/hooks/useCheckoutAddressOptions.d.ts.map +1 -1
  277. package/dist/hooks/useCheckoutAnalytics.d.ts +1 -0
  278. package/dist/hooks/useCheckoutAnalytics.d.ts.map +1 -1
  279. package/dist/hooks/useCheckoutAnalytics.js +25 -19
  280. package/dist/hooks/useCheckoutAuth.d.ts +2 -0
  281. package/dist/hooks/useCheckoutAuth.d.ts.map +1 -1
  282. package/dist/hooks/useCheckoutAuth.js +40 -39
  283. package/dist/hooks/useCheckoutAutocompleteAddress.d.ts.map +1 -1
  284. package/dist/hooks/useCheckoutCart.d.ts +66 -37
  285. package/dist/hooks/useCheckoutCart.d.ts.map +1 -1
  286. package/dist/hooks/useCheckoutCart.js +131 -122
  287. package/dist/hooks/useCheckoutForm.d.ts +20 -3
  288. package/dist/hooks/useCheckoutForm.d.ts.map +1 -1
  289. package/dist/hooks/useCheckoutForm.js +55 -44
  290. package/dist/hooks/useCheckoutOrder.d.ts +67 -38
  291. package/dist/hooks/useCheckoutOrder.d.ts.map +1 -1
  292. package/dist/hooks/useCheckoutOrder.js +85 -72
  293. package/dist/hooks/useCheckoutPaymentMethods.d.ts.map +1 -1
  294. package/dist/hooks/useCheckoutPaymentStep.d.ts.map +1 -1
  295. package/dist/hooks/useCheckoutReviewStep.d.ts.map +1 -1
  296. package/dist/hooks/useCheckoutShippingMethods.d.ts.map +1 -1
  297. package/dist/hooks/useCheckoutState.d.ts.map +1 -1
  298. package/dist/hooks/useCheckoutSummary.d.ts.map +1 -1
  299. package/dist/icons/AngleDownRegular.d.ts.map +1 -1
  300. package/dist/icons/AngleRightLight.d.ts.map +1 -1
  301. package/dist/icons/AngleRightRegular.d.ts.map +1 -1
  302. package/dist/icons/CheckSolid.d.ts.map +1 -1
  303. package/dist/icons/LongArrowLeftSolid.d.ts.map +1 -1
  304. package/dist/icons/MinusSolid.d.ts.map +1 -1
  305. package/dist/icons/PayPalExpress.d.ts.map +1 -1
  306. package/dist/icons/PlusSolid.d.ts.map +1 -1
  307. package/dist/icons/SearchRegular.d.ts.map +1 -1
  308. package/dist/icons/ShoppingCartLight.d.ts.map +1 -1
  309. package/dist/icons/TimesLight.d.ts.map +1 -1
  310. package/dist/icons/TurnDownRightSolid.d.ts.map +1 -1
  311. package/dist/icons/carriers/Afosto.d.ts.map +1 -1
  312. package/dist/icons/carriers/Bpost.d.ts.map +1 -1
  313. package/dist/icons/carriers/Budbee.d.ts.map +1 -1
  314. package/dist/icons/carriers/Cycloon.d.ts.map +1 -1
  315. package/dist/icons/carriers/DeliveryMatch.d.ts.map +1 -1
  316. package/dist/icons/carriers/Dgo.d.ts.map +1 -1
  317. package/dist/icons/carriers/Dhl.d.ts.map +1 -1
  318. package/dist/icons/carriers/Dpd.d.ts.map +1 -1
  319. package/dist/icons/carriers/Fedex.d.ts.map +1 -1
  320. package/dist/icons/carriers/Gls.d.ts.map +1 -1
  321. package/dist/icons/carriers/MondialRelay.d.ts.map +1 -1
  322. package/dist/icons/carriers/Postnl.d.ts.map +1 -1
  323. package/dist/icons/carriers/Sendcloud.d.ts.map +1 -1
  324. package/dist/icons/carriers/Ups.d.ts.map +1 -1
  325. package/dist/icons/carriers/index.d.ts.map +1 -1
  326. package/dist/icons/index.d.ts.map +1 -1
  327. package/dist/icons/issuers/ABNAmro.d.ts.map +1 -1
  328. package/dist/icons/issuers/ASNBank.d.ts.map +1 -1
  329. package/dist/icons/issuers/Bunq.d.ts.map +1 -1
  330. package/dist/icons/issuers/Handelsbanken.d.ts.map +1 -1
  331. package/dist/icons/issuers/ING.d.ts.map +1 -1
  332. package/dist/icons/issuers/Knab.d.ts.map +1 -1
  333. package/dist/icons/issuers/Rabobank.d.ts.map +1 -1
  334. package/dist/icons/issuers/RegioBank.d.ts.map +1 -1
  335. package/dist/icons/issuers/Revolut.d.ts.map +1 -1
  336. package/dist/icons/issuers/SNSBank.d.ts.map +1 -1
  337. package/dist/icons/issuers/Triodos.d.ts.map +1 -1
  338. package/dist/icons/issuers/VanLanschot.d.ts.map +1 -1
  339. package/dist/icons/issuers/index.d.ts.map +1 -1
  340. package/dist/icons/paymentMethods/Afterpay.d.ts.map +1 -1
  341. package/dist/icons/paymentMethods/Alipay.d.ts.map +1 -1
  342. package/dist/icons/paymentMethods/Amex.d.ts.map +1 -1
  343. package/dist/icons/paymentMethods/ApplePay.d.ts.map +1 -1
  344. package/dist/icons/paymentMethods/Bacs.d.ts.map +1 -1
  345. package/dist/icons/paymentMethods/Bancontact.d.ts.map +1 -1
  346. package/dist/icons/paymentMethods/Bank.d.ts.map +1 -1
  347. package/dist/icons/paymentMethods/BankTransfer.d.ts.map +1 -1
  348. package/dist/icons/paymentMethods/Billink.d.ts.map +1 -1
  349. package/dist/icons/paymentMethods/CarteBleue.d.ts.map +1 -1
  350. package/dist/icons/paymentMethods/Cash.d.ts.map +1 -1
  351. package/dist/icons/paymentMethods/CashOnDelivery.d.ts.map +1 -1
  352. package/dist/icons/paymentMethods/CreditCard.d.ts.map +1 -1
  353. package/dist/icons/paymentMethods/DinersClub.d.ts.map +1 -1
  354. package/dist/icons/paymentMethods/Discover.d.ts.map +1 -1
  355. package/dist/icons/paymentMethods/DownPayment.d.ts.map +1 -1
  356. package/dist/icons/paymentMethods/EPSUberweisung.d.ts.map +1 -1
  357. package/dist/icons/paymentMethods/Fashioncheque.d.ts.map +1 -1
  358. package/dist/icons/paymentMethods/Giropay.d.ts.map +1 -1
  359. package/dist/icons/paymentMethods/GivaCard.d.ts.map +1 -1
  360. package/dist/icons/paymentMethods/GooglePay.d.ts.map +1 -1
  361. package/dist/icons/paymentMethods/Ideal.d.ts.map +1 -1
  362. package/dist/icons/paymentMethods/In3.d.ts.map +1 -1
  363. package/dist/icons/paymentMethods/Interac.d.ts.map +1 -1
  364. package/dist/icons/paymentMethods/Jcb.d.ts.map +1 -1
  365. package/dist/icons/paymentMethods/Klarna.d.ts.map +1 -1
  366. package/dist/icons/paymentMethods/Maestro.d.ts.map +1 -1
  367. package/dist/icons/paymentMethods/ManualCard.d.ts.map +1 -1
  368. package/dist/icons/paymentMethods/ManualGiftCard.d.ts.map +1 -1
  369. package/dist/icons/paymentMethods/Mastercard.d.ts.map +1 -1
  370. package/dist/icons/paymentMethods/Multibanco.d.ts.map +1 -1
  371. package/dist/icons/paymentMethods/OnAccount.d.ts.map +1 -1
  372. package/dist/icons/paymentMethods/PayLater.d.ts.map +1 -1
  373. package/dist/icons/paymentMethods/PayPal.d.ts.map +1 -1
  374. package/dist/icons/paymentMethods/Payconiq.d.ts.map +1 -1
  375. package/dist/icons/paymentMethods/Paysafe.d.ts.map +1 -1
  376. package/dist/icons/paymentMethods/Pin.d.ts.map +1 -1
  377. package/dist/icons/paymentMethods/PodiumCadeaukaart.d.ts.map +1 -1
  378. package/dist/icons/paymentMethods/Postepay.d.ts.map +1 -1
  379. package/dist/icons/paymentMethods/Przelewy24.d.ts.map +1 -1
  380. package/dist/icons/paymentMethods/Riverty.d.ts.map +1 -1
  381. package/dist/icons/paymentMethods/Sepa.d.ts.map +1 -1
  382. package/dist/icons/paymentMethods/Sofort.d.ts.map +1 -1
  383. package/dist/icons/paymentMethods/Spraypay.d.ts.map +1 -1
  384. package/dist/icons/paymentMethods/Twint.d.ts.map +1 -1
  385. package/dist/icons/paymentMethods/VVVCadeaukaart.d.ts.map +1 -1
  386. package/dist/icons/paymentMethods/Visa.d.ts.map +1 -1
  387. package/dist/icons/paymentMethods/Walley.d.ts.map +1 -1
  388. package/dist/icons/paymentMethods/WeChat.d.ts.map +1 -1
  389. package/dist/icons/paymentMethods/WebshopGiftcard.d.ts.map +1 -1
  390. package/dist/icons/paymentMethods/YourGift.d.ts.map +1 -1
  391. package/dist/icons/paymentMethods/Zip.d.ts.map +1 -1
  392. package/dist/icons/paymentMethods/index.d.ts.map +1 -1
  393. package/dist/index.d.ts +177 -88
  394. package/dist/index.d.ts.map +1 -1
  395. package/dist/index.js +502 -500
  396. package/dist/mutations/addCustomerCountryCodeToCart.d.ts.map +1 -1
  397. package/dist/mutations/addCustomerCountryCodeToOrder.d.ts.map +1 -1
  398. package/dist/mutations/addCustomerToCart.d.ts.map +1 -1
  399. package/dist/mutations/addCustomerToOrder.d.ts.map +1 -1
  400. package/dist/mutations/addInformationToCart.d.ts.map +1 -1
  401. package/dist/mutations/addInformationToOrder.d.ts.map +1 -1
  402. package/dist/mutations/addNoteToCart.d.ts.map +1 -1
  403. package/dist/mutations/addNoteToOrder.d.ts.map +1 -1
  404. package/dist/mutations/addPaymentMethodToCart.d.ts.map +1 -1
  405. package/dist/mutations/addPaymentMethodToOrder.d.ts.map +1 -1
  406. package/dist/mutations/addPickupPointToCart.d.ts.map +1 -1
  407. package/dist/mutations/addPickupPointToOrder.d.ts.map +1 -1
  408. package/dist/mutations/addShippingMethodToCart.d.ts +10 -0
  409. package/dist/mutations/addShippingMethodToCart.d.ts.map +1 -1
  410. package/dist/mutations/addShippingMethodToCart.js +12 -2
  411. package/dist/mutations/addShippingMethodToOrder.d.ts +10 -0
  412. package/dist/mutations/addShippingMethodToOrder.d.ts.map +1 -1
  413. package/dist/mutations/addShippingMethodToOrder.js +15 -5
  414. package/dist/mutations/index.d.ts.map +1 -1
  415. package/dist/mutations/initialAddCustomerToCart.d.ts.map +1 -1
  416. package/dist/mutations/initialAddCustomerToOrder.d.ts.map +1 -1
  417. package/dist/mutations/setAgreementTemplateForCart.d.ts.map +1 -1
  418. package/dist/mutations/setAgreementTemplateForOrder.d.ts.map +1 -1
  419. package/dist/operations/authOperations.d.ts.map +1 -1
  420. package/dist/operations/authOperations.js +10 -2
  421. package/dist/operations/cartOperations.d.ts.map +1 -1
  422. package/dist/operations/cartOperations.js +141 -128
  423. package/dist/operations/index.d.ts.map +1 -1
  424. package/dist/operations/orderOperations.d.ts.map +1 -1
  425. package/dist/operations/orderOperations.js +241 -225
  426. package/dist/queries/getCartInitialCheckoutDataQuery.d.ts.map +1 -1
  427. package/dist/queries/getCartInitialPaymentStepQuery.d.ts.map +1 -1
  428. package/dist/queries/getCartPaymentMethodsQuery.d.ts.map +1 -1
  429. package/dist/queries/getCartPickupPointsQuery.d.ts.map +1 -1
  430. package/dist/queries/getCartReviewCheckoutDataQuery.d.ts.map +1 -1
  431. package/dist/queries/getCartShippingMethodsQuery.d.ts.map +1 -1
  432. package/dist/queries/getOrderInitialCheckoutDataQuery.d.ts.map +1 -1
  433. package/dist/queries/getOrderInitialPaymentStepQuery.d.ts.map +1 -1
  434. package/dist/queries/getOrderPaymentMethodsQuery.d.ts.map +1 -1
  435. package/dist/queries/getOrderPickupPointsQuery.d.ts.map +1 -1
  436. package/dist/queries/getOrderProceedingOptionsQuery.d.ts.map +1 -1
  437. package/dist/queries/getOrderReviewCheckoutDataQuery.d.ts.map +1 -1
  438. package/dist/queries/getOrderShippingMethodsQuery.d.ts.map +1 -1
  439. package/dist/queries/index.d.ts.map +1 -1
  440. package/dist/steps/index.d.ts.map +1 -1
  441. package/dist/steps/informationStep.d.ts +1 -0
  442. package/dist/steps/informationStep.d.ts.map +1 -1
  443. package/dist/steps/informationStep.js +96 -94
  444. package/dist/steps/paymentStep.d.ts.map +1 -1
  445. package/dist/steps/paymentStep.js +1 -1
  446. package/dist/steps/reviewStep.d.ts.map +1 -1
  447. package/dist/steps/shippingStep.d.ts.map +1 -1
  448. package/dist/steps/shippingStep.js +1 -1
  449. package/dist/types.d.ts +30 -2
  450. package/dist/types.d.ts.map +1 -1
  451. package/dist/utils/calculateBreakpointsForAddressFields.d.ts.map +1 -1
  452. package/dist/utils/canEditInformation.d.ts.map +1 -1
  453. package/dist/utils/colorManipulator.d.ts +15 -15
  454. package/dist/utils/colorManipulator.d.ts.map +1 -1
  455. package/dist/utils/colorManipulator.js +86 -75
  456. package/dist/utils/createAddressValidationSchema.d.ts.map +1 -1
  457. package/dist/utils/createSummary.d.ts.map +1 -1
  458. package/dist/utils/deepMerge.d.ts.map +1 -1
  459. package/dist/utils/formatAddressOptionsRules.d.ts.map +1 -1
  460. package/dist/utils/formatAddressPayload.d.ts.map +1 -1
  461. package/dist/utils/formatAddressResponse.d.ts.map +1 -1
  462. package/dist/utils/formatDistance.d.ts.map +1 -1
  463. package/dist/utils/formatEcommerceDataLayerItems.d.ts +11 -0
  464. package/dist/utils/formatEcommerceDataLayerItems.d.ts.map +1 -0
  465. package/dist/utils/formatEcommerceDataLayerItems.js +26 -0
  466. package/dist/utils/formatInformationStepPayload.d.ts.map +1 -1
  467. package/dist/utils/formatUpdateAccountInformationPayload.d.ts.map +1 -1
  468. package/dist/utils/formatUpdateOrganisationOnAccountPayload.d.ts.map +1 -1
  469. package/dist/utils/getAutocompletedAddress.d.ts +1 -1
  470. package/dist/utils/getAutocompletedAddress.d.ts.map +1 -1
  471. package/dist/utils/getErrorMessage.d.ts.map +1 -1
  472. package/dist/utils/getFullName.d.ts.map +1 -1
  473. package/dist/utils/getReviewStepTarget.d.ts.map +1 -1
  474. package/dist/utils/getShortLocale.d.ts.map +1 -1
  475. package/dist/utils/getValidationErrorMessage.d.ts.map +1 -1
  476. package/dist/utils/getValueKeysFromString.d.ts.map +1 -1
  477. package/dist/utils/index.d.ts +6 -0
  478. package/dist/utils/index.d.ts.map +1 -1
  479. package/dist/utils/replaceElementsInString.d.ts.map +1 -1
  480. package/dist/utils/replaceValuesInString.d.ts.map +1 -1
  481. package/dist/utils/resolveSlotProps.d.ts.map +1 -1
  482. package/dist/utils/setupCustomValidationRules.d.ts.map +1 -1
  483. package/package.json +5 -105
@@ -1,135 +1,142 @@
1
- import { getOrderInitialCheckoutDataQuery as k } from "../queries/getOrderInitialCheckoutDataQuery.js";
2
- import { getOrderInitialPaymentStepQuery as I } from "../queries/getOrderInitialPaymentStepQuery.js";
3
- import { initialAddCustomerToOrderMutation as b } from "../mutations/initialAddCustomerToOrder.js";
4
- import { addCustomerToOrderMutation as v } from "../mutations/addCustomerToOrder.js";
5
- import { addCustomerCountryCodeToOrderMutation as w } from "../mutations/addCustomerCountryCodeToOrder.js";
6
- import { addInformationToOrderMutation as Q } from "../mutations/addInformationToOrder.js";
7
- import { addNoteToOrderMutation as E } from "../mutations/addNoteToOrder.js";
8
- import { addPaymentMethodToOrderMutation as B } from "../mutations/addPaymentMethodToOrder.js";
9
- import { addPickupPointToOrderMutation as N } from "../mutations/addPickupPointToOrder.js";
10
- import { addShippingMethodToOrderMutation as x } from "../mutations/addShippingMethodToOrder.js";
11
- import { getOrderPaymentMethodsQuery as G } from "../queries/getOrderPaymentMethodsQuery.js";
12
- import { getOrderPickupPointsQuery as U } from "../queries/getOrderPickupPointsQuery.js";
13
- import { getOrderReviewCheckoutDataQuery as V } from "../queries/getOrderReviewCheckoutDataQuery.js";
14
- import { getOrderShippingMethodsQuery as H } from "../queries/getOrderShippingMethodsQuery.js";
15
- import { getOrderProceedingOptionsQuery as j } from "../queries/getOrderProceedingOptionsQuery.js";
16
- import { setAgreementTemplateForOrderMutation as z } from "../mutations/setAgreementTemplateForOrder.js";
17
- import { createSummary as c } from "../utils/createSummary.js";
18
- import { createAddressValidationSchema as D } from "../utils/createAddressValidationSchema.js";
19
- import { formatAddressOptionsRules as F } from "../utils/formatAddressOptionsRules.js";
20
- import { isDefined as T } from "@afosto/utils";
21
- const mr = {
1
+ import { getOrderInitialCheckoutDataQuery as b } from "../queries/getOrderInitialCheckoutDataQuery.js";
2
+ import { getOrderInitialPaymentStepQuery as v } from "../queries/getOrderInitialPaymentStepQuery.js";
3
+ import { initialAddCustomerToOrderMutation as w } from "../mutations/initialAddCustomerToOrder.js";
4
+ import { addCustomerToOrderMutation as Q } from "../mutations/addCustomerToOrder.js";
5
+ import { addCustomerCountryCodeToOrderMutation as E } from "../mutations/addCustomerCountryCodeToOrder.js";
6
+ import { addInformationToOrderMutation as B } from "../mutations/addInformationToOrder.js";
7
+ import { addNoteToOrderMutation as N } from "../mutations/addNoteToOrder.js";
8
+ import { addPaymentMethodToOrderMutation as x } from "../mutations/addPaymentMethodToOrder.js";
9
+ import { addPickupPointToOrderMutation as G } from "../mutations/addPickupPointToOrder.js";
10
+ import { addShippingMethodToOrderMutation as U } from "../mutations/addShippingMethodToOrder.js";
11
+ import { getOrderPaymentMethodsQuery as V } from "../queries/getOrderPaymentMethodsQuery.js";
12
+ import { getOrderPickupPointsQuery as H } from "../queries/getOrderPickupPointsQuery.js";
13
+ import { getOrderReviewCheckoutDataQuery as j } from "../queries/getOrderReviewCheckoutDataQuery.js";
14
+ import { getOrderShippingMethodsQuery as z } from "../queries/getOrderShippingMethodsQuery.js";
15
+ import { getOrderProceedingOptionsQuery as J } from "../queries/getOrderProceedingOptionsQuery.js";
16
+ import { setAgreementTemplateForOrderMutation as K } from "../mutations/setAgreementTemplateForOrder.js";
17
+ import { createAddressValidationSchema as M } from "../utils/createAddressValidationSchema.js";
18
+ import { formatAddressOptionsRules as D } from "../utils/formatAddressOptionsRules.js";
19
+ import { isDefined as k } from "@afosto/utils";
20
+ const pe = {
22
21
  initial: {
23
- queryFn: async ({ id: e }, r) => {
24
- const { storefront: t } = r || {};
25
- return t.query(k, { id: e });
22
+ queryFn: async ({ id: r }, e) => {
23
+ const { storefront: t } = e || {};
24
+ return t.query(b, { id: r });
26
25
  },
27
- formatter: async (e, r) => {
26
+ formatter: async (r, e) => {
28
27
  const {
29
28
  getAccountInformation: t,
30
29
  getUser: o,
31
30
  isSignedIn: s,
32
31
  operations: n,
33
- settings: u
34
- } = r || {}, { isAccountEnabled: q, isB2bExcluded: P, isSharedOrganisationRequired: m } = u || {}, {
32
+ settings: i
33
+ } = e || {}, { isAccountEnabled: d, isB2bExcluded: O, isSharedOrganisationRequired: h } = i || {}, {
35
34
  order: g,
36
- addressOptions: C,
37
- ...A
38
- } = e || {};
39
- let p = null, i = g, d = !1;
40
- const { contact: y, organisation: h } = g?.customer || {};
41
- if (q) {
35
+ addressOptions: S,
36
+ ...q
37
+ } = r || {};
38
+ let l = null, c = g, m = !1;
39
+ const { contact: p, organisation: y } = g?.customer || {};
40
+ if (d) {
42
41
  const a = o();
43
42
  if (s && a) {
44
- let f = h?.id;
45
- if (a.organisation?.id && a.organisation?.id !== f && (f = a.organisation?.id), a.id !== y?.id || f !== h?.id) {
46
- const S = await n.initialAddCustomer.queryFn(
43
+ let f = y?.id;
44
+ if (a.organisation?.id && a.organisation?.id !== f && (f = a.organisation?.id), a.id !== p?.id || f !== y?.id) {
45
+ const u = await n.initialAddCustomer.queryFn(
47
46
  {
48
- orderId: i.id,
47
+ orderId: c.id,
49
48
  customer: {
50
49
  contactId: a.id,
51
50
  ...f ? { organisationId: f } : {}
52
51
  }
53
52
  },
54
- r
53
+ e
55
54
  );
56
- i = (await n.initialAddCustomer.formatter(
57
- S,
58
- r
59
- ))?.order, d = !0;
55
+ c = (await n.initialAddCustomer.formatter(
56
+ u,
57
+ e
58
+ ))?.order, m = !0;
60
59
  }
61
- if (p = await t().catch(() => null), !m && !P && !a.organisation?.id && !h?.id) {
62
- const [S] = p?.organisations || [];
63
- S && (i.customer.organisation = S);
60
+ if (l = await t().catch(() => null), !h && !O && !a.organisation?.id && !y?.id) {
61
+ const [u] = l?.organisations || [];
62
+ u && (c.customer.organisation = u);
64
63
  }
65
- m && !a?.organisation?.id && (d = !0);
66
- } else !s && (m || y && !y.isGuest) && (d = !0);
64
+ h && !a?.organisation?.id && (m = !0);
65
+ } else !s && (h || p && !p.isGuest) && (m = !0);
67
66
  }
68
- const { shipping: M } = i?.options || {}, l = M?.countries || [], O = (i?.payments || []).find(
67
+ const { shipping: R } = c?.options || {}, C = R?.countries || [], P = (c?.payments || []).find(
69
68
  (a) => !!a.details?.express
70
69
  );
71
70
  return {
72
- ...A,
73
- account: p,
74
- addressOptions: C,
75
- availableShippingCountryCodes: l,
76
- expressPayment: O,
77
- order: i,
78
- skipCheckCompletedSteps: d
71
+ ...q,
72
+ account: l,
73
+ addressOptions: S,
74
+ availableShippingCountryCodes: C,
75
+ expressPayment: P,
76
+ order: c,
77
+ skipCheckCompletedSteps: m
79
78
  };
80
79
  },
81
- success: (e, r) => {
80
+ success: (r, e) => {
82
81
  const {
83
- getUser: t,
84
- isSignedIn: o,
85
- setBillingAddressValidationSchema: s,
86
- setCurrentOrganisation: n,
87
- setHasSharedOrganisations: u,
88
- setSessionExpired: q,
89
- setShippingAddressValidationSchema: P,
90
- setShowAccountSelection: m,
91
- setShowSignIn: g,
92
- setSummary: C,
93
- settings: A
94
- } = r || {}, { isAccountEnabled: p, isB2bExcluded: i, isSharedOrganisationRequired: d } = A || {}, y = t(), {
95
- account: h,
96
- addressOptions: M,
97
- order: l
98
- } = e || {}, { contact: O } = l?.customer || {};
99
- C(c(l || {}));
82
+ createSummary: t,
83
+ getUser: o,
84
+ isSignedIn: s,
85
+ setBillingAddressValidationSchema: n,
86
+ setCurrentOrganisation: i,
87
+ setHasSharedOrganisations: d,
88
+ setSessionExpired: O,
89
+ setShippingAddressValidationSchema: h,
90
+ setShowAccountSelection: g,
91
+ setShowSignIn: S,
92
+ setSummary: q,
93
+ settings: l,
94
+ track: c
95
+ } = e || {}, { isAccountEnabled: m, isB2bExcluded: p, isSharedOrganisationRequired: y } = l || {}, R = o(), {
96
+ account: C,
97
+ addressOptions: P,
98
+ order: a,
99
+ ...f
100
+ } = r || {}, { contact: u } = a?.customer || {};
101
+ q(t(a || {}));
100
102
  try {
101
- const { options: a } = l?.billing?.address || {}, { options: f } = l?.delivery?.address || {}, S = F(
102
- a ?? M
103
- ), R = F(
104
- f ?? M
103
+ const { options: A } = a?.billing?.address || {}, { options: F } = a?.delivery?.address || {}, T = D(
104
+ A ?? P
105
+ ), I = D(
106
+ F ?? P
105
107
  );
106
- s(
107
- D(S)
108
- ), P(
109
- D(R)
108
+ n(
109
+ M(T)
110
+ ), h(
111
+ M(I)
110
112
  );
111
113
  } catch {
112
114
  }
113
- i || n(l?.customer?.organisation || null), !i && (h?.sharedOrganisations || []).length > 0 && u(!0), o && d && !y?.organisation?.id && m(!0), p && !o && (d || O && !O?.isGuest) && (q(!!O && !O?.isGuest), g(!0));
115
+ p || i(a?.customer?.organisation || null), !p && (C?.sharedOrganisations || []).length > 0 && d(!0), s && y && !R?.organisation?.id && g(!0), m && !s && (y || u && !u?.isGuest) && (O(!!u && !u?.isGuest), S(!0)), c("beginCheckout", {
116
+ ...f,
117
+ ...a,
118
+ account: C,
119
+ addressOptions: P
120
+ });
114
121
  },
115
122
  error: () => {
116
123
  }
117
124
  },
118
125
  initialAddCustomer: {
119
- queryFn: async ({ orderId: e, customer: r }, t) => {
126
+ queryFn: async ({ orderId: r, customer: e }, t) => {
120
127
  const { storefront: o } = t || {};
121
- return o.query(b, {
128
+ return o.query(w, {
122
129
  addCustomerToOrderPayload: {
123
- orderId: e,
124
- customer: r
130
+ orderId: r,
131
+ customer: e
125
132
  }
126
133
  });
127
134
  },
128
- formatter: (e) => {
129
- const { order: r, ...t } = e?.addCustomerToOrder || {};
135
+ formatter: (r) => {
136
+ const { order: e, ...t } = r?.addCustomerToOrder || {};
130
137
  return {
131
138
  ...t,
132
- order: r
139
+ order: e
133
140
  };
134
141
  },
135
142
  success: () => {
@@ -138,15 +145,15 @@ const mr = {
138
145
  }
139
146
  },
140
147
  initialPaymentStep: {
141
- queryFn: async ({ id: e }, r) => {
142
- const { storefront: t } = r || {};
143
- return t.query(I, { id: e });
148
+ queryFn: async ({ id: r }, e) => {
149
+ const { storefront: t } = e || {};
150
+ return t.query(v, { id: r });
144
151
  },
145
- formatter: (e) => {
146
- const { order: r, ...t } = e || {}, o = r?.options?.payment?.agreements || [], s = r?.checkout?.agreement || null, n = r?.options?.payment?.methods || [];
152
+ formatter: (r) => {
153
+ const { order: e, ...t } = r || {}, o = e?.options?.payment?.agreements || [], s = e?.checkout?.agreement || null, n = e?.options?.payment?.methods || [];
147
154
  return {
148
155
  ...t,
149
- order: r,
156
+ order: e,
150
157
  agreementOptions: o,
151
158
  agreementTemplate: s,
152
159
  paymentMethods: n
@@ -158,112 +165,112 @@ const mr = {
158
165
  }
159
166
  },
160
167
  addCustomer: {
161
- queryFn: async ({ orderId: e, customer: r }, t) => {
168
+ queryFn: async ({ orderId: r, customer: e }, t) => {
162
169
  const { storefront: o } = t || {};
163
- return o.query(v, {
170
+ return o.query(Q, {
164
171
  addCustomerToOrderPayload: {
165
- orderId: e,
166
- customer: r
172
+ orderId: r,
173
+ customer: e
167
174
  }
168
175
  });
169
176
  },
170
- formatter: (e) => {
171
- const { order: r, ...t } = e?.addCustomerToOrder || {};
177
+ formatter: (r) => {
178
+ const { order: e, ...t } = r?.addCustomerToOrder || {};
172
179
  return {
173
180
  ...t,
174
- order: r
181
+ order: e
175
182
  };
176
183
  },
177
- success: (e, r) => {
178
- const { setSummary: t } = r || {}, o = c(e.order || {});
179
- t(o || {});
184
+ success: (r, e) => {
185
+ const { createSummary: t, setSummary: o } = e || {}, s = t(r.order || {});
186
+ o(s || {});
180
187
  },
181
188
  error: () => {
182
189
  }
183
190
  },
184
191
  addCustomerCountryCode: {
185
- queryFn: async ({ orderId: e, countryCode: r }, t) => {
192
+ queryFn: async ({ orderId: r, countryCode: e }, t) => {
186
193
  const { storefront: o } = t || {};
187
- return o.query(w, {
194
+ return o.query(E, {
188
195
  countryCodePayload: {
189
- orderId: e,
190
- countryCode: r
196
+ orderId: r,
197
+ countryCode: e
191
198
  }
192
199
  });
193
200
  },
194
- formatter: (e) => {
195
- const { order: r, ...t } = e?.setCountryCodeForOrder || {};
201
+ formatter: (r) => {
202
+ const { order: e, ...t } = r?.setCountryCodeForOrder || {};
196
203
  return {
197
204
  ...t,
198
- order: r
205
+ order: e
199
206
  };
200
207
  },
201
- success: (e, r) => {
202
- const { setSummary: t } = r || {}, o = c(e.order || {});
203
- t(o || {});
208
+ success: (r, e) => {
209
+ const { createSummary: t, setSummary: o } = e || {}, s = t(r.order || {});
210
+ o(s || {});
204
211
  },
205
212
  error: () => {
206
213
  }
207
214
  },
208
215
  addInformation: {
209
- queryFn: async ({ orderId: e, billingAddress: r, customer: t, phoneNumber: o, shippingAddress: s }, n) => {
210
- const { storefront: u } = n || {};
211
- return u.query(
212
- Q({
213
- addPhoneNumber: T(o)
216
+ queryFn: async ({ orderId: r, billingAddress: e, customer: t, phoneNumber: o, shippingAddress: s }, n) => {
217
+ const { storefront: i } = n || {};
218
+ return i.query(
219
+ B({
220
+ addPhoneNumber: k(o)
214
221
  }),
215
222
  {
216
223
  customerInput: {
217
- orderId: e,
224
+ orderId: r,
218
225
  customer: t
219
226
  },
220
- ...T(o) ? {
227
+ ...k(o) ? {
221
228
  phoneNumberInput: {
222
- orderId: e,
229
+ orderId: r,
223
230
  phoneNumber: o
224
231
  }
225
232
  } : {},
226
233
  billingAddressInput: {
227
- orderId: e,
228
- address: r
234
+ orderId: r,
235
+ address: e
229
236
  },
230
237
  shippingAddressInput: {
231
- orderId: e,
238
+ orderId: r,
232
239
  address: s,
233
240
  type: "ADDRESS"
234
241
  }
235
242
  }
236
243
  );
237
244
  },
238
- formatter: (e) => {
239
- const { order: r, ...t } = e?.addBillingAddressToOrder || {};
245
+ formatter: (r) => {
246
+ const { order: e, ...t } = r?.addBillingAddressToOrder || {};
240
247
  return {
241
248
  ...t,
242
- order: r
249
+ order: e
243
250
  };
244
251
  },
245
- success: (e, r) => {
246
- const { setSummary: t } = r || {}, o = c(e.order || {});
247
- t(o || {});
252
+ success: (r, e) => {
253
+ const { createSummary: t, setSummary: o } = e || {}, s = t(r.order || {});
254
+ o(s || {});
248
255
  },
249
256
  error: () => {
250
257
  }
251
258
  },
252
259
  addNote: {
253
- queryFn: async ({ orderId: e, note: r }, t) => {
260
+ queryFn: async ({ orderId: r, note: e }, t) => {
254
261
  const { storefront: o } = t || {};
255
- return o.query(E, {
262
+ return o.query(N, {
256
263
  notePayload: {
257
- orderId: e,
258
- note: r
264
+ orderId: r,
265
+ note: e
259
266
  }
260
267
  });
261
268
  },
262
- formatter: (e) => {
263
- const { order: r, ...t } = e?.setNoteForOrder || {};
269
+ formatter: (r) => {
270
+ const { order: e, ...t } = r?.setNoteForOrder || {};
264
271
  return {
265
272
  ...t,
266
- order: r
273
+ order: e
267
274
  };
268
275
  },
269
276
  success: () => {
@@ -272,89 +279,98 @@ const mr = {
272
279
  }
273
280
  },
274
281
  addPaymentMethod: {
275
- queryFn: async ({ orderId: e, methodId: r, issuerId: t, terminalId: o }, s) => {
282
+ queryFn: async ({ orderId: r, methodId: e, issuerId: t, terminalId: o }, s) => {
276
283
  const { storefront: n } = s || {};
277
- return n.query(B, {
284
+ return n.query(x, {
278
285
  paymentMethodPayload: {
279
- orderId: e,
280
- methodId: r,
286
+ orderId: r,
287
+ methodId: e,
281
288
  issuerId: t || "",
282
289
  terminalId: o || ""
283
290
  }
284
291
  });
285
292
  },
286
- formatter: (e) => {
287
- const { order: r, ...t } = e?.addPaymentMethodToOrder || {};
293
+ formatter: (r) => {
294
+ const { order: e, ...t } = r?.addPaymentMethodToOrder || {};
288
295
  return {
289
296
  ...t,
290
- order: r
297
+ order: e
291
298
  };
292
299
  },
293
- success: (e, r) => {
294
- const { setSummary: t } = r || {}, o = c(e.order || {});
295
- t(o || {});
300
+ success: (r, e) => {
301
+ const { createSummary: t, setSummary: o, track: s } = e || {}, { order: n, ...i } = r || {}, d = t(r.order || {});
302
+ o(d || {}), s("addPaymentInfo", {
303
+ ...i,
304
+ ...n
305
+ });
296
306
  },
297
307
  error: () => {
298
308
  }
299
309
  },
300
310
  addPickupPoint: {
301
- queryFn: async ({ orderId: e, pickupPointId: r }, t) => {
311
+ queryFn: async ({ orderId: r, pickupPointId: e }, t) => {
302
312
  const { storefront: o } = t || {};
303
- return o.query(N, {
313
+ return o.query(G, {
304
314
  pickupPointPayload: {
305
- orderId: e,
306
- spid: r
315
+ orderId: r,
316
+ spid: e
307
317
  }
308
318
  });
309
319
  },
310
- formatter: (e) => {
311
- const { order: r, ...t } = e?.addPickUpPointToOrder || {};
320
+ formatter: (r) => {
321
+ const { order: e, ...t } = r?.addPickUpPointToOrder || {};
312
322
  return {
313
323
  ...t,
314
- order: r
324
+ order: e
315
325
  };
316
326
  },
317
- success: (e, r) => {
318
- const { setSummary: t } = r || {}, o = c(e.order || {});
319
- t(o || {});
327
+ success: (r, e) => {
328
+ const { createSummary: t, setSummary: o, track: s } = e || {}, { order: n, ...i } = r || {}, d = t(r.order || {});
329
+ o(d || {}), s("addShippingInfo", {
330
+ ...i,
331
+ ...n
332
+ });
320
333
  },
321
334
  error: () => {
322
335
  }
323
336
  },
324
337
  addShippingMethod: {
325
- queryFn: async ({ orderId: e, methodId: r }, t) => {
338
+ queryFn: async ({ orderId: r, methodId: e }, t) => {
326
339
  const { storefront: o } = t || {};
327
- return o.query(x, {
340
+ return o.query(U, {
328
341
  shippingMethodPayload: {
329
- orderId: e,
330
- methodId: r
342
+ orderId: r,
343
+ methodId: e
331
344
  }
332
345
  });
333
346
  },
334
- formatter: (e) => {
335
- const { order: r, ...t } = e?.addShippingMethodToOrder || {};
347
+ formatter: (r) => {
348
+ const { order: e, ...t } = r?.addShippingMethodToOrder || {};
336
349
  return {
337
350
  ...t,
338
- order: r
351
+ order: e
339
352
  };
340
353
  },
341
- success: (e, r) => {
342
- const { setSummary: t } = r || {}, o = c(e.order || {});
343
- t(o || {});
354
+ success: (r, e) => {
355
+ const { createSummary: t, setSummary: o, track: s } = e || {}, { order: n, ...i } = r || {}, d = t(r.order || {});
356
+ o(d || {}), s("addShippingInfo", {
357
+ ...i,
358
+ ...n
359
+ });
344
360
  },
345
361
  error: () => {
346
362
  }
347
363
  },
348
364
  checkout: {
349
- queryFn: async ({ id: e }, r) => {
350
- const { storefront: t } = r || {};
351
- return t.query(j, { id: e });
365
+ queryFn: async ({ id: r }, e) => {
366
+ const { storefront: t } = e || {};
367
+ return t.query(J, { id: r });
352
368
  },
353
- formatter: (e) => {
354
- const { order: r, ...t } = e || {};
369
+ formatter: (r) => {
370
+ const { order: e, ...t } = r || {};
355
371
  return {
356
372
  ...t,
357
- order: r
373
+ order: e
358
374
  };
359
375
  },
360
376
  success: () => {
@@ -363,15 +379,15 @@ const mr = {
363
379
  }
364
380
  },
365
381
  getPaymentMethods: {
366
- queryFn: async ({ id: e }, r) => {
367
- const { storefront: t } = r || {};
368
- return t.query(G, { id: e });
382
+ queryFn: async ({ id: r }, e) => {
383
+ const { storefront: t } = e || {};
384
+ return t.query(V, { id: r });
369
385
  },
370
- formatter: (e) => {
371
- const { order: r, ...t } = e || {}, o = r?.billing?.payment?.method || null, s = r?.options?.payment?.methods || [], n = r?.payments || [];
386
+ formatter: (r) => {
387
+ const { order: e, ...t } = r || {}, o = e?.billing?.payment?.method || null, s = e?.options?.payment?.methods || [], n = e?.payments || [];
372
388
  return {
373
389
  ...t,
374
- order: r,
390
+ order: e,
375
391
  currentPaymentMethod: o,
376
392
  paymentMethods: s,
377
393
  payments: n
@@ -383,16 +399,16 @@ const mr = {
383
399
  }
384
400
  },
385
401
  getPickupPoints: {
386
- queryFn: async ({ id: e, countryCode: r, postalCode: t }, o) => {
402
+ queryFn: async ({ id: r, countryCode: e, postalCode: t }, o) => {
387
403
  const { storefront: s } = o || {};
388
- return s.query(U, {
389
- id: e,
390
- countryCode: r,
404
+ return s.query(H, {
405
+ id: r,
406
+ countryCode: e,
391
407
  postalCode: t
392
408
  });
393
409
  },
394
- formatter: (e) => {
395
- const { order: r, ...t } = e || {}, o = r?.delivery?.method?.pickupPoints || [];
410
+ formatter: (r) => {
411
+ const { order: e, ...t } = r || {}, o = e?.delivery?.method?.pickupPoints || [];
396
412
  return {
397
413
  ...t,
398
414
  pickupPoints: o
@@ -404,34 +420,34 @@ const mr = {
404
420
  }
405
421
  },
406
422
  getReviewCheckoutData: {
407
- queryFn: async ({ id: e }, r) => {
408
- const { storefront: t } = r || {};
409
- return t.query(V, { id: e });
410
- },
411
- formatter: (e) => {
412
- const { order: r, ...t } = e || {}, { agreements: o = [] } = r?.acceptance || {}, s = r?.checkout?.agreement || null, { contact: n, notes: u = "", organisation: q } = r?.customer || {}, { address: P, payment: m } = r?.billing || {}, { issuer: g, method: C } = m || {}, A = r?.phoneNumber || null, {
413
- address: p,
414
- method: i,
415
- pickupPoint: d
416
- } = r?.delivery || {}, y = r?.currency, h = r?.items || [];
423
+ queryFn: async ({ id: r }, e) => {
424
+ const { storefront: t } = e || {};
425
+ return t.query(j, { id: r });
426
+ },
427
+ formatter: (r) => {
428
+ const { order: e, ...t } = r || {}, { agreements: o = [] } = e?.acceptance || {}, s = e?.checkout?.agreement || null, { contact: n, notes: i = "", organisation: d } = e?.customer || {}, { address: O, payment: h } = e?.billing || {}, { issuer: g, method: S } = h || {}, q = e?.phoneNumber || null, {
429
+ address: l,
430
+ method: c,
431
+ pickupPoint: m
432
+ } = e?.delivery || {}, p = e?.currency, y = e?.items || [];
417
433
  return {
418
434
  ...t,
419
- order: r,
435
+ order: e,
420
436
  agreements: o,
421
437
  agreementTemplate: s,
422
438
  amountCovered: 0,
423
- billingAddress: P,
439
+ billingAddress: O,
424
440
  contact: n,
425
- currency: y,
441
+ currency: p,
426
442
  issuer: g,
427
- items: h,
428
- notes: u,
429
- organisation: q,
430
- paymentMethod: C,
431
- phoneNumber: A,
432
- pickupPoint: d,
433
- shippingAddress: p,
434
- shippingMethod: i
443
+ items: y,
444
+ notes: i,
445
+ organisation: d,
446
+ paymentMethod: S,
447
+ phoneNumber: q,
448
+ pickupPoint: m,
449
+ shippingAddress: l,
450
+ shippingMethod: c
435
451
  };
436
452
  },
437
453
  success: () => {
@@ -440,19 +456,19 @@ const mr = {
440
456
  }
441
457
  },
442
458
  getShippingMethods: {
443
- queryFn: async ({ id: e, countryCode: r, postalCode: t }, o) => {
459
+ queryFn: async ({ id: r, countryCode: e, postalCode: t }, o) => {
444
460
  const { storefront: s } = o || {};
445
- return s.query(H, {
446
- id: e,
447
- countryCode: r,
461
+ return s.query(z, {
462
+ id: r,
463
+ countryCode: e,
448
464
  postalCode: t
449
465
  });
450
466
  },
451
- formatter: (e) => {
452
- const { order: r, ...t } = e || {}, o = r?.delivery?.method || null, s = r?.options?.shipping?.methods || [];
467
+ formatter: (r) => {
468
+ const { order: e, ...t } = r || {}, o = e?.delivery?.method || null, s = e?.options?.shipping?.methods || [];
453
469
  return {
454
470
  ...t,
455
- order: r,
471
+ order: e,
456
472
  currentShippingMethod: o,
457
473
  shippingMethods: s
458
474
  };
@@ -463,27 +479,27 @@ const mr = {
463
479
  }
464
480
  },
465
481
  setAgreementTemplate: {
466
- queryFn: async ({ orderId: e, agreementId: r }, t) => {
482
+ queryFn: async ({ orderId: r, agreementId: e }, t) => {
467
483
  const { storefront: o } = t || {};
468
- return o.query(z, {
469
- input: { orderId: e, agreementId: r }
484
+ return o.query(K, {
485
+ input: { orderId: r, agreementId: e }
470
486
  });
471
487
  },
472
- formatter: (e) => {
473
- const { order: r, ...t } = e?.setAgreementTemplateForOrder || {};
488
+ formatter: (r) => {
489
+ const { order: e, ...t } = r?.setAgreementTemplateForOrder || {};
474
490
  return {
475
491
  ...t,
476
- order: r
492
+ order: e
477
493
  };
478
494
  },
479
- success: (e, r) => {
480
- const { setSummary: t } = r || {}, o = c(e.order || {});
481
- t(o || {});
495
+ success: (r, e) => {
496
+ const { createSummary: t, setSummary: o } = e || {}, s = t(r.order || {});
497
+ o(s || {});
482
498
  },
483
499
  error: () => {
484
500
  }
485
501
  }
486
502
  };
487
503
  export {
488
- mr as orderOperations
504
+ pe as orderOperations
489
505
  };