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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (500) hide show
  1. package/README.md +151 -17
  2. package/dist/{Alert.vue.es-lIiAWf2S.mjs → Alert.vue.es-CNrEaLvh.mjs} +58 -46
  3. package/dist/ApiStatus-CSFKl_ra.mjs +9 -0
  4. package/dist/AuthProvider.handle-DKfNs8rr.mjs +50 -0
  5. package/dist/{Avatar.vue.es-sfMZiX7A.mjs → Avatar.vue.es-r0NbcIib.mjs} +1 -1
  6. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-DmY3a-Wi.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-Cp4yGqaw.mjs} +18 -19
  7. package/dist/{Button.vue.es-Cmjfm4jw.mjs → Button.vue.es-Zw--kuaU.mjs} +4 -4
  8. package/dist/{ChargeOnDemandModal-CB4mrvkU.mjs → ChargeOnDemandModal-B8FDkS9U.mjs} +240 -251
  9. package/dist/Checkout.entry.ce-DsGl-5aR.mjs +4202 -0
  10. package/dist/CheckoutAddressFields.vue_vue_type_script_setup_true_lang-2D8VM_7W.mjs +828 -0
  11. package/dist/{Chip.vue.es-DksjbJO8.mjs → Chip.vue.es-D3UDSyXC.mjs} +35 -21
  12. package/dist/Comparators.vue.es-DQBI3f7m.mjs +103 -0
  13. package/dist/ContentWithAsideLayout-Bnbsq8_5.mjs +32 -0
  14. package/dist/{ContextMenu.vue.es-zRvoEJlV.mjs → ContextMenu.vue.es-B9mFpUQK.mjs} +87 -88
  15. package/dist/{CustomerBillingInformation.vue.es-DhFbpZPK.mjs → CustomerBillingInformation.vue.es-B8NiQaJs.mjs} +3 -3
  16. package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-B41la-T7.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-DBivC5Eb.mjs} +27 -30
  17. package/dist/CustomerShippingAddresses-Bj8Y17O8.mjs +397 -0
  18. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BmPKfIjT.mjs +2927 -0
  19. package/dist/{DividerText.vue.es-nAo1eRMV.mjs → DividerText.vue.es-CNbgif-3.mjs} +1 -1
  20. package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CVP-7ne3.mjs +55 -0
  21. package/dist/{ErrorNotification.vue.es-h-D37rfG.mjs → ErrorNotification.vue.es-DNd65mQq.mjs} +2 -2
  22. package/dist/FormMessage.vue.es-Cjv358Ab.mjs +39 -0
  23. package/dist/{IconButton.vue.es-DvfErUOq.mjs → IconButton.vue.es-C8lYFx5_.mjs} +2 -2
  24. package/dist/{IconTitle.vue.es-B_8bS0tn.mjs → IconTitle.vue.es-O2kcqgKm.mjs} +3 -3
  25. package/dist/Input.vue.es-D8Oj8MWv.mjs +250 -0
  26. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-gpMtYNzn.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-rhqYVdfV.mjs} +14 -13
  27. package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-06R-M8Q3.mjs +56 -0
  28. package/dist/InvoicePreview.vue.es-4Q2hzaFS.mjs +286 -0
  29. package/dist/InvoicePricingClauseChip.vue.es-DKU0xu0t.mjs +124 -0
  30. package/dist/Label.vue.es-DtpLM1KH.mjs +113 -0
  31. package/dist/{Modal.vue.es-BeI5C9-9.mjs → Modal.vue.es-C8ZcO117.mjs} +109 -103
  32. package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-3DQLCR3U.mjs +441 -0
  33. package/dist/PaymentCompletedCard.vue_vue_type_script_setup_true_lang-DfTb9psX.mjs +48 -0
  34. package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-DqHcOnZp.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-BoGTtg5G.mjs} +70 -113
  35. package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DlqoWKQq.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BIAm22Kq.mjs} +3 -3
  36. package/dist/{PaymentHistoryBlock-mCqdFjnL.mjs → PaymentHistoryBlock-BvY2nXGV.mjs} +1 -1
  37. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DxaY3eFN.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-bQKhUonq.mjs} +24 -24
  38. package/dist/{PaymentIntegrationForm-DVx4DEtD.mjs → PaymentIntegrationForm-CcfQSzKM.mjs} +1 -1
  39. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CvzcLJVq.mjs +181 -0
  40. package/dist/{PaymentIntegrationFormAdyen-Yr8p5Fly.mjs → PaymentIntegrationFormAdyen-DqgDfO6K.mjs} +422 -311
  41. package/dist/PaymentIntegrationFormStripe-BYdAkvLt.mjs +757 -0
  42. package/dist/{PaymentMethod.vue.es-4YRmQZHX.mjs → PaymentMethod.vue.es-b0p3a0L-.mjs} +7 -7
  43. package/dist/{PaymentMethodForm-Dnj_7mJU.mjs → PaymentMethodForm-BsTrTwCg.mjs} +1 -1
  44. package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-DsD3UjkC.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-sUOmLORl.mjs} +57 -65
  45. package/dist/PaymentMethodSelector.vue_vue_type_script_setup_true_lang-DsnAhR79.mjs +169 -0
  46. package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-CjECKNi_.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-CSW4LfmH.mjs} +13 -8
  47. package/dist/PlanCustomizationEditor-D29N4HUM.mjs +711 -0
  48. package/dist/PortalLinkUnverified-B_EE2wTJ.mjs +52 -0
  49. package/dist/PortalNotAvailable-DPE9y37H.mjs +25 -0
  50. package/dist/{PricingGroupRangeInput.vue.es-BhNcjD7z.mjs → PricingGroupRangeInput.vue.es-tIMXIhpZ.mjs} +14 -13
  51. package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CmJITenR.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DqxWxSQe.mjs} +48 -48
  52. package/dist/RadioGroupExtended.vue.es-3nDXqIGi.mjs +176 -0
  53. package/dist/{Section.vue.es-DVEpre9O.mjs → Section.vue.es-CvX9tg2f.mjs} +1 -1
  54. package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Cl7I1Apo.mjs +60 -0
  55. package/dist/ShippingAddressesModal-C4p1IXXk.mjs +418 -0
  56. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-D7MFjvrP.mjs +32 -0
  57. package/dist/{StepInput.vue.es-o-3Lg4Ai.mjs → StepInput.vue.es-DweyzpkL.mjs} +5 -4
  58. package/dist/{SubscriptionDetails.entry.ce-CGl6Z5ql.mjs → SubscriptionDetails.entry.ce-D5SwM0YS.mjs} +448 -460
  59. package/dist/{SubscriptionSchedules-DuWZmnD2.mjs → SubscriptionSchedules-BZqlpAtk.mjs} +1 -1
  60. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-BH7DdOWK.mjs +5185 -0
  61. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-DoJxiqVB.mjs +203 -0
  62. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-BsdevoeT.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BbjdBHSQ.mjs} +126 -90
  63. package/dist/TooltipParagraph.vue.es-Dw0ndjle.mjs +132 -0
  64. package/dist/TranslationOverride.vue_vue_type_script_setup_true_lang-BhjZVMSx.mjs +31 -0
  65. package/dist/{TrialChip.vue.es-Dmv3lPiQ.mjs → TrialChip.vue.es-DOopmaXA.mjs} +2 -2
  66. package/dist/addressFormats.data-dzBx49dw.mjs +278 -0
  67. package/dist/amount-CondixVt.mjs +36 -0
  68. package/dist/{api.es-QaC926Xu.mjs → api.es-qgvzNMU-.mjs} +2 -2
  69. package/dist/{cn.es-Cvt6TIwv.mjs → cn.es-B8acFrov.mjs} +385 -477
  70. package/dist/{comparators.es-D8WGL-c4.mjs → comparators.es-C8rHpb70.mjs} +17 -13
  71. package/dist/components/BillingInformation/BillingInformation.mjs +11 -10
  72. package/dist/components/BillingInformationForm/BillingInformationForm.mjs +397 -350
  73. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +20 -19
  74. package/dist/components/Invoice/Invoice.mjs +2691 -227
  75. package/dist/components/InvoiceDetails/InvoiceDetails.mjs +66 -62
  76. package/dist/components/InvoiceHeader/InvoiceHeader.mjs +40 -40
  77. package/dist/components/InvoicesList/InvoicesList.mjs +20 -18
  78. package/dist/components/PaymentHistory/PaymentHistory.mjs +72 -64
  79. package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +33 -31
  80. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +49 -45
  81. package/dist/components/SubscriptionsList/SubscriptionsList.mjs +47 -31
  82. package/dist/components/WalletBalances/WalletBalances.mjs +22 -21
  83. package/dist/core/index.mjs +61 -95
  84. package/dist/customElements-BTj4ii4f.mjs +5072 -0
  85. package/dist/customer-BIjC0CWJ.mjs +31 -0
  86. package/dist/customer.es-DQKl6wFt.mjs +24 -0
  87. package/dist/{de-DE-DKp5LCu0.mjs → de-DE-DBbERiFr.mjs} +110 -18
  88. package/dist/{de-DE-jkW2dJrX.mjs → de-DE-UJ6X6jXu.mjs} +16 -10
  89. package/dist/floating-ui.vue.es-BvAf8-si.mjs +1003 -0
  90. package/dist/formControl-BZQLHnOO.mjs +749 -0
  91. package/dist/fr-FR-Cvvbkwlj.mjs +307 -0
  92. package/dist/fr-FR-IWJE-urI.mjs +431 -0
  93. package/dist/icon-sprite.svg.es-BWBB8SGw.mjs +4 -0
  94. package/dist/{index.es-CXkP_k3u.mjs → index.es-C7J3WGGo.mjs} +4 -4
  95. package/dist/index.es-CpmQmvOg.mjs +633 -0
  96. package/dist/index.mjs +2 -2
  97. package/dist/invoiceState-BJVHaKs7.mjs +14 -0
  98. package/dist/{invoices-3520M5AN.mjs → invoices-e1sKLgxg.mjs} +40 -35
  99. package/dist/{it-IT-BgFVsO5S.mjs → it-IT-B7ui2oxO.mjs} +110 -18
  100. package/dist/{it-IT-CaaFToGB.mjs → it-IT-DnJP5URH.mjs} +9 -3
  101. package/dist/{nl-NL-UiRWbO9S.mjs → nl-NL-Bafh2xoT.mjs} +116 -24
  102. package/dist/{nl-NL-D0MQKaql.mjs → nl-NL-q9xfTZF0.mjs} +12 -6
  103. package/dist/paymentMethods-B_82JGk_.mjs +77 -0
  104. package/dist/paymentMethods-Nfv9HdkS.mjs +61 -0
  105. package/dist/paymentOutcome-BXEU5-84.mjs +67 -0
  106. package/dist/payments-BnxbzQUC.mjs +68 -0
  107. package/dist/{pricing-BIMpDI_p.mjs → pricing-BOhvWWMj.mjs} +3 -3
  108. package/dist/pricingItemConfigs.es-D3pX_9AJ.mjs +78 -0
  109. package/dist/pricingPlanScheduleOverrides-Dxv5FOBd.mjs +233 -0
  110. package/dist/pricingPlanSchedules-Dv7ZCgNp.mjs +38 -0
  111. package/dist/sanitization.es-C6dbuxUJ.mjs +4 -0
  112. package/dist/screens/Checkout/Checkout.mjs +2 -2
  113. package/dist/screens/CustomerOverview/CustomerOverview.mjs +146 -94
  114. package/dist/screens/PayInvoice/PayInvoice.mjs +603 -278
  115. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +102 -88
  116. package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +2 -2
  117. package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +371 -347
  118. package/dist/sessionReference-B8Dbmx5t.mjs +38 -0
  119. package/dist/sorting.es-CVyKw23D.mjs +77 -0
  120. package/dist/subscription-BhxoqwcT.mjs +83 -0
  121. package/dist/subscriptions-BWXZGK0E.mjs +66 -0
  122. package/dist/taxId.es-DkD3Ltr8.mjs +243 -0
  123. package/dist/types/components/InvoiceTable/InvoiceTable.types.d.ts +2 -0
  124. package/dist/types/components/checkout/PromotionCodeSection.types.d.ts +2 -0
  125. package/dist/types/components/customer/CheckoutForm/CheckoutAddressFields.types.d.ts +22 -0
  126. package/dist/types/components/customer/CheckoutForm/CheckoutForm.types.d.ts +15 -0
  127. package/dist/types/components/customer/CustomerPaymentMethodsBlock/CustomerPaymentMethodsBlock.types.d.ts +0 -2
  128. package/dist/types/components/customer/ShippingAddressForm/ShippingAddressForm.types.d.ts +9 -0
  129. package/dist/types/components/customer/ShippingAddresses/ShippingAddressCard.types.d.ts +11 -0
  130. package/dist/types/components/customer/ShippingAddresses/ShippingAddressList.types.d.ts +9 -0
  131. package/dist/types/components/customer/ShippingAddresses/ShippingAddressesModal.types.d.ts +26 -0
  132. package/dist/types/components/invoices/InvoiceOrderSummary/InvoiceOrderSummary.types.d.ts +5 -0
  133. package/dist/types/components/payments/OnDemandPaymentModalShell/OnDemandPaymentModalShell.types.d.ts +0 -1
  134. package/dist/types/components/payments/PayButton/PayButton.types.d.ts +2 -0
  135. package/dist/types/components/payments/PaymentCompletedCard/PaymentCompletedCard.types.d.ts +0 -2
  136. package/dist/types/components/payments/PaymentErrorCard/PaymentErrorCard.types.d.ts +9 -2
  137. package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +47 -4
  138. package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripeFrame.types.d.ts +11 -1
  139. package/dist/types/components/payments/PaymentMethodSelector/PaymentMethodSelector.types.d.ts +0 -4
  140. package/dist/types/components/providers/AuthProvider/AuthProvider.handle.d.ts +17 -0
  141. package/dist/types/components/providers/AuthProvider/AuthProvider.lib.d.ts +30 -3
  142. package/dist/types/components/providers/AuthProvider/AuthProvider.types.d.ts +12 -0
  143. package/dist/types/components/providers/AuthProvider/AuthProvider.vue.d.ts +3 -1
  144. package/dist/types/components/providers/AuthProvider/composables/useAuth.d.ts +1 -3
  145. package/dist/types/components/providers/ConfigProvider/ConfigProvider.lib.d.ts +2 -4
  146. package/dist/types/components/providers/CssOverridesProvider/CssOverridesProvider.lib.d.ts +11 -0
  147. package/dist/types/components/providers/EntryProvider/EntryProvider.lib.d.ts +7 -0
  148. package/dist/types/components/providers/EntryProvider/EntryProvider.types.d.ts +2 -0
  149. package/dist/types/components/providers/EntryProvider/EntryProvider.vue.d.ts +3 -1
  150. package/dist/types/components/providers/ErrorBoundary/ErrorBoundary.vue.d.ts +5 -1
  151. package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.lib.d.ts +2 -2
  152. package/dist/types/components/providers/HostElementProvider/HostElementProvider.lib.d.ts +6 -1
  153. package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +2 -2
  154. package/dist/types/components/providers/LoggerProvider/LoggerProvider.vue.d.ts +5 -1
  155. package/dist/types/components/providers/PortalProvider/PortalProvider.lib.d.ts +10 -7
  156. package/dist/types/components/providers/PortalProvider/PortalProvider.types.d.ts +1 -1
  157. package/dist/types/components/providers/PortalProvider/PortalProvider.vue.d.ts +3 -1
  158. package/dist/types/components/providers/PortalProvider/composables/usePortal.d.ts +2 -2
  159. package/dist/types/components/providers/Provider/Provider.types.d.ts +2 -2
  160. package/dist/types/components/providers/Provider/Provider.vue.d.ts +13 -4
  161. package/dist/types/components/providers/RequiredPropertiesGuard/RequiredPropertiesGuard.vue.d.ts +17 -0
  162. package/dist/types/components/providers/TranslationProvider/TranslationProvider.lib.d.ts +7 -2
  163. package/dist/types/components/providers/TranslationProvider/TranslationProvider.types.d.ts +1 -1
  164. package/dist/types/components/subscriptions/ChargeOnDemandModal/ChargeOnDemandModal.types.d.ts +1 -2
  165. package/dist/types/components/subscriptions/EnabledPricingsList/EnabledPricingsListItem.types.d.ts +2 -0
  166. package/dist/types/components/subscriptions/OrderSummary.types.d.ts +1 -10
  167. package/dist/types/components/subscriptions/OrderSummaryInvoice.types.d.ts +16 -0
  168. package/dist/types/components/subscriptions/SubscriptionCancellationModal/SubscriptionCancellationModal.types.d.ts +5 -1
  169. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +10 -16
  170. package/dist/types/components/subscriptions/SubscriptionSummary.types.d.ts +1 -14
  171. package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsList.types.d.ts +4 -1
  172. package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsListItem.types.d.ts +1 -2
  173. package/dist/types/components/wallets/AutoTopUpConfig/AutoTopUpConfig.types.d.ts +0 -3
  174. package/dist/types/components/wallets/TopUpModal/TopUpModalForm.types.d.ts +3 -1
  175. package/dist/types/components/wallets/TopUpModal/TopUpModalSuccess.types.d.ts +1 -7
  176. package/dist/types/public/components/BillingInformation/BillingInformation.entry.ce.d.ts +1 -1
  177. package/dist/types/public/components/BillingInformation/BillingInformation.types.d.ts +0 -3
  178. package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.ce.d.ts +1 -1
  179. package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.entry.ce.d.ts +1 -1
  180. package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.types.d.ts +0 -1
  181. package/dist/types/public/components/CustomerShippingAddresses/CustomerShippingAddresses.types.d.ts +12 -0
  182. package/dist/types/public/components/Invoice/Invoice.entry.ce.d.ts +1 -1
  183. package/dist/types/public/components/Invoice/Invoice.types.d.ts +0 -1
  184. package/dist/types/public/components/InvoiceDetails/InvoiceDetails.entry.ce.d.ts +1 -1
  185. package/dist/types/public/components/InvoiceDetails/InvoiceDetails.entry.types.d.ts +3 -2
  186. package/dist/types/public/components/InvoiceDetails/InvoiceDetails.types.d.ts +0 -2
  187. package/dist/types/public/components/InvoiceHeader/InvoiceHeader.entry.ce.d.ts +1 -1
  188. package/dist/types/public/components/InvoiceHeader/InvoiceHeader.types.d.ts +0 -1
  189. package/dist/types/public/components/InvoicesList/InvoicesList.entry.ce.d.ts +1 -1
  190. package/dist/types/public/components/InvoicesList/InvoicesList.types.d.ts +2 -0
  191. package/dist/types/public/components/PaymentHistory/PaymentHistory.entry.ce.d.ts +1 -1
  192. package/dist/types/public/components/PaymentHistory/PaymentHistory.entry.types.d.ts +3 -2
  193. package/dist/types/public/components/PaymentHistory/PaymentHistory.types.d.ts +0 -2
  194. package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.ce.d.ts +1 -1
  195. package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.entry.ce.d.ts +1 -1
  196. package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.entry.types.d.ts +3 -2
  197. package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.types.d.ts +0 -2
  198. package/dist/types/public/components/SubscriptionsList/SubscriptionsList.entry.ce.d.ts +1 -1
  199. package/dist/types/public/components/SubscriptionsList/SubscriptionsList.types.d.ts +3 -0
  200. package/dist/types/public/components/WalletBalances/WalletBalances.entry.ce.d.ts +1 -1
  201. package/dist/types/public/components/WalletBalances/WalletBalances.entry.types.d.ts +1 -3
  202. package/dist/types/public/core/action-request.types.d.ts +5 -0
  203. package/dist/types/public/core/registry.ce.d.ts +3 -3
  204. package/dist/types/public/core/registry.d.ts +0 -3
  205. package/dist/types/public/core/types.d.ts +5 -0
  206. package/dist/types/public/screens/Checkout/Checkout.entry.ce.d.ts +1 -1
  207. package/dist/types/public/screens/Checkout/Checkout.entry.types.d.ts +0 -7
  208. package/dist/types/public/screens/Checkout/Checkout.types.d.ts +2 -2
  209. package/dist/types/public/screens/CustomerOverview/CustomerOverview.entry.ce.d.ts +1 -1
  210. package/dist/types/public/screens/PayInvoice/PayInvoice.entry.ce.d.ts +1 -1
  211. package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +5 -1
  212. package/dist/types/public/screens/PaymentMethodsManagement/PaymentMethodsManagement.entry.ce.d.ts +1 -1
  213. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.entry.ce.d.ts +1 -1
  214. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.types.d.ts +1 -2
  215. package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.entry.ce.d.ts +1 -1
  216. package/dist/types/services/paymentMethods.types.d.ts +2 -10
  217. package/dist/types/services/requests.types.d.ts +16 -6
  218. package/dist/types/translations/supported.d.ts +1 -1
  219. package/dist/types/types/errors.d.ts +3 -2
  220. package/dist/types/types/portalAuthentication.d.ts +2 -0
  221. package/dist/types/types/portalToken.d.ts +9 -0
  222. package/dist/types/types/shippingAddress.d.ts +9 -0
  223. package/dist/types/vendor/@adyen/adyen-web/index.d.ts +2 -0
  224. package/dist/types/vendor/@solvimon/solvimon-types/index.d.ts +2 -0
  225. package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalPolicies.d.ts +1 -1
  226. package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalRequests.d.ts +27 -6
  227. package/dist/types/vendor/@solvimon/solvimon-types/types/ConfigMeterProperties.d.ts +3 -0
  228. package/dist/types/vendor/@solvimon/solvimon-types/types/Entitlement.d.ts +6 -0
  229. package/dist/types/vendor/@solvimon/solvimon-types/types/Integrations.d.ts +9 -1
  230. package/dist/types/vendor/@solvimon/solvimon-types/types/Invoice.d.ts +16 -1
  231. package/dist/types/vendor/@solvimon/solvimon-types/types/JWT.d.ts +10 -0
  232. package/dist/types/vendor/@solvimon/solvimon-types/types/MeterPropertyVariable.d.ts +16 -0
  233. package/dist/types/vendor/@solvimon/solvimon-types/types/Payment.d.ts +1 -1
  234. package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentAcceptor.d.ts +6 -0
  235. package/dist/types/vendor/@solvimon/solvimon-types/types/Permission.d.ts +1 -1
  236. package/dist/types/vendor/@solvimon/solvimon-types/types/Platform.d.ts +12 -3
  237. package/dist/types/vendor/@solvimon/solvimon-types/types/Portal.d.ts +71 -0
  238. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSubscription.d.ts +14 -0
  239. package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteTemplates.d.ts +1 -0
  240. package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteVersions.d.ts +35 -0
  241. package/dist/types/vendor/@solvimon/solvimon-types/types/Quotes.d.ts +16 -0
  242. package/dist/types/vendor/@solvimon/solvimon-types/types/ShippingAddress.d.ts +54 -0
  243. package/dist/types/vendor/@solvimon/solvimon-types/utils.d.ts +1 -1
  244. package/dist/types/vendor/@solvimon/solvimon-ui/components/providers/BrandProvider/BrandProvider.types.d.ts +16 -0
  245. package/dist/types/vendor/@solvimon/solvimon-ui/components/providers/IntlProvider/IntlProvider.types.d.ts +66 -0
  246. package/dist/types/vendor/@solvimon/solvimon-ui/index.d.ts +2 -0
  247. package/dist/useActionDispatchProvider-3W2vEyIg.mjs +9 -0
  248. package/dist/{useCustomer-B-jyJIVy.mjs → useCustomer-cObBvDOu.mjs} +2 -2
  249. package/dist/useCustomerFormLabels-DJWf2O17.mjs +1173 -0
  250. package/dist/useIncrementalLoading-CATuO36d.mjs +60 -0
  251. package/dist/useInvoiceData-DD44HTl7.mjs +21 -0
  252. package/dist/useInvoicesList-CpB-41MQ.mjs +674 -0
  253. package/dist/useLazyFloating.es-CycqRyeb.mjs +68 -0
  254. package/dist/useLoadInitialData-qzdnBoui.mjs +15 -0
  255. package/dist/usePaymentFormHold-ByUZi3A-.mjs +181 -0
  256. package/dist/{usePaymentMethodAvailability-DAcsKGeh.mjs → usePaymentMethodAvailability-DUdrs0Ji.mjs} +8 -8
  257. package/dist/usePaymentMethods-ByaKF7mf.mjs +21 -0
  258. package/dist/{usePayments-Cr6NlGaW.mjs → usePayments-BXABv-lF.mjs} +9 -9
  259. package/dist/usePortal-CwR_FxTb.mjs +7 -0
  260. package/dist/useService-BZcbUZHI.mjs +56 -0
  261. package/dist/{useTimePeriod.es-DWLsLFqs.mjs → useTimePeriod.es-BpdiVwg8.mjs} +1 -1
  262. package/dist/useViewport-psZejz_H.mjs +19 -0
  263. package/package.json +33 -60
  264. package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-081H9T3X.js +0 -1
  265. package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DNepCMRp.mjs +0 -223
  266. package/dist/Alert.vue.es-RyK53a2P.js +0 -1
  267. package/dist/Amount.vue.es-DExaYBqm.js +0 -1
  268. package/dist/Avatar.vue.es-BJxSCU76.js +0 -1
  269. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-BV5iEOxn.js +0 -1
  270. package/dist/Button.vue.es-BzkuglKw.js +0 -1
  271. package/dist/ChargeOnDemandModal-b17YswWA.js +0 -1
  272. package/dist/Checkout.entry.ce-HlUrJ1kh.js +0 -2
  273. package/dist/Checkout.entry.ce-X2zGo6hG.mjs +0 -4381
  274. package/dist/Chip.vue.es-B2jjzIOc.js +0 -1
  275. package/dist/Comparators.vue.es-CwhX3rbx.mjs +0 -93
  276. package/dist/Comparators.vue.es-DmkxV0gb.js +0 -1
  277. package/dist/ContentWithAsideLayout-BCM8tmZN.mjs +0 -38
  278. package/dist/ContentWithAsideLayout-RSdKXqAf.js +0 -1
  279. package/dist/ContextMenu.vue.es-DUU43tCy.js +0 -1
  280. package/dist/CustomerBillingInformation.vue.es-BfPEB42w.js +0 -1
  281. package/dist/CustomerPaymentMethods.lib-BKgQTCtc.js +0 -1
  282. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BISD6n8X.js +0 -1
  283. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DssxYPSA.mjs +0 -2688
  284. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-XufY6bdV.js +0 -1
  285. package/dist/Divider.vue.es-UwnWvUTl.js +0 -1
  286. package/dist/DividerText.vue.es-CoyDk9eH.js +0 -1
  287. package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CQ0KrXHJ.js +0 -1
  288. package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-QW9NdxyZ.mjs +0 -335
  289. package/dist/ErrorNotification.vue.es-tS9vySUZ.js +0 -1
  290. package/dist/Expand.vue.es-BtM0EZEr.js +0 -1
  291. package/dist/FormMessage.vue.es-dqATjC2N.js +0 -1
  292. package/dist/FormMessage.vue.es-jG3fQZms.mjs +0 -29
  293. package/dist/IconButton.vue.es-DgQN18Am.js +0 -1
  294. package/dist/IconTitle.vue.es-Dn2xcPHj.js +0 -1
  295. package/dist/Input.vue.es-B60eK8Ds.js +0 -1
  296. package/dist/Input.vue.es-CU9u5yKH.mjs +0 -235
  297. package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Dqdezse7.js +0 -1
  298. package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-Cl6HU243.js +0 -1
  299. package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-DNqawlYV.mjs +0 -41
  300. package/dist/InvoiceSummary.vue.es-CAmA8g0t.js +0 -1
  301. package/dist/InvoiceSummary.vue.es-CRiFJ5x-.mjs +0 -2596
  302. package/dist/Modal.vue.es-DvLB3uCG.js +0 -1
  303. package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-Dg4rn1cm.js +0 -1
  304. package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-B9R5JRJv.js +0 -1
  305. package/dist/PaymentHistoryBlock-Uw8xeKUk.js +0 -1
  306. package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-ALI5f0py.js +0 -1
  307. package/dist/PaymentIntegrationForm-Cx0zCf_C.js +0 -1
  308. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-B-viSd_i.js +0 -1
  309. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CCKCXXZX.mjs +0 -154
  310. package/dist/PaymentIntegrationFormAdyen-B-v-4nlj.js +0 -98
  311. package/dist/PaymentIntegrationFormStripe-CoLmAzas.js +0 -102
  312. package/dist/PaymentIntegrationFormStripe-Ds0BXt89.mjs +0 -587
  313. package/dist/PaymentMethod.vue.es-D0D9jW8s.js +0 -1
  314. package/dist/PaymentMethodForm-CMP5FLRO.js +0 -1
  315. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-nxnGyJmE.js +0 -1
  316. package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-CIrrQUS6.js +0 -1
  317. package/dist/PlanCustomizationEditor-DS1r2vBO.js +0 -1
  318. package/dist/PlanCustomizationEditor-DlVSCKGN.mjs +0 -722
  319. package/dist/PricingGroupRangeInput.vue.es-VoOTnHjk.js +0 -185
  320. package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-hS6A-KcP.js +0 -1
  321. package/dist/RadioGroupExtended.vue.es-9YzXzZF0.mjs +0 -163
  322. package/dist/RadioGroupExtended.vue.es-DlbURHQN.js +0 -1
  323. package/dist/Section.vue.es-Bbt0RITt.js +0 -1
  324. package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Dl7MbMlk.js +0 -1
  325. package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-xzjqB-v-.mjs +0 -687
  326. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-CJWE7wVi.mjs +0 -41
  327. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-otI7Hz2w.js +0 -1
  328. package/dist/StepInput.vue.es-H-3R4jJq.js +0 -1
  329. package/dist/SubscriptionDetails.entry.ce-CQUO_uXH.js +0 -1
  330. package/dist/SubscriptionSchedules-Dy0fUgx5.js +0 -1
  331. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-C1kTiW-H.mjs +0 -5234
  332. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-Dd_Rr6qn.js +0 -1
  333. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-CYyP4ra9.js +0 -1
  334. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-CsekphtV.mjs +0 -91
  335. package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-B4j8Clbj.js +0 -1
  336. package/dist/TooltipParagraph.vue.es-B9A17aG7.mjs +0 -129
  337. package/dist/TooltipParagraph.vue.es-DvC5Wjaz.js +0 -1
  338. package/dist/TrialChip.vue.es-CLQZ5F0n.js +0 -1
  339. package/dist/accel.svg.es-DFJXdioD.js +0 -1
  340. package/dist/ach.svg.es-BYP873jU.js +0 -1
  341. package/dist/adyen-BJfC7N6f.js +0 -1
  342. package/dist/adyenSdk-BP2XXzeJ.js +0 -1
  343. package/dist/amazon-pay.svg.es-CQWgtowB.js +0 -1
  344. package/dist/amex.svg.es-DKhW4Txt.js +0 -1
  345. package/dist/api.es-duCDtZD9.js +0 -1
  346. package/dist/apple-pay.svg.es-Dyojd0F-.js +0 -1
  347. package/dist/bacs.svg.es-GJpZs1sD.js +0 -1
  348. package/dist/bancontact.svg.es-BQh7nAup.js +0 -1
  349. package/dist/carnet.svg.es-DY04-F2L.js +0 -1
  350. package/dist/cartes-bancaires.svg.es-BleHMlkN.js +0 -1
  351. package/dist/cashapp.svg.es-MwXGYom6.js +0 -1
  352. package/dist/cn.es-C9Yqq4tg.js +0 -1
  353. package/dist/comparators.es-OGt19O9U.js +0 -1
  354. package/dist/components/BillingInformation/BillingInformation.cjs +0 -1
  355. package/dist/components/BillingInformationForm/BillingInformationForm.cjs +0 -1
  356. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs +0 -1
  357. package/dist/components/Invoice/Invoice.cjs +0 -1
  358. package/dist/components/InvoiceDetails/InvoiceDetails.cjs +0 -1
  359. package/dist/components/InvoiceHeader/InvoiceHeader.cjs +0 -1
  360. package/dist/components/InvoicesList/InvoicesList.cjs +0 -1
  361. package/dist/components/PaymentHistory/PaymentHistory.cjs +0 -1
  362. package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs +0 -1
  363. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs +0 -1
  364. package/dist/components/SubscriptionsList/SubscriptionsList.cjs +0 -1
  365. package/dist/components/WalletBalances/WalletBalances.cjs +0 -1
  366. package/dist/configuration-akTS7Wiw.js +0 -1
  367. package/dist/core/index.cjs +0 -1
  368. package/dist/countryData.es-C4jHBzfo.js +0 -1
  369. package/dist/customElements-B58FcXIN.mjs +0 -6633
  370. package/dist/customElements-DUMRMFQ5.js +0 -1215
  371. package/dist/customer-B3LPAhaD.mjs +0 -31
  372. package/dist/customer-CisTPaXj.js +0 -1
  373. package/dist/customer.es-B5ppZf0j.mjs +0 -20
  374. package/dist/customer.es-BButyYo0.js +0 -1
  375. package/dist/dana.svg.es-BDtZLpwd.js +0 -1
  376. package/dist/dankort.svg.es-CksaipXF.js +0 -1
  377. package/dist/de-DE-B4TUdnUf.js +0 -1
  378. package/dist/de-DE-DL74pMLb.js +0 -1
  379. package/dist/diners.svg.es-D6Mu1pqP.js +0 -1
  380. package/dist/discover.svg.es-DgqWCMUM.js +0 -1
  381. package/dist/eftpos.svg.es-Dk2DOT8W.js +0 -1
  382. package/dist/elo.svg.es-C-BzjuRP.js +0 -1
  383. package/dist/en-US-B2XFj-_p.js +0 -1
  384. package/dist/en-US-DQ5vlv9Z.mjs +0 -339
  385. package/dist/en-US-J85TQRI8.js +0 -1
  386. package/dist/en-US-SDhjlY_v.mjs +0 -301
  387. package/dist/eps.svg.es-B_85bP-W.js +0 -1
  388. package/dist/error-BHVZJGwD.mjs +0 -13
  389. package/dist/error-CmduqgVq.js +0 -1
  390. package/dist/floating-ui.vue.es-Bly3DGWm.js +0 -1
  391. package/dist/floating-ui.vue.es-CYt0fSY7.mjs +0 -1108
  392. package/dist/formControl-ODrpUvcA.js +0 -1
  393. package/dist/formControl-dX7l8o3c.mjs +0 -845
  394. package/dist/formatting.es-C72Nsrmh.js +0 -1
  395. package/dist/gcash.svg.es-BKAdhWzv.js +0 -1
  396. package/dist/getComposedString.es-haS4bAj7.js +0 -1
  397. package/dist/getCountryNameByCode.es-Xxc0nZsH.js +0 -1
  398. package/dist/girocard.svg.es-HSOEvDif.js +0 -1
  399. package/dist/go-pay.svg.es-DQjtunZ_.js +0 -1
  400. package/dist/google-pay.svg.es-hzc_EgiJ.js +0 -1
  401. package/dist/hipercard.svg.es-CbCsRY2q.js +0 -1
  402. package/dist/icon-sprite.svg.es-BZIz7-0d.mjs +0 -4
  403. package/dist/icon-sprite.svg.es-Ds6lDf5p.js +0 -1
  404. package/dist/ideal.svg.es-Booz1IML.js +0 -1
  405. package/dist/index-BPZPnOQQ.js +0 -7
  406. package/dist/index.cjs +0 -1
  407. package/dist/index.es-BclokHQX.js +0 -1
  408. package/dist/invoices-CKQBLar2.js +0 -1
  409. package/dist/it-IT-CSYvGmpT.js +0 -1
  410. package/dist/it-IT-CqNK62qe.js +0 -1
  411. package/dist/jcb.svg.es-B3WPB8c2.js +0 -1
  412. package/dist/kakao-pay.svg.es-Cs-lCW74.js +0 -1
  413. package/dist/klarna.svg.es-Cs6XaHD7.js +0 -1
  414. package/dist/maestro.svg.es-BvK4oPg4.js +0 -1
  415. package/dist/mastercard.svg.es-lp4AXyyV.js +0 -1
  416. package/dist/momo.svg.es-C5aLYf_R.js +0 -1
  417. package/dist/nl-NL-CpE4IgwO.js +0 -1
  418. package/dist/nl-NL-Dx-TNXQ1.js +0 -1
  419. package/dist/nyce.svg.es-ArAivAZW.js +0 -1
  420. package/dist/object.es-CdriXMPs.js +0 -1
  421. package/dist/open-banking.svg.es-Q3rRkCvP.js +0 -1
  422. package/dist/paymentFailure-Bh60UhxA.mjs +0 -47
  423. package/dist/paymentFailure-Cki8c5BX.js +0 -1
  424. package/dist/paymentMethods-CWlvwK5V.mjs +0 -77
  425. package/dist/paymentMethods-Cw-i95mM.js +0 -1
  426. package/dist/payments-2qeQdpiW.mjs +0 -45
  427. package/dist/payments-CS7_YcOW.js +0 -1
  428. package/dist/paypal.svg.es-Cjp5sNI3.js +0 -1
  429. package/dist/pricing-BOqG21f9.js +0 -1
  430. package/dist/pricing.es-C07bgEZx.js +0 -1
  431. package/dist/pricingItemConfigs.es-D4aYkYcf.js +0 -1
  432. package/dist/pricingItemConfigs.es-ORxsk_YS.mjs +0 -77
  433. package/dist/pricingPlanSchedule-BM8vsKkV.js +0 -1
  434. package/dist/pricingPlanSchedules-B_sTAIgU.js +0 -1
  435. package/dist/pricingPlanSchedules-ChQCbMfe.mjs +0 -32
  436. package/dist/pulse.svg.es-Dit33E8S.js +0 -1
  437. package/dist/screens/Checkout/Checkout.cjs +0 -1
  438. package/dist/screens/CustomerOverview/CustomerOverview.cjs +0 -1
  439. package/dist/screens/PayInvoice/PayInvoice.cjs +0 -1
  440. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs +0 -1
  441. package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs +0 -1
  442. package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs +0 -1
  443. package/dist/sepa.svg.es-0t4DKeA1.js +0 -1
  444. package/dist/sessionReference-3h-6FdrC.mjs +0 -43
  445. package/dist/sessionReference-m_6Rp4X1.js +0 -1
  446. package/dist/slots.es-T9ZJRGtG.js +0 -1
  447. package/dist/sorting.es-DCihKqD2.mjs +0 -77
  448. package/dist/sorting.es-DQsjKr8A.js +0 -1
  449. package/dist/star.svg.es-D2JncY7b.js +0 -1
  450. package/dist/subscription-D1yHKUNc.mjs +0 -69
  451. package/dist/subscription-ZA62t4E9.js +0 -1
  452. package/dist/subscriptions-DcfcBYAq.mjs +0 -55
  453. package/dist/subscriptions-DwVsf4Ev.js +0 -1
  454. package/dist/trustly.svg.es-GJByiFAs.js +0 -1
  455. package/dist/twint.svg.es-BJ2f48og.js +0 -1
  456. package/dist/typeGuards.es-DS3vZaJn.js +0 -1
  457. package/dist/types/components/payments/AddPaymentMethodModal/AddPaymentMethodModal.types.d.ts +0 -14
  458. package/dist/types/components/payments/SubscriptionPaymentCompletedCard/SubscriptionPaymentCompletedCard.types.d.ts +0 -3
  459. package/dist/types/components/subscriptions/PlanCustomizationForm/AddonSingleEditor.types.d.ts +0 -5
  460. package/dist/types/services/portals.types.d.ts +0 -70
  461. package/dist/types/types/subscription.d.ts +0 -4
  462. package/dist/unionpay.svg.es-DjFZ5EMQ.js +0 -1
  463. package/dist/url-TNRgVI8A.mjs +0 -21
  464. package/dist/url-vloPOiXd.js +0 -1
  465. package/dist/useActionDispatchProvider-B3AvkLL2.mjs +0 -11
  466. package/dist/useActionDispatchProvider-DFhppdve.js +0 -1
  467. package/dist/useCustomer-BwZKd9i5.js +0 -1
  468. package/dist/useCustomerFormLabels-BQk3d9PZ.mjs +0 -968
  469. package/dist/useCustomerFormLabels-DV9QiMYh.js +0 -1
  470. package/dist/useExperimentalFeature-BciA3Ok9.mjs +0 -135
  471. package/dist/useExperimentalFeature-CGIkgFR4.js +0 -1
  472. package/dist/useIncrementalLoading-CaWOE8Xl.js +0 -1
  473. package/dist/useIncrementalLoading-Cgxw2GD7.mjs +0 -48
  474. package/dist/useInvoiceData-BocKdeg7.mjs +0 -38
  475. package/dist/useInvoiceData-CNV_FMV8.js +0 -1
  476. package/dist/useInvoicesList-C8nsXMJ6.mjs +0 -500
  477. package/dist/useInvoicesList-S0IbQcrD.js +0 -1
  478. package/dist/useLoadInitialData-D9GkzY8t.mjs +0 -15
  479. package/dist/useLoadInitialData-D_R6Jy1s.js +0 -1
  480. package/dist/usePaymentMethodAvailability-BO_guwAw.js +0 -1
  481. package/dist/usePaymentMethodOptions-1vRAo6Ib.mjs +0 -39
  482. package/dist/usePaymentMethodOptions-CuzOoi2k.js +0 -1
  483. package/dist/usePaymentMethods-CbwnGONc.mjs +0 -15
  484. package/dist/usePaymentMethods-DDaTZQZp.js +0 -1
  485. package/dist/usePayments-DDSjo0rH.js +0 -1
  486. package/dist/usePortal-C27omjhz.js +0 -1
  487. package/dist/usePortal-C5AsegpS.mjs +0 -11
  488. package/dist/useService-Bh47bllz.mjs +0 -50
  489. package/dist/useService-H7BjLg8P.js +0 -1
  490. package/dist/useSubscription-BZJL0VOA.mjs +0 -210
  491. package/dist/useSubscription-D787IXY-.js +0 -1
  492. package/dist/useTimePeriod.es-rzxqUCTu.js +0 -1
  493. package/dist/useViewport-BgdA2PPt.mjs +0 -29
  494. package/dist/useViewport-hPRVDWCm.js +0 -1
  495. package/dist/useWatchDebounced-B8iX7ykx.js +0 -1
  496. package/dist/useWatchDebounced-BHlBPcXB.mjs +0 -20
  497. package/dist/visa.svg.es-NY3BHhda.js +0 -1
  498. package/dist/vpay.svg.es-VViQi42w.js +0 -1
  499. package/dist/wallets.es-CNIMW5ay.js +0 -1
  500. package/dist/zip.svg.es-C9S_F31W.js +0 -1
