@fde-desktop/fde-core 0.4.10 → 0.4.13

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 (221) hide show
  1. package/dist/AppEmptyState-Boej96TB.js +49 -0
  2. package/dist/AppEmptyState-CLc00OOG.cjs +1 -0
  3. package/dist/AppIcon-C8vHUVcb.cjs +1 -0
  4. package/dist/AppIcon-mtEoyzOb.js +22 -0
  5. package/dist/AppMenuBar-CAlkNHjj.cjs +1 -0
  6. package/dist/AppMenuBar-DmSfQRXU.js +197 -0
  7. package/dist/CalendarApp-DOmjWbpl.js +10 -0
  8. package/dist/CalendarApp-Z0bCCYsK.cjs +1 -0
  9. package/dist/ColorPicker-CQRRwY-y.cjs +1 -0
  10. package/dist/ColorPicker-WCeD3Wjf.js +35 -0
  11. package/dist/CreateItemApp-BkFFFdX1.cjs +1 -0
  12. package/dist/CreateItemApp-DR8Y4bwo.js +202 -0
  13. package/dist/DeviceInfoApp-BXQ9uOwF.cjs +1 -0
  14. package/dist/DeviceInfoApp-I63mJRWy.js +195 -0
  15. package/dist/DownloadProgress-CkTGTf0z.cjs +1 -0
  16. package/dist/DownloadProgress-DnVASsv5.js +39 -0
  17. package/dist/FilePickerApp-By6-vbag.cjs +1 -0
  18. package/dist/FilePickerApp-ClHuhm6Z.js +390 -0
  19. package/dist/FilesApp-BRK2OqkQ.cjs +1 -0
  20. package/dist/FilesApp-BuoFP_KA.js +212 -0
  21. package/dist/ImageViewerApp-B1niWF75.cjs +1 -0
  22. package/dist/{ImageViewerApp-CWiP6zx-.js → ImageViewerApp-iojtyFEf.js} +18 -17
  23. package/dist/{ImageViewerMenuBar-BULkh_Ku.js → ImageViewerMenuBar-BIsUokxV.js} +15 -14
  24. package/dist/ImageViewerMenuBar-BgzgSF3v.cjs +1 -0
  25. package/dist/MenuEditApp-BHptoJbz.cjs +1 -0
  26. package/dist/MenuEditApp-CJUbJaqh.js +492 -0
  27. package/dist/MenuEditMenuBar-CCOSPAUe.cjs +1 -0
  28. package/dist/{MenuEditMenuBar-B94z4Umw.js → MenuEditMenuBar-DnCL-kaZ.js} +13 -12
  29. package/dist/NotesApp-BmQIBtJ2.cjs +1 -0
  30. package/dist/NotesApp-DJ2dGt4-.js +364 -0
  31. package/dist/NotesMenuBar-BzojwMtH.cjs +1 -0
  32. package/dist/{NotesMenuBar-BB4NkKGf.js → NotesMenuBar-DILZTjnT.js} +10 -9
  33. package/dist/PdfApp-IjY_GtnW.js +39 -0
  34. package/dist/PdfApp-krW8UI97.cjs +1 -0
  35. package/dist/PdfMenuBar-Bd5MTZcZ.js +39 -0
  36. package/dist/PdfMenuBar-DWD0Qa3F.cjs +1 -0
  37. package/dist/SettingsApp-BE22l5UP.cjs +1 -0
  38. package/dist/SettingsApp-BTFtTFY_.js +1228 -0
  39. package/dist/SettingsMenuBar-CZE2evG2.cjs +1 -0
  40. package/dist/SettingsMenuBar-ktC0viTd.js +42 -0
  41. package/dist/UploaderApp-Bboc4KZ1.js +263 -0
  42. package/dist/UploaderApp-Dr1mF7oj.cjs +1 -0
  43. package/dist/{VscIcon-DueRJVTe.js → VscIcon-AEENjKOE.js} +1 -1
  44. package/dist/VscIcon-BYb_Soyy.cjs +1 -0
  45. package/dist/buildBreadcrumbs-Ccd8i11b.cjs +1 -0
  46. package/dist/buildBreadcrumbs-noWhu8os.js +45 -0
  47. package/dist/{desktopStore-B0R1-BeA.js → desktopStore-8cSZlj7s.js} +342 -549
  48. package/dist/desktopStore-C1jR6Fdb.cjs +1 -0
  49. package/dist/{imageViewerStore-CJMRXaQh.js → imageViewerStore-COrD02Zu.js} +1 -1
  50. package/dist/imageViewerStore-Dfylg59V.cjs +1 -0
  51. package/dist/index.cjs +1 -53
  52. package/dist/index.css +1 -1
  53. package/dist/index.d.ts +16 -6
  54. package/dist/index.js +3033 -7513
  55. package/dist/menuEditStore-CYwtfD6H.cjs +1 -0
  56. package/dist/{menuEditStore-C8S_EedM.js → menuEditStore-CxsgLiQu.js} +1 -1
  57. package/dist/notesStore-CrWTO6oB.cjs +1 -0
  58. package/dist/{notesStore-DKRgTTFn.js → notesStore-Dgah46U5.js} +1 -1
  59. package/dist/rolldown-runtime-CAFD8bLK.js +11 -0
  60. package/dist/{settingsAppStore-KOeWRO6h.js → settingsAppStore-DHZhi6Rl.js} +1 -1
  61. package/dist/settingsAppStore-DuYZNeFf.cjs +1 -0
  62. package/dist/useAdaptiveDimensions-3Lz4X0Tc.cjs +1 -0
  63. package/dist/{useAdaptiveDimensions-CunsU0mn.js → useAdaptiveDimensions-DxNLJ7R5.js} +1 -1
  64. package/dist/{useCloseInterceptor-CuKAAFnj.js → useCloseInterceptor-CIxhOZx1.js} +12 -12
  65. package/dist/useCloseInterceptor-CdX-09Ib.cjs +1 -0
  66. package/dist/useDynamicIcon-CK6SjEv5.cjs +1 -0
  67. package/dist/{useDynamicIcon-GJg3vWsJ.js → useDynamicIcon-_wGeWu-b.js} +1 -1
  68. package/dist/useOpenApp-ChDhsL9h.cjs +1 -0
  69. package/dist/{useOpenApp-BVpSfNrG.js → useOpenApp-uguTLkyl.js} +51 -67
  70. package/dist/{useResolvedUrl-DFKXq598.js → useResolvedUrl-B6x4xy0x.js} +1 -2
  71. package/dist/useResolvedUrl-Bb39DpVy.cjs +1 -0
  72. package/package.json +3 -4
  73. package/dist/AccordionChevron-CJXAq5o5.js +0 -26
  74. package/dist/AccordionChevron-DBXp38Lm.cjs +0 -1
  75. package/dist/ActionIcon-C_SfdBfx.cjs +0 -1
  76. package/dist/ActionIcon-CtVbYlGY.js +0 -145
  77. package/dist/AppEmptyState-BTujnL_b.js +0 -4962
  78. package/dist/AppEmptyState-Dc4GaDfu.cjs +0 -1
  79. package/dist/AppIcon--qzR4sgf.cjs +0 -1
  80. package/dist/AppIcon-DCDuaU-t.js +0 -80
  81. package/dist/AppMenuBar-BiHbNg9V.cjs +0 -9
  82. package/dist/AppMenuBar-CHJy8OF0.js +0 -2639
  83. package/dist/Box-DRm8EabO.js +0 -1593
  84. package/dist/Box-D_64wv6n.cjs +0 -1
  85. package/dist/Button-D0FXpkur.cjs +0 -1
  86. package/dist/Button-k7SxX1Xl.js +0 -178
  87. package/dist/CalendarApp-C1HvuJoa.cjs +0 -1
  88. package/dist/CalendarApp-DBEQqsS_.js +0 -1721
  89. package/dist/Center-CyryG5zn.js +0 -25
  90. package/dist/Center-T4No_FAa.cjs +0 -1
  91. package/dist/CheckIcon-C3WjIR2i.js +0 -25
  92. package/dist/CheckIcon-CBMLR6Gc.cjs +0 -1
  93. package/dist/CodeServerApp-B3l5QPuG.cjs +0 -1
  94. package/dist/CodeServerApp-BpeALSaX.js +0 -2
  95. package/dist/CodeServerApp-CRjCngFv.cjs +0 -1
  96. package/dist/CodeServerApp-DY94cy1a.js +0 -149
  97. package/dist/ColorPicker-BL4UbKCV.cjs +0 -1
  98. package/dist/ColorPicker-DvRR-wlQ.js +0 -997
  99. package/dist/CreateItemApp-BU9wmjKM.cjs +0 -1
  100. package/dist/CreateItemApp-CtdH1K1g.js +0 -400
  101. package/dist/CreateItemApp-t9F-a6wD.cjs +0 -1
  102. package/dist/DeviceInfoApp-C306YvtZ.js +0 -223
  103. package/dist/DeviceInfoApp-Cdju_LIB.cjs +0 -1
  104. package/dist/DeviceInfoApp-CyB01v4D.cjs +0 -1
  105. package/dist/DownloadProgress-IRw1dzLX.cjs +0 -1
  106. package/dist/DownloadProgress-hdupSUBT.js +0 -174
  107. package/dist/FileIcon-BCpGMI5U.js +0 -88
  108. package/dist/FileIcon-BCrsxmtt.cjs +0 -1
  109. package/dist/FilePickerApp-DMGuvahM.js +0 -409
  110. package/dist/FilePickerApp-Eu0cr2Cm.cjs +0 -1
  111. package/dist/FilesApp-BQFVHkEn.js +0 -225
  112. package/dist/FilesApp-BZ_dzZnF.cjs +0 -1
  113. package/dist/FilesApp-SIWXFPXt.cjs +0 -1
  114. package/dist/Group-BzwlMeob.js +0 -48
  115. package/dist/Group-DhwePB84.cjs +0 -1
  116. package/dist/ImageViewerApp-BOz59TGc.cjs +0 -1
  117. package/dist/ImageViewerApp-BeqY6voE.cjs +0 -1
  118. package/dist/ImageViewerApp-DBAfJPSo.js +0 -2
  119. package/dist/ImageViewerMenuBar-Cb0Nr5-M.js +0 -2
  120. package/dist/ImageViewerMenuBar-CoEp0RxK.cjs +0 -1
  121. package/dist/ImageViewerMenuBar-zOkJtqKo.cjs +0 -1
  122. package/dist/MenuEditApp-BoKtj2GH.js +0 -2
  123. package/dist/MenuEditApp-D21sEp86.js +0 -2615
  124. package/dist/MenuEditApp-k3cPfTG9.cjs +0 -1
  125. package/dist/MenuEditApp-sz9GlLVH.cjs +0 -5
  126. package/dist/MenuEditMenuBar-6QxlIDpl.cjs +0 -1
  127. package/dist/MenuEditMenuBar-Bv6R42lf.js +0 -2
  128. package/dist/MenuEditMenuBar-CBsmH_-T.cjs +0 -1
  129. package/dist/NotesApp-BtR55Hva.cjs +0 -207
  130. package/dist/NotesApp-C59exz_9.js +0 -16154
  131. package/dist/NotesApp-D47I5LS_.js +0 -2
  132. package/dist/NotesApp-lOwsi2sg.cjs +0 -1
  133. package/dist/NotesMenuBar-BZITC74y.cjs +0 -1
  134. package/dist/NotesMenuBar-Bp0sPqyR.cjs +0 -1
  135. package/dist/NotesMenuBar-xlfODmMA.js +0 -2
  136. package/dist/Paper-DtUYKmYn.js +0 -30
  137. package/dist/Paper-DwCpwWwH.cjs +0 -1
  138. package/dist/PdfApp-1XbFGfoY.cjs +0 -1
  139. package/dist/PdfApp-BhIoJWeK.cjs +0 -1
  140. package/dist/PdfApp-C5Rt1Zaw.js +0 -2
  141. package/dist/PdfApp-C8Hwxxqh.js +0 -38
  142. package/dist/PdfMenuBar-BA9rKuMP.cjs +0 -1
  143. package/dist/PdfMenuBar-JXHqwxhZ.cjs +0 -1
  144. package/dist/PdfMenuBar-R0fu7oYF.js +0 -2
  145. package/dist/PdfMenuBar-sd-9Vk3h.js +0 -38
  146. package/dist/SettingsApp-7EhpjzUE.cjs +0 -1
  147. package/dist/SettingsApp-ByiPAj1I.cjs +0 -1
  148. package/dist/SettingsApp-d6fmBHxR.js +0 -1829
  149. package/dist/SettingsApp-qKJmC0lj.js +0 -2
  150. package/dist/SettingsMenuBar-BPwv8JQK.js +0 -41
  151. package/dist/SettingsMenuBar-D8R7hOik.js +0 -2
  152. package/dist/SettingsMenuBar-DDrjZLmg.cjs +0 -1
  153. package/dist/SettingsMenuBar-DQjUa8g1.cjs +0 -1
  154. package/dist/Slider-BNO-vDFn.js +0 -1175
  155. package/dist/Slider-Bg_EIBg6.cjs +0 -1
  156. package/dist/Stack-BOaJgV3N.cjs +0 -1
  157. package/dist/Stack-CuDEaP7e.js +0 -34
  158. package/dist/StorybookApp-Bkr-7mXp.cjs +0 -1
  159. package/dist/StorybookApp-WYninkJo.js +0 -10
  160. package/dist/TerminalApp-8XbsKAWa.js +0 -10041
  161. package/dist/TerminalApp-Bq2e7QQu.cjs +0 -1
  162. package/dist/TerminalApp-CVu3Axc9.js +0 -2
  163. package/dist/TerminalApp-b7_d0jRO.cjs +0 -36
  164. package/dist/TerminalMenuBar-Cb8x9laS.js +0 -2
  165. package/dist/TerminalMenuBar-De-FH5AE.cjs +0 -1
  166. package/dist/TerminalMenuBar-iKLydNda.js +0 -112
  167. package/dist/TerminalMenuBar-yOaWd-hn.cjs +0 -1
  168. package/dist/TextInput-C3qfxxWI.js +0 -980
  169. package/dist/TextInput-DcYns3hz.cjs +0 -1
  170. package/dist/Tooltip-CAOO-qdx.js +0 -3185
  171. package/dist/Tooltip-DDh_x-CB.cjs +0 -1
  172. package/dist/UnstyledButton-CI3kyRck.js +0 -25
  173. package/dist/UnstyledButton-Cl5RuIid.cjs +0 -1
  174. package/dist/UploaderApp-C76ydsd8.js +0 -487
  175. package/dist/UploaderApp-CHACW8Yr.js +0 -2
  176. package/dist/UploaderApp-Q_a3mBik.cjs +0 -1
  177. package/dist/UploaderApp-htj59ppo.cjs +0 -1
  178. package/dist/VscIcon-CxEmqD80.cjs +0 -1
  179. package/dist/chunk-BQCxAhux.js +0 -23
  180. package/dist/chunk-CiTBaPhY.cjs +0 -1
  181. package/dist/create-safe-context-95P-Bfg3.cjs +0 -1
  182. package/dist/create-safe-context-XT2cxc14.js +0 -12
  183. package/dist/desktopStore-Cox-Og1z.cjs +0 -1
  184. package/dist/fc-DejOsQyD.cjs +0 -1
  185. package/dist/fc-kd8WzIER.js +0 -20536
  186. package/dist/fc-xJ_v2ayq.cjs +0 -184
  187. package/dist/fi-BahYsbim.js +0 -9993
  188. package/dist/fi-BkhyTcZo.cjs +0 -1
  189. package/dist/getRuntime-BLXyQZBB.cjs +0 -1
  190. package/dist/getRuntime-CCRXVzJH.js +0 -63
  191. package/dist/iconBase-B4UCuSvv.cjs +0 -1
  192. package/dist/iconBase-D7iPes7B.js +0 -108
  193. package/dist/imageViewerStore-CH1qW6md.cjs +0 -1
  194. package/dist/is-element-BocgicRg.cjs +0 -1
  195. package/dist/is-element-Bu_JY8Qy.js +0 -7
  196. package/dist/menuEditStore-CU7IAg3L.cjs +0 -1
  197. package/dist/notesStore-zKmChTfF.cjs +0 -1
  198. package/dist/react-DYmzHD0X.js +0 -27
  199. package/dist/react-Dldg32sN.cjs +0 -1
  200. package/dist/settingsAppStore-BrlImdAH.cjs +0 -1
  201. package/dist/terminalStore-LWWjCvCe.js +0 -30
  202. package/dist/terminalStore-fZe5t7Ty.cjs +0 -1
  203. package/dist/use-merged-ref-BI9n1hUK.cjs +0 -1
  204. package/dist/use-merged-ref-BT8_u6vW.js +0 -25
  205. package/dist/use-resolved-styles-api-AVDygMKo.cjs +0 -1
  206. package/dist/use-resolved-styles-api-pEOi2wiK.js +0 -21
  207. package/dist/use-uncontrolled-A4hm9ATM.js +0 -23
  208. package/dist/use-uncontrolled-BPrfGv0W.cjs +0 -1
  209. package/dist/useAdaptiveDimensions-Btp0m5Pm.cjs +0 -1
  210. package/dist/useCloseInterceptor-a_6Lcuqj.cjs +0 -1
  211. package/dist/useDynamicIcon-SytdL1Tu.cjs +0 -1
  212. package/dist/useOpenApp-Br0jo4-y.cjs +0 -1
  213. package/dist/useResolvedUrl-Be5ZlCX7.cjs +0 -1
  214. package/dist/useTranslation-DMRGdqZi.js +0 -279
  215. package/dist/useTranslation-D_O7S4RJ.cjs +0 -1
  216. package/dist/vsc-Ciibqbxo.cjs +0 -1
  217. package/dist/vsc-DGKSpOAR.js +0 -9574
  218. /package/dist/{Colors-BxX4G8kX.cjs → Colors-CNJbU7oq.cjs} +0 -0
  219. /package/dist/{Colors-hca6raEG.js → Colors-CuABn2W4.js} +0 -0
  220. /package/dist/{useMenuBarUtils-ChmpZjwu.js → useMenuBarUtils-ChAfI7OA.js} +0 -0
  221. /package/dist/{useMenuBarUtils-Bp5PiztD.cjs → useMenuBarUtils-DAap0ukp.cjs} +0 -0
