@solvimon/solvimon-web 0.1.0-alpha.20 → 0.1.0-alpha.21
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/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-B9WTpz0k.js +1 -0
- package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DJCMa2Lz.mjs +223 -0
- package/dist/Amount.vue.es-DExaYBqm.js +1 -0
- package/dist/Amount.vue.es-DPqHB8Xd.mjs +22 -0
- package/dist/Avatar.vue.es-CJw5z7Uu.js +1 -0
- package/dist/Avatar.vue.es-ChcLSNaN.mjs +81 -0
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-CTQ5RMtx.js +1 -0
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-DApMAncl.mjs +60 -0
- package/dist/Button.vue.es-BWl37nzm.js +1 -0
- package/dist/Button.vue.es-VQCd3V3C.mjs +368 -0
- package/dist/Checkout.entry.ce-BTVuGyNq.js +1 -0
- package/dist/Checkout.entry.ce-DRHqEFd7.mjs +3674 -0
- package/dist/Chip.vue.es-CXG8o1Qf.mjs +114 -0
- package/dist/Chip.vue.es-DUgjuRWm.js +1 -0
- package/dist/Comparators.vue.es-CwhX3rbx.mjs +93 -0
- package/dist/Comparators.vue.es-DmkxV0gb.js +1 -0
- package/dist/ContentWithAsideLayout-Bnbsq8_5.mjs +32 -0
- package/dist/ContentWithAsideLayout-C6yMIVJF.js +1 -0
- package/dist/ContextMenu.vue.es-BllxeDTt.js +1 -0
- package/dist/ContextMenu.vue.es-C6TKlSXs.mjs +573 -0
- package/dist/CustomerBillingInformation.vue.es-CKQH_ds0.mjs +153 -0
- package/dist/CustomerBillingInformation.vue.es-CMCZ-lIM.js +1 -0
- package/dist/CustomerPaymentMethods.lib-B_753rau.mjs +4 -0
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BxwllXwU.mjs +140 -0
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-n097Xf1H.js +1 -0
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-C_yKvYtG.js +1 -0
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-CtaoLbrM.mjs +2700 -0
- package/dist/Divider.vue.es-DnP_HqLz.mjs +22 -0
- package/dist/Divider.vue.es-UwnWvUTl.js +1 -0
- package/dist/DividerText.vue.es-BBdydUy_.js +1 -0
- package/dist/DividerText.vue.es-Bomiy4if.mjs +56 -0
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-C9elbdbF.mjs +335 -0
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DXO9xpFT.js +1 -0
- package/dist/ErrorNotification.vue.es-0ZC_DozN.js +1 -0
- package/dist/ErrorNotification.vue.es-C6ngWAVU.mjs +31 -0
- package/dist/Expand.vue.es-BleuAfDz.mjs +32 -0
- package/dist/Expand.vue.es-BtM0EZEr.js +1 -0
- package/dist/FormMessage.vue.es-dqATjC2N.js +1 -0
- package/dist/FormMessage.vue.es-jG3fQZms.mjs +29 -0
- package/dist/IconButton.vue.es-DAR7e8NA.mjs +198 -0
- package/dist/IconButton.vue.es-DGLIdHkR.js +1 -0
- package/dist/IconTitle.vue.es-Bbusc4wK.mjs +103 -0
- package/dist/IconTitle.vue.es-D-q6w2E-.js +1 -0
- package/dist/Input.vue.es-AY1c0Rui.mjs +235 -0
- package/dist/Input.vue.es-BN95nPBw.js +1 -0
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-1WjSbPEP.mjs +92 -0
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-qiBCPY8l.js +1 -0
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-BXTInmf9.js +1 -0
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-D99nuBRE.mjs +41 -0
- package/dist/InvoiceSummary.vue.es-B0MPR0oI.js +1 -0
- package/dist/InvoiceSummary.vue.es-Bs5c2Ovx.mjs +2598 -0
- package/dist/Modal.vue.es-Chi6_MH_.js +1 -0
- package/dist/Modal.vue.es-DSkC4eMv.mjs +387 -0
- package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-Draz_8Ts.js +1 -0
- package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-vD88j_U7.mjs +144 -0
- package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DVif_ME8.mjs +51 -0
- package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-Db6jAkqD.js +1 -0
- package/dist/{PaymentHistoryBlock-Ci8aSJeb.js → PaymentHistoryBlock-DGJ_PiVq.js} +1 -1
- package/dist/PaymentHistoryBlock-budeR7ep.mjs +4 -0
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-C28ofG7N.mjs +93 -0
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-Dv-3suBX.js +1 -0
- package/dist/PaymentIntegrationForm-Crrhar96.mjs +4 -0
- package/dist/{PaymentIntegrationForm-CsuueDE0.js → PaymentIntegrationForm-DqqGcEP1.js} +1 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-C4bk0m8g.mjs +138 -0
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CcEEdHQJ.js +1 -0
- package/dist/PaymentIntegrationFormAdyen-DM-xMcm0.mjs +621 -0
- package/dist/PaymentIntegrationFormAdyen-DronjwO3.js +98 -0
- package/dist/PaymentIntegrationFormStripe-yBm4KnpV.mjs +488 -0
- package/dist/PaymentIntegrationFormStripe-ybM6wirp.js +102 -0
- package/dist/PaymentMethod.vue.es-BdMcKq8_.mjs +623 -0
- package/dist/PaymentMethod.vue.es-Ctw9Es1g.js +1 -0
- package/dist/{PaymentMethodForm-hZuVHAti.js → PaymentMethodForm-BQ5TVHlS.js} +1 -1
- package/dist/PaymentMethodForm-C1bIGX10.mjs +4 -0
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-5KKkuVt5.mjs +167 -0
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-V88bCeDt.js +1 -0
- package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-B_207kq5.js +1 -0
- package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-CnmZ9dvP.mjs +169 -0
- package/dist/PlanCustomizationEditor-CCOTD6Qu.mjs +769 -0
- package/dist/PlanCustomizationEditor-CiZnVCM6.js +1 -0
- package/dist/PricingGroupRangeInput.vue.es-Bnb-ARie.mjs +627 -0
- package/dist/PricingGroupRangeInput.vue.es-D82XvoC_.js +185 -0
- package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CxMkCmti.js +1 -0
- package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-skQMgHEL.mjs +131 -0
- package/dist/RadioGroupExtended.vue.es-B1YtLNKG.js +1 -0
- package/dist/RadioGroupExtended.vue.es-WDbo_yj1.mjs +163 -0
- package/dist/Section.vue.es-By1JltGi.mjs +72 -0
- package/dist/Section.vue.es-DuK52y67.js +1 -0
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-CS3KIkPL.mjs +687 -0
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Ct3ZNq-j.js +1 -0
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-DRLoYWGY.mjs +51 -0
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-DypW8aNJ.js +1 -0
- package/dist/SubscriptionSchedules-DDCjVEbG.mjs +4 -0
- package/dist/SubscriptionSchedules-DEjIERyF.js +1 -0
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-BlX0W6lw.js +1 -0
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-JAedXFzq.mjs +5256 -0
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-D-Fa54M6.js +1 -0
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-DVMS4gJQ.mjs +91 -0
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-BckZJtOc.mjs +284 -0
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-DiXmEjUD.js +1 -0
- package/dist/TooltipParagraph.vue.es-DYu2ReL7.mjs +129 -0
- package/dist/TooltipParagraph.vue.es-sTgWAgcd.js +1 -0
- package/dist/TrialChip.vue.es-Cl-9_pdr.js +1 -0
- package/dist/TrialChip.vue.es-DX53r0ku.mjs +35 -0
- package/dist/accel.svg.es-C0hqmmEY.mjs +4 -0
- package/dist/accel.svg.es-DFJXdioD.js +1 -0
- package/dist/ach.svg.es-BYP873jU.js +1 -0
- package/dist/ach.svg.es-DduMiYM2.mjs +4 -0
- package/dist/adyen-BJfC7N6f.js +1 -0
- package/dist/adyen-Bugab0JE.mjs +4 -0
- package/dist/adyen-CvsH5fok.mjs +117 -0
- package/dist/adyen-Druit6gz.js +1 -0
- package/dist/adyenSdk-B01MB9Ia.mjs +58 -0
- package/dist/adyenSdk-BP2XXzeJ.js +1 -0
- package/dist/amazon-pay.svg.es-BACIX6C7.mjs +4 -0
- package/dist/amazon-pay.svg.es-CQWgtowB.js +1 -0
- package/dist/amex.svg.es-DKhW4Txt.js +1 -0
- package/dist/amex.svg.es-DjTEMRVg.mjs +4 -0
- package/dist/api.es-QaC926Xu.mjs +43 -0
- package/dist/api.es-duCDtZD9.js +1 -0
- package/dist/apple-pay.svg.es-B3tkA54p.mjs +4 -0
- package/dist/apple-pay.svg.es-Dyojd0F-.js +1 -0
- package/dist/bacs.svg.es-CZIjZIE8.mjs +4 -0
- package/dist/bacs.svg.es-GJpZs1sD.js +1 -0
- package/dist/bancontact.svg.es-B26-JwdE.mjs +4 -0
- package/dist/bancontact.svg.es-BQh7nAup.js +1 -0
- package/dist/carnet.svg.es-BtO3AmNu.mjs +4 -0
- package/dist/carnet.svg.es-DY04-F2L.js +1 -0
- package/dist/cartes-bancaires.svg.es-BleHMlkN.js +1 -0
- package/dist/cartes-bancaires.svg.es-DEPpdLvi.mjs +4 -0
- package/dist/cashapp.svg.es-DOGwRjXp.mjs +4 -0
- package/dist/cashapp.svg.es-MwXGYom6.js +1 -0
- package/dist/cn.es-CNvIP217.js +1 -0
- package/dist/{cn.es-BEU5D0Wz.mjs → cn.es-DjnGlmqV.mjs} +657 -927
- package/dist/comparators.es-D8WGL-c4.mjs +153 -0
- package/dist/comparators.es-OGt19O9U.js +1 -0
- package/dist/component-5wqcK7yz.mjs +8 -0
- package/dist/component-B7ZDyqBp.js +1 -0
- package/dist/components/BillingInformation/BillingInformation.cjs +1 -1
- package/dist/components/BillingInformation/BillingInformation.mjs +39 -48
- package/dist/components/BillingInformationForm/BillingInformationForm.cjs +1 -1
- package/dist/components/BillingInformationForm/BillingInformationForm.mjs +256 -307
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs +1 -1
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +43 -52
- package/dist/components/Invoice/Invoice.cjs +1 -1
- package/dist/components/Invoice/Invoice.mjs +372 -430
- package/dist/components/InvoiceDetails/InvoiceDetails.cjs +1 -1
- package/dist/components/InvoiceDetails/InvoiceDetails.mjs +55 -65
- package/dist/components/InvoiceHeader/InvoiceHeader.cjs +1 -1
- package/dist/components/InvoiceHeader/InvoiceHeader.mjs +41 -46
- package/dist/components/InvoicesList/InvoicesList.cjs +1 -1
- package/dist/components/InvoicesList/InvoicesList.mjs +43 -53
- package/dist/components/PaymentHistory/PaymentHistory.cjs +1 -1
- package/dist/components/PaymentHistory/PaymentHistory.mjs +58 -68
- package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs +1 -1
- package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +51 -63
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs +1 -1
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +41 -50
- package/dist/components/SubscriptionsList/SubscriptionsList.cjs +1 -1
- package/dist/components/SubscriptionsList/SubscriptionsList.mjs +49 -60
- package/dist/components/WalletBalances/WalletBalances.cjs +1 -1
- package/dist/components/WalletBalances/WalletBalances.mjs +59 -70
- package/dist/configuration-BytDBAWs.mjs +14 -0
- package/dist/configuration-akTS7Wiw.js +1 -0
- package/dist/core/index.cjs +1 -1
- package/dist/core/index.mjs +89 -104
- package/dist/{countryData.es--zJAd6LA.mjs → countryData.es-BegoD-cZ.mjs} +2 -2
- package/dist/countryData.es-C4jHBzfo.js +1 -0
- package/dist/customElements-Bt8PbjIn.js +1187 -0
- package/dist/customElements-Com2NiGU.mjs +6531 -0
- package/dist/customer-CKgMJEgv.mjs +31 -0
- package/dist/customer-Q4JGfVfq.js +1 -0
- package/dist/customer.es-B5ppZf0j.mjs +20 -0
- package/dist/customer.es-BButyYo0.js +1 -0
- package/dist/dana.svg.es-BDtZLpwd.js +1 -0
- package/dist/dana.svg.es-Cy8Q6DZi.mjs +4 -0
- package/dist/dankort.svg.es-B7VqJdWq.mjs +4 -0
- package/dist/dankort.svg.es-CksaipXF.js +1 -0
- package/dist/{de-DE-CI2zQkiP.mjs → de-DE-CVCmzlNH.mjs} +5 -5
- package/dist/{de-DE-BeyQVhTv.mjs → de-DE-DBO5f-Eu.mjs} +38 -56
- package/dist/{de-DE-_40QfLNJ.js → de-DE-DqLD4IX2.js} +1 -1
- package/dist/de-DE-Ds_yJLS3.js +1 -0
- package/dist/diners.svg.es-BP9enCow.mjs +4 -0
- package/dist/diners.svg.es-D6Mu1pqP.js +1 -0
- package/dist/discover.svg.es-DEsEJBYh.mjs +4 -0
- package/dist/discover.svg.es-DgqWCMUM.js +1 -0
- package/dist/eftpos.svg.es--js6-yfk.mjs +4 -0
- package/dist/eftpos.svg.es-Dk2DOT8W.js +1 -0
- package/dist/elo.svg.es-C-BzjuRP.js +1 -0
- package/dist/elo.svg.es-CMZPAxcn.mjs +4 -0
- package/dist/{en-US-5YWNEi-V.mjs → en-US-3UmnS23B.mjs} +38 -56
- package/dist/en-US-C51ILrVv.js +1 -0
- package/dist/{en-US--NRsi7Hz.js → en-US-CvFmmI_O.js} +1 -1
- package/dist/{en-US-DksUWPIu.mjs → en-US-DVR9O7b_.mjs} +5 -5
- package/dist/eps.svg.es-B_85bP-W.js +1 -0
- package/dist/eps.svg.es-CzIPBSb9.mjs +4 -0
- package/dist/error-BHVZJGwD.mjs +13 -0
- package/dist/error-CmduqgVq.js +1 -0
- package/dist/floating-ui.vue.es-Bly3DGWm.js +1 -0
- package/dist/floating-ui.vue.es-CYt0fSY7.mjs +1108 -0
- package/dist/formatting.es-C72Nsrmh.js +1 -0
- package/dist/formatting.es-RclXHhKo.mjs +61 -0
- package/dist/gcash.svg.es-BKAdhWzv.js +1 -0
- package/dist/gcash.svg.es-BpDtvraq.mjs +4 -0
- package/dist/getComposedString.es-C__uhJpd.mjs +10 -0
- package/dist/getComposedString.es-haS4bAj7.js +1 -0
- package/dist/getCountryNameByCode.es-BDHua7VM.mjs +8 -0
- package/dist/getCountryNameByCode.es-Xxc0nZsH.js +1 -0
- package/dist/girocard.svg.es-HSOEvDif.js +1 -0
- package/dist/girocard.svg.es-Riswtk8Z.mjs +4 -0
- package/dist/go-pay.svg.es-CiIyLELZ.mjs +4 -0
- package/dist/go-pay.svg.es-DQjtunZ_.js +1 -0
- package/dist/google-pay.svg.es-Dgj_N6nz.mjs +4 -0
- package/dist/google-pay.svg.es-hzc_EgiJ.js +1 -0
- package/dist/hipercard.svg.es-B80bu8Vd.mjs +4 -0
- package/dist/hipercard.svg.es-CbCsRY2q.js +1 -0
- package/dist/icon-sprite.svg.es-Bt21fMEt.mjs +4 -0
- package/dist/icon-sprite.svg.es-Dauis9LS.js +1 -0
- package/dist/ideal.svg.es-Booz1IML.js +1 -0
- package/dist/ideal.svg.es-DaqTS2Ax.mjs +4 -0
- package/dist/index-BPU8tIml.mjs +828 -0
- package/dist/index-BPZPnOQQ.js +7 -0
- package/dist/index-CTwLxoOS.mjs +7250 -0
- package/dist/index-DwueOtPi.js +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.es-BclokHQX.js +1 -0
- package/dist/index.es-CXkP_k3u.mjs +345 -0
- package/dist/index.mjs +40 -40
- package/dist/invoices-CV9iAUHf.mjs +115 -0
- package/dist/invoices-CvpL4rv5.js +1 -0
- package/dist/{it-IT-CMy1tHKZ.mjs → it-IT-CDMnnFKZ.mjs} +5 -5
- package/dist/{it-IT-aPQY57ht.js → it-IT-CFEfSpPH.js} +1 -1
- package/dist/{it-IT-B6blp8MI.mjs → it-IT-CxBRisRm.mjs} +38 -56
- package/dist/it-IT-Dxw59eR_.js +1 -0
- package/dist/jcb.svg.es-B3WPB8c2.js +1 -0
- package/dist/jcb.svg.es-Couw-2p9.mjs +4 -0
- package/dist/kakao-pay.svg.es-CIFT8fob.mjs +4 -0
- package/dist/kakao-pay.svg.es-Cs-lCW74.js +1 -0
- package/dist/klarna.svg.es-Cs6XaHD7.js +1 -0
- package/dist/klarna.svg.es-WKt8_NZa.mjs +4 -0
- package/dist/maestro.svg.es-BvK4oPg4.js +1 -0
- package/dist/maestro.svg.es-DbdxwYUE.mjs +4 -0
- package/dist/mastercard.svg.es-B7T3PS12.mjs +4 -0
- package/dist/mastercard.svg.es-lp4AXyyV.js +1 -0
- package/dist/momo.svg.es-C5aLYf_R.js +1 -0
- package/dist/momo.svg.es-X5XB25fM.mjs +4 -0
- package/dist/{nl-NL-CjoW8r_M.mjs → nl-NL-BWGkVweu.mjs} +38 -56
- package/dist/nl-NL-Btbfd9p2.js +1 -0
- package/dist/{nl-NL-zRUAuEHg.js → nl-NL-jtVgF3jx.js} +1 -1
- package/dist/{nl-NL-CckNM7R9.mjs → nl-NL-o3UvtSNg.mjs} +5 -5
- package/dist/nyce.svg.es-ArAivAZW.js +1 -0
- package/dist/nyce.svg.es-DcPsO_sh.mjs +4 -0
- package/dist/object.es-8aLDIncs.mjs +12 -0
- package/dist/object.es-CdriXMPs.js +1 -0
- package/dist/open-banking.svg.es-C4mPhwsn.mjs +4 -0
- package/dist/open-banking.svg.es-Q3rRkCvP.js +1 -0
- package/dist/paymentMethods-BuwoJ1y9.mjs +75 -0
- package/dist/paymentMethods-ChWAwDSF.js +1 -0
- package/dist/payments-C_cMXQzE.mjs +45 -0
- package/dist/payments-DGckugN0.js +1 -0
- package/dist/paypal.svg.es-BC2AP20j.mjs +4 -0
- package/dist/paypal.svg.es-Cjp5sNI3.js +1 -0
- package/dist/pricing-BVAld27Y.js +1 -0
- package/dist/pricing-DLOeiAIB.mjs +16 -0
- package/dist/pricingItemConfigs.es-DMf1e6y7.mjs +76 -0
- package/dist/pricingItemConfigs.es-DlybwIh1.js +1 -0
- package/dist/pricingPlanSchedule-COfmWv_o.js +1 -0
- package/dist/pricingPlanSchedule-J1nb9pCu.mjs +129 -0
- package/dist/pulse.svg.es-Dit33E8S.js +1 -0
- package/dist/pulse.svg.es-Rmoz-9Ej.mjs +4 -0
- package/dist/screens/Checkout/Checkout.cjs +1 -1
- package/dist/screens/Checkout/Checkout.mjs +3 -5237
- package/dist/screens/CustomerOverview/CustomerOverview.cjs +1 -1
- package/dist/screens/CustomerOverview/CustomerOverview.mjs +112 -138
- package/dist/screens/PayInvoice/PayInvoice.cjs +1 -1
- package/dist/screens/PayInvoice/PayInvoice.mjs +348 -397
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs +1 -1
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +153 -170
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs +1 -1
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +609 -720
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs +1 -1
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +466 -555
- package/dist/sepa.svg.es-0t4DKeA1.js +1 -0
- package/dist/sepa.svg.es-DIO_K345.mjs +4 -0
- package/dist/slots.es-BA4MyEAa.mjs +5 -0
- package/dist/slots.es-T9ZJRGtG.js +1 -0
- package/dist/sorting.es-DCihKqD2.mjs +77 -0
- package/dist/sorting.es-DQsjKr8A.js +1 -0
- package/dist/star.svg.es-BUZNUnYq.mjs +4 -0
- package/dist/star.svg.es-D2JncY7b.js +1 -0
- package/dist/subscription-9GORG-Gt.js +1 -0
- package/dist/subscription-CvfAEJeP.mjs +69 -0
- package/dist/subscriptions-B5VqRayX.mjs +55 -0
- package/dist/subscriptions-X0Ciw8z3.js +1 -0
- package/dist/trustly.svg.es-AM7Ha-3Y.mjs +4 -0
- package/dist/trustly.svg.es-GJByiFAs.js +1 -0
- package/dist/twint.svg.es-BJ2f48og.js +1 -0
- package/dist/twint.svg.es-DZogAQG6.mjs +4 -0
- package/dist/typeGuards.es-B4XMtlkM.mjs +8 -0
- package/dist/typeGuards.es-DS3vZaJn.js +1 -0
- package/dist/types/components/payments/PaymentCompletedCard/PaymentCompletedCard.types.d.ts +6 -0
- package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +7 -0
- package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripeFrame.types.d.ts +2 -1
- package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.types.d.ts +7 -0
- package/dist/unionpay.svg.es-DjFZ5EMQ.js +1 -0
- package/dist/unionpay.svg.es-me7q-nTI.mjs +4 -0
- package/dist/url-BNKStNY9.js +1 -0
- package/dist/url-DwiuKYpu.mjs +20 -0
- package/dist/useActionDispatchProvider-B54GYEY7.js +1 -0
- package/dist/useActionDispatchProvider-e2lQXTid.mjs +11 -0
- package/dist/useCustomer-BJwJ9BkJ.js +1 -0
- package/dist/useCustomer-CC9zxV6c.mjs +20 -0
- package/dist/useCustomerFormLabels-72Pxw8X5.js +1 -0
- package/dist/useCustomerFormLabels-V2YuYMLU.mjs +930 -0
- package/dist/useExperimentalFeature-8Mzpj5wc.js +1 -0
- package/dist/useExperimentalFeature-B0IFn3Uw.mjs +6 -0
- package/dist/useIncrementalLoading-CaWOE8Xl.js +1 -0
- package/dist/useIncrementalLoading-Cgxw2GD7.mjs +48 -0
- package/dist/useInvoiceData-6mHUZC9a.mjs +38 -0
- package/dist/useInvoiceData-Bblwdl0f.js +1 -0
- package/dist/useInvoicesList-B5H5JfvY.mjs +500 -0
- package/dist/useInvoicesList-_U1-tn9_.js +1 -0
- package/dist/useLoadInitialData-CezlvhBV.js +1 -0
- package/dist/useLoadInitialData-ux_wpNiR.mjs +15 -0
- package/dist/usePaymentMethodAvailability-CkR4TwoV.mjs +118 -0
- package/dist/usePaymentMethodAvailability-DRwrBdto.js +1 -0
- package/dist/usePaymentMethodOptions-B6GIM9q4.js +1 -0
- package/dist/usePaymentMethodOptions-BfnLBZOo.mjs +37 -0
- package/dist/usePaymentMethods-C3QfLSrP.mjs +15 -0
- package/dist/usePaymentMethods-GFmQRp0X.js +1 -0
- package/dist/usePayments-BkwGyZT0.mjs +318 -0
- package/dist/usePayments-SQF_V7oL.js +1 -0
- package/dist/usePortal-BdM7hDge.js +1 -0
- package/dist/usePortal-DDG9b6FI.mjs +11 -0
- package/dist/useService-Bh47bllz.mjs +50 -0
- package/dist/useService-H7BjLg8P.js +1 -0
- package/dist/useSubscription-BJJYHYgr.mjs +210 -0
- package/dist/useSubscription-Q4C2DPhw.js +1 -0
- package/dist/useTimePeriod.es-9tZvAhyb.mjs +93 -0
- package/dist/useTimePeriod.es-pepm2TpV.js +1 -0
- package/dist/useViewport-BgdA2PPt.mjs +29 -0
- package/dist/useViewport-hPRVDWCm.js +1 -0
- package/dist/useWatchDebounced-CAU1WI1P.js +1 -0
- package/dist/useWatchDebounced-DT5IicPp.mjs +14 -0
- package/dist/visa.svg.es-B0T5Su99.mjs +4 -0
- package/dist/visa.svg.es-NY3BHhda.js +1 -0
- package/dist/vpay.svg.es-VViQi42w.js +1 -0
- package/dist/vpay.svg.es-Zt3rrmCy.mjs +4 -0
- package/dist/zip.svg.es-C9S_F31W.js +1 -0
- package/dist/zip.svg.es-QC6dxzC7.mjs +4 -0
- package/package.json +3 -3
- package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-Ce30EXY5.mjs +0 -240
- package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-kmam2c7P.js +0 -1
- package/dist/Amount.vue.es-BO5sS1UX.mjs +0 -25
- package/dist/Amount.vue.es-JDVa_3H-.js +0 -1
- package/dist/Avatar.vue.es-BGTZSAqU.js +0 -1
- package/dist/Avatar.vue.es-DJzJiYtv.mjs +0 -91
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-Bq2mTdUs.mjs +0 -66
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-BtNTRSqH.js +0 -1
- package/dist/Button.vue.es-Cm9pLU9i.mjs +0 -421
- package/dist/Button.vue.es-O8mNivLL.js +0 -1
- package/dist/Chip.vue.es-BBmn-qJp.mjs +0 -120
- package/dist/Chip.vue.es-DmCjC1hi.js +0 -1
- package/dist/Comparators.vue.es-CYfxd5H-.mjs +0 -120
- package/dist/Comparators.vue.es-DK8wGjxM.js +0 -1
- package/dist/ContentWithAsideLayout-DHpnJfGA.js +0 -1
- package/dist/ContentWithAsideLayout-Dy9xgxuF.mjs +0 -39
- package/dist/ContextMenu.vue.es-CTc1ktXb.mjs +0 -681
- package/dist/ContextMenu.vue.es-DaW0yp4Y.js +0 -1
- package/dist/CustomerBillingInformation.vue.es-BX0Da7Kr.js +0 -1
- package/dist/CustomerBillingInformation.vue.es-CMZO8oLj.mjs +0 -175
- package/dist/CustomerPaymentMethods.lib-CcSt0sl1.mjs +0 -4
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Bi_dCntQ.js +0 -1
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CtdFharm.mjs +0 -150
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BDqBXbJq.mjs +0 -3264
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-ZyN2vlNu.js +0 -1
- package/dist/Divider.vue.es-ClFG8QtG.js +0 -1
- package/dist/Divider.vue.es-wKkIVBgb.mjs +0 -24
- package/dist/DividerText.vue.es-CeAHAe_Y.mjs +0 -72
- package/dist/DividerText.vue.es-DjT4i_YD.js +0 -1
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DLE5-9wz.mjs +0 -562
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DkIK-lID.js +0 -1
- package/dist/ErrorNotification.vue.es-CHyVTBGs.mjs +0 -38
- package/dist/ErrorNotification.vue.es-CaEFTi2k.js +0 -1
- package/dist/Expand.vue.es-C-lnbA1v.js +0 -1
- package/dist/Expand.vue.es-C4_XmqbR.mjs +0 -50
- package/dist/FormMessage.vue.es-Bd4_NG9H.js +0 -1
- package/dist/FormMessage.vue.es-C3oxwq_8.mjs +0 -46
- package/dist/IconButton.vue.es-BHdQskx0.js +0 -1
- package/dist/IconButton.vue.es-KywqWWvr.mjs +0 -228
- package/dist/IconTitle.vue.es-BmjBdZb_.mjs +0 -107
- package/dist/IconTitle.vue.es-D9Wc3PIq.js +0 -1
- package/dist/Input.vue.es-DqKJhFTr.js +0 -1
- package/dist/Input.vue.es-WZGF8dfr.mjs +0 -251
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-B6efz7NU.mjs +0 -97
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-LE6zBLKM.js +0 -1
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-C2aLMfu6.mjs +0 -49
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-CtpFzWU3.js +0 -1
- package/dist/InvoiceSummary.vue.es-BI5sD_8F.mjs +0 -2944
- package/dist/InvoiceSummary.vue.es-BWYIHezU.js +0 -1
- package/dist/Modal.vue.es-B_1aqm_m.js +0 -1
- package/dist/Modal.vue.es-qdUHDOnU.mjs +0 -483
- package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-BKKXQbge.js +0 -1
- package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-Ch1TFO7x.mjs +0 -154
- package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-CsH47WSM.mjs +0 -54
- package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-mKNNYnMU.js +0 -1
- package/dist/PaymentHistoryBlock-CgNUV8Gy.mjs +0 -4
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DZwnDzha.js +0 -1
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-Uj1aK-dp.mjs +0 -101
- package/dist/PaymentIntegrationForm-CLokpXvK.mjs +0 -4
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CRUs7sP4.mjs +0 -167
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-kKkzRi6w.js +0 -1
- package/dist/PaymentIntegrationFormAdyen-C885o8IE.mjs +0 -699
- package/dist/PaymentIntegrationFormAdyen-Co19AgvG.js +0 -1
- package/dist/PaymentIntegrationFormStripe-BjMdJmDC.mjs +0 -547
- package/dist/PaymentIntegrationFormStripe-DWff6wzK.js +0 -1
- package/dist/PaymentMethod.vue.es-CdskNJ3Z.js +0 -1
- package/dist/PaymentMethod.vue.es-rv-pu1CC.mjs +0 -677
- package/dist/PaymentMethodForm-IEuDxEPN.mjs +0 -4
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-Cj60U90J.js +0 -1
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-gA74Rak9.mjs +0 -172
- package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-B3H_AWMM.js +0 -1
- package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-CTn-OxM6.mjs +0 -189
- package/dist/PricingGroupRangeInput.vue.es-ButaePib.mjs +0 -632
- package/dist/PricingGroupRangeInput.vue.es-Cls2lm80.js +0 -1
- package/dist/Section.vue.es-CAJvEDn6.js +0 -1
- package/dist/Section.vue.es-DX_9ueCG.mjs +0 -79
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-CQAkPfJz.js +0 -1
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-DVtMzgjc.mjs +0 -1044
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-DGMxHc20.mjs +0 -78
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-DfMgIsGm.js +0 -1
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-BJVXCHny.js +0 -1
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-ByO-L6nm.mjs +0 -6171
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-C5zB3CgZ.mjs +0 -101
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-CabskT-r.js +0 -1
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-D-T1wGg7.js +0 -1
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-DKd2DIVb.mjs +0 -309
- package/dist/TooltipParagraph.vue.es-C5RTcrid.mjs +0 -136
- package/dist/TooltipParagraph.vue.es-H9fI7zzt.js +0 -1
- package/dist/TrialChip.vue.es-B1puKyR-.mjs +0 -56
- package/dist/TrialChip.vue.es-CCs50m02.js +0 -1
- package/dist/accel.svg.es-CE5tIWtm.mjs +0 -4
- package/dist/accel.svg.es-Dt_1wJmV.js +0 -1
- package/dist/ach.svg.es-B4tn0_IV.js +0 -1
- package/dist/ach.svg.es-D4QPcIU-.mjs +0 -4
- package/dist/adyen-51SvcyqV.mjs +0 -4
- package/dist/adyen-BXi_D9TQ.mjs +0 -123
- package/dist/adyen-DZsyEXkw.js +0 -1
- package/dist/adyen-VS2sDW0m.js +0 -1
- package/dist/amazon-pay.svg.es-B428S4f3.js +0 -1
- package/dist/amazon-pay.svg.es-DUScOW15.mjs +0 -4
- package/dist/amex.svg.es-BCXkaVLN.mjs +0 -4
- package/dist/amex.svg.es-Bn9e31C3.js +0 -1
- package/dist/api.es-C5pe8LUl.mjs +0 -62
- package/dist/api.es-Czekkp_X.js +0 -1
- package/dist/apple-pay.svg.es-Cfgn0K28.js +0 -1
- package/dist/apple-pay.svg.es-DlCfkt39.mjs +0 -4
- package/dist/bacs.svg.es-BKsvSeIP.mjs +0 -4
- package/dist/bacs.svg.es-hL7hLPkQ.js +0 -1
- package/dist/bancontact.svg.es-BbRqGgZ9.mjs +0 -4
- package/dist/bancontact.svg.es-DU2ejvNL.js +0 -1
- package/dist/carnet.svg.es-C5SFaOsa.js +0 -1
- package/dist/carnet.svg.es-Db-KEb13.mjs +0 -4
- package/dist/cartes-bancaires.svg.es-ByD-JAAi.mjs +0 -4
- package/dist/cartes-bancaires.svg.es-CbBJQZrk.js +0 -1
- package/dist/cashapp.svg.es-CnS5r_D8.mjs +0 -4
- package/dist/cashapp.svg.es-DE4vMu_p.js +0 -1
- package/dist/cn.es-DxSeYcoP.js +0 -1
- package/dist/comparators.es-9VsCB-JI.mjs +0 -175
- package/dist/comparators.es-wrKHduVq.js +0 -1
- package/dist/component-BG6DmXcy.mjs +0 -9
- package/dist/component-hDuDTBt5.js +0 -1
- package/dist/configuration-BjYwV4_B.js +0 -1
- package/dist/configuration-CD8cOXAJ.mjs +0 -15
- package/dist/countryData.es-D3MFzU92.js +0 -1
- package/dist/customElements-B-89a5oH.mjs +0 -6810
- package/dist/customElements-DD7bpqkx.js +0 -1
- package/dist/customer-DozNwS_a.js +0 -1
- package/dist/customer-Dzj1g9lV.mjs +0 -32
- package/dist/customer.es-C_vSWcVA.mjs +0 -30
- package/dist/customer.es-D42Md24r.js +0 -1
- package/dist/dana.svg.es-Bbn6_ktN.mjs +0 -4
- package/dist/dana.svg.es-DKZaseoJ.js +0 -1
- package/dist/dankort.svg.es-D8FgSiFf.js +0 -1
- package/dist/dankort.svg.es-DtAdliQq.mjs +0 -4
- package/dist/de-DE-BvHD68Ay.js +0 -1
- package/dist/diners.svg.es-DhchsD1D.mjs +0 -4
- package/dist/diners.svg.es-SydF_H-Z.js +0 -1
- package/dist/discover.svg.es-B8vgzVNG.js +0 -1
- package/dist/discover.svg.es-BnqYPvnV.mjs +0 -4
- package/dist/eftpos.svg.es-DO0YPaY1.js +0 -1
- package/dist/eftpos.svg.es-DRLaafYa.mjs +0 -4
- package/dist/elo.svg.es-CTOm1rvj.js +0 -1
- package/dist/elo.svg.es-CgkEOP_O.mjs +0 -4
- package/dist/en-US-dqfKx3GS.js +0 -1
- package/dist/eps.svg.es-CApyGjyU.js +0 -1
- package/dist/eps.svg.es-D6IHsRYP.mjs +0 -4
- package/dist/error-Cg-i7gGl.js +0 -1
- package/dist/error-DY_I2hPx.mjs +0 -13
- package/dist/floating-ui.vue.es-Bv94BfDm.js +0 -1
- package/dist/floating-ui.vue.es-DWY7pdz8.mjs +0 -1573
- package/dist/formatting.es-DBtYnvI5.js +0 -1
- package/dist/formatting.es-eYgXv_AK.mjs +0 -70
- package/dist/gcash.svg.es-BhJ-eA2z.mjs +0 -4
- package/dist/gcash.svg.es-JaL4fpZr.js +0 -1
- package/dist/getComposedString.es-CELkn0I7.mjs +0 -14
- package/dist/getComposedString.es-DvSNX-_z.js +0 -1
- package/dist/getCountryNameByCode.es-fP52nO_7.js +0 -1
- package/dist/getCountryNameByCode.es-ymC9R46j.mjs +0 -8
- package/dist/girocard.svg.es-D_3LML4l.mjs +0 -4
- package/dist/girocard.svg.es-tVgtT23w.js +0 -1
- package/dist/go-pay.svg.es-6UtgwVBA.mjs +0 -4
- package/dist/go-pay.svg.es-fYX6yMzJ.js +0 -1
- package/dist/google-pay.svg.es-BYXX1em8.js +0 -1
- package/dist/google-pay.svg.es-CRxXgFVl.mjs +0 -4
- package/dist/hipercard.svg.es-Ct1-mF9F.mjs +0 -4
- package/dist/hipercard.svg.es-D-nmiFXB.js +0 -1
- package/dist/icon-sprite.svg.es-BpwT0GQ5.js +0 -1
- package/dist/icon-sprite.svg.es-YYqtl2IP.mjs +0 -4
- package/dist/ideal.svg.es-D23EhJJ2.mjs +0 -4
- package/dist/ideal.svg.es-DXtHE0Jb.js +0 -1
- package/dist/index-Cai7laNY.mjs +0 -1069
- package/dist/index-DIFK3mcJ.js +0 -6
- package/dist/index-DyvRdSR7.mjs +0 -9673
- package/dist/index-IZaUTAsE.js +0 -1
- package/dist/index.es-2JWHHSgP.js +0 -1
- package/dist/index.es-D5xOw_SJ.mjs +0 -542
- package/dist/invoices-1oYkdQQV.mjs +0 -121
- package/dist/invoices-BAoh6X2a.js +0 -1
- package/dist/it-IT-CEP3oeWs.js +0 -1
- package/dist/jcb.svg.es-Bz6J-c0s.js +0 -1
- package/dist/jcb.svg.es-CcH08OoO.mjs +0 -4
- package/dist/kakao-pay.svg.es-DcgRDAsc.mjs +0 -4
- package/dist/kakao-pay.svg.es-qVTABboW.js +0 -1
- package/dist/klarna.svg.es-Clu-7zkp.js +0 -1
- package/dist/klarna.svg.es-DfIPX0gr.mjs +0 -4
- package/dist/maestro.svg.es-CVmNVokN.mjs +0 -4
- package/dist/maestro.svg.es-e8E_H2QU.js +0 -1
- package/dist/mastercard.svg.es-B8z0ZySS.mjs +0 -4
- package/dist/mastercard.svg.es-YO3_jGD6.js +0 -1
- package/dist/momo.svg.es-BXTQlQRy.js +0 -1
- package/dist/momo.svg.es-Bm5zCTOT.mjs +0 -4
- package/dist/nl-NL-e_vf6OuT.js +0 -1
- package/dist/nyce.svg.es-CgurqLKH.mjs +0 -4
- package/dist/nyce.svg.es-DM6esO47.js +0 -1
- package/dist/object.es-DFXiU9p3.js +0 -1
- package/dist/object.es-jvvnR8Kr.mjs +0 -12
- package/dist/open-banking.svg.es-DUM360xB.js +0 -1
- package/dist/open-banking.svg.es-DzzLCVp_.mjs +0 -4
- package/dist/paymentMethods-CZ3ydybI.js +0 -1
- package/dist/paymentMethods-DIV78w0O.mjs +0 -78
- package/dist/payments--lkjiwCt.js +0 -1
- package/dist/payments-Cvqdrprv.mjs +0 -47
- package/dist/paypal.svg.es-BdkNTf3c.js +0 -1
- package/dist/paypal.svg.es-DltWzW4V.mjs +0 -4
- package/dist/pricing-3W7XLwL6.js +0 -1
- package/dist/pricing-CJxS2hr2.mjs +0 -17
- package/dist/pricingItemConfigs.es-BPIm6S8M.mjs +0 -107
- package/dist/pricingItemConfigs.es-C73cQlxQ.js +0 -1
- package/dist/pricingPlanSchedule-B9HFiXy-.js +0 -1
- package/dist/pricingPlanSchedule-CXG3CQ61.mjs +0 -146
- package/dist/pulse.svg.es-BdpWAuIN.js +0 -1
- package/dist/pulse.svg.es-BecAwT-p.mjs +0 -4
- package/dist/sepa.svg.es-BF8PYKZg.js +0 -1
- package/dist/sepa.svg.es-cbE9g8gV.mjs +0 -4
- package/dist/slots.es-BpwYO3A3.mjs +0 -18
- package/dist/slots.es-Dq1PTUOv.js +0 -1
- package/dist/sorting.es-CjTrRfSW.mjs +0 -105
- package/dist/sorting.es-RyvcgbSL.js +0 -1
- package/dist/star.svg.es-DsCD-tSp.mjs +0 -4
- package/dist/star.svg.es-Q50IzqXr.js +0 -1
- package/dist/subscription-C41lG-rH.mjs +0 -89
- package/dist/subscription-b0OPx8Du.js +0 -1
- package/dist/subscriptions-300o4ae0.js +0 -1
- package/dist/subscriptions-DcMHBPVJ.mjs +0 -58
- package/dist/trustly.svg.es-C0Ou1HWk.mjs +0 -4
- package/dist/trustly.svg.es-CHojqNqm.js +0 -1
- package/dist/twint.svg.es-CQ-ZDfy8.js +0 -1
- package/dist/twint.svg.es-WrZYquRs.mjs +0 -4
- package/dist/typeGuards.es-C4nR5FkL.js +0 -1
- package/dist/typeGuards.es-fwUoeMCe.mjs +0 -12
- package/dist/unionpay.svg.es-DYgo83Hf.mjs +0 -4
- package/dist/unionpay.svg.es-YqJKKFEj.js +0 -1
- package/dist/url-CjULBkjW.js +0 -1
- package/dist/url-CvNDq4wp.mjs +0 -22
- package/dist/useActionDispatchProvider-BVOBO0Jx.mjs +0 -12
- package/dist/useActionDispatchProvider-Cv9amjTf.js +0 -1
- package/dist/useCustomer-DLHOs4BR.js +0 -1
- package/dist/useCustomer-EDhref7T.mjs +0 -25
- package/dist/useCustomerFormLabels-B61-4xQ7.mjs +0 -1168
- package/dist/useCustomerFormLabels-C6wW4n2e.js +0 -1
- package/dist/useExperimentalFeature-0yFoaEzV.js +0 -1
- package/dist/useExperimentalFeature-DvxOrFPU.mjs +0 -9
- package/dist/useIncrementalLoading-BK9pRYAU.mjs +0 -71
- package/dist/useIncrementalLoading-CdtGJm_Y.js +0 -1
- package/dist/useInvoiceData-BSjVeJrI.js +0 -1
- package/dist/useInvoiceData-C0Y5WrbT.mjs +0 -45
- package/dist/useInvoicesList-BRDZqsaB.js +0 -1
- package/dist/useInvoicesList-CYoE7q0u.mjs +0 -580
- package/dist/useLoadInitialData-Cp1OA8y6.mjs +0 -18
- package/dist/useLoadInitialData-u7IyXqb6.js +0 -1
- package/dist/usePaymentMethodAvailability-B3s1lqQ2.js +0 -1
- package/dist/usePaymentMethodAvailability-EuhZPghG.mjs +0 -141
- package/dist/usePaymentMethodOptions--8QpMvNm.js +0 -1
- package/dist/usePaymentMethodOptions-Cljh7HYp.mjs +0 -36
- package/dist/usePaymentMethods-BJzoI8dZ.mjs +0 -16
- package/dist/usePaymentMethods-DvEnJWmB.js +0 -1
- package/dist/usePayments-CANj0QVc.js +0 -1
- package/dist/usePayments-CaT1CBzE.mjs +0 -362
- package/dist/usePortal-BjGoSeLy.js +0 -1
- package/dist/usePortal-CMPQ0M9R.mjs +0 -12
- package/dist/useService-D73FNBjT.js +0 -1
- package/dist/useService-W3Kxems4.mjs +0 -72
- package/dist/useSubscription-D1UKnZAx.mjs +0 -250
- package/dist/useSubscription-DZfRHbL7.js +0 -1
- package/dist/useViewport-Bu0cyeSi.mjs +0 -38
- package/dist/useViewport-CKRY1CKR.js +0 -1
- package/dist/useWatchDebounced-C_YxgoQ6.js +0 -1
- package/dist/useWatchDebounced-Zmxd6InB.mjs +0 -16
- package/dist/visa.svg.es-B6aU_qRs.mjs +0 -4
- package/dist/visa.svg.es-D6sc4YTE.js +0 -1
- package/dist/vpay.svg.es-4qIqS4aX.mjs +0 -4
- package/dist/vpay.svg.es-CLGTyB09.js +0 -1
- package/dist/zip.svg.es-3PzSBe1E.mjs +0 -4
- package/dist/zip.svg.es-BRsgmur-.js +0 -1
package/dist/index-Cai7laNY.mjs
DELETED
|
@@ -1,1069 +0,0 @@
|
|
|
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
|
-
};
|