@pantograph/vue 0.27.2 → 0.27.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ActionButton/ActionButton.d.ts +14 -14
- package/dist/ActionButton/index.js +1 -1
- package/dist/ActionButton/index.umd.cjs +1 -1
- package/dist/ActionButton.vue_vue_type_script_setup_true_lang-B95JGdI_.js +1 -0
- package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-D4l05YZz.js → ActionButton.vue_vue_type_script_setup_true_lang-CMYqH6Se.js} +17 -23
- package/dist/Alert/index.js +1 -1
- package/dist/Alert/index.umd.cjs +1 -1
- package/dist/{Alert.vue_vue_type_script_setup_true_lang-D5F_9ZwU.js → Alert.vue_vue_type_script_setup_true_lang-BBT46WOZ.js} +30 -35
- package/dist/Alert.vue_vue_type_script_setup_true_lang-CJna3KsH.js +1 -0
- package/dist/Avatar/Avatar.d.ts +1 -1
- package/dist/Avatar/index.js +1 -1
- package/dist/Avatar/index.umd.cjs +1 -1
- package/dist/{Avatar.vue_vue_type_script_setup_true_lang-CH_6o8dq.js → Avatar.vue_vue_type_script_setup_true_lang-CAk_50Zi.js} +36 -40
- package/dist/Avatar.vue_vue_type_script_setup_true_lang-Nn10rcGu.js +1 -0
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/AvatarGroup/index.umd.cjs +1 -1
- package/dist/Badge/index.js +1 -1
- package/dist/Badge/index.umd.cjs +1 -1
- package/dist/{Badge.vue_vue_type_script_setup_true_lang-GQnZqeaV.js → Badge.vue_vue_type_script_setup_true_lang-DIHxOGxU.js} +16 -21
- package/dist/Badge.vue_vue_type_script_setup_true_lang-DJej9nkJ.js +1 -0
- package/dist/Base/BaseBadge/BaseBadge.d.ts +1 -1
- package/dist/Base/BaseButton/BaseButton.d.ts +1 -1
- package/dist/BaseBadge.vue_vue_type_script_setup_true_lang-BKUITOpw.js +1 -0
- package/dist/{BaseBadge.vue_vue_type_script_setup_true_lang-BVEnU-L5.js → BaseBadge.vue_vue_type_script_setup_true_lang-D0PDTdnu.js} +19 -24
- package/dist/BaseButton.vue_vue_type_script_setup_true_lang-Bo_ZJcOQ.js +1 -0
- package/dist/{BaseButton.vue_vue_type_script_setup_true_lang-u4Fvon7Z.js → BaseButton.vue_vue_type_script_setup_true_lang-Lb9kTaQo.js} +38 -42
- package/dist/{BaseInput.vue_vue_type_script_setup_true_lang-Ca0LOJfn.js → BaseInput.vue_vue_type_script_setup_true_lang-BIm-kBuJ.js} +41 -45
- package/dist/BaseInput.vue_vue_type_script_setup_true_lang-CpnBS-1D.js +1 -0
- package/dist/Button/Button.d.ts +24 -24
- package/dist/Button/index.js +1 -1
- package/dist/Button/index.umd.cjs +1 -1
- package/dist/{Button.vue_vue_type_script_setup_true_lang-CSKn-kYb.js → Button.vue_vue_type_script_setup_true_lang-CcvYCTsv.js} +19 -25
- package/dist/Button.vue_vue_type_script_setup_true_lang-CdtU8pJ8.js +1 -0
- package/dist/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/dist/ButtonGroup/index.js +1 -1
- package/dist/ButtonGroup/index.umd.cjs +1 -1
- package/dist/{ButtonGroup.vue_vue_type_script_setup_true_lang-BWfa7L2L.js → ButtonGroup.vue_vue_type_script_setup_true_lang-Bbua5FNc.js} +6 -6
- package/dist/{ButtonGroup.vue_vue_type_script_setup_true_lang-DwaBBOgk.js → ButtonGroup.vue_vue_type_script_setup_true_lang-aMsUnJ9c.js} +1 -1
- package/dist/Checkbox/Checkbox.d.ts +3 -3
- package/dist/Checkbox/index.js +1 -1
- package/dist/Checkbox/index.umd.cjs +1 -1
- package/dist/{Checkbox.vue_vue_type_script_setup_true_lang-DiG3cLmy.js → Checkbox.vue_vue_type_script_setup_true_lang-DVmFg39-.js} +67 -70
- package/dist/Checkbox.vue_vue_type_script_setup_true_lang-DdF-cXiP.js +1 -0
- package/dist/CheckboxGroup/CheckboxGroup.d.ts +2 -2
- package/dist/CheckboxGroup/index.js +1 -1
- package/dist/CheckboxGroup/index.umd.cjs +1 -1
- package/dist/Chip/index.js +1 -1
- package/dist/Chip/index.umd.cjs +1 -1
- package/dist/Chip.vue_vue_type_script_setup_true_lang-DerG27zp.js +1 -0
- package/dist/{Chip.vue_vue_type_script_setup_true_lang-DOIPsHk_.js → Chip.vue_vue_type_script_setup_true_lang-nFZDIpIs.js} +33 -36
- package/dist/ChipGroup/index.js +1 -1
- package/dist/ChipGroup/index.umd.cjs +1 -1
- package/dist/ColorPicker/index.js +1 -1
- package/dist/ColorPicker/index.umd.cjs +1 -1
- package/dist/{ColorPicker.vue_vue_type_script_setup_true_lang-Bz_mnMXB.js → ColorPicker.vue_vue_type_script_setup_true_lang-Do5cC0lX.js} +9 -14
- package/dist/ColorPicker.vue_vue_type_script_setup_true_lang-qMOFhEXd.js +4 -0
- package/dist/ColorSwatch/ColorSwatch.d.ts +1 -1
- package/dist/ColorSwatch/index.js +1 -1
- package/dist/ColorSwatch/index.umd.cjs +1 -1
- package/dist/{ColorSwatch-BUx8Adlm.js → ColorSwatch-BiIlHy4_.js} +1 -1
- package/dist/{ColorSwatch-CyLiiscO.js → ColorSwatch-By6c-JXm.js} +1 -1
- package/dist/ColorSwatch.vue_vue_type_script_setup_true_lang-BJY6PbEL.js +1 -0
- package/dist/{ColorSwatch.vue_vue_type_script_setup_true_lang-DBTZCpNP.js → ColorSwatch.vue_vue_type_script_setup_true_lang-DMDwVSYQ.js} +18 -22
- package/dist/ColorSwatchGroup/index.js +1 -1
- package/dist/ColorSwatchGroup/index.umd.cjs +1 -1
- package/dist/{ColorSwatchGroup.vue_vue_type_script_setup_true_lang-B-cLoom6.js → ColorSwatchGroup.vue_vue_type_script_setup_true_lang-BOvvsjnf.js} +20 -24
- package/dist/ColorSwatchGroup.vue_vue_type_script_setup_true_lang-ovLnyiXB.js +1 -0
- package/dist/ColorTrigger/index.js +1 -1
- package/dist/ColorTrigger/index.umd.cjs +1 -1
- package/dist/{ColorTrigger.vue_vue_type_script_setup_true_lang-BbT6N2FL.js → ColorTrigger.vue_vue_type_script_setup_true_lang-7VkfG8Wp.js} +24 -28
- package/dist/ColorTrigger.vue_vue_type_script_setup_true_lang-DBwNGwz7.js +1 -0
- package/dist/Combobox/Combobox.d.ts +32 -32
- package/dist/Combobox/context.d.ts +1 -1
- package/dist/Combobox/index.js +1 -1
- package/dist/Combobox/index.umd.cjs +1 -1
- package/dist/{Combobox.vue_vue_type_script_setup_true_lang-6ZvMvMe_.js → Combobox.vue_vue_type_script_setup_true_lang-BBkIM9dG.js} +336 -335
- package/dist/Combobox.vue_vue_type_script_setup_true_lang-Cmor3uQM.js +1 -0
- package/dist/Comment/CommentActions.d.ts +42 -42
- package/dist/Comment/CommentEditor.d.ts +92 -92
- package/dist/Comment/CommentReactions.d.ts +21 -21
- package/dist/Comment/index.js +206 -200
- package/dist/Comment/index.umd.cjs +1 -1
- package/dist/ConfigProvider/index.js +1 -1
- package/dist/ConfigProvider/index.umd.cjs +1 -1
- package/dist/ConfigProvider.vue_vue_type_script_setup_true_lang-C-xm8OzO.js +118 -0
- package/dist/ConfigProvider.vue_vue_type_script_setup_true_lang-Dn5qxQ1y.js +1 -0
- package/dist/DataTable/index.js +1 -1
- package/dist/DataTable/index.umd.cjs +1 -1
- package/dist/DataTable/useCell.d.ts +1 -1
- package/dist/DataTable.vue_vue_type_script_setup_true_lang-CnRD6Q68.js +1 -0
- package/dist/{DataTable.vue_vue_type_script_setup_true_lang-BfTiBQMt.js → DataTable.vue_vue_type_script_setup_true_lang-FcKxN2S3.js} +78 -77
- package/dist/Divider/index.js +1 -1
- package/dist/Divider/index.umd.cjs +1 -1
- package/dist/Divider.vue_vue_type_script_setup_true_lang-BZRu0h3n.js +38 -0
- package/dist/Divider.vue_vue_type_script_setup_true_lang-D6Tc-M5M.js +1 -0
- package/dist/DropZone/DropZone.d.ts +2 -2
- package/dist/DropZone/index.js +1 -1
- package/dist/DropZone/index.umd.cjs +1 -1
- package/dist/{DropZone.vue_vue_type_script_setup_true_lang-C8PIE0KC.js → DropZone.vue_vue_type_script_setup_true_lang-CeEBMopD.js} +32 -37
- package/dist/DropZone.vue_vue_type_script_setup_true_lang-dVL4HZVW.js +1 -0
- package/dist/Empty/index.js +1 -1
- package/dist/Empty/index.umd.cjs +1 -1
- package/dist/{Empty.vue_vue_type_script_setup_true_lang-CnJOScIi.js → Empty.vue_vue_type_script_setup_true_lang-BCQOhz-A.js} +15 -19
- package/dist/Empty.vue_vue_type_script_setup_true_lang-BbliP7AT.js +1 -0
- package/dist/FloatButton/FloatButton.d.ts +22 -22
- package/dist/FloatButton/index.js +1 -1
- package/dist/FloatButton/index.umd.cjs +1 -1
- package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-t22bWN9j.js → FloatButton.vue_vue_type_script_setup_true_lang-BhhowIQi.js} +1 -1
- package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-D03EBWv5.js → FloatButton.vue_vue_type_script_setup_true_lang-CWTRpfgb.js} +2 -2
- package/dist/Form/Form.d.ts +14 -25
- package/dist/Form/FormItem.d.ts +5 -12
- package/dist/Form/index.d.ts +3 -3
- package/dist/Form/index.js +9 -8
- package/dist/Form/index.umd.cjs +1 -1
- package/dist/FormValidation.vue_vue_type_script_setup_true_lang-BJnTmqoo.js +2518 -0
- package/dist/FormValidation.vue_vue_type_script_setup_true_lang-BVTTJmKI.js +9 -0
- package/dist/GOPicker/GOPicker.d.ts +10 -10
- package/dist/GOPicker/index.js +1 -1
- package/dist/GOPicker/index.umd.cjs +1 -1
- package/dist/GOPicker.vue_vue_type_script_setup_true_lang-DsZCv1Eu.js +1 -0
- package/dist/{GOPicker.vue_vue_type_script_setup_true_lang-Cx2WQErE.js → GOPicker.vue_vue_type_script_setup_true_lang-jpmUl2AJ.js} +161 -165
- package/dist/GraphicalObject/index.js +1 -1
- package/dist/GraphicalObject/index.umd.cjs +1 -1
- package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-Dwf4A9T3.js → GraphicalObject.vue_vue_type_script_setup_true_lang-CKG8pyZ-.js} +3 -3
- package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-D6ppQA4I.js → GraphicalObject.vue_vue_type_script_setup_true_lang-CudIoHnp.js} +1 -1
- package/dist/GraphicalObjectGroup/index.js +1 -1
- package/dist/GraphicalObjectGroup/index.umd.cjs +1 -1
- package/dist/GraphicalObjectGroup.vue_vue_type_script_setup_true_lang-Ciq5L_5z.js +64 -0
- package/dist/GraphicalObjectGroup.vue_vue_type_script_setup_true_lang-DlxMW3gN.js +1 -0
- package/dist/HoverCard/HoverCard.d.ts +1 -1
- package/dist/HoverCard/index.js +2 -2
- package/dist/HoverCard/index.umd.cjs +1 -1
- package/dist/HoverCard.vue_vue_type_script_setup_true_lang-B6gl0uZH.js +1 -0
- package/dist/{HoverCard.vue_vue_type_script_setup_true_lang-DBOk4tYh.js → HoverCard.vue_vue_type_script_setup_true_lang-CgDV1bGl.js} +13 -17
- package/dist/Icon/index.js +3 -3
- package/dist/Icon/index.umd.cjs +1 -1
- package/dist/Icon.vue_vue_type_script_setup_true_lang-Be6ayltH.js +1 -0
- package/dist/Icon.vue_vue_type_script_setup_true_lang-DBiBHDqC.js +49 -0
- package/dist/IconButton/IconButton.d.ts +22 -22
- package/dist/IconButton/index.js +1 -1
- package/dist/IconButton/index.umd.cjs +1 -1
- package/dist/{IconButton.vue_vue_type_script_setup_true_lang-CRdinhW6.js → IconButton.vue_vue_type_script_setup_true_lang-lZz3QWio.js} +5 -5
- package/dist/IconButton.vue_vue_type_script_setup_true_lang-mcs7CjOV.js +1 -0
- package/dist/Image/index.js +1 -1
- package/dist/Image/index.umd.cjs +1 -1
- package/dist/Image.vue_vue_type_script_setup_true_lang-Bci9LkrG.js +1 -0
- package/dist/{Image.vue_vue_type_script_setup_true_lang-DUAcgVt3.js → Image.vue_vue_type_script_setup_true_lang-C_MGypeV.js} +30 -33
- package/dist/IndentLevel/index.js +1 -1
- package/dist/IndentLevel/index.umd.cjs +1 -1
- package/dist/IndentLevel.vue_vue_type_script_setup_true_lang-CSnMNn7l.js +101 -0
- package/dist/IndentLevel.vue_vue_type_script_setup_true_lang-D1ySGf-Z.js +1 -0
- package/dist/Indicator/index.js +1 -1
- package/dist/Indicator/index.umd.cjs +1 -1
- package/dist/{Indicator.vue_vue_type_script_setup_true_lang-C5X3Ptal.js → Indicator.vue_vue_type_script_setup_true_lang-BDGaDDdg.js} +1 -1
- package/dist/{Indicator.vue_vue_type_script_setup_true_lang-CUzJo6Dq.js → Indicator.vue_vue_type_script_setup_true_lang-YuOtvhCP.js} +7 -7
- package/dist/Input/Input.d.ts +5 -5
- package/dist/Input/index.js +2 -2
- package/dist/Input/index.umd.cjs +1 -1
- package/dist/{Input.vue_vue_type_script_setup_true_lang-BBOWLata.js → Input.vue_vue_type_script_setup_true_lang-B6TZLtSK.js} +27 -35
- package/dist/Input.vue_vue_type_script_setup_true_lang-C7eXK7Z1.js +1 -0
- package/dist/InputNumber/InputNumber.d.ts +5 -5
- package/dist/InputNumber/index.js +2 -2
- package/dist/InputNumber/index.umd.cjs +1 -1
- package/dist/InputNumber.vue_vue_type_script_setup_true_lang-CyPMExCk.js +1 -0
- package/dist/{InputNumber.vue_vue_type_script_setup_true_lang-Dg-C7-Gw.js → InputNumber.vue_vue_type_script_setup_true_lang-Dk-jieRY.js} +27 -33
- package/dist/Kbd/index.js +1 -1
- package/dist/Kbd/index.umd.cjs +1 -1
- package/dist/{Kbd.vue_vue_type_script_setup_true_lang-CZvbn4oA.js → Kbd.vue_vue_type_script_setup_true_lang-BjIP0HlW.js} +8 -12
- package/dist/Kbd.vue_vue_type_script_setup_true_lang-CxCXfVcU.js +1 -0
- package/dist/Label/index.js +4 -4
- package/dist/Label/index.umd.cjs +1 -1
- package/dist/Label.vue_vue_type_script_setup_true_lang-DOIcDmSu.js +1 -0
- package/dist/Label.vue_vue_type_script_setup_true_lang-NFunrvyw.js +131 -0
- package/dist/Link/index.js +1 -1
- package/dist/Link/index.umd.cjs +1 -1
- package/dist/{Link.vue_vue_type_script_setup_true_lang-Dc6IcnzY.js → Link.vue_vue_type_script_setup_true_lang-BISssWeB.js} +15 -20
- package/dist/Link.vue_vue_type_script_setup_true_lang-BKdeGQtS.js +1 -0
- package/dist/Menu/index.js +1 -1
- package/dist/Menu/index.umd.cjs +1 -1
- package/dist/MenuItem/MenuItem.d.ts +1 -1
- package/dist/MenuItem/index.js +1 -1
- package/dist/MenuItem/index.umd.cjs +1 -1
- package/dist/{MenuItem.vue_vue_type_script_setup_true_lang-BhAWfw04.js → MenuItem.vue_vue_type_script_setup_true_lang-CC0ZX8mk.js} +118 -122
- package/dist/MenuItem.vue_vue_type_script_setup_true_lang-FR-W6X_P.js +1 -0
- package/dist/Pagination/index.js +1 -1
- package/dist/Pagination/index.umd.cjs +1 -1
- package/dist/{Pagination.vue_vue_type_script_setup_true_lang-CH2sZBOw.js → Pagination.vue_vue_type_script_setup_true_lang-CYpg-o7g.js} +19 -23
- package/dist/Pagination.vue_vue_type_script_setup_true_lang-DSzq-2Nd.js +1 -0
- package/dist/Popover/Popover.d.ts +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/Popover/index.umd.cjs +1 -1
- package/dist/{Popover.vue_vue_type_script_setup_true_lang-D-Jebwr9.js → Popover.vue_vue_type_script_setup_true_lang-DhDzrGk6.js} +33 -39
- package/dist/Popover.vue_vue_type_script_setup_true_lang-DlS1RQhN.js +1 -0
- package/dist/Progress/Progress.d.ts +2 -2
- package/dist/Progress/index.js +1 -1
- package/dist/Progress/index.umd.cjs +1 -1
- package/dist/{Progress.vue_vue_type_script_setup_true_lang-fxFcm9WO.js → Progress.vue_vue_type_script_setup_true_lang-BqeypNvL.js} +61 -63
- package/dist/Progress.vue_vue_type_script_setup_true_lang-DpTDjzYC.js +1 -0
- package/dist/RadioGroup/RadioGroup.d.ts +2 -2
- package/dist/RadioGroup/RadioGroupItem.d.ts +2 -2
- package/dist/RadioGroup/index.js +1 -1
- package/dist/RadioGroup/index.umd.cjs +1 -1
- package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-DlbOsulw.js +1 -0
- package/dist/{RadioGroup.vue_vue_type_script_setup_true_lang-w2aa6VhW.js → RadioGroup.vue_vue_type_script_setup_true_lang-wamsBRJy.js} +24 -29
- package/dist/ScrollContainer/ScrollContainer.d.ts +7 -7
- package/dist/ScrollContainer/index.js +1 -1
- package/dist/ScrollContainer/index.umd.cjs +1 -1
- package/dist/ScrollContainer.vue_vue_type_script_setup_true_lang-CIXeFarD.js +1 -0
- package/dist/{ScrollContainer.vue_vue_type_script_setup_true_lang-BU7qU1LR.js → ScrollContainer.vue_vue_type_script_setup_true_lang-FKw-Hnvi.js} +13 -16
- package/dist/Segmented/Segmented.d.ts +2 -2
- package/dist/Segmented/index.js +1 -1
- package/dist/Segmented/index.umd.cjs +1 -1
- package/dist/{Segmented.vue_vue_type_script_setup_true_lang-D7yf-Ezy.js → Segmented.vue_vue_type_script_setup_true_lang-C3_Tl2yp.js} +50 -53
- package/dist/Segmented.vue_vue_type_script_setup_true_lang-v__5oumm.js +1 -0
- package/dist/Select/Select.d.ts +4 -4
- package/dist/Select/SelectTrigger.d.ts +1 -1
- package/dist/Select/index.js +1 -1
- package/dist/Select/index.umd.cjs +1 -1
- package/dist/{Select.vue_vue_type_script_setup_true_lang-B8L_locv.js → Select.vue_vue_type_script_setup_true_lang-DcRVPTfy.js} +26 -29
- package/dist/Select.vue_vue_type_script_setup_true_lang-DgqUr22B.js +1 -0
- package/dist/Shortcut/index.js +1 -1
- package/dist/Shortcut/index.umd.cjs +1 -1
- package/dist/Shortcut.vue_vue_type_script_setup_true_lang-B16kPcKe.js +34 -0
- package/dist/Shortcut.vue_vue_type_script_setup_true_lang-EJF2NtL_.js +1 -0
- package/dist/Skeleton/Skeleton.d.ts +1 -1
- package/dist/Skeleton/index.js +1 -1
- package/dist/Skeleton/index.umd.cjs +1 -1
- package/dist/{Skeleton.vue_vue_type_script_setup_true_lang-BPGtJ7m9.js → Skeleton.vue_vue_type_script_setup_true_lang-V3Y9sTi-.js} +11 -16
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-ywJfG4ii.js +1 -0
- package/dist/Spinner/Spinner.d.ts +1 -1
- package/dist/Spinner/index.js +1 -1
- package/dist/Spinner/index.umd.cjs +1 -1
- package/dist/{Spinner.vue_vue_type_script_setup_true_lang-plOMCeJw.js → Spinner.vue_vue_type_script_setup_true_lang-CMhmFqGC.js} +18 -22
- package/dist/Spinner.vue_vue_type_script_setup_true_lang-DO3B4TxR.js +1 -0
- package/dist/SubMenu/SubMenu.d.ts +1 -1
- package/dist/SubMenu/index.js +1 -1
- package/dist/SubMenu/index.umd.cjs +1 -1
- package/dist/Switch/Switch.d.ts +3 -3
- package/dist/Switch/index.js +1 -1
- package/dist/Switch/index.umd.cjs +1 -1
- package/dist/{Switch.vue_vue_type_script_setup_true_lang-Br5agMiY.js → Switch.vue_vue_type_script_setup_true_lang-C-mChuJl.js} +28 -31
- package/dist/Switch.vue_vue_type_script_setup_true_lang-jd0vNflL.js +1 -0
- package/dist/THead.vue_vue_type_script_setup_true_lang-DCBqDoCR.js +1 -0
- package/dist/{THead.vue_vue_type_script_setup_true_lang-B8EBMO33.js → THead.vue_vue_type_script_setup_true_lang-DEiGZvbY.js} +13 -18
- package/dist/TabContent.vue_vue_type_script_setup_true_lang-DmsuHY8J.js +1 -0
- package/dist/{TabContent.vue_vue_type_script_setup_true_lang-DUqgKpvl.js → TabContent.vue_vue_type_script_setup_true_lang-H49InORX.js} +30 -36
- package/dist/Table/index.js +1 -1
- package/dist/Table/index.umd.cjs +1 -1
- package/dist/Tabs/TabList.d.ts +6 -6
- package/dist/Tabs/Tabs.d.ts +2 -2
- package/dist/Tabs/index.js +1 -1
- package/dist/Tabs/index.umd.cjs +1 -1
- package/dist/Textarea/Textarea.d.ts +16 -16
- package/dist/Textarea/index.js +1 -1
- package/dist/Textarea/index.umd.cjs +1 -1
- package/dist/{Textarea.vue_vue_type_script_setup_true_lang-BTywGT0W.js → Textarea.vue_vue_type_script_setup_true_lang-CvTs1oY9.js} +36 -40
- package/dist/Textarea.vue_vue_type_script_setup_true_lang-DiPxIJB_.js +1 -0
- package/dist/Tree/Tree.d.ts +2 -2
- package/dist/Tree/Tree.model.d.ts +1 -1
- package/dist/Tree/index.js +1 -1
- package/dist/Tree/index.umd.cjs +1 -1
- package/dist/Tree.vue_vue_type_script_setup_true_lang-CjdtoEEK.js +1 -0
- package/dist/{Tree.vue_vue_type_script_setup_true_lang-B5khp8Fw.js → Tree.vue_vue_type_script_setup_true_lang-wJ-oWZvZ.js} +96 -100
- package/dist/Upload/Upload.d.ts +1 -1
- package/dist/Upload/index.js +1 -1
- package/dist/Upload/index.umd.cjs +1 -1
- package/dist/Upload.vue_vue_type_script_setup_true_lang-Di3zmtNn.js +1 -0
- package/dist/{Upload.vue_vue_type_script_setup_true_lang-BNiFkx47.js → Upload.vue_vue_type_script_setup_true_lang-ZRmDqqX8.js} +22 -24
- package/dist/exports.d.ts +6 -1
- package/dist/get-DwC3C6S0.js +70 -0
- package/dist/get-Zt0OZYlq.js +1 -0
- package/dist/index.d.ts +0 -1
- package/dist/index.js +252 -270
- package/dist/index.umd.cjs +1 -1
- package/dist/isArray-Bin_5of_.js +1 -0
- package/dist/isArray-QlWcxgml.js +6 -0
- package/dist/isNumber-BduWbB-B.js +6 -0
- package/dist/isNumber-DMOjxgl8.js +1 -0
- package/dist/isObject-BDHKUJKN.js +1 -0
- package/dist/isObject-vmP43YLW.js +6 -0
- package/dist/style/index.css +1 -1
- package/package.json +3 -7
- package/dist/ActionButton.vue_vue_type_script_setup_true_lang-BVeWGfr7.js +0 -1
- package/dist/Alert.vue_vue_type_script_setup_true_lang-CZzHeneB.js +0 -1
- package/dist/Avatar.vue_vue_type_script_setup_true_lang-QZhssZnQ.js +0 -1
- package/dist/Badge.vue_vue_type_script_setup_true_lang-DKswgB1B.js +0 -1
- package/dist/BaseBadge.vue_vue_type_script_setup_true_lang-8tuJTjkU.js +0 -1
- package/dist/BaseButton.vue_vue_type_script_setup_true_lang-B6fHU-br.js +0 -1
- package/dist/BaseInput.vue_vue_type_script_setup_true_lang-BEeid52h.js +0 -1
- package/dist/Button.vue_vue_type_script_setup_true_lang-3EriUXFH.js +0 -1
- package/dist/Checkbox.vue_vue_type_script_setup_true_lang-B5hrYP5E.js +0 -1
- package/dist/Chip.vue_vue_type_script_setup_true_lang-Dn-EkG3e.js +0 -1
- package/dist/ColorPicker.vue_vue_type_script_setup_true_lang-D6k_f_bV.js +0 -4
- package/dist/ColorSwatch.vue_vue_type_script_setup_true_lang-mEt98xi2.js +0 -1
- package/dist/ColorSwatchGroup.vue_vue_type_script_setup_true_lang-D1yZXDV3.js +0 -1
- package/dist/ColorTrigger.vue_vue_type_script_setup_true_lang-DIzDCzvv.js +0 -1
- package/dist/Combobox.vue_vue_type_script_setup_true_lang-Basgh9sL.js +0 -1
- package/dist/ConfigProvider.vue_vue_type_script_setup_true_lang-BAXkTMEt.js +0 -1
- package/dist/ConfigProvider.vue_vue_type_script_setup_true_lang-DiuPi_DT.js +0 -124
- package/dist/DataTable/useLazyLoading.d.ts +0 -8
- package/dist/DataTable.vue_vue_type_script_setup_true_lang-BbVKnjxN.js +0 -1
- package/dist/Divider.vue_vue_type_script_setup_true_lang-BHkXVZCN.js +0 -43
- package/dist/Divider.vue_vue_type_script_setup_true_lang-BfrE098V.js +0 -1
- package/dist/DropZone.vue_vue_type_script_setup_true_lang-DEK0OBo2.js +0 -1
- package/dist/Empty.vue_vue_type_script_setup_true_lang-BHsAnkd7.js +0 -1
- package/dist/Form/FormItem.model.d.ts +0 -4
- package/dist/GOPicker.vue_vue_type_script_setup_true_lang-BOyOH_qb.js +0 -1
- package/dist/GraphicalObjectGroup.vue_vue_type_script_setup_true_lang-CAvd-28M.js +0 -68
- package/dist/GraphicalObjectGroup.vue_vue_type_script_setup_true_lang-CXyuthQS.js +0 -1
- package/dist/HoverCard.vue_vue_type_script_setup_true_lang-CbT9IDH_.js +0 -1
- package/dist/Icon.vue_vue_type_script_setup_true_lang-BDTw4CRD.js +0 -9
- package/dist/Icon.vue_vue_type_script_setup_true_lang-DJv20Efl.js +0 -2839
- package/dist/IconButton.vue_vue_type_script_setup_true_lang-DtB1BlrH.js +0 -1
- package/dist/Image.vue_vue_type_script_setup_true_lang-C8IFCQ1Z.js +0 -1
- package/dist/IndentLevel.vue_vue_type_script_setup_true_lang-CZIskYG5.js +0 -105
- package/dist/IndentLevel.vue_vue_type_script_setup_true_lang-DejchDVl.js +0 -1
- package/dist/Input.vue_vue_type_script_setup_true_lang-DQaTM8t7.js +0 -1
- package/dist/InputNumber.vue_vue_type_script_setup_true_lang-B2XDVABX.js +0 -1
- package/dist/Kbd.vue_vue_type_script_setup_true_lang-Bts8h3Rc.js +0 -1
- package/dist/Link.vue_vue_type_script_setup_true_lang-B9UfwACd.js +0 -1
- package/dist/MenuItem.vue_vue_type_script_setup_true_lang-DweYhLgr.js +0 -1
- package/dist/Pagination.vue_vue_type_script_setup_true_lang-qyR_Occn.js +0 -1
- package/dist/Popover.vue_vue_type_script_setup_true_lang-Bye1k1gb.js +0 -1
- package/dist/Progress.vue_vue_type_script_setup_true_lang-QIJAJeT9.js +0 -1
- package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-B_-7GgYM.js +0 -1
- package/dist/ScrollContainer.vue_vue_type_script_setup_true_lang-u50YBozy.js +0 -1
- package/dist/Segmented.vue_vue_type_script_setup_true_lang-CoJCKPrs.js +0 -1
- package/dist/Select.vue_vue_type_script_setup_true_lang-BxOgh92J.js +0 -1
- package/dist/Shortcut.vue_vue_type_script_setup_true_lang-CByKa08f.js +0 -1
- package/dist/Shortcut.vue_vue_type_script_setup_true_lang-CPeD8ZFo.js +0 -38
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-CZd6jGSK.js +0 -1
- package/dist/Spinner.vue_vue_type_script_setup_true_lang-BLbh3cW9.js +0 -1
- package/dist/Switch.vue_vue_type_script_setup_true_lang--nKqQaQz.js +0 -1
- package/dist/THead.vue_vue_type_script_setup_true_lang-midXJwsE.js +0 -1
- package/dist/TabContent.vue_vue_type_script_setup_true_lang-B3v-gPTa.js +0 -1
- package/dist/Textarea.vue_vue_type_script_setup_true_lang-ZvXSpOuD.js +0 -1
- package/dist/Tree.vue_vue_type_script_setup_true_lang-C7AJKgHE.js +0 -1
- package/dist/Upload.vue_vue_type_script_setup_true_lang-ClLueLCg.js +0 -1
- package/dist/bodyLock-DBGsJvTg.js +0 -14
- package/dist/bodyLock-DM_fELbd.js +0 -1
- package/dist/collection-BFrS9-RP.js +0 -1
- package/dist/collection-DUgtxIW2.js +0 -70
- package/dist/isEmpty-CgVXdsCr.js +0 -40
- package/dist/isEmpty-cyU2mCRb.js +0 -1
- package/dist/options-CY2uxp5A.js +0 -1
- package/dist/options-J8HfRMSU.js +0 -11
- package/dist/useInputDataStates-CVQJAe1K.js +0 -1
- package/dist/useInputDataStates-DCxDvkM-.js +0 -50
- package/dist/useLazyLoading-H6VG5aE-.js +0 -1
- package/dist/useLazyLoading-Zo-PEp2E.js +0 -26
- package/dist/useVirtualScroll-3vEZzPrF.js +0 -1
- package/dist/useVirtualScroll-CXkmR_v2.js +0 -32
- package/dist/useVmodel-BU5qtyne.js +0 -1
- package/dist/useVmodel-DlyNieM5.js +0 -52
- package/dist/utils/bodyLock.d.ts +0 -2
- package/dist/utils/collection.d.ts +0 -32
- package/dist/utils/element.d.ts +0 -11
- package/dist/utils/index.d.ts +0 -10
- package/dist/utils/index.js +0 -35
- package/dist/utils/index.umd.cjs +0 -1
- package/dist/utils/isEmpty.d.ts +0 -1
- package/dist/utils/options.d.ts +0 -7
- package/dist/utils/sortPlaceholder.d.ts +0 -6
- package/dist/utils/style.d.ts +0 -2
- package/dist/utils/useInputDataStates.d.ts +0 -32
- package/dist/utils/useVirtualScroll.d.ts +0 -23
- package/dist/utils/useVmodel.d.ts +0 -69
|
@@ -0,0 +1,2518 @@
|
|
|
1
|
+
import { ref as ee, reactive as et, computed as w, toValue as p, unref as A, onMounted as ln, isRef as tt, watch as G, provide as At, readonly as er, watchEffect as tr, nextTick as q, shallowRef as nr, warn as rr, getCurrentInstance as je, onUnmounted as un, onBeforeUnmount as ir, inject as or, defineComponent as $t, createElementBlock as Se, openBlock as pe, withModifiers as ar, normalizeClass as _e, renderSlot as Te, normalizeProps as Xe, guardReactiveProps as Qe, useSlots as sn, createVNode as cn, createCommentVNode as gt, createTextVNode as lr, toDisplayString as ur, Fragment as sr, renderList as cr, createBlock as dr, withCtx as fr, mergeProps as vr, h as dn } from "vue";
|
|
2
|
+
import { _ as mr } from "./Icon.vue_vue_type_script_setup_true_lang-DBiBHDqC.js";
|
|
3
|
+
import { getComponentOptions as Et, provideFormContext as yr, useComponentStyle as fn, FormItemSizes as gr, injectFormContext as hr, provideFormItemContext as pr, FormItemStatuses as br, isEmptyElement as Bt } from "@pantograph/utils-vue";
|
|
4
|
+
import { cloneDeep as we, isEqual as Ar, isString as Rt, debounce as Vr, omitBy as Or, pick as Sr, isUndefined as _r } from "es-toolkit";
|
|
5
|
+
import { getBemBlock as vn, usePCId as mn, normCls as Ce, getBemElement as We, generateVariantClassList as yn } from "@pantograph/utils";
|
|
6
|
+
import { i as Ie } from "./isObject-vmP43YLW.js";
|
|
7
|
+
import { t as jr, a as $r, i as Er, g as Ut } from "./get-DwC3C6S0.js";
|
|
8
|
+
import { _ as wr } from "./Label.vue_vue_type_script_setup_true_lang-NFunrvyw.js";
|
|
9
|
+
import { cva as gn } from "class-variance-authority";
|
|
10
|
+
import Cr from "@pantograph/style/form_validation.css?raw";
|
|
11
|
+
import Ir from "@pantograph/style/form.css?raw";
|
|
12
|
+
import { i as Nr } from "./isArray-QlWcxgml.js";
|
|
13
|
+
import { i as Fr } from "./isNumber-BduWbB-B.js";
|
|
14
|
+
function hn(e, t) {
|
|
15
|
+
return e === t || Number.isNaN(e) && Number.isNaN(t);
|
|
16
|
+
}
|
|
17
|
+
function Mt(e) {
|
|
18
|
+
return Object.getOwnPropertySymbols(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));
|
|
19
|
+
}
|
|
20
|
+
function Dt(e) {
|
|
21
|
+
return e == null ? e === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(e);
|
|
22
|
+
}
|
|
23
|
+
const Pr = "[object RegExp]", Tr = "[object String]", kr = "[object Number]", xr = "[object Boolean]", zt = "[object Arguments]", Zr = "[object Symbol]", Br = "[object Date]", Rr = "[object Map]", Ur = "[object Set]", Mr = "[object Array]", Dr = "[object Function]", zr = "[object ArrayBuffer]", ht = "[object Object]", Lr = "[object Error]", Wr = "[object DataView]", qr = "[object Uint8Array]", Kr = "[object Uint8ClampedArray]", Gr = "[object Uint16Array]", Hr = "[object Uint32Array]", Yr = "[object BigUint64Array]", Jr = "[object Int8Array]", Xr = "[object Int16Array]", Qr = "[object Int32Array]", ei = "[object BigInt64Array]", ti = "[object Float32Array]", ni = "[object Float64Array]", ri = /^(?:0|[1-9]\d*)$/;
|
|
24
|
+
function ii(e, t = Number.MAX_SAFE_INTEGER) {
|
|
25
|
+
switch (typeof e) {
|
|
26
|
+
case "number":
|
|
27
|
+
return Number.isInteger(e) && e >= 0 && e < t;
|
|
28
|
+
case "symbol":
|
|
29
|
+
return !1;
|
|
30
|
+
case "string":
|
|
31
|
+
return ri.test(e);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
function oi(e) {
|
|
35
|
+
return typeof e == "symbol" || e instanceof Symbol;
|
|
36
|
+
}
|
|
37
|
+
const ai = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, li = /^\w*$/;
|
|
38
|
+
function ui(e, t) {
|
|
39
|
+
return Array.isArray(e) ? !1 : typeof e == "number" || typeof e == "boolean" || e == null || oi(e) ? !0 : typeof e == "string" && (li.test(e) || !ai.test(e)) || t != null && Object.hasOwn(t, e);
|
|
40
|
+
}
|
|
41
|
+
const si = (e, t, n) => {
|
|
42
|
+
const r = e[t];
|
|
43
|
+
(!(Object.hasOwn(e, t) && hn(r, n)) || n === void 0 && !(t in e)) && (e[t] = n);
|
|
44
|
+
};
|
|
45
|
+
function ci(e, t, n, r) {
|
|
46
|
+
if (e == null && !Ie(e))
|
|
47
|
+
return e;
|
|
48
|
+
const i = ui(t, e) ? [t] : Array.isArray(t) ? t : typeof t == "string" ? jr(t) : [t];
|
|
49
|
+
let o = e;
|
|
50
|
+
for (let u = 0; u < i.length && o != null; u++) {
|
|
51
|
+
const c = $r(i[u]);
|
|
52
|
+
if (Er(c))
|
|
53
|
+
continue;
|
|
54
|
+
let s;
|
|
55
|
+
if (u === i.length - 1)
|
|
56
|
+
s = n(o[c]);
|
|
57
|
+
else {
|
|
58
|
+
const d = o[c], m = r == null ? void 0 : r(d, c, e);
|
|
59
|
+
s = m !== void 0 ? m : Ie(d) ? d : ii(i[u + 1]) ? [] : {};
|
|
60
|
+
}
|
|
61
|
+
si(o, c, s), o = o[c];
|
|
62
|
+
}
|
|
63
|
+
return e;
|
|
64
|
+
}
|
|
65
|
+
function di(e, t, n) {
|
|
66
|
+
return ci(e, t, () => n, () => {
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
function Lt(e) {
|
|
70
|
+
if (!e || typeof e != "object")
|
|
71
|
+
return !1;
|
|
72
|
+
const t = Object.getPrototypeOf(e);
|
|
73
|
+
return t === null || t === Object.prototype || Object.getPrototypeOf(t) === null ? Object.prototype.toString.call(e) === "[object Object]" : !1;
|
|
74
|
+
}
|
|
75
|
+
function fi(e, t, n) {
|
|
76
|
+
return ke(e, t, void 0, void 0, void 0, void 0, n);
|
|
77
|
+
}
|
|
78
|
+
function ke(e, t, n, r, i, o, u) {
|
|
79
|
+
const c = u(e, t, n, r, i, o);
|
|
80
|
+
if (c !== void 0)
|
|
81
|
+
return c;
|
|
82
|
+
if (typeof e == typeof t)
|
|
83
|
+
switch (typeof e) {
|
|
84
|
+
case "bigint":
|
|
85
|
+
case "string":
|
|
86
|
+
case "boolean":
|
|
87
|
+
case "symbol":
|
|
88
|
+
case "undefined":
|
|
89
|
+
return e === t;
|
|
90
|
+
case "number":
|
|
91
|
+
return e === t || Object.is(e, t);
|
|
92
|
+
case "function":
|
|
93
|
+
return e === t;
|
|
94
|
+
case "object":
|
|
95
|
+
return Be(e, t, o, u);
|
|
96
|
+
}
|
|
97
|
+
return Be(e, t, o, u);
|
|
98
|
+
}
|
|
99
|
+
function Be(e, t, n, r) {
|
|
100
|
+
if (Object.is(e, t))
|
|
101
|
+
return !0;
|
|
102
|
+
let i = Dt(e), o = Dt(t);
|
|
103
|
+
if (i === zt && (i = ht), o === zt && (o = ht), i !== o)
|
|
104
|
+
return !1;
|
|
105
|
+
switch (i) {
|
|
106
|
+
case Tr:
|
|
107
|
+
return e.toString() === t.toString();
|
|
108
|
+
case kr: {
|
|
109
|
+
const s = e.valueOf(), d = t.valueOf();
|
|
110
|
+
return hn(s, d);
|
|
111
|
+
}
|
|
112
|
+
case xr:
|
|
113
|
+
case Br:
|
|
114
|
+
case Zr:
|
|
115
|
+
return Object.is(e.valueOf(), t.valueOf());
|
|
116
|
+
case Pr:
|
|
117
|
+
return e.source === t.source && e.flags === t.flags;
|
|
118
|
+
case Dr:
|
|
119
|
+
return e === t;
|
|
120
|
+
}
|
|
121
|
+
n = n ?? /* @__PURE__ */ new Map();
|
|
122
|
+
const u = n.get(e), c = n.get(t);
|
|
123
|
+
if (u != null && c != null)
|
|
124
|
+
return u === t;
|
|
125
|
+
n.set(e, t), n.set(t, e);
|
|
126
|
+
try {
|
|
127
|
+
switch (i) {
|
|
128
|
+
case Rr: {
|
|
129
|
+
if (e.size !== t.size)
|
|
130
|
+
return !1;
|
|
131
|
+
for (const [s, d] of e.entries())
|
|
132
|
+
if (!t.has(s) || !ke(d, t.get(s), s, e, t, n, r))
|
|
133
|
+
return !1;
|
|
134
|
+
return !0;
|
|
135
|
+
}
|
|
136
|
+
case Ur: {
|
|
137
|
+
if (e.size !== t.size)
|
|
138
|
+
return !1;
|
|
139
|
+
const s = Array.from(e.values()), d = Array.from(t.values());
|
|
140
|
+
for (let m = 0; m < s.length; m++) {
|
|
141
|
+
const g = s[m], _ = d.findIndex((v) => ke(g, v, void 0, e, t, n, r));
|
|
142
|
+
if (_ === -1)
|
|
143
|
+
return !1;
|
|
144
|
+
d.splice(_, 1);
|
|
145
|
+
}
|
|
146
|
+
return !0;
|
|
147
|
+
}
|
|
148
|
+
case Mr:
|
|
149
|
+
case qr:
|
|
150
|
+
case Kr:
|
|
151
|
+
case Gr:
|
|
152
|
+
case Hr:
|
|
153
|
+
case Yr:
|
|
154
|
+
case Jr:
|
|
155
|
+
case Xr:
|
|
156
|
+
case Qr:
|
|
157
|
+
case ei:
|
|
158
|
+
case ti:
|
|
159
|
+
case ni: {
|
|
160
|
+
if (typeof Buffer < "u" && Buffer.isBuffer(e) !== Buffer.isBuffer(t) || e.length !== t.length)
|
|
161
|
+
return !1;
|
|
162
|
+
for (let s = 0; s < e.length; s++)
|
|
163
|
+
if (!ke(e[s], t[s], s, e, t, n, r))
|
|
164
|
+
return !1;
|
|
165
|
+
return !0;
|
|
166
|
+
}
|
|
167
|
+
case zr:
|
|
168
|
+
return e.byteLength !== t.byteLength ? !1 : Be(new Uint8Array(e), new Uint8Array(t), n, r);
|
|
169
|
+
case Wr:
|
|
170
|
+
return e.byteLength !== t.byteLength || e.byteOffset !== t.byteOffset ? !1 : Be(new Uint8Array(e), new Uint8Array(t), n, r);
|
|
171
|
+
case Lr:
|
|
172
|
+
return e.name === t.name && e.message === t.message;
|
|
173
|
+
case ht: {
|
|
174
|
+
if (!(Be(e.constructor, t.constructor, n, r) || Lt(e) && Lt(t)))
|
|
175
|
+
return !1;
|
|
176
|
+
const d = [...Object.keys(e), ...Mt(e)], m = [...Object.keys(t), ...Mt(t)];
|
|
177
|
+
if (d.length !== m.length)
|
|
178
|
+
return !1;
|
|
179
|
+
for (let g = 0; g < d.length; g++) {
|
|
180
|
+
const _ = d[g], v = e[_];
|
|
181
|
+
if (!Object.hasOwn(t, _))
|
|
182
|
+
return !1;
|
|
183
|
+
const S = t[_];
|
|
184
|
+
if (!ke(v, S, _, e, t, n, r))
|
|
185
|
+
return !1;
|
|
186
|
+
}
|
|
187
|
+
return !0;
|
|
188
|
+
}
|
|
189
|
+
default:
|
|
190
|
+
return !1;
|
|
191
|
+
}
|
|
192
|
+
} finally {
|
|
193
|
+
n.delete(e), n.delete(t);
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
function vi() {
|
|
197
|
+
}
|
|
198
|
+
function Wt(e, t) {
|
|
199
|
+
return fi(e, t, vi);
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* vee-validate v4.15.1
|
|
203
|
+
* (c) 2025 Abdelrahman Awad
|
|
204
|
+
* @license MIT
|
|
205
|
+
*/
|
|
206
|
+
function K(e) {
|
|
207
|
+
return typeof e == "function";
|
|
208
|
+
}
|
|
209
|
+
function pn(e) {
|
|
210
|
+
return e == null;
|
|
211
|
+
}
|
|
212
|
+
const be = (e) => e !== null && !!e && typeof e == "object" && !Array.isArray(e);
|
|
213
|
+
function wt(e) {
|
|
214
|
+
return Number(e) >= 0;
|
|
215
|
+
}
|
|
216
|
+
function mi(e) {
|
|
217
|
+
const t = parseFloat(e);
|
|
218
|
+
return isNaN(t) ? e : t;
|
|
219
|
+
}
|
|
220
|
+
function yi(e) {
|
|
221
|
+
return typeof e == "object" && e !== null;
|
|
222
|
+
}
|
|
223
|
+
function gi(e) {
|
|
224
|
+
return e == null ? e === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(e);
|
|
225
|
+
}
|
|
226
|
+
function qt(e) {
|
|
227
|
+
if (!yi(e) || gi(e) !== "[object Object]")
|
|
228
|
+
return !1;
|
|
229
|
+
if (Object.getPrototypeOf(e) === null)
|
|
230
|
+
return !0;
|
|
231
|
+
let t = e;
|
|
232
|
+
for (; Object.getPrototypeOf(t) !== null; )
|
|
233
|
+
t = Object.getPrototypeOf(t);
|
|
234
|
+
return Object.getPrototypeOf(e) === t;
|
|
235
|
+
}
|
|
236
|
+
function De(e, t) {
|
|
237
|
+
return Object.keys(t).forEach((n) => {
|
|
238
|
+
if (qt(t[n]) && qt(e[n])) {
|
|
239
|
+
e[n] || (e[n] = {}), De(e[n], t[n]);
|
|
240
|
+
return;
|
|
241
|
+
}
|
|
242
|
+
e[n] = t[n];
|
|
243
|
+
}), e;
|
|
244
|
+
}
|
|
245
|
+
function xe(e) {
|
|
246
|
+
const t = e.split(".");
|
|
247
|
+
if (!t.length)
|
|
248
|
+
return "";
|
|
249
|
+
let n = String(t[0]);
|
|
250
|
+
for (let r = 1; r < t.length; r++) {
|
|
251
|
+
if (wt(t[r])) {
|
|
252
|
+
n += `[${t[r]}]`;
|
|
253
|
+
continue;
|
|
254
|
+
}
|
|
255
|
+
n += `.${t[r]}`;
|
|
256
|
+
}
|
|
257
|
+
return n;
|
|
258
|
+
}
|
|
259
|
+
const bn = {};
|
|
260
|
+
function hi(e, t) {
|
|
261
|
+
bi(e, t), bn[e] = t;
|
|
262
|
+
}
|
|
263
|
+
function pi(e) {
|
|
264
|
+
return bn[e];
|
|
265
|
+
}
|
|
266
|
+
function bi(e, t) {
|
|
267
|
+
if (!K(t))
|
|
268
|
+
throw new Error(`Extension Error: The validator '${e}' must be a function.`);
|
|
269
|
+
}
|
|
270
|
+
function Kt(e, t, n) {
|
|
271
|
+
typeof n.value == "object" && (n.value = C(n.value)), !n.enumerable || n.get || n.set || !n.configurable || !n.writable || t === "__proto__" ? Object.defineProperty(e, t, n) : e[t] = n.value;
|
|
272
|
+
}
|
|
273
|
+
function C(e) {
|
|
274
|
+
if (typeof e != "object") return e;
|
|
275
|
+
var t = 0, n, r, i, o = Object.prototype.toString.call(e);
|
|
276
|
+
if (o === "[object Object]" ? i = Object.create(e.__proto__ || null) : o === "[object Array]" ? i = Array(e.length) : o === "[object Set]" ? (i = /* @__PURE__ */ new Set(), e.forEach(function(u) {
|
|
277
|
+
i.add(C(u));
|
|
278
|
+
})) : o === "[object Map]" ? (i = /* @__PURE__ */ new Map(), e.forEach(function(u, c) {
|
|
279
|
+
i.set(C(c), C(u));
|
|
280
|
+
})) : o === "[object Date]" ? i = /* @__PURE__ */ new Date(+e) : o === "[object RegExp]" ? i = new RegExp(e.source, e.flags) : o === "[object DataView]" ? i = new e.constructor(C(e.buffer)) : o === "[object ArrayBuffer]" ? i = e.slice(0) : o.slice(-6) === "Array]" && (i = new e.constructor(e)), i) {
|
|
281
|
+
for (r = Object.getOwnPropertySymbols(e); t < r.length; t++)
|
|
282
|
+
Kt(i, r[t], Object.getOwnPropertyDescriptor(e, r[t]));
|
|
283
|
+
for (t = 0, r = Object.getOwnPropertyNames(e); t < r.length; t++)
|
|
284
|
+
Object.hasOwnProperty.call(i, n = r[t]) && i[n] === e[n] || Kt(i, n, Object.getOwnPropertyDescriptor(e, n));
|
|
285
|
+
}
|
|
286
|
+
return i || e;
|
|
287
|
+
}
|
|
288
|
+
const Ct = Symbol("vee-validate-form"), Ai = Symbol("vee-validate-form-context"), Vi = Symbol("vee-validate-field-instance"), Gt = Symbol("Default empty value"), An = typeof window < "u";
|
|
289
|
+
function Vt(e) {
|
|
290
|
+
return K(e) && !!e.__locatorRef;
|
|
291
|
+
}
|
|
292
|
+
function ue(e) {
|
|
293
|
+
return !!e && K(e.parse) && e.__type === "VVTypedSchema";
|
|
294
|
+
}
|
|
295
|
+
function nt(e) {
|
|
296
|
+
return !!e && K(e.validate);
|
|
297
|
+
}
|
|
298
|
+
function Vn(e) {
|
|
299
|
+
return e === "checkbox" || e === "radio";
|
|
300
|
+
}
|
|
301
|
+
function Oi(e) {
|
|
302
|
+
return be(e) || Array.isArray(e);
|
|
303
|
+
}
|
|
304
|
+
function Si(e) {
|
|
305
|
+
return Array.isArray(e) ? e.length === 0 : be(e) && Object.keys(e).length === 0;
|
|
306
|
+
}
|
|
307
|
+
function it(e) {
|
|
308
|
+
return /^\[.+\]$/i.test(e);
|
|
309
|
+
}
|
|
310
|
+
function _i(e) {
|
|
311
|
+
return On(e) && e.multiple;
|
|
312
|
+
}
|
|
313
|
+
function On(e) {
|
|
314
|
+
return e.tagName === "SELECT";
|
|
315
|
+
}
|
|
316
|
+
function ji(e) {
|
|
317
|
+
return Sn(e) && e.target && "submit" in e.target;
|
|
318
|
+
}
|
|
319
|
+
function Sn(e) {
|
|
320
|
+
return e ? !!(typeof Event < "u" && K(Event) && e instanceof Event || e && e.srcElement) : !1;
|
|
321
|
+
}
|
|
322
|
+
function H(e, t) {
|
|
323
|
+
if (e === t)
|
|
324
|
+
return !0;
|
|
325
|
+
if (e && t && typeof e == "object" && typeof t == "object") {
|
|
326
|
+
if (e.constructor !== t.constructor)
|
|
327
|
+
return !1;
|
|
328
|
+
var n, r, i;
|
|
329
|
+
if (Array.isArray(e)) {
|
|
330
|
+
if (n = e.length, n != t.length)
|
|
331
|
+
return !1;
|
|
332
|
+
for (r = n; r-- !== 0; )
|
|
333
|
+
if (!H(e[r], t[r]))
|
|
334
|
+
return !1;
|
|
335
|
+
return !0;
|
|
336
|
+
}
|
|
337
|
+
if (e instanceof Map && t instanceof Map) {
|
|
338
|
+
if (e.size !== t.size)
|
|
339
|
+
return !1;
|
|
340
|
+
for (r of e.entries())
|
|
341
|
+
if (!t.has(r[0]))
|
|
342
|
+
return !1;
|
|
343
|
+
for (r of e.entries())
|
|
344
|
+
if (!H(r[1], t.get(r[0])))
|
|
345
|
+
return !1;
|
|
346
|
+
return !0;
|
|
347
|
+
}
|
|
348
|
+
if (Yt(e) && Yt(t))
|
|
349
|
+
return !(e.size !== t.size || e.name !== t.name || e.lastModified !== t.lastModified || e.type !== t.type);
|
|
350
|
+
if (e instanceof Set && t instanceof Set) {
|
|
351
|
+
if (e.size !== t.size)
|
|
352
|
+
return !1;
|
|
353
|
+
for (r of e.entries())
|
|
354
|
+
if (!t.has(r[0]))
|
|
355
|
+
return !1;
|
|
356
|
+
return !0;
|
|
357
|
+
}
|
|
358
|
+
if (ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) {
|
|
359
|
+
if (n = e.length, n != t.length)
|
|
360
|
+
return !1;
|
|
361
|
+
for (r = n; r-- !== 0; )
|
|
362
|
+
if (e[r] !== t[r])
|
|
363
|
+
return !1;
|
|
364
|
+
return !0;
|
|
365
|
+
}
|
|
366
|
+
if (e.constructor === RegExp)
|
|
367
|
+
return e.source === t.source && e.flags === t.flags;
|
|
368
|
+
if (e.valueOf !== Object.prototype.valueOf)
|
|
369
|
+
return e.valueOf() === t.valueOf();
|
|
370
|
+
if (e.toString !== Object.prototype.toString)
|
|
371
|
+
return e.toString() === t.toString();
|
|
372
|
+
if (e = Ht(e), t = Ht(t), i = Object.keys(e), n = i.length, n !== Object.keys(t).length)
|
|
373
|
+
return !1;
|
|
374
|
+
for (r = n; r-- !== 0; )
|
|
375
|
+
if (!Object.prototype.hasOwnProperty.call(t, i[r]))
|
|
376
|
+
return !1;
|
|
377
|
+
for (r = n; r-- !== 0; ) {
|
|
378
|
+
var o = i[r];
|
|
379
|
+
if (!H(e[o], t[o]))
|
|
380
|
+
return !1;
|
|
381
|
+
}
|
|
382
|
+
return !0;
|
|
383
|
+
}
|
|
384
|
+
return e !== e && t !== t;
|
|
385
|
+
}
|
|
386
|
+
function Ht(e) {
|
|
387
|
+
return Object.fromEntries(Object.entries(e).filter(([, t]) => t !== void 0));
|
|
388
|
+
}
|
|
389
|
+
function Yt(e) {
|
|
390
|
+
return An ? e instanceof File : !1;
|
|
391
|
+
}
|
|
392
|
+
function It(e) {
|
|
393
|
+
return it(e) ? e.replace(/\[|\]/gi, "") : e;
|
|
394
|
+
}
|
|
395
|
+
function Q(e, t, n) {
|
|
396
|
+
return e ? it(t) ? e[It(t)] : (t || "").split(/\.|\[(\d+)\]/).filter(Boolean).reduce((i, o) => Oi(i) && o in i ? i[o] : n, e) : n;
|
|
397
|
+
}
|
|
398
|
+
function ce(e, t, n) {
|
|
399
|
+
if (it(t)) {
|
|
400
|
+
e[It(t)] = n;
|
|
401
|
+
return;
|
|
402
|
+
}
|
|
403
|
+
const r = t.split(/\.|\[(\d+)\]/).filter(Boolean);
|
|
404
|
+
let i = e;
|
|
405
|
+
for (let o = 0; o < r.length; o++) {
|
|
406
|
+
if (o === r.length - 1) {
|
|
407
|
+
i[r[o]] = n;
|
|
408
|
+
return;
|
|
409
|
+
}
|
|
410
|
+
(!(r[o] in i) || pn(i[r[o]])) && (i[r[o]] = wt(r[o + 1]) ? [] : {}), i = i[r[o]];
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
function pt(e, t) {
|
|
414
|
+
if (Array.isArray(e) && wt(t)) {
|
|
415
|
+
e.splice(Number(t), 1);
|
|
416
|
+
return;
|
|
417
|
+
}
|
|
418
|
+
be(e) && delete e[t];
|
|
419
|
+
}
|
|
420
|
+
function Jt(e, t) {
|
|
421
|
+
if (it(t)) {
|
|
422
|
+
delete e[It(t)];
|
|
423
|
+
return;
|
|
424
|
+
}
|
|
425
|
+
const n = t.split(/\.|\[(\d+)\]/).filter(Boolean);
|
|
426
|
+
let r = e;
|
|
427
|
+
for (let o = 0; o < n.length; o++) {
|
|
428
|
+
if (o === n.length - 1) {
|
|
429
|
+
pt(r, n[o]);
|
|
430
|
+
break;
|
|
431
|
+
}
|
|
432
|
+
if (!(n[o] in r) || pn(r[n[o]]))
|
|
433
|
+
break;
|
|
434
|
+
r = r[n[o]];
|
|
435
|
+
}
|
|
436
|
+
const i = n.map((o, u) => Q(e, n.slice(0, u).join(".")));
|
|
437
|
+
for (let o = i.length - 1; o >= 0; o--)
|
|
438
|
+
if (Si(i[o])) {
|
|
439
|
+
if (o === 0) {
|
|
440
|
+
pt(e, n[0]);
|
|
441
|
+
continue;
|
|
442
|
+
}
|
|
443
|
+
pt(i[o - 1], n[o - 1]);
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
function J(e) {
|
|
447
|
+
return Object.keys(e);
|
|
448
|
+
}
|
|
449
|
+
function _n(e, t = void 0) {
|
|
450
|
+
const n = je();
|
|
451
|
+
return (n == null ? void 0 : n.provides[e]) || or(e, t);
|
|
452
|
+
}
|
|
453
|
+
function Xt(e, t, n) {
|
|
454
|
+
if (Array.isArray(e)) {
|
|
455
|
+
const r = [...e], i = r.findIndex((o) => H(o, t));
|
|
456
|
+
return i >= 0 ? r.splice(i, 1) : r.push(t), r;
|
|
457
|
+
}
|
|
458
|
+
return H(e, t) ? n : t;
|
|
459
|
+
}
|
|
460
|
+
function $i(e, t) {
|
|
461
|
+
let n, r;
|
|
462
|
+
return function(...i) {
|
|
463
|
+
const o = this;
|
|
464
|
+
return n || (n = !0, setTimeout(() => n = !1, t), r = e.apply(o, i)), r;
|
|
465
|
+
};
|
|
466
|
+
}
|
|
467
|
+
function Qt(e, t = 0) {
|
|
468
|
+
let n = null, r = [];
|
|
469
|
+
return function(...i) {
|
|
470
|
+
return n && clearTimeout(n), n = setTimeout(() => {
|
|
471
|
+
const o = e(...i);
|
|
472
|
+
r.forEach((u) => u(o)), r = [];
|
|
473
|
+
}, t), new Promise((o) => r.push(o));
|
|
474
|
+
};
|
|
475
|
+
}
|
|
476
|
+
function Ei(e, t) {
|
|
477
|
+
return be(t) && t.number ? mi(e) : e;
|
|
478
|
+
}
|
|
479
|
+
function Ot(e, t) {
|
|
480
|
+
let n;
|
|
481
|
+
return async function(...i) {
|
|
482
|
+
const o = e(...i);
|
|
483
|
+
n = o;
|
|
484
|
+
const u = await o;
|
|
485
|
+
return o !== n ? u : (n = void 0, t(u, i));
|
|
486
|
+
};
|
|
487
|
+
}
|
|
488
|
+
function St(e) {
|
|
489
|
+
return Array.isArray(e) ? e : e ? [e] : [];
|
|
490
|
+
}
|
|
491
|
+
function qe(e, t) {
|
|
492
|
+
const n = {};
|
|
493
|
+
for (const r in e)
|
|
494
|
+
t.includes(r) || (n[r] = e[r]);
|
|
495
|
+
return n;
|
|
496
|
+
}
|
|
497
|
+
function wi(e) {
|
|
498
|
+
let t = null, n = [];
|
|
499
|
+
return function(...r) {
|
|
500
|
+
const i = q(() => {
|
|
501
|
+
if (t !== i)
|
|
502
|
+
return;
|
|
503
|
+
const o = e(...r);
|
|
504
|
+
n.forEach((u) => u(o)), n = [], t = null;
|
|
505
|
+
});
|
|
506
|
+
return t = i, new Promise((o) => n.push(o));
|
|
507
|
+
};
|
|
508
|
+
}
|
|
509
|
+
function bt(e) {
|
|
510
|
+
if (jn(e))
|
|
511
|
+
return e._value;
|
|
512
|
+
}
|
|
513
|
+
function jn(e) {
|
|
514
|
+
return "_value" in e;
|
|
515
|
+
}
|
|
516
|
+
function Ci(e) {
|
|
517
|
+
return e.type === "number" || e.type === "range" ? Number.isNaN(e.valueAsNumber) ? e.value : e.valueAsNumber : e.value;
|
|
518
|
+
}
|
|
519
|
+
function rt(e) {
|
|
520
|
+
if (!Sn(e))
|
|
521
|
+
return e;
|
|
522
|
+
const t = e.target;
|
|
523
|
+
if (Vn(t.type) && jn(t))
|
|
524
|
+
return bt(t);
|
|
525
|
+
if (t.type === "file" && t.files) {
|
|
526
|
+
const n = Array.from(t.files);
|
|
527
|
+
return t.multiple ? n : n[0];
|
|
528
|
+
}
|
|
529
|
+
if (_i(t))
|
|
530
|
+
return Array.from(t.options).filter((n) => n.selected && !n.disabled).map(bt);
|
|
531
|
+
if (On(t)) {
|
|
532
|
+
const n = Array.from(t.options).find((r) => r.selected);
|
|
533
|
+
return n ? bt(n) : t.value;
|
|
534
|
+
}
|
|
535
|
+
return Ci(t);
|
|
536
|
+
}
|
|
537
|
+
function $n(e) {
|
|
538
|
+
const t = {};
|
|
539
|
+
return Object.defineProperty(t, "_$$isNormalized", {
|
|
540
|
+
value: !0,
|
|
541
|
+
writable: !1,
|
|
542
|
+
enumerable: !1,
|
|
543
|
+
configurable: !1
|
|
544
|
+
}), e ? be(e) && e._$$isNormalized ? e : be(e) ? Object.keys(e).reduce((n, r) => {
|
|
545
|
+
const i = Ii(e[r]);
|
|
546
|
+
return e[r] !== !1 && (n[r] = en(i)), n;
|
|
547
|
+
}, t) : typeof e != "string" ? t : e.split("|").reduce((n, r) => {
|
|
548
|
+
const i = Ni(r);
|
|
549
|
+
return i.name && (n[i.name] = en(i.params)), n;
|
|
550
|
+
}, t) : t;
|
|
551
|
+
}
|
|
552
|
+
function Ii(e) {
|
|
553
|
+
return e === !0 ? [] : Array.isArray(e) || be(e) ? e : [e];
|
|
554
|
+
}
|
|
555
|
+
function en(e) {
|
|
556
|
+
const t = (n) => typeof n == "string" && n[0] === "@" ? Fi(n.slice(1)) : n;
|
|
557
|
+
return Array.isArray(e) ? e.map(t) : e instanceof RegExp ? [e] : Object.keys(e).reduce((n, r) => (n[r] = t(e[r]), n), {});
|
|
558
|
+
}
|
|
559
|
+
const Ni = (e) => {
|
|
560
|
+
let t = [];
|
|
561
|
+
const n = e.split(":")[0];
|
|
562
|
+
return e.includes(":") && (t = e.split(":").slice(1).join(":").split(",")), { name: n, params: t };
|
|
563
|
+
};
|
|
564
|
+
function Fi(e) {
|
|
565
|
+
const t = (n) => {
|
|
566
|
+
var r;
|
|
567
|
+
return (r = Q(n, e)) !== null && r !== void 0 ? r : n[e];
|
|
568
|
+
};
|
|
569
|
+
return t.__locatorRef = e, t;
|
|
570
|
+
}
|
|
571
|
+
function Pi(e) {
|
|
572
|
+
return Array.isArray(e) ? e.filter(Vt) : J(e).filter((t) => Vt(e[t])).map((t) => e[t]);
|
|
573
|
+
}
|
|
574
|
+
const Ti = {
|
|
575
|
+
generateMessage: ({ field: e }) => `${e} is not valid.`,
|
|
576
|
+
bails: !0,
|
|
577
|
+
validateOnBlur: !0,
|
|
578
|
+
validateOnChange: !0,
|
|
579
|
+
validateOnInput: !1,
|
|
580
|
+
validateOnModelUpdate: !0
|
|
581
|
+
};
|
|
582
|
+
let ki = Object.assign({}, Ti);
|
|
583
|
+
const Ze = () => ki;
|
|
584
|
+
async function En(e, t, n = {}) {
|
|
585
|
+
const r = n == null ? void 0 : n.bails, i = {
|
|
586
|
+
name: (n == null ? void 0 : n.name) || "{field}",
|
|
587
|
+
rules: t,
|
|
588
|
+
label: n == null ? void 0 : n.label,
|
|
589
|
+
bails: r ?? !0,
|
|
590
|
+
formData: (n == null ? void 0 : n.values) || {}
|
|
591
|
+
}, o = await xi(i, e);
|
|
592
|
+
return Object.assign(Object.assign({}, o), { valid: !o.errors.length });
|
|
593
|
+
}
|
|
594
|
+
async function xi(e, t) {
|
|
595
|
+
const n = e.rules;
|
|
596
|
+
if (ue(n) || nt(n))
|
|
597
|
+
return Bi(t, Object.assign(Object.assign({}, e), { rules: n }));
|
|
598
|
+
if (K(n) || Array.isArray(n)) {
|
|
599
|
+
const c = {
|
|
600
|
+
field: e.label || e.name,
|
|
601
|
+
name: e.name,
|
|
602
|
+
label: e.label,
|
|
603
|
+
form: e.formData,
|
|
604
|
+
value: t
|
|
605
|
+
}, s = Array.isArray(n) ? n : [n], d = s.length, m = [];
|
|
606
|
+
for (let g = 0; g < d; g++) {
|
|
607
|
+
const _ = s[g], v = await _(t, c);
|
|
608
|
+
if (!(typeof v != "string" && !Array.isArray(v) && v)) {
|
|
609
|
+
if (Array.isArray(v))
|
|
610
|
+
m.push(...v);
|
|
611
|
+
else {
|
|
612
|
+
const U = typeof v == "string" ? v : Cn(c);
|
|
613
|
+
m.push(U);
|
|
614
|
+
}
|
|
615
|
+
if (e.bails)
|
|
616
|
+
return {
|
|
617
|
+
errors: m
|
|
618
|
+
};
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
return {
|
|
622
|
+
errors: m
|
|
623
|
+
};
|
|
624
|
+
}
|
|
625
|
+
const r = Object.assign(Object.assign({}, e), { rules: $n(n) }), i = [], o = Object.keys(r.rules), u = o.length;
|
|
626
|
+
for (let c = 0; c < u; c++) {
|
|
627
|
+
const s = o[c], d = await Ri(r, t, {
|
|
628
|
+
name: s,
|
|
629
|
+
params: r.rules[s]
|
|
630
|
+
});
|
|
631
|
+
if (d.error && (i.push(d.error), e.bails))
|
|
632
|
+
return {
|
|
633
|
+
errors: i
|
|
634
|
+
};
|
|
635
|
+
}
|
|
636
|
+
return {
|
|
637
|
+
errors: i
|
|
638
|
+
};
|
|
639
|
+
}
|
|
640
|
+
function Zi(e) {
|
|
641
|
+
return !!e && e.name === "ValidationError";
|
|
642
|
+
}
|
|
643
|
+
function wn(e) {
|
|
644
|
+
return {
|
|
645
|
+
__type: "VVTypedSchema",
|
|
646
|
+
async parse(n, r) {
|
|
647
|
+
var i;
|
|
648
|
+
try {
|
|
649
|
+
return {
|
|
650
|
+
output: await e.validate(n, { abortEarly: !1, context: (r == null ? void 0 : r.formData) || {} }),
|
|
651
|
+
errors: []
|
|
652
|
+
};
|
|
653
|
+
} catch (o) {
|
|
654
|
+
if (!Zi(o))
|
|
655
|
+
throw o;
|
|
656
|
+
if (!(!((i = o.inner) === null || i === void 0) && i.length) && o.errors.length)
|
|
657
|
+
return { errors: [{ path: o.path, errors: o.errors }] };
|
|
658
|
+
const u = o.inner.reduce((c, s) => {
|
|
659
|
+
const d = s.path || "";
|
|
660
|
+
return c[d] || (c[d] = { errors: [], path: d }), c[d].errors.push(...s.errors), c;
|
|
661
|
+
}, {});
|
|
662
|
+
return { errors: Object.values(u) };
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
};
|
|
666
|
+
}
|
|
667
|
+
async function Bi(e, t) {
|
|
668
|
+
const r = await (ue(t.rules) ? t.rules : wn(t.rules)).parse(e, { formData: t.formData }), i = [];
|
|
669
|
+
for (const o of r.errors)
|
|
670
|
+
o.errors.length && i.push(...o.errors);
|
|
671
|
+
return {
|
|
672
|
+
value: r.value,
|
|
673
|
+
errors: i
|
|
674
|
+
};
|
|
675
|
+
}
|
|
676
|
+
async function Ri(e, t, n) {
|
|
677
|
+
const r = pi(n.name);
|
|
678
|
+
if (!r)
|
|
679
|
+
throw new Error(`No such validator '${n.name}' exists.`);
|
|
680
|
+
const i = Ui(n.params, e.formData), o = {
|
|
681
|
+
field: e.label || e.name,
|
|
682
|
+
name: e.name,
|
|
683
|
+
label: e.label,
|
|
684
|
+
value: t,
|
|
685
|
+
form: e.formData,
|
|
686
|
+
rule: Object.assign(Object.assign({}, n), { params: i })
|
|
687
|
+
}, u = await r(t, i, o);
|
|
688
|
+
return typeof u == "string" ? {
|
|
689
|
+
error: u
|
|
690
|
+
} : {
|
|
691
|
+
error: u ? void 0 : Cn(o)
|
|
692
|
+
};
|
|
693
|
+
}
|
|
694
|
+
function Cn(e) {
|
|
695
|
+
const t = Ze().generateMessage;
|
|
696
|
+
return t ? t(e) : "Field is invalid";
|
|
697
|
+
}
|
|
698
|
+
function Ui(e, t) {
|
|
699
|
+
const n = (r) => Vt(r) ? r(t) : r;
|
|
700
|
+
return Array.isArray(e) ? e.map(n) : Object.keys(e).reduce((r, i) => (r[i] = n(e[i]), r), {});
|
|
701
|
+
}
|
|
702
|
+
async function Mi(e, t) {
|
|
703
|
+
const r = await (ue(e) ? e : wn(e)).parse(C(t), { formData: C(t) }), i = {}, o = {};
|
|
704
|
+
for (const u of r.errors) {
|
|
705
|
+
const c = u.errors, s = (u.path || "").replace(/\["(\d+)"\]/g, (d, m) => `[${m}]`);
|
|
706
|
+
i[s] = { valid: !c.length, errors: c }, c.length && (o[s] = c[0]);
|
|
707
|
+
}
|
|
708
|
+
return {
|
|
709
|
+
valid: !r.errors.length,
|
|
710
|
+
results: i,
|
|
711
|
+
errors: o,
|
|
712
|
+
values: r.value,
|
|
713
|
+
source: "schema"
|
|
714
|
+
};
|
|
715
|
+
}
|
|
716
|
+
async function Di(e, t, n) {
|
|
717
|
+
const i = J(e).map(async (d) => {
|
|
718
|
+
var m, g, _;
|
|
719
|
+
const v = (m = n == null ? void 0 : n.names) === null || m === void 0 ? void 0 : m[d], S = await En(Q(t, d), e[d], {
|
|
720
|
+
name: (v == null ? void 0 : v.name) || d,
|
|
721
|
+
label: v == null ? void 0 : v.label,
|
|
722
|
+
values: t,
|
|
723
|
+
bails: (_ = (g = n == null ? void 0 : n.bailsMap) === null || g === void 0 ? void 0 : g[d]) !== null && _ !== void 0 ? _ : !0
|
|
724
|
+
});
|
|
725
|
+
return Object.assign(Object.assign({}, S), { path: d });
|
|
726
|
+
});
|
|
727
|
+
let o = !0;
|
|
728
|
+
const u = await Promise.all(i), c = {}, s = {};
|
|
729
|
+
for (const d of u)
|
|
730
|
+
c[d.path] = {
|
|
731
|
+
valid: d.valid,
|
|
732
|
+
errors: d.errors
|
|
733
|
+
}, d.valid || (o = !1, s[d.path] = d.errors[0]);
|
|
734
|
+
return {
|
|
735
|
+
valid: o,
|
|
736
|
+
results: c,
|
|
737
|
+
errors: s,
|
|
738
|
+
source: "schema"
|
|
739
|
+
};
|
|
740
|
+
}
|
|
741
|
+
let tn = 0;
|
|
742
|
+
function zi(e, t) {
|
|
743
|
+
const { value: n, initialValue: r, setInitialValue: i } = Li(e, t.modelValue, t.form);
|
|
744
|
+
if (!t.form) {
|
|
745
|
+
let _ = function(v) {
|
|
746
|
+
var S;
|
|
747
|
+
"value" in v && (n.value = v.value), "errors" in v && d(v.errors), "touched" in v && (g.touched = (S = v.touched) !== null && S !== void 0 ? S : g.touched), "initialValue" in v && i(v.initialValue);
|
|
748
|
+
};
|
|
749
|
+
const { errors: s, setErrors: d } = Ki(), m = tn >= Number.MAX_SAFE_INTEGER ? 0 : ++tn, g = qi(n, r, s, t.schema);
|
|
750
|
+
return {
|
|
751
|
+
id: m,
|
|
752
|
+
path: e,
|
|
753
|
+
value: n,
|
|
754
|
+
initialValue: r,
|
|
755
|
+
meta: g,
|
|
756
|
+
flags: { pendingUnmount: { [m]: !1 }, pendingReset: !1 },
|
|
757
|
+
errors: s,
|
|
758
|
+
setState: _
|
|
759
|
+
};
|
|
760
|
+
}
|
|
761
|
+
const o = t.form.createPathState(e, {
|
|
762
|
+
bails: t.bails,
|
|
763
|
+
label: t.label,
|
|
764
|
+
type: t.type,
|
|
765
|
+
validate: t.validate,
|
|
766
|
+
schema: t.schema
|
|
767
|
+
}), u = w(() => o.errors);
|
|
768
|
+
function c(s) {
|
|
769
|
+
var d, m, g;
|
|
770
|
+
"value" in s && (n.value = s.value), "errors" in s && ((d = t.form) === null || d === void 0 || d.setFieldError(A(e), s.errors)), "touched" in s && ((m = t.form) === null || m === void 0 || m.setFieldTouched(A(e), (g = s.touched) !== null && g !== void 0 ? g : !1)), "initialValue" in s && i(s.initialValue);
|
|
771
|
+
}
|
|
772
|
+
return {
|
|
773
|
+
id: Array.isArray(o.id) ? o.id[o.id.length - 1] : o.id,
|
|
774
|
+
path: e,
|
|
775
|
+
value: n,
|
|
776
|
+
errors: u,
|
|
777
|
+
meta: o,
|
|
778
|
+
initialValue: r,
|
|
779
|
+
flags: o.__flags,
|
|
780
|
+
setState: c
|
|
781
|
+
};
|
|
782
|
+
}
|
|
783
|
+
function Li(e, t, n) {
|
|
784
|
+
const r = ee(A(t));
|
|
785
|
+
function i() {
|
|
786
|
+
return n ? Q(n.initialValues.value, A(e), A(r)) : A(r);
|
|
787
|
+
}
|
|
788
|
+
function o(d) {
|
|
789
|
+
if (!n) {
|
|
790
|
+
r.value = d;
|
|
791
|
+
return;
|
|
792
|
+
}
|
|
793
|
+
n.setFieldInitialValue(A(e), d, !0);
|
|
794
|
+
}
|
|
795
|
+
const u = w(i);
|
|
796
|
+
if (!n)
|
|
797
|
+
return {
|
|
798
|
+
value: ee(i()),
|
|
799
|
+
initialValue: u,
|
|
800
|
+
setInitialValue: o
|
|
801
|
+
};
|
|
802
|
+
const c = Wi(t, n, u, e);
|
|
803
|
+
return n.stageInitialValue(A(e), c, !0), {
|
|
804
|
+
value: w({
|
|
805
|
+
get() {
|
|
806
|
+
return Q(n.values, A(e));
|
|
807
|
+
},
|
|
808
|
+
set(d) {
|
|
809
|
+
n.setFieldValue(A(e), d, !1);
|
|
810
|
+
}
|
|
811
|
+
}),
|
|
812
|
+
initialValue: u,
|
|
813
|
+
setInitialValue: o
|
|
814
|
+
};
|
|
815
|
+
}
|
|
816
|
+
function Wi(e, t, n, r) {
|
|
817
|
+
return tt(e) ? A(e) : e !== void 0 ? e : Q(t.values, A(r), A(n));
|
|
818
|
+
}
|
|
819
|
+
function qi(e, t, n, r) {
|
|
820
|
+
const i = w(() => {
|
|
821
|
+
var u, c, s;
|
|
822
|
+
return (s = (c = (u = p(r)) === null || u === void 0 ? void 0 : u.describe) === null || c === void 0 ? void 0 : c.call(u).required) !== null && s !== void 0 ? s : !1;
|
|
823
|
+
}), o = et({
|
|
824
|
+
touched: !1,
|
|
825
|
+
pending: !1,
|
|
826
|
+
valid: !0,
|
|
827
|
+
required: i,
|
|
828
|
+
validated: !!A(n).length,
|
|
829
|
+
initialValue: w(() => A(t)),
|
|
830
|
+
dirty: w(() => !H(A(e), A(t)))
|
|
831
|
+
});
|
|
832
|
+
return G(n, (u) => {
|
|
833
|
+
o.valid = !u.length;
|
|
834
|
+
}, {
|
|
835
|
+
immediate: !0,
|
|
836
|
+
flush: "sync"
|
|
837
|
+
}), o;
|
|
838
|
+
}
|
|
839
|
+
function Ki() {
|
|
840
|
+
const e = ee([]);
|
|
841
|
+
return {
|
|
842
|
+
errors: e,
|
|
843
|
+
setErrors: (t) => {
|
|
844
|
+
e.value = St(t);
|
|
845
|
+
}
|
|
846
|
+
};
|
|
847
|
+
}
|
|
848
|
+
const Re = {}, Ue = {}, Me = "vee-validate-inspector", X = {
|
|
849
|
+
error: 12405579,
|
|
850
|
+
success: 448379,
|
|
851
|
+
unknown: 5522283,
|
|
852
|
+
white: 16777215,
|
|
853
|
+
black: 0,
|
|
854
|
+
blue: 218007,
|
|
855
|
+
purple: 12157168,
|
|
856
|
+
orange: 16099682,
|
|
857
|
+
gray: 12304330
|
|
858
|
+
};
|
|
859
|
+
let B = null, ve;
|
|
860
|
+
async function In(e) {
|
|
861
|
+
if (process.env.NODE_ENV !== "production") {
|
|
862
|
+
if (!An)
|
|
863
|
+
return;
|
|
864
|
+
(await import("./index-T3jqfug4.js")).setupDevtoolsPlugin({
|
|
865
|
+
id: "vee-validate-devtools-plugin",
|
|
866
|
+
label: "VeeValidate Plugin",
|
|
867
|
+
packageName: "vee-validate",
|
|
868
|
+
homepage: "https://vee-validate.logaretm.com/v4",
|
|
869
|
+
app: e,
|
|
870
|
+
logo: "https://vee-validate.logaretm.com/v4/logo.png"
|
|
871
|
+
}, (n) => {
|
|
872
|
+
ve = n, n.addInspector({
|
|
873
|
+
id: Me,
|
|
874
|
+
icon: "rule",
|
|
875
|
+
label: "vee-validate",
|
|
876
|
+
noSelectionText: "Select a vee-validate node to inspect",
|
|
877
|
+
actions: [
|
|
878
|
+
{
|
|
879
|
+
icon: "done_outline",
|
|
880
|
+
tooltip: "Validate selected item",
|
|
881
|
+
action: async () => {
|
|
882
|
+
if (!B) {
|
|
883
|
+
console.error("There is not a valid selected vee-validate node or component");
|
|
884
|
+
return;
|
|
885
|
+
}
|
|
886
|
+
if (B.type === "field") {
|
|
887
|
+
await B.field.validate();
|
|
888
|
+
return;
|
|
889
|
+
}
|
|
890
|
+
if (B.type === "form") {
|
|
891
|
+
await B.form.validate();
|
|
892
|
+
return;
|
|
893
|
+
}
|
|
894
|
+
B.type === "pathState" && await B.form.validateField(B.state.path);
|
|
895
|
+
}
|
|
896
|
+
},
|
|
897
|
+
{
|
|
898
|
+
icon: "delete_sweep",
|
|
899
|
+
tooltip: "Clear validation state of the selected item",
|
|
900
|
+
action: () => {
|
|
901
|
+
if (!B) {
|
|
902
|
+
console.error("There is not a valid selected vee-validate node or component");
|
|
903
|
+
return;
|
|
904
|
+
}
|
|
905
|
+
if (B.type === "field") {
|
|
906
|
+
B.field.resetField();
|
|
907
|
+
return;
|
|
908
|
+
}
|
|
909
|
+
B.type === "form" && B.form.resetForm(), B.type === "pathState" && B.form.resetField(B.state.path);
|
|
910
|
+
}
|
|
911
|
+
}
|
|
912
|
+
]
|
|
913
|
+
}), n.on.getInspectorTree((r) => {
|
|
914
|
+
if (r.inspectorId !== Me)
|
|
915
|
+
return;
|
|
916
|
+
const i = Object.values(Re), o = Object.values(Ue);
|
|
917
|
+
r.rootNodes = [
|
|
918
|
+
...i.map(Yi),
|
|
919
|
+
...o.map((u) => Xi(u))
|
|
920
|
+
];
|
|
921
|
+
}), n.on.getInspectorState((r) => {
|
|
922
|
+
if (r.inspectorId !== Me)
|
|
923
|
+
return;
|
|
924
|
+
const { form: i, field: o, state: u, type: c } = Qi(r.nodeId);
|
|
925
|
+
if (n.unhighlightElement(), i && c === "form") {
|
|
926
|
+
r.state = eo(i), B = { type: "form", form: i }, n.highlightElement(i._vm);
|
|
927
|
+
return;
|
|
928
|
+
}
|
|
929
|
+
if (u && c === "pathState" && i) {
|
|
930
|
+
r.state = nn(u), B = { type: "pathState", state: u, form: i };
|
|
931
|
+
return;
|
|
932
|
+
}
|
|
933
|
+
if (o && c === "field") {
|
|
934
|
+
r.state = nn({
|
|
935
|
+
errors: o.errors.value,
|
|
936
|
+
dirty: o.meta.dirty,
|
|
937
|
+
valid: o.meta.valid,
|
|
938
|
+
touched: o.meta.touched,
|
|
939
|
+
value: o.value.value,
|
|
940
|
+
initialValue: o.meta.initialValue
|
|
941
|
+
}), B = { field: o, type: "field" }, n.highlightElement(o._vm);
|
|
942
|
+
return;
|
|
943
|
+
}
|
|
944
|
+
B = null, n.unhighlightElement();
|
|
945
|
+
});
|
|
946
|
+
});
|
|
947
|
+
}
|
|
948
|
+
}
|
|
949
|
+
const Ne = $i(() => {
|
|
950
|
+
setTimeout(async () => {
|
|
951
|
+
await q(), ve == null || ve.sendInspectorState(Me), ve == null || ve.sendInspectorTree(Me);
|
|
952
|
+
}, 100);
|
|
953
|
+
}, 100);
|
|
954
|
+
function Gi(e) {
|
|
955
|
+
const t = je();
|
|
956
|
+
if (!ve) {
|
|
957
|
+
const n = t == null ? void 0 : t.appContext.app;
|
|
958
|
+
if (!n)
|
|
959
|
+
return;
|
|
960
|
+
In(n);
|
|
961
|
+
}
|
|
962
|
+
Re[e.formId] = Object.assign({}, e), Re[e.formId]._vm = t, un(() => {
|
|
963
|
+
delete Re[e.formId], Ne();
|
|
964
|
+
}), Ne();
|
|
965
|
+
}
|
|
966
|
+
function Hi(e) {
|
|
967
|
+
const t = je();
|
|
968
|
+
if (!ve) {
|
|
969
|
+
const n = t == null ? void 0 : t.appContext.app;
|
|
970
|
+
if (!n)
|
|
971
|
+
return;
|
|
972
|
+
In(n);
|
|
973
|
+
}
|
|
974
|
+
Ue[e.id] = Object.assign({}, e), Ue[e.id]._vm = t, un(() => {
|
|
975
|
+
delete Ue[e.id], Ne();
|
|
976
|
+
}), Ne();
|
|
977
|
+
}
|
|
978
|
+
function Yi(e) {
|
|
979
|
+
const { textColor: t, bgColor: n } = Fn(e.meta.value.valid), r = {};
|
|
980
|
+
Object.values(e.getAllPathStates()).forEach((u) => {
|
|
981
|
+
ce(r, p(u.path), Ji(u, e));
|
|
982
|
+
});
|
|
983
|
+
function i(u, c = []) {
|
|
984
|
+
const s = [...c].pop();
|
|
985
|
+
return "id" in u ? Object.assign(Object.assign({}, u), { label: s || u.label }) : be(u) ? {
|
|
986
|
+
id: `${c.join(".")}`,
|
|
987
|
+
label: s || "",
|
|
988
|
+
children: Object.keys(u).map((d) => i(u[d], [...c, d]))
|
|
989
|
+
} : Array.isArray(u) ? {
|
|
990
|
+
id: `${c.join(".")}`,
|
|
991
|
+
label: `${s}[]`,
|
|
992
|
+
children: u.map((d, m) => i(d, [...c, String(m)]))
|
|
993
|
+
} : { id: "", label: "", children: [] };
|
|
994
|
+
}
|
|
995
|
+
const { children: o } = i(r);
|
|
996
|
+
return {
|
|
997
|
+
id: Nt(e),
|
|
998
|
+
label: e.name,
|
|
999
|
+
children: o,
|
|
1000
|
+
tags: [
|
|
1001
|
+
{
|
|
1002
|
+
label: "Form",
|
|
1003
|
+
textColor: t,
|
|
1004
|
+
backgroundColor: n
|
|
1005
|
+
},
|
|
1006
|
+
{
|
|
1007
|
+
label: `${e.getAllPathStates().length} fields`,
|
|
1008
|
+
textColor: X.white,
|
|
1009
|
+
backgroundColor: X.unknown
|
|
1010
|
+
}
|
|
1011
|
+
]
|
|
1012
|
+
};
|
|
1013
|
+
}
|
|
1014
|
+
function Ji(e, t) {
|
|
1015
|
+
return {
|
|
1016
|
+
id: Nt(t, e),
|
|
1017
|
+
label: p(e.path),
|
|
1018
|
+
tags: Nn(e.multiple, e.fieldsCount, e.type, e.valid, t)
|
|
1019
|
+
};
|
|
1020
|
+
}
|
|
1021
|
+
function Xi(e, t) {
|
|
1022
|
+
return {
|
|
1023
|
+
id: Nt(t, e),
|
|
1024
|
+
label: A(e.name),
|
|
1025
|
+
tags: Nn(!1, 1, e.type, e.meta.valid, t)
|
|
1026
|
+
};
|
|
1027
|
+
}
|
|
1028
|
+
function Nn(e, t, n, r, i) {
|
|
1029
|
+
const { textColor: o, bgColor: u } = Fn(r);
|
|
1030
|
+
return [
|
|
1031
|
+
e ? void 0 : {
|
|
1032
|
+
label: "Field",
|
|
1033
|
+
textColor: o,
|
|
1034
|
+
backgroundColor: u
|
|
1035
|
+
},
|
|
1036
|
+
i ? void 0 : {
|
|
1037
|
+
label: "Standalone",
|
|
1038
|
+
textColor: X.black,
|
|
1039
|
+
backgroundColor: X.gray
|
|
1040
|
+
},
|
|
1041
|
+
n === "checkbox" ? {
|
|
1042
|
+
label: "Checkbox",
|
|
1043
|
+
textColor: X.white,
|
|
1044
|
+
backgroundColor: X.blue
|
|
1045
|
+
} : void 0,
|
|
1046
|
+
n === "radio" ? {
|
|
1047
|
+
label: "Radio",
|
|
1048
|
+
textColor: X.white,
|
|
1049
|
+
backgroundColor: X.purple
|
|
1050
|
+
} : void 0,
|
|
1051
|
+
e ? {
|
|
1052
|
+
label: "Multiple",
|
|
1053
|
+
textColor: X.black,
|
|
1054
|
+
backgroundColor: X.orange
|
|
1055
|
+
} : void 0
|
|
1056
|
+
].filter(Boolean);
|
|
1057
|
+
}
|
|
1058
|
+
function Nt(e, t) {
|
|
1059
|
+
const n = t ? "path" in t ? "pathState" : "field" : "form", r = t ? "path" in t ? t == null ? void 0 : t.path : p(t == null ? void 0 : t.name) : "", i = { f: e == null ? void 0 : e.formId, ff: (t == null ? void 0 : t.id) || r, type: n };
|
|
1060
|
+
return btoa(encodeURIComponent(JSON.stringify(i)));
|
|
1061
|
+
}
|
|
1062
|
+
function Qi(e) {
|
|
1063
|
+
try {
|
|
1064
|
+
const t = JSON.parse(decodeURIComponent(atob(e))), n = Re[t.f];
|
|
1065
|
+
if (!n && t.ff) {
|
|
1066
|
+
const i = Ue[t.ff];
|
|
1067
|
+
return i ? {
|
|
1068
|
+
type: t.type,
|
|
1069
|
+
field: i
|
|
1070
|
+
} : {};
|
|
1071
|
+
}
|
|
1072
|
+
if (!n)
|
|
1073
|
+
return {};
|
|
1074
|
+
const r = n.getPathState(t.ff);
|
|
1075
|
+
return {
|
|
1076
|
+
type: t.type,
|
|
1077
|
+
form: n,
|
|
1078
|
+
state: r
|
|
1079
|
+
};
|
|
1080
|
+
} catch {
|
|
1081
|
+
}
|
|
1082
|
+
return {};
|
|
1083
|
+
}
|
|
1084
|
+
function nn(e) {
|
|
1085
|
+
return {
|
|
1086
|
+
"Field state": [
|
|
1087
|
+
{ key: "errors", value: e.errors },
|
|
1088
|
+
{
|
|
1089
|
+
key: "initialValue",
|
|
1090
|
+
value: e.initialValue
|
|
1091
|
+
},
|
|
1092
|
+
{
|
|
1093
|
+
key: "currentValue",
|
|
1094
|
+
value: e.value
|
|
1095
|
+
},
|
|
1096
|
+
{
|
|
1097
|
+
key: "touched",
|
|
1098
|
+
value: e.touched
|
|
1099
|
+
},
|
|
1100
|
+
{
|
|
1101
|
+
key: "dirty",
|
|
1102
|
+
value: e.dirty
|
|
1103
|
+
},
|
|
1104
|
+
{
|
|
1105
|
+
key: "valid",
|
|
1106
|
+
value: e.valid
|
|
1107
|
+
}
|
|
1108
|
+
]
|
|
1109
|
+
};
|
|
1110
|
+
}
|
|
1111
|
+
function eo(e) {
|
|
1112
|
+
const { errorBag: t, meta: n, values: r, isSubmitting: i, isValidating: o, submitCount: u } = e;
|
|
1113
|
+
return {
|
|
1114
|
+
"Form state": [
|
|
1115
|
+
{
|
|
1116
|
+
key: "submitCount",
|
|
1117
|
+
value: u.value
|
|
1118
|
+
},
|
|
1119
|
+
{
|
|
1120
|
+
key: "isSubmitting",
|
|
1121
|
+
value: i.value
|
|
1122
|
+
},
|
|
1123
|
+
{
|
|
1124
|
+
key: "isValidating",
|
|
1125
|
+
value: o.value
|
|
1126
|
+
},
|
|
1127
|
+
{
|
|
1128
|
+
key: "touched",
|
|
1129
|
+
value: n.value.touched
|
|
1130
|
+
},
|
|
1131
|
+
{
|
|
1132
|
+
key: "dirty",
|
|
1133
|
+
value: n.value.dirty
|
|
1134
|
+
},
|
|
1135
|
+
{
|
|
1136
|
+
key: "valid",
|
|
1137
|
+
value: n.value.valid
|
|
1138
|
+
},
|
|
1139
|
+
{
|
|
1140
|
+
key: "initialValues",
|
|
1141
|
+
value: n.value.initialValues
|
|
1142
|
+
},
|
|
1143
|
+
{
|
|
1144
|
+
key: "currentValues",
|
|
1145
|
+
value: r
|
|
1146
|
+
},
|
|
1147
|
+
{
|
|
1148
|
+
key: "errors",
|
|
1149
|
+
value: J(t.value).reduce((c, s) => {
|
|
1150
|
+
var d;
|
|
1151
|
+
const m = (d = t.value[s]) === null || d === void 0 ? void 0 : d[0];
|
|
1152
|
+
return m && (c[s] = m), c;
|
|
1153
|
+
}, {})
|
|
1154
|
+
}
|
|
1155
|
+
]
|
|
1156
|
+
};
|
|
1157
|
+
}
|
|
1158
|
+
function Fn(e) {
|
|
1159
|
+
return {
|
|
1160
|
+
bgColor: e ? X.success : X.error,
|
|
1161
|
+
textColor: e ? X.black : X.white
|
|
1162
|
+
};
|
|
1163
|
+
}
|
|
1164
|
+
function to(e, t, n) {
|
|
1165
|
+
return Vn(n == null ? void 0 : n.type) ? ro(e, t, n) : Pn(e, t, n);
|
|
1166
|
+
}
|
|
1167
|
+
function Pn(e, t, n) {
|
|
1168
|
+
const { initialValue: r, validateOnMount: i, bails: o, type: u, checkedValue: c, label: s, validateOnValueUpdate: d, uncheckedValue: m, controlled: g, keepValueOnUnmount: _, syncVModel: v, form: S } = no(n), U = g ? _n(Ct) : void 0, O = S || U, R = w(() => xe(p(e))), x = w(() => {
|
|
1169
|
+
if (p(O == null ? void 0 : O.schema))
|
|
1170
|
+
return;
|
|
1171
|
+
const $ = A(t);
|
|
1172
|
+
return nt($) || ue($) || K($) || Array.isArray($) ? $ : $n($);
|
|
1173
|
+
}), le = !K(x.value) && ue(p(t)), { id: te, value: E, initialValue: M, meta: F, setState: ne, errors: me, flags: Ae } = zi(R, {
|
|
1174
|
+
modelValue: r,
|
|
1175
|
+
form: O,
|
|
1176
|
+
bails: o,
|
|
1177
|
+
label: s,
|
|
1178
|
+
type: u,
|
|
1179
|
+
validate: x.value ? ge : void 0,
|
|
1180
|
+
schema: le ? t : void 0
|
|
1181
|
+
}), re = w(() => me.value[0]);
|
|
1182
|
+
v && io({
|
|
1183
|
+
value: E,
|
|
1184
|
+
prop: v,
|
|
1185
|
+
handleChange: D,
|
|
1186
|
+
shouldValidate: () => d && !Ae.pendingReset
|
|
1187
|
+
});
|
|
1188
|
+
const $e = (h, $ = !1) => {
|
|
1189
|
+
F.touched = !0, $ && ye();
|
|
1190
|
+
};
|
|
1191
|
+
async function ze(h) {
|
|
1192
|
+
var $, N;
|
|
1193
|
+
if (O != null && O.validateSchema) {
|
|
1194
|
+
const { results: I } = await O.validateSchema(h);
|
|
1195
|
+
return ($ = I[p(R)]) !== null && $ !== void 0 ? $ : { valid: !0, errors: [] };
|
|
1196
|
+
}
|
|
1197
|
+
return x.value ? En(E.value, x.value, {
|
|
1198
|
+
name: p(R),
|
|
1199
|
+
label: p(s),
|
|
1200
|
+
values: (N = O == null ? void 0 : O.values) !== null && N !== void 0 ? N : {},
|
|
1201
|
+
bails: o
|
|
1202
|
+
}) : { valid: !0, errors: [] };
|
|
1203
|
+
}
|
|
1204
|
+
const ye = Ot(async () => (F.pending = !0, F.validated = !0, ze("validated-only")), (h) => (Ae.pendingUnmount[z.id] || (ne({ errors: h.errors }), F.pending = !1, F.valid = h.valid), h)), de = Ot(async () => ze("silent"), (h) => (F.valid = h.valid, h));
|
|
1205
|
+
function ge(h) {
|
|
1206
|
+
return (h == null ? void 0 : h.mode) === "silent" ? de() : ye();
|
|
1207
|
+
}
|
|
1208
|
+
function D(h, $ = !0) {
|
|
1209
|
+
const N = rt(h);
|
|
1210
|
+
Fe(N, $);
|
|
1211
|
+
}
|
|
1212
|
+
ln(() => {
|
|
1213
|
+
if (i)
|
|
1214
|
+
return ye();
|
|
1215
|
+
(!O || !O.validateSchema) && de();
|
|
1216
|
+
});
|
|
1217
|
+
function at(h) {
|
|
1218
|
+
F.touched = h;
|
|
1219
|
+
}
|
|
1220
|
+
function he(h) {
|
|
1221
|
+
var $;
|
|
1222
|
+
const N = h && "value" in h ? h.value : M.value;
|
|
1223
|
+
ne({
|
|
1224
|
+
value: C(N),
|
|
1225
|
+
initialValue: C(N),
|
|
1226
|
+
touched: ($ = h == null ? void 0 : h.touched) !== null && $ !== void 0 ? $ : !1,
|
|
1227
|
+
errors: (h == null ? void 0 : h.errors) || []
|
|
1228
|
+
}), F.pending = !1, F.validated = !1, de();
|
|
1229
|
+
}
|
|
1230
|
+
const Ve = je();
|
|
1231
|
+
function Fe(h, $ = !0) {
|
|
1232
|
+
E.value = Ve && v ? Ei(h, Ve.props.modelModifiers) : h, ($ ? ye : de)();
|
|
1233
|
+
}
|
|
1234
|
+
function Le(h) {
|
|
1235
|
+
ne({ errors: Array.isArray(h) ? h : [h] });
|
|
1236
|
+
}
|
|
1237
|
+
const Pt = w({
|
|
1238
|
+
get() {
|
|
1239
|
+
return E.value;
|
|
1240
|
+
},
|
|
1241
|
+
set(h) {
|
|
1242
|
+
Fe(h, d);
|
|
1243
|
+
}
|
|
1244
|
+
}), z = {
|
|
1245
|
+
id: te,
|
|
1246
|
+
name: R,
|
|
1247
|
+
label: s,
|
|
1248
|
+
value: Pt,
|
|
1249
|
+
meta: F,
|
|
1250
|
+
errors: me,
|
|
1251
|
+
errorMessage: re,
|
|
1252
|
+
type: u,
|
|
1253
|
+
checkedValue: c,
|
|
1254
|
+
uncheckedValue: m,
|
|
1255
|
+
bails: o,
|
|
1256
|
+
keepValueOnUnmount: _,
|
|
1257
|
+
resetField: he,
|
|
1258
|
+
handleReset: () => he(),
|
|
1259
|
+
validate: ge,
|
|
1260
|
+
handleChange: D,
|
|
1261
|
+
handleBlur: $e,
|
|
1262
|
+
setState: ne,
|
|
1263
|
+
setTouched: at,
|
|
1264
|
+
setErrors: Le,
|
|
1265
|
+
setValue: Fe
|
|
1266
|
+
};
|
|
1267
|
+
if (At(Vi, z), tt(t) && typeof A(t) != "function" && G(t, (h, $) => {
|
|
1268
|
+
H(h, $) || (F.validated ? ye() : de());
|
|
1269
|
+
}, {
|
|
1270
|
+
deep: !0
|
|
1271
|
+
}), process.env.NODE_ENV !== "production" && (z._vm = je(), G(() => Object.assign(Object.assign({ errors: me.value }, F), { value: E.value }), Ne, {
|
|
1272
|
+
deep: !0
|
|
1273
|
+
}), O || Hi(z)), !O)
|
|
1274
|
+
return z;
|
|
1275
|
+
const lt = w(() => {
|
|
1276
|
+
const h = x.value;
|
|
1277
|
+
return !h || K(h) || nt(h) || ue(h) || Array.isArray(h) ? {} : Object.keys(h).reduce(($, N) => {
|
|
1278
|
+
const I = Pi(h[N]).map((fe) => fe.__locatorRef).reduce((fe, se) => {
|
|
1279
|
+
const ie = Q(O.values, se) || O.values[se];
|
|
1280
|
+
return ie !== void 0 && (fe[se] = ie), fe;
|
|
1281
|
+
}, {});
|
|
1282
|
+
return Object.assign($, I), $;
|
|
1283
|
+
}, {});
|
|
1284
|
+
});
|
|
1285
|
+
return G(lt, (h, $) => {
|
|
1286
|
+
if (!Object.keys(h).length)
|
|
1287
|
+
return;
|
|
1288
|
+
!H(h, $) && (F.validated ? ye() : de());
|
|
1289
|
+
}), ir(() => {
|
|
1290
|
+
var h;
|
|
1291
|
+
const $ = (h = p(z.keepValueOnUnmount)) !== null && h !== void 0 ? h : p(O.keepValuesOnUnmount), N = p(R);
|
|
1292
|
+
if ($ || !O || Ae.pendingUnmount[z.id]) {
|
|
1293
|
+
O == null || O.removePathState(N, te);
|
|
1294
|
+
return;
|
|
1295
|
+
}
|
|
1296
|
+
Ae.pendingUnmount[z.id] = !0;
|
|
1297
|
+
const I = O.getPathState(N);
|
|
1298
|
+
if (Array.isArray(I == null ? void 0 : I.id) && (I != null && I.multiple) ? I != null && I.id.includes(z.id) : (I == null ? void 0 : I.id) === z.id) {
|
|
1299
|
+
if (I != null && I.multiple && Array.isArray(I.value)) {
|
|
1300
|
+
const se = I.value.findIndex((ie) => H(ie, p(z.checkedValue)));
|
|
1301
|
+
if (se > -1) {
|
|
1302
|
+
const ie = [...I.value];
|
|
1303
|
+
ie.splice(se, 1), O.setFieldValue(N, ie);
|
|
1304
|
+
}
|
|
1305
|
+
Array.isArray(I.id) && I.id.splice(I.id.indexOf(z.id), 1);
|
|
1306
|
+
} else
|
|
1307
|
+
O.unsetPathValue(p(R));
|
|
1308
|
+
O.removePathState(N, te);
|
|
1309
|
+
}
|
|
1310
|
+
}), z;
|
|
1311
|
+
}
|
|
1312
|
+
function no(e) {
|
|
1313
|
+
const t = () => ({
|
|
1314
|
+
initialValue: void 0,
|
|
1315
|
+
validateOnMount: !1,
|
|
1316
|
+
bails: !0,
|
|
1317
|
+
label: void 0,
|
|
1318
|
+
validateOnValueUpdate: !0,
|
|
1319
|
+
keepValueOnUnmount: void 0,
|
|
1320
|
+
syncVModel: !1,
|
|
1321
|
+
controlled: !0
|
|
1322
|
+
}), n = !!(e != null && e.syncVModel), r = typeof (e == null ? void 0 : e.syncVModel) == "string" ? e.syncVModel : (e == null ? void 0 : e.modelPropName) || "modelValue", i = n && !("initialValue" in (e || {})) ? _t(je(), r) : e == null ? void 0 : e.initialValue;
|
|
1323
|
+
if (!e)
|
|
1324
|
+
return Object.assign(Object.assign({}, t()), { initialValue: i });
|
|
1325
|
+
const o = "valueProp" in e ? e.valueProp : e.checkedValue, u = "standalone" in e ? !e.standalone : e.controlled, c = (e == null ? void 0 : e.modelPropName) || (e == null ? void 0 : e.syncVModel) || !1;
|
|
1326
|
+
return Object.assign(Object.assign(Object.assign({}, t()), e || {}), {
|
|
1327
|
+
initialValue: i,
|
|
1328
|
+
controlled: u ?? !0,
|
|
1329
|
+
checkedValue: o,
|
|
1330
|
+
syncVModel: c
|
|
1331
|
+
});
|
|
1332
|
+
}
|
|
1333
|
+
function ro(e, t, n) {
|
|
1334
|
+
const r = n != null && n.standalone ? void 0 : _n(Ct), i = n == null ? void 0 : n.checkedValue, o = n == null ? void 0 : n.uncheckedValue;
|
|
1335
|
+
function u(c) {
|
|
1336
|
+
const s = c.handleChange, d = w(() => {
|
|
1337
|
+
const g = p(c.value), _ = p(i);
|
|
1338
|
+
return Array.isArray(g) ? g.findIndex((v) => H(v, _)) >= 0 : H(_, g);
|
|
1339
|
+
});
|
|
1340
|
+
function m(g, _ = !0) {
|
|
1341
|
+
var v, S;
|
|
1342
|
+
if (d.value === ((v = g == null ? void 0 : g.target) === null || v === void 0 ? void 0 : v.checked)) {
|
|
1343
|
+
_ && c.validate();
|
|
1344
|
+
return;
|
|
1345
|
+
}
|
|
1346
|
+
const U = p(e), O = r == null ? void 0 : r.getPathState(U), R = rt(g);
|
|
1347
|
+
let x = (S = p(i)) !== null && S !== void 0 ? S : R;
|
|
1348
|
+
r && (O != null && O.multiple) && O.type === "checkbox" ? x = Xt(Q(r.values, U) || [], x, void 0) : (n == null ? void 0 : n.type) === "checkbox" && (x = Xt(p(c.value), x, p(o))), s(x, _);
|
|
1349
|
+
}
|
|
1350
|
+
return Object.assign(Object.assign({}, c), {
|
|
1351
|
+
checked: d,
|
|
1352
|
+
checkedValue: i,
|
|
1353
|
+
uncheckedValue: o,
|
|
1354
|
+
handleChange: m
|
|
1355
|
+
});
|
|
1356
|
+
}
|
|
1357
|
+
return u(Pn(e, t, n));
|
|
1358
|
+
}
|
|
1359
|
+
function io({ prop: e, value: t, handleChange: n, shouldValidate: r }) {
|
|
1360
|
+
const i = je();
|
|
1361
|
+
if (!i || !e) {
|
|
1362
|
+
process.env.NODE_ENV !== "production" && console.warn("Failed to setup model events because `useField` was not called in setup.");
|
|
1363
|
+
return;
|
|
1364
|
+
}
|
|
1365
|
+
const o = typeof e == "string" ? e : "modelValue", u = `update:${o}`;
|
|
1366
|
+
o in i.props && (G(t, (c) => {
|
|
1367
|
+
H(c, _t(i, o)) || i.emit(u, c);
|
|
1368
|
+
}), G(() => _t(i, o), (c) => {
|
|
1369
|
+
if (c === Gt && t.value === void 0)
|
|
1370
|
+
return;
|
|
1371
|
+
const s = c === Gt ? void 0 : c;
|
|
1372
|
+
H(s, t.value) || n(s, r());
|
|
1373
|
+
}));
|
|
1374
|
+
}
|
|
1375
|
+
function _t(e, t) {
|
|
1376
|
+
if (e)
|
|
1377
|
+
return e.props[t];
|
|
1378
|
+
}
|
|
1379
|
+
let oo = 0;
|
|
1380
|
+
const Ke = ["bails", "fieldsCount", "id", "multiple", "type", "validate"];
|
|
1381
|
+
function Tn(e) {
|
|
1382
|
+
const t = (e == null ? void 0 : e.initialValues) || {}, n = Object.assign({}, p(t)), r = A(e == null ? void 0 : e.validationSchema);
|
|
1383
|
+
return r && ue(r) && K(r.cast) ? C(r.cast(n) || {}) : C(n);
|
|
1384
|
+
}
|
|
1385
|
+
function ao(e) {
|
|
1386
|
+
var t;
|
|
1387
|
+
const n = oo++, r = (e == null ? void 0 : e.name) || "Form";
|
|
1388
|
+
let i = 0;
|
|
1389
|
+
const o = ee(!1), u = ee(!1), c = ee(0), s = [], d = et(Tn(e)), m = ee([]), g = ee({}), _ = ee({}), v = wi(() => {
|
|
1390
|
+
_.value = m.value.reduce((l, a) => (l[xe(p(a.path))] = a, l), {});
|
|
1391
|
+
});
|
|
1392
|
+
function S(l, a) {
|
|
1393
|
+
const f = D(l);
|
|
1394
|
+
if (!f) {
|
|
1395
|
+
typeof l == "string" && (g.value[xe(l)] = St(a));
|
|
1396
|
+
return;
|
|
1397
|
+
}
|
|
1398
|
+
if (typeof l == "string") {
|
|
1399
|
+
const y = xe(l);
|
|
1400
|
+
g.value[y] && delete g.value[y];
|
|
1401
|
+
}
|
|
1402
|
+
f.errors = St(a), f.valid = !f.errors.length;
|
|
1403
|
+
}
|
|
1404
|
+
function U(l) {
|
|
1405
|
+
J(l).forEach((a) => {
|
|
1406
|
+
S(a, l[a]);
|
|
1407
|
+
});
|
|
1408
|
+
}
|
|
1409
|
+
e != null && e.initialErrors && U(e.initialErrors);
|
|
1410
|
+
const O = w(() => {
|
|
1411
|
+
const l = m.value.reduce((a, f) => (f.errors.length && (a[p(f.path)] = f.errors), a), {});
|
|
1412
|
+
return Object.assign(Object.assign({}, g.value), l);
|
|
1413
|
+
}), R = w(() => J(O.value).reduce((l, a) => {
|
|
1414
|
+
const f = O.value[a];
|
|
1415
|
+
return f != null && f.length && (l[a] = f[0]), l;
|
|
1416
|
+
}, {})), x = w(() => m.value.reduce((l, a) => (l[p(a.path)] = { name: p(a.path) || "", label: a.label || "" }, l), {})), le = w(() => m.value.reduce((l, a) => {
|
|
1417
|
+
var f;
|
|
1418
|
+
return l[p(a.path)] = (f = a.bails) !== null && f !== void 0 ? f : !0, l;
|
|
1419
|
+
}, {})), te = Object.assign({}, (e == null ? void 0 : e.initialErrors) || {}), E = (t = e == null ? void 0 : e.keepValuesOnUnmount) !== null && t !== void 0 ? t : !1, { initialValues: M, originalInitialValues: F, setInitialValues: ne } = uo(m, d, e), me = lo(m, d, F, R), Ae = w(() => m.value.reduce((l, a) => {
|
|
1420
|
+
const f = Q(d, p(a.path));
|
|
1421
|
+
return ce(l, p(a.path), f), l;
|
|
1422
|
+
}, {})), re = e == null ? void 0 : e.validationSchema;
|
|
1423
|
+
function $e(l, a) {
|
|
1424
|
+
var f, y;
|
|
1425
|
+
const V = w(() => Q(M.value, p(l))), j = _.value[p(l)], b = (a == null ? void 0 : a.type) === "checkbox" || (a == null ? void 0 : a.type) === "radio";
|
|
1426
|
+
if (j && b) {
|
|
1427
|
+
j.multiple = !0;
|
|
1428
|
+
const oe = i++;
|
|
1429
|
+
return Array.isArray(j.id) ? j.id.push(oe) : j.id = [j.id, oe], j.fieldsCount++, j.__flags.pendingUnmount[oe] = !1, j;
|
|
1430
|
+
}
|
|
1431
|
+
const T = w(() => Q(d, p(l))), Z = p(l), L = he.findIndex((oe) => oe === Z);
|
|
1432
|
+
L !== -1 && he.splice(L, 1);
|
|
1433
|
+
const P = w(() => {
|
|
1434
|
+
var oe, Pe, ft, vt;
|
|
1435
|
+
const mt = p(re);
|
|
1436
|
+
if (ue(mt))
|
|
1437
|
+
return (Pe = (oe = mt.describe) === null || oe === void 0 ? void 0 : oe.call(mt, p(l)).required) !== null && Pe !== void 0 ? Pe : !1;
|
|
1438
|
+
const yt = p(a == null ? void 0 : a.schema);
|
|
1439
|
+
return ue(yt) && (vt = (ft = yt.describe) === null || ft === void 0 ? void 0 : ft.call(yt).required) !== null && vt !== void 0 ? vt : !1;
|
|
1440
|
+
}), W = i++, Y = et({
|
|
1441
|
+
id: W,
|
|
1442
|
+
path: l,
|
|
1443
|
+
touched: !1,
|
|
1444
|
+
pending: !1,
|
|
1445
|
+
valid: !0,
|
|
1446
|
+
validated: !!(!((f = te[Z]) === null || f === void 0) && f.length),
|
|
1447
|
+
required: P,
|
|
1448
|
+
initialValue: V,
|
|
1449
|
+
errors: nr([]),
|
|
1450
|
+
bails: (y = a == null ? void 0 : a.bails) !== null && y !== void 0 ? y : !1,
|
|
1451
|
+
label: a == null ? void 0 : a.label,
|
|
1452
|
+
type: (a == null ? void 0 : a.type) || "default",
|
|
1453
|
+
value: T,
|
|
1454
|
+
multiple: !1,
|
|
1455
|
+
__flags: {
|
|
1456
|
+
pendingUnmount: { [W]: !1 },
|
|
1457
|
+
pendingReset: !1
|
|
1458
|
+
},
|
|
1459
|
+
fieldsCount: 1,
|
|
1460
|
+
validate: a == null ? void 0 : a.validate,
|
|
1461
|
+
dirty: w(() => !H(A(T), A(V)))
|
|
1462
|
+
});
|
|
1463
|
+
return m.value.push(Y), _.value[Z] = Y, v(), R.value[Z] && !te[Z] && q(() => {
|
|
1464
|
+
Oe(Z, { mode: "silent" });
|
|
1465
|
+
}), tt(l) && G(l, (oe) => {
|
|
1466
|
+
v();
|
|
1467
|
+
const Pe = C(T.value);
|
|
1468
|
+
_.value[oe] = Y, q(() => {
|
|
1469
|
+
ce(d, oe, Pe);
|
|
1470
|
+
});
|
|
1471
|
+
}), Y;
|
|
1472
|
+
}
|
|
1473
|
+
const ze = Qt(xt, 5), ye = Qt(xt, 5), de = Ot(async (l) => await (l === "silent" ? ze() : ye()), (l, [a]) => {
|
|
1474
|
+
const f = J($.errorBag.value), V = [
|
|
1475
|
+
.../* @__PURE__ */ new Set([...J(l.results), ...m.value.map((j) => j.path), ...f])
|
|
1476
|
+
].sort().reduce((j, b) => {
|
|
1477
|
+
var T;
|
|
1478
|
+
const Z = b, L = D(Z) || at(Z), P = ((T = l.results[Z]) === null || T === void 0 ? void 0 : T.errors) || [], W = p(L == null ? void 0 : L.path) || Z, Y = so({ errors: P, valid: !P.length }, j.results[W]);
|
|
1479
|
+
return j.results[W] = Y, Y.valid || (j.errors[W] = Y.errors[0]), L && g.value[W] && delete g.value[W], L ? (L.valid = Y.valid, a === "silent" || a === "validated-only" && !L.validated || S(L, Y.errors), j) : (S(W, P), j);
|
|
1480
|
+
}, {
|
|
1481
|
+
valid: l.valid,
|
|
1482
|
+
results: {},
|
|
1483
|
+
errors: {},
|
|
1484
|
+
source: l.source
|
|
1485
|
+
});
|
|
1486
|
+
return l.values && (V.values = l.values, V.source = l.source), J(V.results).forEach((j) => {
|
|
1487
|
+
var b;
|
|
1488
|
+
const T = D(j);
|
|
1489
|
+
T && a !== "silent" && (a === "validated-only" && !T.validated || S(T, (b = V.results[j]) === null || b === void 0 ? void 0 : b.errors));
|
|
1490
|
+
}), V;
|
|
1491
|
+
});
|
|
1492
|
+
function ge(l) {
|
|
1493
|
+
m.value.forEach(l);
|
|
1494
|
+
}
|
|
1495
|
+
function D(l) {
|
|
1496
|
+
const a = typeof l == "string" ? xe(l) : l;
|
|
1497
|
+
return typeof a == "string" ? _.value[a] : a;
|
|
1498
|
+
}
|
|
1499
|
+
function at(l) {
|
|
1500
|
+
return m.value.filter((f) => l.startsWith(p(f.path))).reduce((f, y) => f ? y.path.length > f.path.length ? y : f : y, void 0);
|
|
1501
|
+
}
|
|
1502
|
+
let he = [], Ve;
|
|
1503
|
+
function Fe(l) {
|
|
1504
|
+
return he.push(l), Ve || (Ve = q(() => {
|
|
1505
|
+
[...he].sort().reverse().forEach((f) => {
|
|
1506
|
+
Jt(d, f);
|
|
1507
|
+
}), he = [], Ve = null;
|
|
1508
|
+
})), Ve;
|
|
1509
|
+
}
|
|
1510
|
+
function Le(l) {
|
|
1511
|
+
return function(f, y) {
|
|
1512
|
+
return function(j) {
|
|
1513
|
+
return j instanceof Event && (j.preventDefault(), j.stopPropagation()), ge((b) => b.touched = !0), o.value = !0, c.value++, Ee().then((b) => {
|
|
1514
|
+
const T = C(d);
|
|
1515
|
+
if (b.valid && typeof f == "function") {
|
|
1516
|
+
const Z = C(Ae.value);
|
|
1517
|
+
let L = l ? Z : T;
|
|
1518
|
+
return b.values && (L = b.source === "schema" ? b.values : Object.assign({}, L, b.values)), f(L, {
|
|
1519
|
+
evt: j,
|
|
1520
|
+
controlledValues: Z,
|
|
1521
|
+
setErrors: U,
|
|
1522
|
+
setFieldError: S,
|
|
1523
|
+
setTouched: ut,
|
|
1524
|
+
setFieldTouched: ie,
|
|
1525
|
+
setValues: fe,
|
|
1526
|
+
setFieldValue: N,
|
|
1527
|
+
resetForm: st,
|
|
1528
|
+
resetField: Tt
|
|
1529
|
+
});
|
|
1530
|
+
}
|
|
1531
|
+
!b.valid && typeof y == "function" && y({
|
|
1532
|
+
values: T,
|
|
1533
|
+
evt: j,
|
|
1534
|
+
errors: b.errors,
|
|
1535
|
+
results: b.results
|
|
1536
|
+
});
|
|
1537
|
+
}).then((b) => (o.value = !1, b), (b) => {
|
|
1538
|
+
throw o.value = !1, b;
|
|
1539
|
+
});
|
|
1540
|
+
};
|
|
1541
|
+
};
|
|
1542
|
+
}
|
|
1543
|
+
const z = Le(!1);
|
|
1544
|
+
z.withControlled = Le(!0);
|
|
1545
|
+
function lt(l, a) {
|
|
1546
|
+
const f = m.value.findIndex((V) => V.path === l && (Array.isArray(V.id) ? V.id.includes(a) : V.id === a)), y = m.value[f];
|
|
1547
|
+
if (!(f === -1 || !y)) {
|
|
1548
|
+
if (q(() => {
|
|
1549
|
+
Oe(l, { mode: "silent", warn: !1 });
|
|
1550
|
+
}), y.multiple && y.fieldsCount && y.fieldsCount--, Array.isArray(y.id)) {
|
|
1551
|
+
const V = y.id.indexOf(a);
|
|
1552
|
+
V >= 0 && y.id.splice(V, 1), delete y.__flags.pendingUnmount[a];
|
|
1553
|
+
}
|
|
1554
|
+
(!y.multiple || y.fieldsCount <= 0) && (m.value.splice(f, 1), kt(l), v(), delete _.value[l]);
|
|
1555
|
+
}
|
|
1556
|
+
}
|
|
1557
|
+
function h(l) {
|
|
1558
|
+
J(_.value).forEach((a) => {
|
|
1559
|
+
a.startsWith(l) && delete _.value[a];
|
|
1560
|
+
}), m.value = m.value.filter((a) => !a.path.startsWith(l)), q(() => {
|
|
1561
|
+
v();
|
|
1562
|
+
});
|
|
1563
|
+
}
|
|
1564
|
+
const $ = {
|
|
1565
|
+
name: r,
|
|
1566
|
+
formId: n,
|
|
1567
|
+
values: d,
|
|
1568
|
+
controlledValues: Ae,
|
|
1569
|
+
errorBag: O,
|
|
1570
|
+
errors: R,
|
|
1571
|
+
schema: re,
|
|
1572
|
+
submitCount: c,
|
|
1573
|
+
meta: me,
|
|
1574
|
+
isSubmitting: o,
|
|
1575
|
+
isValidating: u,
|
|
1576
|
+
fieldArrays: s,
|
|
1577
|
+
keepValuesOnUnmount: E,
|
|
1578
|
+
validateSchema: A(re) ? de : void 0,
|
|
1579
|
+
validate: Ee,
|
|
1580
|
+
setFieldError: S,
|
|
1581
|
+
validateField: Oe,
|
|
1582
|
+
setFieldValue: N,
|
|
1583
|
+
setValues: fe,
|
|
1584
|
+
setErrors: U,
|
|
1585
|
+
setFieldTouched: ie,
|
|
1586
|
+
setTouched: ut,
|
|
1587
|
+
resetForm: st,
|
|
1588
|
+
resetField: Tt,
|
|
1589
|
+
handleSubmit: z,
|
|
1590
|
+
useFieldModel: Jn,
|
|
1591
|
+
defineInputBinds: Xn,
|
|
1592
|
+
defineComponentBinds: Qn,
|
|
1593
|
+
defineField: dt,
|
|
1594
|
+
stageInitialValue: Hn,
|
|
1595
|
+
unsetInitialValue: kt,
|
|
1596
|
+
setFieldInitialValue: ct,
|
|
1597
|
+
createPathState: $e,
|
|
1598
|
+
getPathState: D,
|
|
1599
|
+
unsetPathValue: Fe,
|
|
1600
|
+
removePathState: lt,
|
|
1601
|
+
initialValues: M,
|
|
1602
|
+
getAllPathStates: () => m.value,
|
|
1603
|
+
destroyPath: h,
|
|
1604
|
+
isFieldTouched: qn,
|
|
1605
|
+
isFieldDirty: Kn,
|
|
1606
|
+
isFieldValid: Gn
|
|
1607
|
+
};
|
|
1608
|
+
function N(l, a, f = !0) {
|
|
1609
|
+
const y = C(a), V = typeof l == "string" ? l : l.path;
|
|
1610
|
+
D(V) || $e(V), ce(d, V, y), f && Oe(V);
|
|
1611
|
+
}
|
|
1612
|
+
function I(l, a = !0) {
|
|
1613
|
+
J(d).forEach((f) => {
|
|
1614
|
+
delete d[f];
|
|
1615
|
+
}), J(l).forEach((f) => {
|
|
1616
|
+
N(f, l[f], !1);
|
|
1617
|
+
}), a && Ee();
|
|
1618
|
+
}
|
|
1619
|
+
function fe(l, a = !0) {
|
|
1620
|
+
De(d, l), s.forEach((f) => f && f.reset()), a && Ee();
|
|
1621
|
+
}
|
|
1622
|
+
function se(l, a) {
|
|
1623
|
+
const f = D(p(l)) || $e(l);
|
|
1624
|
+
return w({
|
|
1625
|
+
get() {
|
|
1626
|
+
return f.value;
|
|
1627
|
+
},
|
|
1628
|
+
set(y) {
|
|
1629
|
+
var V;
|
|
1630
|
+
const j = p(l);
|
|
1631
|
+
N(j, y, (V = p(a)) !== null && V !== void 0 ? V : !1);
|
|
1632
|
+
}
|
|
1633
|
+
});
|
|
1634
|
+
}
|
|
1635
|
+
function ie(l, a) {
|
|
1636
|
+
const f = D(l);
|
|
1637
|
+
f && (f.touched = a);
|
|
1638
|
+
}
|
|
1639
|
+
function qn(l) {
|
|
1640
|
+
const a = D(l);
|
|
1641
|
+
return a ? a.touched : m.value.filter((f) => f.path.startsWith(l)).some((f) => f.touched);
|
|
1642
|
+
}
|
|
1643
|
+
function Kn(l) {
|
|
1644
|
+
const a = D(l);
|
|
1645
|
+
return a ? a.dirty : m.value.filter((f) => f.path.startsWith(l)).some((f) => f.dirty);
|
|
1646
|
+
}
|
|
1647
|
+
function Gn(l) {
|
|
1648
|
+
const a = D(l);
|
|
1649
|
+
return a ? a.valid : m.value.filter((f) => f.path.startsWith(l)).every((f) => f.valid);
|
|
1650
|
+
}
|
|
1651
|
+
function ut(l) {
|
|
1652
|
+
if (typeof l == "boolean") {
|
|
1653
|
+
ge((a) => {
|
|
1654
|
+
a.touched = l;
|
|
1655
|
+
});
|
|
1656
|
+
return;
|
|
1657
|
+
}
|
|
1658
|
+
J(l).forEach((a) => {
|
|
1659
|
+
ie(a, !!l[a]);
|
|
1660
|
+
});
|
|
1661
|
+
}
|
|
1662
|
+
function Tt(l, a) {
|
|
1663
|
+
var f;
|
|
1664
|
+
const y = a && "value" in a ? a.value : Q(M.value, l), V = D(l);
|
|
1665
|
+
V && (V.__flags.pendingReset = !0), ct(l, C(y), !0), N(l, y, !1), ie(l, (f = a == null ? void 0 : a.touched) !== null && f !== void 0 ? f : !1), S(l, (a == null ? void 0 : a.errors) || []), q(() => {
|
|
1666
|
+
V && (V.__flags.pendingReset = !1);
|
|
1667
|
+
});
|
|
1668
|
+
}
|
|
1669
|
+
function st(l, a) {
|
|
1670
|
+
let f = C(l != null && l.values ? l.values : F.value);
|
|
1671
|
+
f = a != null && a.force ? f : De(F.value, f), f = ue(re) && K(re.cast) ? re.cast(f) : f, ne(f, { force: a == null ? void 0 : a.force }), ge((y) => {
|
|
1672
|
+
var V;
|
|
1673
|
+
y.__flags.pendingReset = !0, y.validated = !1, y.touched = ((V = l == null ? void 0 : l.touched) === null || V === void 0 ? void 0 : V[p(y.path)]) || !1, N(p(y.path), Q(f, p(y.path)), !1), S(p(y.path), void 0);
|
|
1674
|
+
}), a != null && a.force ? I(f, !1) : fe(f, !1), U((l == null ? void 0 : l.errors) || {}), c.value = (l == null ? void 0 : l.submitCount) || 0, q(() => {
|
|
1675
|
+
Ee({ mode: "silent" }), ge((y) => {
|
|
1676
|
+
y.__flags.pendingReset = !1;
|
|
1677
|
+
});
|
|
1678
|
+
});
|
|
1679
|
+
}
|
|
1680
|
+
async function Ee(l) {
|
|
1681
|
+
const a = (l == null ? void 0 : l.mode) || "force";
|
|
1682
|
+
if (a === "force" && ge((b) => b.validated = !0), $.validateSchema)
|
|
1683
|
+
return $.validateSchema(a);
|
|
1684
|
+
u.value = !0;
|
|
1685
|
+
const f = await Promise.all(m.value.map((b) => b.validate ? b.validate(l).then((T) => ({
|
|
1686
|
+
key: p(b.path),
|
|
1687
|
+
valid: T.valid,
|
|
1688
|
+
errors: T.errors,
|
|
1689
|
+
value: T.value
|
|
1690
|
+
})) : Promise.resolve({
|
|
1691
|
+
key: p(b.path),
|
|
1692
|
+
valid: !0,
|
|
1693
|
+
errors: [],
|
|
1694
|
+
value: void 0
|
|
1695
|
+
})));
|
|
1696
|
+
u.value = !1;
|
|
1697
|
+
const y = {}, V = {}, j = {};
|
|
1698
|
+
for (const b of f)
|
|
1699
|
+
y[b.key] = {
|
|
1700
|
+
valid: b.valid,
|
|
1701
|
+
errors: b.errors
|
|
1702
|
+
}, b.value && ce(j, b.key, b.value), b.errors.length && (V[b.key] = b.errors[0]);
|
|
1703
|
+
return {
|
|
1704
|
+
valid: f.every((b) => b.valid),
|
|
1705
|
+
results: y,
|
|
1706
|
+
errors: V,
|
|
1707
|
+
values: j,
|
|
1708
|
+
source: "fields"
|
|
1709
|
+
};
|
|
1710
|
+
}
|
|
1711
|
+
async function Oe(l, a) {
|
|
1712
|
+
var f;
|
|
1713
|
+
const y = D(l);
|
|
1714
|
+
if (y && (a == null ? void 0 : a.mode) !== "silent" && (y.validated = !0), re) {
|
|
1715
|
+
const { results: j } = await de((a == null ? void 0 : a.mode) || "validated-only");
|
|
1716
|
+
return j[l] || { errors: [], valid: !0 };
|
|
1717
|
+
}
|
|
1718
|
+
return y != null && y.validate ? y.validate(a) : (!y && ((f = a == null ? void 0 : a.warn) !== null && f !== void 0 ? f : !0) && process.env.NODE_ENV !== "production" && rr(`field with path ${l} was not found`), Promise.resolve({ errors: [], valid: !0 }));
|
|
1719
|
+
}
|
|
1720
|
+
function kt(l) {
|
|
1721
|
+
Jt(M.value, l);
|
|
1722
|
+
}
|
|
1723
|
+
function Hn(l, a, f = !1) {
|
|
1724
|
+
ct(l, a), ce(d, l, a), f && !(e != null && e.initialValues) && ce(F.value, l, C(a));
|
|
1725
|
+
}
|
|
1726
|
+
function ct(l, a, f = !1) {
|
|
1727
|
+
ce(M.value, l, C(a)), f && ce(F.value, l, C(a));
|
|
1728
|
+
}
|
|
1729
|
+
async function xt() {
|
|
1730
|
+
const l = A(re);
|
|
1731
|
+
if (!l)
|
|
1732
|
+
return { valid: !0, results: {}, errors: {}, source: "none" };
|
|
1733
|
+
u.value = !0;
|
|
1734
|
+
const a = nt(l) || ue(l) ? await Mi(l, d) : await Di(l, d, {
|
|
1735
|
+
names: x.value,
|
|
1736
|
+
bailsMap: le.value
|
|
1737
|
+
});
|
|
1738
|
+
return u.value = !1, a;
|
|
1739
|
+
}
|
|
1740
|
+
const Yn = z((l, { evt: a }) => {
|
|
1741
|
+
ji(a) && a.target.submit();
|
|
1742
|
+
});
|
|
1743
|
+
ln(() => {
|
|
1744
|
+
if (e != null && e.initialErrors && U(e.initialErrors), e != null && e.initialTouched && ut(e.initialTouched), e != null && e.validateOnMount) {
|
|
1745
|
+
Ee();
|
|
1746
|
+
return;
|
|
1747
|
+
}
|
|
1748
|
+
$.validateSchema && $.validateSchema("silent");
|
|
1749
|
+
}), tt(re) && G(re, () => {
|
|
1750
|
+
var l;
|
|
1751
|
+
(l = $.validateSchema) === null || l === void 0 || l.call($, "validated-only");
|
|
1752
|
+
}), At(Ct, $), process.env.NODE_ENV !== "production" && (Gi($), G(() => Object.assign(Object.assign({ errors: O.value }, me.value), { values: d, isSubmitting: o.value, isValidating: u.value, submitCount: c.value }), Ne, {
|
|
1753
|
+
deep: !0
|
|
1754
|
+
}));
|
|
1755
|
+
function dt(l, a) {
|
|
1756
|
+
const f = K(a) || a == null ? void 0 : a.label, y = D(p(l)) || $e(l, { label: f }), V = () => K(a) ? a(qe(y, Ke)) : a || {};
|
|
1757
|
+
function j() {
|
|
1758
|
+
var P;
|
|
1759
|
+
y.touched = !0, ((P = V().validateOnBlur) !== null && P !== void 0 ? P : Ze().validateOnBlur) && Oe(p(y.path));
|
|
1760
|
+
}
|
|
1761
|
+
function b() {
|
|
1762
|
+
var P;
|
|
1763
|
+
((P = V().validateOnInput) !== null && P !== void 0 ? P : Ze().validateOnInput) && q(() => {
|
|
1764
|
+
Oe(p(y.path));
|
|
1765
|
+
});
|
|
1766
|
+
}
|
|
1767
|
+
function T() {
|
|
1768
|
+
var P;
|
|
1769
|
+
((P = V().validateOnChange) !== null && P !== void 0 ? P : Ze().validateOnChange) && q(() => {
|
|
1770
|
+
Oe(p(y.path));
|
|
1771
|
+
});
|
|
1772
|
+
}
|
|
1773
|
+
const Z = w(() => {
|
|
1774
|
+
const P = {
|
|
1775
|
+
onChange: T,
|
|
1776
|
+
onInput: b,
|
|
1777
|
+
onBlur: j
|
|
1778
|
+
};
|
|
1779
|
+
return K(a) ? Object.assign(Object.assign({}, P), a(qe(y, Ke)).props || {}) : a != null && a.props ? Object.assign(Object.assign({}, P), a.props(qe(y, Ke))) : P;
|
|
1780
|
+
});
|
|
1781
|
+
return [se(l, () => {
|
|
1782
|
+
var P, W, Y;
|
|
1783
|
+
return (Y = (P = V().validateOnModelUpdate) !== null && P !== void 0 ? P : (W = Ze()) === null || W === void 0 ? void 0 : W.validateOnModelUpdate) !== null && Y !== void 0 ? Y : !0;
|
|
1784
|
+
}), Z];
|
|
1785
|
+
}
|
|
1786
|
+
function Jn(l) {
|
|
1787
|
+
return Array.isArray(l) ? l.map((a) => se(a, !0)) : se(l);
|
|
1788
|
+
}
|
|
1789
|
+
function Xn(l, a) {
|
|
1790
|
+
const [f, y] = dt(l, a);
|
|
1791
|
+
function V() {
|
|
1792
|
+
y.value.onBlur();
|
|
1793
|
+
}
|
|
1794
|
+
function j(T) {
|
|
1795
|
+
const Z = rt(T);
|
|
1796
|
+
N(p(l), Z, !1), y.value.onInput();
|
|
1797
|
+
}
|
|
1798
|
+
function b(T) {
|
|
1799
|
+
const Z = rt(T);
|
|
1800
|
+
N(p(l), Z, !1), y.value.onChange();
|
|
1801
|
+
}
|
|
1802
|
+
return w(() => Object.assign(Object.assign({}, y.value), {
|
|
1803
|
+
onBlur: V,
|
|
1804
|
+
onInput: j,
|
|
1805
|
+
onChange: b,
|
|
1806
|
+
value: f.value
|
|
1807
|
+
}));
|
|
1808
|
+
}
|
|
1809
|
+
function Qn(l, a) {
|
|
1810
|
+
const [f, y] = dt(l, a), V = D(p(l));
|
|
1811
|
+
function j(b) {
|
|
1812
|
+
f.value = b;
|
|
1813
|
+
}
|
|
1814
|
+
return w(() => {
|
|
1815
|
+
const b = K(a) ? a(qe(V, Ke)) : a || {};
|
|
1816
|
+
return Object.assign({ [b.model || "modelValue"]: f.value, [`onUpdate:${b.model || "modelValue"}`]: j }, y.value);
|
|
1817
|
+
});
|
|
1818
|
+
}
|
|
1819
|
+
const Zt = Object.assign(Object.assign({}, $), { values: er(d), handleReset: () => st(), submitForm: Yn });
|
|
1820
|
+
return At(Ai, Zt), Zt;
|
|
1821
|
+
}
|
|
1822
|
+
function lo(e, t, n, r) {
|
|
1823
|
+
const i = {
|
|
1824
|
+
touched: "some",
|
|
1825
|
+
pending: "some",
|
|
1826
|
+
valid: "every"
|
|
1827
|
+
}, o = w(() => !H(t, A(n)));
|
|
1828
|
+
function u() {
|
|
1829
|
+
const s = e.value;
|
|
1830
|
+
return J(i).reduce((d, m) => {
|
|
1831
|
+
const g = i[m];
|
|
1832
|
+
return d[m] = s[g]((_) => _[m]), d;
|
|
1833
|
+
}, {});
|
|
1834
|
+
}
|
|
1835
|
+
const c = et(u());
|
|
1836
|
+
return tr(() => {
|
|
1837
|
+
const s = u();
|
|
1838
|
+
c.touched = s.touched, c.valid = s.valid, c.pending = s.pending;
|
|
1839
|
+
}), w(() => Object.assign(Object.assign({ initialValues: A(n) }, c), { valid: c.valid && !J(r.value).length, dirty: o.value }));
|
|
1840
|
+
}
|
|
1841
|
+
function uo(e, t, n) {
|
|
1842
|
+
const r = Tn(n), i = ee(r), o = ee(C(r));
|
|
1843
|
+
function u(c, s) {
|
|
1844
|
+
s != null && s.force ? (i.value = C(c), o.value = C(c)) : (i.value = De(C(i.value) || {}, C(c)), o.value = De(C(o.value) || {}, C(c))), s != null && s.updateFields && e.value.forEach((d) => {
|
|
1845
|
+
if (d.touched)
|
|
1846
|
+
return;
|
|
1847
|
+
const g = Q(i.value, p(d.path));
|
|
1848
|
+
ce(t, p(d.path), C(g));
|
|
1849
|
+
});
|
|
1850
|
+
}
|
|
1851
|
+
return {
|
|
1852
|
+
initialValues: i,
|
|
1853
|
+
originalInitialValues: o,
|
|
1854
|
+
setInitialValues: u
|
|
1855
|
+
};
|
|
1856
|
+
}
|
|
1857
|
+
function so(e, t) {
|
|
1858
|
+
return t ? {
|
|
1859
|
+
valid: e.valid && t.valid,
|
|
1860
|
+
errors: [...e.errors, ...t.errors]
|
|
1861
|
+
} : e;
|
|
1862
|
+
}
|
|
1863
|
+
const jt = vn("form"), Ho = /* @__PURE__ */ $t({
|
|
1864
|
+
...Et("Form"),
|
|
1865
|
+
__name: "Form",
|
|
1866
|
+
props: {
|
|
1867
|
+
validationSchema: {},
|
|
1868
|
+
modelValue: {},
|
|
1869
|
+
class: {},
|
|
1870
|
+
size: {},
|
|
1871
|
+
disabled: { type: Boolean },
|
|
1872
|
+
initialValues: {},
|
|
1873
|
+
initialErrors: {},
|
|
1874
|
+
initialTouched: {},
|
|
1875
|
+
validateOnMount: { type: Boolean },
|
|
1876
|
+
keepValuesOnUnmount: {},
|
|
1877
|
+
name: {}
|
|
1878
|
+
},
|
|
1879
|
+
emits: ["update:modelValue", "submit", "validationFail"],
|
|
1880
|
+
setup(e, { expose: t, emit: n }) {
|
|
1881
|
+
const r = e, i = n, o = ee({});
|
|
1882
|
+
G(
|
|
1883
|
+
() => r.validationSchema,
|
|
1884
|
+
(v) => {
|
|
1885
|
+
Ie(v) ? o.value = A(v) : o.value = {};
|
|
1886
|
+
},
|
|
1887
|
+
{
|
|
1888
|
+
immediate: !0,
|
|
1889
|
+
deep: !0
|
|
1890
|
+
}
|
|
1891
|
+
);
|
|
1892
|
+
const u = ao({
|
|
1893
|
+
...r,
|
|
1894
|
+
name: r.name ?? mn(jt),
|
|
1895
|
+
initialValues: we(r.modelValue ?? r.initialValues ?? {}),
|
|
1896
|
+
validationSchema: o
|
|
1897
|
+
}), c = ee(!1), s = (v = !0) => {
|
|
1898
|
+
const S = we(r.modelValue);
|
|
1899
|
+
if (!S || !Ie(S)) return;
|
|
1900
|
+
const U = (O, R = "") => {
|
|
1901
|
+
for (const x in O)
|
|
1902
|
+
if (O.hasOwnProperty(x)) {
|
|
1903
|
+
const le = O[x], te = R ? `${R}.${x}` : x;
|
|
1904
|
+
if (Ie(le) && !Array.isArray(le))
|
|
1905
|
+
U(le, te);
|
|
1906
|
+
else {
|
|
1907
|
+
const E = Ut(u.values, te);
|
|
1908
|
+
Ar(E, le) || u.setFieldValue(te, le, v);
|
|
1909
|
+
}
|
|
1910
|
+
}
|
|
1911
|
+
};
|
|
1912
|
+
U(S);
|
|
1913
|
+
};
|
|
1914
|
+
G(
|
|
1915
|
+
() => r.modelValue,
|
|
1916
|
+
() => {
|
|
1917
|
+
c.value || (c.value = !0, s(), q(() => c.value = !1));
|
|
1918
|
+
},
|
|
1919
|
+
{ deep: !0 }
|
|
1920
|
+
), G(
|
|
1921
|
+
u.values,
|
|
1922
|
+
(v) => {
|
|
1923
|
+
!c.value && v !== r.modelValue && (c.value = !0, i("update:modelValue", we(v)), q(() => c.value = !1));
|
|
1924
|
+
},
|
|
1925
|
+
{ deep: !0 }
|
|
1926
|
+
);
|
|
1927
|
+
const d = (v) => (v == null ? void 0 : v.__type) === "VVTypedSchema" || (v == null ? void 0 : v.__isYupSchema__), m = (v) => {
|
|
1928
|
+
if (v)
|
|
1929
|
+
return d(o.value) ? void 0 : Ut(we(o.value ?? {}), v);
|
|
1930
|
+
}, g = (v, S) => {
|
|
1931
|
+
if (S && v) {
|
|
1932
|
+
if (d(o.value)) {
|
|
1933
|
+
console.warn("Con not set field validation on typedSchema (validationSchema is typedSchema)");
|
|
1934
|
+
return;
|
|
1935
|
+
}
|
|
1936
|
+
Ie(o.value) || (o.value = {}), di(o.value, v, A(S));
|
|
1937
|
+
}
|
|
1938
|
+
}, _ = () => {
|
|
1939
|
+
u.handleSubmit(
|
|
1940
|
+
() => {
|
|
1941
|
+
i("submit", we(A(u.values) ?? {}));
|
|
1942
|
+
},
|
|
1943
|
+
(v) => {
|
|
1944
|
+
console.error("validation Failed ===>", v), i("validationFail", v);
|
|
1945
|
+
}
|
|
1946
|
+
)();
|
|
1947
|
+
};
|
|
1948
|
+
return yr({
|
|
1949
|
+
props: r,
|
|
1950
|
+
form: u,
|
|
1951
|
+
validationSchema: o,
|
|
1952
|
+
isFormModelUpdating: c,
|
|
1953
|
+
getFieldValidation: m,
|
|
1954
|
+
setFieldValidation: g
|
|
1955
|
+
}), t(u), (v, S) => (pe(), Se("form", {
|
|
1956
|
+
class: _e(A(Ce)(A(jt), r.class)),
|
|
1957
|
+
onSubmit: ar(_, ["prevent"])
|
|
1958
|
+
}, [
|
|
1959
|
+
Te(v.$slots, "default", Xe(Qe(A(u))))
|
|
1960
|
+
], 34));
|
|
1961
|
+
}
|
|
1962
|
+
});
|
|
1963
|
+
/**
|
|
1964
|
+
* vee-validate v4.15.1
|
|
1965
|
+
* (c) 2025 Abdelrahman Awad
|
|
1966
|
+
* @license MIT
|
|
1967
|
+
*/
|
|
1968
|
+
const Ge = {
|
|
1969
|
+
en: /^[A-Z]*$/i,
|
|
1970
|
+
cs: /^[A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]*$/i,
|
|
1971
|
+
da: /^[A-ZÆØÅ]*$/i,
|
|
1972
|
+
de: /^[A-ZÄÖÜß]*$/i,
|
|
1973
|
+
es: /^[A-ZÁÉÍÑÓÚÜ]*$/i,
|
|
1974
|
+
fr: /^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]*$/i,
|
|
1975
|
+
it: /^[A-Z\xC0-\xFF]*$/i,
|
|
1976
|
+
lt: /^[A-ZĄČĘĖĮŠŲŪŽ]*$/i,
|
|
1977
|
+
nl: /^[A-ZÉËÏÓÖÜ]*$/i,
|
|
1978
|
+
hu: /^[A-ZÁÉÍÓÖŐÚÜŰ]*$/i,
|
|
1979
|
+
pl: /^[A-ZĄĆĘŚŁŃÓŻŹ]*$/i,
|
|
1980
|
+
pt: /^[A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ]*$/i,
|
|
1981
|
+
ru: /^[А-ЯЁ]*$/i,
|
|
1982
|
+
kz: /^[А-ЯЁ\u04D8\u04B0\u0406\u04A2\u0492\u04AE\u049A\u04E8\u04BA]*$/i,
|
|
1983
|
+
sk: /^[A-ZÁÄČĎÉÍĹĽŇÓŔŠŤÚÝŽ]*$/i,
|
|
1984
|
+
sr: /^[A-ZČĆŽŠĐ]*$/i,
|
|
1985
|
+
sv: /^[A-ZÅÄÖ]*$/i,
|
|
1986
|
+
tr: /^[A-ZÇĞİıÖŞÜ]*$/i,
|
|
1987
|
+
uk: /^[А-ЩЬЮЯЄІЇҐ]*$/i,
|
|
1988
|
+
ar: /^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]*$/,
|
|
1989
|
+
az: /^[A-ZÇƏĞİıÖŞÜ]*$/i,
|
|
1990
|
+
ug: /^[A-Zچۋېرتيۇڭوپھسداەىقكلزشغۈبنمژفگخجۆئ]*$/i
|
|
1991
|
+
}, He = {
|
|
1992
|
+
en: /^[A-Z\s]*$/i,
|
|
1993
|
+
cs: /^[A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ\s]*$/i,
|
|
1994
|
+
da: /^[A-ZÆØÅ\s]*$/i,
|
|
1995
|
+
de: /^[A-ZÄÖÜß\s]*$/i,
|
|
1996
|
+
es: /^[A-ZÁÉÍÑÓÚÜ\s]*$/i,
|
|
1997
|
+
fr: /^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ\s]*$/i,
|
|
1998
|
+
it: /^[A-Z\xC0-\xFF\s]*$/i,
|
|
1999
|
+
lt: /^[A-ZĄČĘĖĮŠŲŪŽ\s]*$/i,
|
|
2000
|
+
nl: /^[A-ZÉËÏÓÖÜ\s]*$/i,
|
|
2001
|
+
hu: /^[A-ZÁÉÍÓÖŐÚÜŰ\s]*$/i,
|
|
2002
|
+
pl: /^[A-ZĄĆĘŚŁŃÓŻŹ\s]*$/i,
|
|
2003
|
+
pt: /^[A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ\s]*$/i,
|
|
2004
|
+
ru: /^[А-ЯЁ\s]*$/i,
|
|
2005
|
+
kz: /^[А-ЯЁ\u04D8\u04B0\u0406\u04A2\u0492\u04AE\u049A\u04E8\u04BA\s]*$/i,
|
|
2006
|
+
sk: /^[A-ZÁÄČĎÉÍĹĽŇÓŔŠŤÚÝŽ\s]*$/i,
|
|
2007
|
+
sr: /^[A-ZČĆŽŠĐ\s]*$/i,
|
|
2008
|
+
sv: /^[A-ZÅÄÖ\s]*$/i,
|
|
2009
|
+
tr: /^[A-ZÇĞİıÖŞÜ\s]*$/i,
|
|
2010
|
+
uk: /^[А-ЩЬЮЯЄІЇҐ\s]*$/i,
|
|
2011
|
+
ar: /^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ\s]*$/,
|
|
2012
|
+
az: /^[A-ZÇƏĞİıÖŞÜ\s]*$/i,
|
|
2013
|
+
ug: /^[A-Zچۋېرتيۇڭوپھسداەىقكلزشغۈبنمژفگخجۆئ\s]*$/i
|
|
2014
|
+
}, Ye = {
|
|
2015
|
+
en: /^[0-9A-Z]*$/i,
|
|
2016
|
+
cs: /^[0-9A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]*$/i,
|
|
2017
|
+
da: /^[0-9A-ZÆØÅ]$/i,
|
|
2018
|
+
de: /^[0-9A-ZÄÖÜß]*$/i,
|
|
2019
|
+
es: /^[0-9A-ZÁÉÍÑÓÚÜ]*$/i,
|
|
2020
|
+
fr: /^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]*$/i,
|
|
2021
|
+
it: /^[0-9A-Z\xC0-\xFF]*$/i,
|
|
2022
|
+
lt: /^[0-9A-ZĄČĘĖĮŠŲŪŽ]*$/i,
|
|
2023
|
+
hu: /^[0-9A-ZÁÉÍÓÖŐÚÜŰ]*$/i,
|
|
2024
|
+
nl: /^[0-9A-ZÉËÏÓÖÜ]*$/i,
|
|
2025
|
+
pl: /^[0-9A-ZĄĆĘŚŁŃÓŻŹ]*$/i,
|
|
2026
|
+
pt: /^[0-9A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ]*$/i,
|
|
2027
|
+
ru: /^[0-9А-ЯЁ]*$/i,
|
|
2028
|
+
kz: /^[0-9А-ЯЁ\u04D8\u04B0\u0406\u04A2\u0492\u04AE\u049A\u04E8\u04BA]*$/i,
|
|
2029
|
+
sk: /^[0-9A-ZÁÄČĎÉÍĹĽŇÓŔŠŤÚÝŽ]*$/i,
|
|
2030
|
+
sr: /^[0-9A-ZČĆŽŠĐ]*$/i,
|
|
2031
|
+
sv: /^[0-9A-ZÅÄÖ]*$/i,
|
|
2032
|
+
tr: /^[0-9A-ZÇĞİıÖŞÜ]*$/i,
|
|
2033
|
+
uk: /^[0-9А-ЩЬЮЯЄІЇҐ]*$/i,
|
|
2034
|
+
ar: /^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]*$/,
|
|
2035
|
+
az: /^[0-9A-ZÇƏĞİıÖŞÜ]*$/i,
|
|
2036
|
+
ug: /^[0-9A-Zچۋېرتيۇڭوپھسداەىقكلزشغۈبنمژفگخجۆئ]*$/i
|
|
2037
|
+
}, Je = {
|
|
2038
|
+
en: /^[0-9A-Z_-]*$/i,
|
|
2039
|
+
cs: /^[0-9A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ_-]*$/i,
|
|
2040
|
+
da: /^[0-9A-ZÆØÅ_-]*$/i,
|
|
2041
|
+
de: /^[0-9A-ZÄÖÜß_-]*$/i,
|
|
2042
|
+
es: /^[0-9A-ZÁÉÍÑÓÚÜ_-]*$/i,
|
|
2043
|
+
fr: /^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ_-]*$/i,
|
|
2044
|
+
it: /^[0-9A-Z\xC0-\xFF_-]*$/i,
|
|
2045
|
+
lt: /^[0-9A-ZĄČĘĖĮŠŲŪŽ_-]*$/i,
|
|
2046
|
+
nl: /^[0-9A-ZÉËÏÓÖÜ_-]*$/i,
|
|
2047
|
+
hu: /^[0-9A-ZÁÉÍÓÖŐÚÜŰ_-]*$/i,
|
|
2048
|
+
pl: /^[0-9A-ZĄĆĘŚŁŃÓŻŹ_-]*$/i,
|
|
2049
|
+
pt: /^[0-9A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ_-]*$/i,
|
|
2050
|
+
ru: /^[0-9А-ЯЁ_-]*$/i,
|
|
2051
|
+
kz: /^[0-9А-ЯЁ\u04D8\u04B0\u0406\u04A2\u0492\u04AE\u049A\u04E8\u04BA_-]*$/i,
|
|
2052
|
+
sk: /^[0-9A-ZÁÄČĎÉÍĹĽŇÓŔŠŤÚÝŽ_-]*$/i,
|
|
2053
|
+
sr: /^[0-9A-ZČĆŽŠĐ_-]*$/i,
|
|
2054
|
+
sv: /^[0-9A-ZÅÄÖ_-]*$/i,
|
|
2055
|
+
tr: /^[0-9A-ZÇĞİıÖŞÜ_-]*$/i,
|
|
2056
|
+
uk: /^[0-9А-ЩЬЮЯЄІЇҐ_-]*$/i,
|
|
2057
|
+
ar: /^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ_-]*$/,
|
|
2058
|
+
az: /^[0-9A-ZÇƏĞİıÖŞÜ_-]*$/i,
|
|
2059
|
+
ug: /^[0-9A-Zچۋېرتيۇڭوپھسداەىقكلزشغۈبنمژفگخجۆئ_-]*$/i
|
|
2060
|
+
}, ot = (e) => {
|
|
2061
|
+
if (e)
|
|
2062
|
+
return Array.isArray(e) ? e[0] : e.locale;
|
|
2063
|
+
};
|
|
2064
|
+
function ae(e, t) {
|
|
2065
|
+
return Array.isArray(e) ? e[0] : e[t];
|
|
2066
|
+
}
|
|
2067
|
+
function k(e) {
|
|
2068
|
+
return !!(e == null || e === "" || Array.isArray(e) && e.length === 0);
|
|
2069
|
+
}
|
|
2070
|
+
const kn = (e, t) => {
|
|
2071
|
+
if (k(e))
|
|
2072
|
+
return !0;
|
|
2073
|
+
const n = ot(t);
|
|
2074
|
+
if (Array.isArray(e))
|
|
2075
|
+
return e.every((i) => kn(i, { locale: n }));
|
|
2076
|
+
const r = String(e);
|
|
2077
|
+
return n ? (Ge[n] || Ge.en).test(r) : Object.keys(Ge).some((i) => Ge[i].test(r));
|
|
2078
|
+
}, xn = (e, t) => {
|
|
2079
|
+
if (k(e))
|
|
2080
|
+
return !0;
|
|
2081
|
+
const n = ot(t);
|
|
2082
|
+
if (Array.isArray(e))
|
|
2083
|
+
return e.every((i) => xn(i, { locale: n }));
|
|
2084
|
+
const r = String(e);
|
|
2085
|
+
return n ? (Je[n] || Je.en).test(r) : Object.keys(Je).some((i) => Je[i].test(r));
|
|
2086
|
+
}, Zn = (e, t) => {
|
|
2087
|
+
if (k(e))
|
|
2088
|
+
return !0;
|
|
2089
|
+
const n = ot(t);
|
|
2090
|
+
if (Array.isArray(e))
|
|
2091
|
+
return e.every((i) => Zn(i, { locale: n }));
|
|
2092
|
+
const r = String(e);
|
|
2093
|
+
return n ? (Ye[n] || Ye.en).test(r) : Object.keys(Ye).some((i) => Ye[i].test(r));
|
|
2094
|
+
}, Bn = (e, t) => {
|
|
2095
|
+
if (k(e))
|
|
2096
|
+
return !0;
|
|
2097
|
+
const n = ot(t);
|
|
2098
|
+
if (Array.isArray(e))
|
|
2099
|
+
return e.every((i) => Bn(i, { locale: n }));
|
|
2100
|
+
const r = String(e);
|
|
2101
|
+
return n ? (He[n] || He.en).test(r) : Object.keys(He).some((i) => He[i].test(r));
|
|
2102
|
+
};
|
|
2103
|
+
function co(e) {
|
|
2104
|
+
return Array.isArray(e) ? { min: e[0], max: e[1] } : e;
|
|
2105
|
+
}
|
|
2106
|
+
const Rn = (e, t) => {
|
|
2107
|
+
if (k(e))
|
|
2108
|
+
return !0;
|
|
2109
|
+
const { min: n, max: r } = co(t);
|
|
2110
|
+
if (Array.isArray(e))
|
|
2111
|
+
return e.every((o) => Rn(o, { min: n, max: r }));
|
|
2112
|
+
const i = Number(e);
|
|
2113
|
+
return Number(n) <= i && Number(r) >= i;
|
|
2114
|
+
}, fo = (e, t) => {
|
|
2115
|
+
const n = ae(t, "target");
|
|
2116
|
+
return String(e) === String(n);
|
|
2117
|
+
}, Un = (e, t) => {
|
|
2118
|
+
if (k(e))
|
|
2119
|
+
return !0;
|
|
2120
|
+
const n = ae(t, "length");
|
|
2121
|
+
if (Array.isArray(e))
|
|
2122
|
+
return e.every((i) => Un(i, { length: n }));
|
|
2123
|
+
const r = String(e);
|
|
2124
|
+
return /^[0-9]*$/.test(r) && r.length === Number(n);
|
|
2125
|
+
}, vo = (e, t, n) => {
|
|
2126
|
+
const r = window.URL || window.webkitURL;
|
|
2127
|
+
return new Promise((i) => {
|
|
2128
|
+
const o = new Image();
|
|
2129
|
+
o.onerror = () => i(!1), o.onload = () => i(o.width === t && o.height === n), o.src = r.createObjectURL(e);
|
|
2130
|
+
});
|
|
2131
|
+
};
|
|
2132
|
+
function mo(e) {
|
|
2133
|
+
return e ? Array.isArray(e) ? { width: Number(e[0]), height: Number(e[1]) } : {
|
|
2134
|
+
width: Number(e.width),
|
|
2135
|
+
height: Number(e.height)
|
|
2136
|
+
} : { width: 0, height: 0 };
|
|
2137
|
+
}
|
|
2138
|
+
const yo = (e, t) => {
|
|
2139
|
+
if (k(e))
|
|
2140
|
+
return !0;
|
|
2141
|
+
const { width: n, height: r } = mo(t), i = [], o = Array.isArray(e) ? e : [e];
|
|
2142
|
+
for (let u = 0; u < o.length; u++) {
|
|
2143
|
+
if (!/\.(jpg|svg|jpeg|png|bmp|gif)$/i.test(o[u].name))
|
|
2144
|
+
return Promise.resolve(!1);
|
|
2145
|
+
i.push(o[u]);
|
|
2146
|
+
}
|
|
2147
|
+
return Promise.all(i.map((u) => vo(u, n, r))).then((u) => u.every((c) => c));
|
|
2148
|
+
}, rn = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, go = (e) => k(e) ? !0 : Array.isArray(e) ? e.every((t) => rn.test(String(t))) : rn.test(String(e)), ho = (e, t) => {
|
|
2149
|
+
if (k(e))
|
|
2150
|
+
return !0;
|
|
2151
|
+
const n = new RegExp(`\\.(${t.join("|")})$`, "i");
|
|
2152
|
+
return Array.isArray(e) ? e.every((r) => n.test(r.name)) : n.test(e.name);
|
|
2153
|
+
}, po = (e) => {
|
|
2154
|
+
if (k(e))
|
|
2155
|
+
return !0;
|
|
2156
|
+
const t = /\.(jpg|svg|jpeg|png|bmp|gif|webp)$/i;
|
|
2157
|
+
return Array.isArray(e) ? e.every((n) => t.test(n.name)) : t.test(e.name);
|
|
2158
|
+
}, bo = (e) => k(e) ? !0 : Array.isArray(e) ? e.every((t) => /^-?[0-9]+$/.test(String(t))) : /^-?[0-9]+$/.test(String(e)), Ao = (e, t) => {
|
|
2159
|
+
const n = ae(t, "other");
|
|
2160
|
+
return e === n;
|
|
2161
|
+
}, Vo = (e, t) => {
|
|
2162
|
+
const n = ae(t, "other");
|
|
2163
|
+
return e !== n;
|
|
2164
|
+
}, Oo = (e, t) => {
|
|
2165
|
+
if (k(e))
|
|
2166
|
+
return !0;
|
|
2167
|
+
const n = ae(t, "length");
|
|
2168
|
+
return typeof e == "number" && (e = String(e)), e.length || (e = Array.from(e)), e.length === Number(n);
|
|
2169
|
+
}, Mn = (e, t) => {
|
|
2170
|
+
if (k(e))
|
|
2171
|
+
return !0;
|
|
2172
|
+
const n = ae(t, "length");
|
|
2173
|
+
return Array.isArray(e) ? e.every((r) => Mn(r, { length: n })) : [...String(e)].length <= Number(n);
|
|
2174
|
+
}, Dn = (e, t) => {
|
|
2175
|
+
if (k(e))
|
|
2176
|
+
return !0;
|
|
2177
|
+
const n = ae(t, "max");
|
|
2178
|
+
return Array.isArray(e) ? e.length > 0 && e.every((r) => Dn(r, { max: n })) : Number(e) <= Number(n);
|
|
2179
|
+
}, on = /\+(.+)?/;
|
|
2180
|
+
function So(e) {
|
|
2181
|
+
let t = e;
|
|
2182
|
+
return on.test(e) && (t = e.replace(on, "(\\+$1)?")), new RegExp(t.replace("*", ".+"), "i");
|
|
2183
|
+
}
|
|
2184
|
+
const _o = (e, t) => {
|
|
2185
|
+
if (k(e))
|
|
2186
|
+
return !0;
|
|
2187
|
+
t || (t = []);
|
|
2188
|
+
const n = t.map(So);
|
|
2189
|
+
return Array.isArray(e) ? e.every((r) => n.some((i) => i.test(r.type))) : n.some((r) => r.test(e.type));
|
|
2190
|
+
}, zn = (e, t) => {
|
|
2191
|
+
if (k(e))
|
|
2192
|
+
return !0;
|
|
2193
|
+
const n = ae(t, "length");
|
|
2194
|
+
return Array.isArray(e) ? e.every((r) => zn(r, { length: n })) : [...String(e)].length >= Number(n);
|
|
2195
|
+
}, Ln = (e, t) => {
|
|
2196
|
+
if (k(e))
|
|
2197
|
+
return !0;
|
|
2198
|
+
const n = ae(t, "min");
|
|
2199
|
+
return Array.isArray(e) ? e.length > 0 && e.every((r) => Ln(r, { min: n })) : Number(e) >= Number(n);
|
|
2200
|
+
}, Ft = (e, t) => k(e) ? !0 : Array.isArray(e) ? e.every((n) => Ft(n, t)) : Array.from(t).some((n) => n == e), jo = (e, t) => k(e) ? !0 : !Ft(e, t), $o = /^[٠١٢٣٤٥٦٧٨٩]+$/, Eo = /^[0-9]+$/, wo = (e) => {
|
|
2201
|
+
if (k(e))
|
|
2202
|
+
return !0;
|
|
2203
|
+
const t = (n) => {
|
|
2204
|
+
const r = String(n);
|
|
2205
|
+
return Eo.test(r) || $o.test(r);
|
|
2206
|
+
};
|
|
2207
|
+
return Array.isArray(e) ? e.every(t) : t(e);
|
|
2208
|
+
}, Wn = (e, t) => {
|
|
2209
|
+
if (k(e))
|
|
2210
|
+
return !0;
|
|
2211
|
+
let n = ae(t, "regex");
|
|
2212
|
+
return typeof n == "string" && (n = new RegExp(n)), Array.isArray(e) ? e.every((r) => Wn(r, { regex: n })) : n.test(String(e));
|
|
2213
|
+
};
|
|
2214
|
+
function Co(e) {
|
|
2215
|
+
return e == null;
|
|
2216
|
+
}
|
|
2217
|
+
function Io(e) {
|
|
2218
|
+
return Array.isArray(e) && e.length === 0;
|
|
2219
|
+
}
|
|
2220
|
+
const No = (e) => Co(e) || Io(e) || e === !1 ? !1 : !!String(e).trim().length, Fo = (e, t) => {
|
|
2221
|
+
if (k(e))
|
|
2222
|
+
return !0;
|
|
2223
|
+
let n = ae(t, "size");
|
|
2224
|
+
if (n = Number(n), isNaN(n))
|
|
2225
|
+
return !1;
|
|
2226
|
+
const r = n * 1024;
|
|
2227
|
+
if (!Array.isArray(e))
|
|
2228
|
+
return e.size <= r;
|
|
2229
|
+
for (let i = 0; i < e.length; i++)
|
|
2230
|
+
if (e[i].size > r)
|
|
2231
|
+
return !1;
|
|
2232
|
+
return !0;
|
|
2233
|
+
}, Po = (e, t) => {
|
|
2234
|
+
var n;
|
|
2235
|
+
if (k(e))
|
|
2236
|
+
return !0;
|
|
2237
|
+
let r = ae(t, "pattern");
|
|
2238
|
+
typeof r == "string" && (r = new RegExp(r));
|
|
2239
|
+
try {
|
|
2240
|
+
new URL(e);
|
|
2241
|
+
} catch {
|
|
2242
|
+
return !1;
|
|
2243
|
+
}
|
|
2244
|
+
return (n = r == null ? void 0 : r.test(e)) !== null && n !== void 0 ? n : !0;
|
|
2245
|
+
}, an = {
|
|
2246
|
+
alpha_dash: xn,
|
|
2247
|
+
alpha_num: Zn,
|
|
2248
|
+
alpha_spaces: Bn,
|
|
2249
|
+
alpha: kn,
|
|
2250
|
+
between: Rn,
|
|
2251
|
+
confirmed: fo,
|
|
2252
|
+
digits: Un,
|
|
2253
|
+
dimensions: yo,
|
|
2254
|
+
email: go,
|
|
2255
|
+
ext: ho,
|
|
2256
|
+
image: po,
|
|
2257
|
+
integer: bo,
|
|
2258
|
+
is_not: Vo,
|
|
2259
|
+
is: Ao,
|
|
2260
|
+
length: Oo,
|
|
2261
|
+
max_value: Dn,
|
|
2262
|
+
max: Mn,
|
|
2263
|
+
mimes: _o,
|
|
2264
|
+
min_value: Ln,
|
|
2265
|
+
min: zn,
|
|
2266
|
+
not_one_of: jo,
|
|
2267
|
+
numeric: wo,
|
|
2268
|
+
one_of: Ft,
|
|
2269
|
+
regex: Wn,
|
|
2270
|
+
required: No,
|
|
2271
|
+
size: Fo,
|
|
2272
|
+
url: Po
|
|
2273
|
+
}, To = () => {
|
|
2274
|
+
Object.keys(an).forEach((e) => {
|
|
2275
|
+
hi(e, an[e]);
|
|
2276
|
+
});
|
|
2277
|
+
};
|
|
2278
|
+
To();
|
|
2279
|
+
const Yo = /* @__PURE__ */ $t({
|
|
2280
|
+
...Et("FormItem"),
|
|
2281
|
+
__name: "FormItem",
|
|
2282
|
+
props: {
|
|
2283
|
+
validateOnValueUpdate: { type: Boolean, default: !0 },
|
|
2284
|
+
validateOnMount: { type: Boolean },
|
|
2285
|
+
bails: { type: Boolean },
|
|
2286
|
+
type: {},
|
|
2287
|
+
valueProp: {},
|
|
2288
|
+
checkedValue: {},
|
|
2289
|
+
uncheckedValue: {},
|
|
2290
|
+
label: {},
|
|
2291
|
+
controlled: { type: Boolean },
|
|
2292
|
+
standalone: { type: Boolean },
|
|
2293
|
+
keepValueOnUnmount: {},
|
|
2294
|
+
modelPropName: {},
|
|
2295
|
+
syncVModel: { type: [Boolean, String] },
|
|
2296
|
+
form: {},
|
|
2297
|
+
subtle: { type: Boolean },
|
|
2298
|
+
required: { type: Boolean },
|
|
2299
|
+
info: {},
|
|
2300
|
+
description: {},
|
|
2301
|
+
optional: {},
|
|
2302
|
+
leadingIcon: {},
|
|
2303
|
+
labelRootCls: {},
|
|
2304
|
+
descriptionCls: {},
|
|
2305
|
+
contentCls: {},
|
|
2306
|
+
labelCls: {},
|
|
2307
|
+
leadingCls: {},
|
|
2308
|
+
optionalCls: {},
|
|
2309
|
+
requiredCls: {},
|
|
2310
|
+
infoIconCls: {},
|
|
2311
|
+
infoCls: {},
|
|
2312
|
+
for: {},
|
|
2313
|
+
tooltipProps: {},
|
|
2314
|
+
class: {},
|
|
2315
|
+
inputCls: {},
|
|
2316
|
+
captionCls: {},
|
|
2317
|
+
explanationCls: {},
|
|
2318
|
+
explanationItemCls: {},
|
|
2319
|
+
size: { default: "md" },
|
|
2320
|
+
name: {},
|
|
2321
|
+
rules: {},
|
|
2322
|
+
modelValue: {},
|
|
2323
|
+
id: {},
|
|
2324
|
+
caption: {},
|
|
2325
|
+
status: {},
|
|
2326
|
+
disabled: { type: Boolean, default: void 0 },
|
|
2327
|
+
validateOnBlur: { type: Boolean, default: !0 }
|
|
2328
|
+
},
|
|
2329
|
+
emits: ["update:modelValue", "change"],
|
|
2330
|
+
setup(e, { expose: t, emit: n }) {
|
|
2331
|
+
fn("form", Ir);
|
|
2332
|
+
const r = e, i = n, o = We(jt, "item"), u = We(o, "explanation"), c = gn(o, {
|
|
2333
|
+
variants: {
|
|
2334
|
+
size: yn(gr, o)
|
|
2335
|
+
}
|
|
2336
|
+
}), s = hr(), d = w(() => {
|
|
2337
|
+
if (Rt(r.name)) return r.name;
|
|
2338
|
+
if (Nr(r.name) && r.name.every((E) => Rt(E) || Fr(E)))
|
|
2339
|
+
return r.name.join(".");
|
|
2340
|
+
throw "Invalid name";
|
|
2341
|
+
}), m = w(() => s != null && s.form ? void 0 : r.rules), g = to(() => d.value, m, {
|
|
2342
|
+
...r,
|
|
2343
|
+
validateOnValueUpdate: !0
|
|
2344
|
+
});
|
|
2345
|
+
let _ = !1;
|
|
2346
|
+
const v = (E = r.validateOnValueUpdate) => {
|
|
2347
|
+
var M;
|
|
2348
|
+
!_ && !((M = s.isFormModelUpdating) != null && M.value) && !Wt(r.modelValue, g.value.value) && (_ = !0, g.setValue(we(r.modelValue), E), q(() => _ = !1));
|
|
2349
|
+
};
|
|
2350
|
+
if (G(
|
|
2351
|
+
() => r.modelValue,
|
|
2352
|
+
() => v(),
|
|
2353
|
+
{ deep: !0 }
|
|
2354
|
+
), r.modelValue !== void 0 && v(!1), G(
|
|
2355
|
+
g.value,
|
|
2356
|
+
(E) => {
|
|
2357
|
+
var M;
|
|
2358
|
+
!_ && !((M = s.isFormModelUpdating) != null && M.value) && E !== r.modelValue && (_ = !0, i("update:modelValue", E), q(() => _ = !1));
|
|
2359
|
+
},
|
|
2360
|
+
{ deep: !0 }
|
|
2361
|
+
), s.form) {
|
|
2362
|
+
const E = Vr(() => {
|
|
2363
|
+
var M, F;
|
|
2364
|
+
if (r.rules && d.value) {
|
|
2365
|
+
const ne = (M = s == null ? void 0 : s.getFieldValidation) == null ? void 0 : M.call(s, d.value);
|
|
2366
|
+
(!ne || !Wt(ne, r.rules)) && ((F = s == null ? void 0 : s.setFieldValidation) == null || F.call(s, d.value, r.rules));
|
|
2367
|
+
}
|
|
2368
|
+
}, 50);
|
|
2369
|
+
G(() => [r.rules, s.validationSchema], E, {
|
|
2370
|
+
immediate: !0,
|
|
2371
|
+
deep: !0
|
|
2372
|
+
});
|
|
2373
|
+
}
|
|
2374
|
+
const S = sn(), U = w(() => r.id ?? mn(o)), O = w(() => ({
|
|
2375
|
+
/** deprecated */
|
|
2376
|
+
model: g.value,
|
|
2377
|
+
form: s == null ? void 0 : s.form,
|
|
2378
|
+
onBlur: (E) => {
|
|
2379
|
+
g.handleBlur(E, r.validateOnBlur);
|
|
2380
|
+
},
|
|
2381
|
+
onChange: (E) => {
|
|
2382
|
+
g.handleChange(E, r.validateOnValueUpdate);
|
|
2383
|
+
},
|
|
2384
|
+
field: g,
|
|
2385
|
+
id: U.value
|
|
2386
|
+
})), R = w(() => {
|
|
2387
|
+
var E;
|
|
2388
|
+
return ((E = s == null ? void 0 : s.props) == null ? void 0 : E.size) ?? r.size;
|
|
2389
|
+
}), x = w(
|
|
2390
|
+
() => g.errors.value.length && (!r.status || !["error", "warning", "success"].includes(r.status)) ? "error" : r.status
|
|
2391
|
+
), le = w(
|
|
2392
|
+
() => Or(
|
|
2393
|
+
{
|
|
2394
|
+
...Sr(r, [
|
|
2395
|
+
"subtle",
|
|
2396
|
+
"required",
|
|
2397
|
+
"info",
|
|
2398
|
+
"description",
|
|
2399
|
+
"optional",
|
|
2400
|
+
"leadingIcon",
|
|
2401
|
+
"label",
|
|
2402
|
+
"labelRootCls",
|
|
2403
|
+
"descriptionCls",
|
|
2404
|
+
"contentCls",
|
|
2405
|
+
"labelCls",
|
|
2406
|
+
"leadingCls",
|
|
2407
|
+
"optionalCls",
|
|
2408
|
+
"requiredCls",
|
|
2409
|
+
"infoIconCls",
|
|
2410
|
+
"infoCls",
|
|
2411
|
+
"tooltipProps"
|
|
2412
|
+
]),
|
|
2413
|
+
size: R.value === "lg" ? "md" : R.value
|
|
2414
|
+
},
|
|
2415
|
+
_r
|
|
2416
|
+
)
|
|
2417
|
+
), te = () => {
|
|
2418
|
+
if (r.info || r.description || r.leadingIcon || r.label || S.label || S.leadingIcon || S.required || S.optional || S.infoIcon || S.info || S.description)
|
|
2419
|
+
return dn(
|
|
2420
|
+
wr,
|
|
2421
|
+
{ ...le.value, for: U.value },
|
|
2422
|
+
{
|
|
2423
|
+
...S,
|
|
2424
|
+
default: S.label
|
|
2425
|
+
}
|
|
2426
|
+
);
|
|
2427
|
+
};
|
|
2428
|
+
return pr({
|
|
2429
|
+
props: r,
|
|
2430
|
+
field: g,
|
|
2431
|
+
status: x
|
|
2432
|
+
}), t({
|
|
2433
|
+
field: g,
|
|
2434
|
+
form: s == null ? void 0 : s.form
|
|
2435
|
+
}), (E, M) => {
|
|
2436
|
+
var F;
|
|
2437
|
+
return pe(), Se("div", {
|
|
2438
|
+
class: _e(A(Ce)(A(c)({ size: R.value }), r.class))
|
|
2439
|
+
}, [
|
|
2440
|
+
cn(te),
|
|
2441
|
+
S.default ? (pe(), Se("div", {
|
|
2442
|
+
key: 0,
|
|
2443
|
+
class: _e(A(Ce)(A(We)(A(o), "input"), E.inputCls))
|
|
2444
|
+
}, [
|
|
2445
|
+
Te(E.$slots, "default", Xe(Qe(O.value)))
|
|
2446
|
+
], 2)) : gt("", !0),
|
|
2447
|
+
E.caption || S.caption ? (pe(), Se("div", {
|
|
2448
|
+
key: 1,
|
|
2449
|
+
class: _e(A(Ce)(A(We)(A(o), "caption"), E.captionCls))
|
|
2450
|
+
}, [
|
|
2451
|
+
Te(E.$slots, "caption", Xe(Qe(O.value)), () => [
|
|
2452
|
+
lr(ur(E.caption), 1)
|
|
2453
|
+
])
|
|
2454
|
+
], 2)) : gt("", !0),
|
|
2455
|
+
(F = A(A(g).errors)) != null && F.length || S.explanation ? (pe(), Se("div", {
|
|
2456
|
+
key: 2,
|
|
2457
|
+
class: _e(A(Ce)(A(u), E.explanationCls))
|
|
2458
|
+
}, [
|
|
2459
|
+
Te(E.$slots, "explanation", Xe(Qe(O.value)), () => [
|
|
2460
|
+
(pe(!0), Se(sr, null, cr(A(A(g).errors), (ne, me) => (pe(), dr(ko, {
|
|
2461
|
+
key: me,
|
|
2462
|
+
status: x.value,
|
|
2463
|
+
message: ne,
|
|
2464
|
+
class: _e(E.explanationItemCls)
|
|
2465
|
+
}, {
|
|
2466
|
+
default: fr(() => [
|
|
2467
|
+
Te(E.$slots, "explanationItem", vr({ ref_for: !0 }, { ...O.value, message: ne }))
|
|
2468
|
+
]),
|
|
2469
|
+
_: 2
|
|
2470
|
+
}, 1032, ["status", "message", "class"]))), 128))
|
|
2471
|
+
])
|
|
2472
|
+
], 2)) : gt("", !0)
|
|
2473
|
+
], 2);
|
|
2474
|
+
};
|
|
2475
|
+
}
|
|
2476
|
+
}), ko = /* @__PURE__ */ $t({
|
|
2477
|
+
...Et("FormValidation"),
|
|
2478
|
+
__name: "FormValidation",
|
|
2479
|
+
props: {
|
|
2480
|
+
message: {},
|
|
2481
|
+
status: { default: "error" },
|
|
2482
|
+
class: {}
|
|
2483
|
+
},
|
|
2484
|
+
setup(e) {
|
|
2485
|
+
fn("form_validation", Cr);
|
|
2486
|
+
const t = e, n = sn(), r = w(() => {
|
|
2487
|
+
switch (t.status) {
|
|
2488
|
+
case "error":
|
|
2489
|
+
return "tabler:circle-x";
|
|
2490
|
+
case "warning":
|
|
2491
|
+
return "tabler:exclamation-circle";
|
|
2492
|
+
case "success":
|
|
2493
|
+
return "tabler:circle-check";
|
|
2494
|
+
}
|
|
2495
|
+
}), i = vn("form_validation"), o = gn(i, {
|
|
2496
|
+
variants: {
|
|
2497
|
+
status: yn(br, i)
|
|
2498
|
+
}
|
|
2499
|
+
}), u = () => {
|
|
2500
|
+
var d, m;
|
|
2501
|
+
const c = (d = n.default) == null ? void 0 : d.call(n, {}), s = (m = n.message) == null ? void 0 : m.call(n, {});
|
|
2502
|
+
return Bt(c) ? [
|
|
2503
|
+
dn(mr, { size: "3xsm", icon: r.value }),
|
|
2504
|
+
Bt(s) ? t.message : s
|
|
2505
|
+
] : c;
|
|
2506
|
+
};
|
|
2507
|
+
return (c, s) => (pe(), Se("div", {
|
|
2508
|
+
class: _e(A(Ce)(A(o)(t), t.class))
|
|
2509
|
+
}, [
|
|
2510
|
+
cn(u)
|
|
2511
|
+
], 2));
|
|
2512
|
+
}
|
|
2513
|
+
});
|
|
2514
|
+
export {
|
|
2515
|
+
Ho as _,
|
|
2516
|
+
Yo as a,
|
|
2517
|
+
ko as b
|
|
2518
|
+
};
|