@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
@@ -0,0 +1,90 @@
1
+ import { defineComponent as y, computed as a, openBlock as i, createElementBlock as g, normalizeClass as _, createBlock as l, unref as s, createCommentVNode as o, createElementVNode as k, createVNode as P, withCtx as u, createTextVNode as r, toDisplayString as m, Fragment as x } from "vue";
2
+ import { _ as S } from "./Avatar.vue.es-DrbtUiLO.mjs";
3
+ import { a as w, d as p } from "./customElements-d7Bhfqi_.mjs";
4
+ import { b as h, c as N, f as B } from "./subscription-DQ5mRp_e.mjs";
5
+ import { g as I } from "./pricing-CBJT8C6L.mjs";
6
+ const C = ["title"], M = /* @__PURE__ */ y({
7
+ __name: "SubscriptionSummary",
8
+ props: {
9
+ subscription: { type: Object },
10
+ enabledPricingIds: { type: Array },
11
+ avatar: { type: String },
12
+ noSpacing: { type: Boolean }
13
+ },
14
+ setup(n) {
15
+ const e = n, { $t: f } = w(), v = a(() => h(e.subscription)), d = a(
16
+ () => N({
17
+ subscription: e.subscription,
18
+ fallback: f({
19
+ defaultMessage: "Subscription",
20
+ description: "The fallback name for when no subscription name can be determined",
21
+ id: "customer_overview.subscriptions_block.fallback_subscription_name"
22
+ })
23
+ })
24
+ ), b = a(
25
+ () => {
26
+ var t;
27
+ return e.subscription.description || ((t = v.value) == null ? void 0 : t.description);
28
+ }
29
+ ), c = a(() => {
30
+ if (!e.subscription || !e.enabledPricingIds)
31
+ return;
32
+ const t = B(e.subscription, e.enabledPricingIds);
33
+ return t == null ? void 0 : t.map(I).join(" - ");
34
+ });
35
+ return (t, V) => (i(), g("div", {
36
+ class: _(["flex flex-row gap-3", n.noSpacing ? void 0 : "px-3 py-2"])
37
+ }, [
38
+ n.avatar ? (i(), l(s(S), {
39
+ key: 0,
40
+ "image-src": n.avatar,
41
+ size: "lg",
42
+ class: "my-1"
43
+ }, null, 8, ["image-src"])) : o("", !0),
44
+ k("div", {
45
+ class: "min-w-0 grow",
46
+ title: d.value
47
+ }, [
48
+ P(s(p), {
49
+ variant: "body",
50
+ weight: "semibold",
51
+ "no-spacing": "",
52
+ class: "truncate"
53
+ }, {
54
+ default: u(() => [
55
+ r(m(d.value), 1)
56
+ ]),
57
+ _: 1
58
+ }),
59
+ c.value ? (i(), l(s(p), {
60
+ key: 0,
61
+ variant: "body-xs",
62
+ color: "subtle",
63
+ "no-spacing": ""
64
+ }, {
65
+ default: u(() => [
66
+ r(m(c.value), 1)
67
+ ]),
68
+ _: 1
69
+ })) : o("", !0),
70
+ b.value ? (i(), l(s(p), {
71
+ key: 1,
72
+ variant: "body-xs",
73
+ color: "subtle",
74
+ "no-spacing": ""
75
+ }, {
76
+ default: u(() => [
77
+ c.value ? (i(), g(x, { key: 0 }, [
78
+ r(" • ")
79
+ ], 64)) : o("", !0),
80
+ r(" " + m(b.value), 1)
81
+ ]),
82
+ _: 1
83
+ })) : o("", !0)
84
+ ], 8, C)
85
+ ], 2));
86
+ }
87
+ });
88
+ export {
89
+ M as _
90
+ };
@@ -1,94 +1,98 @@
1
- import { u as S } from "./useIncrementalLoading-CBVutPH8.mjs";
2
- import { c as $ } from "./subscriptions-B5bH8hsI.mjs";
3
- import { defineComponent as x, computed as f, openBlock as i, createBlock as l, unref as s, withCtx as n, createElementVNode as _, createVNode as y, createTextVNode as d, toDisplayString as m, createCommentVNode as p, createElementBlock as g, createSlots as V, Fragment as L, renderList as A } from "vue";
4
- import { _ as k } from "./Button.vue.es-j7iYlqtJ.mjs";
5
- import { _ as D } from "./ErrorNotification.vue.es-F068p7PY.mjs";
6
- import { _ as M } from "./Section.vue.es-Oqn1wGPZ.mjs";
7
- import { a as B, d as h } from "./customElements-DK4GKNJG.mjs";
8
- import { _ as T } from "./PaymentMethod.vue.es-t3-VyoE8.mjs";
9
- import { g as I, a as E } from "./subscription-BwzkagDI.mjs";
10
- import { _ as N } from "./Skeleton.vue_vue_type_script_setup_true_lang-D7MFjvrP.mjs";
11
- import { u as P } from "./useActionDispatchProvider-ChAHdwR8.mjs";
12
- function it({
1
+ import { u as L } from "./useIncrementalLoading-B3gp58X-.mjs";
2
+ import { c as A } from "./subscriptions-Bm1eu9wc.mjs";
3
+ import { defineComponent as S, toRef as D, computed as v, openBlock as o, createBlock as l, unref as s, withCtx as a, createElementVNode as _, createVNode as g, createTextVNode as u, toDisplayString as d, createCommentVNode as m, createElementBlock as B, createSlots as T, Fragment as I, renderList as E } from "vue";
4
+ import { _ as k } from "./Button.vue.es-BHbanjR0.mjs";
5
+ import { _ as N } from "./ErrorNotification.vue.es-CWIVt5q9.mjs";
6
+ import { _ as x } from "./Section.vue.es-CwKTCeZ1.mjs";
7
+ import { a as $, d as h } from "./customElements-d7Bhfqi_.mjs";
8
+ import { _ as z } from "./PaymentMethod.vue.es-DAabE41t.mjs";
9
+ import { b as C, c as P } from "./subscription-DQ5mRp_e.mjs";
10
+ import { u as j } from "./useSubscriptionActions-BSlJVB4p.mjs";
11
+ import { _ as O } from "./Skeleton.vue_vue_type_script_setup_true_lang-D7MFjvrP.mjs";
12
+ import { u as R } from "./useActionDispatchProvider-BWna0S6N.mjs";
13
+ function lt({
13
14
  customerId: t,
14
- batchSize: r = 15
15
+ batchSize: n = 15
15
16
  }) {
16
- const e = $();
17
- return S({ service: async (b) => e.getActiveSubscriptions({
17
+ const e = A();
18
+ return L({ service: async (b) => e.getActiveSubscriptions({
18
19
  customerId: t,
19
- pagination: { page: b, pageSize: r }
20
+ pagination: { page: b, pageSize: n }
20
21
  }) });
21
22
  }
22
- const C = { class: "sv-subscriptions-list__item-body flex flex-col gap-4 md:flex-row" }, j = { class: "sv-subscriptions-list__item-content grow" }, z = { class: "sv-subscriptions-list__item-meta mt-4 flex items-center gap-6" }, O = {
23
+ const F = { class: "sv-subscriptions-list__item-body flex flex-col gap-4 md:flex-row" }, W = { class: "sv-subscriptions-list__item-content grow" }, q = { class: "sv-subscriptions-list__item-meta mt-4 flex items-center gap-6" }, G = {
23
24
  key: 1,
24
25
  class: "sv-subscriptions-list__item-next-invoice flex gap-1"
25
- }, R = { class: "sv-subscriptions-list__item-actions flex flex-col items-center gap-2 md:flex-row" }, F = /* @__PURE__ */ x({
26
+ }, H = { class: "sv-subscriptions-list__item-actions flex flex-col items-center gap-2 md:flex-row md:items-start" }, J = /* @__PURE__ */ S({
26
27
  __name: "SubscriptionsListItem",
27
28
  props: {
28
29
  subscription: { type: Object },
29
30
  paymentMethod: { type: Object },
30
31
  customer: { type: Object },
31
- showViewSubscriptionDetailsButton: { type: Boolean, default: !0 }
32
+ showViewSubscriptionDetailsButton: { type: Boolean, default: !1 },
33
+ showManageButton: { type: Boolean, default: !0 }
32
34
  },
33
35
  emits: ["view-subscription-details"],
34
36
  setup(t) {
35
- const r = t, { $t: e, formatDate: a } = B(), b = f(() => I(r.subscription)), v = f(
36
- () => E({
37
- subscription: r.subscription,
37
+ const n = t, { $t: e, formatDate: r } = $(), { manage: b } = j({
38
+ subscription: D(n, "subscription")
39
+ }), f = v(() => C(n.subscription)), c = v(
40
+ () => P({
41
+ subscription: n.subscription,
38
42
  fallback: e({
39
43
  defaultMessage: "Subscription",
40
44
  description: "The fallback name for when no subscription name can be determined",
41
45
  id: "customer_overview.subscriptions_block.fallback_subscription_name"
42
46
  })
43
47
  })
44
- ), o = f(
48
+ ), i = v(
45
49
  () => {
46
- var u;
47
- return (u = b.value) == null ? void 0 : u.description;
50
+ var y;
51
+ return (y = f.value) == null ? void 0 : y.description;
48
52
  }
49
- ), c = f(() => r.showViewSubscriptionDetailsButton);
50
- return (u, w) => (i(), l(s(M), { class: "sv-subscriptions-list__item" }, {
51
- default: n(() => [
52
- _("div", C, [
53
- _("div", j, [
54
- y(s(h), {
53
+ ), p = v(() => n.showViewSubscriptionDetailsButton), M = v(() => n.showManageButton ? "subtle" : "primary");
54
+ return (y, w) => (o(), l(s(x), { class: "sv-subscriptions-list__item" }, {
55
+ default: a(() => [
56
+ _("div", F, [
57
+ _("div", W, [
58
+ g(s(h), {
55
59
  tag: "h3",
56
60
  variant: "heading-2",
57
61
  class: "sv-subscriptions-list__item-title"
58
62
  }, {
59
- default: n(() => [
60
- d(m(v.value), 1)
63
+ default: a(() => [
64
+ u(d(c.value), 1)
61
65
  ]),
62
66
  _: 1
63
67
  }),
64
- o.value ? (i(), l(s(h), {
68
+ i.value ? (o(), l(s(h), {
65
69
  key: 0,
66
70
  variant: "body-sm",
67
71
  tag: "span",
68
72
  color: "subtle",
69
73
  class: "sv-subscriptions-list__item-description"
70
74
  }, {
71
- default: n(() => [
72
- d(m(o.value), 1)
75
+ default: a(() => [
76
+ u(d(i.value), 1)
73
77
  ]),
74
78
  _: 1
75
- })) : p("", !0),
76
- _("div", z, [
77
- t.paymentMethod ? (i(), l(s(T), {
79
+ })) : m("", !0),
80
+ _("div", q, [
81
+ t.paymentMethod ? (o(), l(s(z), {
78
82
  key: 0,
79
83
  variant: "condensed",
80
84
  class: "sv-payment-methods__item",
81
85
  "payment-method": t.paymentMethod
82
- }, null, 8, ["payment-method"])) : p("", !0),
83
- t.subscription.next_invoice ? (i(), g("div", O, [
84
- y(s(h), {
86
+ }, null, 8, ["payment-method"])) : m("", !0),
87
+ t.subscription.next_invoice ? (o(), B("div", G, [
88
+ g(s(h), {
85
89
  tag: "span",
86
90
  variant: "body-xs",
87
91
  color: "secondary",
88
92
  weight: "semibold"
89
93
  }, {
90
- default: n(() => [
91
- d(m(s(e)({
94
+ default: a(() => [
95
+ u(d(s(e)({
92
96
  defaultMessage: "Next billing date",
93
97
  description: "The label for the next billing date",
94
98
  id: "customer.subscriptions_block.next_billing_date"
@@ -96,13 +100,13 @@ const C = { class: "sv-subscriptions-list__item-body flex flex-col gap-4 md:flex
96
100
  ]),
97
101
  _: 1
98
102
  }),
99
- y(s(h), {
103
+ g(s(h), {
100
104
  tag: "span",
101
105
  variant: "body-xs",
102
106
  color: "secondary"
103
107
  }, {
104
- default: n(() => [
105
- d(m(s(a)({
108
+ default: a(() => [
109
+ u(d(s(r)({
106
110
  date: t.subscription.next_invoice.invoice_date,
107
111
  format: "date",
108
112
  offsetType: "offsetted",
@@ -111,36 +115,54 @@ const C = { class: "sv-subscriptions-list__item-body flex flex-col gap-4 md:flex
111
115
  ]),
112
116
  _: 1
113
117
  })
114
- ])) : p("", !0)
118
+ ])) : m("", !0)
115
119
  ])
116
120
  ]),
117
- _("div", R, [
118
- c.value ? (i(), l(s(k), {
121
+ _("div", H, [
122
+ t.showManageButton ? (o(), l(s(k), {
119
123
  key: 0,
120
124
  intent: "primary",
121
- class: "sv-action sv-action--primary sv-subscriptions-list__item-details w-full md:w-auto",
125
+ size: "sm",
126
+ class: "sv-action sv-action--primary sv-subscriptions-list__item-manage w-full md:w-auto",
122
127
  type: "button",
123
- onClick: w[0] || (w[0] = (G) => u.$emit("view-subscription-details", { subscriptionId: t.subscription.id }))
128
+ onClick: w[0] || (w[0] = (V) => s(b)())
124
129
  }, {
125
- default: n(() => [
126
- d(m(s(e)({
130
+ default: a(() => [
131
+ u(d(s(e)({
132
+ defaultMessage: "Manage",
133
+ description: "The label for the button that opens the management of a subscription in the subscriptions block",
134
+ id: "customer.subscriptions_block.manage_button_label"
135
+ })), 1)
136
+ ]),
137
+ _: 1
138
+ })) : m("", !0),
139
+ p.value ? (o(), l(s(k), {
140
+ key: 1,
141
+ intent: M.value,
142
+ size: "sm",
143
+ class: "sv-action sv-subscriptions-list__item-details w-full md:w-auto",
144
+ type: "button",
145
+ onClick: w[1] || (w[1] = (V) => y.$emit("view-subscription-details", { subscriptionId: t.subscription.id }))
146
+ }, {
147
+ default: a(() => [
148
+ u(d(s(e)({
127
149
  defaultMessage: "Subscription details",
128
150
  description: "The label for the subscription details button in the subscriptions block",
129
151
  id: "customer.subscriptions_block.show_details_button_label"
130
152
  })), 1)
131
153
  ]),
132
154
  _: 1
133
- })) : p("", !0)
155
+ }, 8, ["intent"])) : m("", !0)
134
156
  ])
135
157
  ])
136
158
  ]),
137
159
  _: 1
138
160
  }));
139
161
  }
140
- }), W = {
162
+ }), K = {
141
163
  key: 2,
142
164
  class: "sv-subscriptions-list__items grid grid-cols-1 gap-4"
143
- }, q = /* @__PURE__ */ x({
165
+ }, Q = /* @__PURE__ */ S({
144
166
  __name: "SubscriptionsList",
145
167
  props: {
146
168
  customer: { type: Object },
@@ -150,15 +172,16 @@ const C = { class: "sv-subscriptions-list__item-body flex flex-col gap-4 md:flex
150
172
  hasMoreItems: { type: Boolean, default: !1 },
151
173
  isLoadingMore: { type: Boolean, default: !1 },
152
174
  showViewAllButton: { type: Boolean, default: !0 },
153
- showViewDetailsButton: { type: Boolean, default: !0 }
175
+ showViewDetailsButton: { type: Boolean, default: !1 },
176
+ showManageButton: { type: Boolean, default: !0 }
154
177
  },
155
178
  emits: ["view-subscription-details", "view-all-subscriptions", "load-more"],
156
179
  setup(t) {
157
- const r = t, { $t: e } = B(), a = f(() => r.subscriptions.length > 0), b = (o) => {
158
- if (o)
159
- return r.paymentMethods.find(({ id: c }) => c === o);
160
- }, v = f(() => r.showViewAllButton);
161
- return (o, c) => (i(), l(s(M), {
180
+ const n = t, { $t: e } = $(), r = v(() => n.subscriptions.length > 0), b = (c) => {
181
+ if (c)
182
+ return n.paymentMethods.find(({ id: i }) => i === c);
183
+ }, f = v(() => n.showViewAllButton);
184
+ return (c, i) => (o(), l(s(x), {
162
185
  class: "sv-subscriptions-list",
163
186
  "no-spacing": "",
164
187
  "no-border": "",
@@ -171,9 +194,9 @@ const C = { class: "sv-subscriptions-list__item-body flex flex-col gap-4 md:flex
171
194
  },
172
195
  { count: String(t.subscriptions.length) }
173
196
  )
174
- }, V({
175
- default: n(() => [
176
- t.hasError ? (i(), l(s(D), {
197
+ }, T({
198
+ default: a(() => [
199
+ t.hasError ? (o(), l(s(N), {
177
200
  key: 0,
178
201
  class: "sv-subscriptions-list__error sv-error",
179
202
  title: s(e)({
@@ -181,18 +204,18 @@ const C = { class: "sv-subscriptions-list__item-body flex flex-col gap-4 md:flex
181
204
  description: "Error shown when the subscriptions in the subscriptions block fail to load",
182
205
  id: "customer_overview.subscriptions_block.load_error"
183
206
  })
184
- }, null, 8, ["title"])) : p("", !0),
185
- !a.value && !t.hasError ? (i(), l(s(M), {
207
+ }, null, 8, ["title"])) : m("", !0),
208
+ !r.value && !t.hasError ? (o(), l(s(x), {
186
209
  key: 1,
187
210
  class: "sv-empty-state sv-subscriptions-list__empty"
188
211
  }, {
189
- default: n(() => [
190
- y(s(h), {
212
+ default: a(() => [
213
+ g(s(h), {
191
214
  tag: "h3",
192
215
  variant: "heading-3"
193
216
  }, {
194
- default: n(() => [
195
- d(m(s(e)({
217
+ default: a(() => [
218
+ u(d(s(e)({
196
219
  defaultMessage: "No subscriptions",
197
220
  description: "Title for the my subscriptions block on the customer overview page",
198
221
  id: "customer_overview.subscriptions_block.no_active_subscription_title"
@@ -200,12 +223,12 @@ const C = { class: "sv-subscriptions-list__item-body flex flex-col gap-4 md:flex
200
223
  ]),
201
224
  _: 1
202
225
  }),
203
- y(s(h), {
226
+ g(s(h), {
204
227
  variant: "body-xs",
205
228
  color: "subtle"
206
229
  }, {
207
- default: n(() => [
208
- d(m(s(e)({
230
+ default: a(() => [
231
+ u(d(s(e)({
209
232
  defaultMessage: "There’s no active subscription to display.",
210
233
  description: "Text that is being displayed when there is no active subscription in the subscriptions block",
211
234
  id: "customer_overview.subscriptions_block.no_active_subscription_content"
@@ -215,50 +238,51 @@ const C = { class: "sv-subscriptions-list__item-body flex flex-col gap-4 md:flex
215
238
  })
216
239
  ]),
217
240
  _: 1
218
- })) : a.value ? (i(), g("div", W, [
219
- (i(!0), g(L, null, A(t.subscriptions, (u) => (i(), l(F, {
220
- key: u.id,
221
- subscription: u,
222
- "payment-method": b(u.payment_method_id),
241
+ })) : r.value ? (o(), B("div", K, [
242
+ (o(!0), B(I, null, E(t.subscriptions, (p) => (o(), l(J, {
243
+ key: p.id,
244
+ subscription: p,
245
+ "payment-method": b(p.payment_method_id),
223
246
  customer: t.customer,
224
247
  "show-view-subscription-details-button": t.showViewDetailsButton,
225
- onViewSubscriptionDetails: c[1] || (c[1] = (w) => o.$emit("view-subscription-details", w))
226
- }, null, 8, ["subscription", "payment-method", "customer", "show-view-subscription-details-button"]))), 128))
227
- ])) : p("", !0),
228
- t.hasMoreItems ? (i(), l(s(k), {
248
+ "show-manage-button": t.showManageButton,
249
+ onViewSubscriptionDetails: i[1] || (i[1] = (M) => c.$emit("view-subscription-details", M))
250
+ }, null, 8, ["subscription", "payment-method", "customer", "show-view-subscription-details-button", "show-manage-button"]))), 128))
251
+ ])) : m("", !0),
252
+ t.hasMoreItems ? (o(), l(s(k), {
229
253
  key: 3,
230
254
  intent: "secondary",
231
255
  size: "sm",
232
256
  class: "sv-action sv-action--secondary sv-action--full-width sv-subscriptions-list__load-more mt-2 w-full",
233
257
  type: "button",
234
258
  loading: t.isLoadingMore,
235
- onClick: c[2] || (c[2] = (u) => o.$emit("load-more"))
259
+ onClick: i[2] || (i[2] = (p) => c.$emit("load-more"))
236
260
  }, {
237
- default: n(() => [
238
- d(m(s(e)({
261
+ default: a(() => [
262
+ u(d(s(e)({
239
263
  defaultMessage: "Load more",
240
264
  description: "The label for the button that loads more subscriptions",
241
265
  id: "customer_overview.subscriptions_block.load_more_button_label"
242
266
  })), 1)
243
267
  ]),
244
268
  _: 1
245
- }, 8, ["loading"])) : p("", !0)
269
+ }, 8, ["loading"])) : m("", !0)
246
270
  ]),
247
271
  _: 2
248
272
  }, [
249
- v.value ? {
273
+ f.value ? {
250
274
  name: "right",
251
- fn: n(() => [
252
- y(s(k), {
275
+ fn: a(() => [
276
+ g(s(k), {
253
277
  size: "xs",
254
278
  intent: "subtle",
255
279
  "icon-suffix": "arrow_right_alt",
256
280
  class: "sv-action sv-action--ghost sv-subscriptions-list__view-all",
257
281
  type: "button",
258
- onClick: c[0] || (c[0] = (u) => o.$emit("view-all-subscriptions"))
282
+ onClick: i[0] || (i[0] = (p) => c.$emit("view-all-subscriptions"))
259
283
  }, {
260
- default: n(() => [
261
- d(m(s(e)({
284
+ default: a(() => [
285
+ u(d(s(e)({
262
286
  defaultMessage: "View all",
263
287
  description: "The text for the view all subscriptions button",
264
288
  id: "customer_overview.subscriptions_block.view_all_button_label"
@@ -271,7 +295,7 @@ const C = { class: "sv-subscriptions-list__item-body flex flex-col gap-4 md:flex
271
295
  } : void 0
272
296
  ]), 1032, ["title"]));
273
297
  }
274
- }), ot = /* @__PURE__ */ x({
298
+ }), ct = /* @__PURE__ */ S({
275
299
  __name: "SubscriptionsList",
276
300
  props: {
277
301
  customer: { type: null },
@@ -285,14 +309,14 @@ const C = { class: "sv-subscriptions-list__item-body flex flex-col gap-4 md:flex
285
309
  },
286
310
  emits: ["load-more"],
287
311
  setup(t) {
288
- const { dispatchAction: r } = P();
289
- return (e, a) => {
290
- var b, v;
291
- return t.isLoading ? (i(), l(N, {
312
+ const { dispatchAction: n } = R();
313
+ return (e, r) => {
314
+ var b, f, c;
315
+ return t.isLoading ? (o(), l(O, {
292
316
  key: 0,
293
317
  variant: "section",
294
318
  class: "sv-subscriptions-list sv-root sv-component sv-loading min-h-[100px]"
295
- })) : t.customer ? (i(), l(q, {
319
+ })) : t.customer ? (o(), l(Q, {
296
320
  key: 1,
297
321
  class: "sv-subscriptions-list sv-root sv-component",
298
322
  customer: t.customer,
@@ -302,18 +326,19 @@ const C = { class: "sv-subscriptions-list__item-body flex flex-col gap-4 md:flex
302
326
  "has-more-items": t.hasMoreItems,
303
327
  "is-loading-more": t.isLoadingMore,
304
328
  "show-view-all-button": (b = t.configuration) == null ? void 0 : b.showViewAllButton,
305
- "show-view-details-button": (v = t.configuration) == null ? void 0 : v.showViewDetailsButton,
306
- onViewSubscriptionDetails: a[0] || (a[0] = (o) => s(r)({
329
+ "show-view-details-button": (f = t.configuration) == null ? void 0 : f.showViewDetailsButton,
330
+ "show-manage-button": (c = t.configuration) == null ? void 0 : c.showManageButton,
331
+ onViewSubscriptionDetails: r[0] || (r[0] = (i) => s(n)({
307
332
  action: "view-subscription-details",
308
- data: { subscriptionId: o.subscriptionId }
333
+ data: { subscriptionId: i.subscriptionId }
309
334
  })),
310
- onViewAllSubscriptions: a[1] || (a[1] = (o) => s(r)({ action: "view-all-subscriptions" })),
311
- onLoadMore: a[2] || (a[2] = (o) => e.$emit("load-more"))
312
- }, null, 8, ["customer", "subscriptions", "payment-methods", "has-error", "has-more-items", "is-loading-more", "show-view-all-button", "show-view-details-button"])) : p("", !0);
335
+ onViewAllSubscriptions: r[1] || (r[1] = (i) => s(n)({ action: "view-all-subscriptions" })),
336
+ onLoadMore: r[2] || (r[2] = (i) => e.$emit("load-more"))
337
+ }, null, 8, ["customer", "subscriptions", "payment-methods", "has-error", "has-more-items", "is-loading-more", "show-view-all-button", "show-view-details-button", "show-manage-button"])) : m("", !0);
313
338
  };
314
339
  }
315
340
  });
316
341
  export {
317
- ot as _,
318
- it as u
342
+ ct as _,
343
+ lt as u
319
344
  };
@@ -0,0 +1,99 @@
1
+ import { computed as r, defineComponent as v, toRefs as y, openBlock as p, createElementBlock as b, withModifiers as C, normalizeClass as f, createElementVNode as c, unref as a, withDirectives as k, vModelCheckbox as B, renderSlot as x, createCommentVNode as V } from "vue";
2
+ const z = {
3
+ "w-fit": !0,
4
+ relative: !0,
5
+ "inline-flex": !0,
6
+ "items-center": !0
7
+ }, S = "grow text-sm font-medium text-default", T = {
8
+ xl: "w-16 h-8 after:top-0.5 after:left-0.5 after:h-7 after:w-7",
9
+ lg: "w-14 h-7 after:top-0.5 after:left-0.5 after:h-6 after:w-6",
10
+ md: "w-11 h-6 after:top-0.5 after:left-0.5 after:h-5 after:w-5",
11
+ sm: "w-9 h-5 after:top-0.5 after:left-0.5 after:h-4 after:w-4",
12
+ xs: "w-7 h-4 after:top-0.5 after:left-0.5 after:h-3 after:w-3"
13
+ }, E = {
14
+ red: "peer-focus:ring-red-300 peer-checked:bg-red-600",
15
+ green: "peer-focus:ring-green-300 peer-checked:bg-green-600",
16
+ purple: "peer-focus:ring-purple-300 peer-checked:bg-purple-600",
17
+ yellow: "peer-focus:ring-yellow-300 peer-checked:bg-yellow-400",
18
+ teal: "peer-focus:ring-teal-300 peer-checked:bg-teal-600",
19
+ orange: "peer-focus:ring-orange-300 peer-checked:bg-orange-500"
20
+ }, M = (e) => {
21
+ const u = r(() => {
22
+ var l, t;
23
+ return {
24
+ ...z,
25
+ "cursor-pointer": !((l = e.disabled) != null && l.value),
26
+ "cursor-default": !!((t = e.disabled) != null && t.value)
27
+ };
28
+ }), o = r(() => {
29
+ var l, t;
30
+ return {
31
+ 'peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-primary-300 rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[""] after:absolute after:top-0.5 after:left-0.5 after:border-gray-300 after:border after:rounded-full after:transition-all': !0,
32
+ "bg-gray-200 peer-checked:bg-primary-600 after:bg-white": !((l = e.disabled) != null && l.value),
33
+ "bg-gray-100 peer-checked:bg-primary-200 after:bg-gray-200": (t = e.disabled) == null ? void 0 : t.value
34
+ };
35
+ }), i = r(() => T[e.size.value]), s = r(() => E[e.color.value]), g = r(() => S);
36
+ return {
37
+ labelClasses: u,
38
+ toggleSize: i,
39
+ toggleClasses: o,
40
+ toggleColor: s,
41
+ toggleBallClasses: g
42
+ };
43
+ }, N = ["disabled"], $ = /* @__PURE__ */ v({
44
+ __name: "Toggle",
45
+ props: {
46
+ modelValue: { type: Boolean, default: !1 },
47
+ labelPosition: { default: "after" },
48
+ size: { default: "md" },
49
+ disabled: { type: Boolean, default: !1 },
50
+ color: { default: "" },
51
+ hasBackground: { type: Boolean, default: !1 },
52
+ noSpacing: { type: Boolean, default: !1 }
53
+ },
54
+ emits: ["update:modelValue"],
55
+ setup(e, { emit: u }) {
56
+ const o = e, i = u, s = r({
57
+ get() {
58
+ return o.modelValue;
59
+ },
60
+ set(n) {
61
+ i("update:modelValue", n);
62
+ }
63
+ }), { labelClasses: g, toggleSize: l, toggleClasses: t, toggleColor: m, toggleBallClasses: h } = M(y(o));
64
+ return (n, d) => (p(), b("label", {
65
+ class: f(["inline-flex items-center gap-1.5", {
66
+ "flex-row-reverse": e.labelPosition === "before",
67
+ "rounded border-l-4 border-gray-200 bg-gray-50": e.hasBackground,
68
+ "p-2": !e.noSpacing
69
+ }]),
70
+ onClick: d[1] || (d[1] = C(() => {
71
+ }, ["stop"]))
72
+ }, [
73
+ c("div", {
74
+ class: f(a(g))
75
+ }, [
76
+ k(c("input", {
77
+ "onUpdate:modelValue": d[0] || (d[0] = (w) => s.value = w),
78
+ disabled: e.disabled,
79
+ class: "peer sr-only",
80
+ type: "checkbox"
81
+ }, null, 8, N), [
82
+ [B, s.value]
83
+ ]),
84
+ c("span", {
85
+ class: f([a(t), a(l), a(m)])
86
+ }, null, 2)
87
+ ], 2),
88
+ n.$slots["inline-label"] ? (p(), b("span", {
89
+ key: 0,
90
+ class: f(a(h))
91
+ }, [
92
+ x(n.$slots, "inline-label")
93
+ ], 2)) : V("", !0)
94
+ ], 2));
95
+ }
96
+ });
97
+ export {
98
+ $ as _
99
+ };