@fde-desktop/fde-core 0.4.9 → 0.4.11

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 (186) hide show
  1. package/dist/{AppEmptyState-Bxpit0JV.js → AppEmptyState-Boej96TB.js} +1 -1
  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-BC4UPNuw.cjs +1 -0
  20. package/dist/FilesApp-D8MqvC5X.js +210 -0
  21. package/dist/ImageViewerApp-B1niWF75.cjs +1 -0
  22. package/dist/{ImageViewerApp-BaLP3gkO.js → ImageViewerApp-iojtyFEf.js} +5 -5
  23. package/dist/{ImageViewerMenuBar-CabGSi9r.js → ImageViewerMenuBar-BIsUokxV.js} +2 -2
  24. package/dist/ImageViewerMenuBar-BgzgSF3v.cjs +1 -0
  25. package/dist/MenuEditApp-BHptoJbz.cjs +1 -0
  26. package/dist/{MenuEditApp-BTRppYnD.js → MenuEditApp-CJUbJaqh.js} +138 -143
  27. package/dist/MenuEditMenuBar-CCOSPAUe.cjs +1 -0
  28. package/dist/{MenuEditMenuBar-x1IQrHP2.js → MenuEditMenuBar-DnCL-kaZ.js} +3 -3
  29. package/dist/NotesApp-BmQIBtJ2.cjs +1 -0
  30. package/dist/{NotesApp-CQe7UfBC.js → NotesApp-DJ2dGt4-.js} +5 -5
  31. package/dist/NotesMenuBar-BzojwMtH.cjs +1 -0
  32. package/dist/{NotesMenuBar-VhpIe68v.js → NotesMenuBar-DILZTjnT.js} +3 -3
  33. package/dist/{PdfApp-DL_R9-Nc.js → PdfApp-IjY_GtnW.js} +3 -3
  34. package/dist/PdfApp-krW8UI97.cjs +1 -0
  35. package/dist/{PdfMenuBar-DZCLSOpR.js → PdfMenuBar-Bd5MTZcZ.js} +1 -1
  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-YWiJHaxq.js → SettingsMenuBar-ktC0viTd.js} +3 -3
  41. package/dist/UploaderApp-CbypD538.js +263 -0
  42. package/dist/UploaderApp-D_qD3O70.cjs +1 -0
  43. package/dist/{VscIcon-DBfVnArE.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-F8bgLqFl.js → desktopStore-8cSZlj7s.js} +407 -477
  48. package/dist/desktopStore-C1jR6Fdb.cjs +1 -0
  49. package/dist/imageViewerStore-Dfylg59V.cjs +1 -0
  50. package/dist/index.cjs +1 -1
  51. package/dist/index.css +1 -1
  52. package/dist/index.d.ts +16 -6
  53. package/dist/index.js +1646 -1960
  54. package/dist/menuEditStore-CYwtfD6H.cjs +1 -0
  55. package/dist/notesStore-CrWTO6oB.cjs +1 -0
  56. package/dist/settingsAppStore-DuYZNeFf.cjs +1 -0
  57. package/dist/useAdaptiveDimensions-3Lz4X0Tc.cjs +1 -0
  58. package/dist/{useAdaptiveDimensions-AVDc_qPa.js → useAdaptiveDimensions-DxNLJ7R5.js} +1 -1
  59. package/dist/{useCloseInterceptor-BZd3VILp.js → useCloseInterceptor-CIxhOZx1.js} +1 -1
  60. package/dist/useCloseInterceptor-CdX-09Ib.cjs +1 -0
  61. package/dist/useDynamicIcon-CK6SjEv5.cjs +1 -0
  62. package/dist/useOpenApp-D-FOY88T.cjs +1 -0
  63. package/dist/{useOpenApp-CBIm7Gzl.js → useOpenApp-DkZLFFCH.js} +51 -67
  64. package/dist/{useResolvedUrl-DQpLqOoL.js → useResolvedUrl-B6x4xy0x.js} +1 -2
  65. package/dist/useResolvedUrl-Bb39DpVy.cjs +1 -0
  66. package/package.json +2 -1
  67. package/dist/AccordionChevron-DxpOyInK.js +0 -26
  68. package/dist/AccordionChevron-kn5kSrEc.cjs +0 -1
  69. package/dist/ActionIcon-Drh4p6Fv.js +0 -145
  70. package/dist/ActionIcon-alk2zZD6.cjs +0 -1
  71. package/dist/AppEmptyState-BWCUbf-B.cjs +0 -1
  72. package/dist/AppIcon-BU7a3ZNH.cjs +0 -1
  73. package/dist/AppIcon-XumS3bIG.js +0 -80
  74. package/dist/AppMenuBar-B9U0n1Vv.cjs +0 -1
  75. package/dist/AppMenuBar-CnIEVjr8.js +0 -2049
  76. package/dist/Box-DSKR_qaa.js +0 -1579
  77. package/dist/Box-zW6Twge8.cjs +0 -1
  78. package/dist/Button-DMlnrqyx.cjs +0 -1
  79. package/dist/Button-wTOTQKxF.js +0 -178
  80. package/dist/CalendarApp-B_e1B1Yn.cjs +0 -1
  81. package/dist/CalendarApp-C-l9D6nd.cjs +0 -1
  82. package/dist/CalendarApp-D0ftTCTG.js +0 -1399
  83. package/dist/Center-CmxXB9ql.js +0 -25
  84. package/dist/Center-DKUE2pER.cjs +0 -1
  85. package/dist/CheckIcon-CZhtJD1O.cjs +0 -1
  86. package/dist/CheckIcon-N5qBqXQJ.js +0 -25
  87. package/dist/CodeServerApp-BOoGwZ7r.cjs +0 -1
  88. package/dist/CodeServerApp-Be3I5EGg.cjs +0 -1
  89. package/dist/CodeServerApp-DW18EZxa.js +0 -150
  90. package/dist/ColorPicker-BCNqi02x.js +0 -997
  91. package/dist/ColorPicker-BrDE7tMO.cjs +0 -1
  92. package/dist/CreateItemApp-B12M1E_1.cjs +0 -1
  93. package/dist/CreateItemApp-TAAprby3.js +0 -400
  94. package/dist/CreateItemApp-ePB6ujNl.cjs +0 -1
  95. package/dist/DeviceInfoApp-BMF18BGo.cjs +0 -1
  96. package/dist/DeviceInfoApp-DRy0H3aT.cjs +0 -1
  97. package/dist/DeviceInfoApp-lgpwkeRR.js +0 -223
  98. package/dist/DownloadProgress-EoyCaD5O.js +0 -174
  99. package/dist/DownloadProgress-VNdj22U8.cjs +0 -1
  100. package/dist/FileIcon-7JaSR3Gn.js +0 -89
  101. package/dist/FileIcon-CIXopWLv.cjs +0 -1
  102. package/dist/FilePickerApp-DaMgEqKh.js +0 -409
  103. package/dist/FilePickerApp-DjmuSFqa.cjs +0 -1
  104. package/dist/FilesApp-Bp7wfrBZ.cjs +0 -1
  105. package/dist/FilesApp-BpJJRKhi.cjs +0 -1
  106. package/dist/FilesApp-Cj94QG5o.js +0 -225
  107. package/dist/Group-CtBJSfCo.js +0 -48
  108. package/dist/Group-Dsrf6lEK.cjs +0 -1
  109. package/dist/ImageViewerApp-DlHGeB3S.cjs +0 -1
  110. package/dist/ImageViewerApp-DoXd_Swu.cjs +0 -1
  111. package/dist/ImageViewerMenuBar-SAI7UNz7.cjs +0 -1
  112. package/dist/ImageViewerMenuBar-_Jr29gii.cjs +0 -1
  113. package/dist/MenuEditApp-BJjlPTOa.cjs +0 -1
  114. package/dist/MenuEditApp-JPsGT-S3.cjs +0 -1
  115. package/dist/MenuEditMenuBar-BydGkqMw.cjs +0 -1
  116. package/dist/MenuEditMenuBar-DptlwVPQ.cjs +0 -1
  117. package/dist/NotesApp-BOcRGO7w.cjs +0 -1
  118. package/dist/NotesApp-OL07JXRE.cjs +0 -1
  119. package/dist/NotesMenuBar-BSI_2Y7p.cjs +0 -1
  120. package/dist/NotesMenuBar-Df6aW85J.cjs +0 -1
  121. package/dist/Paper-BX_9odR6.js +0 -30
  122. package/dist/Paper-D8-BaBx2.cjs +0 -1
  123. package/dist/PdfApp-CNEbty5v.cjs +0 -1
  124. package/dist/PdfApp-CVv3ZCaM.cjs +0 -1
  125. package/dist/PdfMenuBar--E6kDyrT.cjs +0 -1
  126. package/dist/PdfMenuBar-Dj5cJUkg.cjs +0 -1
  127. package/dist/SettingsApp-BlmHuAjT.js +0 -1831
  128. package/dist/SettingsApp-CNvIgf5B.cjs +0 -1
  129. package/dist/SettingsApp-DWxanNE4.cjs +0 -1
  130. package/dist/SettingsMenuBar-CBoOBCfx.cjs +0 -1
  131. package/dist/SettingsMenuBar-DQooFkZN.cjs +0 -1
  132. package/dist/Slider-BUiHxjKO.cjs +0 -1
  133. package/dist/Slider-t-NcD60t.js +0 -1176
  134. package/dist/Stack-Bp1Ek2Gp.js +0 -34
  135. package/dist/Stack-D4jAiRfc.cjs +0 -1
  136. package/dist/StorybookApp-CDLV_kja.cjs +0 -1
  137. package/dist/StorybookApp-DKwlPCmo.js +0 -10
  138. package/dist/TerminalApp-BCB7i1lR.cjs +0 -1
  139. package/dist/TerminalApp-BYc_gHLe.js +0 -326
  140. package/dist/TerminalApp-Dviz6aP2.cjs +0 -1
  141. package/dist/TerminalMenuBar-D5tPmgR_.js +0 -113
  142. package/dist/TerminalMenuBar-DNshPmCa.cjs +0 -1
  143. package/dist/TerminalMenuBar-HzMSR7XP.cjs +0 -1
  144. package/dist/TextInput-C-JtGWn1.js +0 -981
  145. package/dist/TextInput-CrsmcOip.cjs +0 -1
  146. package/dist/Tooltip-D5Cd9wtz.cjs +0 -1
  147. package/dist/Tooltip-DOeIvhrO.js +0 -1142
  148. package/dist/UnstyledButton-DGaG-e_G.js +0 -25
  149. package/dist/UnstyledButton-DX2pTahr.cjs +0 -1
  150. package/dist/UploaderApp-C6xA5Rrf2.cjs +0 -1
  151. package/dist/UploaderApp-DnHIRxB_.cjs +0 -1
  152. package/dist/UploaderApp-qBfpukR_.js +0 -488
  153. package/dist/VscIcon-CcMdrFoJ.cjs +0 -1
  154. package/dist/create-safe-context-Bboj0GWC.cjs +0 -1
  155. package/dist/create-safe-context-XT2cxc14.js +0 -12
  156. package/dist/desktopStore-CZoA9VHO.cjs +0 -1
  157. package/dist/getRuntime-BFK0-8R1.cjs +0 -1
  158. package/dist/getRuntime-DAPqFH2W.js +0 -63
  159. package/dist/imageViewerStore-BB_tssZR.cjs +0 -1
  160. package/dist/is-element-Bu_JY8Qy.js +0 -7
  161. package/dist/is-element-CdV0xajp.cjs +0 -1
  162. package/dist/menuEditStore-CTeM_dns.cjs +0 -1
  163. package/dist/notesStore-BCEl1D_v.cjs +0 -1
  164. package/dist/settingsAppStore-CMBc13VU.cjs +0 -1
  165. package/dist/terminalStore-IWdf4Mm6.js +0 -30
  166. package/dist/terminalStore-iIuyodfK.cjs +0 -1
  167. package/dist/use-merged-ref-BT8_u6vW.js +0 -25
  168. package/dist/use-merged-ref-n9Gw9LNn.cjs +0 -1
  169. package/dist/use-resolved-styles-api-8OXE2oRq.cjs +0 -1
  170. package/dist/use-resolved-styles-api-DNUlJJZf.js +0 -21
  171. package/dist/use-uncontrolled-A4hm9ATM.js +0 -23
  172. package/dist/use-uncontrolled-DDJVQiM_.cjs +0 -1
  173. package/dist/useAdaptiveDimensions-CfITBJ_m.cjs +0 -1
  174. package/dist/useCloseInterceptor-yntBEzNc.cjs +0 -1
  175. package/dist/useDynamicIcon-DJ_il30E.cjs +0 -1
  176. package/dist/useOpenApp-DW4x79Zg.cjs +0 -1
  177. package/dist/useResolvedUrl-BkMPM1fM.cjs +0 -1
  178. /package/dist/{Colors-zP2AFgU3.cjs → Colors-CNJbU7oq.cjs} +0 -0
  179. /package/dist/{Colors-ClnDxnyA.js → Colors-CuABn2W4.js} +0 -0
  180. /package/dist/{imageViewerStore-C5kWz0o7.js → imageViewerStore-COrD02Zu.js} +0 -0
  181. /package/dist/{menuEditStore-Cj1zAwxQ.js → menuEditStore-CxsgLiQu.js} +0 -0
  182. /package/dist/{notesStore-BPyRTHEc.js → notesStore-Dgah46U5.js} +0 -0
  183. /package/dist/{settingsAppStore-BDQ3ts1y.js → settingsAppStore-DHZhi6Rl.js} +0 -0
  184. /package/dist/{useDynamicIcon-Bf0t2foA.js → useDynamicIcon-_wGeWu-b.js} +0 -0
  185. /package/dist/{useMenuBarUtils-nmu9yehT.js → useMenuBarUtils-ChAfI7OA.js} +0 -0
  186. /package/dist/{useMenuBarUtils-nJIPJGIQ.cjs → useMenuBarUtils-DAap0ukp.cjs} +0 -0
