@fde-desktop/fde-core 0.4.10 → 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.
- package/dist/AppEmptyState-Boej96TB.js +49 -0
- package/dist/AppEmptyState-CLc00OOG.cjs +1 -0
- package/dist/AppIcon-C8vHUVcb.cjs +1 -0
- package/dist/AppIcon-mtEoyzOb.js +22 -0
- package/dist/AppMenuBar-CAlkNHjj.cjs +1 -0
- package/dist/AppMenuBar-DmSfQRXU.js +197 -0
- package/dist/CalendarApp-DOmjWbpl.js +10 -0
- package/dist/CalendarApp-Z0bCCYsK.cjs +1 -0
- package/dist/ColorPicker-CQRRwY-y.cjs +1 -0
- package/dist/ColorPicker-WCeD3Wjf.js +35 -0
- package/dist/CreateItemApp-BkFFFdX1.cjs +1 -0
- package/dist/CreateItemApp-DR8Y4bwo.js +202 -0
- package/dist/DeviceInfoApp-BXQ9uOwF.cjs +1 -0
- package/dist/DeviceInfoApp-I63mJRWy.js +195 -0
- package/dist/DownloadProgress-CkTGTf0z.cjs +1 -0
- package/dist/DownloadProgress-DnVASsv5.js +39 -0
- package/dist/FilePickerApp-By6-vbag.cjs +1 -0
- package/dist/FilePickerApp-ClHuhm6Z.js +390 -0
- package/dist/FilesApp-BC4UPNuw.cjs +1 -0
- package/dist/FilesApp-D8MqvC5X.js +210 -0
- package/dist/ImageViewerApp-B1niWF75.cjs +1 -0
- package/dist/{ImageViewerApp-CWiP6zx-.js → ImageViewerApp-iojtyFEf.js} +18 -17
- package/dist/{ImageViewerMenuBar-BULkh_Ku.js → ImageViewerMenuBar-BIsUokxV.js} +15 -14
- package/dist/ImageViewerMenuBar-BgzgSF3v.cjs +1 -0
- package/dist/MenuEditApp-BHptoJbz.cjs +1 -0
- package/dist/MenuEditApp-CJUbJaqh.js +492 -0
- package/dist/MenuEditMenuBar-CCOSPAUe.cjs +1 -0
- package/dist/{MenuEditMenuBar-B94z4Umw.js → MenuEditMenuBar-DnCL-kaZ.js} +13 -12
- package/dist/NotesApp-BmQIBtJ2.cjs +1 -0
- package/dist/NotesApp-DJ2dGt4-.js +364 -0
- package/dist/NotesMenuBar-BzojwMtH.cjs +1 -0
- package/dist/{NotesMenuBar-BB4NkKGf.js → NotesMenuBar-DILZTjnT.js} +10 -9
- package/dist/PdfApp-IjY_GtnW.js +39 -0
- package/dist/PdfApp-krW8UI97.cjs +1 -0
- package/dist/PdfMenuBar-Bd5MTZcZ.js +39 -0
- package/dist/PdfMenuBar-DWD0Qa3F.cjs +1 -0
- package/dist/SettingsApp-BE22l5UP.cjs +1 -0
- package/dist/SettingsApp-BTFtTFY_.js +1228 -0
- package/dist/SettingsMenuBar-CZE2evG2.cjs +1 -0
- package/dist/SettingsMenuBar-ktC0viTd.js +42 -0
- package/dist/UploaderApp-CbypD538.js +263 -0
- package/dist/UploaderApp-D_qD3O70.cjs +1 -0
- package/dist/{VscIcon-DueRJVTe.js → VscIcon-AEENjKOE.js} +1 -1
- package/dist/VscIcon-BYb_Soyy.cjs +1 -0
- package/dist/buildBreadcrumbs-Ccd8i11b.cjs +1 -0
- package/dist/buildBreadcrumbs-noWhu8os.js +45 -0
- package/dist/{desktopStore-B0R1-BeA.js → desktopStore-8cSZlj7s.js} +342 -549
- package/dist/desktopStore-C1jR6Fdb.cjs +1 -0
- package/dist/{imageViewerStore-CJMRXaQh.js → imageViewerStore-COrD02Zu.js} +1 -1
- package/dist/imageViewerStore-Dfylg59V.cjs +1 -0
- package/dist/index.cjs +1 -53
- package/dist/index.css +1 -1
- package/dist/index.d.ts +16 -6
- package/dist/index.js +3024 -7513
- package/dist/menuEditStore-CYwtfD6H.cjs +1 -0
- package/dist/{menuEditStore-C8S_EedM.js → menuEditStore-CxsgLiQu.js} +1 -1
- package/dist/notesStore-CrWTO6oB.cjs +1 -0
- package/dist/{notesStore-DKRgTTFn.js → notesStore-Dgah46U5.js} +1 -1
- package/dist/rolldown-runtime-CAFD8bLK.js +11 -0
- package/dist/{settingsAppStore-KOeWRO6h.js → settingsAppStore-DHZhi6Rl.js} +1 -1
- package/dist/settingsAppStore-DuYZNeFf.cjs +1 -0
- package/dist/useAdaptiveDimensions-3Lz4X0Tc.cjs +1 -0
- package/dist/{useAdaptiveDimensions-CunsU0mn.js → useAdaptiveDimensions-DxNLJ7R5.js} +1 -1
- package/dist/{useCloseInterceptor-CuKAAFnj.js → useCloseInterceptor-CIxhOZx1.js} +12 -12
- package/dist/useCloseInterceptor-CdX-09Ib.cjs +1 -0
- package/dist/useDynamicIcon-CK6SjEv5.cjs +1 -0
- package/dist/{useDynamicIcon-GJg3vWsJ.js → useDynamicIcon-_wGeWu-b.js} +1 -1
- package/dist/useOpenApp-D-FOY88T.cjs +1 -0
- package/dist/{useOpenApp-BVpSfNrG.js → useOpenApp-DkZLFFCH.js} +51 -67
- package/dist/{useResolvedUrl-DFKXq598.js → useResolvedUrl-B6x4xy0x.js} +1 -2
- package/dist/useResolvedUrl-Bb39DpVy.cjs +1 -0
- package/package.json +3 -4
- package/dist/AccordionChevron-CJXAq5o5.js +0 -26
- package/dist/AccordionChevron-DBXp38Lm.cjs +0 -1
- package/dist/ActionIcon-C_SfdBfx.cjs +0 -1
- package/dist/ActionIcon-CtVbYlGY.js +0 -145
- package/dist/AppEmptyState-BTujnL_b.js +0 -4962
- package/dist/AppEmptyState-Dc4GaDfu.cjs +0 -1
- package/dist/AppIcon--qzR4sgf.cjs +0 -1
- package/dist/AppIcon-DCDuaU-t.js +0 -80
- package/dist/AppMenuBar-BiHbNg9V.cjs +0 -9
- package/dist/AppMenuBar-CHJy8OF0.js +0 -2639
- package/dist/Box-DRm8EabO.js +0 -1593
- package/dist/Box-D_64wv6n.cjs +0 -1
- package/dist/Button-D0FXpkur.cjs +0 -1
- package/dist/Button-k7SxX1Xl.js +0 -178
- package/dist/CalendarApp-C1HvuJoa.cjs +0 -1
- package/dist/CalendarApp-DBEQqsS_.js +0 -1721
- package/dist/Center-CyryG5zn.js +0 -25
- package/dist/Center-T4No_FAa.cjs +0 -1
- package/dist/CheckIcon-C3WjIR2i.js +0 -25
- package/dist/CheckIcon-CBMLR6Gc.cjs +0 -1
- package/dist/CodeServerApp-B3l5QPuG.cjs +0 -1
- package/dist/CodeServerApp-BpeALSaX.js +0 -2
- package/dist/CodeServerApp-CRjCngFv.cjs +0 -1
- package/dist/CodeServerApp-DY94cy1a.js +0 -149
- package/dist/ColorPicker-BL4UbKCV.cjs +0 -1
- package/dist/ColorPicker-DvRR-wlQ.js +0 -997
- package/dist/CreateItemApp-BU9wmjKM.cjs +0 -1
- package/dist/CreateItemApp-CtdH1K1g.js +0 -400
- package/dist/CreateItemApp-t9F-a6wD.cjs +0 -1
- package/dist/DeviceInfoApp-C306YvtZ.js +0 -223
- package/dist/DeviceInfoApp-Cdju_LIB.cjs +0 -1
- package/dist/DeviceInfoApp-CyB01v4D.cjs +0 -1
- package/dist/DownloadProgress-IRw1dzLX.cjs +0 -1
- package/dist/DownloadProgress-hdupSUBT.js +0 -174
- package/dist/FileIcon-BCpGMI5U.js +0 -88
- package/dist/FileIcon-BCrsxmtt.cjs +0 -1
- package/dist/FilePickerApp-DMGuvahM.js +0 -409
- package/dist/FilePickerApp-Eu0cr2Cm.cjs +0 -1
- package/dist/FilesApp-BQFVHkEn.js +0 -225
- package/dist/FilesApp-BZ_dzZnF.cjs +0 -1
- package/dist/FilesApp-SIWXFPXt.cjs +0 -1
- package/dist/Group-BzwlMeob.js +0 -48
- package/dist/Group-DhwePB84.cjs +0 -1
- package/dist/ImageViewerApp-BOz59TGc.cjs +0 -1
- package/dist/ImageViewerApp-BeqY6voE.cjs +0 -1
- package/dist/ImageViewerApp-DBAfJPSo.js +0 -2
- package/dist/ImageViewerMenuBar-Cb0Nr5-M.js +0 -2
- package/dist/ImageViewerMenuBar-CoEp0RxK.cjs +0 -1
- package/dist/ImageViewerMenuBar-zOkJtqKo.cjs +0 -1
- package/dist/MenuEditApp-BoKtj2GH.js +0 -2
- package/dist/MenuEditApp-D21sEp86.js +0 -2615
- package/dist/MenuEditApp-k3cPfTG9.cjs +0 -1
- package/dist/MenuEditApp-sz9GlLVH.cjs +0 -5
- package/dist/MenuEditMenuBar-6QxlIDpl.cjs +0 -1
- package/dist/MenuEditMenuBar-Bv6R42lf.js +0 -2
- package/dist/MenuEditMenuBar-CBsmH_-T.cjs +0 -1
- package/dist/NotesApp-BtR55Hva.cjs +0 -207
- package/dist/NotesApp-C59exz_9.js +0 -16154
- package/dist/NotesApp-D47I5LS_.js +0 -2
- package/dist/NotesApp-lOwsi2sg.cjs +0 -1
- package/dist/NotesMenuBar-BZITC74y.cjs +0 -1
- package/dist/NotesMenuBar-Bp0sPqyR.cjs +0 -1
- package/dist/NotesMenuBar-xlfODmMA.js +0 -2
- package/dist/Paper-DtUYKmYn.js +0 -30
- package/dist/Paper-DwCpwWwH.cjs +0 -1
- package/dist/PdfApp-1XbFGfoY.cjs +0 -1
- package/dist/PdfApp-BhIoJWeK.cjs +0 -1
- package/dist/PdfApp-C5Rt1Zaw.js +0 -2
- package/dist/PdfApp-C8Hwxxqh.js +0 -38
- package/dist/PdfMenuBar-BA9rKuMP.cjs +0 -1
- package/dist/PdfMenuBar-JXHqwxhZ.cjs +0 -1
- package/dist/PdfMenuBar-R0fu7oYF.js +0 -2
- package/dist/PdfMenuBar-sd-9Vk3h.js +0 -38
- package/dist/SettingsApp-7EhpjzUE.cjs +0 -1
- package/dist/SettingsApp-ByiPAj1I.cjs +0 -1
- package/dist/SettingsApp-d6fmBHxR.js +0 -1829
- package/dist/SettingsApp-qKJmC0lj.js +0 -2
- package/dist/SettingsMenuBar-BPwv8JQK.js +0 -41
- package/dist/SettingsMenuBar-D8R7hOik.js +0 -2
- package/dist/SettingsMenuBar-DDrjZLmg.cjs +0 -1
- package/dist/SettingsMenuBar-DQjUa8g1.cjs +0 -1
- package/dist/Slider-BNO-vDFn.js +0 -1175
- package/dist/Slider-Bg_EIBg6.cjs +0 -1
- package/dist/Stack-BOaJgV3N.cjs +0 -1
- package/dist/Stack-CuDEaP7e.js +0 -34
- package/dist/StorybookApp-Bkr-7mXp.cjs +0 -1
- package/dist/StorybookApp-WYninkJo.js +0 -10
- package/dist/TerminalApp-8XbsKAWa.js +0 -10041
- package/dist/TerminalApp-Bq2e7QQu.cjs +0 -1
- package/dist/TerminalApp-CVu3Axc9.js +0 -2
- package/dist/TerminalApp-b7_d0jRO.cjs +0 -36
- package/dist/TerminalMenuBar-Cb8x9laS.js +0 -2
- package/dist/TerminalMenuBar-De-FH5AE.cjs +0 -1
- package/dist/TerminalMenuBar-iKLydNda.js +0 -112
- package/dist/TerminalMenuBar-yOaWd-hn.cjs +0 -1
- package/dist/TextInput-C3qfxxWI.js +0 -980
- package/dist/TextInput-DcYns3hz.cjs +0 -1
- package/dist/Tooltip-CAOO-qdx.js +0 -3185
- package/dist/Tooltip-DDh_x-CB.cjs +0 -1
- package/dist/UnstyledButton-CI3kyRck.js +0 -25
- package/dist/UnstyledButton-Cl5RuIid.cjs +0 -1
- package/dist/UploaderApp-C76ydsd8.js +0 -487
- package/dist/UploaderApp-CHACW8Yr.js +0 -2
- package/dist/UploaderApp-Q_a3mBik.cjs +0 -1
- package/dist/UploaderApp-htj59ppo.cjs +0 -1
- package/dist/VscIcon-CxEmqD80.cjs +0 -1
- package/dist/chunk-BQCxAhux.js +0 -23
- package/dist/chunk-CiTBaPhY.cjs +0 -1
- package/dist/create-safe-context-95P-Bfg3.cjs +0 -1
- package/dist/create-safe-context-XT2cxc14.js +0 -12
- package/dist/desktopStore-Cox-Og1z.cjs +0 -1
- package/dist/fc-DejOsQyD.cjs +0 -1
- package/dist/fc-kd8WzIER.js +0 -20536
- package/dist/fc-xJ_v2ayq.cjs +0 -184
- package/dist/fi-BahYsbim.js +0 -9993
- package/dist/fi-BkhyTcZo.cjs +0 -1
- package/dist/getRuntime-BLXyQZBB.cjs +0 -1
- package/dist/getRuntime-CCRXVzJH.js +0 -63
- package/dist/iconBase-B4UCuSvv.cjs +0 -1
- package/dist/iconBase-D7iPes7B.js +0 -108
- package/dist/imageViewerStore-CH1qW6md.cjs +0 -1
- package/dist/is-element-BocgicRg.cjs +0 -1
- package/dist/is-element-Bu_JY8Qy.js +0 -7
- package/dist/menuEditStore-CU7IAg3L.cjs +0 -1
- package/dist/notesStore-zKmChTfF.cjs +0 -1
- package/dist/react-DYmzHD0X.js +0 -27
- package/dist/react-Dldg32sN.cjs +0 -1
- package/dist/settingsAppStore-BrlImdAH.cjs +0 -1
- package/dist/terminalStore-LWWjCvCe.js +0 -30
- package/dist/terminalStore-fZe5t7Ty.cjs +0 -1
- package/dist/use-merged-ref-BI9n1hUK.cjs +0 -1
- package/dist/use-merged-ref-BT8_u6vW.js +0 -25
- package/dist/use-resolved-styles-api-AVDygMKo.cjs +0 -1
- package/dist/use-resolved-styles-api-pEOi2wiK.js +0 -21
- package/dist/use-uncontrolled-A4hm9ATM.js +0 -23
- package/dist/use-uncontrolled-BPrfGv0W.cjs +0 -1
- package/dist/useAdaptiveDimensions-Btp0m5Pm.cjs +0 -1
- package/dist/useCloseInterceptor-a_6Lcuqj.cjs +0 -1
- package/dist/useDynamicIcon-SytdL1Tu.cjs +0 -1
- package/dist/useOpenApp-Br0jo4-y.cjs +0 -1
- package/dist/useResolvedUrl-Be5ZlCX7.cjs +0 -1
- package/dist/useTranslation-DMRGdqZi.js +0 -279
- package/dist/useTranslation-D_O7S4RJ.cjs +0 -1
- package/dist/vsc-Ciibqbxo.cjs +0 -1
- package/dist/vsc-DGKSpOAR.js +0 -9574
- /package/dist/{Colors-BxX4G8kX.cjs → Colors-CNJbU7oq.cjs} +0 -0
- /package/dist/{Colors-hca6raEG.js → Colors-CuABn2W4.js} +0 -0
- /package/dist/{useMenuBarUtils-ChmpZjwu.js → useMenuBarUtils-ChAfI7OA.js} +0 -0
- /package/dist/{useMenuBarUtils-Bp5PiztD.cjs → useMenuBarUtils-DAap0ukp.cjs} +0 -0
package/dist/Slider-BNO-vDFn.js
DELETED
|
@@ -1,1175 +0,0 @@
|
|
|
1
|
-
import { L as e, N as t, O as n, c as r, j as i, k as a, l as o, r as s, t as c, x as l } from "./Box-DRm8EabO.js";
|
|
2
|
-
import { t as u } from "./create-safe-context-XT2cxc14.js";
|
|
3
|
-
import { f as d, o as f, s as p } from "./Tooltip-CAOO-qdx.js";
|
|
4
|
-
import { n as m, t as h } from "./use-uncontrolled-A4hm9ATM.js";
|
|
5
|
-
import { a as g, c as _, f as v, i as y } from "./TextInput-C3qfxxWI.js";
|
|
6
|
-
import { r as b } from "./use-merged-ref-BT8_u6vW.js";
|
|
7
|
-
import { createElement as x, use as S, useCallback as C, useEffect as w, useEffectEvent as T, useMemo as E, useRef as D, useState as O } from "react";
|
|
8
|
-
import { Fragment as ee, jsx as k, jsxs as A } from "react/jsx-runtime";
|
|
9
|
-
//#region ../../node_modules/.bun/@mantine+hooks@9.0.0+b1ab299f0a400331/node_modules/@mantine/hooks/esm/utils/use-callback-ref/use-callback-ref.mjs
|
|
10
|
-
function j(e) {
|
|
11
|
-
let t = D(e);
|
|
12
|
-
return w(() => {
|
|
13
|
-
t.current = e;
|
|
14
|
-
}), E(() => ((...e) => t.current?.(...e)), []);
|
|
15
|
-
}
|
|
16
|
-
//#endregion
|
|
17
|
-
//#region ../../node_modules/.bun/@mantine+hooks@9.0.0+b1ab299f0a400331/node_modules/@mantine/hooks/esm/use-debounced-callback/use-debounced-callback.mjs
|
|
18
|
-
function M(e, t) {
|
|
19
|
-
let { delay: n, flushOnUnmount: r, leading: i } = typeof t == "number" ? {
|
|
20
|
-
delay: t,
|
|
21
|
-
flushOnUnmount: !1,
|
|
22
|
-
leading: !1
|
|
23
|
-
} : t, a = j(e), o = D(0), s = E(() => {
|
|
24
|
-
let e = Object.assign((...t) => {
|
|
25
|
-
window.clearTimeout(o.current);
|
|
26
|
-
let r = e._isFirstCall;
|
|
27
|
-
e._isFirstCall = !1;
|
|
28
|
-
function s() {
|
|
29
|
-
window.clearTimeout(o.current), o.current = 0, e._isFirstCall = !0;
|
|
30
|
-
}
|
|
31
|
-
if (i && r) {
|
|
32
|
-
a(...t), e.flush = () => {
|
|
33
|
-
o.current !== 0 && (s(), a(...t));
|
|
34
|
-
}, e.cancel = () => {
|
|
35
|
-
s();
|
|
36
|
-
}, o.current = window.setTimeout(() => {
|
|
37
|
-
s();
|
|
38
|
-
}, n);
|
|
39
|
-
return;
|
|
40
|
-
}
|
|
41
|
-
if (i && !r) {
|
|
42
|
-
e.flush = () => {
|
|
43
|
-
o.current !== 0 && (s(), a(...t));
|
|
44
|
-
}, e.cancel = () => {
|
|
45
|
-
s();
|
|
46
|
-
}, o.current = window.setTimeout(() => {
|
|
47
|
-
s();
|
|
48
|
-
}, n);
|
|
49
|
-
return;
|
|
50
|
-
}
|
|
51
|
-
let c = () => {
|
|
52
|
-
o.current !== 0 && (s(), a(...t));
|
|
53
|
-
};
|
|
54
|
-
e.flush = c, e.cancel = () => {
|
|
55
|
-
s();
|
|
56
|
-
}, o.current = window.setTimeout(c, n);
|
|
57
|
-
}, {
|
|
58
|
-
flush: () => {},
|
|
59
|
-
cancel: () => {},
|
|
60
|
-
_isFirstCall: !0
|
|
61
|
-
});
|
|
62
|
-
return e;
|
|
63
|
-
}, [
|
|
64
|
-
a,
|
|
65
|
-
n,
|
|
66
|
-
i
|
|
67
|
-
]);
|
|
68
|
-
return w(() => () => {
|
|
69
|
-
r ? s.flush() : s.cancel();
|
|
70
|
-
}, [s, r]), s;
|
|
71
|
-
}
|
|
72
|
-
//#endregion
|
|
73
|
-
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/core/utils/find-closest-number/find-closest-number.mjs
|
|
74
|
-
function N(e, t) {
|
|
75
|
-
return t.length === 0 ? e : t.reduce((t, n) => Math.abs(n - e) < Math.abs(t - e) ? n : t);
|
|
76
|
-
}
|
|
77
|
-
//#endregion
|
|
78
|
-
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/ScrollArea/ScrollArea.context.mjs
|
|
79
|
-
var [te, P] = u("ScrollArea.Root component was not found in tree");
|
|
80
|
-
//#endregion
|
|
81
|
-
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/ScrollArea/use-resize-observer.mjs
|
|
82
|
-
function F(e, t) {
|
|
83
|
-
let n = T(t);
|
|
84
|
-
v(() => {
|
|
85
|
-
let t = 0;
|
|
86
|
-
if (e) {
|
|
87
|
-
let r = new ResizeObserver(() => {
|
|
88
|
-
cancelAnimationFrame(t), t = window.requestAnimationFrame(n);
|
|
89
|
-
});
|
|
90
|
-
return r.observe(e), () => {
|
|
91
|
-
window.cancelAnimationFrame(t), r.unobserve(e);
|
|
92
|
-
};
|
|
93
|
-
}
|
|
94
|
-
}, [e]);
|
|
95
|
-
}
|
|
96
|
-
//#endregion
|
|
97
|
-
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/ScrollArea/ScrollAreaCorner/ScrollAreaCorner.mjs
|
|
98
|
-
function ne(e) {
|
|
99
|
-
let { style: t, ...n } = e, r = P(), [i, a] = O(0), [o, s] = O(0), c = !!(i && o);
|
|
100
|
-
return F(r.scrollbarX, () => {
|
|
101
|
-
let e = r.scrollbarX?.offsetHeight || 0;
|
|
102
|
-
r.onCornerHeightChange(e), s(e);
|
|
103
|
-
}), F(r.scrollbarY, () => {
|
|
104
|
-
let e = r.scrollbarY?.offsetWidth || 0;
|
|
105
|
-
r.onCornerWidthChange(e), a(e);
|
|
106
|
-
}), c ? /* @__PURE__ */ k("div", {
|
|
107
|
-
...n,
|
|
108
|
-
style: {
|
|
109
|
-
...t,
|
|
110
|
-
width: i,
|
|
111
|
-
height: o
|
|
112
|
-
}
|
|
113
|
-
}) : null;
|
|
114
|
-
}
|
|
115
|
-
function re(e) {
|
|
116
|
-
let t = P(), n = !!(t.scrollbarX && t.scrollbarY);
|
|
117
|
-
return t.type !== "scroll" && n ? /* @__PURE__ */ k(ne, { ...e }) : null;
|
|
118
|
-
}
|
|
119
|
-
//#endregion
|
|
120
|
-
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/ScrollArea/ScrollAreaRoot/ScrollAreaRoot.mjs
|
|
121
|
-
var ie = {
|
|
122
|
-
scrollHideDelay: 1e3,
|
|
123
|
-
type: "hover"
|
|
124
|
-
};
|
|
125
|
-
function ae(e) {
|
|
126
|
-
let { type: t, scrollHideDelay: n, scrollbars: r, getStyles: i, ref: a, ...s } = o("ScrollAreaRoot", ie, e), [l, u] = O(null), [d, f] = O(null), [p, m] = O(null), [h, g] = O(null), [_, v] = O(null), [y, x] = O(0), [S, C] = O(0), [w, T] = O(!1), [E, D] = O(!1), ee = b(a, (e) => u(e));
|
|
127
|
-
return /* @__PURE__ */ k(te, {
|
|
128
|
-
value: {
|
|
129
|
-
type: t,
|
|
130
|
-
scrollHideDelay: n,
|
|
131
|
-
scrollArea: l,
|
|
132
|
-
viewport: d,
|
|
133
|
-
onViewportChange: f,
|
|
134
|
-
content: p,
|
|
135
|
-
onContentChange: m,
|
|
136
|
-
scrollbarX: h,
|
|
137
|
-
onScrollbarXChange: g,
|
|
138
|
-
scrollbarXEnabled: w,
|
|
139
|
-
onScrollbarXEnabledChange: T,
|
|
140
|
-
scrollbarY: _,
|
|
141
|
-
onScrollbarYChange: v,
|
|
142
|
-
scrollbarYEnabled: E,
|
|
143
|
-
onScrollbarYEnabledChange: D,
|
|
144
|
-
onCornerWidthChange: x,
|
|
145
|
-
onCornerHeightChange: C,
|
|
146
|
-
getStyles: i
|
|
147
|
-
},
|
|
148
|
-
children: /* @__PURE__ */ k(c, {
|
|
149
|
-
...s,
|
|
150
|
-
ref: ee,
|
|
151
|
-
__vars: {
|
|
152
|
-
"--sa-corner-width": r === "xy" ? `${y}px` : "0px",
|
|
153
|
-
"--sa-corner-height": r === "xy" ? `${S}px` : "0px"
|
|
154
|
-
}
|
|
155
|
-
})
|
|
156
|
-
});
|
|
157
|
-
}
|
|
158
|
-
ae.displayName = "@mantine/core/ScrollAreaRoot";
|
|
159
|
-
//#endregion
|
|
160
|
-
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/ScrollArea/utils/get-thumb-ratio.mjs
|
|
161
|
-
function oe(e, t) {
|
|
162
|
-
let n = e / t;
|
|
163
|
-
return Number.isNaN(n) ? 0 : n;
|
|
164
|
-
}
|
|
165
|
-
//#endregion
|
|
166
|
-
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/ScrollArea/utils/get-thumb-size.mjs
|
|
167
|
-
function I(e) {
|
|
168
|
-
let t = oe(e.viewport, e.content), n = e.scrollbar.paddingStart + e.scrollbar.paddingEnd, r = (e.scrollbar.size - n) * t;
|
|
169
|
-
return Math.max(r, 18);
|
|
170
|
-
}
|
|
171
|
-
//#endregion
|
|
172
|
-
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/ScrollArea/utils/linear-scale.mjs
|
|
173
|
-
function se(e, t) {
|
|
174
|
-
return (n) => {
|
|
175
|
-
if (e[0] === e[1] || t[0] === t[1]) return t[0];
|
|
176
|
-
let r = (t[1] - t[0]) / (e[1] - e[0]);
|
|
177
|
-
return t[0] + r * (n - e[0]);
|
|
178
|
-
};
|
|
179
|
-
}
|
|
180
|
-
//#endregion
|
|
181
|
-
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/ScrollArea/utils/get-thumb-offset-from-scroll.mjs
|
|
182
|
-
function L(e, [t, n]) {
|
|
183
|
-
return Math.min(n, Math.max(t, e));
|
|
184
|
-
}
|
|
185
|
-
function R(e, t, n = "ltr") {
|
|
186
|
-
let r = I(t), i = t.scrollbar.paddingStart + t.scrollbar.paddingEnd, a = t.scrollbar.size - i, o = t.content - t.viewport, s = a - r, c = L(e, n === "ltr" ? [0, o] : [o * -1, 0]);
|
|
187
|
-
return se([0, o], [0, s])(c);
|
|
188
|
-
}
|
|
189
|
-
//#endregion
|
|
190
|
-
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/ScrollArea/utils/get-scroll-position-from-pointer.mjs
|
|
191
|
-
function z(e, t, n, r = "ltr") {
|
|
192
|
-
let i = I(n), a = i / 2, o = t || a, s = i - o, c = n.scrollbar.paddingStart + o, l = n.scrollbar.size - n.scrollbar.paddingEnd - s, u = n.content - n.viewport, d = r === "ltr" ? [0, u] : [u * -1, 0];
|
|
193
|
-
return se([c, l], d)(e);
|
|
194
|
-
}
|
|
195
|
-
//#endregion
|
|
196
|
-
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/ScrollArea/utils/is-scrolling-within-scrollbar-bounds.mjs
|
|
197
|
-
function ce(e, t) {
|
|
198
|
-
return e > 0 && e < t;
|
|
199
|
-
}
|
|
200
|
-
//#endregion
|
|
201
|
-
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/ScrollArea/utils/to-int.mjs
|
|
202
|
-
function B(e) {
|
|
203
|
-
return e ? parseInt(e, 10) : 0;
|
|
204
|
-
}
|
|
205
|
-
//#endregion
|
|
206
|
-
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/ScrollArea/utils/compose-event-handlers.mjs
|
|
207
|
-
function V(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
208
|
-
return (r) => {
|
|
209
|
-
e?.(r), (n === !1 || !r.defaultPrevented) && t?.(r);
|
|
210
|
-
};
|
|
211
|
-
}
|
|
212
|
-
//#endregion
|
|
213
|
-
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/ScrollArea/ScrollAreaScrollbar/Scrollbar.context.mjs
|
|
214
|
-
var [H, le] = u("ScrollAreaScrollbar was not found in tree");
|
|
215
|
-
//#endregion
|
|
216
|
-
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/ScrollArea/ScrollAreaScrollbar/Scrollbar.mjs
|
|
217
|
-
function ue(e) {
|
|
218
|
-
let { sizes: t, hasThumb: n, onThumbChange: r, onThumbPointerUp: i, onThumbPointerDown: a, onThumbPositionChange: o, onDragScroll: s, onWheelScroll: c, onResize: l, ref: u, ...d } = e, f = P(), [p, m] = O(null), h = b(u, (e) => m(e)), g = D(null), _ = D(""), { viewport: v } = f, y = t.content - t.viewport, x = T(c), S = j(o), C = M(l, 10), E = (e) => {
|
|
219
|
-
g.current && s({
|
|
220
|
-
x: e.clientX - g.current.left,
|
|
221
|
-
y: e.clientY - g.current.top
|
|
222
|
-
});
|
|
223
|
-
};
|
|
224
|
-
return w(() => {
|
|
225
|
-
let e = (e) => {
|
|
226
|
-
let t = e.target;
|
|
227
|
-
p?.contains(t) && x(e, y);
|
|
228
|
-
};
|
|
229
|
-
return document.addEventListener("wheel", e, { passive: !1 }), () => document.removeEventListener("wheel", e, { passive: !1 });
|
|
230
|
-
}, [
|
|
231
|
-
v,
|
|
232
|
-
p,
|
|
233
|
-
y
|
|
234
|
-
]), w(S, [t, S]), F(p, C), F(f.content, C), /* @__PURE__ */ k(H, {
|
|
235
|
-
value: {
|
|
236
|
-
scrollbar: p,
|
|
237
|
-
hasThumb: n,
|
|
238
|
-
onThumbChange: j(r),
|
|
239
|
-
onThumbPointerUp: j(i),
|
|
240
|
-
onThumbPositionChange: S,
|
|
241
|
-
onThumbPointerDown: j(a)
|
|
242
|
-
},
|
|
243
|
-
children: /* @__PURE__ */ k("div", {
|
|
244
|
-
...d,
|
|
245
|
-
ref: h,
|
|
246
|
-
"data-mantine-scrollbar": !0,
|
|
247
|
-
style: {
|
|
248
|
-
position: "absolute",
|
|
249
|
-
...d.style
|
|
250
|
-
},
|
|
251
|
-
onPointerDown: V(e.onPointerDown, (e) => {
|
|
252
|
-
e.preventDefault(), e.button === 0 && (e.target.setPointerCapture(e.pointerId), g.current = p.getBoundingClientRect(), _.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", E(e));
|
|
253
|
-
}),
|
|
254
|
-
onPointerMove: V(e.onPointerMove, E),
|
|
255
|
-
onPointerUp: V(e.onPointerUp, (e) => {
|
|
256
|
-
let t = e.target;
|
|
257
|
-
t.hasPointerCapture(e.pointerId) && (e.preventDefault(), t.releasePointerCapture(e.pointerId));
|
|
258
|
-
}),
|
|
259
|
-
onLostPointerCapture: () => {
|
|
260
|
-
document.body.style.webkitUserSelect = _.current, g.current = null;
|
|
261
|
-
}
|
|
262
|
-
})
|
|
263
|
-
});
|
|
264
|
-
}
|
|
265
|
-
//#endregion
|
|
266
|
-
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/ScrollArea/ScrollAreaScrollbar/ScrollbarX.mjs
|
|
267
|
-
var U = (e) => {
|
|
268
|
-
let { sizes: t, onSizesChange: n, style: r, ref: i, ...a } = e, o = P(), [s, c] = O(), l = D(null), u = b(i, l, o.onScrollbarXChange);
|
|
269
|
-
return w(() => {
|
|
270
|
-
l.current && c(getComputedStyle(l.current));
|
|
271
|
-
}, [l]), /* @__PURE__ */ k(ue, {
|
|
272
|
-
"data-orientation": "horizontal",
|
|
273
|
-
...a,
|
|
274
|
-
ref: u,
|
|
275
|
-
sizes: t,
|
|
276
|
-
style: {
|
|
277
|
-
...r,
|
|
278
|
-
"--sa-thumb-width": `${I(t)}px`
|
|
279
|
-
},
|
|
280
|
-
onThumbPointerDown: (t) => e.onThumbPointerDown(t.x),
|
|
281
|
-
onDragScroll: (t) => e.onDragScroll(t.x),
|
|
282
|
-
onWheelScroll: (t, n) => {
|
|
283
|
-
if (o.viewport) {
|
|
284
|
-
let r = o.viewport.scrollLeft + t.deltaX;
|
|
285
|
-
e.onWheelScroll(r), ce(r, n) && t.preventDefault();
|
|
286
|
-
}
|
|
287
|
-
},
|
|
288
|
-
onResize: () => {
|
|
289
|
-
l.current && o.viewport && s && n({
|
|
290
|
-
content: o.viewport.scrollWidth,
|
|
291
|
-
viewport: o.viewport.offsetWidth,
|
|
292
|
-
scrollbar: {
|
|
293
|
-
size: l.current.clientWidth,
|
|
294
|
-
paddingStart: B(s.paddingLeft),
|
|
295
|
-
paddingEnd: B(s.paddingRight)
|
|
296
|
-
}
|
|
297
|
-
});
|
|
298
|
-
}
|
|
299
|
-
});
|
|
300
|
-
};
|
|
301
|
-
U.displayName = "@mantine/core/ScrollAreaScrollbarX";
|
|
302
|
-
//#endregion
|
|
303
|
-
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/ScrollArea/ScrollAreaScrollbar/ScrollbarY.mjs
|
|
304
|
-
function W(e) {
|
|
305
|
-
let { sizes: t, onSizesChange: n, style: r, ref: i, ...a } = e, o = P(), [s, c] = O(), l = D(null), u = b(i, l, o.onScrollbarYChange);
|
|
306
|
-
return w(() => {
|
|
307
|
-
l.current && c(window.getComputedStyle(l.current));
|
|
308
|
-
}, []), /* @__PURE__ */ k(ue, {
|
|
309
|
-
...a,
|
|
310
|
-
"data-orientation": "vertical",
|
|
311
|
-
ref: u,
|
|
312
|
-
sizes: t,
|
|
313
|
-
style: {
|
|
314
|
-
"--sa-thumb-height": `${I(t)}px`,
|
|
315
|
-
...r
|
|
316
|
-
},
|
|
317
|
-
onThumbPointerDown: (t) => e.onThumbPointerDown(t.y),
|
|
318
|
-
onDragScroll: (t) => e.onDragScroll(t.y),
|
|
319
|
-
onWheelScroll: (t, n) => {
|
|
320
|
-
if (o.viewport) {
|
|
321
|
-
let r = o.viewport.scrollTop + t.deltaY;
|
|
322
|
-
e.onWheelScroll(r), ce(r, n) && t.preventDefault();
|
|
323
|
-
}
|
|
324
|
-
},
|
|
325
|
-
onResize: () => {
|
|
326
|
-
l.current && o.viewport && s && n({
|
|
327
|
-
content: o.viewport.scrollHeight,
|
|
328
|
-
viewport: o.viewport.offsetHeight,
|
|
329
|
-
scrollbar: {
|
|
330
|
-
size: l.current.clientHeight,
|
|
331
|
-
paddingStart: B(s.paddingTop),
|
|
332
|
-
paddingEnd: B(s.paddingBottom)
|
|
333
|
-
}
|
|
334
|
-
});
|
|
335
|
-
}
|
|
336
|
-
});
|
|
337
|
-
}
|
|
338
|
-
W.displayName = "@mantine/core/ScrollAreaScrollbarY";
|
|
339
|
-
//#endregion
|
|
340
|
-
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/ScrollArea/ScrollAreaScrollbar/ScrollAreaScrollbarVisible.mjs
|
|
341
|
-
function G(e) {
|
|
342
|
-
let { orientation: t = "vertical", ...n } = e, { dir: r } = p(), i = P(), a = D(null), o = D(0), [s, c] = O({
|
|
343
|
-
content: 0,
|
|
344
|
-
viewport: 0,
|
|
345
|
-
scrollbar: {
|
|
346
|
-
size: 0,
|
|
347
|
-
paddingStart: 0,
|
|
348
|
-
paddingEnd: 0
|
|
349
|
-
}
|
|
350
|
-
}), l = oe(s.viewport, s.content), u = {
|
|
351
|
-
...n,
|
|
352
|
-
sizes: s,
|
|
353
|
-
onSizesChange: c,
|
|
354
|
-
hasThumb: l > 0 && l < 1,
|
|
355
|
-
onThumbChange: (e) => {
|
|
356
|
-
a.current = e;
|
|
357
|
-
},
|
|
358
|
-
onThumbPointerUp: () => {
|
|
359
|
-
o.current = 0;
|
|
360
|
-
},
|
|
361
|
-
onThumbPointerDown: (e) => {
|
|
362
|
-
o.current = e;
|
|
363
|
-
}
|
|
364
|
-
}, d = (e, t) => z(e, o.current, s, t);
|
|
365
|
-
return t === "horizontal" ? /* @__PURE__ */ k(U, {
|
|
366
|
-
...u,
|
|
367
|
-
onThumbPositionChange: () => {
|
|
368
|
-
if (i.viewport && a.current) {
|
|
369
|
-
let e = i.viewport.scrollLeft, t = R(e, s, r);
|
|
370
|
-
a.current.style.transform = `translate3d(${t}px, 0, 0)`;
|
|
371
|
-
}
|
|
372
|
-
},
|
|
373
|
-
onWheelScroll: (e) => {
|
|
374
|
-
i.viewport && (i.viewport.scrollLeft = e);
|
|
375
|
-
},
|
|
376
|
-
onDragScroll: (e) => {
|
|
377
|
-
i.viewport && (i.viewport.scrollLeft = d(e, r));
|
|
378
|
-
}
|
|
379
|
-
}) : t === "vertical" ? /* @__PURE__ */ k(W, {
|
|
380
|
-
...u,
|
|
381
|
-
onThumbPositionChange: () => {
|
|
382
|
-
if (i.viewport && a.current) {
|
|
383
|
-
let e = i.viewport.scrollTop, t = R(e, s);
|
|
384
|
-
s.scrollbar.size === 0 ? a.current.style.setProperty("--thumb-opacity", "0") : a.current.style.setProperty("--thumb-opacity", "1"), a.current.style.transform = `translate3d(0, ${t}px, 0)`;
|
|
385
|
-
}
|
|
386
|
-
},
|
|
387
|
-
onWheelScroll: (e) => {
|
|
388
|
-
i.viewport && (i.viewport.scrollTop = e);
|
|
389
|
-
},
|
|
390
|
-
onDragScroll: (e) => {
|
|
391
|
-
i.viewport && (i.viewport.scrollTop = d(e));
|
|
392
|
-
}
|
|
393
|
-
}) : null;
|
|
394
|
-
}
|
|
395
|
-
G.displayName = "@mantine/core/ScrollAreaScrollbarVisible";
|
|
396
|
-
//#endregion
|
|
397
|
-
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/ScrollArea/ScrollAreaScrollbar/ScrollAreaScrollbarAuto.mjs
|
|
398
|
-
function K(e) {
|
|
399
|
-
let t = P(), { forceMount: n, ...r } = e, [i, a] = O(!1), o = e.orientation === "horizontal", s = M(() => {
|
|
400
|
-
if (t.viewport) {
|
|
401
|
-
let e = t.viewport.offsetWidth < t.viewport.scrollWidth, n = t.viewport.offsetHeight < t.viewport.scrollHeight;
|
|
402
|
-
a(o ? e : n);
|
|
403
|
-
}
|
|
404
|
-
}, 10);
|
|
405
|
-
return F(t.viewport, s), F(t.content, s), n || i ? /* @__PURE__ */ k(G, {
|
|
406
|
-
"data-state": i ? "visible" : "hidden",
|
|
407
|
-
...r
|
|
408
|
-
}) : null;
|
|
409
|
-
}
|
|
410
|
-
K.displayName = "@mantine/core/ScrollAreaScrollbarAuto";
|
|
411
|
-
//#endregion
|
|
412
|
-
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/ScrollArea/ScrollAreaScrollbar/ScrollAreaScrollbarHover.mjs
|
|
413
|
-
function de(e) {
|
|
414
|
-
let { forceMount: t, ...n } = e, r = P(), [i, a] = O(!1);
|
|
415
|
-
return w(() => {
|
|
416
|
-
let { scrollArea: e } = r, t = 0;
|
|
417
|
-
if (e) {
|
|
418
|
-
let n = () => {
|
|
419
|
-
window.clearTimeout(t), a(!0);
|
|
420
|
-
}, i = () => {
|
|
421
|
-
t = window.setTimeout(() => a(!1), r.scrollHideDelay);
|
|
422
|
-
};
|
|
423
|
-
return e.addEventListener("pointerenter", n), e.addEventListener("pointerleave", i), () => {
|
|
424
|
-
window.clearTimeout(t), e.removeEventListener("pointerenter", n), e.removeEventListener("pointerleave", i);
|
|
425
|
-
};
|
|
426
|
-
}
|
|
427
|
-
}, [r.scrollArea, r.scrollHideDelay]), t || i ? /* @__PURE__ */ k(K, {
|
|
428
|
-
"data-state": i ? "visible" : "hidden",
|
|
429
|
-
...n
|
|
430
|
-
}) : null;
|
|
431
|
-
}
|
|
432
|
-
de.displayName = "@mantine/core/ScrollAreaScrollbarHover";
|
|
433
|
-
//#endregion
|
|
434
|
-
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/ScrollArea/ScrollAreaScrollbar/ScrollAreaScrollbarScroll.mjs
|
|
435
|
-
function q(e) {
|
|
436
|
-
let { forceMount: t, ...n } = e, r = P(), i = e.orientation === "horizontal", [a, o] = O("hidden"), s = M(() => o("idle"), 100);
|
|
437
|
-
return w(() => {
|
|
438
|
-
if (a === "idle") {
|
|
439
|
-
let e = window.setTimeout(() => o("hidden"), r.scrollHideDelay);
|
|
440
|
-
return () => window.clearTimeout(e);
|
|
441
|
-
}
|
|
442
|
-
}, [a, r.scrollHideDelay]), w(() => {
|
|
443
|
-
let { viewport: e } = r, t = i ? "scrollLeft" : "scrollTop";
|
|
444
|
-
if (e) {
|
|
445
|
-
let n = e[t], r = () => {
|
|
446
|
-
let r = e[t];
|
|
447
|
-
n !== r && (o("scrolling"), s()), n = r;
|
|
448
|
-
};
|
|
449
|
-
return e.addEventListener("scroll", r), () => e.removeEventListener("scroll", r);
|
|
450
|
-
}
|
|
451
|
-
}, [
|
|
452
|
-
r.viewport,
|
|
453
|
-
i,
|
|
454
|
-
s
|
|
455
|
-
]), t || a !== "hidden" ? /* @__PURE__ */ k(G, {
|
|
456
|
-
"data-state": a === "hidden" ? "hidden" : "visible",
|
|
457
|
-
...n,
|
|
458
|
-
onPointerEnter: V(e.onPointerEnter, () => o("interacting")),
|
|
459
|
-
onPointerLeave: V(e.onPointerLeave, () => o("idle"))
|
|
460
|
-
}) : null;
|
|
461
|
-
}
|
|
462
|
-
//#endregion
|
|
463
|
-
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/ScrollArea/ScrollAreaScrollbar/ScrollAreaScrollbar.mjs
|
|
464
|
-
function J(e) {
|
|
465
|
-
let { forceMount: t, ...n } = e, r = P(), { onScrollbarXEnabledChange: i, onScrollbarYEnabledChange: a } = r, o = e.orientation === "horizontal";
|
|
466
|
-
return w(() => (o ? i(!0) : a(!0), () => {
|
|
467
|
-
o ? i(!1) : a(!1);
|
|
468
|
-
}), [
|
|
469
|
-
o,
|
|
470
|
-
i,
|
|
471
|
-
a
|
|
472
|
-
]), r.type === "hover" ? /* @__PURE__ */ k(de, {
|
|
473
|
-
...n,
|
|
474
|
-
forceMount: t
|
|
475
|
-
}) : r.type === "scroll" ? /* @__PURE__ */ k(q, {
|
|
476
|
-
...n,
|
|
477
|
-
forceMount: t
|
|
478
|
-
}) : r.type === "auto" ? /* @__PURE__ */ k(K, {
|
|
479
|
-
...n,
|
|
480
|
-
forceMount: t
|
|
481
|
-
}) : r.type === "always" ? /* @__PURE__ */ k(G, { ...n }) : null;
|
|
482
|
-
}
|
|
483
|
-
J.displayName = "@mantine/core/ScrollAreaScrollbar";
|
|
484
|
-
//#endregion
|
|
485
|
-
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/ScrollArea/utils/add-unlinked-scroll-listener.mjs
|
|
486
|
-
function Y(e, t = () => {}) {
|
|
487
|
-
let n = {
|
|
488
|
-
left: e.scrollLeft,
|
|
489
|
-
top: e.scrollTop
|
|
490
|
-
}, r = 0;
|
|
491
|
-
return (function i() {
|
|
492
|
-
let a = {
|
|
493
|
-
left: e.scrollLeft,
|
|
494
|
-
top: e.scrollTop
|
|
495
|
-
}, o = n.left !== a.left, s = n.top !== a.top;
|
|
496
|
-
(o || s) && t(), n = a, r = window.requestAnimationFrame(i);
|
|
497
|
-
})(), () => window.cancelAnimationFrame(r);
|
|
498
|
-
}
|
|
499
|
-
//#endregion
|
|
500
|
-
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/ScrollArea/ScrollAreaThumb/ScrollAreaThumb.mjs
|
|
501
|
-
function fe(e) {
|
|
502
|
-
let { style: t, ref: n, ...r } = e, i = P(), a = le(), { onThumbPositionChange: o } = a, s = b(n, (e) => a.onThumbChange(e)), c = D(void 0), l = M(() => {
|
|
503
|
-
c.current &&= (c.current(), void 0);
|
|
504
|
-
}, 100);
|
|
505
|
-
return w(() => {
|
|
506
|
-
let { viewport: e } = i;
|
|
507
|
-
if (e) {
|
|
508
|
-
let t = () => {
|
|
509
|
-
l(), c.current || (c.current = Y(e, o), o());
|
|
510
|
-
};
|
|
511
|
-
return o(), e.addEventListener("scroll", t), () => e.removeEventListener("scroll", t);
|
|
512
|
-
}
|
|
513
|
-
}, [
|
|
514
|
-
i.viewport,
|
|
515
|
-
l,
|
|
516
|
-
o
|
|
517
|
-
]), /* @__PURE__ */ k("div", {
|
|
518
|
-
"data-state": a.hasThumb ? "visible" : "hidden",
|
|
519
|
-
...r,
|
|
520
|
-
ref: s,
|
|
521
|
-
style: {
|
|
522
|
-
width: "var(--sa-thumb-width)",
|
|
523
|
-
height: "var(--sa-thumb-height)",
|
|
524
|
-
...t
|
|
525
|
-
},
|
|
526
|
-
onPointerDownCapture: V(e.onPointerDownCapture, (e) => {
|
|
527
|
-
let t = e.target.getBoundingClientRect(), n = e.clientX - t.left, r = e.clientY - t.top;
|
|
528
|
-
a.onThumbPointerDown({
|
|
529
|
-
x: n,
|
|
530
|
-
y: r
|
|
531
|
-
});
|
|
532
|
-
}),
|
|
533
|
-
onPointerUp: V(e.onPointerUp, a.onThumbPointerUp)
|
|
534
|
-
});
|
|
535
|
-
}
|
|
536
|
-
fe.displayName = "@mantine/core/ScrollAreaThumb";
|
|
537
|
-
function X(e) {
|
|
538
|
-
let { forceMount: t, ...n } = e, r = le();
|
|
539
|
-
return t || r.hasThumb ? /* @__PURE__ */ k(fe, { ...n }) : null;
|
|
540
|
-
}
|
|
541
|
-
X.displayName = "@mantine/core/ScrollAreaThumb";
|
|
542
|
-
//#endregion
|
|
543
|
-
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/ScrollArea/ScrollAreaViewport/ScrollAreaViewport.mjs
|
|
544
|
-
function pe({ children: e, style: t, ref: n, onWheel: r, ...i }) {
|
|
545
|
-
let a = P(), o = b(n, a.onViewportChange), s = (e) => {
|
|
546
|
-
if (r?.(e), a.scrollbarXEnabled && a.viewport && e.shiftKey) {
|
|
547
|
-
let { scrollTop: t, scrollHeight: n, clientHeight: r, scrollWidth: i, clientWidth: o } = a.viewport, s = t < 1, c = t >= n - r - 1;
|
|
548
|
-
i > o && (s || c) && e.stopPropagation();
|
|
549
|
-
}
|
|
550
|
-
};
|
|
551
|
-
return /* @__PURE__ */ k(c, {
|
|
552
|
-
...i,
|
|
553
|
-
ref: o,
|
|
554
|
-
onWheel: s,
|
|
555
|
-
style: {
|
|
556
|
-
overflowX: a.scrollbarXEnabled ? "scroll" : "hidden",
|
|
557
|
-
overflowY: a.scrollbarYEnabled ? "scroll" : "hidden",
|
|
558
|
-
...t
|
|
559
|
-
},
|
|
560
|
-
children: /* @__PURE__ */ k("div", {
|
|
561
|
-
...a.getStyles("content"),
|
|
562
|
-
ref: a.onContentChange,
|
|
563
|
-
children: e
|
|
564
|
-
})
|
|
565
|
-
});
|
|
566
|
-
}
|
|
567
|
-
pe.displayName = "@mantine/core/ScrollAreaViewport";
|
|
568
|
-
//#endregion
|
|
569
|
-
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/ScrollArea/ScrollArea.module.mjs
|
|
570
|
-
var Z = {
|
|
571
|
-
root: "m_d57069b5",
|
|
572
|
-
content: "m_b1336c6",
|
|
573
|
-
viewport: "m_c0783ff9",
|
|
574
|
-
viewportInner: "m_f8f631dd",
|
|
575
|
-
scrollbar: "m_c44ba933",
|
|
576
|
-
thumb: "m_d8b5e363",
|
|
577
|
-
corner: "m_21657268"
|
|
578
|
-
}, me = {
|
|
579
|
-
scrollHideDelay: 1e3,
|
|
580
|
-
type: "hover",
|
|
581
|
-
scrollbars: "xy"
|
|
582
|
-
}, he = n((t, { scrollbarSize: n, overscrollBehavior: r, scrollbars: i }) => {
|
|
583
|
-
let a = r;
|
|
584
|
-
return r && i && (i === "x" ? a = `${r} auto` : i === "y" && (a = `auto ${r}`)), { root: {
|
|
585
|
-
"--scrollarea-scrollbar-size": e(n),
|
|
586
|
-
"--scrollarea-over-scroll-behavior": a
|
|
587
|
-
} };
|
|
588
|
-
}), Q = s((e) => {
|
|
589
|
-
let t = o("ScrollArea", me, e), { classNames: n, className: i, style: a, styles: s, unstyled: c, scrollbarSize: l, vars: u, type: d, scrollHideDelay: p, viewportProps: m, viewportRef: h, onScrollPositionChange: g, children: _, offsetScrollbars: y, scrollbars: b, onBottomReached: x, onTopReached: S, onLeftReached: C, onRightReached: w, overscrollBehavior: T, startScrollPosition: E, attributes: ee, ...j } = t, [M, N] = O(!1), [te, P] = O(!1), [ne, ie] = O(!1), oe = D(!0), I = D(!1), se = D(!0), L = D(!1), R = r({
|
|
590
|
-
name: "ScrollArea",
|
|
591
|
-
props: t,
|
|
592
|
-
classes: Z,
|
|
593
|
-
className: i,
|
|
594
|
-
style: a,
|
|
595
|
-
classNames: n,
|
|
596
|
-
styles: s,
|
|
597
|
-
unstyled: c,
|
|
598
|
-
attributes: ee,
|
|
599
|
-
vars: u,
|
|
600
|
-
varsResolver: he
|
|
601
|
-
}), z = D(null), ce = f([h, z]);
|
|
602
|
-
return v(() => {
|
|
603
|
-
E && z.current && z.current.scrollTo({
|
|
604
|
-
left: E.x ?? 0,
|
|
605
|
-
top: E.y ?? 0
|
|
606
|
-
});
|
|
607
|
-
}, []), F(y === "present" ? z.current : null, () => {
|
|
608
|
-
let e = z.current;
|
|
609
|
-
e && (P(e.scrollHeight > e.clientHeight), ie(e.scrollWidth > e.clientWidth));
|
|
610
|
-
}), /* @__PURE__ */ A(ae, {
|
|
611
|
-
getStyles: R,
|
|
612
|
-
type: d === "never" ? "always" : d,
|
|
613
|
-
scrollHideDelay: p,
|
|
614
|
-
scrollbars: b,
|
|
615
|
-
...R("root"),
|
|
616
|
-
...j,
|
|
617
|
-
children: [
|
|
618
|
-
/* @__PURE__ */ k(pe, {
|
|
619
|
-
...m,
|
|
620
|
-
...R("viewport", { style: m?.style }),
|
|
621
|
-
ref: ce,
|
|
622
|
-
"data-offset-scrollbars": y === !0 ? "xy" : y || void 0,
|
|
623
|
-
"data-scrollbars": b || void 0,
|
|
624
|
-
"data-horizontal-hidden": y === "present" && !ne ? "true" : void 0,
|
|
625
|
-
"data-vertical-hidden": y === "present" && !te ? "true" : void 0,
|
|
626
|
-
onScroll: (e) => {
|
|
627
|
-
m?.onScroll?.(e), g?.({
|
|
628
|
-
x: e.currentTarget.scrollLeft,
|
|
629
|
-
y: e.currentTarget.scrollTop
|
|
630
|
-
});
|
|
631
|
-
let { scrollTop: t, scrollHeight: n, clientHeight: r, scrollLeft: i, scrollWidth: a, clientWidth: o } = e.currentTarget, s = t - (n - r) >= -.8, c = t === 0;
|
|
632
|
-
s && !I.current && x?.(), c && !oe.current && S?.(), I.current = s, oe.current = c;
|
|
633
|
-
let l = i - (a - o) >= -.8, u = i === 0;
|
|
634
|
-
l && !L.current && w?.(), u && !se.current && C?.(), L.current = l, se.current = u;
|
|
635
|
-
},
|
|
636
|
-
children: _
|
|
637
|
-
}),
|
|
638
|
-
(b === "xy" || b === "x") && /* @__PURE__ */ k(J, {
|
|
639
|
-
...R("scrollbar"),
|
|
640
|
-
orientation: "horizontal",
|
|
641
|
-
"data-hidden": d === "never" || y === "present" && !ne ? !0 : void 0,
|
|
642
|
-
forceMount: !0,
|
|
643
|
-
onMouseEnter: () => N(!0),
|
|
644
|
-
onMouseLeave: () => N(!1),
|
|
645
|
-
children: /* @__PURE__ */ k(X, { ...R("thumb") })
|
|
646
|
-
}),
|
|
647
|
-
(b === "xy" || b === "y") && /* @__PURE__ */ k(J, {
|
|
648
|
-
...R("scrollbar"),
|
|
649
|
-
orientation: "vertical",
|
|
650
|
-
"data-hidden": d === "never" || y === "present" && !te ? !0 : void 0,
|
|
651
|
-
forceMount: !0,
|
|
652
|
-
onMouseEnter: () => N(!0),
|
|
653
|
-
onMouseLeave: () => N(!1),
|
|
654
|
-
children: /* @__PURE__ */ k(X, { ...R("thumb") })
|
|
655
|
-
}),
|
|
656
|
-
/* @__PURE__ */ k(re, {
|
|
657
|
-
...R("corner"),
|
|
658
|
-
"data-hovered": M || void 0,
|
|
659
|
-
"data-hidden": d === "never" || void 0
|
|
660
|
-
})
|
|
661
|
-
]
|
|
662
|
-
});
|
|
663
|
-
});
|
|
664
|
-
Q.displayName = "@mantine/core/ScrollArea";
|
|
665
|
-
var $ = s((e) => {
|
|
666
|
-
let { children: t, classNames: n, styles: r, scrollbarSize: i, scrollHideDelay: a, type: s, dir: l, offsetScrollbars: u, overscrollBehavior: d, viewportRef: p, onScrollPositionChange: m, unstyled: h, variant: g, viewportProps: _, scrollbars: v, style: y, vars: b, onBottomReached: x, onTopReached: S, startScrollPosition: C, onOverflowChange: w, ...E } = o("ScrollAreaAutosize", me, e), O = D(null), ee = f([p, O]), A = D(!1), j = D(!1), M = T(() => {
|
|
667
|
-
let e = O.current;
|
|
668
|
-
if (!e || !w) return;
|
|
669
|
-
let t = e.scrollHeight > e.clientHeight;
|
|
670
|
-
t !== A.current && (j.current ? w(t) : (j.current = !0, t && w(!0)), A.current = t);
|
|
671
|
-
});
|
|
672
|
-
return F(w ? O.current : null, M), /* @__PURE__ */ k(c, {
|
|
673
|
-
...E,
|
|
674
|
-
variant: g,
|
|
675
|
-
style: [{
|
|
676
|
-
display: "flex",
|
|
677
|
-
overflow: "hidden"
|
|
678
|
-
}, y],
|
|
679
|
-
children: /* @__PURE__ */ k(c, {
|
|
680
|
-
style: {
|
|
681
|
-
display: "flex",
|
|
682
|
-
flexDirection: "column",
|
|
683
|
-
flex: 1,
|
|
684
|
-
overflow: "hidden",
|
|
685
|
-
...v === "y" && { minWidth: 0 },
|
|
686
|
-
...v === "x" && { minHeight: 0 },
|
|
687
|
-
...v === "xy" && {
|
|
688
|
-
minWidth: 0,
|
|
689
|
-
minHeight: 0
|
|
690
|
-
},
|
|
691
|
-
...v === !1 && {
|
|
692
|
-
minWidth: 0,
|
|
693
|
-
minHeight: 0
|
|
694
|
-
}
|
|
695
|
-
},
|
|
696
|
-
children: /* @__PURE__ */ k(Q, {
|
|
697
|
-
classNames: n,
|
|
698
|
-
styles: r,
|
|
699
|
-
scrollHideDelay: a,
|
|
700
|
-
scrollbarSize: i,
|
|
701
|
-
type: s,
|
|
702
|
-
dir: l,
|
|
703
|
-
offsetScrollbars: u,
|
|
704
|
-
overscrollBehavior: d,
|
|
705
|
-
viewportRef: ee,
|
|
706
|
-
onScrollPositionChange: m,
|
|
707
|
-
unstyled: h,
|
|
708
|
-
variant: g,
|
|
709
|
-
viewportProps: _,
|
|
710
|
-
vars: b,
|
|
711
|
-
scrollbars: v,
|
|
712
|
-
onBottomReached: x,
|
|
713
|
-
onTopReached: S,
|
|
714
|
-
startScrollPosition: C,
|
|
715
|
-
"data-autosize": "true",
|
|
716
|
-
children: t
|
|
717
|
-
})
|
|
718
|
-
})
|
|
719
|
-
});
|
|
720
|
-
});
|
|
721
|
-
Q.classes = Z, Q.varsResolver = he, $.displayName = "@mantine/core/ScrollAreaAutosize", $.classes = Z, Q.Autosize = $;
|
|
722
|
-
//#endregion
|
|
723
|
-
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/utils/InputsGroupFieldset/InputsGroupFieldset.mjs
|
|
724
|
-
function ge({ children: e, role: t }) {
|
|
725
|
-
let n = S(g);
|
|
726
|
-
return n ? /* @__PURE__ */ k("div", {
|
|
727
|
-
role: t,
|
|
728
|
-
"aria-labelledby": n.labelId,
|
|
729
|
-
"aria-describedby": n.describedBy,
|
|
730
|
-
children: e
|
|
731
|
-
}) : /* @__PURE__ */ k(ee, { children: e });
|
|
732
|
-
}
|
|
733
|
-
//#endregion
|
|
734
|
-
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/utils/InlineInput/InlineInput.module.mjs
|
|
735
|
-
var _e = {
|
|
736
|
-
root: "m_5f75b09e",
|
|
737
|
-
body: "m_5f6e695e",
|
|
738
|
-
labelWrapper: "m_d3ea56bb",
|
|
739
|
-
label: "m_8ee546b8",
|
|
740
|
-
description: "m_328f68c0",
|
|
741
|
-
error: "m_8e8a99cc"
|
|
742
|
-
}, ve = _e;
|
|
743
|
-
function ye({ __staticSelector: e, __stylesApiProps: n, className: i, classNames: o, styles: s, unstyled: l, children: u, label: d, description: f, id: p, disabled: m, error: h, size: g, labelPosition: _ = "left", bodyElement: v = "div", labelElement: b = "label", variant: x, style: S, vars: C, mod: w, attributes: T, ...E }) {
|
|
744
|
-
let D = r({
|
|
745
|
-
name: e,
|
|
746
|
-
props: n,
|
|
747
|
-
className: i,
|
|
748
|
-
style: S,
|
|
749
|
-
classes: _e,
|
|
750
|
-
classNames: o,
|
|
751
|
-
styles: s,
|
|
752
|
-
unstyled: l,
|
|
753
|
-
attributes: T
|
|
754
|
-
});
|
|
755
|
-
return /* @__PURE__ */ k(c, {
|
|
756
|
-
...D("root"),
|
|
757
|
-
__vars: {
|
|
758
|
-
"--label-fz": a(g),
|
|
759
|
-
"--label-lh": t(g, "label-lh")
|
|
760
|
-
},
|
|
761
|
-
mod: [{ "label-position": _ }, w],
|
|
762
|
-
variant: x,
|
|
763
|
-
size: g,
|
|
764
|
-
...E,
|
|
765
|
-
children: /* @__PURE__ */ A(c, {
|
|
766
|
-
component: v,
|
|
767
|
-
htmlFor: v === "label" ? p : void 0,
|
|
768
|
-
...D("body"),
|
|
769
|
-
children: [u, /* @__PURE__ */ A("div", {
|
|
770
|
-
...D("labelWrapper"),
|
|
771
|
-
"data-disabled": m || void 0,
|
|
772
|
-
children: [
|
|
773
|
-
d && /* @__PURE__ */ k(c, {
|
|
774
|
-
component: b,
|
|
775
|
-
htmlFor: b === "label" ? p : void 0,
|
|
776
|
-
...D("label"),
|
|
777
|
-
"data-disabled": m || void 0,
|
|
778
|
-
children: d
|
|
779
|
-
}),
|
|
780
|
-
f && /* @__PURE__ */ k(y.Description, {
|
|
781
|
-
size: g,
|
|
782
|
-
__inheritStyles: !1,
|
|
783
|
-
...D("description"),
|
|
784
|
-
children: f
|
|
785
|
-
}),
|
|
786
|
-
h && typeof h != "boolean" && /* @__PURE__ */ k(y.Error, {
|
|
787
|
-
size: g,
|
|
788
|
-
__inheritStyles: !1,
|
|
789
|
-
...D("error"),
|
|
790
|
-
children: h
|
|
791
|
-
})
|
|
792
|
-
]
|
|
793
|
-
})]
|
|
794
|
-
})
|
|
795
|
-
});
|
|
796
|
-
}
|
|
797
|
-
ye.displayName = "@mantine/core/InlineInput";
|
|
798
|
-
//#endregion
|
|
799
|
-
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Slider/Slider.context.mjs
|
|
800
|
-
var [be, xe] = u("SliderProvider was not found in tree");
|
|
801
|
-
//#endregion
|
|
802
|
-
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Slider/SliderRoot/SliderRoot.mjs
|
|
803
|
-
function Se({ size: e, disabled: t, variant: n, color: r, thumbSize: i, radius: a, orientation: o, ...s }) {
|
|
804
|
-
let { getStyles: l } = xe();
|
|
805
|
-
return /* @__PURE__ */ k(c, {
|
|
806
|
-
tabIndex: -1,
|
|
807
|
-
variant: n,
|
|
808
|
-
size: e,
|
|
809
|
-
...l("root"),
|
|
810
|
-
mod: { orientation: o },
|
|
811
|
-
...s
|
|
812
|
-
});
|
|
813
|
-
}
|
|
814
|
-
Se.displayName = "@mantine/core/SliderRoot";
|
|
815
|
-
//#endregion
|
|
816
|
-
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Slider/Thumb/Thumb.mjs
|
|
817
|
-
function Ce({ max: e, min: t, value: n, position: r, label: i, dragging: a, onMouseDown: o, onKeyDownCapture: s, labelTransitionProps: l, labelAlwaysOn: u, thumbLabel: d, onFocus: f, onBlur: p, showLabelOnHover: m, isHovered: h, children: g = null, disabled: v, orientation: y = "horizontal", ref: b }) {
|
|
818
|
-
let { getStyles: x } = xe(), [S, C] = O(!1), w = u || a || S || m && h;
|
|
819
|
-
return /* @__PURE__ */ A(c, {
|
|
820
|
-
tabIndex: v ? -1 : 0,
|
|
821
|
-
role: "slider",
|
|
822
|
-
"aria-label": d,
|
|
823
|
-
"aria-valuemax": e,
|
|
824
|
-
"aria-valuemin": t,
|
|
825
|
-
"aria-valuenow": n,
|
|
826
|
-
"aria-disabled": v,
|
|
827
|
-
"aria-orientation": y,
|
|
828
|
-
ref: b,
|
|
829
|
-
__vars: { "--slider-thumb-offset": `${r}%` },
|
|
830
|
-
...x("thumb", { focusable: !0 }),
|
|
831
|
-
mod: {
|
|
832
|
-
dragging: a,
|
|
833
|
-
disabled: v
|
|
834
|
-
},
|
|
835
|
-
onFocus: (e) => {
|
|
836
|
-
C(!0), typeof f == "function" && f(e);
|
|
837
|
-
},
|
|
838
|
-
onBlur: (e) => {
|
|
839
|
-
C(!1), typeof p == "function" && p(e);
|
|
840
|
-
},
|
|
841
|
-
onTouchStart: o,
|
|
842
|
-
onMouseDown: o,
|
|
843
|
-
onKeyDownCapture: s,
|
|
844
|
-
onClick: (e) => e.stopPropagation(),
|
|
845
|
-
children: [g, /* @__PURE__ */ k(_, {
|
|
846
|
-
mounted: i != null && !!w,
|
|
847
|
-
transition: "fade",
|
|
848
|
-
duration: 0,
|
|
849
|
-
...l,
|
|
850
|
-
children: (e) => /* @__PURE__ */ k("div", {
|
|
851
|
-
...x("label", { style: e }),
|
|
852
|
-
children: i
|
|
853
|
-
})
|
|
854
|
-
})]
|
|
855
|
-
});
|
|
856
|
-
}
|
|
857
|
-
Ce.displayName = "@mantine/core/SliderThumb";
|
|
858
|
-
//#endregion
|
|
859
|
-
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Slider/utils/get-position/get-position.mjs
|
|
860
|
-
function we({ value: e, min: t, max: n }) {
|
|
861
|
-
let r = (e - t) / (n - t) * 100;
|
|
862
|
-
return Math.min(Math.max(r, 0), 100);
|
|
863
|
-
}
|
|
864
|
-
//#endregion
|
|
865
|
-
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Slider/Marks/is-mark-filled.mjs
|
|
866
|
-
function Te({ mark: e, offset: t, value: n, inverted: r = !1 }) {
|
|
867
|
-
return r ? typeof t == "number" && e.value <= t || e.value >= n : typeof t == "number" ? e.value >= t && e.value <= n : e.value <= n;
|
|
868
|
-
}
|
|
869
|
-
//#endregion
|
|
870
|
-
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Slider/Marks/Marks.mjs
|
|
871
|
-
function Ee({ marks: e, min: t, max: n, disabled: r, value: i, offset: a, inverted: o }) {
|
|
872
|
-
let { getStyles: s } = xe();
|
|
873
|
-
return e ? /* @__PURE__ */ k("div", { children: e.map((e, l) => e.hidden ? null : /* @__PURE__ */ x(c, {
|
|
874
|
-
...s("markWrapper"),
|
|
875
|
-
__vars: { "--mark-offset": `${we({
|
|
876
|
-
value: e.value,
|
|
877
|
-
min: t,
|
|
878
|
-
max: n
|
|
879
|
-
})}%` },
|
|
880
|
-
key: l
|
|
881
|
-
}, /* @__PURE__ */ k(c, {
|
|
882
|
-
...s("mark"),
|
|
883
|
-
mod: {
|
|
884
|
-
filled: Te({
|
|
885
|
-
mark: e,
|
|
886
|
-
value: i,
|
|
887
|
-
offset: a,
|
|
888
|
-
inverted: o
|
|
889
|
-
}),
|
|
890
|
-
disabled: r
|
|
891
|
-
}
|
|
892
|
-
}), e.label && /* @__PURE__ */ k("div", {
|
|
893
|
-
...s("markLabel"),
|
|
894
|
-
children: e.label
|
|
895
|
-
}))) }) : null;
|
|
896
|
-
}
|
|
897
|
-
Ee.displayName = "@mantine/core/SliderMarks";
|
|
898
|
-
//#endregion
|
|
899
|
-
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Slider/Track/Track.mjs
|
|
900
|
-
function De({ filled: e, children: t, offset: n, disabled: r, marksOffset: i, inverted: a, containerProps: o, ...s }) {
|
|
901
|
-
let { getStyles: l } = xe();
|
|
902
|
-
return /* @__PURE__ */ k(c, {
|
|
903
|
-
...l("trackContainer"),
|
|
904
|
-
mod: { disabled: r },
|
|
905
|
-
...o,
|
|
906
|
-
children: /* @__PURE__ */ A(c, {
|
|
907
|
-
...l("track"),
|
|
908
|
-
mod: {
|
|
909
|
-
inverted: a,
|
|
910
|
-
disabled: r
|
|
911
|
-
},
|
|
912
|
-
children: [
|
|
913
|
-
/* @__PURE__ */ k(c, {
|
|
914
|
-
mod: {
|
|
915
|
-
inverted: a,
|
|
916
|
-
disabled: r
|
|
917
|
-
},
|
|
918
|
-
__vars: {
|
|
919
|
-
"--slider-bar-width": `calc(${e}% + 2 * var(--slider-size))`,
|
|
920
|
-
"--slider-bar-offset": `calc(${n}% - var(--slider-size))`
|
|
921
|
-
},
|
|
922
|
-
...l("bar")
|
|
923
|
-
}),
|
|
924
|
-
t,
|
|
925
|
-
/* @__PURE__ */ k(Ee, {
|
|
926
|
-
...s,
|
|
927
|
-
offset: i,
|
|
928
|
-
disabled: r,
|
|
929
|
-
inverted: a
|
|
930
|
-
})
|
|
931
|
-
]
|
|
932
|
-
})
|
|
933
|
-
});
|
|
934
|
-
}
|
|
935
|
-
De.displayName = "@mantine/core/SliderTrack";
|
|
936
|
-
//#endregion
|
|
937
|
-
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Slider/utils/get-change-value/get-change-value.mjs
|
|
938
|
-
function Oe({ value: e, containerWidth: t, min: n, max: r, step: i, precision: a }) {
|
|
939
|
-
let o = (t ? Math.min(Math.max(e, 0), t) / t : e) * (r - n), s = (o === 0 ? 0 : Math.round(o / i) * i) + n, c = Math.max(s, n);
|
|
940
|
-
return a === void 0 ? c : Number(c.toFixed(a));
|
|
941
|
-
}
|
|
942
|
-
//#endregion
|
|
943
|
-
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Slider/utils/get-floating-value/get-floating-value.mjs
|
|
944
|
-
function ke(e, t) {
|
|
945
|
-
return parseFloat(e.toFixed(t));
|
|
946
|
-
}
|
|
947
|
-
//#endregion
|
|
948
|
-
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Slider/utils/get-precision/get-precision.mjs
|
|
949
|
-
function Ae(e) {
|
|
950
|
-
if (!e) return 0;
|
|
951
|
-
let t = e.toString().split(".");
|
|
952
|
-
return t.length > 1 ? t[1].length : 0;
|
|
953
|
-
}
|
|
954
|
-
//#endregion
|
|
955
|
-
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Slider/utils/get-step-mark-value/get-step-mark-value.mjs
|
|
956
|
-
function je(e, t) {
|
|
957
|
-
let n = [...t].sort((e, t) => e.value - t.value).find((t) => t.value > e);
|
|
958
|
-
return n ? n.value : e;
|
|
959
|
-
}
|
|
960
|
-
function Me(e, t) {
|
|
961
|
-
let n = [...t].sort((e, t) => t.value - e.value).find((t) => t.value < e);
|
|
962
|
-
return n ? n.value : e;
|
|
963
|
-
}
|
|
964
|
-
function Ne(e) {
|
|
965
|
-
let t = [...e].sort((e, t) => e.value - t.value);
|
|
966
|
-
return t.length > 0 ? t[0].value : 0;
|
|
967
|
-
}
|
|
968
|
-
function Pe(e) {
|
|
969
|
-
let t = [...e].sort((e, t) => e.value - t.value);
|
|
970
|
-
return t.length > 0 ? t[t.length - 1].value : 100;
|
|
971
|
-
}
|
|
972
|
-
//#endregion
|
|
973
|
-
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Slider/Slider.module.mjs
|
|
974
|
-
var Fe = {
|
|
975
|
-
root: "m_dd36362e",
|
|
976
|
-
label: "m_c9357328",
|
|
977
|
-
thumb: "m_c9a9a60a",
|
|
978
|
-
trackContainer: "m_a8645c2",
|
|
979
|
-
track: "m_c9ade57f",
|
|
980
|
-
bar: "m_38aeed47",
|
|
981
|
-
markWrapper: "m_b7b0423a",
|
|
982
|
-
mark: "m_dd33bc19",
|
|
983
|
-
markLabel: "m_68c77a5b"
|
|
984
|
-
}, Ie = {
|
|
985
|
-
radius: "xl",
|
|
986
|
-
min: 0,
|
|
987
|
-
max: 100,
|
|
988
|
-
step: 1,
|
|
989
|
-
marks: [],
|
|
990
|
-
label: (e) => e,
|
|
991
|
-
labelTransitionProps: {
|
|
992
|
-
transition: "fade",
|
|
993
|
-
duration: 0
|
|
994
|
-
},
|
|
995
|
-
thumbLabel: "",
|
|
996
|
-
showLabelOnHover: !0,
|
|
997
|
-
scale: (e) => e,
|
|
998
|
-
size: "md"
|
|
999
|
-
}, Le = n((n, { size: r, color: a, thumbSize: o, radius: s }) => ({ root: {
|
|
1000
|
-
"--slider-size": t(r, "slider-size"),
|
|
1001
|
-
"--slider-color": a ? l(a, n) : void 0,
|
|
1002
|
-
"--slider-radius": s === void 0 ? void 0 : i(s),
|
|
1003
|
-
"--slider-thumb-size": o === void 0 ? "calc(var(--slider-size) * 2)" : e(o)
|
|
1004
|
-
} })), Re = s((e) => {
|
|
1005
|
-
let t = o("Slider", Ie, e), { classNames: n, styles: i, value: a, onChange: s, onChangeEnd: c, size: l, min: u, max: f, domain: g, step: _, precision: v, defaultValue: y, name: x, marks: S, label: T, labelTransitionProps: E, labelAlwaysOn: ee, thumbLabel: j, showLabelOnHover: M, thumbChildren: te, disabled: P, unstyled: F, scale: ne, inverted: re, orientation: ie, className: ae, style: oe, vars: I, hiddenInputProps: se, restrictToMarks: L, thumbProps: R, attributes: z, ref: ce, ...B } = t, V = r({
|
|
1006
|
-
name: "Slider",
|
|
1007
|
-
props: t,
|
|
1008
|
-
classes: Fe,
|
|
1009
|
-
classNames: n,
|
|
1010
|
-
className: ae,
|
|
1011
|
-
styles: i,
|
|
1012
|
-
style: oe,
|
|
1013
|
-
attributes: z,
|
|
1014
|
-
vars: I,
|
|
1015
|
-
varsResolver: Le,
|
|
1016
|
-
unstyled: F
|
|
1017
|
-
}), { dir: H } = p(), [le, ue] = O(!1), [U, W] = h({
|
|
1018
|
-
value: typeof a == "number" ? m(a, u, f) : a,
|
|
1019
|
-
defaultValue: typeof y == "number" ? m(y, u, f) : y,
|
|
1020
|
-
finalValue: m(0, u, f),
|
|
1021
|
-
onChange: s
|
|
1022
|
-
}), G = D(U), K = D(c);
|
|
1023
|
-
w(() => {
|
|
1024
|
-
K.current = c;
|
|
1025
|
-
}, [c]);
|
|
1026
|
-
let de = D(null), q = D(null), [J, Y] = g || [u, f], fe = we({
|
|
1027
|
-
value: U,
|
|
1028
|
-
min: J,
|
|
1029
|
-
max: Y
|
|
1030
|
-
}), X = ne(U), pe = typeof T == "function" ? T(X) : T, Z = v ?? Ae(_), me = C(({ x: e }) => {
|
|
1031
|
-
if (!P) {
|
|
1032
|
-
let t = m(Oe({
|
|
1033
|
-
value: e,
|
|
1034
|
-
min: J,
|
|
1035
|
-
max: Y,
|
|
1036
|
-
step: _,
|
|
1037
|
-
precision: Z
|
|
1038
|
-
}), u, f);
|
|
1039
|
-
W(L && S?.length ? N(t, S.map((e) => e.value)) : t), G.current = t;
|
|
1040
|
-
}
|
|
1041
|
-
}, [
|
|
1042
|
-
P,
|
|
1043
|
-
u,
|
|
1044
|
-
f,
|
|
1045
|
-
J,
|
|
1046
|
-
Y,
|
|
1047
|
-
_,
|
|
1048
|
-
Z,
|
|
1049
|
-
W,
|
|
1050
|
-
S,
|
|
1051
|
-
L
|
|
1052
|
-
]), { ref: he, active: Q } = d(({ x: e, y: t }) => me({ x: ie === "vertical" ? 1 - t : e }), { onScrubEnd: C(() => {
|
|
1053
|
-
if (!P && K.current) {
|
|
1054
|
-
let e = L && S?.length ? N(G.current, S.map((e) => e.value)) : G.current;
|
|
1055
|
-
K.current(e);
|
|
1056
|
-
}
|
|
1057
|
-
}, [
|
|
1058
|
-
P,
|
|
1059
|
-
S,
|
|
1060
|
-
L
|
|
1061
|
-
]) }, H), $ = C((e) => {
|
|
1062
|
-
!P && K.current && K.current(e);
|
|
1063
|
-
}, [P]), ge = (e) => {
|
|
1064
|
-
if (!P) switch (e.key) {
|
|
1065
|
-
case "ArrowUp": {
|
|
1066
|
-
if (e.preventDefault(), q.current?.focus(), L && S) {
|
|
1067
|
-
let e = je(U, S);
|
|
1068
|
-
W(e), $(e);
|
|
1069
|
-
break;
|
|
1070
|
-
}
|
|
1071
|
-
let t = ke(Math.min(Math.max(U + _, J), Y), Z);
|
|
1072
|
-
W(t), $(t);
|
|
1073
|
-
break;
|
|
1074
|
-
}
|
|
1075
|
-
case "ArrowRight": {
|
|
1076
|
-
if (e.preventDefault(), q.current?.focus(), L && S) {
|
|
1077
|
-
let e = H === "rtl" ? Me(U, S) : je(U, S);
|
|
1078
|
-
W(e), $(e);
|
|
1079
|
-
break;
|
|
1080
|
-
}
|
|
1081
|
-
let t = ke(Math.min(Math.max(H === "rtl" ? U - _ : U + _, J), Y), Z);
|
|
1082
|
-
W(t), $(t);
|
|
1083
|
-
break;
|
|
1084
|
-
}
|
|
1085
|
-
case "ArrowDown": {
|
|
1086
|
-
if (e.preventDefault(), q.current?.focus(), L && S) {
|
|
1087
|
-
let e = Me(U, S);
|
|
1088
|
-
W(e), $(e);
|
|
1089
|
-
break;
|
|
1090
|
-
}
|
|
1091
|
-
let t = ke(Math.min(Math.max(U - _, J), Y), Z);
|
|
1092
|
-
W(t), $(t);
|
|
1093
|
-
break;
|
|
1094
|
-
}
|
|
1095
|
-
case "ArrowLeft": {
|
|
1096
|
-
if (e.preventDefault(), q.current?.focus(), L && S) {
|
|
1097
|
-
let e = H === "rtl" ? je(U, S) : Me(U, S);
|
|
1098
|
-
W(e), $(e);
|
|
1099
|
-
break;
|
|
1100
|
-
}
|
|
1101
|
-
let t = ke(Math.min(Math.max(H === "rtl" ? U + _ : U - _, J), Y), Z);
|
|
1102
|
-
W(t), $(t);
|
|
1103
|
-
break;
|
|
1104
|
-
}
|
|
1105
|
-
case "Home":
|
|
1106
|
-
if (e.preventDefault(), q.current?.focus(), L && S) {
|
|
1107
|
-
W(Ne(S)), $(Ne(S));
|
|
1108
|
-
break;
|
|
1109
|
-
}
|
|
1110
|
-
W(u), $(u);
|
|
1111
|
-
break;
|
|
1112
|
-
case "End":
|
|
1113
|
-
if (e.preventDefault(), q.current?.focus(), L && S) {
|
|
1114
|
-
W(Pe(S)), $(Pe(S));
|
|
1115
|
-
break;
|
|
1116
|
-
}
|
|
1117
|
-
W(f), $(f);
|
|
1118
|
-
break;
|
|
1119
|
-
default: break;
|
|
1120
|
-
}
|
|
1121
|
-
};
|
|
1122
|
-
return /* @__PURE__ */ k(be, {
|
|
1123
|
-
value: { getStyles: V },
|
|
1124
|
-
children: /* @__PURE__ */ A(Se, {
|
|
1125
|
-
...B,
|
|
1126
|
-
ref: b(ce, de),
|
|
1127
|
-
onKeyDownCapture: ge,
|
|
1128
|
-
onMouseDownCapture: () => de.current?.focus(),
|
|
1129
|
-
size: l,
|
|
1130
|
-
disabled: P,
|
|
1131
|
-
orientation: ie,
|
|
1132
|
-
children: [/* @__PURE__ */ k(De, {
|
|
1133
|
-
inverted: re,
|
|
1134
|
-
offset: 0,
|
|
1135
|
-
filled: fe,
|
|
1136
|
-
marks: S,
|
|
1137
|
-
min: J,
|
|
1138
|
-
max: Y,
|
|
1139
|
-
value: X,
|
|
1140
|
-
disabled: P,
|
|
1141
|
-
containerProps: {
|
|
1142
|
-
ref: he,
|
|
1143
|
-
onMouseEnter: M ? () => ue(!0) : void 0,
|
|
1144
|
-
onMouseLeave: M ? () => ue(!1) : void 0
|
|
1145
|
-
},
|
|
1146
|
-
children: /* @__PURE__ */ k(Ce, {
|
|
1147
|
-
max: Y,
|
|
1148
|
-
min: J,
|
|
1149
|
-
value: X,
|
|
1150
|
-
position: fe,
|
|
1151
|
-
dragging: Q,
|
|
1152
|
-
label: pe,
|
|
1153
|
-
ref: q,
|
|
1154
|
-
labelTransitionProps: E,
|
|
1155
|
-
labelAlwaysOn: ee,
|
|
1156
|
-
thumbLabel: j,
|
|
1157
|
-
showLabelOnHover: M,
|
|
1158
|
-
isHovered: le,
|
|
1159
|
-
disabled: P,
|
|
1160
|
-
orientation: ie,
|
|
1161
|
-
...R,
|
|
1162
|
-
children: te
|
|
1163
|
-
})
|
|
1164
|
-
}), /* @__PURE__ */ k("input", {
|
|
1165
|
-
type: "hidden",
|
|
1166
|
-
name: x,
|
|
1167
|
-
value: X,
|
|
1168
|
-
...se
|
|
1169
|
-
})]
|
|
1170
|
-
})
|
|
1171
|
-
});
|
|
1172
|
-
});
|
|
1173
|
-
Re.classes = Fe, Re.varsResolver = Le, Re.displayName = "@mantine/core/Slider";
|
|
1174
|
-
//#endregion
|
|
1175
|
-
export { Q as a, ge as i, ye as n, B as o, ve as r, Re as t };
|