@shumai-one/shumai 0.4.3 → 0.4.4
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/bin/chunk-071x515q.js +4 -0
- package/bin/chunk-0cmx7k4c.js +1 -0
- package/bin/{chunk-cqb415s6.js → chunk-0qaq0sp8.js} +2 -2
- package/bin/chunk-0qjfahk9.js +2 -0
- package/bin/{chunk-9t1ne8xr.js → chunk-0zv3bks2.js} +2 -2
- package/bin/chunk-16xax8kk.js +1 -0
- package/bin/chunk-1gvscz88.js +5 -0
- package/bin/{chunk-6gg1ymer.js → chunk-1j27fzy1.js} +2 -2
- package/bin/chunk-1t167cvj.js +11 -0
- package/bin/{chunk-pb1zf0vb.js → chunk-1xh34aew.js} +2 -2
- package/bin/{chunk-zmv8cg4s.js → chunk-1zwajpwf.js} +3 -3
- package/bin/chunk-2w5xqhjm.js +1 -0
- package/bin/{chunk-f3ehv01n.js → chunk-3tedzb2j.js} +26 -26
- package/bin/{chunk-zehyn6vd.js → chunk-3ttrhqy3.js} +2 -2
- package/bin/chunk-3zkasqb8.js +1 -0
- package/bin/chunk-453ykvaw.js +2 -0
- package/bin/{chunk-3cyrcgm5.js → chunk-4991gz3y.js} +9 -9
- package/bin/chunk-4hkkdm2q.js +2 -0
- package/bin/chunk-4mjywsj8.js +3 -0
- package/bin/{chunk-cnxwmycy.js → chunk-4v41a1r9.js} +3 -3
- package/bin/{chunk-87zxtf66.js → chunk-4wy87hwd.js} +2 -2
- package/bin/{chunk-sfx2588q.js → chunk-579e4wv4.js} +2 -2
- package/bin/{chunk-1yacmegc.js → chunk-5adsx8x4.js} +2 -2
- package/bin/{chunk-b235azv4.js → chunk-5hg6kcfz.js} +13 -13
- package/bin/{chunk-rbj4fad9.js → chunk-5nm2jvg5.js} +13 -13
- package/bin/chunk-5tcdwep5.js +11 -0
- package/bin/chunk-5vzrpz50.js +2 -0
- package/bin/chunk-6ghcj4a9.js +3 -0
- package/bin/{chunk-b9yrw9et.js → chunk-77fmkpdz.js} +4 -4
- package/bin/chunk-7bcxj1jd.js +2 -0
- package/bin/{chunk-qf24e71w.js → chunk-7gmdnsdg.js} +1 -1
- package/bin/{chunk-fxswt9hc.js → chunk-7jtmwt5a.js} +2 -2
- package/bin/chunk-7kjgvxqa.js +2 -0
- package/bin/{chunk-bay038pj.js → chunk-7pw1550a.js} +2 -2
- package/bin/chunk-7rhz2gze.js +211 -0
- package/bin/chunk-837fky18.js +3 -0
- package/bin/chunk-84as6x83.js +1 -0
- package/bin/chunk-8e28hcny.js +2 -0
- package/bin/{chunk-k7hss0bd.js → chunk-914bp49r.js} +3 -3
- package/bin/chunk-97f2af6d.js +12 -0
- package/bin/{chunk-4r81ghg8.js → chunk-98715kc3.js} +2 -2
- package/bin/chunk-9ccw540k.js +2 -0
- package/bin/{chunk-ag6p3mbf.js → chunk-9t8n2des.js} +2 -2
- package/bin/chunk-9ybt6vbm.js +1 -0
- package/bin/{chunk-f15qyp41.js → chunk-a6gx7f5q.js} +1 -1
- package/bin/chunk-avwgktxb.js +2 -0
- package/bin/chunk-bkr5zm4h.js +2 -0
- package/bin/{chunk-2yxj593j.js → chunk-cbgq517y.js} +2 -2
- package/bin/chunk-d27mm390.js +1 -0
- package/bin/{chunk-185qefn1.js → chunk-dj92fss9.js} +2 -2
- package/bin/{chunk-v9w25rp2.js → chunk-dqxeztfa.js} +2 -2
- package/bin/chunk-drepsbb4.js +2 -0
- package/bin/chunk-f6svp4dp.js +2 -0
- package/bin/{chunk-q2bvyv39.js → chunk-fahk9h62.js} +2 -2
- package/bin/{chunk-v9b3w8q5.js → chunk-fb40xxz3.js} +2 -2
- package/bin/chunk-fnmwksnb.js +3 -0
- package/bin/chunk-fpc4p0j8.js +3 -0
- package/bin/{chunk-aqbrzx9z.js → chunk-fsyzs0tf.js} +1 -1
- package/bin/{chunk-e2mvmq2m.js → chunk-fxecgp5k.js} +1 -1
- package/bin/{chunk-wfzqnpc1.js → chunk-g3fpmyyn.js} +2 -2
- package/bin/{chunk-ehc9adfz.js → chunk-gc5sbfa5.js} +2 -2
- package/bin/chunk-gdm6yfqq.js +2 -0
- package/bin/{chunk-ea79xnn3.js → chunk-gk2q9a3f.js} +2 -2
- package/bin/{chunk-jje8nj8h.js → chunk-gt4csat6.js} +2 -2
- package/bin/chunk-gye8gabk.js +2 -0
- package/bin/{chunk-wry2hvrq.js → chunk-hk5rc6cd.js} +2 -2
- package/bin/{chunk-zqv0zhfb.js → chunk-hm0dkzed.js} +2 -2
- package/bin/chunk-hmpwg5za.js +16 -0
- package/bin/{chunk-rpywcvg1.js → chunk-j1tkmcae.js} +2 -2
- package/bin/chunk-j2bvj2yn.js +2 -0
- package/bin/chunk-jffktpqg.js +1 -0
- package/bin/chunk-jgs8an3h.js +18 -0
- package/bin/{chunk-8fmy5jtp.js → chunk-jmpb5633.js} +1 -1
- package/bin/{chunk-xp59apdb.js → chunk-jrjnqx78.js} +1 -1
- package/bin/chunk-k2k9vjq6.js +1 -0
- package/bin/{chunk-32pcmaqm.js → chunk-kpgfqkp0.js} +2 -2
- package/bin/{chunk-twdxayky.js → chunk-ks8xzc95.js} +2 -2
- package/bin/{chunk-qwqvt9v6.js → chunk-kswvyqq1.js} +2 -2
- package/bin/{chunk-gk3eqd50.js → chunk-m9pr03kn.js} +2 -2
- package/bin/chunk-mfn9qjm4.js +2 -0
- package/bin/{chunk-e99dv20z.js → chunk-msfw3jmc.js} +2 -2
- package/bin/chunk-mz0yjra0.js +5 -0
- package/bin/chunk-nbdw8fen.js +1 -0
- package/bin/{chunk-cak32x57.js → chunk-nkdk229f.js} +1 -1
- package/bin/chunk-nr20tvnw.js +3 -0
- package/bin/{chunk-ck8azecb.js → chunk-pazjhrnf.js} +5 -5
- package/bin/chunk-q806pqeh.js +1 -0
- package/bin/{chunk-abt0azmv.js → chunk-qka4mkmj.js} +2 -2
- package/bin/{chunk-0e4wawpq.js → chunk-qsr1a0rp.js} +1 -1
- package/bin/chunk-rchsme43.js +3 -0
- package/bin/{chunk-tf28796q.js → chunk-reyxk4bw.js} +1 -1
- package/bin/{chunk-av1a8fqp.js → chunk-rhvv1vvk.js} +2 -2
- package/bin/{chunk-a32vreya.js → chunk-rq0n0vcc.js} +2 -2
- package/bin/chunk-rqf7999q.js +42 -0
- package/bin/chunk-rssgmj7x.js +2 -0
- package/bin/chunk-ryzz5fht.js +2 -0
- package/bin/chunk-s2fnfyn9.js +2 -0
- package/bin/{chunk-83e12sjg.js → chunk-s2k4qntr.js} +2 -2
- package/bin/{chunk-c007p0t8.js → chunk-snhsjs4x.js} +56 -56
- package/bin/{chunk-j8fxp8ej.js → chunk-t2hy6tj9.js} +1 -1
- package/bin/chunk-t7nsgg5k.js +4 -0
- package/bin/chunk-tm7f32c7.js +14 -0
- package/bin/{chunk-2291ehh5.js → chunk-trveq4wg.js} +2 -2
- package/bin/chunk-vap4k11j.js +20 -0
- package/bin/chunk-vm5fx7td.js +3 -0
- package/bin/chunk-vy8gntez.js +1 -0
- package/bin/{chunk-awfwk64v.js → chunk-vyzptrea.js} +2 -2
- package/bin/{chunk-hfh0c082.js → chunk-w4ghe71n.js} +1 -1
- package/bin/chunk-wdsf44hs.js +2 -0
- package/bin/chunk-wjyaezs7.js +2 -0
- package/bin/{chunk-3a13dcs1.js → chunk-wndm3px3.js} +1 -1
- package/bin/chunk-x5jwwvs0.js +1 -0
- package/bin/chunk-x92cq59c.js +1 -0
- package/bin/{chunk-vgn5zcpv.js → chunk-xa18z1py.js} +2 -2
- package/bin/{chunk-4v5n0ayb.js → chunk-xarsrs08.js} +1 -1
- package/bin/{chunk-66hsjnw6.js → chunk-xx337zcw.js} +2 -2
- package/bin/chunk-xz6713tj.js +2 -0
- package/bin/chunk-yfnem6se.js +2 -0
- package/bin/{chunk-m7m9d4fb.js → chunk-ytdwk2fq.js} +2 -2
- package/bin/{chunk-jy006gcv.js → chunk-ze20rm02.js} +4 -4
- package/bin/chunk-zw86wnwe.js +7 -0
- package/bin/{chunk-h3tbf521.js → chunk-zxk7q0zk.js} +1 -1
- package/bin/shumai-app.html +1 -1
- package/bin/shumai-app.js +773 -776
- package/package.json +7 -7
- package/prisma/migrations/20260907021754_add_asset_upload_id/migration.sql +2 -0
- package/prisma/schema.prisma +1 -0
- package/bin/chunk-1kw2mbqb.js +0 -1
- package/bin/chunk-1wm6ptdx.js +0 -1
- package/bin/chunk-2520aq8j.js +0 -2
- package/bin/chunk-29zdp63z.js +0 -3
- package/bin/chunk-3swpwb9v.js +0 -1
- package/bin/chunk-3wmcx2bv.js +0 -2
- package/bin/chunk-5a8nt4me.js +0 -1
- package/bin/chunk-6bhn1p8v.js +0 -211
- package/bin/chunk-70c3xrgd.js +0 -2
- package/bin/chunk-7esm0hqb.js +0 -2
- package/bin/chunk-7fst8kdw.js +0 -12
- package/bin/chunk-8zqgaxvv.js +0 -1
- package/bin/chunk-a3dmtt2j.js +0 -1
- package/bin/chunk-ce8m4zeg.js +0 -3
- package/bin/chunk-e7mqtkzn.js +0 -2
- package/bin/chunk-ejbvfj4r.js +0 -1
- package/bin/chunk-ekfem7kf.js +0 -1
- package/bin/chunk-etwkk0xh.js +0 -1
- package/bin/chunk-evrdd32b.js +0 -2
- package/bin/chunk-fm6p03ad.js +0 -2
- package/bin/chunk-fyha3r13.js +0 -2
- package/bin/chunk-g0vs7k2x.js +0 -1
- package/bin/chunk-g84z2w7v.js +0 -16
- package/bin/chunk-h837fyed.js +0 -2
- package/bin/chunk-j20e0qsw.js +0 -7
- package/bin/chunk-n1jwdb0a.js +0 -1
- package/bin/chunk-p5gf1zdm.js +0 -4
- package/bin/chunk-pfgxggaj.js +0 -11
- package/bin/chunk-q16490pv.js +0 -2
- package/bin/chunk-qh81zhg1.js +0 -1
- package/bin/chunk-qwp3kwbz.js +0 -2
- package/bin/chunk-qydeqgyj.js +0 -5
- package/bin/chunk-r7dty1tg.js +0 -2
- package/bin/chunk-rhdxwebf.js +0 -2
- package/bin/chunk-rhh716z0.js +0 -42
- package/bin/chunk-rza4ae5z.js +0 -3
- package/bin/chunk-sk4e6rb1.js +0 -1
- package/bin/chunk-t2n1dbgx.js +0 -4
- package/bin/chunk-x8f4defx.js +0 -3
- package/bin/chunk-z3gkt8w1.js +0 -3
- package/bin/chunk-zh6fqq44.js +0 -1
package/bin/chunk-q16490pv.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{h,v,u,C,B,t,o,Q,U,A,Z,Fr,_e,ft,vt,ha,de,S,he,ge,Ae,V,Re,Zs,vm,at,mc,hc,km,b_,v_,Gm,$m,Qm,vf,wf,xf,Sf,el,hh,If,Tf,Ch,Eh,qf,Qh,dg,ap,oI,cp,up,We,Ye,Je,Xe,et,tt,rt,nt,fe,ce,pe,qe,ue,It,q,Rt,Tt,R,Gr,mr,Ng}from"./chunk-6bhn1p8v.js";import{Pc,Nc,Oc,Dc}from"./chunk-j20e0qsw.js";import{Mo}from"./chunk-3wmcx2bv.js";import{Yn}from"./chunk-ag6p3mbf.js";C();var ze=[];function Sl({teamId:d,projectId:F,assetId:y,folders:f,files:g,totalFolders:Pe,totalFiles:Be,totalFoldersSize:je,totalFilesSize:Oe,selectedItem:J,selectedIds:x,onItemSelect:Y,onItemDoubleClick:ee,onSaveField:He,onClearSelection:Le,fetchNextFoldersPage:te,hasNextFoldersPage:oe,isFetchingNextFoldersPage:N,fetchNextFilesPage:re,hasNextFilesPage:ie,isFetchingNextFilesPage:I,isRecentlyDeleted:_=!1,isRecents:T=!1,isLoading:ne=!1,isShareView:O=!1,isPublic:se=!1,shareId:Qe,allowDownload:ae=!0}){let w=Q(),{canEdit:E,canAdmin:Ke}=Rt(F),le=v(null),me=v(null),[W,Ve]=u(!0),[H,Ge]=u(!0),[Ze,M]=u(!1),[z,we]=u(""),[ot,L]=u(!1),ye=Pe??f.length,ve=Be??g.length,be=je??(f.length>0?f.reduce((e,r)=>e+(r.sizeByte||0),0):-1),De=Oe??(g.length>0?g.reduce((e,r)=>e+(r.sizeByte||0),0):-1),it=be>-1,st=De>-1,xe=(e,r)=>{if(r)return e===1?wf({count:e}):vf({count:e});else return e===1?Sf({count:e}):xf({count:e})},{editingItemId:ke,setEditingItemId:Ce,handleAction:Fe,onRenameSubmit:Ne,isDeleteDialogOpen:lt,setIsDeleteDialogOpen:dt,confirmDelete:ct,isDownloadDialogOpen:mt,setIsDownloadDialogOpen:K,isLoadingLinks:P,resolvedFiles:Ie,startDownload:pt}=Dc({teamId:d,projectId:F,assetId:y,folders:f,files:g,selectedIds:x,isPublic:se,shareId:Qe}),{ref:ut,inView:Te}=Tt();h(()=>{if(Te){if(oe&&!N)te();else if(ie&&!I)re()}},[Te,oe,N,ie,I,te,re]);let gt=mr((e)=>e.increment),ht=mr((e)=>e.decrement),wt=mr((e)=>e.startTask),yt=mr((e)=>e.updateFileProgress),bt=mr((e)=>e.completeFile),Ee=mr((e)=>e.failFile),Dt=A.api.teams[":teamId"].upload.tasks[":taskId"].$patch,{mutateAsync:X}=U({mutationFn:async(e)=>{let r=await Dt(e);if(!r.ok)throw Error("Failed to confirm upload");return await r.json()}}),xt=async(e,r,s)=>{let c=r?.reduce((a,i)=>{if(i.id)a[i.id]={url:i.url||"",fileId:i.fileId||""};return a},{});if(!c)return;let p=5,m=[...e],b=async()=>{while(m.length>0){let a=m.shift();if(a){let i=c[a.id];if(i&&i.url){gt();try{let n=new XMLHttpRequest,D=await new Promise((j,Se)=>{n.open("PUT",i.url),n.setRequestHeader("Content-Type",a.file.type),n.upload.onprogress=($e)=>{if($e.lengthComputable)yt(s,i.fileId,$e.loaded)},n.onload=()=>{if(n.status>=200&&n.status<300)j({ok:!0,status:n.status});else j({ok:!1,status:n.status})},n.onerror=()=>Se(Error("Network error")),n.onabort=()=>Se(Error("Upload aborted")),n.send(a.file)});if(D.ok)bt(s,i.fileId),await X({param:{teamId:d,taskId:s},json:{fileId:i.fileId}});else{Ee(s,i.fileId),R.error(`Failed to upload file: ${a.file.name}`),await X({param:{teamId:d,taskId:s},json:{fileId:i.fileId,errorMessage:`upload failed with status: ${D.status}`}});return}}catch(n){Ee(s,i.fileId),R.error(`Failed to upload file: ${a.file.name}`),await X({param:{teamId:d,taskId:s},json:{fileId:i.fileId,errorMessage:`upload failed with error: ${n instanceof Error?n.message:String(n)}`}});return}finally{ht(),w.invalidateQueries({queryKey:["search",d,y]})}}}}},l=Array(p).fill(null).map(()=>b());await Promise.all(l)},kt=A.api.teams[":teamId"].upload.tasks.$post,{mutate:Ct}=U({mutationFn:async(e)=>{let r=await kt(e);if(!r.ok)throw Error("Failed to create upload task");return await r.json()},onMutate:()=>({files:[...ze]}),onSuccess:async(e,r,s)=>{let c=s?.files||[],p=c.map((l)=>({fileId:e.presignedUrls?.find((i)=>i.id===l.id)?.fileId||l.id,name:l.file.name,size:l.file.size})).filter((l)=>!!l.fileId),m=c.filter((l)=>!l.file.name.startsWith(".")),b=m.length===1?m[0].file.name:`${m.length} Items`;if(e.taskId)wt(e.taskId,b,p);w.invalidateQueries({queryKey:["search",d,y]}),w.invalidateQueries({queryKey:["teams",d,"upload","tasks"]}),await xt(c,e.presignedUrls,e.taskId),w.invalidateQueries({queryKey:["search",d,y]}),w.invalidateQueries({queryKey:["teams",d,"upload","tasks"]})}}),Me=(e)=>{if(!e||e.length===0)return;let r=[],s=[],c=new Map;for(let p of e){let m=(p.webkitRelativePath||p.name).split("/");if(m.some((k)=>k.startsWith(".")))continue;let b=m.pop(),l=s,a="";for(let k of m)if(a=`${a}/${k}`,!c.has(a)){let D=[],j={name:k,type:"folder",id:Mo(),children:D,size:0};l.push(j),c.set(a,D),l=D}else l=c.get(a);let i={file:p,id:Mo()};r.push(i);let n=p.type;if(b.toLowerCase().endsWith(".wma")&&n?.startsWith("video/"))n=n.replace(/^video\//,"audio/");l.push({name:b,size:p.size,type:"file",id:i.id,children:[],mediaType:n})}ze=r,Ct({param:{teamId:d},json:{parentId:y,files:s}})},Ft=A.api.folders.$post,{mutate:Nt,isPending:Ue}=U({mutationFn:async(e)=>{let r=await Ft({json:{name:e,parentId:y}});if(!r.ok)throw Error("Failed to create folder");return await r.json()},onSuccess:()=>{R.success(el()),M(!1),we(""),w.invalidateQueries({queryKey:["search",d,y]}),w.invalidateQueries({queryKey:["folders"]})},onError:(e)=>{R.error(`Error: ${e.message}`)}}),{mutate:_t,isPending:G}=U({mutationFn:async()=>{let e=await A.api.projects[":projectId"]["empty-trash"].$post({param:{projectId:F}});if(!e.ok)throw Error("Failed to empty trash");return await e.json()},onSuccess:()=>{R.success(oI()),w.invalidateQueries({queryKey:["projects",F,"recently-deleted"]}),Le(),L(!1)},onError:(e)=>{R.error(`Error: ${e.message}`)}}),At=(e)=>{if(e.preventDefault(),!z.trim())return;Nt(z.trim())},Et=!ne&&f.length===0&&g.length===0&&!N&&!I;return o("div",{className:"flex-1 flex flex-col min-h-0 bg-background overflow-hidden relative",children:[E&&o(B,{children:[t("input",{type:"file",ref:le,multiple:!0,className:"hidden",onChange:(e)=>{if(e.target.files)Me(e.target.files)}}),t("input",{type:"file",ref:me,multiple:!0,webkitdirectory:"true",className:"hidden",onChange:(e)=>{if(e.target.files)Me(e.target.files)}})]}),_&&o("div",{className:"flex items-center justify-between px-4 py-2.5 bg-muted/20 border-b border-border text-sm shrink-0",children:[o("div",{className:"flex items-center gap-2 text-muted-foreground",children:[t(Fr,{className:"h-4 w-4 text-amber-500 shrink-0"}),t("span",{className:"text-xs",children:qf()})]}),Ke&&t(S,{variant:"destructive",size:"sm",disabled:G||f.length===0&&g.length===0,onClick:()=>L(!0),className:"h-7 px-2.5 text-xs font-medium bg-destructive/10 text-destructive border border-destructive/20 hover:bg-destructive hover:text-destructive-foreground",children:"Delete"})]}),o("div",{className:"flex-1 overflow-y-auto min-h-0 p-3 pb-24",children:[ne&&f.length===0&&g.length===0?t(Ng,{}):o("div",{className:"max-w-lg mx-auto w-full",children:[ye>0&&o("div",{className:"mb-4",children:[o("button",{onClick:()=>Ve(!W),className:"flex items-center gap-2 text-sm text-muted-foreground hover:text-foreground mb-3 font-medium select-none cursor-pointer",children:[W?t(_e,{className:"h-4 w-4"}):t(ft,{className:"h-4 w-4"}),o("span",{children:[xe(ye,!1),it?` • ${Gr(be)}`:""]})]}),W&&t("div",{className:"grid grid-cols-1 gap-4 w-full",children:f.map((e)=>t(Oc,{item:e,isSelected:J?.id===e.id,isChecked:x.has(e.id),isEditing:ke===e.id,onSelect:Y,onDoubleClick:ee,onContextMenu:()=>{},onDragStart:()=>{},onDrop:()=>{},onRename:(r)=>Ne(e,r),onFinishEditing:()=>Ce(null),onAction:(r,s)=>Fe(r,s),isRecentlyDeleted:_,isRecents:T,selectedCount:x.size,canEdit:E,isShareView:O,allowDownload:ae},e.id))})]}),ve>0&&o("div",{className:"mb-4",children:[o("button",{onClick:()=>Ge(!H),className:"flex items-center gap-2 text-sm text-muted-foreground hover:text-foreground mb-3 font-medium select-none cursor-pointer",children:[H?t(_e,{className:"h-4 w-4"}):t(ft,{className:"h-4 w-4"}),o("span",{children:[xe(ve,!0),st?` • ${Gr(De)}`:""]})]}),H&&t("div",{className:"grid grid-cols-1 gap-4 w-full",children:g.map((e)=>t(Nc,{teamId:d,item:e,isSelected:J?.id===e.id,isChecked:x.has(e.id),isEditing:ke===e.id,onSelect:Y,onDoubleClick:ee,onContextMenu:()=>{},onDragStart:()=>{},onDrop:()=>{},onRename:(r)=>Ne(e,r),onFinishEditing:()=>Ce(null),onSaveField:(r,s)=>He?.(e.id,r,s),fields:[],onAction:(r,s)=>Fe(r,s),isRecentlyDeleted:_,isRecents:T,selectedCount:x.size,canEdit:E,isShareView:O,allowDownload:ae},e.id))})]})]}),Et&&t("div",{className:"flex flex-col items-center justify-center h-64 text-sm text-muted-foreground p-6 text-center",children:T?o("div",{className:"flex flex-col items-center gap-2",children:[t(ha,{className:"h-10 w-10 text-muted-foreground/40 mb-1"}),t("p",{className:"font-medium text-foreground",children:If()}),t("p",{className:"text-xs text-muted-foreground",children:Tf()})]}):t("span",{children:ap()})}),t("div",{ref:ut,className:"py-4 flex justify-center items-center min-h-6",children:(N||I)&&t(Z,{className:"h-5 w-5 animate-spin text-muted-foreground"})})]}),E&&!_&&!T&&!O&&!se&&t("div",{className:"fixed bottom-6 right-6 z-30",children:o(he,{modal:!1,children:[t(ge,{asChild:!0,children:t(S,{size:"icon",className:"h-14 w-14 rounded-full bg-primary text-primary-foreground shadow-lg shadow-primary/25 hover:bg-primary/90 flex items-center justify-center","aria-label":"Actions",children:t(de,{className:"h-6 w-6"})})}),o(Ae,{align:"end",side:"top",className:"w-48 mb-2",children:[o(V,{onClick:()=>le.current?.click(),className:"flex items-center gap-2.5 py-2 cursor-pointer",children:[t(Yn,{className:"h-4 w-4"}),t("span",{children:cp()})]}),o(V,{onClick:()=>me.current?.click(),className:"flex items-center gap-2.5 py-2 cursor-pointer",children:[t(Yn,{className:"h-4 w-4"}),t("span",{children:up()})]}),o(V,{onClick:()=>M(!0),className:"flex items-center gap-2.5 py-2 cursor-pointer",children:[t(Pc,{className:"h-4 w-4"}),t("span",{children:el()})]})]})]})}),t(fe,{open:Ze,onOpenChange:M,children:t(ce,{className:"sm:max-w-md",children:o("form",{onSubmit:At,children:[o(pe,{children:[t(ue,{children:el()}),t(It,{children:$m()})]}),t("div",{className:"py-4",children:t(q,{autoFocus:!0,placeholder:$m(),value:z,onChange:(e)=>we(e.target.value)})}),o(qe,{children:[t(S,{type:"button",variant:"outline",onClick:()=>M(!1),children:Re()}),o(S,{type:"submit",disabled:!z.trim()||Ue,children:[Ue?t(Z,{className:"h-4 w-4 animate-spin mr-2"}):null,Zs()]})]})]})})}),t(We,{open:lt,onOpenChange:dt,children:o(Ye,{children:[o(Je,{children:[t(et,{children:hc()}),t(tt,{children:mc()})]}),o(Xe,{children:[t(nt,{children:Re()}),t(rt,{onClick:()=>ct(),className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:at()})]})]})}),t(We,{open:ot,onOpenChange:L,children:o(Ye,{children:[o(Je,{children:[t(et,{children:v_()}),t(tt,{children:b_()})]}),o(Xe,{children:[t(nt,{children:Re()}),t(rt,{onClick:()=>_t(),className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",disabled:G,children:G?"Deleting...":at()})]})]})}),t(fe,{open:mt,onOpenChange:K,children:o(ce,{className:"sm:max-w-md",children:[o(pe,{children:[t(ue,{children:P?Ch():vm()}),t(It,{children:P?Qh():Gm()})]}),P?o("div",{className:"space-y-4 py-6 flex flex-col items-center justify-center",children:[t(Z,{className:"h-8 w-8 animate-spin text-primary"}),t("span",{className:"text-sm font-medium text-muted-foreground mt-2",children:Eh()})]}):o("div",{className:"space-y-4 py-2",children:[t("div",{className:"text-sm text-muted-foreground",children:km({count:Ie.length})}),o("div",{className:"flex items-start gap-3 p-3 text-sm rounded-lg bg-amber-50 dark:bg-amber-950/30 text-amber-800 dark:text-amber-300 border border-amber-200 dark:border-amber-900/30",children:[t(Fr,{className:"h-5 w-5 shrink-0 mt-0.5"}),o("div",{children:[t("p",{className:"font-semibold",children:hh()}),t("p",{className:"mt-0.5 text-xs text-amber-700/90 dark:text-amber-400/90",children:Qm()})]})]})]}),t(qe,{children:!P?o(B,{children:[t(S,{variant:"outline",onClick:()=>K(!1),children:Re()}),o(S,{onClick:pt,className:"gap-2",disabled:Ie.length===0,children:[t(vt,{className:"h-4 w-4"}),dg()]})]}):t(S,{variant:"outline",onClick:()=>K(!1),children:Re()})})]})})]})}
|
|
2
|
-
export{Sl};
|
package/bin/chunk-qh81zhg1.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t,Ue}from"./chunk-6bhn1p8v.js";import"./chunk-j20e0qsw.js";import"./chunk-3wmcx2bv.js";import"./chunk-ehc9adfz.js";import"./chunk-7esm0hqb.js";import"./chunk-q16490pv.js";import"./chunk-c007p0t8.js";import"./chunk-b9yrw9et.js";import"./chunk-k7hss0bd.js";import"./chunk-e7mqtkzn.js";import"./chunk-cqb415s6.js";import{ts}from"./chunk-awfwk64v.js";import"./chunk-4r81ghg8.js";import"./chunk-gk3eqd50.js";import"./chunk-ag6p3mbf.js";import"./chunk-9t1ne8xr.js";import"./chunk-m7m9d4fb.js";import"./chunk-r7dty1tg.js";import"./chunk-2yxj593j.js";import"./chunk-ea79xnn3.js";function s(){let{shareId:e,folderId:a}=n.useParams();return t(ts,{shareId:e,initialFolderId:a})}var n=Ue("/share/$shareId/folders/$folderId")({component:s});export{n as Route};
|
package/bin/chunk-qwp3kwbz.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Md,Sn,Pl,Nl,Ol,Dl,Qc,Vc,kp,Dg,na,ko,Zr}from"./chunk-cak32x57.js";export{Ol as EncryptJWT,Nl as SignJWT,kp as UnsecuredJWT,Md as base64url,Dl as calculateJwkThumbprint,Qc as createLocalJWKSet,Vc as createRemoteJWKSet,Zr as decodeJwt,ko as decodeProtectedHeader,na as importJWK,Dg as importPKCS8,Pl as jwtDecrypt,Sn as jwtVerify};
|
package/bin/chunk-qydeqgyj.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Ke,w}from"./chunk-rza4ae5z.js";var E=w(function(M){Object.defineProperty(M,"__esModule",{value:!0});M.Allow=M.ALL=M.COLLECTION=M.ATOM=M.SPECIAL=M.INF=M._INFINITY=M.INFINITY=M.NAN=M.BOOL=M.NULL=M.OBJ=M.ARR=M.NUM=M.STR=void 0;M.STR=1;M.NUM=2;M.ARR=4;M.OBJ=8;M.NULL=16;M.BOOL=32;M.NAN=64;M.INFINITY=128;M._INFINITY=256;M.INF=M.INFINITY|M._INFINITY;M.SPECIAL=M.NULL|M.BOOL|M.INF|M.NAN;M.ATOM=M.STR|M.NUM|M.SPECIAL;M.COLLECTION=M.ARR|M.OBJ;M.ALL=M.ATOM|M.COLLECTION;M.Allow={STR:M.STR,NUM:M.NUM,ARR:M.ARR,OBJ:M.OBJ,NULL:M.NULL,BOOL:M.BOOL,NAN:M.NAN,INFINITY:M.INFINITY,_INFINITY:M._INFINITY,INF:M.INF,SPECIAL:M.SPECIAL,ATOM:M.ATOM,COLLECTION:M.COLLECTION,ALL:M.ALL};M.default=M.Allow});var Y=w(function(n){var z=n&&n.__createBinding||(Object.create?function(t,r,s,e){if(e===void 0)e=s;var i=Object.getOwnPropertyDescriptor(r,s);if(!i||("get"in i?!r.__esModule:i.writable||i.configurable))i={enumerable:!0,get:function(){return r[s]}};Object.defineProperty(t,e,i)}:function(t,r,s,e){if(e===void 0)e=s;t[e]=r[s]}),G=n&&n.__exportStar||function(t,r){for(var s in t)if(s!=="default"&&!Object.prototype.hasOwnProperty.call(r,s))z(r,t,s)};Object.defineProperty(n,"__esModule",{value:!0});n.Allow=n.MalformedJSON=n.PartialJSON=n.parseJSON=n.parse=void 0;var u=E();Object.defineProperty(n,"Allow",{enumerable:!0,get:function(){return u.Allow}});G(E(),n);class R extends Error{}n.PartialJSON=R;class B extends Error{}n.MalformedJSON=B;function m(t,r=u.Allow.ALL){if(typeof t!=="string")throw TypeError(`expecting str, got ${typeof t}`);if(!t.trim())throw Error(`${t} is empty`);return H(t.trim(),r)}n.parseJSON=m;var H=(t,r)=>{let s=t.length,e=0,i=(o)=>{throw new R(`${o} at position ${e}`)},a=(o)=>{throw new B(`${o} at position ${e}`)},f=()=>{if(N(),e>=s)i("Unexpected end of input");if(t[e]==='"')return P();if(t[e]==="{")return W();if(t[e]==="[")return D();if(t.substring(e,e+4)==="null"||u.Allow.NULL&r&&s-e<4&&"null".startsWith(t.substring(e)))return e+=4,null;if(t.substring(e,e+4)==="true"||u.Allow.BOOL&r&&s-e<4&&"true".startsWith(t.substring(e)))return e+=4,!0;if(t.substring(e,e+5)==="false"||u.Allow.BOOL&r&&s-e<5&&"false".startsWith(t.substring(e)))return e+=5,!1;if(t.substring(e,e+8)==="Infinity"||u.Allow.INFINITY&r&&s-e<8&&"Infinity".startsWith(t.substring(e)))return e+=8,1/0;if(t.substring(e,e+9)==="-Infinity"||u.Allow._INFINITY&r&&1<s-e&&s-e<9&&"-Infinity".startsWith(t.substring(e)))return e+=9,-1/0;if(t.substring(e,e+3)==="NaN"||u.Allow.NAN&r&&s-e<3&&"NaN".startsWith(t.substring(e)))return e+=3,NaN;return q()},P=()=>{let o=e,c=!1;e++;while(e<s&&(t[e]!=='"'||c&&t[e-1]==="\\"))c=t[e]==="\\"?!c:!1,e++;if(t.charAt(e)=='"')try{return JSON.parse(t.substring(o,++e-Number(c)))}catch(p){a(String(p))}else if(u.Allow.STR&r)try{return JSON.parse(t.substring(o,e-Number(c))+'"')}catch(p){return JSON.parse(t.substring(o,t.lastIndexOf("\\"))+'"')}i("Unterminated string literal")},W=()=>{e++,N();let o={};try{while(t[e]!=="}"){if(N(),e>=s&&u.Allow.OBJ&r)return o;let c=P();N(),e++;try{let p=f();o[c]=p}catch(p){if(u.Allow.OBJ&r)return o;else throw p}if(N(),t[e]===",")e++}}catch(c){if(u.Allow.OBJ&r)return o;else i("Expected '}' at end of object")}return e++,o},D=()=>{e++;let o=[];try{while(t[e]!=="]")if(o.push(f()),N(),t[e]===",")e++}catch(c){if(u.Allow.ARR&r)return o;i("Expected ']' at end of array")}return e++,o},q=()=>{if(e===0){if(t==="-")a("Not sure what '-' is");try{return JSON.parse(t)}catch(c){if(u.Allow.NUM&r)try{return JSON.parse(t.substring(0,t.lastIndexOf("e")))}catch(p){}a(String(c))}}let o=e;if(t[e]==="-")e++;while(t[e]&&",]}".indexOf(t[e])===-1)e++;if(e==s&&!(u.Allow.NUM&r))i("Unterminated number literal");try{return JSON.parse(t.substring(o,e))}catch(c){if(t.substring(o,e)==="-")i("Not sure what '-' is");try{return JSON.parse(t.substring(o,t.lastIndexOf("e")))}catch(p){a(String(p))}}},N=()=>{while(e<s&&`
|
|
3
|
-
\r `.includes(t[e]))e++};return f()},K=m;n.parse=K});var F=Ke(Y(),1),Q=new Set(['"',"\\","/","b","f","n","r","t","u"]);function X(t){let r=t.codePointAt(0);return r!==void 0&&r>=0&&r<=31}function Z(t){switch(t){case"\b":return"\\b";case"\f":return"\\f";case`
|
|
4
|
-
`:return"\\n";case"\r":return"\\r";case"\t":return"\\t";default:return`\\u${t.codePointAt(0)?.toString(16).padStart(4,"0")??"0000"}`}}function v(t){let r="",s=!1;for(let e=0;e<t.length;e++){let i=t[e];if(!s){if(r+=i,i==='"')s=!0;continue}if(i==='"'){r+=i,s=!1;continue}if(i==="\\"){let a=t[e+1];if(a===void 0){r+="\\\\";continue}if(a==="u"){let f=t.slice(e+2,e+6);if(/^[0-9a-fA-F]{4}$/.test(f)){r+=`\\u${f}`,e+=5;continue}}if(Q.has(a)){r+=`\\${a}`,e+=1;continue}r+="\\\\";continue}r+=X(i)?Z(i):i}return r}function zd(t){try{return JSON.parse(t)}catch(r){let s=v(t);if(s!==t)return JSON.parse(s);throw r}}function Qr(t){if(!t||t.trim()==="")return{};try{return zd(t)}catch{try{return F.parse(t)??{}}catch{try{return F.parse(v(t))??{}}catch{return{}}}}}
|
|
5
|
-
export{zd,Qr};
|
package/bin/chunk-r7dty1tg.js
DELETED
package/bin/chunk-rhdxwebf.js
DELETED