@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,9 +1,9 @@
1
- import { defineComponent as p, computed as M, openBlock as o, createElementBlock as I, createElementVNode as g, normalizeClass as N, createCommentVNode as h, renderSlot as B, createVNode as s, createBlock as u, withCtx as m, createTextVNode as f, toDisplayString as y, unref as v, shallowRef as S, watch as _, toValue as $, Fragment as L, mergeProps as C } from "vue";
2
- import { _ as R } from "./FormMessage.vue.es-CwMQpIAW.mjs";
3
- import { a as O } from "./ContextMenu.vue.es-BJO4U47Q.mjs";
4
- import { a as D, d as A } from "./customElements-DK4GKNJG.mjs";
5
- import { _ as T } from "./Chip.vue.es-Dxx_0dte.mjs";
6
- const E = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='%23f5f7f8'%20d='M0%200h40v40H0z'/%3e%3cmask%20id='a'%20width='28'%20height='28'%20x='6'%20y='6'%20maskUnits='userSpaceOnUse'%20style='mask-type:alpha'%3e%3cpath%20fill='%23d9d9d9'%20d='M6%206h28v28H6z'/%3e%3c/mask%3e%3cg%20mask='url(%23a)'%3e%3cpath%20fill='%23333'%20d='M11.8%2028a2%202%200%200%201-1.3-.6%202%202%200%200%201-.6-1.4V14q0-.8.6-1.4a2%202%200%200%201%201.3-.6h16.4q.8%200%201.3.6t.6%201.4v12q0%20.8-.6%201.4a2%202%200%200%201-1.3.6zm-.3-8.4h17v-3.4h-17z'/%3e%3c/g%3e%3c/svg%3e", V = { class: "shrink-0" }, Y = { class: "flex items-center justify-center overflow-clip rounded" }, z = ["src", "alt", "width", "height"], G = { class: "grow" }, H = { key: 0 }, U = {
1
+ import { defineComponent as p, computed as M, openBlock as o, createElementBlock as I, createElementVNode as g, normalizeClass as N, createCommentVNode as h, renderSlot as B, createVNode as s, createBlock as u, withCtx as m, createTextVNode as f, toDisplayString as y, unref as v, shallowRef as _, watch as S, toValue as $, Fragment as L, mergeProps as C } from "vue";
2
+ import { _ as R } from "./FormMessage.vue.es-CQ64C8dt.mjs";
3
+ import { _ as O } from "./ContextMenu.vue.es-CvX6O2IM.mjs";
4
+ import { a as D, d as A } from "./customElements-d7Bhfqi_.mjs";
5
+ import { _ as T } from "./Chip.vue.es-Dc6-PjEn.mjs";
6
+ const E = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='%23f5f7f8'%20d='M0%200h40v40H0z'/%3e%3cmask%20id='a'%20width='28'%20height='28'%20x='6'%20y='6'%20maskUnits='userSpaceOnUse'%20style='mask-type:alpha'%3e%3cpath%20fill='%23d9d9d9'%20d='M6%206h28v28H6z'/%3e%3c/mask%3e%3cg%20mask='url(%23a)'%3e%3cpath%20fill='%23333'%20d='M11.8%2028a2%202%200%200%201-1.3-.6%202%202%200%200%201-.6-1.4V14q0-.8.6-1.4a2%202%200%200%201%201.3-.6h16.4q.8%200%201.3.6t.6%201.4v12q0%20.8-.6%201.4a2%202%200%200%201-1.3.6zm-.3-8.4h17v-3.4h-17z'/%3e%3c/g%3e%3c/svg%3e", V = { class: "shrink-0" }, z = { class: "flex items-center justify-center overflow-clip rounded" }, Y = ["src", "alt", "width", "height"], G = { class: "grow" }, H = { key: 0 }, U = {
7
7
  key: 0,
8
8
  class: "pt-3"
9
9
  }, P = /* @__PURE__ */ p({
@@ -23,7 +23,7 @@ const E = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20widt
23
23
  class: N(["flex gap-3", { "opacity-50": t.disabled }])
24
24
  }, [
25
25
  g("div", V, [
26
- g("div", Y, [
26
+ g("div", z, [
27
27
  n.value ? (o(), I("img", {
28
28
  key: 0,
29
29
  src: n.value,
@@ -34,7 +34,7 @@ const E = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20widt
34
34
  "h-9 w-9": t.variant === "default",
35
35
  "h-5 w-5": t.variant === "condensed"
36
36
  })
37
- }, null, 10, z)) : h("", !0)
37
+ }, null, 10, Y)) : h("", !0)
38
38
  ])
39
39
  ]),
