@fde-desktop/fde-core 0.4.7 → 0.4.8
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-CJXAq5o5.js +26 -0
- package/dist/AccordionChevron-DBXp38Lm.cjs +1 -0
- package/dist/ActionIcon-C_SfdBfx.cjs +1 -0
- package/dist/ActionIcon-CtVbYlGY.js +145 -0
- package/dist/AppEmptyState-BTujnL_b.js +4962 -0
- package/dist/AppEmptyState-Dc4GaDfu.cjs +1 -0
- package/dist/AppIcon--qzR4sgf.cjs +1 -0
- package/dist/AppIcon-DCDuaU-t.js +80 -0
- package/dist/AppMenuBar-BiHbNg9V.cjs +9 -0
- package/dist/AppMenuBar-CHJy8OF0.js +2639 -0
- package/dist/Box-DRm8EabO.js +1593 -0
- package/dist/Box-D_64wv6n.cjs +1 -0
- package/dist/Button-D0FXpkur.cjs +1 -0
- package/dist/Button-k7SxX1Xl.js +178 -0
- package/dist/CalendarApp-C1HvuJoa.cjs +1 -0
- package/dist/CalendarApp-DBEQqsS_.js +1721 -0
- package/dist/Center-CyryG5zn.js +25 -0
- package/dist/Center-T4No_FAa.cjs +1 -0
- package/dist/CheckIcon-C3WjIR2i.js +25 -0
- package/dist/CheckIcon-CBMLR6Gc.cjs +1 -0
- package/dist/CodeServerApp-B3l5QPuG.cjs +1 -0
- package/dist/CodeServerApp-BpeALSaX.js +2 -0
- package/dist/CodeServerApp-CRjCngFv.cjs +1 -0
- package/dist/CodeServerApp-DY94cy1a.js +149 -0
- package/dist/ColorPicker-BL4UbKCV.cjs +1 -0
- package/dist/ColorPicker-DvRR-wlQ.js +997 -0
- package/dist/Colors-BxX4G8kX.cjs +1 -0
- package/dist/Colors-hca6raEG.js +15 -0
- package/dist/CreateItemApp-BU9wmjKM.cjs +1 -0
- package/dist/CreateItemApp-CtdH1K1g.js +400 -0
- package/dist/CreateItemApp-t9F-a6wD.cjs +1 -0
- package/dist/DeviceInfoApp-C306YvtZ.js +223 -0
- package/dist/DeviceInfoApp-Cdju_LIB.cjs +1 -0
- package/dist/DeviceInfoApp-CyB01v4D.cjs +1 -0
- package/dist/DownloadProgress-IRw1dzLX.cjs +1 -0
- package/dist/DownloadProgress-hdupSUBT.js +174 -0
- package/dist/FileIcon-BCpGMI5U.js +88 -0
- package/dist/FileIcon-BCrsxmtt.cjs +1 -0
- package/dist/FilePickerApp-DMGuvahM.js +409 -0
- package/dist/FilePickerApp-Eu0cr2Cm.cjs +1 -0
- package/dist/FilesApp-30OjnOuP.cjs +1 -0
- package/dist/FilesApp-BvlzPNuO.cjs +1 -0
- package/dist/FilesApp-VXrmtt63.js +225 -0
- package/dist/Group-BzwlMeob.js +48 -0
- package/dist/Group-DhwePB84.cjs +1 -0
- package/dist/ImageViewerApp-BOz59TGc.cjs +1 -0
- package/dist/ImageViewerApp-BeqY6voE.cjs +1 -0
- package/dist/ImageViewerApp-CWiP6zx-.js +68 -0
- package/dist/ImageViewerApp-DBAfJPSo.js +2 -0
- package/dist/ImageViewerMenuBar-BULkh_Ku.js +86 -0
- package/dist/ImageViewerMenuBar-Cb0Nr5-M.js +2 -0
- package/dist/ImageViewerMenuBar-CoEp0RxK.cjs +1 -0
- package/dist/ImageViewerMenuBar-zOkJtqKo.cjs +1 -0
- package/dist/MenuEditApp-BoKtj2GH.js +2 -0
- package/dist/MenuEditApp-D21sEp86.js +2615 -0
- package/dist/MenuEditApp-k3cPfTG9.cjs +1 -0
- package/dist/MenuEditApp-sz9GlLVH.cjs +5 -0
- package/dist/MenuEditMenuBar-6QxlIDpl.cjs +1 -0
- package/dist/MenuEditMenuBar-B94z4Umw.js +59 -0
- package/dist/MenuEditMenuBar-Bv6R42lf.js +2 -0
- package/dist/MenuEditMenuBar-CBsmH_-T.cjs +1 -0
- package/dist/NotesApp-BtR55Hva.cjs +207 -0
- package/dist/NotesApp-C59exz_9.js +16154 -0
- package/dist/NotesApp-D47I5LS_.js +2 -0
- package/dist/NotesApp-lOwsi2sg.cjs +1 -0
- package/dist/NotesMenuBar-BB4NkKGf.js +61 -0
- package/dist/NotesMenuBar-BZITC74y.cjs +1 -0
- package/dist/NotesMenuBar-Bp0sPqyR.cjs +1 -0
- package/dist/NotesMenuBar-xlfODmMA.js +2 -0
- package/dist/Paper-DtUYKmYn.js +30 -0
- package/dist/Paper-DwCpwWwH.cjs +1 -0
- package/dist/PdfApp-1XbFGfoY.cjs +1 -0
- package/dist/PdfApp-BhIoJWeK.cjs +1 -0
- package/dist/PdfApp-C5Rt1Zaw.js +2 -0
- package/dist/PdfApp-C8Hwxxqh.js +38 -0
- package/dist/PdfMenuBar-BA9rKuMP.cjs +1 -0
- package/dist/PdfMenuBar-JXHqwxhZ.cjs +1 -0
- package/dist/PdfMenuBar-R0fu7oYF.js +2 -0
- package/dist/PdfMenuBar-sd-9Vk3h.js +38 -0
- package/dist/SettingsApp-BA-5B4RA.cjs +1 -0
- package/dist/SettingsApp-B_rev1xh.cjs +1 -0
- package/dist/SettingsApp-Ck4aUXs5.js +2 -0
- package/dist/SettingsApp-DUMKSA3K.js +2425 -0
- package/dist/SettingsMenuBar-BPwv8JQK.js +41 -0
- package/dist/SettingsMenuBar-D8R7hOik.js +2 -0
- package/dist/SettingsMenuBar-DDrjZLmg.cjs +1 -0
- package/dist/SettingsMenuBar-DQjUa8g1.cjs +1 -0
- package/dist/Slider-BNO-vDFn.js +1175 -0
- package/dist/Slider-Bg_EIBg6.cjs +1 -0
- package/dist/Stack-BOaJgV3N.cjs +1 -0
- package/dist/Stack-CuDEaP7e.js +34 -0
- package/dist/StorybookApp-Bkr-7mXp.cjs +1 -0
- package/dist/StorybookApp-WYninkJo.js +10 -0
- package/dist/TerminalApp-8XbsKAWa.js +10041 -0
- package/dist/TerminalApp-Bq2e7QQu.cjs +1 -0
- package/dist/TerminalApp-CVu3Axc9.js +2 -0
- package/dist/TerminalApp-b7_d0jRO.cjs +36 -0
- package/dist/TerminalMenuBar-Cb8x9laS.js +2 -0
- package/dist/TerminalMenuBar-De-FH5AE.cjs +1 -0
- package/dist/TerminalMenuBar-iKLydNda.js +112 -0
- package/dist/TerminalMenuBar-yOaWd-hn.cjs +1 -0
- package/dist/TextInput-C3qfxxWI.js +980 -0
- package/dist/TextInput-DcYns3hz.cjs +1 -0
- package/dist/Tooltip-CAOO-qdx.js +3185 -0
- package/dist/Tooltip-DDh_x-CB.cjs +1 -0
- package/dist/UnstyledButton-CI3kyRck.js +25 -0
- package/dist/UnstyledButton-Cl5RuIid.cjs +1 -0
- package/dist/UploaderApp-BZXW75A0.cjs +1 -0
- package/dist/UploaderApp-C9W_yCT-.js +487 -0
- package/dist/UploaderApp-CPpStgP5.cjs +1 -0
- package/dist/UploaderApp-DHsMQN-f.js +2 -0
- package/dist/VscIcon-CxEmqD80.cjs +1 -0
- package/dist/VscIcon-DueRJVTe.js +8 -0
- package/dist/chunk-BQCxAhux.js +23 -0
- package/dist/chunk-CiTBaPhY.cjs +1 -0
- package/dist/create-safe-context-95P-Bfg3.cjs +1 -0
- package/dist/create-safe-context-XT2cxc14.js +12 -0
- package/dist/desktopStore-B0R1-BeA.js +1905 -0
- package/dist/desktopStore-Cox-Og1z.cjs +1 -0
- package/dist/fc-DejOsQyD.cjs +1 -0
- package/dist/fc-kd8WzIER.js +20536 -0
- package/dist/fc-xJ_v2ayq.cjs +184 -0
- package/dist/fi-BahYsbim.js +9993 -0
- package/dist/fi-BkhyTcZo.cjs +1 -0
- package/dist/getRuntime-BLXyQZBB.cjs +1 -0
- package/dist/getRuntime-CCRXVzJH.js +63 -0
- package/dist/iconBase-B4UCuSvv.cjs +1 -0
- package/dist/iconBase-D7iPes7B.js +108 -0
- package/dist/imageViewerStore-CH1qW6md.cjs +1 -0
- package/dist/imageViewerStore-CJMRXaQh.js +50 -0
- package/dist/index.cjs +53 -5642
- package/dist/index.css +2 -9192
- package/dist/index.d.ts +2258 -2019
- package/dist/index.js +8983 -4780
- package/dist/is-element-BocgicRg.cjs +1 -0
- package/dist/is-element-Bu_JY8Qy.js +7 -0
- package/dist/menuEditStore-C8S_EedM.js +38 -0
- package/dist/menuEditStore-CU7IAg3L.cjs +1 -0
- package/dist/notesStore-DKRgTTFn.js +36 -0
- package/dist/notesStore-zKmChTfF.cjs +1 -0
- package/dist/react-DYmzHD0X.js +27 -0
- package/dist/react-Dldg32sN.cjs +1 -0
- package/dist/settingsAppStore-BrlImdAH.cjs +1 -0
- package/dist/settingsAppStore-KOeWRO6h.js +29 -0
- package/dist/terminalStore-LWWjCvCe.js +30 -0
- package/dist/terminalStore-fZe5t7Ty.cjs +1 -0
- package/dist/use-merged-ref-BI9n1hUK.cjs +1 -0
- package/dist/use-merged-ref-BT8_u6vW.js +25 -0
- package/dist/use-resolved-styles-api-AVDygMKo.cjs +1 -0
- package/dist/use-resolved-styles-api-pEOi2wiK.js +21 -0
- package/dist/use-uncontrolled-A4hm9ATM.js +23 -0
- package/dist/use-uncontrolled-BPrfGv0W.cjs +1 -0
- package/dist/useAdaptiveDimensions-Btp0m5Pm.cjs +1 -0
- package/dist/useAdaptiveDimensions-CunsU0mn.js +40 -0
- package/dist/useCloseInterceptor-CuKAAFnj.js +51 -0
- package/dist/useCloseInterceptor-a_6Lcuqj.cjs +1 -0
- package/dist/useDynamicIcon-GJg3vWsJ.js +22 -0
- package/dist/useDynamicIcon-SytdL1Tu.cjs +1 -0
- package/dist/useMenuBarUtils-Bp5PiztD.cjs +1 -0
- package/dist/useMenuBarUtils-ChmpZjwu.js +6 -0
- package/dist/useOpenApp-BdarhIgl.cjs +1 -0
- package/dist/useOpenApp-JHCPTBWa.js +279 -0
- package/dist/useResolvedUrl-Be5ZlCX7.cjs +1 -0
- package/dist/useResolvedUrl-DFKXq598.js +30 -0
- package/dist/useTranslation-DMRGdqZi.js +279 -0
- package/dist/useTranslation-D_O7S4RJ.cjs +1 -0
- package/dist/vsc-Ciibqbxo.cjs +1 -0
- package/dist/vsc-DGKSpOAR.js +9574 -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 @@
|
|
|
1
|
+
var e=[`#868e96`,`#fa5252`,`#fd7e14`,`#fab005`,`#82c91e`,`#40c057`,`#15aabf`,`#228be6`,`#7950f2`,`#e64980`];Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return e}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`./chunk-CiTBaPhY.cjs`);const e=require(`./Box-D_64wv6n.cjs`),t=require(`./ColorPicker-BL4UbKCV.cjs`),n=require(`./Tooltip-DDh_x-CB.cjs`),r=require(`./TextInput-DcYns3hz.cjs`),i=require(`./use-merged-ref-BI9n1hUK.cjs`),a=require(`./UnstyledButton-Cl5RuIid.cjs`),o=require(`./ActionIcon-C_SfdBfx.cjs`),s=require(`./Group-DhwePB84.cjs`),c=require(`./getRuntime-BLXyQZBB.cjs`),l=require(`./Button-D0FXpkur.cjs`),u=require(`./desktopStore-Cox-Og1z.cjs`),d=require(`./useDynamicIcon-SytdL1Tu.cjs`),f=require(`./VscIcon-CxEmqD80.cjs`);let p=require(`react`),m=require(`react/jsx-runtime`),h=require(`react-dom`);function g(e){if(!e||typeof e==`string`)return 0;let t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function _(e){return e.current?e.current.scrollHeight:`auto`}function v({transitionDuration:e,transitionTimingFunction:t=`ease`,onTransitionEnd:n,onTransitionStart:a,expanded:o,keepMounted:s}){let c={height:0,overflow:`hidden`,...s?{}:{display:`none`}},l=(0,p.useEffectEvent)(()=>a?.()),u=(0,p.useRef)(null),[d,f]=(0,p.useState)(o?{}:c),[m,v]=(0,p.useState)(o?`entered`:`exited`),y=e=>{(0,h.flushSync)(()=>f(e))},b=e=>{y(t=>({...t,...e}))},x=n=>{let r=e||g(n);return{transition:`height ${r}ms ${t}, opacity ${r}ms ${t}`}};r.d(()=>{e!==0&&l(),o?window.requestAnimationFrame(()=>{(0,h.flushSync)(()=>v(`entering`)),b({willChange:`height`,display:`block`,overflow:`hidden`}),window.requestAnimationFrame(()=>{let e=_(u);b({...x(e),height:e})})}):window.requestAnimationFrame(()=>{(0,h.flushSync)(()=>v(`exiting`));let e=_(u);b({...x(e),willChange:`height`,height:e}),window.requestAnimationFrame(()=>b({height:0,overflow:`hidden`}))})},[o]);let S=e=>{if(!(e.target!==u.current||e.propertyName!==`height`))if(o){let e=_(u);e===d.height?y({}):b({height:e}),v(`entered`),n?.()}else d.height===0&&(y(c),v(`exited`),n?.())};return{state:m,getCollapseProps:e=>({"aria-hidden":!o,inert:!o,ref:i.n(u,e?.ref),onTransitionEnd:S,style:{boxSizing:`border-box`,...e?.style,...d}})}}function y(e){if(!e||typeof e==`string`)return 0;let t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function b(e){return e.current?e.current.scrollWidth:`auto`}function x({transitionDuration:e,transitionTimingFunction:t=`ease`,onTransitionEnd:n,onTransitionStart:a,expanded:o,keepMounted:s}){let c={width:0,overflow:`hidden`,...s?{}:{display:`none`}},l=(0,p.useRef)(null),[u,d]=(0,p.useState)(o?{}:c),[f,m]=(0,p.useState)(o?`entered`:`exited`),g=e=>{(0,h.flushSync)(()=>d(e))},_=e=>{g(t=>({...t,...e}))},v=n=>{let r=e||y(n);return{transition:`width ${r}ms ${t}, opacity ${r}ms ${t}`}};r.d(()=>{e!==0&&a?.(),o?window.requestAnimationFrame(()=>{(0,h.flushSync)(()=>m(`entering`)),_({willChange:`width`,display:`block`,overflow:`hidden`}),window.requestAnimationFrame(()=>{let e=b(l);_({...v(e),width:e})})}):window.requestAnimationFrame(()=>{(0,h.flushSync)(()=>m(`exiting`));let e=b(l);_({...v(e),willChange:`width`,width:e}),window.requestAnimationFrame(()=>_({width:0,overflow:`hidden`}))})},[o,a]);let x=e=>{if(!(e.target!==l.current||e.propertyName!==`width`))if(o){let e=b(l);e===u.width?g({}):_({width:e}),m(`entered`),n?.()}else u.width===0&&(g(c),m(`exited`),n?.())};return{state:f,getCollapseProps:e=>({"aria-hidden":!o,inert:!o,ref:i.n(l,e?.ref),onTransitionEnd:x,style:{boxSizing:`border-box`,...e?.style,...u}})}}var S={transitionDuration:200,transitionTimingFunction:`ease`,animateOpacity:!0,orientation:`vertical`},C=e.r(t=>{let{children:i,expanded:a,transitionDuration:o,transitionTimingFunction:s,style:c,onTransitionEnd:l,onTransitionStart:u,animateOpacity:d,keepMounted:f,ref:h,orientation:g,..._}=e.l(`Collapse`,S,t),y=e.h(),b=e.d(),C=r.l(),w=b.respectReducedMotion&&C?0:o,T=(g===`horizontal`?x:v)({expanded:a,transitionDuration:w,transitionTimingFunction:s,onTransitionEnd:l,onTransitionStart:u,keepMounted:!1});if(w===0)return f===!0&&y!==`test`?(0,m.jsx)(p.Activity,{mode:a?`visible`:`hidden`,children:(0,m.jsx)(e.t,{..._,children:i})}):a?(0,m.jsx)(e.t,{..._,children:i}):null;let E=T.state===`exited`,D;return D=f===!1?E?null:i:f===!0?(0,m.jsx)(p.Activity,{mode:E?`hidden`:`visible`,children:i}):i,(0,m.jsx)(e.t,{..._,...T.getCollapseProps({style:{opacity:a||!d?1:0,transition:d?`opacity ${w}ms ${s}`:`none`,...n.c(c,b)},ref:h}),children:D})});C.displayName=`@mantine/core/Collapse`;var w={root:`_root_1jzye_1`,iconGrid:`_iconGrid_1jzye_7`,iconButton:`_iconButton_1jzye_11`},T=[`VscFolder`,`VscFolderOpened`,`VscHome`,`VscServer`,`VscDatabase`,`VscBook`,`VscMail`,`VscGithub`,`VscCloud`,`VscLock`,`VscSettingsGear`,`VscStar`,`VscHeart`,`VscMusic`,`VscCamera`,`VscArchive`],E=({selectedIcon:e,selectedColor:r,onIconChange:i,onColorChange:o,colorError:s})=>(0,m.jsxs)(`div`,{className:w.root,children:[(0,m.jsx)(t.n,{cols:8,spacing:4,className:w.iconGrid,children:T.map(t=>{let o=e===t;return(0,m.jsx)(n.t,{label:t,openDelay:500,children:(0,m.jsx)(a.t,{className:w.iconButton,"data-selected":o||void 0,onClick:()=>i(t),"aria-label":t,"aria-pressed":o,children:(0,m.jsx)(f.t,{name:t,size:20,color:r})})},t)})}),(0,m.jsx)(t.t,{value:r,onChange:o,error:s})]}),D={content:`_content_ej839_1`,header:`_header_ej839_8`,nameRow:`_nameRow_ej839_13`,iconPreview:`_iconPreview_ej839_19`,nameInput:`_nameInput_ej839_30`,collapseToggle:`_collapseToggle_ej839_34`,pickerWrapper:`_pickerWrapper_ej839_46`},O=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/,k=e=>O.test(e),A={size:14,style:{display:`block`}},j=({open:e})=>d.i(e?`FcCollapse`:`FcExpand`,A),M=()=>d.i(`FcCancel`,A),N=()=>d.i(`FcCheckmark`,A),P=`VscFolder`,F=`#228be6`,I=`New File`,L=`New Folder`,R=36,z=({window:e})=>{let t=e,n=t?.contentData?.mode??`folder`,i=t?.contentData?.parentId??null,f=t?.contentData?.currentPath??`/home`,[h,g]=(0,p.useState)(n===`folder`?L:I),[_,v]=(0,p.useState)(P),[y,b]=(0,p.useState)(F),[x,S]=(0,p.useState)(t?.contentData?.iconPickerOpen??!1),w=(0,p.useRef)(null),T=u.o(e=>e.closeWindow),O=u.o(e=>e.resizeWindow),A=u.o(e=>e.createFile),z=u.o(e=>e.createFolder),B=u.o(e=>e.addNotification),V=u.o(e=>e.fsNodes),H=u.o(e=>e.windows.find(e=>e.id===t?.id)?.width??400),U=V.some(e=>e.parentId===i&&e.type===n&&e.name===h.trim()),W=n===`folder`&&x&&!k(y),G=h.trim().length>0&&!U&&!W;(0,p.useEffect)(()=>{if(!t?.id||!w.current)return;let e=w.current,n=new ResizeObserver(()=>{O(t.id,H,e.scrollHeight+R)});return n.observe(e),()=>n.disconnect()},[t,H,O]);let K=()=>{if(!G)return;let e=h.trim(),r=i??null,a=_,o=y;T(t.id),n===`folder`?z(e,r,a,o).catch(e=>{console.error(`Failed to create folder:`,e),B({id:`create-folder-error-${Date.now()}`,title:`Error`,message:`Failed to create folder: ${e instanceof Error?e.message:`Unknown error`}`,fcIcon:`FcHighPriority`})}):A(e,``,r).catch(e=>{console.error(`Failed to create file:`,e),B({id:`create-file-error-${Date.now()}`,title:`Error`,message:`Failed to create file: ${e instanceof Error?e.message:`Unknown error`}`,fcIcon:`FcHighPriority`})})},q=()=>{T(t.id)},J=d.c(_,{size:40,color:y});return(0,m.jsxs)(`div`,{ref:w,className:D.root,children:[(0,m.jsx)(`div`,{className:D.header,children:(0,m.jsxs)(c.o,{fw:600,size:`sm`,children:[n===`folder`?`Create new folder`:`Create new file`,` in `,f,`:`]})}),(0,m.jsxs)(`div`,{className:D.content,children:[(0,m.jsxs)(`div`,{className:D.nameRow,children:[n===`folder`&&J&&(0,m.jsx)(`div`,{className:D.iconPreview,"aria-hidden":`true`,children:J}),(0,m.jsx)(r.t,{value:h,onChange:e=>g(e.currentTarget.value),onKeyDown:e=>e.key===`Enter`&&K(),error:U?`There is already a ${n} with that name`:void 0,rightSection:h?(0,m.jsx)(o.t,{variant:`transparent`,size:`sm`,onClick:()=>g(``),"aria-label":`Clear name`,children:(0,m.jsx)(M,{})}):null,autoFocus:!0,className:D.nameInput,"aria-label":`Item name`})]}),n===`folder`&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)(a.t,{className:D.collapseToggle,onClick:()=>S(e=>!e),"aria-expanded":x,children:[(0,m.jsx)(j,{open:x}),(0,m.jsx)(c.o,{size:`sm`,ml:6,children:`Choose custom icon or color`})]}),(0,m.jsx)(C,{expanded:x,children:(0,m.jsx)(`div`,{className:D.pickerWrapper,children:(0,m.jsx)(E,{selectedIcon:_,selectedColor:y,onIconChange:v,onColorChange:b,colorError:W?`Enter a valid hex color (e.g. #ff0000)`:void 0})})}),(0,m.jsx)(c.o,{size:`xs`,c:`dimmed`,mt:4,children:`You can change the icon later in folder properties.`})]}),(0,m.jsxs)(s.t,{justify:`flex-end`,mt:`md`,children:[(0,m.jsx)(l.t,{variant:`default`,size:`sm`,onClick:q,leftSection:(0,m.jsx)(M,{}),children:`Cancel`}),(0,m.jsx)(l.t,{size:`sm`,onClick:K,leftSection:(0,m.jsx)(N,{}),disabled:!G,children:`OK`})]})]})]})};Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return E}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return T}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return z}});
|
|
@@ -0,0 +1,400 @@
|
|
|
1
|
+
import { r as e } from "./chunk-BQCxAhux.js";
|
|
2
|
+
import { d as t, h as n, l as r, r as i, t as a } from "./Box-DRm8EabO.js";
|
|
3
|
+
import { n as o, t as s } from "./ColorPicker-DvRR-wlQ.js";
|
|
4
|
+
import { c, t as l } from "./Tooltip-CAOO-qdx.js";
|
|
5
|
+
import { d as u, l as d, t as f } from "./TextInput-C3qfxxWI.js";
|
|
6
|
+
import { n as p } from "./use-merged-ref-BT8_u6vW.js";
|
|
7
|
+
import { t as m } from "./UnstyledButton-CI3kyRck.js";
|
|
8
|
+
import { t as h } from "./ActionIcon-CtVbYlGY.js";
|
|
9
|
+
import { t as g } from "./Group-BzwlMeob.js";
|
|
10
|
+
import { o as _ } from "./getRuntime-CCRXVzJH.js";
|
|
11
|
+
import { t as v } from "./Button-k7SxX1Xl.js";
|
|
12
|
+
import { o as y } from "./desktopStore-B0R1-BeA.js";
|
|
13
|
+
import { c as b, i as x } from "./useDynamicIcon-GJg3vWsJ.js";
|
|
14
|
+
import { t as S } from "./VscIcon-DueRJVTe.js";
|
|
15
|
+
import { Activity as C, useEffect as w, useEffectEvent as T, useRef as E, useState as D } from "react";
|
|
16
|
+
import { Fragment as O, jsx as k, jsxs as A } from "react/jsx-runtime";
|
|
17
|
+
import { flushSync as j } from "react-dom";
|
|
18
|
+
//#region ../../node_modules/.bun/@mantine+hooks@9.0.0+b1ab299f0a400331/node_modules/@mantine/hooks/esm/use-collapse/use-collapse.mjs
|
|
19
|
+
function M(e) {
|
|
20
|
+
if (!e || typeof e == "string") return 0;
|
|
21
|
+
let t = e / 36;
|
|
22
|
+
return Math.round((4 + 15 * t ** .25 + t / 5) * 10);
|
|
23
|
+
}
|
|
24
|
+
function N(e) {
|
|
25
|
+
return e.current ? e.current.scrollHeight : "auto";
|
|
26
|
+
}
|
|
27
|
+
function P({ transitionDuration: e, transitionTimingFunction: t = "ease", onTransitionEnd: n, onTransitionStart: r, expanded: i, keepMounted: a }) {
|
|
28
|
+
let o = {
|
|
29
|
+
height: 0,
|
|
30
|
+
overflow: "hidden",
|
|
31
|
+
...a ? {} : { display: "none" }
|
|
32
|
+
}, s = T(() => r?.()), c = E(null), [l, d] = D(i ? {} : o), [f, m] = D(i ? "entered" : "exited"), h = (e) => {
|
|
33
|
+
j(() => d(e));
|
|
34
|
+
}, g = (e) => {
|
|
35
|
+
h((t) => ({
|
|
36
|
+
...t,
|
|
37
|
+
...e
|
|
38
|
+
}));
|
|
39
|
+
}, _ = (n) => {
|
|
40
|
+
let r = e || M(n);
|
|
41
|
+
return { transition: `height ${r}ms ${t}, opacity ${r}ms ${t}` };
|
|
42
|
+
};
|
|
43
|
+
u(() => {
|
|
44
|
+
e !== 0 && s(), i ? window.requestAnimationFrame(() => {
|
|
45
|
+
j(() => m("entering")), g({
|
|
46
|
+
willChange: "height",
|
|
47
|
+
display: "block",
|
|
48
|
+
overflow: "hidden"
|
|
49
|
+
}), window.requestAnimationFrame(() => {
|
|
50
|
+
let e = N(c);
|
|
51
|
+
g({
|
|
52
|
+
..._(e),
|
|
53
|
+
height: e
|
|
54
|
+
});
|
|
55
|
+
});
|
|
56
|
+
}) : window.requestAnimationFrame(() => {
|
|
57
|
+
j(() => m("exiting"));
|
|
58
|
+
let e = N(c);
|
|
59
|
+
g({
|
|
60
|
+
..._(e),
|
|
61
|
+
willChange: "height",
|
|
62
|
+
height: e
|
|
63
|
+
}), window.requestAnimationFrame(() => g({
|
|
64
|
+
height: 0,
|
|
65
|
+
overflow: "hidden"
|
|
66
|
+
}));
|
|
67
|
+
});
|
|
68
|
+
}, [i]);
|
|
69
|
+
let v = (e) => {
|
|
70
|
+
if (!(e.target !== c.current || e.propertyName !== "height")) if (i) {
|
|
71
|
+
let e = N(c);
|
|
72
|
+
e === l.height ? h({}) : g({ height: e }), m("entered"), n?.();
|
|
73
|
+
} else l.height === 0 && (h(o), m("exited"), n?.());
|
|
74
|
+
};
|
|
75
|
+
return {
|
|
76
|
+
state: f,
|
|
77
|
+
getCollapseProps: (e) => ({
|
|
78
|
+
"aria-hidden": !i,
|
|
79
|
+
inert: !i,
|
|
80
|
+
ref: p(c, e?.ref),
|
|
81
|
+
onTransitionEnd: v,
|
|
82
|
+
style: {
|
|
83
|
+
boxSizing: "border-box",
|
|
84
|
+
...e?.style,
|
|
85
|
+
...l
|
|
86
|
+
}
|
|
87
|
+
})
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
//#endregion
|
|
91
|
+
//#region ../../node_modules/.bun/@mantine+hooks@9.0.0+b1ab299f0a400331/node_modules/@mantine/hooks/esm/use-collapse/use-horizontal-collapse.mjs
|
|
92
|
+
function F(e) {
|
|
93
|
+
if (!e || typeof e == "string") return 0;
|
|
94
|
+
let t = e / 36;
|
|
95
|
+
return Math.round((4 + 15 * t ** .25 + t / 5) * 10);
|
|
96
|
+
}
|
|
97
|
+
function I(e) {
|
|
98
|
+
return e.current ? e.current.scrollWidth : "auto";
|
|
99
|
+
}
|
|
100
|
+
function L({ transitionDuration: e, transitionTimingFunction: t = "ease", onTransitionEnd: n, onTransitionStart: r, expanded: i, keepMounted: a }) {
|
|
101
|
+
let o = {
|
|
102
|
+
width: 0,
|
|
103
|
+
overflow: "hidden",
|
|
104
|
+
...a ? {} : { display: "none" }
|
|
105
|
+
}, s = E(null), [c, l] = D(i ? {} : o), [d, f] = D(i ? "entered" : "exited"), m = (e) => {
|
|
106
|
+
j(() => l(e));
|
|
107
|
+
}, h = (e) => {
|
|
108
|
+
m((t) => ({
|
|
109
|
+
...t,
|
|
110
|
+
...e
|
|
111
|
+
}));
|
|
112
|
+
}, g = (n) => {
|
|
113
|
+
let r = e || F(n);
|
|
114
|
+
return { transition: `width ${r}ms ${t}, opacity ${r}ms ${t}` };
|
|
115
|
+
};
|
|
116
|
+
u(() => {
|
|
117
|
+
e !== 0 && r?.(), i ? window.requestAnimationFrame(() => {
|
|
118
|
+
j(() => f("entering")), h({
|
|
119
|
+
willChange: "width",
|
|
120
|
+
display: "block",
|
|
121
|
+
overflow: "hidden"
|
|
122
|
+
}), window.requestAnimationFrame(() => {
|
|
123
|
+
let e = I(s);
|
|
124
|
+
h({
|
|
125
|
+
...g(e),
|
|
126
|
+
width: e
|
|
127
|
+
});
|
|
128
|
+
});
|
|
129
|
+
}) : window.requestAnimationFrame(() => {
|
|
130
|
+
j(() => f("exiting"));
|
|
131
|
+
let e = I(s);
|
|
132
|
+
h({
|
|
133
|
+
...g(e),
|
|
134
|
+
willChange: "width",
|
|
135
|
+
width: e
|
|
136
|
+
}), window.requestAnimationFrame(() => h({
|
|
137
|
+
width: 0,
|
|
138
|
+
overflow: "hidden"
|
|
139
|
+
}));
|
|
140
|
+
});
|
|
141
|
+
}, [i, r]);
|
|
142
|
+
let _ = (e) => {
|
|
143
|
+
if (!(e.target !== s.current || e.propertyName !== "width")) if (i) {
|
|
144
|
+
let e = I(s);
|
|
145
|
+
e === c.width ? m({}) : h({ width: e }), f("entered"), n?.();
|
|
146
|
+
} else c.width === 0 && (m(o), f("exited"), n?.());
|
|
147
|
+
};
|
|
148
|
+
return {
|
|
149
|
+
state: d,
|
|
150
|
+
getCollapseProps: (e) => ({
|
|
151
|
+
"aria-hidden": !i,
|
|
152
|
+
inert: !i,
|
|
153
|
+
ref: p(s, e?.ref),
|
|
154
|
+
onTransitionEnd: _,
|
|
155
|
+
style: {
|
|
156
|
+
boxSizing: "border-box",
|
|
157
|
+
...e?.style,
|
|
158
|
+
...c
|
|
159
|
+
}
|
|
160
|
+
})
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
//#endregion
|
|
164
|
+
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Collapse/Collapse.mjs
|
|
165
|
+
var R = {
|
|
166
|
+
transitionDuration: 200,
|
|
167
|
+
transitionTimingFunction: "ease",
|
|
168
|
+
animateOpacity: !0,
|
|
169
|
+
orientation: "vertical"
|
|
170
|
+
}, z = i((e) => {
|
|
171
|
+
let { children: i, expanded: o, transitionDuration: s, transitionTimingFunction: l, style: u, onTransitionEnd: f, onTransitionStart: p, animateOpacity: m, keepMounted: h, ref: g, orientation: _, ...v } = r("Collapse", R, e), y = n(), b = t(), x = d(), S = b.respectReducedMotion && x ? 0 : s, w = (_ === "horizontal" ? L : P)({
|
|
172
|
+
expanded: o,
|
|
173
|
+
transitionDuration: S,
|
|
174
|
+
transitionTimingFunction: l,
|
|
175
|
+
onTransitionEnd: f,
|
|
176
|
+
onTransitionStart: p,
|
|
177
|
+
keepMounted: !1
|
|
178
|
+
});
|
|
179
|
+
if (S === 0) return h === !0 && y !== "test" ? /* @__PURE__ */ k(C, {
|
|
180
|
+
mode: o ? "visible" : "hidden",
|
|
181
|
+
children: /* @__PURE__ */ k(a, {
|
|
182
|
+
...v,
|
|
183
|
+
children: i
|
|
184
|
+
})
|
|
185
|
+
}) : o ? /* @__PURE__ */ k(a, {
|
|
186
|
+
...v,
|
|
187
|
+
children: i
|
|
188
|
+
}) : null;
|
|
189
|
+
let T = w.state === "exited", E;
|
|
190
|
+
return E = h === !1 ? T ? null : i : h === !0 ? /* @__PURE__ */ k(C, {
|
|
191
|
+
mode: T ? "hidden" : "visible",
|
|
192
|
+
children: i
|
|
193
|
+
}) : i, /* @__PURE__ */ k(a, {
|
|
194
|
+
...v,
|
|
195
|
+
...w.getCollapseProps({
|
|
196
|
+
style: {
|
|
197
|
+
opacity: o || !m ? 1 : 0,
|
|
198
|
+
transition: m ? `opacity ${S}ms ${l}` : "none",
|
|
199
|
+
...c(u, b)
|
|
200
|
+
},
|
|
201
|
+
ref: g
|
|
202
|
+
}),
|
|
203
|
+
children: E
|
|
204
|
+
});
|
|
205
|
+
});
|
|
206
|
+
z.displayName = "@mantine/core/Collapse";
|
|
207
|
+
var B = {
|
|
208
|
+
root: "_root_1jzye_1",
|
|
209
|
+
iconGrid: "_iconGrid_1jzye_7",
|
|
210
|
+
iconButton: "_iconButton_1jzye_11"
|
|
211
|
+
}, V = [
|
|
212
|
+
"VscFolder",
|
|
213
|
+
"VscFolderOpened",
|
|
214
|
+
"VscHome",
|
|
215
|
+
"VscServer",
|
|
216
|
+
"VscDatabase",
|
|
217
|
+
"VscBook",
|
|
218
|
+
"VscMail",
|
|
219
|
+
"VscGithub",
|
|
220
|
+
"VscCloud",
|
|
221
|
+
"VscLock",
|
|
222
|
+
"VscSettingsGear",
|
|
223
|
+
"VscStar",
|
|
224
|
+
"VscHeart",
|
|
225
|
+
"VscMusic",
|
|
226
|
+
"VscCamera",
|
|
227
|
+
"VscArchive"
|
|
228
|
+
], H = ({ selectedIcon: e, selectedColor: t, onIconChange: n, onColorChange: r, colorError: i }) => /* @__PURE__ */ A("div", {
|
|
229
|
+
className: B.root,
|
|
230
|
+
children: [/* @__PURE__ */ k(o, {
|
|
231
|
+
cols: 8,
|
|
232
|
+
spacing: 4,
|
|
233
|
+
className: B.iconGrid,
|
|
234
|
+
children: V.map((r) => {
|
|
235
|
+
let i = e === r;
|
|
236
|
+
return /* @__PURE__ */ k(l, {
|
|
237
|
+
label: r,
|
|
238
|
+
openDelay: 500,
|
|
239
|
+
children: /* @__PURE__ */ k(m, {
|
|
240
|
+
className: B.iconButton,
|
|
241
|
+
"data-selected": i || void 0,
|
|
242
|
+
onClick: () => n(r),
|
|
243
|
+
"aria-label": r,
|
|
244
|
+
"aria-pressed": i,
|
|
245
|
+
children: /* @__PURE__ */ k(S, {
|
|
246
|
+
name: r,
|
|
247
|
+
size: 20,
|
|
248
|
+
color: t
|
|
249
|
+
})
|
|
250
|
+
})
|
|
251
|
+
}, r);
|
|
252
|
+
})
|
|
253
|
+
}), /* @__PURE__ */ k(s, {
|
|
254
|
+
value: t,
|
|
255
|
+
onChange: r,
|
|
256
|
+
error: i
|
|
257
|
+
})]
|
|
258
|
+
}), U = {
|
|
259
|
+
content: "_content_ej839_1",
|
|
260
|
+
header: "_header_ej839_8",
|
|
261
|
+
nameRow: "_nameRow_ej839_13",
|
|
262
|
+
iconPreview: "_iconPreview_ej839_19",
|
|
263
|
+
nameInput: "_nameInput_ej839_30",
|
|
264
|
+
collapseToggle: "_collapseToggle_ej839_34",
|
|
265
|
+
pickerWrapper: "_pickerWrapper_ej839_46"
|
|
266
|
+
}, W = /* @__PURE__ */ e({ default: () => $ }), G = /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/, K = (e) => G.test(e), q = {
|
|
267
|
+
size: 14,
|
|
268
|
+
style: { display: "block" }
|
|
269
|
+
}, J = ({ open: e }) => x(e ? "FcCollapse" : "FcExpand", q), Y = () => x("FcCancel", q), X = () => x("FcCheckmark", q), Z = "VscFolder", Q = "#228be6", ee = "New File", te = "New Folder", ne = 36, $ = ({ window: e }) => {
|
|
270
|
+
let t = e, n = t?.contentData?.mode ?? "folder", r = t?.contentData?.parentId ?? null, i = t?.contentData?.currentPath ?? "/home", [a, o] = D(n === "folder" ? te : ee), [s, c] = D(Z), [l, u] = D(Q), [d, p] = D(t?.contentData?.iconPickerOpen ?? !1), x = E(null), S = y((e) => e.closeWindow), C = y((e) => e.resizeWindow), T = y((e) => e.createFile), j = y((e) => e.createFolder), M = y((e) => e.addNotification), N = y((e) => e.fsNodes), P = y((e) => e.windows.find((e) => e.id === t?.id)?.width ?? 400), F = N.some((e) => e.parentId === r && e.type === n && e.name === a.trim()), I = n === "folder" && d && !K(l), L = a.trim().length > 0 && !F && !I;
|
|
271
|
+
w(() => {
|
|
272
|
+
if (!t?.id || !x.current) return;
|
|
273
|
+
let e = x.current, n = new ResizeObserver(() => {
|
|
274
|
+
C(t.id, P, e.scrollHeight + ne);
|
|
275
|
+
});
|
|
276
|
+
return n.observe(e), () => n.disconnect();
|
|
277
|
+
}, [
|
|
278
|
+
t,
|
|
279
|
+
P,
|
|
280
|
+
C
|
|
281
|
+
]);
|
|
282
|
+
let R = () => {
|
|
283
|
+
if (!L) return;
|
|
284
|
+
let e = a.trim(), i = r ?? null, o = s, c = l;
|
|
285
|
+
S(t.id), n === "folder" ? j(e, i, o, c).catch((e) => {
|
|
286
|
+
console.error("Failed to create folder:", e), M({
|
|
287
|
+
id: `create-folder-error-${Date.now()}`,
|
|
288
|
+
title: "Error",
|
|
289
|
+
message: `Failed to create folder: ${e instanceof Error ? e.message : "Unknown error"}`,
|
|
290
|
+
fcIcon: "FcHighPriority"
|
|
291
|
+
});
|
|
292
|
+
}) : T(e, "", i).catch((e) => {
|
|
293
|
+
console.error("Failed to create file:", e), M({
|
|
294
|
+
id: `create-file-error-${Date.now()}`,
|
|
295
|
+
title: "Error",
|
|
296
|
+
message: `Failed to create file: ${e instanceof Error ? e.message : "Unknown error"}`,
|
|
297
|
+
fcIcon: "FcHighPriority"
|
|
298
|
+
});
|
|
299
|
+
});
|
|
300
|
+
}, B = () => {
|
|
301
|
+
S(t.id);
|
|
302
|
+
}, V = b(s, {
|
|
303
|
+
size: 40,
|
|
304
|
+
color: l
|
|
305
|
+
});
|
|
306
|
+
return /* @__PURE__ */ A("div", {
|
|
307
|
+
ref: x,
|
|
308
|
+
className: U.root,
|
|
309
|
+
children: [/* @__PURE__ */ k("div", {
|
|
310
|
+
className: U.header,
|
|
311
|
+
children: /* @__PURE__ */ A(_, {
|
|
312
|
+
fw: 600,
|
|
313
|
+
size: "sm",
|
|
314
|
+
children: [
|
|
315
|
+
n === "folder" ? "Create new folder" : "Create new file",
|
|
316
|
+
" in ",
|
|
317
|
+
i,
|
|
318
|
+
":"
|
|
319
|
+
]
|
|
320
|
+
})
|
|
321
|
+
}), /* @__PURE__ */ A("div", {
|
|
322
|
+
className: U.content,
|
|
323
|
+
children: [
|
|
324
|
+
/* @__PURE__ */ A("div", {
|
|
325
|
+
className: U.nameRow,
|
|
326
|
+
children: [n === "folder" && V && /* @__PURE__ */ k("div", {
|
|
327
|
+
className: U.iconPreview,
|
|
328
|
+
"aria-hidden": "true",
|
|
329
|
+
children: V
|
|
330
|
+
}), /* @__PURE__ */ k(f, {
|
|
331
|
+
value: a,
|
|
332
|
+
onChange: (e) => o(e.currentTarget.value),
|
|
333
|
+
onKeyDown: (e) => e.key === "Enter" && R(),
|
|
334
|
+
error: F ? `There is already a ${n} with that name` : void 0,
|
|
335
|
+
rightSection: a ? /* @__PURE__ */ k(h, {
|
|
336
|
+
variant: "transparent",
|
|
337
|
+
size: "sm",
|
|
338
|
+
onClick: () => o(""),
|
|
339
|
+
"aria-label": "Clear name",
|
|
340
|
+
children: /* @__PURE__ */ k(Y, {})
|
|
341
|
+
}) : null,
|
|
342
|
+
autoFocus: !0,
|
|
343
|
+
className: U.nameInput,
|
|
344
|
+
"aria-label": "Item name"
|
|
345
|
+
})]
|
|
346
|
+
}),
|
|
347
|
+
n === "folder" && /* @__PURE__ */ A(O, { children: [
|
|
348
|
+
/* @__PURE__ */ A(m, {
|
|
349
|
+
className: U.collapseToggle,
|
|
350
|
+
onClick: () => p((e) => !e),
|
|
351
|
+
"aria-expanded": d,
|
|
352
|
+
children: [/* @__PURE__ */ k(J, { open: d }), /* @__PURE__ */ k(_, {
|
|
353
|
+
size: "sm",
|
|
354
|
+
ml: 6,
|
|
355
|
+
children: "Choose custom icon or color"
|
|
356
|
+
})]
|
|
357
|
+
}),
|
|
358
|
+
/* @__PURE__ */ k(z, {
|
|
359
|
+
expanded: d,
|
|
360
|
+
children: /* @__PURE__ */ k("div", {
|
|
361
|
+
className: U.pickerWrapper,
|
|
362
|
+
children: /* @__PURE__ */ k(H, {
|
|
363
|
+
selectedIcon: s,
|
|
364
|
+
selectedColor: l,
|
|
365
|
+
onIconChange: c,
|
|
366
|
+
onColorChange: u,
|
|
367
|
+
colorError: I ? "Enter a valid hex color (e.g. #ff0000)" : void 0
|
|
368
|
+
})
|
|
369
|
+
})
|
|
370
|
+
}),
|
|
371
|
+
/* @__PURE__ */ k(_, {
|
|
372
|
+
size: "xs",
|
|
373
|
+
c: "dimmed",
|
|
374
|
+
mt: 4,
|
|
375
|
+
children: "You can change the icon later in folder properties."
|
|
376
|
+
})
|
|
377
|
+
] }),
|
|
378
|
+
/* @__PURE__ */ A(g, {
|
|
379
|
+
justify: "flex-end",
|
|
380
|
+
mt: "md",
|
|
381
|
+
children: [/* @__PURE__ */ k(v, {
|
|
382
|
+
variant: "default",
|
|
383
|
+
size: "sm",
|
|
384
|
+
onClick: B,
|
|
385
|
+
leftSection: /* @__PURE__ */ k(Y, {}),
|
|
386
|
+
children: "Cancel"
|
|
387
|
+
}), /* @__PURE__ */ k(v, {
|
|
388
|
+
size: "sm",
|
|
389
|
+
onClick: R,
|
|
390
|
+
leftSection: /* @__PURE__ */ k(X, {}),
|
|
391
|
+
disabled: !L,
|
|
392
|
+
children: "OK"
|
|
393
|
+
})]
|
|
394
|
+
})
|
|
395
|
+
]
|
|
396
|
+
})]
|
|
397
|
+
});
|
|
398
|
+
};
|
|
399
|
+
//#endregion
|
|
400
|
+
export { V as i, W as n, H as r, $ as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`./chunk-CiTBaPhY.cjs`);const e=require(`./CreateItemApp-BU9wmjKM.cjs`);exports.default=e.t;
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
import { r as e } from "./chunk-BQCxAhux.js";
|
|
2
|
+
import { O as t, c as n, l as r, r as i, t as a, x as o } from "./Box-DRm8EabO.js";
|
|
3
|
+
import { t as s } from "./Paper-DtUYKmYn.js";
|
|
4
|
+
import { i as c, o as l, r as u } from "./getRuntime-CCRXVzJH.js";
|
|
5
|
+
import { t as d } from "./Stack-CuDEaP7e.js";
|
|
6
|
+
import { o as f, p } from "./desktopStore-B0R1-BeA.js";
|
|
7
|
+
import { t as m } from "./useAdaptiveDimensions-CunsU0mn.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 @@
|
|
|
1
|
+
require(`./chunk-CiTBaPhY.cjs`);const e=require(`./Box-D_64wv6n.cjs`),t=require(`./Paper-DwCpwWwH.cjs`),n=require(`./getRuntime-BLXyQZBB.cjs`),r=require(`./Stack-BOaJgV3N.cjs`),i=require(`./desktopStore-Cox-Og1z.cjs`),a=require(`./useAdaptiveDimensions-Btp0m5Pm.cjs`);let o=require(`react`),s=require(`react/jsx-runtime`);var c={root:`m_b183c0a2`},l=e.O((t,{color:n})=>({root:{"--code-bg":n?e.x(n,t):void 0}})),u=e.r(t=>{let n=e.l(`Code`,null,t),{classNames:r,className:i,style:a,styles:o,unstyled:u,vars:d,color:f,block:p,mod:m,attributes:h,...g}=n,_=e.c({name:`Code`,props:n,classes:c,className:i,style:a,classNames:r,styles:o,unstyled:u,attributes:h,vars:d,varsResolver:l});return(0,s.jsx)(e.t,{component:p?`pre`:`code`,mod:[{block:p},m],..._(`root`),...g,dir:`ltr`})});u.classes=c,u.varsResolver=l,u.displayName=`@mantine/core/Code`;var d=()=>{let e=window.innerWidth,t=window.matchMedia(`(pointer: coarse)`).matches;return e<i.p.MOBILE||t},f=()=>{let e=window.innerWidth;return e>=i.p.MOBILE&&e<i.p.TABLET},p=()=>window.innerWidth>=i.p.TABLET,m=()=>screen.orientation?screen.orientation.type.includes(`portrait`):window.innerHeight>window.innerWidth;function h(){let[e,t]=(0,o.useState)(()=>({isMobile:d(),isTablet:f(),isDesktop:p(),isPortrait:m(),shouldShowWarning:d()&&m(),screenWidth:window.innerWidth,screenHeight:window.innerHeight})),n=(0,o.useCallback)(()=>{let e=d(),n=m();t({isMobile:e,isTablet:f(),isDesktop:p(),isPortrait:n,shouldShowWarning:e&&n,screenWidth:window.innerWidth,screenHeight:window.innerHeight})},[]);return(0,o.useEffect)(()=>(window.addEventListener(`resize`,n),screen.orientation?.addEventListener?.(`change`,n),()=>{window.removeEventListener(`resize`,n),screen.orientation?.removeEventListener?.(`change`,n)}),[n]),e}var g={container:`_container_1o4i3_1`},_=({window:e,notifyReady:c})=>{let l=h(),d=a.t(),f=i.o(e=>e.viewportWidth),p=i.o(e=>e.viewportHeight),m=i.o(e=>e.setViewportSize);return(0,o.useEffect)(()=>{c?.({})},[c]),(0,o.useEffect)(()=>{let e=()=>{m(window.innerWidth,window.innerHeight)};return e(),window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[m]),(0,s.jsxs)(`div`,{className:g.container,"data-windowid":e?.id,children:[(0,s.jsx)(t.t,{p:`sm`,shadow:`sm`,withBorder:!0,children:(0,s.jsxs)(r.t,{gap:`xs`,children:[(0,s.jsx)(n.o,{fw:`bold`,size:`sm`,children:`Runtime Environment`}),(0,s.jsxs)(n.o,{size:`xs`,children:[(0,s.jsx)(u,{children:`isDocker:`}),` `,String(n.i())]}),(0,s.jsxs)(n.o,{size:`xs`,children:[(0,s.jsx)(u,{children:`isDev:`}),` `,String(n.r())]})]})}),(0,s.jsx)(t.t,{p:`sm`,shadow:`sm`,withBorder:!0,mt:`sm`,children:(0,s.jsxs)(r.t,{gap:`xs`,children:[(0,s.jsx)(n.o,{fw:`bold`,size:`sm`,children:`Device Detection`}),(0,s.jsxs)(n.o,{size:`xs`,children:[(0,s.jsx)(u,{children:`isMobile:`}),` `,String(l.isMobile)]}),(0,s.jsxs)(n.o,{size:`xs`,children:[(0,s.jsx)(u,{children:`isTablet:`}),` `,String(l.isTablet)]}),(0,s.jsxs)(n.o,{size:`xs`,children:[(0,s.jsx)(u,{children:`isDesktop:`}),` `,String(l.isDesktop)]}),(0,s.jsxs)(n.o,{size:`xs`,children:[(0,s.jsx)(u,{children:`isPortrait:`}),` `,String(l.isPortrait)]}),(0,s.jsxs)(n.o,{size:`xs`,children:[(0,s.jsx)(u,{children:`shouldShowWarning:`}),` `,String(l.shouldShowWarning)]}),(0,s.jsxs)(n.o,{size:`xs`,children:[(0,s.jsx)(u,{children:`viewportWidth:`}),` `,f,`px`]}),(0,s.jsxs)(n.o,{size:`xs`,children:[(0,s.jsx)(u,{children:`viewportHeight:`}),` `,p,`px`]}),(0,s.jsxs)(n.o,{size:`xs`,children:[(0,s.jsx)(u,{children:`defaultWidth:`}),` `,d.defaultWidth,`px`]}),(0,s.jsxs)(n.o,{size:`xs`,children:[(0,s.jsx)(u,{children:`defaultHeight:`}),` `,d.defaultHeight,`px`]}),(0,s.jsxs)(n.o,{size:`xs`,children:[(0,s.jsx)(u,{children:`minWidth:`}),` `,d.minWidth,`px`]}),(0,s.jsxs)(n.o,{size:`xs`,children:[(0,s.jsx)(u,{children:`minHeight:`}),` `,d.minHeight,`px`]})]})})]})};Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return _}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`./chunk-CiTBaPhY.cjs`);const e=require(`./DeviceInfoApp-Cdju_LIB.cjs`);exports.default=e.t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`./chunk-CiTBaPhY.cjs`);const e=require(`./Box-D_64wv6n.cjs`),t=require(`./create-safe-context-95P-Bfg3.cjs`),n=require(`./use-resolved-styles-api-AVDygMKo.cjs`),r=require(`./Group-DhwePB84.cjs`),i=require(`./getRuntime-BLXyQZBB.cjs`),a=require(`./useDynamicIcon-SytdL1Tu.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.O((t,{size:n,radius:r,transitionDuration:i})=>({root:{"--progress-size":e.N(n,`progress-size`),"--progress-radius":r===void 0?void 0:e.j(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}});
|