@solvimon/solvimon-web 0.1.0-alpha.30 → 0.1.0-alpha.31

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 (257) hide show
  1. package/README.md +152 -91
  2. package/dist/AddPaymentMethodModal-Bs_aOOCX.mjs +97 -0
  3. package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DF4PIR-A.mjs +89 -0
  4. package/dist/{Alert.vue.es-ZPG49yR_.mjs → Alert.vue.es-xhsk_7Gn.mjs} +1 -1
  5. package/dist/AuthProvider.handle-CUO6Qj-5.mjs +46 -0
  6. package/dist/{Avatar.vue.es-geDQsZwu.mjs → Avatar.vue.es-DrbtUiLO.mjs} +1 -1
  7. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-C3JYNZuR.mjs +64 -0
  8. package/dist/BillingInformationForm.lib-ad8B2Y1O.mjs +32 -0
  9. package/dist/BillingInformationForm.vue_vue_type_script_setup_true_lang-BUdcXy0H.mjs +340 -0
  10. package/dist/BillingInformationModal-crgTNGf4.mjs +85 -0
  11. package/dist/{Button.vue.es-j7iYlqtJ.mjs → Button.vue.es-BHbanjR0.mjs} +1 -1
  12. package/dist/{ChargeOnDemandModal-CR01PkP_.mjs → ChargeOnDemandModal-DYiFtw1n.mjs} +44 -43
  13. package/dist/{Chip.vue.es-Dxx_0dte.mjs → Chip.vue.es-Dc6-PjEn.mjs} +2 -2
  14. package/dist/{ContentWithAsideLayout-Bnbsq8_5.mjs → ContentWithAsideLayout-C2kFcft1.mjs} +1 -1
  15. package/dist/{ContextMenu.vue.es-BJO4U47Q.mjs → ContextMenu.vue.es-CvX6O2IM.mjs} +10 -10
  16. package/dist/{CustomerBillingInformation.vue.es-CmNpqcBw.mjs → CustomerBillingInformation.vue.es-DQWt9osz.mjs} +3 -3
  17. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-hNVtamwL.mjs +217 -0
  18. package/dist/CustomerShippingAddresses-C0c-4D2W.mjs +282 -0
  19. package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DJnr5D56.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-C50vGUvw.mjs} +992 -1100
  20. package/dist/{DividerText.vue.es-BusbyeAI.mjs → DividerText.vue.es-ChN6fnrH.mjs} +1 -1
  21. package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-wPma8Os-.mjs → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DCUml1W4.mjs} +3 -3
  22. package/dist/{ErrorNotification.vue.es-F068p7PY.mjs → ErrorNotification.vue.es-CWIVt5q9.mjs} +2 -2
  23. package/dist/{FormMessage.vue.es-CwMQpIAW.mjs → FormMessage.vue.es-CQ64C8dt.mjs} +1 -1
  24. package/dist/{IconButton.vue.es-D8DtBW9i.mjs → IconButton.vue.es-BXzwMvVk.mjs} +2 -2
  25. package/dist/{IconTitle.vue.es-6VJtjJX2.mjs → IconTitle.vue.es-GyanM-JQ.mjs} +3 -3
  26. package/dist/{Input.vue.es-BLyHcmu4.mjs → Input.vue.es-CxiwRZYs.mjs} +4 -4
  27. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Dl1vTzQD.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Ca0qflBR.mjs} +2 -2
  28. package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-DYskT3r7.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-Dw73a5Yt.mjs} +7 -7
  29. package/dist/{InvoicePreview.vue.es-Cpf66_xV.mjs → InvoicePreview.vue.es-BvnikfEH.mjs} +6 -6
  30. package/dist/{InvoicePricingClauseChip.vue.es-CDrAE901.mjs → InvoicePricingClauseChip.vue.es-DxcyTRGr.mjs} +3 -3
  31. package/dist/{Label.vue.es-es7ZUBSP.mjs → Label.vue.es-3ACRco55.mjs} +3 -3
  32. package/dist/LoadFailedNotice.vue_vue_type_script_setup_true_lang-1qpRh-0S.mjs +20 -0
  33. package/dist/{Modal.vue.es-eeR9FmvQ.mjs → Modal.vue.es-CDjfZDDx.mjs} +138 -127
  34. package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-CnZwxJ5b.mjs +789 -0
  35. package/dist/{PaymentCompletedCard.vue_vue_type_script_setup_true_lang-CrjVPks0.mjs → PaymentCompletedCard.vue_vue_type_script_setup_true_lang-PICpXmC3.mjs} +2 -2
  36. package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-DyjzaTK1.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-DpZtYBfM.mjs} +4 -4
  37. package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BHQrWy6r.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-Co5qBQa8.mjs} +3 -3
  38. package/dist/{PaymentHistoryBlock-CN42ewCn.mjs → PaymentHistoryBlock-HUazLER6.mjs} +1 -1
  39. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-C3Y5fHvA.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DdmUoiet.mjs} +4 -4
  40. package/dist/{PaymentIntegrationForm-D3Ye7LZ5.mjs → PaymentIntegrationForm-ZnIjTyda.mjs} +1 -1
  41. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DU5wu66t.mjs +161 -0
  42. package/dist/{PaymentIntegrationFormAdyen-Fm-diCCO.mjs → PaymentIntegrationFormAdyen-sbw3AoKS.mjs} +302 -282
  43. package/dist/{PaymentIntegrationFormStripe-BANBL6za.mjs → PaymentIntegrationFormStripe-4JmKEwbS.mjs} +126 -117
  44. package/dist/{PaymentMethod.vue.es-t3-VyoE8.mjs → PaymentMethod.vue.es-DAabE41t.mjs} +23 -21
  45. package/dist/{PaymentMethodForm-CqP3GoNj.mjs → PaymentMethodForm-MmCUSJLE.mjs} +1 -1
  46. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-DyiXLYRj.mjs +165 -0
  47. package/dist/{PaymentMethodSelector.vue_vue_type_script_setup_true_lang-D5wmRuCf.mjs → PaymentMethodSelector.vue_vue_type_script_setup_true_lang-Bv34aiZ6.mjs} +6 -6
  48. package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-DhkkiJaQ.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-DZ2Z-RMv.mjs} +28 -26
  49. package/dist/PaymentMethodsModal-CjpNw4kX.mjs +192 -0
  50. package/dist/PlanCustomizationEditor-BDWm_z2w.mjs +864 -0
  51. package/dist/{PortalLinkUnverified-Cp60_kRJ.mjs → PortalLinkUnverified-B7YYhv97.mjs} +3 -3
  52. package/dist/{PortalNotAvailable-DzSQnfzw.mjs → PortalNotAvailable-DIyeKrAp.mjs} +2 -2
  53. package/dist/{PricingGroupRangeInput.vue.es-Srq_3cga.mjs → PricingGroupRangeInput.vue.es-C6J8C7JS.mjs} +7 -7
  54. package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-oRijnVnZ.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CiQ-C9Hh.mjs} +16 -15
  55. package/dist/{RadioGroupExtended.vue.es-BbBMDf6l.mjs → RadioGroupExtended.vue.es-hDmUAKIA.mjs} +5 -5
  56. package/dist/{Section.vue.es-Oqn1wGPZ.mjs → Section.vue.es-CwKTCeZ1.mjs} +1 -1
  57. package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-OM19NPBh.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Gn1aE60E.mjs} +2 -2
  58. package/dist/ShippingAddressForm.vue_vue_type_script_setup_true_lang-y7yOKwR3.mjs +144 -0
  59. package/dist/ShippingAddressesModal-CNXxkxnJ.mjs +283 -0
  60. package/dist/{StepInput.vue.es-ieh4EuJ7.mjs → StepInput.vue.es-GkrOtOVa.mjs} +4 -4
  61. package/dist/SubscriptionCancellationModal-C_xFPx1I.mjs +4 -0
  62. package/dist/SubscriptionCancellationModal.vue_vue_type_script_setup_true_lang-DdTC33Qh.mjs +240 -0
  63. package/dist/SubscriptionCancellationSuccess.vue_vue_type_script_setup_true_lang-CQ-ZOzVI.mjs +64 -0
  64. package/dist/SubscriptionDetails.entry.ce-DuP8TtKu.mjs +764 -0
  65. package/dist/{SubscriptionSchedules-DMxX3GpK.mjs → SubscriptionSchedules-DosBeXD7.mjs} +1 -1
  66. package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DXro_64f.mjs → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-5tyDFxEh.mjs} +1948 -1965
  67. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-C26HShPu.mjs +90 -0
  68. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-CHlXP_2x.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BUDuQk2e.mjs} +133 -108
  69. package/dist/Toggle.vue.es-S2g8WGY_.mjs +99 -0
  70. package/dist/{TooltipParagraph.vue.es-BES3zsYN.mjs → TooltipParagraph.vue.es-4HaXi8RP.mjs} +18 -18
  71. package/dist/{TranslationOverride.vue_vue_type_script_setup_true_lang-BJmlNrXT.mjs → TranslationOverride.vue_vue_type_script_setup_true_lang-C5Y6Kg-_.mjs} +1 -1
  72. package/dist/TrialChip.vue.es-CUfJ4SK3.mjs +47 -0
  73. package/dist/addonQuantity-BvoYTajN.mjs +128 -0
  74. package/dist/adyen-D4em6EgU.mjs +99 -0
  75. package/dist/adyenSdk-DUTO7xkT.mjs +63 -0
  76. package/dist/{api.es-qgvzNMU-.mjs → api.es-QaC926Xu.mjs} +2 -2
  77. package/dist/components/BillingInformation/BillingInformation.mjs +37 -41
  78. package/dist/components/BillingInformationForm/BillingInformationForm.mjs +45 -462
  79. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +33 -42
  80. package/dist/components/Invoice/Invoice.mjs +426 -426
  81. package/dist/components/InvoiceDetails/InvoiceDetails.mjs +38 -47
  82. package/dist/components/InvoiceHeader/InvoiceHeader.mjs +29 -34
  83. package/dist/components/InvoicesList/InvoicesList.mjs +33 -42
  84. package/dist/components/PaymentHistory/PaymentHistory.mjs +39 -48
  85. package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +56 -64
  86. package/dist/components/ShippingAddressForm/ShippingAddressForm.ce.d.ts +1 -0
  87. package/dist/components/ShippingAddressForm/ShippingAddressForm.mjs +212 -0
  88. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +34 -42
  89. package/dist/components/SubscriptionsList/SubscriptionsList.mjs +41 -50
  90. package/dist/components/WalletBalances/WalletBalances.mjs +46 -55
  91. package/dist/core/events.types.d.ts +1 -0
  92. package/dist/core/index.mjs +51 -34
  93. package/dist/{customElements-DK4GKNJG.mjs → customElements-d7Bhfqi_.mjs} +773 -746
  94. package/dist/{customer-lf6S5DBR.mjs → customer-CNCSN_G5.mjs} +1 -1
  95. package/dist/{de-DE-UJ6X6jXu.mjs → de-DE-D-sV3avS.mjs} +8 -5
  96. package/dist/{de-DE-Cyj_NtiI.mjs → de-DE-wZp39RC-.mjs} +68 -5
  97. package/dist/{fr-FR-Cvvbkwlj.mjs → fr-FR-BYHycSxz.mjs} +3 -0
  98. package/dist/{fr-FR-CRFoWQ7J.mjs → fr-FR-BrNXJ7gR.mjs} +68 -5
  99. package/dist/{countryData.es-BegoD-cZ.mjs → getCountryNameByCode.es-OGxn_zT0.mjs} +7 -2
  100. package/dist/index.es-BEZ2mumY.mjs +633 -0
  101. package/dist/{index.es-BrVTOW5D.mjs → index.es-C7J3WGGo.mjs} +4 -4
  102. package/dist/index.mjs +37 -33
  103. package/dist/invoices-CXvL8KQx.mjs +143 -0
  104. package/dist/{it-IT-DObZEc-U.mjs → it-IT-Bd1qsMVU.mjs} +68 -5
  105. package/dist/{it-IT-DnJP5URH.mjs → it-IT-zpPyT9PH.mjs} +8 -5
  106. package/dist/{nl-NL-q9xfTZF0.mjs → nl-NL-BOr4MR7L.mjs} +8 -5
  107. package/dist/{nl-NL-C02xHilF.mjs → nl-NL-C6Y6fqaW.mjs} +68 -5
  108. package/dist/paymentIntegrationFormLoaders-wi1vMgf_.mjs +31 -0
  109. package/dist/{paymentMethods-8w-ccfY_.mjs → paymentMethods-CG1fcG2v.mjs} +22 -21
  110. package/dist/{paymentOutcome-B6sW1eCV.mjs → paymentOutcome-D59QkGfm.mjs} +1 -1
  111. package/dist/paymentRedirect-DaS8Kccc.mjs +66 -0
  112. package/dist/payments-Dy81gmkC.mjs +71 -0
  113. package/dist/preloadPaymentIntegrationForms-C_9p7Jbi.mjs +9 -0
  114. package/dist/pricing-CBJT8C6L.mjs +42 -0
  115. package/dist/{pricingItem.es-bCPArbTa.mjs → pricingItem.es-AYq_hYeD.mjs} +1 -1
  116. package/dist/pricingPlanScheduleOverrides-GON_34ep.mjs +291 -0
  117. package/dist/randomUuid-BE_IQ-aq.mjs +10 -0
  118. package/dist/screens/Checkout/Checkout.mjs +1098 -3
  119. package/dist/screens/CheckoutSession/CheckoutSession.ce.d.ts +1 -0
  120. package/dist/screens/CheckoutSession/CheckoutSession.mjs +1316 -0
  121. package/dist/screens/CustomerOverview/CustomerOverview.mjs +209 -133
  122. package/dist/screens/PayInvoice/PayInvoice.mjs +282 -274
  123. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +92 -97
  124. package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +2 -2
  125. package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +915 -404
  126. package/dist/{sorting.es-C0pdMgX0.mjs → sorting.es-kM0f1VX0.mjs} +1 -1
  127. package/dist/{subscription-BwzkagDI.mjs → subscription-DQ5mRp_e.mjs} +10 -10
  128. package/dist/subscriptions-Bm1eu9wc.mjs +99 -0
  129. package/dist/taxId.es-Zu2Ff1gL.mjs +510 -0
  130. package/dist/timePeriod.es-R9U0wLlB.mjs +13 -0
  131. package/dist/types/components/customer/BillingInformationForm/BillingInformationForm.types.d.ts +11 -14
  132. package/dist/types/components/customer/CheckoutForm/CheckoutAddressFields.types.d.ts +2 -9
  133. package/dist/types/components/customer/CheckoutForm/CheckoutForm.types.d.ts +10 -0
  134. package/dist/types/components/customer/CustomerPaymentMethodsBlock/CustomerPaymentMethodsBlock.types.d.ts +6 -0
  135. package/dist/types/components/payments/AddPaymentMethodModal/AddPaymentMethodModal.types.d.ts +17 -0
  136. package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethodApplePay.types.d.ts +3 -2
  137. package/dist/types/components/payments/ExpressPaymentMethods/ExpressPaymentMethods.types.d.ts +3 -2
  138. package/dist/types/components/payments/OnDemandPaymentModalShell/OnDemandPaymentModalShell.types.d.ts +2 -0
  139. package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +12 -1
  140. package/dist/types/components/payments/PaymentMethodsList/PaymentMethodsList.types.d.ts +2 -0
  141. package/dist/types/components/payments/PaymentMethodsModal/PaymentMethodsModal.types.d.ts +22 -0
  142. package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.lib.types.d.ts +1 -1
  143. package/dist/types/components/providers/AuthProvider/AuthProvider.vue.d.ts +7 -1
  144. package/dist/types/components/providers/EntryProvider/EntryProvider.types.d.ts +2 -2
  145. package/dist/types/components/providers/EntryProvider/EntryProvider.vue.d.ts +3 -11
  146. package/dist/types/components/providers/ErrorBoundary/ErrorBoundary.vue.d.ts +1 -5
  147. package/dist/types/components/providers/HostElementProvider/HostElementProvider.lib.d.ts +11 -0
  148. package/dist/types/components/providers/HostElementProvider/composables/useHostEvent.d.ts +12 -0
  149. package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +5 -4
  150. package/dist/types/components/providers/PortalProvider/PortalProvider.lib.d.ts +3 -3
  151. package/dist/types/components/providers/PortalProvider/PortalProvider.types.d.ts +3 -3
  152. package/dist/types/components/providers/PortalProvider/PortalProvider.vue.d.ts +6 -1
  153. package/dist/types/components/providers/PortalProvider/composables/usePortal.d.ts +1 -0
  154. package/dist/types/components/providers/Provider/Provider.types.d.ts +10 -3
  155. package/dist/types/components/providers/Provider/Provider.vue.d.ts +3 -14
  156. package/dist/types/components/subscriptions/ChargeOnDemandModal/ChargeOnDemandModal.types.d.ts +1 -1
  157. package/dist/types/components/subscriptions/OrderSummary.types.d.ts +14 -0
  158. package/dist/types/components/subscriptions/OrderSummaryInvoice.types.d.ts +14 -1
  159. package/dist/types/components/subscriptions/PlanCustomizationForm/PlanCustomizationEditor.types.d.ts +9 -0
  160. package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditor.types.d.ts +4 -0
  161. package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditorItem.types.d.ts +2 -0
  162. package/dist/types/components/subscriptions/PlanCustomizationForm/UnitsEditor.types.d.ts +4 -0
  163. package/dist/types/components/subscriptions/PlanCustomizationForm/UnitsEditorItem.types.d.ts +2 -0
  164. package/dist/types/components/subscriptions/SubscriptionCancellationSuccess/SubscriptionCancellationSuccess.types.d.ts +4 -0
  165. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +10 -9
  166. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSuccess.types.d.ts +5 -0
  167. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSummary.types.d.ts +3 -0
  168. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionPlanChangeSummary.types.d.ts +4 -0
  169. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionPlanSelector.types.d.ts +7 -0
  170. package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsList.types.d.ts +1 -0
  171. package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsListItem.types.d.ts +1 -0
  172. package/dist/types/index.d.ts +5 -1
  173. package/dist/types/public/components/BillingInformation/BillingInformation.types.d.ts +5 -0
  174. package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.types.d.ts +1 -2
  175. package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.types.d.ts +6 -2
  176. package/dist/types/public/components/Invoice/Invoice.types.d.ts +7 -7
  177. package/dist/types/public/components/InvoiceHeader/InvoiceHeader.types.d.ts +2 -2
  178. package/dist/types/public/components/InvoicesList/InvoicesList.types.d.ts +6 -7
  179. package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.types.d.ts +1 -1
  180. package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.types.d.ts +19 -14
  181. package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.entry.ce.d.ts +1 -0
  182. package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.entry.types.d.ts +6 -0
  183. package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.types.d.ts +5 -0
  184. package/dist/types/public/components/SubscriptionsList/SubscriptionsList.types.d.ts +10 -1
  185. package/dist/types/public/core/action-request.types.d.ts +18 -24
  186. package/dist/types/public/core/events.types.d.ts +99 -0
  187. package/dist/types/public/core/index.d.ts +3 -1
  188. package/dist/types/public/core/types.d.ts +11 -2
  189. package/dist/types/public/screens/Checkout/Checkout.entry.types.d.ts +1 -7
  190. package/dist/types/public/screens/Checkout/Checkout.source.types.d.ts +151 -0
  191. package/dist/types/public/screens/Checkout/Checkout.types.d.ts +7 -30
  192. package/dist/types/public/screens/CheckoutSession/CheckoutSession.entry.ce.d.ts +1 -0
  193. package/dist/types/public/screens/CheckoutSession/CheckoutSession.entry.types.d.ts +3 -0
  194. package/dist/types/public/screens/CustomerOverview/CustomerOverview.types.d.ts +8 -2
  195. package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +0 -6
  196. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.configuration.types.d.ts +2 -19
  197. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.types.d.ts +2 -3
  198. package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.types.d.ts +2 -1
  199. package/dist/types/services/paymentMethods.types.d.ts +12 -1
  200. package/dist/types/types/EntryBaseProps.d.ts +10 -6
  201. package/dist/types/types/branding.d.ts +15 -0
  202. package/dist/types/types/checkoutSession.d.ts +189 -0
  203. package/dist/types/types/errors.d.ts +2 -0
  204. package/dist/types/types/pricingPlanGroup.d.ts +25 -0
  205. package/dist/{useActionDispatchProvider-ChAHdwR8.mjs → useActionDispatchProvider-BWna0S6N.mjs} +1 -1
  206. package/dist/useAddressFormats-Dw7IEdxg.mjs +1997 -0
  207. package/dist/useCheckoutForm-BaV2j_ob.mjs +3310 -0
  208. package/dist/{useCustomer-CTMhg1nd.mjs → useCustomer-RUtEzDOY.mjs} +2 -2
  209. package/dist/useDefaultPaymentMethod-Dliq6_Yw.mjs +39 -0
  210. package/dist/useExperimentalFeature-DAKAF_a2.mjs +6 -0
  211. package/dist/useHostEvent-pjoWJ7ZH.mjs +12 -0
  212. package/dist/{useIncrementalLoading-CBVutPH8.mjs → useIncrementalLoading-B3gp58X-.mjs} +2 -2
  213. package/dist/{useInvoiceData-qUGbBAQK.mjs → useInvoiceData-Dya4mmvf.mjs} +2 -2
  214. package/dist/{useInvoicesList-wJvZAJpW.mjs → useInvoicesList-Dp3c_cb3.mjs} +9 -9
  215. package/dist/{useLoadInitialData-UvfYXgbi.mjs → useLoadInitialData-CwySdYZM.mjs} +1 -1
  216. package/dist/usePaymentFormHold-CYZ4BdOw.mjs +19 -0
  217. package/dist/{usePaymentMethodAvailability-35l4pWdH.mjs → usePaymentMethodAvailability-B7NV0ZtX.mjs} +4 -4
  218. package/dist/usePaymentMethodOptions-DDRjVvDJ.mjs +67 -0
  219. package/dist/{usePaymentMethods-De7hlLHo.mjs → usePaymentMethods-DBGyQA_I.mjs} +2 -2
  220. package/dist/{usePayments-hWS7fnOx.mjs → usePayments-ChGtK_As.mjs} +9 -9
  221. package/dist/usePortal--Uzbpbgr.mjs +14 -0
  222. package/dist/{useService-BwzIBIRp.mjs → useService-DayNZhPh.mjs} +1 -1
  223. package/dist/useShippingAddresses-TXVeGFPm.mjs +122 -0
  224. package/dist/useSubscription-lIGMFLG1.mjs +35 -0
  225. package/dist/useSubscriptionActions-BSlJVB4p.mjs +44 -0
  226. package/dist/useWatchDebounced-DkXgKe0E.mjs +20 -0
  227. package/package.json +12 -5
  228. package/dist/AuthProvider.handle-SRR_04XS.mjs +0 -50
  229. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-nqKbgY7G.mjs +0 -58
  230. package/dist/Checkout.entry.ce-CopWuLJC.mjs +0 -4169
  231. package/dist/CheckoutAddressFields.vue_vue_type_script_setup_true_lang-CEnM1uxK.mjs +0 -828
  232. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Jyb5ZN3s.mjs +0 -136
  233. package/dist/CustomerShippingAddresses-BRPukhRI.mjs +0 -397
  234. package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-B_FpibLA.mjs +0 -441
  235. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-D07SEP8a.mjs +0 -181
  236. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-CMRMbL3d.mjs +0 -161
  237. package/dist/PlanCustomizationEditor-B76UNEMm.mjs +0 -791
  238. package/dist/ShippingAddressesModal-c7nqf4Ny.mjs +0 -418
  239. package/dist/SubscriptionDetails.entry.ce-uYv45FGH.mjs +0 -1044
  240. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-BZNsqN4G.mjs +0 -203
  241. package/dist/TrialChip.vue.es-C51z1ZiA.mjs +0 -35
  242. package/dist/addonQuantity-CCVaA3e-.mjs +0 -758
  243. package/dist/adyenSdk-B01MB9Ia.mjs +0 -58
  244. package/dist/getCountryNameByCode.es-BDHua7VM.mjs +0 -8
  245. package/dist/invoices-DdREPDXV.mjs +0 -123
  246. package/dist/paymentMethods-Goa25rTs.mjs +0 -61
  247. package/dist/payments-CKpU1K3t.mjs +0 -68
  248. package/dist/pricing-CEaZGgKe.mjs +0 -29
  249. package/dist/pricingPlanScheduleOverrides-BBp-DmpV.mjs +0 -233
  250. package/dist/pricingPlanSchedules-DSMptcAh.mjs +0 -38
  251. package/dist/subscriptions-B5bH8hsI.mjs +0 -66
  252. package/dist/taxId.es-e6NEvprh.mjs +0 -243
  253. package/dist/types/components/payments/ExpressPaymentMethodButton/ExpressPaymentMethodButton.types.d.ts +0 -3
  254. package/dist/useCustomerFormLabels-D4oDnfxA.mjs +0 -1173
  255. package/dist/usePaymentFormHold-Cwdr-vyc.mjs +0 -181
  256. package/dist/usePortal-DUfD6hrA.mjs +0 -7
  257. package/dist/useTimePeriod.es-BUorDLVK.mjs +0 -93
