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

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 (127) hide show
  1. package/README.md +12 -2
  2. package/dist/{Alert.vue.es-CNrEaLvh.mjs → Alert.vue.es-ZPG49yR_.mjs} +1 -1
  3. package/dist/{AuthProvider.handle-DKfNs8rr.mjs → AuthProvider.handle-SRR_04XS.mjs} +1 -1
  4. package/dist/{Avatar.vue.es-r0NbcIib.mjs → Avatar.vue.es-geDQsZwu.mjs} +1 -1
  5. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-Cp4yGqaw.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-nqKbgY7G.mjs} +4 -4
  6. package/dist/{Button.vue.es-Zw--kuaU.mjs → Button.vue.es-j7iYlqtJ.mjs} +1 -1
  7. package/dist/{ChargeOnDemandModal-B8FDkS9U.mjs → ChargeOnDemandModal-CR01PkP_.mjs} +14 -14
  8. package/dist/{Checkout.entry.ce-DsGl-5aR.mjs → Checkout.entry.ce-CopWuLJC.mjs} +1784 -1817
  9. package/dist/{CheckoutAddressFields.vue_vue_type_script_setup_true_lang-2D8VM_7W.mjs → CheckoutAddressFields.vue_vue_type_script_setup_true_lang-CEnM1uxK.mjs} +7 -7
  10. package/dist/{Chip.vue.es-D3UDSyXC.mjs → Chip.vue.es-Dxx_0dte.mjs} +2 -2
  11. package/dist/{ContextMenu.vue.es-B9mFpUQK.mjs → ContextMenu.vue.es-BJO4U47Q.mjs} +5 -5
  12. package/dist/{CustomerBillingInformation.vue.es-B8NiQaJs.mjs → CustomerBillingInformation.vue.es-CmNpqcBw.mjs} +2 -2
  13. package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-DBivC5Eb.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Jyb5ZN3s.mjs} +5 -5
  14. package/dist/{CustomerShippingAddresses-Bj8Y17O8.mjs → CustomerShippingAddresses-BRPukhRI.mjs} +8 -8
  15. package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BmPKfIjT.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DJnr5D56.mjs} +434 -425
  16. package/dist/{DividerText.vue.es-CNbgif-3.mjs → DividerText.vue.es-BusbyeAI.mjs} +1 -1
  17. package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CVP-7ne3.mjs → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-wPma8Os-.mjs} +3 -3
  18. package/dist/{ErrorNotification.vue.es-DNd65mQq.mjs → ErrorNotification.vue.es-F068p7PY.mjs} +2 -2
  19. package/dist/{FormMessage.vue.es-Cjv358Ab.mjs → FormMessage.vue.es-CwMQpIAW.mjs} +1 -1
  20. package/dist/{IconButton.vue.es-C8lYFx5_.mjs → IconButton.vue.es-D8DtBW9i.mjs} +2 -2
  21. package/dist/{IconTitle.vue.es-O2kcqgKm.mjs → IconTitle.vue.es-6VJtjJX2.mjs} +3 -3
  22. package/dist/{Input.vue.es-D8Oj8MWv.mjs → Input.vue.es-BLyHcmu4.mjs} +4 -4
  23. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-rhqYVdfV.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Dl1vTzQD.mjs} +2 -2
  24. package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-06R-M8Q3.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-DYskT3r7.mjs} +4 -4
  25. package/dist/{InvoicePreview.vue.es-4Q2hzaFS.mjs → InvoicePreview.vue.es-Cpf66_xV.mjs} +4 -4
  26. package/dist/{InvoicePricingClauseChip.vue.es-DKU0xu0t.mjs → InvoicePricingClauseChip.vue.es-CDrAE901.mjs} +3 -3
  27. package/dist/{Label.vue.es-DtpLM1KH.mjs → Label.vue.es-es7ZUBSP.mjs} +3 -3
  28. package/dist/{Modal.vue.es-C8ZcO117.mjs → Modal.vue.es-eeR9FmvQ.mjs} +6 -6
  29. package/dist/{OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-3DQLCR3U.mjs → OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-B_FpibLA.mjs} +5 -5
  30. package/dist/{PaymentCompletedCard.vue_vue_type_script_setup_true_lang-DfTb9psX.mjs → PaymentCompletedCard.vue_vue_type_script_setup_true_lang-CrjVPks0.mjs} +2 -2
  31. package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-BoGTtg5G.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-DyjzaTK1.mjs} +4 -4
  32. package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BIAm22Kq.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BHQrWy6r.mjs} +3 -3
  33. package/dist/{PaymentHistoryBlock-BvY2nXGV.mjs → PaymentHistoryBlock-CN42ewCn.mjs} +1 -1
  34. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-bQKhUonq.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-C3Y5fHvA.mjs} +4 -4
  35. package/dist/{PaymentIntegrationForm-CcfQSzKM.mjs → PaymentIntegrationForm-D3Ye7LZ5.mjs} +1 -1
  36. package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CvzcLJVq.mjs → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-D07SEP8a.mjs} +5 -5
  37. package/dist/{PaymentIntegrationFormAdyen-DqgDfO6K.mjs → PaymentIntegrationFormAdyen-Fm-diCCO.mjs} +39 -38
  38. package/dist/{PaymentIntegrationFormStripe-BYdAkvLt.mjs → PaymentIntegrationFormStripe-BANBL6za.mjs} +14 -13
  39. package/dist/{PaymentMethod.vue.es-b0p3a0L-.mjs → PaymentMethod.vue.es-t3-VyoE8.mjs} +4 -4
  40. package/dist/{PaymentMethodForm-BsTrTwCg.mjs → PaymentMethodForm-CqP3GoNj.mjs} +1 -1
  41. package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-sUOmLORl.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-CMRMbL3d.mjs} +6 -6
  42. package/dist/{PaymentMethodSelector.vue_vue_type_script_setup_true_lang-DsnAhR79.mjs → PaymentMethodSelector.vue_vue_type_script_setup_true_lang-D5wmRuCf.mjs} +6 -6
  43. package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-CSW4LfmH.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-DhkkiJaQ.mjs} +7 -7
  44. package/dist/PlanCustomizationEditor-B76UNEMm.mjs +791 -0
  45. package/dist/{PortalLinkUnverified-B_EE2wTJ.mjs → PortalLinkUnverified-Cp60_kRJ.mjs} +3 -3
  46. package/dist/{PortalNotAvailable-DPE9y37H.mjs → PortalNotAvailable-DzSQnfzw.mjs} +2 -2
  47. package/dist/{PricingGroupRangeInput.vue.es-tIMXIhpZ.mjs → PricingGroupRangeInput.vue.es-Srq_3cga.mjs} +156 -206
  48. package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-oRijnVnZ.mjs +177 -0
  49. package/dist/{RadioGroupExtended.vue.es-3nDXqIGi.mjs → RadioGroupExtended.vue.es-BbBMDf6l.mjs} +5 -5
  50. package/dist/{Section.vue.es-CvX9tg2f.mjs → Section.vue.es-Oqn1wGPZ.mjs} +1 -1
  51. package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Cl7I1Apo.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-OM19NPBh.mjs} +2 -2
  52. package/dist/{ShippingAddressesModal-C4p1IXXk.mjs → ShippingAddressesModal-c7nqf4Ny.mjs} +10 -10
  53. package/dist/StepInput.vue.es-ieh4EuJ7.mjs +213 -0
  54. package/dist/{SubscriptionDetails.entry.ce-D5SwM0YS.mjs → SubscriptionDetails.entry.ce-uYv45FGH.mjs} +91 -92
  55. package/dist/{SubscriptionSchedules-BZqlpAtk.mjs → SubscriptionSchedules-DMxX3GpK.mjs} +1 -1
  56. package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-BH7DdOWK.mjs → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DXro_64f.mjs} +1736 -1721
  57. package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-DoJxiqVB.mjs → SubscriptionSummary.vue_vue_type_script_setup_true_lang-BZNsqN4G.mjs} +4 -4
  58. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-BbjdBHSQ.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-CHlXP_2x.mjs} +9 -9
  59. package/dist/{TooltipParagraph.vue.es-Dw0ndjle.mjs → TooltipParagraph.vue.es-BES3zsYN.mjs} +1 -1
  60. package/dist/{TranslationOverride.vue_vue_type_script_setup_true_lang-BhjZVMSx.mjs → TranslationOverride.vue_vue_type_script_setup_true_lang-BJmlNrXT.mjs} +1 -1
  61. package/dist/{TrialChip.vue.es-DOopmaXA.mjs → TrialChip.vue.es-C51z1ZiA.mjs} +2 -2
  62. package/dist/addonQuantity-CCVaA3e-.mjs +758 -0
  63. package/dist/components/BillingInformation/BillingInformation.mjs +4 -4
  64. package/dist/components/BillingInformationForm/BillingInformationForm.mjs +8 -8
  65. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +4 -4
  66. package/dist/components/Invoice/Invoice.mjs +14 -14
  67. package/dist/components/InvoiceDetails/InvoiceDetails.mjs +4 -4
  68. package/dist/components/InvoiceHeader/InvoiceHeader.mjs +2 -2
  69. package/dist/components/InvoicesList/InvoicesList.mjs +3 -3
  70. package/dist/components/PaymentHistory/PaymentHistory.mjs +4 -4
  71. package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +5 -5
  72. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +4 -4
  73. package/dist/components/SubscriptionsList/SubscriptionsList.mjs +5 -5
  74. package/dist/components/WalletBalances/WalletBalances.mjs +3 -3
  75. package/dist/core/index.mjs +1 -1
  76. package/dist/{customElements-BTj4ii4f.mjs → customElements-DK4GKNJG.mjs} +10 -10
  77. package/dist/{customer-BIjC0CWJ.mjs → customer-lf6S5DBR.mjs} +1 -1
  78. package/dist/{de-DE-DBbERiFr.mjs → de-DE-Cyj_NtiI.mjs} +4 -0
  79. package/dist/{fr-FR-IWJE-urI.mjs → fr-FR-CRFoWQ7J.mjs} +4 -0
  80. package/dist/{index.es-C7J3WGGo.mjs → index.es-BrVTOW5D.mjs} +4 -4
  81. package/dist/index.mjs +2 -2
  82. package/dist/{invoices-e1sKLgxg.mjs → invoices-DdREPDXV.mjs} +1 -1
  83. package/dist/{it-IT-B7ui2oxO.mjs → it-IT-DObZEc-U.mjs} +4 -0
  84. package/dist/{nl-NL-Bafh2xoT.mjs → nl-NL-C02xHilF.mjs} +4 -0
  85. package/dist/paymentFailure-QZdZHBhf.mjs +47 -0
  86. package/dist/{paymentMethods-B_82JGk_.mjs → paymentMethods-8w-ccfY_.mjs} +1 -1
  87. package/dist/{paymentMethods-Nfv9HdkS.mjs → paymentMethods-Goa25rTs.mjs} +2 -2
  88. package/dist/paymentOutcome-B6sW1eCV.mjs +22 -0
  89. package/dist/{payments-BnxbzQUC.mjs → payments-CKpU1K3t.mjs} +1 -1
  90. package/dist/{pricing-BOhvWWMj.mjs → pricing-CEaZGgKe.mjs} +1 -1
  91. package/dist/pricingItem.es-bCPArbTa.mjs +55 -0
  92. package/dist/{pricingPlanScheduleOverrides-Dxv5FOBd.mjs → pricingPlanScheduleOverrides-BBp-DmpV.mjs} +2 -2
  93. package/dist/{pricingPlanSchedules-Dv7ZCgNp.mjs → pricingPlanSchedules-DSMptcAh.mjs} +1 -1
  94. package/dist/screens/Checkout/Checkout.mjs +2 -2
  95. package/dist/screens/CustomerOverview/CustomerOverview.mjs +13 -13
  96. package/dist/screens/PayInvoice/PayInvoice.mjs +33 -32
  97. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +10 -10
  98. package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +2 -2
  99. package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +172 -163
  100. package/dist/{sorting.es-CVyKw23D.mjs → sorting.es-C0pdMgX0.mjs} +1 -1
  101. package/dist/subscription-BwzkagDI.mjs +212 -0
  102. package/dist/{subscriptions-BWXZGK0E.mjs → subscriptions-B5bH8hsI.mjs} +1 -1
  103. package/dist/{taxId.es-DkD3Ltr8.mjs → taxId.es-e6NEvprh.mjs} +2 -2
  104. package/dist/types/public/core/configuration.d.ts +0 -1
  105. package/dist/types/public/core/types.d.ts +10 -5
  106. package/dist/{useActionDispatchProvider-3W2vEyIg.mjs → useActionDispatchProvider-ChAHdwR8.mjs} +1 -1
  107. package/dist/{useCustomer-cObBvDOu.mjs → useCustomer-CTMhg1nd.mjs} +2 -2
  108. package/dist/{useCustomerFormLabels-DJWf2O17.mjs → useCustomerFormLabels-D4oDnfxA.mjs} +9 -9
  109. package/dist/{useIncrementalLoading-CATuO36d.mjs → useIncrementalLoading-CBVutPH8.mjs} +1 -1
  110. package/dist/{useInvoiceData-DD44HTl7.mjs → useInvoiceData-qUGbBAQK.mjs} +2 -2
  111. package/dist/{useInvoicesList-CpB-41MQ.mjs → useInvoicesList-wJvZAJpW.mjs} +9 -9
  112. package/dist/{useLoadInitialData-qzdnBoui.mjs → useLoadInitialData-UvfYXgbi.mjs} +1 -1
  113. package/dist/{usePaymentFormHold-ByUZi3A-.mjs → usePaymentFormHold-Cwdr-vyc.mjs} +2 -2
  114. package/dist/{usePaymentMethodAvailability-DUdrs0Ji.mjs → usePaymentMethodAvailability-35l4pWdH.mjs} +4 -4
  115. package/dist/{usePaymentMethods-ByaKF7mf.mjs → usePaymentMethods-De7hlLHo.mjs} +2 -2
  116. package/dist/{usePayments-BXABv-lF.mjs → usePayments-hWS7fnOx.mjs} +9 -9
  117. package/dist/{usePortal-CwR_FxTb.mjs → usePortal-DUfD6hrA.mjs} +1 -1
  118. package/dist/{useService-BZcbUZHI.mjs → useService-BwzIBIRp.mjs} +1 -1
  119. package/dist/{useTimePeriod.es-BpdiVwg8.mjs → useTimePeriod.es-BUorDLVK.mjs} +1 -1
  120. package/package.json +4 -4
  121. package/dist/PlanCustomizationEditor-D29N4HUM.mjs +0 -711
  122. package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DqxWxSQe.mjs +0 -141
  123. package/dist/StepInput.vue.es-DweyzpkL.mjs +0 -200
  124. package/dist/index.es-CpmQmvOg.mjs +0 -633
  125. package/dist/paymentOutcome-BXEU5-84.mjs +0 -67
  126. package/dist/pricingPlanSchedule-BPrS2WRd.mjs +0 -132
  127. package/dist/subscription-BhxoqwcT.mjs +0 -83
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as d, computed as f, openBlock as a, createElementBlock as o, Fragment as c, renderList as x, createCommentVNode as g, normalizeClass as m, toDisplayString as y, ref as v, onMounted as _ } from "vue";
2
2
  import { e as b } from "./sanitization.es-C6dbuxUJ.mjs";
