1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,160673,e=>{e.v({fade:"AppTour-module__24Vw7a__fade",rise:"AppTour-module__24Vw7a__rise"})},332102,785396,323012,881987,100856,e=>{"use strict";var t=e.i(564680);e.s(["Inbox",()=>t.default],332102);var a=e.i(199628);e.s(["Kanban",()=>a.default],785396);var s=e.i(354614);e.s(["PanelLeft",()=>s.default],323012);var n={gmail:"/images/apps/gmail.svg",slack:"/images/apps/slack.svg",hubspot:"/images/apps/hubspot.svg",sheets:"/images/apps/google-sheets.svg",drive:"/images/apps/google-drive.svg",zendesk:"/images/apps/zendesk.svg",quickbooks:"/images/apps/quickbooks.svg",notion:"/images/apps/notion.svg",jira:"/images/apps/jira.svg",linkedin:"/images/apps/linkedin.svg",calendar:"/images/apps/google-calendar.svg",analytics:"/images/apps/google-analytics.svg",web:null},r="/images/app-tour/avatars",i="".concat(r,"/assist.svg"),l=[{id:"inbox-triage",name:"Inbox Triage",persona:"Ursula",role:"Email Triage Specialist",avatar:"".concat(r,"/avatar_7.svg"),description:"Every weekday at 8:00 AM, sorts unread Gmail into reply now, later and ignore, and drafts replies to the urgent ones.",status:"live",apps:["gmail"],category:"Operations",lastRun:"today",trigger:"Weekdays at 8:00 AM"},{id:"invoice-chaser",name:"Invoice Chaser",persona:"Evelyn",role:"Accounts Assistant",avatar:"".concat(r,"/avatar_12.svg"),description:"Every Monday, finds overdue invoices in QuickBooks and drafts polite reminders. Nothing is sent until you approve it.",status:"live",apps:["quickbooks","gmail"],category:"Finance",lastRun:"today",trigger:"Mondays at 9:00 AM"},{id:"lead-researcher",name:"Lead Researcher",persona:"Derek",role:"Sales Researcher",avatar:"".concat(r,"/avatar_15.svg"),description:"When a new lead lands in HubSpot, researches the company and writes a short brief back to the contact record.",status:"live",apps:["hubspot","web"],category:"Sales",lastRun:"1 hour ago",trigger:"New HubSpot contact"},{id:"ticket-triage",name:"Support Ticket Triage",persona:"Charlotte",role:"Support Lead",avatar:"".concat(r,"/avatar_10.svg"),description:"Tags new Zendesk tickets by urgency and posts anything P1 to #support in Slack, with a suggested first reply.",status:"live",apps:["zendesk","slack"],category:"Support",lastRun:"12 min ago",trigger:"New Zendesk ticket"},{id:"meeting-prep",name:"Meeting Prep",persona:"Mackenzie",role:"Meeting Prep Coordinator",avatar:"".concat(r,"/avatar_3.svg"),description:"The evening before each external meeting, pulls recent threads and CRM notes into a one-page brief.",status:"live",apps:["gmail","hubspot"],category:"Sales",lastRun:"yesterday",trigger:"Weekdays at 5:00 PM"},{id:"sales-digest",name:"Weekly Sales Digest",persona:"William",role:"Revenue Analyst",avatar:"".concat(r,"/avatar_1.svg"),description:"Every Friday, reads the pipeline sheet and posts wins, slips and next week's closes to #sales.",status:"paused",apps:["sheets","slack"],category:"Sales",lastRun:"last week",trigger:"Fridays at 4:00 PM"}],o=function(e){var t;return null!=(t=l.find(function(t){return t.id===e}))?t:l[0]},d=[{id:"catch-up",title:"Catch me up",category:"Everyday",icon:"sun",prompt:"Catch me up â what happened since yesterday across my email, calendar and messages, and what needs me today.",summary:"Read Gmail and Slack and checked your calendar.",steps:[{app:"gmail",label:"Gmail - Fetch Emails",detail:"is:unread after:yesterday"},{app:"slack",label:"Slack - Search Messages",detail:"mentions of @alex"},{app:"drive",label:"Google Drive - List Files",detail:"shared with me, last 24h"}],reply:[{kind:"p",text:"Here's your morning. Three things need you before lunch:"},{kind:"ul",items:["**Priya (Lumen Labs)** wants to confirm the pilot start date â a draft reply is waiting on your Desk.","**Northwind** invoice #1042 is 4 days overdue. Invoice Chaser has a reminder ready.","**#support** flagged a Safari checkout bug at 7:40 AM; Charlotte has triaged it as P1."]},{kind:"h",text:"Today's calendar"},{kind:"table",head:["Time","Meeting","Prep"],rows:[["10:00","Weekly team sync","Agenda in Notion"],["13:30","Halcyon Freight intro","Brief ready"],["16:00","1:1 with Jordan","â"]]},{kind:"callout",text:"Nothing else urgent. 31 newsletters and receipts filed under Later."}],followUps:["Draft the reply to Priya","Open the Halcyon brief","Snooze the newsletters"]},{id:"compare",title:"Compare options",category:"Research",icon:"scale",prompt:"Compare HubSpot and Pipedrive for a 10-person sales team. Pull current pricing and features, then give me a table and a recommendation.",summary:"Searched the web 3 times.",steps:[{app:"web",label:"Search the web",detail:"HubSpot Sales Hub pricing"},{app:"web",label:"Search the web",detail:"Pipedrive pricing plans"},{app:"web",label:"Read page",detail:"pipedrive.com/en/pricing"}],reply:[{kind:"p",text:"For a 10-person team focused on pipeline, **Pipedrive** is the simpler, cheaper pick. HubSpot costs more per seat but brings marketing and service tools along."},{kind:"table",head:["","Pipedrive","HubSpot Sales Hub"],rows:[["Best for","Pure sales pipeline","Sales + marketing in one"],["Learning curve","Low","Medium"],["Automation","Good, per pipeline","Deep, cross-team"],["Reporting","Solid basics","Strong, customisable"]]},{kind:"callout",text:"Recommendation: start on Pipedrive; revisit HubSpot if marketing joins the same tool."}],followUps:["Post this to #sales","Add pricing for 25 seats","Draft a switch plan"]},{id:"triage",title:"Triage my inbox",category:"Email & calendar",icon:"inbox",prompt:"Go through my unread email and group it into reply now, read later, and ignore â one line on each saying why.",summary:"Read 37 unread emails in Gmail.",steps:[{app:"gmail",label:"Gmail - Fetch Emails",detail
1:"is:unread · 37 results"},{app:"gmail",label:"Gmail - Fetch Message",detail:"6 threads opened"}],reply:[{kind:"h",text:"Reply now · 3"},{kind:"ul",items:["**Priya, Lumen Labs** â needs a pilot start date this week.","**Dana, Northwind** â asked for the invoice PDF again.","**Jordan** â wants your sign-off on the Q4 hiring plan by Friday."]},{kind:"h",text:"Read later · 11"},{kind:"p",text:"Product updates, two industry newsletters and the October board pack."},{kind:"h",text:"Ignore · 23"},{kind:"p",text:"Promotions, receipts and calendar notifications."}],followUps:["Draft all 3 replies","Turn this into a daily routine","Unsubscribe from the promos"]},{id:"routine",title:"Make it a routine",category:"Automate",icon:"repeat",prompt:"Every weekday at 8:00 AM, check my inbox and #support and post me a summary of anything that needs my attention.",summary:"Created a routine.",steps:[{app:"web",label:"Create Routine",detail:"Weekdays at 8:00 AM"}],reply:[{kind:"p",text:"Done â your routine is set up."},{kind:"table",head:["Routine","When","Delivers to"],rows:[["Morning attention check","Weekdays at 8:00 AM","Today's brief + Desk"]]},{kind:"p",text:"Each morning I'll read unread Gmail and #support, and list only what needs you. Anything I'd send on your behalf waits on your Desk for approval."}],followUps:["Run it once now","Change the time to 7:30","Also check my calendar"]},{id:"research",title:"Research a topic",category:"Research",icon:"search",prompt:"Research Halcyon Freight and give me a briefing: what they do, who the main people are, what changed recently, and three things I should know.",summary:"Searched the web 2 times and checked HubSpot.",steps:[{app:"web",label:"Search the web",detail:"Halcyon Freight news 2026"},{app:"hubspot",label:"HubSpot - Get Company",detail:"halcyonfreight.example"}],reply:[{kind:"p",text:"**Halcyon Freight** is a mid-size logistics firm (about 240 people) running cross-border trucking. You have one open deal with them in HubSpot."},{kind:"ul",items:["They opened a second warehouse in September and are hiring dispatchers.","Their ops lead, Marcus, booked today's call from your pricing page.","Last quarter they evaluated two competitors and paused on price."]},{kind:"callout",text:"Lead with onboarding speed â that's what stalled the last evaluation."}],followUps:["Turn this into a one-pager","Find Marcus on LinkedIn","Prep three questions"]},{id:"rewrite",title:"Rewrite this",category:"Write",icon:"pen",prompt:'Rewrite this to be shorter and warmer without losing my meaning: "Per my last email, the deliverables are still outstanding and we need them ASAP."',summary:"Rewrote your text.",steps:[],reply:[{kind:"p",text:"Here are two options:"},{kind:"ul",items:['"Just checking in on the deliverables â could you send them over when you get a moment this week?"',"\"Hope the week's going well! Any update on the deliverables? We're keen to keep things moving.\""]}],followUps:["Make it more formal","Send it as a Gmail draft","Save my tone as a skill"]}],c=[{name:"Lead Enrichment",category:"Sales",avatar:"".concat(r,"/avatar_4.svg"),apps:["hubspot","web"],text:"Researches every new lead and fills in company size, industry and a short summary."},{name:"Support Responder",category:"Support",avatar:"".concat(r,"/avatar_9.svg"),apps:["zendesk","notion"],text:"Drafts first replies to new tickets from your help-centre docs, for a human to approve."},{name:"SEO Content Writer",category:"Marketing",avatar:"".concat(r,"/avatar_2.svg"),apps:["web","drive"],text:"Turns a keyword into a researched outline and a first draft in Google Docs."},{name:"Standup Collector",category:"Operations",avatar:"".concat(r,"/avatar_16.svg"),apps:["slack","jira"],text:"Asks each teammate for their update in Slack and posts one tidy standup thread."},{name:"Expense Tagger",category:"Finance",avatar:"".concat(r,"/avatar_13.svg"),apps:["quickbooks","sheets"],text:"Categorises new transactions and flags anything that looks out of policy."},{name:"Candidate Screener",category:"HR",avatar:"".concat(r,"/avatar_6.svg"),apps:["gmail","sheets"],text:"Scores incoming applications against your job spec and shortlists the top five."}];e.s(["AGENTS",0,l,"ASSIST_AVATAR",0,i,"ASSIST_SESSIONS",0,[{title:"Morning catch-up",scriptId:"catch-up"},{title:"HubSpot vs Pipedrive for sales",scriptId:"compare"},{title:"Inbox triage",scriptId:"triage"},{title:"Halcyon Freight briefing",scriptId:"research"},{title:"Deliverables nudge, warmer",scriptId:"rewrite"}],"COLUMNS",0,[{key:"backlog",label:"Backlog",hint:"Not started. Unassigned ones wait until you assign an agent",dot:"bg-neutral-400",empty:"Nothing waiting"},{key:"needs",label:"Needs you",hint:"Paused; waiting on a call from you",dot:"bg-neutral-900",empty:"Nothing needs you"},{key:"flight",label:"In flight",hint:"Tasks your agents have picked up",dot:"bg-blue-500",empty:"Nothing running"},{key:"done",label:"Done",hint:"Completed today",dot:"bg-emerald-500",empty:"Nothing done yet"}],"DESK_ITEMS",0,[{id:"d1",agentId:"invoice-chaser",title:"Send an overdue-invoice reminder to N
1orthwind",done:"Sent the invoice #1042 reminder to Northwind",app:"gmail",action:"Gmail · Send Email",when:"8 min ago",preview:[{label:"To",value:"[email protected]"},{label:"Subject",value:"Invoice #1042 â friendly reminder"}],body:"Hi Dana, a quick nudge that invoice #1042 ($2,400) was due on Sept 28. Happy to resend the PDF if that helps. Thanks!"},{id:"d2",agentId:"inbox-triage",title:"Reply to Priya (Lumen Labs) about the pilot",done:"Replied to Priya at Lumen Labs",app:"gmail",action:"Gmail · Send Email",when:"26 min ago",preview:[{label:"To",value:"[email protected]"},{label:"Subject",value:"Re: Pilot start date"}],body:"Hi Priya, Monday the 12th works for us. I'll send the kickoff invite today and share the onboarding doc beforehand."},{id:"d3",agentId:"ticket-triage",title:"Post a P1 ticket to #support",done:"Posted ticket #8812 to #support",app:"slack",action:"Slack · Send Message",when:"41 min ago",preview:[{label:"Channel",value:"#support"},{label:"Ticket",value:"#8812 · Checkout fails on Safari"}],body:"P1: 4 customers report checkout failing on Safari 18 since 7:40 AM. Suggested first reply drafted in Zendesk."}],"DESK_UPDATES",0,[{agentId:"lead-researcher",text:"Wrote a company brief for Halcyon Freight to HubSpot",when:"1 hour ago"},{agentId:"assist",text:"Daily Brief finished â 4 things need you today",when:"8:00 AM"},{agentId:"inbox-triage",text:"Sorted 37 unread emails (6 reply now, 11 later, 20 ignore)",when:"8:02 AM"}],"FALLBACK_REPLY",0,[{kind:"p",text:"This is a preview with sample data, so I can't run that one here. In your own workspace I'd use your connected apps to do it â and anything I'd send on your behalf would wait on your Desk for approval first."},{kind:"callout",text:"Start a free trial to try it with your own email, calendar and Slack."}],"LOGO_SRC",0,n,"PROMPT_CATEGORIES",0,["All","Everyday","Research","Write","Files & data","Email & calendar","Automate"],"ROUTINE_TEMPLATES",0,[{group:"Essentials",name:"Daily Brief",text:"Your day, triaged â not just relayed back to you.",when:"Daily at 8:00 AM"},{group:"Essentials",name:"Heartbeat",text:"Twice a day, anything still waiting on you.",when:"Weekdays at 7:00 AM & 4:00 PM"},{group:"Essentials",name:"Week ahead",text:"Sunday night look at what's coming.",when:"Sundays at 6:00 PM"},{group:"Work",name:"Inbox summary",text:"Overnight mail sorted into reply now, later, ignore.",when:"Weekdays at 9:00 AM"},{group:"Work",name:"Meeting prep",text:"Who you're seeing tomorrow, and what they'll want.",when:"Weekdays at 5:00 PM"},{group:"Work",name:"Weekly recap",text:"What this week actually consisted of.",when:"Fridays at 4:00 PM"},{group:"Watch",name:"Competitor digest",text:"Where a rival's pricing and pitch stand today.",when:"Mondays at 9:00 AM"},{group:"Watch",name:"Brand mentions",text:"Who's talking about you, and how.",when:"Daily at 6:00 PM"},{group:"Watch",name:"Keyword check",text:"Where you rank, week by week.",when:"Mondays at 8:00 AM"}],"SCRIPTS",0,d,"TASKS",0,[{id:"m1",createdBy:"Jordan",title:"Compare 3 payroll providers for a 12-person team",priority:"Low",owner:null,column:"backlog",when:"added today"},{id:"m2",createdBy:"You",title:"Draft the October customer newsletter",priority:"Normal",owner:"assist",column:"backlog",when:"Thu 10:00 AM"},{id:"m3",createdBy:"Sam",title:"Chase the overdue Northwind invoice",priority:"High",owner:"invoice-chaser",column:"needs",when:"8 min ago"},{id:"m4",createdBy:"You",title:"Research Lumen Labs before Thursday's call",priority:"Normal",owner:"lead-researcher",column:"flight",when:"started 4 min ago",progress:"Step 3 of 5 · reading their pricing page"},{id:"m5",createdBy:"Jordan",title:"Find every Q3 contract that auto-renews",priority:"Urgent",owner:"assist",column:"flight",when:"started 1 min ago",progress:"Step 1 of 4 · searching Google Drive"},{id:"m6",createdBy:"Sam",title:"Summarise last week's support tickets",priority:"Normal",owner:"ticket-triage",column:"done",when:"2 hours ago"},{id:"m7",createdBy:"You",title:"Tag September expenses by category",priority:"Low",owner:"assist",column:"done",when:"3 hours ago"}],"TEMPLATES",0,c,"agentById",0,o],881987);var p=e.i(651682),x=e.i(843476),m=e.i(271645),u=e.i(248256),h=e.i(975157),g=e.i(160673),b=(0,m.createContext)(null);function f(){return(0,x.jsx)("svg",{viewBox:"0 0 16 16",className:"size-[11px]",fill:"none",stroke:"currentColor",strokeWidth:"1.4","aria-hidden":!0,
1children:(0,x.jsx)("path",{d:"M3 3.5h10v7H7l-3 2.5v-2.5H3z",strokeLinejoin:"round"})})}function E(e){var t=e.text.split(/(\*\*[^*]+\*\*)/g);return(0,x.jsx)(x.Fragment,{children:t.map(function(e,t){return e.startsWith("**")&&e.endsWith("**")?(0,x.jsx)("strong",{className:"font-semibold",children:e.slice(2,-2)},t):(0,x.jsx)("span",{children:e},t)})})}e.s(["Avatar",0,function(e){var t=e.src,a=e.size,s=void 0===a?22:a,n=e.className;return(0,x.jsx)("img",{src:t,alt:"",width:s,height:s,draggable:!1,style:{width:s,height:s,imageRendering:"pixelated"},className:(0,h.cn)("shrink-0 select-none rounded-full",n)})},"EmptyCard",0,function(e){var t=e.icon,a=e.title,s=e.text,n=e.children;return(0,x.jsxs)("div",{className:"flex flex-col items-center justify-center rounded-xl border border-dashed border-[#E8E4E2] px-3 py-5 text-center",children:[(0,x.jsx)("span",{className:"mb-2 grid size-8 place-items-center rounded-full bg-[#F3F0EE] text-[#1E1B1A]/70",children:t}),(0,x.jsx)("p",{className:"text-[12px] font-medium text-[#1E1B1A]",children:a}),(0,x.jsx)("p",{className:"mt-0.5 max-w-[240px] text-[11px] leading-[1.45] text-[#1E1B1A]/60",children:s}),n]})},"Logo",0,function(e){var t=e.app,a=e.size,s=void 0===a?14:a,r=n[t];return r?(0,x.jsx)("img",{src:r,alt:"",draggable:!1,style:{width:s,height:s},className:"shrink-0 select-none object-contain"}):(0,x.jsx)(u.Globe,{"aria-hidden":!0,className:"shrink-0 text-[#1E1B1A]/55",style:{width:s,height:s}})},"PriorityTag",0,function(e){var t=e.p;return(0,x.jsx)("span",{className:(0,h.cn)("rounded px-1.5 py-0.5 text-[10.5px] font-medium",{Urgent:"bg-red-50 text-red-700",High:"bg-amber-50 text-amber-700",Normal:"bg-blue-50 text-blue-700",Low:"bg-neutral-100 text-neutral-600"}[t]),children:t})},"ReplyBlocks",0,function(e){var t=e.blocks,a=e.shown;return(0,x.jsx)("div",{className:"space-y-3 text-[13px] leading-[1.6] text-[#1E1B1A]",children:t.slice(0,a).map(function(e,t){var a=g.default.rise;switch(e.kind){case"p":return(0,x.jsx)("p",{className:a,children:(0,x.jsx)(E,{text:e.text})},t);case"h":return(0,x.jsx)("h4",{className:(0,h.cn)(a,"pt-1 text-[15px] font-medium"),children:e.text},t);case"ul":return(0,x.jsx)("ul",{className:(0,h.cn)(a,"list-disc space-y-1 pl-5"),children:e.items.map(function(e){return(0,x.jsx)("li",{children:(0,x.jsx)(E,{text:e})},e)})},t);case"table":return(0,x.jsx)("div",{className:(0,h.cn)(a,"overflow-x-auto rounded-lg border border-[#E8E4E2]"),children:(0,x.jsxs)("table",{className:"w-full text-left text-[12px]",children:[(0,x.jsx)("thead",{children:(0,x.jsx)("tr",{className:"border-b border-[#E8E4E2] text-[#1E1B1A]/60",children:e.head.map(function(e,t){return(0,x.jsx)("th",{className:"px-3 py-2 font-normal",children:e},t)})})}),(0,x.jsx)("tbody",{children:e.rows.map(function(e,t){return(0,x.jsx)("tr",{className:"border-b border-[#E8E4E2] last:border-0",children:e.map(function(e,t){return(0,x.jsx)("td",{className:(0,h.cn)("px-3 py-2 align-top",0===t&&"font-medium"),children:e},t)})},t)})})]})},t);case"callout":return(0,x.jsx)("div",{className:(0,h.cn)(a,"rounded-lg border border-[#E8E4E2] bg-white px-3 py-2.5"),children:(0,x.jsx)(E,{text:e.text})},t)}})})},"Rich",0,E,"StatusPill",0,function(e){var t=e.status;return"live"===t?(0,x.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-md border border-[#E8E4E2] px-1.5 py-0.5 text-[10.5px] text-[#1E1B1A]/70",children:[(0,x.jsx)(f,{})," Chat"]}):(0,x.jsxs)("span",{className:"inline-flex items-center gap-1.5 rounded-md bg-[#F3F0EE] px-1.5 py-0.5 text-[10.5px] text-[#1E1B1A]/70",children:[(0,x.jsx)("span",{className:"size-[6px] rounded-full bg-[#1E1B1A]/45"}),"paused"===t?"Paused":"Draft"]})},"TourCtx",0,b,"WorkingDots",0,function(e){var t=e.label;return(0,x.jsxs)("p",{className:"flex items-center gap-2 text-[11px] text-[#1E1B1A]/45",children:[(0,x.jsxs)("span",{className:"relative inline-block size-3","aria-hidden":!0,children:[(0,x.jsx)("span",{className:"absolute left-0 top-0 size-[3px] animate-pulse rounded-full bg-[#1E1B1A]/70"}),(0,x.jsx)("span",{className:"absolute right-0 top-[3px] size-[3px] animate-pulse rounded-full bg-[#1E1B1A]/70 [animation-delay:150ms]"}),(0,x.jsx)("span",{className:"absolute bottom-0 left-[3px] size-[3px] animate-pulse rounded-full bg-[#1E1B1A]/70 [animation-delay:300ms]"})]}),t]})},"ownerAvatar",0,function(e){return"assist"===e?i:e?o(e).avatar:null},"ownerName",0,function(e){return"assist"===e?"Assist":e?o(e).name:"Unassigned"}
1,"usePrefersReducedMotion",0,function(){var e=(0,p._)((0,m.useState)(!1),2),t=e[0],a=e[1];return(0,m.useEffect)(function(){var e=window.matchMedia("(prefers-reduced-motion: reduce)");a(e.matches);var t=function(){return a(e.matches)};return e.addEventListener("change",t),function(){return e.removeEventListener("change",t)}},[]),t},"useStagger",0,function(e,t,a,s){var n=(0,p._)((0,m.useState)(s?e:0),2),r=n[0],i=n[1];return(0,m.useEffect)(function(){if(s)return void i(e);i(0);var a=0,n=window.setInterval(function(){i(a+=1),a>=e&&window.clearInterval(n)},t);return function(){return window.clearInterval(n)}},[e,t,a,s]),r},"useTour",0,function(){var e=(0,m.useContext)(b);if(!e)throw Error("useTour outside AppTour");return e}],100856)},101048,e=>{"use strict";var t=e.i(123287);e.s(["CircleCheck",()=>t.default])},102698,541071,e=>{"use strict";var t=e.i(120786),a=e.i(92808),s=e.i(651682),n=e.i(540316),r=e.i(843476),i=e.i(271645),l=e.i(664659),o=e.i(694351),d=e.i(332102),c=e.i(785396),p=e.i(373264),x=e.i(323012),m=e.i(107233),u=e.i(761911),h=e.i(975157),g=e.i(881987),b=e.i(100856),f=e.i(975558),E=e.i(87316),j=e.i(643531),v=e.i(82735),y=e.i(336208),y=y,N=["6 emails need a reply â 1 draft waiting on your Desk","Halcyon Freight call at 1:30 PM â brief is ready","Northwind invoice #1042 is 4 days overdue"],k=[{agentId:"meeting-prep",text:"Meeting Prep",when:"Today, 5:00 PM"},{agentId:"assist",text:"Weekly recap",when:"Fri, 4:00 PM"},{agentId:"invoice-chaser",text:"Invoice Chaser",when:"Mon, 9:00 AM"}];function A(){var e=(0,b.useTour)(),t=(0,s._)((0,i.useState)(""),2),a=t[0],n=t[1],o=function(){var t=a.trim();e.startAssist(null,t||void 0),n("")};return(0,r.jsx)("div",{className:"h-full overflow-y-auto",children:(0,r.jsxs)("div",{className:"flex gap-8 px-5 py-6 md:px-7",children:[(0,r.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,r.jsx)("p",{className:"text-[11px] text-[#1E1B1A]/55",children:"Tuesday, October 6 · 9:12 AM"}),(0,r.jsx)("h3",{className:"mt-1 text-[19px] font-bold tracking-[-0.01em] text-[#1E1B1A]",children:"Good morning, Alex"}),(0,r.jsxs)("form",{onSubmit:function(e){e.preventDefault(),o()},className:"mt-4 rounded-xl border border-[#E8E4E2] bg-white p-3 shadow-[0_0_0_3px_rgba(30,27,26,0.03)] focus-within:border-[#1E1B1A]/30",children:[(0,r.jsx)("label",{className:"sr-only",htmlFor:"tour-home-ask",children:"Ask anything"}),(0,r.jsx)("input",{id:"tour-home-ask",value:a,onChange:function(e){return n(e.target.value)},placeholder:"Ask anythingâ¦",className:"w-full bg-transparent text-[13px] text-[#1E1B1A] outline-none placeholder:text-[#1E1B1A]/40",autoComplete:"off"}),(0,r.jsxs)("div",{className:"mt-4 flex items-center gap-2",children:[(0,r.jsxs)("span",{className:"inline-flex items-center gap-1.5 rounded-full border border-[#E8E4E2] py-0.5 pl-0.5 pr-2 text-[11px] text-[#1E1B1A]",children:[(0,r.jsx)(b.Avatar,{src:g.ASSIST_AVATAR,size:16})," Assist",(0,r.jsx)(l.ChevronDown,{className:"size-3 text-[#1E1B1A]/50","aria-hidden":!0})]}),(0,r.jsx)(v.Paperclip,{className:"size-3.5 text-[#1E1B1A]/45","aria-hidden":!0}),(0,r.jsx)("button",{type:"submit","aria-label":"Send to Assist",className:"ml-auto grid size-6 place-items-center rounded-full border border-[#E8E4E2] text-[#1E1B1A]/60 transition-colors hover:bg-[#1E1B1A] hover:text-white",children:(0,r.jsx)(f.ArrowUp,{className:"size-3.5"})})]})]}),(0,r.jsxs)("div",{className:"mt-7 flex items-center gap-2",children:[(0,r.jsx)("p",{className:"text-[10.5px] font-semibold uppercase tracking-[0.06em] text-[#1E1B1A]/70",children:"Your team"}),(0,r.jsx)("p",{className:"hidden truncate text-[11.5px] text-[#1E1B1A]/55 sm:block",children:"Chat with any of them, or let them run on their own"}),(0,r.jsx)("button",{type:"button",onClick:function(){return e.go("agents")},className:"ml-auto shrink-0 text-[11.5px] text-[#1E1B1A]/70 hover:text-[#1E1B1A]",children:"My Agents"}),(0,r.jsxs)("button",{type:"button",onClick:function(){return e.go("marketplace")},className:"hidden shrink-0 items-center gap-1 text-[11.5px] text-[#1E1B1A]/70 hover:text-[#1E1B1A] sm:inline-flex",children:[(0,r.jsx)(m.Plus,{className:"size-3","aria-hidden":!0})," Add agent"]})]}),(0,r.jsxs)("div",{className:"mt-3 grid grid-cols-1 gap-2.5 sm:grid-cols-2 xl:grid-cols-3",children:[(0,r.jsxs)("button",{type:"button",onClick:function(){return e.startAssist(null)},className:"flex min-h-[104px] flex-col rounded-xl border border-[#
1E8E4E2] bg-white p-3 text-left transition-colors hover:border-[#1E1B1A]/25",children:[(0,r.jsxs)("span",{className:"flex items-center gap-2",children:[(0,r.jsx)(b.Avatar,{src:g.ASSIST_AVATAR,size:24}),(0,r.jsx)("span",{className:"text-[12.5px] font-medium text-[#1E1B1A]",children:"Assistant"})]}),(0,r.jsx)("span",{className:"mt-2 line-clamp-2 text-[11.5px] leading-[1.45] text-[#1E1B1A]/60",children:"Your all-round helper. Ask it anything, anytime."}),(0,r.jsx)("span",{className:"mt-auto pt-2",children:(0,r.jsx)(b.StatusPill,{status:"live"})})]}),g.AGENTS.map(function(t){return(0,r.jsxs)("button",{type:"button",onClick:function(){return e.openAgent(t.id,"run")},className:"flex min-h-[104px] flex-col rounded-xl border border-[#E8E4E2] bg-white p-3 text-left transition-colors hover:border-[#1E1B1A]/25",children:[(0,r.jsxs)("span",{className:"flex min-w-0 items-center gap-2",children:[(0,r.jsx)(b.Avatar,{src:t.avatar,size:24}),(0,r.jsxs)("span",{className:"min-w-0",children:[(0,r.jsx)("span",{className:"block truncate text-[12.5px] font-medium text-[#1E1B1A]",children:t.name}),(0,r.jsxs)("span",{className:"block truncate text-[10.5px] text-[#1E1B1A]/50",children:["Run by ",t.persona,", ",t.role]})]})]}),(0,r.jsx)("span",{className:"mt-2 line-clamp-2 text-[11.5px] leading-[1.45] text-[#1E1B1A]/60",children:t.description}),(0,r.jsx)("span",{className:"mt-auto pt-2",children:(0,r.jsx)(b.StatusPill,{status:t.status})})]},t.id)})]})]}),(0,r.jsxs)("aside",{className:"hidden w-[250px] shrink-0 space-y-5 pt-9 lg:block",children:[(0,r.jsxs)("section",{children:[(0,r.jsx)(w,{children:"Needs you"}),0===e.desk.length?(0,r.jsx)(b.EmptyCard,{icon:(0,r.jsx)(j.Check,{className:"size-3.5"}),title:"Nothing needs you",text:"When an agent or Assist pauses for your approval, it lands here."}):(0,r.jsx)("div",{className:"space-y-1.5",children:e.desk.slice(0,3).map(function(t){var a="assist"===t.agentId?null:(0,g.agentById)(t.agentId);return(0,r.jsxs)("button",{type:"button",onClick:function(){return e.go("desk")},className:"flex w-full items-start gap-2 rounded-lg border border-[#E8E4E2] bg-white p-2 text-left hover:border-[#1E1B1A]/25",children:[(0,r.jsx)(b.Avatar,{src:a?a.avatar:g.ASSIST_AVATAR,size:18}),(0,r.jsxs)("span",{className:"min-w-0",children:[(0,r.jsx)("span",{className:"line-clamp-2 text-[11.5px] leading-[1.4] text-[#1E1B1A]",children:t.title}),(0,r.jsxs)("span",{className:"mt-0.5 flex items-center gap-1 text-[10px] text-[#1E1B1A]/50",children:[(0,r.jsx)(b.Logo,{app:t.app,size:10})," Waiting for approval"]})]})]},t.id)})})]}),(0,r.jsxs)("section",{children:[(0,r.jsx)(w,{children:"Today's brief"}),(0,r.jsxs)("div",{className:"rounded-xl border border-[#E8E4E2] bg-white p-3",children:[(0,r.jsxs)("p",{className:"flex items-center gap-1.5 text-[11.5px] font-medium text-[#1E1B1A]",children:[(0,r.jsx)(y.default,{className:"size-3.5 text-[#1E1B1A]/60","aria-hidden":!0})," Daily Brief · 8:00 AM"]}),(0,r.jsx)("ul",{className:"mt-2 space-y-1.5",children:N.map(function(e){return(0,r.jsxs)("li",{className:"flex gap-1.5 text-[11px] leading-[1.45] text-[#1E1B1A]/70",children:[(0,r.jsx)("span",{className:"mt-[6px] size-1 shrink-0 rounded-full bg-[#1E1B1A]/40"}),e]},e)})})]})]}),(0,r.jsxs)("section",{children:[(0,r.jsx)(w,{children:"Upcoming"}),(0,r.jsx)("div",{className:"divide-y divide-[#E8E4E2] rounded-xl border border-[#E8E4E2] bg-white",children:k.map(function(e){return(0,r.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2",children:[(0,r.jsx)(b.Avatar,{src:"assist"===e.agentId?g.ASSIST_AVATAR:(0,g.agentById)(e.agentId).avatar,size:16}),(0,r.jsx)("span",{className:"flex-1 truncate text-[11.5px] text-[#1E1B1A]",children:e.text}),(0,r.jsxs)("span",{className:"flex items-center gap-1 text-[10px] text-[#1E1B1A]/50",children:[(0,r.jsx)(E.Calendar,{className:"size-3","aria-hidden":!0})," ",e.when]})]},e.text)})})]}),(0,r.jsxs)("section",{children:[(0,r.jsxs)("div",{className:"mb-1.5 flex items-center justify-between",children:[(0,r.jsx)(w,{className:"mb-0",children:"Recent"}),(0,r.jsx)("button",{type:"button",onClick:function(){return e.go("assist")},className:"text-[10.5px] text-[#1E1B1A]/50 hover:text-[#1E1B1A]",children:"All"})]}),g.ASSIST_SESSIONS.slice(0,3).map(function(t){return(0,r.jsx)("button",{type:"button",onClick:function(){return e.startAssist(t.scriptId)},className:"block w-full truncate rounded-md px-1.5 py-1 text-left text-[11.5px] text-[#1E1B1A] hover:bg-[#F3F0EE]",children:t.title},t.title)})]})]})]})})}function w(e){var t=e.children,a=e.className;return(0,r.jsx)("p",{className:(0,h.cn)("mb-1.5 text-[10.5px] font-medium uppercase tracking-[0.06em] text-[#1E1B1A]/60",a),children:t})}var B=e.i(101048),S=e.i(373488);e.s(["MoreHorizontal",()=>S.default],541071);var S=S,C=e.i(37727),z=e.i(160673);function T(){var e=(0,b.useTour)(),t=(0,s._)((0,i.useState)(!1),2),a=t[0],n=t[1],l=(0,s._)((0,i.useState)("all"),2),o=l[0],d=l[1],c="all"===o?e.tasks:e.tasks.filter(function(e){return"You"===e.createdBy}),p=c.filter(function(e){return"done"===e.column}).length,x=c.filter(function(e){return"needs"===e.column}).length;return(0,r.jsxs)("div",{className:"relative h-full overflow-y-auto",children:[(0,r.jsxs)("div",{className:(0,h.cn)("px-5 py-6",e.narrow?"md:px-5":"md:px-7"),children:[(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsx)("h3",{className:"text-[19px] font-semibold tracking-[-0.01em] text-[#1E1B1A]",children:"Tasks"}),(0,r.jsx)("span",{className:"ml-auto hidden text-[11px] text-[#1E1B1A]/55 sm:inline",children:"Archived 0"}),(0,r.jsxs)("button",{type:"button",onClick:function(){return n(!0)},className:"inline-flex items-center gap-1.5 rounded-md bg-[#1E1B1A] px-2.5 py-1.5 text-[11.5px] font-medium text-white hover:bg-[#1E1B1A]/90 max-sm:ml-auto",children:[(0,r.jsx)(m.Plus,{className:"size-3.5","aria-hidden":!0})," New task"]})]}),(0,r.jsx)("p",{className:"mt-1 text-[11.5px] text-[#1E1B1A]/60",children:"Every task in your workspace: who's on it, what's stuck, what's done."}),(0,r.jsxs)("div",{className:"mt-3 flex flex-wrap items-center gap-x-4 gap-y-2 text-[11px] text-[#1E1B1A]/60",children:[(0,r.jsx)("div",{className:"inline-flex rounded-lg bg-[#F3F0EE] p-0.5",role:"group","aria-label":"Show tasks",children:[["all","All"],["mine","Mine"]].map(function(e){var t=(0,s._)(e,2),a=t[0],n=t[1];return(0,r.jsx)("button",{type:"button","aria-pressed":o===a,onClick:function(){return d(a)},className:(0,h.cn)("rounded-md px-2.5 py-0.5 text-[11px] transition-colors",o===a?"bg-white text-[#1E1B1A] shadow-sm":"text-[#1E1B1A]/60 hover:text-[#1E1B1A]"),children:n},a)})}),(0,r.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,r.jsx)("span",{className:"size-1.5 rounded-full bg-emerald-500"}),(0,r.jsx)("b",{className:"font-semibold text-[#1E1B1A]",children:p})," done today"]}),(0,r.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,r.jsx)("span",{className:"size-1.5 rounded-full bg-[#1E1B1A]"}),(0,r.jsx)("b",{className:"font-semibold text-[#1E1B1A]",children:x})," need you"]})]}),(0,r.jsx)("div",{className:(0,h.cn)("mt-5 grid grid-flow-col gap-3 overflow-x-auto pb-2",e.narrow?"auto-cols-[minmax(124px,1fr)]":"auto-cols-[minmax(170px,1fr)]"),children:g.COLUMNS.map(function(e){var t=c.filter(function(t){return t.column===e.key});return(0,r.jsxs)("div",{className:"min-w-0",children:[(0,r.jsxs)("p",{className:"flex items-center gap-1.5 text-[11px] font-semibold uppercase tracking-[0.04em] text-[#1E1B1A]",children:[(0,r.jsx)("span",{className:(0,h.cn)("size-1.5 rounded-full",e.dot)}),e.label,(0,r.jsx)("span",{className:"rounded bg-[#F3F0EE] px-1 text-[10px] font-normal text-[#1E1B1A]/60",children:t.length})]}),(0,r.jsx)("p",{className:"mt-0.5 line-clamp-1 text-[10.5px] text-[#1E1B1A]/55",children:e.hint}),(0,r.jsx)("div",{className:"mt-2.5 space-y-2",children:0===t.length?(0,r.jsx)("p",{className:"rounded-lg border border-dashed border-[#
1E8E4E2] py-3 text-center text-[11px] text-[#1E1B1A]/55",children:e.empty}):t.map(function(e){return(0,r.jsx)(F,{m:e},e.id)})})]},e.key)})})]}),a?(0,r.jsx)(_,{onClose:function(){return n(!1)}}):null]})}function F(e){var t=e.m,a=(0,b.useTour)(),s=(0,b.ownerAvatar)(t.owner),n="needs"===t.column;return(0,r.jsxs)("div",{className:(0,h.cn)(z.default.rise,"rounded-lg border border-[#E8E4E2] bg-white p-2.5",n&&"cursor-pointer hover:border-[#1E1B1A]/30"),onClick:n?function(){return a.go("desk")}:void 0,onKeyDown:n?function(e){return("Enter"===e.key||" "===e.key)&&a.go("desk")}:void 0,role:n?"button":void 0,tabIndex:n?0:void 0,children:[(0,r.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,r.jsx)(b.PriorityTag,{p:t.priority}),(0,r.jsxs)("span",{className:"ml-auto flex items-center gap-1 text-[#1E1B1A]/45",children:["done"===t.column?(0,r.jsx)(B.CircleCheck,{className:"size-3.5 text-emerald-600","aria-hidden":!0}):null,(0,r.jsx)(S.default,{className:"size-3.5","aria-hidden":!0})]})]}),(0,r.jsx)("p",{className:"mt-1.5 text-[12px] font-medium leading-[1.4] text-[#1E1B1A]",children:t.title}),(0,r.jsxs)("p",{className:"mt-0.5 text-[10px] text-[#1E1B1A]/45",children:["Created by ","You"===t.createdBy?"you":t.createdBy]}),t.progress?(0,r.jsxs)("div",{className:"mt-2",children:[(0,r.jsx)("div",{className:"h-1 overflow-hidden rounded-full bg-[#F3F0EE]",children:(0,r.jsx)("div",{className:"h-full w-3/5 animate-pulse rounded-full bg-blue-500/70"})}),(0,r.jsx)("p",{className:"mt-1 text-[10px] text-[#1E1B1A]/55",children:t.progress})]}):null,n?(0,r.jsx)("p",{className:"mt-1.5 text-[10.5px] font-medium text-[#1E1B1A]/70 underline underline-offset-2",children:"Review on Desk â"}):null,(0,r.jsxs)("p",{className:"mt-2 flex min-w-0 items-center gap-1.5 text-[10.5px] text-[#1E1B1A]/55",children:[s?(0,r.jsx)(b.Avatar,{src:s,size:14}):(0,r.jsx)(d.Inbox,{className:"size-3 shrink-0","aria-hidden":!0}),(0,r.jsx)("span",{className:"truncate text-[#1E1B1A]/80",children:(0,b.ownerName)(t.owner)}),(0,r.jsx)("span",{className:"ml-auto shrink-0",children:t.when})]})]})}var P=["Urgent","High","Normal","Low"];function _(e){var t=e.onClose,a=(0,b.useTour)(),n=(0,s._)((0,i.useState)(""),2),l=n[0],o=n[1],c=(0,s._)((0,i.useState)(null),2),p=c[0],x=c[1],m=(0,s._)((0,i.useState)("Normal"),2),u=m[0],f=m[1],E=function(e){return(0,h.cn)("inline-flex items-center gap-1.5 rounded-md border px-2 py-1 text-[11.5px] transition-colors",e?"border-[#1E1B1A]/40 bg-[#F3F0EE] text-[#1E1B1A]":"border-[#E8E4E2] text-[#1E1B1A]/80 hover:bg-[#F3F0EE]")};return(0,r.jsx)("div",{className:(0,h.cn)(z.default.fade,"absolute inset-0 z-20 grid place-items-center bg-[#1E1B1A]/25 p-4"),onClick:t,children:(0,r.jsxs)("div",{role:"dialog","aria-label":"New task",className:(0,h.cn)(z.default.rise,"w-full max-w-[400px] rounded-xl bg-white p-4 shadow-xl"),onClick:function(e){return e.stopPropagation()},children:[(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsx)("p",{className:"text-[14px] font-semibold text-[#1E1B1A]",children:"New task"}),(0,r.jsx)("button",{type:"button","aria-label":"Close",onClick:t,className:"ml-auto text-[#1E1B1A]/50 hover:text-[#1E1B1A]",children:(0,r.jsx)(C.X,{className:"size-4"})})]}),(0,r.jsx)("label",{htmlFor:"tour-task",className:"mt-3 block text-[11.5px] font-medium text-[#1E1B1A]",children:"What do you need done?"}),(0,r.jsx)("textarea",{id:"tour-task",value:l,onChange:function(e){return o(e.target.value)},rows:3,placeholder:"e.g. Check prices from our 3 suppliers and email me the cheapest one",className:"mt-1.5 w-full resize-none rounded-lg border border-[#E8E4E2] px-2.5 py-2 text-[12px] text-[#1E1B1A] outline-none placeholder:text-[#1E1B1A]/40 focus:border-[#1E1B1A]/40"}),(0,r.jsx)("p",{className:"mt-3 text-[11.5px] font-medium text-[#1E1B1A]",children:"Who should do it?"}),(0,r.jsxs)("div",{className:"mt-1.5 flex flex-wrap gap-1.5",children:[(0,r.jsxs)("button",{type:"button",className:E(null===p),onClick:function(){return x(null)},children:[(0,r.jsx)(d.Inbox,{className:"size-3","aria-hidden":!0})," Decide later ",null===p?(0,r.jsx)(j.Check,{className:"size-3","aria-hidden":!0}):null]}),(0,r.jsxs)("button",{type:"button",className:E("assist"===p),onClick:function(){return x("assist")},children:[(0,r.jsx)(b.Avatar,{src:g.ASSIST_AVATAR,size:14})," Assist"]}),g.AGENTS.filter(function(e){return"live"===e.status}).slice(0,3).map(function(e){return(0,r.jsxs)("button",{type:"button",className:E(p===e.id),onClick:function(){return x(e.id)},children:[(0,r.jsx)(b.Avatar,{src:e.avatar,size:14})," ",e.name]},e.id)})]}),(0,r.jsx)("p",{className:"mt-3 text-[11.5px] font-medium text-[#1E1B1A]",children:"How urgent?"}),(0,r.jsx)("div",{className:"mt-1.5 flex flex-wrap gap-1.5",children:P.map(function(e){return(0,r.jsxs)("button",{type:"button",className:E(u===e),onClick:function(){return f(e)},children:[e," ",u===e?(0,r.jsx)(j.Check,{className:"size-3","aria-hidden":!0}):null]},e)})}),(0,r.jsxs)("div",{className:"mt-4 flex items-center gap-2 border-t border-[#
1E8E4E2] pt-3",children:[(0,r.jsx)("p",{className:"flex-1 text-[10.5px] leading-[1.4] text-[#1E1B1A]/55",children:p?"Starts right away.":"Saved to Backlog. Choose who does it when you're ready."}),(0,r.jsx)("button",{type:"button",onClick:t,className:"rounded-md border border-[#E8E4E2] px-2.5 py-1.5 text-[11.5px] text-[#1E1B1A]",children:"Cancel"}),(0,r.jsx)("button",{type:"button",onClick:function(){var e=l.trim()||"Check prices from our 3 suppliers and email me the cheapest one";a.addTask({id:"new-".concat(a.tasks.length),title:e,priority:u,owner:p,createdBy:"You",column:p?"flight":"backlog",when:p?"started just now":"added just now",progress:p?"Step 1 of 4 · planning":void 0}),t()},className:"rounded-md bg-[#1E1B1A] px-2.5 py-1.5 text-[11.5px] font-medium text-white",children:p?"Start task":"Save for later"})]})]})})}var I=e.i(316612),I=I;function R(){var e=(0,b.useTour)(),t=(0,s._)((0,i.useState)("needs"),2),a=t[0],n=t[1];return(0,r.jsx)("div",{className:"h-full overflow-y-auto",children:(0,r.jsxs)("div",{className:"max-w-[720px] px-5 py-5 md:px-7",children:[(0,r.jsxs)("p",{className:"flex items-center gap-2 text-[13px] text-[#1E1B1A]",children:[(0,r.jsx)(d.Inbox,{className:"size-4 text-[#1E1B1A]/70","aria-hidden":!0})," Desk"]}),(0,r.jsx)("div",{className:"mt-4 inline-flex rounded-lg bg-[#F3F0EE] p-0.5",role:"tablist",children:[["needs","Needs you".concat(e.desk.length?" · ".concat(e.desk.length):"")],["updates","Updates"]].map(function(e){var t=(0,s._)(e,2),i=t[0],l=t[1];return(0,r.jsx)("button",{type:"button",role:"tab","aria-selected":a===i,onClick:function(){return n(i)},className:(0,h.cn)("rounded-md px-2.5 py-1 text-[11.5px] transition-colors",a===i?"bg-white text-[#1E1B1A] shadow-sm":"text-[#1E1B1A]/60 hover:text-[#1E1B1A]"),children:l},i)})}),(0,r.jsx)("div",{className:"mt-4 space-y-3",children:"needs"===a?0===e.desk.length?(0,r.jsx)(b.EmptyCard,{icon:(0,r.jsx)(d.Inbox,{className:"size-3.5"}),title:"You're all caught up",text:"When an agent or Assist pauses for your approval, it shows up here.",children:(0,r.jsx)("button",{type:"button",onClick:function(){return n("updates")},className:"mt-3 text-[11px] font-medium text-[#1E1B1A] underline underline-offset-2",children:"See what happened"})}):e.desk.map(function(e){return(0,r.jsx)(D,{d:e},e.id)}):(0,r.jsxs)("div",{className:"divide-y divide-[#E8E4E2] rounded-xl border border-[#E8E4E2] bg-white",children:[e.resolved.map(function(e){var t=e.item,a=e.outcome;return(0,r.jsx)(M,{avatar:"assist"===t.agentId?g.ASSIST_AVATAR:(0,g.agentById)(t.agentId).avatar,text:"approved"===a?t.done:"Declined: ".concat(t.title),when:"just now",icon:"approved"===a?(0,r.jsx)(B.CircleCheck,{className:"size-3.5 text-emerald-600","aria-hidden":!0}):(0,r.jsx)(I.default,{className:"size-3.5 text-[#1E1B1A]/45","aria-hidden":!0})},t.id)}),g.DESK_UPDATES.map(function(e){return(0,r.jsx)(M,{avatar:"assist"===e.agentId?g.ASSIST_AVATAR:(0,g.agentById)(e.agentId).avatar,text:e.text,when:e.when,icon:(0,r.jsx)(B.CircleCheck,{className:"size-3.5 text-emerald-600","aria-hidden":!0})},e.text)})]})})]})})}function M(e){var t=e.avatar,a=e.text,s=e.when,n=e.icon;return(0,r.jsxs)("div",{className:(0,h.cn)(z.default.rise,"flex items-center gap-2.5 px-3 py-2.5"),children:[(0,r.jsx)(b.Avatar,{src:t,size:20}),(0,r.jsx)("span",{className:"flex-1 text-[12px] text-[#1E1B1A]",children:a}),n,(0,r.jsx)("span",{className:"w-[64px] shrink-0 text-right text-[10.5px] text-[#1E1B1A]/50",children:s})]})}function D(e){var t=e.d,a=(0,b.useTour)(),s="assist"===t.agentId?null:(0,g.agentById)(t.agentId);return(0,r.jsxs)("div",{className:(0,h.cn)(z.default.rise,"rounded-xl border border-[#E8E4E2] bg-white"),children:[(0,r.jsxs)("div",{className:"flex items-center gap-2.5 border-b border-[#E8E4E2] px-3.5 py-2.5",children:[(0,r.jsx)(b.Avatar,{src:s?s.avatar:g.ASSIST_AVATAR,size:22}),(0,r.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,r.jsx)("p",{className:"truncate text-[12.5px] font-medium text-[#1E1B1A]",children:t.title}),(0,r.jsxs)("p",{className:"text-[10.5px] text-[#1E1B1A]/55",children:[s?s.name:"Assist"," · ",t.when]})]}),(0,r.jsx)("span",{className:"hidden items-center gap-1 rounded-md bg-amber-50 px-1.5 py-0.5 text-[10.5px] font-medium text-amber-700 sm:inline-flex",children:"Needs approval"})]}),(0,r.jsxs)("div",{className:"px-3.5 py-3",children:[(0,r.jsxs)("p",{className:"flex items-center gap-1.5 text-[11px] text-[#1E1B1A]/60",children:[(0,r.jsx)(b.Logo,{app:t.app,size:12})," ",t.action]}),(0,r.jsx)("dl",{className:"mt-2 grid grid-cols-[64px_1fr] gap-y-1 text-[11.5px]",children:t.preview.map(function(e){return(0,r.jsxs)("div",{className:"contents",children:[(0,r.jsx)("dt",{className:"text-[#1E1B1A]/50",children:e.label}),(0,r.jsx)("dd",{className:"truncate text-[#1E1B1A]",children:e.value})]},e.label)})}),(0,r.jsx)("p",{className:"mt-2.5 rounded-lg bg-[#FBF9F9] px-3 py-2 text-[12px] leading-[1.55] text-[#1E1B1A]/85",children:t.body})]}),(0,r.jsxs)("div",{className:"flex items-center gap-2 border-t border-[#
1E8E4E2] px-3.5 py-2.5",children:[(0,r.jsxs)("button",{type:"button",onClick:function(){return a.resolveDesk(t.id,"approved")},className:"inline-flex items-center gap-1.5 rounded-md bg-[#1E1B1A] px-2.5 py-1.5 text-[11.5px] font-medium text-white hover:bg-[#1E1B1A]/90",children:[(0,r.jsx)(j.Check,{className:"size-3.5","aria-hidden":!0}),"Approve & send"]}),(0,r.jsxs)("button",{type:"button",onClick:function(){return a.resolveDesk(t.id,"declined")},className:"inline-flex items-center gap-1.5 rounded-md border border-[#E8E4E2] px-2.5 py-1.5 text-[11.5px] text-[#1E1B1A] hover:bg-[#F3F0EE]",children:[(0,r.jsx)(C.X,{className:"size-3.5","aria-hidden":!0})," Decline"]}),(0,r.jsx)("span",{className:"ml-auto hidden text-[10.5px] text-[#1E1B1A]/45 sm:inline",children:"Nothing is sent until you approve"})]})]})}var L=e.i(972520),H=e.i(959208),W=e.i(463059),G=e.i(178583),U=e.i(674558),O=e.i(996781),q=e.i(203496),K=e.i(555436),V=e.i(239616),Y=e.i(283086),y=y,J={sun:y.default,scale:q.Scale,inbox:d.Inbox,repeat:O.Repeat,search:K.Search,pen:U.PenLine},Z=[{key:"notes",label:"Notes",icon:G.FileText},{key:"skills",label:"Skills",icon:Y.Sparkles},{key:"routines",label:"Routines",icon:H.CalendarClock},{key:"apps",label:"Apps",icon:p.LayoutGrid}];function Q(){var e,t=(0,b.useTour)(),a=null!=(e=t.assistScript)?e:t.assistText;return(0,r.jsxs)("div",{className:"flex h-full",children:[(0,r.jsxs)("div",{className:"hidden w-[190px] shrink-0 flex-col border-r border-[#E8E4E2] bg-[#FBF9F9] md:flex",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 px-3 pt-3",children:[(0,r.jsx)(b.Avatar,{src:g.ASSIST_AVATAR,size:20}),(0,r.jsx)("span",{className:"text-[12.5px] font-medium text-[#1E1B1A]",children:"Assist"})]}),(0,r.jsxs)("button",{type:"button",onClick:function(){t.setAssistPanel("chat"),t.startAssist(null)},className:"mx-2.5 mt-3 flex items-center gap-1.5 rounded-md border border-[#E8E4E2] bg-white px-2 py-1.5 text-[11.5px] text-[#1E1B1A] hover:bg-[#F3F0EE]",children:[(0,r.jsx)(m.Plus,{className:"size-3.5","aria-hidden":!0})," New session"]}),(0,r.jsx)("p",{className:"mt-3 px-3 text-[10.5px] text-[#1E1B1A]/55",children:"Recents"}),(0,r.jsx)("div",{className:"mt-1 space-y-px px-1.5",children:g.ASSIST_SESSIONS.map(function(e){return(0,r.jsx)("button",{type:"button",onClick:function(){t.setAssistPanel("chat"),t.startAssist(e.scriptId)},className:(0,h.cn)("block w-full truncate rounded-md px-1.5 py-1 text-left text-[11.5px] text-[#1E1B1A] hover:bg-[#F3F0EE]","chat"===t.assistPanel&&t.assistScript===e.scriptId&&"bg-[#F3F0EE]"),children:e.title},e.title)})}),(0,r.jsxs)("div",{className:"mt-auto border-t border-[#E8E4E2] px-1.5 py-2",children:[(0,r.jsx)("p",{className:"px-1.5 pb-1 text-[10.5px] text-[#1E1B1A]/55",children:"Customize"}),Z.map(function(e){var a=e.key,s=e.label,n=e.icon;return(0,r.jsxs)("button",{type:"button",onClick:function(){return t.setAssistPanel(a)},className:(0,h.cn)("flex w-full items-center gap-2 rounded-md px-1.5 py-1 text-left text-[11.5px] text-[#1E1B1A] hover:bg-[#F3F0EE]",t.assistPanel===a&&"bg-[#F3F0EE]"),children:[(0,r.jsx)(n,{className:"size-3.5 text-[#1E1B1A]/60","aria-hidden":!0}),s,(0,r.jsx)(W.ChevronRight,{className:"ml-auto size-3 text-[#1E1B1A]/35","aria-hidden":!0})]},a)}),(0,r.jsxs)("span",{className:"flex items-center gap-2 px-1.5 py-1 text-[11.5px] text-[#1E1B1A]/50",children:[(0,r.jsx)(V.Settings,{className:"size-3.5","aria-hidden":!0})," Settings"]})]})]}),(0,r.jsx)("div",{className:"relative min-w-0 flex-1",children:"routines"===t.assistPanel?(0,r.jsx)(er,{}):"apps"===t.assistPanel?(0,r.jsx)(el,{}):"notes"===t.assistPanel?(0,r.jsx)(en,{title:"Notes",icon:(0,r.jsx)(G.FileText,{className:"size-3.5"}),empty:"No notes yet",text:"The assistant creates notes automatically as it works. You can also add one manually."}):"skills"===t.assistPanel?(0,r.jsx)(en,{title:"Skills",icon:(0,r.jsx)(Y.Sparkles,{className:"size-3.5"}),empty:"No skills yet",text:"Import skills anyone in the workspace can call from Assist using @."}):a?(0,r.jsx)(ee,{},"".concat(t.assistScript,"-").concat(t.assistText)):(0,r.jsx)(X,{})})]})}function X(){var e=(0,b.useTour)(),t=(0,s._)((0,i.useState)("All"),2),a=t[0],n=t[1],l="All"===a?g.SCRIPTS:g.SCR
1IPTS.filter(function(e){return e.category===a});return(0,r.jsxs)("div",{className:"flex h-full flex-col",children:[(0,r.jsxs)("div",{className:"flex-1 overflow-y-auto px-4 pb-4 md:px-8",children:[(0,r.jsxs)("div",{className:"flex flex-col items-center pt-8 text-center md:pt-12",children:[(0,r.jsx)("span",{className:"grid size-16 place-items-center rounded-full bg-gradient-to-b from-[#F3F0EE] to-white ring-1 ring-[#E8E4E2]",children:(0,r.jsx)(b.Avatar,{src:g.ASSIST_AVATAR,size:52})}),(0,r.jsx)("p",{className:"mt-4 text-[18px] text-[#1E1B1A]",children:"What would you like to explore?"}),(0,r.jsx)("p",{className:"mt-1 text-[11.5px] text-[#1E1B1A]/55",children:"Pick a prompt below, or type your own"})]}),(0,r.jsxs)("div",{className:"mx-auto mt-6 max-w-[640px]",children:[(0,r.jsx)("div",{className:"flex gap-1.5 overflow-x-auto pb-1",children:g.PROMPT_CATEGORIES.map(function(e){return(0,r.jsx)("button",{type:"button",onClick:function(){return n(e)},className:(0,h.cn)("shrink-0 rounded-full border px-2.5 py-0.5 text-[10.5px] transition-colors",a===e?"border-[#1E1B1A] bg-[#1E1B1A] text-white":"border-[#
1E8E4E2] text-[#1E1B1A]/70 hover:bg-[#F3F0EE]"),children:e},e)})}),(0,r.jsx)("div",{className:"mt-3 grid grid-cols-1 gap-2 sm:grid-cols-2 lg:grid-cols-3",children:0===l.length?(0,r.jsx)("p",{className:"col-span-full py-6 text-center text-[11.5px] text-[#1E1B1A]/50",children:"More prompts live in the full app."}):l.map(function(t){return(0,r.jsx)($,{s:t,onPick:function(){return e.startAssist(t.id)}},t.id)})})]})]}),(0,r.jsx)(ea,{placeholder:"",onSend:function(t){return e.startAssist(null,t)}})]})}function $(e){var t=e.s,a=e.onPick,s=J[t.icon];return(0,r.jsxs)("button",{type:"button",onClick:a,className:(0,h.cn)(z.default.rise,"group rounded-xl border border-dashed border-[#E8E4E2] bg-white p-2.5 text-left transition-colors hover:border-solid hover:border-[#1E1B1A]/25"),children:[(0,r.jsxs)("span",{className:"flex items-center gap-2 text-[12px] font-medium text-[#1E1B1A]",children:[(0,r.jsx)("span",{className:"grid size-6 place-items-center rounded-md bg-[#EEF7E6] text-[#3E6B1F]",children:(0,r.jsx)(s,{className:"size-3.5","aria-hidden":!0})}),t.title]}),(0,r.jsx)("span",{className:"mt-1.5 line-clamp-2 block text-[10.5px] leading-[1.45] text-[#1E1B1A]/60",children:t.prompt})]})}function ee(){var e,t,a=(0,b.useTour)(),n=null!=(e=g.SCRIPTS.find(function(e){return e.id===a.assistScript}))?e:null,l=n?n.prompt:null!=(t=a.assistText)?t:"",o=n?n.steps:[],d=n?n.reply:g.FALLBACK_REPLY,c=(0,b.useStagger)(o.length,650,l,a.reduced),p=c>=o.length,x=(0,s._)((0,i.useState)(a.reduced||0===o.length),2),u=x[0],f=x[1];(0,i.useEffect)(function(){if(p&&!u){var e=window.setTimeout(function(){return f(!0)},350);return function(){return window.clearTimeout(e)}}},[p,u]);var E=(0,b.useStagger)(u?d.length:0,420,"".concat(l,"-").concat(u),a.reduced),j=u&&E>=d.length,v=(0,i.useRef)(null);(0,i.useEffect)(function(){var e=v.current;e&&e.scrollTo({top:e.scrollHeight,behavior:a.reduced?"auto":"smooth"})},[c,E,a.reduced]);var y=n?n.title:l.slice(0,40);return(0,r.jsxs)("div",{className:"flex h-full flex-col",children:[(0,r.jsx)("div",{className:"flex h-10 shrink-0 items-center justify-center border-b border-[#E8E4E2] px-4",children:(0,r.jsx)("p",{className:"truncate text-[12px] font-medium text-[#1E1B1A]",children:y})}),(0,r.jsx)("div",{ref:v,className:"flex-1 overflow-y-auto px-4 py-5 md:px-10",children:(0,r.jsxs)("div",{className:"mx-auto max-w-[620px]",children:[(0,r.jsx)("div",{className:"flex justify-end",children:(0,r.jsx)("p",{className:"max-w-[85%] rounded-xl bg-[#F3F0EE] px-3 py-2 text-[12.5px] leading-[1.5] text-[#1E1B1A]",children:l})}),(0,r.jsxs)("div",{className:"mt-5",children:[(0,r.jsx)("img",{src:"/logo-lockup.svg",alt:"DeskFerry",className:"h-[14px] w-auto",draggable:!1}),o.length>0?(0,r.jsxs)("div",{className:"mt-2.5",children:[(0,r.jsxs)("p",{className:"flex items-center gap-1 text-[11px] text-[#1E1B1A]/55",children:[p?null==n?void 0:n.summary:"Workingâ¦"," ",(0,r.jsx)(W.ChevronRight,{className:"size-3","aria-hidden":!0})]}),(0,r.jsx)("div",{className:"mt-1.5 space-y-1",children:o.slice(0,c).map(function(e,t){return(0,r.jsx)(et,{app:e.app,label:e.label,detail:e.detail},t)})})]}):null,(0,r.jsx)("div",{className:"mt-3",children:(0,r.jsx)(b.ReplyBlocks,{blocks:d,shown:E})}),(0,r.jsx)("div",{className:"mt-4",children:j?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(b.WorkingDots,{label:"Ready for your next message."}),n?(0,r.jsxs)("div",{className:(0,h.cn)(z.default.rise,"mt-3"),children:[(0,r.jsx)("p",{className:"text-[11px] text-[#1E1B1A]/55",children:"Suggested follow-ups"}),n.followUps.map(function(e){return(0,r.jsxs)("button",{type:"button",onClick:function(){return a.startAssist(null,e)},className:"mt-1 flex w-full items-center gap-2 rounded-md px-1 py-1 text-left text-[12px] text-[#1E1B1A] hover:bg-[#F3F0EE]",children:[(0,r.jsx)(m.Plus,{className:"size-3.5 rounded-full border border-[#1E1B1A]/30 p-px text-[#1E1B1A]/50","aria-hidden":!0}),e,(0,r.jsx)(L.ArrowRight,{className:"ml-auto size-3.5 text-[#1E1B1A]/30","aria-hidden":!0})]},e)})]}):null]}):(0,r.jsx)(b.WorkingDots,{label:"Assistant is workingâ¦"})})]})]})}),(0,r.jsx)(ea,{placeholder:"Type a message â press @ to mention a skill, app, or agent",onSend:function(e){return a.startAssist(null,e)}})]})}function et(e){var t=e.app,a=e.label,s=e.detail;return(0,r.jsxs)("p",{className:(0,h.cn)(z.default.rise,"flex items-center gap-2 text-[11.5px] text-[#1E1B1A]"),children:[(0,r.jsx)(b.Logo,{app:t,size:13}),a,s?(0,r.jsxs)("span",{className:"hidden truncate font-mono text-[10.5px] text-[#1E1B1A]/50 sm:inline",children:["â ",s]}):null,(0,r.jsx)(B.CircleCheck,{className:"ml-auto size-3.5 shrink-0 text-emerald-600","aria-hidden":!0})]})}function ea(e){var t=e.placeholder,a=e.onSend,n=(0,s._)((0,i.useState)(""),2),l=n[0],o=n[1];return(0,r.jsx)("form",{onSubmit:function(e){e.preventDefault(),l.trim()&&(a(l.trim()),o(""))},className:"shrink-0 px-4 pb-4 md:px-10",children:(0,r.jsxs)("div",{className:"mx-auto max-w-[640px] rounded-xl border border-[#
1E8E4E2] bg-white p-2.5 shadow-[0_0_0_3px_rgba(30,27,26,0.03)] focus-within:border-[#1E1B1A]/30",children:[(0,r.jsx)("label",{htmlFor:"tour-assist-input",className:"sr-only",children:"Message Assist"}),(0,r.jsx)("input",{id:"tour-assist-input",value:l,onChange:function(e){return o(e.target.value)},placeholder:t||"Ask Assist anythingâ¦",autoComplete:"off",className:"w-full bg-transparent text-[12.5px] text-[#1E1B1A] outline-none placeholder:text-[#1E1B1A]/40"}),(0,r.jsxs)("div",{className:"mt-3 flex items-center gap-2.5 text-[#1E1B1A]/45",children:[(0,r.jsx)(v.Paperclip,{className:"size-3.5","aria-hidden":!0}),(0,r.jsx)(p.LayoutGrid,{className:"size-3.5","aria-hidden":!0}),(0,r.jsx)("span",{className:"ml-auto rounded-md border border-[#E8E4E2] px-1.5 py-0.5 text-[10.5px] text-[#1E1B1A]/70",children:"Plan"}),(0,r.jsx)("button",{type:"submit","aria-label":"Send",className:"grid size-6 place-items-center rounded-full border border-[#E8E4E2] text-[#1E1B1A]/60 transition-colors hover:bg-[#1E1B1A] hover:text-white",children:(0,r.jsx)(f.ArrowUp,{className:"size-3.5"})})]})]})})}function es(e){var t=e.title,a=e.icon,s=e.children;return(0,r.jsx)("div",{className:"h-full overflow-y-auto",children:(0,r.jsxs)("div",{className:"mx-auto max-w-[680px] px-4 py-5 md:px-6",children:[(0,r.jsxs)("p",{className:"flex items-center gap-2 text-[13px] text-[#1E1B1A]",children:[(0,r.jsx)("span",{className:"text-[#1E1B1A]/60",children:a}),t]}),s]})})}function en(e){var t=e.title,a=e.icon,s=e.empty,n=e.text;return(0,r.jsx)(es,{title:t,icon:a,children:(0,r.jsx)("div",{className:"mt-4",children:(0,r.jsx)(b.EmptyCard,{icon:a,title:s,text:n})})})}function er(){var e=(0,b.useTour)(),t=Array.from(new Set(g.ROUTINE_TEMPLATES.map(function(e){return e.group})));return(0,r.jsxs)(es,{title:"Routines",icon:(0,r.jsx)(H.CalendarClock,{className:"size-3.5"}),children:[(0,r.jsx)("p",{className:"mt-2 text-[11.5px] leading-[1.5] text-[#1E1B1A]/60",children:"Assist can run tasks on autopilot. Pick a template to start â you can change the timing and wording before you send it."}),t.map(function(t){return(0,r.jsxs)("div",{className:"mt-4",children:[(0,r.jsx)("p",{className:"text-[10px] font-medium uppercase tracking-[0.08em] text-[#1E1B1A]/55",children:t}),(0,r.jsx)("div",{className:"mt-1.5 grid grid-cols-1 gap-2 sm:grid-cols-3",children:g.ROUTINE_TEMPLATES.filter(function(e){return e.group===t}).map(function(t){return(0,r.jsxs)("button",{type:"button",onClick:function(){e.setAssistPanel("chat"),e.startAssist("routine")},className:"rounded-xl border border-[#E8E4E2] bg-white p-2.5 text-left transition-colors hover:border-[#1E1B1A]/25",children:[(0,r.jsxs)("span",{className:"flex items-center gap-1.5 text-[11.5px] font-medium text-[#1E1B1A]",children:[(0,r.jsx)("span",{className:"grid size-5 place-items-center rounded-md bg-[#EEF7E6] text-[#3E6B1F]",children:(0,r.jsx)(H.CalendarClock,{className:"size-3","aria-hidden":!0})}),t.name]}),(0,r.jsx)("span",{className:"mt-1.5 block text-[10.5px] leading-[1.4] text-[#1E1B1A]/60",children:t.text}),(0,r.jsx)("span",{className:"mt-2 block text-[10px] text-[#1E1B1A]/45",children:t.when})]},t.name)})})]},t)})]})}var ei=[{app:"gmail",name:"Gmail",connected:!0},{app:"slack",name:"Slack",connected:!0},{app:"drive",name:"Google Drive",connected:!0},{app:"hubspot",name:"HubSpot",connected:!1},{app:"sheets",name:"Google Sheets",connected:!1},{app:"notion",name:"Notion",connected:!1},{app:"jira",name:"Jira",connected:!1},{app:"zendesk",name:"Zendesk",connected:!1},{app:"quickbooks",name:"QuickBooks",connected:!1},{app:"linkedin",name:"LinkedIn",connected:!1}];function el(){var e=(0,s._)((0,i.useState)(function(){return new Set(ei.filter(function(e){return e.connected}).map(function(e){return e.name}))}),2),t=e[0],a=e[1];return(0,r.jsxs)(es,{title:"Apps",icon:(0,r.jsx)(p.LayoutGrid,{className:"size-3.5"}),children:[(0,r.jsxs)("div",{className:"mt-3 flex items-center gap-2 rounded-md border border-[#E8E4E2] bg-white px-2.5 py-1.5 text-[11.5px] text-[#1E1B1A]/40",children:[(0,r.jsx)(K.Search,{className:"size-3.5","aria-hidden":!0})," Search appsâ¦"]}),(0,r.jsx)("div",{className:"mt-3 grid grid-cols-1 overflow-hidden rounded-xl border border-[#
1E8E4E2] bg-white sm:grid-cols-2",children:ei.map(function(e){var s=t.has(e.name);return(0,r.jsxs)("div",{className:"-mb-px flex items-center gap-2.5 border-b border-[#E8E4E2] px-3 py-2 sm:odd:border-r",children:[(0,r.jsx)(b.Logo,{app:e.app,size:15}),(0,r.jsx)("span",{className:"flex-1 text-[12px] text-[#1E1B1A]",children:e.name}),(0,r.jsx)("button",{type:"button",onClick:function(){return a(function(t){var a=new Set(t);return a.has(e.name)?a.delete(e.name):a.add(e.name),a})},className:(0,h.cn)("rounded-md border px-2 py-0.5 text-[10.5px] transition-colors",s?"border-emerald-200 bg-emerald-50 text-emerald-700":"border-[#E8E4E2] text-[#1E1B1A] hover:bg-[#F3F0EE]"),children:s?"Connected":"Connect"})]},e.name)})}),(0,r.jsx)("p",{className:"mt-2 text-[10.5px] text-[#1E1B1A]/50",children:"Plus 1,500+ more in the full catalog."})]})}var eo=e.i(810980),ed=e.i(531245),ec=e.i(805135),ec=ec,ep=e.i(38982),ex=e.i(161765),em=e.i(779052),em=em,eu=e.i(431343),eh=e.i(581418),eg=e.i(870273),eb=e.i(977482),eb=eb,ef=e.i(733060),eE=e.i(39312);function ej(){var e=(0,b.useTour)(),t=(0,s._)((0,i.useState)(""),2),a=t[0],n=t[1],l=function(t){e.setNeoPrompt(t),e.openAgent("__new","build")};return(0,r.jsx)("div",{className:"h-full overflow-y-auto",children:(0,r.jsxs)("div",{className:"px-5 py-5 md:px-7",children:[(0,r.jsxs)("p",{className:"flex items-center gap-2 text-[13px] text-[#1E1B1A]",children:[(0,r.jsx)(p.LayoutGrid,{className:"size-4 text-[#1E1B1A]/70","aria-hidden":!0})," Marketplace"]}),(0,r.jsxs)("div",{className:"mx-auto mt-6 max-w-[560px] text-center",children:[(0,r.jsx)("p",{className:"text-[24px] tracking-[-0.015em] text-[#1E1B1A]",children:"Let AI handle your busywork"}),(0,r.jsxs)("p",{className:"mt-1.5 text-[12px] leading-[1.5] text-[#1E1B1A]/65",children:["Simply describe what you'd like to automate, and ",(0,r.jsx)("b",{className:"font-semibold text-[#1E1B1A]",children:"Agent"}),(0,r.jsx)("i",{className:"text-[#1E1B1A]",children:"NEO"})," will create it based on your instructions."]}),(0,r.jsxs)("form",{onSubmit:function(e){e.preventDefault(),l(a.trim()||"Create an agent that researches leads and summarizes their products, services, competitors, and recent news")},className:"mt-5 rounded-xl border border-[#E8E4E2] bg-white text-left shadow-[0_0_0_3px_rgba(30,27,26,0.03)] focus-within:border-[#1E1B1A]/30",children:[(0,r.jsx)("label",{htmlFor:"tour-neo",className:"sr-only",children:"Describe an agent"}),(0,r.jsx)("textarea",{id:"tour-neo",value:a,onChange:function(e){return n(e.target.value)},rows:2,placeholder:"e.g., Create an agent that researches leads and summarizes their products, services, competitors, and recent newsâ¦",className:"w-full resize-none bg-transparent px-3 pt-3 text-[12px] text-[#1E1B1A] outline-none placeholder:text-[#1E1B1A]/40"}),(0,r.jsx)("div",{className:"flex justify-end border-t border-[#E8E4E2] p-2",children:(0,r.jsxs)("button",{type:"submit",className:"inline-flex items-center gap-1.5 rounded-md bg-[#1E1B1A] px-2.5 py-1.5 text-[11.5px] font-medium text-white hover:bg-[#1E1B1A]/90",children:[(0,r.jsx)(ef.Wand2,{className:"size-3.5","aria-hidden":!0})," Create"]})})]}),(0,r.jsxs)("span",{className:"mt-3 inline-flex items-center gap-1.5 rounded-md border border-[#E8E4E2] px-2 py-1 text-[10.5px] text-[#1E1B1A]/70",children:[(0,r.jsx)(eo.BookOpen,{className:"size-3","aria-hidden":!0})," How-to guides"]})]}),(0,r.jsxs)("div",{className:"mt-7 flex items-center gap-2",children:[(0,r.jsxs)("span",{className:"flex w-[180px] items-center gap-1.5 rounded-md border border-[#E8E4E2] bg-white px-2 py-1 text-[11px] text-[#1E1B1A]/40",children:[(0,r.jsx)(K.Search,{className:"size-3","aria-hidden":!0})," Search agents"]}),(0,r.jsxs)("span",{className:"hidden w-[130px] items-center justify-between rounded-md border border-[#E8E4E2] bg-white px-2 py-1 text-[11px] text-[#1E1B1A]/60 sm:flex",children:["All categories ",(0,r.jsx)(ec.default,{className:"size-3","aria-hidden":!0})]})]}),(0,r.jsx)("p",{className:"mt-4 text-[15px] font-medium text-[#1E1B1A]",children:"Featured agents"}),(0,r.jsx)("div",{className:"mt-2.5 grid grid-cols-1 gap-2.5 sm:grid-cols-2 xl:grid-cols-3",children:g.TEMPLATES.map(function(e){return(0,r.jsxs)("div",{className:"flex flex-col rounded-xl border border-[#
1E8E4E2] bg-white p-3",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(b.Avatar,{src:e.avatar,size:26}),(0,r.jsxs)("div",{className:"min-w-0",children:[(0,r.jsx)("p",{className:"truncate text-[12.5px] font-medium text-[#1E1B1A]",children:e.name}),(0,r.jsx)("p",{className:"text-[10.5px] text-[#1E1B1A]/50",children:e.category})]})]}),(0,r.jsx)("p",{className:"mt-2 line-clamp-2 text-[11.5px] leading-[1.45] text-[#1E1B1A]/65",children:e.text}),(0,r.jsxs)("div",{className:"mt-auto flex items-center gap-1.5 pt-3",children:[e.apps.map(function(e){return(0,r.jsx)(b.Logo,{app:e,size:13},e)}),(0,r.jsx)("button",{type:"button",onClick:function(){return l("Set up the ".concat(e.name," template for my team"))},className:"ml-auto rounded-md border border-[#E8E4E2] px-2 py-0.5 text-[10.5px] text-[#1E1B1A] hover:bg-[#F3F0EE]",children:"Use template"})]})]},e.name)})})]})})}function ev(){var e=(0,b.useTour)();return(0,r.jsxs)("div",{className:"flex h-full flex-col",children:[(0,r.jsx)("div",{className:"flex shrink-0 items-center gap-2 border-b border-[#E8E4E2] px-3 py-2",children:(0,r.jsx)("div",{className:"flex overflow-x-auto rounded-lg bg-[#F3F0EE] p-0.5",children:[["Agents",ed.Bot],["Knowledge Hub",eo.BookOpen],["Triggers",eE.Zap],["Connected Apps",p.LayoutGrid]].map(function(e,t){var a=(0,s._)(e,2),n=a[0],i=a[1];return(0,r.jsxs)("span",{className:(0,h.cn)("flex shrink-0 items-center gap-1.5 rounded-md px-2 py-1 text-[11px]",0===t?"bg-white text-[#1E1B1A] shadow-sm":"text-[#1E1B1A]/60"),children:[(0,r.jsx)(i,{className:"size-3","aria-hidden":!0})," ",n]},n)})})}),(0,r.jsxs)("div",{className:"flex-1 overflow-y-auto px-3 py-3 md:px-4",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsxs)("span",{className:"flex w-full max-w-[260px] items-center gap-1.5 rounded-md border border-[#E8E4E2] bg-white px-2 py-1.5 text-[11px] text-[#1E1B1A]/40",children:[(0,r.jsx)(K.Search,{className:"size-3","aria-hidden":!0})," Search agentsâ¦"]}),(0,r.jsxs)("span",{className:"ml-auto hidden items-center gap-1 rounded-md border border-[#E8E4E2] px-2 py-1 text-[11px] text-[#1E1B1A] sm:flex",children:[(0,r.jsx)(em.default,{className:"size-3","aria-hidden":!0})," Import"]}),(0,r.jsxs)("span",{className:"hidden gap-0.5 sm:flex",children:[(0,r.jsx)("span",{className:"grid size-6 place-items-center rounded-md text-[#1E1B1A]/50",children:(0,r.jsx)(p.LayoutGrid,{className:"size-3.5","aria-hidden":!0})}),(0,r.jsx)("span",{className:"grid size-6 place-items-center rounded-md bg-[#F3F0EE] text-[#1E1B1A]",children:(0,r.jsx)(eb.default,{className:"size-3.5","aria-hidden":!0})})]}),(0,r.jsxs)("button",{type:"button",onClick:function(){return e.go("marketplace")},className:"inline-flex shrink-0 items-center gap-1 rounded-md bg-[#1E1B1A] px-2.5 py-1.5 text-[11px] font-medium text-white max-sm:ml-auto",children:[(0,r.jsx)(m.Plus,{className:"size-3.5","aria-hidden":!0})," New Agent"]})]}),(0,r.jsx)("div",{className:"mt-3 overflow-x-auto rounded-xl border border-[#E8E4E2] bg-white",children:(0,r.jsxs)("table",{className:"w-full min-w-[560px] text-left",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{className:"border-b border-[#E8E4E2] text-[10.5px] text-[#1E1B1A]/55",children:[(0,r.jsx)("th",{className:"w-10 px-3 py-2 font-normal",children:"Star"}),(0,r.jsx)("th",{className:"px-2 py-2 font-normal",children:"Name"}),(0,r.jsx)("th",{className:"px-2 py-2 font-normal",children:"Tools"}),(0,r.jsx)("th",{className:"hidden px-2 py-2 font-normal md:table-cell",children:"Category"}),(0,r.jsx)("th",{className:"px-2 py-2 font-normal",children:"Last Run At"})]})}),(0,r.jsx)("tbody",{children:g.AGENTS.map(function(t){return(0,r.jsxs)("tr",{onClick:function(){return e.openAgent(t.id,"build")},className:"cursor-pointer border-b border-[#E8E4E2] last:border-0 hover:bg-[#FBF9F9]",children:[(0,r.jsx)("td",{className:"px-3 py-2",children:(0,r.jsx)(eg.Star,{className:"size-3.5 text-[#1E1B1A]/35","aria-hidden":!0})}),(0,r.jsx)("td",{className:"px-2 py-2",children:(0,r.jsxs)("button",{type:"button",className:"flex min-w-0 items-center gap-2 text-left",onClick:function(){return e.openAgent(t.id,"build")},children:[(0,r.jsx)(b.Avatar,{src:t.avatar,size:26}),(0,r.jsxs)("span",{className:"min-w-0",children:[(0,r.jsxs)("span",{className:"flex flex-wrap items-center gap-x-1.5",children:[(0,r.jsx)("span",{className:"text-[12px] font-medium text-[#1E1B1A]",children:t.name}),(0,r.jsxs)("span",{className:"hidden text-[10.5px] text-[#1E1B1A]/50 lg:inline",children:["Run by ",t.persona,", ",t.role]}),(0,r.jsx)(ey,{status:t.status})]}),(0,r.jsx)("span",{className:"block max-w-[340px] truncate text-[10.5px] text-[#1E1B1A]/55",children:t.description})]})]})}),(0,r.jsx)("td",{className:"px-2 py-2",children:(0,r.jsx)("span",{className:"flex gap-1",children:t.apps.map(function(e){return(0,r.jsx)(b.Logo,{app:e,size:13},e)})})}),(0,r.jsx)("td",{className:"hidden px-2 py-2 text-[11.5px] text-[#1E1B1A] md:table-cell",children:t.category}),(0,r.jsx)("td",{className:"px-2 py-2 text-[11.5px] text-[#1E1B1A]",children:t.lastRun})]},t.id)})})]})})]})]})}function ey(e){var t="live"===e.status;return(0,r.jsxs)("span",{className:(0,h.cn)("inline-flex items-center gap-1 rounded px-1 py-px text-[9px] font-semibold uppercase tracking-[0.04em]",t?"bg-emerald-50 text-emerald-700":"bg-amber-50 text-amber-700"),children:[(0,r.jsx)("span",{className:(0,h.cn)("size-1 rounded-full",t?"bg-emerald-500":"bg-amber-500")}),t?"Published":"Unpublished"]})}
1var eN={id:"__new",name:"Lead Briefing Agent",persona:"Nora",role:"Research Analyst",avatar:"/images/app-tour/avatars/avatar_5.svg",description:"Researches each new lead and writes a one-page brief to HubSpot.",status:"draft",apps:["hubspot","web"],category:"Sales",lastRun:"Never",trigger:"New HubSpot contact"};function ek(){var e=(0,b.useTour)(),t="__new"===e.agentId?eN:(0,g.agentById)(e.agentId);return(0,r.jsxs)("div",{className:"flex h-full",children:[(0,r.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col",children:[(0,r.jsxs)("div",{className:"flex h-11 shrink-0 items-center gap-2 border-b border-[#E8E4E2] px-3",children:[(0,r.jsx)("div",{className:"flex rounded-lg bg-[#F3F0EE] p-0.5",children:[["build","Build",ex.Hammer],["run","Run",eu.Play]].map(function(t){var a=(0,s._)(t,3),n=a[0],i=a[1],l=a[2];return(0,r.jsxs)("button",{type:"button",onClick:function(){return e.setAgentTab(n)},"aria-pressed":e.agentTab===n,className:(0,h.cn)("flex items-center gap-1 rounded-md px-2 py-0.5 text-[11px]",e.agentTab===n?"bg-white text-[#1E1B1A] shadow-sm":"text-[#1E1B1A]/55"),children:[(0,r.jsx)(l,{className:"size-3","aria-hidden":!0})," ",i]},n)})}),(0,r.jsxs)("div",{className:"mx-auto flex min-w-0 items-center gap-1.5",children:[(0,r.jsx)(b.Avatar,{src:t.avatar,size:20}),(0,r.jsx)("span",{className:"truncate text-[12px] font-medium text-[#1E1B1A]",children:t.name}),(0,r.jsx)(ey,{status:"live"===t.status?"live":"draft"})]}),(0,r.jsx)("span",{className:"w-[86px] max-sm:hidden"})]}),"build"===e.agentTab?(0,r.jsx)(eA,{agent:t},"b-".concat(t.id,"-").concat(e.neoPrompt)):(0,r.jsx)(ew,{agent:t},"r-".concat(t.id))]}),(0,r.jsx)(eS,{agent:t})]})}function eA(e){var t,a=e.agent,s=(0,b.useTour)(),n="__new"===a.id,i=n?null!=(t=s.neoPrompt)?t:"Create an agent that researches leads":"I want an agent for this: ".concat(a.description),l=[{kind:"step",text:"Loaded a skill and searched the tool catalog 2 times."},{kind:"text",text:"I can build that. I'll call it **".concat(a.name,"** and give it ").concat(a.apps.length>1?"two apps":"one app"," to work with.")},{kind:"connect",text:""},{kind:"step",text:"Updated the agent."},{kind:"text",text:"Trigger set: **".concat(a.trigger,"**. Anything that sends or posts on your behalf will **require your approval**.")},{kind:"step",text:"Used Update Instructions."},{kind:"text",text:"Done. **".concat(a.name,"** is ready. Switch to **Run** to try it, or tell me what to change.")}],o=(0,b.useStagger)(l.length,750*!!n,i,s.reduced||!n);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"flex-1 overflow-y-auto px-4 py-5 md:px-8",children:(0,r.jsxs)("div",{className:"mx-auto max-w-[560px] space-y-3",children:[(0,r.jsx)("div",{className:"flex justify-end",children:(0,r.jsx)("p",{className:"max-w-[85%] rounded-xl bg-[#F3F0EE] px-3 py-2 text-[12px] leading-[1.5] text-[#1E1B1A]",children:i})}),l.slice(0,o).map(function(e,t){return"step"===e.kind?(0,r.jsxs)("p",{className:(0,h.cn)(z.default.rise,"flex items-center gap-1 text-[11px] text-[#1E1B1A]/55"),children:[e.text," ",(0,r.jsx)(W.ChevronRight,{className:"size-3","aria-hidden":!0})]},t):"connect"===e.kind?(0,r.jsxs)("div",{className:(0,h.cn)(z.default.rise,"flex items-center gap-2 rounded-lg border border-[#E8E4E2] bg-white px-3 py-2"),children:[(0,r.jsx)("span",{className:"flex gap-1",children:a.apps.map(function(e){return(0,r.jsx)(b.Logo,{app:e,size:14},e)})}),(0,r.jsx)("span",{className:"flex-1 text-[11.5px] text-[#1E1B1A]",children:"Connect the apps this agent needs"}),(0,r.jsxs)("span",{className:"inline-flex items-center gap-1 text-[10.5px] font-medium text-emerald-700",children:[(0,r.jsx)(B.CircleCheck,{className:"size-3.5","aria-hidden":!0})," Connected"]})]},t):(0,r.jsx)("p",{className:(0,h.cn)(z.default.rise,"text-[12.5px] leading-[1.6] text-[#1E1B1A]"),children:(0,r.jsx)(b.Rich,{text:e.text})},t)}),(0,r.jsx)("div",{className:"pt-1",children:o>=l.length?(0,r.jsx)(b.WorkingDots,{label:"NEO is ready for your next message."}):(0,r.jsx)(b.WorkingDots,{label:"NEO is buildingâ¦"})})]})}),(0,r.jsx)(eB,{placeholder:"Ask to automate anythingâ¦"})]})}function ew(e){var t=e.agent,a=(0,b.useTour)(),n=(0,s._)((0,i.useState)(null),2),l=n[0],o=n[1],d=(0,s._)((0,i.useState)(null),2),c=d[0],p=d[1],x={steps:t.apps.map(function(e,t){return{app:e,label:0===t?"Fetching the latest":"Checking context"}}),reply:[{kind:"p",text:"Here's what I found, Alex. I've drafted the next step â it's waiting for your approval."},{kind:"callout",text:"**Needs approval:** ".concat(t.apps.includes("slack")?"Slack · Send Message":t.apps.includes("hubspot")?"HubSpot · Update Contact":"Gmail · Send Email")}]},m=(0,b.useStagger)(l?x.steps.length:0,600,l,a.reduced),u=(0,s._)((0,i.useState)(!1),2),g=u[0],f=u[1];(0,i.useEffect)(function(){if(l&&!(m<x.steps.length)){var e=window.setTimeout(function(){return f(!0)},300*!a.reduced);return function(){return window.clearTimeout(e)}}},[l,m,x.steps.length,a.reduced]);var E=(0,b.useStagger)(g?x.reply.length:0,400,"".concat(l,"-").concat(g),a.reduced),j=[{title:"Run it now",text:"".concat(t.description.split(".")[0],".")},{title:"What did you do last time?",text:"Summarise your last run and anything you skipped."}];return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"flex-1 overflow-y-auto px-4 py-5 md:px-8",children:(0,r.jsx)("div",{className:"mx-auto max-w-[560px]",children:l?(0,r.jsxs)("div",{className:"space-y-3",children:[(0,r.jsx)("div",{className:"flex justify-end",children:(0,r.jsx)("p",{className:"max-w-[85%] rounded-xl bg-[#F3F0EE] px-3 py-2 text-[12px] text-[#1E1B1A]",children:l})}),(0,r.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,r.jsx)(b.Avatar,{src:t.avatar,size:18}),(0,r.jsx)("span",{className:"text-[11.5px] font-medium text-[#1E1B1A]",children:t.persona})]}),(0,r.jsx)("div",{className:"space-y-1",children:x.steps.slice(0,m).map(function(e,t){return(0,r.jsxs)("p",{className:(0,h.cn)(z.default.rise,"flex items-center gap-2 text-[11.5px] text-[#1E1B1A]"),children:[(0,r.jsx)(b.Logo,{app:e.app,size:13})," ",e.label,(0,r.jsx)(B.CircleCheck,{className:"ml-auto size-3.5 text-emerald-600","aria-hidden":!0})]},t)})}),(0,r.jsx)(b.ReplyBlocks,{blocks:x.reply,shown:E}),E>=x.reply.length?c?(0,r.jsxs)("p",{className:(0,h.cn)(z.default.rise,"flex items-center gap-1.5 text-[11.5px] text-[#1E1B1A]/70"),children:[(0,r.jsx)(eh.ShieldCheck,{className:"size-3.5 text-emerald-600","aria-hidden":!0}),"approved"===c?"Approved â done. Logged in the run history.":"Declined â nothing was sent."]}):(0,r.jsxs)("div",{className:(0,h.cn)(z.default.rise,"flex gap-2"),children:[(0,r.jsx)("button",{type:"button",onClick:function(){return p("approved")},className:"rounded-md bg-[#1E1B1A] px-2.5 py-1.5 text-[11.5px] font-medium text-white",children:"Approve"}),(0,r.jsx)("button",{type:"button",onClick:function(){return p("declined")}
1,className:"rounded-md border border-[#E8E4E2] px-2.5 py-1.5 text-[11.5px] text-[#1E1B1A]",children:"Decline"})]}):(0,r.jsx)(b.WorkingDots,{label:"".concat(t.persona," is workingâ¦")})]}):(0,r.jsxs)("div",{className:z.default.fade,children:[(0,r.jsx)(b.Avatar,{src:t.avatar,size:36}),(0,r.jsx)("p",{className:"mt-2 text-[22px] font-semibold tracking-[-0.01em] text-[#1E1B1A]",children:t.persona}),(0,r.jsxs)("p",{className:"mt-0.5 flex items-center gap-1 text-[11px] text-[#1E1B1A]/60",children:[(0,r.jsx)(ed.Bot,{className:"size-3","aria-hidden":!0})," ",t.name]}),(0,r.jsx)("p",{className:"mt-1 text-[12px] leading-[1.5] text-[#1E1B1A]/70",children:t.description}),(0,r.jsx)("div",{className:"mt-2 flex gap-1.5",children:t.apps.map(function(e){return(0,r.jsx)("span",{className:"grid size-6 place-items-center rounded-full border border-[#E8E4E2] bg-white",children:(0,r.jsx)(b.Logo,{app:e,size:12})},e)})}),(0,r.jsx)("p",{className:"mt-5 text-[13px] font-medium text-[#1E1B1A]",children:"Suggested prompts"}),(0,r.jsx)("div",{className:"mt-2 grid grid-cols-1 gap-2 sm:grid-cols-2",children:j.map(function(e){return(0,r.jsxs)("button",{type:"button",onClick:function(){return o(e.text)},className:"rounded-xl border border-[#E8E4E2] bg-white p-2.5 text-left hover:border-[#1E1B1A]/25",children:[(0,r.jsx)(K.Search,{className:"size-3.5 text-[#1E1B1A]/50","aria-hidden":!0}),(0,r.jsx)("span",{className:"mt-1.5 block text-[11.5px] font-medium text-[#1E1B1A]",children:e.title}),(0,r.jsx)("span",{className:"mt-1 line-clamp-2 block text-[10.5px] leading-[1.45] text-[#1E1B1A]/60",children:e.text})]},e.title)})})]})})}),(0,r.jsx)(eB,{placeholder:"Message ".concat(t.persona,"â¦"),onSend:function(e){return o(e)}})]})}function eB(e){var t=e.placeholder,a=e.onSend,n=(0,s._)((0,i.useState)(""),2),l=n[0],o=n[1];return(0,r.jsx)("form",{onSubmit:function(e){e.preventDefault(),l.trim()&&a&&a(l.trim()),o("")},className:"shrink-0 px-4 pb-4 md:px-8",children:(0,r.jsxs)("div",{className:"mx-auto flex max-w-[580px] items-end gap-2 rounded-xl border border-[#E8E4E2] bg-white p-2.5 focus-within:border-[#1E1B1A]/30",children:[(0,r.jsxs)("div",{className:"flex-1",children:[(0,r.jsx)("label",{className:"sr-only",htmlFor:"tour-chat-".concat(t),children:t}),(0,r.jsx)("input",{id:"tour-chat-".concat(t),value:l,onChange:function(e){return o(e.target.value)},placeholder:t,autoComplete:"off",className:"w-full bg-transparent text-[12px] text-[#1E1B1A] outline-none placeholder:text-[#1E1B1A]/40"}),(0,r.jsx)(v.Paperclip,{className:"mt-3 size-3.5 text-[#1E1B1A]/45","aria-hidden":!0})]}),(0,r.jsx)("button",{type:"submit","aria-label":"Send",className:"grid size-6 place-items-center rounded-full border border-[#E8E4E2] text-[#1E1B1A]/60 hover:bg-[#1E1B1A] hover:text-white",children:(0,r.jsx)(f.ArrowUp,{className:"size-3.5"})})]})})}function eS(e){var t=e.agent,a=(0,s._)((0,i.useState)(function(){return new Set(["prefs","apps"])}),2),n=a[0],o=a[1],d="live"===t.status,c=[{key:"prefs",label:"Agent Preferences",body:(0,r.jsx)("p",{className:"rounded-lg border border-[#E8E4E2] bg-white p-2.5 text-[11px] leading-[1.5] text-[#1E1B1A]/80",children:"You are ".concat(t.persona,", the team's ").concat(t.role.toLowerCase(),". ").concat(t.description," Always ask before sending anything on the user's behalf.")})},{key:"vars",label:"Variables",badge:"1",body:(0,r.jsx)(eT,{k:"{{recipient_email}}",v:"[email protected]"})},{key:"triggers",label:"Triggers",action:"+ Trigger",body:(0,r.jsx)(eT,{k:t.trigger.includes("New")?"Event":"Schedule",v:t.trigger})},{key:"apps",label:"Apps",action:"+ App",body:(0,r.jsx)("div",{className:"space-y-1.5",children:t.apps.map(function(e){var t=ez[e];return(0,r.jsxs)("div",{className:"rounded-lg border border-[#E8E4E2] bg-white px-2.5 py-2",children:[(0,r.jsxs)("p",{className:"flex items-center gap-1.5 text-[11.5px] font-medium text-[#1E1B1A]",children:[(0,r.jsx)(b.Logo,{app:e,size:13})," ",t.name]}),(0,r.jsxs)("p",{className:"mt-1 flex items-center justify-between gap-2 text-[10.5px] text-[#1E1B1A]/60",children:[(0,r.jsx)("span",{className:"truncate",children:t.action}),(0,r.jsx)("span",{className:(0,h.cn)("shrink-0 rounded px-1 py-px",eC[t.approval]),children:t.approval})]})]},e)})})},{key:"team",label:"Team"},{key:"skills",label:"Skills"},{key:"knowledge",label:"Knowledge",action:"+ Source"},{key:"settings",label:"Settings",action:"Edit"}];return(0,r.jsxs)("aside",{className:"hidden w-[250px] shrink-0 flex-col border-l border-[#
1E8E4E2] bg-[#FDFCFC] lg:flex",children:[(0,r.jsxs)("div",{className:"flex h-11 shrink-0 items-center gap-3 border-b border-[#E8E4E2] px-3 text-[11.5px]",children:[(0,r.jsxs)("span",{className:"flex items-center gap-1 border-b-2 border-[#1E1B1A] py-[11px] text-[#1E1B1A]",children:[(0,r.jsx)(ed.Bot,{className:"size-3.5","aria-hidden":!0})," Agent"]}),(0,r.jsxs)("span",{className:"flex items-center gap-1 text-[#1E1B1A]/55",children:[(0,r.jsx)(Y.Sparkles,{className:"size-3.5","aria-hidden":!0})," Settings"]})]}),(0,r.jsxs)("div",{className:"flex-1 overflow-y-auto",children:[(0,r.jsxs)("div",{className:"flex items-center gap-1.5 border-b border-[#E8E4E2] px-3 py-2 text-[10.5px] text-[#1E1B1A]/65",children:[(0,r.jsx)("span",{className:(0,h.cn)("size-1.5 rounded-full",d?"bg-emerald-500":"bg-amber-500")}),d?"Published and accepting messages":"Draft â not published yet",(0,r.jsxs)("span",{className:"ml-auto inline-flex items-center gap-1 rounded-md border border-[#E8E4E2] px-1.5 py-0.5 text-[10px] text-[#1E1B1A]",children:[(0,r.jsx)(ep.FlaskConical,{className:"size-3","aria-hidden":!0})," Test"]})]}),c.map(function(e){return(0,r.jsxs)("div",{className:"border-b border-[#E8E4E2]",children:[(0,r.jsxs)("button",{type:"button",onClick:function(){var t;return e.body&&(t=e.key,o(function(e){var a=new Set(e);return a.has(t)?a.delete(t):a.add(t),a}))},className:"flex w-full items-center gap-1.5 px-3 py-2.5 text-left text-[11.5px] text-[#1E1B1A]",children:[n.has(e.key)&&e.body?(0,r.jsx)(l.ChevronDown,{className:"size-3 text-[#1E1B1A]/50","aria-hidden":!0}):(0,r.jsx)(W.ChevronRight,{className:"size-3 text-[#1E1B1A]/50","aria-hidden":!0}),e.label,e.badge?(0,r.jsx)("span",{className:"text-[10px] text-[#1E1B1A]/50",children:e.badge}):null,e.action?(0,r.jsx)("span",{className:"ml-auto rounded-md border border-[#E8E4E2] px-1.5 py-px text-[10px] text-[#1E1B1A]",children:e.action}):null]}),n.has(e.key)&&e.body?(0,r.jsx)("div",{className:(0,h.cn)(z.default.fade,"px-3 pb-3"),children:e.body}):null]},e.key)})]})]})}var eC={"No approval required":"bg-[#F3F0EE]","Agent decides":"bg-blue-50 text-blue-700","Requires approval":"bg-amber-50 text-amber-700"},ez={gmail:{name:"Gmail",action:"Send Email",approval:"Requires approval"},slack:{name:"Slack",action:"Send Message",approval:"Requires approval"},hubspot:{name:"HubSpot",action:"Update Contact",approval:"Agent decides"},sheets:{name:"Google Sheets",action:"Read Rows",approval:"No approval required"},drive:{name:"Google Drive",action:"Search Files",approval:"No approval required"},zendesk:{name:"Zendesk",action:"Update Ticket",approval:"Agent decides"},quickbooks:{name:"QuickBooks",action:"List Invoices",approval:"No approval required"},notion:{name:"Notion",action:"Search Pages",approval:"No approval required"},jira:{name:"Jira",action:"Search Issues",approval:"No approval required"},linkedin:{name:"LinkedIn",action:"Get Profile",approval:"No approval required"},calendar:{name:"Google Calendar",action:"Find Events",approval:"No approval required"},analytics:{name:"Google Analytics",action:"Run Report",approval:"No approval required"},web:{name:"Web Search",action:"Search the web",approval:"No approval required"}};function eT(e){var t=e.k,a=e.v;return(0,r.jsxs)("p",{className:"flex items-center justify-between gap-2 rounded-lg border border-[#E8E4E2] bg-white px-2.5 py-2 text-[10.5px]",children:[(0,r.jsx)("span",{className:"font-mono text-[#1E1B1A]/60",children:t}),(0,r.jsx)("span",{className:"truncate text-[#1E1B1A]",children:a})]})}var eF=[{key:"home",label:"Home",hint:"Click any agent card, or type a question for Assist."},{key:"assist",label:"Assist",hint:"Pick a prompt card and watch Assist use your apps step by step."},{key:"agents",label:"Agents",hint:"Open an agent to see how NEO built it, then switch to Run."},{key:"desk",label:"Desk",hint:"Approve or decline what your agents want to send."},{key:"tasks",label:"Tasks",hint:"Hit âNew taskâ and hand it to an agent, or switch to Mine."},{key:"marketplace",label:"Marketplace",hint:"Describe an agent and hit Create to watch NEO build it."}],eP={home:"home",tasks:"tasks",desk:"inbox",assist:"assist",marketplace:"agents/marketplace",agents:"agents",agent:"agents"};function e_(){var e=(0,b.useTour)(),t=[{key:"home",label:"Home",icon:(0,r.jsx)(o.Home,{className:"size-4","aria-hidden":!0})},{key:"assist",label:"Assist",icon:(0,r.jsx)(b.Avatar,{src:g.ASSIST_AVATAR,size:16})},{key:"agents",label:"Agents",icon:(0,r.jsx)(u.Users,{className:"size-4","aria-hidden":!0})},{key:"desk",label:"Desk",icon:(0,r.jsx)(d.Inbox,{className:"size-4","aria-hidden":!0})},{key:"tasks",label:"Tasks",icon:(0,r.jsx)(c.Kanban,{className:"size-4","aria-hidden":!0})},{key:"marketplace",label:"Market",icon:(0,r.jsx)(p.LayoutGrid,{className:"size-4","aria-hidden":!0})}];return(0,r.jsx)("nav",{"aria-label":"App screens",className:"grid grid-cols-6 border-b border-[#
1E8E4E2] bg-[#FBF9F9] md:hidden",children:t.map(function(t){var a=e.view===t.key||"agents"===t.key&&"agent"===e.view;return(0,r.jsxs)("button",{type:"button",onClick:function(){"assist"===t.key&&e.setAssistPanel("chat"),e.go(t.key)},"aria-current":a?"page":void 0,className:(0,h.cn)("relative flex flex-col items-center gap-0.5 py-1.5 text-[9.5px] text-[#1E1B1A]/60",a&&"bg-[#F3F0EE] font-medium text-[#1E1B1A]"),children:[t.icon,t.label,"desk"===t.key&&e.desk.length>0?(0,r.jsx)("span",{className:"absolute right-[18%] top-1 rounded bg-[#1E1B1A] px-1 text-[8.5px] font-medium leading-[1.4] text-white",children:e.desk.length}):null]},t.key)})})}function eI(e){var t=e.compact,a=(0,b.useTour)(),s=[{key:"home",label:"Home",icon:(0,r.jsx)(o.Home,{className:"size-3.5","aria-hidden":!0})},{key:"tasks",label:"Tasks",icon:(0,r.jsx)(c.Kanban,{className:"size-3.5","aria-hidden":!0})},{key:"desk",label:"Desk",icon:(0,r.jsx)(d.Inbox,{className:"size-3.5","aria-hidden":!0})},{key:"assist",label:"Assist",icon:(0,r.jsx)(b.Avatar,{src:g.ASSIST_AVATAR,size:15})}],i=[{key:"marketplace",label:"Marketplace",icon:(0,r.jsx)(p.LayoutGrid,{className:"size-3.5","aria-hidden":!0})},{key:"agents",label:"My Agents",icon:(0,r.jsx)(u.Users,{className:"size-3.5","aria-hidden":!0})}],f=function(e){return a.view===e||"agents"===e&&"agent"===a.view};return t?(0,r.jsxs)("nav",{"aria-label":"App navigation",className:"hidden w-11 shrink-0 flex-col items-center gap-1 border-r border-[#E8E4E2] bg-[#FBF9F9] py-2.5 md:flex",children:[(0,r.jsx)("img",{src:"/logo-icon.svg",alt:"DeskFerry",className:"mb-2 size-4",draggable:!1}),(0,n._)(s).concat((0,n._)(i)).map(function(e){return(0,r.jsx)("button",{type:"button","aria-label":e.label,title:e.label,onClick:function(){return a.go(e.key)},className:(0,h.cn)("grid size-7 place-items-center rounded-md text-[#1E1B1A]/70 hover:bg-[#F3F0EE]",f(e.key)&&"bg-[#F3F0EE] text-[#1E1B1A]"),children:e.icon},e.key)}),(0,r.jsx)("span",{className:"mt-auto grid size-6 place-items-center rounded-full bg-[#F3F0EE] text-[9px] font-medium",children:"AK"})]}):(0,r.jsxs)("nav",{"aria-label":"App navigation",className:"hidden w-[196px] shrink-0 flex-col border-r border-[#E8E4E2] bg-[#FBF9F9] md:flex",children:[(0,r.jsxs)("div",{className:"flex items-center px-3 pb-2 pt-3",children:[(0,r.jsx)("img",{src:"/logo-lockup.svg",alt:"DeskFerry",className:"h-[15px] w-auto",draggable:!1}),(0,r.jsx)(x.PanelLeft,{className:"ml-auto size-3.5 text-[#1E1B1A]/50","aria-hidden":!0})]}),(0,r.jsx)("div",{className:"space-y-px px-2",children:s.map(function(e){return(0,r.jsx)(eR,{on:f(e.key),onClick:function(){return a.go(e.key)},icon:e.icon,label:e.label,children:"desk"===e.key&&a.desk.length>0?(0,r.jsx)("span",{className:"ml-auto rounded bg-[#1E1B1A] px-1 text-[9.5px] font-medium text-white",children:a.desk.length}):null},e.key)})}),(0,r.jsxs)("div",{className:"mt-3 flex items-center px-4 text-[10.5px] font-medium text-[#1E1B1A]/60",children:["Agents",(0,r.jsx)("button",{type:"button","aria-label":"New agent",onClick:function(){return a.go("marketplace")},className:"ml-auto text-[#1E1B1A]/60 hover:text-[#1E1B1A]",children:(0,r.jsx)(m.Plus,{className:"size-3.5"})})]}),(0,r.jsxs)("div",{className:"mt-1 space-y-px px-2",children:[i.map(function(e){return(0,r.jsx)(eR,{on:f(e.key)&&"agent"!==a.view,onClick:function(){return a.go(e.key)},icon:e.icon,label:e.label},e.key)}),g.AGENTS.map(function(e){return(0,r.jsx)(eR,{on:"agent"===a.view&&a.agentId===e.id,onClick:function(){return a.openAgent(e.id,"run")},icon:(0,r.jsx)(b.Avatar,{src:e.avatar,size:15}),label:e.name,children:(0,r.jsx)("span",{className:(0,h.cn)("ml-auto size-[7px] shrink-0 rounded-full","live"===e.status?"bg-emerald-500":"border border-[#1E1B1A]/40")})},e.id)})]}),(0,r.jsxs)("div",{className:"mt-auto flex items-center gap-2 border-t border-[#E8E4E2] px-3 py-2.5",children:[(0,r.jsx)("span",{className:"grid size-6 place-items-center rounded-full bg-[#F3F0EE] text-[9px] font-medium",children:"AK"}),(0,r.jsxs)("span",{className:"min-w-0 leading-tight",children:[(0,r.jsx)("span",{className:"block text-[11px] font-medium",children:"Alex Kim"}),(0,r.jsx)("span",{className:"block truncate text-[10px] text-[#1E1B1A]/55",children:"[email protected]"})]}),(0,r.jsx)(l.ChevronDown,{className:"ml-auto size-3 text-[#1E1B1A]/45","aria-hidden":!0})]})]})}function eR(e){var t=e.on,a=e.onClick,s=e.icon,n=e.label,i=e.children;return(0,r.jsxs)("button",{type:"button",onClick:a,"aria-current":t?"page":void 0,className:(0,h.cn)("flex w-full items-center gap-2 rounded-md px-2 py-[5px] text-left text-[11.5px] text-[#1E1B1A]/80 transition-colors hover:bg-[#F3F0EE]",t&&"bg-[#F3F0EE] font-medium text-[#1E1B1A]"),children:[(0,r.jsx)("span",{className:"grid w-4 shrink-0 place-items-center text-[#1E1B1A]/70",children:s}),(0,r.jsx)("span",{className:"truncate",children:n}),i]})}e.s(["AppTour",0,function(){var e,l,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
1,d=o.narrow,c=void 0!==d&&d,p=(0,b.usePrefersReducedMotion)(),x=(0,s._)((0,i.useState)("tasks"),2),m=x[0],u=x[1],h=(0,s._)((0,i.useState)(g.AGENTS[0].id),2),f=h[0],E=h[1],j=(0,s._)((0,i.useState)("build"),2),v=j[0],y=j[1],N=(0,s._)((0,i.useState)(g.DESK_ITEMS),2),k=N[0],w=N[1],B=(0,s._)((0,i.useState)([]),2),S=B[0],C=B[1],z=(0,s._)((0,i.useState)(g.TASKS),2),F=z[0],P=z[1],_=(0,s._)((0,i.useState)(null),2),I=_[0],M=_[1],D=(0,s._)((0,i.useState)(null),2),L=D[0],H=D[1],W=(0,s._)((0,i.useState)("chat"),2),G=W[0],U=W[1],O=(0,s._)((0,i.useState)(null),2),q=O[0],K=O[1],V=(0,i.useCallback)(function(e,s){var r=k.find(function(t){return t.id===e});r&&(w(function(t){return t.filter(function(t){return t.id!==e})}),C(function(t){return[{item:r,outcome:s}].concat((0,n._)(t.filter(function(t){return t.item.id!==e})))}),"d1"===e&&P(function(e){return e.map(function(e){return"m3"===e.id?(0,a._)((0,t._)({},e),{column:"done",when:"just now"}):e})}))},[k]),Y=(0,i.useMemo)(function(){return{view:m,go:function(e){return u(e)},agentId:f,openAgent:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"build";E(e),y(t),u("agent")},agentTab:v,setAgentTab:y,desk:k,resolved:S,resolveDesk:V,tasks:F,addTask:function(e){return P(function(t){return[e].concat((0,n._)(t))})},assistScript:I,assistText:L,startAssist:function(e,t){M(e),H(e?null:null!=t?t:null),U("chat"),u("assist")},assistPanel:G,setAssistPanel:U,neoPrompt:q,setNeoPrompt:K,reduced:p,narrow:c}},[m,f,v,k,S,V,F,I,L,G,q,p,c]),J="agent"===m?"agents":m,Z=null!=(e=null==(l=eF.find(function(e){return e.key===J}))?void 0:l.hint)?e:"";return(0,r.jsxs)(b.TourCtx.Provider,{value:Y,children:[(0,r.jsxs)("div",{className:"overflow-hidden rounded-xl border border-neutral-300 bg-white text-left shadow-[0_24px_60px_-28px_rgba(32,30,29,0.35)]",children:[(0,r.jsxs)("div",{className:"flex h-9 items-center gap-3 border-b border-neutral-200 bg-neutral-50 px-3",children:[(0,r.jsxs)("span",{className:"flex gap-1.5","aria-hidden":!0,children:[(0,r.jsx)("span",{className:"size-2.5 rounded-full bg-neutral-300"}),(0,r.jsx)("span",{className:"size-2.5 rounded-full bg-neutral-300"}),(0,r.jsx)("span",{className:"size-2.5 rounded-full bg-neutral-300"})]}),(0,r.jsxs)("span",{className:"mx-auto max-w-[70%] truncate rounded-md border border-neutral-200 bg-white px-3 py-0.5 font-mono text-[10.5px] text-neutral-500",children:["deskferry.app/workspace/","agent"===m?"agents/".concat(f,"/").concat(v):eP[m]]}),(0,r.jsx)("span",{className:"hidden w-[42px] sm:block"})]}),(0,r.jsx)(e_,{}),(0,r.jsxs)("div",{className:"flex h-[560px] bg-[#FDFCFC] font-sans text-[#1E1B1A] md:h-[660px]",children:[(0,r.jsx)(eI,{compact:c||"assist"===m||"agent"===m||"agents"===m}),(0,r.jsxs)("div",{className:"relative min-w-0 flex-1",children:["home"===m&&(0,r.jsx)(A,{}),"tasks"===m&&(0,r.jsx)(T,{}),"desk"===m&&(0,r.jsx)(R,{}),"assist"===m&&(0,r.jsx)(Q,{}),"marketplace"===m&&(0,r.jsx)(ej,{}),"agents"===m&&(0,r.jsx)(ev,{}),"agent"===m&&(0,r.jsx)(ek,{})]})]})]}),(0,r.jsxs)("p",{className:"mt-5 flex items-start justify-center gap-2 text-center font-mono text-[12px] leading-[1.6] tracking-[0.02em] text-neutral-400","aria-live":"polite",children:[(0,r.jsx)("span",{className:"mt-[6px] size-2 shrink-0 rounded-[2px] bg-brand-accent","aria-hidden":!0}),(0,r.jsxs)("span",{children:[(0,r.jsxs)("span",{className:"text-neutral-600",children:["Try it: ",Z]})," Sample data, names are made up."]})]})]})}],102698)},373375,e=>{"use strict";var t=e.i(412012);e.s(["ChevronLeft",()=>t.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.