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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (268) hide show
  1. package/README.md +152 -91
  2. package/dist/AddPaymentMethodModal-Cx203VXo.mjs +97 -0
  3. package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-BMHhLZnu.mjs +89 -0
  4. package/dist/{Alert.vue.es-ZPG49yR_.mjs → Alert.vue.es-DHJpiSdR.mjs} +1 -1
  5. package/dist/{Amount.vue.es-DPqHB8Xd.mjs → Amount.vue.es-CofcgmXt.mjs} +1 -1
  6. package/dist/AuthProvider.handle-BpFblzFx.mjs +46 -0
  7. package/dist/{Avatar.vue.es-geDQsZwu.mjs → Avatar.vue.es-CJdXXOiG.mjs} +1 -1
  8. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-BD84aBiU.mjs +64 -0
  9. package/dist/BillingInformationForm.lib-ad8B2Y1O.mjs +32 -0
  10. package/dist/BillingInformationForm.vue_vue_type_script_setup_true_lang-F5OVG0kO.mjs +340 -0
  11. package/dist/BillingInformationModal-Do3Fuu8A.mjs +85 -0
  12. package/dist/{Button.vue.es-j7iYlqtJ.mjs → Button.vue.es-CW7XfMBF.mjs} +1 -1
  13. package/dist/{ChargeOnDemandModal-CR01PkP_.mjs → ChargeOnDemandModal-B4ShPKLS.mjs} +46 -45
  14. package/dist/{Chip.vue.es-Dxx_0dte.mjs → Chip.vue.es-CYwWHyAT.mjs} +2 -2
  15. package/dist/CompanyPurchaseToggle.vue_vue_type_script_setup_true_lang-CVXHCSPb.mjs +510 -0
  16. package/dist/{Comparators.vue.es-DQBI3f7m.mjs → Comparators.vue.es-DYrKlE8t.mjs} +1 -1
  17. package/dist/{ContentWithAsideLayout-Bnbsq8_5.mjs → ContentWithAsideLayout-C2kFcft1.mjs} +1 -1
  18. package/dist/{ContextMenu.vue.es-BJO4U47Q.mjs → ContextMenu.vue.es-EXTx0NEt.mjs} +10 -10
  19. package/dist/{CustomerBillingInformation.vue.es-CmNpqcBw.mjs → CustomerBillingInformation.vue.es-CSKG6V3T.mjs} +3 -3
  20. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-DZZuAHIE.mjs +217 -0
  21. package/dist/CustomerShippingAddresses-Bdy4XWjE.mjs +282 -0
  22. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BEKwWob_.mjs +3124 -0
  23. package/dist/{DividerText.vue.es-BusbyeAI.mjs → DividerText.vue.es-Dq0JzI8C.mjs} +1 -1
  24. package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-wPma8Os-.mjs → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-3gf8pvR7.mjs} +3 -3
  25. package/dist/{ErrorNotification.vue.es-F068p7PY.mjs → ErrorNotification.vue.es-Cw7fqCg1.mjs} +2 -2
  26. package/dist/{FormMessage.vue.es-CwMQpIAW.mjs → FormMessage.vue.es-MrzQoSae.mjs} +1 -1
  27. package/dist/{IconButton.vue.es-D8DtBW9i.mjs → IconButton.vue.es-CpQbFw0x.mjs} +2 -2
  28. package/dist/{IconTitle.vue.es-6VJtjJX2.mjs → IconTitle.vue.es-CcOIFjbE.mjs} +3 -3
  29. package/dist/{Input.vue.es-BLyHcmu4.mjs → Input.vue.es-Cd55vQri.mjs} +4 -4
  30. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Dl1vTzQD.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-CqkGCbvg.mjs} +2 -2
  31. package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-DYskT3r7.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-BUu5M_gx.mjs} +7 -7
  32. package/dist/{InvoicePreview.vue.es-Cpf66_xV.mjs → InvoicePreview.vue.es-DHh5wruk.mjs} +7 -7
  33. package/dist/{InvoicePricingClauseChip.vue.es-CDrAE901.mjs → InvoicePricingClauseChip.vue.es-ZSOBp1se.mjs} +4 -4
  34. package/dist/{Label.vue.es-es7ZUBSP.mjs → Label.vue.es-CB6G8Krh.mjs} +3 -3
  35. package/dist/LoadFailedNotice.vue_vue_type_script_setup_true_lang-BZCtO2Er.mjs +20 -0
  36. package/dist/{Modal.vue.es-eeR9FmvQ.mjs → Modal.vue.es-CJFTVFSZ.mjs} +138 -127
  37. package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-D0pwpqIC.mjs +789 -0
  38. package/dist/{PaymentCompletedCard.vue_vue_type_script_setup_true_lang-CrjVPks0.mjs → PaymentCompletedCard.vue_vue_type_script_setup_true_lang-D08Qpgb0.mjs} +2 -2
  39. package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-DyjzaTK1.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-dl52PYcq.mjs} +4 -4
  40. package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BHQrWy6r.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-D0priVnA.mjs} +3 -3
  41. package/dist/{PaymentHistoryBlock-CN42ewCn.mjs → PaymentHistoryBlock-BSXlneqM.mjs} +1 -1
  42. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-C3Y5fHvA.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CXy0XGpn.mjs} +5 -5
  43. package/dist/{PaymentIntegrationForm-D3Ye7LZ5.mjs → PaymentIntegrationForm-Diua0GGJ.mjs} +1 -1
  44. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CLlm_Q2j.mjs +161 -0
  45. package/dist/{PaymentIntegrationFormAdyen-Fm-diCCO.mjs → PaymentIntegrationFormAdyen-D4FP0Vj5.mjs} +302 -282
  46. package/dist/{PaymentIntegrationFormStripe-BANBL6za.mjs → PaymentIntegrationFormStripe-vFzF_sCJ.mjs} +126 -117
  47. package/dist/{PaymentMethod.vue.es-t3-VyoE8.mjs → PaymentMethod.vue.es-vs6SaZOh.mjs} +200 -150
  48. package/dist/{PaymentMethodForm-CqP3GoNj.mjs → PaymentMethodForm-Buhe0aRQ.mjs} +1 -1
  49. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-RPPdBw_e.mjs +165 -0
  50. package/dist/{PaymentMethodSelector.vue_vue_type_script_setup_true_lang-D5wmRuCf.mjs → PaymentMethodSelector.vue_vue_type_script_setup_true_lang-DprL5TR8.mjs} +7 -7
  51. package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-DhkkiJaQ.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-BXbevI3r.mjs} +28 -26
  52. package/dist/PaymentMethodsModal-CnJP9UKp.mjs +192 -0
  53. package/dist/PlanCustomizationEditor-KHLSEUbb.mjs +864 -0
  54. package/dist/{PortalLinkUnverified-Cp60_kRJ.mjs → PortalLinkUnverified-DlZAkE93.mjs} +3 -3
  55. package/dist/{PortalNotAvailable-DzSQnfzw.mjs → PortalNotAvailable-CKIomNrm.mjs} +2 -2
  56. package/dist/{PricingGroupRangeInput.vue.es-Srq_3cga.mjs → PricingGroupRangeInput.vue.es-oHD-IT12.mjs} +8 -8
  57. package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-oRijnVnZ.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-wCW8YZHM.mjs} +16 -15
  58. package/dist/{RadioGroupExtended.vue.es-BbBMDf6l.mjs → RadioGroupExtended.vue.es-DsShmkKZ.mjs} +5 -5
  59. package/dist/Section.vue.es-DYmEtgBj.mjs +88 -0
  60. package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-OM19NPBh.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-CANXYTzu.mjs} +2 -2
  61. package/dist/ShippingAddressForm.vue_vue_type_script_setup_true_lang-CJp6ddhZ.mjs +144 -0
  62. package/dist/ShippingAddressesModal-Gxv2KxaW.mjs +283 -0
  63. package/dist/{StepInput.vue.es-ieh4EuJ7.mjs → StepInput.vue.es-sqA-VSsn.mjs} +4 -4
  64. package/dist/SubscriptionCancellationModal-DfAZ_uW6.mjs +4 -0
  65. package/dist/SubscriptionCancellationModal.vue_vue_type_script_setup_true_lang-BlbiDNIu.mjs +240 -0
  66. package/dist/SubscriptionCancellationSuccess.vue_vue_type_script_setup_true_lang-C1ko2xvR.mjs +64 -0
  67. package/dist/SubscriptionDetails.entry.ce-CdWV-8WN.mjs +764 -0
  68. package/dist/{SubscriptionSchedules-DMxX3GpK.mjs → SubscriptionSchedules-BfdVn1XA.mjs} +1 -1
  69. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-C8q8Q6h5.mjs +5413 -0
  70. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-qQ9gJOIs.mjs +90 -0
  71. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-CHlXP_2x.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-DYWjTzPV.mjs} +133 -108
  72. package/dist/Toggle.vue.es-S2g8WGY_.mjs +99 -0
  73. package/dist/{TooltipParagraph.vue.es-BES3zsYN.mjs → TooltipParagraph.vue.es-Bt-7LHr3.mjs} +18 -18
  74. package/dist/{TranslationOverride.vue_vue_type_script_setup_true_lang-BJmlNrXT.mjs → TranslationOverride.vue_vue_type_script_setup_true_lang-Cp_sFa52.mjs} +1 -1
  75. package/dist/TrialChip.vue.es-VZwQX079.mjs +47 -0
  76. package/dist/addonQuantity-D3bGVqjL.mjs +128 -0
  77. package/dist/adyen-CHgq2l6n.mjs +99 -0
  78. package/dist/adyenSdk-DUTO7xkT.mjs +63 -0
  79. package/dist/{api.es-qgvzNMU-.mjs → api.es-QaC926Xu.mjs} +2 -2
  80. package/dist/components/BillingInformation/BillingInformation.mjs +37 -41
  81. package/dist/components/BillingInformationForm/BillingInformationForm.mjs +45 -462
  82. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +33 -42
  83. package/dist/components/Invoice/Invoice.mjs +1087 -1019
  84. package/dist/components/InvoiceDetails/InvoiceDetails.mjs +38 -47
  85. package/dist/components/InvoiceHeader/InvoiceHeader.mjs +29 -34
  86. package/dist/components/InvoicesList/InvoicesList.mjs +33 -42
  87. package/dist/components/PaymentHistory/PaymentHistory.mjs +39 -48
  88. package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +56 -64
  89. package/dist/components/ShippingAddressForm/ShippingAddressForm.ce.d.ts +1 -0
  90. package/dist/components/ShippingAddressForm/ShippingAddressForm.mjs +212 -0
  91. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +34 -42
  92. package/dist/components/SubscriptionsList/SubscriptionsList.mjs +41 -50
  93. package/dist/components/WalletBalances/WalletBalances.mjs +46 -55
  94. package/dist/core/events.types.d.ts +1 -0
  95. package/dist/core/index.mjs +51 -34
  96. package/dist/{customElements-DK4GKNJG.mjs → customElements-B8c354Nu.mjs} +802 -768
  97. package/dist/{customer-lf6S5DBR.mjs → customer-CP-Wz7JO.mjs} +1 -1
  98. package/dist/{de-DE-Cyj_NtiI.mjs → de-DE-C9HrzHpE.mjs} +71 -5
  99. package/dist/{de-DE-UJ6X6jXu.mjs → de-DE-DAQmgEy5.mjs} +82 -19
  100. package/dist/{formControl-BZQLHnOO.mjs → formControl-C18sw44K.mjs} +275 -275
  101. package/dist/{formatting.es-RclXHhKo.mjs → formatting.es-DlJEzreG.mjs} +16 -13
  102. package/dist/{fr-FR-CRFoWQ7J.mjs → fr-FR-CHR3VWvd.mjs} +71 -5
  103. package/dist/{fr-FR-Cvvbkwlj.mjs → fr-FR-fz51-Ubw.mjs} +79 -16
  104. package/dist/{countryData.es-BegoD-cZ.mjs → getCountryNameByCode.es-OGxn_zT0.mjs} +7 -2
  105. package/dist/icon-sprite.svg.es-2S3rv8NW.mjs +4 -0
  106. package/dist/index.es-Bv55VtdE.mjs +633 -0
  107. package/dist/{index.es-BrVTOW5D.mjs → index.es-C7J3WGGo.mjs} +4 -4
  108. package/dist/index.mjs +37 -33
  109. package/dist/invoices-I7PghcPV.mjs +143 -0
  110. package/dist/{it-IT-DnJP5URH.mjs → it-IT-BpCkTMZL.mjs} +73 -10
  111. package/dist/{it-IT-DObZEc-U.mjs → it-IT-Dzc7DmmL.mjs} +71 -5
  112. package/dist/{nl-NL-q9xfTZF0.mjs → nl-NL-22C8OcIM.mjs} +79 -16
  113. package/dist/{nl-NL-C02xHilF.mjs → nl-NL-Dut_QwsY.mjs} +71 -5
  114. package/dist/paymentIntegrationFormLoaders-BFMAMpcA.mjs +31 -0
  115. package/dist/{paymentMethods-8w-ccfY_.mjs → paymentMethods-aGKIi7DS.mjs} +22 -21
  116. package/dist/{paymentOutcome-B6sW1eCV.mjs → paymentOutcome-Cv7hTFVu.mjs} +1 -1
  117. package/dist/paymentRedirect-DaS8Kccc.mjs +66 -0
  118. package/dist/payments-BKoKpoLN.mjs +71 -0
  119. package/dist/preloadPaymentIntegrationForms-Buwal_JR.mjs +9 -0
  120. package/dist/pricing-Y-7ELzN-.mjs +42 -0
  121. package/dist/{pricingItem.es-bCPArbTa.mjs → pricingItem.es-BafitMMY.mjs} +1 -1
  122. package/dist/pricingPlanScheduleOverrides-CGm_-jJq.mjs +291 -0
  123. package/dist/randomUuid-BE_IQ-aq.mjs +10 -0
  124. package/dist/screens/Checkout/Checkout.mjs +1098 -3
  125. package/dist/screens/CheckoutSession/CheckoutSession.ce.d.ts +1 -0
  126. package/dist/screens/CheckoutSession/CheckoutSession.mjs +1322 -0
  127. package/dist/screens/CustomerOverview/CustomerOverview.mjs +209 -133
  128. package/dist/screens/PayInvoice/PayInvoice.mjs +283 -275
  129. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +92 -97
  130. package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +2 -2
  131. package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +915 -404
  132. package/dist/{subscription-BwzkagDI.mjs → subscription-DQ5mRp_e.mjs} +10 -10
  133. package/dist/subscriptions-B7dNqi1C.mjs +99 -0
  134. package/dist/timePeriod.es-R9U0wLlB.mjs +13 -0
  135. package/dist/types/components/customer/BillingInformationForm/BillingInformationForm.types.d.ts +11 -14
  136. package/dist/types/components/customer/CheckoutForm/CheckoutAddressFields.types.d.ts +2 -9
  137. package/dist/types/components/customer/CheckoutForm/CheckoutForm.types.d.ts +10 -0
  138. package/dist/types/components/customer/CustomerPaymentMethodsBlock/CustomerPaymentMethodsBlock.types.d.ts +6 -0
  139. package/dist/types/components/payments/AddPaymentMethodModal/AddPaymentMethodModal.types.d.ts +17 -0
  140. package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethodApplePay.types.d.ts +3 -2
  141. package/dist/types/components/payments/ExpressPaymentMethods/ExpressPaymentMethods.types.d.ts +3 -2
  142. package/dist/types/components/payments/OnDemandPaymentModalShell/OnDemandPaymentModalShell.types.d.ts +2 -0
  143. package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +12 -1
  144. package/dist/types/components/payments/PaymentMethodsList/PaymentMethodsList.types.d.ts +2 -0
  145. package/dist/types/components/payments/PaymentMethodsModal/PaymentMethodsModal.types.d.ts +22 -0
  146. package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.lib.types.d.ts +1 -1
  147. package/dist/types/components/providers/AuthProvider/AuthProvider.vue.d.ts +7 -1
  148. package/dist/types/components/providers/EntryProvider/EntryProvider.types.d.ts +2 -2
  149. package/dist/types/components/providers/EntryProvider/EntryProvider.vue.d.ts +3 -11
  150. package/dist/types/components/providers/ErrorBoundary/ErrorBoundary.vue.d.ts +1 -5
  151. package/dist/types/components/providers/HostElementProvider/HostElementProvider.lib.d.ts +11 -0
  152. package/dist/types/components/providers/HostElementProvider/composables/useHostEvent.d.ts +12 -0
  153. package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +5 -4
  154. package/dist/types/components/providers/PortalProvider/PortalProvider.lib.d.ts +3 -3
  155. package/dist/types/components/providers/PortalProvider/PortalProvider.types.d.ts +3 -3
  156. package/dist/types/components/providers/PortalProvider/PortalProvider.vue.d.ts +6 -1
  157. package/dist/types/components/providers/PortalProvider/composables/usePortal.d.ts +1 -0
  158. package/dist/types/components/providers/Provider/Provider.types.d.ts +10 -3
  159. package/dist/types/components/providers/Provider/Provider.vue.d.ts +3 -14
  160. package/dist/types/components/subscriptions/ChargeOnDemandModal/ChargeOnDemandModal.types.d.ts +1 -1
  161. package/dist/types/components/subscriptions/OrderSummary.types.d.ts +14 -0
  162. package/dist/types/components/subscriptions/OrderSummaryInvoice.types.d.ts +14 -1
  163. package/dist/types/components/subscriptions/PlanCustomizationForm/PlanCustomizationEditor.types.d.ts +9 -0
  164. package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditor.types.d.ts +4 -0
  165. package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditorItem.types.d.ts +2 -0
  166. package/dist/types/components/subscriptions/PlanCustomizationForm/UnitsEditor.types.d.ts +4 -0
  167. package/dist/types/components/subscriptions/PlanCustomizationForm/UnitsEditorItem.types.d.ts +2 -0
  168. package/dist/types/components/subscriptions/SubscriptionCancellationSuccess/SubscriptionCancellationSuccess.types.d.ts +4 -0
  169. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +10 -9
  170. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSuccess.types.d.ts +5 -0
  171. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSummary.types.d.ts +3 -0
  172. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionPlanChangeSummary.types.d.ts +4 -0
  173. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionPlanSelector.types.d.ts +7 -0
  174. package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsList.types.d.ts +1 -0
  175. package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsListItem.types.d.ts +1 -0
  176. package/dist/types/components/wallets/AutoTopUpModal/AutoTopUpModal.types.d.ts +3 -1
  177. package/dist/types/index.d.ts +5 -1
  178. package/dist/types/public/components/BillingInformation/BillingInformation.types.d.ts +5 -0
  179. package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.types.d.ts +1 -2
  180. package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.types.d.ts +6 -2
  181. package/dist/types/public/components/Invoice/Invoice.types.d.ts +7 -7
  182. package/dist/types/public/components/InvoiceHeader/InvoiceHeader.types.d.ts +2 -2
  183. package/dist/types/public/components/InvoicesList/InvoicesList.types.d.ts +6 -7
  184. package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.types.d.ts +1 -1
  185. package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.types.d.ts +19 -14
  186. package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.entry.ce.d.ts +1 -0
  187. package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.entry.types.d.ts +6 -0
  188. package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.types.d.ts +5 -0
  189. package/dist/types/public/components/SubscriptionsList/SubscriptionsList.types.d.ts +10 -1
  190. package/dist/types/public/core/action-request.types.d.ts +18 -24
  191. package/dist/types/public/core/events.types.d.ts +99 -0
  192. package/dist/types/public/core/index.d.ts +3 -1
  193. package/dist/types/public/core/types.d.ts +11 -2
  194. package/dist/types/public/screens/Checkout/Checkout.entry.types.d.ts +1 -7
  195. package/dist/types/public/screens/Checkout/Checkout.source.types.d.ts +151 -0
  196. package/dist/types/public/screens/Checkout/Checkout.types.d.ts +7 -30
  197. package/dist/types/public/screens/CheckoutSession/CheckoutSession.entry.ce.d.ts +1 -0
  198. package/dist/types/public/screens/CheckoutSession/CheckoutSession.entry.types.d.ts +3 -0
  199. package/dist/types/public/screens/CustomerOverview/CustomerOverview.types.d.ts +8 -2
  200. package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +0 -6
  201. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.configuration.types.d.ts +2 -19
  202. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.types.d.ts +2 -3
  203. package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.types.d.ts +2 -1
  204. package/dist/types/services/paymentMethods.types.d.ts +12 -1
  205. package/dist/types/types/EntryBaseProps.d.ts +10 -6
  206. package/dist/types/types/branding.d.ts +15 -0
  207. package/dist/types/types/checkoutSession.d.ts +199 -0
  208. package/dist/types/types/errors.d.ts +2 -0
  209. package/dist/types/types/pricingPlanGroup.d.ts +25 -0
  210. package/dist/{useActionDispatchProvider-ChAHdwR8.mjs → useActionDispatchProvider-BCtk-FGU.mjs} +1 -1
  211. package/dist/useAddressFormats-CtE4QaVU.mjs +1998 -0
  212. package/dist/useCheckoutForm-BhXcmnUi.mjs +3355 -0
  213. package/dist/{useCustomer-CTMhg1nd.mjs → useCustomer-mQysxUwp.mjs} +2 -2
  214. package/dist/useDefaultPaymentMethod-Dliq6_Yw.mjs +39 -0
  215. package/dist/useExperimentalFeature-Bw6bBtay.mjs +6 -0
  216. package/dist/useHostEvent-MtRG6W2B.mjs +12 -0
  217. package/dist/{useIncrementalLoading-CBVutPH8.mjs → useIncrementalLoading-CJSj1945.mjs} +2 -2
  218. package/dist/{useInvoiceData-qUGbBAQK.mjs → useInvoiceData-BEZIvw32.mjs} +2 -2
  219. package/dist/{useInvoicesList-wJvZAJpW.mjs → useInvoicesList-CrXjsmei.mjs} +140 -138
  220. package/dist/{sorting.es-C0pdMgX0.mjs → useIsMounted.es-BNPhTTHE.mjs} +11 -10
  221. package/dist/{useLoadInitialData-UvfYXgbi.mjs → useLoadInitialData-Bomj_1mo.mjs} +1 -1
  222. package/dist/usePaymentFormHold-CYZ4BdOw.mjs +19 -0
  223. package/dist/{usePaymentMethodAvailability-35l4pWdH.mjs → usePaymentMethodAvailability-DR_neLeZ.mjs} +4 -4
  224. package/dist/usePaymentMethodOptions-CuHoQx3K.mjs +67 -0
  225. package/dist/{usePaymentMethods-De7hlLHo.mjs → usePaymentMethods-BDdetXts.mjs} +2 -2
  226. package/dist/{usePayments-hWS7fnOx.mjs → usePayments-B5Z9Kfbv.mjs} +20 -18
  227. package/dist/usePortal-DuLR5Mid.mjs +14 -0
  228. package/dist/{useService-BwzIBIRp.mjs → useService-2aOFBTxU.mjs} +1 -1
  229. package/dist/useShippingAddresses-BvThNpez.mjs +122 -0
  230. package/dist/useSubscription-Dzo-kBpQ.mjs +35 -0
  231. package/dist/useSubscriptionActions-CWaNRoZ7.mjs +44 -0
  232. package/dist/useWatchDebounced-DkXgKe0E.mjs +20 -0
  233. package/dist/{wallets.es-eH2C2ygn.mjs → wallets.es-DRlUVd2R.mjs} +1 -1
  234. package/package.json +41 -11
  235. package/dist/AuthProvider.handle-SRR_04XS.mjs +0 -50
  236. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-nqKbgY7G.mjs +0 -58
  237. package/dist/Checkout.entry.ce-CopWuLJC.mjs +0 -4169
  238. package/dist/CheckoutAddressFields.vue_vue_type_script_setup_true_lang-CEnM1uxK.mjs +0 -828
  239. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Jyb5ZN3s.mjs +0 -136
  240. package/dist/CustomerShippingAddresses-BRPukhRI.mjs +0 -397
  241. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DJnr5D56.mjs +0 -2936
  242. package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-B_FpibLA.mjs +0 -441
  243. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-D07SEP8a.mjs +0 -181
  244. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-CMRMbL3d.mjs +0 -161
  245. package/dist/PlanCustomizationEditor-B76UNEMm.mjs +0 -791
  246. package/dist/Section.vue.es-Oqn1wGPZ.mjs +0 -72
  247. package/dist/ShippingAddressesModal-c7nqf4Ny.mjs +0 -418
  248. package/dist/SubscriptionDetails.entry.ce-uYv45FGH.mjs +0 -1044
  249. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DXro_64f.mjs +0 -5200
  250. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-BZNsqN4G.mjs +0 -203
  251. package/dist/TrialChip.vue.es-C51z1ZiA.mjs +0 -35
  252. package/dist/addonQuantity-CCVaA3e-.mjs +0 -758
  253. package/dist/adyenSdk-B01MB9Ia.mjs +0 -58
  254. package/dist/getCountryNameByCode.es-BDHua7VM.mjs +0 -8
  255. package/dist/icon-sprite.svg.es-BWBB8SGw.mjs +0 -4
  256. package/dist/invoices-DdREPDXV.mjs +0 -123
  257. package/dist/paymentMethods-Goa25rTs.mjs +0 -61
  258. package/dist/payments-CKpU1K3t.mjs +0 -68
  259. package/dist/pricing-CEaZGgKe.mjs +0 -29
  260. package/dist/pricingPlanScheduleOverrides-BBp-DmpV.mjs +0 -233
  261. package/dist/pricingPlanSchedules-DSMptcAh.mjs +0 -38
  262. package/dist/subscriptions-B5bH8hsI.mjs +0 -66
  263. package/dist/taxId.es-e6NEvprh.mjs +0 -243
  264. package/dist/types/components/payments/ExpressPaymentMethodButton/ExpressPaymentMethodButton.types.d.ts +0 -3
  265. package/dist/useCustomerFormLabels-D4oDnfxA.mjs +0 -1173
  266. package/dist/usePaymentFormHold-Cwdr-vyc.mjs +0 -181
  267. package/dist/usePortal-DUfD6hrA.mjs +0 -7
  268. package/dist/useTimePeriod.es-BUorDLVK.mjs +0 -93
@@ -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-CJdXXOiG.mjs";
3
+ import { a as w, d as p } from "./customElements-B8c354Nu.mjs";
4
+ import { b as h, c as N, f as B } from "./subscription-DQ5mRp_e.mjs";
5
+ import { g as I } from "./pricing-Y-7ELzN-.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-CJSj1945.mjs";
2
+ import { c as A } from "./subscriptions-B7dNqi1C.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-CW7XfMBF.mjs";
5
+ import { _ as N } from "./ErrorNotification.vue.es-Cw7fqCg1.mjs";
6
+ import { _ as x } from "./Section.vue.es-DYmEtgBj.mjs";
7
+ import { a as $, d as h } from "./customElements-B8c354Nu.mjs";
8
+ import { _ as z } from "./PaymentMethod.vue.es-vs6SaZOh.mjs";
9
+ import { b as C, c as P } from "./subscription-DQ5mRp_e.mjs";
10
+ import { u as j } from "./useSubscriptionActions-CWaNRoZ7.mjs";
11
+ import { _ as O } from "./Skeleton.vue_vue_type_script_setup_true_lang-D7MFjvrP.mjs";
12
+ import { u as R } from "./useActionDispatchProvider-BCtk-FGU.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
+ };