@pubinfo-pr/module-rbac 0.224.1 → 0.224.2

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 (306) hide show
  1. package/dist/{ComponentSelect-A7uGTuHW.js → ComponentSelect-CYmAgdm3.js} +998 -963
  2. package/dist/DynamicRoutesForm-CMF3oh8h.js +171 -0
  3. package/dist/HCheckList-CAhQwX7m.js +39 -0
  4. package/dist/HoverCard-B-uU48hF.js +46 -0
  5. package/dist/IconSelect-CvxGRN_O.js +719 -0
  6. package/dist/ImportExport-CzZssb7_.js +345 -0
  7. package/dist/ImportExport-b1SnWRLj.js +6 -0
  8. package/dist/LayoutForm-Bpdyi_2o.js +129 -0
  9. package/dist/MetaForm-ZLzLz68d.js +39037 -0
  10. package/dist/OrgAndPosition-B0RE1Vc_.js +187 -0
  11. package/dist/OrgSelector-C2rPIonI.js +4877 -0
  12. package/dist/OrgSelector.css +1 -0
  13. package/dist/ResourceEdit-9fvxbd0K.js +383 -0
  14. package/dist/ResourceEdit-BMqfJ3aQ.js +13 -0
  15. package/dist/ResourceRelation-BrluMHdX.js +81 -0
  16. package/dist/ResourceRelation-IJvXnlpo.js +95 -0
  17. package/dist/RoleRelation-DuRuQG08.js +82 -0
  18. package/dist/RoleSelector-BTNYbcC6.js +282 -0
  19. package/dist/TenantEdit-Df3gZKLA.js +249 -0
  20. package/dist/UserAuthorization-DX7jNDDe.js +237 -0
  21. package/dist/UserEdit-BLb0n7WM.js +322 -0
  22. package/dist/_baseClone-C7vkGgsW.js +138 -0
  23. package/dist/_initCloneObject-r-eWKqzl.js +531 -0
  24. package/dist/add-child-DPb_m2by.js +4 -0
  25. package/dist/{animation_item-DBOz2rcX.js → animation_item-Coe-B0jQ.js} +24 -19
  26. package/dist/assist-BRMYD-oT.js +89 -0
  27. package/dist/authority-B9wtmsQd.js +4 -0
  28. package/dist/authorize-DxrutyIG.js +4 -0
  29. package/dist/blackWhiteList-d6TVsK48.js +214 -0
  30. package/dist/blacklist-disable-BKSw91qq.js +4 -0
  31. package/dist/blacklist-enable-CIB1fOHT.js +4 -0
  32. package/dist/breadcrumb_setting-DMbvWP5t.js +111 -0
  33. package/dist/browser-chrome-CM60RcrG.js +4 -0
  34. package/dist/browser-edge-4LBRzooM.js +4 -0
  35. package/dist/browser-ie-BF-wqbf6.js +4 -0
  36. package/dist/browser-other-iXJH-9iL.js +4 -0
  37. package/dist/browser-safari-CIpt0yPc.js +4 -0
  38. package/dist/browserType-Bik20-72.js +28 -0
  39. package/dist/chunk-WQLz0Won.js +20 -0
  40. package/dist/cloneDeep-REaxTPsZ.js +8 -0
  41. package/dist/createAndEditDataPermission-OunqmBu_.js +438 -0
  42. package/dist/data-permission-2pzeFLxP.js +159 -0
  43. package/dist/{dayjs.min-Cb7gQFd4.js → dayjs.min-CJunOGCc.js} +5 -3
  44. package/dist/dictionary-DGqlAhRk.js +182 -0
  45. package/dist/dist-DxAYQq3U.js +21 -0
  46. package/dist/drawerBlackWhiteList-VxyjaBkA.js +123 -0
  47. package/dist/drawerDictionary-DhAB-LV9.js +129 -0
  48. package/dist/drawerDictionaryItem-DYsJzZ2f.js +141 -0
  49. package/dist/drawerGroup-CTO8Lmbb.js +189 -0
  50. package/dist/drawerOrganization-CeCOW2N1.js +288 -0
  51. package/dist/drawerPosition-BmM9mLlP.js +169 -0
  52. package/dist/drawerRegion-BD-xc1x2.js +189 -0
  53. package/dist/drawerRole-B348x40k.js +214 -0
  54. package/dist/drawerRole-CgAPM-0g.js +172 -0
  55. package/dist/drawerRole-Cjp9iDsa.js +157 -0
  56. package/dist/edit-Drp8yjRe.js +4 -0
  57. package/dist/enum-CG0P82pn.js +6 -0
  58. package/dist/{enum-3E_sUqRF.js → enum-CR5ztb5v2.js} +15 -14
  59. package/dist/enum-CYCebJeC.js +62 -0
  60. package/dist/enum-DS4SGhiF.js +6 -0
  61. package/dist/enum-zdKA3Jy-.js +23 -0
  62. package/dist/group-C6Rj3K5I.js +178 -0
  63. package/dist/icard-BULUUV5m.js +4 -0
  64. package/dist/icon_animation-DuEY1FMm.js +4 -0
  65. package/dist/icon_breadcrumb-Y788iP_T.js +4 -0
  66. package/dist/icon_copyright-C1BER6kq.js +4 -0
  67. package/dist/icon_jt-ICOdrIF6.js +4 -0
  68. package/dist/icon_layout-D_wV9rX3.js +4 -0
  69. package/dist/icon_mainpage-Cz6_cxpJ.js +4 -0
  70. package/dist/icon_menu-y7SblUoR.js +4 -0
  71. package/dist/icon_page_size-BjwT656E.js +4 -0
  72. package/dist/icon_position_type-CPxcDgmM.js +4 -0
  73. package/dist/icon_safe_manage-CoqVRBLl.js +4 -0
  74. package/dist/icon_screen_scale-DURlkq3C.js +4 -0
  75. package/dist/icon_system_manage-BLXs2CQg.js +4 -0
  76. package/dist/icon_tabbar-_0QWhSBV.js +4 -0
  77. package/dist/icon_toolbar-BXpfu0iq.js +4 -0
  78. package/dist/icon_topbar-DrwvB8Jw.js +4 -0
  79. package/dist/icon_watermark-DwNqjAiA.js +4 -0
  80. package/dist/index.css +1 -1
  81. package/dist/index.js +588 -6776
  82. package/dist/isEmpty-2rx9iUQv.js +14 -0
  83. package/dist/isEqual-CNeQLaCM.js +474 -0
  84. package/dist/itemlist-BGe-z1IR.js +159 -0
  85. package/dist/json-asset-03f0a035.json +1 -0
  86. package/dist/json-asset-0ee63e7f.json +1 -0
  87. package/dist/json-asset-10eef4fe.json +1 -0
  88. package/dist/json-asset-13f452f1.json +1 -0
  89. package/dist/json-asset-14b7b290.json +1 -0
  90. package/dist/json-asset-15b8cef1.json +1 -0
  91. package/dist/json-asset-15f77960.json +1 -0
  92. package/dist/json-asset-1ae9b726.json +1 -0
  93. package/dist/json-asset-1b02359f.json +1 -0
  94. package/dist/json-asset-1ef286cd.json +1 -0
  95. package/dist/json-asset-23cfd18c.json +1 -0
  96. package/dist/json-asset-265a0a5d.json +1 -0
  97. package/dist/json-asset-28d57c49.json +1 -0
  98. package/dist/json-asset-2b54ed10.json +1 -0
  99. package/dist/json-asset-2bb6f642.json +1 -0
  100. package/dist/json-asset-2cdc07bd.json +1 -0
  101. package/dist/json-asset-31c58607.json +1 -0
  102. package/dist/json-asset-32884f23.json +1 -0
  103. package/dist/json-asset-32fca43a.json +1 -0
  104. package/dist/json-asset-3a75445b.json +1 -0
  105. package/dist/json-asset-3f27d67c.json +1 -0
  106. package/dist/json-asset-4189453f.json +1 -0
  107. package/dist/json-asset-4702b37c.json +1 -0
  108. package/dist/json-asset-520a5c68.json +1 -0
  109. package/dist/json-asset-56bea508.json +1 -0
  110. package/dist/json-asset-57c732a3.json +1 -0
  111. package/dist/json-asset-5be4a28f.json +1 -0
  112. package/dist/json-asset-5e6d7cfa.json +1 -0
  113. package/dist/json-asset-64e176c9.json +1 -0
  114. package/dist/json-asset-6583dca6.json +1 -0
  115. package/dist/json-asset-66c640c6.json +1 -0
  116. package/dist/json-asset-68393156.json +1 -0
  117. package/dist/json-asset-688465aa.json +1 -0
  118. package/dist/json-asset-6bf334f4.json +1 -0
  119. package/dist/json-asset-7b4f72ce.json +1 -0
  120. package/dist/json-asset-837ec087.json +1 -0
  121. package/dist/json-asset-838ac1ba.json +1 -0
  122. package/dist/json-asset-8465c2cf.json +1 -0
  123. package/dist/json-asset-9e9f04a4.json +1 -0
  124. package/dist/json-asset-a13964cb.json +1 -0
  125. package/dist/json-asset-ab93a057.json +1 -0
  126. package/dist/json-asset-abe308fc.json +1 -0
  127. package/dist/json-asset-b24f2cd3.json +1 -0
  128. package/dist/json-asset-bf00eaed.json +1 -0
  129. package/dist/json-asset-cb22efd7.json +1 -0
  130. package/dist/json-asset-cb953f20.json +1 -0
  131. package/dist/json-asset-cc209e34.json +1 -0
  132. package/dist/json-asset-cfdffceb.json +1 -0
  133. package/dist/json-asset-d33c0299.json +1 -0
  134. package/dist/json-asset-d430c8ca.json +1 -0
  135. package/dist/json-asset-d8cfa560.json +1 -0
  136. package/dist/json-asset-da91beb6.json +1 -0
  137. package/dist/json-asset-e2bdf85c.json +1 -0
  138. package/dist/json-asset-e34ad826.json +1 -0
  139. package/dist/json-asset-e80720aa.json +1 -0
  140. package/dist/json-asset-e894bc92.json +1 -0
  141. package/dist/json-asset-f28020f2.json +1 -0
  142. package/dist/json-asset-f71ebbf4.json +1 -0
  143. package/dist/json-asset-fb1f4917.json +1 -0
  144. package/dist/json-asset-ff2e97c4.json +1 -0
  145. package/dist/layout_setting-Cds3TCHc.js +71 -0
  146. package/dist/log-DOMU9MyH.js +18 -0
  147. package/dist/log-center-BrGlNhMd.js +4 -0
  148. package/dist/loginHistoryDetail-Coba_ajy.js +80 -0
  149. package/dist/{login_history-BiwaLpxA.js → login_history-CrXkEsHb.js} +38 -35
  150. package/dist/menu_setting-Br5dOEUk.js +158 -0
  151. package/dist/not-data-C-MacYF3.js +5 -0
  152. package/dist/operateHistoryDetail-DfDQL5BF.js +92 -0
  153. package/dist/{operate_history-sPd9IHMV.js → operate_history-BtHgPhmF.js} +38 -35
  154. package/dist/org-main-BRMBumDm.js +4 -0
  155. package/dist/org-unmain-0BHnrNdD.js +4 -0
  156. package/dist/organization-HuRdzTFX.js +15413 -0
  157. package/dist/other_setting-D92SlFvl.js +216 -0
  158. package/dist/page_animation_setting-Cy2R0vZy.js +111 -0
  159. package/dist/page_w_setting-DryWrqcx.js +66 -0
  160. package/dist/position-B1bqGly6.js +169 -0
  161. package/dist/rbac-B59CVHDt.js +460 -0
  162. package/dist/region-B_n1KXMG.js +182 -0
  163. package/dist/remove-BTME2Fhs.js +4 -0
  164. package/dist/request-7X2hpUru.js +5 -0
  165. package/dist/resource-CPNNd1l0.js +275 -0
  166. package/dist/resource-app-D8to3Lkn.js +4 -0
  167. package/dist/resource-btn-Cz-A_EQF.js +4 -0
  168. package/dist/resource-dynamic-BUqWxUiU.js +4 -0
  169. package/dist/resource-index-D2roT002.js +4 -0
  170. package/dist/resource-menu-BRER68rK.js +4 -0
  171. package/dist/resource-micro-Hyucl9de.js +4 -0
  172. package/dist/resource-nonmenu-7FcPEpHv.js +4 -0
  173. package/dist/role-CMd7WDRC.js +195 -0
  174. package/dist/role_group-DHh2s911.js +174 -0
  175. package/dist/safe_setting-CuTBmUve.js +225 -0
  176. package/dist/setItem-BwXZ5Uqx.js +4 -0
  177. package/dist/setItem-DlhIkIgh.js +78 -0
  178. package/dist/setting-manage-UHelpLrr.js +4 -0
  179. package/dist/stores-C-zbXsms.js +2 -0
  180. package/dist/tabbar_setting-CjW9LGPp.js +142 -0
  181. package/dist/tenant-B_vgufMG.js +180 -0
  182. package/dist/theme-check-mark-DRzx4sTs.js +4 -0
  183. package/dist/theme-title-BRvQ_qPg.js +4 -0
  184. package/dist/theme_setting-DMP0_nZ1.js +114 -0
  185. package/dist/toolbar_setting-ClxxvA7R.js +143 -0
  186. package/dist/useAppAndResource-D6WnpUPR.js +55 -0
  187. package/dist/user-BhytPqnx.js +348 -0
  188. package/dist/{vanilla-picker-Byb6q187.js → vanilla-picker-2HFham9c.js} +61 -59
  189. package/dist/view-Cridj7u2.js +4 -0
  190. package/dist/view-lBxqXfPW.js +114 -0
  191. package/dist/watermark_setting-b3vBYWwY.js +194 -0
  192. package/dist/zddata-CnvPWtIW.js +4 -0
  193. package/dist/zy_checked-C25HQlnr.js +4 -0
  194. package/dist/zy_default-B7RKtyqy.js +4 -0
  195. package/package.json +3 -3
  196. package/dist/DynamicRoutesForm-DSzy_bh5.js +0 -169
  197. package/dist/HCheckList-ODQHidN8.js +0 -37
  198. package/dist/HoverCard-CmJCoa2b.js +0 -44
  199. package/dist/IconSelect-DouEg3xY.js +0 -717
  200. package/dist/ImportExport-DisdLoY8.js +0 -342
  201. package/dist/LayoutForm-Bdfs5WeK.js +0 -125
  202. package/dist/MetaForm-CcDwS8vh.js +0 -38902
  203. package/dist/OrgAndPosition-jDX7m0HD.js +0 -184
  204. package/dist/ResourceEdit-0BYZRye_.js +0 -381
  205. package/dist/ResourceRelation-CU-QpUhP.js +0 -76
  206. package/dist/ResourceRelation-roz0a8Td.js +0 -91
  207. package/dist/RoleRelation-BQQFaum0.js +0 -79
  208. package/dist/RoleSelector-gkar_UGG.js +0 -275
  209. package/dist/TenantEdit-BsahDUlf.js +0 -246
  210. package/dist/UserAuthorization-2Fl4IGw7.js +0 -233
  211. package/dist/UserEdit-CX3Qau8T.js +0 -320
  212. package/dist/add-child-CFHHkjfg.js +0 -2
  213. package/dist/authority-L7SfiMdP.js +0 -2
  214. package/dist/authorize-qMpV_BXT.js +0 -2
  215. package/dist/blackWhiteList-DbG7JH8n.js +0 -211
  216. package/dist/blacklist-disable-BT6Xx-JG.js +0 -2
  217. package/dist/blacklist-enable-CJ6DK_V2.js +0 -2
  218. package/dist/breadcrumb_setting-Dx2Li6xt.js +0 -108
  219. package/dist/browser-chrome-DuAegVCe.js +0 -2
  220. package/dist/browser-edge-DzkWdXRd.js +0 -2
  221. package/dist/browser-ie-DZ9g_MXr.js +0 -2
  222. package/dist/browser-other-BmkifoYq.js +0 -2
  223. package/dist/browser-safari-CXrCuF2a.js +0 -2
  224. package/dist/browserType-B8A1Osvk.js +0 -26
  225. package/dist/chunk-DiMWNkAf.js +0 -18
  226. package/dist/cloneDeep-CSOSavu3.js +0 -6
  227. package/dist/createAndEditDataPermission-8_KNLzJT.js +0 -431
  228. package/dist/data-permission-LpuDLDm0.js +0 -152
  229. package/dist/dictionary-CEaxjqZe.js +0 -179
  230. package/dist/drawerBlackWhiteList-DXLdWurZ.js +0 -120
  231. package/dist/drawerDictionary-DYJTAZr6.js +0 -126
  232. package/dist/drawerDictionaryItem-BChXD2-q.js +0 -138
  233. package/dist/drawerGroup-CdnZkZxi.js +0 -185
  234. package/dist/drawerOrganization-CPsQlz-f.js +0 -282
  235. package/dist/drawerPosition-CfyfeQCN.js +0 -166
  236. package/dist/drawerRegion-DAwY_29K.js +0 -183
  237. package/dist/drawerRole-B7uCfHk-.js +0 -154
  238. package/dist/drawerRole-DK6DrinO.js +0 -209
  239. package/dist/drawerRole-DrzMHL0O.js +0 -167
  240. package/dist/edit-fZ7h_z_Z.js +0 -2
  241. package/dist/enum-3mYayxff.js +0 -61
  242. package/dist/enum-Cr7uWnB2.js +0 -23
  243. package/dist/enum-D2UEJsrC.js +0 -4
  244. package/dist/group-CaOhkh72.js +0 -172
  245. package/dist/icard-H-d9Pip-.js +0 -2
  246. package/dist/icon_animation-BCdRKkE5.js +0 -2
  247. package/dist/icon_breadcrumb-BR6LK8hP.js +0 -2
  248. package/dist/icon_copyright-BfWn1s6t.js +0 -2
  249. package/dist/icon_jt-DOMTq9De.js +0 -2
  250. package/dist/icon_layout-DKqAThpM.js +0 -2
  251. package/dist/icon_mainpage-CXB9JMGv.js +0 -2
  252. package/dist/icon_menu-BYQtWV-Q.js +0 -2
  253. package/dist/icon_page_size-r-z4oHWp.js +0 -2
  254. package/dist/icon_position_type-JDFdklRh.js +0 -2
  255. package/dist/icon_safe_manage-BDTIOduB.js +0 -2
  256. package/dist/icon_screen_scale-vEaAdr9S.js +0 -2
  257. package/dist/icon_system_manage-CkhQtieE.js +0 -2
  258. package/dist/icon_tabbar-DZNj-h-p.js +0 -2
  259. package/dist/icon_toolbar-BBYhGmEf.js +0 -2
  260. package/dist/icon_topbar-Bc379eaS.js +0 -2
  261. package/dist/icon_watermark-CTP8r-e2.js +0 -2
  262. package/dist/isEmpty-BjEzPyCa.js +0 -12
  263. package/dist/itemlist-CFwRUV2Y.js +0 -156
  264. package/dist/layout_setting-79srmFgJ.js +0 -68
  265. package/dist/log-BYris9iT.js +0 -14
  266. package/dist/log-center-CGT-BGAN.js +0 -2
  267. package/dist/loginHistoryDetail-CZnfmbbM.js +0 -78
  268. package/dist/menu_setting-ChueWHs4.js +0 -155
  269. package/dist/not-data-Bml86wdH.js +0 -3
  270. package/dist/operateHistoryDetail-HId-EZzy.js +0 -90
  271. package/dist/org-main-DnftBa38.js +0 -2
  272. package/dist/org-unmain-ByMarqFw.js +0 -2
  273. package/dist/organization-BXGT-lb7.js +0 -15316
  274. package/dist/other_setting-BEV_UK0g.js +0 -213
  275. package/dist/page_animation_setting-Cp5OnFpd.js +0 -108
  276. package/dist/page_w_setting-Q--ct16C.js +0 -63
  277. package/dist/position-CCZ2MSMP.js +0 -166
  278. package/dist/region-D3mjqB8H.js +0 -179
  279. package/dist/remove-DfZZBE2T.js +0 -2
  280. package/dist/resource-DaQ7CvM_.js +0 -271
  281. package/dist/resource-app-QSLZ7Hts.js +0 -2
  282. package/dist/resource-btn-BcB4xMgR.js +0 -2
  283. package/dist/resource-dynamic-D69oEbaO.js +0 -2
  284. package/dist/resource-index-BIHr3PZY.js +0 -2
  285. package/dist/resource-menu-0JSNn7S7.js +0 -2
  286. package/dist/resource-micro-CcX_pmaJ.js +0 -2
  287. package/dist/resource-nonmenu-DFItasMT.js +0 -2
  288. package/dist/role-4UgEw3nH.js +0 -192
  289. package/dist/role_group-hkRlCnyl.js +0 -171
  290. package/dist/safe_setting-4fv3qNRZ.js +0 -221
  291. package/dist/setItem-Vkcwkj-O.js +0 -77
  292. package/dist/setting-manage-C9whamLP.js +0 -2
  293. package/dist/stores-DPQF8JRt.js +0 -2
  294. package/dist/tabbar_setting-kbuTvrLB.js +0 -139
  295. package/dist/tenant-lWfGw2u1.js +0 -177
  296. package/dist/theme-check-mark-DG4oWCQN.js +0 -2
  297. package/dist/theme-title-BCYnl2jK.js +0 -2
  298. package/dist/theme_setting-CEb7UYQO.js +0 -111
  299. package/dist/toolbar_setting-BG-k2UFc.js +0 -140
  300. package/dist/useAppAndResource-B7FmNfKG.js +0 -52
  301. package/dist/user-BkUpcQC8.js +0 -339
  302. package/dist/view-Bnu34EJT.js +0 -2
  303. package/dist/watermark_setting-Cl2EtPAa.js +0 -191
  304. package/dist/zddata-Ceyga3_2.js +0 -2
  305. package/dist/zy_checked-DvD7k9F8.js +0 -2
  306. package/dist/zy_default-DJ2tB3Fo.js +0 -2