@@ -1,25 +1,27 @@
1
- import { defineComponent as de, computed as v, openBlock as N, createElementBlock as K, createVNode as H, unref as te, withCtx as ne, createTextVNode as ae, toDisplayString as C, ref as M, onMounted as Me, onBeforeUnmount as De, watch as ke, Fragment as Se, createBlock as Z, createCommentVNode as z, Teleport as Ce, createElementVNode as we, nextTick as oe } from "vue";
2
- import { a as Le } from "./useService-BwzIBIRp.mjs";
3
- import { a as ce, d as re, e as Fe } from "./customElements-DK4GKNJG.mjs";
4
- import { _ as xe } from "./PaymentCompletedCard.vue_vue_type_script_setup_true_lang-CrjVPks0.mjs";
5
- import { _ as Be } from "./PaymentErrorCard.vue_vue_type_script_setup_true_lang-DyjzaTK1.mjs";
6
- import { c as Ue } from "./payments-CKpU1K3t.mjs";
7
- import { c as Ye } from "./paymentMethods-8w-ccfY_.mjs";
8
- import { a as je, g as Ze, r as ze, c as Ge, b as Ke, d as He, t as G, e as ie } from "./usePaymentFormHold-Cwdr-vyc.mjs";
9
- import { t as Ve } from "./amount-CondixVt.mjs";
10
- import { l as $e } from "./adyenSdk-B01MB9Ia.mjs";
11
- import { g as We, i as Je, a as qe } from "./paymentOutcome-B6sW1eCV.mjs";
1
+ import { defineComponent as me, computed as P, openBlock as v, createElementBlock as $, createVNode as W, unref as oe, withCtx as re, createTextVNode as ie, toDisplayString as x, ref as k, onMounted as ke, onBeforeUnmount as Se, watch as Ce, Fragment as we, createBlock as K, createCommentVNode as H, Teleport as Le, createElementVNode as xe, nextTick as se } from "vue";
2
+ import { a as Fe } from "./useService-DayNZhPh.mjs";
3
+ import { a as pe, d as de, e as Be } from "./customElements-d7Bhfqi_.mjs";
4
+ import { _ as Ue } from "./PaymentCompletedCard.vue_vue_type_script_setup_true_lang-PICpXmC3.mjs";
5
+ import { _ as Ye } from "./PaymentErrorCard.vue_vue_type_script_setup_true_lang-DpZtYBfM.mjs";
6
+ import { c as Ze } from "./payments-Dy81gmkC.mjs";
7
+ import { c as je } from "./paymentMethods-CG1fcG2v.mjs";
8
+ import { g as ze, a as Ge, b as Ke, t as V, c as ce } from "./adyen-D4em6EgU.mjs";
9
+ import { t as He } from "./amount-CondixVt.mjs";
10
+ import { l as Ve } from "./adyenSdk-DUTO7xkT.mjs";
11
+ import { u as $e } from "./useExperimentalFeature-DAKAF_a2.mjs";
12
+ import { g as We, i as Je, a as qe } from "./paymentOutcome-D59QkGfm.mjs";
12
13
  import { c as Qe, a as Xe } from "./paymentFailure-QZdZHBhf.mjs";
