@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,764 @@
1
+ import { defineComponent as A, computed as b, openBlock as l, createBlock as m, unref as i, withCtx as d, createElementVNode as F, createVNode as y, createTextVNode as h, toDisplayString as f, createCommentVNode as _, createElementBlock as N, Fragment as H, renderList as Y, defineAsyncComponent as X, toRef as te, ref as q, watch as ne, renderSlot as se, mergeProps as ie } from "vue";
2
+ import { _ as j } from "./Button.vue.es-CW7XfMBF.mjs";
3
+ import { _ as ae } from "./ErrorNotification.vue.es-Cw7fqCg1.mjs";
4
+ import { a as x, d as M, e as J, j as oe, k as re, l as ce } from "./customElements-B8c354Nu.mjs";
5
+ import { C as le } from "./ContentWithAsideLayout-C2kFcft1.mjs";
6
+ import { u as de } from "./useActionDispatchProvider-BCtk-FGU.mjs";
7
+ import { u as ue } from "./useHostEvent-MtRG6W2B.mjs";
8
+ import { u as me } from "./useSubscriptionActions-CWaNRoZ7.mjs";
9
+ import { d as K, c as pe } from "./subscription-DQ5mRp_e.mjs";
10
+ import { b as ge, c as be } from "./CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BEKwWob_.mjs";
11
+ import { _ as he } from "./CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-DZZuAHIE.mjs";
12
+ import { _ as fe } from "./EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-3gf8pvR7.mjs";
13
+ import { _ as ve } from "./Skeleton.vue_vue_type_script_setup_true_lang-D7MFjvrP.mjs";
14
+ import { _ as U } from "./Section.vue.es-DYmEtgBj.mjs";
15
+ import { g as _e, u as ye } from "./useSubscription-Dzo-kBpQ.mjs";
16
+ import { g as we } from "./pricing-Y-7ELzN-.mjs";
17
+ import { w as Se, u as Ie, h as Ce, g as De } from "./pricingPlanScheduleOverrides-CGm_-jJq.mjs";
18
+ import { f as W } from "./formatting.es-DlJEzreG.mjs";
19
+ import { _ as Pe } from "./SubscriptionCancellationModal.vue_vue_type_script_setup_true_lang-BlbiDNIu.mjs";
20
+ import { _ as Me, c as $e } from "./SubscriptionCancellationSuccess.vue_vue_type_script_setup_true_lang-C1ko2xvR.mjs";
21
+ import { A as Oe } from "./ApiStatus-CSFKl_ra.mjs";
22
+ import { u as Ae } from "./useCustomer-mQysxUwp.mjs";
23
+ import { u as ke } from "./usePaymentMethods-BDdetXts.mjs";
24
+ import { u as Le } from "./useLoadInitialData-Bomj_1mo.mjs";
25
+ import { u as Te } from "./useService-2aOFBTxU.mjs";
26
+ import { g as z } from "./getComposedString.es-C__uhJpd.mjs";
27
+ import { g as Q } from "./pricing.es-QYWrKMUJ.mjs";
28
+ import { h as Ee } from "./pricingItemConfigs.es-D3pX_9AJ.mjs";
29
+ import { i as Be } from "./usePaymentMethodOptions-CuHoQx3K.mjs";
30
+ const Ue = () => {
31
+ const { $t: e } = x();
32
+ return { getPriceLabel: (t) => {
33
+ if (!t.price)
34
+ return;
35
+ const n = W(t.price);
36
+ return t.priceType === "FIXED" ? n : e(
37
+ {
38
+ defaultMessage: "{price} per unit",
39
+ description: "The listed price of an on-demand item charged per unit",
40
+ id: "charge_on_demand.item.price_per_unit"
41
+ },
42
+ { price: n }
43
+ );
44
+ } };
45
+ };
46
+ function Fe(e) {
47
+ var n, a, o, c, p, r, g;
48
+ const s = (o = (a = (n = e.items) == null ? void 0 : n[0]) == null ? void 0 : a.configs) == null ? void 0 : o[0], t = (p = (c = s == null ? void 0 : s.details) == null ? void 0 : c.bands) == null ? void 0 : p[0];
49
+ return {
50
+ amount: (t == null ? void 0 : t.amount) ?? (t == null ? void 0 : t.fixed_amount),
51
+ billingPeriod: ((r = s == null ? void 0 : s.details) == null ? void 0 : r.pricing_period) ?? ((g = s == null ? void 0 : s.details) == null ? void 0 : g.billing_period)
52
+ };
53
+ }
54
+ function xe(e) {
55
+ var n;
56
+ const s = new Set(
57
+ _e(e.pricing_plan_schedule ?? {})
58
+ );
59
+ return s.size === 0 || !e.pricing_plan_version ? [] : (((n = Se(e).pricing_categories) == null ? void 0 : n.flatMap(
60
+ (a) => a.pricing_groups ?? []
61
+ )) ?? []).flatMap(
62
+ (a) => (a.pricings ?? []).filter((o) => s.has(o.id)).map((o) => ({
63
+ pricingId: o.id,
64
+ pricingGroupId: a.id,
65
+ groupName: a.name,
66
+ // A pricing without a name of its own is only identifiable by the choice it belongs to.
67
+ name: we(o) || a.name,
68
+ ...Fe(o)
69
+ }))
70
+ );
71
+ }
72
+ const Ne = { class: "sv-enabled-pricings-list__item-body flex items-center gap-4" }, je = { class: "sv-enabled-pricings-list__item-content grow" }, Ve = /* @__PURE__ */ A({
73
+ __name: "EnabledPricingsListItem",
74
+ props: {
75
+ entry: { type: Object },
76
+ canUpgrade: { type: Boolean, default: !0 }
77
+ },
78
+ emits: ["upgrade"],
79
+ setup(e) {
80
+ const s = e, { $t: t } = x(), { formatTimePeriod: n } = Ie(), a = b(() => {
81
+ const { amount: o, billingPeriod: c } = s.entry;
82
+ if (o)
83
+ return c ? t(
84
+ {
85
+ defaultMessage: "{amount} per {period}",
86
+ id: "enabled_pricings_list.item.price",
87
+ description: 'The recurring price of an enabled pricing, e.g. "€ 100,00 per month"'
88
+ },
89
+ {
90
+ amount: W(o),
91
+ period: n(c, {
92
+ short: !0,
93
+ hideValueForExactPeriods: !0
94
+ })
95
+ }
96
+ ) : W(o);
97
+ });
98
+ return (o, c) => (l(), m(i(U), { class: "sv-enabled-pricings-list__item" }, {
99
+ default: d(() => [
100
+ F("div", Ne, [
101
+ F("div", je, [
102
+ y(i(M), {
103
+ tag: "span",
104
+ variant: "body-xs",
105
+ color: "subtle",
106
+ class: "sv-enabled-pricings-list__item-group"
107
+ }, {
108
+ default: d(() => [
109
+ h(f(e.entry.groupName), 1)
110
+ ]),
111
+ _: 1
112
+ }),
113
+ y(i(M), {
114
+ tag: "h3",
115
+ variant: "heading-3",
116
+ "no-spacing": "",
117
+ class: "sv-enabled-pricings-list__item-name"
118
+ }, {
119
+ default: d(() => [
120
+ h(f(e.entry.name), 1)
121
+ ]),
122
+ _: 1
123
+ }),
124
+ a.value ? (l(), m(i(M), {
125
+ key: 0,
126
+ tag: "span",
127
+ variant: "body-sm",
128
+ color: "subtle",
129
+ class: "sv-enabled-pricings-list__item-price"
130
+ }, {
131
+ default: d(() => [
132
+ h(f(a.value), 1)
133
+ ]),
134
+ _: 1
135
+ })) : _("", !0)
136
+ ]),
137
+ e.canUpgrade ? (l(), m(i(j), {
138
+ key: 0,
139
+ intent: "secondary",
140
+ class: "sv-action sv-action--secondary sv-enabled-pricings-list__item-upgrade shrink-0",
141
+ type: "button",
142
+ size: "xs",
143
+ onClick: c[0] || (c[0] = (p) => o.$emit("upgrade", e.entry))
144
+ }, {
145
+ default: d(() => [
146
+ h(f(i(t)({
147
+ defaultMessage: "Upgrade",
148
+ id: "enabled_pricings_list.item.upgrade_button.label",
149
+ description: "Label for the button that changes which pricing is enabled for a group"
150
+ })), 1)
151
+ ]),
152
+ _: 1
153
+ })) : _("", !0)
154
+ ])
155
+ ]),
156
+ _: 1
157
+ }));
158
+ }
159
+ }), Re = { class: "sv-enabled-pricings-list__items grid grid-cols-1 gap-2" }, We = /* @__PURE__ */ A({
160
+ __name: "EnabledPricingsList",
161
+ props: {
162
+ pricingPlanSchedule: { type: Object }
163
+ },
164
+ emits: ["upgrade"],
165
+ setup(e) {
166
+ const s = e, { $t: t } = x(), n = b(() => xe(s.pricingPlanSchedule)), a = b(
167
+ () => !Ce(s.pricingPlanSchedule.pricing_plan_schedule)
168
+ );
169
+ return (o, c) => n.value.length > 0 ? (l(), m(i(U), {
170
+ key: 0,
171
+ class: "sv-enabled-pricings-list",
172
+ "content-background": "none",
173
+ "no-border": "",
174
+ "no-spacing": "",
175
+ title: i(t)({
176
+ defaultMessage: "Upgrades",
177
+ id: "enabled_pricings_list.title",
178
+ description: "Title for the block listing the pricings enabled on a subscription"
179
+ })
180
+ }, {
181
+ default: d(() => [
182
+ F("div", Re, [
183
+ (l(!0), N(H, null, Y(n.value, (p) => (l(), m(Ve, {
184
+ key: p.pricingId,
185
+ entry: p,
186
+ "can-upgrade": a.value,
187
+ onUpgrade: c[0] || (c[0] = (r) => o.$emit("upgrade", r))
188
+ }, null, 8, ["entry", "can-upgrade"]))), 128))
189
+ ])
190
+ ]),
191
+ _: 1
192
+ }, 8, ["title"])) : _("", !0);
193
+ }
194
+ }), Xe = { class: "sv-on-demand-items-card__items grid grid-cols-1 gap-1" }, qe = {
195
+ key: 0,
196
+ class: "sv-on-demand-items-card__more"
197
+ }, G = 2, ze = /* @__PURE__ */ A({
198
+ __name: "OnDemandItemsCard",
199
+ props: {
200
+ items: { type: Array }
201
+ },
202
+ emits: ["order"],
203
+ setup(e) {
204
+ const s = e, { $t: t } = x(), { getPriceLabel: n } = Ue(), a = b(
205
+ () => s.items.slice(0, G).map((c) => ({
206
+ item: c,
207
+ priceLabel: n(c)
208
+ }))
209
+ ), o = b(() => Math.max(s.items.length - G, 0));
210
+ return (c, p) => (l(), m(i(U), {
211
+ class: "sv-on-demand-items-card",
212
+ "content-background": "none",
213
+ "no-border": "",
214
+ "no-spacing": "",
215
+ title: i(t)({
216
+ defaultMessage: "Available on demand items",
217
+ id: "on_demand_items_card.title",
218
+ description: "Title for the block that offers the on-demand items of a subscription"
219
+ })
220
+ }, {
221
+ right: d(() => [
222
+ y(i(j), {
223
+ class: "sv-action sv-action--secondary sv-on-demand-items-card__order",
224
+ type: "button",
225
+ size: "sm",
226
+ intent: "secondary",
227
+ onClick: p[0] || (p[0] = (r) => c.$emit("order"))
228
+ }, {
229
+ default: d(() => [
230
+ h(f(i(t)({
231
+ defaultMessage: "Purchase",
232
+ id: "on_demand_items_card.order_button.label",
233
+ description: "Label for the button that opens the on-demand order form"
234
+ })), 1)
235
+ ]),
236
+ _: 1
237
+ })
238
+ ]),
239
+ default: d(() => [
240
+ F("ul", Xe, [
241
+ (l(!0), N(H, null, Y(a.value, ({ item: r, priceLabel: g }) => (l(), N("li", {
242
+ key: r.pricingItemId,
243
+ class: "sv-on-demand-items-card__item"
244
+ }, [
245
+ y(i(U), {
246
+ "no-spacing": "",
247
+ "content-classes": "flex flex-col px-4 py-3"
248
+ }, {
249
+ default: d(() => [
250
+ y(i(M), {
251
+ tag: "span",
252
+ weight: "semibold",
253
+ "no-spacing": "",
254
+ class: "sv-on-demand-items-card__item-name break-words"
255
+ }, {
256
+ default: d(() => [
257
+ h(f(r.name), 1)
258
+ ]),
259
+ _: 2
260
+ }, 1024),
261
+ g ? (l(), m(i(M), {
262
+ key: 0,
263
+ tag: "span",
264
+ variant: "body-sm",
265
+ color: "subtle",
266
+ "no-spacing": "",
267
+ class: "sv-on-demand-items-card__item-price"
268
+ }, {
269
+ default: d(() => [
270
+ h(f(g), 1)
271
+ ]),
272
+ _: 2
273
+ }, 1024)) : _("", !0)
274
+ ]),
275
+ _: 2
276
+ }, 1024)
277
+ ]))), 128)),
278
+ o.value > 0 ? (l(), N("li", qe, [
279
+ y(i(U), {
280
+ "no-spacing": "",
281
+ "content-classes": "px-4 py-3 text-center"
282
+ }, {
283
+ default: d(() => [
284
+ y(i(M), {
285
+ tag: "span",
286
+ weight: "semibold",
287
+ color: "secondary",
288
+ "no-spacing": ""
289
+ }, {
290
+ default: d(() => [
291
+ h(f(i(t)(
292
+ {
293
+ defaultMessage: "+ {count} available",
294
+ id: "on_demand_items_card.more_available",
295
+ description: "Shown below the first on-demand items with the number of items not listed"
296
+ },
297
+ { count: String(o.value) }
298
+ )), 1)
299
+ ]),
300
+ _: 1
301
+ })
302
+ ]),
303
+ _: 1
304
+ })
305
+ ])) : _("", !0)
306
+ ])
307
+ ]),
308
+ _: 1
309
+ }, 8, ["title"]));
310
+ }
311
+ }), Ge = { class: "sv-subscription-details__header flex flex-col gap-2 md:flex-row md:items-center" }, He = /* @__PURE__ */ A({
312
+ __name: "SubscriptionDetails",
313
+ props: {
314
+ subscription: { type: Object },
315
+ schedulesData: { type: Array },
316
+ customer: { type: Object },
317
+ paymentMethods: { type: Array },
318
+ walletBalances: { default: () => [], type: Array },
319
+ onDemandItems: { default: () => [], type: Array },
320
+ onDemandScheduleId: { type: String },
321
+ hasWalletBalancesError: { type: Boolean },
322
+ avatar: { type: String },
323
+ showViewInvoiceButton: { type: Boolean },
324
+ isLoading: { type: Boolean },
325
+ error: { type: null }
326
+ },
327
+ emits: ["top-up-charged", "auto-top-up-saved", "auto-top-up-cancelled", "payment-method-stored", "subscription-changed"],
328
+ setup(e, { emit: s }) {
329
+ const t = X(
330
+ () => import("./SubscriptionSchedules-BfdVn1XA.mjs")
331
+ ), n = X(
332
+ () => import("./ChargeOnDemandModal-B4ShPKLS.mjs")
333
+ ), a = e, o = s, { dispatch: c } = ue(), { dispatchAction: p } = de(), { $t: r } = x(), {
334
+ isCancellable: g,
335
+ isRenewable: C,
336
+ pendingVariant: $,
337
+ confirmedVariant: D,
338
+ confirm: k,
339
+ cancel: L,
340
+ renew: I,
341
+ dismiss: T,
342
+ manage: E
343
+ } = me({ subscription: te(a, "subscription") }), O = () => {
344
+ k(), o("subscription-changed");
345
+ }, P = b(
346
+ () => {
347
+ var S;
348
+ return K(((S = a.subscription) == null ? void 0 : S.pricing_plan_schedule_infos) ?? []);
349
+ }
350
+ ), B = b(
351
+ () => (a.paymentMethods ?? []).find(({ id: S }) => {
352
+ var u;
353
+ return S === ((u = a.subscription) == null ? void 0 : u.payment_method_id);
354
+ })
355
+ ), V = b(() => a.subscription ? [a.subscription] : []), w = q(!1), R = q(!1), Z = () => {
356
+ R.value = !0, w.value = !0;
357
+ }, ee = b(
358
+ () => pe({
359
+ subscription: a.subscription,
360
+ fallback: r({
361
+ defaultMessage: "Subscription details",
362
+ id: "subscription_details.title",
363
+ description: "Title for the subscription details page"
364
+ })
365
+ })
366
+ );
367
+ return (S, u) => (l(), m(i(le), { class: "sv-subscription-details sv-root sv-screen" }, {
368
+ header: d(() => [
369
+ F("div", Ge, [
370
+ y(i(M), {
371
+ variant: "heading-2",
372
+ tag: "h1",
373
+ class: "sv-subscription-details__title grow"
374
+ }, {
375
+ default: d(() => [
376
+ h(f(ee.value), 1)
377
+ ]),
378
+ _: 1
379
+ }),
380
+ i(C) ? (l(), m(i(j), {
381
+ key: 0,
382
+ intent: "secondary",
383
+ class: "sv-action sv-action--secondary sv-subscription-details__renew w-full md:w-auto",
384
+ type: "button",
385
+ onClick: i(I)
386
+ }, {
387
+ default: d(() => [
388
+ h(f(i(r)({
389
+ defaultMessage: "Renew subscription",
390
+ id: "subscription_details.renew_button.label",
391
+ description: "Label for the renew subscription button on the subscription details page"
392
+ })), 1)
393
+ ]),
394
+ _: 1
395
+ }, 8, ["onClick"])) : _("", !0),
396
+ i(g) ? (l(), m(i(j), {
397
+ key: 1,
398
+ intent: "secondary",
399
+ class: "sv-action sv-action--secondary sv-subscription-details__cancel w-full md:w-auto",
400
+ type: "button",
401
+ onClick: i(L)
402
+ }, {
403
+ default: d(() => [
404
+ h(f(i(r)({
405
+ defaultMessage: "Cancel subscription",
406
+ id: "subscription_details.cancel_button.label",
407
+ description: "Label for the cancel subscription button on the subscription details page"
408
+ })), 1)
409
+ ]),
410
+ _: 1
411
+ }, 8, ["onClick"])) : _("", !0)
412
+ ])
413
+ ]),
414
+ content: d(() => [
415
+ i(D) ? (l(), m(Me, {
416
+ key: 0,
417
+ class: "sv-subscription-details__cancellation-success",
418
+ variant: i(D)
419
+ }, null, 8, ["variant"])) : _("", !0),
420
+ e.error ? (l(), m(i(ae), {
421
+ key: 1,
422
+ class: "sv-subscription-details__error sv-error",
423
+ title: i(r)({
424
+ defaultMessage: "Unable to load this subscription. Please try again later.",
425
+ id: "subscription_details.load_error",
426
+ description: "Error message shown when the subscription cannot be loaded on the subscription details page"
427
+ })
428
+ }, null, 8, ["title"])) : e.isLoading ? (l(), m(ve, {
429
+ key: 2,
430
+ variant: "section",
431
+ class: "min-h-[220px]"
432
+ })) : e.subscription ? (l(), m(i(t), {
433
+ key: 3,
434
+ class: "sv-subscription-details__schedules",
435
+ "schedules-data": e.schedulesData ?? []
436
+ }, null, 8, ["schedules-data"])) : (l(), m(fe, {
437
+ key: 4,
438
+ class: "sv-subscription-details__empty-state",
439
+ icon: "receipt_long"
440
+ }, {
441
+ title: d(() => [
442
+ h(f(i(r)({
443
+ defaultMessage: "Subscription not found",
444
+ id: "subscription_details.empty_state.title",
445
+ description: "Title shown when the requested subscription does not exist"
446
+ })), 1)
447
+ ]),
448
+ message: d(() => [
449
+ h(f(i(r)({
450
+ defaultMessage: "This subscription is no longer available.",
451
+ id: "subscription_details.empty_state.message",
452
+ description: "Message shown when the requested subscription does not exist"
453
+ })), 1)
454
+ ]),
455
+ _: 1
456
+ }))
457
+ ]),
458
+ aside: d(() => [
459
+ y(ge, {
460
+ class: "sv-subscription-details__wallet-balances",
461
+ "has-error": !!e.hasWalletBalancesError,
462
+ "is-loading": e.isLoading,
463
+ "wallet-balances": e.walletBalances,
464
+ "show-top-up-button": "",
465
+ customer: e.customer,
466
+ "payment-methods": e.paymentMethods,
467
+ subscriptions: V.value,
468
+ onTopUpCharged: u[0] || (u[0] = (v) => S.$emit("top-up-charged")),
469
+ onAutoTopUpSaved: u[1] || (u[1] = (v) => S.$emit("auto-top-up-saved")),
470
+ onAutoTopUpCancelled: u[2] || (u[2] = (v) => S.$emit("auto-top-up-cancelled")),
471
+ onPaymentMethodStored: u[3] || (u[3] = (v) => S.$emit("payment-method-stored"))
472
+ }, null, 8, ["has-error", "is-loading", "wallet-balances", "customer", "payment-methods", "subscriptions"]),
473
+ !e.isLoading && e.onDemandItems.length > 0 ? (l(), m(ze, {
474
+ key: 0,
475
+ items: e.onDemandItems,
476
+ class: "sv-subscription-details__on-demand-items",
477
+ onOrder: Z
478
+ }, null, 8, ["items"])) : _("", !0),
479
+ P.value ? (l(), m(We, {
480
+ key: 1,
481
+ class: "sv-subscription-details__upgrades",
482
+ "pricing-plan-schedule": P.value,
483
+ onUpgrade: u[4] || (u[4] = (v) => i(E)(v.pricingId))
484
+ }, null, 8, ["pricing-plan-schedule"])) : _("", !0),
485
+ B.value ? (l(), m(he, {
486
+ key: 2,
487
+ class: "sv-subscription-details__payment-method",
488
+ "is-loading": e.isLoading,
489
+ "payment-methods": [B.value],
490
+ configuration: { showViewAllButton: !1, showAddButton: !1 }
491
+ }, null, 8, ["is-loading", "payment-methods"])) : _("", !0),
492
+ R.value && e.subscription && e.onDemandScheduleId ? (l(), m(i(n), {
493
+ key: 3,
494
+ "show-modal": w.value,
495
+ subscription: e.subscription,
496
+ "schedule-id": e.onDemandScheduleId,
497
+ items: e.onDemandItems,
498
+ customer: e.customer,
499
+ "payment-methods": e.paymentMethods,
500
+ "show-view-invoice-button": e.showViewInvoiceButton,
501
+ onClose: u[5] || (u[5] = (v) => w.value = !1),
502
+ onPaymentMethodStored: u[6] || (u[6] = (v) => S.$emit("payment-method-stored")),
503
+ onInvoiceCreated: u[7] || (u[7] = (v) => i(c)("solvimon-invoice-created", {
504
+ invoiceId: v.id,
505
+ paymentStatus: v.payment_status
506
+ })),
507
+ onViewInvoice: u[8] || (u[8] = (v) => i(p)({ action: "view-invoice", data: { invoiceId: v } }))
508
+ }, null, 8, ["show-modal", "subscription", "schedule-id", "items", "customer", "payment-methods", "show-view-invoice-button"])) : _("", !0),
509
+ y(Pe, {
510
+ "show-modal": !!i($),
511
+ variant: i($),
512
+ subscription: e.subscription,
513
+ customer: e.customer,
514
+ "payment-method": B.value,
515
+ avatar: e.avatar,
516
+ onConfirmed: O,
517
+ onClose: i(T)
518
+ }, null, 8, ["show-modal", "variant", "subscription", "customer", "payment-method", "avatar", "onClose"])
519
+ ]),
520
+ _: 1
521
+ }));
522
+ }
523
+ }), Ye = ["FIXED", "FLAT"], Je = (e, s) => {
524
+ var n;
525
+ const t = (n = e.details.bands) == null ? void 0 : n[0];
526
+ return s === "FIXED" ? t == null ? void 0 : t.fixed_amount : t == null ? void 0 : t.amount;
527
+ }, Ke = (e) => typeof e == "number" && Number.isInteger(e) && e >= 1, Qe = (e) => {
528
+ var t;
529
+ const s = Number((t = e.default_units) == null ? void 0 : t.number);
530
+ return Ke(s) ? s : 1;
531
+ }, Ze = (e) => {
532
+ const s = e.flatMap(Q);
533
+ return {
534
+ productItems: new Map(
535
+ s.flatMap((t) => t.items ?? []).flatMap((t) => t.product_items ?? []).map(({ id: t, name: n }) => [t, n])
536
+ ),
537
+ products: new Map(
538
+ s.flatMap((t) => t.products ?? []).map(({ id: t, name: n }) => [t, n])
539
+ )
540
+ };
541
+ }, et = (e, s, t) => z(s.product_item_ids.map((n) => t.productItems.get(n))) || e.name || z(e.product_ids.map((n) => t.products.get(n))) || "", tt = (e, s, t) => {
542
+ var o, c;
543
+ const n = (o = s.configs) == null ? void 0 : o.find((p) => p.on_demand);
544
+ if (!n || (c = n.wallet_grants) != null && c.length || !Ee(n, Ye))
545
+ return;
546
+ const a = n.details.pricing_type === "FIXED" ? "FIXED" : "FLAT";
547
+ return {
548
+ pricingItemId: s.id,
549
+ pricingItemConfigId: n.id,
550
+ name: et(e, s, t),
551
+ priceType: a,
552
+ price: Je(n, a),
553
+ defaultUnits: Qe(n)
554
+ };
555
+ }, nt = (e, {
556
+ pricingPlanVersions: s = []
557
+ } = {}) => {
558
+ const t = Ze(s);
559
+ return Q(e).flatMap(
560
+ (n) => (n.items ?? []).flatMap(
561
+ (a) => tt(n, a, t) ?? []
562
+ )
563
+ );
564
+ }, Bt = (e, s) => {
565
+ const t = new Set(
566
+ (s.payment_acceptors ?? []).flatMap(
567
+ (n) => {
568
+ var a;
569
+ return ((a = n.payment_gateway) == null ? void 0 : a.integration_id) ?? [];
570
+ }
571
+ )
572
+ );
573
+ return e.filter(
574
+ (n) => Be(n) && !!n.integration_id && t.has(n.integration_id)
575
+ ).sort(
576
+ (n, a) => +(a.id === s.payment_method_id) - +(n.id === s.payment_method_id)
577
+ );
578
+ }, Ut = (e, s) => e.flatMap(({ pricingItemId: t, units: n }) => {
579
+ const a = s.find((o) => o.pricingItemId === t);
580
+ return a ? a.priceType === "FLAT" && n !== void 0 ? [{ pricing_item_id: t, units: { number: String(n) } }] : [{ pricing_item_id: t }] : [];
581
+ });
582
+ function st({
583
+ subscription: e
584
+ }) {
585
+ const { getOnDemandPricingItems: s } = $e(), t = J(), { data: n, execute: a } = Te({ service: s }), o = b(
586
+ () => {
587
+ var r;
588
+ return ((r = e.value) == null ? void 0 : r.variant) === "DEFAULT" ? K(e.value.pricing_plan_schedule_infos) : void 0;
589
+ }
590
+ ), c = b(() => {
591
+ var r;
592
+ return (r = o.value) == null ? void 0 : r.id;
593
+ });
594
+ return ne(
595
+ c,
596
+ (r) => {
597
+ r && a({ scheduleId: r }).catch(
598
+ (g) => t.error(
599
+ "ON_DEMAND_ITEMS_LOAD_FAILED",
600
+ "Failed to load the on-demand items of the subscription",
601
+ { scheduleId: r },
602
+ g
603
+ )
604
+ );
605
+ },
606
+ { immediate: !0 }
607
+ ), { items: b(
608
+ () => {
609
+ var r, g;
610
+ return c.value && ((r = n.value) == null ? void 0 : r.pricing_plan_schedule_id) === c.value ? nt(n.value, {
611
+ pricingPlanVersions: (g = e.value) == null ? void 0 : g.pricing_plan_schedule_infos.map(
612
+ (C) => C.pricing_plan_version
613
+ )
614
+ }) : [];
615
+ }
616
+ ), scheduleId: c };
617
+ }
618
+ const it = /* @__PURE__ */ A({
619
+ __name: "SubscriptionDetails.entry.view",
620
+ props: {
621
+ configuration: { type: Object },
622
+ environment: { type: String },
623
+ locale: { type: String },
624
+ dateLocale: { type: String },
625
+ messages: { type: Object },
626
+ portalToken: { type: Object },
627
+ experimentalFeatures: { type: Array },
628
+ logLevel: { type: String },
629
+ onLog: { type: Function },
630
+ cssOverrides: { type: [String, Array] },
631
+ branding: { type: Object },
632
+ portalObject: { type: null }
633
+ },
634
+ setup(e) {
635
+ const s = e, t = s.portalObject.customer_id, {
636
+ subscription: n,
637
+ get: a,
638
+ error: o
639
+ } = ye({ subscriptionId: s.configuration.subscriptionId }), c = J(), p = b(() => n.value ? null : o.value), r = () => a().catch((w) => {
640
+ c.error(
641
+ "SUBSCRIPTION_LOAD_FAILED",
642
+ "Failed to reload the subscription after it changed",
643
+ {},
644
+ w
645
+ );
646
+ }), { customer: g, get: C } = Ae({ customerId: t }), { items: $, fetchAll: D } = ke({ customerId: t }), {
647
+ walletBalances: k,
648
+ apiStatus: L,
649
+ fetch: I
650
+ } = be({ customerId: t }), { isLoading: T } = Le(
651
+ a(),
652
+ C.execute(),
653
+ D(),
654
+ I()
655
+ ), { items: E, scheduleId: O } = st({
656
+ subscription: n
657
+ }), P = b(
658
+ () => n.value ? De(n.value) : []
659
+ ), B = b(() => {
660
+ var w;
661
+ return ((w = k.value) == null ? void 0 : w.wallet_balances) ?? [];
662
+ }), V = b(() => L.value === Oe.Failed);
663
+ return (w, R) => se(w.$slots, "default", {
664
+ subscription: i(n),
665
+ schedulesData: P.value,
666
+ customer: i(g),
667
+ paymentMethods: i($),
668
+ walletBalances: B.value,
669
+ onDemandItems: i(E),
670
+ onDemandScheduleId: i(O),
671
+ hasWalletBalancesError: V.value,
672
+ isLoading: i(T),
673
+ error: p.value,
674
+ refreshWalletBalances: i(I),
675
+ refreshPaymentMethods: i(D),
676
+ refreshSubscription: r
677
+ });
678
+ }
679
+ }), at = /* @__PURE__ */ A({
680
+ __name: "SubscriptionDetails.entry",
681
+ props: {
682
+ configuration: { type: Object },
683
+ environment: { type: String },
684
+ locale: { type: String },
685
+ dateLocale: { type: String },
686
+ messages: { type: Object },
687
+ portalToken: { type: Object },
688
+ experimentalFeatures: { type: Array },
689
+ logLevel: { type: String },
690
+ onLog: { type: Function },
691
+ cssOverrides: { type: [String, Array] },
692
+ branding: { type: Object },
693
+ portalObject: { type: null }
694
+ },
695
+ setup(e) {
696
+ const s = re("subscription-details");
697
+ return (t, n) => {
698
+ var a;
699
+ return l(), m(i(oe), {
700
+ entry: t.$props,
701
+ "component-name": i(s),
702
+ "allowed-portal-types": ["CUSTOMER"],
703
+ "required-configuration": { subscriptionId: (a = e.configuration) == null ? void 0 : a.subscriptionId }
704
+ }, {
705
+ default: d(() => [
706
+ (l(), m(it, ie({
707
+ key: e.configuration.subscriptionId
708
+ }, t.$props), {
709
+ default: d(({
710
+ subscription: o,
711
+ schedulesData: c,
712
+ customer: p,
713
+ paymentMethods: r,
714
+ walletBalances: g,
715
+ onDemandItems: C,
716
+ onDemandScheduleId: $,
717
+ hasWalletBalancesError: D,
718
+ isLoading: k,
719
+ error: L,
720
+ refreshWalletBalances: I,
721
+ refreshPaymentMethods: T,
722
+ refreshSubscription: E
723
+ }) => {
724
+ var O, P;
725
+ return [
726
+ y(He, {
727
+ subscription: o,
728
+ "schedules-data": c,
729
+ customer: p,
730
+ avatar: ((P = (O = e.branding) == null ? void 0 : O.emblem) == null ? void 0 : P.public_url) ?? void 0,
731
+ "show-view-invoice-button": e.configuration.showViewInvoiceButton,
732
+ "payment-methods": r,
733
+ "wallet-balances": g,
734
+ "on-demand-items": C,
735
+ "on-demand-schedule-id": $,
736
+ "has-wallet-balances-error": D,
737
+ "is-loading": k,
738
+ error: L,
739
+ onTopUpCharged: I,
740
+ onAutoTopUpSaved: I,
741
+ onAutoTopUpCancelled: I,
742
+ onPaymentMethodStored: T,
743
+ onSubscriptionChanged: E
744
+ }, null, 8, ["subscription", "schedules-data", "customer", "avatar", "show-view-invoice-button", "payment-methods", "wallet-balances", "on-demand-items", "on-demand-schedule-id", "has-wallet-balances-error", "is-loading", "error", "onTopUpCharged", "onAutoTopUpSaved", "onAutoTopUpCancelled", "onPaymentMethodStored", "onSubscriptionChanged"])
745
+ ];
746
+ }),
747
+ _: 1
748
+ }, 16))
749
+ ]),
750
+ _: 1
751
+ }, 8, ["entry", "component-name", "required-configuration"]);
752
+ };
753
+ }
754
+ }), { define: Ft } = ce(
755
+ at,
756
+ "subscription-details"
757
+ );
758
+ export {
759
+ Ft as d,
760
+ Bt as g,
761
+ Ke as i,
762
+ Ut as t,
763
+ Ue as u
764
+ };