@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.
- package/README.md +12 -2
- package/dist/{Alert.vue.es-CNrEaLvh.mjs → Alert.vue.es-ZPG49yR_.mjs} +1 -1
- package/dist/{AuthProvider.handle-DKfNs8rr.mjs → AuthProvider.handle-SRR_04XS.mjs} +1 -1
- package/dist/{Avatar.vue.es-r0NbcIib.mjs → Avatar.vue.es-geDQsZwu.mjs} +1 -1
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-Cp4yGqaw.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-nqKbgY7G.mjs} +4 -4
- package/dist/{Button.vue.es-Zw--kuaU.mjs → Button.vue.es-j7iYlqtJ.mjs} +1 -1
- package/dist/{ChargeOnDemandModal-B8FDkS9U.mjs → ChargeOnDemandModal-CR01PkP_.mjs} +14 -14
- package/dist/{Checkout.entry.ce-DsGl-5aR.mjs → Checkout.entry.ce-CopWuLJC.mjs} +1784 -1817
- 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
- package/dist/{Chip.vue.es-D3UDSyXC.mjs → Chip.vue.es-Dxx_0dte.mjs} +2 -2
- package/dist/{ContextMenu.vue.es-B9mFpUQK.mjs → ContextMenu.vue.es-BJO4U47Q.mjs} +5 -5
- package/dist/{CustomerBillingInformation.vue.es-B8NiQaJs.mjs → CustomerBillingInformation.vue.es-CmNpqcBw.mjs} +2 -2
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-DBivC5Eb.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Jyb5ZN3s.mjs} +5 -5
- package/dist/{CustomerShippingAddresses-Bj8Y17O8.mjs → CustomerShippingAddresses-BRPukhRI.mjs} +8 -8
- package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BmPKfIjT.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DJnr5D56.mjs} +434 -425
- package/dist/{DividerText.vue.es-CNbgif-3.mjs → DividerText.vue.es-BusbyeAI.mjs} +1 -1
- 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
- package/dist/{ErrorNotification.vue.es-DNd65mQq.mjs → ErrorNotification.vue.es-F068p7PY.mjs} +2 -2
- package/dist/{FormMessage.vue.es-Cjv358Ab.mjs → FormMessage.vue.es-CwMQpIAW.mjs} +1 -1
- package/dist/{IconButton.vue.es-C8lYFx5_.mjs → IconButton.vue.es-D8DtBW9i.mjs} +2 -2
- package/dist/{IconTitle.vue.es-O2kcqgKm.mjs → IconTitle.vue.es-6VJtjJX2.mjs} +3 -3
- package/dist/{Input.vue.es-D8Oj8MWv.mjs → Input.vue.es-BLyHcmu4.mjs} +4 -4
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-rhqYVdfV.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Dl1vTzQD.mjs} +2 -2
- 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
- package/dist/{InvoicePreview.vue.es-4Q2hzaFS.mjs → InvoicePreview.vue.es-Cpf66_xV.mjs} +4 -4
- package/dist/{InvoicePricingClauseChip.vue.es-DKU0xu0t.mjs → InvoicePricingClauseChip.vue.es-CDrAE901.mjs} +3 -3
- package/dist/{Label.vue.es-DtpLM1KH.mjs → Label.vue.es-es7ZUBSP.mjs} +3 -3
- package/dist/{Modal.vue.es-C8ZcO117.mjs → Modal.vue.es-eeR9FmvQ.mjs} +6 -6
- 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
- package/dist/{PaymentCompletedCard.vue_vue_type_script_setup_true_lang-DfTb9psX.mjs → PaymentCompletedCard.vue_vue_type_script_setup_true_lang-CrjVPks0.mjs} +2 -2
- package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-BoGTtg5G.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-DyjzaTK1.mjs} +4 -4
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BIAm22Kq.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BHQrWy6r.mjs} +3 -3
- package/dist/{PaymentHistoryBlock-BvY2nXGV.mjs → PaymentHistoryBlock-CN42ewCn.mjs} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-bQKhUonq.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-C3Y5fHvA.mjs} +4 -4
- package/dist/{PaymentIntegrationForm-CcfQSzKM.mjs → PaymentIntegrationForm-D3Ye7LZ5.mjs} +1 -1
- package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CvzcLJVq.mjs → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-D07SEP8a.mjs} +5 -5
- package/dist/{PaymentIntegrationFormAdyen-DqgDfO6K.mjs → PaymentIntegrationFormAdyen-Fm-diCCO.mjs} +39 -38
- package/dist/{PaymentIntegrationFormStripe-BYdAkvLt.mjs → PaymentIntegrationFormStripe-BANBL6za.mjs} +14 -13
- package/dist/{PaymentMethod.vue.es-b0p3a0L-.mjs → PaymentMethod.vue.es-t3-VyoE8.mjs} +4 -4
- package/dist/{PaymentMethodForm-BsTrTwCg.mjs → PaymentMethodForm-CqP3GoNj.mjs} +1 -1
- package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-sUOmLORl.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-CMRMbL3d.mjs} +6 -6
- package/dist/{PaymentMethodSelector.vue_vue_type_script_setup_true_lang-DsnAhR79.mjs → PaymentMethodSelector.vue_vue_type_script_setup_true_lang-D5wmRuCf.mjs} +6 -6
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-CSW4LfmH.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-DhkkiJaQ.mjs} +7 -7
- package/dist/PlanCustomizationEditor-B76UNEMm.mjs +791 -0
- package/dist/{PortalLinkUnverified-B_EE2wTJ.mjs → PortalLinkUnverified-Cp60_kRJ.mjs} +3 -3
- package/dist/{PortalNotAvailable-DPE9y37H.mjs → PortalNotAvailable-DzSQnfzw.mjs} +2 -2
- package/dist/{PricingGroupRangeInput.vue.es-tIMXIhpZ.mjs → PricingGroupRangeInput.vue.es-Srq_3cga.mjs} +156 -206
- package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-oRijnVnZ.mjs +177 -0
- package/dist/{RadioGroupExtended.vue.es-3nDXqIGi.mjs → RadioGroupExtended.vue.es-BbBMDf6l.mjs} +5 -5
- package/dist/{Section.vue.es-CvX9tg2f.mjs → Section.vue.es-Oqn1wGPZ.mjs} +1 -1
- package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Cl7I1Apo.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-OM19NPBh.mjs} +2 -2
- package/dist/{ShippingAddressesModal-C4p1IXXk.mjs → ShippingAddressesModal-c7nqf4Ny.mjs} +10 -10
- package/dist/StepInput.vue.es-ieh4EuJ7.mjs +213 -0
- package/dist/{SubscriptionDetails.entry.ce-D5SwM0YS.mjs → SubscriptionDetails.entry.ce-uYv45FGH.mjs} +91 -92
- package/dist/{SubscriptionSchedules-BZqlpAtk.mjs → SubscriptionSchedules-DMxX3GpK.mjs} +1 -1
- 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
- package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-DoJxiqVB.mjs → SubscriptionSummary.vue_vue_type_script_setup_true_lang-BZNsqN4G.mjs} +4 -4
- 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
- package/dist/{TooltipParagraph.vue.es-Dw0ndjle.mjs → TooltipParagraph.vue.es-BES3zsYN.mjs} +1 -1
- package/dist/{TranslationOverride.vue_vue_type_script_setup_true_lang-BhjZVMSx.mjs → TranslationOverride.vue_vue_type_script_setup_true_lang-BJmlNrXT.mjs} +1 -1
- package/dist/{TrialChip.vue.es-DOopmaXA.mjs → TrialChip.vue.es-C51z1ZiA.mjs} +2 -2
- package/dist/addonQuantity-CCVaA3e-.mjs +758 -0
- package/dist/components/BillingInformation/BillingInformation.mjs +4 -4
- package/dist/components/BillingInformationForm/BillingInformationForm.mjs +8 -8
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +4 -4
- package/dist/components/Invoice/Invoice.mjs +14 -14
- package/dist/components/InvoiceDetails/InvoiceDetails.mjs +4 -4
- package/dist/components/InvoiceHeader/InvoiceHeader.mjs +2 -2
- package/dist/components/InvoicesList/InvoicesList.mjs +3 -3
- package/dist/components/PaymentHistory/PaymentHistory.mjs +4 -4
- package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +5 -5
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +4 -4
- package/dist/components/SubscriptionsList/SubscriptionsList.mjs +5 -5
- package/dist/components/WalletBalances/WalletBalances.mjs +3 -3
- package/dist/core/index.mjs +1 -1
- package/dist/{customElements-BTj4ii4f.mjs → customElements-DK4GKNJG.mjs} +10 -10
- package/dist/{customer-BIjC0CWJ.mjs → customer-lf6S5DBR.mjs} +1 -1
- package/dist/{de-DE-DBbERiFr.mjs → de-DE-Cyj_NtiI.mjs} +4 -0
- package/dist/{fr-FR-IWJE-urI.mjs → fr-FR-CRFoWQ7J.mjs} +4 -0
- package/dist/{index.es-C7J3WGGo.mjs → index.es-BrVTOW5D.mjs} +4 -4
- package/dist/index.mjs +2 -2
- package/dist/{invoices-e1sKLgxg.mjs → invoices-DdREPDXV.mjs} +1 -1
- package/dist/{it-IT-B7ui2oxO.mjs → it-IT-DObZEc-U.mjs} +4 -0
- package/dist/{nl-NL-Bafh2xoT.mjs → nl-NL-C02xHilF.mjs} +4 -0
- package/dist/paymentFailure-QZdZHBhf.mjs +47 -0
- package/dist/{paymentMethods-B_82JGk_.mjs → paymentMethods-8w-ccfY_.mjs} +1 -1
- package/dist/{paymentMethods-Nfv9HdkS.mjs → paymentMethods-Goa25rTs.mjs} +2 -2
- package/dist/paymentOutcome-B6sW1eCV.mjs +22 -0
- package/dist/{payments-BnxbzQUC.mjs → payments-CKpU1K3t.mjs} +1 -1
- package/dist/{pricing-BOhvWWMj.mjs → pricing-CEaZGgKe.mjs} +1 -1
- package/dist/pricingItem.es-bCPArbTa.mjs +55 -0
- package/dist/{pricingPlanScheduleOverrides-Dxv5FOBd.mjs → pricingPlanScheduleOverrides-BBp-DmpV.mjs} +2 -2
- package/dist/{pricingPlanSchedules-Dv7ZCgNp.mjs → pricingPlanSchedules-DSMptcAh.mjs} +1 -1
- package/dist/screens/Checkout/Checkout.mjs +2 -2
- package/dist/screens/CustomerOverview/CustomerOverview.mjs +13 -13
- package/dist/screens/PayInvoice/PayInvoice.mjs +33 -32
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +10 -10
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +2 -2
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +172 -163
- package/dist/{sorting.es-CVyKw23D.mjs → sorting.es-C0pdMgX0.mjs} +1 -1
- package/dist/subscription-BwzkagDI.mjs +212 -0
- package/dist/{subscriptions-BWXZGK0E.mjs → subscriptions-B5bH8hsI.mjs} +1 -1
- package/dist/{taxId.es-DkD3Ltr8.mjs → taxId.es-e6NEvprh.mjs} +2 -2
- package/dist/types/public/core/configuration.d.ts +0 -1
- package/dist/types/public/core/types.d.ts +10 -5
- package/dist/{useActionDispatchProvider-3W2vEyIg.mjs → useActionDispatchProvider-ChAHdwR8.mjs} +1 -1
- package/dist/{useCustomer-cObBvDOu.mjs → useCustomer-CTMhg1nd.mjs} +2 -2
- package/dist/{useCustomerFormLabels-DJWf2O17.mjs → useCustomerFormLabels-D4oDnfxA.mjs} +9 -9
- package/dist/{useIncrementalLoading-CATuO36d.mjs → useIncrementalLoading-CBVutPH8.mjs} +1 -1
- package/dist/{useInvoiceData-DD44HTl7.mjs → useInvoiceData-qUGbBAQK.mjs} +2 -2
- package/dist/{useInvoicesList-CpB-41MQ.mjs → useInvoicesList-wJvZAJpW.mjs} +9 -9
- package/dist/{useLoadInitialData-qzdnBoui.mjs → useLoadInitialData-UvfYXgbi.mjs} +1 -1
- package/dist/{usePaymentFormHold-ByUZi3A-.mjs → usePaymentFormHold-Cwdr-vyc.mjs} +2 -2
- package/dist/{usePaymentMethodAvailability-DUdrs0Ji.mjs → usePaymentMethodAvailability-35l4pWdH.mjs} +4 -4
- package/dist/{usePaymentMethods-ByaKF7mf.mjs → usePaymentMethods-De7hlLHo.mjs} +2 -2
- package/dist/{usePayments-BXABv-lF.mjs → usePayments-hWS7fnOx.mjs} +9 -9
- package/dist/{usePortal-CwR_FxTb.mjs → usePortal-DUfD6hrA.mjs} +1 -1
- package/dist/{useService-BZcbUZHI.mjs → useService-BwzIBIRp.mjs} +1 -1
- package/dist/{useTimePeriod.es-BpdiVwg8.mjs → useTimePeriod.es-BUorDLVK.mjs} +1 -1
- package/package.json +4 -4
- package/dist/PlanCustomizationEditor-D29N4HUM.mjs +0 -711
- package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DqxWxSQe.mjs +0 -141
- package/dist/StepInput.vue.es-DweyzpkL.mjs +0 -200
- package/dist/index.es-CpmQmvOg.mjs +0 -633
- package/dist/paymentOutcome-BXEU5-84.mjs +0 -67
- package/dist/pricingPlanSchedule-BPrS2WRd.mjs +0 -132
- package/dist/subscription-BhxoqwcT.mjs +0 -83
|
@@ -1,711 +0,0 @@
|
|
|
1
|
-
import { defineComponent as T, computed as h, openBlock as s, createElementBlock as _, createVNode as b, unref as i, withCtx as g, Fragment as P, createTextVNode as v, toDisplayString as y, renderList as N, createBlock as f, useModel as $, ref as X, createElementVNode as V, normalizeClass as U, createCommentVNode as k, mergeModels as w, toRef as E } from "vue";
|
|
2
|
-
import { _ as A } from "./Section.vue.es-CvX9tg2f.mjs";
|
|
3
|
-
import { a as S, d as x } from "./customElements-BTj4ii4f.mjs";
|
|
4
|
-
import { u as I } from "./useTimePeriod.es-BpdiVwg8.mjs";
|
|
5
|
-
import { f as z } from "./formatting.es-RclXHhKo.mjs";
|
|
6
|
-
import { _ as H } from "./Expand.vue.es-BleuAfDz.mjs";
|
|
7
|
-
import { a as J, _ as j } from "./Button.vue.es-Zw--kuaU.mjs";
|
|
8
|
-
import { _ as D } from "./StepInput.vue.es-DweyzpkL.mjs";
|
|
9
|
-
import { g as Q, F as q, _ as L } from "./Checkout.entry.ce-DsGl-5aR.mjs";
|
|
10
|
-
import { a as O, u as R, _ as W } from "./PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DqxWxSQe.mjs";
|
|
11
|
-
import { _ as Z } from "./SubscriptionSummary.vue_vue_type_script_setup_true_lang-DoJxiqVB.mjs";
|
|
12
|
-
import { g as Y, a as G } from "./pricing-BOhvWWMj.mjs";
|
|
13
|
-
import { g as ee } from "./pricingPlanSchedule-BPrS2WRd.mjs";
|
|
14
|
-
import { b as ie } from "./subscription-BhxoqwcT.mjs";
|
|
15
|
-
const te = { class: "grid grid-cols-2 gap-2" }, ne = /* @__PURE__ */ T({
|
|
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 m = e, { $t: t } = S(), { formatTimePeriod: c } = I(), d = h(() => {
|
|
25
|
-
var o;
|
|
26
|
-
if (m.isFirst)
|
|
27
|
-
return "0";
|
|
28
|
-
if ((o = m.previousBand) != null && o.tier_top_bound && "number" in m.previousBand.tier_top_bound)
|
|
29
|
-
return m.previousBand.tier_top_bound.number;
|
|
30
|
-
}), u = h(() => {
|
|
31
|
-
if (!(!m.band.tier_top_bound || !("number" in m.band.tier_top_bound)))
|
|
32
|
-
return m.band.tier_top_bound.number;
|
|
33
|
-
});
|
|
34
|
-
return (o, n) => (s(), _("div", te, [
|
|
35
|
-
b(i(x), {
|
|
36
|
-
variant: "body-xs",
|
|
37
|
-
color: "subtle",
|
|
38
|
-
tag: "div"
|
|
39
|
-
}, {
|
|
40
|
-
default: g(() => [
|
|
41
|
-
u.value ? (s(), _(P, { key: 0 }, [
|
|
42
|
-
v(y(i(t)(
|
|
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: d.value ?? "0",
|
|
50
|
-
upper_bound: u.value
|
|
51
|
-
}
|
|
52
|
-
)), 1)
|
|
53
|
-
], 64)) : (s(), _(P, { key: 1 }, [
|
|
54
|
-
v(y(i(t)(
|
|
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: d.value ?? "0"
|
|
62
|
-
}
|
|
63
|
-
)), 1)
|
|
64
|
-
], 64))
|
|
65
|
-
]),
|
|
66
|
-
_: 1
|
|
67
|
-
}),
|
|
68
|
-
b(i(x), {
|
|
69
|
-
variant: "body-xs",
|
|
70
|
-
color: "subtle",
|
|
71
|
-
tag: "div",
|
|
72
|
-
class: "text-right"
|
|
73
|
-
}, {
|
|
74
|
-
default: g(() => [
|
|
75
|
-
v(y(e.band.amount && i(t)(
|
|
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: i(z)(e.band.amount),
|
|
83
|
-
period: e.period ? i(c)(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" }, oe = /* @__PURE__ */ T({
|
|
95
|
-
__name: "TieredTable",
|
|
96
|
-
props: {
|
|
97
|
-
bands: { type: Array },
|
|
98
|
-
period: { type: Object }
|
|
99
|
-
},
|
|
100
|
-
setup(e) {
|
|
101
|
-
return (m, t) => (s(), _("div", ae, [
|
|
102
|
-
(s(!0), _(P, null, N(e.bands, (c, d) => (s(), f(ne, {
|
|
103
|
-
key: d,
|
|
104
|
-
band: c,
|
|
105
|
-
"is-first": d === 0,
|
|
106
|
-
"previous-band": d > 0 ? e.bands[d - 1] : void 0,
|
|
107
|
-
period: e.period
|
|
108
|
-
}, null, 8, ["band", "is-first", "previous-band", "period"]))), 128))
|
|
109
|
-
]));
|
|
110
|
-
}
|
|
111
|
-
});
|
|
112
|
-
function K({
|
|
113
|
-
pricings: e,
|
|
114
|
-
pricingItemConfigId: m
|
|
115
|
-
}) {
|
|
116
|
-
return h(() => {
|
|
117
|
-
var d, u, o, n, l, a, r, p;
|
|
118
|
-
const { config: t, productItem: c } = Q({
|
|
119
|
-
pricings: e,
|
|
120
|
-
pricingItemConfigId: m
|
|
121
|
-
});
|
|
122
|
-
return {
|
|
123
|
-
billing: {
|
|
124
|
-
period: (u = (d = t == null ? void 0 : t.billing_period_configs) == null ? void 0 : d[0]) == null ? void 0 : u.billing_period,
|
|
125
|
-
billedInAdvance: t == null ? void 0 : t.billing_in_advance
|
|
126
|
-
},
|
|
127
|
-
product: {
|
|
128
|
-
name: c == null ? void 0 : c.name,
|
|
129
|
-
description: c == null ? void 0 : c.description
|
|
130
|
-
},
|
|
131
|
-
pricing: {
|
|
132
|
-
...((o = t == null ? void 0 : t.details) == null ? void 0 : o.pricing_type) === "FLAT" && {
|
|
133
|
-
amount: (a = (l = (n = t.details) == null ? void 0 : n.bands) == null ? void 0 : l[0]) == null ? void 0 : a.amount
|
|
134
|
-
},
|
|
135
|
-
...((r = t == null ? void 0 : t.details) == null ? void 0 : r.pricing_type) === "TIERED" && {
|
|
136
|
-
tiered: { bands: (p = t.details) == null ? void 0 : p.bands }
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
};
|
|
140
|
-
});
|
|
141
|
-
}
|
|
142
|
-
const le = { class: "flex flex-row-reverse gap-4 md:flex-row" }, re = { class: "w-24 shrink-0 justify-start md:w-32" }, se = ["tabindex"], de = { key: 0 }, ue = { key: 0 }, ce = /* @__PURE__ */ T({
|
|
143
|
-
__name: "SeatsEditorItem",
|
|
144
|
-
props: /* @__PURE__ */ w({
|
|
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 m = e, t = $(e, "modelValue"), { $t: c } = S(), { formatTimePeriod: d } = I(), u = X(!1), o = h({
|
|
155
|
-
get: () => +(t.value.number || q),
|
|
156
|
-
set(a) {
|
|
157
|
-
t.value = {
|
|
158
|
-
...t.value,
|
|
159
|
-
number: a !== void 0 ? a.toString() : void 0
|
|
160
|
-
};
|
|
161
|
-
}
|
|
162
|
-
}), n = K({
|
|
163
|
-
pricings: m.pricings,
|
|
164
|
-
pricingItemConfigId: t.value.pricing_item_config_id
|
|
165
|
-
}), l = h(() => {
|
|
166
|
-
var a, r;
|
|
167
|
-
return !!((r = (a = n.value.pricing) == null ? void 0 : a.tiered) != null && r.bands);
|
|
168
|
-
});
|
|
169
|
-
return (a, r) => {
|
|
170
|
-
var p, M, C;
|
|
171
|
-
return s(), _("div", null, [
|
|
172
|
-
V("div", le, [
|
|
173
|
-
V("div", re, [
|
|
174
|
-
b(i(D), {
|
|
175
|
-
modelValue: o.value,
|
|
176
|
-
"onUpdate:modelValue": r[0] || (r[0] = (F) => o.value = F),
|
|
177
|
-
size: "sm",
|
|
178
|
-
min: (p = e.defaultValue) != null && p.number ? +e.defaultValue.number : void 0
|
|
179
|
-
}, null, 8, ["modelValue", "min"])
|
|
180
|
-
]),
|
|
181
|
-
V("div", {
|
|
182
|
-
class: U(["flex grow flex-col", { "hover:cursor-pointer": l.value }]),
|
|
183
|
-
tabindex: l.value ? 0 : void 0,
|
|
184
|
-
onClick: r[1] || (r[1] = (F) => l.value ? u.value = !u.value : void 0)
|
|
185
|
-
}, [
|
|
186
|
-
b(i(x), {
|
|
187
|
-
tag: "span",
|
|
188
|
-
variant: "body-sm",
|
|
189
|
-
weight: "semibold"
|
|
190
|
-
}, {
|
|
191
|
-
default: g(() => [
|
|
192
|
-
v(y(i(n).product.name || i(c)({
|
|
193
|
-
defaultMessage: "Seats",
|
|
194
|
-
id: "seats.label",
|
|
195
|
-
description: "The label for the seats input field"
|
|
196
|
-
})), 1)
|
|
197
|
-
]),
|
|
198
|
-
_: 1
|
|
199
|
-
}),
|
|
200
|
-
i(n).pricing.amount ? (s(), f(i(x), {
|
|
201
|
-
key: 0,
|
|
202
|
-
tag: "span",
|
|
203
|
-
variant: "body-xs",
|
|
204
|
-
color: "subtle"
|
|
205
|
-
}, {
|
|
206
|
-
default: g(() => [
|
|
207
|
-
v(y(i(c)(
|
|
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: i(z)(i(n).pricing.amount),
|
|
215
|
-
period: i(n).billing.period ? i(d)(i(n).billing.period, {
|
|
216
|
-
short: !0,
|
|
217
|
-
hideValueForExactPeriods: !0
|
|
218
|
-
}) : ""
|
|
219
|
-
}
|
|
220
|
-
)), 1)
|
|
221
|
-
]),
|
|
222
|
-
_: 1
|
|
223
|
-
})) : i(n).pricing.tiered ? (s(), f(i(x), {
|
|
224
|
-
key: 1,
|
|
225
|
-
tag: "span",
|
|
226
|
-
variant: "body-xs",
|
|
227
|
-
color: "subtle"
|
|
228
|
-
}, {
|
|
229
|
-
default: g(() => [
|
|
230
|
-
v(y(i(c)({
|
|
231
|
-
defaultMessage: "Tiered pricing",
|
|
232
|
-
id: "seats.tiered_pricing_label",
|
|
233
|
-
description: "The label indicating tiered pricing structure for seats"
|
|
234
|
-
})) + " ", 1),
|
|
235
|
-
b(i(J), {
|
|
236
|
-
icon: "keyboard_arrow_down",
|
|
237
|
-
size: "xs",
|
|
238
|
-
class: U(["absolute text-gray-400 transition ease-in-out", { "rotate-0": !u.value, "rotate-180": u.value }])
|
|
239
|
-
}, null, 8, ["class"])
|
|
240
|
-
]),
|
|
241
|
-
_: 1
|
|
242
|
-
})) : k("", !0)
|
|
243
|
-
], 10, se)
|
|
244
|
-
]),
|
|
245
|
-
(C = (M = i(n).pricing) == null ? void 0 : M.tiered) != null && C.bands ? (s(), _("div", de, [
|
|
246
|
-
b(i(H), { "is-open": u.value }, {
|
|
247
|
-
default: g(() => [
|
|
248
|
-
u.value ? (s(), _("div", ue, [
|
|
249
|
-
b(oe, {
|
|
250
|
-
bands: i(n).pricing.tiered.bands,
|
|
251
|
-
period: i(n).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__ */ T({
|
|
265
|
-
__name: "SeatsEditor",
|
|
266
|
-
props: /* @__PURE__ */ w({
|
|
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 m = e, t = $(e, "modelValue"), c = (u) => h({
|
|
277
|
-
get: () => t.value[u],
|
|
278
|
-
set: (o) => {
|
|
279
|
-
const n = t.value.slice();
|
|
280
|
-
n[u] = o, t.value = n;
|
|
281
|
-
}
|
|
282
|
-
}), d = (u) => {
|
|
283
|
-
var o;
|
|
284
|
-
return (o = m.initialSeatsValues) == null ? void 0 : o.find(
|
|
285
|
-
(n) => n.pricing_item_config_id === u.pricing_item_config_id
|
|
286
|
-
);
|
|
287
|
-
};
|
|
288
|
-
return (u, o) => e.modelValue.length > 0 ? (s(), _("div", me, [
|
|
289
|
-
(s(!0), _(P, null, N(e.modelValue, (n, l) => (s(), f(i(A), { key: l }, {
|
|
290
|
-
default: g(() => [
|
|
291
|
-
n.pricing_item_config_id ? (s(), f(ce, {
|
|
292
|
-
key: n.pricing_item_config_id,
|
|
293
|
-
modelValue: c(l).value,
|
|
294
|
-
"onUpdate:modelValue": (a) => c(l).value = a,
|
|
295
|
-
"default-value": d(n),
|
|
296
|
-
pricings: e.pricings
|
|
297
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "default-value", "pricings"])) : k("", !0)
|
|
298
|
-
]),
|
|
299
|
-
_: 2
|
|
300
|
-
}, 1024))), 128))
|
|
301
|
-
])) : k("", !0);
|
|
302
|
-
}
|
|
303
|
-
}), 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__ */ T({
|
|
304
|
-
__name: "UnitsEditorItem",
|
|
305
|
-
props: /* @__PURE__ */ w({
|
|
306
|
-
modelValue: { type: Object },
|
|
307
|
-
defaultValue: { type: Object },
|
|
308
|
-
pricings: { type: Array }
|
|
309
|
-
}, {
|
|
310
|
-
modelValue: { required: !0 },
|
|
311
|
-
modelModifiers: {}
|
|
312
|
-
}),
|
|
313
|
-
emits: ["update:modelValue"],
|
|
314
|
-
setup(e) {
|
|
315
|
-
const m = e, t = $(e, "modelValue"), { $t: c } = S(), d = h({
|
|
316
|
-
get: () => +(t.value.number || q),
|
|
317
|
-
set(o) {
|
|
318
|
-
t.value = {
|
|
319
|
-
...t.value,
|
|
320
|
-
number: o !== void 0 ? o.toString() : void 0
|
|
321
|
-
};
|
|
322
|
-
}
|
|
323
|
-
}), u = K({
|
|
324
|
-
pricings: m.pricings,
|
|
325
|
-
pricingItemConfigId: t.value.pricing_item_config_id
|
|
326
|
-
});
|
|
327
|
-
return (o, n) => {
|
|
328
|
-
var l;
|
|
329
|
-
return s(), _("div", ge, [
|
|
330
|
-
V("div", fe, [
|
|
331
|
-
b(i(D), {
|
|
332
|
-
modelValue: d.value,
|
|
333
|
-
"onUpdate:modelValue": n[0] || (n[0] = (a) => d.value = a),
|
|
334
|
-
size: "sm",
|
|
335
|
-
min: (l = e.defaultValue) != null && l.number ? +e.defaultValue.number : void 0
|
|
336
|
-
}, null, 8, ["modelValue", "min"])
|
|
337
|
-
]),
|
|
338
|
-
V("div", be, [
|
|
339
|
-
b(i(x), {
|
|
340
|
-
tag: "span",
|
|
341
|
-
variant: "body-sm",
|
|
342
|
-
weight: "semibold"
|
|
343
|
-
}, {
|
|
344
|
-
default: g(() => [
|
|
345
|
-
v(y(i(u).product.name || i(c)({
|
|
346
|
-
defaultMessage: "Units",
|
|
347
|
-
id: "units.label",
|
|
348
|
-
description: "The label for the one-off flat item units input field"
|
|
349
|
-
})), 1)
|
|
350
|
-
]),
|
|
351
|
-
_: 1
|
|
352
|
-
}),
|
|
353
|
-
i(u).pricing.amount ? (s(), f(i(x), {
|
|
354
|
-
key: 0,
|
|
355
|
-
tag: "span",
|
|
356
|
-
variant: "body-xs",
|
|
357
|
-
color: "subtle"
|
|
358
|
-
}, {
|
|
359
|
-
default: g(() => [
|
|
360
|
-
v(y(i(c)(
|
|
361
|
-
{
|
|
362
|
-
defaultMessage: "{amount} per unit, one-time",
|
|
363
|
-
id: "units.price_per_unit_one_time",
|
|
364
|
-
description: "The price per unit label for a one-off flat item, which is charged once rather than every period"
|
|
365
|
-
},
|
|
366
|
-
{ amount: i(z)(i(u).pricing.amount) }
|
|
367
|
-
)), 1)
|
|
368
|
-
]),
|
|
369
|
-
_: 1
|
|
370
|
-
})) : k("", !0)
|
|
371
|
-
])
|
|
372
|
-
]);
|
|
373
|
-
};
|
|
374
|
-
}
|
|
375
|
-
}), ve = { class: "grid grid-cols-1 gap-1 p-1" }, ye = { class: "grid grid-cols-1 gap-1" }, Ve = /* @__PURE__ */ T({
|
|
376
|
-
__name: "UnitsEditor",
|
|
377
|
-
props: /* @__PURE__ */ w({
|
|
378
|
-
modelValue: { type: Array },
|
|
379
|
-
initialUnitsValues: { type: Array },
|
|
380
|
-
pricings: { type: Array }
|
|
381
|
-
}, {
|
|
382
|
-
modelValue: { required: !0 },
|
|
383
|
-
modelModifiers: {}
|
|
384
|
-
}),
|
|
385
|
-
emits: ["update:modelValue"],
|
|
386
|
-
setup(e) {
|
|
387
|
-
const m = e, { $t: t } = S(), c = $(e, "modelValue"), d = (o) => h({
|
|
388
|
-
get: () => c.value[o],
|
|
389
|
-
set: (n) => {
|
|
390
|
-
const l = c.value.slice();
|
|
391
|
-
l[o] = n, c.value = l;
|
|
392
|
-
}
|
|
393
|
-
}), u = (o) => {
|
|
394
|
-
var n;
|
|
395
|
-
return (n = m.initialUnitsValues) == null ? void 0 : n.find(
|
|
396
|
-
(l) => l.pricing_item_config_id === o.pricing_item_config_id
|
|
397
|
-
);
|
|
398
|
-
};
|
|
399
|
-
return (o, n) => e.modelValue.length > 0 ? (s(), f(i(A), {
|
|
400
|
-
key: 0,
|
|
401
|
-
"no-spacing": "",
|
|
402
|
-
"content-background": "gray"
|
|
403
|
-
}, {
|
|
404
|
-
default: g(() => [
|
|
405
|
-
V("div", ve, [
|
|
406
|
-
b(O, null, {
|
|
407
|
-
title: g(() => [
|
|
408
|
-
v(y(i(t)({
|
|
409
|
-
defaultMessage: "One-time items",
|
|
410
|
-
id: "units_editor.title",
|
|
411
|
-
description: "The heading above the one-off items in the plan customization form"
|
|
412
|
-
})), 1)
|
|
413
|
-
]),
|
|
414
|
-
description: g(() => [
|
|
415
|
-
v(y(i(t)({
|
|
416
|
-
defaultMessage: "Charged once",
|
|
417
|
-
id: "units_editor.description",
|
|
418
|
-
description: "The description of the one-off items in the plan customization form"
|
|
419
|
-
})), 1)
|
|
420
|
-
]),
|
|
421
|
-
_: 1
|
|
422
|
-
}),
|
|
423
|
-
V("div", ye, [
|
|
424
|
-
(s(!0), _(P, null, N(e.modelValue, (l, a) => (s(), f(i(A), {
|
|
425
|
-
key: a,
|
|
426
|
-
"content-background": "none"
|
|
427
|
-
}, {
|
|
428
|
-
default: g(() => [
|
|
429
|
-
l.pricing_item_config_id ? (s(), f(_e, {
|
|
430
|
-
key: l.pricing_item_config_id,
|
|
431
|
-
modelValue: d(a).value,
|
|
432
|
-
"onUpdate:modelValue": (r) => d(a).value = r,
|
|
433
|
-
"default-value": u(l),
|
|
434
|
-
pricings: e.pricings
|
|
435
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "default-value", "pricings"])) : k("", !0)
|
|
436
|
-
]),
|
|
437
|
-
_: 2
|
|
438
|
-
}, 1024))), 128))
|
|
439
|
-
])
|
|
440
|
-
])
|
|
441
|
-
]),
|
|
442
|
-
_: 1
|
|
443
|
-
})) : k("", !0);
|
|
444
|
-
}
|
|
445
|
-
}), he = { class: "p-1" }, ke = { class: "grid grid-cols-1 gap-1 pt-1" }, $e = /* @__PURE__ */ T({
|
|
446
|
-
__name: "AddonSingleEditor",
|
|
447
|
-
props: /* @__PURE__ */ w({
|
|
448
|
-
modelValue: { type: Array },
|
|
449
|
-
pricings: { type: Array },
|
|
450
|
-
billingPeriod: { type: Object },
|
|
451
|
-
currency: { type: String },
|
|
452
|
-
groupName: { type: String }
|
|
453
|
-
}, {
|
|
454
|
-
modelValue: { required: !0 },
|
|
455
|
-
modelModifiers: {}
|
|
456
|
-
}),
|
|
457
|
-
emits: ["update:modelValue"],
|
|
458
|
-
setup(e) {
|
|
459
|
-
const m = e, t = $(e, "modelValue"), { $t: c } = S(), { describePricing: d } = R({
|
|
460
|
-
currency: E(m, "currency"),
|
|
461
|
-
billingPeriod: E(m, "billingPeriod")
|
|
462
|
-
}), u = m.pricings.map((l) => l.id), o = (l) => m.modelValue.includes(l), n = (l) => {
|
|
463
|
-
if (o(l))
|
|
464
|
-
t.value = t.value.filter((a) => a !== l);
|
|
465
|
-
else {
|
|
466
|
-
const a = t.value.filter((r) => !u.includes(r));
|
|
467
|
-
t.value = [...a, l];
|
|
468
|
-
}
|
|
469
|
-
};
|
|
470
|
-
return (l, a) => (s(), f(i(A), { "no-spacing": "" }, {
|
|
471
|
-
default: g(() => [
|
|
472
|
-
V("div", he, [
|
|
473
|
-
b(O, null, {
|
|
474
|
-
title: g(() => [
|
|
475
|
-
v(y(e.groupName), 1)
|
|
476
|
-
]),
|
|
477
|
-
description: g(() => [
|
|
478
|
-
v(y(i(c)({
|
|
479
|
-
defaultMessage: "Select up to one product",
|
|
480
|
-
id: "addon_single_editor.description.at_most_one",
|
|
481
|
-
description: "The description of the addon single editor for at most one product"
|
|
482
|
-
})), 1)
|
|
483
|
-
]),
|
|
484
|
-
_: 1
|
|
485
|
-
}),
|
|
486
|
-
V("div", ke, [
|
|
487
|
-
(s(!0), _(P, null, N(e.pricings, (r) => (s(), f(i(A), {
|
|
488
|
-
key: r.id,
|
|
489
|
-
"content-background": "none",
|
|
490
|
-
class: U({ "!bg-white": o(r.id) })
|
|
491
|
-
}, {
|
|
492
|
-
default: g(() => [
|
|
493
|
-
b(L, {
|
|
494
|
-
name: i(Y)(r) ?? "",
|
|
495
|
-
description: i(d)(r)
|
|
496
|
-
}, {
|
|
497
|
-
default: g(() => [
|
|
498
|
-
b(i(Z), {
|
|
499
|
-
"model-value": o(r.id),
|
|
500
|
-
size: "sm",
|
|
501
|
-
"onUpdate:modelValue": (p) => n(r.id)
|
|
502
|
-
}, null, 8, ["model-value", "onUpdate:modelValue"])
|
|
503
|
-
]),
|
|
504
|
-
_: 2
|
|
505
|
-
}, 1032, ["name", "description"])
|
|
506
|
-
]),
|
|
507
|
-
_: 2
|
|
508
|
-
}, 1032, ["class"]))), 128))
|
|
509
|
-
])
|
|
510
|
-
])
|
|
511
|
-
]),
|
|
512
|
-
_: 1
|
|
513
|
-
}));
|
|
514
|
-
}
|
|
515
|
-
}), Pe = { class: "grid grid-cols-1 gap-1" }, B = /* @__PURE__ */ T({
|
|
516
|
-
__name: "AddonMultipleEditor",
|
|
517
|
-
props: /* @__PURE__ */ w({
|
|
518
|
-
modelValue: { type: Array },
|
|
519
|
-
pricings: { type: Array },
|
|
520
|
-
billingPeriod: { type: Object },
|
|
521
|
-
currency: { type: String },
|
|
522
|
-
groupName: { type: String }
|
|
523
|
-
}, {
|
|
524
|
-
modelValue: { required: !0 },
|
|
525
|
-
modelModifiers: {}
|
|
526
|
-
}),
|
|
527
|
-
emits: ["update:modelValue"],
|
|
528
|
-
setup(e) {
|
|
529
|
-
const m = e, t = $(e, "modelValue"), { $t: c } = S(), { describePricing: d } = R({
|
|
530
|
-
currency: E(m, "currency"),
|
|
531
|
-
billingPeriod: E(m, "billingPeriod")
|
|
532
|
-
}), u = (n) => t.value.includes(n), o = (n) => {
|
|
533
|
-
u(n) ? t.value = t.value.filter((l) => l !== n) : t.value = [...t.value, n];
|
|
534
|
-
};
|
|
535
|
-
return (n, l) => (s(), f(i(A), {
|
|
536
|
-
"no-spacing": "",
|
|
537
|
-
"no-border": !e.groupName,
|
|
538
|
-
"content-background": e.groupName ? "gray" : "none"
|
|
539
|
-
}, {
|
|
540
|
-
default: g(() => [
|
|
541
|
-
V("div", {
|
|
542
|
-
class: U(["grid grid-cols-1 gap-1", { "p-1": e.groupName }])
|
|
543
|
-
}, [
|
|
544
|
-
e.groupName ? (s(), f(O, { key: 0 }, {
|
|
545
|
-
title: g(() => [
|
|
546
|
-
v(y(e.groupName), 1)
|
|
547
|
-
]),
|
|
548
|
-
description: g(() => [
|
|
549
|
-
v(y(i(c)({
|
|
550
|
-
defaultMessage: "Select any number of products",
|
|
551
|
-
id: "addon_multiple_editor.description",
|
|
552
|
-
description: "The description of the addon multiple editor"
|
|
553
|
-
})), 1)
|
|
554
|
-
]),
|
|
555
|
-
_: 1
|
|
556
|
-
})) : k("", !0),
|
|
557
|
-
V("div", Pe, [
|
|
558
|
-
(s(!0), _(P, null, N(e.pricings, (a) => (s(), f(i(A), {
|
|
559
|
-
key: a.id,
|
|
560
|
-
"content-background": e.groupName || u(a.id) ? "none" : "gray",
|
|
561
|
-
class: U({ "!bg-white": u(a.id) })
|
|
562
|
-
}, {
|
|
563
|
-
default: g(() => [
|
|
564
|
-
b(L, {
|
|
565
|
-
name: i(Y)(a) ?? "",
|
|
566
|
-
description: i(d)(a)
|
|
567
|
-
}, {
|
|
568
|
-
default: g(() => [
|
|
569
|
-
u(a.id) ? (s(), f(i(j), {
|
|
570
|
-
key: 0,
|
|
571
|
-
intent: "secondary",
|
|
572
|
-
square: "",
|
|
573
|
-
size: "sm",
|
|
574
|
-
"icon-prefix": "remove_shopping_cart",
|
|
575
|
-
onClick: (r) => o(a.id)
|
|
576
|
-
}, null, 8, ["onClick"])) : (s(), f(i(j), {
|
|
577
|
-
key: 1,
|
|
578
|
-
intent: "primary",
|
|
579
|
-
"icon-prefix": "add",
|
|
580
|
-
size: "sm",
|
|
581
|
-
onClick: (r) => o(a.id)
|
|
582
|
-
}, {
|
|
583
|
-
default: g(() => [
|
|
584
|
-
v(y(i(c)({
|
|
585
|
-
defaultMessage: "Add to subscription",
|
|
586
|
-
id: "addon_multiple_editor.add_to_subscription_button",
|
|
587
|
-
description: "The button to add a pricing to the subscription"
|
|
588
|
-
})), 1)
|
|
589
|
-
]),
|
|
590
|
-
_: 1
|
|
591
|
-
}, 8, ["onClick"]))
|
|
592
|
-
]),
|
|
593
|
-
_: 2
|
|
594
|
-
}, 1032, ["name", "description"])
|
|
595
|
-
]),
|
|
596
|
-
_: 2
|
|
597
|
-
}, 1032, ["content-background", "class"]))), 128))
|
|
598
|
-
])
|
|
599
|
-
], 2)
|
|
600
|
-
]),
|
|
601
|
-
_: 1
|
|
602
|
-
}, 8, ["no-border", "content-background"]));
|
|
603
|
-
}
|
|
604
|
-
}), Te = { class: "sv-plan-customization__body grid grid-cols-1 gap-1" }, Ie = /* @__PURE__ */ T({
|
|
605
|
-
__name: "PlanCustomizationEditor",
|
|
606
|
-
props: /* @__PURE__ */ w({
|
|
607
|
-
subscription: { type: Object },
|
|
608
|
-
enabledPricingIds: { type: Array },
|
|
609
|
-
initialSeatsValues: { type: Array },
|
|
610
|
-
initialUnitsValues: { type: Array },
|
|
611
|
-
billingPeriod: { type: Object },
|
|
612
|
-
currency: { type: String }
|
|
613
|
-
}, {
|
|
614
|
-
seatsValues: { required: !0 },
|
|
615
|
-
seatsValuesModifiers: {},
|
|
616
|
-
unitsValues: { required: !0 },
|
|
617
|
-
unitsValuesModifiers: {},
|
|
618
|
-
enabledPricingIds: {
|
|
619
|
-
required: !0
|
|
620
|
-
},
|
|
621
|
-
enabledPricingIdsModifiers: {}
|
|
622
|
-
}),
|
|
623
|
-
emits: ["update:seatsValues", "update:unitsValues", "update:enabledPricingIds"],
|
|
624
|
-
setup(e) {
|
|
625
|
-
const m = e, t = $(e, "seatsValues"), c = $(e, "unitsValues"), d = $(e, "enabledPricingIds"), { $t: u } = S(), o = h(() => {
|
|
626
|
-
const a = ee({
|
|
627
|
-
pricingPlanScheduleInfos: m.subscription.pricing_plan_schedule_infos,
|
|
628
|
-
type: "DEFAULT"
|
|
629
|
-
});
|
|
630
|
-
return a != null && a.pricing_plan_version ? G(a) : [];
|
|
631
|
-
}), n = h(
|
|
632
|
-
() => o.value.filter((a) => a.product_type === "ADDON")
|
|
633
|
-
), l = h(
|
|
634
|
-
() => ie(m.subscription)
|
|
635
|
-
);
|
|
636
|
-
return (a, r) => (s(), f(i(A), {
|
|
637
|
-
class: "sv-plan-customization",
|
|
638
|
-
title: i(u)({
|
|
639
|
-
defaultMessage: "Customize plan",
|
|
640
|
-
id: "checkout.customize_plan_block.title",
|
|
641
|
-
description: "The title of the customize plan block in the checkout form"
|
|
642
|
-
}),
|
|
643
|
-
"no-spacing": "",
|
|
644
|
-
"no-border": "",
|
|
645
|
-
"content-background": "none"
|
|
646
|
-
}, {
|
|
647
|
-
default: g(() => [
|
|
648
|
-
V("div", Te, [
|
|
649
|
-
b(pe, {
|
|
650
|
-
modelValue: t.value,
|
|
651
|
-
"onUpdate:modelValue": r[0] || (r[0] = (p) => t.value = p),
|
|
652
|
-
class: "sv-plan-customization__seats",
|
|
653
|
-
"initial-seats-values": e.initialSeatsValues,
|
|
654
|
-
pricings: o.value
|
|
655
|
-
}, null, 8, ["modelValue", "initial-seats-values", "pricings"]),
|
|
656
|
-
b(Ve, {
|
|
657
|
-
modelValue: c.value,
|
|
658
|
-
"onUpdate:modelValue": r[1] || (r[1] = (p) => c.value = p),
|
|
659
|
-
class: "sv-plan-customization__units",
|
|
660
|
-
"initial-units-values": e.initialUnitsValues,
|
|
661
|
-
pricings: o.value
|
|
662
|
-
}, null, 8, ["modelValue", "initial-units-values", "pricings"]),
|
|
663
|
-
(s(!0), _(P, null, N(l.value, (p) => (s(), _(P, {
|
|
664
|
-
key: p.id
|
|
665
|
-
}, [
|
|
666
|
-
p.product_type === "DEFAULT" && p.selection_constraint === "EXACTLY_ONE" ? (s(), f(W, {
|
|
667
|
-
key: 0,
|
|
668
|
-
modelValue: d.value,
|
|
669
|
-
"onUpdate:modelValue": r[2] || (r[2] = (M) => d.value = M),
|
|
670
|
-
class: "sv-plan-customization__group",
|
|
671
|
-
"group-name": p.name,
|
|
672
|
-
pricings: p.pricings,
|
|
673
|
-
"billing-period": e.billingPeriod,
|
|
674
|
-
currency: e.currency
|
|
675
|
-
}, null, 8, ["modelValue", "group-name", "pricings", "billing-period", "currency"])) : p.product_type === "ADDON" && p.selection_constraint === "AT_MOST_ONE" ? (s(), f($e, {
|
|
676
|
-
key: 1,
|
|
677
|
-
modelValue: d.value,
|
|
678
|
-
"onUpdate:modelValue": r[3] || (r[3] = (M) => d.value = M),
|
|
679
|
-
class: "sv-plan-customization__group",
|
|
680
|
-
"group-name": p.name,
|
|
681
|
-
pricings: p.pricings,
|
|
682
|
-
"billing-period": e.billingPeriod,
|
|
683
|
-
currency: e.currency
|
|
684
|
-
}, null, 8, ["modelValue", "group-name", "pricings", "billing-period", "currency"])) : p.product_type === "ADDON" && p.selection_constraint === "ANY" ? (s(), f(B, {
|
|
685
|
-
key: 2,
|
|
686
|
-
modelValue: d.value,
|
|
687
|
-
"onUpdate:modelValue": r[4] || (r[4] = (M) => d.value = M),
|
|
688
|
-
class: "sv-plan-customization__group",
|
|
689
|
-
pricings: p.pricings,
|
|
690
|
-
"group-name": p.name,
|
|
691
|
-
"billing-period": e.billingPeriod,
|
|
692
|
-
currency: e.currency
|
|
693
|
-
}, null, 8, ["modelValue", "pricings", "group-name", "billing-period", "currency"])) : k("", !0)
|
|
694
|
-
], 64))), 128)),
|
|
695
|
-
b(B, {
|
|
696
|
-
modelValue: d.value,
|
|
697
|
-
"onUpdate:modelValue": r[5] || (r[5] = (p) => d.value = p),
|
|
698
|
-
class: "sv-plan-customization__group",
|
|
699
|
-
pricings: n.value,
|
|
700
|
-
"billing-period": e.billingPeriod,
|
|
701
|
-
currency: e.currency
|
|
702
|
-
}, null, 8, ["modelValue", "pricings", "billing-period", "currency"])
|
|
703
|
-
])
|
|
704
|
-
]),
|
|
705
|
-
_: 1
|
|
706
|
-
}, 8, ["title"]));
|
|
707
|
-
}
|
|
708
|
-
});
|
|
709
|
-
export {
|
|
710
|
-
Ie as default
|
|
711
|
-
};
|