@@ -1,73 +1,74 @@
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 x, useModel as ne, computed as m, watch as q, openBlock as s, createElementBlock as B, withModifiers as _e, createElementVNode as C, createVNode as T, unref as t, createBlock as c, withCtx as d, Fragment as H, createTextVNode as y, toDisplayString as f, mergeModels as ie, createCommentVNode as W, mergeProps as fe } from "vue";
2
+ import { u as ye, w as we, a as Pe, h as Ie } from "../../pricingPlanScheduleOverrides-Dxv5FOBd.mjs";
3
+ import { _ as ae } from "../../Button.vue.es-Zw--kuaU.mjs";
4
+ import { _ as K } from "../../ErrorNotification.vue.es-DNd65mQq.mjs";
5
+ import { e as re, o as Se, a as U, d as Z, g as Ee, h as Me, j as ke } from "../../customElements-BTj4ii4f.mjs";
6
+ import { C as $e } from "../../ContentWithAsideLayout-Bnbsq8_5.mjs";
7
+ import { u as Te } from "../../useActionDispatchProvider-3W2vEyIg.mjs";
8
+ import { u as Oe } from "../../usePortal-CwR_FxTb.mjs";
9
+ import { u as Ce } from "../../usePaymentMethods-ByaKF7mf.mjs";
10
+ import { u as Ne, i as Ae, a as Be } from "../../paymentMethods-Nfv9HdkS.mjs";
11
+ import { u as xe } from "../../useLoadInitialData-qzdnBoui.mjs";
12
+ import { c as De } from "../../invoices-e1sKLgxg.mjs";
13
+ import { b as Le, c as Ue, d as ze } from "../../pricingPlanSchedule-BPrS2WRd.mjs";
14
+ import { c as je } from "../../pricingPlanSchedules-Dv7ZCgNp.mjs";
15
+ import { _ as Ge } from "../../SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Cl7I1Apo.mjs";
16
+ import { _ as Re } from "../../Divider.vue.es-DnP_HqLz.mjs";
17
+ import { _ as Ve } from "../../PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DqxWxSQe.mjs";
18
+ import { _ as Fe } from "../../PaymentMethodSelector.vue_vue_type_script_setup_true_lang-DsnAhR79.mjs";
19
+ import { _ as Ye } from "../../InvoicePreview.vue.es-4Q2hzaFS.mjs";
20
+ import { _ as qe } from "../../Section.vue.es-CvX9tg2f.mjs";
21
+ import { _ as ce } from "../../Skeleton.vue_vue_type_script_setup_true_lang-D7MFjvrP.mjs";
22
+ import { _ as He } from "../../TranslationOverride.vue_vue_type_script_setup_true_lang-BhjZVMSx.mjs";
23
+ import { _ as We } from "../../PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BIAm22Kq.mjs";
24
+ import { _ as se } from "../../EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CVP-7ne3.mjs";
25
+ function Ke() {
26
+ const { getInvoicePreview: a } = De(), l = re(), u = E(), h = E(!1), p = E(), o = Se();
27
+ return { invoice: u, isPending: h, error: p, load: async ({
28
+ subscription: O,
29
+ scheduleInfo: P,
30
+ enabledPricingIds: r
31
31
  }) => {
32
- const a = $e({
33
- enabledPricings: b.map((u) => ({ pricing_id: u })),
34
- pricingPlanScheduleInfos: o.pricing_plan_schedule_infos
32
+ const i = Le({
33
+ enabledPricings: r.map((b) => ({ pricing_id: b })),
34
+ pricingPlanScheduleInfos: P ? [P] : []
35
35
  });
36
- if (!a) {
37
- t.value = void 0;
36
+ if (!i) {
37
+ o(), u.value = void 0, p.value = void 0, h.value = !1;
38
38
  return;
39
39
  }
40
- const i = v();
41
- c.value = !0, d.value = void 0;
40
+ const v = o();
41
+ h.value = !0, p.value = void 0;
42
42
  try {
43
- const u = await n({
43
+ const b = await a({
44
44
  // The subscription is running already, so it is priced as itself rather than as the
45
45
  // template for a new one — and the customer it is invoiced to is known.
46
46
  forExistingSubscription: !0,
47
- pricingPlanSubscriptionId: o.id,
48
- customizations: a
47
+ pricingPlanSubscriptionId: O.id,
48
+ customizations: i
49
49
  });
50
- if (!i()) return;
51
- t.value = u.invoice;
52
- } catch (u) {
53
- if (!i()) return;
50
+ if (!v()) return;
51
+ u.value = b.invoice;
52
+ } catch (b) {
53
+ if (!v()) return;
54
54
  l.error(
55
55
  "INVOICE_PREVIEW_FAILED",
56
56
  "Failed to load the invoice preview",
57
57
  { preview: "SUBSCRIPTION_UPGRADE" },
58
- u
59
- ), d.value = u, t.value = void 0;
58
+ b
59
+ ), p.value = b, u.value = void 0;
60
60
  } finally {
61
- i() && (c.value = !1);
61
+ v() && (h.value = !1);
62
62
  }
63
63
  } };
64
64
  }
65
- const De = { class: "sv-subscription-management-form__body grid grid-cols-1 gap-4" }, Fe = /* @__PURE__ */ M({
65
+ const Ze = ["id"], Je = { class: "sv-subscription-management-form__body grid grid-cols-1 gap-4" }, Qe = /* @__PURE__ */ x({
66
66
  __name: "SubscriptionManagementForm",
67
- props: /* @__PURE__ */ K({
67
+ props: /* @__PURE__ */ ie({
68
+ id: { type: String },
68
69
  pricingGroup: { type: Object },
69
70
  paymentMethods: { type: Array },
70
- paymentMethodOptions: { type: Array },
71
+ hasExpiredPaymentMethod: { type: Boolean },
71
72
  billingPeriod: { type: Object },
72
73
  currency: { type: String },
73
74
  disabled: { type: Boolean }
@@ -77,136 +78,135 @@ const De = { class: "sv-subscription-management-form__body grid grid-cols-1 gap-
77
78
  paymentMethodId: {},
78
79
  paymentMethodIdModifiers: {}
79
80
  }),
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;
81
+ emits: /* @__PURE__ */ ie(["submit"], ["update:enabledPricingIds", "update:paymentMethodId"]),
82
+ setup(a, { emit: l }) {
83
+ const u = a, h = l, p = ne(a, "enabledPricingIds"), o = ne(a, "paymentMethodId"), { $t: w } = U(), O = (r) => {
84
+ const i = r ? Date.parse(r) : NaN;
84
85
  return Number.isFinite(i) ? i : 0;
85
- }, b = _(
86
- () => [...t.paymentMethods ?? []].sort((a, i) => o(i.created_at) - o(a.created_at))
86
+ }, P = m(
87
+ () => [...u.paymentMethods ?? []].sort((r, i) => O(i.created_at) - O(r.created_at))
87
88
  );
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))
89
+ return q(
90
+ () => u.paymentMethods,
91
+ (r, i) => {
92
+ var b;
93
+ const v = r == null ? void 0 : r.find(
94
+ ({ id: I }) => !(i != null && i.some((z) => z.id === I))
94
95
  );
95
- if (u && (i != null && i.length)) {
96
- v.value = u.id;
96
+ if (v && (i != null && i.length)) {
97
+ o.value = v.id;
97
98
  return;
98
99
  }
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);
100
+ r != null && r.some(({ id: I }) => I === o.value) || (o.value = (b = (r == null ? void 0 : r.find(({ is_default: I }) => I)) ?? P.value[0]) == null ? void 0 : b.id);
100
101
  },
101
102
  { immediate: !0 }
102
- ), (a, i) => (m(), z("form", {
103
+ ), (r, i) => (s(), B("form", {
104
+ id: a.id,
103
105
  class: "sv-subscription-management-form",
104
- onSubmit: i[3] || (i[3] = ce(() => {
105
- }, ["prevent"]))
106
+ onSubmit: i[2] || (i[2] = _e((v) => h("submit"), ["prevent"]))
106
107
  }, [
107
- C("div", De, [
108
- h(Le, {
109
- modelValue: d.value,
110
- "onUpdate:modelValue": i[0] || (i[0] = (u) => d.value = u),
108
+ C("div", Je, [
109
+ T(Ve, {
110
+ modelValue: p.value,
111
+ "onUpdate:modelValue": i[0] || (i[0] = (v) => p.value = v),
111
112
  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
113
+ "group-name": a.pricingGroup.name,
114
+ pricings: a.pricingGroup.pricings,
115
+ "billing-period": a.billingPeriod,
116
+ currency: a.currency
116
117
  }, null, 8, ["modelValue", "group-name", "pricings", "billing-period", "currency"]),
117
118
  C("div", null, [
118
- h(e(Ee), { spacing: "xs" })
119
+ T(t(Re), { spacing: "xs" })
119
120
  ]),
120
- h(xe, {
121
- modelValue: v.value,
122
- "onUpdate:modelValue": i[1] || (i[1] = (u) => v.value = u),
121
+ P.value.length > 0 ? (s(), c(Fe, {
122
+ key: 0,
123
+ modelValue: o.value,
124
+ "onUpdate:modelValue": i[1] || (i[1] = (v) => o.value = v),
123
125
  class: "sv-subscription-management-form__payment-methods",
124
- "payment-methods": b.value,
125
- "payment-method-options": n.paymentMethodOptions,
126
+ "payment-methods": P.value,
127
+ "show-add-option": !1,
126
128
  required: "",
127
- disabled: n.disabled,
128
- label: e(y)({
129
+ disabled: a.disabled,
130
+ label: t(w)({
129
131
  defaultMessage: "Payment method",
130
132
  id: "subscription_management.payment_method_selector.label",
131
133
  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"])
134
+ })
135
+ }, null, 8, ["modelValue", "payment-methods", "disabled", "label"])) : (s(), c(t(Z), {
136
+ key: 1,
137
+ id: a.id && `${a.id}__no-payment-method`,
138
+ variant: "body-sm",
139
+ color: "subtle",
140
+ tag: "p",
141
+ class: "sv-subscription-management-form__no-payment-method"
142
+ }, {
143
+ default: d(() => [
144
+ a.hasExpiredPaymentMethod ? (s(), B(H, { key: 0 }, [
145
+ y(f(t(w)({
146
+ defaultMessage: "The card this subscription is paid with has expired. Replace it under your payment methods to make a change.",
147
+ id: "subscription_management.expired_payment_method",
148
+ description: "Shown in place of the payment method on the manage subscription screen when the card the subscription is paid with has expired"
149
+ })), 1)
150
+ ], 64)) : (s(), B(H, { key: 1 }, [
151
+ y(f(t(w)({
152
+ defaultMessage: "This subscription has no payment method to charge the change to. Please contact support to change it.",
153
+ id: "subscription_management.no_payment_method",
154
+ description: "Shown in place of the payment method on the manage subscription screen when the subscription has no usable payment method"
155
+ })), 1)
156
+ ], 64))
157
+ ]),
158
+ _: 1
159
+ }, 8, ["id"]))
135
160
  ])
136
- ], 32));
137
- }
138
- }), Re = /* @__PURE__ */ M({
139
- __name: "TranslationOverride",
140
- props: {
141
- messages: { type: Object }
142
- },
143
- setup(n) {
144
- const l = n, t = le(pe, void 0), c = _(() => ({
145
- ...t == null ? void 0 : t.messages.value,
146
- ...l.messages
147
- }));
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,
154
- "show-timezones": !1
155
- }, {
156
- default: f(() => [
157
- de(d.$slots, "default")
158
- ]),
159
- _: 3
160
- }, 8, ["locale", "date-locale", "messages"]);
161
- };
161
+ ], 40, Ze));
162
162
  }
163
- }), ze = /* @__PURE__ */ M({
163
+ }), Xe = /* @__PURE__ */ x({
164
164
  __name: "SubscriptionManagementSummary",
165
165
  props: {
166
166
  invoice: { type: Object },
167
167
  isPending: { type: Boolean },
168
168
  hasError: { type: Boolean }
169
169
  },
170
- setup(n) {
171
- const { $t: l } = E(), t = _(() => ({
170
+ setup(a) {
171
+ const { $t: l } = U(), u = m(() => ({
172
172
  "invoice_preview.total_due_today_heading": l({
173
173
  defaultMessage: "Total due",
174
174
  id: "subscription_management.summary.total_due_heading",
175
175
  description: 'Heading above the total of the invoice previewing a subscription change, replacing the shared preview’s "Total due today"'
176
176
  })
177
177
  }));
178
- return (c, d) => (m(), g(e(Te), {
178
+ return (h, p) => (s(), c(t(qe), {
179
179
  class: "sv-subscription-management-summary",
180
- title: e(l)({
180
+ title: t(l)({
181
181
  defaultMessage: "Order summary",
182
182
  id: "subscription_management.summary.title",
183
183
  description: "Title of the block previewing what a subscription change is invoiced for"
184
184
  })
185
185
  }, {
186
- default: f(() => [
187
- n.hasError ? (m(), g(e(Q), {
186
+ default: d(() => [
187
+ a.hasError ? (s(), c(t(K), {
188
188
  key: 0,
189
189
  class: "sv-subscription-management-summary__error sv-error",
190
- title: e(l)({
190
+ title: t(l)({
191
191
  defaultMessage: "Unable to calculate the total. Please try again.",
192
192
  id: "subscription_management.summary.error",
193
193
  description: "Error shown when the invoice preview for a subscription change cannot be loaded"
194
194
  })
195
- }, null, 8, ["title"])) : n.isPending || !n.invoice ? (m(), g(ee, {
195
+ }, null, 8, ["title"])) : a.isPending || !a.invoice ? (s(), c(ce, {
196
196
  key: 1,
197
197
  variant: "section",
198
198
  class: "sv-subscription-management-summary__skeleton min-h-[120px]"
199
199
  }, {
200
- default: f(() => [
201
- n.isPending ? R("", !0) : (m(), g(e(Z), {
200
+ default: d(() => [
201
+ a.isPending ? W("", !0) : (s(), c(t(Z), {
202
202
  key: 0,
203
203
  variant: "body-sm",
204
204
  color: "subtle",
205
205
  tag: "div",
206
206
  class: "sv-subscription-management-summary__empty-state"
207
207
  }, {
208
- default: f(() => [
209
- T(A(e(l)({
208
+ default: d(() => [
209
+ y(f(t(l)({
210
210
  defaultMessage: "Select your plan to see what it costs.",
211
211
  id: "subscription_management.summary.empty_state",
212
212
  description: "Shown in the order summary before a plan has been picked to preview"
@@ -216,14 +216,14 @@ const De = { class: "sv-subscription-management-form__body grid grid-cols-1 gap-
216
216
  }))
217
217
  ]),
218
218
  _: 1
219
- })) : (m(), g(Re, {
219
+ })) : (s(), c(He, {
220
220
  key: 2,
221
- messages: t.value
221
+ messages: u.value
222
222
  }, {
223
- default: f(() => [
224
- h(e(Ne), {
223
+ default: d(() => [
224
+ T(t(Ye), {
225
225
  class: "sv-subscription-management-summary__invoice",
226
- invoice: n.invoice,
226
+ invoice: a.invoice,
227
227
  "is-customer-facing": ""
228
228
  }, null, 8, ["invoice"])
229
229
  ]),
@@ -233,149 +233,117 @@ const De = { class: "sv-subscription-management-form__body grid grid-cols-1 gap-
233
233
  _: 1
234
234
  }, 8, ["title"]));
235
235
  }
236
- }), Ye = { class: "sv-subscription-management-success grid grid-cols-1 gap-4" }, qe = { class: "sv-subscription-management-success__message" }, We = /* @__PURE__ */ M({
236
+ }), et = { class: "sv-subscription-management-success grid grid-cols-1 gap-4" }, tt = { class: "sv-subscription-management-success__message" }, nt = /* @__PURE__ */ x({
237
237
  __name: "SubscriptionManagementSuccess",
238
238
  props: {
239
239
  pricingGroupName: { type: String }
240
240
  },
241
- setup(n) {
242
- const l = n, { $t: t } = E(), c = _(
243
- () => t({
241
+ setup(a) {
242
+ const l = a, { $t: u } = U(), h = m(
243
+ () => u({
244
244
  defaultMessage: "Subscription updated",
245
245
  description: "Title shown on the manage subscription screen once the change is committed",
246
246
  id: "subscription_management.success.title"
247
247
  })
248
- ), d = _(
249
- () => l.pricingGroupName ? t(
248
+ ), p = m(
249
+ () => l.pricingGroupName ? u(
250
250
  {
251
251
  defaultMessage: "Your {subject} has been changed. Please be aware that it can take some time to reflect this change in your subscription.",
252
252
  description: "Confirmation of the pricing group a committed subscription change applied to",
253
253
  id: "subscription_management.success.message"
254
254
  },
255
255
  { subject: l.pricingGroupName }
256
- ) : t({
256
+ ) : u({
257
257
  defaultMessage: "Your subscription has been changed. Please be aware that it can take some time to reflect this change in your subscription.",
258
258
  description: "Confirmation of a committed subscription change when the pricing group is not known",
259
259
  id: "subscription_management.success.message_generic"
260
260
  })
261
261
  );
262
- return (v, y) => (m(), z("div", Ye, [
263
- h(Be, {
262
+ return (o, w) => (s(), B("div", et, [
263
+ T(We, {
264
264
  status: "success",
265
- title: c.value
265
+ title: h.value
266
266
  }, {
267
- default: f(() => [
268
- C("span", qe, A(d.value), 1)
267
+ default: d(() => [
268
+ C("span", tt, f(p.value), 1)
269
269
  ]),
270
270
  _: 1
271
271
  }, 8, ["title"])
272
272
  ]));
273
273
  }
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({
274
+ }), it = { class: "sv-subscription-management__header" }, at = { class: "flex flex-col gap-2" }, Y = "sv-subscription-management-form", oe = "sv-subscription-management__customized-pricing-message", st = /* @__PURE__ */ x({
336
275
  __name: "SubscriptionManagement",
337
276
  props: {
338
277
  configuration: { type: Object }
339
278
  },
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({
279
+ setup(a) {
280
+ const l = a, u = `${Y}__no-payment-method`, h = [
281
+ "BUY_NOW_PAY_LATER",
282
+ "CARD",
283
+ "DIGITAL_WALLET",
284
+ "DIRECT_DEBIT",
285
+ "ONLINE_BANKING"
286
+ ], p = (e, n) => !!n && e.id === (n == null ? void 0 : n.payment_method_id) && Be(e) && e.customer_id === (n == null ? void 0 : n.customer_id) && h.includes(e.type), { $t: o } = U(), w = Oe(), O = re(), { dispatchAction: P } = Te(), { createPricingPlanSchedule: r } = je(), {
287
+ subscription: i,
288
+ get: v,
289
+ error: b
290
+ } = ye({
342
291
  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(
346
- 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 = _(
292
+ }), { items: I, fetchAll: z } = Ce({
293
+ customerId: w.value.customer_id
294
+ }), { paymentMethodOptions: ue, get: le } = Ne(), { isLoading: j } = xe(
295
+ v(),
296
+ z(),
297
+ le({ customerId: w.value.customer_id })
298
+ ), J = m(
299
+ () => I.value.filter((e) => p(e, i.value))
300
+ ), me = m(
301
+ () => I.value.some(
302
+ (e) => {
303
+ var n;
304
+ return e.id === ((n = i.value) == null ? void 0 : n.payment_method_id) && Ae(e);
305
+ }
306
+ )
307
+ ), N = m(
353
308
  () => {
354
- var s;
355
- return ke(((s = o.value) == null ? void 0 : s.pricing_plan_schedule_infos) ?? []);
309
+ var e;
310
+ return Ue(((e = i.value) == null ? void 0 : e.pricing_plan_schedule_infos) ?? []);
356
311
  }
357
- ), k = _(() => {
358
- var I;
359
- const s = G.value;
360
- if (!s)
312
+ ), de = m(() => {
313
+ const e = N.value;
314
+ return e != null && e.pricing_plan_version ? {
315
+ ...e,
316
+ pricing_plan_version: we(e)
317
+ } : e;
318
+ }), G = m(
319
+ () => {
320
+ var e;
321
+ return Pe(((e = N.value) == null ? void 0 : e.pricing_plan_schedule) ?? {});
322
+ }
323
+ ), D = m(
324
+ () => {
325
+ var e;
326
+ return Ie((e = N.value) == null ? void 0 : e.pricing_plan_schedule);
327
+ }
328
+ ), S = m(() => {
329
+ const e = de.value;
330
+ if (!e)
361
331
  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 = _(
332
+ const { enabledPricingId: n } = l.configuration;
333
+ return (n ? [n] : G.value).map(
334
+ (_) => ze({ pricingPlanScheduleInfo: e, pricingId: _ })
335
+ ).find((_) => !!_);
336
+ }), pe = m(
369
337
  () => {
370
- var s;
371
- return t(
338
+ var e;
339
+ return o(
372
340
  {
373
341
  defaultMessage: "Manage {subject}",
374
342
  id: "subscription_management.title",
375
343
  description: "Title for the manage subscription page, naming the pricing group being changed"
376
344
  },
377
345
  {
378
- subject: ((s = k.value) == null ? void 0 : s.name) || t({
346
+ subject: ((e = S.value) == null ? void 0 : e.name) || o({
379
347
  defaultMessage: "subscription",
380
348
  id: "subscription_management.title.default_subject",
381
349
  description: 'Stands in for the pricing group name in the manage subscription title when no group is known, e.g. "Manage subscription"'
@@ -383,165 +351,213 @@ const De = { class: "sv-subscription-management-form__body grid grid-cols-1 gap-
383
351
  }
384
352
  );
385
353
  }
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;
354
+ ), M = E([]), R = E();
355
+ q(
356
+ [G, S],
357
+ ([e, n]) => {
358
+ const { enabledPricingId: g } = l.configuration, _ = ((n == null ? void 0 : n.pricings) ?? []).map(({ id: $ }) => $);
359
+ M.value = g && _.includes(g) ? [...e.filter(($) => !_.includes($)), g] : e;
395
360
  },
396
361
  { immediate: !0 }
397
362
  );
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
363
+ const ge = m(() => {
364
+ const e = new Set(M.value), n = new Set(G.value);
365
+ return e.size !== n.size || [...e].some((g) => !n.has(g));
366
+ }), {
367
+ invoice: Q,
368
+ isPending: X,
369
+ error: ee,
370
+ load: he
371
+ } = Ke();
372
+ q(
373
+ [M, i, N, D],
374
+ ([e, n, g, _]) => {
375
+ !n || e.length === 0 || _ || he({
376
+ subscription: n,
377
+ scheduleInfo: g,
378
+ enabledPricingIds: e
410
379
  });
411
380
  },
412
381
  { immediate: !0 }
413
382
  );
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;
383
+ const A = E(!1), L = E(), V = E(!1), te = m(
384
+ () => !j.value && !A.value && !!i.value && !!S.value && !D.value && M.value.length > 0 && ge.value && !!R.value && !X.value && !ee.value && !!Q.value
385
+ ), ve = async () => {
386
+ if (!(!te.value || !i.value)) {
387
+ A.value = !0, L.value = void 0;
419
388
  try {
420
- await y({
421
- pricingPlanSubscriptionId: o.value.id,
422
- enabledPricings: $.value.map((s) => ({
423
- pricing_id: s
389
+ await r({
390
+ pricingPlanSubscriptionId: i.value.id,
391
+ enabledPricings: M.value.map((e) => ({
392
+ pricing_id: e
424
393
  }))
425
- }), D.value = !0;
426
- } catch (s) {
427
- d.error(
394
+ }), V.value = !0;
395
+ } catch (e) {
396
+ O.error(
428
397
  "SUBSCRIPTION_UPDATE_FAILED",
429
398
  "Failed to start a new pricing plan schedule",
430
399
  {},
431
- s
432
- ), N.value = t({
400
+ e
401
+ ), L.value = o({
433
402
  defaultMessage: "Something went wrong. Please try again.",
434
403
  id: "subscription_management.update_error",
435
404
  description: "Error shown when committing a subscription change fails"
436
405
  });
437
406
  } finally {
438
- j.value = !1;
407
+ A.value = !1;
439
408
  }
440
409
  }
441
- }, q = _(
410
+ }, F = m(
442
411
  () => {
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);
412
+ var e, n, g;
413
+ return ((n = (e = N.value) == null ? void 0 : e.pricing_plan_schedule) == null ? void 0 : n.billing_period) ?? ((g = i.value) == null ? void 0 : g.billing_period);
445
414
  }
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), {
415
+ ), k = m(() => V.value ? "updated" : j.value ? "loading" : b.value ? "load-error" : S.value && D.value ? "customized" : S.value && F.value ? "form" : "empty"), be = m(() => {
416
+ const e = k.value === "customized" ? oe : k.value === "form" && J.value.length === 0 ? u : void 0;
417
+ return { form: Y, ...e && { "aria-describedby": e } };
418
+ });
419
+ return (e, n) => (s(), c(t($e), { class: "sv-subscription-management sv-root sv-screen" }, {
420
+ header: d(() => [
421
+ C("div", it, [
422
+ T(t(Z), {
451
423
  variant: "heading-2",
452
424
  tag: "h1",
453
425
  class: "sv-subscription-management__title"
454
426
  }, {
455
- default: f(() => [
456
- T(A(ne.value), 1)
427
+ default: d(() => [
428
+ y(f(pe.value), 1)
457
429
  ]),
458
430
  _: 1
459
431
  })
460
432
  ])
461
433
  ]),
462
- content: f(() => {
463
- var w, I;
434
+ content: d(() => {
435
+ var g, _;
464
436
  return [
465
- D.value ? (m(), g(We, {
437
+ k.value === "updated" ? (s(), c(nt, {
466
438
  key: 0,
467
439
  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, {
440
+ "pricing-group-name": (g = S.value) == null ? void 0 : g.name
441
+ }, null, 8, ["pricing-group-name"])) : k.value === "loading" ? (s(), c(ce, {
470
442
  key: 1,
471
443
  variant: "section",
472
444
  class: "min-h-[220px]"
473
- })) : k.value && q.value ? (m(), g(Fe, {
445
+ })) : k.value === "load-error" ? (s(), c(t(K), {
474
446
  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),
447
+ class: "sv-subscription-management__load-error sv-error",
448
+ title: t(o)({
449
+ defaultMessage: "Unable to load this subscription. Please try again later.",
450
+ id: "subscription_management.load_error",
451
+ description: "Error shown in place of the manage subscription form when the subscription cannot be loaded"
452
+ })
453
+ }, null, 8, ["title"])) : k.value === "customized" ? (s(), c(se, {
454
+ key: 3,
455
+ class: "sv-subscription-management__customized-pricing",
456
+ icon: "info"
457
+ }, {
458
+ title: d(() => [
459
+ y(f(t(o)({
460
+ defaultMessage: "This subscription has custom pricing",
461
+ id: "subscription_management.customized_pricing.title",
462
+ 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"
463
+ })), 1)
464
+ ]),
465
+ message: d(() => [
466
+ C("span", { id: oe }, f(t(o)({
467
+ defaultMessage: "Please contact support to change it.",
468
+ id: "subscription_management.customized_pricing.message",
469
+ description: "Message shown on the manage subscription screen when the subscription has pricing customized for it, which cannot be changed here"
470
+ })), 1)
471
+ ]),
472
+ _: 1
473
+ })) : k.value === "form" && S.value && F.value ? (s(), c(Qe, {
474
+ key: 4,
475
+ id: Y,
476
+ "enabled-pricing-ids": M.value,
477
+ "onUpdate:enabledPricingIds": n[0] || (n[0] = ($) => M.value = $),
478
+ "payment-method-id": R.value,
479
+ "onUpdate:paymentMethodId": n[1] || (n[1] = ($) => R.value = $),
479
480
  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"])
481
+ "pricing-group": S.value,
482
+ "payment-methods": J.value,
483
+ "has-expired-payment-method": me.value,
484
+ "billing-period": F.value,
485
+ currency: (_ = t(i)) == null ? void 0 : _.billing_currency,
486
+ disabled: A.value,
487
+ onSubmit: ve
488
+ }, null, 8, ["enabled-pricing-ids", "payment-method-id", "pricing-group", "payment-methods", "has-expired-payment-method", "billing-period", "currency", "disabled"])) : (s(), c(se, {
489
+ key: 5,
490
+ class: "sv-subscription-management__empty-state",
491
+ icon: "receipt_long"
492
+ }, {
493
+ title: d(() => [
494
+ y(f(t(o)({
495
+ defaultMessage: "Nothing to change",
496
+ id: "subscription_management.empty_state.title",
497
+ description: "Title shown on the manage subscription screen when the subscription has nothing the customer can change"
498
+ })), 1)
499
+ ]),
500
+ message: d(() => [
501
+ y(f(t(o)({
502
+ defaultMessage: "This subscription has no options that can be changed right now.",
503
+ id: "subscription_management.empty_state.message",
504
+ description: "Message shown on the manage subscription screen when the subscription is not running or has no group of options to choose from"
505
+ })), 1)
506
+ ]),
507
+ _: 1
508
+ }))
494
509
  ];
495
510
  }),
496
- aside: f(() => [
497
- D.value ? (m(), g(e(J), {
511
+ aside: d(() => [
512
+ V.value ? (s(), c(t(ae), {
498
513
  key: 0,
499
514
  size: "lg",
500
515
  class: "sv-action sv-action--primary sv-action--full-width sv-subscription-management__done w-full",
501
516
  type: "button",
502
- onClick: r[4] || (r[4] = (w) => e(v)({ action: "navigate-to-customer-overview" }))
517
+ onClick: n[2] || (n[2] = (g) => t(P)({ action: "navigate-to-customer-overview" }))
503
518
  }, {
504
- default: f(() => [
505
- T(A(e(t)({
519
+ default: d(() => [
520
+ y(f(t(o)({
506
521
  defaultMessage: "Done",
507
522
  id: "subscription_management.done_button.label",
508
523
  description: "Label of the button that leaves the manage subscription screen once the change is committed"
509
524
  })), 1)
510
525
  ]),
511
526
  _: 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), {
527
+ })) : (s(), B(H, { key: 1 }, [
528
+ D.value ? W("", !0) : (s(), c(Xe, {
520
529
  key: 0,
530
+ class: "sv-subscription-management__summary",
531
+ invoice: t(Q),
532
+ "is-pending": t(j) || t(X),
533
+ "has-error": !!t(ee)
534
+ }, null, 8, ["invoice", "is-pending", "has-error"])),
535
+ L.value ? (s(), c(t(K), {
536
+ key: 1,
521
537
  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), {
538
+ title: L.value
539
+ }, null, 8, ["title"])) : W("", !0),
540
+ C("div", at, [
541
+ T(t(ae), fe({
526
542
  size: "lg",
527
543
  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)({
544
+ type: "submit"
545
+ }, be.value, {
546
+ disabled: !te.value,
547
+ loading: A.value
548
+ }), {
549
+ default: d(() => [
550
+ y(f(t(o)({
535
551
  defaultMessage: "Update subscription",
536
552
  id: "subscription_management.update_button.label",
537
553
  description: "Label of the button that commits the subscription change"
538
554
  })), 1)
539
555
  ]),
540
556
  _: 1
541
- }, 8, ["disabled", "loading"]),
542
- h(Ce, {
557
+ }, 16, ["disabled", "loading"]),
558
+ T(Ge, {
543
559
  class: "sv-subscription-management__kpi",
544
- "payment-method-options": e(P)
560
+ "payment-method-options": t(ue)
545
561
  }, null, 8, ["payment-method-options"])
546
562
  ])
547
563
  ], 64))
@@ -549,9 +565,10 @@ const De = { class: "sv-subscription-management-form__body grid grid-cols-1 gap-
549
565
  _: 1
550
566
  }));
551
567
  }
552
- }), Xe = /* @__PURE__ */ M({
568
+ }), ot = /* @__PURE__ */ x({
553
569
  __name: "SubscriptionManagement.entry",
554
570
  props: {
571
+ portalToken: { type: Object },
555
572
  environment: { type: String },
556
573
  locale: { type: String },
557
574
  dateLocale: { type: String },
@@ -568,24 +585,31 @@ const De = { class: "sv-subscription-management-form__body grid grid-cols-1 gap-
568
585
  branding: { type: Object },
569
586
  configuration: { type: Object }
570
587
  },
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"]));
588
+ setup(a) {
589
+ const l = Me("subscription-management");
590
+ return (u, h) => {
591
+ var p;
592
+ return s(), c(t(Ee), {
593
+ entry: u.$props,
594
+ "component-name": t(l),
595
+ "allowed-portal-types": ["CUSTOMER"],
596
+ "required-configuration": { subscriptionId: (p = a.configuration) == null ? void 0 : p.subscriptionId },
597
+ onError: h[0] || (h[0] = (o) => u.$emit("error", o))
598
+ }, {
599
+ default: d(() => [
600
+ (s(), c(st, {
601
+ key: a.configuration.subscriptionId,
602
+ configuration: a.configuration
603
+ }, null, 8, ["configuration"]))
604
+ ]),
605
+ _: 1
606
+ }, 8, ["entry", "component-name", "required-configuration"]);
607
+ };
584
608
  }
585
- }), { define: It } = ve(
586
- Xe,
609
+ }), { define: Ct } = ke(
610
+ ot,
587
611
  "subscription-management"
588
612
  );
589
613
  export {
590
- It as defineSolvimonSubscriptionManagement
614
+ Ct as defineSolvimonSubscriptionManagement
591
615
  };