@@ -0,0 +1,4877 @@
1
+ import { A as e, C as t, E as n, F as r, I as i, L as a, O as o, P as s, R as c, S as l, d as u, f as d, g as f, j as p, n as m, o as h, p as g, t as _, x as ee, y as v, z as y } from "./_initCloneObject-r-eWKqzl.js";
2
+ import { a as b, c as x, g as S, h as te, l as ne, n as re, r as ie, s as ae, t as oe, u as se, x as ce, y as le } from "./isEqual-CNeQLaCM.js";
3
+ import { n as ue } from "./dist-DxAYQq3U.js";
4
+ import { c as de, s as fe } from "./assist-BRMYD-oT.js";
5
+ import { F as pe, H as me, I as he, L as ge, N as _e, P as ve, U as ye, c as be, i as xe, r as Se, s as Ce } from "./rbac-B59CVHDt.js";
6
+ import * as we from "vue";
7
+ import { Comment as Te, Fragment as C, cloneVNode as Ee, computed as w, createBlock as T, createCommentVNode as E, createElementBlock as D, createElementVNode as O, createTextVNode as De, createVNode as k, customRef as Oe, defineComponent as A, getCurrentInstance as ke, getCurrentScope as Ae, guardReactiveProps as je, h as j, inject as Me, isReadonly as Ne, isRef as Pe, markRaw as Fe, mergeModels as Ie, mergeProps as Le, nextTick as Re, normalizeClass as ze, normalizeProps as M, normalizeStyle as N, onMounted as Be, onScopeDispose as Ve, onUnmounted as He, openBlock as P, provide as Ue, reactive as We, readonly as Ge, ref as F, renderList as Ke, renderSlot as I, resolveDynamicComponent as qe, shallowRef as L, toDisplayString as R, toRaw as z, toRef as Je, toRefs as B, toValue as V, unref as H, useAttrs as Ye, useCssVars as Xe, useModel as Ze, useSlots as Qe, watch as U, watchEffect as $e, withCtx as W, withKeys as et, withModifiers as tt } from "vue";
8
+ import { LoadingOutlined as nt, SearchOutlined as rt } from "@ant-design/icons-vue";
9
+ import { Alert as it, Card as at, Checkbox as ot, Dropdown as st, Empty as ct, Form as lt, Input as ut, Menu as dt, MenuItem as ft, Modal as pt, Pagination as mt, Spin as ht, Tree as gt, message as _t, theme as G } from "ant-design-vue";
10
+ import './OrgSelector.css';//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseFindIndex.js
11
+ function vt(e, t, n, r) {
12
+ for (var i = e.length, a = n + (r ? 1 : -1); r ? a-- : ++a < i;) if (t(e[a], a, e)) return a;
13
+ return -1;
14
+ }
15
+ //#endregion
16
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIsNaN.js
17
+ function yt(e) {
18
+ return e !== e;
19
+ }
20
+ //#endregion
21
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_strictIndexOf.js
22
+ function bt(e, t, n) {
23
+ for (var r = n - 1, i = e.length; ++r < i;) if (e[r] === t) return r;
24
+ return -1;
25
+ }
26
+ //#endregion
27
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIndexOf.js
28
+ function xt(e, t, n) {
29
+ return t === t ? bt(e, t, n) : vt(e, yt, n);
30
+ }
31
+ //#endregion
32
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_arrayIncludes.js
33
+ function St(e, t) {
34
+ return !!(e != null && e.length) && xt(e, t, 0) > -1;
35
+ }
36
+ //#endregion
37
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_createAssigner.js
38
+ function Ct(e) {
39
+ return S(function(t, n) {
40
+ var r = -1, i = n.length, a = i > 1 ? n[i - 1] : void 0, o = i > 2 ? n[2] : void 0;
41
+ for (a = e.length > 3 && typeof a == "function" ? (i--, a) : void 0, o && te(n[0], n[1], o) && (a = i < 3 ? void 0 : a, i = 1), t = Object(t); ++r < i;) {
42
+ var s = n[r];
43
+ s && e(t, s, r, a);
44
+ }
45
+ return t;
46
+ });
47
+ }
48
+ //#endregion
49
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isPlainObject.js
50
+ var wt = "[object Object]", Tt = Function.prototype, Et = Object.prototype, Dt = Tt.toString, Ot = Et.hasOwnProperty, kt = Dt.call(Object);
51
+ function At(e) {
52
+ if (!c(e) || y(e) != wt) return !1;
53
+ var t = g(e);
54
+ if (t === null) return !0;
55
+ var n = Ot.call(t, "constructor") && t.constructor;
56
+ return typeof n == "function" && n instanceof n && Dt.call(n) == kt;
57
+ }
58
+ //#endregion
59
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_assignMergeValue.js
60
+ function jt(t, n, r) {
61
+ (r !== void 0 && !e(t[n], r) || r === void 0 && !(n in t)) && p(t, n, r);
62
+ }
63
+ //#endregion
64
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isArrayLikeObject.js
65
+ function Mt(e) {
66
+ return c(e) && n(e);
67
+ }
68
+ //#endregion
69
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_safeGet.js
70
+ function Nt(e, t) {
71
+ if (!(t === "constructor" && typeof e[t] == "function") && t != "__proto__") return e[t];
72
+ }
73
+ //#endregion
74
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/toPlainObject.js
75
+ function Pt(e) {
76
+ return o(e, f(e));
77
+ }
78
+ //#endregion
79
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseMergeDeep.js
80
+ function Ft(e, n, o, c, d, f, p) {
81
+ var h = Nt(e, o), g = Nt(n, o), ee = p.get(g);
82
+ if (ee) {
83
+ jt(e, o, ee);
84
+ return;
85
+ }
86
+ var y = f ? f(h, g, o + "", e, n, p) : void 0, b = y === void 0;
87
+ if (b) {
88
+ var x = a(g), S = !x && l(g), te = !x && !S && v(g);
89
+ y = g, x || S || te ? a(h) ? y = h : Mt(h) ? y = s(h) : S ? (b = !1, y = u(g, !0)) : te ? (b = !1, y = m(g, !0)) : y = [] : At(g) || t(g) ? (y = h, t(h) ? y = Pt(h) : (!i(h) || r(h)) && (y = _(g))) : b = !1;
90
+ }
91
+ b && (p.set(g, y), d(y, g, c, f, p), p.delete(g)), jt(e, o, y);
92
+ }
93
+ //#endregion
94
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseMerge.js
95
+ function It(e, t, n, r, a) {
96
+ e !== t && ie(t, function(o, s) {
97
+ if (a ||= new d(), i(o)) Ft(e, t, s, n, It, r, a);
98
+ else {
99
+ var c = r ? r(Nt(e, s), o, s + "", e, t, a) : void 0;
100
+ c === void 0 && (c = o), jt(e, s, c);
101
+ }
102
+ }, f);
103
+ }
104
+ //#endregion
105
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_arrayIncludesWith.js
106
+ function Lt(e, t, n) {
107
+ for (var r = -1, i = e == null ? 0 : e.length; ++r < i;) if (n(t, e[r])) return !0;
108
+ return !1;
109
+ }
110
+ //#endregion
111
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseDifference.js
112
+ var Rt = 200;
113
+ function zt(e, t, n, r) {
114
+ var i = -1, a = St, o = !0, s = e.length, c = [], l = t.length;
115
+ if (!s) return c;
116
+ n && (t = ce(t, ee(n))), r ? (a = Lt, o = !1) : t.length >= Rt && (a = x, o = !1, t = new ne(t));
117
+ outer: for (; ++i < s;) {
118
+ var u = e[i], d = n == null ? u : n(u);
119
+ if (u = r || u !== 0 ? u : 0, o && d === d) {
120
+ for (var f = l; f--;) if (t[f] === d) continue outer;
121
+ c.push(u);
122
+ } else a(t, d, r) || c.push(u);
123
+ }
124
+ return c;
125
+ }
126
+ //#endregion
127
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/differenceBy.js
128
+ var Bt = S(function(e, t) {
129
+ var n = re(t);
130
+ return Mt(n) && (n = void 0), Mt(e) ? zt(e, se(t, 1, Mt, !0), b(n, 2)) : [];
131
+ });
132
+ //#endregion
133
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isNil.js
134
+ function Vt(e) {
135
+ return e == null;
136
+ }
137
+ //#endregion
138
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/merge.js
139
+ var Ht = Ct(function(e, t, n) {
140
+ It(e, t, n);
141
+ }), Ut = h && 1 / ae(new h([, -0]))[1] == Infinity ? function(e) {
142
+ return new h(e);
143
+ } : le, Wt = 200;
144
+ function Gt(e, t, n) {
145
+ var r = -1, i = St, a = e.length, o = !0, s = [], c = s;
146
+ if (n) o = !1, i = Lt;
147
+ else if (a >= Wt) {
148
+ var l = t ? null : Ut(e);
149
+ if (l) return ae(l);
150
+ o = !1, i = x, c = new ne();
151
+ } else c = t ? [] : s;
152
+ outer: for (; ++r < a;) {
153
+ var u = e[r], d = t ? t(u) : u;
154
+ if (u = n || u !== 0 ? u : 0, o && d === d) {
155
+ for (var f = c.length; f--;) if (c[f] === d) continue outer;
156
+ t && c.push(d), s.push(u);
157
+ } else i(c, d, n) || (c !== s && c.push(d), s.push(u));
158
+ }
159
+ return s;
160
+ }
161
+ //#endregion
162
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/unionBy.js
163
+ var Kt = S(function(e) {
164
+ var t = re(e);
165
+ return Mt(t) && (t = void 0), Gt(se(e, 1, Mt, !0), b(t, 2));
166
+ }), qt = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Jt = {
167
+ xmlns: "http://www.w3.org/2000/svg",
168
+ width: 24,
169
+ height: 24,
170
+ viewBox: "0 0 24 24",
171
+ fill: "none",
172
+ stroke: "currentColor",
173
+ "stroke-width": 2,
174
+ "stroke-linecap": "round",
175
+ "stroke-linejoin": "round"
176
+ }, Yt = ({ size: e, strokeWidth: t = 2, absoluteStrokeWidth: n, color: r, iconNode: i, name: a, class: o, ...s }, { slots: c }) => j("svg", {
177
+ ...Jt,
178
+ width: e || Jt.width,
179
+ height: e || Jt.height,
180
+ stroke: r || Jt.stroke,
181
+ "stroke-width": n ? Number(t) * 24 / Number(e) : t,
182
+ class: ["lucide", `lucide-${qt(a ?? "icon")}`],
183
+ ...s
184
+ }, [...i.map((e) => j(...e)), ...c.default ? [c.default()] : []]), Xt = (e, t) => (n, { slots: r }) => j(Yt, {
185
+ ...n,
186
+ iconNode: t,
187
+ name: e
188
+ }, r), Zt = Xt("ChevronDownIcon", [["path", {
189
+ d: "m6 9 6 6 6-6",
190
+ key: "qrunsl"
191
+ }]]), Qt = Xt("LoaderCircleIcon", [["path", {
192
+ d: "M21 12a9 9 0 1 1-6.219-8.56",
193
+ key: "13zald"
194
+ }]]), $t = Xt("XIcon", [["path", {
195
+ d: "M18 6 6 18",
196
+ key: "1bl5f8"
197
+ }], ["path", {
198
+ d: "m6 6 12 12",
199
+ key: "d8bk6v"
200
+ }]]);
201
+ //#endregion
202
+ //#region ../../node_modules/.pnpm/reka-ui@2.5.1_typescript@5.9.3_vue@3.5.28_typescript@5.9.3_/node_modules/reka-ui/dist/shared/arrays.js
203
+ function en(e, t) {
204
+ if (e.length !== t.length) return !1;
205
+ for (let n = 0; n < e.length; n++) if (e[n] !== t[n]) return !1;
206
+ return !0;
207
+ }
208
+ //#endregion
209
+ //#region ../../node_modules/.pnpm/reka-ui@2.5.1_typescript@5.9.3_vue@3.5.28_typescript@5.9.3_/node_modules/reka-ui/dist/shared/browser.js
210
+ var tn = typeof document < "u";
211
+ //#endregion
212
+ //#region ../../node_modules/.pnpm/reka-ui@2.5.1_typescript@5.9.3_vue@3.5.28_typescript@5.9.3_/node_modules/reka-ui/dist/shared/createContext.js
213
+ function K(e, t) {
214
+ let n = typeof e == "string" && !t ? `${e}Context` : t, r = Symbol(n);
215
+ return [(t) => {
216
+ let n = Me(r, t);
217
+ if (n || n === null) return n;
218
+ throw Error(`Injection \`${r.toString()}\` not found. Component must be used within ${Array.isArray(e) ? `one of the following components: ${e.join(", ")}` : `\`${e}\``}`);
219
+ }, (e) => (Ue(r, e), e)];
220
+ }
221
+ //#endregion
222
+ //#region ../../node_modules/.pnpm/reka-ui@2.5.1_typescript@5.9.3_vue@3.5.28_typescript@5.9.3_/node_modules/reka-ui/dist/shared/getActiveElement.js
223
+ function nn() {
224
+ let e = document.activeElement;
225
+ if (e == null) return null;
226
+ for (; e != null && e.shadowRoot != null && e.shadowRoot.activeElement != null;) e = e.shadowRoot.activeElement;
227
+ return e;
228
+ }
229
+ //#endregion
230
+ //#region ../../node_modules/.pnpm/reka-ui@2.5.1_typescript@5.9.3_vue@3.5.28_typescript@5.9.3_/node_modules/reka-ui/dist/shared/renderSlotFragments.js
231
+ function rn(e) {
232
+ return e ? e.flatMap((e) => e.type === C ? rn(e.children) : [e]) : [];
233
+ }
234
+ //#endregion
235
+ //#region ../../node_modules/.pnpm/reka-ui@2.5.1_typescript@5.9.3_vue@3.5.28_typescript@5.9.3_/node_modules/reka-ui/dist/ConfigProvider/ConfigProvider.js
236
+ var [an, on] = K("ConfigProvider");
237
+ //#endregion
238
+ //#region ../../node_modules/.pnpm/@vueuse+shared@12.8.2_typescript@5.9.3/node_modules/@vueuse/shared/index.mjs
239
+ function sn(e) {
240
+ return Ae() ? (Ve(e), !0) : !1;
241
+ }
242
+ var cn = typeof window < "u" && typeof document < "u";
243
+ typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
244
+ var ln = (e) => e !== void 0, un = cn ? window : void 0;
245
+ cn && window.document, cn && window.navigator, cn && window.location;
246
+ function dn(e) {
247
+ let t = V(e);
248
+ return t?.$el ?? t;
249
+ }
250
+ function fn() {
251
+ let e = L(!1), t = ke();
252
+ return t && Be(() => {
253
+ e.value = !0;
254
+ }, t), e;
255
+ }
256
+ function pn(e) {
257
+ let t = fn();
258
+ return w(() => (t.value, !!e()));
259
+ }
260
+ function mn(e) {
261
+ return JSON.parse(JSON.stringify(e));
262
+ }
263
+ function hn(e, t, n = {}) {
264
+ let { window: r = un, ...i } = n, a, o = pn(() => r && "ResizeObserver" in r), s = () => {
265
+ a &&= (a.disconnect(), void 0);
266
+ }, c = U(w(() => {
267
+ let t = V(e);
268
+ return Array.isArray(t) ? t.map((e) => dn(e)) : [dn(t)];
269
+ }), (e) => {
270
+ if (s(), o.value && r) {
271
+ a = new ResizeObserver(t);
272
+ for (let t of e) t && a.observe(t, i);
273
+ }
274
+ }, {
275
+ immediate: !0,
276
+ flush: "post"
277
+ }), l = () => {
278
+ s(), c();
279
+ };
280
+ return sn(l), {
281
+ isSupported: o,
282
+ stop: l
283
+ };
284
+ }
285
+ function gn(e, t, n, r = {}) {
286
+ let { clone: i = !1, passive: a = !1, eventName: o, deep: s = !1, defaultValue: c, shouldEmit: l } = r, u = ke(), d = n || u?.emit || (u?.$emit)?.bind(u) || (u?.proxy?.$emit)?.bind(u?.proxy), f = o;
287
+ t ||= "modelValue", f ||= `update:${t.toString()}`;
288
+ let p = (e) => i ? typeof i == "function" ? i(e) : mn(e) : e, m = () => ln(e[t]) ? p(e[t]) : c, h = (e) => {
289
+ l ? l(e) && d(f, e) : d(f, e);
290
+ };
291
+ if (a) {
292
+ let n = F(m()), r = !1;
293
+ return U(() => e[t], (e) => {
294
+ r || (r = !0, n.value = p(e), Re(() => r = !1));
295
+ }), U(n, (n) => {
296
+ !r && (n !== e[t] || s) && h(n);
297
+ }, { deep: s }), n;
298
+ } else return w({
299
+ get() {
300
+ return m();
301
+ },
302
+ set(e) {
303
+ h(e);
304
+ }
305
+ });
306
+ }
307
+ //#endregion
308
+ //#region ../../node_modules/.pnpm/reka-ui@2.5.1_typescript@5.9.3_vue@3.5.28_typescript@5.9.3_/node_modules/reka-ui/dist/shared/useDirection.js
309
+ function _n(e) {
310
+ let t = an({ dir: F("ltr") });
311
+ return w(() => e?.value || t.dir?.value || "ltr");
312
+ }
313
+ //#endregion
314
+ //#region ../../node_modules/.pnpm/reka-ui@2.5.1_typescript@5.9.3_vue@3.5.28_typescript@5.9.3_/node_modules/reka-ui/dist/shared/useForwardExpose.js
315
+ function vn() {
316
+ let e = ke(), t = F(), n = w(() => ["#text", "#comment"].includes(t.value?.$el.nodeName) ? t.value?.$el.nextElementSibling : dn(t)), r = Object.assign({}, e.exposed), i = {};
317
+ for (let t in e.props) Object.defineProperty(i, t, {
318
+ enumerable: !0,
319
+ configurable: !0,
320
+ get: () => e.props[t]
321
+ });
322
+ if (Object.keys(r).length > 0) for (let e in r) Object.defineProperty(i, e, {
323
+ enumerable: !0,
324
+ configurable: !0,
325
+ get: () => r[e]
326
+ });
327
+ Object.defineProperty(i, "$el", {
328
+ enumerable: !0,
329
+ configurable: !0,
330
+ get: () => e.vnode.el
331
+ }), e.exposed = i;
332
+ function a(n) {
333
+ t.value = n, n && (Object.defineProperty(i, "$el", {
334
+ enumerable: !0,
335
+ configurable: !0,
336
+ get: () => n instanceof Element ? n : n.$el
337
+ }), e.exposed = i);
338
+ }
339
+ return {
340
+ forwardRef: a,
341
+ currentRef: t,
342
+ currentElement: n
343
+ };
344
+ }
345
+ //#endregion
346
+ //#region ../../node_modules/.pnpm/reka-ui@2.5.1_typescript@5.9.3_vue@3.5.28_typescript@5.9.3_/node_modules/reka-ui/dist/shared/useId.js
347
+ var yn = 0;
348
+ function bn(e, t = "reka") {
349
+ if (e) return e;
350
+ if ("useId" in we) return `${t}-${we.useId?.()}`;
351
+ let n = an({ useId: void 0 });
352
+ return n.useId ? `${t}-${n.useId()}` : `${t}-${++yn}`;
353
+ }
354
+ //#endregion
355
+ //#region ../../node_modules/.pnpm/reka-ui@2.5.1_typescript@5.9.3_vue@3.5.28_typescript@5.9.3_/node_modules/reka-ui/dist/shared/useStateMachine.js
356
+ function xn(e, t) {
357
+ let n = F(e);
358
+ function r(e) {
359
+ return t[n.value][e] ?? n.value;
360
+ }
361
+ return {
362
+ state: n,
363
+ dispatch: (e) => {
364
+ n.value = r(e);
365
+ }
366
+ };
367
+ }
368
+ //#endregion
369
+ //#region ../../node_modules/.pnpm/reka-ui@2.5.1_typescript@5.9.3_vue@3.5.28_typescript@5.9.3_/node_modules/reka-ui/dist/Presence/usePresence.js
370
+ function Sn(e, t) {
371
+ let n = F({}), r = F("none"), i = F(e), a = e.value ? "mounted" : "unmounted", o, s = t.value?.ownerDocument.defaultView ?? un, { state: c, dispatch: l } = xn(a, {
372
+ mounted: {
373
+ UNMOUNT: "unmounted",
374
+ ANIMATION_OUT: "unmountSuspended"
375
+ },
376
+ unmountSuspended: {
377
+ MOUNT: "mounted",
378
+ ANIMATION_END: "unmounted"
379
+ },
380
+ unmounted: { MOUNT: "mounted" }
381
+ }), u = (e) => {
382
+ if (cn) {
383
+ let n = new CustomEvent(e, {
384
+ bubbles: !1,
385
+ cancelable: !1
386
+ });
387
+ t.value?.dispatchEvent(n);
388
+ }
389
+ };
390
+ U(e, async (e, i) => {
391
+ let a = i !== e;
392
+ if (await Re(), a) {
393
+ let a = r.value, o = Cn(t.value);
394
+ e ? (l("MOUNT"), u("enter"), o === "none" && u("after-enter")) : o === "none" || o === "undefined" || n.value?.display === "none" ? (l("UNMOUNT"), u("leave"), u("after-leave")) : i && a !== o ? (l("ANIMATION_OUT"), u("leave")) : (l("UNMOUNT"), u("after-leave"));
395
+ }
396
+ }, { immediate: !0 });
397
+ let d = (e) => {
398
+ let n = Cn(t.value), r = n.includes(CSS.escape(e.animationName)), a = c.value === "mounted" ? "enter" : "leave";
399
+ if (e.target === t.value && r && (u(`after-${a}`), l("ANIMATION_END"), !i.value)) {
400
+ let e = t.value.style.animationFillMode;
401
+ t.value.style.animationFillMode = "forwards", o = s?.setTimeout(() => {
402
+ t.value?.style.animationFillMode === "forwards" && (t.value.style.animationFillMode = e);
403
+ });
404
+ }
405
+ e.target === t.value && n === "none" && l("ANIMATION_END");
406
+ }, f = (e) => {
407
+ e.target === t.value && (r.value = Cn(t.value));
408
+ }, p = U(t, (e, t) => {
409
+ e ? (n.value = getComputedStyle(e), e.addEventListener("animationstart", f), e.addEventListener("animationcancel", d), e.addEventListener("animationend", d)) : (l("ANIMATION_END"), o !== void 0 && s?.clearTimeout(o), t?.removeEventListener("animationstart", f), t?.removeEventListener("animationcancel", d), t?.removeEventListener("animationend", d));
410
+ }, { immediate: !0 }), m = U(c, () => {
411
+ let e = Cn(t.value);
412
+ r.value = c.value === "mounted" ? e : "none";
413
+ });
414
+ return He(() => {
415
+ p(), m();
416
+ }), { isPresent: w(() => ["mounted", "unmountSuspended"].includes(c.value)) };
417
+ }
418
+ function Cn(e) {
419
+ return e && getComputedStyle(e).animationName || "none";
420
+ }
421
+ //#endregion
422
+ //#region ../../node_modules/.pnpm/reka-ui@2.5.1_typescript@5.9.3_vue@3.5.28_typescript@5.9.3_/node_modules/reka-ui/dist/Presence/Presence.js
423
+ var wn = A({
424
+ name: "Presence",
425
+ props: {
426
+ present: {
427
+ type: Boolean,
428
+ required: !0
429
+ },
430
+ forceMount: { type: Boolean }
431
+ },
432
+ slots: {},
433
+ setup(e, { slots: t, expose: n }) {
434
+ let { present: r, forceMount: i } = B(e), a = F(), { isPresent: o } = Sn(r, a);
435
+ n({ present: o });
436
+ let s = t.default({ present: o.value });
437
+ s = rn(s || []);
438
+ let c = ke();
439
+ if (s && s?.length > 1) {
440
+ let e = c?.parent?.type.name ? `<${c.parent.type.name} />` : "component";
441
+ throw Error([
442
+ `Detected an invalid children for \`${e}\` for \`Presence\` component.`,
443
+ "",
444
+ "Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.",
445
+ "You can apply a few solutions:",
446
+ ["Provide a single child element so that `presence` directive attach correctly.", "Ensure the first child is an actual element instead of a raw text node or comment node."].map((e) => ` - ${e}`).join("\n")
447
+ ].join("\n"));
448
+ }
449
+ return () => i.value || r.value || o.value ? j(t.default({ present: o.value })[0], { ref: (e) => {
450
+ let t = dn(e);
451
+ return t?.hasAttribute === void 0 || (t?.hasAttribute("data-reka-popper-content-wrapper") ? a.value = t.firstElementChild : a.value = t), t;
452
+ } }) : null;
453
+ }
454
+ }), Tn = A({
455
+ name: "PrimitiveSlot",
456
+ inheritAttrs: !1,
457
+ setup(e, { attrs: t, slots: n }) {
458
+ return () => {
459
+ if (!n.default) return null;
460
+ let e = rn(n.default()), r = e.findIndex((e) => e.type !== Te);
461
+ if (r === -1) return e;
462
+ let i = e[r];
463
+ delete i.props?.ref;
464
+ let a = i.props ? Le(t, i.props) : t, o = Ee({
465
+ ...i,
466
+ props: {}
467
+ }, a);
468
+ return e.length === 1 ? o : (e[r] = o, e);
469
+ };
470
+ }
471
+ }), En = [
472
+ "area",
473
+ "img",
474
+ "input"
475
+ ], q = A({
476
+ name: "Primitive",
477
+ inheritAttrs: !1,
478
+ props: {
479
+ asChild: {
480
+ type: Boolean,
481
+ default: !1
482
+ },
483
+ as: {
484
+ type: [String, Object],
485
+ default: "div"
486
+ }
487
+ },
488
+ setup(e, { attrs: t, slots: n }) {
489
+ let r = e.asChild ? "template" : e.as;
490
+ return typeof r == "string" && En.includes(r) ? () => j(r, t) : r === "template" ? () => j(Tn, t, { default: n.default }) : () => j(e.as, t, { default: n.default });
491
+ }
492
+ });
493
+ //#endregion
494
+ //#region ../../node_modules/.pnpm/reka-ui@2.5.1_typescript@5.9.3_vue@3.5.28_typescript@5.9.3_/node_modules/reka-ui/dist/Primitive/usePrimitiveElement.js
495
+ function Dn() {
496
+ let e = F();
497
+ return {
498
+ primitiveElement: e,
499
+ currentElement: w(() => ["#text", "#comment"].includes(e.value?.$el.nodeName) ? e.value?.$el.nextElementSibling : dn(e))
500
+ };
501
+ }
502
+ //#endregion
503
+ //#region ../../node_modules/.pnpm/reka-ui@2.5.1_typescript@5.9.3_vue@3.5.28_typescript@5.9.3_/node_modules/reka-ui/dist/Collection/Collection.js
504
+ var On = "data-reka-collection-item";
505
+ function kn(e = {}) {
506
+ let { key: t = "", isProvider: n = !1 } = e, r = `${t}CollectionProvider`, i;
507
+ if (n) {
508
+ let e = F(/* @__PURE__ */ new Map());
509
+ i = {
510
+ collectionRef: F(),
511
+ itemMap: e
512
+ }, Ue(r, i);
513
+ } else i = Me(r);
514
+ let a = (e = !1) => {
515
+ let t = i.collectionRef.value;
516
+ if (!t) return [];
517
+ let n = Array.from(t.querySelectorAll(`[${On}]`)), r = Array.from(i.itemMap.value.values()).sort((e, t) => n.indexOf(e.ref) - n.indexOf(t.ref));
518
+ return e ? r : r.filter((e) => e.ref.dataset.disabled !== "");
519
+ }, o = A({
520
+ name: "CollectionSlot",
521
+ setup(e, { slots: t }) {
522
+ let { primitiveElement: n, currentElement: r } = Dn();
523
+ return U(r, () => {
524
+ i.collectionRef.value = r.value;
525
+ }), () => j(Tn, { ref: n }, t);
526
+ }
527
+ }), s = A({
528
+ name: "CollectionItem",
529
+ inheritAttrs: !1,
530
+ props: { value: { validator: () => !0 } },
531
+ setup(e, { slots: t, attrs: n }) {
532
+ let { primitiveElement: r, currentElement: a } = Dn();
533
+ return $e((t) => {
534
+ if (a.value) {
535
+ let n = Fe(a.value);
536
+ i.itemMap.value.set(n, {
537
+ ref: a.value,
538
+ value: e.value
539
+ }), t(() => i.itemMap.value.delete(n));
540
+ }
541
+ }), () => j(Tn, {
542
+ ...n,
543
+ [On]: "",
544
+ ref: r
545
+ }, t);
546
+ }
547
+ });
548
+ return {
549
+ getItems: a,
550
+ reactiveItems: w(() => Array.from(i.itemMap.value.values())),
551
+ itemMapSize: w(() => i.itemMap.value.size),
552
+ CollectionSlot: o,
553
+ CollectionItem: s
554
+ };
555
+ }
556
+ //#endregion
557
+ //#region ../../node_modules/.pnpm/reka-ui@2.5.1_typescript@5.9.3_vue@3.5.28_typescript@5.9.3_/node_modules/reka-ui/dist/RovingFocus/utils.js
558
+ var An = "rovingFocusGroup.onEntryFocus", jn = {
559
+ bubbles: !1,
560
+ cancelable: !0
561
+ }, Mn = {
562
+ ArrowLeft: "prev",
563
+ ArrowUp: "prev",
564
+ ArrowRight: "next",
565
+ ArrowDown: "next",
566
+ PageUp: "first",
567
+ Home: "first",
568
+ PageDown: "last",
569
+ End: "last"
570
+ };
571
+ function Nn(e, t) {
572
+ return t === "rtl" ? e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e : e;
573
+ }
574
+ function Pn(e, t, n) {
575
+ let r = Nn(e.key, n);
576
+ if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r))) return Mn[r];
577
+ }
578
+ function Fn(e, t = !1) {
579
+ let n = nn();
580
+ for (let r of e) if (r === n || (r.focus({ preventScroll: t }), nn() !== n)) return;
581
+ }
582
+ function In(e, t) {
583
+ return e.map((n, r) => e[(t + r) % e.length]);
584
+ }
585
+ //#endregion
586
+ //#region ../../node_modules/.pnpm/reka-ui@2.5.1_typescript@5.9.3_vue@3.5.28_typescript@5.9.3_/node_modules/reka-ui/dist/RovingFocus/RovingFocusGroup.js
587
+ var [Ln, Rn] = K("RovingFocusGroup"), zn = /* @__PURE__ */ A({
588
+ __name: "RovingFocusGroup",
589
+ props: {
590
+ orientation: {
591
+ type: String,
592
+ required: !1,
593
+ default: void 0
594
+ },
595
+ dir: {
596
+ type: String,
597
+ required: !1
598
+ },
599
+ loop: {
600
+ type: Boolean,
601
+ required: !1,
602
+ default: !1
603
+ },
604
+ currentTabStopId: {
605
+ type: [String, null],
606
+ required: !1
607
+ },
608
+ defaultCurrentTabStopId: {
609
+ type: String,
610
+ required: !1
611
+ },
612
+ preventScrollOnEntryFocus: {
613
+ type: Boolean,
614
+ required: !1,
615
+ default: !1
616
+ },
617
+ asChild: {
618
+ type: Boolean,
619
+ required: !1
620
+ },
621
+ as: {
622
+ type: null,
623
+ required: !1
624
+ }
625
+ },
626
+ emits: ["entryFocus", "update:currentTabStopId"],
627
+ setup(e, { expose: t, emit: n }) {
628
+ let r = e, i = n, { loop: a, orientation: o, dir: s } = B(r), c = _n(s), l = gn(r, "currentTabStopId", i, {
629
+ defaultValue: r.defaultCurrentTabStopId,
630
+ passive: r.currentTabStopId === void 0
631
+ }), u = F(!1), d = F(!1), f = F(0), { getItems: p, CollectionSlot: m } = kn({ isProvider: !0 });
632
+ function h(e) {
633
+ let t = !d.value;
634
+ if (e.currentTarget && e.target === e.currentTarget && t && !u.value) {
635
+ let t = new CustomEvent(An, jn);
636
+ if (e.currentTarget.dispatchEvent(t), i("entryFocus", t), !t.defaultPrevented) {
637
+ let e = p().map((e) => e.ref).filter((e) => e.dataset.disabled !== "");
638
+ Fn([
639
+ e.find((e) => e.getAttribute("data-active") === ""),
640
+ e.find((e) => e.getAttribute("data-highlighted") === ""),
641
+ e.find((e) => e.id === l.value),
642
+ ...e
643
+ ].filter(Boolean), r.preventScrollOnEntryFocus);
644
+ }
645
+ }
646
+ d.value = !1;
647
+ }
648
+ function g() {
649
+ setTimeout(() => {
650
+ d.value = !1;
651
+ }, 1);
652
+ }
653
+ return t({ getItems: p }), Rn({
654
+ loop: a,
655
+ dir: c,
656
+ orientation: o,
657
+ currentTabStopId: l,
658
+ onItemFocus: (e) => {
659
+ l.value = e;
660
+ },
661
+ onItemShiftTab: () => {
662
+ u.value = !0;
663
+ },
664
+ onFocusableItemAdd: () => {
665
+ f.value++;
666
+ },
667
+ onFocusableItemRemove: () => {
668
+ f.value--;
669
+ }
670
+ }), (e, t) => (P(), T(H(m), null, {
671
+ default: W(() => [k(H(q), {
672
+ tabindex: u.value || f.value === 0 ? -1 : 0,
673
+ "data-orientation": H(o),
674
+ as: e.as,
675
+ "as-child": e.asChild,
676
+ dir: H(c),
677
+ style: { outline: "none" },
678
+ onMousedown: t[0] ||= (e) => d.value = !0,
679
+ onMouseup: g,
680
+ onFocus: h,
681
+ onBlur: t[1] ||= (e) => u.value = !1
682
+ }, {
683
+ default: W(() => [I(e.$slots, "default")]),
684
+ _: 3
685
+ }, 8, [
686
+ "tabindex",
687
+ "data-orientation",
688
+ "as",
689
+ "as-child",
690
+ "dir"
691
+ ])]),
692
+ _: 3
693
+ }));
694
+ }
695
+ }), Bn = /* @__PURE__ */ A({
696
+ __name: "RovingFocusItem",
697
+ props: {
698
+ tabStopId: {
699
+ type: String,
700
+ required: !1
701
+ },
702
+ focusable: {
703
+ type: Boolean,
704
+ required: !1,
705
+ default: !0
706
+ },
707
+ active: {
708
+ type: Boolean,
709
+ required: !1
710
+ },
711
+ allowShiftKey: {
712
+ type: Boolean,
713
+ required: !1
714
+ },
715
+ asChild: {
716
+ type: Boolean,
717
+ required: !1
718
+ },
719
+ as: {
720
+ type: null,
721
+ required: !1,
722
+ default: "span"
723
+ }
724
+ },
725
+ setup(e) {
726
+ let t = e, n = Ln(), r = bn(), i = w(() => t.tabStopId || r), a = w(() => n.currentTabStopId.value === i.value), { getItems: o, CollectionItem: s } = kn();
727
+ Be(() => {
728
+ t.focusable && n.onFocusableItemAdd();
729
+ }), He(() => {
730
+ t.focusable && n.onFocusableItemRemove();
731
+ });
732
+ function c(e) {
733
+ if (e.key === "Tab" && e.shiftKey) {
734
+ n.onItemShiftTab();
735
+ return;
736
+ }
737
+ if (e.target !== e.currentTarget) return;
738
+ let r = Pn(e, n.orientation.value, n.dir.value);
739
+ if (r !== void 0) {
740
+ if (e.metaKey || e.ctrlKey || e.altKey || !t.allowShiftKey && e.shiftKey) return;
741
+ e.preventDefault();
742
+ let i = [...o().map((e) => e.ref).filter((e) => e.dataset.disabled !== "")];
743
+ if (r === "last") i.reverse();
744
+ else if (r === "prev" || r === "next") {
745
+ r === "prev" && i.reverse();
746
+ let t = i.indexOf(e.currentTarget);
747
+ i = n.loop.value ? In(i, t + 1) : i.slice(t + 1);
748
+ }
749
+ Re(() => Fn(i));
750
+ }
751
+ }
752
+ return (e, t) => (P(), T(H(s), null, {
753
+ default: W(() => [k(H(q), {
754
+ tabindex: a.value ? 0 : -1,
755
+ "data-orientation": H(n).orientation.value,
756
+ "data-active": e.active ? "" : void 0,
757
+ "data-disabled": e.focusable ? void 0 : "",
758
+ as: e.as,
759
+ "as-child": e.asChild,
760
+ onMousedown: t[0] ||= (t) => {
761
+ e.focusable ? H(n).onItemFocus(i.value) : t.preventDefault();
762
+ },
763
+ onFocus: t[1] ||= (e) => H(n).onItemFocus(i.value),
764
+ onKeydown: c
765
+ }, {
766
+ default: W(() => [I(e.$slots, "default")]),
767
+ _: 3
768
+ }, 8, [
769
+ "tabindex",
770
+ "data-orientation",
771
+ "data-active",
772
+ "data-disabled",
773
+ "as",
774
+ "as-child"
775
+ ])]),
776
+ _: 3
777
+ }));
778
+ }
779
+ });
780
+ //#endregion
781
+ //#region ../../node_modules/.pnpm/reka-ui@2.5.1_typescript@5.9.3_vue@3.5.28_typescript@5.9.3_/node_modules/reka-ui/dist/shared/useNonce.js
782
+ function Vn(e) {
783
+ let t = an({ nonce: F() });
784
+ return w(() => e?.value || t.nonce?.value);
785
+ }
786
+ //#endregion
787
+ //#region ../../node_modules/.pnpm/reka-ui@2.5.1_typescript@5.9.3_vue@3.5.28_typescript@5.9.3_/node_modules/reka-ui/dist/component/BaseSeparator.js
788
+ var Hn = /* @__PURE__ */ A({
789
+ __name: "BaseSeparator",
790
+ props: {
791
+ orientation: {
792
+ type: String,
793
+ required: !1,
794
+ default: "horizontal"
795
+ },
796
+ decorative: {
797
+ type: Boolean,
798
+ required: !1
799
+ },
800
+ asChild: {
801
+ type: Boolean,
802
+ required: !1
803
+ },
804
+ as: {
805
+ type: null,
806
+ required: !1
807
+ }
808
+ },
809
+ setup(e) {
810
+ let t = e, n = ["horizontal", "vertical"];
811
+ function r(e) {
812
+ return n.includes(e);
813
+ }
814
+ let i = w(() => r(t.orientation) ? t.orientation : "horizontal"), a = w(() => i.value === "vertical" ? t.orientation : void 0), o = w(() => t.decorative ? { role: "none" } : {
815
+ "aria-orientation": a.value,
816
+ role: "separator"
817
+ });
818
+ return (e, t) => (P(), T(H(q), Le({
819
+ as: e.as,
820
+ "as-child": e.asChild,
821
+ "data-orientation": i.value
822
+ }, o.value), {
823
+ default: W(() => [I(e.$slots, "default")]),
824
+ _: 3
825
+ }, 16, [
826
+ "as",
827
+ "as-child",
828
+ "data-orientation"
829
+ ]));
830
+ }
831
+ }), Un = /* @__PURE__ */ A({
832
+ __name: "Separator",
833
+ props: {
834
+ orientation: {
835
+ type: String,
836
+ required: !1,
837
+ default: "horizontal"
838
+ },
839
+ decorative: {
840
+ type: Boolean,
841
+ required: !1
842
+ },
843
+ asChild: {
844
+ type: Boolean,
845
+ required: !1
846
+ },
847
+ as: {
848
+ type: null,
849
+ required: !1
850
+ }
851
+ },
852
+ setup(e) {
853
+ let t = e;
854
+ return (e, n) => (P(), T(Hn, M(je(t)), {
855
+ default: W(() => [I(e.$slots, "default")]),
856
+ _: 3
857
+ }, 16));
858
+ }
859
+ });
860
+ //#endregion
861
+ //#region ../../node_modules/.pnpm/reka-ui@2.5.1_typescript@5.9.3_vue@3.5.28_typescript@5.9.3_/node_modules/reka-ui/dist/utils/assert.js
862
+ function J(e, t = "Assertion failed!") {
863
+ if (!e) throw console.error(t), Error(t);
864
+ }
865
+ //#endregion
866
+ //#region ../../node_modules/.pnpm/reka-ui@2.5.1_typescript@5.9.3_vue@3.5.28_typescript@5.9.3_/node_modules/reka-ui/dist/utils/dom.js
867
+ function Wn(e, t = document) {
868
+ return tn ? t instanceof HTMLElement && t?.dataset?.panelGroupId === e ? t : t.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`) || null : null;
869
+ }
870
+ function Gn(e, t = document) {
871
+ return tn && t.querySelector(`[data-panel-resize-handle-id="${e}"]`) || null;
872
+ }
873
+ function Kn(e, t, n = document) {
874
+ return tn ? qn(e, n).findIndex((e) => e.getAttribute("data-panel-resize-handle-id") === t) ?? null : null;
875
+ }
876
+ function qn(e, t = document) {
877
+ return tn ? Array.from(t.querySelectorAll(`[data-panel-resize-handle-id][data-panel-group-id="${e}"]`)) : [];
878
+ }
879
+ function Jn(e, t, n, r = document) {
880
+ let i = Gn(t, r), a = qn(e, r), o = i ? a.indexOf(i) : -1;
881
+ return [n[o]?.id ?? null, n[o + 1]?.id ?? null];
882
+ }
883
+ //#endregion
884
+ //#region ../../node_modules/.pnpm/reka-ui@2.5.1_typescript@5.9.3_vue@3.5.28_typescript@5.9.3_/node_modules/reka-ui/dist/utils/events.js
885
+ function Yn(e) {
886
+ return e.type === "keydown";
887
+ }
888
+ function Xn(e) {
889
+ return e.type.startsWith("mouse");
890
+ }
891
+ function Zn(e) {
892
+ return e.type.startsWith("touch");
893
+ }
894
+ function Qn(e) {
895
+ if (Xn(e)) return {
896
+ x: e.clientX,
897
+ y: e.clientY
898
+ };
899
+ if (Zn(e)) {
900
+ let t = e.touches[0];
901
+ if (t && t.clientX && t.clientY) return {
902
+ x: t.clientX,
903
+ y: t.clientY
904
+ };
905
+ }
906
+ return {
907
+ x: Infinity,
908
+ y: Infinity
909
+ };
910
+ }
911
+ function $n(e, t) {
912
+ let n = e === "horizontal", { x: r, y: i } = Qn(t);
913
+ return n ? r : i;
914
+ }
915
+ //#endregion
916
+ //#region ../../node_modules/.pnpm/reka-ui@2.5.1_typescript@5.9.3_vue@3.5.28_typescript@5.9.3_/node_modules/reka-ui/dist/utils/calculate.js
917
+ function er(e, t, n, r, i) {
918
+ let a = n === "horizontal", o = Gn(t, i);
919
+ J(o);
920
+ let s = o.getAttribute("data-panel-group-id");
921
+ J(s);
922
+ let { initialCursorPosition: c } = r, l = $n(n, e), u = Wn(s, i);
923
+ J(u);
924
+ let d = u.getBoundingClientRect(), f = a ? d.width : d.height;
925
+ return (l - c) / f * 100;
926
+ }
927
+ function tr(e, t, n, r, i, a) {
928
+ if (Yn(e)) {
929
+ let t = n === "horizontal", r = 0;
930
+ r = e.shiftKey ? 100 : i ?? 10;
931
+ let a = 0;
932
+ switch (e.key) {
933
+ case "ArrowDown":
934
+ a = t ? 0 : r;
935
+ break;
936
+ case "ArrowLeft":
937
+ a = t ? -r : 0;
938
+ break;
939
+ case "ArrowRight":
940
+ a = t ? r : 0;
941
+ break;
942
+ case "ArrowUp":
943
+ a = t ? 0 : -r;
944
+ break;
945
+ case "End":
946
+ a = 100;
947
+ break;
948
+ case "Home":
949
+ a = -100;
950
+ break;
951
+ }
952
+ return a;
953
+ } else return r == null ? 0 : er(e, t, n, r, a);
954
+ }
955
+ function nr({ layout: e, panelsArray: t, pivotIndices: n }) {
956
+ let r = 0, i = 100, a = 0, o = 0, s = n[0];
957
+ return J(s != null), t.forEach((e, t) => {
958
+ let { constraints: n } = e, { maxSize: c = 100, minSize: l = 0 } = n;
959
+ t === s ? (r = l, i = c) : (a += l, o += c);
960
+ }), {
961
+ valueMax: Math.min(i, 100 - a),
962
+ valueMin: Math.max(r, 100 - o),
963
+ valueNow: e[s]
964
+ };
965
+ }
966
+ function rr({ panelDataArray: e }) {
967
+ let t = Array.from({ length: e.length }), n = e.map((e) => e.constraints), r = 0, i = 100;
968
+ for (let a = 0; a < e.length; a++) {
969
+ let e = n[a];
970
+ J(e);
971
+ let { defaultSize: o } = e;
972
+ o != null && (r++, t[a] = o, i -= o);
973
+ }
974
+ for (let a = 0; a < e.length; a++) {
975
+ let o = n[a];
976
+ J(o);
977
+ let { defaultSize: s } = o;
978
+ if (s != null) continue;
979
+ let c = e.length - r, l = i / c;
980
+ r++, t[a] = l, i -= l;
981
+ }
982
+ return t;
983
+ }
984
+ //#endregion
985
+ //#region ../../node_modules/.pnpm/reka-ui@2.5.1_typescript@5.9.3_vue@3.5.28_typescript@5.9.3_/node_modules/reka-ui/dist/utils/callPanelCallbacks.js
986
+ function ir(e, t, n) {
987
+ t.forEach((t, r) => {
988
+ let i = e[r];
989
+ J(i);
990
+ let { callbacks: a, constraints: o, id: s } = i, { collapsedSize: c = 0, collapsible: l } = o, u = n[s];
991
+ if (u == null || t !== u) {
992
+ n[s] = t;
993
+ let { onCollapse: e, onExpand: r, onResize: i } = a;
994
+ i && i(t, u), l && (e || r) && (r && (u == null || u === c) && t !== c && r(), e && (u == null || u !== c) && t === c && e());
995
+ }
996
+ });
997
+ }
998
+ //#endregion
999
+ //#region ../../node_modules/.pnpm/reka-ui@2.5.1_typescript@5.9.3_vue@3.5.28_typescript@5.9.3_/node_modules/reka-ui/dist/utils/debounce.js
1000
+ function ar(e, t = 10) {
1001
+ let n = null;
1002
+ return (...r) => {
1003
+ n !== null && clearTimeout(n), n = setTimeout(() => {
1004
+ e(...r);
1005
+ }, t);
1006
+ };
1007
+ }
1008
+ //#endregion
1009
+ //#region ../../node_modules/.pnpm/reka-ui@2.5.1_typescript@5.9.3_vue@3.5.28_typescript@5.9.3_/node_modules/reka-ui/dist/utils/compare.js
1010
+ function or(e, t, n = 10) {
1011
+ e = Number.parseFloat(e.toFixed(n)), t = Number.parseFloat(t.toFixed(n));
1012
+ let r = e - t;
1013
+ return r === 0 ? 0 : r > 0 ? 1 : -1;
1014
+ }
1015
+ function Y(e, t, n) {
1016
+ return or(e, t, n) === 0;
1017
+ }
1018
+ //#endregion
1019
+ //#region ../../node_modules/.pnpm/reka-ui@2.5.1_typescript@5.9.3_vue@3.5.28_typescript@5.9.3_/node_modules/reka-ui/dist/utils/resizePanel.js
1020
+ function sr({ panelConstraints: e, panelIndex: t, size: n }) {
1021
+ let r = e[t];
1022
+ J(r != null);
1023
+ let { collapsedSize: i = 0, collapsible: a, maxSize: o = 100, minSize: s = 0 } = r;
1024
+ if (or(n, s) < 0) if (a) {
1025
+ let e = (i + s) / 2;
1026
+ n = or(n, e) < 0 ? i : s;
1027
+ } else n = s;
1028
+ return n = Math.min(o, n), n = Number.parseFloat(n.toFixed(10)), n;
1029
+ }
1030
+ //#endregion
1031
+ //#region ../../node_modules/.pnpm/reka-ui@2.5.1_typescript@5.9.3_vue@3.5.28_typescript@5.9.3_/node_modules/reka-ui/dist/utils/layout.js
1032
+ function cr(e, t) {
1033
+ if (e.length !== t.length) return !1;
1034
+ for (let n = 0; n < e.length; n++) if (e[n] !== t[n]) return !1;
1035
+ return !0;
1036
+ }
1037
+ function lr({ delta: e, layout: t, panelConstraints: n, pivotIndices: r, trigger: i }) {
1038
+ if (Y(e, 0)) return t;
1039
+ let a = [...t], [o, s] = r;
1040
+ J(o != null), J(s != null);
1041
+ let c = 0;
1042
+ if (i === "keyboard") {
1043
+ {
1044
+ let r = e < 0 ? s : o, i = n[r];
1045
+ if (J(i), i.collapsible) {
1046
+ let i = t[r];
1047
+ J(i != null);
1048
+ let a = n[r];
1049
+ J(a);
1050
+ let { collapsedSize: o = 0, minSize: s = 0 } = a;
1051
+ if (Y(i, o)) {
1052
+ let t = s - i;
1053
+ or(t, Math.abs(e)) > 0 && (e = e < 0 ? 0 - t : t);
1054
+ }
1055
+ }
1056
+ }
1057
+ {
1058
+ let r = e < 0 ? o : s, i = n[r];
1059
+ J(i);
1060
+ let { collapsible: a } = i;
1061
+ if (a) {
1062
+ let i = t[r];
1063
+ J(i != null);
1064
+ let a = n[r];
1065
+ J(a);
1066
+ let { collapsedSize: o = 0, minSize: s = 0 } = a;
1067
+ if (Y(i, s)) {
1068
+ let t = i - o;
1069
+ or(t, Math.abs(e)) > 0 && (e = e < 0 ? 0 - t : t);
1070
+ }
1071
+ }
1072
+ }
1073
+ }
1074
+ {
1075
+ let r = e < 0 ? 1 : -1, i = e < 0 ? s : o, a = 0;
1076
+ for (;;) {
1077
+ let e = t[i];
1078
+ J(e != null);
1079
+ let o = sr({
1080
+ panelConstraints: n,
1081
+ panelIndex: i,
1082
+ size: 100
1083
+ }) - e;
1084
+ if (a += o, i += r, i < 0 || i >= n.length) break;
1085
+ }
1086
+ let c = Math.min(Math.abs(e), Math.abs(a));
1087
+ e = e < 0 ? 0 - c : c;
1088
+ }
1089
+ {
1090
+ let r = e < 0 ? o : s;
1091
+ for (; r >= 0 && r < n.length;) {
1092
+ let i = Math.abs(e) - Math.abs(c), o = t[r];
1093
+ J(o != null);
1094
+ let s = o - i, l = sr({
1095
+ panelConstraints: n,
1096
+ panelIndex: r,
1097
+ size: s
1098
+ });
1099
+ if (!Y(o, l) && (c += o - l, a[r] = l, c.toPrecision(3).localeCompare(Math.abs(e).toPrecision(3), void 0, { numeric: !0 }) >= 0)) break;
1100
+ e < 0 ? r-- : r++;
1101
+ }
1102
+ }
1103
+ if (Y(c, 0)) return t;
1104
+ {
1105
+ let r = e < 0 ? s : o, i = t[r];
1106
+ J(i != null);
1107
+ let l = i + c, u = sr({
1108
+ panelConstraints: n,
1109
+ panelIndex: r,
1110
+ size: l
1111
+ });
1112
+ if (a[r] = u, !Y(u, l)) {
1113
+ let t = l - u, r = e < 0 ? s : o;
1114
+ for (; r >= 0 && r < n.length;) {
1115
+ let i = a[r];
1116
+ J(i != null);
1117
+ let o = i + t, s = sr({
1118
+ panelConstraints: n,
1119
+ panelIndex: r,
1120
+ size: o
1121
+ });
1122
+ if (Y(i, s) || (t -= s - i, a[r] = s), Y(t, 0)) break;
1123
+ e > 0 ? r-- : r++;
1124
+ }
1125
+ }
1126
+ }
1127
+ return Y(a.reduce((e, t) => t + e, 0), 100) ? a : t;
1128
+ }
1129
+ //#endregion
1130
+ //#region ../../node_modules/.pnpm/reka-ui@2.5.1_typescript@5.9.3_vue@3.5.28_typescript@5.9.3_/node_modules/reka-ui/dist/utils/pivot.js
1131
+ function ur(e, t, n) {
1132
+ let r = Kn(e, t, n);
1133
+ return r == null ? [-1, -1] : [r, r + 1];
1134
+ }
1135
+ //#endregion
1136
+ //#region ../../node_modules/.pnpm/reka-ui@2.5.1_typescript@5.9.3_vue@3.5.28_typescript@5.9.3_/node_modules/reka-ui/dist/utils/rects.js
1137
+ function dr(e, t, n) {
1138
+ return n ? e.x < t.x + t.width && e.x + e.width > t.x && e.y < t.y + t.height && e.y + e.height > t.y : e.x <= t.x + t.width && e.x + e.width >= t.x && e.y <= t.y + t.height && e.y + e.height >= t.y;
1139
+ }
1140
+ //#endregion
1141
+ //#region ../../node_modules/.pnpm/reka-ui@2.5.1_typescript@5.9.3_vue@3.5.28_typescript@5.9.3_/node_modules/reka-ui/dist/utils/stackingOrder.js
1142
+ function fr(e, t) {
1143
+ if (e === t) throw Error("Cannot compare node with itself");
1144
+ let n = {
1145
+ a: vr(e),
1146
+ b: vr(t)
1147
+ }, r;
1148
+ for (; n.a.at(-1) === n.b.at(-1);) e = n.a.pop(), t = n.b.pop(), r = e;
1149
+ J(r);
1150
+ let i = {
1151
+ a: _r(gr(n.a)),
1152
+ b: _r(gr(n.b))
1153
+ };
1154
+ if (i.a === i.b) {
1155
+ let e = r.childNodes, t = {
1156
+ a: n.a.at(-1),
1157
+ b: n.b.at(-1)
1158
+ }, i = e.length;
1159
+ for (; i--;) {
1160
+ let n = e[i];
1161
+ if (n === t.a) return 1;
1162
+ if (n === t.b) return -1;
1163
+ }
1164
+ }
1165
+ return Math.sign(i.a - i.b);
1166
+ }
1167
+ var pr = /\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;
1168
+ function mr(e) {
1169
+ let t = getComputedStyle(yr(e)).display;
1170
+ return t === "flex" || t === "inline-flex";
1171
+ }
1172
+ function hr(e) {
1173
+ let t = getComputedStyle(e);
1174
+ return !!(t.position === "fixed" || t.zIndex !== "auto" && (t.position !== "static" || mr(e)) || +t.opacity < 1 || "transform" in t && t.transform !== "none" || "webkitTransform" in t && t.webkitTransform !== "none" || "mixBlendMode" in t && t.mixBlendMode !== "normal" || "filter" in t && t.filter !== "none" || "webkitFilter" in t && t.webkitFilter !== "none" || "isolation" in t && t.isolation === "isolate" || pr.test(t.willChange) || t.webkitOverflowScrolling === "touch");
1175
+ }
1176
+ function gr(e) {
1177
+ let t = e.length;
1178
+ for (; t--;) {
1179
+ let n = e[t];
1180
+ if (J(n), hr(n)) return n;
1181
+ }
1182
+ return null;
1183
+ }
1184
+ function _r(e) {
1185
+ return e && Number(getComputedStyle(e).zIndex) || 0;
1186
+ }
1187
+ function vr(e) {
1188
+ let t = [];
1189
+ for (; e;) t.push(e), e = yr(e);
1190
+ return t;
1191
+ }
1192
+ function yr(e) {
1193
+ return e.parentNode instanceof DocumentFragment && e.parentNode?.host || e.parentNode;
1194
+ }
1195
+ //#endregion
1196
+ //#region ../../node_modules/.pnpm/reka-ui@2.5.1_typescript@5.9.3_vue@3.5.28_typescript@5.9.3_/node_modules/reka-ui/dist/utils/registry.js
1197
+ function br() {
1198
+ if (typeof matchMedia == "function") return matchMedia("(pointer:coarse)").matches ? "coarse" : "fine";
1199
+ }
1200
+ var xr = br() === "coarse", Sr = [], Cr = !1, wr = /* @__PURE__ */ new Map(), Tr = /* @__PURE__ */ new Map(), Er = /* @__PURE__ */ new Set();
1201
+ function Dr(e, t, n, r, i, a) {
1202
+ let { ownerDocument: o } = t, s = {
1203
+ direction: n,
1204
+ element: t,
1205
+ hitAreaMargins: r,
1206
+ nonce: i,
1207
+ setResizeHandlerState: a
1208
+ }, c = wr.get(o) ?? 0;
1209
+ return wr.set(o, c + 1), Er.add(s), Nr(), function() {
1210
+ Tr.delete(e), Er.delete(s);
1211
+ let t = wr.get(o) ?? 1;
1212
+ wr.set(o, t - 1), Nr(), Rr(), t === 1 && wr.delete(o);
1213
+ };
1214
+ }
1215
+ function Or(e) {
1216
+ let { target: t } = e, { x: n, y: r } = Qn(e);
1217
+ Cr = !0, Ar({
1218
+ target: t,
1219
+ x: n,
1220
+ y: r
1221
+ }), Nr(), Sr.length > 0 && (Pr("down", e), e.preventDefault());
1222
+ }
1223
+ function kr(e) {
1224
+ let { x: t, y: n } = Qn(e);
1225
+ if (!Cr) {
1226
+ let { target: r } = e;
1227
+ Ar({
1228
+ target: r,
1229
+ x: t,
1230
+ y: n
1231
+ });
1232
+ }
1233
+ Pr("move", e), Mr(), Sr.length > 0 && e.preventDefault();
1234
+ }
1235
+ function X(e) {
1236
+ let { target: t } = e, { x: n, y: r } = Qn(e);
1237
+ Tr.clear(), Cr = !1, Sr.length > 0 && e.preventDefault(), Pr("up", e), Ar({
1238
+ target: t,
1239
+ x: n,
1240
+ y: r
1241
+ }), Mr(), Nr();
1242
+ }
1243
+ function Ar({ target: e, x: t, y: n }) {
1244
+ Sr.splice(0);
1245
+ let r = null;
1246
+ e instanceof HTMLElement && (r = e), Er.forEach((e) => {
1247
+ let { element: i, hitAreaMargins: a } = e, o = i.getBoundingClientRect(), { bottom: s, left: c, right: l, top: u } = o, d = xr ? a.coarse : a.fine;
1248
+ if (t >= c - d && t <= l + d && n >= u - d && n <= s + d) {
1249
+ if (r !== null && i !== r && !i.contains(r) && !r.contains(i) && fr(r, i) > 0) {
1250
+ let e = r, t = !1;
1251
+ for (; e && !e.contains(i);) {
1252
+ if (dr(e.getBoundingClientRect(), o, !0)) {
1253
+ t = !0;
1254
+ break;
1255
+ }
1256
+ e = e.parentElement;
1257
+ }
1258
+ if (t) return;
1259
+ }
1260
+ Sr.push(e);
1261
+ }
1262
+ });
1263
+ }
1264
+ function jr(e, t) {
1265
+ Tr.set(e, t);
1266
+ }
1267
+ function Mr() {
1268
+ let e = !1, t = !1, n;
1269
+ Sr.forEach((r) => {
1270
+ let { direction: i, nonce: a } = r;
1271
+ i.value === "horizontal" ? e = !0 : t = !0, n = a.value;
1272
+ });
1273
+ let r = 0;
1274
+ Tr.forEach((e) => {
1275
+ r |= e;
1276
+ }), e && t ? zr("intersection", r, n) : e ? zr("horizontal", r, n) : t ? zr("vertical", r, n) : Rr();
1277
+ }
1278
+ function Nr() {
1279
+ wr.forEach((e, t) => {
1280
+ let { body: n } = t;
1281
+ n.removeEventListener("contextmenu", X), n.removeEventListener("mousedown", Or), n.removeEventListener("mouseleave", kr), n.removeEventListener("mousemove", kr), n.removeEventListener("touchmove", kr), n.removeEventListener("touchstart", Or);
1282
+ }), window.removeEventListener("mouseup", X), window.removeEventListener("touchcancel", X), window.removeEventListener("touchend", X), Er.size > 0 && (Cr ? (Sr.length > 0 && wr.forEach((e, t) => {
1283
+ let { body: n } = t;
1284
+ e > 0 && (n.addEventListener("contextmenu", X), n.addEventListener("mouseleave", kr), n.addEventListener("mousemove", kr), n.addEventListener("touchmove", kr, { passive: !1 }));
1285
+ }), window.addEventListener("mouseup", X), window.addEventListener("touchcancel", X), window.addEventListener("touchend", X)) : wr.forEach((e, t) => {
1286
+ let { body: n } = t;
1287
+ e > 0 && (n.addEventListener("mousedown", Or), n.addEventListener("mousemove", kr), n.addEventListener("touchmove", kr, { passive: !1 }), n.addEventListener("touchstart", Or));
1288
+ }));
1289
+ }
1290
+ function Pr(e, t) {
1291
+ Er.forEach((n) => {
1292
+ let { setResizeHandlerState: r } = n;
1293
+ r(e, Sr.includes(n), t);
1294
+ });
1295
+ }
1296
+ //#endregion
1297
+ //#region ../../node_modules/.pnpm/reka-ui@2.5.1_typescript@5.9.3_vue@3.5.28_typescript@5.9.3_/node_modules/reka-ui/dist/utils/style.js
1298
+ var Fr = null, Ir = null;
1299
+ function Lr(e, t) {
1300
+ if (t) {
1301
+ let e = (t & 1) != 0, n = (t & 2) != 0, r = (t & 4) != 0, i = (t & 8) != 0;
1302
+ if (e) return r ? "se-resize" : i ? "ne-resize" : "e-resize";
1303
+ if (n) return r ? "sw-resize" : i ? "nw-resize" : "w-resize";
1304
+ if (r) return "s-resize";
1305
+ if (i) return "n-resize";
1306
+ }
1307
+ switch (e) {
1308
+ case "horizontal": return "ew-resize";
1309
+ case "intersection": return "move";
1310
+ case "vertical": return "ns-resize";
1311
+ }
1312
+ }
1313
+ function Rr() {
1314
+ Ir !== null && (document.head.removeChild(Ir), Fr = null, Ir = null);
1315
+ }
1316
+ function zr(e, t, n) {
1317
+ let r = Lr(e, t);
1318
+ Fr !== r && (Fr = r, Ir === null && (Ir = document.createElement("style"), n && (Ir.nonce = n), document.head.appendChild(Ir)), Ir.innerHTML = `*{cursor: ${r}!important;}`);
1319
+ }
1320
+ function Br({ defaultSize: e, dragState: t, layout: n, panelData: r, panelIndex: i, precision: a = 3 }) {
1321
+ let o = n[i], s;
1322
+ return s = o == null ? e === void 0 ? "1" : e.toPrecision(a) : r.length === 1 ? "1" : o.toPrecision(a), {
1323
+ flexBasis: 0,
1324
+ flexGrow: s,
1325
+ flexShrink: 1,
1326
+ overflow: "hidden",
1327
+ pointerEvents: t === null ? void 0 : "none"
1328
+ };
1329
+ }
1330
+ //#endregion
1331
+ //#region ../../node_modules/.pnpm/reka-ui@2.5.1_typescript@5.9.3_vue@3.5.28_typescript@5.9.3_/node_modules/reka-ui/dist/utils/validation.js
1332
+ function Vr({ layout: e, panelConstraints: t }) {
1333
+ let n = [...e], r = n.reduce((e, t) => e + t, 0);
1334
+ if (n.length !== t.length) throw Error(`Invalid ${t.length} panel layout: ${n.map((e) => `${e}%`).join(", ")}`);
1335
+ if (!Y(r, 100)) {
1336
+ console.warn(`WARNING: Invalid layout total size: ${n.map((e) => `${e}%`).join(", ")}. Layout normalization will be applied.`);
1337
+ for (let e = 0; e < t.length; e++) {
1338
+ let t = n[e];
1339
+ J(t != null), n[e] = 100 / r * t;
1340
+ }
1341
+ }
1342
+ let i = 0;
1343
+ for (let e = 0; e < t.length; e++) {
1344
+ let r = n[e];
1345
+ J(r != null);
1346
+ let a = sr({
1347
+ panelConstraints: t,
1348
+ panelIndex: e,
1349
+ size: r
1350
+ });
1351
+ r !== a && (i += r - a, n[e] = a);
1352
+ }
1353
+ if (!Y(i, 0)) for (let e = 0; e < t.length; e++) {
1354
+ let r = n[e];
1355
+ J(r != null);
1356
+ let a = r + i, o = sr({
1357
+ panelConstraints: t,
1358
+ panelIndex: e,
1359
+ size: a
1360
+ });
1361
+ if (r !== o && (i -= o - r, n[e] = o, Y(i, 0))) break;
1362
+ }
1363
+ return n;
1364
+ }
1365
+ //#endregion
1366
+ //#region ../../node_modules/.pnpm/reka-ui@2.5.1_typescript@5.9.3_vue@3.5.28_typescript@5.9.3_/node_modules/reka-ui/dist/composables/useWindowSplitterPanelGroupBehavior.js
1367
+ function Hr({ eagerValuesRef: e, groupId: t, layout: n, panelDataArray: r, panelGroupElement: i, setLayout: a }) {
1368
+ $e((e) => {
1369
+ let a = i.value;
1370
+ if (!a) return;
1371
+ let o = qn(t, a);
1372
+ for (let e = 0; e < r.length - 1; e++) {
1373
+ let { valueMax: t, valueMin: i, valueNow: a } = nr({
1374
+ layout: n.value,
1375
+ panelsArray: r,
1376
+ pivotIndices: [e, e + 1]
1377
+ }), s = o[e];
1378
+ if (s != null) {
1379
+ let n = r[e];
1380
+ J(n), s.setAttribute("aria-controls", n.id), s.setAttribute("aria-valuemax", `${Math.round(t)}`), s.setAttribute("aria-valuemin", `${Math.round(i)}`), s.setAttribute("aria-valuenow", a == null ? "" : `${Math.round(a)}`);
1381
+ }
1382
+ }
1383
+ e(() => {
1384
+ o.forEach((e) => {
1385
+ e.removeAttribute("aria-controls"), e.removeAttribute("aria-valuemax"), e.removeAttribute("aria-valuemin"), e.removeAttribute("aria-valuenow");
1386
+ });
1387
+ });
1388
+ }), $e((r) => {
1389
+ let o = i.value;
1390
+ if (!o) return;
1391
+ let s = e.value;
1392
+ J(s);
1393
+ let { panelDataArray: c } = s;
1394
+ J(Wn(t, o) != null, `No group found for id "${t}"`);
1395
+ let l = qn(t, o);
1396
+ J(l);
1397
+ let u = l.map((e) => {
1398
+ let r = e.getAttribute("data-panel-resize-handle-id");
1399
+ J(r);
1400
+ let [i, s] = Jn(t, r, c, o);
1401
+ if (i == null || s == null) return () => {};
1402
+ let l = (e) => {
1403
+ if (!e.defaultPrevented) switch (e.key) {
1404
+ case "Enter": {
1405
+ e.preventDefault();
1406
+ let s = c.findIndex((e) => e.id === i);
1407
+ if (s >= 0) {
1408
+ let e = c[s];
1409
+ J(e);
1410
+ let i = n.value[s], { collapsedSize: l = 0, collapsible: u, minSize: d = 0 } = e.constraints;
1411
+ if (i != null && u) {
1412
+ let e = lr({
1413
+ delta: Y(i, l) ? d - l : l - i,
1414
+ layout: n.value,
1415
+ panelConstraints: c.map((e) => e.constraints),
1416
+ pivotIndices: ur(t, r, o),
1417
+ trigger: "keyboard"
1418
+ });
1419
+ n.value !== e && a(e);
1420
+ }
1421
+ }
1422
+ break;
1423
+ }
1424
+ }
1425
+ };
1426
+ return e.addEventListener("keydown", l), () => {
1427
+ e.removeEventListener("keydown", l);
1428
+ };
1429
+ });
1430
+ r(() => {
1431
+ u.forEach((e) => e());
1432
+ });
1433
+ });
1434
+ }
1435
+ //#endregion
1436
+ //#region ../../node_modules/.pnpm/reka-ui@2.5.1_typescript@5.9.3_vue@3.5.28_typescript@5.9.3_/node_modules/reka-ui/dist/utils/storage.js
1437
+ function Ur(e) {
1438
+ try {
1439
+ if (typeof localStorage < "u") e.getItem = (e) => localStorage.getItem(e), e.setItem = (e, t) => {
1440
+ localStorage.setItem(e, t);
1441
+ };
1442
+ else throw TypeError("localStorage not supported in this environment");
1443
+ } catch (t) {
1444
+ console.error(t), e.getItem = () => null, e.setItem = () => {};
1445
+ }
1446
+ }
1447
+ function Wr(e) {
1448
+ return `reka:${e}`;
1449
+ }
1450
+ function Gr(e) {
1451
+ return e.map((e) => {
1452
+ let { constraints: t, id: n, idIsFromProps: r, order: i } = e;
1453
+ return r ? n : i ? `${i}:${JSON.stringify(t)}` : JSON.stringify(t);
1454
+ }).sort((e, t) => e.localeCompare(t)).join(",");
1455
+ }
1456
+ function Kr(e, t) {
1457
+ try {
1458
+ let n = Wr(e), r = t.getItem(n);
1459
+ if (r) {
1460
+ let e = JSON.parse(r);
1461
+ if (typeof e == "object" && e) return e;
1462
+ }
1463
+ } catch {}
1464
+ return null;
1465
+ }
1466
+ function qr(e, t, n) {
1467
+ return (Kr(e, n) ?? {})[Gr(t)] ?? null;
1468
+ }
1469
+ function Jr(e, t, n, r, i) {
1470
+ let a = Wr(e), o = Gr(t), s = Kr(e, i) ?? {};
1471
+ s[o] = {
1472
+ expandToSizes: Object.fromEntries(n.entries()),
1473
+ layout: r
1474
+ };
1475
+ try {
1476
+ i.setItem(a, JSON.stringify(s));
1477
+ } catch (e) {
1478
+ console.error(e);
1479
+ }
1480
+ }
1481
+ //#endregion
1482
+ //#region ../../node_modules/.pnpm/reka-ui@2.5.1_typescript@5.9.3_vue@3.5.28_typescript@5.9.3_/node_modules/reka-ui/dist/Splitter/SplitterGroup.js
1483
+ var Yr = 100, Xr = {
1484
+ getItem: (e) => (Ur(Xr), Xr.getItem(e)),
1485
+ setItem: (e, t) => {
1486
+ Ur(Xr), Xr.setItem(e, t);
1487
+ }
1488
+ }, [Zr, Qr] = K("PanelGroup"), $r = /* @__PURE__ */ A({
1489
+ __name: "SplitterGroup",
1490
+ props: {
1491
+ id: {
1492
+ type: [String, null],
1493
+ required: !1
1494
+ },
1495
+ autoSaveId: {
1496
+ type: [String, null],
1497
+ required: !1,
1498
+ default: null
1499
+ },
1500
+ direction: {
1501
+ type: String,
1502
+ required: !0
1503
+ },
1504
+ keyboardResizeBy: {
1505
+ type: [Number, null],
1506
+ required: !1,
1507
+ default: 10
1508
+ },
1509
+ storage: {
1510
+ type: Object,
1511
+ required: !1,
1512
+ default: () => Xr
1513
+ },
1514
+ asChild: {
1515
+ type: Boolean,
1516
+ required: !1
1517
+ },
1518
+ as: {
1519
+ type: null,
1520
+ required: !1
1521
+ }
1522
+ },
1523
+ emits: ["layout"],
1524
+ setup(e, { emit: t }) {
1525
+ let n = e, r = t, i = {}, { direction: a } = B(n), o = bn(n.id, "reka-splitter-group"), s = _n(), { forwardRef: c, currentElement: l } = vn(), u = F(null), d = F([]), f = F({}), p = F(/* @__PURE__ */ new Map()), m = F(0), h = w(() => ({
1526
+ autoSaveId: n.autoSaveId,
1527
+ direction: n.direction,
1528
+ dragState: u.value,
1529
+ id: o,
1530
+ keyboardResizeBy: n.keyboardResizeBy,
1531
+ storage: n.storage
1532
+ })), g = F({
1533
+ layout: d.value,
1534
+ panelDataArray: [],
1535
+ panelDataArrayChanged: !1
1536
+ }), _ = (e) => d.value = e;
1537
+ Hr({
1538
+ eagerValuesRef: g,
1539
+ groupId: o,
1540
+ layout: d,
1541
+ panelDataArray: g.value.panelDataArray,
1542
+ setLayout: _,
1543
+ panelGroupElement: l
1544
+ }), $e(() => {
1545
+ let { panelDataArray: e } = g.value, { autoSaveId: t } = n;
1546
+ if (t) {
1547
+ if (d.value.length === 0 || d.value.length !== e.length) return;
1548
+ let r = i[t];
1549
+ r || (r = ar(Jr, Yr), i[t] = r);
1550
+ let a = [...e], o = new Map(p.value);
1551
+ r(t, a, o, d.value, n.storage);
1552
+ }
1553
+ });
1554
+ function ee(e, t) {
1555
+ let { panelDataArray: n } = g.value, r = ce(n, e);
1556
+ return Br({
1557
+ defaultSize: t,
1558
+ dragState: u.value,
1559
+ layout: d.value,
1560
+ panelData: n,
1561
+ panelIndex: r
1562
+ });
1563
+ }
1564
+ function v(e) {
1565
+ let { panelDataArray: t } = g.value;
1566
+ t.push(e), t.sort((e, t) => {
1567
+ let n = e.order, r = t.order;
1568
+ return n == null && r == null ? 0 : n == null ? -1 : r == null ? 1 : n - r;
1569
+ }), g.value.panelDataArrayChanged = !0;
1570
+ }
1571
+ U(() => g.value.panelDataArrayChanged, () => {
1572
+ if (g.value.panelDataArrayChanged) {
1573
+ g.value.panelDataArrayChanged = !1;
1574
+ let { autoSaveId: e, storage: t } = h.value, { layout: n, panelDataArray: i } = g.value, a = null;
1575
+ if (e) {
1576
+ let n = qr(e, i, t);
1577
+ n && (p.value = new Map(Object.entries(n.expandToSizes)), a = n.layout);
1578
+ }
1579
+ a === null && (a = rr({ panelDataArray: i }));
1580
+ let o = Vr({
1581
+ layout: a,
1582
+ panelConstraints: i.map((e) => e.constraints)
1583
+ });
1584
+ en(n, o) || (_(o), g.value.layout = o, r("layout", o), ir(i, o, f.value));
1585
+ }
1586
+ });
1587
+ function y(e) {
1588
+ return function(t) {
1589
+ t.preventDefault();
1590
+ let n = l.value;
1591
+ if (!n) return () => null;
1592
+ let { direction: i, dragState: a, id: o, keyboardResizeBy: c } = h.value, { layout: u, panelDataArray: d } = g.value, { initialLayout: p } = a ?? {}, ee = ur(o, e, n), v = tr(t, e, i, a, c, n);
1593
+ if (v === 0) return;
1594
+ let y = i === "horizontal";
1595
+ s.value === "rtl" && y && (v = -v);
1596
+ let b = d.map((e) => e.constraints), x = lr({
1597
+ delta: v,
1598
+ layout: p ?? u,
1599
+ panelConstraints: b,
1600
+ pivotIndices: ee,
1601
+ trigger: Yn(t) ? "keyboard" : "mouse-or-touch"
1602
+ }), S = !cr(u, x);
1603
+ (Xn(t) || Zn(t)) && m.value !== v && (m.value = v, S ? jr(e, 0) : y ? jr(e, v < 0 ? 1 : 2) : jr(e, v < 0 ? 4 : 8)), S && (_(x), g.value.layout = x, r("layout", x), ir(d, x, f.value));
1604
+ };
1605
+ }
1606
+ function b(e, t) {
1607
+ let { layout: n, panelDataArray: i } = g.value, a = i.map((e) => e.constraints), { panelSize: o, pivotIndices: s } = le(i, e, n);
1608
+ J(o != null);
1609
+ let c = lr({
1610
+ delta: ce(i, e) === i.length - 1 ? o - t : t - o,
1611
+ layout: n,
1612
+ panelConstraints: a,
1613
+ pivotIndices: s,
1614
+ trigger: "imperative-api"
1615
+ });
1616
+ cr(n, c) || (_(c), g.value.layout = c, r("layout", c), ir(i, c, f.value));
1617
+ }
1618
+ function x(e, t) {
1619
+ let { layout: n, panelDataArray: r } = g.value, i = ce(r, e);
1620
+ r[i] = e, g.value.panelDataArrayChanged = !0;
1621
+ let { collapsedSize: a = 0, collapsible: o } = t, { collapsedSize: s = 0, collapsible: c, maxSize: l = 100, minSize: u = 0 } = e.constraints, { panelSize: d } = le(r, e, n);
1622
+ d !== null && (o && c && d === a ? a !== s && b(e, s) : d < u ? b(e, u) : d > l && b(e, l));
1623
+ }
1624
+ function S(e, t) {
1625
+ let { direction: n } = h.value, { layout: r } = g.value;
1626
+ if (!l.value) return;
1627
+ let i = Gn(e, l.value);
1628
+ J(i);
1629
+ let a = $n(n, t);
1630
+ u.value = {
1631
+ dragHandleId: e,
1632
+ dragHandleRect: i.getBoundingClientRect(),
1633
+ initialCursorPosition: a,
1634
+ initialLayout: r
1635
+ };
1636
+ }
1637
+ function te() {
1638
+ u.value = null;
1639
+ }
1640
+ function ne(e) {
1641
+ let { panelDataArray: t } = g.value, n = ce(t, e);
1642
+ n >= 0 && (t.splice(n, 1), delete f.value[e.id], g.value.panelDataArrayChanged = !0);
1643
+ }
1644
+ function re(e) {
1645
+ let { layout: t, panelDataArray: n } = g.value;
1646
+ if (e.constraints.collapsible) {
1647
+ let i = n.map((e) => e.constraints), { collapsedSize: a = 0, panelSize: o, pivotIndices: s } = le(n, e, t);
1648
+ if (J(o != null, `Panel size not found for panel "${e.id}"`), o !== a) {
1649
+ p.value.set(e.id, o);
1650
+ let c = lr({
1651
+ delta: ce(n, e) === n.length - 1 ? o - a : a - o,
1652
+ layout: t,
1653
+ panelConstraints: i,
1654
+ pivotIndices: s,
1655
+ trigger: "imperative-api"
1656
+ });
1657
+ cr(t, c) || (_(c), g.value.layout = c, r("layout", c), ir(n, c, f.value));
1658
+ }
1659
+ }
1660
+ }
1661
+ function ie(e) {
1662
+ let { layout: t, panelDataArray: n } = g.value;
1663
+ if (e.constraints.collapsible) {
1664
+ let i = n.map((e) => e.constraints), { collapsedSize: a = 0, panelSize: o, minSize: s = 0, pivotIndices: c } = le(n, e, t);
1665
+ if (o === a) {
1666
+ let a = p.value.get(e.id), l = a != null && a >= s ? a : s, u = lr({
1667
+ delta: ce(n, e) === n.length - 1 ? o - l : l - o,
1668
+ layout: t,
1669
+ panelConstraints: i,
1670
+ pivotIndices: c,
1671
+ trigger: "imperative-api"
1672
+ });
1673
+ cr(t, u) || (_(u), g.value.layout = u, r("layout", u), ir(n, u, f.value));
1674
+ }
1675
+ }
1676
+ }
1677
+ function ae(e) {
1678
+ let { layout: t, panelDataArray: n } = g.value, { panelSize: r } = le(n, e, t);
1679
+ return J(r != null, `Panel size not found for panel "${e.id}"`), r;
1680
+ }
1681
+ function oe(e) {
1682
+ let { layout: t, panelDataArray: n } = g.value, { collapsedSize: r = 0, collapsible: i, panelSize: a } = le(n, e, t);
1683
+ return i ? a === void 0 ? e.constraints.defaultSize === e.constraints.collapsedSize : a === r : !1;
1684
+ }
1685
+ function se(e) {
1686
+ let { layout: t, panelDataArray: n } = g.value, { collapsedSize: r = 0, collapsible: i, panelSize: a } = le(n, e, t);
1687
+ return J(a != null, `Panel size not found for panel "${e.id}"`), !i || a > r;
1688
+ }
1689
+ Qr({
1690
+ direction: a,
1691
+ dragState: u.value,
1692
+ groupId: o,
1693
+ reevaluatePanelConstraints: x,
1694
+ registerPanel: v,
1695
+ registerResizeHandle: y,
1696
+ resizePanel: b,
1697
+ startDragging: S,
1698
+ stopDragging: te,
1699
+ unregisterPanel: ne,
1700
+ panelGroupElement: l,
1701
+ collapsePanel: re,
1702
+ expandPanel: ie,
1703
+ isPanelCollapsed: oe,
1704
+ isPanelExpanded: se,
1705
+ getPanelSize: ae,
1706
+ getPanelStyle: ee
1707
+ });
1708
+ function ce(e, t) {
1709
+ return e.findIndex((e) => e === t || e.id === t.id);
1710
+ }
1711
+ function le(e, t, n) {
1712
+ let r = ce(e, t), i = r === e.length - 1 ? [r - 1, r] : [r, r + 1], a = n[r];
1713
+ return {
1714
+ ...t.constraints,
1715
+ panelSize: a,
1716
+ pivotIndices: i
1717
+ };
1718
+ }
1719
+ return (e, t) => (P(), T(H(q), {
1720
+ ref: H(c),
1721
+ as: e.as,
1722
+ "as-child": e.asChild,
1723
+ style: N({
1724
+ display: "flex",
1725
+ flexDirection: H(a) === "horizontal" ? "row" : "column",
1726
+ height: "100%",
1727
+ overflow: "hidden",
1728
+ width: "100%"
1729
+ }),
1730
+ "data-panel-group": "",
1731
+ "data-orientation": H(a),
1732
+ "data-panel-group-id": H(o)
1733
+ }, {
1734
+ default: W(() => [I(e.$slots, "default", { layout: d.value })]),
1735
+ _: 3
1736
+ }, 8, [
1737
+ "as",
1738
+ "as-child",
1739
+ "style",
1740
+ "data-orientation",
1741
+ "data-panel-group-id"
1742
+ ]));
1743
+ }
1744
+ }), ei = /* @__PURE__ */ A({
1745
+ __name: "SplitterPanel",
1746
+ props: {
1747
+ collapsedSize: {
1748
+ type: Number,
1749
+ required: !1
1750
+ },
1751
+ collapsible: {
1752
+ type: Boolean,
1753
+ required: !1
1754
+ },
1755
+ defaultSize: {
1756
+ type: Number,
1757
+ required: !1
1758
+ },
1759
+ id: {
1760
+ type: String,
1761
+ required: !1
1762
+ },
1763
+ maxSize: {
1764
+ type: Number,
1765
+ required: !1
1766
+ },
1767
+ minSize: {
1768
+ type: Number,
1769
+ required: !1
1770
+ },
1771
+ order: {
1772
+ type: Number,
1773
+ required: !1
1774
+ },
1775
+ asChild: {
1776
+ type: Boolean,
1777
+ required: !1
1778
+ },
1779
+ as: {
1780
+ type: null,
1781
+ required: !1
1782
+ }
1783
+ },
1784
+ emits: [
1785
+ "collapse",
1786
+ "expand",
1787
+ "resize"
1788
+ ],
1789
+ setup(e, { expose: t, emit: n }) {
1790
+ let r = e, i = n, a = Zr();
1791
+ if (a === null) throw Error("SplitterPanel components must be rendered within a SplitterGroup container");
1792
+ let { collapsePanel: o, expandPanel: s, getPanelSize: c, getPanelStyle: l, isPanelCollapsed: u, resizePanel: d, groupId: f, reevaluatePanelConstraints: p, registerPanel: m, unregisterPanel: h } = a, g = bn(r.id, "reka-splitter-panel"), _ = w(() => ({
1793
+ callbacks: {
1794
+ onCollapse: () => i("collapse"),
1795
+ onExpand: () => i("expand"),
1796
+ onResize: (...e) => i("resize", ...e)
1797
+ },
1798
+ constraints: {
1799
+ collapsedSize: r.collapsedSize && Number.parseFloat(r.collapsedSize.toFixed(10)),
1800
+ collapsible: r.collapsible,
1801
+ defaultSize: r.defaultSize,
1802
+ maxSize: r.maxSize,
1803
+ minSize: r.minSize
1804
+ },
1805
+ id: g,
1806
+ idIsFromProps: r.id !== void 0,
1807
+ order: r.order
1808
+ }));
1809
+ U(() => _.value.constraints, (e, t) => {
1810
+ (t.collapsedSize !== e.collapsedSize || t.collapsible !== e.collapsible || t.maxSize !== e.maxSize || t.minSize !== e.minSize) && p(_.value, t);
1811
+ }, { deep: !0 }), Be(() => {
1812
+ m(_.value);
1813
+ }), He(() => {
1814
+ h(_.value);
1815
+ });
1816
+ let ee = w(() => l(_.value, r.defaultSize)), v = w(() => u(_.value)), y = w(() => !v.value);
1817
+ function b() {
1818
+ o(_.value);
1819
+ }
1820
+ function x() {
1821
+ s(_.value);
1822
+ }
1823
+ function S(e) {
1824
+ d(_.value, e);
1825
+ }
1826
+ return t({
1827
+ collapse: b,
1828
+ expand: x,
1829
+ getSize() {
1830
+ return c(_.value);
1831
+ },
1832
+ resize: S,
1833
+ isCollapsed: v,
1834
+ isExpanded: y
1835
+ }), (e, t) => (P(), T(H(q), {
1836
+ id: H(g),
1837
+ style: N(ee.value),
1838
+ as: e.as,
1839
+ "as-child": e.asChild,
1840
+ "data-panel": "",
1841
+ "data-panel-collapsible": e.collapsible || void 0,
1842
+ "data-panel-group-id": H(f),
1843
+ "data-panel-id": H(g),
1844
+ "data-panel-size": Number.parseFloat(`${ee.value.flexGrow}`).toFixed(1),
1845
+ "data-state": e.collapsible ? v.value ? "collapsed" : "expanded" : void 0
1846
+ }, {
1847
+ default: W(() => [I(e.$slots, "default", {
1848
+ isCollapsed: v.value,
1849
+ isExpanded: y.value,
1850
+ expand: x,
1851
+ collapse: b,
1852
+ resize: S
1853
+ })]),
1854
+ _: 3
1855
+ }, 8, [
1856
+ "id",
1857
+ "style",
1858
+ "as",
1859
+ "as-child",
1860
+ "data-panel-collapsible",
1861
+ "data-panel-group-id",
1862
+ "data-panel-id",
1863
+ "data-panel-size",
1864
+ "data-state"
1865
+ ]));
1866
+ }
1867
+ });
1868
+ //#endregion
1869
+ //#region ../../node_modules/.pnpm/reka-ui@2.5.1_typescript@5.9.3_vue@3.5.28_typescript@5.9.3_/node_modules/reka-ui/dist/composables/useWindowSplitterBehavior.js
1870
+ function ti({ disabled: e, handleId: t, resizeHandler: n, panelGroupElement: r }) {
1871
+ $e((i) => {
1872
+ let a = r.value;
1873
+ if (e.value || n.value === null || a === null) return;
1874
+ let o = Gn(t, a);
1875
+ if (o == null) return;
1876
+ let s = (e) => {
1877
+ if (!e.defaultPrevented) switch (e.key) {
1878
+ case "ArrowDown":
1879
+ case "ArrowLeft":
1880
+ case "ArrowRight":
1881
+ case "ArrowUp":
1882
+ case "End":
1883
+ case "Home":
1884
+ e.preventDefault(), n.value?.(e);
1885
+ break;
1886
+ case "F6": {
1887
+ e.preventDefault();
1888
+ let n = o.getAttribute("data-panel-group-id");
1889
+ J(n);
1890
+ let r = qn(n, a), i = Kn(n, t, a);
1891
+ J(i !== null), r[e.shiftKey ? i > 0 ? i - 1 : r.length - 1 : i + 1 < r.length ? i + 1 : 0].focus();
1892
+ break;
1893
+ }
1894
+ }
1895
+ };
1896
+ o.addEventListener("keydown", s), i(() => {
1897
+ o.removeEventListener("keydown", s);
1898
+ });
1899
+ });
1900
+ }
1901
+ //#endregion
1902
+ //#region ../../node_modules/.pnpm/reka-ui@2.5.1_typescript@5.9.3_vue@3.5.28_typescript@5.9.3_/node_modules/reka-ui/dist/Splitter/SplitterResizeHandle.js
1903
+ var ni = /* @__PURE__ */ A({
1904
+ __name: "SplitterResizeHandle",
1905
+ props: {
1906
+ id: {
1907
+ type: String,
1908
+ required: !1
1909
+ },
1910
+ hitAreaMargins: {
1911
+ type: Object,
1912
+ required: !1
1913
+ },
1914
+ tabindex: {
1915
+ type: Number,
1916
+ required: !1,
1917
+ default: 0
1918
+ },
1919
+ disabled: {
1920
+ type: Boolean,
1921
+ required: !1
1922
+ },
1923
+ nonce: {
1924
+ type: String,
1925
+ required: !1
1926
+ },
1927
+ asChild: {
1928
+ type: Boolean,
1929
+ required: !1
1930
+ },
1931
+ as: {
1932
+ type: null,
1933
+ required: !1
1934
+ }
1935
+ },
1936
+ emits: ["dragging"],
1937
+ setup(e, { emit: t }) {
1938
+ let n = e, r = t, { forwardRef: i, currentElement: a } = vn(), { disabled: o } = B(n), s = Zr();
1939
+ if (s === null) throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");
1940
+ let { direction: c, groupId: l, registerResizeHandle: u, startDragging: d, stopDragging: f, panelGroupElement: p } = s, m = bn(n.id, "reka-splitter-resize-handle"), h = F("inactive"), g = F(!1), _ = F(null), { nonce: ee } = B(n), v = Vn(ee);
1941
+ return U(o, () => {
1942
+ tn && (o.value ? _.value = null : _.value = u(m));
1943
+ }, { immediate: !0 }), $e((e) => {
1944
+ if (o.value || _.value === null) return;
1945
+ let t = a.value;
1946
+ t && (J(t), e(Dr(m, t, c, {
1947
+ coarse: n.hitAreaMargins?.coarse ?? 15,
1948
+ fine: n.hitAreaMargins?.fine ?? 5
1949
+ }, v, (e, t, n) => {
1950
+ if (t) switch (e) {
1951
+ case "down":
1952
+ h.value = "drag", d(m, n), r("dragging", !0);
1953
+ break;
1954
+ case "move":
1955
+ h.value !== "drag" && (h.value = "hover"), _.value?.(n);
1956
+ break;
1957
+ case "up":
1958
+ h.value = "hover", f(), r("dragging", !1);
1959
+ break;
1960
+ }
1961
+ else h.value = "inactive";
1962
+ })));
1963
+ }), ti({
1964
+ disabled: o,
1965
+ resizeHandler: _,
1966
+ handleId: m,
1967
+ panelGroupElement: p
1968
+ }), (e, t) => (P(), T(H(q), {
1969
+ id: H(m),
1970
+ ref: H(i),
1971
+ style: {
1972
+ touchAction: "none",
1973
+ userSelect: "none"
1974
+ },
1975
+ as: e.as,
1976
+ "as-child": e.asChild,
1977
+ role: "separator",
1978
+ "data-resize-handle": "",
1979
+ tabindex: e.tabindex,
1980
+ "data-state": h.value,
1981
+ "data-disabled": H(o) ? "" : void 0,
1982
+ "data-orientation": H(c),
1983
+ "data-panel-group-id": H(l),
1984
+ "data-resize-handle-active": h.value === "drag" ? "pointer" : g.value ? "keyboard" : void 0,
1985
+ "data-resize-handle-state": h.value,
1986
+ "data-panel-resize-handle-enabled": !H(o),
1987
+ "data-panel-resize-handle-id": H(m),
1988
+ onBlur: t[0] ||= (e) => g.value = !1,
1989
+ onFocus: t[1] ||= (e) => g.value = !1
1990
+ }, {
1991
+ default: W(() => [I(e.$slots, "default")]),
1992
+ _: 3
1993
+ }, 8, [
1994
+ "id",
1995
+ "as",
1996
+ "as-child",
1997
+ "tabindex",
1998
+ "data-state",
1999
+ "data-disabled",
2000
+ "data-orientation",
2001
+ "data-panel-group-id",
2002
+ "data-resize-handle-active",
2003
+ "data-resize-handle-state",
2004
+ "data-panel-resize-handle-enabled",
2005
+ "data-panel-resize-handle-id"
2006
+ ]));
2007
+ }
2008
+ }), [ri, ii] = K("TabsRoot"), ai = /* @__PURE__ */ A({
2009
+ __name: "TabsRoot",
2010
+ props: {
2011
+ defaultValue: {
2012
+ type: null,
2013
+ required: !1
2014
+ },
2015
+ orientation: {
2016
+ type: String,
2017
+ required: !1,
2018
+ default: "horizontal"
2019
+ },
2020
+ dir: {
2021
+ type: String,
2022
+ required: !1
2023
+ },
2024
+ activationMode: {
2025
+ type: String,
2026
+ required: !1,
2027
+ default: "automatic"
2028
+ },
2029
+ modelValue: {
2030
+ type: null,
2031
+ required: !1
2032
+ },
2033
+ unmountOnHide: {
2034
+ type: Boolean,
2035
+ required: !1,
2036
+ default: !0
2037
+ },
2038
+ asChild: {
2039
+ type: Boolean,
2040
+ required: !1
2041
+ },
2042
+ as: {
2043
+ type: null,
2044
+ required: !1
2045
+ }
2046
+ },
2047
+ emits: ["update:modelValue"],
2048
+ setup(e, { emit: t }) {
2049
+ let n = e, r = t, { orientation: i, unmountOnHide: a, dir: o } = B(n), s = _n(o);
2050
+ vn();
2051
+ let c = gn(n, "modelValue", r, {
2052
+ defaultValue: n.defaultValue,
2053
+ passive: n.modelValue === void 0
2054
+ }), l = F();
2055
+ return ii({
2056
+ modelValue: c,
2057
+ changeModelValue: (e) => {
2058
+ c.value = e;
2059
+ },
2060
+ orientation: i,
2061
+ dir: s,
2062
+ unmountOnHide: a,
2063
+ activationMode: n.activationMode,
2064
+ baseId: bn(void 0, "reka-tabs"),
2065
+ tabsList: l
2066
+ }), (e, t) => (P(), T(H(q), {
2067
+ dir: H(s),
2068
+ "data-orientation": H(i),
2069
+ "as-child": e.asChild,
2070
+ as: e.as
2071
+ }, {
2072
+ default: W(() => [I(e.$slots, "default", { modelValue: H(c) })]),
2073
+ _: 3
2074
+ }, 8, [
2075
+ "dir",
2076
+ "data-orientation",
2077
+ "as-child",
2078
+ "as"
2079
+ ]));
2080
+ }
2081
+ });
2082
+ //#endregion
2083
+ //#region ../../node_modules/.pnpm/reka-ui@2.5.1_typescript@5.9.3_vue@3.5.28_typescript@5.9.3_/node_modules/reka-ui/dist/Tabs/utils.js
2084
+ function oi(e, t) {
2085
+ return `${e}-trigger-${t}`;
2086
+ }
2087
+ function si(e, t) {
2088
+ return `${e}-content-${t}`;
2089
+ }
2090
+ //#endregion
2091
+ //#region ../../node_modules/.pnpm/reka-ui@2.5.1_typescript@5.9.3_vue@3.5.28_typescript@5.9.3_/node_modules/reka-ui/dist/Tabs/TabsContent.js
2092
+ var ci = /* @__PURE__ */ A({
2093
+ __name: "TabsContent",
2094
+ props: {
2095
+ value: {
2096
+ type: [String, Number],
2097
+ required: !0
2098
+ },
2099
+ forceMount: {
2100
+ type: Boolean,
2101
+ required: !1
2102
+ },
2103
+ asChild: {
2104
+ type: Boolean,
2105
+ required: !1
2106
+ },
2107
+ as: {
2108
+ type: null,
2109
+ required: !1
2110
+ }
2111
+ },
2112
+ setup(e) {
2113
+ let t = e, { forwardRef: n } = vn(), r = ri(), i = w(() => oi(r.baseId, t.value)), a = w(() => si(r.baseId, t.value)), o = w(() => t.value === r.modelValue.value), s = F(o.value);
2114
+ return Be(() => {
2115
+ requestAnimationFrame(() => {
2116
+ s.value = !1;
2117
+ });
2118
+ }), (e, t) => (P(), T(H(wn), {
2119
+ present: e.forceMount || o.value,
2120
+ "force-mount": ""
2121
+ }, {
2122
+ default: W(({ present: t }) => [k(H(q), {
2123
+ id: a.value,
2124
+ ref: H(n),
2125
+ "as-child": e.asChild,
2126
+ as: e.as,
2127
+ role: "tabpanel",
2128
+ "data-state": o.value ? "active" : "inactive",
2129
+ "data-orientation": H(r).orientation.value,
2130
+ "aria-labelledby": i.value,
2131
+ hidden: !t,
2132
+ tabindex: "0",
2133
+ style: N({ animationDuration: s.value ? "0s" : void 0 })
2134
+ }, {
2135
+ default: W(() => [!H(r).unmountOnHide.value || t ? I(e.$slots, "default", { key: 0 }) : E("v-if", !0)]),
2136
+ _: 2
2137
+ }, 1032, [
2138
+ "id",
2139
+ "as-child",
2140
+ "as",
2141
+ "data-state",
2142
+ "data-orientation",
2143
+ "aria-labelledby",
2144
+ "hidden",
2145
+ "style"
2146
+ ])]),
2147
+ _: 3
2148
+ }, 8, ["present"]));
2149
+ }
2150
+ }), li = /* @__PURE__ */ A({
2151
+ __name: "TabsIndicator",
2152
+ props: {
2153
+ asChild: {
2154
+ type: Boolean,
2155
+ required: !1
2156
+ },
2157
+ as: {
2158
+ type: null,
2159
+ required: !1
2160
+ }
2161
+ },
2162
+ setup(e) {
2163
+ let t = e, n = ri();
2164
+ vn();
2165
+ let r = F(), i = F({
2166
+ size: null,
2167
+ position: null
2168
+ });
2169
+ U(() => [n.modelValue.value, n?.dir.value], async () => {
2170
+ await Re(), a();
2171
+ }, { immediate: !0 }), hn([n.tabsList, r], a);
2172
+ function a() {
2173
+ r.value = n.tabsList.value?.querySelector("[role=\"tab\"][data-state=\"active\"]"), r.value && (n.orientation.value === "horizontal" ? i.value = {
2174
+ size: r.value.offsetWidth,
2175
+ position: r.value.offsetLeft
2176
+ } : i.value = {
2177
+ size: r.value.offsetHeight,
2178
+ position: r.value.offsetTop
2179
+ });
2180
+ }
2181
+ return (e, n) => typeof i.value.size == "number" ? (P(), T(H(q), Le({ key: 0 }, t, { style: {
2182
+ "--reka-tabs-indicator-size": `${i.value.size}px`,
2183
+ "--reka-tabs-indicator-position": `${i.value.position}px`
2184
+ } }), {
2185
+ default: W(() => [I(e.$slots, "default")]),
2186
+ _: 3
2187
+ }, 16, ["style"])) : E("v-if", !0);
2188
+ }
2189
+ }), ui = /* @__PURE__ */ A({
2190
+ __name: "TabsList",
2191
+ props: {
2192
+ loop: {
2193
+ type: Boolean,
2194
+ required: !1,
2195
+ default: !0
2196
+ },
2197
+ asChild: {
2198
+ type: Boolean,
2199
+ required: !1
2200
+ },
2201
+ as: {
2202
+ type: null,
2203
+ required: !1
2204
+ }
2205
+ },
2206
+ setup(e) {
2207
+ let { loop: t } = B(e), { forwardRef: n, currentElement: r } = vn(), i = ri();
2208
+ return i.tabsList = r, (e, r) => (P(), T(H(zn), {
2209
+ "as-child": "",
2210
+ orientation: H(i).orientation.value,
2211
+ dir: H(i).dir.value,
2212
+ loop: H(t)
2213
+ }, {
2214
+ default: W(() => [k(H(q), {
2215
+ ref: H(n),
2216
+ role: "tablist",
2217
+ "as-child": e.asChild,
2218
+ as: e.as,
2219
+ "aria-orientation": H(i).orientation.value
2220
+ }, {
2221
+ default: W(() => [I(e.$slots, "default")]),
2222
+ _: 3
2223
+ }, 8, [
2224
+ "as-child",
2225
+ "as",
2226
+ "aria-orientation"
2227
+ ])]),
2228
+ _: 3
2229
+ }, 8, [
2230
+ "orientation",
2231
+ "dir",
2232
+ "loop"
2233
+ ]));
2234
+ }
2235
+ }), di = /* @__PURE__ */ A({
2236
+ __name: "TabsTrigger",
2237
+ props: {
2238
+ value: {
2239
+ type: [String, Number],
2240
+ required: !0
2241
+ },
2242
+ disabled: {
2243
+ type: Boolean,
2244
+ required: !1,
2245
+ default: !1
2246
+ },
2247
+ asChild: {
2248
+ type: Boolean,
2249
+ required: !1
2250
+ },
2251
+ as: {
2252
+ type: null,
2253
+ required: !1,
2254
+ default: "button"
2255
+ }
2256
+ },
2257
+ setup(e) {
2258
+ let t = e, { forwardRef: n } = vn(), r = ri(), i = w(() => oi(r.baseId, t.value)), a = w(() => si(r.baseId, t.value)), o = w(() => t.value === r.modelValue.value);
2259
+ return (e, t) => (P(), T(H(Bn), {
2260
+ "as-child": "",
2261
+ focusable: !e.disabled,
2262
+ active: o.value
2263
+ }, {
2264
+ default: W(() => [k(H(q), {
2265
+ id: i.value,
2266
+ ref: H(n),
2267
+ role: "tab",
2268
+ type: e.as === "button" ? "button" : void 0,
2269
+ as: e.as,
2270
+ "as-child": e.asChild,
2271
+ "aria-selected": o.value ? "true" : "false",
2272
+ "aria-controls": a.value,
2273
+ "data-state": o.value ? "active" : "inactive",
2274
+ disabled: e.disabled,
2275
+ "data-disabled": e.disabled ? "" : void 0,
2276
+ "data-orientation": H(r).orientation.value,
2277
+ onMousedown: t[0] ||= tt((t) => {
2278
+ !e.disabled && t.ctrlKey === !1 ? H(r).changeModelValue(e.value) : t.preventDefault();
2279
+ }, ["left"]),
2280
+ onKeydown: t[1] ||= et((t) => H(r).changeModelValue(e.value), ["enter", "space"]),
2281
+ onFocus: t[2] ||= () => {
2282
+ let t = H(r).activationMode !== "manual";
2283
+ !o.value && !e.disabled && t && H(r).changeModelValue(e.value);
2284
+ }
2285
+ }, {
2286
+ default: W(() => [I(e.$slots, "default")]),
2287
+ _: 3
2288
+ }, 8, [
2289
+ "id",
2290
+ "type",
2291
+ "as",
2292
+ "as-child",
2293
+ "aria-selected",
2294
+ "aria-controls",
2295
+ "data-state",
2296
+ "disabled",
2297
+ "data-disabled",
2298
+ "data-orientation"
2299
+ ])]),
2300
+ _: 3
2301
+ }, 8, ["focusable", "active"]));
2302
+ }
2303
+ });
2304
+ //#endregion
2305
+ //#region ../../node_modules/.pnpm/@pubinfo+headlessui@1.5.4_@ant-design+icons-vue@7.0.1_vue@3.5.28_typescript@5.9.3___ant_5671ed20305323c86f93b689964916d3/node_modules/@pubinfo/headlessui/es/shared/utils.js
2306
+ function fi(e, t) {
2307
+ return e === t;
2308
+ }
2309
+ function pi(e) {
2310
+ return Array.isArray(e) ? e : [e];
2311
+ }
2312
+ //#endregion
2313
+ //#region ../../node_modules/.pnpm/@pubinfo+headlessui@1.5.4_@ant-design+icons-vue@7.0.1_vue@3.5.28_typescript@5.9.3___ant_5671ed20305323c86f93b689964916d3/node_modules/@pubinfo/headlessui/es/components/OrgUser/Provider.js
2314
+ var [Z, mi] = K("ContentSelectorProvider"), [hi, gi] = K("CommonProvider"), [_i, vi] = K("OrgProvider"), [yi, bi] = K("UserProvider");
2315
+ function xi(e) {
2316
+ return {
2317
+ apis: e.apis,
2318
+ required(t) {
2319
+ pi(t).forEach((t) => {
2320
+ e.apis[t] || console.error(`[OrgProvider] props "apis.${t}" is undefined`);
2321
+ });
2322
+ },
2323
+ fieldNames: Ht({
2324
+ value: "id",
2325
+ label: "name",
2326
+ highlight: "collect",
2327
+ group: "name"
2328
+ }, e.fieldNames),
2329
+ favorite: e.favorite
2330
+ };
2331
+ }
2332
+ var Si = A({
2333
+ name: "OrgProvider",
2334
+ props: {
2335
+ apis: {
2336
+ type: Object,
2337
+ default: () => ({}),
2338
+ required: !0
2339
+ },
2340
+ fieldNames: {
2341
+ type: Object,
2342
+ default: () => ({})
2343
+ },
2344
+ favorite: {
2345
+ type: Boolean,
2346
+ default: !0
2347
+ }
2348
+ },
2349
+ setup(e, { slots: t }) {
2350
+ let n = xi(e);
2351
+ return gi(n), vi(n), () => t?.default?.();
2352
+ }
2353
+ }), Ci = A({
2354
+ name: "UserProvider",
2355
+ props: {
2356
+ apis: {
2357
+ type: Object,
2358
+ default: () => ({}),
2359
+ required: !0
2360
+ },
2361
+ fieldNames: {
2362
+ type: Object,
2363
+ default: () => ({})
2364
+ },
2365
+ favorite: {
2366
+ type: Boolean,
2367
+ default: !0
2368
+ }
2369
+ },
2370
+ setup(e, { slots: t }) {
2371
+ let n = xi(e);
2372
+ return gi(n), bi(n), () => t?.default?.();
2373
+ }
2374
+ });
2375
+ //#endregion
2376
+ //#region ../../node_modules/.pnpm/@vueuse+shared@13.9.0_vue@3.5.28_typescript@5.9.3_/node_modules/@vueuse/shared/index.mjs
2377
+ function wi(e) {
2378
+ return Ae() ? (Ve(e), !0) : !1;
2379
+ }
2380
+ var Ti = typeof window < "u" && typeof document < "u";
2381
+ typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
2382
+ var Ei = (e) => e !== void 0, Di = Object.prototype.toString, Oi = (e) => Di.call(e) === "[object Object]", ki = (e, t, n) => Math.min(n, Math.max(t, e)), Ai = () => {}, ji = /* @__PURE__ */ Mi();
2383
+ function Mi() {
2384
+ return Ti && (window == null ? void 0 : window.navigator)?.userAgent && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || (window == null ? void 0 : window.navigator)?.maxTouchPoints > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
2385
+ }
2386
+ function Ni(...e) {
2387
+ if (e.length !== 1) return Je(...e);
2388
+ let t = e[0];
2389
+ return typeof t == "function" ? Ge(Oe(() => ({
2390
+ get: t,
2391
+ set: Ai
2392
+ }))) : F(t);
2393
+ }
2394
+ function Pi(e, t) {
2395
+ function n(...n) {
2396
+ return new Promise((r, i) => {
2397
+ Promise.resolve(e(() => t.apply(this, n), {
2398
+ fn: t,
2399
+ thisArg: this,
2400
+ args: n
2401
+ })).then(r).catch(i);
2402
+ });
2403
+ }
2404
+ return n;
2405
+ }
2406
+ var Fi = (e) => e();
2407
+ function Ii(e, t = {}) {
2408
+ let n, r, i = Ai, a = (e) => {
2409
+ clearTimeout(e), i(), i = Ai;
2410
+ }, o;
2411
+ return (s) => {
2412
+ let c = V(e), l = V(t.maxWait);
2413
+ return n && a(n), c <= 0 || l !== void 0 && l <= 0 ? (r &&= (a(r), void 0), Promise.resolve(s())) : new Promise((e, u) => {
2414
+ i = t.rejectOnCancel ? u : e, o = s, l && !r && (r = setTimeout(() => {
2415
+ n && a(n), r = void 0, e(o());
2416
+ }, l)), n = setTimeout(() => {
2417
+ r && a(r), r = void 0, e(s());
2418
+ }, c);
2419
+ });
2420
+ };
2421
+ }
2422
+ function Li(e = Fi, t = {}) {
2423
+ let { initialState: n = "active" } = t, r = Ni(n === "active");
2424
+ function i() {
2425
+ r.value = !1;
2426
+ }
2427
+ function a() {
2428
+ r.value = !0;
2429
+ }
2430
+ return {
2431
+ isActive: Ge(r),
2432
+ pause: i,
2433
+ resume: a,
2434
+ eventFilter: (...t) => {
2435
+ r.value && e(...t);
2436
+ }
2437
+ };
2438
+ }
2439
+ function Ri(e) {
2440
+ return Array.isArray(e) ? e : [e];
2441
+ }
2442
+ function zi(e) {
2443
+ return e || ke();
2444
+ }
2445
+ function Bi(e, t, n = {}) {
2446
+ let { eventFilter: r = Fi, ...i } = n;
2447
+ return U(e, Pi(r, t), i);
2448
+ }
2449
+ function Vi(e, t, n = {}) {
2450
+ let { eventFilter: r, initialState: i = "active", ...a } = n, { eventFilter: o, pause: s, resume: c, isActive: l } = Li(r, { initialState: i });
2451
+ return {
2452
+ stop: Bi(e, t, {
2453
+ ...a,
2454
+ eventFilter: o
2455
+ }),
2456
+ pause: s,
2457
+ resume: c,
2458
+ isActive: l
2459
+ };
2460
+ }
2461
+ function Hi(e, t, ...[n]) {
2462
+ let { flush: r = "sync", deep: i = !1, immediate: a = !0, direction: o = "both", transform: s = {} } = n || {}, c = [], l = "ltr" in s && s.ltr || ((e) => e), u = "rtl" in s && s.rtl || ((e) => e);
2463
+ return (o === "both" || o === "ltr") && c.push(Vi(e, (e) => {
2464
+ c.forEach((e) => e.pause()), t.value = l(e), c.forEach((e) => e.resume());
2465
+ }, {
2466
+ flush: r,
2467
+ deep: i,
2468
+ immediate: a
2469
+ })), (o === "both" || o === "rtl") && c.push(Vi(t, (t) => {
2470
+ c.forEach((e) => e.pause()), e.value = u(t), c.forEach((e) => e.resume());
2471
+ }, {
2472
+ flush: r,
2473
+ deep: i,
2474
+ immediate: a
2475
+ })), () => {
2476
+ c.forEach((e) => e.stop());
2477
+ };
2478
+ }
2479
+ function Ui(e, t = !0, n) {
2480
+ zi(n) ? Be(e, n) : t ? e() : Re(e);
2481
+ }
2482
+ /* @__NO_SIDE_EFFECTS__ */
2483
+ function Wi(e = !1, t = {}) {
2484
+ let { truthyValue: n = !0, falsyValue: r = !1 } = t, i = Pe(e), a = L(e);
2485
+ function o(e) {
2486
+ if (arguments.length) return a.value = e, a.value;
2487
+ {
2488
+ let e = V(n);
2489
+ return a.value = a.value === e ? V(r) : e, a.value;
2490
+ }
2491
+ }
2492
+ return i ? o : [a, o];
2493
+ }
2494
+ function Gi(e, t, n = {}) {
2495
+ let { debounce: r = 0, maxWait: i = void 0, ...a } = n;
2496
+ return Bi(e, t, {
2497
+ ...a,
2498
+ eventFilter: Ii(r, { maxWait: i })
2499
+ });
2500
+ }
2501
+ function Ki(e, t, n) {
2502
+ return U(e, t, {
2503
+ ...n,
2504
+ immediate: !0
2505
+ });
2506
+ }
2507
+ //#endregion
2508
+ //#region ../../node_modules/.pnpm/@vueuse+core@13.9.0_vue@3.5.28_typescript@5.9.3_/node_modules/@vueuse/core/index.mjs
2509
+ var qi = Ti ? window : void 0;
2510
+ Ti && window.document, Ti && window.navigator, Ti && window.location;
2511
+ function Ji(e) {
2512
+ let t = V(e);
2513
+ return t?.$el ?? t;
2514
+ }
2515
+ /* @__NO_SIDE_EFFECTS__ */
2516
+ function Yi() {
2517
+ let e = L(!1), t = ke();
2518
+ return t && Be(() => {
2519
+ e.value = !0;
2520
+ }, t), e;
2521
+ }
2522
+ /* @__NO_SIDE_EFFECTS__ */
2523
+ function Xi(e) {
2524
+ let t = /* @__PURE__ */ Yi();
2525
+ return w(() => (t.value, !!e()));
2526
+ }
2527
+ function Zi(e) {
2528
+ return JSON.parse(JSON.stringify(e));
2529
+ }
2530
+ function Qi(e, t, n = {}) {
2531
+ let { window: r = qi, ...i } = n, a, o = /* @__PURE__ */ Xi(() => r && "ResizeObserver" in r), s = () => {
2532
+ a &&= (a.disconnect(), void 0);
2533
+ }, c = U(w(() => {
2534
+ let t = V(e);
2535
+ return Array.isArray(t) ? t.map((e) => Ji(e)) : [Ji(t)];
2536
+ }), (e) => {
2537
+ if (s(), o.value && r) {
2538
+ a = new ResizeObserver(t);
2539
+ for (let t of e) t && a.observe(t, i);
2540
+ }
2541
+ }, {
2542
+ immediate: !0,
2543
+ flush: "post"
2544
+ }), l = () => {
2545
+ s(), c();
2546
+ };
2547
+ return wi(l), {
2548
+ isSupported: o,
2549
+ stop: l
2550
+ };
2551
+ }
2552
+ function $i(e, t = {
2553
+ width: 0,
2554
+ height: 0
2555
+ }, n = {}) {
2556
+ let { window: r = qi, box: i = "content-box" } = n, a = w(() => (Ji(e)?.namespaceURI)?.includes("svg")), o = L(t.width), s = L(t.height), { stop: c } = Qi(e, ([t]) => {
2557
+ let n = i === "border-box" ? t.borderBoxSize : i === "content-box" ? t.contentBoxSize : t.devicePixelContentBoxSize;
2558
+ if (r && a.value) {
2559
+ let t = Ji(e);
2560
+ if (t) {
2561
+ let e = t.getBoundingClientRect();
2562
+ o.value = e.width, s.value = e.height;
2563
+ }
2564
+ } else if (n) {
2565
+ let e = Ri(n);
2566
+ o.value = e.reduce((e, { inlineSize: t }) => e + t, 0), s.value = e.reduce((e, { blockSize: t }) => e + t, 0);
2567
+ } else o.value = t.contentRect.width, s.value = t.contentRect.height;
2568
+ }, n);
2569
+ Ui(() => {
2570
+ let n = Ji(e);
2571
+ n && (o.value = "offsetWidth" in n ? n.offsetWidth : t.width, s.value = "offsetHeight" in n ? n.offsetHeight : t.height);
2572
+ });
2573
+ let l = U(() => Ji(e), (e) => {
2574
+ o.value = e ? t.width : 0, s.value = e ? t.height : 0;
2575
+ });
2576
+ function u() {
2577
+ c(), l();
2578
+ }
2579
+ return {
2580
+ width: o,
2581
+ height: s,
2582
+ stop: u
2583
+ };
2584
+ }
2585
+ /* @__NO_SIDE_EFFECTS__ */
2586
+ function ea(e, t, n) {
2587
+ if (typeof e == "function" || Ne(e)) return w(() => ki(V(e), V(t), V(n)));
2588
+ let r = F(e);
2589
+ return w({
2590
+ get() {
2591
+ return r.value = ki(r.value, V(t), V(n));
2592
+ },
2593
+ set(e) {
2594
+ r.value = ki(e, V(t), V(n));
2595
+ }
2596
+ });
2597
+ }
2598
+ function ta(e) {
2599
+ let { total: t = Infinity, pageSize: n = 10, page: r = 1, onPageChange: i = Ai, onPageSizeChange: a = Ai, onPageCountChange: o = Ai } = e, s = /* @__PURE__ */ ea(n, 1, Infinity), c = w(() => Math.max(1, Math.ceil(V(t) / V(s)))), l = /* @__PURE__ */ ea(r, 1, c), u = w(() => l.value === 1), d = w(() => l.value === c.value);
2600
+ Pe(r) && Hi(r, l, { direction: Ne(r) ? "ltr" : "both" }), Pe(n) && Hi(n, s, { direction: Ne(n) ? "ltr" : "both" });
2601
+ function f() {
2602
+ l.value--;
2603
+ }
2604
+ function p() {
2605
+ l.value++;
2606
+ }
2607
+ let m = {
2608
+ currentPage: l,
2609
+ currentPageSize: s,
2610
+ pageCount: c,
2611
+ isFirstPage: u,
2612
+ isLastPage: d,
2613
+ prev: f,
2614
+ next: p
2615
+ };
2616
+ return U(l, () => {
2617
+ i(We(m));
2618
+ }), U(s, () => {
2619
+ a(We(m));
2620
+ }), U(c, () => {
2621
+ o(We(m));
2622
+ }), m;
2623
+ }
2624
+ /* @__NO_SIDE_EFFECTS__ */
2625
+ function na(e, t, n, r = {}) {
2626
+ let { clone: i = !1, passive: a = !1, eventName: o, deep: s = !1, defaultValue: c, shouldEmit: l } = r, u = ke(), d = n || u?.emit || (u?.$emit)?.bind(u) || (u?.proxy?.$emit)?.bind(u?.proxy), f = o;
2627
+ t ||= "modelValue", f ||= `update:${t.toString()}`;
2628
+ let p = (e) => i ? typeof i == "function" ? i(e) : Zi(e) : e, m = () => Ei(e[t]) ? p(e[t]) : c, h = (e) => {
2629
+ l ? l(e) && d(f, e) : d(f, e);
2630
+ };
2631
+ if (a) {
2632
+ let n = F(m()), r = !1;
2633
+ return U(() => e[t], (e) => {
2634
+ r || (r = !0, n.value = p(e), Re(() => r = !1));
2635
+ }), U(n, (n) => {
2636
+ !r && (n !== e[t] || s) && h(n);
2637
+ }, { deep: s }), n;
2638
+ } else return w({
2639
+ get() {
2640
+ return m();
2641
+ },
2642
+ set(e) {
2643
+ h(e);
2644
+ }
2645
+ });
2646
+ }
2647
+ function ra(e, t) {
2648
+ let { containerStyle: n, wrapperProps: r, scrollTo: i, calculateRange: a, currentList: o, containerRef: s } = "itemHeight" in t ? ma(t, e) : pa(t, e);
2649
+ return {
2650
+ list: o,
2651
+ scrollTo: i,
2652
+ containerProps: {
2653
+ ref: s,
2654
+ onScroll: () => {
2655
+ a();
2656
+ },
2657
+ style: n
2658
+ },
2659
+ wrapperProps: r
2660
+ };
2661
+ }
2662
+ function ia(e) {
2663
+ let t = L(null), n = $i(t), r = F([]), i = L(e);
2664
+ return {
2665
+ state: F({
2666
+ start: 0,
2667
+ end: 10
2668
+ }),
2669
+ source: i,
2670
+ currentList: r,
2671
+ size: n,
2672
+ containerRef: t
2673
+ };
2674
+ }
2675
+ function aa(e, t, n) {
2676
+ return (r) => {
2677
+ if (typeof n == "number") return Math.ceil(r / n);
2678
+ let { start: i = 0 } = e.value, a = 0, o = 0;
2679
+ for (let e = i; e < t.value.length; e++) {
2680
+ let t = n(e);
2681
+ if (a += t, o = e, a > r) break;
2682
+ }
2683
+ return o - i;
2684
+ };
2685
+ }
2686
+ function oa(e, t) {
2687
+ return (n) => {
2688
+ if (typeof t == "number") return Math.floor(n / t) + 1;
2689
+ let r = 0, i = 0;
2690
+ for (let a = 0; a < e.value.length; a++) {
2691
+ let e = t(a);
2692
+ if (r += e, r >= n) {
2693
+ i = a;
2694
+ break;
2695
+ }
2696
+ }
2697
+ return i + 1;
2698
+ };
2699
+ }
2700
+ function sa(e, t, n, r, { containerRef: i, state: a, currentList: o, source: s }) {
2701
+ return () => {
2702
+ let c = i.value;
2703
+ if (c) {
2704
+ let i = n(e === "vertical" ? c.scrollTop : c.scrollLeft), l = r(e === "vertical" ? c.clientHeight : c.clientWidth), u = i - t, d = i + l + t;
2705
+ a.value = {
2706
+ start: u < 0 ? 0 : u,
2707
+ end: d > s.value.length ? s.value.length : d
2708
+ }, o.value = s.value.slice(a.value.start, a.value.end).map((e, t) => ({
2709
+ data: e,
2710
+ index: t + a.value.start
2711
+ }));
2712
+ }
2713
+ };
2714
+ }
2715
+ function ca(e, t) {
2716
+ return (n) => typeof e == "number" ? n * e : t.value.slice(0, n).reduce((t, n, r) => t + e(r), 0);
2717
+ }
2718
+ function la(e, t, n, r) {
2719
+ U([
2720
+ e.width,
2721
+ e.height,
2722
+ () => V(t),
2723
+ n
2724
+ ], () => {
2725
+ r();
2726
+ });
2727
+ }
2728
+ function ua(e, t) {
2729
+ return w(() => typeof e == "number" ? t.value.length * e : t.value.reduce((t, n, r) => t + e(r), 0));
2730
+ }
2731
+ var da = {
2732
+ horizontal: "scrollLeft",
2733
+ vertical: "scrollTop"
2734
+ };
2735
+ function fa(e, t, n, r) {
2736
+ return (i) => {
2737
+ r.value && (r.value[da[e]] = n(i), t());
2738
+ };
2739
+ }
2740
+ function pa(e, t) {
2741
+ let n = ia(t), { state: r, source: i, currentList: a, size: o, containerRef: s } = n, c = { overflowX: "auto" }, { itemWidth: l, overscan: u = 5 } = e, d = aa(r, i, l), f = sa("horizontal", u, oa(i, l), d, n), p = ca(l, i), m = w(() => p(r.value.start)), h = ua(l, i);
2742
+ return la(o, t, s, f), {
2743
+ scrollTo: fa("horizontal", f, p, s),
2744
+ calculateRange: f,
2745
+ wrapperProps: w(() => ({ style: {
2746
+ height: "100%",
2747
+ width: `${h.value - m.value}px`,
2748
+ marginLeft: `${m.value}px`,
2749
+ display: "flex"
2750
+ } })),
2751
+ containerStyle: c,
2752
+ currentList: a,
2753
+ containerRef: s
2754
+ };
2755
+ }
2756
+ function ma(e, t) {
2757
+ let n = ia(t), { state: r, source: i, currentList: a, size: o, containerRef: s } = n, c = { overflowY: "auto" }, { itemHeight: l, overscan: u = 5 } = e, d = aa(r, i, l), f = sa("vertical", u, oa(i, l), d, n), p = ca(l, i), m = w(() => p(r.value.start)), h = ua(l, i);
2758
+ return la(o, t, s, f), {
2759
+ calculateRange: f,
2760
+ scrollTo: fa("vertical", f, p, s),
2761
+ containerStyle: c,
2762
+ wrapperProps: w(() => ({ style: {
2763
+ width: "100%",
2764
+ height: `${h.value - m.value}px`,
2765
+ marginTop: `${m.value}px`
2766
+ } })),
2767
+ currentList: a,
2768
+ containerRef: s
2769
+ };
2770
+ }
2771
+ //#endregion
2772
+ //#region ../../node_modules/.pnpm/@pubinfo+headlessui@1.5.4_@ant-design+icons-vue@7.0.1_vue@3.5.28_typescript@5.9.3___ant_5671ed20305323c86f93b689964916d3/node_modules/@pubinfo/headlessui/es/primitives/Fetcher/Fetcher.js
2773
+ function ha(e) {
2774
+ let t = F(), n = F(), [r, i] = /* @__PURE__ */ Wi();
2775
+ async function a() {
2776
+ try {
2777
+ i(!0), t.value = await e?.request?.();
2778
+ } catch (e) {
2779
+ n.value = e;
2780
+ } finally {
2781
+ i(!1);
2782
+ }
2783
+ }
2784
+ return e.immediate && Be(a), {
2785
+ loading: r,
2786
+ data: t,
2787
+ error: n,
2788
+ fetchData: a
2789
+ };
2790
+ }
2791
+ var ga = A({
2792
+ name: "Fetcher",
2793
+ props: {
2794
+ request: {
2795
+ type: Function,
2796
+ default: () => Promise.resolve()
2797
+ },
2798
+ immediate: {
2799
+ type: Boolean,
2800
+ default: !0
2801
+ }
2802
+ },
2803
+ setup(e, { slots: t, expose: n }) {
2804
+ let r = We(ha({
2805
+ request: e.request,
2806
+ immediate: e.immediate
2807
+ }));
2808
+ return n({ fetchData: r.fetchData }), () => t?.default?.(r);
2809
+ }
2810
+ }), _a = ["onClick"], va = {
2811
+ key: 0,
2812
+ fill: "none",
2813
+ xmlns: "http://www.w3.org/2000/svg",
2814
+ width: "1rem",
2815
+ height: "1rem",
2816
+ viewBox: "0 0 17 16",
2817
+ class: "design-iconfont"
2818
+ }, ya = {
2819
+ key: 1,
2820
+ fill: "none",
2821
+ xmlns: "http://www.w3.org/2000/svg",
2822
+ width: "1rem",
2823
+ height: "1rem",
2824
+ viewBox: "0 0 17 16",
2825
+ class: "design-iconfont"
2826
+ }, ba = /* @__PURE__ */ A({
2827
+ name: "FavoriteButton",
2828
+ __name: "FavoriteButton",
2829
+ props: {
2830
+ highlight: {
2831
+ type: Boolean,
2832
+ default: !1
2833
+ },
2834
+ record: { default: () => ({}) }
2835
+ },
2836
+ setup(e) {
2837
+ let t = e, { apis: n, required: r, favorite: i } = hi();
2838
+ r("favoriteToggle");
2839
+ let a = F(!1);
2840
+ $e(() => {
2841
+ a.value = t.highlight;
2842
+ });
2843
+ async function o() {
2844
+ await n?.favoriteToggle?.({
2845
+ favorite: !a.value,
2846
+ record: t.record
2847
+ }), a.value = !a.value;
2848
+ }
2849
+ return (e, t) => H(i) ? (P(), T(H(ga), {
2850
+ key: 0,
2851
+ request: o,
2852
+ immediate: !1
2853
+ }, {
2854
+ default: W(({ loading: e, fetchData: n }) => [O("span", {
2855
+ class: "inline-flex size-4 items-center align-text-bottom",
2856
+ onClick: tt((e) => n(), ["prevent", "stop"])
2857
+ }, [e ? (P(), T(H(Qt), {
2858
+ key: 0,
2859
+ size: 14,
2860
+ class: "animate-spin"
2861
+ })) : (P(), D(C, { key: 1 }, [a.value ? (P(), D("svg", va, [...t[0] ||= [
2862
+ O("path", {
2863
+ "fill-rule": "evenodd",
2864
+ "clip-rule": "evenodd",
2865
+ d: "M3.23828 2.33301C3.23828 1.78072 3.686 1.33301 4.23828 1.33301H13.5716C14.1239 1.33301 14.5716 1.78072 14.5716 2.33301V13.8886C14.5716 14.4422 13.9817 14.7961 13.4932 14.5356L8.90495 12.0886L4.31671 14.5356C3.82824 14.7961 3.23828 14.4422 3.23828 13.8886V2.33301Z",
2866
+ fill: "url(#qkqloqdge__paint0_linear_117_9001)"
2867
+ }, null, -1),
2868
+ O("path", {
2869
+ "fill-rule": "evenodd",
2870
+ "clip-rule": "evenodd",
2871
+ d: "M5.57031 2.66504C5.01803 2.66504 4.57031 3.11275 4.57031 3.66504V11.2234C4.57031 11.9784 5.37479 12.461 6.0409 12.1058L8.43426 10.8293C8.72838 10.6725 9.08132 10.6725 9.37544 10.8293L11.7688 12.1058C12.4349 12.461 13.2394 11.9784 13.2394 11.2234V3.66504C13.2394 3.11275 12.7917 2.66504 12.2394 2.66504H5.57031Z",
2872
+ fill: "url(#qkqloqdge__paint1_linear_117_9001)"
2873
+ }, null, -1),
2874
+ O("g", {
2875
+ filter: "url(#qkqloqdge__filter0_d_117_9001)",
2876
+ "fill-rule": "evenodd",
2877
+ "clip-rule": "evenodd"
2878
+ }, [O("path", {
2879
+ d: "M11.441 4.93503C11.2585 4.69952 10.9118 4.67495 10.6978 4.88234L8.23345 7.27129L7.16572 6.1563C6.97174 5.95374 6.64913 5.95032 6.45089 6.14872L6.1657 6.43415C5.97356 6.62645 5.97027 6.93703 6.15828 7.13337L7.84628 8.89608C8.04026 9.09864 8.36288 9.10206 8.56111 8.90367L8.88364 8.58086C8.89623 8.57081 8.90847 8.56005 8.9203 8.54858L11.6375 5.9146C11.8204 5.73724 11.8407 5.45067 11.6846 5.24927L11.441 4.93503Z",
2880
+ fill: "url(#qkqloqdge__paint2_linear_117_9001)"
2881
+ }), O("path", {
2882
+ d: "M11.441 4.93503C11.2585 4.69952 10.9118 4.67495 10.6978 4.88234L8.23345 7.27129L7.16572 6.1563C6.97174 5.95374 6.64913 5.95032 6.45089 6.14872L6.1657 6.43415C5.97356 6.62645 5.97027 6.93703 6.15828 7.13337L7.84628 8.89608C8.04026 9.09864 8.36288 9.10206 8.56111 8.90367L8.88364 8.58086C8.89623 8.57081 8.90847 8.56005 8.9203 8.54858L11.6375 5.9146C11.8204 5.73724 11.8407 5.45067 11.6846 5.24927L11.441 4.93503Z",
2883
+ fill: "#fff"
2884
+ })], -1),
2885
+ O("defs", null, [
2886
+ O("linearGradient", {
2887
+ id: "qkqloqdge__paint0_linear_117_9001",
2888
+ x1: "8.90495",
2889
+ y1: "1.33301",
2890
+ x2: "8.90495",
2891
+ y2: "14.6229",
2892
+ gradientUnits: "userSpaceOnUse"
2893
+ }, [O("stop", { "stop-color": "#FFB13C" }), O("stop", {
2894
+ offset: "1",
2895
+ "stop-color": "#FD6D2F"
2896
+ })]),
2897
+ O("linearGradient", {
2898
+ id: "qkqloqdge__paint1_linear_117_9001",
2899
+ x1: "8.90485",
2900
+ y1: "2.66504",
2901
+ x2: "8.90485",
2902
+ y2: "12.8901",
2903
+ gradientUnits: "userSpaceOnUse"
2904
+ }, [O("stop", {
2905
+ "stop-color": "#fff",
2906
+ "stop-opacity": ".4"
2907
+ }), O("stop", {
2908
+ offset: "1",
2909
+ "stop-color": "#fff",
2910
+ "stop-opacity": ".56"
2911
+ })]),
2912
+ O("linearGradient", {
2913
+ id: "qkqloqdge__paint2_linear_117_9001",
2914
+ x1: "11.5349",
2915
+ y1: "3.52277",
2916
+ x2: "7.0032",
2917
+ y2: "8.05446",
2918
+ gradientUnits: "userSpaceOnUse"
2919
+ }, [O("stop", { "stop-color": "#FFB13C" }), O("stop", {
2920
+ offset: "1",
2921
+ "stop-color": "#FD6D2F"
2922
+ })]),
2923
+ O("filter", {
2924
+ id: "qkqloqdge__filter0_d_117_9001",
2925
+ x: "4.01953",
2926
+ y: "3.74121",
2927
+ width: "9.76953",
2928
+ height: "8.30859",
2929
+ filterUnits: "userSpaceOnUse",
2930
+ "color-interpolation-filters": "sRGB"
2931
+ }, [
2932
+ O("feFlood", {
2933
+ "flood-opacity": "0",
2934
+ result: "BackgroundImageFix"
2935
+ }),
2936
+ O("feColorMatrix", {
2937
+ in: "SourceAlpha",
2938
+ values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
2939
+ result: "hardAlpha"
2940
+ }),
2941
+ O("feOffset", { dy: "1" }),
2942
+ O("feGaussianBlur", { stdDeviation: "1" }),
2943
+ O("feComposite", {
2944
+ in2: "hardAlpha",
2945
+ operator: "out"
2946
+ }),
2947
+ O("feColorMatrix", { values: "0 0 0 0 1 0 0 0 0 0.369275 0 0 0 0 0.0144928 0 0 0 0.66 0" }),
2948
+ O("feBlend", {
2949
+ in2: "BackgroundImageFix",
2950
+ result: "effect1_dropShadow_117_9001"
2951
+ }),
2952
+ O("feBlend", {
2953
+ in: "SourceGraphic",
2954
+ in2: "effect1_dropShadow_117_9001",
2955
+ result: "shape"
2956
+ })
2957
+ ])
2958
+ ], -1)
2959
+ ]])) : (P(), D("svg", ya, [...t[1] ||= [O("path", {
2960
+ "fill-rule": "evenodd",
2961
+ "clip-rule": "evenodd",
2962
+ d: "M4.57161 2.66634V12.8886L8.90495 10.5775L13.2383 12.8886V2.66634H4.57161ZM3.23828 2.33301C3.23828 1.78072 3.686 1.33301 4.23828 1.33301H13.5716C14.1239 1.33301 14.5716 1.78072 14.5716 2.33301V13.8886C14.5716 14.4422 13.9817 14.7961 13.4932 14.5356L8.90495 12.0886L4.31671 14.5356C3.82824 14.7961 3.23828 14.4422 3.23828 13.8886V2.33301Z",
2963
+ fill: "#4E5969"
2964
+ }, null, -1)]]))], 64))], 8, _a)]),
2965
+ _: 1
2966
+ })) : E("", !0);
2967
+ }
2968
+ }), xa = Ti ? window : void 0;
2969
+ function Sa(e) {
2970
+ let t = V(e);
2971
+ return t?.$el ?? t;
2972
+ }
2973
+ function Ca(...e) {
2974
+ let t = [], n = () => {
2975
+ t.forEach((e) => e()), t.length = 0;
2976
+ }, r = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), i = w(() => {
2977
+ let t = Ri(V(e[0])).filter((e) => e != null);
2978
+ return t.every((e) => typeof e != "string") ? t : void 0;
2979
+ }), a = Ki(() => [
2980
+ i.value?.map((e) => Sa(e)) ?? [xa].filter((e) => e != null),
2981
+ Ri(V(i.value ? e[1] : e[0])),
2982
+ Ri(H(i.value ? e[2] : e[1])),
2983
+ V(i.value ? e[3] : e[2])
2984
+ ], ([e, i, a, o]) => {
2985
+ if (n(), !e?.length || !i?.length || !a?.length) return;
2986
+ let s = Oi(o) ? { ...o } : o;
2987
+ t.push(...e.flatMap((e) => i.flatMap((t) => a.map((n) => r(e, t, n, s)))));
2988
+ }, { flush: "post" });
2989
+ return wi(n), () => {
2990
+ a(), n();
2991
+ };
2992
+ }
2993
+ function wa(e) {
2994
+ return typeof Window < "u" && e instanceof Window ? e.document.documentElement : typeof Document < "u" && e instanceof Document ? e.documentElement : e;
2995
+ }
2996
+ function Ta(e) {
2997
+ let t = window.getComputedStyle(e);
2998
+ if (t.overflowX === "scroll" || t.overflowY === "scroll" || t.overflowX === "auto" && e.clientWidth < e.scrollWidth || t.overflowY === "auto" && e.clientHeight < e.scrollHeight) return !0;
2999
+ {
3000
+ let t = e.parentNode;
3001
+ return !t || t.tagName === "BODY" ? !1 : Ta(t);
3002
+ }
3003
+ }
3004
+ function Ea(e) {
3005
+ let t = e || window.event, n = t.target;
3006
+ return Ta(n) ? !1 : t.touches.length > 1 ? !0 : (t.preventDefault && t.preventDefault(), !1);
3007
+ }
3008
+ var Da = /* @__PURE__ */ new WeakMap();
3009
+ function Oa(e, t = !1) {
3010
+ let n = L(t), r = null, i = "";
3011
+ U(Ni(e), (e) => {
3012
+ let t = wa(V(e));
3013
+ if (t) {
3014
+ let e = t;
3015
+ if (Da.get(e) || Da.set(e, e.style.overflow), e.style.overflow !== "hidden" && (i = e.style.overflow), e.style.overflow === "hidden") return n.value = !0;
3016
+ if (n.value) return e.style.overflow = "hidden";
3017
+ }
3018
+ }, { immediate: !0 });
3019
+ let a = () => {
3020
+ let t = wa(V(e));
3021
+ !t || n.value || (ji && (r = Ca(t, "touchmove", (e) => {
3022
+ Ea(e);
3023
+ }, { passive: !1 })), t.style.overflow = "hidden", n.value = !0);
3024
+ }, o = () => {
3025
+ let t = wa(V(e));
3026
+ !t || !n.value || (ji && r?.(), t.style.overflow = i, Da.delete(t), n.value = !1);
3027
+ };
3028
+ return wi(o), w({
3029
+ get() {
3030
+ return n.value;
3031
+ },
3032
+ set(e) {
3033
+ e ? a() : o();
3034
+ }
3035
+ });
3036
+ }
3037
+ function ka() {
3038
+ let e = !1, t = L(!1);
3039
+ return (n, r) => {
3040
+ if (t.value = r.value, e) return;
3041
+ e = !0;
3042
+ let i = Oa(n, r.value);
3043
+ U(t, (e) => i.value = e);
3044
+ };
3045
+ }
3046
+ ka();
3047
+ var Aa = /* @__PURE__ */ A({
3048
+ name: "UseVirtualList",
3049
+ props: [
3050
+ "list",
3051
+ "options",
3052
+ "height"
3053
+ ],
3054
+ setup(e, { slots: t, expose: n }) {
3055
+ let { list: r } = B(e), { list: i, containerProps: a, wrapperProps: o, scrollTo: s } = ra(r, e.options);
3056
+ return n({ scrollTo: s }), a.style && typeof a.style == "object" && !Array.isArray(a.style) && (a.style.height = e.height || "300px"), () => j("div", { ...a }, [j("div", { ...o.value }, i.value.map((e) => j("div", { style: {
3057
+ overflow: "hidden",
3058
+ height: e.height
3059
+ } }, t.default ? t.default(e) : "Please set content!")))]);
3060
+ }
3061
+ }), ja = {
3062
+ key: 0,
3063
+ class: "flex size-full items-center justify-center"
3064
+ }, Ma = {
3065
+ key: 1,
3066
+ class: "flex size-full items-center justify-center"
3067
+ }, Na = /* @__PURE__ */ A({
3068
+ name: "Placeholder",
3069
+ __name: "Placeholder",
3070
+ props: {
3071
+ loading: {
3072
+ type: Boolean,
3073
+ default: !1
3074
+ },
3075
+ empty: {
3076
+ type: Boolean,
3077
+ default: !1
3078
+ }
3079
+ },
3080
+ setup(e) {
3081
+ let t = j(nt, { spin: !0 });
3082
+ return (n, r) => e.loading ? (P(), D("div", ja, [k(H(ht), {
3083
+ tip: "加载中",
3084
+ indicator: H(t)
3085
+ }, null, 8, ["indicator"])])) : e.empty ? (P(), D("div", Ma, [k(H(ct), { description: "暂无数据" })])) : I(n.$slots, "default", { key: 2 });
3086
+ }
3087
+ }), [Pa, Fa] = K("DataRoot"), Ia = {
3088
+ Root: A({
3089
+ name: "DataRoot",
3090
+ props: {
3091
+ dataSource: {
3092
+ type: Array,
3093
+ default: () => []
3094
+ },
3095
+ filter: {
3096
+ type: Boolean,
3097
+ default: !1
3098
+ }
3099
+ },
3100
+ setup(e, { slots: t }) {
3101
+ let n = F([]), r = F([]);
3102
+ $e(() => {
3103
+ n.value = e.dataSource;
3104
+ });
3105
+ let [i, a] = /* @__PURE__ */ Wi(!1);
3106
+ return Fa({
3107
+ dataSource: w(() => e.dataSource),
3108
+ filter: w(() => e.filter),
3109
+ listData: n,
3110
+ listDataChange(e) {
3111
+ n.value = e;
3112
+ },
3113
+ isSearch: i,
3114
+ setSearch: a,
3115
+ searchData: r,
3116
+ searchDataChange(e) {
3117
+ r.value = e;
3118
+ }
3119
+ }), () => t?.default?.();
3120
+ }
3121
+ }),
3122
+ InputSearch: A({
3123
+ name: "DataInputSearch",
3124
+ props: {
3125
+ as: {
3126
+ type: [String, Object],
3127
+ default: "input"
3128
+ },
3129
+ asChild: {
3130
+ type: Boolean,
3131
+ default: !1
3132
+ },
3133
+ modelValue: {
3134
+ type: String,
3135
+ default: void 0
3136
+ },
3137
+ by: {
3138
+ type: [String, Function],
3139
+ default: () => fi
3140
+ }
3141
+ },
3142
+ emits: ["update:modelValue", "change"],
3143
+ setup(e, { slots: t, emit: n }) {
3144
+ let r = Pa();
3145
+ function i(t = "", n) {
3146
+ if (typeof e.by == "string") {
3147
+ let r = e.by;
3148
+ return n?.[r].includes(t);
3149
+ }
3150
+ return e.by(t, n);
3151
+ }
3152
+ function a(t) {
3153
+ let a = !Vt(t);
3154
+ if (r.setSearch(a), a) {
3155
+ let a = r.filter.value ? r.dataSource.value.filter((e) => i(t, e)) : r.dataSource.value;
3156
+ r.searchDataChange(a), n("change", e.modelValue);
3157
+ }
3158
+ }
3159
+ return Gi(() => [e.modelValue], () => a(e.modelValue), {
3160
+ deep: !0,
3161
+ debounce: 500,
3162
+ maxWait: 1e3
3163
+ }), () => j(q, {
3164
+ ...e,
3165
+ value: e.modelValue,
3166
+ onChange(e) {
3167
+ n("update:modelValue", e.target.value);
3168
+ }
3169
+ }, () => t?.default?.({
3170
+ value: e.modelValue,
3171
+ onChange: (e) => n("update:modelValue", e),
3172
+ onSearch: a
3173
+ }));
3174
+ }
3175
+ }),
3176
+ Content: A({
3177
+ name: "DataContent",
3178
+ props: {
3179
+ as: {
3180
+ type: [String, Object],
3181
+ default: "div"
3182
+ },
3183
+ asChild: {
3184
+ type: Boolean,
3185
+ default: !1
3186
+ }
3187
+ },
3188
+ setup(e, { slots: t }) {
3189
+ let n = Pa();
3190
+ return () => j(q, { ...e }, () => t?.default?.({ data: n.listData.value }));
3191
+ }
3192
+ }),
3193
+ Pagination: A({
3194
+ name: "DataPagination",
3195
+ props: {
3196
+ as: {
3197
+ type: [String, Object],
3198
+ default: "div"
3199
+ },
3200
+ asChild: {
3201
+ type: Boolean,
3202
+ default: !1
3203
+ },
3204
+ total: {
3205
+ type: Number,
3206
+ default: void 0
3207
+ },
3208
+ page: {
3209
+ type: Number,
3210
+ default: 1
3211
+ },
3212
+ pageSize: {
3213
+ type: Number,
3214
+ default: 10
3215
+ }
3216
+ },
3217
+ emits: [
3218
+ "update:page",
3219
+ "pageChange",
3220
+ "pageSizeChange",
3221
+ "pageCountChange"
3222
+ ],
3223
+ setup(e, { slots: t, emit: n }) {
3224
+ let r = Pa(), i = w(() => r.isSearch.value ? r.searchData.value : r.dataSource.value), a = w(() => e.total ?? i.value.length), o = /* @__PURE__ */ na(e, "page", n, { passive: !0 });
3225
+ function s(e) {
3226
+ o.value = e;
3227
+ }
3228
+ let { currentPage: c, currentPageSize: l, next: u, prev: d, pageCount: f, isFirstPage: p, isLastPage: m } = ta({
3229
+ total: a,
3230
+ page: o,
3231
+ pageSize: e.pageSize,
3232
+ onPageChange: (e) => {
3233
+ h(e), n("pageChange", e);
3234
+ },
3235
+ onPageSizeChange: (e) => {
3236
+ h(e), n("pageSizeChange", e);
3237
+ },
3238
+ onPageCountChange(e) {
3239
+ h(e), n("pageCountChange", e);
3240
+ }
3241
+ });
3242
+ U(() => i.value, () => {
3243
+ h({
3244
+ currentPage: c.value,
3245
+ currentPageSize: l.value
3246
+ });
3247
+ }, { deep: !0 });
3248
+ function h(e) {
3249
+ if (!r.filter.value) return;
3250
+ let { currentPage: t, currentPageSize: n } = e, a = i.value.filter((e, r) => r >= n * (t - 1) && r < n * t);
3251
+ r.listDataChange(a);
3252
+ }
3253
+ return () => j(q, { ...e }, () => t?.default?.(We({
3254
+ total: a,
3255
+ setPage: s,
3256
+ currentPage: c,
3257
+ currentPageSize: l,
3258
+ next: u,
3259
+ prev: d,
3260
+ pageCount: f,
3261
+ isFirstPage: p,
3262
+ isLastPage: m
3263
+ })));
3264
+ }
3265
+ })
3266
+ }, [La, Ra] = K("SelectorRoot"), za = {
3267
+ Root: A({
3268
+ name: "SelectorRoot",
3269
+ props: {
3270
+ defaultValue: {
3271
+ type: Array,
3272
+ default: () => []
3273
+ },
3274
+ modelValue: {
3275
+ type: Array,
3276
+ default: void 0
3277
+ },
3278
+ disabled: {
3279
+ type: Boolean,
3280
+ default: !1
3281
+ },
3282
+ multiple: {
3283
+ type: Boolean,
3284
+ default: !1
3285
+ },
3286
+ by: {
3287
+ type: [String, Function],
3288
+ default: () => fi
3289
+ }
3290
+ },
3291
+ emits: ["update:modelValue"],
3292
+ setup(e, { slots: t, emit: n }) {
3293
+ let r = /* @__PURE__ */ na(e, "modelValue", n, {
3294
+ defaultValue: e.defaultValue,
3295
+ passive: !0,
3296
+ deep: !0
3297
+ }), { disabled: i, multiple: a } = B(e), o = {
3298
+ value: r,
3299
+ disabled: i,
3300
+ multiple: a,
3301
+ compare(t, n) {
3302
+ if (typeof e.by == "string") {
3303
+ let r = e.by;
3304
+ return t?.[r] === n?.[r];
3305
+ }
3306
+ return e.by(t) === e.by(n);
3307
+ },
3308
+ change: (t) => e.disabled || oe(z(r.value), z(t)) ? !1 : (n("update:modelValue", t), !0)
3309
+ };
3310
+ return Ra(o), () => t?.default?.(We(o));
3311
+ }
3312
+ }),
3313
+ Item: A({
3314
+ name: "SelectorItem",
3315
+ props: {
3316
+ as: {
3317
+ type: [String, Object],
3318
+ default: "div"
3319
+ },
3320
+ asChild: {
3321
+ type: Boolean,
3322
+ default: !1
3323
+ },
3324
+ value: { type: [
3325
+ Object,
3326
+ String,
3327
+ Number,
3328
+ Boolean
3329
+ ] },
3330
+ disabled: {
3331
+ type: Boolean,
3332
+ default: !1
3333
+ },
3334
+ multiple: {
3335
+ type: Boolean,
3336
+ default: !1
3337
+ }
3338
+ },
3339
+ setup(e, { slots: t, expose: n }) {
3340
+ let r = La(), i = w(() => r.disabled.value || e.disabled), a = w(() => r.multiple.value || e.multiple), o = w(() => {
3341
+ let t = z(r.value.value), n = z(e.value);
3342
+ return t.some((e) => r.compare(e, n));
3343
+ });
3344
+ function s() {
3345
+ if (o.value) {
3346
+ let t = z(r.value.value).filter((t) => !r.compare(t, z(e.value)));
3347
+ r.change(t);
3348
+ return;
3349
+ }
3350
+ a.value ? r.change([...z(r.value.value), z(e.value)]) : r.change([z(e.value)]);
3351
+ }
3352
+ return n({ onSelected: s }), () => j(q, { ...e }, () => t?.default?.({
3353
+ selected: o.value,
3354
+ disabled: i.value,
3355
+ onSelected: s
3356
+ }));
3357
+ }
3358
+ }),
3359
+ Clear: A({
3360
+ name: "SelectorClear",
3361
+ props: {
3362
+ as: {
3363
+ type: [String, Object],
3364
+ default: "button"
3365
+ },
3366
+ asChild: {
3367
+ type: Boolean,
3368
+ default: !1
3369
+ }
3370
+ },
3371
+ setup(e, { slots: t }) {
3372
+ let n = La();
3373
+ function r() {
3374
+ n.change([]);
3375
+ }
3376
+ return () => j(q, {
3377
+ ...e,
3378
+ onClick: r
3379
+ }, () => t?.default?.());
3380
+ }
3381
+ })
3382
+ }, Ba = { class: "truncate" }, Va = { class: "pt-2 text-center" }, Ha = /* @__PURE__ */ A({
3383
+ name: "DataList",
3384
+ inheritAttrs: !1,
3385
+ __name: "DataList",
3386
+ props: {
3387
+ request: {
3388
+ type: Function,
3389
+ default: (e) => Promise.resolve({})
3390
+ },
3391
+ selectedKeys: {},
3392
+ fieldNames: { default: () => ({}) },
3393
+ checkable: {
3394
+ type: Boolean,
3395
+ default: !0
3396
+ },
3397
+ filter: {
3398
+ type: Boolean,
3399
+ default: !1
3400
+ },
3401
+ immediate: {
3402
+ type: Boolean,
3403
+ default: !0
3404
+ },
3405
+ height: { default: 0 },
3406
+ disabledData: {
3407
+ type: Function,
3408
+ default: () => !1
3409
+ },
3410
+ onSelect: {}
3411
+ },
3412
+ setup(e, { expose: t }) {
3413
+ Xe((e) => ({
3414
+ v3942cadc: H(a).colorBgTextHover,
3415
+ v00ca680e: H(a).colorPrimaryBg
3416
+ }));
3417
+ let n = e, { pageSize: r, itemHeight: i } = Z(), { token: a } = G.useToken(), o = w(() => Ht({
3418
+ value: "value",
3419
+ label: "label"
3420
+ }, n.fieldNames)), s = We({
3421
+ search: "",
3422
+ current: 1,
3423
+ pageSize: r
3424
+ });
3425
+ function c(e) {
3426
+ return e > r ? `${n.height}px` : `${n.height + 33}px`;
3427
+ }
3428
+ async function l() {
3429
+ let e = await n.request({
3430
+ search: s.search,
3431
+ current: s.current,
3432
+ pageSize: s.pageSize
3433
+ });
3434
+ return {
3435
+ data: e?.data ?? [],
3436
+ total: e?.total
3437
+ };
3438
+ }
3439
+ function u(e) {
3440
+ n.filter || (s.current = 1, e());
3441
+ }
3442
+ let d = F();
3443
+ return t({ fetchData: () => {
3444
+ s.current = 1, d.value?.fetchData?.();
3445
+ } }), (t, n) => (P(), T(H(ga), {
3446
+ ref_key: "fetcher",
3447
+ ref: d,
3448
+ request: l,
3449
+ immediate: e.immediate
3450
+ }, {
3451
+ default: W(({ data: r, fetchData: l, loading: d }) => [k(H(Ia).Root, {
3452
+ "data-source": r?.data,
3453
+ filter: e.filter
3454
+ }, {
3455
+ default: W(() => [O("div", Le(t.$attrs, { class: "flex h-full flex-col gap-1 p-2" }), [
3456
+ k(H(Ia).InputSearch, {
3457
+ modelValue: s.search,
3458
+ "onUpdate:modelValue": n[0] ||= (e) => s.search = e,
3459
+ by: o.value.label,
3460
+ "as-child": "",
3461
+ onChange: (e) => u(l)
3462
+ }, {
3463
+ default: W(() => [k(H(ut), {
3464
+ "allow-clear": "",
3465
+ placeholder: "请输入"
3466
+ }, {
3467
+ prefix: W(() => [k(H(rt))]),
3468
+ _: 1
3469
+ })]),
3470
+ _: 1
3471
+ }, 8, [
3472
+ "modelValue",
3473
+ "by",
3474
+ "onChange"
3475
+ ]),
3476
+ I(t.$slots, "extra", M(je({ data: r?.data })), void 0, !0),
3477
+ I(t.$slots, "default", M(je({
3478
+ search: s.search,
3479
+ data: r?.data,
3480
+ loading: d
3481
+ })), () => [I(t.$slots, "content", M(je({
3482
+ search: s.search,
3483
+ data: r?.data,
3484
+ loading: d
3485
+ })), () => [k(H(Ia).Content, { class: "flex-1 overflow-y-auto overflow-x-hidden" }, {
3486
+ default: W(({ data: n }) => [k(Na, {
3487
+ empty: n?.length === 0,
3488
+ loading: d
3489
+ }, {
3490
+ default: W(() => [k(H(Aa), {
3491
+ list: n,
3492
+ options: { itemHeight: H(i) },
3493
+ height: c(r?.total)
3494
+ }, {
3495
+ default: W(({ data: n }) => [(P(), T(H(za).Item, {
3496
+ key: n[o.value.value],
3497
+ value: n,
3498
+ style: N({ height: `${H(i)}px` })
3499
+ }, {
3500
+ default: W(({ selected: r, onSelected: i }) => [(P(), T(qe(e.checkable ? H(ot) : "div"), {
3501
+ checked: r,
3502
+ disabled: e.disabledData(n),
3503
+ class: ze(["flex w-full items-center overflow-hidden", {
3504
+ DataListItem: !e.checkable,
3505
+ "DataListItem--active": e.selectedKeys?.includes(n[o.value.value])
3506
+ }]),
3507
+ onChange: (e) => i(),
3508
+ onClick: (t) => e.onSelect?.(n)
3509
+ }, {
3510
+ default: W(() => [O("span", Ba, [I(t.$slots, "item", M(je(n)), () => [De(R(n[o.value.label]), 1)], !0)])]),
3511
+ _: 2
3512
+ }, 1064, [
3513
+ "checked",
3514
+ "disabled",
3515
+ "class",
3516
+ "onChange",
3517
+ "onClick"
3518
+ ])), k(H(Un), {
3519
+ orientation: "horizontal",
3520
+ class: "mt-1 h-px w-full",
3521
+ style: N({ backgroundColor: H(a).colorBorderSecondary })
3522
+ }, null, 8, ["style"])]),
3523
+ _: 2
3524
+ }, 1032, ["value", "style"]))]),
3525
+ _: 3
3526
+ }, 8, [
3527
+ "list",
3528
+ "options",
3529
+ "height"
3530
+ ])]),
3531
+ _: 2
3532
+ }, 1032, ["empty", "loading"])]),
3533
+ _: 2
3534
+ }, 1024)], !0), k(H(Ia).Pagination, {
3535
+ page: s.current,
3536
+ "onUpdate:page": n[1] ||= (e) => s.current = e,
3537
+ "page-size": s.pageSize,
3538
+ total: r?.total,
3539
+ onPageChange: (t) => !e.filter && l()
3540
+ }, {
3541
+ default: W(({ total: e, currentPage: t, currentPageSize: n, pageCount: r, setPage: i }) => [r > 1 ? (P(), D(C, { key: 0 }, [k(H(Un), {
3542
+ orientation: "horizontal",
3543
+ class: "h-px w-full",
3544
+ style: N({ backgroundColor: H(a).colorBorderSecondary })
3545
+ }, null, 8, ["style"]), O("div", Va, [k(H(mt), {
3546
+ simple: "",
3547
+ size: "small",
3548
+ total: e,
3549
+ current: t,
3550
+ "page-size": n,
3551
+ onChange: i
3552
+ }, null, 8, [
3553
+ "total",
3554
+ "current",
3555
+ "page-size",
3556
+ "onChange"
3557
+ ])])], 64)) : E("", !0)]),
3558
+ _: 1
3559
+ }, 8, [
3560
+ "page",
3561
+ "page-size",
3562
+ "total",
3563
+ "onPageChange"
3564
+ ])], !0)
3565
+ ], 16)]),
3566
+ _: 2
3567
+ }, 1032, ["data-source", "filter"])]),
3568
+ _: 3
3569
+ }, 8, ["immediate"]));
3570
+ }
3571
+ }), Ua = (e, t) => {
3572
+ let n = e.__vccOpts || e;
3573
+ for (let [e, r] of t) n[e] = r;
3574
+ return n;
3575
+ }, Wa = /* @__PURE__ */ Ua(Ha, [["__scopeId", "data-v-e0e01b47"]]), Ga = { class: "flex items-center justify-between" }, Ka = { class: "flex-1 overflow-hidden" }, qa = ["title"], Ja = ["title"], Ya = /* @__PURE__ */ A({
3576
+ name: "SelectItem",
3577
+ __name: "SelectItem",
3578
+ props: {
3579
+ record: { default: () => ({}) },
3580
+ fieldNames: {},
3581
+ highlight: { type: Boolean },
3582
+ favorite: {
3583
+ type: Boolean,
3584
+ default: !0
3585
+ }
3586
+ },
3587
+ setup(e) {
3588
+ let { itemSlot: t } = Z(), { token: n } = G.useToken();
3589
+ return (r, i) => (P(), D("div", Ga, [O("div", Ka, [H(t) && typeof H(t) == "function" ? (P(), T(qe(H(t)), M(Le({ key: 0 }, e.record)), null, 16)) : (P(), D(C, { key: 1 }, [O("div", {
3590
+ title: e.record[e.fieldNames.label],
3591
+ class: "truncate"
3592
+ }, R(e.record[e.fieldNames.label]), 9, qa), O("div", {
3593
+ title: e.record[e.fieldNames.info],
3594
+ class: "truncate text-xs",
3595
+ style: N({ color: H(n).colorTextTertiary })
3596
+ }, R(e.record[e.fieldNames.info] || "暂无信息"), 13, Ja)], 64))]), k(H(ba), {
3597
+ record: e.record,
3598
+ highlight: e.highlight || e.record[e.fieldNames.favorite]
3599
+ }, null, 8, ["record", "highlight"])]));
3600
+ }
3601
+ }), Xa = /* @__PURE__ */ A({
3602
+ name: "Favorites",
3603
+ __name: "Favorites",
3604
+ setup(e) {
3605
+ let { apis: t, required: n, fieldNames: r } = hi(), { disabledData: i, height: a } = Z();
3606
+ return n("favorites"), (e, n) => (P(), T(H(Wa), {
3607
+ request: H(t)?.favorites,
3608
+ "field-names": H(r),
3609
+ "disabled-data": H(i),
3610
+ height: H(a)
3611
+ }, {
3612
+ item: W((e) => [k(H(Ya), {
3613
+ record: e,
3614
+ "field-names": H(r),
3615
+ highlight: ""
3616
+ }, null, 8, ["record", "field-names"])]),
3617
+ _: 1
3618
+ }, 8, [
3619
+ "request",
3620
+ "field-names",
3621
+ "disabled-data",
3622
+ "height"
3623
+ ]));
3624
+ }
3625
+ });
3626
+ //#endregion
3627
+ //#region ../../node_modules/.pnpm/@pubinfo+headlessui@1.5.4_@ant-design+icons-vue@7.0.1_vue@3.5.28_typescript@5.9.3___ant_5671ed20305323c86f93b689964916d3/node_modules/@pubinfo/headlessui/es/components/OrgUser/composables/useCheckbox.js
3628
+ function Za(e) {
3629
+ let { selectValue: t, by: n, disabledData: r } = e;
3630
+ function i(e = []) {
3631
+ let i = e.filter((e) => !r(e));
3632
+ if (i.length === 0) return !1;
3633
+ let a = new Set(H(t).map((e) => e[n]));
3634
+ return a.size === 0 ? !1 : i.every((e) => a.has(e[n]));
3635
+ }
3636
+ function a(e = []) {
3637
+ let i = e.filter((e) => !r(e));
3638
+ if (i.length === 0) return !1;
3639
+ let a = Bt(i, H(t), n);
3640
+ return !(a.length === 0 && i.length !== 0 || a.length === i.length);
3641
+ }
3642
+ function o(e, i) {
3643
+ return (e.target.checked ? Kt(H(t), i, n) : Bt(H(t), i, n)).filter((e) => !r(e));
3644
+ }
3645
+ return {
3646
+ isAllCheck: i,
3647
+ isIndeterminate: a,
3648
+ onCheck: o
3649
+ };
3650
+ }
3651
+ //#endregion
3652
+ //#region ../../node_modules/.pnpm/@pubinfo+headlessui@1.5.4_@ant-design+icons-vue@7.0.1_vue@3.5.28_typescript@5.9.3___ant_5671ed20305323c86f93b689964916d3/node_modules/@pubinfo/headlessui/es/components/OrgUser/ui/DataGroup.vue2.js
3653
+ var Qa = { class: "size-full" }, $a = ["title"], eo = /* @__PURE__ */ Ua(/* @__PURE__ */ A({
3654
+ name: "DataGroup",
3655
+ __name: "DataGroup",
3656
+ props: {
3657
+ request: {
3658
+ type: Function,
3659
+ default: (e) => Promise.resolve({})
3660
+ },
3661
+ requestData: {},
3662
+ fieldNames: { default: () => ({}) },
3663
+ disabledData: {
3664
+ type: Function,
3665
+ default: () => !1
3666
+ }
3667
+ },
3668
+ setup(e) {
3669
+ let t = e, { selectValue: n, setSelectValue: r, multiple: i } = Z(), a = w(() => Ht({
3670
+ value: "value",
3671
+ label: "label"
3672
+ }, t.fieldNames)), o = w(() => {
3673
+ let { value: e, label: t } = a.value;
3674
+ return {
3675
+ key: e,
3676
+ title: t,
3677
+ children: "children"
3678
+ };
3679
+ });
3680
+ async function s(e) {
3681
+ if (e?.dataRef?.[o.value.children] || !e?.dataRef) return;
3682
+ let n = await t?.requestData?.({ node: e?.dataRef });
3683
+ e.dataRef[o.value.children] = n;
3684
+ }
3685
+ let c = async (e) => {
3686
+ let n = await t.request(e);
3687
+ return {
3688
+ data: n?.data?.map((e) => ({
3689
+ ...e,
3690
+ _isGroup: !0
3691
+ })),
3692
+ total: n?.total
3693
+ };
3694
+ }, { isAllCheck: l, isIndeterminate: u, onCheck: d } = Za({
3695
+ selectValue: n,
3696
+ by: o.value.key,
3697
+ disabledData: t.disabledData
3698
+ });
3699
+ function f(e, t) {
3700
+ r(d(e, t));
3701
+ }
3702
+ async function p(e, n) {
3703
+ if (n?.children && n.children.length > 0) f(e, n.children);
3704
+ else {
3705
+ let r = await t?.requestData?.({ node: n?.dataRef }) ?? [];
3706
+ n.dataRef.children = r, f(e, r);
3707
+ }
3708
+ }
3709
+ return (t, n) => (P(), D("div", Qa, [k(Wa, {
3710
+ request: c,
3711
+ "field-names": a.value
3712
+ }, {
3713
+ content: W(({ data: n, loading: r }) => [k(Na, {
3714
+ empty: n?.length === 0,
3715
+ loading: r
3716
+ }, {
3717
+ default: W(() => [k(H(gt), {
3718
+ "block-node": "",
3719
+ selectable: !1,
3720
+ "field-names": o.value,
3721
+ "tree-data": [...n ?? []],
3722
+ "load-data": s,
3723
+ class: "flex-1 overflow-y-auto overflow-x-hidden"
3724
+ }, {
3725
+ title: W((n) => [(P(), T(H(za).Item, {
3726
+ key: n[o.value.key],
3727
+ value: n,
3728
+ "as-child": ""
3729
+ }, {
3730
+ default: W(({ selected: r, onSelected: a }) => [(P(), T(qe(n._isGroup && !H(i) ? "div" : H(ot)), {
3731
+ checked: n._isGroup ? H(l)(n.children) : r,
3732
+ disabled: e.disabledData(n),
3733
+ indeterminate: n._isGroup && H(u)(n.children),
3734
+ class: "flex w-full items-center overflow-hidden",
3735
+ onChange: (e) => n._isGroup ? ((e) => p(e, n))(e) : a()
3736
+ }, {
3737
+ default: W(() => [O("span", {
3738
+ title: n[o.value.title],
3739
+ class: "truncate"
3740
+ }, [I(t.$slots, "item", M(je(n)), () => [De(R(n[o.value.title]), 1)], !0)], 8, $a)]),
3741
+ _: 2
3742
+ }, 1064, [
3743
+ "checked",
3744
+ "disabled",
3745
+ "indeterminate",
3746
+ "onChange"
3747
+ ]))]),
3748
+ _: 2
3749
+ }, 1032, ["value"]))]),
3750
+ _: 3
3751
+ }, 8, ["field-names", "tree-data"])]),
3752
+ _: 2
3753
+ }, 1032, ["empty", "loading"])]),
3754
+ _: 3
3755
+ }, 8, ["field-names"])]));
3756
+ }
3757
+ }), [["__scopeId", "data-v-e7fc22e8"]]), to = { key: 0 }, no = /* @__PURE__ */ A({
3758
+ name: "Groups",
3759
+ __name: "Groups",
3760
+ setup(e) {
3761
+ let { apis: t, required: n, fieldNames: r } = hi(), { disabledData: i } = Z();
3762
+ return n(["groups", "groupData"]), (e, n) => (P(), T(H(eo), {
3763
+ request: H(t)?.groups,
3764
+ "request-data": H(t)?.groupData,
3765
+ "field-names": H(r),
3766
+ "disabled-data": H(i)
3767
+ }, {
3768
+ item: W((e) => [e?._isGroup ? (P(), D("span", to, R(e[H(r).label]), 1)) : (P(), T(H(Ya), {
3769
+ key: 1,
3770
+ record: e,
3771
+ "field-names": H(r)
3772
+ }, null, 8, ["record", "field-names"]))]),
3773
+ _: 1
3774
+ }, 8, [
3775
+ "request",
3776
+ "request-data",
3777
+ "field-names",
3778
+ "disabled-data"
3779
+ ]));
3780
+ }
3781
+ }), ro = { class: "size-full" }, io = { class: "truncate" }, ao = /* @__PURE__ */ Ua(/* @__PURE__ */ A({
3782
+ name: "DataTree",
3783
+ __name: "DataTree",
3784
+ props: {
3785
+ request: {
3786
+ type: Function,
3787
+ default: (e) => Promise.resolve([])
3788
+ },
3789
+ requestSearch: {
3790
+ type: Function,
3791
+ default: (e) => Promise.resolve({})
3792
+ },
3793
+ sync: {
3794
+ type: Boolean,
3795
+ default: !1
3796
+ },
3797
+ checkable: {
3798
+ type: Boolean,
3799
+ default: !1
3800
+ },
3801
+ height: { default: 0 },
3802
+ selectedKeys: { default: () => [] },
3803
+ fieldNames: { default: () => ({}) },
3804
+ disabledData: {
3805
+ type: Function,
3806
+ default: () => !1
3807
+ },
3808
+ onSelect: {}
3809
+ },
3810
+ setup(e) {
3811
+ let t = e, n = w(() => Ht({
3812
+ value: "value",
3813
+ label: "label"
3814
+ }, t.fieldNames)), r = w(() => {
3815
+ let { value: e, label: t } = n.value;
3816
+ return {
3817
+ key: e,
3818
+ title: t,
3819
+ children: "children"
3820
+ };
3821
+ }), i = F([]);
3822
+ function a(e, { selected: n, node: r }) {
3823
+ t?.onSelect?.(n ? r?.dataRef : void 0);
3824
+ }
3825
+ let [o, s] = /* @__PURE__ */ Wi(!1);
3826
+ async function c(e) {
3827
+ if (!e?.dataRef?.[r.value.children]) {
3828
+ e || s(!0);
3829
+ try {
3830
+ let n = await t.request({ node: e?.dataRef });
3831
+ e && e.dataRef ? e.dataRef[r.value.children] = n : i.value = n, i.value = [...i.value];
3832
+ } finally {
3833
+ s(!1);
3834
+ }
3835
+ }
3836
+ }
3837
+ return Be(() => {
3838
+ c();
3839
+ }), (t, s) => (P(), D("div", ro, [k(Wa, {
3840
+ request: e.requestSearch,
3841
+ "field-names": n.value,
3842
+ "selected-keys": e.selectedKeys,
3843
+ checkable: e.checkable,
3844
+ immediate: !1,
3845
+ "disabled-data": e.disabledData,
3846
+ height: e.height,
3847
+ onSelect: e.onSelect
3848
+ }, {
3849
+ default: W(({ search: n }) => [n ? E("", !0) : (P(), T(Na, {
3850
+ key: 0,
3851
+ empty: i.value.length === 0,
3852
+ loading: H(o)
3853
+ }, {
3854
+ default: W(() => [k(H(gt), {
3855
+ "selected-keys": e.selectedKeys,
3856
+ "block-node": "",
3857
+ selectable: !e.checkable,
3858
+ "field-names": r.value,
3859
+ "tree-data": i.value,
3860
+ "load-data": e.sync ? void 0 : c,
3861
+ height: e.height + 33,
3862
+ class: "overflow-x-hidden",
3863
+ onSelect: a
3864
+ }, {
3865
+ title: W((n) => [(P(), T(H(za).Item, {
3866
+ key: n[r.value.key],
3867
+ value: n,
3868
+ "as-child": ""
3869
+ }, {
3870
+ default: W(({ selected: i, onSelected: a }) => [(P(), T(qe(e.checkable ? H(ot) : "div"), {
3871
+ checked: i,
3872
+ disabled: e.disabledData(n),
3873
+ class: "flex w-full items-center overflow-hidden",
3874
+ onChange: (e) => a()
3875
+ }, {
3876
+ default: W(() => [O("span", io, [I(t.$slots, "item", M(je({
3877
+ ...n,
3878
+ isSearch: !1
3879
+ })), () => [De(R(n[r.value.title]), 1)], !0)])]),
3880
+ _: 2
3881
+ }, 1064, [
3882
+ "checked",
3883
+ "disabled",
3884
+ "onChange"
3885
+ ]))]),
3886
+ _: 2
3887
+ }, 1032, ["value"]))]),
3888
+ _: 3
3889
+ }, 8, [
3890
+ "selected-keys",
3891
+ "selectable",
3892
+ "field-names",
3893
+ "tree-data",
3894
+ "load-data",
3895
+ "height"
3896
+ ])]),
3897
+ _: 3
3898
+ }, 8, ["empty", "loading"]))]),
3899
+ item: W((e) => [I(t.$slots, "item", M(je({
3900
+ ...e,
3901
+ isSearch: !0
3902
+ })), () => [De(R(e[n.value.label]), 1)], !0)]),
3903
+ _: 3
3904
+ }, 8, [
3905
+ "request",
3906
+ "field-names",
3907
+ "selected-keys",
3908
+ "checkable",
3909
+ "disabled-data",
3910
+ "height",
3911
+ "onSelect"
3912
+ ])]));
3913
+ }
3914
+ }), [["__scopeId", "data-v-9f47984c"]]), oo = { class: "flex w-full items-center" }, so = {
3915
+ key: 0,
3916
+ class: "flex-1 overflow-hidden"
3917
+ }, co = ["title"], lo = { class: "text-xs" }, uo = /* @__PURE__ */ A({
3918
+ name: "OrgTree",
3919
+ __name: "OrgTree",
3920
+ props: {
3921
+ checkable: {
3922
+ type: Boolean,
3923
+ default: !1
3924
+ },
3925
+ selectedKeys: { default: () => [] },
3926
+ onSelect: {}
3927
+ },
3928
+ setup(e) {
3929
+ let { token: t } = G.useToken(), { selectValue: n, setSelectValue: r, multiple: i, disabledData: a, height: o } = Z(), { apis: s, required: c, fieldNames: l } = _i();
3930
+ c([
3931
+ "orgTree",
3932
+ "orgChildren",
3933
+ "orgList"
3934
+ ]);
3935
+ let u = [
3936
+ {
3937
+ key: "include-all",
3938
+ title: "选中所有下级"
3939
+ },
3940
+ {
3941
+ key: "exclude-all",
3942
+ title: "取消所有下级"
3943
+ },
3944
+ {
3945
+ key: "include-children",
3946
+ title: "选中下一级"
3947
+ },
3948
+ {
3949
+ key: "exclude-children",
3950
+ title: "取消下一级"
3951
+ }
3952
+ ];
3953
+ async function d(e, t) {
3954
+ switch (e.key) {
3955
+ case "include-all":
3956
+ case "exclude-all": {
3957
+ let i = await s?.orgChildren?.({ node: t?.dataRef }) ?? [];
3958
+ r((e.key === "include-all" ? Kt(n.value, i, l.value) : Bt(n.value, i, l.value)).filter((e) => !a(e)));
3959
+ break;
3960
+ }
3961
+ case "include-children":
3962
+ case "exclude-children": {
3963
+ let i = (t?.dataRef?.children || await s?.orgTree?.({ node: t?.dataRef })) ?? [];
3964
+ r((e.key === "include-children" ? Kt(n.value, i, l.value) : Bt(n.value, i, l.value)).filter((e) => !a(e)));
3965
+ break;
3966
+ }
3967
+ }
3968
+ }
3969
+ function f() {
3970
+ return window.document.body;
3971
+ }
3972
+ return (n, r) => (P(), T(H(ao), {
3973
+ "selected-keys": e.selectedKeys,
3974
+ checkable: e.checkable,
3975
+ request: H(s).orgTree,
3976
+ "request-search": H(s).orgList,
3977
+ "field-names": H(l),
3978
+ "disabled-data": H(a),
3979
+ height: H(o),
3980
+ onSelect: e.onSelect
3981
+ }, {
3982
+ item: W((n) => [O("span", oo, [n.isSearch ? (P(), D("div", so, [k(H(Ya), {
3983
+ record: n,
3984
+ "field-names": H(l),
3985
+ favorite: e.checkable
3986
+ }, null, 8, [
3987
+ "record",
3988
+ "field-names",
3989
+ "favorite"
3990
+ ])])) : (P(), D(C, { key: 1 }, [O("span", {
3991
+ title: n[H(l).label],
3992
+ class: "mx-1 truncate"
3993
+ }, R(n[H(l).label]), 9, co), e.checkable ? (P(), D(C, { key: 0 }, [k(H(ba), {
3994
+ record: n,
3995
+ highlight: n[H(l).favorite]
3996
+ }, null, 8, ["record", "highlight"]), H(i) && !n?.isLeaf ? (P(), T(H(st), {
3997
+ key: 0,
3998
+ trigger: ["click"],
3999
+ "get-popup-container": f
4000
+ }, {
4001
+ overlay: W(() => [k(H(dt), { onClick: (e) => d(e, n) }, {
4002
+ default: W(() => [(P(), D(C, null, Ke(u, (e) => k(H(ft), { key: e.key }, {
4003
+ default: W(() => [O("span", lo, R(e.title), 1)]),
4004
+ _: 2
4005
+ }, 1024)), 64))]),
4006
+ _: 1
4007
+ }, 8, ["onClick"])]),
4008
+ default: W(() => [O("div", {
4009
+ class: "ml-2 flex max-w-full cursor-pointer items-center px-1.5 py-0.5 text-xs",
4010
+ style: N({
4011
+ backgroundColor: H(t).colorPrimaryBg,
4012
+ color: H(t).colorPrimary
4013
+ }),
4014
+ onClick: r[0] ||= tt(() => {}, ["stop", "prevent"])
4015
+ }, [r[1] ||= O("span", null, "操作", -1), k(H(Zt), {
4016
+ size: 14,
4017
+ style: N({ color: H(t).colorPrimary })
4018
+ }, null, 8, ["style"])], 4)]),
4019
+ _: 2
4020
+ }, 1024)) : E("", !0)], 64)) : E("", !0)], 64))])]),
4021
+ _: 1
4022
+ }, 8, [
4023
+ "selected-keys",
4024
+ "checkable",
4025
+ "request",
4026
+ "request-search",
4027
+ "field-names",
4028
+ "disabled-data",
4029
+ "height",
4030
+ "onSelect"
4031
+ ]));
4032
+ }
4033
+ }), fo = /* @__PURE__ */ A({
4034
+ name: "RecentlyUsed",
4035
+ __name: "RecentlyUsed",
4036
+ setup(e) {
4037
+ let { apis: t, required: n, fieldNames: r } = hi(), { disabledData: i, height: a } = Z();
4038
+ return n("recentlyUsed"), (e, n) => (P(), T(H(Wa), {
4039
+ request: H(t)?.recentlyUsed,
4040
+ "field-names": H(r),
4041
+ "disabled-data": H(i),
4042
+ height: H(a)
4043
+ }, {
4044
+ item: W((e) => [k(H(Ya), {
4045
+ record: e,
4046
+ "field-names": H(r)
4047
+ }, null, 8, ["record", "field-names"])]),
4048
+ _: 1
4049
+ }, 8, [
4050
+ "request",
4051
+ "field-names",
4052
+ "disabled-data",
4053
+ "height"
4054
+ ]));
4055
+ }
4056
+ }), po = {
4057
+ key: 0,
4058
+ class: "mr-1 shrink-0"
4059
+ }, mo = ["title"], ho = /* @__PURE__ */ A({
4060
+ name: "SelectTag",
4061
+ __name: "SelectTag",
4062
+ props: { title: String },
4063
+ emits: ["close"],
4064
+ setup(e) {
4065
+ let { token: t } = G.useToken();
4066
+ return (n, r) => (P(), D("div", {
4067
+ style: N({ backgroundColor: H(t).colorPrimaryBg }),
4068
+ class: "flex w-full max-w-full items-center px-2 py-1"
4069
+ }, [
4070
+ n.$slots.icon ? (P(), D("span", po, [I(n.$slots, "icon")])) : E("", !0),
4071
+ O("span", {
4072
+ title: e.title,
4073
+ class: "flex-1 truncate"
4074
+ }, [I(n.$slots, "default")], 8, mo),
4075
+ k(H($t), {
4076
+ size: 14,
4077
+ style: N({ color: H(t).colorPrimary }),
4078
+ class: "ml-1 shrink-0 cursor-pointer",
4079
+ onClick: r[0] ||= (e) => n.$emit("close")
4080
+ }, null, 8, ["style"])
4081
+ ], 4));
4082
+ }
4083
+ }), go = { class: "flex h-full flex-1 flex-col gap-1 p-2" }, _o = { class: "flex flex-1 flex-col gap-1 overflow-y-auto overflow-x-hidden" }, vo = { class: "pt-2 text-center" }, yo = /* @__PURE__ */ A({
4084
+ name: "SelectedData",
4085
+ __name: "SelectedData",
4086
+ props: {
4087
+ modelValue: { default: [] },
4088
+ modelModifiers: {}
4089
+ },
4090
+ emits: ["update:modelValue"],
4091
+ setup(e) {
4092
+ let { token: t } = G.useToken(), { multiple: n } = Z(), { fieldNames: r } = hi(), i = Ze(e, "modelValue"), a = F("");
4093
+ return (e, o) => (P(), T(H(Ia).Root, {
4094
+ "data-source": i.value,
4095
+ filter: ""
4096
+ }, {
4097
+ default: W(() => [O("div", go, [
4098
+ H(n) ? (P(), T(H(Ia).InputSearch, {
4099
+ key: 0,
4100
+ modelValue: a.value,
4101
+ "onUpdate:modelValue": o[0] ||= (e) => a.value = e,
4102
+ by: H(r).label,
4103
+ "as-child": ""
4104
+ }, {
4105
+ default: W(() => [k(H(ut), {
4106
+ "allow-clear": "",
4107
+ placeholder: "请输入"
4108
+ }, {
4109
+ prefix: W(() => [k(H(rt))]),
4110
+ _: 1
4111
+ })]),
4112
+ _: 1
4113
+ }, 8, ["modelValue", "by"])) : (P(), T(H(it), {
4114
+ key: 1,
4115
+ message: "仅可选择一条数据",
4116
+ type: "info",
4117
+ "show-icon": "",
4118
+ style: { padding: "4px 8px" }
4119
+ })),
4120
+ k(H(Ia).Content, { "as-child": "" }, {
4121
+ default: W(({ data: e }) => [O("div", _o, [(P(!0), D(C, null, Ke(e, (e) => (P(), T(H(za).Item, {
4122
+ key: e[H(r).value],
4123
+ value: e,
4124
+ "as-child": ""
4125
+ }, {
4126
+ default: W(({ onSelected: t }) => [k(H(ho), { onClose: (e) => t() }, {
4127
+ default: W(() => [k(H(Ya), {
4128
+ record: e,
4129
+ favorite: !1,
4130
+ "field-names": H(r)
4131
+ }, null, 8, ["record", "field-names"])]),
4132
+ _: 2
4133
+ }, 1032, ["onClose"])]),
4134
+ _: 2
4135
+ }, 1032, ["value"]))), 128))])]),
4136
+ _: 1
4137
+ }),
4138
+ k(H(Ia).Pagination, null, {
4139
+ default: W(({ total: e, currentPage: n, currentPageSize: r, pageCount: i, setPage: a }) => [i > 1 ? (P(), D(C, { key: 0 }, [k(H(Un), {
4140
+ orientation: "horizontal",
4141
+ class: "h-px w-full",
4142
+ style: N({ backgroundColor: H(t).colorBorderSecondary })
4143
+ }, null, 8, ["style"]), O("div", vo, [k(H(mt), {
4144
+ simple: "",
4145
+ total: e,
4146
+ current: n,
4147
+ "page-size": r,
4148
+ onChange: a
4149
+ }, null, 8, [
4150
+ "total",
4151
+ "current",
4152
+ "page-size",
4153
+ "onChange"
4154
+ ])])], 64)) : E("", !0)]),
4155
+ _: 1
4156
+ })
4157
+ ])]),
4158
+ _: 1
4159
+ }, 8, ["data-source"]));
4160
+ }
4161
+ }), bo = { key: 0 }, xo = /* @__PURE__ */ A({
4162
+ name: "UserList",
4163
+ __name: "UserList",
4164
+ props: {
4165
+ orgId: { default: void 0 },
4166
+ height: { default: 0 }
4167
+ },
4168
+ setup(e) {
4169
+ let t = e, { token: n } = G.useToken(), { selectValue: r, setSelectValue: i, multiple: a, disabledData: o, height: s } = Z(), { apis: c, required: l, fieldNames: u } = yi();
4170
+ l("userList");
4171
+ let d = async (e) => await c.userList({
4172
+ ...e,
4173
+ orgId: t.orgId
4174
+ }), f = F();
4175
+ U(() => t.orgId, () => {
4176
+ f.value?.fetchData?.();
4177
+ });
4178
+ let { isAllCheck: p, isIndeterminate: m, onCheck: h } = Za({
4179
+ selectValue: r,
4180
+ by: u.value,
4181
+ disabledData: o
4182
+ });
4183
+ function g(e, t) {
4184
+ i(h(e, t));
4185
+ }
4186
+ let _ = w(() => (t.height ? t.height : s) - 30);
4187
+ return (e, t) => (P(), T(H(Wa), {
4188
+ ref_key: "dataListRef",
4189
+ ref: f,
4190
+ request: d,
4191
+ "field-names": H(u),
4192
+ "disabled-data": H(o),
4193
+ height: _.value
4194
+ }, {
4195
+ extra: W(({ data: r }) => [I(e.$slots, "extra"), H(a) ? (P(), D("div", bo, [k(H(ot), {
4196
+ checked: H(p)(r),
4197
+ indeterminate: H(m)(r),
4198
+ disabled: !r?.length,
4199
+ onChange: (e) => g(e, r)
4200
+ }, {
4201
+ default: W(() => [...t[0] ||= [De(" 全选 ", -1)]]),
4202
+ _: 1
4203
+ }, 8, [
4204
+ "checked",
4205
+ "indeterminate",
4206
+ "disabled",
4207
+ "onChange"
4208
+ ]), k(H(Un), {
4209
+ orientation: "horizontal",
4210
+ class: "mt-1 h-px w-full",
4211
+ style: N({ backgroundColor: H(n).colorBorderSecondary })
4212
+ }, null, 8, ["style"])])) : E("", !0)]),
4213
+ item: W((e) => [k(H(Ya), {
4214
+ record: e,
4215
+ "field-names": H(u)
4216
+ }, null, 8, ["record", "field-names"])]),
4217
+ _: 3
4218
+ }, 8, [
4219
+ "field-names",
4220
+ "disabled-data",
4221
+ "height"
4222
+ ]));
4223
+ }
4224
+ }), So = ["title"], Co = /* @__PURE__ */ A({
4225
+ name: "TreeUserList",
4226
+ __name: "TreeUserList",
4227
+ setup(e) {
4228
+ let { token: t } = G.useToken(), { fieldNames: n } = _i(), { height: r } = Z(), i = F({}), a = (e = {}) => {
4229
+ if (e?.[n.value] === i.value?.[n.value]) {
4230
+ i.value = {};
4231
+ return;
4232
+ }
4233
+ i.value = e ?? {};
4234
+ }, o = w(() => i.value[n.label] ? r - 28 : r);
4235
+ return (e, r) => (P(), T(H($r), {
4236
+ direction: "horizontal",
4237
+ class: "h-full"
4238
+ }, {
4239
+ default: W(() => [
4240
+ k(H(ei), {
4241
+ "default-size": 55,
4242
+ "min-size": 40,
4243
+ class: "h-full"
4244
+ }, {
4245
+ default: W(() => [k(H(uo), {
4246
+ "selected-keys": [i.value[H(n).value]],
4247
+ onSelect: a
4248
+ }, null, 8, ["selected-keys"])]),
4249
+ _: 1
4250
+ }),
4251
+ k(H(ni), {
4252
+ style: N({ borderColor: H(t).colorBorder }),
4253
+ class: "h-full border-0 border-r border-solid"
4254
+ }, null, 8, ["style"]),
4255
+ k(H(ei), {
4256
+ "default-size": 45,
4257
+ "min-size": 40,
4258
+ class: "h-full"
4259
+ }, {
4260
+ default: W(() => [k(H(xo), {
4261
+ "org-id": i.value[H(n).value],
4262
+ height: o.value
4263
+ }, {
4264
+ extra: W(() => [i.value[H(n).label] ? (P(), D("div", {
4265
+ key: 0,
4266
+ class: "flex w-full items-center overflow-hidden p-1 text-xs",
4267
+ style: N({
4268
+ color: H(t).colorPrimary,
4269
+ backgroundColor: H(t).colorPrimaryBg
4270
+ })
4271
+ }, [O("span", {
4272
+ title: i.value[H(n).label],
4273
+ class: "flex-1 truncate"
4274
+ }, " 当前组织:" + R(i.value[H(n).label]), 9, So), k(H($t), {
4275
+ size: 14,
4276
+ style: N({ color: H(t).colorPrimary }),
4277
+ class: "shrink-0 cursor-pointer",
4278
+ onClick: a
4279
+ }, null, 8, ["style"])], 4)) : E("", !0)]),
4280
+ _: 1
4281
+ }, 8, ["org-id", "height"])]),
4282
+ _: 1
4283
+ })
4284
+ ]),
4285
+ _: 1
4286
+ }));
4287
+ }
4288
+ }), wo = {
4289
+ Root: ai,
4290
+ List: ui,
4291
+ Content: ci,
4292
+ Trigger: di,
4293
+ Indicator: li
4294
+ }, To = { class: "font-normal" }, Eo = /* @__PURE__ */ Ua(/* @__PURE__ */ A({
4295
+ name: "ContentSelector",
4296
+ __name: "ContentSelector",
4297
+ props: /* @__PURE__ */ Ie({
4298
+ tabs: { default: () => [
4299
+ {
4300
+ value: "RecentlyUsed",
4301
+ label: "最近常用"
4302
+ },
4303
+ {
4304
+ value: "Favorites",
4305
+ label: "收藏"
4306
+ },
4307
+ {
4308
+ value: "OrgTree",
4309
+ label: "全部"
4310
+ },
4311
+ {
4312
+ value: "TreeUserList",
4313
+ label: "全部"
4314
+ },
4315
+ {
4316
+ value: "Groups",
4317
+ label: "群组"
4318
+ }
4319
+ ] },
4320
+ defaultTab: {},
4321
+ multiple: {
4322
+ type: Boolean,
4323
+ default: !1
4324
+ },
4325
+ disabledData: {
4326
+ type: Function,
4327
+ default: () => !1
4328
+ },
4329
+ pageSize: { default: 20 },
4330
+ height: { default: 400 },
4331
+ itemHeight: { default: 48 }
4332
+ }, {
4333
+ modelValue: { default: [] },
4334
+ modelModifiers: {}
4335
+ }),
4336
+ emits: ["update:modelValue"],
4337
+ setup(e) {
4338
+ Xe((e) => ({
4339
+ v3183f452: H(i).colorPrimary,
4340
+ v06d79c0c: H(i).colorBgContainer
4341
+ }));
4342
+ let t = e, n = Qe(), r = Ze(e, "modelValue"), { token: i } = G.useToken(), { fieldNames: a } = hi();
4343
+ mi({
4344
+ selectValue: w(() => r.value),
4345
+ setSelectValue(e) {
4346
+ r.value = e;
4347
+ },
4348
+ multiple: t.multiple,
4349
+ disabledData: t.disabledData,
4350
+ pageSize: t.pageSize,
4351
+ height: t.height - 130,
4352
+ itemHeight: t.itemHeight,
4353
+ itemSlot: n.item
4354
+ });
4355
+ let o = F();
4356
+ return o.value = t.defaultTab ?? t.tabs[0].value, (t, n) => (P(), D("div", {
4357
+ class: "border border-solid",
4358
+ style: N({
4359
+ borderColor: H(i).colorBorder,
4360
+ height: `${e.height}px`
4361
+ })
4362
+ }, [k(H(za).Root, {
4363
+ modelValue: r.value,
4364
+ "onUpdate:modelValue": n[2] ||= (e) => r.value = e,
4365
+ multiple: e.multiple,
4366
+ by: H(a)?.value
4367
+ }, {
4368
+ default: W(() => [k(H($r), {
4369
+ direction: "horizontal",
4370
+ class: "h-full"
4371
+ }, {
4372
+ default: W(() => [
4373
+ k(H(ei), {
4374
+ "default-size": 60,
4375
+ "min-size": 55,
4376
+ class: "h-full"
4377
+ }, {
4378
+ default: W(() => [k(H(wo).Root, {
4379
+ modelValue: o.value,
4380
+ "onUpdate:modelValue": n[0] ||= (e) => o.value = e,
4381
+ class: "h-full"
4382
+ }, {
4383
+ default: W(() => [k(H(at), {
4384
+ bordered: !1,
4385
+ size: "small",
4386
+ "head-style": {
4387
+ backgroundColor: H(i).colorBgLayout,
4388
+ borderRadius: 0,
4389
+ borderWidth: 0,
4390
+ borderBottomWidth: "1px",
4391
+ padding: 0
4392
+ },
4393
+ "body-style": {
4394
+ flex: 1,
4395
+ padding: 0,
4396
+ height: "calc(100% - 38px)"
4397
+ },
4398
+ style: N({
4399
+ boxShadow: "none",
4400
+ borderRadius: 0,
4401
+ borderColor: H(i).colorBorder
4402
+ }),
4403
+ class: "flex h-full flex-col"
4404
+ }, {
4405
+ title: W(() => [k(H(wo).List, { class: "inline-flex items-center space-x-1 overflow-x-auto font-normal" }, {
4406
+ default: W(() => [(P(!0), D(C, null, Ke(e.tabs, (e) => (P(), T(H(wo).Trigger, {
4407
+ key: e.value,
4408
+ value: e.value,
4409
+ as: "div",
4410
+ class: "TabsTrigger cursor-pointer px-4 leading-[38px]"
4411
+ }, {
4412
+ default: W(() => [De(R(e.label), 1)]),
4413
+ _: 2
4414
+ }, 1032, ["value"]))), 128))]),
4415
+ _: 1
4416
+ })]),
4417
+ default: W(() => [(P(!0), D(C, null, Ke(e.tabs, (e) => (P(), T(H(wo).Content, {
4418
+ key: e.value,
4419
+ value: e.value,
4420
+ class: "h-full"
4421
+ }, {
4422
+ default: W(() => [I(t.$slots, "content", Le({ ref_for: !0 }, { key: e.value }), () => [
4423
+ e.value === "RecentlyUsed" ? (P(), T(H(fo), { key: 0 })) : E("", !0),
4424
+ e.value === "Favorites" ? (P(), T(H(Xa), { key: 1 })) : E("", !0),
4425
+ e.value === "OrgTree" ? (P(), T(H(uo), {
4426
+ key: 2,
4427
+ checkable: ""
4428
+ })) : E("", !0),
4429
+ e.value === "TreeUserList" ? (P(), T(H(Co), { key: 3 })) : E("", !0),
4430
+ e.value === "Groups" ? (P(), T(H(no), { key: 4 })) : E("", !0)
4431
+ ], !0)]),
4432
+ _: 2
4433
+ }, 1032, ["value"]))), 128))]),
4434
+ _: 3
4435
+ }, 8, ["head-style", "style"])]),
4436
+ _: 3
4437
+ }, 8, ["modelValue"])]),
4438
+ _: 3
4439
+ }),
4440
+ k(H(ni), {
4441
+ style: N({ borderColor: H(i).colorBorder }),
4442
+ class: "h-full border-0 border-r border-solid"
4443
+ }, null, 8, ["style"]),
4444
+ k(H(ei), {
4445
+ "default-size": 40,
4446
+ "min-size": 30,
4447
+ class: "flex h-full flex-col"
4448
+ }, {
4449
+ default: W(() => [k(H(at), {
4450
+ bordered: !1,
4451
+ size: "small",
4452
+ "head-style": {
4453
+ backgroundColor: H(i).colorBgLayout,
4454
+ borderRadius: 0,
4455
+ borderWidth: 0,
4456
+ borderBottomWidth: "1px"
4457
+ },
4458
+ "body-style": {
4459
+ flex: 1,
4460
+ padding: 0,
4461
+ overflow: "hidden"
4462
+ },
4463
+ style: {
4464
+ boxShadow: "none",
4465
+ borderRadius: 0
4466
+ },
4467
+ class: "flex h-full flex-col"
4468
+ }, {
4469
+ title: W(() => [O("span", To, " 已选内容(" + R(r.value.length) + ") ", 1)]),
4470
+ extra: W(() => [k(H(za).Clear, {
4471
+ as: "a",
4472
+ style: N({ color: H(i).colorPrimary })
4473
+ }, {
4474
+ default: W(() => [...n[3] ||= [De(" 清空 ", -1)]]),
4475
+ _: 1
4476
+ }, 8, ["style"])]),
4477
+ default: W(() => [k(H(yo), {
4478
+ modelValue: r.value,
4479
+ "onUpdate:modelValue": n[1] ||= (e) => r.value = e
4480
+ }, null, 8, ["modelValue"])]),
4481
+ _: 1
4482
+ }, 8, ["head-style"])]),
4483
+ _: 1
4484
+ })
4485
+ ]),
4486
+ _: 3
4487
+ })]),
4488
+ _: 3
4489
+ }, 8, [
4490
+ "modelValue",
4491
+ "multiple",
4492
+ "by"
4493
+ ])], 4));
4494
+ }
4495
+ }), [["__scopeId", "data-v-5a5c2a54"]]), Q = {
4496
+ value: "orgId",
4497
+ label: "orgName",
4498
+ favorite: "collect",
4499
+ info: "fullName"
4500
+ }, $ = {
4501
+ value: "orgUserId",
4502
+ label: "userName",
4503
+ favorite: "collect",
4504
+ info: "fullName"
4505
+ };
4506
+ function Do(e = "", t = "") {
4507
+ return `${e}_${t}`;
4508
+ }
4509
+ function Oo(e) {
4510
+ let [t, n] = e.split("_");
4511
+ return {
4512
+ orgId: t,
4513
+ userId: n
4514
+ };
4515
+ }
4516
+ function ko(e) {
4517
+ function t(t) {
4518
+ return t.config.headers["X-ResourceMark"] = e, t;
4519
+ }
4520
+ return { setRequestHeader: t };
4521
+ }
4522
+ function Ao({ auth: e, filter: t }) {
4523
+ let { setRequestHeader: n } = ko(e);
4524
+ return {
4525
+ async getSelectedData(e) {
4526
+ return (await n(be(e.map((e) => e[Q.value]))))?.data?.map((e) => ({
4527
+ ...e,
4528
+ [Q.value]: e.id,
4529
+ [Q.label]: e.name,
4530
+ [Q.info]: e.fullName
4531
+ })) ?? [];
4532
+ },
4533
+ async addRecentlyUsed(e) {
4534
+ await n(_e(e.map((e) => ({
4535
+ type: "1",
4536
+ orgId: e[Q.value],
4537
+ orgName: e[Q.label]
4538
+ }))));
4539
+ },
4540
+ async recentlyUsed({ search: e, current: t }) {
4541
+ return {
4542
+ total: 20,
4543
+ data: (await n(ve({
4544
+ type: "1",
4545
+ orgName: e,
4546
+ currentPage: t,
4547
+ pageSize: 20,
4548
+ showIsCollect: !0
4549
+ }))).data?.records?.map((e) => ({
4550
+ ...e,
4551
+ [Q.value]: e.orgId,
4552
+ [Q.label]: e.orgName,
4553
+ [Q.info]: e.fullOrgName
4554
+ })) ?? []
4555
+ };
4556
+ },
4557
+ async favorites({ search: e, current: t, pageSize: r }) {
4558
+ let i = await n(he({
4559
+ type: "1",
4560
+ orgName: e,
4561
+ currentPage: t,
4562
+ pageSize: r
4563
+ }));
4564
+ return {
4565
+ total: i.data?.total ?? 0,
4566
+ data: i.data?.records?.map((e) => ({
4567
+ ...e,
4568
+ [Q.value]: e.orgId,
4569
+ [Q.label]: e.orgName,
4570
+ [Q.info]: e.fullOrgName
4571
+ })) ?? []
4572
+ };
4573
+ },
4574
+ async favoriteToggle({ favorite: e, record: t }) {
4575
+ (await n((e ? pe : ge)({
4576
+ type: "1",
4577
+ orgId: t?.[Q.value]
4578
+ }))).success && _t.success(e ? "收藏成功" : "取消收藏成功");
4579
+ },
4580
+ async groups({ search: e, current: t, pageSize: r }) {
4581
+ let i = await n(de({
4582
+ type: "1",
4583
+ name: e,
4584
+ currentPage: t,
4585
+ pageSize: r
4586
+ }));
4587
+ return {
4588
+ total: i.data?.total ?? 0,
4589
+ data: i.data?.records?.map((e) => ({
4590
+ ...e,
4591
+ [Q.value]: e.id,
4592
+ [Q.label]: e.name
4593
+ })) ?? []
4594
+ };
4595
+ },
4596
+ async groupData({ node: e }) {
4597
+ return (await n(fe({
4598
+ id: e?.id,
4599
+ showIsCollect: !0
4600
+ }))).data?.pubGroupMemberList?.map((e) => ({
4601
+ ...e,
4602
+ [Q.value]: e.orgId,
4603
+ [Q.label]: e.orgName,
4604
+ [Q.info]: e.fullOrgName,
4605
+ isLeaf: !0
4606
+ })).filter(t) ?? [];
4607
+ },
4608
+ async orgTree({ node: e }) {
4609
+ return (await n(Se({
4610
+ parentId: e?.orgId,
4611
+ enable: !0,
4612
+ showFullName: !0,
4613
+ showIsCollect: !0
4614
+ }))).data?.map((e) => ({
4615
+ ...e,
4616
+ [Q.value]: e.id,
4617
+ [Q.label]: e.name,
4618
+ [Q.info]: e.fullName,
4619
+ isLeaf: e.leaf
4620
+ })).filter(t) ?? [];
4621
+ },
4622
+ async orgChildren({ node: e }) {
4623
+ return (await n(xe({ parentId: e?.orgId }))).data?.map((e) => ({
4624
+ ...e,
4625
+ [Q.value]: e.id,
4626
+ [Q.label]: e.name,
4627
+ [Q.info]: e.fullName,
4628
+ isLeaf: e.leaf
4629
+ })).filter(t) ?? [];
4630
+ },
4631
+ async orgList({ search: e, current: r, pageSize: i }) {
4632
+ let a = await n(Ce({
4633
+ keyWord: e,
4634
+ currentPage: r,
4635
+ pageSize: i,
4636
+ showIsCollect: !0
4637
+ }));
4638
+ return {
4639
+ total: a.data?.total ?? 0,
4640
+ data: a.data?.records?.map((e) => ({
4641
+ ...e,
4642
+ [Q.value]: e.id,
4643
+ [Q.label]: e.simpleName,
4644
+ [Q.info]: e.fullName
4645
+ })).filter(t) ?? []
4646
+ };
4647
+ }
4648
+ };
4649
+ }
4650
+ function jo({ auth: e, filter: t }) {
4651
+ let { setRequestHeader: n } = ko(e);
4652
+ return {
4653
+ async getSelectedData(e) {
4654
+ return (await n(me(e.map((e) => ({
4655
+ orgId: e.orgId,
4656
+ userId: e.userId
4657
+ })))))?.data?.map((e) => ({
4658
+ ...e,
4659
+ [$.value]: Do(e?.orgId, e.id),
4660
+ [$.label]: e.realName,
4661
+ [$.info]: e.fullOrgName
4662
+ })) ?? [];
4663
+ },
4664
+ async addRecentlyUsed(e) {
4665
+ await n(_e(e.map((e) => {
4666
+ let t = Oo(e[$.value]);
4667
+ return {
4668
+ type: "2",
4669
+ orgId: t.orgId,
4670
+ userId: t.userId,
4671
+ userName: e[$.label]
4672
+ };
4673
+ })));
4674
+ },
4675
+ async recentlyUsed({ search: e, current: t }) {
4676
+ return {
4677
+ total: 20,
4678
+ data: (await n(ve({
4679
+ type: "2",
4680
+ userName: e,
4681
+ currentPage: t,
4682
+ pageSize: 20,
4683
+ showIsCollect: !0
4684
+ }))).data?.records?.map((e) => ({
4685
+ ...e,
4686
+ [$.value]: Do(e.orgId, e.userId),
4687
+ [$.label]: e.userName,
4688
+ [$.info]: e.fullOrgName
4689
+ })) ?? []
4690
+ };
4691
+ },
4692
+ async favorites({ search: e, current: t, pageSize: r }) {
4693
+ let i = await n(he({
4694
+ type: "2",
4695
+ userName: e,
4696
+ currentPage: t,
4697
+ pageSize: r
4698
+ }));
4699
+ return {
4700
+ total: i.data?.total ?? 0,
4701
+ data: i.data?.records?.map((e) => ({
4702
+ ...e,
4703
+ [$.value]: Do(e.orgId, e.userId),
4704
+ [$.label]: e.userName,
4705
+ [$.info]: e.fullOrgName
4706
+ })) ?? []
4707
+ };
4708
+ },
4709
+ async favoriteToggle({ favorite: e, record: t }) {
4710
+ let r = e ? pe : ge, i = Oo(t?.[$.value]);
4711
+ (await n(r({
4712
+ type: "2",
4713
+ orgId: i.orgId,
4714
+ userId: i.userId
4715
+ }))).success && _t.success(e ? "收藏成功" : "取消收藏成功");
4716
+ },
4717
+ async groups({ search: e, current: t, pageSize: r }) {
4718
+ let i = await n(de({
4719
+ type: "2",
4720
+ name: e,
4721
+ currentPage: t,
4722
+ pageSize: r
4723
+ }));
4724
+ return {
4725
+ total: i.data?.total ?? 0,
4726
+ data: i.data?.records?.map((e) => ({
4727
+ ...e,
4728
+ [$.value]: e.id,
4729
+ [$.label]: e.name
4730
+ })) ?? []
4731
+ };
4732
+ },
4733
+ async groupData({ node: e }) {
4734
+ return (await n(fe({
4735
+ id: e?.id,
4736
+ showIsCollect: !0
4737
+ }))).data?.pubGroupMemberList?.map((e) => ({
4738
+ ...e,
4739
+ [$.value]: Do(e.orgId, e.userId),
4740
+ [$.label]: e.userName,
4741
+ [$.info]: e.fullOrgName,
4742
+ isLeaf: !0
4743
+ })).filter(t) ?? [];
4744
+ },
4745
+ async userList({ orgId: e, search: r, current: i, pageSize: a }) {
4746
+ let o = await n(ye({
4747
+ orgId: e,
4748
+ realName: r,
4749
+ currentPage: i,
4750
+ pageSize: a,
4751
+ enable: !0,
4752
+ showIsCollect: !0
4753
+ }));
4754
+ return {
4755
+ total: o.data?.total ?? 0,
4756
+ data: o.data?.records?.map((e) => ({
4757
+ ...e,
4758
+ [$.value]: Do(e.orgId, e.userId),
4759
+ [$.label]: e.userName,
4760
+ [$.info]: e.fullOrgName
4761
+ })).filter(t) ?? []
4762
+ };
4763
+ }
4764
+ };
4765
+ }
4766
+ //#endregion
4767
+ //#region src/components/OrgUserSelector/OrgSelector.vue
4768
+ var Mo = /* @__PURE__ */ A({
4769
+ name: "OrgSelector",
4770
+ __name: "OrgSelector",
4771
+ props: /* @__PURE__ */ Ie({
4772
+ title: { default: "选择组织" },
4773
+ multiple: {
4774
+ type: Boolean,
4775
+ default: !1
4776
+ },
4777
+ auth: {},
4778
+ apis: { default: () => ({}) },
4779
+ tabs: { default: () => [
4780
+ {
4781
+ value: "RecentlyUsed",
4782
+ label: "最近常用"
4783
+ },
4784
+ {
4785
+ value: "Favorites",
4786
+ label: "收藏"
4787
+ },
4788
+ {
4789
+ value: "OrgTree",
4790
+ label: "全部"
4791
+ },
4792
+ {
4793
+ value: "Groups",
4794
+ label: "群组"
4795
+ }
4796
+ ] },
4797
+ disabledData: {
4798
+ type: Function,
4799
+ default: () => !1
4800
+ },
4801
+ filter: {
4802
+ type: Function,
4803
+ default: () => !0
4804
+ },
4805
+ onSubmit: {}
4806
+ }, {
4807
+ open: { type: Boolean },
4808
+ openModifiers: {},
4809
+ modelValue: { default: [] },
4810
+ modelModifiers: {}
4811
+ }),
4812
+ emits: ["update:open", "update:modelValue"],
4813
+ setup(e, { expose: t }) {
4814
+ let n = e, r = Ye(), i = {
4815
+ ...Ao({
4816
+ auth: n.auth,
4817
+ filter: n.filter
4818
+ }),
4819
+ ...n.apis
4820
+ }, a = Ze(e, "open"), o = Ze(e, "modelValue"), s = F([]), c = ue(a), { onFieldChange: l } = lt.useInjectFormItemContext();
4821
+ function u() {
4822
+ c(!0);
4823
+ }
4824
+ U(a, async (e) => {
4825
+ if (e) {
4826
+ if (!o.value.length) {
4827
+ s.value = [];
4828
+ return;
4829
+ }
4830
+ try {
4831
+ s.value = await i?.getSelectedData?.(o.value) ?? o.value;
4832
+ } catch {
4833
+ s.value = o.value;
4834
+ }
4835
+ }
4836
+ }, { immediate: !0 });
4837
+ function d() {
4838
+ o.value = s.value, n.onSubmit?.(s.value), l(), c(!1), i?.addRecentlyUsed?.(s.value);
4839
+ }
4840
+ return t({ open: u }), (t, n) => (P(), D("div", null, [t.$slots.trigger ? (P(), D("span", {
4841
+ key: 0,
4842
+ onClick: n[0] ||= (e) => u()
4843
+ }, [I(t.$slots, "trigger")])) : E("", !0), k(H(pt), Le(H(r), {
4844
+ open: a.value,
4845
+ "onUpdate:open": n[2] ||= (e) => a.value = e,
4846
+ title: e.title,
4847
+ width: 760,
4848
+ "z-index": 1001,
4849
+ "ok-text": "确认",
4850
+ "cancel-text": "取消",
4851
+ onOk: n[3] ||= (e) => d()
4852
+ }), {
4853
+ default: W(() => [k(H(Si), {
4854
+ apis: i,
4855
+ "field-names": H(Q)
4856
+ }, {
4857
+ default: W(() => [k(H(Eo), {
4858
+ modelValue: H(s),
4859
+ "onUpdate:modelValue": n[1] ||= (e) => Pe(s) ? s.value = e : null,
4860
+ "default-tab": "OrgTree",
4861
+ tabs: e.tabs,
4862
+ multiple: e.multiple,
4863
+ "disabled-data": e.disabledData
4864
+ }, null, 8, [
4865
+ "modelValue",
4866
+ "tabs",
4867
+ "multiple",
4868
+ "disabled-data"
4869
+ ])]),
4870
+ _: 1
4871
+ }, 8, ["field-names"])]),
4872
+ _: 1
4873
+ }, 16, ["open", "title"])]));
4874
+ }
4875
+ });
4876
+ //#endregion
4877
+ export { jo as a, Si as c, At as d, Ao as i, Ci as l, Q as n, $ as o, Oo as r, Eo as s, Mo as t, Ht as u };