@@ -1,1142 +0,0 @@
1
- import { A as e, D as t, I as n, c as r, d as i, h as a, j as o, l as s, n as c, r as l, t as u, v as d, x as f } from "./Box-DSKR_qaa.js";
2
- import { t as p } from "./is-element-Bu_JY8Qy.js";
3
- import { t as m } from "./create-safe-context-XT2cxc14.js";
4
- import { n as h, t as g } from "./use-uncontrolled-A4hm9ATM.js";
5
- import { c as _, d as v, f as y, u as ee } from "./TextInput-C-JtGWn1.js";
6
- import { r as b, t as x } from "./use-merged-ref-BT8_u6vW.js";
7
- import { t as te } from "./use-resolved-styles-api-DNUlJJZf.js";
8
- import S, { Children as C, cloneElement as ne, createContext as w, use as T, useCallback as E, useEffect as D, useEffectEvent as O, useRef as k, useState as A } from "react";
9
- import { Fragment as j, jsx as M, jsxs as N } from "react/jsx-runtime";
10
- import { createPortal as P } from "react-dom";
11
- import F from "clsx";
12
- import { FloatingDelayGroup as re, arrow as I, autoUpdate as L, flip as R, getOverflowAncestors as z, hide as ie, inline as B, limitShift as V, offset as H, shift as U, size as ae, useDelayGroup as oe, useDismiss as W, useFloating as se, useFocus as ce, useHover as le, useInteractions as G, useRole as ue } from "@floating-ui/react";
13
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/core/utils/get-default-z-index/get-default-z-index.mjs
14
- var de = {
15
- app: 100,
16
- modal: 200,
17
- popover: 300,
18
- overlay: 400,
19
- max: 9999
20
- };
21
- function K(e) {
22
- return de[e];
23
- }
24
- //#endregion
25
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/core/utils/noop/noop.mjs
26
- var q = () => {};
27
- //#endregion
28
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/core/utils/close-on-escape/close-on-escape.mjs
29
- function J(e, t = { active: !0 }) {
30
- return typeof e != "function" || !t.active ? t.onKeyDown || q : (n) => {
31
- n.key === "Escape" && (e(n), t.onTrigger?.());
32
- };
33
- }
34
- //#endregion
35
- //#region ../../node_modules/.bun/@mantine+hooks@9.0.0+b1ab299f0a400331/node_modules/@mantine/hooks/esm/use-click-outside/use-click-outside.mjs
36
- var Y = ["mousedown", "touchstart"];
37
- function fe(e, t, n) {
38
- let r = k(null), i = t || Y, a = O((t) => {
39
- let { target: i } = t ?? {};
40
- if (Array.isArray(n)) {
41
- let r = !document.body.contains(i) && i?.tagName !== "HTML";
42
- n.every((e) => !!e && !t.composedPath().includes(e)) && !r && e(t);
43
- } else r.current && !r.current.contains(i) && e(t);
44
- });
45
- return D(() => (i.forEach((e) => document.addEventListener(e, a)), () => {
46
- i.forEach((e) => document.removeEventListener(e, a));
47
- }), []), r;
48
- }
49
- //#endregion
50
- //#region ../../node_modules/.bun/@mantine+hooks@9.0.0+b1ab299f0a400331/node_modules/@mantine/hooks/esm/use-focus-return/use-focus-return.mjs
51
- function X({ opened: e, shouldReturnFocus: t = !0 }) {
52
- let n = k(null), r = () => {
53
- n.current && "focus" in n.current && typeof n.current.focus == "function" && n.current?.focus({ preventScroll: !0 });
54
- };
55
- return v(() => {
56
- let i = -1, a = (e) => {
57
- e.key === "Tab" && window.clearTimeout(i);
58
- };
59
- return document.addEventListener("keydown", a), e ? n.current = document.activeElement : t && (i = window.setTimeout(r, 10)), () => {
60
- window.clearTimeout(i), document.removeEventListener("keydown", a);
61
- };
62
- }, [e, t]), r;
63
- }
64
- //#endregion
65
- //#region ../../node_modules/.bun/@mantine+hooks@9.0.0+b1ab299f0a400331/node_modules/@mantine/hooks/esm/use-focus-trap/tabbable.mjs
66
- var pe = /input|select|textarea|button|object/, me = "a, input, select, textarea, button, object, [tabindex]";
67
- function he(e) {
68
- return e.style.display === "none";
69
- }
70
- function ge(e) {
71
- if (e.getAttribute("aria-hidden") || e.getAttribute("hidden") || e.getAttribute("type") === "hidden") return !1;
72
- let t = e;
73
- for (; t && !(t === document.body || t.nodeType === 11);) {
74
- if (he(t)) return !1;
75
- t = t.parentNode;
76
- }
77
- return !0;
78
- }
79
- function _e(e) {
80
- let t = e.getAttribute("tabindex");
81
- return t === null && (t = void 0), parseInt(t, 10);
82
- }
83
- function ve(e) {
84
- let t = e.nodeName.toLowerCase(), n = !Number.isNaN(_e(e));
85
- return (pe.test(t) && !e.disabled || e instanceof HTMLAnchorElement && e.href || n) && ge(e);
86
- }
87
- function ye(e) {
88
- let t = _e(e);
89
- return (Number.isNaN(t) || t >= 0) && ve(e);
90
- }
91
- function be(e) {
92
- return Array.from(e.querySelectorAll(me)).filter(ye);
93
- }
94
- //#endregion
95
- //#region ../../node_modules/.bun/@mantine+hooks@9.0.0+b1ab299f0a400331/node_modules/@mantine/hooks/esm/use-focus-trap/scope-tab.mjs
96
- function xe(e, t) {
97
- let n = be(e);
98
- if (!n.length) {
99
- t.preventDefault();
100
- return;
101
- }
102
- let r = n[t.shiftKey ? 0 : n.length - 1], i = e.getRootNode(), a = r === i.activeElement || e === i.activeElement, o = i.activeElement;
103
- if (o.tagName === "INPUT" && o.getAttribute("type") === "radio" && (a = n.filter((e) => e.getAttribute("type") === "radio" && e.getAttribute("name") === o.getAttribute("name")).includes(r)), !a) return;
104
- t.preventDefault();
105
- let s = n[t.shiftKey ? n.length - 1 : 0];
106
- s && s.focus();
107
- }
108
- //#endregion
109
- //#region ../../node_modules/.bun/@mantine+hooks@9.0.0+b1ab299f0a400331/node_modules/@mantine/hooks/esm/use-focus-trap/use-focus-trap.mjs
110
- function Se(e = !0) {
111
- let t = k(null), n = (e) => {
112
- let t = e.querySelector("[data-autofocus]");
113
- if (!t) {
114
- let n = Array.from(e.querySelectorAll(me));
115
- t = n.find(ye) || n.find(ve) || null, !t && ve(e) && (t = e);
116
- }
117
- t ? t.focus({ preventScroll: !0 }) : console.warn("[@mantine/hooks/use-focus-trap] Failed to find focusable element within provided node", e);
118
- }, r = E((r) => {
119
- e && r !== null && t.current !== r && (r ? (setTimeout(() => {
120
- r.getRootNode() ? n(r) : console.warn("[@mantine/hooks/use-focus-trap] Ref node is not part of the dom", r);
121
- }), t.current = r) : t.current = null);
122
- }, [e]);
123
- return D(() => {
124
- if (!e) return;
125
- t.current && setTimeout(() => n(t.current));
126
- let r = (e) => {
127
- e.key === "Tab" && t.current && xe(t.current, e);
128
- };
129
- return document.addEventListener("keydown", r), () => document.removeEventListener("keydown", r);
130
- }, [e]), r;
131
- }
132
- //#endregion
133
- //#region ../../node_modules/.bun/@mantine+hooks@9.0.0+b1ab299f0a400331/node_modules/@mantine/hooks/esm/use-move/use-move.mjs
134
- function Z(e) {
135
- return {
136
- x: h(e.x, 0, 1),
137
- y: h(e.y, 0, 1)
138
- };
139
- }
140
- function Ce(e, t, n = "ltr") {
141
- let r = k(!1), i = k(!1), a = k(0), [o, s] = A(!1);
142
- return D(() => {
143
- r.current = !0;
144
- }, []), {
145
- ref: E((o) => {
146
- let c = ({ x: t, y: i }) => {
147
- cancelAnimationFrame(a.current), a.current = requestAnimationFrame(() => {
148
- if (r.current && o) {
149
- o.style.userSelect = "none";
150
- let r = o.getBoundingClientRect();
151
- if (r.width && r.height) {
152
- let a = h((t - r.left) / r.width, 0, 1);
153
- e({
154
- x: n === "ltr" ? a : 1 - a,
155
- y: h((i - r.top) / r.height, 0, 1)
156
- });
157
- }
158
- }
159
- });
160
- }, l = () => {
161
- document.addEventListener("mousemove", m), document.addEventListener("mouseup", f), document.addEventListener("touchmove", _, { passive: !1 }), document.addEventListener("touchend", f);
162
- }, u = () => {
163
- document.removeEventListener("mousemove", m), document.removeEventListener("mouseup", f), document.removeEventListener("touchmove", _), document.removeEventListener("touchend", f);
164
- }, d = () => {
165
- !i.current && r.current && (i.current = !0, typeof t?.onScrubStart == "function" && t.onScrubStart(), s(!0), l());
166
- }, f = () => {
167
- i.current && r.current && (i.current = !1, s(!1), u(), setTimeout(() => {
168
- typeof t?.onScrubEnd == "function" && t.onScrubEnd();
169
- }, 0));
170
- }, p = (e) => {
171
- d(), e.preventDefault(), m(e);
172
- }, m = (e) => c({
173
- x: e.clientX,
174
- y: e.clientY
175
- }), g = (e) => {
176
- e.cancelable && e.preventDefault(), d(), _(e);
177
- }, _ = (e) => {
178
- e.cancelable && e.preventDefault(), c({
179
- x: e.changedTouches[0].clientX,
180
- y: e.changedTouches[0].clientY
181
- });
182
- };
183
- return o?.addEventListener("mousedown", p), o?.addEventListener("touchstart", g, { passive: !1 }), () => {
184
- o && (o.removeEventListener("mousedown", p), o.removeEventListener("touchstart", g));
185
- };
186
- }, [n, e]),
187
- active: o
188
- };
189
- }
190
- //#endregion
191
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/core/utils/get-ref-prop/get-ref-prop.mjs
192
- function we(e) {
193
- let t = S.version;
194
- return typeof S.version != "string" || t.startsWith("18.") ? e?.ref : e?.props?.ref;
195
- }
196
- //#endregion
197
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/core/utils/get-single-element-child/get-single-element-child.mjs
198
- function Q(e) {
199
- let t = C.toArray(e);
200
- return t.length !== 1 || !p(t[0]) ? null : t[0];
201
- }
202
- //#endregion
203
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/core/Box/get-style-object/get-style-object.mjs
204
- function Te(e, t) {
205
- return Array.isArray(e) ? [...e].reduce((e, n) => ({
206
- ...e,
207
- ...Te(n, t)
208
- }), {}) : typeof e == "function" ? e(t) : e ?? {};
209
- }
210
- //#endregion
211
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/core/DirectionProvider/DirectionProvider.mjs
212
- var Ee = w({
213
- dir: "ltr",
214
- toggleDirection: () => {},
215
- setDirection: () => {}
216
- });
217
- function De() {
218
- return T(Ee);
219
- }
220
- //#endregion
221
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/VisuallyHidden/VisuallyHidden.module.mjs
222
- var Oe = { root: "m_515a97f8" }, ke = l((e) => {
223
- let t = s("VisuallyHidden", null, e), { classNames: n, className: i, style: a, styles: o, unstyled: c, vars: l, attributes: d, ...f } = t;
224
- return /* @__PURE__ */ M(u, {
225
- component: "span",
226
- ...r({
227
- name: "VisuallyHidden",
228
- classes: Oe,
229
- props: t,
230
- className: i,
231
- style: a,
232
- classNames: n,
233
- styles: o,
234
- unstyled: c,
235
- attributes: d
236
- })("root"),
237
- ...f
238
- });
239
- });
240
- ke.classes = Oe, ke.displayName = "@mantine/core/VisuallyHidden";
241
- //#endregion
242
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/utils/Floating/FloatingArrow/get-arrow-position-styles.mjs
243
- function Ae(e, t, n, r) {
244
- return e === "center" || r === "center" ? { top: t } : e === "end" ? { bottom: n } : e === "start" ? { top: n } : {};
245
- }
246
- function je(e, t, n, r, i) {
247
- return e === "center" || r === "center" ? { left: t } : e === "end" ? { [i === "ltr" ? "right" : "left"]: n } : e === "start" ? { [i === "ltr" ? "left" : "right"]: n } : {};
248
- }
249
- var Me = {
250
- bottom: "borderTopLeftRadius",
251
- left: "borderTopRightRadius",
252
- right: "borderBottomLeftRadius",
253
- top: "borderBottomRightRadius"
254
- };
255
- function Ne({ position: e, arrowSize: t, arrowOffset: n, arrowRadius: r, arrowPosition: i, arrowX: a, arrowY: o, dir: s }) {
256
- let [c, l = "center"] = e.split("-"), u = {
257
- width: t,
258
- height: t,
259
- transform: "rotate(45deg)",
260
- position: "absolute",
261
- [Me[c]]: r
262
- }, d = -t / 2;
263
- return c === "left" ? {
264
- ...u,
265
- ...Ae(l, o, n, i),
266
- right: d,
267
- borderLeftColor: "transparent",
268
- borderBottomColor: "transparent",
269
- clipPath: "polygon(100% 0, 0 0, 100% 100%)"
270
- } : c === "right" ? {
271
- ...u,
272
- ...Ae(l, o, n, i),
273
- left: d,
274
- borderRightColor: "transparent",
275
- borderTopColor: "transparent",
276
- clipPath: "polygon(0 100%, 0 0, 100% 100%)"
277
- } : c === "top" ? {
278
- ...u,
279
- ...je(l, a, n, i, s),
280
- bottom: d,
281
- borderTopColor: "transparent",
282
- borderLeftColor: "transparent",
283
- clipPath: "polygon(0 100%, 100% 100%, 100% 0)"
284
- } : c === "bottom" ? {
285
- ...u,
286
- ...je(l, a, n, i, s),
287
- top: d,
288
- borderBottomColor: "transparent",
289
- borderRightColor: "transparent",
290
- clipPath: "polygon(0 100%, 0 0, 100% 0)"
291
- } : {};
292
- }
293
- //#endregion
294
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/utils/Floating/FloatingArrow/FloatingArrow.mjs
295
- function Pe({ position: e, arrowSize: t, arrowOffset: n, arrowRadius: r, arrowPosition: i, visible: a, arrowX: o, arrowY: s, style: c, ...l }) {
296
- let { dir: u } = De();
297
- return a ? /* @__PURE__ */ M("div", {
298
- ...l,
299
- style: {
300
- ...c,
301
- ...Ne({
302
- position: e,
303
- arrowSize: t,
304
- arrowOffset: n,
305
- arrowRadius: r,
306
- arrowPosition: i,
307
- dir: u,
308
- arrowX: o,
309
- arrowY: s
310
- })
311
- }
312
- }) : null;
313
- }
314
- Pe.displayName = "@mantine/core/FloatingArrow";
315
- //#endregion
316
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/utils/Floating/get-floating-position/get-floating-position.mjs
317
- function Fe(e, t) {
318
- if (e === "rtl" && (t.includes("right") || t.includes("left"))) {
319
- let [e, n] = t.split("-"), r = e === "right" ? "left" : "right";
320
- return n === void 0 ? r : `${r}-${n}`;
321
- }
322
- return t;
323
- }
324
- //#endregion
325
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Overlay/Overlay.module.mjs
326
- var Ie = { root: "m_9814e45f" }, Le = { zIndex: K("modal") }, Re = t((t, { gradient: r, color: i, backgroundOpacity: a, blur: o, radius: s, zIndex: c }) => ({ root: {
327
- "--overlay-bg": r || (i !== void 0 || a !== void 0) && d(i || "#000", a ?? .6) || void 0,
328
- "--overlay-filter": o ? `blur(${n(o)})` : void 0,
329
- "--overlay-radius": s === void 0 ? void 0 : e(s),
330
- "--overlay-z-index": c?.toString()
331
- } })), ze = c((e) => {
332
- let t = s("Overlay", Le, e), { classNames: n, className: i, style: a, styles: o, unstyled: c, vars: l, fixed: d, center: f, children: p, radius: m, zIndex: h, gradient: g, blur: _, color: v, backgroundOpacity: y, mod: ee, attributes: b, ...x } = t;
333
- return /* @__PURE__ */ M(u, {
334
- ...r({
335
- name: "Overlay",
336
- props: t,
337
- classes: Ie,
338
- className: i,
339
- style: a,
340
- classNames: n,
341
- styles: o,
342
- unstyled: c,
343
- attributes: b,
344
- vars: l,
345
- varsResolver: Re
346
- })("root"),
347
- mod: [{
348
- center: f,
349
- fixed: d
350
- }, ee],
351
- ...x,
352
- children: p
353
- });
354
- });
355
- ze.classes = Ie, ze.varsResolver = Re, ze.displayName = "@mantine/core/Overlay";
356
- //#endregion
357
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Portal/Portal.mjs
358
- function Be(e) {
359
- let t = document.createElement("div");
360
- return t.setAttribute("data-portal", "true"), typeof e.className == "string" && t.classList.add(...e.className.split(" ").filter(Boolean)), typeof e.style == "object" && Object.assign(t.style, e.style), typeof e.id == "string" && t.setAttribute("id", e.id), t;
361
- }
362
- function Ve({ target: e, reuseTargetNode: t, ...n }) {
363
- if (e) return typeof e == "string" ? document.querySelector(e) || Be(n) : e;
364
- if (t) {
365
- let e = document.querySelector("[data-mantine-shared-portal-node]");
366
- if (e) return e;
367
- let t = Be(n);
368
- return t.setAttribute("data-mantine-shared-portal-node", "true"), document.body.appendChild(t), t;
369
- }
370
- return Be(n);
371
- }
372
- var He = { reuseTargetNode: !0 }, Ue = l((e) => {
373
- let { children: t, target: n, reuseTargetNode: r, ref: i, ...a } = s("Portal", He, e), [o, c] = A(!1), l = k(null);
374
- return y(() => (c(!0), l.current = Ve({
375
- target: n,
376
- reuseTargetNode: r,
377
- ...a
378
- }), x(i, l.current), !n && !r && l.current && document.body.appendChild(l.current), () => {
379
- !n && !r && l.current && document.body.removeChild(l.current);
380
- }), [n]), !o || !l.current ? null : P(/* @__PURE__ */ M(j, { children: t }), l.current);
381
- });
382
- Ue.displayName = "@mantine/core/Portal";
383
- //#endregion
384
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Portal/OptionalPortal.mjs
385
- var $ = l(({ withinPortal: e = !0, children: t, ...n }) => a() === "test" || !e ? /* @__PURE__ */ M(j, { children: t }) : /* @__PURE__ */ M(Ue, {
386
- ...n,
387
- children: t
388
- }));
389
- $.displayName = "@mantine/core/OptionalPortal";
390
- //#endregion
391
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Transition/get-transition-props/get-transition-props.mjs
392
- var We = {
393
- duration: 100,
394
- transition: "fade"
395
- };
396
- function Ge(e, t) {
397
- return {
398
- ...We,
399
- ...t,
400
- ...e
401
- };
402
- }
403
- //#endregion
404
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Popover/Popover.context.mjs
405
- var [Ke, qe] = m("Popover component was not found in the tree");
406
- //#endregion
407
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/FocusTrap/FocusTrap.mjs
408
- function Je({ children: e, active: t = !0, refProp: n = "ref", innerRef: r }) {
409
- let i = b(Se(t), r), a = Q(e);
410
- return a ? ne(a, { [n]: i }) : e;
411
- }
412
- function Ye(e) {
413
- return /* @__PURE__ */ M(ke, {
414
- tabIndex: -1,
415
- "data-autofocus": !0,
416
- ...e
417
- });
418
- }
419
- Je.displayName = "@mantine/core/FocusTrap", Ye.displayName = "@mantine/core/FocusTrapInitialFocus", Je.InitialFocus = Ye;
420
- //#endregion
421
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Popover/Popover.module.mjs
422
- var Xe = {
423
- dropdown: "m_38a85659",
424
- arrow: "m_a31dc6c1",
425
- overlay: "m_3d7bc908"
426
- }, Ze = l((e) => {
427
- let t = s("PopoverDropdown", null, e), { className: r, style: i, vars: a, children: o, onKeyDownCapture: c, variant: l, classNames: d, styles: f, ref: p, ...m } = t, h = qe(), g = X({
428
- opened: h.opened,
429
- shouldReturnFocus: h.returnFocus
430
- }), v = h.withRoles ? {
431
- "aria-labelledby": h.getTargetId(),
432
- id: h.getDropdownId(),
433
- role: "dialog",
434
- tabIndex: -1
435
- } : {}, y = b(p, h.floating);
436
- return h.disabled ? null : /* @__PURE__ */ M($, {
437
- ...h.portalProps,
438
- withinPortal: h.withinPortal,
439
- children: /* @__PURE__ */ M(_, {
440
- mounted: h.opened,
441
- ...h.transitionProps,
442
- transition: h.transitionProps?.transition || "fade",
443
- duration: h.transitionProps?.duration ?? 150,
444
- keepMounted: h.keepMounted,
445
- exitDuration: typeof h.transitionProps?.exitDuration == "number" ? h.transitionProps.exitDuration : h.transitionProps?.duration,
446
- children: (e) => /* @__PURE__ */ M(Je, {
447
- active: h.trapFocus && h.opened,
448
- innerRef: y,
449
- children: /* @__PURE__ */ N(u, {
450
- ...v,
451
- ...m,
452
- variant: l,
453
- onKeyDownCapture: J(() => {
454
- h.onClose?.(), h.onDismiss?.();
455
- }, {
456
- active: h.closeOnEscape,
457
- onTrigger: g,
458
- onKeyDown: c
459
- }),
460
- "data-position": h.placement,
461
- "data-fixed": h.floatingStrategy === "fixed" || void 0,
462
- ...h.getStyles("dropdown", {
463
- className: r,
464
- props: t,
465
- classNames: d,
466
- styles: f,
467
- style: [
468
- {
469
- ...e,
470
- zIndex: h.zIndex,
471
- top: h.y ?? 0,
472
- left: h.x ?? 0,
473
- width: h.width === "target" ? void 0 : n(h.width),
474
- ...h.referenceHidden ? { display: "none" } : null
475
- },
476
- h.resolvedStyles.dropdown,
477
- f?.dropdown,
478
- i
479
- ]
480
- }),
481
- children: [o, /* @__PURE__ */ M(Pe, {
482
- ref: h.arrowRef,
483
- arrowX: h.arrowX,
484
- arrowY: h.arrowY,
485
- visible: h.withArrow,
486
- position: h.placement,
487
- arrowSize: h.arrowSize,
488
- arrowRadius: h.arrowRadius,
489
- arrowOffset: h.arrowOffset,
490
- arrowPosition: h.arrowPosition,
491
- ...h.getStyles("arrow", {
492
- props: t,
493
- classNames: d,
494
- styles: f
495
- })
496
- })]
497
- })
498
- })
499
- })
500
- });
501
- });
502
- Ze.classes = Xe, Ze.displayName = "@mantine/core/PopoverDropdown";
503
- //#endregion
504
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Popover/PopoverTarget/PopoverTarget.mjs
505
- var Qe = {
506
- refProp: "ref",
507
- popupType: "dialog"
508
- }, $e = l((e) => {
509
- let { children: t, refProp: n, popupType: r, ref: i, ...a } = s("PopoverTarget", Qe, e), o = Q(t);
510
- if (!o) throw Error("Popover.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");
511
- let c = a, l = qe(), u = b(l.reference, we(o), i), d = l.withRoles ? {
512
- "aria-haspopup": r,
513
- "aria-expanded": l.opened,
514
- "aria-controls": l.opened ? l.getDropdownId() : void 0,
515
- id: l.getTargetId()
516
- } : {}, f = o.props;
517
- return ne(o, {
518
- ...c,
519
- ...d,
520
- ...l.targetProps,
521
- className: F(l.targetProps.className, c.className, f.className),
522
- [n]: u,
523
- ...l.controlled ? null : { onClick: (e) => {
524
- l.onToggle(), f.onClick?.(e);
525
- } }
526
- });
527
- });
528
- $e.displayName = "@mantine/core/PopoverTarget";
529
- //#endregion
530
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Popover/use-popover.mjs
531
- function et(e) {
532
- if (e === void 0) return {
533
- shift: !0,
534
- flip: !0
535
- };
536
- let t = { ...e };
537
- return e.shift === void 0 && (t.shift = !0), e.flip === void 0 && (t.flip = !0), t;
538
- }
539
- function tt(e, t, n) {
540
- let r = et(e.middlewares), i = [H(e.offset), ie()];
541
- return e.dropdownVisible && n !== "test" && e.preventPositionChangeWhenVisible && (r.flip = !1), r.flip && i.push(typeof r.flip == "boolean" ? R() : R(r.flip)), r.shift && i.push(U(typeof r.shift == "boolean" ? {
542
- limiter: V(),
543
- padding: 5
544
- } : {
545
- limiter: V(),
546
- padding: 5,
547
- ...r.shift
548
- })), r.inline && i.push(typeof r.inline == "boolean" ? B() : B(r.inline)), i.push(I({
549
- element: e.arrowRef,
550
- padding: e.arrowOffset
551
- })), (r.size || e.width === "target") && i.push(ae({
552
- ...typeof r.size == "boolean" ? {} : r.size,
553
- apply({ rects: n, availableWidth: i, availableHeight: a, ...o }) {
554
- let s = t().refs.floating.current?.style ?? {};
555
- r.size && (typeof r.size == "object" && r.size.apply ? r.size.apply({
556
- rects: n,
557
- availableWidth: i,
558
- availableHeight: a,
559
- ...o
560
- }) : Object.assign(s, {
561
- maxWidth: `${i}px`,
562
- maxHeight: `${a}px`
563
- })), e.width === "target" && Object.assign(s, { width: `${n.reference.width}px` });
564
- }
565
- })), i;
566
- }
567
- function nt(e) {
568
- let t = a(), [n, r] = g({
569
- value: e.opened,
570
- defaultValue: e.defaultOpened,
571
- finalValue: !1,
572
- onChange: e.onChange
573
- }), i = k(n), o = () => {
574
- n && !e.disabled && r(!1);
575
- }, s = () => {
576
- e.disabled || r(!n);
577
- }, c = se({
578
- strategy: e.strategy,
579
- placement: e.preventPositionChangeWhenVisible ? e.positionRef.current : e.position,
580
- middleware: tt(e, () => c, t),
581
- whileElementsMounted: e.keepMounted ? void 0 : L
582
- });
583
- return D(() => {
584
- if (!(!c.refs.reference.current || !c.refs.floating.current) && n) return L(c.refs.reference.current, c.refs.floating.current, c.update);
585
- }, [n, c.update]), v(() => {
586
- e.onPositionChange?.(c.placement), e.positionRef.current = c.placement;
587
- }, [c.placement, e.preventPositionChangeWhenVisible]), v(() => {
588
- n !== i.current && (n ? e.onOpen?.() : e.onClose?.()), i.current = n;
589
- }, [
590
- n,
591
- e.onClose,
592
- e.onOpen
593
- ]), y(() => {
594
- let t = -1;
595
- return n && (t = window.setTimeout(() => e.setDropdownVisible(!0), 4)), () => {
596
- window.clearTimeout(t);
597
- };
598
- }, [n, e.position]), {
599
- floating: c,
600
- controlled: typeof e.opened == "boolean",
601
- opened: n,
602
- onClose: o,
603
- onToggle: s
604
- };
605
- }
606
- //#endregion
607
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Popover/Popover.mjs
608
- var rt = {
609
- position: "bottom",
610
- offset: 8,
611
- transitionProps: {
612
- transition: "fade",
613
- duration: 150
614
- },
615
- middlewares: {
616
- flip: !0,
617
- shift: !0,
618
- inline: !1
619
- },
620
- arrowSize: 7,
621
- arrowOffset: 5,
622
- arrowRadius: 0,
623
- arrowPosition: "side",
624
- closeOnClickOutside: !0,
625
- withinPortal: !0,
626
- closeOnEscape: !0,
627
- trapFocus: !1,
628
- withRoles: !0,
629
- returnFocus: !1,
630
- withOverlay: !1,
631
- hideDetached: !0,
632
- clickOutsideEvents: ["mousedown", "touchstart"],
633
- zIndex: K("popover"),
634
- __staticSelector: "Popover",
635
- width: "max-content"
636
- }, it = t((t, { radius: n, shadow: r }) => ({ dropdown: {
637
- "--popover-radius": n === void 0 ? void 0 : e(n),
638
- "--popover-shadow": o(r)
639
- } }));
640
- function at(e) {
641
- let t = s("Popover", rt, e), { children: n, position: i, offset: o, onPositionChange: c, opened: l, transitionProps: u, onExitTransitionEnd: d, onEnterTransitionEnd: f, width: p, middlewares: m, withArrow: h, arrowSize: g, arrowOffset: v, arrowRadius: y, arrowPosition: b, unstyled: x, classNames: S, styles: C, closeOnClickOutside: ne, withinPortal: w, portalProps: T, closeOnEscape: D, clickOutsideEvents: O, trapFocus: j, onClose: P, onDismiss: F, onOpen: re, onChange: I, zIndex: L, radius: R, shadow: z, id: ie, defaultOpened: B, __staticSelector: V, withRoles: H, disabled: U, returnFocus: ae, variant: oe, keepMounted: W, vars: se, floatingStrategy: ce, withOverlay: le, overlayProps: G, hideDetached: ue, attributes: de, preventPositionChangeWhenVisible: K, ...q } = t, J = r({
642
- name: V,
643
- props: t,
644
- classes: Xe,
645
- classNames: S,
646
- styles: C,
647
- unstyled: x,
648
- attributes: de,
649
- rootSelector: "dropdown",
650
- vars: se,
651
- varsResolver: it
652
- }), { resolvedStyles: Y } = te({
653
- classNames: S,
654
- styles: C,
655
- props: t
656
- }), [X, pe] = A(l ?? B ?? !1), me = k(i), he = k(null), [ge, _e] = A(null), [ve, ye] = A(null), { dir: be } = De(), xe = a(), Se = ee(ie), Z = nt({
657
- middlewares: m,
658
- width: p,
659
- position: Fe(be, i),
660
- offset: typeof o == "number" ? o + (h ? g / 2 : 0) : o,
661
- arrowRef: he,
662
- arrowOffset: v,
663
- onPositionChange: c,
664
- opened: l,
665
- defaultOpened: B,
666
- onChange: I,
667
- onOpen: re,
668
- onClose: P,
669
- onDismiss: F,
670
- strategy: ce,
671
- dropdownVisible: X,
672
- setDropdownVisible: pe,
673
- positionRef: me,
674
- disabled: U,
675
- preventPositionChangeWhenVisible: K,
676
- keepMounted: W
677
- });
678
- fe(() => {
679
- ne && (Z.onClose(), F?.());
680
- }, O, [ge, ve]);
681
- let Ce = E((e) => {
682
- _e(e), Z.floating.refs.setReference(e);
683
- }, [Z.floating.refs.setReference]), we = E((e) => {
684
- ye(e), Z.floating.refs.setFloating(e);
685
- }, [Z.floating.refs.setFloating]), Q = E(() => {
686
- u?.onExited?.(), d?.(), pe(!1), K || (me.current = i);
687
- }, [
688
- u?.onExited,
689
- d,
690
- K,
691
- i
692
- ]), Te = E(() => {
693
- u?.onEntered?.(), f?.();
694
- }, [u?.onEntered, f]);
695
- return /* @__PURE__ */ N(Ke, {
696
- value: {
697
- returnFocus: ae,
698
- disabled: U,
699
- controlled: Z.controlled,
700
- reference: Ce,
701
- floating: we,
702
- x: Z.floating.x,
703
- y: Z.floating.y,
704
- arrowX: Z.floating?.middlewareData?.arrow?.x,
705
- arrowY: Z.floating?.middlewareData?.arrow?.y,
706
- opened: Z.opened,
707
- arrowRef: he,
708
- transitionProps: {
709
- ...u,
710
- onExited: Q,
711
- onEntered: Te
712
- },
713
- width: p,
714
- withArrow: h,
715
- arrowSize: g,
716
- arrowOffset: v,
717
- arrowRadius: y,
718
- arrowPosition: b,
719
- placement: Z.floating.placement,
720
- trapFocus: j,
721
- withinPortal: w,
722
- portalProps: T,
723
- zIndex: L,
724
- radius: R,
725
- shadow: z,
726
- closeOnEscape: D,
727
- onDismiss: F,
728
- onClose: Z.onClose,
729
- onToggle: Z.onToggle,
730
- getTargetId: () => Se,
731
- getDropdownId: () => `${Se}-dropdown`,
732
- withRoles: H,
733
- targetProps: q,
734
- __staticSelector: V,
735
- classNames: S,
736
- styles: C,
737
- unstyled: x,
738
- variant: oe,
739
- keepMounted: W,
740
- getStyles: J,
741
- resolvedStyles: Y,
742
- floatingStrategy: ce,
743
- referenceHidden: ue && xe !== "test" ? Z.floating.middlewareData.hide?.referenceHidden : !1
744
- },
745
- children: [n, le && /* @__PURE__ */ M(_, {
746
- transition: "fade",
747
- mounted: Z.opened,
748
- duration: u?.duration || 250,
749
- exitDuration: u?.exitDuration || 250,
750
- children: (e) => /* @__PURE__ */ M($, {
751
- withinPortal: w,
752
- children: /* @__PURE__ */ M(ze, {
753
- ...G,
754
- ...J("overlay", {
755
- className: G?.className,
756
- style: [e, G?.style]
757
- })
758
- })
759
- })
760
- })]
761
- });
762
- }
763
- at.Target = $e, at.Dropdown = Ze, at.varsResolver = it, at.displayName = "@mantine/core/Popover", at.extend = (e) => e;
764
- //#endregion
765
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Tooltip/TooltipFloating/use-floating-tooltip.mjs
766
- function ot({ offset: e, position: t, defaultOpened: n }) {
767
- let [r, i] = A(n), a = k(null), { x: o, y: s, elements: c, refs: l, update: u, placement: d } = se({
768
- placement: t,
769
- middleware: [U({
770
- crossAxis: !0,
771
- padding: 5,
772
- rootBoundary: "document"
773
- })]
774
- }), f = d.includes("right") ? e : t.includes("left") ? e * -1 : 0, p = d.includes("bottom") ? e : t.includes("top") ? e * -1 : 0, m = E(({ clientX: e, clientY: t }) => {
775
- l.setPositionReference({ getBoundingClientRect() {
776
- return {
777
- width: 0,
778
- height: 0,
779
- x: e,
780
- y: t,
781
- left: e + f,
782
- top: t + p,
783
- right: e,
784
- bottom: t
785
- };
786
- } });
787
- }, [c.reference]);
788
- return D(() => {
789
- if (l.floating.current) {
790
- let e = a.current;
791
- e.addEventListener("mousemove", m);
792
- let t = z(l.floating.current);
793
- return t.forEach((e) => {
794
- e.addEventListener("scroll", u);
795
- }), () => {
796
- e.removeEventListener("mousemove", m), t.forEach((e) => {
797
- e.removeEventListener("scroll", u);
798
- });
799
- };
800
- }
801
- }, [
802
- c.reference,
803
- l.floating.current,
804
- u,
805
- m,
806
- r
807
- ]), {
808
- handleMouseMove: m,
809
- x: o,
810
- y: s,
811
- opened: r,
812
- setOpened: i,
813
- boundaryRef: a,
814
- floating: l.setFloating
815
- };
816
- }
817
- //#endregion
818
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Tooltip/Tooltip.module.mjs
819
- var st = {
820
- tooltip: "m_1b3c8819",
821
- arrow: "m_f898399f"
822
- }, ct = {
823
- refProp: "ref",
824
- withinPortal: !0,
825
- offset: 10,
826
- position: "right",
827
- zIndex: K("popover")
828
- }, lt = t((t, { radius: n, color: r }) => ({ tooltip: {
829
- "--tooltip-radius": n === void 0 ? void 0 : e(n),
830
- "--tooltip-bg": r ? f(r, t) : void 0,
831
- "--tooltip-color": r ? "var(--mantine-color-white)" : void 0
832
- } })), ut = l((e) => {
833
- let t = s("TooltipFloating", ct, e), { children: n, refProp: a, withinPortal: o, style: c, className: l, classNames: d, styles: f, unstyled: p, radius: m, color: h, label: g, offset: _, position: v, multiline: y, zIndex: ee, disabled: x, defaultOpened: te, variant: S, vars: C, portalProps: w, attributes: T, ref: E, ...D } = t, O = i(), k = r({
834
- name: "TooltipFloating",
835
- props: t,
836
- classes: st,
837
- className: l,
838
- style: c,
839
- classNames: d,
840
- styles: f,
841
- unstyled: p,
842
- attributes: T,
843
- rootSelector: "tooltip",
844
- vars: C,
845
- varsResolver: lt
846
- }), { handleMouseMove: A, x: P, y: F, opened: re, boundaryRef: I, floating: L, setOpened: R } = ot({
847
- offset: _,
848
- position: v,
849
- defaultOpened: te
850
- }), z = Q(n);
851
- if (!z) throw Error("[@mantine/core] Tooltip.Floating component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported");
852
- let ie = b(I, we(z), E), B = z.props, V = (e) => {
853
- B.onMouseEnter?.(e), A(e), R(!0);
854
- }, H = (e) => {
855
- B.onMouseLeave?.(e), R(!1);
856
- };
857
- return /* @__PURE__ */ N(j, { children: [/* @__PURE__ */ M($, {
858
- ...w,
859
- withinPortal: o,
860
- children: /* @__PURE__ */ M(u, {
861
- ...D,
862
- ...k("tooltip", { style: {
863
- ...Te(c, O),
864
- zIndex: ee,
865
- display: !x && re ? "block" : "none",
866
- top: (F && Math.round(F)) ?? "",
867
- left: (P && Math.round(P)) ?? ""
868
- } }),
869
- variant: S,
870
- ref: L,
871
- mod: { multiline: y },
872
- children: g
873
- })
874
- }), ne(z, {
875
- ...B,
876
- [a]: ie,
877
- onMouseEnter: V,
878
- onMouseLeave: H
879
- })] });
880
- });
881
- ut.classes = st, ut.varsResolver = lt, ut.displayName = "@mantine/core/TooltipFloating";
882
- //#endregion
883
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Tooltip/TooltipGroup/TooltipGroup.mjs
884
- var dt = w({ withinGroup: !1 }), ft = {
885
- openDelay: 0,
886
- closeDelay: 0
887
- };
888
- function pt(e) {
889
- let { openDelay: t, closeDelay: n, children: r } = s("TooltipGroup", ft, e);
890
- return /* @__PURE__ */ M(dt, {
891
- value: { withinGroup: !0 },
892
- children: /* @__PURE__ */ M(re, {
893
- delay: {
894
- open: t,
895
- close: n
896
- },
897
- children: r
898
- })
899
- });
900
- }
901
- pt.displayName = "@mantine/core/TooltipGroup", pt.extend = (e) => e;
902
- //#endregion
903
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Tooltip/use-tooltip.mjs
904
- function mt(e) {
905
- if (e === void 0) return {
906
- shift: !0,
907
- flip: !0
908
- };
909
- let t = { ...e };
910
- return e.shift === void 0 && (t.shift = !0), e.flip === void 0 && (t.flip = !0), t;
911
- }
912
- function ht(e) {
913
- let t = mt(e.middlewares), n = [H(e.offset)];
914
- return t.shift && n.push(U(typeof t.shift == "boolean" ? { padding: 8 } : {
915
- padding: 8,
916
- ...t.shift
917
- })), t.flip && n.push(typeof t.flip == "boolean" ? R() : R(t.flip)), n.push(I({
918
- element: e.arrowRef,
919
- padding: e.arrowOffset
920
- })), t.inline ? n.push(typeof t.inline == "boolean" ? B() : B(t.inline)) : e.inline && n.push(B()), n;
921
- }
922
- function gt(e) {
923
- let [t, n] = A(e.defaultOpened), r = typeof e.opened == "boolean" ? e.opened : t, i = T(dt).withinGroup, a = ee(), o = E((e) => {
924
- n(e), e && g(a);
925
- }, [a]), { x: s, y: c, context: l, refs: u, placement: d, middlewareData: { arrow: { x: f, y: p } = {} } } = se({
926
- strategy: e.strategy,
927
- placement: e.position,
928
- open: r,
929
- onOpenChange: o,
930
- middleware: ht(e),
931
- whileElementsMounted: L
932
- }), { delay: m, currentId: h, setCurrentId: g } = oe(l, { id: a }), { getReferenceProps: _, getFloatingProps: y } = G([
933
- le(l, {
934
- enabled: e.events?.hover,
935
- delay: i ? m : {
936
- open: e.openDelay,
937
- close: e.closeDelay
938
- },
939
- mouseOnly: !e.events?.touch
940
- }),
941
- ce(l, {
942
- enabled: e.events?.focus,
943
- visibleOnly: !0
944
- }),
945
- ue(l, { role: "tooltip" }),
946
- W(l, { enabled: e.opened === void 0 })
947
- ]);
948
- v(() => {
949
- e.onPositionChange?.(d);
950
- }, [d]);
951
- let b = r && h && h !== a;
952
- return {
953
- x: s,
954
- y: c,
955
- arrowX: f,
956
- arrowY: p,
957
- reference: u.setReference,
958
- floating: u.setFloating,
959
- getFloatingProps: y,
960
- getReferenceProps: _,
961
- isGroupPhase: b,
962
- opened: r,
963
- placement: d
964
- };
965
- }
966
- //#endregion
967
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Tooltip/Tooltip.mjs
968
- var _t = {
969
- position: "top",
970
- refProp: "ref",
971
- withinPortal: !0,
972
- arrowSize: 4,
973
- arrowOffset: 5,
974
- arrowRadius: 0,
975
- arrowPosition: "side",
976
- offset: 5,
977
- transitionProps: {
978
- duration: 100,
979
- transition: "fade"
980
- },
981
- events: {
982
- hover: !0,
983
- focus: !1,
984
- touch: !1
985
- },
986
- zIndex: K("popover"),
987
- middlewares: {
988
- flip: !0,
989
- shift: !0,
990
- inline: !1
991
- }
992
- }, vt = t((t, { radius: n, color: r, variant: i, autoContrast: a }) => {
993
- let o = t.variantColorResolver({
994
- theme: t,
995
- color: r || t.primaryColor,
996
- autoContrast: a,
997
- variant: i || "filled"
998
- });
999
- return { tooltip: {
1000
- "--tooltip-radius": n === void 0 ? void 0 : e(n),
1001
- "--tooltip-bg": r ? o.background : void 0,
1002
- "--tooltip-color": r ? o.color : void 0
1003
- } };
1004
- }), yt = l((e) => {
1005
- let t = s("Tooltip", _t, e), { children: n, position: i, refProp: a, label: o, openDelay: c, closeDelay: l, onPositionChange: d, opened: f, defaultOpened: p, withinPortal: m, radius: h, color: g, classNames: v, styles: y, unstyled: ee, style: x, className: te, withArrow: S, arrowSize: C, arrowOffset: w, arrowRadius: T, arrowPosition: E, offset: O, transitionProps: A, multiline: P, events: re, zIndex: I, disabled: L, onClick: R, onMouseEnter: z, onMouseLeave: ie, inline: B, variant: V, keepMounted: H, vars: U, portalProps: ae, mod: oe, floatingStrategy: W, middlewares: se, autoContrast: ce, attributes: le, target: G, ref: ue, ...de } = t, { dir: K } = De(), q = k(null), J = gt({
1006
- position: Fe(K, i),
1007
- closeDelay: l,
1008
- openDelay: c,
1009
- onPositionChange: d,
1010
- opened: f,
1011
- defaultOpened: p,
1012
- events: re,
1013
- arrowRef: q,
1014
- arrowOffset: w,
1015
- offset: typeof O == "number" ? O + (S ? C / 2 : 0) : O,
1016
- inline: B,
1017
- strategy: W,
1018
- middlewares: se
1019
- });
1020
- D(() => {
1021
- let e = G instanceof HTMLElement ? G : typeof G == "string" ? document.querySelector(G) : G?.current || null;
1022
- e && J.reference(e);
1023
- }, [G, J]);
1024
- let Y = r({
1025
- name: "Tooltip",
1026
- props: t,
1027
- classes: st,
1028
- className: te,
1029
- style: x,
1030
- classNames: v,
1031
- styles: y,
1032
- unstyled: ee,
1033
- attributes: le,
1034
- rootSelector: "tooltip",
1035
- vars: U,
1036
- varsResolver: vt
1037
- }), fe = Q(n);
1038
- if (!G && !fe) throw Error("[@mantine/core] Tooltip component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported");
1039
- let X = Y("tooltip");
1040
- if (G) {
1041
- let e = Ge(A, {
1042
- duration: 100,
1043
- transition: "fade"
1044
- });
1045
- return /* @__PURE__ */ M(j, { children: /* @__PURE__ */ M($, {
1046
- ...ae,
1047
- withinPortal: m,
1048
- children: /* @__PURE__ */ M(_, {
1049
- ...e,
1050
- keepMounted: H,
1051
- mounted: !L && !!J.opened,
1052
- duration: J.isGroupPhase ? 10 : e.duration,
1053
- children: (e) => /* @__PURE__ */ N(u, {
1054
- ...de,
1055
- "data-fixed": W === "fixed" || void 0,
1056
- variant: V,
1057
- mod: [{ multiline: P }, oe],
1058
- ...X,
1059
- ...J.getFloatingProps({
1060
- ref: J.floating,
1061
- className: X.className,
1062
- style: {
1063
- ...X.style,
1064
- ...e,
1065
- zIndex: I,
1066
- top: J.y ?? 0,
1067
- left: J.x ?? 0
1068
- }
1069
- }),
1070
- children: [o, /* @__PURE__ */ M(Pe, {
1071
- ref: q,
1072
- arrowX: J.arrowX,
1073
- arrowY: J.arrowY,
1074
- visible: S,
1075
- position: J.placement,
1076
- arrowSize: C,
1077
- arrowOffset: w,
1078
- arrowRadius: T,
1079
- arrowPosition: E,
1080
- ...Y("arrow")
1081
- })]
1082
- })
1083
- })
1084
- }) });
1085
- }
1086
- let pe = fe.props, me = b(J.reference, we(fe), ue), he = Ge(A, {
1087
- duration: 100,
1088
- transition: "fade"
1089
- });
1090
- return /* @__PURE__ */ N(j, { children: [/* @__PURE__ */ M($, {
1091
- ...ae,
1092
- withinPortal: m,
1093
- children: /* @__PURE__ */ M(_, {
1094
- ...he,
1095
- keepMounted: H,
1096
- mounted: !L && !!J.opened,
1097
- duration: J.isGroupPhase ? 10 : he.duration,
1098
- children: (e) => /* @__PURE__ */ N(u, {
1099
- ...de,
1100
- "data-fixed": W === "fixed" || void 0,
1101
- variant: V,
1102
- mod: [{ multiline: P }, oe],
1103
- ...J.getFloatingProps({
1104
- ref: J.floating,
1105
- className: Y("tooltip").className,
1106
- style: {
1107
- ...Y("tooltip").style,
1108
- ...e,
1109
- zIndex: I,
1110
- top: J.y ?? 0,
1111
- left: J.x ?? 0
1112
- }
1113
- }),
1114
- children: [o, /* @__PURE__ */ M(Pe, {
1115
- ref: q,
1116
- arrowX: J.arrowX,
1117
- arrowY: J.arrowY,
1118
- visible: S,
1119
- position: J.placement,
1120
- arrowSize: C,
1121
- arrowOffset: w,
1122
- arrowRadius: T,
1123
- arrowPosition: E,
1124
- ...Y("arrow")
1125
- })]
1126
- })
1127
- })
1128
- }), ne(fe, J.getReferenceProps({
1129
- onClick: R,
1130
- onMouseEnter: z,
1131
- onMouseLeave: ie,
1132
- onMouseMove: t.onMouseMove,
1133
- onPointerDown: t.onPointerDown,
1134
- onPointerEnter: t.onPointerEnter,
1135
- ...pe,
1136
- className: F(te, pe.className),
1137
- [a]: me
1138
- }))] });
1139
- });
1140
- yt.classes = st, yt.varsResolver = vt, yt.displayName = "@mantine/core/Tooltip", yt.Floating = ut, yt.Group = pt;
1141
- //#endregion
1142
- export { ze as a, Q as c, Ce as d, X as f, $ as i, we as l, K as m, at as n, De as o, q as p, Je as r, Te as s, yt as t, Z as u };