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

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 (302) hide show
  1. package/README.md +16 -11
  2. package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-BM1_31Tl.js → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-081H9T3X.js} +1 -1
  3. package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-Dh_a0NRB.mjs → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DNepCMRp.mjs} +6 -6
  4. package/dist/{Avatar.vue.es-CvxRdCes.js → Avatar.vue.es-BJxSCU76.js} +1 -1
  5. package/dist/{Avatar.vue.es-C9Jkfuvp.mjs → Avatar.vue.es-sfMZiX7A.mjs} +1 -1
  6. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-BV5iEOxn.js +1 -0
  7. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-BRSUpMPU.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-DmY3a-Wi.mjs} +15 -16
  8. package/dist/{Button.vue.es-CeUTAc2n.js → Button.vue.es-BzkuglKw.js} +1 -1
  9. package/dist/{Button.vue.es-BbSN0uOk.mjs → Button.vue.es-Cmjfm4jw.mjs} +1 -1
  10. package/dist/ChargeOnDemandModal-CB4mrvkU.mjs +975 -0
  11. package/dist/ChargeOnDemandModal-b17YswWA.js +1 -0
  12. package/dist/Checkout.entry.ce-HlUrJ1kh.js +2 -0
  13. package/dist/Checkout.entry.ce-X2zGo6hG.mjs +4381 -0
  14. package/dist/{Chip.vue.es-BN83K3Tk.js → Chip.vue.es-B2jjzIOc.js} +1 -1
  15. package/dist/{Chip.vue.es-T22Q7AF9.mjs → Chip.vue.es-DksjbJO8.mjs} +2 -2
  16. package/dist/{ContextMenu.vue.es-DXKR7WFg.js → ContextMenu.vue.es-DUU43tCy.js} +1 -1
  17. package/dist/{ContextMenu.vue.es-0PRmCAzL.mjs → ContextMenu.vue.es-zRvoEJlV.mjs} +10 -10
  18. package/dist/{CustomerBillingInformation.vue.es-yrLGc7oL.js → CustomerBillingInformation.vue.es-BfPEB42w.js} +1 -1
  19. package/dist/{CustomerBillingInformation.vue.es-C2j40TYP.mjs → CustomerBillingInformation.vue.es-DhFbpZPK.mjs} +2 -2
  20. package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BZwGWhaL.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-B41la-T7.mjs} +14 -15
  21. package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-C8diNL5x.js → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BISD6n8X.js} +1 -1
  22. package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-xqMsbuU6.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DssxYPSA.mjs} +895 -891
  23. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-XufY6bdV.js +1 -0
  24. package/dist/{DividerText.vue.es-DsYRZzuE.js → DividerText.vue.es-CoyDk9eH.js} +1 -1
  25. package/dist/{DividerText.vue.es-CV1XK_Vz.mjs → DividerText.vue.es-nAo1eRMV.mjs} +1 -1
  26. package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-srXOpUb0.js → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CQ0KrXHJ.js} +1 -1
  27. package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-kpjrC-4q.mjs → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-QW9NdxyZ.mjs} +4 -4
  28. package/dist/{ErrorNotification.vue.es-CiUJva6S.mjs → ErrorNotification.vue.es-h-D37rfG.mjs} +1 -1
  29. package/dist/{ErrorNotification.vue.es-QfRoDhkn.js → ErrorNotification.vue.es-tS9vySUZ.js} +1 -1
  30. package/dist/{IconButton.vue.es-CytBZUkZ.js → IconButton.vue.es-DgQN18Am.js} +1 -1
  31. package/dist/{IconButton.vue.es-ChvsCZQG.mjs → IconButton.vue.es-DvfErUOq.mjs} +2 -2
  32. package/dist/{IconTitle.vue.es-DPruIJ6l.mjs → IconTitle.vue.es-B_8bS0tn.mjs} +3 -3
  33. package/dist/{IconTitle.vue.es-DtnpBObk.js → IconTitle.vue.es-Dn2xcPHj.js} +1 -1
  34. package/dist/{Input.vue.es-BkzQDkrz.js → Input.vue.es-B60eK8Ds.js} +1 -1
  35. package/dist/{Input.vue.es-DJQqJrsb.mjs → Input.vue.es-CU9u5yKH.mjs} +2 -2
  36. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Do0dDtkA.js → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Dqdezse7.js} +1 -1
  37. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-BC-zyUqe.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-gpMtYNzn.mjs} +2 -2
  38. package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-DQFS7SfE.js → InvoiceEntryView.vue_vue_type_script_setup_true_lang-Cl6HU243.js} +1 -1
  39. package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-CFhhhwId.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-DNqawlYV.mjs} +2 -2
  40. package/dist/InvoiceSummary.vue.es-CAmA8g0t.js +1 -0
  41. package/dist/{InvoiceSummary.vue.es-6qpbyymg.mjs → InvoiceSummary.vue.es-CRiFJ5x-.mjs} +576 -565
  42. package/dist/{Modal.vue.es-BuRlbyZw.mjs → Modal.vue.es-BeI5C9-9.mjs} +5 -5
  43. package/dist/{Modal.vue.es-JpE0eh_Q.js → Modal.vue.es-DvLB3uCG.js} +1 -1
  44. package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-nAuhIopc.js → PaymentErrorCard.vue_vue_type_script_setup_true_lang-Dg4rn1cm.js} +1 -1
  45. package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-UmKgVvdj.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-DqHcOnZp.mjs} +5 -6
  46. package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-YpcWHm24.js → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-B9R5JRJv.js} +1 -1
  47. package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DggCusgC.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DlqoWKQq.mjs} +3 -3
  48. package/dist/{PaymentHistoryBlock-uWuWjr8I.js → PaymentHistoryBlock-Uw8xeKUk.js} +1 -1
  49. package/dist/{PaymentHistoryBlock-DnmParhQ.mjs → PaymentHistoryBlock-mCqdFjnL.mjs} +1 -1
  50. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BS8N4yt9.js → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-ALI5f0py.js} +1 -1
  51. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BziIf86i.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DxaY3eFN.mjs} +4 -4
  52. package/dist/{PaymentIntegrationForm-DTXm56QQ.js → PaymentIntegrationForm-Cx0zCf_C.js} +1 -1
  53. package/dist/{PaymentIntegrationForm-DL55i0HD.mjs → PaymentIntegrationForm-DVx4DEtD.mjs} +1 -1
  54. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-B-viSd_i.js +1 -0
  55. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CCKCXXZX.mjs +154 -0
  56. package/dist/PaymentIntegrationFormAdyen-B-v-4nlj.js +98 -0
  57. package/dist/{PaymentIntegrationFormAdyen-Cqsy82To.mjs → PaymentIntegrationFormAdyen-Yr8p5Fly.mjs} +202 -192
  58. package/dist/PaymentIntegrationFormStripe-CoLmAzas.js +102 -0
  59. package/dist/{PaymentIntegrationFormStripe-DIU1rnwH.mjs → PaymentIntegrationFormStripe-Ds0BXt89.mjs} +247 -220
  60. package/dist/{PaymentMethod.vue.es-m1NasGqw.mjs → PaymentMethod.vue.es-4YRmQZHX.mjs} +168 -148
  61. package/dist/PaymentMethod.vue.es-D0D9jW8s.js +1 -0
  62. package/dist/{PaymentMethodForm-BEVdWCrH.js → PaymentMethodForm-CMP5FLRO.js} +1 -1
  63. package/dist/{PaymentMethodForm-BYzt1PVP.mjs → PaymentMethodForm-Dnj_7mJU.mjs} +1 -1
  64. package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-fdRTp7sc.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-DsD3UjkC.mjs} +60 -58
  65. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-nxnGyJmE.js +1 -0
  66. package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-FhMBZqtI.js → PaymentMethodsList.vue_vue_type_script_setup_true_lang-CIrrQUS6.js} +1 -1
  67. package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-FChyZp2v.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-CjECKNi_.mjs} +6 -6
  68. package/dist/PlanCustomizationEditor-DS1r2vBO.js +1 -0
  69. package/dist/PlanCustomizationEditor-DlVSCKGN.mjs +722 -0
  70. package/dist/{PricingGroupRangeInput.vue.es-B4ZbKxUw.mjs → PricingGroupRangeInput.vue.es-BhNcjD7z.mjs} +4 -4
  71. package/dist/{PricingGroupRangeInput.vue.es-Ba3v0J_R.js → PricingGroupRangeInput.vue.es-VoOTnHjk.js} +1 -1
  72. package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CmJITenR.mjs +141 -0
  73. package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-hS6A-KcP.js +1 -0
  74. package/dist/{RadioGroupExtended.vue.es-CkhBp9kI.mjs → RadioGroupExtended.vue.es-9YzXzZF0.mjs} +2 -2
  75. package/dist/{RadioGroupExtended.vue.es-CHrcqSRq.js → RadioGroupExtended.vue.es-DlbURHQN.js} +1 -1
  76. package/dist/{Section.vue.es-CSrVPlUK.js → Section.vue.es-Bbt0RITt.js} +1 -1
  77. package/dist/{Section.vue.es-D5svcVS_.mjs → Section.vue.es-DVEpre9O.mjs} +1 -1
  78. package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BqOSBdFQ.js → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Dl7MbMlk.js} +1 -1
  79. package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BM9Y4Cy3.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-xzjqB-v-.mjs} +6 -6
  80. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-CJWE7wVi.mjs +41 -0
  81. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-otI7Hz2w.js +1 -0
  82. package/dist/StepInput.vue.es-H-3R4jJq.js +1 -0
  83. package/dist/StepInput.vue.es-o-3Lg4Ai.mjs +199 -0
  84. package/dist/SubscriptionDetails.entry.ce-CGl6Z5ql.mjs +1057 -0
  85. package/dist/SubscriptionDetails.entry.ce-CQUO_uXH.js +1 -0
  86. package/dist/{SubscriptionSchedules-yDcsD1hd.mjs → SubscriptionSchedules-DuWZmnD2.mjs} +1 -1
  87. package/dist/{SubscriptionSchedules-CMVoB2bw.js → SubscriptionSchedules-Dy0fUgx5.js} +1 -1
  88. package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DZHsQImd.mjs → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-C1kTiW-H.mjs} +2284 -2341
  89. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-Dd_Rr6qn.js +1 -0
  90. package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-BgXZMihr.js → SubscriptionSummary.vue_vue_type_script_setup_true_lang-CYyP4ra9.js} +1 -1
  91. package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-BmNl5u8R.mjs → SubscriptionSummary.vue_vue_type_script_setup_true_lang-CsekphtV.mjs} +3 -3
  92. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-DOJ0t_fo.js → SubscriptionsList.vue_vue_type_script_setup_true_lang-B4j8Clbj.js} +1 -1
  93. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-BUzdZHah.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BsdevoeT.mjs} +9 -10
  94. package/dist/{TooltipParagraph.vue.es-CxdL8-B7.mjs → TooltipParagraph.vue.es-B9A17aG7.mjs} +3 -3
  95. package/dist/TooltipParagraph.vue.es-DvC5Wjaz.js +1 -0
  96. package/dist/{TrialChip.vue.es-BCc8q5j0.js → TrialChip.vue.es-CLQZ5F0n.js} +1 -1
  97. package/dist/{TrialChip.vue.es-BK7m7e7q.mjs → TrialChip.vue.es-Dmv3lPiQ.mjs} +2 -2
  98. package/dist/{cn.es-71nFUose.js → cn.es-C9Yqq4tg.js} +1 -1
  99. package/dist/{cn.es-ZXNzpauQ.mjs → cn.es-Cvt6TIwv.mjs} +2 -2
  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 +15 -16
  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 +14 -15
  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-q_i9y0Ph.mjs → customElements-B58FcXIN.mjs} +231 -196
  125. package/dist/{customElements-hH6pju3X.js → customElements-DUMRMFQ5.js} +36 -32
  126. package/dist/{customer-BDoOIAFr.mjs → customer-B3LPAhaD.mjs} +4 -4
  127. package/dist/{customer-C9q6ti8s.js → customer-CisTPaXj.js} +1 -1
  128. package/dist/{de-DE-BSlbAnPE.js → de-DE-B4TUdnUf.js} +1 -1
  129. package/dist/{de-DE-B_ik9VNt.mjs → de-DE-DKp5LCu0.mjs} +53 -7
  130. package/dist/de-DE-DL74pMLb.js +1 -0
  131. package/dist/{de-DE-DXsG-vXA.mjs → de-DE-jkW2dJrX.mjs} +28 -14
  132. package/dist/en-US-B2XFj-_p.js +1 -0
  133. package/dist/{en-US-DkCltadt.mjs → en-US-DQ5vlv9Z.mjs} +53 -7
  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-DIzkXntV.mjs → invoices-3520M5AN.mjs} +1 -1
  143. package/dist/{invoices-CHp75zZI.js → invoices-CKQBLar2.js} +1 -1
  144. package/dist/{it-IT-CHj2McbF.mjs → it-IT-BgFVsO5S.mjs} +53 -7
  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-CqNK62qe.js +1 -0
  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-Dx-TNXQ1.js +1 -0
  151. package/dist/{nl-NL-Cdvd_XMN.mjs → nl-NL-UiRWbO9S.mjs} +53 -7
  152. package/dist/{paymentMethods-DEKp_4QM.mjs → paymentMethods-CWlvwK5V.mjs} +16 -14
  153. package/dist/paymentMethods-Cw-i95mM.js +1 -0
  154. package/dist/{payments-C0-Hq2a4.mjs → payments-2qeQdpiW.mjs} +6 -6
  155. package/dist/{payments-DBvregE8.js → payments-CS7_YcOW.js} +1 -1
  156. package/dist/pricing-BIMpDI_p.mjs +29 -0
  157. package/dist/pricing-BOqG21f9.js +1 -0
  158. package/dist/pricing.es-C07bgEZx.js +1 -0
  159. package/dist/pricing.es-QYWrKMUJ.mjs +30 -0
  160. package/dist/pricingPlanSchedules-B_sTAIgU.js +1 -0
  161. package/dist/pricingPlanSchedules-ChQCbMfe.mjs +32 -0
  162. package/dist/screens/Checkout/Checkout.cjs +1 -1
  163. package/dist/screens/Checkout/Checkout.mjs +2 -2
  164. package/dist/screens/CustomerOverview/CustomerOverview.cjs +1 -1
  165. package/dist/screens/CustomerOverview/CustomerOverview.mjs +10 -10
  166. package/dist/screens/PayInvoice/PayInvoice.cjs +1 -1
  167. package/dist/screens/PayInvoice/PayInvoice.mjs +57 -55
  168. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs +1 -1
  169. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +9 -9
  170. package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs +1 -1
  171. package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +3 -769
  172. package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs +1 -1
  173. package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +243 -270
  174. package/dist/{subscription-CrVOr5MF.mjs → subscription-D1yHKUNc.mjs} +2 -2
  175. package/dist/{subscriptions--9MaTXMb.mjs → subscriptions-DcfcBYAq.mjs} +1 -1
  176. package/dist/{subscriptions-BArXBCFr.js → subscriptions-DwVsf4Ev.js} +1 -1
  177. package/dist/types/components/checkout/CheckoutTitle.types.d.ts +10 -0
  178. package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethod.types.d.ts +9 -5
  179. package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethodApplePay.types.d.ts +3 -1
  180. package/dist/types/components/payments/ExpressPaymentMethods/ExpressPaymentMethods.types.d.ts +5 -1
  181. package/dist/types/components/{wallets/WalletModalShell.types.d.ts → payments/OnDemandPaymentModalShell/OnDemandPaymentModalShell.types.d.ts} +3 -3
  182. package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +5 -0
  183. package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripeFrame.types.d.ts +5 -9
  184. package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.vue.d.ts +7 -11
  185. package/dist/types/components/providers/AuthProvider/AuthProvider.vue.d.ts +7 -11
  186. package/dist/types/components/providers/ConfigProvider/ConfigProvider.vue.d.ts +7 -11
  187. package/dist/types/components/providers/CssOverridesProvider/CssOverridesProvider.vue.d.ts +7 -11
  188. package/dist/types/components/providers/EntryProvider/EntryProvider.vue.d.ts +7 -11
  189. package/dist/types/components/providers/ErrorBoundary/ErrorBoundary.vue.d.ts +7 -11
  190. package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.vue.d.ts +7 -11
  191. package/dist/types/components/providers/HostElementProvider/HostElementProvider.vue.d.ts +7 -11
  192. package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +2 -2
  193. package/dist/types/components/providers/LoggerProvider/LoggerProvider.vue.d.ts +7 -11
  194. package/dist/types/components/providers/PortalProvider/PortalProvider.vue.d.ts +7 -11
  195. package/dist/types/components/providers/Provider/Provider.vue.d.ts +7 -11
  196. package/dist/types/components/providers/TeleportProvider/TeleportProvider.vue.d.ts +7 -11
  197. package/dist/types/components/providers/TranslationProvider/TranslationOverride.vue.d.ts +7 -11
  198. package/dist/types/components/providers/TranslationProvider/TranslationProvider.vue.d.ts +7 -11
  199. package/dist/types/components/subscriptions/ChargeOnDemandModal/ChargeOnDemandModal.types.d.ts +21 -0
  200. package/dist/types/components/subscriptions/OnDemandItemsCard/OnDemandItemsCard.types.d.ts +7 -0
  201. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.configuration.types.d.ts +27 -0
  202. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.entry.types.d.ts +1 -1
  203. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.types.d.ts +6 -5
  204. package/dist/types/services/paymentMethods.types.d.ts +4 -2
  205. package/dist/types/services/requests.types.d.ts +5 -0
  206. package/dist/types/vendor/@solvimon/solvimon-types/index.d.ts +5 -0
  207. package/dist/types/vendor/@solvimon/solvimon-types/types/AgentContext.d.ts +3 -0
  208. package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalPolicies.d.ts +6 -1
  209. package/dist/types/vendor/@solvimon/solvimon-types/types/ChargeOnDemandPricingItems.d.ts +23 -0
  210. package/dist/types/vendor/@solvimon/solvimon-types/types/CustomFields.d.ts +16 -4
  211. package/dist/types/vendor/@solvimon/solvimon-types/types/Embeddable.d.ts +8 -0
  212. package/dist/types/vendor/@solvimon/solvimon-types/types/Invoice.d.ts +21 -6
  213. package/dist/types/vendor/@solvimon/solvimon-types/types/OAuth.d.ts +28 -0
  214. package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentAcceptor.d.ts +2 -1
  215. package/dist/types/vendor/@solvimon/solvimon-types/types/Permission.d.ts +1 -1
  216. package/dist/types/vendor/@solvimon/solvimon-types/types/Platform.d.ts +6 -1
  217. package/dist/types/vendor/@solvimon/solvimon-types/types/Portal.d.ts +5 -0
  218. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingItemConfig.d.ts +5 -0
  219. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanGroups.d.ts +31 -0
  220. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSchedule.d.ts +9 -1
  221. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanScheduleInfo.d.ts +1 -1
  222. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSubscription.d.ts +3 -3
  223. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlans.d.ts +3 -0
  224. package/dist/types/vendor/@solvimon/solvimon-types/types/Product.d.ts +2 -0
  225. package/dist/types/vendor/@solvimon/solvimon-types/types/ProductItem.d.ts +2 -0
  226. package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteTemplates.d.ts +2 -0
  227. package/dist/types/vendor/@solvimon/solvimon-types/types/ResourceStatus.d.ts +1 -1
  228. package/dist/types/vendor/@solvimon/solvimon-types/types/SeatAssignment.d.ts +22 -0
  229. package/dist/types/vendor/@solvimon/solvimon-types/types/Wallet.d.ts +6 -0
  230. package/dist/types/vendor/@solvimon/solvimon-types/types/Workflows.d.ts +128 -1
  231. package/dist/{useActionDispatchProvider-BdciAX8T.mjs → useActionDispatchProvider-B3AvkLL2.mjs} +1 -1
  232. package/dist/{useActionDispatchProvider-CKzeqXzY.js → useActionDispatchProvider-DFhppdve.js} +1 -1
  233. package/dist/{useCustomer-D8ixhuuj.mjs → useCustomer-B-jyJIVy.mjs} +1 -1
  234. package/dist/{useCustomer-DSYr0F58.js → useCustomer-BwZKd9i5.js} +1 -1
  235. package/dist/{useCustomerFormLabels-htMZ0xqB.mjs → useCustomerFormLabels-BQk3d9PZ.mjs} +6 -6
  236. package/dist/useCustomerFormLabels-DV9QiMYh.js +1 -0
  237. package/dist/useExperimentalFeature-BciA3Ok9.mjs +135 -0
  238. package/dist/useExperimentalFeature-CGIkgFR4.js +1 -0
  239. package/dist/{useInvoiceData-Bpbog3zW.mjs → useInvoiceData-BocKdeg7.mjs} +3 -3
  240. package/dist/{useInvoiceData-DhrItfv7.js → useInvoiceData-CNV_FMV8.js} +1 -1
  241. package/dist/{useInvoicesList-BGwcJn4I.mjs → useInvoicesList-C8nsXMJ6.mjs} +7 -7
  242. package/dist/{useInvoicesList-duu_b5GW.js → useInvoicesList-S0IbQcrD.js} +1 -1
  243. package/dist/{useLoadInitialData-BDmmpcfb.mjs → useLoadInitialData-D9GkzY8t.mjs} +1 -1
  244. package/dist/{useLoadInitialData-U2WvBmXT.js → useLoadInitialData-D_R6Jy1s.js} +1 -1
  245. package/dist/usePaymentMethodAvailability-BO_guwAw.js +1 -0
  246. package/dist/{usePaymentMethodAvailability-adqRujTA.mjs → usePaymentMethodAvailability-DAcsKGeh.mjs} +5 -6
  247. package/dist/{usePaymentMethodOptions-DlZtTQNQ.mjs → usePaymentMethodOptions-1vRAo6Ib.mjs} +15 -13
  248. package/dist/usePaymentMethodOptions-CuzOoi2k.js +1 -0
  249. package/dist/{usePaymentMethods-BnmSo_rr.mjs → usePaymentMethods-CbwnGONc.mjs} +1 -1
  250. package/dist/{usePaymentMethods-DZ1a0mnr.js → usePaymentMethods-DDaTZQZp.js} +1 -1
  251. package/dist/{usePayments-s-Z1di8d.mjs → usePayments-Cr6NlGaW.mjs} +46 -41
  252. package/dist/usePayments-DDSjo0rH.js +1 -0
  253. package/dist/{usePortal-Hm7wvtgQ.js → usePortal-C27omjhz.js} +1 -1
  254. package/dist/{usePortal-C4rR5Rhu.mjs → usePortal-C5AsegpS.mjs} +1 -1
  255. package/dist/{useSubscription-DSsXVO0h.mjs → useSubscription-BZJL0VOA.mjs} +1 -1
  256. package/dist/{useSubscription-DMAEJves.js → useSubscription-D787IXY-.js} +1 -1
  257. package/dist/{useTimePeriod.es-CW8ycmpT.mjs → useTimePeriod.es-DWLsLFqs.mjs} +1 -1
  258. package/dist/{useTimePeriod.es-anHB63am.js → useTimePeriod.es-rzxqUCTu.js} +1 -1
  259. package/dist/useWatchDebounced-B8iX7ykx.js +1 -0
  260. package/dist/useWatchDebounced-BHlBPcXB.mjs +20 -0
  261. package/package.json +20 -14
  262. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-7wQAw6Lv.js +0 -1
  263. package/dist/Checkout.entry.ce-BMzK8nQg.mjs +0 -3900
  264. package/dist/Checkout.entry.ce-DgA0ckyl.js +0 -2
  265. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DzbPUvHN.js +0 -1
  266. package/dist/InvoiceSummary.vue.es-v1TkOUhA.js +0 -1
  267. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-4RmdLbzY.js +0 -1
  268. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CvpFnl9V.mjs +0 -141
  269. package/dist/PaymentIntegrationFormAdyen-C9KoiqMh.js +0 -98
  270. package/dist/PaymentIntegrationFormStripe-DTLgGutU.js +0 -102
  271. package/dist/PaymentMethod.vue.es-ZWda5GqF.js +0 -1
  272. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-CzUwtVEI.js +0 -1
  273. package/dist/PlanCustomizationEditor-CunwwXTw.js +0 -1
  274. package/dist/PlanCustomizationEditor-NLVkEYFF.mjs +0 -877
  275. package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-Dvuj-fos.mjs +0 -131
  276. package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-iE4dLawA.js +0 -1
  277. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-DRLoYWGY.mjs +0 -51
  278. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-DypW8aNJ.js +0 -1
  279. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DH7IZrNT.js +0 -1
  280. package/dist/TooltipParagraph.vue.es-DS_69pl1.js +0 -1
  281. package/dist/adyen-CvsH5fok.mjs +0 -117
  282. package/dist/adyen-Druit6gz.js +0 -1
  283. package/dist/de-DE-npBTLtKL.js +0 -1
  284. package/dist/en-US-9xdcz3T5.js +0 -1
  285. package/dist/en-US-kGduGoka.js +0 -1
  286. package/dist/icon-sprite.svg.es-Bt21fMEt.mjs +0 -4
  287. package/dist/icon-sprite.svg.es-Dauis9LS.js +0 -1
  288. package/dist/index-DwueOtPi.js +0 -1
  289. package/dist/it-IT-BayNIAy7.js +0 -1
  290. package/dist/nl-NL-0rV4nFLw.js +0 -1
  291. package/dist/paymentMethods-CZGP6_4W.js +0 -1
  292. package/dist/pricing-BVAld27Y.js +0 -1
  293. package/dist/pricing-DLOeiAIB.mjs +0 -16
  294. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagement.types.d.ts +0 -47
  295. package/dist/useCustomerFormLabels-CRumh405.js +0 -1
  296. package/dist/useExperimentalFeature-D29-TO3R.js +0 -1
  297. package/dist/useExperimentalFeature-JK_kAUQQ.mjs +0 -6
  298. package/dist/usePaymentMethodAvailability-DwtT5Czz.js +0 -1
  299. package/dist/usePaymentMethodOptions-CXdFKFqZ.js +0 -1
  300. package/dist/usePayments-DL4agK2i.js +0 -1
  301. package/dist/useWatchDebounced-CAU1WI1P.js +0 -1
  302. 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-BbSN0uOk.mjs";
