@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,73 +1,71 @@
1
- import { ref as S, defineComponent as M, useModel as H, computed as _, watch as F, openBlock as m, createElementBlock as z, withModifiers as ce, createElementVNode as C, createVNode as h, unref as e, mergeModels as K, inject as le, createBlock as g, withCtx as f, renderSlot as de, createTextVNode as T, toDisplayString as A, createCommentVNode as R, Fragment as me } from "vue";
2
- import { _ as J } from "../../Button.vue.es-Cmjfm4jw.mjs";
3
- import { _ as Q } from "../../ErrorNotification.vue.es-h-D37rfG.mjs";
4
- import { b as X, g as ue, a as E, h as pe, i as ge, _ as Z, d as fe, e as ve } from "../../customElements-B58FcXIN.mjs";
5
- import { C as be } from "../../ContentWithAsideLayout-BCM8tmZN.mjs";
6
- import { u as he } from "../../useActionDispatchProvider-B3AvkLL2.mjs";
7
- import { u as _e } from "../../usePortal-C5AsegpS.mjs";
8
- import { u as ye } from "../../useSubscription-BZJL0VOA.mjs";
9
- import { u as we } from "../../useCustomer-B-jyJIVy.mjs";
10
- import { u as Se } from "../../usePaymentMethods-CbwnGONc.mjs";
11
- import { u as Pe } from "../../usePaymentMethodOptions-1vRAo6Ib.mjs";
12
- import { u as Ie } from "../../useLoadInitialData-D9GkzY8t.mjs";
13
- import { c as Me } from "../../invoices-3520M5AN.mjs";
14
- import { b as $e, c as ke, d as Oe } from "../../pricingPlanSchedule-BPrS2WRd.mjs";
15
- import { c as Ae } from "../../pricingPlanSchedules-ChQCbMfe.mjs";
16
- import { a as Ce } from "../../SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-xzjqB-v-.mjs";
17
- import { _ as Ee } from "../../Divider.vue.es-DnP_HqLz.mjs";
18
- import { _ as Le } from "../../PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CmJITenR.mjs";
19
- import { _ as xe, a as je } from "../../AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DNepCMRp.mjs";
20
- import { a as Ne } from "../../EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-QW9NdxyZ.mjs";
21
- import { _ as Te } from "../../Section.vue.es-DVEpre9O.mjs";
22
- import { _ as ee } from "../../Skeleton.vue_vue_type_script_setup_true_lang-CJWE7wVi.mjs";
23
- import { _ as Be } from "../../PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DlqoWKQq.mjs";
24
- import { M as Ue } from "../../Modal.vue.es-BeI5C9-9.mjs";
25
- import { a as Ge } from "../../sessionReference-3h-6FdrC.mjs";
26
- function Ve() {
27
- const { getInvoicePreview: n } = Me(), l = X(), t = S(), c = S(!1), d = S(), v = ue();
28
- return { invoice: t, isPending: c, error: d, load: async ({
29
- subscription: o,
30
- enabledPricingIds: b
1
+ import { ref as E, defineComponent as A, useModel as te, computed as p, watch as Y, openBlock as r, createElementBlock as W, withModifiers as be, createElementVNode as N, createVNode as O, unref as t, createBlock as c, withCtx as m, createTextVNode as S, toDisplayString as y, mergeModels as ne, inject as he, renderSlot as _e, createCommentVNode as q, Fragment as fe, mergeProps as ye } from "vue";
2
+ import { u as we, w as Ie, a as Pe, h as Se } from "../../pricingPlanScheduleOverrides-COr9F8DO.mjs";
3
+ import { _ as ie } from "../../Button.vue.es-rh6mITmN.mjs";
4
+ import { _ as H } from "../../ErrorNotification.vue.es-CKlt4hr2.mjs";
5
+ import { d as oe, m as Ee, a as U, _ as K, n as Me, o as Te, e as $e, g as ke, f as Oe } from "../../customElements-Di3zwlEU.mjs";
6
+ import { C as Ne } from "../../ContentWithAsideLayout-BCM8tmZN.mjs";
7
+ import { u as Ae } from "../../useActionDispatchProvider-DC_fUykI.mjs";
8
+ import { u as Ce } from "../../usePortal-CxzKGhbK.mjs";
9
+ import { u as Be } from "../../usePaymentMethods-gvr-rmwE.mjs";
10
+ import { u as Le } from "../../usePaymentMethodOptions-1QBcmgUf.mjs";
11
+ import { u as De } from "../../useLoadInitialData-4k_Cyqef.mjs";
12
+ import { c as Ue } from "../../invoices-Cf1qDAv4.mjs";
13
+ import { b as ze, c as je, d as Ge } from "../../pricingPlanSchedule-BPrS2WRd.mjs";
14
+ import { c as xe } from "../../pricingPlanSchedules-BK_o9p6h.mjs";
15
+ import { a as Re } from "../../SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Djc1SkEU.mjs";
16
+ import { _ as Ve } from "../../Divider.vue.es-DnP_HqLz.mjs";
17
+ import { _ as Fe } from "../../PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DdWxoB8q.mjs";
18
+ import { _ as Ye } from "../../PaymentMethodSelector.vue_vue_type_script_setup_true_lang-Dw28tfpD.mjs";
19
+ import { a as qe, _ as ae } from "../../EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-Bk4zwyWa.mjs";
20
+ import { _ as He } from "../../Section.vue.es-iS8hVGWA.mjs";
21
+ import { _ as re } from "../../Skeleton.vue_vue_type_script_setup_true_lang-D7MFjvrP.mjs";
22
+ import { _ as We } from "../../PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-CKm-XYuF.mjs";
23
+ function Ke() {
24
+ const { getInvoicePreview: a } = Ue(), l = oe(), s = E(), g = E(!1), d = E(), o = Ee();
25
+ return { invoice: s, isPending: g, error: d, load: async ({
26
+ subscription: w,
27
+ scheduleInfo: I,
28
+ enabledPricingIds: u
31
29
  }) => {
32
- const a = $e({
33
- enabledPricings: b.map((u) => ({ pricing_id: u })),
34
- pricingPlanScheduleInfos: o.pricing_plan_schedule_infos
30
+ const n = ze({
31
+ enabledPricings: u.map((h) => ({ pricing_id: h })),
32
+ pricingPlanScheduleInfos: I ? [I] : []
35
33
  });
36
- if (!a) {
37
- t.value = void 0;
34
+ if (!n) {
35
+ o(), s.value = void 0, d.value = void 0, g.value = !1;
38
36
  return;
39
37
  }
40
- const i = v();
41
- c.value = !0, d.value = void 0;
38
+ const b = o();
39
+ g.value = !0, d.value = void 0;
42
40
  try {
43
- const u = await n({
41
+ const h = await a({
44
42
  // The subscription is running already, so it is priced as itself rather than as the
45
43
  // template for a new one — and the customer it is invoiced to is known.
46
44
  forExistingSubscription: !0,
47
- pricingPlanSubscriptionId: o.id,
48
- customizations: a
45
+ pricingPlanSubscriptionId: w.id,
46
+ customizations: n
49
47
  });
50
- if (!i()) return;
51
- t.value = u.invoice;
52
- } catch (u) {
53
- if (!i()) return;
48
+ if (!b()) return;
49
+ s.value = h.invoice;
50
+ } catch (h) {
51
+ if (!b()) return;
54
52
  l.error(
55
53
  "INVOICE_PREVIEW_FAILED",
56
54
  "Failed to load the invoice preview",
57
55
  { preview: "SUBSCRIPTION_UPGRADE" },
58
- u
59
- ), d.value = u, t.value = void 0;
56
+ h
57
+ ), d.value = h, s.value = void 0;
60
58
  } finally {
61
- i() && (c.value = !1);
59
+ b() && (g.value = !1);
62
60
  }
63
61
  } };
64
62
  }
65
- const De = { class: "sv-subscription-management-form__body grid grid-cols-1 gap-4" }, Fe = /* @__PURE__ */ M({
63
+ const Ze = ["id"], Je = { class: "sv-subscription-management-form__body grid grid-cols-1 gap-4" }, Qe = /* @__PURE__ */ A({
66
64
  __name: "SubscriptionManagementForm",
67
- props: /* @__PURE__ */ K({
65
+ props: /* @__PURE__ */ ne({
66
+ id: { type: String },
68
67
  pricingGroup: { type: Object },
69
68
  paymentMethods: { type: Array },
70
- paymentMethodOptions: { type: Array },
71
69
  billingPeriod: { type: Object },
72
70
  currency: { type: String },
73
71
  disabled: { type: Boolean }
@@ -77,136 +75,152 @@ const De = { class: "sv-subscription-management-form__body grid grid-cols-1 gap-
77
75
  paymentMethodId: {},
78
76
  paymentMethodIdModifiers: {}
79
77
  }),
80
- emits: /* @__PURE__ */ K(["add-payment-method"], ["update:enabledPricingIds", "update:paymentMethodId"]),
81
- setup(n, { emit: l }) {
82
- const t = n, c = l, d = H(n, "enabledPricingIds"), v = H(n, "paymentMethodId"), { $t: y } = E(), o = (a) => {
83
- const i = a ? Date.parse(a) : NaN;
84
- return Number.isFinite(i) ? i : 0;
85
- }, b = _(
86
- () => [...t.paymentMethods ?? []].sort((a, i) => o(i.created_at) - o(a.created_at))
78
+ emits: /* @__PURE__ */ ne(["submit"], ["update:enabledPricingIds", "update:paymentMethodId"]),
79
+ setup(a, { emit: l }) {
80
+ const s = a, g = l, d = te(a, "enabledPricingIds"), o = te(a, "paymentMethodId"), { $t: f } = U(), w = (u) => {
81
+ const n = u ? Date.parse(u) : NaN;
82
+ return Number.isFinite(n) ? n : 0;
83
+ }, I = p(
84
+ () => [...s.paymentMethods ?? []].sort((u, n) => w(n.created_at) - w(u.created_at))
87
85
  );
88
- return F(
89
- () => t.paymentMethods,
90
- (a, i) => {
91
- var L;
92
- const u = a == null ? void 0 : a.find(
93
- ({ id: P }) => !(i != null && i.some((B) => B.id === P))
86
+ return Y(
87
+ () => s.paymentMethods,
88
+ (u, n) => {
89
+ var h;
90
+ const b = u == null ? void 0 : u.find(
91
+ ({ id: M }) => !(n != null && n.some((z) => z.id === M))
94
92
  );
95
- if (u && (i != null && i.length)) {
96
- v.value = u.id;
93
+ if (b && (n != null && n.length)) {
94
+ o.value = b.id;
97
95
  return;
98
96
  }
99
- a != null && a.some(({ id: P }) => P === v.value) || (v.value = (L = (a == null ? void 0 : a.find(({ is_default: P }) => P)) ?? b.value[0]) == null ? void 0 : L.id);
97
+ u != null && u.some(({ id: M }) => M === o.value) || (o.value = (h = (u == null ? void 0 : u.find(({ is_default: M }) => M)) ?? I.value[0]) == null ? void 0 : h.id);
100
98
  },
101
99
  { immediate: !0 }
102
- ), (a, i) => (m(), z("form", {
100
+ ), (u, n) => (r(), W("form", {
101
+ id: a.id,
103
102
  class: "sv-subscription-management-form",
104
- onSubmit: i[3] || (i[3] = ce(() => {
105
- }, ["prevent"]))
103
+ onSubmit: n[2] || (n[2] = be((b) => g("submit"), ["prevent"]))
106
104
  }, [
107
- C("div", De, [
108
- h(Le, {
105
+ N("div", Je, [
106
+ O(Fe, {
109
107
  modelValue: d.value,
110
- "onUpdate:modelValue": i[0] || (i[0] = (u) => d.value = u),
108
+ "onUpdate:modelValue": n[0] || (n[0] = (b) => d.value = b),
111
109
  class: "sv-subscription-management-form__pricing-group",
112
- "group-name": n.pricingGroup.name,
113
- pricings: n.pricingGroup.pricings,
114
- "billing-period": n.billingPeriod,
115
- currency: n.currency
110
+ "group-name": a.pricingGroup.name,
111
+ pricings: a.pricingGroup.pricings,
112
+ "billing-period": a.billingPeriod,
113
+ currency: a.currency
116
114
  }, null, 8, ["modelValue", "group-name", "pricings", "billing-period", "currency"]),
117
- C("div", null, [
118
- h(e(Ee), { spacing: "xs" })
115
+ N("div", null, [
116
+ O(t(Ve), { spacing: "xs" })
119
117
  ]),
120
- h(xe, {
121
- modelValue: v.value,
122
- "onUpdate:modelValue": i[1] || (i[1] = (u) => v.value = u),
118
+ I.value.length > 0 ? (r(), c(Ye, {
119
+ key: 0,
120
+ modelValue: o.value,
121
+ "onUpdate:modelValue": n[1] || (n[1] = (b) => o.value = b),
123
122
  class: "sv-subscription-management-form__payment-methods",
124
- "payment-methods": b.value,
125
- "payment-method-options": n.paymentMethodOptions,
123
+ "payment-methods": I.value,
124
+ "show-add-option": !1,
126
125
  required: "",
127
- disabled: n.disabled,
128
- label: e(y)({
126
+ disabled: a.disabled,
127
+ label: t(f)({
129
128
  defaultMessage: "Payment method",
130
129
  id: "subscription_management.payment_method_selector.label",
131
130
  description: "Label above the payment method that pays for the subscription change"
132
- }),
133
- onAddPaymentMethod: i[2] || (i[2] = (u) => c("add-payment-method"))
134
- }, null, 8, ["modelValue", "payment-methods", "payment-method-options", "disabled", "label"])
131
+ })
132
+ }, null, 8, ["modelValue", "payment-methods", "disabled", "label"])) : (r(), c(t(K), {
133
+ key: 1,
134
+ id: a.id && `${a.id}__no-payment-method`,
135
+ variant: "body-sm",
136
+ color: "subtle",
137
+ tag: "p",
138
+ class: "sv-subscription-management-form__no-payment-method"
139
+ }, {
140
+ default: m(() => [
141
+ S(y(t(f)({
142
+ defaultMessage: "This subscription has no payment method to charge the change to. Please contact support to change it.",
143
+ id: "subscription_management.no_payment_method",
144
+ description: "Shown in place of the payment method on the manage subscription screen when the subscription has no usable payment method"
145
+ })), 1)
146
+ ]),
147
+ _: 1
148
+ }, 8, ["id"]))
135
149
  ])
136
- ], 32));
150
+ ], 40, Ze));
137
151
  }
138
- }), Re = /* @__PURE__ */ M({
152
+ }), Xe = /* @__PURE__ */ A({
139
153
  __name: "TranslationOverride",
140
154
  props: {
141
155
  messages: { type: Object }
142
156
  },
143
- setup(n) {
144
- const l = n, t = le(pe, void 0), c = _(() => ({
145
- ...t == null ? void 0 : t.messages.value,
157
+ setup(a) {
158
+ const l = a, s = he(Me, void 0), g = p(() => ({
159
+ ...s == null ? void 0 : s.messages.value,
146
160
  ...l.messages
147
161
  }));
148
- return (d, v) => {
149
- var y, o;
150
- return m(), g(e(ge), {
151
- locale: (y = e(t)) == null ? void 0 : y.locale.value,
152
- "date-locale": (o = e(t)) == null ? void 0 : o.dateLocale.value,
153
- messages: c.value,
162
+ return (d, o) => {
163
+ var f, w;
164
+ return r(), c(t(Te), {
165
+ locale: (f = t(s)) == null ? void 0 : f.locale.value,
166
+ "date-locale": (w = t(s)) == null ? void 0 : w.dateLocale.value,
167
+ messages: g.value,
154
168
  "show-timezones": !1
155
169
  }, {
156
- default: f(() => [
157
- de(d.$slots, "default")
170
+ default: m(() => [
171
+ _e(d.$slots, "default")
158
172
  ]),
159
173
  _: 3
160
174
  }, 8, ["locale", "date-locale", "messages"]);
161
175
  };
162
176
  }
163
- }), ze = /* @__PURE__ */ M({
177
+ }), et = /* @__PURE__ */ A({
164
178
  __name: "SubscriptionManagementSummary",
165
179
  props: {
166
180
  invoice: { type: Object },
167
181
  isPending: { type: Boolean },
168
182
  hasError: { type: Boolean }
169
183
  },
170
- setup(n) {
171
- const { $t: l } = E(), t = _(() => ({
184
+ setup(a) {
185
+ const { $t: l } = U(), s = p(() => ({
172
186
  "invoice_preview.total_due_today_heading": l({
173
187
  defaultMessage: "Total due",
174
188
  id: "subscription_management.summary.total_due_heading",
175
189
  description: 'Heading above the total of the invoice previewing a subscription change, replacing the shared preview’s "Total due today"'
176
190
  })
177
191
  }));
178
- return (c, d) => (m(), g(e(Te), {
192
+ return (g, d) => (r(), c(t(He), {
179
193
  class: "sv-subscription-management-summary",
180
- title: e(l)({
194
+ title: t(l)({
181
195
  defaultMessage: "Order summary",
182
196
  id: "subscription_management.summary.title",
183
197
  description: "Title of the block previewing what a subscription change is invoiced for"
184
198
  })
185
199
  }, {
186
- default: f(() => [
187
- n.hasError ? (m(), g(e(Q), {
200
+ default: m(() => [
201
+ a.hasError ? (r(), c(t(H), {
188
202
  key: 0,
189
203
  class: "sv-subscription-management-summary__error sv-error",
190
- title: e(l)({
204
+ title: t(l)({
191
205
  defaultMessage: "Unable to calculate the total. Please try again.",
192
206
  id: "subscription_management.summary.error",
193
207
  description: "Error shown when the invoice preview for a subscription change cannot be loaded"
194
208
  })
195
- }, null, 8, ["title"])) : n.isPending || !n.invoice ? (m(), g(ee, {
209
+ }, null, 8, ["title"])) : a.isPending || !a.invoice ? (r(), c(re, {
196
210
  key: 1,
197
211
  variant: "section",
198
212
  class: "sv-subscription-management-summary__skeleton min-h-[120px]"
199
213
  }, {
200
- default: f(() => [
201
- n.isPending ? R("", !0) : (m(), g(e(Z), {
214
+ default: m(() => [
215
+ a.isPending ? q("", !0) : (r(), c(t(K), {
202
216
  key: 0,
203
217
  variant: "body-sm",
204
218
  color: "subtle",
205
219
  tag: "div",
206
220
  class: "sv-subscription-management-summary__empty-state"
207
221
  }, {
208
- default: f(() => [
209
- T(A(e(l)({
222
+ default: m(() => [
223
+ S(y(t(l)({
210
224
  defaultMessage: "Select your plan to see what it costs.",
211
225
  id: "subscription_management.summary.empty_state",
212
226
  description: "Shown in the order summary before a plan has been picked to preview"
@@ -216,14 +230,14 @@ const De = { class: "sv-subscription-management-form__body grid grid-cols-1 gap-
216
230
  }))
217
231
  ]),
218
232
  _: 1
219
- })) : (m(), g(Re, {
233
+ })) : (r(), c(Xe, {
220
234
  key: 2,
221
- messages: t.value
235
+ messages: s.value
222
236
  }, {
223
- default: f(() => [
224
- h(e(Ne), {
237
+ default: m(() => [
238
+ O(t(qe), {
225
239
  class: "sv-subscription-management-summary__invoice",
226
- invoice: n.invoice,
240
+ invoice: a.invoice,
227
241
  "is-customer-facing": ""
228
242
  }, null, 8, ["invoice"])
229
243
  ]),
@@ -233,149 +247,110 @@ const De = { class: "sv-subscription-management-form__body grid grid-cols-1 gap-
233
247
  _: 1
234
248
  }, 8, ["title"]));
235
249
  }
236
- }), Ye = { class: "sv-subscription-management-success grid grid-cols-1 gap-4" }, qe = { class: "sv-subscription-management-success__message" }, We = /* @__PURE__ */ M({
250
+ }), tt = { class: "sv-subscription-management-success grid grid-cols-1 gap-4" }, nt = { class: "sv-subscription-management-success__message" }, it = /* @__PURE__ */ A({
237
251
  __name: "SubscriptionManagementSuccess",
238
252
  props: {
239
253
  pricingGroupName: { type: String }
240
254
  },
241
- setup(n) {
242
- const l = n, { $t: t } = E(), c = _(
243
- () => t({
255
+ setup(a) {
256
+ const l = a, { $t: s } = U(), g = p(
257
+ () => s({
244
258
  defaultMessage: "Subscription updated",
245
259
  description: "Title shown on the manage subscription screen once the change is committed",
246
260
  id: "subscription_management.success.title"
247
261
  })
248
- ), d = _(
249
- () => l.pricingGroupName ? t(
262
+ ), d = p(
263
+ () => l.pricingGroupName ? s(
250
264
  {
251
265
  defaultMessage: "Your {subject} has been changed. Please be aware that it can take some time to reflect this change in your subscription.",
252
266
  description: "Confirmation of the pricing group a committed subscription change applied to",
253
267
  id: "subscription_management.success.message"
254
268
  },
255
269
  { subject: l.pricingGroupName }
256
- ) : t({
270
+ ) : s({
257
271
  defaultMessage: "Your subscription has been changed. Please be aware that it can take some time to reflect this change in your subscription.",
258
272
  description: "Confirmation of a committed subscription change when the pricing group is not known",
259
273
  id: "subscription_management.success.message_generic"
260
274
  })
261
275
  );
262
- return (v, y) => (m(), z("div", Ye, [
263
- h(Be, {
276
+ return (o, f) => (r(), W("div", tt, [
277
+ O(We, {
264
278
  status: "success",
265
- title: c.value
279
+ title: g.value
266
280
  }, {
267
- default: f(() => [
268
- C("span", qe, A(d.value), 1)
281
+ default: m(() => [
282
+ N("span", nt, y(d.value), 1)
269
283
  ]),
270
284
  _: 1
271
285
  }, 8, ["title"])
272
286
  ]));
273
287
  }
274
- }), He = /* @__PURE__ */ M({
275
- __name: "AddPaymentMethodModal",
276
- props: {
277
- showModal: { type: Boolean },
278
- customer: { type: Object },
279
- paymentMethodOptions: { type: Array },
280
- isLoading: { type: Boolean }
281
- },
282
- emits: ["success", "failure", "close"],
283
- setup(n, { emit: l }) {
284
- const t = l, { $t: c } = E(), d = S(), v = _(() => {
285
- var o;
286
- return !!((o = d.value) != null && o.isSaving);
287
- }), y = () => {
288
- var o;
289
- (o = d.value) == null || o.submit();
290
- };
291
- return (o, b) => (m(), g(e(Ue), {
292
- "no-click-away": "",
293
- size: "lg",
294
- "show-modal": n.showModal,
295
- "is-loading": v.value,
296
- title: e(c)({
297
- defaultMessage: "Add payment method",
298
- id: "add_payment_method_modal.title",
299
- description: "Title of the modal for adding a payment method"
300
- }),
301
- "sub-title": e(c)({
302
- defaultMessage: "Add a new payment method to pay with.",
303
- id: "add_payment_method_modal.subtitle",
304
- description: "Subtitle of the modal for adding a payment method"
305
- }),
306
- "confirm-button-text": e(c)({
307
- defaultMessage: "Save payment method",
308
- id: "add_payment_method_modal.confirm_button.label",
309
- description: "Label of the button that stores the payment method being added"
310
- }),
311
- "cancel-button-text": e(c)({
312
- defaultMessage: "Cancel",
313
- id: "add_payment_method_modal.cancel_button.label",
314
- description: "Label of the button that abandons adding a payment method"
315
- }),
316
- onConfirm: y,
317
- onClose: b[2] || (b[2] = (a) => t("close"))
318
- }, {
319
- body: f(() => [
320
- h(je, {
321
- ref_key: "addPaymentMethodRef",
322
- ref: d,
323
- class: "sv-add-payment-method-modal sv-add-payment-method-modal__form",
324
- customer: n.customer,
325
- "payment-method-options": n.paymentMethodOptions,
326
- "is-loading": n.isLoading,
327
- "is-active": n.showModal,
328
- onSuccess: b[0] || (b[0] = (a) => t("success")),
329
- onFailure: b[1] || (b[1] = (a) => t("failure", a))
330
- }, null, 8, ["customer", "payment-method-options", "is-loading", "is-active"])
331
- ]),
332
- _: 1
333
- }, 8, ["show-modal", "is-loading", "title", "sub-title", "confirm-button-text", "cancel-button-text"]));
334
- }
335
- }), Ke = { class: "sv-subscription-management__header" }, Je = { class: "flex flex-col gap-2" }, Qe = /* @__PURE__ */ M({
288
+ }), at = { class: "sv-subscription-management__header" }, st = { class: "flex flex-col gap-2" }, F = "sv-subscription-management-form", se = "sv-subscription-management__customized-pricing-message", ot = /* @__PURE__ */ A({
336
289
  __name: "SubscriptionManagement",
337
290
  props: {
338
291
  configuration: { type: Object }
339
292
  },
340
- setup(n) {
341
- const l = n, { $t: t } = E(), c = _e(), d = X(), { dispatchAction: v } = he(), { createPricingPlanSchedule: y } = Ae(), { subscription: o, get: b } = ye({
293
+ setup(a) {
294
+ const l = a, s = `${F}__no-payment-method`, g = [
295
+ "BUY_NOW_PAY_LATER",
296
+ "CARD",
297
+ "DIGITAL_WALLET",
298
+ "DIRECT_DEBIT",
299
+ "ONLINE_BANKING"
300
+ ], d = (e, i) => !!i && e.id === (i == null ? void 0 : i.payment_method_id) && e.status === "ACTIVE" && e.customer_id === (i == null ? void 0 : i.customer_id) && g.includes(e.type), { $t: o } = U(), f = Ce(), w = oe(), { dispatchAction: I } = Ae(), { createPricingPlanSchedule: u } = xe(), {
301
+ subscription: n,
302
+ get: b,
303
+ error: h
304
+ } = we({
342
305
  subscriptionId: l.configuration.subscriptionId
343
- }), { items: a, fetchAll: i } = Se({
344
- customerId: c.value.customer_id
345
- }), { customer: u, get: L } = we({ customerId: c.value.customer_id }), { paymentMethodOptions: P, get: B } = Pe(), { isLoading: U } = Ie(
306
+ }), { items: M, fetchAll: z } = Be({
307
+ customerId: f.value.customer_id
308
+ }), { paymentMethodOptions: ce, get: le } = Le(), { isLoading: j } = De(
346
309
  b(),
347
- i(),
348
- L.execute(),
349
- B({ customerId: c.value.customer_id })
350
- ), x = S(!1), te = async () => {
351
- await i(), x.value = !1;
352
- }, G = _(
310
+ z(),
311
+ le({ customerId: f.value.customer_id })
312
+ ), Z = p(
313
+ () => M.value.filter((e) => d(e, n.value))
314
+ ), C = p(
315
+ () => {
316
+ var e;
317
+ return je(((e = n.value) == null ? void 0 : e.pricing_plan_schedule_infos) ?? []);
318
+ }
319
+ ), ue = p(() => {
320
+ const e = C.value;
321
+ return e != null && e.pricing_plan_version ? {
322
+ ...e,
323
+ pricing_plan_version: Ie(e)
324
+ } : e;
325
+ }), G = p(
326
+ () => {
327
+ var e;
328
+ return Pe(((e = C.value) == null ? void 0 : e.pricing_plan_schedule) ?? {});
329
+ }
330
+ ), L = p(
353
331
  () => {
354
- var s;
355
- return ke(((s = o.value) == null ? void 0 : s.pricing_plan_schedule_infos) ?? []);
332
+ var e;
333
+ return Se((e = C.value) == null ? void 0 : e.pricing_plan_schedule);
356
334
  }
357
- ), k = _(() => {
358
- var I;
359
- const s = G.value;
360
- if (!s)
335
+ ), P = p(() => {
336
+ const e = ue.value;
337
+ if (!e)
361
338
  return;
362
- const { enabledPricingId: r } = l.configuration;
363
- return (r ? [r] : (((I = s.pricing_plan_schedule) == null ? void 0 : I.enabled_pricings) ?? []).map(
364
- ({ pricing_id: p }) => p
365
- )).map(
366
- (p) => Oe({ pricingPlanScheduleInfo: s, pricingId: p })
367
- ).find((p) => !!p);
368
- }), ne = _(
339
+ const { enabledPricingId: i } = l.configuration;
340
+ return (i ? [i] : G.value).map(
341
+ (_) => Ge({ pricingPlanScheduleInfo: e, pricingId: _ })
342
+ ).find((_) => !!_);
343
+ }), me = p(
369
344
  () => {
370
- var s;
371
- return t(
345
+ var e;
346
+ return o(
372
347
  {
373
348
  defaultMessage: "Manage {subject}",
374
349
  id: "subscription_management.title",
375
350
  description: "Title for the manage subscription page, naming the pricing group being changed"
376
351
  },
377
352
  {
378
- subject: ((s = k.value) == null ? void 0 : s.name) || t({
353
+ subject: ((e = P.value) == null ? void 0 : e.name) || o({
379
354
  defaultMessage: "subscription",
380
355
  id: "subscription_management.title.default_subject",
381
356
  description: 'Stands in for the pricing group name in the manage subscription title when no group is known, e.g. "Manage subscription"'
@@ -383,165 +358,212 @@ const De = { class: "sv-subscription-management-form__body grid grid-cols-1 gap-
383
358
  }
384
359
  );
385
360
  }
386
- ), $ = S([]), V = S();
387
- F(
388
- [G, k],
389
- ([s, r]) => {
390
- var W;
391
- const w = (((W = s == null ? void 0 : s.pricing_plan_schedule) == null ? void 0 : W.enabled_pricings) ?? []).map(
392
- ({ pricing_id: O }) => O
393
- ), { enabledPricingId: I } = l.configuration, p = ((r == null ? void 0 : r.pricings) ?? []).map(({ id: O }) => O);
394
- $.value = I && p.includes(I) ? [...w.filter((O) => !p.includes(O)), I] : w;
361
+ ), T = E([]), x = E();
362
+ Y(
363
+ [G, P],
364
+ ([e, i]) => {
365
+ const { enabledPricingId: v } = l.configuration, _ = ((i == null ? void 0 : i.pricings) ?? []).map(({ id: k }) => k);
366
+ T.value = v && _.includes(v) ? [...e.filter((k) => !_.includes(k)), v] : e;
395
367
  },
396
368
  { immediate: !0 }
397
369
  );
398
- const {
399
- invoice: ie,
400
- isPending: ae,
401
- error: se,
402
- load: oe
403
- } = Ve();
404
- F(
405
- [$, o],
406
- ([s, r]) => {
407
- !r || s.length === 0 || oe({
408
- subscription: r,
409
- enabledPricingIds: s
370
+ const de = p(() => {
371
+ const e = new Set(T.value), i = new Set(G.value);
372
+ return e.size !== i.size || [...e].some((v) => !i.has(v));
373
+ }), {
374
+ invoice: J,
375
+ isPending: Q,
376
+ error: X,
377
+ load: pe
378
+ } = Ke();
379
+ Y(
380
+ [T, n, C, L],
381
+ ([e, i, v, _]) => {
382
+ !i || e.length === 0 || _ || pe({
383
+ subscription: i,
384
+ scheduleInfo: v,
385
+ enabledPricingIds: e
410
386
  });
411
387
  },
412
388
  { immediate: !0 }
413
389
  );
414
- const j = S(!1), N = S(), D = S(!1), Y = _(
415
- () => !U.value && !j.value && $.value.length > 0 && !!o.value && !!V.value
416
- ), re = async () => {
417
- if (!(!Y.value || !o.value)) {
418
- j.value = !0, N.value = void 0;
390
+ const B = E(!1), D = E(), R = E(!1), ee = p(
391
+ () => !j.value && !B.value && !!n.value && !!P.value && !L.value && T.value.length > 0 && de.value && !!x.value && !Q.value && !X.value && !!J.value
392
+ ), ge = async () => {
393
+ if (!(!ee.value || !n.value)) {
394
+ B.value = !0, D.value = void 0;
419
395
  try {
420
- await y({
421
- pricingPlanSubscriptionId: o.value.id,
422
- enabledPricings: $.value.map((s) => ({
423
- pricing_id: s
396
+ await u({
397
+ pricingPlanSubscriptionId: n.value.id,
398
+ enabledPricings: T.value.map((e) => ({
399
+ pricing_id: e
424
400
  }))
425
- }), D.value = !0;
426
- } catch (s) {
427
- d.error(
401
+ }), R.value = !0;
402
+ } catch (e) {
403
+ w.error(
428
404
  "SUBSCRIPTION_UPDATE_FAILED",
429
405
  "Failed to start a new pricing plan schedule",
430
406
  {},
431
- s
432
- ), N.value = t({
407
+ e
408
+ ), D.value = o({
433
409
  defaultMessage: "Something went wrong. Please try again.",
434
410
  id: "subscription_management.update_error",
435
411
  description: "Error shown when committing a subscription change fails"
436
412
  });
437
413
  } finally {
438
- j.value = !1;
414
+ B.value = !1;
439
415
  }
440
416
  }
441
- }, q = _(
417
+ }, V = p(
442
418
  () => {
443
- var s, r, w;
444
- return ((r = (s = G.value) == null ? void 0 : s.pricing_plan_schedule) == null ? void 0 : r.billing_period) ?? ((w = o.value) == null ? void 0 : w.billing_period);
419
+ var e, i, v;
420
+ return ((i = (e = C.value) == null ? void 0 : e.pricing_plan_schedule) == null ? void 0 : i.billing_period) ?? ((v = n.value) == null ? void 0 : v.billing_period);
445
421
  }
446
- );
447
- return (s, r) => (m(), g(e(be), { class: "sv-subscription-management sv-root sv-screen" }, {
448
- header: f(() => [
449
- C("div", Ke, [
450
- h(e(Z), {
422
+ ), $ = p(() => R.value ? "updated" : j.value ? "loading" : h.value ? "load-error" : P.value && L.value ? "customized" : P.value && V.value ? "form" : "empty"), ve = p(() => {
423
+ const e = $.value === "customized" ? se : $.value === "form" && Z.value.length === 0 ? s : void 0;
424
+ return { form: F, ...e && { "aria-describedby": e } };
425
+ });
426
+ return (e, i) => (r(), c(t(Ne), { class: "sv-subscription-management sv-root sv-screen" }, {
427
+ header: m(() => [
428
+ N("div", at, [
429
+ O(t(K), {
451
430
  variant: "heading-2",
452
431
  tag: "h1",
453
432
  class: "sv-subscription-management__title"
454
433
  }, {
455
- default: f(() => [
456
- T(A(ne.value), 1)
434
+ default: m(() => [
435
+ S(y(me.value), 1)
457
436
  ]),
458
437
  _: 1
459
438
  })
460
439
  ])
461
440
  ]),
462
- content: f(() => {
463
- var w, I;
441
+ content: m(() => {
442
+ var v, _;
464
443
  return [
465
- D.value ? (m(), g(We, {
444
+ $.value === "updated" ? (r(), c(it, {
466
445
  key: 0,
467
446
  class: "sv-subscription-management__success",
468
- "pricing-group-name": (w = k.value) == null ? void 0 : w.name
469
- }, null, 8, ["pricing-group-name"])) : e(U) ? (m(), g(ee, {
447
+ "pricing-group-name": (v = P.value) == null ? void 0 : v.name
448
+ }, null, 8, ["pricing-group-name"])) : $.value === "loading" ? (r(), c(re, {
470
449
  key: 1,
471
450
  variant: "section",
472
451
  class: "min-h-[220px]"
473
- })) : k.value && q.value ? (m(), g(Fe, {
452
+ })) : $.value === "load-error" ? (r(), c(t(H), {
474
453
  key: 2,
475
- "enabled-pricing-ids": $.value,
476
- "onUpdate:enabledPricingIds": r[0] || (r[0] = (p) => $.value = p),
477
- "payment-method-id": V.value,
478
- "onUpdate:paymentMethodId": r[1] || (r[1] = (p) => V.value = p),
454
+ class: "sv-subscription-management__load-error sv-error",
455
+ title: t(o)({
456
+ defaultMessage: "Unable to load this subscription. Please try again later.",
457
+ id: "subscription_management.load_error",
458
+ description: "Error shown in place of the manage subscription form when the subscription cannot be loaded"
459
+ })
460
+ }, null, 8, ["title"])) : $.value === "customized" ? (r(), c(ae, {
461
+ key: 3,
462
+ class: "sv-subscription-management__customized-pricing",
463
+ icon: "info"
464
+ }, {
465
+ title: m(() => [
466
+ S(y(t(o)({
467
+ defaultMessage: "This subscription has custom pricing",
468
+ id: "subscription_management.customized_pricing.title",
469
+ description: "Title shown on the manage subscription screen in place of the form when the subscription has pricing customized for it, which cannot be changed here"
470
+ })), 1)
471
+ ]),
472
+ message: m(() => [
473
+ N("span", { id: se }, y(t(o)({
474
+ defaultMessage: "Please contact support to change it.",
475
+ id: "subscription_management.customized_pricing.message",
476
+ description: "Message shown on the manage subscription screen when the subscription has pricing customized for it, which cannot be changed here"
477
+ })), 1)
478
+ ]),
479
+ _: 1
480
+ })) : $.value === "form" && P.value && V.value ? (r(), c(Qe, {
481
+ key: 4,
482
+ id: F,
483
+ "enabled-pricing-ids": T.value,
484
+ "onUpdate:enabledPricingIds": i[0] || (i[0] = (k) => T.value = k),
485
+ "payment-method-id": x.value,
486
+ "onUpdate:paymentMethodId": i[1] || (i[1] = (k) => x.value = k),
479
487
  class: "sv-subscription-management__form",
480
- "pricing-group": k.value,
481
- "payment-methods": e(a),
482
- "payment-method-options": e(P),
483
- "billing-period": q.value,
484
- currency: (I = e(o)) == null ? void 0 : I.billing_currency,
485
- onAddPaymentMethod: r[2] || (r[2] = (p) => x.value = !0)
486
- }, null, 8, ["enabled-pricing-ids", "payment-method-id", "pricing-group", "payment-methods", "payment-method-options", "billing-period", "currency"])) : R("", !0),
487
- h(He, {
488
- "show-modal": x.value,
489
- customer: e(u),
490
- "payment-method-options": e(P),
491
- onSuccess: te,
492
- onClose: r[3] || (r[3] = (p) => x.value = !1)
493
- }, null, 8, ["show-modal", "customer", "payment-method-options"])
488
+ "pricing-group": P.value,
489
+ "payment-methods": Z.value,
490
+ "billing-period": V.value,
491
+ currency: (_ = t(n)) == null ? void 0 : _.billing_currency,
492
+ disabled: B.value,
493
+ onSubmit: ge
494
+ }, null, 8, ["enabled-pricing-ids", "payment-method-id", "pricing-group", "payment-methods", "billing-period", "currency", "disabled"])) : (r(), c(ae, {
495
+ key: 5,
496
+ class: "sv-subscription-management__empty-state",
497
+ icon: "receipt_long"
498
+ }, {
499
+ title: m(() => [
500
+ S(y(t(o)({
501
+ defaultMessage: "Nothing to change",
502
+ id: "subscription_management.empty_state.title",
503
+ description: "Title shown on the manage subscription screen when the subscription has nothing the customer can change"
504
+ })), 1)
505
+ ]),
506
+ message: m(() => [
507
+ S(y(t(o)({
508
+ defaultMessage: "This subscription has no options that can be changed right now.",
509
+ id: "subscription_management.empty_state.message",
510
+ description: "Message shown on the manage subscription screen when the subscription is not running or has no group of options to choose from"
511
+ })), 1)
512
+ ]),
513
+ _: 1
514
+ }))
494
515
  ];
495
516
  }),
496
- aside: f(() => [
497
- D.value ? (m(), g(e(J), {
517
+ aside: m(() => [
518
+ R.value ? (r(), c(t(ie), {
498
519
  key: 0,
499
520
  size: "lg",
500
521
  class: "sv-action sv-action--primary sv-action--full-width sv-subscription-management__done w-full",
501
522
  type: "button",
502
- onClick: r[4] || (r[4] = (w) => e(v)({ action: "navigate-to-customer-overview" }))
523
+ onClick: i[2] || (i[2] = (v) => t(I)({ action: "navigate-to-customer-overview" }))
503
524
  }, {
504
- default: f(() => [
505
- T(A(e(t)({
525
+ default: m(() => [
526
+ S(y(t(o)({
506
527
  defaultMessage: "Done",
507
528
  id: "subscription_management.done_button.label",
508
529
  description: "Label of the button that leaves the manage subscription screen once the change is committed"
509
530
  })), 1)
510
531
  ]),
511
532
  _: 1
512
- })) : (m(), z(me, { key: 1 }, [
513
- h(ze, {
514
- class: "sv-subscription-management__summary",
515
- invoice: e(ie),
516
- "is-pending": e(U) || e(ae),
517
- "has-error": !!e(se)
518
- }, null, 8, ["invoice", "is-pending", "has-error"]),
519
- N.value ? (m(), g(e(Q), {
533
+ })) : (r(), W(fe, { key: 1 }, [
534
+ L.value ? q("", !0) : (r(), c(et, {
520
535
  key: 0,
536
+ class: "sv-subscription-management__summary",
537
+ invoice: t(J),
538
+ "is-pending": t(j) || t(Q),
539
+ "has-error": !!t(X)
540
+ }, null, 8, ["invoice", "is-pending", "has-error"])),
541
+ D.value ? (r(), c(t(H), {
542
+ key: 1,
521
543
  class: "sv-subscription-management__update-error sv-error",
522
- title: N.value
523
- }, null, 8, ["title"])) : R("", !0),
524
- C("div", Je, [
525
- h(e(J), {
544
+ title: D.value
545
+ }, null, 8, ["title"])) : q("", !0),
546
+ N("div", st, [
547
+ O(t(ie), ye({
526
548
  size: "lg",
527
549
  class: "sv-action sv-action--primary sv-action--full-width sv-subscription-management__update w-full",
528
- type: "button",
529
- disabled: !Y.value,
530
- loading: j.value,
531
- onClick: re
532
- }, {
533
- default: f(() => [
534
- T(A(e(t)({
550
+ type: "submit"
551
+ }, ve.value, {
552
+ disabled: !ee.value,
553
+ loading: B.value
554
+ }), {
555
+ default: m(() => [
556
+ S(y(t(o)({
535
557
  defaultMessage: "Update subscription",
536
558
  id: "subscription_management.update_button.label",
537
559
  description: "Label of the button that commits the subscription change"
538
560
  })), 1)
539
561
  ]),
540
562
  _: 1
541
- }, 8, ["disabled", "loading"]),
542
- h(Ce, {
563
+ }, 16, ["disabled", "loading"]),
564
+ O(Re, {
543
565
  class: "sv-subscription-management__kpi",
544
- "payment-method-options": e(P)
566
+ "payment-method-options": t(ce)
545
567
  }, null, 8, ["payment-method-options"])
546
568
  ])
547
569
  ], 64))
@@ -549,7 +571,7 @@ const De = { class: "sv-subscription-management-form__body grid grid-cols-1 gap-
549
571
  _: 1
550
572
  }));
551
573
  }
552
- }), Xe = /* @__PURE__ */ M({
574
+ }), rt = /* @__PURE__ */ A({
553
575
  __name: "SubscriptionManagement.entry",
554
576
  props: {
555
577
  environment: { type: String },
@@ -568,24 +590,31 @@ const De = { class: "sv-subscription-management-form__body grid grid-cols-1 gap-
568
590
  branding: { type: Object },
569
591
  configuration: { type: Object }
570
592
  },
571
- setup(n) {
572
- const l = Ge("subscription-management");
573
- return (t, c) => (m(), g(e(fe), {
574
- entry: t.$props,
575
- "component-name": e(l),
576
- "allowed-portal-types": ["CUSTOMER"],
577
- onError: c[0] || (c[0] = (d) => t.$emit("error", d))
578
- }, {
579
- default: f(() => [
580
- h(Qe, { configuration: n.configuration }, null, 8, ["configuration"])
581
- ]),
582
- _: 1
583
- }, 8, ["entry", "component-name"]));
593
+ setup(a) {
594
+ const l = ke("subscription-management");
595
+ return (s, g) => {
596
+ var d;
597
+ return r(), c(t($e), {
598
+ entry: s.$props,
599
+ "component-name": t(l),
600
+ "allowed-portal-types": ["CUSTOMER"],
601
+ "required-configuration": { subscriptionId: (d = a.configuration) == null ? void 0 : d.subscriptionId },
602
+ onError: g[0] || (g[0] = (o) => s.$emit("error", o))
603
+ }, {
604
+ default: m(() => [
605
+ (r(), c(ot, {
606
+ key: a.configuration.subscriptionId,
607
+ configuration: a.configuration
608
+ }, null, 8, ["configuration"]))
609
+ ]),
610
+ _: 1
611
+ }, 8, ["entry", "component-name", "required-configuration"]);
612
+ };
584
613
  }
585
- }), { define: It } = ve(
586
- Xe,
614
+ }), { define: Ot } = Oe(
615
+ rt,
587
616
  "subscription-management"
588
617
  );
589
618
  export {
590
- It as defineSolvimonSubscriptionManagement
619
+ Ot as defineSolvimonSubscriptionManagement
591
620
  };