@solvimon/solvimon-web 0.1.0-alpha.28 → 0.1.0-alpha.29

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 (189) hide show
  1. package/README.md +26 -1
  2. package/dist/{Alert.vue.es-lIiAWf2S.mjs → Alert.vue.es-CNrEaLvh.mjs} +58 -46
  3. package/dist/AuthProvider.handle-DKfNs8rr.mjs +50 -0
  4. package/dist/{Avatar.vue.es-Beg7umjO.mjs → Avatar.vue.es-r0NbcIib.mjs} +1 -1
  5. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-DBGe1PvD.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-Cp4yGqaw.mjs} +8 -8
  6. package/dist/{Button.vue.es-rh6mITmN.mjs → Button.vue.es-Zw--kuaU.mjs} +4 -4
  7. package/dist/{ChargeOnDemandModal-CPjPa_uq.mjs → ChargeOnDemandModal-B8FDkS9U.mjs} +35 -34
  8. package/dist/Checkout.entry.ce-DsGl-5aR.mjs +4202 -0
  9. package/dist/CheckoutAddressFields.vue_vue_type_script_setup_true_lang-2D8VM_7W.mjs +828 -0
  10. package/dist/{Chip.vue.es-Cn2R_0mE.mjs → Chip.vue.es-D3UDSyXC.mjs} +3 -3
  11. package/dist/ContentWithAsideLayout-Bnbsq8_5.mjs +32 -0
  12. package/dist/{ContextMenu.vue.es-DRxsa7bZ.mjs → ContextMenu.vue.es-B9mFpUQK.mjs} +87 -88
  13. package/dist/{CustomerBillingInformation.vue.es-DQfL5RMR.mjs → CustomerBillingInformation.vue.es-B8NiQaJs.mjs} +3 -3
  14. package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Ct-eYaEN.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-DBivC5Eb.mjs} +21 -20
  15. package/dist/CustomerShippingAddresses-Bj8Y17O8.mjs +397 -0
  16. package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BzTSwo4i.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BmPKfIjT.mjs} +798 -792
  17. package/dist/{DividerText.vue.es-M0XqSz55.mjs → DividerText.vue.es-CNbgif-3.mjs} +1 -1
  18. package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CVP-7ne3.mjs +55 -0
  19. package/dist/{ErrorNotification.vue.es-CKlt4hr2.mjs → ErrorNotification.vue.es-DNd65mQq.mjs} +2 -2
  20. package/dist/FormMessage.vue.es-Cjv358Ab.mjs +39 -0
  21. package/dist/{IconButton.vue.es-oe4MVBK1.mjs → IconButton.vue.es-C8lYFx5_.mjs} +2 -2
  22. package/dist/{IconTitle.vue.es-BO6KBS4v.mjs → IconTitle.vue.es-O2kcqgKm.mjs} +3 -3
  23. package/dist/{Input.vue.es-DAlPmtE_.mjs → Input.vue.es-D8Oj8MWv.mjs} +23 -22
  24. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-CCTl5GWa.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-rhqYVdfV.mjs} +2 -2
  25. package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-DMGqj_Uk.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-06R-M8Q3.mjs} +4 -4
  26. package/dist/InvoicePreview.vue.es-4Q2hzaFS.mjs +286 -0
  27. package/dist/InvoicePricingClauseChip.vue.es-DKU0xu0t.mjs +124 -0
  28. package/dist/Label.vue.es-DtpLM1KH.mjs +113 -0
  29. package/dist/{Modal.vue.es-CTNACAst.mjs → Modal.vue.es-C8ZcO117.mjs} +109 -103
  30. package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-3DQLCR3U.mjs +441 -0
  31. package/dist/PaymentCompletedCard.vue_vue_type_script_setup_true_lang-DfTb9psX.mjs +48 -0
  32. package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-DLfAfB_m.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-BoGTtg5G.mjs} +46 -88
  33. package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-CKm-XYuF.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BIAm22Kq.mjs} +3 -3
  34. package/dist/{PaymentHistoryBlock-BmA8jbMb.mjs → PaymentHistoryBlock-BvY2nXGV.mjs} +1 -1
  35. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BDMse2lO.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-bQKhUonq.mjs} +4 -4
  36. package/dist/{PaymentIntegrationForm-D1Xw-xIt.mjs → PaymentIntegrationForm-CcfQSzKM.mjs} +1 -1
  37. package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CCxw0PCv.mjs → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CvzcLJVq.mjs} +68 -69
  38. package/dist/{PaymentIntegrationFormAdyen-CfT5aD4L.mjs → PaymentIntegrationFormAdyen-DqgDfO6K.mjs} +126 -117
  39. package/dist/{PaymentIntegrationFormStripe-DKXJ-mjd.mjs → PaymentIntegrationFormStripe-BYdAkvLt.mjs} +193 -179
  40. package/dist/{PaymentMethod.vue.es-Cauxx4Xr.mjs → PaymentMethod.vue.es-b0p3a0L-.mjs} +7 -7
  41. package/dist/{PaymentMethodForm-CypZOYUZ.mjs → PaymentMethodForm-BsTrTwCg.mjs} +1 -1
  42. package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-De8FgdYD.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-sUOmLORl.mjs} +7 -7
  43. package/dist/{PaymentMethodSelector.vue_vue_type_script_setup_true_lang-Dw28tfpD.mjs → PaymentMethodSelector.vue_vue_type_script_setup_true_lang-DsnAhR79.mjs} +36 -35
  44. package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-OtjVO7lR.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-CSW4LfmH.mjs} +7 -7
  45. package/dist/{PlanCustomizationEditor-Xtww2r9K.mjs → PlanCustomizationEditor-D29N4HUM.mjs} +9 -9
  46. package/dist/PortalLinkUnverified-B_EE2wTJ.mjs +52 -0
  47. package/dist/{PortalNotAvailable-B_59GUwN.mjs → PortalNotAvailable-DPE9y37H.mjs} +2 -2
  48. package/dist/{PricingGroupRangeInput.vue.es-C9LJW3b8.mjs → PricingGroupRangeInput.vue.es-tIMXIhpZ.mjs} +14 -13
  49. package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DdWxoB8q.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DqxWxSQe.mjs} +32 -32
  50. package/dist/RadioGroupExtended.vue.es-3nDXqIGi.mjs +176 -0
  51. package/dist/{Section.vue.es-iS8hVGWA.mjs → Section.vue.es-CvX9tg2f.mjs} +1 -1
  52. package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Cl7I1Apo.mjs +60 -0
  53. package/dist/ShippingAddressesModal-C4p1IXXk.mjs +418 -0
  54. package/dist/{StepInput.vue.es-Dpan1RQd.mjs → StepInput.vue.es-DweyzpkL.mjs} +4 -4
  55. package/dist/{SubscriptionDetails.entry.ce-DufQX3uI.mjs → SubscriptionDetails.entry.ce-D5SwM0YS.mjs} +230 -225
  56. package/dist/{SubscriptionSchedules-DAahcNoI.mjs → SubscriptionSchedules-BZqlpAtk.mjs} +1 -1
  57. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-BH7DdOWK.mjs +5185 -0
  58. package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-Wmjqy7RZ.mjs → SubscriptionSummary.vue_vue_type_script_setup_true_lang-DoJxiqVB.mjs} +3 -3
  59. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-BeRLuEyR.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BbjdBHSQ.mjs} +23 -22
  60. package/dist/TooltipParagraph.vue.es-Dw0ndjle.mjs +132 -0
  61. package/dist/TranslationOverride.vue_vue_type_script_setup_true_lang-BhjZVMSx.mjs +31 -0
  62. package/dist/{TrialChip.vue.es-B-XBSHWE.mjs → TrialChip.vue.es-DOopmaXA.mjs} +2 -2
  63. package/dist/{api.es-QaC926Xu.mjs → api.es-qgvzNMU-.mjs} +2 -2
  64. package/dist/{cn.es-2bVdkiFV.mjs → cn.es-B8acFrov.mjs} +380 -476
  65. package/dist/components/BillingInformation/BillingInformation.mjs +9 -7
  66. package/dist/components/BillingInformationForm/BillingInformationForm.mjs +57 -54
  67. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +20 -18
  68. package/dist/components/Invoice/Invoice.mjs +2660 -193
  69. package/dist/components/InvoiceDetails/InvoiceDetails.mjs +6 -4
  70. package/dist/components/InvoiceHeader/InvoiceHeader.mjs +18 -17
  71. package/dist/components/InvoicesList/InvoicesList.mjs +13 -11
  72. package/dist/components/PaymentHistory/PaymentHistory.mjs +8 -6
  73. package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +19 -17
  74. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +19 -17
  75. package/dist/components/SubscriptionsList/SubscriptionsList.mjs +20 -18
  76. package/dist/components/WalletBalances/WalletBalances.mjs +17 -15
  77. package/dist/customElements-BTj4ii4f.mjs +5072 -0
  78. package/dist/{customer-CqddTiOr.mjs → customer-BIjC0CWJ.mjs} +1 -1
  79. package/dist/customer.es-DQKl6wFt.mjs +24 -0
  80. package/dist/{de-DE-BW8dMvhW.mjs → de-DE-DBbERiFr.mjs} +38 -0
  81. package/dist/{de-DE-BNMj3boy.mjs → de-DE-UJ6X6jXu.mjs} +1 -1
  82. package/dist/floating-ui.vue.es-BvAf8-si.mjs +1003 -0
  83. package/dist/{formControl-CsITfsBk.mjs → formControl-BZQLHnOO.mjs} +5 -5
  84. package/dist/fr-FR-Cvvbkwlj.mjs +307 -0
  85. package/dist/fr-FR-IWJE-urI.mjs +431 -0
  86. package/dist/icon-sprite.svg.es-BWBB8SGw.mjs +4 -0
  87. package/dist/{index.es-CXkP_k3u.mjs → index.es-C7J3WGGo.mjs} +4 -4
  88. package/dist/index.es-CpmQmvOg.mjs +633 -0
  89. package/dist/index.mjs +2 -2
  90. package/dist/{invoices-Cf1qDAv4.mjs → invoices-e1sKLgxg.mjs} +3 -3
  91. package/dist/{it-IT-Byg06KWc.mjs → it-IT-B7ui2oxO.mjs} +38 -0
  92. package/dist/{it-IT-DRvuxM1F.mjs → it-IT-DnJP5URH.mjs} +1 -1
  93. package/dist/{nl-NL-x3zQqzZ7.mjs → nl-NL-Bafh2xoT.mjs} +38 -0
  94. package/dist/{nl-NL-DLUwWbMG.mjs → nl-NL-q9xfTZF0.mjs} +1 -1
  95. package/dist/{paymentMethods-BUuOmDq9.mjs → paymentMethods-B_82JGk_.mjs} +2 -2
  96. package/dist/paymentMethods-Nfv9HdkS.mjs +61 -0
  97. package/dist/{paymentOutcome-D17VD4MV.mjs → paymentOutcome-BXEU5-84.mjs} +5 -5
  98. package/dist/payments-BnxbzQUC.mjs +68 -0
  99. package/dist/pricing-BOhvWWMj.mjs +29 -0
  100. package/dist/{pricingPlanScheduleOverrides-COr9F8DO.mjs → pricingPlanScheduleOverrides-Dxv5FOBd.mjs} +2 -2
  101. package/dist/{pricingPlanSchedules-BK_o9p6h.mjs → pricingPlanSchedules-Dv7ZCgNp.mjs} +1 -1
  102. package/dist/screens/Checkout/Checkout.mjs +2 -2
  103. package/dist/screens/CustomerOverview/CustomerOverview.mjs +128 -83
  104. package/dist/screens/PayInvoice/PayInvoice.mjs +572 -218
  105. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +21 -19
  106. package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +2 -2
  107. package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +261 -266
  108. package/dist/{sorting.es-qtEN8J8T.mjs → sorting.es-CVyKw23D.mjs} +1 -1
  109. package/dist/subscriptions-BWXZGK0E.mjs +66 -0
  110. package/dist/taxId.es-DkD3Ltr8.mjs +243 -0
  111. package/dist/types/components/customer/CheckoutForm/CheckoutAddressFields.types.d.ts +2 -0
  112. package/dist/types/components/customer/ShippingAddressForm/ShippingAddressForm.types.d.ts +9 -0
  113. package/dist/types/components/customer/ShippingAddresses/ShippingAddressCard.types.d.ts +11 -0
  114. package/dist/types/components/customer/ShippingAddresses/ShippingAddressList.types.d.ts +9 -0
  115. package/dist/types/components/customer/ShippingAddresses/ShippingAddressesModal.types.d.ts +26 -0
  116. package/dist/types/components/invoices/InvoiceOrderSummary/InvoiceOrderSummary.types.d.ts +5 -0
  117. package/dist/types/components/payments/PayButton/PayButton.types.d.ts +2 -0
  118. package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +11 -0
  119. package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripeFrame.types.d.ts +4 -1
  120. package/dist/types/components/providers/AuthProvider/AuthProvider.handle.d.ts +17 -0
  121. package/dist/types/components/providers/AuthProvider/AuthProvider.lib.d.ts +23 -1
  122. package/dist/types/components/providers/AuthProvider/AuthProvider.types.d.ts +12 -0
  123. package/dist/types/components/providers/AuthProvider/AuthProvider.vue.d.ts +3 -1
  124. package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +2 -2
  125. package/dist/types/components/providers/Provider/Provider.types.d.ts +1 -1
  126. package/dist/types/components/providers/Provider/Provider.vue.d.ts +3 -1
  127. package/dist/types/components/subscriptions/OrderSummaryInvoice.types.d.ts +16 -0
  128. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +2 -0
  129. package/dist/types/public/components/CustomerShippingAddresses/CustomerShippingAddresses.types.d.ts +12 -0
  130. package/dist/types/public/core/types.d.ts +5 -0
  131. package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +3 -1
  132. package/dist/types/translations/supported.d.ts +1 -1
  133. package/dist/types/types/portalAuthentication.d.ts +2 -0
  134. package/dist/types/types/portalToken.d.ts +9 -0
  135. package/dist/types/types/shippingAddress.d.ts +9 -0
  136. package/dist/types/vendor/@solvimon/solvimon-types/index.d.ts +2 -0
  137. package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalPolicies.d.ts +1 -1
  138. package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalRequests.d.ts +27 -6
  139. package/dist/types/vendor/@solvimon/solvimon-types/types/ConfigMeterProperties.d.ts +3 -0
  140. package/dist/types/vendor/@solvimon/solvimon-types/types/Entitlement.d.ts +6 -0
  141. package/dist/types/vendor/@solvimon/solvimon-types/types/Integrations.d.ts +9 -1
  142. package/dist/types/vendor/@solvimon/solvimon-types/types/Invoice.d.ts +16 -1
  143. package/dist/types/vendor/@solvimon/solvimon-types/types/JWT.d.ts +10 -0
  144. package/dist/types/vendor/@solvimon/solvimon-types/types/MeterPropertyVariable.d.ts +16 -0
  145. package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentAcceptor.d.ts +6 -0
  146. package/dist/types/vendor/@solvimon/solvimon-types/types/Permission.d.ts +1 -1
  147. package/dist/types/vendor/@solvimon/solvimon-types/types/Platform.d.ts +12 -3
  148. package/dist/types/vendor/@solvimon/solvimon-types/types/Portal.d.ts +71 -0
  149. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSubscription.d.ts +14 -0
  150. package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteTemplates.d.ts +1 -0
  151. package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteVersions.d.ts +35 -0
  152. package/dist/types/vendor/@solvimon/solvimon-types/types/Quotes.d.ts +16 -0
  153. package/dist/types/vendor/@solvimon/solvimon-types/types/ShippingAddress.d.ts +54 -0
  154. package/dist/{useActionDispatchProvider-DC_fUykI.mjs → useActionDispatchProvider-3W2vEyIg.mjs} +1 -1
  155. package/dist/{useCustomer-C3kTh7wn.mjs → useCustomer-cObBvDOu.mjs} +2 -2
  156. package/dist/useCustomerFormLabels-DJWf2O17.mjs +1173 -0
  157. package/dist/{useIncrementalLoading-C_sHmW7d.mjs → useIncrementalLoading-CATuO36d.mjs} +2 -2
  158. package/dist/{useInvoiceData-BIh8-h8b.mjs → useInvoiceData-DD44HTl7.mjs} +2 -2
  159. package/dist/{useInvoicesList-Y6p0Pqpy.mjs → useInvoicesList-CpB-41MQ.mjs} +10 -10
  160. package/dist/useLazyFloating.es-CycqRyeb.mjs +68 -0
  161. package/dist/useLoadInitialData-qzdnBoui.mjs +15 -0
  162. package/dist/{usePaymentFormHold-FfNc578l.mjs → usePaymentFormHold-ByUZi3A-.mjs} +28 -36
  163. package/dist/{usePaymentMethodAvailability-CnYTvG15.mjs → usePaymentMethodAvailability-DUdrs0Ji.mjs} +4 -4
  164. package/dist/usePaymentMethods-ByaKF7mf.mjs +21 -0
  165. package/dist/{usePayments-CykCZPG2.mjs → usePayments-BXABv-lF.mjs} +9 -9
  166. package/dist/{usePortal-CxzKGhbK.mjs → usePortal-CwR_FxTb.mjs} +1 -1
  167. package/dist/{useService-B0OQJmif.mjs → useService-BZcbUZHI.mjs} +3 -3
  168. package/dist/{useTimePeriod.es-JkXdHNWr.mjs → useTimePeriod.es-BpdiVwg8.mjs} +1 -1
  169. package/package.json +7 -7
  170. package/dist/Checkbox.vue.es-DsyiJ-VY.mjs +0 -50
  171. package/dist/Checkout.entry.ce-BZ1rYQvt.mjs +0 -5279
  172. package/dist/ContentWithAsideLayout-BCM8tmZN.mjs +0 -38
  173. package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-Bk4zwyWa.mjs +0 -362
  174. package/dist/FormMessage.vue.es-jG3fQZms.mjs +0 -29
  175. package/dist/InvoiceSummary.vue.es-DbNoGfYN.mjs +0 -2596
  176. package/dist/RadioGroupExtended.vue.es-UtKsdmiv.mjs +0 -163
  177. package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Djc1SkEU.mjs +0 -688
  178. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DNr1CqVj.mjs +0 -5221
  179. package/dist/TooltipParagraph.vue.es-BjCn2BF6.mjs +0 -129
  180. package/dist/customElements-Di3zwlEU.mjs +0 -6447
  181. package/dist/customer.es-B5ppZf0j.mjs +0 -20
  182. package/dist/floating-ui.vue.es-CYt0fSY7.mjs +0 -1108
  183. package/dist/icon-sprite.svg.es-BZIz7-0d.mjs +0 -4
  184. package/dist/payments-Ci8bF4C6.mjs +0 -45
  185. package/dist/subscriptions-CwogJODR.mjs +0 -54
  186. package/dist/useCustomerFormLabels-CK7K50nB.mjs +0 -1369
  187. package/dist/useLoadInitialData-4k_Cyqef.mjs +0 -15
  188. package/dist/usePaymentMethodOptions-1QBcmgUf.mjs +0 -40
  189. package/dist/usePaymentMethods-gvr-rmwE.mjs +0 -15