4
- import { _ as G } from "../../ErrorNotification.vue.es-CiUJva6S.mjs";
5
- import { u as N, _ as E, b as se, d as ie, e as oe } from "../../customElements-q_i9y0Ph.mjs";
6
- import { C as re } from "../../ContentWithAsideLayout-BCM8tmZN.mjs";
7
- import { u as le } from "../../useActionDispatchProvider-BdciAX8T.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-xqMsbuU6.mjs";
10
- import { _ as pe } from "../../CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BZwGWhaL.mjs";
11
- import { _ as me } from "../../EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-kpjrC-4q.mjs";
12
- import { _ as be } from "../../Skeleton.vue_vue_type_script_setup_true_lang-DRLoYWGY.mjs";
13
- import { _ as Y } from "../../Section.vue.es-D5svcVS_.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-m1NasGqw.mjs";
17
- import { M as ve } from "../../Modal.vue.es-BuRlbyZw.mjs";
18
- import { c as _e } from "../../subscriptions--9MaTXMb.mjs";
19
- import { _ as ye } from "../../SubscriptionSummary.vue_vue_type_script_setup_true_lang-BmNl5u8R.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-DEKp_4QM.mjs";
23
- import { A as Me } from "../../error-BHVZJGwD.mjs";
24
- import { u as xe } from "../../useSubscription-DSsXVO0h.mjs";
25
- import { u as $e } from "../../useCustomer-D8ixhuuj.mjs";
26
- import { u as Pe } from "../../usePaymentMethods-BnmSo_rr.mjs";
27
- import { u as Ae } from "../../useLoadInitialData-BDmmpcfb.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-yDcsD1hd.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-CGl6Z5ql.mjs";
2
+ import "../../customElements-B58FcXIN.mjs";
769
3
  export {
770
- Ct as defineSolvimonSubscriptionDetails
4
+ r as defineSolvimonSubscriptionDetails
771
5
  };