1import{j as e,L as t}from"./input-BCg_KVnu.js";import{h as s,r as a}from"./router-DToTG-oy.js";import{C as l,Q as r,a4 as i,a5 as n,X as d,a6 as c,a7 as o,a8 as x}from"./app-hGoBm_Hi.js";import{s as h}from"./pendingChatHandoff-P943mtJO.js";import"./utils-BD6WdqQe.js";import"./ui-libs-DFSw4qeX.js";import"./redux-D1EfEx9Y.js";import"./index-CVxxarBf.js";const m=({icon:t,title:s,description:a,status:r,onClick:i})=>{const n="enabled"===r;return e.jsxs("button",{type:"button",onClick:i,className:"rounded-xl border border-slate-200 p-4 text-left transition hover:border-slate-300 hover:shadow-sm dark:border-slate-700 dark:hover:border-slate-600 "+(n?"opacity-60 hover:opacity-100":"opacity-100"),children:[e.jsxs("div",{className:"flex items-start justify-between",children:[t,n&&e.jsx("span",{className:"flex h-5 w-5 items-center justify-center rounded-full bg-green-500 text-white","aria-label":"Enabled",children:e.jsx(l,{className:"h-3 w-3"})})]}),e.jsx("p",{className:"mt-6 font-medium text-slate-800 dark:text-slate-100",children:s}),e.jsx("p",{className:"mt-1 text-sm text-slate-500 dark:text-slate-400",children:a})]})},p="/settings?tab=connected-apps",u=[{id:"messaging",title:"Connect messaging",description:"Get context from recent team discussions",status:"enabled",settingsRoute:p},{id:"email",title:"Connect email",description:"Summarize stakeholder asks from email",status:"enabled",settingsRoute:p},{id:"files",title:"Connect files",description:"Review results, research, and plans",status:"disabled",settingsRoute:p}],f=e=>e.type.startsWith("image/")||/\.(png|jpe?g|webp|gif|bmp)$/i.test(e.name),j={messaging:()=>e.jsxs("svg",{viewBox:"0 0 24 24",className:"h-6 w-6","aria-hidden":"true",children:[e.jsx("path",{fill:"#36C5F0",d:"M9 2.4a1.8 1.8 0 1 0-1.8 1.8H9V2.4Zm0 .9a1.8 1.8 0 0 1 3.6 0v4.5a1.8 1.8 0 1 1-3.6 0V3.3Z"}),e.jsx("path",{fill:"#2EB67D",d:"M21.6 9a1.8 1.8 0 1 0-1.8-1.8V9h1.8Zm-.9 0a1.8 1.8 0 0 1 0 3.6h-4.5a1.8 1.8 0 1 1 0-3.6h4.5Z"}),e.jsx("path",{fill:"#ECB22E",d:"M15 21.6a1.8 1.8 0 1 0 1.8-1.8H15v1.8Zm.9 0a1.8 1.8 0 0 1-3.6 0v-4.5a1.8 1.8 0 1 1 3.6 0v4.5Z"}),e.jsx("path",{fill:"#E01E5A",d:"M2.4 15a1.8 1.8 0 1 0 1.8 1.8V15H2.4Zm.9 0a1.8 1.8 0 0 1 0-3.6h4.5a1.8 1.8 0 1 1 0 3.6H3.3Z"})]}),email:()=>e.jsxs("svg",{viewBox:"0 0 24 24",className:"h-6 w-6","aria-hidden":"true",children:[e.jsx("path",{fill:"#4285F4",d:"M3.6 19.5h2.7v-6.55L2.4 9.9v8.15c0 .8.65 1.45 1.45 1.45Z"}),e.jsx("path",{fill:"#34A853",d:"M17.7 19.5h2.7c.8 0 1.45-.65 1.45-1.45V9.9l-3.9 3.05v6.55Z"}),e.jsx("path",{fill:"#FBBC04",d:"M17.7 6.35v6.6l3.9-2.95V7c0-1.7-1.95-2.68-3.3-1.65l-.6.45v.55Z"}),e.jsx("path",{fill:"#EA4335",d:"M6.3 12.95v-6.6L12 10.6l5.7-4.25v6.6L12 17.2l-5.7-4.25Z"}),e.jsx("path",{fill:"#C5221F",d:"M2.4 7v3l3.9 2.95v-6.6l-.6-.45C4.35 4.32 2.4 5.3 2.4 7Z"})]}),files:()=>e.jsxs("svg",{viewBox:"0 0 24 24",className:"h-6 w-6","aria-hidden":"true",children:[e.jsx("path",{fill:"#0066DA",d:"m4.4 17.4 1.3 2.25c.27.47.66.84 1.12 1.1l3.2-5.55H3.6c0 .53.14 1.06.4 1.53l.4.67Z"}),e.jsx("path",{fill:"#00AC47",d:"M12 8.8 8.8 3.25a2.9 2.9 0 0 0-1.12 1.1L3.99 11.2a2.9 2.9 0 0 0-.39 1.53h6.4L12 8.8Z"}),e.jsx("path",{fill:"#EA4335",d:"M16.88 20.75c.46-.26.85-.63 1.12-1.1l.55-.94 2.65-4.6c.26-.47.4-1 .4-1.53h-6.42l1.37 2.7 1.86 3.62-1.53 1.85Z"}),e.jsx("path",{fill:"#00832D",d:"M12 8.8 15.2 3.25a2.87 2.87 0 0 0-1.53-.4h-3.34c-.53 0-1.06.14-1.53.4L12 8.8Z"}),e.jsx("path",{fill:"#2684FC",d:"M15.6 15.75H8.4l-3.2 5.55c.47.26 1 .4 1.53.4h10.54c.53 0 1.06-.14 1.53-.4l-3.2-5.55Z"}),e.jsx("path",{fill:"#FFBA00",d:"m16.85 9.15-2.66-4.6a2.9 2.9 0 0 0-1.12-1.1L9.87 9c.09-.13 6.98 12.1 6.98 12.1l3.2-5.55c.26-.47.4-1 .4-1.53h-6.42l2.82-4.87Z",opacity:"0"}),e.jsx("path",{fill:"#FFBA00",d:"M18 19.65 20.65 15c.26-.47.4-1 .4-1.53h-6.42L18 19.65Z",opacity:"0"}),e.jsx("path",{fill:"#FFBA00",d:"m20.01 11.2-3.16-5.47V5.7a2.9 2.9 0 0 0-1.12-1.1L12 8.8l3.6 6.95h6.42c0-.53-.14-1.06-.4-1.53l-1.61-3.02Z"})]})},g=({heading:l="What should we do today in Eosware?"})=>{const p=s(),{createAndSetThread:g}=r(),[b,v]=a.useState(""),[w,k]=a.useState([]),N=a.useRef(null),y=b.trim().length>0||w.length>0,Z=()=>
1{if(!y)return;g();const e={text:b.trim(),files:w};h(e),v(""),k([]),p("/dashboard")};return e.jsxs("div",{className:"mx-auto flex min-h-full w-full max-w-3xl flex-col justify-center px-4 py-10",children:[e.jsxs("div",{className:"mb-10 flex flex-col items-center gap-5",children:[e.jsx(t,{size:"lg",withText:!1}),e.jsx("div",{role:"heading","aria-level":1,className:"text-center text-2xl font-normal text-slate-500 dark:text-slate-400 sm:text-3xl",children:l})]}),e.jsx("input",{ref:N,type:"file",accept:"image/*,.csv,.xls,.xlsx",className:"hidden",onChange:e=>{const t=e.target.files?.[0];t&&(k(e=>[...e,t]),e.target.value="")}}),e.jsxs("div",{className:"rounded-2xl border border-slate-200 bg-white px-4 pb-3 pt-4 shadow-[0_16px_40px_-28px_rgba(15,23,42,0.55)] dark:border-slate-700 dark:bg-slate-800",children:[w.length>0&&e.jsx("div",{className:"mb-3 flex flex-wrap gap-2",children:w.map(t=>e.jsxs("span",{className:"inline-flex items-center gap-2 rounded-lg border border-slate-200 bg-slate-50 px-3 py-1.5 text-xs text-slate-700 dark:border-slate-600 dark:bg-slate-700 dark:text-slate-200",children:[f(t)?e.jsx(i,{className:"h-3.5 w-3.5"}):e.jsx(n,{className:"h-3.5 w-3.5"}),e.jsx("span",{className:"max-w-[12rem] truncate",children:t.name}),e.jsx("button",{type:"button",onClick:()=>{return e=t.name,void k(t=>t.filter(t=>t.name!==e));var e},className:"text-slate-400 hover:text-slate-600 dark:hover:text-slate-200","aria-label":`Remove ${t.name}`,children:e.jsx(d,{className:"h-3.5 w-3.5"})})]},t.name))}),e.jsx("textarea",{value:b,onChange:e=>v(e.target.value),onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),Z())},placeholder:"Do anything",rows:1,className:"min-h-[2.5rem] w-full resize-none border-0 bg-transparent text-base text-slate-800 placeholder:text-slate-400 focus:outline-none focus:ring-0 dark:text-slate-100 dark:placeholder:text-slate-500"}),e.jsxs("div",{className:"mt-2 flex items-center justify-between",children:[e.jsx("button",{type:"button",onClick:()=>{N.current?.click()},className:"flex h-8 w-8 items-center justify-center rounded-full text-slate-500 transition hover:bg-slate-100 dark:text-slate-400 dark:hover:bg-slate-700","aria-label":"Add attachment",children:e.jsx(c,{className:"h-5 w-5"})}),e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx(o,{onTranscript:e=>{v(t=>t?`${t} ${e}`:e)},className:"flex h-8 w-8 items-center justify-center rounded-full text-slate-500 hover:bg-slate-100 dark:text-slate-400 dark:hover:bg-slate-700"}),e.jsx("button",{type:"button",onClick:Z,disabled:!y,className:"flex h-9 w-9 items-center justify-center rounded-full transition "+(y?"bg-slate-800 text-white hover:bg-slate-700 dark:bg-slate-100 dark:text-slate-900 dark:hover:bg-white":"cursor-not-allowed bg-slate-200 text-slate-400 dark:bg-slate-700 dark:text-slate-500"),"aria-label":"Start chat",children:e.jsx(x,{className:"h-5 w-5"})})]})]})]}),e.jsx("div",{className:"mt-6 grid grid-cols-1 gap-4 sm:grid-cols-3",children:u.map(t=>{const s=j[t.id];return e.jsx(m,{icon:e.jsx(s,{}),title:t.title,description:t.description,status:t.status,onClick:()=>(e=>{p(e.settingsRoute)})(t)},t.id)})})]})};export{g as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.