@@ -1,34 +1,37 @@
1
- import { computed as p, ref as N, defineComponent as F, openBlock as c, createBlock as g, unref as a, withCtx as u, createElementVNode as W, createVNode as S, createTextVNode as _, toDisplayString as y, createCommentVNode as v, createElementBlock as j, Fragment as Q, renderList as Z, watch as Y, defineAsyncComponent as H, toRef as ie, renderSlot as se, mergeProps as oe } from "vue";
2
- import { _ as re } from "./Alert.vue.es-lIiAWf2S.mjs";
3
- import { _ as z } from "./Button.vue.es-rh6mITmN.mjs";
4
- import { _ as ee } from "./ErrorNotification.vue.es-CKlt4hr2.mjs";
5
- import { a as R, _ as P, d as q, e as le, g as ce, f as de } from "./customElements-Di3zwlEU.mjs";
6
- import { C as ue } from "./ContentWithAsideLayout-BCM8tmZN.mjs";
7
- import { u as te } from "./useActionDispatchProvider-DC_fUykI.mjs";
1
+ import { computed as p, ref as N, defineComponent as F, openBlock as l, createBlock as g, unref as a, withCtx as u, createElementVNode as W, createVNode as S, createTextVNode as _, toDisplayString as y, createCommentVNode as v, createElementBlock as R, Fragment as Q, renderList as Z, watch as Y, defineAsyncComponent as H, toRef as ie, renderSlot as se, mergeProps as oe } from "vue";
2
+ import { _ as re } from "./Alert.vue.es-CNrEaLvh.mjs";
3
+ import { _ as z } from "./Button.vue.es-Zw--kuaU.mjs";
4
+ import { _ as ee } from "./ErrorNotification.vue.es-DNd65mQq.mjs";
5
+ import { a as j, d as $, e as q, g as ce, h as le, j as de } from "./customElements-BTj4ii4f.mjs";
6
+ import { C as ue } from "./ContentWithAsideLayout-Bnbsq8_5.mjs";
7
+ import { u as te } from "./useActionDispatchProvider-3W2vEyIg.mjs";
8
8
  import { i as pe, c as me, d as ne, a as ge } from "./subscription-BhxoqwcT.mjs";
