@solvimon/solvimon-web 0.1.0-alpha.27 → 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 (500) hide show
  1. package/README.md +151 -17
  2. package/dist/{Alert.vue.es-lIiAWf2S.mjs → Alert.vue.es-CNrEaLvh.mjs} +58 -46
  3. package/dist/ApiStatus-CSFKl_ra.mjs +9 -0
  4. package/dist/AuthProvider.handle-DKfNs8rr.mjs +50 -0
  5. package/dist/{Avatar.vue.es-sfMZiX7A.mjs → Avatar.vue.es-r0NbcIib.mjs} +1 -1
  6. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-DmY3a-Wi.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-Cp4yGqaw.mjs} +18 -19
  7. package/dist/{Button.vue.es-Cmjfm4jw.mjs → Button.vue.es-Zw--kuaU.mjs} +4 -4
  8. package/dist/{ChargeOnDemandModal-CB4mrvkU.mjs → ChargeOnDemandModal-B8FDkS9U.mjs} +240 -251
  9. package/dist/Checkout.entry.ce-DsGl-5aR.mjs +4202 -0
  10. package/dist/CheckoutAddressFields.vue_vue_type_script_setup_true_lang-2D8VM_7W.mjs +828 -0
  11. package/dist/{Chip.vue.es-DksjbJO8.mjs → Chip.vue.es-D3UDSyXC.mjs} +35 -21
  12. package/dist/Comparators.vue.es-DQBI3f7m.mjs +103 -0
  13. package/dist/ContentWithAsideLayout-Bnbsq8_5.mjs +32 -0
  14. package/dist/{ContextMenu.vue.es-zRvoEJlV.mjs → ContextMenu.vue.es-B9mFpUQK.mjs} +87 -88
  15. package/dist/{CustomerBillingInformation.vue.es-DhFbpZPK.mjs → CustomerBillingInformation.vue.es-B8NiQaJs.mjs} +3 -3
  16. package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-B41la-T7.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-DBivC5Eb.mjs} +27 -30
  17. package/dist/CustomerShippingAddresses-Bj8Y17O8.mjs +397 -0
  18. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BmPKfIjT.mjs +2927 -0
  19. package/dist/{DividerText.vue.es-nAo1eRMV.mjs → DividerText.vue.es-CNbgif-3.mjs} +1 -1
  20. package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CVP-7ne3.mjs +55 -0
  21. package/dist/{ErrorNotification.vue.es-h-D37rfG.mjs → ErrorNotification.vue.es-DNd65mQq.mjs} +2 -2
  22. package/dist/FormMessage.vue.es-Cjv358Ab.mjs +39 -0
  23. package/dist/{IconButton.vue.es-DvfErUOq.mjs → IconButton.vue.es-C8lYFx5_.mjs} +2 -2
  24. package/dist/{IconTitle.vue.es-B_8bS0tn.mjs → IconTitle.vue.es-O2kcqgKm.mjs} +3 -3
  25. package/dist/Input.vue.es-D8Oj8MWv.mjs +250 -0
  26. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-gpMtYNzn.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-rhqYVdfV.mjs} +14 -13
  27. package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-06R-M8Q3.mjs +56 -0
  28. package/dist/InvoicePreview.vue.es-4Q2hzaFS.mjs +286 -0
  29. package/dist/InvoicePricingClauseChip.vue.es-DKU0xu0t.mjs +124 -0
  30. package/dist/Label.vue.es-DtpLM1KH.mjs +113 -0
  31. package/dist/{Modal.vue.es-BeI5C9-9.mjs → Modal.vue.es-C8ZcO117.mjs} +109 -103
  32. package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-3DQLCR3U.mjs +441 -0
  33. package/dist/PaymentCompletedCard.vue_vue_type_script_setup_true_lang-DfTb9psX.mjs +48 -0
  34. package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-DqHcOnZp.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-BoGTtg5G.mjs} +70 -113
  35. package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DlqoWKQq.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BIAm22Kq.mjs} +3 -3
  36. package/dist/{PaymentHistoryBlock-mCqdFjnL.mjs → PaymentHistoryBlock-BvY2nXGV.mjs} +1 -1
  37. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DxaY3eFN.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-bQKhUonq.mjs} +24 -24
  38. package/dist/{PaymentIntegrationForm-DVx4DEtD.mjs → PaymentIntegrationForm-CcfQSzKM.mjs} +1 -1
  39. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CvzcLJVq.mjs +181 -0
  40. package/dist/{PaymentIntegrationFormAdyen-Yr8p5Fly.mjs → PaymentIntegrationFormAdyen-DqgDfO6K.mjs} +422 -311
  41. package/dist/PaymentIntegrationFormStripe-BYdAkvLt.mjs +757 -0
  42. package/dist/{PaymentMethod.vue.es-4YRmQZHX.mjs → PaymentMethod.vue.es-b0p3a0L-.mjs} +7 -7
  43. package/dist/{PaymentMethodForm-Dnj_7mJU.mjs → PaymentMethodForm-BsTrTwCg.mjs} +1 -1
  44. package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-DsD3UjkC.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-sUOmLORl.mjs} +57 -65
  45. package/dist/PaymentMethodSelector.vue_vue_type_script_setup_true_lang-DsnAhR79.mjs +169 -0
  46. package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-CjECKNi_.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-CSW4LfmH.mjs} +13 -8
  47. package/dist/PlanCustomizationEditor-D29N4HUM.mjs +711 -0
  48. package/dist/PortalLinkUnverified-B_EE2wTJ.mjs +52 -0
  49. package/dist/PortalNotAvailable-DPE9y37H.mjs +25 -0
  50. package/dist/{PricingGroupRangeInput.vue.es-BhNcjD7z.mjs → PricingGroupRangeInput.vue.es-tIMXIhpZ.mjs} +14 -13
  51. package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CmJITenR.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DqxWxSQe.mjs} +48 -48
  52. package/dist/RadioGroupExtended.vue.es-3nDXqIGi.mjs +176 -0
  53. package/dist/{Section.vue.es-DVEpre9O.mjs → Section.vue.es-CvX9tg2f.mjs} +1 -1
  54. package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Cl7I1Apo.mjs +60 -0
  55. package/dist/ShippingAddressesModal-C4p1IXXk.mjs +418 -0
  56. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-D7MFjvrP.mjs +32 -0
  57. package/dist/{StepInput.vue.es-o-3Lg4Ai.mjs → StepInput.vue.es-DweyzpkL.mjs} +5 -4
  58. package/dist/{SubscriptionDetails.entry.ce-CGl6Z5ql.mjs → SubscriptionDetails.entry.ce-D5SwM0YS.mjs} +448 -460
  59. package/dist/{SubscriptionSchedules-DuWZmnD2.mjs → SubscriptionSchedules-BZqlpAtk.mjs} +1 -1
  60. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-BH7DdOWK.mjs +5185 -0
  61. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-DoJxiqVB.mjs +203 -0
  62. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-BsdevoeT.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BbjdBHSQ.mjs} +126 -90
  63. package/dist/TooltipParagraph.vue.es-Dw0ndjle.mjs +132 -0
  64. package/dist/TranslationOverride.vue_vue_type_script_setup_true_lang-BhjZVMSx.mjs +31 -0
  65. package/dist/{TrialChip.vue.es-Dmv3lPiQ.mjs → TrialChip.vue.es-DOopmaXA.mjs} +2 -2
  66. package/dist/addressFormats.data-dzBx49dw.mjs +278 -0
  67. package/dist/amount-CondixVt.mjs +36 -0
  68. package/dist/{api.es-QaC926Xu.mjs → api.es-qgvzNMU-.mjs} +2 -2
  69. package/dist/{cn.es-Cvt6TIwv.mjs → cn.es-B8acFrov.mjs} +385 -477
  70. package/dist/{comparators.es-D8WGL-c4.mjs → comparators.es-C8rHpb70.mjs} +17 -13
  71. package/dist/components/BillingInformation/BillingInformation.mjs +11 -10
  72. package/dist/components/BillingInformationForm/BillingInformationForm.mjs +397 -350
  73. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +20 -19
  74. package/dist/components/Invoice/Invoice.mjs +2691 -227
  75. package/dist/components/InvoiceDetails/InvoiceDetails.mjs +66 -62
  76. package/dist/components/InvoiceHeader/InvoiceHeader.mjs +40 -40
  77. package/dist/components/InvoicesList/InvoicesList.mjs +20 -18
  78. package/dist/components/PaymentHistory/PaymentHistory.mjs +72 -64
  79. package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +33 -31
  80. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +49 -45
  81. package/dist/components/SubscriptionsList/SubscriptionsList.mjs +47 -31
  82. package/dist/components/WalletBalances/WalletBalances.mjs +22 -21
  83. package/dist/core/index.mjs +61 -95
  84. package/dist/customElements-BTj4ii4f.mjs +5072 -0
  85. package/dist/customer-BIjC0CWJ.mjs +31 -0
  86. package/dist/customer.es-DQKl6wFt.mjs +24 -0
  87. package/dist/{de-DE-DKp5LCu0.mjs → de-DE-DBbERiFr.mjs} +110 -18
  88. package/dist/{de-DE-jkW2dJrX.mjs → de-DE-UJ6X6jXu.mjs} +16 -10
  89. package/dist/floating-ui.vue.es-BvAf8-si.mjs +1003 -0
  90. package/dist/formControl-BZQLHnOO.mjs +749 -0
  91. package/dist/fr-FR-Cvvbkwlj.mjs +307 -0
  92. package/dist/fr-FR-IWJE-urI.mjs +431 -0
  93. package/dist/icon-sprite.svg.es-BWBB8SGw.mjs +4 -0
  94. package/dist/{index.es-CXkP_k3u.mjs → index.es-C7J3WGGo.mjs} +4 -4
  95. package/dist/index.es-CpmQmvOg.mjs +633 -0
  96. package/dist/index.mjs +2 -2
  97. package/dist/invoiceState-BJVHaKs7.mjs +14 -0
  98. package/dist/{invoices-3520M5AN.mjs → invoices-e1sKLgxg.mjs} +40 -35
  99. package/dist/{it-IT-BgFVsO5S.mjs → it-IT-B7ui2oxO.mjs} +110 -18
  100. package/dist/{it-IT-CaaFToGB.mjs → it-IT-DnJP5URH.mjs} +9 -3
  101. package/dist/{nl-NL-UiRWbO9S.mjs → nl-NL-Bafh2xoT.mjs} +116 -24
  102. package/dist/{nl-NL-D0MQKaql.mjs → nl-NL-q9xfTZF0.mjs} +12 -6
  103. package/dist/paymentMethods-B_82JGk_.mjs +77 -0
  104. package/dist/paymentMethods-Nfv9HdkS.mjs +61 -0
  105. package/dist/paymentOutcome-BXEU5-84.mjs +67 -0
  106. package/dist/payments-BnxbzQUC.mjs +68 -0
  107. package/dist/{pricing-BIMpDI_p.mjs → pricing-BOhvWWMj.mjs} +3 -3
  108. package/dist/pricingItemConfigs.es-D3pX_9AJ.mjs +78 -0
  109. package/dist/pricingPlanScheduleOverrides-Dxv5FOBd.mjs +233 -0
  110. package/dist/pricingPlanSchedules-Dv7ZCgNp.mjs +38 -0
  111. package/dist/sanitization.es-C6dbuxUJ.mjs +4 -0
  112. package/dist/screens/Checkout/Checkout.mjs +2 -2
  113. package/dist/screens/CustomerOverview/CustomerOverview.mjs +146 -94
  114. package/dist/screens/PayInvoice/PayInvoice.mjs +603 -278
  115. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +102 -88
  116. package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +2 -2
  117. package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +371 -347
  118. package/dist/sessionReference-B8Dbmx5t.mjs +38 -0
  119. package/dist/sorting.es-CVyKw23D.mjs +77 -0
  120. package/dist/subscription-BhxoqwcT.mjs +83 -0
  121. package/dist/subscriptions-BWXZGK0E.mjs +66 -0
  122. package/dist/taxId.es-DkD3Ltr8.mjs +243 -0
  123. package/dist/types/components/InvoiceTable/InvoiceTable.types.d.ts +2 -0
  124. package/dist/types/components/checkout/PromotionCodeSection.types.d.ts +2 -0
  125. package/dist/types/components/customer/CheckoutForm/CheckoutAddressFields.types.d.ts +22 -0
  126. package/dist/types/components/customer/CheckoutForm/CheckoutForm.types.d.ts +15 -0
  127. package/dist/types/components/customer/CustomerPaymentMethodsBlock/CustomerPaymentMethodsBlock.types.d.ts +0 -2
  128. package/dist/types/components/customer/ShippingAddressForm/ShippingAddressForm.types.d.ts +9 -0
  129. package/dist/types/components/customer/ShippingAddresses/ShippingAddressCard.types.d.ts +11 -0
  130. package/dist/types/components/customer/ShippingAddresses/ShippingAddressList.types.d.ts +9 -0
  131. package/dist/types/components/customer/ShippingAddresses/ShippingAddressesModal.types.d.ts +26 -0
  132. package/dist/types/components/invoices/InvoiceOrderSummary/InvoiceOrderSummary.types.d.ts +5 -0
  133. package/dist/types/components/payments/OnDemandPaymentModalShell/OnDemandPaymentModalShell.types.d.ts +0 -1
  134. package/dist/types/components/payments/PayButton/PayButton.types.d.ts +2 -0
  135. package/dist/types/components/payments/PaymentCompletedCard/PaymentCompletedCard.types.d.ts +0 -2
  136. package/dist/types/components/payments/PaymentErrorCard/PaymentErrorCard.types.d.ts +9 -2
  137. package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +47 -4
  138. package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripeFrame.types.d.ts +11 -1
  139. package/dist/types/components/payments/PaymentMethodSelector/PaymentMethodSelector.types.d.ts +0 -4
  140. package/dist/types/components/providers/AuthProvider/AuthProvider.handle.d.ts +17 -0
  141. package/dist/types/components/providers/AuthProvider/AuthProvider.lib.d.ts +30 -3
  142. package/dist/types/components/providers/AuthProvider/AuthProvider.types.d.ts +12 -0
  143. package/dist/types/components/providers/AuthProvider/AuthProvider.vue.d.ts +3 -1
  144. package/dist/types/components/providers/AuthProvider/composables/useAuth.d.ts +1 -3
  145. package/dist/types/components/providers/ConfigProvider/ConfigProvider.lib.d.ts +2 -4
  146. package/dist/types/components/providers/CssOverridesProvider/CssOverridesProvider.lib.d.ts +11 -0
  147. package/dist/types/components/providers/EntryProvider/EntryProvider.lib.d.ts +7 -0
  148. package/dist/types/components/providers/EntryProvider/EntryProvider.types.d.ts +2 -0
  149. package/dist/types/components/providers/EntryProvider/EntryProvider.vue.d.ts +3 -1
  150. package/dist/types/components/providers/ErrorBoundary/ErrorBoundary.vue.d.ts +5 -1
  151. package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.lib.d.ts +2 -2
  152. package/dist/types/components/providers/HostElementProvider/HostElementProvider.lib.d.ts +6 -1
  153. package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +2 -2
  154. package/dist/types/components/providers/LoggerProvider/LoggerProvider.vue.d.ts +5 -1
  155. package/dist/types/components/providers/PortalProvider/PortalProvider.lib.d.ts +10 -7
  156. package/dist/types/components/providers/PortalProvider/PortalProvider.types.d.ts +1 -1
  157. package/dist/types/components/providers/PortalProvider/PortalProvider.vue.d.ts +3 -1
  158. package/dist/types/components/providers/PortalProvider/composables/usePortal.d.ts +2 -2
  159. package/dist/types/components/providers/Provider/Provider.types.d.ts +2 -2
  160. package/dist/types/components/providers/Provider/Provider.vue.d.ts +13 -4
  161. package/dist/types/components/providers/RequiredPropertiesGuard/RequiredPropertiesGuard.vue.d.ts +17 -0
  162. package/dist/types/components/providers/TranslationProvider/TranslationProvider.lib.d.ts +7 -2
  163. package/dist/types/components/providers/TranslationProvider/TranslationProvider.types.d.ts +1 -1
  164. package/dist/types/components/subscriptions/ChargeOnDemandModal/ChargeOnDemandModal.types.d.ts +1 -2
  165. package/dist/types/components/subscriptions/EnabledPricingsList/EnabledPricingsListItem.types.d.ts +2 -0
  166. package/dist/types/components/subscriptions/OrderSummary.types.d.ts +1 -10
  167. package/dist/types/components/subscriptions/OrderSummaryInvoice.types.d.ts +16 -0
  168. package/dist/types/components/subscriptions/SubscriptionCancellationModal/SubscriptionCancellationModal.types.d.ts +5 -1
  169. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +10 -16
  170. package/dist/types/components/subscriptions/SubscriptionSummary.types.d.ts +1 -14
  171. package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsList.types.d.ts +4 -1
  172. package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsListItem.types.d.ts +1 -2
  173. package/dist/types/components/wallets/AutoTopUpConfig/AutoTopUpConfig.types.d.ts +0 -3
  174. package/dist/types/components/wallets/TopUpModal/TopUpModalForm.types.d.ts +3 -1
  175. package/dist/types/components/wallets/TopUpModal/TopUpModalSuccess.types.d.ts +1 -7
  176. package/dist/types/public/components/BillingInformation/BillingInformation.entry.ce.d.ts +1 -1
  177. package/dist/types/public/components/BillingInformation/BillingInformation.types.d.ts +0 -3
  178. package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.ce.d.ts +1 -1
  179. package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.entry.ce.d.ts +1 -1
  180. package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.types.d.ts +0 -1
  181. package/dist/types/public/components/CustomerShippingAddresses/CustomerShippingAddresses.types.d.ts +12 -0
  182. package/dist/types/public/components/Invoice/Invoice.entry.ce.d.ts +1 -1
  183. package/dist/types/public/components/Invoice/Invoice.types.d.ts +0 -1
  184. package/dist/types/public/components/InvoiceDetails/InvoiceDetails.entry.ce.d.ts +1 -1
  185. package/dist/types/public/components/InvoiceDetails/InvoiceDetails.entry.types.d.ts +3 -2
  186. package/dist/types/public/components/InvoiceDetails/InvoiceDetails.types.d.ts +0 -2
  187. package/dist/types/public/components/InvoiceHeader/InvoiceHeader.entry.ce.d.ts +1 -1
  188. package/dist/types/public/components/InvoiceHeader/InvoiceHeader.types.d.ts +0 -1
  189. package/dist/types/public/components/InvoicesList/InvoicesList.entry.ce.d.ts +1 -1
  190. package/dist/types/public/components/InvoicesList/InvoicesList.types.d.ts +2 -0
  191. package/dist/types/public/components/PaymentHistory/PaymentHistory.entry.ce.d.ts +1 -1
  192. package/dist/types/public/components/PaymentHistory/PaymentHistory.entry.types.d.ts +3 -2
  193. package/dist/types/public/components/PaymentHistory/PaymentHistory.types.d.ts +0 -2
  194. package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.ce.d.ts +1 -1
  195. package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.entry.ce.d.ts +1 -1
  196. package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.entry.types.d.ts +3 -2
  197. package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.types.d.ts +0 -2
  198. package/dist/types/public/components/SubscriptionsList/SubscriptionsList.entry.ce.d.ts +1 -1
  199. package/dist/types/public/components/SubscriptionsList/SubscriptionsList.types.d.ts +3 -0
  200. package/dist/types/public/components/WalletBalances/WalletBalances.entry.ce.d.ts +1 -1
  201. package/dist/types/public/components/WalletBalances/WalletBalances.entry.types.d.ts +1 -3
  202. package/dist/types/public/core/action-request.types.d.ts +5 -0
  203. package/dist/types/public/core/registry.ce.d.ts +3 -3
  204. package/dist/types/public/core/registry.d.ts +0 -3
  205. package/dist/types/public/core/types.d.ts +5 -0
  206. package/dist/types/public/screens/Checkout/Checkout.entry.ce.d.ts +1 -1
  207. package/dist/types/public/screens/Checkout/Checkout.entry.types.d.ts +0 -7
  208. package/dist/types/public/screens/Checkout/Checkout.types.d.ts +2 -2
  209. package/dist/types/public/screens/CustomerOverview/CustomerOverview.entry.ce.d.ts +1 -1
  210. package/dist/types/public/screens/PayInvoice/PayInvoice.entry.ce.d.ts +1 -1
  211. package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +5 -1
  212. package/dist/types/public/screens/PaymentMethodsManagement/PaymentMethodsManagement.entry.ce.d.ts +1 -1
  213. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.entry.ce.d.ts +1 -1
  214. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.types.d.ts +1 -2
  215. package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.entry.ce.d.ts +1 -1
  216. package/dist/types/services/paymentMethods.types.d.ts +2 -10
  217. package/dist/types/services/requests.types.d.ts +16 -6
  218. package/dist/types/translations/supported.d.ts +1 -1
  219. package/dist/types/types/errors.d.ts +3 -2
  220. package/dist/types/types/portalAuthentication.d.ts +2 -0
  221. package/dist/types/types/portalToken.d.ts +9 -0
  222. package/dist/types/types/shippingAddress.d.ts +9 -0
  223. package/dist/types/vendor/@adyen/adyen-web/index.d.ts +2 -0
  224. package/dist/types/vendor/@solvimon/solvimon-types/index.d.ts +2 -0
  225. package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalPolicies.d.ts +1 -1
  226. package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalRequests.d.ts +27 -6
  227. package/dist/types/vendor/@solvimon/solvimon-types/types/ConfigMeterProperties.d.ts +3 -0
  228. package/dist/types/vendor/@solvimon/solvimon-types/types/Entitlement.d.ts +6 -0
  229. package/dist/types/vendor/@solvimon/solvimon-types/types/Integrations.d.ts +9 -1
  230. package/dist/types/vendor/@solvimon/solvimon-types/types/Invoice.d.ts +16 -1
  231. package/dist/types/vendor/@solvimon/solvimon-types/types/JWT.d.ts +10 -0
  232. package/dist/types/vendor/@solvimon/solvimon-types/types/MeterPropertyVariable.d.ts +16 -0
  233. package/dist/types/vendor/@solvimon/solvimon-types/types/Payment.d.ts +1 -1
  234. package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentAcceptor.d.ts +6 -0
  235. package/dist/types/vendor/@solvimon/solvimon-types/types/Permission.d.ts +1 -1
  236. package/dist/types/vendor/@solvimon/solvimon-types/types/Platform.d.ts +12 -3
  237. package/dist/types/vendor/@solvimon/solvimon-types/types/Portal.d.ts +71 -0
  238. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSubscription.d.ts +14 -0
  239. package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteTemplates.d.ts +1 -0
  240. package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteVersions.d.ts +35 -0
  241. package/dist/types/vendor/@solvimon/solvimon-types/types/Quotes.d.ts +16 -0
  242. package/dist/types/vendor/@solvimon/solvimon-types/types/ShippingAddress.d.ts +54 -0
  243. package/dist/types/vendor/@solvimon/solvimon-types/utils.d.ts +1 -1
  244. package/dist/types/vendor/@solvimon/solvimon-ui/components/providers/BrandProvider/BrandProvider.types.d.ts +16 -0
  245. package/dist/types/vendor/@solvimon/solvimon-ui/components/providers/IntlProvider/IntlProvider.types.d.ts +66 -0
  246. package/dist/types/vendor/@solvimon/solvimon-ui/index.d.ts +2 -0
  247. package/dist/useActionDispatchProvider-3W2vEyIg.mjs +9 -0
  248. package/dist/{useCustomer-B-jyJIVy.mjs → useCustomer-cObBvDOu.mjs} +2 -2
  249. package/dist/useCustomerFormLabels-DJWf2O17.mjs +1173 -0
  250. package/dist/useIncrementalLoading-CATuO36d.mjs +60 -0
  251. package/dist/useInvoiceData-DD44HTl7.mjs +21 -0
  252. package/dist/useInvoicesList-CpB-41MQ.mjs +674 -0
  253. package/dist/useLazyFloating.es-CycqRyeb.mjs +68 -0
  254. package/dist/useLoadInitialData-qzdnBoui.mjs +15 -0
  255. package/dist/usePaymentFormHold-ByUZi3A-.mjs +181 -0
  256. package/dist/{usePaymentMethodAvailability-DAcsKGeh.mjs → usePaymentMethodAvailability-DUdrs0Ji.mjs} +8 -8
  257. package/dist/usePaymentMethods-ByaKF7mf.mjs +21 -0
  258. package/dist/{usePayments-Cr6NlGaW.mjs → usePayments-BXABv-lF.mjs} +9 -9
  259. package/dist/usePortal-CwR_FxTb.mjs +7 -0
  260. package/dist/useService-BZcbUZHI.mjs +56 -0
  261. package/dist/{useTimePeriod.es-DWLsLFqs.mjs → useTimePeriod.es-BpdiVwg8.mjs} +1 -1
  262. package/dist/useViewport-psZejz_H.mjs +19 -0
  263. package/package.json +33 -60
  264. package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-081H9T3X.js +0 -1
  265. package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DNepCMRp.mjs +0 -223
  266. package/dist/Alert.vue.es-RyK53a2P.js +0 -1
  267. package/dist/Amount.vue.es-DExaYBqm.js +0 -1
  268. package/dist/Avatar.vue.es-BJxSCU76.js +0 -1
  269. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-BV5iEOxn.js +0 -1
  270. package/dist/Button.vue.es-BzkuglKw.js +0 -1
  271. package/dist/ChargeOnDemandModal-b17YswWA.js +0 -1
  272. package/dist/Checkout.entry.ce-HlUrJ1kh.js +0 -2
  273. package/dist/Checkout.entry.ce-X2zGo6hG.mjs +0 -4381
  274. package/dist/Chip.vue.es-B2jjzIOc.js +0 -1
  275. package/dist/Comparators.vue.es-CwhX3rbx.mjs +0 -93
  276. package/dist/Comparators.vue.es-DmkxV0gb.js +0 -1
  277. package/dist/ContentWithAsideLayout-BCM8tmZN.mjs +0 -38
  278. package/dist/ContentWithAsideLayout-RSdKXqAf.js +0 -1
  279. package/dist/ContextMenu.vue.es-DUU43tCy.js +0 -1
  280. package/dist/CustomerBillingInformation.vue.es-BfPEB42w.js +0 -1
  281. package/dist/CustomerPaymentMethods.lib-BKgQTCtc.js +0 -1
  282. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BISD6n8X.js +0 -1
  283. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DssxYPSA.mjs +0 -2688
  284. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-XufY6bdV.js +0 -1
  285. package/dist/Divider.vue.es-UwnWvUTl.js +0 -1
  286. package/dist/DividerText.vue.es-CoyDk9eH.js +0 -1
  287. package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CQ0KrXHJ.js +0 -1
  288. package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-QW9NdxyZ.mjs +0 -335
  289. package/dist/ErrorNotification.vue.es-tS9vySUZ.js +0 -1
  290. package/dist/Expand.vue.es-BtM0EZEr.js +0 -1
  291. package/dist/FormMessage.vue.es-dqATjC2N.js +0 -1
  292. package/dist/FormMessage.vue.es-jG3fQZms.mjs +0 -29
  293. package/dist/IconButton.vue.es-DgQN18Am.js +0 -1
  294. package/dist/IconTitle.vue.es-Dn2xcPHj.js +0 -1
  295. package/dist/Input.vue.es-B60eK8Ds.js +0 -1
  296. package/dist/Input.vue.es-CU9u5yKH.mjs +0 -235
  297. package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Dqdezse7.js +0 -1
  298. package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-Cl6HU243.js +0 -1
  299. package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-DNqawlYV.mjs +0 -41
  300. package/dist/InvoiceSummary.vue.es-CAmA8g0t.js +0 -1
  301. package/dist/InvoiceSummary.vue.es-CRiFJ5x-.mjs +0 -2596
  302. package/dist/Modal.vue.es-DvLB3uCG.js +0 -1
  303. package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-Dg4rn1cm.js +0 -1
  304. package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-B9R5JRJv.js +0 -1
  305. package/dist/PaymentHistoryBlock-Uw8xeKUk.js +0 -1
  306. package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-ALI5f0py.js +0 -1
  307. package/dist/PaymentIntegrationForm-Cx0zCf_C.js +0 -1
  308. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-B-viSd_i.js +0 -1
  309. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CCKCXXZX.mjs +0 -154
  310. package/dist/PaymentIntegrationFormAdyen-B-v-4nlj.js +0 -98
  311. package/dist/PaymentIntegrationFormStripe-CoLmAzas.js +0 -102
  312. package/dist/PaymentIntegrationFormStripe-Ds0BXt89.mjs +0 -587
  313. package/dist/PaymentMethod.vue.es-D0D9jW8s.js +0 -1
  314. package/dist/PaymentMethodForm-CMP5FLRO.js +0 -1
  315. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-nxnGyJmE.js +0 -1
  316. package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-CIrrQUS6.js +0 -1
  317. package/dist/PlanCustomizationEditor-DS1r2vBO.js +0 -1
  318. package/dist/PlanCustomizationEditor-DlVSCKGN.mjs +0 -722
  319. package/dist/PricingGroupRangeInput.vue.es-VoOTnHjk.js +0 -185
  320. package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-hS6A-KcP.js +0 -1
  321. package/dist/RadioGroupExtended.vue.es-9YzXzZF0.mjs +0 -163
  322. package/dist/RadioGroupExtended.vue.es-DlbURHQN.js +0 -1
  323. package/dist/Section.vue.es-Bbt0RITt.js +0 -1
  324. package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Dl7MbMlk.js +0 -1
  325. package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-xzjqB-v-.mjs +0 -687
  326. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-CJWE7wVi.mjs +0 -41
  327. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-otI7Hz2w.js +0 -1
  328. package/dist/StepInput.vue.es-H-3R4jJq.js +0 -1
  329. package/dist/SubscriptionDetails.entry.ce-CQUO_uXH.js +0 -1
  330. package/dist/SubscriptionSchedules-Dy0fUgx5.js +0 -1
  331. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-C1kTiW-H.mjs +0 -5234
  332. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-Dd_Rr6qn.js +0 -1
  333. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-CYyP4ra9.js +0 -1
  334. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-CsekphtV.mjs +0 -91
  335. package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-B4j8Clbj.js +0 -1
  336. package/dist/TooltipParagraph.vue.es-B9A17aG7.mjs +0 -129
  337. package/dist/TooltipParagraph.vue.es-DvC5Wjaz.js +0 -1
  338. package/dist/TrialChip.vue.es-CLQZ5F0n.js +0 -1
  339. package/dist/accel.svg.es-DFJXdioD.js +0 -1
  340. package/dist/ach.svg.es-BYP873jU.js +0 -1
  341. package/dist/adyen-BJfC7N6f.js +0 -1
  342. package/dist/adyenSdk-BP2XXzeJ.js +0 -1
  343. package/dist/amazon-pay.svg.es-CQWgtowB.js +0 -1
  344. package/dist/amex.svg.es-DKhW4Txt.js +0 -1
  345. package/dist/api.es-duCDtZD9.js +0 -1
  346. package/dist/apple-pay.svg.es-Dyojd0F-.js +0 -1
  347. package/dist/bacs.svg.es-GJpZs1sD.js +0 -1
  348. package/dist/bancontact.svg.es-BQh7nAup.js +0 -1
  349. package/dist/carnet.svg.es-DY04-F2L.js +0 -1
  350. package/dist/cartes-bancaires.svg.es-BleHMlkN.js +0 -1
  351. package/dist/cashapp.svg.es-MwXGYom6.js +0 -1
  352. package/dist/cn.es-C9Yqq4tg.js +0 -1
  353. package/dist/comparators.es-OGt19O9U.js +0 -1
  354. package/dist/components/BillingInformation/BillingInformation.cjs +0 -1
  355. package/dist/components/BillingInformationForm/BillingInformationForm.cjs +0 -1
  356. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs +0 -1
  357. package/dist/components/Invoice/Invoice.cjs +0 -1
  358. package/dist/components/InvoiceDetails/InvoiceDetails.cjs +0 -1
  359. package/dist/components/InvoiceHeader/InvoiceHeader.cjs +0 -1
  360. package/dist/components/InvoicesList/InvoicesList.cjs +0 -1
  361. package/dist/components/PaymentHistory/PaymentHistory.cjs +0 -1
  362. package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs +0 -1
  363. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs +0 -1
  364. package/dist/components/SubscriptionsList/SubscriptionsList.cjs +0 -1
  365. package/dist/components/WalletBalances/WalletBalances.cjs +0 -1
  366. package/dist/configuration-akTS7Wiw.js +0 -1
  367. package/dist/core/index.cjs +0 -1
  368. package/dist/countryData.es-C4jHBzfo.js +0 -1
  369. package/dist/customElements-B58FcXIN.mjs +0 -6633
  370. package/dist/customElements-DUMRMFQ5.js +0 -1215
  371. package/dist/customer-B3LPAhaD.mjs +0 -31
  372. package/dist/customer-CisTPaXj.js +0 -1
  373. package/dist/customer.es-B5ppZf0j.mjs +0 -20
  374. package/dist/customer.es-BButyYo0.js +0 -1
  375. package/dist/dana.svg.es-BDtZLpwd.js +0 -1
  376. package/dist/dankort.svg.es-CksaipXF.js +0 -1
  377. package/dist/de-DE-B4TUdnUf.js +0 -1
  378. package/dist/de-DE-DL74pMLb.js +0 -1
  379. package/dist/diners.svg.es-D6Mu1pqP.js +0 -1
  380. package/dist/discover.svg.es-DgqWCMUM.js +0 -1
  381. package/dist/eftpos.svg.es-Dk2DOT8W.js +0 -1
  382. package/dist/elo.svg.es-C-BzjuRP.js +0 -1
  383. package/dist/en-US-B2XFj-_p.js +0 -1
  384. package/dist/en-US-DQ5vlv9Z.mjs +0 -339
  385. package/dist/en-US-J85TQRI8.js +0 -1
  386. package/dist/en-US-SDhjlY_v.mjs +0 -301
  387. package/dist/eps.svg.es-B_85bP-W.js +0 -1
  388. package/dist/error-BHVZJGwD.mjs +0 -13
  389. package/dist/error-CmduqgVq.js +0 -1
  390. package/dist/floating-ui.vue.es-Bly3DGWm.js +0 -1
  391. package/dist/floating-ui.vue.es-CYt0fSY7.mjs +0 -1108
  392. package/dist/formControl-ODrpUvcA.js +0 -1
  393. package/dist/formControl-dX7l8o3c.mjs +0 -845
  394. package/dist/formatting.es-C72Nsrmh.js +0 -1
  395. package/dist/gcash.svg.es-BKAdhWzv.js +0 -1
  396. package/dist/getComposedString.es-haS4bAj7.js +0 -1
  397. package/dist/getCountryNameByCode.es-Xxc0nZsH.js +0 -1
  398. package/dist/girocard.svg.es-HSOEvDif.js +0 -1
  399. package/dist/go-pay.svg.es-DQjtunZ_.js +0 -1
  400. package/dist/google-pay.svg.es-hzc_EgiJ.js +0 -1
  401. package/dist/hipercard.svg.es-CbCsRY2q.js +0 -1
  402. package/dist/icon-sprite.svg.es-BZIz7-0d.mjs +0 -4
  403. package/dist/icon-sprite.svg.es-Ds6lDf5p.js +0 -1
  404. package/dist/ideal.svg.es-Booz1IML.js +0 -1
  405. package/dist/index-BPZPnOQQ.js +0 -7
  406. package/dist/index.cjs +0 -1
  407. package/dist/index.es-BclokHQX.js +0 -1
  408. package/dist/invoices-CKQBLar2.js +0 -1
  409. package/dist/it-IT-CSYvGmpT.js +0 -1
  410. package/dist/it-IT-CqNK62qe.js +0 -1
  411. package/dist/jcb.svg.es-B3WPB8c2.js +0 -1
  412. package/dist/kakao-pay.svg.es-Cs-lCW74.js +0 -1
  413. package/dist/klarna.svg.es-Cs6XaHD7.js +0 -1
  414. package/dist/maestro.svg.es-BvK4oPg4.js +0 -1
  415. package/dist/mastercard.svg.es-lp4AXyyV.js +0 -1
  416. package/dist/momo.svg.es-C5aLYf_R.js +0 -1
  417. package/dist/nl-NL-CpE4IgwO.js +0 -1
  418. package/dist/nl-NL-Dx-TNXQ1.js +0 -1
  419. package/dist/nyce.svg.es-ArAivAZW.js +0 -1
  420. package/dist/object.es-CdriXMPs.js +0 -1
  421. package/dist/open-banking.svg.es-Q3rRkCvP.js +0 -1
  422. package/dist/paymentFailure-Bh60UhxA.mjs +0 -47
  423. package/dist/paymentFailure-Cki8c5BX.js +0 -1
  424. package/dist/paymentMethods-CWlvwK5V.mjs +0 -77
  425. package/dist/paymentMethods-Cw-i95mM.js +0 -1
  426. package/dist/payments-2qeQdpiW.mjs +0 -45
  427. package/dist/payments-CS7_YcOW.js +0 -1
  428. package/dist/paypal.svg.es-Cjp5sNI3.js +0 -1
  429. package/dist/pricing-BOqG21f9.js +0 -1
  430. package/dist/pricing.es-C07bgEZx.js +0 -1
  431. package/dist/pricingItemConfigs.es-D4aYkYcf.js +0 -1
  432. package/dist/pricingItemConfigs.es-ORxsk_YS.mjs +0 -77
  433. package/dist/pricingPlanSchedule-BM8vsKkV.js +0 -1
  434. package/dist/pricingPlanSchedules-B_sTAIgU.js +0 -1
  435. package/dist/pricingPlanSchedules-ChQCbMfe.mjs +0 -32
  436. package/dist/pulse.svg.es-Dit33E8S.js +0 -1
  437. package/dist/screens/Checkout/Checkout.cjs +0 -1
  438. package/dist/screens/CustomerOverview/CustomerOverview.cjs +0 -1
  439. package/dist/screens/PayInvoice/PayInvoice.cjs +0 -1
  440. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs +0 -1
  441. package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs +0 -1
  442. package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs +0 -1
  443. package/dist/sepa.svg.es-0t4DKeA1.js +0 -1
  444. package/dist/sessionReference-3h-6FdrC.mjs +0 -43
  445. package/dist/sessionReference-m_6Rp4X1.js +0 -1
  446. package/dist/slots.es-T9ZJRGtG.js +0 -1
  447. package/dist/sorting.es-DCihKqD2.mjs +0 -77
  448. package/dist/sorting.es-DQsjKr8A.js +0 -1
  449. package/dist/star.svg.es-D2JncY7b.js +0 -1
  450. package/dist/subscription-D1yHKUNc.mjs +0 -69
  451. package/dist/subscription-ZA62t4E9.js +0 -1
  452. package/dist/subscriptions-DcfcBYAq.mjs +0 -55
  453. package/dist/subscriptions-DwVsf4Ev.js +0 -1
  454. package/dist/trustly.svg.es-GJByiFAs.js +0 -1
  455. package/dist/twint.svg.es-BJ2f48og.js +0 -1
  456. package/dist/typeGuards.es-DS3vZaJn.js +0 -1
  457. package/dist/types/components/payments/AddPaymentMethodModal/AddPaymentMethodModal.types.d.ts +0 -14
  458. package/dist/types/components/payments/SubscriptionPaymentCompletedCard/SubscriptionPaymentCompletedCard.types.d.ts +0 -3
  459. package/dist/types/components/subscriptions/PlanCustomizationForm/AddonSingleEditor.types.d.ts +0 -5
  460. package/dist/types/services/portals.types.d.ts +0 -70
  461. package/dist/types/types/subscription.d.ts +0 -4
  462. package/dist/unionpay.svg.es-DjFZ5EMQ.js +0 -1
  463. package/dist/url-TNRgVI8A.mjs +0 -21
  464. package/dist/url-vloPOiXd.js +0 -1
  465. package/dist/useActionDispatchProvider-B3AvkLL2.mjs +0 -11
  466. package/dist/useActionDispatchProvider-DFhppdve.js +0 -1
  467. package/dist/useCustomer-BwZKd9i5.js +0 -1
  468. package/dist/useCustomerFormLabels-BQk3d9PZ.mjs +0 -968
  469. package/dist/useCustomerFormLabels-DV9QiMYh.js +0 -1
  470. package/dist/useExperimentalFeature-BciA3Ok9.mjs +0 -135
  471. package/dist/useExperimentalFeature-CGIkgFR4.js +0 -1
  472. package/dist/useIncrementalLoading-CaWOE8Xl.js +0 -1
  473. package/dist/useIncrementalLoading-Cgxw2GD7.mjs +0 -48
  474. package/dist/useInvoiceData-BocKdeg7.mjs +0 -38
  475. package/dist/useInvoiceData-CNV_FMV8.js +0 -1
  476. package/dist/useInvoicesList-C8nsXMJ6.mjs +0 -500
  477. package/dist/useInvoicesList-S0IbQcrD.js +0 -1
  478. package/dist/useLoadInitialData-D9GkzY8t.mjs +0 -15
  479. package/dist/useLoadInitialData-D_R6Jy1s.js +0 -1
  480. package/dist/usePaymentMethodAvailability-BO_guwAw.js +0 -1
  481. package/dist/usePaymentMethodOptions-1vRAo6Ib.mjs +0 -39
  482. package/dist/usePaymentMethodOptions-CuzOoi2k.js +0 -1
  483. package/dist/usePaymentMethods-CbwnGONc.mjs +0 -15
  484. package/dist/usePaymentMethods-DDaTZQZp.js +0 -1
  485. package/dist/usePayments-DDSjo0rH.js +0 -1
  486. package/dist/usePortal-C27omjhz.js +0 -1
  487. package/dist/usePortal-C5AsegpS.mjs +0 -11
  488. package/dist/useService-Bh47bllz.mjs +0 -50
  489. package/dist/useService-H7BjLg8P.js +0 -1
  490. package/dist/useSubscription-BZJL0VOA.mjs +0 -210
  491. package/dist/useSubscription-D787IXY-.js +0 -1
  492. package/dist/useTimePeriod.es-rzxqUCTu.js +0 -1
  493. package/dist/useViewport-BgdA2PPt.mjs +0 -29
  494. package/dist/useViewport-hPRVDWCm.js +0 -1
  495. package/dist/useWatchDebounced-B8iX7ykx.js +0 -1
  496. package/dist/useWatchDebounced-BHlBPcXB.mjs +0 -20
  497. package/dist/visa.svg.es-NY3BHhda.js +0 -1
  498. package/dist/vpay.svg.es-VViQi42w.js +0 -1
  499. package/dist/wallets.es-CNIMW5ay.js +0 -1
  500. package/dist/zip.svg.es-C9S_F31W.js +0 -1
