@solvimon/solvimon-web 0.1.0-alpha.27 → 0.1.0-alpha.28
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 +126 -17
- package/dist/ApiStatus-CSFKl_ra.mjs +9 -0
- package/dist/{Avatar.vue.es-sfMZiX7A.mjs → Avatar.vue.es-Beg7umjO.mjs} +1 -1
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-DmY3a-Wi.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-DBGe1PvD.mjs} +15 -16
- package/dist/{Button.vue.es-Cmjfm4jw.mjs → Button.vue.es-rh6mITmN.mjs} +1 -1
- package/dist/{ChargeOnDemandModal-CB4mrvkU.mjs → ChargeOnDemandModal-CPjPa_uq.mjs} +235 -247
- package/dist/Checkbox.vue.es-DsyiJ-VY.mjs +50 -0
- package/dist/Checkout.entry.ce-BZ1rYQvt.mjs +5279 -0
- package/dist/{Chip.vue.es-DksjbJO8.mjs → Chip.vue.es-Cn2R_0mE.mjs} +34 -20
- package/dist/Comparators.vue.es-DQBI3f7m.mjs +103 -0
- package/dist/{ContextMenu.vue.es-zRvoEJlV.mjs → ContextMenu.vue.es-DRxsa7bZ.mjs} +4 -4
- package/dist/{CustomerBillingInformation.vue.es-DhFbpZPK.mjs → CustomerBillingInformation.vue.es-DQfL5RMR.mjs} +2 -2
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-B41la-T7.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Ct-eYaEN.mjs} +33 -37
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BzTSwo4i.mjs +2921 -0
- package/dist/{DividerText.vue.es-nAo1eRMV.mjs → DividerText.vue.es-M0XqSz55.mjs} +1 -1
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-Bk4zwyWa.mjs +362 -0
- package/dist/{ErrorNotification.vue.es-h-D37rfG.mjs → ErrorNotification.vue.es-CKlt4hr2.mjs} +1 -1
- package/dist/{IconButton.vue.es-DvfErUOq.mjs → IconButton.vue.es-oe4MVBK1.mjs} +2 -2
- package/dist/{IconTitle.vue.es-B_8bS0tn.mjs → IconTitle.vue.es-BO6KBS4v.mjs} +3 -3
- package/dist/Input.vue.es-DAlPmtE_.mjs +249 -0
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-gpMtYNzn.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-CCTl5GWa.mjs} +14 -13
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-DMGqj_Uk.mjs +56 -0
- package/dist/{InvoiceSummary.vue.es-CRiFJ5x-.mjs → InvoiceSummary.vue.es-DbNoGfYN.mjs} +9 -9
- package/dist/{Modal.vue.es-BeI5C9-9.mjs → Modal.vue.es-CTNACAst.mjs} +5 -5
- package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-DqHcOnZp.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-DLfAfB_m.mjs} +72 -73
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DlqoWKQq.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-CKm-XYuF.mjs} +3 -3
- package/dist/{PaymentHistoryBlock-mCqdFjnL.mjs → PaymentHistoryBlock-BmA8jbMb.mjs} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DxaY3eFN.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BDMse2lO.mjs} +24 -24
- package/dist/{PaymentIntegrationForm-DVx4DEtD.mjs → PaymentIntegrationForm-D1Xw-xIt.mjs} +1 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CCxw0PCv.mjs +182 -0
- package/dist/{PaymentIntegrationFormAdyen-Yr8p5Fly.mjs → PaymentIntegrationFormAdyen-CfT5aD4L.mjs} +395 -293
- package/dist/PaymentIntegrationFormStripe-DKXJ-mjd.mjs +743 -0
- package/dist/{PaymentMethod.vue.es-4YRmQZHX.mjs → PaymentMethod.vue.es-Cauxx4Xr.mjs} +3 -3
- package/dist/{PaymentMethodForm-Dnj_7mJU.mjs → PaymentMethodForm-CypZOYUZ.mjs} +1 -1
- package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-DsD3UjkC.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-De8FgdYD.mjs} +57 -65
- package/dist/PaymentMethodSelector.vue_vue_type_script_setup_true_lang-Dw28tfpD.mjs +168 -0
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-CjECKNi_.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-OtjVO7lR.mjs} +13 -8
- package/dist/PlanCustomizationEditor-Xtww2r9K.mjs +711 -0
- package/dist/PortalNotAvailable-B_59GUwN.mjs +25 -0
- package/dist/{PricingGroupRangeInput.vue.es-BhNcjD7z.mjs → PricingGroupRangeInput.vue.es-C9LJW3b8.mjs} +5 -5
- package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CmJITenR.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DdWxoB8q.mjs} +30 -30
- package/dist/{RadioGroupExtended.vue.es-9YzXzZF0.mjs → RadioGroupExtended.vue.es-UtKsdmiv.mjs} +2 -2
- package/dist/{Section.vue.es-DVEpre9O.mjs → Section.vue.es-iS8hVGWA.mjs} +1 -1
- package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-xzjqB-v-.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Djc1SkEU.mjs} +13 -12
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-D7MFjvrP.mjs +32 -0
- package/dist/{StepInput.vue.es-o-3Lg4Ai.mjs → StepInput.vue.es-Dpan1RQd.mjs} +5 -4
- package/dist/{SubscriptionDetails.entry.ce-CGl6Z5ql.mjs → SubscriptionDetails.entry.ce-DufQX3uI.mjs} +451 -468
- package/dist/{SubscriptionSchedules-DuWZmnD2.mjs → SubscriptionSchedules-DAahcNoI.mjs} +1 -1
- package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-C1kTiW-H.mjs → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DNr1CqVj.mjs} +750 -763
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-Wmjqy7RZ.mjs +203 -0
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-BsdevoeT.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BeRLuEyR.mjs} +123 -88
- package/dist/{TooltipParagraph.vue.es-B9A17aG7.mjs → TooltipParagraph.vue.es-BjCn2BF6.mjs} +1 -1
- package/dist/{TrialChip.vue.es-Dmv3lPiQ.mjs → TrialChip.vue.es-B-XBSHWE.mjs} +2 -2
- package/dist/addressFormats.data-dzBx49dw.mjs +278 -0
- package/dist/amount-CondixVt.mjs +36 -0
- package/dist/{cn.es-Cvt6TIwv.mjs → cn.es-2bVdkiFV.mjs} +87 -83
- package/dist/{comparators.es-D8WGL-c4.mjs → comparators.es-C8rHpb70.mjs} +17 -13
- package/dist/components/BillingInformation/BillingInformation.mjs +7 -8
- package/dist/components/BillingInformationForm/BillingInformationForm.mjs +394 -350
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +16 -17
- package/dist/components/Invoice/Invoice.mjs +206 -209
- package/dist/components/InvoiceDetails/InvoiceDetails.mjs +64 -62
- package/dist/components/InvoiceHeader/InvoiceHeader.mjs +40 -41
- package/dist/components/InvoicesList/InvoicesList.mjs +14 -14
- package/dist/components/PaymentHistory/PaymentHistory.mjs +70 -64
- package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +31 -31
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +47 -45
- package/dist/components/SubscriptionsList/SubscriptionsList.mjs +50 -36
- package/dist/components/WalletBalances/WalletBalances.mjs +9 -10
- package/dist/core/index.mjs +61 -95
- package/dist/customElements-Di3zwlEU.mjs +6447 -0
- package/dist/customer-CqddTiOr.mjs +31 -0
- package/dist/{de-DE-jkW2dJrX.mjs → de-DE-BNMj3boy.mjs} +16 -10
- package/dist/{de-DE-DKp5LCu0.mjs → de-DE-BW8dMvhW.mjs} +72 -18
- package/dist/formControl-CsITfsBk.mjs +749 -0
- package/dist/index.mjs +2 -2
- package/dist/invoiceState-BJVHaKs7.mjs +14 -0
- package/dist/{invoices-3520M5AN.mjs → invoices-Cf1qDAv4.mjs} +40 -35
- package/dist/{it-IT-BgFVsO5S.mjs → it-IT-Byg06KWc.mjs} +72 -18
- package/dist/{it-IT-CaaFToGB.mjs → it-IT-DRvuxM1F.mjs} +9 -3
- package/dist/{nl-NL-D0MQKaql.mjs → nl-NL-DLUwWbMG.mjs} +12 -6
- package/dist/{nl-NL-UiRWbO9S.mjs → nl-NL-x3zQqzZ7.mjs} +78 -24
- package/dist/paymentMethods-BUuOmDq9.mjs +77 -0
- package/dist/paymentOutcome-D17VD4MV.mjs +67 -0
- package/dist/payments-Ci8bF4C6.mjs +45 -0
- package/dist/pricingItemConfigs.es-D3pX_9AJ.mjs +78 -0
- package/dist/pricingPlanScheduleOverrides-COr9F8DO.mjs +233 -0
- package/dist/pricingPlanSchedules-BK_o9p6h.mjs +38 -0
- package/dist/sanitization.es-C6dbuxUJ.mjs +4 -0
- package/dist/screens/Checkout/Checkout.mjs +2 -2
- package/dist/screens/CustomerOverview/CustomerOverview.mjs +98 -91
- package/dist/screens/PayInvoice/PayInvoice.mjs +181 -210
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +98 -86
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +2 -2
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +363 -334
- package/dist/sessionReference-B8Dbmx5t.mjs +38 -0
- package/dist/sorting.es-qtEN8J8T.mjs +77 -0
- package/dist/subscription-BhxoqwcT.mjs +83 -0
- package/dist/subscriptions-CwogJODR.mjs +54 -0
- package/dist/types/components/InvoiceTable/InvoiceTable.types.d.ts +2 -0
- package/dist/types/components/checkout/PromotionCodeSection.types.d.ts +2 -0
- package/dist/types/components/customer/CheckoutForm/CheckoutAddressFields.types.d.ts +20 -0
- package/dist/types/components/customer/CheckoutForm/CheckoutForm.types.d.ts +15 -0
- package/dist/types/components/customer/CustomerPaymentMethodsBlock/CustomerPaymentMethodsBlock.types.d.ts +0 -2
- package/dist/types/components/payments/OnDemandPaymentModalShell/OnDemandPaymentModalShell.types.d.ts +0 -1
- package/dist/types/components/payments/PaymentCompletedCard/PaymentCompletedCard.types.d.ts +0 -2
- package/dist/types/components/payments/PaymentErrorCard/PaymentErrorCard.types.d.ts +9 -2
- package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +36 -4
- package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripeFrame.types.d.ts +7 -0
- package/dist/types/components/payments/PaymentMethodSelector/PaymentMethodSelector.types.d.ts +0 -4
- package/dist/types/components/providers/AuthProvider/AuthProvider.lib.d.ts +9 -4
- package/dist/types/components/providers/AuthProvider/composables/useAuth.d.ts +1 -3
- package/dist/types/components/providers/ConfigProvider/ConfigProvider.lib.d.ts +2 -4
- package/dist/types/components/providers/CssOverridesProvider/CssOverridesProvider.lib.d.ts +11 -0
- package/dist/types/components/providers/EntryProvider/EntryProvider.lib.d.ts +7 -0
- package/dist/types/components/providers/EntryProvider/EntryProvider.types.d.ts +2 -0
- package/dist/types/components/providers/EntryProvider/EntryProvider.vue.d.ts +3 -1
- package/dist/types/components/providers/ErrorBoundary/ErrorBoundary.vue.d.ts +5 -1
- package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.lib.d.ts +2 -2
- package/dist/types/components/providers/HostElementProvider/HostElementProvider.lib.d.ts +6 -1
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +2 -2
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.vue.d.ts +5 -1
- package/dist/types/components/providers/PortalProvider/PortalProvider.lib.d.ts +10 -7
- package/dist/types/components/providers/PortalProvider/PortalProvider.types.d.ts +1 -1
- package/dist/types/components/providers/PortalProvider/PortalProvider.vue.d.ts +3 -1
- package/dist/types/components/providers/PortalProvider/composables/usePortal.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 +11 -4
- package/dist/types/components/providers/RequiredPropertiesGuard/RequiredPropertiesGuard.vue.d.ts +17 -0
- package/dist/types/components/providers/TranslationProvider/TranslationProvider.lib.d.ts +7 -2
- package/dist/types/components/providers/TranslationProvider/TranslationProvider.types.d.ts +1 -1
- package/dist/types/components/subscriptions/ChargeOnDemandModal/ChargeOnDemandModal.types.d.ts +1 -2
- package/dist/types/components/subscriptions/EnabledPricingsList/EnabledPricingsListItem.types.d.ts +2 -0
- package/dist/types/components/subscriptions/OrderSummary.types.d.ts +1 -10
- package/dist/types/components/subscriptions/SubscriptionCancellationModal/SubscriptionCancellationModal.types.d.ts +5 -1
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +8 -16
- package/dist/types/components/subscriptions/SubscriptionSummary.types.d.ts +1 -14
- package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsList.types.d.ts +4 -1
- package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsListItem.types.d.ts +1 -2
- package/dist/types/components/wallets/AutoTopUpConfig/AutoTopUpConfig.types.d.ts +0 -3
- package/dist/types/components/wallets/TopUpModal/TopUpModalForm.types.d.ts +3 -1
- package/dist/types/components/wallets/TopUpModal/TopUpModalSuccess.types.d.ts +1 -7
- package/dist/types/public/components/BillingInformation/BillingInformation.entry.ce.d.ts +1 -1
- package/dist/types/public/components/BillingInformation/BillingInformation.types.d.ts +0 -3
- package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.ce.d.ts +1 -1
- package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.entry.ce.d.ts +1 -1
- package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.types.d.ts +0 -1
- package/dist/types/public/components/Invoice/Invoice.entry.ce.d.ts +1 -1
- package/dist/types/public/components/Invoice/Invoice.types.d.ts +0 -1
- package/dist/types/public/components/InvoiceDetails/InvoiceDetails.entry.ce.d.ts +1 -1
- package/dist/types/public/components/InvoiceDetails/InvoiceDetails.entry.types.d.ts +3 -2
- package/dist/types/public/components/InvoiceDetails/InvoiceDetails.types.d.ts +0 -2
- package/dist/types/public/components/InvoiceHeader/InvoiceHeader.entry.ce.d.ts +1 -1
- package/dist/types/public/components/InvoiceHeader/InvoiceHeader.types.d.ts +0 -1
- package/dist/types/public/components/InvoicesList/InvoicesList.entry.ce.d.ts +1 -1
- package/dist/types/public/components/InvoicesList/InvoicesList.types.d.ts +2 -0
- package/dist/types/public/components/PaymentHistory/PaymentHistory.entry.ce.d.ts +1 -1
- package/dist/types/public/components/PaymentHistory/PaymentHistory.entry.types.d.ts +3 -2
- package/dist/types/public/components/PaymentHistory/PaymentHistory.types.d.ts +0 -2
- package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.ce.d.ts +1 -1
- package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.entry.ce.d.ts +1 -1
- package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.entry.types.d.ts +3 -2
- package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.types.d.ts +0 -2
- package/dist/types/public/components/SubscriptionsList/SubscriptionsList.entry.ce.d.ts +1 -1
- package/dist/types/public/components/SubscriptionsList/SubscriptionsList.types.d.ts +3 -0
- package/dist/types/public/components/WalletBalances/WalletBalances.entry.ce.d.ts +1 -1
- package/dist/types/public/components/WalletBalances/WalletBalances.entry.types.d.ts +1 -3
- package/dist/types/public/core/action-request.types.d.ts +5 -0
- package/dist/types/public/core/registry.ce.d.ts +3 -3
- package/dist/types/public/core/registry.d.ts +0 -3
- package/dist/types/public/screens/Checkout/Checkout.entry.ce.d.ts +1 -1
- package/dist/types/public/screens/Checkout/Checkout.entry.types.d.ts +0 -7
- package/dist/types/public/screens/Checkout/Checkout.types.d.ts +2 -2
- package/dist/types/public/screens/CustomerOverview/CustomerOverview.entry.ce.d.ts +1 -1
- package/dist/types/public/screens/PayInvoice/PayInvoice.entry.ce.d.ts +1 -1
- package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +2 -0
- package/dist/types/public/screens/PaymentMethodsManagement/PaymentMethodsManagement.entry.ce.d.ts +1 -1
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.entry.ce.d.ts +1 -1
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.types.d.ts +1 -2
- package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.entry.ce.d.ts +1 -1
- package/dist/types/services/paymentMethods.types.d.ts +2 -10
- package/dist/types/services/requests.types.d.ts +16 -6
- package/dist/types/types/errors.d.ts +3 -2
- package/dist/types/vendor/@adyen/adyen-web/index.d.ts +2 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Payment.d.ts +1 -1
- package/dist/types/vendor/@solvimon/solvimon-types/utils.d.ts +1 -1
- package/dist/types/vendor/@solvimon/solvimon-ui/components/providers/BrandProvider/BrandProvider.types.d.ts +16 -0
- package/dist/types/vendor/@solvimon/solvimon-ui/components/providers/IntlProvider/IntlProvider.types.d.ts +66 -0
- package/dist/types/vendor/@solvimon/solvimon-ui/index.d.ts +2 -0
- package/dist/useActionDispatchProvider-DC_fUykI.mjs +9 -0
- package/dist/{useCustomer-B-jyJIVy.mjs → useCustomer-C3kTh7wn.mjs} +2 -2
- package/dist/useCustomerFormLabels-CK7K50nB.mjs +1369 -0
- package/dist/useIncrementalLoading-C_sHmW7d.mjs +60 -0
- package/dist/useInvoiceData-BIh8-h8b.mjs +21 -0
- package/dist/useInvoicesList-Y6p0Pqpy.mjs +674 -0
- package/dist/{useLoadInitialData-D9GkzY8t.mjs → useLoadInitialData-4k_Cyqef.mjs} +1 -1
- package/dist/usePaymentFormHold-FfNc578l.mjs +189 -0
- package/dist/{usePaymentMethodAvailability-DAcsKGeh.mjs → usePaymentMethodAvailability-CnYTvG15.mjs} +8 -8
- package/dist/usePaymentMethodOptions-1QBcmgUf.mjs +40 -0
- package/dist/{usePaymentMethods-CbwnGONc.mjs → usePaymentMethods-gvr-rmwE.mjs} +2 -2
- package/dist/{usePayments-Cr6NlGaW.mjs → usePayments-CykCZPG2.mjs} +7 -7
- package/dist/usePortal-CxzKGhbK.mjs +7 -0
- package/dist/useService-B0OQJmif.mjs +56 -0
- package/dist/{useTimePeriod.es-DWLsLFqs.mjs → useTimePeriod.es-JkXdHNWr.mjs} +1 -1
- package/dist/useViewport-psZejz_H.mjs +19 -0
- package/package.json +28 -55
- package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-081H9T3X.js +0 -1
- package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DNepCMRp.mjs +0 -223
- package/dist/Alert.vue.es-RyK53a2P.js +0 -1
- package/dist/Amount.vue.es-DExaYBqm.js +0 -1
- package/dist/Avatar.vue.es-BJxSCU76.js +0 -1
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-BV5iEOxn.js +0 -1
- package/dist/Button.vue.es-BzkuglKw.js +0 -1
- package/dist/ChargeOnDemandModal-b17YswWA.js +0 -1
- package/dist/Checkout.entry.ce-HlUrJ1kh.js +0 -2
- package/dist/Checkout.entry.ce-X2zGo6hG.mjs +0 -4381
- package/dist/Chip.vue.es-B2jjzIOc.js +0 -1
- package/dist/Comparators.vue.es-CwhX3rbx.mjs +0 -93
- package/dist/Comparators.vue.es-DmkxV0gb.js +0 -1
- package/dist/ContentWithAsideLayout-RSdKXqAf.js +0 -1
- package/dist/ContextMenu.vue.es-DUU43tCy.js +0 -1
- package/dist/CustomerBillingInformation.vue.es-BfPEB42w.js +0 -1
- package/dist/CustomerPaymentMethods.lib-BKgQTCtc.js +0 -1
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BISD6n8X.js +0 -1
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DssxYPSA.mjs +0 -2688
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-XufY6bdV.js +0 -1
- package/dist/Divider.vue.es-UwnWvUTl.js +0 -1
- package/dist/DividerText.vue.es-CoyDk9eH.js +0 -1
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CQ0KrXHJ.js +0 -1
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-QW9NdxyZ.mjs +0 -335
- package/dist/ErrorNotification.vue.es-tS9vySUZ.js +0 -1
- package/dist/Expand.vue.es-BtM0EZEr.js +0 -1
- package/dist/FormMessage.vue.es-dqATjC2N.js +0 -1
- package/dist/IconButton.vue.es-DgQN18Am.js +0 -1
- package/dist/IconTitle.vue.es-Dn2xcPHj.js +0 -1
- package/dist/Input.vue.es-B60eK8Ds.js +0 -1
- package/dist/Input.vue.es-CU9u5yKH.mjs +0 -235
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Dqdezse7.js +0 -1
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-Cl6HU243.js +0 -1
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-DNqawlYV.mjs +0 -41
- package/dist/InvoiceSummary.vue.es-CAmA8g0t.js +0 -1
- package/dist/Modal.vue.es-DvLB3uCG.js +0 -1
- package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-Dg4rn1cm.js +0 -1
- package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-B9R5JRJv.js +0 -1
- package/dist/PaymentHistoryBlock-Uw8xeKUk.js +0 -1
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-ALI5f0py.js +0 -1
- package/dist/PaymentIntegrationForm-Cx0zCf_C.js +0 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-B-viSd_i.js +0 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CCKCXXZX.mjs +0 -154
- package/dist/PaymentIntegrationFormAdyen-B-v-4nlj.js +0 -98
- package/dist/PaymentIntegrationFormStripe-CoLmAzas.js +0 -102
- package/dist/PaymentIntegrationFormStripe-Ds0BXt89.mjs +0 -587
- package/dist/PaymentMethod.vue.es-D0D9jW8s.js +0 -1
- package/dist/PaymentMethodForm-CMP5FLRO.js +0 -1
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-nxnGyJmE.js +0 -1
- package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-CIrrQUS6.js +0 -1
- package/dist/PlanCustomizationEditor-DS1r2vBO.js +0 -1
- package/dist/PlanCustomizationEditor-DlVSCKGN.mjs +0 -722
- package/dist/PricingGroupRangeInput.vue.es-VoOTnHjk.js +0 -185
- package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-hS6A-KcP.js +0 -1
- package/dist/RadioGroupExtended.vue.es-DlbURHQN.js +0 -1
- package/dist/Section.vue.es-Bbt0RITt.js +0 -1
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Dl7MbMlk.js +0 -1
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-CJWE7wVi.mjs +0 -41
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-otI7Hz2w.js +0 -1
- package/dist/StepInput.vue.es-H-3R4jJq.js +0 -1
- package/dist/SubscriptionDetails.entry.ce-CQUO_uXH.js +0 -1
- package/dist/SubscriptionSchedules-Dy0fUgx5.js +0 -1
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-Dd_Rr6qn.js +0 -1
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-CYyP4ra9.js +0 -1
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-CsekphtV.mjs +0 -91
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-B4j8Clbj.js +0 -1
- package/dist/TooltipParagraph.vue.es-DvC5Wjaz.js +0 -1
- package/dist/TrialChip.vue.es-CLQZ5F0n.js +0 -1
- package/dist/accel.svg.es-DFJXdioD.js +0 -1
- package/dist/ach.svg.es-BYP873jU.js +0 -1
- package/dist/adyen-BJfC7N6f.js +0 -1
- package/dist/adyenSdk-BP2XXzeJ.js +0 -1
- package/dist/amazon-pay.svg.es-CQWgtowB.js +0 -1
- package/dist/amex.svg.es-DKhW4Txt.js +0 -1
- package/dist/api.es-duCDtZD9.js +0 -1
- package/dist/apple-pay.svg.es-Dyojd0F-.js +0 -1
- package/dist/bacs.svg.es-GJpZs1sD.js +0 -1
- package/dist/bancontact.svg.es-BQh7nAup.js +0 -1
- package/dist/carnet.svg.es-DY04-F2L.js +0 -1
- package/dist/cartes-bancaires.svg.es-BleHMlkN.js +0 -1
- package/dist/cashapp.svg.es-MwXGYom6.js +0 -1
- package/dist/cn.es-C9Yqq4tg.js +0 -1
- package/dist/comparators.es-OGt19O9U.js +0 -1
- package/dist/components/BillingInformation/BillingInformation.cjs +0 -1
- package/dist/components/BillingInformationForm/BillingInformationForm.cjs +0 -1
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs +0 -1
- package/dist/components/Invoice/Invoice.cjs +0 -1
- package/dist/components/InvoiceDetails/InvoiceDetails.cjs +0 -1
- package/dist/components/InvoiceHeader/InvoiceHeader.cjs +0 -1
- package/dist/components/InvoicesList/InvoicesList.cjs +0 -1
- package/dist/components/PaymentHistory/PaymentHistory.cjs +0 -1
- package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs +0 -1
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs +0 -1
- package/dist/components/SubscriptionsList/SubscriptionsList.cjs +0 -1
- package/dist/components/WalletBalances/WalletBalances.cjs +0 -1
- package/dist/configuration-akTS7Wiw.js +0 -1
- package/dist/core/index.cjs +0 -1
- package/dist/countryData.es-C4jHBzfo.js +0 -1
- package/dist/customElements-B58FcXIN.mjs +0 -6633
- package/dist/customElements-DUMRMFQ5.js +0 -1215
- package/dist/customer-B3LPAhaD.mjs +0 -31
- package/dist/customer-CisTPaXj.js +0 -1
- package/dist/customer.es-BButyYo0.js +0 -1
- package/dist/dana.svg.es-BDtZLpwd.js +0 -1
- package/dist/dankort.svg.es-CksaipXF.js +0 -1
- package/dist/de-DE-B4TUdnUf.js +0 -1
- package/dist/de-DE-DL74pMLb.js +0 -1
- package/dist/diners.svg.es-D6Mu1pqP.js +0 -1
- package/dist/discover.svg.es-DgqWCMUM.js +0 -1
- package/dist/eftpos.svg.es-Dk2DOT8W.js +0 -1
- package/dist/elo.svg.es-C-BzjuRP.js +0 -1
- package/dist/en-US-B2XFj-_p.js +0 -1
- package/dist/en-US-DQ5vlv9Z.mjs +0 -339
- package/dist/en-US-J85TQRI8.js +0 -1
- package/dist/en-US-SDhjlY_v.mjs +0 -301
- package/dist/eps.svg.es-B_85bP-W.js +0 -1
- package/dist/error-BHVZJGwD.mjs +0 -13
- package/dist/error-CmduqgVq.js +0 -1
- package/dist/floating-ui.vue.es-Bly3DGWm.js +0 -1
- package/dist/formControl-ODrpUvcA.js +0 -1
- package/dist/formControl-dX7l8o3c.mjs +0 -845
- package/dist/formatting.es-C72Nsrmh.js +0 -1
- package/dist/gcash.svg.es-BKAdhWzv.js +0 -1
- package/dist/getComposedString.es-haS4bAj7.js +0 -1
- package/dist/getCountryNameByCode.es-Xxc0nZsH.js +0 -1
- package/dist/girocard.svg.es-HSOEvDif.js +0 -1
- package/dist/go-pay.svg.es-DQjtunZ_.js +0 -1
- package/dist/google-pay.svg.es-hzc_EgiJ.js +0 -1
- package/dist/hipercard.svg.es-CbCsRY2q.js +0 -1
- package/dist/icon-sprite.svg.es-Ds6lDf5p.js +0 -1
- package/dist/ideal.svg.es-Booz1IML.js +0 -1
- package/dist/index-BPZPnOQQ.js +0 -7
- package/dist/index.cjs +0 -1
- package/dist/index.es-BclokHQX.js +0 -1
- package/dist/invoices-CKQBLar2.js +0 -1
- package/dist/it-IT-CSYvGmpT.js +0 -1
- package/dist/it-IT-CqNK62qe.js +0 -1
- package/dist/jcb.svg.es-B3WPB8c2.js +0 -1
- package/dist/kakao-pay.svg.es-Cs-lCW74.js +0 -1
- package/dist/klarna.svg.es-Cs6XaHD7.js +0 -1
- package/dist/maestro.svg.es-BvK4oPg4.js +0 -1
- package/dist/mastercard.svg.es-lp4AXyyV.js +0 -1
- package/dist/momo.svg.es-C5aLYf_R.js +0 -1
- package/dist/nl-NL-CpE4IgwO.js +0 -1
- package/dist/nl-NL-Dx-TNXQ1.js +0 -1
- package/dist/nyce.svg.es-ArAivAZW.js +0 -1
- package/dist/object.es-CdriXMPs.js +0 -1
- package/dist/open-banking.svg.es-Q3rRkCvP.js +0 -1
- package/dist/paymentFailure-Bh60UhxA.mjs +0 -47
- package/dist/paymentFailure-Cki8c5BX.js +0 -1
- package/dist/paymentMethods-CWlvwK5V.mjs +0 -77
- package/dist/paymentMethods-Cw-i95mM.js +0 -1
- package/dist/payments-2qeQdpiW.mjs +0 -45
- package/dist/payments-CS7_YcOW.js +0 -1
- package/dist/paypal.svg.es-Cjp5sNI3.js +0 -1
- package/dist/pricing-BIMpDI_p.mjs +0 -29
- package/dist/pricing-BOqG21f9.js +0 -1
- package/dist/pricing.es-C07bgEZx.js +0 -1
- package/dist/pricingItemConfigs.es-D4aYkYcf.js +0 -1
- package/dist/pricingItemConfigs.es-ORxsk_YS.mjs +0 -77
- package/dist/pricingPlanSchedule-BM8vsKkV.js +0 -1
- package/dist/pricingPlanSchedules-B_sTAIgU.js +0 -1
- package/dist/pricingPlanSchedules-ChQCbMfe.mjs +0 -32
- package/dist/pulse.svg.es-Dit33E8S.js +0 -1
- package/dist/screens/Checkout/Checkout.cjs +0 -1
- package/dist/screens/CustomerOverview/CustomerOverview.cjs +0 -1
- package/dist/screens/PayInvoice/PayInvoice.cjs +0 -1
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs +0 -1
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs +0 -1
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs +0 -1
- package/dist/sepa.svg.es-0t4DKeA1.js +0 -1
- package/dist/sessionReference-3h-6FdrC.mjs +0 -43
- package/dist/sessionReference-m_6Rp4X1.js +0 -1
- package/dist/slots.es-T9ZJRGtG.js +0 -1
- package/dist/sorting.es-DCihKqD2.mjs +0 -77
- package/dist/sorting.es-DQsjKr8A.js +0 -1
- package/dist/star.svg.es-D2JncY7b.js +0 -1
- package/dist/subscription-D1yHKUNc.mjs +0 -69
- package/dist/subscription-ZA62t4E9.js +0 -1
- package/dist/subscriptions-DcfcBYAq.mjs +0 -55
- package/dist/subscriptions-DwVsf4Ev.js +0 -1
- package/dist/trustly.svg.es-GJByiFAs.js +0 -1
- package/dist/twint.svg.es-BJ2f48og.js +0 -1
- package/dist/typeGuards.es-DS3vZaJn.js +0 -1
- package/dist/types/components/payments/AddPaymentMethodModal/AddPaymentMethodModal.types.d.ts +0 -14
- package/dist/types/components/payments/SubscriptionPaymentCompletedCard/SubscriptionPaymentCompletedCard.types.d.ts +0 -3
- package/dist/types/components/subscriptions/PlanCustomizationForm/AddonSingleEditor.types.d.ts +0 -5
- package/dist/types/services/portals.types.d.ts +0 -70
- package/dist/types/types/subscription.d.ts +0 -4
- package/dist/unionpay.svg.es-DjFZ5EMQ.js +0 -1
- package/dist/url-TNRgVI8A.mjs +0 -21
- package/dist/url-vloPOiXd.js +0 -1
- package/dist/useActionDispatchProvider-B3AvkLL2.mjs +0 -11
- package/dist/useActionDispatchProvider-DFhppdve.js +0 -1
- package/dist/useCustomer-BwZKd9i5.js +0 -1
- package/dist/useCustomerFormLabels-BQk3d9PZ.mjs +0 -968
- package/dist/useCustomerFormLabels-DV9QiMYh.js +0 -1
- package/dist/useExperimentalFeature-BciA3Ok9.mjs +0 -135
- package/dist/useExperimentalFeature-CGIkgFR4.js +0 -1
- package/dist/useIncrementalLoading-CaWOE8Xl.js +0 -1
- package/dist/useIncrementalLoading-Cgxw2GD7.mjs +0 -48
- package/dist/useInvoiceData-BocKdeg7.mjs +0 -38
- package/dist/useInvoiceData-CNV_FMV8.js +0 -1
- package/dist/useInvoicesList-C8nsXMJ6.mjs +0 -500
- package/dist/useInvoicesList-S0IbQcrD.js +0 -1
- package/dist/useLoadInitialData-D_R6Jy1s.js +0 -1
- package/dist/usePaymentMethodAvailability-BO_guwAw.js +0 -1
- package/dist/usePaymentMethodOptions-1vRAo6Ib.mjs +0 -39
- package/dist/usePaymentMethodOptions-CuzOoi2k.js +0 -1
- package/dist/usePaymentMethods-DDaTZQZp.js +0 -1
- package/dist/usePayments-DDSjo0rH.js +0 -1
- package/dist/usePortal-C27omjhz.js +0 -1
- package/dist/usePortal-C5AsegpS.mjs +0 -11
- package/dist/useService-Bh47bllz.mjs +0 -50
- package/dist/useService-H7BjLg8P.js +0 -1
- package/dist/useSubscription-BZJL0VOA.mjs +0 -210
- package/dist/useSubscription-D787IXY-.js +0 -1
- package/dist/useTimePeriod.es-rzxqUCTu.js +0 -1
- package/dist/useViewport-BgdA2PPt.mjs +0 -29
- package/dist/useViewport-hPRVDWCm.js +0 -1
- package/dist/useWatchDebounced-B8iX7ykx.js +0 -1
- package/dist/useWatchDebounced-BHlBPcXB.mjs +0 -20
- package/dist/visa.svg.es-NY3BHhda.js +0 -1
- package/dist/vpay.svg.es-VViQi42w.js +0 -1
- package/dist/wallets.es-CNIMW5ay.js +0 -1
- package/dist/zip.svg.es-C9S_F31W.js +0 -1
|
@@ -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 { _ as D } from "./customElements-
|
|
2
|
+
import { _ as D } from "./customElements-Di3zwlEU.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,362 @@
|
|
|
1
|
+
import { defineComponent as g, openBlock as n, createElementBlock as m, normalizeClass as T, createVNode as o, withCtx as i, renderSlot as x, createBlock as c, createTextVNode as f, toDisplayString as _, unref as v, Fragment as p, renderList as $, resolveDynamicComponent as N, ref as z, computed as P, createElementVNode as S, createCommentVNode as k } from "vue";
|
|
2
|
+
import { _ as b, a as I } from "./customElements-Di3zwlEU.mjs";
|
|
3
|
+
import { _ as D, T as E, a as O } from "./TooltipParagraph.vue.es-BjCn2BF6.mjs";
|
|
4
|
+
import { a as F } from "./useService-B0OQJmif.mjs";
|
|
5
|
+
import { g as V } from "./getComposedString.es-C__uhJpd.mjs";
|
|
6
|
+
import { _ as y } 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 A } from "./Button.vue.es-rh6mITmN.mjs";
|
|
10
|
+
import { _ as q } from "./Section.vue.es-iS8hVGWA.mjs";
|
|
11
|
+
const w = /* @__PURE__ */ g({
|
|
12
|
+
__name: "invoicePreviewRow",
|
|
13
|
+
props: {
|
|
14
|
+
weight: { default: "normal" },
|
|
15
|
+
variant: { default: "body-xs" },
|
|
16
|
+
noSpacing: { type: Boolean, default: !1 }
|
|
17
|
+
},
|
|
18
|
+
setup(e) {
|
|
19
|
+
return (a, s) => (n(), m("div", {
|
|
20
|
+
class: T(["flex flex-row gap-2", { "py-1.5": !e.noSpacing }])
|
|
21
|
+
}, [
|
|
22
|
+
o(b, {
|
|
23
|
+
tag: "span",
|
|
24
|
+
variant: e.variant,
|
|
25
|
+
class: "grow",
|
|
26
|
+
weight: e.weight
|
|
27
|
+
}, {
|
|
28
|
+
default: i(() => [
|
|
29
|
+
x(a.$slots, "label")
|
|
30
|
+
]),
|
|
31
|
+
_: 3
|
|
32
|
+
}, 8, ["variant", "weight"]),
|
|
33
|
+
o(b, {
|
|
34
|
+
tag: "span",
|
|
35
|
+
variant: e.variant,
|
|
36
|
+
weight: e.weight
|
|
37
|
+
}, {
|
|
38
|
+
default: i(() => [
|
|
39
|
+
x(a.$slots, "value")
|
|
40
|
+
]),
|
|
41
|
+
_: 3
|
|
42
|
+
}, 8, ["variant", "weight"])
|
|
43
|
+
], 2));
|
|
44
|
+
}
|
|
45
|
+
}), L = /* @__PURE__ */ g({
|
|
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 (a, s) => (n(), m("div", {
|
|
54
|
+
class: T(["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
|
+
}), M = /* @__PURE__ */ g({
|
|
67
|
+
__name: "InvoicePreviewNoTaxesSkeleton",
|
|
68
|
+
props: {
|
|
69
|
+
widthClass: { default: "w-12" },
|
|
70
|
+
heightClass: { default: "h-5" }
|
|
71
|
+
},
|
|
72
|
+
setup(e) {
|
|
73
|
+
const { $t: a } = I();
|
|
74
|
+
return (s, r) => (n(), c(D, { "is-dark-mode": "" }, {
|
|
75
|
+
tooltip: i(() => [
|
|
76
|
+
o(E, null, {
|
|
77
|
+
default: i(() => [
|
|
78
|
+
o(O, null, {
|
|
79
|
+
default: i(() => [
|
|
80
|
+
f(_(v(a)({
|
|
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: i(() => [
|
|
93
|
+
o(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
|
+
}), R = /* @__PURE__ */ g({
|
|
103
|
+
__name: "InvoicePreviewGroups",
|
|
104
|
+
props: {
|
|
105
|
+
invoice: {},
|
|
106
|
+
wrapperComponent: {}
|
|
107
|
+
},
|
|
108
|
+
setup(e) {
|
|
109
|
+
const a = (r) => r.groups.reduce(
|
|
110
|
+
(u, l) => l.type in u ? {
|
|
111
|
+
...u,
|
|
112
|
+
[l.type]: [...u[l.type], l]
|
|
113
|
+
} : { ...u, [l.type]: [l] },
|
|
114
|
+
{}
|
|
115
|
+
), s = (r) => {
|
|
116
|
+
var u, l, t;
|
|
117
|
+
return (u = r.pricing) != null && u.name && !F((l = r.pricing) == null ? void 0 : l.name) ? r.pricing.name : V(((t = r.products) == null ? void 0 : t.map((d) => d.name)) ?? []);
|
|
118
|
+
};
|
|
119
|
+
return (r, u) => (n(!0), m(p, null, $(e.invoice.periods, (l, t) => (n(), m(p, { key: t }, [
|
|
120
|
+
(n(!0), m(p, null, $(Object.entries(a(l)), ([d, h]) => (n(), m(p, { key: d }, [
|
|
121
|
+
(n(!0), m(p, null, $(h, (C, W) => (n(), c(N(e.wrapperComponent ?? "div"), { key: W }, {
|
|
122
|
+
default: i(() => [
|
|
123
|
+
o(w, {
|
|
124
|
+
"no-spacing": e.wrapperComponent !== void 0
|
|
125
|
+
}, {
|
|
126
|
+
label: i(() => [
|
|
127
|
+
f(_(s(C)), 1)
|
|
128
|
+
]),
|
|
129
|
+
value: i(() => [
|
|
130
|
+
o(y, {
|
|
131
|
+
value: C.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
|
+
}), H = { class: "flex flex-col" }, le = /* @__PURE__ */ g({
|
|
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 a = e, { $t: s } = I(), r = z(a.collapsible !== void 0 ? a.collapsible !== "expanded" : !1), u = P(() => a.collapsible !== void 0), l = P(() => !!a.trialInvoice), t = P(
|
|
155
|
+
() => a.trialInvoice ? a.trialInvoice.tax_summary.total_amount : a.invoice.tax_summary.total_amount
|
|
156
|
+
), d = () => {
|
|
157
|
+
u.value && (r.value = !r.value);
|
|
158
|
+
};
|
|
159
|
+
return (h, C) => (n(), m("div", H, [
|
|
160
|
+
o(j, {
|
|
161
|
+
"is-open": !r.value,
|
|
162
|
+
lazy: ""
|
|
163
|
+
}, {
|
|
164
|
+
default: i(() => [
|
|
165
|
+
S("div", null, [
|
|
166
|
+
l.value ? (n(), c(b, {
|
|
167
|
+
key: 0,
|
|
168
|
+
variant: "caps-heading"
|
|
169
|
+
}, {
|
|
170
|
+
default: i(() => [
|
|
171
|
+
f(_(v(s)({
|
|
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
|
+
})) : k("", !0),
|
|
179
|
+
e.variant !== "without-products" ? (n(), m(p, { key: 1 }, [
|
|
180
|
+
o(R, { invoice: e.invoice }, null, 8, ["invoice"]),
|
|
181
|
+
o(B, { spacing: "xxs" })
|
|
182
|
+
], 64)) : k("", !0),
|
|
183
|
+
o(w, null, {
|
|
184
|
+
label: i(() => [
|
|
185
|
+
f(_(v(s)({
|
|
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: i(() => [
|
|
192
|
+
o(y, {
|
|
193
|
+
value: e.invoice.tax_summary.base_amount
|
|
194
|
+
}, null, 8, ["value"])
|
|
195
|
+
]),
|
|
196
|
+
_: 1
|
|
197
|
+
}),
|
|
198
|
+
o(w, null, {
|
|
199
|
+
label: i(() => [
|
|
200
|
+
f(_(v(s)({
|
|
201
|
+
id: "invoice_preview.taxes_heading",
|
|
202
|
+
defaultMessage: "Taxes",
|
|
203
|
+
description: "Taxes heading for the invoice preview"
|
|
204
|
+
})), 1)
|
|
205
|
+
]),
|
|
206
|
+
value: i(() => [
|
|
207
|
+
e.isPreviewWithoutTaxes ? (n(), c(M, {
|
|
208
|
+
key: 0,
|
|
209
|
+
"width-class": "w-10",
|
|
210
|
+
"height-class": "h-4"
|
|
211
|
+
})) : (n(), c(y, {
|
|
212
|
+
key: 1,
|
|
213
|
+
value: e.invoice.tax_summary.tax_amount
|
|
214
|
+
}, null, 8, ["value"]))
|
|
215
|
+
]),
|
|
216
|
+
_: 1
|
|
217
|
+
}),
|
|
218
|
+
l.value ? (n(), c(w, { key: 2 }, {
|
|
219
|
+
label: i(() => [
|
|
220
|
+
f(_(v(s)({
|
|
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: i(() => [
|
|
227
|
+
e.isPreviewWithoutTaxes ? (n(), c(M, {
|
|
228
|
+
key: 0,
|
|
229
|
+
"width-class": "w-10",
|
|
230
|
+
"height-class": "h-4"
|
|
231
|
+
})) : (n(), c(y, {
|
|
232
|
+
key: 1,
|
|
233
|
+
value: e.invoice.tax_summary.total_amount
|
|
234
|
+
}, null, 8, ["value"]))
|
|
235
|
+
]),
|
|
236
|
+
_: 1
|
|
237
|
+
})) : k("", !0),
|
|
238
|
+
o(B, { spacing: "xxs" })
|
|
239
|
+
])
|
|
240
|
+
]),
|
|
241
|
+
_: 1
|
|
242
|
+
}, 8, ["is-open"]),
|
|
243
|
+
(n(), c(N(u.value ? "button" : "div"), {
|
|
244
|
+
class: T({ "text-left hover:cursor-pointer": u.value }),
|
|
245
|
+
onClick: d
|
|
246
|
+
}, {
|
|
247
|
+
default: i(() => [
|
|
248
|
+
o(w, {
|
|
249
|
+
weight: "semibold",
|
|
250
|
+
variant: "body-sm"
|
|
251
|
+
}, {
|
|
252
|
+
label: i(() => [
|
|
253
|
+
f(_(e.isPaid ? v(s)({
|
|
254
|
+
id: "invoice_preview.total_paid_heading",
|
|
255
|
+
defaultMessage: "Total paid",
|
|
256
|
+
description: "Total paid heading for the invoice preview"
|
|
257
|
+
}) : v(s)({
|
|
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
|
+
u.value ? (n(), c(A, {
|
|
263
|
+
key: 0,
|
|
264
|
+
size: "xs",
|
|
265
|
+
icon: "keyboard_arrow_down",
|
|
266
|
+
class: T(["text-gray-400 transition ease-in-out", { "rotate-0": r.value, "rotate-180": !r.value }])
|
|
267
|
+
}, null, 8, ["class"])) : k("", !0)
|
|
268
|
+
]),
|
|
269
|
+
value: i(() => [
|
|
270
|
+
e.isPreviewWithoutTaxes && (!l.value || l.value && t.value.quantity !== "0.00") ? (n(), c(M, { key: 0 })) : (n(), c(y, {
|
|
271
|
+
key: 1,
|
|
272
|
+
value: t.value
|
|
273
|
+
}, null, 8, ["value"]))
|
|
274
|
+
]),
|
|
275
|
+
_: 1
|
|
276
|
+
})
|
|
277
|
+
]),
|
|
278
|
+
_: 1
|
|
279
|
+
}, 8, ["class"]))
|
|
280
|
+
]));
|
|
281
|
+
}
|
|
282
|
+
});
|
|
283
|
+
function J(e) {
|
|
284
|
+
return (e.pricing_plan_version.pricing_categories ?? []).flatMap((s) => s.pricings ?? []);
|
|
285
|
+
}
|
|
286
|
+
function se(e) {
|
|
287
|
+
return e.flatMap(J);
|
|
288
|
+
}
|
|
289
|
+
function oe(e) {
|
|
290
|
+
var a, s;
|
|
291
|
+
return F(e.name) ? (s = (a = e.products) == null ? void 0 : a[0]) == null ? void 0 : s.name : e.name;
|
|
292
|
+
}
|
|
293
|
+
function re(e, { enabledPricingIds: a } = {}) {
|
|
294
|
+
var l;
|
|
295
|
+
const r = (((l = e == null ? void 0 : e.pricing_plan_version) == null ? void 0 : l.pricing_categories) ?? []).flatMap((t) => [
|
|
296
|
+
...(t.pricings ?? []).map((d) => ({ pricing: d, inGroup: !1 })),
|
|
297
|
+
...(t.pricing_groups ?? []).flatMap(
|
|
298
|
+
(d) => (d.pricings ?? []).map((h) => ({ pricing: h, inGroup: !0 }))
|
|
299
|
+
)
|
|
300
|
+
]), u = ({ pricing: t, inGroup: d }) => !(d || !!(t != null && t.pricing_group_id) || (t == null ? void 0 : t.product_type) === "ADDON") || !a || a.includes(t == null ? void 0 : t.id);
|
|
301
|
+
return new Set(
|
|
302
|
+
r.filter(u).flatMap(({ pricing: t }) => (t == null ? void 0 : t.items) ?? []).flatMap((t) => t.product_items ?? []).map(({ model_type: t }) => t)
|
|
303
|
+
);
|
|
304
|
+
}
|
|
305
|
+
const K = { class: "sv-empty-state__body flex flex-col items-center justify-center py-2" }, Q = { class: "sv-empty-state__action mt-3 empty:hidden" }, ue = /* @__PURE__ */ g({
|
|
306
|
+
__name: "EmptyStatePlaceholder",
|
|
307
|
+
props: {
|
|
308
|
+
icon: { type: null }
|
|
309
|
+
},
|
|
310
|
+
setup(e) {
|
|
311
|
+
return (a, s) => (n(), c(v(q), { class: "sv-empty-state" }, {
|
|
312
|
+
default: i(() => [
|
|
313
|
+
S("div", K, [
|
|
314
|
+
o(v(A), {
|
|
315
|
+
icon: e.icon,
|
|
316
|
+
size: "md",
|
|
317
|
+
class: "sv-empty-state__icon text-gray-500"
|
|
318
|
+
}, null, 8, ["icon"]),
|
|
319
|
+
o(v(b), {
|
|
320
|
+
center: "",
|
|
321
|
+
tag: "span",
|
|
322
|
+
variant: "body-xs",
|
|
323
|
+
weight: "semibold",
|
|
324
|
+
color: "subtle",
|
|
325
|
+
class: "sv-empty-state__title mt-1"
|
|
326
|
+
}, {
|
|
327
|
+
default: i(() => [
|
|
328
|
+
x(a.$slots, "title")
|
|
329
|
+
]),
|
|
330
|
+
_: 3
|
|
331
|
+
}),
|
|
332
|
+
o(v(b), {
|
|
333
|
+
center: "",
|
|
334
|
+
tag: "span",
|
|
335
|
+
variant: "body-xs",
|
|
336
|
+
color: "subtle",
|
|
337
|
+
class: "sv-empty-state__message mt-1"
|
|
338
|
+
}, {
|
|
339
|
+
default: i(() => [
|
|
340
|
+
x(a.$slots, "message")
|
|
341
|
+
]),
|
|
342
|
+
_: 3
|
|
343
|
+
}),
|
|
344
|
+
S("div", Q, [
|
|
345
|
+
x(a.$slots, "action")
|
|
346
|
+
])
|
|
347
|
+
])
|
|
348
|
+
]),
|
|
349
|
+
_: 3
|
|
350
|
+
}));
|
|
351
|
+
}
|
|
352
|
+
});
|
|
353
|
+
export {
|
|
354
|
+
ue as _,
|
|
355
|
+
le as a,
|
|
356
|
+
J as b,
|
|
357
|
+
se as c,
|
|
358
|
+
L as d,
|
|
359
|
+
R as e,
|
|
360
|
+
re as f,
|
|
361
|
+
oe as g
|
|
362
|
+
};
|
package/dist/{ErrorNotification.vue.es-h-D37rfG.mjs → ErrorNotification.vue.es-CKlt4hr2.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
2
|
import { _ as u } from "./Alert.vue.es-lIiAWf2S.mjs";
|
|
3
|
-
import { a as g } from "./customElements-
|
|
3
|
+
import { a as g } from "./customElements-Di3zwlEU.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: {
|
|
@@ -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-BjCn2BF6.mjs";
|
|
4
|
+
import { _ as r } from "./Button.vue.es-rh6mITmN.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 { _ as k } from "./customElements-
|
|
3
|
+
import { a as h } from "./Button.vue.es-rh6mITmN.mjs";
|
|
4
|
+
import { _ as y } from "./Avatar.vue.es-Beg7umjO.mjs";
|
|
5
|
+
import { _ as k } from "./customElements-Di3zwlEU.mjs";
|
|
6
6
|
const v = { class: "min-w-0 grow" }, E = /* @__PURE__ */ f({
|
|
7
7
|
__name: "IconTitle",
|
|
8
8
|
props: {
|
|
@@ -0,0 +1,249 @@
|
|
|
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 f, createElementVNode as E, mergeProps as B, withDirectives as H, vModelDynamic as _, createVNode as ee, mergeModels as M } from "vue";
|
|
2
|
+
import { c as T, u as D, g as le, _ as ae } from "./cn.es-2bVdkiFV.mjs";
|
|
3
|
+
import { _ as N } from "./FormMessage.vue.es-jG3fQZms.mjs";
|
|
4
|
+
import { a as q } from "./useService-B0OQJmif.mjs";
|
|
5
|
+
import { _ as O } from "./customElements-Di3zwlEU.mjs";
|
|
6
|
+
const te = {
|
|
7
|
+
/**
|
|
8
|
+
* 22px, not 24px: this height lands on the inner input, which is `border-0`, while the
|
|
9
|
+
* 1px border sits on the wrapper — so the control measures 2px taller than the value
|
|
10
|
+
* here. 22 + 2 makes it 24px overall, matching the xs Button, whose height and border
|
|
11
|
+
* share one element and so need no such allowance.
|
|
12
|
+
*/
|
|
13
|
+
xs: "h-[22px]",
|
|
14
|
+
sm: "h-7",
|
|
15
|
+
md: "h-10",
|
|
16
|
+
lg: "h-12",
|
|
17
|
+
xl: "h-16"
|
|
18
|
+
};
|
|
19
|
+
function se({
|
|
20
|
+
size: e,
|
|
21
|
+
disabled: u,
|
|
22
|
+
labelScreenReaderOnly: r,
|
|
23
|
+
hasError: y,
|
|
24
|
+
ring: v,
|
|
25
|
+
hasShadow: p,
|
|
26
|
+
hasFocusStyles: m,
|
|
27
|
+
type: h,
|
|
28
|
+
prefixHasBorder: o,
|
|
29
|
+
wrapperClass: w,
|
|
30
|
+
inputClass: g,
|
|
31
|
+
prefixClass: S,
|
|
32
|
+
suffixClass: R,
|
|
33
|
+
isMultiline: V
|
|
34
|
+
}) {
|
|
35
|
+
const d = t(() => (u == null ? void 0 : u.value) ?? !1), c = 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
|
+
"block text-sm font-medium text-default": !0,
|
|
37
|
+
"sr-only": r == null ? void 0 : r.value
|
|
38
|
+
})), U = t(() => ({
|
|
39
|
+
"rounded border border-gray-300 overflow-hidden": !0,
|
|
40
|
+
"cursor-not-allowed bg-gray-50 border-transparent": d.value,
|
|
41
|
+
"bg-white": !d.value,
|
|
42
|
+
"focus-within:border-primary-500": C.value,
|
|
43
|
+
// A ring rather than an outline: tailwind-merge follows Tailwind 4, where a bare `outline`
|
|
44
|
+
// is a width, so it drops `outline-1` from `outline outline-1` and leaves a 3px outline.
|
|
45
|
+
"focus-within:ring-1 focus-within:ring-primary-500": C.value && (v == null ? void 0 : v.value),
|
|
46
|
+
"shadow-sm focus-within:shadow-sm": p == null ? void 0 : p.value,
|
|
47
|
+
"border-red-500 focus-within:border-red-500 focus-within:ring-red-500": l.value
|
|
48
|
+
})), W = t(() => ({
|
|
49
|
+
// Disabled text wins over the placeholder colour because `disabled:placeholder:`
|
|
50
|
+
// is the more specific selector.
|
|
51
|
+
"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
|
+
"text-xs": s.value,
|
|
53
|
+
"text-sm": !s.value,
|
|
54
|
+
"p-2": c.value,
|
|
55
|
+
"px-1": !c.value && e.value === "xs",
|
|
56
|
+
"px-2": !c.value && e.value === "sm",
|
|
57
|
+
"px-4": !c.value && !s.value,
|
|
58
|
+
[te[e.value]]: !c.value && !(V != null && V.value),
|
|
59
|
+
"cursor-default": d.value
|
|
60
|
+
})), F = t(() => ({
|
|
61
|
+
"z-10 flex shrink-0 items-center": !0,
|
|
62
|
+
"px-3": o == null ? void 0 : o.value,
|
|
63
|
+
"pl-3": !(o != null && o.value),
|
|
64
|
+
"border-r": o == null ? void 0 : o.value,
|
|
65
|
+
"border-none": !(o != null && o.value),
|
|
66
|
+
"border-red-500": (o == null ? void 0 : o.value) && l.value,
|
|
67
|
+
"border-gray-300": (o == null ? void 0 : o.value) && !l.value
|
|
68
|
+
})), K = t(() => ({
|
|
69
|
+
"align-end z-10 flex shrink-0 items-center gap-2 border-l px-2": !0,
|
|
70
|
+
"border-red-500": l.value,
|
|
71
|
+
"border-gray-300": !l.value,
|
|
72
|
+
"px-1": s.value,
|
|
73
|
+
"px-2": e.value === "md",
|
|
74
|
+
"px-3": e.value === "lg"
|
|
75
|
+
})), P = t(() => T(U.value, w == null ? void 0 : w.value)), j = t(() => T(W.value, g == null ? void 0 : g.value)), z = t(() => T(F.value, S == null ? void 0 : S.value)), A = t(() => T(K.value, R == null ? void 0 : R.value));
|
|
76
|
+
return {
|
|
77
|
+
wrapperClasses: P,
|
|
78
|
+
inputClasses: j,
|
|
79
|
+
prefixClasses: z,
|
|
80
|
+
suffixClasses: A,
|
|
81
|
+
labelClasses: i
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
const oe = ["data-testid"], ue = { class: "relative" }, ne = { class: "relative grow" }, re = ["id", "disabled", "type", "value", "name", "form", "placeholder", "autocomplete"], de = ["id", "value", "disabled", "type", "name", "form", "placeholder", "autocomplete"], ie = {
|
|
85
|
+
key: 1,
|
|
86
|
+
class: "mt-1"
|
|
87
|
+
}, ve = {
|
|
88
|
+
key: 2,
|
|
89
|
+
class: "mt-2 text-xs text-secondary"
|
|
90
|
+
}, pe = /* @__PURE__ */ G({
|
|
91
|
+
__name: "Input",
|
|
92
|
+
props: /* @__PURE__ */ M({
|
|
93
|
+
label: { default: "" },
|
|
94
|
+
labelScreenReaderOnly: { type: Boolean },
|
|
95
|
+
disabled: { type: Boolean, default: !1 },
|
|
96
|
+
type: { default: "text" },
|
|
97
|
+
asTextType: { type: Boolean, default: !1 },
|
|
98
|
+
size: { default: "md" },
|
|
99
|
+
prefixClass: {},
|
|
100
|
+
suffixClass: {},
|
|
101
|
+
wrapperClass: { default: "" },
|
|
102
|
+
inputClass: {},
|
|
103
|
+
rootClass: { default: "" },
|
|
104
|
+
required: { type: Boolean, default: !1 },
|
|
105
|
+
id: {},
|
|
106
|
+
checked: { type: Boolean },
|
|
107
|
+
value: {},
|
|
108
|
+
hasShadow: { type: Boolean, default: !1 },
|
|
109
|
+
hasFocusStyles: { type: Boolean, default: !0 },
|
|
110
|
+
form: {},
|
|
111
|
+
ring: { type: Boolean, default: !0 },
|
|
112
|
+
error: {},
|
|
113
|
+
invalid: { type: Boolean },
|
|
114
|
+
name: {},
|
|
115
|
+
prefixHasBorder: { type: Boolean, default: !0 },
|
|
116
|
+
placeholder: {},
|
|
117
|
+
autocomplete: {}
|
|
118
|
+
}, {
|
|
119
|
+
modelValue: {},
|
|
120
|
+
modelModifiers: {}
|
|
121
|
+
}),
|
|
122
|
+
emits: /* @__PURE__ */ M(["blur"], ["update:modelValue"]),
|
|
123
|
+
setup(e) {
|
|
124
|
+
const u = e, r = J(e, "modelValue"), y = u.type === "number" && u.asTextType, v = u.name ?? D("name"), p = (l) => {
|
|
125
|
+
y && (r.value = l.target.value);
|
|
126
|
+
}, m = u.id ?? D(`${v}-`), h = (l) => {
|
|
127
|
+
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(), c = (l) => {
|
|
129
|
+
var s;
|
|
130
|
+
const i = l.target;
|
|
131
|
+
i != null && i.closest("button, a, input, select, textarea") || (s = d.value) == null || s.focus();
|
|
132
|
+
}, C = t(
|
|
133
|
+
() => u.size === "xs" ? "body-xs" : "body-sm"
|
|
134
|
+
);
|
|
135
|
+
return (l, s) => (n(), x("div", {
|
|
136
|
+
class: k(e.rootClass),
|
|
137
|
+
"data-testid": a(le)(a(v))
|
|
138
|
+
}, [
|
|
139
|
+
e.label ? (n(), I(ae, {
|
|
140
|
+
key: 0,
|
|
141
|
+
class: k(a(S)),
|
|
142
|
+
for: a(m),
|
|
143
|
+
required: e.required,
|
|
144
|
+
"screen-reader-only": e.labelScreenReaderOnly
|
|
145
|
+
}, X({
|
|
146
|
+
default: $(() => [
|
|
147
|
+
Y(Z(e.label) + " ", 1)
|
|
148
|
+
]),
|
|
149
|
+
_: 2
|
|
150
|
+
}, [
|
|
151
|
+
!e.labelScreenReaderOnly || l.$slots["label-suffix"] ? {
|
|
152
|
+
name: "suffix",
|
|
153
|
+
fn: $(() => [
|
|
154
|
+
!e.labelScreenReaderOnly && !a(q)(e.error) ? (n(), I(N, {
|
|
155
|
+
key: 0,
|
|
156
|
+
message: e.error
|
|
157
|
+
}, null, 8, ["message"])) : b("", !0),
|
|
158
|
+
f(l.$slots, "label-suffix")
|
|
159
|
+
]),
|
|
160
|
+
key: "0"
|
|
161
|
+
} : void 0,
|
|
162
|
+
l.$slots.tooltip ? {
|
|
163
|
+
name: "tooltip",
|
|
164
|
+
fn: $(() => [
|
|
165
|
+
f(l.$slots, "tooltip")
|
|
166
|
+
]),
|
|
167
|
+
key: "1"
|
|
168
|
+
} : void 0
|
|
169
|
+
]), 1032, ["class", "for", "required", "screen-reader-only"])) : b("", !0),
|
|
170
|
+
E("div", ue, [
|
|
171
|
+
E("div", {
|
|
172
|
+
class: k(["flex", a(w)])
|
|
173
|
+
}, [
|
|
174
|
+
l.$slots.prefix ? (n(), I(O, {
|
|
175
|
+
key: 0,
|
|
176
|
+
tag: "div",
|
|
177
|
+
variant: C.value,
|
|
178
|
+
class: k(a(R))
|
|
179
|
+
}, {
|
|
180
|
+
default: $(() => [
|
|
181
|
+
f(l.$slots, "prefix")
|
|
182
|
+
]),
|
|
183
|
+
_: 3
|
|
184
|
+
}, 8, ["variant", "class"])) : b("", !0),
|
|
185
|
+
E("div", ne, [
|
|
186
|
+
a(y) ? (n(), x("input", B({ key: 0 }, l.$attrs, {
|
|
187
|
+
id: a(m),
|
|
188
|
+
ref_key: "inputElRef",
|
|
189
|
+
ref: d,
|
|
190
|
+
disabled: e.disabled,
|
|
191
|
+
type: e.type,
|
|
192
|
+
class: a(g),
|
|
193
|
+
value: r.value,
|
|
194
|
+
name: a(v),
|
|
195
|
+
form: e.form,
|
|
196
|
+
placeholder: e.placeholder,
|
|
197
|
+
autocomplete: e.autocomplete ?? "off",
|
|
198
|
+
onKeyup: p,
|
|
199
|
+
onChange: p,
|
|
200
|
+
onBlur: s[0] || (s[0] = (i) => l.$emit("blur")),
|
|
201
|
+
onWheel: h
|
|
202
|
+
}), null, 16, re)) : H((n(), x("input", B({ key: 1 }, l.$attrs, {
|
|
203
|
+
id: a(m),
|
|
204
|
+
ref_key: "inputElRef",
|
|
205
|
+
ref: d,
|
|
206
|
+
"onUpdate:modelValue": s[1] || (s[1] = (i) => r.value = i),
|
|
207
|
+
value: e.type === "checkbox" ? e.value : r.value,
|
|
208
|
+
disabled: e.disabled,
|
|
209
|
+
type: e.type,
|
|
210
|
+
name: a(v),
|
|
211
|
+
form: e.form,
|
|
212
|
+
class: a(g),
|
|
213
|
+
placeholder: e.placeholder,
|
|
214
|
+
autocomplete: e.autocomplete ?? "off",
|
|
215
|
+
onBlur: s[2] || (s[2] = (i) => l.$emit("blur")),
|
|
216
|
+
onWheel: h
|
|
217
|
+
}), null, 16, de)), [
|
|
218
|
+
[_, r.value]
|
|
219
|
+
]),
|
|
220
|
+
f(l.$slots, "input")
|
|
221
|
+
]),
|
|
222
|
+
l.$slots.suffix ? (n(), I(O, {
|
|
223
|
+
key: 1,
|
|
224
|
+
tag: "div",
|
|
225
|
+
variant: C.value,
|
|
226
|
+
class: k(a(V)),
|
|
227
|
+
onClick: c
|
|
228
|
+
}, {
|
|
229
|
+
default: $(() => [
|
|
230
|
+
f(l.$slots, "suffix")
|
|
231
|
+
]),
|
|
232
|
+
_: 3
|
|
233
|
+
}, 8, ["variant", "class"])) : b("", !0)
|
|
234
|
+
], 2),
|
|
235
|
+
f(l.$slots, "adornment-end")
|
|
236
|
+
]),
|
|
237
|
+
e.labelScreenReaderOnly && !a(q)(e.error) ? (n(), x("div", ie, [
|
|
238
|
+
ee(N, { message: e.error }, null, 8, ["message"])
|
|
239
|
+
])) : b("", !0),
|
|
240
|
+
l.$slots.helper ? (n(), x("div", ve, [
|
|
241
|
+
f(l.$slots, "helper")
|
|
242
|
+
])) : b("", !0)
|
|
243
|
+
], 10, oe));
|
|
244
|
+
}
|
|
245
|
+
});
|
|
246
|
+
export {
|
|
247
|
+
pe as _,
|
|
248
|
+
se as u
|
|
249
|
+
};
|