@afosto/checkout-ui 0.0.1-alpha.2 → 0.0.1-alpha.4

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