@web-utils/component 4.0.16 → 5.0.0-beta01

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.
Files changed (314) hide show
  1. package/address-input/index.mjs +76 -74
  2. package/affix/index.mjs +71 -78
  3. package/aside-menu/index.mjs +20 -31
  4. package/avatar/index.mjs +94 -82
  5. package/awesome-button/index.mjs +54 -71
  6. package/capsule-tab/index.mjs +27 -32
  7. package/card/index.mjs +86 -69
  8. package/carousel/index.mjs +45 -32
  9. package/chat/index.mjs +441 -266
  10. package/chunk-file-uploader/index.mjs +2 -103
  11. package/chunks/ChunkFileUploader.C3EA0e5t.mjs +114 -0
  12. package/chunks/EditableTree.C_IJBL5b.mjs +648 -0
  13. package/chunks/ElementBaseInfo.DyuFR6fE.mjs +209 -0
  14. package/chunks/ElementDialog.C0IjriTW.mjs +681 -0
  15. package/chunks/ElementForm.ButuYDPA.mjs +627 -0
  16. package/chunks/ElementListeners.Dg3e_dmp.mjs +656 -0
  17. package/chunks/ElementMultiInstance.Dmi79FqA.mjs +290 -0
  18. package/chunks/ElementOtherConfig.C2AddGTp.mjs +51 -0
  19. package/chunks/ElementProperties.CfV8UF7L.mjs +196 -0
  20. package/chunks/ElementTaskConfig.Bn7ycGGn.mjs +446 -0
  21. package/chunks/FlowCondition.C6PdqOAW.mjs +194 -0
  22. package/chunks/FlowDesigner.uJYFfKpR.mjs +5101 -0
  23. package/chunks/FormBlock.BEENc22F.mjs +117 -0
  24. package/chunks/FormCascader.CaM-oEhv.mjs +1226 -0
  25. package/chunks/FormInputTime.Bg3UIP8H.mjs +1773 -0
  26. package/chunks/FormItem.H9OOvNzT.mjs +90 -0
  27. package/chunks/FormItemGroup.D9eRy-cZ.mjs +147 -0
  28. package/chunks/FormSelect.CanodoAI.mjs +1472 -0
  29. package/chunks/FormSwitch.DTqdaFjv.mjs +296 -0
  30. package/chunks/FormTemp.DiI5EfgK.mjs +139 -0
  31. package/chunks/FyCurd.DMj1dMK9.mjs +2622 -0
  32. package/chunks/FyForm.vgR8ujEF.mjs +904 -0
  33. package/chunks/FyFormDesign.DEWT6LsX.mjs +5600 -0
  34. package/chunks/FyUEditor.D_rEYfll.mjs +221 -0
  35. package/chunks/FyUpload.B2QKfTxF.mjs +504 -0
  36. package/chunks/Keyboard.ItiRy7Gb.mjs +379 -0
  37. package/chunks/MonacoEditor.Bd5Kui-Y.mjs +301 -0
  38. package/chunks/PageableTable.Bujb0NUx.mjs +658 -0
  39. package/chunks/RecordVideo.B35_dLty.mjs +116 -0
  40. package/chunks/SignalAndMessage.CYVzlFuL.mjs +198 -0
  41. package/chunks/SplitPane.Dw96M0Yf.mjs +219 -0
  42. package/chunks/TableColumn.DJYkznbJ.mjs +180 -0
  43. package/chunks/TableView.DyIdIxAg.mjs +484 -0
  44. package/chunks/Toolbar.DHuXJAoG.mjs +219 -0
  45. package/chunks/UserTaskListeners.Bp-2qkHs.mjs +599 -0
  46. package/chunks/VueCron.GfjodnyM.mjs +1766 -0
  47. package/chunks/VueTreeSelect.9Ywl-I8e.mjs +1872 -0
  48. package/chunks/_plugin-vue_export-helper.7vrlOII_.mjs +8 -0
  49. package/chunks/checkbox.emIuFmnt.mjs +437 -0
  50. package/chunks/confirmable-mixin.BBil7dto.mjs +1646 -0
  51. package/chunks/core.DJv6Qrae.mjs +51 -0
  52. package/chunks/dataformat.Bfr4nOcA.mjs +144 -0
  53. package/chunks/dic.DgDfnovD.mjs +116 -0
  54. package/chunks/dictionary.5eKjWeAp.mjs +19 -0
  55. package/chunks/dictionary.DxZxP0ej.mjs +87 -0
  56. package/chunks/event.B4iwtUNO.mjs +4 -0
  57. package/chunks/event.eJ-c1Z3a.mjs +224 -0
  58. package/chunks/focus-trap.DT4GnqQI.mjs +211 -0
  59. package/chunks/form-input.D25eDRMq.mjs +34 -0
  60. package/chunks/form-item.CgmUuw_n.mjs +714 -0
  61. package/chunks/form-pick.Axem0gOO.mjs +7 -0
  62. package/chunks/form-validate.B1KPCHqN.mjs +11 -0
  63. package/chunks/icon.CbS8-322.mjs +259 -0
  64. package/chunks/init.DwpukyOB.mjs +115 -0
  65. package/chunks/input.PejnqwSH.mjs +547 -0
  66. package/chunks/install.yLcn5MLL.mjs +84 -0
  67. package/chunks/message.BCmee5N0.mjs +400 -0
  68. package/chunks/overlay.DubSnqma.mjs +122 -0
  69. package/chunks/packages.BGjydzjm.mjs +56 -0
  70. package/chunks/permission.DgEVNWlh.mjs +16 -0
  71. package/chunks/photo-swipe.BB0SJZg9.mjs +55 -0
  72. package/chunks/radio.BotKXqJr.mjs +274 -0
  73. package/chunks/scroll.CzORc5Zk.mjs +28 -0
  74. package/chunks/scrollbar.CAmrlKi9.mjs +345 -0
  75. package/chunks/slot.C6Ozd2e7.mjs +25 -0
  76. package/chunks/style.BmlGmjpO.mjs +325 -0
  77. package/chunks/sub-table-plus-props.B_lLth3j.mjs +28 -0
  78. package/chunks/tab-mixin.u0EZpx3j.mjs +70 -0
  79. package/chunks/tag.DPi-PLbb.mjs +141 -0
  80. package/chunks/teleport._VGEzK4d.mjs +22 -0
  81. package/chunks/tooltip.D50x7Rva.mjs +1926 -0
  82. package/chunks/typescript.DiWBU4nj.mjs +4 -0
  83. package/chunks/use-aria.BW7nWOl1.mjs +17 -0
  84. package/chunks/use-composition.mUaomyno.mjs +47 -0
  85. package/chunks/use-deprecated.BfDSbZS9.mjs +12 -0
  86. package/chunks/use-empty-values.Dy_r78F6.mjs +263 -0
  87. package/chunks/use-form-item.wsRjehHp.mjs +47 -0
  88. package/chunks/use-global-config.C9hs-O_x.mjs +56 -0
  89. package/chunks/use-id.CFO5NeoV.mjs +15 -0
  90. package/chunks/use-size.DxrwTUwf.mjs +18 -0
  91. package/chunks/util.B3sjVZoZ.mjs +103 -0
  92. package/chunks/util.g-WQEec9.mjs +223 -0
  93. package/chunks/utilSelf.ZED4DmCU.mjs +46 -0
  94. package/chunks/utils.Cs2fYBrT.mjs +60 -0
  95. package/chunks/utils.DsGhtCIO.mjs +14 -0
  96. package/chunks/validator.C4-z_t9p.mjs +5 -0
  97. package/chunks/vnode.D_SioRnx.mjs +14 -0
  98. package/code-mirror-editor/index.mjs +89 -88
  99. package/comment/index.mjs +62 -57
  100. package/configComponents.mjs +40 -50
  101. package/confirm-button/index.mjs +34 -46
  102. package/confirmable/index.mjs +7 -17
  103. package/context-menu/index.mjs +195 -174
  104. package/count-up/index.mjs +97 -105
  105. package/custom-scrollbar/index.mjs +91 -98
  106. package/data-box/index.mjs +64 -44
  107. package/data-card/index.mjs +60 -47
  108. package/data-card-text/index.mjs +63 -49
  109. package/data-display/index.mjs +71 -51
  110. package/data-icons/index.mjs +70 -50
  111. package/data-imgtext/index.mjs +67 -43
  112. package/data-operatext/index.mjs +51 -40
  113. package/data-panel/index.mjs +57 -44
  114. package/data-pay/index.mjs +105 -48
  115. package/data-price/index.mjs +48 -40
  116. package/data-progress/index.mjs +67 -44
  117. package/data-rotate/index.mjs +61 -44
  118. package/data-table-picker/index.mjs +119 -71
  119. package/data-tabs/index.mjs +67 -44
  120. package/dialog-form/index.mjs +139 -87
  121. package/dynamic-table/index.mjs +166 -109
  122. package/e-charts/index.mjs +174 -200
  123. package/easy-popup/index.mjs +91 -102
  124. package/editable-progress/index.mjs +112 -83
  125. package/editable-tree/index.mjs +2 -481
  126. package/element-dialog/index.mjs +2 -306
  127. package/ellipsis/index.mjs +124 -148
  128. package/empty-view/index.mjs +48 -65
  129. package/error-view/index.mjs +39 -51
  130. package/flex-column/index.mjs +32 -51
  131. package/flex-item/index.mjs +54 -64
  132. package/flex-row/index.mjs +32 -39
  133. package/flex-scroller/index.mjs +29 -30
  134. package/flow/index.mjs +240 -247
  135. package/flow-designer/index.mjs +2 -4709
  136. package/flow-node/index.mjs +56 -64
  137. package/flow-viewer/index.mjs +159 -157
  138. package/form-block/index.mjs +2 -147
  139. package/form-button/index.mjs +35 -47
  140. package/form-card/index.mjs +14 -25
  141. package/form-cascader/index.mjs +2 -115
  142. package/form-checkbox/index.mjs +89 -70
  143. package/form-checkbox-group/index.mjs +161 -113
  144. package/form-date-picker/index.mjs +155 -142
  145. package/form-holder/index.mjs +137 -109
  146. package/form-input/index.mjs +113 -86
  147. package/form-input-cron-expression/index.mjs +97 -76
  148. package/form-input-email/index.mjs +64 -51
  149. package/form-input-id-card/index.mjs +72 -54
  150. package/form-input-phone-number/index.mjs +71 -56
  151. package/form-input-tag/index.mjs +88 -61
  152. package/form-input-time/index.mjs +2 -73
  153. package/form-item/index.mjs +2 -142
  154. package/form-item-config-provider/index.mjs +46 -60
  155. package/form-item-group/index.mjs +2 -157
  156. package/form-radio-group/index.mjs +161 -121
  157. package/form-select/index.mjs +2 -179
  158. package/form-switch/index.mjs +2 -54
  159. package/form-table/index.mjs +131 -84
  160. package/form-table-plus/index.mjs +164 -108
  161. package/form-textarea/index.mjs +90 -56
  162. package/form-tree-select/index.mjs +89 -71
  163. package/form-tree-select-multiple/index.mjs +92 -77
  164. package/form-view/index.mjs +275 -207
  165. package/fy-array/index.mjs +121 -70
  166. package/fy-article/index.mjs +73 -60
  167. package/fy-cascader/index.mjs +113 -90
  168. package/fy-checkbox/index.mjs +96 -64
  169. package/fy-code/index.mjs +48 -50
  170. package/fy-curd/index.mjs +2 -1879
  171. package/fy-date/index.mjs +76 -41
  172. package/fy-draggable/index.mjs +322 -317
  173. package/fy-dynamic/index.mjs +259 -224
  174. package/fy-empty/index.mjs +35 -36
  175. package/fy-form/index.mjs +2 -640
  176. package/fy-form-design/index.mjs +2 -2852
  177. package/fy-form-design/style.css +1 -1
  178. package/fy-from/crud/zh.d.ts +1 -1
  179. package/fy-input/index.mjs +117 -97
  180. package/fy-input-color/index.mjs +77 -54
  181. package/fy-input-icon/index.mjs +129 -82
  182. package/fy-input-map/index.mjs +242 -183
  183. package/fy-input-number/index.mjs +74 -49
  184. package/fy-input-table/index.mjs +160 -105
  185. package/fy-input-tree/index.mjs +259 -178
  186. package/fy-progress/index.mjs +36 -39
  187. package/fy-radio/index.mjs +53 -37
  188. package/fy-rate/index.mjs +86 -70
  189. package/fy-select/index.mjs +224 -137
  190. package/fy-slider/index.mjs +68 -43
  191. package/fy-switch/index.mjs +67 -41
  192. package/fy-tabs/index.mjs +46 -46
  193. package/fy-time/index.mjs +81 -53
  194. package/fy-title/index.mjs +18 -27
  195. package/fy-tree/index.mjs +382 -286
  196. package/fy-u-editor/index.mjs +2 -357
  197. package/fy-upload/index.mjs +2 -421
  198. package/guide-steps/index.mjs +72 -71
  199. package/helper-function.d.ts +2 -30
  200. package/helper-function.mjs +41 -67
  201. package/highlight-j-s/index.mjs +50 -59
  202. package/icon-card/index.mjs +34 -36
  203. package/icon-temp/index.mjs +27 -27
  204. package/iframe-window/index.mjs +39 -32
  205. package/image-cropper/index.mjs +171 -73
  206. package/image-preview/index.mjs +187 -116
  207. package/image-viewer/index.mjs +69 -66
  208. package/index.d.ts +3 -9
  209. package/index.mjs +174 -489
  210. package/input-number-range/index.mjs +78 -58
  211. package/j-s-x-component/index.mjs +13 -15
  212. package/keyboard/index.mjs +2 -369
  213. package/license/index.mjs +106 -115
  214. package/loading-view/index.mjs +39 -51
  215. package/login/index.mjs +252 -120
  216. package/monaco-editor/index.mjs +2 -7
  217. package/name-avatar/index.mjs +61 -53
  218. package/nav-bar/index.mjs +33 -30
  219. package/not-implement/index.mjs +10 -22
  220. package/notice/index.mjs +100 -93
  221. package/package.json +3 -3
  222. package/page/index.mjs +18 -25
  223. package/page-header/index.mjs +27 -33
  224. package/page-index/index.mjs +121 -99
  225. package/page-index-top/index.mjs +79 -74
  226. package/page-skeleton/index.mjs +47 -44
  227. package/page-skeleton-new/index.mjs +79 -49
  228. package/pageable-table/index.mjs +2 -512
  229. package/pageable-view/index.mjs +279 -274
  230. package/photo-swipe/index.d.ts +4 -0
  231. package/photo-swipe/index.mjs +33 -36
  232. package/picker-table-view/index.mjs +224 -117
  233. package/present-view/index.mjs +266 -196
  234. package/queue/index.mjs +45 -53
  235. package/record-video/index.mjs +2 -134
  236. package/resize-observer/index.mjs +43 -46
  237. package/search/index.mjs +116 -107
  238. package/sign/index.mjs +103 -110
  239. package/sign-panel/index.mjs +182 -141
  240. package/skeleton/index.mjs +51 -54
  241. package/skeleton-panel/index.mjs +33 -37
  242. package/split-pane/index.mjs +3 -196
  243. package/stateful/index.mjs +69 -73
  244. package/static-pageable-table/index.mjs +72 -64
  245. package/sub-table/index.mjs +508 -206
  246. package/sub-table-plus/index.mjs +592 -230
  247. package/swiper/index.mjs +128 -120
  248. package/tab/index.mjs +117 -119
  249. package/tab-item/index.mjs +48 -56
  250. package/table-column/index.mjs +2 -225
  251. package/table-view/index.mjs +3 -326
  252. package/tabs-view/index.mjs +109 -104
  253. package/tag-render/index.mjs +79 -67
  254. package/text-ellipsis/index.mjs +94 -77
  255. package/toolbar/index.mjs +2 -254
  256. package/toolbar-button/index.mjs +145 -120
  257. package/verify/index.mjs +58 -64
  258. package/vue-cron/index.mjs +2 -1180
  259. package/vue-qr-code/index.mjs +30 -54
  260. package/vue-quill-editor/index.mjs +123 -99
  261. package/vue-tags-input/index.mjs +348 -431
  262. package/vue-tree-select/index.mjs +2 -2627
  263. package/vue-video-player/index.mjs +135 -136
  264. package/watermark/index.mjs +46 -74
  265. package/web-types.json +197 -975
  266. package/x-input-tag/index.mjs +144 -106
  267. package/chunks/ElementBaseInfo.ZADwixb5.mjs +0 -125
  268. package/chunks/ElementForm.CQ3PN5qj.mjs +0 -223
  269. package/chunks/ElementListeners.De_PRuIm.mjs +0 -215
  270. package/chunks/ElementMultiInstance.DQo2wuAQ.mjs +0 -181
  271. package/chunks/ElementOtherConfig.B1NfMTYh.mjs +0 -60
  272. package/chunks/ElementProperties.CosfDrlW.mjs +0 -112
  273. package/chunks/ElementTaskConfig.Bko0kgTp.mjs +0 -317
  274. package/chunks/FlowCondition.Y6qEYi1T.mjs +0 -102
  275. package/chunks/FormTemp.BQxO5IQq.mjs +0 -123
  276. package/chunks/MonacoEditor.D31t4FTy.mjs +0 -327
  277. package/chunks/SignalAndMessage.Bb5PFX0N.mjs +0 -85
  278. package/chunks/UserTaskListeners.Bv3BDfEI.mjs +0 -169
  279. package/chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs +0 -10
  280. package/chunks/confirmable-mixin.B2TtLAdk.mjs +0 -86
  281. package/chunks/core.0Exl13Mz.mjs +0 -54
  282. package/chunks/dataformat.CpqOeGBl.mjs +0 -154
  283. package/chunks/dic.Dkl-leRW.mjs +0 -128
  284. package/chunks/dictionary.DGt59Ir7.mjs +0 -68
  285. package/chunks/dictionary.DqiP9x2m.mjs +0 -25
  286. package/chunks/event.9aDS6jcw.mjs +0 -236
  287. package/chunks/form-input.CvFdwlEV.mjs +0 -31
  288. package/chunks/form-item.LWjePsPa.mjs +0 -233
  289. package/chunks/form-pick.BFTIVn_i.mjs +0 -11
  290. package/chunks/form-validate.CVarNHKX.mjs +0 -12
  291. package/chunks/helper.BiMLcEEk.mjs +0 -41
  292. package/chunks/index.9OxHjTIE.mjs +0 -16
  293. package/chunks/index.B2TRddqf.mjs +0 -184
  294. package/chunks/index.BmYCjxZQ.mjs +0 -47
  295. package/chunks/init.DAsXSoLW.mjs +0 -122
  296. package/chunks/packages.ByyangTp.mjs +0 -58
  297. package/chunks/permission.CO31YIkD.mjs +0 -16
  298. package/chunks/slot.DXIbhGat.mjs +0 -27
  299. package/chunks/sub-table-plus-props.BVsD71hT.mjs +0 -30
  300. package/chunks/tab-mixin.BNK6dxLN.mjs +0 -81
  301. package/chunks/util.DqFv_pWg.mjs +0 -241
  302. package/chunks/utilSelf.Csq1766E.mjs +0 -48
  303. package/chunks/utils.DRcxC1Fb.mjs +0 -60
  304. package/color-picker/index.mjs +0 -78
  305. package/egd-collapse/index.mjs +0 -62
  306. package/egd-collapse-item/index.mjs +0 -72
  307. package/form-input-number/index.mjs +0 -69
  308. package/form-input-number/style.css +0 -1
  309. package/input-number/index.mjs +0 -232
  310. package/input-number/style.css +0 -1
  311. package/keep-view-alive/index.mjs +0 -117
  312. package/search-popover/index.mjs +0 -118
  313. package/search-popover/style.css +0 -1
  314. /package/{base.css → utils/style.css} +0 -0
