@soft-stech/bootsman-ui-shadcn 1.1.38 → 1.1.39-beta.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (520) hide show
  1. package/dist/{BuiAccordion.vue_vue_type_script_setup_true_lang-D6NZ2Glm.js → BuiAccordion.vue_vue_type_script_setup_true_lang-nxe3iIoM.js} +3 -3
  2. package/dist/{BuiAccordionContent.vue_vue_type_script_setup_true_lang-DWgwTZC3.js → BuiAccordionContent.vue_vue_type_script_setup_true_lang-pCTYRg2Z.js} +8 -8
  3. package/dist/{BuiAccordionItem.vue_vue_type_script_setup_true_lang-VmckedPQ.js → BuiAccordionItem.vue_vue_type_script_setup_true_lang-Dp-3E0FN.js} +2 -2
  4. package/dist/{BuiAccordionTrigger.vue_vue_type_script_setup_true_lang-CvrPKvEn.js → BuiAccordionTrigger.vue_vue_type_script_setup_true_lang-CtFZfwMC.js} +10 -10
  5. package/dist/{BuiAlertDescription.vue_vue_type_script_setup_true_lang-JGl4jOiY.js → BuiAlertDescription.vue_vue_type_script_setup_true_lang-CVBdwmJq.js} +1 -1
  6. package/dist/{BuiAlertDialog.vue_vue_type_script_setup_true_lang-CYOmW_Y5.js → BuiAlertDialog.vue_vue_type_script_setup_true_lang-CKpn0FlQ.js} +3 -3
  7. package/dist/{BuiAlertDialogAction.vue_vue_type_script_setup_true_lang-B68AKQif.js → BuiAlertDialogAction.vue_vue_type_script_setup_true_lang-evBkU3SL.js} +4 -4
  8. package/dist/{BuiAlertDialogCancel.vue_vue_type_script_setup_true_lang-Dwqlf8oj.js → BuiAlertDialogCancel.vue_vue_type_script_setup_true_lang-ZNOYeYWA.js} +7 -7
  9. package/dist/{BuiAlertDialogContent.vue_vue_type_script_setup_true_lang-DQ3MO21t.js → BuiAlertDialogContent.vue_vue_type_script_setup_true_lang-DFUbXcoh.js} +11 -11
  10. package/dist/{BuiAlertDialogDescription.vue_vue_type_script_setup_true_lang-C0nmsUbU.js → BuiAlertDialogDescription.vue_vue_type_script_setup_true_lang-BNFeSGFa.js} +2 -2
  11. package/dist/{BuiAlertDialogFooter.vue_vue_type_script_setup_true_lang-Bwp16uCV.js → BuiAlertDialogFooter.vue_vue_type_script_setup_true_lang-kJr2Plgw.js} +1 -1
  12. package/dist/{BuiAlertDialogHeader.vue_vue_type_script_setup_true_lang-C9SdCMGG.js → BuiAlertDialogHeader.vue_vue_type_script_setup_true_lang-7Dx74gxo.js} +1 -1
  13. package/dist/{BuiAlertDialogTitle.vue_vue_type_script_setup_true_lang-Dnbl9EtZ.js → BuiAlertDialogTitle.vue_vue_type_script_setup_true_lang-CLxf_ipo.js} +4 -4
  14. package/dist/{BuiAlertDialogTrigger.vue_vue_type_script_setup_true_lang-DALyN6MC.js → BuiAlertDialogTrigger.vue_vue_type_script_setup_true_lang-Cz4RKkoF.js} +2 -2
  15. package/dist/{BuiAlertTitle.vue_vue_type_script_setup_true_lang-CgpdlY3s.js → BuiAlertTitle.vue_vue_type_script_setup_true_lang-BvU1UhRc.js} +1 -1
  16. package/dist/{BuiAspectRatio.vue_vue_type_script_setup_true_lang-DfbboEQK.js → BuiAspectRatio.vue_vue_type_script_setup_true_lang-DDkhBEEl.js} +2 -2
  17. package/dist/BuiAutoForm.vue_vue_type_script_setup_true_lang-BWWNpH1I.js +74 -0
  18. package/dist/BuiAutoFormField.vue_vue_type_script_setup_true_lang-xmzLQDzl.js +294 -0
  19. package/dist/{BuiAutoFormFieldBoolean.vue_vue_type_script_setup_true_lang-BKT85fgx.js → BuiAutoFormFieldBoolean.vue_vue_type_script_setup_true_lang-tuxavlOe.js} +8 -8
  20. package/dist/{BuiAutoFormFieldDate.vue_vue_type_script_setup_true_lang-DWyKdzS5.js → BuiAutoFormFieldDate.vue_vue_type_script_setup_true_lang-Bzg1m-ii.js} +20 -28
  21. package/dist/{BuiAutoFormFieldEnum.vue_vue_type_script_setup_true_lang-BECJ52JQ.js → BuiAutoFormFieldEnum.vue_vue_type_script_setup_true_lang-Bqe8Rt85.js} +21 -21
  22. package/dist/{BuiAutoFormFieldFile.vue_vue_type_script_setup_true_lang-BFuZvVOr.js → BuiAutoFormFieldFile.vue_vue_type_script_setup_true_lang-DrJwn66q.js} +11 -10
  23. package/dist/{BuiAutoFormFieldInput.vue_vue_type_script_setup_true_lang-DGI0ZobZ.js → BuiAutoFormFieldInput.vue_vue_type_script_setup_true_lang-DtBFfiOK.js} +25 -24
  24. package/dist/{BuiAutoFormFieldNumber.vue_vue_type_script_setup_true_lang-DmjImgRr.js → BuiAutoFormFieldNumber.vue_vue_type_script_setup_true_lang-ClLqHM1Y.js} +9 -8
  25. package/dist/{BuiAutoFormLabel.vue_vue_type_script_setup_true_lang-Cnb5VI3E.js → BuiAutoFormLabel.vue_vue_type_script_setup_true_lang-DzpWjTLE.js} +8 -7
  26. package/dist/{BuiAvatarFallback.vue_vue_type_script_setup_true_lang-jsKtoJ8h.js → BuiAvatarFallback.vue_vue_type_script_setup_true_lang-DM4kyiXi.js} +2 -2
  27. package/dist/{BuiAvatarImage.vue_vue_type_script_setup_true_lang-ZeFLLZLS.js → BuiAvatarImage.vue_vue_type_script_setup_true_lang-CpDtlLee.js} +3 -3
  28. package/dist/{BuiCalendar.vue_vue_type_style_index_0_lang-D428Q6Nh.js → BuiCalendar.vue_vue_type_style_index_0_lang-DK4yUiXC.js} +7 -11
  29. package/dist/{BuiCard.vue_vue_type_script_setup_true_lang-BdNbxFvi.js → BuiCard.vue_vue_type_script_setup_true_lang-CN_UnmV6.js} +1 -1
  30. package/dist/{BuiCardContent.vue_vue_type_script_setup_true_lang--U7YuaQv.js → BuiCardContent.vue_vue_type_script_setup_true_lang-B6clSivQ.js} +1 -1
  31. package/dist/{BuiCardDescription.vue_vue_type_script_setup_true_lang-CWcDrner.js → BuiCardDescription.vue_vue_type_script_setup_true_lang-Bf_1xgzn.js} +1 -1
  32. package/dist/{BuiCardFooter.vue_vue_type_script_setup_true_lang-DTYkTHzY.js → BuiCardFooter.vue_vue_type_script_setup_true_lang-Bxt8PufJ.js} +1 -1
  33. package/dist/{BuiCardHeader.vue_vue_type_script_setup_true_lang-7H4mP92e.js → BuiCardHeader.vue_vue_type_script_setup_true_lang-D9miAvuh.js} +1 -1
  34. package/dist/{BuiCardTitle.vue_vue_type_script_setup_true_lang-DR6fWGz9.js → BuiCardTitle.vue_vue_type_script_setup_true_lang-B6T0EtFW.js} +1 -1
  35. package/dist/{BuiCheckbox.vue_vue_type_script_setup_true_lang-CyxEbO5t.js → BuiCheckbox.vue_vue_type_script_setup_true_lang-B0K_SUAC.js} +11 -11
  36. package/dist/{BuiCollapsible.vue_vue_type_script_setup_true_lang-x_Glw-gh.js → BuiCollapsible.vue_vue_type_script_setup_true_lang-BfgRYJts.js} +4 -4
  37. package/dist/{BuiCollapsibleContent.vue_vue_type_script_setup_true_lang-B72_xwvG.js → BuiCollapsibleContent.vue_vue_type_script_setup_true_lang-eieHE5yV.js} +1 -1
  38. package/dist/{BuiCollapsibleTrigger.vue_vue_type_script_setup_true_lang-ByrCdFCy.js → BuiCollapsibleTrigger.vue_vue_type_script_setup_true_lang-DJ8YMCCp.js} +3 -3
  39. package/dist/{BuiCommand.vue_vue_type_script_setup_true_lang-C1O7IDvd.js → BuiCommand.vue_vue_type_script_setup_true_lang-P_fz9PPV.js} +12 -10
  40. package/dist/{BuiCommandDialog.vue_vue_type_script_setup_true_lang-BYYdrUJm.js → BuiCommandDialog.vue_vue_type_script_setup_true_lang-CEnlCiUo.js} +4 -4
  41. package/dist/{BuiCommandEmpty.vue_vue_type_script_setup_true_lang-dM0MIDwK.js → BuiCommandEmpty.vue_vue_type_script_setup_true_lang--AzKirWT.js} +6 -6
  42. package/dist/{BuiCommandGroup.vue_vue_type_script_setup_true_lang--JVL30Bq.js → BuiCommandGroup.vue_vue_type_script_setup_true_lang-oAo3VvXV.js} +8 -8
  43. package/dist/{BuiCommandInput.vue_vue_type_script_setup_true_lang-td41Iq0J.js → BuiCommandInput.vue_vue_type_script_setup_true_lang-BEhdQsvD.js} +3 -3
  44. package/dist/{BuiCommandItem.vue_vue_type_script_setup_true_lang-Co-lQQqw.js → BuiCommandItem.vue_vue_type_script_setup_true_lang-uxCefFTc.js} +5 -5
  45. package/dist/{BuiCommandList.vue_vue_type_script_setup_true_lang-Bp0LuoaV.js → BuiCommandList.vue_vue_type_script_setup_true_lang-bwZcHGfM.js} +5 -5
  46. package/dist/{BuiCommandSeparator.vue_vue_type_script_setup_true_lang-ClosG8me.js → BuiCommandSeparator.vue_vue_type_script_setup_true_lang-DbZAlodh.js} +2 -2
  47. package/dist/{BuiCommandShortcut.vue_vue_type_script_setup_true_lang-DGMEA91e.js → BuiCommandShortcut.vue_vue_type_script_setup_true_lang-DBIJCtZe.js} +1 -1
  48. package/dist/{BuiContextMenu.vue_vue_type_script_setup_true_lang-Bh8oJUyh.js → BuiContextMenu.vue_vue_type_script_setup_true_lang-DygiiuXp.js} +2 -2
  49. package/dist/{BuiContextMenuCheckboxItem.vue_vue_type_script_setup_true_lang-BL5Zlqy2.js → BuiContextMenuCheckboxItem.vue_vue_type_script_setup_true_lang-D0miFbPB.js} +9 -9
  50. package/dist/{BuiContextMenuContent.vue_vue_type_script_setup_true_lang-DtIN0awe.js → BuiContextMenuContent.vue_vue_type_script_setup_true_lang-aP3_J9bg.js} +6 -6
  51. package/dist/{BuiContextMenuGroup.vue_vue_type_script_setup_true_lang-BUlkesJX.js → BuiContextMenuGroup.vue_vue_type_script_setup_true_lang-jMxHU3w0.js} +1 -1
  52. package/dist/{BuiContextMenuItem.vue_vue_type_script_setup_true_lang-BbuySkF5.js → BuiContextMenuItem.vue_vue_type_script_setup_true_lang-D8vfxO74.js} +5 -5
  53. package/dist/{BuiContextMenuLabel.vue_vue_type_script_setup_true_lang-DQ3a_SwA.js → BuiContextMenuLabel.vue_vue_type_script_setup_true_lang-DqPKAvyw.js} +2 -2
  54. package/dist/{BuiContextMenuRadioGroup.vue_vue_type_script_setup_true_lang-CucdMx7c.js → BuiContextMenuRadioGroup.vue_vue_type_script_setup_true_lang-C5R9N60e.js} +7 -7
  55. package/dist/{BuiContextMenuRadioItem.vue_vue_type_script_setup_true_lang-aA32tkEA.js → BuiContextMenuRadioItem.vue_vue_type_script_setup_true_lang-CVenpxL9.js} +8 -8
  56. package/dist/{BuiContextMenuSeparator.vue_vue_type_script_setup_true_lang-DNb1vb3q.js → BuiContextMenuSeparator.vue_vue_type_script_setup_true_lang-CKN8RXqL.js} +4 -4
  57. package/dist/{BuiContextMenuShortcut.vue_vue_type_script_setup_true_lang-ExJmRXvx.js → BuiContextMenuShortcut.vue_vue_type_script_setup_true_lang-DPh99A_h.js} +1 -1
  58. package/dist/{BuiContextMenuSub.vue_vue_type_script_setup_true_lang-CfEN3NAs.js → BuiContextMenuSub.vue_vue_type_script_setup_true_lang-BIXs3Tea.js} +7 -7
  59. package/dist/{BuiContextMenuSubContent.vue_vue_type_script_setup_true_lang-BZxR0wIO.js → BuiContextMenuSubContent.vue_vue_type_script_setup_true_lang-CvYcdr9E.js} +4 -4
  60. package/dist/{BuiContextMenuSubTrigger.vue_vue_type_script_setup_true_lang-CFcwqUKs.js → BuiContextMenuSubTrigger.vue_vue_type_script_setup_true_lang-CF8EBUaF.js} +5 -5
  61. package/dist/{BuiContextMenuTrigger.vue_vue_type_script_setup_true_lang-Bc2IaG-4.js → BuiContextMenuTrigger.vue_vue_type_script_setup_true_lang-Bdy7Lfer.js} +3 -3
  62. package/dist/{BuiDataTable.vue_vue_type_script_setup_true_lang-BWEYe7eA.js → BuiDataTable.vue_vue_type_script_setup_true_lang-B9r03KU3.js} +64 -63
  63. package/dist/{BuiDialog.vue_vue_type_script_setup_true_lang-BCbOviQn.js → BuiDialog.vue_vue_type_script_setup_true_lang-DGrI65dh.js} +3 -3
  64. package/dist/{BuiDialogClose.vue_vue_type_script_setup_true_lang-Fdp24YHC.js → BuiDialogClose.vue_vue_type_script_setup_true_lang-D9w-FsVq.js} +1 -1
  65. package/dist/{BuiDialogContent.vue_vue_type_script_setup_true_lang-DTS5OB86.js → BuiDialogContent.vue_vue_type_script_setup_true_lang-3DBhO_IA.js} +17 -17
  66. package/dist/{BuiDialogDescription.vue_vue_type_script_setup_true_lang-CPGwGG27.js → BuiDialogDescription.vue_vue_type_script_setup_true_lang-B6RlWji2.js} +4 -4
  67. package/dist/{BuiDialogFooter.vue_vue_type_script_setup_true_lang-Blm8xAsp.js → BuiDialogFooter.vue_vue_type_script_setup_true_lang-B89so9mg.js} +1 -1
  68. package/dist/{BuiDialogHeader.vue_vue_type_script_setup_true_lang-DIxMSIbx.js → BuiDialogHeader.vue_vue_type_script_setup_true_lang-2BA5kKFA.js} +1 -1
  69. package/dist/{BuiDialogTitle.vue_vue_type_script_setup_true_lang-Dw4OSpt_.js → BuiDialogTitle.vue_vue_type_script_setup_true_lang-D4lcU_Gz.js} +2 -2
  70. package/dist/{BuiDialogTrigger.vue_vue_type_script_setup_true_lang-C58hpmhT.js → BuiDialogTrigger.vue_vue_type_script_setup_true_lang-Czib4PX-.js} +1 -1
  71. package/dist/{BuiDropdownMenu.vue_vue_type_script_setup_true_lang-BV70HeIN.js → BuiDropdownMenu.vue_vue_type_script_setup_true_lang-BCrmrPva.js} +7 -7
  72. package/dist/{BuiDropdownMenuCheckboxItem.vue_vue_type_script_setup_true_lang-yS6gA48j.js → BuiDropdownMenuCheckboxItem.vue_vue_type_script_setup_true_lang-8u8u19G1.js} +5 -5
  73. package/dist/{BuiDropdownMenuContent.vue_vue_type_script_setup_true_lang-Bb4Q6tSz.js → BuiDropdownMenuContent.vue_vue_type_script_setup_true_lang-6K_84IX2.js} +7 -7
  74. package/dist/{BuiDropdownMenuGroup.vue_vue_type_script_setup_true_lang-DfNb5nUo.js → BuiDropdownMenuGroup.vue_vue_type_script_setup_true_lang-D0CBaLUN.js} +4 -4
  75. package/dist/{BuiDropdownMenuItem.vue_vue_type_script_setup_true_lang--QP6Nby4.js → BuiDropdownMenuItem.vue_vue_type_script_setup_true_lang-CU4I3eC4.js} +5 -5
  76. package/dist/{BuiDropdownMenuLabel.vue_vue_type_script_setup_true_lang-Dh1TMw9d.js → BuiDropdownMenuLabel.vue_vue_type_script_setup_true_lang-BPGNHYh4.js} +2 -2
  77. package/dist/{BuiDropdownMenuRadioGroup.vue_vue_type_script_setup_true_lang-DTcNorlM.js → BuiDropdownMenuRadioGroup.vue_vue_type_script_setup_true_lang-D9qDDKMV.js} +3 -3
  78. package/dist/{BuiDropdownMenuRadioItem.vue_vue_type_script_setup_true_lang-ToMKHcEm.js → BuiDropdownMenuRadioItem.vue_vue_type_script_setup_true_lang-CxyoF0q7.js} +5 -5
  79. package/dist/{BuiDropdownMenuSeparator.vue_vue_type_script_setup_true_lang-BbepqtDL.js → BuiDropdownMenuSeparator.vue_vue_type_script_setup_true_lang-QPaZoZKA.js} +1 -1
  80. package/dist/{BuiDropdownMenuShortcut.vue_vue_type_script_setup_true_lang-BWgELWFx.js → BuiDropdownMenuShortcut.vue_vue_type_script_setup_true_lang-FqWOStNT.js} +1 -1
  81. package/dist/{BuiDropdownMenuSub.vue_vue_type_script_setup_true_lang-Dnqs62GK.js → BuiDropdownMenuSub.vue_vue_type_script_setup_true_lang-CLi87_1u.js} +5 -5
  82. package/dist/{BuiDropdownMenuSubContent.vue_vue_type_script_setup_true_lang-DlTXSDu5.js → BuiDropdownMenuSubContent.vue_vue_type_script_setup_true_lang-mMWlAm-h.js} +5 -5
  83. package/dist/{BuiDropdownMenuSubTrigger.vue_vue_type_script_setup_true_lang-B_LMNZ3o.js → BuiDropdownMenuSubTrigger.vue_vue_type_script_setup_true_lang-DTUQqTHr.js} +3 -3
  84. package/dist/{BuiDropdownMenuTrigger.vue_vue_type_script_setup_true_lang-CCSql0mq.js → BuiDropdownMenuTrigger.vue_vue_type_script_setup_true_lang-cfi8tQ0K.js} +4 -4
  85. package/dist/{BuiFormControl.vue_vue_type_script_setup_true_lang-DVx9ZDv-.js → BuiFormControl.vue_vue_type_script_setup_true_lang-CCJS2wc1.js} +1 -1
  86. package/dist/{BuiFormDescription.vue_vue_type_script_setup_true_lang-BPSgWb0t.js → BuiFormDescription.vue_vue_type_script_setup_true_lang-CeQSv28t.js} +1 -1
  87. package/dist/{BuiFormItem.vue_vue_type_script_setup_true_lang-CP1K61n9.js → BuiFormItem.vue_vue_type_script_setup_true_lang-COw7Rwow.js} +4 -4
  88. package/dist/{BuiFormLabel.vue_vue_type_script_setup_true_lang-BpCjAbUu.js → BuiFormLabel.vue_vue_type_script_setup_true_lang-ClJ8XVcR.js} +5 -5
  89. package/dist/{BuiFormMessage.vue_vue_type_script_setup_true_lang-CD9in3nQ.js → BuiFormMessage.vue_vue_type_script_setup_true_lang-DTdflpS8.js} +3 -3
  90. package/dist/{BuiHoverCard.vue_vue_type_script_setup_true_lang-B4EJAZ1v.js → BuiHoverCard.vue_vue_type_script_setup_true_lang-UvgUvVQh.js} +2 -2
  91. package/dist/{BuiHoverCardContent.vue_vue_type_script_setup_true_lang-RFeTYn_w.js → BuiHoverCardContent.vue_vue_type_script_setup_true_lang-DsSfafrp.js} +4 -4
  92. package/dist/{BuiHoverCardTrigger.vue_vue_type_script_setup_true_lang-DRHctQMn.js → BuiHoverCardTrigger.vue_vue_type_script_setup_true_lang-Cw-9ABpN.js} +1 -1
  93. package/dist/{BuiLabel.vue_vue_type_script_setup_true_lang-DIgQTfIk.js → BuiLabel.vue_vue_type_script_setup_true_lang-DQH-AF9N.js} +6 -6
  94. package/dist/BuiPaginationCommon.vue_vue_type_script_setup_true_lang-6BhiWgI6.js +107 -0
  95. package/dist/{BuiPaginationEllipsis.vue_vue_type_script_setup_true_lang-sLLjg6Lo.js → BuiPaginationEllipsis.vue_vue_type_script_setup_true_lang-2v3zIYpf.js} +7 -7
  96. package/dist/{BuiPaginationFirst.vue_vue_type_script_setup_true_lang-C1v4DiC-.js → BuiPaginationFirst.vue_vue_type_script_setup_true_lang-CvMVo3wC.js} +5 -5
  97. package/dist/{BuiPaginationLast.vue_vue_type_script_setup_true_lang-DU5XYLV2.js → BuiPaginationLast.vue_vue_type_script_setup_true_lang-BTNEZSgQ.js} +5 -5
  98. package/dist/{BuiPaginationNext.vue_vue_type_script_setup_true_lang-vH3Cu1pW.js → BuiPaginationNext.vue_vue_type_script_setup_true_lang-DcwRaAYo.js} +5 -5
  99. package/dist/{BuiPaginationPrev.vue_vue_type_script_setup_true_lang-CTNwqcX0.js → BuiPaginationPrev.vue_vue_type_script_setup_true_lang-DkK8mnKY.js} +6 -6
  100. package/dist/{BuiPopover.vue_vue_type_script_setup_true_lang-zW4DPswi.js → BuiPopover.vue_vue_type_script_setup_true_lang-Ujd6aP3K.js} +6 -6
  101. package/dist/{BuiPopoverContent.vue_vue_type_script_setup_true_lang-DmZlmmde.js → BuiPopoverContent.vue_vue_type_script_setup_true_lang-R7bk_E6m.js} +2 -2
  102. package/dist/BuiPopoverTrigger.vue_vue_type_script_setup_true_lang-Cr_ofPA6.js +21 -0
  103. package/dist/{BuiRadioGroup.vue_vue_type_script_setup_true_lang-Dyyf8FoV.js → BuiRadioGroup.vue_vue_type_script_setup_true_lang-Bzefyzga.js} +5 -5
  104. package/dist/{BuiRadioGroupItem.vue_vue_type_script_setup_true_lang-CeYEovBc.js → BuiRadioGroupItem.vue_vue_type_script_setup_true_lang-D1w59zx2.js} +4 -4
  105. package/dist/{BuiScrollArea.vue_vue_type_script_setup_true_lang-C6sBLycG.js → BuiScrollArea.vue_vue_type_script_setup_true_lang-DN5hbjJX.js} +6 -6
  106. package/dist/{BuiScrollBar.vue_vue_type_script_setup_true_lang-D2FLjGPC.js → BuiScrollBar.vue_vue_type_script_setup_true_lang-CnsvRIhs.js} +3 -3
  107. package/dist/{BuiSelect.vue_vue_type_script_setup_true_lang-m2Wvc7wn.js → BuiSelect.vue_vue_type_script_setup_true_lang-YVZaZc0x.js} +4 -4
  108. package/dist/{BuiSelectContent.vue_vue_type_script_setup_true_lang-D10Iiz4m.js → BuiSelectContent.vue_vue_type_script_setup_true_lang-CX82dW-X.js} +4 -4
  109. package/dist/{BuiSelectGroup.vue_vue_type_script_setup_true_lang-D_fNFsNW.js → BuiSelectGroup.vue_vue_type_script_setup_true_lang-B7bT-kcN.js} +4 -4
  110. package/dist/{BuiSelectItem.vue_vue_type_script_setup_true_lang-DtVOu1-z.js → BuiSelectItem.vue_vue_type_script_setup_true_lang-DsWD84S8.js} +8 -8
  111. package/dist/{BuiSelectItemText.vue_vue_type_script_setup_true_lang-DnGPz6Zk.js → BuiSelectItemText.vue_vue_type_script_setup_true_lang-CMBf17fE.js} +1 -1
  112. package/dist/{BuiSelectLabel.vue_vue_type_script_setup_true_lang-DScZZcu2.js → BuiSelectLabel.vue_vue_type_script_setup_true_lang-Cif3hoiO.js} +4 -4
  113. package/dist/{BuiSelectSeparator.vue_vue_type_script_setup_true_lang-BdOmkbIv.js → BuiSelectSeparator.vue_vue_type_script_setup_true_lang-Bkm9mitz.js} +2 -2
  114. package/dist/{BuiSelectTrigger.vue_vue_type_script_setup_true_lang-B3jcBhnj.js → BuiSelectTrigger.vue_vue_type_script_setup_true_lang-Dh-1xzuh.js} +3 -3
  115. package/dist/{BuiSelectValue.vue_vue_type_script_setup_true_lang-Dj1zDTaG.js → BuiSelectValue.vue_vue_type_script_setup_true_lang-CseYU299.js} +1 -1
  116. package/dist/{BuiSeparator.vue_vue_type_script_setup_true_lang-DdQNHu4h.js → BuiSeparator.vue_vue_type_script_setup_true_lang-DbN8eyHh.js} +2 -2
  117. package/dist/{BuiSlider.vue_vue_type_script_setup_true_lang-pzAiX1XP.js → BuiSlider.vue_vue_type_script_setup_true_lang-BrTF_gnp.js} +5 -5
  118. package/dist/{BuiSwitch.vue_vue_type_script_setup_true_lang-C9ShckgE.js → BuiSwitch.vue_vue_type_script_setup_true_lang-VtywyEjw.js} +6 -6
  119. package/dist/{BuiTable.vue_vue_type_script_setup_true_lang-DtvBDBVo.js → BuiTable.vue_vue_type_script_setup_true_lang-CUPSwE5z.js} +3 -3
  120. package/dist/{BuiTableBody.vue_vue_type_script_setup_true_lang-C8xJ4jmB.js → BuiTableBody.vue_vue_type_script_setup_true_lang-CWT4u-Ma.js} +1 -1
  121. package/dist/{BuiTableCaption.vue_vue_type_script_setup_true_lang-akgSakue.js → BuiTableCaption.vue_vue_type_script_setup_true_lang-053YvtXp.js} +1 -1
  122. package/dist/{BuiTableCell.vue_vue_type_script_setup_true_lang-Bg3H27w9.js → BuiTableCell.vue_vue_type_script_setup_true_lang-BrTQJCiZ.js} +1 -1
  123. package/dist/{BuiTableEmpty.vue_vue_type_script_setup_true_lang-DdNjsCQp.js → BuiTableEmpty.vue_vue_type_script_setup_true_lang-BJDYHpRG.js} +3 -3
  124. package/dist/{BuiTableFooter.vue_vue_type_script_setup_true_lang-BBpzOKn2.js → BuiTableFooter.vue_vue_type_script_setup_true_lang-Cfxlxsbh.js} +1 -1
  125. package/dist/{BuiTableHead.vue_vue_type_script_setup_true_lang-fjU0tzXQ.js → BuiTableHead.vue_vue_type_script_setup_true_lang-bRr43VQ9.js} +1 -1
  126. package/dist/{BuiTableHeader.vue_vue_type_script_setup_true_lang-DPm0jnLo.js → BuiTableHeader.vue_vue_type_script_setup_true_lang-DZOqi3dp.js} +1 -1
  127. package/dist/{BuiTableRow.vue_vue_type_script_setup_true_lang-BtsefcWm.js → BuiTableRow.vue_vue_type_script_setup_true_lang-CpEilJsW.js} +1 -1
  128. package/dist/BuiTableRowSubrow.vue_vue_type_script_setup_true_lang-Ch5gemw2.js +65 -0
  129. package/dist/{BuiTabs.vue_vue_type_script_setup_true_lang-Bx9h7mN7.js → BuiTabs.vue_vue_type_script_setup_true_lang-DZavy0KI.js} +8 -8
  130. package/dist/{BuiTabsContent.vue_vue_type_script_setup_true_lang-fhGgOsCb.js → BuiTabsContent.vue_vue_type_script_setup_true_lang-BGARj0PN.js} +4 -4
  131. package/dist/{BuiToastAction.vue_vue_type_script_setup_true_lang-CQdfsCpV.js → BuiToastAction.vue_vue_type_script_setup_true_lang-BnduHxHU.js} +2 -2
  132. package/dist/{BuiToastClose.vue_vue_type_script_setup_true_lang-DKcinPYL.js → BuiToastClose.vue_vue_type_script_setup_true_lang-D8a4DIAU.js} +9 -9
  133. package/dist/{BuiToastDescription.vue_vue_type_script_setup_true_lang-DilPK4c7.js → BuiToastDescription.vue_vue_type_script_setup_true_lang-DttuuxON.js} +4 -4
  134. package/dist/{BuiToastProvider.vue_vue_type_script_setup_true_lang-D6BsFeKl.js → BuiToastProvider.vue_vue_type_script_setup_true_lang-V09S1Ros.js} +5 -5
  135. package/dist/{BuiToastTitle.vue_vue_type_script_setup_true_lang-DKYb0KDP.js → BuiToastTitle.vue_vue_type_script_setup_true_lang-BTPprH2k.js} +6 -6
  136. package/dist/{BuiToastViewport.vue_vue_type_script_setup_true_lang-CNJXlkVy.js → BuiToastViewport.vue_vue_type_script_setup_true_lang-DGcOPCBU.js} +4 -4
  137. package/dist/{BuiToggleGroup.vue_vue_type_script_setup_true_lang-BVLWma8L.js → BuiToggleGroup.vue_vue_type_script_setup_true_lang-D4bAsz99.js} +8 -8
  138. package/dist/{BuiToggleGroupItem.vue_vue_type_script_setup_true_lang-CxIsZIZP.js → BuiToggleGroupItem.vue_vue_type_script_setup_true_lang-BoEvQmPy.js} +14 -14
  139. package/dist/{BuiTooltip.vue_vue_type_script_setup_true_lang-BUpZD1YF.js → BuiTooltip.vue_vue_type_script_setup_true_lang-CsOjyqI1.js} +2 -2
  140. package/dist/{BuiTooltipContent.vue_vue_type_script_setup_true_lang-BlJipdor.js → BuiTooltipContent.vue_vue_type_script_setup_true_lang-DeCynYsO.js} +10 -9
  141. package/dist/{BuiTooltipProvider.vue_vue_type_script_setup_true_lang-BPhsWP8Y.js → BuiTooltipProvider.vue_vue_type_script_setup_true_lang-DE2Dcdd0.js} +3 -3
  142. package/dist/{BuiTooltipTrigger.vue_vue_type_script_setup_true_lang-BQG5Ssoc.js → BuiTooltipTrigger.vue_vue_type_script_setup_true_lang-Bb8h7e0Q.js} +1 -1
  143. package/dist/{Skeleton.vue_vue_type_script_setup_true_lang-D5EVQxHg.js → Skeleton.vue_vue_type_script_setup_true_lang-BA2fwC6Z.js} +1 -1
  144. package/dist/assets/main.css +1 -1
  145. package/dist/{check-DKcXJk1r.js → check-npU4Mr7d.js} +2 -2
  146. package/dist/{chevron-down-C5w5Vj70.js → chevron-down-ILJn0W7E.js} +2 -2
  147. package/dist/{chevron-left-BqvZOD-Y.js → chevron-left-1MnPaUDG.js} +2 -2
  148. package/dist/{chevron-right-ZmwmaSAu.js → chevron-right-D6qOvvY2.js} +2 -2
  149. package/dist/{circle-Da-wgB2G.js → circle-DfMTPWb6.js} +2 -2
  150. package/dist/components/ui/accordion/BuiAccordion.js +1 -1
  151. package/dist/components/ui/accordion/BuiAccordion.vue.d.ts +13 -16
  152. package/dist/components/ui/accordion/BuiAccordionContent.js +1 -1
  153. package/dist/components/ui/accordion/BuiAccordionContent.vue.d.ts +13 -16
  154. package/dist/components/ui/accordion/BuiAccordionItem.js +1 -1
  155. package/dist/components/ui/accordion/BuiAccordionItem.vue.d.ts +13 -16
  156. package/dist/components/ui/accordion/BuiAccordionTrigger.js +1 -1
  157. package/dist/components/ui/accordion/BuiAccordionTrigger.vue.d.ts +15 -18
  158. package/dist/components/ui/accordion/index.js +4 -4
  159. package/dist/components/ui/alert/BuiAlert.vue.d.ts +11 -14
  160. package/dist/components/ui/alert/BuiAlertDescription.js +1 -1
  161. package/dist/components/ui/alert/BuiAlertDescription.vue.d.ts +12 -5
  162. package/dist/components/ui/alert/BuiAlertTitle.js +1 -1
  163. package/dist/components/ui/alert/BuiAlertTitle.vue.d.ts +10 -3
  164. package/dist/components/ui/alert/index.js +3 -3
  165. package/dist/components/ui/alert-dialog/BuiAlertDialog.js +1 -1
  166. package/dist/components/ui/alert-dialog/BuiAlertDialog.vue.d.ts +13 -16
  167. package/dist/components/ui/alert-dialog/BuiAlertDialogAction.js +1 -1
  168. package/dist/components/ui/alert-dialog/BuiAlertDialogAction.vue.d.ts +9 -12
  169. package/dist/components/ui/alert-dialog/BuiAlertDialogCancel.js +1 -1
  170. package/dist/components/ui/alert-dialog/BuiAlertDialogCancel.vue.d.ts +9 -12
  171. package/dist/components/ui/alert-dialog/BuiAlertDialogContent.js +1 -1
  172. package/dist/components/ui/alert-dialog/BuiAlertDialogContent.vue.d.ts +22 -25
  173. package/dist/components/ui/alert-dialog/BuiAlertDialogDescription.js +1 -1
  174. package/dist/components/ui/alert-dialog/BuiAlertDialogDescription.vue.d.ts +13 -16
  175. package/dist/components/ui/alert-dialog/BuiAlertDialogFooter.js +1 -1
  176. package/dist/components/ui/alert-dialog/BuiAlertDialogFooter.vue.d.ts +13 -6
  177. package/dist/components/ui/alert-dialog/BuiAlertDialogHeader.js +1 -1
  178. package/dist/components/ui/alert-dialog/BuiAlertDialogHeader.vue.d.ts +13 -6
  179. package/dist/components/ui/alert-dialog/BuiAlertDialogTitle.js +1 -1
  180. package/dist/components/ui/alert-dialog/BuiAlertDialogTitle.vue.d.ts +13 -16
  181. package/dist/components/ui/alert-dialog/BuiAlertDialogTrigger.js +1 -1
  182. package/dist/components/ui/alert-dialog/BuiAlertDialogTrigger.vue.d.ts +9 -12
  183. package/dist/components/ui/alert-dialog/index.js +9 -9
  184. package/dist/components/ui/aspect-ratio/BuiAspectRatio.js +1 -1
  185. package/dist/components/ui/aspect-ratio/BuiAspectRatio.vue.d.ts +9 -12
  186. package/dist/components/ui/aspect-ratio/index.js +1 -1
  187. package/dist/components/ui/auto-form/BuiAutoForm.js +1 -1
  188. package/dist/components/ui/auto-form/BuiAutoForm.vue.d.ts +17 -64
  189. package/dist/components/ui/auto-form/BuiAutoFormField.js +1 -1
  190. package/dist/components/ui/auto-form/BuiAutoFormField.vue.d.ts +10 -30
  191. package/dist/components/ui/auto-form/BuiAutoFormFieldArray.js +1 -1
  192. package/dist/components/ui/auto-form/BuiAutoFormFieldBoolean.js +1 -1
  193. package/dist/components/ui/auto-form/BuiAutoFormFieldBoolean.vue.d.ts +25 -28
  194. package/dist/components/ui/auto-form/BuiAutoFormFieldDate.js +1 -1
  195. package/dist/components/ui/auto-form/BuiAutoFormFieldDate.vue.d.ts +25 -28
  196. package/dist/components/ui/auto-form/BuiAutoFormFieldEnum.js +1 -1
  197. package/dist/components/ui/auto-form/BuiAutoFormFieldEnum.vue.d.ts +29 -32
  198. package/dist/components/ui/auto-form/BuiAutoFormFieldFile.js +1 -1
  199. package/dist/components/ui/auto-form/BuiAutoFormFieldFile.vue.d.ts +25 -28
  200. package/dist/components/ui/auto-form/BuiAutoFormFieldInput.js +1 -1
  201. package/dist/components/ui/auto-form/BuiAutoFormFieldInput.vue.d.ts +25 -28
  202. package/dist/components/ui/auto-form/BuiAutoFormFieldNumber.js +1 -1
  203. package/dist/components/ui/auto-form/BuiAutoFormFieldNumber.vue.d.ts +25 -28
  204. package/dist/components/ui/auto-form/BuiAutoFormFieldObject.js +1 -1
  205. package/dist/components/ui/auto-form/BuiAutoFormLabel.js +1 -1
  206. package/dist/components/ui/auto-form/BuiAutoFormLabel.vue.d.ts +13 -15
  207. package/dist/components/ui/auto-form/constant.js +7 -7
  208. package/dist/components/ui/auto-form/dependencies.d.ts +17 -6
  209. package/dist/components/ui/auto-form/dependencies.js +9 -10
  210. package/dist/components/ui/auto-form/index.js +9 -9
  211. package/dist/components/ui/auto-form/interface.d.ts +2 -3
  212. package/dist/components/ui/auto-form/utils.d.ts +0 -1
  213. package/dist/components/ui/avatar/BuiAvatar.vue.d.ts +11 -28
  214. package/dist/components/ui/avatar/BuiAvatarFallback.js +1 -1
  215. package/dist/components/ui/avatar/BuiAvatarFallback.vue.d.ts +9 -12
  216. package/dist/components/ui/avatar/BuiAvatarImage.js +1 -1
  217. package/dist/components/ui/avatar/BuiAvatarImage.vue.d.ts +1 -11
  218. package/dist/components/ui/avatar/index.js +6 -6
  219. package/dist/components/ui/badge/BuiBadge.vue.d.ts +15 -30
  220. package/dist/components/ui/badge/index.js +2 -2
  221. package/dist/components/ui/button/BuiButton.js +1 -1
  222. package/dist/components/ui/button/BuiButton.vue.d.ts +12 -29
  223. package/dist/components/ui/button/index.d.ts +1 -1
  224. package/dist/components/ui/button/index.js +1 -1
  225. package/dist/components/ui/calendar/BuiCalendar.js +1 -1
  226. package/dist/components/ui/calendar/index.js +5 -5
  227. package/dist/components/ui/card/BuiCard.js +1 -1
  228. package/dist/components/ui/card/BuiCard.vue.d.ts +13 -6
  229. package/dist/components/ui/card/BuiCardContent.js +1 -1
  230. package/dist/components/ui/card/BuiCardContent.vue.d.ts +13 -6
  231. package/dist/components/ui/card/BuiCardDescription.js +1 -1
  232. package/dist/components/ui/card/BuiCardDescription.vue.d.ts +13 -6
  233. package/dist/components/ui/card/BuiCardFooter.js +1 -1
  234. package/dist/components/ui/card/BuiCardFooter.vue.d.ts +13 -6
  235. package/dist/components/ui/card/BuiCardHeader.js +1 -1
  236. package/dist/components/ui/card/BuiCardHeader.vue.d.ts +13 -6
  237. package/dist/components/ui/card/BuiCardTitle.js +1 -1
  238. package/dist/components/ui/card/BuiCardTitle.vue.d.ts +13 -6
  239. package/dist/components/ui/card/index.js +6 -6
  240. package/dist/components/ui/checkbox/BuiCheckbox.js +1 -1
  241. package/dist/components/ui/checkbox/BuiCheckbox.vue.d.ts +4 -14
  242. package/dist/components/ui/checkbox/index.js +1 -1
  243. package/dist/components/ui/collapsible/BuiCollapsible.js +1 -1
  244. package/dist/components/ui/collapsible/BuiCollapsible.vue.d.ts +15 -18
  245. package/dist/components/ui/collapsible/BuiCollapsibleContent.js +1 -1
  246. package/dist/components/ui/collapsible/BuiCollapsibleContent.vue.d.ts +9 -12
  247. package/dist/components/ui/collapsible/BuiCollapsibleTrigger.js +1 -1
  248. package/dist/components/ui/collapsible/BuiCollapsibleTrigger.vue.d.ts +9 -12
  249. package/dist/components/ui/collapsible/index.js +3 -3
  250. package/dist/components/ui/command/BuiCommand.js +1 -1
  251. package/dist/components/ui/command/BuiCommand.vue.d.ts +17 -18
  252. package/dist/components/ui/command/BuiCommandDialog.js +1 -1
  253. package/dist/components/ui/command/BuiCommandDialog.vue.d.ts +13 -16
  254. package/dist/components/ui/command/BuiCommandEmpty.js +1 -1
  255. package/dist/components/ui/command/BuiCommandEmpty.vue.d.ts +9 -12
  256. package/dist/components/ui/command/BuiCommandGroup.js +1 -1
  257. package/dist/components/ui/command/BuiCommandGroup.vue.d.ts +13 -16
  258. package/dist/components/ui/command/BuiCommandInput.js +1 -1
  259. package/dist/components/ui/command/BuiCommandInput.vue.d.ts +1 -11
  260. package/dist/components/ui/command/BuiCommandItem.js +1 -1
  261. package/dist/components/ui/command/BuiCommandItem.vue.d.ts +13 -16
  262. package/dist/components/ui/command/BuiCommandList.js +1 -1
  263. package/dist/components/ui/command/BuiCommandList.vue.d.ts +16 -19
  264. package/dist/components/ui/command/BuiCommandSeparator.js +1 -1
  265. package/dist/components/ui/command/BuiCommandSeparator.vue.d.ts +9 -12
  266. package/dist/components/ui/command/BuiCommandShortcut.js +1 -1
  267. package/dist/components/ui/command/BuiCommandShortcut.vue.d.ts +10 -3
  268. package/dist/components/ui/command/index.js +9 -9
  269. package/dist/components/ui/context-menu/BuiContextMenu.js +1 -1
  270. package/dist/components/ui/context-menu/BuiContextMenu.vue.d.ts +13 -16
  271. package/dist/components/ui/context-menu/BuiContextMenuCheckboxItem.js +1 -1
  272. package/dist/components/ui/context-menu/BuiContextMenuCheckboxItem.vue.d.ts +18 -21
  273. package/dist/components/ui/context-menu/BuiContextMenuContent.js +1 -1
  274. package/dist/components/ui/context-menu/BuiContextMenuContent.vue.d.ts +21 -24
  275. package/dist/components/ui/context-menu/BuiContextMenuGroup.js +1 -1
  276. package/dist/components/ui/context-menu/BuiContextMenuGroup.vue.d.ts +9 -12
  277. package/dist/components/ui/context-menu/BuiContextMenuItem.js +1 -1
  278. package/dist/components/ui/context-menu/BuiContextMenuItem.vue.d.ts +19 -22
  279. package/dist/components/ui/context-menu/BuiContextMenuLabel.js +1 -1
  280. package/dist/components/ui/context-menu/BuiContextMenuLabel.vue.d.ts +15 -18
  281. package/dist/components/ui/context-menu/BuiContextMenuPortal.js +1 -1
  282. package/dist/components/ui/context-menu/BuiContextMenuRadioGroup.js +1 -1
  283. package/dist/components/ui/context-menu/BuiContextMenuRadioGroup.vue.d.ts +13 -16
  284. package/dist/components/ui/context-menu/BuiContextMenuRadioItem.js +1 -1
  285. package/dist/components/ui/context-menu/BuiContextMenuRadioItem.vue.d.ts +17 -20
  286. package/dist/components/ui/context-menu/BuiContextMenuSeparator.js +1 -1
  287. package/dist/components/ui/context-menu/BuiContextMenuSeparator.vue.d.ts +1 -11
  288. package/dist/components/ui/context-menu/BuiContextMenuShortcut.js +1 -1
  289. package/dist/components/ui/context-menu/BuiContextMenuShortcut.vue.d.ts +10 -3
  290. package/dist/components/ui/context-menu/BuiContextMenuSub.js +1 -1
  291. package/dist/components/ui/context-menu/BuiContextMenuSub.vue.d.ts +13 -16
  292. package/dist/components/ui/context-menu/BuiContextMenuSubContent.js +1 -1
  293. package/dist/components/ui/context-menu/BuiContextMenuSubContent.vue.d.ts +23 -26
  294. package/dist/components/ui/context-menu/BuiContextMenuSubTrigger.js +1 -1
  295. package/dist/components/ui/context-menu/BuiContextMenuSubTrigger.vue.d.ts +15 -18
  296. package/dist/components/ui/context-menu/BuiContextMenuTrigger.js +1 -1
  297. package/dist/components/ui/context-menu/BuiContextMenuTrigger.vue.d.ts +9 -12
  298. package/dist/components/ui/context-menu/index.js +14 -14
  299. package/dist/components/ui/dialog/BuiDialog.js +1 -1
  300. package/dist/components/ui/dialog/BuiDialog.vue.d.ts +13 -16
  301. package/dist/components/ui/dialog/BuiDialogClose.js +1 -1
  302. package/dist/components/ui/dialog/BuiDialogClose.vue.d.ts +9 -12
  303. package/dist/components/ui/dialog/BuiDialogContent.js +1 -1
  304. package/dist/components/ui/dialog/BuiDialogContent.vue.d.ts +22 -25
  305. package/dist/components/ui/dialog/BuiDialogDescription.js +1 -1
  306. package/dist/components/ui/dialog/BuiDialogDescription.vue.d.ts +13 -16
  307. package/dist/components/ui/dialog/BuiDialogFooter.js +1 -1
  308. package/dist/components/ui/dialog/BuiDialogFooter.vue.d.ts +9 -11
  309. package/dist/components/ui/dialog/BuiDialogHeader.js +1 -1
  310. package/dist/components/ui/dialog/BuiDialogHeader.vue.d.ts +9 -11
  311. package/dist/components/ui/dialog/BuiDialogTitle.js +1 -1
  312. package/dist/components/ui/dialog/BuiDialogTitle.vue.d.ts +13 -16
  313. package/dist/components/ui/dialog/BuiDialogTrigger.js +1 -1
  314. package/dist/components/ui/dialog/BuiDialogTrigger.vue.d.ts +9 -12
  315. package/dist/components/ui/dialog/index.js +8 -8
  316. package/dist/components/ui/dropdown-menu/BuiDropdownMenu.js +1 -1
  317. package/dist/components/ui/dropdown-menu/BuiDropdownMenu.vue.d.ts +13 -16
  318. package/dist/components/ui/dropdown-menu/BuiDropdownMenuCheckboxItem.js +1 -1
  319. package/dist/components/ui/dropdown-menu/BuiDropdownMenuCheckboxItem.vue.d.ts +18 -21
  320. package/dist/components/ui/dropdown-menu/BuiDropdownMenuContent.js +1 -1
  321. package/dist/components/ui/dropdown-menu/BuiDropdownMenuContent.vue.d.ts +22 -37
  322. package/dist/components/ui/dropdown-menu/BuiDropdownMenuGroup.js +1 -1
  323. package/dist/components/ui/dropdown-menu/BuiDropdownMenuGroup.vue.d.ts +9 -12
  324. package/dist/components/ui/dropdown-menu/BuiDropdownMenuItem.js +1 -1
  325. package/dist/components/ui/dropdown-menu/BuiDropdownMenuItem.vue.d.ts +15 -18
  326. package/dist/components/ui/dropdown-menu/BuiDropdownMenuLabel.js +1 -1
  327. package/dist/components/ui/dropdown-menu/BuiDropdownMenuLabel.vue.d.ts +15 -18
  328. package/dist/components/ui/dropdown-menu/BuiDropdownMenuRadioGroup.js +1 -1
  329. package/dist/components/ui/dropdown-menu/BuiDropdownMenuRadioGroup.vue.d.ts +13 -16
  330. package/dist/components/ui/dropdown-menu/BuiDropdownMenuRadioItem.js +1 -1
  331. package/dist/components/ui/dropdown-menu/BuiDropdownMenuRadioItem.vue.d.ts +17 -20
  332. package/dist/components/ui/dropdown-menu/BuiDropdownMenuSeparator.js +1 -1
  333. package/dist/components/ui/dropdown-menu/BuiDropdownMenuSeparator.vue.d.ts +1 -11
  334. package/dist/components/ui/dropdown-menu/BuiDropdownMenuShortcut.js +1 -1
  335. package/dist/components/ui/dropdown-menu/BuiDropdownMenuShortcut.vue.d.ts +10 -3
  336. package/dist/components/ui/dropdown-menu/BuiDropdownMenuSub.js +1 -1
  337. package/dist/components/ui/dropdown-menu/BuiDropdownMenuSub.vue.d.ts +13 -16
  338. package/dist/components/ui/dropdown-menu/BuiDropdownMenuSubContent.js +1 -1
  339. package/dist/components/ui/dropdown-menu/BuiDropdownMenuSubContent.vue.d.ts +19 -22
  340. package/dist/components/ui/dropdown-menu/BuiDropdownMenuSubTrigger.js +1 -1
  341. package/dist/components/ui/dropdown-menu/BuiDropdownMenuSubTrigger.vue.d.ts +13 -16
  342. package/dist/components/ui/dropdown-menu/BuiDropdownMenuTrigger.js +1 -1
  343. package/dist/components/ui/dropdown-menu/BuiDropdownMenuTrigger.vue.d.ts +9 -12
  344. package/dist/components/ui/dropdown-menu/index.js +18 -18
  345. package/dist/components/ui/form/BuiFormControl.js +1 -1
  346. package/dist/components/ui/form/BuiFormControl.vue.d.ts +10 -3
  347. package/dist/components/ui/form/BuiFormDescription.js +1 -1
  348. package/dist/components/ui/form/BuiFormDescription.vue.d.ts +10 -3
  349. package/dist/components/ui/form/BuiFormItem.js +2 -2
  350. package/dist/components/ui/form/BuiFormItem.vue.d.ts +1 -2
  351. package/dist/components/ui/form/BuiFormLabel.js +1 -1
  352. package/dist/components/ui/form/BuiFormLabel.vue.d.ts +9 -12
  353. package/dist/components/ui/form/BuiFormMessage.js +1 -1
  354. package/dist/components/ui/form/BuiFormMessage.vue.d.ts +1 -1
  355. package/dist/components/ui/form/index.js +12 -12
  356. package/dist/components/ui/form/useFormField.js +5 -6
  357. package/dist/components/ui/health/BuiHealth.vue.d.ts +12 -36
  358. package/dist/components/ui/health/index.js +1 -1
  359. package/dist/components/ui/hover-card/BuiHoverCard.js +1 -1
  360. package/dist/components/ui/hover-card/BuiHoverCard.vue.d.ts +9 -12
  361. package/dist/components/ui/hover-card/BuiHoverCardContent.js +1 -1
  362. package/dist/components/ui/hover-card/BuiHoverCardContent.vue.d.ts +15 -30
  363. package/dist/components/ui/hover-card/BuiHoverCardTrigger.js +1 -1
  364. package/dist/components/ui/hover-card/BuiHoverCardTrigger.vue.d.ts +9 -12
  365. package/dist/components/ui/hover-card/index.js +3 -3
  366. package/dist/components/ui/input/BuiBadgedInput.vue.d.ts +3 -12
  367. package/dist/components/ui/input/BuiInput.vue.d.ts +15 -25
  368. package/dist/components/ui/input/BuiPasswordInput.vue.d.ts +1 -1
  369. package/dist/components/ui/input/index.js +37 -28
  370. package/dist/components/ui/label/BuiLabel.js +1 -1
  371. package/dist/components/ui/label/BuiLabel.vue.d.ts +13 -16
  372. package/dist/components/ui/label/index.js +1 -1
  373. package/dist/components/ui/pagination/BuiPaginationCommon.js +1 -1
  374. package/dist/components/ui/pagination/BuiPaginationCommon.vue.d.ts +14 -27
  375. package/dist/components/ui/pagination/BuiPaginationEllipsis.js +1 -1
  376. package/dist/components/ui/pagination/BuiPaginationEllipsis.vue.d.ts +9 -12
  377. package/dist/components/ui/pagination/BuiPaginationFirst.js +1 -1
  378. package/dist/components/ui/pagination/BuiPaginationFirst.vue.d.ts +11 -26
  379. package/dist/components/ui/pagination/BuiPaginationLast.js +1 -1
  380. package/dist/components/ui/pagination/BuiPaginationLast.vue.d.ts +11 -26
  381. package/dist/components/ui/pagination/BuiPaginationNext.js +1 -1
  382. package/dist/components/ui/pagination/BuiPaginationNext.vue.d.ts +11 -26
  383. package/dist/components/ui/pagination/BuiPaginationPrev.js +1 -1
  384. package/dist/components/ui/pagination/BuiPaginationPrev.vue.d.ts +11 -26
  385. package/dist/components/ui/pagination/index.js +9 -9
  386. package/dist/components/ui/popover/BuiPopover.js +1 -1
  387. package/dist/components/ui/popover/BuiPopover.vue.d.ts +13 -16
  388. package/dist/components/ui/popover/BuiPopoverContent.js +1 -1
  389. package/dist/components/ui/popover/BuiPopoverContent.vue.d.ts +23 -38
  390. package/dist/components/ui/popover/BuiPopoverTrigger.js +1 -1
  391. package/dist/components/ui/popover/BuiPopoverTrigger.vue.d.ts +9 -12
  392. package/dist/components/ui/popover/index.js +3 -3
  393. package/dist/components/ui/progress/BuiProgress.vue.d.ts +11 -35
  394. package/dist/components/ui/progress/index.js +8 -8
  395. package/dist/components/ui/radio-group/BuiRadioGroup.js +1 -1
  396. package/dist/components/ui/radio-group/BuiRadioGroup.vue.d.ts +17 -20
  397. package/dist/components/ui/radio-group/BuiRadioGroupItem.js +1 -1
  398. package/dist/components/ui/radio-group/BuiRadioGroupItem.vue.d.ts +5 -15
  399. package/dist/components/ui/radio-group/index.js +2 -2
  400. package/dist/components/ui/scroll-area/BuiScrollArea.js +1 -1
  401. package/dist/components/ui/scroll-area/BuiScrollArea.vue.d.ts +14 -16
  402. package/dist/components/ui/scroll-area/BuiScrollBar.js +1 -1
  403. package/dist/components/ui/scroll-area/BuiScrollBar.vue.d.ts +7 -29
  404. package/dist/components/ui/scroll-area/index.js +2 -2
  405. package/dist/components/ui/select/Bui.js +4 -4
  406. package/dist/components/ui/select/BuiSelect.js +1 -1
  407. package/dist/components/ui/select/BuiSelect.vue.d.ts +14 -17
  408. package/dist/components/ui/select/BuiSelectContent.js +1 -1
  409. package/dist/components/ui/select/BuiSelectContent.vue.d.ts +21 -40
  410. package/dist/components/ui/select/BuiSelectGroup.js +1 -1
  411. package/dist/components/ui/select/BuiSelectGroup.vue.d.ts +13 -16
  412. package/dist/components/ui/select/BuiSelectItem.js +1 -1
  413. package/dist/components/ui/select/BuiSelectItem.vue.d.ts +13 -16
  414. package/dist/components/ui/select/BuiSelectItemText.js +1 -1
  415. package/dist/components/ui/select/BuiSelectItemText.vue.d.ts +9 -12
  416. package/dist/components/ui/select/BuiSelectLabel.js +1 -1
  417. package/dist/components/ui/select/BuiSelectLabel.vue.d.ts +13 -16
  418. package/dist/components/ui/select/BuiSelectSeparator.js +1 -1
  419. package/dist/components/ui/select/BuiSelectSeparator.vue.d.ts +5 -15
  420. package/dist/components/ui/select/BuiSelectTrigger.js +1 -1
  421. package/dist/components/ui/select/BuiSelectTrigger.vue.d.ts +18 -35
  422. package/dist/components/ui/select/BuiSelectValue.js +1 -1
  423. package/dist/components/ui/select/BuiSelectValue.vue.d.ts +9 -12
  424. package/dist/components/ui/select/index.js +9 -9
  425. package/dist/components/ui/separator/BuiSeparator.js +1 -1
  426. package/dist/components/ui/separator/BuiSeparator.vue.d.ts +5 -15
  427. package/dist/components/ui/separator/index.js +1 -1
  428. package/dist/components/ui/skeleton/Skeleton.js +1 -1
  429. package/dist/components/ui/skeleton/Skeleton.vue.d.ts +1 -11
  430. package/dist/components/ui/skeleton/index.js +1 -1
  431. package/dist/components/ui/slider/BuiSlider.js +1 -1
  432. package/dist/components/ui/slider/BuiSlider.vue.d.ts +5 -15
  433. package/dist/components/ui/slider/index.js +1 -1
  434. package/dist/components/ui/switch/BuiSwitch.js +1 -1
  435. package/dist/components/ui/switch/BuiSwitch.vue.d.ts +8 -18
  436. package/dist/components/ui/switch/index.js +1 -1
  437. package/dist/components/ui/table/BuiDataTable.js +1 -1
  438. package/dist/components/ui/table/BuiDataTable.vue.d.ts +32 -68
  439. package/dist/components/ui/table/BuiTable.js +1 -1
  440. package/dist/components/ui/table/BuiTable.vue.d.ts +13 -15
  441. package/dist/components/ui/table/BuiTableBody.js +1 -1
  442. package/dist/components/ui/table/BuiTableBody.vue.d.ts +13 -15
  443. package/dist/components/ui/table/BuiTableCaption.js +1 -1
  444. package/dist/components/ui/table/BuiTableCaption.vue.d.ts +13 -15
  445. package/dist/components/ui/table/BuiTableCell.js +1 -1
  446. package/dist/components/ui/table/BuiTableCell.vue.d.ts +13 -15
  447. package/dist/components/ui/table/BuiTableEmpty.js +1 -1
  448. package/dist/components/ui/table/BuiTableEmpty.vue.d.ts +11 -27
  449. package/dist/components/ui/table/BuiTableFooter.js +1 -1
  450. package/dist/components/ui/table/BuiTableFooter.vue.d.ts +13 -15
  451. package/dist/components/ui/table/BuiTableHead.js +1 -1
  452. package/dist/components/ui/table/BuiTableHead.vue.d.ts +13 -15
  453. package/dist/components/ui/table/BuiTableHeader.js +1 -1
  454. package/dist/components/ui/table/BuiTableHeader.vue.d.ts +13 -15
  455. package/dist/components/ui/table/BuiTableRow.js +1 -1
  456. package/dist/components/ui/table/BuiTableRow.vue.d.ts +13 -15
  457. package/dist/components/ui/table/BuiTableRowSubrow.js +1 -1
  458. package/dist/components/ui/table/BuiTableRowSubrow.vue.d.ts +10 -26
  459. package/dist/components/ui/table/index.js +11 -11
  460. package/dist/components/ui/tabs/BuiTabs.js +1 -1
  461. package/dist/components/ui/tabs/BuiTabs.vue.d.ts +13 -16
  462. package/dist/components/ui/tabs/BuiTabsContent.js +1 -1
  463. package/dist/components/ui/tabs/BuiTabsContent.vue.d.ts +13 -16
  464. package/dist/components/ui/tabs/BuiTabsList.vue.d.ts +10 -13
  465. package/dist/components/ui/tabs/BuiTabsTrigger.vue.d.ts +10 -13
  466. package/dist/components/ui/tabs/index.d.ts +2 -2
  467. package/dist/components/ui/tabs/index.js +10 -10
  468. package/dist/components/ui/textarea/BuiTextarea.vue.d.ts +12 -22
  469. package/dist/components/ui/textarea/index.js +2 -2
  470. package/dist/components/ui/toast/BuiToast.vue.d.ts +13 -23
  471. package/dist/components/ui/toast/BuiToastAction.js +1 -1
  472. package/dist/components/ui/toast/BuiToastAction.vue.d.ts +13 -16
  473. package/dist/components/ui/toast/BuiToastClose.js +1 -1
  474. package/dist/components/ui/toast/BuiToastClose.vue.d.ts +5 -14
  475. package/dist/components/ui/toast/BuiToastDescription.js +1 -1
  476. package/dist/components/ui/toast/BuiToastDescription.vue.d.ts +13 -16
  477. package/dist/components/ui/toast/BuiToastProvider.js +1 -1
  478. package/dist/components/ui/toast/BuiToastProvider.vue.d.ts +9 -12
  479. package/dist/components/ui/toast/BuiToastTitle.js +1 -1
  480. package/dist/components/ui/toast/BuiToastTitle.vue.d.ts +13 -16
  481. package/dist/components/ui/toast/BuiToastViewport.js +1 -1
  482. package/dist/components/ui/toast/BuiToastViewport.vue.d.ts +5 -15
  483. package/dist/components/ui/toast/BuiToaster.vue.d.ts +1 -1
  484. package/dist/components/ui/toast/index.js +14 -14
  485. package/dist/components/ui/toast/use-toast.d.ts +1 -2
  486. package/dist/components/ui/toast/use-toast.js +1 -2
  487. package/dist/components/ui/toggle/BuiToggle.vue.d.ts +16 -35
  488. package/dist/components/ui/toggle/index.js +5 -5
  489. package/dist/components/ui/toggle-group/BuiToggleGroup.js +1 -1
  490. package/dist/components/ui/toggle-group/BuiToggleGroup.vue.d.ts +25 -24
  491. package/dist/components/ui/toggle-group/BuiToggleGroupItem.js +1 -1
  492. package/dist/components/ui/toggle-group/BuiToggleGroupItem.vue.d.ts +21 -20
  493. package/dist/components/ui/toggle-group/index.js +2 -2
  494. package/dist/components/ui/tooltip/BuiTooltip.js +1 -1
  495. package/dist/components/ui/tooltip/BuiTooltip.vue.d.ts +13 -16
  496. package/dist/components/ui/tooltip/BuiTooltipContent.js +1 -1
  497. package/dist/components/ui/tooltip/BuiTooltipContent.vue.d.ts +15 -30
  498. package/dist/components/ui/tooltip/BuiTooltipProvider.js +1 -1
  499. package/dist/components/ui/tooltip/BuiTooltipProvider.vue.d.ts +9 -12
  500. package/dist/components/ui/tooltip/BuiTooltipTrigger.js +1 -1
  501. package/dist/components/ui/tooltip/BuiTooltipTrigger.vue.d.ts +9 -12
  502. package/dist/components/ui/tooltip/index.js +4 -4
  503. package/dist/{index-BX_xuhSi.js → index-uA4l4INt.js} +3950 -3794
  504. package/dist/index.d.ts +0 -1
  505. package/dist/index.js +176 -176
  506. package/dist/lib/utils.d.ts +2 -3
  507. package/dist/lib/utils.js +1 -1
  508. package/dist/{utils-BNc3Bzhq.js → utils-DPuEjrVV.js} +409 -501
  509. package/dist/{x-qxSNtB0B.js → x-BMfRYQ91.js} +2 -2
  510. package/package.json +33 -31
  511. package/dist/BuiAutoForm.vue_vue_type_script_setup_true_lang-CKS23plt.js +0 -206
  512. package/dist/BuiAutoFormField.vue_vue_type_script_setup_true_lang-DwgVv_fo.js +0 -3062
  513. package/dist/BuiPaginationCommon.vue_vue_type_script_setup_true_lang-VNCFXArM.js +0 -102
  514. package/dist/BuiPopoverTrigger.vue_vue_type_script_setup_true_lang-BzLHQJIv.js +0 -21
  515. package/dist/BuiTableRowSubrow.vue_vue_type_script_setup_true_lang-o7uq1Evp.js +0 -1898
  516. package/dist/components/ui/calendar/BuiCalendar.vue.d.ts +0 -63
  517. package/dist/components/ui/context-menu/BuiContextMenuPortal.vue.d.ts +0 -20
  518. package/dist/components/ui/select/Bui.vue.d.ts +0 -52
  519. package/dist/index-DBFwX7-c.js +0 -181
  520. package/dist/vee-validate.esm-BSPEJ8Vl.js +0 -2308
