@xopcai/xopc 0.0.152 → 0.0.154

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.
Files changed (110) hide show
  1. package/dist/browser-ext/manifest.json +1 -1
  2. package/dist/extensions/telegram/xopc.extension.json +1 -1
  3. package/dist/gateway/static/root/assets/{activity-store-uu1xu9Pl.js → activity-store-CzdG0bk4.js} +1 -1
  4. package/dist/gateway/static/root/assets/{agent-avatar-dicebear-CXe2KDZj.js → agent-avatar-dicebear-DFWvUDnw.js} +1 -1
  5. package/dist/gateway/static/root/assets/{agents-BjLxhsVX.js → agents-D1VBNTLF.js} +1 -1
  6. package/dist/gateway/static/root/assets/{api-CwL38LEV.js → api-CsyI9oBh.js} +1 -1
  7. package/dist/gateway/static/root/assets/{app-management-settings-panel-DekP2_hC.js → app-management-settings-panel-DjnqOKBb.js} +1 -1
  8. package/dist/gateway/static/root/assets/{appearance-settings-Cfd5YavF.js → appearance-settings-CRqe823O.js} +1 -1
  9. package/dist/gateway/static/root/assets/{apps-page-PS-uUoSk.js → apps-page-BcTujyqO.js} +1 -1
  10. package/dist/gateway/static/root/assets/{archive-plugin-DWglUgbp.js → archive-plugin-BXq09JWB.js} +1 -1
  11. package/dist/gateway/static/root/assets/{attachment-load-BJdxo2Vn.js → attachment-load-zlQDh1aZ.js} +1 -1
  12. package/dist/gateway/static/root/assets/{automation-suggestion-card-B-TfxjJF.js → automation-suggestion-card-gGgpY4-w.js} +1 -1
  13. package/dist/gateway/static/root/assets/{automations-page-CtNevo3y.js → automations-page-BToFWoa2.js} +1 -1
  14. package/dist/gateway/static/root/assets/{binary-plugins-DwrYsL8l.js → binary-plugins-DCndLyIW.js} +1 -1
  15. package/dist/gateway/static/root/assets/{block-editor-CIxjL5Kp.js → block-editor-msfuLqvE.js} +1 -1
  16. package/dist/gateway/static/root/assets/{browser-settings-page-QncZ-2vS.js → browser-settings-page-QKmt9rhz.js} +1 -1
  17. package/dist/gateway/static/root/assets/{capability-presets-api-ChR2rMfo.js → capability-presets-api-Bxopvkgk.js} +1 -1
  18. package/dist/gateway/static/root/assets/{capability-presets-settings-panel-_JBmJl5A.js → capability-presets-settings-panel-DfNXDSNd.js} +1 -1
  19. package/dist/gateway/static/root/assets/{channel-recipient-api-DYLBAhFF.js → channel-recipient-api-BnHaWUSY.js} +1 -1
  20. package/dist/gateway/static/root/assets/{channels-settings-Bz3tyWpH.js → channels-settings-H4S5xOJd.js} +1 -1
  21. package/dist/gateway/static/root/assets/channels-status-swr-CCNusXn-.js +1 -0
  22. package/dist/gateway/static/root/assets/chunk-KS7C4IRE-uQ0fehio.js +4 -0
  23. package/dist/gateway/static/root/assets/{connector-logo-KsRvub5G.js → connector-logo-B-uLLvB8.js} +1 -1
  24. package/dist/gateway/static/root/assets/{connectors-page-_pT0aE0S.js → connectors-page-CdhnQLcO.js} +1 -1
  25. package/dist/gateway/static/root/assets/{desktop-pet-CRCERvWy.js → desktop-pet-Ex6MK9js.js} +1 -1
  26. package/dist/gateway/static/root/assets/{desktop-pet-settings-vGrxshsU.js → desktop-pet-settings-BOIzaX68.js} +1 -1
  27. package/dist/gateway/static/root/assets/{directory-picker-path-field-BGPYrtx6.js → directory-picker-path-field-DqGXYqi0.js} +1 -1
  28. package/dist/gateway/static/root/assets/{dreaming-settings-B5pzvNgs.js → dreaming-settings-CxijakYG.js} +1 -1
  29. package/dist/gateway/static/root/assets/{extension-debug-page-BaCko1XU.js → extension-debug-page-BvdFiVRk.js} +1 -1
  30. package/dist/gateway/static/root/assets/{extension-page-TTXKCMtb.js → extension-page-Dh6JVCzg.js} +1 -1
  31. package/dist/gateway/static/root/assets/{extension-settings-page-CEMb3uXY.js → extension-settings-page-DVj6FCSE.js} +1 -1
  32. package/dist/gateway/static/root/assets/{gateway-config-api-Bf37OGhQ.js → gateway-config-api-CQm4GutS.js} +1 -1
  33. package/dist/gateway/static/root/assets/{gateway-settings-cu-vyeNk.js → gateway-settings-ss66lTqH.js} +1 -1
  34. package/dist/gateway/static/root/assets/{gateway-startup-retry-BM_xvzl0.js → gateway-startup-retry-BHJhfrQI.js} +1 -1
  35. package/dist/gateway/static/root/assets/{goal-create-dialog-C-bL8rj8.js → goal-create-dialog-DrLfAaIQ.js} +1 -1
  36. package/dist/gateway/static/root/assets/{goal-detail-page-p5zPrlTq.js → goal-detail-page-CGX9RlwQ.js} +1 -1
  37. package/dist/gateway/static/root/assets/{goals-config-api-D2pEoiiO.js → goals-config-api-qW18xhUI.js} +1 -1
  38. package/dist/gateway/static/root/assets/{goals-page-D-H2u2-J.js → goals-page-Dw_HSDwB.js} +1 -1
  39. package/dist/gateway/static/root/assets/{goals-settings-BVZaBqPa.js → goals-settings-BIU5W1zl.js} +1 -1
  40. package/dist/gateway/static/root/assets/{heartbeat-settings-B-AC_uwa.js → heartbeat-settings-CfqjGaTh.js} +1 -1
  41. package/dist/gateway/static/root/assets/index-C74vxaN3.css +1 -0
  42. package/dist/gateway/static/root/assets/index-DEFW3c5N.js +196 -0
  43. package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-w0yIP0UB.js → keyboard-shortcuts-settings-cCBoXp7P.js} +1 -1
  44. package/dist/gateway/static/root/assets/{local-app-workbench-page-CTq0TIH4.js → local-app-workbench-page-D2eb_Y9l.js} +1 -1
  45. package/dist/gateway/static/root/assets/{local-apps-page-srIyxJuy.js → local-apps-page-DO2x_rcy.js} +1 -1
  46. package/dist/gateway/static/root/assets/{locale-store-GfSwnwIZ.js → locale-store-D7eqlIJ9.js} +1 -1
  47. package/dist/gateway/static/root/assets/logs-page-CGWbln8I.js +7 -0
  48. package/dist/gateway/static/root/assets/{markdown-split-Du5yPuDb.js → markdown-split-BZXNhOwW.js} +1 -1
  49. package/dist/gateway/static/root/assets/{media-plugins-Cd1Rmw15.js → media-plugins-DCetbXqB.js} +1 -1
  50. package/dist/gateway/static/root/assets/messages-CJ9O8gs2.js +5 -0
  51. package/dist/gateway/static/root/assets/{models-hub-panel-BMg_Xqd9.js → models-hub-panel-CgPuYUSc.js} +1 -1
  52. package/dist/gateway/static/root/assets/{notes-page-DhfrFd89.js → notes-page-BimdI125.js} +1 -1
  53. package/dist/gateway/static/root/assets/{notes-workbench-CwJk-D7Y.js → notes-workbench-CJgcA6rb.js} +2 -2
  54. package/dist/gateway/static/root/assets/{page-tabs-HACawonJ.js → page-tabs-U1pk4NrV.js} +1 -1
  55. package/dist/gateway/static/root/assets/{preview-open-alternatives-CjEZt_F5.js → preview-open-alternatives-Fxwf5YPD.js} +1 -1
  56. package/dist/gateway/static/root/assets/{project-detail-page-Dut_micj.js → project-detail-page-VxBEkOCK.js} +1 -1
  57. package/dist/gateway/static/root/assets/{projects-page-sTRlCEZ5.js → projects-page-aaYIPefA.js} +1 -1
  58. package/dist/gateway/static/root/assets/{remote-access-hub-Fx81YH7S.js → remote-access-hub-DsoA6Lgj.js} +1 -1
  59. package/dist/gateway/static/root/assets/{save-bar-controls-CbktHUqt.js → save-bar-controls-Dn4L4DG1.js} +1 -1
  60. package/dist/gateway/static/root/assets/{schedule-field-BGx_Nb45.js → schedule-field-RyKxT9K9.js} +1 -1
  61. package/dist/gateway/static/root/assets/{schema-form-Cg-LJVvG.js → schema-form-C1vggaSD.js} +1 -1
  62. package/dist/gateway/static/root/assets/{sessions-page-DFnmyBpj.js → sessions-page-D6Izw2Lf.js} +1 -1
  63. package/dist/gateway/static/root/assets/settings-advanced-gate-2xdJe22X.js +1 -0
  64. package/dist/gateway/static/root/assets/{settings-collapsible-section-yYK4O-5E.js → settings-collapsible-section-nlLe8F2O.js} +1 -1
  65. package/dist/gateway/static/root/assets/{settings-form-section-DPSA8tG8.js → settings-form-section-D_ZiLpm2.js} +1 -1
  66. package/dist/gateway/static/root/assets/{settings-loading-skeleton-ClHNJwRL.js → settings-loading-skeleton-B5N97pZa.js} +1 -1
  67. package/dist/gateway/static/root/assets/{settings-page-lPM7md10.js → settings-page-DPyCrjUe.js} +1 -1
  68. package/dist/gateway/static/root/assets/{settings-page-layout-B_-VepeK.js → settings-page-layout-DIvXTz_k.js} +1 -1
  69. package/dist/gateway/static/root/assets/{setup-status-panel-hORJvGAQ.js → setup-status-panel-DrJTD2wb.js} +1 -1
  70. package/dist/gateway/static/root/assets/{share-preview-page-DyzplAEL.js → share-preview-page-Us8Qsjnv.js} +1 -1
  71. package/dist/gateway/static/root/assets/{shares-settings-DO3IIgcC.js → shares-settings-wKE-xvx5.js} +1 -1
  72. package/dist/gateway/static/root/assets/skill-reload-api-DKFt8QcO.js +1 -0
  73. package/dist/gateway/static/root/assets/{skills-page-CvOIrcCJ.js → skills-page-DLUejhxZ.js} +1 -1
  74. package/dist/gateway/static/root/assets/sliding-segmented-uWmrxE3P.js +1 -0
  75. package/dist/gateway/static/root/assets/{system-settings-panel-eIyklo0K.js → system-settings-panel-5lTZWRTB.js} +1 -1
  76. package/dist/gateway/static/root/assets/{theme-store-Bi6hMBDb.js → theme-store-BpYvZAYm.js} +1 -1
  77. package/dist/gateway/static/root/assets/{typed-models-lib-BgOpEx3h.js → typed-models-lib-BkK8sFRf.js} +1 -1
  78. package/dist/gateway/static/root/assets/{use-channel-catalog-f8A-PVuq.js → use-channel-catalog-CyWgVZUn.js} +1 -1
  79. package/dist/gateway/static/root/assets/{user-context-page-BG_1IrIJ.js → user-context-page-CI0uYsYu.js} +1 -1
  80. package/dist/gateway/static/root/assets/{user-profile-fields-editor-CfLUK6MT.js → user-profile-fields-editor-DHORj_-E.js} +1 -1
  81. package/dist/gateway/static/root/assets/{user-profile-settings-panel-BmzPREhJ.js → user-profile-settings-panel-C0cBmeSQ.js} +1 -1
  82. package/dist/gateway/static/root/assets/{utils-DbFnvDPi.js → utils-D_hszPJs.js} +1 -1
  83. package/dist/gateway/static/root/assets/{voice-api-key-field-1xyza74n.js → voice-api-key-field-C8A5XTpx.js} +1 -1
  84. package/dist/gateway/static/root/assets/{work-discovery-page-Dhyk4LHJ.js → work-discovery-page-QyGK7xcU.js} +1 -1
  85. package/dist/gateway/static/root/assets/{work-item-detail-page-CxBRnWeQ.js → work-item-detail-page-DtM6dJcm.js} +1 -1
  86. package/dist/gateway/static/root/assets/work-page-BkWtyIkX.js +1 -0
  87. package/dist/gateway/static/root/assets/{workflow-run-setup-panel-8HLqUALq.js → workflow-run-setup-panel-DxO26B4k.js} +1 -1
  88. package/dist/gateway/static/root/assets/{workflows-page-D48bPgLI.js → workflows-page-CzHTzaGu.js} +1 -1
  89. package/dist/gateway/static/root/index.html +8 -8
  90. package/dist/package.js +1 -1
  91. package/dist/src/config/agent-profile.js +1 -1
  92. package/dist/src/config/index.js +2 -2
  93. package/dist/src/config/paths.d.ts +1 -0
  94. package/dist/src/config/paths.js +10 -3
  95. package/dist/src/gateway/agents-admin.js +1 -1
  96. package/dist/src/infra/update-restart.d.ts +1 -0
  97. package/dist/src/infra/update-restart.js +20 -0
  98. package/dist/src/infra/update-runner.js +1 -0
  99. package/dist/src/infra/update-service-refresh.d.ts +14 -0
  100. package/dist/src/infra/update-service-refresh.js +66 -0
  101. package/package.json +7 -6
  102. package/dist/gateway/static/root/assets/channels-status-swr-CZuEsO5b.js +0 -1
  103. package/dist/gateway/static/root/assets/chunk-QUQL4437-DXsxWP7r.js +0 -4
  104. package/dist/gateway/static/root/assets/index-DIlxvrlG.css +0 -1
  105. package/dist/gateway/static/root/assets/index-DSydVlxZ.js +0 -196
  106. package/dist/gateway/static/root/assets/logs-page-MQB6-NKt.js +0 -7
  107. package/dist/gateway/static/root/assets/messages-B0B40tpO.js +0 -5
  108. package/dist/gateway/static/root/assets/settings-advanced-gate-BlWxQ6Ea.js +0 -1
  109. package/dist/gateway/static/root/assets/skill-reload-api-C9BqzDjZ.js +0 -1
  110. package/dist/gateway/static/root/assets/work-page-Btq3YeCH.js +0 -1
