@solvimon/solvimon-web 0.1.0-alpha.24 → 0.1.0-alpha.26

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 (286) hide show
  1. package/README.md +14 -11
  2. package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DW10rozs.mjs → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DcrLNA_x.mjs} +6 -6
  3. package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-jWthTJk-.js → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DwbIiJBY.js} +1 -1
  4. package/dist/{Avatar.vue.es-nr8srGuK.js → Avatar.vue.es-Bm6MCMAL.js} +1 -1
  5. package/dist/{Avatar.vue.es-DzjFvLuK.mjs → Avatar.vue.es-BqQHvLGA.mjs} +1 -1
  6. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-C1prOJay.js → BillingInformation.vue_vue_type_script_setup_true_lang-0JHnqIpC.js} +1 -1
  7. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-BptcwJMr.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-BFza7Nf9.mjs} +8 -8
  8. package/dist/{Button.vue.es-PbJFK8z7.mjs → Button.vue.es-C32_baQN.mjs} +1 -1
  9. package/dist/{Button.vue.es-TCF-bvDF.js → Button.vue.es-qGvnOKnK.js} +1 -1
  10. package/dist/ChargeOnDemandModal-CIiI74ls.mjs +983 -0
  11. package/dist/ChargeOnDemandModal-DIQaGnRs.js +1 -0
  12. package/dist/Checkout.entry.ce-8EcavNgT.js +2 -0
  13. package/dist/{Checkout.entry.ce-DHFx5Vnb.mjs → Checkout.entry.ce-BA5ljKj8.mjs} +1562 -1538
  14. package/dist/{Chip.vue.es-DpcOM3Ai.mjs → Chip.vue.es-CKCOY5T6.mjs} +2 -2
  15. package/dist/{Chip.vue.es-CAoisngJ.js → Chip.vue.es-D60gTbfe.js} +1 -1
  16. package/dist/{ContextMenu.vue.es-kzZ3JJHG.js → ContextMenu.vue.es-C7KI8Gz6.js} +1 -1
  17. package/dist/{ContextMenu.vue.es-tAuFp-6i.mjs → ContextMenu.vue.es-Da-lAmTl.mjs} +10 -10
  18. package/dist/{CustomerBillingInformation.vue.es-BQSl9q6W.mjs → CustomerBillingInformation.vue.es-BxBQt4Q0.mjs} +2 -2
  19. package/dist/{CustomerBillingInformation.vue.es-Nac6HgLo.js → CustomerBillingInformation.vue.es-bFUx81Ig.js} +1 -1
  20. package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-R47ln7Wb.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BcTZgshS.mjs} +6 -6
  21. package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BOLf-U0A.js → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-C0lJ_ESU.js} +1 -1
  22. package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-CaNXS48v.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DkbQ2MiR.mjs} +908 -891
  23. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-hBo2Y2mJ.js +1 -0
  24. package/dist/{DividerText.vue.es-LJ2kZakb.js → DividerText.vue.es-BF3gnr4e.js} +1 -1
  25. package/dist/{DividerText.vue.es-CSE7a-T0.mjs → DividerText.vue.es-DKl3FnDJ.mjs} +1 -1
  26. package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DeotDsFP.mjs → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-C3QYra1x.mjs} +4 -4
  27. package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-GNPyrcAQ.js → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-cSQeqr0A.js} +1 -1
  28. package/dist/{ErrorNotification.vue.es-BF6swP7o.js → ErrorNotification.vue.es-BX9dHEc-.js} +1 -1
  29. package/dist/{ErrorNotification.vue.es-CVUuIt8Z.mjs → ErrorNotification.vue.es-rRKgmkzV.mjs} +1 -1
  30. package/dist/{IconButton.vue.es-CB1lIPao.js → IconButton.vue.es-Bwdfu-jm.js} +1 -1
  31. package/dist/{IconButton.vue.es-DGflbWFk.mjs → IconButton.vue.es-UlqwNPAX.mjs} +2 -2
  32. package/dist/{IconTitle.vue.es-BsdjyGlQ.mjs → IconTitle.vue.es-CK9k69tV.mjs} +3 -3
  33. package/dist/{IconTitle.vue.es-CMO8EyQl.js → IconTitle.vue.es-Cei98MBw.js} +1 -1
  34. package/dist/{Input.vue.es-CREdT4nB.js → Input.vue.es-B47l_feL.js} +1 -1
  35. package/dist/{Input.vue.es-BFbiFXsU.mjs → Input.vue.es-D9IjIWc-.mjs} +2 -2
  36. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-BZ4D_-7E.js → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DKlPrxQS.js} +1 -1
  37. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Btv0rRk4.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DUfJl07Y.mjs} +2 -2
  38. package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-CrZq0d1M.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-D9Rtgapa.mjs} +2 -2
  39. package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-j-cNIRD_.js → InvoiceEntryView.vue_vue_type_script_setup_true_lang-DlJ6lELc.js} +1 -1
  40. package/dist/InvoiceSummary.vue.es-DBnR9Hs7.js +1 -0
  41. package/dist/{InvoiceSummary.vue.es-JtOIQ6SJ.mjs → InvoiceSummary.vue.es-DQ4KvTaw.mjs} +576 -565
  42. package/dist/{Modal.vue.es-BbdtdxsO.js → Modal.vue.es-8LN4gBh0.js} +1 -1
  43. package/dist/{Modal.vue.es-jT61xK_A.mjs → Modal.vue.es-B9xMiyn3.mjs} +5 -5
  44. package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-BBoZVnsK.js → PaymentErrorCard.vue_vue_type_script_setup_true_lang-B1yGKkWN.js} +1 -1
  45. package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-Dan29qmH.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-BVzL2PGe.mjs} +4 -4
  46. package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-D34fD3Io.js → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DSGf6uFP.js} +1 -1
  47. package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BJZHkTqA.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-nLTPnH4j.mjs} +3 -3
  48. package/dist/{PaymentHistoryBlock-quvnCSFV.mjs → PaymentHistoryBlock-DYa99P1M.mjs} +1 -1
  49. package/dist/{PaymentHistoryBlock-Dw2wOiAI.js → PaymentHistoryBlock-Ds93gNvh.js} +1 -1
  50. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-C0XIdBbx.js → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CBZhXQfC.js} +1 -1
  51. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-5ckQd9eQ.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-D0KnSy0y.mjs} +4 -4
  52. package/dist/{PaymentIntegrationForm-D1oJREmH.js → PaymentIntegrationForm-B_Db4DG1.js} +1 -1
  53. package/dist/{PaymentIntegrationForm-CQjUZi22.mjs → PaymentIntegrationForm-UWoyZgsR.mjs} +1 -1
  54. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-C0J37ZVe.js +1 -0
  55. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-J15IDbMc.mjs +154 -0
  56. package/dist/{PaymentIntegrationFormAdyen-CyZk9ofV.mjs → PaymentIntegrationFormAdyen-D4qfNtZ_.mjs} +217 -197
  57. package/dist/PaymentIntegrationFormAdyen-HeA9XIj-.js +98 -0
  58. package/dist/{PaymentIntegrationFormStripe-D-GaLHwc.mjs → PaymentIntegrationFormStripe-BIiMCWlV.mjs} +247 -220
  59. package/dist/PaymentIntegrationFormStripe-DUCJTIAq.js +102 -0
  60. package/dist/PaymentMethod.vue.es-CJcSZ9lN.js +1 -0
  61. package/dist/{PaymentMethod.vue.es-C0j580g7.mjs → PaymentMethod.vue.es-CKu5nApX.mjs} +168 -148
  62. package/dist/{PaymentMethodForm-CDV5LR8i.js → PaymentMethodForm-1d0YIGOu.js} +1 -1
  63. package/dist/{PaymentMethodForm-Bf2Ps6eV.mjs → PaymentMethodForm-B05sHWcW.mjs} +1 -1
  64. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-BDm8l_6N.js +1 -0
  65. package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-BqPu7CYA.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-D1yIYsb_.mjs} +45 -41
  66. package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-BIX0k7-q.js → PaymentMethodsList.vue_vue_type_script_setup_true_lang-BE4S26JX.js} +1 -1
  67. package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-9MUPbgWM.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-DGpXRtp4.mjs} +6 -6
  68. package/dist/PlanCustomizationEditor-CEMP_Dhz.js +1 -0
  69. package/dist/PlanCustomizationEditor-CpZeilm5.mjs +694 -0
  70. package/dist/{PricingGroupRangeInput.vue.es-CP7-dmxS.mjs → PricingGroupRangeInput.vue.es-CJpvUP3-.mjs} +4 -4
  71. package/dist/{PricingGroupRangeInput.vue.es-BchXhunH.js → PricingGroupRangeInput.vue.es-DZSJ5Mz0.js} +1 -1
  72. package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DJ81eUJX.mjs +141 -0
  73. package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-jrkraJMu.js +1 -0
  74. package/dist/{RadioGroupExtended.vue.es-_QMReyZ8.mjs → RadioGroupExtended.vue.es-BalV7gwp.mjs} +2 -2
  75. package/dist/{RadioGroupExtended.vue.es-Cf5R1P9a.js → RadioGroupExtended.vue.es-Dt6LH9Yh.js} +1 -1
  76. package/dist/{Section.vue.es-KRsHeFoT.mjs → Section.vue.es-D7eiXUbk.mjs} +1 -1
  77. package/dist/{Section.vue.es-CBZx5x53.js → Section.vue.es-zVXBHAL6.js} +1 -1
  78. package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-UdGQMJGY.js → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BdjYFrVC.js} +1 -1
  79. package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BVELHoUj.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-DudMRVka.mjs} +6 -6
  80. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-D4sbq9nA.js +1 -0
  81. package/dist/{Skeleton.vue_vue_type_script_setup_true_lang-DRLoYWGY.mjs → Skeleton.vue_vue_type_script_setup_true_lang-D60YtA9z.mjs} +5 -5
  82. package/dist/StepInput.vue.es-C3Zm6Wc9.mjs +199 -0
  83. package/dist/StepInput.vue.es-mAnuCuDQ.js +1 -0
  84. package/dist/SubscriptionDetails.entry.ce-D4CsSoR9.js +1 -0
  85. package/dist/SubscriptionDetails.entry.ce-WEimiOex.mjs +1057 -0
  86. package/dist/{SubscriptionSchedules-1ikoGncQ.js → SubscriptionSchedules-Cm5Dt-1H.js} +1 -1
  87. package/dist/{SubscriptionSchedules-B6b6xf-E.mjs → SubscriptionSchedules-DrrEAPlx.mjs} +1 -1
  88. package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-Dv2bP9vv.mjs → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DHp_KtbF.mjs} +2284 -2341
  89. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-t2Awijf5.js +1 -0
  90. package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-DvYZvTV9.mjs → SubscriptionSummary.vue_vue_type_script_setup_true_lang-3VYfm6Hm.mjs} +3 -3
  91. package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-DZKl0Zxp.js → SubscriptionSummary.vue_vue_type_script_setup_true_lang-B41qZmcL.js} +1 -1
  92. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-DTjZcOhj.js → SubscriptionsList.vue_vue_type_script_setup_true_lang-Bu-_clEa.js} +1 -1
  93. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-DmeIKMYI.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-DFU0IULg.mjs} +8 -8
  94. package/dist/{TooltipParagraph.vue.es-nGFfHF1A.mjs → TooltipParagraph.vue.es-BXbOJmjr.mjs} +3 -3
  95. package/dist/TooltipParagraph.vue.es-Cph6zT31.js +1 -0
  96. package/dist/{TrialChip.vue.es-DhC5Bpmy.js → TrialChip.vue.es-C_wgHGuN.js} +1 -1
  97. package/dist/{TrialChip.vue.es-eKgO6an3.mjs → TrialChip.vue.es-C_yRujip.mjs} +2 -2
  98. package/dist/{cn.es-BD7Afj5Q.mjs → cn.es-CGa6b2Lt.mjs} +2 -2
  99. package/dist/{cn.es-BLE3T5Rx.js → cn.es-D9YMDvG2.js} +1 -1
  100. package/dist/components/BillingInformation/BillingInformation.cjs +1 -1
  101. package/dist/components/BillingInformation/BillingInformation.mjs +4 -4
  102. package/dist/components/BillingInformationForm/BillingInformationForm.cjs +1 -1
  103. package/dist/components/BillingInformationForm/BillingInformationForm.mjs +246 -230
  104. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs +1 -1
  105. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +4 -4
  106. package/dist/components/Invoice/Invoice.cjs +1 -1
  107. package/dist/components/Invoice/Invoice.mjs +201 -212
  108. package/dist/components/InvoiceDetails/InvoiceDetails.cjs +1 -1
  109. package/dist/components/InvoiceDetails/InvoiceDetails.mjs +4 -4
  110. package/dist/components/InvoiceHeader/InvoiceHeader.cjs +1 -1
  111. package/dist/components/InvoiceHeader/InvoiceHeader.mjs +2 -2
  112. package/dist/components/InvoicesList/InvoicesList.cjs +1 -1
  113. package/dist/components/InvoicesList/InvoicesList.mjs +3 -3
  114. package/dist/components/PaymentHistory/PaymentHistory.cjs +1 -1
  115. package/dist/components/PaymentHistory/PaymentHistory.mjs +4 -4
  116. package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs +1 -1
  117. package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +5 -5
  118. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs +1 -1
  119. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +4 -4
  120. package/dist/components/SubscriptionsList/SubscriptionsList.cjs +1 -1
  121. package/dist/components/SubscriptionsList/SubscriptionsList.mjs +5 -5
  122. package/dist/components/WalletBalances/WalletBalances.cjs +1 -1
  123. package/dist/components/WalletBalances/WalletBalances.mjs +3 -3
  124. package/dist/{customElements-CSzbVZIH.js → customElements-C963-LtW.js} +36 -32
  125. package/dist/{customElements-DT1YyL4O.mjs → customElements-D5DAoHRI.mjs} +231 -196
  126. package/dist/{customer-Cq4fF__H.mjs → customer-DKa1B2vp.mjs} +4 -4
  127. package/dist/{customer-CJonIvSm.js → customer-TE1FnGT0.js} +1 -1
  128. package/dist/{de-DE-BSlbAnPE.js → de-DE-B4TUdnUf.js} +1 -1
  129. package/dist/{de-DE-CyvjSD9b.mjs → de-DE-CLfzTbbX.mjs} +39 -6
  130. package/dist/de-DE-DaBBl-Ak.js +1 -0
  131. package/dist/{de-DE-DXsG-vXA.mjs → de-DE-jkW2dJrX.mjs} +28 -14
  132. package/dist/en-US-BNevqm0M.js +1 -0
  133. package/dist/{en-US-xQrWj8qI.mjs → en-US-D6SGRAch.mjs} +39 -6
  134. package/dist/en-US-J85TQRI8.js +1 -0
  135. package/dist/{en-US-C939IZ5i.mjs → en-US-SDhjlY_v.mjs} +20 -5
  136. package/dist/formControl-ODrpUvcA.js +1 -0
  137. package/dist/{index-BPU8tIml.mjs → formControl-dX7l8o3c.mjs} +160 -143
  138. package/dist/icon-sprite.svg.es-BZIz7-0d.mjs +4 -0
  139. package/dist/icon-sprite.svg.es-Ds6lDf5p.js +1 -0
  140. package/dist/index.cjs +1 -1
  141. package/dist/index.mjs +4 -4
  142. package/dist/{invoices-EamWI_jz.js → invoices-ClqTWYF9.js} +1 -1
  143. package/dist/{invoices-CVZOfEOY.mjs → invoices-DJTwftJv.mjs} +1 -1
  144. package/dist/it-IT-BkPbTueL.js +1 -0
  145. package/dist/{it-IT-DT3rfjOY.js → it-IT-CSYvGmpT.js} +1 -1
  146. package/dist/{it-IT-BxpwB3oJ.mjs → it-IT-CaaFToGB.mjs} +20 -6
  147. package/dist/{it-IT-C09oObBM.mjs → it-IT-Cym1UvvK.mjs} +39 -6
  148. package/dist/{nl-NL-DfkhOJKc.js → nl-NL-CpE4IgwO.js} +1 -1
  149. package/dist/{nl-NL-na2I4aiP.mjs → nl-NL-D0MQKaql.mjs} +34 -20
  150. package/dist/{nl-NL-BhNND_yi.mjs → nl-NL-D0c4x5C0.mjs} +39 -6
  151. package/dist/nl-NL-jIfAVGv0.js +1 -0
  152. package/dist/paymentMethods-AL2U_byg.js +1 -0
  153. package/dist/{paymentMethods-By1SebnO.mjs → paymentMethods-CWzJhcWK.mjs} +16 -14
  154. package/dist/{payments-Dnjg9Se4.js → payments-BmiHMlQt.js} +1 -1
  155. package/dist/{payments-BYZLQTJ-.mjs → payments-aXyfylwk.mjs} +6 -6
  156. package/dist/pricing.es-C07bgEZx.js +1 -0
  157. package/dist/pricing.es-QYWrKMUJ.mjs +30 -0
  158. package/dist/pricingPlanSchedules-BD4GIP_F.mjs +32 -0
  159. package/dist/pricingPlanSchedules-BfsMSvN0.js +1 -0
  160. package/dist/screens/Checkout/Checkout.cjs +1 -1
  161. package/dist/screens/Checkout/Checkout.mjs +2 -2
  162. package/dist/screens/CustomerOverview/CustomerOverview.cjs +1 -1
  163. package/dist/screens/CustomerOverview/CustomerOverview.mjs +10 -10
  164. package/dist/screens/PayInvoice/PayInvoice.cjs +1 -1
  165. package/dist/screens/PayInvoice/PayInvoice.mjs +57 -55
  166. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs +1 -1
  167. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +9 -9
  168. package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs +1 -1
  169. package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +3 -769
  170. package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs +1 -1
  171. package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +243 -270
  172. package/dist/{subscription-CrVOr5MF.mjs → subscription-D1yHKUNc.mjs} +2 -2
  173. package/dist/{subscriptions-BKER9RUc.js → subscriptions-Cm83ckfl.js} +1 -1
  174. package/dist/{subscriptions-Gj3KgCZz.mjs → subscriptions-cnR5fnf7.mjs} +1 -1
  175. package/dist/types/components/{wallets/WalletModalShell.types.d.ts → payments/OnDemandPaymentModalShell/OnDemandPaymentModalShell.types.d.ts} +3 -3
  176. package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +5 -0
  177. package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripeFrame.types.d.ts +5 -9
  178. package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.vue.d.ts +7 -11
  179. package/dist/types/components/providers/AuthProvider/AuthProvider.vue.d.ts +7 -11
  180. package/dist/types/components/providers/ConfigProvider/ConfigProvider.vue.d.ts +7 -11
  181. package/dist/types/components/providers/CssOverridesProvider/CssOverridesProvider.vue.d.ts +7 -11
  182. package/dist/types/components/providers/EntryProvider/EntryProvider.vue.d.ts +7 -11
  183. package/dist/types/components/providers/ErrorBoundary/ErrorBoundary.vue.d.ts +7 -11
  184. package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.vue.d.ts +7 -11
  185. package/dist/types/components/providers/HostElementProvider/HostElementProvider.vue.d.ts +7 -11
  186. package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +2 -2
  187. package/dist/types/components/providers/LoggerProvider/LoggerProvider.vue.d.ts +7 -11
  188. package/dist/types/components/providers/PortalProvider/PortalProvider.vue.d.ts +7 -11
  189. package/dist/types/components/providers/Provider/Provider.vue.d.ts +7 -11
  190. package/dist/types/components/providers/TeleportProvider/TeleportProvider.vue.d.ts +7 -11
  191. package/dist/types/components/providers/TranslationProvider/TranslationOverride.vue.d.ts +7 -11
  192. package/dist/types/components/providers/TranslationProvider/TranslationProvider.vue.d.ts +7 -11
  193. package/dist/types/components/subscriptions/ChargeOnDemandModal/ChargeOnDemandModal.types.d.ts +21 -0
  194. package/dist/types/components/subscriptions/OnDemandItemsCard/OnDemandItemsCard.types.d.ts +7 -0
  195. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.configuration.types.d.ts +27 -0
  196. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.entry.types.d.ts +1 -1
  197. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.types.d.ts +6 -5
  198. package/dist/types/services/paymentMethods.types.d.ts +4 -2
  199. package/dist/types/services/requests.types.d.ts +5 -0
  200. package/dist/types/vendor/@solvimon/solvimon-types/index.d.ts +5 -0
  201. package/dist/types/vendor/@solvimon/solvimon-types/types/AgentContext.d.ts +3 -0
  202. package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalPolicies.d.ts +6 -1
  203. package/dist/types/vendor/@solvimon/solvimon-types/types/ChargeOnDemandPricingItems.d.ts +23 -0
  204. package/dist/types/vendor/@solvimon/solvimon-types/types/CustomFields.d.ts +16 -4
  205. package/dist/types/vendor/@solvimon/solvimon-types/types/Embeddable.d.ts +8 -0
  206. package/dist/types/vendor/@solvimon/solvimon-types/types/Invoice.d.ts +21 -6
  207. package/dist/types/vendor/@solvimon/solvimon-types/types/OAuth.d.ts +28 -0
  208. package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentAcceptor.d.ts +2 -1
  209. package/dist/types/vendor/@solvimon/solvimon-types/types/Permission.d.ts +1 -1
  210. package/dist/types/vendor/@solvimon/solvimon-types/types/Platform.d.ts +6 -1
  211. package/dist/types/vendor/@solvimon/solvimon-types/types/Portal.d.ts +5 -0
  212. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingItemConfig.d.ts +5 -0
  213. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanGroups.d.ts +31 -0
  214. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSchedule.d.ts +9 -1
  215. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanScheduleInfo.d.ts +1 -1
  216. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSubscription.d.ts +3 -3
  217. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlans.d.ts +3 -0
  218. package/dist/types/vendor/@solvimon/solvimon-types/types/Product.d.ts +2 -0
  219. package/dist/types/vendor/@solvimon/solvimon-types/types/ProductItem.d.ts +2 -0
  220. package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteTemplates.d.ts +2 -0
  221. package/dist/types/vendor/@solvimon/solvimon-types/types/ResourceStatus.d.ts +1 -1
  222. package/dist/types/vendor/@solvimon/solvimon-types/types/SeatAssignment.d.ts +22 -0
  223. package/dist/types/vendor/@solvimon/solvimon-types/types/Wallet.d.ts +6 -0
  224. package/dist/types/vendor/@solvimon/solvimon-types/types/Workflows.d.ts +128 -1
  225. package/dist/{useActionDispatchProvider-DDHrhy3i.js → useActionDispatchProvider-CHkVQMaE.js} +1 -1
  226. package/dist/{useActionDispatchProvider-MjTckd4f.mjs → useActionDispatchProvider-DDYqIh3r.mjs} +1 -1
  227. package/dist/{useCustomer-BW0DBEJh.js → useCustomer-DGYtowRy.js} +1 -1
  228. package/dist/{useCustomer-CxnF7r8Z.mjs → useCustomer-XZKWsolE.mjs} +1 -1
  229. package/dist/{useCustomerFormLabels-zPc8QrwJ.mjs → useCustomerFormLabels-CcnkJLcB.mjs} +6 -6
  230. package/dist/useCustomerFormLabels-DAZziqYt.js +1 -0
  231. package/dist/{useExperimentalFeature-9teNYGuP.js → useExperimentalFeature-COOU6IZd.js} +1 -1
  232. package/dist/{useExperimentalFeature-NsSDg-e3.mjs → useExperimentalFeature-ierhOt9Q.mjs} +1 -1
  233. package/dist/{useInvoiceData-GQwk6fl4.mjs → useInvoiceData-BEK-7msA.mjs} +3 -3
  234. package/dist/{useInvoiceData-DvV2AsgC.js → useInvoiceData-CQRn8l9C.js} +1 -1
  235. package/dist/{useInvoicesList-Xnth6s6U.js → useInvoicesList-BQkKyyXa.js} +1 -1
  236. package/dist/{useInvoicesList-CGmFSQSg.mjs → useInvoicesList-C4I118KM.mjs} +7 -7
  237. package/dist/{useLoadInitialData-BvvaWeAe.mjs → useLoadInitialData-CR0kbYw8.mjs} +1 -1
  238. package/dist/{useLoadInitialData-Cjkc70u-.js → useLoadInitialData-CrKnBZs_.js} +1 -1
  239. package/dist/{usePaymentMethodAvailability-DKyscbom.js → usePaymentMethodAvailability-Ci6LeYKt.js} +1 -1
  240. package/dist/{usePaymentMethodAvailability-BWaaj3N3.mjs → usePaymentMethodAvailability-ZH-m3B-A.mjs} +12 -12
  241. package/dist/{usePaymentMethodOptions-l-wVAmIW.mjs → usePaymentMethodOptions-Ciifjo6c.mjs} +15 -13
  242. package/dist/usePaymentMethodOptions-Cqe92ZBn.js +1 -0
  243. package/dist/{usePaymentMethods-DvQVnsSV.mjs → usePaymentMethods-B-OKRyKd.mjs} +1 -1
  244. package/dist/{usePaymentMethods-BDFVB-kK.js → usePaymentMethods-BKwrl82-.js} +1 -1
  245. package/dist/usePayments-Bauj16B-.js +1 -0
  246. package/dist/{usePayments-D_dyuf6S.mjs → usePayments-CV85OV8V.mjs} +46 -41
  247. package/dist/{usePortal-BU4ibdWq.js → usePortal-DSLImEfr.js} +1 -1
  248. package/dist/{usePortal-Br5lYuPT.mjs → usePortal-H8Tv2TnZ.mjs} +1 -1
  249. package/dist/{useSubscription-DRBUt9H5.js → useSubscription-BiYNJT2e.js} +1 -1
  250. package/dist/{useSubscription-CqRae2I9.mjs → useSubscription-DqnxWNKg.mjs} +1 -1
  251. package/dist/{useTimePeriod.es-BxIGnCAP.mjs → useTimePeriod.es-B22-fno3.mjs} +1 -1
  252. package/dist/{useTimePeriod.es-DDos3-EH.js → useTimePeriod.es-D2aiyfd-.js} +1 -1
  253. package/dist/useWatchDebounced-B8iX7ykx.js +1 -0
  254. package/dist/useWatchDebounced-BHlBPcXB.mjs +20 -0
  255. package/package.json +11 -8
  256. package/dist/Checkout.entry.ce-D8O4qJ24.js +0 -2
  257. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-D_jcV7VG.js +0 -1
  258. package/dist/InvoiceSummary.vue.es-BOnvORpf.js +0 -1
  259. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-De7h9-fH.js +0 -1
  260. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DnBLj1wZ.mjs +0 -141
  261. package/dist/PaymentIntegrationFormAdyen-BQXXwpUK.js +0 -98
  262. package/dist/PaymentIntegrationFormStripe-Bs4F7oK_.js +0 -102
  263. package/dist/PaymentMethod.vue.es-CXV_ThBY.js +0 -1
  264. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-BwsRDlQJ.js +0 -1
  265. package/dist/PlanCustomizationEditor-0kEXoOcM.js +0 -1
  266. package/dist/PlanCustomizationEditor-Dv69xPbX.mjs +0 -877
  267. package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DmVJ2JQE.mjs +0 -131
  268. package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-YsI__d0V.js +0 -1
  269. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-DypW8aNJ.js +0 -1
  270. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-Cd56tuZb.js +0 -1
  271. package/dist/TooltipParagraph.vue.es-7IQdU3Tf.js +0 -1
  272. package/dist/de-DE-DXsDvO5y.js +0 -1
  273. package/dist/en-US-9xdcz3T5.js +0 -1
  274. package/dist/en-US-DHdI11k9.js +0 -1
  275. package/dist/icon-sprite.svg.es-Bt21fMEt.mjs +0 -4
  276. package/dist/icon-sprite.svg.es-Dauis9LS.js +0 -1
  277. package/dist/index-DwueOtPi.js +0 -1
  278. package/dist/it-IT-CcRIzP1A.js +0 -1
  279. package/dist/nl-NL-5PrgQl8q.js +0 -1
  280. package/dist/paymentMethods-Bwym8l9a.js +0 -1
  281. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagement.types.d.ts +0 -47
  282. package/dist/useCustomerFormLabels-C773h3J0.js +0 -1
  283. package/dist/usePaymentMethodOptions-DuXKS36F.js +0 -1
  284. package/dist/usePayments-CIJocDhR.js +0 -1
  285. package/dist/useWatchDebounced-CAU1WI1P.js +0 -1
  286. package/dist/useWatchDebounced-DT5IicPp.mjs +0 -14