@@ -1,2639 +0,0 @@
1
- import { D as e, L as t, N as n, O as r, S as i, c as a, d as o, i as s, j as c, k as l, l as u, n as d, o as f, r as p, t as m, x as h } from "./Box-DRm8EabO.js";
2
- import { t as g } from "./is-element-Bu_JY8Qy.js";
3
- import { t as _ } from "./create-safe-context-XT2cxc14.js";
4
- import { l as v, m as y, n as b, s as x, t as S, u as C } from "./Tooltip-CAOO-qdx.js";
5
- import { n as w, t as T } from "./use-uncontrolled-A4hm9ATM.js";
6
- import { i as E, n as D, t as O, u as k } from "./TextInput-C3qfxxWI.js";
7
- import { a as A, i as j, n as M, r as ee, t as N } from "./Slider-BNO-vDFn.js";
8
- import { r as P, t as te } from "./use-merged-ref-BT8_u6vW.js";
9
- import { t as ne } from "./use-resolved-styles-api-pEOi2wiK.js";
10
- import { t as re } from "./UnstyledButton-CI3kyRck.js";
11
- import { t as F } from "./AccordionChevron-CJXAq5o5.js";
12
- import { t as ie } from "./CheckIcon-C3WjIR2i.js";
13
- import { i as ae } from "./useDynamicIcon-GJg3vWsJ.js";
14
- import I, { cloneElement as oe, createContext as se, use as ce, useCallback as L, useEffect as R, useId as le, useLayoutEffect as ue, useMemo as de, useRef as z, useState as fe } from "react";
15
- import { Fragment as pe, jsx as B, jsxs as V } from "react/jsx-runtime";
16
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/core/utils/find-element-ancestor/find-element-ancestor.mjs
17
- function me(e, t) {
18
- let n = e;
19
- for (; (n = n.parentElement) && !n.matches(t););
20
- return n;
21
- }
22
- //#endregion
23
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/core/utils/create-scoped-keydown-handler/create-scoped-keydown-handler.mjs
24
- function he(e, t, n) {
25
- for (let n = e - 1; n >= 0; --n) if (!t[n].disabled) return n;
26
- if (n) {
27
- for (let e = t.length - 1; e > -1; --e) if (!t[e].disabled) return e;
28
- }
29
- return e;
30
- }
31
- function ge(e, t, n) {
32
- for (let n = e + 1; n < t.length; n += 1) if (!t[n].disabled) return n;
33
- if (n) {
34
- for (let e = 0; e < t.length; e += 1) if (!t[e].disabled) return e;
35
- }
36
- return e;
37
- }
38
- function _e(e, t, n) {
39
- return me(e, n) === me(t, n);
40
- }
41
- function ve({ parentSelector: e, siblingSelector: t, onKeyDown: n, loop: r = !0, activateOnFocus: i = !1, dir: a = "rtl", orientation: o }) {
42
- return (s) => {
43
- n?.(s);
44
- let c = Array.from(me(s.currentTarget, e)?.querySelectorAll(t) || []).filter((t) => _e(s.currentTarget, t, e)), l = c.findIndex((e) => s.currentTarget === e), u = ge(l, c, r), d = he(l, c, r), f = a === "rtl" ? d : u, p = a === "rtl" ? u : d;
45
- switch (s.key) {
46
- case "ArrowRight":
47
- o === "horizontal" && (s.stopPropagation(), s.preventDefault(), c[f].focus(), i && c[f].click());
48
- break;
49
- case "ArrowLeft":
50
- o === "horizontal" && (s.stopPropagation(), s.preventDefault(), c[p].focus(), i && c[p].click());
51
- break;
52
- case "ArrowUp":
53
- o === "vertical" && (s.stopPropagation(), s.preventDefault(), c[d].focus(), i && c[d].click());
54
- break;
55
- case "ArrowDown":
56
- o === "vertical" && (s.stopPropagation(), s.preventDefault(), c[u].focus(), i && c[u].click());
57
- break;
58
- case "Home":
59
- s.stopPropagation(), s.preventDefault(), !c[0].disabled && c[0].focus();
60
- break;
61
- case "End": {
62
- s.stopPropagation(), s.preventDefault();
63
- let e = c.length - 1;
64
- !c[e].disabled && c[e].focus();
65
- break;
66
- }
67
- }
68
- };
69
- }
70
- //#endregion
71
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/core/utils/create-event-handler/create-event-handler.mjs
72
- function H(e, t) {
73
- return (n) => {
74
- e?.(n), t?.(n);
75
- };
76
- }
77
- //#endregion
78
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/core/utils/get-context-item-index/get-context-item-index.mjs
79
- function ye(e, t, n) {
80
- return n ? Array.from(me(n, t)?.querySelectorAll(e) || []).findIndex((e) => e === n) : null;
81
- }
82
- //#endregion
83
- //#region ../../node_modules/.bun/@mantine+hooks@9.0.0+b1ab299f0a400331/node_modules/@mantine/hooks/esm/use-disclosure/use-disclosure.mjs
84
- function be(e = !1, t = {}) {
85
- let [n, r] = fe(e), i = L(() => {
86
- r((e) => e || (t.onOpen?.(), !0));
87
- }, [t.onOpen]), a = L(() => {
88
- r((e) => e && (t.onClose?.(), !1));
89
- }, [t.onClose]);
90
- return [n, {
91
- open: i,
92
- close: a,
93
- toggle: L(() => {
94
- n ? a() : i();
95
- }, [
96
- a,
97
- i,
98
- n
99
- ]),
100
- set: r
101
- }];
102
- }
103
- //#endregion
104
- //#region ../../node_modules/.bun/@mantine+hooks@9.0.0+b1ab299f0a400331/node_modules/@mantine/hooks/esm/use-previous/use-previous.mjs
105
- function xe(e) {
106
- let t = z(void 0);
107
- return R(() => {
108
- t.current = e;
109
- }, [e]), t.current;
110
- }
111
- //#endregion
112
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/core/utils/find-element-in-shadow-dom/find-element-in-shadow-dom.mjs
113
- function U(e, t = document) {
114
- let n = t.querySelector(e);
115
- if (n) return n;
116
- let r = t.querySelectorAll("*");
117
- for (let t = 0; t < r.length; t += 1) {
118
- let n = r[t];
119
- if (n.shadowRoot) {
120
- let t = U(e, n.shadowRoot);
121
- if (t) return t;
122
- }
123
- }
124
- return null;
125
- }
126
- function W(e, t = document) {
127
- let n = [], r = t.querySelectorAll(e);
128
- n.push(...Array.from(r));
129
- let i = t.querySelectorAll("*");
130
- for (let t = 0; t < i.length; t += 1) {
131
- let r = i[t];
132
- if (r.shadowRoot) {
133
- let t = W(e, r.shadowRoot);
134
- n.push(...t);
135
- }
136
- }
137
- return n;
138
- }
139
- function G(e) {
140
- if (!e) return document;
141
- let t = e.getRootNode();
142
- return t instanceof ShadowRoot || t instanceof Document ? t : document;
143
- }
144
- //#endregion
145
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/utils/Floating/use-delayed-hover.mjs
146
- function Se({ open: e, close: t, openDelay: n, closeDelay: r }) {
147
- let i = z(-1), a = z(-1), o = () => {
148
- window.clearTimeout(i.current), window.clearTimeout(a.current);
149
- };
150
- return R(() => o, []), {
151
- openDropdown: () => {
152
- o(), n === 0 || n === void 0 ? e() : i.current = window.setTimeout(e, n);
153
- },
154
- closeDropdown: () => {
155
- o(), r === 0 || r === void 0 ? t() : a.current = window.setTimeout(t, r);
156
- }
157
- };
158
- }
159
- //#endregion
160
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Combobox/get-parsed-combobox-data/get-parsed-combobox-data.mjs
161
- function Ce(e) {
162
- return typeof e == "string" ? {
163
- value: e,
164
- label: e
165
- } : typeof e == "object" && "value" in e && !("label" in e) ? {
166
- value: e.value,
167
- label: `${e.value}`,
168
- disabled: e.disabled
169
- } : typeof e == "object" && "group" in e ? {
170
- group: e.group,
171
- items: e.items.map((e) => Ce(e))
172
- } : typeof e == "number" || typeof e == "bigint" || typeof e == "boolean" ? {
173
- value: e,
174
- label: `${e}`
175
- } : e;
176
- }
177
- function we(e) {
178
- return e ? e.map((e) => Ce(e)) : [];
179
- }
180
- //#endregion
181
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Combobox/get-options-lockup/get-options-lockup.mjs
182
- function Te(e) {
183
- return e.reduce((e, t) => "group" in t ? {
184
- ...e,
185
- ...Te(t.items)
186
- } : (e[`${t.value}`] = t, e), {});
187
- }
188
- //#endregion
189
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Combobox/Combobox.module.mjs
190
- var K = {
191
- dropdown: "m_88b62a41",
192
- search: "m_985517d8",
193
- options: "m_b2821a6e",
194
- option: "m_92253aa5",
195
- empty: "m_2530cd1d",
196
- header: "m_858f94bd",
197
- footer: "m_82b967cb",
198
- group: "m_254f3e4f",
199
- groupLabel: "m_2bb2e9e5",
200
- chevron: "m_2943220b",
201
- optionsDropdownOption: "m_390b5f4",
202
- optionsDropdownCheckIcon: "m_8ee53fc2",
203
- optionsDropdownCheckPlaceholder: "m_a530ee0a"
204
- }, Ee = { error: null }, De = r((e, { size: t, color: r }) => ({ chevron: {
205
- "--combobox-chevron-size": n(t, "combobox-chevron-size"),
206
- "--combobox-chevron-color": r ? h(r, e) : void 0
207
- } })), q = p((e) => {
208
- let t = u("ComboboxChevron", Ee, e), { size: n, error: r, style: i, className: o, classNames: s, styles: c, unstyled: l, vars: d, attributes: f, mod: p, ...h } = t, g = a({
209
- name: "ComboboxChevron",
210
- classes: K,
211
- props: t,
212
- style: i,
213
- className: o,
214
- classNames: s,
215
- styles: c,
216
- unstyled: l,
217
- vars: d,
218
- varsResolver: De,
219
- attributes: f,
220
- rootSelector: "chevron"
221
- });
222
- return /* @__PURE__ */ B(m, {
223
- component: "svg",
224
- ...h,
225
- ...g("chevron"),
226
- size: n,
227
- viewBox: "0 0 15 15",
228
- fill: "none",
229
- xmlns: "http://www.w3.org/2000/svg",
230
- mod: [
231
- "combobox-chevron",
232
- { error: r },
233
- p
234
- ],
235
- children: /* @__PURE__ */ B("path", {
236
- d: "M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",
237
- fill: "currentColor",
238
- fillRule: "evenodd",
239
- clipRule: "evenodd"
240
- })
241
- });
242
- });
243
- q.classes = K, q.varsResolver = De, q.displayName = "@mantine/core/ComboboxChevron";
244
- //#endregion
245
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Combobox/Combobox.context.mjs
246
- var [J, Y] = _("Combobox component was not found in tree");
247
- //#endregion
248
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Combobox/ComboboxClearButton/ComboboxClearButton.mjs
249
- function Oe({ size: e, onMouseDown: t, onClick: n, onClear: r, ...i }) {
250
- return /* @__PURE__ */ B(E.ClearButton, {
251
- tabIndex: -1,
252
- "aria-hidden": !0,
253
- ...i,
254
- onMouseDown: (e) => {
255
- e.preventDefault(), t?.(e);
256
- },
257
- onClick: (e) => {
258
- r(), n?.(e);
259
- }
260
- });
261
- }
262
- Oe.displayName = "@mantine/core/ComboboxClearButton";
263
- //#endregion
264
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Combobox/ComboboxDropdown/ComboboxDropdown.mjs
265
- var ke = p((e) => {
266
- let { classNames: t, styles: n, className: r, style: i, hidden: a, ...o } = u("ComboboxDropdown", null, e), s = Y();
267
- return /* @__PURE__ */ B(b.Dropdown, {
268
- ...o,
269
- role: "presentation",
270
- "data-hidden": a || void 0,
271
- ...s.getStyles("dropdown", {
272
- className: r,
273
- style: i,
274
- classNames: t,
275
- styles: n
276
- })
277
- });
278
- });
279
- ke.classes = K, ke.displayName = "@mantine/core/ComboboxDropdown";
280
- //#endregion
281
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Combobox/ComboboxDropdownTarget/ComboboxDropdownTarget.mjs
282
- var Ae = { refProp: "ref" }, je = p((e) => {
283
- let { children: t, refProp: n, ref: r } = u("ComboboxDropdownTarget", Ae, e);
284
- if (Y(), !g(t)) throw Error("Combobox.DropdownTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");
285
- return /* @__PURE__ */ B(b.Target, {
286
- ref: r,
287
- refProp: n,
288
- children: t
289
- });
290
- });
291
- je.displayName = "@mantine/core/ComboboxDropdownTarget";
292
- //#endregion
293
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Combobox/ComboboxEmpty/ComboboxEmpty.mjs
294
- var Me = p((e) => {
295
- let { classNames: t, className: n, style: r, styles: i, vars: a, ...o } = u("ComboboxEmpty", null, e);
296
- return /* @__PURE__ */ B(m, {
297
- ...Y().getStyles("empty", {
298
- className: n,
299
- classNames: t,
300
- styles: i,
301
- style: r
302
- }),
303
- ...o
304
- });
305
- });
306
- Me.classes = K, Me.displayName = "@mantine/core/ComboboxEmpty";
307
- //#endregion
308
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Combobox/use-combobox-target-props/use-combobox-target-props.mjs
309
- function Ne({ onKeyDown: e, withKeyboardNavigation: t, withAriaAttributes: n, withExpandedAttribute: r, targetType: i, autoComplete: a }) {
310
- let o = Y(), [s, c] = fe(null), l = (n) => {
311
- if (e?.(n), !o.readOnly && t) {
312
- if (n.nativeEvent.isComposing) return;
313
- if (n.nativeEvent.code === "ArrowDown" && (n.preventDefault(), o.store.dropdownOpened ? c(o.store.selectNextOption()) : (o.store.openDropdown("keyboard"), c(o.store.selectActiveOption()), o.store.updateSelectedOptionIndex("selected", { scrollIntoView: !0 }))), n.nativeEvent.code === "ArrowUp" && (n.preventDefault(), o.store.dropdownOpened ? c(o.store.selectPreviousOption()) : (o.store.openDropdown("keyboard"), c(o.store.selectActiveOption()), o.store.updateSelectedOptionIndex("selected", { scrollIntoView: !0 }))), n.nativeEvent.code === "Enter" || n.nativeEvent.code === "NumpadEnter") {
314
- if (n.nativeEvent.keyCode === 229) return;
315
- let e = o.store.getSelectedOptionIndex();
316
- o.store.dropdownOpened && e !== -1 ? (n.preventDefault(), o.store.clickSelectedOption()) : i === "button" && (n.preventDefault(), o.store.openDropdown("keyboard"));
317
- }
318
- n.key === "Escape" && o.store.closeDropdown("keyboard"), n.nativeEvent.code === "Space" && i === "button" && (n.preventDefault(), o.store.toggleDropdown("keyboard"));
319
- }
320
- };
321
- return {
322
- ...n ? {
323
- ...r ? { role: "combobox" } : {},
324
- "aria-haspopup": "listbox",
325
- "aria-expanded": r ? !!(o.store.listId && o.store.dropdownOpened) : void 0,
326
- "aria-controls": o.store.dropdownOpened && o.store.listId ? o.store.listId : void 0,
327
- "aria-activedescendant": o.store.dropdownOpened && s || void 0,
328
- autoComplete: a,
329
- "data-expanded": o.store.dropdownOpened || void 0,
330
- "data-mantine-stop-propagation": o.store.dropdownOpened || void 0
331
- } : {},
332
- onKeyDown: l
333
- };
334
- }
335
- //#endregion
336
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Combobox/ComboboxEventsTarget/ComboboxEventsTarget.mjs
337
- var Pe = {
338
- refProp: "ref",
339
- targetType: "input",
340
- withKeyboardNavigation: !0,
341
- withAriaAttributes: !0,
342
- withExpandedAttribute: !1,
343
- autoComplete: "off"
344
- }, X = p((e) => {
345
- let { children: t, refProp: n, withKeyboardNavigation: r, withAriaAttributes: i, withExpandedAttribute: a, targetType: o, autoComplete: s, ref: c, ...l } = u("ComboboxEventsTarget", Pe, e), d = v(t);
346
- if (!d) throw Error("Combobox.EventsTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");
347
- let f = Y();
348
- return oe(d, {
349
- ...Ne({
350
- targetType: o,
351
- withAriaAttributes: i,
352
- withKeyboardNavigation: r,
353
- withExpandedAttribute: a,
354
- onKeyDown: d.props.onKeyDown,
355
- autoComplete: s
356
- }),
357
- ...l,
358
- [n]: P(c, f.store.targetRef, C(d))
359
- });
360
- });
361
- X.displayName = "@mantine/core/ComboboxEventsTarget";
362
- //#endregion
363
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Combobox/ComboboxFooter/ComboboxFooter.mjs
364
- var Fe = p((e) => {
365
- let { classNames: t, className: n, style: r, styles: i, vars: a, ...o } = u("ComboboxFooter", null, e);
366
- return /* @__PURE__ */ B(m, {
367
- ...Y().getStyles("footer", {
368
- className: n,
369
- classNames: t,
370
- style: r,
371
- styles: i
372
- }),
373
- ...o,
374
- onMouseDown: (e) => {
375
- e.preventDefault();
376
- }
377
- });
378
- });
379
- Fe.classes = K, Fe.displayName = "@mantine/core/ComboboxFooter";
380
- //#endregion
381
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Combobox/ComboboxGroup/ComboboxGroup.mjs
382
- var Ie = p((e) => {
383
- let { classNames: t, className: n, style: r, styles: i, vars: a, children: o, label: s, id: c, ...l } = u("ComboboxGroup", null, e), d = Y(), f = k(c);
384
- return /* @__PURE__ */ V(m, {
385
- role: "group",
386
- "aria-labelledby": s ? f : void 0,
387
- ...d.getStyles("group", {
388
- className: n,
389
- classNames: t,
390
- style: r,
391
- styles: i
392
- }),
393
- ...l,
394
- children: [s && /* @__PURE__ */ B("div", {
395
- id: f,
396
- ...d.getStyles("groupLabel", {
397
- classNames: t,
398
- styles: i
399
- }),
400
- children: s
401
- }), o]
402
- });
403
- });
404
- Ie.classes = K, Ie.displayName = "@mantine/core/ComboboxGroup";
405
- //#endregion
406
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Combobox/ComboboxHeader/ComboboxHeader.mjs
407
- var Le = p((e) => {
408
- let { classNames: t, className: n, style: r, styles: i, vars: a, ...o } = u("ComboboxHeader", null, e);
409
- return /* @__PURE__ */ B(m, {
410
- ...Y().getStyles("header", {
411
- className: n,
412
- classNames: t,
413
- style: r,
414
- styles: i
415
- }),
416
- ...o,
417
- onMouseDown: (e) => {
418
- e.preventDefault();
419
- }
420
- });
421
- });
422
- Le.classes = K, Le.displayName = "@mantine/core/ComboboxHeader";
423
- //#endregion
424
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Combobox/ComboboxHiddenInput/ComboboxHiddenInput.mjs
425
- function Re({ value: e, valuesDivider: t = ",", ...n }) {
426
- return /* @__PURE__ */ B("input", {
427
- type: "hidden",
428
- value: Array.isArray(e) ? e.join(t) : e ? `${e}` : "",
429
- ...n
430
- });
431
- }
432
- Re.displayName = "@mantine/core/ComboboxHiddenInput";
433
- //#endregion
434
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Combobox/ComboboxOption/ComboboxOption.mjs
435
- var ze = p((e) => {
436
- let t = u("ComboboxOption", null, e), { classNames: n, className: r, style: i, styles: a, vars: o, onClick: s, id: c, active: l, onMouseDown: d, onMouseOver: f, disabled: p, selected: h, mod: g, ..._ } = t, v = Y(), y = le(), b = c || y;
437
- return /* @__PURE__ */ B(m, {
438
- ...v.getStyles("option", {
439
- className: r,
440
- classNames: n,
441
- styles: a,
442
- style: i
443
- }),
444
- ..._,
445
- id: b,
446
- mod: [
447
- "combobox-option",
448
- {
449
- "combobox-active": l,
450
- "combobox-disabled": p,
451
- "combobox-selected": h
452
- },
453
- g
454
- ],
455
- role: "option",
456
- onClick: (e) => {
457
- p ? e.preventDefault() : (v.onOptionSubmit?.(t.value, t), s?.(e));
458
- },
459
- onMouseDown: (e) => {
460
- e.preventDefault(), d?.(e);
461
- },
462
- onMouseOver: (e) => {
463
- v.resetSelectionOnOptionHover && v.store.resetSelectedOption(), f?.(e);
464
- }
465
- });
466
- });
467
- ze.classes = K, ze.displayName = "@mantine/core/ComboboxOption";
468
- //#endregion
469
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Combobox/ComboboxOptions/ComboboxOptions.mjs
470
- var Be = p((e) => {
471
- let { classNames: t, className: n, style: r, styles: i, id: a, onMouseDown: o, labelledBy: s, ...c } = u("ComboboxOptions", null, e), l = Y(), d = k(a);
472
- return R(() => {
473
- l.store.setListId(d);
474
- }, [d]), /* @__PURE__ */ B(m, {
475
- ...l.getStyles("options", {
476
- className: n,
477
- style: r,
478
- classNames: t,
479
- styles: i
480
- }),
481
- ...c,
482
- id: d,
483
- role: "listbox",
484
- "aria-labelledby": s,
485
- onMouseDown: (e) => {
486
- e.preventDefault(), o?.(e);
487
- }
488
- });
489
- });
490
- Be.classes = K, Be.displayName = "@mantine/core/ComboboxOptions";
491
- //#endregion
492
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Combobox/ComboboxSearch/ComboboxSearch.mjs
493
- var Ve = {
494
- withAriaAttributes: !0,
495
- withKeyboardNavigation: !0
496
- }, He = p((e) => {
497
- let { classNames: t, styles: n, unstyled: r, vars: i, withAriaAttributes: a, onKeyDown: o, withKeyboardNavigation: s, size: c, ref: l, ...d } = u("ComboboxSearch", Ve, e), f = Y(), p = f.getStyles("search"), m = Ne({
498
- targetType: "input",
499
- withAriaAttributes: a,
500
- withKeyboardNavigation: s,
501
- withExpandedAttribute: !1,
502
- onKeyDown: o,
503
- autoComplete: "off"
504
- });
505
- return /* @__PURE__ */ B(E, {
506
- ref: P(l, f.store.searchRef),
507
- classNames: [{ input: p.className }, t],
508
- styles: [{ input: p.style }, n],
509
- size: c || f.size,
510
- ...m,
511
- ...d,
512
- __staticSelector: "Combobox"
513
- });
514
- });
515
- He.classes = K, He.displayName = "@mantine/core/ComboboxSearch";
516
- //#endregion
517
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Combobox/ComboboxTarget/ComboboxTarget.mjs
518
- var Ue = {
519
- refProp: "ref",
520
- targetType: "input",
521
- withKeyboardNavigation: !0,
522
- withAriaAttributes: !0,
523
- withExpandedAttribute: !1,
524
- autoComplete: "off"
525
- }, We = p((e) => {
526
- let { children: t, refProp: n, withKeyboardNavigation: r, withAriaAttributes: i, withExpandedAttribute: a, targetType: o, autoComplete: s, ref: c, ...l } = u("ComboboxTarget", Ue, e), d = v(t);
527
- if (!d) throw Error("Combobox.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");
528
- let f = Y(), p = oe(d, {
529
- ...Ne({
530
- targetType: o,
531
- withAriaAttributes: i,
532
- withKeyboardNavigation: r,
533
- withExpandedAttribute: a,
534
- onKeyDown: d.props.onKeyDown,
535
- autoComplete: s
536
- }),
537
- ...l
538
- });
539
- return /* @__PURE__ */ B(b.Target, {
540
- ref: P(c, f.store.targetRef),
541
- children: p
542
- });
543
- });
544
- We.displayName = "@mantine/core/ComboboxTarget";
545
- //#endregion
546
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Combobox/use-combobox/get-index/get-index.mjs
547
- function Ge(e, t, n) {
548
- for (let n = e - 1; n >= 0; --n) if (!t[n].hasAttribute("data-combobox-disabled")) return n;
549
- if (n) {
550
- for (let e = t.length - 1; e > -1; --e) if (!t[e].hasAttribute("data-combobox-disabled")) return e;
551
- }
552
- return e;
553
- }
554
- function Ke(e, t, n) {
555
- for (let n = e + 1; n < t.length; n += 1) if (!t[n].hasAttribute("data-combobox-disabled")) return n;
556
- if (n) {
557
- for (let e = 0; e < t.length; e += 1) if (!t[e].hasAttribute("data-combobox-disabled")) return e;
558
- }
559
- return e;
560
- }
561
- function qe(e) {
562
- for (let t = 0; t < e.length; t += 1) if (!e[t].hasAttribute("data-combobox-disabled")) return t;
563
- return -1;
564
- }
565
- //#endregion
566
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Combobox/use-combobox/use-combobox.mjs
567
- function Je({ defaultOpened: e, opened: t, onOpenedChange: n, onDropdownClose: r, onDropdownOpen: i, loop: a = !0, scrollBehavior: o = "instant" } = {}) {
568
- let [s, c] = T({
569
- value: t,
570
- defaultValue: e,
571
- finalValue: !1,
572
- onChange: n
573
- }), l = z(null), u = z(-1), d = z(null), f = z(null), p = z(-1), m = z(-1), h = z(-1), g = L((e = "unknown") => {
574
- s || (c(!0), i?.(e));
575
- }, [
576
- c,
577
- i,
578
- s
579
- ]), _ = L((e = "unknown") => {
580
- s && (c(!1), r?.(e));
581
- }, [
582
- c,
583
- r,
584
- s
585
- ]), v = L((e = "unknown") => {
586
- s ? _(e) : g(e);
587
- }, [
588
- _,
589
- g,
590
- s
591
- ]), y = L(() => {
592
- let e = G(f.current), t = U(`#${l.current} [data-combobox-selected]`, e);
593
- t?.removeAttribute("data-combobox-selected"), t?.removeAttribute("aria-selected");
594
- }, []), b = L((e) => {
595
- let t = G(f.current), n = U(`#${l.current}`, t), r = n ? W("[data-combobox-option]", n) : null;
596
- if (!r) return null;
597
- let i = e >= r.length ? 0 : e < 0 ? r.length - 1 : e;
598
- return u.current = i, r?.[i] && !r[i].hasAttribute("data-combobox-disabled") ? (y(), r[i].setAttribute("data-combobox-selected", "true"), r[i].setAttribute("aria-selected", "true"), r[i].scrollIntoView({
599
- block: "nearest",
600
- behavior: o
601
- }), r[i].id) : null;
602
- }, [o, y]), x = L(() => {
603
- let e = G(f.current), t = U(`#${l.current} [data-combobox-active]`, e);
604
- return b(t ? W(`#${l.current} [data-combobox-option]`, e).findIndex((e) => e === t) : 0);
605
- }, [b]), S = L(() => {
606
- let e = G(f.current), t = W(`#${l.current} [data-combobox-option]`, e);
607
- return b(Ke(u.current, t, a));
608
- }, [b, a]), C = L(() => {
609
- let e = G(f.current), t = W(`#${l.current} [data-combobox-option]`, e);
610
- return b(Ge(u.current, t, a));
611
- }, [b, a]), w = L(() => {
612
- let e = G(f.current);
613
- return b(qe(W(`#${l.current} [data-combobox-option]`, e)));
614
- }, [b]), E = L((e = "selected", t) => {
615
- if (typeof e == "number") {
616
- u.current = e;
617
- let n = G(f.current), r = W(`#${l.current} [data-combobox-option]`, n);
618
- t?.scrollIntoView && r[e]?.scrollIntoView({
619
- block: "nearest",
620
- behavior: o
621
- });
622
- return;
623
- }
624
- h.current = window.setTimeout(() => {
625
- let n = G(f.current), r = W(`#${l.current} [data-combobox-option]`, n), i = r.findIndex((t) => t.hasAttribute(`data-combobox-${e}`));
626
- u.current = i, t?.scrollIntoView && r[i]?.scrollIntoView({
627
- block: "nearest",
628
- behavior: o
629
- });
630
- }, 0);
631
- }, []), D = L(() => {
632
- u.current = -1, y();
633
- }, [y]), O = L(() => {
634
- let e = G(f.current);
635
- (W(`#${l.current} [data-combobox-option]`, e)?.[u.current])?.click();
636
- }, []), k = L((e) => {
637
- l.current = e;
638
- }, []), A = L(() => {
639
- p.current = window.setTimeout(() => d.current?.focus(), 0);
640
- }, []), j = L(() => {
641
- m.current = window.setTimeout(() => f.current?.focus(), 0);
642
- }, []), M = L(() => u.current, []);
643
- return R(() => () => {
644
- window.clearTimeout(p.current), window.clearTimeout(m.current), window.clearTimeout(h.current);
645
- }, []), {
646
- dropdownOpened: s,
647
- openDropdown: g,
648
- closeDropdown: _,
649
- toggleDropdown: v,
650
- selectedOptionIndex: u.current,
651
- getSelectedOptionIndex: M,
652
- selectOption: b,
653
- selectFirstOption: w,
654
- selectActiveOption: x,
655
- selectNextOption: S,
656
- selectPreviousOption: C,
657
- resetSelectedOption: D,
658
- updateSelectedOptionIndex: E,
659
- listId: l.current,
660
- setListId: k,
661
- clickSelectedOption: O,
662
- searchRef: d,
663
- focusSearchInput: A,
664
- targetRef: f,
665
- focusTarget: j
666
- };
667
- }
668
- //#endregion
669
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Combobox/Combobox.mjs
670
- var Ye = {
671
- keepMounted: !0,
672
- withinPortal: !0,
673
- resetSelectionOnOptionHover: !1,
674
- width: "target",
675
- transitionProps: {
676
- transition: "fade",
677
- duration: 0
678
- },
679
- size: "sm"
680
- }, Xe = r((e, { size: r, dropdownPadding: i }) => ({
681
- options: {
682
- "--combobox-option-fz": l(r),
683
- "--combobox-option-padding": n(r, "combobox-option-padding")
684
- },
685
- dropdown: {
686
- "--combobox-padding": i === void 0 ? void 0 : t(i),
687
- "--combobox-option-fz": l(r),
688
- "--combobox-option-padding": n(r, "combobox-option-padding")
689
- }
690
- })), Z = (e) => {
691
- let t = u("Combobox", Ye, e), { classNames: n, styles: r, unstyled: i, children: o, store: s, vars: c, onOptionSubmit: l, onClose: d, size: f, dropdownPadding: p, resetSelectionOnOptionHover: m, __staticSelector: h, readOnly: g, attributes: _, ...v } = t, y = Je(), x = s || y, S = a({
692
- name: h || "Combobox",
693
- classes: K,
694
- props: t,
695
- classNames: n,
696
- styles: r,
697
- unstyled: i,
698
- attributes: _,
699
- vars: c,
700
- varsResolver: Xe
701
- }), C = () => {
702
- d?.(), x.closeDropdown();
703
- };
704
- return /* @__PURE__ */ B(J, {
705
- value: {
706
- getStyles: S,
707
- store: x,
708
- onOptionSubmit: l,
709
- size: f,
710
- resetSelectionOnOptionHover: m,
711
- readOnly: g
712
- },
713
- children: /* @__PURE__ */ B(b, {
714
- opened: x.dropdownOpened,
715
- preventPositionChangeWhenVisible: !1,
716
- ...v,
717
- onChange: (e) => !e && C(),
718
- withRoles: !1,
719
- unstyled: i,
720
- children: o
721
- })
722
- });
723
- };
724
- Z.extend = (e) => e, Z.classes = K, Z.varsResolver = Xe, Z.displayName = "@mantine/core/Combobox", Z.Target = We, Z.Dropdown = ke, Z.Options = Be, Z.Option = ze, Z.Search = He, Z.Empty = Me, Z.Chevron = q, Z.Footer = Fe, Z.Header = Le, Z.EventsTarget = X, Z.DropdownTarget = je, Z.Group = Ie, Z.ClearButton = Oe, Z.HiddenInput = Re;
725
- //#endregion
726
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Combobox/OptionsDropdown/is-options-group.mjs
727
- function Ze(e) {
728
- return "group" in e;
729
- }
730
- //#endregion
731
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Combobox/OptionsDropdown/default-options-filter.mjs
732
- function Qe({ options: e, search: t, limit: n }) {
733
- let r = t.trim().toLowerCase(), i = [];
734
- for (let a = 0; a < e.length; a += 1) {
735
- let o = e[a];
736
- if (i.length === n) return i;
737
- Ze(o) && i.push({
738
- group: o.group,
739
- items: Qe({
740
- options: o.items,
741
- search: t,
742
- limit: n - i.length
743
- })
744
- }), Ze(o) || o.label.toLowerCase().includes(r) && i.push(o);
745
- }
746
- return i;
747
- }
748
- //#endregion
749
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Combobox/OptionsDropdown/is-empty-combobox-data.mjs
750
- function $e(e) {
751
- if (e.length === 0) return !0;
752
- for (let t of e) if (!("group" in t) || t.items.length > 0) return !1;
753
- return !0;
754
- }
755
- //#endregion
756
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Combobox/OptionsDropdown/validate-options.mjs
757
- function et(e, t = /* @__PURE__ */ new Set()) {
758
- if (Array.isArray(e)) for (let n of e) if (Ze(n)) et(n.items, t);
759
- else {
760
- if (n.value === void 0) throw Error("[@mantine/core] Each option must have value property");
761
- if (t.has(n.value)) throw Error(`[@mantine/core] Duplicate options are not supported. Option with value "${n.value}" was provided more than once`);
762
- t.add(n.value);
763
- }
764
- }
765
- //#endregion
766
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Combobox/OptionsDropdown/OptionsDropdown.mjs
767
- function tt(e, t) {
768
- return Array.isArray(e) ? e.includes(t) : e === t;
769
- }
770
- function nt({ data: t, withCheckIcon: n, withAlignedLabels: r, value: i, checkIconPosition: a, unstyled: o, renderOption: s }) {
771
- if (!Ze(t)) {
772
- let c = tt(i, t.value), l = n && (c ? /* @__PURE__ */ B(ie, { className: K.optionsDropdownCheckIcon }) : r ? /* @__PURE__ */ B("div", { className: K.optionsDropdownCheckPlaceholder }) : null), u = /* @__PURE__ */ V(pe, { children: [
773
- a === "left" && l,
774
- /* @__PURE__ */ B("span", { children: t.label }),
775
- a === "right" && l
776
- ] });
777
- return /* @__PURE__ */ B(Z.Option, {
778
- value: t.value,
779
- disabled: t.disabled,
780
- className: e({ [K.optionsDropdownOption]: !o }),
781
- "data-reverse": a === "right" || void 0,
782
- "data-checked": c || void 0,
783
- "aria-selected": c,
784
- active: c,
785
- children: typeof s == "function" ? s({
786
- option: t,
787
- checked: c
788
- }) : u
789
- });
790
- }
791
- let c = t.items.map((e) => /* @__PURE__ */ B(nt, {
792
- data: e,
793
- value: i,
794
- unstyled: o,
795
- withCheckIcon: n,
796
- withAlignedLabels: r,
797
- checkIconPosition: a,
798
- renderOption: s
799
- }, `${e.value}`));
800
- return /* @__PURE__ */ B(Z.Group, {
801
- label: t.group,
802
- children: c
803
- });
804
- }
805
- function rt({ data: e, hidden: t, hiddenWhenEmpty: n, filter: r, search: i, limit: a, maxDropdownHeight: o, withScrollArea: s = !0, filterOptions: c = !0, withCheckIcon: l = !1, withAlignedLabels: u = !1, value: d, checkIconPosition: f, nothingFoundMessage: p, unstyled: m, labelId: h, renderOption: g, scrollAreaProps: _, "aria-label": v }) {
806
- et(e);
807
- let y = typeof i == "string" ? (r || Qe)({
808
- options: e,
809
- search: c ? i : "",
810
- limit: a ?? Infinity
811
- }) : e, b = $e(y), x = y.map((e) => /* @__PURE__ */ B(nt, {
812
- data: e,
813
- withCheckIcon: l,
814
- withAlignedLabels: u,
815
- value: d,
816
- checkIconPosition: f,
817
- unstyled: m,
818
- renderOption: g
819
- }, Ze(e) ? e.group : `${e.value}`));
820
- return /* @__PURE__ */ B(Z.Dropdown, {
821
- hidden: t || n && b,
822
- "data-composed": !0,
823
- children: /* @__PURE__ */ V(Z.Options, {
824
- labelledBy: h,
825
- "aria-label": v,
826
- children: [s ? /* @__PURE__ */ B(A.Autosize, {
827
- mah: o ?? 220,
828
- type: "scroll",
829
- scrollbarSize: "var(--combobox-padding)",
830
- offsetScrollbars: "y",
831
- ..._,
832
- children: x
833
- }) : x, b && p && /* @__PURE__ */ B(Z.Empty, { children: p })]
834
- })
835
- });
836
- }
837
- //#endregion
838
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Menu/Menu.context.mjs
839
- var [it, at] = _("Menu component was not found in the tree"), ot = {
840
- dropdown: "m_dc9b7c9f",
841
- label: "m_9bfac126",
842
- divider: "m_efdf90cb",
843
- item: "m_99ac2aa1",
844
- itemLabel: "m_5476e0d3",
845
- itemSection: "m_8b75e504",
846
- chevron: "m_b85b0bed"
847
- }, st = p((e) => {
848
- let { classNames: t, className: n, style: r, styles: i, vars: a, ...o } = u("MenuDivider", null, e);
849
- return /* @__PURE__ */ B(m, {
850
- ...at().getStyles("divider", {
851
- className: n,
852
- style: r,
853
- styles: i,
854
- classNames: t
855
- }),
856
- ...o
857
- });
858
- });
859
- st.classes = ot, st.displayName = "@mantine/core/MenuDivider";
860
- //#endregion
861
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Menu/MenuDropdown/MenuDropdown.mjs
862
- var ct = p((e) => {
863
- let { classNames: t, className: n, style: r, styles: i, vars: a, onMouseEnter: o, onMouseLeave: s, onKeyDown: c, children: l, ref: d, ...f } = u("MenuDropdown", null, e), p = z(null), m = at(), h = H(c, (e) => {
864
- (e.key === "ArrowUp" || e.key === "ArrowDown") && (e.preventDefault(), p.current?.querySelectorAll("[data-menu-item]:not(:disabled)")[0]?.focus());
865
- }), g = H(o, () => (m.trigger === "hover" || m.trigger === "click-hover") && m.openDropdown()), _ = H(s, () => (m.trigger === "hover" || m.trigger === "click-hover") && m.closeDropdown());
866
- return /* @__PURE__ */ V(b.Dropdown, {
867
- ...f,
868
- onMouseEnter: g,
869
- onMouseLeave: _,
870
- role: "menu",
871
- "aria-orientation": "vertical",
872
- ref: P(d, p),
873
- ...m.getStyles("dropdown", {
874
- className: n,
875
- style: r,
876
- styles: i,
877
- classNames: t,
878
- withStaticClass: !1
879
- }),
880
- tabIndex: -1,
881
- "data-menu-dropdown": !0,
882
- onKeyDown: h,
883
- children: [m.withInitialFocusPlaceholder && /* @__PURE__ */ B("div", {
884
- tabIndex: -1,
885
- "data-autofocus": !0,
886
- "data-mantine-stop-propagation": !0,
887
- style: { outline: 0 }
888
- }), l]
889
- });
890
- });
891
- ct.classes = ot, ct.displayName = "@mantine/core/MenuDropdown";
892
- //#endregion
893
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Menu/MenuSub/MenuSub.context.mjs
894
- var lt = se(null), ut = d((e) => {
895
- let { classNames: t, className: n, style: r, styles: a, vars: s, color: c, closeMenuOnClick: l, leftSection: d, rightSection: f, children: p, disabled: m, "data-disabled": h, ref: g, ..._ } = u("MenuItem", null, e), v = at(), y = ce(lt), b = o(), { dir: S } = x(), C = z(null), w = _, T = H(w.onClick, () => {
896
- h || (typeof l == "boolean" ? l && v.closeDropdownImmediately() : v.closeOnItemClick && v.closeDropdownImmediately());
897
- }), E = c ? b.variantColorResolver({
898
- color: c,
899
- theme: b,
900
- variant: "light"
901
- }) : void 0, D = c ? i({
902
- color: c,
903
- theme: b
904
- }) : null, O = H(w.onKeyDown, (e) => {
905
- e.key === "ArrowLeft" && y && (y.close(), y.focusParentItem());
906
- });
907
- return /* @__PURE__ */ V(re, {
908
- onMouseDown: (e) => e.preventDefault(),
909
- ..._,
910
- unstyled: v.unstyled,
911
- tabIndex: v.menuItemTabIndex,
912
- ...v.getStyles("item", {
913
- className: n,
914
- style: r,
915
- styles: a,
916
- classNames: t
917
- }),
918
- ref: P(C, g),
919
- role: "menuitem",
920
- disabled: m,
921
- "data-menu-item": !0,
922
- "data-disabled": m || h || void 0,
923
- "data-mantine-stop-propagation": !0,
924
- onClick: T,
925
- onKeyDown: ve({
926
- siblingSelector: "[data-menu-item]:not([data-disabled])",
927
- parentSelector: "[data-menu-dropdown]",
928
- activateOnFocus: !1,
929
- loop: v.loop,
930
- dir: S,
931
- orientation: "vertical",
932
- onKeyDown: O
933
- }),
934
- __vars: {
935
- "--menu-item-color": D?.isThemeColor && D?.shade === void 0 ? `var(--mantine-color-${D.color}-6)` : E?.color,
936
- "--menu-item-hover": E?.hover
937
- },
938
- children: [
939
- d && /* @__PURE__ */ B("div", {
940
- ...v.getStyles("itemSection", {
941
- styles: a,
942
- classNames: t
943
- }),
944
- "data-position": "left",
945
- children: d
946
- }),
947
- p && /* @__PURE__ */ B("div", {
948
- ...v.getStyles("itemLabel", {
949
- styles: a,
950
- classNames: t
951
- }),
952
- children: p
953
- }),
954
- f && /* @__PURE__ */ B("div", {
955
- ...v.getStyles("itemSection", {
956
- styles: a,
957
- classNames: t
958
- }),
959
- "data-position": "right",
960
- children: f
961
- })
962
- ]
963
- });
964
- });
965
- ut.classes = ot, ut.displayName = "@mantine/core/MenuItem";
966
- //#endregion
967
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Menu/MenuLabel/MenuLabel.mjs
968
- var dt = p((e) => {
969
- let { classNames: t, className: n, style: r, styles: i, vars: a, ...o } = u("MenuLabel", null, e);
970
- return /* @__PURE__ */ B(m, {
971
- ...at().getStyles("label", {
972
- className: n,
973
- style: r,
974
- styles: i,
975
- classNames: t
976
- }),
977
- ...o
978
- });
979
- });
980
- dt.classes = ot, dt.displayName = "@mantine/core/MenuLabel";
981
- //#endregion
982
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Menu/MenuSubDropdown/MenuSubDropdown.mjs
983
- var ft = p((e) => {
984
- let { classNames: t, className: n, style: r, styles: i, vars: a, onMouseEnter: o, onMouseLeave: s, onKeyDown: c, children: l, ref: d, ...f } = u("MenuSubDropdown", null, e), p = z(null), m = at(), h = ce(lt), g = H(o, h?.open), _ = H(s, h?.close);
985
- return /* @__PURE__ */ B(b.Dropdown, {
986
- ...f,
987
- onMouseEnter: g,
988
- onMouseLeave: _,
989
- role: "menu",
990
- "aria-orientation": "vertical",
991
- ref: P(d, p),
992
- ...m.getStyles("dropdown", {
993
- className: n,
994
- style: r,
995
- styles: i,
996
- classNames: t,
997
- withStaticClass: !1
998
- }),
999
- tabIndex: -1,
1000
- "data-menu-dropdown": !0,
1001
- children: l
1002
- });
1003
- });
1004
- ft.classes = ot, ft.displayName = "@mantine/core/MenuSubDropdown";
1005
- //#endregion
1006
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Menu/MenuSubItem/MenuSubItem.mjs
1007
- var pt = d((e) => {
1008
- let { classNames: t, className: n, style: r, styles: a, vars: s, color: c, leftSection: l, rightSection: d, children: f, disabled: p, "data-disabled": m, closeMenuOnClick: h, ref: g, ..._ } = u("MenuSubItem", null, e), v = at(), y = ce(lt), b = o(), { dir: S } = x(), C = z(null), w = _, T = c ? b.variantColorResolver({
1009
- color: c,
1010
- theme: b,
1011
- variant: "light"
1012
- }) : void 0, E = c ? i({
1013
- color: c,
1014
- theme: b
1015
- }) : null, D = H(w.onKeyDown, (e) => {
1016
- e.key === "ArrowRight" && (y?.open(), y?.focusFirstItem()), e.key === "ArrowLeft" && y?.parentContext && (y.parentContext.close(), y.parentContext.focusParentItem());
1017
- }), O = H(w.onClick, () => {
1018
- !m && h && v.closeDropdownImmediately();
1019
- }), k = H(w.onMouseEnter, y?.open), A = H(w.onMouseLeave, y?.close);
1020
- return /* @__PURE__ */ V(re, {
1021
- onMouseDown: (e) => e.preventDefault(),
1022
- ..._,
1023
- unstyled: v.unstyled,
1024
- tabIndex: v.menuItemTabIndex,
1025
- ...v.getStyles("item", {
1026
- className: n,
1027
- style: r,
1028
- styles: a,
1029
- classNames: t
1030
- }),
1031
- ref: P(C, g),
1032
- role: "menuitem",
1033
- disabled: p,
1034
- "data-menu-item": !0,
1035
- "data-sub-menu-item": !0,
1036
- "data-disabled": p || m || void 0,
1037
- "data-mantine-stop-propagation": !0,
1038
- onMouseEnter: k,
1039
- onMouseLeave: A,
1040
- onClick: O,
1041
- onKeyDown: ve({
1042
- siblingSelector: "[data-menu-item]:not([data-disabled])",
1043
- parentSelector: "[data-menu-dropdown]",
1044
- activateOnFocus: !1,
1045
- loop: v.loop,
1046
- dir: S,
1047
- orientation: "vertical",
1048
- onKeyDown: D
1049
- }),
1050
- __vars: {
1051
- "--menu-item-color": E?.isThemeColor && E?.shade === void 0 ? `var(--mantine-color-${E.color}-6)` : T?.color,
1052
- "--menu-item-hover": T?.hover
1053
- },
1054
- children: [
1055
- l && /* @__PURE__ */ B("div", {
1056
- ...v.getStyles("itemSection", {
1057
- styles: a,
1058
- classNames: t
1059
- }),
1060
- "data-position": "left",
1061
- children: l
1062
- }),
1063
- f && /* @__PURE__ */ B("div", {
1064
- ...v.getStyles("itemLabel", {
1065
- styles: a,
1066
- classNames: t
1067
- }),
1068
- children: f
1069
- }),
1070
- /* @__PURE__ */ B("div", {
1071
- ...v.getStyles("itemSection", {
1072
- styles: a,
1073
- classNames: t
1074
- }),
1075
- "data-position": "right",
1076
- children: d || /* @__PURE__ */ B(F, {
1077
- ...v.getStyles("chevron"),
1078
- size: 14
1079
- })
1080
- })
1081
- ]
1082
- });
1083
- });
1084
- pt.classes = ot, pt.displayName = "@mantine/core/MenuSubItem";
1085
- //#endregion
1086
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Menu/MenuSubTarget/MenuSubTarget.mjs
1087
- function mt({ children: e, refProp: t }) {
1088
- if (!g(e)) throw Error("Menu.Sub.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");
1089
- return at(), /* @__PURE__ */ B(b.Target, {
1090
- refProp: t,
1091
- popupType: "menu",
1092
- children: e
1093
- });
1094
- }
1095
- mt.displayName = "@mantine/core/MenuSubTarget";
1096
- //#endregion
1097
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Menu/MenuSub/MenuSub.mjs
1098
- var ht = {
1099
- offset: 0,
1100
- position: "right-start",
1101
- transitionProps: { duration: 0 },
1102
- openDelay: 0,
1103
- middlewares: { shift: { crossAxis: !0 } }
1104
- };
1105
- function gt(e) {
1106
- let { children: t, closeDelay: n, openDelay: r, ...i } = u("MenuSub", ht, e), a = k(), [o, { open: s, close: c }] = be(!1), l = ce(lt), { openDropdown: d, closeDropdown: f } = Se({
1107
- open: s,
1108
- close: c,
1109
- closeDelay: n,
1110
- openDelay: r
1111
- });
1112
- return /* @__PURE__ */ B(lt, {
1113
- value: {
1114
- opened: o,
1115
- close: f,
1116
- open: d,
1117
- focusFirstItem: () => window.setTimeout(() => {
1118
- document.getElementById(`${a}-dropdown`)?.querySelectorAll("[data-menu-item]:not([data-disabled])")[0]?.focus();
1119
- }, 16),
1120
- focusParentItem: () => window.setTimeout(() => {
1121
- document.getElementById(`${a}-target`)?.focus();
1122
- }, 16),
1123
- parentContext: l
1124
- },
1125
- children: /* @__PURE__ */ B(b, {
1126
- opened: o,
1127
- withinPortal: !1,
1128
- withArrow: !1,
1129
- id: a,
1130
- ...i,
1131
- children: t
1132
- })
1133
- });
1134
- }
1135
- gt.extend = (e) => e, gt.displayName = "@mantine/core/MenuSub", gt.Target = mt, gt.Dropdown = ft, gt.Item = pt;
1136
- //#endregion
1137
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Menu/MenuTarget/MenuTarget.mjs
1138
- var _t = { refProp: "ref" };
1139
- function vt(e) {
1140
- let { children: t, refProp: n, ...r } = u("MenuTarget", _t, e), i = v(t);
1141
- if (!i) throw Error("Menu.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");
1142
- let a = at(), o = i.props, s = H(o.onClick, () => {
1143
- a.trigger === "click" ? a.toggleDropdown() : a.trigger === "click-hover" && (a.setOpenedViaClick(!0), a.opened || a.openDropdown());
1144
- }), c = H(o.onMouseEnter, () => (a.trigger === "hover" || a.trigger === "click-hover") && a.openDropdown()), l = H(o.onMouseLeave, () => {
1145
- (a.trigger === "hover" || a.trigger === "click-hover" && !a.openedViaClick) && a.closeDropdown();
1146
- });
1147
- return /* @__PURE__ */ B(b.Target, {
1148
- refProp: n,
1149
- popupType: "menu",
1150
- ...r,
1151
- children: oe(i, {
1152
- onClick: s,
1153
- onMouseEnter: c,
1154
- onMouseLeave: l,
1155
- "data-expanded": a.opened ? !0 : void 0
1156
- })
1157
- });
1158
- }
1159
- vt.displayName = "@mantine/core/MenuTarget";
1160
- //#endregion
1161
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Menu/Menu.mjs
1162
- var yt = {
1163
- trapFocus: !0,
1164
- closeOnItemClick: !0,
1165
- withInitialFocusPlaceholder: !0,
1166
- clickOutsideEvents: [
1167
- "mousedown",
1168
- "touchstart",
1169
- "keydown"
1170
- ],
1171
- loop: !0,
1172
- trigger: "click",
1173
- openDelay: 0,
1174
- closeDelay: 100,
1175
- menuItemTabIndex: -1
1176
- }, Q = p((e) => {
1177
- let t = u("Menu", yt, e), { children: n, onOpen: r, onClose: i, opened: o, defaultOpened: s, trapFocus: c, onChange: l, closeOnItemClick: d, loop: f, closeOnEscape: p, trigger: m, openDelay: h, closeDelay: g, classNames: _, styles: v, unstyled: y, variant: x, vars: S, menuItemTabIndex: C, keepMounted: w, withInitialFocusPlaceholder: E, attributes: D, ...O } = t, k = a({
1178
- name: "Menu",
1179
- classes: ot,
1180
- props: t,
1181
- classNames: _,
1182
- styles: v,
1183
- unstyled: y,
1184
- attributes: D
1185
- }), [A, j] = T({
1186
- value: o,
1187
- defaultValue: s,
1188
- finalValue: !1,
1189
- onChange: l
1190
- }), [M, ee] = fe(!1), N = () => {
1191
- j(!1), ee(!1), A && i?.();
1192
- }, P = () => {
1193
- j(!0), !A && r?.();
1194
- }, te = () => {
1195
- A ? N() : P();
1196
- }, { openDropdown: re, closeDropdown: F } = Se({
1197
- open: P,
1198
- close: N,
1199
- closeDelay: g,
1200
- openDelay: h
1201
- }), ie = (e) => ye("[data-menu-item]", "[data-menu-dropdown]", e), { resolvedClassNames: ae, resolvedStyles: I } = ne({
1202
- classNames: _,
1203
- styles: v,
1204
- props: t
1205
- });
1206
- return /* @__PURE__ */ B(it, {
1207
- value: {
1208
- getStyles: k,
1209
- opened: A,
1210
- toggleDropdown: te,
1211
- getItemIndex: ie,
1212
- openedViaClick: M,
1213
- setOpenedViaClick: ee,
1214
- closeOnItemClick: d,
1215
- closeDropdown: m === "click" ? N : F,
1216
- openDropdown: m === "click" ? P : re,
1217
- closeDropdownImmediately: N,
1218
- loop: f,
1219
- trigger: m,
1220
- unstyled: y,
1221
- menuItemTabIndex: C,
1222
- withInitialFocusPlaceholder: E
1223
- },
1224
- children: /* @__PURE__ */ B(b, {
1225
- returnFocus: !0,
1226
- ...O,
1227
- opened: A,
1228
- onChange: te,
1229
- defaultOpened: s,
1230
- trapFocus: w ? !1 : c,
1231
- closeOnEscape: p,
1232
- __staticSelector: "Menu",
1233
- classNames: ae,
1234
- styles: I,
1235
- unstyled: y,
1236
- variant: x,
1237
- keepMounted: w,
1238
- children: n
1239
- })
1240
- });
1241
- });
1242
- Q.displayName = "@mantine/core/Menu", Q.classes = ot, Q.Item = ut, Q.Label = dt, Q.Dropdown = ct, Q.Target = vt, Q.Divider = st, Q.Sub = gt;
1243
- //#endregion
1244
- //#region ../../node_modules/.bun/react-number-format@5.4.5+bf16f8eded5e12ee/node_modules/react-number-format/dist/react-number-format.es.js
1245
- function bt(e, t) {
1246
- var n = {};
1247
- for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
1248
- if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++) t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
1249
- return n;
1250
- }
1251
- var xt;
1252
- (function(e) {
1253
- e.event = "event", e.props = "prop";
1254
- })(xt ||= {});
1255
- function St() {}
1256
- function Ct(e) {
1257
- var t, n = void 0;
1258
- return function() {
1259
- for (var r = [], i = arguments.length; i--;) r[i] = arguments[i];
1260
- return t && r.length === t.length && r.every(function(e, n) {
1261
- return e === t[n];
1262
- }) ? n : (t = r, n = e.apply(void 0, r), n);
1263
- };
1264
- }
1265
- function wt(e) {
1266
- return !!(e || "").match(/\d/);
1267
- }
1268
- function Tt(e) {
1269
- return e == null;
1270
- }
1271
- function Et(e) {
1272
- return typeof e == "number" && isNaN(e);
1273
- }
1274
- function Dt(e) {
1275
- return Tt(e) || Et(e) || typeof e == "number" && !isFinite(e);
1276
- }
1277
- function Ot(e) {
1278
- return e.replace(/[-[\]/{}()*+?.\\^$|]/g, "\\$&");
1279
- }
1280
- function kt(e) {
1281
- switch (e) {
1282
- case "lakh": return /(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;
1283
- case "wan": return /(\d)(?=(\d{4})+(?!\d))/g;
1284
- default: return /(\d)(?=(\d{3})+(?!\d))/g;
1285
- }
1286
- }
1287
- function At(e, t, n) {
1288
- var r = kt(n), i = e.search(/[1-9]/);
1289
- return i = i === -1 ? e.length : i, e.substring(0, i) + e.substring(i, e.length).replace(r, "$1" + t);
1290
- }
1291
- function jt(e) {
1292
- var t = z(e);
1293
- return t.current = e, z(function() {
1294
- for (var e = [], n = arguments.length; n--;) e[n] = arguments[n];
1295
- return t.current.apply(t, e);
1296
- }).current;
1297
- }
1298
- function Mt(e, t) {
1299
- t === void 0 && (t = !0);
1300
- var n = e[0] === "-", r = n && t;
1301
- e = e.replace("-", "");
1302
- var i = e.split(".");
1303
- return {
1304
- beforeDecimal: i[0],
1305
- afterDecimal: i[1] || "",
1306
- hasNegation: n,
1307
- addNegation: r
1308
- };
1309
- }
1310
- function Nt(e) {
1311
- if (!e) return e;
1312
- var t = e[0] === "-";
1313
- t && (e = e.substring(1, e.length));
1314
- var n = e.split("."), r = n[0].replace(/^0+/, "") || "0", i = n[1] || "";
1315
- return (t ? "-" : "") + r + (i ? "." + i : "");
1316
- }
1317
- function Pt(e, t, n) {
1318
- for (var r = "", i = n ? "0" : "", a = 0; a <= t - 1; a++) r += e[a] || i;
1319
- return r;
1320
- }
1321
- function Ft(e, t) {
1322
- return Array(t + 1).join(e);
1323
- }
1324
- function It(e) {
1325
- var t = e + "", n = t[0] === "-" ? "-" : "";
1326
- n && (t = t.substring(1));
1327
- var r = t.split(/[eE]/g), i = r[0], a = r[1];
1328
- if (a = Number(a), !a) return n + i;
1329
- i = i.replace(".", "");
1330
- var o = 1 + a, s = i.length;
1331
- return o < 0 ? i = "0." + Ft("0", Math.abs(o)) + i : o >= s ? i += Ft("0", o - s) : i = (i.substring(0, o) || "0") + "." + i.substring(o), n + i;
1332
- }
1333
- function Lt(e, t, n) {
1334
- if (["", "-"].indexOf(e) !== -1) return e;
1335
- var r = (e.indexOf(".") !== -1 || n) && t, i = Mt(e), a = i.beforeDecimal, o = i.afterDecimal, s = i.hasNegation, c = parseFloat("0." + (o || "0")), l = (o.length <= t ? "0." + o : c.toFixed(t)).split("."), u = a;
1336
- a && Number(l[0]) && (u = a.split("").reverse().reduce(function(e, t, n) {
1337
- return e.length > n ? (Number(e[0]) + Number(t)).toString() + e.substring(1, e.length) : t + e;
1338
- }, l[0]));
1339
- var d = Pt(l[1] || "", t, n), f = s ? "-" : "", p = r ? "." : "";
1340
- return "" + f + u + p + d;
1341
- }
1342
- function Rt(e, t) {
1343
- if (e.value = e.value, e !== null) {
1344
- if (e.createTextRange) {
1345
- var n = e.createTextRange();
1346
- return n.move("character", t), n.select(), !0;
1347
- }
1348
- return e.selectionStart || e.selectionStart === 0 ? (e.focus(), e.setSelectionRange(t, t), !0) : (e.focus(), !1);
1349
- }
1350
- }
1351
- var zt = Ct(function(e, t) {
1352
- for (var n = 0, r = 0, i = e.length, a = t.length; e[n] === t[n] && n < i;) n++;
1353
- for (; e[i - 1 - r] === t[a - 1 - r] && a - r > n && i - r > n;) r++;
1354
- return {
1355
- from: {
1356
- start: n,
1357
- end: i - r
1358
- },
1359
- to: {
1360
- start: n,
1361
- end: a - r
1362
- }
1363
- };
1364
- }), Bt = function(e, t) {
1365
- var n = Math.min(e.selectionStart, t);
1366
- return {
1367
- from: {
1368
- start: n,
1369
- end: e.selectionEnd
1370
- },
1371
- to: {
1372
- start: n,
1373
- end: t
1374
- }
1375
- };
1376
- };
1377
- function Vt(e, t, n) {
1378
- return Math.min(Math.max(e, t), n);
1379
- }
1380
- function Ht(e) {
1381
- return Math.max(e.selectionStart, e.selectionEnd);
1382
- }
1383
- function Ut() {
1384
- return typeof navigator < "u" && !(navigator.platform && /iPhone|iPod/.test(navigator.platform));
1385
- }
1386
- function Wt(e) {
1387
- return {
1388
- from: {
1389
- start: 0,
1390
- end: 0
1391
- },
1392
- to: {
1393
- start: 0,
1394
- end: e.length
1395
- },
1396
- lastValue: ""
1397
- };
1398
- }
1399
- function Gt(e) {
1400
- var t = e.currentValue, n = e.formattedValue, r = e.currentValueIndex, i = e.formattedValueIndex;
1401
- return t[r] === n[i];
1402
- }
1403
- function Kt(e, t, n, r, i, a, o) {
1404
- o === void 0 && (o = Gt);
1405
- var s = i.findIndex(function(e) {
1406
- return e;
1407
- }), c = e.slice(0, s);
1408
- !t && !n.startsWith(c) && (t = c, n = c + n, r += c.length);
1409
- for (var l = n.length, u = e.length, d = {}, f = Array(l), p = 0; p < l; p++) {
1410
- f[p] = -1;
1411
- for (var m = 0, h = u; m < h; m++) if (o({
1412
- currentValue: n,
1413
- lastValue: t,
1414
- formattedValue: e,
1415
- currentValueIndex: p,
1416
- formattedValueIndex: m
1417
- }) && d[m] !== !0) {
1418
- f[p] = m, d[m] = !0;
1419
- break;
1420
- }
1421
- }
1422
- for (var g = r; g < l && (f[g] === -1 || !a(n[g]));) g++;
1423
- var _ = g === l || f[g] === -1 ? u : f[g];
1424
- for (g = r - 1; g > 0 && f[g] === -1;) g--;
1425
- var v = g === -1 || f[g] === -1 ? 0 : f[g] + 1;
1426
- return v > _ ? _ : r - v < _ - r ? v : _;
1427
- }
1428
- function qt(e, t, n, r) {
1429
- var i = e.length;
1430
- if (t = Vt(t, 0, i), r === "left") {
1431
- for (; t >= 0 && !n[t];) t--;
1432
- t === -1 && (t = n.indexOf(!0));
1433
- } else {
1434
- for (; t <= i && !n[t];) t++;
1435
- t > i && (t = n.lastIndexOf(!0));
1436
- }
1437
- return t === -1 && (t = i), t;
1438
- }
1439
- function Jt(e) {
1440
- for (var t = Array.from({ length: e.length + 1 }).map(function() {
1441
- return !0;
1442
- }), n = 0, r = t.length; n < r; n++) t[n] = !!(wt(e[n]) || wt(e[n - 1]));
1443
- return t;
1444
- }
1445
- function Yt(e, t, n, r, i, a) {
1446
- a === void 0 && (a = St);
1447
- var o = jt(function(e, t) {
1448
- var n, a;
1449
- return Dt(e) ? (a = "", n = "") : typeof e == "number" || t ? (a = typeof e == "number" ? It(e) : e, n = r(a)) : (a = i(e, void 0), n = r(a)), {
1450
- formattedValue: n,
1451
- numAsString: a
1452
- };
1453
- }), s = fe(function() {
1454
- return o(Tt(e) ? t : e, n);
1455
- }), c = s[0], l = s[1], u = jt(function(e, t) {
1456
- e.formattedValue !== c.formattedValue && l({
1457
- formattedValue: e.formattedValue,
1458
- numAsString: e.value
1459
- }), a(e, t);
1460
- }), d = e, f = n;
1461
- Tt(e) && (d = c.numAsString, f = !0);
1462
- var p = o(d, f);
1463
- return de(function() {
1464
- l(p);
1465
- }, [p.formattedValue]), R(function() {
1466
- if (!Tt(t) && Tt(e) && c.formattedValue !== "") {
1467
- var n = parseFloat(c.numAsString);
1468
- u({
1469
- formattedValue: c.formattedValue,
1470
- value: c.numAsString,
1471
- floatValue: isNaN(n) ? void 0 : n
1472
- }, {
1473
- event: void 0,
1474
- source: xt.props
1475
- });
1476
- }
1477
- }, []), [c, u];
1478
- }
1479
- function Xt(e) {
1480
- return e.replace(/[^0-9]/g, "");
1481
- }
1482
- function Zt(e) {
1483
- return e;
1484
- }
1485
- function Qt(e) {
1486
- var t = e.type;
1487
- t === void 0 && (t = "text");
1488
- var n = e.displayType;
1489
- n === void 0 && (n = "input");
1490
- var r = e.customInput, i = e.renderText, a = e.getInputRef, o = e.format;
1491
- o === void 0 && (o = Zt);
1492
- var s = e.removeFormatting;
1493
- s === void 0 && (s = Xt);
1494
- var c = e.defaultValue, l = e.valueIsNumericString, u = e.onValueChange, d = e.isAllowed, f = e.onChange;
1495
- f === void 0 && (f = St);
1496
- var p = e.onKeyDown;
1497
- p === void 0 && (p = St);
1498
- var m = e.onMouseUp;
1499
- m === void 0 && (m = St);
1500
- var h = e.onFocus;
1501
- h === void 0 && (h = St);
1502
- var g = e.onBlur;
1503
- g === void 0 && (g = St);
1504
- var _ = e.value, v = e.getCaretBoundary;
1505
- v === void 0 && (v = Jt);
1506
- var y = e.isValidInputCharacter;
1507
- y === void 0 && (y = wt);
1508
- var b = e.isCharacterSame, x = bt(e, [
1509
- "type",
1510
- "displayType",
1511
- "customInput",
1512
- "renderText",
1513
- "getInputRef",
1514
- "format",
1515
- "removeFormatting",
1516
- "defaultValue",
1517
- "valueIsNumericString",
1518
- "onValueChange",
1519
- "isAllowed",
1520
- "onChange",
1521
- "onKeyDown",
1522
- "onMouseUp",
1523
- "onFocus",
1524
- "onBlur",
1525
- "value",
1526
- "getCaretBoundary",
1527
- "isValidInputCharacter",
1528
- "isCharacterSame"
1529
- ]), S = Yt(_, c, !!l, o, s, u), C = S[0], w = C.formattedValue, T = C.numAsString, E = S[1], D = z(), O = z({
1530
- formattedValue: w,
1531
- numAsString: T
1532
- }), k = function(e, t) {
1533
- O.current = {
1534
- formattedValue: e.formattedValue,
1535
- numAsString: e.value
1536
- }, E(e, t);
1537
- }, A = fe(!1), j = A[0], M = A[1], ee = z(null), N = z({
1538
- setCaretTimeout: null,
1539
- focusTimeout: null
1540
- });
1541
- R(function() {
1542
- return M(!0), function() {
1543
- clearTimeout(N.current.setCaretTimeout), clearTimeout(N.current.focusTimeout);
1544
- };
1545
- }, []);
1546
- var P = o, te = function(e, t) {
1547
- var n = parseFloat(t);
1548
- return {
1549
- formattedValue: e,
1550
- value: t,
1551
- floatValue: isNaN(n) ? void 0 : n
1552
- };
1553
- }, ne = function(e, t, n) {
1554
- e.selectionStart === 0 && e.selectionEnd === e.value.length || (Rt(e, t), N.current.setCaretTimeout = setTimeout(function() {
1555
- e.value === n && e.selectionStart !== t && Rt(e, t);
1556
- }, 0));
1557
- }, re = function(e, t, n) {
1558
- return qt(e, t, v(e), n);
1559
- }, F = function(e, t, n) {
1560
- var r = v(t), i = Kt(t, w, e, n, r, y, b);
1561
- return i = qt(t, i, r), i;
1562
- }, ie = function(e) {
1563
- var t = e.formattedValue;
1564
- t === void 0 && (t = "");
1565
- var n = e.input, r = e.source, i = e.event, a = e.numAsString, o;
1566
- if (n) {
1567
- var s = e.inputValue || n.value, c = Ht(n);
1568
- n.value = t, o = F(s, t, c), o !== void 0 && ne(n, o, t);
1569
- }
1570
- t !== w && k(te(t, a), {
1571
- event: i,
1572
- source: r
1573
- });
1574
- };
1575
- R(function() {
1576
- var e = O.current, t = e.formattedValue, n = e.numAsString;
1577
- (w !== t || T !== n) && k(te(w, T), {
1578
- event: void 0,
1579
- source: xt.props
1580
- });
1581
- }, [w, T]);
1582
- var ae = ee.current ? Ht(ee.current) : void 0;
1583
- (typeof window < "u" ? ue : R)(function() {
1584
- var e = ee.current;
1585
- if (w !== O.current.formattedValue && e) {
1586
- var t = F(O.current.formattedValue, w, ae);
1587
- e.value = w, ne(e, t, w);
1588
- }
1589
- }, [w]);
1590
- var oe = function(e, t, n) {
1591
- var r = t.target, i = D.current ? Bt(D.current, r.selectionEnd) : zt(w, e), a = Object.assign(Object.assign({}, i), { lastValue: w }), o = s(e, a), c = P(o);
1592
- if (o = s(c, void 0), d && !d(te(c, o))) {
1593
- var l = t.target, u = F(e, w, Ht(l));
1594
- return l.value = w, ne(l, u, w), !1;
1595
- }
1596
- return ie({
1597
- formattedValue: c,
1598
- numAsString: o,
1599
- inputValue: e,
1600
- event: t,
1601
- source: n,
1602
- input: t.target
1603
- }), !0;
1604
- }, se = function(e, t) {
1605
- t === void 0 && (t = 0), D.current = {
1606
- selectionStart: e.selectionStart,
1607
- selectionEnd: e.selectionEnd + t
1608
- };
1609
- }, ce = function(e) {
1610
- var t = e.target.value;
1611
- oe(t, e, xt.event) && f(e), D.current = void 0;
1612
- }, L = function(e) {
1613
- var t = e.target, n = e.key, r = t.selectionStart, i = t.selectionEnd, a = t.value;
1614
- a === void 0 && (a = "");
1615
- var o;
1616
- n === "ArrowLeft" || n === "Backspace" ? o = Math.max(r - 1, 0) : n === "ArrowRight" ? o = Math.min(r + 1, a.length) : n === "Delete" && (o = r);
1617
- var s = 0;
1618
- n === "Delete" && r === i && (s = 1);
1619
- var c = n === "ArrowLeft" || n === "ArrowRight";
1620
- if (o === void 0 || r !== i && !c) {
1621
- p(e), se(t, s);
1622
- return;
1623
- }
1624
- var l = o;
1625
- c ? (l = re(a, o, n === "ArrowLeft" ? "left" : "right"), l !== o && e.preventDefault()) : n === "Delete" && !y(a[o]) ? l = re(a, o, "right") : n === "Backspace" && !y(a[o]) && (l = re(a, o, "left")), l !== o && ne(t, l, a), p(e), se(t, s);
1626
- }, le = function(e) {
1627
- var t = e.target, n = function() {
1628
- var e = t.selectionStart, n = t.selectionEnd, r = t.value;
1629
- if (r === void 0 && (r = ""), e === n) {
1630
- var i = re(r, e);
1631
- i !== e && ne(t, i, r);
1632
- }
1633
- };
1634
- n(), requestAnimationFrame(function() {
1635
- n();
1636
- }), m(e), se(t);
1637
- }, de = function(e) {
1638
- e.persist && e.persist();
1639
- var t = e.target, n = e.currentTarget;
1640
- ee.current = t, N.current.focusTimeout = setTimeout(function() {
1641
- var r = t.selectionStart, i = t.selectionEnd, a = t.value;
1642
- a === void 0 && (a = "");
1643
- var o = re(a, r);
1644
- o !== r && !(r === 0 && i === a.length) && ne(t, o, a), h(Object.assign(Object.assign({}, e), { currentTarget: n }));
1645
- }, 0);
1646
- }, pe = function(e) {
1647
- ee.current = null, clearTimeout(N.current.focusTimeout), clearTimeout(N.current.setCaretTimeout), g(e);
1648
- }, B = j && Ut() ? "numeric" : void 0, V = Object.assign({ inputMode: B }, x, {
1649
- type: t,
1650
- value: w,
1651
- onChange: ce,
1652
- onKeyDown: L,
1653
- onMouseUp: le,
1654
- onFocus: de,
1655
- onBlur: pe
1656
- });
1657
- if (n === "text") return i ? I.createElement(I.Fragment, null, i(w, x) || null) : I.createElement("span", Object.assign({}, x, { ref: a }), w);
1658
- if (r) {
1659
- var me = r;
1660
- return I.createElement(me, Object.assign({}, V, { ref: a }));
1661
- }
1662
- return I.createElement("input", Object.assign({}, V, { ref: a }));
1663
- }
1664
- function $t(e, t) {
1665
- var n = t.decimalScale, r = t.fixedDecimalScale, i = t.prefix;
1666
- i === void 0 && (i = "");
1667
- var a = t.suffix;
1668
- a === void 0 && (a = "");
1669
- var o = t.allowNegative, s = t.thousandsGroupStyle;
1670
- if (s === void 0 && (s = "thousand"), e === "" || e === "-") return e;
1671
- var c = en(t), l = c.thousandSeparator, u = c.decimalSeparator, d = n !== 0 && e.indexOf(".") !== -1 || n && r, f = Mt(e, o), p = f.beforeDecimal, m = f.afterDecimal, h = f.addNegation;
1672
- return n !== void 0 && (m = Pt(m, n, !!r)), l && (p = At(p, l, s)), i && (p = i + p), a && (m += a), h && (p = "-" + p), e = p + (d && u || "") + m, e;
1673
- }
1674
- function en(e) {
1675
- var t = e.decimalSeparator;
1676
- t === void 0 && (t = ".");
1677
- var n = e.thousandSeparator, r = e.allowedDecimalSeparators;
1678
- return n === !0 && (n = ","), r ||= [t, "."], {
1679
- decimalSeparator: t,
1680
- thousandSeparator: n,
1681
- allowedDecimalSeparators: r
1682
- };
1683
- }
1684
- function tn(e, t) {
1685
- e === void 0 && (e = "");
1686
- var n = /* @__PURE__ */ RegExp("(-)"), r = /* @__PURE__ */ RegExp("(-)(.)*(-)"), i = n.test(e), a = r.test(e);
1687
- return e = e.replace(/-/g, ""), i && !a && t && (e = "-" + e), e;
1688
- }
1689
- function nn(e, t) {
1690
- return RegExp("(^-)|[0-9]|" + Ot(e), t ? "g" : void 0);
1691
- }
1692
- function rn(e, t, n) {
1693
- return e === "" ? !0 : !t?.match(/\d/) && !n?.match(/\d/) && typeof e == "string" && !isNaN(Number(e));
1694
- }
1695
- function an(e, t, n) {
1696
- var r;
1697
- t === void 0 && (t = Wt(e));
1698
- var i = n.allowNegative, a = n.prefix;
1699
- a === void 0 && (a = "");
1700
- var o = n.suffix;
1701
- o === void 0 && (o = "");
1702
- var s = n.decimalScale, c = t.from, l = t.to, u = l.start, d = l.end, f = en(n), p = f.allowedDecimalSeparators, m = f.decimalSeparator, h = e[d] === m;
1703
- if (wt(e) && (e === a || e === o) && t.lastValue === "") return e;
1704
- if (d - u === 1 && p.indexOf(e[u]) !== -1) {
1705
- var g = s === 0 ? "" : m;
1706
- e = e.substring(0, u) + g + e.substring(u + 1, e.length);
1707
- }
1708
- var _ = function(e, t, n) {
1709
- var r = !1, i = !1;
1710
- a.startsWith("-") ? r = !1 : e.startsWith("--") ? (r = !1, i = !0) : o.startsWith("-") && e.length === o.length ? r = !1 : e[0] === "-" && (r = !0);
1711
- var s = r ? 1 : 0;
1712
- return i && (s = 2), s && (e = e.substring(s), t -= s, n -= s), {
1713
- value: e,
1714
- start: t,
1715
- end: n,
1716
- hasNegation: r
1717
- };
1718
- }, v = _(e, u, d), y = v.hasNegation;
1719
- r = v, e = r.value, u = r.start, d = r.end;
1720
- var b = _(t.lastValue, c.start, c.end), x = b.start, S = b.end, C = b.value, w = e.substring(u, d);
1721
- e.length && C.length && (x > C.length - o.length || S < a.length) && !(w && o.startsWith(w)) && (e = C);
1722
- var T = 0;
1723
- e.startsWith(a) ? T += a.length : u < a.length && (T = u), e = e.substring(T), d -= T;
1724
- var E = e.length, D = e.length - o.length;
1725
- e.endsWith(o) ? E = D : (d > D || d > e.length - o.length) && (E = d), e = e.substring(0, E), e = tn(y ? "-" + e : e, i), e = (e.match(nn(m, !0)) || []).join("");
1726
- var O = e.indexOf(m);
1727
- e = e.replace(new RegExp(Ot(m), "g"), function(e, t) {
1728
- return t === O ? "." : "";
1729
- });
1730
- var k = Mt(e, i), A = k.beforeDecimal, j = k.afterDecimal, M = k.addNegation;
1731
- return l.end - l.start < c.end - c.start && A === "" && h && !parseFloat(j) && (e = M ? "-" : ""), e;
1732
- }
1733
- function on(e, t) {
1734
- var n = t.prefix;
1735
- n === void 0 && (n = "");
1736
- var r = t.suffix;
1737
- r === void 0 && (r = "");
1738
- var i = Array.from({ length: e.length + 1 }).map(function() {
1739
- return !0;
1740
- }), a = e[0] === "-";
1741
- i.fill(!1, 0, Math.min(n.length + (a ? 1 : 0), e.length));
1742
- var o = e.length;
1743
- return i.fill(!1, o - r.length + 1, o + 1), i;
1744
- }
1745
- function sn(e) {
1746
- var t = en(e), n = t.thousandSeparator, r = t.decimalSeparator, i = e.prefix;
1747
- i === void 0 && (i = "");
1748
- var a = e.allowNegative;
1749
- if (a === void 0 && (a = !0), n === r) throw Error("\n Decimal separator can't be same as thousand separator.\n thousandSeparator: " + n + " (thousandSeparator = {true} is same as thousandSeparator = \",\")\n decimalSeparator: " + r + " (default value for decimalSeparator is .)\n ");
1750
- return i.startsWith("-") && a && (console.error("\n Prefix can't start with '-' when allowNegative is true.\n prefix: " + i + "\n allowNegative: " + a + "\n "), a = !1), Object.assign(Object.assign({}, e), { allowNegative: a });
1751
- }
1752
- function cn(e) {
1753
- e = sn(e), e.decimalSeparator, e.allowedDecimalSeparators, e.thousandsGroupStyle;
1754
- var t = e.suffix, n = e.allowNegative, r = e.allowLeadingZeros, i = e.onKeyDown;
1755
- i === void 0 && (i = St);
1756
- var a = e.onBlur;
1757
- a === void 0 && (a = St);
1758
- var o = e.thousandSeparator, s = e.decimalScale, c = e.fixedDecimalScale, l = e.prefix;
1759
- l === void 0 && (l = "");
1760
- var u = e.defaultValue, d = e.value, f = e.valueIsNumericString, p = e.onValueChange, m = bt(e, [
1761
- "decimalSeparator",
1762
- "allowedDecimalSeparators",
1763
- "thousandsGroupStyle",
1764
- "suffix",
1765
- "allowNegative",
1766
- "allowLeadingZeros",
1767
- "onKeyDown",
1768
- "onBlur",
1769
- "thousandSeparator",
1770
- "decimalScale",
1771
- "fixedDecimalScale",
1772
- "prefix",
1773
- "defaultValue",
1774
- "value",
1775
- "valueIsNumericString",
1776
- "onValueChange"
1777
- ]), h = en(e), g = h.decimalSeparator, _ = h.allowedDecimalSeparators, v = function(t) {
1778
- return $t(t, e);
1779
- }, y = function(t, n) {
1780
- return an(t, n, e);
1781
- }, b = Tt(d) ? u : d, x = f ?? rn(b, l, t);
1782
- Tt(d) ? Tt(u) || (x ||= typeof u == "number") : x ||= typeof d == "number";
1783
- var S = function(e) {
1784
- return Dt(e) ? e : (typeof e == "number" && (e = It(e)), x && typeof s == "number" ? Lt(e, s, !!c) : e);
1785
- }, C = Yt(S(d), S(u), !!x, v, y, p), w = C[0], T = w.numAsString, E = w.formattedValue, D = C[1];
1786
- return Object.assign(Object.assign({}, m), {
1787
- value: E,
1788
- valueIsNumericString: !1,
1789
- isValidInputCharacter: function(e) {
1790
- return e === g ? !0 : wt(e);
1791
- },
1792
- isCharacterSame: function(e) {
1793
- var t = e.currentValue, n = e.lastValue, r = e.formattedValue, i = e.currentValueIndex, a = e.formattedValueIndex, o = t[i], u = r[a], f = zt(n, t).to, p = function(e) {
1794
- return y(e).indexOf(".") + l.length;
1795
- };
1796
- return d === 0 && c && s && t[f.start] === g && p(t) < i && p(r) > a ? !1 : i >= f.start && i < f.end && _ && _.includes(o) && u === g ? !0 : o === u;
1797
- },
1798
- onValueChange: D,
1799
- format: v,
1800
- removeFormatting: y,
1801
- getCaretBoundary: function(t) {
1802
- return on(t, e);
1803
- },
1804
- onKeyDown: function(e) {
1805
- var t = e.target, r = e.key, a = t.selectionStart, u = t.selectionEnd, d = t.value;
1806
- if (d === void 0 && (d = ""), (r === "Backspace" || r === "Delete") && u < l.length && d !== "-") {
1807
- e.preventDefault();
1808
- return;
1809
- }
1810
- if (a !== u) {
1811
- i(e);
1812
- return;
1813
- }
1814
- r === "Backspace" && d[0] === "-" && a === l.length + 1 && n && Rt(t, 1), s && c && (r === "Backspace" && d[a - 1] === g ? (Rt(t, a - 1), e.preventDefault()) : r === "Delete" && d[a] === g && e.preventDefault()), _?.includes(r) && d[a] === g && Rt(t, a + 1);
1815
- var f = o === !0 ? "," : o;
1816
- r === "Backspace" && d[a - 1] === f && Rt(t, a - 1), r === "Delete" && d[a] === f && Rt(t, a + 1), i(e);
1817
- },
1818
- onBlur: function(t) {
1819
- var n = T;
1820
- n.match(/\d/g) || (n = ""), r || (n = Nt(n)), c && s && (n = Lt(n, s, c)), n !== T && D({
1821
- formattedValue: $t(n, e),
1822
- value: n,
1823
- floatValue: parseFloat(n)
1824
- }, {
1825
- event: t,
1826
- source: xt.event
1827
- }), a(t);
1828
- }
1829
- });
1830
- }
1831
- function ln(e) {
1832
- var t = cn(e);
1833
- return I.createElement(Qt, Object.assign({}, t));
1834
- }
1835
- //#endregion
1836
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/NumberInput/NumberInputChevron.mjs
1837
- function un({ direction: e, style: t, ...n }) {
1838
- return /* @__PURE__ */ B("svg", {
1839
- style: {
1840
- width: "var(--ni-chevron-size)",
1841
- height: "var(--ni-chevron-size)",
1842
- transform: e === "up" ? "rotate(180deg)" : void 0,
1843
- ...t
1844
- },
1845
- viewBox: "0 0 15 15",
1846
- fill: "none",
1847
- xmlns: "http://www.w3.org/2000/svg",
1848
- ...n,
1849
- children: /* @__PURE__ */ B("path", {
1850
- d: "M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",
1851
- fill: "currentColor",
1852
- fillRule: "evenodd",
1853
- clipRule: "evenodd"
1854
- })
1855
- });
1856
- }
1857
- //#endregion
1858
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/NumberInput/NumberInput.module.mjs
1859
- var dn = {
1860
- root: "m_e2f5cd4e",
1861
- controls: "m_95e17d22",
1862
- control: "m_80b4b171"
1863
- }, fn = /^(0\.0*|-0(\.0*)?)$/, pn = /^-?0\d+(\.\d+)?\.?$/, mn = /\.\d*0$/, hn = /^-?\d+\.$/;
1864
- function gn(e) {
1865
- return typeof e == "string" && e !== "" && !Number.isNaN(Number(e));
1866
- }
1867
- function _n(e) {
1868
- return typeof e == "bigint";
1869
- }
1870
- function vn(e) {
1871
- return typeof e == "number" ? e < 2 ** 53 - 1 : e === "" || gn(e) && Number(e) < 2 ** 53 - 1;
1872
- }
1873
- function yn(e, t) {
1874
- return e === "" || e === "-" || !t && e.startsWith("-") ? !1 : /^-?\d+$/.test(e);
1875
- }
1876
- function bn(e, t) {
1877
- return typeof e == "bigint" ? !0 : e === "" || yn(e, t);
1878
- }
1879
- function xn(e) {
1880
- if (!/^-?\d+$/.test(e)) return null;
1881
- try {
1882
- return BigInt(e);
1883
- } catch {
1884
- return null;
1885
- }
1886
- }
1887
- function Sn(e) {
1888
- if (typeof e == "bigint") return e;
1889
- if (typeof e == "number" && Number.isFinite(e) && Number.isInteger(e)) return BigInt(e);
1890
- }
1891
- function Cn(e, t, n) {
1892
- return t !== void 0 && e < t ? t : n !== void 0 && e > n ? n : e;
1893
- }
1894
- function wn(e) {
1895
- return e.toString().replace(".", "").length;
1896
- }
1897
- function Tn(e, t) {
1898
- return (typeof e == "number" ? e < 2 ** 53 - 1 : !Number.isNaN(Number(e))) && !Number.isNaN(e) && wn(t) < 14 && t !== "";
1899
- }
1900
- function En(e, t, n) {
1901
- return e === void 0 ? !0 : (t === void 0 || e >= t) && (n === void 0 || e <= n);
1902
- }
1903
- var Dn = {
1904
- step: 1,
1905
- clampBehavior: "blur",
1906
- allowDecimal: !0,
1907
- allowNegative: !0,
1908
- withKeyboardEvents: !0,
1909
- allowLeadingZeros: !0,
1910
- trimLeadingZeroesOnBlur: !0,
1911
- startValue: 0,
1912
- allowedDecimalSeparators: [".", ","]
1913
- }, On = r((e, { size: t }) => ({ controls: { "--ni-chevron-size": n(t, "ni-chevron-size") } }));
1914
- function kn(e, t, n) {
1915
- let r = e.toString(), i = hn.test(r), a = r.replace(/^0+(?=\d)/, ""), o = parseFloat(a);
1916
- if (Number.isNaN(o)) return a;
1917
- if (o > 2 ** 53 - 1) return t === void 0 ? a : t;
1918
- let s = w(o, n, t);
1919
- return i ? `${s.toString().replace(/^0+(?=\d)/, "")}.` : s;
1920
- }
1921
- function An(e, t) {
1922
- if (e === "" || e === "-") return e;
1923
- let n = xn(e);
1924
- return n === null ? e : t.clampBehavior === "blur" ? Cn(n, t.min, t.max) : n;
1925
- }
1926
- var jn = s((t) => {
1927
- let n = u("NumberInput", Dn, t), { className: r, classNames: i, styles: o, unstyled: s, vars: c, onChange: l, onValueChange: d, value: f, defaultValue: p, max: m, min: h, step: g, hideControls: _, rightSection: v, isAllowed: b, clampBehavior: x, onBlur: S, allowDecimal: C, decimalScale: E, onKeyDown: O, onKeyDownCapture: k, handlersRef: A, startValue: j, disabled: M, rightSectionPointerEvents: ee, allowNegative: N, readOnly: F, size: ie, rightSectionWidth: ae, stepHoldInterval: I, stepHoldDelay: oe, allowLeadingZeros: se, withKeyboardEvents: ce, trimLeadingZeroesOnBlur: L, allowedDecimalSeparators: R, selectAllOnFocus: le, onMinReached: ue, onMaxReached: de, onFocus: fe, attributes: pe, ref: me, ...he } = n, ge = N ?? !0, _e = se ?? !0, ve = a({
1928
- name: "NumberInput",
1929
- classes: dn,
1930
- props: n,
1931
- classNames: i,
1932
- styles: o,
1933
- unstyled: s,
1934
- attributes: pe,
1935
- vars: c,
1936
- varsResolver: On
1937
- }), { resolvedClassNames: H, resolvedStyles: ye } = ne({
1938
- classNames: i,
1939
- styles: o,
1940
- props: n
1941
- }), be = z(_n(f) || _n(p) ? "bigint" : "number");
1942
- _n(f) ? be.current = "bigint" : typeof f == "number" && (be.current = "number");
1943
- let xe = be.current === "bigint", [U, W] = T({
1944
- value: f,
1945
- defaultValue: p,
1946
- finalValue: "",
1947
- onChange: l
1948
- }), G = oe !== void 0 && I !== void 0, Se = z(null), Ce = z(null), we = z(0), Te = typeof h == "number" ? h : void 0, K = typeof m == "number" ? m : void 0, Ee = typeof g == "number" ? g : Dn.step, De = typeof j == "number" ? j : Dn.startValue, q = Sn(h), J = Sn(m), Y = Sn(g) ?? BigInt(1), Oe = Sn(j) ?? BigInt(0), ke = (e) => !yn(e, ge) || _e && pn.test(e) ? e : xn(e) ?? e, Ae = (e) => {
1949
- let t = Number(e);
1950
- return Number.isSafeInteger(t) ? t : void 0;
1951
- }, je = (e, t) => {
1952
- t.source === "event" && W(xe ? ke(e.value) : Tn(e.floatValue, e.value) && !fn.test(e.value) && !(_e && pn.test(e.value)) && !mn.test(e.value) && !hn.test(e.value) ? e.floatValue : e.value), d?.(e, t);
1953
- }, Me = (e) => {
1954
- let t = String(e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);
1955
- return t ? Math.max(0, (t[1] ? t[1].length : 0) - (t[2] ? +t[2] : 0)) : 0;
1956
- }, Ne = (e) => {
1957
- Se.current && e !== void 0 && Se.current.setSelectionRange(e, e);
1958
- }, Pe = z(y);
1959
- Pe.current = () => {
1960
- if (xe) {
1961
- if (!bn(U, ge)) return;
1962
- let e, t = U;
1963
- if (typeof t == "bigint") {
1964
- let n = t + Y;
1965
- J !== void 0 && n > J && de?.(), e = J !== void 0 && n > J ? J : n;
1966
- } else if (typeof t == "string" && t !== "") {
1967
- let n = xn(t);
1968
- if (n === null) return;
1969
- let r = n + Y;
1970
- J !== void 0 && r > J && de?.(), e = J !== void 0 && r > J ? J : r;
1971
- } else e = Cn(Oe, q, J);
1972
- let n = e.toString();
1973
- W(e), d?.({
1974
- floatValue: Ae(e),
1975
- formattedValue: n,
1976
- value: n
1977
- }, { source: "increment" }), setTimeout(() => Ne(Se.current?.value.length), 0);
1978
- return;
1979
- }
1980
- if (!vn(U)) return;
1981
- let e, t = Me(U), n = Me(Ee), r = Math.max(t, n), i = 10 ** r;
1982
- if (!gn(U) && (typeof U != "number" || Number.isNaN(U))) e = w(De, Te, K);
1983
- else if (K !== void 0) {
1984
- let t = (Math.round(Number(U) * i) + Math.round(Ee * i)) / i;
1985
- t > K && de?.(), e = t <= K ? t : K;
1986
- } else e = (Math.round(Number(U) * i) + Math.round(Ee * i)) / i;
1987
- let a = e.toFixed(r);
1988
- W(parseFloat(a)), d?.({
1989
- floatValue: parseFloat(a),
1990
- formattedValue: a,
1991
- value: a
1992
- }, { source: "increment" }), setTimeout(() => Ne(Se.current?.value.length), 0);
1993
- };
1994
- let X = z(y);
1995
- X.current = () => {
1996
- if (xe) {
1997
- if (!bn(U, ge)) return;
1998
- let e, t = q === void 0 ? ge ? void 0 : BigInt(0) : q, n = U;
1999
- if (typeof n == "bigint") {
2000
- let r = n - Y;
2001
- t !== void 0 && r < t && ue?.(), e = t !== void 0 && r < t ? t : r;
2002
- } else if (typeof n == "string" && n !== "") {
2003
- let r = xn(n);
2004
- if (r === null) return;
2005
- let i = r - Y;
2006
- t !== void 0 && i < t && ue?.(), e = t !== void 0 && i < t ? t : i;
2007
- } else e = Cn(Oe, t, J);
2008
- let r = e.toString();
2009
- W(e), d?.({
2010
- floatValue: Ae(e),
2011
- formattedValue: r,
2012
- value: r
2013
- }, { source: "decrement" }), setTimeout(() => Ne(Se.current?.value.length), 0);
2014
- return;
2015
- }
2016
- if (!vn(U)) return;
2017
- let e, t = Te === void 0 ? ge ? -(2 ** 53 - 1) : 0 : Te, n = Me(U), r = Me(Ee), i = Math.max(n, r), a = 10 ** i;
2018
- if (!gn(U) && typeof U != "number" || Number.isNaN(U)) e = w(De, t, K);
2019
- else {
2020
- let n = (Math.round(Number(U) * a) - Math.round(Ee * a)) / a;
2021
- t !== void 0 && n < t && ue?.(), e = t !== void 0 && n < t ? t : n;
2022
- }
2023
- let o = e.toFixed(i);
2024
- W(parseFloat(o)), d?.({
2025
- floatValue: parseFloat(o),
2026
- formattedValue: o,
2027
- value: o
2028
- }, { source: "decrement" }), setTimeout(() => Ne(Se.current?.value.length), 0);
2029
- };
2030
- let Fe = (e) => {
2031
- let t = e.clipboardData.getData("text"), n = he.decimalSeparator || ".", r = (R || [".", ","]).filter((e) => e !== n);
2032
- if (r.some((e) => t.includes(e))) {
2033
- e.preventDefault();
2034
- let i = t;
2035
- r.forEach((e) => {
2036
- i = i.split(e).join(n);
2037
- });
2038
- let a = Se.current;
2039
- if (a) {
2040
- let e = a.selectionStart ?? 0, t = a.selectionEnd ?? 0, n = a.value, r = n.substring(0, e) + i + n.substring(t);
2041
- (Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype, "value")?.set)?.call(a, r), a.dispatchEvent(new Event("change", { bubbles: !0 }));
2042
- let o = e + i.length;
2043
- setTimeout(() => Ne(o), 0);
2044
- }
2045
- }
2046
- he.onPaste?.(e);
2047
- }, Ie = (e) => {
2048
- O?.(e), !(F || !ce) && (e.key === "ArrowUp" && (e.preventDefault(), Pe.current?.()), e.key === "ArrowDown" && (e.preventDefault(), X.current?.()));
2049
- }, Le = (e) => {
2050
- if (k?.(e), e.key === "Backspace") {
2051
- let t = Se.current;
2052
- t && t.selectionStart === 0 && t.selectionStart === t.selectionEnd && (e.preventDefault(), window.setTimeout(() => Ne(0), 0));
2053
- }
2054
- }, Re = (e) => {
2055
- le && setTimeout(() => e.currentTarget.select(), 0), fe?.(e);
2056
- }, ze = (e) => {
2057
- let t = U;
2058
- xe ? (x === "blur" && typeof t == "bigint" && (t = Cn(t, q, J)), L && typeof t == "string" && (t = An(t, {
2059
- min: q,
2060
- max: J,
2061
- clampBehavior: x
2062
- }))) : (x === "blur" && typeof t == "number" && (t = w(t, Te, K)), L && typeof t == "string" && Me(t) < 15 && (t = kn(t, K, Te))), U !== t && W(t), S?.(e);
2063
- };
2064
- te(A, {
2065
- increment: Pe.current,
2066
- decrement: X.current
2067
- });
2068
- let Be = (e) => {
2069
- e ? Pe.current?.() : X.current?.(), we.current += 1;
2070
- }, Ve = (e) => {
2071
- if (Be(e), G) {
2072
- let t = typeof I == "number" ? I : I(we.current);
2073
- Ce.current = window.setTimeout(() => Ve(e), t);
2074
- }
2075
- }, He = (e, t) => {
2076
- e.preventDefault(), Se.current?.focus(), Be(t), G && (Ce.current = window.setTimeout(() => Ve(t), oe));
2077
- }, Ue = () => {
2078
- Ce.current && window.clearTimeout(Ce.current), Ce.current = null, we.current = 0;
2079
- }, We = /* @__PURE__ */ V("div", {
2080
- ...ve("controls"),
2081
- children: [/* @__PURE__ */ B(re, {
2082
- ...ve("control"),
2083
- tabIndex: -1,
2084
- "aria-hidden": !0,
2085
- disabled: M || typeof U == "number" && K !== void 0 && U >= K || typeof U == "bigint" && J !== void 0 && U >= J,
2086
- mod: { direction: "up" },
2087
- onMouseDown: (e) => e.preventDefault(),
2088
- onPointerDown: (e) => {
2089
- He(e, !0);
2090
- },
2091
- onPointerUp: Ue,
2092
- onPointerLeave: Ue,
2093
- children: /* @__PURE__ */ B(un, { direction: "up" })
2094
- }), /* @__PURE__ */ B(re, {
2095
- ...ve("control"),
2096
- tabIndex: -1,
2097
- "aria-hidden": !0,
2098
- disabled: M || typeof U == "number" && Te !== void 0 && U <= Te || typeof U == "bigint" && q !== void 0 && U <= q,
2099
- mod: { direction: "down" },
2100
- onMouseDown: (e) => e.preventDefault(),
2101
- onPointerDown: (e) => {
2102
- He(e, !1);
2103
- },
2104
- onPointerUp: Ue,
2105
- onPointerLeave: Ue,
2106
- children: /* @__PURE__ */ B(un, { direction: "down" })
2107
- })]
2108
- });
2109
- return /* @__PURE__ */ B(D, {
2110
- component: ln,
2111
- allowNegative: N,
2112
- className: e(dn.root, r),
2113
- size: ie,
2114
- ...he,
2115
- inputMode: xe ? "numeric" : "decimal",
2116
- readOnly: F,
2117
- disabled: M,
2118
- value: typeof U == "bigint" ? U.toString() : U,
2119
- getInputRef: P(me, Se),
2120
- onValueChange: je,
2121
- rightSection: _ || F || !(xe ? bn(U, ge) : vn(U)) ? v : v || We,
2122
- classNames: H,
2123
- styles: ye,
2124
- unstyled: s,
2125
- __staticSelector: "NumberInput",
2126
- decimalScale: xe ? 0 : C ? E : 0,
2127
- onPaste: Fe,
2128
- onFocus: Re,
2129
- onKeyDown: Ie,
2130
- onKeyDownCapture: Le,
2131
- rightSectionPointerEvents: ee ?? (M ? "none" : void 0),
2132
- rightSectionWidth: ae ?? `var(--ni-right-section-width-${ie || "sm"})`,
2133
- allowLeadingZeros: se,
2134
- allowedDecimalSeparators: R,
2135
- onBlur: ze,
2136
- attributes: pe,
2137
- isAllowed: (e) => {
2138
- if (!(!b || b(e))) return !1;
2139
- if (x !== "strict") return !0;
2140
- if (!xe) return En(e.floatValue, Te, K);
2141
- if (e.value === "" || e.value === "-") return !0;
2142
- let t = xn(e.value);
2143
- return t === null ? !0 : (q === void 0 || t >= q) && (J === void 0 || t <= J);
2144
- }
2145
- });
2146
- });
2147
- jn.classes = {
2148
- ...D.classes,
2149
- ...dn
2150
- }, jn.varsResolver = On, jn.displayName = "@mantine/core/NumberInput";
2151
- //#endregion
2152
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Select/Select.mjs
2153
- var Mn = {
2154
- withCheckIcon: !0,
2155
- allowDeselect: !0,
2156
- checkIconPosition: "left",
2157
- openOnFocus: !0
2158
- }, Nn = s((e) => {
2159
- let t = u("Select", Mn, e), { classNames: n, styles: r, unstyled: i, vars: a, dropdownOpened: o, defaultDropdownOpened: s, onDropdownClose: c, onDropdownOpen: l, onFocus: d, onBlur: f, onClick: p, onChange: m, data: h, value: g, defaultValue: _, selectFirstOptionOnChange: v, selectFirstOptionOnDropdownOpen: y, onOptionSubmit: b, comboboxProps: x, readOnly: S, disabled: C, filter: w, limit: E, withScrollArea: O, maxDropdownHeight: A, size: j, searchable: M, rightSection: ee, checkIconPosition: N, withCheckIcon: P, withAlignedLabels: te, nothingFoundMessage: re, name: F, form: ie, searchValue: ae, defaultSearchValue: I, onSearchChange: oe, allowDeselect: se, error: ce, rightSectionPointerEvents: L, id: le, clearable: ue, clearSectionMode: fe, clearButtonProps: me, hiddenInputProps: he, renderOption: ge, onClear: _e, autoComplete: ve, scrollAreaProps: H, __defaultRightSection: ye, __clearSection: be, __clearable: U, chevronColor: W, autoSelectOnBlur: G, openOnFocus: Se, attributes: Ce, ...K } = t, Ee = de(() => we(h), [h]), De = z({}), q = de(() => Te(Ee), [Ee]), J = k(le), [Y, Oe, ke] = T({
2160
- value: g,
2161
- defaultValue: _,
2162
- finalValue: null,
2163
- onChange: m
2164
- }), Ae = Y == null ? void 0 : `${Y}` in q ? q[`${Y}`] : De.current[`${Y}`], je = xe(Ae), [Me, Ne, Pe] = T({
2165
- value: ae,
2166
- defaultValue: I,
2167
- finalValue: Ae ? Ae.label : "",
2168
- onChange: oe
2169
- }), X = Je({
2170
- opened: o,
2171
- defaultOpened: s,
2172
- onDropdownOpen: () => {
2173
- l?.(), y ? X.selectFirstOption() : X.updateSelectedOptionIndex("active", { scrollIntoView: !0 });
2174
- },
2175
- onDropdownClose: () => {
2176
- c?.(), setTimeout(X.resetSelectedOption, 0);
2177
- }
2178
- }), Fe = (e) => {
2179
- Ne(e), X.resetSelectedOption();
2180
- }, { resolvedClassNames: Ie, resolvedStyles: Le } = ne({
2181
- props: t,
2182
- styles: r,
2183
- classNames: n
2184
- });
2185
- R(() => {
2186
- v && X.selectFirstOption();
2187
- }, [v, Me]), R(() => {
2188
- g === null && Fe(""), g != null && Ae && (je?.value !== Ae.value || je?.label !== Ae.label) && Fe(Ae.label);
2189
- }, [g, Ae]), R(() => {
2190
- !ke && !Pe && Fe(Y == null ? "" : `${Y}` in q ? q[`${Y}`]?.label : De.current[`${Y}`]?.label || "");
2191
- }, [q, Y]), R(() => {
2192
- Y && `${Y}` in q && (De.current[`${Y}`] = q[`${Y}`]);
2193
- }, [q, Y]);
2194
- let Re = /* @__PURE__ */ B(Z.ClearButton, {
2195
- ...me,
2196
- onClear: () => {
2197
- Oe(null, null), Fe(""), _e?.();
2198
- }
2199
- }), ze = ue && !!Y && !C && !S;
2200
- return /* @__PURE__ */ V(pe, { children: [/* @__PURE__ */ V(Z, {
2201
- store: X,
2202
- __staticSelector: "Select",
2203
- classNames: Ie,
2204
- styles: Le,
2205
- unstyled: i,
2206
- readOnly: S,
2207
- size: j,
2208
- attributes: Ce,
2209
- keepMounted: G,
2210
- onOptionSubmit: (e) => {
2211
- b?.(e);
2212
- let t = se && `${q[e].value}` == `${Y}` ? null : q[e], n = t ? t.value : null;
2213
- n !== Y && Oe(n, t), !ke && Fe(n == null ? "" : t?.label || ""), X.closeDropdown();
2214
- },
2215
- ...x,
2216
- children: [/* @__PURE__ */ B(Z.Target, {
2217
- targetType: M ? "input" : "button",
2218
- autoComplete: ve,
2219
- withExpandedAttribute: !0,
2220
- children: /* @__PURE__ */ B(D, {
2221
- id: J,
2222
- __defaultRightSection: /* @__PURE__ */ B(Z.Chevron, {
2223
- size: j,
2224
- error: ce,
2225
- unstyled: i,
2226
- color: W
2227
- }),
2228
- __clearSection: Re,
2229
- __clearable: ze,
2230
- __clearSectionMode: fe,
2231
- rightSection: ee,
2232
- rightSectionPointerEvents: L || "none",
2233
- ...K,
2234
- size: j,
2235
- __staticSelector: "Select",
2236
- disabled: C,
2237
- readOnly: S || !M,
2238
- value: Me,
2239
- onChange: (e) => {
2240
- Fe(e.currentTarget.value), X.openDropdown(), v && X.selectFirstOption();
2241
- },
2242
- onFocus: (e) => {
2243
- Se && M && X.openDropdown(), d?.(e);
2244
- },
2245
- onBlur: (e) => {
2246
- G && X.clickSelectedOption(), M && X.closeDropdown();
2247
- let t = Y != null && (`${Y}` in q ? q[`${Y}`] : De.current[`${Y}`]);
2248
- Fe(t && t.label || ""), f?.(e);
2249
- },
2250
- onClick: (e) => {
2251
- M ? X.openDropdown() : X.toggleDropdown(), p?.(e);
2252
- },
2253
- classNames: Ie,
2254
- styles: Le,
2255
- unstyled: i,
2256
- pointer: !M,
2257
- error: ce,
2258
- attributes: Ce
2259
- })
2260
- }), /* @__PURE__ */ B(rt, {
2261
- data: Ee,
2262
- hidden: S || C,
2263
- filter: w,
2264
- search: Me,
2265
- limit: E,
2266
- hiddenWhenEmpty: !re,
2267
- withScrollArea: O,
2268
- maxDropdownHeight: A,
2269
- filterOptions: !!M && Ae?.label !== Me,
2270
- value: Y,
2271
- checkIconPosition: N,
2272
- withCheckIcon: P,
2273
- withAlignedLabels: te,
2274
- nothingFoundMessage: re,
2275
- unstyled: i,
2276
- labelId: K.label ? `${J}-label` : void 0,
2277
- "aria-label": K.label ? void 0 : K["aria-label"],
2278
- renderOption: ge,
2279
- scrollAreaProps: H
2280
- })]
2281
- }), /* @__PURE__ */ B(Z.HiddenInput, {
2282
- value: Y,
2283
- name: F,
2284
- form: ie,
2285
- disabled: C,
2286
- ...he
2287
- })] });
2288
- });
2289
- Nn.classes = {
2290
- ...D.classes,
2291
- ...Z.classes
2292
- }, Nn.displayName = "@mantine/core/Select";
2293
- //#endregion
2294
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Switch/SwitchGroup/SwitchGroup.mjs
2295
- var Pn = se(null), Fn = { hiddenInputValuesSeparator: "," }, In = s(((e) => {
2296
- let { value: t, defaultValue: n, onChange: r, size: i, wrapperProps: a, children: o, readOnly: s, name: c, hiddenInputValuesSeparator: l, hiddenInputProps: d, maxSelectedValues: f, disabled: p, ...m } = u("SwitchGroup", Fn, e), [h, g] = T({
2297
- value: t,
2298
- defaultValue: n,
2299
- finalValue: [],
2300
- onChange: r
2301
- }), _ = (e) => {
2302
- let t = e.currentTarget.value;
2303
- if (s) return;
2304
- let n = h.includes(t);
2305
- !n && f && h.length >= f || g(n ? h.filter((e) => e !== t) : [...h, t]);
2306
- }, v = (e) => {
2307
- if (p) return !0;
2308
- if (!f) return !1;
2309
- let t = h.includes(e), n = h.length >= f;
2310
- return !t && n;
2311
- }, y = h.join(l);
2312
- return /* @__PURE__ */ B(Pn, {
2313
- value: {
2314
- value: h,
2315
- onChange: _,
2316
- size: i,
2317
- isDisabled: v
2318
- },
2319
- children: /* @__PURE__ */ V(E.Wrapper, {
2320
- size: i,
2321
- ...a,
2322
- ...m,
2323
- labelElement: "div",
2324
- __staticSelector: "SwitchGroup",
2325
- children: [/* @__PURE__ */ B(j, {
2326
- role: "group",
2327
- children: o
2328
- }), /* @__PURE__ */ B("input", {
2329
- type: "hidden",
2330
- name: c,
2331
- value: y,
2332
- ...d
2333
- })]
2334
- })
2335
- });
2336
- }));
2337
- In.classes = E.Wrapper.classes, In.displayName = "@mantine/core/SwitchGroup";
2338
- //#endregion
2339
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Switch/Switch.module.mjs
2340
- var Ln = {
2341
- root: "m_5f93f3bb",
2342
- input: "m_926b4011",
2343
- track: "m_9307d992",
2344
- thumb: "m_93039a1d",
2345
- trackLabel: "m_8277e082"
2346
- }, Rn = {
2347
- labelPosition: "right",
2348
- withThumbIndicator: !0
2349
- }, zn = r((e, { radius: t, color: r, size: i }) => ({ root: {
2350
- "--switch-radius": t === void 0 ? void 0 : c(t),
2351
- "--switch-height": n(i, "switch-height"),
2352
- "--switch-width": n(i, "switch-width"),
2353
- "--switch-thumb-size": n(i, "switch-thumb-size"),
2354
- "--switch-label-font-size": n(i, "switch-label-font-size"),
2355
- "--switch-track-label-padding": n(i, "switch-track-label-padding"),
2356
- "--switch-color": r ? h(r, e) : void 0
2357
- } })), Bn = p((e) => {
2358
- let t = u("Switch", Rn, e), { classNames: n, className: r, style: i, styles: o, unstyled: s, vars: c, color: l, label: d, offLabel: p, onLabel: h, id: g, size: _, radius: v, wrapperProps: y, thumbIcon: b, checked: x, defaultChecked: S, onChange: C, labelPosition: w, description: E, error: D, disabled: O, variant: A, rootRef: j, mod: ee, withThumbIndicator: N, attributes: P, ...te } = t, ne = ce(Pn), re = _ || ne?.size, F = a({
2359
- name: "Switch",
2360
- props: t,
2361
- classes: Ln,
2362
- className: r,
2363
- style: i,
2364
- classNames: n,
2365
- styles: o,
2366
- unstyled: s,
2367
- attributes: P,
2368
- vars: c,
2369
- varsResolver: zn
2370
- }), { styleProps: ie, rest: ae } = f(te), I = k(g), oe = {
2371
- checked: ne?.value.includes(ae.value) ?? x,
2372
- onChange: (e) => {
2373
- ne?.onChange(e), C?.(e);
2374
- }
2375
- }, se = O || ne?.isDisabled?.(ae.value), [L, R] = T({
2376
- value: oe.checked ?? x,
2377
- defaultValue: S,
2378
- finalValue: !1
2379
- });
2380
- return /* @__PURE__ */ V(M, {
2381
- ...F("root"),
2382
- __staticSelector: "Switch",
2383
- __stylesApiProps: t,
2384
- id: I,
2385
- size: re,
2386
- labelPosition: w,
2387
- label: d,
2388
- description: E,
2389
- error: D,
2390
- disabled: se,
2391
- bodyElement: "label",
2392
- labelElement: "span",
2393
- classNames: n,
2394
- styles: o,
2395
- unstyled: s,
2396
- "data-checked": oe.checked,
2397
- variant: A,
2398
- ref: j,
2399
- mod: ee,
2400
- attributes: P,
2401
- inert: ae.inert,
2402
- ...ie,
2403
- ...y,
2404
- children: [/* @__PURE__ */ B("input", {
2405
- ...ae,
2406
- ...oe,
2407
- disabled: se,
2408
- checked: L,
2409
- "data-checked": oe.checked,
2410
- onChange: (e) => {
2411
- oe.onChange?.(e), R(e.currentTarget.checked);
2412
- },
2413
- id: I,
2414
- type: "checkbox",
2415
- role: "switch",
2416
- inert: ae.inert,
2417
- ...F("input")
2418
- }), /* @__PURE__ */ V(m, {
2419
- "aria-hidden": "true",
2420
- component: "span",
2421
- mod: {
2422
- error: D,
2423
- "label-position": w,
2424
- "without-labels": !h && !p
2425
- },
2426
- ...F("track"),
2427
- children: [/* @__PURE__ */ B(m, {
2428
- component: "span",
2429
- mod: {
2430
- "reduce-motion": !0,
2431
- "with-thumb-indicator": N && !b
2432
- },
2433
- ...F("thumb"),
2434
- children: b
2435
- }), /* @__PURE__ */ B("span", {
2436
- ...F("trackLabel"),
2437
- children: L ? h : p
2438
- })]
2439
- })]
2440
- });
2441
- });
2442
- Bn.classes = {
2443
- ...Ln,
2444
- ...ee
2445
- }, Bn.varsResolver = zn, Bn.displayName = "@mantine/core/Switch", Bn.Group = In;
2446
- //#endregion
2447
- //#region src/components/Shared/DirtyIndicator/DirtyIndicator.tsx
2448
- var Vn = ({ size: e = 16 }) => /* @__PURE__ */ B("span", {
2449
- style: {
2450
- color: "orange",
2451
- fontWeight: "bold",
2452
- marginLeft: "8px",
2453
- display: "flex",
2454
- alignItems: "center"
2455
- },
2456
- title: "Unsaved changes",
2457
- children: ae("FcSynchronize", { size: e })
2458
- }), $ = {
2459
- root: "_root_1aqog_1",
2460
- menuTrigger: "_menuTrigger_1aqog_19",
2461
- element: "_element_1aqog_37",
2462
- sliderLabel: "_sliderLabel_1aqog_44",
2463
- select: "_select_1aqog_50",
2464
- textInput: "_textInput_1aqog_51",
2465
- numberInput: "_numberInput_1aqog_52",
2466
- slider: "_slider_1aqog_44"
2467
- }, Hn = {
2468
- size: 16,
2469
- style: { display: "block" }
2470
- }, Un = ({ name: e }) => ae(e, Hn), Wn = ({ label: e, icon: t, items: n, rightSection: r }) => {
2471
- let [i, a] = fe(!1);
2472
- return /* @__PURE__ */ V(Q, {
2473
- opened: i,
2474
- onClose: () => a(!1),
2475
- withinPortal: !0,
2476
- keepMounted: !0,
2477
- closeOnItemClick: !0,
2478
- closeOnEscape: !0,
2479
- closeOnClickOutside: !0,
2480
- position: "bottom-start",
2481
- children: [/* @__PURE__ */ B(Q.Target, { children: /* @__PURE__ */ V("button", {
2482
- className: $.menuTrigger,
2483
- onClick: () => a((e) => !e),
2484
- children: [
2485
- t && /* @__PURE__ */ B(() => ae(t ?? "", Hn), {}),
2486
- /* @__PURE__ */ B("span", { children: e }),
2487
- r && /* @__PURE__ */ B("span", {
2488
- style: { marginLeft: "auto" },
2489
- children: r
2490
- })
2491
- ]
2492
- }) }), /* @__PURE__ */ B(Q.Dropdown, { children: n.map((e, t) => e.type === "divider" ? /* @__PURE__ */ B(Q.Divider, {}, t) : e.type === "slider" ? /* @__PURE__ */ B(Q.Item, {
2493
- closeMenuOnClick: !1,
2494
- children: /* @__PURE__ */ V("div", {
2495
- style: { minWidth: 120 },
2496
- children: [e.label && /* @__PURE__ */ B("div", {
2497
- style: { marginBottom: 4 },
2498
- children: e.label
2499
- }), /* @__PURE__ */ B(N, {
2500
- min: e.min,
2501
- max: e.max,
2502
- value: e.value,
2503
- onChange: e.onChange,
2504
- size: "sm"
2505
- })]
2506
- })
2507
- }, t) : /* @__PURE__ */ B(Q.Item, {
2508
- disabled: e.disabled,
2509
- onClick: e.onClick,
2510
- leftSection: e.icon ? /* @__PURE__ */ B(Un, { name: e.icon }) : void 0,
2511
- children: e.label
2512
- }, t)) })]
2513
- });
2514
- }, Gn = ({ elements: e }) => {
2515
- let [t, n] = fe({}), r = (e, t) => {
2516
- n((n) => ({
2517
- ...n,
2518
- [e]: {
2519
- ...n[e] ?? {
2520
- isHovered: !1,
2521
- isDragging: !1
2522
- },
2523
- ...t
2524
- }
2525
- }));
2526
- };
2527
- return /* @__PURE__ */ B("div", {
2528
- className: $.root,
2529
- role: "menubar",
2530
- "aria-label": "Application menu",
2531
- children: e.map((e, n) => {
2532
- switch (e.type) {
2533
- case "menu": return /* @__PURE__ */ B(Wn, {
2534
- label: e.label,
2535
- icon: e.icon,
2536
- items: e.items,
2537
- rightSection: e.rightSection
2538
- }, n);
2539
- case "combobox": return /* @__PURE__ */ B("div", {
2540
- className: $.element,
2541
- children: /* @__PURE__ */ B(Nn, {
2542
- data: e.options,
2543
- value: e.value,
2544
- onChange: (t) => t && e.onChange(t),
2545
- placeholder: e.label,
2546
- size: "sm",
2547
- className: $.select,
2548
- comboboxProps: { withinPortal: !0 }
2549
- })
2550
- }, n);
2551
- case "switch": return /* @__PURE__ */ B("div", {
2552
- className: $.element,
2553
- children: /* @__PURE__ */ B(Bn, {
2554
- label: e.label,
2555
- checked: e.checked,
2556
- onChange: (t) => e.onChange(t.currentTarget.checked),
2557
- size: "sm"
2558
- })
2559
- }, n);
2560
- case "slider": {
2561
- let i = t[n] ?? {
2562
- isHovered: !1,
2563
- isDragging: !1
2564
- }, a = i.isHovered || i.isDragging;
2565
- return /* @__PURE__ */ B(S, {
2566
- label: (e.labelFormat ?? ((e) => String(e)))(e.value),
2567
- position: "bottom",
2568
- withArrow: !0,
2569
- opened: a,
2570
- children: /* @__PURE__ */ V("div", {
2571
- className: $.element,
2572
- onMouseEnter: () => r(n, { isHovered: !0 }),
2573
- onMouseLeave: () => r(n, { isHovered: !1 }),
2574
- children: [e.label && /* @__PURE__ */ B("span", {
2575
- className: $.sliderLabel,
2576
- children: e.label
2577
- }), /* @__PURE__ */ B(N, {
2578
- min: e.min,
2579
- max: e.max,
2580
- value: e.value,
2581
- onChange: (t) => {
2582
- e.onChange(t), r(n, { isDragging: !0 });
2583
- },
2584
- onChangeEnd: (t) => {
2585
- e.onChange(t), r(n, { isDragging: !1 });
2586
- },
2587
- size: "sm",
2588
- className: $.slider,
2589
- marks: e.marks
2590
- })]
2591
- })
2592
- }, n);
2593
- }
2594
- case "text-input": return /* @__PURE__ */ B("div", {
2595
- className: $.element,
2596
- children: /* @__PURE__ */ B(O, {
2597
- placeholder: e.placeholder,
2598
- value: e.value,
2599
- onChange: (t) => e.onChange(t.currentTarget.value),
2600
- size: "sm",
2601
- className: $.textInput
2602
- })
2603
- }, n);
2604
- case "number-input": return /* @__PURE__ */ B("div", {
2605
- className: $.element,
2606
- children: /* @__PURE__ */ B(jn, {
2607
- label: e.label,
2608
- value: e.value,
2609
- onChange: (t) => e.onChange(typeof t == "number" ? t : 0),
2610
- min: e.min,
2611
- max: e.max,
2612
- step: e.step ?? 1,
2613
- placeholder: e.placeholder,
2614
- size: "sm",
2615
- className: $.numberInput
2616
- })
2617
- }, n);
2618
- case "select": return /* @__PURE__ */ B("div", {
2619
- className: $.element,
2620
- children: /* @__PURE__ */ B(Nn, {
2621
- label: e.label,
2622
- data: e.options,
2623
- value: e.value,
2624
- onChange: (t) => t && e.onChange(t),
2625
- size: "sm",
2626
- className: $.select,
2627
- comboboxProps: { withinPortal: !0 }
2628
- })
2629
- }, n);
2630
- case "dirty-indicator": return /* @__PURE__ */ B("span", {
2631
- style: { marginLeft: "auto" },
2632
- children: /* @__PURE__ */ B(Vn, {})
2633
- }, n);
2634
- }
2635
- })
2636
- });
2637
- };
2638
- //#endregion
2639
- export { Vn as n, Q as r, Gn as t };