@solvimon/solvimon-web 0.1.0-alpha.28 → 0.1.0-alpha.29
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 +26 -1
- package/dist/{Alert.vue.es-lIiAWf2S.mjs → Alert.vue.es-CNrEaLvh.mjs} +58 -46
- package/dist/AuthProvider.handle-DKfNs8rr.mjs +50 -0
- package/dist/{Avatar.vue.es-Beg7umjO.mjs → Avatar.vue.es-r0NbcIib.mjs} +1 -1
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-DBGe1PvD.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-Cp4yGqaw.mjs} +8 -8
- package/dist/{Button.vue.es-rh6mITmN.mjs → Button.vue.es-Zw--kuaU.mjs} +4 -4
- package/dist/{ChargeOnDemandModal-CPjPa_uq.mjs → ChargeOnDemandModal-B8FDkS9U.mjs} +35 -34
- package/dist/Checkout.entry.ce-DsGl-5aR.mjs +4202 -0
- package/dist/CheckoutAddressFields.vue_vue_type_script_setup_true_lang-2D8VM_7W.mjs +828 -0
- package/dist/{Chip.vue.es-Cn2R_0mE.mjs → Chip.vue.es-D3UDSyXC.mjs} +3 -3
- package/dist/ContentWithAsideLayout-Bnbsq8_5.mjs +32 -0
- package/dist/{ContextMenu.vue.es-DRxsa7bZ.mjs → ContextMenu.vue.es-B9mFpUQK.mjs} +87 -88
- package/dist/{CustomerBillingInformation.vue.es-DQfL5RMR.mjs → CustomerBillingInformation.vue.es-B8NiQaJs.mjs} +3 -3
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Ct-eYaEN.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-DBivC5Eb.mjs} +21 -20
- package/dist/CustomerShippingAddresses-Bj8Y17O8.mjs +397 -0
- package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BzTSwo4i.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BmPKfIjT.mjs} +798 -792
- package/dist/{DividerText.vue.es-M0XqSz55.mjs → DividerText.vue.es-CNbgif-3.mjs} +1 -1
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CVP-7ne3.mjs +55 -0
- package/dist/{ErrorNotification.vue.es-CKlt4hr2.mjs → ErrorNotification.vue.es-DNd65mQq.mjs} +2 -2
- package/dist/FormMessage.vue.es-Cjv358Ab.mjs +39 -0
- package/dist/{IconButton.vue.es-oe4MVBK1.mjs → IconButton.vue.es-C8lYFx5_.mjs} +2 -2
- package/dist/{IconTitle.vue.es-BO6KBS4v.mjs → IconTitle.vue.es-O2kcqgKm.mjs} +3 -3
- package/dist/{Input.vue.es-DAlPmtE_.mjs → Input.vue.es-D8Oj8MWv.mjs} +23 -22
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-CCTl5GWa.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-rhqYVdfV.mjs} +2 -2
- package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-DMGqj_Uk.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-06R-M8Q3.mjs} +4 -4
- package/dist/InvoicePreview.vue.es-4Q2hzaFS.mjs +286 -0
- package/dist/InvoicePricingClauseChip.vue.es-DKU0xu0t.mjs +124 -0
- package/dist/Label.vue.es-DtpLM1KH.mjs +113 -0
- package/dist/{Modal.vue.es-CTNACAst.mjs → Modal.vue.es-C8ZcO117.mjs} +109 -103
- package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-3DQLCR3U.mjs +441 -0
- package/dist/PaymentCompletedCard.vue_vue_type_script_setup_true_lang-DfTb9psX.mjs +48 -0
- package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-DLfAfB_m.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-BoGTtg5G.mjs} +46 -88
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-CKm-XYuF.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BIAm22Kq.mjs} +3 -3
- package/dist/{PaymentHistoryBlock-BmA8jbMb.mjs → PaymentHistoryBlock-BvY2nXGV.mjs} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BDMse2lO.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-bQKhUonq.mjs} +4 -4
- package/dist/{PaymentIntegrationForm-D1Xw-xIt.mjs → PaymentIntegrationForm-CcfQSzKM.mjs} +1 -1
- package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CCxw0PCv.mjs → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CvzcLJVq.mjs} +68 -69
- package/dist/{PaymentIntegrationFormAdyen-CfT5aD4L.mjs → PaymentIntegrationFormAdyen-DqgDfO6K.mjs} +126 -117
- package/dist/{PaymentIntegrationFormStripe-DKXJ-mjd.mjs → PaymentIntegrationFormStripe-BYdAkvLt.mjs} +193 -179
- package/dist/{PaymentMethod.vue.es-Cauxx4Xr.mjs → PaymentMethod.vue.es-b0p3a0L-.mjs} +7 -7
- package/dist/{PaymentMethodForm-CypZOYUZ.mjs → PaymentMethodForm-BsTrTwCg.mjs} +1 -1
- package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-De8FgdYD.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-sUOmLORl.mjs} +7 -7
- package/dist/{PaymentMethodSelector.vue_vue_type_script_setup_true_lang-Dw28tfpD.mjs → PaymentMethodSelector.vue_vue_type_script_setup_true_lang-DsnAhR79.mjs} +36 -35
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-OtjVO7lR.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-CSW4LfmH.mjs} +7 -7
- package/dist/{PlanCustomizationEditor-Xtww2r9K.mjs → PlanCustomizationEditor-D29N4HUM.mjs} +9 -9
- package/dist/PortalLinkUnverified-B_EE2wTJ.mjs +52 -0
- package/dist/{PortalNotAvailable-B_59GUwN.mjs → PortalNotAvailable-DPE9y37H.mjs} +2 -2
- package/dist/{PricingGroupRangeInput.vue.es-C9LJW3b8.mjs → PricingGroupRangeInput.vue.es-tIMXIhpZ.mjs} +14 -13
- package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DdWxoB8q.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DqxWxSQe.mjs} +32 -32
- package/dist/RadioGroupExtended.vue.es-3nDXqIGi.mjs +176 -0
- package/dist/{Section.vue.es-iS8hVGWA.mjs → Section.vue.es-CvX9tg2f.mjs} +1 -1
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Cl7I1Apo.mjs +60 -0
- package/dist/ShippingAddressesModal-C4p1IXXk.mjs +418 -0
- package/dist/{StepInput.vue.es-Dpan1RQd.mjs → StepInput.vue.es-DweyzpkL.mjs} +4 -4
- package/dist/{SubscriptionDetails.entry.ce-DufQX3uI.mjs → SubscriptionDetails.entry.ce-D5SwM0YS.mjs} +230 -225
- package/dist/{SubscriptionSchedules-DAahcNoI.mjs → SubscriptionSchedules-BZqlpAtk.mjs} +1 -1
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-BH7DdOWK.mjs +5185 -0
- package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-Wmjqy7RZ.mjs → SubscriptionSummary.vue_vue_type_script_setup_true_lang-DoJxiqVB.mjs} +3 -3
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-BeRLuEyR.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BbjdBHSQ.mjs} +23 -22
- package/dist/TooltipParagraph.vue.es-Dw0ndjle.mjs +132 -0
- package/dist/TranslationOverride.vue_vue_type_script_setup_true_lang-BhjZVMSx.mjs +31 -0
- package/dist/{TrialChip.vue.es-B-XBSHWE.mjs → TrialChip.vue.es-DOopmaXA.mjs} +2 -2
- package/dist/{api.es-QaC926Xu.mjs → api.es-qgvzNMU-.mjs} +2 -2
- package/dist/{cn.es-2bVdkiFV.mjs → cn.es-B8acFrov.mjs} +380 -476
- package/dist/components/BillingInformation/BillingInformation.mjs +9 -7
- package/dist/components/BillingInformationForm/BillingInformationForm.mjs +57 -54
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +20 -18
- package/dist/components/Invoice/Invoice.mjs +2660 -193
- package/dist/components/InvoiceDetails/InvoiceDetails.mjs +6 -4
- package/dist/components/InvoiceHeader/InvoiceHeader.mjs +18 -17
- package/dist/components/InvoicesList/InvoicesList.mjs +13 -11
- package/dist/components/PaymentHistory/PaymentHistory.mjs +8 -6
- package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +19 -17
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +19 -17
- package/dist/components/SubscriptionsList/SubscriptionsList.mjs +20 -18
- package/dist/components/WalletBalances/WalletBalances.mjs +17 -15
- package/dist/customElements-BTj4ii4f.mjs +5072 -0
- package/dist/{customer-CqddTiOr.mjs → customer-BIjC0CWJ.mjs} +1 -1
- package/dist/customer.es-DQKl6wFt.mjs +24 -0
- package/dist/{de-DE-BW8dMvhW.mjs → de-DE-DBbERiFr.mjs} +38 -0
- package/dist/{de-DE-BNMj3boy.mjs → de-DE-UJ6X6jXu.mjs} +1 -1
- package/dist/floating-ui.vue.es-BvAf8-si.mjs +1003 -0
- package/dist/{formControl-CsITfsBk.mjs → formControl-BZQLHnOO.mjs} +5 -5
- package/dist/fr-FR-Cvvbkwlj.mjs +307 -0
- package/dist/fr-FR-IWJE-urI.mjs +431 -0
- package/dist/icon-sprite.svg.es-BWBB8SGw.mjs +4 -0
- package/dist/{index.es-CXkP_k3u.mjs → index.es-C7J3WGGo.mjs} +4 -4
- package/dist/index.es-CpmQmvOg.mjs +633 -0
- package/dist/index.mjs +2 -2
- package/dist/{invoices-Cf1qDAv4.mjs → invoices-e1sKLgxg.mjs} +3 -3
- package/dist/{it-IT-Byg06KWc.mjs → it-IT-B7ui2oxO.mjs} +38 -0
- package/dist/{it-IT-DRvuxM1F.mjs → it-IT-DnJP5URH.mjs} +1 -1
- package/dist/{nl-NL-x3zQqzZ7.mjs → nl-NL-Bafh2xoT.mjs} +38 -0
- package/dist/{nl-NL-DLUwWbMG.mjs → nl-NL-q9xfTZF0.mjs} +1 -1
- package/dist/{paymentMethods-BUuOmDq9.mjs → paymentMethods-B_82JGk_.mjs} +2 -2
- package/dist/paymentMethods-Nfv9HdkS.mjs +61 -0
- package/dist/{paymentOutcome-D17VD4MV.mjs → paymentOutcome-BXEU5-84.mjs} +5 -5
- package/dist/payments-BnxbzQUC.mjs +68 -0
- package/dist/pricing-BOhvWWMj.mjs +29 -0
- package/dist/{pricingPlanScheduleOverrides-COr9F8DO.mjs → pricingPlanScheduleOverrides-Dxv5FOBd.mjs} +2 -2
- package/dist/{pricingPlanSchedules-BK_o9p6h.mjs → pricingPlanSchedules-Dv7ZCgNp.mjs} +1 -1
- package/dist/screens/Checkout/Checkout.mjs +2 -2
- package/dist/screens/CustomerOverview/CustomerOverview.mjs +128 -83
- package/dist/screens/PayInvoice/PayInvoice.mjs +572 -218
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +21 -19
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +2 -2
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +261 -266
- package/dist/{sorting.es-qtEN8J8T.mjs → sorting.es-CVyKw23D.mjs} +1 -1
- package/dist/subscriptions-BWXZGK0E.mjs +66 -0
- package/dist/taxId.es-DkD3Ltr8.mjs +243 -0
- package/dist/types/components/customer/CheckoutForm/CheckoutAddressFields.types.d.ts +2 -0
- package/dist/types/components/customer/ShippingAddressForm/ShippingAddressForm.types.d.ts +9 -0
- package/dist/types/components/customer/ShippingAddresses/ShippingAddressCard.types.d.ts +11 -0
- package/dist/types/components/customer/ShippingAddresses/ShippingAddressList.types.d.ts +9 -0
- package/dist/types/components/customer/ShippingAddresses/ShippingAddressesModal.types.d.ts +26 -0
- package/dist/types/components/invoices/InvoiceOrderSummary/InvoiceOrderSummary.types.d.ts +5 -0
- package/dist/types/components/payments/PayButton/PayButton.types.d.ts +2 -0
- package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +11 -0
- package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripeFrame.types.d.ts +4 -1
- package/dist/types/components/providers/AuthProvider/AuthProvider.handle.d.ts +17 -0
- package/dist/types/components/providers/AuthProvider/AuthProvider.lib.d.ts +23 -1
- package/dist/types/components/providers/AuthProvider/AuthProvider.types.d.ts +12 -0
- package/dist/types/components/providers/AuthProvider/AuthProvider.vue.d.ts +3 -1
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +2 -2
- package/dist/types/components/providers/Provider/Provider.types.d.ts +1 -1
- package/dist/types/components/providers/Provider/Provider.vue.d.ts +3 -1
- package/dist/types/components/subscriptions/OrderSummaryInvoice.types.d.ts +16 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +2 -0
- package/dist/types/public/components/CustomerShippingAddresses/CustomerShippingAddresses.types.d.ts +12 -0
- package/dist/types/public/core/types.d.ts +5 -0
- package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +3 -1
- package/dist/types/translations/supported.d.ts +1 -1
- package/dist/types/types/portalAuthentication.d.ts +2 -0
- package/dist/types/types/portalToken.d.ts +9 -0
- package/dist/types/types/shippingAddress.d.ts +9 -0
- package/dist/types/vendor/@solvimon/solvimon-types/index.d.ts +2 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalPolicies.d.ts +1 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalRequests.d.ts +27 -6
- package/dist/types/vendor/@solvimon/solvimon-types/types/ConfigMeterProperties.d.ts +3 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Entitlement.d.ts +6 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Integrations.d.ts +9 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/Invoice.d.ts +16 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/JWT.d.ts +10 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterPropertyVariable.d.ts +16 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentAcceptor.d.ts +6 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Permission.d.ts +1 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/Platform.d.ts +12 -3
- package/dist/types/vendor/@solvimon/solvimon-types/types/Portal.d.ts +71 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSubscription.d.ts +14 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteTemplates.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteVersions.d.ts +35 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Quotes.d.ts +16 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ShippingAddress.d.ts +54 -0
- package/dist/{useActionDispatchProvider-DC_fUykI.mjs → useActionDispatchProvider-3W2vEyIg.mjs} +1 -1
- package/dist/{useCustomer-C3kTh7wn.mjs → useCustomer-cObBvDOu.mjs} +2 -2
- package/dist/useCustomerFormLabels-DJWf2O17.mjs +1173 -0
- package/dist/{useIncrementalLoading-C_sHmW7d.mjs → useIncrementalLoading-CATuO36d.mjs} +2 -2
- package/dist/{useInvoiceData-BIh8-h8b.mjs → useInvoiceData-DD44HTl7.mjs} +2 -2
- package/dist/{useInvoicesList-Y6p0Pqpy.mjs → useInvoicesList-CpB-41MQ.mjs} +10 -10
- package/dist/useLazyFloating.es-CycqRyeb.mjs +68 -0
- package/dist/useLoadInitialData-qzdnBoui.mjs +15 -0
- package/dist/{usePaymentFormHold-FfNc578l.mjs → usePaymentFormHold-ByUZi3A-.mjs} +28 -36
- package/dist/{usePaymentMethodAvailability-CnYTvG15.mjs → usePaymentMethodAvailability-DUdrs0Ji.mjs} +4 -4
- package/dist/usePaymentMethods-ByaKF7mf.mjs +21 -0
- package/dist/{usePayments-CykCZPG2.mjs → usePayments-BXABv-lF.mjs} +9 -9
- package/dist/{usePortal-CxzKGhbK.mjs → usePortal-CwR_FxTb.mjs} +1 -1
- package/dist/{useService-B0OQJmif.mjs → useService-BZcbUZHI.mjs} +3 -3
- package/dist/{useTimePeriod.es-JkXdHNWr.mjs → useTimePeriod.es-BpdiVwg8.mjs} +1 -1
- package/package.json +7 -7
- package/dist/Checkbox.vue.es-DsyiJ-VY.mjs +0 -50
- package/dist/Checkout.entry.ce-BZ1rYQvt.mjs +0 -5279
- package/dist/ContentWithAsideLayout-BCM8tmZN.mjs +0 -38
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-Bk4zwyWa.mjs +0 -362
- package/dist/FormMessage.vue.es-jG3fQZms.mjs +0 -29
- package/dist/InvoiceSummary.vue.es-DbNoGfYN.mjs +0 -2596
- package/dist/RadioGroupExtended.vue.es-UtKsdmiv.mjs +0 -163
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Djc1SkEU.mjs +0 -688
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DNr1CqVj.mjs +0 -5221
- package/dist/TooltipParagraph.vue.es-BjCn2BF6.mjs +0 -129
- package/dist/customElements-Di3zwlEU.mjs +0 -6447
- package/dist/customer.es-B5ppZf0j.mjs +0 -20
- package/dist/floating-ui.vue.es-CYt0fSY7.mjs +0 -1108
- package/dist/icon-sprite.svg.es-BZIz7-0d.mjs +0 -4
- package/dist/payments-Ci8bF4C6.mjs +0 -45
- package/dist/subscriptions-CwogJODR.mjs +0 -54
- package/dist/useCustomerFormLabels-CK7K50nB.mjs +0 -1369
- package/dist/useLoadInitialData-4k_Cyqef.mjs +0 -15
- package/dist/usePaymentMethodOptions-1QBcmgUf.mjs +0 -40
- package/dist/usePaymentMethods-gvr-rmwE.mjs +0 -15
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed as o, defineComponent as f, openBlock as a, createElementBlock as n, normalizeClass as l, unref as r, createCommentVNode as c, renderSlot as g, createVNode as m, withCtx as x, createTextVNode as v, toDisplayString as h } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { d as D } from "./customElements-BTj4ii4f.mjs";
|
|
3
3
|
const d = "relative translate-y-1/2 top-1/2 border-t border-gray-100", y = (e) => {
|
|
4
4
|
const i = o(() => {
|
|
5
5
|
let t = `${d}`;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { defineComponent as i, openBlock as m, createBlock as r, unref as t, withCtx as s, createElementVNode as n, createVNode as a, renderSlot as o } from "vue";
|
|
2
|
+
import { a as _ } from "./Button.vue.es-Zw--kuaU.mjs";
|
|
3
|
+
import { _ as p } from "./Section.vue.es-CvX9tg2f.mjs";
|
|
4
|
+
import { d as c } from "./customElements-BTj4ii4f.mjs";
|
|
5
|
+
const d = { class: "sv-empty-state__body flex flex-col items-center justify-center py-2" }, f = { class: "sv-empty-state__action mt-3 empty:hidden" }, g = /* @__PURE__ */ i({
|
|
6
|
+
__name: "EmptyStatePlaceholder",
|
|
7
|
+
props: {
|
|
8
|
+
icon: { type: null }
|
|
9
|
+
},
|
|
10
|
+
setup(l) {
|
|
11
|
+
return (e, y) => (m(), r(t(p), { class: "sv-empty-state" }, {
|
|
12
|
+
default: s(() => [
|
|
13
|
+
n("div", d, [
|
|
14
|
+
a(t(_), {
|
|
15
|
+
icon: l.icon,
|
|
16
|
+
size: "md",
|
|
17
|
+
class: "sv-empty-state__icon text-gray-500"
|
|
18
|
+
}, null, 8, ["icon"]),
|
|
19
|
+
a(t(c), {
|
|
20
|
+
center: "",
|
|
21
|
+
tag: "span",
|
|
22
|
+
variant: "body-xs",
|
|
23
|
+
weight: "semibold",
|
|
24
|
+
color: "subtle",
|
|
25
|
+
class: "sv-empty-state__title mt-1"
|
|
26
|
+
}, {
|
|
27
|
+
default: s(() => [
|
|
28
|
+
o(e.$slots, "title")
|
|
29
|
+
]),
|
|
30
|
+
_: 3
|
|
31
|
+
}),
|
|
32
|
+
a(t(c), {
|
|
33
|
+
center: "",
|
|
34
|
+
tag: "span",
|
|
35
|
+
variant: "body-xs",
|
|
36
|
+
color: "subtle",
|
|
37
|
+
class: "sv-empty-state__message mt-1"
|
|
38
|
+
}, {
|
|
39
|
+
default: s(() => [
|
|
40
|
+
o(e.$slots, "message")
|
|
41
|
+
]),
|
|
42
|
+
_: 3
|
|
43
|
+
}),
|
|
44
|
+
n("div", f, [
|
|
45
|
+
o(e.$slots, "action")
|
|
46
|
+
])
|
|
47
|
+
])
|
|
48
|
+
]),
|
|
49
|
+
_: 3
|
|
50
|
+
}));
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
export {
|
|
54
|
+
g as _
|
|
55
|
+
};
|
package/dist/{ErrorNotification.vue.es-CKlt4hr2.mjs → ErrorNotification.vue.es-DNd65mQq.mjs}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as c, computed as m, openBlock as t, createBlock as d, mergeProps as p, withCtx as l, createElementVNode as o, toDisplayString as s, createElementBlock as _, createCommentVNode as f } from "vue";
|
|
2
|
-
import { _ as u } from "./Alert.vue.es-
|
|
3
|
-
import { a as g } from "./customElements-
|
|
2
|
+
import { _ as u } from "./Alert.vue.es-CNrEaLvh.mjs";
|
|
3
|
+
import { a as g } from "./customElements-BTj4ii4f.mjs";
|
|
4
4
|
const h = { class: "grid gap-1" }, k = { class: "font-medium" }, y = { key: 0 }, N = /* @__PURE__ */ c({
|
|
5
5
|
__name: "ErrorNotification",
|
|
6
6
|
props: {
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { defineComponent as f, computed as g, openBlock as t, createElementBlock as y, Fragment as v, renderList as k, createBlock as l, normalizeClass as o, withCtx as n, createTextVNode as i, toDisplayString as c, renderSlot as z, createCommentVNode as p } from "vue";
|
|
2
|
+
import { d as m } from "./customElements-BTj4ii4f.mjs";
|
|
3
|
+
const C = /* @__PURE__ */ f({
|
|
4
|
+
__name: "FormMessage",
|
|
5
|
+
props: {
|
|
6
|
+
message: {},
|
|
7
|
+
variant: { default: "error" },
|
|
8
|
+
capitalizeFirstLetter: { type: Boolean, default: !0 }
|
|
9
|
+
},
|
|
10
|
+
setup(e) {
|
|
11
|
+
const a = e, r = g(() => a.variant === "default" ? "secondary" : a.variant === "warning" ? "warning" : "danger");
|
|
12
|
+
return (s, F) => typeof e.message == "object" && !("value" in e.message) ? (t(!0), y(v, { key: 0 }, k(e.message, ({ $uid: u, $message: d }) => (t(), l(m, {
|
|
13
|
+
key: u,
|
|
14
|
+
variant: "body-xs",
|
|
15
|
+
color: r.value,
|
|
16
|
+
class: o({ "first-letter:capitalize": e.capitalizeFirstLetter })
|
|
17
|
+
}, {
|
|
18
|
+
default: n(() => [
|
|
19
|
+
i(c(d), 1)
|
|
20
|
+
]),
|
|
21
|
+
_: 2
|
|
22
|
+
}, 1032, ["color", "class"]))), 128)) : e.message || s.$slots.default ? (t(), l(m, {
|
|
23
|
+
key: 1,
|
|
24
|
+
variant: "body-xs",
|
|
25
|
+
color: r.value,
|
|
26
|
+
class: o({ "first-letter:capitalize": e.capitalizeFirstLetter })
|
|
27
|
+
}, {
|
|
28
|
+
default: n(() => [
|
|
29
|
+
z(s.$slots, "default", {}, () => [
|
|
30
|
+
i(c(e.message), 1)
|
|
31
|
+
])
|
|
32
|
+
]),
|
|
33
|
+
_: 3
|
|
34
|
+
}, 8, ["color", "class"])) : p("", !0);
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
export {
|
|
38
|
+
C as _
|
|
39
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as p, useAttrs as u, computed as f, openBlock as i, createBlock as a, withCtx as t, createVNode as e, mergeProps as l, createTextVNode as m, toDisplayString as _ } from "vue";
|
|
2
2
|
import { o as d } from "./object.es-8aLDIncs.mjs";
|
|
3
|
-
import { _ as x, T as y, a as B } from "./TooltipParagraph.vue.es-
|
|
4
|
-
import { _ as r } from "./Button.vue.es-
|
|
3
|
+
import { _ as x, T as y, a as B } from "./TooltipParagraph.vue.es-Dw0ndjle.mjs";
|
|
4
|
+
import { _ as r } from "./Button.vue.es-Zw--kuaU.mjs";
|
|
5
5
|
const k = {
|
|
6
6
|
inheritAttrs: !1
|
|
7
7
|
}, P = /* @__PURE__ */ p({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as f, computed as x, openBlock as s, createElementBlock as n, normalizeClass as r, createBlock as u, unref as a, createCommentVNode as i, createElementVNode as z, renderSlot as l, createTextVNode as c, toDisplayString as d, withCtx as b } from "vue";
|
|
2
2
|
import { i as g } from "./slots.es-BA4MyEAa.mjs";
|
|
3
|
-
import { a as h } from "./Button.vue.es-
|
|
4
|
-
import { _ as y } from "./Avatar.vue.es-
|
|
5
|
-
import {
|
|
3
|
+
import { a as h } from "./Button.vue.es-Zw--kuaU.mjs";
|
|
4
|
+
import { _ as y } from "./Avatar.vue.es-r0NbcIib.mjs";
|
|
5
|
+
import { d as k } from "./customElements-BTj4ii4f.mjs";
|
|
6
6
|
const v = { class: "min-w-0 grow" }, E = /* @__PURE__ */ f({
|
|
7
7
|
__name: "IconTitle",
|
|
8
8
|
props: {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { computed as t, defineComponent as G, useModel as J, toRefs as L, ref as Q, openBlock as n, createElementBlock as x, unref as a, normalizeClass as k, createBlock as I, createSlots as X, withCtx as $, createTextVNode as Y, toDisplayString as Z, createCommentVNode as b, renderSlot as
|
|
2
|
-
import { c as T,
|
|
3
|
-
import { _ as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { computed as t, defineComponent as G, useModel as J, toRefs as L, ref as Q, openBlock as n, createElementBlock as x, unref as a, normalizeClass as k, createBlock as I, createSlots as X, withCtx as $, createTextVNode as Y, toDisplayString as Z, createCommentVNode as b, renderSlot as c, createElementVNode as E, mergeProps as B, withDirectives as H, vModelDynamic as _, createVNode as ee, mergeModels as M } from "vue";
|
|
2
|
+
import { c as T, g as le } from "./cn.es-B8acFrov.mjs";
|
|
3
|
+
import { u as D, _ as ae } from "./Label.vue.es-DtpLM1KH.mjs";
|
|
4
|
+
import { _ as N } from "./FormMessage.vue.es-Cjv358Ab.mjs";
|
|
5
|
+
import { i as q } from "./useService-BZcbUZHI.mjs";
|
|
6
|
+
import { d as O } from "./customElements-BTj4ii4f.mjs";
|
|
6
7
|
const te = {
|
|
7
8
|
/**
|
|
8
9
|
* 22px, not 24px: this height lands on the inner input, which is `border-0`, while the
|
|
@@ -32,7 +33,7 @@ function se({
|
|
|
32
33
|
suffixClass: R,
|
|
33
34
|
isMultiline: V
|
|
34
35
|
}) {
|
|
35
|
-
const d = t(() => (u == null ? void 0 : u.value) ?? !1),
|
|
36
|
+
const d = t(() => (u == null ? void 0 : u.value) ?? !1), f = t(() => (h == null ? void 0 : h.value) === "checkbox"), C = t(() => (m == null ? void 0 : m.value) !== !1), l = t(() => ((y == null ? void 0 : y.value) ?? !1) && !d.value), s = t(() => e.value === "xs" || e.value === "sm"), i = t(() => ({
|
|
36
37
|
"block text-sm font-medium text-default": !0,
|
|
37
38
|
"sr-only": r == null ? void 0 : r.value
|
|
38
39
|
})), U = t(() => ({
|
|
@@ -51,11 +52,11 @@ function se({
|
|
|
51
52
|
"text-default placeholder:text-placeholder disabled:text-disabled disabled:placeholder:text-disabled block w-full border-0 focus:border-transparent focus:outline-none focus:ring-0 bg-transparent": !0,
|
|
52
53
|
"text-xs": s.value,
|
|
53
54
|
"text-sm": !s.value,
|
|
54
|
-
"p-2":
|
|
55
|
-
"px-1": !
|
|
56
|
-
"px-2": !
|
|
57
|
-
"px-4": !
|
|
58
|
-
[te[e.value]]: !
|
|
55
|
+
"p-2": f.value,
|
|
56
|
+
"px-1": !f.value && e.value === "xs",
|
|
57
|
+
"px-2": !f.value && e.value === "sm",
|
|
58
|
+
"px-4": !f.value && !s.value,
|
|
59
|
+
[te[e.value]]: !f.value && !(V != null && V.value),
|
|
59
60
|
"cursor-default": d.value
|
|
60
61
|
})), F = t(() => ({
|
|
61
62
|
"z-10 flex shrink-0 items-center": !0,
|
|
@@ -87,7 +88,7 @@ const oe = ["data-testid"], ue = { class: "relative" }, ne = { class: "relative
|
|
|
87
88
|
}, ve = {
|
|
88
89
|
key: 2,
|
|
89
90
|
class: "mt-2 text-xs text-secondary"
|
|
90
|
-
},
|
|
91
|
+
}, he = /* @__PURE__ */ G({
|
|
91
92
|
__name: "Input",
|
|
92
93
|
props: /* @__PURE__ */ M({
|
|
93
94
|
label: { default: "" },
|
|
@@ -125,7 +126,7 @@ const oe = ["data-testid"], ue = { class: "relative" }, ne = { class: "relative
|
|
|
125
126
|
y && (r.value = l.target.value);
|
|
126
127
|
}, m = u.id ?? D(`${v}-`), h = (l) => {
|
|
127
128
|
u.type === "number" && l.target.blur();
|
|
128
|
-
}, o = t(() => !q(u.error) || !!u.invalid), { wrapperClasses: w, inputClasses: g, labelClasses: S, prefixClasses: R, suffixClasses: V } = se({ ...L(u), hasError: o }), d = Q(),
|
|
129
|
+
}, o = t(() => !q(u.error) || !!u.invalid), { wrapperClasses: w, inputClasses: g, labelClasses: S, prefixClasses: R, suffixClasses: V } = se({ ...L(u), hasError: o }), d = Q(), f = (l) => {
|
|
129
130
|
var s;
|
|
130
131
|
const i = l.target;
|
|
131
132
|
i != null && i.closest("button, a, input, select, textarea") || (s = d.value) == null || s.focus();
|
|
@@ -155,14 +156,14 @@ const oe = ["data-testid"], ue = { class: "relative" }, ne = { class: "relative
|
|
|
155
156
|
key: 0,
|
|
156
157
|
message: e.error
|
|
157
158
|
}, null, 8, ["message"])) : b("", !0),
|
|
158
|
-
|
|
159
|
+
c(l.$slots, "label-suffix")
|
|
159
160
|
]),
|
|
160
161
|
key: "0"
|
|
161
162
|
} : void 0,
|
|
162
163
|
l.$slots.tooltip ? {
|
|
163
164
|
name: "tooltip",
|
|
164
165
|
fn: $(() => [
|
|
165
|
-
|
|
166
|
+
c(l.$slots, "tooltip")
|
|
166
167
|
]),
|
|
167
168
|
key: "1"
|
|
168
169
|
} : void 0
|
|
@@ -178,7 +179,7 @@ const oe = ["data-testid"], ue = { class: "relative" }, ne = { class: "relative
|
|
|
178
179
|
class: k(a(R))
|
|
179
180
|
}, {
|
|
180
181
|
default: $(() => [
|
|
181
|
-
|
|
182
|
+
c(l.$slots, "prefix")
|
|
182
183
|
]),
|
|
183
184
|
_: 3
|
|
184
185
|
}, 8, ["variant", "class"])) : b("", !0),
|
|
@@ -217,33 +218,33 @@ const oe = ["data-testid"], ue = { class: "relative" }, ne = { class: "relative
|
|
|
217
218
|
}), null, 16, de)), [
|
|
218
219
|
[_, r.value]
|
|
219
220
|
]),
|
|
220
|
-
|
|
221
|
+
c(l.$slots, "input")
|
|
221
222
|
]),
|
|
222
223
|
l.$slots.suffix ? (n(), I(O, {
|
|
223
224
|
key: 1,
|
|
224
225
|
tag: "div",
|
|
225
226
|
variant: C.value,
|
|
226
227
|
class: k(a(V)),
|
|
227
|
-
onClick:
|
|
228
|
+
onClick: f
|
|
228
229
|
}, {
|
|
229
230
|
default: $(() => [
|
|
230
|
-
|
|
231
|
+
c(l.$slots, "suffix")
|
|
231
232
|
]),
|
|
232
233
|
_: 3
|
|
233
234
|
}, 8, ["variant", "class"])) : b("", !0)
|
|
234
235
|
], 2),
|
|
235
|
-
|
|
236
|
+
c(l.$slots, "adornment-end")
|
|
236
237
|
]),
|
|
237
238
|
e.labelScreenReaderOnly && !a(q)(e.error) ? (n(), x("div", ie, [
|
|
238
239
|
ee(N, { message: e.error }, null, 8, ["message"])
|
|
239
240
|
])) : b("", !0),
|
|
240
241
|
l.$slots.helper ? (n(), x("div", ve, [
|
|
241
|
-
|
|
242
|
+
c(l.$slots, "helper")
|
|
242
243
|
])) : b("", !0)
|
|
243
244
|
], 10, oe));
|
|
244
245
|
}
|
|
245
246
|
});
|
|
246
247
|
export {
|
|
247
|
-
|
|
248
|
+
he as _,
|
|
248
249
|
se as u
|
|
249
250
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as m, openBlock as o, createBlock as d, unref as e, withCtx as t, createElementBlock as u, createElementVNode as _, createVNode as r, createTextVNode as a, toDisplayString as c, createCommentVNode as l } from "vue";
|
|
2
|
-
import { _ as k } from "./Section.vue.es-
|
|
3
|
-
import { a as h,
|
|
2
|
+
import { _ as k } from "./Section.vue.es-CvX9tg2f.mjs";
|
|
3
|
+
import { a as h, d as s } from "./customElements-BTj4ii4f.mjs";
|
|
4
4
|
import { g as f } from "./invoiceState-BJVHaKs7.mjs";
|
|
5
5
|
const b = {
|
|
6
6
|
key: 0,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as r, computed as l, openBlock as c, createBlock as s, unref as o, renderSlot as m } from "vue";
|
|
2
|
-
import { _ as p, u, a as f } from "./usePayments-
|
|
2
|
+
import { _ as p, u, a as f } from "./usePayments-BXABv-lF.mjs";
|
|
3
3
|
import { w as y } from "./invoiceState-BJVHaKs7.mjs";
|
|
4
|
-
import { _ as w } from "./ErrorNotification.vue.es-
|
|
5
|
-
import { a as _ } from "./customElements-
|
|
4
|
+
import { _ as w } from "./ErrorNotification.vue.es-DNd65mQq.mjs";
|
|
5
|
+
import { a as _ } from "./customElements-BTj4ii4f.mjs";
|
|
6
6
|
import { _ as I } from "./Skeleton.vue_vue_type_script_setup_true_lang-D7MFjvrP.mjs";
|
|
7
|
-
import { u as g } from "./useLoadInitialData-
|
|
7
|
+
import { u as g } from "./useLoadInitialData-qzdnBoui.mjs";
|
|
8
8
|
const B = /* @__PURE__ */ r({
|
|
9
9
|
__name: "InvoiceHeader",
|
|
10
10
|
props: {
|
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
import { defineComponent as w, openBlock as a, createElementBlock as d, normalizeClass as x, createVNode as l, withCtx as t, renderSlot as I, createBlock as r, createTextVNode as m, toDisplayString as f, unref as v, Fragment as h, renderList as k, resolveDynamicComponent as M, ref as W, computed as T, createElementVNode as V, createCommentVNode as y } from "vue";
|
|
2
|
+
import { d as $, a as S } from "./customElements-BTj4ii4f.mjs";
|
|
3
|
+
import { _ as z, T as A, a as E } from "./TooltipParagraph.vue.es-Dw0ndjle.mjs";
|
|
4
|
+
import { i as D } from "./useService-BZcbUZHI.mjs";
|
|
5
|
+
import { g as F } from "./getComposedString.es-C__uhJpd.mjs";
|
|
6
|
+
import { _ } from "./Amount.vue.es-DPqHB8Xd.mjs";
|
|
7
|
+
import { _ as B } from "./Divider.vue.es-DnP_HqLz.mjs";
|
|
8
|
+
import { _ as j } from "./Expand.vue.es-BleuAfDz.mjs";
|
|
9
|
+
import { a as q } from "./Button.vue.es-Zw--kuaU.mjs";
|
|
10
|
+
const p = /* @__PURE__ */ w({
|
|
11
|
+
__name: "invoicePreviewRow",
|
|
12
|
+
props: {
|
|
13
|
+
weight: { default: "normal" },
|
|
14
|
+
variant: { default: "body-xs" },
|
|
15
|
+
noSpacing: { type: Boolean, default: !1 }
|
|
16
|
+
},
|
|
17
|
+
setup(e) {
|
|
18
|
+
return (n, u) => (a(), d("div", {
|
|
19
|
+
class: x(["flex flex-row gap-2", { "py-1.5": !e.noSpacing }])
|
|
20
|
+
}, [
|
|
21
|
+
l($, {
|
|
22
|
+
tag: "span",
|
|
23
|
+
variant: e.variant,
|
|
24
|
+
class: "grow",
|
|
25
|
+
weight: e.weight
|
|
26
|
+
}, {
|
|
27
|
+
default: t(() => [
|
|
28
|
+
I(n.$slots, "label")
|
|
29
|
+
]),
|
|
30
|
+
_: 3
|
|
31
|
+
}, 8, ["variant", "weight"]),
|
|
32
|
+
l($, {
|
|
33
|
+
tag: "span",
|
|
34
|
+
variant: e.variant,
|
|
35
|
+
weight: e.weight,
|
|
36
|
+
class: "whitespace-nowrap"
|
|
37
|
+
}, {
|
|
38
|
+
default: t(() => [
|
|
39
|
+
I(n.$slots, "value")
|
|
40
|
+
]),
|
|
41
|
+
_: 3
|
|
42
|
+
}, 8, ["variant", "weight"])
|
|
43
|
+
], 2));
|
|
44
|
+
}
|
|
45
|
+
}), L = /* @__PURE__ */ w({
|
|
46
|
+
__name: "Skeleton",
|
|
47
|
+
props: {
|
|
48
|
+
widthClass: { default: "w-10" },
|
|
49
|
+
heightClass: { default: "h-3" },
|
|
50
|
+
shade: { default: "default" }
|
|
51
|
+
},
|
|
52
|
+
setup(e) {
|
|
53
|
+
return (n, u) => (a(), d("div", {
|
|
54
|
+
class: x(["rounded", [
|
|
55
|
+
e.widthClass,
|
|
56
|
+
e.heightClass,
|
|
57
|
+
{
|
|
58
|
+
"bg-gray-50/50": e.shade === "default",
|
|
59
|
+
"bg-gray-100/50": e.shade === "dark",
|
|
60
|
+
"bg-gray-200/50": e.shade === "darker",
|
|
61
|
+
"bg-gray-400/50": e.shade === "darkest"
|
|
62
|
+
}
|
|
63
|
+
]])
|
|
64
|
+
}, null, 2));
|
|
65
|
+
}
|
|
66
|
+
}), C = /* @__PURE__ */ w({
|
|
67
|
+
__name: "InvoicePreviewNoTaxesSkeleton",
|
|
68
|
+
props: {
|
|
69
|
+
widthClass: { default: "w-12" },
|
|
70
|
+
heightClass: { default: "h-5" }
|
|
71
|
+
},
|
|
72
|
+
setup(e) {
|
|
73
|
+
const { $t: n } = S();
|
|
74
|
+
return (u, o) => (a(), r(z, { "is-dark-mode": "" }, {
|
|
75
|
+
tooltip: t(() => [
|
|
76
|
+
l(A, null, {
|
|
77
|
+
default: t(() => [
|
|
78
|
+
l(E, null, {
|
|
79
|
+
default: t(() => [
|
|
80
|
+
m(f(v(n)({
|
|
81
|
+
defaultMessage: "Will be determined by billing information",
|
|
82
|
+
description: "Tooltip content for the invoice preview when taxes are not determined by billing information",
|
|
83
|
+
id: "invoice_preview.taxes_not_determined_by_billing_information_tooltip"
|
|
84
|
+
})), 1)
|
|
85
|
+
]),
|
|
86
|
+
_: 1
|
|
87
|
+
})
|
|
88
|
+
]),
|
|
89
|
+
_: 1
|
|
90
|
+
})
|
|
91
|
+
]),
|
|
92
|
+
default: t(() => [
|
|
93
|
+
l(L, {
|
|
94
|
+
"width-class": e.widthClass,
|
|
95
|
+
"height-class": e.heightClass,
|
|
96
|
+
shade: "darker"
|
|
97
|
+
}, null, 8, ["width-class", "height-class"])
|
|
98
|
+
]),
|
|
99
|
+
_: 1
|
|
100
|
+
}));
|
|
101
|
+
}
|
|
102
|
+
}), O = /* @__PURE__ */ w({
|
|
103
|
+
__name: "InvoicePreviewGroups",
|
|
104
|
+
props: {
|
|
105
|
+
invoice: {},
|
|
106
|
+
wrapperComponent: {}
|
|
107
|
+
},
|
|
108
|
+
setup(e) {
|
|
109
|
+
const n = (o) => o.groups.reduce(
|
|
110
|
+
(s, i) => i.type in s ? {
|
|
111
|
+
...s,
|
|
112
|
+
[i.type]: [...s[i.type], i]
|
|
113
|
+
} : { ...s, [i.type]: [i] },
|
|
114
|
+
{}
|
|
115
|
+
), u = (o) => {
|
|
116
|
+
var s, i, c;
|
|
117
|
+
return (s = o.pricing) != null && s.name && !D((i = o.pricing) == null ? void 0 : i.name) ? o.pricing.name : F(((c = o.products) == null ? void 0 : c.map((g) => g.name)) ?? []);
|
|
118
|
+
};
|
|
119
|
+
return (o, s) => (a(!0), d(h, null, k(e.invoice.periods, (i, c) => (a(), d(h, { key: c }, [
|
|
120
|
+
(a(!0), d(h, null, k(Object.entries(n(i)), ([g, P]) => (a(), d(h, { key: g }, [
|
|
121
|
+
(a(!0), d(h, null, k(P, (b, N) => (a(), r(M(e.wrapperComponent ?? "div"), { key: N }, {
|
|
122
|
+
default: t(() => [
|
|
123
|
+
l(p, {
|
|
124
|
+
"no-spacing": e.wrapperComponent !== void 0
|
|
125
|
+
}, {
|
|
126
|
+
label: t(() => [
|
|
127
|
+
m(f(u(b)), 1)
|
|
128
|
+
]),
|
|
129
|
+
value: t(() => [
|
|
130
|
+
l(_, {
|
|
131
|
+
value: b.amount_excluding_tax
|
|
132
|
+
}, null, 8, ["value"])
|
|
133
|
+
]),
|
|
134
|
+
_: 2
|
|
135
|
+
}, 1032, ["no-spacing"])
|
|
136
|
+
]),
|
|
137
|
+
_: 2
|
|
138
|
+
}, 1024))), 128))
|
|
139
|
+
], 64))), 128))
|
|
140
|
+
], 64))), 128));
|
|
141
|
+
}
|
|
142
|
+
}), R = { class: "flex flex-col" }, ee = /* @__PURE__ */ w({
|
|
143
|
+
__name: "InvoicePreview",
|
|
144
|
+
props: {
|
|
145
|
+
invoice: {},
|
|
146
|
+
trialInvoice: {},
|
|
147
|
+
isCustomerFacing: { type: Boolean, default: !1 },
|
|
148
|
+
variant: { default: "default" },
|
|
149
|
+
isPaid: { type: Boolean, default: !1 },
|
|
150
|
+
collapsible: { default: void 0 },
|
|
151
|
+
isPreviewWithoutTaxes: { type: Boolean }
|
|
152
|
+
},
|
|
153
|
+
setup(e) {
|
|
154
|
+
const n = e, { $t: u } = S(), o = W(n.collapsible !== void 0 ? n.collapsible !== "expanded" : !1), s = T(() => n.collapsible !== void 0), i = T(() => !!n.trialInvoice), c = T(
|
|
155
|
+
() => n.trialInvoice ? n.trialInvoice.tax_summary.total_amount : n.invoice.tax_summary.total_amount
|
|
156
|
+
), g = () => {
|
|
157
|
+
s.value && (o.value = !o.value);
|
|
158
|
+
};
|
|
159
|
+
return (P, b) => (a(), d("div", R, [
|
|
160
|
+
l(j, {
|
|
161
|
+
"is-open": !o.value,
|
|
162
|
+
lazy: ""
|
|
163
|
+
}, {
|
|
164
|
+
default: t(() => [
|
|
165
|
+
V("div", null, [
|
|
166
|
+
i.value ? (a(), r($, {
|
|
167
|
+
key: 0,
|
|
168
|
+
variant: "caps-heading"
|
|
169
|
+
}, {
|
|
170
|
+
default: t(() => [
|
|
171
|
+
m(f(v(u)({
|
|
172
|
+
id: "invoice_preview.after_trial_heading",
|
|
173
|
+
defaultMessage: "After trial",
|
|
174
|
+
description: "After trial heading for the invoice preview"
|
|
175
|
+
})), 1)
|
|
176
|
+
]),
|
|
177
|
+
_: 1
|
|
178
|
+
})) : y("", !0),
|
|
179
|
+
e.variant !== "without-products" ? (a(), d(h, { key: 1 }, [
|
|
180
|
+
l(O, { invoice: e.invoice }, null, 8, ["invoice"]),
|
|
181
|
+
l(B, { spacing: "xxs" })
|
|
182
|
+
], 64)) : y("", !0),
|
|
183
|
+
l(p, null, {
|
|
184
|
+
label: t(() => [
|
|
185
|
+
m(f(v(u)({
|
|
186
|
+
id: "invoice_preview.total_excluding_taxes_heading",
|
|
187
|
+
defaultMessage: "Total excluding taxes",
|
|
188
|
+
description: "Total excluding taxes heading for the invoice preview"
|
|
189
|
+
})), 1)
|
|
190
|
+
]),
|
|
191
|
+
value: t(() => [
|
|
192
|
+
l(_, {
|
|
193
|
+
value: e.invoice.tax_summary.base_amount
|
|
194
|
+
}, null, 8, ["value"])
|
|
195
|
+
]),
|
|
196
|
+
_: 1
|
|
197
|
+
}),
|
|
198
|
+
l(p, null, {
|
|
199
|
+
label: t(() => [
|
|
200
|
+
m(f(v(u)({
|
|
201
|
+
id: "invoice_preview.taxes_heading",
|
|
202
|
+
defaultMessage: "Taxes",
|
|
203
|
+
description: "Taxes heading for the invoice preview"
|
|
204
|
+
})), 1)
|
|
205
|
+
]),
|
|
206
|
+
value: t(() => [
|
|
207
|
+
e.isPreviewWithoutTaxes ? (a(), r(C, {
|
|
208
|
+
key: 0,
|
|
209
|
+
"width-class": "w-10",
|
|
210
|
+
"height-class": "h-4"
|
|
211
|
+
})) : (a(), r(_, {
|
|
212
|
+
key: 1,
|
|
213
|
+
value: e.invoice.tax_summary.tax_amount
|
|
214
|
+
}, null, 8, ["value"]))
|
|
215
|
+
]),
|
|
216
|
+
_: 1
|
|
217
|
+
}),
|
|
218
|
+
i.value ? (a(), r(p, { key: 2 }, {
|
|
219
|
+
label: t(() => [
|
|
220
|
+
m(f(v(u)({
|
|
221
|
+
id: "invoice_preview.total_including_taxes_heading",
|
|
222
|
+
defaultMessage: "Total including taxes",
|
|
223
|
+
description: "Total including taxes heading for the invoice preview"
|
|
224
|
+
})), 1)
|
|
225
|
+
]),
|
|
226
|
+
value: t(() => [
|
|
227
|
+
e.isPreviewWithoutTaxes ? (a(), r(C, {
|
|
228
|
+
key: 0,
|
|
229
|
+
"width-class": "w-10",
|
|
230
|
+
"height-class": "h-4"
|
|
231
|
+
})) : (a(), r(_, {
|
|
232
|
+
key: 1,
|
|
233
|
+
value: e.invoice.tax_summary.total_amount
|
|
234
|
+
}, null, 8, ["value"]))
|
|
235
|
+
]),
|
|
236
|
+
_: 1
|
|
237
|
+
})) : y("", !0),
|
|
238
|
+
l(B, { spacing: "xxs" })
|
|
239
|
+
])
|
|
240
|
+
]),
|
|
241
|
+
_: 1
|
|
242
|
+
}, 8, ["is-open"]),
|
|
243
|
+
(a(), r(M(s.value ? "button" : "div"), {
|
|
244
|
+
class: x({ "text-left hover:cursor-pointer": s.value }),
|
|
245
|
+
onClick: g
|
|
246
|
+
}, {
|
|
247
|
+
default: t(() => [
|
|
248
|
+
l(p, {
|
|
249
|
+
weight: "semibold",
|
|
250
|
+
variant: "body-sm"
|
|
251
|
+
}, {
|
|
252
|
+
label: t(() => [
|
|
253
|
+
m(f(e.isPaid ? v(u)({
|
|
254
|
+
id: "invoice_preview.total_paid_heading",
|
|
255
|
+
defaultMessage: "Total paid",
|
|
256
|
+
description: "Total paid heading for the invoice preview"
|
|
257
|
+
}) : v(u)({
|
|
258
|
+
id: "invoice_preview.total_due_today_heading",
|
|
259
|
+
defaultMessage: "Total due today",
|
|
260
|
+
description: "Total due today heading for the invoice preview"
|
|
261
|
+
})) + " ", 1),
|
|
262
|
+
s.value ? (a(), r(q, {
|
|
263
|
+
key: 0,
|
|
264
|
+
size: "xs",
|
|
265
|
+
icon: "keyboard_arrow_down",
|
|
266
|
+
class: x(["text-gray-400 transition ease-in-out", { "rotate-0": o.value, "rotate-180": !o.value }])
|
|
267
|
+
}, null, 8, ["class"])) : y("", !0)
|
|
268
|
+
]),
|
|
269
|
+
value: t(() => [
|
|
270
|
+
e.isPreviewWithoutTaxes && (!i.value || i.value && c.value.quantity !== "0.00") ? (a(), r(C, { key: 0 })) : (a(), r(_, {
|
|
271
|
+
key: 1,
|
|
272
|
+
value: c.value
|
|
273
|
+
}, null, 8, ["value"]))
|
|
274
|
+
]),
|
|
275
|
+
_: 1
|
|
276
|
+
})
|
|
277
|
+
]),
|
|
278
|
+
_: 1
|
|
279
|
+
}, 8, ["class"]))
|
|
280
|
+
]));
|
|
281
|
+
}
|
|
282
|
+
});
|
|
283
|
+
export {
|
|
284
|
+
ee as _,
|
|
285
|
+
L as a
|
|
286
|
+
};
|