@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,22 +1,23 @@
1
1
  import { defineComponent as ce, openBlock as i, createElementBlock as k, normalizeClass as G, createCommentVNode as M, useModel as Ee, computed as o, createBlock as h, createElementVNode as N, createVNode as b, withCtx as c, createTextVNode as v, toDisplayString as p, unref as n, Fragment as We, renderList as qe, renderSlot as je, mergeModels as Ae, ref as D, watch as J, reactive as Ke } from "vue";
2
2
  import { u as Xe, c as Pe } from "./formControl-BZQLHnOO.mjs";
3
3
  import { f as Je } from "./formatting.es-RclXHhKo.mjs";
4
- import { _ as P } from "./Button.vue.es-j7iYlqtJ.mjs";
5
- import { u as Qe, g as Ze, i as ea, t as aa } from "./SubscriptionDetails.entry.ce-uYv45FGH.mjs";
6
- import { _ as De } from "./InvoicePreview.vue.es-Cpf66_xV.mjs";
7
- import { _ as ta } from "./PaymentMethod.vue.es-t3-VyoE8.mjs";
8
- import { a as Te, d as $, e as Oe, f as ke } from "./customElements-DK4GKNJG.mjs";
9
- import { _ as na } from "./ErrorNotification.vue.es-F068p7PY.mjs";
10
- import { _ as Ce } from "./FormMessage.vue.es-CwMQpIAW.mjs";
11
- import { _ as oa } from "./RadioGroupExtended.vue.es-BbBMDf6l.mjs";
12
- import { _ as da } from "./StepInput.vue.es-ieh4EuJ7.mjs";
13
- import { _ as ia } from "./IconButton.vue.es-D8DtBW9i.mjs";
4
+ import { _ as P } from "./Button.vue.es-BHbanjR0.mjs";
5
+ import { u as Qe, g as Ze, i as ea, t as aa } from "./SubscriptionDetails.entry.ce-DuP8TtKu.mjs";
6
+ import { _ as De } from "./InvoicePreview.vue.es-BvnikfEH.mjs";
7
+ import { _ as ta } from "./PaymentMethod.vue.es-DAabE41t.mjs";
8
+ import { a as Te, d as $, e as Oe, f as ke } from "./customElements-d7Bhfqi_.mjs";
9
+ import { _ as na } from "./ErrorNotification.vue.es-CWIVt5q9.mjs";
10
+ import { _ as Ce } from "./FormMessage.vue.es-CQ64C8dt.mjs";
11
+ import { _ as oa } from "./RadioGroupExtended.vue.es-hDmUAKIA.mjs";
12
+ import { _ as da } from "./StepInput.vue.es-GkrOtOVa.mjs";
13
+ import { _ as ia } from "./IconButton.vue.es-BXzwMvVk.mjs";
14
14
  import { _ as ra } from "./useLazyFloating.es-CycqRyeb.mjs";
15
- import { _ as sa } from "./Section.vue.es-Oqn1wGPZ.mjs";
16
- import { g as la, b as ca, c as ma, d as ua, e as ha, i as va } from "./CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DJnr5D56.mjs";
17
- import { c as pa } from "./invoices-DdREPDXV.mjs";
18
- import { i as ga } from "./invoiceState-BJVHaKs7.mjs";
19
- import { _ as fa } from "./EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-wPma8Os-.mjs";
15
+ import { _ as sa } from "./Section.vue.es-CwKTCeZ1.mjs";
16
+ import { g as la, u as ca, d as ma, a as ua, i as ha } from "./CustomerWalletBalances.vue_vue_type_script_setup_true_lang-C50vGUvw.mjs";
17
+ import { c as va } from "./invoices-CXvL8KQx.mjs";
18
+ import { i as pa } from "./invoiceState-BJVHaKs7.mjs";
19
+ import { _ as ga } from "./EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DCUml1W4.mjs";
20
+ import { u as fa } from "./AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DF4PIR-A.mjs";
20
21
  const V = (e) => e.replaceAll("_", " ").toLowerCase().replace(/^./, (y) => y.toUpperCase()), _a = (e) => {
21
22
  var y, d, _, a, E, s;
22
23
  const g = [];
@@ -212,7 +213,7 @@ const V = (e) => e.replaceAll("_", " ").toLowerCase().replace(/^./, (y) => y.toU
212
213
  name: `charge-on-demand-units-${m.pricingItemId}`,
213
214
  disabled: e.disabled,
214
215
  size: "sm",
215
- "onUpdate:modelValue": (F) => g(m, F)
216
+ "onUpdate:modelValue": (B) => g(m, B)
216
217
  }, null, 8, ["model-value", "initial-value", "name", "disabled", "onUpdate:modelValue"])
