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

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