@@ -1,771 +1,5 @@
1
- import { computed as u, ref as D, defineComponent as O, openBlock as c, createBlock as m, unref as e, withCtx as p, createElementVNode as U, createVNode as M, createTextVNode as w, toDisplayString as S, createCommentVNode as C, createElementBlock as F, Fragment as Z, renderList as J, shallowRef as K, watch as W, defineAsyncComponent as Q, toRef as X, renderSlot as ee, normalizeProps as te, guardReactiveProps as ne } from "vue";
2
- import { _ as ae } from "../../Alert.vue.es-lIiAWf2S.mjs";
3
- import { _ as V } from "../../Button.vue.es-PbJFK8z7.mjs";
4
- import { _ as G } from "../../ErrorNotification.vue.es-CVUuIt8Z.mjs";
5
- import { u as N, _ as E, b as se, d as ie, e as oe } from "../../customElements-DT1YyL4O.mjs";
6
- import { C as re } from "../../ContentWithAsideLayout-BCM8tmZN.mjs";
7
- import { u as le } from "../../useActionDispatchProvider-MjTckd4f.mjs";
8
- import { b as q, a as ce } from "../../subscription-CrVOr5MF.mjs";
9
- import { _ as ue, u as de } from "../../CustomerWalletBalances.vue_vue_type_script_setup_true_lang-CaNXS48v.mjs";
10
- import { _ as pe } from "../../CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-R47ln7Wb.mjs";
11
- import { _ as me } from "../../EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DeotDsFP.mjs";
12
- import { _ as be } from "../../Skeleton.vue_vue_type_script_setup_true_lang-DRLoYWGY.mjs";
13
- import { _ as Y } from "../../Section.vue.es-KRsHeFoT.mjs";
14
- import { g as ge } from "../../pricing-DLOeiAIB.mjs";
15
- import { f as z, b as fe } from "../../formatting.es-RclXHhKo.mjs";
16
- import { _ as he } from "../../PaymentMethod.vue.es-C0j580g7.mjs";
17
- import { M as ve } from "../../Modal.vue.es-jT61xK_A.mjs";
18
- import { c as _e } from "../../subscriptions-Gj3KgCZz.mjs";
19
- import { _ as ye } from "../../SubscriptionSummary.vue_vue_type_script_setup_true_lang-DvYZvTV9.mjs";
20
- import { g as we } from "../../api.es-QaC926Xu.mjs";
21
- import { i as Se } from "../../useIncrementalLoading-Cgxw2GD7.mjs";
22
- import { c as Ce } from "../../paymentMethods-By1SebnO.mjs";
23
- import { A as Me } from "../../error-BHVZJGwD.mjs";
24
- import { u as xe } from "../../useSubscription-CqRae2I9.mjs";
25
- import { u as $e } from "../../useCustomer-CxnF7r8Z.mjs";
26
- import { u as Pe } from "../../usePaymentMethods-DvQVnsSV.mjs";
27
- import { u as Ae } from "../../useLoadInitialData-BvvaWeAe.mjs";
28
- import { a as ke } from "../../sessionReference-3h-6FdrC.mjs";
29
- function Ee({
30
- subscription: t
31
- }) {
32
- const { dispatchAction: o } = le(), a = u(() => {
33
- if (!t.value) return !1;
34
- const b = t.value.inactive_periods;
35
- return !b || b.length === 0;
36
- }), n = u(() => {
37
- var _;
38
- const b = (_ = t.value) == null ? void 0 : _.inactive_periods;
39
- return Array.isArray(b) && b.length > 0;
40
- }), i = D();
41
- return { isCancellable: a, isRenewable: n, pendingVariant: i, cancel: () => {
42
- t.value && (i.value = "CANCEL");
43
- }, renew: () => {
44
- t.value && (i.value = "RENEW");
45
- }, dismiss: () => {
46
- i.value = void 0;
47
- }, manage: () => {
48
- t.value && o({
49
- action: "manage-subscription",
50
- data: { subscriptionId: t.value.id }
51
- });
52
- } };
53
- }
54
- function Le(t) {
55
- var n, i, s, r, l, g, b;
56
- const o = (s = (i = (n = t.items) == null ? void 0 : n[0]) == null ? void 0 : i.configs) == null ? void 0 : s[0], a = (l = (r = o == null ? void 0 : o.details) == null ? void 0 : r.bands) == null ? void 0 : l[0];
57
- return {
58
- amount: (a == null ? void 0 : a.amount) ?? (a == null ? void 0 : a.fixed_amount),
59
- billingPeriod: ((g = o == null ? void 0 : o.details) == null ? void 0 : g.pricing_period) ?? ((b = o == null ? void 0 : o.details) == null ? void 0 : b.billing_period)
60
- };
61
- }
62
- function Be(t) {
63
- var n, i, s;
64
- const o = new Set(
65
- (((n = t.pricing_plan_schedule) == null ? void 0 : n.enabled_pricings) ?? []).map(
66
- ({ pricing_id: r }) => r
67
- )
68
- );
69
- return o.size === 0 ? [] : (((s = (i = t.pricing_plan_version) == null ? void 0 : i.pricing_categories) == null ? void 0 : s.flatMap(
70
- (r) => r.pricing_groups ?? []
71
- )) ?? []).flatMap(
72
- (r) => (r.pricings ?? []).filter((l) => o.has(l.id)).map((l) => ({
73
- pricingId: l.id,
74
- pricingGroupId: r.id,
75
- groupName: r.name,
76
- // A pricing without a name of its own is only identifiable by the choice it belongs to.
77
- name: ge(l) || r.name,
78
- ...Le(l)
79
- }))
80
- );
81
- }
82
- const Te = { class: "sv-enabled-pricings-list__item-body flex items-center gap-4" }, Oe = { class: "sv-enabled-pricings-list__item-content grow" }, Re = /* @__PURE__ */ O({
83
- __name: "EnabledPricingsListItem",
84
- props: {
85
- entry: { type: Object }
86
- },
87
- emits: ["upgrade"],
88
- setup(t) {
89
- const o = t, { $t: a } = N(), n = u(() => {
90
- const { amount: i, billingPeriod: s } = o.entry;
91
- if (i)
92
- return s ? a(
93
- {
94
- defaultMessage: "{amount} per {period}",
95
- id: "enabled_pricings_list.item.price",
96
- description: 'The recurring price of an enabled pricing, e.g. "€ 100,00 per month"'
97
- },
98
- {
99
- amount: z(i),
100
- period: fe(s, {
101
- short: !0,
102
- hideValueForExactPeriods: !0
103
- })
104
- }
105
- ) : z(i);
106
- });
107
- return (i, s) => (c(), m(e(Y), { class: "sv-enabled-pricings-list__item" }, {
108
- default: p(() => [
109
- U("div", Te, [
110
- U("div", Oe, [
111
- M(e(E), {
112
- tag: "span",
113
- variant: "body-xs",
114
- color: "subtle",
115
- class: "sv-enabled-pricings-list__item-group"
116
- }, {
117
- default: p(() => [
118
- w(S(t.entry.groupName), 1)
119
- ]),
120
- _: 1
121
- }),
122
- M(e(E), {
123
- tag: "h3",
124
- variant: "heading-3",
125
- "no-spacing": "",
126
- class: "sv-enabled-pricings-list__item-name"
127
- }, {
128
- default: p(() => [
129
- w(S(t.entry.name), 1)
130
- ]),
131
- _: 1
132
- }),
133
- n.value ? (c(), m(e(E), {
134
- key: 0,
135
- tag: "span",
136
- variant: "body-sm",
137
- color: "subtle",
138
- class: "sv-enabled-pricings-list__item-price"
139
- }, {
140
- default: p(() => [
141
- w(S(n.value), 1)
142
- ]),
143
- _: 1
144
- })) : C("", !0)
145
- ]),
146
- M(e(V), {
147
- intent: "secondary",
148
- class: "sv-action sv-action--secondary sv-enabled-pricings-list__item-upgrade shrink-0",
149
- type: "button",
150
- size: "xs",
151
- onClick: s[0] || (s[0] = (r) => i.$emit("upgrade", t.entry))
152
- }, {
153
- default: p(() => [
154
- w(S(e(a)({
155
- defaultMessage: "Upgrade",
156
- id: "enabled_pricings_list.item.upgrade_button.label",
157
- description: "Label for the button that changes which pricing is enabled for a group"
158
- })), 1)
159
- ]),
160
- _: 1
161
- })
162
- ])
163
- ]),
164
- _: 1
165
- }));
166
- }
167
- }), Ue = { class: "sv-enabled-pricings-list__items grid grid-cols-1 gap-2" }, Ne = /* @__PURE__ */ O({
168
- __name: "EnabledPricingsList",
169
- props: {
170
- pricingPlanSchedule: { type: Object }
171
- },
172
- emits: ["upgrade"],
173
- setup(t) {
174
- const o = t, { $t: a } = N(), n = u(() => Be(o.pricingPlanSchedule));
175
- return (i, s) => n.value.length > 0 ? (c(), m(e(Y), {
176
- key: 0,
177
- class: "sv-enabled-pricings-list",
178
- "content-background": "none",
179
- "no-border": "",
180
- "no-spacing": "",
181
- title: e(a)({
182
- defaultMessage: "Upgrades",
183
- id: "enabled_pricings_list.title",
184
- description: "Title for the block listing the pricings enabled on a subscription"
185
- })
186
- }, {
187
- default: p(() => [
188
- U("div", Ue, [
189
- (c(!0), F(Z, null, J(n.value, (r) => (c(), m(Re, {
190
- key: r.pricingId,
191
- entry: r,
192
- onUpgrade: s[0] || (s[0] = (l) => i.$emit("upgrade", l))
193
- }, null, 8, ["entry"]))), 128))
194
- ])
195
- ]),
196
- _: 1
197
- }, 8, ["title"])) : C("", !0);
198
- }
199
- });
200
- function Ie({
201
- variant: t,
202
- renewableUntil: o,
203
- billingPeriodEndsAt: a
204
- }) {
205
- const { $t: n } = N(), i = u(() => t.value === "RENEW"), s = u(
206
- () => i.value ? n({
207
- defaultMessage: "Renew subscription",
208
- description: "Title of the renew subscription confirmation modal",
209
- id: "subscription_cancellation_modal.renew.title"
210
- }) : n({
211
- defaultMessage: "Cancel subscription",
212
- description: "Title of the cancel subscription confirmation modal",
213
- id: "subscription_cancellation_modal.cancel.title"
214
- })
215
- ), r = u(() => i.value ? o.value ? n(
216
- {
217
- defaultMessage: "You can renew your subscription until {date}. After this period you can only create a new subscription.",
218
- description: "Explanation of the deadline for undoing a cancellation, shown in the renew subscription modal",
219
- id: "subscription_cancellation_modal.renew.explanation_with_date"
220
- },
221
- { date: o.value }
222
- ) : n({
223
- defaultMessage: "Your subscription will continue as before, and billing will resume on its usual schedule.",
224
- description: "Explanation of what happens when a cancellation is undone, shown in the renew subscription modal when no end date is known",
225
- id: "subscription_cancellation_modal.renew.explanation"
226
- }) : a.value ? n(
227
- {
228
- defaultMessage: "Your subscription will be canceled, but you’ll continue to have access until {date}.",
229
- description: "Explanation of what happens when a running subscription is cancelled, naming the date access ends, shown in the cancel subscription modal",
230
- id: "subscription_cancellation_modal.cancel.explanation_with_date"
231
- },
232
- { date: a.value }
233
- ) : n({
234
- defaultMessage: "Your subscription will be canceled, but you’ll continue to have access until the end of the billing period.",
235
- description: "Explanation of what happens when a running subscription is cancelled, shown in the cancel subscription modal",
236
- id: "subscription_cancellation_modal.cancel.explanation"
237
- })), l = u(
238
- () => i.value ? n({
239
- defaultMessage: "Renew subscription",
240
- description: "Label of the confirm button in the renew subscription modal",
241
- id: "subscription_cancellation_modal.renew.confirm_button.label"
242
- }) : n({
243
- defaultMessage: "Cancel subscription",
244
- description: "Label of the confirm button in the cancel subscription modal",
245
- id: "subscription_cancellation_modal.cancel.confirm_button.label"
246
- })
247
- ), g = u(
248
- () => n({
249
- defaultMessage: "Cancel",
250
- description: "Label of the button that dismisses the cancellation modal",
251
- id: "subscription_cancellation_modal.cancel_button.label"
252
- })
253
- ), b = u(
254
- () => i.value ? n({
255
- defaultMessage: "We could not renew your subscription. Please try again.",
256
- description: "Error shown when undoing a cancellation fails",
257
- id: "subscription_cancellation_modal.renew.error"
258
- }) : n({
259
- defaultMessage: "We could not cancel your subscription. Please try again.",
260
- description: "Error shown when cancelling a subscription fails",
261
- id: "subscription_cancellation_modal.cancel.error"
262
- })
263
- );
264
- return { title: s, explanation: r, confirmButtonText: l, cancelButtonText: g, errorMessage: b };
265
- }
266
- const je = 50;
267
- function De() {
268
- const { getPaymentMethods: t } = Ce(), o = K();
269
- return { paymentMethod: o, get: async ({
270
- customerId: n,
271
- paymentMethodId: i
272
- }) => {
273
- const s = await we(async (r) => {
274
- const l = await t({
275
- customerId: n,
276
- pagination: { page: r, pageSize: je }
277
- });
278
- if (!Se(l))
279
- throw new Error("Could not load the customer’s payment methods.");
280
- return l;
281
- });
282
- return o.value = s.data.find(({ id: r }) => r === i), o.value;
283
- } };
284
- }
285
- const Fe = { class: "sv-subscription-cancellation-modal sv-subscription-cancellation-modal__body flex flex-col gap-3" }, We = {
286
- key: 0,
287
- class: "sv-subscription-cancellation-modal__meta flex flex-wrap items-center gap-x-6 gap-y-2 px-3 pb-2"
288
- }, Ve = {
289
- key: 0,
290
- class: "sv-subscription-cancellation-modal__renews flex gap-1"
291
- }, Ye = /* @__PURE__ */ O({
292
- __name: "SubscriptionCancellationModal",
293
- props: {
294
- showModal: { type: Boolean },
295
- variant: { type: null },
296
- subscription: { type: Object },
297
- avatar: { type: String }
298
- },
299
- emits: ["confirmed", "close"],
300
- setup(t, { emit: o }) {
301
- const a = t, n = o, { $t: i, formatDate: s } = N(), r = se(), { setSubscriptionCancellation: l } = _e(), g = u(() => a.variant), b = u(() => {
302
- var y;
303
- const d = ((y = a.subscription) == null ? void 0 : y.inactive_periods) ?? [], v = d.find(({ type: j }) => j === "CANCEL") ?? d[0];
304
- if (v)
305
- return s({
306
- date: v.start_at,
307
- format: "date",
308
- offsetType: "local"
309
- });
310
- }), _ = u(() => {
311
- var v, y;
312
- const d = (y = (v = a.subscription) == null ? void 0 : v.next_invoice) == null ? void 0 : y.invoice_date;
313
- if (d)
314
- return s({
315
- date: d,
316
- format: "date",
317
- offsetType: "local"
318
- });
319
- }), P = _, A = u(
320
- () => {
321
- var d, v;
322
- return (((v = (d = q(a.subscription)) == null ? void 0 : d.pricing_plan_schedule) == null ? void 0 : v.enabled_pricings) ?? []).map(({ pricing_id: y }) => y).filter((y) => !!y);
323
- }
324
- ), { title: x, explanation: k, confirmButtonText: L, cancelButtonText: B, errorMessage: T } = Ie({ variant: g, renewableUntil: b, billingPeriodEndsAt: _ }), { paymentMethod: $, get: I } = De();
325
- W(
326
- [
327
- () => a.showModal,
328
- () => {
329
- var d;
330
- return (d = a.subscription) == null ? void 0 : d.payment_method_id;
331
- },
332
- () => {
333
- var d;
334
- return (d = a.subscription) == null ? void 0 : d.customer_id;
335
- }
336
- ],
337
- ([d, v, y]) => {
338
- var j;
339
- !d || !v || !y || v !== ((j = $.value) == null ? void 0 : j.id) && I({ customerId: y, paymentMethodId: v }).catch(() => {
340
- });
341
- },
342
- { immediate: !0 }
343
- );
344
- const f = D(!1), h = D(!1);
345
- W(
346
- () => a.showModal,
347
- (d) => {
348
- d && (h.value = !1);
349
- }
350
- );
351
- const R = async () => {
352
- if (!(!a.subscription || !a.variant || f.value)) {
353
- f.value = !0, h.value = !1;
354
- try {
355
- await l({
356
- id: a.subscription.id,
357
- variant: a.variant
358
- }), n("confirmed"), n("close");
359
- } catch (d) {
360
- r.error(
361
- "SUBSCRIPTION_CANCELLATION_FAILED",
362
- "Failed to change the cancellation state of a subscription",
363
- { variant: a.variant },
364
- d
365
- ), h.value = !0;
366
- } finally {
367
- f.value = !1;
368
- }
369
- }
370
- }, H = () => {
371
- f.value || n("close");
372
- };
373
- return (d, v) => (c(), m(e(ve), {
374
- size: "md",
375
- "show-modal": t.showModal,
376
- title: e(x),
377
- "confirm-button-text": e(L),
378
- "cancel-button-text": e(B),
379
- "is-loading": f.value,
380
- "no-click-away": f.value,
381
- "no-backdrop-close": f.value,
382
- onConfirm: R,
383
- onClose: H
384
- }, {
385
- body: p(() => [
386
- U("div", Fe, [
387
- M(e(E), {
388
- variant: "body-sm",
389
- color: "subtle",
390
- tag: "p",
391
- class: "sv-subscription-cancellation-modal__explanation"
392
- }, {
393
- default: p(() => [
394
- w(S(e(k)), 1)
395
- ]),
396
- _: 1
397
- }),
398
- t.subscription ? (c(), m(e(Y), {
399
- key: 0,
400
- "no-spacing": "",
401
- class: "sv-subscription-cancellation-modal__subscription"
402
- }, {
403
- default: p(() => [
404
- M(ye, {
405
- subscription: t.subscription,
406
- avatar: t.avatar,
407
- "enabled-pricing-ids": A.value
408
- }, null, 8, ["subscription", "avatar", "enabled-pricing-ids"]),
409
- e(P) || e($) ? (c(), F("div", We, [
410
- e(P) ? (c(), F("div", Ve, [
411
- M(e(E), {
412
- tag: "span",
413
- variant: "body-xs",
414
- color: "secondary",
415
- weight: "semibold"
416
- }, {
417
- default: p(() => [
418
- w(S(e(i)({
419
- defaultMessage: "Renews",
420
- description: "Label before the date the subscription renews, shown in the cancel subscription modal",
421
- id: "subscription_cancellation_modal.renews_label"
422
- })), 1)
423
- ]),
424
- _: 1
425
- }),
426
- M(e(E), {
427
- tag: "span",
428
- variant: "body-xs",
429
- color: "secondary"
430
- }, {
431
- default: p(() => [
432
- w(S(e(P)), 1)
433
- ]),
434
- _: 1
435
- })
436
- ])) : C("", !0),
437
- e($) ? (c(), m(e(he), {
438
- key: 1,
439
- variant: "condensed",
440
- class: "sv-subscription-cancellation-modal__payment-method",
441
- "payment-method": e($)
442
- }, null, 8, ["payment-method"])) : C("", !0)
443
- ])) : C("", !0)
444
- ]),
445
- _: 1
446
- })) : C("", !0),
447
- h.value ? (c(), m(e(G), {
448
- key: 1,
449
- class: "sv-subscription-cancellation-modal__error sv-error",
450
- title: e(T)
451
- }, null, 8, ["title"])) : C("", !0)
452
- ])
453
- ]),
454
- _: 1
455
- }, 8, ["show-modal", "title", "confirm-button-text", "cancel-button-text", "is-loading", "no-click-away", "no-backdrop-close"]));
456
- }
457
- }), ze = { class: "sv-subscription-details__header flex flex-col gap-2 md:flex-row md:items-center" }, Ge = /* @__PURE__ */ O({
458
- __name: "SubscriptionDetails",
459
- props: {
460
- subscription: { type: Object },
461
- schedulesData: { type: Array },
462
- customer: { type: Object },
463
- paymentMethods: { type: Array },
464
- walletBalances: { default: () => [], type: Array },
465
- hasWalletBalancesError: { type: Boolean },
466
- avatar: { type: String },
467
- isLoading: { type: Boolean },
468
- error: { type: null }
469
- },
470
- emits: ["top-up-charged", "auto-top-up-saved", "auto-top-up-cancelled", "payment-method-stored", "subscription-changed"],
471
- setup(t, { emit: o }) {
472
- const a = Q(
473
- () => import("../../SubscriptionSchedules-B6b6xf-E.mjs")
474
- ), n = t, i = o, { $t: s } = N(), {
475
- isCancellable: r,
476
- isRenewable: l,
477
- pendingVariant: g,
478
- cancel: b,
479
- renew: _,
480
- dismiss: P,
481
- manage: A
482
- } = Ee({ subscription: X(n, "subscription") }), x = D();
483
- W(g, (f) => {
484
- f && (x.value = void 0);
485
- });
486
- const k = () => {
487
- x.value = g.value, i("subscription-changed");
488
- }, L = u(() => {
489
- if (x.value)
490
- return x.value === "RENEW" ? s({
491
- defaultMessage: "Your subscription has been renewed.",
492
- id: "subscription_details.renew_success",
493
- description: "Confirmation shown after a cancellation has been undone"
494
- }) : s({
495
- defaultMessage: "Your subscription has been cancelled. You keep access until the end of the billing period.",
496
- id: "subscription_details.cancel_success",
497
- description: "Confirmation shown after a subscription has been cancelled"
498
- });
499
- }), B = u(() => q(n.subscription)), T = u(
500
- () => (n.paymentMethods ?? []).find(({ id: f }) => {
501
- var h;
502
- return f === ((h = n.subscription) == null ? void 0 : h.payment_method_id);
503
- })
504
- ), $ = u(() => n.subscription ? [n.subscription] : []), I = u(
505
- () => ce({
506
- subscription: n.subscription,
507
- fallback: s({
508
- defaultMessage: "Subscription details",
509
- id: "subscription_details.title",
510
- description: "Title for the subscription details page"
511
- })
512
- })
513
- );
514
- return (f, h) => (c(), m(e(re), { class: "sv-subscription-details sv-root sv-screen" }, {
515
- header: p(() => [
516
- U("div", ze, [
517
- M(e(E), {
518
- variant: "heading-2",
519
- tag: "h1",
520
- class: "sv-subscription-details__title grow"
521
- }, {
522
- default: p(() => [
523
- w(S(I.value), 1)
524
- ]),
525
- _: 1
526
- }),
527
- e(l) ? (c(), m(e(V), {
528
- key: 0,
529
- intent: "secondary",
530
- class: "sv-action sv-action--secondary sv-subscription-details__renew w-full md:w-auto",
531
- type: "button",
532
- onClick: e(_)
533
- }, {
534
- default: p(() => [
535
- w(S(e(s)({
536
- defaultMessage: "Renew subscription",
537
- id: "subscription_details.renew_button.label",
538
- description: "Label for the renew subscription button on the subscription details page"
539
- })), 1)
540
- ]),
541
- _: 1
542
- }, 8, ["onClick"])) : C("", !0),
543
- e(r) ? (c(), m(e(V), {
544
- key: 1,
545
- intent: "secondary",
546
- class: "sv-action sv-action--secondary sv-subscription-details__cancel w-full md:w-auto",
547
- type: "button",
548
- onClick: e(b)
549
- }, {
550
- default: p(() => [
551
- w(S(e(s)({
552
- defaultMessage: "Cancel subscription",
553
- id: "subscription_details.cancel_button.label",
554
- description: "Label for the cancel subscription button on the subscription details page"
555
- })), 1)
556
- ]),
557
- _: 1
558
- }, 8, ["onClick"])) : C("", !0)
559
- ])
560
- ]),
561
- content: p(() => [
562
- L.value ? (c(), m(e(ae), {
563
- key: 0,
564
- class: "sv-subscription-details__cancellation-success",
565
- type: "success",
566
- title: L.value
567
- }, null, 8, ["title"])) : C("", !0),
568
- t.error ? (c(), m(e(G), {
569
- key: 1,
570
- class: "sv-subscription-details__error sv-error",
571
- title: e(s)({
572
- defaultMessage: "Unable to load this subscription. Please try again later.",
573
- id: "subscription_details.load_error",
574
- description: "Error message shown when the subscription cannot be loaded on the subscription details page"
575
- })
576
- }, null, 8, ["title"])) : t.isLoading ? (c(), m(be, {
577
- key: 2,
578
- variant: "section",
579
- class: "min-h-[220px]"
580
- })) : t.subscription ? (c(), m(e(a), {
581
- key: 3,
582
- class: "sv-subscription-details__schedules",
583
- "schedules-data": t.schedulesData ?? [],
584
- configuration: { subscriptionId: t.subscription.id },
585
- "is-loading": t.isLoading
586
- }, null, 8, ["schedules-data", "configuration", "is-loading"])) : (c(), m(me, {
587
- key: 4,
588
- class: "sv-subscription-details__empty-state",
589
- icon: "receipt_long"
590
- }, {
591
- title: p(() => [
592
- w(S(e(s)({
593
- defaultMessage: "Subscription not found",
594
- id: "subscription_details.empty_state.title",
595
- description: "Title shown when the requested subscription does not exist"
596
- })), 1)
597
- ]),
598
- message: p(() => [
599
- w(S(e(s)({
600
- defaultMessage: "This subscription is no longer available.",
601
- id: "subscription_details.empty_state.message",
602
- description: "Message shown when the requested subscription does not exist"
603
- })), 1)
604
- ]),
605
- _: 1
606
- }))
607
- ]),
608
- aside: p(() => [
609
- M(ue, {
610
- class: "sv-subscription-details__wallet-balances",
611
- "has-error": !!t.hasWalletBalancesError,
612
- "is-loading": t.isLoading,
613
- "wallet-balances": t.walletBalances,
614
- "show-top-up-button": "",
615
- customer: t.customer,
616
- "payment-methods": t.paymentMethods,
617
- subscriptions: $.value,
618
- onTopUpCharged: h[0] || (h[0] = (R) => f.$emit("top-up-charged")),
619
- onAutoTopUpSaved: h[1] || (h[1] = (R) => f.$emit("auto-top-up-saved")),
620
- onAutoTopUpCancelled: h[2] || (h[2] = (R) => f.$emit("auto-top-up-cancelled")),
621
- onPaymentMethodStored: h[3] || (h[3] = (R) => f.$emit("payment-method-stored"))
622
- }, null, 8, ["has-error", "is-loading", "wallet-balances", "customer", "payment-methods", "subscriptions"]),
623
- B.value ? (c(), m(Ne, {
624
- key: 0,
625
- class: "sv-subscription-details__upgrades",
626
- "pricing-plan-schedule": B.value,
627
- onUpgrade: e(A)
628
- }, null, 8, ["pricing-plan-schedule", "onUpgrade"])) : C("", !0),
629
- T.value ? (c(), m(pe, {
630
- key: 1,
631
- class: "sv-subscription-details__payment-method",
632
- "is-loading": t.isLoading,
633
- "payment-methods": [T.value],
634
- configuration: { showViewAllButton: !1, showAddButton: !1 }
635
- }, null, 8, ["is-loading", "payment-methods"])) : C("", !0),
636
- M(Ye, {
637
- "show-modal": !!e(g),
638
- variant: e(g),
639
- subscription: t.subscription,
640
- avatar: t.avatar,
641
- onConfirmed: k,
642
- onClose: e(P)
643
- }, null, 8, ["show-modal", "variant", "subscription", "avatar", "onClose"])
644
- ]),
645
- _: 1
646
- }));
647
- }
648
- }), qe = /* @__PURE__ */ O({
649
- __name: "SubscriptionDetails.entry.view",
650
- props: {
651
- configuration: { type: Object },
652
- environment: { type: String },
653
- locale: { type: String },
654
- dateLocale: { type: String },
655
- messages: { type: Object },
656
- primaryColor: { type: String },
657
- secondaryColor: { type: String },
658
- isShadowRoot: { type: Boolean },
659
- experimentalFeatures: { type: Array },
660
- logLevel: { type: String },
661
- onLog: { type: Function },
662
- allowedPortalTypes: { type: Array },
663
- portalObject: { type: Object },
664
- cssOverrides: { type: [String, Array] },
665
- branding: { type: Object }
666
- },
667
- setup(t) {
668
- const o = t, a = o.portalObject.customer_id, {
669
- subscription: n,
670
- withPlanData: i,
671
- get: s,
672
- error: r
673
- } = xe({ subscriptionId: o.configuration.subscriptionId }), { customer: l, get: g } = $e({ customerId: a }), { items: b, fetchAll: _ } = Pe({ customerId: a }), {
674
- walletBalances: P,
675
- apiStatus: A,
676
- fetch: x
677
- } = de({ customerId: a }), { isLoading: k } = Ae(
678
- s(),
679
- g.execute(),
680
- _(),
681
- x()
682
- ), L = u(() => n.value ? i(n.value) : []), B = u(() => {
683
- var $;
684
- return (($ = P.value) == null ? void 0 : $.wallet_balances) ?? [];
685
- }), T = u(() => A.value === Me.Failed);
686
- return ($, I) => ee($.$slots, "default", {
687
- subscription: e(n),
688
- schedulesData: L.value,
689
- customer: e(l),
690
- paymentMethods: e(b),
691
- walletBalances: B.value,
692
- hasWalletBalancesError: T.value,
693
- isLoading: e(k),
694
- error: e(r),
695
- refreshWalletBalances: e(x),
696
- refreshPaymentMethods: e(_),
697
- refreshSubscription: e(s)
698
- });
699
- }
700
- }), He = /* @__PURE__ */ O({
701
- __name: "SubscriptionDetails.entry",
702
- props: {
703
- configuration: { type: Object },
704
- environment: { type: String },
705
- locale: { type: String },
706
- dateLocale: { type: String },
707
- messages: { type: Object },
708
- primaryColor: { type: String },
709
- secondaryColor: { type: String },
710
- isShadowRoot: { type: Boolean },
711
- experimentalFeatures: { type: Array },
712
- logLevel: { type: String },
713
- onLog: { type: Function },
714
- allowedPortalTypes: { type: Array },
715
- portalObject: { type: Object },
716
- cssOverrides: { type: [String, Array] },
717
- branding: { type: Object }
718
- },
719
- setup(t) {
720
- const o = ke("subscription-details");
721
- return (a, n) => (c(), m(e(ie), {
722
- entry: a.$props,
723
- "component-name": e(o),
724
- "allowed-portal-types": ["CUSTOMER"],
725
- onError: n[0] || (n[0] = (i) => a.$emit("error", i))
726
- }, {
727
- default: p(() => [
728
- M(qe, te(ne(a.$props)), {
729
- default: p(({
730
- subscription: i,
731
- schedulesData: s,
732
- customer: r,
733
- paymentMethods: l,
734
- walletBalances: g,
735
- hasWalletBalancesError: b,
736
- isLoading: _,
737
- error: P,
738
- refreshWalletBalances: A,
739
- refreshPaymentMethods: x,
740
- refreshSubscription: k
741
- }) => [
742
- M(Ge, {
743
- subscription: i,
744
- "schedules-data": s,
745
- customer: r,
746
- avatar: t.configuration.avatar,
747
- "payment-methods": l,
748
- "wallet-balances": g,
749
- "has-wallet-balances-error": b,
750
- "is-loading": _,
751
- error: P,
752
- onTopUpCharged: A,
753
- onAutoTopUpSaved: A,
754
- onAutoTopUpCancelled: A,
755
- onPaymentMethodStored: x,
756
- onSubscriptionChanged: k
757
- }, null, 8, ["subscription", "schedules-data", "customer", "avatar", "payment-methods", "wallet-balances", "has-wallet-balances-error", "is-loading", "error", "onTopUpCharged", "onAutoTopUpSaved", "onAutoTopUpCancelled", "onPaymentMethodStored", "onSubscriptionChanged"])
758
- ]),
759
- _: 1
760
- }, 16)
761
- ]),
762
- _: 1
763
- }, 8, ["entry", "component-name"]));
764
- }
765
- }), { define: Ct } = oe(
766
- He,
767
- "subscription-details"
768
- );
1
+ import { d as r } from "../../SubscriptionDetails.entry.ce-WEimiOex.mjs";
2
+ import "../../customElements-D5DAoHRI.mjs";
769
3
  export {
770
- Ct as defineSolvimonSubscriptionDetails
4
+ r as defineSolvimonSubscriptionDetails
771
5
  };