40
40
  g("div", G, [
@@ -65,7 +65,9 @@ const E = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20widt
65
65
  const e = D();
66
66
  return (n, r) => t.isDefault ? (o(), u(T, {
67
67
  key: 0,
68
- class: "mt-1 self-start"
68
+ size: "sm",
69
+ intent: "brand",
70
+ class: "ml-1 font-normal"
69
71
  }, {
70
72
  default: m(() => [
71
73
  f(y(v(e).$t({
@@ -112,8 +114,8 @@ const E = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20widt
112
114
  )
113
115
  }
114
116
  }, x = (t) => {
115
- const e = S();
116
- return _(
117
+ const e = _();
118
+ return S(
117
119
  () => $(t),
118
120
  (n, r, a) => {
119
121
  if (e.value = void 0, !n)
@@ -167,12 +169,12 @@ const E = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20widt
167
169
  default: m(() => {
168
170
  var d;
169
171
  return [
170
- f(y((d = n.value) == null ? void 0 : d.name), 1)
172
+ f(y((d = n.value) == null ? void 0 : d.name) + " ", 1),
173
+ s(k, { "is-default": t.isDefault }, null, 8, ["is-default"])
171
174
  ];
172
175
  }),
173
176
  _: 1
174
177
  }, 8, ["variant", "color"]),
175
- s(k, { "is-default": t.isDefault }, null, 8, ["is-default"]),
176
178
  s(w, {
177
179
  "is-inactive": t.paymentMethod.status === "INACTIVE"
178
180
  }, null, 8, ["is-inactive"])
@@ -251,7 +253,8 @@ const E = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20widt
251
253
  "no-spacing": ""
252
254
  }, {
253
255
  default: m(() => [
254
- f(" **** **** **** " + y(t.paymentMethod.card.last_four_digits ?? "****"), 1)
256
+ f(" **** **** **** " + y(t.paymentMethod.card.last_four_digits ?? "****") + " ", 1),
257
+ s(k, { "is-default": t.isDefault }, null, 8, ["is-default"])
255
258
  ]),
256
259
  _: 1
257
260
  }, 8, ["variant", "color"]),
@@ -267,7 +270,6 @@ const E = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20widt
267
270
  ]),
268
271
  _: 1
269
272
  })) : h("", !0),
270
- s(k, { "is-default": t.isDefault }, null, 8, ["is-default"]),
271
273
  s(w, {
272
274
  "is-inactive": t.paymentMethod.status === "INACTIVE"
273
275
  }, null, 8, ["is-inactive"])
@@ -383,12 +385,12 @@ const E = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20widt
383
385
  default: m(() => {
384
386
  var d;
385
387
  return [
386
- f(y((d = n.value) == null ? void 0 : d.name), 1)
388
+ f(y((d = n.value) == null ? void 0 : d.name) + " ", 1),
389
+ s(k, { "is-default": t.isDefault }, null, 8, ["is-default"])
387
390
  ];
388
391
  }),
389
392
  _: 1
390
393
  }, 8, ["variant", "color"]),
391
- s(k, { "is-default": t.isDefault }, null, 8, ["is-default"]),
392
394
  s(w, {
393
395
  "is-inactive": t.paymentMethod.status === "INACTIVE"
394
396
  }, null, 8, ["is-inactive"])
@@ -456,12 +458,12 @@ const E = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20widt
456
458
  default: m(() => {
457
459
  var d;
458
460
  return [
459
- f(y((d = n.value) == null ? void 0 : d.name), 1)
461
+ f(y((d = n.value) == null ? void 0 : d.name) + " ", 1),
462
+ s(k, { "is-default": t.isDefault }, null, 8, ["is-default"])
460
463
  ];
461
464
  }),
462
465
  _: 1
463
466
  }, 8, ["variant", "color"]),
464
- s(k, { "is-default": t.isDefault }, null, 8, ["is-default"]),
465
467
  s(w, {
466
468
  "is-inactive": t.paymentMethod.status === "INACTIVE"
467
469
  }, null, 8, ["is-inactive"])
@@ -564,7 +566,8 @@ const E = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20widt
564
566
  f(y(c.value.pending), 1)
565
567
  ]),
566
568
  _: 1
567
- })) : h("", !0)
569
+ })) : h("", !0),
570
+ s(k, { "is-default": t.isDefault }, null, 8, ["is-default"])
568
571
  ];
569
572
  }),
570
573
  _: 1
@@ -584,7 +587,6 @@ const E = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20widt
584
587
  }),
585
588
  _: 1
586
589
  })) : h("", !0),
587
- s(k, { "is-default": t.isDefault }, null, 8, ["is-default"]),
588
590
  s(w, {
589
591
  "is-inactive": t.paymentMethod.status === "INACTIVE"
590
592
  }, null, 8, ["is-inactive"])
@@ -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-DyiXLYRj.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-BHbanjR0.mjs";
4
+ import { _ as z } from "./Section.vue.es-CwKTCeZ1.mjs";
5
+ import { a as Y } from "./customElements-d7Bhfqi_.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-DU5wu66t.mjs";
8
+ import { u as Q, _ as W } from "./usePaymentMethodAvailability-B7NV0ZtX.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-pjoWJ7ZH.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";
2
+ import { _ as E } from "./PaymentMethod.vue.es-DAabE41t.mjs";
3
+ import { _ as I } from "./Button.vue.es-BHbanjR0.mjs";
4
+ import { _ as S } from "./FormMessage.vue.es-CQ64C8dt.mjs";
5
+ import { _ as $ } from "./RadioGroupExtended.vue.es-hDmUAKIA.mjs";
6
+ import { a as P, d as T } from "./customElements-d7Bhfqi_.mjs";
7
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";
8
+ import { _ as x } from "./EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DCUml1W4.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-DAabE41t.mjs";
3
+ import { _ as I } from "./ErrorNotification.vue.es-CWIVt5q9.mjs";
4
+ import { _ as x } from "./Section.vue.es-CwKTCeZ1.mjs";
5
+ import { a as C, d as N } from "./customElements-d7Bhfqi_.mjs";
6
+ import { M as V } from "./Modal.vue.es-CDjfZDDx.mjs";
7
+ import { u as M } from "./useService-DayNZhPh.mjs";
8
+ import { c as q } from "./paymentMethods-CG1fcG2v.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-BHbanjR0.mjs";
3
+ import { _ as G } from "./Section.vue.es-CwKTCeZ1.mjs";
4
+ import { a as J, d as K } from "./customElements-d7Bhfqi_.mjs";
5
+ import { u as Q, a as U } from "./CustomerWalletBalances.vue_vue_type_script_setup_true_lang-C50vGUvw.mjs";
6
+ import { _ as W } from "./PaymentMethodsList.vue_vue_type_script_setup_true_lang-DZ2Z-RMv.mjs";
7
+ import { u as X } from "./AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DF4PIR-A.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
+ };