@soft-stech/bootsman-ui-shadcn 1.1.5 → 1.1.7
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{BuiAccordion.vue_vue_type_script_setup_true_lang-9BLJ6Xyx.js → BuiAccordion.vue_vue_type_script_setup_true_lang-YguPUG10.js} +1 -1
- package/dist/{BuiAccordionContent.vue_vue_type_script_setup_true_lang-cITei7Xc.js → BuiAccordionContent.vue_vue_type_script_setup_true_lang-iDyTyKV0.js} +2 -2
- package/dist/{BuiAccordionItem.vue_vue_type_script_setup_true_lang-WpA2wBod.js → BuiAccordionItem.vue_vue_type_script_setup_true_lang-ZNOaWCDA.js} +2 -2
- package/dist/{BuiAccordionTrigger.vue_vue_type_script_setup_true_lang-XGpq6g83.js → BuiAccordionTrigger.vue_vue_type_script_setup_true_lang-1PhTddMJ.js} +3 -3
- package/dist/{BuiAlertDescription.vue_vue_type_script_setup_true_lang-8jrdPVoZ.js → BuiAlertDescription.vue_vue_type_script_setup_true_lang-YeTHgm4t.js} +1 -1
- package/dist/{BuiAlertDialog.vue_vue_type_script_setup_true_lang-drRFSwcd.js → BuiAlertDialog.vue_vue_type_script_setup_true_lang-JYU_FrBw.js} +1 -1
- package/dist/{BuiAlertDialogAction.vue_vue_type_script_setup_true_lang-eFFXI8yh.js → BuiAlertDialogAction.vue_vue_type_script_setup_true_lang-uc9DUUQr.js} +2 -2
- package/dist/{BuiAlertDialogCancel.vue_vue_type_script_setup_true_lang-TLIRf7tC.js → BuiAlertDialogCancel.vue_vue_type_script_setup_true_lang-WuRmp8jF.js} +2 -2
- package/dist/{BuiAlertDialogContent.vue_vue_type_script_setup_true_lang-oh-at7EE.js → BuiAlertDialogContent.vue_vue_type_script_setup_true_lang-qD_CrKVN.js} +2 -2
- package/dist/{BuiAlertDialogDescription.vue_vue_type_script_setup_true_lang-X2mlNOpn.js → BuiAlertDialogDescription.vue_vue_type_script_setup_true_lang-We9NMlf3.js} +2 -2
- package/dist/{BuiAlertDialogFooter.vue_vue_type_script_setup_true_lang-mmjuecnW.js → BuiAlertDialogFooter.vue_vue_type_script_setup_true_lang-SEEpm7H5.js} +1 -1
- package/dist/{BuiAlertDialogHeader.vue_vue_type_script_setup_true_lang-UPa1YAXB.js → BuiAlertDialogHeader.vue_vue_type_script_setup_true_lang-2uvNtPXZ.js} +1 -1
- package/dist/{BuiAlertDialogTitle.vue_vue_type_script_setup_true_lang-nZUb20JY.js → BuiAlertDialogTitle.vue_vue_type_script_setup_true_lang-_ywzQAZl.js} +2 -2
- package/dist/{BuiAlertDialogTrigger.vue_vue_type_script_setup_true_lang-6rGwccsw.js → BuiAlertDialogTrigger.vue_vue_type_script_setup_true_lang-4Q06Na_w.js} +1 -1
- package/dist/{BuiAlertTitle.vue_vue_type_script_setup_true_lang-o-BOLh_O.js → BuiAlertTitle.vue_vue_type_script_setup_true_lang-XvZM_qP3.js} +1 -1
- package/dist/{BuiAspectRatio.vue_vue_type_script_setup_true_lang-9m_EvATB.js → BuiAspectRatio.vue_vue_type_script_setup_true_lang-eta-06vN.js} +1 -1
- package/dist/{BuiAvatarFallback.vue_vue_type_script_setup_true_lang-HZyBgkY0.js → BuiAvatarFallback.vue_vue_type_script_setup_true_lang-DR1FtOMu.js} +1 -1
- package/dist/{BuiAvatarImage.vue_vue_type_script_setup_true_lang-MsIHnqZj.js → BuiAvatarImage.vue_vue_type_script_setup_true_lang-X7vrzYy3.js} +3 -3
- package/dist/{BuiCard.vue_vue_type_script_setup_true_lang-NlSYFMAq.js → BuiCard.vue_vue_type_script_setup_true_lang-iVXYTH55.js} +1 -1
- package/dist/{BuiCardContent.vue_vue_type_script_setup_true_lang-KSNjVOqI.js → BuiCardContent.vue_vue_type_script_setup_true_lang-VUzdLk9l.js} +1 -1
- package/dist/{BuiCardDescription.vue_vue_type_script_setup_true_lang-Zax4268g.js → BuiCardDescription.vue_vue_type_script_setup_true_lang-6n-byp8X.js} +1 -1
- package/dist/{BuiCardFooter.vue_vue_type_script_setup_true_lang-bCZEO5Ur.js → BuiCardFooter.vue_vue_type_script_setup_true_lang-oB72uhWu.js} +1 -1
- package/dist/{BuiCardHeader.vue_vue_type_script_setup_true_lang-shV0E_l4.js → BuiCardHeader.vue_vue_type_script_setup_true_lang-GWdU5NR5.js} +1 -1
- package/dist/{BuiCardTitle.vue_vue_type_script_setup_true_lang-BjqxR93B.js → BuiCardTitle.vue_vue_type_script_setup_true_lang-R-fj5jdh.js} +1 -1
- package/dist/{BuiCheckbox.vue_vue_type_script_setup_true_lang-hmQQsYjl.js → BuiCheckbox.vue_vue_type_script_setup_true_lang-gYB5jMgf.js} +3 -3
- package/dist/{BuiCommand.vue_vue_type_script_setup_true_lang-pgdGbKQE.js → BuiCommand.vue_vue_type_script_setup_true_lang-84I7ijjd.js} +2 -2
- package/dist/{BuiCommandDialog.vue_vue_type_script_setup_true_lang-UH_r4sd4.js → BuiCommandDialog.vue_vue_type_script_setup_true_lang-HH_HFkDC.js} +4 -4
- package/dist/{BuiCommandEmpty.vue_vue_type_script_setup_true_lang-nZN2PCOI.js → BuiCommandEmpty.vue_vue_type_script_setup_true_lang-fVbpamWK.js} +2 -2
- package/dist/{BuiCommandGroup.vue_vue_type_script_setup_true_lang-CKpABfQa.js → BuiCommandGroup.vue_vue_type_script_setup_true_lang-7AOyupRe.js} +2 -2
- package/dist/{BuiCommandInput.vue_vue_type_script_setup_true_lang-7cpUivKl.js → BuiCommandInput.vue_vue_type_script_setup_true_lang-yeiWMBDi.js} +2 -2
- package/dist/{BuiCommandItem.vue_vue_type_script_setup_true_lang-eOQ-j7UO.js → BuiCommandItem.vue_vue_type_script_setup_true_lang-WTr1VDJL.js} +2 -2
- package/dist/{BuiCommandList.vue_vue_type_script_setup_true_lang-P-7zpAc5.js → BuiCommandList.vue_vue_type_script_setup_true_lang-WGZZaMlY.js} +2 -2
- package/dist/{BuiCommandSeparator.vue_vue_type_script_setup_true_lang-McaxEcOo.js → BuiCommandSeparator.vue_vue_type_script_setup_true_lang-GW99yqwd.js} +2 -2
- package/dist/{BuiCommandShortcut.vue_vue_type_script_setup_true_lang-Zy-vTjVY.js → BuiCommandShortcut.vue_vue_type_script_setup_true_lang-9XUaJecw.js} +1 -1
- package/dist/{BuiContextMenu.vue_vue_type_script_setup_true_lang-bYczFsg-.js → BuiContextMenu.vue_vue_type_script_setup_true_lang-AZSGZA6Q.js} +1 -1
- package/dist/{BuiContextMenuCheckboxItem.vue_vue_type_script_setup_true_lang-rCqMNMaF.js → BuiContextMenuCheckboxItem.vue_vue_type_script_setup_true_lang-G2jmgpvw.js} +3 -3
- package/dist/{BuiContextMenuContent.vue_vue_type_script_setup_true_lang-CHRHXhtC.js → BuiContextMenuContent.vue_vue_type_script_setup_true_lang-x6uhqy7K.js} +2 -2
- package/dist/{BuiContextMenuGroup.vue_vue_type_script_setup_true_lang-e4bgXtVX.js → BuiContextMenuGroup.vue_vue_type_script_setup_true_lang-pLKmdQcL.js} +1 -1
- package/dist/{BuiContextMenuItem.vue_vue_type_script_setup_true_lang-0-2dQG0C.js → BuiContextMenuItem.vue_vue_type_script_setup_true_lang-fHgYLlfC.js} +2 -2
- package/dist/{BuiContextMenuLabel.vue_vue_type_script_setup_true_lang-BhjZyO9o.js → BuiContextMenuLabel.vue_vue_type_script_setup_true_lang-ZH2fSw7H.js} +2 -2
- package/dist/{BuiContextMenuRadioGroup.vue_vue_type_script_setup_true_lang-nNHJl0-j.js → BuiContextMenuRadioGroup.vue_vue_type_script_setup_true_lang-hdbocC-X.js} +1 -1
- package/dist/{BuiContextMenuRadioItem.vue_vue_type_script_setup_true_lang-EGhlM62H.js → BuiContextMenuRadioItem.vue_vue_type_script_setup_true_lang-0dC-9n51.js} +3 -3
- package/dist/{BuiContextMenuSeparator.vue_vue_type_script_setup_true_lang-kyyLXa_U.js → BuiContextMenuSeparator.vue_vue_type_script_setup_true_lang-Ss6shGf0.js} +2 -2
- package/dist/{BuiContextMenuShortcut.vue_vue_type_script_setup_true_lang-ToEUWhfj.js → BuiContextMenuShortcut.vue_vue_type_script_setup_true_lang-ek3fRVt2.js} +1 -1
- package/dist/{BuiContextMenuSub.vue_vue_type_script_setup_true_lang-T1Ux4ixK.js → BuiContextMenuSub.vue_vue_type_script_setup_true_lang-xN6e213D.js} +1 -1
- package/dist/{BuiContextMenuSubContent.vue_vue_type_script_setup_true_lang-Kdtlc7hW.js → BuiContextMenuSubContent.vue_vue_type_script_setup_true_lang-4r7UEIh-.js} +2 -2
- package/dist/{BuiContextMenuSubTrigger.vue_vue_type_script_setup_true_lang-L97g7c_7.js → BuiContextMenuSubTrigger.vue_vue_type_script_setup_true_lang-Yv1nUfd0.js} +3 -3
- package/dist/{BuiContextMenuTrigger.vue_vue_type_script_setup_true_lang-sXoQhxWy.js → BuiContextMenuTrigger.vue_vue_type_script_setup_true_lang-wPpIRNkF.js} +1 -1
- package/dist/{BuiDataTable.vue_vue_type_script_setup_true_lang-pgkgRvqY.js → BuiDataTable.vue_vue_type_script_setup_true_lang-R8Y-9wk5.js} +11 -11
- package/dist/{BuiDialog.vue_vue_type_script_setup_true_lang-XcsMzc3I.js → BuiDialog.vue_vue_type_script_setup_true_lang-bLt8FtzQ.js} +1 -1
- package/dist/{BuiDialogClose.vue_vue_type_script_setup_true_lang-OHUVkyIZ.js → BuiDialogClose.vue_vue_type_script_setup_true_lang-gOZ5R6et.js} +1 -1
- package/dist/{BuiDialogContent.vue_vue_type_script_setup_true_lang-hrWFlzM4.js → BuiDialogContent.vue_vue_type_script_setup_true_lang-UjfumkJY.js} +3 -3
- package/dist/{BuiDialogDescription.vue_vue_type_script_setup_true_lang-7u7nRjox.js → BuiDialogDescription.vue_vue_type_script_setup_true_lang-TSE0znVn.js} +2 -2
- package/dist/{BuiDialogFooter.vue_vue_type_script_setup_true_lang-80ERRoRc.js → BuiDialogFooter.vue_vue_type_script_setup_true_lang-a5d2VFRp.js} +1 -1
- package/dist/{BuiDialogHeader.vue_vue_type_script_setup_true_lang-gOxYmzNm.js → BuiDialogHeader.vue_vue_type_script_setup_true_lang-QACfJYmt.js} +1 -1
- package/dist/{BuiDialogTitle.vue_vue_type_script_setup_true_lang-FX9zuR32.js → BuiDialogTitle.vue_vue_type_script_setup_true_lang-kw24Dhnc.js} +2 -2
- package/dist/{BuiDialogTrigger.vue_vue_type_script_setup_true_lang-7FGqSdwP.js → BuiDialogTrigger.vue_vue_type_script_setup_true_lang-kGsidU0d.js} +1 -1
- package/dist/{BuiDropdownMenu.vue_vue_type_script_setup_true_lang-TxkUDc51.js → BuiDropdownMenu.vue_vue_type_script_setup_true_lang-UD90YqIg.js} +1 -1
- package/dist/{BuiDropdownMenuCheckboxItem.vue_vue_type_script_setup_true_lang-lcYopOyd.js → BuiDropdownMenuCheckboxItem.vue_vue_type_script_setup_true_lang-UEhkKXr1.js} +3 -3
- package/dist/{BuiDropdownMenuContent.vue_vue_type_script_setup_true_lang-gVqBEKAp.js → BuiDropdownMenuContent.vue_vue_type_script_setup_true_lang-9wXnL2Aq.js} +2 -2
- package/dist/{BuiDropdownMenuGroup.vue_vue_type_script_setup_true_lang-SzAy0CW2.js → BuiDropdownMenuGroup.vue_vue_type_script_setup_true_lang-EBM4Ve7t.js} +1 -1
- package/dist/{BuiDropdownMenuItem.vue_vue_type_script_setup_true_lang-uVdSBE0w.js → BuiDropdownMenuItem.vue_vue_type_script_setup_true_lang-sNi26fL3.js} +2 -2
- package/dist/{BuiDropdownMenuLabel.vue_vue_type_script_setup_true_lang-7nLX3XMh.js → BuiDropdownMenuLabel.vue_vue_type_script_setup_true_lang-_GUKA7BF.js} +2 -2
- package/dist/{BuiDropdownMenuRadioGroup.vue_vue_type_script_setup_true_lang-RZWoR5VT.js → BuiDropdownMenuRadioGroup.vue_vue_type_script_setup_true_lang-6Vgd73-e.js} +1 -1
- package/dist/{BuiDropdownMenuRadioItem.vue_vue_type_script_setup_true_lang-cDTsC5tu.js → BuiDropdownMenuRadioItem.vue_vue_type_script_setup_true_lang-P9pZafSg.js} +3 -3
- package/dist/{BuiDropdownMenuSeparator.vue_vue_type_script_setup_true_lang-W0BH0qKT.js → BuiDropdownMenuSeparator.vue_vue_type_script_setup_true_lang-PeVIlINo.js} +1 -1
- package/dist/{BuiDropdownMenuShortcut.vue_vue_type_script_setup_true_lang-gaq5dUPX.js → BuiDropdownMenuShortcut.vue_vue_type_script_setup_true_lang-6BJOvyHW.js} +1 -1
- package/dist/{BuiDropdownMenuSub.vue_vue_type_script_setup_true_lang-b69z0e58.js → BuiDropdownMenuSub.vue_vue_type_script_setup_true_lang-gm5KUDBp.js} +1 -1
- package/dist/{BuiDropdownMenuSubContent.vue_vue_type_script_setup_true_lang-ATAZfrFL.js → BuiDropdownMenuSubContent.vue_vue_type_script_setup_true_lang-49zZIwM7.js} +2 -2
- package/dist/{BuiDropdownMenuSubTrigger.vue_vue_type_script_setup_true_lang-g1i52iXv.js → BuiDropdownMenuSubTrigger.vue_vue_type_script_setup_true_lang-Uz5KE34b.js} +3 -3
- package/dist/{BuiDropdownMenuTrigger.vue_vue_type_script_setup_true_lang-t7nAulRQ.js → BuiDropdownMenuTrigger.vue_vue_type_script_setup_true_lang-rIaOSmJL.js} +1 -1
- package/dist/{BuiFormControl.vue_vue_type_script_setup_true_lang-sLcVABMM.js → BuiFormControl.vue_vue_type_script_setup_true_lang-VGuI7poy.js} +2 -2
- package/dist/{BuiFormDescription.vue_vue_type_script_setup_true_lang-S6O4siIc.js → BuiFormDescription.vue_vue_type_script_setup_true_lang-8abLjyNe.js} +2 -2
- package/dist/{BuiFormItem.vue_vue_type_script_setup_true_lang-H1naMqTM.js → BuiFormItem.vue_vue_type_script_setup_true_lang--ekNo4nt.js} +2 -2
- package/dist/{BuiFormLabel.vue_vue_type_script_setup_true_lang-RK-EDI4m.js → BuiFormLabel.vue_vue_type_script_setup_true_lang-GMCtuYNU.js} +3 -3
- package/dist/{BuiFormMessage.vue_vue_type_script_setup_true_lang-faAcE08Y.js → BuiFormMessage.vue_vue_type_script_setup_true_lang-QFszX1pr.js} +1 -1
- package/dist/{BuiHoverCard.vue_vue_type_script_setup_true_lang-EBv98I52.js → BuiHoverCard.vue_vue_type_script_setup_true_lang-S3RVBTTS.js} +1 -1
- package/dist/{BuiHoverCardContent.vue_vue_type_script_setup_true_lang-VLzerlqJ.js → BuiHoverCardContent.vue_vue_type_script_setup_true_lang-L6Dz8DM_.js} +2 -2
- package/dist/{BuiHoverCardTrigger.vue_vue_type_script_setup_true_lang-PMhM5KRl.js → BuiHoverCardTrigger.vue_vue_type_script_setup_true_lang-IsR6KACZ.js} +1 -1
- package/dist/{BuiLabel.vue_vue_type_script_setup_true_lang-q-UZL-UE.js → BuiLabel.vue_vue_type_script_setup_true_lang-ZMug4Jyp.js} +2 -2
- package/dist/{BuiPaginationEllipsis.vue_vue_type_script_setup_true_lang-5VYL4LuB.js → BuiPaginationEllipsis.vue_vue_type_script_setup_true_lang-AuEAkmIX.js} +2 -2
- package/dist/{BuiPaginationFirst.vue_vue_type_script_setup_true_lang-fK4Ncltc.js → BuiPaginationFirst.vue_vue_type_script_setup_true_lang-IjtilSTF.js} +2 -2
- package/dist/{BuiPaginationLast.vue_vue_type_script_setup_true_lang-RC1b8a4S.js → BuiPaginationLast.vue_vue_type_script_setup_true_lang-_GH7GQ0P.js} +8 -8
- package/dist/{BuiPaginationNext.vue_vue_type_script_setup_true_lang-U6POTOZx.js → BuiPaginationNext.vue_vue_type_script_setup_true_lang-pWWslPu2.js} +3 -3
- package/dist/{BuiPaginationPrev.vue_vue_type_script_setup_true_lang-WqAefTwp.js → BuiPaginationPrev.vue_vue_type_script_setup_true_lang-Q96oMXdp.js} +3 -3
- package/dist/{BuiPopover.vue_vue_type_script_setup_true_lang-W6f7rUvH.js → BuiPopover.vue_vue_type_script_setup_true_lang-_fAp_RnW.js} +1 -1
- package/dist/{BuiPopoverContent.vue_vue_type_script_setup_true_lang-EQuOoBbI.js → BuiPopoverContent.vue_vue_type_script_setup_true_lang-kbW57_qU.js} +2 -2
- package/dist/{BuiPopoverTrigger.vue_vue_type_script_setup_true_lang-JYkdXXg-.js → BuiPopoverTrigger.vue_vue_type_script_setup_true_lang-c1LfFwnq.js} +1 -1
- package/dist/{BuiRadioGroup.vue_vue_type_script_setup_true_lang-2mkZhJvl.js → BuiRadioGroup.vue_vue_type_script_setup_true_lang-U7kk7hto.js} +2 -2
- package/dist/{BuiRadioGroupItem.vue_vue_type_script_setup_true_lang-CQE5M69-.js → BuiRadioGroupItem.vue_vue_type_script_setup_true_lang-pNxgYOd5.js} +3 -3
- package/dist/BuiScrollArea.vue_vue_type_script_setup_true_lang-aWTMmMt7.js +39 -0
- package/dist/BuiScrollBar.vue_vue_type_script_setup_true_lang-JRtfvV3R.js +35 -0
- package/dist/{BuiSelect.vue_vue_type_script_setup_true_lang-sQ2rSMlT.js → BuiSelect.vue_vue_type_script_setup_true_lang-pWKVaghQ.js} +1 -1
- package/dist/{BuiSelectContent.vue_vue_type_script_setup_true_lang--n_M7a_T.js → BuiSelectContent.vue_vue_type_script_setup_true_lang-INPDOOFr.js} +2 -2
- package/dist/{BuiSelectGroup.vue_vue_type_script_setup_true_lang-GK2pNR5m.js → BuiSelectGroup.vue_vue_type_script_setup_true_lang-dcNe8TtH.js} +2 -2
- package/dist/{BuiSelectItem.vue_vue_type_script_setup_true_lang-VDqLtC0D.js → BuiSelectItem.vue_vue_type_script_setup_true_lang-8kz48iKV.js} +3 -3
- package/dist/{BuiSelectItemText.vue_vue_type_script_setup_true_lang-m5iJ8Pg_.js → BuiSelectItemText.vue_vue_type_script_setup_true_lang-UGBr1yCj.js} +1 -1
- package/dist/{BuiSelectLabel.vue_vue_type_script_setup_true_lang-lZ8Jh2TG.js → BuiSelectLabel.vue_vue_type_script_setup_true_lang-edVcel-F.js} +2 -2
- package/dist/{BuiSelectSeparator.vue_vue_type_script_setup_true_lang-J_fX1QyS.js → BuiSelectSeparator.vue_vue_type_script_setup_true_lang-6tGdJTzu.js} +2 -2
- package/dist/{BuiSelectTrigger.vue_vue_type_script_setup_true_lang-S01r-aXt.js → BuiSelectTrigger.vue_vue_type_script_setup_true_lang-cByzokb9.js} +3 -3
- package/dist/{BuiSelectValue.vue_vue_type_script_setup_true_lang-0ZSwXF3e.js → BuiSelectValue.vue_vue_type_script_setup_true_lang-E5IFRR6a.js} +1 -1
- package/dist/{BuiSeparator.vue_vue_type_script_setup_true_lang-sf7ok9wH.js → BuiSeparator.vue_vue_type_script_setup_true_lang--49TnmD-.js} +2 -2
- package/dist/{BuiSlider.vue_vue_type_script_setup_true_lang-BAWPsSzm.js → BuiSlider.vue_vue_type_script_setup_true_lang-MqU6lMB_.js} +2 -2
- package/dist/{BuiSwitch.vue_vue_type_script_setup_true_lang-wHJbLNso.js → BuiSwitch.vue_vue_type_script_setup_true_lang-QdG0iyCb.js} +2 -2
- package/dist/{BuiTable.vue_vue_type_script_setup_true_lang-WLKBuUXU.js → BuiTable.vue_vue_type_script_setup_true_lang-nuuLUvv6.js} +1 -1
- package/dist/{BuiTableBody.vue_vue_type_script_setup_true_lang-jK0O3b7_.js → BuiTableBody.vue_vue_type_script_setup_true_lang-_yfLHqnJ.js} +1 -1
- package/dist/{BuiTableCaption.vue_vue_type_script_setup_true_lang-OnsFZa8H.js → BuiTableCaption.vue_vue_type_script_setup_true_lang-ph4Z_cRy.js} +1 -1
- package/dist/{BuiTableCell.vue_vue_type_script_setup_true_lang-VtINY171.js → BuiTableCell.vue_vue_type_script_setup_true_lang-JJzkvMCz.js} +1 -1
- package/dist/{BuiTableEmpty.vue_vue_type_script_setup_true_lang-4QJziEvg.js → BuiTableEmpty.vue_vue_type_script_setup_true_lang-_MRf0Nnw.js} +3 -3
- package/dist/{BuiTableFooter.vue_vue_type_script_setup_true_lang-DN__NJQ9.js → BuiTableFooter.vue_vue_type_script_setup_true_lang-x3qkBqSQ.js} +1 -1
- package/dist/{BuiTableHead.vue_vue_type_script_setup_true_lang-oYy0jbEy.js → BuiTableHead.vue_vue_type_script_setup_true_lang-pcG5x39y.js} +1 -1
- package/dist/{BuiTableHeader.vue_vue_type_script_setup_true_lang-HFGpZshY.js → BuiTableHeader.vue_vue_type_script_setup_true_lang-LQg4HMFj.js} +1 -1
- package/dist/{BuiTableRow.vue_vue_type_script_setup_true_lang-rLz2bJf7.js → BuiTableRow.vue_vue_type_script_setup_true_lang-EtmOqvqc.js} +1 -1
- package/dist/{BuiTabs.vue_vue_type_script_setup_true_lang-uGY6Tchl.js → BuiTabs.vue_vue_type_script_setup_true_lang-lGL8uRJt.js} +1 -1
- package/dist/{BuiTabsContent.vue_vue_type_script_setup_true_lang-DHOghF9A.js → BuiTabsContent.vue_vue_type_script_setup_true_lang-HqXLeyd_.js} +2 -2
- package/dist/{BuiToastAction.vue_vue_type_script_setup_true_lang-a1xktm3u.js → BuiToastAction.vue_vue_type_script_setup_true_lang-05eLA-RA.js} +2 -2
- package/dist/{BuiToastClose.vue_vue_type_script_setup_true_lang-5mBijbF_.js → BuiToastClose.vue_vue_type_script_setup_true_lang-Mij4hduf.js} +3 -3
- package/dist/{BuiToastDescription.vue_vue_type_script_setup_true_lang-xJ-TOyWS.js → BuiToastDescription.vue_vue_type_script_setup_true_lang-kd-hlGF_.js} +2 -2
- package/dist/{BuiToastProvider.vue_vue_type_script_setup_true_lang-DuBHcxe4.js → BuiToastProvider.vue_vue_type_script_setup_true_lang-uc0DG45_.js} +1 -1
- package/dist/{BuiToastTitle.vue_vue_type_script_setup_true_lang-EYDQfsIV.js → BuiToastTitle.vue_vue_type_script_setup_true_lang-3QRzz3c6.js} +2 -2
- package/dist/{BuiToastViewport.vue_vue_type_script_setup_true_lang-ulOXdHbj.js → BuiToastViewport.vue_vue_type_script_setup_true_lang-UbCnc1bF.js} +2 -2
- package/dist/{BuiTooltip.vue_vue_type_script_setup_true_lang-x-QhmjH7.js → BuiTooltip.vue_vue_type_script_setup_true_lang-g7u80FRZ.js} +1 -1
- package/dist/{BuiTooltipContent.vue_vue_type_script_setup_true_lang-FcbPdhOp.js → BuiTooltipContent.vue_vue_type_script_setup_true_lang-PkYHWPWy.js} +2 -2
- package/dist/{BuiTooltipProvider.vue_vue_type_script_setup_true_lang-ZioG4xmM.js → BuiTooltipProvider.vue_vue_type_script_setup_true_lang--ZBdRhaa.js} +1 -1
- package/dist/{BuiTooltipTrigger.vue_vue_type_script_setup_true_lang-BwuLE7Ul.js → BuiTooltipTrigger.vue_vue_type_script_setup_true_lang-yFZkcjpC.js} +1 -1
- package/dist/{Skeleton.vue_vue_type_script_setup_true_lang-hQ7LFTbF.js → Skeleton.vue_vue_type_script_setup_true_lang-zZ-jHSog.js} +1 -1
- package/dist/assets/main.css +1 -1
- package/dist/{check-lhPAzofC.js → check-d6cqKln8.js} +1 -1
- package/dist/{chevron-down-IXxIqHx5.js → chevron-down-Nu4ixToE.js} +1 -1
- package/dist/{chevron-left-YH8QQiZA.js → chevron-left-C9SZmd3R.js} +1 -1
- package/dist/{chevron-right-zxos2ByC.js → chevron-right-SGtCgqWD.js} +1 -1
- package/dist/{circle-6KICezMk.js → circle-RHck_alk.js} +1 -1
- package/dist/components/ui/accordion/BuiAccordion.js +1 -1
- package/dist/components/ui/accordion/BuiAccordionContent.js +1 -1
- package/dist/components/ui/accordion/BuiAccordionItem.js +1 -1
- package/dist/components/ui/accordion/BuiAccordionTrigger.js +1 -1
- package/dist/components/ui/accordion/index.js +4 -4
- package/dist/components/ui/alert/BuiAlertDescription.js +1 -1
- package/dist/components/ui/alert/BuiAlertTitle.js +1 -1
- package/dist/components/ui/alert/index.js +3 -3
- package/dist/components/ui/alert-dialog/BuiAlertDialog.js +1 -1
- package/dist/components/ui/alert-dialog/BuiAlertDialogAction.js +1 -1
- package/dist/components/ui/alert-dialog/BuiAlertDialogCancel.js +1 -1
- package/dist/components/ui/alert-dialog/BuiAlertDialogContent.js +1 -1
- package/dist/components/ui/alert-dialog/BuiAlertDialogDescription.js +1 -1
- package/dist/components/ui/alert-dialog/BuiAlertDialogFooter.js +1 -1
- package/dist/components/ui/alert-dialog/BuiAlertDialogHeader.js +1 -1
- package/dist/components/ui/alert-dialog/BuiAlertDialogTitle.js +1 -1
- package/dist/components/ui/alert-dialog/BuiAlertDialogTrigger.js +1 -1
- package/dist/components/ui/alert-dialog/index.js +9 -9
- package/dist/components/ui/aspect-ratio/BuiAspectRatio.js +1 -1
- package/dist/components/ui/aspect-ratio/index.js +1 -1
- package/dist/components/ui/avatar/BuiAvatarFallback.js +1 -1
- package/dist/components/ui/avatar/BuiAvatarImage.js +1 -1
- package/dist/components/ui/avatar/index.js +4 -4
- package/dist/components/ui/badge/index.js +13 -13
- package/dist/components/ui/button/BuiButton.js +1 -1
- package/dist/components/ui/button/index.js +1 -1
- package/dist/components/ui/calendar/index.js +3 -3
- package/dist/components/ui/card/BuiCard.js +1 -1
- package/dist/components/ui/card/BuiCardContent.js +1 -1
- package/dist/components/ui/card/BuiCardDescription.js +1 -1
- package/dist/components/ui/card/BuiCardFooter.js +1 -1
- package/dist/components/ui/card/BuiCardHeader.js +1 -1
- package/dist/components/ui/card/BuiCardTitle.js +1 -1
- package/dist/components/ui/card/index.js +6 -6
- package/dist/components/ui/checkbox/BuiCheckbox.js +1 -1
- package/dist/components/ui/checkbox/index.js +1 -1
- package/dist/components/ui/command/BuiCommand.js +1 -1
- package/dist/components/ui/command/BuiCommandDialog.js +1 -1
- package/dist/components/ui/command/BuiCommandEmpty.js +1 -1
- package/dist/components/ui/command/BuiCommandGroup.js +1 -1
- package/dist/components/ui/command/BuiCommandInput.js +1 -1
- package/dist/components/ui/command/BuiCommandItem.js +1 -1
- package/dist/components/ui/command/BuiCommandList.js +1 -1
- package/dist/components/ui/command/BuiCommandSeparator.js +1 -1
- package/dist/components/ui/command/BuiCommandShortcut.js +1 -1
- package/dist/components/ui/command/index.js +9 -9
- package/dist/components/ui/context-menu/BuiContextMenu.js +1 -1
- package/dist/components/ui/context-menu/BuiContextMenuCheckboxItem.js +1 -1
- package/dist/components/ui/context-menu/BuiContextMenuContent.js +1 -1
- package/dist/components/ui/context-menu/BuiContextMenuGroup.js +1 -1
- package/dist/components/ui/context-menu/BuiContextMenuItem.js +1 -1
- package/dist/components/ui/context-menu/BuiContextMenuLabel.js +1 -1
- package/dist/components/ui/context-menu/BuiContextMenuPortal.js +1 -1
- package/dist/components/ui/context-menu/BuiContextMenuRadioGroup.js +1 -1
- package/dist/components/ui/context-menu/BuiContextMenuRadioItem.js +1 -1
- package/dist/components/ui/context-menu/BuiContextMenuSeparator.js +1 -1
- package/dist/components/ui/context-menu/BuiContextMenuShortcut.js +1 -1
- package/dist/components/ui/context-menu/BuiContextMenuSub.js +1 -1
- package/dist/components/ui/context-menu/BuiContextMenuSubContent.js +1 -1
- package/dist/components/ui/context-menu/BuiContextMenuSubTrigger.js +1 -1
- package/dist/components/ui/context-menu/BuiContextMenuTrigger.js +1 -1
- package/dist/components/ui/context-menu/index.js +14 -14
- package/dist/components/ui/dialog/BuiDialog.js +1 -1
- package/dist/components/ui/dialog/BuiDialogClose.js +1 -1
- package/dist/components/ui/dialog/BuiDialogContent.js +1 -1
- package/dist/components/ui/dialog/BuiDialogDescription.js +1 -1
- package/dist/components/ui/dialog/BuiDialogFooter.js +1 -1
- package/dist/components/ui/dialog/BuiDialogHeader.js +1 -1
- package/dist/components/ui/dialog/BuiDialogTitle.js +1 -1
- package/dist/components/ui/dialog/BuiDialogTrigger.js +1 -1
- package/dist/components/ui/dialog/index.js +8 -8
- package/dist/components/ui/dropdown-menu/BuiDropdownMenu.js +1 -1
- package/dist/components/ui/dropdown-menu/BuiDropdownMenuCheckboxItem.js +1 -1
- package/dist/components/ui/dropdown-menu/BuiDropdownMenuContent.js +1 -1
- package/dist/components/ui/dropdown-menu/BuiDropdownMenuGroup.js +1 -1
- package/dist/components/ui/dropdown-menu/BuiDropdownMenuItem.js +1 -1
- package/dist/components/ui/dropdown-menu/BuiDropdownMenuLabel.js +1 -1
- package/dist/components/ui/dropdown-menu/BuiDropdownMenuRadioGroup.js +1 -1
- package/dist/components/ui/dropdown-menu/BuiDropdownMenuRadioItem.js +1 -1
- package/dist/components/ui/dropdown-menu/BuiDropdownMenuSeparator.js +1 -1
- package/dist/components/ui/dropdown-menu/BuiDropdownMenuShortcut.js +1 -1
- package/dist/components/ui/dropdown-menu/BuiDropdownMenuSub.js +1 -1
- package/dist/components/ui/dropdown-menu/BuiDropdownMenuSubContent.js +1 -1
- package/dist/components/ui/dropdown-menu/BuiDropdownMenuSubTrigger.js +1 -1
- package/dist/components/ui/dropdown-menu/BuiDropdownMenuTrigger.js +1 -1
- package/dist/components/ui/dropdown-menu/index.js +15 -15
- package/dist/components/ui/form/BuiFormControl.js +1 -1
- package/dist/components/ui/form/BuiFormDescription.js +1 -1
- package/dist/components/ui/form/BuiFormItem.js +2 -2
- package/dist/components/ui/form/BuiFormLabel.js +1 -1
- package/dist/components/ui/form/BuiFormMessage.js +1 -1
- package/dist/components/ui/form/index.d.ts +1 -1
- package/dist/components/ui/form/index.js +11 -10
- package/dist/components/ui/form/useFormField.js +2 -2
- package/dist/components/ui/hover-card/BuiHoverCard.js +1 -1
- package/dist/components/ui/hover-card/BuiHoverCardContent.js +1 -1
- package/dist/components/ui/hover-card/BuiHoverCardTrigger.js +1 -1
- package/dist/components/ui/hover-card/index.js +3 -3
- package/dist/components/ui/input/index.js +1 -1
- package/dist/components/ui/label/BuiLabel.js +1 -1
- package/dist/components/ui/label/index.js +1 -1
- package/dist/components/ui/pagination/BuiPaginationCommon.js +1 -1
- package/dist/components/ui/pagination/BuiPaginationEllipsis.js +1 -1
- package/dist/components/ui/pagination/BuiPaginationFirst.js +1 -1
- package/dist/components/ui/pagination/BuiPaginationLast.js +1 -1
- package/dist/components/ui/pagination/BuiPaginationNext.js +1 -1
- package/dist/components/ui/pagination/BuiPaginationPrev.js +1 -1
- package/dist/components/ui/pagination/index.js +7 -7
- package/dist/components/ui/popover/BuiPopover.js +1 -1
- package/dist/components/ui/popover/BuiPopoverContent.js +1 -1
- package/dist/components/ui/popover/BuiPopoverTrigger.js +1 -1
- package/dist/components/ui/popover/index.js +3 -3
- package/dist/components/ui/progress/index.js +2 -2
- package/dist/components/ui/radio-group/BuiRadioGroup.js +1 -1
- package/dist/components/ui/radio-group/BuiRadioGroupItem.js +1 -1
- package/dist/components/ui/radio-group/index.js +2 -2
- package/dist/components/ui/scroll-area/BuiScrollArea.js +4 -0
- package/dist/components/ui/scroll-area/BuiScrollArea.vue.d.ts +23 -0
- package/dist/components/ui/scroll-area/BuiScrollBar.js +4 -0
- package/dist/components/ui/scroll-area/BuiScrollBar.vue.d.ts +31 -0
- package/dist/components/ui/scroll-area/index.d.ts +2 -0
- package/dist/components/ui/scroll-area/index.js +6 -0
- package/dist/components/ui/select/Bui.js +2 -2
- package/dist/components/ui/select/BuiSelect.js +1 -1
- package/dist/components/ui/select/BuiSelectContent.js +1 -1
- package/dist/components/ui/select/BuiSelectGroup.js +1 -1
- package/dist/components/ui/select/BuiSelectItem.js +1 -1
- package/dist/components/ui/select/BuiSelectItemText.js +1 -1
- package/dist/components/ui/select/BuiSelectLabel.js +1 -1
- package/dist/components/ui/select/BuiSelectSeparator.js +1 -1
- package/dist/components/ui/select/BuiSelectTrigger.js +1 -1
- package/dist/components/ui/select/BuiSelectValue.js +1 -1
- package/dist/components/ui/select/index.js +9 -9
- package/dist/components/ui/separator/BuiSeparator.js +1 -1
- package/dist/components/ui/separator/index.js +1 -1
- package/dist/components/ui/skeleton/Skeleton.js +1 -1
- package/dist/components/ui/skeleton/index.js +1 -1
- package/dist/components/ui/slider/BuiSlider.js +1 -1
- package/dist/components/ui/slider/index.js +1 -1
- package/dist/components/ui/switch/BuiSwitch.js +1 -1
- package/dist/components/ui/switch/index.js +1 -1
- package/dist/components/ui/table/BuiDataTable.js +1 -1
- package/dist/components/ui/table/BuiTable.js +1 -1
- package/dist/components/ui/table/BuiTableBody.js +1 -1
- package/dist/components/ui/table/BuiTableCaption.js +1 -1
- package/dist/components/ui/table/BuiTableCell.js +1 -1
- package/dist/components/ui/table/BuiTableEmpty.js +1 -1
- package/dist/components/ui/table/BuiTableFooter.js +1 -1
- package/dist/components/ui/table/BuiTableHead.js +1 -1
- package/dist/components/ui/table/BuiTableHeader.js +1 -1
- package/dist/components/ui/table/BuiTableRow.js +1 -1
- package/dist/components/ui/table/index.js +10 -10
- package/dist/components/ui/tabs/BuiTabs.js +1 -1
- package/dist/components/ui/tabs/BuiTabsContent.js +1 -1
- package/dist/components/ui/tabs/index.js +4 -4
- package/dist/components/ui/textarea/index.js +1 -1
- package/dist/components/ui/toast/BuiToastAction.js +1 -1
- package/dist/components/ui/toast/BuiToastClose.js +1 -1
- package/dist/components/ui/toast/BuiToastDescription.js +1 -1
- package/dist/components/ui/toast/BuiToastProvider.js +1 -1
- package/dist/components/ui/toast/BuiToastTitle.js +1 -1
- package/dist/components/ui/toast/BuiToastViewport.js +1 -1
- package/dist/components/ui/toast/index.js +8 -8
- package/dist/components/ui/toggle/index.js +2 -2
- package/dist/components/ui/tooltip/BuiTooltip.js +1 -1
- package/dist/components/ui/tooltip/BuiTooltipContent.js +1 -1
- package/dist/components/ui/tooltip/BuiTooltipProvider.js +1 -1
- package/dist/components/ui/tooltip/BuiTooltipTrigger.js +1 -1
- package/dist/components/ui/tooltip/index.js +4 -4
- package/dist/{index-Y0-z_6gp.js → index-OSqfkbgJ.js} +3999 -3263
- package/dist/index.d.ts +1 -0
- package/dist/index.js +226 -221
- package/dist/lib/utils.js +1 -1
- package/dist/useFormField-YDV6_Ldg.js +2285 -0
- package/dist/{utils-Fb7ZR83r.js → utils-Sn9Mj4FW.js} +1 -1
- package/dist/{variables-pHubWfbo.js → variables-7wViVkG_.js} +10 -10
- package/dist/{x-Oj3uv8PB.js → x-4KE6bfTb.js} +1 -1
- package/package.json +1 -1
- package/src/components/stories/BuiCombobox.story.vue +1 -1
- package/src/components/stories/BuiScrollArea.story.vue +29 -0
- package/src/components/ui/badge/BuiBadge.vue +1 -1
- package/src/components/ui/form/index.ts +5 -1
- package/src/components/ui/scroll-area/BuiScrollArea.vue +29 -0
- package/src/components/ui/scroll-area/BuiScrollBar.vue +30 -0
- package/src/components/ui/scroll-area/index.ts +2 -0
- package/src/index.ts +1 -0
- package/dist/useFormField-ht86QnXS.js +0 -2097
@@ -1,2097 +0,0 @@
|
|
1
|
-
import { defineComponent as ct, toRef as _e, computed as S, resolveDynamicComponent as ft, h as Le, inject as Ce, toValue as E, getCurrentInstance as Ee, unref as j, onMounted as Mt, provide as Bt, isRef as $e, watch as be, onBeforeUnmount as on, ref as de, reactive as ze, nextTick as se, warn as Rt, readonly as sn, watchEffect as dn, onUnmounted as Ut, shallowRef as cn } from "vue";
|
2
|
-
import { F as fn } from "./BuiFormItem.vue_vue_type_script_setup_true_lang-H1naMqTM.js";
|
3
|
-
function vn() {
|
4
|
-
return Dt().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
5
|
-
}
|
6
|
-
function Dt() {
|
7
|
-
return typeof navigator < "u" && typeof window < "u" ? window : typeof global < "u" ? global : {};
|
8
|
-
}
|
9
|
-
const hn = typeof Proxy == "function", mn = "devtools-plugin:setup", gn = "plugin:settings:set";
|
10
|
-
let je, at;
|
11
|
-
function yn() {
|
12
|
-
var e;
|
13
|
-
return je !== void 0 || (typeof window < "u" && window.performance ? (je = !0, at = window.performance) : typeof global < "u" && (!((e = global.perf_hooks) === null || e === void 0) && e.performance) ? (je = !0, at = global.perf_hooks.performance) : je = !1), je;
|
14
|
-
}
|
15
|
-
function bn() {
|
16
|
-
return yn() ? at.now() : Date.now();
|
17
|
-
}
|
18
|
-
class pn {
|
19
|
-
constructor(t, n) {
|
20
|
-
this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = n;
|
21
|
-
const r = {};
|
22
|
-
if (t.settings)
|
23
|
-
for (const o in t.settings) {
|
24
|
-
const d = t.settings[o];
|
25
|
-
r[o] = d.defaultValue;
|
26
|
-
}
|
27
|
-
const i = `__vue-devtools-plugin-settings__${t.id}`;
|
28
|
-
let u = Object.assign({}, r);
|
29
|
-
try {
|
30
|
-
const o = localStorage.getItem(i), d = JSON.parse(o);
|
31
|
-
Object.assign(u, d);
|
32
|
-
} catch {
|
33
|
-
}
|
34
|
-
this.fallbacks = {
|
35
|
-
getSettings() {
|
36
|
-
return u;
|
37
|
-
},
|
38
|
-
setSettings(o) {
|
39
|
-
try {
|
40
|
-
localStorage.setItem(i, JSON.stringify(o));
|
41
|
-
} catch {
|
42
|
-
}
|
43
|
-
u = o;
|
44
|
-
},
|
45
|
-
now() {
|
46
|
-
return bn();
|
47
|
-
}
|
48
|
-
}, n && n.on(gn, (o, d) => {
|
49
|
-
o === this.plugin.id && this.fallbacks.setSettings(d);
|
50
|
-
}), this.proxiedOn = new Proxy({}, {
|
51
|
-
get: (o, d) => this.target ? this.target.on[d] : (...c) => {
|
52
|
-
this.onQueue.push({
|
53
|
-
method: d,
|
54
|
-
args: c
|
55
|
-
});
|
56
|
-
}
|
57
|
-
}), this.proxiedTarget = new Proxy({}, {
|
58
|
-
get: (o, d) => this.target ? this.target[d] : d === "on" ? this.proxiedOn : Object.keys(this.fallbacks).includes(d) ? (...c) => (this.targetQueue.push({
|
59
|
-
method: d,
|
60
|
-
args: c,
|
61
|
-
resolve: () => {
|
62
|
-
}
|
63
|
-
}), this.fallbacks[d](...c)) : (...c) => new Promise((f) => {
|
64
|
-
this.targetQueue.push({
|
65
|
-
method: d,
|
66
|
-
args: c,
|
67
|
-
resolve: f
|
68
|
-
});
|
69
|
-
})
|
70
|
-
});
|
71
|
-
}
|
72
|
-
async setRealTarget(t) {
|
73
|
-
this.target = t;
|
74
|
-
for (const n of this.onQueue)
|
75
|
-
this.target.on[n.method](...n.args);
|
76
|
-
for (const n of this.targetQueue)
|
77
|
-
n.resolve(await this.target[n.method](...n.args));
|
78
|
-
}
|
79
|
-
}
|
80
|
-
function On(e, t) {
|
81
|
-
const n = e, r = Dt(), i = vn(), u = hn && n.enableEarlyProxy;
|
82
|
-
if (i && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !u))
|
83
|
-
i.emit(mn, e, t);
|
84
|
-
else {
|
85
|
-
const o = u ? new pn(n, i) : null;
|
86
|
-
(r.__VUE_DEVTOOLS_PLUGINS__ = r.__VUE_DEVTOOLS_PLUGINS__ || []).push({
|
87
|
-
pluginDescriptor: n,
|
88
|
-
setupFn: t,
|
89
|
-
proxy: o
|
90
|
-
}), o && t(o.proxiedTarget);
|
91
|
-
}
|
92
|
-
}
|
93
|
-
/**
|
94
|
-
* vee-validate v4.12.4
|
95
|
-
* (c) 2023 Abdelrahman Awad
|
96
|
-
* @license MIT
|
97
|
-
*/
|
98
|
-
function W(e) {
|
99
|
-
return typeof e == "function";
|
100
|
-
}
|
101
|
-
function xt(e) {
|
102
|
-
return e == null;
|
103
|
-
}
|
104
|
-
const Oe = (e) => e !== null && !!e && typeof e == "object" && !Array.isArray(e);
|
105
|
-
function vt(e) {
|
106
|
-
return Number(e) >= 0;
|
107
|
-
}
|
108
|
-
function Vn(e) {
|
109
|
-
const t = parseFloat(e);
|
110
|
-
return isNaN(t) ? e : t;
|
111
|
-
}
|
112
|
-
function _n(e) {
|
113
|
-
return typeof e == "object" && e !== null;
|
114
|
-
}
|
115
|
-
function Sn(e) {
|
116
|
-
return e == null ? e === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(e);
|
117
|
-
}
|
118
|
-
function Et(e) {
|
119
|
-
if (!_n(e) || Sn(e) !== "[object Object]")
|
120
|
-
return !1;
|
121
|
-
if (Object.getPrototypeOf(e) === null)
|
122
|
-
return !0;
|
123
|
-
let t = e;
|
124
|
-
for (; Object.getPrototypeOf(t) !== null; )
|
125
|
-
t = Object.getPrototypeOf(t);
|
126
|
-
return Object.getPrototypeOf(e) === t;
|
127
|
-
}
|
128
|
-
function Be(e, t) {
|
129
|
-
return Object.keys(t).forEach((n) => {
|
130
|
-
if (Et(t[n]) && Et(e[n])) {
|
131
|
-
e[n] || (e[n] = {}), Be(e[n], t[n]);
|
132
|
-
return;
|
133
|
-
}
|
134
|
-
e[n] = t[n];
|
135
|
-
}), e;
|
136
|
-
}
|
137
|
-
function Te(e) {
|
138
|
-
const t = e.split(".");
|
139
|
-
if (!t.length)
|
140
|
-
return "";
|
141
|
-
let n = String(t[0]);
|
142
|
-
for (let r = 1; r < t.length; r++) {
|
143
|
-
if (vt(t[r])) {
|
144
|
-
n += `[${t[r]}]`;
|
145
|
-
continue;
|
146
|
-
}
|
147
|
-
n += `.${t[r]}`;
|
148
|
-
}
|
149
|
-
return n;
|
150
|
-
}
|
151
|
-
const En = {};
|
152
|
-
function In(e) {
|
153
|
-
return En[e];
|
154
|
-
}
|
155
|
-
function It(e, t, n) {
|
156
|
-
typeof n.value == "object" && (n.value = C(n.value)), !n.enumerable || n.get || n.set || !n.configurable || !n.writable || t === "__proto__" ? Object.defineProperty(e, t, n) : e[t] = n.value;
|
157
|
-
}
|
158
|
-
function C(e) {
|
159
|
-
if (typeof e != "object")
|
160
|
-
return e;
|
161
|
-
var t = 0, n, r, i, u = Object.prototype.toString.call(e);
|
162
|
-
if (u === "[object Object]" ? i = Object.create(e.__proto__ || null) : u === "[object Array]" ? i = Array(e.length) : u === "[object Set]" ? (i = /* @__PURE__ */ new Set(), e.forEach(function(o) {
|
163
|
-
i.add(C(o));
|
164
|
-
})) : u === "[object Map]" ? (i = /* @__PURE__ */ new Map(), e.forEach(function(o, d) {
|
165
|
-
i.set(C(d), C(o));
|
166
|
-
})) : u === "[object Date]" ? i = /* @__PURE__ */ new Date(+e) : u === "[object RegExp]" ? i = new RegExp(e.source, e.flags) : u === "[object DataView]" ? i = new e.constructor(C(e.buffer)) : u === "[object ArrayBuffer]" ? i = e.slice(0) : u.slice(-6) === "Array]" && (i = new e.constructor(e)), i) {
|
167
|
-
for (r = Object.getOwnPropertySymbols(e); t < r.length; t++)
|
168
|
-
It(i, r[t], Object.getOwnPropertyDescriptor(e, r[t]));
|
169
|
-
for (t = 0, r = Object.getOwnPropertyNames(e); t < r.length; t++)
|
170
|
-
Object.hasOwnProperty.call(i, n = r[t]) && i[n] === e[n] || It(i, n, Object.getOwnPropertyDescriptor(e, n));
|
171
|
-
}
|
172
|
-
return i || e;
|
173
|
-
}
|
174
|
-
const Fe = Symbol("vee-validate-form"), qe = Symbol("vee-validate-field-instance"), We = Symbol("Default empty value"), jn = typeof window < "u";
|
175
|
-
function ut(e) {
|
176
|
-
return W(e) && !!e.__locatorRef;
|
177
|
-
}
|
178
|
-
function ce(e) {
|
179
|
-
return !!e && W(e.parse) && e.__type === "VVTypedSchema";
|
180
|
-
}
|
181
|
-
function Ge(e) {
|
182
|
-
return !!e && W(e.validate);
|
183
|
-
}
|
184
|
-
function Re(e) {
|
185
|
-
return e === "checkbox" || e === "radio";
|
186
|
-
}
|
187
|
-
function An(e) {
|
188
|
-
return Oe(e) || Array.isArray(e);
|
189
|
-
}
|
190
|
-
function Cn(e) {
|
191
|
-
return Array.isArray(e) ? e.length === 0 : Oe(e) && Object.keys(e).length === 0;
|
192
|
-
}
|
193
|
-
function Ke(e) {
|
194
|
-
return /^\[.+\]$/i.test(e);
|
195
|
-
}
|
196
|
-
function wn(e) {
|
197
|
-
return Lt(e) && e.multiple;
|
198
|
-
}
|
199
|
-
function Lt(e) {
|
200
|
-
return e.tagName === "SELECT";
|
201
|
-
}
|
202
|
-
function Fn(e, t) {
|
203
|
-
const n = ![!1, null, void 0, 0].includes(t.multiple) && !Number.isNaN(t.multiple);
|
204
|
-
return e === "select" && "multiple" in t && n;
|
205
|
-
}
|
206
|
-
function Pn(e, t) {
|
207
|
-
return !Fn(e, t) && t.type !== "file" && !Re(t.type);
|
208
|
-
}
|
209
|
-
function $t(e) {
|
210
|
-
return ht(e) && e.target && "submit" in e.target;
|
211
|
-
}
|
212
|
-
function ht(e) {
|
213
|
-
return e ? !!(typeof Event < "u" && W(Event) && e instanceof Event || e && e.srcElement) : !1;
|
214
|
-
}
|
215
|
-
function jt(e, t) {
|
216
|
-
return t in e && e[t] !== We;
|
217
|
-
}
|
218
|
-
function q(e, t) {
|
219
|
-
if (e === t)
|
220
|
-
return !0;
|
221
|
-
if (e && t && typeof e == "object" && typeof t == "object") {
|
222
|
-
if (e.constructor !== t.constructor)
|
223
|
-
return !1;
|
224
|
-
var n, r, i;
|
225
|
-
if (Array.isArray(e)) {
|
226
|
-
if (n = e.length, n != t.length)
|
227
|
-
return !1;
|
228
|
-
for (r = n; r-- !== 0; )
|
229
|
-
if (!q(e[r], t[r]))
|
230
|
-
return !1;
|
231
|
-
return !0;
|
232
|
-
}
|
233
|
-
if (e instanceof Map && t instanceof Map) {
|
234
|
-
if (e.size !== t.size)
|
235
|
-
return !1;
|
236
|
-
for (r of e.entries())
|
237
|
-
if (!t.has(r[0]))
|
238
|
-
return !1;
|
239
|
-
for (r of e.entries())
|
240
|
-
if (!q(r[1], t.get(r[0])))
|
241
|
-
return !1;
|
242
|
-
return !0;
|
243
|
-
}
|
244
|
-
if (At(e) && At(t))
|
245
|
-
return !(e.size !== t.size || e.name !== t.name || e.lastModified !== t.lastModified || e.type !== t.type);
|
246
|
-
if (e instanceof Set && t instanceof Set) {
|
247
|
-
if (e.size !== t.size)
|
248
|
-
return !1;
|
249
|
-
for (r of e.entries())
|
250
|
-
if (!t.has(r[0]))
|
251
|
-
return !1;
|
252
|
-
return !0;
|
253
|
-
}
|
254
|
-
if (ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) {
|
255
|
-
if (n = e.length, n != t.length)
|
256
|
-
return !1;
|
257
|
-
for (r = n; r-- !== 0; )
|
258
|
-
if (e[r] !== t[r])
|
259
|
-
return !1;
|
260
|
-
return !0;
|
261
|
-
}
|
262
|
-
if (e.constructor === RegExp)
|
263
|
-
return e.source === t.source && e.flags === t.flags;
|
264
|
-
if (e.valueOf !== Object.prototype.valueOf)
|
265
|
-
return e.valueOf() === t.valueOf();
|
266
|
-
if (e.toString !== Object.prototype.toString)
|
267
|
-
return e.toString() === t.toString();
|
268
|
-
for (i = Object.keys(e), n = i.length, r = n; r-- !== 0; ) {
|
269
|
-
var u = i[r];
|
270
|
-
if (!q(e[u], t[u]))
|
271
|
-
return !1;
|
272
|
-
}
|
273
|
-
return !0;
|
274
|
-
}
|
275
|
-
return e !== e && t !== t;
|
276
|
-
}
|
277
|
-
function At(e) {
|
278
|
-
return jn ? e instanceof File : !1;
|
279
|
-
}
|
280
|
-
function mt(e) {
|
281
|
-
return Ke(e) ? e.replace(/\[|\]/gi, "") : e;
|
282
|
-
}
|
283
|
-
function ee(e, t, n) {
|
284
|
-
return e ? Ke(t) ? e[mt(t)] : (t || "").split(/\.|\[(\d+)\]/).filter(Boolean).reduce((i, u) => An(i) && u in i ? i[u] : n, e) : n;
|
285
|
-
}
|
286
|
-
function ge(e, t, n) {
|
287
|
-
if (Ke(t)) {
|
288
|
-
e[mt(t)] = n;
|
289
|
-
return;
|
290
|
-
}
|
291
|
-
const r = t.split(/\.|\[(\d+)\]/).filter(Boolean);
|
292
|
-
let i = e;
|
293
|
-
for (let u = 0; u < r.length; u++) {
|
294
|
-
if (u === r.length - 1) {
|
295
|
-
i[r[u]] = n;
|
296
|
-
return;
|
297
|
-
}
|
298
|
-
(!(r[u] in i) || xt(i[r[u]])) && (i[r[u]] = vt(r[u + 1]) ? [] : {}), i = i[r[u]];
|
299
|
-
}
|
300
|
-
}
|
301
|
-
function it(e, t) {
|
302
|
-
if (Array.isArray(e) && vt(t)) {
|
303
|
-
e.splice(Number(t), 1);
|
304
|
-
return;
|
305
|
-
}
|
306
|
-
Oe(e) && delete e[t];
|
307
|
-
}
|
308
|
-
function Ct(e, t) {
|
309
|
-
if (Ke(t)) {
|
310
|
-
delete e[mt(t)];
|
311
|
-
return;
|
312
|
-
}
|
313
|
-
const n = t.split(/\.|\[(\d+)\]/).filter(Boolean);
|
314
|
-
let r = e;
|
315
|
-
for (let u = 0; u < n.length; u++) {
|
316
|
-
if (u === n.length - 1) {
|
317
|
-
it(r, n[u]);
|
318
|
-
break;
|
319
|
-
}
|
320
|
-
if (!(n[u] in r) || xt(r[n[u]]))
|
321
|
-
break;
|
322
|
-
r = r[n[u]];
|
323
|
-
}
|
324
|
-
const i = n.map((u, o) => ee(e, n.slice(0, o).join(".")));
|
325
|
-
for (let u = i.length - 1; u >= 0; u--)
|
326
|
-
if (Cn(i[u])) {
|
327
|
-
if (u === 0) {
|
328
|
-
it(e, n[0]);
|
329
|
-
continue;
|
330
|
-
}
|
331
|
-
it(i[u - 1], n[u - 1]);
|
332
|
-
}
|
333
|
-
}
|
334
|
-
function ie(e) {
|
335
|
-
return Object.keys(e);
|
336
|
-
}
|
337
|
-
function Qe(e, t = void 0) {
|
338
|
-
const n = Ee();
|
339
|
-
return n?.provides[e] || Ce(e, t);
|
340
|
-
}
|
341
|
-
function kn(e) {
|
342
|
-
Rt(`[vee-validate]: ${e}`);
|
343
|
-
}
|
344
|
-
function wt(e, t, n) {
|
345
|
-
if (Array.isArray(e)) {
|
346
|
-
const r = [...e], i = r.findIndex((u) => q(u, t));
|
347
|
-
return i >= 0 ? r.splice(i, 1) : r.push(t), r;
|
348
|
-
}
|
349
|
-
return q(e, t) ? n : t;
|
350
|
-
}
|
351
|
-
function Tn(e, t) {
|
352
|
-
let n, r;
|
353
|
-
return function(...i) {
|
354
|
-
const u = this;
|
355
|
-
return n || (n = !0, setTimeout(() => n = !1, t), r = e.apply(u, i)), r;
|
356
|
-
};
|
357
|
-
}
|
358
|
-
function Ft(e, t = 0) {
|
359
|
-
let n = null, r = [];
|
360
|
-
return function(...i) {
|
361
|
-
return n && clearTimeout(n), n = setTimeout(() => {
|
362
|
-
const u = e(...i);
|
363
|
-
r.forEach((o) => o(u)), r = [];
|
364
|
-
}, t), new Promise((u) => r.push(u));
|
365
|
-
};
|
366
|
-
}
|
367
|
-
function Nn(e, t) {
|
368
|
-
return Oe(t) && t.number ? Vn(e) : e;
|
369
|
-
}
|
370
|
-
function ot(e, t) {
|
371
|
-
let n;
|
372
|
-
return async function(...i) {
|
373
|
-
const u = e(...i);
|
374
|
-
n = u;
|
375
|
-
const o = await u;
|
376
|
-
return u !== n ? o : (n = void 0, t(o, i));
|
377
|
-
};
|
378
|
-
}
|
379
|
-
function st(e) {
|
380
|
-
return Array.isArray(e) ? e : e ? [e] : [];
|
381
|
-
}
|
382
|
-
function gt(e) {
|
383
|
-
const t = Qe(Fe), n = e ? S(() => t?.getPathState(E(e))) : void 0, r = e ? void 0 : Ce(qe);
|
384
|
-
return !r && !n?.value && process.env.NODE_ENV !== "production" && kn(`field with name ${E(e)} was not found`), n || r;
|
385
|
-
}
|
386
|
-
function De(e, t) {
|
387
|
-
const n = {};
|
388
|
-
for (const r in e)
|
389
|
-
t.includes(r) || (n[r] = e[r]);
|
390
|
-
return n;
|
391
|
-
}
|
392
|
-
function Mn(e) {
|
393
|
-
let t = null, n = [];
|
394
|
-
return function(...r) {
|
395
|
-
const i = se(() => {
|
396
|
-
if (t !== i)
|
397
|
-
return;
|
398
|
-
const u = e(...r);
|
399
|
-
n.forEach((o) => o(u)), n = [], t = null;
|
400
|
-
});
|
401
|
-
return t = i, new Promise((u) => n.push(u));
|
402
|
-
};
|
403
|
-
}
|
404
|
-
function yt(e, t, n) {
|
405
|
-
return t.slots.default ? typeof e == "string" || !e ? t.slots.default(n()) : {
|
406
|
-
default: () => {
|
407
|
-
var r, i;
|
408
|
-
return (i = (r = t.slots).default) === null || i === void 0 ? void 0 : i.call(r, n());
|
409
|
-
}
|
410
|
-
} : t.slots.default;
|
411
|
-
}
|
412
|
-
function lt(e) {
|
413
|
-
if (zt(e))
|
414
|
-
return e._value;
|
415
|
-
}
|
416
|
-
function zt(e) {
|
417
|
-
return "_value" in e;
|
418
|
-
}
|
419
|
-
function Bn(e) {
|
420
|
-
return e.type === "number" || e.type === "range" ? Number.isNaN(e.valueAsNumber) ? e.value : e.valueAsNumber : e.value;
|
421
|
-
}
|
422
|
-
function He(e) {
|
423
|
-
if (!ht(e))
|
424
|
-
return e;
|
425
|
-
const t = e.target;
|
426
|
-
if (Re(t.type) && zt(t))
|
427
|
-
return lt(t);
|
428
|
-
if (t.type === "file" && t.files) {
|
429
|
-
const n = Array.from(t.files);
|
430
|
-
return t.multiple ? n : n[0];
|
431
|
-
}
|
432
|
-
if (wn(t))
|
433
|
-
return Array.from(t.options).filter((n) => n.selected && !n.disabled).map(lt);
|
434
|
-
if (Lt(t)) {
|
435
|
-
const n = Array.from(t.options).find((r) => r.selected);
|
436
|
-
return n ? lt(n) : t.value;
|
437
|
-
}
|
438
|
-
return Bn(t);
|
439
|
-
}
|
440
|
-
function Wt(e) {
|
441
|
-
const t = {};
|
442
|
-
return Object.defineProperty(t, "_$$isNormalized", {
|
443
|
-
value: !0,
|
444
|
-
writable: !1,
|
445
|
-
enumerable: !1,
|
446
|
-
configurable: !1
|
447
|
-
}), e ? Oe(e) && e._$$isNormalized ? e : Oe(e) ? Object.keys(e).reduce((n, r) => {
|
448
|
-
const i = Rn(e[r]);
|
449
|
-
return e[r] !== !1 && (n[r] = Pt(i)), n;
|
450
|
-
}, t) : typeof e != "string" ? t : e.split("|").reduce((n, r) => {
|
451
|
-
const i = Un(r);
|
452
|
-
return i.name && (n[i.name] = Pt(i.params)), n;
|
453
|
-
}, t) : t;
|
454
|
-
}
|
455
|
-
function Rn(e) {
|
456
|
-
return e === !0 ? [] : Array.isArray(e) || Oe(e) ? e : [e];
|
457
|
-
}
|
458
|
-
function Pt(e) {
|
459
|
-
const t = (n) => typeof n == "string" && n[0] === "@" ? Dn(n.slice(1)) : n;
|
460
|
-
return Array.isArray(e) ? e.map(t) : e instanceof RegExp ? [e] : Object.keys(e).reduce((n, r) => (n[r] = t(e[r]), n), {});
|
461
|
-
}
|
462
|
-
const Un = (e) => {
|
463
|
-
let t = [];
|
464
|
-
const n = e.split(":")[0];
|
465
|
-
return e.includes(":") && (t = e.split(":").slice(1).join(":").split(",")), { name: n, params: t };
|
466
|
-
};
|
467
|
-
function Dn(e) {
|
468
|
-
const t = (n) => ee(n, e) || n[e];
|
469
|
-
return t.__locatorRef = e, t;
|
470
|
-
}
|
471
|
-
function xn(e) {
|
472
|
-
return Array.isArray(e) ? e.filter(ut) : ie(e).filter((t) => ut(e[t])).map((t) => e[t]);
|
473
|
-
}
|
474
|
-
const Ln = {
|
475
|
-
generateMessage: ({ field: e }) => `${e} is not valid.`,
|
476
|
-
bails: !0,
|
477
|
-
validateOnBlur: !0,
|
478
|
-
validateOnChange: !0,
|
479
|
-
validateOnInput: !1,
|
480
|
-
validateOnModelUpdate: !0
|
481
|
-
};
|
482
|
-
let $n = Object.assign({}, Ln);
|
483
|
-
const Se = () => $n;
|
484
|
-
async function Gt(e, t, n = {}) {
|
485
|
-
const r = n?.bails, i = {
|
486
|
-
name: n?.name || "{field}",
|
487
|
-
rules: t,
|
488
|
-
label: n?.label,
|
489
|
-
bails: r ?? !0,
|
490
|
-
formData: n?.values || {}
|
491
|
-
}, o = (await zn(i, e)).errors;
|
492
|
-
return {
|
493
|
-
errors: o,
|
494
|
-
valid: !o.length
|
495
|
-
};
|
496
|
-
}
|
497
|
-
async function zn(e, t) {
|
498
|
-
if (ce(e.rules) || Ge(e.rules))
|
499
|
-
return Gn(t, e.rules);
|
500
|
-
if (W(e.rules) || Array.isArray(e.rules)) {
|
501
|
-
const o = {
|
502
|
-
field: e.label || e.name,
|
503
|
-
name: e.name,
|
504
|
-
label: e.label,
|
505
|
-
form: e.formData,
|
506
|
-
value: t
|
507
|
-
}, d = Array.isArray(e.rules) ? e.rules : [e.rules], c = d.length, f = [];
|
508
|
-
for (let g = 0; g < c; g++) {
|
509
|
-
const y = d[g], I = await y(t, o);
|
510
|
-
if (!(typeof I != "string" && !Array.isArray(I) && I)) {
|
511
|
-
if (Array.isArray(I))
|
512
|
-
f.push(...I);
|
513
|
-
else {
|
514
|
-
const P = typeof I == "string" ? I : qt(o);
|
515
|
-
f.push(P);
|
516
|
-
}
|
517
|
-
if (e.bails)
|
518
|
-
return {
|
519
|
-
errors: f
|
520
|
-
};
|
521
|
-
}
|
522
|
-
}
|
523
|
-
return {
|
524
|
-
errors: f
|
525
|
-
};
|
526
|
-
}
|
527
|
-
const n = Object.assign(Object.assign({}, e), { rules: Wt(e.rules) }), r = [], i = Object.keys(n.rules), u = i.length;
|
528
|
-
for (let o = 0; o < u; o++) {
|
529
|
-
const d = i[o], c = await Hn(n, t, {
|
530
|
-
name: d,
|
531
|
-
params: n.rules[d]
|
532
|
-
});
|
533
|
-
if (c.error && (r.push(c.error), e.bails))
|
534
|
-
return {
|
535
|
-
errors: r
|
536
|
-
};
|
537
|
-
}
|
538
|
-
return {
|
539
|
-
errors: r
|
540
|
-
};
|
541
|
-
}
|
542
|
-
function Wn(e) {
|
543
|
-
return !!e && e.name === "ValidationError";
|
544
|
-
}
|
545
|
-
function Ht(e) {
|
546
|
-
return {
|
547
|
-
__type: "VVTypedSchema",
|
548
|
-
async parse(n) {
|
549
|
-
var r;
|
550
|
-
try {
|
551
|
-
return {
|
552
|
-
output: await e.validate(n, { abortEarly: !1 }),
|
553
|
-
errors: []
|
554
|
-
};
|
555
|
-
} catch (i) {
|
556
|
-
if (!Wn(i))
|
557
|
-
throw i;
|
558
|
-
if (!(!((r = i.inner) === null || r === void 0) && r.length) && i.errors.length)
|
559
|
-
return { errors: [{ path: i.path, errors: i.errors }] };
|
560
|
-
const u = i.inner.reduce((o, d) => {
|
561
|
-
const c = d.path || "";
|
562
|
-
return o[c] || (o[c] = { errors: [], path: c }), o[c].errors.push(...d.errors), o;
|
563
|
-
}, {});
|
564
|
-
return { errors: Object.values(u) };
|
565
|
-
}
|
566
|
-
}
|
567
|
-
};
|
568
|
-
}
|
569
|
-
async function Gn(e, t) {
|
570
|
-
const r = await (ce(t) ? t : Ht(t)).parse(e), i = [];
|
571
|
-
for (const u of r.errors)
|
572
|
-
u.errors.length && i.push(...u.errors);
|
573
|
-
return {
|
574
|
-
errors: i
|
575
|
-
};
|
576
|
-
}
|
577
|
-
async function Hn(e, t, n) {
|
578
|
-
const r = In(n.name);
|
579
|
-
if (!r)
|
580
|
-
throw new Error(`No such validator '${n.name}' exists.`);
|
581
|
-
const i = qn(n.params, e.formData), u = {
|
582
|
-
field: e.label || e.name,
|
583
|
-
name: e.name,
|
584
|
-
label: e.label,
|
585
|
-
value: t,
|
586
|
-
form: e.formData,
|
587
|
-
rule: Object.assign(Object.assign({}, n), { params: i })
|
588
|
-
}, o = await r(t, i, u);
|
589
|
-
return typeof o == "string" ? {
|
590
|
-
error: o
|
591
|
-
} : {
|
592
|
-
error: o ? void 0 : qt(u)
|
593
|
-
};
|
594
|
-
}
|
595
|
-
function qt(e) {
|
596
|
-
const t = Se().generateMessage;
|
597
|
-
return t ? t(e) : "Field is invalid";
|
598
|
-
}
|
599
|
-
function qn(e, t) {
|
600
|
-
const n = (r) => ut(r) ? r(t) : r;
|
601
|
-
return Array.isArray(e) ? e.map(n) : Object.keys(e).reduce((r, i) => (r[i] = n(e[i]), r), {});
|
602
|
-
}
|
603
|
-
async function Kn(e, t) {
|
604
|
-
const r = await (ce(e) ? e : Ht(e)).parse(C(t)), i = {}, u = {};
|
605
|
-
for (const o of r.errors) {
|
606
|
-
const d = o.errors, c = (o.path || "").replace(/\["(\d+)"\]/g, (f, g) => `[${g}]`);
|
607
|
-
i[c] = { valid: !d.length, errors: d }, d.length && (u[c] = d[0]);
|
608
|
-
}
|
609
|
-
return {
|
610
|
-
valid: !r.errors.length,
|
611
|
-
results: i,
|
612
|
-
errors: u,
|
613
|
-
values: r.value
|
614
|
-
};
|
615
|
-
}
|
616
|
-
async function Qn(e, t, n) {
|
617
|
-
const i = ie(e).map(async (f) => {
|
618
|
-
var g, y, I;
|
619
|
-
const O = (g = n?.names) === null || g === void 0 ? void 0 : g[f], P = await Gt(ee(t, f), e[f], {
|
620
|
-
name: O?.name || f,
|
621
|
-
label: O?.label,
|
622
|
-
values: t,
|
623
|
-
bails: (I = (y = n?.bailsMap) === null || y === void 0 ? void 0 : y[f]) !== null && I !== void 0 ? I : !0
|
624
|
-
});
|
625
|
-
return Object.assign(Object.assign({}, P), { path: f });
|
626
|
-
});
|
627
|
-
let u = !0;
|
628
|
-
const o = await Promise.all(i), d = {}, c = {};
|
629
|
-
for (const f of o)
|
630
|
-
d[f.path] = {
|
631
|
-
valid: f.valid,
|
632
|
-
errors: f.errors
|
633
|
-
}, f.valid || (u = !1, c[f.path] = f.errors[0]);
|
634
|
-
return {
|
635
|
-
valid: u,
|
636
|
-
results: d,
|
637
|
-
errors: c
|
638
|
-
};
|
639
|
-
}
|
640
|
-
let kt = 0;
|
641
|
-
function Jn(e, t) {
|
642
|
-
const { value: n, initialValue: r, setInitialValue: i } = Yn(e, t.modelValue, t.form);
|
643
|
-
if (!t.form) {
|
644
|
-
let I = function(O) {
|
645
|
-
var P;
|
646
|
-
"value" in O && (n.value = O.value), "errors" in O && f(O.errors), "touched" in O && (y.touched = (P = O.touched) !== null && P !== void 0 ? P : y.touched), "initialValue" in O && i(O.initialValue);
|
647
|
-
};
|
648
|
-
const { errors: c, setErrors: f } = er(), g = kt >= Number.MAX_SAFE_INTEGER ? 0 : ++kt, y = Zn(n, r, c, t.schema);
|
649
|
-
return {
|
650
|
-
id: g,
|
651
|
-
path: e,
|
652
|
-
value: n,
|
653
|
-
initialValue: r,
|
654
|
-
meta: y,
|
655
|
-
flags: { pendingUnmount: { [g]: !1 }, pendingReset: !1 },
|
656
|
-
errors: c,
|
657
|
-
setState: I
|
658
|
-
};
|
659
|
-
}
|
660
|
-
const u = t.form.createPathState(e, {
|
661
|
-
bails: t.bails,
|
662
|
-
label: t.label,
|
663
|
-
type: t.type,
|
664
|
-
validate: t.validate,
|
665
|
-
schema: t.schema
|
666
|
-
}), o = S(() => u.errors);
|
667
|
-
function d(c) {
|
668
|
-
var f, g, y;
|
669
|
-
"value" in c && (n.value = c.value), "errors" in c && ((f = t.form) === null || f === void 0 || f.setFieldError(j(e), c.errors)), "touched" in c && ((g = t.form) === null || g === void 0 || g.setFieldTouched(j(e), (y = c.touched) !== null && y !== void 0 ? y : !1)), "initialValue" in c && i(c.initialValue);
|
670
|
-
}
|
671
|
-
return {
|
672
|
-
id: Array.isArray(u.id) ? u.id[u.id.length - 1] : u.id,
|
673
|
-
path: e,
|
674
|
-
value: n,
|
675
|
-
errors: o,
|
676
|
-
meta: u,
|
677
|
-
initialValue: r,
|
678
|
-
flags: u.__flags,
|
679
|
-
setState: d
|
680
|
-
};
|
681
|
-
}
|
682
|
-
function Yn(e, t, n) {
|
683
|
-
const r = de(j(t));
|
684
|
-
function i() {
|
685
|
-
return n ? ee(n.initialValues.value, j(e), j(r)) : j(r);
|
686
|
-
}
|
687
|
-
function u(f) {
|
688
|
-
if (!n) {
|
689
|
-
r.value = f;
|
690
|
-
return;
|
691
|
-
}
|
692
|
-
n.setFieldInitialValue(j(e), f, !0);
|
693
|
-
}
|
694
|
-
const o = S(i);
|
695
|
-
if (!n)
|
696
|
-
return {
|
697
|
-
value: de(i()),
|
698
|
-
initialValue: o,
|
699
|
-
setInitialValue: u
|
700
|
-
};
|
701
|
-
const d = Xn(t, n, o, e);
|
702
|
-
return n.stageInitialValue(j(e), d, !0), {
|
703
|
-
value: S({
|
704
|
-
get() {
|
705
|
-
return ee(n.values, j(e));
|
706
|
-
},
|
707
|
-
set(f) {
|
708
|
-
n.setFieldValue(j(e), f, !1);
|
709
|
-
}
|
710
|
-
}),
|
711
|
-
initialValue: o,
|
712
|
-
setInitialValue: u
|
713
|
-
};
|
714
|
-
}
|
715
|
-
function Xn(e, t, n, r) {
|
716
|
-
return $e(e) ? j(e) : e !== void 0 ? e : ee(t.values, j(r), j(n));
|
717
|
-
}
|
718
|
-
function Zn(e, t, n, r) {
|
719
|
-
var i, u;
|
720
|
-
const o = (u = (i = r?.describe) === null || i === void 0 ? void 0 : i.call(r).required) !== null && u !== void 0 ? u : !1, d = ze({
|
721
|
-
touched: !1,
|
722
|
-
pending: !1,
|
723
|
-
valid: !0,
|
724
|
-
required: o,
|
725
|
-
validated: !!j(n).length,
|
726
|
-
initialValue: S(() => j(t)),
|
727
|
-
dirty: S(() => !q(j(e), j(t)))
|
728
|
-
});
|
729
|
-
return be(n, (c) => {
|
730
|
-
d.valid = !c.length;
|
731
|
-
}, {
|
732
|
-
immediate: !0,
|
733
|
-
flush: "sync"
|
734
|
-
}), d;
|
735
|
-
}
|
736
|
-
function er() {
|
737
|
-
const e = de([]);
|
738
|
-
return {
|
739
|
-
errors: e,
|
740
|
-
setErrors: (t) => {
|
741
|
-
e.value = st(t);
|
742
|
-
}
|
743
|
-
};
|
744
|
-
}
|
745
|
-
function Kt(e) {
|
746
|
-
process.env.NODE_ENV !== "production" && On({
|
747
|
-
id: "vee-validate-devtools-plugin",
|
748
|
-
label: "VeeValidate Plugin",
|
749
|
-
packageName: "vee-validate",
|
750
|
-
homepage: "https://vee-validate.logaretm.com/v4",
|
751
|
-
app: e,
|
752
|
-
logo: "https://vee-validate.logaretm.com/v4/logo.png"
|
753
|
-
}, rr);
|
754
|
-
}
|
755
|
-
const Ne = {}, Me = {};
|
756
|
-
let ye;
|
757
|
-
const we = Tn(() => {
|
758
|
-
setTimeout(async () => {
|
759
|
-
await se(), ye?.sendInspectorState(Ae), ye?.sendInspectorTree(Ae);
|
760
|
-
}, 100);
|
761
|
-
}, 100);
|
762
|
-
function tr(e) {
|
763
|
-
const t = Ee();
|
764
|
-
if (!ye) {
|
765
|
-
const n = t?.appContext.app;
|
766
|
-
if (!n)
|
767
|
-
return;
|
768
|
-
Kt(n);
|
769
|
-
}
|
770
|
-
Ne[e.formId] = Object.assign({}, e), Ne[e.formId]._vm = t, Ut(() => {
|
771
|
-
delete Ne[e.formId], we();
|
772
|
-
}), we();
|
773
|
-
}
|
774
|
-
function nr(e) {
|
775
|
-
const t = Ee();
|
776
|
-
if (!ye) {
|
777
|
-
const n = t?.appContext.app;
|
778
|
-
if (!n)
|
779
|
-
return;
|
780
|
-
Kt(n);
|
781
|
-
}
|
782
|
-
Me[e.id] = Object.assign({}, e), Me[e.id]._vm = t, Ut(() => {
|
783
|
-
delete Me[e.id], we();
|
784
|
-
}), we();
|
785
|
-
}
|
786
|
-
const Ae = "vee-validate-inspector", Z = {
|
787
|
-
error: 12405579,
|
788
|
-
success: 448379,
|
789
|
-
unknown: 5522283,
|
790
|
-
white: 16777215,
|
791
|
-
black: 0,
|
792
|
-
blue: 218007,
|
793
|
-
purple: 12157168,
|
794
|
-
orange: 16099682,
|
795
|
-
gray: 12304330
|
796
|
-
};
|
797
|
-
let R = null;
|
798
|
-
function rr(e) {
|
799
|
-
ye = e, e.addInspector({
|
800
|
-
id: Ae,
|
801
|
-
icon: "rule",
|
802
|
-
label: "vee-validate",
|
803
|
-
noSelectionText: "Select a vee-validate node to inspect",
|
804
|
-
actions: [
|
805
|
-
{
|
806
|
-
icon: "done_outline",
|
807
|
-
tooltip: "Validate selected item",
|
808
|
-
action: async () => {
|
809
|
-
if (!R) {
|
810
|
-
console.error("There is not a valid selected vee-validate node or component");
|
811
|
-
return;
|
812
|
-
}
|
813
|
-
if (R.type === "field") {
|
814
|
-
await R.field.validate();
|
815
|
-
return;
|
816
|
-
}
|
817
|
-
if (R.type === "form") {
|
818
|
-
await R.form.validate();
|
819
|
-
return;
|
820
|
-
}
|
821
|
-
R.type === "pathState" && await R.form.validateField(R.state.path);
|
822
|
-
}
|
823
|
-
},
|
824
|
-
{
|
825
|
-
icon: "delete_sweep",
|
826
|
-
tooltip: "Clear validation state of the selected item",
|
827
|
-
action: () => {
|
828
|
-
if (!R) {
|
829
|
-
console.error("There is not a valid selected vee-validate node or component");
|
830
|
-
return;
|
831
|
-
}
|
832
|
-
if (R.type === "field") {
|
833
|
-
R.field.resetField();
|
834
|
-
return;
|
835
|
-
}
|
836
|
-
R.type === "form" && R.form.resetForm(), R.type === "pathState" && R.form.resetField(R.state.path);
|
837
|
-
}
|
838
|
-
}
|
839
|
-
]
|
840
|
-
}), e.on.getInspectorTree((t) => {
|
841
|
-
if (t.inspectorId !== Ae)
|
842
|
-
return;
|
843
|
-
const n = Object.values(Ne), r = Object.values(Me);
|
844
|
-
t.rootNodes = [
|
845
|
-
...n.map(ir),
|
846
|
-
...r.map((i) => ar(i))
|
847
|
-
];
|
848
|
-
}), e.on.getInspectorState((t, n) => {
|
849
|
-
if (t.inspectorId !== Ae || n.currentTab !== `custom-inspector:${Ae}`)
|
850
|
-
return;
|
851
|
-
const { form: r, field: i, state: u, type: o } = ur(t.nodeId);
|
852
|
-
if (r && o === "form") {
|
853
|
-
t.state = or(r), R = { type: "form", form: r };
|
854
|
-
return;
|
855
|
-
}
|
856
|
-
if (u && o === "pathState" && r) {
|
857
|
-
t.state = Tt(u), R = { type: "pathState", state: u, form: r };
|
858
|
-
return;
|
859
|
-
}
|
860
|
-
if (i && o === "field") {
|
861
|
-
t.state = Tt({
|
862
|
-
errors: i.errors.value,
|
863
|
-
dirty: i.meta.dirty,
|
864
|
-
valid: i.meta.valid,
|
865
|
-
touched: i.meta.touched,
|
866
|
-
value: i.value.value,
|
867
|
-
initialValue: i.meta.initialValue
|
868
|
-
}), R = { field: i, type: "field" };
|
869
|
-
return;
|
870
|
-
}
|
871
|
-
R = null;
|
872
|
-
});
|
873
|
-
}
|
874
|
-
function ir(e) {
|
875
|
-
const { textColor: t, bgColor: n } = Jt(e.meta.value.valid), r = {};
|
876
|
-
Object.values(e.getAllPathStates()).forEach((o) => {
|
877
|
-
ge(r, j(o.path), lr(o, e));
|
878
|
-
});
|
879
|
-
function i(o, d = []) {
|
880
|
-
const c = [...d].pop();
|
881
|
-
return "id" in o ? Object.assign(Object.assign({}, o), { label: c || o.label }) : Oe(o) ? {
|
882
|
-
id: `${d.join(".")}`,
|
883
|
-
label: c || "",
|
884
|
-
children: Object.keys(o).map((f) => i(o[f], [...d, f]))
|
885
|
-
} : Array.isArray(o) ? {
|
886
|
-
id: `${d.join(".")}`,
|
887
|
-
label: `${c}[]`,
|
888
|
-
children: o.map((f, g) => i(f, [...d, String(g)]))
|
889
|
-
} : { id: "", label: "", children: [] };
|
890
|
-
}
|
891
|
-
const { children: u } = i(r);
|
892
|
-
return {
|
893
|
-
id: bt(e),
|
894
|
-
label: "Form",
|
895
|
-
children: u,
|
896
|
-
tags: [
|
897
|
-
{
|
898
|
-
label: "Form",
|
899
|
-
textColor: t,
|
900
|
-
backgroundColor: n
|
901
|
-
},
|
902
|
-
{
|
903
|
-
label: `${e.getAllPathStates().length} fields`,
|
904
|
-
textColor: Z.white,
|
905
|
-
backgroundColor: Z.unknown
|
906
|
-
}
|
907
|
-
]
|
908
|
-
};
|
909
|
-
}
|
910
|
-
function lr(e, t) {
|
911
|
-
return {
|
912
|
-
id: bt(t, e),
|
913
|
-
label: j(e.path),
|
914
|
-
tags: Qt(e.multiple, e.fieldsCount, e.type, e.valid, t)
|
915
|
-
};
|
916
|
-
}
|
917
|
-
function ar(e, t) {
|
918
|
-
return {
|
919
|
-
id: bt(t, e),
|
920
|
-
label: j(e.name),
|
921
|
-
tags: Qt(!1, 1, e.type, e.meta.valid, t)
|
922
|
-
};
|
923
|
-
}
|
924
|
-
function Qt(e, t, n, r, i) {
|
925
|
-
const { textColor: u, bgColor: o } = Jt(r);
|
926
|
-
return [
|
927
|
-
e ? void 0 : {
|
928
|
-
label: "Field",
|
929
|
-
textColor: u,
|
930
|
-
backgroundColor: o
|
931
|
-
},
|
932
|
-
i ? void 0 : {
|
933
|
-
label: "Standalone",
|
934
|
-
textColor: Z.black,
|
935
|
-
backgroundColor: Z.gray
|
936
|
-
},
|
937
|
-
n === "checkbox" ? {
|
938
|
-
label: "Checkbox",
|
939
|
-
textColor: Z.white,
|
940
|
-
backgroundColor: Z.blue
|
941
|
-
} : void 0,
|
942
|
-
n === "radio" ? {
|
943
|
-
label: "Radio",
|
944
|
-
textColor: Z.white,
|
945
|
-
backgroundColor: Z.purple
|
946
|
-
} : void 0,
|
947
|
-
e ? {
|
948
|
-
label: "Multiple",
|
949
|
-
textColor: Z.black,
|
950
|
-
backgroundColor: Z.orange
|
951
|
-
} : void 0
|
952
|
-
].filter(Boolean);
|
953
|
-
}
|
954
|
-
function bt(e, t) {
|
955
|
-
const n = t ? "path" in t ? "pathState" : "field" : "form", r = t ? "path" in t ? t?.path : j(t?.name) : "", i = { f: e?.formId, ff: r, type: n };
|
956
|
-
return btoa(encodeURIComponent(JSON.stringify(i)));
|
957
|
-
}
|
958
|
-
function ur(e) {
|
959
|
-
try {
|
960
|
-
const t = JSON.parse(decodeURIComponent(atob(e))), n = Ne[t.f];
|
961
|
-
if (!n && t.ff) {
|
962
|
-
const i = Me[t.ff];
|
963
|
-
return i ? {
|
964
|
-
type: t.type,
|
965
|
-
field: i
|
966
|
-
} : {};
|
967
|
-
}
|
968
|
-
if (!n)
|
969
|
-
return {};
|
970
|
-
const r = n.getPathState(t.ff);
|
971
|
-
return {
|
972
|
-
type: t.type,
|
973
|
-
form: n,
|
974
|
-
state: r
|
975
|
-
};
|
976
|
-
} catch {
|
977
|
-
}
|
978
|
-
return {};
|
979
|
-
}
|
980
|
-
function Tt(e) {
|
981
|
-
return {
|
982
|
-
"Field state": [
|
983
|
-
{ key: "errors", value: e.errors },
|
984
|
-
{
|
985
|
-
key: "initialValue",
|
986
|
-
value: e.initialValue
|
987
|
-
},
|
988
|
-
{
|
989
|
-
key: "currentValue",
|
990
|
-
value: e.value
|
991
|
-
},
|
992
|
-
{
|
993
|
-
key: "touched",
|
994
|
-
value: e.touched
|
995
|
-
},
|
996
|
-
{
|
997
|
-
key: "dirty",
|
998
|
-
value: e.dirty
|
999
|
-
},
|
1000
|
-
{
|
1001
|
-
key: "valid",
|
1002
|
-
value: e.valid
|
1003
|
-
}
|
1004
|
-
]
|
1005
|
-
};
|
1006
|
-
}
|
1007
|
-
function or(e) {
|
1008
|
-
const { errorBag: t, meta: n, values: r, isSubmitting: i, isValidating: u, submitCount: o } = e;
|
1009
|
-
return {
|
1010
|
-
"Form state": [
|
1011
|
-
{
|
1012
|
-
key: "submitCount",
|
1013
|
-
value: o.value
|
1014
|
-
},
|
1015
|
-
{
|
1016
|
-
key: "isSubmitting",
|
1017
|
-
value: i.value
|
1018
|
-
},
|
1019
|
-
{
|
1020
|
-
key: "isValidating",
|
1021
|
-
value: u.value
|
1022
|
-
},
|
1023
|
-
{
|
1024
|
-
key: "touched",
|
1025
|
-
value: n.value.touched
|
1026
|
-
},
|
1027
|
-
{
|
1028
|
-
key: "dirty",
|
1029
|
-
value: n.value.dirty
|
1030
|
-
},
|
1031
|
-
{
|
1032
|
-
key: "valid",
|
1033
|
-
value: n.value.valid
|
1034
|
-
},
|
1035
|
-
{
|
1036
|
-
key: "initialValues",
|
1037
|
-
value: n.value.initialValues
|
1038
|
-
},
|
1039
|
-
{
|
1040
|
-
key: "currentValues",
|
1041
|
-
value: r
|
1042
|
-
},
|
1043
|
-
{
|
1044
|
-
key: "errors",
|
1045
|
-
value: ie(t.value).reduce((d, c) => {
|
1046
|
-
var f;
|
1047
|
-
const g = (f = t.value[c]) === null || f === void 0 ? void 0 : f[0];
|
1048
|
-
return g && (d[c] = g), d;
|
1049
|
-
}, {})
|
1050
|
-
}
|
1051
|
-
]
|
1052
|
-
};
|
1053
|
-
}
|
1054
|
-
function Jt(e) {
|
1055
|
-
return {
|
1056
|
-
bgColor: e ? Z.success : Z.error,
|
1057
|
-
textColor: e ? Z.black : Z.white
|
1058
|
-
};
|
1059
|
-
}
|
1060
|
-
function sr(e, t, n) {
|
1061
|
-
return Re(n?.type) ? cr(e, t, n) : Yt(e, t, n);
|
1062
|
-
}
|
1063
|
-
function Yt(e, t, n) {
|
1064
|
-
const { initialValue: r, validateOnMount: i, bails: u, type: o, checkedValue: d, label: c, validateOnValueUpdate: f, uncheckedValue: g, controlled: y, keepValueOnUnmount: I, syncVModel: O, form: P } = dr(n), K = y ? Qe(Fe) : void 0, b = P || K, $ = S(() => Te(E(e))), D = S(() => {
|
1065
|
-
if (E(b?.schema))
|
1066
|
-
return;
|
1067
|
-
const V = j(t);
|
1068
|
-
return Ge(V) || ce(V) || W(V) || Array.isArray(V) ? V : Wt(V);
|
1069
|
-
}), { id: G, value: Q, initialValue: te, meta: T, setState: ue, errors: N, flags: x } = Jn($, {
|
1070
|
-
modelValue: r,
|
1071
|
-
form: b,
|
1072
|
-
bails: u,
|
1073
|
-
label: c,
|
1074
|
-
type: o,
|
1075
|
-
validate: D.value ? re : void 0,
|
1076
|
-
schema: ce(t) ? t : void 0
|
1077
|
-
}), U = S(() => N.value[0]);
|
1078
|
-
O && fr({
|
1079
|
-
value: Q,
|
1080
|
-
prop: O,
|
1081
|
-
handleChange: _,
|
1082
|
-
shouldValidate: () => f && !x.pendingReset
|
1083
|
-
});
|
1084
|
-
const fe = (h, V = !1) => {
|
1085
|
-
T.touched = !0, V && ne();
|
1086
|
-
};
|
1087
|
-
async function he(h) {
|
1088
|
-
var V, F;
|
1089
|
-
if (b?.validateSchema) {
|
1090
|
-
const { results: w } = await b.validateSchema(h);
|
1091
|
-
return (V = w[E($)]) !== null && V !== void 0 ? V : { valid: !0, errors: [] };
|
1092
|
-
}
|
1093
|
-
return D.value ? Gt(Q.value, D.value, {
|
1094
|
-
name: E($),
|
1095
|
-
label: E(c),
|
1096
|
-
values: (F = b?.values) !== null && F !== void 0 ? F : {},
|
1097
|
-
bails: u
|
1098
|
-
}) : { valid: !0, errors: [] };
|
1099
|
-
}
|
1100
|
-
const ne = ot(async () => (T.pending = !0, T.validated = !0, he("validated-only")), (h) => (x.pendingUnmount[L.id] || (ue({ errors: h.errors }), T.pending = !1, T.valid = h.valid), h)), J = ot(async () => he("silent"), (h) => (T.valid = h.valid, h));
|
1101
|
-
function re(h) {
|
1102
|
-
return h?.mode === "silent" ? J() : ne();
|
1103
|
-
}
|
1104
|
-
function _(h, V = !0) {
|
1105
|
-
const F = He(h);
|
1106
|
-
Pe(F, V);
|
1107
|
-
}
|
1108
|
-
Mt(() => {
|
1109
|
-
if (i)
|
1110
|
-
return ne();
|
1111
|
-
(!b || !b.validateSchema) && J();
|
1112
|
-
});
|
1113
|
-
function Y(h) {
|
1114
|
-
T.touched = h;
|
1115
|
-
}
|
1116
|
-
function le(h) {
|
1117
|
-
var V;
|
1118
|
-
const F = h && "value" in h ? h.value : te.value;
|
1119
|
-
ue({
|
1120
|
-
value: C(F),
|
1121
|
-
initialValue: C(F),
|
1122
|
-
touched: (V = h?.touched) !== null && V !== void 0 ? V : !1,
|
1123
|
-
errors: h?.errors || []
|
1124
|
-
}), T.pending = !1, T.validated = !1, J();
|
1125
|
-
}
|
1126
|
-
const pe = Ee();
|
1127
|
-
function Pe(h, V = !0) {
|
1128
|
-
Q.value = pe && O ? Nn(h, pe.props.modelModifiers) : h, (V ? ne : J)();
|
1129
|
-
}
|
1130
|
-
function Ue(h) {
|
1131
|
-
ue({ errors: Array.isArray(h) ? h : [h] });
|
1132
|
-
}
|
1133
|
-
const pt = S({
|
1134
|
-
get() {
|
1135
|
-
return Q.value;
|
1136
|
-
},
|
1137
|
-
set(h) {
|
1138
|
-
Pe(h, f);
|
1139
|
-
}
|
1140
|
-
}), L = {
|
1141
|
-
id: G,
|
1142
|
-
name: $,
|
1143
|
-
label: c,
|
1144
|
-
value: pt,
|
1145
|
-
meta: T,
|
1146
|
-
errors: N,
|
1147
|
-
errorMessage: U,
|
1148
|
-
type: o,
|
1149
|
-
checkedValue: d,
|
1150
|
-
uncheckedValue: g,
|
1151
|
-
bails: u,
|
1152
|
-
keepValueOnUnmount: I,
|
1153
|
-
resetField: le,
|
1154
|
-
handleReset: () => le(),
|
1155
|
-
validate: re,
|
1156
|
-
handleChange: _,
|
1157
|
-
handleBlur: fe,
|
1158
|
-
setState: ue,
|
1159
|
-
setTouched: Y,
|
1160
|
-
setErrors: Ue,
|
1161
|
-
setValue: Pe
|
1162
|
-
};
|
1163
|
-
if (Bt(qe, L), $e(t) && typeof j(t) != "function" && be(t, (h, V) => {
|
1164
|
-
q(h, V) || (T.validated ? ne() : J());
|
1165
|
-
}, {
|
1166
|
-
deep: !0
|
1167
|
-
}), process.env.NODE_ENV !== "production" && (L._vm = Ee(), be(() => Object.assign(Object.assign({ errors: N.value }, T), { value: Q.value }), we, {
|
1168
|
-
deep: !0
|
1169
|
-
}), b || nr(L)), !b)
|
1170
|
-
return L;
|
1171
|
-
const Je = S(() => {
|
1172
|
-
const h = D.value;
|
1173
|
-
return !h || W(h) || Ge(h) || ce(h) || Array.isArray(h) ? {} : Object.keys(h).reduce((V, F) => {
|
1174
|
-
const w = xn(h[F]).map((me) => me.__locatorRef).reduce((me, ve) => {
|
1175
|
-
const ae = ee(b.values, ve) || b.values[ve];
|
1176
|
-
return ae !== void 0 && (me[ve] = ae), me;
|
1177
|
-
}, {});
|
1178
|
-
return Object.assign(V, w), V;
|
1179
|
-
}, {});
|
1180
|
-
});
|
1181
|
-
return be(Je, (h, V) => {
|
1182
|
-
if (!Object.keys(h).length)
|
1183
|
-
return;
|
1184
|
-
!q(h, V) && (T.validated ? ne() : J());
|
1185
|
-
}), on(() => {
|
1186
|
-
var h;
|
1187
|
-
const V = (h = E(L.keepValueOnUnmount)) !== null && h !== void 0 ? h : E(b.keepValuesOnUnmount), F = E($);
|
1188
|
-
if (V || !b || x.pendingUnmount[L.id]) {
|
1189
|
-
b?.removePathState(F, G);
|
1190
|
-
return;
|
1191
|
-
}
|
1192
|
-
x.pendingUnmount[L.id] = !0;
|
1193
|
-
const w = b.getPathState(F);
|
1194
|
-
if (Array.isArray(w?.id) && w?.multiple ? w?.id.includes(L.id) : w?.id === L.id) {
|
1195
|
-
if (w?.multiple && Array.isArray(w.value)) {
|
1196
|
-
const ve = w.value.findIndex((ae) => q(ae, E(L.checkedValue)));
|
1197
|
-
if (ve > -1) {
|
1198
|
-
const ae = [...w.value];
|
1199
|
-
ae.splice(ve, 1), b.setFieldValue(F, ae);
|
1200
|
-
}
|
1201
|
-
Array.isArray(w.id) && w.id.splice(w.id.indexOf(L.id), 1);
|
1202
|
-
} else
|
1203
|
-
b.unsetPathValue(E($));
|
1204
|
-
b.removePathState(F, G);
|
1205
|
-
}
|
1206
|
-
}), L;
|
1207
|
-
}
|
1208
|
-
function dr(e) {
|
1209
|
-
const t = () => ({
|
1210
|
-
initialValue: void 0,
|
1211
|
-
validateOnMount: !1,
|
1212
|
-
bails: !0,
|
1213
|
-
label: void 0,
|
1214
|
-
validateOnValueUpdate: !0,
|
1215
|
-
keepValueOnUnmount: void 0,
|
1216
|
-
syncVModel: !1,
|
1217
|
-
controlled: !0
|
1218
|
-
}), n = !!e?.syncVModel, r = typeof e?.syncVModel == "string" ? e.syncVModel : e?.modelPropName || "modelValue", i = n && !("initialValue" in (e || {})) ? dt(Ee(), r) : e?.initialValue;
|
1219
|
-
if (!e)
|
1220
|
-
return Object.assign(Object.assign({}, t()), { initialValue: i });
|
1221
|
-
const u = "valueProp" in e ? e.valueProp : e.checkedValue, o = "standalone" in e ? !e.standalone : e.controlled, d = e?.modelPropName || e?.syncVModel || !1;
|
1222
|
-
return Object.assign(Object.assign(Object.assign({}, t()), e || {}), {
|
1223
|
-
initialValue: i,
|
1224
|
-
controlled: o ?? !0,
|
1225
|
-
checkedValue: u,
|
1226
|
-
syncVModel: d
|
1227
|
-
});
|
1228
|
-
}
|
1229
|
-
function cr(e, t, n) {
|
1230
|
-
const r = n?.standalone ? void 0 : Qe(Fe), i = n?.checkedValue, u = n?.uncheckedValue;
|
1231
|
-
function o(d) {
|
1232
|
-
const c = d.handleChange, f = S(() => {
|
1233
|
-
const y = E(d.value), I = E(i);
|
1234
|
-
return Array.isArray(y) ? y.findIndex((O) => q(O, I)) >= 0 : q(I, y);
|
1235
|
-
});
|
1236
|
-
function g(y, I = !0) {
|
1237
|
-
var O, P;
|
1238
|
-
if (f.value === ((O = y?.target) === null || O === void 0 ? void 0 : O.checked)) {
|
1239
|
-
I && d.validate();
|
1240
|
-
return;
|
1241
|
-
}
|
1242
|
-
const K = E(e), b = r?.getPathState(K), $ = He(y);
|
1243
|
-
let D = (P = E(i)) !== null && P !== void 0 ? P : $;
|
1244
|
-
r && b?.multiple && b.type === "checkbox" ? D = wt(ee(r.values, K) || [], D, void 0) : n?.type === "checkbox" && (D = wt(E(d.value), D, E(u))), c(D, I);
|
1245
|
-
}
|
1246
|
-
return Object.assign(Object.assign({}, d), {
|
1247
|
-
checked: f,
|
1248
|
-
checkedValue: i,
|
1249
|
-
uncheckedValue: u,
|
1250
|
-
handleChange: g
|
1251
|
-
});
|
1252
|
-
}
|
1253
|
-
return o(Yt(e, t, n));
|
1254
|
-
}
|
1255
|
-
function fr({ prop: e, value: t, handleChange: n, shouldValidate: r }) {
|
1256
|
-
const i = Ee();
|
1257
|
-
if (!i || !e) {
|
1258
|
-
process.env.NODE_ENV !== "production" && console.warn("Failed to setup model events because `useField` was not called in setup.");
|
1259
|
-
return;
|
1260
|
-
}
|
1261
|
-
const u = typeof e == "string" ? e : "modelValue", o = `update:${u}`;
|
1262
|
-
u in i.props && (be(t, (d) => {
|
1263
|
-
q(d, dt(i, u)) || i.emit(o, d);
|
1264
|
-
}), be(() => dt(i, u), (d) => {
|
1265
|
-
if (d === We && t.value === void 0)
|
1266
|
-
return;
|
1267
|
-
const c = d === We ? void 0 : d;
|
1268
|
-
q(c, t.value) || n(c, r());
|
1269
|
-
}));
|
1270
|
-
}
|
1271
|
-
function dt(e, t) {
|
1272
|
-
if (e)
|
1273
|
-
return e.props[t];
|
1274
|
-
}
|
1275
|
-
const vr = /* @__PURE__ */ ct({
|
1276
|
-
name: "Field",
|
1277
|
-
inheritAttrs: !1,
|
1278
|
-
props: {
|
1279
|
-
as: {
|
1280
|
-
type: [String, Object],
|
1281
|
-
default: void 0
|
1282
|
-
},
|
1283
|
-
name: {
|
1284
|
-
type: String,
|
1285
|
-
required: !0
|
1286
|
-
},
|
1287
|
-
rules: {
|
1288
|
-
type: [Object, String, Function],
|
1289
|
-
default: void 0
|
1290
|
-
},
|
1291
|
-
validateOnMount: {
|
1292
|
-
type: Boolean,
|
1293
|
-
default: !1
|
1294
|
-
},
|
1295
|
-
validateOnBlur: {
|
1296
|
-
type: Boolean,
|
1297
|
-
default: void 0
|
1298
|
-
},
|
1299
|
-
validateOnChange: {
|
1300
|
-
type: Boolean,
|
1301
|
-
default: void 0
|
1302
|
-
},
|
1303
|
-
validateOnInput: {
|
1304
|
-
type: Boolean,
|
1305
|
-
default: void 0
|
1306
|
-
},
|
1307
|
-
validateOnModelUpdate: {
|
1308
|
-
type: Boolean,
|
1309
|
-
default: void 0
|
1310
|
-
},
|
1311
|
-
bails: {
|
1312
|
-
type: Boolean,
|
1313
|
-
default: () => Se().bails
|
1314
|
-
},
|
1315
|
-
label: {
|
1316
|
-
type: String,
|
1317
|
-
default: void 0
|
1318
|
-
},
|
1319
|
-
uncheckedValue: {
|
1320
|
-
type: null,
|
1321
|
-
default: void 0
|
1322
|
-
},
|
1323
|
-
modelValue: {
|
1324
|
-
type: null,
|
1325
|
-
default: We
|
1326
|
-
},
|
1327
|
-
modelModifiers: {
|
1328
|
-
type: null,
|
1329
|
-
default: () => ({})
|
1330
|
-
},
|
1331
|
-
"onUpdate:modelValue": {
|
1332
|
-
type: null,
|
1333
|
-
default: void 0
|
1334
|
-
},
|
1335
|
-
standalone: {
|
1336
|
-
type: Boolean,
|
1337
|
-
default: !1
|
1338
|
-
},
|
1339
|
-
keepValue: {
|
1340
|
-
type: Boolean,
|
1341
|
-
default: void 0
|
1342
|
-
}
|
1343
|
-
},
|
1344
|
-
setup(e, t) {
|
1345
|
-
const n = _e(e, "rules"), r = _e(e, "name"), i = _e(e, "label"), u = _e(e, "uncheckedValue"), o = _e(e, "keepValue"), { errors: d, value: c, errorMessage: f, validate: g, handleChange: y, handleBlur: I, setTouched: O, resetField: P, handleReset: K, meta: b, checked: $, setErrors: D } = sr(r, n, {
|
1346
|
-
validateOnMount: e.validateOnMount,
|
1347
|
-
bails: e.bails,
|
1348
|
-
standalone: e.standalone,
|
1349
|
-
type: t.attrs.type,
|
1350
|
-
initialValue: mr(e, t),
|
1351
|
-
// Only for checkboxes and radio buttons
|
1352
|
-
checkedValue: t.attrs.value,
|
1353
|
-
uncheckedValue: u,
|
1354
|
-
label: i,
|
1355
|
-
validateOnValueUpdate: e.validateOnModelUpdate,
|
1356
|
-
keepValueOnUnmount: o,
|
1357
|
-
syncVModel: !0
|
1358
|
-
}), G = function(x, U = !0) {
|
1359
|
-
y(x, U);
|
1360
|
-
}, Q = S(() => {
|
1361
|
-
const { validateOnInput: N, validateOnChange: x, validateOnBlur: U, validateOnModelUpdate: fe } = hr(e);
|
1362
|
-
function he(_) {
|
1363
|
-
I(_, U), W(t.attrs.onBlur) && t.attrs.onBlur(_);
|
1364
|
-
}
|
1365
|
-
function ne(_) {
|
1366
|
-
G(_, N), W(t.attrs.onInput) && t.attrs.onInput(_);
|
1367
|
-
}
|
1368
|
-
function J(_) {
|
1369
|
-
G(_, x), W(t.attrs.onChange) && t.attrs.onChange(_);
|
1370
|
-
}
|
1371
|
-
const re = {
|
1372
|
-
name: e.name,
|
1373
|
-
onBlur: he,
|
1374
|
-
onInput: ne,
|
1375
|
-
onChange: J
|
1376
|
-
};
|
1377
|
-
return re["onUpdate:modelValue"] = (_) => G(_, fe), re;
|
1378
|
-
}), te = S(() => {
|
1379
|
-
const N = Object.assign({}, Q.value);
|
1380
|
-
Re(t.attrs.type) && $ && (N.checked = $.value);
|
1381
|
-
const x = Nt(e, t);
|
1382
|
-
return Pn(x, t.attrs) && (N.value = c.value), N;
|
1383
|
-
}), T = S(() => Object.assign(Object.assign({}, Q.value), { modelValue: c.value }));
|
1384
|
-
function ue() {
|
1385
|
-
return {
|
1386
|
-
field: te.value,
|
1387
|
-
componentField: T.value,
|
1388
|
-
value: c.value,
|
1389
|
-
meta: b,
|
1390
|
-
errors: d.value,
|
1391
|
-
errorMessage: f.value,
|
1392
|
-
validate: g,
|
1393
|
-
resetField: P,
|
1394
|
-
handleChange: G,
|
1395
|
-
handleInput: (N) => G(N, !1),
|
1396
|
-
handleReset: K,
|
1397
|
-
handleBlur: Q.value.onBlur,
|
1398
|
-
setTouched: O,
|
1399
|
-
setErrors: D
|
1400
|
-
};
|
1401
|
-
}
|
1402
|
-
return t.expose({
|
1403
|
-
value: c,
|
1404
|
-
meta: b,
|
1405
|
-
errors: d,
|
1406
|
-
errorMessage: f,
|
1407
|
-
setErrors: D,
|
1408
|
-
setTouched: O,
|
1409
|
-
reset: P,
|
1410
|
-
validate: g,
|
1411
|
-
handleChange: y
|
1412
|
-
}), () => {
|
1413
|
-
const N = ft(Nt(e, t)), x = yt(N, t, ue);
|
1414
|
-
return N ? Le(N, Object.assign(Object.assign({}, t.attrs), te.value), x) : x;
|
1415
|
-
};
|
1416
|
-
}
|
1417
|
-
});
|
1418
|
-
function Nt(e, t) {
|
1419
|
-
let n = e.as || "";
|
1420
|
-
return !e.as && !t.slots.default && (n = "input"), n;
|
1421
|
-
}
|
1422
|
-
function hr(e) {
|
1423
|
-
var t, n, r, i;
|
1424
|
-
const { validateOnInput: u, validateOnChange: o, validateOnBlur: d, validateOnModelUpdate: c } = Se();
|
1425
|
-
return {
|
1426
|
-
validateOnInput: (t = e.validateOnInput) !== null && t !== void 0 ? t : u,
|
1427
|
-
validateOnChange: (n = e.validateOnChange) !== null && n !== void 0 ? n : o,
|
1428
|
-
validateOnBlur: (r = e.validateOnBlur) !== null && r !== void 0 ? r : d,
|
1429
|
-
validateOnModelUpdate: (i = e.validateOnModelUpdate) !== null && i !== void 0 ? i : c
|
1430
|
-
};
|
1431
|
-
}
|
1432
|
-
function mr(e, t) {
|
1433
|
-
return Re(t.attrs.type) ? jt(e, "modelValue") ? e.modelValue : void 0 : jt(e, "modelValue") ? e.modelValue : t.attrs.value;
|
1434
|
-
}
|
1435
|
-
const wr = vr;
|
1436
|
-
let gr = 0;
|
1437
|
-
const xe = ["bails", "fieldsCount", "id", "multiple", "type", "validate"];
|
1438
|
-
function Xt(e) {
|
1439
|
-
const t = Object.assign({}, E(e?.initialValues || {})), n = j(e?.validationSchema);
|
1440
|
-
return n && ce(n) && W(n.cast) ? C(n.cast(t) || {}) : C(t);
|
1441
|
-
}
|
1442
|
-
function yr(e) {
|
1443
|
-
var t;
|
1444
|
-
const n = gr++;
|
1445
|
-
let r = 0;
|
1446
|
-
const i = de(!1), u = de(!1), o = de(0), d = [], c = ze(Xt(e)), f = de([]), g = de({}), y = de({}), I = Mn(() => {
|
1447
|
-
y.value = f.value.reduce((a, l) => (a[Te(E(l.path))] = l, a), {});
|
1448
|
-
});
|
1449
|
-
function O(a, l) {
|
1450
|
-
const s = _(a);
|
1451
|
-
if (!s) {
|
1452
|
-
typeof a == "string" && (g.value[Te(a)] = st(l));
|
1453
|
-
return;
|
1454
|
-
}
|
1455
|
-
if (typeof a == "string") {
|
1456
|
-
const v = Te(a);
|
1457
|
-
g.value[v] && delete g.value[v];
|
1458
|
-
}
|
1459
|
-
s.errors = st(l), s.valid = !s.errors.length;
|
1460
|
-
}
|
1461
|
-
function P(a) {
|
1462
|
-
ie(a).forEach((l) => {
|
1463
|
-
O(l, a[l]);
|
1464
|
-
});
|
1465
|
-
}
|
1466
|
-
e?.initialErrors && P(e.initialErrors);
|
1467
|
-
const K = S(() => {
|
1468
|
-
const a = f.value.reduce((l, s) => (s.errors.length && (l[s.path] = s.errors), l), {});
|
1469
|
-
return Object.assign(Object.assign({}, g.value), a);
|
1470
|
-
}), b = S(() => ie(K.value).reduce((a, l) => {
|
1471
|
-
const s = K.value[l];
|
1472
|
-
return s?.length && (a[l] = s[0]), a;
|
1473
|
-
}, {})), $ = S(() => f.value.reduce((a, l) => (a[l.path] = { name: l.path || "", label: l.label || "" }, a), {})), D = S(() => f.value.reduce((a, l) => {
|
1474
|
-
var s;
|
1475
|
-
return a[l.path] = (s = l.bails) !== null && s !== void 0 ? s : !0, a;
|
1476
|
-
}, {})), G = Object.assign({}, e?.initialErrors || {}), Q = (t = e?.keepValuesOnUnmount) !== null && t !== void 0 ? t : !1, { initialValues: te, originalInitialValues: T, setInitialValues: ue } = pr(f, c, e), N = br(f, c, T, b), x = S(() => f.value.reduce((a, l) => {
|
1477
|
-
const s = ee(c, l.path);
|
1478
|
-
return ge(a, l.path, s), a;
|
1479
|
-
}, {})), U = e?.validationSchema;
|
1480
|
-
function fe(a, l) {
|
1481
|
-
var s, v;
|
1482
|
-
const p = S(() => ee(te.value, E(a))), m = y.value[E(a)], A = l?.type === "checkbox" || l?.type === "radio";
|
1483
|
-
if (m && A) {
|
1484
|
-
m.multiple = !0;
|
1485
|
-
const oe = r++;
|
1486
|
-
return Array.isArray(m.id) ? m.id.push(oe) : m.id = [m.id, oe], m.fieldsCount++, m.__flags.pendingUnmount[oe] = !1, m;
|
1487
|
-
}
|
1488
|
-
const M = S(() => ee(c, E(a))), B = E(a), H = le.findIndex((oe) => oe === B);
|
1489
|
-
H !== -1 && le.splice(H, 1);
|
1490
|
-
const k = S(() => {
|
1491
|
-
var oe, ke, tt, St, nt, rt;
|
1492
|
-
return ce(U) ? (tt = (ke = (oe = U).describe) === null || ke === void 0 ? void 0 : ke.call(oe, E(a)).required) !== null && tt !== void 0 ? tt : !1 : ce(l?.schema) && (rt = (nt = (St = l?.schema).describe) === null || nt === void 0 ? void 0 : nt.call(St).required) !== null && rt !== void 0 ? rt : !1;
|
1493
|
-
}), z = r++, X = ze({
|
1494
|
-
id: z,
|
1495
|
-
path: a,
|
1496
|
-
touched: !1,
|
1497
|
-
pending: !1,
|
1498
|
-
valid: !0,
|
1499
|
-
validated: !!(!((s = G[B]) === null || s === void 0) && s.length),
|
1500
|
-
required: k,
|
1501
|
-
initialValue: p,
|
1502
|
-
errors: cn([]),
|
1503
|
-
bails: (v = l?.bails) !== null && v !== void 0 ? v : !1,
|
1504
|
-
label: l?.label,
|
1505
|
-
type: l?.type || "default",
|
1506
|
-
value: M,
|
1507
|
-
multiple: !1,
|
1508
|
-
__flags: {
|
1509
|
-
pendingUnmount: { [z]: !1 },
|
1510
|
-
pendingReset: !1
|
1511
|
-
},
|
1512
|
-
fieldsCount: 1,
|
1513
|
-
validate: l?.validate,
|
1514
|
-
dirty: S(() => !q(j(M), j(p)))
|
1515
|
-
});
|
1516
|
-
return f.value.push(X), y.value[B] = X, I(), b.value[B] && !G[B] && se(() => {
|
1517
|
-
Ve(B, { mode: "silent" });
|
1518
|
-
}), $e(a) && be(a, (oe) => {
|
1519
|
-
I();
|
1520
|
-
const ke = C(M.value);
|
1521
|
-
y.value[oe] = X, se(() => {
|
1522
|
-
ge(c, oe, ke);
|
1523
|
-
});
|
1524
|
-
}), X;
|
1525
|
-
}
|
1526
|
-
const he = Ft(_t, 5), ne = Ft(_t, 5), J = ot(async (a) => await (a === "silent" ? he() : ne()), (a, [l]) => {
|
1527
|
-
const s = ie(V.errorBag.value), p = [
|
1528
|
-
.../* @__PURE__ */ new Set([...ie(a.results), ...f.value.map((m) => m.path), ...s])
|
1529
|
-
].sort().reduce((m, A) => {
|
1530
|
-
var M;
|
1531
|
-
const B = A, H = _(B) || Y(B), k = ((M = a.results[B]) === null || M === void 0 ? void 0 : M.errors) || [], z = E(H?.path) || B, X = Or({ errors: k, valid: !k.length }, m.results[z]);
|
1532
|
-
return m.results[z] = X, X.valid || (m.errors[z] = X.errors[0]), H && g.value[z] && delete g.value[z], H ? (H.valid = X.valid, l === "silent" || l === "validated-only" && !H.validated || O(H, X.errors), m) : (O(z, k), m);
|
1533
|
-
}, { valid: a.valid, results: {}, errors: {} });
|
1534
|
-
return a.values && (p.values = a.values), p;
|
1535
|
-
});
|
1536
|
-
function re(a) {
|
1537
|
-
f.value.forEach(a);
|
1538
|
-
}
|
1539
|
-
function _(a) {
|
1540
|
-
const l = typeof a == "string" ? Te(a) : a;
|
1541
|
-
return typeof l == "string" ? y.value[l] : l;
|
1542
|
-
}
|
1543
|
-
function Y(a) {
|
1544
|
-
return f.value.filter((s) => a.startsWith(s.path)).reduce((s, v) => s ? v.path.length > s.path.length ? v : s : v, void 0);
|
1545
|
-
}
|
1546
|
-
let le = [], pe;
|
1547
|
-
function Pe(a) {
|
1548
|
-
return le.push(a), pe || (pe = se(() => {
|
1549
|
-
[...le].sort().reverse().forEach((s) => {
|
1550
|
-
Ct(c, s);
|
1551
|
-
}), le = [], pe = null;
|
1552
|
-
})), pe;
|
1553
|
-
}
|
1554
|
-
function Ue(a) {
|
1555
|
-
return function(s, v) {
|
1556
|
-
return function(m) {
|
1557
|
-
return m instanceof Event && (m.preventDefault(), m.stopPropagation()), re((A) => A.touched = !0), i.value = !0, o.value++, Ie().then((A) => {
|
1558
|
-
const M = C(c);
|
1559
|
-
if (A.valid && typeof s == "function") {
|
1560
|
-
const B = C(x.value);
|
1561
|
-
let H = a ? B : M;
|
1562
|
-
return A.values && (H = A.values), s(H, {
|
1563
|
-
evt: m,
|
1564
|
-
controlledValues: B,
|
1565
|
-
setErrors: P,
|
1566
|
-
setFieldError: O,
|
1567
|
-
setTouched: Ye,
|
1568
|
-
setFieldTouched: ae,
|
1569
|
-
setValues: me,
|
1570
|
-
setFieldValue: F,
|
1571
|
-
resetForm: Xe,
|
1572
|
-
resetField: Ot
|
1573
|
-
});
|
1574
|
-
}
|
1575
|
-
!A.valid && typeof v == "function" && v({
|
1576
|
-
values: M,
|
1577
|
-
evt: m,
|
1578
|
-
errors: A.errors,
|
1579
|
-
results: A.results
|
1580
|
-
});
|
1581
|
-
}).then((A) => (i.value = !1, A), (A) => {
|
1582
|
-
throw i.value = !1, A;
|
1583
|
-
});
|
1584
|
-
};
|
1585
|
-
};
|
1586
|
-
}
|
1587
|
-
const L = Ue(!1);
|
1588
|
-
L.withControlled = Ue(!0);
|
1589
|
-
function Je(a, l) {
|
1590
|
-
const s = f.value.findIndex((p) => p.path === a), v = f.value[s];
|
1591
|
-
if (!(s === -1 || !v)) {
|
1592
|
-
if (se(() => {
|
1593
|
-
Ve(a, { mode: "silent", warn: !1 });
|
1594
|
-
}), v.multiple && v.fieldsCount && v.fieldsCount--, Array.isArray(v.id)) {
|
1595
|
-
const p = v.id.indexOf(l);
|
1596
|
-
p >= 0 && v.id.splice(p, 1), delete v.__flags.pendingUnmount[l];
|
1597
|
-
}
|
1598
|
-
(!v.multiple || v.fieldsCount <= 0) && (f.value.splice(s, 1), Vt(a), I(), delete y.value[a]);
|
1599
|
-
}
|
1600
|
-
}
|
1601
|
-
function h(a) {
|
1602
|
-
ie(y.value).forEach((l) => {
|
1603
|
-
l.startsWith(a) && delete y.value[l];
|
1604
|
-
}), f.value = f.value.filter((l) => !l.path.startsWith(a)), se(() => {
|
1605
|
-
I();
|
1606
|
-
});
|
1607
|
-
}
|
1608
|
-
const V = {
|
1609
|
-
formId: n,
|
1610
|
-
values: c,
|
1611
|
-
controlledValues: x,
|
1612
|
-
errorBag: K,
|
1613
|
-
errors: b,
|
1614
|
-
schema: U,
|
1615
|
-
submitCount: o,
|
1616
|
-
meta: N,
|
1617
|
-
isSubmitting: i,
|
1618
|
-
isValidating: u,
|
1619
|
-
fieldArrays: d,
|
1620
|
-
keepValuesOnUnmount: Q,
|
1621
|
-
validateSchema: j(U) ? J : void 0,
|
1622
|
-
validate: Ie,
|
1623
|
-
setFieldError: O,
|
1624
|
-
validateField: Ve,
|
1625
|
-
setFieldValue: F,
|
1626
|
-
setValues: me,
|
1627
|
-
setErrors: P,
|
1628
|
-
setFieldTouched: ae,
|
1629
|
-
setTouched: Ye,
|
1630
|
-
resetForm: Xe,
|
1631
|
-
resetField: Ot,
|
1632
|
-
handleSubmit: L,
|
1633
|
-
useFieldModel: ln,
|
1634
|
-
defineInputBinds: an,
|
1635
|
-
defineComponentBinds: un,
|
1636
|
-
defineField: et,
|
1637
|
-
stageInitialValue: nn,
|
1638
|
-
unsetInitialValue: Vt,
|
1639
|
-
setFieldInitialValue: Ze,
|
1640
|
-
createPathState: fe,
|
1641
|
-
getPathState: _,
|
1642
|
-
unsetPathValue: Pe,
|
1643
|
-
removePathState: Je,
|
1644
|
-
initialValues: te,
|
1645
|
-
getAllPathStates: () => f.value,
|
1646
|
-
destroyPath: h,
|
1647
|
-
isFieldTouched: Zt,
|
1648
|
-
isFieldDirty: en,
|
1649
|
-
isFieldValid: tn
|
1650
|
-
};
|
1651
|
-
function F(a, l, s = !0) {
|
1652
|
-
const v = C(l), p = typeof a == "string" ? a : a.path;
|
1653
|
-
_(p) || fe(p), ge(c, p, v), s && Ve(p);
|
1654
|
-
}
|
1655
|
-
function w(a, l = !0) {
|
1656
|
-
ie(c).forEach((s) => {
|
1657
|
-
delete c[s];
|
1658
|
-
}), ie(a).forEach((s) => {
|
1659
|
-
F(s, a[s], !1);
|
1660
|
-
}), l && Ie();
|
1661
|
-
}
|
1662
|
-
function me(a, l = !0) {
|
1663
|
-
Be(c, a), d.forEach((s) => s && s.reset()), l && Ie();
|
1664
|
-
}
|
1665
|
-
function ve(a, l) {
|
1666
|
-
const s = _(E(a)) || fe(a);
|
1667
|
-
return S({
|
1668
|
-
get() {
|
1669
|
-
return s.value;
|
1670
|
-
},
|
1671
|
-
set(v) {
|
1672
|
-
var p;
|
1673
|
-
const m = E(a);
|
1674
|
-
F(m, v, (p = E(l)) !== null && p !== void 0 ? p : !1);
|
1675
|
-
}
|
1676
|
-
});
|
1677
|
-
}
|
1678
|
-
function ae(a, l) {
|
1679
|
-
const s = _(a);
|
1680
|
-
s && (s.touched = l);
|
1681
|
-
}
|
1682
|
-
function Zt(a) {
|
1683
|
-
const l = _(a);
|
1684
|
-
return l ? l.touched : f.value.filter((s) => s.path.startsWith(a)).some((s) => s.touched);
|
1685
|
-
}
|
1686
|
-
function en(a) {
|
1687
|
-
const l = _(a);
|
1688
|
-
return l ? l.dirty : f.value.filter((s) => s.path.startsWith(a)).some((s) => s.dirty);
|
1689
|
-
}
|
1690
|
-
function tn(a) {
|
1691
|
-
const l = _(a);
|
1692
|
-
return l ? l.valid : f.value.filter((s) => s.path.startsWith(a)).every((s) => s.valid);
|
1693
|
-
}
|
1694
|
-
function Ye(a) {
|
1695
|
-
if (typeof a == "boolean") {
|
1696
|
-
re((l) => {
|
1697
|
-
l.touched = a;
|
1698
|
-
});
|
1699
|
-
return;
|
1700
|
-
}
|
1701
|
-
ie(a).forEach((l) => {
|
1702
|
-
ae(l, !!a[l]);
|
1703
|
-
});
|
1704
|
-
}
|
1705
|
-
function Ot(a, l) {
|
1706
|
-
var s;
|
1707
|
-
const v = l && "value" in l ? l.value : ee(te.value, a), p = _(a);
|
1708
|
-
p && (p.__flags.pendingReset = !0), Ze(a, C(v), !0), F(a, v, !1), ae(a, (s = l?.touched) !== null && s !== void 0 ? s : !1), O(a, l?.errors || []), se(() => {
|
1709
|
-
p && (p.__flags.pendingReset = !1);
|
1710
|
-
});
|
1711
|
-
}
|
1712
|
-
function Xe(a, l) {
|
1713
|
-
let s = C(a?.values ? a.values : T.value);
|
1714
|
-
s = l?.force ? s : Be(T.value, s), s = ce(U) && W(U.cast) ? U.cast(s) : s, ue(s), re((v) => {
|
1715
|
-
var p;
|
1716
|
-
v.__flags.pendingReset = !0, v.validated = !1, v.touched = ((p = a?.touched) === null || p === void 0 ? void 0 : p[v.path]) || !1, F(v.path, ee(s, v.path), !1), O(v.path, void 0);
|
1717
|
-
}), l?.force ? w(s, !1) : me(s, !1), P(a?.errors || {}), o.value = a?.submitCount || 0, se(() => {
|
1718
|
-
Ie({ mode: "silent" }), re((v) => {
|
1719
|
-
v.__flags.pendingReset = !1;
|
1720
|
-
});
|
1721
|
-
});
|
1722
|
-
}
|
1723
|
-
async function Ie(a) {
|
1724
|
-
const l = a?.mode || "force";
|
1725
|
-
if (l === "force" && re((m) => m.validated = !0), V.validateSchema)
|
1726
|
-
return V.validateSchema(l);
|
1727
|
-
u.value = !0;
|
1728
|
-
const s = await Promise.all(f.value.map((m) => m.validate ? m.validate(a).then((A) => ({
|
1729
|
-
key: m.path,
|
1730
|
-
valid: A.valid,
|
1731
|
-
errors: A.errors
|
1732
|
-
})) : Promise.resolve({
|
1733
|
-
key: m.path,
|
1734
|
-
valid: !0,
|
1735
|
-
errors: []
|
1736
|
-
})));
|
1737
|
-
u.value = !1;
|
1738
|
-
const v = {}, p = {};
|
1739
|
-
for (const m of s)
|
1740
|
-
v[m.key] = {
|
1741
|
-
valid: m.valid,
|
1742
|
-
errors: m.errors
|
1743
|
-
}, m.errors.length && (p[m.key] = m.errors[0]);
|
1744
|
-
return {
|
1745
|
-
valid: s.every((m) => m.valid),
|
1746
|
-
results: v,
|
1747
|
-
errors: p
|
1748
|
-
};
|
1749
|
-
}
|
1750
|
-
async function Ve(a, l) {
|
1751
|
-
var s;
|
1752
|
-
const v = _(a);
|
1753
|
-
if (v && l?.mode !== "silent" && (v.validated = !0), U) {
|
1754
|
-
const { results: m } = await J(l?.mode || "validated-only");
|
1755
|
-
return m[a] || { errors: [], valid: !0 };
|
1756
|
-
}
|
1757
|
-
return v?.validate ? v.validate(l) : (!v && ((s = l?.warn) !== null && s !== void 0 ? s : !0) && process.env.NODE_ENV !== "production" && Rt(`field with path ${a} was not found`), Promise.resolve({ errors: [], valid: !0 }));
|
1758
|
-
}
|
1759
|
-
function Vt(a) {
|
1760
|
-
Ct(te.value, a);
|
1761
|
-
}
|
1762
|
-
function nn(a, l, s = !1) {
|
1763
|
-
Ze(a, l), ge(c, a, l), s && !e?.initialValues && ge(T.value, a, C(l));
|
1764
|
-
}
|
1765
|
-
function Ze(a, l, s = !1) {
|
1766
|
-
ge(te.value, a, C(l)), s && ge(T.value, a, C(l));
|
1767
|
-
}
|
1768
|
-
async function _t() {
|
1769
|
-
const a = j(U);
|
1770
|
-
if (!a)
|
1771
|
-
return { valid: !0, results: {}, errors: {} };
|
1772
|
-
u.value = !0;
|
1773
|
-
const l = Ge(a) || ce(a) ? await Kn(a, c) : await Qn(a, c, {
|
1774
|
-
names: $.value,
|
1775
|
-
bailsMap: D.value
|
1776
|
-
});
|
1777
|
-
return u.value = !1, l;
|
1778
|
-
}
|
1779
|
-
const rn = L((a, { evt: l }) => {
|
1780
|
-
$t(l) && l.target.submit();
|
1781
|
-
});
|
1782
|
-
Mt(() => {
|
1783
|
-
if (e?.initialErrors && P(e.initialErrors), e?.initialTouched && Ye(e.initialTouched), e?.validateOnMount) {
|
1784
|
-
Ie();
|
1785
|
-
return;
|
1786
|
-
}
|
1787
|
-
V.validateSchema && V.validateSchema("silent");
|
1788
|
-
}), $e(U) && be(U, () => {
|
1789
|
-
var a;
|
1790
|
-
(a = V.validateSchema) === null || a === void 0 || a.call(V, "validated-only");
|
1791
|
-
}), Bt(Fe, V), process.env.NODE_ENV !== "production" && (tr(V), be(() => Object.assign(Object.assign({ errors: K.value }, N.value), { values: c, isSubmitting: i.value, isValidating: u.value, submitCount: o.value }), we, {
|
1792
|
-
deep: !0
|
1793
|
-
}));
|
1794
|
-
function et(a, l) {
|
1795
|
-
const s = W(l) ? void 0 : l?.label, v = _(E(a)) || fe(a, { label: s }), p = () => W(l) ? l(De(v, xe)) : l || {};
|
1796
|
-
function m() {
|
1797
|
-
var k;
|
1798
|
-
v.touched = !0, ((k = p().validateOnBlur) !== null && k !== void 0 ? k : Se().validateOnBlur) && Ve(v.path);
|
1799
|
-
}
|
1800
|
-
function A() {
|
1801
|
-
var k;
|
1802
|
-
((k = p().validateOnInput) !== null && k !== void 0 ? k : Se().validateOnInput) && se(() => {
|
1803
|
-
Ve(v.path);
|
1804
|
-
});
|
1805
|
-
}
|
1806
|
-
function M() {
|
1807
|
-
var k;
|
1808
|
-
((k = p().validateOnChange) !== null && k !== void 0 ? k : Se().validateOnChange) && se(() => {
|
1809
|
-
Ve(v.path);
|
1810
|
-
});
|
1811
|
-
}
|
1812
|
-
const B = S(() => {
|
1813
|
-
const k = {
|
1814
|
-
onChange: M,
|
1815
|
-
onInput: A,
|
1816
|
-
onBlur: m
|
1817
|
-
};
|
1818
|
-
return W(l) ? Object.assign(Object.assign({}, k), l(De(v, xe)).props || {}) : l?.props ? Object.assign(Object.assign({}, k), l.props(De(v, xe))) : k;
|
1819
|
-
});
|
1820
|
-
return [ve(a, () => {
|
1821
|
-
var k, z, X;
|
1822
|
-
return (X = (k = p().validateOnModelUpdate) !== null && k !== void 0 ? k : (z = Se()) === null || z === void 0 ? void 0 : z.validateOnModelUpdate) !== null && X !== void 0 ? X : !0;
|
1823
|
-
}), B];
|
1824
|
-
}
|
1825
|
-
function ln(a) {
|
1826
|
-
return Array.isArray(a) ? a.map((l) => ve(l, !0)) : ve(a);
|
1827
|
-
}
|
1828
|
-
function an(a, l) {
|
1829
|
-
const [s, v] = et(a, l);
|
1830
|
-
function p(M) {
|
1831
|
-
v.value.onBlur(M);
|
1832
|
-
}
|
1833
|
-
function m(M) {
|
1834
|
-
const B = He(M);
|
1835
|
-
F(E(a), B, !1), v.value.onInput(M);
|
1836
|
-
}
|
1837
|
-
function A(M) {
|
1838
|
-
const B = He(M);
|
1839
|
-
F(E(a), B, !1), v.value.onChange(M);
|
1840
|
-
}
|
1841
|
-
return S(() => Object.assign(Object.assign({}, v.value), {
|
1842
|
-
onBlur: p,
|
1843
|
-
onInput: m,
|
1844
|
-
onChange: A,
|
1845
|
-
value: s.value
|
1846
|
-
}));
|
1847
|
-
}
|
1848
|
-
function un(a, l) {
|
1849
|
-
const [s, v] = et(a, l), p = _(E(a));
|
1850
|
-
function m(A) {
|
1851
|
-
s.value = A;
|
1852
|
-
}
|
1853
|
-
return S(() => {
|
1854
|
-
const A = W(l) ? l(De(p, xe)) : l || {};
|
1855
|
-
return Object.assign({ [A.model || "modelValue"]: s.value, [`onUpdate:${A.model || "modelValue"}`]: m }, v.value);
|
1856
|
-
});
|
1857
|
-
}
|
1858
|
-
return Object.assign(Object.assign({}, V), { values: sn(c), handleReset: () => Xe(), submitForm: rn });
|
1859
|
-
}
|
1860
|
-
function br(e, t, n, r) {
|
1861
|
-
const i = {
|
1862
|
-
touched: "some",
|
1863
|
-
pending: "some",
|
1864
|
-
valid: "every"
|
1865
|
-
}, u = S(() => !q(t, j(n)));
|
1866
|
-
function o() {
|
1867
|
-
const c = e.value;
|
1868
|
-
return ie(i).reduce((f, g) => {
|
1869
|
-
const y = i[g];
|
1870
|
-
return f[g] = c[y]((I) => I[g]), f;
|
1871
|
-
}, {});
|
1872
|
-
}
|
1873
|
-
const d = ze(o());
|
1874
|
-
return dn(() => {
|
1875
|
-
const c = o();
|
1876
|
-
d.touched = c.touched, d.valid = c.valid, d.pending = c.pending;
|
1877
|
-
}), S(() => Object.assign(Object.assign({ initialValues: j(n) }, d), { valid: d.valid && !ie(r.value).length, dirty: u.value }));
|
1878
|
-
}
|
1879
|
-
function pr(e, t, n) {
|
1880
|
-
const r = Xt(n), i = de(r), u = de(C(r));
|
1881
|
-
function o(d, c = !1) {
|
1882
|
-
i.value = Be(C(i.value) || {}, C(d)), u.value = Be(C(u.value) || {}, C(d)), c && e.value.forEach((f) => {
|
1883
|
-
if (f.touched)
|
1884
|
-
return;
|
1885
|
-
const y = ee(i.value, f.path);
|
1886
|
-
ge(t, f.path, C(y));
|
1887
|
-
});
|
1888
|
-
}
|
1889
|
-
return {
|
1890
|
-
initialValues: i,
|
1891
|
-
originalInitialValues: u,
|
1892
|
-
setInitialValues: o
|
1893
|
-
};
|
1894
|
-
}
|
1895
|
-
function Or(e, t) {
|
1896
|
-
return t ? {
|
1897
|
-
valid: e.valid && t.valid,
|
1898
|
-
errors: [...e.errors, ...t.errors]
|
1899
|
-
} : e;
|
1900
|
-
}
|
1901
|
-
const Vr = /* @__PURE__ */ ct({
|
1902
|
-
name: "Form",
|
1903
|
-
inheritAttrs: !1,
|
1904
|
-
props: {
|
1905
|
-
as: {
|
1906
|
-
type: null,
|
1907
|
-
default: "form"
|
1908
|
-
},
|
1909
|
-
validationSchema: {
|
1910
|
-
type: Object,
|
1911
|
-
default: void 0
|
1912
|
-
},
|
1913
|
-
initialValues: {
|
1914
|
-
type: Object,
|
1915
|
-
default: void 0
|
1916
|
-
},
|
1917
|
-
initialErrors: {
|
1918
|
-
type: Object,
|
1919
|
-
default: void 0
|
1920
|
-
},
|
1921
|
-
initialTouched: {
|
1922
|
-
type: Object,
|
1923
|
-
default: void 0
|
1924
|
-
},
|
1925
|
-
validateOnMount: {
|
1926
|
-
type: Boolean,
|
1927
|
-
default: !1
|
1928
|
-
},
|
1929
|
-
onSubmit: {
|
1930
|
-
type: Function,
|
1931
|
-
default: void 0
|
1932
|
-
},
|
1933
|
-
onInvalidSubmit: {
|
1934
|
-
type: Function,
|
1935
|
-
default: void 0
|
1936
|
-
},
|
1937
|
-
keepValues: {
|
1938
|
-
type: Boolean,
|
1939
|
-
default: !1
|
1940
|
-
}
|
1941
|
-
},
|
1942
|
-
setup(e, t) {
|
1943
|
-
const n = _e(e, "validationSchema"), r = _e(e, "keepValues"), { errors: i, errorBag: u, values: o, meta: d, isSubmitting: c, isValidating: f, submitCount: g, controlledValues: y, validate: I, validateField: O, handleReset: P, resetForm: K, handleSubmit: b, setErrors: $, setFieldError: D, setFieldValue: G, setValues: Q, setFieldTouched: te, setTouched: T, resetField: ue } = yr({
|
1944
|
-
validationSchema: n.value ? n : void 0,
|
1945
|
-
initialValues: e.initialValues,
|
1946
|
-
initialErrors: e.initialErrors,
|
1947
|
-
initialTouched: e.initialTouched,
|
1948
|
-
validateOnMount: e.validateOnMount,
|
1949
|
-
keepValuesOnUnmount: r
|
1950
|
-
}), N = b((_, { evt: Y }) => {
|
1951
|
-
$t(Y) && Y.target.submit();
|
1952
|
-
}, e.onInvalidSubmit), x = e.onSubmit ? b(e.onSubmit, e.onInvalidSubmit) : N;
|
1953
|
-
function U(_) {
|
1954
|
-
ht(_) && _.preventDefault(), P(), typeof t.attrs.onReset == "function" && t.attrs.onReset();
|
1955
|
-
}
|
1956
|
-
function fe(_, Y) {
|
1957
|
-
return b(typeof _ == "function" && !Y ? _ : Y, e.onInvalidSubmit)(_);
|
1958
|
-
}
|
1959
|
-
function he() {
|
1960
|
-
return C(o);
|
1961
|
-
}
|
1962
|
-
function ne() {
|
1963
|
-
return C(d.value);
|
1964
|
-
}
|
1965
|
-
function J() {
|
1966
|
-
return C(i.value);
|
1967
|
-
}
|
1968
|
-
function re() {
|
1969
|
-
return {
|
1970
|
-
meta: d.value,
|
1971
|
-
errors: i.value,
|
1972
|
-
errorBag: u.value,
|
1973
|
-
values: o,
|
1974
|
-
isSubmitting: c.value,
|
1975
|
-
isValidating: f.value,
|
1976
|
-
submitCount: g.value,
|
1977
|
-
controlledValues: y.value,
|
1978
|
-
validate: I,
|
1979
|
-
validateField: O,
|
1980
|
-
handleSubmit: fe,
|
1981
|
-
handleReset: P,
|
1982
|
-
submitForm: N,
|
1983
|
-
setErrors: $,
|
1984
|
-
setFieldError: D,
|
1985
|
-
setFieldValue: G,
|
1986
|
-
setValues: Q,
|
1987
|
-
setFieldTouched: te,
|
1988
|
-
setTouched: T,
|
1989
|
-
resetForm: K,
|
1990
|
-
resetField: ue,
|
1991
|
-
getValues: he,
|
1992
|
-
getMeta: ne,
|
1993
|
-
getErrors: J
|
1994
|
-
};
|
1995
|
-
}
|
1996
|
-
return t.expose({
|
1997
|
-
setFieldError: D,
|
1998
|
-
setErrors: $,
|
1999
|
-
setFieldValue: G,
|
2000
|
-
setValues: Q,
|
2001
|
-
setFieldTouched: te,
|
2002
|
-
setTouched: T,
|
2003
|
-
resetForm: K,
|
2004
|
-
validate: I,
|
2005
|
-
validateField: O,
|
2006
|
-
resetField: ue,
|
2007
|
-
getValues: he,
|
2008
|
-
getMeta: ne,
|
2009
|
-
getErrors: J,
|
2010
|
-
values: o,
|
2011
|
-
meta: d,
|
2012
|
-
errors: i
|
2013
|
-
}), function() {
|
2014
|
-
const Y = e.as === "form" ? e.as : e.as ? ft(e.as) : null, le = yt(Y, t, re);
|
2015
|
-
return Y ? Le(Y, Object.assign(Object.assign(Object.assign({}, Y === "form" ? {
|
2016
|
-
// Disables native validation as vee-validate will handle it.
|
2017
|
-
novalidate: !0
|
2018
|
-
} : {}), t.attrs), { onSubmit: x, onReset: U }), le) : le;
|
2019
|
-
};
|
2020
|
-
}
|
2021
|
-
}), Fr = Vr, _r = /* @__PURE__ */ ct({
|
2022
|
-
name: "ErrorMessage",
|
2023
|
-
props: {
|
2024
|
-
as: {
|
2025
|
-
type: String,
|
2026
|
-
default: void 0
|
2027
|
-
},
|
2028
|
-
name: {
|
2029
|
-
type: String,
|
2030
|
-
required: !0
|
2031
|
-
}
|
2032
|
-
},
|
2033
|
-
setup(e, t) {
|
2034
|
-
const n = Ce(Fe, void 0), r = S(() => n?.errors.value[e.name]);
|
2035
|
-
function i() {
|
2036
|
-
return {
|
2037
|
-
message: r.value
|
2038
|
-
};
|
2039
|
-
}
|
2040
|
-
return () => {
|
2041
|
-
if (!r.value)
|
2042
|
-
return;
|
2043
|
-
const u = e.as ? ft(e.as) : e.as, o = yt(u, t, i), d = Object.assign({ role: "alert" }, t.attrs);
|
2044
|
-
return !u && (Array.isArray(o) || !o) && o?.length ? o : (Array.isArray(o) || !o) && !o?.length ? Le(u || "span", d, r.value) : Le(u, d, o);
|
2045
|
-
};
|
2046
|
-
}
|
2047
|
-
}), Pr = _r;
|
2048
|
-
function Sr(e) {
|
2049
|
-
const t = gt(e);
|
2050
|
-
return S(() => {
|
2051
|
-
var n, r;
|
2052
|
-
return t && (r = "meta" in t ? t.meta.dirty : (n = t?.value) === null || n === void 0 ? void 0 : n.dirty) !== null && r !== void 0 ? r : !1;
|
2053
|
-
});
|
2054
|
-
}
|
2055
|
-
function Er(e) {
|
2056
|
-
const t = gt(e);
|
2057
|
-
return S(() => {
|
2058
|
-
var n, r;
|
2059
|
-
return t && (r = "meta" in t ? t.meta.touched : (n = t?.value) === null || n === void 0 ? void 0 : n.touched) !== null && r !== void 0 ? r : !1;
|
2060
|
-
});
|
2061
|
-
}
|
2062
|
-
function Ir(e) {
|
2063
|
-
const t = gt(e);
|
2064
|
-
return S(() => {
|
2065
|
-
var n, r;
|
2066
|
-
return t && (r = "meta" in t ? t.meta.valid : (n = t?.value) === null || n === void 0 ? void 0 : n.valid) !== null && r !== void 0 ? r : !1;
|
2067
|
-
});
|
2068
|
-
}
|
2069
|
-
function jr(e) {
|
2070
|
-
const t = Qe(Fe), n = e ? void 0 : Ce(qe);
|
2071
|
-
return S(() => e ? t?.errors.value[E(e)] : n?.errorMessage.value);
|
2072
|
-
}
|
2073
|
-
function kr() {
|
2074
|
-
const e = Ce(qe), t = Ce(fn), n = {
|
2075
|
-
valid: Ir(),
|
2076
|
-
isDirty: Sr(),
|
2077
|
-
isTouched: Er(),
|
2078
|
-
error: jr()
|
2079
|
-
};
|
2080
|
-
if (!e)
|
2081
|
-
throw new Error("useFormField should be used within <FormField>");
|
2082
|
-
const { name: r } = e, i = t;
|
2083
|
-
return {
|
2084
|
-
id: i,
|
2085
|
-
name: r,
|
2086
|
-
formItemId: `${i}-form-item`,
|
2087
|
-
formDescriptionId: `${i}-form-item-description`,
|
2088
|
-
formMessageId: `${i}-form-item-message`,
|
2089
|
-
...n
|
2090
|
-
};
|
2091
|
-
}
|
2092
|
-
export {
|
2093
|
-
Pr as E,
|
2094
|
-
Fr as F,
|
2095
|
-
wr as a,
|
2096
|
-
kr as u
|
2097
|
-
};
|