@shumai-one/shumai 0.3.7 → 0.3.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/{chunk-2xmsrq7f.js → chunk-03ec6p4p.js} +2 -2
- package/bin/chunk-0h1yw3eq.js +1 -0
- package/bin/chunk-0kfcfd0x.js +2 -0
- package/bin/chunk-0rydta2q.js +2 -0
- package/bin/{chunk-zg60j9x2.js → chunk-0x6zt5yg.js} +1 -1
- package/bin/{chunk-ftc48rbb.js → chunk-11j7ejan.js} +3 -3
- package/bin/chunk-1eqdvehm.js +2 -0
- package/bin/chunk-24ke0th1.css +1 -0
- package/bin/{chunk-t3tp9trj.js → chunk-2ckj039r.js} +2 -2
- package/bin/chunk-2wcfw38x.js +1 -0
- package/bin/{chunk-af6wbhkv.js → chunk-331s5eb9.js} +2 -2
- package/bin/{chunk-7hnw6y6d.js → chunk-39j992fb.js} +2 -2
- package/bin/{chunk-9s02m95j.js → chunk-3h4t28zz.js} +2 -2
- package/bin/{chunk-qmpph1gt.js → chunk-4st1t79p.js} +2 -2
- package/bin/{chunk-zjj9qj6y.js → chunk-4yp5add5.js} +2 -2
- package/bin/chunk-5657zj59.js +2 -0
- package/bin/chunk-5ctpz542.js +78 -0
- package/bin/{chunk-p4c4z0f2.js → chunk-5efr8prc.js} +1 -1
- package/bin/chunk-5ex69zt3.js +2 -0
- package/bin/{chunk-0t8q76ac.js → chunk-6ja68bbj.js} +1 -1
- package/bin/{chunk-1khzycf9.js → chunk-6ts9djn2.js} +1 -1
- package/bin/{chunk-260wywfb.js → chunk-79wjyt2p.js} +1 -1
- package/bin/{chunk-9xhnmnnb.js → chunk-7a4347xe.js} +2 -2
- package/bin/chunk-7t9c532y.js +1 -0
- package/bin/{chunk-x3ynjbt5.js → chunk-7w01v7bw.js} +47 -47
- package/bin/{chunk-v98e3gex.js → chunk-7wh2mr72.js} +1 -1
- package/bin/chunk-7zvv37z0.js +7 -0
- package/bin/{chunk-t9t9evan.js → chunk-8hex1hjk.js} +2 -2
- package/bin/{chunk-n4gghgrj.js → chunk-8qryr65z.js} +2 -2
- package/bin/{chunk-81tb4v5v.js → chunk-9fc118ea.js} +2 -2
- package/bin/{chunk-esrtafz0.js → chunk-9s1fdecm.js} +1 -1
- package/bin/chunk-9vjkb4vh.js +1 -0
- package/bin/{chunk-k48y9e5s.js → chunk-a2m63585.js} +1 -1
- package/bin/{chunk-5gtew41y.js → chunk-a6s80m0k.js} +1 -1
- package/bin/{chunk-50keqtz9.js → chunk-agvb6bpw.js} +1 -1
- package/bin/{chunk-karn564z.js → chunk-ar79dg9g.js} +2 -2
- package/bin/{chunk-6fv38qdc.js → chunk-awaf0g5z.js} +2 -2
- package/bin/chunk-b0kh9jpt.js +1 -0
- package/bin/{chunk-9gzy30zm.js → chunk-bdwtaj3w.js} +2 -2
- package/bin/{chunk-3dx0p1ge.js → chunk-c32x8x6z.js} +1 -1
- package/bin/{chunk-38g3s1f3.js → chunk-c4yr75hy.js} +2 -2
- package/bin/chunk-d5v9nz51.js +1 -0
- package/bin/{chunk-zwgf211t.js → chunk-ddt5224b.js} +2 -2
- package/bin/{chunk-6zs49mef.js → chunk-dntwxkyf.js} +1 -1
- package/bin/{chunk-tzt4c1dm.js → chunk-dt9wfyf2.js} +2 -2
- package/bin/{chunk-tpp9qf5m.js → chunk-eekmnfn4.js} +2 -2
- package/bin/{chunk-a0k1b4sq.js → chunk-ej18j83b.js} +1 -1
- package/bin/{chunk-7872prvg.js → chunk-f37ywvvp.js} +1 -1
- package/bin/{chunk-7k3ccca6.js → chunk-fbqr4v70.js} +1 -1
- package/bin/chunk-ff8zrme6.js +1 -0
- package/bin/{chunk-qy93r7tm.js → chunk-fhd9yadg.js} +2 -2
- package/bin/chunk-g2qeb32y.js +2 -0
- package/bin/chunk-gtqchcj0.js +2 -0
- package/bin/{chunk-b8v7jvkb.js → chunk-h7jb1xb4.js} +2 -2
- package/bin/chunk-hdx9q31r.js +1 -0
- package/bin/chunk-hk5pwxhf.js +2 -0
- package/bin/chunk-hx2y4d75.js +2 -0
- package/bin/{chunk-dej1gq35.js → chunk-j4byth37.js} +1 -1
- package/bin/chunk-jkpxykx9.css +1 -0
- package/bin/chunk-jq28ge97.js +1 -0
- package/bin/{chunk-2086rsb2.js → chunk-jt7fdhke.js} +1 -1
- package/bin/{chunk-jszpvg8e.js → chunk-jvn0xnj8.js} +2 -2
- package/bin/{chunk-g60v3jc1.js → chunk-jx9tqjh9.js} +1 -1
- package/bin/chunk-mffjg6zb.js +2 -0
- package/bin/{chunk-4bn9eb9h.js → chunk-mv4v52ah.js} +1 -1
- package/bin/{chunk-gjdmnfms.js → chunk-mwrheqe3.js} +1 -1
- package/bin/{chunk-ptw49k86.js → chunk-n3997tqa.js} +1 -1
- package/bin/chunk-n3e4agsa.js +2 -0
- package/bin/chunk-naaa5ejw.js +2 -0
- package/bin/chunk-nc9hbzad.js +3 -0
- package/bin/{chunk-s0hgykza.js → chunk-nn753fbs.js} +2 -2
- package/bin/{chunk-hqkmdp31.js → chunk-nw1ch5d8.js} +2 -2
- package/bin/chunk-p2wyyvfa.js +2 -0
- package/bin/chunk-p65avrcv.js +2 -0
- package/bin/{chunk-fcs4v6jq.js → chunk-pfwt5734.js} +2 -2
- package/bin/chunk-ppwy5dja.js +1 -0
- package/bin/chunk-ptmxkptc.js +14 -0
- package/bin/chunk-px660tvj.js +2 -0
- package/bin/{chunk-3kqdgddm.js → chunk-q3y6kdkh.js} +2 -2
- package/bin/chunk-qbs0nvbn.js +3 -0
- package/bin/{chunk-gjn3w26y.js → chunk-qp1hkx9k.js} +2 -2
- package/bin/{chunk-87wqbn4g.js → chunk-qt6j0fm6.js} +2 -2
- package/bin/{chunk-3xzgddev.js → chunk-r0c9vmfm.js} +1 -1
- package/bin/chunk-r7crhkhn.js +5 -0
- package/bin/{chunk-b3jh3hf1.js → chunk-rq6bvf0t.js} +2 -2
- package/bin/{chunk-zqg4f56h.js → chunk-s78r8f5v.js} +1 -1
- package/bin/chunk-t6gqzden.js +1 -0
- package/bin/{chunk-nvjp2rnh.js → chunk-tfwtxwth.js} +2 -2
- package/bin/{chunk-1sqz0va1.js → chunk-tk362keq.js} +2 -2
- package/bin/chunk-tn24as5d.js +2 -0
- package/bin/{chunk-qdycy714.js → chunk-tx42kfdh.js} +1 -1
- package/bin/{chunk-vxpnp4xg.js → chunk-v2dksv7p.js} +2 -2
- package/bin/chunk-v2n1hwt3.js +1 -0
- package/bin/chunk-v5c6t1w3.js +41 -0
- package/bin/{chunk-0ycwr0kb.js → chunk-va9hwggw.js} +1 -1
- package/bin/{chunk-bancgvrc.js → chunk-vf6mpxrd.js} +2 -2
- package/bin/{chunk-f2j2cqd1.js → chunk-vhcsdnzv.js} +2 -2
- package/bin/{chunk-48nzw50r.js → chunk-vtm39m0n.js} +1 -1
- package/bin/{chunk-br5xkaf7.js → chunk-vwayy6dy.js} +3 -3
- package/bin/chunk-w4e52ade.js +2 -0
- package/bin/{chunk-6v39c8eg.js → chunk-wjk0f9fq.js} +2 -2
- package/bin/chunk-wk153p7c.js +1 -0
- package/bin/{chunk-cqq8e3hc.js → chunk-wth2f791.js} +2 -2
- package/bin/{chunk-503qq6sa.js → chunk-wy82m4nq.js} +2 -2
- package/bin/{chunk-r5dv0rfv.js → chunk-wzw7rrfy.js} +2 -2
- package/bin/{chunk-kpn9d97x.js → chunk-x6ta6e2v.js} +1 -1
- package/bin/chunk-y8wj6g7y.js +11 -0
- package/bin/chunk-ympx92ct.js +1 -0
- package/bin/{chunk-v8w2nxew.js → chunk-ytgtf0ak.js} +1 -1
- package/bin/{chunk-9nyhmtp9.js → chunk-yvknqnkb.js} +2 -2
- package/bin/chunk-yx6mahz0.js +1 -0
- package/bin/{chunk-x6532q76.js → chunk-z71h48pj.js} +1 -1
- package/bin/{chunk-ytzk81tr.js → chunk-z7m6sa7g.js} +1 -1
- package/bin/chunk-z8s40zfa.js +68 -0
- package/bin/{chunk-1xzc6z02.js → chunk-zafjhkkk.js} +1 -1
- package/bin/{chunk-rfyaphas.js → chunk-zcxajg6j.js} +2 -2
- package/bin/{chunk-0jkqmbcx.js → chunk-zq665ybs.js} +1 -1
- package/bin/{chunk-98j2z6he.js → chunk-zvq0btde.js} +3 -3
- package/bin/{chunk-qcqw7wnv.js → chunk-zwny8t7c.js} +2 -2
- package/bin/shumai-app.html +1 -1
- package/bin/shumai-app.js +494 -370
- package/package.json +7 -7
- package/prisma/migrations/20260814090300_add_asset_agentmd/migration.sql +2 -0
- package/prisma/migrations/20260814125921_create_asset_agentmd_table/migration.sql +21 -0
- package/prisma/migrations/20260816020719_add_agent_permission/migration.sql +2 -0
- package/prisma/migrations/20260817022118_add_quota_rules_and_records/migration.sql +68 -0
- package/prisma/migrations/20260818025858_remove_agent_skill_call_count_from_quota_resource_type/migration.sql +14 -0
- package/prisma/schema.prisma +82 -0
- package/bin/chunk-0xern7e4.js +0 -1
- package/bin/chunk-0yngn45x.js +0 -2
- package/bin/chunk-2mqqghrz.js +0 -2
- package/bin/chunk-4egayx81.js +0 -2
- package/bin/chunk-4rbzswqs.js +0 -71
- package/bin/chunk-60hpa5kf.js +0 -3
- package/bin/chunk-69tt1pvr.js +0 -2
- package/bin/chunk-815ezj20.js +0 -1
- package/bin/chunk-83k0wa5k.js +0 -2
- package/bin/chunk-85eg9xqx.js +0 -1
- package/bin/chunk-86aagej8.js +0 -1
- package/bin/chunk-8y1v9dm9.js +0 -2
- package/bin/chunk-9gq9782d.js +0 -1
- package/bin/chunk-bv88se28.css +0 -1
- package/bin/chunk-dv1zpd2p.js +0 -15
- package/bin/chunk-eetrc0j1.js +0 -3
- package/bin/chunk-eztggp8r.js +0 -1
- package/bin/chunk-gf5ds9r9.js +0 -2
- package/bin/chunk-h9emz0zb.js +0 -2
- package/bin/chunk-h9k2atte.js +0 -1
- package/bin/chunk-kkq4wvnc.js +0 -1
- package/bin/chunk-ksx113sp.js +0 -1
- package/bin/chunk-m6a4rzdt.js +0 -62
- package/bin/chunk-mw8f8ngt.js +0 -7
- package/bin/chunk-n76r6s9k.js +0 -2
- package/bin/chunk-qh9rz2ee.js +0 -11
- package/bin/chunk-rvspnthy.js +0 -1
- package/bin/chunk-sjjndwt4.js +0 -2
- package/bin/chunk-tvg9gvqs.js +0 -1
- package/bin/chunk-xp4dcyk3.js +0 -1
- package/bin/chunk-y8aehqr8.js +0 -2
- package/bin/chunk-yvxt48r4.js +0 -1
package/bin/chunk-69tt1pvr.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Wh as a,Yh as l,Zh as o}from"./chunk-m6a4rzdt.js";var p=a()(o((i)=>({fileViewLeftSidebarCollapsed:!0,setFileViewLeftSidebarCollapsed:(e)=>i({fileViewLeftSidebarCollapsed:e}),fileViewRightSidebarCollapsed:!1,setFileViewRightSidebarCollapsed:(e)=>i({fileViewRightSidebarCollapsed:e}),fileListLeftSidebarCollapsed:!1,setFileListLeftSidebarCollapsed:(e)=>i({fileListLeftSidebarCollapsed:e}),fileListRightSidebarCollapsed:!0,setFileListRightSidebarCollapsed:(e)=>i({fileListRightSidebarCollapsed:e}),shareConfigLeftSidebarCollapsed:!1,setShareConfigLeftSidebarCollapsed:(e)=>i({shareConfigLeftSidebarCollapsed:e}),shareConfigRightSidebarCollapsed:!1,setShareConfigRightSidebarCollapsed:(e)=>i({shareConfigRightSidebarCollapsed:e}),viewModes:{},setViewMode:(e,d)=>i((s)=>({viewModes:{...s.viewModes,[e]:d}})),videoTimeDisplayMode:"standard",setVideoTimeDisplayMode:(e)=>i({videoTimeDisplayMode:e})}),{name:"ui-storage",storage:l(()=>localStorage)}));
|
|
2
|
-
export{p as Eg};
|
package/bin/chunk-815ezj20.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as P,b as A,c as C,d as D,e as z,f as _}from"./chunk-b3jh3hf1.js";import{t as VJ}from"./chunk-dv1zpd2p.js";import{ba as ZJ}from"./chunk-r5dv0rfv.js";import{ca as $J,da as OJ,ea as XJ}from"./chunk-83k0wa5k.js";import{ma as DJ,na as KJ,oa as S}from"./chunk-8y1v9dm9.js";import{Kf as u,Lf as g,Mf as b,Nf as c,Of as n}from"./chunk-6v39c8eg.js";import{zg as Q}from"./chunk-9s02m95j.js";import"./chunk-87wqbn4g.js";import{Fg as t}from"./chunk-f2j2cqd1.js";import{fh as m}from"./chunk-2mqqghrz.js";import{Ah as K,Ak as e,Ck as d,Dh as _J,Dk as v,Eh as f,Ek as p,Fk as I,Hh as r,Ik as Y,Jk as kJ,Lj as GJ,Pj as wJ,Rh as NJ,bi as M,ei as RJ,fk as QJ,mi as YJ,ni as N,ui as s,xh as o,xj as i,zh as J}from"./chunk-m6a4rzdt.js";import{Nl as l}from"./chunk-dej1gq35.js";var yJ=l(o(),1);var WJ=l(o(),1);function EJ({teamId:O}){let[X,k]=WJ.useState("team"),[V,R]=WJ.useState("1h"),{data:q,isLoading:F}=f({queryKey:["teams",O,"ai-usage",V,"team"],queryFn:async()=>{let Z=await M.api.teams[":teamId"]["ai-usage"].$get({param:{teamId:O},query:{timeframe:V}});if(!Z.ok)throw Error("Failed to fetch team AI usage");return await Z.json()},enabled:!!O&&X==="team"}),{data:T,isLoading:B}=f({queryKey:["teams",O,"members"],queryFn:async()=>{let Z=await M.api.teams[":teamId"].members.$get({param:{teamId:O},query:{}});if(!Z.ok)throw Error("Failed to fetch team members");return await Z.json()},enabled:!!O&&X==="members"}),h=_J({queries:(T||[]).map((Z)=>({queryKey:["teams",O,"ai-usage",V,Z.id],queryFn:async()=>{let G=await M.api.teams[":teamId"]["ai-usage"].$get({param:{teamId:O},query:{timeframe:V,userId:Z.id}});if(!G.ok)throw Error(`Failed to fetch AI usage for member ${Z.id}`);return await G.json()},enabled:!!O&&X==="members"}))}),y=B||h.some((Z)=>Z.isLoading),H=(Z)=>{if(!Z)return"U";let G=Z.split(" ");if(G.length>1)return`${G[0][0]}${G[G.length-1][0]}`.toUpperCase();return Z.substring(0,2).toUpperCase()},x=(Z)=>{if(!Z)return"";switch(Z.toLowerCase()){case"owner":return Y.owner();case"editor":return Y.editor();case"reviewer":return Y.reviewer();default:return Z}},$=(Z)=>(Z??0).toLocaleString(),L=(Z)=>`$${(Z??0).toFixed(6)}`;return K(u,{className:"border-border/60 shadow-sm",children:[K(g,{className:"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between pb-6",children:[K("div",{children:[J(b,{className:"text-xl font-semibold tracking-tight",children:Y.ai_usage()}),J(c,{className:"text-sm text-muted-foreground mt-1",children:Y.ai_usage_description()})]}),K("div",{className:"flex flex-wrap items-center gap-3",children:[K(KJ,{type:"single",value:X,onValueChange:(Z)=>{if(Z)k(Z)},className:"border rounded-lg p-1 bg-muted/30",children:[J(S,{value:"team",className:"px-3 py-1.5 text-xs font-medium",children:Y.team_view()}),J(S,{value:"members",className:"px-3 py-1.5 text-xs font-medium",children:Y.members_view()})]}),K(KJ,{type:"single",value:V,onValueChange:(Z)=>{if(Z)R(Z)},className:"border rounded-lg p-1 bg-muted/30",children:[J(S,{value:"1h",className:"px-2.5 py-1.5 text-xs font-medium",children:"1h"}),J(S,{value:"24h",className:"px-2.5 py-1.5 text-xs font-medium",children:"24h"}),J(S,{value:"7d",className:"px-2.5 py-1.5 text-xs font-medium",children:"7d"}),J(S,{value:"30d",className:"px-2.5 py-1.5 text-xs font-medium",children:"30d"})]})]})]}),J(n,{children:X==="team"?F?J("div",{className:"flex h-48 items-center justify-center",children:J(N,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):J("div",{className:"rounded-md border",children:K(P,{children:[J(A,{children:K(D,{children:[J(z,{children:Y.team()}),J(z,{className:"text-right",children:Y.input_tokens()}),J(z,{className:"text-right",children:Y.output_tokens()}),J(z,{className:"text-right",children:Y.cache_read_tokens()}),J(z,{className:"text-right",children:Y.total_tokens()}),J(z,{className:"text-right",children:Y.cost()})]})}),J(C,{children:K(D,{children:[J(_,{className:"font-medium",children:Y.team()}),J(_,{className:"text-right",children:$(q?.team?.inputTokens)}),J(_,{className:"text-right",children:$(q?.team?.outputTokens)}),J(_,{className:"text-right",children:$(q?.team?.cacheReadTokens)}),J(_,{className:"text-right font-medium",children:$(q?.team?.totalTokens)}),J(_,{className:"text-right font-medium",children:L(q?.team?.cost)})]})})]})}):y?J("div",{className:"flex h-48 items-center justify-center",children:J(N,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):J("div",{className:"rounded-md border",children:K(P,{children:[J(A,{children:K(D,{children:[J(z,{children:Y.members()}),J(z,{children:Y.role()}),J(z,{className:"text-right",children:Y.input_tokens()}),J(z,{className:"text-right",children:Y.output_tokens()}),J(z,{className:"text-right",children:Y.cache_read_tokens()}),J(z,{className:"text-right",children:Y.total_tokens()}),J(z,{className:"text-right",children:Y.cost()})]})}),J(C,{children:(T||[]).map((Z,G)=>{let U=h[G]?.data?.member;return K(D,{children:[J(_,{children:K("div",{className:"flex items-center gap-3",children:[K(v,{className:"h-8 w-8 rounded-full",children:[Z.image&&J(p,{src:Z.image,alt:Z.name,className:"object-cover"}),J(I,{className:"bg-primary/20 text-xs",children:H(Z.name)})]}),K("div",{className:"flex flex-col",children:[J("span",{className:"text-sm font-medium leading-none",children:Z.name}),J("span",{className:"text-xs text-muted-foreground mt-0.5",children:Z.email})]})]})}),J(_,{className:"text-xs text-muted-foreground",children:x(Z.role)}),J(_,{className:"text-right",children:$(U?.inputTokens)}),J(_,{className:"text-right",children:$(U?.outputTokens)}),J(_,{className:"text-right",children:$(U?.cacheReadTokens)}),J(_,{className:"text-right font-medium",children:$(U?.totalTokens)}),J(_,{className:"text-right font-medium",children:L(U?.cost)})]},Z.id)})})]})})})]})}var a=l(o(),1);function qJ({teamId:O}){let[X,k]=a.useState(null),{ref:V,inView:R}=t(),{data:q,isLoading:F,isError:T,fetchNextPage:B,hasNextPage:h,isFetchingNextPage:y}=r({queryKey:["teams",O,"agent-sessions"],queryFn:async({pageParam:$})=>{let L=await M.api.teams[":teamId"]["agent-sessions"].$get({param:{teamId:O},query:{first:"20",after:$?String($):void 0}});if(!L.ok)throw Error("Failed to fetch agent sessions");return await L.json()},initialPageParam:"",getNextPageParam:($)=>$.pageInfo.cursor||void 0,enabled:!!O});a.useEffect(()=>{if(R&&h&&!y)B()},[R,h,y,B]);let H=q?.pages.flatMap(($)=>$.data).filter(($)=>$.id!=="pending")||[],x=($)=>{switch($){case"comment":return J(Q,{variant:"outline",className:"bg-blue-500/10 text-blue-600 dark:text-blue-400 border-blue-500/20",children:Y.session_type_comment()});case"chat":return J(Q,{variant:"outline",className:"bg-violet-500/10 text-violet-600 dark:text-violet-400 border-violet-500/20",children:Y.session_type_chat()});case"naming":return J(Q,{variant:"outline",className:"bg-amber-500/10 text-amber-600 dark:text-amber-400 border-amber-500/20",children:Y.session_type_naming()});default:return J(Q,{variant:"outline",className:"bg-muted text-muted-foreground border-border",children:$})}};return K("div",{className:"space-y-6",children:[K(u,{className:"border border-border/50 shadow-xs",children:[J(g,{className:"pb-4",children:J("div",{className:"flex items-center justify-between",children:K("div",{children:[K(b,{className:"text-xl font-bold flex items-center gap-2",children:[J(i,{className:"w-5 h-5 text-violet-500"}),Y.sessions()]}),J(c,{className:"mt-1 text-sm text-muted-foreground",children:Y.sessions_description()})]})})}),J(n,{children:F?J("div",{className:"flex h-64 items-center justify-center",children:J(N,{className:"h-8 w-8 animate-spin text-muted-foreground"})}):T?J("div",{className:"flex h-64 items-center justify-center text-destructive",children:"Failed to load agent sessions."}):H.length===0?K("div",{className:"flex flex-col items-center justify-center py-12 text-center text-muted-foreground",children:[J(i,{className:"w-10 h-10 text-muted-foreground/40 mb-3"}),J("p",{className:"text-base font-medium",children:Y.no_sessions_found()})]}):K("div",{className:"rounded-md border border-border/50 overflow-hidden",children:[K(P,{children:[J(A,{className:"bg-muted/40",children:K(D,{children:[J(z,{children:Y.session_name()}),J(z,{children:Y.creator()}),J(z,{children:Y.session_type()}),J(z,{className:"text-right",children:Y.create_time()})]})}),J(C,{children:H.map(($)=>K(D,{onClick:()=>k($.id),className:"cursor-pointer hover:bg-muted/50 transition-colors",children:[J(_,{className:"font-medium",children:K("div",{className:"flex flex-col",children:[J("span",{className:"text-sm font-semibold text-foreground",children:$.name||Y.untitled_session()}),J("span",{className:"text-xs font-mono text-muted-foreground/70",children:$.id})]})}),J(_,{children:K("div",{className:"flex items-center gap-2",children:[K(v,{className:"h-6 w-6",children:[J(p,{src:$.creator?.image||void 0}),J(I,{className:"text-[10px]",children:$.creator?.name?.[0]?.toUpperCase()||"?"})]}),J("span",{className:"text-sm text-foreground/90",children:$.creator?.name||"System / Agent"})]})}),J(_,{children:x($.type)}),J(_,{className:"text-right text-xs text-muted-foreground",children:m($.createdAt)})]},$.id))})]}),J("div",{ref:V,className:"py-4 flex justify-center",children:y&&J(N,{className:"h-6 w-6 animate-spin text-muted-foreground"})})]})})]}),J(VJ,{sessionId:X,open:!!X,onOpenChange:($)=>{if(!$)k(null)}})]})}var j=l(o(),1);var hJ=Object.values(DJ);function MJ({teamId:O}){let[X,k]=j.useState([]),[V,R]=j.useState([]),[q,F]=j.useState(""),{ref:T,inView:B}=t(),{data:h}=f({queryKey:["teams",O,"members"],queryFn:async()=>{let W=await M.api.teams[":teamId"].members.$get({param:{teamId:O},query:{}});if(!W.ok)return[];return await W.json()},enabled:!!O}),y=h||[],{data:H,isLoading:x,isError:$,fetchNextPage:L,hasNextPage:Z,isFetchingNextPage:G}=r({queryKey:["teams",O,"audit-logs",X,V,q],queryFn:async({pageParam:W})=>{let E=await M.api.teams[":teamId"]["audit-logs"].$get({param:{teamId:O},query:{first:"20",after:W?String(W):void 0,actions:X.length>0?X:void 0,userIds:V.length>0?V:void 0,itemId:q.trim()||void 0}});if(!E.ok)throw Error("Failed to fetch audit logs");return await E.json()},initialPageParam:"",getNextPageParam:(W)=>W.pageInfo.endCursor||void 0,enabled:!!O});j.useEffect(()=>{if(B&&Z&&!G)L()},[B,Z,G,L]);let U=H?.pages.flatMap((W)=>W.nodes)||[],zJ=H?.pages[0]?.total??0,LJ=(W)=>{k((E)=>E.includes(W)?E.filter((w)=>w!==W):[...E,W])},UJ=(W)=>{R((E)=>E.includes(W)?E.filter((w)=>w!==W):[...E,W])},FJ=(W)=>{if(W.includes("delete")||W.includes("remove")||W.includes("revoke"))return J(Q,{variant:"outline",className:"bg-destructive/10 text-destructive border-destructive/20 font-mono text-xs",children:W});if(W.includes("create")||W.includes("add"))return J(Q,{variant:"outline",className:"bg-emerald-500/10 text-emerald-600 dark:text-emerald-400 border-emerald-500/20 font-mono text-xs",children:W});if(W.includes("update")||W.includes("reparent")||W.includes("copy"))return J(Q,{variant:"outline",className:"bg-blue-500/10 text-blue-600 dark:text-blue-400 border-blue-500/20 font-mono text-xs",children:W});return J(Q,{variant:"outline",className:"bg-muted text-muted-foreground border-border font-mono text-xs",children:W})},BJ=new Map(y.map((W)=>[W.userId||W.id,W]));return J("div",{className:"space-y-6",children:K(u,{className:"border border-border/50 shadow-xs",children:[K(g,{className:"pb-4",children:[K("div",{className:"flex flex-col md:flex-row md:items-center justify-between gap-4",children:[K("div",{children:[K(b,{className:"text-xl font-bold flex items-center gap-2",children:[J(s,{className:"h-5 w-5 text-primary"}),Y.audit_logs()]}),J(c,{className:"mt-1",children:Y.audit_logs_description()})]}),zJ>0&&K(Q,{variant:"secondary",className:"w-fit text-xs font-normal",children:[zJ," ",Y.audit_logs()]})]}),K("div",{className:"mt-4 flex flex-wrap items-center gap-3 pt-4 border-t border-border/40",children:[K($J,{children:[J(OJ,{asChild:!0,children:K(d,{variant:"outline",size:"sm",className:"h-9 gap-2 text-xs border-dashed",children:[J(YJ,{className:"h-3.5 w-3.5"}),Y.filter_by_action(),X.length>0&&J(Q,{variant:"secondary",className:"ml-1 px-1.5 py-0 text-[10px]",children:X.length})]})}),K(XJ,{className:"w-64 p-2",align:"start",children:[J("div",{className:"text-xs font-semibold text-muted-foreground px-2 py-1 mb-1",children:Y.select_actions()}),J("div",{className:"max-h-60 overflow-y-auto space-y-1 pr-1",children:hJ.map((W)=>K("label",{className:"flex items-center gap-2 px-2 py-1.5 hover:bg-accent rounded-md cursor-pointer text-xs",children:[J(ZJ,{checked:X.includes(W),onCheckedChange:()=>LJ(W)}),J("span",{className:"font-mono",children:W})]},W))}),X.length>0&&J(d,{variant:"ghost",size:"sm",className:"w-full mt-2 h-7 text-xs text-muted-foreground hover:text-foreground",onClick:()=>k([]),children:"Clear Actions"})]})]}),K($J,{children:[J(OJ,{asChild:!0,children:K(d,{variant:"outline",size:"sm",className:"h-9 gap-2 text-xs border-dashed",children:[J(YJ,{className:"h-3.5 w-3.5"}),Y.filter_by_user(),V.length>0&&J(Q,{variant:"secondary",className:"ml-1 px-1.5 py-0 text-[10px]",children:V.length})]})}),K(XJ,{className:"w-64 p-2",align:"start",children:[J("div",{className:"text-xs font-semibold text-muted-foreground px-2 py-1 mb-1",children:Y.select_users()}),J("div",{className:"max-h-60 overflow-y-auto space-y-1 pr-1",children:y.map((W)=>{let E=W.userId||W.user?.id||W.id,w=W.user?.name||W.name||E,JJ=W.user?.image||W.image;return K("label",{className:"flex items-center gap-2 px-2 py-1.5 hover:bg-accent rounded-md cursor-pointer text-xs",children:[J(ZJ,{checked:V.includes(E),onCheckedChange:()=>UJ(E)}),K(v,{className:"h-5 w-5",children:[J(p,{src:JJ||void 0}),J(I,{className:"text-[10px]",children:w.slice(0,2).toUpperCase()})]}),J("span",{className:"truncate",children:w})]},E)})}),V.length>0&&J(d,{variant:"ghost",size:"sm",className:"w-full mt-2 h-7 text-xs text-muted-foreground hover:text-foreground",onClick:()=>R([]),children:"Clear Users"})]})]}),K("div",{className:"relative flex-1 min-w-[200px] max-w-xs",children:[J(GJ,{className:"absolute left-2.5 top-2.5 h-4 w-4 text-muted-foreground"}),J(kJ,{type:"text",placeholder:Y.search_item_id(),value:q,onChange:(W)=>F(W.target.value),className:"pl-8 pr-8 h-9 text-xs"}),q&&J("button",{onClick:()=>F(""),className:"absolute right-2.5 top-2.5 text-muted-foreground hover:text-foreground",children:J(QJ,{className:"h-4 w-4"})})]}),(X.length>0||V.length>0||q)&&J(d,{variant:"ghost",size:"sm",className:"h-9 px-2 text-xs text-muted-foreground hover:text-foreground",onClick:()=>{k([]),R([]),F("")},children:"Clear all"})]})]}),K(n,{className:"p-0",children:[x?J("div",{className:"flex h-64 items-center justify-center",children:J(N,{className:"h-8 w-8 animate-spin text-muted-foreground"})}):$?J("div",{className:"p-8 text-center text-sm text-destructive",children:"Failed to load audit logs."}):U.length===0?J("div",{className:"p-12 text-center text-sm text-muted-foreground",children:Y.no_audit_logs()}):K(P,{children:[J(A,{children:K(D,{className:"hover:bg-transparent border-b border-border/50",children:[J(z,{className:"w-[180px] text-xs font-semibold",children:Y.action()}),J(z,{className:"w-[200px] text-xs font-semibold",children:Y.user()}),J(z,{className:"text-xs font-semibold",children:Y.item_id()}),J(z,{className:"text-xs font-semibold",children:Y.project_id()}),J(z,{className:"w-[160px] text-right text-xs font-semibold",children:Y.timestamp()})]})}),J(C,{children:U.map((W)=>{let E=W.userId?BJ.get(W.userId):null,w=E?.user?.name||E?.name||W.userId||"System",JJ=E?.user?.image||E?.image;return K(D,{className:"hover:bg-muted/40 transition-colors",children:[J(_,{className:"py-3 font-medium",children:FJ(W.action)}),J(_,{className:"py-3",children:K("div",{className:"flex items-center gap-2",children:[K(v,{className:"h-6 w-6",children:[J(p,{src:JJ||void 0}),J(I,{className:"text-[10px]",children:w.slice(0,2).toUpperCase()})]}),J("span",{className:"text-xs font-medium text-foreground truncate max-w-[140px]",children:w})]})}),J(_,{className:"py-3 text-xs font-mono text-muted-foreground",children:W.itemId||"-"}),J(_,{className:"py-3 text-xs font-mono text-muted-foreground",children:W.projectId||"-"}),J(_,{className:"py-3 text-right text-xs text-muted-foreground",children:m(W.createdAt)})]},W.id)})})]}),J("div",{ref:T,className:"py-4 flex justify-center",children:G&&J(N,{className:"h-6 w-6 animate-spin text-muted-foreground"})})]})]})})}function HJ(){let{teamId:O}=SJ.useParams(),[X,k]=yJ.useState("audit-logs"),{data:V,isLoading:R}=f({queryKey:["teams",O,"me"],queryFn:async()=>{let q=await M.api.teams[":teamId"].me.$get({param:{teamId:O}});if(!q.ok)throw Error("Failed to fetch me");return await q.json()},enabled:!!O});if(R)return J("div",{className:"flex h-screen items-center justify-center",children:J(N,{className:"h-8 w-8 animate-spin text-muted-foreground"})});if(V?.role?.toLowerCase()!=="owner")return K("div",{className:"flex h-full flex-col items-center justify-center p-8 text-center",children:[J(wJ,{className:"h-12 w-12 text-destructive mb-4"}),J("h2",{className:"text-xl font-bold tracking-tight mb-2",children:Y.access_denied()}),J("p",{className:"text-sm text-muted-foreground max-w-md",children:Y.only_owner_dashboard()})]});return J("div",{className:"h-full bg-background font-sans selection:bg-primary/20 transition-colors duration-300",children:K("div",{className:"flex flex-col md:flex-row h-full",children:[J("div",{className:"w-full h-full md:w-72 bg-sidebar border-b md:border-b-0 md:border-r border-sidebar-border z-10 md:left-16 overflow-y-auto transition-colors duration-300",children:K("nav",{className:"p-4 space-y-1 mt-4",children:[J("div",{className:"mb-2 px-4 text-xs font-semibold text-sidebar-foreground/60 uppercase tracking-wider",children:Y.dashboard()}),J("div",{className:"mt-4 mb-2 px-4 text-xs font-semibold text-sidebar-foreground/60 uppercase tracking-wider pt-4 border-t border-sidebar-border",children:Y.team_category()}),K("button",{onClick:()=>k("audit-logs"),className:e("w-full flex items-center gap-3 px-4 py-3 text-sm font-medium rounded-lg transition-all",X==="audit-logs"?"bg-sidebar-accent text-sidebar-accent-foreground ring-1 ring-sidebar-border":"text-sidebar-foreground/75 hover:bg-sidebar-accent hover:text-sidebar-accent-foreground"),children:[J(s,{className:"w-5 h-5"}),Y.audit_logs(),X==="audit-logs"&&J("div",{className:"ml-auto w-1.5 h-1.5 rounded-full bg-sidebar-primary"})]}),J("div",{className:"mt-4 mb-2 px-4 text-xs font-semibold text-sidebar-foreground/60 uppercase tracking-wider pt-4 border-t border-sidebar-border",children:Y.ai()}),K("button",{onClick:()=>k("ai-usage"),className:e("w-full flex items-center gap-3 px-4 py-3 text-sm font-medium rounded-lg transition-all",X==="ai-usage"?"bg-sidebar-accent text-sidebar-accent-foreground ring-1 ring-sidebar-border":"text-sidebar-foreground/75 hover:bg-sidebar-accent hover:text-sidebar-accent-foreground"),children:[J(RJ,{className:"w-5 h-5"}),Y.usage(),X==="ai-usage"&&J("div",{className:"ml-auto w-1.5 h-1.5 rounded-full bg-sidebar-primary"})]}),K("button",{onClick:()=>k("ai-sessions"),className:e("w-full flex items-center gap-3 px-4 py-3 text-sm font-medium rounded-lg transition-all",X==="ai-sessions"?"bg-sidebar-accent text-sidebar-accent-foreground ring-1 ring-sidebar-border":"text-sidebar-foreground/75 hover:bg-sidebar-accent hover:text-sidebar-accent-foreground"),children:[J(i,{className:"w-5 h-5"}),Y.sessions(),X==="ai-sessions"&&J("div",{className:"ml-auto w-1.5 h-1.5 rounded-full bg-sidebar-primary"})]})]})}),J("div",{className:"flex-1 overflow-y-auto p-4 md:p-8",children:K("div",{className:"max-w-6xl mx-auto space-y-8",children:[X==="audit-logs"&&J(MJ,{teamId:O}),X==="ai-usage"&&J(EJ,{teamId:O}),X==="ai-sessions"&&J(qJ,{teamId:O})]})})]})})}var SJ=NJ("/teams/$teamId/dashboard")({component:HJ});export{SJ as Route};
|
package/bin/chunk-83k0wa5k.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Ak as r,qk as e,zh as t}from"./chunk-m6a4rzdt.js";function m({...o}){return t(e.Root,{"data-slot":"popover",...o})}function s({...o}){return t(e.Trigger,{"data-slot":"popover-trigger",...o})}function v({className:o,align:n="center",sideOffset:a=4,...i}){return t(e.Portal,{children:t(e.Content,{"data-slot":"popover-content",align:n,sideOffset:a,className:r("z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",o),...i})})}
|
|
2
|
-
export{m as ca,s as da,v as ea};
|
package/bin/chunk-85eg9xqx.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a,b as s,c as e,d as E,e as $,f as q}from"./chunk-b3jh3hf1.js";import{qa as t}from"./chunk-tpp9qf5m.js";import{eb as r}from"./chunk-4rbzswqs.js";import"./chunk-rfyaphas.js";import{ib as x}from"./chunk-5gtew41y.js";import{jb as j}from"./chunk-3kqdgddm.js";import"./chunk-karn564z.js";import{Df as l}from"./chunk-jszpvg8e.js";import{Sf as o}from"./chunk-s0hgykza.js";import{Eg as i}from"./chunk-69tt1pvr.js";import{Fg as d}from"./chunk-f2j2cqd1.js";import{th as h}from"./chunk-n4gghgrj.js";import{$h as B,Ah as K,Bh as L,Ck as m,Dk as p,Ek as c,Fh as y,Fk as n,Gh as F,Hh as S,Hi as T,Ik as X,Mh as P,Oj as u,Rh as C,Ui as g,Yi as b,bi as A,lj as I,ni as f,xh as OG,yh as k,zh as G}from"./chunk-m6a4rzdt.js";import{Nl as qG}from"./chunk-dej1gq35.js";var _=qG(OG(),1);var zG=(Y)=>{if(!Y)return"??";return Y.split(" ").map((z)=>z[0]).slice(0,2).join("").toUpperCase()};function BG(){let{projectId:Y}=MG.useParams(),{teamId:z,ensureTeamIdForProject:U}=h(),GG=L(),JG=P();_.useEffect(()=>{U(Y)},[Y,U]);let{data:M}=y(l(Y)),D=M?.rootFolder,[KG,XG]=_.useState(240),{shareConfigLeftSidebarCollapsed:Q,setShareConfigLeftSidebarCollapsed:YG}=i(),{data:V,isLoading:ZG,fetchNextPage:R,hasNextPage:v,isFetchingNextPage:W}=S({queryKey:["shares",Y],queryFn:async({pageParam:J})=>{let Z=await A.api.projects[":projectId"].shares.$get({param:{projectId:Y},query:{first:"20",after:J}});if(!Z.ok)throw Error("Failed to fetch share links");return await Z.json()},initialPageParam:"",getNextPageParam:(J)=>J.pageInfo?.cursor||void 0,enabled:!!Y}),{ref:_G,inView:w}=d();_.useEffect(()=>{if(w&&v&&!W)R()},[w,v,W,R]);let H=_.useMemo(()=>V?.pages.flatMap((J)=>J.data)||[],[V]),{mutate:$G}=F({mutationFn:async({id:J,isDisabled:Z})=>{let O=await A.api.shares[":shareId"].$put({param:{shareId:J},json:{isDisabled:Z}});if(!O.ok)throw Error("Failed to update share link");return await O.json()},onSuccess:()=>{GG.invalidateQueries({queryKey:["shares",Y]}),B.success(X.share_link_status_updated())},onError:(J)=>{B.error(X.error_message({message:J.message}))}});if(!z||!D||!M)return G(o,{});let N=async(J)=>{let Z=`${window.location.origin}/share/${J}`;if(await x(Z))B.success(X.link_copied())};return G("div",{className:"flex flex-1 flex-col bg-background min-h-0",children:K("div",{className:"flex flex-1 overflow-hidden relative",children:[!Q&&G("div",{className:"md:hidden fixed inset-0 bg-black/50 z-40",onClick:()=>YG(!0)}),!Q&&K(k,{children:[G("div",{className:"bg-background",style:{width:KG},children:G(t,{teamId:z,projectId:Y,projectName:M.name??"",rootFolderId:D})}),G(r,{onResize:(J)=>{XG((Z)=>Math.max(180,Math.min(400,Z+J)))},className:"hidden md:block"})]}),K("div",{className:"flex-1 flex flex-col min-h-0 bg-card overflow-hidden",children:[G("header",{className:"h-14 border-b flex items-center justify-between px-6 shrink-0 bg-background/50 backdrop-blur-sm sticky top-0 z-10",children:K("div",{className:"flex items-center gap-2",children:[G(u,{className:"h-5 w-5 text-primary"}),G("h1",{className:"font-bold text-lg text-foreground",children:X.all_share_links()})]})}),G("div",{className:"flex-1 overflow-y-auto p-6",children:ZG?G("div",{className:"flex justify-center items-center h-64",children:G("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary"})}):H.length===0?K("div",{className:"flex flex-col items-center justify-center h-64 text-muted-foreground gap-3",children:[G(I,{className:"h-10 w-10 text-muted-foreground/50"}),G("p",{children:X.no_share_links_yet()})]}):K("div",{className:"border border-border rounded-xl bg-background overflow-hidden shadow-xs",children:[K(a,{children:[G(s,{children:K(E,{className:"hover:bg-transparent bg-muted/20",children:[G($,{className:"font-semibold px-4 py-3",children:X.name()}),G($,{className:"font-semibold px-4 py-3",children:X.public_link()}),G($,{className:"font-semibold px-4 py-3",children:X.creator()}),G($,{className:"font-semibold px-4 py-3 w-[150px]",children:X.created_date()}),G($,{className:"font-semibold px-4 py-3 text-right w-[120px]",children:X.active()})]})}),G(e,{children:H.map((J)=>{let Z=`${window.location.origin}/share/${J.id}`;return K(E,{className:"hover:bg-muted/10 transition-colors",children:[G(q,{className:"font-medium px-4 py-3.5",children:G("span",{className:"cursor-pointer hover:underline text-foreground",onClick:()=>JG({to:"/projects/$projectId/shares/$shareId",params:{projectId:Y,shareId:J.id}}),children:J.name})}),G(q,{className:"px-4 py-3.5 max-w-[300px]",children:K("div",{className:"flex items-center gap-2 group",children:[G("span",{className:"truncate text-xs font-mono bg-muted/50 text-muted-foreground px-2 py-1 rounded-md border border-border cursor-pointer hover:bg-muted transition-colors flex-1",onClick:()=>N(J.id),title:X.click_to_copy_link(),children:Z}),G(m,{variant:"ghost",size:"icon-sm",className:"h-7 w-7 opacity-0 group-hover:opacity-100 transition-opacity",onClick:()=>N(J.id),children:G(g,{className:"h-3.5 w-3.5"})}),G("a",{href:Z,target:"_blank",rel:"noreferrer",className:"text-muted-foreground hover:text-foreground inline-flex items-center",children:G(b,{className:"h-3.5 w-3.5"})})]})}),G(q,{className:"px-4 py-3.5",children:K("div",{className:"flex items-center gap-2",children:[K(p,{className:"h-6 w-6",children:[J.creator?.image&&G(c,{src:J.creator.image,alt:J.creator.name,className:"object-cover"}),G(n,{className:"text-[10px]",children:zG(J.creator?.name)})]}),G("span",{className:"text-sm font-medium text-foreground truncate max-w-[150px]",children:J.creator?.name||X.unknown()})]})}),G(q,{className:"px-4 py-3.5 text-muted-foreground text-sm",children:K("div",{className:"flex items-center gap-2",children:[G(T,{className:"h-3.5 w-3.5 text-muted-foreground/70"}),G("span",{children:new Date(J.createdAt).toLocaleDateString()})]})}),G(q,{className:"px-4 py-3.5 text-right",children:G("div",{className:"flex justify-end",children:G(j,{checked:!J.isDisabled,onCheckedChange:(O)=>$G({id:J.id,isDisabled:!O})})})})]},J.id)})})]}),G("div",{ref:_G,className:"h-10 w-full flex items-center justify-center",children:W&&G(f,{className:"h-6 w-6 animate-spin text-primary"})})]})})]})]})})}var MG=C("/projects/$projectId/shares/")({component:BG});export{MG as Route};
|
package/bin/chunk-86aagej8.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{hb as cz}from"./chunk-0yngn45x.js";import"./chunk-5gtew41y.js";import{jb as r}from"./chunk-3kqdgddm.js";import{kb as Cz,lb as fz,mb as Iz,nb as gz,ob as uz,pb as lz,qb as dz,rb as pz}from"./chunk-karn564z.js";import{Uf as Dz}from"./chunk-38g3s1f3.js";import"./chunk-2xmsrq7f.js";import{Lg as m}from"./chunk-af6wbhkv.js";import{gh as yz}from"./chunk-2mqqghrz.js";import{hh as C,jh as f,kh as I,lh as w,uh as bz}from"./chunk-n4gghgrj.js";import{$h as Yz,Ah as J,Ak as _z,Bh as i,Ci as Rz,Ck as F,Dk as hz,Eh as o,Ek as Sz,Fj as Zz,Fk as wz,Gh as q,Ik as V,Ji as a,Jk as j,Kk as kz,Mh as n,Mk as qz,Nk as Az,Ok as Ez,Pk as Fz,Qk as Uz,Rh as Bz,_j as Jz,bi as X,ci as Vz,di as Pz,fk as Kz,li as vz,ni as Gz,pi as Tz,qi as Lz,vh as Mz,xh as $z,yh as P,zh as z}from"./chunk-m6a4rzdt.js";import{Nl as Wz}from"./chunk-dej1gq35.js";var k=Wz($z(),1);function Nz({open:Z,onOpenChange:T,mode:L,teamId:U,project:W}){let A=i(),K=n(),[H,O]=k.useState(""),[y,B]=k.useState(!0),[g,M]=k.useState(void 0),[b,N]=k.useState(void 0),[E,D]=k.useState(!1),v=k.useRef(null);k.useEffect(()=>{if(Z)if(L==="edit"&&W)O(W.name||""),M(W.coverImageKey),N(W.coverImage),B(W.enableNotification!==!1);else O(""),M(void 0),N(void 0),B(!0)},[Z,L,W]);let u=X.api.teams[":teamId"].projects.$post,{mutate:t}=q({mutationFn:async(Q)=>{let _=await u({param:{teamId:U},json:Q});if(!_.ok)throw Error(V.failed_create_project());return await _.json()},onSuccess:(Q)=>{A.invalidateQueries({queryKey:["teams",U,"projects"]}),T(!1);let _=Q;if(_&&typeof _.id==="string")K({to:"/projects/$projectId",params:{projectId:_.id}})}}),l=X.api.projects[":projectId"].$put,{mutate:s}=q({mutationFn:async(Q)=>{let _=await l({param:{projectId:W.id},json:Q});if(!_.ok)throw Error(V.failed_update_project());return await _.json()},onSuccess:()=>{A.invalidateQueries({queryKey:["teams",U,"projects"]}),T(!1)}}),e=X.api.teams[":teamId"].files.$post,{mutate:d}=q({mutationFn:async({file:Q})=>{let _=await e({param:{teamId:U},form:{file:Q}});if(!_.ok)throw Error(V.failed_upload_file());return await _.json()},onSuccess:(Q)=>{let _=Q;if(_&&typeof _.key==="string")M(_.key);D(!1)},onError:()=>{D(!1)}}),R=(Q)=>{let _=Q.target.files?.[0];if(_){D(!0);let zz=URL.createObjectURL(_);N(zz),d({file:_})}},h=()=>{v.current?.click()},p=(Q)=>{Q.stopPropagation(),M(void 0),N(void 0)},S=()=>{if(!H.trim())return;if(L==="create")t({name:H.trim(),coverImageKey:g,enableNotification:y});else if(L==="edit"&&W?.id)s({name:H.trim(),coverImageKey:g,enableNotification:y})};return z(kz,{open:Z,onOpenChange:T,children:J(qz,{className:"sm:max-w-[550px] overflow-hidden rounded-2xl border border-border/60 bg-background/95 backdrop-blur-md shadow-2xl p-0 gap-0",children:[J(Az,{className:"relative overflow-hidden bg-gradient-to-br from-primary/5 to-transparent p-6 border-b border-border/40",children:[z("div",{className:"absolute top-0 right-0 w-24 h-24 bg-primary/10 rounded-full blur-2xl pointer-events-none"}),z("div",{className:"absolute bottom-0 left-10 w-32 h-12 bg-primary/5 rounded-full blur-xl pointer-events-none"}),z("div",{className:"flex items-center gap-3",children:J("div",{children:[z(Fz,{className:"text-xl font-semibold tracking-tight text-foreground",children:L==="create"?V.create_new_project():V.project_settings()}),z(Uz,{className:"text-xs text-muted-foreground/80 mt-1",children:L==="create"?V.configure_new_project_description():V.manage_project_description()})]})})]}),J("div",{className:"space-y-6 p-6 max-h-[75vh] overflow-y-auto",children:[J("div",{className:"space-y-2",children:[z(m,{htmlFor:"name",className:"text-sm font-semibold tracking-tight text-foreground",children:V.project_name()}),J("div",{className:"relative",children:[z(j,{id:"name",value:H,onChange:(Q)=>O(Q.target.value),placeholder:V.project_name_placeholder(),className:"h-11 px-4 rounded-xl border-border/80 focus-visible:ring-ring/25 focus-visible:border-primary transition-all shadow-xs pr-10"}),H.trim()&&z("div",{className:"absolute inset-y-0 right-3 flex items-center",children:z(a,{className:"w-4 h-4 text-primary"})})]}),z("p",{className:"text-[11px] text-muted-foreground",children:V.project_name_hint()})]}),J("div",{className:"space-y-3 border-t border-border/40 pt-5",children:[J("div",{className:"flex items-center justify-between",children:[J(m,{className:"text-sm font-semibold tracking-tight text-foreground flex items-center gap-1.5",children:[z(Lz,{className:"w-4 h-4 text-primary"}),V.project_cover()]}),b&&J("button",{type:"button",onClick:p,className:"text-xs text-muted-foreground hover:text-destructive hover:bg-destructive/5 px-2.5 py-1 rounded-lg transition-all flex items-center gap-1 font-medium",children:[z(Kz,{className:"w-3.5 h-3.5"}),V.remove_cover()]})]}),J("div",{className:"relative aspect-square w-48 mx-auto rounded-2xl border border-dashed border-border flex items-center justify-center cursor-pointer overflow-hidden group shadow-inner bg-muted/20 transition-all duration-300 hover:border-primary/50 hover:bg-muted/40",onClick:h,children:[z("input",{type:"file",ref:v,className:"hidden",accept:"image/*",onChange:R}),E&&z("div",{className:"absolute inset-0 bg-background/70 backdrop-blur-xs flex flex-col items-center justify-center gap-2 z-20",children:J("div",{className:"flex items-center gap-2 px-3 py-1.5 bg-background border rounded-full shadow-lg",children:[z(Gz,{className:"w-4 h-4 animate-spin text-primary"}),z("span",{className:"text-xs font-semibold text-foreground",children:V.uploading()})]})}),b?J(P,{children:[z("img",{src:b,alt:V.cover_preview(),className:"w-full h-full object-cover transition-transform duration-500 group-hover:scale-105"}),J("div",{className:"absolute inset-0 bg-black/45 opacity-0 group-hover:opacity-100 transition-opacity duration-300 flex flex-col items-center justify-center gap-1.5 text-white z-10",children:[z(Jz,{className:"w-5 h-5 transform translate-y-1 group-hover:translate-y-0 transition-transform duration-300"}),z("span",{className:"text-xs font-semibold",children:V.upload_image()})]})]}):J("div",{className:"flex flex-col items-center gap-2 text-center p-4",children:[z("div",{className:"p-2.5 rounded-full bg-background border shadow-xs group-hover:scale-110 transition-transform duration-300",children:z(Jz,{className:"w-4 h-4 text-muted-foreground"})}),J("div",{children:[z("p",{className:"text-xs font-medium text-foreground",children:V.upload_cover()}),z("p",{className:"text-[11px] text-muted-foreground mt-0.5 max-w-[140px] mx-auto leading-normal",children:V.upload_cover_hint()})]})]})]})]}),J("div",{className:"space-y-3 border-t border-border/40 pt-5",children:[J(m,{className:"text-sm font-semibold tracking-tight text-foreground flex items-center gap-1.5",children:[z(Tz,{className:"w-4 h-4 text-primary"}),V.project_preferences()]}),J("div",{className:"flex items-start justify-between rounded-xl border border-border/50 bg-muted/10 p-4 transition-all duration-300 hover:bg-muted/20",children:[J("div",{className:"space-y-1 pr-4",children:[J("div",{className:"text-sm font-semibold flex items-center gap-2 text-foreground",children:[z(Rz,{className:"w-4 h-4 text-primary"}),V.activity_notifications()]}),z("p",{className:"text-xs text-muted-foreground leading-normal",children:V.activity_notifications_description()})]}),z(r,{checked:y,onCheckedChange:B,disabled:E,className:"mt-0.5"})]})]})]}),J(Ez,{className:"flex items-center justify-end gap-3 px-6 py-4 bg-muted/20 border-t border-border/40",children:[z(F,{type:"button",variant:"ghost",onClick:()=>T(!1),disabled:E,className:"rounded-xl h-10 px-4 hover:bg-muted font-medium text-sm text-muted-foreground hover:text-foreground transition-colors",children:V.cancel()}),z(F,{type:"submit",onClick:S,disabled:!H.trim()||E,className:"rounded-xl h-10 px-5 bg-primary text-primary-foreground hover:bg-primary/90 font-semibold text-sm shadow-lg shadow-primary/10 hover:shadow-primary/20 active:scale-98 transition-all flex items-center gap-2",children:E?J(P,{children:[z(Gz,{className:"w-4 h-4 animate-spin"}),V.processing()]}):L==="create"?V.create_project():V.save_changes()})]})]})})}function Oz({sortBy:Z,sortDirection:T,onSortChange:L}){let U=(H)=>{L(H,T)},W=()=>{L(Z,T==="asc"?"desc":"asc")},A=(H)=>{switch(H){case"name":return V.sort_name();case"created_at":return V.sort_created();case"updated_at":return V.sort_updated();default:return H}},K=T==="asc";return J(C,{children:[z(f,{asChild:!0,children:J(F,{variant:"outline",className:"gap-2 bg-muted/50",children:[z("span",{className:"text-muted-foreground",children:V.sorted_by_label()}),z("span",{className:"font-medium text-foreground",children:A(Z)})]})}),J(I,{align:"end",className:"w-56 p-2",children:[z("div",{className:"text-xs font-semibold text-muted-foreground mb-2 px-2",children:V.sort_by()}),J(C,{children:[z(f,{asChild:!0,children:J(F,{variant:"ghost",className:"w-full justify-between font-normal px-2 h-10 bg-muted/50 hover:bg-muted mb-2 border",children:[z("span",{children:A(Z)}),z(Vz,{className:"h-4 w-4 opacity-50"})]})}),z(I,{className:"w-52",children:["name","created_at","updated_at"].map((H)=>J(w,{onClick:()=>U(H),className:"justify-between",children:[A(H),Z===H&&z(a,{className:"h-4 w-4"})]},H))})]}),J(F,{variant:"ghost",className:"w-full justify-between font-normal px-2 h-10 bg-muted/50 hover:bg-muted border",onClick:W,children:[z("span",{className:"text-muted-foreground",children:Z==="name"?K?z(P,{children:V.sort_a_to_z()}):z(P,{children:V.sort_z_to_a()}):K?z(P,{children:V.sort_oldest_to_newest()}):z(P,{children:V.sort_newest_to_oldest()})}),K?z(Pz,{className:"h-4 w-4 opacity-50"}):z(Vz,{className:"h-4 w-4 opacity-50"})]})]})]})}var $=Wz($z(),1);function JG(){let{teamId:Z}=VG.useParams(),{canEdit:T,canAdmin:L}=bz(),U=n(),W=i(),[A,K]=$.useState(null),[H,O]=$.useState(!1),[y,B]=$.useState("create"),[g,M]=$.useState(void 0),[b,N]=$.useState(!1),[E,D]=$.useState(void 0),[v,u]=$.useState(""),[t,l]=$.useState(!1),{metadata:s,setMetadata:e}=Dz(),d=`team:${Z}:projects:sort`,R=s[d],[h,p]=$.useState(()=>R?.sortBy||"name"),[S,Q]=$.useState(()=>R?.sortDirection||"asc");$.useEffect(()=>{if(R?.sortBy&&R.sortBy!==h)p(R.sortBy);if(R?.sortDirection&&R.sortDirection!==S)Q(R.sortDirection)},[R]);let _=X.api.teams[":teamId"].projects.$get,{data:zz}=o({queryKey:["teams",Z,"projects",h,S],queryFn:async()=>{let G=await _({param:{teamId:Z},query:{sortBy:h,sortDirection:S}});if(!G.ok)throw Error("Failed to fetch projects");return await G.json()},placeholderData:Mz}),{data:Hz}=o({queryKey:["teams",Z,"members"],queryFn:async()=>{let G=await X.api.teams[":teamId"].members.$get({param:{teamId:Z},query:{}});if(!G.ok)throw Error("Failed to fetch members");return await G.json()}}),{data:Qz}=o({queryKey:["teams",Z,"me"],queryFn:async()=>{let G=await X.api.teams[":teamId"].me.$get({param:{teamId:Z}});if(!G.ok)throw Error("Failed to fetch me");return await G.json()}}),xz=X.api.teams[":teamId"].invite.$post,mz=q({mutationFn:async(G)=>{let Y=await xz(G);if(!Y.ok)throw Error("Failed to invite");return await Y.json()}}),c=q({mutationFn:async(G)=>{if(!(await X.api.projects[":projectId"].$delete({param:{projectId:G}})).ok)throw Error("Failed to delete project")},onSuccess:()=>{W.invalidateQueries({queryKey:["teams",Z,"projects"]})}}),iz=q({mutationFn:async(G)=>{let Y=await X.api.projects[":projectId"].$put({param:{projectId:G.id},json:{enableNotification:!G.enableNotification}});if(!Y.ok)throw Error("Failed to update project notification settings");return await Y.json()},onSuccess:()=>{W.invalidateQueries({queryKey:["teams",Z,"projects"]}),Yz.success(V.project_notification_updated())},onError:(G)=>{Yz.error(G instanceof Error?G.message:V.failed_update_project_notification())}}),Xz=()=>{B("create"),M(void 0),O(!0)},nz=()=>{K("create"),setTimeout(()=>{K(null)},100),setTimeout(()=>{Xz()},200)},az=(G)=>{B("edit"),M(G),O(!0)},jz=(G)=>{D(G),u(""),N(!0)},rz=async()=>{if(E&&v==="delete")try{await c.mutateAsync(E.id),N(!1)}catch(G){console.error(G)}},oz=(G,Y)=>{if(Y.detail>1)return;K(G),setTimeout(()=>{K(null)},100),setTimeout(()=>{U({to:"/projects/$projectId",params:{projectId:G}})},200)},tz=async(G)=>{return(await mz.mutateAsync({param:{teamId:Z},json:{role:G}})).code},sz=q({mutationFn:async({userId:G,role:Y})=>{if(!(await X.api.teams[":teamId"].members[":userId"].$patch({param:{teamId:Z,userId:G},json:{role:Y}})).ok)throw Error("Failed to update member role")},onSuccess:()=>{W.invalidateQueries({queryKey:["teams",Z,"members"]})}}),ez=q({mutationFn:async(G)=>{if(!(await X.api.teams[":teamId"].members[":userId"].$delete({param:{teamId:Z,userId:G}})).ok)throw Error("Failed to remove member")},onSuccess:()=>{W.invalidateQueries({queryKey:["teams",Z,"members"]})}}),zG=(G)=>{if(!G)return"??";return G.split(" ").map((Y)=>Y[0]).slice(0,2).join("").toUpperCase()},GG=(G,Y)=>{p(G),Q(Y),e(Z,d,{sortBy:G,sortDirection:Y})},x=Array.isArray(Hz)?Hz:[];return J("div",{className:"flex-1 overflow-y-auto p-4",children:[J("div",{className:"flex flex-wrap items-center justify-between mb-4 gap-4",children:[z("h1",{className:"text-2xl font-bold",children:V.projects()}),J("div",{className:"flex flex-wrap items-center gap-4",children:[J("div",{className:"flex items-center -space-x-2 cursor-pointer hover:opacity-90",onClick:()=>l(!0),"data-testid":"team-members-trigger",children:[x.slice(0,3).map((G)=>J(hz,{className:"border-2 border-background w-8 h-8",children:[G.image&&z(Sz,{src:G.image,alt:G.name,className:"object-cover"}),z(wz,{className:"text-[10px]",children:zG(G.name)})]},G.id)),x.length>3&&J("div",{className:"flex items-center justify-center w-8 h-8 rounded-full border-2 border-background bg-muted text-[10px] font-medium",children:["+",x.length-3]})]}),z(Oz,{sortBy:h,sortDirection:S,onSortChange:GG}),T&&J(F,{className:"bg-orange-600 hover:bg-orange-700 text-white gap-2",onClick:Xz,children:[z(Zz,{className:"w-4 h-4"}),V.create_project()]})]})]}),J("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-6 gap-4",children:[zz?.data?.map((G)=>z("div",{className:_z("shadow-md relative border rounded-xl overflow-hidden cursor-pointer transition-transform duration-100 ease-in-out",A===G.id?"scale-95":"scale-100"),onClick:(Y)=>oz(G.id,Y),children:J("div",{className:"flex flex-col",children:[J("div",{className:"relative w-full h-full aspect-square flex items-center justify-center bg-zinc-400/20",children:[G.coverImage?z("img",{src:G.coverImage,alt:G.name,className:"w-full h-full object-cover rounded"}):J("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 180.95 164.7",preserveAspectRatio:"xMidYMid slice",className:"w-full h-full object-cover rounded",children:[z("polygon",{fill:"#FC9F8E",points:"0 18.5 0 76.0 151.69 164.7 180.95 164.7 180.95 113.6"}),z("polygon",{fill:"#FEBAB8",points:"0 0 74.58 61.5 90.53 51.6 110.33 63.9 180.95 18.9 180.95 0"}),z("polyline",{fill:"#FAA5A5",points:"0 18.5 74.58 61.5 90.53 51.6 110.33 63.9 180.95 18.9 180.95 0 0 0"}),z("polygon",{fill:"#EC5B6C",points:"0 76.0 0 164.7 151.69 164.7"}),z("polygon",{fill:"#E85C71",points:"180.95 18.9 110.33 63.9 117.37 68.0 117.26 73.4 180.95 113.6"}),z("polygon",{fill:"#C8405B",points:"117.26 73.4 117.37 99.0 90.53 114.9 174.35 164.7 180.95 164.7 180.95 113.6"}),z("polygon",{fill:"#FFCCBE",points:"90.53 51.6 63.69 68.1 90.53 83.4"}),z("path",{fill:"#FB9991",d:"M 90.53 51.6 L 90.53 61.3 L 100.87 67.4 L 90.53 73.5 L 90.53 83.4 L 117.37 68.0 C 117.15 67.6 90.53 51.6 90.53 51.6 Z"}),z("path",{fill:"#FFEACD",d:"M 63.69 68.1 C 63.47 68.5 64.02 99.3 64.02 99.3 C 64.02 99.3 64.46 99.6 64.9 99.9 L 90.53 83.4 L 63.69 68.1 Z"}),z("polygon",{fill:"#FFCFB5",points:"64.02 99.3 90.53 114.9 90.53 83.4"}),z("path",{fill:"#F67D73",d:"M 90.53 83.4 L 90.53 114.9 L 117.37 99.0 Z"}),z("path",{fill:"#F26560",d:"M 90.53 83.4 L 117.37 99.0 L 117.37 68.0 Z"}),z("polygon",{fill:"#EB5F5B",points:"80.08 67.5 90.53 73.5 90.53 61.3"}),z("polygon",{fill:"#DB4D50",points:"90.53 61.3 90.53 73.5 100.87 67.4"})]}),z("div",{className:"absolute bottom-0 left-0 w-full h-[65%] bg-linear-to-t from-black/35 to-black/0"}),z("p",{className:"absolute left-1 bottom-2 text-white",children:G.name})]}),J("div",{className:"px-2 h-10 flex justify-between items-center",children:[J("p",{className:"truncate pr-1 text-xs text-muted-foreground",children:[V.updated_ago()," ",yz(G.updatedAt??"")]}),z("div",{onClick:(Y)=>Y.stopPropagation(),children:J(C,{modal:!1,children:[z(f,{asChild:!0,children:z("button",{className:"hover:bg-muted outline-none flex px-1",children:z(vz,{className:"w-5 h-5 text-muted-foreground"})})}),J(I,{align:"end",children:[T&&z(w,{onClick:(Y)=>{Y.stopPropagation(),az(G)},children:V.project_settings()}),J(w,{className:"flex items-center justify-between gap-4 cursor-pointer",onSelect:(Y)=>{Y.preventDefault(),iz.mutate(G)},children:[z("span",{children:V.notification()}),z(r,{checked:G.enableNotification??!0,className:"pointer-events-none"})]}),L&&z(w,{className:"text-destructive focus:text-destructive",onClick:()=>jz(G),children:V.delete()})]})]})})]})]})},G.id)),T&&z("div",{className:_z("shadow-md relative border rounded-xl overflow-hidden cursor-pointer transition-transform duration-100 ease-in-out border-dashed hover:border-orange-600/50 group",A==="create"?"scale-95":"scale-100"),onClick:nz,children:J("div",{className:"flex flex-col",children:[z("div",{className:"relative w-full aspect-square flex items-center justify-center bg-zinc-400/5 group-hover:bg-orange-600/5 transition-colors",children:z(Zz,{className:"w-8 h-8 text-zinc-400 group-hover:text-orange-600 transition-colors"})}),z("div",{className:"px-2 h-10 flex items-center justify-center bg-zinc-400/10 border-t group-hover:bg-orange-600/10 transition-colors",children:z("p",{className:"text-sm text-muted-foreground group-hover:text-orange-600 transition-colors",children:V.create_project()})})]})})]}),z(Nz,{open:H,onOpenChange:O,mode:y,teamId:Z,project:g}),z(Cz,{open:b,onOpenChange:N,children:J(fz,{children:[J(Iz,{children:[z(uz,{children:V.are_you_sure()}),J(lz,{children:[V.delete_project_warning({name:E?.name??""}),J("div",{className:"mt-4 flex flex-col gap-2 text-foreground",children:[z("span",{className:"text-sm font-medium",children:V.type_delete_to_confirm()}),z(j,{value:v,onChange:(G)=>u(G.target.value),placeholder:V.delete_placeholder(),className:"h-9",autoFocus:!0})]})]})]}),J(gz,{children:[z(pz,{disabled:c.isPending,children:V.cancel()}),z(dz,{onClick:(G)=>{G.preventDefault(),rz()},disabled:v!=="delete"||c.isPending,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:c.isPending?V.deleting():V.delete()})]})]})}),z(cz,{open:t,onOpenChange:l,title:V.team_members(),type:"team",members:x,isOwner:Qz?.role==="owner",onInvite:tz,onUpdateRole:async(G,Y)=>{await sz.mutateAsync({userId:G,role:Y})},onRemoveMember:async(G)=>{await ez.mutateAsync(G)},currentUserId:Qz?.id})]})}var VG=Bz("/teams/$teamId/")({component:JG});export{VG as Route};
|
package/bin/chunk-8y1v9dm9.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Dg as e}from"./chunk-87wqbn4g.js";import{Ak as l,jk as O,uk as K,xh as Te,yk as T,zh as p}from"./chunk-m6a4rzdt.js";import{Nl as je}from"./chunk-dej1gq35.js";var k={human:"human",agent:"agent"};var y={editor:"editor",reviewer:"reviewer"};var I={team:"team",project:"project"};var q={chat:"chat",autofill:"autofill",embedding:"embedding"};var c=e.object({cursor:e.string().optional(),total:e.number().optional(),totalSize:e.number().optional()}),a=e.object({first:e.coerce.number().optional(),after:e.string().optional()});var Ue=e.object({name:e.string()}),A=e.object({id:e.string(),name:e.string(),rootFolder:e.string().optional(),updatedAt:e.union([e.string(),e.date()])});var we=e.object({data:e.array(A),pageInfo:c}),Fe=e.object({teamId:e.string(),userId:e.string()}),Ne=e.object({id:e.string(),name:e.string(),email:e.string().optional(),role:e.enum(["owner","editor","reviewer","bot","unknown"]),image:e.string().optional(),unreadNotificationCount:e.number().optional()}),Le=e.object({name:e.string().optional(),imageKey:e.string().nullable().optional()}),Ve=e.object({id:e.string(),name:e.string(),role:e.enum(["owner","editor","reviewer","bot","unknown"]),email:e.string().optional(),type:e.nativeEnum(k).optional(),image:e.string().optional(),scope:e.nativeEnum(I).optional()}),Ee=e.object({includeAgents:e.string().optional().transform((o)=>o==="true")}),D={best_match:"best_match",all:"all"},We=e.union([e.object({key:e.literal("transcode.videoStrategy"),value:e.nativeEnum(D)})]),Oe=e.object({networkSandboxEnabled:e.boolean(),allowedDomains:e.array(e.string()),pendingDomains:e.array(e.string()).default([])}),Ge=e.object({networkSandboxEnabled:e.boolean().optional(),allowedDomains:e.array(e.string()).optional(),pendingDomains:e.array(e.string()).optional()}),Qe=e.object({role:e.enum(["editor","reviewer"])});var P=e.nativeEnum(q),M=e.enum(["off","minimal","low","medium","high","xhigh"]),Z=e.object({id:e.string().optional(),skillId:e.string(),skill:e.object({id:e.string(),name:e.string()}).optional()}),Ze=e.object({id:e.string(),name:e.string(),type:P,enabled:e.boolean(),avatar:e.string().optional(),providerId:e.string().optional(),modelId:e.string().optional(),thinkingLevel:M.optional().default("off"),systemPrompt:e.string().optional(),soul:e.string().optional(),skills:e.array(Z).optional(),mcpServerIds:e.array(e.string()).optional(),deniedTools:e.array(e.string()).optional()}),C=e.object({name:e.string().min(1),type:P,enabled:e.boolean().optional().default(!0),avatar:e.string().optional(),providerId:e.string().optional(),modelId:e.string().optional(),thinkingLevel:M.optional().default("off"),systemPrompt:e.string().optional(),soul:e.string().optional(),skills:e.array(e.string()).optional(),mcpServerIds:e.array(e.string()).optional(),deniedTools:e.array(e.string()).optional()}),Be=C.superRefine((o,r)=>{if(o.type==="chat"||o.type==="autofill"){if(!o.providerId)r.addIssue({code:e.ZodIssueCode.custom,message:"providerId is required for chat/autofill agents",path:["providerId"]});if(!o.modelId)r.addIssue({code:e.ZodIssueCode.custom,message:"modelId is required for chat/autofill agents",path:["modelId"]})}}),Je=C.superRefine((o,r)=>{if(o.type==="chat"||o.type==="autofill"){if(!o.providerId)r.addIssue({code:e.ZodIssueCode.custom,message:"providerId is required for chat/autofill agents",path:["providerId"]});if(!o.modelId)r.addIssue({code:e.ZodIssueCode.custom,message:"modelId is required for chat/autofill agents",path:["modelId"]})}}),Ye=e.object({id:e.string(),sessionId:e.string(),entry:e.unknown()}),He=e.object({id:e.string(),name:e.string().nullable().optional(),type:e.string(),createdAt:e.string(),creator:e.object({id:e.string(),name:e.string().nullable().optional(),email:e.string().nullable().optional(),image:e.string().nullable().optional()}).nullable().optional(),agentId:e.string().optional()});var ze=e.object({apiKey:e.string().optional(),baseUrl:e.string().optional(),chatModels:e.array(e.string()).optional()}),B=e.enum(["1h","24h","7d","30d"]),et=e.object({timeframe:B.default("30d"),userId:e.string().optional()});var at=e.object({data:e.array(e.lazy(()=>$)),pageInfo:c}),U=e.object({proxyType:e.enum(["image","video","audio","pdf"]).nullable().optional(),thumbnailUrl:e.string().optional(),originalHeight:e.number().optional(),originalWidth:e.number().optional(),spriteUrl:e.string().optional(),duration:e.number().optional(),pageCount:e.number().optional()}),J=e.object({type:e.string().nullable(),preview:U.nullable()}),f=e.object({id:e.string(),name:e.string(),image:e.string().optional()}),Y=e.object({fieldId:e.string(),value:e.any()}),H=e.object({id:e.string(),name:e.string()}),X=e.object({duration:e.number().optional(),originalWidth:e.number().optional(),originalHeight:e.number().optional(),frameRate:e.number().optional(),totalFrames:e.number().optional(),startTimecode:e.string().optional()}),$=e.object({id:e.string(),name:e.string(),sizeByte:e.number(),fileCount:e.number(),type:e.string(),targetType:e.string().optional().nullable(),status:e.string(),proxyType:e.enum(["image","video","audio","pdf"]).nullable().optional(),latestChildren:e.array(J).optional(),preview:U.nullable().optional(),createdAt:e.string(),updatedAt:e.string(),deletedAt:e.string().nullable().optional(),projectId:e.string().optional().nullable(),creator:f.nullable().optional(),fieldValues:e.array(Y).optional(),sortIndex:e.string().optional().nullable(),startTime:e.number().optional().nullable(),endTime:e.number().optional().nullable(),media:e.object({original:e.object({key:e.string().optional()}).optional(),videoTranscodes:e.array(e.object({id:e.string(),url:e.string(),key:e.string(),width:e.number(),height:e.number(),size:e.number()})).optional(),imageTranscodes:e.array(e.object({id:e.string(),url:e.string(),key:e.string(),width:e.number(),height:e.number(),size:e.number()})).optional(),videoPreview:e.object({url:e.string(),key:e.string().optional()}).optional(),pdfTranscode:e.object({url:e.string(),key:e.string().optional()}).optional(),proxyType:e.enum(["image","video","audio","pdf"]).nullable().optional(),metadata:X.optional()}).optional(),ancestorFolders:e.array(H).optional(),versionStack:e.object({id:e.string(),versions:e.array(e.object({version:e.number(),current:e.boolean(),id:e.string(),name:e.string().optional().nullable(),previewUrl:e.string().optional().nullable(),creator:e.object({id:e.string(),name:e.string().nullable()}).nullable().optional()}))}).optional().nullable()}),nt=e.object({name:e.string(),type:e.string(),projectId:e.string().optional(),parentId:e.string().optional(),key:e.string().optional(),sizeByte:e.number().optional(),contentType:e.string().optional(),creatorId:e.string().optional()}),st=e.object({assetId:e.string()}),it=e.object({id:e.string(),name:e.string()}),pt=e.object({assetId:e.string().optional(),assetType:e.string(),projectId:e.string().optional(),showDeleted:e.boolean().optional(),prefix:e.string().optional(),sort:e.string().optional(),order:e.string().optional(),...a.shape}),ct=e.object({assetId:e.string(),userId:e.string(),replyToId:e.string().optional(),message:e.string(),annotations:e.any().optional(),second:e.number().optional(),attachmentIds:e.array(e.string())}),z=e.object({id:e.string(),assetId:e.string(),url:e.string(),proxyType:e.enum(["image","video","audio","pdf"]).nullable().optional()}),ee=e.object({id:e.string(),assetId:e.string(),message:e.string().nullable(),annotations:e.any(),second:e.number().nullable(),creator:f,replies:e.array(e.lazy(()=>ee)),attachments:e.array(z),mentions:e.array(f),createdAt:e.string(),updatedAt:e.string(),sessionId:e.string().nullable(),isCompleted:e.boolean(),completionLastChangedBy:f.nullable()}),lt=e.object({isCompleted:e.boolean()}),mt=e.object({newParentId:e.string(),assetIds:e.array(e.string()),creatorId:e.string().optional()}),ft=e.object({newParentId:e.string(),assetIds:e.array(e.string()),withComments:e.boolean().default(!1),creatorId:e.string().optional()}),dt=e.object({name:e.string()}),gt=e.object({beforeIndex:e.string().optional(),afterIndex:e.string().optional()}),ut=e.object({ids:e.array(e.string())}),yt=e.object({ids:e.array(e.string())}),ht=e.object({file:e.instanceof(File)}),St=e.object({key:e.string()}),xt=e.object({fileName:e.string(),contentType:e.string(),size:e.number()}),bt=e.object({id:e.string(),uploadUrl:e.string()}),Rt=e.object({ids:e.array(e.string())}),te=e.object({id:e.string(),name:e.string(),url:e.string()}),_t=e.object({files:e.array(te)});var Tt=e.object({userCount:e.number()}),kt=e.object({name:e.string().min(1,"Name is required").max(100,"Name is too long")}),It=e.object({id:e.string(),token:e.string(),name:e.string(),createdAt:e.string()});var oe=e.enum(["is","eq","neq","gt","gte","lt","lte","contains","notContains","isEmpty","isNotEmpty","in","notIn","hasAny","hasAll","hasNone","isWithin"]),re=e.object({field:e.string(),operator:oe,value:e.any()}),ae=e.enum(["asc","desc"]),ne=e.object({field:e.string(),order:ae}),se=e.enum(["AND","OR"]),ie=e.enum(["file","folder"]),h=e.object({operator:se.optional().default("AND"),conditions:e.array(re).optional().default([]),sort:ne.optional(),assetType:ie.optional(),showSymlink:e.boolean().optional(),recursively:e.boolean().optional().default(!0),query:e.string().optional(),isSemantic:e.boolean().optional().default(!1)}),Ct=h.extend(a.shape);var S=e.object({sourceFolderId:e.string(),searchFilter:h}),pe=e.object({id:e.string(),name:e.string(),filter:S,projectId:e.string(),createdAt:e.string(),updatedAt:e.string(),creator:e.object({id:e.string(),name:e.string(),image:e.string().optional().nullable()}).optional().nullable()}),Lt=e.object({name:e.string(),filter:S}),Vt=e.object({name:e.string().optional(),filter:S.optional()});var Et=e.object({data:e.array(pe),pageInfo:e.object({cursor:e.string().optional(),total:e.number().optional()})});var Gt=e.object({name:e.string(),parentId:e.string()}),Qt=e.object({name:e.string()}),Kt=e.object({ids:e.array(e.string())}),At=e.object({ids:e.array(e.string())});var Jt=e.object({code:e.string(),role:e.string(),teamId:e.string(),teamName:e.string(),projectId:e.string().optional(),projectName:e.string().optional(),inviterName:e.string(),isUsed:e.boolean()}),Yt=e.object({role:e.nativeEnum(y)}),Ht=e.object({role:e.nativeEnum(y)}),Xt=e.object({code:e.string()});var oo={text:"text",longText:"longText",select:"select",selectMulti:"selectMulti",rating:"rating",number:"number",toggle:"toggle",date:"date",user:"user",userMulti:"userMulti"},ce={NONE:"NONE",CONTENT:"CONTENT",CREATION_CONTEXT:"CREATION_CONTEXT"},ro=e.object({id:e.string(),displayName:e.string(),color:e.string().optional()}),x=e.object({name:e.string(),type:e.enum(["text","longText","select","selectMulti","rating","number","toggle","date","user","userMulti"]),autofillSource:e.nativeEnum(ce).optional(),text:e.any().optional(),longText:e.any().optional(),select:e.any().optional(),selectMulti:e.any().optional(),rating:e.any().optional(),number:e.any().optional(),toggle:e.any().optional(),date:e.any().optional(),user:e.any().optional(),userMulti:e.any().optional()}),ao=e.object({key:e.string().optional(),label:e.string().optional(),scope:e.string().optional(),config:x,description:e.string().default("")}),no=e.object({label:e.string().optional(),config:x,description:e.string().optional()}),le=e.object({fieldId:e.string(),visible:e.boolean()}),so=e.array(le),me=e.object({key:e.string(),value:e.any()}),io=e.array(me),po=e.object({id:e.string(),config:x,scope:e.string(),readOnly:e.boolean(),visible:e.boolean(),description:e.string()});var w=e.enum(["auto","none","bearer","oauth"]),b=e.enum(["streamable_http","sse"]),d=e.enum(["owner","editor","reviewer"]),fe=e.object({grantType:e.enum(["authorization_code","client_credentials"]).optional(),clientId:e.string().optional(),clientSecret:e.string().optional(),scope:e.string().optional(),authorizationParams:e.record(e.string(),e.string()).optional(),redirectUri:e.string().optional(),clientName:e.string().optional(),clientUri:e.string().optional(),skipIssuerMetadataValidation:e.boolean().optional()}),F=e.object({type:w.optional(),bearerToken:e.string().optional(),headers:e.record(e.string(),e.string()).optional(),oauth:fe.optional()}),R=e.object({excludeTools:e.array(e.string()).optional(),requestTimeoutMs:e.number().int().positive().optional(),idleTimeoutMs:e.number().int().positive().optional(),keepAlive:e.boolean().optional(),protocolVersion:e.enum(["legacy","auto","2026-07-28"]).optional(),directTools:e.array(e.string()).optional()}),de=e.object({name:e.string(),title:e.string().optional(),description:e.string().optional(),inputSchema:e.unknown().optional()}),mo=e.object({url:e.string().url(),transport:b.optional(),authConfig:F.optional(),config:R.optional(),permission:d.optional()}),fo=e.object({transport:b.optional(),authConfig:F.optional(),config:R.optional(),permission:d.optional()}),go=e.object({permission:d}),ge=e.object({id:e.string(),name:e.string(),description:e.string().optional(),instructions:e.string().optional(),url:e.string(),transport:b,authType:w,config:R.optional(),permission:d,status:e.string(),lastError:e.string().nullable().optional(),toolCount:e.number(),hasCredential:e.boolean(),createdAt:e.string(),updatedAt:e.string()}),uo=e.object({servers:e.array(ge)}),yo=e.object({}),ho=e.object({tools:e.array(de)}),N=e.enum(["authenticated","expired","not_authenticated","in_progress"]),So=e.object({status:N}),xo=e.object({authorizationUrl:e.string().optional(),status:N}),bo=e.object({code:e.string(),iss:e.string().optional()}),Ro=e.object({ok:e.boolean(),toolCount:e.number(),message:e.string().optional()});var L=e.object({id:e.string().optional(),name:e.string().optional(),role:e.string().optional()}),V=e.object({id:e.string().optional(),name:e.string().optional()}),ue=e.object({id:e.string().optional(),proxyType:e.enum(["image","video","audio","pdf"]).nullable().optional(),name:e.string().optional(),preview:e.string().optional(),thumbnailUrl:e.string().optional(),originalWidth:e.number().optional(),originalHeight:e.number().optional()}),jo=e.object({id:e.string().optional(),creator:L.optional(),type:e.string().optional(),team:V.optional(),project:V.optional(),asset:ue.optional(),user:L.optional(),createdAt:e.string().optional(),isRead:e.boolean().optional()}),To=e.object({unreadOnly:e.union([e.boolean(),e.string()]).transform((o)=>o===!0||o==="true").optional(),after:e.string().optional(),pageSize:e.coerce.number().optional()}),ko=e.object({notificationId:e.string().min(1)}),Io=e.object({comments:e.boolean().default(!0),replies:e.boolean().default(!0),mentions:e.boolean().default(!0),yourUploads:e.boolean().default(!1),otherUploads:e.boolean().default(!0),statusUpdates:e.boolean().default(!0)});var Co=e.object({name:e.string(),coverImageKey:e.string().optional(),enableNotification:e.boolean().default(!0)}),Uo=e.object({name:e.string().optional(),coverImageKey:e.string().optional(),enableNotification:e.boolean().optional()}),ye=e.object({id:e.string(),name:e.string(),teamId:e.string(),rootFolder:e.string().optional(),coverImage:e.string().optional(),coverImageKey:e.string().optional(),enableNotification:e.boolean(),updatedAt:e.union([e.string(),e.date()])}),wo=e.object({sortBy:e.string().optional(),sortDirection:e.enum(["asc","desc"]).optional()}).merge(a),Fo=e.object({data:e.array(ye),pageInfo:c}),No=e.object({teamId:e.string()}),Lo=e.object({id:e.string(),name:e.string(),role:e.enum(["owner","editor","reviewer","bot","unknown"]),image:e.string().optional(),scope:e.enum(["team","project"]).optional(),hasCustomRole:e.boolean().optional()}),Vo=e.object({id:e.string(),name:e.string()}),Eo=e.object({assetType:e.string(),sort:e.enum(["createdAt","name","size"]).optional(),order:e.enum(["asc","desc"]).optional()}).merge(a),Wo=e.object({role:e.enum(["editor","reviewer"])}),Oo=e.object({userId:e.string(),role:e.enum(["owner","editor","reviewer"])}),Go=e.object({id:e.string(),name:e.string(),role:e.enum(["owner","editor","reviewer","bot","unknown"]),image:e.string().optional()});var E=["openai-completions","mistral-conversations","openai-responses","azure-openai-responses","openai-codex-responses","anthropic-messages","bedrock-converse-stream","google-generative-ai","google-vertex"],he=e.object({api:e.enum(E).optional(),reasoning:e.boolean().default(!1),input:e.array(e.enum(["text","image"])).default(["text"]),contextWindow:e.number().int().positive().default(128000),maxTokens:e.number().int().positive().default(4096),cost:e.object({input:e.number().nonnegative().default(0),output:e.number().nonnegative().default(0),cacheRead:e.number().nonnegative().default(0),cacheWrite:e.number().nonnegative().default(0)})}),_=e.object({id:e.string().optional(),modelId:e.string().min(1,"Model ID is required"),name:e.string().min(0).default(""),config:he}),v=e.object({baseUrl:e.string().url("Must be a valid URL").optional().or(e.literal("")),apiKey:e.string().optional().or(e.literal("")),api:e.enum(E),headers:e.record(e.string(),e.string()).optional(),authHeader:e.boolean().optional()}),Ao=e.object({name:e.string().min(1,"Provider name is required"),config:v,models:e.array(_).min(1,"At least one model is required")}),Do=e.object({config:v,models:e.array(_).min(1,"At least one model is required")}),Zo=e.object({id:e.string(),name:e.string(),isBuiltin:e.boolean(),config:v,models:e.array(_).optional(),modelsCount:e.number().optional(),createdAt:e.date(),updatedAt:e.date()});var Ho=e.object({name:e.string().min(1),expireAt:e.string().datetime().optional(),password:e.string().optional(),isDisabled:e.boolean().optional(),allowDownload:e.boolean().optional(),defaultSortOrder:e.string().optional(),viewMode:e.string().optional()}),Xo=e.object({name:e.string().min(1).optional(),expireAt:e.string().datetime().optional().nullable(),password:e.string().optional().nullable(),isDisabled:e.boolean().optional(),allowDownload:e.boolean().optional(),defaultSortOrder:e.string().optional().nullable(),viewMode:e.string().optional().nullable(),fieldVisibility:e.record(e.string(),e.boolean()).optional().nullable()}),$o=a.extend({projectId:e.string().optional()}),zo=e.object({assetIds:e.array(e.string().min(1)).min(1)});var or=e.object({assetId:e.string().optional(),githubUrl:e.string().optional(),override:e.boolean().optional()}),rr=e.object({config:e.object({environmentVariables:e.array(e.object({name:e.string(),default:e.string().optional()}))})}),ar=e.object({permission:e.enum(["owner","editor","reviewer"])});var W=e.lazy(()=>e.object({name:e.string(),id:e.string(),size:e.number(),children:e.array(W),type:e.string(),mediaType:e.string().optional()})),ir=e.object({parentId:e.string(),files:e.array(W)}),Se=e.object({id:e.string(),fileId:e.string(),url:e.string()}),pr=e.object({taskId:e.string(),presignedUrls:e.array(Se),createdAssets:e.array(e.object({tempId:e.string(),assetId:e.string()})).optional()}),cr=e.object({fileId:e.string(),errorMessage:e.string().optional()}),lr=e.object({id:e.string(),name:e.string(),total:e.number(),uploaded:e.number(),createdAt:e.string()}),mr=e.object({bucket:e.string(),key:e.string(),Signature:e.string()}),fr=e.object({file:e.instanceof(File)});var xe=e.object({key:e.string(),value:e.unknown()}),ur=e.object({value:e.unknown()}),yr=e.array(xe);var xr=e.object({fileIds:e.array(e.string())}),br=e.object({fileId:e.string(),beforeId:e.string()});var vr=e.object({agentId:e.string(),textPrompt:e.string().optional(),attachedFiles:e.array(e.string()).optional(),assetIds:e.array(e.string()).optional(),sessionId:e.string().optional(),contextAssetId:e.string().optional(),projectId:e.string().optional()}).superRefine((o,r)=>{let s=o.textPrompt&&o.textPrompt.trim().length>0,n=o.attachedFiles&&o.attachedFiles.length>0,m=o.assetIds&&o.assetIds.length>0;if(!s&&!n&&!m)r.addIssue({code:e.ZodIssueCode.custom,message:"At least one of textPrompt, attachedFiles, or assetIds must be provided.",path:["textPrompt"]})}),jr=e.object({id:e.string(),agentId:e.string(),userId:e.string().nullable(),assetId:e.string().nullable(),userCommentId:e.string().nullable(),name:e.string().nullable().optional(),createdAt:e.string(),updatedAt:e.string()}),Tr=e.intersection(e.object({id:e.string()}),e.unknown());var g;((t)=>{t.team_create="team_create";t.team_update="team_update";t.team_delete="team_delete";t.team_member_add="team_member_add";t.team_member_update="team_member_update";t.team_member_remove="team_member_remove";t.project_create="project_create";t.project_update="project_update";t.project_delete="project_delete";t.project_empty_trash="project_empty_trash";t.project_member_add="project_member_add";t.project_member_update="project_member_update";t.project_member_remove="project_member_remove";t.file_create="file_create";t.file_update="file_update";t.file_delete="file_delete";t.folder_create="folder_create";t.folder_update="folder_update";t.folder_delete="folder_delete";t.asset_reparent="asset_reparent";t.asset_copy="asset_copy";t.share_create="share_create";t.share_update="share_update";t.share_delete="share_delete";t.agent_create="agent_create";t.agent_update="agent_update";t.agent_delete="agent_delete";t.skill_create="skill_create";t.skill_update="skill_update";t.skill_delete="skill_delete";t.mcp_server_create="mcp_server_create";t.mcp_server_update="mcp_server_update";t.mcp_server_delete="mcp_server_delete";t.provider_create="provider_create";t.provider_update="provider_update";t.provider_delete="provider_delete";t.invite_create="invite_create";t.invite_revoke="invite_revoke";t.metadata_field_create="metadata_field_create";t.metadata_field_update="metadata_field_update";t.metadata_field_delete="metadata_field_delete";t.comment_create="comment_create";t.comment_update="comment_update";t.comment_delete="comment_delete";t.comment_complete="comment_complete"})(g||={});var be=e.object({id:e.string(),action:e.nativeEnum(g),teamId:e.string(),userId:e.string().nullable().optional(),projectId:e.string().nullable().optional(),itemId:e.string().nullable().optional(),createdAt:e.string()}),qr=e.object({first:e.coerce.number().optional(),after:e.string().optional(),actions:e.union([e.nativeEnum(g),e.array(e.nativeEnum(g))]).transform((o)=>Array.isArray(o)?o:[o]).optional(),userIds:e.union([e.string(),e.array(e.string())]).transform((o)=>Array.isArray(o)?o:[o]).optional(),itemId:e.string().optional()}),Pr=e.object({nodes:e.array(be),pageInfo:e.object({hasNextPage:e.boolean(),endCursor:e.string().nullable()}),total:e.number()});var Re=e.object({id:e.string(),type:e.literal("text"),x:e.number().min(0).max(1),y:e.number().min(0).max(1),opacity:e.number().min(0).max(1),rotation:e.number().min(-180).max(180),text:e.string(),size:e.number().positive().max(1),color:e.string()}),_e=e.object({id:e.string(),type:e.literal("image"),x:e.number().min(0).max(1),y:e.number().min(0).max(1),opacity:e.number().min(0).max(1),rotation:e.number().min(-180).max(180),imageAssetKey:e.string().min(1),imageAssetUrl:e.string().optional(),size:e.number().positive().max(1)}),ve=e.discriminatedUnion("type",[Re,_e]),j=e.object({blocks:e.array(ve)}),Ur=e.object({name:e.string().min(1),teamId:e.string().optional(),config:j}),wr=e.object({name:e.string().min(1).optional(),config:j.optional()}),Fr=e.object({enabled:e.boolean(),config:j.optional()}).superRefine((o,r)=>{if(o.enabled&&(!o.config||o.config.blocks.length===0))r.addIssue({code:"custom",path:["config"],message:"Watermark configuration is required when enabling watermark"})});var u=je(Te(),1);var G=O("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-[color,box-shadow] outline-none hover:bg-muted hover:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 min-w-9 px-2",sm:"h-8 min-w-8 px-1.5",lg:"h-10 min-w-10 px-2.5"}},defaultVariants:{variant:"default",size:"default"}});var Q=u.createContext({size:"default",variant:"default",spacing:0});function ga({className:o,variant:r,size:s,spacing:n=0,children:m,...i}){return p(T.Root,{"data-slot":"toggle-group","data-variant":r,"data-size":s,"data-spacing":n,style:{"--gap":n},className:l("group/toggle-group flex w-fit items-center gap-[--spacing(var(--gap))] rounded-md data-[spacing=default]:data-[variant=outline]:shadow-xs",o),...i,children:p(Q.Provider,{value:{variant:r,size:s,spacing:n},children:m})})}function ua({className:o,children:r,variant:s,size:n,...m}){let i=u.useContext(Q);return p(T.Item,{"data-slot":"toggle-group-item","data-variant":i.variant||s,"data-size":i.size||n,"data-spacing":i.spacing,className:l(G({variant:i.variant||s,size:i.size||n}),"w-auto min-w-0 shrink-0 px-3 focus:z-10 focus-visible:z-10","data-[spacing=0]:rounded-none data-[spacing=0]:shadow-none data-[spacing=0]:first:rounded-l-md data-[spacing=0]:last:rounded-r-md data-[spacing=0]:data-[variant=outline]:border-l-0 data-[spacing=0]:data-[variant=outline]:first:border-l",o),...m,children:r})}function ba({className:o,orientation:r="horizontal",decorative:s=!0,...n}){return p(K.Root,{"data-slot":"separator",decorative:s,orientation:r,className:l("shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",o),...n})}
|
|
2
|
-
export{M as fa,oo as ga,ce as ha,E as ia,_ as ja,v as ka,D as la,g as ma,ga as na,ua as oa,ba as pa};
|
package/bin/chunk-9gq9782d.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as a}from"./chunk-t3tp9trj.js";import"./chunk-n76r6s9k.js";import"./chunk-x3ynjbt5.js";import"./chunk-dv1zpd2p.js";import"./chunk-mw8f8ngt.js";import"./chunk-y8aehqr8.js";import"./chunk-9nyhmtp9.js";import"./chunk-r5dv0rfv.js";import"./chunk-83k0wa5k.js";import"./chunk-8y1v9dm9.js";import"./chunk-tpp9qf5m.js";import"./chunk-4rbzswqs.js";import"./chunk-rfyaphas.js";import"./chunk-0yngn45x.js";import"./chunk-5gtew41y.js";import"./chunk-3kqdgddm.js";import"./chunk-karn564z.js";import"./chunk-h9emz0zb.js";import"./chunk-6v39c8eg.js";import"./chunk-qmpph1gt.js";import"./chunk-zjj9qj6y.js";import"./chunk-eetrc0j1.js";import"./chunk-9s02m95j.js";import"./chunk-87wqbn4g.js";import"./chunk-69tt1pvr.js";import"./chunk-f2j2cqd1.js";import"./chunk-2xmsrq7f.js";import"./chunk-af6wbhkv.js";import"./chunk-2mqqghrz.js";import"./chunk-n4gghgrj.js";import{Rh as t,zh as e}from"./chunk-m6a4rzdt.js";import"./chunk-dej1gq35.js";function o(){let{shareId:s,folderId:n}=r.useParams();return e(a,{shareId:s,initialFolderId:n})}var r=t("/share/$shareId/folders/$folderId")({component:o});export{r as Route};
|