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

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 (268) hide show
  1. package/README.md +152 -91
  2. package/dist/AddPaymentMethodModal-Cx203VXo.mjs +97 -0
  3. package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-BMHhLZnu.mjs +89 -0
  4. package/dist/{Alert.vue.es-ZPG49yR_.mjs → Alert.vue.es-DHJpiSdR.mjs} +1 -1
  5. package/dist/{Amount.vue.es-DPqHB8Xd.mjs → Amount.vue.es-CofcgmXt.mjs} +1 -1
  6. package/dist/AuthProvider.handle-BpFblzFx.mjs +46 -0
  7. package/dist/{Avatar.vue.es-geDQsZwu.mjs → Avatar.vue.es-CJdXXOiG.mjs} +1 -1
  8. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-BD84aBiU.mjs +64 -0
  9. package/dist/BillingInformationForm.lib-ad8B2Y1O.mjs +32 -0
  10. package/dist/BillingInformationForm.vue_vue_type_script_setup_true_lang-F5OVG0kO.mjs +340 -0
  11. package/dist/BillingInformationModal-Do3Fuu8A.mjs +85 -0
  12. package/dist/{Button.vue.es-j7iYlqtJ.mjs → Button.vue.es-CW7XfMBF.mjs} +1 -1
  13. package/dist/{ChargeOnDemandModal-CR01PkP_.mjs → ChargeOnDemandModal-B4ShPKLS.mjs} +46 -45
  14. package/dist/{Chip.vue.es-Dxx_0dte.mjs → Chip.vue.es-CYwWHyAT.mjs} +2 -2
  15. package/dist/CompanyPurchaseToggle.vue_vue_type_script_setup_true_lang-CVXHCSPb.mjs +510 -0
  16. package/dist/{Comparators.vue.es-DQBI3f7m.mjs → Comparators.vue.es-DYrKlE8t.mjs} +1 -1
  17. package/dist/{ContentWithAsideLayout-Bnbsq8_5.mjs → ContentWithAsideLayout-C2kFcft1.mjs} +1 -1
  18. package/dist/{ContextMenu.vue.es-BJO4U47Q.mjs → ContextMenu.vue.es-EXTx0NEt.mjs} +10 -10
  19. package/dist/{CustomerBillingInformation.vue.es-CmNpqcBw.mjs → CustomerBillingInformation.vue.es-CSKG6V3T.mjs} +3 -3
  20. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-DZZuAHIE.mjs +217 -0
  21. package/dist/CustomerShippingAddresses-Bdy4XWjE.mjs +282 -0
  22. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BEKwWob_.mjs +3124 -0
  23. package/dist/{DividerText.vue.es-BusbyeAI.mjs → DividerText.vue.es-Dq0JzI8C.mjs} +1 -1
  24. package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-wPma8Os-.mjs → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-3gf8pvR7.mjs} +3 -3
  25. package/dist/{ErrorNotification.vue.es-F068p7PY.mjs → ErrorNotification.vue.es-Cw7fqCg1.mjs} +2 -2
  26. package/dist/{FormMessage.vue.es-CwMQpIAW.mjs → FormMessage.vue.es-MrzQoSae.mjs} +1 -1
  27. package/dist/{IconButton.vue.es-D8DtBW9i.mjs → IconButton.vue.es-CpQbFw0x.mjs} +2 -2
  28. package/dist/{IconTitle.vue.es-6VJtjJX2.mjs → IconTitle.vue.es-CcOIFjbE.mjs} +3 -3
  29. package/dist/{Input.vue.es-BLyHcmu4.mjs → Input.vue.es-Cd55vQri.mjs} +4 -4
  30. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Dl1vTzQD.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-CqkGCbvg.mjs} +2 -2
  31. package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-DYskT3r7.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-BUu5M_gx.mjs} +7 -7
  32. package/dist/{InvoicePreview.vue.es-Cpf66_xV.mjs → InvoicePreview.vue.es-DHh5wruk.mjs} +7 -7
  33. package/dist/{InvoicePricingClauseChip.vue.es-CDrAE901.mjs → InvoicePricingClauseChip.vue.es-ZSOBp1se.mjs} +4 -4
  34. package/dist/{Label.vue.es-es7ZUBSP.mjs → Label.vue.es-CB6G8Krh.mjs} +3 -3
  35. package/dist/LoadFailedNotice.vue_vue_type_script_setup_true_lang-BZCtO2Er.mjs +20 -0
  36. package/dist/{Modal.vue.es-eeR9FmvQ.mjs → Modal.vue.es-CJFTVFSZ.mjs} +138 -127
  37. package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-D0pwpqIC.mjs +789 -0
  38. package/dist/{PaymentCompletedCard.vue_vue_type_script_setup_true_lang-CrjVPks0.mjs → PaymentCompletedCard.vue_vue_type_script_setup_true_lang-D08Qpgb0.mjs} +2 -2
  39. package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-DyjzaTK1.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-dl52PYcq.mjs} +4 -4
  40. package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BHQrWy6r.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-D0priVnA.mjs} +3 -3
  41. package/dist/{PaymentHistoryBlock-CN42ewCn.mjs → PaymentHistoryBlock-BSXlneqM.mjs} +1 -1
  42. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-C3Y5fHvA.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CXy0XGpn.mjs} +5 -5
  43. package/dist/{PaymentIntegrationForm-D3Ye7LZ5.mjs → PaymentIntegrationForm-Diua0GGJ.mjs} +1 -1
  44. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CLlm_Q2j.mjs +161 -0
  45. package/dist/{PaymentIntegrationFormAdyen-Fm-diCCO.mjs → PaymentIntegrationFormAdyen-D4FP0Vj5.mjs} +302 -282
  46. package/dist/{PaymentIntegrationFormStripe-BANBL6za.mjs → PaymentIntegrationFormStripe-vFzF_sCJ.mjs} +126 -117
  47. package/dist/{PaymentMethod.vue.es-t3-VyoE8.mjs → PaymentMethod.vue.es-vs6SaZOh.mjs} +200 -150
  48. package/dist/{PaymentMethodForm-CqP3GoNj.mjs → PaymentMethodForm-Buhe0aRQ.mjs} +1 -1
  49. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-RPPdBw_e.mjs +165 -0
  50. package/dist/{PaymentMethodSelector.vue_vue_type_script_setup_true_lang-D5wmRuCf.mjs → PaymentMethodSelector.vue_vue_type_script_setup_true_lang-DprL5TR8.mjs} +7 -7
  51. package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-DhkkiJaQ.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-BXbevI3r.mjs} +28 -26
  52. package/dist/PaymentMethodsModal-CnJP9UKp.mjs +192 -0
  53. package/dist/PlanCustomizationEditor-KHLSEUbb.mjs +864 -0
  54. package/dist/{PortalLinkUnverified-Cp60_kRJ.mjs → PortalLinkUnverified-DlZAkE93.mjs} +3 -3
  55. package/dist/{PortalNotAvailable-DzSQnfzw.mjs → PortalNotAvailable-CKIomNrm.mjs} +2 -2
  56. package/dist/{PricingGroupRangeInput.vue.es-Srq_3cga.mjs → PricingGroupRangeInput.vue.es-oHD-IT12.mjs} +8 -8
  57. package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-oRijnVnZ.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-wCW8YZHM.mjs} +16 -15
  58. package/dist/{RadioGroupExtended.vue.es-BbBMDf6l.mjs → RadioGroupExtended.vue.es-DsShmkKZ.mjs} +5 -5
  59. package/dist/Section.vue.es-DYmEtgBj.mjs +88 -0
  60. package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-OM19NPBh.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-CANXYTzu.mjs} +2 -2
  61. package/dist/ShippingAddressForm.vue_vue_type_script_setup_true_lang-CJp6ddhZ.mjs +144 -0
  62. package/dist/ShippingAddressesModal-Gxv2KxaW.mjs +283 -0
  63. package/dist/{StepInput.vue.es-ieh4EuJ7.mjs → StepInput.vue.es-sqA-VSsn.mjs} +4 -4
  64. package/dist/SubscriptionCancellationModal-DfAZ_uW6.mjs +4 -0
  65. package/dist/SubscriptionCancellationModal.vue_vue_type_script_setup_true_lang-BlbiDNIu.mjs +240 -0
  66. package/dist/SubscriptionCancellationSuccess.vue_vue_type_script_setup_true_lang-C1ko2xvR.mjs +64 -0
  67. package/dist/SubscriptionDetails.entry.ce-CdWV-8WN.mjs +764 -0
  68. package/dist/{SubscriptionSchedules-DMxX3GpK.mjs → SubscriptionSchedules-BfdVn1XA.mjs} +1 -1
  69. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-C8q8Q6h5.mjs +5413 -0
  70. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-qQ9gJOIs.mjs +90 -0
  71. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-CHlXP_2x.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-DYWjTzPV.mjs} +133 -108
  72. package/dist/Toggle.vue.es-S2g8WGY_.mjs +99 -0
  73. package/dist/{TooltipParagraph.vue.es-BES3zsYN.mjs → TooltipParagraph.vue.es-Bt-7LHr3.mjs} +18 -18
  74. package/dist/{TranslationOverride.vue_vue_type_script_setup_true_lang-BJmlNrXT.mjs → TranslationOverride.vue_vue_type_script_setup_true_lang-Cp_sFa52.mjs} +1 -1
  75. package/dist/TrialChip.vue.es-VZwQX079.mjs +47 -0
  76. package/dist/addonQuantity-D3bGVqjL.mjs +128 -0
  77. package/dist/adyen-CHgq2l6n.mjs +99 -0
  78. package/dist/adyenSdk-DUTO7xkT.mjs +63 -0
  79. package/dist/{api.es-qgvzNMU-.mjs → api.es-QaC926Xu.mjs} +2 -2
  80. package/dist/components/BillingInformation/BillingInformation.mjs +37 -41
  81. package/dist/components/BillingInformationForm/BillingInformationForm.mjs +45 -462
  82. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +33 -42
  83. package/dist/components/Invoice/Invoice.mjs +1087 -1019
  84. package/dist/components/InvoiceDetails/InvoiceDetails.mjs +38 -47
  85. package/dist/components/InvoiceHeader/InvoiceHeader.mjs +29 -34
  86. package/dist/components/InvoicesList/InvoicesList.mjs +33 -42
  87. package/dist/components/PaymentHistory/PaymentHistory.mjs +39 -48
  88. package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +56 -64
  89. package/dist/components/ShippingAddressForm/ShippingAddressForm.ce.d.ts +1 -0
  90. package/dist/components/ShippingAddressForm/ShippingAddressForm.mjs +212 -0
  91. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +34 -42
  92. package/dist/components/SubscriptionsList/SubscriptionsList.mjs +41 -50
  93. package/dist/components/WalletBalances/WalletBalances.mjs +46 -55
  94. package/dist/core/events.types.d.ts +1 -0
  95. package/dist/core/index.mjs +51 -34
  96. package/dist/{customElements-DK4GKNJG.mjs → customElements-B8c354Nu.mjs} +802 -768
  97. package/dist/{customer-lf6S5DBR.mjs → customer-CP-Wz7JO.mjs} +1 -1
  98. package/dist/{de-DE-Cyj_NtiI.mjs → de-DE-C9HrzHpE.mjs} +71 -5
  99. package/dist/{de-DE-UJ6X6jXu.mjs → de-DE-DAQmgEy5.mjs} +82 -19
  100. package/dist/{formControl-BZQLHnOO.mjs → formControl-C18sw44K.mjs} +275 -275
  101. package/dist/{formatting.es-RclXHhKo.mjs → formatting.es-DlJEzreG.mjs} +16 -13
  102. package/dist/{fr-FR-CRFoWQ7J.mjs → fr-FR-CHR3VWvd.mjs} +71 -5
  103. package/dist/{fr-FR-Cvvbkwlj.mjs → fr-FR-fz51-Ubw.mjs} +79 -16
  104. package/dist/{countryData.es-BegoD-cZ.mjs → getCountryNameByCode.es-OGxn_zT0.mjs} +7 -2
  105. package/dist/icon-sprite.svg.es-2S3rv8NW.mjs +4 -0
  106. package/dist/index.es-Bv55VtdE.mjs +633 -0
  107. package/dist/{index.es-BrVTOW5D.mjs → index.es-C7J3WGGo.mjs} +4 -4
  108. package/dist/index.mjs +37 -33
  109. package/dist/invoices-I7PghcPV.mjs +143 -0
  110. package/dist/{it-IT-DnJP5URH.mjs → it-IT-BpCkTMZL.mjs} +73 -10
  111. package/dist/{it-IT-DObZEc-U.mjs → it-IT-Dzc7DmmL.mjs} +71 -5
  112. package/dist/{nl-NL-q9xfTZF0.mjs → nl-NL-22C8OcIM.mjs} +79 -16
  113. package/dist/{nl-NL-C02xHilF.mjs → nl-NL-Dut_QwsY.mjs} +71 -5
  114. package/dist/paymentIntegrationFormLoaders-BFMAMpcA.mjs +31 -0
  115. package/dist/{paymentMethods-8w-ccfY_.mjs → paymentMethods-aGKIi7DS.mjs} +22 -21
  116. package/dist/{paymentOutcome-B6sW1eCV.mjs → paymentOutcome-Cv7hTFVu.mjs} +1 -1
  117. package/dist/paymentRedirect-DaS8Kccc.mjs +66 -0
  118. package/dist/payments-BKoKpoLN.mjs +71 -0
  119. package/dist/preloadPaymentIntegrationForms-Buwal_JR.mjs +9 -0
  120. package/dist/pricing-Y-7ELzN-.mjs +42 -0
  121. package/dist/{pricingItem.es-bCPArbTa.mjs → pricingItem.es-BafitMMY.mjs} +1 -1
  122. package/dist/pricingPlanScheduleOverrides-CGm_-jJq.mjs +291 -0
  123. package/dist/randomUuid-BE_IQ-aq.mjs +10 -0
  124. package/dist/screens/Checkout/Checkout.mjs +1098 -3
  125. package/dist/screens/CheckoutSession/CheckoutSession.ce.d.ts +1 -0
  126. package/dist/screens/CheckoutSession/CheckoutSession.mjs +1322 -0
  127. package/dist/screens/CustomerOverview/CustomerOverview.mjs +209 -133
  128. package/dist/screens/PayInvoice/PayInvoice.mjs +283 -275
  129. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +92 -97
  130. package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +2 -2
  131. package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +915 -404
  132. package/dist/{subscription-BwzkagDI.mjs → subscription-DQ5mRp_e.mjs} +10 -10
  133. package/dist/subscriptions-B7dNqi1C.mjs +99 -0
  134. package/dist/timePeriod.es-R9U0wLlB.mjs +13 -0
  135. package/dist/types/components/customer/BillingInformationForm/BillingInformationForm.types.d.ts +11 -14
  136. package/dist/types/components/customer/CheckoutForm/CheckoutAddressFields.types.d.ts +2 -9
  137. package/dist/types/components/customer/CheckoutForm/CheckoutForm.types.d.ts +10 -0
  138. package/dist/types/components/customer/CustomerPaymentMethodsBlock/CustomerPaymentMethodsBlock.types.d.ts +6 -0
  139. package/dist/types/components/payments/AddPaymentMethodModal/AddPaymentMethodModal.types.d.ts +17 -0
  140. package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethodApplePay.types.d.ts +3 -2
  141. package/dist/types/components/payments/ExpressPaymentMethods/ExpressPaymentMethods.types.d.ts +3 -2
  142. package/dist/types/components/payments/OnDemandPaymentModalShell/OnDemandPaymentModalShell.types.d.ts +2 -0
  143. package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +12 -1
  144. package/dist/types/components/payments/PaymentMethodsList/PaymentMethodsList.types.d.ts +2 -0
  145. package/dist/types/components/payments/PaymentMethodsModal/PaymentMethodsModal.types.d.ts +22 -0
  146. package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.lib.types.d.ts +1 -1
  147. package/dist/types/components/providers/AuthProvider/AuthProvider.vue.d.ts +7 -1
  148. package/dist/types/components/providers/EntryProvider/EntryProvider.types.d.ts +2 -2
  149. package/dist/types/components/providers/EntryProvider/EntryProvider.vue.d.ts +3 -11
  150. package/dist/types/components/providers/ErrorBoundary/ErrorBoundary.vue.d.ts +1 -5
  151. package/dist/types/components/providers/HostElementProvider/HostElementProvider.lib.d.ts +11 -0
  152. package/dist/types/components/providers/HostElementProvider/composables/useHostEvent.d.ts +12 -0
  153. package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +5 -4
  154. package/dist/types/components/providers/PortalProvider/PortalProvider.lib.d.ts +3 -3
  155. package/dist/types/components/providers/PortalProvider/PortalProvider.types.d.ts +3 -3
  156. package/dist/types/components/providers/PortalProvider/PortalProvider.vue.d.ts +6 -1
  157. package/dist/types/components/providers/PortalProvider/composables/usePortal.d.ts +1 -0
  158. package/dist/types/components/providers/Provider/Provider.types.d.ts +10 -3
  159. package/dist/types/components/providers/Provider/Provider.vue.d.ts +3 -14
  160. package/dist/types/components/subscriptions/ChargeOnDemandModal/ChargeOnDemandModal.types.d.ts +1 -1
  161. package/dist/types/components/subscriptions/OrderSummary.types.d.ts +14 -0
  162. package/dist/types/components/subscriptions/OrderSummaryInvoice.types.d.ts +14 -1
  163. package/dist/types/components/subscriptions/PlanCustomizationForm/PlanCustomizationEditor.types.d.ts +9 -0
  164. package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditor.types.d.ts +4 -0
  165. package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditorItem.types.d.ts +2 -0
  166. package/dist/types/components/subscriptions/PlanCustomizationForm/UnitsEditor.types.d.ts +4 -0
  167. package/dist/types/components/subscriptions/PlanCustomizationForm/UnitsEditorItem.types.d.ts +2 -0
  168. package/dist/types/components/subscriptions/SubscriptionCancellationSuccess/SubscriptionCancellationSuccess.types.d.ts +4 -0
  169. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +10 -9
  170. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSuccess.types.d.ts +5 -0
  171. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSummary.types.d.ts +3 -0
  172. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionPlanChangeSummary.types.d.ts +4 -0
  173. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionPlanSelector.types.d.ts +7 -0
  174. package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsList.types.d.ts +1 -0
  175. package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsListItem.types.d.ts +1 -0
  176. package/dist/types/components/wallets/AutoTopUpModal/AutoTopUpModal.types.d.ts +3 -1
  177. package/dist/types/index.d.ts +5 -1
  178. package/dist/types/public/components/BillingInformation/BillingInformation.types.d.ts +5 -0
  179. package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.types.d.ts +1 -2
  180. package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.types.d.ts +6 -2
  181. package/dist/types/public/components/Invoice/Invoice.types.d.ts +7 -7
  182. package/dist/types/public/components/InvoiceHeader/InvoiceHeader.types.d.ts +2 -2
  183. package/dist/types/public/components/InvoicesList/InvoicesList.types.d.ts +6 -7
  184. package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.types.d.ts +1 -1
  185. package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.types.d.ts +19 -14
  186. package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.entry.ce.d.ts +1 -0
  187. package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.entry.types.d.ts +6 -0
  188. package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.types.d.ts +5 -0
  189. package/dist/types/public/components/SubscriptionsList/SubscriptionsList.types.d.ts +10 -1
  190. package/dist/types/public/core/action-request.types.d.ts +18 -24
  191. package/dist/types/public/core/events.types.d.ts +99 -0
  192. package/dist/types/public/core/index.d.ts +3 -1
  193. package/dist/types/public/core/types.d.ts +11 -2
  194. package/dist/types/public/screens/Checkout/Checkout.entry.types.d.ts +1 -7
  195. package/dist/types/public/screens/Checkout/Checkout.source.types.d.ts +151 -0
  196. package/dist/types/public/screens/Checkout/Checkout.types.d.ts +7 -30
  197. package/dist/types/public/screens/CheckoutSession/CheckoutSession.entry.ce.d.ts +1 -0
  198. package/dist/types/public/screens/CheckoutSession/CheckoutSession.entry.types.d.ts +3 -0
  199. package/dist/types/public/screens/CustomerOverview/CustomerOverview.types.d.ts +8 -2
  200. package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +0 -6
  201. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.configuration.types.d.ts +2 -19
  202. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.types.d.ts +2 -3
  203. package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.types.d.ts +2 -1
  204. package/dist/types/services/paymentMethods.types.d.ts +12 -1
  205. package/dist/types/types/EntryBaseProps.d.ts +10 -6
  206. package/dist/types/types/branding.d.ts +15 -0
  207. package/dist/types/types/checkoutSession.d.ts +199 -0
  208. package/dist/types/types/errors.d.ts +2 -0
  209. package/dist/types/types/pricingPlanGroup.d.ts +25 -0
  210. package/dist/{useActionDispatchProvider-ChAHdwR8.mjs → useActionDispatchProvider-BCtk-FGU.mjs} +1 -1
  211. package/dist/useAddressFormats-CtE4QaVU.mjs +1998 -0
  212. package/dist/useCheckoutForm-BhXcmnUi.mjs +3355 -0
  213. package/dist/{useCustomer-CTMhg1nd.mjs → useCustomer-mQysxUwp.mjs} +2 -2
  214. package/dist/useDefaultPaymentMethod-Dliq6_Yw.mjs +39 -0
  215. package/dist/useExperimentalFeature-Bw6bBtay.mjs +6 -0
  216. package/dist/useHostEvent-MtRG6W2B.mjs +12 -0
  217. package/dist/{useIncrementalLoading-CBVutPH8.mjs → useIncrementalLoading-CJSj1945.mjs} +2 -2
  218. package/dist/{useInvoiceData-qUGbBAQK.mjs → useInvoiceData-BEZIvw32.mjs} +2 -2
  219. package/dist/{useInvoicesList-wJvZAJpW.mjs → useInvoicesList-CrXjsmei.mjs} +140 -138
  220. package/dist/{sorting.es-C0pdMgX0.mjs → useIsMounted.es-BNPhTTHE.mjs} +11 -10
  221. package/dist/{useLoadInitialData-UvfYXgbi.mjs → useLoadInitialData-Bomj_1mo.mjs} +1 -1
  222. package/dist/usePaymentFormHold-CYZ4BdOw.mjs +19 -0
  223. package/dist/{usePaymentMethodAvailability-35l4pWdH.mjs → usePaymentMethodAvailability-DR_neLeZ.mjs} +4 -4
  224. package/dist/usePaymentMethodOptions-CuHoQx3K.mjs +67 -0
  225. package/dist/{usePaymentMethods-De7hlLHo.mjs → usePaymentMethods-BDdetXts.mjs} +2 -2
  226. package/dist/{usePayments-hWS7fnOx.mjs → usePayments-B5Z9Kfbv.mjs} +20 -18
  227. package/dist/usePortal-DuLR5Mid.mjs +14 -0
  228. package/dist/{useService-BwzIBIRp.mjs → useService-2aOFBTxU.mjs} +1 -1
  229. package/dist/useShippingAddresses-BvThNpez.mjs +122 -0
  230. package/dist/useSubscription-Dzo-kBpQ.mjs +35 -0
  231. package/dist/useSubscriptionActions-CWaNRoZ7.mjs +44 -0
  232. package/dist/useWatchDebounced-DkXgKe0E.mjs +20 -0
  233. package/dist/{wallets.es-eH2C2ygn.mjs → wallets.es-DRlUVd2R.mjs} +1 -1
  234. package/package.json +41 -11
  235. package/dist/AuthProvider.handle-SRR_04XS.mjs +0 -50
  236. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-nqKbgY7G.mjs +0 -58
  237. package/dist/Checkout.entry.ce-CopWuLJC.mjs +0 -4169
  238. package/dist/CheckoutAddressFields.vue_vue_type_script_setup_true_lang-CEnM1uxK.mjs +0 -828
  239. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Jyb5ZN3s.mjs +0 -136
  240. package/dist/CustomerShippingAddresses-BRPukhRI.mjs +0 -397
  241. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DJnr5D56.mjs +0 -2936
  242. package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-B_FpibLA.mjs +0 -441
  243. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-D07SEP8a.mjs +0 -181
  244. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-CMRMbL3d.mjs +0 -161
  245. package/dist/PlanCustomizationEditor-B76UNEMm.mjs +0 -791
  246. package/dist/Section.vue.es-Oqn1wGPZ.mjs +0 -72
  247. package/dist/ShippingAddressesModal-c7nqf4Ny.mjs +0 -418
  248. package/dist/SubscriptionDetails.entry.ce-uYv45FGH.mjs +0 -1044
  249. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DXro_64f.mjs +0 -5200
  250. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-BZNsqN4G.mjs +0 -203
  251. package/dist/TrialChip.vue.es-C51z1ZiA.mjs +0 -35
  252. package/dist/addonQuantity-CCVaA3e-.mjs +0 -758
  253. package/dist/adyenSdk-B01MB9Ia.mjs +0 -58
  254. package/dist/getCountryNameByCode.es-BDHua7VM.mjs +0 -8
  255. package/dist/icon-sprite.svg.es-BWBB8SGw.mjs +0 -4
  256. package/dist/invoices-DdREPDXV.mjs +0 -123
  257. package/dist/paymentMethods-Goa25rTs.mjs +0 -61
  258. package/dist/payments-CKpU1K3t.mjs +0 -68
  259. package/dist/pricing-CEaZGgKe.mjs +0 -29
  260. package/dist/pricingPlanScheduleOverrides-BBp-DmpV.mjs +0 -233
  261. package/dist/pricingPlanSchedules-DSMptcAh.mjs +0 -38
  262. package/dist/subscriptions-B5bH8hsI.mjs +0 -66
  263. package/dist/taxId.es-e6NEvprh.mjs +0 -243
  264. package/dist/types/components/payments/ExpressPaymentMethodButton/ExpressPaymentMethodButton.types.d.ts +0 -3
  265. package/dist/useCustomerFormLabels-D4oDnfxA.mjs +0 -1173
  266. package/dist/usePaymentFormHold-Cwdr-vyc.mjs +0 -181
  267. package/dist/usePortal-DUfD6hrA.mjs +0 -7
  268. package/dist/useTimePeriod.es-BUorDLVK.mjs +0 -93
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./PaymentMethodForm.vue_vue_type_script_setup_true_lang-CMRMbL3d.mjs";
1
+ import { _ as f } from "./PaymentMethodForm.vue_vue_type_script_setup_true_lang-RPPdBw_e.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -0,0 +1,165 @@
1
+ import { defineComponent as $, ref as p, computed as a, openBlock as m, createBlock as r, unref as i, withCtx as f, createElementVNode as H, normalizeClass as q, createVNode as w, mergeProps as Z, createTextVNode as g, toDisplayString as I, createCommentVNode as D } from "vue";
2
+ import { g as K, a as j } from "./customer.es-DQKl6wFt.mjs";
3
+ import { _ as C } from "./Button.vue.es-CW7XfMBF.mjs";
4
+ import { _ as z } from "./Section.vue.es-DYmEtgBj.mjs";
5
+ import { a as Y } from "./customElements-B8c354Nu.mjs";
6
+ import { _ as G } from "./Skeleton.vue_vue_type_script_setup_true_lang-D7MFjvrP.mjs";
7
+ import { _ as J } from "./PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CLlm_Q2j.mjs";
8
+ import { u as Q, _ as W } from "./usePaymentMethodAvailability-DR_neLeZ.mjs";
9
+ import { u as X } from "./usePaymentFormHold-CYZ4BdOw.mjs";
10
+ import { s as ee } from "./paymentRedirect-DaS8Kccc.mjs";
11
+ import { u as te } from "./useHostEvent-MtRG6W2B.mjs";
12
+ const oe = "NL", fe = /* @__PURE__ */ $({
13
+ __name: "PaymentMethodForm",
14
+ props: {
15
+ customer: { type: Object },
16
+ paymentMethodOptions: { type: Array },
17
+ configuration: { type: Object },
18
+ isLoading: { type: Boolean, default: !1 },
19
+ title: { type: String },
20
+ hideSubmitButton: { type: Boolean }
21
+ },
22
+ emits: ["success", "failure"],
23
+ setup(c, { expose: A, emit: O }) {
24
+ const L = {
25
+ currency: "EUR",
26
+ quantity: "0"
27
+ }, e = c, v = O, { dispatch: y, componentName: h } = te(), { $t: l } = Y(), { availability: N } = Q({
28
+ paymentMethodOptions: () => e.paymentMethodOptions,
29
+ isLoading: () => e.isLoading,
30
+ context: () => {
31
+ var o;
32
+ return { invoiceId: (o = e.configuration) == null ? void 0 : o.invoiceId };
33
+ }
34
+ }), d = p(), n = p(!1), { isFormHeld: E, handleActionRequired: R } = X(n), u = p(!1);
35
+ function _() {
36
+ d.value && (n.value = !0, d.value.submit());
37
+ }
38
+ const P = a(
39
+ () => l({
40
+ defaultMessage: "Save payment method",
41
+ description: "Label of the button that stores the entered payment method",
42
+ id: "components.payment_method_form.submit_button.label"
43
+ })
44
+ );
45
+ A({ submit: _, isPaymentPending: n, isCompleted: u });
46
+ function k() {
47
+ n.value = !1, u.value = !0, t.value.mode === "payment" ? y("solvimon-payment-succeeded", {
48
+ componentName: h,
49
+ invoiceId: t.value.invoiceId
50
+ }) : y("solvimon-payment-method-added", { componentName: h }), v("success");
51
+ }
52
+ function M(o) {
53
+ n.value = !1, v("failure", o);
54
+ }
55
+ function S() {
56
+ n.value = !1;
57
+ }
58
+ const t = a(() => e.configuration ?? {}), U = a(() => t.value.mode === "payment" ? "AUTHORIZE" : "TOKENIZE"), B = a(
59
+ () => u.value && !e.hideSubmitButton && !!t.value.successRedirectUrl
60
+ ), F = a(
61
+ () => t.value.successRedirectLabel ?? l({
62
+ defaultMessage: "Continue",
63
+ description: "Label of the button that leaves the form once the payment method is stored",
64
+ id: "components.payment_method_form.continue_button.label"
65
+ })
66
+ );
67
+ function T() {
68
+ const { successRedirectUrl: o } = t.value;
69
+ o && ee(o);
70
+ }
71
+ const x = a(
72
+ () => t.value.countryCode || K(e.customer) || oe
73
+ ), V = a(() => {
74
+ const o = j(e.customer), s = {
75
+ amount: t.value.amount ?? L,
76
+ paymentMethodOptions: e.paymentMethodOptions,
77
+ countryCode: x.value,
78
+ ...e.customer.email ? { email: e.customer.email } : {},
79
+ ...o ? { name: o } : {},
80
+ invoiceId: t.value.invoiceId,
81
+ // A payment names its customer too, as pay-invoice's does, so a card saved with it is theirs.
82
+ customerId: e.customer.id
83
+ };
84
+ if (t.value.mode === "payment") {
85
+ const { invoiceId: b } = t.value;
86
+ return {
87
+ ...s,
88
+ variant: "AUTHORIZE",
89
+ context: {
90
+ type: "INVOICE",
91
+ related_resource_ids: [{ type: "INVOICE", id: b }]
92
+ }
93
+ };
94
+ }
95
+ return {
96
+ ...s,
97
+ variant: "TOKENIZE"
98
+ };
99
+ });
100
+ return (o, s) => c.isLoading ? (m(), r(G, {
101
+ key: 0,
102
+ variant: "section",
103
+ class: "sv-payment-method-form sv-root sv-component sv-loading min-h-[180px]"
104
+ })) : i(N) === "UNAVAILABLE" ? (m(), r(W, {
105
+ key: 1,
106
+ class: "sv-payment-method-form sv-root sv-component",
107
+ variant: U.value
108
+ }, null, 8, ["variant"])) : (m(), r(i(z), {
109
+ key: 2,
110
+ class: "sv-payment-method-form sv-root sv-component",
111
+ "no-border": "",
112
+ "no-spacing": "",
113
+ "content-background": "none",
114
+ title: c.title ?? i(l)({
115
+ defaultMessage: "Available payment methods",
116
+ description: "Title of the available payment methods form",
117
+ id: "components.payment_method_form.section_title"
118
+ })
119
+ }, {
120
+ default: f(() => [
121
+ H("div", {
122
+ class: q({ "pointer-events-none opacity-60": i(E) })
123
+ }, [
124
+ w(J, Z({
125
+ ref_key: "paymentIntegrationFormRef",
126
+ ref: d,
127
+ class: "sv-payment-method-form__integration"
128
+ }, V.value, {
129
+ onPaymentSuccess: k,
130
+ onPaymentFailed: M,
131
+ onInvalid: S,
132
+ onSubmitting: s[0] || (s[0] = (b) => n.value = !0),
133
+ onActionRequired: i(R)
134
+ }), null, 16, ["onActionRequired"])
135
+ ], 2),
136
+ B.value ? (m(), r(i(C), {
137
+ key: 0,
138
+ intent: "primary",
139
+ class: "mt-4 w-full",
140
+ onClick: T
141
+ }, {
142
+ default: f(() => [
143
+ g(I(F.value), 1)
144
+ ]),
145
+ _: 1
146
+ })) : !c.hideSubmitButton && !u.value ? (m(), r(i(C), {
147
+ key: 1,
148
+ intent: "primary",
149
+ class: "mt-4 w-full",
150
+ loading: n.value,
151
+ onClick: _
152
+ }, {
153
+ default: f(() => [
154
+ g(I(P.value), 1)
155
+ ]),
156
+ _: 1
157
+ }, 8, ["loading"])) : D("", !0)
158
+ ]),
159
+ _: 1
160
+ }, 8, ["title"]));
161
+ }
162
+ });
163
+ export {
164
+ fe as _
165
+ };
@@ -1,11 +1,11 @@
1
1
  import { computed as _, defineComponent as B, toRef as V, openBlock as r, createElementBlock as k, createBlock as u, withCtx as p, createTextVNode as v, toDisplayString as b, unref as o, Fragment as N, createElementVNode as A, createVNode as O, createCommentVNode as g } from "vue";
