@fde-desktop/fde-core 0.4.10 → 0.4.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AppEmptyState-Boej96TB.js +49 -0
- package/dist/AppEmptyState-CLc00OOG.cjs +1 -0
- package/dist/AppIcon-C8vHUVcb.cjs +1 -0
- package/dist/AppIcon-mtEoyzOb.js +22 -0
- package/dist/AppMenuBar-CAlkNHjj.cjs +1 -0
- package/dist/AppMenuBar-DmSfQRXU.js +197 -0
- package/dist/CalendarApp-DOmjWbpl.js +10 -0
- package/dist/CalendarApp-Z0bCCYsK.cjs +1 -0
- package/dist/ColorPicker-CQRRwY-y.cjs +1 -0
- package/dist/ColorPicker-WCeD3Wjf.js +35 -0
- package/dist/CreateItemApp-BkFFFdX1.cjs +1 -0
- package/dist/CreateItemApp-DR8Y4bwo.js +202 -0
- package/dist/DeviceInfoApp-BXQ9uOwF.cjs +1 -0
- package/dist/DeviceInfoApp-I63mJRWy.js +195 -0
- package/dist/DownloadProgress-CkTGTf0z.cjs +1 -0
- package/dist/DownloadProgress-DnVASsv5.js +39 -0
- package/dist/FilePickerApp-By6-vbag.cjs +1 -0
- package/dist/FilePickerApp-ClHuhm6Z.js +390 -0
- package/dist/FilesApp-BRK2OqkQ.cjs +1 -0
- package/dist/FilesApp-BuoFP_KA.js +212 -0
- package/dist/ImageViewerApp-B1niWF75.cjs +1 -0
- package/dist/{ImageViewerApp-CWiP6zx-.js → ImageViewerApp-iojtyFEf.js} +18 -17
- package/dist/{ImageViewerMenuBar-BULkh_Ku.js → ImageViewerMenuBar-BIsUokxV.js} +15 -14
- package/dist/ImageViewerMenuBar-BgzgSF3v.cjs +1 -0
- package/dist/MenuEditApp-BHptoJbz.cjs +1 -0
- package/dist/MenuEditApp-CJUbJaqh.js +492 -0
- package/dist/MenuEditMenuBar-CCOSPAUe.cjs +1 -0
- package/dist/{MenuEditMenuBar-B94z4Umw.js → MenuEditMenuBar-DnCL-kaZ.js} +13 -12
- package/dist/NotesApp-BmQIBtJ2.cjs +1 -0
- package/dist/NotesApp-DJ2dGt4-.js +364 -0
- package/dist/NotesMenuBar-BzojwMtH.cjs +1 -0
- package/dist/{NotesMenuBar-BB4NkKGf.js → NotesMenuBar-DILZTjnT.js} +10 -9
- package/dist/PdfApp-IjY_GtnW.js +39 -0
- package/dist/PdfApp-krW8UI97.cjs +1 -0
- package/dist/PdfMenuBar-Bd5MTZcZ.js +39 -0
- package/dist/PdfMenuBar-DWD0Qa3F.cjs +1 -0
- package/dist/SettingsApp-BE22l5UP.cjs +1 -0
- package/dist/SettingsApp-BTFtTFY_.js +1228 -0
- package/dist/SettingsMenuBar-CZE2evG2.cjs +1 -0
- package/dist/SettingsMenuBar-ktC0viTd.js +42 -0
- package/dist/UploaderApp-Bboc4KZ1.js +263 -0
- package/dist/UploaderApp-Dr1mF7oj.cjs +1 -0
- package/dist/{VscIcon-DueRJVTe.js → VscIcon-AEENjKOE.js} +1 -1
- package/dist/VscIcon-BYb_Soyy.cjs +1 -0
- package/dist/buildBreadcrumbs-Ccd8i11b.cjs +1 -0
- package/dist/buildBreadcrumbs-noWhu8os.js +45 -0
- package/dist/{desktopStore-B0R1-BeA.js → desktopStore-8cSZlj7s.js} +342 -549
- package/dist/desktopStore-C1jR6Fdb.cjs +1 -0
- package/dist/{imageViewerStore-CJMRXaQh.js → imageViewerStore-COrD02Zu.js} +1 -1
- package/dist/imageViewerStore-Dfylg59V.cjs +1 -0
- package/dist/index.cjs +1 -53
- package/dist/index.css +1 -1
- package/dist/index.d.ts +16 -6
- package/dist/index.js +3033 -7513
- package/dist/menuEditStore-CYwtfD6H.cjs +1 -0
- package/dist/{menuEditStore-C8S_EedM.js → menuEditStore-CxsgLiQu.js} +1 -1
- package/dist/notesStore-CrWTO6oB.cjs +1 -0
- package/dist/{notesStore-DKRgTTFn.js → notesStore-Dgah46U5.js} +1 -1
- package/dist/rolldown-runtime-CAFD8bLK.js +11 -0
- package/dist/{settingsAppStore-KOeWRO6h.js → settingsAppStore-DHZhi6Rl.js} +1 -1
- package/dist/settingsAppStore-DuYZNeFf.cjs +1 -0
- package/dist/useAdaptiveDimensions-3Lz4X0Tc.cjs +1 -0
- package/dist/{useAdaptiveDimensions-CunsU0mn.js → useAdaptiveDimensions-DxNLJ7R5.js} +1 -1
- package/dist/{useCloseInterceptor-CuKAAFnj.js → useCloseInterceptor-CIxhOZx1.js} +12 -12
- package/dist/useCloseInterceptor-CdX-09Ib.cjs +1 -0
- package/dist/useDynamicIcon-CK6SjEv5.cjs +1 -0
- package/dist/{useDynamicIcon-GJg3vWsJ.js → useDynamicIcon-_wGeWu-b.js} +1 -1
- package/dist/useOpenApp-ChDhsL9h.cjs +1 -0
- package/dist/{useOpenApp-BVpSfNrG.js → useOpenApp-uguTLkyl.js} +51 -67
- package/dist/{useResolvedUrl-DFKXq598.js → useResolvedUrl-B6x4xy0x.js} +1 -2
- package/dist/useResolvedUrl-Bb39DpVy.cjs +1 -0
- package/package.json +3 -4
- package/dist/AccordionChevron-CJXAq5o5.js +0 -26
- package/dist/AccordionChevron-DBXp38Lm.cjs +0 -1
- package/dist/ActionIcon-C_SfdBfx.cjs +0 -1
- package/dist/ActionIcon-CtVbYlGY.js +0 -145
- package/dist/AppEmptyState-BTujnL_b.js +0 -4962
- package/dist/AppEmptyState-Dc4GaDfu.cjs +0 -1
- package/dist/AppIcon--qzR4sgf.cjs +0 -1
- package/dist/AppIcon-DCDuaU-t.js +0 -80
- package/dist/AppMenuBar-BiHbNg9V.cjs +0 -9
- package/dist/AppMenuBar-CHJy8OF0.js +0 -2639
- package/dist/Box-DRm8EabO.js +0 -1593
- package/dist/Box-D_64wv6n.cjs +0 -1
- package/dist/Button-D0FXpkur.cjs +0 -1
- package/dist/Button-k7SxX1Xl.js +0 -178
- package/dist/CalendarApp-C1HvuJoa.cjs +0 -1
- package/dist/CalendarApp-DBEQqsS_.js +0 -1721
- package/dist/Center-CyryG5zn.js +0 -25
- package/dist/Center-T4No_FAa.cjs +0 -1
- package/dist/CheckIcon-C3WjIR2i.js +0 -25
- package/dist/CheckIcon-CBMLR6Gc.cjs +0 -1
- package/dist/CodeServerApp-B3l5QPuG.cjs +0 -1
- package/dist/CodeServerApp-BpeALSaX.js +0 -2
- package/dist/CodeServerApp-CRjCngFv.cjs +0 -1
- package/dist/CodeServerApp-DY94cy1a.js +0 -149
- package/dist/ColorPicker-BL4UbKCV.cjs +0 -1
- package/dist/ColorPicker-DvRR-wlQ.js +0 -997
- package/dist/CreateItemApp-BU9wmjKM.cjs +0 -1
- package/dist/CreateItemApp-CtdH1K1g.js +0 -400
- package/dist/CreateItemApp-t9F-a6wD.cjs +0 -1
- package/dist/DeviceInfoApp-C306YvtZ.js +0 -223
- package/dist/DeviceInfoApp-Cdju_LIB.cjs +0 -1
- package/dist/DeviceInfoApp-CyB01v4D.cjs +0 -1
- package/dist/DownloadProgress-IRw1dzLX.cjs +0 -1
- package/dist/DownloadProgress-hdupSUBT.js +0 -174
- package/dist/FileIcon-BCpGMI5U.js +0 -88
- package/dist/FileIcon-BCrsxmtt.cjs +0 -1
- package/dist/FilePickerApp-DMGuvahM.js +0 -409
- package/dist/FilePickerApp-Eu0cr2Cm.cjs +0 -1
- package/dist/FilesApp-BQFVHkEn.js +0 -225
- package/dist/FilesApp-BZ_dzZnF.cjs +0 -1
- package/dist/FilesApp-SIWXFPXt.cjs +0 -1
- package/dist/Group-BzwlMeob.js +0 -48
- package/dist/Group-DhwePB84.cjs +0 -1
- package/dist/ImageViewerApp-BOz59TGc.cjs +0 -1
- package/dist/ImageViewerApp-BeqY6voE.cjs +0 -1
- package/dist/ImageViewerApp-DBAfJPSo.js +0 -2
- package/dist/ImageViewerMenuBar-Cb0Nr5-M.js +0 -2
- package/dist/ImageViewerMenuBar-CoEp0RxK.cjs +0 -1
- package/dist/ImageViewerMenuBar-zOkJtqKo.cjs +0 -1
- package/dist/MenuEditApp-BoKtj2GH.js +0 -2
- package/dist/MenuEditApp-D21sEp86.js +0 -2615
- package/dist/MenuEditApp-k3cPfTG9.cjs +0 -1
- package/dist/MenuEditApp-sz9GlLVH.cjs +0 -5
- package/dist/MenuEditMenuBar-6QxlIDpl.cjs +0 -1
- package/dist/MenuEditMenuBar-Bv6R42lf.js +0 -2
- package/dist/MenuEditMenuBar-CBsmH_-T.cjs +0 -1
- package/dist/NotesApp-BtR55Hva.cjs +0 -207
- package/dist/NotesApp-C59exz_9.js +0 -16154
- package/dist/NotesApp-D47I5LS_.js +0 -2
- package/dist/NotesApp-lOwsi2sg.cjs +0 -1
- package/dist/NotesMenuBar-BZITC74y.cjs +0 -1
- package/dist/NotesMenuBar-Bp0sPqyR.cjs +0 -1
- package/dist/NotesMenuBar-xlfODmMA.js +0 -2
- package/dist/Paper-DtUYKmYn.js +0 -30
- package/dist/Paper-DwCpwWwH.cjs +0 -1
- package/dist/PdfApp-1XbFGfoY.cjs +0 -1
- package/dist/PdfApp-BhIoJWeK.cjs +0 -1
- package/dist/PdfApp-C5Rt1Zaw.js +0 -2
- package/dist/PdfApp-C8Hwxxqh.js +0 -38
- package/dist/PdfMenuBar-BA9rKuMP.cjs +0 -1
- package/dist/PdfMenuBar-JXHqwxhZ.cjs +0 -1
- package/dist/PdfMenuBar-R0fu7oYF.js +0 -2
- package/dist/PdfMenuBar-sd-9Vk3h.js +0 -38
- package/dist/SettingsApp-7EhpjzUE.cjs +0 -1
- package/dist/SettingsApp-ByiPAj1I.cjs +0 -1
- package/dist/SettingsApp-d6fmBHxR.js +0 -1829
- package/dist/SettingsApp-qKJmC0lj.js +0 -2
- package/dist/SettingsMenuBar-BPwv8JQK.js +0 -41
- package/dist/SettingsMenuBar-D8R7hOik.js +0 -2
- package/dist/SettingsMenuBar-DDrjZLmg.cjs +0 -1
- package/dist/SettingsMenuBar-DQjUa8g1.cjs +0 -1
- package/dist/Slider-BNO-vDFn.js +0 -1175
- package/dist/Slider-Bg_EIBg6.cjs +0 -1
- package/dist/Stack-BOaJgV3N.cjs +0 -1
- package/dist/Stack-CuDEaP7e.js +0 -34
- package/dist/StorybookApp-Bkr-7mXp.cjs +0 -1
- package/dist/StorybookApp-WYninkJo.js +0 -10
- package/dist/TerminalApp-8XbsKAWa.js +0 -10041
- package/dist/TerminalApp-Bq2e7QQu.cjs +0 -1
- package/dist/TerminalApp-CVu3Axc9.js +0 -2
- package/dist/TerminalApp-b7_d0jRO.cjs +0 -36
- package/dist/TerminalMenuBar-Cb8x9laS.js +0 -2
- package/dist/TerminalMenuBar-De-FH5AE.cjs +0 -1
- package/dist/TerminalMenuBar-iKLydNda.js +0 -112
- package/dist/TerminalMenuBar-yOaWd-hn.cjs +0 -1
- package/dist/TextInput-C3qfxxWI.js +0 -980
- package/dist/TextInput-DcYns3hz.cjs +0 -1
- package/dist/Tooltip-CAOO-qdx.js +0 -3185
- package/dist/Tooltip-DDh_x-CB.cjs +0 -1
- package/dist/UnstyledButton-CI3kyRck.js +0 -25
- package/dist/UnstyledButton-Cl5RuIid.cjs +0 -1
- package/dist/UploaderApp-C76ydsd8.js +0 -487
- package/dist/UploaderApp-CHACW8Yr.js +0 -2
- package/dist/UploaderApp-Q_a3mBik.cjs +0 -1
- package/dist/UploaderApp-htj59ppo.cjs +0 -1
- package/dist/VscIcon-CxEmqD80.cjs +0 -1
- package/dist/chunk-BQCxAhux.js +0 -23
- package/dist/chunk-CiTBaPhY.cjs +0 -1
- package/dist/create-safe-context-95P-Bfg3.cjs +0 -1
- package/dist/create-safe-context-XT2cxc14.js +0 -12
- package/dist/desktopStore-Cox-Og1z.cjs +0 -1
- package/dist/fc-DejOsQyD.cjs +0 -1
- package/dist/fc-kd8WzIER.js +0 -20536
- package/dist/fc-xJ_v2ayq.cjs +0 -184
- package/dist/fi-BahYsbim.js +0 -9993
- package/dist/fi-BkhyTcZo.cjs +0 -1
- package/dist/getRuntime-BLXyQZBB.cjs +0 -1
- package/dist/getRuntime-CCRXVzJH.js +0 -63
- package/dist/iconBase-B4UCuSvv.cjs +0 -1
- package/dist/iconBase-D7iPes7B.js +0 -108
- package/dist/imageViewerStore-CH1qW6md.cjs +0 -1
- package/dist/is-element-BocgicRg.cjs +0 -1
- package/dist/is-element-Bu_JY8Qy.js +0 -7
- package/dist/menuEditStore-CU7IAg3L.cjs +0 -1
- package/dist/notesStore-zKmChTfF.cjs +0 -1
- package/dist/react-DYmzHD0X.js +0 -27
- package/dist/react-Dldg32sN.cjs +0 -1
- package/dist/settingsAppStore-BrlImdAH.cjs +0 -1
- package/dist/terminalStore-LWWjCvCe.js +0 -30
- package/dist/terminalStore-fZe5t7Ty.cjs +0 -1
- package/dist/use-merged-ref-BI9n1hUK.cjs +0 -1
- package/dist/use-merged-ref-BT8_u6vW.js +0 -25
- package/dist/use-resolved-styles-api-AVDygMKo.cjs +0 -1
- package/dist/use-resolved-styles-api-pEOi2wiK.js +0 -21
- package/dist/use-uncontrolled-A4hm9ATM.js +0 -23
- package/dist/use-uncontrolled-BPrfGv0W.cjs +0 -1
- package/dist/useAdaptiveDimensions-Btp0m5Pm.cjs +0 -1
- package/dist/useCloseInterceptor-a_6Lcuqj.cjs +0 -1
- package/dist/useDynamicIcon-SytdL1Tu.cjs +0 -1
- package/dist/useOpenApp-Br0jo4-y.cjs +0 -1
- package/dist/useResolvedUrl-Be5ZlCX7.cjs +0 -1
- package/dist/useTranslation-DMRGdqZi.js +0 -279
- package/dist/useTranslation-D_O7S4RJ.cjs +0 -1
- package/dist/vsc-Ciibqbxo.cjs +0 -1
- package/dist/vsc-DGKSpOAR.js +0 -9574
- /package/dist/{Colors-BxX4G8kX.cjs → Colors-CNJbU7oq.cjs} +0 -0
- /package/dist/{Colors-hca6raEG.js → Colors-CuABn2W4.js} +0 -0
- /package/dist/{useMenuBarUtils-ChmpZjwu.js → useMenuBarUtils-ChAfI7OA.js} +0 -0
- /package/dist/{useMenuBarUtils-Bp5PiztD.cjs → useMenuBarUtils-DAap0ukp.cjs} +0 -0
|
@@ -1 +0,0 @@
|
|
|
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}});
|
|
@@ -1,400 +0,0 @@
|
|
|
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 };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require(`./chunk-CiTBaPhY.cjs`);const e=require(`./CreateItemApp-BU9wmjKM.cjs`);exports.default=e.t;
|
|
@@ -1,223 +0,0 @@
|
|
|
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 };
|
|
@@ -1 +0,0 @@
|
|
|
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 _}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require(`./chunk-CiTBaPhY.cjs`);const e=require(`./DeviceInfoApp-Cdju_LIB.cjs`);exports.default=e.t;
|
|
@@ -1 +0,0 @@
|
|
|
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}});
|