@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,7 +1,7 @@
|
|
|
1
1
|
import { A as e } from "./ApiStatus-CSFKl_ra.mjs";
|
|
2
|
-
import { g as q } from "./api.es-
|
|
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-
|
|
4
|
+
import { t as w } from "./customElements-BTj4ii4f.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-
|
|
3
|
-
import { c as l } from "./payments-
|
|
2
|
+
import { c as f } from "./invoices-e1sKLgxg.mjs";
|
|
3
|
+
import { c as l } from "./payments-BnxbzQUC.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-
|
|
3
|
-
import { a as Q,
|
|
2
|
+
import { _ as ve } from "./Section.vue.es-CvX9tg2f.mjs";
|
|
3
|
+
import { a as Q, d as U } from "./customElements-BTj4ii4f.mjs";
|
|
4
4
|
import { _ as fe } from "./Amount.vue.es-DPqHB8Xd.mjs";
|
|
5
|
-
import { a as R, _ as F } from "./Button.vue.es-
|
|
6
|
-
import { _ as V } from "./Chip.vue.es-
|
|
7
|
-
import { _ as me } from "./ErrorNotification.vue.es-
|
|
8
|
-
import { _ as _e, T as be, a as he } from "./TooltipParagraph.vue.es-
|
|
9
|
-
import { _ as pe } from "./
|
|
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";
|
|
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-
|
|
11
|
+
import { u as ke } from "./useActionDispatchProvider-3W2vEyIg.mjs";
|
|
12
12
|
import { r as Ce } from "./configuration-BytDBAWs.mjs";
|
|
13
|
-
import { u as $e } from "./useIncrementalLoading-
|
|
14
|
-
import { c as Le } from "./invoices-
|
|
13
|
+
import { u as $e } from "./useIncrementalLoading-CATuO36d.mjs";
|
|
14
|
+
import { c as Le } from "./invoices-e1sKLgxg.mjs";
|
|
15
15
|
const Ie = Symbol.for("solvimon-ui:navigation"), xe = {
|
|
16
16
|
resolve: (t) => typeof t == "string" ? t : void 0
|
|
17
17
|
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { ref as p, watch as y, computed as F } from "vue";
|
|
2
|
+
const P = (e, a) => {
|
|
3
|
+
const o = e.__vccOpts || e;
|
|
4
|
+
for (const [n, l] of a)
|
|
5
|
+
o[n] = l;
|
|
6
|
+
return o;
|
|
7
|
+
}, S = () => import("./floating-ui.vue.es-BvAf8-si.mjs").then(
|
|
8
|
+
({ autoUpdate: e, computePosition: a, flip: o, offset: n, shift: l, size: s }) => ({
|
|
9
|
+
autoUpdate: e,
|
|
10
|
+
computePosition: a,
|
|
11
|
+
flip: o,
|
|
12
|
+
offset: n,
|
|
13
|
+
shift: l,
|
|
14
|
+
size: s
|
|
15
|
+
})
|
|
16
|
+
);
|
|
17
|
+
let m;
|
|
18
|
+
const x = () => m ?? (m = S().catch((e) => {
|
|
19
|
+
throw m = void 0, e;
|
|
20
|
+
})), w = () => x().catch(() => {
|
|
21
|
+
});
|
|
22
|
+
function U(e, a, o) {
|
|
23
|
+
const n = p(0), l = p(0), s = p(o.placement ?? "bottom"), c = p(!1);
|
|
24
|
+
return y(e, (t) => {
|
|
25
|
+
t == null || t.addEventListener("pointerenter", w, { once: !0 }), t == null || t.addEventListener("focusin", w, { once: !0 });
|
|
26
|
+
}), y(
|
|
27
|
+
[e, a],
|
|
28
|
+
([t, r], i, d) => {
|
|
29
|
+
if (c.value = !1, !t || !r) return;
|
|
30
|
+
let u, v = !1;
|
|
31
|
+
d(() => {
|
|
32
|
+
v = !0, u == null || u();
|
|
33
|
+
}), x().then((f) => {
|
|
34
|
+
if (v) return;
|
|
35
|
+
const _ = o.middleware(f);
|
|
36
|
+
u = f.autoUpdate(
|
|
37
|
+
t,
|
|
38
|
+
r,
|
|
39
|
+
() => f.computePosition(t, r, {
|
|
40
|
+
placement: o.placement,
|
|
41
|
+
middleware: _
|
|
42
|
+
}).then((h) => {
|
|
43
|
+
v || (n.value = h.x, l.value = h.y, s.value = h.placement, c.value = !0);
|
|
44
|
+
})
|
|
45
|
+
);
|
|
46
|
+
}).catch(() => {
|
|
47
|
+
v || (c.value = !0);
|
|
48
|
+
});
|
|
49
|
+
},
|
|
50
|
+
{ flush: "sync" }
|
|
51
|
+
), { floatingStyles: F(() => {
|
|
52
|
+
var t;
|
|
53
|
+
const r = { position: "absolute", left: "0", top: "0" };
|
|
54
|
+
if (!a.value) return r;
|
|
55
|
+
const i = ((t = a.value.ownerDocument.defaultView) == null ? void 0 : t.devicePixelRatio) || 1, d = (u) => Math.round(u * i) / i;
|
|
56
|
+
return {
|
|
57
|
+
...r,
|
|
58
|
+
transform: `translate(${d(n.value)}px, ${d(l.value)}px)`,
|
|
59
|
+
...i >= 1.5 && { willChange: "transform" },
|
|
60
|
+
// Opacity rather than visibility: keyboard handlers focus an option before it is positioned.
|
|
61
|
+
...!c.value && { opacity: 0 }
|
|
62
|
+
};
|
|
63
|
+
}), placement: s };
|
|
64
|
+
}
|
|
65
|
+
export {
|
|
66
|
+
P as _,
|
|
67
|
+
U as u
|
|
68
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ref as r, onMounted as i } from "vue";
|
|
2
|
+
import { e as n } from "./customElements-BTj4ii4f.mjs";
|
|
3
|
+
function u(...e) {
|
|
4
|
+
const a = r(!0), o = n();
|
|
5
|
+
return i(async () => {
|
|
6
|
+
await Promise.all(e).then(() => {
|
|
7
|
+
a.value = !1;
|
|
8
|
+
}).catch((t) => {
|
|
9
|
+
a.value = !1, o.error("INITIAL_DATA_LOAD_FAILED", "Failed to load initial data", {}, t);
|
|
10
|
+
});
|
|
11
|
+
}), { isLoading: a };
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
u
|
|
15
|
+
};
|
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import { t as T } from "./amount-CondixVt.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
2
|
+
import { f as R } from "./paymentMethods-Nfv9HdkS.mjs";
|
|
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";
|
|
5
|
+
const N = /* @__PURE__ */ new Set(["https:", "http:"]);
|
|
5
6
|
function a(e, t = window.location.search) {
|
|
6
7
|
return new URLSearchParams(t).get(e);
|
|
7
8
|
}
|
|
8
|
-
function
|
|
9
|
+
function P(e) {
|
|
9
10
|
try {
|
|
10
11
|
const t = new URL(e);
|
|
11
|
-
return
|
|
12
|
+
return N.has(t.protocol) ? e : "";
|
|
12
13
|
} catch {
|
|
13
14
|
return "";
|
|
14
15
|
}
|
|
15
16
|
}
|
|
16
17
|
function D(e) {
|
|
17
|
-
const t =
|
|
18
|
+
const t = P(e);
|
|
18
19
|
t && window.location.replace(t);
|
|
19
20
|
}
|
|
20
|
-
const i = "payment_acceptor_id", c = "redirectResult", o = "redirect_status", _ = "payment_intent_client_secret", f = "setup_intent_client_secret",
|
|
21
|
+
const i = "payment_acceptor_id", c = "redirectResult", o = "redirect_status", _ = "payment_intent_client_secret", f = "setup_intent_client_secret", p = [
|
|
21
22
|
i,
|
|
22
23
|
c,
|
|
23
24
|
o,
|
|
@@ -25,22 +26,22 @@ const i = "payment_acceptor_id", c = "redirectResult", o = "redirect_status", _
|
|
|
25
26
|
_,
|
|
26
27
|
"setup_intent",
|
|
27
28
|
f
|
|
28
|
-
],
|
|
29
|
+
], U = /^[A-Za-z0-9+/=_!.-]{1,16384}$/, y = /^[a-z_]{1,64}$/, E = {
|
|
29
30
|
PAYMENT: /^pi_[A-Za-z0-9]+_secret_[A-Za-z0-9]+$/,
|
|
30
31
|
SETUP: /^seti_[A-Za-z0-9]+_secret_[A-Za-z0-9]+$/
|
|
31
32
|
};
|
|
32
33
|
function M() {
|
|
33
34
|
return !!a(i) && (!!a(c) || !!a(o));
|
|
34
35
|
}
|
|
35
|
-
function
|
|
36
|
+
function F(e) {
|
|
36
37
|
const t = a(c);
|
|
37
38
|
if (!t) return;
|
|
38
39
|
const n = a(i);
|
|
39
40
|
if (!n) return { kind: "MISSING_PAYMENT_ACCEPTOR" };
|
|
40
41
|
if (n === e)
|
|
41
|
-
return
|
|
42
|
+
return U.test(t) ? { kind: "RESULT", redirectResult: t } : { kind: "INVALID" };
|
|
42
43
|
}
|
|
43
|
-
function
|
|
44
|
+
function O(e) {
|
|
44
45
|
if (a(i) !== e) return;
|
|
45
46
|
const t = a(o);
|
|
46
47
|
if (!t || !y.test(t)) return;
|
|
@@ -54,19 +55,10 @@ function F(e) {
|
|
|
54
55
|
return E.SETUP.test(r) ? { redirectStatus: t, intent: "SETUP", clientSecret: r } : void 0;
|
|
55
56
|
}
|
|
56
57
|
function G() {
|
|
57
|
-
const e = new URL(window.location.href), t =
|
|
58
|
+
const e = new URL(window.location.href), t = p.filter((n) => e.searchParams.has(n));
|
|
58
59
|
t.length && (t.forEach((n) => e.searchParams.delete(n)), window.history.replaceState(window.history.state, "", e.toString()));
|
|
59
60
|
}
|
|
60
|
-
const U = ["applepay"];
|
|
61
61
|
function w(e) {
|
|
62
|
-
return e.filter(
|
|
63
|
-
(t) => !U.some((n) => {
|
|
64
|
-
var r;
|
|
65
|
-
return n === ((r = t.type) == null ? void 0 : r.toLowerCase());
|
|
66
|
-
})
|
|
67
|
-
);
|
|
68
|
-
}
|
|
69
|
-
function h(e) {
|
|
70
62
|
var t, n;
|
|
71
63
|
return (n = (t = e.integration.payment_gateway) == null ? void 0 : t.adyen) == null ? void 0 : n.public_key;
|
|
72
64
|
}
|
|
@@ -75,14 +67,14 @@ function l(e) {
|
|
|
75
67
|
return ((t = e.options) == null ? void 0 : t.filter(
|
|
76
68
|
(n) => n.payment_gateway_variant === "ADYEN"
|
|
77
69
|
).flatMap(
|
|
78
|
-
(n) =>
|
|
70
|
+
(n) => h(n.adyen)
|
|
79
71
|
)) ?? [];
|
|
80
72
|
}
|
|
81
73
|
function b(e, { excludeExpressPaymentMethods: t = !1 } = {}) {
|
|
82
74
|
const n = l(e);
|
|
83
|
-
return t ?
|
|
75
|
+
return t ? R(n) : n;
|
|
84
76
|
}
|
|
85
|
-
function
|
|
77
|
+
function h(e) {
|
|
86
78
|
return {
|
|
87
79
|
type: e.type,
|
|
88
80
|
name: e.name,
|
|
@@ -99,7 +91,7 @@ function V({
|
|
|
99
91
|
const n = new URL(t);
|
|
100
92
|
return n.searchParams.set(i, e), n.toString();
|
|
101
93
|
}
|
|
102
|
-
function
|
|
94
|
+
function C(e, t) {
|
|
103
95
|
var r, s;
|
|
104
96
|
const n = (s = (r = e == null ? void 0 : e.integration.payment_gateway) == null ? void 0 : r.adyen) == null ? void 0 : s.environment;
|
|
105
97
|
if (!n)
|
|
@@ -139,9 +131,9 @@ function z({
|
|
|
139
131
|
...e ? { amount: T(e) } : {},
|
|
140
132
|
...u ? { onSubmit: u } : {},
|
|
141
133
|
analytics: { enabled: !1 },
|
|
142
|
-
clientKey:
|
|
134
|
+
clientKey: w(r),
|
|
143
135
|
countryCode: t,
|
|
144
|
-
environment:
|
|
136
|
+
environment: C(
|
|
145
137
|
r,
|
|
146
138
|
s
|
|
147
139
|
),
|
|
@@ -154,17 +146,17 @@ function z({
|
|
|
154
146
|
function Q(e) {
|
|
155
147
|
return e ? Object.fromEntries(Object.entries(e).map(([t, n]) => [t, String(n)])) : void 0;
|
|
156
148
|
}
|
|
157
|
-
const k = () =>
|
|
149
|
+
const k = () => d(A);
|
|
158
150
|
function x(e) {
|
|
159
|
-
const t =
|
|
160
|
-
return
|
|
151
|
+
const t = m(!1);
|
|
152
|
+
return I(
|
|
161
153
|
e,
|
|
162
154
|
(n) => {
|
|
163
155
|
n || (t.value = !1);
|
|
164
156
|
},
|
|
165
157
|
{ flush: "sync" }
|
|
166
158
|
), {
|
|
167
|
-
isFormHeld:
|
|
159
|
+
isFormHeld: S(() => e.value && !t.value),
|
|
168
160
|
handleActionRequired: () => {
|
|
169
161
|
t.value = !0;
|
|
170
162
|
}
|
|
@@ -172,17 +164,17 @@ function x(e) {
|
|
|
172
164
|
}
|
|
173
165
|
export {
|
|
174
166
|
k as a,
|
|
175
|
-
|
|
167
|
+
C as b,
|
|
176
168
|
G as c,
|
|
177
|
-
|
|
169
|
+
w as d,
|
|
178
170
|
V as e,
|
|
179
|
-
|
|
171
|
+
O as f,
|
|
180
172
|
b as g,
|
|
181
173
|
M as h,
|
|
182
|
-
|
|
174
|
+
P as i,
|
|
183
175
|
z as j,
|
|
184
176
|
a as k,
|
|
185
|
-
|
|
177
|
+
F as r,
|
|
186
178
|
D as s,
|
|
187
179
|
Q as t,
|
|
188
180
|
x as u
|
package/dist/{usePaymentMethodAvailability-CnYTvG15.mjs → usePaymentMethodAvailability-DUdrs0Ji.mjs}
RENAMED
|
@@ -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,
|
|
3
|
-
import { _ as T } from "./PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { h as O } from "./PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import { a as V } from "./usePaymentFormHold-
|
|
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";
|
|
6
6
|
const S = { class: "flex flex-col items-center gap-4" }, H = /* @__PURE__ */ y({
|
|
7
7
|
__name: "PaymentMethodsUnavailableCard",
|
|
8
8
|
props: {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { u as s } from "./useIncrementalLoading-CATuO36d.mjs";
|
|
2
|
+
import { c as a } from "./paymentMethods-B_82JGk_.mjs";
|
|
3
|
+
const m = {
|
|
4
|
+
orderBy: "default",
|
|
5
|
+
orderDirection: "desc"
|
|
6
|
+
};
|
|
7
|
+
function u({
|
|
8
|
+
customerId: e,
|
|
9
|
+
pageSize: t = 15,
|
|
10
|
+
order: o
|
|
11
|
+
}) {
|
|
12
|
+
const { getPaymentMethods: r } = a();
|
|
13
|
+
return s({ service: async (n) => r({
|
|
14
|
+
customerId: e,
|
|
15
|
+
pagination: { page: n, pageSize: t, ...o }
|
|
16
|
+
}) });
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
m as D,
|
|
20
|
+
u
|
|
21
|
+
};
|
|
@@ -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,
|
|
3
|
-
import { _ as B } from "./IconTitle.vue.es-
|
|
4
|
-
import { _ as P } from "./Chip.vue.es-
|
|
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";
|
|
5
5
|
import { a as x } from "./formatting.es-RclXHhKo.mjs";
|
|
6
|
-
import {
|
|
7
|
-
import { _ as $ } from "./Button.vue.es-
|
|
8
|
-
import { _ as k } from "./FormMessage.vue.es-
|
|
9
|
-
import { c as U } from "./invoices-
|
|
10
|
-
import { u as T } from "./useService-
|
|
11
|
-
import { c as M } from "./payments-
|
|
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";
|
|
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,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-
|
|
3
|
+
import { t as h } from "./customElements-BTj4ii4f.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
|
}
|
|
@@ -49,8 +49,8 @@ function D({
|
|
|
49
49
|
}, apiStatus: r, isPending: m, error: u };
|
|
50
50
|
}
|
|
51
51
|
export {
|
|
52
|
-
|
|
52
|
+
j as a,
|
|
53
53
|
d,
|
|
54
|
-
|
|
54
|
+
C as i,
|
|
55
55
|
D as u
|
|
56
56
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solvimon/solvimon-web",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.29",
|
|
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": {
|
|
@@ -162,14 +162,14 @@
|
|
|
162
162
|
"@formatjs/cli": "^6.6.1",
|
|
163
163
|
"@formatjs/icu-messageformat-parser": "^2.11.4",
|
|
164
164
|
"@formatjs/intl": "^3.1.8",
|
|
165
|
-
"@playwright/test": "^1.
|
|
166
|
-
"@solvimon/solvimon-types": "^1.
|
|
167
|
-
"@solvimon/solvimon-ui": "^1.
|
|
165
|
+
"@playwright/test": "^1.64.1",
|
|
166
|
+
"@solvimon/solvimon-types": "^1.10.0",
|
|
167
|
+
"@solvimon/solvimon-ui": "^1.23.2",
|
|
168
168
|
"@stripe/stripe-js": "^9.8.0",
|
|
169
169
|
"@types/node": "^22.10.2",
|
|
170
170
|
"@typescript-eslint/parser": "^8.46.2",
|
|
171
171
|
"@vitejs/plugin-vue": "^5.2.3",
|
|
172
|
-
"@vitest/coverage-v8": "^4.1.
|
|
172
|
+
"@vitest/coverage-v8": "^4.1.12",
|
|
173
173
|
"@vue/eslint-config-prettier": "^10.2.0",
|
|
174
174
|
"@vue/eslint-config-typescript": "^14.6.0",
|
|
175
175
|
"@vue/language-core": "^3.1.5",
|
|
@@ -194,10 +194,10 @@
|
|
|
194
194
|
"prettier-plugin-tailwindcss": "^0.8.0",
|
|
195
195
|
"tailwindcss": "^3.4.17",
|
|
196
196
|
"typescript": "~5.6.3",
|
|
197
|
-
"vite": "^6.4.
|
|
197
|
+
"vite": "^6.4.5",
|
|
198
198
|
"vite-bundle-visualizer": "^1.2.1",
|
|
199
199
|
"vite-plugin-dts": "^5.1.2",
|
|
200
|
-
"vitest": "^4.1.
|
|
200
|
+
"vitest": "^4.1.12",
|
|
201
201
|
"vitest-localstorage-mock": "^0.1.2",
|
|
202
202
|
"vue": "^3.5.43",
|
|
203
203
|
"vue-tsc": "^3.1.5"
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { defineComponent as u, computed as d, openBlock as g, createElementBlock as h, withDirectives as y, createElementVNode as o, mergeProps as k, withModifiers as f, unref as s, isRef as v, vModelCheckbox as x, normalizeClass as p, toDisplayString as z } from "vue";
|
|
2
|
-
import { u as C } from "./index.es-CXkP_k3u.mjs";
|
|
3
|
-
const M = { class: "flex items-center gap-1 border-0 py-0" }, S = ["id", "name", "disabled", "value"], V = ["for"], D = /* @__PURE__ */ u({
|
|
4
|
-
__name: "Checkbox",
|
|
5
|
-
props: {
|
|
6
|
-
modelValue: { type: Boolean },
|
|
7
|
-
label: {},
|
|
8
|
-
id: {},
|
|
9
|
-
name: {},
|
|
10
|
-
value: {},
|
|
11
|
-
disabled: { type: Boolean },
|
|
12
|
-
size: { default: "md" }
|
|
13
|
-
},
|
|
14
|
-
setup(e) {
|
|
15
|
-
const t = e, a = C(t, "modelValue"), i = {
|
|
16
|
-
sm: "size-2",
|
|
17
|
-
md: "size-4"
|
|
18
|
-
}, r = d(() => i[t.size]), n = {
|
|
19
|
-
sm: "text-xs",
|
|
20
|
-
md: "text-sm"
|
|
21
|
-
}, c = d(() => n[t.size]);
|
|
22
|
-
return (m, l) => (g(), h("label", M, [
|
|
23
|
-
y(o("input", k({ id: e.id }, m.$attrs, {
|
|
24
|
-
"onUpdate:modelValue": l[0] || (l[0] = (b) => v(a) ? a.value = b : null),
|
|
25
|
-
name: e.name,
|
|
26
|
-
disabled: e.disabled,
|
|
27
|
-
value: e.value,
|
|
28
|
-
type: "checkbox",
|
|
29
|
-
class: ["rounded accent-primary-600 checked:bg-primary-600 checked:hover:bg-primary-700", {
|
|
30
|
-
"border border-gray-300 checked:border-gray-300 checked:bg-gray-400 checked:hover:bg-gray-500": e.disabled,
|
|
31
|
-
"bg-gray-100": e.disabled && !s(a),
|
|
32
|
-
"bg-gray-300 text-primary-600": !e.disabled && s(a),
|
|
33
|
-
"cursor-pointer": !e.disabled,
|
|
34
|
-
[r.value]: !0
|
|
35
|
-
}],
|
|
36
|
-
onClickCapture: l[1] || (l[1] = f(() => {
|
|
37
|
-
}, ["stop"]))
|
|
38
|
-
}), null, 16, S), [
|
|
39
|
-
[x, s(a)]
|
|
40
|
-
]),
|
|
41
|
-
o("span", {
|
|
42
|
-
for: e.id,
|
|
43
|
-
class: p(["leading-tight", { [c.value]: !0 }])
|
|
44
|
-
}, z(e.label), 11, V)
|
|
45
|
-
]));
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
export {
|
|
49
|
-
D as _
|
|
50
|
-
};
|