13
- const et = ".adyen-checkout__payment-method--sepadirectdebit .adyen-checkout__payment-method__details__content";
14
- function tt(u) {
15
- return (u == null ? void 0 : u.querySelector(et)) ?? null;
14
+ import { r as et, c as tt } from "./paymentRedirect-DaS8Kccc.mjs";
15
+ const at = ".adyen-checkout__payment-method--sepadirectdebit .adyen-checkout__payment-method__details__content";
16
+ function nt(u) {
17
+ return (u == null ? void 0 : u.querySelector(at)) ?? null;
16
18
  }
17
- function nt(u, l) {
18
- return !!u && !!l && !u.contains(l);
19
+ function ot(u, y) {
20
+ return !!u && !!y && !u.contains(y);
19
21
  }
20
- const at = (u) => {
21
- let l = {};
22
- return u === "TOKENIZE" && (l = {
22
+ const rt = (u) => {
23
+ let y = {};
24
+ return u === "TOKENIZE" && (y = {
23
25
  "en-US": {
24
26
  payButton: "Add payment method",
25
27
  confirmPurchase: "Add payment method"
@@ -144,76 +146,76 @@ const at = (u) => {
144
146
  payButton: "Pridėti mokėjimo metodą",
145
147
  confirmPurchase: "Pridėti mokėjimo metodą"
146
148
  }
147
- }), l;
148
- }, ot = { class: "sv-sepa-mandate mt-3" }, rt = /* @__PURE__ */ de({
149
+ }), y;
150
+ }, it = { class: "sv-sepa-mandate mt-3" }, st = /* @__PURE__ */ me({
149
151
  __name: "SepaMandateNotice",
150
152
  props: {
151
153
  billingEntityName: { type: String }
152
154
  },
153
155
  setup(u) {
154
- const l = u, { $t: E } = ce(), r = v(
156
+ const y = u, { $t: E } = pe(), i = P(
155
157
  () => E({
156
158
  defaultMessage: "SEPA Direct Debit mandate — recurring payments",
157
159
  description: "Title of the SEPA direct debit mandate shown inside the SEPA payment form",
158
160
  id: "payments.sepa_mandate.title"
159
161
  })
160
- ), k = v(
161
- () => l.billingEntityName ? E(
162
+ ), C = P(
163
+ () => y.billingEntityName ? E(
162
164
  {
163
165
  defaultMessage: "By confirming this mandate, you authorise {billingEntityName} to instruct your bank to collect payments from your account, and you authorise your bank to carry out those instructions.",
164
166
  description: "SEPA direct debit mandate authorisation, naming the billing entity",
165
167
  id: "payments.sepa_mandate.authorisation"
166
168
  },
167
- { billingEntityName: l.billingEntityName }
169
+ { billingEntityName: y.billingEntityName }
168
170
  ) : E({
169
171
  defaultMessage: "By confirming this mandate, you authorise us to instruct your bank to collect payments from your account, and you authorise your bank to carry out those instructions.",
170
172
  description: "SEPA direct debit mandate authorisation, where the billing entity is not known",
171
173
  id: "payments.sepa_mandate.authorisation_unnamed"
172
174
  })
173
- ), a = v(
174
- () => l.billingEntityName ? E(
175
+ ), n = P(
176
+ () => y.billingEntityName ? E(
175
177
  {
176
178
  defaultMessage: "This bank account will be used automatically to pay subsequent invoices from {billingEntityName} until you cancel this mandate.",
177
179
  description: "Explains that the SEPA mandate covers later invoices, naming the billing entity",
178
180
  id: "payments.sepa_mandate.recurrence"
179
181
  },
180
- { billingEntityName: l.billingEntityName }
182
+ { billingEntityName: y.billingEntityName }
181
183
  ) : E({
182
184
  defaultMessage: "This bank account will be used automatically to pay subsequent invoices until you cancel this mandate.",
183
185
  description: "Explains that the SEPA mandate covers later invoices, where the billing entity is not known",
184
186
  id: "payments.sepa_mandate.recurrence_unnamed"
185
187
  })
186
- ), p = v(
188
+ ), p = P(
187
189
  () => E({
188
190
  defaultMessage: "As part of your rights, you're entitled to a refund from your bank under the terms and conditions of your agreement with your bank. You must claim a refund within 8 weeks from the date your account was debited. You can request a statement from your bank explaining your rights.",
189
191
  description: "SEPA direct debit mandate refund rights, held against the payer's own bank",
190
192
  id: "payments.sepa_mandate.refund_rights"
191
193
  })
192
194
  );
193
- return (y, w) => (N(), K("div", ot, [
194
- H(te(re), {
195
+ return (h, F) => (v(), $("div", it, [
196
+ W(oe(de), {
195
197
  tag: "p",
196
198
  variant: "body-xs",
197
199
  class: "font-semibold"
198
200
  }, {
199
- default: ne(() => [
200
- ae(C(r.value), 1)
201
+ default: re(() => [
202
+ ie(x(i.value), 1)
201
203
  ]),
202
204
  _: 1
203
205
  }),
204
- H(te(re), {
206
+ W(oe(de), {
205
207
  tag: "p",
206
208
  variant: "body-xs",
207
209
  color: "subtle"
208
210
  }, {
209
- default: ne(() => [
210
- ae(C(k.value) + " " + C(a.value) + " " + C(p.value), 1)
211
+ default: re(() => [
212
+ ie(x(C.value) + " " + x(n.value) + " " + x(p.value), 1)
211
213
  ]),
212
214
  _: 1
213
215
  })
214
216
  ]));
215
217
  }
216
- }), D = "ADYEN", se = "data-sv-adyen-styles", Et = /* @__PURE__ */ de({
218
+ }), S = "ADYEN", ue = "data-sv-adyen-styles", Tt = /* @__PURE__ */ me({
217
219
  __name: "PaymentIntegrationFormAdyen",
218
220
  props: {
219
221
  context: { type: Object },
@@ -232,29 +234,29 @@ const at = (u) => {
232
234
  collapsed: { type: Boolean }
233
235
  },
234
236
  emits: ["select", "payment-failed", "payment-success", "invalid", "submitting", "action-required", "ready"],
235
- setup(u, { expose: l, emit: E }) {
236
- let r = null, k = null;
237
- const a = u, p = E;
238
- l({ submit: ye });
239
- const y = M(), w = M(null), I = M(null);
237
+ setup(u, { expose: y, emit: E }) {
238
+ let i = null, C = null;
239
+ const n = u, p = E;
240
+ y({ submit: fe });
241
+ const h = k(), F = k(null), I = k(null);
240
242
  let f;
241
- const L = M(!1), g = M();
242
- let S = !1, A = !1, P = 0, b, F = !1;
243
- const d = Fe(), { locale: ue } = ce(), { authorizePayment: me, getPaymentDetails: pe } = Ue(), { tokenizePaymentMethod: le } = Ye(), x = je(), V = v(
243
+ const B = k(!1), g = k();
244
+ let w = !1, A = !1, b = 0, R, U = !1, L, T = !1;
245
+ const d = Be(), { locale: ye } = pe(), { authorizePayment: le, getPaymentDetails: he } = Ze(), { tokenizePaymentMethod: _e } = je(), Y = $e(), J = P(
244
246
  () => {
245
247
  var e;
246
- return Ze(a.paymentMethodOptionResponseEntry, {
247
- excludeExpressPaymentMethods: !!((e = x == null ? void 0 : x.value) != null && e["express-checkout"])
248
+ return ze(n.paymentMethodOptionResponseEntry, {
249
+ excludeExpressPaymentMethods: !!((e = Y == null ? void 0 : Y.value) != null && e["express-checkout"])
248
250
  });
249
251
  }
250
- ), $ = v(() => V.value.length > 0);
252
+ ), q = P(() => J.value.length > 0);
251
253
  function m(e) {
252
254
  return Qe({
253
- gateway: D,
254
- paymentAcceptorId: a.paymentMethodOptionResponseEntry.payment_acceptor.id,
255
- variant: a.variant,
256
- invoiceId: a.invoiceId,
257
- customerId: a.customerId,
255
+ gateway: S,
256
+ paymentAcceptorId: n.paymentMethodOptionResponseEntry.payment_acceptor.id,
257
+ variant: n.variant,
258
+ invoiceId: n.invoiceId,
259
+ customerId: n.customerId,
258
260
  ...e
259
261
  });
260
262
  }
@@ -263,36 +265,36 @@ const at = (u) => {
263
265
  const t = Xe(e);
264
266
  g.value = t, p("payment-failed", t);
265
267
  }
266
- function W() {
267
- A = !1, B(), L.value = !0, p("payment-success");
268
+ function Q() {
269
+ A = !1, Z(), B.value = !0, p("payment-success");
268
270
  }
269
- function O(e, t = {}, n) {
270
- B(), d.warn(
271
+ function O(e, t = {}, a) {
272
+ Z(), d.warn(
271
273
  "PAYMENT_OUTCOME_UNCONFIRMED",
272
274
  "The payment outcome could not be confirmed yet",
273
- m({ reason: e, extra: t, cause: n }),
274
- n
275
+ m({ reason: e, extra: t, cause: a }),
276
+ a
275
277
  ), _({
276
278
  code: "PAYMENT_OUTCOME_UNCONFIRMED",
277
279
  message: "Payment could not be confirmed",
278
- error: n
280
+ error: a
279
281
  });
280
282
  }
281
- function B() {
282
- S = !0, Y();
283
+ function Z() {
284
+ w = !0, z();
283
285
  }
284
- function ye() {
286
+ function fe() {
285
287
  if (!A) {
286
- if (!(r != null && r.isValid)) {
287
- if (r && !r.activePaymentMethod) {
288
+ if (!(i != null && i.isValid)) {
289
+ if (i && !i.activePaymentMethod) {
288
290
  p("invalid", "NO_PAYMENT_METHOD");
289
291
  return;
290
292
  }
291
- r == null || r.showValidation(), p("invalid");
293
+ i == null || i.showValidation(), p("invalid");
292
294
  return;
293
295
  }
294
296
  try {
295
- r.submit();
297
+ i.submit();
296
298
  } catch (e) {
297
299
  d.error(
298
300
  "ADYEN_SUBMIT_FAILED",
@@ -300,36 +302,36 @@ const at = (u) => {
300
302
  m({ reason: "ADYEN_SUBMIT_FAILED", cause: e }),
301
303
  e
302
304
  ), _({
303
- code: a.variant === "TOKENIZE" ? "TOKENIZE_FAILED" : "AUTHORIZATION_FAILED",
305
+ code: n.variant === "TOKENIZE" ? "TOKENIZE_FAILED" : "AUTHORIZATION_FAILED",
304
306
  message: "Failed to submit Adyen drop-in",
305
307
  error: e
306
308
  });
307
309
  }
308
310
  }
309
311
  }
310
- async function he() {
311
- const e = Ve(a.amount), t = V.value, n = a.selected;
312
+ async function Ee() {
313
+ const e = He(n.amount), t = J.value, a = n.selected;
312
314
  let o = !1;
313
315
  return {
314
316
  checkoutConfig: {
315
317
  amount: e,
316
- clientKey: He(
317
- a.paymentMethodOptionResponseEntry
318
+ clientKey: Ke(
319
+ n.paymentMethodOptionResponseEntry
318
320
  ),
319
- environment: Ke(
320
- a.paymentMethodOptionResponseEntry,
321
+ environment: Ge(
322
+ n.paymentMethodOptionResponseEntry,
321
323
  d
322
324
  ),
323
- locale: ue,
324
- translations: at(a.variant),
325
- countryCode: a.countryCode,
325
+ locale: ye,
326
+ translations: rt(n.variant),
327
+ countryCode: n.countryCode,
326
328
  analytics: { enabled: !1 },
327
329
  paymentMethodsResponse: { paymentMethods: t },
328
- onSubmit: ge,
329
- onAdditionalDetails: Te,
330
- onPaymentCompleted: Pe,
331
- onPaymentFailed: ve,
332
- onError: be,
330
+ onSubmit: Te,
331
+ onAdditionalDetails: ve,
332
+ onPaymentCompleted: Re,
333
+ onPaymentFailed: be,
334
+ onError: Oe,
333
335
  showPayButton: !1
334
336
  },
335
337
  dropInConfig: {
@@ -338,97 +340,99 @@ const at = (u) => {
338
340
  card: {
339
341
  hasHolderName: !0,
340
342
  holderNameRequired: !0,
341
- enableStoreDetails: !a.forceStorePaymentMethod && a.storePaymentMethod === void 0 && a.variant === "AUTHORIZE"
343
+ enableStoreDetails: !n.forceStorePaymentMethod && n.storePaymentMethod === void 0 && n.variant === "AUTHORIZE"
342
344
  },
343
345
  paypal: {
344
346
  intent: e.value > 0 ? "authorize" : "tokenize",
345
347
  showPayButton: !0
346
348
  }
347
349
  },
348
- openFirstPaymentMethod: n,
350
+ openFirstPaymentMethod: a,
349
351
  onSelect: ({ props: { type: s } }) => {
350
352
  if (!s) return;
351
- const i = n && !o;
353
+ const r = a && !o;
352
354
  o = !0, p("select", {
353
355
  paymentMethodType: s,
354
356
  paymentGatewayVariant: "ADYEN",
355
- ...i && { isAutomatic: !0 }
357
+ ...r && { isAutomatic: !0 }
356
358
  });
357
359
  },
358
360
  onReady: () => p("ready")
359
361
  }
360
362
  };
361
363
  }
362
- function _e() {
363
- return Promise.all([
364
- $e(),
365
- import("./adyen-Bugab0JE.mjs").then((e) => e.default)
366
- ]);
367
- }
368
- async function U() {
369
- const e = ++P, t = () => e !== P;
370
- if (!(S || F)) {
371
- if (await Y(), g.value = void 0, !$.value) {
372
- const { payment_acceptor: n, integration: o } = a.paymentMethodOptionResponseEntry;
364
+ async function j() {
365
+ const e = ++b, t = () => e !== b;
366
+ if (!(w || U)) {
367
+ if (await z(), g.value = void 0, !q.value) {
368
+ const {
369
+ payment_acceptor: a,
370
+ integration: o,
371
+ options: s = []
372
+ } = n.paymentMethodOptionResponseEntry;
373
373
  d.warn("PAYMENT_INTEGRATION_NOT_RENDERABLE", "No Adyen payment methods to offer", {
374
- fingerprint: ["PAYMENT_INTEGRATION_NOT_RENDERABLE", n.id],
375
- paymentAcceptorId: n.id,
374
+ fingerprint: ["PAYMENT_INTEGRATION_NOT_RENDERABLE", a.id],
375
+ paymentAcceptorId: a.id,
376
376
  integrationId: o.id,
377
- ...a.invoiceId ? { invoiceId: a.invoiceId } : {}
377
+ // Tells a configuration that offers nothing apart from methods the drop-in leaves out.
378
+ offeredPaymentMethodTypes: s.map(
379
+ (r) => r.payment_gateway_variant === "ADYEN" ? r.adyen.type : r.payment_gateway_variant
380
+ ),
381
+ ...n.invoiceId ? { invoiceId: n.invoiceId } : {}
378
382
  });
379
383
  return;
380
384
  }
381
- if (await oe(), !(t() || !y.value))
385
+ if (await se(), !(t() || !h.value))
382
386
  try {
383
- const [n, o] = await _e();
387
+ const [a, o] = await Ve();
384
388
  if (t()) return;
385
- const { checkoutConfig: s, dropInConfig: i } = await he(), c = await n.AdyenCheckout(s);
386
- if (t() || S || !y.value) return;
387
- k = c, r = new n.Dropin(k, {
388
- ...i,
389
- paymentMethodComponents: n.dropInPaymentMethodComponents
390
- }).mount(y.value), Ae(o), fe();
391
- } catch (n) {
389
+ const { checkoutConfig: s, dropInConfig: r } = await Ee(), c = await a.AdyenCheckout(s);
390
+ if (t() || w || !h.value) return;
391
+ C = c, i = new a.Dropin(C, {
392
+ ...r,
393
+ paymentMethodComponents: a.dropInPaymentMethodComponents
394
+ }).mount(h.value), Ie(o), Ae();
395
+ } catch (a) {
392
396
  if (t()) return;
393
397
  d.error(
394
398
  "PAYMENT_INTEGRATION_INITIALIZATION_FAILED",
395
399
  "Failed to mount Adyen web drop-in",
396
- m({ reason: "ADYEN_DROP_IN_MOUNT_FAILED", cause: n }),
397
- n
400
+ m({ reason: "ADYEN_DROP_IN_MOUNT_FAILED", cause: a }),
401
+ a
398
402
  ), _({
399
403
  code: "PAYMENT_INTEGRATION_INITIALIZATION_FAILED",
400
404
  message: "Failed to mount Adyen web drop-in",
401
- error: n
405
+ error: a
402
406
  });
403
407
  }
404
408
  }
405
409
  }
406
- function J() {
407
- const e = tt(y.value);
408
- if (nt(e, w.value)) {
409
- I.value = null, oe(() => I.value = e);
410
+ function X() {
411
+ const e = nt(h.value);
412
+ if (ot(e, F.value)) {
413
+ I.value = null, se(() => I.value = e);
410
414
  return;
411
415
  }
412
416
  I.value = e;
413
417
  }
414
- function fe() {
415
- f == null || f.disconnect(), y.value && (f = new MutationObserver(() => J()), f.observe(y.value, { childList: !0, subtree: !0 }), J());
418
+ function Ae() {
419
+ f == null || f.disconnect(), h.value && (f = new MutationObserver(() => X()), f.observe(h.value, { childList: !0, subtree: !0 }), X());
416
420
  }
417
- function Ee() {
421
+ function ge() {
418
422
  f == null || f.disconnect(), f = void 0, I.value = null;
419
423
  }
420
- async function Y() {
421
- Ee(), r && (r.unmount(), r = null), y.value && (y.value.innerHTML = "");
424
+ async function z() {
425
+ ge(), i && (i.unmount(), i = null), h.value && (h.value.innerHTML = "");
422
426
  }
423
- function j(e, t, n) {
424
- if (e.querySelector(`style[${se}="${t}"]`)) return;
427
+ function G(e, t, a) {
428
+ if (e.querySelector(`style[${ue}="${t}"]`)) return;
425
429
  const o = document.createElement("style");
426
- o.setAttribute(se, t), o.textContent = n, e.appendChild(o);
430
+ o.setAttribute(ue, t), o.textContent = a, e.appendChild(o);
427
431
  }
428
- function Ae(e) {
429
- var n;
430
- const t = (n = y.value) == null ? void 0 : n.getRootNode();
431
- t instanceof ShadowRoot && (j(t, "sdk", e), j(
432
+ function Ie(e) {
433
+ var a;
434
+ const t = (a = h.value) == null ? void 0 : a.getRootNode();
435
+ t instanceof ShadowRoot && (G(t, "sdk", e), G(
432
436
  t,
433
437
  "overrides",
434
438
  `
@@ -525,7 +529,7 @@ const at = (u) => {
525
529
  border-color: rgb(229, 231, 235);
526
530
  }
527
531
  `
528
- ), a.variant === "AUTHORIZE" && j(
532
+ ), n.variant === "AUTHORIZE" && G(
529
533
  t,
530
534
  "authorize",
531
535
  `
@@ -535,19 +539,19 @@ const at = (u) => {
535
539
  `
536
540
  ));
537
541
  }
538
- function q(e, {
542
+ function ee(e, {
539
543
  paymentMethodType: t,
540
- actions: n,
544
+ actions: a,
541
545
  logFailure: o
542
546
  }) {
543
- var i;
544
- if (e.status === "ACTION_REQUIRED" && e.action.payment_gateway_variant === D) {
545
- const c = Ie(e, t);
547
+ var r;
548
+ if (e.status === "ACTION_REQUIRED" && e.action.payment_gateway_variant === S) {
549
+ const c = Ne(e, t);
546
550
  if (!c) {
547
551
  o(e);
548
552
  return;
549
553
  }
550
- p("action-required"), n.resolve({
554
+ p("action-required"), a.resolve({
551
555
  resultCode: e.action.adyen.result_code,
552
556
  action: c
553
557
  });
@@ -555,130 +559,140 @@ const at = (u) => {
555
559
  }
556
560
  const s = qe(e);
557
561
  if (s === "SUCCEEDED") {
558
- L.value = !0, n.resolve({ resultCode: "Authorised" });
562
+ B.value = !0, a.resolve({ resultCode: "Authorised" });
559
563
  return;
560
564
  }
561
565
  if (s === "UNCONFIRMED") {
562
566
  O("PAYMENT_PENDING", {
563
567
  paymentStatus: e.status,
564
- paymentResult: (i = e.payment) == null ? void 0 : i.result,
568
+ paymentResult: (r = e.payment) == null ? void 0 : r.result,
565
569
  paymentMethodType: t
566
570
  });
567
571
  return;
568
572
  }
569
- o(e), n.resolve({ resultCode: "Error" });
573
+ o(e), T = !0, a.resolve({ resultCode: "Error" });
570
574
  }
571
- function ge(...e) {
572
- const [t, n, o] = e;
573
- A || (A = !0, a.validateOnSubmit().then((s) => {
575
+ function Te(...e) {
576
+ const [t, a, o] = e;
577
+ A || (A = !0, L = void 0, T = !1, n.validateOnSubmit().then((s) => {
574
578
  if (!s) {
575
- A = !1, r == null || r.setStatus("ready"), p("invalid");
579
+ A = !1, i == null || i.setStatus("ready"), p("invalid");
576
580
  return;
577
581
  }
578
582
  p("submitting");
579
- const i = a.paymentMethodOptionResponseEntry.payment_acceptor.id, c = {
580
- risk_data: G(t.data.riskData),
581
- payment_method: G(t.data.paymentMethod),
582
- browser_info: G(t.data.browserInfo)
583
+ const r = n.paymentMethodOptionResponseEntry.payment_acceptor.id, c = {
584
+ risk_data: V(t.data.riskData),
585
+ payment_method: V(t.data.paymentMethod),
586
+ browser_info: V(t.data.browserInfo)
583
587
  };
584
- if (a.variant === "AUTHORIZE") {
585
- const T = ie({
586
- paymentAcceptorId: a.paymentMethodOptionResponseEntry.payment_acceptor.id,
588
+ if (n.variant === "AUTHORIZE") {
589
+ const N = ce({
590
+ paymentAcceptorId: n.paymentMethodOptionResponseEntry.payment_acceptor.id,
587
591
  redirectUrl: window.location.href
588
592
  });
589
- me({
590
- payment_acceptor_id: i,
591
- ...a.customerId ? { customer_id: a.customerId } : {},
592
- payment_gateway_variant: D,
593
+ le({
594
+ payment_acceptor_id: r,
595
+ ...n.customerId ? { customer_id: n.customerId } : {},
596
+ payment_gateway_variant: S,
593
597
  adyen: {
594
598
  ...c,
595
- store_payment_method: a.storePaymentMethod ?? (a.forceStorePaymentMethod || t.data.storePaymentMethod)
599
+ store_payment_method: n.storePaymentMethod ?? (n.forceStorePaymentMethod || t.data.storePaymentMethod)
596
600
  },
597
- amount: a.amount,
598
- ...a.context ? { context: a.context } : {},
599
- return_url: T
601
+ amount: n.amount,
602
+ ...n.context ? { context: n.context } : {},
603
+ return_url: N
600
604
  }).then(
601
- (h) => q(h, {
605
+ (l) => ee(l, {
602
606
  paymentMethodType: t.data.paymentMethod.type,
603
607
  actions: o,
604
- logFailure: (R) => d.error(
605
- "PAYMENT_AUTHORIZATION_FAILED",
606
- `Failed payment authorization for payment acceptor with id ${i}`,
607
- m({
608
- reason: "PAYMENT_AUTHORIZATION_REJECTED",
609
- paymentMethodType: t.data.paymentMethod.type,
610
- cause: R
611
- }),
612
- R
613
- )
608
+ logFailure: (M) => {
609
+ var D;
610
+ return d.error(
611
+ "PAYMENT_AUTHORIZATION_FAILED",
612
+ `Failed payment authorization for payment acceptor with id ${r}`,
613
+ m({
614
+ reason: "PAYMENT_AUTHORIZATION_REJECTED",
615
+ paymentMethodType: t.data.paymentMethod.type,
616
+ extra: {
617
+ paymentStatus: M.status,
618
+ paymentResult: (D = M.payment) == null ? void 0 : D.result
619
+ }
620
+ })
621
+ );
622
+ }
614
623
  })
615
- ).catch((h) => {
624
+ ).catch((l) => {
616
625
  if (d.error(
617
626
  "PAYMENT_AUTHORIZATION_FAILED",
618
- `Failed payment authorization for payment acceptor with id ${i}`,
627
+ `Failed payment authorization for payment acceptor with id ${r}`,
619
628
  m({
620
629
  reason: "PAYMENT_AUTHORIZATION_FAILED",
621
630
  paymentMethodType: t.data.paymentMethod.type,
622
- cause: h
631
+ cause: l
623
632
  }),
624
- h
625
- ), Je(h)) {
633
+ l
634
+ ), Je(l)) {
626
635
  O(
627
636
  "PAYMENT_AUTHORIZATION_UNANSWERED",
628
637
  { paymentMethodType: t.data.paymentMethod.type },
629
- h
638
+ l
630
639
  );
631
640
  return;
632
641
  }
633
- o.resolve({ resultCode: "Error" });
642
+ L = l, T = !0, o.resolve({ resultCode: "Error" });
634
643
  });
635
644
  return;
636
645
  }
637
- if (a.variant === "TOKENIZE") {
638
- const T = ie({
639
- paymentAcceptorId: a.paymentMethodOptionResponseEntry.payment_acceptor.id,
646
+ if (n.variant === "TOKENIZE") {
647
+ const N = ce({
648
+ paymentAcceptorId: n.paymentMethodOptionResponseEntry.payment_acceptor.id,
640
649
  redirectUrl: window.location.href
641
650
  });
642
- if (!a.customerId) {
651
+ if (!n.customerId) {
643
652
  d.error(
644
653
  "TOKENIZATION_FAILED",
645
- `Missing customer id for payment acceptor with id ${i}`,
654
+ `Missing customer id for payment acceptor with id ${r}`,
646
655
  m({ reason: "TOKENIZATION_FAILED_NO_CUSTOMER" })
647
656
  ), _({ code: "TOKENIZE_FAILED", message: "Missing customer id" });
648
657
  return;
649
658
  }
650
- le({
651
- customer_id: a.customerId,
652
- payment_acceptor_id: i,
653
- payment_gateway_variant: D,
659
+ _e({
660
+ customer_id: n.customerId,
661
+ payment_acceptor_id: r,
662
+ payment_gateway_variant: S,
654
663
  adyen: c,
655
- return_url: T
664
+ return_url: N
656
665
  }).then(
657
- (h) => q(h, {
666
+ (l) => ee(l, {
658
667
  paymentMethodType: t.data.paymentMethod.type,
659
668
  actions: o,
660
- logFailure: (R) => d.error(
661
- "TOKENIZATION_FAILED",
662
- `Tokenization failed for payment acceptor with id ${i}`,
663
- m({
664
- reason: "TOKENIZATION_REJECTED",
665
- paymentMethodType: t.data.paymentMethod.type,
666
- cause: R
667
- }),
668
- R
669
- )
669
+ logFailure: (M) => {
670
+ var D;
671
+ return d.error(
672
+ "TOKENIZATION_FAILED",
673
+ `Tokenization failed for payment acceptor with id ${r}`,
674
+ m({
675
+ reason: "TOKENIZATION_REJECTED",
676
+ paymentMethodType: t.data.paymentMethod.type,
677
+ extra: {
678
+ paymentStatus: M.status,
679
+ paymentResult: (D = M.payment) == null ? void 0 : D.result
680
+ }
681
+ })
682
+ );
683
+ }
670
684
  })
671
- ).catch((h) => {
685
+ ).catch((l) => {
672
686
  d.error(
673
687
  "TOKENIZATION_FAILED",
674
- `Tokenization failed for payment acceptor with id ${i}`,
688
+ `Tokenization failed for payment acceptor with id ${r}`,
675
689
  m({
676
690
  reason: "TOKENIZATION_FAILED",
677
691
  paymentMethodType: t.data.paymentMethod.type,
678
- cause: h
692
+ cause: l
679
693
  }),
680
- h
681
- ), o.resolve({ resultCode: "Error" });
694
+ l
695
+ ), T = !0, o.resolve({ resultCode: "Error" });
682
696
  });
683
697
  }
684
698
  }).catch((s) => {
@@ -687,35 +701,35 @@ const at = (u) => {
687
701
  "Unhandled error in payment submission flow",
688
702
  m({ reason: "ADYEN_SUBMISSION_FLOW_FAILED", cause: s }),
689
703
  s
690
- ), A = !1, r == null || r.setStatus("ready"), p("invalid");
704
+ ), A = !1, i == null || i.setStatus("ready"), p("invalid");
691
705
  }));
692
706
  }
693
- function Ie(e, t) {
707
+ function Ne(e, t) {
694
708
  if (e.status !== "ACTION_REQUIRED")
695
709
  return;
696
- const n = e.action;
697
- if (n.payment_gateway_variant != "ADYEN")
710
+ const a = e.action;
711
+ if (a.payment_gateway_variant != "ADYEN")
698
712
  return;
699
- const o = n.adyen;
713
+ const o = a.adyen;
700
714
  return {
701
715
  paymentMethodType: (o == null ? void 0 : o.payment_method_type) ?? t,
702
- method: n.method,
703
- url: n.url,
704
- data: n.data,
716
+ method: a.method,
717
+ url: a.url,
718
+ data: a.data,
705
719
  type: o == null ? void 0 : o.action_type,
706
720
  paymentData: o == null ? void 0 : o.payment_data,
707
721
  sdkData: o == null ? void 0 : o.sdk_data
708
722
  };
709
723
  }
710
- function Te(...e) {
711
- const [t, , n] = e, o = t.data.details, s = t.data.paymentData;
712
- if (a.paymentMethodOptionResponseEntry.payment_acceptor.id) {
713
- Q({
724
+ function ve(...e) {
725
+ const [t, , a] = e, o = t.data.details, s = t.data.paymentData;
726
+ if (n.paymentMethodOptionResponseEntry.payment_acceptor.id) {
727
+ te({
714
728
  // For the moment: Adyen gives a null value back which is not accepted by Solvimon API, so filter that out
715
- detailsResult: o ? Ne(o) : void 0,
729
+ detailsResult: o ? Pe(o) : void 0,
716
730
  paymentDataResult: s,
717
- paymentAcceptorId: a.paymentMethodOptionResponseEntry.payment_acceptor.id,
718
- actions: n
731
+ paymentAcceptorId: n.paymentMethodOptionResponseEntry.payment_acceptor.id,
732
+ actions: a
719
733
  });
720
734
  return;
721
735
  }
@@ -729,29 +743,35 @@ const at = (u) => {
729
743
  error: e
730
744
  });
731
745
  }
732
- function Ne(e) {
746
+ function Pe(e) {
733
747
  return Object.fromEntries(
734
748
  Object.entries(e).filter(([, t]) => t != null)
735
749
  );
736
750
  }
737
- function ve(...e) {
751
+ function be(...e) {
738
752
  const [t] = e;
739
- d.error(
753
+ T || d.error(
740
754
  "ADYEN_PAYMENT_FAILED",
741
755
  "Adyen reported the payment as failed",
742
756
  m({
743
757
  reason: "ADYEN_PAYMENT_FAILED",
744
758
  extra: { resultCode: t == null ? void 0 : t.resultCode }
745
- }),
746
- t
747
- ), _({ code: "AUTHORIZATION_FAILED", message: "Payment failed", error: t });
759
+ })
760
+ ), T = !1;
761
+ const a = L;
762
+ L = void 0, _({
763
+ code: "AUTHORIZATION_FAILED",
764
+ message: "Payment failed",
765
+ error: t,
766
+ ...a !== void 0 && { apiError: a }
767
+ });
748
768
  }
749
- function Pe(...e) {
769
+ function Re(...e) {
750
770
  const [, t] = e;
751
- t == null || t.unmount(), W();
771
+ t == null || t.unmount(), Q();
752
772
  }
753
- function be(...e) {
754
- const [t, n] = e;
773
+ function Oe(...e) {
774
+ const [t, a] = e;
755
775
  if (t.name === "CANCEL") {
756
776
  A = !1, p("invalid");
757
777
  return;
@@ -765,33 +785,33 @@ const at = (u) => {
765
785
  extra: { adyenErrorName: t.name }
766
786
  }),
767
787
  t
768
- ), _({ code: "UNKNOWN_ERROR", message: "Something went wrong", error: t }), n == null || n.unmount();
788
+ ), _({ code: "UNKNOWN_ERROR", message: "Something went wrong", error: t }), a == null || a.unmount();
769
789
  }
770
- function Q({
790
+ function te({
771
791
  detailsResult: e,
772
792
  threeDSResult: t,
773
- redirectResult: n,
793
+ redirectResult: a,
774
794
  paymentDataResult: o,
775
795
  paymentAcceptorId: s,
776
- actions: i
796
+ actions: r
777
797
  }) {
778
- return pe({
798
+ return he({
779
799
  paymentAcceptorId: s,
780
- paymentGatewayVariant: D,
800
+ paymentGatewayVariant: S,
781
801
  adyen: {
782
802
  ...e ? { details: e } : {},
783
- ...n ? { redirect_result: n } : {},
803
+ ...a ? { redirect_result: a } : {},
784
804
  ...t ? { threeds_result: t } : {},
785
805
  ...o ? { payment_data: o } : {}
786
806
  }
787
807
  }).then((c) => {
788
- i || (b = void 0);
789
- const T = We(c);
790
- if (T === "SUCCEEDED") {
791
- i ? i.resolve({ resultCode: "Authorised" }) : W();
808
+ r || (R = void 0);
809
+ const N = We(c);
810
+ if (N === "SUCCEEDED") {
811
+ r ? r.resolve({ resultCode: "Authorised" }) : Q();
792
812
  return;
793
813
  }
794
- if (T === "UNCONFIRMED") {
814
+ if (N === "UNCONFIRMED") {
795
815
  O("PAYMENT_DETAILS_UNCONFIRMED", {
796
816
  paymentStatus: c.payment_status
797
817
  });
@@ -805,8 +825,8 @@ const at = (u) => {
805
825
  paymentAcceptorId: s,
806
826
  extra: { paymentStatus: c.payment_status }
807
827
  })
808
- ), i) {
809
- i.resolve({ resultCode: "Refused" });
828
+ ), r) {
829
+ r.resolve({ resultCode: "Refused" });
810
830
  return;
811
831
  }
812
832
  _({
@@ -824,23 +844,23 @@ const at = (u) => {
824
844
  cause: c
825
845
  }),
826
846
  c
827
- ), i) {
847
+ ), r) {
828
848
  O("PAYMENT_DETAILS_CALL_FAILED", {}, c);
829
849
  return;
830
850
  }
831
- B(), _({
851
+ Z(), _({
832
852
  code: "PAYMENT_DETAILS_CALL_FAILED",
833
853
  message: "Failed fetching payment details",
834
854
  error: c
835
855
  });
836
856
  });
837
857
  }
838
- async function Oe() {
839
- const e = ze(
840
- a.paymentMethodOptionResponseEntry.payment_acceptor.id
858
+ async function Me() {
859
+ const e = et(
860
+ n.paymentMethodOptionResponseEntry.payment_acceptor.id
841
861
  );
842
862
  if (e) {
843
- if (Ge(), e.kind === "MISSING_PAYMENT_ACCEPTOR") {
863
+ if (tt(), e.kind === "MISSING_PAYMENT_ACCEPTOR") {
844
864
  d.error(
845
865
  "INVALID_REDIRECT_RESULT",
846
866
  "Redirect result is set but payment acceptor id is missing",
@@ -855,72 +875,72 @@ const at = (u) => {
855
875
  O("INVALID_REDIRECT_RESULT");
856
876
  return;
857
877
  }
858
- b = e.redirectResult, await X();
878
+ R = e.redirectResult, await ae();
859
879
  }
860
880
  }
861
- async function X() {
862
- if (b) {
863
- F = !0;
881
+ async function ae() {
882
+ if (R) {
883
+ U = !0;
864
884
  try {
865
- await Q({
866
- paymentAcceptorId: a.paymentMethodOptionResponseEntry.payment_acceptor.id,
867
- detailsResult: { redirectResult: b }
885
+ await te({
886
+ paymentAcceptorId: n.paymentMethodOptionResponseEntry.payment_acceptor.id,
887
+ detailsResult: { redirectResult: R }
868
888
  });
869
889
  } finally {
870
- F = !1;
890
+ U = !1;
871
891
  }
872
892
  }
873
893
  }
874
- async function ee() {
875
- const e = g.value, t = P + 1;
876
- await U(), e && t === P && (g.value = e);
894
+ async function ne() {
895
+ const e = g.value, t = b + 1;
896
+ await j(), e && t === b && (g.value = e);
877
897
  }
878
- async function Re() {
879
- if (g.value = void 0, !b) {
880
- await U();
898
+ async function De() {
899
+ if (g.value = void 0, !R) {
900
+ await j();
881
901
  return;
882
902
  }
883
- S = !1, await X(), await ee();
903
+ w = !1, await ae(), await ne();
884
904
  }
885
- return Me(async () => {
886
- await Oe(), await ee();
887
- }), De(() => {
888
- P++, Y();
889
- }), ke(
890
- () => a.paymentMethodOptionResponseEntry,
905
+ return ke(async () => {
906
+ await Me(), await ne();
907
+ }), Se(() => {
908
+ b++, z();
909
+ }), Ce(
910
+ () => n.paymentMethodOptionResponseEntry,
891
911
  (e, t) => {
892
- Le(e, t) || U();
912
+ Fe(e, t) || j();
893
913
  },
894
914
  { deep: !0 }
895
- ), (e, t) => (N(), K(Se, null, [
896
- L.value ? (N(), Z(xe, {
915
+ ), (e, t) => (v(), $(we, null, [
916
+ B.value ? (v(), K(Ue, {
897
917
  key: 0,
898
918
  variant: u.variant,
899
919
  redirecting: u.redirectsOnSuccess
900
- }, null, 8, ["variant", "redirecting"])) : g.value ? (N(), Z(Be, {
920
+ }, null, 8, ["variant", "redirecting"])) : g.value ? (v(), K(Ye, {
901
921
  key: 1,
902
922
  error: g.value,
903
- onRetry: Re
904
- }, null, 8, ["error"])) : z("", !0),
905
- $.value ? (N(), K("div", {
923
+ onRetry: De
924
+ }, null, 8, ["error"])) : H("", !0),
925
+ q.value ? (v(), $("div", {
906
926
  key: 2,
907
927
  ref_key: "dropInContainerRef",
908
- ref: y
909
- }, null, 512)) : z("", !0),
910
- I.value ? (N(), Z(Ce, {
928
+ ref: h
929
+ }, null, 512)) : H("", !0),
930
+ I.value ? (v(), K(Le, {
911
931
  key: 3,
912
932
  to: I.value
913
933
  }, [
914
- we("div", {
934
+ xe("div", {
915
935
  ref_key: "sepaNoticeRef",
916
- ref: w
936
+ ref: F
917
937
  }, [
918
- H(rt, { "billing-entity-name": u.billingEntityName }, null, 8, ["billing-entity-name"])
938
+ W(st, { "billing-entity-name": u.billingEntityName }, null, 8, ["billing-entity-name"])
919
939
  ], 512)
920
- ], 8, ["to"])) : z("", !0)
940
+ ], 8, ["to"])) : H("", !0)
921
941
  ], 64));
922
942
  }
923
943
  });
924
944
  export {
925
- Et as default
945
+ Tt as default
926
946
  };