@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.
- package/dist/{AppEmptyState-Bxpit0JV.js → AppEmptyState-Boej96TB.js} +1 -1
- 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-BaLP3gkO.js → ImageViewerApp-iojtyFEf.js} +5 -5
- package/dist/{ImageViewerMenuBar-CabGSi9r.js → ImageViewerMenuBar-BIsUokxV.js} +2 -2
- package/dist/ImageViewerMenuBar-BgzgSF3v.cjs +1 -0
- package/dist/MenuEditApp-BHptoJbz.cjs +1 -0
- package/dist/{MenuEditApp-BTRppYnD.js → MenuEditApp-CJUbJaqh.js} +138 -143
- package/dist/MenuEditMenuBar-CCOSPAUe.cjs +1 -0
- package/dist/{MenuEditMenuBar-x1IQrHP2.js → MenuEditMenuBar-DnCL-kaZ.js} +3 -3
- package/dist/NotesApp-BmQIBtJ2.cjs +1 -0
- package/dist/{NotesApp-CQe7UfBC.js → NotesApp-DJ2dGt4-.js} +5 -5
- package/dist/NotesMenuBar-BzojwMtH.cjs +1 -0
- package/dist/{NotesMenuBar-VhpIe68v.js → NotesMenuBar-DILZTjnT.js} +3 -3
- package/dist/{PdfApp-DL_R9-Nc.js → PdfApp-IjY_GtnW.js} +3 -3
- package/dist/PdfApp-krW8UI97.cjs +1 -0
- package/dist/{PdfMenuBar-DZCLSOpR.js → PdfMenuBar-Bd5MTZcZ.js} +1 -1
- 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-YWiJHaxq.js → SettingsMenuBar-ktC0viTd.js} +3 -3
- package/dist/UploaderApp-CbypD538.js +263 -0
- package/dist/UploaderApp-D_qD3O70.cjs +1 -0
- package/dist/{VscIcon-DBfVnArE.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-F8bgLqFl.js → desktopStore-8cSZlj7s.js} +407 -477
- package/dist/desktopStore-C1jR6Fdb.cjs +1 -0
- package/dist/imageViewerStore-Dfylg59V.cjs +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +16 -6
- package/dist/index.js +1646 -1960
- package/dist/menuEditStore-CYwtfD6H.cjs +1 -0
- package/dist/notesStore-CrWTO6oB.cjs +1 -0
- package/dist/settingsAppStore-DuYZNeFf.cjs +1 -0
- package/dist/useAdaptiveDimensions-3Lz4X0Tc.cjs +1 -0
- package/dist/{useAdaptiveDimensions-AVDc_qPa.js → useAdaptiveDimensions-DxNLJ7R5.js} +1 -1
- package/dist/{useCloseInterceptor-BZd3VILp.js → useCloseInterceptor-CIxhOZx1.js} +1 -1
- package/dist/useCloseInterceptor-CdX-09Ib.cjs +1 -0
- package/dist/useDynamicIcon-CK6SjEv5.cjs +1 -0
- package/dist/useOpenApp-D-FOY88T.cjs +1 -0
- package/dist/{useOpenApp-CBIm7Gzl.js → useOpenApp-DkZLFFCH.js} +51 -67
- package/dist/{useResolvedUrl-DQpLqOoL.js → useResolvedUrl-B6x4xy0x.js} +1 -2
- package/dist/useResolvedUrl-Bb39DpVy.cjs +1 -0
- package/package.json +2 -1
- package/dist/AccordionChevron-DxpOyInK.js +0 -26
- package/dist/AccordionChevron-kn5kSrEc.cjs +0 -1
- package/dist/ActionIcon-Drh4p6Fv.js +0 -145
- package/dist/ActionIcon-alk2zZD6.cjs +0 -1
- package/dist/AppEmptyState-BWCUbf-B.cjs +0 -1
- package/dist/AppIcon-BU7a3ZNH.cjs +0 -1
- package/dist/AppIcon-XumS3bIG.js +0 -80
- package/dist/AppMenuBar-B9U0n1Vv.cjs +0 -1
- package/dist/AppMenuBar-CnIEVjr8.js +0 -2049
- package/dist/Box-DSKR_qaa.js +0 -1579
- package/dist/Box-zW6Twge8.cjs +0 -1
- package/dist/Button-DMlnrqyx.cjs +0 -1
- package/dist/Button-wTOTQKxF.js +0 -178
- package/dist/CalendarApp-B_e1B1Yn.cjs +0 -1
- package/dist/CalendarApp-C-l9D6nd.cjs +0 -1
- package/dist/CalendarApp-D0ftTCTG.js +0 -1399
- package/dist/Center-CmxXB9ql.js +0 -25
- package/dist/Center-DKUE2pER.cjs +0 -1
- package/dist/CheckIcon-CZhtJD1O.cjs +0 -1
- package/dist/CheckIcon-N5qBqXQJ.js +0 -25
- package/dist/CodeServerApp-BOoGwZ7r.cjs +0 -1
- package/dist/CodeServerApp-Be3I5EGg.cjs +0 -1
- package/dist/CodeServerApp-DW18EZxa.js +0 -150
- package/dist/ColorPicker-BCNqi02x.js +0 -997
- package/dist/ColorPicker-BrDE7tMO.cjs +0 -1
- package/dist/CreateItemApp-B12M1E_1.cjs +0 -1
- package/dist/CreateItemApp-TAAprby3.js +0 -400
- package/dist/CreateItemApp-ePB6ujNl.cjs +0 -1
- package/dist/DeviceInfoApp-BMF18BGo.cjs +0 -1
- package/dist/DeviceInfoApp-DRy0H3aT.cjs +0 -1
- package/dist/DeviceInfoApp-lgpwkeRR.js +0 -223
- package/dist/DownloadProgress-EoyCaD5O.js +0 -174
- package/dist/DownloadProgress-VNdj22U8.cjs +0 -1
- package/dist/FileIcon-7JaSR3Gn.js +0 -89
- package/dist/FileIcon-CIXopWLv.cjs +0 -1
- package/dist/FilePickerApp-DaMgEqKh.js +0 -409
- package/dist/FilePickerApp-DjmuSFqa.cjs +0 -1
- package/dist/FilesApp-Bp7wfrBZ.cjs +0 -1
- package/dist/FilesApp-BpJJRKhi.cjs +0 -1
- package/dist/FilesApp-Cj94QG5o.js +0 -225
- package/dist/Group-CtBJSfCo.js +0 -48
- package/dist/Group-Dsrf6lEK.cjs +0 -1
- package/dist/ImageViewerApp-DlHGeB3S.cjs +0 -1
- package/dist/ImageViewerApp-DoXd_Swu.cjs +0 -1
- package/dist/ImageViewerMenuBar-SAI7UNz7.cjs +0 -1
- package/dist/ImageViewerMenuBar-_Jr29gii.cjs +0 -1
- package/dist/MenuEditApp-BJjlPTOa.cjs +0 -1
- package/dist/MenuEditApp-JPsGT-S3.cjs +0 -1
- package/dist/MenuEditMenuBar-BydGkqMw.cjs +0 -1
- package/dist/MenuEditMenuBar-DptlwVPQ.cjs +0 -1
- package/dist/NotesApp-BOcRGO7w.cjs +0 -1
- package/dist/NotesApp-OL07JXRE.cjs +0 -1
- package/dist/NotesMenuBar-BSI_2Y7p.cjs +0 -1
- package/dist/NotesMenuBar-Df6aW85J.cjs +0 -1
- package/dist/Paper-BX_9odR6.js +0 -30
- package/dist/Paper-D8-BaBx2.cjs +0 -1
- package/dist/PdfApp-CNEbty5v.cjs +0 -1
- package/dist/PdfApp-CVv3ZCaM.cjs +0 -1
- package/dist/PdfMenuBar--E6kDyrT.cjs +0 -1
- package/dist/PdfMenuBar-Dj5cJUkg.cjs +0 -1
- package/dist/SettingsApp-BlmHuAjT.js +0 -1831
- package/dist/SettingsApp-CNvIgf5B.cjs +0 -1
- package/dist/SettingsApp-DWxanNE4.cjs +0 -1
- package/dist/SettingsMenuBar-CBoOBCfx.cjs +0 -1
- package/dist/SettingsMenuBar-DQooFkZN.cjs +0 -1
- package/dist/Slider-BUiHxjKO.cjs +0 -1
- package/dist/Slider-t-NcD60t.js +0 -1176
- package/dist/Stack-Bp1Ek2Gp.js +0 -34
- package/dist/Stack-D4jAiRfc.cjs +0 -1
- package/dist/StorybookApp-CDLV_kja.cjs +0 -1
- package/dist/StorybookApp-DKwlPCmo.js +0 -10
- package/dist/TerminalApp-BCB7i1lR.cjs +0 -1
- package/dist/TerminalApp-BYc_gHLe.js +0 -326
- package/dist/TerminalApp-Dviz6aP2.cjs +0 -1
- package/dist/TerminalMenuBar-D5tPmgR_.js +0 -113
- package/dist/TerminalMenuBar-DNshPmCa.cjs +0 -1
- package/dist/TerminalMenuBar-HzMSR7XP.cjs +0 -1
- package/dist/TextInput-C-JtGWn1.js +0 -981
- package/dist/TextInput-CrsmcOip.cjs +0 -1
- package/dist/Tooltip-D5Cd9wtz.cjs +0 -1
- package/dist/Tooltip-DOeIvhrO.js +0 -1142
- package/dist/UnstyledButton-DGaG-e_G.js +0 -25
- package/dist/UnstyledButton-DX2pTahr.cjs +0 -1
- package/dist/UploaderApp-C6xA5Rrf2.cjs +0 -1
- package/dist/UploaderApp-DnHIRxB_.cjs +0 -1
- package/dist/UploaderApp-qBfpukR_.js +0 -488
- package/dist/VscIcon-CcMdrFoJ.cjs +0 -1
- package/dist/create-safe-context-Bboj0GWC.cjs +0 -1
- package/dist/create-safe-context-XT2cxc14.js +0 -12
- package/dist/desktopStore-CZoA9VHO.cjs +0 -1
- package/dist/getRuntime-BFK0-8R1.cjs +0 -1
- package/dist/getRuntime-DAPqFH2W.js +0 -63
- package/dist/imageViewerStore-BB_tssZR.cjs +0 -1
- package/dist/is-element-Bu_JY8Qy.js +0 -7
- package/dist/is-element-CdV0xajp.cjs +0 -1
- package/dist/menuEditStore-CTeM_dns.cjs +0 -1
- package/dist/notesStore-BCEl1D_v.cjs +0 -1
- package/dist/settingsAppStore-CMBc13VU.cjs +0 -1
- package/dist/terminalStore-IWdf4Mm6.js +0 -30
- package/dist/terminalStore-iIuyodfK.cjs +0 -1
- package/dist/use-merged-ref-BT8_u6vW.js +0 -25
- package/dist/use-merged-ref-n9Gw9LNn.cjs +0 -1
- package/dist/use-resolved-styles-api-8OXE2oRq.cjs +0 -1
- package/dist/use-resolved-styles-api-DNUlJJZf.js +0 -21
- package/dist/use-uncontrolled-A4hm9ATM.js +0 -23
- package/dist/use-uncontrolled-DDJVQiM_.cjs +0 -1
- package/dist/useAdaptiveDimensions-CfITBJ_m.cjs +0 -1
- package/dist/useCloseInterceptor-yntBEzNc.cjs +0 -1
- package/dist/useDynamicIcon-DJ_il30E.cjs +0 -1
- package/dist/useOpenApp-DW4x79Zg.cjs +0 -1
- package/dist/useResolvedUrl-BkMPM1fM.cjs +0 -1
- /package/dist/{Colors-zP2AFgU3.cjs → Colors-CNJbU7oq.cjs} +0 -0
- /package/dist/{Colors-ClnDxnyA.js → Colors-CuABn2W4.js} +0 -0
- /package/dist/{imageViewerStore-C5kWz0o7.js → imageViewerStore-COrD02Zu.js} +0 -0
- /package/dist/{menuEditStore-Cj1zAwxQ.js → menuEditStore-CxsgLiQu.js} +0 -0
- /package/dist/{notesStore-BPyRTHEc.js → notesStore-Dgah46U5.js} +0 -0
- /package/dist/{settingsAppStore-BDQ3ts1y.js → settingsAppStore-DHZhi6Rl.js} +0 -0
- /package/dist/{useDynamicIcon-Bf0t2foA.js → useDynamicIcon-_wGeWu-b.js} +0 -0
- /package/dist/{useMenuBarUtils-nmu9yehT.js → useMenuBarUtils-ChAfI7OA.js} +0 -0
- /package/dist/{useMenuBarUtils-nJIPJGIQ.cjs → useMenuBarUtils-DAap0ukp.cjs} +0 -0
|
@@ -1,223 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
|
|
2
|
-
import { D as t, c as n, l as r, r as i, t as a, x as o } from "./Box-DSKR_qaa.js";
|
|
3
|
-
import { t as s } from "./Paper-BX_9odR6.js";
|
|
4
|
-
import { i as c, o as l, r as u } from "./getRuntime-DAPqFH2W.js";
|
|
5
|
-
import { t as d } from "./Stack-Bp1Ek2Gp.js";
|
|
6
|
-
import { o as f, p } from "./desktopStore-F8bgLqFl.js";
|
|
7
|
-
import { t as m } from "./useAdaptiveDimensions-AVDc_qPa.js";
|
|
8
|
-
import { useCallback as h, useEffect as g, useState as _ } from "react";
|
|
9
|
-
import { jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
10
|
-
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Code/Code.module.mjs
|
|
11
|
-
var b = { root: "m_b183c0a2" }, x = t((e, { color: t }) => ({ root: { "--code-bg": t ? o(t, e) : void 0 } })), S = i((e) => {
|
|
12
|
-
let t = r("Code", null, e), { classNames: i, className: o, style: s, styles: c, unstyled: l, vars: u, color: d, block: f, mod: p, attributes: m, ...h } = t, g = n({
|
|
13
|
-
name: "Code",
|
|
14
|
-
props: t,
|
|
15
|
-
classes: b,
|
|
16
|
-
className: o,
|
|
17
|
-
style: s,
|
|
18
|
-
classNames: i,
|
|
19
|
-
styles: c,
|
|
20
|
-
unstyled: l,
|
|
21
|
-
attributes: m,
|
|
22
|
-
vars: u,
|
|
23
|
-
varsResolver: x
|
|
24
|
-
});
|
|
25
|
-
return /* @__PURE__ */ v(a, {
|
|
26
|
-
component: f ? "pre" : "code",
|
|
27
|
-
mod: [{ block: f }, p],
|
|
28
|
-
...g("root"),
|
|
29
|
-
...h,
|
|
30
|
-
dir: "ltr"
|
|
31
|
-
});
|
|
32
|
-
});
|
|
33
|
-
S.classes = b, S.varsResolver = x, S.displayName = "@mantine/core/Code";
|
|
34
|
-
//#endregion
|
|
35
|
-
//#region src/hooks/useDeviceDetection.ts
|
|
36
|
-
var C = () => {
|
|
37
|
-
let e = window.innerWidth, t = window.matchMedia("(pointer: coarse)").matches;
|
|
38
|
-
return e < p.MOBILE || t;
|
|
39
|
-
}, w = () => {
|
|
40
|
-
let e = window.innerWidth;
|
|
41
|
-
return e >= p.MOBILE && e < p.TABLET;
|
|
42
|
-
}, T = () => window.innerWidth >= p.TABLET, E = () => screen.orientation ? screen.orientation.type.includes("portrait") : window.innerHeight > window.innerWidth;
|
|
43
|
-
function D() {
|
|
44
|
-
let [e, t] = _(() => ({
|
|
45
|
-
isMobile: C(),
|
|
46
|
-
isTablet: w(),
|
|
47
|
-
isDesktop: T(),
|
|
48
|
-
isPortrait: E(),
|
|
49
|
-
shouldShowWarning: C() && E(),
|
|
50
|
-
screenWidth: window.innerWidth,
|
|
51
|
-
screenHeight: window.innerHeight
|
|
52
|
-
})), n = h(() => {
|
|
53
|
-
let e = C(), n = E();
|
|
54
|
-
t({
|
|
55
|
-
isMobile: e,
|
|
56
|
-
isTablet: w(),
|
|
57
|
-
isDesktop: T(),
|
|
58
|
-
isPortrait: n,
|
|
59
|
-
shouldShowWarning: e && n,
|
|
60
|
-
screenWidth: window.innerWidth,
|
|
61
|
-
screenHeight: window.innerHeight
|
|
62
|
-
});
|
|
63
|
-
}, []);
|
|
64
|
-
return g(() => (window.addEventListener("resize", n), screen.orientation?.addEventListener?.("change", n), () => {
|
|
65
|
-
window.removeEventListener("resize", n), screen.orientation?.removeEventListener?.("change", n);
|
|
66
|
-
}), [n]), e;
|
|
67
|
-
}
|
|
68
|
-
var O = { container: "_container_1o4i3_1" }, k = /* @__PURE__ */ e({ default: () => A }), A = ({ window: e, notifyReady: t }) => {
|
|
69
|
-
let n = D(), r = m(), i = f((e) => e.viewportWidth), a = f((e) => e.viewportHeight), o = f((e) => e.setViewportSize);
|
|
70
|
-
return g(() => {
|
|
71
|
-
t?.({});
|
|
72
|
-
}, [t]), g(() => {
|
|
73
|
-
let e = () => {
|
|
74
|
-
o(window.innerWidth, window.innerHeight);
|
|
75
|
-
};
|
|
76
|
-
return e(), window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
|
|
77
|
-
}, [o]), /* @__PURE__ */ y("div", {
|
|
78
|
-
className: O.container,
|
|
79
|
-
"data-windowid": e?.id,
|
|
80
|
-
children: [/* @__PURE__ */ v(s, {
|
|
81
|
-
p: "sm",
|
|
82
|
-
shadow: "sm",
|
|
83
|
-
withBorder: !0,
|
|
84
|
-
children: /* @__PURE__ */ y(d, {
|
|
85
|
-
gap: "xs",
|
|
86
|
-
children: [
|
|
87
|
-
/* @__PURE__ */ v(l, {
|
|
88
|
-
fw: "bold",
|
|
89
|
-
size: "sm",
|
|
90
|
-
children: "Runtime Environment"
|
|
91
|
-
}),
|
|
92
|
-
/* @__PURE__ */ y(l, {
|
|
93
|
-
size: "xs",
|
|
94
|
-
children: [
|
|
95
|
-
/* @__PURE__ */ v(S, { children: "isDocker:" }),
|
|
96
|
-
" ",
|
|
97
|
-
String(c())
|
|
98
|
-
]
|
|
99
|
-
}),
|
|
100
|
-
/* @__PURE__ */ y(l, {
|
|
101
|
-
size: "xs",
|
|
102
|
-
children: [
|
|
103
|
-
/* @__PURE__ */ v(S, { children: "isDev:" }),
|
|
104
|
-
" ",
|
|
105
|
-
String(u())
|
|
106
|
-
]
|
|
107
|
-
})
|
|
108
|
-
]
|
|
109
|
-
})
|
|
110
|
-
}), /* @__PURE__ */ v(s, {
|
|
111
|
-
p: "sm",
|
|
112
|
-
shadow: "sm",
|
|
113
|
-
withBorder: !0,
|
|
114
|
-
mt: "sm",
|
|
115
|
-
children: /* @__PURE__ */ y(d, {
|
|
116
|
-
gap: "xs",
|
|
117
|
-
children: [
|
|
118
|
-
/* @__PURE__ */ v(l, {
|
|
119
|
-
fw: "bold",
|
|
120
|
-
size: "sm",
|
|
121
|
-
children: "Device Detection"
|
|
122
|
-
}),
|
|
123
|
-
/* @__PURE__ */ y(l, {
|
|
124
|
-
size: "xs",
|
|
125
|
-
children: [
|
|
126
|
-
/* @__PURE__ */ v(S, { children: "isMobile:" }),
|
|
127
|
-
" ",
|
|
128
|
-
String(n.isMobile)
|
|
129
|
-
]
|
|
130
|
-
}),
|
|
131
|
-
/* @__PURE__ */ y(l, {
|
|
132
|
-
size: "xs",
|
|
133
|
-
children: [
|
|
134
|
-
/* @__PURE__ */ v(S, { children: "isTablet:" }),
|
|
135
|
-
" ",
|
|
136
|
-
String(n.isTablet)
|
|
137
|
-
]
|
|
138
|
-
}),
|
|
139
|
-
/* @__PURE__ */ y(l, {
|
|
140
|
-
size: "xs",
|
|
141
|
-
children: [
|
|
142
|
-
/* @__PURE__ */ v(S, { children: "isDesktop:" }),
|
|
143
|
-
" ",
|
|
144
|
-
String(n.isDesktop)
|
|
145
|
-
]
|
|
146
|
-
}),
|
|
147
|
-
/* @__PURE__ */ y(l, {
|
|
148
|
-
size: "xs",
|
|
149
|
-
children: [
|
|
150
|
-
/* @__PURE__ */ v(S, { children: "isPortrait:" }),
|
|
151
|
-
" ",
|
|
152
|
-
String(n.isPortrait)
|
|
153
|
-
]
|
|
154
|
-
}),
|
|
155
|
-
/* @__PURE__ */ y(l, {
|
|
156
|
-
size: "xs",
|
|
157
|
-
children: [
|
|
158
|
-
/* @__PURE__ */ v(S, { children: "shouldShowWarning:" }),
|
|
159
|
-
" ",
|
|
160
|
-
String(n.shouldShowWarning)
|
|
161
|
-
]
|
|
162
|
-
}),
|
|
163
|
-
/* @__PURE__ */ y(l, {
|
|
164
|
-
size: "xs",
|
|
165
|
-
children: [
|
|
166
|
-
/* @__PURE__ */ v(S, { children: "viewportWidth:" }),
|
|
167
|
-
" ",
|
|
168
|
-
i,
|
|
169
|
-
"px"
|
|
170
|
-
]
|
|
171
|
-
}),
|
|
172
|
-
/* @__PURE__ */ y(l, {
|
|
173
|
-
size: "xs",
|
|
174
|
-
children: [
|
|
175
|
-
/* @__PURE__ */ v(S, { children: "viewportHeight:" }),
|
|
176
|
-
" ",
|
|
177
|
-
a,
|
|
178
|
-
"px"
|
|
179
|
-
]
|
|
180
|
-
}),
|
|
181
|
-
/* @__PURE__ */ y(l, {
|
|
182
|
-
size: "xs",
|
|
183
|
-
children: [
|
|
184
|
-
/* @__PURE__ */ v(S, { children: "defaultWidth:" }),
|
|
185
|
-
" ",
|
|
186
|
-
r.defaultWidth,
|
|
187
|
-
"px"
|
|
188
|
-
]
|
|
189
|
-
}),
|
|
190
|
-
/* @__PURE__ */ y(l, {
|
|
191
|
-
size: "xs",
|
|
192
|
-
children: [
|
|
193
|
-
/* @__PURE__ */ v(S, { children: "defaultHeight:" }),
|
|
194
|
-
" ",
|
|
195
|
-
r.defaultHeight,
|
|
196
|
-
"px"
|
|
197
|
-
]
|
|
198
|
-
}),
|
|
199
|
-
/* @__PURE__ */ y(l, {
|
|
200
|
-
size: "xs",
|
|
201
|
-
children: [
|
|
202
|
-
/* @__PURE__ */ v(S, { children: "minWidth:" }),
|
|
203
|
-
" ",
|
|
204
|
-
r.minWidth,
|
|
205
|
-
"px"
|
|
206
|
-
]
|
|
207
|
-
}),
|
|
208
|
-
/* @__PURE__ */ y(l, {
|
|
209
|
-
size: "xs",
|
|
210
|
-
children: [
|
|
211
|
-
/* @__PURE__ */ v(S, { children: "minHeight:" }),
|
|
212
|
-
" ",
|
|
213
|
-
r.minHeight,
|
|
214
|
-
"px"
|
|
215
|
-
]
|
|
216
|
-
})
|
|
217
|
-
]
|
|
218
|
-
})
|
|
219
|
-
})]
|
|
220
|
-
});
|
|
221
|
-
};
|
|
222
|
-
//#endregion
|
|
223
|
-
export { k as n, D as r, A as t };
|
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
import { A as e, D as t, M as n, S as r, c as i, d as a, l as o, r as s, t as c, w as l, x as u } from "./Box-DSKR_qaa.js";
|
|
2
|
-
import { t as d } from "./create-safe-context-XT2cxc14.js";
|
|
3
|
-
import { t as f } from "./use-resolved-styles-api-DNUlJJZf.js";
|
|
4
|
-
import { t as p } from "./Group-CtBJSfCo.js";
|
|
5
|
-
import { o as m } from "./getRuntime-DAPqFH2W.js";
|
|
6
|
-
import { i as h } from "./useDynamicIcon-Bf0t2foA.js";
|
|
7
|
-
import { useEffect as g, useState as _ } from "react";
|
|
8
|
-
import { jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
9
|
-
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/core/MantineProvider/color-functions/get-contrast-color/get-contrast-color.mjs
|
|
10
|
-
function b({ color: e, theme: t, autoContrast: n }) {
|
|
11
|
-
return (typeof n == "boolean" ? n : t.autoContrast) && r({
|
|
12
|
-
color: e || t.primaryColor,
|
|
13
|
-
theme: t
|
|
14
|
-
}).isLight ? "var(--mantine-color-black)" : "var(--mantine-color-white)";
|
|
15
|
-
}
|
|
16
|
-
function x(e, t) {
|
|
17
|
-
return b({
|
|
18
|
-
color: e.colors[e.primaryColor][l(e, t)],
|
|
19
|
-
theme: e,
|
|
20
|
-
autoContrast: null
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
//#endregion
|
|
24
|
-
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/core/MantineProvider/color-functions/get-auto-contrast-value/get-auto-contrast-value.mjs
|
|
25
|
-
function S(e, t) {
|
|
26
|
-
return typeof e == "boolean" ? e : t.autoContrast;
|
|
27
|
-
}
|
|
28
|
-
//#endregion
|
|
29
|
-
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Progress/Progress.context.mjs
|
|
30
|
-
var [C, w] = d("Progress.Root component was not found in tree"), T = {
|
|
31
|
-
root: "m_db6d6462",
|
|
32
|
-
section: "m_2242eb65",
|
|
33
|
-
"stripes-animation": "m_81a374bd",
|
|
34
|
-
"stripes-animation-vertical": "m_e0fb7a86",
|
|
35
|
-
label: "m_91e40b74"
|
|
36
|
-
}, E = s((e) => {
|
|
37
|
-
let { classNames: t, className: n, style: r, styles: i, vars: a, ...s } = o("ProgressLabel", null, e);
|
|
38
|
-
return /* @__PURE__ */ v(c, {
|
|
39
|
-
...w().getStyles("label", {
|
|
40
|
-
className: n,
|
|
41
|
-
style: r,
|
|
42
|
-
classNames: t,
|
|
43
|
-
styles: i
|
|
44
|
-
}),
|
|
45
|
-
...s
|
|
46
|
-
});
|
|
47
|
-
});
|
|
48
|
-
E.classes = T, E.displayName = "@mantine/core/ProgressLabel";
|
|
49
|
-
//#endregion
|
|
50
|
-
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Progress/ProgressRoot/ProgressRoot.mjs
|
|
51
|
-
var D = t((t, { size: r, radius: i, transitionDuration: a }) => ({ root: {
|
|
52
|
-
"--progress-size": n(r, "progress-size"),
|
|
53
|
-
"--progress-radius": i === void 0 ? void 0 : e(i),
|
|
54
|
-
"--progress-transition-duration": typeof a == "number" ? `${a}ms` : void 0
|
|
55
|
-
} })), O = s((e) => {
|
|
56
|
-
let t = o("ProgressRoot", null, e), { classNames: n, className: r, style: a, styles: s, unstyled: l, vars: u, autoContrast: d, transitionDuration: f, orientation: p, attributes: m, mod: h, ...g } = t, _ = i({
|
|
57
|
-
name: "Progress",
|
|
58
|
-
classes: T,
|
|
59
|
-
props: t,
|
|
60
|
-
className: r,
|
|
61
|
-
style: a,
|
|
62
|
-
classNames: n,
|
|
63
|
-
styles: s,
|
|
64
|
-
unstyled: l,
|
|
65
|
-
attributes: m,
|
|
66
|
-
vars: u,
|
|
67
|
-
varsResolver: D
|
|
68
|
-
});
|
|
69
|
-
return /* @__PURE__ */ v(C, {
|
|
70
|
-
value: {
|
|
71
|
-
getStyles: _,
|
|
72
|
-
autoContrast: d
|
|
73
|
-
},
|
|
74
|
-
children: /* @__PURE__ */ v(c, {
|
|
75
|
-
mod: [{ orientation: p }, h],
|
|
76
|
-
..._("root"),
|
|
77
|
-
...g
|
|
78
|
-
})
|
|
79
|
-
});
|
|
80
|
-
});
|
|
81
|
-
O.classes = T, O.varsResolver = D, O.displayName = "@mantine/core/ProgressRoot";
|
|
82
|
-
//#endregion
|
|
83
|
-
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Progress/ProgressSection/ProgressSection.mjs
|
|
84
|
-
var k = { withAria: !0 }, A = s((e) => {
|
|
85
|
-
let { classNames: t, className: n, style: r, styles: i, vars: s, value: l, withAria: d, color: f, striped: p, animated: m, mod: h, ...g } = o("ProgressSection", k, e), _ = w(), y = a(), x = d ? {
|
|
86
|
-
role: "progressbar",
|
|
87
|
-
"aria-valuemax": 100,
|
|
88
|
-
"aria-valuemin": 0,
|
|
89
|
-
"aria-valuenow": l,
|
|
90
|
-
"aria-valuetext": `${l}%`
|
|
91
|
-
} : {};
|
|
92
|
-
return /* @__PURE__ */ v(c, {
|
|
93
|
-
..._.getStyles("section", {
|
|
94
|
-
className: n,
|
|
95
|
-
classNames: t,
|
|
96
|
-
styles: i,
|
|
97
|
-
style: r
|
|
98
|
-
}),
|
|
99
|
-
...g,
|
|
100
|
-
...x,
|
|
101
|
-
mod: [{
|
|
102
|
-
striped: p || m,
|
|
103
|
-
animated: m
|
|
104
|
-
}, h],
|
|
105
|
-
__vars: {
|
|
106
|
-
"--progress-section-size": `${l}%`,
|
|
107
|
-
"--progress-section-color": u(f, y),
|
|
108
|
-
"--progress-label-color": S(_.autoContrast, y) ? b({
|
|
109
|
-
color: f,
|
|
110
|
-
theme: y,
|
|
111
|
-
autoContrast: _.autoContrast
|
|
112
|
-
}) : void 0
|
|
113
|
-
}
|
|
114
|
-
});
|
|
115
|
-
});
|
|
116
|
-
A.classes = T, A.displayName = "@mantine/core/ProgressSection";
|
|
117
|
-
//#endregion
|
|
118
|
-
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Progress/Progress.mjs
|
|
119
|
-
var j = s((e) => {
|
|
120
|
-
let t = o("Progress", null, e), { value: n, classNames: r, styles: i, vars: a, color: s, striped: c, animated: l, "aria-label": u, ...d } = t, { resolvedClassNames: p, resolvedStyles: m } = f({
|
|
121
|
-
classNames: r,
|
|
122
|
-
styles: i,
|
|
123
|
-
props: t
|
|
124
|
-
});
|
|
125
|
-
return /* @__PURE__ */ v(O, {
|
|
126
|
-
classNames: p,
|
|
127
|
-
styles: m,
|
|
128
|
-
vars: a,
|
|
129
|
-
...d,
|
|
130
|
-
children: /* @__PURE__ */ v(A, {
|
|
131
|
-
value: n,
|
|
132
|
-
color: s,
|
|
133
|
-
striped: c,
|
|
134
|
-
animated: l,
|
|
135
|
-
"aria-label": u
|
|
136
|
-
})
|
|
137
|
-
});
|
|
138
|
-
});
|
|
139
|
-
j.classes = T, j.displayName = "@mantine/core/Progress", j.Section = A, j.Root = O, j.Label = E;
|
|
140
|
-
var M = {
|
|
141
|
-
spinner: "_spinner_yguq4_1",
|
|
142
|
-
spin: "_spin_yguq4_1"
|
|
143
|
-
}, N = (e) => (e / 1024).toFixed(1), P = ({ state: e, ariaLabel: t = "Download progress", minDisplayTime: n = 1e3 }) => {
|
|
144
|
-
let { status: r, loaded: i, total: a } = e, o = h("FcProcess", { size: 24 }), [s, l] = _(null);
|
|
145
|
-
if (g(() => {
|
|
146
|
-
if (r !== "done" && r !== "error") return;
|
|
147
|
-
let e = Date.now(), t = setTimeout(() => {
|
|
148
|
-
l(e);
|
|
149
|
-
}, n);
|
|
150
|
-
return () => clearTimeout(t);
|
|
151
|
-
}, [r, n]), r === "idle") return null;
|
|
152
|
-
let u = a === null ? `${N(i)} KB` : `${N(i)} / ${N(a)} KB`;
|
|
153
|
-
return s ? /* @__PURE__ */ v(j, {
|
|
154
|
-
value: 100,
|
|
155
|
-
size: "sm",
|
|
156
|
-
"aria-label": t,
|
|
157
|
-
children: /* @__PURE__ */ y(j.Label, { children: [N(i), " KB"] })
|
|
158
|
-
}) : /* @__PURE__ */ y(p, {
|
|
159
|
-
gap: "sm",
|
|
160
|
-
align: "center",
|
|
161
|
-
justify: "center",
|
|
162
|
-
style: { minHeight: 40 },
|
|
163
|
-
children: [/* @__PURE__ */ v(c, {
|
|
164
|
-
className: M.spinner,
|
|
165
|
-
"data-testid": "process-icon",
|
|
166
|
-
children: o
|
|
167
|
-
}), /* @__PURE__ */ v(m, {
|
|
168
|
-
size: "sm",
|
|
169
|
-
children: u
|
|
170
|
-
})]
|
|
171
|
-
});
|
|
172
|
-
};
|
|
173
|
-
//#endregion
|
|
174
|
-
export { x as a, b as i, j as n, S as r, P as t };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require(`./Box-zW6Twge8.cjs`),t=require(`./create-safe-context-Bboj0GWC.cjs`),n=require(`./use-resolved-styles-api-8OXE2oRq.cjs`),r=require(`./Group-Dsrf6lEK.cjs`),i=require(`./getRuntime-BFK0-8R1.cjs`),a=require(`./useDynamicIcon-DJ_il30E.cjs`);let o=require(`react`),s=require(`react/jsx-runtime`);function c({color:t,theme:n,autoContrast:r}){return(typeof r==`boolean`?r:n.autoContrast)&&e.S({color:t||n.primaryColor,theme:n}).isLight?`var(--mantine-color-black)`:`var(--mantine-color-white)`}function l(t,n){return c({color:t.colors[t.primaryColor][e.w(t,n)],theme:t,autoContrast:null})}function u(e,t){return typeof e==`boolean`?e:t.autoContrast}var[d,f]=t.t(`Progress.Root component was not found in tree`),p={root:`m_db6d6462`,section:`m_2242eb65`,"stripes-animation":`m_81a374bd`,"stripes-animation-vertical":`m_e0fb7a86`,label:`m_91e40b74`},m=e.r(t=>{let{classNames:n,className:r,style:i,styles:a,vars:o,...c}=e.l(`ProgressLabel`,null,t);return(0,s.jsx)(e.t,{...f().getStyles(`label`,{className:r,style:i,classNames:n,styles:a}),...c})});m.classes=p,m.displayName=`@mantine/core/ProgressLabel`;var h=e.D((t,{size:n,radius:r,transitionDuration:i})=>({root:{"--progress-size":e.M(n,`progress-size`),"--progress-radius":r===void 0?void 0:e.A(r),"--progress-transition-duration":typeof i==`number`?`${i}ms`:void 0}})),g=e.r(t=>{let n=e.l(`ProgressRoot`,null,t),{classNames:r,className:i,style:a,styles:o,unstyled:c,vars:l,autoContrast:u,transitionDuration:f,orientation:m,attributes:g,mod:_,...v}=n,y=e.c({name:`Progress`,classes:p,props:n,className:i,style:a,classNames:r,styles:o,unstyled:c,attributes:g,vars:l,varsResolver:h});return(0,s.jsx)(d,{value:{getStyles:y,autoContrast:u},children:(0,s.jsx)(e.t,{mod:[{orientation:m},_],...y(`root`),...v})})});g.classes=p,g.varsResolver=h,g.displayName=`@mantine/core/ProgressRoot`;var _={withAria:!0},v=e.r(t=>{let{classNames:n,className:r,style:i,styles:a,vars:o,value:l,withAria:d,color:p,striped:m,animated:h,mod:g,...v}=e.l(`ProgressSection`,_,t),y=f(),b=e.d(),x=d?{role:`progressbar`,"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":l,"aria-valuetext":`${l}%`}:{};return(0,s.jsx)(e.t,{...y.getStyles(`section`,{className:r,classNames:n,styles:a,style:i}),...v,...x,mod:[{striped:m||h,animated:h},g],__vars:{"--progress-section-size":`${l}%`,"--progress-section-color":e.x(p,b),"--progress-label-color":u(y.autoContrast,b)?c({color:p,theme:b,autoContrast:y.autoContrast}):void 0}})});v.classes=p,v.displayName=`@mantine/core/ProgressSection`;var y=e.r(t=>{let r=e.l(`Progress`,null,t),{value:i,classNames:a,styles:o,vars:c,color:l,striped:u,animated:d,"aria-label":f,...p}=r,{resolvedClassNames:m,resolvedStyles:h}=n.t({classNames:a,styles:o,props:r});return(0,s.jsx)(g,{classNames:m,styles:h,vars:c,...p,children:(0,s.jsx)(v,{value:i,color:l,striped:u,animated:d,"aria-label":f})})});y.classes=p,y.displayName=`@mantine/core/Progress`,y.Section=v,y.Root=g,y.Label=m;var b={spinner:`_spinner_yguq4_1`,spin:`_spin_yguq4_1`},x=e=>(e/1024).toFixed(1),S=({state:t,ariaLabel:n=`Download progress`,minDisplayTime:c=1e3})=>{let{status:l,loaded:u,total:d}=t,f=a.i(`FcProcess`,{size:24}),[p,m]=(0,o.useState)(null);if((0,o.useEffect)(()=>{if(l!==`done`&&l!==`error`)return;let e=Date.now(),t=setTimeout(()=>{m(e)},c);return()=>clearTimeout(t)},[l,c]),l===`idle`)return null;let h=d===null?`${x(u)} KB`:`${x(u)} / ${x(d)} KB`;return p?(0,s.jsx)(y,{value:100,size:`sm`,"aria-label":n,children:(0,s.jsxs)(y.Label,{children:[x(u),` KB`]})}):(0,s.jsxs)(r.t,{gap:`sm`,align:`center`,justify:`center`,style:{minHeight:40},children:[(0,s.jsx)(e.t,{className:b.spinner,"data-testid":`process-icon`,children:f}),(0,s.jsx)(i.o,{size:`sm`,children:h})]})};Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return y}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return S}});
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { D as e, N as t, c as n, l as r, n as i, r as a, t as o } from "./Box-DSKR_qaa.js";
|
|
2
|
-
import { t as s } from "./is-element-Bu_JY8Qy.js";
|
|
3
|
-
import { o as c } from "./getRuntime-DAPqFH2W.js";
|
|
4
|
-
import { s as l } from "./useDynamicIcon-Bf0t2foA.js";
|
|
5
|
-
import { Children as u, cloneElement as d, createElement as f } from "react";
|
|
6
|
-
import { jsx as p } from "react/jsx-runtime";
|
|
7
|
-
import m from "clsx";
|
|
8
|
-
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Anchor/Anchor.module.mjs
|
|
9
|
-
var h = { root: "m_849cf0da" }, g = { underline: "hover" }, _ = i((e) => {
|
|
10
|
-
let { underline: t, className: n, unstyled: i, mod: a, ...o } = r("Anchor", g, e);
|
|
11
|
-
return /* @__PURE__ */ p(c, {
|
|
12
|
-
component: "a",
|
|
13
|
-
className: m({ [h.root]: !i }, n),
|
|
14
|
-
...o,
|
|
15
|
-
mod: [{ underline: t }, a],
|
|
16
|
-
__staticSelector: "Anchor",
|
|
17
|
-
unstyled: i
|
|
18
|
-
});
|
|
19
|
-
});
|
|
20
|
-
_.classes = h, _.displayName = "@mantine/core/Anchor";
|
|
21
|
-
//#endregion
|
|
22
|
-
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Breadcrumbs/Breadcrumbs.module.mjs
|
|
23
|
-
var v = {
|
|
24
|
-
root: "m_8b3717df",
|
|
25
|
-
breadcrumb: "m_f678d540",
|
|
26
|
-
separator: "m_3b8f2208"
|
|
27
|
-
}, y = { separator: "/" }, b = e((e, { separatorMargin: n }) => ({ root: { "--bc-separator-margin": t(n) } })), x = a((e) => {
|
|
28
|
-
let t = r("Breadcrumbs", y, e), { classNames: i, className: a, style: c, styles: l, unstyled: m, vars: h, children: g, separator: _, separatorMargin: x, attributes: S, ...C } = t, w = n({
|
|
29
|
-
name: "Breadcrumbs",
|
|
30
|
-
classes: v,
|
|
31
|
-
props: t,
|
|
32
|
-
className: a,
|
|
33
|
-
style: c,
|
|
34
|
-
classNames: i,
|
|
35
|
-
styles: l,
|
|
36
|
-
unstyled: m,
|
|
37
|
-
attributes: S,
|
|
38
|
-
vars: h,
|
|
39
|
-
varsResolver: b
|
|
40
|
-
}), T = u.toArray(g).reduce((e, t, n, r) => {
|
|
41
|
-
let i = s(t) ? d(t, {
|
|
42
|
-
...w("breadcrumb", { className: t.props?.className }),
|
|
43
|
-
key: n
|
|
44
|
-
}) : /* @__PURE__ */ f("div", {
|
|
45
|
-
...w("breadcrumb"),
|
|
46
|
-
key: n
|
|
47
|
-
}, t);
|
|
48
|
-
return e.push(i), n !== r.length - 1 && e.push(/* @__PURE__ */ f(o, {
|
|
49
|
-
...w("separator"),
|
|
50
|
-
key: `separator-${n}`
|
|
51
|
-
}, _)), e;
|
|
52
|
-
}, []);
|
|
53
|
-
return /* @__PURE__ */ p(o, {
|
|
54
|
-
...w("root"),
|
|
55
|
-
...C,
|
|
56
|
-
children: T
|
|
57
|
-
});
|
|
58
|
-
});
|
|
59
|
-
x.classes = v, x.varsResolver = b, x.displayName = "@mantine/core/Breadcrumbs";
|
|
60
|
-
//#endregion
|
|
61
|
-
//#region src/utils/getFileExtension.ts
|
|
62
|
-
var S = (e) => e.split(".").pop()?.toLowerCase() ?? "", C = {
|
|
63
|
-
pdf: "VscFilePdf",
|
|
64
|
-
md: "VscMarkdown",
|
|
65
|
-
txt: "VscFile",
|
|
66
|
-
jpg: "VscFileMedia",
|
|
67
|
-
jpeg: "VscFileMedia",
|
|
68
|
-
png: "VscFileMedia",
|
|
69
|
-
gif: "VscFileMedia",
|
|
70
|
-
svg: "VscFileCode",
|
|
71
|
-
ts: "VscFileCode",
|
|
72
|
-
tsx: "VscFileCode",
|
|
73
|
-
js: "VscFileCode",
|
|
74
|
-
jsx: "VscFileCode",
|
|
75
|
-
json: "VscJson",
|
|
76
|
-
html: "VscFileCode",
|
|
77
|
-
css: "VscFileCode"
|
|
78
|
-
}, w = ({ type: e, name: t = "", folderNode: n, fileNode: r, size: i = 20 }) => {
|
|
79
|
-
let a, o;
|
|
80
|
-
e === "folder" ? (a = n?.iconName ?? "VscFolder", o = n?.iconColor ?? void 0) : e === "file" && r?.iconName ? (a = r.iconName, o = r.iconColor ?? void 0) : a = C[S(t)] ?? "VscFile";
|
|
81
|
-
let s = l(a);
|
|
82
|
-
return s ? f(s, {
|
|
83
|
-
size: i,
|
|
84
|
-
color: o,
|
|
85
|
-
"aria-hidden": "true"
|
|
86
|
-
}) : null;
|
|
87
|
-
};
|
|
88
|
-
//#endregion
|
|
89
|
-
export { _ as i, S as n, x as r, w as t };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require(`./Box-zW6Twge8.cjs`),t=require(`./is-element-CdV0xajp.cjs`),n=require(`./getRuntime-BFK0-8R1.cjs`),r=require(`./useDynamicIcon-DJ_il30E.cjs`);let i=require(`react`),a=require(`react/jsx-runtime`),o=require(`clsx`);o=e.B(o);var s={root:`m_849cf0da`},c={underline:`hover`},l=e.n(t=>{let{underline:r,className:i,unstyled:l,mod:u,...d}=e.l(`Anchor`,c,t);return(0,a.jsx)(n.o,{component:`a`,className:(0,o.default)({[s.root]:!l},i),...d,mod:[{underline:r},u],__staticSelector:`Anchor`,unstyled:l})});l.classes=s,l.displayName=`@mantine/core/Anchor`;var u={root:`m_8b3717df`,breadcrumb:`m_f678d540`,separator:`m_3b8f2208`},d={separator:`/`},f=e.D((t,{separatorMargin:n})=>({root:{"--bc-separator-margin":e.N(n)}})),p=e.r(n=>{let r=e.l(`Breadcrumbs`,d,n),{classNames:o,className:s,style:c,styles:l,unstyled:p,vars:m,children:h,separator:g,separatorMargin:_,attributes:v,...y}=r,b=e.c({name:`Breadcrumbs`,classes:u,props:r,className:s,style:c,classNames:o,styles:l,unstyled:p,attributes:v,vars:m,varsResolver:f}),x=i.Children.toArray(h).reduce((n,r,a,o)=>{let s=t.t(r)?(0,i.cloneElement)(r,{...b(`breadcrumb`,{className:r.props?.className}),key:a}):(0,i.createElement)(`div`,{...b(`breadcrumb`),key:a},r);return n.push(s),a!==o.length-1&&n.push((0,i.createElement)(e.t,{...b(`separator`),key:`separator-${a}`},g)),n},[]);return(0,a.jsx)(e.t,{...b(`root`),...y,children:x})});p.classes=u,p.varsResolver=f,p.displayName=`@mantine/core/Breadcrumbs`;var m=e=>e.split(`.`).pop()?.toLowerCase()??``,h={pdf:`VscFilePdf`,md:`VscMarkdown`,txt:`VscFile`,jpg:`VscFileMedia`,jpeg:`VscFileMedia`,png:`VscFileMedia`,gif:`VscFileMedia`,svg:`VscFileCode`,ts:`VscFileCode`,tsx:`VscFileCode`,js:`VscFileCode`,jsx:`VscFileCode`,json:`VscJson`,html:`VscFileCode`,css:`VscFileCode`},g=({type:e,name:t=``,folderNode:n,fileNode:a,size:o=20})=>{let s,c;e===`folder`?(s=n?.iconName??`VscFolder`,c=n?.iconColor??void 0):e===`file`&&a?.iconName?(s=a.iconName,c=a.iconColor??void 0):s=h[m(t)]??`VscFile`;let l=r.s(s);return l?(0,i.createElement)(l,{size:o,color:c,"aria-hidden":`true`}):null};Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return g}});
|