PageSourceSearch

https://multipowerai-trust.vercel.app/_next/static/chunks/dc51a327…?dpl=dpl_J3UAHfg5reFUZ8EXHW6diXVtNydK

js multipowerai-trust.vercel.app collected 2026-10-03 05:53:14 UTC 17,171 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,84834,e=>{"use strict";var t=e.i(43476),n=e.i(71645);function o(){let[e,o]=(0,n.useState)(!1);return(0,t.jsxs)("nav",{className:"fixed top-0 left-0 right-0 z-50 px-6 md:px-10 py-4 flex items-center justify-between backdrop-blur-xl border-b",style:{background:"rgba(7,8,10,0.85)",borderColor:"rgba(255,255,255,0.06)"},children:[(0,t.jsxs)("a",{href:"/",className:"flex items-center gap-3 no-underline",children:[(0,t.jsx)("div",{className:"w-9 h-9 rounded-[10px] flex items-center justify-center font-bold text-sm text-white",style:{background:"linear-gradient(135deg, #6366f1, #a855f7)"},children:"M"}),(0,t.jsx)("span",{className:"font-semibold text-lg text-white tracking-tight",style:{fontFamily:"'DM Sans', sans-serif"},children:"MultiPowerAI"})]}),(0,t.jsxs)("div",{className:"hidden md:flex items-center gap-8",children:[(0,t.jsx)("a",{href:"/#rooms",className:"text-sm font-medium no-underline transition-colors hover:text-white",style:{color:"#94A3B8"},children:"Your Team"}),(0,t.jsx)("a",{href:"/#pricing",className:"text-sm font-medium no-underline transition-colors hover:text-white",style:{color:"#94A3B8"},children:"Pricing"}),(0,t.jsx)("a",{href:"/consulting",className:"text-sm font-medium no-underline transition-colors hover:text-white",style:{color:"#94A3B8"},children:"Consulting"}),(0,t.jsx)("a",{href:"/biz",className:"text-sm font-medium no-underline transition-colors hover:text-white",style:{color:"#94A3B8"},children:"Dashboard"}),(0,t.jsx)("a",{href:"/biz",className:"px-6 py-2.5 text-white rounded-full font-semibold text-sm no-underline transition-all hover:scale-105",style:{background:"linear-gradient(135deg, #6366f1, #a855f7)"},children:"Open Your Office"})]}),(0,t.jsxs)("button",{className:"md:hidden flex flex-col gap-1.5 p-2",onClick:()=>o(!e),style:{background:"none",border:"none",cursor:"pointer"},children:[(0,t.jsx)("span",{className:"block w-5 h-0.5 bg-white rounded"}),(0,t.jsx)("span",{className:"block w-5 h-0.5 bg-white rounded"}),(0,t.jsx)("span",{className:"block w-3 h-0.5 bg-white rounded"})]}),e&&(0,t.jsxs)("div",{className:"absolute top-full left-0 right-0 flex flex-col gap-4 p-6 md:hidden border-b",style:{background:"#07080A",borderColor:"rgba(255,255,255,0.06)"},children:[(0,t.jsx)("a",{href:"/#rooms",onClick:()=>o(!1),className:"text-sm font-medium no-underline",style:{color:"#94A3B8"},children:"Your Team"}),(0,t.jsx)("a",{href:"/#pricing",onClick:()=>o(!1),className:"text-sm font-medium no-underline",style:{color:"#94A3B8"},children:"Pricing"}),(0,t.jsx)("a",{href:"/consulting",onClick:()=>o(!1),className:"text-sm font-medium no-underline",style:{color:"#94A3B8"},children:"Consulting"}),(0,t.jsx)("a",{href:"/biz",onClick:()=>o(!1),className:"text-sm font-medium no-underline",style:{color:"#94A3B8"},children:"Dashboard"}),(0,t.jsx)("a",{href:"/biz",onClick:()=>o(!1),className:"px-6 py-3 text-white rounded-full font-semibold text-sm no-underline text-center",style:{background:"linear-gradient(135deg, #6366f1, #a855f7)"},children:"Open Your Office"})]})]})}e.s(["default",()=>o])},76741,e=>{"use strict";var t=e.i(43476),n=e.i(71645),o=e.i(84834);let i=[{id:"marketing",name:"Marketing HQ",icon:"📢",color:"#f43f5e",agents:[{name:"Harper",role:"Content Strategist"},{name:"Scout",role:"SEO Analyst"}],caps:["Blog post","Email campaign","Social media posts","Content calendar","Ad copy","SEO audit"]},{id:"brain-room",name:"The Brain Room",icon:"🧠",color:"#8b5cf6",agents:[{name:"Atlas",role:"Chief Strategist"},{name:"Nova",role:"Research Analyst"}],caps:["SWOT analysis","Business plan","Market research","Pricing strategy","Competitor analysis"]},{id:"finance",name:"Finance Office",icon:"💰",color:"#10b981",agents:[{name:"Sage",role:"CFO"}],caps:["Invoice","Revenue forecast","Budget plan","Expense report","Tax checklist"]},{id:"dev-shop",name:"Dev Shop",icon:"⚡",color:"#3b82f6",agents:[{name:"Kit",role:"Full-Stack Dev"}],caps:["Landing page","Automation script","API integration","Tech stack plan"]},{id:"sales",name:"Sales Floor",icon:"🤝",color:"#f59e0b",agents:[{name:"Chase",role:"Sales Strategist"}],caps:["Cold outreach email","Follow-up sequence","Proposal","Pitch script"]},{id:"support",name:"Help Desk",icon:"🎧",color:"#06b6d4",agents:[{name:"Cam",role:"Customer Success"}],caps:["FAQ document","Response templates","Knowledge base","Onboarding guide"]}];
1function r(){let[e,r]=(0,n.useState)(null),[l,a]=(0,n.useState)({}),[s,d]=(0,n.useState)(""),[c,p]=(0,n.useState)(!1),[g,m]=(0,n.useState)(null),[u,x]=(0,n.useState)(!0),[f,h]=(0,n.useState)({name:"",industry:"",description:"",targetAudience:"",tone:"professional",goals:""}),[y,b]=(0,n.useState)(!1),j=(0,n.useRef)(null);(0,n.useEffect)(()=>{j.current?.scrollIntoView({behavior:"smooth"})},[l,e]),(0,n.useEffect)(()=>{let e=localStorage.getItem("mpai_biz_profile");if(e)try{m(JSON.parse(e)),x(!1)}catch{}},[]);let S=(0,n.useCallback)((e,t)=>{let n=new Blob([e],{type:"text/markdown;charset=utf-8"}),o=URL.createObjectURL(n),i=document.createElement("a");i.href=o,i.download=t,i.click(),URL.revokeObjectURL(o)},[]),v=async t=>{let n=(t||s).trim();if(!n||c)return;t||d("");let o=e||void 0,i=e||"brain-room";a(e=>({...e,[i]:[...e[i]||[],{role:"user",content:n}]})),p(!0);let m=(l[i]||[]).map(e=>({role:"user"===e.role?"user":"assistant",content:e.content}));try{let t=await fetch("/api/biz/task",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:n,roomId:o,profile:g,history:m})}),l=await t.json(),s={role:"agent",content:l.result.output,agentName:l.agent.name,agentRole:l.agent.role,roomId:l.room.id,roomIcon:l.room.icon,latencyMs:l.result.latencyMs,model:l.agent.model,deliverable:l.deliverable},d=e||l.room.id;e||r(l.room.id),a(t=>{let n=t[d]||[];if(!e&&d!==i){let e=t[i]||[];return{...t,[d]:[...n,...e,s],[i]:[]}}return{...t,[d]:[...n,s]}})}catch{a(e=>({...e,[i]:[...e[i]||[],{role:"agent",content:"Something went wrong. Try again.",agentName:"System"}]}))}finally{p(!1)}},k=async()=>{if(!f.name||!f.industry||!f.description)return;b(!0);let e={name:f.name,industry:f.industry,description:f.description,targetAudience:f.targetAudience,tone:f.tone,goals:f.goals.split(",").map(e=>e.trim()).filter(Boolean)};m(e),localStorage.setItem("mpai_biz_profile",JSON.stringify(e));try{let t=await fetch("/api/biz/onboard",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),n=await t.json(),o={};for(let e of n.rooms||[])o[e.roomId]=[{role:"agent",content:e.output,agentName:e.agentName,agentRole:e.agentRole,roomId:e.roomId,roomIcon:e.roomIcon,latencyMs:e.latencyMs,model:"auto",deliverable:{type:"onboard",filename:`${e.roomId}-starter.md`,format:"markdown"}}];a(o),x(!1)}catch{alert("Onboarding failed. Try again.")}finally{b(!1)}},w=i.find(t=>t.id===e),B=l[e||"_"]||[],z={background:"#111318",border:"1px solid #1E293B",borderRadius:12,padding:"14px 16px",color:"#F1F5F9",fontSize:14,outline:"none",width:"100%",fontFamily:"'DM Sans', sans-serif"};return u?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.default,{}),(0,t.jsx)("main",{style:{minHeight:"100vh",background:"#07080A",color:"#F1F5F9",fontFamily:"'DM Sans', sans-serif",display:"flex",alignItems:"center",justifyContent:"center",padding:"120px 24px 60px"},children:(0,t.jsxs)("div",{style:{maxWidth:520,width:"100%"},children:[(0,t.jsxs)("div",{style:{textAlign:"center",marginBottom:40},children:[(0,t.jsx)("div",{style:{fontSize:48,marginBottom:12},children:"🏢"}),(0,t.jsx)("h1",{style:{fontSize:32,fontWeight:700,marginBottom:8,letterSpacing:-1},children:"Open Your Office"}),(0,t.jsx)("p",{style:{color:"#94A3B8",fontSize:16,lineHeight:1.6},children:"Tell us about your business. Your AI team will set up shop and start working immediately."})]}),(0,t.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:14},children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{style:{fontSize:13,color:"#64748B",marginBottom:4,display:"block"},children:"Business Name *"}),(0,t.jsx)("input",{style:z,placeholder:"e.g. GreenLeaf Studios",value:f.name,onChange:e=>h({...f,name:e.target.value})})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{style:{fontSize:13,color:"#64748B",marginBottom:4,display:"block"},children:"Industry *"}),(0,t.jsx)("input",{style:z,placeholder:"e.g. Sustainable Fashion",value:f.industry,onChange:e=>h({...f,industry:e.target.value})})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{style:{fontSize:13,color:"#64748B",marginBottom:4,display:"block"},children:"What does your business do? *"}),(0,t.jsx)("textarea",{style:{...z,minHeight:70,resize:"vertical"},placeholder:"e.g. Eco-friendly clothing for millennials",value:f.description,onChange:e=>h({...f,description:e.target.value})})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{style:{fontSize:13,color:"#64748B",marginBottom:4,display:"block"},children:"Target Audience"}),(0,t.jsx)("input",{style:z,placeholder:"e.g. Women 25-40 who care about sustainability",value:f.targetAudience,onChange:e=>h({...f,targetAudience:e.target.value})})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{style:{fontSize:13,color:"#64748B",marginBottom:4,display:"block"},children:"Brand Tone"}),(0,t.jsx)("div",{style:{display:"flex",gap:8,flexWrap:"wrap"},children:["professional","casual","bold","friendly","luxury"].map(e=>(0,t.jsx)("button",{onClick:()=>h({...f,tone:e}),style:{padding:"8px 16px",borderRadius:8,border:`1px solid ${f.tone===e?"#6366f1":"#1E293B"}`,background:f.tone===e?"rgba(99,102,241,0.12)":"#111318",color:f.tone===e?"#a855f7":"#94A3B8",cursor:"pointer",fontSize:13,textTransform:"capitalize"},children:e},e))})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{style:{fontSize:13,color:"#64748B",marginBottom:4,display:"block"},children:"Current Goals (comma-separated)"}),(0,t.jsx)("input",{style:z,placeholder:"e.g. Launch website, First 100 customers",value:f.goals,onChange:e=>h({...f,goals:e.target.value})})]}),(0,t.jsx)("button",{onClick:k,disabled:y||!f.name||!f.industry||!f.description,style:{marginTop:8,padding:"16px 32px",borderRadius:100,border:"none",background:y?"#1E293B":"linear-gradient(135deg, #6366f1, #a855f7)",color:"#fff",fontSize:16,fontWeight:700,cursor:y?"wait":"pointer"},children:y?"Your team is setting up... (30-60s)":"Open for Business →"}),(0,t.jsx)("button",{onClick:()=>x(!1),style:{background:"none",border:"none",color:"#475569",cursor:"pointer",fontSize:13},children:"Skip \\u2014 explore without a profile"})]})]})})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.default,{}),(0,t.jsxs)("div",{style:{display:"flex",height:"100vh",background:"#07080A",color:"#F1F5F9",fontFamily:"'DM Sans', sans-serif",paddingTop:65},children:[(0,t.jsxs)("div",{style:{width:240,borderRight:"1px solid rgba(255,255,255,0.06)",background:"#0A0C0F",flexShrink:0,overflowY:"auto",display:"flex",flexDirection:"column"},children:[(0,t.jsxs)("div",{style:{padding:"16px 14px 12px",borderBottom:"1px solid rgba(255,255,255,0.06)"},children:[(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,t.jsx)("span",{style:{fontSize:18},children:"🏢"}),(0,t.jsx)("span",{style:{fontSize:14,fontWeight:600,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:g?.name||"Your Office"})]}),g&&(0,t.jsx)("p",{style:{fontSize:11,color:"#475569",marginTop:2},children:g.industry})]}),(0,t.jsx)("div",{style:{padding:"6px",flex:1},children:i.map(n=>{let o=e===n.id,i=(l[n.id]||[]).length>0;return(0,t.jsxs)("button",{onClick:()=>r(n.id),style:{display:"flex",alignItems:"center",gap:10,width:"100%",padding:"10px 10px",borderRadius:10,border:"none",background:o?`${n.color}
118`:"transparent",cursor:"pointer",textAlign:"left",marginBottom:2},children:[(0,t.jsx)("span",{style:{fontSize:16,width:24,textAlign:"center"},children:n.icon}),(0,t.jsxs)("div",{style:{flex:1,minWidth:0},children:[(0,t.jsx)("div",{style:{fontSize:13,fontWeight:o?600:400,color:o?n.color:"#CBD5E1",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:n.name}),(0,t.jsx)("div",{style:{fontSize:11,color:"#475569"},children:n.agents.map(e=>e.name).join(", ")})]}),i&&(0,t.jsx)("div",{style:{width:6,height:6,borderRadius:3,background:n.color,flexShrink:0}})]},n.id)})}),(0,t.jsx)("div",{style:{padding:"10px 14px",borderTop:"1px solid rgba(255,255,255,0.06)"},children:(0,t.jsxs)("button",{onClick:()=>x(!0),style:{width:"100%",padding:"8px",borderRadius:8,border:"1px solid rgba(255,255,255,0.06)",background:"none",color:"#475569",cursor:"pointer",fontSize:12},children:["✏️"," Edit Profile"]})})]}),(0,t.jsxs)("div",{style:{flex:1,display:"flex",flexDirection:"column",minWidth:0},children:[w?(0,t.jsxs)("div",{style:{padding:"14px 24px",borderBottom:"1px solid rgba(255,255,255,0.06)",display:"flex",alignItems:"center",gap:12,background:"#0A0C0F"},children:[(0,t.jsx)("span",{style:{fontSize:22},children:w.icon}),(0,t.jsxs)("div",{style:{flex:1},children:[(0,t.jsx)("h2",{style:{fontSize:15,fontWeight:600,color:w.color,margin:0},children:w.name}),(0,t.jsx)("p",{style:{fontSize:12,color:"#475569",margin:0},children:w.agents.map(e=>`${e.name} \u00B7 ${e.role}`).join("  |  ")})]})]}):(0,t.jsx)("div",{style:{padding:"14px 24px",borderBottom:"1px solid rgba(255,255,255,0.06)",background:"#0A0C0F"},children:(0,t.jsx)("h2",{style:{fontSize:15,fontWeight:600,margin:0},children:"Pick a room or just type"})}),(0,t.jsxs)("div",{style:{flex:1,overflowY:"auto",padding:24},children:[0===B.length&&w&&(0,t.jsxs)("div",{style:{textAlign:"center",paddingTop:48},children:[(0,t.jsx)("div",{style:{fontSize:56,marginBottom:12},children:w.icon}),(0,t.jsx)("h3",{style:{fontSize:18,fontWeight:600,color:w.color,marginBottom:6},children:w.name}),(0,t.jsxs)("p",{style:{color:"#475569",maxWidth:400,margin:"0 auto 20px",fontSize:14},children:[w.agents[0].name," is ready to work. Pick a task or type your own."]}),(0,t.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:8,justifyContent:"center",maxWidth:480,margin:"0 auto"},children:w.caps.map(e=>(0,t.jsx)("button",{onClick:()=>v(`Create a ${e.toLowerCase()} for my business`),style:{padding:"8px 14px",borderRadius:8,border:"1px solid rgba(255,255,255,0.06)",background:"#0D0F13",color:"#94A3B8",cursor:"pointer",fontSize:12,transition:"border-color 0.15s"},children:e},e))})]}),B.map((e,n)=>(0,t.jsxs)("div",{style:{marginBottom:20,display:"flex",flexDirection:"column",alignItems:"user"===e.role?"flex-end":"flex-start"},children:["agent"===e.role&&(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6,marginBottom:4},children:[(0,t.jsx)("span",{style:{fontSize:13},children:e.roomIcon}),(0,t.jsx)("span",{style:{fontSize:12,fontWeight:600,color:i.find(t=>t.id===e.roomId)?.color||"#94A3B8"},children:e.agentName}),(0,t.jsx)("span",{style:{fontSize:11,color:"#334155"},children:e.agentRole}),e.latencyMs?(0,t.jsxs)("span",{style:{fontSize:10,color:"#334155",fontFamily:"monospace"},children:[(e.latencyMs/1e3).toFixed(1),"s"]}):null]}),(0,t.jsx)("div",{style:{maxWidth:"user"===e.role?"70%":"85%",padding:"14px 18px",borderRadius:"user"===e.role?"16px 16px 4px 16px":"16px 16px 16px 4px",background:"user"===e.role?"rgba(99,102,241,0.12)":"#0D0F13",border:`1px solid ${"user"===e.role?"rgba(99,102,241,0.2)":"rgba(255,255,255,0.04)"}`,fontSize:14,lineHeight:1.7,color:"#E2E8F0",whiteSpace:"pre-wrap",wordBreak:"break-word"},children:e.content}),e.deliverable&&(0,t.jsxs)("button",{onClick:()=>S(e.content,e.deliverable.filename),style:{marginTop:8,display:"inline-flex",alignItems:"center",gap:6,padding:"8px 16px",borderRadius:8,border:"none",background:"linear-gradient(135deg, #6366f1, #a855f7)",color:"#fff",fontSize:12,fontWeight:600,cursor:"pointer"},children:["⬇"," Download ",e.deliverable.filename]})]},n)),c&&(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,color:"#475569",fontSize:13},children:[(0,t.jsx)("div",{style:{width:8,height:8,borderRadius:4,background:w?.color||"#6366f1",animation:"pulse 1.5s infinite"}}),w?.agents[0].name||"Agent"," is working..."]}),(0,t.jsx)("div",{ref:j})]}),(0,t.jsx)("div",{style:{padding:"14px 24px",borderTop:"1px solid rgba(255,255,255,0.06)",background:"#0A0C0F"},children:(0,t.jsxs)("div",{style:{display:"flex",gap:10},children:[(0,t.jsx)("input",{type:"text",value:s,onChange:e=>d(e.target.value),onKeyDown:e=>"Enter"===e.key&&v(),placeholder:w?`Ask ${w.agents[0].name} anything...`:"Type anything — we'll find the right room...",style:{flex:1,background:"#111318",border:"1px solid rgba(255,255,255,0.06)",borderRadius:12,padding:"14px 18px",color:"#F1F5F9",fontSize:14,outline:"none",fontFamily:"'DM Sans', sans-serif"}}),(0,t.jsx)("button",{onClick:()=>v(),disabled:c||!s.trim(),style:{padding:"14px 28px",borderRadius:12,border:"none",background:c?"#1E293B":`linear-gradient(135deg, ${w?.color||"#6366f1"}, ${w?.color||"#a855f7"}80)`,color:"#fff",fontWeight:600,cursor:c?"wait":"pointer",fontSize:14,whiteSpace:"nowrap"},children:"Send"})]})})]})]}),(0,t.jsx)("style",{children:"@keyframes pulse { 0%,100% { opacity: 0.4 } 50% { opacity: 1 } }"})]})}e.s(["default",()=>r])}]);

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.