@@ -0,0 +1,1472 @@
1
+ import { _ as e, d as t, h as n, m as r, o as i, p as a, r as o, t as s } from "./install.yLcn5MLL.mjs";
2
+ import { t as c } from "./_plugin-vue_export-helper.7vrlOII_.mjs";
3
+ import { c as l, d as u, n as d, r as f, u as p } from "./use-empty-values.Dy_r78F6.mjs";
4
+ import { r as m, t as h } from "./event.B4iwtUNO.mjs";
5
+ import { r as ee } from "./use-size.DxrwTUwf.mjs";
6
+ import { B as te, C as ne, E as re, L as ie, M as g, O as ae, R as oe, S as se, b as _, j as v, k as ce, o as y, y as b } from "./style.BmlGmjpO.mjs";
7
+ import { n as x } from "./focus-trap.DT4GnqQI.mjs";
8
+ import { n as le } from "./scroll.CzORc5Zk.mjs";
9
+ import { n as S, r as ue, t as de } from "./tooltip.D50x7Rva.mjs";
10
+ import { i as fe, n as pe, r as me, t as he } from "./use-form-item.wsRjehHp.mjs";
11
+ import { t as ge } from "./use-id.CFO5NeoV.mjs";
12
+ import { n as _e } from "./vnode.D_SioRnx.mjs";
13
+ import { n as ve, t as ye } from "./use-composition.mUaomyno.mjs";
14
+ import { t as be } from "./use-aria.BW7nWOl1.mjs";
15
+ import { a as xe, f as Se, o as Ce, s as C, t as w } from "./icon.CbS8-322.mjs";
16
+ import { r as T } from "./form-item.CgmUuw_n.mjs";
17
+ import { n as we, t as Te } from "./scrollbar.CAmrlKi9.mjs";
18
+ import { n as E, r as Ee, t as De } from "./tag.DPi-PLbb.mjs";
19
+ import { d as Oe, n as ke, u as Ae } from "./util.B3sjVZoZ.mjs";
20
+ import { t as je } from "./form-input.D25eDRMq.mjs";
21
+ import { t as Me } from "./form-pick.Axem0gOO.mjs";
22
+ import { t as D } from "./dictionary.5eKjWeAp.mjs";
23
+ import { Fragment as O, computed as k, createBlock as A, createCommentVNode as j, createElementBlock as M, createElementVNode as N, createTextVNode as Ne, createVNode as P, defineComponent as Pe, getCurrentInstance as F, inject as Fe, isVNode as Ie, mergeProps as I, nextTick as L, normalizeClass as R, normalizeStyle as z, onBeforeUnmount as B, onMounted as Le, openBlock as V, provide as Re, reactive as ze, ref as H, renderList as U, renderSlot as W, resolveComponent as G, resolveDirective as Be, resolveDynamicComponent as Ve, shallowRef as He, toDisplayString as K, toHandlerKey as Ue, toHandlers as We, toRaw as Ge, toRefs as Ke, unref as qe, useSlots as Je, vShow as Ye, watch as q, watchEffect as Xe, withCtx as J, withDirectives as Y, withModifiers as X } from "vue";
24
+ import { isNumber as Ze, isPlainObject as Qe, isString as $e } from "@web-utils/core";
25
+ import { clamp as et, findLastIndex as tt, get as Z, isEqual as Q, isNil as nt } from "lodash-unified";
26
+ //#region node_modules/.pnpm/element-plus@2.13.6_typescr_b7ae825491da06c0282fd613061a7e37/node_modules/element-plus/es/hooks/use-calc-input-width/index.mjs
27
+ function rt() {
28
+ let e = He(), t = H(0), n = k(() => ({ minWidth: `${Math.max(t.value, 11)}px` }));
29
+ return _(e, () => {
30
+ var n;
31
+ t.value = ((n = e.value) == null ? void 0 : n.getBoundingClientRect().width) ?? 0;
32
+ }), {
33
+ calculatorRef: e,
34
+ calculatorWidth: t,
35
+ inputStyle: n
36
+ };
37
+ }
38
+ //#endregion
39
+ //#region node_modules/.pnpm/element-plus@2.13.6_typescr_b7ae825491da06c0282fd613061a7e37/node_modules/element-plus/es/components/select/src/token.mjs
40
+ var it = Symbol("ElSelectGroup"), at = Symbol("ElSelect"), ot = {
41
+ label: "label",
42
+ value: "value",
43
+ disabled: "disabled",
44
+ options: "options"
45
+ };
46
+ function st(e) {
47
+ let t = H({
48
+ ...ot,
49
+ ...e.props
50
+ }), n = { ...e.props };
51
+ return q(() => e.props, (e) => {
52
+ Q(e, n) || (t.value = {
53
+ ...ot,
54
+ ...e
55
+ }, n = { ...e });
56
+ }, { deep: !0 }), {
57
+ aliasProps: t,
58
+ getLabel: (e) => Z(e, t.value.label),
59
+ getValue: (e) => Z(e, t.value.value),
60
+ getDisabled: (e) => Z(e, t.value.disabled),
61
+ getOptions: (e) => Z(e, t.value.options)
62
+ };
63
+ }
64
+ //#endregion
65
+ //#region node_modules/.pnpm/element-plus@2.13.6_typescr_b7ae825491da06c0282fd613061a7e37/node_modules/element-plus/es/components/select/src/select.mjs
66
+ var ct = v({
67
+ name: String,
68
+ id: String,
69
+ modelValue: {
70
+ type: g([
71
+ Array,
72
+ String,
73
+ Number,
74
+ Boolean,
75
+ Object
76
+ ]),
77
+ default: void 0
78
+ },
79
+ autocomplete: {
80
+ type: String,
81
+ default: "off"
82
+ },
83
+ automaticDropdown: Boolean,
84
+ size: ee,
85
+ effect: {
86
+ type: g(String),
87
+ default: "light"
88
+ },
89
+ disabled: {
90
+ type: Boolean,
91
+ default: void 0
92
+ },
93
+ clearable: Boolean,
94
+ filterable: Boolean,
95
+ allowCreate: Boolean,
96
+ loading: Boolean,
97
+ popperClass: {
98
+ type: String,
99
+ default: ""
100
+ },
101
+ popperStyle: { type: g([String, Object]) },
102
+ popperOptions: {
103
+ type: g(Object),
104
+ default: () => ({})
105
+ },
106
+ remote: Boolean,
107
+ debounce: {
108
+ type: Number,
109
+ default: 300
110
+ },
111
+ loadingText: String,
112
+ noMatchText: String,
113
+ noDataText: String,
114
+ remoteMethod: { type: g(Function) },
115
+ filterMethod: { type: g(Function) },
116
+ multiple: Boolean,
117
+ multipleLimit: {
118
+ type: Number,
119
+ default: 0
120
+ },
121
+ placeholder: { type: String },
122
+ defaultFirstOption: Boolean,
123
+ reserveKeyword: {
124
+ type: Boolean,
125
+ default: !0
126
+ },
127
+ valueKey: {
128
+ type: String,
129
+ default: "value"
130
+ },
131
+ collapseTags: Boolean,
132
+ collapseTagsTooltip: Boolean,
133
+ tagTooltip: {
134
+ type: g(Object),
135
+ default: () => ({})
136
+ },
137
+ maxCollapseTags: {
138
+ type: Number,
139
+ default: 1
140
+ },
141
+ teleported: S.teleported,
142
+ persistent: {
143
+ type: Boolean,
144
+ default: !0
145
+ },
146
+ clearIcon: {
147
+ type: Ce,
148
+ default: Se
149
+ },
150
+ fitInputWidth: Boolean,
151
+ suffixIcon: {
152
+ type: Ce,
153
+ default: C
154
+ },
155
+ tagType: {
156
+ ...E.type,
157
+ default: "info"
158
+ },
159
+ tagEffect: {
160
+ ...E.effect,
161
+ default: "light"
162
+ },
163
+ validateEvent: {
164
+ type: Boolean,
165
+ default: !0
166
+ },
167
+ remoteShowSuffix: Boolean,
168
+ showArrow: {
169
+ type: Boolean,
170
+ default: !0
171
+ },
172
+ offset: {
173
+ type: Number,
174
+ default: 12
175
+ },
176
+ placement: {
177
+ type: g(String),
178
+ values: ue,
179
+ default: "bottom-start"
180
+ },
181
+ fallbackPlacements: {
182
+ type: g(Array),
183
+ default: [
184
+ "bottom-start",
185
+ "top-start",
186
+ "right",
187
+ "left"
188
+ ]
189
+ },
190
+ tabindex: {
191
+ type: [String, Number],
192
+ default: 0
193
+ },
194
+ appendTo: S.appendTo,
195
+ options: { type: g(Array) },
196
+ props: {
197
+ type: g(Object),
198
+ default: () => ot
199
+ },
200
+ ...f,
201
+ ...be(["ariaLabel"])
202
+ });
203
+ we.scroll;
204
+ //#endregion
205
+ //#region node_modules/.pnpm/element-plus@2.13.6_typescr_b7ae825491da06c0282fd613061a7e37/node_modules/element-plus/es/components/select/src/option.mjs
206
+ var lt = "ElOption", ut = v({
207
+ value: {
208
+ type: [
209
+ String,
210
+ Number,
211
+ Boolean,
212
+ Object
213
+ ],
214
+ required: !0
215
+ },
216
+ label: { type: [String, Number] },
217
+ created: Boolean,
218
+ disabled: Boolean
219
+ });
220
+ //#endregion
221
+ //#region node_modules/.pnpm/element-plus@2.13.6_typescr_b7ae825491da06c0282fd613061a7e37/node_modules/element-plus/es/components/select/src/useOption.mjs
222
+ function dt(e, t) {
223
+ let n = Fe(at);
224
+ n || ce(lt, "usage: <el-select><el-option /></el-select/>");
225
+ let i = Fe(it, { disabled: !1 }), a = k(() => d(T(n.props.modelValue), e.value)), o = k(() => {
226
+ if (n.props.multiple) {
227
+ let e = T(n.props.modelValue ?? []);
228
+ return !a.value && e.length >= n.props.multipleLimit && n.props.multipleLimit > 0;
229
+ } else return !1;
230
+ }), s = k(() => e.label ?? (r(e.value) ? "" : e.value)), c = k(() => e.value || e.label || ""), l = k(() => e.disabled || t.groupDisabled || o.value), u = F(), d = (t = [], i) => {
231
+ if (r(e.value)) {
232
+ let e = n.props.valueKey;
233
+ return t && t.some((t) => Ge(Z(t, e)) === Z(i, e));
234
+ } else return t && t.includes(i);
235
+ };
236
+ return q(() => s.value, () => {
237
+ !e.created && !n.props.remote && n.setSelected();
238
+ }), q(() => e.value, (t, i) => {
239
+ let { remote: a, valueKey: o } = n.props;
240
+ if ((a ? t !== i : !Q(t, i)) && (n.onOptionDestroy(i, u.proxy), n.onOptionCreate(u.proxy)), !e.created && !a) {
241
+ if (o && r(t) && r(i) && t[o] === i[o]) return;
242
+ n.setSelected();
243
+ }
244
+ }), q(() => i.disabled, () => {
245
+ t.groupDisabled = i.disabled;
246
+ }, { immediate: !0 }), {
247
+ select: n,
248
+ currentLabel: s,
249
+ currentValue: c,
250
+ itemSelected: a,
251
+ isDisabled: l,
252
+ hoverItem: () => {
253
+ l.value || (n.states.hoveringIndex = n.optionsArray.indexOf(u.proxy));
254
+ },
255
+ updateOption: (n) => {
256
+ t.visible = new RegExp(y(n), "i").test(String(s.value)) || e.created;
257
+ }
258
+ };
259
+ }
260
+ //#endregion
261
+ //#region node_modules/.pnpm/element-plus@2.13.6_typescr_b7ae825491da06c0282fd613061a7e37/node_modules/element-plus/es/components/select/src/option.vue_vue_type_script_lang.mjs
262
+ var ft = Pe({
263
+ name: lt,
264
+ componentName: lt,
265
+ props: ut,
266
+ setup(e) {
267
+ let t = i("select"), n = ge(), r = k(() => [
268
+ t.be("dropdown", "item"),
269
+ t.is("disabled", qe(c)),
270
+ t.is("selected", qe(s)),
271
+ t.is("hovering", qe(p))
272
+ ]), a = ze({
273
+ index: -1,
274
+ groupDisabled: !1,
275
+ visible: !0,
276
+ hover: !1
277
+ }), { currentLabel: o, itemSelected: s, isDisabled: c, select: l, hoverItem: u, updateOption: d } = dt(e, a), { visible: f, hover: p } = Ke(a), m = F().proxy;
278
+ l.onOptionCreate(m), B(() => {
279
+ let e = m.value;
280
+ L(() => {
281
+ let { selected: t } = l.states, n = t.some((e) => e.value === m.value);
282
+ l.states.cachedOptions.get(e) === m && !n && l.states.cachedOptions.delete(e);
283
+ }), l.onOptionDestroy(e, m);
284
+ });
285
+ function h() {
286
+ c.value || l.handleOptionSelect(m);
287
+ }
288
+ return {
289
+ ns: t,
290
+ id: n,
291
+ containerKls: r,
292
+ currentLabel: o,
293
+ itemSelected: s,
294
+ isDisabled: c,
295
+ select: l,
296
+ visible: f,
297
+ hover: p,
298
+ states: a,
299
+ hoverItem: u,
300
+ updateOption: d,
301
+ selectOptionClick: h
302
+ };
303
+ }
304
+ }), pt = [
305
+ "id",
306
+ "aria-disabled",
307
+ "aria-selected"
308
+ ];
309
+ function mt(e, t, n, r, i, a) {
310
+ return Y((V(), M("li", {
311
+ id: e.id,
312
+ class: R(e.containerKls),
313
+ role: "option",
314
+ "aria-disabled": e.isDisabled || void 0,
315
+ "aria-selected": e.itemSelected,
316
+ onMousemove: t[0] || (t[0] = (...t) => e.hoverItem && e.hoverItem(...t)),
317
+ onClick: t[1] || (t[1] = X((...t) => e.selectOptionClick && e.selectOptionClick(...t), ["stop"]))
318
+ }, [W(e.$slots, "default", {}, () => [N("span", null, K(e.currentLabel), 1)])], 42, pt)), [[Ye, e.visible]]);
319
+ }
320
+ var $ = /* @__PURE__ */ x(ft, [["render", mt]]), ht = Pe({
321
+ name: "ElOptionGroup",
322
+ componentName: "ElOptionGroup",
323
+ props: {
324
+ label: String,
325
+ disabled: Boolean
326
+ },
327
+ setup(e) {
328
+ let n = i("select"), r = H(), a = F(), o = H([]);
329
+ Re(it, ze({ ...Ke(e) }));
330
+ let s = k(() => o.value.some((e) => e.visible === !0)), c = (e) => {
331
+ var t;
332
+ return e.type.name === "ElOption" && !!((t = e.component) != null && t.proxy);
333
+ }, l = (e) => {
334
+ let n = T(e), r = [];
335
+ return n.forEach((e) => {
336
+ var n;
337
+ Ie(e) && (c(e) ? r.push(e.component.proxy) : t(e.children) && e.children.length ? r.push(...l(e.children)) : (n = e.component) != null && n.subTree && r.push(...l(e.component.subTree)));
338
+ }), r;
339
+ }, u = () => {
340
+ o.value = l(a.subTree);
341
+ };
342
+ return Le(() => {
343
+ u();
344
+ }), b(r, u, {
345
+ attributes: !0,
346
+ subtree: !0,
347
+ childList: !0
348
+ }), {
349
+ groupRef: r,
350
+ visible: s,
351
+ ns: n
352
+ };
353
+ }
354
+ });
355
+ //#endregion
356
+ //#region node_modules/.pnpm/element-plus@2.13.6_typescr_b7ae825491da06c0282fd613061a7e37/node_modules/element-plus/es/components/select/src/option-group.mjs
357
+ function gt(e, t, n, r, i, a) {
358
+ return Y((V(), M("ul", {
359
+ ref: "groupRef",
360
+ class: R(e.ns.be("group", "wrap"))
361
+ }, [N("li", { class: R(e.ns.be("group", "title")) }, K(e.label), 3), N("li", null, [N("ul", { class: R(e.ns.b("group")) }, [W(e.$slots, "default")], 2)])], 2)), [[Ye, e.visible]]);
362
+ }
363
+ var _t = /* @__PURE__ */ x(ht, [["render", gt]]), vt = Pe({
364
+ name: "ElSelectDropdown",
365
+ componentName: "ElSelectDropdown",
366
+ setup() {
367
+ let e = Fe(at), t = i("select"), n = k(() => e.props.popperClass), r = k(() => e.props.multiple), a = k(() => e.props.fitInputWidth), o = H("");
368
+ function s() {
369
+ var t;
370
+ let n = (t = e.selectRef) == null ? void 0 : t.offsetWidth;
371
+ n ? o.value = `${n - 2}px` : o.value = "";
372
+ }
373
+ return Le(() => {
374
+ s(), _(e.selectRef, s);
375
+ }), {
376
+ ns: t,
377
+ minWidth: o,
378
+ popperClass: n,
379
+ isMultiple: r,
380
+ isFitInputWidth: a
381
+ };
382
+ }
383
+ });
384
+ //#endregion
385
+ //#region node_modules/.pnpm/element-plus@2.13.6_typescr_b7ae825491da06c0282fd613061a7e37/node_modules/element-plus/es/components/select/src/select-dropdown.mjs
386
+ function yt(e, t, n, r, i, a) {
387
+ return V(), M("div", {
388
+ class: R([
389
+ e.ns.b("dropdown"),
390
+ e.ns.is("multiple", e.isMultiple),
391
+ e.popperClass
392
+ ]),
393
+ style: z({ [e.isFitInputWidth ? "width" : "minWidth"]: e.minWidth })
394
+ }, [
395
+ e.$slots.header ? (V(), M("div", {
396
+ key: 0,
397
+ class: R(e.ns.be("dropdown", "header"))
398
+ }, [W(e.$slots, "header")], 2)) : j("v-if", !0),
399
+ W(e.$slots, "default"),
400
+ e.$slots.footer ? (V(), M("div", {
401
+ key: 1,
402
+ class: R(e.ns.be("dropdown", "footer"))
403
+ }, [W(e.$slots, "footer")], 2)) : j("v-if", !0)
404
+ ], 6);
405
+ }
406
+ var bt = /* @__PURE__ */ x(vt, [["render", yt]]), xt = (e, o) => {
407
+ let { t: s } = p(), c = Je(), f = ge(), ee = i("select"), g = i("input"), v = ze({
408
+ inputValue: "",
409
+ options: /* @__PURE__ */ new Map(),
410
+ cachedOptions: /* @__PURE__ */ new Map(),
411
+ optionValues: [],
412
+ selected: [],
413
+ selectionWidth: 0,
414
+ collapseItemWidth: 0,
415
+ selectedLabel: "",
416
+ hoveringIndex: -1,
417
+ previousQuery: null,
418
+ inputHovering: !1,
419
+ menuVisibleOnFocus: !1,
420
+ isBeforeHide: !1
421
+ }), ce = H(), y = H(), b = H(), x = H(), S = H(), ue = H(), de = H(), _e = H(), be = H(), Se = H(), Ce = H(), C = H(!1), w = H(), we = H(!1), { form: Te, formItem: E } = he(), { inputId: Ee } = pe(e, { formItemContext: E }), { valueOnClear: De, isEmptyValue: Oe } = d(e), { isComposing: ke, handleCompositionStart: Ae, handleCompositionUpdate: je, handleCompositionEnd: Me } = ye({ afterComposition: (e) => Qe(e) }), D = me(), { wrapperRef: O, isFocused: A, handleBlur: j } = ve(S, {
422
+ disabled: D,
423
+ afterFocus() {
424
+ e.automaticDropdown && !C.value && (C.value = !0, v.menuVisibleOnFocus = !0);
425
+ },
426
+ beforeBlur(e) {
427
+ var t, n;
428
+ return ((t = b.value) == null ? void 0 : t.isFocusInsideContent(e)) || ((n = x.value) == null ? void 0 : n.isFocusInsideContent(e));
429
+ },
430
+ afterBlur() {
431
+ var t;
432
+ C.value = !1, v.menuVisibleOnFocus = !1, e.validateEvent && (E == null || (t = E.validate) == null || t.call(E, "blur").catch((e) => ae(e)));
433
+ }
434
+ }), M = k(() => t(e.modelValue) ? e.modelValue.length > 0 : !Oe(e.modelValue)), N = k(() => (Te == null ? void 0 : Te.statusIcon) ?? !1), Ne = k(() => e.clearable && !D.value && M.value && (A.value || v.inputHovering)), P = k(() => e.remote && e.filterable && !e.remoteShowSuffix ? "" : e.suffixIcon), Pe = k(() => ee.is("reverse", !!(P.value && C.value))), F = k(() => (E == null ? void 0 : E.validateState) || ""), Fe = k(() => F.value && xe[F.value]), Ie = k(() => e.remote ? e.debounce : 0), I = k(() => e.remote && !v.inputValue && v.options.size === 0), R = k(() => e.loading ? e.loadingText || s("el.select.loading") : e.filterable && v.inputValue && v.options.size > 0 && z.value === 0 ? e.noMatchText || s("el.select.noMatch") : v.options.size === 0 ? e.noDataText || s("el.select.noData") : null), z = k(() => B.value.filter((e) => e.visible).length), B = k(() => {
435
+ let e = Array.from(v.options.values()), t = [];
436
+ return v.optionValues.forEach((n) => {
437
+ let r = e.findIndex((e) => e.value === n);
438
+ r > -1 && t.push(e[r]);
439
+ }), t.length >= e.length ? t : e;
440
+ }), V = k(() => Array.from(v.cachedOptions.values())), Re = k(() => {
441
+ let t = B.value.filter((e) => !e.created).some((e) => e.currentLabel === v.inputValue);
442
+ return e.filterable && e.allowCreate && v.inputValue !== "" && !t;
443
+ }), U = () => {
444
+ e.filterable && a(e.filterMethod) || e.filterable && e.remote && a(e.remoteMethod) || B.value.forEach((e) => {
445
+ var t;
446
+ (t = e.updateOption) == null || t.call(e, v.inputValue);
447
+ });
448
+ }, W = fe(), G = k(() => ["small"].includes(W.value) ? "small" : "default"), Be = k({
449
+ get() {
450
+ return C.value && (e.loading || !I.value || e.remote && !!c.empty) && (!we.value || !ie(v.previousQuery) || v.options.size > 0);
451
+ },
452
+ set(e) {
453
+ C.value = e;
454
+ }
455
+ }), Ve = k(() => {
456
+ if (e.multiple && !te(e.modelValue)) return T(e.modelValue).length === 0 && !v.inputValue;
457
+ let n = t(e.modelValue) ? e.modelValue[0] : e.modelValue;
458
+ return e.filterable || te(n) ? !v.inputValue : !0;
459
+ }), He = k(() => {
460
+ let t = e.placeholder ?? s("el.select.placeholder");
461
+ return e.multiple || !M.value ? t : v.selectedLabel;
462
+ }), K = k(() => ne ? null : "mouseenter");
463
+ q(() => e.modelValue, (t, n) => {
464
+ e.multiple && e.filterable && !e.reserveKeyword && (v.inputValue = "", Ue("")), Ge(), !Q(t, n) && e.validateEvent && (E == null || E.validate("change").catch((e) => ae(e)));
465
+ }, {
466
+ flush: "post",
467
+ deep: !0
468
+ }), q(() => C.value, (e) => {
469
+ e ? Ue(v.inputValue) : (v.inputValue = "", v.previousQuery = null, v.isBeforeHide = !0, v.menuVisibleOnFocus = !1);
470
+ }), q(() => v.options.entries(), () => {
471
+ se && (Ge(), e.defaultFirstOption && (e.filterable || e.remote) && z.value && We());
472
+ }, { flush: "post" }), q([() => v.hoveringIndex, B], ([e]) => {
473
+ oe(e) && e > -1 ? w.value = B.value[e] || {} : w.value = {}, B.value.forEach((e) => {
474
+ e.hover = w.value === e;
475
+ });
476
+ }), Xe(() => {
477
+ v.isBeforeHide || U();
478
+ });
479
+ let Ue = (t) => {
480
+ v.previousQuery === t || ke.value || (v.previousQuery = t, e.filterable && a(e.filterMethod) ? e.filterMethod(t) : e.filterable && e.remote && a(e.remoteMethod) && e.remoteMethod(t), e.defaultFirstOption && (e.filterable || e.remote) && z.value ? L(We) : L(qe));
481
+ }, We = () => {
482
+ let e = B.value.filter((e) => e.visible && !e.disabled && !e.states.groupDisabled), t = e.find((e) => e.created), n = e[0];
483
+ v.hoveringIndex = lt(B.value.map((e) => e.value), t || n);
484
+ }, Ge = () => {
485
+ if (e.multiple) v.selectedLabel = "";
486
+ else {
487
+ let n = Ke(t(e.modelValue) ? e.modelValue[0] : e.modelValue);
488
+ v.selectedLabel = n.currentLabel, v.selected = [n];
489
+ return;
490
+ }
491
+ let n = [];
492
+ te(e.modelValue) || T(e.modelValue).forEach((e) => {
493
+ n.push(Ke(e));
494
+ }), v.selected = n;
495
+ }, Ke = (t) => {
496
+ let r, i = n(t);
497
+ for (let n = v.cachedOptions.size - 1; n >= 0; n--) {
498
+ let a = V.value[n];
499
+ if (i ? Z(a.value, e.valueKey) === Z(t, e.valueKey) : a.value === t) {
500
+ r = {
501
+ index: B.value.filter((e) => !e.created).indexOf(a),
502
+ value: t,
503
+ currentLabel: a.currentLabel,
504
+ get isDisabled() {
505
+ return a.isDisabled;
506
+ }
507
+ };
508
+ break;
509
+ }
510
+ }
511
+ return r || {
512
+ index: -1,
513
+ value: t,
514
+ currentLabel: i ? t.label : t ?? ""
515
+ };
516
+ }, qe = () => {
517
+ let e = v.selected.length;
518
+ if (e > 0) {
519
+ let t = v.selected[e - 1];
520
+ v.hoveringIndex = B.value.findIndex((e) => xt(t) === xt(e));
521
+ } else v.hoveringIndex = -1;
522
+ }, Ye = () => {
523
+ v.selectionWidth = Number.parseFloat(window.getComputedStyle(y.value).width);
524
+ }, J = () => {
525
+ v.collapseItemWidth = Se.value.getBoundingClientRect().width;
526
+ }, Y = () => {
527
+ var e, t;
528
+ (e = b.value) == null || (t = e.updatePopper) == null || t.call(e);
529
+ }, X = () => {
530
+ var e, t;
531
+ (e = x.value) == null || (t = e.updatePopper) == null || t.call(e);
532
+ }, Ze = () => {
533
+ v.inputValue.length > 0 && !C.value && (C.value = !0), Ue(v.inputValue);
534
+ }, Qe = (t) => {
535
+ if (v.inputValue = t.target.value, e.remote) we.value = !0, $e();
536
+ else return Ze();
537
+ }, $e = re(() => {
538
+ Ze(), we.value = !1;
539
+ }, Ie), rt = (t) => {
540
+ Q(e.modelValue, t) || o(h, t);
541
+ }, it = (e) => tt(e, (e) => {
542
+ let t = v.cachedOptions.get(e);
543
+ return !(t != null && t.disabled) && !(t != null && t.states.groupDisabled);
544
+ }), at = (t) => {
545
+ let n = l(t);
546
+ if (e.multiple && n !== u.delete && t.target.value.length <= 0) {
547
+ let t = T(e.modelValue).slice(), n = it(t);
548
+ if (n < 0) return;
549
+ let r = t[n];
550
+ t.splice(n, 1), o(m, t), rt(t), o("remove-tag", r);
551
+ }
552
+ }, ot = (t, n) => {
553
+ let r = v.selected.indexOf(n);
554
+ if (r > -1 && !D.value) {
555
+ let t = T(e.modelValue).slice();
556
+ t.splice(r, 1), o(m, t), rt(t), o("remove-tag", n.value);
557
+ }
558
+ t.stopPropagation(), $();
559
+ }, st = (t) => {
560
+ t.stopPropagation();
561
+ let n = e.multiple ? [] : De.value;
562
+ if (e.multiple) for (let e of v.selected) e.isDisabled && n.push(e.value);
563
+ o(m, n), rt(n), v.hoveringIndex = -1, C.value = !1, o("clear"), $();
564
+ }, ct = (t) => {
565
+ if (e.multiple) {
566
+ let n = T(e.modelValue ?? []).slice(), r = lt(n, t);
567
+ r > -1 ? n.splice(r, 1) : (e.multipleLimit <= 0 || n.length < e.multipleLimit) && n.push(t.value), o(m, n), rt(n), t.created && Ue(""), e.filterable && (t.created || !e.reserveKeyword) && (v.inputValue = "");
568
+ } else !Q(e.modelValue, t.value) && o("update:modelValue", t.value), rt(t.value), C.value = !1;
569
+ $(), !C.value && L(() => {
570
+ ut(t);
571
+ });
572
+ }, lt = (t, n) => te(n) ? -1 : r(n.value) ? t.findIndex((t) => Q(Z(t, e.valueKey), xt(n))) : t.indexOf(n.value), ut = (e) => {
573
+ var n;
574
+ let r = t(e) ? e[e.length - 1] : e, i = null;
575
+ if (!nt(r == null ? void 0 : r.value)) {
576
+ let e = B.value.filter((e) => e.value === r.value);
577
+ e.length > 0 && (i = e[0].$el);
578
+ }
579
+ if (b.value && i) {
580
+ var a, o;
581
+ let e = (a = b.value) == null || (a = a.popperRef) == null || (a = a.contentRef) == null || (o = a.querySelector) == null ? void 0 : o.call(a, `.${ee.be("dropdown", "wrap")}`);
582
+ e && le(e, i);
583
+ }
584
+ (n = Ce.value) == null || n.handleScroll();
585
+ }, dt = (e) => {
586
+ v.options.set(e.value, e), v.cachedOptions.set(e.value, e);
587
+ }, ft = (e, t) => {
588
+ v.options.get(e) === t && v.options.delete(e);
589
+ }, pt = k(() => {
590
+ var e;
591
+ return (e = b.value) == null || (e = e.popperRef) == null ? void 0 : e.contentRef;
592
+ }), mt = () => {
593
+ v.isBeforeHide = !1, L(() => {
594
+ var e;
595
+ (e = Ce.value) == null || e.update(), ut(v.selected);
596
+ });
597
+ }, $ = () => {
598
+ var e;
599
+ (e = S.value) == null || e.focus();
600
+ }, ht = () => {
601
+ var e;
602
+ if (C.value) {
603
+ C.value = !1, L(() => {
604
+ var e;
605
+ return (e = S.value) == null ? void 0 : e.blur();
606
+ });
607
+ return;
608
+ }
609
+ (e = S.value) == null || e.blur();
610
+ }, gt = (e) => {
611
+ st(e);
612
+ }, _t = (e) => {
613
+ if (C.value = !1, A.value) {
614
+ let t = new FocusEvent("blur", e);
615
+ L(() => j(t));
616
+ }
617
+ }, vt = () => {
618
+ v.inputValue.length > 0 ? v.inputValue = "" : C.value = !1;
619
+ }, yt = (t) => {
620
+ var n;
621
+ D.value || e.filterable && C.value && t && !((n = de.value) != null && n.contains(t.target)) || (ne && (v.inputHovering = !0), v.menuVisibleOnFocus ? v.menuVisibleOnFocus = !1 : C.value = !C.value);
622
+ }, bt = () => {
623
+ if (!C.value) yt();
624
+ else {
625
+ let e = B.value[v.hoveringIndex];
626
+ e && !e.isDisabled && ct(e);
627
+ }
628
+ }, xt = (t) => r(t.value) ? Z(t.value, e.valueKey) : t.value, St = k(() => B.value.filter((e) => e.visible).every((e) => e.isDisabled)), Ct = k(() => e.multiple ? e.collapseTags ? v.selected.slice(0, e.maxCollapseTags) : v.selected : []), wt = k(() => e.multiple && e.collapseTags ? v.selected.slice(e.maxCollapseTags) : []), Tt = (e) => {
629
+ if (!C.value) {
630
+ C.value = !0;
631
+ return;
632
+ }
633
+ if (!(v.options.size === 0 || z.value === 0 || ke.value) && !St.value) {
634
+ e === "next" ? (v.hoveringIndex++, v.hoveringIndex === v.options.size && (v.hoveringIndex = 0)) : e === "prev" && (v.hoveringIndex--, v.hoveringIndex < 0 && (v.hoveringIndex = v.options.size - 1));
635
+ let t = B.value[v.hoveringIndex];
636
+ (t.isDisabled || !t.visible) && Tt(e), L(() => ut(w.value));
637
+ }
638
+ }, Et = (e, t, n, r) => {
639
+ for (let i = t; i >= 0 && i < r; i += n) {
640
+ let t = e[i];
641
+ if (!(t != null && t.isDisabled) && t != null && t.visible) return i;
642
+ }
643
+ return null;
644
+ }, Dt = (e, t) => {
645
+ let n = v.options.size;
646
+ if (n === 0) return;
647
+ let r = et(e, 0, n - 1), i = B.value, a = t === "up" ? -1 : 1, o = Et(i, r, a, n) ?? Et(i, r - a, -a, n);
648
+ o != null && (v.hoveringIndex = o, L(() => ut(w.value)));
649
+ }, Ot = (e) => {
650
+ let t = l(e), n = !0;
651
+ switch (t) {
652
+ case u.up:
653
+ Tt("prev");
654
+ break;
655
+ case u.down:
656
+ Tt("next");
657
+ break;
658
+ case u.enter:
659
+ case u.numpadEnter:
660
+ ke.value || bt();
661
+ break;
662
+ case u.esc:
663
+ vt();
664
+ break;
665
+ case u.backspace:
666
+ n = !1, at(e);
667
+ return;
668
+ case u.home:
669
+ if (!C.value) return;
670
+ Dt(0, "down");
671
+ break;
672
+ case u.end:
673
+ if (!C.value) return;
674
+ Dt(v.options.size - 1, "up");
675
+ break;
676
+ case u.pageUp:
677
+ if (!C.value) return;
678
+ Dt(v.hoveringIndex - 10, "up");
679
+ break;
680
+ case u.pageDown:
681
+ if (!C.value) return;
682
+ Dt(v.hoveringIndex + 10, "down");
683
+ break;
684
+ default:
685
+ n = !1;
686
+ break;
687
+ }
688
+ n && (e.preventDefault(), e.stopPropagation());
689
+ }, kt = () => {
690
+ if (!y.value) return 0;
691
+ let e = window.getComputedStyle(y.value);
692
+ return Number.parseFloat(e.gap || "6px");
693
+ }, At = k(() => {
694
+ let t = kt(), n = e.filterable ? t + 11 : 0;
695
+ return { maxWidth: `${Se.value && e.maxCollapseTags === 1 ? v.selectionWidth - v.collapseItemWidth - t - n : v.selectionWidth - n}px` };
696
+ }), jt = k(() => ({ maxWidth: `${v.selectionWidth}px` })), Mt = (e) => {
697
+ o("popup-scroll", e);
698
+ };
699
+ _(y, Ye), _(O, Y), _(be, X), _(Se, J);
700
+ let Nt;
701
+ return q(() => Be.value, (e) => {
702
+ e ? Nt = _(_e, Y).stop : (Nt == null || Nt(), Nt = void 0), o("visible-change", e);
703
+ }), Le(() => {
704
+ Ge();
705
+ }), {
706
+ inputId: Ee,
707
+ contentId: f,
708
+ nsSelect: ee,
709
+ nsInput: g,
710
+ states: v,
711
+ isFocused: A,
712
+ expanded: C,
713
+ optionsArray: B,
714
+ hoverOption: w,
715
+ selectSize: W,
716
+ filteredOptionsCount: z,
717
+ updateTooltip: Y,
718
+ updateTagTooltip: X,
719
+ debouncedOnInputChange: $e,
720
+ onInput: Qe,
721
+ deletePrevTag: at,
722
+ deleteTag: ot,
723
+ deleteSelected: st,
724
+ handleOptionSelect: ct,
725
+ scrollToOption: ut,
726
+ hasModelValue: M,
727
+ shouldShowPlaceholder: Ve,
728
+ currentPlaceholder: He,
729
+ mouseEnterEventName: K,
730
+ needStatusIcon: N,
731
+ showClearBtn: Ne,
732
+ iconComponent: P,
733
+ iconReverse: Pe,
734
+ validateState: F,
735
+ validateIcon: Fe,
736
+ showNewOption: Re,
737
+ updateOptions: U,
738
+ collapseTagSize: G,
739
+ setSelected: Ge,
740
+ selectDisabled: D,
741
+ emptyText: R,
742
+ handleCompositionStart: Ae,
743
+ handleCompositionUpdate: je,
744
+ handleCompositionEnd: Me,
745
+ handleKeydown: Ot,
746
+ onOptionCreate: dt,
747
+ onOptionDestroy: ft,
748
+ handleMenuEnter: mt,
749
+ focus: $,
750
+ blur: ht,
751
+ handleClearClick: gt,
752
+ handleClickOutside: _t,
753
+ handleEsc: vt,
754
+ toggleMenu: yt,
755
+ selectOption: bt,
756
+ getValueKey: xt,
757
+ navigateOptions: Tt,
758
+ dropdownMenuVisible: Be,
759
+ showTagList: Ct,
760
+ collapseTagList: wt,
761
+ popupScroll: Mt,
762
+ getOption: Ke,
763
+ tagStyle: At,
764
+ collapseTagStyle: jt,
765
+ popperRef: pt,
766
+ inputRef: S,
767
+ tooltipRef: b,
768
+ tagTooltipRef: x,
769
+ prefixRef: ue,
770
+ suffixRef: de,
771
+ selectRef: ce,
772
+ wrapperRef: O,
773
+ selectionRef: y,
774
+ scrollbarRef: Ce,
775
+ menuRef: _e,
776
+ tagMenuRef: be,
777
+ collapseItemRef: Se
778
+ };
779
+ }, St = Pe({
780
+ name: "ElOptions",
781
+ setup(n, { slots: r }) {
782
+ let i = Fe(at), o = [];
783
+ return () => {
784
+ var n, s;
785
+ let c = (n = r.default) == null ? void 0 : n.call(r), l = [];
786
+ function u(n) {
787
+ t(n) && n.forEach((n) => {
788
+ var r, i, o, s;
789
+ let c = (r = (n == null ? void 0 : n.type) || {}) == null ? void 0 : r.name;
790
+ c === "ElOptionGroup" ? u(!e(n.children) && !t(n.children) && a((i = n.children) == null ? void 0 : i.default) ? (o = n.children) == null ? void 0 : o.default() : n.children) : c === "ElOption" ? l.push((s = n.props) == null ? void 0 : s.value) : t(n.children) && u(n.children);
791
+ });
792
+ }
793
+ return c.length && u((s = c[0]) == null ? void 0 : s.children), Q(l, o) || (o = l, i && (i.states.optionValues = l)), c;
794
+ };
795
+ }
796
+ }), Ct = "ElSelect", wt = /* @__PURE__ */ new WeakMap(), Tt = (e) => (...t) => {
797
+ var n, r;
798
+ let i = t[0];
799
+ if (!i || i.includes("Slot \"default\" invoked outside of the render function") && (n = t[2]) != null && n.includes("ElTreeSelect")) return;
800
+ let a = (r = wt.get(e)) == null ? void 0 : r.originalWarnHandler;
801
+ if (a) {
802
+ a(...t);
803
+ return;
804
+ }
805
+ console.warn(...t);
806
+ }, Et = (e) => {
807
+ let t = wt.get(e);
808
+ return t || (t = {
809
+ originalWarnHandler: e.config.warnHandler,
810
+ handler: Tt(e),
811
+ count: 0
812
+ }, wt.set(e, t)), t;
813
+ }, Dt = Pe({
814
+ name: Ct,
815
+ componentName: Ct,
816
+ components: {
817
+ ElSelectMenu: bt,
818
+ ElOption: $,
819
+ ElOptions: St,
820
+ ElOptionGroup: _t,
821
+ ElTag: De,
822
+ ElScrollbar: Te,
823
+ ElTooltip: de,
824
+ ElIcon: w
825
+ },
826
+ directives: { ClickOutside: Ee },
827
+ props: ct,
828
+ emits: [
829
+ m,
830
+ h,
831
+ "remove-tag",
832
+ "clear",
833
+ "visible-change",
834
+ "focus",
835
+ "blur",
836
+ "popup-scroll"
837
+ ],
838
+ setup(e, { emit: n, slots: i }) {
839
+ let a = F(), o = Et(a.appContext);
840
+ o.count += 1, a.appContext.config.warnHandler = o.handler;
841
+ let s = k(() => {
842
+ let { modelValue: n, multiple: r } = e, i = r ? [] : void 0;
843
+ return t(n) ? r ? n : i : r ? i : n;
844
+ }), c = ze({
845
+ ...Ke(e),
846
+ modelValue: s
847
+ }), l = xt(c, n), { calculatorRef: u, inputStyle: d } = rt(), { getLabel: f, getValue: p, getOptions: m, getDisabled: h } = st(e), ee = (e) => ({
848
+ label: f(e),
849
+ value: p(e),
850
+ disabled: h(e)
851
+ }), te = (e) => e.reduce((e, t) => (e.push(t), t.children && t.children.length > 0 && e.push(...te(t.children)), e), []), ne = (e) => {
852
+ _e(e || []).forEach((e) => {
853
+ if (r(e) && (e.type.name === "ElOption" || e.type.name === "ElTree")) {
854
+ var t;
855
+ let n = e.type.name;
856
+ if (n === "ElTree") te(((t = e.props) == null ? void 0 : t.data) || []).forEach((e) => {
857
+ e.currentLabel = e.label ?? (r(e.value) ? "" : e.value), l.onOptionCreate(e);
858
+ });
859
+ else if (n === "ElOption") {
860
+ let t = { ...e.props };
861
+ t.currentLabel = t.label ?? (r(t.value) ? "" : t.value), l.onOptionCreate(t);
862
+ }
863
+ }
864
+ });
865
+ };
866
+ q(() => {
867
+ var t;
868
+ return [e.persistent || l.expanded.value || !i.default || (t = i.default) == null ? void 0 : t.call(i), s.value];
869
+ }, () => {
870
+ var t;
871
+ e.persistent || l.expanded.value || i.default && (l.states.options.clear(), ne((t = i.default) == null ? void 0 : t.call(i)));
872
+ }, { immediate: !0 }), Re(at, ze({
873
+ props: c,
874
+ states: l.states,
875
+ selectRef: l.selectRef,
876
+ optionsArray: l.optionsArray,
877
+ setSelected: l.setSelected,
878
+ handleOptionSelect: l.handleOptionSelect,
879
+ onOptionCreate: l.onOptionCreate,
880
+ onOptionDestroy: l.onOptionDestroy
881
+ }));
882
+ let re = k(() => e.multiple ? l.states.selected.map((e) => e.currentLabel) : l.states.selectedLabel);
883
+ return B(() => {
884
+ let e = wt.get(a.appContext);
885
+ e && (--e.count, e.count <= 0 && (a.appContext.config.warnHandler = e.originalWarnHandler, wt.delete(a.appContext)));
886
+ }), {
887
+ ...l,
888
+ modelValue: s,
889
+ selectedLabel: re,
890
+ calculatorRef: u,
891
+ inputStyle: d,
892
+ getLabel: f,
893
+ getValue: p,
894
+ getOptions: m,
895
+ getDisabled: h,
896
+ getOptionProps: ee
897
+ };
898
+ }
899
+ }), Ot = [
900
+ "id",
901
+ "value",
902
+ "name",
903
+ "disabled",
904
+ "autocomplete",
905
+ "tabindex",
906
+ "readonly",
907
+ "aria-activedescendant",
908
+ "aria-controls",
909
+ "aria-expanded",
910
+ "aria-label"
911
+ ], kt = ["textContent"], At = { key: 1 };
912
+ function jt(e, t, n, r, i, a) {
913
+ let o = G("el-tag"), s = G("el-tooltip"), c = G("el-icon"), l = G("el-option"), u = G("el-option-group"), d = G("el-options"), f = G("el-scrollbar"), p = G("el-select-menu"), m = Be("click-outside");
914
+ return Y((V(), M("div", I({
915
+ ref: "selectRef",
916
+ class: [e.nsSelect.b(), e.nsSelect.m(e.selectSize)]
917
+ }, { [Ue(e.mouseEnterEventName)]: t[11] || (t[11] = (t) => e.states.inputHovering = !0) }, { onMouseleave: t[12] || (t[12] = (t) => e.states.inputHovering = !1) }), [P(s, {
918
+ ref: "tooltipRef",
919
+ visible: e.dropdownMenuVisible,
920
+ placement: e.placement,
921
+ teleported: e.teleported,
922
+ "popper-class": [e.nsSelect.e("popper"), e.popperClass],
923
+ "popper-style": e.popperStyle,
924
+ "popper-options": e.popperOptions,
925
+ "fallback-placements": e.fallbackPlacements,
926
+ effect: e.effect,
927
+ pure: "",
928
+ trigger: "click",
929
+ transition: `${e.nsSelect.namespace.value}-zoom-in-top`,
930
+ "stop-popper-mouse-event": !1,
931
+ "gpu-acceleration": !1,
932
+ persistent: e.persistent,
933
+ "append-to": e.appendTo,
934
+ "show-arrow": e.showArrow,
935
+ offset: e.offset,
936
+ onBeforeShow: e.handleMenuEnter,
937
+ onHide: t[10] || (t[10] = (t) => e.states.isBeforeHide = !1)
938
+ }, {
939
+ default: J(() => {
940
+ var n;
941
+ return [N("div", {
942
+ ref: "wrapperRef",
943
+ class: R([
944
+ e.nsSelect.e("wrapper"),
945
+ e.nsSelect.is("focused", e.isFocused),
946
+ e.nsSelect.is("hovering", e.states.inputHovering),
947
+ e.nsSelect.is("filterable", e.filterable),
948
+ e.nsSelect.is("disabled", e.selectDisabled)
949
+ ]),
950
+ onClick: t[7] || (t[7] = X((...t) => e.toggleMenu && e.toggleMenu(...t), ["prevent"]))
951
+ }, [
952
+ e.$slots.prefix ? (V(), M("div", {
953
+ key: 0,
954
+ ref: "prefixRef",
955
+ class: R(e.nsSelect.e("prefix"))
956
+ }, [W(e.$slots, "prefix")], 2)) : j("v-if", !0),
957
+ N("div", {
958
+ ref: "selectionRef",
959
+ class: R([e.nsSelect.e("selection"), e.nsSelect.is("near", e.multiple && !e.$slots.prefix && !!e.states.selected.length)])
960
+ }, [
961
+ e.multiple ? W(e.$slots, "tag", {
962
+ key: 0,
963
+ data: e.states.selected,
964
+ deleteTag: e.deleteTag,
965
+ selectDisabled: e.selectDisabled
966
+ }, () => {
967
+ var t, n, r, i, a, c, l, u, d, f, p, m, h;
968
+ return [(V(!0), M(O, null, U(e.showTagList, (t) => (V(), M("div", {
969
+ key: e.getValueKey(t),
970
+ class: R(e.nsSelect.e("selected-item"))
971
+ }, [P(o, {
972
+ closable: !e.selectDisabled && !t.isDisabled,
973
+ size: e.collapseTagSize,
974
+ type: e.tagType,
975
+ effect: e.tagEffect,
976
+ "disable-transitions": "",
977
+ style: z(e.tagStyle),
978
+ onClose: (n) => e.deleteTag(n, t)
979
+ }, {
980
+ default: J(() => [N("span", { class: R(e.nsSelect.e("tags-text")) }, [W(e.$slots, "label", {
981
+ index: t.index,
982
+ label: t.currentLabel,
983
+ value: t.value
984
+ }, () => [Ne(K(t.currentLabel), 1)])], 2)]),
985
+ _: 2
986
+ }, 1032, [
987
+ "closable",
988
+ "size",
989
+ "type",
990
+ "effect",
991
+ "style",
992
+ "onClose"
993
+ ])], 2))), 128)), e.collapseTags && e.states.selected.length > e.maxCollapseTags ? (V(), A(s, {
994
+ key: 0,
995
+ ref: "tagTooltipRef",
996
+ disabled: e.dropdownMenuVisible || !e.collapseTagsTooltip,
997
+ "fallback-placements": ((t = e.tagTooltip) == null ? void 0 : t.fallbackPlacements) ?? [
998
+ "bottom",
999
+ "top",
1000
+ "right",
1001
+ "left"
1002
+ ],
1003
+ effect: ((n = e.tagTooltip) == null ? void 0 : n.effect) ?? e.effect,
1004
+ placement: ((r = e.tagTooltip) == null ? void 0 : r.placement) ?? "bottom",
1005
+ "popper-class": ((i = e.tagTooltip) == null ? void 0 : i.popperClass) ?? e.popperClass,
1006
+ "popper-style": ((a = e.tagTooltip) == null ? void 0 : a.popperStyle) ?? e.popperStyle,
1007
+ teleported: ((c = e.tagTooltip) == null ? void 0 : c.teleported) ?? e.teleported,
1008
+ "append-to": ((l = e.tagTooltip) == null ? void 0 : l.appendTo) ?? e.appendTo,
1009
+ "popper-options": ((u = e.tagTooltip) == null ? void 0 : u.popperOptions) ?? e.popperOptions,
1010
+ transition: (d = e.tagTooltip) == null ? void 0 : d.transition,
1011
+ "show-after": (f = e.tagTooltip) == null ? void 0 : f.showAfter,
1012
+ "hide-after": (p = e.tagTooltip) == null ? void 0 : p.hideAfter,
1013
+ "auto-close": (m = e.tagTooltip) == null ? void 0 : m.autoClose,
1014
+ offset: (h = e.tagTooltip) == null ? void 0 : h.offset
1015
+ }, {
1016
+ default: J(() => [N("div", {
1017
+ ref: "collapseItemRef",
1018
+ class: R(e.nsSelect.e("selected-item"))
1019
+ }, [P(o, {
1020
+ closable: !1,
1021
+ size: e.collapseTagSize,
1022
+ type: e.tagType,
1023
+ effect: e.tagEffect,
1024
+ "disable-transitions": "",
1025
+ style: z(e.collapseTagStyle)
1026
+ }, {
1027
+ default: J(() => [N("span", { class: R(e.nsSelect.e("tags-text")) }, " + " + K(e.states.selected.length - e.maxCollapseTags), 3)]),
1028
+ _: 1
1029
+ }, 8, [
1030
+ "size",
1031
+ "type",
1032
+ "effect",
1033
+ "style"
1034
+ ])], 2)]),
1035
+ content: J(() => [N("div", {
1036
+ ref: "tagMenuRef",
1037
+ class: R(e.nsSelect.e("selection"))
1038
+ }, [(V(!0), M(O, null, U(e.collapseTagList, (t) => (V(), M("div", {
1039
+ key: e.getValueKey(t),
1040
+ class: R(e.nsSelect.e("selected-item"))
1041
+ }, [P(o, {
1042
+ class: "in-tooltip",
1043
+ closable: !e.selectDisabled && !t.isDisabled,
1044
+ size: e.collapseTagSize,
1045
+ type: e.tagType,
1046
+ effect: e.tagEffect,
1047
+ "disable-transitions": "",
1048
+ onClose: (n) => e.deleteTag(n, t)
1049
+ }, {
1050
+ default: J(() => [N("span", { class: R(e.nsSelect.e("tags-text")) }, [W(e.$slots, "label", {
1051
+ index: t.index,
1052
+ label: t.currentLabel,
1053
+ value: t.value
1054
+ }, () => [Ne(K(t.currentLabel), 1)])], 2)]),
1055
+ _: 2
1056
+ }, 1032, [
1057
+ "closable",
1058
+ "size",
1059
+ "type",
1060
+ "effect",
1061
+ "onClose"
1062
+ ])], 2))), 128))], 2)]),
1063
+ _: 3
1064
+ }, 8, [
1065
+ "disabled",
1066
+ "fallback-placements",
1067
+ "effect",
1068
+ "placement",
1069
+ "popper-class",
1070
+ "popper-style",
1071
+ "teleported",
1072
+ "append-to",
1073
+ "popper-options",
1074
+ "transition",
1075
+ "show-after",
1076
+ "hide-after",
1077
+ "auto-close",
1078
+ "offset"
1079
+ ])) : j("v-if", !0)];
1080
+ }) : j("v-if", !0),
1081
+ N("div", { class: R([
1082
+ e.nsSelect.e("selected-item"),
1083
+ e.nsSelect.e("input-wrapper"),
1084
+ e.nsSelect.is("hidden", !e.filterable || e.selectDisabled || !e.states.inputValue && !e.isFocused)
1085
+ ]) }, [N("input", {
1086
+ id: e.inputId,
1087
+ ref: "inputRef",
1088
+ value: e.states.inputValue,
1089
+ type: "text",
1090
+ name: e.name,
1091
+ class: R([e.nsSelect.e("input"), e.nsSelect.is(e.selectSize)]),
1092
+ disabled: e.selectDisabled,
1093
+ autocomplete: e.autocomplete,
1094
+ style: z(e.inputStyle),
1095
+ tabindex: e.tabindex,
1096
+ role: "combobox",
1097
+ readonly: !e.filterable,
1098
+ spellcheck: "false",
1099
+ "aria-activedescendant": ((n = e.hoverOption) == null ? void 0 : n.id) || "",
1100
+ "aria-controls": e.contentId,
1101
+ "aria-expanded": e.dropdownMenuVisible,
1102
+ "aria-label": e.ariaLabel,
1103
+ "aria-autocomplete": "none",
1104
+ "aria-haspopup": "listbox",
1105
+ onKeydown: t[0] || (t[0] = (...t) => e.handleKeydown && e.handleKeydown(...t)),
1106
+ onCompositionstart: t[1] || (t[1] = (...t) => e.handleCompositionStart && e.handleCompositionStart(...t)),
1107
+ onCompositionupdate: t[2] || (t[2] = (...t) => e.handleCompositionUpdate && e.handleCompositionUpdate(...t)),
1108
+ onCompositionend: t[3] || (t[3] = (...t) => e.handleCompositionEnd && e.handleCompositionEnd(...t)),
1109
+ onInput: t[4] || (t[4] = (...t) => e.onInput && e.onInput(...t)),
1110
+ onChange: t[5] || (t[5] = X(() => {}, ["stop"])),
1111
+ onClick: t[6] || (t[6] = X((...t) => e.toggleMenu && e.toggleMenu(...t), ["stop"]))
1112
+ }, null, 46, Ot), e.filterable ? (V(), M("span", {
1113
+ key: 0,
1114
+ ref: "calculatorRef",
1115
+ "aria-hidden": "true",
1116
+ class: R(e.nsSelect.e("input-calculator")),
1117
+ textContent: K(e.states.inputValue)
1118
+ }, null, 10, kt)) : j("v-if", !0)], 2),
1119
+ e.shouldShowPlaceholder ? (V(), M("div", {
1120
+ key: 1,
1121
+ class: R([
1122
+ e.nsSelect.e("selected-item"),
1123
+ e.nsSelect.e("placeholder"),
1124
+ e.nsSelect.is("transparent", !e.hasModelValue || e.expanded && !e.states.inputValue)
1125
+ ])
1126
+ }, [e.hasModelValue ? W(e.$slots, "label", {
1127
+ key: 0,
1128
+ index: e.getOption(e.modelValue).index,
1129
+ label: e.currentPlaceholder,
1130
+ value: e.modelValue
1131
+ }, () => [N("span", null, K(e.currentPlaceholder), 1)]) : (V(), M("span", At, K(e.currentPlaceholder), 1))], 2)) : j("v-if", !0)
1132
+ ], 2),
1133
+ N("div", {
1134
+ ref: "suffixRef",
1135
+ class: R(e.nsSelect.e("suffix"))
1136
+ }, [
1137
+ e.iconComponent && !e.showClearBtn ? (V(), A(c, {
1138
+ key: 0,
1139
+ class: R([
1140
+ e.nsSelect.e("caret"),
1141
+ e.nsSelect.e("icon"),
1142
+ e.iconReverse
1143
+ ])
1144
+ }, {
1145
+ default: J(() => [(V(), A(Ve(e.iconComponent)))]),
1146
+ _: 1
1147
+ }, 8, ["class"])) : j("v-if", !0),
1148
+ e.showClearBtn && e.clearIcon ? (V(), A(c, {
1149
+ key: 1,
1150
+ class: R([
1151
+ e.nsSelect.e("caret"),
1152
+ e.nsSelect.e("icon"),
1153
+ e.nsSelect.e("clear")
1154
+ ]),
1155
+ onClick: e.handleClearClick
1156
+ }, {
1157
+ default: J(() => [(V(), A(Ve(e.clearIcon)))]),
1158
+ _: 1
1159
+ }, 8, ["class", "onClick"])) : j("v-if", !0),
1160
+ e.validateState && e.validateIcon && e.needStatusIcon ? (V(), A(c, {
1161
+ key: 2,
1162
+ class: R([
1163
+ e.nsInput.e("icon"),
1164
+ e.nsInput.e("validateIcon"),
1165
+ e.nsInput.is("loading", e.validateState === "validating")
1166
+ ])
1167
+ }, {
1168
+ default: J(() => [(V(), A(Ve(e.validateIcon)))]),
1169
+ _: 1
1170
+ }, 8, ["class"])) : j("v-if", !0)
1171
+ ], 2)
1172
+ ], 2)];
1173
+ }),
1174
+ content: J(() => [P(p, { ref: "menuRef" }, {
1175
+ default: J(() => [
1176
+ e.$slots.header ? (V(), M("div", {
1177
+ key: 0,
1178
+ class: R(e.nsSelect.be("dropdown", "header")),
1179
+ onClick: t[8] || (t[8] = X(() => {}, ["stop"]))
1180
+ }, [W(e.$slots, "header")], 2)) : j("v-if", !0),
1181
+ Y(P(f, {
1182
+ id: e.contentId,
1183
+ ref: "scrollbarRef",
1184
+ tag: "ul",
1185
+ "wrap-class": e.nsSelect.be("dropdown", "wrap"),
1186
+ "view-class": e.nsSelect.be("dropdown", "list"),
1187
+ class: R([e.nsSelect.is("empty", e.filteredOptionsCount === 0)]),
1188
+ role: "listbox",
1189
+ "aria-label": e.ariaLabel,
1190
+ "aria-orientation": "vertical",
1191
+ onScroll: e.popupScroll
1192
+ }, {
1193
+ default: J(() => [e.showNewOption ? (V(), A(l, {
1194
+ key: 0,
1195
+ value: e.states.inputValue,
1196
+ created: !0
1197
+ }, null, 8, ["value"])) : j("v-if", !0), P(d, null, {
1198
+ default: J(() => [W(e.$slots, "default", {}, () => [(V(!0), M(O, null, U(e.options, (t, n) => {
1199
+ var r;
1200
+ return V(), M(O, { key: n }, [(r = e.getOptions(t)) != null && r.length ? (V(), A(u, {
1201
+ key: 0,
1202
+ label: e.getLabel(t),
1203
+ disabled: e.getDisabled(t)
1204
+ }, {
1205
+ default: J(() => [(V(!0), M(O, null, U(e.getOptions(t), (t) => (V(), A(l, I({ key: e.getValue(t) }, { ref_for: !0 }, e.getOptionProps(t)), null, 16))), 128))]),
1206
+ _: 2
1207
+ }, 1032, ["label", "disabled"])) : (V(), A(l, I({
1208
+ key: 1,
1209
+ ref_for: !0
1210
+ }, e.getOptionProps(t)), null, 16))], 64);
1211
+ }), 128))])]),
1212
+ _: 3
1213
+ })]),
1214
+ _: 3
1215
+ }, 8, [
1216
+ "id",
1217
+ "wrap-class",
1218
+ "view-class",
1219
+ "class",
1220
+ "aria-label",
1221
+ "onScroll"
1222
+ ]), [[Ye, e.states.options.size > 0 && !e.loading]]),
1223
+ e.$slots.loading && e.loading ? (V(), M("div", {
1224
+ key: 1,
1225
+ class: R(e.nsSelect.be("dropdown", "loading"))
1226
+ }, [W(e.$slots, "loading")], 2)) : e.loading || e.filteredOptionsCount === 0 ? (V(), M("div", {
1227
+ key: 2,
1228
+ class: R(e.nsSelect.be("dropdown", "empty"))
1229
+ }, [W(e.$slots, "empty", {}, () => [N("span", null, K(e.emptyText), 1)])], 2)) : j("v-if", !0),
1230
+ e.$slots.footer ? (V(), M("div", {
1231
+ key: 3,
1232
+ class: R(e.nsSelect.be("dropdown", "footer")),
1233
+ onClick: t[9] || (t[9] = X(() => {}, ["stop"]))
1234
+ }, [W(e.$slots, "footer")], 2)) : j("v-if", !0)
1235
+ ]),
1236
+ _: 3
1237
+ }, 512)]),
1238
+ _: 3
1239
+ }, 8, [
1240
+ "visible",
1241
+ "placement",
1242
+ "teleported",
1243
+ "popper-class",
1244
+ "popper-style",
1245
+ "popper-options",
1246
+ "fallback-placements",
1247
+ "effect",
1248
+ "transition",
1249
+ "persistent",
1250
+ "append-to",
1251
+ "show-arrow",
1252
+ "offset",
1253
+ "onBeforeShow"
1254
+ ])], 16)), [[
1255
+ m,
1256
+ e.handleClickOutside,
1257
+ e.popperRef
1258
+ ]]);
1259
+ }
1260
+ //#endregion
1261
+ //#region node_modules/.pnpm/element-plus@2.13.6_typescr_b7ae825491da06c0282fd613061a7e37/node_modules/element-plus/es/components/select/index.mjs
1262
+ var Mt = s(/* @__PURE__ */ x(Dt, [["render", jt]]), {
1263
+ Option: $,
1264
+ OptionGroup: _t
1265
+ });
1266
+ o($), o(_t);
1267
+ //#endregion
1268
+ //#region src/components/form/FormSelect.vue
1269
+ var Nt = Ae(Mt).filter((e) => ![
1270
+ "value",
1271
+ "placeholder",
1272
+ "disabled"
1273
+ ].includes(e)), Pt = {
1274
+ name: "FormSelect",
1275
+ mixins: [
1276
+ je,
1277
+ Me,
1278
+ D
1279
+ ],
1280
+ props: {
1281
+ options: {
1282
+ type: Array,
1283
+ default: () => []
1284
+ },
1285
+ gender: Boolean,
1286
+ year: [Boolean, Number],
1287
+ all: Boolean,
1288
+ filterable: Boolean,
1289
+ confirm: Boolean,
1290
+ start: Number,
1291
+ end: Number,
1292
+ value: [
1293
+ String,
1294
+ Number,
1295
+ Array
1296
+ ],
1297
+ optionLabel: [String, Number],
1298
+ emitLabel: Boolean,
1299
+ english: Boolean,
1300
+ chinese: Boolean,
1301
+ typing: Boolean,
1302
+ remote: Boolean,
1303
+ allowCreate: Boolean,
1304
+ remoteMethod: Function,
1305
+ props: {
1306
+ type: Object,
1307
+ default: () => ({
1308
+ label: "label",
1309
+ value: "value"
1310
+ })
1311
+ },
1312
+ multiple: Boolean,
1313
+ multipleLimit: {
1314
+ type: Number,
1315
+ default: 0
1316
+ },
1317
+ multipleStringMode: Boolean,
1318
+ multipleStringSeparator: {
1319
+ type: String,
1320
+ default: ","
1321
+ }
1322
+ },
1323
+ data() {
1324
+ return {
1325
+ loading: !1,
1326
+ remoteOptions: [],
1327
+ innerValue: null
1328
+ };
1329
+ },
1330
+ computed: {
1331
+ prefix() {
1332
+ return "请选择";
1333
+ },
1334
+ inputProps() {
1335
+ return ke({
1336
+ ...Oe(this.$attrs),
1337
+ ...this.$props
1338
+ }, Nt);
1339
+ },
1340
+ innerOptions() {
1341
+ if (this.dictType) return this.dictItems;
1342
+ if (this.remote) return this.remoteOptions;
1343
+ if (this.gender) return [{
1344
+ [this.props.label]: "男",
1345
+ [this.props.value]: this.chinese ? "男" : this.typing ? 1 : "1"
1346
+ }, {
1347
+ [this.props.label]: "女",
1348
+ [this.props.value]: this.chinese ? "女" : this.typing ? 2 : "2"
1349
+ }];
1350
+ if (this.confirm) return [{
1351
+ [this.props.label]: "是",
1352
+ [this.props.value]: this.chinese ? "是" : this.english ? "Y" : this.typing ? 1 : "1"
1353
+ }, {
1354
+ [this.props.label]: "否",
1355
+ [this.props.value]: this.chinese ? "否" : this.english ? "N" : this.typing ? 0 : "0"
1356
+ }];
1357
+ if (this.all) return [{
1358
+ [this.props.value]: "",
1359
+ [this.props.label]: "全部"
1360
+ }, ...this.options];
1361
+ if (this.start && this.end) return Array(this.end - this.start + 1).fill(1).map((e, t) => ({
1362
+ [this.props.label]: this.start + t,
1363
+ [this.props.value]: this.start + t
1364
+ }));
1365
+ if (this.year) {
1366
+ let e = (/* @__PURE__ */ new Date()).getFullYear(), t = [], n = 10;
1367
+ Ze(this.year) && (n = this.year);
1368
+ for (let r = -n; r <= n; r++) {
1369
+ let n = e + r;
1370
+ t.push({
1371
+ [this.props.label]: n,
1372
+ [this.props.value]: n
1373
+ });
1374
+ }
1375
+ return t;
1376
+ }
1377
+ return this.options ? this.options.map((e) => (e[this.props.value] = e[this.props.value] ?? e[this.props.label], e)) : [];
1378
+ }
1379
+ },
1380
+ watch: { value: {
1381
+ immediate: !0,
1382
+ handler(e) {
1383
+ this.multiple && this.multipleStringMode ? this.innerValue = e == null ? void 0 : e.split(",").filter((e) => e) : this.innerValue = e;
1384
+ }
1385
+ } },
1386
+ created() {
1387
+ this.reloadOptions();
1388
+ },
1389
+ methods: {
1390
+ reloadOptions() {
1391
+ this.remote && this.fetchOptions();
1392
+ },
1393
+ async fetchOptions(e) {
1394
+ try {
1395
+ var t;
1396
+ this.loading = !0;
1397
+ let n = await this.remoteMethod(e, this.prop);
1398
+ ((t = n.data.data) == null ? void 0 : t.length) >= 0 ? $e(n.data.data[0]) ? this.remoteOptions = n.data.data.map((e) => ({
1399
+ [this.props.value]: e,
1400
+ [this.props.label]: e
1401
+ })) : Qe(n.data.data[0]) && (this.remoteOptions = n.data.data) : this.remoteOptions = [];
1402
+ } catch {}
1403
+ this.loading = !1;
1404
+ },
1405
+ emitInput(e) {
1406
+ if (this.multiple && this.multipleStringMode ? this.$emit("input", e.join(this.multipleStringSeparator)) : this.$emit("input", e), this.emitLabel) {
1407
+ let t = this.innerOptions.find((t) => t[this.props.value] === e), n = t == null ? void 0 : t[this.props.label];
1408
+ n !== this.optionLabel && this.$emit("update:optionLabel", n);
1409
+ }
1410
+ }
1411
+ }
1412
+ }, Ft = {
1413
+ key: 0,
1414
+ class: "el-form-item__warn"
1415
+ }, It = {
1416
+ key: 0,
1417
+ class: "el-form-item__error"
1418
+ };
1419
+ function Lt(e, t, n, r, i, a) {
1420
+ let o = G("ElOption"), s = G("ElSelect"), c = G("FormItem");
1421
+ return V(), A(c, I(e.formItemProps, {
1422
+ rules: e.computeRules,
1423
+ disabled: e.inputDisabled
1424
+ }), {
1425
+ default: J(() => [P(s, I({
1426
+ value: i.innerValue,
1427
+ filterable: n.filterable || !!n.year,
1428
+ placeholder: e.inputDisabled ? "--" : e.computePlaceholder,
1429
+ "allow-create": n.allowCreate || !!n.year
1430
+ }, a.inputProps, {
1431
+ disabled: e.inputDisabled,
1432
+ multiple: n.multiple,
1433
+ "multiple-limit": n.multipleLimit,
1434
+ loading: i.loading,
1435
+ remote: n.remote,
1436
+ "remote-method": a.fetchOptions,
1437
+ clearable: "",
1438
+ onClear: a.reloadOptions
1439
+ }, We(e.listeners), { onInput: a.emitInput }), {
1440
+ default: J(() => [W(e.$slots, "default", {}, () => [(V(!0), M(O, null, U(a.innerOptions, (t) => W(e.$slots, "option", {
1441
+ value: t[n.props.value],
1442
+ label: t[n.props.label]
1443
+ }, () => [(V(), A(o, {
1444
+ key: t[n.props.value],
1445
+ value: t[n.props.value],
1446
+ label: t[n.props.label]
1447
+ }, null, 8, ["value", "label"]))])), 256))])]),
1448
+ _: 3
1449
+ }, 16, [
1450
+ "value",
1451
+ "filterable",
1452
+ "placeholder",
1453
+ "allow-create",
1454
+ "disabled",
1455
+ "multiple",
1456
+ "multiple-limit",
1457
+ "loading",
1458
+ "remote",
1459
+ "remote-method",
1460
+ "onClear",
1461
+ "onInput"
1462
+ ]), e.$slots.warn ? (V(), M("div", Ft, [W(e.$slots, "warn")])) : j("v-if", !0)]),
1463
+ error: J(({ error: t }) => [e.$slots.error && e.$slots.error(t) ? (V(), M("div", It, [W(e.$slots, "error", { error: t }, () => [Ne(K(t), 1)])])) : j("v-if", !0)]),
1464
+ label: J(() => [W(e.$slots, "label")]),
1465
+ below: J(() => [W(e.$slots, "below")]),
1466
+ tips: J(() => [W(e.$slots, "tips")]),
1467
+ _: 3
1468
+ }, 16, ["rules", "disabled"]);
1469
+ }
1470
+ var Rt = /* @__PURE__ */ c(Pt, [["render", Lt]]);
1471
+ //#endregion
1472
+ export { Rt as t };