PageSourceSearch

https://shadcncraft-ai-chat.vercel.app/_next/static/chunks/09o7a9u…?dpl=dpl_DoZV5vYcph8WcSRSDSg8AooUcFdA

js shadcncraft-ai-chat.vercel.app collected 2026-10-03 07:41:45 UTC 39,556 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,53751,e=>{"use strict";var t=e.i(76350),r=/[\\\/_+.#"@\[\(\{&]/,n=/[\\\/_+.#"@\[\(\{&]/g,a=/[\s-]/,o=/[\s-]/g;function i(e){return e.toLowerCase().replace(o," ")}var l=e.i(67520),s=e.i(73576),d=e.i(20763),c=e.i(53838),u=e.i(63275),p='[cmdk-group=""]',f='[cmdk-group-items=""]',m='[cmdk-item=""]',h=`${m}:not([aria-disabled="true"])`,v="cmdk-item-select",g="data-value",x=(e,t,l)=>{var s;return s=e,function e(t,i,l,s,d,c,u){if(c===i.length)return d===t.length?1:.99;var p=`${d},${c}`;if(void 0!==u[p])return u[p];for(var f,m,h,v,g=s.charAt(c),x=l.indexOf(g,d),b=0;x>=0;)(f=e(t,i,l,s,x+1,c+1,u))>b&&(x===d?f*=1:r.test(t.charAt(x-1))?(f*=.8,(h=t.slice(d,x-1).match(n))&&d>0&&(f*=Math.pow(.999,h.length))):a.test(t.charAt(x-1))?(f*=.9,(v=t.slice(d,x-1).match(o))&&d>0&&(f*=Math.pow(.999,v.length))):(f*=.17,d>0&&(f*=Math.pow(.999,x-d))),t.charAt(x)!==i.charAt(c)&&(f*=.9999)),(f<.1&&l.charAt(x-1)===s.charAt(c+1)||s.charAt(c+1)===s.charAt(c)&&l.charAt(x-1)!==s.charAt(c))&&.1*(m=e(t,i,l,s,x+1,c+2,u))>f&&(f=.1*m),f>b&&(b=f),x=l.indexOf(g,x+1);return u[p]=b,b}(s=l&&l.length>0?`${s+" "+l.join(" ")}`:s,t,i(s),i(t),0,0,{})},b=s.createContext(void 0),j=s.createContext(void 0),y=s.createContext(void 0),w=s.forwardRef((e,t)=>{let r=A(()=>{var t,r;return{search:"",value:null!=(r=null!=(t=e.value)?t:e.defaultValue)?r:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),n=A(()=>new Set),a=A(()=>new Map),o=A(()=>new Map),i=A(()=>new Set),l=P(e),{label:u,children:y,value:w,onValueChange:C,filter:k,shouldFilter:R,loop:I,disablePointerSelection:S=!1,vimBindings:D=!0,...E}=e,M=(0,c.useId)(),T=(0,c.useId)(),O=(0,c.useId)(),G=s.useRef(null),B=L();N(()=>{if(void 0!==w){let e=w.trim();r.current.value=e,$.emit()}},[w]),N(()=>{B(6,U)},[]);let $=s.useMemo(()=>({subscribe:e=>(i.current.add(e),()=>i.current.delete(e)),snapshot:()=>r.current,setState:(e,t,n)=>{var a,o,i,s;if(!Object.is(r.current[e],t)){if(r.current[e]=t,"search"===e)q(),V(),B(1,K);else if("value"===e){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let e=document.getElementById(O);e?e.focus():null==(a=document.getElementById(M))||a.focus()}if(B(7,()=>{var e;r.current.selectedItemId=null==(e=W())?void 0:e.id,$.emit()}),n||B(5,U),(null==(o=l.current)?void 0:o.value)!==void 0){null==(s=(i=l.current).onValueChange)||s.call(i,null!=t?t:"");return}}$.emit()}},emit:()=>{i.current.forEach(e=>e())}}),[]),H=s.useMemo(()=>({value:(e,t,n)=>{var a;t!==(null==(a=o.current.get(e))?void 0:a.value)&&(o.current.set(e,{value:t,keywords:n}),r.current.filtered.items.set(e,_(t,n)),B(2,()=>{V(),$.emit()}))},item:(e,t)=>(n.current.add(e),t&&(a.current.has(t)?a.current.get(t).add(e):a.current.set(t,new Set([e]))),B(3,()=>{q(),V(),r.current.value||K(),$.emit()}),()=>{o.current.delete(e),n.current.delete(e),r.current.filtered.items.delete(e);let t=W();B(4,()=>{q(),(null==t?void 0:t.getAttribute("id"))===e&&K(),$.emit()})}),group:e=>(a.current.has(e)||a.current.set(e,new Set),()=>{o.current.delete(e),a.current.delete(e)}),filter:()=>l.current.shouldFilter,label:u||e["aria-label"],getDisablePointerSelection:()=>l.current.disablePointerSelection,listId:M,inputId:O,labelId:T,listInnerRef:G}),[]);function _(e,t){var n,a;let o=null!=(a=null==(n=l.current)?void 0:n.filter)?a:x;return e?o(e,r.current.search,t):0}function V(){if(!r.current.search||!1===l.current.shouldFilter)return;let e=r.current.filtered.items,t=[];r.current.filtered.groups.forEach(r=>{let n=a.current.get(r),o=0;n.forEach(t=>{o=Math.max(e.get(t),o)}),t.push([r,o])});let n=G.current;Z().sort((t,r)=>{var n,a;let o=t.getAttribute("id"),i=r.getAttribute("id");return(null!=(n=e.get(i))?n:0)-(null!=(a=e.get(o))?a:0)}).forEach(e=>{let t=e.closest(f);t?t.appendChild(e.parentElement===t?e:e.closest(`${f} > *`)):n.appendChild(e.parentElement===n?e:e.closest(`${f} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{var t;let r=null==(t=G.current)?void 0:t.querySelector(`${p}[${g}="${encodeURIComponent(e[0])}"]`);null==r||r.parentElement.appendChild(r)})}function K(){let e=Z().find(e=>"true"!==e.getAttribute("aria-disabled")),t=null==e?void 0:e.getAttribute(g);$.setState("value",t||void 0)}function q(){var e,t,i,s;if(!r.current.search||!1===l.current.shouldFilter){r.current.filtered.count=n.current.size;return}r.current.filtered.groups=new Set;let d=0;for(let a of n.current){let n=_(null!=(t=null==(e=o.current.get(a))?void 0:e.value)?t:"",null!=(s=null==(i=o.current.get(a))?void 0:i.keywords)?s:[]);r.current.filtered.items.set(a,n),n>0&&d++}for(let[e,t]of a.current)for(let n of t)if(r.current.filtered.items.get(n)>0){r.current.filtered.groups.add(e);break}r.current.filtered.count=d}function U(){var e,t,r;let n=W();n&&((null==(e=n.parentElement)?void 0:e.firstChild)===n&&(null==(r=null==(t=n.closest(p))?void 0:t.querySelector('[cmdk-group-heading=""]'))||r.scrollIntoView({block:"nearest"})),n.scrollIntoView({block:"nearest"}))}function W(){var e;return null==(e=G.current)?void 0:e.querySelector(`${m}[aria-selected="true"]`)}function Z(){var e;return Array.from((null==(e=G.current)?void 0:e.querySelectorAll(h))||[])}function X(e){let t=Z()[e];t&&$.setState("value",t.getAttribute(g))}function Y(e){var t;let r=W(),n=Z(),a=n.findIndex(e=>e===r),o=n[a+e];null!=(t=l.current)&&t.loop&&(o=a+e<0?n[n.length-1]:a+e===n.length?n[0]:n[a+e]),o&&$.setState("value",o.getAttribute(g))}function J(e){let t=W(),r=null==t?void 0:t.closest(p),n;for(;r&&!n;)n=null==(r=e>0?function(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}(r,p):function(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}(r,p))?void 0:r.querySelector(h);n?$.setState("value",n.getAttribute(g)):Y(e)}let Q=()=>X(Z().length-1),ee=e=>{e.preventDefault(),e.metaKey?Q():e.altKey?J(1):Y(1)},et=e=>{e.preventDefault(),e.metaKey?X(0):e.altKey?J(-1):Y(-1)};return s.createElement(d.Primitive.div,{ref:t,tabIndex:-1,...E,"cmdk-root":"",onKeyDown:e=>{var t;null==(t=E.onKeyDown)||t.call(E,e);let r=e.nativeEvent.isComposing||229===e.keyCode;if(!(e.defaultPrevented||r))switch(e.key){case"n":case"j":D&&e.ctrlKey&&ee(e);break;case"ArrowDown":ee(e);break;case"p":case"k":D&&e.ctrlKey&&et(e);break;case"ArrowUp":et(e);break;case"Home":e.preventDefault(),X(0);break;case"End":e.preventDefault(),Q();break;case"Enter":{e.preventDefault();let t=W();if(t){let e=new Event(v);t.dispatchEvent(e)}}}}},s.createElement("label",{"cmdk-label":"",htmlFor:H.inputId,id:H.labelId,style:z},u),F(e,e=>s.createElement(j.Provider,{value:$},s.createElement(b.Provider,{value:H},e))))}),C=s.forwardRef((e,t)=>
1{var r,n;let a=(0,c.useId)(),o=s.useRef(null),i=s.useContext(y),l=s.useContext(b),p=P(e),f=null!=(n=null==(r=p.current)?void 0:r.forceMount)?n:null==i?void 0:i.forceMount;N(()=>{if(!f)return l.item(a,null==i?void 0:i.id)},[f]);let m=T(a,o,[e.value,e.children,o],e.keywords),h=s.useContext(j),g=M(e=>e.value&&e.value===m.current),x=M(e=>!!f||!1===l.filter()||!e.search||e.filtered.items.get(a)>0);function w(){var e,t;C(),null==(t=(e=p.current).onSelect)||t.call(e,m.current)}function C(){h.setState("value",m.current,!0)}if(s.useEffect(()=>{let t=o.current;if(!(!t||e.disabled))return t.addEventListener(v,w),()=>t.removeEventListener(v,w)},[x,e.onSelect,e.disabled]),!x)return null;let{disabled:k,value:R,onSelect:I,forceMount:S,keywords:D,...E}=e;return s.createElement(d.Primitive.div,{ref:(0,u.composeRefs)(o,t),...E,id:a,"cmdk-item":"",role:"option","aria-disabled":!!k,"aria-selected":!!g,"data-disabled":!!k,"data-selected":!!g,onPointerMove:k||l.getDisablePointerSelection()?void 0:C,onClick:k?void 0:w},e.children)}),k=s.forwardRef((e,t)=>{let{heading:r,children:n,forceMount:a,...o}=e,i=(0,c.useId)(),l=s.useRef(null),p=s.useRef(null),f=(0,c.useId)(),m=s.useContext(b),h=M(e=>!!a||!1===m.filter()||!e.search||e.filtered.groups.has(i));N(()=>m.group(i),[]),T(i,l,[e.value,e.heading,p]);let v=s.useMemo(()=>({id:i,forceMount:a}),[a]);return s.createElement(d.Primitive.div,{ref:(0,u.composeRefs)(l,t),...o,"cmdk-group":"",role:"presentation",hidden:!h||void 0},r&&s.createElement("div",{ref:p,"cmdk-group-heading":"","aria-hidden":!0,id:f},r),F(e,e=>s.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?f:void 0},s.createElement(y.Provider,{value:v},e))))}),R=s.forwardRef((e,t)=>{let{alwaysRender:r,...n}=e,a=s.useRef(null),o=M(e=>!e.search);return r||o?s.createElement(d.Primitive.div,{ref:(0,u.composeRefs)(a,t),...n,"cmdk-separator":"",role:"separator"}):null}),I=s.forwardRef((e,t)=>{let{onValueChange:r,...n}=e,a=null!=e.value,o=s.useContext(j),i=M(e=>e.search),l=M(e=>e.selectedItemId),c=s.useContext(b);return s.useEffect(()=>{null!=e.value&&o.setState("search",e.value)},[e.value]),s.createElement(d.Primitive.input,{ref:t,...n,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":l,id:c.inputId,type:"text",value:a?e.value:i,onChange:e=>{a||o.setState("search",e.target.value),null==r||r(e.target.value)}})}),S=s.forwardRef((e,t)=>{let{children:r,label:n="Suggestions",...a}=e,o=s.useRef(null),i=s.useRef(null),l=M(e=>e.selectedItemId),c=s.useContext(b);return s.useEffect(()=>{if(i.current&&o.current){let e=i.current,t=o.current,r,n=new ResizeObserver(()=>{r=requestAnimationFrame(()=>{let r=e.offsetHeight;t.style.setProperty("--cmdk-list-height",r.toFixed(1)+"px")})});return n.observe(e),()=>{cancelAnimationFrame(r),n.unobserve(e)}}},[]),s.createElement(d.Primitive.div,{ref:(0,u.composeRefs)(o,t),...a,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":l,"aria-label":n,id:c.listId},F(e,e=>s.createElement("div",{ref:(0,u.composeRefs)(i,c.listInnerRef),"cmdk-list-sizer":""},e)))}),D=s.forwardRef((e,t)=>{let{open:r,onOpenChange:n,overlayClassName:a,contentClassName:o,container:i,...d}=e;return s.createElement(l.Root,{open:r,onOpenChange:n},s.createElement(l.Portal,{container:i},s.createElement(l.Overlay,{"cmdk-overlay":"",className:a}),s.createElement(l.Content,{"aria-label":e.label,"cmdk-dialog":"",className:o},s.createElement(w,{ref:t,...d}))))}),E=Object.assign(w,{List:S,Item:C,Input:I,Group:k,Separator:R,Dialog:D,Empty:s.forwardRef((e,t)=>M(e=>0===e.filtered.count)?s.createElement(d.Primitive.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Loading:s.forwardRef((e,t)=>{let{progress:r,children:n,label:a="Loading...",...o}=e;return s.createElement(d.Primitive.div,{ref:t,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a},F(e,e=>s.createElement("div",{"aria-hidden":!0},e)))})});function P(e){let t=s.useRef(e);return N(()=>{t.current=e}),t}var N="u"<typeof window?s.useEffect:s.useLayoutEffect;function A(e){let t=s.useRef();return void 0===t.current&&(t.current=e()),t}function M(e){let t=s.useContext(j),r=()=>e(t.snapshot());return s.useSyncExternalStore(t.subscribe,r,r)}function T(e,t,r,n=[]){let a=s.useRef(),o=s.useContext(b);return N(()=>{var i;let l=(()=>{var e;
1for(let t of r){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():a.current}})(),s=n.map(e=>e.trim());o.value(e,l,s),null==(i=t.current)||i.setAttribute(g,l),a.current=l}),a}var L=()=>{let[e,t]=s.useState(),r=A(()=>new Map);return N(()=>{r.current.forEach(e=>e()),r.current=new Map},[e]),(e,n)=>{r.current.set(e,n),t({})}};function F({asChild:e,children:t},r){let n;return e&&s.isValidElement(t)?s.cloneElement("function"==typeof(n=t.type)?n(t.props):"render"in n?n.render(t.props):t,{ref:t.ref},r(t.props.children)):r(t)}var z={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},O=e.i(47163),G=e.i(30374),B=e.i(94689),$=e.i(76937),H=e.i(7175);e.s(["Command",0,function({className:e,...r}){return(0,t.jsx)(E,{"data-slot":"command",className:(0,O.cn)("flex size-full flex-col overflow-hidden rounded-xl! bg-popover p-1 text-popover-foreground",e),...r})},"CommandDialog",0,function({title:e="Command Palette",description:r="Search for a command to run...",children:n,className:a,showCloseButton:o=!1,...i}){return(0,t.jsxs)(G.Dialog,{...i,children:[(0,t.jsxs)(G.DialogHeader,{className:"sr-only",children:[(0,t.jsx)(G.DialogTitle,{children:e}),(0,t.jsx)(G.DialogDescription,{children:r})]}),(0,t.jsx)(G.DialogContent,{className:(0,O.cn)("top-1/3 translate-y-0 overflow-hidden rounded-xl! p-0",a),showCloseButton:o,children:n})]})},"CommandEmpty",0,function({className:e,...r}){return(0,t.jsx)(E.Empty,{"data-slot":"command-empty",className:(0,O.cn)("py-6 text-center text-sm",e),...r})},"CommandGroup",0,function({className:e,...r}){return(0,t.jsx)(E.Group,{"data-slot":"command-group",className:(0,O.cn)("overflow-hidden p-1 text-foreground **:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:py-1.5 **:[[cmdk-group-heading]]:text-xs **:[[cmdk-group-heading]]:font-medium **:[[cmdk-group-heading]]:text-muted-foreground",e),...r})},"CommandInput",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"command-input-wrapper",className:"p-1 pb-0",children:(0,t.jsxs)(B.InputGroup,{className:"h-8! rounded-lg! border-input/30 bg-input/30 shadow-none! *:data-[slot=input-group-addon]:pl-2!",children:[(0,t.jsx)(E.Input,{"data-slot":"command-input",className:(0,O.cn)("w-full text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),...r}),(0,t.jsx)(B.InputGroupAddon,{children:(0,t.jsx)($.SearchIcon,{className:"size-4 shrink-0 opacity-50"})})]})})},"CommandItem",0,function({className:e,children:r,...n}){return(0,t.jsxs)(E.Item,{"data-slot":"command-item",className:(0,O.cn)("group/command-item relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none in-data-[slot=dialog-content]:rounded-lg! data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 data-selected:bg-muted data-selected:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-selected:*:[svg]:text-foreground",e),...n,children:[r,(0,t.jsx)(H.CheckIcon,{className:"ml-auto opacity-0 group-has-data-[slot=command-shortcut]/command-item:hidden group-data-[checked=true]/command-item:opacity-100"})]})},"CommandList",0,function({className:e,...r}){return(0,t.jsx)(E.List,{"data-slot":"command-list",className:(0,O.cn)("no-scrollbar max-h-72 scroll-py-1 overflow-x-hidden overflow-y-auto outline-none",e),...r})},"CommandShortcut",0,function({className:e,...r}){return(0,t.jsx)("span",{"data-slot":"command-shortcut",className:(0,O.cn)("ml-auto text-xs tracking-widest text-muted-foreground group-data-selected/command-item:text-foreground",e),...r})}],53751)},69035,e=>{"use strict";var t=e.i(76350),r=e.i(73576),n=e.i(20763),a=Object.defineProperty,o=(e,t)=>a(e,"name",{value:t,configurable:!0}),i="horizontal",l=["horizontal","vertical"],s=r.forwardRef(o(function(e,r){let{decorative:a,orientation:o=i,...l}=e,s=d(o)?o:i;return(0,t.jsx)(n.Primitive.div,{"data-orientation":s,...a?{role:"none"}:{"aria-orientation":"vertical"===s?s:void 0,role:"separator"},...l,ref:r})},"Separator"));function d(e){return l.includes(e)}
1o(d,"isValidOrientation"),e.s(["Root",0,s,"Separator",0,s],91865);var c=e.i(91865),c=c,u=e.i(47163);e.s(["Separator",0,function({className:e,orientation:r="horizontal",decorative:n=!0,...a}){return(0,t.jsx)(c.Root,{"data-slot":"separator",decorative:n,orientation:r,className:(0,u.cn)("shrink-0 bg-border data-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch",e),...a})}],69035)},60970,e=>{"use strict";let t=(0,e.i(16735).default)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);e.s(["PlusIcon",0,t],60970)},12612,(e,t,r)=>{t.exports=e.r(63435)},6308,e=>{"use strict";var t=e.i(76350),r=e.i(73576),n=e.i(60112),a=e.i(88886);let o="projects",i=r.createContext(null);e.s(["ProjectsProvider",0,function({seed:e,children:l}){let[s]=r.useState(()=>(function(e){let t=()=>(0,a.readDemoData)(o,e);function r(e){(0,a.writeDemoData)(o,e(t()))}return{listProjects:async()=>t(),async createProject({name:e,description:t}){let n={id:crypto.randomUUID(),name:e,description:t,updatedAt:new Date().toISOString()};return r(e=>[n,...e]),n},async updateProject(e,t){r(r=>r.map(r=>r.id===e?{...r,...t}:r))},async deleteProject(e){r(t=>t.filter(t=>t.id!==e))}}})(e)),[d,c]=r.useState([]),[u,p]=r.useState(!0);r.useEffect(()=>{let e=!0;return s.listProjects().then(t=>{e&&c(t)}).catch(()=>{e&&n.toast.error("Your projects could not be loaded.")}).finally(()=>{e&&p(!1)}),()=>{e=!1}},[s]);let f=r.useMemo(()=>{function e(e,t){c(e),t().catch(()=>{n.toast.error("That change could not be saved."),s.listProjects().then(c).catch(()=>{})})}return{projects:d,isLoading:u,getProject:e=>d.find(t=>t.id===e),createProject:async(e,t)=>{let r=await s.createProject({name:e,description:t});return c(e=>[r,...e]),r},updateProject:(t,r)=>e(e=>e.map(e=>e.id===t?{...e,...r}:e),()=>s.updateProject(t,r)),deleteProject:t=>e(e=>e.filter(e=>e.id!==t),()=>s.deleteProject(t))}},[d,u,s]);return(0,t.jsx)(i.Provider,{value:f,children:l})},"useProjects",0,function(){let e=r.useContext(i);if(!e)throw Error("useProjects must be used inside a ProjectsProvider");return e}],6308)},99449,e=>{"use strict";var t=e.i(76350),r=e.i(73576),n=e.i(12612),a=e.i(60112),o=e.i(67881),i=e.i(30374),l=e.i(23750),s=e.i(10708),d=e.i(84762),c=e.i(6308);e.s(["NewProjectDialog",0,function({open:e,onOpenChange:u,onCreated:p}){let{createProject:f}=(0,c.useProjects)(),m=(0,n.useRouter)(),[h,v]=r.useState(""),[g,x]=r.useState("");async function b(e){let t;e.preventDefault();let r=h.trim();if(r){try{t=await f(r,g.trim()||void 0)}catch{a.toast.error("That project could not be created.");return}if(v(""),x(""),u(!1),p)return void p(t.id);m.push(`/projects/${t.id}`)}}return(0,t.jsx)(i.Dialog,{open:e,onOpenChange:u,children:(0,t.jsx)(i.DialogContent,{children:(0,t.jsxs)("form",{onSubmit:b,className:"contents",children:[(0,t.jsxs)(i.DialogHeader,{children:[(0,t.jsx)(i.DialogTitle,{children:"New project"}),(0,t.jsx)(i.DialogDescription,{children:"Name it and say what it covers. Instructions and files come later."})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)(s.Label,{htmlFor:"project-name",children:"Name"}),(0,t.jsx)(l.Input,{id:"project-name",value:h,onChange:e=>v(e.target.value),placeholder:"Pricing revamp",autoFocus:!0})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsxs)(s.Label,{htmlFor:"project-description",children:["Description",(0,t.jsx)("span",{className:"font-normal text-muted-foreground",children:"(optional)"})]}),(0,t.jsx)(d.Textarea,{id:"project-description",value:g,onChange:e=>x(e.target.value),placeholder:"What this project covers",className:"min-h-20"})]})]}),(0,t.jsx)(i.DialogFooter,{children:(0,t.jsx)(o.Button,{type:"submit",disabled:!h.trim(),children:"Create project"})})]})})})}])},30374,e=>{"use strict";var t=e.i(76350),r=e.i(53316),n=e.i(47163),a=e.i(67881),o=e.i(46083);function i({...e}){return(0,t.jsx)(r.Dialog.Portal,{"data-slot":"dialog-portal",...e})}function l({className:e,...a}){return(0,t.jsx)(r.Dialog.Overlay,{"data-slot":"dialog-overlay",className:(0,n.cn)("fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",e),...a})}e.s(["Dialog",0,function({...e}){return(0,t.jsx)(r.Dialog.Root,{"data-slot":"dialog",...e})},"DialogContent",0,function({className:e,children:s,showCloseButton:d=!0,...c}){return(0,t.jsxs)(i,{children:[(0,t.jsx)(l,{}),(0,t.jsxs)(r.Dialog.Content,{"data-slot":"dialog-content",className:(0,n.cn)("fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 roun
1ded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...c,children:[s,d&&(0,t.jsx)(r.Dialog.Close,{"data-slot":"dialog-close",asChild:!0,children:(0,t.jsxs)(a.Button,{variant:"ghost",className:"absolute top-2 right-2",size:"icon-sm",children:[(0,t.jsx)(o.XIcon,{}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})})]})]})},"DialogDescription",0,function({className:e,...a}){return(0,t.jsx)(r.Dialog.Description,{"data-slot":"dialog-description",className:(0,n.cn)("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),...a})},"DialogFooter",0,function({className:e,showCloseButton:o=!1,children:i,...l}){return(0,t.jsxs)("div",{"data-slot":"dialog-footer",className:(0,n.cn)("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end",e),...l,children:[i,o&&(0,t.jsx)(r.Dialog.Close,{asChild:!0,children:(0,t.jsx)(a.Button,{variant:"outline",children:"Close"})})]})},"DialogHeader",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"dialog-header",className:(0,n.cn)("flex flex-col gap-2",e),...r})},"DialogTitle",0,function({className:e,...a}){return(0,t.jsx)(r.Dialog.Title,{"data-slot":"dialog-title",className:(0,n.cn)("font-heading text-base leading-none font-medium",e),...a})}])},10708,e=>{"use strict";var t=e.i(76350),r=e.i(73576),n=e.i(20763),a=Object.defineProperty,o=r.forwardRef(a(function(e,r){return(0,t.jsx)(n.Primitive.label,{...e,ref:r,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}})},"name",{value:"Label",configurable:!0}));e.s(["Label",0,o,"Root",0,o],95510);var i=e.i(95510),i=i,l=e.i(47163);e.s(["Label",0,function({className:e,...r}){return(0,t.jsx)(i.Root,{"data-slot":"label",className:(0,l.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...r})}],10708)},76937,e=>{"use strict";let t=(0,e.i(16735).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);e.s(["SearchIcon",0,t],76937)},43764,e=>{"use strict";let t=(0,e.i(16735).default)("folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);e.s(["FolderIcon",0,t],43764)},97683,e=>{"use strict";let t=(0,e.i(16735).default)("folder-plus",[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);e.s(["FolderPlusIcon",0,t],97683)},47408,e=>{"use strict";var t=e.i(55264);e.s(["Check",()=>t.default])},19740,e=>{"use strict";let t=(0,e.i(16735).default)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);e.s(["default",0,t])},56103,e=>{"use strict";var t=e.i(76350),r=e.i(73576),n=e.i(47163),a=e.i(67881),o=e.i(47408),i=e.i(19740),i=i;e.s(["CodeSnippet2",0,function({variant:e="block",className:r,...a}){return"inline"===e?(0,t.jsx)("code",{"data-slot":"code-snippet","data-variant":"inline",className:(0,n.cn)("inline-block rounded-lg bg-muted px-1.5 py-1 font-mono text-sm text-foreground",r),...a}):(0,t.jsx)("div",{"data-slot":"code-snippet","data-variant":"block",className:(0,n.cn)("flex flex-col overflow-hidden rounded-lg border bg-muted",r),...a})},"CodeSnippet2Body",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"code-snippet-body",className:(0,n.cn)("flex items-center gap-4 p-4 pr-2",e),...r})},"CodeSnippet2Code",0,function({className:e,...r}){return(0,t.jsx)("code",{"data-slot":"code-snippet-code",className:(0,n.cn)("min-w-0 flex-1 font-mono text-sm wrap-break-word whitespace-pre-wrap text-foreground",e),...r})},"CodeSnippet2Copy",0,function({value:e,className:l,onClick:s,onCopied:d,onCopyError:c,"aria-label":u="Copy code",...p}){let[f,m]=r.useState(!1);async function h(t){s?.(t);try{await navigator.clipboard.writeText(e),m(!0),d?.()}catch(e){c?.(e)}}return r.useEffect(()=>{if(!f)return;let e=window.setTimeout(()=>m(!1),2e3);return()=>window.clearTimeout(e)},[f]),(0,t.jsx)(a.Button,{"data-slot":"code-snippet-copy",variant:"ghost",size:"icon-xs",type:"button","aria-label":f?"Copied":u,className:(0,n.cn)("shrink-0",l),onClick:h,...p,children:f?(0,t.jsx)(o.Check,{}):(0,t.jsx)(i.default,{})})},"CodeSnippet2Filename",0,function({className:e,...r}){return(0,t.jsx)("span",{"data-slot":"code-snippet-filename",className:(0,n.cn)("truncate font-mono text-sm text-muted-foreground",e),...r})},"CodeSnippet2Header",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"code-snippet-header",className:(0,n.cn)("flex items-center justify-between gap-2 border-b p-2 pl-4",e),...r})}],56103)},8482,54946,e=>{"use strict";var t=e.i(76350),r=e.i(12612),n=e.i(30009),a=e.i(85460);e.s(["DeleteThreadDialog",0,function({threadId:e,title:o,activeThreadI
1d:i,open:l,onOpenChange:s}){let{deleteThread:d}=(0,a.useThreads)(),c=(0,r.useRouter)();return(0,t.jsx)(n.AlertDialog,{open:l,onOpenChange:s,children:(0,t.jsxs)(n.AlertDialogContent,{children:[(0,t.jsxs)(n.AlertDialogHeader,{children:[(0,t.jsx)(n.AlertDialogTitle,{children:"Delete chat?"}),(0,t.jsxs)(n.AlertDialogDescription,{children:["This will delete ",o?`"${o}"`:"this chat",". You cannot undo this."]})]}),(0,t.jsxs)(n.AlertDialogFooter,{children:[(0,t.jsx)(n.AlertDialogCancel,{children:"Cancel"}),(0,t.jsx)(n.AlertDialogAction,{variant:"destructive",onClick:function(){d(e),s(!1),e===i&&c.push("/chat")},children:"Delete"})]})]})})}],8482);var o=e.i(73576),i=e.i(60112),l=e.i(47163),s=e.i(56103),d=e.i(30374),c=e.i(94237),u=e.i(10708);e.i(69035);let p=(0,c.cva)("group/field flex w-full gap-2 data-[invalid=true]:text-destructive",{variants:{orientation:{vertical:"flex-col *:w-full [&>.sr-only]:w-auto",horizontal:"flex-row items-center has-[>[data-slot=field-content]]:items-start *:data-[slot=field-label]:flex-auto has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px",responsive:"flex-col *:w-full @md/field-group:flex-row @md/field-group:items-center @md/field-group:*:w-auto @md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:*:data-[slot=field-label]:flex-auto [&>.sr-only]:w-auto @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"}},defaultVariants:{orientation:"vertical"}});function f({className:e,orientation:r="vertical",...n}){return(0,t.jsx)("div",{role:"group","data-slot":"field","data-orientation":r,className:(0,l.cn)(p({orientation:r}),e),...n})}function m({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"field-content",className:(0,l.cn)("group/field-content flex flex-1 flex-col gap-0.5 leading-snug",e),...r})}function h({className:e,...r}){return(0,t.jsx)(u.Label,{"data-slot":"field-label",className:(0,l.cn)("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50 has-data-checked:border-primary/30 has-data-checked:bg-primary/5 has-[>[data-slot=field]]:rounded-lg has-[>[data-slot=field]]:border *:data-[slot=field]:p-2.5 dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10","has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col",e),...r})}function v({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"field-label",className:(0,l.cn)("flex w-fit items-center gap-2 text-sm font-medium group-data-[disabled=true]/field:opacity-50",e),...r})}function g({className:e,...r}){return(0,t.jsx)("p",{"data-slot":"field-description",className:(0,l.cn)("text-left text-sm leading-normal font-normal text-muted-foreground group-has-data-horizontal/field:text-balance [[data-variant=legend]+&]:-mt-1.5","last:mt-0 nth-last-2:-mt-1","[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",e),...r})}var x=e.i(43836),b=e.i(63275),j=e.i(93956),y=e.i(20763),w=e.i(17211),C=e.i(59586),k=e.i(7647),R=e.i(75199),I=e.i(83431),S=Object.defineProperty,D=(e,t)=>S(e,"name",{value:t,configurable:!0}),E="Radio",[P,N]=(0,j.createContextScope)(E),[A,M]=P(E);function T(e){let{__scopeRadio:r,checked:n=!1,children:a,disabled:i,form:l,name:s,onCheck:d,required:c,value:u="on",internal_do_not_use_render:p}=e,[f,m]=o.useState(null),[h,v]=o.useState(null),g=o.useRef(!1),[x,b]=o.useReducer(e=>e+1,0),j=!f||!!l||!!f.closest("form"),y={checked:n,disabled:i,required:c,name:s,form:l,value:u,control:f,setControl:m,hasConsumerStoppedPropagationRef:g,userInteractionCount:x,onUserInteraction:b,isFormControl:j,bubbleInput:h,setBubbleInput:v,onCheck:D(()=>d?.(),"onCheck")};return(0,t.jsx)(A,{scope:r,...y,children:O(p)?p(y):a})}D(T,"RadioProvider");var L=o.forwardRef(D(function({__scopeRadio:e,onClick:r,...n},a){let{checked:o,disabled:i,value:l,setControl:s,onCheck:d,hasConsumerStoppedPropagationRef:c,onUserInteraction:u,isFormControl:p,bubbleInput:f}=M("RadioTrigger",e),m=(0,b.useComposedRefs)(a,s);return(0,t.jsx)(y.Primitive.button,{type:"button",role:"radio","aria-checked":o,"data-state":G(o),"data-disabled":i?"":void 0,disabled:i,value:l,...n,ref:m,onClick:(0,x.composeEventHandlers)(r,e=>{o||(u(),d()),f&&p&&(c.current=e.isPropagationStopped(),c.current||e.stopPropagation())})})},"RadioTrigger")),F=o.forwardRef(D(function(e,r){let{__scopeRadio:n,forceMount:a,...o}=e,i=M("RadioIndicator",n);return(0,t.jsx)(I.Presence,{present:a||i.checked,children:(0,t.jsx)(y.Primitive.span,{"data-state":G(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:r})})},"RadioIndicator")),z=o.forwardRef(D(function({__scopeRadio:e,onClick:r,...n},a){let{control:i,checked:l,required:s,disabled:d,name:c,value:u,form:p,bubbleInput:f,setBubbleInput:m,hasConsumerStoppedPropagationRef:h,userInteractionCount:v}=M("RadioBubbleInput",e),g=(0,b.useComposedRefs)(a,m),j=(0,R.useSize)(i),w=o.useRef(!1),C=o.useRef(l),k=o.useRef(v);o.useEffect(()=>{if(!f)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,t=v!==k.current;k.current=v;let r=C.current!==l;C.current=l;let n=!(t&&h.current);if(r&&e){w.current=!t;let r=new Event("click",{bubbles:n});
1e.call(f,l),f.dispatchEvent(r),w.current=!1}},[f,l,h,v]);let I=o.useRef(l);return(0,t.jsx)(y.Primitive.input,{type:"radio","aria-hidden":!0,defaultChecked:I.current,required:s,disabled:d,name:c,value:u,form:p,...n,tabIndex:-1,ref:g,onClick:(0,x.composeEventHandlers)(r,e=>{w.current&&e.stopPropagation()}),style:{...n.style,...j,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})},"RadioBubbleInput"));function O(e){return"function"==typeof e}function G(e){return e?"checked":"unchecked"}D(O,"isFunction"),D(G,"getState");var B=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],$="RadioGroup",[H,_]=(0,j.createContextScope)($,[w.createRovingFocusGroupScope,N]),V=(0,w.createRovingFocusGroupScope)(),K=N(),[q,U]=H($),W=o.forwardRef(D(function(e,r){let{__scopeRadioGroup:n,name:a,form:i,defaultValue:l,value:s,required:d=!1,disabled:c=!1,orientation:u,dir:p,loop:f=!0,onValueChange:m,...h}=e,v=V(n),g=(0,k.useDirection)(p),[x,j]=(0,C.useControllableState)({prop:s,defaultProp:l??null,onChange:m,caller:$}),[R,I]=o.useState(null),S=(0,b.useComposedRefs)(r,I),E=o.useRef(x);return o.useEffect(()=>{let e=i?R?.ownerDocument.getElementById(i):R?.closest("form");if(e instanceof HTMLFormElement){let t=D(()=>j(E.current),"reset");return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[R,i,j]),(0,t.jsx)(q,{scope:n,name:a,form:i,required:d,disabled:c,value:x,onValueChange:j,children:(0,t.jsx)(w.Root,{asChild:!0,...v,orientation:u,dir:g,loop:f,children:(0,t.jsx)(y.Primitive.div,{role:"radiogroup","aria-required":d,"aria-orientation":u,"data-disabled":c?"":void 0,dir:g,...h,ref:S})})})},"RadioGroup"));function Z(e){let{__scopeRadioGroup:r,value:n,disabled:a,children:o,internal_do_not_use_render:i}=e,l=U("RadioGroupItemProvider",r),s=K(r),d=l.disabled||a;return(0,t.jsx)(T,{...s,checked:l.value===n,disabled:d,required:l.required,name:l.name,form:l.form,value:n,onCheck:()=>l.onValueChange(n),internal_do_not_use_render:i,children:o})}D(Z,"RadioGroupItemProvider");var X=o.forwardRef(D(function(e,r){let{__scopeRadioGroup:n,...a}=e,i=V(n),l=K(n),{checked:s,disabled:d}=M("RadioGroupItemTrigger",l.__scopeRadio),c=o.useRef(null),u=(0,b.useComposedRefs)(r,c),p=o.useRef(!1);return o.useEffect(()=>{let e=D(e=>{B.includes(e.key)&&(p.current=!0)},"handleKeyDown"),t=D(()=>p.current=!1,"handleKeyUp");return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}},[]),(0,t.jsx)(w.Item,{asChild:!0,...i,focusable:!d,active:s,children:(0,t.jsx)(L,{...l,...a,ref:u,onKeyDown:(0,x.composeEventHandlers)(a.onKeyDown,e=>{"Enter"===e.key&&e.preventDefault()}),onFocus:(0,x.composeEventHandlers)(a.onFocus,()=>{p.current&&c.current?.click()})})})},"RadioGroupItemTrigger")),Y=o.forwardRef(D(function(e,r){let{__scopeRadioGroup:n,value:a,disabled:o,...i}=e;return(0,t.jsx)(Z,{__scopeRadioGroup:n,value:a,disabled:o,internal_do_not_use_render:({isFormControl:e})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(X,{...i,ref:r,__scopeRadioGroup:n}),e&&(0,t.jsx)(J,{__scopeRadioGroup:n})]})})},"RadioGroupItem")),J=o.forwardRef(D(function(e,r){let{__scopeRadioGroup:n,...a}=e,o=K(n);return(0,t.jsx)(z,{...o,...a,ref:r})},"RadioGroupItemBubbleInput")),Q=o.forwardRef(D(function(e,r){let{__scopeRadioGroup:n,...a}=e,o=K(n);return(0,t.jsx)(F,{...o,...a,ref:r})},"RadioGroupIndicator"));e.s(["Indicator",0,Q,"Item",0,Y,"RadioGroup",0,W,"RadioGroupIndicator",0,Q,"RadioGroupItem",0,Y,"Root",0,W,"createRadioGroupScope",0,_,"unstable_ItemBubbleInput",0,J,"unstable_ItemProvider",0,Z,"unstable_ItemTrigger",0,X,"unstable_RadioGroupItemBubbleInput",0,J,"unstable_RadioGroupItemProvider",0,Z,"unstable_RadioGroupItemTrigger",0,X],50291);var ee=e.i(50291),ee=ee;function et({className:e,...r}){return(0,t.jsx)(ee.Root,{"data-slot":"radio-group",className:(0,l.cn)("grid w-full gap-2",e),...r})}function er({className:e,...r}){return(0,t.jsx)(ee.Item,{"data-slot":"radio-group-item",className:(0,l.cn)("group/radio-group-item peer relative flex aspect-square size-4 shrink-0 rounded-full border border-input outline-none after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary",e),...r,children:(0,t.jsx)(ee.Indicator,{"data-slot":"radio-group-indicator",className:"flex size-4 items-center justify-center",children:(0,t.jsx)("span",{className:"absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 roun
1ded-full bg-primary-foreground"})})})}let en=[{value:"private",title:"Keep private",description:"Only you have access"},{value:"team",title:"Share with your team",description:"Only teammates with the link can view"},{value:"public",title:"Create public link",description:"Anyone with the link can view"}],ea="https://chat.example.com/share/";e.s(["ShareDialog",0,function({threadId:e,open:r,onOpenChange:n,share:a,defaultVisibility:c="private",onCreateLink:u,onRevoke:p}){let x=o.useId(),[b,j]=o.useState(a?.visibility??c),[y,w]=o.useState(a?.url??("private"===c?null:`${ea}${e}`)),[C,k]=o.useState(!1),[R,I]=o.useState(!1),S=o.useRef(0);async function D(t){if(t===b)return;let r=++S.current;if(j(t),"private"===t){w(null),k(!1),p?.();return}if("private"!==b)return;k(!0);let n=await u?.(t)??await new Promise(t=>window.setTimeout(()=>t(`${ea}${e}`),700));r===S.current&&(w(n),k(!1))}return o.useEffect(()=>{if(!R)return;let e=window.setTimeout(()=>I(!1),2e3);return()=>window.clearTimeout(e)},[R]),(0,t.jsx)(d.Dialog,{open:r,onOpenChange:n,children:(0,t.jsxs)(d.DialogContent,{children:[(0,t.jsxs)(d.DialogHeader,{children:[(0,t.jsx)(d.DialogTitle,{children:"Share chat"}),(0,t.jsx)(d.DialogDescription,{children:"Only messages up to this point are shared. Anything sent later is not."})]}),(0,t.jsx)(et,{value:b,onValueChange:e=>void D(e),"aria-label":"Who can view this chat",children:en.map(e=>{let r=`${x}-${e.value}`;return(0,t.jsx)(h,{htmlFor:r,children:(0,t.jsxs)(f,{orientation:"horizontal",children:[(0,t.jsxs)(m,{children:[(0,t.jsx)(v,{children:e.title}),(0,t.jsx)(g,{children:e.description})]}),(0,t.jsx)(er,{value:e.value,id:r})]})},e.value)})}),(0,t.jsx)("span",{"aria-live":"polite",className:"sr-only",children:C?"Creating link":R?"Link copied":""}),y||C?(0,t.jsx)(s.CodeSnippet2,{children:(0,t.jsxs)(s.CodeSnippet2Body,{children:[(0,t.jsx)(s.CodeSnippet2Code,{className:(0,l.cn)("line-clamp-1",y?void 0:"text-muted-foreground"),children:y??"Creating link..."}),(0,t.jsx)(s.CodeSnippet2Copy,{value:y??"","aria-label":"Copy link",onCopied:()=>I(!0),onCopyError:()=>i.toast.error("Couldn't copy the link. Select it and press ⌘C."),disabled:C})]})}):null]})})}],54946)},73363,e=>{"use strict";var t=e.i(76350),r=e.i(73576),n=e.i(7175),a=e.i(43764);let o=(0,e.i(16735).default)("folder-minus",[["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);var i=e.i(60970),l=e.i(53751),s=e.i(85460),d=e.i(99449),c=e.i(6308);e.s(["AddToProjectDialog",0,function({threadId:e,open:u,onOpenChange:p}){let{projects:f}=(0,c.useProjects)(),{getThread:m,setThreadProject:h}=(0,s.useThreads)(),[v,g]=r.useState(!1),x=m(e)?.projectId;function b(t){h(e,t),p(!1)}return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.CommandDialog,{open:u,onOpenChange:p,title:"Add to project",description:"Move this chat into a project.",children:(0,t.jsxs)(l.Command,{children:[(0,t.jsx)(l.CommandInput,{placeholder:"Search projects..."}),(0,t.jsxs)(l.CommandList,{children:[(0,t.jsx)(l.CommandEmpty,{children:"No projects found."}),f.length>0?(0,t.jsx)(l.CommandGroup,{heading:"Projects",children:f.map(e=>(0,t.jsxs)(l.CommandItem,{value:e.name,onSelect:()=>b(e.id),children:[(0,t.jsx)(a.FolderIcon,{}),(0,t.jsx)("span",{className:"flex-1 truncate",children:e.name}),e.id===x?(0,t.jsx)(n.CheckIcon,{className:"text-muted-foreground"}):null]},e.id))}):null,(0,t.jsxs)(l.CommandGroup,{heading:"Actions",children:[(0,t.jsxs)(l.CommandItem,{value:"New project",onSelect:()=>{p(!1),g(!0)},children:[(0,t.jsx)(i.PlusIcon,{}),"New project"]}),x?(0,t.jsxs)(l.CommandItem,{value:"Remove from project",onSelect:()=>b(void 0),children:[(0,t.jsx)(o,{}),"Remove from project"]}):null]})]})]})}),(0,t.jsx)(d.NewProjectDialog,{open:v,onOpenChange:g,onCreated:t=>h(e,t)})]})}],73363)}]);

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.