module.exports=[19478,a=>{"use strict";let b=(0,a.i(68324).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);a.s(["Check",0,b],19478)},47885,94332,59039,a=>{"use strict";var b=a.i(19234),c=a.i(92495),d=a.i(28296);let e=(0,a.i(68324).default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);a.s(["ChevronDown",0,e],94332);var f=a.i(19478);let g="text-zinc-700 hover:bg-zinc-100 dark:text-zinc-300 dark:hover:bg-zinc-800",h="bg-violet-50 text-violet-900 dark:bg-violet-500/15 dark:text-violet-100";a.s(["listItemChevronIdle",0,"text-zinc-300 dark:text-zinc-600","listItemChevronSelected",0,"text-violet-400 dark:text-violet-500","listItemIconIdle",0,"text-zinc-400","listItemIconSelected",0,"text-violet-600 dark:text-violet-400","listItemIdle",0,g,"listItemSelected",0,h,"listItemSelectedNeutral",0,"bg-zinc-100 text-zinc-900 dark:bg-zinc-800 dark:text-zinc-50","listItemSubtitleIdle",0,"text-zinc-400 dark:text-zinc-500","listItemSubtitleSelected",0,"text-violet-600 dark:text-violet-300"],59039);let i={default:"px-4 py-2.5 text-sm",sm:"px-2.5 py-1.5 text-xs"};a.s(["Select",0,function({id:a,value:j,onChange:k,options:l,placeholder:m="Select an option",className:n="",size:o="default",disabled:p=!1,ariaLabel:q,menuPlacement:r="down",menuClassName:s=""}){let[t,u]=(0,c.useState)(!1),v=(0,c.useRef)(null),w=(0,c.useRef)(null),x=(0,c.useRef)(null),[y,z]=(0,c.useState)(null),A=l.find(a=>a.value===j),B="u"<typeof document?null:document.body;return(0,c.useEffect)(()=>{function a(a){let b=a.target;v.current&&!v.current.contains(b)&&x.current&&!x.current.contains(b)&&u(!1)}return document.addEventListener("mousedown",a),()=>document.removeEventListener("mousedown",a)},[]),(0,c.useEffect)(()=>{if(t)return a(),window.addEventListener("resize",a),window.addEventListener("scroll",a,!0),()=>{window.removeEventListener("resize",a),window.removeEventListener("scroll",a,!0)};function a(){let a=w.current?.getBoundingClientRect();a&&z({top:"up"===r?a.top:a.bottom,left:a.left,minWidth:a.width,transform:"up"===r?"translateY(calc(-100% - 4px))":"translateY(4px)"})}},[t,r]),(0,b.jsxs)("div",{ref:v,className:`relative ${n}`,children:[(0,b.jsxs)("button",{type:"button",id:a,ref:w,disabled:p,"aria-label":q??m,onClick:()=>!p&&u(!t),className:`flex w-full items-center justify-between gap-2 rounded-lg border border-zinc-200 bg-white text-zinc-900 outline-none transition focus:border-violet-500 disabled:cursor-not-allowed disabled:opacity-50 dark:border-zinc-700 dark:bg-zinc-950 dark:text-zinc-100 ${i[o]}`,children:[(0,b.jsx)("span",{className:`min-w-0 truncate ${A?"":"text-zinc-400"}`,children:A?A.selectedLabel??A.label:m}),(0,b.jsx)(e,{className:`shrink-0 text-zinc-400 transition-transform ${"sm"===o?"h-3.5 w-3.5":"h-4 w-4"} ${t?"rotate-180":""}`})]}),t&&y&&B&&(0,d.createPortal)((0,b.jsx)("div",{ref:x,className:`fixed z-[220] max-h-60 overflow-auto rounded-lg border border-zinc-200 bg-white py-1 text-sm shadow-lg dark:border-zinc-800 dark:bg-zinc-950 ${s||""}`,style:y,children:l.map(a=>(0,b.jsxs)("button",{type:"button",disabled:a.disabled,onClick:()=>{k({target:{value:a.value}}),u(!1)},className:`flex w-full items-center justify-between px-4 py-2 text-left font-medium transition ${a.disabled?"cursor-not-allowed opacity-50":""} ${a.value===j?h:g}`,children:[(0,b.jsx)("span",{className:"truncate",children:a.label}),a.value===j&&(0,b.jsx)(f.Check,{className:"ml-2 h-4 w-4 shrink-0"})]},a.value))}),B)]})}],47885)},56442,a=>{"use strict";let b=(0,a.i(68324).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"}]]);a.s(["Copy",0,b],56442)},9908,a=>{"use strict";function b(a){if("run_chunk"!==a.type)return;let b=a.payload;if(b?.runId&&b.agentId&&b.kind)return b}function c(a){let c=b(a);return c?`${c.runId}:${c.agentId}:${c.kind}`:void 0}function d(a,c){let d=b(a),e=b(c);return{...a,payload:{...a.payload,delta:`${d?.delta??""}${e?.delta??""}`}}}a.s(["collapseRunChunkActivities",0,function(a){let b=[];for(let e of a){if("run_chunk"!==e.type){b.push(e);continue}let a=b[b.length-1],f=c(e);if(a?.type==="run_chunk"&&f&&c(a)===f){b[b.length-1]=d(a,e);continue}b.push(e)}return b},"mergeRunChunkActivity",0,d,"runChunkActivityKey",0,c])},37113,a=>{"use strict";let b=(0,a.i(68324).default)("circle-question-mark",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);a.s(["HelpCircle",0,b],37113)},3451,a=>{a.v(a=>Promise.resolve().then(()=>a(37770)))}];

//# sourceMappingURL=_0jpggos._.js.map