@xopcai/xopc 0.0.240 → 0.0.241
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser-ext/manifest.json +1 -1
- package/dist/extensions/telegram/xopc.extension.json +1 -1
- package/dist/gateway/static/root/assets/{activity-store-DLfkwJzZ.js → activity-store-CLnbVm9G.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-avatar-dicebear-DNqb8LGQ.js → agent-avatar-dicebear-DuBewmbW.js} +1 -1
- package/dist/gateway/static/root/assets/agent-defaults-settings-panel-DbdgX6AA.js +1 -0
- package/dist/gateway/static/root/assets/agents-BX3uRVm4.js +1 -0
- package/dist/gateway/static/root/assets/{api-IUm57Zse.js → api-DjBZe303.js} +1 -1
- package/dist/gateway/static/root/assets/app-chrome-BeB4KgOf.js +1 -0
- package/dist/gateway/static/root/assets/{app-management-settings-panel-4-eqCZG_.js → app-management-settings-panel-D8evZyFQ.js} +1 -1
- package/dist/gateway/static/root/assets/{appearance-settings-Dus5TPxo.js → appearance-settings-B-iul0RG.js} +1 -1
- package/dist/gateway/static/root/assets/apps-page-CoZd_cZu.js +1 -0
- package/dist/gateway/static/root/assets/{archive-plugin-Bha1jUhj.js → archive-plugin-BOx0EJZs.js} +1 -1
- package/dist/gateway/static/root/assets/{attachment-load-CX2u191M.js → attachment-load-Cfk1lwBo.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-page-BizspokZ.js → automations-page-BTSGvaeS.js} +1 -1
- package/dist/gateway/static/root/assets/automations-workspace-C8RRKT-a.js +6 -0
- package/dist/gateway/static/root/assets/{binary-plugins-CSn8R1EL.js → binary-plugins-ChZyZK45.js} +1 -1
- package/dist/gateway/static/root/assets/{block-editor-D5MN7UPI.js → block-editor-DCH9b2Ht.js} +46 -46
- package/dist/gateway/static/root/assets/browser-settings-page-D1GPwIfx.js +8 -0
- package/dist/gateway/static/root/assets/{browser-workflow-inputs-CeG3fWhC.js → browser-workflow-inputs-jvfcgFG-.js} +1 -1
- package/dist/gateway/static/root/assets/{browser-workflows-page-oqmPd1KI.js → browser-workflows-page-DrHW7XNi.js} +2 -2
- package/dist/gateway/static/root/assets/capabilities-settings-panel-CrXB1Q-l.js +7 -0
- package/dist/gateway/static/root/assets/channels-settings-DWMSYaNZ.js +1 -0
- package/dist/gateway/static/root/assets/{channels-status-swr-CwUSKmeY.js → channels-status-swr-CC9MFway.js} +1 -1
- package/dist/gateway/static/root/assets/{chat-terminal-dock-C0m-ie_q.js → chat-terminal-dock-DeeZrVbV.js} +2 -2
- package/dist/gateway/static/root/assets/connectors-page-DXTl1fNB.js +2 -0
- package/dist/gateway/static/root/assets/{cron-expression-DJOvtnKf.js → cron-expression-CiqQOeQ3.js} +1 -1
- package/dist/gateway/static/root/assets/{date-picker-B06ZCEsb.js → date-picker-CGAMGPfU.js} +1 -1
- package/dist/gateway/static/root/assets/dependency-picker-CxWeUTsc.js +1 -0
- package/dist/gateway/static/root/assets/{desktop-pet-INH03b4z.js → desktop-pet-C3QmYO75.js} +1 -1
- package/dist/gateway/static/root/assets/desktop-pet-settings-CAADkWYy.js +1 -0
- package/dist/gateway/static/root/assets/{extension-debug-page-BcEHXLQ2.js → extension-debug-page-FQXjDJ8P.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-page-CWefEHKN.js → extension-page-BJE1D5Ji.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-settings-page-CjBTLU5X.js → extension-settings-page-5Ik2tNry.js} +1 -1
- package/dist/gateway/static/root/assets/folder-open-CyzJ19I9.js +1 -0
- package/dist/gateway/static/root/assets/{gateway-config-api-4GYzRHAt.js → gateway-config-api-cTj71t2a.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-config-swr-DfMY-MLf.js → gateway-config-swr-Bxe_R-JH.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-settings-C8MQeYbR.js → gateway-settings-KXBUjNcx.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-startup-retry-S6aB0hVI.js → gateway-startup-retry-DJG-I0wW.js} +1 -1
- package/dist/gateway/static/root/assets/heartbeat-settings-C8cVzIcs.js +1 -0
- package/dist/gateway/static/root/assets/home-page-NdWtBda5.js +1 -0
- package/dist/gateway/static/root/assets/{image-generation-api-DOX5uq-R.js → image-generation-api-Dc_ojQuj.js} +1 -1
- package/dist/gateway/static/root/assets/index-7i2P3312.js +70 -0
- package/dist/gateway/static/root/assets/index-DTo3IcbW.css +2 -0
- package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-xvS2czSF.js → keyboard-shortcuts-settings-pOKl7blR.js} +1 -1
- package/dist/gateway/static/root/assets/link-2-D_ZKYUW7.js +1 -0
- package/dist/gateway/static/root/assets/local-app-workbench-page-C_j_od5f.js +2 -0
- package/dist/gateway/static/root/assets/{local-apps-page-BAYQxS0S.js → local-apps-page-Bi6wwKgm.js} +1 -1
- package/dist/gateway/static/root/assets/{locale-store-XDFAPNNu.js → locale-store-C5wr3_pc.js} +1 -1
- package/dist/gateway/static/root/assets/logs-page-D6PDZEVP.js +2 -0
- package/dist/gateway/static/root/assets/{management-settings-DYmKy_2v.js → management-settings-DGlVizWi.js} +1 -1
- package/dist/gateway/static/root/assets/{markdown-split-Cr32dNv1.js → markdown-split-CXP5zBx_.js} +1 -1
- package/dist/gateway/static/root/assets/{markdown-view-v-O3cOpk.js → markdown-view-D6LxlDxr.js} +1 -1
- package/dist/gateway/static/root/assets/{media-plugins-KPSjs3vW.js → media-plugins-BsENGLr2.js} +1 -1
- package/dist/gateway/static/root/assets/message-square-plus-XP0tGdlV.js +1 -0
- package/dist/gateway/static/root/assets/messages-_tYhRAHD.js +3 -0
- package/dist/gateway/static/root/assets/minimize-2-DtOGrlpo.js +1 -0
- package/dist/gateway/static/root/assets/{mobile-pairing-wizard-pWsC7jcc.js → mobile-pairing-wizard-DcEz7qcX.js} +1 -1
- package/dist/gateway/static/root/assets/models-hub-cache-Y7GUjxHx.js +1 -0
- package/dist/gateway/static/root/assets/{notes-page-DBBnJrFf.js → notes-page-D2EqpDyo.js} +1 -1
- package/dist/gateway/static/root/assets/notes-workbench-Bu0a83Oj.js +4 -0
- package/dist/gateway/static/root/assets/{oauth-api-B_pcOUfT.js → oauth-api-C5NVcsKE.js} +1 -1
- package/dist/gateway/static/root/assets/pencil-DmIY3Oa-.js +1 -0
- package/dist/gateway/static/root/assets/{product-open-page-B8cjLdm4.js → product-open-page-DMhf1rdz.js} +1 -1
- package/dist/gateway/static/root/assets/project-detail-page-DDHi0Y4Q.js +1 -0
- package/dist/gateway/static/root/assets/projects-page-CVMFKpmu.js +1 -0
- package/dist/gateway/static/root/assets/{registry-api-DeVvBsl4.js → registry-api-FXdFaoWM.js} +1 -1
- package/dist/gateway/static/root/assets/remote-access-hub-B74aErBY.js +1 -0
- package/dist/gateway/static/root/assets/{runtime-tools-settings-panel-DFTHpNg6.js → runtime-tools-settings-panel-Bv-akndY.js} +2 -2
- package/dist/gateway/static/root/assets/{schema-form-CW7qifxi.js → schema-form-BUzdHWx6.js} +1 -1
- package/dist/gateway/static/root/assets/sessions-page-D2wmGNZE.js +1 -0
- package/dist/gateway/static/root/assets/settings-advanced-gate-CYCCUMEt.js +1 -0
- package/dist/gateway/static/root/assets/{settings-form-section-OMPX3Svb.js → settings-form-section-DjWzRk4z.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-CDKXJ12S.js → settings-page-C0OBLqpu.js} +1 -1
- package/dist/gateway/static/root/assets/setup-status-panel-NpLQkFCh.js +1 -0
- package/dist/gateway/static/root/assets/share-preview-page-BtbPYaYC.js +2 -0
- package/dist/gateway/static/root/assets/shares-settings-rf8f1OGq.js +1 -0
- package/dist/gateway/static/root/assets/skill-reload-api-BkvclZ_o.js +1 -0
- package/dist/gateway/static/root/assets/{skills-page-DAAlmTSh.js → skills-page-CYk8pN97.js} +1 -1
- package/dist/gateway/static/root/assets/{skills-page.utils-CiMRNDFM.js → skills-page.utils-DGjnz-NG.js} +1 -1
- package/dist/gateway/static/root/assets/{system-settings-panel-Bq7niN-G.js → system-settings-panel-DmCRSvtd.js} +1 -1
- package/dist/gateway/static/root/assets/task-detail-page-6a2RdDl2.js +1 -0
- package/dist/gateway/static/root/assets/{theme-store-5-XHH7F0.js → theme-store-DUko1ZnE.js} +1 -1
- package/dist/gateway/static/root/assets/tunnel-api-Chfiba_x.js +1 -0
- package/dist/gateway/static/root/assets/{use-autosave-CkwILwYg.js → use-autosave-W_P8Kiv4.js} +1 -1
- package/dist/gateway/static/root/assets/user-context-page-SeOHP6XO.js +1 -0
- package/dist/gateway/static/root/assets/{voice-api-key-field-BG-kpmoU.js → voice-api-key-field-BZD0j1jc.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-config-api-Bk_bVeGX.js → voice-config-api-BO6A8V3Z.js} +1 -1
- package/dist/gateway/static/root/assets/{work-discovery-overlay-BOH2utuu.js → work-discovery-overlay-BfwEoOGL.js} +1 -1
- package/dist/gateway/static/root/assets/workflow-run-setup-panel-X7Z5_lRX.js +3 -0
- package/dist/gateway/static/root/assets/workflows-page-BklMzkg8.js +5 -0
- package/dist/gateway/static/root/index.html +18 -13
- package/dist/package.js +1 -1
- package/dist/src/gateway/hono/routes/media.js +5 -14
- package/dist/src/gateway/hono/routes/shares.js +36 -8
- package/dist/src/gateway/hono/routes/voice.js +1 -1
- package/dist/src/gateway/media-access.d.ts +6 -0
- package/dist/src/gateway/media-access.js +19 -0
- package/dist/src/share/share-store.js +3 -2
- package/dist/src/share/share-types.d.ts +2 -0
- package/package.json +3 -3
- package/dist/gateway/static/root/assets/agent-defaults-settings-panel-CDZBY8QF.js +0 -1
- package/dist/gateway/static/root/assets/agents-BpWZKFrQ.js +0 -1
- package/dist/gateway/static/root/assets/apps-page-DPacUrzS.js +0 -1
- package/dist/gateway/static/root/assets/automations-workspace-CudEcxwk.js +0 -6
- package/dist/gateway/static/root/assets/browser-settings-page-wKhgAIwg.js +0 -8
- package/dist/gateway/static/root/assets/capabilities-settings-panel-Dj_x6HTl.js +0 -7
- package/dist/gateway/static/root/assets/channels-settings-BpsJRsjG.js +0 -1
- package/dist/gateway/static/root/assets/connectors-page-B-Gdzfob.js +0 -2
- package/dist/gateway/static/root/assets/dependency-picker-BU8dmVCo.js +0 -1
- package/dist/gateway/static/root/assets/desktop-pet-settings-CzAGt3M_.js +0 -1
- package/dist/gateway/static/root/assets/heartbeat-settings-C_8vY0Eu.js +0 -1
- package/dist/gateway/static/root/assets/home-page-D1SM6UXd.js +0 -1
- package/dist/gateway/static/root/assets/index-BN4XPtJY.js +0 -70
- package/dist/gateway/static/root/assets/index-CCBexxKW.css +0 -2
- package/dist/gateway/static/root/assets/local-app-workbench-page-DAh4_rTj.js +0 -2
- package/dist/gateway/static/root/assets/logs-page-COS-Yb-N.js +0 -2
- package/dist/gateway/static/root/assets/messages-B1HDp_j8.js +0 -3
- package/dist/gateway/static/root/assets/models-hub-cache-Bngs8o1m.js +0 -1
- package/dist/gateway/static/root/assets/notes-api-BMhFpRmW.js +0 -1
- package/dist/gateway/static/root/assets/notes-workbench-CSAzL8Tf.js +0 -4
- package/dist/gateway/static/root/assets/project-detail-page-DHIJpssV.js +0 -1
- package/dist/gateway/static/root/assets/projects-page-BDoAwszu.js +0 -1
- package/dist/gateway/static/root/assets/remote-access-hub-DPi4SQVV.js +0 -1
- package/dist/gateway/static/root/assets/sessions-page-VNrtwwV5.js +0 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-CUcTHMDp.js +0 -1
- package/dist/gateway/static/root/assets/setup-status-panel-Dnvfemeb.js +0 -1
- package/dist/gateway/static/root/assets/share-preview-page-BoSIu0WX.js +0 -2
- package/dist/gateway/static/root/assets/shares-settings-C87QeRxC.js +0 -1
- package/dist/gateway/static/root/assets/skill-reload-api-rY5ujr0j.js +0 -1
- package/dist/gateway/static/root/assets/task-detail-page-JtztFp2Y.js +0 -1
- package/dist/gateway/static/root/assets/tunnel-api-eBX1eb2v.js +0 -1
- package/dist/gateway/static/root/assets/user-context-page-CMH2GOGL.js +0 -1
- package/dist/gateway/static/root/assets/workflow-run-setup-panel-B92rr2yf.js +0 -3
- package/dist/gateway/static/root/assets/workflows-page-DXvdYJff.js +0 -5
|
@@ -0,0 +1 @@
|
|
|
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}from"./chunk-KS7C4IRE-BaASWQor.js";import{t as a}from"./plus-Q2yW6OE7.js";import{t as o}from"./x-B_N4OPjy.js";import{t as s}from"./cn-JdwAhgNB.js";import{t as c}from"./button-CSEbl4zT.js";import{t as l}from"./messages-_tYhRAHD.js";import{n as u}from"./locale-store-C5wr3_pc.js";import{t as d}from"./skeleton-BwbyijEw.js";import{a as f,i as p,n as m,o as h,r as g,s as _,t as v}from"./dist-BPoKqzeH.js";import{$ as y,As as b,Bn as x,El as S,F as C,G as w,H as T,In as E,Ln as D,R as O,Rn as k,U as A,V as j,Va as M,Y as N,ct as P,hi as F,ic as ee,it as te,j as ne,jl as I,lt as re,na as ie,oo as L,ot as ae,r as oe,st as se,wl as ce,zn as le}from"./index-7i2P3312.js";import{n as ue}from"./tab-completion-input-D64VNmiA.js";var R=e(t(),1),z=n(),B=r(),de=12e3;function V(e){let t=(0,z.c)(105),{variant:n,inputId:r,inputRef:i,intent:a,labels:o,attachments:l,isDragging:u,attachmentBusy:d,attachmentsFull:f,voice:p,chat:m,cancelAction:h,onIntentChange:g,onPickFiles:_,onRemoveAttachment:v,onPaste:y,onDragOver:x,onDragLeave:S,onDrop:C,onSubmit:w}=e,T=n===`inline`,E;t[0]!==l||t[1]!==a?(E=!!a.trim()||l.length>0,t[0]=l,t[1]=a,t[2]=E):E=t[2];let D=E,O=p.voiceActive&&p.phase!==`error`,k;t[3]!==w||t[4]!==p.voiceActive?(k=e=>{if(p.voiceActive){e.preventDefault();return}w(e)},t[3]=w,t[4]=p.voiceActive,t[5]=k):k=t[5];let A=T?`mx-auto mt-8 w-full max-w-[640px] overflow-hidden rounded-2xl border border-edge bg-surface-base p-2 text-left shadow-surface transition-colors focus-within:border-accent focus-within:ring-2 focus-within:ring-accent/15`:`flex min-h-0 flex-1 flex-col`,j;t[6]===A?j=t[7]:(j=s(`relative`,A),t[6]=A,t[7]=j);let M;t[8]!==T||t[9]!==u||t[10]!==o.dropFiles?(M=u?(0,B.jsx)(`div`,{className:s(`pointer-events-none absolute inset-0 z-10 flex items-center justify-center bg-accent-soft/90 text-sm font-medium text-accent-fg backdrop-blur-[1px]`,T&&`rounded-2xl`),children:o.dropFiles}):null,t[8]=T,t[9]=u,t[10]=o.dropFiles,t[11]=M):M=t[11];let N=!T&&`flex min-h-0 flex-1 flex-col overflow-y-auto px-5 py-4`,P;t[12]===N?P=t[13]:(P=s(N),t[12]=N,t[13]=P);let F=T?`sr-only`:`mb-2 shrink-0 text-sm font-medium text-fg`,ne;t[14]!==r||t[15]!==o.intentLabel||t[16]!==F?(ne=(0,B.jsx)(`label`,{htmlFor:r,className:F,children:o.intentLabel}),t[14]=r,t[15]=o.intentLabel,t[16]=F,t[17]=ne):ne=t[17];let I;t[18]!==d||t[19]!==m||t[20]!==p.audioLevel||t[21]!==p.cancelVoiceInput||t[22]!==p.confirmVoiceInput||t[23]!==p.elapsedLabel||t[24]!==p.hasRetainedRecording||t[25]!==p.phase||t[26]!==p.readiness||t[27]!==p.retryVoiceInput||t[28]!==p.voiceActive?(I=p.voiceActive?(0,B.jsx)(le,{phase:p.phase,elapsedLabel:p.elapsedLabel,audioLevel:p.audioLevel,readiness:p.readiness,hasRetainedRecording:p.hasRetainedRecording,disabled:d,chat:m,onCancel:p.cancelVoiceInput,onConfirm:p.confirmVoiceInput,onRetry:p.retryVoiceInput}):null,t[18]=d,t[19]=m,t[20]=p.audioLevel,t[21]=p.cancelVoiceInput,t[22]=p.confirmVoiceInput,t[23]=p.elapsedLabel,t[24]=p.hasRetainedRecording,t[25]=p.phase,t[26]=p.readiness,t[27]=p.retryVoiceInput,t[28]=p.voiceActive,t[29]=I):I=t[29];let re=O&&`hidden`,ie=T?`min-h-24 bg-transparent px-3 py-2`:`min-h-32 flex-1 rounded-xl border border-edge bg-surface-base p-3 focus:border-accent focus:ring-2 focus:ring-accent/20`,L;t[30]!==re||t[31]!==ie?(L=s(`w-full resize-none text-sm font-normal leading-6 text-fg outline-none placeholder:text-fg-subtle`,re,ie),t[30]=re,t[31]=ie,t[32]=L):L=t[32];let oe;t[33]===g?oe=t[34]:(oe=e=>g(e.target.value),t[33]=g,t[34]=oe);let se=!T,ce;t[35]!==r||t[36]!==i||t[37]!==a||t[38]!==o.intentPlaceholder||t[39]!==o.intentSuggestion||t[40]!==g||t[41]!==y||t[42]!==L||t[43]!==oe||t[44]!==se?(ce=(0,B.jsx)(ue,{ref:i,id:r,className:L,value:a,onChange:oe,onPaste:y,suggestion:o.intentSuggestion,onAcceptSuggestion:g,onKeyDown:fe,placeholder:o.intentPlaceholder,maxLength:de,autoFocus:se}),t[35]=r,t[36]=i,t[37]=a,t[38]=o.intentPlaceholder,t[39]=o.intentSuggestion,t[40]=g,t[41]=y,t[42]=L,t[43]=oe,t[44]=se,t[45]=ce):ce=t[45];let R=T?`border-b-0 bg-transparent px-3 pb-2 pt-0`:`mt-3 border-b-0 bg-transparent px-0 pb-0`,V;t[46]!==l||t[47]!==v||t[48]!==R?(V=(0,B.jsx)(ae,{attachments:l,topPadded:!1,onRemove:v,className:R}),t[46]=l,t[47]=v,t[48]=R,t[49]=V):V=t[49];let H;t[50]!==T||t[51]!==a.length||t[52]!==o.shortcut?(H=T?null:(0,B.jsxs)(`div`,{className:`mt-2 flex shrink-0 items-center justify-between gap-3 text-[11px] text-fg-subtle`,children:[(0,B.jsx)(`span`,{children:o.shortcut}),(0,B.jsxs)(`span`,{className:`tabular-nums`,children:[a.length.toLocaleString(),` / `,de.toLocaleString()]})]}),t[50]=T,t[51]=a.length,t[52]=o.shortcut,t[53]=H):H=t[53];let pe;t[54]!==I||t[55]!==ce||t[56]!==V||t[57]!==H||t[58]!==P||t[59]!==ne?(pe=(0,B.jsxs)(`div`,{className:P,children:[ne,I,ce,V,H]}),t[54]=I,t[55]=ce,t[56]=V,t[57]=H,t[58]=P,t[59]=ne,t[60]=pe):pe=t[60];let me=T?`border-edge-subtle px-1 pt-2`:`border-edge px-5 py-4`,he;t[61]===me?he=t[62]:(he=s(`flex shrink-0 items-center gap-2 border-t`,me),t[61]=me,t[62]=he);let ge=!T&&`mr-auto`,U;t[63]===ge?U=t[64]:(U=s(`flex items-center gap-1`,ge),t[63]=ge,t[64]=U);let _e=d||f,ve;t[65]===Symbol.for(`react.memo_cache_sentinel`)?(ve=(0,B.jsx)(ee,{className:`size-4`,"aria-hidden":!0}),t[65]=ve):ve=t[65];let W;t[66]!==o.attachTitle||t[67]!==_||t[68]!==_e?(W=(0,B.jsx)(c,{type:`button`,variant:`ghost`,className:`size-9 rounded-lg p-0`,disabled:_e,title:o.attachTitle,"aria-label":o.attachTitle,onClick:_,children:ve}),t[66]=o.attachTitle,t[67]=_,t[68]=_e,t[69]=W):W=t[69];let G;t[70]!==d||t[71]!==m||t[72]!==p.readiness||t[73]!==p.startVoiceInput||t[74]!==p.voiceActive?(G=p.voiceActive?null:(0,B.jsx)(te,{disabled:d,readiness:p.readiness,chat:m,onStart:p.startVoiceInput}),t[70]=d,t[71]=m,t[72]=p.readiness,t[73]=p.startVoiceInput,t[74]=p.voiceActive,t[75]=G):G=t[75];let K;t[76]!==U||t[77]!==W||t[78]!==G?(K=(0,B.jsxs)(`div`,{className:U,children:[W,G]}),t[76]=U,t[77]=W,t[78]=G,t[79]=K):K=t[79];let q;t[80]!==h||t[81]!==T||t[82]!==o.shortcut?(q=T?(0,B.jsx)(`span`,{className:`hidden text-[11px] text-fg-subtle sm:inline`,children:o.shortcut}):h,t[80]=h,t[81]=T,t[82]=o.shortcut,t[83]=q):q=t[83];let J=T?`ml-auto h-9 rounded-lg px-3.5 text-xs`:`min-w-32`,Y=!D||d||p.voiceActive,ye=T?`size-3.5`:`size-4`,X;t[84]===ye?X=t[85]:(X=(0,B.jsx)(b,{className:ye,"aria-hidden":!0}),t[84]=ye,t[85]=X);let Z;t[86]!==o.submit||t[87]!==J||t[88]!==Y||t[89]!==X?(Z=(0,B.jsxs)(c,{type:`submit`,variant:`primary`,className:J,disabled:Y,children:[X,o.submit]}),t[86]=o.submit,t[87]=J,t[88]=Y,t[89]=X,t[90]=Z):Z=t[90];let be;t[91]!==he||t[92]!==K||t[93]!==q||t[94]!==Z?(be=(0,B.jsxs)(`div`,{className:he,children:[K,q,Z]}),t[91]=he,t[92]=K,t[93]=q,t[94]=Z,t[95]=be):be=t[95];let Q;return t[96]!==S||t[97]!==x||t[98]!==C||t[99]!==k||t[100]!==pe||t[101]!==be||t[102]!==j||t[103]!==M?(Q=(0,B.jsxs)(`form`,{onSubmit:k,onDragOver:x,onDragLeave:S,onDrop:C,className:j,children:[M,pe,be]}),t[96]=S,t[97]=x,t[98]=C,t[99]=k,t[100]=pe,t[101]=be,t[102]=j,t[103]=M,t[104]=Q):Q=t[104],Q}function fe(e){e.key===`Enter`&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),e.currentTarget.form?.requestSubmit())}function H(e,t){return e.replace(/\{\{(\w+)\}\}/g,(e,n)=>String(t[n]??``))}function pe(){let e=(0,z.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,B.jsxs)(`div`,{className:`space-y-8`,"aria-busy":!0,children:[(0,B.jsxs)(`div`,{className:`space-y-3`,children:[(0,B.jsx)(d,{className:`h-10 w-3/5 rounded-xl`}),(0,B.jsx)(d,{className:`h-5 w-4/5 rounded-lg`})]}),(0,B.jsx)(d,{className:`h-64 rounded-2xl`}),(0,B.jsx)(d,{className:`h-32 rounded-xl`})]}),e[0]=t):t=e[0],t}function me(e){let t=(0,z.c)(33),{item:n,busy:r,recommendationLabel:i,dueLabel:a,failureLabel:o,locale:s,onAction:l}=e,u;t[0]!==a||t[1]!==n.dueAt||t[2]!==s?(u=n.dueAt?`${a} ${F(new Date(n.dueAt),s)}`:null,t[0]=a,t[1]=n.dueAt,t[2]=s,t[3]=u):u=t[3];let d=u,f=n.kind===`failure`?o:d,p;t[4]===f?p=t[5]:(p=f?(0,B.jsxs)(`div`,{className:`mb-2 flex items-center gap-2 text-xs font-medium text-warning`,children:[(0,B.jsx)(`span`,{className:`size-1.5 rounded-full bg-warning`,"aria-hidden":!0}),(0,B.jsx)(`span`,{children:f})]}):null,t[4]=f,t[5]=p);let m=!n.openAction,h;t[6]!==n.id||t[7]!==n.openAction||t[8]!==l?(h=()=>n.openAction&&l(n.openAction,n.id),t[6]=n.id,t[7]=n.openAction,t[8]=l,t[9]=h):h=t[9];let g;t[10]===n.title?g=t[11]:(g=(0,B.jsx)(`span`,{className:`block text-lg font-semibold leading-7 tracking-tight text-fg`,children:n.title}),t[10]=n.title,t[11]=g);let _;t[12]===n.summary?_=t[13]:(_=(0,B.jsx)(`span`,{className:`mt-1.5 block text-sm leading-6 text-fg-muted`,children:n.summary}),t[12]=n.summary,t[13]=_);let v;t[14]!==m||t[15]!==h||t[16]!==g||t[17]!==_?(v=(0,B.jsxs)(`button`,{type:`button`,className:`block w-full text-left outline-none focus-visible:rounded-md focus-visible:ring-2 focus-visible:ring-accent`,disabled:m,onClick:h,children:[g,_]}),t[14]=m,t[15]=h,t[16]=g,t[17]=_,t[18]=v):v=t[18];let y;t[19]!==n.recommendation||t[20]!==i?(y=n.recommendation?(0,B.jsxs)(`p`,{className:`mt-3 text-sm leading-6 text-fg-muted`,children:[(0,B.jsxs)(`span`,{className:`font-semibold text-fg`,children:[i,`:`]}),n.recommendation]}):null,t[19]=n.recommendation,t[20]=i,t[21]=y):y=t[21];let b;t[22]!==r||t[23]!==n.id||t[24]!==n.primaryAction||t[25]!==n.secondaryActions||t[26]!==l?(b=n.primaryAction||n.secondaryActions.length>0?(0,B.jsxs)(`div`,{className:`mt-5 flex flex-wrap gap-2`,children:[n.primaryAction?(0,B.jsx)(c,{type:`button`,variant:`primary`,className:`h-9 rounded-lg px-3.5 text-xs`,disabled:r,onClick:()=>l(n.primaryAction,n.id),children:n.primaryAction.label}):null,n.secondaryActions.map(e=>(0,B.jsx)(c,{type:`button`,variant:`secondary`,className:`h-9 rounded-lg px-3.5 text-xs shadow-none`,disabled:r,onClick:()=>l(e,n.id),children:e.label},`${e.type}:${e.label}`))]}):null,t[22]=r,t[23]=n.id,t[24]=n.primaryAction,t[25]=n.secondaryActions,t[26]=l,t[27]=b):b=t[27];let x;return t[28]!==p||t[29]!==v||t[30]!==y||t[31]!==b?(x=(0,B.jsxs)(`article`,{className:`px-5 py-5 sm:px-6 sm:py-6`,children:[p,v,y,b]}),t[28]=p,t[29]=v,t[30]=y,t[31]=b,t[32]=x):x=t[32],x}function he(e){let t=(0,z.c)(26),{item:n,onAction:r}=e,i;t[0]===n.kind?i=t[1]:(i=n.kind===`scheduled`?(0,B.jsx)(I,{className:`size-4`,"aria-hidden":!0}):(0,B.jsx)(`span`,{className:`size-1.5 rounded-full bg-success`,"aria-hidden":!0}),t[0]=n.kind,t[1]=i);let a=i,o=!n.openAction,s;t[2]!==n.id||t[3]!==n.openAction||t[4]!==r?(s=()=>n.openAction&&r(n.openAction,n.id),t[2]=n.id,t[3]=n.openAction,t[4]=r,t[5]=s):s=t[5];let c;t[6]===a?c=t[7]:(c=(0,B.jsx)(`span`,{className:`flex size-7 shrink-0 items-center justify-center text-fg-subtle`,children:a}),t[6]=a,t[7]=c);let l;t[8]===n.title?l=t[9]:(l=(0,B.jsx)(`span`,{className:`block truncate text-sm font-medium text-fg`,children:n.title}),t[8]=n.title,t[9]=l);let u;t[10]===n.summary?u=t[11]:(u=(0,B.jsx)(`span`,{className:`mt-0.5 block truncate text-xs text-fg-muted`,children:n.summary}),t[10]=n.summary,t[11]=u);let d;t[12]!==l||t[13]!==u?(d=(0,B.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[l,u]}),t[12]=l,t[13]=u,t[14]=d):d=t[14];let f;t[15]===n.statusLabel?f=t[16]:(f=n.statusLabel?(0,B.jsx)(`span`,{className:`shrink-0 text-xs text-fg-subtle`,children:n.statusLabel}):null,t[15]=n.statusLabel,t[16]=f);let p;t[17]===n.openAction?p=t[18]:(p=n.openAction?(0,B.jsx)(S,{className:`size-4 shrink-0 text-fg-subtle`,"aria-hidden":!0}):null,t[17]=n.openAction,t[18]=p);let m;return t[19]!==o||t[20]!==s||t[21]!==c||t[22]!==d||t[23]!==f||t[24]!==p?(m=(0,B.jsxs)(`button`,{type:`button`,className:`flex min-h-16 w-full items-center gap-3 py-3 text-left outline-none hover:text-fg focus-visible:rounded-md focus-visible:ring-2 focus-visible:ring-accent`,disabled:o,onClick:s,children:[c,d,f,p]}),t[19]=o,t[20]=s,t[21]=c,t[22]=d,t[23]=f,t[24]=p,t[25]=m):m=t[25],m}function ge(e){let t=(0,z.c)(74),{item:n,labels:r,busy:i,onDecide:a,onSnooze:o,onDismiss:s,onInstruct:l}=e,[u,d]=(0,R.useState)(``),f=n.judgment,p;t[0]===n.title?p=t[1]:(p=(0,B.jsx)(`h3`,{className:`text-sm font-semibold text-fg`,children:n.title}),t[0]=n.title,t[1]=p);let m;t[2]===n.detail?m=t[3]:(m=(0,B.jsx)(`p`,{className:`mt-2 text-xs leading-5 text-fg-muted`,children:n.detail}),t[2]=n.detail,t[3]=m);let h;t[4]!==p||t[5]!==m?(h=(0,B.jsxs)(`div`,{className:`min-w-0`,children:[p,m]}),t[4]=p,t[5]=m,t[6]=h):h=t[6];let g;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,B.jsx)(b,{className:`size-4 shrink-0 text-accent`,"aria-hidden":!0}),t[7]=g):g=t[7];let _;t[8]===h?_=t[9]:(_=(0,B.jsxs)(`div`,{className:`flex items-start justify-between gap-3`,children:[h,g]}),t[8]=h,t[9]=_);let v;t[10]!==f.whyNow||t[11]!==r.whyNow?(v=[r.whyNow,f.whyNow],t[10]=f.whyNow,t[11]=r.whyNow,t[12]=v):v=t[12];let y;t[13]!==f.impact||t[14]!==r.impact?(y=[r.impact,f.impact],t[13]=f.impact,t[14]=r.impact,t[15]=y):y=t[15];let x;t[16]!==f.workDone||t[17]!==r.workDone?(x=[r.workDone,f.workDone],t[16]=f.workDone,t[17]=r.workDone,t[18]=x):x=t[18];let S;t[19]!==f.recommendation||t[20]!==r.recommendation?(S=[r.recommendation,f.recommendation],t[19]=f.recommendation,t[20]=r.recommendation,t[21]=S):S=t[21];let C;t[22]!==v||t[23]!==y||t[24]!==x||t[25]!==S?(C=(0,B.jsx)(`div`,{className:`mt-4 grid gap-3 sm:grid-cols-2`,children:[v,y,x,S].map(U)}),t[22]=v,t[23]=y,t[24]=x,t[25]=S,t[26]=C):C=t[26];let w;t[27]!==f.actionError||t[28]!==f.actionStatus||t[29]!==f.dispositionReason||t[30]!==f.proposedActionTitle||t[31]!==r.actionStates||t[32]!==r.policyReason||t[33]!==r.proposedAction?(w=f.dispositionReason?(0,B.jsxs)(`div`,{className:`mt-3 rounded-lg border border-edge-subtle bg-surface-panel/70 p-3 text-xs leading-5`,children:[(0,B.jsx)(`p`,{className:`font-medium text-fg-subtle`,children:r.policyReason}),(0,B.jsx)(`p`,{className:`mt-1 text-fg-muted`,children:f.dispositionReason}),f.proposedActionTitle?(0,B.jsxs)(`p`,{className:`mt-2 text-fg`,children:[(0,B.jsxs)(`span`,{className:`font-medium`,children:[r.proposedAction,`:`]}),f.proposedActionTitle,f.actionStatus?` · ${r.actionStates[f.actionStatus]}`:``]}):null,f.actionError?(0,B.jsx)(`p`,{className:`mt-1 text-danger`,children:f.actionError}):null]}):null,t[27]=f.actionError,t[28]=f.actionStatus,t[29]=f.dispositionReason,t[30]=f.proposedActionTitle,t[31]=r.actionStates,t[32]=r.policyReason,t[33]=r.proposedAction,t[34]=w):w=t[34];let T;t[35]!==i||t[36]!==f.decision||t[37]!==a?(T=f.decision?(0,B.jsxs)(`div`,{className:`mt-4`,children:[(0,B.jsx)(`p`,{className:`text-sm font-medium text-fg`,children:f.decision.question}),(0,B.jsx)(`div`,{className:`mt-2 flex flex-wrap gap-2`,children:f.decision.options.map(e=>(0,B.jsxs)(c,{type:`button`,variant:`secondary`,className:`h-auto min-h-9 flex-col items-start px-3 py-2 text-left`,disabled:i,title:e.consequence,onClick:()=>a(e.id),children:[(0,B.jsx)(`span`,{children:e.label}),(0,B.jsx)(`span`,{className:`text-[10px] font-normal text-fg-muted`,children:e.consequence})]},e.id))})]}):null,t[35]=i,t[36]=f.decision,t[37]=a,t[38]=T):T=t[38];let E;t[39]!==i||t[40]!==r.snooze||t[41]!==o?(E=(0,B.jsx)(c,{type:`button`,variant:`ghost`,className:`h-8 px-2`,disabled:i,onClick:o,children:r.snooze}),t[39]=i,t[40]=r.snooze,t[41]=o,t[42]=E):E=t[42];let D;t[43]!==i||t[44]!==r.dismiss||t[45]!==s?(D=(0,B.jsx)(c,{type:`button`,variant:`ghost`,className:`h-8 px-2`,disabled:i,onClick:s,children:r.dismiss}),t[43]=i,t[44]=r.dismiss,t[45]=s,t[46]=D):D=t[46];let O;t[47]!==E||t[48]!==D?(O=(0,B.jsxs)(`div`,{className:`mt-4 flex flex-wrap gap-2 border-t border-edge-subtle pt-3`,children:[E,D]}),t[47]=E,t[48]=D,t[49]=O):O=t[49];let k;t[50]!==u||t[51]!==l?(k=e=>{e.preventDefault();let t=u.trim();t&&(l(t),d(``))},t[50]=u,t[51]=l,t[52]=k):k=t[52];let A;t[53]===Symbol.for(`react.memo_cache_sentinel`)?(A=e=>d(e.target.value),t[53]=A):A=t[53];let j;t[54]!==u||t[55]!==r.feedbackPlaceholder?(j=(0,B.jsx)(`input`,{className:`min-w-0 flex-1 rounded-lg border border-edge bg-surface-base px-3 py-2 text-xs text-fg outline-none focus:border-accent`,value:u,onChange:A,placeholder:r.feedbackPlaceholder}),t[54]=u,t[55]=r.feedbackPlaceholder,t[56]=j):j=t[56];let M;t[57]!==i||t[58]!==u?(M=i||!u.trim(),t[57]=i,t[58]=u,t[59]=M):M=t[59];let N;t[60]!==r.applyFeedback||t[61]!==M?(N=(0,B.jsx)(c,{type:`submit`,variant:`secondary`,className:`h-9 px-3`,disabled:M,children:r.applyFeedback}),t[60]=r.applyFeedback,t[61]=M,t[62]=N):N=t[62];let P;t[63]!==k||t[64]!==j||t[65]!==N?(P=(0,B.jsxs)(`form`,{className:`mt-3 flex gap-2`,onSubmit:k,children:[j,N]}),t[63]=k,t[64]=j,t[65]=N,t[66]=P):P=t[66];let F;return t[67]!==C||t[68]!==w||t[69]!==T||t[70]!==O||t[71]!==P||t[72]!==_?(F=(0,B.jsxs)(`article`,{className:`rounded-xl border border-accent/25 bg-accent-soft/15 p-4`,children:[_,C,w,T,O,P]}),t[67]=C,t[68]=w,t[69]=T,t[70]=O,t[71]=P,t[72]=_,t[73]=F):F=t[73],F}function U(e){let[t,n]=e;return(0,B.jsxs)(`div`,{className:`rounded-lg bg-surface-panel/80 p-3`,children:[(0,B.jsx)(`p`,{className:`text-[11px] font-medium text-fg-subtle`,children:t}),(0,B.jsx)(`p`,{className:`mt-1 text-xs leading-5 text-fg`,children:n})]},t)}function _e(){let e=u(e=>e.language),t=l(e),n=t.projectsPage,r=N(e),s=i(),d=L(e=>e.setPageHeader),b=L(e=>e.clearPageHeader),[S,F]=(0,R.useState)(null),[ee,te]=(0,R.useState)(!0),[I,ae]=(0,R.useState)(null),[le,ue]=(0,R.useState)(!1),[z,de]=(0,R.useState)(``),[fe,U]=(0,R.useState)(null),[_e,ve]=(0,R.useState)(null),[W,G]=(0,R.useState)(null),[K,q]=(0,R.useState)(!1),J=y({chat:t.chat}),Y=(0,R.useRef)(null),ye=k({disabled:K,chat:t.chat,onTranscript:e=>{de(t=>x(t,e)),window.setTimeout(()=>Y.current?.focus(),0)}}),{phase:X,voiceActive:Z,startVoiceInput:be,cancelVoiceInput:Q,confirmVoiceInput:xe,retryVoiceInput:Se}=ye,$=(0,R.useCallback)(async(t=!1)=>{t&&te(!0),ae(null);try{F(await O(e))}catch(e){ae(e instanceof Error?e.message:String(e))}finally{te(!1)}},[e]);(0,R.useEffect)(()=>{$(!0)},[$]),(0,R.useEffect)(()=>{let e,t=t=>{e!==void 0&&window.clearTimeout(e),e=window.setTimeout(()=>{e=void 0,$()},t)},n=()=>t(100),r=()=>t(750),i=[`session-created`,`agent-run-started`,`agent-run-ended`,`automation-run-completed`,`workflow-run-updated`,`workflow-run-error`],a=[`session-updated`,`session-transcript-updated`];return i.forEach(e=>window.addEventListener(e,n)),a.forEach(e=>window.addEventListener(e,r)),()=>{i.forEach(e=>window.removeEventListener(e,n)),a.forEach(e=>window.removeEventListener(e,r)),e!==void 0&&window.clearTimeout(e)}},[$]);let Ce=(0,R.useCallback)(async e=>{if(!(e.length===0||K)){q(!0);try{await J.processFiles(e)}finally{q(!1)}}},[K,J.processFiles]),we=(0,R.useCallback)(async e=>{let n=P(e.clipboardData);if(n.length===0)return;e.preventDefault();let r=n.filter(re);if(r.length===0){ie(`warning`,t.chat.clipboardFileTypeUnsupported);return}await Ce(r)},[t.chat.clipboardFileTypeUnsupported,Ce]),Te=(0,R.useCallback)(e=>{e.dataTransfer.types.includes(`Files`)&&(e.preventDefault(),e.dataTransfer.dropEffect=`copy`,J.setIsDragging(!0))},[J.setIsDragging]),Ee=(0,R.useCallback)(e=>{let t=e.relatedTarget;(!(t instanceof Node)||!e.currentTarget.contains(t))&&J.setIsDragging(!1)},[J.setIsDragging]),De=(0,R.useCallback)(async e=>{e.preventDefault(),J.setIsDragging(!1),await Ce(Array.from(e.dataTransfer.files))},[J.setIsDragging,Ce]),Oe=(0,R.useCallback)(e=>{e.preventDefault();let t=J.wireAttachmentsPayload(),n=M(z,t.length>0?oe(t):void 0,{projectScope:`none`});n&&(ue(!1),de(``),J.clearAttachments(),s(n))},[J.clearAttachments,J.wireAttachmentsPayload,z,s]),ke=J.attachments.length>=10,Ae={attachTitle:ke?H(t.chat.maxAttachmentsReached,{max:10}):`${t.chat.attachFile} (${J.attachments.length}/10)`,dropFiles:t.chat.dropFiles,intentLabel:r.intentLabel,intentPlaceholder:r.intentPlaceholder,intentSuggestion:r.intentSuggestion,shortcut:n.home.submitShortcut,submit:r.newWork},je=!!(S&&S.needsUser.length===0&&S.backgroundCount===0),Me=je||le;(0,R.useEffect)(()=>{!Me&&Z&&Q()},[Q,Me,Z]),(0,R.useEffect)(()=>{let e=e=>{let t=e.detail?.target;t&&t!==`chat`||!Me||K||(e.preventDefault(),X===`recording`?xe():X===`idle`?(Y.current?.focus(),be()):X===`error`&&Se())},t=e=>{let t=e.detail?.target;t&&t!==`chat`||!Me||!Z||(e.preventDefault(),Q(),Y.current?.focus())};return window.addEventListener(D,e),window.addEventListener(E,t),()=>{window.removeEventListener(D,e),window.removeEventListener(E,t)}},[K,Q,Me,xe,Se,be,Z,X]);let Ne=(0,R.useCallback)(e=>{e||Q(),ue(e)},[Q]),Pe=(0,R.useMemo)(()=>je?null:(0,B.jsxs)(c,{type:`button`,variant:`primary`,className:`h-9 rounded-lg`,onClick:()=>ue(!0),children:[(0,B.jsx)(a,{className:`size-4`,"aria-hidden":!0}),r.newWork]}),[r.newWork,je]),Fe=(0,R.useCallback)(async(e,t)=>{U(e.id),ae(null);try{await t(),await $(),G(null)}catch(e){ae(e instanceof Error?e.message:String(e))}finally{U(null)}},[$]),Ie=(0,R.useCallback)((e,t)=>{if(e.type===`open`){s(e.href);return}if(e.type===`review_judgment`){let t=S?.decisions.find(t=>t.judgment?.inboxItemId===e.itemId);t&&G(t);return}ve(t),ae(null),(async()=>{try{e.type===`connector_decision`?await T({kind:`connector_approval`,approvalId:e.approvalId},e.decision):e.type===`retry_run`?await A({kind:e.subjectKind,runId:e.runId}):e.type===`acknowledge_run`&&await ne({kind:e.subjectKind,runId:e.runId}),await $()}catch(e){ae(e instanceof Error?e.message:String(e))}finally{ve(null)}})()},[S?.decisions,$,s]);(0,R.useLayoutEffect)(()=>(d({startExtra:null,main:(0,B.jsx)(`h1`,{className:`truncate text-base font-semibold tracking-tight text-fg`,children:n.title}),end:Pe}),()=>b()),[b,Pe,d,n.title]);let Le=S?.needsUser.length??0,Re=S?.backgroundCount??0,ze=Le>0?H(n.home.attentionTitle,{count:Le}):Re>0?n.home.clearTitle:n.home.idleTitle,Be=Le>0?Re>0?H(n.home.attentionIntroWithBackground,{count:Re}):n.home.attentionIntro:Re>0?H(n.home.clearIntro,{count:Re}):n.home.idleIntro;return(0,B.jsxs)(`main`,{className:`mx-auto flex w-full max-w-[920px] flex-1 flex-col px-4 py-8 sm:px-6 lg:px-8 lg:py-12`,children:[(0,B.jsx)(`input`,{ref:J.fileInputRef,type:`file`,multiple:!0,accept:se,className:`hidden`,onChange:e=>{let t=e.target.files;t&&Ce(Array.from(t)),e.target.value=``}}),(0,B.jsx)(v,{open:le,onOpenChange:Ne,children:(0,B.jsxs)(h,{children:[(0,B.jsx)(f,{className:`fixed inset-0 z-[80] bg-scrim backdrop-blur-[2px]`}),(0,B.jsxs)(g,{className:`fixed left-1/2 top-1/2 z-[90] flex h-[min(31rem,calc(100dvh-1.5rem))] w-[min(36rem,calc(100vw-1.5rem))] -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:`flex shrink-0 items-start gap-4 border-b border-edge px-5 py-4`,children:[(0,B.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,B.jsx)(_,{className:`text-base font-semibold text-fg`,children:r.dialogTitle}),(0,B.jsx)(p,{className:`mt-1 text-sm leading-5 text-fg-muted`,children:r.dialogDescription})]}),(0,B.jsx)(m,{asChild:!0,children:(0,B.jsx)(c,{type:`button`,variant:`ghost`,className:`-mr-2 -mt-1 size-8 shrink-0 rounded-lg p-0`,title:n.cancel,"aria-label":n.cancel,children:(0,B.jsx)(o,{className:`size-4`,"aria-hidden":!0})})})]}),(0,B.jsx)(V,{variant:`dialog`,inputId:`new-conversation-intent`,inputRef:Y,intent:z,labels:{...Ae,submit:r.submit},attachments:J.attachments,isDragging:J.isDragging,attachmentBusy:K,attachmentsFull:ke,voice:ye,chat:t.chat,cancelAction:(0,B.jsx)(m,{asChild:!0,children:(0,B.jsx)(c,{type:`button`,variant:`ghost`,children:n.cancel})}),onIntentChange:de,onPickFiles:()=>J.fileInputRef.current?.click(),onRemoveAttachment:J.removeAttachment,onPaste:e=>void we(e),onDragOver:Te,onDragLeave:Ee,onDrop:e=>void De(e),onSubmit:Oe})]})]})}),(0,B.jsx)(v,{open:!!W,onOpenChange:e=>{e||G(null)},children:(0,B.jsxs)(h,{children:[(0,B.jsx)(f,{className:`fixed inset-0 z-[80] bg-scrim backdrop-blur-[2px]`}),(0,B.jsxs)(g,{className:`fixed left-1/2 top-1/2 z-[90] flex h-[min(42rem,calc(100dvh-1.5rem))] w-[min(42rem,calc(100vw-1.5rem))] -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:`flex shrink-0 items-center justify-between gap-3 border-b border-edge px-4 py-3`,children:[(0,B.jsx)(_,{className:`text-sm font-semibold text-fg`,children:r.needsAttention}),(0,B.jsx)(m,{asChild:!0,children:(0,B.jsx)(c,{type:`button`,variant:`ghost`,className:`size-8 p-0`,title:n.cancel,"aria-label":n.cancel,children:(0,B.jsx)(o,{className:`size-4`,"aria-hidden":!0})})})]}),(0,B.jsx)(`div`,{className:`min-h-0 flex-1 overflow-y-auto p-4`,children:W?.judgment?(0,B.jsx)(ge,{item:W,labels:r,busy:fe===W.id,onDecide:e=>void Fe(W,()=>C(W.judgment.inboxItemId,e)),onSnooze:()=>void Fe(W,()=>w(W.judgment.inboxItemId,`snoozed`)),onDismiss:()=>void Fe(W,()=>w(W.judgment.inboxItemId,`resolved`)),onInstruct:e=>void Fe(W,()=>j(W.judgment.inboxItemId,e))}):null})]})]})}),I?(0,B.jsxs)(`div`,{className:`mb-6 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:I}),(0,B.jsx)(c,{type:`button`,variant:`ghost`,className:`h-8 px-2`,onClick:()=>void $(),children:n.home.retry})]}):null,ee?(0,B.jsx)(pe,{}):S?(0,B.jsxs)(`div`,{className:je?`flex min-h-[calc(100dvh-10rem)] items-center justify-center pb-[12vh]`:``,children:[(0,B.jsxs)(`section`,{className:je?`w-full max-w-2xl text-center`:`max-w-3xl`,children:[(0,B.jsx)(`h2`,{className:`text-3xl font-semibold tracking-[-0.035em] text-fg sm:text-[2.5rem] sm:leading-[1.12]`,children:ze}),(0,B.jsx)(`p`,{className:je?`mx-auto mt-3 max-w-xl text-sm leading-6 text-fg-muted sm:text-base sm:leading-7`:`mt-3 max-w-2xl text-sm leading-6 text-fg-muted sm:text-base sm:leading-7`,children:Be}),je?(0,B.jsx)(V,{variant:`inline`,inputId:`idle-conversation-intent`,inputRef:Y,intent:z,labels:Ae,attachments:J.attachments,isDragging:J.isDragging,attachmentBusy:K,attachmentsFull:ke,voice:ye,chat:t.chat,onIntentChange:de,onPickFiles:()=>J.fileInputRef.current?.click(),onRemoveAttachment:J.removeAttachment,onPaste:e=>void we(e),onDragOver:Te,onDragLeave:Ee,onDrop:e=>void De(e),onSubmit:Oe}):null]}),S.needsUser.length>0?(0,B.jsxs)(`section`,{className:`mt-10`,"aria-labelledby":`home-needs-user-title`,children:[(0,B.jsxs)(`div`,{className:`mb-3 flex items-center gap-2 px-1`,children:[(0,B.jsx)(ce,{className:`size-4 text-warning`,"aria-hidden":!0}),(0,B.jsx)(`h2`,{id:`home-needs-user-title`,className:`text-sm font-semibold text-fg`,children:n.home.needsUserTitle})]}),(0,B.jsx)(`div`,{className:`divide-y divide-edge-subtle overflow-hidden rounded-2xl border border-edge-subtle bg-surface-base`,children:S.needsUser.map(t=>(0,B.jsx)(me,{item:t,busy:_e===t.id,recommendationLabel:n.home.recommendationLabel,dueLabel:n.home.dueLabel,failureLabel:r.runAttention,locale:e,onAction:Ie},t.id))})]}):null,S.background.length>0?(0,B.jsxs)(`section`,{className:`mt-10`,"aria-labelledby":`home-background-title`,children:[(0,B.jsxs)(`div`,{className:`flex items-center justify-between gap-3 px-1`,children:[(0,B.jsx)(`h2`,{id:`home-background-title`,className:`text-sm font-semibold text-fg`,children:n.home.backgroundTitle}),(0,B.jsx)(`span`,{className:`text-xs text-fg-subtle`,children:H(n.home.backgroundCount,{count:S.backgroundCount})})]}),(0,B.jsx)(`div`,{className:`mt-2 divide-y divide-edge-subtle border-y border-edge-subtle`,children:S.background.map(e=>(0,B.jsx)(he,{item:e,onAction:Ie},e.id))}),(0,B.jsx)(`p`,{className:`mt-5 text-xs leading-5 text-fg-subtle`,children:n.home.autoArchiveNote})]}):null]}):null]})}export{_e as HomePage};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,r as t}from"./locale-store-
|
|
1
|
+
import{a as e,r as t}from"./locale-store-C5wr3_pc.js";async function n(){let n=await e(t(`/api/image-generation/catalog`));if(!Array.isArray(n.payload?.providers))throw Error(`Invalid image provider catalog`);return n.payload.providers}async function r(){let n=await e(t(`/api/image-generation/custom-providers`));if(!Array.isArray(n.payload?.providers))throw Error(`Invalid custom image provider list`);return n.payload.providers}async function i(n,r){await e(t(`/api/image-generation/custom-providers/${encodeURIComponent(n)}`),{method:`PUT`,body:JSON.stringify(r)})}async function a(n){await e(t(`/api/image-generation/custom-providers/${encodeURIComponent(n)}`),{method:`DELETE`})}async function o(n,r){await e(t(`/api/image-generation/providers/${encodeURIComponent(n)}/credential`),{method:`PUT`,body:JSON.stringify({apiKey:r})})}async function s(n,r){let i=await e(t(`/api/image-generation/providers/${encodeURIComponent(n)}/test`),{method:`POST`,body:JSON.stringify({modelId:r})});if(!Array.isArray(i.payload?.images))throw Error(`Invalid image generation test response`);return{images:i.payload.images}}export{o as a,i,r as n,s as o,n as r,a as t};
|