2
- import { _ as E } from "./PaymentMethod.vue.es-t3-VyoE8.mjs";
3
- import { _ as I } from "./Button.vue.es-j7iYlqtJ.mjs";
4
- import { _ as S } from "./FormMessage.vue.es-CwMQpIAW.mjs";
5
- import { _ as $ } from "./RadioGroupExtended.vue.es-BbBMDf6l.mjs";
6
- import { a as P, d as T } from "./customElements-DK4GKNJG.mjs";
7
- import { a as m } from "./formatting.es-RclXHhKo.mjs";
8
- import { _ as x } from "./EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-wPma8Os-.mjs";
2
+ import { _ as E } from "./PaymentMethod.vue.es-vs6SaZOh.mjs";
3
+ import { _ as I } from "./Button.vue.es-CW7XfMBF.mjs";
4
+ import { _ as S } from "./FormMessage.vue.es-MrzQoSae.mjs";
5
+ import { _ as $ } from "./RadioGroupExtended.vue.es-DsShmkKZ.mjs";
6
+ import { a as P, d as T } from "./customElements-B8c354Nu.mjs";
7
+ import { a as m } from "./formatting.es-DlJEzreG.mjs";
8
+ import { _ as x } from "./EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-3gf8pvR7.mjs";
9
9
  function C(e) {
10
10
  var t, s, y, h, c, d;
11
11
  const a = [];
@@ -1,12 +1,12 @@
1
- import { defineComponent as P, ref as S, openBlock as d, createElementBlock as h, Fragment as _, renderList as E, createBlock as f, unref as e, withCtx as c, createVNode as m, createCommentVNode as y, createSlots as $, createElementVNode as v, createTextVNode as A, toDisplayString as I } from "vue";
2
- import { _ as g } from "./PaymentMethod.vue.es-t3-VyoE8.mjs";
3
- import { _ as N } from "./ErrorNotification.vue.es-F068p7PY.mjs";
4
- import { _ as x } from "./Section.vue.es-Oqn1wGPZ.mjs";
5
- import { a as C, d as V } from "./customElements-DK4GKNJG.mjs";
6
- import { M as q } from "./Modal.vue.es-eeR9FmvQ.mjs";
7
- import { u as M } from "./useService-BwzIBIRp.mjs";
8
- import { c as B } from "./paymentMethods-8w-ccfY_.mjs";
9
- function R({
1
+ import { defineComponent as P, ref as S, openBlock as d, createElementBlock as h, Fragment as f, renderList as E, createBlock as _, unref as e, withCtx as c, createVNode as m, createCommentVNode as y, createSlots as $, createElementVNode as v, createTextVNode as A, toDisplayString as B } from "vue";
2
+ import { _ as g } from "./PaymentMethod.vue.es-vs6SaZOh.mjs";
3
+ import { _ as I } from "./ErrorNotification.vue.es-Cw7fqCg1.mjs";
4
+ import { _ as x } from "./Section.vue.es-DYmEtgBj.mjs";
5
+ import { a as C, d as N } from "./customElements-B8c354Nu.mjs";
6
+ import { M as V } from "./Modal.vue.es-CJFTVFSZ.mjs";
7
+ import { u as M } from "./useService-2aOFBTxU.mjs";
8
+ import { c as q } from "./paymentMethods-aGKIi7DS.mjs";
9
+ function O({
10
10
  onSetDefault: s,
11
11
  onDeleteRequest: l
12
12
  }) {
@@ -30,8 +30,8 @@ function R({
30
30
  }), i;
31
31
  } };
32
32
  }
33
- function L() {
34
- const { archivePaymentMethod: s, setDefaultPaymentMethod: l } = B(), n = M({
33
+ function R() {
34
+ const { archivePaymentMethod: s, setDefaultPaymentMethod: l } = q(), n = M({
35
35
  service: (t) => s({ paymentMethodId: t })
36
36
  }), o = M({
37
37
  service: (t) => l({ paymentMethodId: t })
@@ -45,17 +45,18 @@ function L() {
45
45
  isSettingDefault: o.isPending
46
46
  };
47
47
  }
48
- const T = {
48
+ const L = {
49
49
  key: 0,
50
- class: "sv-payment-methods__list grid grid-cols-1 gap-4"
51
- }, z = { class: "sv-payment-methods__delete-modal-body flex flex-col gap-3" }, F = { class: "px-3 py-2" }, X = /* @__PURE__ */ P({
50
+ class: "sv-payment-methods__list grid grid-cols-1 gap-1"
51
+ }, T = { class: "sv-payment-methods__delete-modal-body flex flex-col gap-3" }, z = { class: "px-3 py-2" }, X = /* @__PURE__ */ P({
52
52
  __name: "PaymentMethodsList",
53
53
  props: {
54
- paymentMethods: { type: Array }
54
+ paymentMethods: { type: Array },
55
+ hideOptions: { type: Boolean }
55
56
  },
56
57
  emits: ["delete", "set-default"],
57
58
  setup(s, { emit: l }) {
58
- const n = l, { $t: o } = C(), t = S(null), { archive: i, archiveError: p, isArchiving: r, setDefault: b } = L(), { getContextMenuItems: D } = R({
59
+ const n = l, { $t: o } = C(), t = S(null), { archive: i, archiveError: p, isArchiving: r, setDefault: b } = R(), { getContextMenuItems: D } = O({
59
60
  onDeleteRequest: (a) => {
60
61
  t.value = a;
61
62
  },
@@ -82,9 +83,9 @@ const T = {
82
83
  n("delete", a), t.value = null;
83
84
  }
84
85
  }
85
- return (a, O) => (d(), h(_, null, [
86
- s.paymentMethods.length > 0 ? (d(), h("div", T, [
87
- (d(!0), h(_, null, E(s.paymentMethods, (u) => (d(), f(e(x), {
86
+ return (a, F) => (d(), h(f, null, [
87
+ s.paymentMethods.length > 0 ? (d(), h("div", L, [
88
+ (d(!0), h(f, null, E(s.paymentMethods, (u) => (d(), _(e(x), {
88
89
  key: u.id,
89
90
  class: "sv-payment-methods__item"
90
91
  }, {
@@ -92,13 +93,14 @@ const T = {
92
93
  m(e(g), {
93
94
  class: "sv-payment-methods__item-content",
94
95
  "payment-method": u,
95
- options: e(D)(u)
96
+ options: s.hideOptions ? void 0 : e(D)(u)
96
97
  }, null, 8, ["payment-method", "options"])
97
98
  ]),
98
99
  _: 2
99
100
  }, 1024))), 128))
100
101
  ])) : y("", !0),
101
- m(e(q), {
102
+ m(e(V), {
103
+ "full-screen-on-mobile": "",
102
104
  size: "md",
103
105
  "show-modal": !!t.value,
104
106
  "is-loading": e(r),
@@ -125,15 +127,15 @@ const T = {
125
127
  t.value ? {
126
128
  name: "body",
127
129
  fn: c(() => [
128
- v("div", z, [
129
- m(e(V), {
130
+ v("div", T, [
131
+ m(e(N), {
130
132
  variant: "body-sm",
131
133
  color: "subtle",
132
134
  tag: "p",
133
135
  class: "sv-payment-methods__delete-modal-explanation"
134
136
  }, {
135
137
  default: c(() => [
136
- A(I(e(o)({
138
+ A(B(e(o)({
137
139
  id: "payment_methods_list.delete_modal.body",
138
140
  defaultMessage: "Are you sure you want to delete this payment method?",
139
141
  description: "Confirmation message in the delete payment method modal"
@@ -146,13 +148,13 @@ const T = {
146
148
  class: "sv-payment-methods__delete-modal-payment-method"
147
149
  }, {
148
150
  default: c(() => [
149
- v("div", F, [
151
+ v("div", z, [
150
152
  m(e(g), { "payment-method": t.value }, null, 8, ["payment-method"])
151
153
  ])
152
154
  ]),
153
155
  _: 1
154
156
  }),
155
- e(p) ? (d(), f(e(N), {
157
+ e(p) ? (d(), _(e(I), {
156
158
  key: 0,
157
159
  class: "sv-payment-methods__delete-modal-error sv-error",
158
160
  title: e(o)({
@@ -0,0 +1,192 @@
1
+ import { defineComponent as H, ref as T, computed as a, watch as V, openBlock as c, createBlock as P, unref as e, createSlots as R, withCtx as p, createElementVNode as z, createVNode as u, createTextVNode as r, toDisplayString as y, createCommentVNode as S, createElementBlock as j } from "vue";
2
+ import { a as F, _ as q } from "./Button.vue.es-CW7XfMBF.mjs";
3
+ import { _ as G } from "./Section.vue.es-DYmEtgBj.mjs";
4
+ import { a as J, d as K } from "./customElements-B8c354Nu.mjs";
5
+ import { u as Q, a as U } from "./CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BEKwWob_.mjs";
6
+ import { _ as W } from "./PaymentMethodsList.vue_vue_type_script_setup_true_lang-BXbevI3r.mjs";
7
+ import { u as X } from "./AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-BMHhLZnu.mjs";
8
+ const Z = ["LIST", "ADD_PAYMENT_METHOD"], ee = { class: "grid grid-cols-1 gap-2 pt-2" }, ie = /* @__PURE__ */ H({
9
+ __name: "PaymentMethodsModal",
10
+ props: {
11
+ showModal: { type: Boolean },
12
+ start: { type: null },
13
+ customer: { type: Object },
14
+ paymentMethods: { type: Array },
15
+ paymentMethodOptions: { type: Array }
16
+ },
17
+ emits: ["close", "changed", "payment-failed"],
18
+ setup(m, { emit: A }) {
19
+ const t = m, d = A, { $t: o } = J(), h = T("LIST"), i = T("LIST"), {
20
+ settledOptions: O,
21
+ isPending: D,
22
+ hasNoOptions: w
23
+ } = X({
24
+ isOpen: a(() => t.showModal && !t.paymentMethodOptions),
25
+ customer: a(() => t.customer)
26
+ }), x = a(() => t.paymentMethodOptions ?? O.value), E = a(
27
+ () => !t.paymentMethodOptions && D.value
28
+ ), L = a(
29
+ () => t.paymentMethodOptions ? t.paymentMethodOptions.length === 0 : w.value
30
+ ), {
31
+ paneRef: k,
32
+ isActive: s,
33
+ isSaving: f,
34
+ open: _,
35
+ leave: v,
36
+ submit: C
37
+ } = Q({ step: h, name: "ADD_PAYMENT_METHOD", returnTo: "LIST" });
38
+ V(
39
+ () => t.showModal,
40
+ (g) => {
41
+ g && (i.value = t.start ?? "LIST", h.value = i.value);
42
+ },
43
+ { immediate: !0 }
44
+ );
45
+ const N = () => {
46
+ s.value && C();
47
+ }, M = () => {
48
+ if (!f.value) {
49
+ if (s.value && i.value === "LIST") {
50
+ v();
51
+ return;
52
+ }
53
+ d("close");
54
+ }
55
+ }, I = () => {
56
+ if (d("changed"), i.value === "ADD_PAYMENT_METHOD") {
57
+ d("close");
58
+ return;
59
+ }
60
+ v();
61
+ }, $ = a(
62
+ () => s.value ? o({
63
+ defaultMessage: "Add payment method",
64
+ id: "payment_methods_modal.add.title",
65
+ description: "Title of the payment methods modal while a payment method is added"
66
+ }) : o({
67
+ defaultMessage: "Payment methods",
68
+ id: "payment_methods_modal.title",
69
+ description: "Title of the modal that lists the customer's payment methods"
70
+ })
71
+ ), B = a(
72
+ () => s.value ? o({
73
+ defaultMessage: "Add a payment method to pay your invoices with.",
74
+ id: "payment_methods_modal.add.subtitle",
75
+ description: "Subtitle of the payment methods modal while a payment method is added"
76
+ }) : o({
77
+ defaultMessage: "Set your default payment method, or add or delete one.",
78
+ id: "payment_methods_modal.subtitle",
79
+ description: "Subtitle of the modal that lists the customer's payment methods"
80
+ })
81
+ ), Y = a(
82
+ () => o({
83
+ defaultMessage: "Save payment method",
84
+ id: "payment_methods_modal.save_button.label",
85
+ description: "Label of the button that stores the payment method being added"
86
+ })
87
+ ), b = a(
88
+ () => s.value && i.value === "LIST" ? o({
89
+ defaultMessage: "Back",
90
+ id: "payment_methods_modal.back_button.label",
91
+ description: "Label of the button that leaves adding a payment method for the list of payment methods"
92
+ }) : o({
93
+ defaultMessage: "Close",
94
+ id: "payment_methods_modal.close_button.label",
95
+ description: "Label of the button that closes the payment methods modal"
96
+ })
97
+ );
98
+ return (g, n) => (c(), P(U, {
99
+ ref_key: "addPaymentMethodRef",
100
+ ref: k,
101
+ class: "sv-payment-methods-modal",
102
+ "show-modal": m.showModal,
103
+ title: $.value,
104
+ "sub-title": B.value,
105
+ "cancel-button-text": b.value,
106
+ "confirm-button-text": Y.value,
107
+ "is-pending": e(f),
108
+ panes: e(Z),
109
+ step: h.value,
110
+ "add-payment-method-pane": "ADD_PAYMENT_METHOD",
111
+ "no-bottom-spacing": !e(s),
112
+ customer: m.customer,
113
+ "payment-method-options": x.value,
114
+ "is-payment-method-options-pending": E.value,
115
+ onConfirm: N,
116
+ onCancel: M,
117
+ onPaymentSuccess: I,
118
+ onPaymentFailed: n[3] || (n[3] = (l) => d("payment-failed", l))
119
+ }, R({
120
+ LIST: p(() => [
121
+ z("div", ee, [
122
+ m.paymentMethods.length === 0 ? (c(), P(e(G), {
123
+ key: 0,
124
+ class: "sv-empty-state sv-payment-methods-modal__empty"
125
+ }, {
126
+ default: p(() => [
127
+ u(e(K), {
128
+ variant: "body-sm",
129
+ color: "subtle",
130
+ "no-spacing": ""
131
+ }, {
132
+ default: p(() => [
133
+ r(y(e(o)({
134
+ defaultMessage: "You have no payment methods yet.",
135
+ id: "payment_methods_modal.empty_text",
136
+ description: "Shown in the payment methods modal when the customer has no payment methods"
137
+ })), 1)
138
+ ]),
139
+ _: 1
140
+ })
141
+ ]),
142
+ _: 1
143
+ })) : S("", !0),
144
+ u(W, {
145
+ "payment-methods": m.paymentMethods,
146
+ onSetDefault: n[0] || (n[0] = (l) => d("changed")),
147
+ onDelete: n[1] || (n[1] = (l) => d("changed"))
148
+ }, null, 8, ["payment-methods"]),
149
+ L.value ? S("", !0) : (c(), j("button", {
150
+ key: 1,
151
+ type: "button",
152
+ class: "sv-action sv-action--link sv-payment-methods-modal__add inline-flex w-fit items-center gap-1 rounded text-sm text-primary-900 hover:underline focus-visible:outline focus-visible:outline-2 focus-visible:outline-primary-600",
153
+ onClick: n[2] || (n[2] = //@ts-ignore
154
+ (...l) => e(_) && e(_)(...l))
155
+ }, [
156
+ u(e(F), {
157
+ icon: "add",
158
+ size: "xs"
159
+ }),
160
+ r(" " + y(e(o)({
161
+ defaultMessage: "Add a new payment method",
162
+ id: "payment_methods_modal.add_button.label",
163
+ description: "Label of the button in the payment methods modal that adds a payment method"
164
+ })), 1)
165
+ ]))
166
+ ])
167
+ ]),
168
+ _: 2
169
+ }, [
170
+ e(s) ? void 0 : {
171
+ name: "footer",
172
+ fn: p(() => [
173
+ u(e(q), {
174
+ size: "lg",
175
+ intent: "secondary",
176
+ class: "sv-action sv-action--secondary sv-payment-methods-modal__close w-full",
177
+ onClick: M
178
+ }, {
179
+ default: p(() => [
180
+ r(y(b.value), 1)
181
+ ]),
182
+ _: 1
183
+ })
184
+ ]),
185
+ key: "0"
186
+ }
187
+ ]), 1032, ["show-modal", "title", "sub-title", "cancel-button-text", "confirm-button-text", "is-pending", "panes", "step", "no-bottom-spacing", "customer", "payment-method-options", "is-payment-method-options-pending"]));
188
+ }
189
+ });
190
+ export {
191
+ ie as default
192
+ };