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