9
9
  import { c as G } from "./pricingPlanSchedule-BPrS2WRd.mjs";
10
- import { _ as be, u as fe } from "./CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BzTSwo4i.mjs";
11
- import { _ as he } from "./CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Ct-eYaEN.mjs";
12
- import { g as ve, _ as _e } from "./EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-Bk4zwyWa.mjs";
13
- import { _ as ye } from "./Skeleton.vue_vue_type_script_setup_true_lang-D7MFjvrP.mjs";
14
- import { _ as V } from "./Section.vue.es-iS8hVGWA.mjs";
15
- import { a as we, w as Se, h as Ce, u as Ie, g as Me } from "./pricingPlanScheduleOverrides-COr9F8DO.mjs";
16
- import { f as X, b as De } from "./formatting.es-RclXHhKo.mjs";
17
- import { _ as Ae } from "./PaymentMethod.vue.es-Cauxx4Xr.mjs";
18
- import { M as $e } from "./Modal.vue.es-CTNACAst.mjs";
19
- import { c as Pe } from "./subscriptions-CwogJODR.mjs";
20
- import { a as Ee } from "./SubscriptionSummary.vue_vue_type_script_setup_true_lang-Wmjqy7RZ.mjs";
21
- import { A as Oe } from "./ApiStatus-CSFKl_ra.mjs";
22
- import { u as Le } from "./useCustomer-C3kTh7wn.mjs";
23
- import { u as ke } from "./usePaymentMethods-gvr-rmwE.mjs";
24
- import { u as xe } from "./useLoadInitialData-4k_Cyqef.mjs";
25
- import { c as Te } from "./pricingPlanSchedules-BK_o9p6h.mjs";
26
- import { u as Be } from "./useService-B0OQJmif.mjs";
10
+ import { a as be, u as fe } from "./CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BmPKfIjT.mjs";
11
+ import { _ as he } from "./CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-DBivC5Eb.mjs";
12
+ import { _ as ve } from "./EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CVP-7ne3.mjs";
13
+ import { _ as _e } from "./Skeleton.vue_vue_type_script_setup_true_lang-D7MFjvrP.mjs";
14
+ import { _ as V } from "./Section.vue.es-CvX9tg2f.mjs";
15
+ import { a as ye, w as we, h as Se, u as Ce, g as Ie } from "./pricingPlanScheduleOverrides-Dxv5FOBd.mjs";
16
+ import { g as Me } from "./pricing-BOhvWWMj.mjs";
17
+ import { u as Pe } from "./useTimePeriod.es-BpdiVwg8.mjs";
18
+ import { f as X } from "./formatting.es-RclXHhKo.mjs";
19
+ import { _ as De } from "./PaymentMethod.vue.es-b0p3a0L-.mjs";
20
+ import { M as Oe } from "./Modal.vue.es-C8ZcO117.mjs";
21
+ import { c as $e } from "./subscriptions-BWXZGK0E.mjs";
22
+ import { a as Ae } from "./SubscriptionSummary.vue_vue_type_script_setup_true_lang-DoJxiqVB.mjs";
23
+ import { A as ke } from "./ApiStatus-CSFKl_ra.mjs";
24
+ import { u as Ee } from "./useCustomer-cObBvDOu.mjs";
25
+ import { u as Le } from "./usePaymentMethods-ByaKF7mf.mjs";
26
+ import { u as xe } from "./useLoadInitialData-qzdnBoui.mjs";
27
+ import { c as Te } from "./pricingPlanSchedules-Dv7ZCgNp.mjs";
28
+ import { u as Be } from "./useService-BZcbUZHI.mjs";
27
29
  import { g as K } from "./getComposedString.es-C__uhJpd.mjs";
28
30
  import { g as ae } from "./pricing.es-QYWrKMUJ.mjs";
29
31
  import { h as Ue } from "./pricingItemConfigs.es-D3pX_9AJ.mjs";