@@ -1,39 +1,37 @@
1
- import { computed as m, ref as U, defineComponent as T, openBlock as u, createBlock as f, unref as a, withCtx as p, createElementVNode as j, createVNode as _, createTextVNode as w, toDisplayString as S, createCommentVNode as y, createElementBlock as F, Fragment as Z, renderList as J, shallowRef as ae, watch as W, defineAsyncComponent as G, toRef as ie, renderSlot as se, normalizeProps as oe, guardReactiveProps as re } from "vue";
2
- import { _ as ce } from "./Alert.vue.es-lIiAWf2S.mjs";
3
- import { _ as Y } from "./Button.vue.es-Cmjfm4jw.mjs";
4
- import { _ as K } from "./ErrorNotification.vue.es-h-D37rfG.mjs";
5
- import { a as B, _ as $, b as Q, d as le, e as de } from "./customElements-B58FcXIN.mjs";
6
- import { C as ue } from "./ContentWithAsideLayout-BCM8tmZN.mjs";
7
- import { u as ee } from "./useActionDispatchProvider-B3AvkLL2.mjs";
8
- import { c as te, a as pe } from "./subscription-D1yHKUNc.mjs";
9
- import { _ as me, u as ge } from "./CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DssxYPSA.mjs";
10
- import { _ as be } from "./CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-B41la-T7.mjs";
11
- import { _ as fe } from "./EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-QW9NdxyZ.mjs";
12
- import { _ as he } from "./Skeleton.vue_vue_type_script_setup_true_lang-CJWE7wVi.mjs";
13
- import { _ as R } from "./Section.vue.es-DVEpre9O.mjs";
14
- import { g as ve } from "./pricing-BIMpDI_p.mjs";
15
- import { f as X, b as _e } from "./formatting.es-RclXHhKo.mjs";
16
- import { _ as ye } from "./PaymentMethod.vue.es-4YRmQZHX.mjs";
17
- import { M as we } from "./Modal.vue.es-BeI5C9-9.mjs";
18
- import { c as Se } from "./subscriptions-DcfcBYAq.mjs";
19
- import { _ as Ce } from "./SubscriptionSummary.vue_vue_type_script_setup_true_lang-CsekphtV.mjs";
20
- import { g as Me } from "./api.es-QaC926Xu.mjs";
21
- import { i as Ie } from "./useIncrementalLoading-Cgxw2GD7.mjs";
22
- import { c as Pe } from "./paymentMethods-CWlvwK5V.mjs";
23
- import { A as Ae } from "./error-BHVZJGwD.mjs";
24
- import { u as $e } from "./useSubscription-BZJL0VOA.mjs";
25
- import { u as De } from "./useCustomer-B-jyJIVy.mjs";
26
- import { u as Ee } from "./usePaymentMethods-CbwnGONc.mjs";
27
- import { u as xe } from "./useLoadInitialData-D9GkzY8t.mjs";
28
- import { c as Le } from "./pricingPlanSchedules-ChQCbMfe.mjs";
29
- import { u as ke } from "./useService-Bh47bllz.mjs";
30
- import { c as Oe } from "./pricingPlanSchedule-BPrS2WRd.mjs";
31
- import { g as q } from "./getComposedString.es-C__uhJpd.mjs";
32
- import { g as ne } from "./pricing.es-QYWrKMUJ.mjs";
33
- import { h as Te } from "./pricingItemConfigs.es-ORxsk_YS.mjs";
34
- import { a as Be } from "./sessionReference-3h-6FdrC.mjs";
35
- const Ne = () => {
36
- const { $t: e } = B();
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
+ import { i as pe, c as me, d as ne, a as ge } from "./subscription-BhxoqwcT.mjs";
9
+ import { c as G } from "./pricingPlanSchedule-BPrS2WRd.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";
29
+ import { g as K } from "./getComposedString.es-C__uhJpd.mjs";
30
+ import { g as ae } from "./pricing.es-QYWrKMUJ.mjs";
31
+ import { h as Ue } from "./pricingItemConfigs.es-D3pX_9AJ.mjs";
32
+ import { a as Ne } from "./paymentMethods-Nfv9HdkS.mjs";
33
+ const Fe = () => {
34
+ const { $t: e } = j();
37
35
  return { getPriceLabel: (t) => {
38
36
  if (!t.price)
39
37
  return;
@@ -48,153 +46,154 @@ const Ne = () => {
48
46
  );
49
47
  } };
50
48
  };
51
- function Ue({
49
+ function je({
52
50
  subscription: e
53
51
  }) {
54
- const { dispatchAction: i } = ee(), t = m(() => {
55
- if (!e.value) return !1;
56
- const l = e.value.inactive_periods;
57
- return !l || l.length === 0;
58
- }), n = m(() => {
59
- var v;
60
- const l = (v = e.value) == null ? void 0 : v.inactive_periods;
61
- return Array.isArray(l) && l.length > 0;
62
- }), s = U();
52
+ const { dispatchAction: i } = te(), t = p(
53
+ () => pe(e.value) && !me(e.value, "CANCEL")
54
+ ), n = p(
55
+ () => !!ne(e.value)
56
+ ), s = N();
63
57
  return { isCancellable: t, isRenewable: n, pendingVariant: s, cancel: () => {
64
58
  e.value && (s.value = "CANCEL");
65
59
  }, renew: () => {
66
60
  e.value && (s.value = "RENEW");
67
61
  }, dismiss: () => {
68
62
  s.value = void 0;
69
- }, manage: () => {
63
+ }, manage: (b) => {
70
64
  e.value && i({
71
65
  action: "manage-subscription",
72
- data: { subscriptionId: e.value.id }
66
+ data: {
67
+ subscriptionId: e.value.id,
68
+ ...b && { enabledPricingId: b }
69
+ }
73
70
  });
74
71
  } };
75
72
  }
76
- function Fe(e) {
77
- var n, s, o, c, r, h, l;
78
- const i = (o = (s = (n = e.items) == null ? void 0 : n[0]) == null ? void 0 : s.configs) == null ? void 0 : o[0], t = (r = (c = i == null ? void 0 : i.details) == null ? void 0 : c.bands) == null ? void 0 : r[0];
73
+ function Re(e) {
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];
79
76
  return {
80
77
  amount: (t == null ? void 0 : t.amount) ?? (t == null ? void 0 : t.fixed_amount),
81
- billingPeriod: ((h = i == null ? void 0 : i.details) == null ? void 0 : h.pricing_period) ?? ((l = i == null ? void 0 : i.details) == null ? void 0 : l.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)
82
79
  };
83
80
  }
84
- function Re(e) {
85
- var n, s, o;
81
+ function Ve(e) {
82
+ var n;
86
83
  const i = new Set(
87
- (((n = e.pricing_plan_schedule) == null ? void 0 : n.enabled_pricings) ?? []).map(
88
- ({ pricing_id: c }) => c
89
- )
84
+ ye(e.pricing_plan_schedule ?? {})
90
85
  );
91
- return i.size === 0 ? [] : (((o = (s = e.pricing_plan_version) == null ? void 0 : s.pricing_categories) == null ? void 0 : o.flatMap(
92
- (c) => c.pricing_groups ?? []
86
+ return i.size === 0 || !e.pricing_plan_version ? [] : (((n = we(e).pricing_categories) == null ? void 0 : n.flatMap(
87
+ (s) => s.pricing_groups ?? []
93
88
  )) ?? []).flatMap(
94
- (c) => (c.pricings ?? []).filter((r) => i.has(r.id)).map((r) => ({
95
- pricingId: r.id,
96
- pricingGroupId: c.id,
97
- groupName: c.name,
89
+ (s) => (s.pricings ?? []).filter((o) => i.has(o.id)).map((o) => ({
90
+ pricingId: o.id,
91
+ pricingGroupId: s.id,
92
+ groupName: s.name,
98
93
  // A pricing without a name of its own is only identifiable by the choice it belongs to.
99
- name: ve(r) || c.name,
100
- ...Fe(r)
94
+ name: Me(o) || s.name,
95
+ ...Re(o)
101
96
  }))
102
97
  );
103
98
  }
104
- const je = { class: "sv-enabled-pricings-list__item-body flex items-center gap-4" }, Ve = { class: "sv-enabled-pricings-list__item-content grow" }, We = /* @__PURE__ */ T({
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({
105
100
  __name: "EnabledPricingsListItem",
106
101
  props: {
107
- entry: { type: Object }
102
+ entry: { type: Object },
103
+ canUpgrade: { type: Boolean, default: !0 }
108
104
  },
109
105
  emits: ["upgrade"],
110
106
  setup(e) {
111
- const i = e, { $t: t } = B(), n = m(() => {
112
- const { amount: s, billingPeriod: o } = i.entry;
113
- if (s)
114
- 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(
115
111
  {
116
112
  defaultMessage: "{amount} per {period}",
117
113
  id: "enabled_pricings_list.item.price",
118
114
  description: 'The recurring price of an enabled pricing, e.g. "€ 100,00 per month"'
119
115
  },
120
116
  {
121
- amount: X(s),
122
- period: _e(o, {
117
+ amount: X(o),
118
+ period: n(r, {
123
119
  short: !0,
124
120
  hideValueForExactPeriods: !0
125
121
  })
126
122
  }
127
- ) : X(s);
123
+ ) : X(o);
128
124
  });
129
- return (s, o) => (u(), f(a(R), { class: "sv-enabled-pricings-list__item" }, {
130
- default: p(() => [
131
- j("div", je, [
132
- j("div", Ve, [
133
- _(a($), {
125
+ return (o, r) => (l(), g(a(V), { class: "sv-enabled-pricings-list__item" }, {
126
+ default: u(() => [
127
+ W("div", We, [
128
+ W("div", Ye, [
129
+ S(a($), {
134
130
  tag: "span",
135
131
  variant: "body-xs",
136
132
  color: "subtle",
137
133
  class: "sv-enabled-pricings-list__item-group"
138
134
  }, {
139
- default: p(() => [
140
- w(S(e.entry.groupName), 1)
135
+ default: u(() => [
136
+ _(y(e.entry.groupName), 1)
141
137
  ]),
142
138
  _: 1
143
139
  }),
144
- _(a($), {
140
+ S(a($), {
145
141
  tag: "h3",
146
142
  variant: "heading-3",
147
143
  "no-spacing": "",
148
144
  class: "sv-enabled-pricings-list__item-name"
149
145
  }, {
150
- default: p(() => [
151
- w(S(e.entry.name), 1)
146
+ default: u(() => [
147
+ _(y(e.entry.name), 1)
152
148
  ]),
153
149
  _: 1
154
150
  }),
155
- n.value ? (u(), f(a($), {
151
+ s.value ? (l(), g(a($), {
156
152
  key: 0,
157
153
  tag: "span",
158
154
  variant: "body-sm",
159
155
  color: "subtle",
160
156
  class: "sv-enabled-pricings-list__item-price"
161
157
  }, {
162
- default: p(() => [
163
- w(S(n.value), 1)
158
+ default: u(() => [
159
+ _(y(s.value), 1)
164
160
  ]),
165
161
  _: 1
166
- })) : y("", !0)
162
+ })) : v("", !0)
167
163
  ]),
168
- _(a(Y), {
164
+ e.canUpgrade ? (l(), g(a(z), {
165
+ key: 0,
169
166
  intent: "secondary",
170
167
  class: "sv-action sv-action--secondary sv-enabled-pricings-list__item-upgrade shrink-0",
171
168
  type: "button",
172
169
  size: "xs",
173
- onClick: o[0] || (o[0] = (c) => s.$emit("upgrade", e.entry))
170
+ onClick: r[0] || (r[0] = (d) => o.$emit("upgrade", e.entry))
174
171
  }, {
175
- default: p(() => [
176
- w(S(a(t)({
172
+ default: u(() => [
173
+ _(y(a(t)({
177
174
  defaultMessage: "Upgrade",
178
175
  id: "enabled_pricings_list.item.upgrade_button.label",
179
176
  description: "Label for the button that changes which pricing is enabled for a group"
180
177
  })), 1)
181
178
  ]),
182
179
  _: 1
183
- })
180
+ })) : v("", !0)
184
181
  ])
185
182
  ]),
186
183
  _: 1
187
184
  }));
188
185
  }
189
- }), Ye = { class: "sv-enabled-pricings-list__items grid grid-cols-1 gap-2" }, ze = /* @__PURE__ */ T({
186
+ }), Xe = { class: "sv-enabled-pricings-list__items grid grid-cols-1 gap-2" }, qe = /* @__PURE__ */ F({
190
187
  __name: "EnabledPricingsList",
191
188
  props: {
192
189
  pricingPlanSchedule: { type: Object }
193
190
  },
194
191
  emits: ["upgrade"],
195
192
  setup(e) {
196
- const i = e, { $t: t } = B(), n = m(() => Re(i.pricingPlanSchedule));
197
- return (s, o) => n.value.length > 0 ? (u(), f(a(R), {
193
+ const i = e, { $t: t } = j(), n = p(() => Ve(i.pricingPlanSchedule)), s = p(
194
+ () => !Se(i.pricingPlanSchedule.pricing_plan_schedule)
195
+ );
196
+ return (o, r) => n.value.length > 0 ? (l(), g(a(V), {
198
197
  key: 0,
199
198
  class: "sv-enabled-pricings-list",
200
199
  "content-background": "none",
@@ -206,35 +205,36 @@ const je = { class: "sv-enabled-pricings-list__item-body flex items-center gap-4
206
205
  description: "Title for the block listing the pricings enabled on a subscription"
207
206
  })
208
207
  }, {
209
- default: p(() => [
210
- j("div", Ye, [
211
- (u(!0), F(Z, null, J(n.value, (c) => (u(), f(We, {
212
- key: c.pricingId,
213
- entry: c,
214
- onUpgrade: o[0] || (o[0] = (r) => s.$emit("upgrade", r))
215
- }, null, 8, ["entry"]))), 128))
208
+ default: u(() => [
209
+ W("div", Xe, [
210
+ (l(!0), R(Q, null, Z(n.value, (d) => (l(), g(ze, {
211
+ key: d.pricingId,
212
+ entry: d,
213
+ "can-upgrade": s.value,
214
+ onUpgrade: r[0] || (r[0] = (c) => o.$emit("upgrade", c))
215
+ }, null, 8, ["entry", "can-upgrade"]))), 128))
216
216
  ])
217
217
  ]),
218
218
  _: 1
219
- }, 8, ["title"])) : y("", !0);
219
+ }, 8, ["title"])) : v("", !0);
220
220
  }
221
- }), Xe = { 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 = {
222
222
  key: 0,
223
223
  class: "sv-on-demand-items-card__more"
224
- }, H = 2, qe = /* @__PURE__ */ T({
224
+ }, J = 2, Ke = /* @__PURE__ */ F({
225
225
  __name: "OnDemandItemsCard",
226
226
  props: {
227
227
  items: { type: Array }
228
228
  },
229
229
  emits: ["order"],
230
230
  setup(e) {
231
- const i = e, { $t: t } = B(), { getPriceLabel: n } = Ne(), s = m(
232
- () => i.items.slice(0, H).map((c) => ({
233
- item: c,
234
- priceLabel: n(c)
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)
235
235
  }))
236
- ), o = m(() => Math.max(i.items.length - H, 0));
237
- return (c, r) => (u(), f(a(R), {
236
+ ), o = p(() => Math.max(i.items.length - J, 0));
237
+ return (r, d) => (l(), g(a(V), {
238
238
  class: "sv-on-demand-items-card",
239
239
  "content-background": "none",
240
240
  "no-border": "",
@@ -245,16 +245,16 @@ const je = { class: "sv-enabled-pricings-list__item-body flex items-center gap-4
245
245
  description: "Title for the block that offers the on-demand items of a subscription"
246
246
  })
247
247
  }, {
248
- right: p(() => [
249
- _(a(Y), {
248
+ right: u(() => [
249
+ S(a(z), {
250
250
  class: "sv-action sv-action--secondary sv-on-demand-items-card__order",
251
251
  type: "button",
252
252
  size: "sm",
253
253
  intent: "secondary",
254
- onClick: r[0] || (r[0] = (h) => c.$emit("order"))
254
+ onClick: d[0] || (d[0] = (c) => r.$emit("order"))
255
255
  }, {
256
- default: p(() => [
257
- w(S(a(t)({
256
+ default: u(() => [
257
+ _(y(a(t)({
258
258
  defaultMessage: "Purchase",
259
259
  id: "on_demand_items_card.order_button.label",
260
260
  description: "Label for the button that opens the on-demand order form"
@@ -263,29 +263,29 @@ const je = { class: "sv-enabled-pricings-list__item-body flex items-center gap-4
263
263
  _: 1
264
264
  })
265
265
  ]),
266
- default: p(() => [
267
- j("ul", Xe, [
268
- (u(!0), F(Z, null, J(s.value, ({ item: h, priceLabel: l }) => (u(), F("li", {
269
- key: h.pricingItemId,
266
+ default: u(() => [
267
+ W("ul", Ge, [
268
+ (l(!0), R(Q, null, Z(s.value, ({ item: c, priceLabel: b }) => (l(), R("li", {
269
+ key: c.pricingItemId,
270
270
  class: "sv-on-demand-items-card__item"
271
271
  }, [
272
- _(a(R), {
272
+ S(a(V), {
273
273
  "no-spacing": "",
274
274
  "content-classes": "flex flex-col px-4 py-3"
275
275
  }, {
276
- default: p(() => [
277
- _(a($), {
276
+ default: u(() => [
277
+ S(a($), {
278
278
  tag: "span",
279
279
  weight: "semibold",
280
280
  "no-spacing": "",
281
281
  class: "sv-on-demand-items-card__item-name break-words"
282
282
  }, {
283
- default: p(() => [
284
- w(S(h.name), 1)
283
+ default: u(() => [
284
+ _(y(c.name), 1)
285
285
  ]),
286
286
  _: 2
287
287
  }, 1024),
288
- l ? (u(), f(a($), {
288
+ b ? (l(), g(a($), {
289
289
  key: 0,
290
290
  tag: "span",
291
291
  variant: "body-sm",
@@ -293,29 +293,29 @@ const je = { class: "sv-enabled-pricings-list__item-body flex items-center gap-4
293
293
  "no-spacing": "",
294
294
  class: "sv-on-demand-items-card__item-price"
295
295
  }, {
296
- default: p(() => [
297
- w(S(l), 1)
296
+ default: u(() => [
297
+ _(y(b), 1)
298
298
  ]),
299
299
  _: 2
300
- }, 1024)) : y("", !0)
300
+ }, 1024)) : v("", !0)
301
301
  ]),
302
302
  _: 2
303
303
  }, 1024)
304
304
  ]))), 128)),
305
- o.value > 0 ? (u(), F("li", Ge, [
306
- _(a(R), {
305
+ o.value > 0 ? (l(), R("li", He, [
306
+ S(a(V), {
307
307
  "no-spacing": "",
308
308
  "content-classes": "px-4 py-3 text-center"
309
309
  }, {
310
- default: p(() => [
311
- _(a($), {
310
+ default: u(() => [
311
+ S(a($), {
312
312
  tag: "span",
313
313
  weight: "semibold",
314
314
  color: "secondary",
315
315
  "no-spacing": ""
316
316
  }, {
317
- default: p(() => [
318
- w(S(a(t)(
317
+ default: u(() => [
318
+ _(y(a(t)(
319
319
  {
320
320
  defaultMessage: "+ {count} available",
321
321
  id: "on_demand_items_card.more_available",
@@ -329,19 +329,19 @@ const je = { class: "sv-enabled-pricings-list__item-body flex items-center gap-4
329
329
  ]),
330
330
  _: 1
331
331
  })
332
- ])) : y("", !0)
332
+ ])) : v("", !0)
333
333
  ])
334
334
  ]),
335
335
  _: 1
336
336
  }, 8, ["title"]));
337
337
  }
338
338
  });
339
- function He({
339
+ function Je({
340
340
  variant: e,
341
341
  renewableUntil: i,
342
342
  billingPeriodEndsAt: t
343
343
  }) {
344
- const { $t: n } = B(), s = m(() => e.value === "RENEW"), o = m(
344
+ const { $t: n } = j(), s = p(() => e.value === "RENEW"), o = p(
345
345
  () => s.value ? n({
346
346
  defaultMessage: "Renew subscription",
347
347
  description: "Title of the renew subscription confirmation modal",
@@ -351,7 +351,7 @@ function He({
351
351
  description: "Title of the cancel subscription confirmation modal",
352
352
  id: "subscription_cancellation_modal.cancel.title"
353
353
  })
354
- ), c = m(() => s.value ? i.value ? n(
354
+ ), r = p(() => s.value ? i.value ? n(
355
355
  {
356
356
  defaultMessage: "You can renew your subscription until {date}. After this period you can only create a new subscription.",
357
357
  description: "Explanation of the deadline for undoing a cancellation, shown in the renew subscription modal",
@@ -373,7 +373,7 @@ function He({
373
373
  defaultMessage: "Your subscription will be canceled, but you’ll continue to have access until the end of the billing period.",
374
374
  description: "Explanation of what happens when a running subscription is cancelled, shown in the cancel subscription modal",
375
375
  id: "subscription_cancellation_modal.cancel.explanation"
376
- })), r = m(
376
+ })), d = p(
377
377
  () => s.value ? n({
378
378
  defaultMessage: "Renew subscription",
379
379
  description: "Label of the confirm button in the renew subscription modal",
@@ -383,13 +383,17 @@ function He({
383
383
  description: "Label of the confirm button in the cancel subscription modal",
384
384
  id: "subscription_cancellation_modal.cancel.confirm_button.label"
385
385
  })
386
- ), h = m(
387
- () => n({
386
+ ), c = p(
387
+ () => s.value ? n({
388
388
  defaultMessage: "Cancel",
389
389
  description: "Label of the button that dismisses the cancellation modal",
390
390
  id: "subscription_cancellation_modal.cancel_button.label"
391
+ }) : n({
392
+ defaultMessage: "Keep subscription",
393
+ description: "Label of the button that dismisses the cancel subscription modal without cancelling",
394
+ id: "subscription_cancellation_modal.cancel.keep_button.label"
391
395
  })
392
- ), l = m(
396
+ ), b = p(
393
397
  () => s.value ? n({
394
398
  defaultMessage: "We could not renew your subscription. Please try again.",
395
399
  description: "Error shown when undoing a cancellation fails",
@@ -400,161 +404,124 @@ function He({
400
404
  id: "subscription_cancellation_modal.cancel.error"
401
405
  })
402
406
  );
403
- return { title: o, explanation: c, confirmButtonText: r, cancelButtonText: h, errorMessage: l };
404
- }
405
- const Ze = 50;
406
- function Je() {
407
- const { getPaymentMethods: e } = Pe(), i = ae();
408
- return { paymentMethod: i, get: async ({
409
- customerId: n,
410
- paymentMethodId: s
411
- }) => {
412
- const o = await Me(async (c) => {
413
- const r = await e({
414
- customerId: n,
415
- pagination: { page: c, pageSize: Ze }
416
- });
417
- if (!Ie(r))
418
- throw new Error("Could not load the customer’s payment methods.");
419
- return r;
420
- });
421
- return i.value = o.data.find(({ id: c }) => c === s), i.value;
422
- } };
407
+ return { title: o, explanation: r, confirmButtonText: d, cancelButtonText: c, errorMessage: b };
423
408
  }
424
- const Ke = { 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 = {
425
410
  key: 0,
426
411
  class: "sv-subscription-cancellation-modal__meta flex flex-wrap items-center gap-x-6 gap-y-2 px-3 pb-2"
427
412
  }, et = {
428
413
  key: 0,
429
414
  class: "sv-subscription-cancellation-modal__renews flex gap-1"
430
- }, tt = /* @__PURE__ */ T({
415
+ }, tt = /* @__PURE__ */ F({
431
416
  __name: "SubscriptionCancellationModal",
432
417
  props: {
433
418
  showModal: { type: Boolean },
434
419
  variant: { type: null },
435
420
  subscription: { type: Object },
421
+ customer: { type: Object },
422
+ paymentMethod: { type: Object },
436
423
  avatar: { type: String }
437
424
  },
438
425
  emits: ["confirmed", "close"],
439
426
  setup(e, { emit: i }) {
440
- const t = e, n = i, { $t: s, formatDate: o } = B(), c = Q(), { setSubscriptionCancellation: r } = Se(), h = m(() => t.variant), l = m(() => {
441
- var d;
442
- const b = ((d = t.subscription) == null ? void 0 : d.inactive_periods) ?? [], g = b.find(({ type: M }) => M === "CANCEL") ?? b[0];
443
- if (g)
444
- return o({
445
- date: g.start_at,
446
- format: "date",
447
- offsetType: "local"
448
- });
449
- }), v = m(() => {
450
- var g, d;
451
- const b = (d = (g = t.subscription) == null ? void 0 : g.next_invoice) == null ? void 0 : d.invoice_date;
452
- if (b)
453
- return o({
454
- date: b,
455
- format: "date",
456
- offsetType: "local"
457
- });
458
- }), P = v, L = m(
459
- () => {
460
- var b, g;
461
- return (((g = (b = te(t.subscription)) == null ? void 0 : b.pricing_plan_schedule) == null ? void 0 : g.enabled_pricings) ?? []).map(({ pricing_id: d }) => d).filter((d) => !!d);
427
+ const t = e, n = i, { $t: s, formatDate: o } = j(), r = q(), { setSubscriptionCancellation: d } = $e(), c = N(t.variant);
428
+ Y(
429
+ () => t.variant,
430
+ (f) => {
431
+ f && (c.value = f);
462
432
  }
463
- ), { title: E, explanation: k, confirmButtonText: I, cancelButtonText: O, errorMessage: x } = He({ variant: h, renewableUntil: l, billingPeriodEndsAt: v }), { paymentMethod: A, get: N } = Je();
464
- W(
465
- [
466
- () => t.showModal,
467
- () => {
468
- var b;
469
- return (b = t.subscription) == null ? void 0 : b.payment_method_id;
470
- },
471
- () => {
472
- var b;
473
- return (b = t.subscription) == null ? void 0 : b.customer_id;
474
- }
475
- ],
476
- ([b, g, d]) => {
477
- var M;
478
- !b || !g || !d || g !== ((M = A.value) == null ? void 0 : M.id) && N({ customerId: d, paymentMethodId: g }).catch(() => {
479
- });
480
- },
481
- { immediate: !0 }
482
433
  );
483
- const C = U(!1), D = U(!1);
484
- W(
434
+ const b = (f) => {
435
+ var h;
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" });
438
+ }, C = p(() => {
439
+ const f = ne(t.subscription);
440
+ return f ? b(f.start_at) : void 0;
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;
444
+ return f ? b(f) : void 0;
445
+ }), O = k, T = p(
446
+ () => {
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);
449
+ }
450
+ ), { title: B, explanation: I, confirmButtonText: A, cancelButtonText: E, errorMessage: L } = Je({ variant: c, renewableUntil: C, billingPeriodEndsAt: k }), w = N(!1), x = N(!1);
451
+ Y(
485
452
  () => t.showModal,
486
- (b) => {
487
- b && (D.value = !1);
453
+ (f) => {
454
+ f && (x.value = !1);
488
455
  }
489
456
  );
490
- const V = async () => {
491
- if (!(!t.subscription || !t.variant || C.value)) {
492
- C.value = !0, D.value = !1;
457
+ const U = async () => {
458
+ if (!(!t.subscription || !t.variant || w.value)) {
459
+ w.value = !0, x.value = !1;
493
460
  try {
494
- await r({
461
+ await d({
495
462
  id: t.subscription.id,
496
463
  variant: t.variant
497
464
  }), n("confirmed"), n("close");
498
- } catch (b) {
499
- c.error(
465
+ } catch (f) {
466
+ r.error(
500
467
  "SUBSCRIPTION_CANCELLATION_FAILED",
501
468
  "Failed to change the cancellation state of a subscription",
502
469
  { variant: t.variant },
503
- b
504
- ), D.value = !0;
470
+ f
471
+ ), x.value = !0;
505
472
  } finally {
506
- C.value = !1;
473
+ w.value = !1;
507
474
  }
508
475
  }
509
- }, z = () => {
510
- C.value || n("close");
476
+ }, M = () => {
477
+ w.value || n("close");
511
478
  };
512
- return (b, g) => (u(), f(a(we), {
479
+ return (f, P) => (l(), g(a(Oe), {
513
480
  size: "md",
514
481
  "show-modal": e.showModal,
515
- title: a(E),
516
- "confirm-button-text": a(I),
517
- "cancel-button-text": a(O),
518
- "is-loading": C.value,
519
- "no-click-away": C.value,
520
- "no-backdrop-close": C.value,
521
- onConfirm: V,
522
- onClose: z
482
+ title: a(B),
483
+ "confirm-button-text": a(A),
484
+ "cancel-button-text": a(E),
485
+ "is-loading": w.value,
486
+ "no-click-away": w.value,
487
+ "no-backdrop-close": w.value,
488
+ onConfirm: U,
489
+ onClose: M
523
490
  }, {
524
- body: p(() => [
525
- j("div", Ke, [
526
- _(a($), {
491
+ body: u(() => [
492
+ W("div", Qe, [
493
+ S(a($), {
527
494
  variant: "body-sm",
528
495
  color: "subtle",
529
496
  tag: "p",
530
497
  class: "sv-subscription-cancellation-modal__explanation"
531
498
  }, {
532
- default: p(() => [
533
- w(S(a(k)), 1)
499
+ default: u(() => [
500
+ _(y(a(I)), 1)
534
501
  ]),
535
502
  _: 1
536
503
  }),
537
- e.subscription ? (u(), f(a(R), {
504
+ e.subscription ? (l(), g(a(V), {
538
505
  key: 0,
539
506
  "no-spacing": "",
540
507
  class: "sv-subscription-cancellation-modal__subscription"
541
508
  }, {
542
- default: p(() => [
543
- _(Ce, {
509
+ default: u(() => [
510
+ S(Ae, {
544
511
  subscription: e.subscription,
545
512
  avatar: e.avatar,
546
- "enabled-pricing-ids": L.value
513
+ "enabled-pricing-ids": T.value
547
514
  }, null, 8, ["subscription", "avatar", "enabled-pricing-ids"]),
548
- a(P) || a(A) ? (u(), F("div", Qe, [
549
- a(P) ? (u(), F("div", et, [
550
- _(a($), {
515
+ a(O) || e.paymentMethod ? (l(), R("div", Ze, [
516
+ a(O) ? (l(), R("div", et, [
517
+ S(a($), {
551
518
  tag: "span",
552
519
  variant: "body-xs",
553
520
  color: "secondary",
554
521
  weight: "semibold"
555
522
  }, {
556
- default: p(() => [
557
- w(S(a(s)({
523
+ default: u(() => [
524
+ _(y(a(s)({
558
525
  defaultMessage: "Renews",
559
526
  description: "Label before the date the subscription renews, shown in the cancel subscription modal",
560
527
  id: "subscription_cancellation_modal.renews_label"
@@ -562,38 +529,38 @@ const Ke = { class: "sv-subscription-cancellation-modal sv-subscription-cancella
562
529
  ]),
563
530
  _: 1
564
531
  }),
565
- _(a($), {
532
+ S(a($), {
566
533
  tag: "span",
567
534
  variant: "body-xs",
568
535
  color: "secondary"
569
536
  }, {
570
- default: p(() => [
571
- w(S(a(P)), 1)
537
+ default: u(() => [
538
+ _(y(a(O)), 1)
572
539
  ]),
573
540
  _: 1
574
541
  })
575
- ])) : y("", !0),
576
- a(A) ? (u(), f(a(ye), {
542
+ ])) : v("", !0),
543
+ e.paymentMethod ? (l(), g(a(De), {
577
544
  key: 1,
578
545
  variant: "condensed",
579
546
  class: "sv-subscription-cancellation-modal__payment-method",
580
- "payment-method": a(A)
581
- }, null, 8, ["payment-method"])) : y("", !0)
582
- ])) : y("", !0)
547
+ "payment-method": e.paymentMethod
548
+ }, null, 8, ["payment-method"])) : v("", !0)
549
+ ])) : v("", !0)
583
550
  ]),
584
551
  _: 1
585
- })) : y("", !0),
586
- D.value ? (u(), f(a(K), {
552
+ })) : v("", !0),
553
+ x.value ? (l(), g(a(ee), {
587
554
  key: 1,
588
555
  class: "sv-subscription-cancellation-modal__error sv-error",
589
- title: a(x)
590
- }, null, 8, ["title"])) : y("", !0)
556
+ title: a(L)
557
+ }, null, 8, ["title"])) : v("", !0)
591
558
  ])
592
559
  ]),
593
560
  _: 1
594
561
  }, 8, ["show-modal", "title", "confirm-button-text", "cancel-button-text", "is-loading", "no-click-away", "no-backdrop-close"]));
595
562
  }
596
- }), nt = { class: "sv-subscription-details__header flex flex-col gap-2 md:flex-row md:items-center" }, at = /* @__PURE__ */ T({
563
+ }), nt = { class: "sv-subscription-details__header flex flex-col gap-2 md:flex-row md:items-center" }, at = /* @__PURE__ */ F({
597
564
  __name: "SubscriptionDetails",
598
565
  props: {
599
566
  subscription: { type: Object },
@@ -611,138 +578,141 @@ const Ke = { class: "sv-subscription-cancellation-modal sv-subscription-cancella
611
578
  },
612
579
  emits: ["top-up-charged", "auto-top-up-saved", "auto-top-up-cancelled", "payment-method-stored", "subscription-changed", "invoice-created"],
613
580
  setup(e, { emit: i }) {
614
- const t = G(
615
- () => import("./SubscriptionSchedules-DuWZmnD2.mjs")
616
- ), n = G(
617
- () => import("./ChargeOnDemandModal-CB4mrvkU.mjs")
618
- ), s = e, o = i, { dispatchAction: c } = ee(), { $t: r } = B(), {
619
- isCancellable: h,
620
- isRenewable: l,
621
- pendingVariant: v,
622
- cancel: P,
623
- renew: L,
624
- dismiss: E,
625
- manage: k
626
- } = Ue({ subscription: ie(s, "subscription") }), I = U();
627
- W(v, (g) => {
628
- g && (I.value = void 0);
581
+ const t = H(
582
+ () => import("./SubscriptionSchedules-BZqlpAtk.mjs")
583
+ ), n = H(
584
+ () => import("./ChargeOnDemandModal-B8FDkS9U.mjs")
585
+ ), s = e, o = i, { dispatchAction: r } = te(), { $t: d } = j(), {
586
+ isCancellable: c,
587
+ isRenewable: b,
588
+ pendingVariant: C,
589
+ cancel: k,
590
+ renew: O,
591
+ dismiss: T,
592
+ manage: B
593
+ } = je({ subscription: ie(s, "subscription") }), I = N();
594
+ Y(C, (h) => {
595
+ h && (I.value = void 0);
629
596
  });
630
- const O = () => {
631
- I.value = v.value, o("subscription-changed");
632
- }, x = m(() => {
597
+ const A = () => {
598
+ I.value = C.value, o("subscription-changed");
599
+ }, E = p(() => {
633
600
  if (I.value)
634
- return I.value === "RENEW" ? r({
601
+ return I.value === "RENEW" ? d({
635
602
  defaultMessage: "Your subscription has been renewed.",
636
603
  id: "subscription_details.renew_success",
637
604
  description: "Confirmation shown after a cancellation has been undone"
638
- }) : r({
605
+ }) : d({
639
606
  defaultMessage: "Your subscription has been cancelled. You keep access until the end of the billing period.",
640
607
  id: "subscription_details.cancel_success",
641
608
  description: "Confirmation shown after a subscription has been cancelled"
642
609
  });
643
- }), A = m(() => te(s.subscription)), N = m(
644
- () => (s.paymentMethods ?? []).find(({ id: g }) => {
645
- var d;
646
- return g === ((d = s.subscription) == null ? void 0 : d.payment_method_id);
610
+ }), L = p(
611
+ () => {
612
+ var h;
613
+ return G(((h = s.subscription) == null ? void 0 : h.pricing_plan_schedule_infos) ?? []);
614
+ }
615
+ ), w = p(
616
+ () => (s.paymentMethods ?? []).find(({ id: h }) => {
617
+ var m;
618
+ return h === ((m = s.subscription) == null ? void 0 : m.payment_method_id);
647
619
  })
648
- ), C = m(() => s.subscription ? [s.subscription] : []), D = U(!1), V = U(!1), z = () => {
649
- V.value = !0, D.value = !0;
650
- }, b = m(
651
- () => pe({
620
+ ), x = p(() => s.subscription ? [s.subscription] : []), U = N(!1), M = N(!1), f = () => {
621
+ M.value = !0, U.value = !0;
622
+ }, P = p(
623
+ () => ge({
652
624
  subscription: s.subscription,
653
- fallback: r({
625
+ fallback: d({
654
626
  defaultMessage: "Subscription details",
655
627
  id: "subscription_details.title",
656
628
  description: "Title for the subscription details page"
657
629
  })
658
630
  })
659
631
  );
660
- return (g, d) => (u(), f(a(ue), { class: "sv-subscription-details sv-root sv-screen" }, {
661
- header: p(() => [
662
- j("div", nt, [
663
- _(a($), {
632
+ return (h, m) => (l(), g(a(ue), { class: "sv-subscription-details sv-root sv-screen" }, {
633
+ header: u(() => [
634
+ W("div", nt, [
635
+ S(a($), {
664
636
  variant: "heading-2",
665
637
  tag: "h1",
666
638
  class: "sv-subscription-details__title grow"
667
639
  }, {
668
- default: p(() => [
669
- w(S(b.value), 1)
640
+ default: u(() => [
641
+ _(y(P.value), 1)
670
642
  ]),
671
643
  _: 1
672
644
  }),
673
- a(l) ? (u(), f(a(Y), {
645
+ a(b) ? (l(), g(a(z), {
674
646
  key: 0,
675
647
  intent: "secondary",
676
648
  class: "sv-action sv-action--secondary sv-subscription-details__renew w-full md:w-auto",
677
649
  type: "button",
678
- onClick: a(L)
650
+ onClick: a(O)
679
651
  }, {
680
- default: p(() => [
681
- w(S(a(r)({
652
+ default: u(() => [
653
+ _(y(a(d)({
682
654
  defaultMessage: "Renew subscription",
683
655
  id: "subscription_details.renew_button.label",
684
656
  description: "Label for the renew subscription button on the subscription details page"
685
657
  })), 1)
686
658
  ]),
687
659
  _: 1
688
- }, 8, ["onClick"])) : y("", !0),
689
- a(h) ? (u(), f(a(Y), {
660
+ }, 8, ["onClick"])) : v("", !0),
661
+ a(c) ? (l(), g(a(z), {
690
662
  key: 1,
691
663
  intent: "secondary",
692
664
  class: "sv-action sv-action--secondary sv-subscription-details__cancel w-full md:w-auto",
693
665
  type: "button",
694
- onClick: a(P)
666
+ onClick: a(k)
695
667
  }, {
696
- default: p(() => [
697
- w(S(a(r)({
668
+ default: u(() => [
669
+ _(y(a(d)({
698
670
  defaultMessage: "Cancel subscription",
699
671
  id: "subscription_details.cancel_button.label",
700
672
  description: "Label for the cancel subscription button on the subscription details page"
701
673
  })), 1)
702
674
  ]),
703
675
  _: 1
704
- }, 8, ["onClick"])) : y("", !0)
676
+ }, 8, ["onClick"])) : v("", !0)
705
677
  ])
706
678
  ]),
707
- content: p(() => [
708
- x.value ? (u(), f(a(ce), {
679
+ content: u(() => [
680
+ E.value ? (l(), g(a(re), {
709
681
  key: 0,
710
682
  class: "sv-subscription-details__cancellation-success",
711
683
  type: "success",
712
- title: x.value
713
- }, null, 8, ["title"])) : y("", !0),
714
- e.error ? (u(), f(a(K), {
684
+ title: E.value
685
+ }, null, 8, ["title"])) : v("", !0),
686
+ e.error ? (l(), g(a(ee), {
715
687
  key: 1,
716
688
  class: "sv-subscription-details__error sv-error",
717
- title: a(r)({
689
+ title: a(d)({
718
690
  defaultMessage: "Unable to load this subscription. Please try again later.",
719
691
  id: "subscription_details.load_error",
720
692
  description: "Error message shown when the subscription cannot be loaded on the subscription details page"
721
693
  })
722
- }, null, 8, ["title"])) : e.isLoading ? (u(), f(he, {
694
+ }, null, 8, ["title"])) : e.isLoading ? (l(), g(_e, {
723
695
  key: 2,
724
696
  variant: "section",
725
697
  class: "min-h-[220px]"
726
- })) : e.subscription ? (u(), f(a(t), {
698
+ })) : e.subscription ? (l(), g(a(t), {
727
699
  key: 3,
728
700
  class: "sv-subscription-details__schedules",
729
- "schedules-data": e.schedulesData ?? [],
730
- configuration: { subscriptionId: e.subscription.id },
731
- "is-loading": e.isLoading
732
- }, null, 8, ["schedules-data", "configuration", "is-loading"])) : (u(), f(fe, {
701
+ "schedules-data": e.schedulesData ?? []
702
+ }, null, 8, ["schedules-data"])) : (l(), g(ve, {
733
703
  key: 4,
734
704
  class: "sv-subscription-details__empty-state",
735
705
  icon: "receipt_long"
736
706
  }, {
737
- title: p(() => [
738
- w(S(a(r)({
707
+ title: u(() => [
708
+ _(y(a(d)({
739
709
  defaultMessage: "Subscription not found",
740
710
  id: "subscription_details.empty_state.title",
741
711
  description: "Title shown when the requested subscription does not exist"
742
712
  })), 1)
743
713
  ]),
744
- message: p(() => [
745
- w(S(a(r)({
714
+ message: u(() => [
715
+ _(y(a(d)({
746
716
  defaultMessage: "This subscription is no longer available.",
747
717
  id: "subscription_details.empty_state.message",
748
718
  description: "Message shown when the requested subscription does not exist"
@@ -751,8 +721,8 @@ const Ke = { class: "sv-subscription-cancellation-modal sv-subscription-cancella
751
721
  _: 1
752
722
  }))
753
723
  ]),
754
- aside: p(() => [
755
- _(me, {
724
+ aside: u(() => [
725
+ S(be, {
756
726
  class: "sv-subscription-details__wallet-balances",
757
727
  "has-error": !!e.hasWalletBalancesError,
758
728
  "is-loading": e.isLoading,
@@ -760,53 +730,55 @@ const Ke = { class: "sv-subscription-cancellation-modal sv-subscription-cancella
760
730
  "show-top-up-button": "",
761
731
  customer: e.customer,
762
732
  "payment-methods": e.paymentMethods,
763
- subscriptions: C.value,
764
- onTopUpCharged: d[0] || (d[0] = (M) => g.$emit("top-up-charged")),
765
- onAutoTopUpSaved: d[1] || (d[1] = (M) => g.$emit("auto-top-up-saved")),
766
- onAutoTopUpCancelled: d[2] || (d[2] = (M) => g.$emit("auto-top-up-cancelled")),
767
- onPaymentMethodStored: d[3] || (d[3] = (M) => g.$emit("payment-method-stored"))
733
+ subscriptions: x.value,
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"))
768
738
  }, null, 8, ["has-error", "is-loading", "wallet-balances", "customer", "payment-methods", "subscriptions"]),
769
- !e.isLoading && e.onDemandItems.length > 0 ? (u(), f(qe, {
739
+ !e.isLoading && e.onDemandItems.length > 0 ? (l(), g(Ke, {
770
740
  key: 0,
771
741
  items: e.onDemandItems,
772
742
  class: "sv-subscription-details__on-demand-items",
773
- onOrder: z
774
- }, null, 8, ["items"])) : y("", !0),
775
- A.value ? (u(), f(ze, {
743
+ onOrder: f
744
+ }, null, 8, ["items"])) : v("", !0),
745
+ L.value ? (l(), g(qe, {
776
746
  key: 1,
777
747
  class: "sv-subscription-details__upgrades",
778
- "pricing-plan-schedule": A.value,
779
- onUpgrade: a(k)
780
- }, null, 8, ["pricing-plan-schedule", "onUpgrade"])) : y("", !0),
781
- N.value ? (u(), f(be, {
748
+ "pricing-plan-schedule": L.value,
749
+ onUpgrade: m[4] || (m[4] = (D) => a(B)(D.pricingId))
750
+ }, null, 8, ["pricing-plan-schedule"])) : v("", !0),
751
+ w.value ? (l(), g(he, {
782
752
  key: 2,
783
753
  class: "sv-subscription-details__payment-method",
784
754
  "is-loading": e.isLoading,
785
- "payment-methods": [N.value],
755
+ "payment-methods": [w.value],
786
756
  configuration: { showViewAllButton: !1, showAddButton: !1 }
787
- }, null, 8, ["is-loading", "payment-methods"])) : y("", !0),
788
- V.value && e.subscription && e.onDemandScheduleId ? (u(), f(a(n), {
757
+ }, null, 8, ["is-loading", "payment-methods"])) : v("", !0),
758
+ M.value && e.subscription && e.onDemandScheduleId ? (l(), g(a(n), {
789
759
  key: 3,
790
- "show-modal": D.value,
760
+ "show-modal": U.value,
791
761
  subscription: e.subscription,
792
762
  "schedule-id": e.onDemandScheduleId,
793
763
  items: e.onDemandItems,
794
764
  customer: e.customer,
795
765
  "payment-methods": e.paymentMethods,
796
766
  "can-view-created-invoice": e.canViewCreatedInvoice,
797
- onClose: d[4] || (d[4] = (M) => D.value = !1),
798
- onPaymentMethodStored: d[5] || (d[5] = (M) => g.$emit("payment-method-stored")),
799
- onInvoiceCreated: d[6] || (d[6] = (M) => g.$emit("invoice-created", M)),
800
- onViewInvoice: d[7] || (d[7] = (M) => a(c)({ action: "view-invoice", data: { invoiceId: M } }))
801
- }, null, 8, ["show-modal", "subscription", "schedule-id", "items", "customer", "payment-methods", "can-view-created-invoice"])) : y("", !0),
802
- _(tt, {
803
- "show-modal": !!a(v),
804
- variant: a(v),
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 } }))
771
+ }, null, 8, ["show-modal", "subscription", "schedule-id", "items", "customer", "payment-methods", "can-view-created-invoice"])) : v("", !0),
772
+ S(tt, {
773
+ "show-modal": !!a(C),
774
+ variant: a(C),
805
775
  subscription: e.subscription,
776
+ customer: e.customer,
777
+ "payment-method": w.value,
806
778
  avatar: e.avatar,
807
- onConfirmed: O,
808
- onClose: a(E)
809
- }, null, 8, ["show-modal", "variant", "subscription", "avatar", "onClose"])
779
+ onConfirmed: A,
780
+ onClose: a(T)
781
+ }, null, 8, ["show-modal", "variant", "subscription", "customer", "payment-method", "avatar", "onClose"])
810
782
  ]),
811
783
  _: 1
812
784
  }));
@@ -820,7 +792,7 @@ const Ke = { class: "sv-subscription-cancellation-modal sv-subscription-cancella
820
792
  const i = Number((t = e.default_units) == null ? void 0 : t.number);
821
793
  return ot(i) ? i : 1;
822
794
  }, ct = (e) => {
823
- const i = e.flatMap(ne);
795
+ const i = e.flatMap(ae);
824
796
  return {
825
797
  productItems: new Map(
826
798
  i.flatMap((t) => t.items ?? []).flatMap((t) => t.product_items ?? []).map(({ id: t, name: n }) => [t, n])
@@ -829,10 +801,10 @@ const Ke = { class: "sv-subscription-cancellation-modal sv-subscription-cancella
829
801
  i.flatMap((t) => t.products ?? []).map(({ id: t, name: n }) => [t, n])
830
802
  )
831
803
  };
832
- }, lt = (e, i, t) => q(i.product_item_ids.map((n) => t.productItems.get(n))) || e.name || q(e.product_ids.map((n) => t.products.get(n))) || "", dt = (e, i, t) => {
833
- var o, c;
834
- const n = (o = i.configs) == null ? void 0 : o.find((r) => r.on_demand);
835
- if (!n || (c = n.wallet_grants) != null && c.length || !Te(n, it))
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;
806
+ const n = (o = i.configs) == null ? void 0 : o.find((d) => d.on_demand);
807
+ if (!n || (r = n.wallet_grants) != null && r.length || !Ue(n, it))
836
808
  return;
837
809
  const s = n.details.pricing_type === "FIXED" ? "FIXED" : "FLAT";
838
810
  return {
@@ -847,12 +819,12 @@ const Ke = { class: "sv-subscription-cancellation-modal sv-subscription-cancella
847
819
  pricingPlanVersions: i = []
848
820
  } = {}) => {
849
821
  const t = ct(i);
850
- return ne(e).flatMap(
822
+ return ae(e).flatMap(
851
823
  (n) => (n.items ?? []).flatMap(
852
824
  (s) => dt(n, s, t) ?? []
853
825
  )
854
826
  );
855
- }, Zt = (e, i) => {
827
+ }, Gt = (e, i) => {
856
828
  const t = new Set(
857
829
  (i.payment_acceptors ?? []).flatMap(
858
830
  (n) => {
@@ -862,54 +834,55 @@ const Ke = { class: "sv-subscription-cancellation-modal sv-subscription-cancella
862
834
  )
863
835
  );
864
836
  return e.filter(
865
- (n) => n.status === "ACTIVE" && !!n.integration_id && t.has(n.integration_id)
837
+ (n) => Ne(n) && !!n.integration_id && t.has(n.integration_id)
866
838
  ).sort(
867
839
  (n, s) => +(s.id === i.payment_method_id) - +(n.id === i.payment_method_id)
868
840
  );
869
- }, Jt = (e, i) => e.flatMap(({ pricingItemId: t, units: n }) => {
841
+ }, Ht = (e, i) => e.flatMap(({ pricingItemId: t, units: n }) => {
870
842
  const s = i.find((o) => o.pricingItemId === t);
871
843
  return s ? s.priceType === "FLAT" && n !== void 0 ? [{ pricing_item_id: t, units: { number: String(n) } }] : [{ pricing_item_id: t }] : [];
872
844
  });
873
845
  function pt({
874
846
  subscription: e
875
847
  }) {
876
- const { getOnDemandPricingItems: i } = Le(), t = Q(), { data: n, execute: s, error: o } = ke({ service: i }), c = m(
848
+ const { getOnDemandPricingItems: i } = Te(), t = q(), { data: n, execute: s } = Be({ service: i }), o = p(
877
849
  () => {
878
- var l;
879
- return ((l = e.value) == null ? void 0 : l.variant) === "DEFAULT" ? Oe(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;
880
852
  }
881
- ), r = m(() => {
882
- var l;
883
- return (l = c.value) == null ? void 0 : l.id;
853
+ ), r = p(() => {
854
+ var c;
855
+ return (c = o.value) == null ? void 0 : c.id;
884
856
  });
885
- return W(
857
+ return Y(
886
858
  r,
887
- (l) => {
888
- l && s({ scheduleId: l }).catch(
889
- () => t.error(
859
+ (c) => {
860
+ c && s({ scheduleId: c }).catch(
861
+ (b) => t.error(
890
862
  "ON_DEMAND_ITEMS_LOAD_FAILED",
891
863
  "Failed to load the on-demand items of the subscription",
892
- { scheduleId: l },
893
- o.value
864
+ { scheduleId: c },
865
+ b
894
866
  )
895
867
  );
896
868
  },
897
869
  { immediate: !0 }
898
- ), { items: m(
870
+ ), { items: p(
899
871
  () => {
900
- var l, v;
901
- return r.value && ((l = n.value) == null ? void 0 : l.pricing_plan_schedule_id) === r.value ? ut(n.value, {
902
- pricingPlanVersions: (v = e.value) == null ? void 0 : v.pricing_plan_schedule_infos.map(
903
- (P) => P.pricing_plan_version
872
+ var c, b;
873
+ return r.value && ((c = n.value) == null ? void 0 : c.pricing_plan_schedule_id) === r.value ? ut(n.value, {
874
+ pricingPlanVersions: (b = e.value) == null ? void 0 : b.pricing_plan_schedule_infos.map(
875
+ (C) => C.pricing_plan_version
904
876
  )
905
877
  }) : [];
906
878
  }
907
879
  ), scheduleId: r };
908
880
  }
909
- const mt = /* @__PURE__ */ T({
881
+ const mt = /* @__PURE__ */ F({
910
882
  __name: "SubscriptionDetails.entry.view",
911
883
  props: {
912
884
  configuration: { type: Object },
885
+ portalToken: { type: Object },
913
886
  environment: { type: String },
914
887
  locale: { type: String },
915
888
  dateLocale: { type: String },
@@ -928,38 +901,46 @@ const mt = /* @__PURE__ */ T({
928
901
  setup(e) {
929
902
  const i = e, t = i.portalObject.customer_id, {
930
903
  subscription: n,
931
- withPlanData: s,
932
- get: o,
933
- error: c
934
- } = $e({ subscriptionId: i.configuration.subscriptionId }), { customer: r, get: h } = De({ customerId: t }), { items: l, fetchAll: v } = Ee({ customerId: t }), {
935
- walletBalances: P,
936
- apiStatus: L,
937
- fetch: E
938
- } = ge({ customerId: t }), { isLoading: k } = xe(
939
- o(),
940
- h.execute(),
941
- v(),
942
- E()
943
- ), { items: I, scheduleId: O } = pt({
904
+ get: s,
905
+ error: o
906
+ } = Ce({ subscriptionId: i.configuration.subscriptionId }), r = q(), d = p(() => n.value ? null : o.value), c = () => s().catch((M) => {
907
+ r.error(
908
+ "SUBSCRIPTION_LOAD_FAILED",
909
+ "Failed to reload the subscription after it changed",
910
+ {},
911
+ M
912
+ );
913
+ }), { customer: b, get: C } = Ee({ customerId: t }), { items: k, fetchAll: O } = Le({ customerId: t }), {
914
+ walletBalances: T,
915
+ apiStatus: B,
916
+ fetch: I
917
+ } = fe({ customerId: t }), { isLoading: A } = xe(
918
+ s(),
919
+ C.execute(),
920
+ O(),
921
+ I()
922
+ ), { items: E, scheduleId: L } = pt({
944
923
  subscription: n
945
- }), x = m(() => n.value ? s(n.value) : []), A = m(() => {
946
- var C;
947
- return ((C = P.value) == null ? void 0 : C.wallet_balances) ?? [];
948
- }), N = m(() => L.value === Ae.Failed);
949
- return (C, D) => se(C.$slots, "default", {
924
+ }), w = p(
925
+ () => n.value ? Ie(n.value) : []
926
+ ), x = p(() => {
927
+ var M;
928
+ return ((M = T.value) == null ? void 0 : M.wallet_balances) ?? [];
929
+ }), U = p(() => B.value === ke.Failed);
930
+ return (M, f) => se(M.$slots, "default", {
950
931
  subscription: a(n),
951
- schedulesData: x.value,
952
- customer: a(r),
953
- paymentMethods: a(l),
954
- walletBalances: A.value,
955
- onDemandItems: a(I),
956
- onDemandScheduleId: a(O),
957
- hasWalletBalancesError: N.value,
958
- isLoading: a(k),
959
- error: a(c),
960
- refreshWalletBalances: a(E),
961
- refreshPaymentMethods: a(v),
962
- refreshSubscription: a(o)
932
+ schedulesData: w.value,
933
+ customer: a(b),
934
+ paymentMethods: a(k),
935
+ walletBalances: x.value,
936
+ onDemandItems: a(E),
937
+ onDemandScheduleId: a(L),
938
+ hasWalletBalancesError: U.value,
939
+ isLoading: a(A),
940
+ error: d.value,
941
+ refreshWalletBalances: a(I),
942
+ refreshPaymentMethods: a(O),
943
+ refreshSubscription: c
963
944
  });
964
945
  }
965
946
  });
@@ -973,10 +954,11 @@ function gt({
973
954
  paymentStatus: e.payment_status
974
955
  });
975
956
  }
976
- const bt = /* @__PURE__ */ T({
957
+ const bt = /* @__PURE__ */ F({
977
958
  __name: "SubscriptionDetails.entry",
978
959
  props: {
979
960
  configuration: { type: Object },
961
+ portalToken: { type: Object },
980
962
  environment: { type: String },
981
963
  locale: { type: String },
982
964
  dateLocale: { type: String },
@@ -993,56 +975,62 @@ const bt = /* @__PURE__ */ T({
993
975
  branding: { type: Object }
994
976
  },
995
977
  setup(e) {
996
- const i = Be("subscription-details"), t = e;
997
- return (n, s) => (u(), f(a(le), {
998
- entry: n.$props,
999
- "component-name": a(i),
1000
- "allowed-portal-types": ["CUSTOMER"],
1001
- onError: s[1] || (s[1] = (o) => n.$emit("error", o))
1002
- }, {
1003
- default: p(() => [
1004
- _(mt, oe(re(n.$props)), {
1005
- default: p(({
1006
- subscription: o,
1007
- schedulesData: c,
1008
- customer: r,
1009
- paymentMethods: h,
1010
- walletBalances: l,
1011
- onDemandItems: v,
1012
- onDemandScheduleId: P,
1013
- hasWalletBalancesError: L,
1014
- isLoading: E,
1015
- error: k,
1016
- refreshWalletBalances: I,
1017
- refreshPaymentMethods: O,
1018
- refreshSubscription: x
1019
- }) => [
1020
- _(at, {
1021
- subscription: o,
1022
- "schedules-data": c,
1023
- customer: r,
1024
- avatar: e.configuration.avatar,
1025
- "can-view-created-invoice": e.configuration.canViewCreatedInvoice,
1026
- "payment-methods": h,
1027
- "wallet-balances": l,
1028
- "on-demand-items": v,
1029
- "on-demand-schedule-id": P,
1030
- "has-wallet-balances-error": L,
1031
- "is-loading": E,
1032
- error: k,
1033
- onTopUpCharged: I,
1034
- onAutoTopUpSaved: I,
1035
- onAutoTopUpCancelled: I,
1036
- onPaymentMethodStored: O,
1037
- onSubscriptionChanged: x,
1038
- onInvoiceCreated: s[0] || (s[0] = (A) => a(gt)({ invoice: A, configuration: t.configuration }))
1039
- }, 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"])
1040
- ]),
1041
- _: 1
1042
- }, 16)
1043
- ]),
1044
- _: 1
1045
- }, 8, ["entry", "component-name"]));
978
+ const i = le("subscription-details"), t = e;
979
+ return (n, s) => {
980
+ var o;
981
+ return l(), g(a(ce), {
982
+ entry: n.$props,
983
+ "component-name": a(i),
984
+ "allowed-portal-types": ["CUSTOMER"],
985
+ "required-configuration": { subscriptionId: (o = e.configuration) == null ? void 0 : o.subscriptionId },
986
+ onError: s[1] || (s[1] = (r) => n.$emit("error", r))
987
+ }, {
988
+ default: u(() => [
989
+ (l(), g(mt, oe({
990
+ key: e.configuration.subscriptionId
991
+ }, n.$props), {
992
+ default: u(({
993
+ subscription: r,
994
+ schedulesData: d,
995
+ customer: c,
996
+ paymentMethods: b,
997
+ walletBalances: C,
998
+ onDemandItems: k,
999
+ onDemandScheduleId: O,
1000
+ hasWalletBalancesError: T,
1001
+ isLoading: B,
1002
+ error: I,
1003
+ refreshWalletBalances: A,
1004
+ refreshPaymentMethods: E,
1005
+ refreshSubscription: L
1006
+ }) => [
1007
+ S(at, {
1008
+ subscription: r,
1009
+ "schedules-data": d,
1010
+ customer: c,
1011
+ avatar: e.configuration.avatar,
1012
+ "can-view-created-invoice": e.configuration.canViewCreatedInvoice,
1013
+ "payment-methods": b,
1014
+ "wallet-balances": C,
1015
+ "on-demand-items": k,
1016
+ "on-demand-schedule-id": O,
1017
+ "has-wallet-balances-error": T,
1018
+ "is-loading": B,
1019
+ error: I,
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 }))
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"])
1027
+ ]),
1028
+ _: 1
1029
+ }, 16))
1030
+ ]),
1031
+ _: 1
1032
+ }, 8, ["entry", "component-name", "required-configuration"]);
1033
+ };
1046
1034
  }
1047
1035
  }), { define: Kt } = de(
1048
1036
  bt,
@@ -1050,8 +1038,8 @@ const bt = /* @__PURE__ */ T({
1050
1038
  );
1051
1039
  export {
1052
1040
  Kt as d,
1053
- Zt as g,
1041
+ Gt as g,
1054
1042
  ot as i,
1055
- Jt as t,
1056
- Ne as u
1043
+ Ht as t,
1044
+ Fe as u
1057
1045
  };