@solvimon/solvimon-web 0.1.0-alpha.18 → 0.1.0-alpha.19
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 +70 -31
- package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang--AVI4Q4E.js +1 -0
- package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-C2IRj-FB.mjs → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-Y3CzulQq.mjs} +6 -3
- package/dist/Amount.vue.es-CRG-6dps.mjs +23 -0
- package/dist/Amount.vue.es-CeW8S7kT.js +1 -0
- package/dist/Avatar.vue.es-ClUBm_l5.js +1 -0
- package/dist/Avatar.vue.es-DJp6NEU_.mjs +91 -0
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-BWnZ98RQ.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-BUMK11Dw.mjs} +15 -7
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-DzrInCPA.js +1 -0
- package/dist/Button.vue.es-BrWHdiEA.mjs +453 -0
- package/dist/Button.vue.es-aLcIdATK.js +1 -0
- package/dist/Chip.vue.es-DPGTweAr.mjs +164 -0
- package/dist/Chip.vue.es-q4c-DXXl.js +1 -0
- package/dist/Comparators.vue.es-CU32AC4n.mjs +120 -0
- package/dist/Comparators.vue.es-CfVGYJ_x.js +1 -0
- package/dist/ContextMenu.vue.es-BBPFQfqY.mjs +681 -0
- package/dist/ContextMenu.vue.es-C_TL7-kg.js +1 -0
- package/dist/CustomerBillingInformation.vue.es-CLmXk5B9.mjs +175 -0
- package/dist/CustomerBillingInformation.vue.es-s-LYXA4T.js +1 -0
- package/dist/CustomerPaymentMethods.lib-BKgQTCtc.js +1 -0
- package/dist/CustomerPaymentMethods.lib-CcSt0sl1.mjs +4 -0
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-D7gL7dZX.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-B2CtcBm0.mjs} +17 -10
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CMIVAoQq.js +1 -0
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BP-VRwEM.js +1 -0
- package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-OUg4yv7r.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-Bej5_H7r.mjs} +823 -216
- package/dist/Divider.vue.es-ClFG8QtG.js +1 -0
- package/dist/Divider.vue.es-wKkIVBgb.mjs +24 -0
- package/dist/DividerText.vue.es-D5ieOE1e.js +1 -0
- package/dist/DividerText.vue.es-DMg-DNgi.mjs +72 -0
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-5I81Qr6q.js +1 -0
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CTG5XdQt.mjs +562 -0
- package/dist/ErrorNotification.vue.es-BX3khKFc.js +1 -0
- package/dist/ErrorNotification.vue.es-C22Kt8Qn.mjs +30 -0
- package/dist/Expand.vue.es-C-lnbA1v.js +1 -0
- package/dist/Expand.vue.es-C4_XmqbR.mjs +50 -0
- package/dist/FormMessage.vue.es-DFQXxiSC.mjs +46 -0
- package/dist/FormMessage.vue.es-LeWoj774.js +1 -0
- package/dist/IconButton.vue.es-CVFn0Ntj.js +1 -0
- package/dist/IconButton.vue.es-DcC4f5EQ.mjs +231 -0
- package/dist/IconTitle.vue.es-DoN4GVde.js +1 -0
- package/dist/IconTitle.vue.es-mQCMxc64.mjs +105 -0
- package/dist/Input.vue.es-C8VhMKuI.js +1 -0
- package/dist/Input.vue.es-Dp_RH03h.mjs +239 -0
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DbY35gE_.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-56fy6uY6.mjs} +2 -1
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-CLUcV3qa.js +1 -0
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-flgEyaoj.js +1 -0
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-ztaMeHQc.mjs +49 -0
- package/dist/InvoiceSummary.vue.es-emE-mCFh.js +1 -0
- package/dist/InvoiceSummary.vue.es-nCYeQ4tj.mjs +2558 -0
- package/dist/Modal.vue.es-5EpA4Q0t.mjs +367 -0
- package/dist/Modal.vue.es-CX5geho3.js +1 -0
- package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-B_IIOBjg.js +1 -0
- package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-DBMgilG2.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-D7IX9qqy.mjs} +4 -2
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-CupZFJSF.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-C8nvN-6f.mjs} +3 -1
- package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-D1oKZZ_m.js +1 -0
- package/dist/{PaymentHistoryBlock-Bxr8lUGs.mjs → PaymentHistoryBlock-Dejtgyos.mjs} +1 -1
- package/dist/{PaymentHistoryBlock-COjIVYX4.js → PaymentHistoryBlock-RBxlC5xt.js} +1 -1
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BdfWchcQ.js +1 -0
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CDjGab5p.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-Dk52bjJd.mjs} +5 -1
- package/dist/{PaymentIntegrationForm-BSauhuKv.js → PaymentIntegrationForm-BWr7iyU6.js} +1 -1
- package/dist/{PaymentIntegrationForm-PIT8gHYN.mjs → PaymentIntegrationForm-CbqfAdkc.mjs} +1 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-D8fkE1yG.js +1 -0
- package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-COO2ZUhN.mjs → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DJHwpswk.mjs} +4 -3
- package/dist/PaymentIntegrationFormAdyen-BjPpoLF7.js +1 -0
- package/dist/{PaymentIntegrationFormAdyen-Cjj9aK0E.mjs → PaymentIntegrationFormAdyen-CuRwe9_9.mjs} +78 -116
- package/dist/PaymentIntegrationFormStripe-51KZc27R.js +1 -0
- package/dist/{PaymentIntegrationFormStripe-arpua_ZT.mjs → PaymentIntegrationFormStripe-JZw2m1kJ.mjs} +7 -7
- package/dist/PaymentMethod.vue.es-CH__kPw4.mjs +636 -0
- package/dist/PaymentMethod.vue.es-uVZO0Zju.js +1 -0
- package/dist/{PaymentMethodForm-B7T5rrNz.mjs → PaymentMethodForm-C5WqTDow.mjs} +1 -1
- package/dist/{PaymentMethodForm-CLz3ZS-b.js → PaymentMethodForm-CBjHdZT7.js} +1 -1
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-BktA5F4r.js +1 -0
- package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-C4Zf92QP.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-DhPTbip8.mjs} +5 -2
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-CIIt6fGp.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-DbTvbHk7.mjs} +7 -3
- package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-XPz73RVU.js +1 -0
- package/dist/PricingGroupRangeInput.vue.es-A6eW-u2k.mjs +636 -0
- package/dist/PricingGroupRangeInput.vue.es-BuQeJCEX.js +1 -0
- package/dist/Section.vue.es-MEFUWCxU.mjs +79 -0
- package/dist/Section.vue.es-tLYXp-tF.js +1 -0
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Jk34S5B7.js +1 -0
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-xvgyB2Yr.mjs +1050 -0
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-B_Zkbqx2.mjs +6105 -0
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-CttBs_G8.js +1 -0
- package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-z8P1u1Gi.mjs → SubscriptionSummary.vue_vue_type_script_setup_true_lang-Cj36jvZF.mjs} +2 -1
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-Dl5Lg39D.js +1 -0
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-CTnTWaB8.js +1 -0
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-BOUSk2ZB.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-CfXgGKXA.mjs} +7 -4
- package/dist/TooltipParagraph.vue.es-B5aHQv9O.mjs +136 -0
- package/dist/TooltipParagraph.vue.es-fSwKGXKg.js +1 -0
- package/dist/TrialChip.vue.es-0nrqSZeY.js +1 -0
- package/dist/TrialChip.vue.es-Fp7Lqo-b.mjs +56 -0
- package/dist/api.es-C5pe8LUl.mjs +62 -0
- package/dist/api.es-Czekkp_X.js +1 -0
- package/dist/cn.es-BLHlMR4Y.js +1 -0
- package/dist/cn.es-DB5pDpxS.mjs +3298 -0
- package/dist/comparators.es-9VsCB-JI.mjs +175 -0
- package/dist/comparators.es-wrKHduVq.js +1 -0
- package/dist/component-BG6DmXcy.mjs +9 -0
- package/dist/component-hDuDTBt5.js +1 -0
- package/dist/components/BillingInformation/BillingInformation.ce.d.ts +1 -3
- package/dist/components/BillingInformation/BillingInformation.cjs +1 -0
- package/dist/components/BillingInformation/{BillingInformation.es.js → BillingInformation.mjs} +15 -26
- package/dist/components/BillingInformationForm/BillingInformationForm.ce.d.ts +1 -3
- package/dist/components/BillingInformationForm/BillingInformationForm.cjs +1 -0
- package/dist/components/BillingInformationForm/{BillingInformationForm.es.js → BillingInformationForm.mjs} +42 -128
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.ce.d.ts +1 -3
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs +1 -0
- package/dist/components/CustomerPaymentMethods/{CustomerPaymentMethods.es.js → CustomerPaymentMethods.mjs} +18 -51
- package/dist/components/Invoice/Invoice.ce.d.ts +1 -3
- package/dist/components/Invoice/Invoice.cjs +1 -0
- package/dist/components/Invoice/{Invoice.es.js → Invoice.mjs} +73 -79
- package/dist/components/InvoiceDetails/InvoiceDetails.ce.d.ts +1 -3
- package/dist/components/InvoiceDetails/InvoiceDetails.cjs +1 -0
- package/dist/components/InvoiceDetails/{InvoiceDetails.es.js → InvoiceDetails.mjs} +12 -24
- package/dist/components/InvoiceHeader/InvoiceHeader.ce.d.ts +1 -3
- package/dist/components/InvoiceHeader/InvoiceHeader.cjs +1 -0
- package/dist/components/InvoiceHeader/InvoiceHeader.mjs +73 -0
- package/dist/components/InvoicesList/InvoicesList.ce.d.ts +1 -3
- package/dist/components/InvoicesList/InvoicesList.cjs +1 -0
- package/dist/components/InvoicesList/{InvoicesList.es.js → InvoicesList.mjs} +12 -24
- package/dist/components/PaymentHistory/PaymentHistory.ce.d.ts +1 -3
- package/dist/components/PaymentHistory/PaymentHistory.cjs +1 -0
- package/dist/components/PaymentHistory/{PaymentHistory.es.js → PaymentHistory.mjs} +12 -24
- package/dist/components/PaymentMethodForm/PaymentMethodForm.ce.d.ts +1 -3
- package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs +1 -0
- package/dist/components/PaymentMethodForm/{PaymentMethodForm.es.js → PaymentMethodForm.mjs} +15 -27
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.ce.d.ts +1 -3
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs +1 -0
- package/dist/components/SubscriptionSchedules/{SubscriptionSchedules.es.js → SubscriptionSchedules.mjs} +13 -25
- package/dist/components/SubscriptionsList/SubscriptionsList.ce.d.ts +1 -3
- package/dist/components/SubscriptionsList/SubscriptionsList.cjs +1 -0
- package/dist/components/SubscriptionsList/{SubscriptionsList.es.js → SubscriptionsList.mjs} +22 -53
- package/dist/components/WalletBalances/WalletBalances.ce.d.ts +1 -3
- package/dist/components/WalletBalances/WalletBalances.cjs +1 -0
- package/dist/components/WalletBalances/{WalletBalances.es.js → WalletBalances.mjs} +13 -25
- package/dist/configuration-BjYwV4_B.js +1 -0
- package/dist/configuration-CD8cOXAJ.mjs +15 -0
- package/dist/core/action-request.types.d.ts +1 -55
- package/dist/core/configuration.d.ts +1 -3
- package/dist/core/index.cjs +1 -0
- package/dist/core/index.d.ts +1 -11
- package/dist/core/index.mjs +197 -0
- package/dist/core/registry.ce.d.ts +1 -2
- package/dist/core/registry.d.ts +1 -6
- package/dist/core/types.d.ts +1 -121
- package/dist/countryData.es--zJAd6LA.mjs +252 -0
- package/dist/countryData.es-D3MFzU92.js +1 -0
- package/dist/customElements-BTJzBHMy.js +1 -0
- package/dist/customElements-DdFA__me.mjs +6729 -0
- package/dist/{customer-DovIxTG1.mjs → customer-B0AMetq6.mjs} +1 -1
- package/dist/customer-D7HUfF3j.js +1 -0
- package/dist/customer.es-C_vSWcVA.mjs +30 -0
- package/dist/customer.es-D42Md24r.js +1 -0
- package/dist/en-US-BSrbFk5W.js +1 -0
- package/dist/en-US-D0P7NNNZ.mjs +228 -0
- package/dist/{en-US-CXDO3qhq.mjs → en-US-Daw3v6GD.mjs} +8 -31
- package/dist/en-US-scSQQXK8.js +1 -0
- package/dist/error-Cg-i7gGl.js +1 -0
- package/dist/error-DY_I2hPx.mjs +13 -0
- package/dist/floating-ui.vue.es-Bv94BfDm.js +1 -0
- package/dist/floating-ui.vue.es-DWY7pdz8.mjs +1573 -0
- package/dist/formatting.es-9hM8aHSg.js +1 -0
- package/dist/formatting.es-D-oVnc8H.mjs +68 -0
- package/dist/getComposedString.es-CELkn0I7.mjs +14 -0
- package/dist/getComposedString.es-DvSNX-_z.js +1 -0
- package/dist/getCountryNameByCode.es-fP52nO_7.js +1 -0
- package/dist/getCountryNameByCode.es-ymC9R46j.mjs +8 -0
- package/dist/index-BJ3dHkSK.js +1 -0
- package/dist/index-C5bKRt7l.mjs +1069 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +1 -17
- package/dist/index.es-0cystq8F.mjs +542 -0
- package/dist/index.es-2JWHHSgP.js +1 -0
- package/dist/index.mjs +42 -0
- package/dist/{invoices-Dk-z04lg.mjs → invoices-BSd-nKeE.mjs} +17 -16
- package/dist/invoices-BiqM6xN6.js +1 -0
- package/dist/{nl-NL-BgL_PuBn.mjs → nl-NL-B4zEBFTw.mjs} +8 -54
- package/dist/nl-NL-B5tuyIOM.mjs +88 -0
- package/dist/nl-NL-Bs3d8q6T.js +1 -0
- package/dist/nl-NL-DIAZWDF9.js +1 -0
- package/dist/object.es-DFXiU9p3.js +1 -0
- package/dist/object.es-jvvnR8Kr.mjs +12 -0
- package/dist/{paymentMethods-BnF1XYS1.mjs → paymentMethods-BsrkEbKT.mjs} +4 -16
- package/dist/paymentMethods-Cu2RzLgm.js +1 -0
- package/dist/{payments-TnRjtlOw.mjs → payments-B6Nfd6Al.mjs} +1 -1
- package/dist/payments-Bbm1HMQj.js +1 -0
- package/dist/pricing-3W7XLwL6.js +1 -0
- package/dist/pricing-CJxS2hr2.mjs +17 -0
- package/dist/pricingItemConfigs.es-BPIm6S8M.mjs +107 -0
- package/dist/pricingItemConfigs.es-C73cQlxQ.js +1 -0
- package/dist/screens/Checkout/Checkout.ce.d.ts +1 -3
- package/dist/screens/Checkout/Checkout.cjs +1 -0
- package/dist/screens/Checkout/{Checkout.es.js → Checkout.mjs} +1250 -610
- package/dist/screens/CustomerOverview/CustomerOverview.ce.d.ts +1 -3
- package/dist/screens/CustomerOverview/CustomerOverview.cjs +1 -0
- package/dist/screens/CustomerOverview/{CustomerOverview.es.js → CustomerOverview.mjs} +33 -36
- package/dist/screens/PayInvoice/PayInvoice.ce.d.ts +1 -3
- package/dist/screens/PayInvoice/PayInvoice.cjs +1 -0
- package/dist/screens/PayInvoice/{PayInvoice.es.js → PayInvoice.mjs} +21 -28
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.ce.d.ts +1 -3
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs +1 -0
- package/dist/screens/PaymentMethodsManagement/{PaymentMethodsManagement.es.js → PaymentMethodsManagement.mjs} +17 -29
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.ce.d.ts +1 -3
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs +1 -0
- package/dist/screens/SubscriptionDetails/{SubscriptionDetails.es.js → SubscriptionDetails.mjs} +33 -37
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.ce.d.ts +1 -3
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs +1 -0
- package/dist/screens/SubscriptionManagement/{SubscriptionManagement.es.js → SubscriptionManagement.mjs} +32 -41
- package/dist/slots.es-BpwYO3A3.mjs +18 -0
- package/dist/slots.es-Dq1PTUOv.js +1 -0
- package/dist/sorting.es-CjTrRfSW.mjs +105 -0
- package/dist/sorting.es-RyvcgbSL.js +1 -0
- package/dist/subscriptions-B4BOzLxR.js +1 -0
- package/dist/{subscriptions-vEE4Y7qm.mjs → subscriptions-C2C4WTuI.mjs} +7 -7
- package/dist/typeGuards.es-C4nR5FkL.js +1 -0
- package/dist/typeGuards.es-fwUoeMCe.mjs +12 -0
- package/dist/types/components/InvoiceTable/InvoiceTable.types.d.ts +19 -0
- package/dist/types/components/checkout/CheckoutTitle.types.d.ts +10 -0
- package/dist/types/components/checkout/EmptyStatePlaceholder.types.d.ts +4 -0
- package/dist/types/components/checkout/PromotionCodeSection.types.d.ts +8 -0
- package/dist/types/components/customer/BillingInformationForm/BillingInformationForm.types.d.ts +24 -0
- package/dist/types/components/customer/CheckoutForm/CheckoutForm.types.d.ts +32 -0
- package/dist/types/components/customer/CustomerPaymentMethodsBlock/CustomerPaymentMethodsBlock.types.d.ts +12 -0
- package/dist/types/components/payments/AddPaymentMethodModal/AddPaymentMethodModal.types.d.ts +14 -0
- package/dist/types/components/payments/AddPaymentMethodPane/AddPaymentMethodPane.types.d.ts +19 -0
- package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethod.types.d.ts +74 -0
- package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethodApplePay.types.d.ts +9 -0
- package/dist/types/components/payments/ExpressPaymentMethodButton/ExpressPaymentMethodButton.types.d.ts +3 -0
- package/dist/types/components/payments/ExpressPaymentMethods/ExpressPaymentMethods.types.d.ts +21 -0
- package/dist/types/components/payments/PayButton/PayButton.types.d.ts +10 -0
- package/dist/types/components/payments/PaymentCompletedCard/PaymentCompletedCard.types.d.ts +5 -0
- package/dist/types/components/payments/PaymentErrorCard/PaymentErrorCard.types.d.ts +4 -0
- package/dist/types/components/payments/PaymentFeedbackCard/PaymentFeedbackCard.types.d.ts +4 -0
- package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +72 -0
- package/dist/types/components/payments/PaymentIntegrationFormAdyen/PaymentIntegrationFormAdyen.types.d.ts +6 -0
- package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripe.types.d.ts +7 -0
- package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripeFrame.types.d.ts +61 -0
- package/dist/types/components/payments/PaymentMethodSelector/PaymentMethodSelector.types.d.ts +53 -0
- package/dist/types/components/payments/PaymentMethodsList/PaymentMethodsList.types.d.ts +8 -0
- package/dist/types/components/payments/SubscriptionPaymentCompletedCard/SubscriptionPaymentCompletedCard.types.d.ts +3 -0
- package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.lib.d.ts +4 -0
- package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.lib.types.d.ts +3 -0
- package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.vue.d.ts +17 -0
- package/dist/types/components/providers/ActionDispatchProvider/composables/useActionDispatchProvider.d.ts +3 -0
- package/dist/types/components/providers/AuthProvider/AuthProvider.lib.d.ts +5 -0
- package/dist/types/components/providers/AuthProvider/AuthProvider.types.d.ts +8 -0
- package/dist/types/components/providers/AuthProvider/AuthProvider.vue.d.ts +18 -0
- package/dist/types/components/providers/AuthProvider/composables/useAuth.d.ts +3 -0
- package/dist/types/components/providers/AuthProvider/index.d.ts +3 -0
- package/dist/types/components/providers/ConfigProvider/ConfigProvider.lib.d.ts +5 -0
- package/dist/types/components/providers/ConfigProvider/ConfigProvider.types.d.ts +9 -0
- package/dist/types/components/providers/ConfigProvider/ConfigProvider.vue.d.ts +18 -0
- package/dist/types/components/providers/ConfigProvider/composables/useConfig.d.ts +3 -0
- package/dist/types/components/providers/CssOverridesProvider/CssOverridesProvider.types.d.ts +3 -0
- package/dist/types/components/providers/CssOverridesProvider/CssOverridesProvider.vue.d.ts +18 -0
- package/dist/types/components/providers/EntryProvider/EntryProvider.types.d.ts +10 -0
- package/dist/types/components/providers/EntryProvider/EntryProvider.vue.d.ts +22 -0
- package/dist/types/components/providers/ErrorBoundary/ErrorBoundary.vue.d.ts +17 -0
- package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.lib.d.ts +5 -0
- package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.types.d.ts +4 -0
- package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.vue.d.ts +18 -0
- package/dist/types/components/providers/ExperimentalFeatureProvider/composables/useExperimentalFeature.d.ts +1 -0
- package/dist/types/components/providers/HostElementProvider/HostElementProvider.lib.d.ts +12 -0
- package/dist/types/components/providers/HostElementProvider/HostElementProvider.types.d.ts +3 -0
- package/dist/types/components/providers/HostElementProvider/HostElementProvider.vue.d.ts +18 -0
- package/dist/types/components/providers/HostElementProvider/composables/useHostElementProvider.d.ts +1 -0
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.lib.d.ts +24 -0
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +40 -0
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.vue.d.ts +20 -0
- package/dist/types/components/providers/LoggerProvider/composables/useLogger.d.ts +6 -0
- package/dist/types/components/providers/PortalProvider/PortalProvider.lib.d.ts +7 -0
- package/dist/types/components/providers/PortalProvider/PortalProvider.types.d.ts +11 -0
- package/dist/types/components/providers/PortalProvider/PortalProvider.vue.d.ts +18 -0
- package/dist/types/components/providers/PortalProvider/composables/usePortal.d.ts +3 -0
- package/dist/types/components/providers/Provider/Provider.types.d.ts +15 -0
- package/dist/types/components/providers/Provider/Provider.vue.d.ts +21 -0
- package/dist/types/components/providers/TeleportProvider/TeleportProvider.vue.d.ts +17 -0
- package/dist/types/components/providers/TranslationProvider/TranslationOverride.vue.d.ts +18 -0
- package/dist/types/components/providers/TranslationProvider/TranslationProvider.lib.d.ts +9 -0
- package/dist/types/components/providers/TranslationProvider/TranslationProvider.types.d.ts +22 -0
- package/dist/types/components/providers/TranslationProvider/TranslationProvider.vue.d.ts +18 -0
- package/dist/types/components/providers/index.d.ts +9 -0
- package/dist/types/components/shared/ScreenTitle/ScreenTitle.types.d.ts +4 -0
- package/dist/types/components/shared/Section/Section.types.d.ts +21 -0
- package/dist/types/components/shared/Skeleton.types.d.ts +5 -0
- package/dist/types/components/shared/SlidingPanes/SlidingPanes.types.d.ts +12 -0
- package/dist/types/components/subscriptions/EnabledPricingsList/EnabledPricingsList.types.d.ts +15 -0
- package/dist/types/components/subscriptions/EnabledPricingsList/EnabledPricingsListItem.types.d.ts +7 -0
- package/dist/types/components/subscriptions/OrderSummary.types.d.ts +65 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/AddonSingleEditor.types.d.ts +5 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/PlanCustomizationEditor.types.d.ts +8 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/PricingGroupContent.types.d.ts +4 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/PricingGroupEditorBase.types.d.ts +8 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditor.types.d.ts +6 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditorItem.types.d.ts +6 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/TieredTable.types.d.ts +5 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/TieredTableRow.types.d.ts +7 -0
- package/dist/types/components/subscriptions/SubscriptionCancellationModal/SubscriptionCancellationModal.types.d.ts +12 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagement.types.d.ts +47 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +28 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSuccess.types.d.ts +7 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSummary.types.d.ts +7 -0
- package/dist/types/components/subscriptions/SubscriptionSummary.types.d.ts +33 -0
- package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsList.types.d.ts +16 -0
- package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsListItem.types.d.ts +13 -0
- package/dist/types/components/wallets/AutoTopUpCancellationModal/AutoTopUpCancellationModal.types.d.ts +9 -0
- package/dist/types/components/wallets/AutoTopUpConfig/AutoTopUpConfig.types.d.ts +56 -0
- package/dist/types/components/wallets/AutoTopUpModal/AutoTopUpModal.types.d.ts +16 -0
- package/dist/types/components/wallets/ConvertedAmountInput/ConvertedAmountInput.types.d.ts +32 -0
- package/dist/types/components/wallets/TopUpModal/TopUpInvoicePreview.types.d.ts +11 -0
- package/dist/types/components/wallets/TopUpModal/TopUpModal.types.d.ts +31 -0
- package/dist/types/components/wallets/TopUpModal/TopUpModalForm.types.d.ts +23 -0
- package/dist/types/components/wallets/TopUpModal/TopUpModalSuccess.types.d.ts +11 -0
- package/dist/types/components/wallets/WalletModalShell.types.d.ts +24 -0
- package/dist/types/composables/useInvoicePreview.types.d.ts +9 -0
- package/dist/types/config/config.beta.d.ts +2 -0
- package/dist/types/config/config.dev.d.ts +2 -0
- package/dist/types/config/config.live.d.ts +2 -0
- package/dist/types/config/internalEnvironments.d.ts +11 -0
- package/dist/types/config/internalEnvironments.published.d.ts +7 -0
- package/dist/types/config/lib.d.ts +6 -0
- package/dist/types/config/types.d.ts +13 -0
- package/dist/types/index.d.ts +23 -0
- package/dist/types/public/components/BillingInformation/BillingInformation.entry.ce.d.ts +1 -0
- package/dist/types/public/components/BillingInformation/BillingInformation.entry.types.d.ts +4 -0
- package/dist/types/public/components/BillingInformation/BillingInformation.types.d.ts +12 -0
- package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.ce.d.ts +1 -0
- package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.types.d.ts +4 -0
- package/dist/types/public/components/BillingInformationForm/BillingInformationForm.types.d.ts +10 -0
- package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.entry.ce.d.ts +1 -0
- package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.entry.types.d.ts +6 -0
- package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.types.d.ts +22 -0
- package/dist/types/public/components/CustomerWalletBalances/CustomerWalletBalances.types.d.ts +22 -0
- package/dist/types/public/components/Invoice/Invoice.entry.ce.d.ts +1 -0
- package/dist/types/public/components/Invoice/Invoice.entry.types.d.ts +5 -0
- package/dist/types/public/components/Invoice/Invoice.types.d.ts +26 -0
- package/dist/types/public/components/InvoiceDetails/InvoiceDetails.entry.ce.d.ts +1 -0
- package/dist/types/public/components/InvoiceDetails/InvoiceDetails.entry.types.d.ts +5 -0
- package/dist/types/public/components/InvoiceDetails/InvoiceDetails.types.d.ts +9 -0
- package/dist/types/public/components/InvoiceHeader/InvoiceHeader.entry.ce.d.ts +1 -0
- package/dist/types/public/components/InvoiceHeader/InvoiceHeader.entry.types.d.ts +5 -0
- package/dist/types/public/components/InvoiceHeader/InvoiceHeader.types.d.ts +16 -0
- package/dist/types/public/components/InvoicesList/InvoicesList.entry.ce.d.ts +1 -0
- package/dist/types/public/components/InvoicesList/InvoicesList.entry.types.d.ts +5 -0
- package/dist/types/public/components/InvoicesList/InvoicesList.types.d.ts +37 -0
- package/dist/types/public/components/PaymentHistory/PaymentHistory.entry.ce.d.ts +1 -0
- package/dist/types/public/components/PaymentHistory/PaymentHistory.entry.types.d.ts +5 -0
- package/dist/types/public/components/PaymentHistory/PaymentHistory.types.d.ts +10 -0
- package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.ce.d.ts +1 -0
- package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.types.d.ts +5 -0
- package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.types.d.ts +38 -0
- package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.entry.ce.d.ts +1 -0
- package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.entry.types.d.ts +5 -0
- package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.types.d.ts +9 -0
- package/dist/types/public/components/SubscriptionsList/SubscriptionsList.entry.ce.d.ts +1 -0
- package/dist/types/public/components/SubscriptionsList/SubscriptionsList.entry.types.d.ts +5 -0
- package/dist/types/public/components/SubscriptionsList/SubscriptionsList.types.d.ts +16 -0
- package/dist/types/public/components/WalletBalances/WalletBalances.entry.ce.d.ts +1 -0
- package/dist/types/public/components/WalletBalances/WalletBalances.entry.types.d.ts +5 -0
- package/dist/types/public/components/WalletBalances/WalletBalances.types.d.ts +3 -0
- package/dist/types/public/core/action-request.types.d.ts +55 -0
- package/dist/types/public/core/configuration.d.ts +3 -0
- package/dist/types/public/core/index.d.ts +14 -0
- package/dist/types/public/core/registry.ce.d.ts +8 -0
- package/dist/types/public/core/registry.d.ts +6 -0
- package/dist/types/public/core/types.d.ts +120 -0
- package/dist/types/public/screens/Checkout/Checkout.entry.ce.d.ts +1 -0
- package/dist/types/public/screens/Checkout/Checkout.entry.types.d.ts +18 -0
- package/dist/types/public/screens/Checkout/Checkout.types.d.ts +46 -0
- package/dist/types/public/screens/CustomerOverview/CustomerOverview.entry.ce.d.ts +1 -0
- package/dist/types/public/screens/CustomerOverview/CustomerOverview.entry.types.d.ts +5 -0
- package/dist/types/public/screens/CustomerOverview/CustomerOverview.types.d.ts +2 -0
- package/dist/types/public/screens/PayInvoice/PayInvoice.entry.ce.d.ts +1 -0
- package/dist/types/public/screens/PayInvoice/PayInvoice.entry.types.d.ts +4 -0
- package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +23 -0
- package/dist/types/public/screens/PaymentMethodsManagement/PaymentMethodsManagement.entry.ce.d.ts +1 -0
- package/dist/types/public/screens/PaymentMethodsManagement/PaymentMethodsManagement.entry.types.d.ts +3 -0
- package/dist/types/public/screens/PaymentMethodsManagement/PaymentMethodsManagement.types.d.ts +7 -0
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.entry.ce.d.ts +1 -0
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.entry.types.d.ts +6 -0
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.types.d.ts +23 -0
- package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.entry.ce.d.ts +1 -0
- package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.entry.types.d.ts +5 -0
- package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.types.d.ts +13 -0
- package/dist/types/public/screens/types.d.ts +4 -0
- package/dist/types/public/types/index.d.ts +23 -0
- package/dist/types/services/invoices.types.d.ts +26 -0
- package/dist/types/services/paymentMethods.types.d.ts +31 -0
- package/dist/types/services/portals.types.d.ts +68 -0
- package/dist/types/services/requests.types.d.ts +24 -0
- package/dist/types/translations/supported.d.ts +1 -0
- package/dist/types/types/EntryBaseProps.d.ts +10 -0
- package/dist/types/types/errors.d.ts +7 -0
- package/dist/types/types/subscription.d.ts +4 -0
- package/dist/types/vendor/@solvimon/solvimon-types/index.d.ts +111 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Address.d.ts +17 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Alerts.d.ts +72 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Amount.d.ts +4 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Api.d.ts +50 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApiError.d.ts +7 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApiKey.d.ts +21 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApiStatus.d.ts +7 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalPolicies.d.ts +77 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalRequests.d.ts +22 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Attachment.d.ts +14 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Band.d.ts +30 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/BaseResourceStatus.d.ts +3 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/BillingEntity.d.ts +45 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/BillingPeriod.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/BillingTime.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ChargeOnDemandPricingItems.d.ts +24 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Commitment.d.ts +9 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/CommitmentItem.d.ts +17 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Comparator.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ConfigMeterProperties.d.ts +12 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ConfiguredMeterValue.d.ts +9 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Country.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/CreateMeterData.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/CreatePricingPlanVersion.d.ts +3 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/CreditType.d.ts +16 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Currency.d.ts +8 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/CustomFields.d.ts +39 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/CustomerContact.d.ts +12 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Customers.d.ts +75 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Discount.d.ts +12 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/DiscountItem.d.ts +24 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Document.d.ts +22 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/DueDateConfiguration.d.ts +8 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Entitlement.d.ts +16 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Environment.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/EventTrace.d.ts +23 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/EventTraceExtended.d.ts +22 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/EventTraceLink.d.ts +14 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/EventTraceLinkExtended.d.ts +15 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Features.d.ts +25 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/IdentityProvider.d.ts +40 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/IndexingSettings.d.ts +24 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Integrations.d.ts +367 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Invoice.d.ts +349 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/JWT.d.ts +22 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Markup.d.ts +8 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MarkupItem.d.ts +11 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Meter.d.ts +32 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterConditions.d.ts +26 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterData.d.ts +25 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterDataExpanded.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterProperty.d.ts +34 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterPropertyValue.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterValue.d.ts +16 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterValueCalculation.d.ts +20 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterValueValue.d.ts +7 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ModelType.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Name.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/NotificationPreferences.d.ts +9 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Payment.d.ts +124 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentAcceptor.d.ts +120 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentAction.d.ts +74 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentMethod.d.ts +173 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentMethodOptions.d.ts +45 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentSchedules.d.ts +142 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Permission.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Platform.d.ts +118 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Portal.d.ts +58 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Pricing.d.ts +41 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingCategory.d.ts +18 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingCategoryExtended.d.ts +9 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingExtended.d.ts +9 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingGroup.d.ts +29 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingItem.d.ts +40 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingItemConfig.d.ts +130 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSchedule.d.ts +103 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanScheduleInfo.d.ts +7 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanScheduleWithPlanData.d.ts +9 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSubscription.d.ts +80 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSubscriptionGroup.d.ts +10 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanVersion.d.ts +71 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanVersionExtended.d.ts +7 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlans.d.ts +44 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Product.d.ts +22 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ProductCategory.d.ts +10 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ProductItem.d.ts +60 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PromotionCodes.d.ts +14 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteTemplates.d.ts +43 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteVersions.d.ts +93 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Quotes.d.ts +65 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ReprocessLog.d.ts +31 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Resource.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ResourceStatus.d.ts +2 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Role.d.ts +19 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/SignatureRequest.d.ts +27 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/TaxCategory.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/TaxIdentifier.d.ts +17 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/TaxSummary.d.ts +21 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/TimePeriod.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Timestamp.d.ts +4 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Token.d.ts +6 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/User.d.ts +106 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ValueType.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Wallet.d.ts +44 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/WalletAutoTopUpConfigs.d.ts +28 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/WalletType.d.ts +54 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Webhook.d.ts +48 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/WebhookEvent.d.ts +18 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Workflows.d.ts +95 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/forms.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/utils.d.ts +17 -0
- package/dist/useActionDispatchProvider-Cz8xLLYA.js +1 -0
- package/dist/{useActionDispatchProvider-BlEf-RZ5.mjs → useActionDispatchProvider-D55t_7LY.mjs} +1 -1
- package/dist/{useCustomer-Cw8LXT6S.mjs → useCustomer-BNhHz9RJ.mjs} +2 -2
- package/dist/{useCustomer-C1XTqmrQ.js → useCustomer-DYCpgA-3.js} +1 -1
- package/dist/useCustomerFormLabels-Cw6QpEJY.js +1 -0
- package/dist/useCustomerFormLabels-mX5QpApD.mjs +1142 -0
- package/dist/{useIncrementalLoading-8WtKZ-mP.mjs → useIncrementalLoading-BK9pRYAU.mjs} +5 -4
- package/dist/useIncrementalLoading-CdtGJm_Y.js +1 -0
- package/dist/{useInvoiceData-BrxMo4Zt.js → useInvoiceData-BczeMpuk.js} +1 -1
- package/dist/{useInvoiceData-Cy_ysMsq.mjs → useInvoiceData-D-EvEioP.mjs} +2 -2
- package/dist/{useInvoicesList-DMsZn1tE.mjs → useInvoicesList-BJJYwkIA.mjs} +277 -31
- package/dist/useInvoicesList-rMg-8LbH.js +1 -0
- package/dist/{useLoadInitialData-BP1v7qhd.mjs → useLoadInitialData-BoGjdUu-.mjs} +1 -1
- package/dist/useLoadInitialData-CiJldX50.js +1 -0
- package/dist/{usePaymentMethodOptions-CWfGvW0U.mjs → usePaymentMethodOptions-d49aOdLB.mjs} +13 -9
- package/dist/usePaymentMethodOptions-fBvWYynV.js +1 -0
- package/dist/{usePaymentMethods-Cyk4cjoE.mjs → usePaymentMethods-Bkouz8aQ.mjs} +2 -2
- package/dist/{usePaymentMethods-CAFMvSOr.js → usePaymentMethods-CFL3hFW_.js} +1 -1
- package/dist/usePayments-BKTNn_RN.js +1 -0
- package/dist/usePayments-BlliAt1E.mjs +262 -0
- package/dist/{usePortal-0NDlbFr9.mjs → usePortal-eyA4OqjU.mjs} +1 -1
- package/dist/usePortal-fhri8neB.js +1 -0
- package/dist/useService-D73FNBjT.js +1 -0
- package/dist/{useService-CqfJi5ST.mjs → useService-W3Kxems4.mjs} +24 -5
- package/dist/useSubscription--IGLmLS6.mjs +250 -0
- package/dist/useSubscription-V3KSuhOY.js +1 -0
- package/package.json +55 -45
- package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-Rub9ifBk.js +0 -1
- package/dist/ApiStatus-CyNDp_op.mjs +0 -9
- package/dist/ApiStatus-oqvUEWJx.js +0 -1
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-DurgWlLC.js +0 -1
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Df7CsbiW.js +0 -1
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-mM5udvi8.js +0 -1
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-BIpg-MSJ.mjs +0 -53
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-BM3p8Pk8.js +0 -1
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-D5eSNYH2.js +0 -1
- package/dist/InvoiceHeader.vue_vue_type_script_setup_true_lang-Ci8r6tuC.js +0 -1
- package/dist/InvoiceHeader.vue_vue_type_script_setup_true_lang-jshby9pF.mjs +0 -27
- package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-CNKxTtO7.js +0 -1
- package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-D6lpD1zo.js +0 -1
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-Bmgx7PSt.js +0 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-5XKz3kop.js +0 -1
- package/dist/PaymentIntegrationFormAdyen-B-Jbu2hU.js +0 -1
- package/dist/PaymentIntegrationFormStripe-Bnn8S1o5.js +0 -1
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-UH9AVXnG.js +0 -1
- package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-ifai5HVr.js +0 -1
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-DaWlLor0.mjs +0 -217
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-DdUoeTUL.js +0 -1
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-CyYhYYRp.mjs +0 -37
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DdjYVNku.js +0 -1
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-Cu55ZvCH.js +0 -1
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-BKDMwuyh.js +0 -1
- package/dist/component--Y7Igv5i.mjs +0 -1022
- package/dist/component-DIy1hvJM.js +0 -1
- package/dist/components/BillingInformation/BillingInformation.cjs.js +0 -1
- package/dist/components/BillingInformationForm/BillingInformationForm.cjs.js +0 -1
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs.js +0 -1
- package/dist/components/Invoice/Invoice.cjs.js +0 -1
- package/dist/components/InvoiceDetails/InvoiceDetails.cjs.js +0 -1
- package/dist/components/InvoiceHeader/InvoiceHeader.cjs.js +0 -1
- package/dist/components/InvoiceHeader/InvoiceHeader.es.js +0 -123
- package/dist/components/InvoicesList/InvoicesList.cjs.js +0 -1
- package/dist/components/PaymentHistory/PaymentHistory.cjs.js +0 -1
- package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs.js +0 -1
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs.js +0 -1
- package/dist/components/SubscriptionsList/SubscriptionsList.cjs.js +0 -1
- package/dist/components/WalletBalances/WalletBalances.cjs.js +0 -1
- package/dist/core/index.cjs.js +0 -1
- package/dist/core/index.es.js +0 -6
- package/dist/customer-brfznoHY.js +0 -1
- package/dist/en-US-BvOHPudj.js +0 -1
- package/dist/index-BMWWP8xj.js +0 -1
- package/dist/index-Do7kzLpg.mjs +0 -265
- package/dist/index.cjs.js +0 -1
- package/dist/index.es.js +0 -51
- package/dist/invoices-Cf3dSYSj.js +0 -1
- package/dist/nl-NL-COGUFg60.js +0 -1
- package/dist/paymentMethods-DVDC_WfL.js +0 -1
- package/dist/payments-DVZFO5yb.js +0 -1
- package/dist/pricing-CuYndX6t.js +0 -1
- package/dist/pricing-GwLCiSzs.mjs +0 -19
- package/dist/registry-Ck0Gb6rj.mjs +0 -153
- package/dist/registry-Cra6yoB4.js +0 -1
- package/dist/screens/Checkout/Checkout.cjs.js +0 -1
- package/dist/screens/CustomerOverview/CustomerOverview.cjs.js +0 -1
- package/dist/screens/PayInvoice/PayInvoice.cjs.js +0 -1
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs.js +0 -1
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs.js +0 -1
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs.js +0 -1
- package/dist/solvimon-web.css +0 -1
- package/dist/subscriptions-BFCKVHnP.js +0 -1
- package/dist/useActionDispatchProvider-aJOy3kr1.js +0 -1
- package/dist/useIncrementalLoading-CkY2klIW.js +0 -1
- package/dist/useInvoicesList-DmisMQzy.js +0 -1
- package/dist/useLoadInitialData-_BjCD0Jc.js +0 -1
- package/dist/usePaymentMethodOptions-xeSTmaVo.js +0 -1
- package/dist/usePayments-BieVBaz-.js +0 -1
- package/dist/usePayments-D88XSZfS.mjs +0 -42
- package/dist/usePortal-B954nyEB.js +0 -1
- package/dist/useService-BiljI7XA.js +0 -1
- package/dist/useSubscription-9rJpFNUF.mjs +0 -29
- package/dist/useSubscription-k3limdu_.js +0 -1
- package/dist/vendor-ui-Dfh3_g4q.js +0 -1
- package/dist/vendor-ui-ItGf7wJV.mjs +0 -29938
|
@@ -0,0 +1,1573 @@
|
|
|
1
|
+
import { computed, ref, shallowRef, watch, getCurrentScope, onScopeDispose, shallowReadonly, unref } from "vue";
|
|
2
|
+
const _export_sfc = (sfc, props) => {
|
|
3
|
+
const target = sfc.__vccOpts || sfc;
|
|
4
|
+
for (const [key, val] of props) {
|
|
5
|
+
target[key] = val;
|
|
6
|
+
}
|
|
7
|
+
return target;
|
|
8
|
+
};
|
|
9
|
+
const min = Math.min;
|
|
10
|
+
const max = Math.max;
|
|
11
|
+
const round = Math.round;
|
|
12
|
+
const floor = Math.floor;
|
|
13
|
+
const createCoords = (v) => ({
|
|
14
|
+
x: v,
|
|
15
|
+
y: v
|
|
16
|
+
});
|
|
17
|
+
const oppositeSideMap = {
|
|
18
|
+
left: "right",
|
|
19
|
+
right: "left",
|
|
20
|
+
bottom: "top",
|
|
21
|
+
top: "bottom"
|
|
22
|
+
};
|
|
23
|
+
const oppositeAlignmentMap = {
|
|
24
|
+
start: "end",
|
|
25
|
+
end: "start"
|
|
26
|
+
};
|
|
27
|
+
function clamp(start, value, end) {
|
|
28
|
+
return max(start, min(value, end));
|
|
29
|
+
}
|
|
30
|
+
function evaluate(value, param) {
|
|
31
|
+
return typeof value === "function" ? value(param) : value;
|
|
32
|
+
}
|
|
33
|
+
function getSide(placement) {
|
|
34
|
+
return placement.split("-")[0];
|
|
35
|
+
}
|
|
36
|
+
function getAlignment(placement) {
|
|
37
|
+
return placement.split("-")[1];
|
|
38
|
+
}
|
|
39
|
+
function getOppositeAxis(axis) {
|
|
40
|
+
return axis === "x" ? "y" : "x";
|
|
41
|
+
}
|
|
42
|
+
function getAxisLength(axis) {
|
|
43
|
+
return axis === "y" ? "height" : "width";
|
|
44
|
+
}
|
|
45
|
+
const yAxisSides = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
46
|
+
function getSideAxis(placement) {
|
|
47
|
+
return yAxisSides.has(getSide(placement)) ? "y" : "x";
|
|
48
|
+
}
|
|
49
|
+
function getAlignmentAxis(placement) {
|
|
50
|
+
return getOppositeAxis(getSideAxis(placement));
|
|
51
|
+
}
|
|
52
|
+
function getAlignmentSides(placement, rects, rtl) {
|
|
53
|
+
if (rtl === void 0) {
|
|
54
|
+
rtl = false;
|
|
55
|
+
}
|
|
56
|
+
const alignment = getAlignment(placement);
|
|
57
|
+
const alignmentAxis = getAlignmentAxis(placement);
|
|
58
|
+
const length = getAxisLength(alignmentAxis);
|
|
59
|
+
let mainAlignmentSide = alignmentAxis === "x" ? alignment === (rtl ? "end" : "start") ? "right" : "left" : alignment === "start" ? "bottom" : "top";
|
|
60
|
+
if (rects.reference[length] > rects.floating[length]) {
|
|
61
|
+
mainAlignmentSide = getOppositePlacement(mainAlignmentSide);
|
|
62
|
+
}
|
|
63
|
+
return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];
|
|
64
|
+
}
|
|
65
|
+
function getExpandedPlacements(placement) {
|
|
66
|
+
const oppositePlacement = getOppositePlacement(placement);
|
|
67
|
+
return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];
|
|
68
|
+
}
|
|
69
|
+
function getOppositeAlignmentPlacement(placement) {
|
|
70
|
+
return placement.replace(/start|end/g, (alignment) => oppositeAlignmentMap[alignment]);
|
|
71
|
+
}
|
|
72
|
+
const lrPlacement = ["left", "right"];
|
|
73
|
+
const rlPlacement = ["right", "left"];
|
|
74
|
+
const tbPlacement = ["top", "bottom"];
|
|
75
|
+
const btPlacement = ["bottom", "top"];
|
|
76
|
+
function getSideList(side, isStart, rtl) {
|
|
77
|
+
switch (side) {
|
|
78
|
+
case "top":
|
|
79
|
+
case "bottom":
|
|
80
|
+
if (rtl) return isStart ? rlPlacement : lrPlacement;
|
|
81
|
+
return isStart ? lrPlacement : rlPlacement;
|
|
82
|
+
case "left":
|
|
83
|
+
case "right":
|
|
84
|
+
return isStart ? tbPlacement : btPlacement;
|
|
85
|
+
default:
|
|
86
|
+
return [];
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
|
|
90
|
+
const alignment = getAlignment(placement);
|
|
91
|
+
let list = getSideList(getSide(placement), direction === "start", rtl);
|
|
92
|
+
if (alignment) {
|
|
93
|
+
list = list.map((side) => side + "-" + alignment);
|
|
94
|
+
if (flipAlignment) {
|
|
95
|
+
list = list.concat(list.map(getOppositeAlignmentPlacement));
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
return list;
|
|
99
|
+
}
|
|
100
|
+
function getOppositePlacement(placement) {
|
|
101
|
+
return placement.replace(/left|right|bottom|top/g, (side) => oppositeSideMap[side]);
|
|
102
|
+
}
|
|
103
|
+
function expandPaddingObject(padding) {
|
|
104
|
+
return {
|
|
105
|
+
top: 0,
|
|
106
|
+
right: 0,
|
|
107
|
+
bottom: 0,
|
|
108
|
+
left: 0,
|
|
109
|
+
...padding
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
function getPaddingObject(padding) {
|
|
113
|
+
return typeof padding !== "number" ? expandPaddingObject(padding) : {
|
|
114
|
+
top: padding,
|
|
115
|
+
right: padding,
|
|
116
|
+
bottom: padding,
|
|
117
|
+
left: padding
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
function rectToClientRect(rect) {
|
|
121
|
+
const {
|
|
122
|
+
x,
|
|
123
|
+
y,
|
|
124
|
+
width,
|
|
125
|
+
height
|
|
126
|
+
} = rect;
|
|
127
|
+
return {
|
|
128
|
+
width,
|
|
129
|
+
height,
|
|
130
|
+
top: y,
|
|
131
|
+
left: x,
|
|
132
|
+
right: x + width,
|
|
133
|
+
bottom: y + height,
|
|
134
|
+
x,
|
|
135
|
+
y
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
function computeCoordsFromPlacement(_ref, placement, rtl) {
|
|
139
|
+
let {
|
|
140
|
+
reference,
|
|
141
|
+
floating
|
|
142
|
+
} = _ref;
|
|
143
|
+
const sideAxis = getSideAxis(placement);
|
|
144
|
+
const alignmentAxis = getAlignmentAxis(placement);
|
|
145
|
+
const alignLength = getAxisLength(alignmentAxis);
|
|
146
|
+
const side = getSide(placement);
|
|
147
|
+
const isVertical = sideAxis === "y";
|
|
148
|
+
const commonX = reference.x + reference.width / 2 - floating.width / 2;
|
|
149
|
+
const commonY = reference.y + reference.height / 2 - floating.height / 2;
|
|
150
|
+
const commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;
|
|
151
|
+
let coords;
|
|
152
|
+
switch (side) {
|
|
153
|
+
case "top":
|
|
154
|
+
coords = {
|
|
155
|
+
x: commonX,
|
|
156
|
+
y: reference.y - floating.height
|
|
157
|
+
};
|
|
158
|
+
break;
|
|
159
|
+
case "bottom":
|
|
160
|
+
coords = {
|
|
161
|
+
x: commonX,
|
|
162
|
+
y: reference.y + reference.height
|
|
163
|
+
};
|
|
164
|
+
break;
|
|
165
|
+
case "right":
|
|
166
|
+
coords = {
|
|
167
|
+
x: reference.x + reference.width,
|
|
168
|
+
y: commonY
|
|
169
|
+
};
|
|
170
|
+
break;
|
|
171
|
+
case "left":
|
|
172
|
+
coords = {
|
|
173
|
+
x: reference.x - floating.width,
|
|
174
|
+
y: commonY
|
|
175
|
+
};
|
|
176
|
+
break;
|
|
177
|
+
default:
|
|
178
|
+
coords = {
|
|
179
|
+
x: reference.x,
|
|
180
|
+
y: reference.y
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
switch (getAlignment(placement)) {
|
|
184
|
+
case "start":
|
|
185
|
+
coords[alignmentAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);
|
|
186
|
+
break;
|
|
187
|
+
case "end":
|
|
188
|
+
coords[alignmentAxis] += commonAlign * (rtl && isVertical ? -1 : 1);
|
|
189
|
+
break;
|
|
190
|
+
}
|
|
191
|
+
return coords;
|
|
192
|
+
}
|
|
193
|
+
async function detectOverflow(state, options) {
|
|
194
|
+
var _await$platform$isEle;
|
|
195
|
+
if (options === void 0) {
|
|
196
|
+
options = {};
|
|
197
|
+
}
|
|
198
|
+
const {
|
|
199
|
+
x,
|
|
200
|
+
y,
|
|
201
|
+
platform: platform2,
|
|
202
|
+
rects,
|
|
203
|
+
elements,
|
|
204
|
+
strategy
|
|
205
|
+
} = state;
|
|
206
|
+
const {
|
|
207
|
+
boundary = "clippingAncestors",
|
|
208
|
+
rootBoundary = "viewport",
|
|
209
|
+
elementContext = "floating",
|
|
210
|
+
altBoundary = false,
|
|
211
|
+
padding = 0
|
|
212
|
+
} = evaluate(options, state);
|
|
213
|
+
const paddingObject = getPaddingObject(padding);
|
|
214
|
+
const altContext = elementContext === "floating" ? "reference" : "floating";
|
|
215
|
+
const element = elements[altBoundary ? altContext : elementContext];
|
|
216
|
+
const clippingClientRect = rectToClientRect(await platform2.getClippingRect({
|
|
217
|
+
element: ((_await$platform$isEle = await (platform2.isElement == null ? void 0 : platform2.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || await (platform2.getDocumentElement == null ? void 0 : platform2.getDocumentElement(elements.floating)),
|
|
218
|
+
boundary,
|
|
219
|
+
rootBoundary,
|
|
220
|
+
strategy
|
|
221
|
+
}));
|
|
222
|
+
const rect = elementContext === "floating" ? {
|
|
223
|
+
x,
|
|
224
|
+
y,
|
|
225
|
+
width: rects.floating.width,
|
|
226
|
+
height: rects.floating.height
|
|
227
|
+
} : rects.reference;
|
|
228
|
+
const offsetParent = await (platform2.getOffsetParent == null ? void 0 : platform2.getOffsetParent(elements.floating));
|
|
229
|
+
const offsetScale = await (platform2.isElement == null ? void 0 : platform2.isElement(offsetParent)) ? await (platform2.getScale == null ? void 0 : platform2.getScale(offsetParent)) || {
|
|
230
|
+
x: 1,
|
|
231
|
+
y: 1
|
|
232
|
+
} : {
|
|
233
|
+
x: 1,
|
|
234
|
+
y: 1
|
|
235
|
+
};
|
|
236
|
+
const elementClientRect = rectToClientRect(platform2.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform2.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
237
|
+
elements,
|
|
238
|
+
rect,
|
|
239
|
+
offsetParent,
|
|
240
|
+
strategy
|
|
241
|
+
}) : rect);
|
|
242
|
+
return {
|
|
243
|
+
top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
|
|
244
|
+
bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
|
|
245
|
+
left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
|
|
246
|
+
right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
|
|
247
|
+
};
|
|
248
|
+
}
|
|
249
|
+
const computePosition$1 = async (reference, floating, config) => {
|
|
250
|
+
const {
|
|
251
|
+
placement = "bottom",
|
|
252
|
+
strategy = "absolute",
|
|
253
|
+
middleware = [],
|
|
254
|
+
platform: platform2
|
|
255
|
+
} = config;
|
|
256
|
+
const validMiddleware = middleware.filter(Boolean);
|
|
257
|
+
const rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(floating));
|
|
258
|
+
let rects = await platform2.getElementRects({
|
|
259
|
+
reference,
|
|
260
|
+
floating,
|
|
261
|
+
strategy
|
|
262
|
+
});
|
|
263
|
+
let {
|
|
264
|
+
x,
|
|
265
|
+
y
|
|
266
|
+
} = computeCoordsFromPlacement(rects, placement, rtl);
|
|
267
|
+
let statefulPlacement = placement;
|
|
268
|
+
let middlewareData = {};
|
|
269
|
+
let resetCount = 0;
|
|
270
|
+
for (let i = 0; i < validMiddleware.length; i++) {
|
|
271
|
+
var _platform$detectOverf;
|
|
272
|
+
const {
|
|
273
|
+
name,
|
|
274
|
+
fn
|
|
275
|
+
} = validMiddleware[i];
|
|
276
|
+
const {
|
|
277
|
+
x: nextX,
|
|
278
|
+
y: nextY,
|
|
279
|
+
data,
|
|
280
|
+
reset
|
|
281
|
+
} = await fn({
|
|
282
|
+
x,
|
|
283
|
+
y,
|
|
284
|
+
initialPlacement: placement,
|
|
285
|
+
placement: statefulPlacement,
|
|
286
|
+
strategy,
|
|
287
|
+
middlewareData,
|
|
288
|
+
rects,
|
|
289
|
+
platform: {
|
|
290
|
+
...platform2,
|
|
291
|
+
detectOverflow: (_platform$detectOverf = platform2.detectOverflow) != null ? _platform$detectOverf : detectOverflow
|
|
292
|
+
},
|
|
293
|
+
elements: {
|
|
294
|
+
reference,
|
|
295
|
+
floating
|
|
296
|
+
}
|
|
297
|
+
});
|
|
298
|
+
x = nextX != null ? nextX : x;
|
|
299
|
+
y = nextY != null ? nextY : y;
|
|
300
|
+
middlewareData = {
|
|
301
|
+
...middlewareData,
|
|
302
|
+
[name]: {
|
|
303
|
+
...middlewareData[name],
|
|
304
|
+
...data
|
|
305
|
+
}
|
|
306
|
+
};
|
|
307
|
+
if (reset && resetCount <= 50) {
|
|
308
|
+
resetCount++;
|
|
309
|
+
if (typeof reset === "object") {
|
|
310
|
+
if (reset.placement) {
|
|
311
|
+
statefulPlacement = reset.placement;
|
|
312
|
+
}
|
|
313
|
+
if (reset.rects) {
|
|
314
|
+
rects = reset.rects === true ? await platform2.getElementRects({
|
|
315
|
+
reference,
|
|
316
|
+
floating,
|
|
317
|
+
strategy
|
|
318
|
+
}) : reset.rects;
|
|
319
|
+
}
|
|
320
|
+
({
|
|
321
|
+
x,
|
|
322
|
+
y
|
|
323
|
+
} = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
|
|
324
|
+
}
|
|
325
|
+
i = -1;
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
return {
|
|
329
|
+
x,
|
|
330
|
+
y,
|
|
331
|
+
placement: statefulPlacement,
|
|
332
|
+
strategy,
|
|
333
|
+
middlewareData
|
|
334
|
+
};
|
|
335
|
+
};
|
|
336
|
+
const flip$1 = function(options) {
|
|
337
|
+
if (options === void 0) {
|
|
338
|
+
options = {};
|
|
339
|
+
}
|
|
340
|
+
return {
|
|
341
|
+
name: "flip",
|
|
342
|
+
options,
|
|
343
|
+
async fn(state) {
|
|
344
|
+
var _middlewareData$arrow, _middlewareData$flip;
|
|
345
|
+
const {
|
|
346
|
+
placement,
|
|
347
|
+
middlewareData,
|
|
348
|
+
rects,
|
|
349
|
+
initialPlacement,
|
|
350
|
+
platform: platform2,
|
|
351
|
+
elements
|
|
352
|
+
} = state;
|
|
353
|
+
const {
|
|
354
|
+
mainAxis: checkMainAxis = true,
|
|
355
|
+
crossAxis: checkCrossAxis = true,
|
|
356
|
+
fallbackPlacements: specifiedFallbackPlacements,
|
|
357
|
+
fallbackStrategy = "bestFit",
|
|
358
|
+
fallbackAxisSideDirection = "none",
|
|
359
|
+
flipAlignment = true,
|
|
360
|
+
...detectOverflowOptions
|
|
361
|
+
} = evaluate(options, state);
|
|
362
|
+
if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
|
|
363
|
+
return {};
|
|
364
|
+
}
|
|
365
|
+
const side = getSide(placement);
|
|
366
|
+
const initialSideAxis = getSideAxis(initialPlacement);
|
|
367
|
+
const isBasePlacement = getSide(initialPlacement) === initialPlacement;
|
|
368
|
+
const rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(elements.floating));
|
|
369
|
+
const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
|
|
370
|
+
const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== "none";
|
|
371
|
+
if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {
|
|
372
|
+
fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
|
|
373
|
+
}
|
|
374
|
+
const placements = [initialPlacement, ...fallbackPlacements];
|
|
375
|
+
const overflow = await platform2.detectOverflow(state, detectOverflowOptions);
|
|
376
|
+
const overflows = [];
|
|
377
|
+
let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
|
|
378
|
+
if (checkMainAxis) {
|
|
379
|
+
overflows.push(overflow[side]);
|
|
380
|
+
}
|
|
381
|
+
if (checkCrossAxis) {
|
|
382
|
+
const sides = getAlignmentSides(placement, rects, rtl);
|
|
383
|
+
overflows.push(overflow[sides[0]], overflow[sides[1]]);
|
|
384
|
+
}
|
|
385
|
+
overflowsData = [...overflowsData, {
|
|
386
|
+
placement,
|
|
387
|
+
overflows
|
|
388
|
+
}];
|
|
389
|
+
if (!overflows.every((side2) => side2 <= 0)) {
|
|
390
|
+
var _middlewareData$flip2, _overflowsData$filter;
|
|
391
|
+
const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
|
|
392
|
+
const nextPlacement = placements[nextIndex];
|
|
393
|
+
if (nextPlacement) {
|
|
394
|
+
const ignoreCrossAxisOverflow = checkCrossAxis === "alignment" ? initialSideAxis !== getSideAxis(nextPlacement) : false;
|
|
395
|
+
if (!ignoreCrossAxisOverflow || // We leave the current main axis only if every placement on that axis
|
|
396
|
+
// overflows the main axis.
|
|
397
|
+
overflowsData.every((d) => getSideAxis(d.placement) === initialSideAxis ? d.overflows[0] > 0 : true)) {
|
|
398
|
+
return {
|
|
399
|
+
data: {
|
|
400
|
+
index: nextIndex,
|
|
401
|
+
overflows: overflowsData
|
|
402
|
+
},
|
|
403
|
+
reset: {
|
|
404
|
+
placement: nextPlacement
|
|
405
|
+
}
|
|
406
|
+
};
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
let resetPlacement = (_overflowsData$filter = overflowsData.filter((d) => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;
|
|
410
|
+
if (!resetPlacement) {
|
|
411
|
+
switch (fallbackStrategy) {
|
|
412
|
+
case "bestFit": {
|
|
413
|
+
var _overflowsData$filter2;
|
|
414
|
+
const placement2 = (_overflowsData$filter2 = overflowsData.filter((d) => {
|
|
415
|
+
if (hasFallbackAxisSideDirection) {
|
|
416
|
+
const currentSideAxis = getSideAxis(d.placement);
|
|
417
|
+
return currentSideAxis === initialSideAxis || // Create a bias to the `y` side axis due to horizontal
|
|
418
|
+
// reading directions favoring greater width.
|
|
419
|
+
currentSideAxis === "y";
|
|
420
|
+
}
|
|
421
|
+
return true;
|
|
422
|
+
}).map((d) => [d.placement, d.overflows.filter((overflow2) => overflow2 > 0).reduce((acc, overflow2) => acc + overflow2, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$filter2[0];
|
|
423
|
+
if (placement2) {
|
|
424
|
+
resetPlacement = placement2;
|
|
425
|
+
}
|
|
426
|
+
break;
|
|
427
|
+
}
|
|
428
|
+
case "initialPlacement":
|
|
429
|
+
resetPlacement = initialPlacement;
|
|
430
|
+
break;
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
if (placement !== resetPlacement) {
|
|
434
|
+
return {
|
|
435
|
+
reset: {
|
|
436
|
+
placement: resetPlacement
|
|
437
|
+
}
|
|
438
|
+
};
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
return {};
|
|
442
|
+
}
|
|
443
|
+
};
|
|
444
|
+
};
|
|
445
|
+
const originSides = /* @__PURE__ */ new Set(["left", "top"]);
|
|
446
|
+
async function convertValueToCoords(state, options) {
|
|
447
|
+
const {
|
|
448
|
+
placement,
|
|
449
|
+
platform: platform2,
|
|
450
|
+
elements
|
|
451
|
+
} = state;
|
|
452
|
+
const rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(elements.floating));
|
|
453
|
+
const side = getSide(placement);
|
|
454
|
+
const alignment = getAlignment(placement);
|
|
455
|
+
const isVertical = getSideAxis(placement) === "y";
|
|
456
|
+
const mainAxisMulti = originSides.has(side) ? -1 : 1;
|
|
457
|
+
const crossAxisMulti = rtl && isVertical ? -1 : 1;
|
|
458
|
+
const rawValue = evaluate(options, state);
|
|
459
|
+
let {
|
|
460
|
+
mainAxis,
|
|
461
|
+
crossAxis,
|
|
462
|
+
alignmentAxis
|
|
463
|
+
} = typeof rawValue === "number" ? {
|
|
464
|
+
mainAxis: rawValue,
|
|
465
|
+
crossAxis: 0,
|
|
466
|
+
alignmentAxis: null
|
|
467
|
+
} : {
|
|
468
|
+
mainAxis: rawValue.mainAxis || 0,
|
|
469
|
+
crossAxis: rawValue.crossAxis || 0,
|
|
470
|
+
alignmentAxis: rawValue.alignmentAxis
|
|
471
|
+
};
|
|
472
|
+
if (alignment && typeof alignmentAxis === "number") {
|
|
473
|
+
crossAxis = alignment === "end" ? alignmentAxis * -1 : alignmentAxis;
|
|
474
|
+
}
|
|
475
|
+
return isVertical ? {
|
|
476
|
+
x: crossAxis * crossAxisMulti,
|
|
477
|
+
y: mainAxis * mainAxisMulti
|
|
478
|
+
} : {
|
|
479
|
+
x: mainAxis * mainAxisMulti,
|
|
480
|
+
y: crossAxis * crossAxisMulti
|
|
481
|
+
};
|
|
482
|
+
}
|
|
483
|
+
const offset$1 = function(options) {
|
|
484
|
+
if (options === void 0) {
|
|
485
|
+
options = 0;
|
|
486
|
+
}
|
|
487
|
+
return {
|
|
488
|
+
name: "offset",
|
|
489
|
+
options,
|
|
490
|
+
async fn(state) {
|
|
491
|
+
var _middlewareData$offse, _middlewareData$arrow;
|
|
492
|
+
const {
|
|
493
|
+
x,
|
|
494
|
+
y,
|
|
495
|
+
placement,
|
|
496
|
+
middlewareData
|
|
497
|
+
} = state;
|
|
498
|
+
const diffCoords = await convertValueToCoords(state, options);
|
|
499
|
+
if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
|
|
500
|
+
return {};
|
|
501
|
+
}
|
|
502
|
+
return {
|
|
503
|
+
x: x + diffCoords.x,
|
|
504
|
+
y: y + diffCoords.y,
|
|
505
|
+
data: {
|
|
506
|
+
...diffCoords,
|
|
507
|
+
placement
|
|
508
|
+
}
|
|
509
|
+
};
|
|
510
|
+
}
|
|
511
|
+
};
|
|
512
|
+
};
|
|
513
|
+
const shift$1 = function(options) {
|
|
514
|
+
if (options === void 0) {
|
|
515
|
+
options = {};
|
|
516
|
+
}
|
|
517
|
+
return {
|
|
518
|
+
name: "shift",
|
|
519
|
+
options,
|
|
520
|
+
async fn(state) {
|
|
521
|
+
const {
|
|
522
|
+
x,
|
|
523
|
+
y,
|
|
524
|
+
placement,
|
|
525
|
+
platform: platform2
|
|
526
|
+
} = state;
|
|
527
|
+
const {
|
|
528
|
+
mainAxis: checkMainAxis = true,
|
|
529
|
+
crossAxis: checkCrossAxis = false,
|
|
530
|
+
limiter = {
|
|
531
|
+
fn: (_ref) => {
|
|
532
|
+
let {
|
|
533
|
+
x: x2,
|
|
534
|
+
y: y2
|
|
535
|
+
} = _ref;
|
|
536
|
+
return {
|
|
537
|
+
x: x2,
|
|
538
|
+
y: y2
|
|
539
|
+
};
|
|
540
|
+
}
|
|
541
|
+
},
|
|
542
|
+
...detectOverflowOptions
|
|
543
|
+
} = evaluate(options, state);
|
|
544
|
+
const coords = {
|
|
545
|
+
x,
|
|
546
|
+
y
|
|
547
|
+
};
|
|
548
|
+
const overflow = await platform2.detectOverflow(state, detectOverflowOptions);
|
|
549
|
+
const crossAxis = getSideAxis(getSide(placement));
|
|
550
|
+
const mainAxis = getOppositeAxis(crossAxis);
|
|
551
|
+
let mainAxisCoord = coords[mainAxis];
|
|
552
|
+
let crossAxisCoord = coords[crossAxis];
|
|
553
|
+
if (checkMainAxis) {
|
|
554
|
+
const minSide = mainAxis === "y" ? "top" : "left";
|
|
555
|
+
const maxSide = mainAxis === "y" ? "bottom" : "right";
|
|
556
|
+
const min2 = mainAxisCoord + overflow[minSide];
|
|
557
|
+
const max2 = mainAxisCoord - overflow[maxSide];
|
|
558
|
+
mainAxisCoord = clamp(min2, mainAxisCoord, max2);
|
|
559
|
+
}
|
|
560
|
+
if (checkCrossAxis) {
|
|
561
|
+
const minSide = crossAxis === "y" ? "top" : "left";
|
|
562
|
+
const maxSide = crossAxis === "y" ? "bottom" : "right";
|
|
563
|
+
const min2 = crossAxisCoord + overflow[minSide];
|
|
564
|
+
const max2 = crossAxisCoord - overflow[maxSide];
|
|
565
|
+
crossAxisCoord = clamp(min2, crossAxisCoord, max2);
|
|
566
|
+
}
|
|
567
|
+
const limitedCoords = limiter.fn({
|
|
568
|
+
...state,
|
|
569
|
+
[mainAxis]: mainAxisCoord,
|
|
570
|
+
[crossAxis]: crossAxisCoord
|
|
571
|
+
});
|
|
572
|
+
return {
|
|
573
|
+
...limitedCoords,
|
|
574
|
+
data: {
|
|
575
|
+
x: limitedCoords.x - x,
|
|
576
|
+
y: limitedCoords.y - y,
|
|
577
|
+
enabled: {
|
|
578
|
+
[mainAxis]: checkMainAxis,
|
|
579
|
+
[crossAxis]: checkCrossAxis
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
};
|
|
583
|
+
}
|
|
584
|
+
};
|
|
585
|
+
};
|
|
586
|
+
const size$1 = function(options) {
|
|
587
|
+
if (options === void 0) {
|
|
588
|
+
options = {};
|
|
589
|
+
}
|
|
590
|
+
return {
|
|
591
|
+
name: "size",
|
|
592
|
+
options,
|
|
593
|
+
async fn(state) {
|
|
594
|
+
var _state$middlewareData, _state$middlewareData2;
|
|
595
|
+
const {
|
|
596
|
+
placement,
|
|
597
|
+
rects,
|
|
598
|
+
platform: platform2,
|
|
599
|
+
elements
|
|
600
|
+
} = state;
|
|
601
|
+
const {
|
|
602
|
+
apply = () => {
|
|
603
|
+
},
|
|
604
|
+
...detectOverflowOptions
|
|
605
|
+
} = evaluate(options, state);
|
|
606
|
+
const overflow = await platform2.detectOverflow(state, detectOverflowOptions);
|
|
607
|
+
const side = getSide(placement);
|
|
608
|
+
const alignment = getAlignment(placement);
|
|
609
|
+
const isYAxis = getSideAxis(placement) === "y";
|
|
610
|
+
const {
|
|
611
|
+
width,
|
|
612
|
+
height
|
|
613
|
+
} = rects.floating;
|
|
614
|
+
let heightSide;
|
|
615
|
+
let widthSide;
|
|
616
|
+
if (side === "top" || side === "bottom") {
|
|
617
|
+
heightSide = side;
|
|
618
|
+
widthSide = alignment === (await (platform2.isRTL == null ? void 0 : platform2.isRTL(elements.floating)) ? "start" : "end") ? "left" : "right";
|
|
619
|
+
} else {
|
|
620
|
+
widthSide = side;
|
|
621
|
+
heightSide = alignment === "end" ? "top" : "bottom";
|
|
622
|
+
}
|
|
623
|
+
const maximumClippingHeight = height - overflow.top - overflow.bottom;
|
|
624
|
+
const maximumClippingWidth = width - overflow.left - overflow.right;
|
|
625
|
+
const overflowAvailableHeight = min(height - overflow[heightSide], maximumClippingHeight);
|
|
626
|
+
const overflowAvailableWidth = min(width - overflow[widthSide], maximumClippingWidth);
|
|
627
|
+
const noShift = !state.middlewareData.shift;
|
|
628
|
+
let availableHeight = overflowAvailableHeight;
|
|
629
|
+
let availableWidth = overflowAvailableWidth;
|
|
630
|
+
if ((_state$middlewareData = state.middlewareData.shift) != null && _state$middlewareData.enabled.x) {
|
|
631
|
+
availableWidth = maximumClippingWidth;
|
|
632
|
+
}
|
|
633
|
+
if ((_state$middlewareData2 = state.middlewareData.shift) != null && _state$middlewareData2.enabled.y) {
|
|
634
|
+
availableHeight = maximumClippingHeight;
|
|
635
|
+
}
|
|
636
|
+
if (noShift && !alignment) {
|
|
637
|
+
const xMin = max(overflow.left, 0);
|
|
638
|
+
const xMax = max(overflow.right, 0);
|
|
639
|
+
const yMin = max(overflow.top, 0);
|
|
640
|
+
const yMax = max(overflow.bottom, 0);
|
|
641
|
+
if (isYAxis) {
|
|
642
|
+
availableWidth = width - 2 * (xMin !== 0 || xMax !== 0 ? xMin + xMax : max(overflow.left, overflow.right));
|
|
643
|
+
} else {
|
|
644
|
+
availableHeight = height - 2 * (yMin !== 0 || yMax !== 0 ? yMin + yMax : max(overflow.top, overflow.bottom));
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
await apply({
|
|
648
|
+
...state,
|
|
649
|
+
availableWidth,
|
|
650
|
+
availableHeight
|
|
651
|
+
});
|
|
652
|
+
const nextDimensions = await platform2.getDimensions(elements.floating);
|
|
653
|
+
if (width !== nextDimensions.width || height !== nextDimensions.height) {
|
|
654
|
+
return {
|
|
655
|
+
reset: {
|
|
656
|
+
rects: true
|
|
657
|
+
}
|
|
658
|
+
};
|
|
659
|
+
}
|
|
660
|
+
return {};
|
|
661
|
+
}
|
|
662
|
+
};
|
|
663
|
+
};
|
|
664
|
+
function hasWindow() {
|
|
665
|
+
return typeof window !== "undefined";
|
|
666
|
+
}
|
|
667
|
+
function getNodeName(node) {
|
|
668
|
+
if (isNode(node)) {
|
|
669
|
+
return (node.nodeName || "").toLowerCase();
|
|
670
|
+
}
|
|
671
|
+
return "#document";
|
|
672
|
+
}
|
|
673
|
+
function getWindow(node) {
|
|
674
|
+
var _node$ownerDocument;
|
|
675
|
+
return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
|
|
676
|
+
}
|
|
677
|
+
function getDocumentElement(node) {
|
|
678
|
+
var _ref;
|
|
679
|
+
return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;
|
|
680
|
+
}
|
|
681
|
+
function isNode(value) {
|
|
682
|
+
if (!hasWindow()) {
|
|
683
|
+
return false;
|
|
684
|
+
}
|
|
685
|
+
return value instanceof Node || value instanceof getWindow(value).Node;
|
|
686
|
+
}
|
|
687
|
+
function isElement(value) {
|
|
688
|
+
if (!hasWindow()) {
|
|
689
|
+
return false;
|
|
690
|
+
}
|
|
691
|
+
return value instanceof Element || value instanceof getWindow(value).Element;
|
|
692
|
+
}
|
|
693
|
+
function isHTMLElement(value) {
|
|
694
|
+
if (!hasWindow()) {
|
|
695
|
+
return false;
|
|
696
|
+
}
|
|
697
|
+
return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;
|
|
698
|
+
}
|
|
699
|
+
function isShadowRoot(value) {
|
|
700
|
+
if (!hasWindow() || typeof ShadowRoot === "undefined") {
|
|
701
|
+
return false;
|
|
702
|
+
}
|
|
703
|
+
return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
|
|
704
|
+
}
|
|
705
|
+
const invalidOverflowDisplayValues = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
706
|
+
function isOverflowElement(element) {
|
|
707
|
+
const {
|
|
708
|
+
overflow,
|
|
709
|
+
overflowX,
|
|
710
|
+
overflowY,
|
|
711
|
+
display
|
|
712
|
+
} = getComputedStyle$1(element);
|
|
713
|
+
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !invalidOverflowDisplayValues.has(display);
|
|
714
|
+
}
|
|
715
|
+
const tableElements = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
716
|
+
function isTableElement(element) {
|
|
717
|
+
return tableElements.has(getNodeName(element));
|
|
718
|
+
}
|
|
719
|
+
const topLayerSelectors = [":popover-open", ":modal"];
|
|
720
|
+
function isTopLayer(element) {
|
|
721
|
+
return topLayerSelectors.some((selector) => {
|
|
722
|
+
try {
|
|
723
|
+
return element.matches(selector);
|
|
724
|
+
} catch (_e) {
|
|
725
|
+
return false;
|
|
726
|
+
}
|
|
727
|
+
});
|
|
728
|
+
}
|
|
729
|
+
const transformProperties = ["transform", "translate", "scale", "rotate", "perspective"];
|
|
730
|
+
const willChangeValues = ["transform", "translate", "scale", "rotate", "perspective", "filter"];
|
|
731
|
+
const containValues = ["paint", "layout", "strict", "content"];
|
|
732
|
+
function isContainingBlock(elementOrCss) {
|
|
733
|
+
const webkit = isWebKit();
|
|
734
|
+
const css = isElement(elementOrCss) ? getComputedStyle$1(elementOrCss) : elementOrCss;
|
|
735
|
+
return transformProperties.some((value) => css[value] ? css[value] !== "none" : false) || (css.containerType ? css.containerType !== "normal" : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== "none" : false) || !webkit && (css.filter ? css.filter !== "none" : false) || willChangeValues.some((value) => (css.willChange || "").includes(value)) || containValues.some((value) => (css.contain || "").includes(value));
|
|
736
|
+
}
|
|
737
|
+
function getContainingBlock(element) {
|
|
738
|
+
let currentNode = getParentNode(element);
|
|
739
|
+
while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
|
740
|
+
if (isContainingBlock(currentNode)) {
|
|
741
|
+
return currentNode;
|
|
742
|
+
} else if (isTopLayer(currentNode)) {
|
|
743
|
+
return null;
|
|
744
|
+
}
|
|
745
|
+
currentNode = getParentNode(currentNode);
|
|
746
|
+
}
|
|
747
|
+
return null;
|
|
748
|
+
}
|
|
749
|
+
function isWebKit() {
|
|
750
|
+
if (typeof CSS === "undefined" || !CSS.supports) return false;
|
|
751
|
+
return CSS.supports("-webkit-backdrop-filter", "none");
|
|
752
|
+
}
|
|
753
|
+
const lastTraversableNodeNames = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
754
|
+
function isLastTraversableNode(node) {
|
|
755
|
+
return lastTraversableNodeNames.has(getNodeName(node));
|
|
756
|
+
}
|
|
757
|
+
function getComputedStyle$1(element) {
|
|
758
|
+
return getWindow(element).getComputedStyle(element);
|
|
759
|
+
}
|
|
760
|
+
function getNodeScroll(element) {
|
|
761
|
+
if (isElement(element)) {
|
|
762
|
+
return {
|
|
763
|
+
scrollLeft: element.scrollLeft,
|
|
764
|
+
scrollTop: element.scrollTop
|
|
765
|
+
};
|
|
766
|
+
}
|
|
767
|
+
return {
|
|
768
|
+
scrollLeft: element.scrollX,
|
|
769
|
+
scrollTop: element.scrollY
|
|
770
|
+
};
|
|
771
|
+
}
|
|
772
|
+
function getParentNode(node) {
|
|
773
|
+
if (getNodeName(node) === "html") {
|
|
774
|
+
return node;
|
|
775
|
+
}
|
|
776
|
+
const result = (
|
|
777
|
+
// Step into the shadow DOM of the parent of a slotted node.
|
|
778
|
+
node.assignedSlot || // DOM Element detected.
|
|
779
|
+
node.parentNode || // ShadowRoot detected.
|
|
780
|
+
isShadowRoot(node) && node.host || // Fallback.
|
|
781
|
+
getDocumentElement(node)
|
|
782
|
+
);
|
|
783
|
+
return isShadowRoot(result) ? result.host : result;
|
|
784
|
+
}
|
|
785
|
+
function getNearestOverflowAncestor(node) {
|
|
786
|
+
const parentNode = getParentNode(node);
|
|
787
|
+
if (isLastTraversableNode(parentNode)) {
|
|
788
|
+
return node.ownerDocument ? node.ownerDocument.body : node.body;
|
|
789
|
+
}
|
|
790
|
+
if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
|
|
791
|
+
return parentNode;
|
|
792
|
+
}
|
|
793
|
+
return getNearestOverflowAncestor(parentNode);
|
|
794
|
+
}
|
|
795
|
+
function getOverflowAncestors(node, list, traverseIframes) {
|
|
796
|
+
var _node$ownerDocument2;
|
|
797
|
+
if (list === void 0) {
|
|
798
|
+
list = [];
|
|
799
|
+
}
|
|
800
|
+
if (traverseIframes === void 0) {
|
|
801
|
+
traverseIframes = true;
|
|
802
|
+
}
|
|
803
|
+
const scrollableAncestor = getNearestOverflowAncestor(node);
|
|
804
|
+
const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
|
|
805
|
+
const win = getWindow(scrollableAncestor);
|
|
806
|
+
if (isBody) {
|
|
807
|
+
const frameElement = getFrameElement(win);
|
|
808
|
+
return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);
|
|
809
|
+
}
|
|
810
|
+
return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
|
|
811
|
+
}
|
|
812
|
+
function getFrameElement(win) {
|
|
813
|
+
return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;
|
|
814
|
+
}
|
|
815
|
+
function getCssDimensions(element) {
|
|
816
|
+
const css = getComputedStyle$1(element);
|
|
817
|
+
let width = parseFloat(css.width) || 0;
|
|
818
|
+
let height = parseFloat(css.height) || 0;
|
|
819
|
+
const hasOffset = isHTMLElement(element);
|
|
820
|
+
const offsetWidth = hasOffset ? element.offsetWidth : width;
|
|
821
|
+
const offsetHeight = hasOffset ? element.offsetHeight : height;
|
|
822
|
+
const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;
|
|
823
|
+
if (shouldFallback) {
|
|
824
|
+
width = offsetWidth;
|
|
825
|
+
height = offsetHeight;
|
|
826
|
+
}
|
|
827
|
+
return {
|
|
828
|
+
width,
|
|
829
|
+
height,
|
|
830
|
+
$: shouldFallback
|
|
831
|
+
};
|
|
832
|
+
}
|
|
833
|
+
function unwrapElement$1(element) {
|
|
834
|
+
return !isElement(element) ? element.contextElement : element;
|
|
835
|
+
}
|
|
836
|
+
function getScale(element) {
|
|
837
|
+
const domElement = unwrapElement$1(element);
|
|
838
|
+
if (!isHTMLElement(domElement)) {
|
|
839
|
+
return createCoords(1);
|
|
840
|
+
}
|
|
841
|
+
const rect = domElement.getBoundingClientRect();
|
|
842
|
+
const {
|
|
843
|
+
width,
|
|
844
|
+
height,
|
|
845
|
+
$
|
|
846
|
+
} = getCssDimensions(domElement);
|
|
847
|
+
let x = ($ ? round(rect.width) : rect.width) / width;
|
|
848
|
+
let y = ($ ? round(rect.height) : rect.height) / height;
|
|
849
|
+
if (!x || !Number.isFinite(x)) {
|
|
850
|
+
x = 1;
|
|
851
|
+
}
|
|
852
|
+
if (!y || !Number.isFinite(y)) {
|
|
853
|
+
y = 1;
|
|
854
|
+
}
|
|
855
|
+
return {
|
|
856
|
+
x,
|
|
857
|
+
y
|
|
858
|
+
};
|
|
859
|
+
}
|
|
860
|
+
const noOffsets = /* @__PURE__ */ createCoords(0);
|
|
861
|
+
function getVisualOffsets(element) {
|
|
862
|
+
const win = getWindow(element);
|
|
863
|
+
if (!isWebKit() || !win.visualViewport) {
|
|
864
|
+
return noOffsets;
|
|
865
|
+
}
|
|
866
|
+
return {
|
|
867
|
+
x: win.visualViewport.offsetLeft,
|
|
868
|
+
y: win.visualViewport.offsetTop
|
|
869
|
+
};
|
|
870
|
+
}
|
|
871
|
+
function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
|
|
872
|
+
if (isFixed === void 0) {
|
|
873
|
+
isFixed = false;
|
|
874
|
+
}
|
|
875
|
+
if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {
|
|
876
|
+
return false;
|
|
877
|
+
}
|
|
878
|
+
return isFixed;
|
|
879
|
+
}
|
|
880
|
+
function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
|
|
881
|
+
if (includeScale === void 0) {
|
|
882
|
+
includeScale = false;
|
|
883
|
+
}
|
|
884
|
+
if (isFixedStrategy === void 0) {
|
|
885
|
+
isFixedStrategy = false;
|
|
886
|
+
}
|
|
887
|
+
const clientRect = element.getBoundingClientRect();
|
|
888
|
+
const domElement = unwrapElement$1(element);
|
|
889
|
+
let scale = createCoords(1);
|
|
890
|
+
if (includeScale) {
|
|
891
|
+
if (offsetParent) {
|
|
892
|
+
if (isElement(offsetParent)) {
|
|
893
|
+
scale = getScale(offsetParent);
|
|
894
|
+
}
|
|
895
|
+
} else {
|
|
896
|
+
scale = getScale(element);
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
|
|
900
|
+
let x = (clientRect.left + visualOffsets.x) / scale.x;
|
|
901
|
+
let y = (clientRect.top + visualOffsets.y) / scale.y;
|
|
902
|
+
let width = clientRect.width / scale.x;
|
|
903
|
+
let height = clientRect.height / scale.y;
|
|
904
|
+
if (domElement) {
|
|
905
|
+
const win = getWindow(domElement);
|
|
906
|
+
const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
|
|
907
|
+
let currentWin = win;
|
|
908
|
+
let currentIFrame = getFrameElement(currentWin);
|
|
909
|
+
while (currentIFrame && offsetParent && offsetWin !== currentWin) {
|
|
910
|
+
const iframeScale = getScale(currentIFrame);
|
|
911
|
+
const iframeRect = currentIFrame.getBoundingClientRect();
|
|
912
|
+
const css = getComputedStyle$1(currentIFrame);
|
|
913
|
+
const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
|
|
914
|
+
const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
|
|
915
|
+
x *= iframeScale.x;
|
|
916
|
+
y *= iframeScale.y;
|
|
917
|
+
width *= iframeScale.x;
|
|
918
|
+
height *= iframeScale.y;
|
|
919
|
+
x += left;
|
|
920
|
+
y += top;
|
|
921
|
+
currentWin = getWindow(currentIFrame);
|
|
922
|
+
currentIFrame = getFrameElement(currentWin);
|
|
923
|
+
}
|
|
924
|
+
}
|
|
925
|
+
return rectToClientRect({
|
|
926
|
+
width,
|
|
927
|
+
height,
|
|
928
|
+
x,
|
|
929
|
+
y
|
|
930
|
+
});
|
|
931
|
+
}
|
|
932
|
+
function getWindowScrollBarX(element, rect) {
|
|
933
|
+
const leftScroll = getNodeScroll(element).scrollLeft;
|
|
934
|
+
if (!rect) {
|
|
935
|
+
return getBoundingClientRect(getDocumentElement(element)).left + leftScroll;
|
|
936
|
+
}
|
|
937
|
+
return rect.left + leftScroll;
|
|
938
|
+
}
|
|
939
|
+
function getHTMLOffset(documentElement, scroll) {
|
|
940
|
+
const htmlRect = documentElement.getBoundingClientRect();
|
|
941
|
+
const x = htmlRect.left + scroll.scrollLeft - getWindowScrollBarX(documentElement, htmlRect);
|
|
942
|
+
const y = htmlRect.top + scroll.scrollTop;
|
|
943
|
+
return {
|
|
944
|
+
x,
|
|
945
|
+
y
|
|
946
|
+
};
|
|
947
|
+
}
|
|
948
|
+
function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
|
|
949
|
+
let {
|
|
950
|
+
elements,
|
|
951
|
+
rect,
|
|
952
|
+
offsetParent,
|
|
953
|
+
strategy
|
|
954
|
+
} = _ref;
|
|
955
|
+
const isFixed = strategy === "fixed";
|
|
956
|
+
const documentElement = getDocumentElement(offsetParent);
|
|
957
|
+
const topLayer = elements ? isTopLayer(elements.floating) : false;
|
|
958
|
+
if (offsetParent === documentElement || topLayer && isFixed) {
|
|
959
|
+
return rect;
|
|
960
|
+
}
|
|
961
|
+
let scroll = {
|
|
962
|
+
scrollLeft: 0,
|
|
963
|
+
scrollTop: 0
|
|
964
|
+
};
|
|
965
|
+
let scale = createCoords(1);
|
|
966
|
+
const offsets = createCoords(0);
|
|
967
|
+
const isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
968
|
+
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
|
969
|
+
if (getNodeName(offsetParent) !== "body" || isOverflowElement(documentElement)) {
|
|
970
|
+
scroll = getNodeScroll(offsetParent);
|
|
971
|
+
}
|
|
972
|
+
if (isHTMLElement(offsetParent)) {
|
|
973
|
+
const offsetRect = getBoundingClientRect(offsetParent);
|
|
974
|
+
scale = getScale(offsetParent);
|
|
975
|
+
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
976
|
+
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
977
|
+
}
|
|
978
|
+
}
|
|
979
|
+
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
|
|
980
|
+
return {
|
|
981
|
+
width: rect.width * scale.x,
|
|
982
|
+
height: rect.height * scale.y,
|
|
983
|
+
x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x + htmlOffset.x,
|
|
984
|
+
y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y + htmlOffset.y
|
|
985
|
+
};
|
|
986
|
+
}
|
|
987
|
+
function getClientRects(element) {
|
|
988
|
+
return Array.from(element.getClientRects());
|
|
989
|
+
}
|
|
990
|
+
function getDocumentRect(element) {
|
|
991
|
+
const html = getDocumentElement(element);
|
|
992
|
+
const scroll = getNodeScroll(element);
|
|
993
|
+
const body = element.ownerDocument.body;
|
|
994
|
+
const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
|
|
995
|
+
const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
|
|
996
|
+
let x = -scroll.scrollLeft + getWindowScrollBarX(element);
|
|
997
|
+
const y = -scroll.scrollTop;
|
|
998
|
+
if (getComputedStyle$1(body).direction === "rtl") {
|
|
999
|
+
x += max(html.clientWidth, body.clientWidth) - width;
|
|
1000
|
+
}
|
|
1001
|
+
return {
|
|
1002
|
+
width,
|
|
1003
|
+
height,
|
|
1004
|
+
x,
|
|
1005
|
+
y
|
|
1006
|
+
};
|
|
1007
|
+
}
|
|
1008
|
+
const SCROLLBAR_MAX = 25;
|
|
1009
|
+
function getViewportRect(element, strategy) {
|
|
1010
|
+
const win = getWindow(element);
|
|
1011
|
+
const html = getDocumentElement(element);
|
|
1012
|
+
const visualViewport = win.visualViewport;
|
|
1013
|
+
let width = html.clientWidth;
|
|
1014
|
+
let height = html.clientHeight;
|
|
1015
|
+
let x = 0;
|
|
1016
|
+
let y = 0;
|
|
1017
|
+
if (visualViewport) {
|
|
1018
|
+
width = visualViewport.width;
|
|
1019
|
+
height = visualViewport.height;
|
|
1020
|
+
const visualViewportBased = isWebKit();
|
|
1021
|
+
if (!visualViewportBased || visualViewportBased && strategy === "fixed") {
|
|
1022
|
+
x = visualViewport.offsetLeft;
|
|
1023
|
+
y = visualViewport.offsetTop;
|
|
1024
|
+
}
|
|
1025
|
+
}
|
|
1026
|
+
const windowScrollbarX = getWindowScrollBarX(html);
|
|
1027
|
+
if (windowScrollbarX <= 0) {
|
|
1028
|
+
const doc = html.ownerDocument;
|
|
1029
|
+
const body = doc.body;
|
|
1030
|
+
const bodyStyles = getComputedStyle(body);
|
|
1031
|
+
const bodyMarginInline = doc.compatMode === "CSS1Compat" ? parseFloat(bodyStyles.marginLeft) + parseFloat(bodyStyles.marginRight) || 0 : 0;
|
|
1032
|
+
const clippingStableScrollbarWidth = Math.abs(html.clientWidth - body.clientWidth - bodyMarginInline);
|
|
1033
|
+
if (clippingStableScrollbarWidth <= SCROLLBAR_MAX) {
|
|
1034
|
+
width -= clippingStableScrollbarWidth;
|
|
1035
|
+
}
|
|
1036
|
+
} else if (windowScrollbarX <= SCROLLBAR_MAX) {
|
|
1037
|
+
width += windowScrollbarX;
|
|
1038
|
+
}
|
|
1039
|
+
return {
|
|
1040
|
+
width,
|
|
1041
|
+
height,
|
|
1042
|
+
x,
|
|
1043
|
+
y
|
|
1044
|
+
};
|
|
1045
|
+
}
|
|
1046
|
+
const absoluteOrFixed = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
1047
|
+
function getInnerBoundingClientRect(element, strategy) {
|
|
1048
|
+
const clientRect = getBoundingClientRect(element, true, strategy === "fixed");
|
|
1049
|
+
const top = clientRect.top + element.clientTop;
|
|
1050
|
+
const left = clientRect.left + element.clientLeft;
|
|
1051
|
+
const scale = isHTMLElement(element) ? getScale(element) : createCoords(1);
|
|
1052
|
+
const width = element.clientWidth * scale.x;
|
|
1053
|
+
const height = element.clientHeight * scale.y;
|
|
1054
|
+
const x = left * scale.x;
|
|
1055
|
+
const y = top * scale.y;
|
|
1056
|
+
return {
|
|
1057
|
+
width,
|
|
1058
|
+
height,
|
|
1059
|
+
x,
|
|
1060
|
+
y
|
|
1061
|
+
};
|
|
1062
|
+
}
|
|
1063
|
+
function getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {
|
|
1064
|
+
let rect;
|
|
1065
|
+
if (clippingAncestor === "viewport") {
|
|
1066
|
+
rect = getViewportRect(element, strategy);
|
|
1067
|
+
} else if (clippingAncestor === "document") {
|
|
1068
|
+
rect = getDocumentRect(getDocumentElement(element));
|
|
1069
|
+
} else if (isElement(clippingAncestor)) {
|
|
1070
|
+
rect = getInnerBoundingClientRect(clippingAncestor, strategy);
|
|
1071
|
+
} else {
|
|
1072
|
+
const visualOffsets = getVisualOffsets(element);
|
|
1073
|
+
rect = {
|
|
1074
|
+
x: clippingAncestor.x - visualOffsets.x,
|
|
1075
|
+
y: clippingAncestor.y - visualOffsets.y,
|
|
1076
|
+
width: clippingAncestor.width,
|
|
1077
|
+
height: clippingAncestor.height
|
|
1078
|
+
};
|
|
1079
|
+
}
|
|
1080
|
+
return rectToClientRect(rect);
|
|
1081
|
+
}
|
|
1082
|
+
function hasFixedPositionAncestor(element, stopNode) {
|
|
1083
|
+
const parentNode = getParentNode(element);
|
|
1084
|
+
if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {
|
|
1085
|
+
return false;
|
|
1086
|
+
}
|
|
1087
|
+
return getComputedStyle$1(parentNode).position === "fixed" || hasFixedPositionAncestor(parentNode, stopNode);
|
|
1088
|
+
}
|
|
1089
|
+
function getClippingElementAncestors(element, cache) {
|
|
1090
|
+
const cachedResult = cache.get(element);
|
|
1091
|
+
if (cachedResult) {
|
|
1092
|
+
return cachedResult;
|
|
1093
|
+
}
|
|
1094
|
+
let result = getOverflowAncestors(element, [], false).filter((el) => isElement(el) && getNodeName(el) !== "body");
|
|
1095
|
+
let currentContainingBlockComputedStyle = null;
|
|
1096
|
+
const elementIsFixed = getComputedStyle$1(element).position === "fixed";
|
|
1097
|
+
let currentNode = elementIsFixed ? getParentNode(element) : element;
|
|
1098
|
+
while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
|
1099
|
+
const computedStyle = getComputedStyle$1(currentNode);
|
|
1100
|
+
const currentNodeIsContaining = isContainingBlock(currentNode);
|
|
1101
|
+
if (!currentNodeIsContaining && computedStyle.position === "fixed") {
|
|
1102
|
+
currentContainingBlockComputedStyle = null;
|
|
1103
|
+
}
|
|
1104
|
+
const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === "static" && !!currentContainingBlockComputedStyle && absoluteOrFixed.has(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
|
|
1105
|
+
if (shouldDropCurrentNode) {
|
|
1106
|
+
result = result.filter((ancestor) => ancestor !== currentNode);
|
|
1107
|
+
} else {
|
|
1108
|
+
currentContainingBlockComputedStyle = computedStyle;
|
|
1109
|
+
}
|
|
1110
|
+
currentNode = getParentNode(currentNode);
|
|
1111
|
+
}
|
|
1112
|
+
cache.set(element, result);
|
|
1113
|
+
return result;
|
|
1114
|
+
}
|
|
1115
|
+
function getClippingRect(_ref) {
|
|
1116
|
+
let {
|
|
1117
|
+
element,
|
|
1118
|
+
boundary,
|
|
1119
|
+
rootBoundary,
|
|
1120
|
+
strategy
|
|
1121
|
+
} = _ref;
|
|
1122
|
+
const elementClippingAncestors = boundary === "clippingAncestors" ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary);
|
|
1123
|
+
const clippingAncestors = [...elementClippingAncestors, rootBoundary];
|
|
1124
|
+
const firstClippingAncestor = clippingAncestors[0];
|
|
1125
|
+
const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {
|
|
1126
|
+
const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);
|
|
1127
|
+
accRect.top = max(rect.top, accRect.top);
|
|
1128
|
+
accRect.right = min(rect.right, accRect.right);
|
|
1129
|
+
accRect.bottom = min(rect.bottom, accRect.bottom);
|
|
1130
|
+
accRect.left = max(rect.left, accRect.left);
|
|
1131
|
+
return accRect;
|
|
1132
|
+
}, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));
|
|
1133
|
+
return {
|
|
1134
|
+
width: clippingRect.right - clippingRect.left,
|
|
1135
|
+
height: clippingRect.bottom - clippingRect.top,
|
|
1136
|
+
x: clippingRect.left,
|
|
1137
|
+
y: clippingRect.top
|
|
1138
|
+
};
|
|
1139
|
+
}
|
|
1140
|
+
function getDimensions(element) {
|
|
1141
|
+
const {
|
|
1142
|
+
width,
|
|
1143
|
+
height
|
|
1144
|
+
} = getCssDimensions(element);
|
|
1145
|
+
return {
|
|
1146
|
+
width,
|
|
1147
|
+
height
|
|
1148
|
+
};
|
|
1149
|
+
}
|
|
1150
|
+
function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
1151
|
+
const isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
1152
|
+
const documentElement = getDocumentElement(offsetParent);
|
|
1153
|
+
const isFixed = strategy === "fixed";
|
|
1154
|
+
const rect = getBoundingClientRect(element, true, isFixed, offsetParent);
|
|
1155
|
+
let scroll = {
|
|
1156
|
+
scrollLeft: 0,
|
|
1157
|
+
scrollTop: 0
|
|
1158
|
+
};
|
|
1159
|
+
const offsets = createCoords(0);
|
|
1160
|
+
function setLeftRTLScrollbarOffset() {
|
|
1161
|
+
offsets.x = getWindowScrollBarX(documentElement);
|
|
1162
|
+
}
|
|
1163
|
+
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
|
1164
|
+
if (getNodeName(offsetParent) !== "body" || isOverflowElement(documentElement)) {
|
|
1165
|
+
scroll = getNodeScroll(offsetParent);
|
|
1166
|
+
}
|
|
1167
|
+
if (isOffsetParentAnElement) {
|
|
1168
|
+
const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);
|
|
1169
|
+
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
1170
|
+
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
1171
|
+
} else if (documentElement) {
|
|
1172
|
+
setLeftRTLScrollbarOffset();
|
|
1173
|
+
}
|
|
1174
|
+
}
|
|
1175
|
+
if (isFixed && !isOffsetParentAnElement && documentElement) {
|
|
1176
|
+
setLeftRTLScrollbarOffset();
|
|
1177
|
+
}
|
|
1178
|
+
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
|
|
1179
|
+
const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
|
|
1180
|
+
const y = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
|
|
1181
|
+
return {
|
|
1182
|
+
x,
|
|
1183
|
+
y,
|
|
1184
|
+
width: rect.width,
|
|
1185
|
+
height: rect.height
|
|
1186
|
+
};
|
|
1187
|
+
}
|
|
1188
|
+
function isStaticPositioned(element) {
|
|
1189
|
+
return getComputedStyle$1(element).position === "static";
|
|
1190
|
+
}
|
|
1191
|
+
function getTrueOffsetParent(element, polyfill) {
|
|
1192
|
+
if (!isHTMLElement(element) || getComputedStyle$1(element).position === "fixed") {
|
|
1193
|
+
return null;
|
|
1194
|
+
}
|
|
1195
|
+
if (polyfill) {
|
|
1196
|
+
return polyfill(element);
|
|
1197
|
+
}
|
|
1198
|
+
let rawOffsetParent = element.offsetParent;
|
|
1199
|
+
if (getDocumentElement(element) === rawOffsetParent) {
|
|
1200
|
+
rawOffsetParent = rawOffsetParent.ownerDocument.body;
|
|
1201
|
+
}
|
|
1202
|
+
return rawOffsetParent;
|
|
1203
|
+
}
|
|
1204
|
+
function getOffsetParent(element, polyfill) {
|
|
1205
|
+
const win = getWindow(element);
|
|
1206
|
+
if (isTopLayer(element)) {
|
|
1207
|
+
return win;
|
|
1208
|
+
}
|
|
1209
|
+
if (!isHTMLElement(element)) {
|
|
1210
|
+
let svgOffsetParent = getParentNode(element);
|
|
1211
|
+
while (svgOffsetParent && !isLastTraversableNode(svgOffsetParent)) {
|
|
1212
|
+
if (isElement(svgOffsetParent) && !isStaticPositioned(svgOffsetParent)) {
|
|
1213
|
+
return svgOffsetParent;
|
|
1214
|
+
}
|
|
1215
|
+
svgOffsetParent = getParentNode(svgOffsetParent);
|
|
1216
|
+
}
|
|
1217
|
+
return win;
|
|
1218
|
+
}
|
|
1219
|
+
let offsetParent = getTrueOffsetParent(element, polyfill);
|
|
1220
|
+
while (offsetParent && isTableElement(offsetParent) && isStaticPositioned(offsetParent)) {
|
|
1221
|
+
offsetParent = getTrueOffsetParent(offsetParent, polyfill);
|
|
1222
|
+
}
|
|
1223
|
+
if (offsetParent && isLastTraversableNode(offsetParent) && isStaticPositioned(offsetParent) && !isContainingBlock(offsetParent)) {
|
|
1224
|
+
return win;
|
|
1225
|
+
}
|
|
1226
|
+
return offsetParent || getContainingBlock(element) || win;
|
|
1227
|
+
}
|
|
1228
|
+
const getElementRects = async function(data) {
|
|
1229
|
+
const getOffsetParentFn = this.getOffsetParent || getOffsetParent;
|
|
1230
|
+
const getDimensionsFn = this.getDimensions;
|
|
1231
|
+
const floatingDimensions = await getDimensionsFn(data.floating);
|
|
1232
|
+
return {
|
|
1233
|
+
reference: getRectRelativeToOffsetParent(data.reference, await getOffsetParentFn(data.floating), data.strategy),
|
|
1234
|
+
floating: {
|
|
1235
|
+
x: 0,
|
|
1236
|
+
y: 0,
|
|
1237
|
+
width: floatingDimensions.width,
|
|
1238
|
+
height: floatingDimensions.height
|
|
1239
|
+
}
|
|
1240
|
+
};
|
|
1241
|
+
};
|
|
1242
|
+
function isRTL(element) {
|
|
1243
|
+
return getComputedStyle$1(element).direction === "rtl";
|
|
1244
|
+
}
|
|
1245
|
+
const platform = {
|
|
1246
|
+
convertOffsetParentRelativeRectToViewportRelativeRect,
|
|
1247
|
+
getDocumentElement,
|
|
1248
|
+
getClippingRect,
|
|
1249
|
+
getOffsetParent,
|
|
1250
|
+
getElementRects,
|
|
1251
|
+
getClientRects,
|
|
1252
|
+
getDimensions,
|
|
1253
|
+
getScale,
|
|
1254
|
+
isElement,
|
|
1255
|
+
isRTL
|
|
1256
|
+
};
|
|
1257
|
+
function rectsAreEqual(a, b) {
|
|
1258
|
+
return a.x === b.x && a.y === b.y && a.width === b.width && a.height === b.height;
|
|
1259
|
+
}
|
|
1260
|
+
function observeMove(element, onMove) {
|
|
1261
|
+
let io = null;
|
|
1262
|
+
let timeoutId;
|
|
1263
|
+
const root = getDocumentElement(element);
|
|
1264
|
+
function cleanup() {
|
|
1265
|
+
var _io;
|
|
1266
|
+
clearTimeout(timeoutId);
|
|
1267
|
+
(_io = io) == null || _io.disconnect();
|
|
1268
|
+
io = null;
|
|
1269
|
+
}
|
|
1270
|
+
function refresh(skip, threshold) {
|
|
1271
|
+
if (skip === void 0) {
|
|
1272
|
+
skip = false;
|
|
1273
|
+
}
|
|
1274
|
+
if (threshold === void 0) {
|
|
1275
|
+
threshold = 1;
|
|
1276
|
+
}
|
|
1277
|
+
cleanup();
|
|
1278
|
+
const elementRectForRootMargin = element.getBoundingClientRect();
|
|
1279
|
+
const {
|
|
1280
|
+
left,
|
|
1281
|
+
top,
|
|
1282
|
+
width,
|
|
1283
|
+
height
|
|
1284
|
+
} = elementRectForRootMargin;
|
|
1285
|
+
if (!skip) {
|
|
1286
|
+
onMove();
|
|
1287
|
+
}
|
|
1288
|
+
if (!width || !height) {
|
|
1289
|
+
return;
|
|
1290
|
+
}
|
|
1291
|
+
const insetTop = floor(top);
|
|
1292
|
+
const insetRight = floor(root.clientWidth - (left + width));
|
|
1293
|
+
const insetBottom = floor(root.clientHeight - (top + height));
|
|
1294
|
+
const insetLeft = floor(left);
|
|
1295
|
+
const rootMargin = -insetTop + "px " + -insetRight + "px " + -insetBottom + "px " + -insetLeft + "px";
|
|
1296
|
+
const options = {
|
|
1297
|
+
rootMargin,
|
|
1298
|
+
threshold: max(0, min(1, threshold)) || 1
|
|
1299
|
+
};
|
|
1300
|
+
let isFirstUpdate = true;
|
|
1301
|
+
function handleObserve(entries) {
|
|
1302
|
+
const ratio = entries[0].intersectionRatio;
|
|
1303
|
+
if (ratio !== threshold) {
|
|
1304
|
+
if (!isFirstUpdate) {
|
|
1305
|
+
return refresh();
|
|
1306
|
+
}
|
|
1307
|
+
if (!ratio) {
|
|
1308
|
+
timeoutId = setTimeout(() => {
|
|
1309
|
+
refresh(false, 1e-7);
|
|
1310
|
+
}, 1e3);
|
|
1311
|
+
} else {
|
|
1312
|
+
refresh(false, ratio);
|
|
1313
|
+
}
|
|
1314
|
+
}
|
|
1315
|
+
if (ratio === 1 && !rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) {
|
|
1316
|
+
refresh();
|
|
1317
|
+
}
|
|
1318
|
+
isFirstUpdate = false;
|
|
1319
|
+
}
|
|
1320
|
+
try {
|
|
1321
|
+
io = new IntersectionObserver(handleObserve, {
|
|
1322
|
+
...options,
|
|
1323
|
+
// Handle <iframe>s
|
|
1324
|
+
root: root.ownerDocument
|
|
1325
|
+
});
|
|
1326
|
+
} catch (_e) {
|
|
1327
|
+
io = new IntersectionObserver(handleObserve, options);
|
|
1328
|
+
}
|
|
1329
|
+
io.observe(element);
|
|
1330
|
+
}
|
|
1331
|
+
refresh(true);
|
|
1332
|
+
return cleanup;
|
|
1333
|
+
}
|
|
1334
|
+
function autoUpdate(reference, floating, update, options) {
|
|
1335
|
+
if (options === void 0) {
|
|
1336
|
+
options = {};
|
|
1337
|
+
}
|
|
1338
|
+
const {
|
|
1339
|
+
ancestorScroll = true,
|
|
1340
|
+
ancestorResize = true,
|
|
1341
|
+
elementResize = typeof ResizeObserver === "function",
|
|
1342
|
+
layoutShift = typeof IntersectionObserver === "function",
|
|
1343
|
+
animationFrame = false
|
|
1344
|
+
} = options;
|
|
1345
|
+
const referenceEl = unwrapElement$1(reference);
|
|
1346
|
+
const ancestors = ancestorScroll || ancestorResize ? [...referenceEl ? getOverflowAncestors(referenceEl) : [], ...getOverflowAncestors(floating)] : [];
|
|
1347
|
+
ancestors.forEach((ancestor) => {
|
|
1348
|
+
ancestorScroll && ancestor.addEventListener("scroll", update, {
|
|
1349
|
+
passive: true
|
|
1350
|
+
});
|
|
1351
|
+
ancestorResize && ancestor.addEventListener("resize", update);
|
|
1352
|
+
});
|
|
1353
|
+
const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update) : null;
|
|
1354
|
+
let reobserveFrame = -1;
|
|
1355
|
+
let resizeObserver = null;
|
|
1356
|
+
if (elementResize) {
|
|
1357
|
+
resizeObserver = new ResizeObserver((_ref) => {
|
|
1358
|
+
let [firstEntry] = _ref;
|
|
1359
|
+
if (firstEntry && firstEntry.target === referenceEl && resizeObserver) {
|
|
1360
|
+
resizeObserver.unobserve(floating);
|
|
1361
|
+
cancelAnimationFrame(reobserveFrame);
|
|
1362
|
+
reobserveFrame = requestAnimationFrame(() => {
|
|
1363
|
+
var _resizeObserver;
|
|
1364
|
+
(_resizeObserver = resizeObserver) == null || _resizeObserver.observe(floating);
|
|
1365
|
+
});
|
|
1366
|
+
}
|
|
1367
|
+
update();
|
|
1368
|
+
});
|
|
1369
|
+
if (referenceEl && !animationFrame) {
|
|
1370
|
+
resizeObserver.observe(referenceEl);
|
|
1371
|
+
}
|
|
1372
|
+
resizeObserver.observe(floating);
|
|
1373
|
+
}
|
|
1374
|
+
let frameId;
|
|
1375
|
+
let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;
|
|
1376
|
+
if (animationFrame) {
|
|
1377
|
+
frameLoop();
|
|
1378
|
+
}
|
|
1379
|
+
function frameLoop() {
|
|
1380
|
+
const nextRefRect = getBoundingClientRect(reference);
|
|
1381
|
+
if (prevRefRect && !rectsAreEqual(prevRefRect, nextRefRect)) {
|
|
1382
|
+
update();
|
|
1383
|
+
}
|
|
1384
|
+
prevRefRect = nextRefRect;
|
|
1385
|
+
frameId = requestAnimationFrame(frameLoop);
|
|
1386
|
+
}
|
|
1387
|
+
update();
|
|
1388
|
+
return () => {
|
|
1389
|
+
var _resizeObserver2;
|
|
1390
|
+
ancestors.forEach((ancestor) => {
|
|
1391
|
+
ancestorScroll && ancestor.removeEventListener("scroll", update);
|
|
1392
|
+
ancestorResize && ancestor.removeEventListener("resize", update);
|
|
1393
|
+
});
|
|
1394
|
+
cleanupIo == null || cleanupIo();
|
|
1395
|
+
(_resizeObserver2 = resizeObserver) == null || _resizeObserver2.disconnect();
|
|
1396
|
+
resizeObserver = null;
|
|
1397
|
+
if (animationFrame) {
|
|
1398
|
+
cancelAnimationFrame(frameId);
|
|
1399
|
+
}
|
|
1400
|
+
};
|
|
1401
|
+
}
|
|
1402
|
+
const offset = offset$1;
|
|
1403
|
+
const shift = shift$1;
|
|
1404
|
+
const flip = flip$1;
|
|
1405
|
+
const size = size$1;
|
|
1406
|
+
const computePosition = (reference, floating, options) => {
|
|
1407
|
+
const cache = /* @__PURE__ */ new Map();
|
|
1408
|
+
const mergedOptions = {
|
|
1409
|
+
platform,
|
|
1410
|
+
...options
|
|
1411
|
+
};
|
|
1412
|
+
const platformWithCache = {
|
|
1413
|
+
...mergedOptions.platform,
|
|
1414
|
+
_c: cache
|
|
1415
|
+
};
|
|
1416
|
+
return computePosition$1(reference, floating, {
|
|
1417
|
+
...mergedOptions,
|
|
1418
|
+
platform: platformWithCache
|
|
1419
|
+
});
|
|
1420
|
+
};
|
|
1421
|
+
function isComponentPublicInstance(target) {
|
|
1422
|
+
return target != null && typeof target === "object" && "$el" in target;
|
|
1423
|
+
}
|
|
1424
|
+
function unwrapElement(target) {
|
|
1425
|
+
if (isComponentPublicInstance(target)) {
|
|
1426
|
+
const element = target.$el;
|
|
1427
|
+
return isNode(element) && getNodeName(element) === "#comment" ? null : element;
|
|
1428
|
+
}
|
|
1429
|
+
return target;
|
|
1430
|
+
}
|
|
1431
|
+
function toValue(source) {
|
|
1432
|
+
return typeof source === "function" ? source() : unref(source);
|
|
1433
|
+
}
|
|
1434
|
+
function getDPR(element) {
|
|
1435
|
+
if (typeof window === "undefined") {
|
|
1436
|
+
return 1;
|
|
1437
|
+
}
|
|
1438
|
+
const win = element.ownerDocument.defaultView || window;
|
|
1439
|
+
return win.devicePixelRatio || 1;
|
|
1440
|
+
}
|
|
1441
|
+
function roundByDPR(element, value) {
|
|
1442
|
+
const dpr = getDPR(element);
|
|
1443
|
+
return Math.round(value * dpr) / dpr;
|
|
1444
|
+
}
|
|
1445
|
+
function useFloating(reference, floating, options) {
|
|
1446
|
+
if (options === void 0) {
|
|
1447
|
+
options = {};
|
|
1448
|
+
}
|
|
1449
|
+
const whileElementsMountedOption = options.whileElementsMounted;
|
|
1450
|
+
const openOption = computed(() => {
|
|
1451
|
+
var _toValue;
|
|
1452
|
+
return (_toValue = toValue(options.open)) != null ? _toValue : true;
|
|
1453
|
+
});
|
|
1454
|
+
const middlewareOption = computed(() => toValue(options.middleware));
|
|
1455
|
+
const placementOption = computed(() => {
|
|
1456
|
+
var _toValue2;
|
|
1457
|
+
return (_toValue2 = toValue(options.placement)) != null ? _toValue2 : "bottom";
|
|
1458
|
+
});
|
|
1459
|
+
const strategyOption = computed(() => {
|
|
1460
|
+
var _toValue3;
|
|
1461
|
+
return (_toValue3 = toValue(options.strategy)) != null ? _toValue3 : "absolute";
|
|
1462
|
+
});
|
|
1463
|
+
const transformOption = computed(() => {
|
|
1464
|
+
var _toValue4;
|
|
1465
|
+
return (_toValue4 = toValue(options.transform)) != null ? _toValue4 : true;
|
|
1466
|
+
});
|
|
1467
|
+
const referenceElement = computed(() => unwrapElement(reference.value));
|
|
1468
|
+
const floatingElement = computed(() => unwrapElement(floating.value));
|
|
1469
|
+
const x = ref(0);
|
|
1470
|
+
const y = ref(0);
|
|
1471
|
+
const strategy = ref(strategyOption.value);
|
|
1472
|
+
const placement = ref(placementOption.value);
|
|
1473
|
+
const middlewareData = shallowRef({});
|
|
1474
|
+
const isPositioned = ref(false);
|
|
1475
|
+
const floatingStyles = computed(() => {
|
|
1476
|
+
const initialStyles = {
|
|
1477
|
+
position: strategy.value,
|
|
1478
|
+
left: "0",
|
|
1479
|
+
top: "0"
|
|
1480
|
+
};
|
|
1481
|
+
if (!floatingElement.value) {
|
|
1482
|
+
return initialStyles;
|
|
1483
|
+
}
|
|
1484
|
+
const xVal = roundByDPR(floatingElement.value, x.value);
|
|
1485
|
+
const yVal = roundByDPR(floatingElement.value, y.value);
|
|
1486
|
+
if (transformOption.value) {
|
|
1487
|
+
return {
|
|
1488
|
+
...initialStyles,
|
|
1489
|
+
transform: "translate(" + xVal + "px, " + yVal + "px)",
|
|
1490
|
+
...getDPR(floatingElement.value) >= 1.5 && {
|
|
1491
|
+
willChange: "transform"
|
|
1492
|
+
}
|
|
1493
|
+
};
|
|
1494
|
+
}
|
|
1495
|
+
return {
|
|
1496
|
+
position: strategy.value,
|
|
1497
|
+
left: xVal + "px",
|
|
1498
|
+
top: yVal + "px"
|
|
1499
|
+
};
|
|
1500
|
+
});
|
|
1501
|
+
let whileElementsMountedCleanup;
|
|
1502
|
+
function update() {
|
|
1503
|
+
if (referenceElement.value == null || floatingElement.value == null) {
|
|
1504
|
+
return;
|
|
1505
|
+
}
|
|
1506
|
+
const open = openOption.value;
|
|
1507
|
+
computePosition(referenceElement.value, floatingElement.value, {
|
|
1508
|
+
middleware: middlewareOption.value,
|
|
1509
|
+
placement: placementOption.value,
|
|
1510
|
+
strategy: strategyOption.value
|
|
1511
|
+
}).then((position) => {
|
|
1512
|
+
x.value = position.x;
|
|
1513
|
+
y.value = position.y;
|
|
1514
|
+
strategy.value = position.strategy;
|
|
1515
|
+
placement.value = position.placement;
|
|
1516
|
+
middlewareData.value = position.middlewareData;
|
|
1517
|
+
isPositioned.value = open !== false;
|
|
1518
|
+
});
|
|
1519
|
+
}
|
|
1520
|
+
function cleanup() {
|
|
1521
|
+
if (typeof whileElementsMountedCleanup === "function") {
|
|
1522
|
+
whileElementsMountedCleanup();
|
|
1523
|
+
whileElementsMountedCleanup = void 0;
|
|
1524
|
+
}
|
|
1525
|
+
}
|
|
1526
|
+
function attach() {
|
|
1527
|
+
cleanup();
|
|
1528
|
+
if (whileElementsMountedOption === void 0) {
|
|
1529
|
+
update();
|
|
1530
|
+
return;
|
|
1531
|
+
}
|
|
1532
|
+
if (referenceElement.value != null && floatingElement.value != null) {
|
|
1533
|
+
whileElementsMountedCleanup = whileElementsMountedOption(referenceElement.value, floatingElement.value, update);
|
|
1534
|
+
return;
|
|
1535
|
+
}
|
|
1536
|
+
}
|
|
1537
|
+
function reset() {
|
|
1538
|
+
if (!openOption.value) {
|
|
1539
|
+
isPositioned.value = false;
|
|
1540
|
+
}
|
|
1541
|
+
}
|
|
1542
|
+
watch([middlewareOption, placementOption, strategyOption, openOption], update, {
|
|
1543
|
+
flush: "sync"
|
|
1544
|
+
});
|
|
1545
|
+
watch([referenceElement, floatingElement], attach, {
|
|
1546
|
+
flush: "sync"
|
|
1547
|
+
});
|
|
1548
|
+
watch(openOption, reset, {
|
|
1549
|
+
flush: "sync"
|
|
1550
|
+
});
|
|
1551
|
+
if (getCurrentScope()) {
|
|
1552
|
+
onScopeDispose(cleanup);
|
|
1553
|
+
}
|
|
1554
|
+
return {
|
|
1555
|
+
x: shallowReadonly(x),
|
|
1556
|
+
y: shallowReadonly(y),
|
|
1557
|
+
strategy: shallowReadonly(strategy),
|
|
1558
|
+
placement: shallowReadonly(placement),
|
|
1559
|
+
middlewareData: shallowReadonly(middlewareData),
|
|
1560
|
+
isPositioned: shallowReadonly(isPositioned),
|
|
1561
|
+
floatingStyles,
|
|
1562
|
+
update
|
|
1563
|
+
};
|
|
1564
|
+
}
|
|
1565
|
+
export {
|
|
1566
|
+
_export_sfc as _,
|
|
1567
|
+
autoUpdate as a,
|
|
1568
|
+
size as b,
|
|
1569
|
+
flip as f,
|
|
1570
|
+
offset as o,
|
|
1571
|
+
shift as s,
|
|
1572
|
+
useFloating as u
|
|
1573
|
+
};
|