@@ -1 +0,0 @@
1
- import{si as e}from"./index-DSydVlxZ.js";function t(t){let{children:n,fallback:r}=t,i=r===void 0?null:r;return e()?n:i}export{t};
@@ -1 +0,0 @@
1
- import{n as e}from"./rolldown-runtime-aKtaBQYM.js";import{o as t,r as n}from"./locale-store-GfSwnwIZ.js";import{ai as r}from"./index-DSydVlxZ.js";var i=e({reloadSkills:()=>a});async function a(){let e=await t(n(`/api/skills/reload`),{method:`POST`});if(!e.ok)throw Error(await r(e))}export{i as n,a as t};
@@ -1 +0,0 @@
1
- import{i as e}from"./rolldown-runtime-aKtaBQYM.js";import{a as t,n,t as r}from"./vendor-react-BOUWij0V.js";import{l as i,t as a}from"./chunk-QUQL4437-DXsxWP7r.js";import{t as o}from"./cn-BQ_8x0bT.js";import{t as s}from"./check-BODqo66o.js";import{t as c}from"./circle-alert-RzVebuX2.js";import{t as l}from"./messages-B0B40tpO.js";import{n as u,r as d,s as f}from"./locale-store-GfSwnwIZ.js";import{n as p}from"./activity-store-uu1xu9Pl.js";import{Bc as m,Bo as h,Cl as g,Cs as _,Fo as v,Fs as y,Io as b,Lo as x,No as S,Po as C,Ps as w,R as T,Ro as E,Tu as D,Uc as O,Wl as k,Xc as A,Ys as j,ac as M,et as N,jl as ee,lo as P,ol as F,ou as te,qa as ne,ru as re,tu as ie,yc as ae,ys as I,yu as L,za as oe,zo as se}from"./index-DSydVlxZ.js";var R=n(),z=e(t(),1),B=r(),V=6,H={info:{Icon:F,className:`text-accent-fg bg-accent-soft`},success:{Icon:ie,className:`text-success bg-success-soft`},warning:{Icon:w,className:`text-warning bg-warning-soft`},error:{Icon:c,className:`text-danger bg-danger-soft`}};function U(e,t){let n=Math.max(0,Math.round((Date.now()-e)/1e3));if(n<60)return t===`zh`?`刚刚`:`Just now`;let r=Math.round(n/60);if(r<60)return t===`zh`?`${r} 分钟前`:`${r}m ago`;let i=Math.round(r/60);if(i<24)return t===`zh`?`${i} 小时前`:`${i}h ago`;let a=Math.round(i/24);return t===`zh`?`${a} 天前`:`${a}d ago`}function W(e){let t=(0,R.c)(52),{item:n}=e,r=u(K),i;t[0]===r?i=t[1]:(i=l(r),t[0]=r,t[1]=i);let s=i.projectsPage.workHome,c=p(G),{Icon:d,className:f}=H[n.tone],m;t[2]===f?m=t[3]:(m=o(`mt-0.5 flex size-7 shrink-0 items-center justify-center rounded-lg`,f),t[2]=f,t[3]=m);let h;t[4]!==d||t[5]!==n.status?(h=n.status===`running`?(0,B.jsx)(O,{className:`size-3.5 animate-spin motion-reduce:animate-none`,"aria-hidden":!0}):(0,B.jsx)(d,{className:`size-3.5`,"aria-hidden":!0}),t[4]=d,t[5]=n.status,t[6]=h):h=t[6];let g;t[7]!==m||t[8]!==h?(g=(0,B.jsx)(`div`,{className:m,children:h}),t[7]=m,t[8]=h,t[9]=g):g=t[9];let v;t[10]===n.title?v=t[11]:(v=(0,B.jsx)(`h3`,{className:`min-w-0 flex-1 text-sm font-medium leading-5 text-fg`,children:n.title}),t[10]=n.title,t[11]=v);let y;t[12]!==s.activityUnread||t[13]!==n.read?(y=n.read?null:(0,B.jsx)(`span`,{className:`mt-1.5 size-1.5 shrink-0 rounded-full bg-accent`,"aria-label":s.activityUnread}),t[12]=s.activityUnread,t[13]=n.read,t[14]=y):y=t[14];let b;t[15]!==v||t[16]!==y?(b=(0,B.jsxs)(`div`,{className:`flex min-w-0 items-start gap-2`,children:[v,y]}),t[15]=v,t[16]=y,t[17]=b):b=t[17];let x;t[18]===n.message?x=t[19]:(x=n.message?(0,B.jsx)(`p`,{className:`mt-0.5 line-clamp-2 text-xs leading-5 text-fg-muted`,children:n.message}):null,t[18]=n.message,t[19]=x);let S;t[20]===n.source?S=t[21]:(S=n.source?(0,B.jsx)(`span`,{className:`max-w-48 truncate`,children:n.source}):null,t[20]=n.source,t[21]=S);let C;t[22]!==n.updatedAt||t[23]!==r?(C=U(n.updatedAt,r),t[22]=n.updatedAt,t[23]=r,t[24]=C):C=t[24];let w;t[25]===C?w=t[26]:(w=(0,B.jsx)(`span`,{children:C}),t[25]=C,t[26]=w);let T;t[27]===n.occurrences?T=t[28]:(T=n.occurrences>1?(0,B.jsxs)(`span`,{children:[`×`,n.occurrences]}):null,t[27]=n.occurrences,t[28]=T);let E;t[29]!==s.activityViewRelated||t[30]!==n.href?(E=n.href?(0,B.jsxs)(a,{to:n.href,className:`inline-flex items-center gap-0.5 font-medium text-accent-fg hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,children:[s.activityViewRelated,(0,B.jsx)(re,{className:`size-3`,"aria-hidden":!0})]}):null,t[29]=s.activityViewRelated,t[30]=n.href,t[31]=E):E=t[31];let D;t[32]!==w||t[33]!==T||t[34]!==E||t[35]!==S?(D=(0,B.jsxs)(`div`,{className:`mt-1.5 flex min-w-0 flex-wrap items-center gap-x-2 text-[11px] text-fg-subtle`,children:[S,w,T,E]}),t[32]=w,t[33]=T,t[34]=E,t[35]=S,t[36]=D):D=t[36];let k;t[37]!==D||t[38]!==b||t[39]!==x?(k=(0,B.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[b,x,D]}),t[37]=D,t[38]=b,t[39]=x,t[40]=k):k=t[40];let A;t[41]!==n.id||t[42]!==c?(A=()=>c(n.id),t[41]=n.id,t[42]=c,t[43]=A):A=t[43];let j;t[44]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,B.jsx)(_,{className:`size-3.5`,"aria-hidden":!0}),t[44]=j):j=t[44];let M;t[45]!==s.activityRemove||t[46]!==A?(M=(0,B.jsx)(`button`,{type:`button`,className:`rounded-md p-1 text-fg-subtle opacity-0 transition-opacity hover:bg-surface-hover hover:text-fg group-hover:opacity-100 focus:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,"aria-label":s.activityRemove,onClick:A,children:j}),t[45]=s.activityRemove,t[46]=A,t[47]=M):M=t[47];let N;return t[48]!==k||t[49]!==M||t[50]!==g?(N=(0,B.jsxs)(`article`,{className:`group flex items-start gap-3 border-t border-edge-subtle px-1 py-3 first:border-t-0`,children:[g,k,M]}),t[48]=k,t[49]=M,t[50]=g,t[51]=N):N=t[51],N}function G(e){return e.remove}function K(e){return e.language}function ce(){let e=(0,R.c)(8),t=l(u(ue)).projectsPage.workHome,n=p($),r=p(Q),i=p(le),[a,o]=(0,z.useState)(!1),c;e[0]===n?c=e[1]:(c=n.filter(Z),e[0]=n,e[1]=c);let d=c.length,f;e[2]===n?f=e[3]:(f=n.filter(X),e[2]=n,e[3]=f);let m=f.length,h;e[4]!==a||e[5]!==n?(h=a?n:n.slice(0,V),e[4]=a,e[5]=n,e[6]=h):h=e[6];let g=h,_;return e[7]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,B.jsx)(D,{className:`size-4 text-accent`,"aria-hidden":!0}),e[7]=_):_=e[7],(0,B.jsxs)(`section`,{className:`rounded-2xl border border-edge-subtle bg-surface-base p-5`,"aria-labelledby":`workbench-activity-title`,children:[(0,B.jsxs)(`div`,{className:`flex flex-wrap items-start justify-between gap-3`,children:[(0,B.jsxs)(`div`,{children:[(0,B.jsxs)(`div`,{className:`flex items-center gap-2`,children:[_,(0,B.jsx)(`h2`,{id:`workbench-activity-title`,className:`text-sm font-semibold text-fg`,children:t.activityTitle}),d>0?(0,B.jsxs)(`span`,{className:`inline-flex items-center gap-1.5 rounded-full bg-accent-soft px-2 py-0.5 text-[11px] font-medium text-accent-fg`,children:[(0,B.jsx)(O,{className:`size-3 animate-spin motion-reduce:animate-none`,"aria-hidden":!0}),d,` `,t.running]}):m>0?(0,B.jsxs)(`span`,{className:`rounded-full bg-surface-panel px-2 py-0.5 text-[11px] font-medium text-fg-muted`,children:[m,` `,t.activityNew]}):null]}),(0,B.jsx)(`p`,{className:`mt-1 text-xs text-fg-muted`,children:t.activityHint})]}),n.length>0?(0,B.jsxs)(`div`,{className:`flex items-center gap-1`,children:[m>0?(0,B.jsxs)(I,{type:`button`,variant:`ghost`,className:`h-8 px-2 text-xs`,onClick:r,children:[(0,B.jsx)(s,{className:`size-3.5`,"aria-hidden":!0}),t.activityMarkRead]}):null,n.some(Y)?(0,B.jsxs)(I,{type:`button`,variant:`ghost`,className:`h-8 px-2 text-xs text-fg-muted`,onClick:i,children:[(0,B.jsx)(y,{className:`size-3.5`,"aria-hidden":!0}),t.activityClearFinished]}):null]}):null]}),n.length>0?(0,B.jsxs)(`div`,{className:`mt-4 rounded-xl bg-surface-panel px-3`,children:[g.map(J),n.length>V?(0,B.jsx)(`div`,{className:`border-t border-edge-subtle py-2 text-center`,children:(0,B.jsx)(I,{type:`button`,variant:`ghost`,className:`h-8 px-2 text-xs`,onClick:()=>o(q),children:a?t.activityShowLess:t.activityShowAll.replace(`{{count}}`,String(n.length))})}):null]}):(0,B.jsxs)(`div`,{className:`mt-4 flex min-h-28 flex-col items-center justify-center rounded-xl bg-surface-panel px-6 text-center`,children:[(0,B.jsx)(k,{className:`size-5 text-fg-subtle`,"aria-hidden":!0}),(0,B.jsx)(`p`,{className:`mt-2 text-sm font-medium text-fg`,children:t.activityEmpty}),(0,B.jsx)(`p`,{className:`mt-1 max-w-lg text-xs leading-5 text-fg-muted`,children:t.activityEmptyBody})]})]})}function q(e){return!e}function J(e){return(0,B.jsx)(W,{item:e},e.id)}function Y(e){return e.status===`done`}function X(e){return!e.read}function Z(e){return e.status===`running`}function le(e){return e.clearFinished}function Q(e){return e.markAllRead}function $(e){return e.items}function ue(e){return e.language}function de(e){return f(d(`/api/home${e?`?locale=${encodeURIComponent(e)}`:``}`))}function fe(e,t){return f(d(`/api/home/decisions/respond`),{method:`POST`,body:JSON.stringify({...e,decision:t})})}function pe(e,t){return e.replace(/\{\{(\w+)\}\}/g,(e,n)=>String(t[n]??``))}function me(e,t){if(e==null)return t;let n=new Date(e);return Number.isNaN(n.getTime())?t:N(n)}function he(){let e=(0,R.c)(2),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,B.jsx)(P,{className:`h-32 rounded-2xl`}),e[0]=t):t=e[0];let n;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,B.jsxs)(`div`,{className:`space-y-5`,"aria-busy":!0,children:[t,(0,B.jsxs)(`div`,{className:`grid gap-4 xl:grid-cols-2`,children:[(0,B.jsx)(P,{className:`h-64 rounded-2xl`}),(0,B.jsx)(P,{className:`h-64 rounded-2xl`})]}),(0,B.jsx)(P,{className:`h-44 rounded-2xl`})]}),e[1]=n):n=e[1],n}function ge(e){let t=(0,R.c)(22),{item:n,statusLabel:r,needsAttention:i}=e,s=i===void 0?!1:i,c=`/work-items/${encodeURIComponent(n.id)}`,l=s?`border-warning/35 bg-warning-soft/25 hover:bg-warning-soft/40`:`border-edge-subtle bg-surface-panel hover:bg-surface-hover/55`,u;t[0]===l?u=t[1]:(u=o(`group block rounded-xl border p-3.5 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,l),t[0]=l,t[1]=u);let d;t[2]===n.title?d=t[3]:(d=(0,B.jsx)(`h3`,{className:`truncate text-sm font-semibold text-fg`,children:n.title}),t[2]=n.title,t[3]=d);let f;t[4]===n.projectName?f=t[5]:(f=(0,B.jsx)(`p`,{className:`mt-1 truncate text-xs text-fg-subtle`,children:n.projectName}),t[4]=n.projectName,t[5]=f);let p;t[6]!==d||t[7]!==f?(p=(0,B.jsxs)(`div`,{className:`min-w-0`,children:[d,f]}),t[6]=d,t[7]=f,t[8]=p):p=t[8];let m;t[9]===r?m=t[10]:(m=(0,B.jsx)(`span`,{className:`shrink-0 rounded-full bg-surface-hover px-2 py-0.5 text-[11px] font-medium text-fg-muted`,children:r}),t[9]=r,t[10]=m);let h;t[11]!==p||t[12]!==m?(h=(0,B.jsxs)(`div`,{className:`flex items-start justify-between gap-3`,children:[p,m]}),t[11]=p,t[12]=m,t[13]=h):h=t[13];let g;t[14]!==n.blockedReason||t[15]!==n.nextAction?(g=n.blockedReason||n.nextAction?(0,B.jsx)(`p`,{className:`mt-2 line-clamp-2 text-xs leading-5 text-fg-muted`,children:n.blockedReason||n.nextAction}):null,t[14]=n.blockedReason,t[15]=n.nextAction,t[16]=g):g=t[16];let _;return t[17]!==g||t[18]!==c||t[19]!==u||t[20]!==h?(_=(0,B.jsxs)(a,{to:c,className:u,children:[h,g]}),t[17]=g,t[18]=c,t[19]=u,t[20]=h,t[21]=_):_=t[21],_}function _e(e){let t=(0,R.c)(27),{item:n,kindLabel:r,reasonLabel:i,approveLabel:o,denyLabel:s,busy:c,onRespond:l}=e,u;t[0]===n.title?u=t[1]:(u=(0,B.jsx)(`h3`,{className:`truncate text-sm font-semibold text-fg`,children:n.title}),t[0]=n.title,t[1]=u);let d=n.projectName||r,f;t[2]===d?f=t[3]:(f=(0,B.jsx)(`p`,{className:`mt-1 truncate text-xs text-fg-subtle`,children:d}),t[2]=d,t[3]=f);let p;t[4]!==u||t[5]!==f?(p=(0,B.jsxs)(`div`,{className:`min-w-0`,children:[u,f]}),t[4]=u,t[5]=f,t[6]=p):p=t[6];let m;t[7]===i?m=t[8]:(m=(0,B.jsx)(`span`,{className:`shrink-0 rounded-full bg-surface-panel/80 px-2 py-0.5 text-[11px] font-medium text-fg-muted`,children:i}),t[7]=i,t[8]=m);let h;t[9]!==p||t[10]!==m?(h=(0,B.jsxs)(`div`,{className:`flex items-start justify-between gap-3`,children:[p,m]}),t[9]=p,t[10]=m,t[11]=h):h=t[11];let g;t[12]===n.detail?g=t[13]:(g=n.detail?(0,B.jsx)(`p`,{className:`mt-2 line-clamp-2 text-xs leading-5 text-fg-muted`,children:n.detail}):null,t[12]=n.detail,t[13]=g);let _;t[14]!==n.href||t[15]!==h||t[16]!==g?(_=(0,B.jsxs)(a,{to:n.href,className:`group block focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,children:[h,g]}),t[14]=n.href,t[15]=h,t[16]=g,t[17]=_):_=t[17];let v;t[18]!==o||t[19]!==c||t[20]!==s||t[21]!==n.response||t[22]!==l?(v=n.response?(0,B.jsxs)(`div`,{className:`mt-3 flex justify-end gap-2 border-t border-warning/20 pt-3`,children:[(0,B.jsx)(I,{type:`button`,variant:`ghost`,className:`h-8 px-2`,disabled:c,onClick:()=>l(`deny`),children:s}),(0,B.jsx)(I,{type:`button`,variant:`primary`,className:`h-8 px-2`,disabled:c,onClick:()=>l(`approve`),children:o})]}):null,t[18]=o,t[19]=c,t[20]=s,t[21]=n.response,t[22]=l,t[23]=v):v=t[23];let y;return t[24]!==_||t[25]!==v?(y=(0,B.jsxs)(`article`,{className:`rounded-xl border border-warning/35 bg-warning-soft/25 p-3.5 transition-colors hover:bg-warning-soft/40`,children:[_,v]}),t[24]=_,t[25]=v,t[26]=y):y=t[26],y}function ve(e){let t=(0,R.c)(19),{project:n,openLabel:r,noDescription:i}=e,o=`/projects/${encodeURIComponent(n.id)}`,s;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,B.jsx)(g,{className:`size-4 shrink-0 text-accent`,"aria-hidden":!0}),t[0]=s):s=t[0];let c;t[1]===n.name?c=t[2]:(c=(0,B.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[s,(0,B.jsx)(`h3`,{className:`truncate text-sm font-semibold text-fg`,children:n.name})]}),t[1]=n.name,t[2]=c);let l;t[3]===r?l=t[4]:(l=(0,B.jsx)(L,{className:`size-4 shrink-0 text-fg-subtle transition-transform group-hover:translate-x-0.5`,"aria-label":r}),t[3]=r,t[4]=l);let u;t[5]!==c||t[6]!==l?(u=(0,B.jsxs)(`div`,{className:`flex items-start justify-between gap-3`,children:[c,l]}),t[5]=c,t[6]=l,t[7]=u):u=t[7];let d=n.description||n.brief||i,f;t[8]===d?f=t[9]:(f=(0,B.jsx)(`p`,{className:`mt-3 line-clamp-2 text-xs leading-5 text-fg-muted`,children:d}),t[8]=d,t[9]=f);let p=n.lastActiveAt??n.updatedAt,m;t[10]===p?m=t[11]:(m=me(p,``),t[10]=p,t[11]=m);let h;t[12]===m?h=t[13]:(h=(0,B.jsx)(`p`,{className:`mt-auto pt-3 text-[11px] text-fg-subtle`,children:m}),t[12]=m,t[13]=h);let _;return t[14]!==o||t[15]!==h||t[16]!==u||t[17]!==f?(_=(0,B.jsxs)(a,{to:o,className:`group flex min-h-32 flex-col rounded-xl border border-edge-subtle bg-surface-panel p-4 transition-colors hover:bg-surface-hover/55 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,children:[u,f,h]}),t[14]=o,t[15]=h,t[16]=u,t[17]=f,t[18]=_):_=t[18],_}function ye(){let e=u(e=>e.language),t=l(e),n=t.projectsPage,r=i(),o=h(e=>e.setPageHeader),s=h(e=>e.clearPageHeader),[d,f]=(0,z.useState)(null),[p,g]=(0,z.useState)([]),[_,y]=(0,z.useState)(!0),[w,D]=(0,z.useState)(null),[O,N]=(0,z.useState)(null),[P,F]=(0,z.useState)(``),[re,L]=(0,z.useState)(!1),[R,V]=(0,z.useState)(`delegate`),[H,U]=(0,z.useState)(``),[W,G]=(0,z.useState)(!1),[K,q]=(0,z.useState)(null),J=(0,z.useCallback)(async()=>{y(!0),D(null);try{let[t,n]=await Promise.all([de(e),ne({limit:100,sortBy:`updatedAt`,sortOrder:`desc`})]);f(t),g(n.items)}catch(e){D(e instanceof Error?e.message:String(e))}finally{y(!1)}},[e]);(0,z.useEffect)(()=>{J()},[J]);let Y=(0,z.useMemo)(()=>{let e=P.trim().toLocaleLowerCase(),t=p.filter(e=>e.status!==`archived`);return e?t.filter(t=>[t.name,t.description,t.brief].filter(Boolean).some(t=>t.toLocaleLowerCase().includes(e))):t.slice(0,12)},[p,P]),X=(0,z.useMemo)(()=>d?.decisions??[],[d]),Z=(0,z.useMemo)(()=>d?.work.current.filter(e=>e.status!==`needs_input`&&e.status!==`in_review`&&e.status!==`blocked`).slice(0,10)??[],[d]),le=(0,z.useCallback)(async t=>{t.preventDefault();let n=H.trim();if(!(!n||W)){if(R===`watch`){let t=e===`zh`?`持续关注以下事项,在发生有意义的变化时通知我:\n${n}`:`Keep watching the following and notify me when something meaningfully changes:\n${n}`;U(``),L(!1),r(`/automations?draft=${encodeURIComponent(t)}&autogenerate=1`);return}G(!0),N(null);try{let t=await oe({outcome:n,uiLocale:e});U(``),L(!1),r(`/projects/${encodeURIComponent(t.project.id)}`)}catch(e){N(e instanceof Error?e.message:String(e))}finally{G(!1)}}},[R,W,e,r,H]),Q=(0,z.useMemo)(()=>(0,B.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,B.jsxs)(I,{type:`button`,variant:`secondary`,className:`h-9 rounded-lg`,onClick:()=>{V(`watch`),L(!0)},children:[(0,B.jsx)(ee,{className:`size-4`,"aria-hidden":!0}),n.workHome.watch]}),(0,B.jsxs)(I,{type:`button`,variant:`primary`,className:`h-9 rounded-lg`,onClick:()=>{V(`delegate`),L(!0)},children:[(0,B.jsx)(ae,{className:`size-4`,"aria-hidden":!0}),n.workHome.delegate]})]}),[n.workHome.delegate,n.workHome.watch]),$=(0,z.useCallback)(async(e,t)=>{if(e.response){q(e.id),D(null);try{await fe(e.response,t),await J()}catch(e){D(e instanceof Error?e.message:String(e))}finally{q(null)}}},[J]);return(0,z.useLayoutEffect)(()=>(o({startExtra:null,main:(0,B.jsxs)(`div`,{className:`min-w-0`,children:[(0,B.jsx)(`h1`,{className:`truncate text-base font-semibold tracking-tight text-fg`,children:n.title}),(0,B.jsx)(`p`,{className:`truncate text-xs text-fg-muted`,children:n.workHome.subtitle})]}),end:Q}),()=>s()),[s,Q,o,n.title,n.workHome.subtitle]),(0,B.jsxs)(`main`,{className:`flex w-full flex-1 flex-col gap-5 px-3 py-6 sm:px-5 xl:px-6`,children:[(0,B.jsx)(S,{open:re,onOpenChange:e=>{L(e),e||N(null)},children:(0,B.jsxs)(E,{children:[(0,B.jsx)(x,{className:`fixed inset-0 z-[80] bg-scrim backdrop-blur-[2px]`}),(0,B.jsxs)(v,{className:`fixed left-1/2 top-1/2 z-[90] flex h-[min(26rem,calc(100vh-2rem))] w-[min(36rem,calc(100vw-2rem))] -translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden rounded-xl border border-edge bg-surface-panel shadow-float focus:outline-none`,children:[(0,B.jsxs)(`div`,{className:`shrink-0 border-b border-edge px-5 py-4`,children:[(0,B.jsx)(se,{className:`text-base font-semibold text-fg`,children:R===`watch`?n.workHome.watchTitle:n.workHome.delegateTitle}),(0,B.jsx)(b,{className:`mt-1 text-sm text-fg-muted`,children:R===`watch`?n.workHome.watchDescription:n.workHome.delegateDescription})]}),(0,B.jsxs)(`form`,{onSubmit:le,className:`flex min-h-0 flex-1 flex-col`,children:[(0,B.jsxs)(`div`,{className:`min-h-0 flex-1 px-5 py-4`,children:[(0,B.jsxs)(`label`,{className:`grid gap-2 text-sm font-medium text-fg`,children:[R===`watch`?n.workHome.watchLabel:n.workHome.outcomeLabel,(0,B.jsx)(`textarea`,{className:`min-h-40 w-full resize-none rounded-xl border border-edge bg-surface-base p-3 text-sm font-normal leading-6 text-fg outline-none placeholder:text-fg-subtle focus:border-accent focus:ring-2 focus:ring-accent/20`,value:H,onChange:e=>U(e.target.value),placeholder:R===`watch`?n.workHome.watchPlaceholder:n.workHome.outcomePlaceholder,maxLength:12e3,disabled:W})]}),O?(0,B.jsx)(`p`,{className:`mt-3 rounded-lg bg-danger-soft px-3 py-2 text-xs text-danger`,role:`alert`,children:O}):null]}),(0,B.jsxs)(`div`,{className:`flex shrink-0 items-center justify-between gap-3 border-t border-edge px-5 py-4`,children:[(0,B.jsx)(`p`,{className:`text-xs text-fg-subtle`,children:R===`watch`?n.workHome.watchSetupHint:n.workHome.autoSetupHint}),(0,B.jsxs)(`div`,{className:`flex shrink-0 gap-2`,children:[(0,B.jsx)(C,{asChild:!0,children:(0,B.jsx)(I,{type:`button`,variant:`ghost`,children:n.cancel})}),(0,B.jsxs)(I,{type:`submit`,variant:`primary`,disabled:W||!H.trim(),children:[(0,B.jsx)(j,{className:`size-4`,"aria-hidden":!0}),W?n.workHome.delegating:R===`watch`?n.workHome.designWatch:n.workHome.delegate]})]})]})]})]})]})}),w?(0,B.jsxs)(`div`,{className:`flex items-center justify-between gap-3 rounded-xl border border-danger/25 bg-danger-soft px-4 py-3 text-sm text-danger`,children:[(0,B.jsx)(`span`,{children:w}),(0,B.jsx)(I,{type:`button`,variant:`ghost`,className:`h-8 px-2`,onClick:()=>void J(),children:n.workHome.retry})]}):null,_?(0,B.jsx)(he,{}):d?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)(`section`,{className:`relative overflow-hidden rounded-2xl border border-accent/15 bg-gradient-to-br from-accent-soft/70 via-surface-panel to-surface-panel p-5 sm:p-6`,children:[(0,B.jsx)(`div`,{className:`absolute -right-8 -top-12 size-40 rounded-full bg-accent/10 blur-3xl`,"aria-hidden":!0}),(0,B.jsxs)(`div`,{className:`relative flex flex-wrap items-end justify-between gap-4`,children:[(0,B.jsxs)(`div`,{className:`max-w-2xl`,children:[(0,B.jsx)(`div`,{className:`mb-3 flex size-10 items-center justify-center rounded-xl bg-accent text-white`,children:(0,B.jsx)(A,{className:`size-5`,"aria-hidden":!0})}),(0,B.jsx)(`p`,{className:`text-xs font-semibold uppercase tracking-wider text-accent`,children:n.workHome.briefingTitle}),(0,B.jsx)(`h2`,{className:`mt-1 text-xl font-semibold tracking-tight text-fg`,children:n.workHome.heroTitle}),(0,B.jsx)(`p`,{className:`mt-2 text-sm leading-6 text-fg-muted`,children:d.briefing.summary})]}),(0,B.jsxs)(`div`,{className:`flex flex-wrap gap-2 text-xs`,children:[(0,B.jsx)(`span`,{className:`rounded-full bg-surface-panel/80 px-3 py-1.5 text-fg-muted`,children:pe(n.workHome.activeCount,{count:d.briefing.progress.movingCount})}),d.decisions.length>0?(0,B.jsx)(`span`,{className:`rounded-full bg-warning-soft px-3 py-1.5 text-fg`,children:pe(n.workHome.attentionCount,{count:d.decisions.length})}):null]})]})]}),d.work.current.length===0&&d.workflowRuns.active.length===0?(0,B.jsxs)(`section`,{className:`rounded-2xl border border-dashed border-edge p-8 text-center`,children:[(0,B.jsx)(m,{className:`mx-auto size-6 text-accent`,"aria-hidden":!0}),(0,B.jsx)(`h2`,{className:`mt-3 text-sm font-semibold text-fg`,children:n.workHome.emptyTitle}),(0,B.jsx)(`p`,{className:`mx-auto mt-1 max-w-lg text-sm leading-6 text-fg-muted`,children:n.workHome.emptyBody}),(0,B.jsxs)(`div`,{className:`mt-4 flex justify-center gap-2`,children:[(0,B.jsx)(I,{type:`button`,variant:`primary`,onClick:()=>r(`/chat/new`),children:n.workHome.startChat}),(0,B.jsx)(I,{type:`button`,variant:`secondary`,onClick:()=>{V(`delegate`),L(!0)},children:n.workHome.startLongWork})]})]}):null,(0,B.jsxs)(`div`,{className:`grid gap-4 xl:grid-cols-2`,children:[(0,B.jsxs)(`section`,{className:`rounded-2xl border border-edge-subtle bg-surface-base p-5`,children:[(0,B.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,B.jsx)(c,{className:`size-4 text-warning`,"aria-hidden":!0}),(0,B.jsx)(`h2`,{className:`text-sm font-semibold text-fg`,children:n.workHome.needsYou})]}),(0,B.jsx)(`p`,{className:`mt-1 text-xs text-fg-muted`,children:n.workHome.needsYouHint}),(0,B.jsx)(`div`,{className:`mt-4 space-y-2`,children:X.length?X.map(e=>(0,B.jsx)(_e,{item:e,kindLabel:n.workHome.decisionKinds[e.kind],reasonLabel:n.workHome.decisionReasons[e.reason],approveLabel:n.workHome.approve,denyLabel:n.workHome.deny,busy:K===e.id,onRespond:t=>void $(e,t)},e.id)):(0,B.jsx)(`p`,{className:`rounded-xl bg-surface-panel px-4 py-6 text-center text-sm text-fg-muted`,children:n.workHome.nothingNeedsYou})})]}),(0,B.jsxs)(`section`,{className:`rounded-2xl border border-edge-subtle bg-surface-base p-5`,children:[(0,B.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,B.jsx)(k,{className:`size-4 text-accent`,"aria-hidden":!0}),(0,B.jsx)(`h2`,{className:`text-sm font-semibold text-fg`,children:n.workHome.continueTitle})]}),(0,B.jsx)(`p`,{className:`mt-1 text-xs text-fg-muted`,children:n.workHome.continueHint}),(0,B.jsx)(`div`,{className:`mt-4 space-y-2`,children:Z.length?Z.map(e=>(0,B.jsx)(ge,{item:e,statusLabel:t.projectDetailPage.workItems.statuses[e.status]},e.id)):(0,B.jsx)(`p`,{className:`rounded-xl bg-surface-panel px-4 py-6 text-center text-sm text-fg-muted`,children:n.workHome.noCurrentWork})})]})]}),d.workflowRuns.active.length>0||d.upcomingAutomations.length>0?(0,B.jsxs)(`div`,{className:`grid gap-4 lg:grid-cols-2`,children:[(0,B.jsxs)(`section`,{className:`rounded-2xl border border-edge-subtle bg-surface-base p-5`,children:[(0,B.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,B.jsx)(j,{className:`size-4 text-accent`,"aria-hidden":!0}),(0,B.jsx)(`h2`,{className:`text-sm font-semibold text-fg`,children:n.workHome.processing})]}),(0,B.jsxs)(`div`,{className:`mt-3 space-y-2`,children:[d.workflowRuns.active.map(e=>(0,B.jsxs)(a,{to:T(e.id),className:`flex items-center justify-between gap-3 rounded-xl bg-surface-panel p-3 text-sm hover:bg-surface-hover`,children:[(0,B.jsx)(`span`,{className:`min-w-0 truncate text-fg`,children:e.title}),(0,B.jsx)(`span`,{className:`shrink-0 text-xs text-fg-subtle`,children:n.workHome.running})]},e.id)),d.workflowRuns.active.length===0?(0,B.jsx)(`p`,{className:`text-sm text-fg-muted`,children:n.workHome.nothingRunning}):null]})]}),(0,B.jsxs)(`section`,{className:`rounded-2xl border border-edge-subtle bg-surface-base p-5`,children:[(0,B.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,B.jsx)(te,{className:`size-4 text-accent`,"aria-hidden":!0}),(0,B.jsx)(`h2`,{className:`text-sm font-semibold text-fg`,children:n.workHome.scheduled})]}),(0,B.jsxs)(`div`,{className:`mt-3 space-y-2`,children:[d.upcomingAutomations.map(e=>(0,B.jsxs)(a,{to:`/automations`,className:`flex items-center justify-between gap-3 rounded-xl bg-surface-panel p-3 text-sm hover:bg-surface-hover`,children:[(0,B.jsx)(`span`,{className:`min-w-0 truncate text-fg`,children:e.name||e.action}),(0,B.jsx)(`time`,{className:`shrink-0 text-xs text-fg-subtle`,children:me(e.nextRunAt,n.never)})]},e.id)),d.upcomingAutomations.length===0?(0,B.jsx)(`p`,{className:`text-sm text-fg-muted`,children:n.workHome.noScheduled}):null]})]})]}):null,d.briefing.wins.length>0?(0,B.jsxs)(`section`,{className:`rounded-2xl border border-edge-subtle bg-surface-base p-5`,children:[(0,B.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,B.jsx)(ie,{className:`size-4 text-success`,"aria-hidden":!0}),(0,B.jsx)(`h2`,{className:`text-sm font-semibold text-fg`,children:n.workHome.completed})]}),(0,B.jsx)(`div`,{className:`mt-3 grid gap-2 md:grid-cols-2 xl:grid-cols-3`,children:d.briefing.wins.map(e=>(0,B.jsxs)(a,{to:e.href,className:`rounded-xl border border-edge-subtle bg-surface-panel p-3.5 transition-colors hover:bg-surface-hover/55`,children:[(0,B.jsx)(`p`,{className:`truncate text-sm font-medium text-fg`,children:e.title}),(0,B.jsx)(`p`,{className:`mt-1 text-xs text-fg-subtle`,children:n.workHome.winKinds[e.kind]})]},e.id))})]}):null,(0,B.jsx)(ce,{})]}):null,(0,B.jsxs)(`section`,{className:`rounded-2xl border border-edge-subtle bg-surface-base p-5`,children:[(0,B.jsxs)(`div`,{className:`flex flex-wrap items-start justify-between gap-3`,children:[(0,B.jsxs)(`div`,{children:[(0,B.jsx)(`h2`,{className:`text-sm font-semibold text-fg`,children:n.workHome.spacesTitle}),(0,B.jsx)(`p`,{className:`mt-1 text-xs text-fg-muted`,children:n.workHome.spacesHint})]}),(0,B.jsx)(a,{to:`/projects`,className:`text-xs font-medium text-accent hover:underline`,children:n.management.viewAll})]}),(0,B.jsx)(`div`,{className:`mt-3 flex justify-end`,children:(0,B.jsxs)(`label`,{className:`relative block min-w-0`,children:[(0,B.jsx)(M,{className:`pointer-events-none absolute left-3 top-1/2 size-4 -translate-y-1/2 text-fg-subtle`,"aria-hidden":!0}),(0,B.jsx)(`input`,{className:`h-9 w-52 rounded-lg border border-edge bg-surface-panel pl-9 pr-3 text-sm text-fg outline-none placeholder:text-fg-muted focus:border-accent`,value:P,onChange:e=>F(e.target.value),placeholder:n.searchPlaceholder,"aria-label":n.searchPlaceholder})]})}),(0,B.jsx)(`div`,{className:`mt-4 grid gap-3 md:grid-cols-2 xl:grid-cols-3`,children:Y.map(e=>(0,B.jsx)(ve,{project:e,openLabel:n.workHome.openSpace,noDescription:n.noDescription},e.id))}),!_&&Y.length===0?(0,B.jsx)(`p`,{className:`py-8 text-center text-sm text-fg-muted`,children:n.workHome.noSpaces}):null]})]})}export{ye as WorkPage};