@@ -1,3062 +0,0 @@
1
- import { defineComponent as Oe, computed as Ze, provide as Be, openBlock as A, createBlock as te, unref as x, withCtx as T, renderSlot as Ee, normalizeProps as Ue, guardReactiveProps as qe, createVNode as b, createTextVNode as ve, toDisplayString as We, createElementBlock as re, Fragment as He, renderList as Ye, createElementVNode as lt, createCommentVNode as Ge, resolveDynamicComponent as ft, mergeProps as ht } from "vue";
2
- import { c as Je, e as Fe, b as mt } from "./vee-validate.esm-BSPEJ8Vl.js";
3
- import { getBaseType as Xe, beautifyObjectName as Qe, getBaseSchema as je, getDefaultValueInZodStack as pt } from "./components/ui/auto-form/utils.js";
4
- import _t from "./components/ui/auto-form/dependencies.js";
5
- import { _ as Ke } from "./BuiAutoFormLabel.vue_vue_type_script_setup_true_lang-Cnb5VI3E.js";
6
- import { _ as et } from "./BuiAccordion.vue_vue_type_script_setup_true_lang-D6NZ2Glm.js";
7
- import { _ as tt } from "./BuiAccordionContent.vue_vue_type_script_setup_true_lang-DWgwTZC3.js";
8
- import { _ as rt } from "./BuiAccordionItem.vue_vue_type_script_setup_true_lang-VmckedPQ.js";
9
- import { _ as st } from "./BuiAccordionTrigger.vue_vue_type_script_setup_true_lang-CvrPKvEn.js";
10
- import { d as vt, _ as Ie } from "./utils-BNc3Bzhq.js";
11
- import { _ as yt } from "./BuiSeparator.vue_vue_type_script_setup_true_lang-DdQNHu4h.js";
12
- import { _ as at } from "./BuiFormItem.vue_vue_type_script_setup_true_lang-CP1K61n9.js";
13
- import { _ as gt } from "./BuiFormMessage.vue_vue_type_script_setup_true_lang-CD9in3nQ.js";
14
- import { T as xt, _ as kt } from "./BuiAutoFormFieldFile.vue_vue_type_script_setup_true_lang-BFuZvVOr.js";
15
- import { _ as $e } from "./BuiAutoFormFieldBoolean.vue_vue_type_script_setup_true_lang-BKT85fgx.js";
16
- import { _ as bt } from "./BuiAutoFormFieldDate.vue_vue_type_script_setup_true_lang-DWyKdzS5.js";
17
- import { _ as Ae } from "./BuiAutoFormFieldEnum.vue_vue_type_script_setup_true_lang-BECJ52JQ.js";
18
- import { _ as Me } from "./BuiAutoFormFieldInput.vue_vue_type_script_setup_true_lang-DGI0ZobZ.js";
19
- import { _ as wt } from "./BuiAutoFormFieldNumber.vue_vue_type_script_setup_true_lang-DmjImgRr.js";
20
- /**
21
- * @license lucide-vue-next v0.377.0 - ISC
22
- *
23
- * This source code is licensed under the ISC license.
24
- * See the LICENSE file in the root directory of this source tree.
25
- */
26
- const Tt = vt("PlusIcon", [
27
- ["path", { d: "M5 12h14", key: "1ays0h" }],
28
- ["path", { d: "M12 5v14", key: "s699le" }]
29
- ]);
30
- var g;
31
- (function(r) {
32
- r.assertEqual = (a) => a;
33
- function e(a) {
34
- }
35
- r.assertIs = e;
36
- function t(a) {
37
- throw new Error();
38
- }
39
- r.assertNever = t, r.arrayToEnum = (a) => {
40
- const n = {};
41
- for (const i of a)
42
- n[i] = i;
43
- return n;
44
- }, r.getValidEnumValues = (a) => {
45
- const n = r.objectKeys(a).filter((o) => typeof a[a[o]] != "number"), i = {};
46
- for (const o of n)
47
- i[o] = a[o];
48
- return r.objectValues(i);
49
- }, r.objectValues = (a) => r.objectKeys(a).map(function(n) {
50
- return a[n];
51
- }), r.objectKeys = typeof Object.keys == "function" ? (a) => Object.keys(a) : (a) => {
52
- const n = [];
53
- for (const i in a)
54
- Object.prototype.hasOwnProperty.call(a, i) && n.push(i);
55
- return n;
56
- }, r.find = (a, n) => {
57
- for (const i of a)
58
- if (n(i))
59
- return i;
60
- }, r.isInteger = typeof Number.isInteger == "function" ? (a) => Number.isInteger(a) : (a) => typeof a == "number" && isFinite(a) && Math.floor(a) === a;
61
- function s(a, n = " | ") {
62
- return a.map((i) => typeof i == "string" ? `'${i}'` : i).join(n);
63
- }
64
- r.joinValues = s, r.jsonStringifyReplacer = (a, n) => typeof n == "bigint" ? n.toString() : n;
65
- })(g || (g = {}));
66
- var Ve;
67
- (function(r) {
68
- r.mergeShapes = (e, t) => ({
69
- ...e,
70
- ...t
71
- // second overwrites first
72
- });
73
- })(Ve || (Ve = {}));
74
- const f = g.arrayToEnum([
75
- "string",
76
- "nan",
77
- "number",
78
- "integer",
79
- "float",
80
- "boolean",
81
- "date",
82
- "bigint",
83
- "symbol",
84
- "function",
85
- "undefined",
86
- "null",
87
- "array",
88
- "object",
89
- "unknown",
90
- "promise",
91
- "void",
92
- "never",
93
- "map",
94
- "set"
95
- ]), V = (r) => {
96
- switch (typeof r) {
97
- case "undefined":
98
- return f.undefined;
99
- case "string":
100
- return f.string;
101
- case "number":
102
- return isNaN(r) ? f.nan : f.number;
103
- case "boolean":
104
- return f.boolean;
105
- case "function":
106
- return f.function;
107
- case "bigint":
108
- return f.bigint;
109
- case "symbol":
110
- return f.symbol;
111
- case "object":
112
- return Array.isArray(r) ? f.array : r === null ? f.null : r.then && typeof r.then == "function" && r.catch && typeof r.catch == "function" ? f.promise : typeof Map < "u" && r instanceof Map ? f.map : typeof Set < "u" && r instanceof Set ? f.set : typeof Date < "u" && r instanceof Date ? f.date : f.object;
113
- default:
114
- return f.unknown;
115
- }
116
- }, d = g.arrayToEnum([
117
- "invalid_type",
118
- "invalid_literal",
119
- "custom",
120
- "invalid_union",
121
- "invalid_union_discriminator",
122
- "invalid_enum_value",
123
- "unrecognized_keys",
124
- "invalid_arguments",
125
- "invalid_return_type",
126
- "invalid_date",
127
- "invalid_string",
128
- "too_small",
129
- "too_big",
130
- "invalid_intersection_types",
131
- "not_multiple_of",
132
- "not_finite"
133
- ]);
134
- class S extends Error {
135
- constructor(e) {
136
- super(), this.issues = [], this.addIssue = (s) => {
137
- this.issues = [...this.issues, s];
138
- }, this.addIssues = (s = []) => {
139
- this.issues = [...this.issues, ...s];
140
- };
141
- const t = new.target.prototype;
142
- Object.setPrototypeOf ? Object.setPrototypeOf(this, t) : this.__proto__ = t, this.name = "ZodError", this.issues = e;
143
- }
144
- get errors() {
145
- return this.issues;
146
- }
147
- format(e) {
148
- const t = e || function(n) {
149
- return n.message;
150
- }, s = { _errors: [] }, a = (n) => {
151
- for (const i of n.issues)
152
- if (i.code === "invalid_union")
153
- i.unionErrors.map(a);
154
- else if (i.code === "invalid_return_type")
155
- a(i.returnTypeError);
156
- else if (i.code === "invalid_arguments")
157
- a(i.argumentsError);
158
- else if (i.path.length === 0)
159
- s._errors.push(t(i));
160
- else {
161
- let o = s, c = 0;
162
- for (; c < i.path.length; ) {
163
- const u = i.path[c];
164
- c === i.path.length - 1 ? (o[u] = o[u] || { _errors: [] }, o[u]._errors.push(t(i))) : o[u] = o[u] || { _errors: [] }, o = o[u], c++;
165
- }
166
- }
167
- };
168
- return a(this), s;
169
- }
170
- static assert(e) {
171
- if (!(e instanceof S))
172
- throw new Error(`Not a ZodError: ${e}`);
173
- }
174
- toString() {
175
- return this.message;
176
- }
177
- get message() {
178
- return JSON.stringify(this.issues, g.jsonStringifyReplacer, 2);
179
- }
180
- get isEmpty() {
181
- return this.issues.length === 0;
182
- }
183
- flatten(e = (t) => t.message) {
184
- const t = {}, s = [];
185
- for (const a of this.issues)
186
- a.path.length > 0 ? (t[a.path[0]] = t[a.path[0]] || [], t[a.path[0]].push(e(a))) : s.push(e(a));
187
- return { formErrors: s, fieldErrors: t };
188
- }
189
- get formErrors() {
190
- return this.flatten();
191
- }
192
- }
193
- S.create = (r) => new S(r);
194
- const F = (r, e) => {
195
- let t;
196
- switch (r.code) {
197
- case d.invalid_type:
198
- r.received === f.undefined ? t = "Required" : t = `Expected ${r.expected}, received ${r.received}`;
199
- break;
200
- case d.invalid_literal:
201
- t = `Invalid literal value, expected ${JSON.stringify(r.expected, g.jsonStringifyReplacer)}`;
202
- break;
203
- case d.unrecognized_keys:
204
- t = `Unrecognized key(s) in object: ${g.joinValues(r.keys, ", ")}`;
205
- break;
206
- case d.invalid_union:
207
- t = "Invalid input";
208
- break;
209
- case d.invalid_union_discriminator:
210
- t = `Invalid discriminator value. Expected ${g.joinValues(r.options)}`;
211
- break;
212
- case d.invalid_enum_value:
213
- t = `Invalid enum value. Expected ${g.joinValues(r.options)}, received '${r.received}'`;
214
- break;
215
- case d.invalid_arguments:
216
- t = "Invalid function arguments";
217
- break;
218
- case d.invalid_return_type:
219
- t = "Invalid function return type";
220
- break;
221
- case d.invalid_date:
222
- t = "Invalid date";
223
- break;
224
- case d.invalid_string:
225
- typeof r.validation == "object" ? "includes" in r.validation ? (t = `Invalid input: must include "${r.validation.includes}"`, typeof r.validation.position == "number" && (t = `${t} at one or more positions greater than or equal to ${r.validation.position}`)) : "startsWith" in r.validation ? t = `Invalid input: must start with "${r.validation.startsWith}"` : "endsWith" in r.validation ? t = `Invalid input: must end with "${r.validation.endsWith}"` : g.assertNever(r.validation) : r.validation !== "regex" ? t = `Invalid ${r.validation}` : t = "Invalid";
226
- break;
227
- case d.too_small:
228
- r.type === "array" ? t = `Array must contain ${r.exact ? "exactly" : r.inclusive ? "at least" : "more than"} ${r.minimum} element(s)` : r.type === "string" ? t = `String must contain ${r.exact ? "exactly" : r.inclusive ? "at least" : "over"} ${r.minimum} character(s)` : r.type === "number" ? t = `Number must be ${r.exact ? "exactly equal to " : r.inclusive ? "greater than or equal to " : "greater than "}${r.minimum}` : r.type === "date" ? t = `Date must be ${r.exact ? "exactly equal to " : r.inclusive ? "greater than or equal to " : "greater than "}${new Date(Number(r.minimum))}` : t = "Invalid input";
229
- break;
230
- case d.too_big:
231
- r.type === "array" ? t = `Array must contain ${r.exact ? "exactly" : r.inclusive ? "at most" : "less than"} ${r.maximum} element(s)` : r.type === "string" ? t = `String must contain ${r.exact ? "exactly" : r.inclusive ? "at most" : "under"} ${r.maximum} character(s)` : r.type === "number" ? t = `Number must be ${r.exact ? "exactly" : r.inclusive ? "less than or equal to" : "less than"} ${r.maximum}` : r.type === "bigint" ? t = `BigInt must be ${r.exact ? "exactly" : r.inclusive ? "less than or equal to" : "less than"} ${r.maximum}` : r.type === "date" ? t = `Date must be ${r.exact ? "exactly" : r.inclusive ? "smaller than or equal to" : "smaller than"} ${new Date(Number(r.maximum))}` : t = "Invalid input";
232
- break;
233
- case d.custom:
234
- t = "Invalid input";
235
- break;
236
- case d.invalid_intersection_types:
237
- t = "Intersection results could not be merged";
238
- break;
239
- case d.not_multiple_of:
240
- t = `Number must be a multiple of ${r.multipleOf}`;
241
- break;
242
- case d.not_finite:
243
- t = "Number must be finite";
244
- break;
245
- default:
246
- t = e.defaultError, g.assertNever(r);
247
- }
248
- return { message: t };
249
- };
250
- let Nt = F;
251
- function ye() {
252
- return Nt;
253
- }
254
- const ge = (r) => {
255
- const { data: e, path: t, errorMaps: s, issueData: a } = r, n = [...t, ...a.path || []], i = {
256
- ...a,
257
- path: n
258
- };
259
- if (a.message !== void 0)
260
- return {
261
- ...a,
262
- path: n,
263
- message: a.message
264
- };
265
- let o = "";
266
- const c = s.filter((u) => !!u).slice().reverse();
267
- for (const u of c)
268
- o = u(i, { data: e, defaultError: o }).message;
269
- return {
270
- ...a,
271
- path: n,
272
- message: o
273
- };
274
- };
275
- function l(r, e) {
276
- const t = ye(), s = ge({
277
- issueData: e,
278
- data: r.data,
279
- path: r.path,
280
- errorMaps: [
281
- r.common.contextualErrorMap,
282
- r.schemaErrorMap,
283
- t,
284
- t === F ? void 0 : F
285
- // then global default map
286
- ].filter((a) => !!a)
287
- });
288
- r.common.issues.push(s);
289
- }
290
- class N {
291
- constructor() {
292
- this.value = "valid";
293
- }
294
- dirty() {
295
- this.value === "valid" && (this.value = "dirty");
296
- }
297
- abort() {
298
- this.value !== "aborted" && (this.value = "aborted");
299
- }
300
- static mergeArray(e, t) {
301
- const s = [];
302
- for (const a of t) {
303
- if (a.status === "aborted")
304
- return _;
305
- a.status === "dirty" && e.dirty(), s.push(a.value);
306
- }
307
- return { status: e.value, value: s };
308
- }
309
- static async mergeObjectAsync(e, t) {
310
- const s = [];
311
- for (const a of t) {
312
- const n = await a.key, i = await a.value;
313
- s.push({
314
- key: n,
315
- value: i
316
- });
317
- }
318
- return N.mergeObjectSync(e, s);
319
- }
320
- static mergeObjectSync(e, t) {
321
- const s = {};
322
- for (const a of t) {
323
- const { key: n, value: i } = a;
324
- if (n.status === "aborted" || i.status === "aborted")
325
- return _;
326
- n.status === "dirty" && e.dirty(), i.status === "dirty" && e.dirty(), n.value !== "__proto__" && (typeof i.value < "u" || a.alwaysSet) && (s[n.value] = i.value);
327
- }
328
- return { status: e.value, value: s };
329
- }
330
- }
331
- const _ = Object.freeze({
332
- status: "aborted"
333
- }), H = (r) => ({ status: "dirty", value: r }), C = (r) => ({ status: "valid", value: r }), Pe = (r) => r.status === "aborted", De = (r) => r.status === "dirty", se = (r) => r.status === "valid", xe = (r) => typeof Promise < "u" && r instanceof Promise;
334
- function ae(r, e, t, s) {
335
- if (typeof e == "function" ? r !== e || !s : !e.has(r))
336
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
337
- return e.get(r);
338
- }
339
- function nt(r, e, t, s, a) {
340
- if (typeof e == "function" ? r !== e || !a : !e.has(r))
341
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
342
- return e.set(r, t), t;
343
- }
344
- var h;
345
- (function(r) {
346
- r.errToObj = (e) => typeof e == "string" ? { message: e } : e || {}, r.toString = (e) => typeof e == "string" ? e : e?.message;
347
- })(h || (h = {}));
348
- var Y, G;
349
- class Z {
350
- constructor(e, t, s, a) {
351
- this._cachedPath = [], this.parent = e, this.data = t, this._path = s, this._key = a;
352
- }
353
- get path() {
354
- return this._cachedPath.length || (this._key instanceof Array ? this._cachedPath.push(...this._path, ...this._key) : this._cachedPath.push(...this._path, this._key)), this._cachedPath;
355
- }
356
- }
357
- const Le = (r, e) => {
358
- if (se(e))
359
- return { success: !0, data: e.value };
360
- if (!r.common.issues.length)
361
- throw new Error("Validation failed but no issues detected.");
362
- return {
363
- success: !1,
364
- get error() {
365
- if (this._error)
366
- return this._error;
367
- const t = new S(r.common.issues);
368
- return this._error = t, this._error;
369
- }
370
- };
371
- };
372
- function v(r) {
373
- if (!r)
374
- return {};
375
- const { errorMap: e, invalid_type_error: t, required_error: s, description: a } = r;
376
- if (e && (t || s))
377
- throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);
378
- return e ? { errorMap: e, description: a } : { errorMap: (i, o) => {
379
- var c, u;
380
- const { message: m } = r;
381
- return i.code === "invalid_enum_value" ? { message: m ?? o.defaultError } : typeof o.data > "u" ? { message: (c = m ?? s) !== null && c !== void 0 ? c : o.defaultError } : i.code !== "invalid_type" ? { message: o.defaultError } : { message: (u = m ?? t) !== null && u !== void 0 ? u : o.defaultError };
382
- }, description: a };
383
- }
384
- class y {
385
- constructor(e) {
386
- this.spa = this.safeParseAsync, this._def = e, this.parse = this.parse.bind(this), this.safeParse = this.safeParse.bind(this), this.parseAsync = this.parseAsync.bind(this), this.safeParseAsync = this.safeParseAsync.bind(this), this.spa = this.spa.bind(this), this.refine = this.refine.bind(this), this.refinement = this.refinement.bind(this), this.superRefine = this.superRefine.bind(this), this.optional = this.optional.bind(this), this.nullable = this.nullable.bind(this), this.nullish = this.nullish.bind(this), this.array = this.array.bind(this), this.promise = this.promise.bind(this), this.or = this.or.bind(this), this.and = this.and.bind(this), this.transform = this.transform.bind(this), this.brand = this.brand.bind(this), this.default = this.default.bind(this), this.catch = this.catch.bind(this), this.describe = this.describe.bind(this), this.pipe = this.pipe.bind(this), this.readonly = this.readonly.bind(this), this.isNullable = this.isNullable.bind(this), this.isOptional = this.isOptional.bind(this);
387
- }
388
- get description() {
389
- return this._def.description;
390
- }
391
- _getType(e) {
392
- return V(e.data);
393
- }
394
- _getOrReturnCtx(e, t) {
395
- return t || {
396
- common: e.parent.common,
397
- data: e.data,
398
- parsedType: V(e.data),
399
- schemaErrorMap: this._def.errorMap,
400
- path: e.path,
401
- parent: e.parent
402
- };
403
- }
404
- _processInputParams(e) {
405
- return {
406
- status: new N(),
407
- ctx: {
408
- common: e.parent.common,
409
- data: e.data,
410
- parsedType: V(e.data),
411
- schemaErrorMap: this._def.errorMap,
412
- path: e.path,
413
- parent: e.parent
414
- }
415
- };
416
- }
417
- _parseSync(e) {
418
- const t = this._parse(e);
419
- if (xe(t))
420
- throw new Error("Synchronous parse encountered promise.");
421
- return t;
422
- }
423
- _parseAsync(e) {
424
- const t = this._parse(e);
425
- return Promise.resolve(t);
426
- }
427
- parse(e, t) {
428
- const s = this.safeParse(e, t);
429
- if (s.success)
430
- return s.data;
431
- throw s.error;
432
- }
433
- safeParse(e, t) {
434
- var s;
435
- const a = {
436
- common: {
437
- issues: [],
438
- async: (s = t?.async) !== null && s !== void 0 ? s : !1,
439
- contextualErrorMap: t?.errorMap
440
- },
441
- path: t?.path || [],
442
- schemaErrorMap: this._def.errorMap,
443
- parent: null,
444
- data: e,
445
- parsedType: V(e)
446
- }, n = this._parseSync({ data: e, path: a.path, parent: a });
447
- return Le(a, n);
448
- }
449
- async parseAsync(e, t) {
450
- const s = await this.safeParseAsync(e, t);
451
- if (s.success)
452
- return s.data;
453
- throw s.error;
454
- }
455
- async safeParseAsync(e, t) {
456
- const s = {
457
- common: {
458
- issues: [],
459
- contextualErrorMap: t?.errorMap,
460
- async: !0
461
- },
462
- path: t?.path || [],
463
- schemaErrorMap: this._def.errorMap,
464
- parent: null,
465
- data: e,
466
- parsedType: V(e)
467
- }, a = this._parse({ data: e, path: s.path, parent: s }), n = await (xe(a) ? a : Promise.resolve(a));
468
- return Le(s, n);
469
- }
470
- refine(e, t) {
471
- const s = (a) => typeof t == "string" || typeof t > "u" ? { message: t } : typeof t == "function" ? t(a) : t;
472
- return this._refinement((a, n) => {
473
- const i = e(a), o = () => n.addIssue({
474
- code: d.custom,
475
- ...s(a)
476
- });
477
- return typeof Promise < "u" && i instanceof Promise ? i.then((c) => c ? !0 : (o(), !1)) : i ? !0 : (o(), !1);
478
- });
479
- }
480
- refinement(e, t) {
481
- return this._refinement((s, a) => e(s) ? !0 : (a.addIssue(typeof t == "function" ? t(s, a) : t), !1));
482
- }
483
- _refinement(e) {
484
- return new $({
485
- schema: this,
486
- typeName: p.ZodEffects,
487
- effect: { type: "refinement", refinement: e }
488
- });
489
- }
490
- superRefine(e) {
491
- return this._refinement(e);
492
- }
493
- optional() {
494
- return j.create(this, this._def);
495
- }
496
- nullable() {
497
- return D.create(this, this._def);
498
- }
499
- nullish() {
500
- return this.nullable().optional();
501
- }
502
- array() {
503
- return O.create(this, this._def);
504
- }
505
- promise() {
506
- return Q.create(this, this._def);
507
- }
508
- or(e) {
509
- return oe.create([this, e], this._def);
510
- }
511
- and(e) {
512
- return de.create(this, e, this._def);
513
- }
514
- transform(e) {
515
- return new $({
516
- ...v(this._def),
517
- schema: this,
518
- typeName: p.ZodEffects,
519
- effect: { type: "transform", transform: e }
520
- });
521
- }
522
- default(e) {
523
- const t = typeof e == "function" ? e : () => e;
524
- return new K({
525
- ...v(this._def),
526
- innerType: this,
527
- defaultValue: t,
528
- typeName: p.ZodDefault
529
- });
530
- }
531
- brand() {
532
- return new ct({
533
- typeName: p.ZodBranded,
534
- type: this,
535
- ...v(this._def)
536
- });
537
- }
538
- catch(e) {
539
- const t = typeof e == "function" ? e : () => e;
540
- return new he({
541
- ...v(this._def),
542
- innerType: this,
543
- catchValue: t,
544
- typeName: p.ZodCatch
545
- });
546
- }
547
- describe(e) {
548
- const t = this.constructor;
549
- return new t({
550
- ...this._def,
551
- description: e
552
- });
553
- }
554
- pipe(e) {
555
- return pe.create(this, e);
556
- }
557
- readonly() {
558
- return me.create(this);
559
- }
560
- isOptional() {
561
- return this.safeParse(void 0).success;
562
- }
563
- isNullable() {
564
- return this.safeParse(null).success;
565
- }
566
- }
567
- const Ct = /^c[^\s-]{8,}$/i, St = /^[0-9a-z]+$/, Ot = /^[0-9A-HJKMNP-TV-Z]{26}$/, Zt = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i, Et = /^[a-z0-9_-]{21}$/i, Rt = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/, jt = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, It = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
568
- let _e;
569
- const $t = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, At = /^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/, Mt = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, it = "((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))", Vt = new RegExp(`^${it}$`);
570
- function ot(r) {
571
- let e = "([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";
572
- return r.precision ? e = `${e}\\.\\d{${r.precision}}` : r.precision == null && (e = `${e}(\\.\\d+)?`), e;
573
- }
574
- function Pt(r) {
575
- return new RegExp(`^${ot(r)}$`);
576
- }
577
- function Dt(r) {
578
- let e = `${it}T${ot(r)}`;
579
- const t = [];
580
- return t.push(r.local ? "Z?" : "Z"), r.offset && t.push("([+-]\\d{2}:?\\d{2})"), e = `${e}(${t.join("|")})`, new RegExp(`^${e}$`);
581
- }
582
- function Lt(r, e) {
583
- return !!((e === "v4" || !e) && $t.test(r) || (e === "v6" || !e) && At.test(r));
584
- }
585
- class R extends y {
586
- _parse(e) {
587
- if (this._def.coerce && (e.data = String(e.data)), this._getType(e) !== f.string) {
588
- const n = this._getOrReturnCtx(e);
589
- return l(n, {
590
- code: d.invalid_type,
591
- expected: f.string,
592
- received: n.parsedType
593
- }), _;
594
- }
595
- const s = new N();
596
- let a;
597
- for (const n of this._def.checks)
598
- if (n.kind === "min")
599
- e.data.length < n.value && (a = this._getOrReturnCtx(e, a), l(a, {
600
- code: d.too_small,
601
- minimum: n.value,
602
- type: "string",
603
- inclusive: !0,
604
- exact: !1,
605
- message: n.message
606
- }), s.dirty());
607
- else if (n.kind === "max")
608
- e.data.length > n.value && (a = this._getOrReturnCtx(e, a), l(a, {
609
- code: d.too_big,
610
- maximum: n.value,
611
- type: "string",
612
- inclusive: !0,
613
- exact: !1,
614
- message: n.message
615
- }), s.dirty());
616
- else if (n.kind === "length") {
617
- const i = e.data.length > n.value, o = e.data.length < n.value;
618
- (i || o) && (a = this._getOrReturnCtx(e, a), i ? l(a, {
619
- code: d.too_big,
620
- maximum: n.value,
621
- type: "string",
622
- inclusive: !0,
623
- exact: !0,
624
- message: n.message
625
- }) : o && l(a, {
626
- code: d.too_small,
627
- minimum: n.value,
628
- type: "string",
629
- inclusive: !0,
630
- exact: !0,
631
- message: n.message
632
- }), s.dirty());
633
- } else if (n.kind === "email")
634
- jt.test(e.data) || (a = this._getOrReturnCtx(e, a), l(a, {
635
- validation: "email",
636
- code: d.invalid_string,
637
- message: n.message
638
- }), s.dirty());
639
- else if (n.kind === "emoji")
640
- _e || (_e = new RegExp(It, "u")), _e.test(e.data) || (a = this._getOrReturnCtx(e, a), l(a, {
641
- validation: "emoji",
642
- code: d.invalid_string,
643
- message: n.message
644
- }), s.dirty());
645
- else if (n.kind === "uuid")
646
- Zt.test(e.data) || (a = this._getOrReturnCtx(e, a), l(a, {
647
- validation: "uuid",
648
- code: d.invalid_string,
649
- message: n.message
650
- }), s.dirty());
651
- else if (n.kind === "nanoid")
652
- Et.test(e.data) || (a = this._getOrReturnCtx(e, a), l(a, {
653
- validation: "nanoid",
654
- code: d.invalid_string,
655
- message: n.message
656
- }), s.dirty());
657
- else if (n.kind === "cuid")
658
- Ct.test(e.data) || (a = this._getOrReturnCtx(e, a), l(a, {
659
- validation: "cuid",
660
- code: d.invalid_string,
661
- message: n.message
662
- }), s.dirty());
663
- else if (n.kind === "cuid2")
664
- St.test(e.data) || (a = this._getOrReturnCtx(e, a), l(a, {
665
- validation: "cuid2",
666
- code: d.invalid_string,
667
- message: n.message
668
- }), s.dirty());
669
- else if (n.kind === "ulid")
670
- Ot.test(e.data) || (a = this._getOrReturnCtx(e, a), l(a, {
671
- validation: "ulid",
672
- code: d.invalid_string,
673
- message: n.message
674
- }), s.dirty());
675
- else if (n.kind === "url")
676
- try {
677
- new URL(e.data);
678
- } catch {
679
- a = this._getOrReturnCtx(e, a), l(a, {
680
- validation: "url",
681
- code: d.invalid_string,
682
- message: n.message
683
- }), s.dirty();
684
- }
685
- else
686
- n.kind === "regex" ? (n.regex.lastIndex = 0, n.regex.test(e.data) || (a = this._getOrReturnCtx(e, a), l(a, {
687
- validation: "regex",
688
- code: d.invalid_string,
689
- message: n.message
690
- }), s.dirty())) : n.kind === "trim" ? e.data = e.data.trim() : n.kind === "includes" ? e.data.includes(n.value, n.position) || (a = this._getOrReturnCtx(e, a), l(a, {
691
- code: d.invalid_string,
692
- validation: { includes: n.value, position: n.position },
693
- message: n.message
694
- }), s.dirty()) : n.kind === "toLowerCase" ? e.data = e.data.toLowerCase() : n.kind === "toUpperCase" ? e.data = e.data.toUpperCase() : n.kind === "startsWith" ? e.data.startsWith(n.value) || (a = this._getOrReturnCtx(e, a), l(a, {
695
- code: d.invalid_string,
696
- validation: { startsWith: n.value },
697
- message: n.message
698
- }), s.dirty()) : n.kind === "endsWith" ? e.data.endsWith(n.value) || (a = this._getOrReturnCtx(e, a), l(a, {
699
- code: d.invalid_string,
700
- validation: { endsWith: n.value },
701
- message: n.message
702
- }), s.dirty()) : n.kind === "datetime" ? Dt(n).test(e.data) || (a = this._getOrReturnCtx(e, a), l(a, {
703
- code: d.invalid_string,
704
- validation: "datetime",
705
- message: n.message
706
- }), s.dirty()) : n.kind === "date" ? Vt.test(e.data) || (a = this._getOrReturnCtx(e, a), l(a, {
707
- code: d.invalid_string,
708
- validation: "date",
709
- message: n.message
710
- }), s.dirty()) : n.kind === "time" ? Pt(n).test(e.data) || (a = this._getOrReturnCtx(e, a), l(a, {
711
- code: d.invalid_string,
712
- validation: "time",
713
- message: n.message
714
- }), s.dirty()) : n.kind === "duration" ? Rt.test(e.data) || (a = this._getOrReturnCtx(e, a), l(a, {
715
- validation: "duration",
716
- code: d.invalid_string,
717
- message: n.message
718
- }), s.dirty()) : n.kind === "ip" ? Lt(e.data, n.version) || (a = this._getOrReturnCtx(e, a), l(a, {
719
- validation: "ip",
720
- code: d.invalid_string,
721
- message: n.message
722
- }), s.dirty()) : n.kind === "base64" ? Mt.test(e.data) || (a = this._getOrReturnCtx(e, a), l(a, {
723
- validation: "base64",
724
- code: d.invalid_string,
725
- message: n.message
726
- }), s.dirty()) : g.assertNever(n);
727
- return { status: s.value, value: e.data };
728
- }
729
- _regex(e, t, s) {
730
- return this.refinement((a) => e.test(a), {
731
- validation: t,
732
- code: d.invalid_string,
733
- ...h.errToObj(s)
734
- });
735
- }
736
- _addCheck(e) {
737
- return new R({
738
- ...this._def,
739
- checks: [...this._def.checks, e]
740
- });
741
- }
742
- email(e) {
743
- return this._addCheck({ kind: "email", ...h.errToObj(e) });
744
- }
745
- url(e) {
746
- return this._addCheck({ kind: "url", ...h.errToObj(e) });
747
- }
748
- emoji(e) {
749
- return this._addCheck({ kind: "emoji", ...h.errToObj(e) });
750
- }
751
- uuid(e) {
752
- return this._addCheck({ kind: "uuid", ...h.errToObj(e) });
753
- }
754
- nanoid(e) {
755
- return this._addCheck({ kind: "nanoid", ...h.errToObj(e) });
756
- }
757
- cuid(e) {
758
- return this._addCheck({ kind: "cuid", ...h.errToObj(e) });
759
- }
760
- cuid2(e) {
761
- return this._addCheck({ kind: "cuid2", ...h.errToObj(e) });
762
- }
763
- ulid(e) {
764
- return this._addCheck({ kind: "ulid", ...h.errToObj(e) });
765
- }
766
- base64(e) {
767
- return this._addCheck({ kind: "base64", ...h.errToObj(e) });
768
- }
769
- ip(e) {
770
- return this._addCheck({ kind: "ip", ...h.errToObj(e) });
771
- }
772
- datetime(e) {
773
- var t, s;
774
- return typeof e == "string" ? this._addCheck({
775
- kind: "datetime",
776
- precision: null,
777
- offset: !1,
778
- local: !1,
779
- message: e
780
- }) : this._addCheck({
781
- kind: "datetime",
782
- precision: typeof e?.precision > "u" ? null : e?.precision,
783
- offset: (t = e?.offset) !== null && t !== void 0 ? t : !1,
784
- local: (s = e?.local) !== null && s !== void 0 ? s : !1,
785
- ...h.errToObj(e?.message)
786
- });
787
- }
788
- date(e) {
789
- return this._addCheck({ kind: "date", message: e });
790
- }
791
- time(e) {
792
- return typeof e == "string" ? this._addCheck({
793
- kind: "time",
794
- precision: null,
795
- message: e
796
- }) : this._addCheck({
797
- kind: "time",
798
- precision: typeof e?.precision > "u" ? null : e?.precision,
799
- ...h.errToObj(e?.message)
800
- });
801
- }
802
- duration(e) {
803
- return this._addCheck({ kind: "duration", ...h.errToObj(e) });
804
- }
805
- regex(e, t) {
806
- return this._addCheck({
807
- kind: "regex",
808
- regex: e,
809
- ...h.errToObj(t)
810
- });
811
- }
812
- includes(e, t) {
813
- return this._addCheck({
814
- kind: "includes",
815
- value: e,
816
- position: t?.position,
817
- ...h.errToObj(t?.message)
818
- });
819
- }
820
- startsWith(e, t) {
821
- return this._addCheck({
822
- kind: "startsWith",
823
- value: e,
824
- ...h.errToObj(t)
825
- });
826
- }
827
- endsWith(e, t) {
828
- return this._addCheck({
829
- kind: "endsWith",
830
- value: e,
831
- ...h.errToObj(t)
832
- });
833
- }
834
- min(e, t) {
835
- return this._addCheck({
836
- kind: "min",
837
- value: e,
838
- ...h.errToObj(t)
839
- });
840
- }
841
- max(e, t) {
842
- return this._addCheck({
843
- kind: "max",
844
- value: e,
845
- ...h.errToObj(t)
846
- });
847
- }
848
- length(e, t) {
849
- return this._addCheck({
850
- kind: "length",
851
- value: e,
852
- ...h.errToObj(t)
853
- });
854
- }
855
- /**
856
- * @deprecated Use z.string().min(1) instead.
857
- * @see {@link ZodString.min}
858
- */
859
- nonempty(e) {
860
- return this.min(1, h.errToObj(e));
861
- }
862
- trim() {
863
- return new R({
864
- ...this._def,
865
- checks: [...this._def.checks, { kind: "trim" }]
866
- });
867
- }
868
- toLowerCase() {
869
- return new R({
870
- ...this._def,
871
- checks: [...this._def.checks, { kind: "toLowerCase" }]
872
- });
873
- }
874
- toUpperCase() {
875
- return new R({
876
- ...this._def,
877
- checks: [...this._def.checks, { kind: "toUpperCase" }]
878
- });
879
- }
880
- get isDatetime() {
881
- return !!this._def.checks.find((e) => e.kind === "datetime");
882
- }
883
- get isDate() {
884
- return !!this._def.checks.find((e) => e.kind === "date");
885
- }
886
- get isTime() {
887
- return !!this._def.checks.find((e) => e.kind === "time");
888
- }
889
- get isDuration() {
890
- return !!this._def.checks.find((e) => e.kind === "duration");
891
- }
892
- get isEmail() {
893
- return !!this._def.checks.find((e) => e.kind === "email");
894
- }
895
- get isURL() {
896
- return !!this._def.checks.find((e) => e.kind === "url");
897
- }
898
- get isEmoji() {
899
- return !!this._def.checks.find((e) => e.kind === "emoji");
900
- }
901
- get isUUID() {
902
- return !!this._def.checks.find((e) => e.kind === "uuid");
903
- }
904
- get isNANOID() {
905
- return !!this._def.checks.find((e) => e.kind === "nanoid");
906
- }
907
- get isCUID() {
908
- return !!this._def.checks.find((e) => e.kind === "cuid");
909
- }
910
- get isCUID2() {
911
- return !!this._def.checks.find((e) => e.kind === "cuid2");
912
- }
913
- get isULID() {
914
- return !!this._def.checks.find((e) => e.kind === "ulid");
915
- }
916
- get isIP() {
917
- return !!this._def.checks.find((e) => e.kind === "ip");
918
- }
919
- get isBase64() {
920
- return !!this._def.checks.find((e) => e.kind === "base64");
921
- }
922
- get minLength() {
923
- let e = null;
924
- for (const t of this._def.checks)
925
- t.kind === "min" && (e === null || t.value > e) && (e = t.value);
926
- return e;
927
- }
928
- get maxLength() {
929
- let e = null;
930
- for (const t of this._def.checks)
931
- t.kind === "max" && (e === null || t.value < e) && (e = t.value);
932
- return e;
933
- }
934
- }
935
- R.create = (r) => {
936
- var e;
937
- return new R({
938
- checks: [],
939
- typeName: p.ZodString,
940
- coerce: (e = r?.coerce) !== null && e !== void 0 ? e : !1,
941
- ...v(r)
942
- });
943
- };
944
- function zt(r, e) {
945
- const t = (r.toString().split(".")[1] || "").length, s = (e.toString().split(".")[1] || "").length, a = t > s ? t : s, n = parseInt(r.toFixed(a).replace(".", "")), i = parseInt(e.toFixed(a).replace(".", ""));
946
- return n % i / Math.pow(10, a);
947
- }
948
- class B extends y {
949
- constructor() {
950
- super(...arguments), this.min = this.gte, this.max = this.lte, this.step = this.multipleOf;
951
- }
952
- _parse(e) {
953
- if (this._def.coerce && (e.data = Number(e.data)), this._getType(e) !== f.number) {
954
- const n = this._getOrReturnCtx(e);
955
- return l(n, {
956
- code: d.invalid_type,
957
- expected: f.number,
958
- received: n.parsedType
959
- }), _;
960
- }
961
- let s;
962
- const a = new N();
963
- for (const n of this._def.checks)
964
- n.kind === "int" ? g.isInteger(e.data) || (s = this._getOrReturnCtx(e, s), l(s, {
965
- code: d.invalid_type,
966
- expected: "integer",
967
- received: "float",
968
- message: n.message
969
- }), a.dirty()) : n.kind === "min" ? (n.inclusive ? e.data < n.value : e.data <= n.value) && (s = this._getOrReturnCtx(e, s), l(s, {
970
- code: d.too_small,
971
- minimum: n.value,
972
- type: "number",
973
- inclusive: n.inclusive,
974
- exact: !1,
975
- message: n.message
976
- }), a.dirty()) : n.kind === "max" ? (n.inclusive ? e.data > n.value : e.data >= n.value) && (s = this._getOrReturnCtx(e, s), l(s, {
977
- code: d.too_big,
978
- maximum: n.value,
979
- type: "number",
980
- inclusive: n.inclusive,
981
- exact: !1,
982
- message: n.message
983
- }), a.dirty()) : n.kind === "multipleOf" ? zt(e.data, n.value) !== 0 && (s = this._getOrReturnCtx(e, s), l(s, {
984
- code: d.not_multiple_of,
985
- multipleOf: n.value,
986
- message: n.message
987
- }), a.dirty()) : n.kind === "finite" ? Number.isFinite(e.data) || (s = this._getOrReturnCtx(e, s), l(s, {
988
- code: d.not_finite,
989
- message: n.message
990
- }), a.dirty()) : g.assertNever(n);
991
- return { status: a.value, value: e.data };
992
- }
993
- gte(e, t) {
994
- return this.setLimit("min", e, !0, h.toString(t));
995
- }
996
- gt(e, t) {
997
- return this.setLimit("min", e, !1, h.toString(t));
998
- }
999
- lte(e, t) {
1000
- return this.setLimit("max", e, !0, h.toString(t));
1001
- }
1002
- lt(e, t) {
1003
- return this.setLimit("max", e, !1, h.toString(t));
1004
- }
1005
- setLimit(e, t, s, a) {
1006
- return new B({
1007
- ...this._def,
1008
- checks: [
1009
- ...this._def.checks,
1010
- {
1011
- kind: e,
1012
- value: t,
1013
- inclusive: s,
1014
- message: h.toString(a)
1015
- }
1016
- ]
1017
- });
1018
- }
1019
- _addCheck(e) {
1020
- return new B({
1021
- ...this._def,
1022
- checks: [...this._def.checks, e]
1023
- });
1024
- }
1025
- int(e) {
1026
- return this._addCheck({
1027
- kind: "int",
1028
- message: h.toString(e)
1029
- });
1030
- }
1031
- positive(e) {
1032
- return this._addCheck({
1033
- kind: "min",
1034
- value: 0,
1035
- inclusive: !1,
1036
- message: h.toString(e)
1037
- });
1038
- }
1039
- negative(e) {
1040
- return this._addCheck({
1041
- kind: "max",
1042
- value: 0,
1043
- inclusive: !1,
1044
- message: h.toString(e)
1045
- });
1046
- }
1047
- nonpositive(e) {
1048
- return this._addCheck({
1049
- kind: "max",
1050
- value: 0,
1051
- inclusive: !0,
1052
- message: h.toString(e)
1053
- });
1054
- }
1055
- nonnegative(e) {
1056
- return this._addCheck({
1057
- kind: "min",
1058
- value: 0,
1059
- inclusive: !0,
1060
- message: h.toString(e)
1061
- });
1062
- }
1063
- multipleOf(e, t) {
1064
- return this._addCheck({
1065
- kind: "multipleOf",
1066
- value: e,
1067
- message: h.toString(t)
1068
- });
1069
- }
1070
- finite(e) {
1071
- return this._addCheck({
1072
- kind: "finite",
1073
- message: h.toString(e)
1074
- });
1075
- }
1076
- safe(e) {
1077
- return this._addCheck({
1078
- kind: "min",
1079
- inclusive: !0,
1080
- value: Number.MIN_SAFE_INTEGER,
1081
- message: h.toString(e)
1082
- })._addCheck({
1083
- kind: "max",
1084
- inclusive: !0,
1085
- value: Number.MAX_SAFE_INTEGER,
1086
- message: h.toString(e)
1087
- });
1088
- }
1089
- get minValue() {
1090
- let e = null;
1091
- for (const t of this._def.checks)
1092
- t.kind === "min" && (e === null || t.value > e) && (e = t.value);
1093
- return e;
1094
- }
1095
- get maxValue() {
1096
- let e = null;
1097
- for (const t of this._def.checks)
1098
- t.kind === "max" && (e === null || t.value < e) && (e = t.value);
1099
- return e;
1100
- }
1101
- get isInt() {
1102
- return !!this._def.checks.find((e) => e.kind === "int" || e.kind === "multipleOf" && g.isInteger(e.value));
1103
- }
1104
- get isFinite() {
1105
- let e = null, t = null;
1106
- for (const s of this._def.checks) {
1107
- if (s.kind === "finite" || s.kind === "int" || s.kind === "multipleOf")
1108
- return !0;
1109
- s.kind === "min" ? (t === null || s.value > t) && (t = s.value) : s.kind === "max" && (e === null || s.value < e) && (e = s.value);
1110
- }
1111
- return Number.isFinite(t) && Number.isFinite(e);
1112
- }
1113
- }
1114
- B.create = (r) => new B({
1115
- checks: [],
1116
- typeName: p.ZodNumber,
1117
- coerce: r?.coerce || !1,
1118
- ...v(r)
1119
- });
1120
- class U extends y {
1121
- constructor() {
1122
- super(...arguments), this.min = this.gte, this.max = this.lte;
1123
- }
1124
- _parse(e) {
1125
- if (this._def.coerce && (e.data = BigInt(e.data)), this._getType(e) !== f.bigint) {
1126
- const n = this._getOrReturnCtx(e);
1127
- return l(n, {
1128
- code: d.invalid_type,
1129
- expected: f.bigint,
1130
- received: n.parsedType
1131
- }), _;
1132
- }
1133
- let s;
1134
- const a = new N();
1135
- for (const n of this._def.checks)
1136
- n.kind === "min" ? (n.inclusive ? e.data < n.value : e.data <= n.value) && (s = this._getOrReturnCtx(e, s), l(s, {
1137
- code: d.too_small,
1138
- type: "bigint",
1139
- minimum: n.value,
1140
- inclusive: n.inclusive,
1141
- message: n.message
1142
- }), a.dirty()) : n.kind === "max" ? (n.inclusive ? e.data > n.value : e.data >= n.value) && (s = this._getOrReturnCtx(e, s), l(s, {
1143
- code: d.too_big,
1144
- type: "bigint",
1145
- maximum: n.value,
1146
- inclusive: n.inclusive,
1147
- message: n.message
1148
- }), a.dirty()) : n.kind === "multipleOf" ? e.data % n.value !== BigInt(0) && (s = this._getOrReturnCtx(e, s), l(s, {
1149
- code: d.not_multiple_of,
1150
- multipleOf: n.value,
1151
- message: n.message
1152
- }), a.dirty()) : g.assertNever(n);
1153
- return { status: a.value, value: e.data };
1154
- }
1155
- gte(e, t) {
1156
- return this.setLimit("min", e, !0, h.toString(t));
1157
- }
1158
- gt(e, t) {
1159
- return this.setLimit("min", e, !1, h.toString(t));
1160
- }
1161
- lte(e, t) {
1162
- return this.setLimit("max", e, !0, h.toString(t));
1163
- }
1164
- lt(e, t) {
1165
- return this.setLimit("max", e, !1, h.toString(t));
1166
- }
1167
- setLimit(e, t, s, a) {
1168
- return new U({
1169
- ...this._def,
1170
- checks: [
1171
- ...this._def.checks,
1172
- {
1173
- kind: e,
1174
- value: t,
1175
- inclusive: s,
1176
- message: h.toString(a)
1177
- }
1178
- ]
1179
- });
1180
- }
1181
- _addCheck(e) {
1182
- return new U({
1183
- ...this._def,
1184
- checks: [...this._def.checks, e]
1185
- });
1186
- }
1187
- positive(e) {
1188
- return this._addCheck({
1189
- kind: "min",
1190
- value: BigInt(0),
1191
- inclusive: !1,
1192
- message: h.toString(e)
1193
- });
1194
- }
1195
- negative(e) {
1196
- return this._addCheck({
1197
- kind: "max",
1198
- value: BigInt(0),
1199
- inclusive: !1,
1200
- message: h.toString(e)
1201
- });
1202
- }
1203
- nonpositive(e) {
1204
- return this._addCheck({
1205
- kind: "max",
1206
- value: BigInt(0),
1207
- inclusive: !0,
1208
- message: h.toString(e)
1209
- });
1210
- }
1211
- nonnegative(e) {
1212
- return this._addCheck({
1213
- kind: "min",
1214
- value: BigInt(0),
1215
- inclusive: !0,
1216
- message: h.toString(e)
1217
- });
1218
- }
1219
- multipleOf(e, t) {
1220
- return this._addCheck({
1221
- kind: "multipleOf",
1222
- value: e,
1223
- message: h.toString(t)
1224
- });
1225
- }
1226
- get minValue() {
1227
- let e = null;
1228
- for (const t of this._def.checks)
1229
- t.kind === "min" && (e === null || t.value > e) && (e = t.value);
1230
- return e;
1231
- }
1232
- get maxValue() {
1233
- let e = null;
1234
- for (const t of this._def.checks)
1235
- t.kind === "max" && (e === null || t.value < e) && (e = t.value);
1236
- return e;
1237
- }
1238
- }
1239
- U.create = (r) => {
1240
- var e;
1241
- return new U({
1242
- checks: [],
1243
- typeName: p.ZodBigInt,
1244
- coerce: (e = r?.coerce) !== null && e !== void 0 ? e : !1,
1245
- ...v(r)
1246
- });
1247
- };
1248
- class ke extends y {
1249
- _parse(e) {
1250
- if (this._def.coerce && (e.data = !!e.data), this._getType(e) !== f.boolean) {
1251
- const s = this._getOrReturnCtx(e);
1252
- return l(s, {
1253
- code: d.invalid_type,
1254
- expected: f.boolean,
1255
- received: s.parsedType
1256
- }), _;
1257
- }
1258
- return C(e.data);
1259
- }
1260
- }
1261
- ke.create = (r) => new ke({
1262
- typeName: p.ZodBoolean,
1263
- coerce: r?.coerce || !1,
1264
- ...v(r)
1265
- });
1266
- class X extends y {
1267
- _parse(e) {
1268
- if (this._def.coerce && (e.data = new Date(e.data)), this._getType(e) !== f.date) {
1269
- const n = this._getOrReturnCtx(e);
1270
- return l(n, {
1271
- code: d.invalid_type,
1272
- expected: f.date,
1273
- received: n.parsedType
1274
- }), _;
1275
- }
1276
- if (isNaN(e.data.getTime())) {
1277
- const n = this._getOrReturnCtx(e);
1278
- return l(n, {
1279
- code: d.invalid_date
1280
- }), _;
1281
- }
1282
- const s = new N();
1283
- let a;
1284
- for (const n of this._def.checks)
1285
- n.kind === "min" ? e.data.getTime() < n.value && (a = this._getOrReturnCtx(e, a), l(a, {
1286
- code: d.too_small,
1287
- message: n.message,
1288
- inclusive: !0,
1289
- exact: !1,
1290
- minimum: n.value,
1291
- type: "date"
1292
- }), s.dirty()) : n.kind === "max" ? e.data.getTime() > n.value && (a = this._getOrReturnCtx(e, a), l(a, {
1293
- code: d.too_big,
1294
- message: n.message,
1295
- inclusive: !0,
1296
- exact: !1,
1297
- maximum: n.value,
1298
- type: "date"
1299
- }), s.dirty()) : g.assertNever(n);
1300
- return {
1301
- status: s.value,
1302
- value: new Date(e.data.getTime())
1303
- };
1304
- }
1305
- _addCheck(e) {
1306
- return new X({
1307
- ...this._def,
1308
- checks: [...this._def.checks, e]
1309
- });
1310
- }
1311
- min(e, t) {
1312
- return this._addCheck({
1313
- kind: "min",
1314
- value: e.getTime(),
1315
- message: h.toString(t)
1316
- });
1317
- }
1318
- max(e, t) {
1319
- return this._addCheck({
1320
- kind: "max",
1321
- value: e.getTime(),
1322
- message: h.toString(t)
1323
- });
1324
- }
1325
- get minDate() {
1326
- let e = null;
1327
- for (const t of this._def.checks)
1328
- t.kind === "min" && (e === null || t.value > e) && (e = t.value);
1329
- return e != null ? new Date(e) : null;
1330
- }
1331
- get maxDate() {
1332
- let e = null;
1333
- for (const t of this._def.checks)
1334
- t.kind === "max" && (e === null || t.value < e) && (e = t.value);
1335
- return e != null ? new Date(e) : null;
1336
- }
1337
- }
1338
- X.create = (r) => new X({
1339
- checks: [],
1340
- coerce: r?.coerce || !1,
1341
- typeName: p.ZodDate,
1342
- ...v(r)
1343
- });
1344
- class be extends y {
1345
- _parse(e) {
1346
- if (this._getType(e) !== f.symbol) {
1347
- const s = this._getOrReturnCtx(e);
1348
- return l(s, {
1349
- code: d.invalid_type,
1350
- expected: f.symbol,
1351
- received: s.parsedType
1352
- }), _;
1353
- }
1354
- return C(e.data);
1355
- }
1356
- }
1357
- be.create = (r) => new be({
1358
- typeName: p.ZodSymbol,
1359
- ...v(r)
1360
- });
1361
- class ne extends y {
1362
- _parse(e) {
1363
- if (this._getType(e) !== f.undefined) {
1364
- const s = this._getOrReturnCtx(e);
1365
- return l(s, {
1366
- code: d.invalid_type,
1367
- expected: f.undefined,
1368
- received: s.parsedType
1369
- }), _;
1370
- }
1371
- return C(e.data);
1372
- }
1373
- }
1374
- ne.create = (r) => new ne({
1375
- typeName: p.ZodUndefined,
1376
- ...v(r)
1377
- });
1378
- class ie extends y {
1379
- _parse(e) {
1380
- if (this._getType(e) !== f.null) {
1381
- const s = this._getOrReturnCtx(e);
1382
- return l(s, {
1383
- code: d.invalid_type,
1384
- expected: f.null,
1385
- received: s.parsedType
1386
- }), _;
1387
- }
1388
- return C(e.data);
1389
- }
1390
- }
1391
- ie.create = (r) => new ie({
1392
- typeName: p.ZodNull,
1393
- ...v(r)
1394
- });
1395
- class we extends y {
1396
- constructor() {
1397
- super(...arguments), this._any = !0;
1398
- }
1399
- _parse(e) {
1400
- return C(e.data);
1401
- }
1402
- }
1403
- we.create = (r) => new we({
1404
- typeName: p.ZodAny,
1405
- ...v(r)
1406
- });
1407
- class z extends y {
1408
- constructor() {
1409
- super(...arguments), this._unknown = !0;
1410
- }
1411
- _parse(e) {
1412
- return C(e.data);
1413
- }
1414
- }
1415
- z.create = (r) => new z({
1416
- typeName: p.ZodUnknown,
1417
- ...v(r)
1418
- });
1419
- class M extends y {
1420
- _parse(e) {
1421
- const t = this._getOrReturnCtx(e);
1422
- return l(t, {
1423
- code: d.invalid_type,
1424
- expected: f.never,
1425
- received: t.parsedType
1426
- }), _;
1427
- }
1428
- }
1429
- M.create = (r) => new M({
1430
- typeName: p.ZodNever,
1431
- ...v(r)
1432
- });
1433
- class Te extends y {
1434
- _parse(e) {
1435
- if (this._getType(e) !== f.undefined) {
1436
- const s = this._getOrReturnCtx(e);
1437
- return l(s, {
1438
- code: d.invalid_type,
1439
- expected: f.void,
1440
- received: s.parsedType
1441
- }), _;
1442
- }
1443
- return C(e.data);
1444
- }
1445
- }
1446
- Te.create = (r) => new Te({
1447
- typeName: p.ZodVoid,
1448
- ...v(r)
1449
- });
1450
- class O extends y {
1451
- _parse(e) {
1452
- const { ctx: t, status: s } = this._processInputParams(e), a = this._def;
1453
- if (t.parsedType !== f.array)
1454
- return l(t, {
1455
- code: d.invalid_type,
1456
- expected: f.array,
1457
- received: t.parsedType
1458
- }), _;
1459
- if (a.exactLength !== null) {
1460
- const i = t.data.length > a.exactLength.value, o = t.data.length < a.exactLength.value;
1461
- (i || o) && (l(t, {
1462
- code: i ? d.too_big : d.too_small,
1463
- minimum: o ? a.exactLength.value : void 0,
1464
- maximum: i ? a.exactLength.value : void 0,
1465
- type: "array",
1466
- inclusive: !0,
1467
- exact: !0,
1468
- message: a.exactLength.message
1469
- }), s.dirty());
1470
- }
1471
- if (a.minLength !== null && t.data.length < a.minLength.value && (l(t, {
1472
- code: d.too_small,
1473
- minimum: a.minLength.value,
1474
- type: "array",
1475
- inclusive: !0,
1476
- exact: !1,
1477
- message: a.minLength.message
1478
- }), s.dirty()), a.maxLength !== null && t.data.length > a.maxLength.value && (l(t, {
1479
- code: d.too_big,
1480
- maximum: a.maxLength.value,
1481
- type: "array",
1482
- inclusive: !0,
1483
- exact: !1,
1484
- message: a.maxLength.message
1485
- }), s.dirty()), t.common.async)
1486
- return Promise.all([...t.data].map((i, o) => a.type._parseAsync(new Z(t, i, t.path, o)))).then((i) => N.mergeArray(s, i));
1487
- const n = [...t.data].map((i, o) => a.type._parseSync(new Z(t, i, t.path, o)));
1488
- return N.mergeArray(s, n);
1489
- }
1490
- get element() {
1491
- return this._def.type;
1492
- }
1493
- min(e, t) {
1494
- return new O({
1495
- ...this._def,
1496
- minLength: { value: e, message: h.toString(t) }
1497
- });
1498
- }
1499
- max(e, t) {
1500
- return new O({
1501
- ...this._def,
1502
- maxLength: { value: e, message: h.toString(t) }
1503
- });
1504
- }
1505
- length(e, t) {
1506
- return new O({
1507
- ...this._def,
1508
- exactLength: { value: e, message: h.toString(t) }
1509
- });
1510
- }
1511
- nonempty(e) {
1512
- return this.min(1, e);
1513
- }
1514
- }
1515
- O.create = (r, e) => new O({
1516
- type: r,
1517
- minLength: null,
1518
- maxLength: null,
1519
- exactLength: null,
1520
- typeName: p.ZodArray,
1521
- ...v(e)
1522
- });
1523
- function L(r) {
1524
- if (r instanceof k) {
1525
- const e = {};
1526
- for (const t in r.shape) {
1527
- const s = r.shape[t];
1528
- e[t] = j.create(L(s));
1529
- }
1530
- return new k({
1531
- ...r._def,
1532
- shape: () => e
1533
- });
1534
- } else
1535
- return r instanceof O ? new O({
1536
- ...r._def,
1537
- type: L(r.element)
1538
- }) : r instanceof j ? j.create(L(r.unwrap())) : r instanceof D ? D.create(L(r.unwrap())) : r instanceof I ? I.create(r.items.map((e) => L(e))) : r;
1539
- }
1540
- class k extends y {
1541
- constructor() {
1542
- super(...arguments), this._cached = null, this.nonstrict = this.passthrough, this.augment = this.extend;
1543
- }
1544
- _getCached() {
1545
- if (this._cached !== null)
1546
- return this._cached;
1547
- const e = this._def.shape(), t = g.objectKeys(e);
1548
- return this._cached = { shape: e, keys: t };
1549
- }
1550
- _parse(e) {
1551
- if (this._getType(e) !== f.object) {
1552
- const u = this._getOrReturnCtx(e);
1553
- return l(u, {
1554
- code: d.invalid_type,
1555
- expected: f.object,
1556
- received: u.parsedType
1557
- }), _;
1558
- }
1559
- const { status: s, ctx: a } = this._processInputParams(e), { shape: n, keys: i } = this._getCached(), o = [];
1560
- if (!(this._def.catchall instanceof M && this._def.unknownKeys === "strip"))
1561
- for (const u in a.data)
1562
- i.includes(u) || o.push(u);
1563
- const c = [];
1564
- for (const u of i) {
1565
- const m = n[u], w = a.data[u];
1566
- c.push({
1567
- key: { status: "valid", value: u },
1568
- value: m._parse(new Z(a, w, a.path, u)),
1569
- alwaysSet: u in a.data
1570
- });
1571
- }
1572
- if (this._def.catchall instanceof M) {
1573
- const u = this._def.unknownKeys;
1574
- if (u === "passthrough")
1575
- for (const m of o)
1576
- c.push({
1577
- key: { status: "valid", value: m },
1578
- value: { status: "valid", value: a.data[m] }
1579
- });
1580
- else if (u === "strict")
1581
- o.length > 0 && (l(a, {
1582
- code: d.unrecognized_keys,
1583
- keys: o
1584
- }), s.dirty());
1585
- else if (u !== "strip")
1586
- throw new Error("Internal ZodObject error: invalid unknownKeys value.");
1587
- } else {
1588
- const u = this._def.catchall;
1589
- for (const m of o) {
1590
- const w = a.data[m];
1591
- c.push({
1592
- key: { status: "valid", value: m },
1593
- value: u._parse(
1594
- new Z(a, w, a.path, m)
1595
- //, ctx.child(key), value, getParsedType(value)
1596
- ),
1597
- alwaysSet: m in a.data
1598
- });
1599
- }
1600
- }
1601
- return a.common.async ? Promise.resolve().then(async () => {
1602
- const u = [];
1603
- for (const m of c) {
1604
- const w = await m.key, W = await m.value;
1605
- u.push({
1606
- key: w,
1607
- value: W,
1608
- alwaysSet: m.alwaysSet
1609
- });
1610
- }
1611
- return u;
1612
- }).then((u) => N.mergeObjectSync(s, u)) : N.mergeObjectSync(s, c);
1613
- }
1614
- get shape() {
1615
- return this._def.shape();
1616
- }
1617
- strict(e) {
1618
- return h.errToObj, new k({
1619
- ...this._def,
1620
- unknownKeys: "strict",
1621
- ...e !== void 0 ? {
1622
- errorMap: (t, s) => {
1623
- var a, n, i, o;
1624
- const c = (i = (n = (a = this._def).errorMap) === null || n === void 0 ? void 0 : n.call(a, t, s).message) !== null && i !== void 0 ? i : s.defaultError;
1625
- return t.code === "unrecognized_keys" ? {
1626
- message: (o = h.errToObj(e).message) !== null && o !== void 0 ? o : c
1627
- } : {
1628
- message: c
1629
- };
1630
- }
1631
- } : {}
1632
- });
1633
- }
1634
- strip() {
1635
- return new k({
1636
- ...this._def,
1637
- unknownKeys: "strip"
1638
- });
1639
- }
1640
- passthrough() {
1641
- return new k({
1642
- ...this._def,
1643
- unknownKeys: "passthrough"
1644
- });
1645
- }
1646
- // const AugmentFactory =
1647
- // <Def extends ZodObjectDef>(def: Def) =>
1648
- // <Augmentation extends ZodRawShape>(
1649
- // augmentation: Augmentation
1650
- // ): ZodObject<
1651
- // extendShape<ReturnType<Def["shape"]>, Augmentation>,
1652
- // Def["unknownKeys"],
1653
- // Def["catchall"]
1654
- // > => {
1655
- // return new ZodObject({
1656
- // ...def,
1657
- // shape: () => ({
1658
- // ...def.shape(),
1659
- // ...augmentation,
1660
- // }),
1661
- // }) as any;
1662
- // };
1663
- extend(e) {
1664
- return new k({
1665
- ...this._def,
1666
- shape: () => ({
1667
- ...this._def.shape(),
1668
- ...e
1669
- })
1670
- });
1671
- }
1672
- /**
1673
- * Prior to zod@1.0.12 there was a bug in the
1674
- * inferred type of merged objects. Please
1675
- * upgrade if you are experiencing issues.
1676
- */
1677
- merge(e) {
1678
- return new k({
1679
- unknownKeys: e._def.unknownKeys,
1680
- catchall: e._def.catchall,
1681
- shape: () => ({
1682
- ...this._def.shape(),
1683
- ...e._def.shape()
1684
- }),
1685
- typeName: p.ZodObject
1686
- });
1687
- }
1688
- // merge<
1689
- // Incoming extends AnyZodObject,
1690
- // Augmentation extends Incoming["shape"],
1691
- // NewOutput extends {
1692
- // [k in keyof Augmentation | keyof Output]: k extends keyof Augmentation
1693
- // ? Augmentation[k]["_output"]
1694
- // : k extends keyof Output
1695
- // ? Output[k]
1696
- // : never;
1697
- // },
1698
- // NewInput extends {
1699
- // [k in keyof Augmentation | keyof Input]: k extends keyof Augmentation
1700
- // ? Augmentation[k]["_input"]
1701
- // : k extends keyof Input
1702
- // ? Input[k]
1703
- // : never;
1704
- // }
1705
- // >(
1706
- // merging: Incoming
1707
- // ): ZodObject<
1708
- // extendShape<T, ReturnType<Incoming["_def"]["shape"]>>,
1709
- // Incoming["_def"]["unknownKeys"],
1710
- // Incoming["_def"]["catchall"],
1711
- // NewOutput,
1712
- // NewInput
1713
- // > {
1714
- // const merged: any = new ZodObject({
1715
- // unknownKeys: merging._def.unknownKeys,
1716
- // catchall: merging._def.catchall,
1717
- // shape: () =>
1718
- // objectUtil.mergeShapes(this._def.shape(), merging._def.shape()),
1719
- // typeName: ZodFirstPartyTypeKind.ZodObject,
1720
- // }) as any;
1721
- // return merged;
1722
- // }
1723
- setKey(e, t) {
1724
- return this.augment({ [e]: t });
1725
- }
1726
- // merge<Incoming extends AnyZodObject>(
1727
- // merging: Incoming
1728
- // ): //ZodObject<T & Incoming["_shape"], UnknownKeys, Catchall> = (merging) => {
1729
- // ZodObject<
1730
- // extendShape<T, ReturnType<Incoming["_def"]["shape"]>>,
1731
- // Incoming["_def"]["unknownKeys"],
1732
- // Incoming["_def"]["catchall"]
1733
- // > {
1734
- // // const mergedShape = objectUtil.mergeShapes(
1735
- // // this._def.shape(),
1736
- // // merging._def.shape()
1737
- // // );
1738
- // const merged: any = new ZodObject({
1739
- // unknownKeys: merging._def.unknownKeys,
1740
- // catchall: merging._def.catchall,
1741
- // shape: () =>
1742
- // objectUtil.mergeShapes(this._def.shape(), merging._def.shape()),
1743
- // typeName: ZodFirstPartyTypeKind.ZodObject,
1744
- // }) as any;
1745
- // return merged;
1746
- // }
1747
- catchall(e) {
1748
- return new k({
1749
- ...this._def,
1750
- catchall: e
1751
- });
1752
- }
1753
- pick(e) {
1754
- const t = {};
1755
- return g.objectKeys(e).forEach((s) => {
1756
- e[s] && this.shape[s] && (t[s] = this.shape[s]);
1757
- }), new k({
1758
- ...this._def,
1759
- shape: () => t
1760
- });
1761
- }
1762
- omit(e) {
1763
- const t = {};
1764
- return g.objectKeys(this.shape).forEach((s) => {
1765
- e[s] || (t[s] = this.shape[s]);
1766
- }), new k({
1767
- ...this._def,
1768
- shape: () => t
1769
- });
1770
- }
1771
- /**
1772
- * @deprecated
1773
- */
1774
- deepPartial() {
1775
- return L(this);
1776
- }
1777
- partial(e) {
1778
- const t = {};
1779
- return g.objectKeys(this.shape).forEach((s) => {
1780
- const a = this.shape[s];
1781
- e && !e[s] ? t[s] = a : t[s] = a.optional();
1782
- }), new k({
1783
- ...this._def,
1784
- shape: () => t
1785
- });
1786
- }
1787
- required(e) {
1788
- const t = {};
1789
- return g.objectKeys(this.shape).forEach((s) => {
1790
- if (e && !e[s])
1791
- t[s] = this.shape[s];
1792
- else {
1793
- let n = this.shape[s];
1794
- for (; n instanceof j; )
1795
- n = n._def.innerType;
1796
- t[s] = n;
1797
- }
1798
- }), new k({
1799
- ...this._def,
1800
- shape: () => t
1801
- });
1802
- }
1803
- keyof() {
1804
- return dt(g.objectKeys(this.shape));
1805
- }
1806
- }
1807
- k.create = (r, e) => new k({
1808
- shape: () => r,
1809
- unknownKeys: "strip",
1810
- catchall: M.create(),
1811
- typeName: p.ZodObject,
1812
- ...v(e)
1813
- });
1814
- k.strictCreate = (r, e) => new k({
1815
- shape: () => r,
1816
- unknownKeys: "strict",
1817
- catchall: M.create(),
1818
- typeName: p.ZodObject,
1819
- ...v(e)
1820
- });
1821
- k.lazycreate = (r, e) => new k({
1822
- shape: r,
1823
- unknownKeys: "strip",
1824
- catchall: M.create(),
1825
- typeName: p.ZodObject,
1826
- ...v(e)
1827
- });
1828
- class oe extends y {
1829
- _parse(e) {
1830
- const { ctx: t } = this._processInputParams(e), s = this._def.options;
1831
- function a(n) {
1832
- for (const o of n)
1833
- if (o.result.status === "valid")
1834
- return o.result;
1835
- for (const o of n)
1836
- if (o.result.status === "dirty")
1837
- return t.common.issues.push(...o.ctx.common.issues), o.result;
1838
- const i = n.map((o) => new S(o.ctx.common.issues));
1839
- return l(t, {
1840
- code: d.invalid_union,
1841
- unionErrors: i
1842
- }), _;
1843
- }
1844
- if (t.common.async)
1845
- return Promise.all(s.map(async (n) => {
1846
- const i = {
1847
- ...t,
1848
- common: {
1849
- ...t.common,
1850
- issues: []
1851
- },
1852
- parent: null
1853
- };
1854
- return {
1855
- result: await n._parseAsync({
1856
- data: t.data,
1857
- path: t.path,
1858
- parent: i
1859
- }),
1860
- ctx: i
1861
- };
1862
- })).then(a);
1863
- {
1864
- let n;
1865
- const i = [];
1866
- for (const c of s) {
1867
- const u = {
1868
- ...t,
1869
- common: {
1870
- ...t.common,
1871
- issues: []
1872
- },
1873
- parent: null
1874
- }, m = c._parseSync({
1875
- data: t.data,
1876
- path: t.path,
1877
- parent: u
1878
- });
1879
- if (m.status === "valid")
1880
- return m;
1881
- m.status === "dirty" && !n && (n = { result: m, ctx: u }), u.common.issues.length && i.push(u.common.issues);
1882
- }
1883
- if (n)
1884
- return t.common.issues.push(...n.ctx.common.issues), n.result;
1885
- const o = i.map((c) => new S(c));
1886
- return l(t, {
1887
- code: d.invalid_union,
1888
- unionErrors: o
1889
- }), _;
1890
- }
1891
- }
1892
- get options() {
1893
- return this._def.options;
1894
- }
1895
- }
1896
- oe.create = (r, e) => new oe({
1897
- options: r,
1898
- typeName: p.ZodUnion,
1899
- ...v(e)
1900
- });
1901
- const E = (r) => r instanceof ue ? E(r.schema) : r instanceof $ ? E(r.innerType()) : r instanceof le ? [r.value] : r instanceof P ? r.options : r instanceof fe ? g.objectValues(r.enum) : r instanceof K ? E(r._def.innerType) : r instanceof ne ? [void 0] : r instanceof ie ? [null] : r instanceof j ? [void 0, ...E(r.unwrap())] : r instanceof D ? [null, ...E(r.unwrap())] : r instanceof ct || r instanceof me ? E(r.unwrap()) : r instanceof he ? E(r._def.innerType) : [];
1902
- class Re extends y {
1903
- _parse(e) {
1904
- const { ctx: t } = this._processInputParams(e);
1905
- if (t.parsedType !== f.object)
1906
- return l(t, {
1907
- code: d.invalid_type,
1908
- expected: f.object,
1909
- received: t.parsedType
1910
- }), _;
1911
- const s = this.discriminator, a = t.data[s], n = this.optionsMap.get(a);
1912
- return n ? t.common.async ? n._parseAsync({
1913
- data: t.data,
1914
- path: t.path,
1915
- parent: t
1916
- }) : n._parseSync({
1917
- data: t.data,
1918
- path: t.path,
1919
- parent: t
1920
- }) : (l(t, {
1921
- code: d.invalid_union_discriminator,
1922
- options: Array.from(this.optionsMap.keys()),
1923
- path: [s]
1924
- }), _);
1925
- }
1926
- get discriminator() {
1927
- return this._def.discriminator;
1928
- }
1929
- get options() {
1930
- return this._def.options;
1931
- }
1932
- get optionsMap() {
1933
- return this._def.optionsMap;
1934
- }
1935
- /**
1936
- * The constructor of the discriminated union schema. Its behaviour is very similar to that of the normal z.union() constructor.
1937
- * However, it only allows a union of objects, all of which need to share a discriminator property. This property must
1938
- * have a different value for each object in the union.
1939
- * @param discriminator the name of the discriminator property
1940
- * @param types an array of object schemas
1941
- * @param params
1942
- */
1943
- static create(e, t, s) {
1944
- const a = /* @__PURE__ */ new Map();
1945
- for (const n of t) {
1946
- const i = E(n.shape[e]);
1947
- if (!i.length)
1948
- throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);
1949
- for (const o of i) {
1950
- if (a.has(o))
1951
- throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(o)}`);
1952
- a.set(o, n);
1953
- }
1954
- }
1955
- return new Re({
1956
- typeName: p.ZodDiscriminatedUnion,
1957
- discriminator: e,
1958
- options: t,
1959
- optionsMap: a,
1960
- ...v(s)
1961
- });
1962
- }
1963
- }
1964
- function Ne(r, e) {
1965
- const t = V(r), s = V(e);
1966
- if (r === e)
1967
- return { valid: !0, data: r };
1968
- if (t === f.object && s === f.object) {
1969
- const a = g.objectKeys(e), n = g.objectKeys(r).filter((o) => a.indexOf(o) !== -1), i = { ...r, ...e };
1970
- for (const o of n) {
1971
- const c = Ne(r[o], e[o]);
1972
- if (!c.valid)
1973
- return { valid: !1 };
1974
- i[o] = c.data;
1975
- }
1976
- return { valid: !0, data: i };
1977
- } else if (t === f.array && s === f.array) {
1978
- if (r.length !== e.length)
1979
- return { valid: !1 };
1980
- const a = [];
1981
- for (let n = 0; n < r.length; n++) {
1982
- const i = r[n], o = e[n], c = Ne(i, o);
1983
- if (!c.valid)
1984
- return { valid: !1 };
1985
- a.push(c.data);
1986
- }
1987
- return { valid: !0, data: a };
1988
- } else
1989
- return t === f.date && s === f.date && +r == +e ? { valid: !0, data: r } : { valid: !1 };
1990
- }
1991
- class de extends y {
1992
- _parse(e) {
1993
- const { status: t, ctx: s } = this._processInputParams(e), a = (n, i) => {
1994
- if (Pe(n) || Pe(i))
1995
- return _;
1996
- const o = Ne(n.value, i.value);
1997
- return o.valid ? ((De(n) || De(i)) && t.dirty(), { status: t.value, value: o.data }) : (l(s, {
1998
- code: d.invalid_intersection_types
1999
- }), _);
2000
- };
2001
- return s.common.async ? Promise.all([
2002
- this._def.left._parseAsync({
2003
- data: s.data,
2004
- path: s.path,
2005
- parent: s
2006
- }),
2007
- this._def.right._parseAsync({
2008
- data: s.data,
2009
- path: s.path,
2010
- parent: s
2011
- })
2012
- ]).then(([n, i]) => a(n, i)) : a(this._def.left._parseSync({
2013
- data: s.data,
2014
- path: s.path,
2015
- parent: s
2016
- }), this._def.right._parseSync({
2017
- data: s.data,
2018
- path: s.path,
2019
- parent: s
2020
- }));
2021
- }
2022
- }
2023
- de.create = (r, e, t) => new de({
2024
- left: r,
2025
- right: e,
2026
- typeName: p.ZodIntersection,
2027
- ...v(t)
2028
- });
2029
- class I extends y {
2030
- _parse(e) {
2031
- const { status: t, ctx: s } = this._processInputParams(e);
2032
- if (s.parsedType !== f.array)
2033
- return l(s, {
2034
- code: d.invalid_type,
2035
- expected: f.array,
2036
- received: s.parsedType
2037
- }), _;
2038
- if (s.data.length < this._def.items.length)
2039
- return l(s, {
2040
- code: d.too_small,
2041
- minimum: this._def.items.length,
2042
- inclusive: !0,
2043
- exact: !1,
2044
- type: "array"
2045
- }), _;
2046
- !this._def.rest && s.data.length > this._def.items.length && (l(s, {
2047
- code: d.too_big,
2048
- maximum: this._def.items.length,
2049
- inclusive: !0,
2050
- exact: !1,
2051
- type: "array"
2052
- }), t.dirty());
2053
- const n = [...s.data].map((i, o) => {
2054
- const c = this._def.items[o] || this._def.rest;
2055
- return c ? c._parse(new Z(s, i, s.path, o)) : null;
2056
- }).filter((i) => !!i);
2057
- return s.common.async ? Promise.all(n).then((i) => N.mergeArray(t, i)) : N.mergeArray(t, n);
2058
- }
2059
- get items() {
2060
- return this._def.items;
2061
- }
2062
- rest(e) {
2063
- return new I({
2064
- ...this._def,
2065
- rest: e
2066
- });
2067
- }
2068
- }
2069
- I.create = (r, e) => {
2070
- if (!Array.isArray(r))
2071
- throw new Error("You must pass an array of schemas to z.tuple([ ... ])");
2072
- return new I({
2073
- items: r,
2074
- typeName: p.ZodTuple,
2075
- rest: null,
2076
- ...v(e)
2077
- });
2078
- };
2079
- class ce extends y {
2080
- get keySchema() {
2081
- return this._def.keyType;
2082
- }
2083
- get valueSchema() {
2084
- return this._def.valueType;
2085
- }
2086
- _parse(e) {
2087
- const { status: t, ctx: s } = this._processInputParams(e);
2088
- if (s.parsedType !== f.object)
2089
- return l(s, {
2090
- code: d.invalid_type,
2091
- expected: f.object,
2092
- received: s.parsedType
2093
- }), _;
2094
- const a = [], n = this._def.keyType, i = this._def.valueType;
2095
- for (const o in s.data)
2096
- a.push({
2097
- key: n._parse(new Z(s, o, s.path, o)),
2098
- value: i._parse(new Z(s, s.data[o], s.path, o)),
2099
- alwaysSet: o in s.data
2100
- });
2101
- return s.common.async ? N.mergeObjectAsync(t, a) : N.mergeObjectSync(t, a);
2102
- }
2103
- get element() {
2104
- return this._def.valueType;
2105
- }
2106
- static create(e, t, s) {
2107
- return t instanceof y ? new ce({
2108
- keyType: e,
2109
- valueType: t,
2110
- typeName: p.ZodRecord,
2111
- ...v(s)
2112
- }) : new ce({
2113
- keyType: R.create(),
2114
- valueType: e,
2115
- typeName: p.ZodRecord,
2116
- ...v(t)
2117
- });
2118
- }
2119
- }
2120
- class Ce extends y {
2121
- get keySchema() {
2122
- return this._def.keyType;
2123
- }
2124
- get valueSchema() {
2125
- return this._def.valueType;
2126
- }
2127
- _parse(e) {
2128
- const { status: t, ctx: s } = this._processInputParams(e);
2129
- if (s.parsedType !== f.map)
2130
- return l(s, {
2131
- code: d.invalid_type,
2132
- expected: f.map,
2133
- received: s.parsedType
2134
- }), _;
2135
- const a = this._def.keyType, n = this._def.valueType, i = [...s.data.entries()].map(([o, c], u) => ({
2136
- key: a._parse(new Z(s, o, s.path, [u, "key"])),
2137
- value: n._parse(new Z(s, c, s.path, [u, "value"]))
2138
- }));
2139
- if (s.common.async) {
2140
- const o = /* @__PURE__ */ new Map();
2141
- return Promise.resolve().then(async () => {
2142
- for (const c of i) {
2143
- const u = await c.key, m = await c.value;
2144
- if (u.status === "aborted" || m.status === "aborted")
2145
- return _;
2146
- (u.status === "dirty" || m.status === "dirty") && t.dirty(), o.set(u.value, m.value);
2147
- }
2148
- return { status: t.value, value: o };
2149
- });
2150
- } else {
2151
- const o = /* @__PURE__ */ new Map();
2152
- for (const c of i) {
2153
- const u = c.key, m = c.value;
2154
- if (u.status === "aborted" || m.status === "aborted")
2155
- return _;
2156
- (u.status === "dirty" || m.status === "dirty") && t.dirty(), o.set(u.value, m.value);
2157
- }
2158
- return { status: t.value, value: o };
2159
- }
2160
- }
2161
- }
2162
- Ce.create = (r, e, t) => new Ce({
2163
- valueType: e,
2164
- keyType: r,
2165
- typeName: p.ZodMap,
2166
- ...v(t)
2167
- });
2168
- class q extends y {
2169
- _parse(e) {
2170
- const { status: t, ctx: s } = this._processInputParams(e);
2171
- if (s.parsedType !== f.set)
2172
- return l(s, {
2173
- code: d.invalid_type,
2174
- expected: f.set,
2175
- received: s.parsedType
2176
- }), _;
2177
- const a = this._def;
2178
- a.minSize !== null && s.data.size < a.minSize.value && (l(s, {
2179
- code: d.too_small,
2180
- minimum: a.minSize.value,
2181
- type: "set",
2182
- inclusive: !0,
2183
- exact: !1,
2184
- message: a.minSize.message
2185
- }), t.dirty()), a.maxSize !== null && s.data.size > a.maxSize.value && (l(s, {
2186
- code: d.too_big,
2187
- maximum: a.maxSize.value,
2188
- type: "set",
2189
- inclusive: !0,
2190
- exact: !1,
2191
- message: a.maxSize.message
2192
- }), t.dirty());
2193
- const n = this._def.valueType;
2194
- function i(c) {
2195
- const u = /* @__PURE__ */ new Set();
2196
- for (const m of c) {
2197
- if (m.status === "aborted")
2198
- return _;
2199
- m.status === "dirty" && t.dirty(), u.add(m.value);
2200
- }
2201
- return { status: t.value, value: u };
2202
- }
2203
- const o = [...s.data.values()].map((c, u) => n._parse(new Z(s, c, s.path, u)));
2204
- return s.common.async ? Promise.all(o).then((c) => i(c)) : i(o);
2205
- }
2206
- min(e, t) {
2207
- return new q({
2208
- ...this._def,
2209
- minSize: { value: e, message: h.toString(t) }
2210
- });
2211
- }
2212
- max(e, t) {
2213
- return new q({
2214
- ...this._def,
2215
- maxSize: { value: e, message: h.toString(t) }
2216
- });
2217
- }
2218
- size(e, t) {
2219
- return this.min(e, t).max(e, t);
2220
- }
2221
- nonempty(e) {
2222
- return this.min(1, e);
2223
- }
2224
- }
2225
- q.create = (r, e) => new q({
2226
- valueType: r,
2227
- minSize: null,
2228
- maxSize: null,
2229
- typeName: p.ZodSet,
2230
- ...v(e)
2231
- });
2232
- class J extends y {
2233
- constructor() {
2234
- super(...arguments), this.validate = this.implement;
2235
- }
2236
- _parse(e) {
2237
- const { ctx: t } = this._processInputParams(e);
2238
- if (t.parsedType !== f.function)
2239
- return l(t, {
2240
- code: d.invalid_type,
2241
- expected: f.function,
2242
- received: t.parsedType
2243
- }), _;
2244
- function s(o, c) {
2245
- return ge({
2246
- data: o,
2247
- path: t.path,
2248
- errorMaps: [
2249
- t.common.contextualErrorMap,
2250
- t.schemaErrorMap,
2251
- ye(),
2252
- F
2253
- ].filter((u) => !!u),
2254
- issueData: {
2255
- code: d.invalid_arguments,
2256
- argumentsError: c
2257
- }
2258
- });
2259
- }
2260
- function a(o, c) {
2261
- return ge({
2262
- data: o,
2263
- path: t.path,
2264
- errorMaps: [
2265
- t.common.contextualErrorMap,
2266
- t.schemaErrorMap,
2267
- ye(),
2268
- F
2269
- ].filter((u) => !!u),
2270
- issueData: {
2271
- code: d.invalid_return_type,
2272
- returnTypeError: c
2273
- }
2274
- });
2275
- }
2276
- const n = { errorMap: t.common.contextualErrorMap }, i = t.data;
2277
- if (this._def.returns instanceof Q) {
2278
- const o = this;
2279
- return C(async function(...c) {
2280
- const u = new S([]), m = await o._def.args.parseAsync(c, n).catch((ee) => {
2281
- throw u.addIssue(s(c, ee)), u;
2282
- }), w = await Reflect.apply(i, this, m);
2283
- return await o._def.returns._def.type.parseAsync(w, n).catch((ee) => {
2284
- throw u.addIssue(a(w, ee)), u;
2285
- });
2286
- });
2287
- } else {
2288
- const o = this;
2289
- return C(function(...c) {
2290
- const u = o._def.args.safeParse(c, n);
2291
- if (!u.success)
2292
- throw new S([s(c, u.error)]);
2293
- const m = Reflect.apply(i, this, u.data), w = o._def.returns.safeParse(m, n);
2294
- if (!w.success)
2295
- throw new S([a(m, w.error)]);
2296
- return w.data;
2297
- });
2298
- }
2299
- }
2300
- parameters() {
2301
- return this._def.args;
2302
- }
2303
- returnType() {
2304
- return this._def.returns;
2305
- }
2306
- args(...e) {
2307
- return new J({
2308
- ...this._def,
2309
- args: I.create(e).rest(z.create())
2310
- });
2311
- }
2312
- returns(e) {
2313
- return new J({
2314
- ...this._def,
2315
- returns: e
2316
- });
2317
- }
2318
- implement(e) {
2319
- return this.parse(e);
2320
- }
2321
- strictImplement(e) {
2322
- return this.parse(e);
2323
- }
2324
- static create(e, t, s) {
2325
- return new J({
2326
- args: e || I.create([]).rest(z.create()),
2327
- returns: t || z.create(),
2328
- typeName: p.ZodFunction,
2329
- ...v(s)
2330
- });
2331
- }
2332
- }
2333
- class ue extends y {
2334
- get schema() {
2335
- return this._def.getter();
2336
- }
2337
- _parse(e) {
2338
- const { ctx: t } = this._processInputParams(e);
2339
- return this._def.getter()._parse({ data: t.data, path: t.path, parent: t });
2340
- }
2341
- }
2342
- ue.create = (r, e) => new ue({
2343
- getter: r,
2344
- typeName: p.ZodLazy,
2345
- ...v(e)
2346
- });
2347
- class le extends y {
2348
- _parse(e) {
2349
- if (e.data !== this._def.value) {
2350
- const t = this._getOrReturnCtx(e);
2351
- return l(t, {
2352
- received: t.data,
2353
- code: d.invalid_literal,
2354
- expected: this._def.value
2355
- }), _;
2356
- }
2357
- return { status: "valid", value: e.data };
2358
- }
2359
- get value() {
2360
- return this._def.value;
2361
- }
2362
- }
2363
- le.create = (r, e) => new le({
2364
- value: r,
2365
- typeName: p.ZodLiteral,
2366
- ...v(e)
2367
- });
2368
- function dt(r, e) {
2369
- return new P({
2370
- values: r,
2371
- typeName: p.ZodEnum,
2372
- ...v(e)
2373
- });
2374
- }
2375
- class P extends y {
2376
- constructor() {
2377
- super(...arguments), Y.set(this, void 0);
2378
- }
2379
- _parse(e) {
2380
- if (typeof e.data != "string") {
2381
- const t = this._getOrReturnCtx(e), s = this._def.values;
2382
- return l(t, {
2383
- expected: g.joinValues(s),
2384
- received: t.parsedType,
2385
- code: d.invalid_type
2386
- }), _;
2387
- }
2388
- if (ae(this, Y) || nt(this, Y, new Set(this._def.values)), !ae(this, Y).has(e.data)) {
2389
- const t = this._getOrReturnCtx(e), s = this._def.values;
2390
- return l(t, {
2391
- received: t.data,
2392
- code: d.invalid_enum_value,
2393
- options: s
2394
- }), _;
2395
- }
2396
- return C(e.data);
2397
- }
2398
- get options() {
2399
- return this._def.values;
2400
- }
2401
- get enum() {
2402
- const e = {};
2403
- for (const t of this._def.values)
2404
- e[t] = t;
2405
- return e;
2406
- }
2407
- get Values() {
2408
- const e = {};
2409
- for (const t of this._def.values)
2410
- e[t] = t;
2411
- return e;
2412
- }
2413
- get Enum() {
2414
- const e = {};
2415
- for (const t of this._def.values)
2416
- e[t] = t;
2417
- return e;
2418
- }
2419
- extract(e, t = this._def) {
2420
- return P.create(e, {
2421
- ...this._def,
2422
- ...t
2423
- });
2424
- }
2425
- exclude(e, t = this._def) {
2426
- return P.create(this.options.filter((s) => !e.includes(s)), {
2427
- ...this._def,
2428
- ...t
2429
- });
2430
- }
2431
- }
2432
- Y = /* @__PURE__ */ new WeakMap();
2433
- P.create = dt;
2434
- class fe extends y {
2435
- constructor() {
2436
- super(...arguments), G.set(this, void 0);
2437
- }
2438
- _parse(e) {
2439
- const t = g.getValidEnumValues(this._def.values), s = this._getOrReturnCtx(e);
2440
- if (s.parsedType !== f.string && s.parsedType !== f.number) {
2441
- const a = g.objectValues(t);
2442
- return l(s, {
2443
- expected: g.joinValues(a),
2444
- received: s.parsedType,
2445
- code: d.invalid_type
2446
- }), _;
2447
- }
2448
- if (ae(this, G) || nt(this, G, new Set(g.getValidEnumValues(this._def.values))), !ae(this, G).has(e.data)) {
2449
- const a = g.objectValues(t);
2450
- return l(s, {
2451
- received: s.data,
2452
- code: d.invalid_enum_value,
2453
- options: a
2454
- }), _;
2455
- }
2456
- return C(e.data);
2457
- }
2458
- get enum() {
2459
- return this._def.values;
2460
- }
2461
- }
2462
- G = /* @__PURE__ */ new WeakMap();
2463
- fe.create = (r, e) => new fe({
2464
- values: r,
2465
- typeName: p.ZodNativeEnum,
2466
- ...v(e)
2467
- });
2468
- class Q extends y {
2469
- unwrap() {
2470
- return this._def.type;
2471
- }
2472
- _parse(e) {
2473
- const { ctx: t } = this._processInputParams(e);
2474
- if (t.parsedType !== f.promise && t.common.async === !1)
2475
- return l(t, {
2476
- code: d.invalid_type,
2477
- expected: f.promise,
2478
- received: t.parsedType
2479
- }), _;
2480
- const s = t.parsedType === f.promise ? t.data : Promise.resolve(t.data);
2481
- return C(s.then((a) => this._def.type.parseAsync(a, {
2482
- path: t.path,
2483
- errorMap: t.common.contextualErrorMap
2484
- })));
2485
- }
2486
- }
2487
- Q.create = (r, e) => new Q({
2488
- type: r,
2489
- typeName: p.ZodPromise,
2490
- ...v(e)
2491
- });
2492
- class $ extends y {
2493
- innerType() {
2494
- return this._def.schema;
2495
- }
2496
- sourceType() {
2497
- return this._def.schema._def.typeName === p.ZodEffects ? this._def.schema.sourceType() : this._def.schema;
2498
- }
2499
- _parse(e) {
2500
- const { status: t, ctx: s } = this._processInputParams(e), a = this._def.effect || null, n = {
2501
- addIssue: (i) => {
2502
- l(s, i), i.fatal ? t.abort() : t.dirty();
2503
- },
2504
- get path() {
2505
- return s.path;
2506
- }
2507
- };
2508
- if (n.addIssue = n.addIssue.bind(n), a.type === "preprocess") {
2509
- const i = a.transform(s.data, n);
2510
- if (s.common.async)
2511
- return Promise.resolve(i).then(async (o) => {
2512
- if (t.value === "aborted")
2513
- return _;
2514
- const c = await this._def.schema._parseAsync({
2515
- data: o,
2516
- path: s.path,
2517
- parent: s
2518
- });
2519
- return c.status === "aborted" ? _ : c.status === "dirty" || t.value === "dirty" ? H(c.value) : c;
2520
- });
2521
- {
2522
- if (t.value === "aborted")
2523
- return _;
2524
- const o = this._def.schema._parseSync({
2525
- data: i,
2526
- path: s.path,
2527
- parent: s
2528
- });
2529
- return o.status === "aborted" ? _ : o.status === "dirty" || t.value === "dirty" ? H(o.value) : o;
2530
- }
2531
- }
2532
- if (a.type === "refinement") {
2533
- const i = (o) => {
2534
- const c = a.refinement(o, n);
2535
- if (s.common.async)
2536
- return Promise.resolve(c);
2537
- if (c instanceof Promise)
2538
- throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");
2539
- return o;
2540
- };
2541
- if (s.common.async === !1) {
2542
- const o = this._def.schema._parseSync({
2543
- data: s.data,
2544
- path: s.path,
2545
- parent: s
2546
- });
2547
- return o.status === "aborted" ? _ : (o.status === "dirty" && t.dirty(), i(o.value), { status: t.value, value: o.value });
2548
- } else
2549
- return this._def.schema._parseAsync({ data: s.data, path: s.path, parent: s }).then((o) => o.status === "aborted" ? _ : (o.status === "dirty" && t.dirty(), i(o.value).then(() => ({ status: t.value, value: o.value }))));
2550
- }
2551
- if (a.type === "transform")
2552
- if (s.common.async === !1) {
2553
- const i = this._def.schema._parseSync({
2554
- data: s.data,
2555
- path: s.path,
2556
- parent: s
2557
- });
2558
- if (!se(i))
2559
- return i;
2560
- const o = a.transform(i.value, n);
2561
- if (o instanceof Promise)
2562
- throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");
2563
- return { status: t.value, value: o };
2564
- } else
2565
- return this._def.schema._parseAsync({ data: s.data, path: s.path, parent: s }).then((i) => se(i) ? Promise.resolve(a.transform(i.value, n)).then((o) => ({ status: t.value, value: o })) : i);
2566
- g.assertNever(a);
2567
- }
2568
- }
2569
- $.create = (r, e, t) => new $({
2570
- schema: r,
2571
- typeName: p.ZodEffects,
2572
- effect: e,
2573
- ...v(t)
2574
- });
2575
- $.createWithPreprocess = (r, e, t) => new $({
2576
- schema: e,
2577
- effect: { type: "preprocess", transform: r },
2578
- typeName: p.ZodEffects,
2579
- ...v(t)
2580
- });
2581
- class j extends y {
2582
- _parse(e) {
2583
- return this._getType(e) === f.undefined ? C(void 0) : this._def.innerType._parse(e);
2584
- }
2585
- unwrap() {
2586
- return this._def.innerType;
2587
- }
2588
- }
2589
- j.create = (r, e) => new j({
2590
- innerType: r,
2591
- typeName: p.ZodOptional,
2592
- ...v(e)
2593
- });
2594
- class D extends y {
2595
- _parse(e) {
2596
- return this._getType(e) === f.null ? C(null) : this._def.innerType._parse(e);
2597
- }
2598
- unwrap() {
2599
- return this._def.innerType;
2600
- }
2601
- }
2602
- D.create = (r, e) => new D({
2603
- innerType: r,
2604
- typeName: p.ZodNullable,
2605
- ...v(e)
2606
- });
2607
- class K extends y {
2608
- _parse(e) {
2609
- const { ctx: t } = this._processInputParams(e);
2610
- let s = t.data;
2611
- return t.parsedType === f.undefined && (s = this._def.defaultValue()), this._def.innerType._parse({
2612
- data: s,
2613
- path: t.path,
2614
- parent: t
2615
- });
2616
- }
2617
- removeDefault() {
2618
- return this._def.innerType;
2619
- }
2620
- }
2621
- K.create = (r, e) => new K({
2622
- innerType: r,
2623
- typeName: p.ZodDefault,
2624
- defaultValue: typeof e.default == "function" ? e.default : () => e.default,
2625
- ...v(e)
2626
- });
2627
- class he extends y {
2628
- _parse(e) {
2629
- const { ctx: t } = this._processInputParams(e), s = {
2630
- ...t,
2631
- common: {
2632
- ...t.common,
2633
- issues: []
2634
- }
2635
- }, a = this._def.innerType._parse({
2636
- data: s.data,
2637
- path: s.path,
2638
- parent: {
2639
- ...s
2640
- }
2641
- });
2642
- return xe(a) ? a.then((n) => ({
2643
- status: "valid",
2644
- value: n.status === "valid" ? n.value : this._def.catchValue({
2645
- get error() {
2646
- return new S(s.common.issues);
2647
- },
2648
- input: s.data
2649
- })
2650
- })) : {
2651
- status: "valid",
2652
- value: a.status === "valid" ? a.value : this._def.catchValue({
2653
- get error() {
2654
- return new S(s.common.issues);
2655
- },
2656
- input: s.data
2657
- })
2658
- };
2659
- }
2660
- removeCatch() {
2661
- return this._def.innerType;
2662
- }
2663
- }
2664
- he.create = (r, e) => new he({
2665
- innerType: r,
2666
- typeName: p.ZodCatch,
2667
- catchValue: typeof e.catch == "function" ? e.catch : () => e.catch,
2668
- ...v(e)
2669
- });
2670
- class Se extends y {
2671
- _parse(e) {
2672
- if (this._getType(e) !== f.nan) {
2673
- const s = this._getOrReturnCtx(e);
2674
- return l(s, {
2675
- code: d.invalid_type,
2676
- expected: f.nan,
2677
- received: s.parsedType
2678
- }), _;
2679
- }
2680
- return { status: "valid", value: e.data };
2681
- }
2682
- }
2683
- Se.create = (r) => new Se({
2684
- typeName: p.ZodNaN,
2685
- ...v(r)
2686
- });
2687
- class ct extends y {
2688
- _parse(e) {
2689
- const { ctx: t } = this._processInputParams(e), s = t.data;
2690
- return this._def.type._parse({
2691
- data: s,
2692
- path: t.path,
2693
- parent: t
2694
- });
2695
- }
2696
- unwrap() {
2697
- return this._def.type;
2698
- }
2699
- }
2700
- class pe extends y {
2701
- _parse(e) {
2702
- const { status: t, ctx: s } = this._processInputParams(e);
2703
- if (s.common.async)
2704
- return (async () => {
2705
- const n = await this._def.in._parseAsync({
2706
- data: s.data,
2707
- path: s.path,
2708
- parent: s
2709
- });
2710
- return n.status === "aborted" ? _ : n.status === "dirty" ? (t.dirty(), H(n.value)) : this._def.out._parseAsync({
2711
- data: n.value,
2712
- path: s.path,
2713
- parent: s
2714
- });
2715
- })();
2716
- {
2717
- const a = this._def.in._parseSync({
2718
- data: s.data,
2719
- path: s.path,
2720
- parent: s
2721
- });
2722
- return a.status === "aborted" ? _ : a.status === "dirty" ? (t.dirty(), {
2723
- status: "dirty",
2724
- value: a.value
2725
- }) : this._def.out._parseSync({
2726
- data: a.value,
2727
- path: s.path,
2728
- parent: s
2729
- });
2730
- }
2731
- }
2732
- static create(e, t) {
2733
- return new pe({
2734
- in: e,
2735
- out: t,
2736
- typeName: p.ZodPipeline
2737
- });
2738
- }
2739
- }
2740
- class me extends y {
2741
- _parse(e) {
2742
- const t = this._def.innerType._parse(e);
2743
- return se(t) && (t.value = Object.freeze(t.value)), t;
2744
- }
2745
- unwrap() {
2746
- return this._def.innerType;
2747
- }
2748
- }
2749
- me.create = (r, e) => new me({
2750
- innerType: r,
2751
- typeName: p.ZodReadonly,
2752
- ...v(e)
2753
- });
2754
- k.lazycreate;
2755
- var p;
2756
- (function(r) {
2757
- r.ZodString = "ZodString", r.ZodNumber = "ZodNumber", r.ZodNaN = "ZodNaN", r.ZodBigInt = "ZodBigInt", r.ZodBoolean = "ZodBoolean", r.ZodDate = "ZodDate", r.ZodSymbol = "ZodSymbol", r.ZodUndefined = "ZodUndefined", r.ZodNull = "ZodNull", r.ZodAny = "ZodAny", r.ZodUnknown = "ZodUnknown", r.ZodNever = "ZodNever", r.ZodVoid = "ZodVoid", r.ZodArray = "ZodArray", r.ZodObject = "ZodObject", r.ZodUnion = "ZodUnion", r.ZodDiscriminatedUnion = "ZodDiscriminatedUnion", r.ZodIntersection = "ZodIntersection", r.ZodTuple = "ZodTuple", r.ZodRecord = "ZodRecord", r.ZodMap = "ZodMap", r.ZodSet = "ZodSet", r.ZodFunction = "ZodFunction", r.ZodLazy = "ZodLazy", r.ZodLiteral = "ZodLiteral", r.ZodEnum = "ZodEnum", r.ZodEffects = "ZodEffects", r.ZodNativeEnum = "ZodNativeEnum", r.ZodOptional = "ZodOptional", r.ZodNullable = "ZodNullable", r.ZodDefault = "ZodDefault", r.ZodCatch = "ZodCatch", r.ZodPromise = "ZodPromise", r.ZodBranded = "ZodBranded", r.ZodPipeline = "ZodPipeline", r.ZodReadonly = "ZodReadonly";
2758
- })(p || (p = {}));
2759
- R.create;
2760
- B.create;
2761
- Se.create;
2762
- U.create;
2763
- ke.create;
2764
- X.create;
2765
- be.create;
2766
- ne.create;
2767
- ie.create;
2768
- we.create;
2769
- z.create;
2770
- M.create;
2771
- Te.create;
2772
- O.create;
2773
- k.create;
2774
- k.strictCreate;
2775
- oe.create;
2776
- Re.create;
2777
- de.create;
2778
- I.create;
2779
- ce.create;
2780
- Ce.create;
2781
- q.create;
2782
- J.create;
2783
- ue.create;
2784
- le.create;
2785
- P.create;
2786
- fe.create;
2787
- Q.create;
2788
- $.create;
2789
- j.create;
2790
- D.create;
2791
- $.createWithPreprocess;
2792
- pe.create;
2793
- const Bt = { class: "!my-4 flex justify-end" }, Ut = /* @__PURE__ */ Oe({
2794
- __name: "BuiAutoFormFieldArray",
2795
- props: {
2796
- fieldName: {},
2797
- required: { type: Boolean },
2798
- config: {},
2799
- schema: {},
2800
- disabled: { type: Boolean }
2801
- },
2802
- setup(r) {
2803
- const e = r;
2804
- function t(i) {
2805
- return i instanceof O;
2806
- }
2807
- function s(i) {
2808
- return i instanceof K;
2809
- }
2810
- const a = Ze(() => {
2811
- if (!e.schema)
2812
- return;
2813
- const i = t(e.schema) ? e.schema._def.type : s(e.schema) ? (
2814
- // @ts-expect-error missing schema
2815
- e.schema._def.innerType._def.type
2816
- ) : null;
2817
- return {
2818
- type: Xe(i),
2819
- schema: i
2820
- };
2821
- }), n = Je(e.fieldName);
2822
- return Be(Fe, n), (i, o) => (A(), te(x(mt), {
2823
- as: "section",
2824
- name: i.fieldName
2825
- }, {
2826
- default: T(({ fields: c, remove: u, push: m }) => [
2827
- Ee(i.$slots, "default", Ue(qe(e)), () => [
2828
- b(x(et), {
2829
- type: "multiple",
2830
- class: "w-full",
2831
- collapsible: "",
2832
- disabled: i.disabled,
2833
- "as-child": ""
2834
- }, {
2835
- default: T(() => [
2836
- b(x(at), null, {
2837
- default: T(() => [
2838
- b(x(rt), {
2839
- value: i.fieldName,
2840
- class: "border-none"
2841
- }, {
2842
- default: T(() => [
2843
- b(x(st), null, {
2844
- default: T(() => [
2845
- b(Ke, {
2846
- class: "text-base",
2847
- required: i.required
2848
- }, {
2849
- default: T(() => [
2850
- ve(We(i.schema?.description || x(Qe)(i.fieldName)), 1)
2851
- ]),
2852
- _: 1
2853
- }, 8, ["required"])
2854
- ]),
2855
- _: 1
2856
- }),
2857
- b(x(tt), null, {
2858
- default: T(() => [
2859
- (A(!0), re(He, null, Ye(c, (w, W) => (A(), re("div", {
2860
- key: w.key,
2861
- class: "mb-4 p-1"
2862
- }, [
2863
- b(ut, {
2864
- "field-name": `${i.fieldName}[${W}]`,
2865
- label: i.fieldName,
2866
- shape: a.value,
2867
- config: i.config
2868
- }, null, 8, ["field-name", "label", "shape", "config"]),
2869
- lt("div", Bt, [
2870
- b(x(Ie), {
2871
- type: "button",
2872
- size: "icon",
2873
- variant: "secondary",
2874
- onClick: (ee) => u(W)
2875
- }, {
2876
- default: T(() => [
2877
- b(x(xt), { size: 16 })
2878
- ]),
2879
- _: 2
2880
- }, 1032, ["onClick"])
2881
- ]),
2882
- w.isLast ? Ge("", !0) : (A(), te(x(yt), { key: 0 }))
2883
- ]))), 128)),
2884
- b(x(Ie), {
2885
- type: "button",
2886
- variant: "secondary",
2887
- class: "mt-4 flex items-center",
2888
- onClick: (w) => m(null)
2889
- }, {
2890
- default: T(() => [
2891
- b(x(Tt), {
2892
- class: "mr-2",
2893
- size: 16
2894
- }),
2895
- ve(" Add ")
2896
- ]),
2897
- _: 2
2898
- }, 1032, ["onClick"])
2899
- ]),
2900
- _: 2
2901
- }, 1024),
2902
- b(x(gt))
2903
- ]),
2904
- _: 2
2905
- }, 1032, ["value"])
2906
- ]),
2907
- _: 2
2908
- }, 1024)
2909
- ]),
2910
- _: 2
2911
- }, 1032, ["disabled"])
2912
- ])
2913
- ]),
2914
- _: 3
2915
- }, 8, ["name"]));
2916
- }
2917
- }), qt = /* @__PURE__ */ Oe({
2918
- __name: "BuiAutoFormFieldObject",
2919
- props: {
2920
- fieldName: {},
2921
- required: { type: Boolean },
2922
- config: {},
2923
- schema: {},
2924
- disabled: { type: Boolean }
2925
- },
2926
- setup(r) {
2927
- const e = r, t = Ze(() => {
2928
- const a = {};
2929
- if (!e.schema)
2930
- return;
2931
- const n = je(e.schema)?.shape;
2932
- if (n)
2933
- return Object.keys(n).forEach((i) => {
2934
- const o = n[i], c = je(o);
2935
- let u = c && "values" in c._def ? c._def.values : void 0;
2936
- !Array.isArray(u) && typeof u == "object" && (u = Object.values(u)), a[i] = {
2937
- type: Xe(o),
2938
- default: pt(o),
2939
- options: u,
2940
- required: !["ZodOptional", "ZodNullable"].includes(o._def.typeName),
2941
- schema: o
2942
- };
2943
- }), a;
2944
- }), s = Je(e.fieldName);
2945
- return Be(Fe, s), (a, n) => (A(), re("section", null, [
2946
- Ee(a.$slots, "default", Ue(qe(e)), () => [
2947
- b(x(et), {
2948
- type: "single",
2949
- "as-child": "",
2950
- class: "w-full",
2951
- collapsible: "",
2952
- disabled: a.disabled
2953
- }, {
2954
- default: T(() => [
2955
- b(x(at), null, {
2956
- default: T(() => [
2957
- b(x(rt), {
2958
- value: a.fieldName,
2959
- class: "border-none"
2960
- }, {
2961
- default: T(() => [
2962
- b(x(st), null, {
2963
- default: T(() => [
2964
- b(Ke, {
2965
- class: "text-base",
2966
- required: a.required
2967
- }, {
2968
- default: T(() => [
2969
- ve(We(a.schema?.description || x(Qe)(a.fieldName)), 1)
2970
- ]),
2971
- _: 1
2972
- }, 8, ["required"])
2973
- ]),
2974
- _: 1
2975
- }),
2976
- b(x(tt), { class: "space-y-5 p-1" }, {
2977
- default: T(() => [
2978
- (A(!0), re(He, null, Ye(t.value, (i, o) => (A(), te(ut, {
2979
- key: o,
2980
- config: a.config?.[o],
2981
- "field-name": `${a.fieldName}.${o.toString()}`,
2982
- label: o.toString(),
2983
- shape: i
2984
- }, null, 8, ["config", "field-name", "label", "shape"]))), 128))
2985
- ]),
2986
- _: 1
2987
- })
2988
- ]),
2989
- _: 1
2990
- }, 8, ["value"])
2991
- ]),
2992
- _: 1
2993
- })
2994
- ]),
2995
- _: 1
2996
- }, 8, ["disabled"])
2997
- ])
2998
- ]));
2999
- }
3000
- }), ze = {
3001
- date: bt,
3002
- select: Ae,
3003
- radio: Ae,
3004
- checkbox: $e,
3005
- switch: $e,
3006
- textarea: Me,
3007
- number: wt,
3008
- string: Me,
3009
- file: kt,
3010
- array: Ut,
3011
- object: qt
3012
- }, Wt = {
3013
- ZodString: "string",
3014
- ZodBoolean: "checkbox",
3015
- ZodDate: "date",
3016
- ZodEnum: "select",
3017
- ZodNativeEnum: "select",
3018
- ZodNumber: "number",
3019
- ZodArray: "array",
3020
- ZodObject: "object"
3021
- }, ut = /* @__PURE__ */ Oe({
3022
- __name: "BuiAutoFormField",
3023
- props: {
3024
- fieldName: {},
3025
- shape: {},
3026
- config: {}
3027
- },
3028
- setup(r) {
3029
- const e = r;
3030
- function t(c) {
3031
- return !!c?.component;
3032
- }
3033
- const s = Ze(() => {
3034
- if (["ZodObject", "ZodArray"].includes(e.shape?.type))
3035
- return { schema: e.shape?.schema };
3036
- }), { isDisabled: a, isHidden: n, isRequired: i, overrideOptions: o } = _t(e.fieldName);
3037
- return (c, u) => x(n) ? Ge("", !0) : (A(), te(ft(t(c.config) ? typeof c.config.component == "string" ? x(ze)[c.config.component] : c.config.component : x(ze)[x(Wt)[c.shape.type]]), ht({
3038
- key: 0,
3039
- "field-name": c.fieldName,
3040
- label: c.shape.schema?.description,
3041
- required: x(i) || c.shape.required,
3042
- options: x(o) || c.shape.options,
3043
- disabled: x(a),
3044
- config: c.config
3045
- }, s.value), {
3046
- default: T(() => [
3047
- Ee(c.$slots, "default")
3048
- ]),
3049
- _: 3
3050
- }, 16, ["field-name", "label", "required", "options", "disabled", "config"]));
3051
- }
3052
- });
3053
- export {
3054
- Wt as D,
3055
- ze as I,
3056
- k as Z,
3057
- ut as _,
3058
- Ut as a,
3059
- qt as b,
3060
- K as c,
3061
- p as d
3062
- };