efficient-shell 12.4.1 → 12.7.0
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/README.md +5 -5
- package/dist/{Browser-24JRQIPQ.js → Browser-AKBOECNB.js} +14 -14
- package/dist/{Calculator-AHBFZ4EN.js → Calculator-OJLVM42W.js} +22 -22
- package/dist/{CurrencyConverter-PZYRBADV.js → CurrencyConverter-UVOKFPMG.js} +7 -7
- package/dist/{Files-AZ4Q4LMK.js → Files-CRQDRSFS.js} +88 -88
- package/dist/{Notepad-UPHHH3YU.js → Notepad-P6JFXK3G.js} +9 -9
- package/dist/{PomodoroTimer-WGN2KNSB.js → PomodoroTimer-UOV4CCYH.js} +63 -63
- package/dist/{Preview-K4TNRLKM.js → Preview-XF5FKLVZ.js} +17 -17
- package/dist/{Stock-5GEEDQVT.js → Stock-6D4I2EWM.js} +3 -3
- package/dist/{Weather-WMQQXWHH.js → Weather-BCOAQJDT.js} +17 -17
- package/dist/{WorldClock-IK3WTHVW.js → WorldClock-WX3O3EDU.js} +5 -5
- package/dist/apps/index.js +1 -1
- package/dist/bin/media-host-check.js +1 -1
- package/dist/bin/ui-check.js +1 -1
- package/dist/{chunk-NIBE57KV.js → chunk-2HZQZTW5.js} +1 -1
- package/dist/{chunk-LCC3NXQX.js → chunk-34SPT4I6.js} +6 -6
- package/dist/chunk-6EHPEBGP.js +5 -0
- package/dist/chunk-AHJAJLSK.js +99 -0
- package/dist/{chunk-WUGQAZMC.js → chunk-EZPSNUYR.js} +4 -4
- package/dist/{chunk-VWQNCYGQ.js → chunk-MM5AFQ24.js} +8 -8
- package/dist/{chunk-ZB2H2JJ2.js → chunk-NC36LJCA.js} +4 -4
- package/dist/{chunk-CURXYF2R.js → chunk-PM4Y2FMQ.js} +3 -3
- package/dist/chunk-PWYLGTZS.js +1 -0
- package/dist/{chunk-EF3NPTHG.js → chunk-QNYZTD7V.js} +1 -1
- package/dist/{chunk-CAXOKGMB.js → chunk-SCU2CWNJ.js} +11 -11
- package/dist/chunk-SZT72QMD.js +28 -0
- package/dist/chunk-TX5FZBPQ.js +4 -0
- package/dist/chunk-UVGEOQI4.js +13 -0
- package/dist/{chunk-AAIUJJDQ.js → chunk-WVHGHMW3.js} +1 -1
- package/dist/{chunk-5HJIFCDQ.js → chunk-ZKQWS2ML.js} +3 -3
- package/dist/data/EntityList.d.ts +4 -0
- package/dist/data/EntityList.js +1 -1
- package/dist/data/ListFooter.d.ts +7 -12
- package/dist/data/ListFooter.js +1 -1
- package/dist/format/index.js +1 -1
- package/dist/forms/BrandAssetEditor.js +1 -1
- package/dist/forms/LinkPicker.js +1 -1
- package/dist/forms/MediaLibrary.js +1 -1
- package/dist/forms/MediaUploadField.js +1 -1
- package/dist/index.d.ts +28 -6
- package/dist/index.js +530 -531
- package/dist/page-tabs/index.js +5 -5
- package/dist/shell/ConfirmDialog.js +1 -1
- package/dist/shell/Dialog.js +1 -1
- package/dist/shell/Drawer.js +1 -1
- package/dist/shell/LanguageSelect.js +1 -1
- package/dist/shell/SettingRow.js +1 -1
- package/dist/shell/discardGuard.js +1 -1
- package/dist/telemetry/index.js +1 -1
- package/dist/ui/index.js +1 -1
- package/dist/version.js +1 -1
- package/package.json +4 -4
- package/dist/chunk-4H5NTMOF.js +0 -4
- package/dist/chunk-C4IJONGO.js +0 -1
- package/dist/chunk-I5CSYOOZ.js +0 -28
- package/dist/chunk-PMJMYH5O.js +0 -5
- package/dist/chunk-UWF45S5L.js +0 -99
- package/dist/chunk-VIOILTE4.js +0 -13
- /package/dist/{chunk-2762IAB7.js → chunk-7B5KFESH.js} +0 -0
|
@@ -1,121 +1,121 @@
|
|
|
1
|
-
import{openPreviewFile as e}from"./chunk-54K2ADBT.js";import{SidebarLayout as t}from"./chunk-RFKCSRJX.js";import"./chunk-QWK6DRSN.js";import"./chunk-KUEYOJBN.js";import{SearchableSelect as n}from"./chunk-C57PNNAW.js";import{Breadcrumbs as a}from"./chunk-PT77FC5X.js";import{Select_default as r}from"./chunk-UDVQORQM.js";import"./chunk-EO5RLFRX.js";import"./chunk-7HIHQR3X.js";import"./chunk-2NMW66P5.js";import"./chunk-GZQD6IBV.js";import"./chunk-YZR4T5FZ.js";import"./chunk-EB2UE6ZR.js";import{IconButton_default as i}from"./chunk-UGOJLNYR.js";import"./chunk-AYZY3YNC.js";import{formatBytes as s}from"./chunk-GEYM4WN3.js";import"./chunk-Y3JW2GW5.js";import"./chunk-36BRD5J3.js";import"./chunk-LF27WIN2.js";import{getFilesDemoTree as l}from"./chunk-6DZGOGB2.js";import{AboutApp as o}from"./chunk-
|
|
2
|
-
return
|
|
3
|
-
/* @__PURE__ */
|
|
1
|
+
import{openPreviewFile as e}from"./chunk-54K2ADBT.js";import{SidebarLayout as t}from"./chunk-RFKCSRJX.js";import"./chunk-QWK6DRSN.js";import"./chunk-KUEYOJBN.js";import{SearchableSelect as n}from"./chunk-C57PNNAW.js";import{Breadcrumbs as a}from"./chunk-PT77FC5X.js";import{Select_default as r}from"./chunk-UDVQORQM.js";import"./chunk-EO5RLFRX.js";import"./chunk-7HIHQR3X.js";import"./chunk-2NMW66P5.js";import"./chunk-GZQD6IBV.js";import"./chunk-YZR4T5FZ.js";import"./chunk-EB2UE6ZR.js";import{IconButton_default as i}from"./chunk-UGOJLNYR.js";import"./chunk-AYZY3YNC.js";import{formatBytes as s}from"./chunk-GEYM4WN3.js";import"./chunk-Y3JW2GW5.js";import"./chunk-36BRD5J3.js";import"./chunk-LF27WIN2.js";import{getFilesDemoTree as l}from"./chunk-6DZGOGB2.js";import{AboutApp as o}from"./chunk-ZKQWS2ML.js";import{getFilesStore as c,peekFilesViewRequest as d,consumeFilesViewRequest as h,FILES_SHOW_TRASH_EVENT as m,FILES_OPEN_DESKTOP_FOLDER_EVENT as p,subscribeDesktopFolders as u,getDesktopFoldersSnapshot as f,hasHostFilesStore as x,FolderGlyph as k,DesktopItemMiniIcon as g,desktopItemTypeLabel as N,FilesQuotaError as w}from"./chunk-OY3JH66O.js";import"./chunk-ESL5TDNA.js";import{useWindowManager as b,WindowTitle as v}from"./chunk-AHJAJLSK.js";import"./chunk-4LXCCZDM.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-Y4RERPFN.js";import"./chunk-5A7MWTXX.js";import"./chunk-ZDMZM7HD.js";import"./chunk-HE767CVB.js";import{confirm as y,prompt as j}from"./chunk-SCU2CWNJ.js";import{Dialog as C}from"./chunk-6EHPEBGP.js";import{ItemCount as D}from"./chunk-N7JX27JE.js";import"./chunk-3DVNXNTF.js";import"./chunk-7B5KFESH.js";import"./chunk-VWGWZY7A.js";import"./chunk-7QSDPSXP.js";import"./chunk-5JUG74UR.js";import"./chunk-SCGBCBXP.js";import"./chunk-F3ZOO23R.js";import"./chunk-2QY5BJLA.js";import"./chunk-UGTRSRIW.js";import"./chunk-KC3EX26K.js";import"./chunk-PWYLGTZS.js";import"./chunk-CDAJKLGL.js";import"./chunk-JPNAEN53.js";import"./chunk-IFQXTIMY.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import{Button_default as L}from"./chunk-UJJXWLHE.js";import"./chunk-XWFLIGDQ.js";import{Icon as W}from"./chunk-UIWGVOFH.js";import"./chunk-J75ZT2JQ.js";import{LoadingSpinner as E}from"./chunk-R2VKEMZH.js";import{TH_ONE_LINE as T}from"./chunk-CJH2BGXY.js";import"./chunk-QQ2LDC6C.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-STKJA4PV.js";import{toast_default as $}from"./chunk-TRWHVG3A.js";import"./chunk-UQYNPYF4.js";import"./chunk-MRJKZWWV.js";import"./chunk-TWVUQUUD.js";import"./chunk-5FYDNH4Y.js";import"./chunk-LNXBTK7Q.js";import"./chunk-43MCNASD.js";import"./chunk-C3QOHMR6.js";import{useState as R,useEffect as F,useSyncExternalStore as P,useRef as S,useCallback as A}from"react";import{jsxs as M,jsx as J,Fragment as U}from"react/jsx-runtime";var B=[{value:"viewer",label:"Viewer"},{value:"editor",label:"Editor"}];function G({store:e,entry:t,onClose:a,onChanged:s}){const[l,o]=R(null),[c,d]=R(""),[h,m]=R([]),[p,u]=R(!1),[f,x]=R(""),[k,g]=R("viewer"),[N,w]=R(!1),b=S(/* @__PURE__ */new Map),v=t?.id??null;if(F(()=>{if(o(null),x(""),d(""),!v||!e.shares)return;let t=!0;return e.shares(v).then(e=>{t&&o(e)}).catch(e=>{t&&($.error(e.message),o([]))}),()=>{t=!1}},[v,e]),F(()=>{if(!e.searchPeople||!v)return;let t=!0;u(!0);const n=setTimeout(()=>{e.searchPeople(c).then(e=>{if(t){for(const t of e)b.current.set(t.id,t);m(e)}}).catch(()=>{t&&m([])}).finally(()=>{t&&u(!1)})},250);return()=>{t=!1,clearTimeout(n)}},[c,v,e]),!t)return null;const y=new Set((l??[]).map(e=>e.person.id)),j=h.filter(e=>!y.has(e.id)).map(e=>({value:e.id,label:e.name})),D=async n=>{w(!0);try{await n(),o(await e.shares(t.id)),s()}catch(e){$.error(e.message)}finally{w(!1)}};/* @__PURE__ */
|
|
2
|
+
return M(C,{open:!0,onClose:a,size:"md",title:`Share “${t.name}”`,description:"folder"===t.kind?"Everything inside this folder is shared too. Editors’ uploads count toward your quota.":"Viewers can open and download it. Editors can also replace, rename and delete it.",footer:/* @__PURE__ */J(L,{variant:"secondary",onClick:a,children:"Done"}),children:[
|
|
3
|
+
/* @__PURE__ */M("div",{className:"flex items-center gap-2",children:[
|
|
4
4
|
/* @__PURE__ */J("div",{className:"min-w-0 flex-1",children:/* @__PURE__ */J(n,{value:f,onChange:x,onSearchChange:d,loading:p&&0===h.length,options:j,placeholder:"Search colleagues by name","aria-label":"Colleague to share with"})}),
|
|
5
|
-
/* @__PURE__ */J("div",{className:"w-28 shrink-0",children:/* @__PURE__ */J(r,{value:k,onChange:e=>g(e),options:
|
|
6
|
-
/* @__PURE__ */J(L,{variant:"primary",onClick:()=>{if(!f||!e.share)return;const n=b.current.get(f);D(async()=>{await e.share(t.id,f,k),x(""),d(""),n
|
|
7
|
-
/* @__PURE__ */J("div",{className:"mt-4 mb-1 text-2xs font-semibold uppercase tracking-wide text-ink-faintest",children:"Who has access"}),null===l?/* @__PURE__ */J(
|
|
8
|
-
/* @__PURE__ */
|
|
5
|
+
/* @__PURE__ */J("div",{className:"w-28 shrink-0",children:/* @__PURE__ */J(r,{value:k,onChange:e=>g(e),options:B,"aria-label":"Access"})}),
|
|
6
|
+
/* @__PURE__ */J(L,{variant:"primary",onClick:()=>{if(!f||!e.share)return;const n=b.current.get(f);D(async()=>{await e.share(t.id,f,k),x(""),d(""),n&&$.success(`Shared with ${n.name}`)})},disabled:!f||N,children:"Add"})]}),
|
|
7
|
+
/* @__PURE__ */J("div",{className:"mt-4 mb-1 text-2xs font-semibold uppercase tracking-wide text-ink-faintest",children:"Who has access"}),null===l?/* @__PURE__ */J(E,{size:"sm",padding:"p-4",label:"Loading"}):/* @__PURE__ */M("ul",{className:"divide-y divide-line-subtle text-sm",children:[
|
|
8
|
+
/* @__PURE__ */M("li",{className:"flex items-center gap-2 h-10",children:[
|
|
9
9
|
/* @__PURE__ */J("span",{className:"flex-1 truncate",children:"You"}),
|
|
10
|
-
/* @__PURE__ */J("span",{className:"text-xs text-ink-faint",children:"Owner"})]}),l.map(n=>/* @__PURE__ */
|
|
10
|
+
/* @__PURE__ */J("span",{className:"text-xs text-ink-faint",children:"Owner"})]}),l.map(n=>/* @__PURE__ */M("li",{className:"flex items-center gap-2 h-10",children:[
|
|
11
11
|
/* @__PURE__ */J("span",{className:"flex-1 truncate",title:n.person.name,children:n.person.name}),
|
|
12
|
-
/* @__PURE__ */J("div",{className:"w-28 shrink-0",children:/* @__PURE__ */J(r,{value:n.role,onChange:a=>D(()=>e.share(t.id,n.person.id,a)),options:
|
|
13
|
-
/* @__PURE__ */J(i,{"aria-label":`Remove ${n.person.name}`,variant:"ghost",size:"sm",disabled:N,onClick:()=>D(()=>e.unshare(t.id,n.person.id)),children:/* @__PURE__ */J(
|
|
14
|
-
return
|
|
12
|
+
/* @__PURE__ */J("div",{className:"w-28 shrink-0",children:/* @__PURE__ */J(r,{value:n.role,onChange:a=>D(()=>e.share(t.id,n.person.id,a)),options:B,"aria-label":`Access for ${n.person.name}`,disabled:N})}),
|
|
13
|
+
/* @__PURE__ */J(i,{"aria-label":`Remove ${n.person.name}`,variant:"ghost",size:"sm",disabled:N,onClick:()=>D(()=>e.unshare(t.id,n.person.id)),children:/* @__PURE__ */J(W,{name:"close",className:"h-4 w-4",strokeWidth:1.8})})]},n.person.id))]})]})}var H={pdf:"pdf",dxf:"dxf",csv:"csv",jpg:"image",jpeg:"image",png:"image",gif:"image",webp:"image",svg:"image",avif:"image",bmp:"image",stp:"3d",step:"3d",stl:"3d",obj:"3d",gltf:"3d",glb:"3d","3mf":"3d",iges:"3d",igs:"3d",ply:"3d",fbx:"3d"};function Y(e){if(!e)return"—";try{const t=new Date(e);return isNaN(t.getTime())?"—":t.toLocaleString(void 0,{dateStyle:"short",timeStyle:"short"})}catch{return e}}function O(e,t){return`Not enough space for “${e}” (${s(t.attempted)}). You've used ${s(t.used)} of ${s(t.limit)}. Empty Trash or ask an administrator for more space.`}var V=(e,t)=>e instanceof Error&&e.message||t;function Q(){const n=c(),r=null!==l(),i=!r&&!!n.shares&&!!n.sharedWithMe,[C,L]=R(null),[B,Q]=R(null),[I,K]=R([]),[X,z]=R([]),[Z,q]=R(null),[_,ee]=R(!0),[te,ne]=R(!1),[ae,re]=R(null),[ie,se]=R(!1),[le,oe]=R(null),[ce,de]=R(()=>{const e=d();return"trash"===e?"trash":e?{desktopFolderId:e.folderId}:"files"});F(()=>{h()},[]);const[he,me]=R([]);F(()=>{const e=()=>{h(),de("trash")},t=e=>{h();const t=e.detail?.folderId;t&&de({desktopFolderId:t})};return window.addEventListener(m,e),window.addEventListener(p,t),()=>{window.removeEventListener(m,e),window.removeEventListener(p,t)}},[]);const pe=P(u,f,f),ue="object"==typeof ce?ce.desktopFolderId:null,fe=ue?pe?.folders.find(e=>e.id===ue)??null:null,xe=ue&&pe?.itemsByFolder[ue]||[];F(()=>{ue&&pe&&!pe.folders.some(e=>e.id===ue)&&de("files")},[ue,pe]);const ke=S(0),ge=S(null),{openPage:Ne,openEntity:we}=b(),be=t=>{"preview-file"===t.entityType&&t.filePath&&t.fileKind?e({filePath:t.filePath,filename:t.label,kind:t.fileKind,onStaged:e=>Ne(e)}):"page"===t.entityType?Ne(t.entityId):we(t.entityType,t.entityId,null,t.label)},ve=A(async()=>{if(!r)try{re(await n.quota())}catch{}},[n,r]),ye=A(async e=>{if(q(null),r){const t=function(e){const t=e??"/",n=t.split("/").filter(Boolean);let a=l()??[];for(const e of n){const t=a.find(t=>"folder"===t.kind&&t.name===e);a=t?.children??[]}return{folder:{id:e,name:n[n.length-1]??"",role:"owner",path:[{id:null,name:""},...n.map((e,t)=>({id:"/"+n.slice(0,t+1).join("/"),name:e}))]},entries:a.map(e=>({id:("/"===t?"":t)+"/"+e.name,name:e.name,kind:e.kind,size:e.size??0,modifiedAt:e.modifiedAt??""}))}}(e);return Q(t),ne(!1),ee(!1),void(null===e&&K(t.entries.filter(e=>"folder"===e.kind)))}ee(!0);try{const t=await n.list(e);Q(t),ne(!1),null===e&&K(t.entries.filter(e=>"folder"===e.kind))}catch(e){e instanceof TypeError?ne(!0):$.error(V(e,"Failed to list"))}finally{ee(!1)}ve()},[n,ve,r]),je=A(async()=>{if(n.sharedWithMe){ee(!0),q(null);try{z(await n.sharedWithMe()),ne(!1)}catch(e){e instanceof TypeError?ne(!0):$.error(V(e,"Failed to list shared files"))}finally{ee(!1)}}},[n]),Ce=A(async()=>{if(r)return me([]),void ee(!1);ee(!0),q(null);try{me(await n.trash()),ne(!1)}catch(e){e instanceof TypeError?ne(!0):$.error(V(e,"Failed to list trash"))}finally{ee(!1)}ve()},[n,ve,r]),De=()=>{"files"===ce?ye(C):"shared"===ce?je():"trash"===ce&&Ce()};F(()=>{De()},[C,ce]);const Le=e=>{de("files"),L(e)},We=async(e,t)=>{try{await e()}catch(e){$.error(V(e,t))}De()},Ee=async e=>{try{const t=await n.read(e.id),a=URL.createObjectURL(t),r=document.createElement("a");r.href=a,r.download=e.name,r.click(),setTimeout(()=>URL.revokeObjectURL(a),1e3)}catch(e){$.error(V(e,"Download failed"))}},Te=async e=>{for(const t of Array.from(e))try{await n.upload(C,t)}catch(e){e instanceof w?$.error(O(t.name,e)):$.error(`Upload ${t.name}: ${V(e,"failed")}`)}ye(C)},$e=()=>{ke.current=0,se(!1)};if(F(()=>{const e=()=>$e();return window.addEventListener("dragend",e),window.addEventListener("drop",e),()=>{window.removeEventListener("dragend",e),window.removeEventListener("drop",e)}},[]),te)/* @__PURE__ */
|
|
14
|
+
return M("div",{className:"flex flex-col h-full bg-surface",children:[
|
|
15
15
|
/* @__PURE__ */J(v,{title:"Files - offline"}),
|
|
16
|
-
/* @__PURE__ */J("div",{className:"flex-1 flex items-center justify-center p-8 text-center",children:/* @__PURE__ */
|
|
17
|
-
/* @__PURE__ */J(
|
|
16
|
+
/* @__PURE__ */J("div",{className:"flex-1 flex items-center justify-center p-8 text-center",children:/* @__PURE__ */M("div",{className:"max-w-md",children:[
|
|
17
|
+
/* @__PURE__ */J(W,{name:"close-circle",className:"h-12 w-12 mx-auto text-ink-faintest mb-3",strokeWidth:1.4}),x()?/* @__PURE__ */M(U,{children:[
|
|
18
18
|
/* @__PURE__ */J("h3",{className:"text-base font-semibold text-ink-strong mb-1",children:"Can't reach your files"}),
|
|
19
|
-
/* @__PURE__ */J("p",{className:"text-sm text-ink-faint mb-3",children:"Check your connection and try again."})]}):/* @__PURE__ */
|
|
19
|
+
/* @__PURE__ */J("p",{className:"text-sm text-ink-faint mb-3",children:"Check your connection and try again."})]}):/* @__PURE__ */M(U,{children:[
|
|
20
20
|
/* @__PURE__ */J("h3",{className:"text-base font-semibold text-ink-strong mb-1",children:"Can't reach the file server"}),
|
|
21
|
-
/* @__PURE__ */
|
|
21
|
+
/* @__PURE__ */M("p",{className:"text-sm text-ink-faint mb-3",children:["No response from the file server. Make sure the server is running — see ",
|
|
22
22
|
/* @__PURE__ */J("span",{className:"font-mono",children:"examples/file-server/README.md"}),"."]})]}),
|
|
23
|
-
/* @__PURE__ */J("button",{onClick:De,className:"px-3 h-8 text-sm bg-accent-fill text-on-accent rounded hover:bg-accent-fill-hover",children:"Retry"})]})})]});const Re="files"===ce?
|
|
23
|
+
/* @__PURE__ */J("button",{onClick:De,className:"px-3 h-8 text-sm bg-accent-fill text-on-accent rounded hover:bg-accent-fill-hover",children:"Retry"})]})})]});const Re="files"===ce?B?.folder??null:null,Fe=Re?.role??"owner",Pe="owner"!==Fe,Se=!r&&"files"===ce&&"viewer"!==Fe,Ae="files"===ce?B?.entries??[]:[],Me=ae&&ae.limit>0?Math.min(100,Math.round(ae.used/ae.limit*100)):0,Je=Me>90?"bg-danger":Me>75?"bg-warning":"bg-accent-fill",Ue=(Re?.path??[]).filter(e=>null!==e.id),Be=[Pe?{label:"Shared with me",onClick:()=>de("shared")}:{label:"My files",onClick:()=>Le(null)},...Ue.map(e=>({label:e.name,onClick:()=>Le(e.id)}))],Ge=Ue.length>1?Ue[Ue.length-2].id:null,He=e=>"flex w-full items-center gap-2 rounded-md px-3 min-h-(--row-height-menu) py-2 text-left text-sm transition-colors "+(e?"bg-accent-tint font-medium text-accent-text":"text-ink hover:bg-row-hover"),Ye=e=>/* @__PURE__ */J("svg",{className:"h-4 w-4 shrink-0 text-ink-faintest",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.6,children:/* @__PURE__ */J("path",{strokeLinecap:"round",strokeLinejoin:"round",d:e})}),Oe=/* @__PURE__ */M("nav",{className:"p-2",children:[
|
|
24
24
|
/* @__PURE__ */J("div",{className:"px-2 py-2 text-2xs font-semibold uppercase tracking-wide text-ink-faintest",children:"Locations"}),
|
|
25
|
-
/* @__PURE__ */
|
|
26
|
-
/* @__PURE__ */J("span",{className:"truncate",children:e.name})]},e.id)),i&&/* @__PURE__ */
|
|
27
|
-
/* @__PURE__ */J(
|
|
28
|
-
/* @__PURE__ */J("div",{className:"px-2 pt-3 pb-2 text-2xs font-semibold uppercase tracking-wide text-ink-faintest",children:"Desktop"}),pe.folders.map(e=>/* @__PURE__ */
|
|
25
|
+
/* @__PURE__ */M("button",{onClick:()=>Le(null),className:He("files"===ce&&null===C),children:[Ye("M2.25 12l8.954-8.955a1.5 1.5 0 012.122 0L21.75 12M4.5 9.75v9.75a.75.75 0 00.75.75H9V15a.75.75 0 01.75-.75h4.5A.75.75 0 0115 15v5.25h3.75a.75.75 0 00.75-.75V9.75"),"My files"]}),I.map(e=>/* @__PURE__ */M("button",{onClick:()=>Le(e.id),className:He("files"===ce&&C===e.id),children:[Ye("M2.25 12.75V12A2.25 2.25 0 014.5 9.75h15A2.25 2.25 0 0121.75 12v.75m-8.69-6.44l-2.12-2.12a1.5 1.5 0 00-1.061-.44H4.5A2.25 2.25 0 002.25 6v12a2.25 2.25 0 002.25 2.25h15A2.25 2.25 0 0021.75 18V9a2.25 2.25 0 00-2.25-2.25h-5.379a1.5 1.5 0 01-1.06-.44z"),
|
|
26
|
+
/* @__PURE__ */J("span",{className:"truncate",children:e.name})]},e.id)),i&&/* @__PURE__ */M("button",{onClick:()=>de("shared"),className:He("shared"===ce||"files"===ce&&Pe),children:[
|
|
27
|
+
/* @__PURE__ */J(W,{name:"team",className:"h-4 w-4 shrink-0 text-ink-faintest",strokeWidth:1.6}),"Shared with me"]}),!r&&/* @__PURE__ */M("button",{onClick:()=>de("trash"),className:He("trash"===ce),children:[Ye("M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79"),"Trash"]}),pe&&pe.folders.length>0&&/* @__PURE__ */M(U,{children:[
|
|
28
|
+
/* @__PURE__ */J("div",{className:"px-2 pt-3 pb-2 text-2xs font-semibold uppercase tracking-wide text-ink-faintest",children:"Desktop"}),pe.folders.map(e=>/* @__PURE__ */M("button",{onClick:()=>de({desktopFolderId:e.id}),className:He(ue===e.id),children:[
|
|
29
29
|
/* @__PURE__ */J(k,{className:"h-4 w-4 shrink-0 text-amber-500"}),
|
|
30
30
|
/* @__PURE__ */J("span",{className:"truncate",children:e.name}),
|
|
31
|
-
/* @__PURE__ */J(D,{count:e.itemCount,active:ue===e.id,className:"ml-auto"})]},e.id))]})]}),
|
|
32
|
-
return
|
|
33
|
-
/* @__PURE__ */J(v,{title:
|
|
31
|
+
/* @__PURE__ */J(D,{count:e.itemCount,active:ue===e.id,className:"ml-auto"})]},e.id))]})]}),Ve=e=>/* @__PURE__ */J(W,"folder"===e?{name:"folder",look:"solid",className:"h-4 w-4 text-amber-500 shrink-0"}:{name:"page",className:"h-4 w-4 text-ink-faintest shrink-0",strokeWidth:1.5}),Qe="px-2 py-0.5 rounded hover:bg-row-hover text-ink-faint text-2xs ml-1",Ie=t=>{"folder"===t.kind?Le(t.id):(async t=>{if(r)return;if(n.open?.(t))return;const a=(t.name.split(".").pop()||"").toLowerCase(),i=H[a];i?await e({filePath:n.shortcutPath?.(t.id)??t.id,filename:t.name,kind:i,load:()=>n.read(t.id),onStaged:e=>Ne(e)}):Ee(t)})(t)},Ke=fe?`Files - ${fe.name}`:"shared"===ce?"Files - Shared with me":"trash"===ce?"Files - Trash":Re&&null!==Re.id?`Files - ${Re.name}`:"Files";/* @__PURE__ */
|
|
32
|
+
return M("div",{className:"relative flex flex-col h-full bg-surface",onDragEnter:e=>{Se&&e.dataTransfer?.types?.includes?.("Files")&&(e.preventDefault(),ke.current++,ie||se(!0))},onDragOver:e=>{e.dataTransfer?.types?.includes?.("Files")&&e.preventDefault()},onDragLeave:()=>{ke.current>0&&ke.current--,0===ke.current&&se(!1)},onDrop:e=>{e.preventDefault(),$e(),Se&&e.dataTransfer.files?.length&&Te(e.dataTransfer.files)},children:[
|
|
33
|
+
/* @__PURE__ */J(v,{title:Ke}),
|
|
34
34
|
/* @__PURE__ */J(o,{app:"files"}),
|
|
35
|
-
/* @__PURE__ */J("input",{ref:ge,type:"file",multiple:!0,className:"hidden",onChange:e=>{e.target.files?.length&&
|
|
36
|
-
/* @__PURE__ */J("div",{className:"flex-1 min-h-0",children:/* @__PURE__ */J(t,{sidebar:
|
|
37
|
-
/* @__PURE__ */
|
|
38
|
-
/* @__PURE__ */J("button",{onClick:()=>{Pe&&
|
|
39
|
-
/* @__PURE__ */
|
|
40
|
-
/* @__PURE__ */J("div",{className:"min-w-0 flex-1",children:/* @__PURE__ */J(a,{items:
|
|
41
|
-
/* @__PURE__ */J(
|
|
42
|
-
/* @__PURE__ */J("button",{onClick:De,className:"px-2 py-1 rounded hover:bg-row-hover text-ink-muted",title:"Refresh",children:/* @__PURE__ */J(
|
|
43
|
-
/* @__PURE__ */J(
|
|
44
|
-
/* @__PURE__ */
|
|
45
|
-
/* @__PURE__ */J(
|
|
46
|
-
/* @__PURE__ */
|
|
47
|
-
/* @__PURE__ */J(
|
|
48
|
-
/* @__PURE__ */J(
|
|
35
|
+
/* @__PURE__ */J("input",{ref:ge,type:"file",multiple:!0,className:"hidden",onChange:e=>{e.target.files?.length&&Te(e.target.files),ge.current&&(ge.current.value="")}}),
|
|
36
|
+
/* @__PURE__ */J("div",{className:"flex-1 min-h-0",children:/* @__PURE__ */J(t,{sidebar:Oe,storageKey:"files.sidebarWidth",defaultWidth:200,minWidth:150,maxWidth:320,children:/* @__PURE__ */M("div",{className:"flex h-full min-w-0 flex-col",children:[
|
|
37
|
+
/* @__PURE__ */M("div",{className:"flex items-center gap-1 px-2 py-2 border-b border-line bg-surface-sunken shrink-0 text-xs",children:[/* @__PURE__ */M(U,"files"===ce?{children:[
|
|
38
|
+
/* @__PURE__ */J("button",{onClick:()=>{Pe&&Ue.length<=1?de("shared"):Le(Ge)},disabled:!Pe&&null===C,className:"px-2 py-1 rounded hover:bg-row-hover disabled:opacity-30 text-ink-muted",title:"Parent folder",children:/* @__PURE__ */J(W,{name:"arrow-left",className:"h-3.5 w-3.5",strokeWidth:2})}),
|
|
39
|
+
/* @__PURE__ */M("div",{className:"flex-1 min-w-0 flex items-center gap-2",children:[
|
|
40
|
+
/* @__PURE__ */J("div",{className:"min-w-0 flex-1",children:/* @__PURE__ */J(a,{items:Be,maxItems:5})}),Pe&&"viewer"===Fe&&/* @__PURE__ */M("span",{className:"shrink-0 inline-flex items-center gap-1 rounded-full bg-surface-sunken px-2 py-0.5 text-2xs text-ink-faint whitespace-nowrap",children:[
|
|
41
|
+
/* @__PURE__ */J(W,{name:"eye",className:"h-3 w-3",strokeWidth:1.8}),"View only"]}),Pe&&Re?.owner&&/* @__PURE__ */M("span",{className:"shrink-0 text-2xs text-ink-faint whitespace-nowrap",children:["Shared by ",Re.owner.name]})]}),
|
|
42
|
+
/* @__PURE__ */J("button",{onClick:De,className:"px-2 py-1 rounded hover:bg-row-hover text-ink-muted",title:"Refresh",children:/* @__PURE__ */J(W,{name:"refresh",className:"h-3.5 w-3.5",strokeWidth:1.8})}),Se&&/* @__PURE__ */M(U,{children:[!Pe&&/* @__PURE__ */M("button",{onClick:()=>de("trash"),className:"px-2 py-1 rounded hover:bg-row-hover text-ink-muted flex items-center gap-1",title:"Open trash",children:[
|
|
43
|
+
/* @__PURE__ */J(W,{name:"trash",className:"h-3.5 w-3.5",strokeWidth:1.5}),"Trash"]}),
|
|
44
|
+
/* @__PURE__ */M("button",{onClick:async()=>{const e=await j({title:"New folder",placeholder:"Folder name",confirmLabel:"Create"});e&&(/[\\/]/.test(e)?$.error("Folder names cannot contain slashes"):We(()=>n.createFolder(C,e),"Create folder failed"))},className:"px-2 py-1 rounded hover:bg-row-hover text-ink-muted flex items-center gap-1",children:[
|
|
45
|
+
/* @__PURE__ */J(W,{name:"folder-plus",className:"h-3.5 w-3.5",strokeWidth:1.5}),"New Folder"]}),
|
|
46
|
+
/* @__PURE__ */M("button",{onClick:()=>ge.current?.click(),className:"px-2 py-1 rounded bg-accent-fill text-on-accent hover:bg-accent-fill-hover flex items-center gap-1",children:[
|
|
47
|
+
/* @__PURE__ */J(W,{name:"upload",className:"h-3.5 w-3.5",strokeWidth:1.8}),"Upload"]})]})]}:"shared"===ce?{children:[
|
|
48
|
+
/* @__PURE__ */J(W,{name:"team",className:"h-4 w-4 ml-1",strokeWidth:1.6}),
|
|
49
49
|
/* @__PURE__ */J("span",{className:"flex-1 text-ink font-medium px-1",children:"Shared with me"}),
|
|
50
|
-
/* @__PURE__ */J("button",{onClick:je,className:"px-2 py-1 rounded hover:bg-row-hover text-ink-muted",title:"Refresh",children:/* @__PURE__ */J(
|
|
51
|
-
/* @__PURE__ */J("button",{onClick:()=>de("files"),className:"px-2 py-1 rounded hover:bg-row-hover text-ink-muted",title:"Back to files",children:/* @__PURE__ */J(
|
|
50
|
+
/* @__PURE__ */J("button",{onClick:je,className:"px-2 py-1 rounded hover:bg-row-hover text-ink-muted",title:"Refresh",children:/* @__PURE__ */J(W,{name:"refresh",className:"h-3.5 w-3.5",strokeWidth:1.8})})]}:"trash"===ce?{children:[
|
|
51
|
+
/* @__PURE__ */J("button",{onClick:()=>de("files"),className:"px-2 py-1 rounded hover:bg-row-hover text-ink-muted",title:"Back to files",children:/* @__PURE__ */J(W,{name:"arrow-left",className:"h-3.5 w-3.5",strokeWidth:2})}),
|
|
52
52
|
/* @__PURE__ */J("span",{className:"flex-1 text-ink font-medium px-2",children:"Trash"}),
|
|
53
|
-
/* @__PURE__ */J("button",{onClick:Ce,className:"px-2 py-1 rounded hover:bg-row-hover text-ink-muted",title:"Refresh",children:/* @__PURE__ */J(
|
|
54
|
-
/* @__PURE__ */J("button",{onClick:async()=>{if(0===he.length)return;await y({title:"Empty trash",message:`${he.length} item${1===he.length?"":"s"} will be permanently removed. This can't be undone.`,confirmLabel:"Empty trash",variant:"danger"})
|
|
55
|
-
/* @__PURE__ */J("button",{onClick:()=>de("files"),className:"px-2 py-1 rounded hover:bg-row-hover text-ink-muted",title:"Back to files",children:/* @__PURE__ */J(
|
|
53
|
+
/* @__PURE__ */J("button",{onClick:Ce,className:"px-2 py-1 rounded hover:bg-row-hover text-ink-muted",title:"Refresh",children:/* @__PURE__ */J(W,{name:"refresh",className:"h-3.5 w-3.5",strokeWidth:1.8})}),
|
|
54
|
+
/* @__PURE__ */J("button",{onClick:async()=>{if(0===he.length)return;await y({title:"Empty trash",message:`${he.length} item${1===he.length?"":"s"} will be permanently removed. This can't be undone.`,confirmLabel:"Empty trash",variant:"danger"})&&We(()=>n.emptyTrash(),"Empty trash failed")},disabled:0===he.length,className:"px-2 py-1 rounded text-danger-text hover:bg-status-danger-soft disabled:opacity-30 flex items-center gap-1",children:"Empty trash"})]}:{children:[
|
|
55
|
+
/* @__PURE__ */J("button",{onClick:()=>de("files"),className:"px-2 py-1 rounded hover:bg-row-hover text-ink-muted",title:"Back to files",children:/* @__PURE__ */J(W,{name:"arrow-left",className:"h-3.5 w-3.5",strokeWidth:2})}),
|
|
56
56
|
/* @__PURE__ */J(k,{className:"h-4 w-4 text-amber-500 ml-1"}),
|
|
57
57
|
/* @__PURE__ */J("span",{className:"flex-1 text-ink font-medium px-1 truncate",children:fe?.name??"Desktop folder"}),
|
|
58
|
-
/* @__PURE__ */J("span",{className:"text-2xs text-ink-faintest px-2",children:"Desktop shortcuts"})]}),ae&&/* @__PURE__ */
|
|
58
|
+
/* @__PURE__ */J("span",{className:"text-2xs text-ink-faintest px-2",children:"Desktop shortcuts"})]}),ae&&/* @__PURE__ */M(U,{children:[
|
|
59
59
|
/* @__PURE__ */J("div",{className:"h-4 w-px bg-line-strong mx-1"}),
|
|
60
|
-
/* @__PURE__ */
|
|
61
|
-
/* @__PURE__ */J("div",{className:"w-20 h-1.5 rounded-full bg-line overflow-hidden",children:/* @__PURE__ */J("div",{className:`h-full ${Je} transition-all`,style:{width:`${
|
|
62
|
-
/* @__PURE__ */
|
|
63
|
-
/* @__PURE__ */J("div",{className:"flex-1 overflow-auto",children:"object"==typeof ce?0===xe.length?/* @__PURE__ */J("div",{className:"p-10 text-center text-sm text-ink-faintest",children:"This desktop folder is empty. Drag shortcuts onto it on the desktop."}):/* @__PURE__ */
|
|
64
|
-
/* @__PURE__ */J("thead",{className:"bg-surface-sunken text-2xs uppercase tracking-wide text-ink-faint",children:/* @__PURE__ */
|
|
65
|
-
/* @__PURE__ */J("th",{className:`${
|
|
66
|
-
/* @__PURE__ */J("th",{className:`${
|
|
67
|
-
/* @__PURE__ */J("th",{className:`${
|
|
60
|
+
/* @__PURE__ */M("div",{className:"flex items-center gap-2",title:`${s(ae.used)} of ${s(ae.limit)} used`,children:[
|
|
61
|
+
/* @__PURE__ */J("div",{className:"w-20 h-1.5 rounded-full bg-line overflow-hidden",children:/* @__PURE__ */J("div",{className:`h-full ${Je} transition-all`,style:{width:`${Me}%`}})}),
|
|
62
|
+
/* @__PURE__ */M("span",{className:"text-2xs text-ink-faint tabular-nums whitespace-nowrap",children:[s(ae.used)," / ",s(ae.limit)]})]})]})]}),
|
|
63
|
+
/* @__PURE__ */J("div",{className:"flex-1 overflow-auto",children:"object"==typeof ce?0===xe.length?/* @__PURE__ */J("div",{className:"p-10 text-center text-sm text-ink-faintest",children:"This desktop folder is empty. Drag shortcuts onto it on the desktop."}):/* @__PURE__ */M("table",{className:"w-full text-sm",children:[
|
|
64
|
+
/* @__PURE__ */J("thead",{className:"bg-surface-sunken text-2xs uppercase tracking-wide text-ink-faint",children:/* @__PURE__ */M("tr",{children:[
|
|
65
|
+
/* @__PURE__ */J("th",{className:`${T} text-left font-medium px-3 h-8`,children:"Name"}),
|
|
66
|
+
/* @__PURE__ */J("th",{className:`${T} text-left font-medium px-3 h-8 w-28`,children:"Type"}),
|
|
67
|
+
/* @__PURE__ */J("th",{className:`${T} w-56`})]})}),
|
|
68
68
|
/* @__PURE__ */J("tbody",{children:xe.map(e=>{const t=`${e.entityType}|${e.entityId}`;/* @__PURE__ */
|
|
69
|
-
return
|
|
70
|
-
/* @__PURE__ */
|
|
69
|
+
return M("tr",{onClick:()=>q(t),onDoubleClick:()=>be(e),className:"cursor-default border-b border-line-subtle "+(Z===t?"bg-accent-tint":"hover:bg-row-hover"),children:[
|
|
70
|
+
/* @__PURE__ */M("td",{className:"px-3 h-8 flex items-center gap-2",children:[
|
|
71
71
|
/* @__PURE__ */J(g,{item:e}),
|
|
72
72
|
/* @__PURE__ */J("span",{className:"truncate",title:e.label,children:e.label})]}),
|
|
73
73
|
/* @__PURE__ */J("td",{className:"px-3 h-8 text-xs text-ink-faint",children:N(e)}),
|
|
74
|
-
/* @__PURE__ */
|
|
74
|
+
/* @__PURE__ */M("td",{className:"px-3 h-8 text-right whitespace-nowrap",children:[
|
|
75
75
|
/* @__PURE__ */J("button",{onClick:t=>{t.stopPropagation(),be(e)},className:"px-2 py-0.5 rounded hover:bg-row-hover text-accent-text text-2xs",children:"Open"}),
|
|
76
76
|
/* @__PURE__ */J("button",{onClick:t=>{t.stopPropagation(),pe?.moveToDesktop([e])},className:"px-2 py-0.5 rounded hover:bg-row-hover text-ink-faint text-2xs ml-1",children:"Move to desktop"}),
|
|
77
|
-
/* @__PURE__ */J("button",{onClick:t=>{t.stopPropagation(),pe?.removeShortcuts([e])},className:"px-2 py-0.5 rounded hover:bg-status-danger-soft text-danger-text text-2xs ml-1",children:"Remove"})]})]},t)})})]}):"shared"===ce?_&&0===
|
|
78
|
-
/* @__PURE__ */J("thead",{className:"bg-surface-sunken text-2xs uppercase tracking-wide text-ink-faint",children:/* @__PURE__ */
|
|
79
|
-
/* @__PURE__ */J("th",{className:`${
|
|
80
|
-
/* @__PURE__ */J("th",{className:`${
|
|
81
|
-
/* @__PURE__ */J("th",{className:`${
|
|
82
|
-
/* @__PURE__ */J("th",{className:`${
|
|
83
|
-
/* @__PURE__ */J("th",{className:`${
|
|
84
|
-
/* @__PURE__ */J("tbody",{children:
|
|
85
|
-
/* @__PURE__ */
|
|
77
|
+
/* @__PURE__ */J("button",{onClick:t=>{t.stopPropagation(),pe?.removeShortcuts([e])},className:"px-2 py-0.5 rounded hover:bg-status-danger-soft text-danger-text text-2xs ml-1",children:"Remove"})]})]},t)})})]}):"shared"===ce?_&&0===X.length?/* @__PURE__ */J(E,{size:"sm",padding:"p-6",label:"Loading"}):0===X.length?/* @__PURE__ */J("div",{className:"p-10 text-center text-sm text-ink-faintest",children:"Nothing has been shared with you yet. Files and folders colleagues share with you show here."}):/* @__PURE__ */M("table",{className:"w-full text-sm",children:[
|
|
78
|
+
/* @__PURE__ */J("thead",{className:"bg-surface-sunken text-2xs uppercase tracking-wide text-ink-faint",children:/* @__PURE__ */M("tr",{children:[
|
|
79
|
+
/* @__PURE__ */J("th",{className:`${T} text-left font-medium px-3 h-8`,children:"Name"}),
|
|
80
|
+
/* @__PURE__ */J("th",{className:`${T} text-left font-medium px-3 h-8 w-40`,children:"Owner"}),
|
|
81
|
+
/* @__PURE__ */J("th",{className:`${T} text-left font-medium px-3 h-8 w-24`,children:"Access"}),
|
|
82
|
+
/* @__PURE__ */J("th",{className:`${T} text-right font-medium px-3 h-8 w-24`,children:"Size"}),
|
|
83
|
+
/* @__PURE__ */J("th",{className:`${T} w-32`})]})}),
|
|
84
|
+
/* @__PURE__ */J("tbody",{children:X.map(e=>/* @__PURE__ */M("tr",{onClick:()=>q(e.id),onDoubleClick:()=>Ie(e),className:"cursor-default border-b border-line-subtle "+(Z===e.id?"bg-accent-tint":"hover:bg-row-hover"),children:[
|
|
85
|
+
/* @__PURE__ */M("td",{className:"px-3 h-8 flex items-center gap-2",children:[Ve(e.kind),
|
|
86
86
|
/* @__PURE__ */J("span",{className:"truncate",title:e.name,children:e.name})]}),
|
|
87
87
|
/* @__PURE__ */J("td",{className:"px-3 h-8 text-ink-faint truncate",children:e.owner?.name??"—"}),
|
|
88
88
|
/* @__PURE__ */J("td",{className:"px-3 h-8 text-ink-faint",children:"editor"===e.role?"Editor":"Viewer"}),
|
|
89
89
|
/* @__PURE__ */J("td",{className:"px-3 h-8 text-right tabular-nums text-ink-faint",children:"folder"===e.kind?"—":s(e.size)}),
|
|
90
|
-
/* @__PURE__ */
|
|
91
|
-
/* @__PURE__ */J("button",{onClick:t=>{t.stopPropagation(),
|
|
92
|
-
/* @__PURE__ */J("thead",{className:"bg-surface-sunken text-2xs uppercase tracking-wide text-ink-faint",children:/* @__PURE__ */
|
|
93
|
-
/* @__PURE__ */J("th",{className:`${
|
|
94
|
-
/* @__PURE__ */J("th",{className:`${
|
|
95
|
-
/* @__PURE__ */J("th",{className:`${
|
|
96
|
-
/* @__PURE__ */J("th",{className:`${
|
|
97
|
-
/* @__PURE__ */J("th",{className:`${
|
|
98
|
-
/* @__PURE__ */J("tbody",{children:he.map(e=>/* @__PURE__ */
|
|
99
|
-
/* @__PURE__ */
|
|
90
|
+
/* @__PURE__ */M("td",{className:"px-3 h-8 text-right whitespace-nowrap",children:[
|
|
91
|
+
/* @__PURE__ */J("button",{onClick:t=>{t.stopPropagation(),Ie(e)},className:"px-2 py-0.5 rounded hover:bg-row-hover text-accent-text text-2xs",children:"Open"}),"file"===e.kind&&/* @__PURE__ */J("button",{onClick:t=>{t.stopPropagation(),Ee(e)},className:Qe,children:"Download"})]})]},e.id))})]}):"trash"===ce?_&&0===he.length?/* @__PURE__ */J(E,{size:"sm",padding:"p-6",label:"Loading"}):0===he.length?/* @__PURE__ */J("div",{className:"p-10 text-center text-sm text-ink-faintest",children:"Trash is empty."}):/* @__PURE__ */M("table",{className:"w-full text-sm",children:[
|
|
92
|
+
/* @__PURE__ */J("thead",{className:"bg-surface-sunken text-2xs uppercase tracking-wide text-ink-faint",children:/* @__PURE__ */M("tr",{children:[
|
|
93
|
+
/* @__PURE__ */J("th",{className:`${T} text-left font-medium px-3 h-8`,children:"Name"}),
|
|
94
|
+
/* @__PURE__ */J("th",{className:`${T} text-left font-medium px-3 h-8`,children:"Original location"}),
|
|
95
|
+
/* @__PURE__ */J("th",{className:`${T} text-right font-medium px-3 h-8 w-24`,children:"Size"}),
|
|
96
|
+
/* @__PURE__ */J("th",{className:`${T} text-right font-medium px-3 h-8 w-40`,children:"Deleted"}),
|
|
97
|
+
/* @__PURE__ */J("th",{className:`${T} w-44`})]})}),
|
|
98
|
+
/* @__PURE__ */J("tbody",{children:he.map(e=>/* @__PURE__ */M("tr",{className:"border-b border-line-subtle hover:bg-row-hover",children:[
|
|
99
|
+
/* @__PURE__ */M("td",{className:"px-3 h-8 flex items-center gap-2",children:[Ve(e.kind),
|
|
100
100
|
/* @__PURE__ */J("span",{className:"truncate",title:e.name,children:e.name})]}),
|
|
101
101
|
/* @__PURE__ */J("td",{className:"px-3 h-8 text-ink-faint text-xs font-mono truncate",title:e.originalPath,children:e.originalPath||"—"}),
|
|
102
102
|
/* @__PURE__ */J("td",{className:"px-3 h-8 text-right tabular-nums text-ink-faint",children:s(e.size)}),
|
|
103
103
|
/* @__PURE__ */J("td",{className:"px-3 h-8 text-right text-ink-faint tabular-nums",children:e.deletedAt?Y(e.deletedAt):"—"}),
|
|
104
|
-
/* @__PURE__ */
|
|
105
|
-
/* @__PURE__ */J("button",{onClick:()=>{return t=e
|
|
106
|
-
/* @__PURE__ */J("button",{onClick:()=>(async e=>{await y({title:"Permanently delete",message:`"${e.name}" will be permanently removed. This can't be undone.`,confirmLabel:"Delete forever",variant:"danger"})
|
|
107
|
-
/* @__PURE__ */J("span",{className:"font-medium",children:"Upload"}),"."]})]}):/* @__PURE__ */
|
|
108
|
-
/* @__PURE__ */J("thead",{className:"bg-surface-sunken text-2xs uppercase tracking-wide text-ink-faint",children:/* @__PURE__ */
|
|
109
|
-
/* @__PURE__ */J("th",{className:`${
|
|
110
|
-
/* @__PURE__ */J("th",{className:`${
|
|
111
|
-
/* @__PURE__ */J("th",{className:`${
|
|
112
|
-
/* @__PURE__ */J("th",{className:`${
|
|
113
|
-
/* @__PURE__ */J("tbody",{children:
|
|
114
|
-
return
|
|
115
|
-
/* @__PURE__ */
|
|
104
|
+
/* @__PURE__ */M("td",{className:"px-3 h-8 text-right whitespace-nowrap",children:[
|
|
105
|
+
/* @__PURE__ */J("button",{onClick:()=>{return t=e,We(async()=>{await n.restore(t.id),$.success(`Restored "${t.name}"`)},"Restore failed");var t},className:"px-2 py-0.5 rounded hover:bg-row-hover text-accent-text text-2xs",children:"Restore"}),
|
|
106
|
+
/* @__PURE__ */J("button",{onClick:()=>(async e=>{await y({title:"Permanently delete",message:`"${e.name}" will be permanently removed. This can't be undone.`,confirmLabel:"Delete forever",variant:"danger"})&&We(()=>n.purge(e.id),"Delete failed")})(e),className:"px-2 py-0.5 rounded hover:bg-status-danger-soft text-danger-text text-2xs ml-1",children:"Delete forever"})]})]},e.id))})]}):_&&0===Ae.length?/* @__PURE__ */J(E,{size:"sm",padding:"p-6",label:"Loading"}):0===Ae.length?/* @__PURE__ */M("div",{className:"p-10 text-center text-sm text-ink-faintest",children:["Empty folder.",Se&&/* @__PURE__ */M(U,{children:[" Drop files here or click ",
|
|
107
|
+
/* @__PURE__ */J("span",{className:"font-medium",children:"Upload"}),"."]})]}):/* @__PURE__ */M("table",{className:"w-full text-sm",children:[
|
|
108
|
+
/* @__PURE__ */J("thead",{className:"bg-surface-sunken text-2xs uppercase tracking-wide text-ink-faint",children:/* @__PURE__ */M("tr",{children:[
|
|
109
|
+
/* @__PURE__ */J("th",{className:`${T} text-left font-medium px-3 h-8`,children:"Name"}),
|
|
110
|
+
/* @__PURE__ */J("th",{className:`${T} text-right font-medium px-3 h-8 w-24`,children:"Size"}),
|
|
111
|
+
/* @__PURE__ */J("th",{className:`${T} text-right font-medium px-3 h-8 w-40`,children:"Modified"}),i&&!Pe&&/* @__PURE__ */J("th",{className:`${T} text-left font-medium px-3 h-8 w-28`,children:"Shared"}),
|
|
112
|
+
/* @__PURE__ */J("th",{className:`${T} w-48`})]})}),
|
|
113
|
+
/* @__PURE__ */J("tbody",{children:Ae.map(e=>{const t=e.role??Fe,a="owner"===t,l=Se&&"viewer"!==t;/* @__PURE__ */
|
|
114
|
+
return M("tr",{onClick:()=>q(e.id),onDoubleClick:()=>Ie(e),className:"cursor-default border-b border-line-subtle "+(Z===e.id?"bg-accent-tint":"hover:bg-row-hover"),children:[
|
|
115
|
+
/* @__PURE__ */M("td",{className:"px-3 h-8 flex items-center gap-2",children:[Ve(e.kind),
|
|
116
116
|
/* @__PURE__ */J("span",{className:"truncate",title:e.name,children:e.name})]}),
|
|
117
117
|
/* @__PURE__ */J("td",{className:"px-3 h-8 text-right tabular-nums text-ink-faint whitespace-nowrap",children:"folder"===e.kind?"—":s(e.size)}),
|
|
118
118
|
/* @__PURE__ */J("td",{className:"px-3 h-8 text-right text-ink-faint tabular-nums whitespace-nowrap",children:Y(e.modifiedAt)}),i&&!Pe&&/* @__PURE__ */J("td",{className:"px-3 h-8",children:e.shareCount?/* @__PURE__ */J("span",{className:"inline-flex rounded-full bg-accent-tint px-2 py-0.5 text-2xs text-accent-text whitespace-nowrap",children:1===e.shareCount?"1 person":`${e.shareCount} people`}):/* @__PURE__ */J("span",{className:"text-ink-faintest",children:"—"})}),
|
|
119
|
-
/* @__PURE__ */J("td",{className:"px-3 h-8 text-right whitespace-nowrap",children:!r&&/* @__PURE__ */
|
|
120
|
-
/* @__PURE__ */J("button",{onClick:t=>{t.stopPropagation(),(async e=>{const t=await j({title:`Rename ${e.kind}`,defaultValue:e.name,confirmLabel:"Rename"});t&&t!==e.name&&(/[\\/]/.test(t)
|
|
121
|
-
/* @__PURE__ */J("button",{onClick:t=>{t.stopPropagation(),(async e=>{const t="owner"!==(e.role??"owner");await y({title:`Delete ${e.kind}`,message:`"${e.name}"${"folder"===e.kind?" and everything inside":""} will move to `+(t?`${(e.owner??
|
|
119
|
+
/* @__PURE__ */J("td",{className:"px-3 h-8 text-right whitespace-nowrap",children:!r&&/* @__PURE__ */M(U,{children:["file"===e.kind&&/* @__PURE__ */J("button",{onClick:t=>{t.stopPropagation(),Ee(e)},className:Qe,children:"Download"}),i&&a&&/* @__PURE__ */J("button",{onClick:t=>{t.stopPropagation(),oe(e)},className:Qe,children:"Share"}),l&&/* @__PURE__ */M(U,{children:[
|
|
120
|
+
/* @__PURE__ */J("button",{onClick:t=>{t.stopPropagation(),(async e=>{const t=await j({title:`Rename ${e.kind}`,defaultValue:e.name,confirmLabel:"Rename"});t&&t!==e.name&&(/[\\/]/.test(t)?$.error("Names cannot contain slashes"):We(()=>n.rename(e.id,t),"Rename failed"))})(e)},className:Qe,children:"Rename"}),
|
|
121
|
+
/* @__PURE__ */J("button",{onClick:t=>{t.stopPropagation(),(async e=>{const t="owner"!==(e.role??"owner");await y({title:`Delete ${e.kind}`,message:`"${e.name}"${"folder"===e.kind?" and everything inside":""} will move to `+(t?`${(e.owner??B?.folder.owner)?.name??"its owner"}'s Trash.`:"Trash. You can restore it from there."),confirmLabel:"Delete",variant:"danger"})&&We(()=>n.remove(e.id),"Delete failed")})(e)},className:"px-2 py-0.5 rounded hover:bg-status-danger-soft text-danger-text text-2xs ml-1",children:"Delete"})]})]})})]},e.id)})})]})})]})})}),i&&/* @__PURE__ */J(G,{store:n,entry:le,onClose:()=>oe(null),onChanged:()=>ye(C)}),ie&&/* @__PURE__ */J("div",{className:"absolute inset-0 bg-accent-tint border-4 border-dashed border-accent-border pointer-events-none flex items-center justify-center z-20",children:/* @__PURE__ */J("div",{className:"px-4 py-2 rounded-md bg-accent-fill text-on-accent text-sm font-medium shadow-lg",children:"Drop to upload"})})]})}export{Q as default,O as quotaExceededMessage};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{getNumberingConfigs as e}from"./chunk-
|
|
2
|
-
/* @__PURE__ */x("div",{className:"p-2 border-b border-gray-200",children:/* @__PURE__ */h("button",{onClick:()=>{$&&
|
|
1
|
+
import{getNumberingConfigs as e}from"./chunk-WVHGHMW3.js";import{SidebarLayout as t}from"./chunk-RFKCSRJX.js";import"./chunk-QWK6DRSN.js";import"./chunk-KUEYOJBN.js";import{timeAgo as r}from"./chunk-GEYM4WN3.js";import"./chunk-Y3JW2GW5.js";import"./chunk-36BRD5J3.js";import"./chunk-LF27WIN2.js";import{AboutApp as n}from"./chunk-ZKQWS2ML.js";import{useWindowManager as o,client_default as i}from"./chunk-AHJAJLSK.js";import"./chunk-4LXCCZDM.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-Y4RERPFN.js";import"./chunk-5A7MWTXX.js";import"./chunk-ZDMZM7HD.js";import"./chunk-HE767CVB.js";import"./chunk-SCU2CWNJ.js";import"./chunk-6EHPEBGP.js";import"./chunk-N7JX27JE.js";import"./chunk-3DVNXNTF.js";import"./chunk-7B5KFESH.js";import"./chunk-VWGWZY7A.js";import"./chunk-7QSDPSXP.js";import"./chunk-5JUG74UR.js";import"./chunk-SCGBCBXP.js";import"./chunk-F3ZOO23R.js";import"./chunk-2QY5BJLA.js";import"./chunk-UGTRSRIW.js";import{useShellPrefs as c}from"./chunk-KC3EX26K.js";import"./chunk-PWYLGTZS.js";import"./chunk-CDAJKLGL.js";import"./chunk-JPNAEN53.js";import"./chunk-IFQXTIMY.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-UJJXWLHE.js";import"./chunk-XWFLIGDQ.js";import{Icon as s}from"./chunk-UIWGVOFH.js";import"./chunk-J75ZT2JQ.js";import"./chunk-R2VKEMZH.js";import"./chunk-CJH2BGXY.js";import"./chunk-QQ2LDC6C.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-STKJA4PV.js";import{toast_default as l}from"./chunk-TRWHVG3A.js";import"./chunk-UQYNPYF4.js";import"./chunk-MRJKZWWV.js";import"./chunk-TWVUQUUD.js";import"./chunk-5FYDNH4Y.js";import"./chunk-LNXBTK7Q.js";import"./chunk-43MCNASD.js";import"./chunk-C3QOHMR6.js";import{useRef as a,useEffect as p,useState as d,useCallback as m}from"react";import{useQuery as u}from"@tanstack/react-query";import{jsxs as h,Fragment as g,jsx as x}from"react/jsx-runtime";var y=[{key:"yellow",bg:"bg-yellow-100",border:"border-yellow-300",text:"text-yellow-900",dot:"bg-yellow-400"},{key:"blue",bg:"bg-blue-100",border:"border-blue-300",text:"text-blue-900",dot:"bg-blue-400"},{key:"green",bg:"bg-green-100",border:"border-green-300",text:"text-green-900",dot:"bg-green-400"},{key:"pink",bg:"bg-pink-100",border:"border-pink-300",text:"text-pink-900",dot:"bg-pink-400"},{key:"purple",bg:"bg-purple-100",border:"border-purple-300",text:"text-purple-900",dot:"bg-purple-400"},{key:"orange",bg:"bg-orange-100",border:"border-orange-300",text:"text-orange-900",dot:"bg-orange-400"},{key:"white",bg:"bg-white",border:"border-gray-300",text:"text-gray-900",dot:"bg-gray-300"}];var k={sales_order:{entityType:"order",endpoint:"/orders/sales-orders/"},purchase_order:{entityType:"purchase_order",endpoint:"/purchase-orders/"},invoice:{entityType:"invoice",endpoint:"/invoicing/invoices/"},vendor_invoice:{entityType:"vendor_invoice",endpoint:"/invoicing/vendor-invoices/"},shipment:{entityType:"shipment",endpoint:"/shipments/delivery-notes/"},receipt:{entityType:"payment",endpoint:"/invoicing/payments/"},vendor_payment:{entityType:"vendor_payment",endpoint:"/invoicing/vendor-payments/"},vendor_price_sheet:{entityType:"vendor_price_sheet",endpoint:"/pricing/manufacturer-price-sheets/"},client_price_sheet:{entityType:"price_sheet",endpoint:"/pricing/price-sheets/"},qc_report:{entityType:"qc_report",endpoint:"/qc-reports/"},warranty_claim:{entityType:"warranty_claim",endpoint:"/warranty-claims/claims/"},vendor_shipment:{entityType:"vendor_shipment",endpoint:"/shipments/goods-receipts/"}},b=/\[([ xX]?)\]/g;function f(){const{openEntity:f}=o(),{prefs:j,save:N}=c(),{data:v}=u({queryKey:["numbering-configs"],queryFn:()=>e(),retry:!1}),w=a({});p(()=>{if(!v)return;const e={};for(const t of v){const r=k[t.entity_type];if(!r)continue;const n=(t.prefix||"").replace("#","").toUpperCase();if(n&&(e[n]={...r,prefix:t.prefix}),t.alt_prefix){const n=t.alt_prefix.replace("#","").toUpperCase();n&&(e[n]={...r,prefix:t.alt_prefix})}}w.current=e},[v]);const T=j.notepad_notes||[],[W,C]=d(null),[_,S]=d(""),[J,X]=d(""),[D,G]=d("yellow"),[$,H]=d(!1),[U,E]=d(!1),K=a(null),R=a();p(()=>{if(!W&&T.length>0){const e=T[0];C(e.id),S(e.title),X(e.content),G(e.color)}},[T.length]);const F=m(e=>{N({notepad_notes:e})},[N]),L=m(()=>{if(!W||!$)return;const e=T.map(e=>e.id===W?{...e,title:_,content:J,color:D,updated_at:/* @__PURE__ */(new Date).toISOString()}:e);F(e),H(!1)},[W,$,_,J,D,T,F]);p(()=>{if($)return R.current&&clearTimeout(R.current),R.current=setTimeout(L,800),()=>{R.current&&clearTimeout(R.current)}},[$,L]),p(()=>()=>{$&&L()},[]);const M=e=>{$&&L(),C(e.id),S(e.title),X(e.content),G(e.color),H(!1),E(!1)},Q=e=>{const t=J.slice(0,e),r=J.slice(e).match(/^\[([ xX]?)\]/);if(!r)return;const n="x"===r[1]||"X"===r[1]?"[ ]":"[x]",o=J.slice(e+r[0].length);X(t+n+o),H(!0)},B=async(e,t)=>{const r=w.current[e];if(!r)return;const n=`${e}#${t}`;try{const{data:e}=await i.get(r.endpoint,{params:{search:n,page_size:1}}),t=(e?.results??e??[])[0];t?f(r.entityType,t.id,t,n):l.error(`${n} not found`)}catch{l.error(`Failed to look up ${n}`)}},P="Start writing...\n\nTips:\n [] Type [] for a checkbox, click to toggle\n SO#35001 Type XX#NNNNN to link entities (SO, PO, CI, VI, PL, etc.)",Y=/* @__PURE__ */h(g,{children:[
|
|
2
|
+
/* @__PURE__ */x("div",{className:"p-2 border-b border-gray-200",children:/* @__PURE__ */h("button",{onClick:()=>{$&&L();const e={id:`note-${Date.now()}-${Math.random().toString(36).slice(2,6)}`,title:"",content:"",color:"yellow",updated_at:/* @__PURE__ */(new Date).toISOString()},t=[e,...T];F(t),C(e.id),S(""),X(""),G("yellow"),H(!1),E(!0),setTimeout(()=>K.current?.focus(),50)},className:"w-full flex items-center justify-center gap-2 rounded-lg bg-accent-fill text-on-accent px-3 min-h-8 py-1 text-sm font-medium hover:bg-accent-fill-hover transition-colors",children:[
|
|
3
3
|
/* @__PURE__ */x(s,{name:"add",className:"h-4 w-4",strokeWidth:2}),"New Note"]})}),
|
|
4
4
|
/* @__PURE__ */x("div",{className:"flex-1 overflow-y-auto",children:0===T.length?/* @__PURE__ */x("p",{className:"text-sm text-gray-400 text-center py-8 px-4",children:"No notes yet. Create one to get started."}):T.map(e=>{const t=(n=e.color,y.find(e=>e.key===n)||y[0]);var n;/* @__PURE__ */
|
|
5
|
-
return h("button",{onClick:()=>
|
|
5
|
+
return h("button",{onClick:()=>M(e),className:"w-full text-left px-3 py-3 border-b border-line-subtle transition-colors "+(W===e.id?"bg-accent-tint":"hover:bg-row-hover"),children:[
|
|
6
6
|
/* @__PURE__ */h("div",{className:"flex items-center gap-2",children:[
|
|
7
7
|
/* @__PURE__ */x("div",{className:`w-3 h-3 rounded-full shrink-0 ${t.dot}`}),
|
|
8
8
|
/* @__PURE__ */x("span",{className:"text-sm font-medium text-gray-900 truncate flex-1",children:e.title||"Untitled"})]}),
|
|
@@ -10,15 +10,15 @@ return h("button",{onClick:()=>I(e),className:"w-full text-left px-3 py-3 border
|
|
|
10
10
|
/* @__PURE__ */x("p",{className:"text-2xs text-gray-300 mt-0.5 ml-5",children:r(e.updated_at)})]},e.id)})})]});/* @__PURE__ */
|
|
11
11
|
return h("div",{className:"h-full",children:[
|
|
12
12
|
/* @__PURE__ */x(n,{app:"notepad"}),
|
|
13
|
-
/* @__PURE__ */x(t,{sidebar:
|
|
13
|
+
/* @__PURE__ */x(t,{sidebar:Y,storageKey:"notepad.sidebarWidth",defaultWidth:224,minWidth:180,maxWidth:360,children:W?/* @__PURE__ */h("div",{className:"flex-1 flex flex-col min-w-0",children:[
|
|
14
14
|
/* @__PURE__ */h("div",{className:"flex items-center gap-2 px-4 py-2 border-b border-gray-200",children:[
|
|
15
|
-
/* @__PURE__ */x("input",{value:
|
|
16
|
-
/* @__PURE__ */x("div",{className:"flex gap-1",children:y.map(e=>/* @__PURE__ */x("button",{onClick:()=>{
|
|
17
|
-
/* @__PURE__ */x("button",{onClick:()=>(e=>{const t=T.filter(t=>t.id!==e);if(
|
|
18
|
-
return x("div",{className:p?"line-through text-gray-400":"",children:n},r)})})(
|
|
15
|
+
/* @__PURE__ */x("input",{value:_,onChange:e=>{S(e.target.value),H(!0)},placeholder:"Note title...",className:"flex-1 text-lg font-semibold text-gray-900 outline-none bg-transparent placeholder:text-gray-300"}),
|
|
16
|
+
/* @__PURE__ */x("div",{className:"flex gap-1",children:y.map(e=>/* @__PURE__ */x("button",{onClick:()=>{G(e.key),H(!0)},className:`w-5 h-5 rounded-full border-2 transition-all ${e.dot} ${D===e.key?"border-gray-600 scale-110":"border-transparent hover:border-gray-400"}`,title:e.key},e.key))}),
|
|
17
|
+
/* @__PURE__ */x("button",{onClick:()=>(e=>{const t=T.filter(t=>t.id!==e);if(F(t),W===e){const e=t[0];e?M(e):(C(null),S(""),X(""))}})(W),title:"Delete note",className:"p-1 rounded text-gray-300 hover:text-red-500 transition-colors",children:/* @__PURE__ */x(s,{name:"trash",className:"h-4 w-4",strokeWidth:1.5})})]}),U?/* @__PURE__ */x("textarea",{ref:K,value:J,onChange:e=>{X(e.target.value),H(!0)},onBlur:()=>{E(!1),$&&L()},placeholder:P,className:"flex-1 p-4 text-sm text-gray-700 outline-none resize-none bg-transparent leading-relaxed placeholder:text-gray-300 font-mono"}):/* @__PURE__ */x("div",{onClick:()=>{E(!0),setTimeout(()=>K.current?.focus(),50)},className:"flex-1 p-4 text-sm text-gray-700 overflow-y-auto leading-relaxed cursor-text",children:J?(e=>{if(!e)return[];const t=e.split("\n");return t.map((e,r)=>{const n=[];let o=0;const i=[],c=/([A-Z]{2,4})#(\d{4,6})/g;let l;for(;null!==(l=c.exec(e));){const e=l[1],t=l[2];if(w.current[e]){const n=l.index,o=l[0];i.push({idx:n,len:o.length,render:()=>/* @__PURE__ */x("button",{onClick:()=>B(e,t),className:"text-blue-600 hover:text-blue-800 hover:underline font-medium cursor-pointer",children:o},`ref-${r}-${n}`)})}}b.lastIndex=0;let a=0;for(let e=0;e<r;e++)a+=t[e].length+1;for(;null!==(l=b.exec(e));){const e="x"===l[1]||"X"===l[1],t=l.index,n=a+t;i.push({idx:t,len:l[0].length,render:()=>/* @__PURE__ */x("button",{onClick:()=>Q(n),className:`inline-flex items-center justify-center w-4 h-4 rounded border ${e?"bg-blue-500 border-blue-500 text-white":"border-gray-400 bg-white hover:border-blue-400"} cursor-pointer align-text-bottom mr-0.5`,children:e&&/* @__PURE__ */x(s,{name:"check",className:"w-3 h-3",strokeWidth:3})},`cb-${r}-${t}`)})}i.sort((e,t)=>e.idx-t.idx);for(const t of i)t.idx>o&&n.push(/* @__PURE__ */x("span",{children:e.slice(o,t.idx)},`t-${r}-${o}`)),n.push(t.render()),o=t.idx+t.len;o<e.length&&n.push(/* @__PURE__ */x("span",{children:e.slice(o)},`t-${r}-${o}`)),0===n.length&&n.push(/* @__PURE__ */x("span",{children:""},`empty-${r}`));const p=/^\[x\]/i.test(e.trimStart());/* @__PURE__ */
|
|
18
|
+
return x("div",{className:p?"line-through text-gray-400":"",children:n},r)})})(J):/* @__PURE__ */x("p",{className:"text-gray-300 whitespace-pre-line",children:P})}),
|
|
19
19
|
/* @__PURE__ */h("div",{className:"px-4 min-h-8 py-1 border-t border-line-subtle flex items-center gap-4 text-2xs text-ink-faintest",children:[
|
|
20
20
|
/* @__PURE__ */x("span",{children:"[] checkbox"}),
|
|
21
21
|
/* @__PURE__ */x("span",{children:"SO#35001 entity link"}),
|
|
22
|
-
/* @__PURE__ */x("span",{className:"ml-auto",children:
|
|
22
|
+
/* @__PURE__ */x("span",{className:"ml-auto",children:U?"Editing":"Click to edit"})]})]}):/* @__PURE__ */x("div",{className:"flex-1 flex items-center justify-center",children:/* @__PURE__ */h("div",{className:"text-center text-gray-400",children:[
|
|
23
23
|
/* @__PURE__ */x(s,{name:"page",className:"h-12 w-12 mx-auto mb-3 text-gray-300",strokeWidth:1}),
|
|
24
24
|
/* @__PURE__ */x("p",{className:"text-sm",children:"Select a note or create a new one"})]})})})]})}export{f as default};
|