@solvimon/solvimon-web 0.1.0-alpha.25 → 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-Dh_a0NRB.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-BM1_31Tl.js → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DwbIiJBY.js} +1 -1
  4. package/dist/{Avatar.vue.es-CvxRdCes.js → Avatar.vue.es-Bm6MCMAL.js} +1 -1
  5. package/dist/{Avatar.vue.es-C9Jkfuvp.mjs → Avatar.vue.es-BqQHvLGA.mjs} +1 -1
  6. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-7wQAw6Lv.js → BillingInformation.vue_vue_type_script_setup_true_lang-0JHnqIpC.js} +1 -1
  7. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-BRSUpMPU.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-BFza7Nf9.mjs} +8 -8
  8. package/dist/{Button.vue.es-BbSN0uOk.mjs → Button.vue.es-C32_baQN.mjs} +1 -1
  9. package/dist/{Button.vue.es-CeUTAc2n.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-BMzK8nQg.mjs → Checkout.entry.ce-BA5ljKj8.mjs} +1562 -1538
  14. package/dist/{Chip.vue.es-T22Q7AF9.mjs → Chip.vue.es-CKCOY5T6.mjs} +2 -2
  15. package/dist/{Chip.vue.es-BN83K3Tk.js → Chip.vue.es-D60gTbfe.js} +1 -1
  16. package/dist/{ContextMenu.vue.es-DXKR7WFg.js → ContextMenu.vue.es-C7KI8Gz6.js} +1 -1
  17. package/dist/{ContextMenu.vue.es-0PRmCAzL.mjs → ContextMenu.vue.es-Da-lAmTl.mjs} +10 -10
  18. package/dist/{CustomerBillingInformation.vue.es-C2j40TYP.mjs → CustomerBillingInformation.vue.es-BxBQt4Q0.mjs} +2 -2
  19. package/dist/{CustomerBillingInformation.vue.es-yrLGc7oL.js → CustomerBillingInformation.vue.es-bFUx81Ig.js} +1 -1
  20. package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BZwGWhaL.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BcTZgshS.mjs} +6 -6
  21. package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-C8diNL5x.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-xqMsbuU6.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-DsYRZzuE.js → DividerText.vue.es-BF3gnr4e.js} +1 -1
  25. package/dist/{DividerText.vue.es-CV1XK_Vz.mjs → DividerText.vue.es-DKl3FnDJ.mjs} +1 -1
  26. package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-kpjrC-4q.mjs → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-C3QYra1x.mjs} +4 -4
  27. package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-srXOpUb0.js → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-cSQeqr0A.js} +1 -1
  28. package/dist/{ErrorNotification.vue.es-QfRoDhkn.js → ErrorNotification.vue.es-BX9dHEc-.js} +1 -1
  29. package/dist/{ErrorNotification.vue.es-CiUJva6S.mjs → ErrorNotification.vue.es-rRKgmkzV.mjs} +1 -1
  30. package/dist/{IconButton.vue.es-CytBZUkZ.js → IconButton.vue.es-Bwdfu-jm.js} +1 -1
  31. package/dist/{IconButton.vue.es-ChvsCZQG.mjs → IconButton.vue.es-UlqwNPAX.mjs} +2 -2
  32. package/dist/{IconTitle.vue.es-DPruIJ6l.mjs → IconTitle.vue.es-CK9k69tV.mjs} +3 -3
  33. package/dist/{IconTitle.vue.es-DtnpBObk.js → IconTitle.vue.es-Cei98MBw.js} +1 -1
  34. package/dist/{Input.vue.es-BkzQDkrz.js → Input.vue.es-B47l_feL.js} +1 -1
  35. package/dist/{Input.vue.es-DJQqJrsb.mjs → Input.vue.es-D9IjIWc-.mjs} +2 -2
  36. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Do0dDtkA.js → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DKlPrxQS.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-DUfJl07Y.mjs} +2 -2
  38. package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-CFhhhwId.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-D9Rtgapa.mjs} +2 -2
  39. package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-DQFS7SfE.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-6qpbyymg.mjs → InvoiceSummary.vue.es-DQ4KvTaw.mjs} +576 -565
  42. package/dist/{Modal.vue.es-JpE0eh_Q.js → Modal.vue.es-8LN4gBh0.js} +1 -1
  43. package/dist/{Modal.vue.es-BuRlbyZw.mjs → Modal.vue.es-B9xMiyn3.mjs} +5 -5
  44. package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-nAuhIopc.js → PaymentErrorCard.vue_vue_type_script_setup_true_lang-B1yGKkWN.js} +1 -1
  45. package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-UmKgVvdj.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-BVzL2PGe.mjs} +4 -4
  46. package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-YpcWHm24.js → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DSGf6uFP.js} +1 -1
  47. package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DggCusgC.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-nLTPnH4j.mjs} +3 -3
  48. package/dist/{PaymentHistoryBlock-DnmParhQ.mjs → PaymentHistoryBlock-DYa99P1M.mjs} +1 -1
  49. package/dist/{PaymentHistoryBlock-uWuWjr8I.js → PaymentHistoryBlock-Ds93gNvh.js} +1 -1
  50. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BS8N4yt9.js → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CBZhXQfC.js} +1 -1
  51. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BziIf86i.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-D0KnSy0y.mjs} +4 -4
  52. package/dist/{PaymentIntegrationForm-DTXm56QQ.js → PaymentIntegrationForm-B_Db4DG1.js} +1 -1
  53. package/dist/{PaymentIntegrationForm-DL55i0HD.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-Cqsy82To.mjs → PaymentIntegrationFormAdyen-D4qfNtZ_.mjs} +197 -183
  57. package/dist/PaymentIntegrationFormAdyen-HeA9XIj-.js +98 -0
  58. package/dist/{PaymentIntegrationFormStripe-DIU1rnwH.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-m1NasGqw.mjs → PaymentMethod.vue.es-CKu5nApX.mjs} +168 -148
  62. package/dist/{PaymentMethodForm-BEVdWCrH.js → PaymentMethodForm-1d0YIGOu.js} +1 -1
  63. package/dist/{PaymentMethodForm-BYzt1PVP.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-fdRTp7sc.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-D1yIYsb_.mjs} +45 -41
  66. package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-FhMBZqtI.js → PaymentMethodsList.vue_vue_type_script_setup_true_lang-BE4S26JX.js} +1 -1
  67. package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-FChyZp2v.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-B4ZbKxUw.mjs → PricingGroupRangeInput.vue.es-CJpvUP3-.mjs} +4 -4
  71. package/dist/{PricingGroupRangeInput.vue.es-Ba3v0J_R.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-CkhBp9kI.mjs → RadioGroupExtended.vue.es-BalV7gwp.mjs} +2 -2
  75. package/dist/{RadioGroupExtended.vue.es-CHrcqSRq.js → RadioGroupExtended.vue.es-Dt6LH9Yh.js} +1 -1
  76. package/dist/{Section.vue.es-D5svcVS_.mjs → Section.vue.es-D7eiXUbk.mjs} +1 -1
  77. package/dist/{Section.vue.es-CSrVPlUK.js → Section.vue.es-zVXBHAL6.js} +1 -1
  78. package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BqOSBdFQ.js → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BdjYFrVC.js} +1 -1
  79. package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BM9Y4Cy3.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-CMVoB2bw.js → SubscriptionSchedules-Cm5Dt-1H.js} +1 -1
  87. package/dist/{SubscriptionSchedules-yDcsD1hd.mjs → SubscriptionSchedules-DrrEAPlx.mjs} +1 -1
  88. package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DZHsQImd.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-BmNl5u8R.mjs → SubscriptionSummary.vue_vue_type_script_setup_true_lang-3VYfm6Hm.mjs} +3 -3
  91. package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-BgXZMihr.js → SubscriptionSummary.vue_vue_type_script_setup_true_lang-B41qZmcL.js} +1 -1
  92. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-DOJ0t_fo.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-BUzdZHah.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-DFU0IULg.mjs} +8 -8
  94. package/dist/{TooltipParagraph.vue.es-CxdL8-B7.mjs → TooltipParagraph.vue.es-BXbOJmjr.mjs} +3 -3
  95. package/dist/TooltipParagraph.vue.es-Cph6zT31.js +1 -0
  96. package/dist/{TrialChip.vue.es-BCc8q5j0.js → TrialChip.vue.es-C_wgHGuN.js} +1 -1
  97. package/dist/{TrialChip.vue.es-BK7m7e7q.mjs → TrialChip.vue.es-C_yRujip.mjs} +2 -2
  98. package/dist/{cn.es-ZXNzpauQ.mjs → cn.es-CGa6b2Lt.mjs} +2 -2
  99. package/dist/{cn.es-71nFUose.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-hH6pju3X.js → customElements-C963-LtW.js} +36 -32
  125. package/dist/{customElements-q_i9y0Ph.mjs → customElements-D5DAoHRI.mjs} +231 -196
  126. package/dist/{customer-BDoOIAFr.mjs → customer-DKa1B2vp.mjs} +4 -4
  127. package/dist/{customer-C9q6ti8s.js → customer-TE1FnGT0.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-CLfzTbbX.mjs} +38 -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-DkCltadt.mjs → en-US-D6SGRAch.mjs} +38 -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-CHp75zZI.js → invoices-ClqTWYF9.js} +1 -1
  143. package/dist/{invoices-DIzkXntV.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-CHj2McbF.mjs → it-IT-Cym1UvvK.mjs} +38 -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-Cdvd_XMN.mjs → nl-NL-D0c4x5C0.mjs} +38 -6
  151. package/dist/nl-NL-jIfAVGv0.js +1 -0
  152. package/dist/paymentMethods-AL2U_byg.js +1 -0
  153. package/dist/{paymentMethods-DEKp_4QM.mjs → paymentMethods-CWzJhcWK.mjs} +16 -14
  154. package/dist/{payments-DBvregE8.js → payments-BmiHMlQt.js} +1 -1
  155. package/dist/{payments-C0-Hq2a4.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-BArXBCFr.js → subscriptions-Cm83ckfl.js} +1 -1
  174. package/dist/{subscriptions--9MaTXMb.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-CKzeqXzY.js → useActionDispatchProvider-CHkVQMaE.js} +1 -1
  226. package/dist/{useActionDispatchProvider-BdciAX8T.mjs → useActionDispatchProvider-DDYqIh3r.mjs} +1 -1
  227. package/dist/{useCustomer-DSYr0F58.js → useCustomer-DGYtowRy.js} +1 -1
  228. package/dist/{useCustomer-D8ixhuuj.mjs → useCustomer-XZKWsolE.mjs} +1 -1
  229. package/dist/{useCustomerFormLabels-htMZ0xqB.mjs → useCustomerFormLabels-CcnkJLcB.mjs} +6 -6
  230. package/dist/useCustomerFormLabels-DAZziqYt.js +1 -0
  231. package/dist/{useExperimentalFeature-D29-TO3R.js → useExperimentalFeature-COOU6IZd.js} +1 -1
  232. package/dist/{useExperimentalFeature-JK_kAUQQ.mjs → useExperimentalFeature-ierhOt9Q.mjs} +1 -1
  233. package/dist/{useInvoiceData-Bpbog3zW.mjs → useInvoiceData-BEK-7msA.mjs} +3 -3
  234. package/dist/{useInvoiceData-DhrItfv7.js → useInvoiceData-CQRn8l9C.js} +1 -1
  235. package/dist/{useInvoicesList-duu_b5GW.js → useInvoicesList-BQkKyyXa.js} +1 -1
  236. package/dist/{useInvoicesList-BGwcJn4I.mjs → useInvoicesList-C4I118KM.mjs} +7 -7
  237. package/dist/{useLoadInitialData-BDmmpcfb.mjs → useLoadInitialData-CR0kbYw8.mjs} +1 -1
  238. package/dist/{useLoadInitialData-U2WvBmXT.js → useLoadInitialData-CrKnBZs_.js} +1 -1
  239. package/dist/{usePaymentMethodAvailability-DwtT5Czz.js → usePaymentMethodAvailability-Ci6LeYKt.js} +1 -1
  240. package/dist/{usePaymentMethodAvailability-adqRujTA.mjs → usePaymentMethodAvailability-ZH-m3B-A.mjs} +12 -12
  241. package/dist/{usePaymentMethodOptions-DlZtTQNQ.mjs → usePaymentMethodOptions-Ciifjo6c.mjs} +15 -13
  242. package/dist/usePaymentMethodOptions-Cqe92ZBn.js +1 -0
  243. package/dist/{usePaymentMethods-BnmSo_rr.mjs → usePaymentMethods-B-OKRyKd.mjs} +1 -1
  244. package/dist/{usePaymentMethods-DZ1a0mnr.js → usePaymentMethods-BKwrl82-.js} +1 -1
  245. package/dist/usePayments-Bauj16B-.js +1 -0
  246. package/dist/{usePayments-s-Z1di8d.mjs → usePayments-CV85OV8V.mjs} +46 -41
  247. package/dist/{usePortal-Hm7wvtgQ.js → usePortal-DSLImEfr.js} +1 -1
  248. package/dist/{usePortal-C4rR5Rhu.mjs → usePortal-H8Tv2TnZ.mjs} +1 -1
  249. package/dist/{useSubscription-DMAEJves.js → useSubscription-BiYNJT2e.js} +1 -1
  250. package/dist/{useSubscription-DSsXVO0h.mjs → useSubscription-DqnxWNKg.mjs} +1 -1
  251. package/dist/{useTimePeriod.es-CW8ycmpT.mjs → useTimePeriod.es-B22-fno3.mjs} +1 -1
  252. package/dist/{useTimePeriod.es-anHB63am.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-DgA0ckyl.js +0 -2
  257. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DzbPUvHN.js +0 -1
  258. package/dist/InvoiceSummary.vue.es-v1TkOUhA.js +0 -1
  259. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-4RmdLbzY.js +0 -1
  260. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CvpFnl9V.mjs +0 -141
  261. package/dist/PaymentIntegrationFormAdyen-C9KoiqMh.js +0 -98
  262. package/dist/PaymentIntegrationFormStripe-DTLgGutU.js +0 -102
  263. package/dist/PaymentMethod.vue.es-ZWda5GqF.js +0 -1
  264. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-CzUwtVEI.js +0 -1
  265. package/dist/PlanCustomizationEditor-CunwwXTw.js +0 -1
  266. package/dist/PlanCustomizationEditor-NLVkEYFF.mjs +0 -877
  267. package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-Dvuj-fos.mjs +0 -131
  268. package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-iE4dLawA.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-DH7IZrNT.js +0 -1
  271. package/dist/TooltipParagraph.vue.es-DS_69pl1.js +0 -1
  272. package/dist/de-DE-npBTLtKL.js +0 -1
  273. package/dist/en-US-9xdcz3T5.js +0 -1
  274. package/dist/en-US-kGduGoka.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-BayNIAy7.js +0 -1
  279. package/dist/nl-NL-0rV4nFLw.js +0 -1
  280. package/dist/paymentMethods-CZGP6_4W.js +0 -1
  281. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagement.types.d.ts +0 -47
  282. package/dist/useCustomerFormLabels-CRumh405.js +0 -1
  283. package/dist/usePaymentMethodOptions-CXdFKFqZ.js +0 -1
  284. package/dist/usePayments-DL4agK2i.js +0 -1
  285. package/dist/useWatchDebounced-CAU1WI1P.js +0 -1
  286. package/dist/useWatchDebounced-DT5IicPp.mjs +0 -14
@@ -0,0 +1,694 @@
1
+ import { defineComponent as $, computed as V, openBlock as o, createElementBlock as b, createVNode as _, unref as t, withCtx as p, Fragment as A, createTextVNode as v, toDisplayString as y, renderList as N, createBlock as f, useModel as T, ref as K, createElementVNode as h, normalizeClass as U, createCommentVNode as k, mergeModels as x, toRef as w } from "vue";
2
+ import { _ as S } from "./Section.vue.es-D7eiXUbk.mjs";
3
+ import { a as E, _ as M } from "./customElements-D5DAoHRI.mjs";
4
+ import { u as j } from "./useTimePeriod.es-B22-fno3.mjs";
5
+ import { f as O } from "./formatting.es-RclXHhKo.mjs";
6
+ import { _ as X } from "./Expand.vue.es-BleuAfDz.mjs";
7
+ import { a as H, _ as B } from "./Button.vue.es-C32_baQN.mjs";
8
+ import { _ as I } from "./StepInput.vue.es-C3Zm6Wc9.mjs";
9
+ import { g as J, F as Q, a as W, _ as D } from "./Checkout.entry.ce-BA5ljKj8.mjs";
10
+ import { _ as Z } from "./formControl-dX7l8o3c.mjs";
11
+ import { u as L, a as q, _ as G } from "./PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DJ81eUJX.mjs";
12
+ import { g as R } from "./pricing-DLOeiAIB.mjs";
13
+ import { g as ee } from "./pricingPlanSchedule-BPrS2WRd.mjs";
14
+ import { b as te } from "./subscription-D1yHKUNc.mjs";
15
+ const ie = { class: "grid grid-cols-2 gap-2" }, ne = /* @__PURE__ */ $({
16
+ __name: "TieredTableRow",
17
+ props: {
18
+ band: { type: Object },
19
+ previousBand: { type: Object },
20
+ isFirst: { type: Boolean },
21
+ period: { type: Object }
22
+ },
23
+ setup(e) {
24
+ const a = e, { $t: i } = E(), { formatTimePeriod: n } = j(), u = V(() => {
25
+ var m;
26
+ if (a.isFirst)
27
+ return "0";
28
+ if ((m = a.previousBand) != null && m.tier_top_bound && "number" in a.previousBand.tier_top_bound)
29
+ return a.previousBand.tier_top_bound.number;
30
+ }), r = V(() => {
31
+ if (!(!a.band.tier_top_bound || !("number" in a.band.tier_top_bound)))
32
+ return a.band.tier_top_bound.number;
33
+ });
34
+ return (m, l) => (o(), b("div", ie, [
35
+ _(t(M), {
36
+ variant: "body-xs",
37
+ color: "subtle",
38
+ tag: "div"
39
+ }, {
40
+ default: p(() => [
41
+ r.value ? (o(), b(A, { key: 0 }, [
42
+ v(y(t(i)(
43
+ {
44
+ defaultMessage: "{lower_bound} - {upper_bound} seats",
45
+ id: "seats.tiered_range_label",
46
+ description: "The label showing the seat count range for a tiered pricing tier"
47
+ },
48
+ {
49
+ lower_bound: u.value ?? "0",
50
+ upper_bound: r.value
51
+ }
52
+ )), 1)
53
+ ], 64)) : (o(), b(A, { key: 1 }, [
54
+ v(y(t(i)(
55
+ {
56
+ defaultMessage: "> {lower_bound} seats",
57
+ id: "seats.tiered_unbounded_range_label",
58
+ description: "The label showing the unbounded seat count range (greater than) for a tiered pricing tier"
59
+ },
60
+ {
61
+ lower_bound: u.value ?? "0"
62
+ }
63
+ )), 1)
64
+ ], 64))
65
+ ]),
66
+ _: 1
67
+ }),
68
+ _(t(M), {
69
+ variant: "body-xs",
70
+ color: "subtle",
71
+ tag: "div",
72
+ class: "text-right"
73
+ }, {
74
+ default: p(() => [
75
+ v(y(e.band.amount && t(i)(
76
+ {
77
+ defaultMessage: "{amount} per seat/{period}",
78
+ id: "seats.tiered_price_per_seat_period",
79
+ description: "The price per seat and billing period label for a tiered pricing tier"
80
+ },
81
+ {
82
+ amount: t(O)(e.band.amount),
83
+ period: e.period ? t(n)(e.period, {
84
+ short: !0,
85
+ hideValueForExactPeriods: !0
86
+ }) : ""
87
+ }
88
+ )), 1)
89
+ ]),
90
+ _: 1
91
+ })
92
+ ]));
93
+ }
94
+ }), ae = { class: "grid grid-cols-1 gap-0.5 pt-1.5" }, re = /* @__PURE__ */ $({
95
+ __name: "TieredTable",
96
+ props: {
97
+ bands: { type: Array },
98
+ period: { type: Object }
99
+ },
100
+ setup(e) {
101
+ return (a, i) => (o(), b("div", ae, [
102
+ (o(!0), b(A, null, N(e.bands, (n, u) => (o(), f(ne, {
103
+ key: u,
104
+ band: n,
105
+ "is-first": u === 0,
106
+ "previous-band": u > 0 ? e.bands[u - 1] : void 0,
107
+ period: e.period
108
+ }, null, 8, ["band", "is-first", "previous-band", "period"]))), 128))
109
+ ]));
110
+ }
111
+ });
112
+ function Y({
113
+ pricings: e,
114
+ pricingItemConfigId: a
115
+ }) {
116
+ return V(() => {
117
+ var u, r, m, l, g, s, c, d;
118
+ const { config: i, productItem: n } = J({
119
+ pricings: e,
120
+ pricingItemConfigId: a
121
+ });
122
+ return {
123
+ billing: {
124
+ period: (r = (u = i == null ? void 0 : i.billing_period_configs) == null ? void 0 : u[0]) == null ? void 0 : r.billing_period,
125
+ billedInAdvance: i == null ? void 0 : i.billing_in_advance
126
+ },
127
+ product: {
128
+ name: n == null ? void 0 : n.name,
129
+ description: n == null ? void 0 : n.description
130
+ },
131
+ pricing: {
132
+ ...((m = i == null ? void 0 : i.details) == null ? void 0 : m.pricing_type) === "FLAT" && {
133
+ amount: (s = (g = (l = i.details) == null ? void 0 : l.bands) == null ? void 0 : g[0]) == null ? void 0 : s.amount
134
+ },
135
+ ...((c = i == null ? void 0 : i.details) == null ? void 0 : c.pricing_type) === "TIERED" && {
136
+ tiered: { bands: (d = i.details) == null ? void 0 : d.bands }
137
+ }
138
+ }
139
+ };
140
+ });
141
+ }
142
+ const le = { class: "flex flex-row-reverse gap-4 md:flex-row" }, oe = { class: "w-24 shrink-0 justify-start md:w-32" }, se = ["tabindex"], de = { key: 0 }, ue = { key: 0 }, ce = /* @__PURE__ */ $({
143
+ __name: "SeatsEditorItem",
144
+ props: /* @__PURE__ */ x({
145
+ modelValue: { type: Object },
146
+ defaultValue: { type: Object },
147
+ pricings: { type: Array }
148
+ }, {
149
+ modelValue: { required: !0 },
150
+ modelModifiers: {}
151
+ }),
152
+ emits: ["update:modelValue"],
153
+ setup(e) {
154
+ const a = e, i = T(e, "modelValue"), { $t: n } = E(), { formatTimePeriod: u } = j(), r = K(!1), m = V({
155
+ get: () => +(i.value.number || Q),
156
+ set(s) {
157
+ i.value = {
158
+ ...i.value,
159
+ number: s !== void 0 ? s.toString() : void 0
160
+ };
161
+ }
162
+ }), l = Y({
163
+ pricings: a.pricings,
164
+ pricingItemConfigId: i.value.pricing_item_config_id
165
+ }), g = V(() => {
166
+ var s, c;
167
+ return !!((c = (s = l.value.pricing) == null ? void 0 : s.tiered) != null && c.bands);
168
+ });
169
+ return (s, c) => {
170
+ var d, P, C;
171
+ return o(), b("div", null, [
172
+ h("div", le, [
173
+ h("div", oe, [
174
+ _(t(I), {
175
+ modelValue: m.value,
176
+ "onUpdate:modelValue": c[0] || (c[0] = (z) => m.value = z),
177
+ size: "sm",
178
+ min: (d = e.defaultValue) != null && d.number ? +e.defaultValue.number : void 0
179
+ }, null, 8, ["modelValue", "min"])
180
+ ]),
181
+ h("div", {
182
+ class: U(["flex grow flex-col", { "hover:cursor-pointer": g.value }]),
183
+ tabindex: g.value ? 0 : void 0,
184
+ onClick: c[1] || (c[1] = (z) => g.value ? r.value = !r.value : void 0)
185
+ }, [
186
+ _(t(M), {
187
+ tag: "span",
188
+ variant: "body-sm",
189
+ weight: "semibold"
190
+ }, {
191
+ default: p(() => [
192
+ v(y(t(l).product.name || t(n)({
193
+ defaultMessage: "Seats",
194
+ id: "seats.label",
195
+ description: "The label for the seats input field"
196
+ })), 1)
197
+ ]),
198
+ _: 1
199
+ }),
200
+ t(l).pricing.amount ? (o(), f(t(M), {
201
+ key: 0,
202
+ tag: "span",
203
+ variant: "body-xs",
204
+ color: "subtle"
205
+ }, {
206
+ default: p(() => [
207
+ v(y(t(n)(
208
+ {
209
+ defaultMessage: "{amount} per seat/{period}",
210
+ id: "seats.price_per_seat_period",
211
+ description: "The price per seat and billing period label for seat-based pricing"
212
+ },
213
+ {
214
+ amount: t(O)(t(l).pricing.amount),
215
+ period: t(l).billing.period ? t(u)(t(l).billing.period, {
216
+ short: !0,
217
+ hideValueForExactPeriods: !0
218
+ }) : ""
219
+ }
220
+ )), 1)
221
+ ]),
222
+ _: 1
223
+ })) : t(l).pricing.tiered ? (o(), f(t(M), {
224
+ key: 1,
225
+ tag: "span",
226
+ variant: "body-xs",
227
+ color: "subtle"
228
+ }, {
229
+ default: p(() => [
230
+ v(y(t(n)({
231
+ defaultMessage: "Tiered pricing",
232
+ id: "seats.tiered_pricing_label",
233
+ description: "The label indicating tiered pricing structure for seats"
234
+ })) + " ", 1),
235
+ _(t(H), {
236
+ icon: "keyboard_arrow_down",
237
+ size: "xs",
238
+ class: U(["absolute text-gray-400 transition ease-in-out", { "rotate-0": !r.value, "rotate-180": r.value }])
239
+ }, null, 8, ["class"])
240
+ ]),
241
+ _: 1
242
+ })) : k("", !0)
243
+ ], 10, se)
244
+ ]),
245
+ (C = (P = t(l).pricing) == null ? void 0 : P.tiered) != null && C.bands ? (o(), b("div", de, [
246
+ _(t(X), { "is-open": r.value }, {
247
+ default: p(() => [
248
+ r.value ? (o(), b("div", ue, [
249
+ _(re, {
250
+ bands: t(l).pricing.tiered.bands,
251
+ period: t(l).billing.period
252
+ }, null, 8, ["bands", "period"])
253
+ ])) : k("", !0)
254
+ ]),
255
+ _: 1
256
+ }, 8, ["is-open"])
257
+ ])) : k("", !0)
258
+ ]);
259
+ };
260
+ }
261
+ }), me = {
262
+ key: 0,
263
+ class: "grid grid-cols-1 gap-1"
264
+ }, pe = /* @__PURE__ */ $({
265
+ __name: "SeatsEditor",
266
+ props: /* @__PURE__ */ x({
267
+ modelValue: { type: Array },
268
+ initialSeatsValues: { type: Array },
269
+ pricings: { type: Array }
270
+ }, {
271
+ modelValue: { required: !0 },
272
+ modelModifiers: {}
273
+ }),
274
+ emits: ["update:modelValue"],
275
+ setup(e) {
276
+ const a = T(e, "modelValue"), i = (n) => V({
277
+ get: () => a.value[n],
278
+ set: (u) => {
279
+ const r = a.value.slice();
280
+ r[n] = u, a.value = r;
281
+ }
282
+ });
283
+ return (n, u) => e.modelValue.length > 0 ? (o(), b("div", me, [
284
+ (o(!0), b(A, null, N(e.modelValue, (r, m) => (o(), f(t(S), { key: m }, {
285
+ default: p(() => {
286
+ var l;
287
+ return [
288
+ r.pricing_item_config_id ? (o(), f(ce, {
289
+ key: r.pricing_item_config_id,
290
+ modelValue: i(m).value,
291
+ "onUpdate:modelValue": (g) => i(m).value = g,
292
+ "default-value": (l = e.initialSeatsValues) == null ? void 0 : l[m],
293
+ pricings: e.pricings
294
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "default-value", "pricings"])) : k("", !0)
295
+ ];
296
+ }),
297
+ _: 2
298
+ }, 1024))), 128))
299
+ ])) : k("", !0);
300
+ }
301
+ }), ge = { class: "flex flex-row-reverse gap-4 md:flex-row" }, fe = { class: "w-24 shrink-0 justify-start md:w-32" }, be = { class: "flex grow flex-col" }, _e = /* @__PURE__ */ $({
302
+ __name: "UnitsEditorItem",
303
+ props: /* @__PURE__ */ x({
304
+ modelValue: { type: Object },
305
+ defaultValue: { type: Object },
306
+ pricings: { type: Array }
307
+ }, {
308
+ modelValue: { required: !0 },
309
+ modelModifiers: {}
310
+ }),
311
+ emits: ["update:modelValue"],
312
+ setup(e) {
313
+ const a = e, i = T(e, "modelValue"), { $t: n } = E(), u = V({
314
+ get: () => +(i.value.number || W),
315
+ set(m) {
316
+ i.value = {
317
+ ...i.value,
318
+ number: m !== void 0 ? m.toString() : void 0
319
+ };
320
+ }
321
+ }), r = Y({
322
+ pricings: a.pricings,
323
+ pricingItemConfigId: i.value.pricing_item_config_id
324
+ });
325
+ return (m, l) => {
326
+ var g;
327
+ return o(), b("div", ge, [
328
+ h("div", fe, [
329
+ _(t(I), {
330
+ modelValue: u.value,
331
+ "onUpdate:modelValue": l[0] || (l[0] = (s) => u.value = s),
332
+ size: "sm",
333
+ min: (g = e.defaultValue) != null && g.number ? +e.defaultValue.number : void 0
334
+ }, null, 8, ["modelValue", "min"])
335
+ ]),
336
+ h("div", be, [
337
+ _(t(M), {
338
+ tag: "span",
339
+ variant: "body-sm",
340
+ weight: "semibold"
341
+ }, {
342
+ default: p(() => [
343
+ v(y(t(r).product.name || t(n)({
344
+ defaultMessage: "Units",
345
+ id: "units.label",
346
+ description: "The label for the one-off flat item units input field"
347
+ })), 1)
348
+ ]),
349
+ _: 1
350
+ }),
351
+ t(r).pricing.amount ? (o(), f(t(M), {
352
+ key: 0,
353
+ tag: "span",
354
+ variant: "body-xs",
355
+ color: "subtle"
356
+ }, {
357
+ default: p(() => [
358
+ v(y(t(n)(
359
+ {
360
+ defaultMessage: "{amount} per unit",
361
+ id: "units.price_per_unit",
362
+ description: "The price per unit label for one-off flat pricing"
363
+ },
364
+ { amount: t(O)(t(r).pricing.amount) }
365
+ )), 1)
366
+ ]),
367
+ _: 1
368
+ })) : k("", !0)
369
+ ])
370
+ ]);
371
+ };
372
+ }
373
+ }), ve = {
374
+ key: 0,
375
+ class: "grid grid-cols-1 gap-1"
376
+ }, ye = /* @__PURE__ */ $({
377
+ __name: "UnitsEditor",
378
+ props: /* @__PURE__ */ x({
379
+ modelValue: { type: Array },
380
+ initialUnitsValues: { type: Array },
381
+ pricings: { type: Array }
382
+ }, {
383
+ modelValue: { required: !0 },
384
+ modelModifiers: {}
385
+ }),
386
+ emits: ["update:modelValue"],
387
+ setup(e) {
388
+ const a = T(e, "modelValue"), i = (n) => V({
389
+ get: () => a.value[n],
390
+ set: (u) => {
391
+ const r = a.value.slice();
392
+ r[n] = u, a.value = r;
393
+ }
394
+ });
395
+ return (n, u) => e.modelValue.length > 0 ? (o(), b("div", ve, [
396
+ (o(!0), b(A, null, N(e.modelValue, (r, m) => (o(), f(t(S), { key: m }, {
397
+ default: p(() => {
398
+ var l;
399
+ return [
400
+ r.pricing_item_config_id ? (o(), f(_e, {
401
+ key: r.pricing_item_config_id,
402
+ modelValue: i(m).value,
403
+ "onUpdate:modelValue": (g) => i(m).value = g,
404
+ "default-value": (l = e.initialUnitsValues) == null ? void 0 : l[m],
405
+ pricings: e.pricings
406
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "default-value", "pricings"])) : k("", !0)
407
+ ];
408
+ }),
409
+ _: 2
410
+ }, 1024))), 128))
411
+ ])) : k("", !0);
412
+ }
413
+ }), Ve = { class: "p-1" }, he = { class: "grid grid-cols-1 gap-1 pt-1" }, ke = /* @__PURE__ */ $({
414
+ __name: "AddonSingleEditor",
415
+ props: /* @__PURE__ */ x({
416
+ constraint: { type: String },
417
+ modelValue: { type: Array },
418
+ pricings: { type: Array },
419
+ billingPeriod: { type: Object },
420
+ currency: { type: String },
421
+ groupName: { type: String }
422
+ }, {
423
+ modelValue: { required: !0 },
424
+ modelModifiers: {}
425
+ }),
426
+ emits: ["update:modelValue"],
427
+ setup(e) {
428
+ const a = e, i = T(e, "modelValue"), { $t: n } = E(), { describePricing: u } = L({
429
+ currency: w(a, "currency"),
430
+ billingPeriod: w(a, "billingPeriod")
431
+ }), r = a.pricings.map((s) => s.id), m = V(() => a.constraint === "AT_MOST_ONE" ? n({
432
+ defaultMessage: "Select up to one product",
433
+ id: "addon_single_editor.description.at_most_one",
434
+ description: "The description of the addon single editor for at most one product"
435
+ }) : a.constraint === "EXACTLY_ONE" ? n({
436
+ defaultMessage: "Select one product",
437
+ id: "addon_single_editor.description.exactly_one",
438
+ description: "The description of the addon single editor for exactly one product"
439
+ }) : a.constraint === "AT_LEAST_ONE" ? n({
440
+ defaultMessage: "Select at least one product",
441
+ id: "addon_single_editor.description.at_least_one",
442
+ description: "The description of the addon single editor for at least one product"
443
+ }) : ""), l = (s) => a.modelValue.includes(s), g = (s) => {
444
+ if (l(s))
445
+ i.value = i.value.filter((c) => c !== s);
446
+ else {
447
+ const c = i.value.filter((d) => !r.includes(d));
448
+ i.value = [...c, s];
449
+ }
450
+ };
451
+ return (s, c) => (o(), f(t(S), { "no-spacing": "" }, {
452
+ default: p(() => [
453
+ h("div", Ve, [
454
+ _(q, null, {
455
+ title: p(() => [
456
+ v(y(e.groupName), 1)
457
+ ]),
458
+ description: p(() => [
459
+ v(y(m.value), 1)
460
+ ]),
461
+ _: 1
462
+ }),
463
+ h("div", he, [
464
+ (o(!0), b(A, null, N(e.pricings, (d) => (o(), f(t(S), {
465
+ key: d.id,
466
+ "content-background": "none",
467
+ class: U({ "!bg-white": l(d.id) })
468
+ }, {
469
+ default: p(() => [
470
+ _(D, {
471
+ name: t(R)(d) ?? "",
472
+ description: t(u)(d)
473
+ }, {
474
+ default: p(() => [
475
+ _(t(Z), {
476
+ "model-value": l(d.id),
477
+ "onUpdate:modelValue": (P) => g(d.id)
478
+ }, null, 8, ["model-value", "onUpdate:modelValue"])
479
+ ]),
480
+ _: 2
481
+ }, 1032, ["name", "description"])
482
+ ]),
483
+ _: 2
484
+ }, 1032, ["class"]))), 128))
485
+ ])
486
+ ])
487
+ ]),
488
+ _: 1
489
+ }));
490
+ }
491
+ }), Pe = { class: "grid grid-cols-1 gap-1" }, F = /* @__PURE__ */ $({
492
+ __name: "AddonMultipleEditor",
493
+ props: /* @__PURE__ */ x({
494
+ modelValue: { type: Array },
495
+ pricings: { type: Array },
496
+ billingPeriod: { type: Object },
497
+ currency: { type: String },
498
+ groupName: { type: String }
499
+ }, {
500
+ modelValue: { required: !0 },
501
+ modelModifiers: {}
502
+ }),
503
+ emits: ["update:modelValue"],
504
+ setup(e) {
505
+ const a = e, i = T(e, "modelValue"), { $t: n } = E(), { describePricing: u } = L({
506
+ currency: w(a, "currency"),
507
+ billingPeriod: w(a, "billingPeriod")
508
+ }), r = (l) => i.value.includes(l), m = (l) => {
509
+ r(l) ? i.value = i.value.filter((g) => g !== l) : i.value = [...i.value, l];
510
+ };
511
+ return (l, g) => (o(), f(t(S), {
512
+ "no-spacing": "",
513
+ "no-border": !e.groupName,
514
+ "content-background": e.groupName ? "gray" : "none"
515
+ }, {
516
+ default: p(() => [
517
+ h("div", {
518
+ class: U(["grid grid-cols-1 gap-1", { "p-1": e.groupName }])
519
+ }, [
520
+ e.groupName ? (o(), f(q, { key: 0 }, {
521
+ title: p(() => [
522
+ v(y(e.groupName), 1)
523
+ ]),
524
+ description: p(() => [
525
+ v(y(t(n)({
526
+ defaultMessage: "Select any number of products",
527
+ id: "addon_multiple_editor.description",
528
+ description: "The description of the addon multiple editor"
529
+ })), 1)
530
+ ]),
531
+ _: 1
532
+ })) : k("", !0),
533
+ h("div", Pe, [
534
+ (o(!0), b(A, null, N(e.pricings, (s) => (o(), f(t(S), {
535
+ key: s.id,
536
+ "content-background": e.groupName || r(s.id) ? "none" : "gray",
537
+ class: U({ "!bg-white": r(s.id) })
538
+ }, {
539
+ default: p(() => [
540
+ _(D, {
541
+ name: t(R)(s) ?? "",
542
+ description: t(u)(s)
543
+ }, {
544
+ default: p(() => [
545
+ r(s.id) ? (o(), f(t(B), {
546
+ key: 0,
547
+ intent: "secondary",
548
+ square: "",
549
+ size: "sm",
550
+ "icon-prefix": "remove_shopping_cart",
551
+ onClick: (c) => m(s.id)
552
+ }, null, 8, ["onClick"])) : (o(), f(t(B), {
553
+ key: 1,
554
+ intent: "primary",
555
+ "icon-prefix": "add",
556
+ size: "sm",
557
+ onClick: (c) => m(s.id)
558
+ }, {
559
+ default: p(() => [
560
+ v(y(t(n)({
561
+ defaultMessage: "Add to subscription ",
562
+ id: "addon_multiple_editor.add_to_subscription_button",
563
+ description: "The button to add a pricing to the subscription"
564
+ })), 1)
565
+ ]),
566
+ _: 1
567
+ }, 8, ["onClick"]))
568
+ ]),
569
+ _: 2
570
+ }, 1032, ["name", "description"])
571
+ ]),
572
+ _: 2
573
+ }, 1032, ["content-background", "class"]))), 128))
574
+ ])
575
+ ], 2)
576
+ ]),
577
+ _: 1
578
+ }, 8, ["no-border", "content-background"]));
579
+ }
580
+ });
581
+ function Te(e) {
582
+ var i;
583
+ return (((i = e.pricing_categories) == null ? void 0 : i.flatMap((n) => n.pricings ?? [])) ?? []).filter((n) => n !== null);
584
+ }
585
+ const Ae = { class: "sv-plan-customization__body grid grid-cols-1 gap-1" }, Ie = /* @__PURE__ */ $({
586
+ __name: "PlanCustomizationEditor",
587
+ props: /* @__PURE__ */ x({
588
+ subscription: { type: Object },
589
+ enabledPricingIds: { type: Array },
590
+ initialSeatsValues: { type: Array },
591
+ initialUnitsValues: { type: Array },
592
+ billingPeriod: { type: Object },
593
+ currency: { type: String }
594
+ }, {
595
+ seatsValues: { required: !0 },
596
+ seatsValuesModifiers: {},
597
+ unitsValues: { required: !0 },
598
+ unitsValuesModifiers: {},
599
+ enabledPricingIds: {
600
+ required: !0
601
+ },
602
+ enabledPricingIdsModifiers: {}
603
+ }),
604
+ emits: ["update:seatsValues", "update:unitsValues", "update:enabledPricingIds"],
605
+ setup(e) {
606
+ const a = e, i = T(e, "seatsValues"), n = T(e, "unitsValues"), u = T(e, "enabledPricingIds"), { $t: r } = E(), m = V(() => {
607
+ var c;
608
+ const s = (c = ee({
609
+ pricingPlanScheduleInfos: a.subscription.pricing_plan_schedule_infos,
610
+ type: "DEFAULT"
611
+ })) == null ? void 0 : c.pricing_plan_version;
612
+ return s ? Te(s) : [];
613
+ }), l = V(
614
+ () => m.value.filter((s) => s.product_type === "ADDON")
615
+ ), g = V(
616
+ () => te(a.subscription)
617
+ );
618
+ return (s, c) => (o(), f(t(S), {
619
+ class: "sv-plan-customization",
620
+ title: t(r)({
621
+ defaultMessage: "Customize plan",
622
+ id: "checkout.customize_plan_block.title",
623
+ description: "The title of the customize plan block in the checkout form"
624
+ }),
625
+ "no-spacing": "",
626
+ "no-border": "",
627
+ "content-background": "none"
628
+ }, {
629
+ default: p(() => [
630
+ h("div", Ae, [
631
+ _(pe, {
632
+ modelValue: i.value,
633
+ "onUpdate:modelValue": c[0] || (c[0] = (d) => i.value = d),
634
+ class: "sv-plan-customization__seats",
635
+ "initial-seats-values": e.initialSeatsValues,
636
+ pricings: m.value
637
+ }, null, 8, ["modelValue", "initial-seats-values", "pricings"]),
638
+ _(ye, {
639
+ modelValue: n.value,
640
+ "onUpdate:modelValue": c[1] || (c[1] = (d) => n.value = d),
641
+ class: "sv-plan-customization__units",
642
+ "initial-units-values": e.initialUnitsValues,
643
+ pricings: m.value
644
+ }, null, 8, ["modelValue", "initial-units-values", "pricings"]),
645
+ (o(!0), b(A, null, N(g.value, (d) => (o(), b(A, {
646
+ key: d.id
647
+ }, [
648
+ d.product_type === "DEFAULT" && d.selection_constraint === "EXACTLY_ONE" ? (o(), f(G, {
649
+ key: 0,
650
+ modelValue: u.value,
651
+ "onUpdate:modelValue": c[2] || (c[2] = (P) => u.value = P),
652
+ class: "sv-plan-customization__group",
653
+ "group-name": d.name,
654
+ pricings: d.pricings,
655
+ "billing-period": e.billingPeriod,
656
+ currency: e.currency
657
+ }, null, 8, ["modelValue", "group-name", "pricings", "billing-period", "currency"])) : d.product_type === "ADDON" && d.selection_constraint === "AT_MOST_ONE" ? (o(), f(ke, {
658
+ key: 1,
659
+ modelValue: u.value,
660
+ "onUpdate:modelValue": c[3] || (c[3] = (P) => u.value = P),
661
+ class: "sv-plan-customization__group",
662
+ "group-name": d.name,
663
+ pricings: d.pricings,
664
+ constraint: d.selection_constraint,
665
+ "billing-period": e.billingPeriod,
666
+ currency: e.currency
667
+ }, null, 8, ["modelValue", "group-name", "pricings", "constraint", "billing-period", "currency"])) : d.product_type === "ADDON" && d.selection_constraint === "ANY" ? (o(), f(F, {
668
+ key: 2,
669
+ modelValue: u.value,
670
+ "onUpdate:modelValue": c[4] || (c[4] = (P) => u.value = P),
671
+ class: "sv-plan-customization__group",
672
+ pricings: d.pricings,
673
+ "group-name": d.name,
674
+ "billing-period": e.billingPeriod,
675
+ currency: e.currency
676
+ }, null, 8, ["modelValue", "pricings", "group-name", "billing-period", "currency"])) : k("", !0)
677
+ ], 64))), 128)),
678
+ _(F, {
679
+ modelValue: u.value,
680
+ "onUpdate:modelValue": c[5] || (c[5] = (d) => u.value = d),
681
+ class: "sv-plan-customization__group",
682
+ pricings: l.value,
683
+ "billing-period": e.billingPeriod,
684
+ currency: e.currency
685
+ }, null, 8, ["modelValue", "pricings", "billing-period", "currency"])
686
+ ])
687
+ ]),
688
+ _: 1
689
+ }, 8, ["title"]));
690
+ }
691
+ });
692
+ export {
693
+ Ie as default
694
+ };