217
218
  ]),
218
219
  b(ia, {
@@ -226,7 +227,7 @@ const V = (e) => e.replaceAll("_", " ").toLowerCase().replace(/^./, (y) => y.toU
226
227
  description: "Removes an on-demand item from the order",
227
228
  id: "charge_on_demand.item.remove"
228
229
  }),
229
- onClick: (F) => s(m)
230
+ onClick: (B) => s(m)
230
231
  }, null, 8, ["disabled", "tooltip", "onClick"])
231
232
  ])) : C ? (i(), h(P, {
232
233
  key: 1,
@@ -236,7 +237,7 @@ const V = (e) => e.replaceAll("_", " ").toLowerCase().replace(/^./, (y) => y.toU
236
237
  "icon-prefix": "check",
237
238
  "aria-pressed": !0,
238
239
  disabled: e.disabled,
239
- onClick: (F) => s(m)
240
+ onClick: (B) => s(m)
240
241
  }, {
241
242
  default: c(() => [
242
243
  v(p(n(a)({
@@ -254,7 +255,7 @@ const V = (e) => e.replaceAll("_", " ").toLowerCase().replace(/^./, (y) => y.toU
254
255
  "icon-prefix": "add",
255
256
  "aria-pressed": m.priceType === "FIXED" ? !1 : void 0,
256
257
  disabled: e.disabled,
257
- onClick: (F) => E(m)
258
+ onClick: (B) => E(m)
258
259
  }, {
259
260
  default: c(() => [
260
261
  v(p(n(a)({
@@ -414,7 +415,7 @@ const V = (e) => e.replaceAll("_", " ").toLowerCase().replace(/^./, (y) => y.toU
414
415
  function xa({
415
416
  pricingPlanScheduleId: e
416
417
  }) {
417
- const { chargeOnDemandPricingItems: y } = pa(), d = Oe(), _ = D(!1), a = D(), E = D(), s = D();
418
+ const { chargeOnDemandPricingItems: y } = va(), d = Oe(), _ = D(!1), a = D(), E = D(), s = D();
418
419
  return { isCharging: _, chargedInvoice: a, chargeError: E, unpaidInvoiceId: s, charge: async ({
419
420
  pricingItems: O,
420
421
  paymentMethodId: x
@@ -467,7 +468,7 @@ const Sa = {
467
468
  }, Na = {
468
469
  key: 2,
469
470
  class: "flex flex-col gap-2"
470
- }, at = /* @__PURE__ */ ce({
471
+ }, tt = /* @__PURE__ */ ce({
471
472
  __name: "ChargeOnDemandModal",
472
473
  props: {
473
474
  showModal: { type: Boolean },
@@ -476,7 +477,7 @@ const Sa = {
476
477
  items: { type: Array },
477
478
  customer: { type: Object },
478
479
  paymentMethods: { type: Array },
479
- canViewCreatedInvoice: { type: Boolean }
480
+ showViewInvoiceButton: { type: Boolean }
480
481
  },
481
482
  emits: ["close", "invoice-created", "view-invoice", "payment-method-stored", "payment-failed"],
482
483
  setup(e, { emit: y }) {
@@ -518,9 +519,9 @@ const Sa = {
518
519
  }));
519
520
  }, {
520
521
  settledOptions: q,
521
- isPending: F,
522
+ isPending: B,
522
523
  load: xe
523
- } = ma({
524
+ } = fa({
524
525
  isOpen: o(() => d.showModal && O.value),
525
526
  customer: o(() => d.customer),
526
527
  subscriptionId: o(() => d.subscription.id),
@@ -574,7 +575,7 @@ const Sa = {
574
575
  return l.length > 0 ? Object.fromEntries(l) : void 0;
575
576
  }), ve = o(
576
577
  () => g.value.length > 0 && !Q.value ? aa(g.value, d.items) : void 0
577
- ), { invoicePreview: pe, isPreviewPending: j, hasPreviewFailed: ge, loadPreview: $e } = ua({
578
+ ), { invoicePreview: pe, isPreviewPending: j, hasPreviewFailed: ge, loadPreview: $e } = ma({
578
579
  pricingPlanScheduleId: o(() => d.scheduleId),
579
580
  pricingItems: ve
580
581
  }), Z = o(() => {
@@ -583,12 +584,12 @@ const Sa = {
583
584
  }), {
584
585
  isCharging: L,
585
586
  chargedInvoice: z,
586
- chargeError: B,
587
+ chargeError: F,
587
588
  unpaidInvoiceId: ee,
588
589
  charge: Re,
589
- reset: Fe
590
- } = xa({ pricingPlanScheduleId: o(() => d.scheduleId) }), Be = o(() => {
591
- switch (B.value) {
590
+ reset: Be
591
+ } = xa({ pricingPlanScheduleId: o(() => d.scheduleId) }), Fe = o(() => {
592
+ switch (F.value) {
592
593
  case "PAYMENT_METHOD":
593
594
  return a({
594
595
  defaultMessage: "This payment method can't pay for this order. Choose another one.",
@@ -610,13 +611,13 @@ const Sa = {
610
611
  default:
611
612
  return;
612
613
  }
613
- }), Ye = o(() => B.value === "SUBSCRIPTION_INACTIVE");
614
+ }), Ye = o(() => F.value === "SUBSCRIPTION_INACTIVE");
614
615
  J(w, () => {
615
- B.value === "PAYMENT_METHOD" && (B.value = void 0);
616
+ F.value === "PAYMENT_METHOD" && (F.value = void 0);
616
617
  }), J(
617
618
  g,
618
619
  () => {
619
- B.value === "PRICING_ITEMS" && (B.value = void 0);
620
+ F.value === "PRICING_ITEMS" && (F.value = void 0);
620
621
  },
621
622
  { deep: !0 }
622
623
  );
@@ -629,10 +630,10 @@ const Sa = {
629
630
  ), ae = o(
630
631
  () => ge.value && !j.value && !L.value
631
632
  ), fe = o(
632
- () => Be.value ?? Ue.value ?? C.value
633
+ () => Fe.value ?? Ue.value ?? C.value
633
634
  ), Ve = o(
634
635
  () => fe.value || he.value ? { form: fe.value, items: he.value } : void 0
635
- ), K = o(() => s.value === "PLACED"), X = o(() => !!z.value && ga(z.value)), _e = o(() => s.value === "PAYMENT_FAILED" || s.value === "FAILED"), ye = o(
636
+ ), K = o(() => s.value === "PLACED"), X = o(() => !!z.value && pa(z.value)), _e = o(() => s.value === "PAYMENT_FAILED" || s.value === "FAILED"), ye = o(
636
637
  () => !L.value && O.value && !Ye.value && g.value.length > 0 && !Q.value && !!w.value && !!Z.value && !j.value
637
638
  ), ze = o(() => s.value === "PLACED" ? a({
638
639
  defaultMessage: "Order placed",
@@ -731,7 +732,7 @@ const Sa = {
731
732
  pricingItems: r,
732
733
  paymentMethodId: w.value
733
734
  });
734
- "invoice" in l ? (_("invoice-created", l.invoice), s.value = "PLACED") : va(l.error) || (s.value = l.error);
735
+ "invoice" in l ? (_("invoice-created", l.invoice), s.value = "PLACED") : ha(l.error) || (s.value = l.error);
735
736
  }, te = () => {
736
737
  if (t.value) {
737
738
  W();
@@ -745,9 +746,9 @@ const Sa = {
745
746
  }, ne = () => {
746
747
  _("close");
747
748
  }, oe = o(
748
- () => K.value && !X.value && d.canViewCreatedInvoice
749
+ () => K.value && !X.value && d.showViewInvoiceButton
749
750
  ), de = o(
750
- () => s.value === "PAYMENT_FAILED" && !!ee.value && d.canViewCreatedInvoice
751
+ () => s.value === "PAYMENT_FAILED" && !!ee.value && d.showViewInvoiceButton
751
752
  ), ie = o(
752
753
  () => a({
753
754
  defaultMessage: "Go to invoice",
@@ -774,9 +775,9 @@ const Sa = {
774
775
  return J(
775
776
  () => d.showModal,
776
777
  (r) => {
777
- r && (s.value = "ORDER", g.value = [], u.value = void 0, Fe(), C.value = void 0);
778
+ r && (s.value = "ORDER", g.value = [], u.value = void 0, Be(), C.value = void 0);
778
779
  }
779
- ), (r, l) => (i(), h(ha, {
780
+ ), (r, l) => (i(), h(ua, {
780
781
  ref_key: "addPaymentMethodRef",
781
782
  ref: T,
782
783
  class: "sv-charge-on-demand-modal",
@@ -791,7 +792,7 @@ const Sa = {
791
792
  "add-payment-method-pane": "ADD_PAYMENT_METHOD",
792
793
  customer: e.customer,
793
794
  "payment-method-options": Se.value,
794
- "is-payment-method-options-pending": n(F),
795
+ "is-payment-method-options-pending": n(B),
795
796
  onConfirm: te,
796
797
  onCancel: se,
797
798
  onPaymentSuccess: Ne,
@@ -813,7 +814,7 @@ const Sa = {
813
814
  disabled: n(L),
814
815
  "can-add-payment-method": "",
815
816
  onAddPaymentMethod: Le
816
- }, null, 8, ["selection", "payment-method-id", "items", "preview", "is-preview-loading", "payment-methods", "errors", "disabled"])) : (i(), h(fa, {
817
+ }, null, 8, ["selection", "payment-method-id", "items", "preview", "is-preview-loading", "payment-methods", "errors", "disabled"])) : (i(), h(ga, {
817
818
  key: 1,
818
819
  class: "sv-charge-on-demand-modal__unavailable",
819
820
  icon: "credit_card_off"
@@ -878,7 +879,7 @@ const Sa = {
878
879
  ]),
879
880
  _: 1
880
881
  }, 8, ["intent", "class"]),
881
- X.value && e.canViewCreatedInvoice ? (i(), h(n(P), {
882
+ X.value && e.showViewInvoiceButton ? (i(), h(n(P), {
882
883
  key: 1,
883
884
  size: "lg",
884
885
  intent: "subtle",
@@ -960,5 +961,5 @@ const Sa = {
960
961
  }
961
962
  });
962
963
  export {
963
- at as default
964
+ tt as default
964
965
  };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as g, computed as r, openBlock as b, createBlock as x, resolveDynamicComponent as f, mergeProps as h, withCtx as u, createVNode as c, unref as m, normalizeClass as s, renderSlot as v, createTextVNode as y, toDisplayString as C, createElementBlock as p, createCommentVNode as w } from "vue";
2
- import { d as z } from "./customElements-DK4GKNJG.mjs";
3
- import { a as B } from "./Button.vue.es-j7iYlqtJ.mjs";
2
+ import { d as z } from "./customElements-d7Bhfqi_.mjs";
3
+ import { a as B } from "./Button.vue.es-BHbanjR0.mjs";
4
4
  const k = {
5
5
  neutral: {
6
6
  base: "bg-gray-50",
@@ -9,7 +9,7 @@ const i = (s, l) => {
9
9
  class: "sv-layout__header"
10
10
  }, g = { class: "sv-layout__body flex flex-col items-start gap-6 md:flex-row" }, m = { class: "sv-layout__content grid w-full grow grid-cols-1 gap-4 md:w-auto" }, h = {
11
11
  key: 0,
12
- class: "sv-layout__aside grid w-full grid-cols-1 gap-4 md:w-80 md:shrink-0"
12
+ class: "sv-layout__aside grid w-full grid-cols-1 gap-6 md:w-80 md:shrink-0"
13
13
  };
14
14
  function v(s, l) {
15
15
  return e(), o("div", u, [
@@ -1,12 +1,12 @@
1
- import { defineComponent as y, openBlock as s, createBlock as b, resolveDynamicComponent as M, withCtx as r, renderSlot as m, createElementBlock as p, unref as i, withModifiers as L, normalizeClass as S, createCommentVNode as v, createSlots as G, normalizeProps as q, mergeProps as F, createVNode as h, createTextVNode as k, toDisplayString as C, Fragment as g, renderList as j, TransitionGroup as R, Comment as K, inject as W, onMounted as J, Teleport as T, ref as B, computed as P, createElementVNode as E, Transition as Q, normalizeStyle as U, useSlots as X } from "vue";
1
+ import { defineComponent as y, openBlock as s, createBlock as b, resolveDynamicComponent as M, withCtx as r, renderSlot as m, createElementBlock as p, unref as i, withModifiers as L, normalizeClass as S, createCommentVNode as v, createSlots as q, normalizeProps as G, mergeProps as F, createVNode as h, createTextVNode as k, toDisplayString as C, Fragment as g, renderList as j, TransitionGroup as R, Comment as K, inject as W, onMounted as J, Teleport as T, ref as B, computed as P, createElementVNode as E, Transition as Q, normalizeStyle as U, useSlots as X } from "vue";
2
2
  import { _ as z, u as Y } from "./useLazyFloating.es-CycqRyeb.mjs";
3
- import { d as A, p as Z, D as N } from "./customElements-DK4GKNJG.mjs";
4
- import { a as _, _ as V } from "./Button.vue.es-j7iYlqtJ.mjs";
5
- import { _ as ee } from "./DividerText.vue.es-BusbyeAI.mjs";
3
+ import { d as A, q as Z, D as N } from "./customElements-d7Bhfqi_.mjs";
4
+ import { a as _, _ as V } from "./Button.vue.es-BHbanjR0.mjs";
5
+ import { _ as ee } from "./DividerText.vue.es-ChN6fnrH.mjs";
6
6
  import { _ as O } from "./Divider.vue.es-DnP_HqLz.mjs";
7
- import { e as te, o as ne } from "./index.es-BrVTOW5D.mjs";
7
+ import { e as te, o as ne } from "./index.es-C7J3WGGo.mjs";
8
8
  import { p as le } from "./object.es-8aLDIncs.mjs";
9
- import { _ as oe } from "./Chip.vue.es-Dxx_0dte.mjs";
9
+ import { _ as oe } from "./Chip.vue.es-Dc6-PjEn.mjs";
10
10
  const ae = /* @__PURE__ */ y({
11
11
  __name: "FullClickableBlock",
12
12
  props: {
@@ -106,9 +106,9 @@ const de = /* @__PURE__ */ z(se, [["render", re]]), ce = { key: 0 }, ue = { key:
106
106
  disabled: e.disabled,
107
107
  variant: e.variant,
108
108
  onClick: e.onClick
109
- }, G({
109
+ }, q({
110
110
  default: r(() => [
111
- e.labelPrefixComponent ? (s(), b(M(e.labelPrefixComponent.component), q(F({ key: 0 }, e.labelPrefixComponent.props)), null, 16)) : v("", !0),
111
+ e.labelPrefixComponent ? (s(), b(M(e.labelPrefixComponent.component), G(F({ key: 0 }, e.labelPrefixComponent.props)), null, 16)) : v("", !0),
112
112
  h(i(A), {
113
113
  tag: "span",
114
114
  variant: "body-sm",
@@ -567,6 +567,6 @@ const I = y({
567
567
  });
568
568
  export {
569
569
  pe as F,
570
- Ce as _,
571
- Le as a
570
+ Le as _,
571
+ Ce as a
572
572
  };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as x, computed as v, openBlock as c, createBlock as C, withCtx as i, createElementBlock as d, createVNode as o, createTextVNode as a, toDisplayString as r, unref as u, createCommentVNode as b, renderSlot as B } from "vue";
2
- import { a as N, d as l } from "./customElements-DK4GKNJG.mjs";
3
- import { _ as S } from "./Section.vue.es-Oqn1wGPZ.mjs";
4
- import { g as k } from "./getCountryNameByCode.es-BDHua7VM.mjs";
2
+ import { a as N, d as l } from "./customElements-d7Bhfqi_.mjs";
3
+ import { _ as S } from "./Section.vue.es-CwKTCeZ1.mjs";
4
+ import { g as k } from "./getCountryNameByCode.es-OGxn_zT0.mjs";
5
5
  import { a as A } from "./customer.es-DQKl6wFt.mjs";
6
6
  import { a as M } from "./typeGuards.es-B4XMtlkM.mjs";
7
7
  const V = ["US", "CA"];
@@ -0,0 +1,217 @@
1
+ import { defineComponent as A, computed as p, openBlock as n, createBlock as i, unref as o, createSlots as P, withCtx as d, createElementBlock as y, Fragment as f, createVNode as x, toDisplayString as h, createCommentVNode as k, renderList as $, createTextVNode as c } from "vue";
2
+ import { _ as g } from "./Button.vue.es-BHbanjR0.mjs";
3
+ import { _ as M } from "./Section.vue.es-CwKTCeZ1.mjs";
4
+ import { a as V, d as _ } from "./customElements-d7Bhfqi_.mjs";
5
+ import { _ as N } from "./PaymentMethodsList.vue_vue_type_script_setup_true_lang-DZ2Z-RMv.mjs";
6
+ import { _ as C } from "./Skeleton.vue_vue_type_script_setup_true_lang-D7MFjvrP.mjs";
7
+ import { u as O } from "./useActionDispatchProvider-BWna0S6N.mjs";
8
+ import { r as L } from "./configuration-BytDBAWs.mjs";
9
+ const S = /* @__PURE__ */ A({
10
+ __name: "CustomerPaymentMethodsBlock",
11
+ props: {
12
+ paymentMethods: { type: Array },
13
+ showViewAllButton: { type: Boolean },
14
+ isManaged: { type: Boolean },
15
+ showAddButton: { type: Boolean },
16
+ hasNoPaymentMethodOptions: { type: Boolean },
17
+ hasMorePaymentMethods: { type: Boolean }
18
+ },
19
+ emits: ["view-all-payment-methods", "add-payment-method"],
20
+ setup(e) {
21
+ const m = e, { $t: a } = V(), u = p(() => m.paymentMethods.length > 0), v = p(
22
+ () => m.showViewAllButton && (!m.isManaged || u.value)
23
+ ), b = p(
24
+ () => !!m.isManaged && !!m.showAddButton && !m.hasNoPaymentMethodOptions
25
+ ), r = (s) => ({
26
+ link: s.filter((t) => typeof t == "string").join("")
27
+ }), w = p(() => {
28
+ const s = a(
29
+ {
30
+ defaultMessage: "You don't have any payment methods yet, <link>add a payment method</link>.",
31
+ id: "customer_overview.payment_methods_block.no_payment_methods_text",
32
+ description: "Shown on the customer overview when the customer has no payment methods; the link opens adding one"
33
+ },
34
+ // @ts-expect-error formatjs does not support this type yet
35
+ { link: r }
36
+ );
37
+ return (Array.isArray(s) ? s : [s]).flatMap((t) => typeof t == "string" ? t ? [{ text: t, isLink: !1 }] : [] : t && typeof t == "object" && "link" in t ? [{ text: String(t.link), isLink: !0 }] : []);
38
+ });
39
+ return (s, t) => (n(), i(o(M), {
40
+ class: "sv-payment-methods",
41
+ "no-spacing": "",
42
+ "no-border": "",
43
+ "content-background": "none",
44
+ title: o(a)(
45
+ {
46
+ defaultMessage: "{count, plural, one {Payment method} other {Payment methods}}",
47
+ description: "Title for the payment methods block on the customer overview page",
48
+ id: "customer_overview.payment_methods.title"
49
+ },
50
+ { count: String(e.paymentMethods.length) }
51
+ )
52
+ }, P({
53
+ default: d(() => [
54
+ u.value ? (n(), y(f, { key: 0 }, [
55
+ x(N, {
56
+ "payment-methods": e.paymentMethods,
57
+ "hide-options": e.isManaged
58
+ }, null, 8, ["payment-methods", "hide-options"]),
59
+ e.hasMorePaymentMethods && e.showViewAllButton ? (n(), y("button", {
60
+ key: 0,
61
+ type: "button",
62
+ class: "sv-action sv-action--link sv-payment-methods__show-more ml-auto mt-1 block rounded text-xs text-primary-900 hover:underline focus-visible:outline focus-visible:outline-2 focus-visible:outline-primary-600",
63
+ onClick: t[2] || (t[2] = (l) => s.$emit("view-all-payment-methods"))
64
+ }, h(o(a)({
65
+ defaultMessage: "Show all payment methods",
66
+ id: "customer_overview.payment_methods_block.show_all_link_label",
67
+ description: "Text link below the payment methods block that opens all of them, shown when the block leaves some out"
68
+ })), 1)) : k("", !0)
69
+ ], 64)) : (n(), i(o(M), {
70
+ key: 1,
71
+ class: "sv-empty-state sv-payment-methods__empty"
72
+ }, {
73
+ default: d(() => [
74
+ b.value ? (n(), i(o(_), {
75
+ key: 0,
76
+ variant: "body-sm",
77
+ color: "subtle",
78
+ "no-spacing": "",
79
+ class: "sv-payment-methods__empty-message"
80
+ }, {
81
+ default: d(() => [
82
+ (n(!0), y(f, null, $(w.value, (l, B) => (n(), y(f, { key: B }, [
83
+ l.isLink ? (n(), y("button", {
84
+ key: 0,
85
+ type: "button",
86
+ class: "sv-action sv-action--link sv-payment-methods__add rounded text-primary-900 underline focus-visible:outline focus-visible:outline-2 focus-visible:outline-primary-600",
87
+ onClick: t[3] || (t[3] = (T) => s.$emit("add-payment-method"))
88
+ }, h(l.text), 1)) : (n(), y(f, { key: 1 }, [
89
+ c(h(l.text), 1)
90
+ ], 64))
91
+ ], 64))), 128))
92
+ ]),
93
+ _: 1
94
+ })) : (n(), i(o(_), {
95
+ key: 1,
96
+ variant: e.hasNoPaymentMethodOptions ? "body-xs" : "body-sm",
97
+ color: "subtle",
98
+ "no-spacing": "",
99
+ class: "sv-payment-methods__empty-message"
100
+ }, {
101
+ default: d(() => [
102
+ c(h(e.hasNoPaymentMethodOptions ? o(a)({
103
+ defaultMessage: "No online payment methods are available.",
104
+ description: "Shown on the customer overview when the customer has no payment methods and none can be added",
105
+ id: "customer_overview.payment_methods_block.no_options_text"
106
+ }) : o(a)({
107
+ defaultMessage: "Add a payment method for recurring invoice payments.",
108
+ description: "Helper text for adding a payment method when no payment methods are configured",
109
+ id: "customer_overview.payment_methods_block.add_payment_method_helper_text"
110
+ })), 1)
111
+ ]),
112
+ _: 1
113
+ }, 8, ["variant"])),
114
+ e.showAddButton && !e.hasNoPaymentMethodOptions && !e.isManaged ? (n(), i(o(g), {
115
+ key: 2,
116
+ class: "sv-action sv-action--secondary sv-action--full-width sv-payment-methods__add mt-4 w-full",
117
+ intent: "secondary",
118
+ "icon-prefix": "add",
119
+ type: "button",
120
+ onClick: t[4] || (t[4] = (l) => s.$emit("add-payment-method"))
121
+ }, {
122
+ default: d(() => [
123
+ c(h(o(a)({
124
+ defaultMessage: "Add payment method",
125
+ description: "Text for the add payment method button that is shown when no payment methods have been configured",
126
+ id: "customer_overview.payment_methods_block.add_payment_method_button_label"
127
+ })), 1)
128
+ ]),
129
+ _: 1
130
+ })) : k("", !0)
131
+ ]),
132
+ _: 1
133
+ }))
134
+ ]),
135
+ _: 2
136
+ }, [
137
+ v.value ? {
138
+ name: "right",
139
+ fn: d(() => [
140
+ e.isManaged ? (n(), i(o(g), {
141
+ key: 0,
142
+ size: "xs",
143
+ intent: "subtle",
144
+ class: "sv-action sv-action--ghost sv-payment-methods__manage",
145
+ type: "button",
146
+ onClick: t[0] || (t[0] = (l) => s.$emit("view-all-payment-methods"))
147
+ }, {
148
+ default: d(() => [
149
+ c(h(o(a)({
150
+ defaultMessage: "Manage",
151
+ id: "customer_overview.payment_methods_block.manage_button_label",
152
+ description: "Label of the button that opens the management of the customer's payment methods"
153
+ })), 1)
154
+ ]),
155
+ _: 1
156
+ })) : (n(), i(o(g), {
157
+ key: 1,
158
+ size: "xs",
159
+ intent: "subtle",
160
+ "icon-suffix": "arrow_right_alt",
161
+ class: "sv-action sv-action--ghost sv-payment-methods__view-all",
162
+ type: "button",
163
+ onClick: t[1] || (t[1] = (l) => s.$emit("view-all-payment-methods"))
164
+ }, {
165
+ default: d(() => [
166
+ c(h(o(a)({
167
+ defaultMessage: "View all",
168
+ id: "customer_overview.payment_methods_block.view_all_payment_methods_link_label",
169
+ description: "The link text that links to the overview page of the customer invoices"
170
+ })), 1)
171
+ ]),
172
+ _: 1
173
+ }))
174
+ ]),
175
+ key: "0"
176
+ } : void 0
177
+ ]), 1032, ["title"]));
178
+ }
179
+ }), G = /* @__PURE__ */ A({
180
+ __name: "CustomerPaymentMethods",
181
+ props: {
182
+ isLoading: { type: Boolean },
183
+ paymentMethods: { type: Array },
184
+ configuration: { type: Object },
185
+ onViewAll: { type: Function },
186
+ onAdd: { type: Function },
187
+ hasNoPaymentMethodOptions: { type: Boolean },
188
+ hasMorePaymentMethods: { type: Boolean }
189
+ },
190
+ setup(e) {
191
+ const m = {
192
+ showViewAllButton: !0,
193
+ showAddButton: !0
194
+ }, a = e, u = p(
195
+ () => L(m, a.configuration)
196
+ ), { dispatchAction: v } = O();
197
+ return (b, r) => e.isLoading ? (n(), i(C, {
198
+ key: 0,
199
+ variant: "section",
200
+ class: "sv-payment-methods sv-root sv-component sv-loading h-72"
201
+ })) : (n(), i(S, {
202
+ key: 1,
203
+ class: "sv-payment-methods sv-root sv-component",
204
+ "payment-methods": e.paymentMethods,
205
+ "show-view-all-button": u.value.showViewAllButton,
206
+ "is-managed": !!e.onViewAll,
207
+ "show-add-button": u.value.showAddButton,
208
+ "has-no-payment-method-options": e.hasNoPaymentMethodOptions,
209
+ "has-more-payment-methods": e.hasMorePaymentMethods,
210
+ onViewAllPaymentMethods: r[0] || (r[0] = (w) => e.onViewAll ? e.onViewAll() : o(v)({ action: "view-all-payment-methods" })),
211
+ onAddPaymentMethod: r[1] || (r[1] = (w) => e.onAdd ? e.onAdd() : o(v)({ action: "add-payment-method" }))
212
+ }, null, 8, ["payment-methods", "show-view-all-button", "is-managed", "show-add-button", "has-no-payment-method-options", "has-more-payment-methods"]));
213
+ }
214
+ });
215
+ export {
216
+ G as _
217
+ };