PageSourceSearch

https://www.copilotkit.ai/_next/static/chunks/2996-14be862961f63a02.js?dpl=dpl_6PRq2pzNmJwiK3QXgfRscSuFSmeS

js copilotkit.ai collected 2026-10-02 03:05:11 UTC 10,760 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunk_N_E=globalThis.webpackChunk_N_E||[]).push([[2996],{7707:(e,t,i)=>{i.d(t,{cn:()=>s});var a=i(3352),r=i(54957);function s(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return(0,r.QP)((0,a.$)(t))}i(74438)},26764:(e,t,i)=>{i.d(t,{A:()=>l});var a=i(87448),r=i(63558),s=i(7707);let o={sm:{textSegment:"px-4 text-xs",height:"h-[32px]",arrowContainerWidth:"w-[32px]",arrowSize:16},md:{textSegment:"px-4 text-sm",height:"h-[44px]",arrowContainerWidth:"w-[44px]",arrowSize:20},lg:{textSegment:"px-5 text-base",height:"h-[52px]",arrowContainerWidth:"w-[52px]",arrowSize:24}},n={primary:"bg-gray-1000 text-white group-hover:bg-[#2b2b2b] group-focus-visible:bg-[#2b2b2b] group-active:bg-gray-800 group-disabled:bg-gray-1000/15 group-disabled:text-[#838389]",secondary:"bg-white text-text-primary group-hover:bg-white/70 group-focus-visible:bg-white/70 group-active:bg-white/50 group-disabled:bg-white/50 group-disabled:text-[#838389]",ghost:"bg-transparent text-text-primary group-hover:bg-gray-1000/5 group-focus-visible:bg-gray-1000/5 group-active:bg-gray-1000/10 group-disabled:bg-transparent group-disabled:text-[#838389]",link:"underline decoration-[1px] underline-offset-4 transition-opacity  group-disabled:no-underline group-disabled:text-[#838389] group-hover:no-underline group-focus-visible:no-underline group-active:no-underline group-hover:text-text-secondary group-focus-visible:text-text-secondary group-active:text-text-primary"},l=e=>{let{label:t,variant:i="primary",disabled:l=!1,fullWidth:c=!1,icon:p=null,size:d="lg",className:x,...m}=e,{height:u,arrowSize:g,arrowContainerWidth:h,textSegment:b}=o[d];return(0,a.jsxs)("button",{type:"button",className:(0,s.cn)("group flex items-center border-none bg-transparent p-0 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-current",c?"w-full":"w-fit",l?"cursor-none":"cursor-pointer"),disabled:l,...m,children:["primary"===i&&(0,a.jsx)("span",{className:(0,s.cn)("flex items-center justify-center rounded-full transition-colors",u,h,n.primary),"aria-hidden":"true",children:p||(0,a.jsx)(r.L2n,{size:g,color:l?"#838389":"#FFFFFF"})}),(0,a.jsxs)("span",{className:(0,s.cn)("flex items-center justify-center gap-2 rounded-full whitespace-nowrap transition-colors",b,u,n[i],"primary"===i&&c?"flex-1":c?"w-full":"w-fit","link"===i?"h-auto px-0":"font-mono font-medium uppercase",x),children:["primary"===i||p,t]})]})}},44279:(e,t,i)=>{i.d(t,{A:()=>d});var a=i(87448),r=i(7707),s=i(49383),o=i(23796),n=i(80280),l=i(35586),c=i(73780);let p="npx copilotkit@latest create";function d(e){let{compact:t=!1,size:i="md",className:d="",eventLocation:x}=e,[m,u]=(0,o.useState)(!1),g=(0,l.sf)(),h=async()=>{await navigator.clipboard.writeText(p),(0,c.g)(g,{command:p,product:"copilotkit",location:x}),u(!0),setTimeout(()=>{u(!1)},1e3)};return t?(0,a.jsxs)("div",{className:(0,r.cn)("flex w-full items-center gap-4 roun
1ded-xl bg-gray-1000 px-4 py-3 text-start font-mono h-10",d),children:[(0,a.jsxs)("span",{className:"flex-1 text-xs font-medium text-gray-300 sm:text-sm",children:["npx ",(0,a.jsx)("span",{className:"text-emerald-400",children:"copilotkit@latest"})," create"]}),(0,a.jsxs)("div",{className:"relative flex items-center justify-center text-gray-400 hover:text-white",children:[(0,a.jsx)("span",{className:"absolute bottom-[26px] left-1/2 hidden -translate-x-1/2 rounded bg-white px-2 py-1 text-xs text-gray-1000 transition-all duration-300 ease-in-out sm:block ".concat(m?"opacity-100":"opacity-0"),children:"Copied"}),(0,a.jsx)(s.A,{classes:"inline","aria-label":"Copy command",onClick:h,children:(0,a.jsx)(n.hX7,{className:"h-4 w-4 sm:h-5 sm:w-5"})})]})]}):(0,a.jsxs)("div",{className:"mx-auto flex w-full flex-col items-center gap-4 rounded-xl border border-white bg-white/50 p-4 backdrop-blur-[2px] sm:w-auto sm:flex-row md:gap-9 lg:p-6",children:[(0,a.jsxs)("div",{className:"flex w-full justify-between",children:[(0,a.jsx)("p",{className:"font-jakarta text-sm font-medium whitespace-nowrap text-gray-800",children:"Start with a single command"}),(0,a.jsx)("span",{className:"absolute right-0 bottom-[80px] block rounded bg-gray-1000 px-2 py-1 font-mono text-xs text-white transition-all duration-300 ease-in-out sm:hidden ".concat(m?"opacity-100":"opacity-0"),children:"Copied"}),(0,a.jsx)(s.A,{classes:"block sm:hidden ml-2 text-text-primary hover:text-black","aria-label":"Copy command",onClick:h,children:(0,a.jsx)(n.hX7,{className:"h-5 w-5"})})]}),(0,a.jsxs)("div",{className:"flex w-full items-center gap-7 rounded-lg border border-border-container bg-white p-5 text-start font-mono sm:min-w-[350px]",children:[(0,a.jsxs)("span",{className:(0,r.cn)("flex-1 text-sm font-medium text-gray-1000","sm"===i?"text-xs lg:text-sm":"text-sm"),children:["npx ",(0,a.jsx)("span",{className:"text-mint-800",children:"copilotkit@latest"})," create"]}),(0,a.jsxs)("div",{className:"relative ml-2 hidden items-center justify-center text-text-primary hover:text-black sm:flex",children:[(0,a.jsx)("span",{className:"absolute bottom-[25px] left-[10px] hidden rounded bg-gray-1000 px-2 py-1 text-xs text-white transition-all duration-300 ease-in-out sm:block ".concat(m?"opacity-100":"opacity-0"),children:"Copied"}),(0,a.jsx)(s.A,{classes:"hidden sm:inline hover:text-black","aria-label":"Copy command",onClick:h,children:(0,a.jsx)(n.hX7,{className:"h-5 w-5"})})]})]})]})}},49383:(e,t,i)=>{i.d(t,{A:()=>o});var a=i(87448),r=i(7707);let s={primary:"hover:bg-accent-purple hover:text-white hover:from-accent-purple hover:to-accent-purple",dark:"hover:text-accent-purple",light:"hover:text-[#AFAFFF]",none:""},o=e=>{let{children:t,classes:i,hoverVariant:o,...n}=e,{type:l,disabled:c,className:p,...d}=n,x=(0,r.cn)(i,p,"focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-current",s[o||"none"]);return(0,a.jsx)("button",{type:l||"button",className:x,disabled:c,...d,children:t})}},73780:(e,t,i)=>{i.d(t,{g:()=>r});let a=["npx","npm","pnpm","yarn","bun","pip","uv","poetry","cargo","go","docker","curl","brew"];function r(e,t){let{command:i,product:r,location:s}=t;if(!e)return;let o=i.trim(),n=o.length>240?o.slice(0,240)+"…":o;e.capture("cli_command_copied",{command:n,install_type:function(e){var t;let i=null==(t=e.trim().split(/\s+/)[0])?void 0:t.toLowerCase();return i&&a.includes(i)?i:"code"}(o),...r?{product:r}:{},...s?{location:s}:{}})}},74438:(e,t,i)=>{i.d(t,{C:()=>a});let a={baseUrl:"https://www.copilotkit.ai",discord:"https://go.copilotkit.ai/discord-community",github:"https://go.copilotkit.ai/copilotkit-github",twitter:"https://go.copilotkit.ai/socials-twitter",linkedin:"https://go.copilotkit.ai/socials-linkedin",calendly:"https://calendly.com/atai_/copilotkit",docsPage:"https://docs.copilotkit.ai/",termsPage:"/terms-of-service",privacyPage:"/privacy-policy",title:"CopilotKit | Bring Users and AI Agents together inside real apps",description:"The Enterprise-Ready Frontend Stack for Agents. CopilotKit lets you integrate LLMs or agents with real-time context, UI control, and full flexibility.",ogImage:"/images/og/generic.webp"}},75112:(e,t,i)=>{i.d(t,{G2:()=>n,U6:()=>o,XI:()=>r,cY:()=>s,eR:()=>a});let a={hidden:{opacity:0,x:-30},show:{opacity:1,x:0},transition:{duration:1,ease:"easeOut",delay:.2},viewport:{once:!0,amount:.5}},r={hidden:{opacity:0,y:10},show:{opacity:1,y:0,transition:{staggerChildren:.2}},viewport:{once:!0,amount:.7}},s={hidden:{opacity:0,y:20},show:{opacity:1,y:0},transition:{duration:.8,delay:.2},viewport:{once:!0,amount:.3}},o={...s,viewport:{once:!0,amount:1}},n={hidden:{opacity:0,y:10},show:{opacity:1,y:0}}},82996:(e,t,i)=>{i.d(t,{default:()=>d});var a=i(87448),r=i(94710),s=i(35586),o=i(26764),n=i(44279),l=i(83761),c=i(48243),p=i(75112);let d=e=>{let{hideSnippet:t=!1,eventLocation:i}=e,d=(0,r.useRouter)(),x=(0,s.sf)();return(0,a.jsxs)(c.P.div,{variants:p.eR,viewport:p.eR.viewport,initial:"hidden",
1whileInView:"show",className:"bg-pattern relative flex w-full max-w-[1368px] flex-col items-center justify-center gap-9 overflow-hidden rounded-2xl border border-white bg-white/50 px-5 py-7 sm:px-0 sm:py-10",children:[(0,a.jsxs)("div",{className:"flex flex-col items-start justify-center gap-3 sm:items-center",children:[(0,a.jsx)(l.A,{variant:"grey",title:"Are you ready?"}),(0,a.jsxs)("h2",{className:"font-jakarta text-2xl leading-[28px] font-medium tracking-[0px] text-text-primary sm:text-center md:text-[40px] md:leading-[46px]",children:["Enhance your applications ",(0,a.jsx)("br",{})," with powerful AI capabilities"]}),(0,a.jsxs)("div",{className:"mt-4 flex flex-col-reverse items-start gap-3 sm2:flex-row sm2:items-center",children:[(0,a.jsx)(o.A,{label:"Talk to an Engineer",variant:"secondary",onClick:()=>{x.capture("talk_to_us_clicked",{location:i}),d.push("/talk-to-an-engineer?ref=".concat(i))}}),(0,a.jsx)(o.A,{label:"Try for Free",variant:"primary",onClick:()=>{x.capture("try_for_free_clicked",{location:i}),window.open("https://go.copilotkit.ai/intelligence-signup","_blank")}})]})]}),!t&&(0,a.jsx)(n.A,{eventLocation:i}),(0,a.jsx)("div",{className:"absolute top-[181px] left-[180px] -z-10 h-[472px] w-[438px] scale-[1.6] bg-[radial-gradient(closest-side,rgba(190,194,255,0.9),rgba(190,194,255,0.4)_45%,transparent_72%)] sm:top-[53px] sm:left-[701px] sm:h-[814px] sm:w-[756px] sm:scale-[1.35] sm:bg-[radial-gradient(closest-side,rgba(190,194,255,1),rgba(190,194,255,0.92)_48%,rgba(190,194,255,0.45)_76%,transparent_98%)]"}),(0,a.jsx)("div",{className:"absolute -top-[140px] -left-[213px] -z-10 h-[408px] w-[328px] scale-[2.4] bg-[radial-gradient(closest-side,rgba(196,246,111,0.62),rgba(196,246,111,0.28)_45%,transparent_74%)] sm:-top-[479px] sm:-left-[312px] sm:h-[704px] sm:w-[566px] sm:scale-[2] sm:bg-[radial-gradient(closest-side,rgba(196,246,111,0.85),rgba(196,246,111,0.38)_50%,transparent_82%)]"}),(0,a.jsx)("div",{className:"absolute top-[463px] left-[30px] -z-10 h-[477px] w-[334px] scale-[1.6] bg-[radial-gradient(closest-side,rgba(133,236,206,0.9),rgba(133,236,206,0.4)_45%,transparent_72%)] sm:top-[420px] sm:left-[389px] sm:h-[822px] sm:w-[576px] sm:scale-[1.35] sm:bg-[radial-gradient(closest-side,rgba(133,236,206,1),rgba(133,236,206,0.92)_48%,rgba(133,236,206,0.45)_76%,transparent_98%)]"})]})}},83761:(e,t,i)=>{i.d(t,{A:()=>o});var a=i(87448),r=i(7707),s=i(73605);function o(e){let{title:t,variant:i="light",iconPath:o,className:n}=e;return(0,a.jsxs)("div",{className:(0,r.cn)("flex items-center gap-2 rounded-full border px-5 py-2 font-jakarta text-[12px] font-medium text-gray-1000","light"===i?"bg-white/50 border-white backdrop-blur-[2px]":"border-[#01050714] bg-gradient-dark",n),children:[o&&(0,a.jsx)(s.default,{src:o,alt:t,width:16,height:16}),t]})}}}]);

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.