@solvimon/solvimon-web 0.1.0-alpha.2 → 0.1.0-alpha.20
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 +244 -49
- package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-Ce30EXY5.mjs +240 -0
- package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-kmam2c7P.js +1 -0
- package/dist/Amount.vue.es-BO5sS1UX.mjs +25 -0
- package/dist/Amount.vue.es-JDVa_3H-.js +1 -0
- package/dist/Avatar.vue.es-BGTZSAqU.js +1 -0
- package/dist/Avatar.vue.es-DJzJiYtv.mjs +91 -0
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-DQAp1xwu.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-Bq2mTdUs.mjs} +23 -13
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-BtNTRSqH.js +1 -0
- package/dist/Button.vue.es-Cm9pLU9i.mjs +421 -0
- package/dist/Button.vue.es-O8mNivLL.js +1 -0
- package/dist/Chip.vue.es-BBmn-qJp.mjs +120 -0
- package/dist/Chip.vue.es-DmCjC1hi.js +1 -0
- package/dist/Comparators.vue.es-CYfxd5H-.mjs +120 -0
- package/dist/Comparators.vue.es-DK8wGjxM.js +1 -0
- package/dist/ContentWithAsideLayout-DHpnJfGA.js +1 -0
- package/dist/ContentWithAsideLayout-Dy9xgxuF.mjs +39 -0
- package/dist/ContextMenu.vue.es-CTc1ktXb.mjs +681 -0
- package/dist/ContextMenu.vue.es-DaW0yp4Y.js +1 -0
- package/dist/CustomerBillingInformation.vue.es-BX0Da7Kr.js +1 -0
- package/dist/CustomerBillingInformation.vue.es-CMZO8oLj.mjs +175 -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-Bi_dCntQ.js +1 -0
- package/dist/{useCustomerPaymentMethodOptions-BzEquyUV.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CtdFharm.mjs} +43 -62
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BDqBXbJq.mjs +3264 -0
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-ZyN2vlNu.js +1 -0
- package/dist/Divider.vue.es-ClFG8QtG.js +1 -0
- package/dist/Divider.vue.es-wKkIVBgb.mjs +24 -0
- package/dist/DividerText.vue.es-CeAHAe_Y.mjs +72 -0
- package/dist/DividerText.vue.es-DjT4i_YD.js +1 -0
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DLE5-9wz.mjs +562 -0
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DkIK-lID.js +1 -0
- package/dist/ErrorNotification.vue.es-CHyVTBGs.mjs +38 -0
- package/dist/ErrorNotification.vue.es-CaEFTi2k.js +1 -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-Bd4_NG9H.js +1 -0
- package/dist/FormMessage.vue.es-C3oxwq_8.mjs +46 -0
- package/dist/IconButton.vue.es-BHdQskx0.js +1 -0
- package/dist/IconButton.vue.es-KywqWWvr.mjs +228 -0
- package/dist/IconTitle.vue.es-BmjBdZb_.mjs +107 -0
- package/dist/IconTitle.vue.es-D9Wc3PIq.js +1 -0
- package/dist/Input.vue.es-DqKJhFTr.js +1 -0
- package/dist/Input.vue.es-WZGF8dfr.mjs +251 -0
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-D0ie9Krt.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-B6efz7NU.mjs} +21 -9
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-LE6zBLKM.js +1 -0
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-C2aLMfu6.mjs +49 -0
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-CtpFzWU3.js +1 -0
- package/dist/InvoiceSummary.vue.es-BI5sD_8F.mjs +2944 -0
- package/dist/InvoiceSummary.vue.es-BWYIHezU.js +1 -0
- package/dist/Modal.vue.es-B_1aqm_m.js +1 -0
- package/dist/Modal.vue.es-qdUHDOnU.mjs +483 -0
- package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-BKKXQbge.js +1 -0
- package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-Ch1TFO7x.mjs +154 -0
- package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-CsH47WSM.mjs +54 -0
- package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-mKNNYnMU.js +1 -0
- package/dist/PaymentHistoryBlock-CgNUV8Gy.mjs +4 -0
- package/dist/PaymentHistoryBlock-Ci8aSJeb.js +1 -0
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DZwnDzha.js +1 -0
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DVDOsMnT.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-Uj1aK-dp.mjs} +34 -23
- package/dist/PaymentIntegrationForm-CLokpXvK.mjs +4 -0
- package/dist/PaymentIntegrationForm-CsuueDE0.js +1 -0
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CRUs7sP4.mjs +167 -0
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-kKkzRi6w.js +1 -0
- package/dist/PaymentIntegrationFormAdyen-C885o8IE.mjs +699 -0
- package/dist/PaymentIntegrationFormAdyen-Co19AgvG.js +1 -0
- package/dist/PaymentIntegrationFormStripe-BjMdJmDC.mjs +547 -0
- package/dist/PaymentIntegrationFormStripe-DWff6wzK.js +1 -0
- package/dist/PaymentMethod.vue.es-CdskNJ3Z.js +1 -0
- package/dist/PaymentMethod.vue.es-rv-pu1CC.mjs +677 -0
- package/dist/PaymentMethodForm-IEuDxEPN.mjs +4 -0
- package/dist/PaymentMethodForm-hZuVHAti.js +1 -0
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-Cj60U90J.js +1 -0
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-gA74Rak9.mjs +172 -0
- package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-B3H_AWMM.js +1 -0
- package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-CTn-OxM6.mjs +189 -0
- package/dist/PricingGroupRangeInput.vue.es-ButaePib.mjs +632 -0
- package/dist/PricingGroupRangeInput.vue.es-Cls2lm80.js +1 -0
- package/dist/Section.vue.es-CAJvEDn6.js +1 -0
- package/dist/Section.vue.es-DX_9ueCG.mjs +79 -0
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-CQAkPfJz.js +1 -0
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-DVtMzgjc.mjs +1044 -0
- package/dist/{Skeleton.vue_vue_type_script_setup_true_lang-C-taYlG4.mjs → Skeleton.vue_vue_type_script_setup_true_lang-DGMxHc20.mjs} +23 -8
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-DfMgIsGm.js +1 -0
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-BJVXCHny.js +1 -0
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-ByO-L6nm.mjs +6171 -0
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-C5zB3CgZ.mjs +101 -0
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-CabskT-r.js +1 -0
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-D-T1wGg7.js +1 -0
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-Bp5RvQVS.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-DKd2DIVb.mjs} +61 -125
- package/dist/TooltipParagraph.vue.es-C5RTcrid.mjs +136 -0
- package/dist/TooltipParagraph.vue.es-H9fI7zzt.js +1 -0
- package/dist/TrialChip.vue.es-B1puKyR-.mjs +56 -0
- package/dist/TrialChip.vue.es-CCs50m02.js +1 -0
- package/dist/accel.svg.es-CE5tIWtm.mjs +4 -0
- package/dist/accel.svg.es-Dt_1wJmV.js +1 -0
- package/dist/ach.svg.es-B4tn0_IV.js +1 -0
- package/dist/ach.svg.es-D4QPcIU-.mjs +4 -0
- package/dist/adyen-51SvcyqV.mjs +4 -0
- package/dist/adyen-BXi_D9TQ.mjs +123 -0
- package/dist/adyen-DZsyEXkw.js +1 -0
- package/dist/adyen-VS2sDW0m.js +1 -0
- package/dist/amazon-pay.svg.es-B428S4f3.js +1 -0
- package/dist/amazon-pay.svg.es-DUScOW15.mjs +4 -0
- package/dist/amex.svg.es-BCXkaVLN.mjs +4 -0
- package/dist/amex.svg.es-Bn9e31C3.js +1 -0
- package/dist/api.es-C5pe8LUl.mjs +62 -0
- package/dist/api.es-Czekkp_X.js +1 -0
- package/dist/apple-pay.svg.es-Cfgn0K28.js +1 -0
- package/dist/apple-pay.svg.es-DlCfkt39.mjs +4 -0
- package/dist/bacs.svg.es-BKsvSeIP.mjs +4 -0
- package/dist/bacs.svg.es-hL7hLPkQ.js +1 -0
- package/dist/bancontact.svg.es-BbRqGgZ9.mjs +4 -0
- package/dist/bancontact.svg.es-DU2ejvNL.js +1 -0
- package/dist/carnet.svg.es-C5SFaOsa.js +1 -0
- package/dist/carnet.svg.es-Db-KEb13.mjs +4 -0
- package/dist/cartes-bancaires.svg.es-ByD-JAAi.mjs +4 -0
- package/dist/cartes-bancaires.svg.es-CbBJQZrk.js +1 -0
- package/dist/cashapp.svg.es-CnS5r_D8.mjs +4 -0
- package/dist/cashapp.svg.es-DE4vMu_p.js +1 -0
- package/dist/cn.es-BEU5D0Wz.mjs +3298 -0
- package/dist/cn.es-DxSeYcoP.js +1 -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} +26 -34
- 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} +68 -154
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.ce.d.ts +1 -3
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs +1 -0
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +95 -0
- 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} +133 -180
- 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} +17 -29
- package/dist/components/InvoiceHeader/InvoiceHeader.ce.d.ts +1 -0
- 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} +21 -29
- 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} +17 -29
- package/dist/components/PaymentMethodForm/PaymentMethodForm.ce.d.ts +1 -3
- package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs +1 -0
- package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +108 -0
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.ce.d.ts +1 -3
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs +1 -0
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +93 -0
- package/dist/components/SubscriptionsList/SubscriptionsList.ce.d.ts +1 -3
- package/dist/components/SubscriptionsList/SubscriptionsList.cjs +1 -0
- package/dist/components/SubscriptionsList/SubscriptionsList.mjs +103 -0
- 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} +38 -34
- package/dist/configuration-BjYwV4_B.js +1 -0
- package/dist/configuration-CD8cOXAJ.mjs +15 -0
- package/dist/core/action-request.types.d.ts +1 -58
- package/dist/core/configuration.d.ts +1 -3
- package/dist/core/index.cjs +1 -0
- package/dist/core/index.d.ts +1 -10
- 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 -111
- package/dist/countryData.es--zJAd6LA.mjs +252 -0
- package/dist/countryData.es-D3MFzU92.js +1 -0
- package/dist/customElements-B-89a5oH.mjs +6810 -0
- package/dist/customElements-DD7bpqkx.js +1 -0
- package/dist/customer-DozNwS_a.js +1 -0
- package/dist/customer-Dzj1g9lV.mjs +32 -0
- package/dist/customer.es-C_vSWcVA.mjs +30 -0
- package/dist/customer.es-D42Md24r.js +1 -0
- package/dist/dana.svg.es-Bbn6_ktN.mjs +4 -0
- package/dist/dana.svg.es-DKZaseoJ.js +1 -0
- package/dist/dankort.svg.es-D8FgSiFf.js +1 -0
- package/dist/dankort.svg.es-DtAdliQq.mjs +4 -0
- package/dist/de-DE-BeyQVhTv.mjs +299 -0
- package/dist/de-DE-BvHD68Ay.js +1 -0
- package/dist/de-DE-CI2zQkiP.mjs +266 -0
- package/dist/de-DE-_40QfLNJ.js +1 -0
- package/dist/diners.svg.es-DhchsD1D.mjs +4 -0
- package/dist/diners.svg.es-SydF_H-Z.js +1 -0
- package/dist/discover.svg.es-B8vgzVNG.js +1 -0
- package/dist/discover.svg.es-BnqYPvnV.mjs +4 -0
- package/dist/eftpos.svg.es-DO0YPaY1.js +1 -0
- package/dist/eftpos.svg.es-DRLaafYa.mjs +4 -0
- package/dist/elo.svg.es-CTOm1rvj.js +1 -0
- package/dist/elo.svg.es-CgkEOP_O.mjs +4 -0
- package/dist/en-US--NRsi7Hz.js +1 -0
- package/dist/en-US-5YWNEi-V.mjs +299 -0
- package/dist/en-US-DksUWPIu.mjs +266 -0
- package/dist/en-US-dqfKx3GS.js +1 -0
- package/dist/eps.svg.es-CApyGjyU.js +1 -0
- package/dist/eps.svg.es-D6IHsRYP.mjs +4 -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-DBtYnvI5.js +1 -0
- package/dist/formatting.es-eYgXv_AK.mjs +70 -0
- package/dist/gcash.svg.es-BhJ-eA2z.mjs +4 -0
- package/dist/gcash.svg.es-JaL4fpZr.js +1 -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/girocard.svg.es-D_3LML4l.mjs +4 -0
- package/dist/girocard.svg.es-tVgtT23w.js +1 -0
- package/dist/go-pay.svg.es-6UtgwVBA.mjs +4 -0
- package/dist/go-pay.svg.es-fYX6yMzJ.js +1 -0
- package/dist/google-pay.svg.es-BYXX1em8.js +1 -0
- package/dist/google-pay.svg.es-CRxXgFVl.mjs +4 -0
- package/dist/hipercard.svg.es-Ct1-mF9F.mjs +4 -0
- package/dist/hipercard.svg.es-D-nmiFXB.js +1 -0
- package/dist/icon-sprite.svg.es-BpwT0GQ5.js +1 -0
- package/dist/icon-sprite.svg.es-YYqtl2IP.mjs +4 -0
- package/dist/ideal.svg.es-D23EhJJ2.mjs +4 -0
- package/dist/ideal.svg.es-DXtHE0Jb.js +1 -0
- package/dist/index-Cai7laNY.mjs +1069 -0
- package/dist/index-DIFK3mcJ.js +6 -0
- package/dist/index-DyvRdSR7.mjs +9673 -0
- package/dist/index-IZaUTAsE.js +1 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +1 -15
- package/dist/index.es-2JWHHSgP.js +1 -0
- package/dist/index.es-D5xOw_SJ.mjs +542 -0
- package/dist/index.mjs +42 -0
- package/dist/invoices-1oYkdQQV.mjs +121 -0
- package/dist/invoices-BAoh6X2a.js +1 -0
- package/dist/it-IT-B6blp8MI.mjs +299 -0
- package/dist/it-IT-CEP3oeWs.js +1 -0
- package/dist/it-IT-CMy1tHKZ.mjs +266 -0
- package/dist/it-IT-aPQY57ht.js +1 -0
- package/dist/jcb.svg.es-Bz6J-c0s.js +1 -0
- package/dist/jcb.svg.es-CcH08OoO.mjs +4 -0
- package/dist/kakao-pay.svg.es-DcgRDAsc.mjs +4 -0
- package/dist/kakao-pay.svg.es-qVTABboW.js +1 -0
- package/dist/klarna.svg.es-Clu-7zkp.js +1 -0
- package/dist/klarna.svg.es-DfIPX0gr.mjs +4 -0
- package/dist/maestro.svg.es-CVmNVokN.mjs +4 -0
- package/dist/maestro.svg.es-e8E_H2QU.js +1 -0
- package/dist/mastercard.svg.es-B8z0ZySS.mjs +4 -0
- package/dist/mastercard.svg.es-YO3_jGD6.js +1 -0
- package/dist/momo.svg.es-BXTQlQRy.js +1 -0
- package/dist/momo.svg.es-Bm5zCTOT.mjs +4 -0
- package/dist/nl-NL-CckNM7R9.mjs +266 -0
- package/dist/nl-NL-CjoW8r_M.mjs +314 -0
- package/dist/nl-NL-e_vf6OuT.js +1 -0
- package/dist/nl-NL-zRUAuEHg.js +1 -0
- package/dist/nyce.svg.es-CgurqLKH.mjs +4 -0
- package/dist/nyce.svg.es-DM6esO47.js +1 -0
- package/dist/object.es-DFXiU9p3.js +1 -0
- package/dist/object.es-jvvnR8Kr.mjs +12 -0
- package/dist/open-banking.svg.es-DUM360xB.js +1 -0
- package/dist/open-banking.svg.es-DzzLCVp_.mjs +4 -0
- package/dist/paymentMethods-CZ3ydybI.js +1 -0
- package/dist/{paymentMethods-CqKUfc3w.mjs → paymentMethods-DIV78w0O.mjs} +31 -18
- package/dist/payments--lkjiwCt.js +1 -0
- package/dist/{payments-CosaPZwo.mjs → payments-Cvqdrprv.mjs} +1 -1
- package/dist/paypal.svg.es-BdkNTf3c.js +1 -0
- package/dist/paypal.svg.es-DltWzW4V.mjs +4 -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/pricingPlanSchedule-B9HFiXy-.js +1 -0
- package/dist/pricingPlanSchedule-CXG3CQ61.mjs +146 -0
- package/dist/pulse.svg.es-BdpWAuIN.js +1 -0
- package/dist/pulse.svg.es-BecAwT-p.mjs +4 -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} +1531 -1434
- package/dist/screens/CustomerOverview/CustomerOverview.ce.d.ts +1 -3
- package/dist/screens/CustomerOverview/CustomerOverview.cjs +1 -0
- package/dist/screens/CustomerOverview/CustomerOverview.mjs +175 -0
- package/dist/screens/PayInvoice/PayInvoice.ce.d.ts +1 -0
- package/dist/screens/PayInvoice/PayInvoice.cjs +1 -0
- package/dist/screens/PayInvoice/PayInvoice.mjs +582 -0
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.ce.d.ts +1 -0
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs +1 -0
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +227 -0
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.ce.d.ts +1 -0
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs +1 -0
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +882 -0
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.ce.d.ts +1 -0
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs +1 -0
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +707 -0
- package/dist/sepa.svg.es-BF8PYKZg.js +1 -0
- package/dist/sepa.svg.es-cbE9g8gV.mjs +4 -0
- 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/star.svg.es-DsCD-tSp.mjs +4 -0
- package/dist/star.svg.es-Q50IzqXr.js +1 -0
- package/dist/subscription-C41lG-rH.mjs +89 -0
- package/dist/subscription-b0OPx8Du.js +1 -0
- package/dist/subscriptions-300o4ae0.js +1 -0
- package/dist/subscriptions-DcMHBPVJ.mjs +58 -0
- package/dist/trustly.svg.es-C0Ou1HWk.mjs +4 -0
- package/dist/trustly.svg.es-CHojqNqm.js +1 -0
- package/dist/twint.svg.es-CQ-ZDfy8.js +1 -0
- package/dist/twint.svg.es-WrZYquRs.mjs +4 -0
- 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 +74 -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/PaymentMethodsUnavailableCard/PaymentMethodsUnavailableCard.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 +32 -0
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +70 -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/unionpay.svg.es-DYgo83Hf.mjs +4 -0
- package/dist/unionpay.svg.es-YqJKKFEj.js +1 -0
- package/dist/url-CjULBkjW.js +1 -0
- package/dist/url-CvNDq4wp.mjs +22 -0
- package/dist/{useActionDispatchProvider-CgRcOqv3.mjs → useActionDispatchProvider-BVOBO0Jx.mjs} +1 -1
- package/dist/useActionDispatchProvider-Cv9amjTf.js +1 -0
- package/dist/useCustomer-DLHOs4BR.js +1 -0
- package/dist/useCustomer-EDhref7T.mjs +25 -0
- package/dist/useCustomerFormLabels-B61-4xQ7.mjs +1168 -0
- package/dist/useCustomerFormLabels-C6wW4n2e.js +1 -0
- package/dist/useExperimentalFeature-0yFoaEzV.js +1 -0
- package/dist/useExperimentalFeature-DvxOrFPU.mjs +9 -0
- package/dist/{useIncrementalLoading-C7ToTmZK.mjs → useIncrementalLoading-BK9pRYAU.mjs} +9 -9
- package/dist/useIncrementalLoading-CdtGJm_Y.js +1 -0
- package/dist/useInvoiceData-BSjVeJrI.js +1 -0
- package/dist/{useInvoiceData-CcueV3We.mjs → useInvoiceData-C0Y5WrbT.mjs} +6 -12
- package/dist/useInvoicesList-BRDZqsaB.js +1 -0
- package/dist/useInvoicesList-CYoE7q0u.mjs +580 -0
- package/dist/{useLoadInitialData-Dm48tlSO.mjs → useLoadInitialData-Cp1OA8y6.mjs} +5 -0
- package/dist/useLoadInitialData-u7IyXqb6.js +1 -0
- package/dist/usePaymentMethodAvailability-B3s1lqQ2.js +1 -0
- package/dist/usePaymentMethodAvailability-EuhZPghG.mjs +141 -0
- package/dist/usePaymentMethodOptions--8QpMvNm.js +1 -0
- package/dist/usePaymentMethodOptions-Cljh7HYp.mjs +36 -0
- package/dist/{usePaymentMethods-Db-1R6rI.mjs → usePaymentMethods-BJzoI8dZ.mjs} +2 -2
- package/dist/{usePaymentMethods-DCGVRXA4.js → usePaymentMethods-DvEnJWmB.js} +1 -1
- package/dist/usePayments-CANj0QVc.js +1 -0
- package/dist/usePayments-CaT1CBzE.mjs +362 -0
- package/dist/usePortal-BjGoSeLy.js +1 -0
- package/dist/usePortal-CMPQ0M9R.mjs +12 -0
- package/dist/useService-D73FNBjT.js +1 -0
- package/dist/useService-W3Kxems4.mjs +72 -0
- package/dist/useSubscription-D1UKnZAx.mjs +250 -0
- package/dist/useSubscription-DZfRHbL7.js +1 -0
- package/dist/useViewport-Bu0cyeSi.mjs +38 -0
- package/dist/useViewport-CKRY1CKR.js +1 -0
- package/dist/useWatchDebounced-C_YxgoQ6.js +1 -0
- package/dist/useWatchDebounced-Zmxd6InB.mjs +16 -0
- package/dist/visa.svg.es-B6aU_qRs.mjs +4 -0
- package/dist/visa.svg.es-D6sc4YTE.js +1 -0
- package/dist/vpay.svg.es-4qIqS4aX.mjs +4 -0
- package/dist/vpay.svg.es-CLGTyB09.js +1 -0
- package/dist/zip.svg.es-3PzSBe1E.mjs +4 -0
- package/dist/zip.svg.es-BRsgmur-.js +1 -0
- package/package.json +112 -61
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-BD3CrJzj.js +0 -1
- package/dist/ContentWithAsideLayout-CRsFr9TH.mjs +0 -42
- package/dist/ContentWithAsideLayout-DczcgSrt.js +0 -1
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-BE3I7Oe1.js +0 -1
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-sNdlKgdU.js +0 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DJEZEEwZ.mjs +0 -6568
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-Sn1Jq19s.js +0 -1
- package/dist/PricingGroupContent.vue_vue_type_script_setup_true_lang-Bifo4jTH.js +0 -1
- package/dist/PricingGroupContent.vue_vue_type_script_setup_true_lang-DWp42_G4.mjs +0 -75
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-C_BwMlBE.js +0 -1
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-yyhwzYSM.js +0 -1
- package/dist/_Uint8Array-DHE03FZr.mjs +0 -507
- package/dist/_Uint8Array-DxISR7XF.js +0 -1
- package/dist/auto-DzZuCneB.mjs +0 -14387
- package/dist/auto-PpnAChnH.js +0 -6
- package/dist/cloneDeep-DranHQkY.js +0 -1
- package/dist/cloneDeep-sm9cY-u2.mjs +0 -212
- package/dist/component-DEo_ndpK.mjs +0 -58668
- package/dist/component-XHQYFLA_.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/CustomerPaymentMethods/CustomerPaymentMethods.es.js +0 -134
- package/dist/components/Invoice/Invoice.cjs.js +0 -1
- package/dist/components/InvoiceDetails/InvoiceDetails.cjs.js +0 -1
- 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/PaymentMethodForm/PaymentMethodForm.es.js +0 -238
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs.js +0 -1
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.es.js +0 -152
- package/dist/components/SubscriptionsList/SubscriptionsList.cjs.js +0 -1
- package/dist/components/SubscriptionsList/SubscriptionsList.es.js +0 -134
- 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/index-2jo9BSPM.js +0 -1
- package/dist/index-BFZ0dPh9.mjs +0 -179
- package/dist/index-CWSXne1Q.js +0 -1
- package/dist/index-CzL1ZcGi.mjs +0 -85
- package/dist/index-D3v7hAtc.mjs +0 -253
- package/dist/index-DRdBmZ2-.js +0 -1
- package/dist/index.cjs.js +0 -1
- package/dist/index.es.js +0 -45
- package/dist/invoices-BW1notiX.js +0 -1
- package/dist/invoices-M5oYVch6.mjs +0 -84
- package/dist/paymentMethods-BX80t2zk.js +0 -1
- package/dist/payments-BHv4hCeJ.js +0 -1
- package/dist/registry-BwKEYOf7.js +0 -1
- package/dist/registry-Cag1Jj7P.mjs +0 -143
- package/dist/screens/Checkout/Checkout.cjs.js +0 -1
- package/dist/screens/CustomerOverview/CustomerOverview.cjs.js +0 -1
- package/dist/screens/CustomerOverview/CustomerOverview.es.js +0 -136
- package/dist/screens/UpgradeSubscription/UpgradeSubscription.ce.d.ts +0 -3
- package/dist/screens/UpgradeSubscription/UpgradeSubscription.cjs.js +0 -1
- package/dist/screens/UpgradeSubscription/UpgradeSubscription.es.js +0 -1012
- package/dist/solvimon-web.css +0 -1
- package/dist/sprite-i5T7eZnk-C55G-dBo.js +0 -1
- package/dist/sprite-i5T7eZnk-i5T7eZnk.mjs +0 -4
- package/dist/subscriptions-Bs4DIE8f.mjs +0 -74
- package/dist/subscriptions-CnxvsBXd.js +0 -1
- package/dist/useActionDispatchProvider-Cru69mAl.js +0 -1
- package/dist/useCustomer-B0NK96dA.js +0 -1
- package/dist/useCustomer-DlcjY3fP.mjs +0 -45
- package/dist/useCustomerPaymentMethodOptions-C-8BLzqb.js +0 -1
- package/dist/useIncrementalLoading-D60Vttil.js +0 -1
- package/dist/useInvoiceData-DstXfI7t.js +0 -1
- package/dist/useInvoicesList-CXng3aUm.mjs +0 -294
- package/dist/useInvoicesList-DmzjgMlW.js +0 -1
- package/dist/useLoadInitialData-BRg7IWqW.js +0 -1
- package/dist/useService-B4qv5N2D.mjs +0 -281
- package/dist/useService-D-CUtlp3.js +0 -1
- package/dist/useWalletBalanceItems-BZyiAhcV.js +0 -1
- package/dist/useWalletBalanceItems-CHkLaccm.mjs +0 -105
|
@@ -0,0 +1,1069 @@
|
|
|
1
|
+
import { getCurrentInstance, ref, onBeforeMount, watch, isRef, reactive, onBeforeUnmount, computed, unref, inject, provide, isReactive, isReadonly, nextTick, defineComponent, toRefs, openBlock, createElementBlock, withModifiers, normalizeClass, createElementVNode, withDirectives, vModelCheckbox, renderSlot, createCommentVNode } from "vue";
|
|
2
|
+
function ownKeys$1(object, enumerableOnly) {
|
|
3
|
+
var keys = Object.keys(object);
|
|
4
|
+
if (Object.getOwnPropertySymbols) {
|
|
5
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
6
|
+
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
7
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
8
|
+
})), keys.push.apply(keys, symbols);
|
|
9
|
+
}
|
|
10
|
+
return keys;
|
|
11
|
+
}
|
|
12
|
+
function _objectSpread2$1(target) {
|
|
13
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
14
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
|
15
|
+
i % 2 ? ownKeys$1(Object(source), true).forEach(function(key) {
|
|
16
|
+
_defineProperty$1(target, key, source[key]);
|
|
17
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function(key) {
|
|
18
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
return target;
|
|
22
|
+
}
|
|
23
|
+
function _defineProperty$1(obj, key, value) {
|
|
24
|
+
if (key in obj) {
|
|
25
|
+
Object.defineProperty(obj, key, {
|
|
26
|
+
value,
|
|
27
|
+
enumerable: true,
|
|
28
|
+
configurable: true,
|
|
29
|
+
writable: true
|
|
30
|
+
});
|
|
31
|
+
} else {
|
|
32
|
+
obj[key] = value;
|
|
33
|
+
}
|
|
34
|
+
return obj;
|
|
35
|
+
}
|
|
36
|
+
function unwrapObj(obj) {
|
|
37
|
+
let ignoreKeys = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
38
|
+
return Object.keys(obj).reduce((o, k) => {
|
|
39
|
+
if (ignoreKeys.includes(k)) return o;
|
|
40
|
+
o[k] = unref(obj[k]);
|
|
41
|
+
return o;
|
|
42
|
+
}, {});
|
|
43
|
+
}
|
|
44
|
+
function isFunction$1(val) {
|
|
45
|
+
return typeof val === "function";
|
|
46
|
+
}
|
|
47
|
+
function isProxy(value) {
|
|
48
|
+
return isReactive(value) || isReadonly(value);
|
|
49
|
+
}
|
|
50
|
+
function get(obj, stringPath, def) {
|
|
51
|
+
let current = obj;
|
|
52
|
+
const path = stringPath.split(".");
|
|
53
|
+
for (let i = 0; i < path.length; i++) {
|
|
54
|
+
if (!current[path[i]]) return def;
|
|
55
|
+
current = current[path[i]];
|
|
56
|
+
}
|
|
57
|
+
return current;
|
|
58
|
+
}
|
|
59
|
+
function gatherBooleanGroupProperties(group, nestedResults, property) {
|
|
60
|
+
return computed(() => {
|
|
61
|
+
return group.some((path) => {
|
|
62
|
+
return get(nestedResults, path, {
|
|
63
|
+
[property]: false
|
|
64
|
+
})[property];
|
|
65
|
+
});
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
function gatherArrayGroupProperties(group, nestedResults, property) {
|
|
69
|
+
return computed(() => {
|
|
70
|
+
return group.reduce((all, path) => {
|
|
71
|
+
const fetchedProperty = get(nestedResults, path, {
|
|
72
|
+
[property]: false
|
|
73
|
+
})[property] || [];
|
|
74
|
+
return all.concat(fetchedProperty);
|
|
75
|
+
}, []);
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
function callRule(rule, value, siblingState, instance) {
|
|
79
|
+
return rule.call(instance, unref(value), unref(siblingState), instance);
|
|
80
|
+
}
|
|
81
|
+
function normalizeValidatorResponse(result) {
|
|
82
|
+
return result.$valid !== void 0 ? !result.$valid : !result;
|
|
83
|
+
}
|
|
84
|
+
function createAsyncResult(rule, model, $pending, $dirty, _ref, $response, instance) {
|
|
85
|
+
let {
|
|
86
|
+
$lazy,
|
|
87
|
+
$rewardEarly
|
|
88
|
+
} = _ref;
|
|
89
|
+
let watchTargets = arguments.length > 7 && arguments[7] !== void 0 ? arguments[7] : [];
|
|
90
|
+
let siblingState = arguments.length > 8 ? arguments[8] : void 0;
|
|
91
|
+
let $lastInvalidState = arguments.length > 9 ? arguments[9] : void 0;
|
|
92
|
+
let $lastCommittedOn = arguments.length > 10 ? arguments[10] : void 0;
|
|
93
|
+
const $invalid = ref(!!$dirty.value);
|
|
94
|
+
const $pendingCounter = ref(0);
|
|
95
|
+
$pending.value = false;
|
|
96
|
+
const $unwatch = watch([model, $dirty].concat(watchTargets, $lastCommittedOn), () => {
|
|
97
|
+
if ($lazy && !$dirty.value || $rewardEarly && !$lastInvalidState.value && !$pending.value) {
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
let ruleResult;
|
|
101
|
+
try {
|
|
102
|
+
ruleResult = callRule(rule, model, siblingState, instance);
|
|
103
|
+
} catch (err) {
|
|
104
|
+
ruleResult = Promise.reject(err);
|
|
105
|
+
}
|
|
106
|
+
$pendingCounter.value++;
|
|
107
|
+
$pending.value = !!$pendingCounter.value;
|
|
108
|
+
$invalid.value = false;
|
|
109
|
+
Promise.resolve(ruleResult).then((data) => {
|
|
110
|
+
$pendingCounter.value--;
|
|
111
|
+
$pending.value = !!$pendingCounter.value;
|
|
112
|
+
$response.value = data;
|
|
113
|
+
$invalid.value = normalizeValidatorResponse(data);
|
|
114
|
+
}).catch((error) => {
|
|
115
|
+
$pendingCounter.value--;
|
|
116
|
+
$pending.value = !!$pendingCounter.value;
|
|
117
|
+
$response.value = error;
|
|
118
|
+
$invalid.value = true;
|
|
119
|
+
});
|
|
120
|
+
}, {
|
|
121
|
+
immediate: true,
|
|
122
|
+
deep: typeof model === "object"
|
|
123
|
+
});
|
|
124
|
+
return {
|
|
125
|
+
$invalid,
|
|
126
|
+
$unwatch
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
function createSyncResult(rule, model, $dirty, _ref2, $response, instance, siblingState, $lastInvalidState) {
|
|
130
|
+
let {
|
|
131
|
+
$lazy,
|
|
132
|
+
$rewardEarly
|
|
133
|
+
} = _ref2;
|
|
134
|
+
const $unwatch = () => ({});
|
|
135
|
+
const $invalid = computed(() => {
|
|
136
|
+
if ($lazy && !$dirty.value || $rewardEarly && !$lastInvalidState.value) {
|
|
137
|
+
return false;
|
|
138
|
+
}
|
|
139
|
+
let returnValue = true;
|
|
140
|
+
try {
|
|
141
|
+
const result = callRule(rule, model, siblingState, instance);
|
|
142
|
+
$response.value = result;
|
|
143
|
+
returnValue = normalizeValidatorResponse(result);
|
|
144
|
+
} catch (err) {
|
|
145
|
+
$response.value = err;
|
|
146
|
+
}
|
|
147
|
+
return returnValue;
|
|
148
|
+
});
|
|
149
|
+
return {
|
|
150
|
+
$unwatch,
|
|
151
|
+
$invalid
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
function createValidatorResult(rule, model, $dirty, config, instance, validatorName, propertyKey, propertyPath, siblingState, $lastInvalidState, $lastCommittedOn) {
|
|
155
|
+
const $pending = ref(false);
|
|
156
|
+
const $params = rule.$params || {};
|
|
157
|
+
const $response = ref(null);
|
|
158
|
+
let $invalid;
|
|
159
|
+
let $unwatch;
|
|
160
|
+
if (rule.$async) {
|
|
161
|
+
({
|
|
162
|
+
$invalid,
|
|
163
|
+
$unwatch
|
|
164
|
+
} = createAsyncResult(rule.$validator, model, $pending, $dirty, config, $response, instance, rule.$watchTargets, siblingState, $lastInvalidState, $lastCommittedOn));
|
|
165
|
+
} else {
|
|
166
|
+
({
|
|
167
|
+
$invalid,
|
|
168
|
+
$unwatch
|
|
169
|
+
} = createSyncResult(rule.$validator, model, $dirty, config, $response, instance, siblingState, $lastInvalidState));
|
|
170
|
+
}
|
|
171
|
+
const message = rule.$message;
|
|
172
|
+
const $message = isFunction$1(message) ? computed(() => message(unwrapObj({
|
|
173
|
+
$pending,
|
|
174
|
+
$invalid,
|
|
175
|
+
$params: unwrapObj($params),
|
|
176
|
+
$model: model,
|
|
177
|
+
$response,
|
|
178
|
+
$validator: validatorName,
|
|
179
|
+
$propertyPath: propertyPath,
|
|
180
|
+
$property: propertyKey
|
|
181
|
+
}))) : message || "";
|
|
182
|
+
return {
|
|
183
|
+
$message,
|
|
184
|
+
$params,
|
|
185
|
+
$pending,
|
|
186
|
+
$invalid,
|
|
187
|
+
$response,
|
|
188
|
+
$unwatch
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
function sortValidations() {
|
|
192
|
+
let validationsRaw = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
193
|
+
const validations = unref(validationsRaw);
|
|
194
|
+
const validationKeys = Object.keys(validations);
|
|
195
|
+
const rules = {};
|
|
196
|
+
const nestedValidators = {};
|
|
197
|
+
const config = {};
|
|
198
|
+
let validationGroups = null;
|
|
199
|
+
validationKeys.forEach((key) => {
|
|
200
|
+
const v = validations[key];
|
|
201
|
+
switch (true) {
|
|
202
|
+
case isFunction$1(v.$validator):
|
|
203
|
+
rules[key] = v;
|
|
204
|
+
break;
|
|
205
|
+
case isFunction$1(v):
|
|
206
|
+
rules[key] = {
|
|
207
|
+
$validator: v
|
|
208
|
+
};
|
|
209
|
+
break;
|
|
210
|
+
case key === "$validationGroups":
|
|
211
|
+
validationGroups = v;
|
|
212
|
+
break;
|
|
213
|
+
case key.startsWith("$"):
|
|
214
|
+
config[key] = v;
|
|
215
|
+
break;
|
|
216
|
+
default:
|
|
217
|
+
nestedValidators[key] = v;
|
|
218
|
+
}
|
|
219
|
+
});
|
|
220
|
+
return {
|
|
221
|
+
rules,
|
|
222
|
+
nestedValidators,
|
|
223
|
+
config,
|
|
224
|
+
validationGroups
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
const ROOT_PATH = "__root";
|
|
228
|
+
function createValidationResults(rules, model, key, resultsCache, path, config, instance, externalResults, siblingState) {
|
|
229
|
+
const ruleKeys = Object.keys(rules);
|
|
230
|
+
const cachedResult = resultsCache.get(path, rules);
|
|
231
|
+
const $dirty = ref(false);
|
|
232
|
+
const $lastInvalidState = ref(false);
|
|
233
|
+
const $lastCommittedOn = ref(0);
|
|
234
|
+
if (cachedResult) {
|
|
235
|
+
if (!cachedResult.$partial) return cachedResult;
|
|
236
|
+
cachedResult.$unwatch();
|
|
237
|
+
$dirty.value = cachedResult.$dirty.value;
|
|
238
|
+
}
|
|
239
|
+
const result = {
|
|
240
|
+
$dirty,
|
|
241
|
+
$path: path,
|
|
242
|
+
$touch: () => {
|
|
243
|
+
if (!$dirty.value) $dirty.value = true;
|
|
244
|
+
},
|
|
245
|
+
$reset: () => {
|
|
246
|
+
if ($dirty.value) $dirty.value = false;
|
|
247
|
+
},
|
|
248
|
+
$commit: () => {
|
|
249
|
+
}
|
|
250
|
+
};
|
|
251
|
+
if (!ruleKeys.length) {
|
|
252
|
+
cachedResult && resultsCache.set(path, rules, result);
|
|
253
|
+
return result;
|
|
254
|
+
}
|
|
255
|
+
ruleKeys.forEach((ruleKey) => {
|
|
256
|
+
result[ruleKey] = createValidatorResult(rules[ruleKey], model, result.$dirty, config, instance, ruleKey, key, path, siblingState, $lastInvalidState, $lastCommittedOn);
|
|
257
|
+
});
|
|
258
|
+
result.$externalResults = computed(() => {
|
|
259
|
+
if (!externalResults.value) return [];
|
|
260
|
+
return [].concat(externalResults.value).map((stringError, index) => ({
|
|
261
|
+
$propertyPath: path,
|
|
262
|
+
$property: key,
|
|
263
|
+
$validator: "$externalResults",
|
|
264
|
+
$uid: `${path}-externalResult-${index}`,
|
|
265
|
+
$message: stringError,
|
|
266
|
+
$params: {},
|
|
267
|
+
$response: null,
|
|
268
|
+
$pending: false
|
|
269
|
+
}));
|
|
270
|
+
});
|
|
271
|
+
result.$invalid = computed(() => {
|
|
272
|
+
const r = ruleKeys.some((ruleKey) => unref(result[ruleKey].$invalid));
|
|
273
|
+
$lastInvalidState.value = r;
|
|
274
|
+
return !!result.$externalResults.value.length || r;
|
|
275
|
+
});
|
|
276
|
+
result.$pending = computed(() => ruleKeys.some((ruleKey) => unref(result[ruleKey].$pending)));
|
|
277
|
+
result.$error = computed(() => result.$dirty.value ? result.$pending.value || result.$invalid.value : false);
|
|
278
|
+
result.$silentErrors = computed(() => ruleKeys.filter((ruleKey) => unref(result[ruleKey].$invalid)).map((ruleKey) => {
|
|
279
|
+
const res = result[ruleKey];
|
|
280
|
+
return reactive({
|
|
281
|
+
$propertyPath: path,
|
|
282
|
+
$property: key,
|
|
283
|
+
$validator: ruleKey,
|
|
284
|
+
$uid: `${path}-${ruleKey}`,
|
|
285
|
+
$message: res.$message,
|
|
286
|
+
$params: res.$params,
|
|
287
|
+
$response: res.$response,
|
|
288
|
+
$pending: res.$pending
|
|
289
|
+
});
|
|
290
|
+
}).concat(result.$externalResults.value));
|
|
291
|
+
result.$errors = computed(() => result.$dirty.value ? result.$silentErrors.value : []);
|
|
292
|
+
result.$unwatch = () => ruleKeys.forEach((ruleKey) => {
|
|
293
|
+
result[ruleKey].$unwatch();
|
|
294
|
+
});
|
|
295
|
+
result.$commit = () => {
|
|
296
|
+
$lastInvalidState.value = true;
|
|
297
|
+
$lastCommittedOn.value = Date.now();
|
|
298
|
+
};
|
|
299
|
+
resultsCache.set(path, rules, result);
|
|
300
|
+
return result;
|
|
301
|
+
}
|
|
302
|
+
function collectNestedValidationResults(validations, nestedState, path, resultsCache, config, instance, nestedExternalResults) {
|
|
303
|
+
const nestedValidationKeys = Object.keys(validations);
|
|
304
|
+
if (!nestedValidationKeys.length) return {};
|
|
305
|
+
return nestedValidationKeys.reduce((results, nestedKey) => {
|
|
306
|
+
results[nestedKey] = setValidations({
|
|
307
|
+
validations: validations[nestedKey],
|
|
308
|
+
state: nestedState,
|
|
309
|
+
key: nestedKey,
|
|
310
|
+
parentKey: path,
|
|
311
|
+
resultsCache,
|
|
312
|
+
globalConfig: config,
|
|
313
|
+
instance,
|
|
314
|
+
externalResults: nestedExternalResults
|
|
315
|
+
});
|
|
316
|
+
return results;
|
|
317
|
+
}, {});
|
|
318
|
+
}
|
|
319
|
+
function createMetaFields(results, nestedResults, childResults) {
|
|
320
|
+
const allResults = computed(() => [nestedResults, childResults].filter((res) => res).reduce((allRes, res) => {
|
|
321
|
+
return allRes.concat(Object.values(unref(res)));
|
|
322
|
+
}, []));
|
|
323
|
+
const $dirty = computed({
|
|
324
|
+
get() {
|
|
325
|
+
return results.$dirty.value || (allResults.value.length ? allResults.value.every((r) => r.$dirty) : false);
|
|
326
|
+
},
|
|
327
|
+
set(v) {
|
|
328
|
+
results.$dirty.value = v;
|
|
329
|
+
}
|
|
330
|
+
});
|
|
331
|
+
const $silentErrors = computed(() => {
|
|
332
|
+
const modelErrors = unref(results.$silentErrors) || [];
|
|
333
|
+
const nestedErrors = allResults.value.filter((result) => (unref(result).$silentErrors || []).length).reduce((errors, result) => {
|
|
334
|
+
return errors.concat(...result.$silentErrors);
|
|
335
|
+
}, []);
|
|
336
|
+
return modelErrors.concat(nestedErrors);
|
|
337
|
+
});
|
|
338
|
+
const $errors = computed(() => {
|
|
339
|
+
const modelErrors = unref(results.$errors) || [];
|
|
340
|
+
const nestedErrors = allResults.value.filter((result) => (unref(result).$errors || []).length).reduce((errors, result) => {
|
|
341
|
+
return errors.concat(...result.$errors);
|
|
342
|
+
}, []);
|
|
343
|
+
return modelErrors.concat(nestedErrors);
|
|
344
|
+
});
|
|
345
|
+
const $invalid = computed(() => allResults.value.some((r) => r.$invalid) || unref(results.$invalid) || false);
|
|
346
|
+
const $pending = computed(() => allResults.value.some((r) => unref(r.$pending)) || unref(results.$pending) || false);
|
|
347
|
+
const $anyDirty = computed(() => allResults.value.some((r) => r.$dirty) || allResults.value.some((r) => r.$anyDirty) || $dirty.value);
|
|
348
|
+
const $error = computed(() => $dirty.value ? $pending.value || $invalid.value : false);
|
|
349
|
+
const $touch = () => {
|
|
350
|
+
results.$touch();
|
|
351
|
+
allResults.value.forEach((result) => {
|
|
352
|
+
result.$touch();
|
|
353
|
+
});
|
|
354
|
+
};
|
|
355
|
+
const $commit = () => {
|
|
356
|
+
results.$commit();
|
|
357
|
+
allResults.value.forEach((result) => {
|
|
358
|
+
result.$commit();
|
|
359
|
+
});
|
|
360
|
+
};
|
|
361
|
+
const $reset = () => {
|
|
362
|
+
results.$reset();
|
|
363
|
+
allResults.value.forEach((result) => {
|
|
364
|
+
result.$reset();
|
|
365
|
+
});
|
|
366
|
+
};
|
|
367
|
+
if (allResults.value.length && allResults.value.every((nr) => nr.$dirty)) $touch();
|
|
368
|
+
return {
|
|
369
|
+
$dirty,
|
|
370
|
+
$errors,
|
|
371
|
+
$invalid,
|
|
372
|
+
$anyDirty,
|
|
373
|
+
$error,
|
|
374
|
+
$pending,
|
|
375
|
+
$touch,
|
|
376
|
+
$reset,
|
|
377
|
+
$silentErrors,
|
|
378
|
+
$commit
|
|
379
|
+
};
|
|
380
|
+
}
|
|
381
|
+
function setValidations(_ref) {
|
|
382
|
+
let {
|
|
383
|
+
validations,
|
|
384
|
+
state,
|
|
385
|
+
key,
|
|
386
|
+
parentKey,
|
|
387
|
+
childResults,
|
|
388
|
+
resultsCache,
|
|
389
|
+
globalConfig = {},
|
|
390
|
+
instance,
|
|
391
|
+
externalResults
|
|
392
|
+
} = _ref;
|
|
393
|
+
const path = parentKey ? `${parentKey}.${key}` : key;
|
|
394
|
+
const {
|
|
395
|
+
rules,
|
|
396
|
+
nestedValidators,
|
|
397
|
+
config,
|
|
398
|
+
validationGroups
|
|
399
|
+
} = sortValidations(validations);
|
|
400
|
+
const mergedConfig = _objectSpread2$1(_objectSpread2$1({}, globalConfig), config);
|
|
401
|
+
const nestedState = key ? computed(() => {
|
|
402
|
+
const s = unref(state);
|
|
403
|
+
return s ? unref(s[key]) : void 0;
|
|
404
|
+
}) : state;
|
|
405
|
+
const cachedExternalResults = _objectSpread2$1({}, unref(externalResults) || {});
|
|
406
|
+
const nestedExternalResults = computed(() => {
|
|
407
|
+
const results2 = unref(externalResults);
|
|
408
|
+
if (!key) return results2;
|
|
409
|
+
return results2 ? unref(results2[key]) : void 0;
|
|
410
|
+
});
|
|
411
|
+
const results = createValidationResults(rules, nestedState, key, resultsCache, path, mergedConfig, instance, nestedExternalResults, state);
|
|
412
|
+
const nestedResults = collectNestedValidationResults(nestedValidators, nestedState, path, resultsCache, mergedConfig, instance, nestedExternalResults);
|
|
413
|
+
const $validationGroups = {};
|
|
414
|
+
if (validationGroups) {
|
|
415
|
+
Object.entries(validationGroups).forEach((_ref2) => {
|
|
416
|
+
let [key2, group] = _ref2;
|
|
417
|
+
$validationGroups[key2] = {
|
|
418
|
+
$invalid: gatherBooleanGroupProperties(group, nestedResults, "$invalid"),
|
|
419
|
+
$error: gatherBooleanGroupProperties(group, nestedResults, "$error"),
|
|
420
|
+
$pending: gatherBooleanGroupProperties(group, nestedResults, "$pending"),
|
|
421
|
+
$errors: gatherArrayGroupProperties(group, nestedResults, "$errors"),
|
|
422
|
+
$silentErrors: gatherArrayGroupProperties(group, nestedResults, "$silentErrors")
|
|
423
|
+
};
|
|
424
|
+
});
|
|
425
|
+
}
|
|
426
|
+
const {
|
|
427
|
+
$dirty,
|
|
428
|
+
$errors,
|
|
429
|
+
$invalid,
|
|
430
|
+
$anyDirty,
|
|
431
|
+
$error,
|
|
432
|
+
$pending,
|
|
433
|
+
$touch,
|
|
434
|
+
$reset,
|
|
435
|
+
$silentErrors,
|
|
436
|
+
$commit
|
|
437
|
+
} = createMetaFields(results, nestedResults, childResults);
|
|
438
|
+
const $model = key ? computed({
|
|
439
|
+
get: () => unref(nestedState),
|
|
440
|
+
set: (val) => {
|
|
441
|
+
$dirty.value = true;
|
|
442
|
+
const s = unref(state);
|
|
443
|
+
const external = unref(externalResults);
|
|
444
|
+
if (external) {
|
|
445
|
+
external[key] = cachedExternalResults[key];
|
|
446
|
+
}
|
|
447
|
+
if (isRef(s[key])) {
|
|
448
|
+
s[key].value = val;
|
|
449
|
+
} else {
|
|
450
|
+
s[key] = val;
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
}) : null;
|
|
454
|
+
if (key && mergedConfig.$autoDirty) {
|
|
455
|
+
watch(nestedState, () => {
|
|
456
|
+
if (!$dirty.value) $touch();
|
|
457
|
+
const external = unref(externalResults);
|
|
458
|
+
if (external) {
|
|
459
|
+
external[key] = cachedExternalResults[key];
|
|
460
|
+
}
|
|
461
|
+
}, {
|
|
462
|
+
flush: "sync"
|
|
463
|
+
});
|
|
464
|
+
}
|
|
465
|
+
async function $validate() {
|
|
466
|
+
$touch();
|
|
467
|
+
if (mergedConfig.$rewardEarly) {
|
|
468
|
+
$commit();
|
|
469
|
+
await nextTick();
|
|
470
|
+
}
|
|
471
|
+
await nextTick();
|
|
472
|
+
return new Promise((resolve) => {
|
|
473
|
+
if (!$pending.value) return resolve(!$invalid.value);
|
|
474
|
+
const unwatch = watch($pending, () => {
|
|
475
|
+
resolve(!$invalid.value);
|
|
476
|
+
unwatch();
|
|
477
|
+
});
|
|
478
|
+
});
|
|
479
|
+
}
|
|
480
|
+
function $getResultsForChild(key2) {
|
|
481
|
+
return (childResults.value || {})[key2];
|
|
482
|
+
}
|
|
483
|
+
function $clearExternalResults() {
|
|
484
|
+
if (isRef(externalResults)) {
|
|
485
|
+
externalResults.value = cachedExternalResults;
|
|
486
|
+
} else {
|
|
487
|
+
if (Object.keys(cachedExternalResults).length === 0) {
|
|
488
|
+
Object.keys(externalResults).forEach((k) => {
|
|
489
|
+
delete externalResults[k];
|
|
490
|
+
});
|
|
491
|
+
} else {
|
|
492
|
+
Object.assign(externalResults, cachedExternalResults);
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
return reactive(_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({}, results), {}, {
|
|
497
|
+
$model,
|
|
498
|
+
$dirty,
|
|
499
|
+
$error,
|
|
500
|
+
$errors,
|
|
501
|
+
$invalid,
|
|
502
|
+
$anyDirty,
|
|
503
|
+
$pending,
|
|
504
|
+
$touch,
|
|
505
|
+
$reset,
|
|
506
|
+
$path: path || ROOT_PATH,
|
|
507
|
+
$silentErrors,
|
|
508
|
+
$validate,
|
|
509
|
+
$commit
|
|
510
|
+
}, childResults && {
|
|
511
|
+
$getResultsForChild,
|
|
512
|
+
$clearExternalResults,
|
|
513
|
+
$validationGroups
|
|
514
|
+
}), nestedResults));
|
|
515
|
+
}
|
|
516
|
+
class ResultsStorage {
|
|
517
|
+
constructor() {
|
|
518
|
+
this.storage = /* @__PURE__ */ new Map();
|
|
519
|
+
}
|
|
520
|
+
set(path, rules, result) {
|
|
521
|
+
this.storage.set(path, {
|
|
522
|
+
rules,
|
|
523
|
+
result
|
|
524
|
+
});
|
|
525
|
+
}
|
|
526
|
+
checkRulesValidity(path, rules, storedRules) {
|
|
527
|
+
const storedRulesKeys = Object.keys(storedRules);
|
|
528
|
+
const newRulesKeys = Object.keys(rules);
|
|
529
|
+
if (newRulesKeys.length !== storedRulesKeys.length) return false;
|
|
530
|
+
const hasAllValidators = newRulesKeys.every((ruleKey) => storedRulesKeys.includes(ruleKey));
|
|
531
|
+
if (!hasAllValidators) return false;
|
|
532
|
+
return newRulesKeys.every((ruleKey) => {
|
|
533
|
+
if (!rules[ruleKey].$params) return true;
|
|
534
|
+
return Object.keys(rules[ruleKey].$params).every((paramKey) => {
|
|
535
|
+
return unref(storedRules[ruleKey].$params[paramKey]) === unref(rules[ruleKey].$params[paramKey]);
|
|
536
|
+
});
|
|
537
|
+
});
|
|
538
|
+
}
|
|
539
|
+
get(path, rules) {
|
|
540
|
+
const storedRuleResultPair = this.storage.get(path);
|
|
541
|
+
if (!storedRuleResultPair) return void 0;
|
|
542
|
+
const {
|
|
543
|
+
rules: storedRules,
|
|
544
|
+
result
|
|
545
|
+
} = storedRuleResultPair;
|
|
546
|
+
const isValidCache = this.checkRulesValidity(path, rules, storedRules);
|
|
547
|
+
const $unwatch = result.$unwatch ? result.$unwatch : () => ({});
|
|
548
|
+
if (!isValidCache) return {
|
|
549
|
+
$dirty: result.$dirty,
|
|
550
|
+
$partial: true,
|
|
551
|
+
$unwatch
|
|
552
|
+
};
|
|
553
|
+
return result;
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
const CollectFlag = {
|
|
557
|
+
COLLECT_ALL: true,
|
|
558
|
+
COLLECT_NONE: false
|
|
559
|
+
};
|
|
560
|
+
const VuelidateInjectChildResults = Symbol("vuelidate#injectChildResults");
|
|
561
|
+
const VuelidateRemoveChildResults = Symbol("vuelidate#removeChildResults");
|
|
562
|
+
function nestedValidations(_ref) {
|
|
563
|
+
let {
|
|
564
|
+
$scope,
|
|
565
|
+
instance
|
|
566
|
+
} = _ref;
|
|
567
|
+
const childResultsRaw = {};
|
|
568
|
+
const childResultsKeys = ref([]);
|
|
569
|
+
const childResults = computed(() => childResultsKeys.value.reduce((results, key) => {
|
|
570
|
+
results[key] = unref(childResultsRaw[key]);
|
|
571
|
+
return results;
|
|
572
|
+
}, {}));
|
|
573
|
+
function injectChildResultsIntoParent(results, _ref2) {
|
|
574
|
+
let {
|
|
575
|
+
$registerAs: key,
|
|
576
|
+
$scope: childScope,
|
|
577
|
+
$stopPropagation
|
|
578
|
+
} = _ref2;
|
|
579
|
+
if ($stopPropagation || $scope === CollectFlag.COLLECT_NONE || childScope === CollectFlag.COLLECT_NONE || $scope !== CollectFlag.COLLECT_ALL && $scope !== childScope) return;
|
|
580
|
+
childResultsRaw[key] = results;
|
|
581
|
+
childResultsKeys.value.push(key);
|
|
582
|
+
}
|
|
583
|
+
instance.__vuelidateInjectInstances = [].concat(instance.__vuelidateInjectInstances || [], injectChildResultsIntoParent);
|
|
584
|
+
function removeChildResultsFromParent(key) {
|
|
585
|
+
childResultsKeys.value = childResultsKeys.value.filter((childKey) => childKey !== key);
|
|
586
|
+
delete childResultsRaw[key];
|
|
587
|
+
}
|
|
588
|
+
instance.__vuelidateRemoveInstances = [].concat(instance.__vuelidateRemoveInstances || [], removeChildResultsFromParent);
|
|
589
|
+
const sendValidationResultsToParent = inject(VuelidateInjectChildResults, []);
|
|
590
|
+
provide(VuelidateInjectChildResults, instance.__vuelidateInjectInstances);
|
|
591
|
+
const removeValidationResultsFromParent = inject(VuelidateRemoveChildResults, []);
|
|
592
|
+
provide(VuelidateRemoveChildResults, instance.__vuelidateRemoveInstances);
|
|
593
|
+
return {
|
|
594
|
+
childResults,
|
|
595
|
+
sendValidationResultsToParent,
|
|
596
|
+
removeValidationResultsFromParent
|
|
597
|
+
};
|
|
598
|
+
}
|
|
599
|
+
function ComputedProxyFactory(target) {
|
|
600
|
+
return new Proxy(target, {
|
|
601
|
+
get(target2, prop) {
|
|
602
|
+
return typeof target2[prop] === "object" ? ComputedProxyFactory(target2[prop]) : computed(() => target2[prop]);
|
|
603
|
+
}
|
|
604
|
+
});
|
|
605
|
+
}
|
|
606
|
+
let uid = 0;
|
|
607
|
+
function useVuelidate(validations, state) {
|
|
608
|
+
var _getCurrentInstance;
|
|
609
|
+
let globalConfig = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
610
|
+
if (arguments.length === 1) {
|
|
611
|
+
globalConfig = validations;
|
|
612
|
+
validations = void 0;
|
|
613
|
+
state = void 0;
|
|
614
|
+
}
|
|
615
|
+
let {
|
|
616
|
+
$registerAs,
|
|
617
|
+
$scope = CollectFlag.COLLECT_ALL,
|
|
618
|
+
$stopPropagation,
|
|
619
|
+
$externalResults,
|
|
620
|
+
currentVueInstance
|
|
621
|
+
} = globalConfig;
|
|
622
|
+
const instance = currentVueInstance || ((_getCurrentInstance = getCurrentInstance()) === null || _getCurrentInstance === void 0 ? void 0 : _getCurrentInstance.proxy);
|
|
623
|
+
const componentOptions = instance ? instance.$options : {};
|
|
624
|
+
if (!$registerAs) {
|
|
625
|
+
uid += 1;
|
|
626
|
+
$registerAs = `_vuelidate_${uid}`;
|
|
627
|
+
}
|
|
628
|
+
const validationResults = ref({});
|
|
629
|
+
const resultsCache = new ResultsStorage();
|
|
630
|
+
const {
|
|
631
|
+
childResults,
|
|
632
|
+
sendValidationResultsToParent,
|
|
633
|
+
removeValidationResultsFromParent
|
|
634
|
+
} = instance ? nestedValidations({
|
|
635
|
+
$scope,
|
|
636
|
+
instance
|
|
637
|
+
}) : {
|
|
638
|
+
childResults: ref({})
|
|
639
|
+
};
|
|
640
|
+
if (!validations && componentOptions.validations) {
|
|
641
|
+
const rules = componentOptions.validations;
|
|
642
|
+
state = ref({});
|
|
643
|
+
onBeforeMount(() => {
|
|
644
|
+
state.value = instance;
|
|
645
|
+
watch(() => isFunction$1(rules) ? rules.call(state.value, new ComputedProxyFactory(state.value)) : rules, (validations2) => {
|
|
646
|
+
validationResults.value = setValidations({
|
|
647
|
+
validations: validations2,
|
|
648
|
+
state,
|
|
649
|
+
childResults,
|
|
650
|
+
resultsCache,
|
|
651
|
+
globalConfig,
|
|
652
|
+
instance,
|
|
653
|
+
externalResults: $externalResults || instance.vuelidateExternalResults
|
|
654
|
+
});
|
|
655
|
+
}, {
|
|
656
|
+
immediate: true
|
|
657
|
+
});
|
|
658
|
+
});
|
|
659
|
+
globalConfig = componentOptions.validationsConfig || globalConfig;
|
|
660
|
+
} else {
|
|
661
|
+
const validationsWatchTarget = isRef(validations) || isProxy(validations) ? validations : reactive(validations || {});
|
|
662
|
+
watch(validationsWatchTarget, (newValidationRules) => {
|
|
663
|
+
validationResults.value = setValidations({
|
|
664
|
+
validations: newValidationRules,
|
|
665
|
+
state,
|
|
666
|
+
childResults,
|
|
667
|
+
resultsCache,
|
|
668
|
+
globalConfig,
|
|
669
|
+
instance: instance !== null && instance !== void 0 ? instance : {},
|
|
670
|
+
externalResults: $externalResults
|
|
671
|
+
});
|
|
672
|
+
}, {
|
|
673
|
+
immediate: true
|
|
674
|
+
});
|
|
675
|
+
}
|
|
676
|
+
if (instance) {
|
|
677
|
+
sendValidationResultsToParent.forEach((f) => f(validationResults, {
|
|
678
|
+
$registerAs,
|
|
679
|
+
$scope,
|
|
680
|
+
$stopPropagation
|
|
681
|
+
}));
|
|
682
|
+
onBeforeUnmount(() => removeValidationResultsFromParent.forEach((f) => f($registerAs)));
|
|
683
|
+
}
|
|
684
|
+
return computed(() => {
|
|
685
|
+
return _objectSpread2$1(_objectSpread2$1({}, unref(validationResults.value)), childResults.value);
|
|
686
|
+
});
|
|
687
|
+
}
|
|
688
|
+
function useValidation(rulesOrGlobalConfig, model, globalConfig) {
|
|
689
|
+
if (rulesOrGlobalConfig && model) {
|
|
690
|
+
return useVuelidate(rulesOrGlobalConfig, model, { $autoDirty: true, ...globalConfig });
|
|
691
|
+
}
|
|
692
|
+
return useVuelidate({ $autoDirty: true, ...rulesOrGlobalConfig });
|
|
693
|
+
}
|
|
694
|
+
const defaultLabelClassesObj = {
|
|
695
|
+
"w-fit": true,
|
|
696
|
+
relative: true,
|
|
697
|
+
"inline-flex": true,
|
|
698
|
+
"items-center": true
|
|
699
|
+
};
|
|
700
|
+
const defaultToggleBallClasses = "grow text-sm font-medium text-default";
|
|
701
|
+
const toggleSizeClasses = {
|
|
702
|
+
xl: "w-16 h-8 after:top-0.5 after:left-0.5 after:h-7 after:w-7",
|
|
703
|
+
lg: "w-14 h-7 after:top-0.5 after:left-0.5 after:h-6 after:w-6",
|
|
704
|
+
md: "w-11 h-6 after:top-0.5 after:left-0.5 after:h-5 after:w-5",
|
|
705
|
+
sm: "w-9 h-5 after:top-0.5 after:left-0.5 after:h-4 after:w-4",
|
|
706
|
+
xs: "w-7 h-4 after:top-0.5 after:left-0.5 after:h-3 after:w-3"
|
|
707
|
+
};
|
|
708
|
+
const toggleColorClasses = {
|
|
709
|
+
red: "peer-focus:ring-red-300 peer-checked:bg-red-600",
|
|
710
|
+
green: "peer-focus:ring-green-300 peer-checked:bg-green-600",
|
|
711
|
+
purple: "peer-focus:ring-purple-300 peer-checked:bg-purple-600",
|
|
712
|
+
yellow: "peer-focus:ring-yellow-300 peer-checked:bg-yellow-400",
|
|
713
|
+
teal: "peer-focus:ring-teal-300 peer-checked:bg-teal-600",
|
|
714
|
+
orange: "peer-focus:ring-orange-300 peer-checked:bg-orange-500"
|
|
715
|
+
};
|
|
716
|
+
const useToggleClasses = (props) => {
|
|
717
|
+
const labelClasses = computed(() => {
|
|
718
|
+
var _a, _b;
|
|
719
|
+
return {
|
|
720
|
+
...defaultLabelClassesObj,
|
|
721
|
+
"cursor-pointer": !((_a = props.disabled) == null ? void 0 : _a.value),
|
|
722
|
+
"cursor-default": !!((_b = props.disabled) == null ? void 0 : _b.value)
|
|
723
|
+
};
|
|
724
|
+
});
|
|
725
|
+
const toggleClasses = computed(() => {
|
|
726
|
+
var _a, _b;
|
|
727
|
+
return {
|
|
728
|
+
'peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-primary-300 rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[""] after:absolute after:top-0.5 after:left-0.5 after:border-gray-300 after:border after:rounded-full after:transition-all': true,
|
|
729
|
+
"bg-gray-200 peer-checked:bg-primary-600 after:bg-white": !((_a = props.disabled) == null ? void 0 : _a.value),
|
|
730
|
+
"bg-gray-100 peer-checked:bg-primary-200 after:bg-gray-200": (_b = props.disabled) == null ? void 0 : _b.value
|
|
731
|
+
};
|
|
732
|
+
});
|
|
733
|
+
const toggleSize = computed(() => toggleSizeClasses[props.size.value]);
|
|
734
|
+
const toggleColor = computed(() => toggleColorClasses[props.color.value]);
|
|
735
|
+
const toggleBallClasses = computed(() => defaultToggleBallClasses);
|
|
736
|
+
return {
|
|
737
|
+
labelClasses,
|
|
738
|
+
toggleSize,
|
|
739
|
+
toggleClasses,
|
|
740
|
+
toggleColor,
|
|
741
|
+
toggleBallClasses
|
|
742
|
+
};
|
|
743
|
+
};
|
|
744
|
+
const _hoisted_1 = ["disabled"];
|
|
745
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
746
|
+
__name: "Toggle",
|
|
747
|
+
props: {
|
|
748
|
+
modelValue: { type: Boolean, default: false },
|
|
749
|
+
labelPosition: { default: "after" },
|
|
750
|
+
size: { default: "md" },
|
|
751
|
+
disabled: { type: Boolean, default: false },
|
|
752
|
+
color: { default: "" },
|
|
753
|
+
hasBackground: { type: Boolean, default: false },
|
|
754
|
+
noSpacing: { type: Boolean, default: false }
|
|
755
|
+
},
|
|
756
|
+
emits: ["update:modelValue"],
|
|
757
|
+
setup(__props, { emit: __emit }) {
|
|
758
|
+
const props = __props;
|
|
759
|
+
const emit = __emit;
|
|
760
|
+
const model = computed({
|
|
761
|
+
get() {
|
|
762
|
+
return props.modelValue;
|
|
763
|
+
},
|
|
764
|
+
set(val) {
|
|
765
|
+
emit("update:modelValue", val);
|
|
766
|
+
}
|
|
767
|
+
});
|
|
768
|
+
const { labelClasses, toggleSize, toggleClasses, toggleColor, toggleBallClasses } = useToggleClasses(toRefs(props));
|
|
769
|
+
return (_ctx, _cache) => {
|
|
770
|
+
return openBlock(), createElementBlock("label", {
|
|
771
|
+
class: normalizeClass(["inline-flex items-center gap-1.5", {
|
|
772
|
+
"flex-row-reverse": __props.labelPosition === "before",
|
|
773
|
+
"rounded border-l-4 border-gray-200 bg-gray-50": __props.hasBackground,
|
|
774
|
+
"p-2": !__props.noSpacing
|
|
775
|
+
}]),
|
|
776
|
+
onClick: _cache[1] || (_cache[1] = withModifiers(() => {
|
|
777
|
+
}, ["stop"]))
|
|
778
|
+
}, [
|
|
779
|
+
createElementVNode("div", {
|
|
780
|
+
class: normalizeClass(unref(labelClasses))
|
|
781
|
+
}, [
|
|
782
|
+
withDirectives(createElementVNode("input", {
|
|
783
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event),
|
|
784
|
+
disabled: __props.disabled,
|
|
785
|
+
class: "peer sr-only",
|
|
786
|
+
type: "checkbox"
|
|
787
|
+
}, null, 8, _hoisted_1), [
|
|
788
|
+
[vModelCheckbox, model.value]
|
|
789
|
+
]),
|
|
790
|
+
createElementVNode("span", {
|
|
791
|
+
class: normalizeClass([unref(toggleClasses), unref(toggleSize), unref(toggleColor)])
|
|
792
|
+
}, null, 2)
|
|
793
|
+
], 2),
|
|
794
|
+
_ctx.$slots["inline-label"] ? (openBlock(), createElementBlock("span", {
|
|
795
|
+
key: 0,
|
|
796
|
+
class: normalizeClass(unref(toggleBallClasses))
|
|
797
|
+
}, [
|
|
798
|
+
renderSlot(_ctx.$slots, "inline-label")
|
|
799
|
+
], 2)) : createCommentVNode("", true)
|
|
800
|
+
], 2);
|
|
801
|
+
};
|
|
802
|
+
}
|
|
803
|
+
});
|
|
804
|
+
function ownKeys(object, enumerableOnly) {
|
|
805
|
+
var keys = Object.keys(object);
|
|
806
|
+
if (Object.getOwnPropertySymbols) {
|
|
807
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
808
|
+
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
809
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
810
|
+
})), keys.push.apply(keys, symbols);
|
|
811
|
+
}
|
|
812
|
+
return keys;
|
|
813
|
+
}
|
|
814
|
+
function _objectSpread2(target) {
|
|
815
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
816
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
|
817
|
+
i % 2 ? ownKeys(Object(source), true).forEach(function(key) {
|
|
818
|
+
_defineProperty(target, key, source[key]);
|
|
819
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
|
|
820
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
821
|
+
});
|
|
822
|
+
}
|
|
823
|
+
return target;
|
|
824
|
+
}
|
|
825
|
+
function _defineProperty(obj, key, value) {
|
|
826
|
+
if (key in obj) {
|
|
827
|
+
Object.defineProperty(obj, key, {
|
|
828
|
+
value,
|
|
829
|
+
enumerable: true,
|
|
830
|
+
configurable: true,
|
|
831
|
+
writable: true
|
|
832
|
+
});
|
|
833
|
+
} else {
|
|
834
|
+
obj[key] = value;
|
|
835
|
+
}
|
|
836
|
+
return obj;
|
|
837
|
+
}
|
|
838
|
+
function isFunction(val) {
|
|
839
|
+
return typeof val === "function";
|
|
840
|
+
}
|
|
841
|
+
function isObject(o) {
|
|
842
|
+
return o !== null && typeof o === "object" && !Array.isArray(o);
|
|
843
|
+
}
|
|
844
|
+
function normalizeValidatorObject(validator) {
|
|
845
|
+
return isFunction(validator.$validator) ? _objectSpread2({}, validator) : {
|
|
846
|
+
$validator: validator
|
|
847
|
+
};
|
|
848
|
+
}
|
|
849
|
+
function unwrapValidatorResponse(result) {
|
|
850
|
+
if (typeof result === "object") return result.$valid;
|
|
851
|
+
return result;
|
|
852
|
+
}
|
|
853
|
+
function unwrapNormalizedValidator(validator) {
|
|
854
|
+
return validator.$validator || validator;
|
|
855
|
+
}
|
|
856
|
+
function withParams($params, $validator) {
|
|
857
|
+
if (!isObject($params)) throw new Error(`[@vuelidate/validators]: First parameter to "withParams" should be an object, provided ${typeof $params}`);
|
|
858
|
+
if (!isObject($validator) && !isFunction($validator)) throw new Error(`[@vuelidate/validators]: Validator must be a function or object with $validator parameter`);
|
|
859
|
+
const validatorObj = normalizeValidatorObject($validator);
|
|
860
|
+
validatorObj.$params = _objectSpread2(_objectSpread2({}, validatorObj.$params || {}), $params);
|
|
861
|
+
return validatorObj;
|
|
862
|
+
}
|
|
863
|
+
function withMessage($message, $validator) {
|
|
864
|
+
if (!isFunction($message) && typeof unref($message) !== "string") throw new Error(`[@vuelidate/validators]: First parameter to "withMessage" should be string or a function returning a string, provided ${typeof $message}`);
|
|
865
|
+
if (!isObject($validator) && !isFunction($validator)) throw new Error(`[@vuelidate/validators]: Validator must be a function or object with $validator parameter`);
|
|
866
|
+
const validatorObj = normalizeValidatorObject($validator);
|
|
867
|
+
validatorObj.$message = $message;
|
|
868
|
+
return validatorObj;
|
|
869
|
+
}
|
|
870
|
+
function withAsync($validator) {
|
|
871
|
+
let $watchTargets = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
872
|
+
const validatorObj = normalizeValidatorObject($validator);
|
|
873
|
+
return _objectSpread2(_objectSpread2({}, validatorObj), {}, {
|
|
874
|
+
$async: true,
|
|
875
|
+
$watchTargets
|
|
876
|
+
});
|
|
877
|
+
}
|
|
878
|
+
function forEach(validators) {
|
|
879
|
+
return {
|
|
880
|
+
$validator(collection) {
|
|
881
|
+
for (var _len = arguments.length, others = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
882
|
+
others[_key - 1] = arguments[_key];
|
|
883
|
+
}
|
|
884
|
+
return unref(collection).reduce((previous, collectionItem, index) => {
|
|
885
|
+
const collectionEntryResult = Object.entries(collectionItem).reduce((all, _ref) => {
|
|
886
|
+
let [property, $model] = _ref;
|
|
887
|
+
const innerValidators = validators[property] || {};
|
|
888
|
+
const propertyResult = Object.entries(innerValidators).reduce((all2, _ref2) => {
|
|
889
|
+
let [validatorName, currentValidator] = _ref2;
|
|
890
|
+
const validatorFunction = unwrapNormalizedValidator(currentValidator);
|
|
891
|
+
const $response = validatorFunction.call(this, $model, collectionItem, index, ...others);
|
|
892
|
+
const $valid = unwrapValidatorResponse($response);
|
|
893
|
+
all2.$data[validatorName] = $response;
|
|
894
|
+
all2.$data.$invalid = !$valid || !!all2.$data.$invalid;
|
|
895
|
+
all2.$data.$error = all2.$data.$invalid;
|
|
896
|
+
if (!$valid) {
|
|
897
|
+
let $message = currentValidator.$message || "";
|
|
898
|
+
const $params = currentValidator.$params || {};
|
|
899
|
+
if (typeof $message === "function") {
|
|
900
|
+
$message = $message({
|
|
901
|
+
$pending: false,
|
|
902
|
+
$invalid: !$valid,
|
|
903
|
+
$params,
|
|
904
|
+
$model,
|
|
905
|
+
$response
|
|
906
|
+
});
|
|
907
|
+
}
|
|
908
|
+
all2.$errors.push({
|
|
909
|
+
$property: property,
|
|
910
|
+
$message,
|
|
911
|
+
$params,
|
|
912
|
+
$response,
|
|
913
|
+
$model,
|
|
914
|
+
$pending: false,
|
|
915
|
+
$validator: validatorName
|
|
916
|
+
});
|
|
917
|
+
}
|
|
918
|
+
return {
|
|
919
|
+
$valid: all2.$valid && $valid,
|
|
920
|
+
$data: all2.$data,
|
|
921
|
+
$errors: all2.$errors
|
|
922
|
+
};
|
|
923
|
+
}, {
|
|
924
|
+
$valid: true,
|
|
925
|
+
$data: {},
|
|
926
|
+
$errors: []
|
|
927
|
+
});
|
|
928
|
+
all.$data[property] = propertyResult.$data;
|
|
929
|
+
all.$errors[property] = propertyResult.$errors;
|
|
930
|
+
return {
|
|
931
|
+
$valid: all.$valid && propertyResult.$valid,
|
|
932
|
+
$data: all.$data,
|
|
933
|
+
$errors: all.$errors
|
|
934
|
+
};
|
|
935
|
+
}, {
|
|
936
|
+
$valid: true,
|
|
937
|
+
$data: {},
|
|
938
|
+
$errors: {}
|
|
939
|
+
});
|
|
940
|
+
return {
|
|
941
|
+
$valid: previous.$valid && collectionEntryResult.$valid,
|
|
942
|
+
$data: previous.$data.concat(collectionEntryResult.$data),
|
|
943
|
+
$errors: previous.$errors.concat(collectionEntryResult.$errors)
|
|
944
|
+
};
|
|
945
|
+
}, {
|
|
946
|
+
$valid: true,
|
|
947
|
+
$data: [],
|
|
948
|
+
$errors: []
|
|
949
|
+
});
|
|
950
|
+
},
|
|
951
|
+
$message: (_ref3) => {
|
|
952
|
+
let {
|
|
953
|
+
$response
|
|
954
|
+
} = _ref3;
|
|
955
|
+
return $response ? $response.$errors.map((context) => {
|
|
956
|
+
return Object.values(context).map((errors) => errors.map((error) => error.$message)).reduce((a, b) => a.concat(b), []);
|
|
957
|
+
}) : [];
|
|
958
|
+
}
|
|
959
|
+
};
|
|
960
|
+
}
|
|
961
|
+
const req = (value) => {
|
|
962
|
+
value = unref(value);
|
|
963
|
+
if (Array.isArray(value)) return !!value.length;
|
|
964
|
+
if (value === void 0 || value === null) {
|
|
965
|
+
return false;
|
|
966
|
+
}
|
|
967
|
+
if (value === false) {
|
|
968
|
+
return true;
|
|
969
|
+
}
|
|
970
|
+
if (value instanceof Date) {
|
|
971
|
+
return !isNaN(value.getTime());
|
|
972
|
+
}
|
|
973
|
+
if (typeof value === "object") {
|
|
974
|
+
for (let _ in value) return true;
|
|
975
|
+
return false;
|
|
976
|
+
}
|
|
977
|
+
return !!String(value).length;
|
|
978
|
+
};
|
|
979
|
+
const len = (value) => {
|
|
980
|
+
value = unref(value);
|
|
981
|
+
if (Array.isArray(value)) return value.length;
|
|
982
|
+
if (typeof value === "object") {
|
|
983
|
+
return Object.keys(value).length;
|
|
984
|
+
}
|
|
985
|
+
return String(value).length;
|
|
986
|
+
};
|
|
987
|
+
function regex() {
|
|
988
|
+
for (var _len = arguments.length, expr = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
989
|
+
expr[_key] = arguments[_key];
|
|
990
|
+
}
|
|
991
|
+
return (value) => {
|
|
992
|
+
value = unref(value);
|
|
993
|
+
return !req(value) || expr.every((reg) => {
|
|
994
|
+
reg.lastIndex = 0;
|
|
995
|
+
return reg.test(value);
|
|
996
|
+
});
|
|
997
|
+
};
|
|
998
|
+
}
|
|
999
|
+
var common = /* @__PURE__ */ Object.freeze({
|
|
1000
|
+
__proto__: null,
|
|
1001
|
+
forEach,
|
|
1002
|
+
len,
|
|
1003
|
+
normalizeValidatorObject,
|
|
1004
|
+
regex,
|
|
1005
|
+
req,
|
|
1006
|
+
unwrap: unref,
|
|
1007
|
+
unwrapNormalizedValidator,
|
|
1008
|
+
unwrapValidatorResponse,
|
|
1009
|
+
withAsync,
|
|
1010
|
+
withMessage,
|
|
1011
|
+
withParams
|
|
1012
|
+
});
|
|
1013
|
+
regex(/^[a-zA-Z]*$/);
|
|
1014
|
+
regex(/^[a-zA-Z0-9]*$/);
|
|
1015
|
+
regex(/^\d*(\.\d+)?$/);
|
|
1016
|
+
const emailRegex = /^(?:[A-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[A-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9]{2,}(?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/i;
|
|
1017
|
+
var email$1 = regex(emailRegex);
|
|
1018
|
+
var email = {
|
|
1019
|
+
$validator: email$1,
|
|
1020
|
+
$message: "Value is not a valid email address",
|
|
1021
|
+
$params: {
|
|
1022
|
+
type: "email"
|
|
1023
|
+
}
|
|
1024
|
+
};
|
|
1025
|
+
function required$1(value) {
|
|
1026
|
+
if (typeof value === "string") {
|
|
1027
|
+
value = value.trim();
|
|
1028
|
+
}
|
|
1029
|
+
return req(value);
|
|
1030
|
+
}
|
|
1031
|
+
var required = {
|
|
1032
|
+
$validator: required$1,
|
|
1033
|
+
$message: "Value is required",
|
|
1034
|
+
$params: {
|
|
1035
|
+
type: "required"
|
|
1036
|
+
}
|
|
1037
|
+
};
|
|
1038
|
+
const validate$1 = (prop, val) => prop ? req(typeof val === "string" ? val.trim() : val) : true;
|
|
1039
|
+
function requiredIf$1(propOrFunction) {
|
|
1040
|
+
return function(value, parentVM) {
|
|
1041
|
+
if (typeof propOrFunction !== "function") {
|
|
1042
|
+
return validate$1(unref(propOrFunction), value);
|
|
1043
|
+
}
|
|
1044
|
+
const result = propOrFunction.call(this, value, parentVM);
|
|
1045
|
+
return validate$1(result, value);
|
|
1046
|
+
};
|
|
1047
|
+
}
|
|
1048
|
+
function requiredIf(prop) {
|
|
1049
|
+
return {
|
|
1050
|
+
$validator: requiredIf$1(prop),
|
|
1051
|
+
$message: "The value is required",
|
|
1052
|
+
$params: {
|
|
1053
|
+
type: "requiredIf",
|
|
1054
|
+
prop
|
|
1055
|
+
}
|
|
1056
|
+
};
|
|
1057
|
+
}
|
|
1058
|
+
const urlRegex = /^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/i;
|
|
1059
|
+
regex(urlRegex);
|
|
1060
|
+
regex(/(^[0-9]*$)|(^-[0-9]+$)/);
|
|
1061
|
+
regex(/^[-]?\d*(\.\d+)?$/);
|
|
1062
|
+
export {
|
|
1063
|
+
_sfc_main as _,
|
|
1064
|
+
requiredIf as a,
|
|
1065
|
+
common as c,
|
|
1066
|
+
email as e,
|
|
1067
|
+
required as r,
|
|
1068
|
+
useValidation as u
|
|
1069
|
+
};
|