PageSourceSearch

https://studio.findem.ai/assets/StudioResearch-5J2WkGxb.js

js findem.ai collected 2026-10-02 05:23:11 UTC 25,772 bytes, 1 lines download raw bytes

1import{km as Et,y as ie,dV as Pt,r as s,dX as It,kn as Lt,hK as Tt,hL as Ft,e1 as $t,d3 as at,dW as it,j as e,B as ae,ko as He,ar as Ge,fI as Dt,fY as Mt,fJ as Ot,b0 as zt,kp as Wt,kq as Ut,L as Y,au as m,cb as oe,aq as S,de as Ke,b$ as Ht,N as Gt,f as re,kr as Kt,ks as Bt,gX as Vt,c3 as qt,cm as Xt,bW as Yt,z as Jt,A as Qt,kt as q,i0 as Zt,i1 as X,ku as Be,kv as ne,kw as es,kx as ts,ky as ss,ct as ns,fX as Ve,kz as as,h2 as is,kA as os,kB as rs,kC as ls,kD as cs,kE as ds,kF as us,dy as ms,kG as ps,kH as qe,kI as hs,$ as xs,a2 as fs,at as P,kJ as gs,fd as ws,kK as Ss}from"./index-_Ci2S7BU.js";import{c as bs}from"./SmartComposerInput-DkZFzMsk.js";import{u as vs,C as Ns,F as js}from"./useChatRuntime-FCZ-mOgr.js";import{m as Xe,s as ks,I as Rs,P as Ye,S as ys}from"./StudioComposer-BQSII4A9.js";import{F as _s,C as Cs}from"./CreditsUsagePill-CNp-_gRG.js";import{F as As,f as Es,p as Ps}from"./fraReasoningLevel-D6gyzGcC.js";import{S as Is}from"./SignInPromptModal-IK7mlpS0.js";import{t as Ls,s as Ts}from"./pendingPrompt-CBZS7YCj.js";import{u as Fs,a as $s}from"./publicContent-Bm19RnGY.js";import{u as Ds}from"./useUseCaseVisibility-CnFyNA1N.js";import{u as Ms}from"./useUseCasePicks-CcraMjQp.js";import{u as Os,a as zs,b as Ws,c as Us,d as Hs}from"./useCaseGoals-ScqAnqwR.js";import{A as Gs}from"./ActivityRow-CLGkwpXw.js";import"./lock-keyhole-BQrFcAVB.js";import"./image-plus-BpVjunPp.js";import"./ComposerFlowControls-DG9cjnDl.js";import"./fraSearchEffort-DPvfRIRS.js";import"./executiveConnect-CBL6Rw5D.js";import"./useCaseEtas-CULiRRFB.js";import"./solutionProjectLifecycle-Bv2F2P1H.js";import"./solutionJobs-B9xMeZJ6.js";import"./useCaseRecommendations-B37g-Y_S.js";import"./freeToTryAgents-BqFyc4mk.js";import"./freeAgentLaunch-C8qLakYi.js";import"./skillRun-DIWvJePe.js";import"./usageBilledSolutions-yDogO5zx.js";import"./alertStyles-BHKPp5pv.js";import"./archive-B7iclEQe.js";const Ks=()=>new Date().setHours(0,0,0,0),Je=5;function Bs({className:a=""}){const{rows:o,error:l,invalidate:n}=Et({live:!0}),{canRunAgentWorkflows:h}=ie(),p=Pt({enabled:!!h}),u=s.useMemo(()=>{const r=p.rows.filter(k=>!(It(k).canDismiss&&Lt(k.run_id))).map(k=>({...k,_feedStale:p.stale}));return r.length?[...o,...r]:o},[o,p]),[f,g]=s.useState(!1),[y,_]=s.useState(!1),[F,b]=s.useState(()=>Date.now()),[,le]=s.useState(0),J=s.useId(),Q=s.useRef(null),w=Tt(u),v=Ft.reduce((r,k)=>r+w[k.key].length,0),j=v>Je+1,I=w.finished.filter(r=>($t(r.updated_at)||0)>=Ks());return s.useEffect(()=>{if(!w.working.length||l)return;b(Date.now());const r=setInterval(()=>b(Date.now()),1e3);return()=>clearInterval(r)},[w.working.length,l]),s.useEffect(()=>{const r=at(()=>le(k=>k+1));return it(),r},[]),s.useEffect(()=>{j||_(!1)},[j]),!v&&!I.length&&!l?null:e.jsxs("section",{"aria-label":"Tasks",className:a,children:[l?e.jsxs("p",{role:"status",className:"px-4 py-2 text-xs text-amber-800",children:["Task status could not be refreshed.",u.length?" Showing the last known state.":""," ",e.jsx(ae,{unstyled:!0,onClick:n,className:"underline",children:"Retry"})]}):null,v?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"px-4 text-xs font-medium text-slate-600",children:["Tasks · ",v]}),e.jsx(He,{groups:w,now:F,expandable:!1,stale:!!l,limit:j?Je:1/0}),j?e.jsxs("div",{ref:Q,className:"relative px-4",children:[e.jsxs(ae,{variant:"ghost",onClick:()=>_(r=>!r),"aria-haspopup":"dialog","aria-expanded":y,className:"mt-1 px-0 text-xs text-slate-500 hover:bg-transparent",children:["Show all ",v," tasks ",e.jsx(Ge,{size:12,"aria-hidden":"true"})]}),e.jsxs(Dt,{open:y,onClose:()=>_(!1),anchorRef:Q,role:"dialog",label:"All tasks",width:380,maxHeight:420,children:[e.jsx(Mt,{title:`Tasks · ${v}`}),e.jsx(Ot,{className:"px-0 py-1.5",children:e.jsx(He,{groups:w,now:F,expandable:!1,stale:!!l,onNavigate:()=>_(!1)})})]})]}):null]}):null,I.length?e.jsxs("div",{className:v?"mt-1.5":"",children:[e.jsx("div",{className:"px-4",children:e.jsxs(ae,{variant:"ghost",onClick:()=>g(r=>!r),"aria-expanded":f,"aria-controls":J,className:"flex items-center gap-1 px-0 text-xs text-slate-500 hover:bg-transparent",children:["Finished today ",I.length,f?e.jsx(Ge,{size:12,"aria-hidden":"true"}):e.jsx(zt,{size:12,"aria-hidden":"true"})]})}),f?e.jsx("div",{id:J,role:"region","aria-label":"Runs finished today",className:"mt-1",children:I.map(r=>e.jsx(Wt,{row:r},r.run_id))}):null]}):null]})}const Qe="/research";function Vs(a,{workflows:o=[],unit:l,unitKnown:n=!1}
1={}){return[Us(a),Hs(a,{workflows:o,unit:l,unitKnown:n})].filter(Boolean).join(" · ")}function qs(){return e.jsxs(re,{theme:"studio",padding:"none","aria-hidden":"true",className:"flex min-w-0 flex-col gap-[8px] !rounded-[12px] p-5 animate-pulse",children:[e.jsx("div",{className:"h-[16px] w-2/3 rounded bg-stone-100"}),e.jsx("div",{className:"h-[14px] w-full rounded bg-stone-100"}),e.jsx("div",{className:"mt-[12px] h-[14px] w-1/3 rounded bg-stone-100"})]})}const ot="grid grid-cols-1 gap-[12px] md:grid-cols-3 md:gap-[16px]",rt=e.jsx("h2",{id:"home-start-here-title",className:`mb-[12px] ${m.cardTitle}`,children:"Start here"});function lt(){return e.jsxs("div",{"aria-busy":"true",children:[rt,e.jsx("span",{role:"status",className:"sr-only",children:"Loading starting points…"}),e.jsx("ul",{"aria-hidden":"true",className:ot,children:[0,1,2].map(a=>e.jsx("li",{className:"min-w-0",children:e.jsx(qs,{})},a))})]})}function Xs({candidate:a,meta:o,busy:l,onStart:n}){const h=zs(a).label,p=Ws(a);return e.jsxs(re,{as:"li",theme:"studio",padding:"none","data-start-pick":a.id,className:"flex min-w-0 flex-col !rounded-[12px] p-5",children:[e.jsx("h3",{className:`truncate text-[15px] font-medium leading-[22px] ${m.ink}`,title:a.title,children:a.title}),p?e.jsx("p",{className:`mt-[4px] truncate text-[13px] leading-[20px] ${m.body}`,title:p,children:p}):null,e.jsxs("div",{className:"mt-auto flex min-w-0 items-center justify-between gap-[12px] pt-[20px]",children:[e.jsx("span",{className:`min-w-0 truncate text-[12px] leading-[18px] tabular-nums ${m.body}`,children:o}),e.jsx(ae,{unstyled:!0,theme:"studio",loading:l,onClick:n,"aria-label":`${h} ${a.title}`,iconRight:l?null:e.jsx(oe,{size:13,"aria-hidden":"true"}),className:`inline-flex shrink-0 items-center gap-[4px] rounded-[4px] text-[13px] font-medium leading-[18px] underline-offset-2 hover:underline ${m.ink} ${m.focusRing}`,children:h})]})]})}function Ys({auth:a,planAccess:o,visibleIds:l,services:n,budgetMs:h,launchFreeAgent:p}){const{loading:u,picks:f}=Ms({auth:a,planAccess:o,visibleIds:l,services:n,budgetMs:h,returnTo:Qe}),g=Os({returnTo:Qe,launchFreeAgent:p||n?.launchFreeAgent}),y=s.useSyncExternalStore(at,Ke,Ke),_=Ht(),F=Kt();return u?e.jsx(lt,{}):f.length?e.jsxs("div",{children:[rt,e.jsx("ul",{"aria-labelledby":"home-start-here-title",className:ot,children:f.map(b=>e.jsx(Xs,{candidate:b.candidate,busy:g.busyId===b.id,meta:Vs(b.candidate,{workflows:y,unit:_,unitKnown:F}),onStart:()=>g(b.candidate)},b.id))}),g.error?e.jsx(Gt,{tone:"danger",className:"mt-[12px]",children:g.error}):null]}):null}function Js({className:a="",services:o,readVisibility:l,budgetMs:n,launchFreeAgent:h,children:p=null}){const u=ie(),f=Ut(),g=Ds(u.user,l);return e.jsxs("section",{"data-start-here":!0,className:S("flex w-full min-w-0 flex-col",a),children:[g.loaded?g.error||!g.ids.length?null:e.jsx(Ys,{auth:u,planAccess:f,visibleIds:g.ids,services:o,budgetMs:n,launchFreeAgent:h},`${u.mcpScopeId}:${u.user?.id||"guest"}`):e.jsx(lt,{}),p,e.jsxs(Y,{to:"/explore",className:`mt-[20px] inline-flex w-fit items-center gap-[4px] rounded-[4px] text-[13px] leading-[20px] underline-offset-2 hover:underline ${m.body} ${m.focusRing}`,children:["Explore all use cases",e.jsx(oe,{size:13,"aria-hidden":"true"})]})]})}const Qs=3;function Zs(a){const[o,l]=s.useState(()=>Number.isFinite(a)?a:Date.now());return s.useEffect(()=>{if(Number.isFinite(a)){l(a);return}const n=setInterval(()=>l(Date.now()),6e4);return()=>clearInterval(n)},[a]),o}function en({className:a="",sources:o,now:l}){const n=s.useId(),h=Zs(l),p=Bt({tab:"needs-you",now:h,sources:o}),u=p.counts.needs_you;return u?e.jsxs("section",{"aria-labelledby":n,"data-home-needs-you":"",className:S("flex w-full min-w-0 flex-col",a),children:[e.jsxs("h2",{id:n,className:S("mb-[12px] flex items-center gap-2",m.cardTitle),children:[e.jsx("span",{"aria-hidden":"true",className:S("h-1.5 w-1.5 shrink-0 rounded-full",m.goldFill)}),"Needs you"]}),e.jsx(re,{as:"ul",theme:"studio",padding:"none",className:"divide-y overflow-hidden !rounded-[12px]",children:p.buckets.needs_you.slice(0,Qs).map(f=>e.jsx(Gs,{item:f,now:h},f.id))}),e.jsxs(Y,{to:"/activity?tab=needs-you",className:S("mt-[12px] inline-flex w-fit items-center gap-[4px] rounded-[4px] text-[13px] leading-[20px] underline-offset-2 hover:underline",m.body,m.focusRing),children:["See all in Activity (",u.toLocaleStr
1ing("en-US"),")",e.jsx(oe,{size:13,"aria-hidden":"true"})]})]}):null}const Ze="Get alerts when leaders at your target companies move";function tn({className:a=""}){const{user:o}=ie();return Vt(o)?e.jsxs(re,{theme:"studio",padding:"none","data-start-alerts":"",className:S("flex min-w-0 items-center justify-between gap-[16px] !rounded-[12px] p-5",a),children:[e.jsxs("div",{className:"min-w-0",children:[e.jsx("h3",{className:S("truncate text-[15px] font-medium leading-[22px]",m.ink),title:Ze,children:Ze}),e.jsx("p",{className:S("mt-[4px] truncate text-[13px] leading-[20px]",m.body),children:"Studio watches one of your lists and sends only what’s new."})]}),e.jsxs(Y,{to:"/alerts",className:S("inline-flex shrink-0 items-center gap-[4px] rounded-[4px] text-[13px] font-medium leading-[18px] underline-offset-2 hover:underline",m.ink,m.focusRing),children:["Get alerts",e.jsx(oe,{size:13,"aria-hidden":"true"})]})]}):null}const sn=["research-agent"],nn="6a15380ed30d98dcd78b982b",et="69eeec3d8eec591aef0753e6",je="dra_runtime",an=new Set(["llamaindex","anthropic_managed","fast_research"]),on=new Set(["anthropic_managed","fast_research"]);function rn(a){const o=String(a||"").trim();return an.has(o)?o:""}const ln={id:"anthropic-managed-dra",title:"Deep Research (Claude managed)",tagline:"Deep Research through Anthropic Managed Agents."},cn={id:"fast-research-agent",title:"Findem Research Agent",tagline:"Findem Research Agent — research people, companies, and talent markets."},tt=[{id:"2026-06-03-discovery-redesign",date:"2026-06-03",headline:"A cleaner, chat-first Discovery",detail
1:"Rename chats inline, copy any prompt, and jump back to every result from a tidy artifacts rail."},{id:"2026-05-08-research-home",date:"2026-05-08",headline:"New Research home",detail:"Categorised suggestions, Continue last chat, and a live intent preview."},{id:"2026-05-07-night-mode",date:"2026-05-07",headline:"Sidebar follows your local clock",detail:"The rail dims to a warm dark theme between 7pm and 6am."},{id:"2026-05-06-rename-delete",date:"2026-05-06",headline:"Star, rename, and delete chats",detail:"Hover the kebab on any sidebar Recent — server-backed, syncs across devices."}],st="findem-studio-whats-new-seen",R="max-w-4xl",nt=["I need a Head of Sales who has run a 100+ person enterprise team.","I’m pitching an executive search next week and want to walk in knowing the market.","A competitor keeps hiring our engineers. Which teams are they coming from?"];function dn(a){if(!a)return"";const o=a?.classicPath||Ss(a);if(!o)return"";const l=o.includes("?")?"&":"?";return`${o}${l}return_to=${encodeURIComponent("/research")}`}function On({variant:a="classic"}={}){const o=a==="v2",l=a==="pending",{user:n,mcpScopeId:h,mcpScopeLabel:p,mcpScopeOrg:u,isOrgMcpScope:f,hasFindemAdminAccess:g,hasStudioAgentAccess:y,hasFraAccess:_,loginWithFindem:F}=ie(),b=Fs({enabled:!n}),le=s.useMemo(()=>$s(b.entries),[b.entries]),J=qt(),{summary:Q}=Xt(),w=Yt(Q)?null:J,v=Jt(),[j,I]=Qt(),r=(j.get(q)||"").trim(),k=Zt(j.get(X)),ct=g?rn(j.get(je)):"",{fraOptIn:dt,toggleFraOptIn:ut,showFraToggle:ke,runtimeOverride:mt,resolvedRuntime:pt}=vs({user:n,hasFraAccess:_}),ce=ct||mt,[Re,Z]=s.useState(""),[ee,ht]=s.useState(As),[xt,ye]=s.useState([]),[ft,de]=s.useState(!0),[gt,_e]=s.useState(""),[x,ue]=s.useState(()=>k==="organization"?Be:r?ne({id:r,kind:"talent_pool",name:"Connection List"}):null),Ce=es(x),[me]=s.useState(()=>{try{const t=window.localStorage.getItem("studio.composer.starter");if(t&&sn.includes(t))return t}catch{}return"research-agent"}),Ae=me==="research-agent"&&(ce||pt)==="fast_research",[c,pe]=s.useState(null),[C,Ee]=s.useState(null),[$,he]=s.useState(!1),[wt,xe]=s.useState(""),W=s.useRef(null),[St,Pe]=s.useState([]),[U,te]=s.useState(!1),[Ie,bt]=s.useState(()=>{if(typeof window>"u")return"";try{return window.localStorage.getItem(st)||""}catch{return""}}),[vt,Le]=s.useState(!1),Te=s.useRef(!1);s.useEffect(()=>{if(!n||Te.current)return;Te.current=!0;const t=Ls({now:Date.now()});t&&Z(t)},[n]);const[H,Fe]=s.useState(null),[$e,fe]=s.useState(""),[ge,De]=s.useState([]),G=s.useRef(null),we=s.useRef(null),Nt=s.useRef(null);s.useLayoutEffect(()=>{if(!H)return;const t=G.current;if(!t)return;t.focus({preventScroll:!0}),t.setSelectionRange(H.text.length,H.text.length);const i=H.animate?t.animate?.([{opacity:.6},{opacity:1}],{duration:150,easing:"ease-in-out"}):null;return i?.finished?.catch(()=>{}),()=>i?.cancel()},[H]),s.useEffect(()=>{n&&ts("research_landing")},[n]);const K=s.useMemo(()=>{try{return ss(ns(c?.spec).controls)}catch{return null}},[c]);s.useEffect(()=>{Ee(t=>Ve(K,t)||as(K))},[K]),s.useEffect(()=>{n&&it()},[n]),s.useEffect(()=>{const t=n?.id||n?.uid;if(!t){ye([]),de(!1);return}let i=!1;return de(!0),is(t).then(({talentPools:d})=>{if(i)return;const O=(d||[]).filter(N=>N.listSemantics==="connections");if(ye(O),_e(""),r){const N=O.find(L=>L.id===r);N&&ue(ne(N))}}).catch(d=>{i||_e(d?.message||"Studio could not load Connection Lists.")}).finally(()=>{i||de(!1)}),()=>{i=!0}},[r,n?.id,n?.uid]),s.useEffect(()=>{r&&ue(t=>t?.id===r?t:ne({id:r,kind:"talent_pool",name:"Connection List"}))},[r]);const Me=s.useCallback(t=>{const i=t?.networkScope==="organization"?Be:t?.id?ne(t):null;ue(i);const d=new URLSearchParams(j);d.delete(q),d.delete(X),i?.networkScope==="organization"?d.set(X,"organization"):i?.id&&d.set(q,i.id),I(d,{replace:!0})},[j,I]);s.useEffect(()=>()=>{W.current&&window.clearTimeout(W.current)},[]),s.useEffect(()=>{if(!n||!y)return;let t=!1;return os({mcpScopeId:h,archived:!1,limit:5}).then(i=>{if(t)return;const d=(i||[]).map(rs);Pe(d)}).catch(()=>{t||Pe([])}),()=>{t=!0}},[h,y,n]),s.useEffect(()=>{if(!U)return;function t(d){we.current&&!we.current.contains(d.target)&&te(!1)}function i(d){d.key==="Escape"&&te(!1)}return window.addEventListener("mousedown",t),window.addEventListener("keydown",i),()=>{window.removeEventListener("mousedown",t),window.removeEventListener("keydown",i)}},[U]),s.useEffect(()=>{const t=G.current;t&&(t.style.height="auto",t.style.height=`${Math.min(t.scrollHeight,240)}px`)},[Re]),s.useEffect(()=>{G.current?.focus()},[]),s.useEffect(()=>{const t=ls();if(!t)return;cs();const i=String(t.prompt||"").trim();i&&Z(i)},[]);const jt=s.useCallback(t=>{De(i=>Xe(i,t))},[]),kt=s.useCallback(t=>{De(i=>i.filter((d,O)=>O!==t))},[]),Rt=s.useCallback(async t=>{if($)return;const i=(t||"").trim(),d=!!c?.publicCatalogAgent,O=d?String(c?.publicCatalogPrompt||"").trim():"",N=i||O;if(!n){N&&Ts(N,{now:Date.now()}),Le(!0);return}const L=Xe([],ge);if(!N&&!L.length&&!c)return;he(!0),xe("");const We=N||Rs,se=L.length?ks(L):"";ds();let V={resolved_runtime:"llamaindex",agent_resource_id:et};try{V=await us.resolve(ce||void 0)}catch(E){console.error("[StudioResearch] Failed to resolve chat runtime:",E),xe(E?.message||"Could not load the default chat runtime. Please try again."),he(!1);return}if(on.has(V?.resolved_runtime)){const E=V.resolved_runtime,Ue=E==="fast_research"?cn:ln;try{const z=V?.agent_resource_id||(E==="anthropic_managed"?nn:"");if(!z)throw new Error(`The ${Ue.title} runtime has no agent configured.`);
1const ve=await ms.createSession({agent_id:z,studio_starter_id:"research-agent",...E==="fast_research"?{external_config:Es(!0,ee)}:{},mcp_billing_scope:ps({isOrgScope:f,orgId:u?.mcp_org_id||h,orgName:u?.org_name||p,membershipRole:u?.role,scopeLabel:f?u?.org_name||p:"Personal"})}),Ne=ve?.session_id||ve?.id||ve?.resource_id;if(!Ne)throw new Error("Session creation returned no ID.");E==="fast_research"&&Ps(ee,Ne);const T=new URLSearchParams({starter:"research-agent",agent_id:z,name:Ue.title,...N||L.length?{message:We}:{},autosend:"1",[je]:E});c?.id&&!d&&(T.set("flow_id",c.id),C&&(T.set("execution_profile",C.profile),T.set("parallelism",String(C.parallelism)))),se&&T.set(Ye,se),x?.networkScope==="organization"?T.set(X,"organization"):x?.id&&T.set(q,x.id),v(`/agents/discovery/${encodeURIComponent(Ne)}?${T.toString()}`)}catch(z){console.error("[StudioResearch] Failed to start Claude managed DRA session:",z),xe(z?.message||"Failed to start the Claude managed Deep Research chat."),he(!1)}return}const A=new URLSearchParams({starter:me,agent_id:V?.agent_resource_id||et,return_to:"/research",[je]:"llamaindex"});(N||L.length)&&A.set("message",We),se&&A.set(Ye,se),x?.networkScope==="organization"?A.set(X,"organization"):x?.id&&A.set(q,x.id),c?.id&&!d&&(A.set("flow_id",c.id),C&&(A.set("execution_profile",C.profile),A.set("parallelism",String(C.parallelism)))),v(`/agents/discovery/new?${A.toString()}`)},[ge,f,h,p,u?.mcp_org_id,u?.org_name,u?.role,v,x?.id,x?.networkScope,me,ce,ee,c?.id,c?.publicCatalogAgent,c?.publicCatalogPrompt,C,$,n]);function yt(t){const i=t.target.value;Fe(null),fe(""),Z(i)}function _t(t){t?.id&&(t.networkScope!=="organization"&&pe(null),Me(t),window.setTimeout(()=>G.current?.focus(),0))}function Oe(t){const i=String(t||"");if(!i)return;pe(null);const d=window.matchMedia?.("(prefers-reduced-motion: reduce)")?.matches;Z(i),Fe({text:i,animate:!d}),fe(i),W.current&&window.clearTimeout(W.current),W.current=window.setTimeout(()=>fe(""),150)}const D=St[0]||null,B=s.useMemo(()=>dn(D),[D]),Se=s.useMemo(()=>qe(D),[D]),ze=s.useMemo(()=>qe(D,{max:160}),[D]),be=s.useMemo(()=>!hs(),[]),M=tt[0]?.id||"",Ct=!!M&&Ie!==M;function At(){if(te(!0),M&&Ie!==M){bt(M);try{window.localStorage.setItem(st,M)}catch{}}}return e.jsx("div",{ref:Nt,className:"studio-research-home relative flex h-full w-full flex-col px-5 pb-[calc(1rem+env(safe-area-inset-bottom))] pt-6 sm:px-8 lg:px-8 lg:py-10",children:e.jsxs("div",{className:`relative z-10 mx-auto flex h-full w-full ${R} flex-col`,children:[e.jsxs("div",{ref:we,className:"absolute left-1/2 top-6 hidden -translate-x-1/2 sm:top-8 lg:block",children:[e.jsxs("button",{type:"button",onClick:()=>U?te(!1):At(),"aria-haspopup":"dialog","aria-expanded":U,className:"relative inline-flex items-center gap-1.5 rounded-full border border-stone-200 bg-white px-3 py-1.5 text-[11px] font-medium text-slate-600 transition-colors hover:border-slate-400 hover:text-slate-950",children:[e.jsx(xs,{size:11,className:"text-slate-950"}),"What's new",Ct?e.jsx("span",{"aria-hidden":"true",className:"ml-0.5 inline-block h-1.5 w-1.5 rounded-full bg-slate-950"}):null]}),U?e.jsxs("div",{role:"dialog","aria-label":"What's new in Studio",className:"absolute left-1/2 top-[calc(100%+8px)] z-30 w-80 -translate-x-1/2 rounded-xl border border-stone-200 bg-white p-4 shadow-[0_18px_48px_rgba(31,30,28,0.12)]",children:[e.jsx("p",{className:"text-[11px] font-bold uppercase tracking-[0.16em] text-slate-950",children:"Latest updates"}),e.jsx("ul",{className:"mt-3 space-y-3",children:tt.slice(0,3).map(t=>e.jsxs("li",{children:[e.jsx("p",{className:"text-[13px] font-semibold text-slate-950",children:t.headline}),e.jsx("p",{className:"mt-0.5 text-[12px] leading-snug text-slate-600",children:t.detail})]},t.id))})]}):null]}),e.jsxs("div",{className:"flex flex-1 flex-col justify-center lg:justify-start lg:pt-[clamp(3rem,9vh,7rem)]",children:[e.jsxs("div",{className:"flex flex-1 flex-col justify-center lg:block lg:flex-none",children:[e.jsxs("div",{className:`mx-auto flex w-full ${R} flex-1 flex-col items-center justify-center text-center lg:block lg:flex-none`,children:[e.jsx(fs,{className:"mb-5 h-8 w-8 lg:hidden"}),e.jsx("h1",{className:"text-balance text-3xl font-semibold tracking-tight text-slate-950 max-lg:![font-family:var(--typography-font-family-heading)] max-lg:text-[26px] max-lg:font-medium sm:text-4xl",children:"What problem are you trying to solve right now?"}),e.jsx("p",{className:"mt-3 hidden text-[14px] leading-6 text-slate-600 lg:block",children:"Tell us what you’re hiring for or trying to learn. Studio pulls in the right agents and hands back finished work."}),!o&&!l?e.jsx("div",{className:"mt-8 w-full space-y-2.5 lg:hidden",children:nt.map(t=>e.jsx("button",{type:"button",onClick:()=>Oe(t),className:S("w-full rounded-2xl border px-4 py-3 text-left text-[13px] leading-snug transition-colors duration-150 motion-reduce:transition-none",P.borderStrong,P.bgSurface,P.text2,m.surfaceHover,$e===t&&`${P.bgSubtle} ${P.text1}`),children:t},t))}):null]}),e.jsx(ys,{suggestionContext:n?bs({ownerKey:`${n.id||n.uid||n.email}:${h}`,sessionId:"research-home",agentName:c?.name||"",scope:x?.name||""}):null,usagePill:e.jsx(Cs,{}),className:`mx-auto mt-8 ${R}`,value:Re,onChange:yt,onSubmit:Rt,submitting:$,placeholder:"Paste a job link or description, or describe who you need.",attachedImages:ge,onAddImages:jt,onRemoveImage:kt,selectedFlow:c,featuredAgents:n?[]:le,publicCatalogMode:!n,onSelectFlow:pe,executionProfileControl:K,executionProfile:C,onExecutionProfileChange:t=>Ee(Ve(K,t)),flowDisabled:Ce,flowTitle:Ce?"Clear the Connection List scope to run a saved agent. Saved agents use their own audie
1nce setup.":"",flowDisabledReason:"Clear the list scope to run an agent",error:wt,textareaRef:G,textareaKey:"studio-research-composer",textareaClassName:"lg:min-h-24",intentPreview:x?e.jsxs("div",{className:"flex items-start gap-2 px-5 pb-1 text-[11px] text-slate-600",children:[e.jsx("span",{"aria-hidden":"true",className:"mt-[2px] text-emerald-700",children:"↳"}),x.networkScope==="organization"?e.jsxs("span",{children:[c?`“${c.name}” will run within the organization network. `:"","Studio will keep people with organization-shared connection routes and show every colleague and list that connects them."]}):e.jsxs("span",{children:["Studio will search only the ",gs(x)," in ",e.jsx("span",{className:"font-medium text-slate-950",children:x.name}),"."]})]}):c?e.jsxs("div",{className:"flex items-start gap-2 px-5 pb-1 text-[11px] text-slate-600",children:[e.jsx("span",{"aria-hidden":"true",className:"mt-[2px] text-amber-700",children:"↳"}),c.publicCatalogAgent&&!n?e.jsxs("span",{children:["Send will ask you to sign in, then continue with ",e.jsx("span",{className:"font-medium text-slate-950",children:c.name}),"."]}):e.jsxs("span",{children:["Run starts setup here in chat for ",e.jsx("span",{className:"font-medium text-slate-950",children:c.name}),". The run begins after you confirm what it needs."]})]}):null,runtimeControl:ke||Ae?e.jsxs(e.Fragment,{children:[ke?e.jsx(js,{checked:dt,onChange:ut,disabled:$}):null,Ae?e.jsx(_s,{value:ee,onChange:ht,disabled:$,readOnly:!!(c&&!c.publicCatalogAgent)}):null]}):null,scopeControl:x?e.jsx(Ns,{lists:xt,loading:ft,error:gt,selectedScope:x,onSelect:_t,onClear:()=>Me(null),disabled:$}):null}),n&&B?e.jsx("div",{className:`mx-auto mt-3 flex w-full ${R} items-center justify-center`,children:e.jsxs(Y,{to:B,className:"group inline-flex max-w-full items-center gap-1.5 rounded-full px-3 py-1 text-[12px] text-slate-600 transition-colors hover:bg-stone-50 hover:text-slate-950",title:ze!==Se?ze:void 0,children:[e.jsx("span",{className:"shrink-0",children:"Continue last chat"}),Se?e.jsxs("span",{"data-resume-label":"",className:S("min-w-0 truncate",m.body),children:["· ",Se]}):null,e.jsx(ws,{size:12,className:"shrink-0 text-slate-400"})]})}):null]}),l?null:o?e.jsxs(e.Fragment,{children:[n&&y?e.jsx(en,{className:`mx-auto mt-10 ${R}`}):null,e.jsx(Js,{className:`mx-auto mt-10 ${R}`,children:e.jsx(tn,{className:"mt-[12px] md:mt-[16px]"})})]}):e.jsxs(e.Fragment,{children:[n?e.jsx(Bs,{className:`mx-auto mt-8 hidden w-full ${R} lg:block`}):null,be&&!B&&w?e.jsxs("div",{className:`mx-auto mt-8 hidden w-full ${R} items-center justify-between gap-3 rounded-lg bg-slate-900 px-4 py-3 text-white lg:flex`,children:[e.jsxs("p",{className:"text-[12.5px] leading-5 text-white/85",children:[e.jsxs("span",{className:"font-semibold text-white",children:[w.plan.name," plan"]})," — ",w.plan.peopleResults==null?"committed People Results and Agent Run pools":`${w.plan.peopleResults.toLocaleString("en-US")} People Results + ${w.plan.agentRuns} Agent Runs monthly`,". No payment method, no overage — ever."]}),e.jsx(Y,{to:"/billing",className:"shrink-0 text-[12px] font-medium text-white underline-offset-2 hover:underline",children:"See your plan →"})]}):null,be&&!B?e.jsx("p",{className:`mx-auto ${w?"mt-4":"mt-8"} hidden ${R} text-center text-[12px] text-slate-600 lg:block`,children:"New to Studio? Try one of these to see how it works."}):null,e.jsx("div",{className:`mx-auto ${be&&!B?"mt-4":"mt-8"} hidden w-full ${R} lg:block`,children:e.jsx("div",{className:"space-y-0.5 rounded-2xl bg-white p-3 shadow-[0_1px_3px_rgba(25,33,61,0.10)]",children:nt.map(t=>e.jsx("button",{type:"button",onClick:()=>Oe(t),className:S("studio-suggestion-card block w-full rounded-lg px-3 py-2.5 text-left text-[13px] leading-[1.45] transition-colors duration-150 motion-reduce:transition-none",P.text2,m.surfaceHover,$e===t&&`${P.bgSubtle} ${P.text1}`),children:t},t))})})]})]}),e.jsx(Is,{open:vt,onClose:()=>Le(!1),onContinue:F}),e.jsx("p",{className:"mx-auto mt-auto hidden pt-8 text-center text-[11px] text-slate-400 lg:block",children:"Studio can make mistakes. Verify important details before acting on results."})]})})}export{On 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.