PageSourceSearch

https://www.volumn.ai/_next/static/chunks/40389.d49162cab76c8619.js

js volumn.ai collected 2026-10-01 16:18:55 UTC 30,024 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[40389],{14125:(e,t,n)=>{n.d(t,{A:()=>s});let s=(0,n(56059).A)("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]])},17372:(e,t,n)=>{n.d(t,{A:()=>s});let s=(0,n(56059).A)("pause",[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]])},18006:(e,t,n)=>{n.d(t,{A:()=>s});let s=(0,n(56059).A)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},24028:(e,t,n)=>{n.d(t,{A:()=>s});let s=(0,n(56059).A)("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]])},40389:(e,t,n)=>{n.r(t),n.d(t,{default:()=>z});var s=n(53757),r=n(24361),a=n(58428),d=n(14125),i=n(46870),l=n(18006),o=n(79428),c=n(65207);let x=(0,n(56059).A)("pen",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]]);var m=n(17372),u=n(24028),g=n(46303),h=n(57651);let b={en:{title:"Leads Agents",subtitle:"Manage your automated lead generation agents & signals",howItWorks:"HOW IT WORKS?",launchAgent:"Launch Agent",noAgentsTitle:"No AI Agents Yet",noAgentsDesc:"Get started by creating your first AI agent to automate lead generation.",createFirst:"Create Your First Agent",statusRunning:"Running",statusPaused:"Paused",statusDraft:"Draft",statusDone:"Done",statusError:"Error",leadsFound:"leads found",signalPosts:"From Posts & Users",signalInteractions:"From Interactions",deleteConfirm:"Delete this agent?",icpLabel:"ICP",productLabel:"Product",run:"Start",stop:"Pause",log:"Log",edit:"Edit",export:"Export",budget:"Budget",nextRun:"Next Run",notScheduled:"Not scheduled",exportSortBy:"Sort by",exportSortFollowers:"Followers (high → low)",exportSortMatch:"Match score (high → low)",exportFollowerRange:"Follower range",exportMin:"Min",exportMax:"Max",exportDownload:"Download CSV",addBudget:"+ Budget",addBudgetTitle:"Add Budget",addBudgetDesc:"Increase the total budget for this agent.",addBudgetAmount:"Add amount",addBudgetConfirm:"Confirm",addBudgetCancel:"Cancel",addBudgetCurrentBudget:"Current budget",addBudgetNewBudget:"New budget"},zh:{title:"销售线索 Agent",subtitle:"管理你的自动化线索生成 Agent 和信号",howItWorks:"如何运作?",launchAgent:"启动 Agent",noAgentsTitle:"暂无 AI Agent",noAgentsDesc:"创建你的第一个 AI Agent,开始自动化线索生成。",createFirst:"创建你的第一个 Agent",statusRunning:"运行中",statusPaused:"已暂停",statusDraft:"草稿",statusDone:"已完成",statusError:"出错",leadsFound:"条线索",signalPosts:"从推文/用户库",signalInteractions:"从互动中",deleteConfirm:"确认删除此 Agent?",icpLabel:"ICP",productLabel:"产品",run:"开始",stop:"暂停",log:"日志",edit:"编辑",export:"导出",budget:"预算",nextRun:"下次运行",notScheduled:"未设置定时",exportSortBy:"排序方式",exportSortFollowers:"粉丝数(从高到低)",exportSortMatch:"匹配度(从高到低)",exportFollowerRange:"粉丝数区间",exportMin:"最小值",exportMax:"最大值",exportDownload:"下载 CSV",addBudget:"+ 预算",addBudgetTitle:"增加预算",addBudgetDesc:"增加此 Agent 的总预算上限。",addBudgetAmount:"增加数量",addBudgetConfirm:"确认",addBudgetCancel:"取消",addBudgetCurrentBudget:"当前预算",addBudgetNewBudget:"新预算"}};function p(e){let{isOpen:t,onClose:n,uiLang:r}=e;if(!t||"u"<typeof document)return null;let i="zh"===r?{title:"Sales Leads 如何运作",subtitle:"通过真实信号识别购买意图,并按精准度分层交付可追溯线索。",close:"关闭",section1Title:"1: Detection by real signals",section1Desc:"我们不是只靠泛关键词抓用户,而是先从真实行为和真实内容里判断对方是否真的出现了购买意图。",section1A:"a. Competitor engagement",section1ADesc:"我们会观察用户与竞品账号、竞品相关讨论以及高相关主题内容的 engagement,识别哪些人正在主动关注、比较或接近购买这类产品。",section1B:"b. Library + 历史推文意图匹配",section1BDesc:"我们也会从你的账号 Library 中已经被索引过的账号出发,结合这些账号的历史推文内容,把用户表达出来的需求、痛点和目标与您的产品意图做匹配。",section2Title:"2: 分梯度线索定价以及可追溯的线索来源",section2Desc:"线索不是单一质量。我们会把结果从一般线索到高精准线索进行分层,让你按质量理解价值。",section2A:"从一般到精准的线索类型",section2ADesc:"你会看到不同梯度的线索类型,有些适合做广覆盖名单,有些则更适合优先触达和转化。",section2B:"精准线索可追溯来源",section2BDesc:"对于更精准的线索,我们甚至会告诉你这条意图æ
1˜¯ä»Žå“ªä¸€ç¯‡æŽ¨æ–‡è¯†åˆ«å‡ºæ¥çš„,方便你回看上下文、验证判断,并直接基于原始信号做跟进。",footer:"每条高质量线索都尽量做到“有信号依据、有来源上下文、能解释为什么值得联系”。"}:{title:"How Sales Leads Works",subtitle:"Detect buyer intent from real signals, then price and label leads by precision and traceability.",close:"Close",section1Title:"1: Detection by real signals",section1Desc:"We do not rely on broad keywords alone. We first look for real buying intent in real behavior and real content.",section1A:"a. Competitor engagement",section1ADesc:"We analyze engagement around competitor accounts, competitor-adjacent conversations, and highly relevant topic threads to identify people actively researching, comparing, or moving toward a purchase.",section1B:"b. Library + historical tweet intent matching",section1BDesc:"We also start from indexed accounts inside your Library and use their historical tweets to match expressed needs, pain points, and goals against your product intent.",section2Title:"2: Tiered lead pricing and traceable lead sources",section2Desc:"Not all leads have the same quality. We separate results from broader leads to highly precise leads so value is easier to understand.",section2A:"Lead types from broad to precise",section2ADesc:"Some leads are better for wide prospecting lists, while higher-precision leads are better for prioritized outreach and conversion work.",section2B:"Traceable sources for precise leads",section2BDesc:"For higher-precision leads, we can even show which tweet the intent was identified from, so you can review the context, validate the signal, and follow up from the original evidence.",footer:"The goal is simple: every strong lead should come with a clear signal, source context, and a reason it is worth contacting."};return(0,a.createPortal)((0,s.jsx)("div",{className:"fixed inset-0 z-[9000] flex items-center justify-center bg-black/50 p-4 backdrop-blur-sm",onClick:n,children:(0,s.jsxs)("div",{className:"relative w-full max-w-3xl overflow-hidden rounded-2xl bg-white shadow-2xl dark:bg-zinc-950",onClick:e=>e.stopPropagation(),children:[(0,s.jsxs)("div",{className:"flex items-start justify-between border-b border-zinc-100 px-6 pb-4 pt-6 dark:border-zinc-800",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"flex h-9 w-9 items-center justify-center rounded-xl bg-[#1343F0]/10",children:(0,s.jsx)(d.A,{className:"h-5 w-5 text-[#1343F0]"})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h2",{className:"text-lg font-bold text-zinc-900 dark:text-zinc-50",children:i.title}),(0,s.jsx)("p",{className:"mt-0.5 text-xs text-zinc-500 dark:text-zinc-400",children:i.subtitle})]})]}),(0,s.jsx)("button",{type:"button",onClick:n,"aria-label":i.close,className:"ml-4 rounded-lg p-1.5 text-zinc-400 transition-colors hover:bg-zinc-100 hover:text-zinc-600 dark:hover:bg-zinc-800 dark:hover:text-zinc-300",children:(0,s.jsx)("svg",{className:"h-5 w-5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 6l12 12M18 6L6 18"})})})]}),(0,s.jsx)("div",{className:"max-h-[70vh] overflow-y-auto px-6 py-5",children:(0,s.jsxs)("div",{className:"flex flex-col gap-5",children:[(0,s.jsxs)("div",{className:"overflow-hidden rounded-2xl border border-zinc-200 dark:border-zinc-800",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3 bg-gradient-to-r from-[#1343F0]/8 to-transparent px-5 py-4 dark:from-[#1343F0]/15",children:[(0,s.jsx)("div",{className:"flex h-10 w-10 items-center justify-center rounded-xl bg-[#1343F0] shadow-sm shadow-[#1343F0]/30",children:(0,s.jsx)("span",{className:"text-lg font-bold leading-none text-white",children:"1"})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"text-sm font-bold text-zinc-900 dark:text-zinc-50",children:i.section1Title}),(0,s.jsx)("p",{className:"mt-1 text-xs text-zinc-500 dark:text-zinc-400",children:i.section1Desc})]})]}),(0,s.jsxs)("div",{className:"space-y-4 px-5 py-4",children:[(0,s.jsxs)("div",{className:"rounded-xl bg-zinc-50 p-4 dark:bg-zinc-900",children:[(0,s.jsx)("div",{className:"text-sm font-semibold text-zinc-900 dark:text-zinc-50",children:i.section1A}),(0,s.jsx)("p",{className:"mt-1.5 text-sm leading-relaxed text-zinc-600 dark:text-zinc-400",children:i.section1ADesc})]}),(0,s.jsxs)("div",{className:"rounded-xl bg-zinc-50 p-4 dark:bg-zinc-900",children:[(0,s.jsx)("div",{className:"text-sm font-semibold text-zinc-900 dark:text-zinc-50",children:i.section1B}),(0,s.jsx)("p",{className:"mt-1.5 text-sm leading-relaxed text-zinc-600 dark:text-zinc-400",children:i.section1BDesc})]})]})]}),(0,s.jsxs)("div",{className:"overflow-hidden rounded-2xl border border-zinc-200 dark:border-zinc-800",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3 bg-gradient-to-r from-emerald-500/8 to-transparent px-5 py-4 dark:from-emerald-500/15",children:[(0,s.jsx)("div",{className:"flex h-10 w-10 items-center justify-center rounded-xl bg-emerald-600 shadow-sm shadow-emerald-500/30",children:(0,s.jsx)("span",{className:"text-lg font-bold leading-none text-white",children:"2"})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"text-sm font-bold text-zinc-900 dark:text-zinc-50",children:i.section2Title}),(0,s.jsx)("p",{className:"mt-1 text-xs text-zinc-500 dark:text-zinc-400",children:i.section2Desc})]})]}),(0,s.jsxs)("div",{className:"space-y-4 px-5 py-4",children:[(0,s.jsxs)("div",{className:"rounded-xl bg-emerald-50/60 p-4 dark:bg-emerald-950/20",children:[(0,s.jsx)("div",{className:"text-sm font-semibold text-zinc-900 dark:text-zinc-50",children:i.section2A}),(0,s.jsx)("p",{className:"mt-1.5 text-sm leading-relaxed text-zinc-600 dark:text-zinc-400",children:i.section2ADesc})]}),(0,s.jsxs)("div",{className:"rounded-xl bg-emerald-50/60 p-4 dark:bg-emerald-950/20",children:[(0,s.jsx)("div",{className:"text-sm font-semibold text-zinc-900 dark:text-zinc-50",children:i.section2B}),(0,s.jsx)("p",{className:"mt-1.5 text-sm leading-relaxed text-zinc-600 dark:text-zinc-400",children:i.section2BDesc})]})]})]}),(0,s.jsx)("div",{className:"rounded-xl bg-zinc-50 px-4 py-3 text-xs text-zinc-500 dark:bg-zinc-900 dark:text-zinc-400",children:i.footer})]})})]})}),document.body)}function f(e){let{t,agent:n,onConfirm:a,onClose:d}=e,i=n.totalBudget??0,[l,o]=(0,r.useState)(""),c=(0,r.useRef)(null);(0,r.useEffect)(()=>{let e=e=>{c.current&&!c.current.contains(e.target)&&d()};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[d]);let x=""!==l?Number(l):0,m=i+(Number.isFinite(x)&&x>0?x:0);return(0,s.jsxs)("div",{ref:c,className:"absolute right-0 top-full z-50 mt-1 w-64 roun
1ded-xl border border-zinc-200 bg-white p-4 shadow-lg dark:border-zinc-700 dark:bg-zinc-900",onClick:e=>e.stopPropagation(),children:[(0,s.jsx)("div",{className:"mb-1 text-sm font-bold text-zinc-900 dark:text-zinc-50",children:t.addBudgetTitle}),(0,s.jsx)("div",{className:"mb-3 text-[11px] text-zinc-500 dark:text-zinc-400",children:t.addBudgetDesc}),(0,s.jsxs)("div",{className:"mb-3 flex items-center justify-between rounded-lg bg-zinc-50 px-3 py-2 dark:bg-zinc-800",children:[(0,s.jsx)("span",{className:"text-[11px] font-semibold text-zinc-500 dark:text-zinc-400",children:t.addBudgetCurrentBudget}),(0,s.jsxs)("span",{className:"text-sm font-bold text-zinc-900 dark:text-zinc-50",children:[i," ","leads"===n.budgetType?"Leads":"Credits"]})]}),(0,s.jsxs)("div",{className:"mb-3",children:[(0,s.jsx)("div",{className:"mb-1.5 text-[11px] font-bold uppercase tracking-wider text-zinc-500 dark:text-zinc-400",children:t.addBudgetAmount}),(0,s.jsx)("input",{type:"number",min:1,placeholder:"e.g. 100",value:l,onChange:e=>o(e.target.value),className:"w-full rounded-lg border border-zinc-200 bg-zinc-50 px-2.5 py-1.5 text-xs text-zinc-900 placeholder-zinc-400 focus:border-[#1343F0] focus:outline-none dark:border-zinc-700 dark:bg-zinc-800 dark:text-zinc-100"})]}),x>0&&(0,s.jsxs)("div",{className:"mb-3 flex items-center justify-between rounded-lg bg-[#1343F0]/5 px-3 py-2 dark:bg-[#1343F0]/10",children:[(0,s.jsx)("span",{className:"text-[11px] font-semibold text-[#1343F0] dark:text-blue-400",children:t.addBudgetNewBudget}),(0,s.jsxs)("span",{className:"text-sm font-bold text-[#1343F0] dark:text-blue-400",children:[m," ","leads"===n.budgetType?"Leads":"Credits"]})]}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)("button",{type:"button",onClick:d,className:"flex-1 rounded-lg border border-zinc-200 bg-white px-3 py-1.5 text-xs font-semibold text-zinc-700 transition hover:bg-zinc-50 dark:border-zinc-700 dark:bg-zinc-900 dark:text-zinc-200",children:t.addBudgetCancel}),(0,s.jsx)("button",{type:"button",onClick:()=>{l&&!(x<=0)&&(a(n.id,m),d())},disabled:!l||x<=0,className:"flex-1 rounded-lg bg-[#1343F0] px-3 py-1.5 text-xs font-semibold text-white transition hover:bg-[#1037c8] disabled:cursor-not-allowed disabled:opacity-50",children:t.addBudgetConfirm})]})]})}function k(e){let{t,onExport:n,onClose:a}=e,[d,l]=(0,r.useState)("followers"),[o,c]=(0,r.useState)(""),[x,m]=(0,r.useState)(""),u=(0,r.useRef)(null);return(0,r.useEffect)(()=>{let e=e=>{u.current&&!u.current.contains(e.target)&&a()};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[a]),(0,s.jsxs)("div",{ref:u,className:"absolute right-0 top-full z-50 mt-1 w-64 rounded-xl border border-zinc-200 bg-white p-4 shadow-lg dark:border-zinc-700 dark:bg-zinc-900",onClick:e=>e.stopPropagation(),children:[(0,s.jsxs)("div",{className:"mb-3",children:[(0,s.jsx)("div",{className:"mb-1.5 text-[11px] font-bold uppercase tracking-wider text-zinc-500 dark:text-zinc-400",children:t.exportSortBy}),(0,s.jsxs)("select",{value:d,onChange:e=>l(e.target.value),className:"w-full rounded-lg border border-zinc-200 bg-zinc-50 px-2.5 py-1.5 text-xs text-zinc-900 focus:border-[#1343F0] focus:outline-none dark:border-zinc-700 dark:bg-zinc-800 dark:text-zinc-100",children:[(0,s.jsx)("option",{value:"followers",children:t.exportSortFollowers}),(0,s.jsx)("option",{value:"matchScore",children:t.exportSortMatch})]})]}),(0,s.jsxs)("div",{className:"mb-3",children:[(0,s.jsx)("div",{className:"mb-1.5 text-[11px] font-bold uppercase tracking-wider text-zinc-500 dark:text-zinc-400",children:t.exportFollowerRange}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)("input",{type:"number",min:0,placeholder:t.exportMin,value:o,onChange:e=>c(e.target.value),className:"w-full rounded-lg border border-zinc-200 bg-zinc-50 px-2.5 py-1.5 text-xs text-zinc-900 placeholder-zinc-400 focus:border-[#1343F0] focus:outline-none dark:border-zinc-700 dark:bg-zinc-800 dark:text-zinc-100"}),(0,s.jsx)("input",{type:"number",min:0,placeholder:t.exportMax,value:x,onChange:e=>m(e.target.value),className:"w-full rounded-lg border border-zinc-200 bg-zinc-50 px-2.5 py-1.5 text-xs text-zinc-900 placeholder-zinc-400 focus:border-[#1343F0] focu
1s:outline-none dark:border-zinc-700 dark:bg-zinc-800 dark:text-zinc-100"})]})]}),(0,s.jsxs)("button",{type:"button",onClick:()=>{n({sortBy:d,followerMin:""!==o?Number(o):null,followerMax:""!==x?Number(x):null}),a()},className:"inline-flex w-full items-center justify-center gap-1.5 rounded-lg bg-[#1343F0] px-3 py-1.5 text-xs font-semibold text-white transition hover:bg-[#1037c8]",children:[(0,s.jsx)(i.A,{className:"h-3 w-3"}),t.exportDownload]})]})}function z(e){let{uiLang:t,agents:n,agentsLoading:a,runningAgentId:z,lastRunNotice:j,onCreateAgentAction:v,onTogglePauseAction:w,onDeleteAgentAction:N,onRunAgentAction:y,onOpenAgentAction:A,onViewLogAction:C,onExportAgentAction:F,onAddBudgetAction:B,maxRunningAgents:D=1,progressProps:L}=e,S="zh"===t?"zh":"en",M=b[S]??b.en,[T,P]=(0,r.useState)(null),[R,E]=(0,r.useState)(null),[I,W]=(0,r.useState)(null),[_,V]=(0,r.useState)(!1),O=n.filter(e=>"running"===e.status).length,U=(0,r.useCallback)(e=>{window.confirm(M.deleteConfirm)&&(P(e),N(e),setTimeout(()=>P(null),600))},[N,M.deleteConfirm]),H=(0,s.jsxs)("div",{className:"rounded-xl border border-zinc-200 bg-white px-4 py-4 sm:px-6 dark:border-zinc-800 dark:bg-zinc-950",children:[(0,s.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,s.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center gap-x-3 gap-y-1.5",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("span",{className:"inline-flex h-6 w-6 shrink-0 items-center justify-center rounded-full bg-[#1343F0]",children:(0,s.jsx)("svg",{className:"h-3.5 w-3.5 text-white",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2.5,children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13 10V3L4 14h7v7l9-11h-7z"})})}),(0,s.jsx)("span",{className:"text-base font-bold text-zinc-900 dark:text-zinc-50",children:M.title})]}),(0,s.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-full bg-emerald-50 px-2 py-0.5 text-[11px] font-semibold text-emerald-700 dark:bg-emerald-500/10 dark:text-emerald-300",children:[(0,s.jsx)("span",{className:"h-1.5 w-1.5 rounded-full bg-emerald-500"}),n.length]}),(0,s.jsx)("span",{className:"text-xs font-medium text-zinc-400 dark:text-zinc-500",children:"|"}),(0,s.jsxs)("span",{className:"text-xs font-semibold text-zinc-500 dark:text-zinc-400",children:[O,"/",D," running"]}),(0,s.jsxs)("button",{type:"button",onClick:()=>V(!0),className:"inline-flex items-center gap-1 rounded-full border border-[#1343F0]/30 bg-[#1343F0]/5 px-2.5 py-0.5 text-[11px] font-semibold text-[#1343F0] transition hover:bg-[#1343F0]/10",children:[(0,s.jsxs)("svg",{className:"h-3 w-3 shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:[(0,s.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,s.jsx)("path",{strokeLinecap:"round",d:"M12 16v-4m0-4h.01"})]}),M.howItWorks]})]}),(0,s.jsxs)("button",{type:"button",onClick:v,disabled:O>=D,className:"inline-flex shrink-0 items-center gap-2 rounded-lg bg-[#1343F0] px-3 py-2 text-sm font-semibold text-white shadow-sm transition hover:bg-[#1037c8] disabled:cursor-not-allowed disabled:opacity-60 sm:px-4",children:[(0,s.jsx)(l.A,{className:"h-4 w-4"}),(0,s.jsx)("span",{className:"hidden sm:inline",children:M.launchAgent}),(0,s.jsx)("span",{className:"sm:hidden",children:"Launch"})]})]}),(0,s.jsx)("div",{className:"mt-1.5 text-xs font-medium text-zinc-500 dark:text-zinc-400",children:M.subtitle})]});return a?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(p,{isOpen:_,onClose:()=>V(!1),uiLang:S}),(0,s.jsx)("div",{className:"flex min-h-dvh w-full flex-col items-center justify-center bg-white text-zinc-900 dark:bg-zinc-900 dark:text-zinc-100",children:(0,s.jsx)(o.A,{className:"h-6 w-6 animate-spin text-zinc-400 dark:text-zinc-500"})})]}):0===n.length?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(p,{isOpen:_,onClose:()=>V(!1),uiLang:S}),(0,s.jsx)("div",{className:"flex min-h-dvh w-full flex-col bg-white text-zinc-900 dark:bg-zinc-900 dark:text-zinc-100",children:(0,s.jsx)("div",{className:"flex flex-col p-4 sm:p-6",children:(0,s.jsxs)("div",{className:"mx-auto flex w-full max-w-6xl flex-col gap-6",children:[H,(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center gap-4 py-16",children:[(0,s.jsx)("div",{className:"text-lg font-bold text-zinc-900 dark:text-zinc-50",children:M.noAgentsTitle}),(0,s.jsx)("div",{className:"text-sm font-medium text-zinc-500 dark:text-zinc-400",children:M.noAgentsDesc}),(0,s.jsxs)("button",{type:"button",onClick:v,className:"inline-flex items-center gap-2 rounded-lg bg-[#1343F0] px-5 py-2.5 text-sm font-semibold text-white shadow-sm transition hover:bg-[#1037c8]",children:[(0,s.jsx)(l.A,{className:"h-4 w-4"}),M.createFirst]})]})]})})})]}):(0,s.jsxs)("div",{className:"flex min-h-dvh w-full flex-col bg-white text-zinc-900 dark:bg-zinc-900 dark:text-zinc-100",children:[(0,s.jsx)(p,{isOpen:_,onClose:()=>V(!1),uiLang:S}
1),(0,s.jsx)("div",{className:"flex flex-col p-4 sm:p-6",children:(0,s.jsxs)("div",{className:"mx-auto flex w-full max-w-6xl flex-col gap-6",children:[H,j?(0,s.jsx)("div",{className:["rounded-xl border px-4 py-3 text-sm font-medium","success"===j.kind?"border-emerald-200 bg-emerald-50 text-emerald-800 dark:border-emerald-800/50 dark:bg-emerald-500/10 dark:text-emerald-200":"border-red-200 bg-red-50 text-red-800 dark:border-red-800/50 dark:bg-red-500/10 dark:text-red-200"].join(" "),children:j.message}):null,L&&(L.loading||L.progressLog.length>0||L.leadProgressItems.length>0||!!L.chainStage)&&(0,s.jsx)("div",{className:"rounded-xl border border-zinc-200 bg-white p-4 sm:p-6 dark:border-zinc-800 dark:bg-zinc-950",children:(0,s.jsx)(h.A,{uiLang:S,...L})}),(0,s.jsxs)("div",{className:"hidden lg:grid lg:grid-cols-[minmax(0,1.65fr)_minmax(0,0.75fr)_minmax(0,0.85fr)_minmax(0,0.9fr)_minmax(0,0.45fr)_minmax(0,2.9fr)] gap-3 px-4 text-[11px] font-bold uppercase tracking-wider text-zinc-400 dark:text-zinc-500",children:[(0,s.jsx)("div",{children:"Agent Name"}),(0,s.jsx)("div",{children:"Type"}),(0,s.jsx)("div",{children:M.budget}),(0,s.jsx)("div",{children:M.nextRun}),(0,s.jsx)("div",{children:"Leads"}),(0,s.jsx)("div",{children:"Actions"})]}),(0,s.jsx)("div",{className:"flex flex-col gap-2",children:n.map(e=>{let n,r,a,l,o,h,b,p,z="running"===e.status,j=e.leadsFound>0;return(0,s.jsxs)("div",{onClick:()=>C(e.id),className:"group relative cursor-pointer rounded-xl border border-zinc-200 bg-white px-4 py-3 transition hover:border-zinc-300 hover:shadow-sm dark:border-zinc-800 dark:bg-zinc-950 dark:hover:border-zinc-700 flex flex-col gap-3 lg:grid lg:grid-cols-[minmax(0,1.65fr)_minmax(0,0.75fr)_minmax(0,0.85fr)_minmax(0,0.9fr)_minmax(0,0.45fr)_minmax(0,2.9fr)] lg:items-center lg:gap-3 lg:flex-none",children:[(0,s.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[(0,s.jsx)("div",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-lg bg-zinc-50 text-zinc-400 dark:bg-zinc-900",children:(0,s.jsx)(d.A,{className:"h-4 w-4"})}),(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)("div",{className:"truncate text-sm font-bold text-zinc-900 dark:text-zinc-50",children:e.name}),(0,s.jsx)("div",{className:"mt-0.5",children:(n={running:{label:M.statusRunning,cls:"bg-emerald-50 text-emerald-700 dark:bg-emerald-500/10 dark:text-emerald-300"},paused:{label:M.statusPaused,cls:"bg-amber-50 text-amber-700 dark:bg-amber-500/10 dark:text-amber-300"},draft:{label:M.statusDraft,cls:"bg-zinc-100 text-zinc-600 dark:bg-zinc-800 dark:text-zinc-400"},done:{label:M.statusDone,cls:"bg-blue-50 text-blue-700 dark:bg-blue-500/10 dark:text-blue-300"},error:{label:M.statusError,cls:"bg-red-50 text-red-700 dark:bg-red-500/10 dark:text-red-300"}},r="leads"===e.budgetType?e.leadsFound:e.creditsUsed,l=null!==(a=e.totalBudget??null)&&a>0&&r>=a,b=n[h="paused"===(o=e.status)&&l?"done":o]??n.draft,p="done"===o?"zh"===t?"本次运行完成":"Run finished":"paused"===o&&l?"zh"===t?"预算已用完":"Budget reached":b.label,(0,s.jsxs)("span",{className:["inline-flex items-center gap-1.5 rounded-full px-2.5 py-0.5 text-[11px] font-semibold",b.cls].join(" "),children:["running"===h&&(0,s.jsx)("span",{className:"h-1.5 w-1.5 rounded-full bg-emerald-500 animate-pulse"}),"paused"===h&&(0,s.jsx)("span",{className:"h-1.5 w-1.5 rounded-full bg-amber-500"}),"done"===h&&(0,s.jsx)("span",{className:"h-1.5 w-1.5 rounded-full bg-blue-500"}),"error"===h&&(0,s.jsx)("span",{className:"h-1.5 w-1.5 rounded-full bg-red-500"}),p]}))})]})]}),(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-1.5 lg:contents",children:[(0,s.jsx)("div",{className:"flex min-w-0 items-center gap-2",children:(0,s.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-full bg-zinc-100 px-2 py-0.5 text-[10px] font-semibold text-zinc-600 dark:bg-zinc-800 dark:text-zinc-400",children:[(0,s.jsx)("svg",{className:"h-3 w-3 shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2.5,children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13 10V3L4 14h7v7l9-11h-7z"})}),"posts"===e.signalSource?"zh"===t?"信号":"Signals":"zh"===t?"互动":"Interactions"]})}),(0,s.jsxs)("div",{className:"min-w-0 text-left",children:[(0,s.jsxs)("div",{className:"text-sm font-bold text-zinc-900 dark:text-zinc-50",children:["leads"===e.budgetType?e.leadsFound:e.creditsUsed,(0,s.jsx)("span",{className:"mx-0.5 text-zinc-400",children:"/"}),e.totalBudget??"∞"]}),(0,s.jsx)("div",{className:"text-[10px] font-medium text-zinc-500 uppercase",children:"leads"===e.budgetType?"zh"===t?"线索":"Leads":"zh"===t?"积分":"Credits"}),"leads"===e.budgetType?(0,s.jsxs)("div",{className:"text-[10px] font-medium text-zinc-400",children:["zh"===t?"消耗积分":"Credits used",": ",e.creditsUsed]}):null]}),(0,s.jsx)("div",{className:"min-w-0 text-left",children:(0,s.jsx)("div",{className:"text-[11px] font-bold text-zinc-900 dark:text-zinc-50",children:e.nextRunAt?new Date(e.nextRunAt).toLocaleDateString("zh"===t?"zh-CN":"en-US",{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}):M.notScheduled})}),(0,s.jsxs)("div",{className:"min-w-0 text-left text-sm font-bold text-zinc-900 dark:text-zinc-50",children:[e.leadsFound,(0,s.jsx)("span",{className:"ml-0.5 text-[10px] font-medium text-zinc-400 lg:hidden",children:"leads"})]})]}),(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-1 lg:flex-nowrap",onClick:e=>e.stopPropagation(),children:[(0,s.jsxs)("button",{type:"button",onClick:()=>C(e.id),className:"inline-flex items-center gap-1 whitespace-nowrap rounded-lg border border-zinc-200 bg-white px-2.5 py-1 text-[11px] font-semibold text-zinc-700 transition hover:bg-zinc-50 dark:border-zinc-800 dark:bg-zinc-950 dark:text-zinc-200 dark:hover:bg-zinc-900",children:[(0,s.jsx)(c.A,{className:"h-3 w-3"}),M.log]}),(0,s.jsxs)("button",{type:"button",onClick:()=>A(e.id),className:"inline-flex items-center gap-1 whitespace-nowrap rounded-lg border border-zinc-200 bg-white px-2.5 py-1 text-[11px] font-semibold text-zinc-700 transition hover:bg-zinc-50 dark:border-zinc-800 dark:bg-zinc-950 dark:text-zinc-200 dark:hover:bg-zinc-900",children:[(0,s.jsx)(x,{className:"h-3 w-3"}),M.edit]}),B&&null!==e.totalBudget&&(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("button",{type:"button",onClick:t=>{t.stopPropagation(),W(t=>t===e.id?null:e.id)},className:"inline-flex items-center gap-1 whitespace-nowrap rounded-lg border border-emerald-200 bg-emerald-50 px-2.5 py-1 text-[11px] font-semibold text-emerald-700 transition hover:bg-emerald-100 dark:border-emerald-800/50 dark:bg-emerald-500/10 dark:text-emerald-400 dark:hover:bg-emerald-500/20",children:M.addBudget}),I===e.id&&(0,s.jsx)(f,{t:M,agent:e,onConfirm:(e,t)=>
1{B(e,t)},onClose:()=>W(null)})]}),(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsxs)("button",{type:"button",disabled:!j,onClick:()=>j&&E(t=>t===e.id?null:e.id),className:["inline-flex items-center gap-1 whitespace-nowrap rounded-lg border px-2.5 py-1 text-[11px] font-semibold transition",j?"border-[#1343F0]/40 bg-[#1343F0]/5 text-[#1343F0] hover:bg-[#1343F0]/10 dark:border-[#1343F0]/30 dark:bg-[#1343F0]/10 dark:text-blue-400":"border-zinc-200 bg-white text-zinc-400 cursor-not-allowed opacity-50 dark:border-zinc-800 dark:bg-zinc-950 dark:text-zinc-600"].join(" "),children:[(0,s.jsx)(i.A,{className:"h-3 w-3"}),M.export]}),j&&R===e.id&&(0,s.jsx)(k,{t:M,onExport:t=>F(e.id,t),onClose:()=>E(null)})]}),(0,s.jsxs)("button",{type:"button",onClick:()=>w(e.id),className:["inline-flex items-center gap-1 whitespace-nowrap rounded-lg border px-2.5 py-1 text-[11px] font-semibold transition",z?"border-amber-200 bg-amber-50 text-amber-700 hover:bg-amber-100 dark:border-amber-800/50 dark:bg-amber-500/10 dark:text-amber-300 dark:hover:bg-amber-500/20":"border-[#1343F0]/40 bg-[#1343F0]/5 text-[#1343F0] hover:bg-[#1343F0]/10 dark:border-[#1343F0]/30 dark:bg-[#1343F0]/10 dark:text-blue-400"].join(" "),children:[z?(0,s.jsx)(m.A,{className:"h-3 w-3"}):(0,s.jsx)(u.A,{className:"h-3 w-3"}),z?M.stop:M.run]}),(0,s.jsx)("button",{type:"button",onClick:()=>U(e.id),className:"inline-flex items-center gap-1 rounded-lg px-2 py-1 text-[11px] font-medium text-zinc-400 transition hover:bg-red-50 hover:text-red-500 dark:text-zinc-600 dark:hover:bg-red-500/10 dark:hover:text-red-400",children:(0,s.jsx)(g.A,{className:"h-3 w-3"})})]})]},e.id)})})]})})]})}},46303:(e,t,n)=>{n.d(t,{A:()=>s});let s=(0,n(56059).A)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]])},46870:(e,t,n)=>{n.d(t,{A:()=>s});let s=(0,n(56059).A)("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]])}}]);

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.