3
- import { i as k } from "./useService-BZcbUZHI.mjs";
3
+ import { i as k } from "./useService-BwzIBIRp.mjs";
4
4
  const C = (n) => n.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), E = ["innerHTML"], I = /* @__PURE__ */ d({
5
5
  __name: "TextWithHighlights",
6
6
  props: {
@@ -0,0 +1,212 @@
1
+ function h({
2
+ pricingPlanScheduleInfos: e,
3
+ type: t
4
+ }) {
5
+ return (e ?? []).find(
6
+ (n) => {
7
+ var a;
8
+ return (((a = n.pricing_plan_schedule) == null ? void 0 : a.type) ?? n.type) === t;
9
+ }
10
+ );
11
+ }
12
+ function F(e) {
13
+ var t;
14
+ return (t = P(
15
+ e.flatMap(
16
+ ({ pricing_plan_schedule_infos: n }) => n ?? []
17
+ )
18
+ )) == null ? void 0 : t.id;
19
+ }
20
+ const E = (e) => {
21
+ var t;
22
+ return Date.parse(e.start_at ?? ((t = e.pricing_plan_schedule) == null ? void 0 : t.start_at));
23
+ };
24
+ function P(e) {
25
+ const t = Date.now();
26
+ return e.filter((n) => {
27
+ const a = n.pricing_plan_schedule, i = (a == null ? void 0 : a.type) ?? n.type, r = E(n), c = n.end_at ?? (a == null ? void 0 : a.end_at), l = c ? Date.parse(c) : void 0, D = Number.isFinite(r) && r <= t, y = l === void 0 || !Number.isFinite(l) || l > t;
28
+ return i === "DEFAULT" && D && y;
29
+ }).sort((n, a) => E(a) - E(n)).at(0);
30
+ }
31
+ function L({
32
+ pricingPlanScheduleInfo: e,
33
+ pricingId: t
34
+ }) {
35
+ var n;
36
+ return (((n = e.pricing_plan_version) == null ? void 0 : n.pricing_categories) ?? []).flatMap((a) => a.pricing_groups ?? []).find((a) => (a.pricings ?? []).some((i) => i.id === t));
37
+ }
38
+ function N({
39
+ pricingPlanScheduleInfo: e
40
+ }) {
41
+ const t = /* @__PURE__ */ new Map();
42
+ return (e.pricing_plan_version.pricing_categories ?? []).forEach((a) => {
43
+ var i;
44
+ (i = a.pricings) == null || i.forEach((r) => {
45
+ var c;
46
+ (c = r.items) == null || c.forEach((l) => {
47
+ var D, y, m;
48
+ (D = l.billing_period_configs) == null || D.forEach((d) => {
49
+ var f;
50
+ (f = d.configs) == null || f.forEach((_) => {
51
+ var s, o, g, p;
52
+ if (_.id) {
53
+ const u = (p = (g = (o = (s = _.details) == null ? void 0 : s.bands) == null ? void 0 : o.find(
54
+ (A) => {
55
+ var v;
56
+ return (v = A.amount) == null ? void 0 : v.currency;
57
+ }
58
+ )) == null ? void 0 : g.amount) == null ? void 0 : p.currency;
59
+ t.set(_.id, {
60
+ ...u && { currency: u },
61
+ billingPeriod: d.billing_period
62
+ });
63
+ }
64
+ });
65
+ }), (y = l.configs) == null || y.forEach((d) => {
66
+ var f, _, s, o;
67
+ if (d.id) {
68
+ const g = (o = (s = (_ = (f = d.details) == null ? void 0 : f.bands) == null ? void 0 : _.find(
69
+ (p) => {
70
+ var u;
71
+ return (u = p.amount) == null ? void 0 : u.currency;
72
+ }
73
+ )) == null ? void 0 : s.amount) == null ? void 0 : o.currency;
74
+ t.set(d.id, {
75
+ ...g && { currency: g }
76
+ });
77
+ }
78
+ }), (m = l.pricing_currency_configs) == null || m.forEach((d) => {
79
+ var _, s;
80
+ const f = d.currency;
81
+ (_ = d.billing_period_configs) == null || _.forEach((o) => {
82
+ var g;
83
+ (g = o.configs) == null || g.forEach((p) => {
84
+ p.id && t.set(p.id, {
85
+ currency: f,
86
+ billingPeriod: o.billing_period
87
+ });
88
+ });
89
+ }), (s = d.configs) == null || s.forEach((o) => {
90
+ o.id && t.set(o.id, { currency: f });
91
+ });
92
+ });
93
+ });
94
+ });
95
+ }), t;
96
+ }
97
+ const S = ({ pricing_item_config_id: e, number: t }) => ({
98
+ pricing_item_config_id: e,
99
+ number: t
100
+ });
101
+ function B({
102
+ enabledPricings: e,
103
+ seatsValues: t,
104
+ unitsValues: n,
105
+ pricingPlanScheduleInfos: a,
106
+ pricingCurrency: i,
107
+ billingPeriod: r
108
+ }) {
109
+ const c = h({
110
+ pricingPlanScheduleInfos: a,
111
+ type: "DEFAULT"
112
+ });
113
+ if (!(!c || !e && !t && !n))
114
+ return [
115
+ {
116
+ pricing_plan_schedule_id: c.id,
117
+ enabled_pricings: e,
118
+ seats_values: t == null ? void 0 : t.map(S),
119
+ ...n && { units: n.map(S) },
120
+ ...i && { pricing_currency: i },
121
+ ...r && { billing_period: r }
122
+ }
123
+ ];
124
+ }
125
+ function w(e) {
126
+ var t;
127
+ return (t = e == null ? void 0 : e.pricing_plan_schedule_infos) == null ? void 0 : t.at(-1);
128
+ }
129
+ function T(e) {
130
+ var t, n;
131
+ return (n = (t = w(e)) == null ? void 0 : t.pricing_plan_version) == null ? void 0 : n.pricing_plan;
132
+ }
133
+ function G({
134
+ subscription: e,
135
+ fallback: t
136
+ }) {
137
+ var n;
138
+ return (e == null ? void 0 : e.name) || ((n = T(e)) == null ? void 0 : n.name) || t;
139
+ }
140
+ function I(e) {
141
+ return (e == null ? void 0 : e.status) === "ACTIVE" && e.type === "BILLING";
142
+ }
143
+ function M(e, t) {
144
+ return ((e == null ? void 0 : e.inactive_periods) ?? []).filter((n) => !n.end_at && (!t || n.type === t)).reduce((n, a) => !n || new Date(a.start_at) <= new Date(n.start_at) ? a : n, void 0);
145
+ }
146
+ function R(e, t = /* @__PURE__ */ new Date()) {
147
+ if (!I(e)) return;
148
+ const n = M(e);
149
+ if (!((n == null ? void 0 : n.type) !== "CANCEL" || new Date(n.start_at) <= t))
150
+ return n;
151
+ }
152
+ function U(e, t) {
153
+ const n = [];
154
+ function a(i) {
155
+ Array.isArray(i) ? i.forEach(a) : i && typeof i == "object" && (i.object_type === "PRICING" && t.includes(i.id) && !n.some(({ id: r }) => r === i.id) && n.push(i), Object.values(i).forEach(a));
156
+ }
157
+ return a(e), n;
158
+ }
159
+ function C(e) {
160
+ return e.pricing_plan_schedule_infos.flatMap(
161
+ (t) => {
162
+ var n;
163
+ return ((n = t.pricing_plan_version.pricing_categories) == null ? void 0 : n.flatMap(
164
+ (a) => a.pricing_groups ?? []
165
+ )) ?? [];
166
+ }
167
+ );
168
+ }
169
+ function O(e) {
170
+ var r;
171
+ const t = {
172
+ trialStartDate: void 0,
173
+ trialEndDate: void 0,
174
+ subscriptionStartDate: void 0,
175
+ subscriptionEndDate: void 0
176
+ };
177
+ if (!((r = e == null ? void 0 : e.pricing_plan_schedule_infos) != null && r.length))
178
+ return t;
179
+ const n = /* @__PURE__ */ new Date(), a = h({
180
+ type: "TRIAL",
181
+ pricingPlanScheduleInfos: e.pricing_plan_schedule_infos
182
+ });
183
+ if (a != null && a.start_at && (t.trialStartDate = n, a.end_at)) {
184
+ const c = new Date(a.end_at).getTime() - new Date(a.start_at).getTime();
185
+ t.trialEndDate = new Date(n.getTime() + c);
186
+ }
187
+ const i = h({
188
+ type: "DEFAULT",
189
+ pricingPlanScheduleInfos: e.pricing_plan_schedule_infos
190
+ });
191
+ if (i != null && i.start_at && (t.trialEndDate ? t.subscriptionStartDate = t.trialEndDate : t.subscriptionStartDate = n, i.end_at)) {
192
+ const c = new Date(i.end_at).getTime() - new Date(i.start_at).getTime();
193
+ t.subscriptionEndDate = new Date(t.subscriptionStartDate.getTime() + c);
194
+ }
195
+ return t;
196
+ }
197
+ export {
198
+ G as a,
199
+ F as b,
200
+ B as c,
201
+ P as d,
202
+ L as e,
203
+ U as f,
204
+ T as g,
205
+ C as h,
206
+ h as i,
207
+ I as j,
208
+ M as k,
209
+ R as l,
210
+ N as m,
211
+ O as n
212
+ };
@@ -1,5 +1,5 @@
1
1
  import { w as o, a as c } from "./api.es-qgvzNMU-.mjs";
2
- import { u as N, c as S, b as s, E as u } from "./customElements-BTj4ii4f.mjs";
2
+ import { u as N, c as S, b as s, E as u } from "./customElements-DK4GKNJG.mjs";
3
3
  const e = ["portal", "pricing-plan-subscriptions"], m = {
4
4
  CANCEL: "NEXT_BILLING_PERIOD",
5
5
  RENEW: "UNDO"
@@ -1,7 +1,7 @@
1
- import { i as $, d as E } from "./useService-BZcbUZHI.mjs";
1
+ import { i as $, d as E } from "./useService-BwzIBIRp.mjs";
2
2
  import { c as T } from "./formControl-BZQLHnOO.mjs";
3
3
  import { inject as L } from "vue";
4
- import { I as R } from "./customElements-BTj4ii4f.mjs";
4
+ import { I as R } from "./customElements-DK4GKNJG.mjs";
5
5
  const g = (e) => $(e) && typeof e != "boolean" ? null : e, n = (e) => typeof e == "object" && e !== null, S = ({
6
6
  from: e,
7
7
  to: a,
@@ -1,3 +1,2 @@
1
1
  import { CoreConfiguration, SolvimonMountConfig } from './types';
2
- export declare function createSolvimonCore(): CoreConfiguration<SolvimonMountConfig>;
3
2
  export declare function createSolvimonCore<TConfig extends SolvimonMountConfig>(config: TConfig): CoreConfiguration<TConfig>;
@@ -26,7 +26,8 @@ import { SolvimonPaymentMethodsManagementEntryProps } from '../screens/PaymentMe
26
26
  * Extends the base entry props (environment, locale, branding, etc.).
27
27
  */
28
28
  export interface SharedSolvimonMountConfig {
29
- environment?: Environment;
29
+ /** The Solvimon environment the portal object belongs to. An element without one renders nothing. */
30
+ environment: Environment;
30
31
  locale?: string;
31
32
  dateLocale?: string;
32
33
  messages?: IntlMessages;
@@ -38,10 +39,14 @@ export interface SharedSolvimonMountConfig {
38
39
  }
39
40
  export type SolvimonMountConfig = SharedSolvimonMountConfig;
40
41
  /**
41
- * Return type of the Solvimon core mount methods.
42
+ * What `createScreen` and `createComponent` return: the mounted element, to act on later. An object
43
+ * rather than a function, so it can gain members without breaking a host.
42
44
  */
43
45
  export interface SolvimonMountInstance {
44
- /** Unmounts the Solvimon app from the container. */
46
+ /**
47
+ * Removes the element from the container. Called before the element has loaded, it cancels
48
+ * the mount instead. It does not use `this`, so it can be destructured.
49
+ */
45
50
  unmount: () => void;
46
51
  }
47
52
  interface RegisteredComponentEntryPropsById {
@@ -119,7 +124,7 @@ export type ScreenMountConfiguration<TId extends RegisteredScreenId> = {
119
124
  } & ConfigurationProp<ScreenConfigurationById[TId]>;
120
125
  export interface CoreConfiguration<TConfig extends SolvimonMountConfig = SolvimonMountConfig> {
121
126
  config: TConfig;
122
- createComponent: <TId extends RegisteredComponentId>(id: TId, configuration: ComponentMountConfiguration<TId>) => SolvimonMountInstance['unmount'];
123
- createScreen: <TId extends RegisteredScreenId>(id: TId, configuration: ScreenMountConfiguration<TId>) => SolvimonMountInstance['unmount'];
127
+ createComponent: <TId extends RegisteredComponentId>(id: TId, configuration: ComponentMountConfiguration<TId>) => SolvimonMountInstance;
128
+ createScreen: <TId extends RegisteredScreenId>(id: TId, configuration: ScreenMountConfiguration<TId>) => SolvimonMountInstance;
124
129
  }
125
130
  export {};
@@ -1,4 +1,4 @@
1
- import { i, A as t } from "./customElements-BTj4ii4f.mjs";
1
+ import { i, A as t } from "./customElements-DK4GKNJG.mjs";
2
2
  function r() {
3
3
  return {
4
4
  dispatchAction: i(t, "dispatchAction")
@@ -1,6 +1,6 @@
1
1
  import { ref as i } from "vue";
2
- import { c as m } from "./customer-BIjC0CWJ.mjs";
3
- import { u as s } from "./useService-BZcbUZHI.mjs";
2
+ import { c as m } from "./customer-lf6S5DBR.mjs";
3
+ import { u as s } from "./useService-BwzIBIRp.mjs";
4
4
  function C({ customerId: r }) {
5
5
  const { getCustomer: u, updateCustomer: o } = m(), e = i(), { data: p, ...c } = s({
6
6
  service: async () => {
@@ -1,17 +1,17 @@
1
1
  import { defineComponent as _, openBlock as n, createElementBlock as x, createVNode as N, unref as w, withCtx as S, renderSlot as U, toDisplayString as F, createCommentVNode as m, createElementVNode as I, computed as d, withKeys as ml, withModifiers as Ue, normalizeClass as R, Fragment as le, mergeProps as E, createBlock as p, resolveDynamicComponent as P, normalizeProps as B, createTextVNode as j, renderList as Ge, inject as vl, getCurrentInstance as hl, ref as q, watch as xe, useModel as He, useSlots as pl, createSlots as we, guardReactiveProps as Be, Teleport as bl, normalizeStyle as Ee, mergeModels as ke, isRef as Re, useId as yl } from "vue";
2
- import { u as ie, b as gl, a as xl } from "./index.es-C7J3WGGo.mjs";
2
+ import { u as ie, c as gl, d as xl } from "./index.es-BrVTOW5D.mjs";
3
3
  import { c as Ke } from "./countryData.es-BegoD-cZ.mjs";
4
- import { d as re, S as Cl, a as kl } from "./customElements-BTj4ii4f.mjs";
4
+ import { d as re, S as Cl, a as kl } from "./customElements-DK4GKNJG.mjs";
5
5
  import { e as Se } from "./sanitization.es-C6dbuxUJ.mjs";
6
- import { _ as J, s as Ne, u as Sl } from "./sorting.es-CVyKw23D.mjs";
6
+ import { _ as J, s as Ne, u as Sl } from "./sorting.es-C0pdMgX0.mjs";
7
7
  import { u as wl } from "./useLazyFloating.es-CycqRyeb.mjs";
8
- import { _ as Te } from "./IconButton.vue.es-C8lYFx5_.mjs";
9
- import { a as De, _ as Ce } from "./Button.vue.es-Zw--kuaU.mjs";
10
- import { _ as Il } from "./Chip.vue.es-D3UDSyXC.mjs";
11
- import { i as ze, a as Ll } from "./useService-BZcbUZHI.mjs";
8
+ import { _ as Te } from "./IconButton.vue.es-D8DtBW9i.mjs";
9
+ import { a as De, _ as Ce } from "./Button.vue.es-j7iYlqtJ.mjs";
10
+ import { _ as Il } from "./Chip.vue.es-Dxx_0dte.mjs";
11
+ import { i as ze, a as Ll } from "./useService-BwzIBIRp.mjs";
12
12
  import { c as Al } from "./cn.es-B8acFrov.mjs";
13
- import { _ as Ze } from "./Input.vue.es-D8Oj8MWv.mjs";
14
- import { _ as Ml } from "./FormMessage.vue.es-Cjv358Ab.mjs";
13
+ import { _ as Ze } from "./Input.vue.es-BLyHcmu4.mjs";
14
+ import { _ as Ml } from "./FormMessage.vue.es-CwMQpIAW.mjs";
15
15
  function Vl(e, r, i = []) {
16
16
  return [...e].sort((s, a) => {
17
17
  for (let f = 0; f < r.length; f++) {
@@ -1,7 +1,7 @@
1
1
  import { A as e } from "./ApiStatus-CSFKl_ra.mjs";
2
2
  import { g as q } from "./api.es-qgvzNMU-.mjs";
3
3
  import { shallowRef as A, ref as f, computed as h } from "vue";
4
- import { t as w } from "./customElements-BTj4ii4f.mjs";
4
+ import { t as w } from "./customElements-DK4GKNJG.mjs";
5
5
  function y(u) {
6
6
  return "data" in u && "links" in u;
7
7
  }
@@ -1,6 +1,6 @@
1
1
  import { ref as n, onMounted as m } from "vue";
2
- import { c as f } from "./invoices-e1sKLgxg.mjs";
3
- import { c as l } from "./payments-BnxbzQUC.mjs";
2
+ import { c as f } from "./invoices-DdREPDXV.mjs";
3
+ import { c as l } from "./payments-CKpU1K3t.mjs";
4
4
  function y(e, { includePayments: o = !1 } = {}) {
5
5
  const { getInvoice: c } = f(), { getPayments: s } = l(), t = n(), a = n(!0);
6
6
  return m(async () => {
@@ -1,17 +1,17 @@
1
1
  import { inject as L, defineComponent as I, provide as x, computed as s, openBlock as i, createElementBlock as m, renderSlot as C, ref as O, onMounted as oe, onBeforeUnmount as H, normalizeClass as A, unref as e, Fragment as Z, createElementVNode as P, toDisplayString as p, createCommentVNode as T, createBlock as y, resolveDynamicComponent as ne, normalizeStyle as le, withCtx as a, createVNode as f, createTextVNode as g, useSlots as ie, shallowRef as ae, watchPostEffect as se, nextTick as re, renderList as ce, createSlots as ue, withModifiers as de } from "vue";
2
- import { _ as ve } from "./Section.vue.es-CvX9tg2f.mjs";
3
- import { a as Q, d as U } from "./customElements-BTj4ii4f.mjs";
2
+ import { _ as ve } from "./Section.vue.es-Oqn1wGPZ.mjs";
3
+ import { a as Q, d as U } from "./customElements-DK4GKNJG.mjs";
4
4
  import { _ as fe } from "./Amount.vue.es-DPqHB8Xd.mjs";
5
- import { a as R, _ as F } from "./Button.vue.es-Zw--kuaU.mjs";
6
- import { _ as V } from "./Chip.vue.es-D3UDSyXC.mjs";
7
- import { _ as me } from "./ErrorNotification.vue.es-DNd65mQq.mjs";
8
- import { _ as _e, T as be, a as he } from "./TooltipParagraph.vue.es-Dw0ndjle.mjs";
5
+ import { a as R, _ as F } from "./Button.vue.es-j7iYlqtJ.mjs";
6
+ import { _ as V } from "./Chip.vue.es-Dxx_0dte.mjs";
7
+ import { _ as me } from "./ErrorNotification.vue.es-F068p7PY.mjs";
8
+ import { _ as _e, T as be, a as he } from "./TooltipParagraph.vue.es-BES3zsYN.mjs";
9
9
  import { _ as pe } from "./useLazyFloating.es-CycqRyeb.mjs";
10
10
  import { g as j, i as ge, a as ye, b as we } from "./invoiceState-BJVHaKs7.mjs";
11
- import { u as ke } from "./useActionDispatchProvider-3W2vEyIg.mjs";
11
+ import { u as ke } from "./useActionDispatchProvider-ChAHdwR8.mjs";
12
12
  import { r as Ce } from "./configuration-BytDBAWs.mjs";
13
- import { u as $e } from "./useIncrementalLoading-CATuO36d.mjs";
14
- import { c as Le } from "./invoices-e1sKLgxg.mjs";
13
+ import { u as $e } from "./useIncrementalLoading-CBVutPH8.mjs";
14
+ import { c as Le } from "./invoices-DdREPDXV.mjs";
15
15
  const Ie = Symbol.for("solvimon-ui:navigation"), xe = {
16
16
  resolve: (t) => typeof t == "string" ? t : void 0
17
17
  };
@@ -1,5 +1,5 @@
1
1
  import { ref as r, onMounted as i } from "vue";
2
- import { e as n } from "./customElements-BTj4ii4f.mjs";
2
+ import { e as n } from "./customElements-DK4GKNJG.mjs";
3
3
  function u(...e) {
4
4
  const a = r(!0), o = n();
5
5
  return i(async () => {
@@ -1,7 +1,7 @@
1
1
  import { t as T } from "./amount-CondixVt.mjs";
2
- import { f as R } from "./paymentMethods-Nfv9HdkS.mjs";
2
+ import { f as R } from "./paymentMethods-Goa25rTs.mjs";
3
3
  import { inject as d, ref as m, watch as I, computed as S } from "vue";
4
- import { n as A } from "./customElements-BTj4ii4f.mjs";
4
+ import { n as A } from "./customElements-DK4GKNJG.mjs";
5
5
  const N = /* @__PURE__ */ new Set(["https:", "http:"]);
6
6
  function a(e, t = window.location.search) {
7
7
  return new URLSearchParams(t).get(e);
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as y, computed as r, openBlock as v, createBlock as A, withCtx as _, createElementVNode as N, createVNode as b, unref as g, createTextVNode as w, toDisplayString as E, renderSlot as I, toValue as u, watch as x } from "vue";
2
- import { a as M, d as L, e as B } from "./customElements-BTj4ii4f.mjs";
3
- import { _ as T } from "./PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BIAm22Kq.mjs";
4
- import { h as O } from "./PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CvzcLJVq.mjs";
5
- import { a as V } from "./usePaymentFormHold-ByUZi3A-.mjs";
2
+ import { a as M, d as L, e as B } from "./customElements-DK4GKNJG.mjs";
3
+ import { _ as T } from "./PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BHQrWy6r.mjs";
4
+ import { h as O } from "./PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-D07SEP8a.mjs";
5
+ import { a as V } from "./usePaymentFormHold-Cwdr-vyc.mjs";
6
6
  const S = { class: "flex flex-col items-center gap-4" }, H = /* @__PURE__ */ y({
7
7
  __name: "PaymentMethodsUnavailableCard",
8
8
  props: {
@@ -1,5 +1,5 @@
1
- import { u as s } from "./useIncrementalLoading-CATuO36d.mjs";
2
- import { c as a } from "./paymentMethods-B_82JGk_.mjs";
1
+ import { u as s } from "./useIncrementalLoading-CBVutPH8.mjs";
2
+ import { c as a } from "./paymentMethods-8w-ccfY_.mjs";
3
3
  const m = {
4
4
  orderBy: "default",
5
5
  orderDirection: "desc"
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as b, createPropsRestProxy as C, ref as _, computed as o, openBlock as c, createElementBlock as A, createVNode as g, unref as l, mergeProps as O, createSlots as S, withCtx as s, renderSlot as h, createBlock as p, createTextVNode as v, toDisplayString as D, createCommentVNode as I, createElementVNode as L } from "vue";
2
- import { a as N, d as R } from "./customElements-BTj4ii4f.mjs";
3
- import { _ as B } from "./IconTitle.vue.es-O2kcqgKm.mjs";
4
- import { _ as P } from "./Chip.vue.es-D3UDSyXC.mjs";
2
+ import { a as N, d as R } from "./customElements-DK4GKNJG.mjs";
3
+ import { _ as B } from "./IconTitle.vue.es-6VJtjJX2.mjs";
4
+ import { _ as P } from "./Chip.vue.es-Dxx_0dte.mjs";
5
5
  import { a as x } from "./formatting.es-RclXHhKo.mjs";
6
- import { c as V, d as z } from "./index.es-C7J3WGGo.mjs";
7
- import { _ as $ } from "./Button.vue.es-Zw--kuaU.mjs";
8
- import { _ as k } from "./FormMessage.vue.es-Cjv358Ab.mjs";
9
- import { c as U } from "./invoices-e1sKLgxg.mjs";
10
- import { u as T } from "./useService-BZcbUZHI.mjs";
11
- import { c as M } from "./payments-BnxbzQUC.mjs";
6
+ import { a as V, b as z } from "./index.es-BrVTOW5D.mjs";
7
+ import { _ as $ } from "./Button.vue.es-j7iYlqtJ.mjs";
8
+ import { _ as k } from "./FormMessage.vue.es-CwMQpIAW.mjs";
9
+ import { c as U } from "./invoices-DdREPDXV.mjs";
10
+ import { u as T } from "./useService-BwzIBIRp.mjs";
11
+ import { c as M } from "./payments-CKpU1K3t.mjs";
12
12
  const G = {
13
13
  neutral: { indicatorClass: "border-gray-500 bg-gray-500", chipIntent: "neutral" },
14
14
  info: { indicatorClass: "border-blue-600 bg-blue-600", chipIntent: "info" },
@@ -1,4 +1,4 @@
1
- import { i as r, P as o } from "./customElements-BTj4ii4f.mjs";
1
+ import { i as r, P as o } from "./customElements-DK4GKNJG.mjs";
2
2
  function a() {
3
3
  return r(o, "PortalProvider");
4
4
  }
@@ -1,6 +1,6 @@
1
1
  import { A as n } from "./ApiStatus-CSFKl_ra.mjs";
2
2
  import { shallowRef as g, ref as p, computed as A } from "vue";
3
- import { t as h } from "./customElements-BTj4ii4f.mjs";
3
+ import { t as h } from "./customElements-DK4GKNJG.mjs";
4
4
  function C(e) {
5
5
  return e == null ? !0 : typeof e == "string" || Array.isArray(e) ? e.length === 0 : e instanceof Map || e instanceof Set ? e.size === 0 : typeof e == "object" ? Object.keys(e).length === 0 : !0;
6
6
  }
@@ -1,5 +1,5 @@
1
1
  import { computed as o } from "vue";
2
- import { a as d } from "./customElements-BTj4ii4f.mjs";
2
+ import { a as d } from "./customElements-DK4GKNJG.mjs";
3
3
  function p() {
4
4
  const { $t: e } = d(), l = o(() => ({
5
5
  DAY: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solvimon/solvimon-web",
3
- "version": "0.1.0-alpha.29",
3
+ "version": "0.1.0-alpha.30",
4
4
  "description": "Solvimon's Front-end SDK provides you with the building blocks to create a billing self serve experience",
5
5
  "private": false,
6
6
  "engines": {
@@ -53,7 +53,7 @@
53
53
  "version:prerelease": "npm version prerelease --no-git-tag-version",
54
54
  "changelog:check": "node scripts/check-changelog.mjs",
55
55
  "publish:guard": "node scripts/publish-guard.mjs",
56
- "prepublishOnly": "npm run publish:guard && npm run changelog:check && npm run build && npm run bundle:check-contents && npm run types:check-published && npm run types:check-consumer",
56
+ "prepublishOnly": "npm run publish:guard && npm run changelog:check && npm run test:unit -- --run && npm run build && npm run bundle:check-contents && npm run types:check-published && npm run types:check-consumer",
57
57
  "prepare": "husky"
58
58
  },
59
59
  "lint-staged": {
@@ -153,7 +153,7 @@
153
153
  },
154
154
  "sideEffects": false,
155
155
  "peerDependencies": {
156
- "vue": ">=3.5.0"
156
+ "vue": "^3.5.0"
157
157
  },
158
158
  "devDependencies": {
159
159
  "@adyen/adyen-web": "^6.14.0",
@@ -164,7 +164,7 @@
164
164
  "@formatjs/intl": "^3.1.8",
165
165
  "@playwright/test": "^1.64.1",
166
166
  "@solvimon/solvimon-types": "^1.10.0",
167
- "@solvimon/solvimon-ui": "^1.23.2",
167
+ "@solvimon/solvimon-ui": "^1.24.1",
168
168
  "@stripe/stripe-js": "^9.8.0",
169
169
  "@types/node": "^22.10.2",
170
170
  "@typescript-eslint/parser": "^8.46.2",