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