30
- const Ne = () => {
31
- const { $t: e } = R();
32
+ import { a as Ne } from "./paymentMethods-Nfv9HdkS.mjs";
33
+ const Fe = () => {
34
+ const { $t: e } = j();
32
35
  return { getPriceLabel: (t) => {
33
36
  if (!t.price)
34
37
  return;
@@ -43,7 +46,7 @@ const Ne = () => {
43
46
  );
44
47
  } };
45
48
  };
46
- function Fe({
49
+ function je({
47
50
  subscription: e
48
51
  }) {
49
52
  const { dispatchAction: i } = te(), t = p(
@@ -68,19 +71,19 @@ function Fe({
68
71
  } };
69
72
  }
70
73
  function Re(e) {
71
- var n, s, o, l, d, r, b;
72
- const i = (o = (s = (n = e.items) == null ? void 0 : n[0]) == null ? void 0 : s.configs) == null ? void 0 : o[0], t = (d = (l = i == null ? void 0 : i.details) == null ? void 0 : l.bands) == null ? void 0 : d[0];
74
+ var n, s, o, r, d, c, b;
75
+ const i = (o = (s = (n = e.items) == null ? void 0 : n[0]) == null ? void 0 : s.configs) == null ? void 0 : o[0], t = (d = (r = i == null ? void 0 : i.details) == null ? void 0 : r.bands) == null ? void 0 : d[0];
73
76
  return {
74
77
  amount: (t == null ? void 0 : t.amount) ?? (t == null ? void 0 : t.fixed_amount),
75
- billingPeriod: ((r = i == null ? void 0 : i.details) == null ? void 0 : r.pricing_period) ?? ((b = i == null ? void 0 : i.details) == null ? void 0 : b.billing_period)
78
+ billingPeriod: ((c = i == null ? void 0 : i.details) == null ? void 0 : c.pricing_period) ?? ((b = i == null ? void 0 : i.details) == null ? void 0 : b.billing_period)
76
79
  };
77
80
  }
78
- function je(e) {
81
+ function Ve(e) {
79
82
  var n;
80
83
  const i = new Set(
81
- we(e.pricing_plan_schedule ?? {})
84
+ ye(e.pricing_plan_schedule ?? {})
82
85
  );
83
- return i.size === 0 || !e.pricing_plan_version ? [] : (((n = Se(e).pricing_categories) == null ? void 0 : n.flatMap(
86
+ return i.size === 0 || !e.pricing_plan_version ? [] : (((n = we(e).pricing_categories) == null ? void 0 : n.flatMap(
84
87
  (s) => s.pricing_groups ?? []
85
88
  )) ?? []).flatMap(
86
89
  (s) => (s.pricings ?? []).filter((o) => i.has(o.id)).map((o) => ({
@@ -88,12 +91,12 @@ function je(e) {
88
91
  pricingGroupId: s.id,
89
92
  groupName: s.name,
90
93
  // A pricing without a name of its own is only identifiable by the choice it belongs to.
91
- name: ve(o) || s.name,
94
+ name: Me(o) || s.name,
92
95
  ...Re(o)
93
96
  }))
94
97
  );
95
98
  }
96
- const Ve = { class: "sv-enabled-pricings-list__item-body flex items-center gap-4" }, We = { class: "sv-enabled-pricings-list__item-content grow" }, Ye = /* @__PURE__ */ F({
99
+ const We = { class: "sv-enabled-pricings-list__item-body flex items-center gap-4" }, Ye = { class: "sv-enabled-pricings-list__item-content grow" }, ze = /* @__PURE__ */ F({
97
100
  __name: "EnabledPricingsListItem",
98
101
  props: {
99
102
  entry: { type: Object },
@@ -101,29 +104,29 @@ const Ve = { class: "sv-enabled-pricings-list__item-body flex items-center gap-4
101
104
  },
102
105
  emits: ["upgrade"],
103
106
  setup(e) {
104
- const i = e, { $t: t } = R(), n = p(() => {
105
- const { amount: s, billingPeriod: o } = i.entry;
106
- if (s)
107
- return o ? t(
107
+ const i = e, { $t: t } = j(), { formatTimePeriod: n } = Pe(), s = p(() => {
108
+ const { amount: o, billingPeriod: r } = i.entry;
109
+ if (o)
110
+ return r ? t(
108
111
  {
109
112
  defaultMessage: "{amount} per {period}",
110
113
  id: "enabled_pricings_list.item.price",
111
114
  description: 'The recurring price of an enabled pricing, e.g. "€ 100,00 per month"'
112
115
  },
113
116
  {
114
- amount: X(s),
115
- period: De(o, {
117
+ amount: X(o),
118
+ period: n(r, {
116
119
  short: !0,
117
120
  hideValueForExactPeriods: !0
118
121
  })
119
122
  }
120
- ) : X(s);
123
+ ) : X(o);
121
124
  });
122
- return (s, o) => (c(), g(a(V), { class: "sv-enabled-pricings-list__item" }, {
125
+ return (o, r) => (l(), g(a(V), { class: "sv-enabled-pricings-list__item" }, {
123
126
  default: u(() => [
124
- W("div", Ve, [
125
- W("div", We, [
126
- S(a(P), {
127
+ W("div", We, [
128
+ W("div", Ye, [
129
+ S(a($), {
127
130
  tag: "span",
128
131
  variant: "body-xs",
129
132
  color: "subtle",
@@ -134,7 +137,7 @@ const Ve = { class: "sv-enabled-pricings-list__item-body flex items-center gap-4
134
137
  ]),
135
138
  _: 1
136
139
  }),
137
- S(a(P), {
140
+ S(a($), {
138
141
  tag: "h3",
139
142
  variant: "heading-3",
140
143
  "no-spacing": "",
@@ -145,7 +148,7 @@ const Ve = { class: "sv-enabled-pricings-list__item-body flex items-center gap-4
145
148
  ]),
146
149
  _: 1
147
150
  }),
148
- n.value ? (c(), g(a(P), {
151
+ s.value ? (l(), g(a($), {
149
152
  key: 0,
150
153
  tag: "span",
151
154
  variant: "body-sm",
@@ -153,18 +156,18 @@ const Ve = { class: "sv-enabled-pricings-list__item-body flex items-center gap-4
153
156
  class: "sv-enabled-pricings-list__item-price"
154
157
  }, {
155
158
  default: u(() => [
156
- _(y(n.value), 1)
159
+ _(y(s.value), 1)
157
160
  ]),
158
161
  _: 1
159
162
  })) : v("", !0)
160
163
  ]),
161
- e.canUpgrade ? (c(), g(a(z), {
164
+ e.canUpgrade ? (l(), g(a(z), {
162
165
  key: 0,
163
166
  intent: "secondary",
164
167
  class: "sv-action sv-action--secondary sv-enabled-pricings-list__item-upgrade shrink-0",
165
168
  type: "button",
166
169
  size: "xs",
167
- onClick: o[0] || (o[0] = (l) => s.$emit("upgrade", e.entry))
170
+ onClick: r[0] || (r[0] = (d) => o.$emit("upgrade", e.entry))
168
171
  }, {
169
172
  default: u(() => [
170
173
  _(y(a(t)({
@@ -180,17 +183,17 @@ const Ve = { class: "sv-enabled-pricings-list__item-body flex items-center gap-4
180
183
  _: 1
181
184
  }));
182
185
  }
183
- }), ze = { class: "sv-enabled-pricings-list__items grid grid-cols-1 gap-2" }, Xe = /* @__PURE__ */ F({
186
+ }), Xe = { class: "sv-enabled-pricings-list__items grid grid-cols-1 gap-2" }, qe = /* @__PURE__ */ F({
184
187
  __name: "EnabledPricingsList",
185
188
  props: {
186
189
  pricingPlanSchedule: { type: Object }
187
190
  },
188
191
  emits: ["upgrade"],
189
192
  setup(e) {
190
- const i = e, { $t: t } = R(), n = p(() => je(i.pricingPlanSchedule)), s = p(
191
- () => !Ce(i.pricingPlanSchedule.pricing_plan_schedule)
193
+ const i = e, { $t: t } = j(), n = p(() => Ve(i.pricingPlanSchedule)), s = p(
194
+ () => !Se(i.pricingPlanSchedule.pricing_plan_schedule)
192
195
  );
193
- return (o, l) => n.value.length > 0 ? (c(), g(a(V), {
196
+ return (o, r) => n.value.length > 0 ? (l(), g(a(V), {
194
197
  key: 0,
195
198
  class: "sv-enabled-pricings-list",
196
199
  "content-background": "none",
@@ -203,35 +206,35 @@ const Ve = { class: "sv-enabled-pricings-list__item-body flex items-center gap-4
203
206
  })
204
207
  }, {
205
208
  default: u(() => [
206
- W("div", ze, [
207
- (c(!0), j(Q, null, Z(n.value, (d) => (c(), g(Ye, {
209
+ W("div", Xe, [
210
+ (l(!0), R(Q, null, Z(n.value, (d) => (l(), g(ze, {
208
211
  key: d.pricingId,
209
212
  entry: d,
210
213
  "can-upgrade": s.value,
211
- onUpgrade: l[0] || (l[0] = (r) => o.$emit("upgrade", r))
214
+ onUpgrade: r[0] || (r[0] = (c) => o.$emit("upgrade", c))
212
215
  }, null, 8, ["entry", "can-upgrade"]))), 128))
213
216
  ])
214
217
  ]),
215
218
  _: 1
216
219
  }, 8, ["title"])) : v("", !0);
217
220
  }
218
- }), qe = { class: "sv-on-demand-items-card__items grid grid-cols-1 gap-1" }, Ge = {
221
+ }), Ge = { class: "sv-on-demand-items-card__items grid grid-cols-1 gap-1" }, He = {
219
222
  key: 0,
220
223
  class: "sv-on-demand-items-card__more"
221
- }, J = 2, He = /* @__PURE__ */ F({
224
+ }, J = 2, Ke = /* @__PURE__ */ F({
222
225
  __name: "OnDemandItemsCard",
223
226
  props: {
224
227
  items: { type: Array }
225
228
  },
226
229
  emits: ["order"],
227
230
  setup(e) {
228
- const i = e, { $t: t } = R(), { getPriceLabel: n } = Ne(), s = p(
229
- () => i.items.slice(0, J).map((l) => ({
230
- item: l,
231
- priceLabel: n(l)
231
+ const i = e, { $t: t } = j(), { getPriceLabel: n } = Fe(), s = p(
232
+ () => i.items.slice(0, J).map((r) => ({
233
+ item: r,
234
+ priceLabel: n(r)
232
235
  }))
233
236
  ), o = p(() => Math.max(i.items.length - J, 0));
234
- return (l, d) => (c(), g(a(V), {
237
+ return (r, d) => (l(), g(a(V), {
235
238
  class: "sv-on-demand-items-card",
236
239
  "content-background": "none",
237
240
  "no-border": "",
@@ -248,7 +251,7 @@ const Ve = { class: "sv-enabled-pricings-list__item-body flex items-center gap-4
248
251
  type: "button",
249
252
  size: "sm",
250
253
  intent: "secondary",
251
- onClick: d[0] || (d[0] = (r) => l.$emit("order"))
254
+ onClick: d[0] || (d[0] = (c) => r.$emit("order"))
252
255
  }, {
253
256
  default: u(() => [
254
257
  _(y(a(t)({
@@ -261,9 +264,9 @@ const Ve = { class: "sv-enabled-pricings-list__item-body flex items-center gap-4
261
264
  })
262
265
  ]),
263
266
  default: u(() => [
264
- W("ul", qe, [
265
- (c(!0), j(Q, null, Z(s.value, ({ item: r, priceLabel: b }) => (c(), j("li", {
266
- key: r.pricingItemId,
267
+ W("ul", Ge, [
268
+ (l(!0), R(Q, null, Z(s.value, ({ item: c, priceLabel: b }) => (l(), R("li", {
269
+ key: c.pricingItemId,
267
270
  class: "sv-on-demand-items-card__item"
268
271
  }, [
269
272
  S(a(V), {
@@ -271,18 +274,18 @@ const Ve = { class: "sv-enabled-pricings-list__item-body flex items-center gap-4
271
274
  "content-classes": "flex flex-col px-4 py-3"
272
275
  }, {
273
276
  default: u(() => [
274
- S(a(P), {
277
+ S(a($), {
275
278
  tag: "span",
276
279
  weight: "semibold",
277
280
  "no-spacing": "",
278
281
  class: "sv-on-demand-items-card__item-name break-words"
279
282
  }, {
280
283
  default: u(() => [
281
- _(y(r.name), 1)
284
+ _(y(c.name), 1)
282
285
  ]),
283
286
  _: 2
284
287
  }, 1024),
285
- b ? (c(), g(a(P), {
288
+ b ? (l(), g(a($), {
286
289
  key: 0,
287
290
  tag: "span",
288
291
  variant: "body-sm",
@@ -299,13 +302,13 @@ const Ve = { class: "sv-enabled-pricings-list__item-body flex items-center gap-4
299
302
  _: 2
300
303
  }, 1024)
301
304
  ]))), 128)),
302
- o.value > 0 ? (c(), j("li", Ge, [
305
+ o.value > 0 ? (l(), R("li", He, [
303
306
  S(a(V), {
304
307
  "no-spacing": "",
305
308
  "content-classes": "px-4 py-3 text-center"
306
309
  }, {
307
310
  default: u(() => [
308
- S(a(P), {
311
+ S(a($), {
309
312
  tag: "span",
310
313
  weight: "semibold",
311
314
  color: "secondary",
@@ -333,12 +336,12 @@ const Ve = { class: "sv-enabled-pricings-list__item-body flex items-center gap-4
333
336
  }, 8, ["title"]));
334
337
  }
335
338
  });
336
- function Ke({
339
+ function Je({
337
340
  variant: e,
338
341
  renewableUntil: i,
339
342
  billingPeriodEndsAt: t
340
343
  }) {
341
- const { $t: n } = R(), s = p(() => e.value === "RENEW"), o = p(
344
+ const { $t: n } = j(), s = p(() => e.value === "RENEW"), o = p(
342
345
  () => s.value ? n({
343
346
  defaultMessage: "Renew subscription",
344
347
  description: "Title of the renew subscription confirmation modal",
@@ -348,7 +351,7 @@ function Ke({
348
351
  description: "Title of the cancel subscription confirmation modal",
349
352
  id: "subscription_cancellation_modal.cancel.title"
350
353
  })
351
- ), l = p(() => s.value ? i.value ? n(
354
+ ), r = p(() => s.value ? i.value ? n(
352
355
  {
353
356
  defaultMessage: "You can renew your subscription until {date}. After this period you can only create a new subscription.",
354
357
  description: "Explanation of the deadline for undoing a cancellation, shown in the renew subscription modal",
@@ -380,7 +383,7 @@ function Ke({
380
383
  description: "Label of the confirm button in the cancel subscription modal",
381
384
  id: "subscription_cancellation_modal.cancel.confirm_button.label"
382
385
  })
383
- ), r = p(
386
+ ), c = p(
384
387
  () => s.value ? n({
385
388
  defaultMessage: "Cancel",
386
389
  description: "Label of the button that dismisses the cancellation modal",
@@ -401,15 +404,15 @@ function Ke({
401
404
  id: "subscription_cancellation_modal.cancel.error"
402
405
  })
403
406
  );
404
- return { title: o, explanation: l, confirmButtonText: d, cancelButtonText: r, errorMessage: b };
407
+ return { title: o, explanation: r, confirmButtonText: d, cancelButtonText: c, errorMessage: b };
405
408
  }
406
- const Je = { class: "sv-subscription-cancellation-modal sv-subscription-cancellation-modal__body flex flex-col gap-3" }, Qe = {
409
+ const Qe = { class: "sv-subscription-cancellation-modal sv-subscription-cancellation-modal__body flex flex-col gap-3" }, Ze = {
407
410
  key: 0,
408
411
  class: "sv-subscription-cancellation-modal__meta flex flex-wrap items-center gap-x-6 gap-y-2 px-3 pb-2"
409
- }, Ze = {
412
+ }, et = {
410
413
  key: 0,
411
414
  class: "sv-subscription-cancellation-modal__renews flex gap-1"
412
- }, et = /* @__PURE__ */ F({
415
+ }, tt = /* @__PURE__ */ F({
413
416
  __name: "SubscriptionCancellationModal",
414
417
  props: {
415
418
  showModal: { type: Boolean },
@@ -421,30 +424,30 @@ const Je = { class: "sv-subscription-cancellation-modal sv-subscription-cancella
421
424
  },
422
425
  emits: ["confirmed", "close"],
423
426
  setup(e, { emit: i }) {
424
- const t = e, n = i, { $t: s, formatDate: o } = R(), l = q(), { setSubscriptionCancellation: d } = Pe(), r = N(t.variant);
427
+ const t = e, n = i, { $t: s, formatDate: o } = j(), r = q(), { setSubscriptionCancellation: d } = $e(), c = N(t.variant);
425
428
  Y(
426
429
  () => t.variant,
427
430
  (f) => {
428
- f && (r.value = f);
431
+ f && (c.value = f);
429
432
  }
430
433
  );
431
434
  const b = (f) => {
432
435
  var h;
433
- const D = (h = t.customer) == null ? void 0 : h.timezone;
434
- return o(D ? { date: f, format: "date", offsetType: "offsetted", timezone: D } : { date: f, format: "date", offsetType: "local" });
436
+ const P = (h = t.customer) == null ? void 0 : h.timezone;
437
+ return o(P ? { date: f, format: "date", offsetType: "offsetted", timezone: P } : { date: f, format: "date", offsetType: "local" });
435
438
  }, C = p(() => {
436
439
  const f = ne(t.subscription);
437
440
  return f ? b(f.start_at) : void 0;
438
- }), O = p(() => {
439
- var D, h;
440
- const f = (h = (D = t.subscription) == null ? void 0 : D.next_invoice) == null ? void 0 : h.invoice_date;
441
+ }), k = p(() => {
442
+ var P, h;
443
+ const f = (h = (P = t.subscription) == null ? void 0 : P.next_invoice) == null ? void 0 : h.invoice_date;
441
444
  return f ? b(f) : void 0;
442
- }), $ = O, T = p(
445
+ }), O = k, T = p(
443
446
  () => {
444
- var f, D, h;
445
- return (((h = (D = G(((f = t.subscription) == null ? void 0 : f.pricing_plan_schedule_infos) ?? [])) == null ? void 0 : D.pricing_plan_schedule) == null ? void 0 : h.enabled_pricings) ?? []).map(({ pricing_id: m }) => m).filter((m) => !!m);
447
+ var f, P, h;
448
+ return (((h = (P = G(((f = t.subscription) == null ? void 0 : f.pricing_plan_schedule_infos) ?? [])) == null ? void 0 : P.pricing_plan_schedule) == null ? void 0 : h.enabled_pricings) ?? []).map(({ pricing_id: m }) => m).filter((m) => !!m);
446
449
  }
447
- ), { title: B, explanation: I, confirmButtonText: E, cancelButtonText: L, errorMessage: k } = Ke({ variant: r, renewableUntil: C, billingPeriodEndsAt: O }), w = N(!1), x = N(!1);
450
+ ), { title: B, explanation: I, confirmButtonText: A, cancelButtonText: E, errorMessage: L } = Je({ variant: c, renewableUntil: C, billingPeriodEndsAt: k }), w = N(!1), x = N(!1);
448
451
  Y(
449
452
  () => t.showModal,
450
453
  (f) => {
@@ -460,7 +463,7 @@ const Je = { class: "sv-subscription-cancellation-modal sv-subscription-cancella
460
463
  variant: t.variant
461
464
  }), n("confirmed"), n("close");
462
465
  } catch (f) {
463
- l.error(
466
+ r.error(
464
467
  "SUBSCRIPTION_CANCELLATION_FAILED",
465
468
  "Failed to change the cancellation state of a subscription",
466
469
  { variant: t.variant },
@@ -473,12 +476,12 @@ const Je = { class: "sv-subscription-cancellation-modal sv-subscription-cancella
473
476
  }, M = () => {
474
477
  w.value || n("close");
475
478
  };
476
- return (f, D) => (c(), g(a($e), {
479
+ return (f, P) => (l(), g(a(Oe), {
477
480
  size: "md",
478
481
  "show-modal": e.showModal,
479
482
  title: a(B),
480
- "confirm-button-text": a(E),
481
- "cancel-button-text": a(L),
483
+ "confirm-button-text": a(A),
484
+ "cancel-button-text": a(E),
482
485
  "is-loading": w.value,
483
486
  "no-click-away": w.value,
484
487
  "no-backdrop-close": w.value,
@@ -486,8 +489,8 @@ const Je = { class: "sv-subscription-cancellation-modal sv-subscription-cancella
486
489
  onClose: M
487
490
  }, {
488
491
  body: u(() => [
489
- W("div", Je, [
490
- S(a(P), {
492
+ W("div", Qe, [
493
+ S(a($), {
491
494
  variant: "body-sm",
492
495
  color: "subtle",
493
496
  tag: "p",
@@ -498,20 +501,20 @@ const Je = { class: "sv-subscription-cancellation-modal sv-subscription-cancella
498
501
  ]),
499
502
  _: 1
500
503
  }),
501
- e.subscription ? (c(), g(a(V), {
504
+ e.subscription ? (l(), g(a(V), {
502
505
  key: 0,
503
506
  "no-spacing": "",
504
507
  class: "sv-subscription-cancellation-modal__subscription"
505
508
  }, {
506
509
  default: u(() => [
507
- S(Ee, {
510
+ S(Ae, {
508
511
  subscription: e.subscription,
509
512
  avatar: e.avatar,
510
513
  "enabled-pricing-ids": T.value
511
514
  }, null, 8, ["subscription", "avatar", "enabled-pricing-ids"]),
512
- a($) || e.paymentMethod ? (c(), j("div", Qe, [
513
- a($) ? (c(), j("div", Ze, [
514
- S(a(P), {
515
+ a(O) || e.paymentMethod ? (l(), R("div", Ze, [
516
+ a(O) ? (l(), R("div", et, [
517
+ S(a($), {
515
518
  tag: "span",
516
519
  variant: "body-xs",
517
520
  color: "secondary",
@@ -526,18 +529,18 @@ const Je = { class: "sv-subscription-cancellation-modal sv-subscription-cancella
526
529
  ]),
527
530
  _: 1
528
531
  }),
529
- S(a(P), {
532
+ S(a($), {
530
533
  tag: "span",
531
534
  variant: "body-xs",
532
535
  color: "secondary"
533
536
  }, {
534
537
  default: u(() => [
535
- _(y(a($)), 1)
538
+ _(y(a(O)), 1)
536
539
  ]),
537
540
  _: 1
538
541
  })
539
542
  ])) : v("", !0),
540
- e.paymentMethod ? (c(), g(a(Ae), {
543
+ e.paymentMethod ? (l(), g(a(De), {
541
544
  key: 1,
542
545
  variant: "condensed",
543
546
  class: "sv-subscription-cancellation-modal__payment-method",
@@ -547,17 +550,17 @@ const Je = { class: "sv-subscription-cancellation-modal sv-subscription-cancella
547
550
  ]),
548
551
  _: 1
549
552
  })) : v("", !0),
550
- x.value ? (c(), g(a(ee), {
553
+ x.value ? (l(), g(a(ee), {
551
554
  key: 1,
552
555
  class: "sv-subscription-cancellation-modal__error sv-error",
553
- title: a(k)
556
+ title: a(L)
554
557
  }, null, 8, ["title"])) : v("", !0)
555
558
  ])
556
559
  ]),
557
560
  _: 1
558
561
  }, 8, ["show-modal", "title", "confirm-button-text", "cancel-button-text", "is-loading", "no-click-away", "no-backdrop-close"]));
559
562
  }
560
- }), tt = { class: "sv-subscription-details__header flex flex-col gap-2 md:flex-row md:items-center" }, nt = /* @__PURE__ */ F({
563
+ }), nt = { class: "sv-subscription-details__header flex flex-col gap-2 md:flex-row md:items-center" }, at = /* @__PURE__ */ F({
561
564
  __name: "SubscriptionDetails",
562
565
  props: {
563
566
  subscription: { type: Object },
@@ -576,24 +579,24 @@ const Je = { class: "sv-subscription-cancellation-modal sv-subscription-cancella
576
579
  emits: ["top-up-charged", "auto-top-up-saved", "auto-top-up-cancelled", "payment-method-stored", "subscription-changed", "invoice-created"],
577
580
  setup(e, { emit: i }) {
578
581
  const t = H(
579
- () => import("./SubscriptionSchedules-DAahcNoI.mjs")
582
+ () => import("./SubscriptionSchedules-BZqlpAtk.mjs")
580
583
  ), n = H(
581
- () => import("./ChargeOnDemandModal-CPjPa_uq.mjs")
582
- ), s = e, o = i, { dispatchAction: l } = te(), { $t: d } = R(), {
583
- isCancellable: r,
584
+ () => import("./ChargeOnDemandModal-B8FDkS9U.mjs")
585
+ ), s = e, o = i, { dispatchAction: r } = te(), { $t: d } = j(), {
586
+ isCancellable: c,
584
587
  isRenewable: b,
585
588
  pendingVariant: C,
586
- cancel: O,
587
- renew: $,
589
+ cancel: k,
590
+ renew: O,
588
591
  dismiss: T,
589
592
  manage: B
590
- } = Fe({ subscription: ie(s, "subscription") }), I = N();
593
+ } = je({ subscription: ie(s, "subscription") }), I = N();
591
594
  Y(C, (h) => {
592
595
  h && (I.value = void 0);
593
596
  });
594
- const E = () => {
597
+ const A = () => {
595
598
  I.value = C.value, o("subscription-changed");
596
- }, L = p(() => {
599
+ }, E = p(() => {
597
600
  if (I.value)
598
601
  return I.value === "RENEW" ? d({
599
602
  defaultMessage: "Your subscription has been renewed.",
@@ -604,7 +607,7 @@ const Je = { class: "sv-subscription-cancellation-modal sv-subscription-cancella
604
607
  id: "subscription_details.cancel_success",
605
608
  description: "Confirmation shown after a subscription has been cancelled"
606
609
  });
607
- }), k = p(
610
+ }), L = p(
608
611
  () => {
609
612
  var h;
610
613
  return G(((h = s.subscription) == null ? void 0 : h.pricing_plan_schedule_infos) ?? []);
@@ -616,7 +619,7 @@ const Je = { class: "sv-subscription-cancellation-modal sv-subscription-cancella
616
619
  })
617
620
  ), x = p(() => s.subscription ? [s.subscription] : []), U = N(!1), M = N(!1), f = () => {
618
621
  M.value = !0, U.value = !0;
619
- }, D = p(
622
+ }, P = p(
620
623
  () => ge({
621
624
  subscription: s.subscription,
622
625
  fallback: d({
@@ -626,25 +629,25 @@ const Je = { class: "sv-subscription-cancellation-modal sv-subscription-cancella
626
629
  })
627
630
  })
628
631
  );
629
- return (h, m) => (c(), g(a(ue), { class: "sv-subscription-details sv-root sv-screen" }, {
632
+ return (h, m) => (l(), g(a(ue), { class: "sv-subscription-details sv-root sv-screen" }, {
630
633
  header: u(() => [
631
- W("div", tt, [
632
- S(a(P), {
634
+ W("div", nt, [
635
+ S(a($), {
633
636
  variant: "heading-2",
634
637
  tag: "h1",
635
638
  class: "sv-subscription-details__title grow"
636
639
  }, {
637
640
  default: u(() => [
638
- _(y(D.value), 1)
641
+ _(y(P.value), 1)
639
642
  ]),
640
643
  _: 1
641
644
  }),
642
- a(b) ? (c(), g(a(z), {
645
+ a(b) ? (l(), g(a(z), {
643
646
  key: 0,
644
647
  intent: "secondary",
645
648
  class: "sv-action sv-action--secondary sv-subscription-details__renew w-full md:w-auto",
646
649
  type: "button",
647
- onClick: a($)
650
+ onClick: a(O)
648
651
  }, {
649
652
  default: u(() => [
650
653
  _(y(a(d)({
@@ -655,12 +658,12 @@ const Je = { class: "sv-subscription-cancellation-modal sv-subscription-cancella
655
658
  ]),
656
659
  _: 1
657
660
  }, 8, ["onClick"])) : v("", !0),
658
- a(r) ? (c(), g(a(z), {
661
+ a(c) ? (l(), g(a(z), {
659
662
  key: 1,
660
663
  intent: "secondary",
661
664
  class: "sv-action sv-action--secondary sv-subscription-details__cancel w-full md:w-auto",
662
665
  type: "button",
663
- onClick: a(O)
666
+ onClick: a(k)
664
667
  }, {
665
668
  default: u(() => [
666
669
  _(y(a(d)({
@@ -674,13 +677,13 @@ const Je = { class: "sv-subscription-cancellation-modal sv-subscription-cancella
674
677
  ])
675
678
  ]),
676
679
  content: u(() => [
677
- L.value ? (c(), g(a(re), {
680
+ E.value ? (l(), g(a(re), {
678
681
  key: 0,
679
682
  class: "sv-subscription-details__cancellation-success",
680
683
  type: "success",
681
- title: L.value
684
+ title: E.value
682
685
  }, null, 8, ["title"])) : v("", !0),
683
- e.error ? (c(), g(a(ee), {
686
+ e.error ? (l(), g(a(ee), {
684
687
  key: 1,
685
688
  class: "sv-subscription-details__error sv-error",
686
689
  title: a(d)({
@@ -688,15 +691,15 @@ const Je = { class: "sv-subscription-cancellation-modal sv-subscription-cancella
688
691
  id: "subscription_details.load_error",
689
692
  description: "Error message shown when the subscription cannot be loaded on the subscription details page"
690
693
  })
691
- }, null, 8, ["title"])) : e.isLoading ? (c(), g(ye, {
694
+ }, null, 8, ["title"])) : e.isLoading ? (l(), g(_e, {
692
695
  key: 2,
693
696
  variant: "section",
694
697
  class: "min-h-[220px]"
695
- })) : e.subscription ? (c(), g(a(t), {
698
+ })) : e.subscription ? (l(), g(a(t), {
696
699
  key: 3,
697
700
  class: "sv-subscription-details__schedules",
698
701
  "schedules-data": e.schedulesData ?? []
699
- }, null, 8, ["schedules-data"])) : (c(), g(_e, {
702
+ }, null, 8, ["schedules-data"])) : (l(), g(ve, {
700
703
  key: 4,
701
704
  class: "sv-subscription-details__empty-state",
702
705
  icon: "receipt_long"
@@ -728,31 +731,31 @@ const Je = { class: "sv-subscription-cancellation-modal sv-subscription-cancella
728
731
  customer: e.customer,
729
732
  "payment-methods": e.paymentMethods,
730
733
  subscriptions: x.value,
731
- onTopUpCharged: m[0] || (m[0] = (A) => h.$emit("top-up-charged")),
732
- onAutoTopUpSaved: m[1] || (m[1] = (A) => h.$emit("auto-top-up-saved")),
733
- onAutoTopUpCancelled: m[2] || (m[2] = (A) => h.$emit("auto-top-up-cancelled")),
734
- onPaymentMethodStored: m[3] || (m[3] = (A) => h.$emit("payment-method-stored"))
734
+ onTopUpCharged: m[0] || (m[0] = (D) => h.$emit("top-up-charged")),
735
+ onAutoTopUpSaved: m[1] || (m[1] = (D) => h.$emit("auto-top-up-saved")),
736
+ onAutoTopUpCancelled: m[2] || (m[2] = (D) => h.$emit("auto-top-up-cancelled")),
737
+ onPaymentMethodStored: m[3] || (m[3] = (D) => h.$emit("payment-method-stored"))
735
738
  }, null, 8, ["has-error", "is-loading", "wallet-balances", "customer", "payment-methods", "subscriptions"]),
736
- !e.isLoading && e.onDemandItems.length > 0 ? (c(), g(He, {
739
+ !e.isLoading && e.onDemandItems.length > 0 ? (l(), g(Ke, {
737
740
  key: 0,
738
741
  items: e.onDemandItems,
739
742
  class: "sv-subscription-details__on-demand-items",
740
743
  onOrder: f
741
744
  }, null, 8, ["items"])) : v("", !0),
742
- k.value ? (c(), g(Xe, {
745
+ L.value ? (l(), g(qe, {
743
746
  key: 1,
744
747
  class: "sv-subscription-details__upgrades",
745
- "pricing-plan-schedule": k.value,
746
- onUpgrade: m[4] || (m[4] = (A) => a(B)(A.pricingId))
748
+ "pricing-plan-schedule": L.value,
749
+ onUpgrade: m[4] || (m[4] = (D) => a(B)(D.pricingId))
747
750
  }, null, 8, ["pricing-plan-schedule"])) : v("", !0),
748
- w.value ? (c(), g(he, {
751
+ w.value ? (l(), g(he, {
749
752
  key: 2,
750
753
  class: "sv-subscription-details__payment-method",
751
754
  "is-loading": e.isLoading,
752
755
  "payment-methods": [w.value],
753
756
  configuration: { showViewAllButton: !1, showAddButton: !1 }
754
757
  }, null, 8, ["is-loading", "payment-methods"])) : v("", !0),
755
- M.value && e.subscription && e.onDemandScheduleId ? (c(), g(a(n), {
758
+ M.value && e.subscription && e.onDemandScheduleId ? (l(), g(a(n), {
756
759
  key: 3,
757
760
  "show-modal": U.value,
758
761
  subscription: e.subscription,
@@ -761,34 +764,34 @@ const Je = { class: "sv-subscription-cancellation-modal sv-subscription-cancella
761
764
  customer: e.customer,
762
765
  "payment-methods": e.paymentMethods,
763
766
  "can-view-created-invoice": e.canViewCreatedInvoice,
764
- onClose: m[5] || (m[5] = (A) => U.value = !1),
765
- onPaymentMethodStored: m[6] || (m[6] = (A) => h.$emit("payment-method-stored")),
766
- onInvoiceCreated: m[7] || (m[7] = (A) => h.$emit("invoice-created", A)),
767
- onViewInvoice: m[8] || (m[8] = (A) => a(l)({ action: "view-invoice", data: { invoiceId: A } }))
767
+ onClose: m[5] || (m[5] = (D) => U.value = !1),
768
+ onPaymentMethodStored: m[6] || (m[6] = (D) => h.$emit("payment-method-stored")),
769
+ onInvoiceCreated: m[7] || (m[7] = (D) => h.$emit("invoice-created", D)),
770
+ onViewInvoice: m[8] || (m[8] = (D) => a(r)({ action: "view-invoice", data: { invoiceId: D } }))
768
771
  }, null, 8, ["show-modal", "subscription", "schedule-id", "items", "customer", "payment-methods", "can-view-created-invoice"])) : v("", !0),
769
- S(et, {
772
+ S(tt, {
770
773
  "show-modal": !!a(C),
771
774
  variant: a(C),
772
775
  subscription: e.subscription,
773
776
  customer: e.customer,
774
777
  "payment-method": w.value,
775
778
  avatar: e.avatar,
776
- onConfirmed: E,
779
+ onConfirmed: A,
777
780
  onClose: a(T)
778
781
  }, null, 8, ["show-modal", "variant", "subscription", "customer", "payment-method", "avatar", "onClose"])
779
782
  ]),
780
783
  _: 1
781
784
  }));
782
785
  }
783
- }), at = ["FIXED", "FLAT"], it = (e, i) => {
786
+ }), it = ["FIXED", "FLAT"], st = (e, i) => {
784
787
  var n;
785
788
  const t = (n = e.details.bands) == null ? void 0 : n[0];
786
789
  return i === "FIXED" ? t == null ? void 0 : t.fixed_amount : t == null ? void 0 : t.amount;
787
- }, st = (e) => typeof e == "number" && Number.isInteger(e) && e >= 1, ot = (e) => {
790
+ }, ot = (e) => typeof e == "number" && Number.isInteger(e) && e >= 1, rt = (e) => {
788
791
  var t;
789
792
  const i = Number((t = e.default_units) == null ? void 0 : t.number);
790
- return st(i) ? i : 1;
791
- }, rt = (e) => {
793
+ return ot(i) ? i : 1;
794
+ }, ct = (e) => {
792
795
  const i = e.flatMap(ae);
793
796
  return {
794
797
  productItems: new Map(
@@ -798,10 +801,10 @@ const Je = { class: "sv-subscription-cancellation-modal sv-subscription-cancella
798
801
  i.flatMap((t) => t.products ?? []).map(({ id: t, name: n }) => [t, n])
799
802
  )
800
803
  };
801
- }, lt = (e, i, t) => K(i.product_item_ids.map((n) => t.productItems.get(n))) || e.name || K(e.product_ids.map((n) => t.products.get(n))) || "", ct = (e, i, t) => {
802
- var o, l;
804
+ }, lt = (e, i, t) => K(i.product_item_ids.map((n) => t.productItems.get(n))) || e.name || K(e.product_ids.map((n) => t.products.get(n))) || "", dt = (e, i, t) => {
805
+ var o, r;
803
806
  const n = (o = i.configs) == null ? void 0 : o.find((d) => d.on_demand);
804
- if (!n || (l = n.wallet_grants) != null && l.length || !Ue(n, at))
807
+ if (!n || (r = n.wallet_grants) != null && r.length || !Ue(n, it))
805
808
  return;
806
809
  const s = n.details.pricing_type === "FIXED" ? "FIXED" : "FLAT";
807
810
  return {
@@ -809,19 +812,19 @@ const Je = { class: "sv-subscription-cancellation-modal sv-subscription-cancella
809
812
  pricingItemConfigId: n.id,
810
813
  name: lt(e, i, t),
811
814
  priceType: s,
812
- price: it(n, s),
813
- defaultUnits: ot(n)
815
+ price: st(n, s),
816
+ defaultUnits: rt(n)
814
817
  };
815
- }, dt = (e, {
818
+ }, ut = (e, {
816
819
  pricingPlanVersions: i = []
817
820
  } = {}) => {
818
- const t = rt(i);
821
+ const t = ct(i);
819
822
  return ae(e).flatMap(
820
823
  (n) => (n.items ?? []).flatMap(
821
- (s) => ct(n, s, t) ?? []
824
+ (s) => dt(n, s, t) ?? []
822
825
  )
823
826
  );
824
- }, Yt = (e, i) => {
827
+ }, Gt = (e, i) => {
825
828
  const t = new Set(
826
829
  (i.payment_acceptors ?? []).flatMap(
827
830
  (n) => {
@@ -831,34 +834,34 @@ const Je = { class: "sv-subscription-cancellation-modal sv-subscription-cancella
831
834
  )
832
835
  );
833
836
  return e.filter(
834
- (n) => n.status === "ACTIVE" && !!n.integration_id && t.has(n.integration_id)
837
+ (n) => Ne(n) && !!n.integration_id && t.has(n.integration_id)
835
838
  ).sort(
836
839
  (n, s) => +(s.id === i.payment_method_id) - +(n.id === i.payment_method_id)
837
840
  );
838
- }, zt = (e, i) => e.flatMap(({ pricingItemId: t, units: n }) => {
841
+ }, Ht = (e, i) => e.flatMap(({ pricingItemId: t, units: n }) => {
839
842
  const s = i.find((o) => o.pricingItemId === t);
840
843
  return s ? s.priceType === "FLAT" && n !== void 0 ? [{ pricing_item_id: t, units: { number: String(n) } }] : [{ pricing_item_id: t }] : [];
841
844
  });
842
- function ut({
845
+ function pt({
843
846
  subscription: e
844
847
  }) {
845
848
  const { getOnDemandPricingItems: i } = Te(), t = q(), { data: n, execute: s } = Be({ service: i }), o = p(
846
849
  () => {
847
- var r;
848
- return ((r = e.value) == null ? void 0 : r.variant) === "DEFAULT" ? G(e.value.pricing_plan_schedule_infos) : void 0;
850
+ var c;
851
+ return ((c = e.value) == null ? void 0 : c.variant) === "DEFAULT" ? G(e.value.pricing_plan_schedule_infos) : void 0;
849
852
  }
850
- ), l = p(() => {
851
- var r;
852
- return (r = o.value) == null ? void 0 : r.id;
853
+ ), r = p(() => {
854
+ var c;
855
+ return (c = o.value) == null ? void 0 : c.id;
853
856
  });
854
857
  return Y(
855
- l,
856
- (r) => {
857
- r && s({ scheduleId: r }).catch(
858
+ r,
859
+ (c) => {
860
+ c && s({ scheduleId: c }).catch(
858
861
  (b) => t.error(
859
862
  "ON_DEMAND_ITEMS_LOAD_FAILED",
860
863
  "Failed to load the on-demand items of the subscription",
861
- { scheduleId: r },
864
+ { scheduleId: c },
862
865
  b
863
866
  )
864
867
  );
@@ -866,19 +869,20 @@ function ut({
866
869
  { immediate: !0 }
867
870
  ), { items: p(
868
871
  () => {
869
- var r, b;
870
- return l.value && ((r = n.value) == null ? void 0 : r.pricing_plan_schedule_id) === l.value ? dt(n.value, {
872
+ var c, b;
873
+ return r.value && ((c = n.value) == null ? void 0 : c.pricing_plan_schedule_id) === r.value ? ut(n.value, {
871
874
  pricingPlanVersions: (b = e.value) == null ? void 0 : b.pricing_plan_schedule_infos.map(
872
875
  (C) => C.pricing_plan_version
873
876
  )
874
877
  }) : [];
875
878
  }
876
- ), scheduleId: l };
879
+ ), scheduleId: r };
877
880
  }
878
- const pt = /* @__PURE__ */ F({
881
+ const mt = /* @__PURE__ */ F({
879
882
  __name: "SubscriptionDetails.entry.view",
880
883
  props: {
881
884
  configuration: { type: Object },
885
+ portalToken: { type: Object },
882
886
  environment: { type: String },
883
887
  locale: { type: String },
884
888
  dateLocale: { type: String },
@@ -899,48 +903,48 @@ const pt = /* @__PURE__ */ F({
899
903
  subscription: n,
900
904
  get: s,
901
905
  error: o
902
- } = Ie({ subscriptionId: i.configuration.subscriptionId }), l = q(), d = p(() => n.value ? null : o.value), r = () => s().catch((M) => {
903
- l.error(
906
+ } = Ce({ subscriptionId: i.configuration.subscriptionId }), r = q(), d = p(() => n.value ? null : o.value), c = () => s().catch((M) => {
907
+ r.error(
904
908
  "SUBSCRIPTION_LOAD_FAILED",
905
909
  "Failed to reload the subscription after it changed",
906
910
  {},
907
911
  M
908
912
  );
909
- }), { customer: b, get: C } = Le({ customerId: t }), { items: O, fetchAll: $ } = ke({ customerId: t }), {
913
+ }), { customer: b, get: C } = Ee({ customerId: t }), { items: k, fetchAll: O } = Le({ customerId: t }), {
910
914
  walletBalances: T,
911
915
  apiStatus: B,
912
916
  fetch: I
913
- } = fe({ customerId: t }), { isLoading: E } = xe(
917
+ } = fe({ customerId: t }), { isLoading: A } = xe(
914
918
  s(),
915
919
  C.execute(),
916
- $(),
920
+ O(),
917
921
  I()
918
- ), { items: L, scheduleId: k } = ut({
922
+ ), { items: E, scheduleId: L } = pt({
919
923
  subscription: n
920
924
  }), w = p(
921
- () => n.value ? Me(n.value) : []
925
+ () => n.value ? Ie(n.value) : []
922
926
  ), x = p(() => {
923
927
  var M;
924
928
  return ((M = T.value) == null ? void 0 : M.wallet_balances) ?? [];
925
- }), U = p(() => B.value === Oe.Failed);
929
+ }), U = p(() => B.value === ke.Failed);
926
930
  return (M, f) => se(M.$slots, "default", {
927
931
  subscription: a(n),
928
932
  schedulesData: w.value,
929
933
  customer: a(b),
930
- paymentMethods: a(O),
934
+ paymentMethods: a(k),
931
935
  walletBalances: x.value,
932
- onDemandItems: a(L),
933
- onDemandScheduleId: a(k),
936
+ onDemandItems: a(E),
937
+ onDemandScheduleId: a(L),
934
938
  hasWalletBalancesError: U.value,
935
- isLoading: a(E),
939
+ isLoading: a(A),
936
940
  error: d.value,
937
941
  refreshWalletBalances: a(I),
938
- refreshPaymentMethods: a($),
939
- refreshSubscription: r
942
+ refreshPaymentMethods: a(O),
943
+ refreshSubscription: c
940
944
  });
941
945
  }
942
946
  });
943
- function mt({
947
+ function gt({
944
948
  invoice: e,
945
949
  configuration: i
946
950
  }) {
@@ -950,10 +954,11 @@ function mt({
950
954
  paymentStatus: e.payment_status
951
955
  });
952
956
  }
953
- const gt = /* @__PURE__ */ F({
957
+ const bt = /* @__PURE__ */ F({
954
958
  __name: "SubscriptionDetails.entry",
955
959
  props: {
956
960
  configuration: { type: Object },
961
+ portalToken: { type: Object },
957
962
  environment: { type: String },
958
963
  locale: { type: String },
959
964
  dateLocale: { type: String },
@@ -970,54 +975,54 @@ const gt = /* @__PURE__ */ F({
970
975
  branding: { type: Object }
971
976
  },
972
977
  setup(e) {
973
- const i = ce("subscription-details"), t = e;
978
+ const i = le("subscription-details"), t = e;
974
979
  return (n, s) => {
975
980
  var o;
976
- return c(), g(a(le), {
981
+ return l(), g(a(ce), {
977
982
  entry: n.$props,
978
983
  "component-name": a(i),
979
984
  "allowed-portal-types": ["CUSTOMER"],
980
985
  "required-configuration": { subscriptionId: (o = e.configuration) == null ? void 0 : o.subscriptionId },
981
- onError: s[1] || (s[1] = (l) => n.$emit("error", l))
986
+ onError: s[1] || (s[1] = (r) => n.$emit("error", r))
982
987
  }, {
983
988
  default: u(() => [
984
- (c(), g(pt, oe({
989
+ (l(), g(mt, oe({
985
990
  key: e.configuration.subscriptionId
986
991
  }, n.$props), {
987
992
  default: u(({
988
- subscription: l,
993
+ subscription: r,
989
994
  schedulesData: d,
990
- customer: r,
995
+ customer: c,
991
996
  paymentMethods: b,
992
997
  walletBalances: C,
993
- onDemandItems: O,
994
- onDemandScheduleId: $,
998
+ onDemandItems: k,
999
+ onDemandScheduleId: O,
995
1000
  hasWalletBalancesError: T,
996
1001
  isLoading: B,
997
1002
  error: I,
998
- refreshWalletBalances: E,
999
- refreshPaymentMethods: L,
1000
- refreshSubscription: k
1003
+ refreshWalletBalances: A,
1004
+ refreshPaymentMethods: E,
1005
+ refreshSubscription: L
1001
1006
  }) => [
1002
- S(nt, {
1003
- subscription: l,
1007
+ S(at, {
1008
+ subscription: r,
1004
1009
  "schedules-data": d,
1005
- customer: r,
1010
+ customer: c,
1006
1011
  avatar: e.configuration.avatar,
1007
1012
  "can-view-created-invoice": e.configuration.canViewCreatedInvoice,
1008
1013
  "payment-methods": b,
1009
1014
  "wallet-balances": C,
1010
- "on-demand-items": O,
1011
- "on-demand-schedule-id": $,
1015
+ "on-demand-items": k,
1016
+ "on-demand-schedule-id": O,
1012
1017
  "has-wallet-balances-error": T,
1013
1018
  "is-loading": B,
1014
1019
  error: I,
1015
- onTopUpCharged: E,
1016
- onAutoTopUpSaved: E,
1017
- onAutoTopUpCancelled: E,
1018
- onPaymentMethodStored: L,
1019
- onSubscriptionChanged: k,
1020
- onInvoiceCreated: s[0] || (s[0] = (w) => a(mt)({ invoice: w, configuration: t.configuration }))
1020
+ onTopUpCharged: A,
1021
+ onAutoTopUpSaved: A,
1022
+ onAutoTopUpCancelled: A,
1023
+ onPaymentMethodStored: E,
1024
+ onSubscriptionChanged: L,
1025
+ onInvoiceCreated: s[0] || (s[0] = (w) => a(gt)({ invoice: w, configuration: t.configuration }))
1021
1026
  }, null, 8, ["subscription", "schedules-data", "customer", "avatar", "can-view-created-invoice", "payment-methods", "wallet-balances", "on-demand-items", "on-demand-schedule-id", "has-wallet-balances-error", "is-loading", "error", "onTopUpCharged", "onAutoTopUpSaved", "onAutoTopUpCancelled", "onPaymentMethodStored", "onSubscriptionChanged"])
1022
1027
  ]),
1023
1028
  _: 1
@@ -1027,14 +1032,14 @@ const gt = /* @__PURE__ */ F({
1027
1032
  }, 8, ["entry", "component-name", "required-configuration"]);
1028
1033
  };
1029
1034
  }
1030
- }), { define: Xt } = de(
1031
- gt,
1035
+ }), { define: Kt } = de(
1036
+ bt,
1032
1037
  "subscription-details"
1033
1038
  );
1034
1039
  export {
1035
- Xt as d,
1036
- Yt as g,
1037
- st as i,
1038
- zt as t,
1039
- Ne as u
1040
+ Kt as d,
1041
+ Gt as g,
1042
+ ot as i,
1043
+ Ht as t,
1044
+ Fe as u
1040
1045
  };