@fde-desktop/fde-core 0.4.7 → 0.4.9
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/AccordionChevron-DxpOyInK.js +26 -0
- package/dist/AccordionChevron-kn5kSrEc.cjs +1 -0
- package/dist/ActionIcon-Drh4p6Fv.js +145 -0
- package/dist/ActionIcon-alk2zZD6.cjs +1 -0
- package/dist/AppEmptyState-BWCUbf-B.cjs +1 -0
- package/dist/AppEmptyState-Bxpit0JV.js +49 -0
- package/dist/AppIcon-BU7a3ZNH.cjs +1 -0
- package/dist/AppIcon-XumS3bIG.js +80 -0
- package/dist/AppMenuBar-B9U0n1Vv.cjs +1 -0
- package/dist/AppMenuBar-CnIEVjr8.js +2049 -0
- package/dist/Box-DSKR_qaa.js +1579 -0
- package/dist/Box-zW6Twge8.cjs +1 -0
- package/dist/Button-DMlnrqyx.cjs +1 -0
- package/dist/Button-wTOTQKxF.js +178 -0
- package/dist/CalendarApp-B_e1B1Yn.cjs +1 -0
- package/dist/CalendarApp-C-l9D6nd.cjs +1 -0
- package/dist/CalendarApp-D0ftTCTG.js +1399 -0
- package/dist/Center-CmxXB9ql.js +25 -0
- package/dist/Center-DKUE2pER.cjs +1 -0
- package/dist/CheckIcon-CZhtJD1O.cjs +1 -0
- package/dist/CheckIcon-N5qBqXQJ.js +25 -0
- package/dist/CodeServerApp-BOoGwZ7r.cjs +1 -0
- package/dist/CodeServerApp-Be3I5EGg.cjs +1 -0
- package/dist/CodeServerApp-DW18EZxa.js +150 -0
- package/dist/ColorPicker-BCNqi02x.js +997 -0
- package/dist/ColorPicker-BrDE7tMO.cjs +1 -0
- package/dist/Colors-ClnDxnyA.js +15 -0
- package/dist/Colors-zP2AFgU3.cjs +1 -0
- package/dist/CreateItemApp-B12M1E_1.cjs +1 -0
- package/dist/CreateItemApp-TAAprby3.js +400 -0
- package/dist/CreateItemApp-ePB6ujNl.cjs +1 -0
- package/dist/DeviceInfoApp-BMF18BGo.cjs +1 -0
- package/dist/DeviceInfoApp-DRy0H3aT.cjs +1 -0
- package/dist/DeviceInfoApp-lgpwkeRR.js +223 -0
- package/dist/DownloadProgress-EoyCaD5O.js +174 -0
- package/dist/DownloadProgress-VNdj22U8.cjs +1 -0
- package/dist/FileIcon-7JaSR3Gn.js +89 -0
- package/dist/FileIcon-CIXopWLv.cjs +1 -0
- package/dist/FilePickerApp-DaMgEqKh.js +409 -0
- package/dist/FilePickerApp-DjmuSFqa.cjs +1 -0
- package/dist/FilesApp-Bp7wfrBZ.cjs +1 -0
- package/dist/FilesApp-BpJJRKhi.cjs +1 -0
- package/dist/FilesApp-Cj94QG5o.js +225 -0
- package/dist/Group-CtBJSfCo.js +48 -0
- package/dist/Group-Dsrf6lEK.cjs +1 -0
- package/dist/ImageViewerApp-BaLP3gkO.js +69 -0
- package/dist/ImageViewerApp-DlHGeB3S.cjs +1 -0
- package/dist/ImageViewerApp-DoXd_Swu.cjs +1 -0
- package/dist/ImageViewerMenuBar-CabGSi9r.js +87 -0
- package/dist/ImageViewerMenuBar-SAI7UNz7.cjs +1 -0
- package/dist/ImageViewerMenuBar-_Jr29gii.cjs +1 -0
- package/dist/MenuEditApp-BJjlPTOa.cjs +1 -0
- package/dist/MenuEditApp-BTRppYnD.js +497 -0
- package/dist/MenuEditApp-JPsGT-S3.cjs +1 -0
- package/dist/MenuEditMenuBar-BydGkqMw.cjs +1 -0
- package/dist/MenuEditMenuBar-DptlwVPQ.cjs +1 -0
- package/dist/MenuEditMenuBar-x1IQrHP2.js +60 -0
- package/dist/NotesApp-BOcRGO7w.cjs +1 -0
- package/dist/NotesApp-CQe7UfBC.js +364 -0
- package/dist/NotesApp-OL07JXRE.cjs +1 -0
- package/dist/NotesMenuBar-BSI_2Y7p.cjs +1 -0
- package/dist/NotesMenuBar-Df6aW85J.cjs +1 -0
- package/dist/NotesMenuBar-VhpIe68v.js +62 -0
- package/dist/Paper-BX_9odR6.js +30 -0
- package/dist/Paper-D8-BaBx2.cjs +1 -0
- package/dist/PdfApp-CNEbty5v.cjs +1 -0
- package/dist/PdfApp-CVv3ZCaM.cjs +1 -0
- package/dist/PdfApp-DL_R9-Nc.js +39 -0
- package/dist/PdfMenuBar--E6kDyrT.cjs +1 -0
- package/dist/PdfMenuBar-DZCLSOpR.js +39 -0
- package/dist/PdfMenuBar-Dj5cJUkg.cjs +1 -0
- package/dist/SettingsApp-BlmHuAjT.js +1831 -0
- package/dist/SettingsApp-CNvIgf5B.cjs +1 -0
- package/dist/SettingsApp-DWxanNE4.cjs +1 -0
- package/dist/SettingsMenuBar-CBoOBCfx.cjs +1 -0
- package/dist/SettingsMenuBar-DQooFkZN.cjs +1 -0
- package/dist/SettingsMenuBar-YWiJHaxq.js +42 -0
- package/dist/Slider-BUiHxjKO.cjs +1 -0
- package/dist/Slider-t-NcD60t.js +1176 -0
- package/dist/Stack-Bp1Ek2Gp.js +34 -0
- package/dist/Stack-D4jAiRfc.cjs +1 -0
- package/dist/StorybookApp-CDLV_kja.cjs +1 -0
- package/dist/StorybookApp-DKwlPCmo.js +10 -0
- package/dist/TerminalApp-BCB7i1lR.cjs +1 -0
- package/dist/TerminalApp-BYc_gHLe.js +326 -0
- package/dist/TerminalApp-Dviz6aP2.cjs +1 -0
- package/dist/TerminalMenuBar-D5tPmgR_.js +113 -0
- package/dist/TerminalMenuBar-DNshPmCa.cjs +1 -0
- package/dist/TerminalMenuBar-HzMSR7XP.cjs +1 -0
- package/dist/TextInput-C-JtGWn1.js +981 -0
- package/dist/TextInput-CrsmcOip.cjs +1 -0
- package/dist/Tooltip-D5Cd9wtz.cjs +1 -0
- package/dist/Tooltip-DOeIvhrO.js +1142 -0
- package/dist/UnstyledButton-DGaG-e_G.js +25 -0
- package/dist/UnstyledButton-DX2pTahr.cjs +1 -0
- package/dist/UploaderApp-C6xA5Rrf2.cjs +1 -0
- package/dist/UploaderApp-DnHIRxB_.cjs +1 -0
- package/dist/UploaderApp-qBfpukR_.js +488 -0
- package/dist/VscIcon-CcMdrFoJ.cjs +1 -0
- package/dist/VscIcon-DBfVnArE.js +8 -0
- package/dist/create-safe-context-Bboj0GWC.cjs +1 -0
- package/dist/create-safe-context-XT2cxc14.js +12 -0
- package/dist/desktopStore-CZoA9VHO.cjs +1 -0
- package/dist/desktopStore-F8bgLqFl.js +1768 -0
- package/dist/getRuntime-BFK0-8R1.cjs +1 -0
- package/dist/getRuntime-DAPqFH2W.js +63 -0
- package/dist/imageViewerStore-BB_tssZR.cjs +1 -0
- package/dist/imageViewerStore-C5kWz0o7.js +50 -0
- package/dist/index.cjs +1 -5642
- package/dist/index.css +2 -9192
- package/dist/index.d.ts +2258 -2019
- package/dist/index.js +4826 -4798
- package/dist/is-element-Bu_JY8Qy.js +7 -0
- package/dist/is-element-CdV0xajp.cjs +1 -0
- package/dist/menuEditStore-CTeM_dns.cjs +1 -0
- package/dist/menuEditStore-Cj1zAwxQ.js +38 -0
- package/dist/notesStore-BCEl1D_v.cjs +1 -0
- package/dist/notesStore-BPyRTHEc.js +36 -0
- package/dist/rolldown-runtime-CAFD8bLK.js +11 -0
- package/dist/settingsAppStore-BDQ3ts1y.js +29 -0
- package/dist/settingsAppStore-CMBc13VU.cjs +1 -0
- package/dist/terminalStore-IWdf4Mm6.js +30 -0
- package/dist/terminalStore-iIuyodfK.cjs +1 -0
- package/dist/use-merged-ref-BT8_u6vW.js +25 -0
- package/dist/use-merged-ref-n9Gw9LNn.cjs +1 -0
- package/dist/use-resolved-styles-api-8OXE2oRq.cjs +1 -0
- package/dist/use-resolved-styles-api-DNUlJJZf.js +21 -0
- package/dist/use-uncontrolled-A4hm9ATM.js +23 -0
- package/dist/use-uncontrolled-DDJVQiM_.cjs +1 -0
- package/dist/useAdaptiveDimensions-AVDc_qPa.js +40 -0
- package/dist/useAdaptiveDimensions-CfITBJ_m.cjs +1 -0
- package/dist/useCloseInterceptor-BZd3VILp.js +51 -0
- package/dist/useCloseInterceptor-yntBEzNc.cjs +1 -0
- package/dist/useDynamicIcon-Bf0t2foA.js +22 -0
- package/dist/useDynamicIcon-DJ_il30E.cjs +1 -0
- package/dist/useMenuBarUtils-nJIPJGIQ.cjs +1 -0
- package/dist/useMenuBarUtils-nmu9yehT.js +6 -0
- package/dist/useOpenApp-CBIm7Gzl.js +279 -0
- package/dist/useOpenApp-DW4x79Zg.cjs +1 -0
- package/dist/useResolvedUrl-BkMPM1fM.cjs +1 -0
- package/dist/useResolvedUrl-DQpLqOoL.js +30 -0
- package/package.json +7 -3
- package/dist/CalendarApp-CHLUCAI7.css +0 -744
- package/dist/CalendarApp-K7ZOUZ6C.js +0 -2
- package/dist/CalendarApp-OTGEERSS.cjs +0 -8
- package/dist/CodeServerApp-5KZGO7HL.css +0 -75
- package/dist/CodeServerApp-LUZFCQBI.js +0 -3
- package/dist/CodeServerApp-P3TMJPLY.cjs +0 -9
- package/dist/CreateItemApp-ESQ42VHH.js +0 -8
- package/dist/CreateItemApp-PQB5GTFG.css +0 -107
- package/dist/CreateItemApp-RFE3REWZ.cjs +0 -14
- package/dist/DeviceInfoApp-XNIS6ZY6.js +0 -5
- package/dist/DeviceInfoApp-ZNLQNOKI.cjs +0 -11
- package/dist/DeviceInfoApp-ZSMRSITP.css +0 -7
- package/dist/FilesApp-4GEU64QN.js +0 -8
- package/dist/FilesApp-E6L5W3T2.css +0 -1817
- package/dist/FilesApp-QSLB5IWR.cjs +0 -14
- package/dist/ImageViewerApp-N2Q7E7WZ.css +0 -215
- package/dist/ImageViewerApp-NCVDKLB3.js +0 -11
- package/dist/ImageViewerApp-QB373H5Z.cjs +0 -17
- package/dist/ImageViewerMenuBar-I3TFKQPS.cjs +0 -14
- package/dist/ImageViewerMenuBar-TV5C6TM2.js +0 -5
- package/dist/ImageViewerMenuBar-XLK4LIHW.css +0 -56
- package/dist/MenuEditApp-5EFYAPFC.cjs +0 -15
- package/dist/MenuEditApp-V5XOPIHX.js +0 -9
- package/dist/MenuEditApp-YA6HSAMJ.css +0 -94
- package/dist/MenuEditMenuBar-7VHMZNRM.css +0 -56
- package/dist/MenuEditMenuBar-GF6L4PGZ.cjs +0 -15
- package/dist/MenuEditMenuBar-IUXFPZE5.js +0 -6
- package/dist/NotesApp-2YNT7Y3D.js +0 -10
- package/dist/NotesApp-IAEE7YHU.cjs +0 -16
- package/dist/NotesApp-TQ6IHDNX.css +0 -302
- package/dist/NotesMenuBar-25LKN3SE.cjs +0 -15
- package/dist/NotesMenuBar-MXLOX7OT.css +0 -56
- package/dist/NotesMenuBar-SRV3AIAL.js +0 -6
- package/dist/PdfApp-67XIX6AM.js +0 -10
- package/dist/PdfApp-BUIC5U5H.css +0 -206
- package/dist/PdfApp-GZ6RHTBR.cjs +0 -16
- package/dist/PdfMenuBar-NLZC6JHS.js +0 -4
- package/dist/PdfMenuBar-QUM72EE4.css +0 -56
- package/dist/PdfMenuBar-WBRTKMLN.cjs +0 -13
- package/dist/SettingsApp-BPLMGPNK.cjs +0 -20
- package/dist/SettingsApp-JVOSEFH3.css +0 -283
- package/dist/SettingsApp-LUDIXCYY.js +0 -14
- package/dist/SettingsMenuBar-5CBSSMVM.css +0 -56
- package/dist/SettingsMenuBar-VLT6TTCM.js +0 -6
- package/dist/SettingsMenuBar-Y5QEXDEO.cjs +0 -15
- package/dist/StorybookApp-NQ244BER.css +0 -7
- package/dist/StorybookApp-NZDV4X3Y.js +0 -1
- package/dist/StorybookApp-VF3KIMU3.cjs +0 -7
- package/dist/TerminalApp-CDGWRBFJ.cjs +0 -10
- package/dist/TerminalApp-EAATMIMX.css +0 -77
- package/dist/TerminalApp-GCKJCM55.js +0 -4
- package/dist/TerminalMenuBar-3J26O26Q.css +0 -56
- package/dist/TerminalMenuBar-7BH7MGNJ.cjs +0 -14
- package/dist/TerminalMenuBar-7JAEQUZ4.js +0 -5
- package/dist/UploaderApp-6KV3TGCT.css +0 -1817
- package/dist/UploaderApp-FJC2J4I5.js +0 -10
- package/dist/UploaderApp-HLXJYJZQ.cjs +0 -16
- package/dist/chunk-2PSTHGTD.cjs +0 -42
- package/dist/chunk-2RQX7QBP.cjs +0 -148
- package/dist/chunk-43W6UDUZ.cjs +0 -19
- package/dist/chunk-4E45FBAH.js +0 -223
- package/dist/chunk-4E4U2A25.cjs +0 -237
- package/dist/chunk-4QHX7CMN.cjs +0 -38
- package/dist/chunk-4XURSNM4.js +0 -43
- package/dist/chunk-4ZCRYHL6.js +0 -407
- package/dist/chunk-5C6IQE42.cjs +0 -35
- package/dist/chunk-5HUYQDQF.js +0 -36
- package/dist/chunk-5NOHYJNH.js +0 -84
- package/dist/chunk-5QFZW6HW.js +0 -2241
- package/dist/chunk-5YH6AKEO.js +0 -146
- package/dist/chunk-756GPSPM.js +0 -283
- package/dist/chunk-7WUYUTPN.js +0 -2293
- package/dist/chunk-7XCMBW64.js +0 -162
- package/dist/chunk-7Y7HB7FB.cjs +0 -53
- package/dist/chunk-ABIAPZ6S.cjs +0 -45
- package/dist/chunk-ACHGJKCI.cjs +0 -286
- package/dist/chunk-BQCD5RAF.cjs +0 -48
- package/dist/chunk-BQL3YXMV.js +0 -17429
- package/dist/chunk-C3XER4N3.js +0 -442
- package/dist/chunk-C6BEZNAM.cjs +0 -45
- package/dist/chunk-CILU6BWC.cjs +0 -548
- package/dist/chunk-CV5PUHAE.cjs +0 -86
- package/dist/chunk-D5MVFFID.js +0 -42
- package/dist/chunk-D7R55WWT.js +0 -1601
- package/dist/chunk-DFYDUXWP.cjs +0 -34
- package/dist/chunk-DWP2SYF7.js +0 -55
- package/dist/chunk-E55VXNLK.cjs +0 -17498
- package/dist/chunk-E5FW77FG.js +0 -77
- package/dist/chunk-EAELL43F.js +0 -42
- package/dist/chunk-EX5V2ZTU.js +0 -40
- package/dist/chunk-FD7QZCTN.cjs +0 -2329
- package/dist/chunk-FH4ILMKF.js +0 -38
- package/dist/chunk-FRHBM2U7.js +0 -33
- package/dist/chunk-FX2TPX3L.cjs +0 -45
- package/dist/chunk-GPXNLTPI.cjs +0 -451
- package/dist/chunk-GRYCUBJZ.js +0 -9
- package/dist/chunk-HPHHS7FJ.cjs +0 -49
- package/dist/chunk-HWHBSAUC.js +0 -40
- package/dist/chunk-IDHP3R4I.js +0 -31
- package/dist/chunk-IHWGT3DL.js +0 -86
- package/dist/chunk-JEBKLIMU.cjs +0 -123
- package/dist/chunk-KDZLBI6F.cjs +0 -324
- package/dist/chunk-KQHICFX3.js +0 -121
- package/dist/chunk-LMJE6V4N.cjs +0 -42
- package/dist/chunk-MCHPDWVH.js +0 -444
- package/dist/chunk-MVDGM5Y4.js +0 -68
- package/dist/chunk-N36HBL53.cjs +0 -165
- package/dist/chunk-NV5GNFA3.js +0 -541
- package/dist/chunk-NVEGEK3N.js +0 -31
- package/dist/chunk-OJIDKDKF.js +0 -68
- package/dist/chunk-PGGNSLM7.js +0 -215
- package/dist/chunk-PKPQA5NR.js +0 -15
- package/dist/chunk-PNDBLFJW.cjs +0 -50
- package/dist/chunk-Q3WA72BF.cjs +0 -70
- package/dist/chunk-RDIDAZ3S.cjs +0 -9
- package/dist/chunk-RGJPRXYY.js +0 -48
- package/dist/chunk-RPSYXORB.cjs +0 -219
- package/dist/chunk-RQ6OZRUW.cjs +0 -41
- package/dist/chunk-SBE4SZAN.cjs +0 -226
- package/dist/chunk-TAFNCDUI.js +0 -234
- package/dist/chunk-TFIDSENE.cjs +0 -88
- package/dist/chunk-TGWMOHAO.js +0 -17
- package/dist/chunk-UA6XSTW6.js +0 -48
- package/dist/chunk-UIQCTAVM.cjs +0 -59
- package/dist/chunk-UKYESVDS.cjs +0 -50
- package/dist/chunk-V4N255NL.cjs +0 -2309
- package/dist/chunk-VO6KXO2I.js +0 -32
- package/dist/chunk-WXSTSC3D.cjs +0 -83
- package/dist/chunk-XSK7BWYO.js +0 -47
- package/dist/chunk-XVAPJ4PP.cjs +0 -449
- package/dist/chunk-XVASHRCE.cjs +0 -70
- package/dist/chunk-XYSMVQQD.cjs +0 -1608
- package/dist/chunk-YAIWI4Z5.js +0 -7
- package/dist/chunk-YGYOLDKR.js +0 -280
- package/dist/chunk-YP2PLNOF.cjs +0 -34
- package/dist/chunk-YSOLW4FS.cjs +0 -11
- package/dist/chunk-YY6OUR2U.js +0 -44
- package/dist/chunk-YZWS7FDT.cjs +0 -409
- package/dist/chunk-Z5YGWL65.cjs +0 -39
- package/dist/chunk-ZHNDXNL4.js +0 -45
- package/dist/chunk-ZX3EDZ5C.cjs +0 -17
- package/dist/index.d.cts +0 -2019
|
@@ -0,0 +1,223 @@
|
|
|
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 };
|
|
@@ -0,0 +1,174 @@
|
|
|
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 };
|
|
@@ -0,0 +1 @@
|
|
|
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}});
|
|
@@ -0,0 +1,89 @@
|
|
|
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 };
|
|
@@ -0,0 +1 @@
|
|
|
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}});
|