@tickernelz/paperclip-pro-ui 2026.1007.2 → 2026.1008.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{AgentAvatar-CJxUMdmk.js → AgentAvatar-SJDPbZfK.js} +1 -1
- package/dist/assets/{AgentIdentity-D9ti_IEi.js → AgentIdentity-BW3dAZQD.js} +1 -1
- package/dist/assets/{Agents.production-CQk3vdUE.js → Agents.production-BG82xP3I.js} +2 -2
- package/dist/assets/{CompanyActivity.production-CYOblDJ_.js → CompanyActivity.production-woUD9oNT.js} +1 -1
- package/dist/assets/{CompanyExport-fZQCAxR3.js → CompanyExport-B7LRHKGs.js} +4 -4
- package/dist/assets/{CompanySkills.production-DZ9QO3Qb.js → CompanySkills.production-DObYIR8Z.js} +2 -2
- package/dist/assets/Costs.production--VN7RT_9.js +1 -0
- package/dist/assets/{EmptyState-BZtI8X0G.js → EmptyState-Cpsu2EbU.js} +1 -1
- package/dist/assets/{MarkdownBody-C_h6YRQp.js → MarkdownBody-DRqRjF-_.js} +8 -8
- package/dist/assets/{MarkdownEditor-BOTosEGR.js → MarkdownEditor-DqSHOPon.js} +2 -2
- package/dist/assets/{OrgChart.production-DKLPpvm-.js → OrgChart.production-DIn23yrs.js} +1 -1
- package/dist/assets/{PageSkeleton-Cy0AuFsD.js → PageSkeleton-Boeat-pa.js} +1 -1
- package/dist/assets/{RoutineDetail.production-Cgm2eWNX.js → RoutineDetail.production-B0SwbVFq.js} +1 -1
- package/dist/assets/{RoutineRunVariablesDialog-DCnWm09I.js → RoutineRunVariablesDialog-BHfjTN1x.js} +2 -2
- package/dist/assets/{Routines.production-BfGvfmpS.js → Routines.production-CG5ixad2.js} +1 -1
- package/dist/assets/{SidebarContext-zupbpsOa.js → SidebarContext--Pt-RovF.js} +1 -1
- package/dist/assets/{StatusIcon-mIm27nQw.js → StatusIcon-CMOBM0cz.js} +1 -1
- package/dist/assets/{agent-avatar-url-BcyFoVtv.js → agent-avatar-url-COB3FyNh.js} +10 -10
- package/dist/assets/{agents-DQx-dvSi.js → agents-Bce8O2iW.js} +1 -1
- package/dist/assets/{badge-BqqBOTVc.js → badge-CUxm7Dtn.js} +1 -1
- package/dist/assets/{bot-DKL-W8OH.js → bot-Dsp1n_bc.js} +1 -1
- package/dist/assets/{boxes-tcjFwFpA.js → boxes-B17SB309.js} +3 -3
- package/dist/assets/{button-BY21O8GT.js → button-B-wjguAV.js} +1 -1
- package/dist/assets/{card-De_lOmuE.js → card-DBEYqFNF.js} +1 -1
- package/dist/assets/{check-CnODEUG9.js → check-BMyl919B.js} +1 -1
- package/dist/assets/{checkbox-I5XQmb-K.js → checkbox-iAfQowi2.js} +1 -1
- package/dist/assets/{chevron-down-DFUcku8q.js → chevron-down-CUaHIP4O.js} +1 -1
- package/dist/assets/{chevron-right-B6d9r4Ro.js → chevron-right-Dz0Hakt6.js} +1 -1
- package/dist/assets/{clipboard-DHhOZMRn.js → clipboard-B0eiwEg1.js} +1 -1
- package/dist/assets/{company-members-Dzwzy-as.js → company-members-2JwSIlm7.js} +1 -1
- package/dist/assets/{definition-CZKX1H5T.js → definition-BCKL7Z75.js} +1 -1
- package/dist/assets/{dist-BCtf-vM2.js → dist-CKsixJWn.js} +1 -1
- package/dist/assets/{dist-C42YHTVB.js → dist-L4Fio05O.js} +1 -1
- package/dist/assets/{environments-B7NZX_ky.js → environments-BAip07cp.js} +1 -1
- package/dist/assets/{external-link-C19HtmzW.js → external-link-C16DZ_8E.js} +1 -1
- package/dist/assets/{file-text-CeE8_Vjy.js → file-text-CGuZU4dO.js} +1 -1
- package/dist/assets/{health-CQndBw_N.js → health-Boo6Fbfs.js} +1 -1
- package/dist/assets/{heartbeats-DF-m9cYQ.js → heartbeats-C0D9bcc5.js} +1 -1
- package/dist/assets/{index-Cblntx1v.js → index-DlP9bxBd.js} +156 -156
- package/dist/assets/{input-B204XBDT.js → input-D907RXni.js} +1 -1
- package/dist/assets/{label-CZQ8NWbL.js → label-DghWCun3.js} +1 -1
- package/dist/assets/{loader-circle-Bq0tfpSr.js → loader-circle-BqmoALPC.js} +1 -1
- package/dist/assets/{mention-chips-D_n_qKFh.js → mention-chips-gWjq0PC7.js} +1 -1
- package/dist/assets/{octagon-alert-D4baqyHT.js → octagon-alert-CnEZnFXW.js} +1 -1
- package/dist/assets/{rotate-ccw-LNlo9y5X.js → rotate-ccw-lfP1J5rp.js} +1 -1
- package/dist/assets/{router-DesWEj2C.js → router-BOhyEQ-H.js} +3 -3
- package/dist/assets/{save-DDenfr8W.js → save-COX6cDHs.js} +1 -1
- package/dist/assets/{select-CTeNTKSP.js → select-BA5jC_nQ.js} +1 -1
- package/dist/assets/{sheet-DaK7uiF0.js → sheet-BByJ5Lv5.js} +1 -1
- package/dist/assets/skeleton-D17djeDO.js +1 -0
- package/dist/assets/{tabs-De8GZtQI.js → tabs-DIoJxDqx.js} +1 -1
- package/dist/assets/{triangle-alert-6xzP6adj.js → triangle-alert-CDiu0Pgq.js} +1 -1
- package/dist/assets/{use-adapter-capabilities-BoIn6U4T.js → use-adapter-capabilities-qYdYowvE.js} +1 -1
- package/dist/assets/{useHiddenSettings-Cx5eN_RQ.js → useHiddenSettings-DscFeNyr.js} +1 -1
- package/dist/index.html +45 -45
- package/dist/sw.js +1 -1
- package/package.json +1 -1
- package/dist/assets/Costs.production-DGzfBw_5.js +0 -1
- package/dist/assets/skeleton-CLIvalUo.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
var ct=Object.defineProperty;var s=(t,e)=>ct(t,"name",{value:e,configurable:!0});import{i as ye}from"./rolldown-runtime-ZpX3ckPj.js";import{Ai as it,Oi as ut,S as _,a as pe,c as me,f as dt,i as Q,l as N,m as A,n as ge,r as re,s as C,t as he,u as lt}from"./agent-avatar-url-BcyFoVtv.js";import{Z as ft}from"./mention-chips-D_n_qKFh.js";import{a as pt,i as mt,n as gt,r as je,t as ht}from"./dist-BCtf-vM2.js";import{S as xt,_ as vt,b as bt,f as Ct,g as Mt,h as wt,m as Pe,p as Ee,u as _t,x as Dt,y as It}from"./boxes-tcjFwFpA.js";import{C as xe,D as kt,E as St,O as Rt,S as yt,T as jt,_ as Pt,b as Et,g as Tt,h as Ot,k as Nt,v as At,w as zt,y as Lt}from"./MarkdownEditor-BOTosEGR.js";import{t as Te}from"./check-CnODEUG9.js";import{t as Ft}from"./chevron-right-B6d9r4Ro.js";import{A as Gt,t as $t}from"./button-BY21O8GT.js";var i=ye(it(),1),o=ye(ut(),1),Kt=Object.defineProperty,O=s((t,e)=>Kt(t,"name",{value:e,configurable:!0}),"__name$2"),ve="Checkbox",[Bt,Ao]=me(ve),[Ut,be]=Bt(ve);function Oe(t){const{__scopeCheckbox:e,checked:r,children:n,defaultChecked:a,disabled:c,form:u,name:d,onCheckedChange:f,required:p,value:x="on",internal_do_not_use_render:g}=t,[l,m]=pe({prop:r,defaultProp:a??!1,onChange:f,caller:ve}),[b,M]=i.useState(null),[k,P]=i.useState(null),S=i.useRef(!1),[w,R]=i.useReducer(y=>y+1,0),L=b?!!u||!!b.closest("form"):!0,K={checked:l,disabled:c,setChecked:m,control:b,setControl:M,name:d,form:u,value:x,hasConsumerStoppedPropagationRef:S,userInteractionCount:w,onUserInteraction:R,required:p,defaultChecked:T(a)?!1:a,isFormControl:L,bubbleInput:k,setBubbleInput:P};return(0,o.jsx)(Ut,{scope:e,...K,children:Ne(g)?g(K):n})}s(Oe,"CheckboxProvider");O(Oe,"CheckboxProvider");var Vt="CheckboxTrigger",Xt=i.forwardRef(O(s(function({__scopeCheckbox:e,onKeyDown:r,onClick:n,...a},c){const{control:u,value:d,disabled:f,checked:p,required:x,setControl:g,setChecked:l,hasConsumerStoppedPropagationRef:m,onUserInteraction:b,isFormControl:M,bubbleInput:k}=be(Vt,e),P=A(c,g),S=i.useRef(p);return i.useEffect(()=>{const w=u?.form;if(w){const R=O(()=>l(S.current),"reset");return w.addEventListener("reset",R),()=>w.removeEventListener("reset",R)}},[u,l]),(0,o.jsx)(N.button,{type:"button",role:"checkbox","aria-checked":T(p)?"mixed":p,"aria-required":x,"data-state":Ce(p),"data-disabled":f?"":void 0,disabled:f,value:d,...a,ref:P,onKeyDown:C(r,w=>{w.key==="Enter"&&w.preventDefault()}),onClick:C(n,w=>{b(),l(R=>T(R)?!0:!R),k&&M&&(m.current=w.isPropagationStopped(),m.current||w.stopPropagation())})})},"CheckboxTrigger2"),"CheckboxTrigger")),Yt=i.forwardRef(O(s(function(e,r){const{__scopeCheckbox:n,name:a,checked:c,defaultChecked:u,required:d,disabled:f,value:p,onCheckedChange:x,form:g,...l}=e;return(0,o.jsx)(Oe,{__scopeCheckbox:n,checked:c,defaultChecked:u,disabled:f,required:d,onCheckedChange:x,name:a,form:g,value:p,internal_do_not_use_render:s(({isFormControl:m})=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Xt,{...l,ref:r,__scopeCheckbox:n}),m&&(0,o.jsx)(Zt,{__scopeCheckbox:n})]}),"internal_do_not_use_render")})},"Checkbox2"),"Checkbox")),qt="CheckboxIndicator",Ht=i.forwardRef(O(s(function(e,r){const{__scopeCheckbox:n,forceMount:a,...c}=e,u=be(qt,n);return(0,o.jsx)(Q,{present:a||T(u.checked)||u.checked===!0,children:(0,o.jsx)(N.span,{"data-state":Ce(u.checked),"data-disabled":u.disabled?"":void 0,...c,ref:r,style:{pointerEvents:"none",...e.style}})})},"CheckboxIndicator2"),"CheckboxIndicator")),Wt="CheckboxBubbleInput",Zt=i.forwardRef(O(s(function({__scopeCheckbox:e,onClick:r,...n},a){const{control:c,hasConsumerStoppedPropagationRef:u,userInteractionCount:d,checked:f,defaultChecked:p,required:x,disabled:g,name:l,value:m,form:b,bubbleInput:M,setBubbleInput:k}=be(Wt,e),P=A(a,k),S=wt(c),w=i.useRef(!1),R=i.useRef(f),L=i.useRef(d);i.useEffect(()=>{const y=M;if(!y)return;const B=window.HTMLInputElement.prototype,te=Object.getOwnPropertyDescriptor(B,"checked").set,F=d!==L.current;L.current=d;const U=R.current!==f;R.current=f;const ie=!(F&&u.current);if(U&&te){w.current=!F;const H=new Event("click",{bubbles:ie});y.indeterminate=T(f),te.call(y,T(f)?!1:f),y.dispatchEvent(H),w.current=!1}},[M,f,u,d]);const K=i.useRef(T(f)?!1:f);return(0,o.jsx)(N.input,{type:"checkbox","aria-hidden":!0,defaultChecked:p??K.current,required:x,disabled:g,name:l,value:m,form:b,...n,tabIndex:-1,ref:P,onClick:C(r,y=>{w.current&&y.stopPropagation()}),style:{...n.style,...S,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})},"CheckboxBubbleInput2"),"CheckboxBubbleInput"));function Ne(t){return typeof t=="function"}s(Ne,"isFunction");O(Ne,"isFunction");function T(t){return t==="indeterminate"}s(T,"isIndeterminate$1");O(T,"isIndeterminate");function Ce(t){return T(t)?"indeterminate":t?"checked":"unchecked"}s(Ce,"getState");O(Ce,"getState");var Jt=Object.defineProperty,v=s((t,e)=>Jt(t,"name",{value:e,configurable:!0}),"__name$1"),le=["Enter"," "],Qt=["ArrowDown","PageUp","Home"],Ae=["ArrowUp","PageDown","End"],en=[...Qt,...Ae],tn={ltr:[...le,"ArrowRight"],rtl:[...le,"ArrowLeft"]},nn={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ae="Menu",[Z,on,rn]=pt(ae),[$,ze]=me(ae,[rn,Pe,je]),se=Pe(),Le=je(),[Fe,z]=$(ae),[an,ee]=$(ae),sn=v(t=>{const{__scopeMenu:e,open:r=!1,children:n,dir:a,onOpenChange:c,modal:u=!0}=t,d=se(e),[f,p]=i.useState(null),x=i.useRef(!1),g=ge(c),l=mt(a);return i.useEffect(()=>{const m=v(()=>{x.current=!0,document.addEventListener("pointerdown",b,{capture:!0,once:!0}),document.addEventListener("pointermove",b,{capture:!0,once:!0})},"handleKeyDown"),b=v(()=>x.current=!1,"handlePointer");return document.addEventListener("keydown",m,{capture:!0}),()=>{document.removeEventListener("keydown",m,{capture:!0}),document.removeEventListener("pointerdown",b,{capture:!0}),document.removeEventListener("pointermove",b,{capture:!0})}},[]),i.useEffect(()=>{if(!r)return;const m=v(()=>g(!1),"handleBlur");return window.addEventListener("blur",m),()=>window.removeEventListener("blur",m)},[r,g]),(0,o.jsx)(Ee,{...d,children:(0,o.jsx)(Fe,{scope:e,open:r,onOpenChange:g,content:f,onContentChange:p,children:(0,o.jsx)(an,{scope:e,onClose:i.useCallback(()=>g(!1),[g]),isUsingKeyboardRef:x,dir:l,modal:u,children:n})})})},"Menu"),Ge=i.forwardRef(v(s(function(e,r){const{__scopeMenu:n,...a}=e,c=se(n);return(0,o.jsx)(_t,{...c,...a,ref:r})},"MenuAnchor2"),"MenuAnchor")),$e="MenuPortal",[cn,Ke]=$($e,{forceMount:void 0}),un=v(t=>{const{__scopeMenu:e,forceMount:r,children:n,container:a}=t,c=z($e,e);return(0,o.jsx)(cn,{scope:e,forceMount:r,children:(0,o.jsx)(Q,{present:r||c.open,children:(0,o.jsx)(bt,{asChild:!0,container:a,children:n})})})},"MenuPortal"),j="MenuContent",[dn,Me]=$(j),ln=i.forwardRef(v(s(function(e,r){const n=Ke(j,e.__scopeMenu),{forceMount:a=n.forceMount,...c}=e,u=z(j,e.__scopeMenu),d=ee(j,e.__scopeMenu);return(0,o.jsx)(Z.Provider,{scope:e.__scopeMenu,children:(0,o.jsx)(Q,{present:a||u.open,children:(0,o.jsx)(Z.Slot,{scope:e.__scopeMenu,children:d.modal?(0,o.jsx)(fn,{...c,ref:r}):(0,o.jsx)(pn,{...c,ref:r})})})})},"MenuContent2"),"MenuContent")),fn=i.forwardRef(v(s(function(e,r){const n=z(j,e.__scopeMenu),a=i.useRef(null),c=A(r,a);return i.useEffect(()=>{const u=a.current;if(u)return Mt(u)},[]),(0,o.jsx)(we,{...e,ref:c,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:C(e.onFocusOutside,u=>u.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:s(()=>n.onOpenChange(!1),"onDismiss")})},"MenuRootContentModal2"),"MenuRootContentModal")),pn=i.forwardRef(v(s(function(e,r){const n=z(j,e.__scopeMenu);return(0,o.jsx)(we,{...e,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:s(()=>n.onOpenChange(!1),"onDismiss")})},"MenuRootContentNonModal2"),"MenuRootContentNonModal")),mn=dt("MenuContent.ScrollLock"),we=i.forwardRef(v(s(function(e,r){const{__scopeMenu:n,loop:a=!1,trapFocus:c,onOpenAutoFocus:u,onCloseAutoFocus:d,disableOutsidePointerEvents:f,onEntryFocus:p,onEscapeKeyDown:x,onPointerDownOutside:g,onFocusOutside:l,onInteractOutside:m,onDismiss:b,disableOutsideScroll:M,...k}=e,P=z(j,n),S=ee(j,n),w=se(n),R=Le(n),L=on(n),[K,y]=i.useState(null),B=i.useRef(null),te=A(r,B,P.onContentChange),F=i.useRef(0),U=i.useRef(""),ie=i.useRef(0),H=i.useRef(null),ke=i.useRef("right"),ue=i.useRef(0),rt=M?vt:i.Fragment,at=M?{as:mn,allowPinchZoom:!0}:void 0,st=v(h=>{const X=U.current+h,G=L().filter(E=>!E.disabled),W=document.activeElement,de=G.find(E=>E.ref.current===W)?.textValue,ne=We(G.map(E=>E.textValue),X,de),Y=G.find(E=>E.textValue===ne)?.ref.current;v(s((function E(Se){U.current=Se,window.clearTimeout(F.current),Se!==""&&(F.current=window.setTimeout(()=>E(""),1e3))}),"updateSearch"),"updateSearch")(X),Y&&setTimeout(()=>Y.focus())},"handleTypeaheadSearch");i.useEffect(()=>()=>window.clearTimeout(F.current),[]),It();const V=i.useCallback(h=>ke.current===H.current?.side&&Je(h,H.current?.area),[]);return(0,o.jsx)(dn,{scope:n,searchRef:U,onItemEnter:i.useCallback(h=>{V(h)&&h.preventDefault()},[V]),onItemLeave:i.useCallback(h=>{V(h)||(B.current?.focus(),y(null))},[V]),onTriggerLeave:i.useCallback(h=>{V(h)&&h.preventDefault()},[V]),pointerGraceTimerRef:ie,onPointerGraceIntentChange:i.useCallback(h=>{H.current=h},[]),children:(0,o.jsx)(rt,{...at,children:(0,o.jsx)(Dt,{asChild:!0,trapped:c,onMountAutoFocus:C(u,h=>{h.preventDefault(),B.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:d,children:(0,o.jsx)(xt,{asChild:!0,disableOutsidePointerEvents:f,onEscapeKeyDown:x,onPointerDownOutside:g,onFocusOutside:l,onInteractOutside:m,onDismiss:b,children:(0,o.jsx)(gt,{asChild:!0,...R,dir:S.dir,orientation:"vertical",loop:a,currentTabStopId:K,onCurrentTabStopIdChange:y,onEntryFocus:C(p,h=>{S.isUsingKeyboardRef.current||h.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,o.jsx)(Ct,{role:"menu","aria-orientation":"vertical","data-state":De(P.open),"data-radix-menu-content":"",dir:S.dir,...w,...k,ref:te,style:{outline:"none",...k.style},onKeyDown:C(k.onKeyDown,h=>{const X=h.target.closest("[data-radix-menu-content]")===h.currentTarget,G=h.ctrlKey||h.altKey||h.metaKey,W=h.key.length===1;X&&(h.key==="Tab"&&h.preventDefault(),!G&&W&&st(h.key));const de=B.current;if(h.target!==de||!en.includes(h.key))return;h.preventDefault();const ne=L().filter(Y=>!Y.disabled).map(Y=>Y.ref.current);Ae.includes(h.key)&&ne.reverse(),qe(ne)}),onBlur:C(e.onBlur,h=>{h.currentTarget.contains(h.target)||(window.clearTimeout(F.current),U.current="")}),onPointerMove:C(e.onPointerMove,q(h=>{const X=h.target,G=ue.current!==h.clientX;if(h.currentTarget.contains(X)&&G){const W=h.clientX>ue.current?"right":"left";ke.current=W,ue.current=h.clientX}}))})})})})})})},"MenuContentImpl2"),"MenuContentImpl")),gn=i.forwardRef(v(s(function(e,r){const{__scopeMenu:n,...a}=e;return(0,o.jsx)(N.div,{role:"group",...a,ref:r})},"MenuGroup2"),"MenuGroup")),hn=i.forwardRef(v(s(function(e,r){const{__scopeMenu:n,...a}=e;return(0,o.jsx)(N.div,{...a,ref:r})},"MenuLabel2"),"MenuLabel")),fe="MenuItem",Re="menu.itemSelect",_e=i.forwardRef(v(s(function(e,r){const{disabled:n=!1,onSelect:a,...c}=e,u=i.useRef(null),d=ee(fe,e.__scopeMenu),f=Me(fe,e.__scopeMenu),p=A(r,u),x=i.useRef(!1),g=v(()=>{const l=u.current;if(!n&&l){const m=new CustomEvent(Re,{bubbles:!0,cancelable:!0});l.addEventListener(Re,b=>a?.(b),{once:!0}),lt(l,m),m.defaultPrevented?x.current=!1:d.onClose()}},"handleSelect");return(0,o.jsx)(Be,{...c,ref:p,disabled:n,onClick:C(e.onClick,g),onPointerDown:s(l=>{e.onPointerDown?.(l),x.current=!0},"onPointerDown"),onPointerUp:C(e.onPointerUp,l=>{x.current||l.currentTarget?.click()}),onKeyDown:C(e.onKeyDown,l=>{n||l.target!==l.currentTarget||f.searchRef.current!==""&&l.key===" "||le.includes(l.key)&&(l.currentTarget.click(),l.preventDefault())})})},"MenuItem2"),"MenuItem")),Be=i.forwardRef(v(s(function(e,r){const{__scopeMenu:n,disabled:a=!1,textValue:c,...u}=e,d=Me(fe,n),f=Le(n),p=i.useRef(null),x=A(r,p),[g,l]=i.useState(!1),[m,b]=i.useState("");return i.useEffect(()=>{const M=p.current;M&&b((M.textContent??"").trim())},[u.children]),(0,o.jsx)(Z.ItemSlot,{scope:n,disabled:a,textValue:c??m,children:(0,o.jsx)(ht,{asChild:!0,...f,focusable:!a,children:(0,o.jsx)(N.div,{role:"menuitem","data-highlighted":g?"":void 0,"aria-disabled":a||void 0,"data-disabled":a?"":void 0,...u,ref:x,onPointerMove:C(e.onPointerMove,q(M=>{a?d.onItemLeave(M):(d.onItemEnter(M),M.defaultPrevented||M.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:C(e.onPointerLeave,q(M=>d.onItemLeave(M))),onFocus:C(e.onFocus,()=>l(!0)),onBlur:C(e.onBlur,()=>l(!1))})})})},"MenuItemImpl2"),"MenuItemImpl")),xn=i.forwardRef(v(s(function(e,r){const{checked:n=!1,onCheckedChange:a,...c}=e;return(0,o.jsx)(Ve,{scope:e.__scopeMenu,checked:n,children:(0,o.jsx)(_e,{role:"menuitemcheckbox","aria-checked":J(n)?"mixed":n,...c,ref:r,"data-state":ce(n),onSelect:C(c.onSelect,()=>a?.(J(n)?!0:!n),{checkForDefaultPrevented:!1})})})},"MenuCheckboxItem2"),"MenuCheckboxItem")),[vn,bn]=$("MenuRadioGroup",{value:void 0,onValueChange:v(()=>{},"onValueChange")}),Cn=i.forwardRef(v(s(function(e,r){const{value:n,onValueChange:a,...c}=e,u=ge(a);return(0,o.jsx)(vn,{scope:e.__scopeMenu,value:n,onValueChange:u,children:(0,o.jsx)(gn,{...c,ref:r})})},"MenuRadioGroup2"),"MenuRadioGroup")),Mn="MenuRadioItem",wn=i.forwardRef(v(s(function(e,r){const{value:n,...a}=e,c=bn(Mn,e.__scopeMenu),u=n===c.value;return(0,o.jsx)(Ve,{scope:e.__scopeMenu,checked:u,children:(0,o.jsx)(_e,{role:"menuitemradio","aria-checked":u,...a,ref:r,"data-state":ce(u),onSelect:C(a.onSelect,()=>c.onValueChange?.(n),{checkForDefaultPrevented:!1})})})},"MenuRadioItem2"),"MenuRadioItem")),Ue="MenuItemIndicator",[Ve,_n]=$(Ue,{checked:!1}),Dn=i.forwardRef(v(s(function(e,r){const{__scopeMenu:n,forceMount:a,...c}=e,u=_n(Ue,n);return(0,o.jsx)(Q,{present:a||J(u.checked)||u.checked===!0,children:(0,o.jsx)(N.span,{...c,ref:r,"data-state":ce(u.checked)})})},"MenuItemIndicator2"),"MenuItemIndicator")),In=i.forwardRef(v(s(function(e,r){const{__scopeMenu:n,...a}=e;return(0,o.jsx)(N.div,{role:"separator","aria-orientation":"horizontal",...a,ref:r})},"MenuSeparator2"),"MenuSeparator")),Xe="MenuSub",[kn,Ye]=$(Xe),Sn=v(t=>{const{__scopeMenu:e,children:r,open:n=!1,onOpenChange:a}=t,c=z(Xe,e),u=se(e),[d,f]=i.useState(null),[p,x]=i.useState(null),g=ge(a);return i.useEffect(()=>(c.open===!1&&g(!1),()=>g(!1)),[c.open,g]),(0,o.jsx)(Ee,{...u,children:(0,o.jsx)(Fe,{scope:e,open:n,onOpenChange:g,content:p,onContentChange:x,children:(0,o.jsx)(kn,{scope:e,contentId:re(),triggerId:re(),trigger:d,onTriggerChange:f,children:r})})})},"MenuSub"),oe="MenuSubTrigger",Rn=i.forwardRef(v(s(function(e,r){const n=z(oe,e.__scopeMenu),a=ee(oe,e.__scopeMenu),c=Ye(oe,e.__scopeMenu),u=Me(oe,e.__scopeMenu),d=i.useRef(null),{pointerGraceTimerRef:f,onPointerGraceIntentChange:p}=u,x={__scopeMenu:e.__scopeMenu},g=i.useCallback(()=>{d.current&&window.clearTimeout(d.current),d.current=null},[]);i.useEffect(()=>g,[g]),i.useEffect(()=>{const m=f.current;return()=>{window.clearTimeout(m),p(null)}},[f,p]);const l=A(r,c.onTriggerChange);return(0,o.jsx)(Ge,{asChild:!0,...x,children:(0,o.jsx)(Be,{id:c.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":n.open?c.contentId:void 0,"data-state":De(n.open),...e,ref:l,onClick:s(m=>{e.onClick?.(m),!(e.disabled||m.defaultPrevented)&&(m.currentTarget.focus(),n.open||n.onOpenChange(!0))},"onClick"),onPointerMove:C(e.onPointerMove,q(m=>{u.onItemEnter(m),!m.defaultPrevented&&!e.disabled&&!n.open&&!d.current&&(u.onPointerGraceIntentChange(null),d.current=window.setTimeout(()=>{n.onOpenChange(!0),g()},100))})),onPointerLeave:C(e.onPointerLeave,q(m=>{g();const b=n.content?.getBoundingClientRect();if(b){const M=n.content?.dataset.side,k=M==="right",P=k?-5:5,S=b[k?"left":"right"],w=b[k?"right":"left"];u.onPointerGraceIntentChange({area:[{x:m.clientX+P,y:m.clientY},{x:S,y:b.top},{x:w,y:b.top},{x:w,y:b.bottom},{x:S,y:b.bottom}],side:M}),window.clearTimeout(f.current),f.current=window.setTimeout(()=>u.onPointerGraceIntentChange(null),300)}else{if(u.onTriggerLeave(m),m.defaultPrevented)return;u.onPointerGraceIntentChange(null)}})),onKeyDown:C(e.onKeyDown,m=>{e.disabled||m.target!==m.currentTarget||u.searchRef.current!==""&&m.key===" "||tn[a.dir].includes(m.key)&&(n.onOpenChange(!0),n.content?.focus(),m.preventDefault())})})})},"MenuSubTrigger2"),"MenuSubTrigger")),yn="MenuSubContent",jn=i.forwardRef(v(s(function(e,r){const n=Ke(j,e.__scopeMenu),{forceMount:a=n.forceMount,align:c="start",...u}=e,d=z(j,e.__scopeMenu),f=ee(j,e.__scopeMenu),p=Ye(yn,e.__scopeMenu),x=i.useRef(null),g=A(r,x);return(0,o.jsx)(Z.Provider,{scope:e.__scopeMenu,children:(0,o.jsx)(Q,{present:a||d.open,children:(0,o.jsx)(Z.Slot,{scope:e.__scopeMenu,children:(0,o.jsx)(we,{id:p.contentId,"aria-labelledby":p.triggerId,...u,ref:g,align:c,side:f.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:s(l=>{f.isUsingKeyboardRef.current&&x.current?.focus(),l.preventDefault()},"onOpenAutoFocus"),onCloseAutoFocus:s(l=>l.preventDefault(),"onCloseAutoFocus"),onFocusOutside:C(e.onFocusOutside,l=>{l.target!==p.trigger&&d.onOpenChange(!1)}),onEscapeKeyDown:C(e.onEscapeKeyDown,l=>{f.onClose(),l.preventDefault()}),onKeyDown:C(e.onKeyDown,l=>{const m=l.currentTarget.contains(l.target),b=nn[f.dir].includes(l.key);m&&b&&(d.onOpenChange(!1),p.trigger?.focus(),l.preventDefault())})})})})})},"MenuSubContent2"),"MenuSubContent"));function De(t){return t?"open":"closed"}s(De,"getOpenState");v(De,"getOpenState");function J(t){return t==="indeterminate"}s(J,"isIndeterminate");v(J,"isIndeterminate");function ce(t){return J(t)?"indeterminate":t?"checked":"unchecked"}s(ce,"getCheckedState");v(ce,"getCheckedState");function qe(t){const e=document.activeElement;for(const r of t)if(r===e||(r.focus(),document.activeElement!==e))return}s(qe,"focusFirst");v(qe,"focusFirst");function He(t,e){return t.map((r,n)=>t[(e+n)%t.length])}s(He,"wrapArray");v(He,"wrapArray");function We(t,e,r){const n=e.length>1&&Array.from(e).every(d=>d===e[0])?e[0]:e,a=r?t.indexOf(r):-1;let c=He(t,Math.max(a,0));n.length===1&&(c=c.filter(d=>d!==r));const u=c.find(d=>d.toLowerCase().startsWith(n.toLowerCase()));return u!==r?u:void 0}s(We,"getNextMatch");v(We,"getNextMatch");function Ze(t,e){const{x:r,y:n}=t;let a=!1;for(let c=0,u=e.length-1;c<e.length;u=c++){const d=e[c],f=e[u],p=d.x,x=d.y,g=f.x,l=f.y;x>n!=l>n&&r<(g-p)*(n-x)/(l-x)+p&&(a=!a)}return a}s(Ze,"isPointInPolygon");v(Ze,"isPointInPolygon");function Je(t,e){return e?Ze({x:t.clientX,y:t.clientY},e):!1}s(Je,"isPointerInGraceArea");v(Je,"isPointerInGraceArea");function q(t){return e=>e.pointerType==="mouse"?t(e):void 0}s(q,"whenMouse");v(q,"whenMouse");var Pn=sn,En=Ge,Tn=un,On=ln,Nn=hn,An=_e,zn=xn,Ln=Cn,Fn=wn,Gn=Dn,$n=In,Kn=Sn,Bn=Rn,Un=jn,Vn=Object.defineProperty,D=s((t,e)=>Vn(t,"name",{value:e,configurable:!0}),"__name"),Ie="DropdownMenu",[Xn,zo]=me(Ie,[ze]),I=ze(),[Yn,Qe]=Xn(Ie),qn=D(t=>{const{__scopeDropdownMenu:e,children:r,dir:n,open:a,defaultOpen:c,onOpenChange:u,modal:d=!0}=t,f=I(e),p=i.useRef(null),[x,g]=pe({prop:a,defaultProp:c??!1,onChange:u,caller:Ie});return(0,o.jsx)(Yn,{scope:e,triggerId:re(),triggerRef:p,contentId:re(),open:x,onOpenChange:g,onOpenToggle:i.useCallback(()=>g(l=>!l),[g]),modal:d,children:(0,o.jsx)(Pn,{...f,open:x,onOpenChange:g,dir:n,modal:d,children:r})})},"DropdownMenu"),Hn="DropdownMenuTrigger",Wn=i.forwardRef(D(s(function(e,r){const{__scopeDropdownMenu:n,disabled:a=!1,...c}=e,u=Qe(Hn,n),d=I(n),f=A(r,u.triggerRef);return(0,o.jsx)(En,{asChild:!0,...d,children:(0,o.jsx)(N.button,{type:"button",id:u.triggerId,"aria-haspopup":"menu","aria-expanded":u.open,"aria-controls":u.open?u.contentId:void 0,"data-state":u.open?"open":"closed","data-disabled":a?"":void 0,disabled:a,...c,ref:f,onPointerDown:C(e.onPointerDown,p=>{!a&&p.button===0&&p.ctrlKey===!1&&(u.onOpenToggle(),u.open||p.preventDefault())}),onKeyDown:C(e.onKeyDown,p=>{a||(["Enter"," "].includes(p.key)&&u.onOpenToggle(),p.key==="ArrowDown"&&u.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(p.key)&&p.preventDefault())})})})},"DropdownMenuTrigger2"),"DropdownMenuTrigger")),Zn=D(t=>{const{__scopeDropdownMenu:e,...r}=t,n=I(e);return(0,o.jsx)(Tn,{...n,...r})},"DropdownMenuPortal"),Jn="DropdownMenuContent",Qn=i.forwardRef(D(s(function(e,r){const{__scopeDropdownMenu:n,...a}=e,c=Qe(Jn,n),u=I(n),d=i.useRef(!1);return(0,o.jsx)(On,{id:c.contentId,"aria-labelledby":c.triggerId,...u,...a,ref:r,onCloseAutoFocus:C(e.onCloseAutoFocus,f=>{d.current||c.triggerRef.current?.focus(),d.current=!1,f.preventDefault()}),onInteractOutside:C(e.onInteractOutside,f=>{const p=f.detail.originalEvent,x=p.button===0&&p.ctrlKey===!0,g=p.button===2||x;(!c.modal||g)&&(d.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})},"DropdownMenuContent2"),"DropdownMenuContent")),eo=i.forwardRef(D(s(function(e,r){const{__scopeDropdownMenu:n,...a}=e,c=I(n);return(0,o.jsx)(Nn,{...c,...a,ref:r})},"DropdownMenuLabel2"),"DropdownMenuLabel")),to=i.forwardRef(D(s(function(e,r){const{__scopeDropdownMenu:n,...a}=e,c=I(n);return(0,o.jsx)(An,{...c,...a,ref:r})},"DropdownMenuItem2"),"DropdownMenuItem")),no=i.forwardRef(D(s(function(e,r){const{__scopeDropdownMenu:n,...a}=e,c=I(n);return(0,o.jsx)(zn,{...c,...a,ref:r})},"DropdownMenuCheckboxItem2"),"DropdownMenuCheckboxItem")),oo=i.forwardRef(D(s(function(e,r){const{__scopeDropdownMenu:n,...a}=e,c=I(n);return(0,o.jsx)(Ln,{...c,...a,ref:r})},"DropdownMenuRadioGroup2"),"DropdownMenuRadioGroup")),ro=i.forwardRef(D(s(function(e,r){const{__scopeDropdownMenu:n,...a}=e,c=I(n);return(0,o.jsx)(Fn,{...c,...a,ref:r})},"DropdownMenuRadioItem2"),"DropdownMenuRadioItem")),ao=i.forwardRef(D(s(function(e,r){const{__scopeDropdownMenu:n,...a}=e,c=I(n);return(0,o.jsx)(Gn,{...c,...a,ref:r})},"DropdownMenuItemIndicator2"),"DropdownMenuItemIndicator")),so=i.forwardRef(D(s(function(e,r){const{__scopeDropdownMenu:n,...a}=e,c=I(n);return(0,o.jsx)($n,{...c,...a,ref:r})},"DropdownMenuSeparator2"),"DropdownMenuSeparator")),co=D(t=>{const{__scopeDropdownMenu:e,children:r,open:n,onOpenChange:a,defaultOpen:c}=t,u=I(e),[d,f]=pe({prop:n,defaultProp:c??!1,onChange:a,caller:"DropdownMenuSub"});return(0,o.jsx)(Kn,{...u,open:d,onOpenChange:f,children:r})},"DropdownMenuSub"),io=i.forwardRef(D(s(function(e,r){const{__scopeDropdownMenu:n,...a}=e,c=I(n);return(0,o.jsx)(Bn,{...c,...a,ref:r})},"DropdownMenuSubTrigger2"),"DropdownMenuSubTrigger")),uo=i.forwardRef(D(s(function(e,r){const{__scopeDropdownMenu:n,...a}=e,c=I(n);return(0,o.jsx)(Un,{...c,...a,ref:r,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})},"DropdownMenuSubContent2"),"DropdownMenuSubContent")),lo=qn,fo=Wn,po=Zn,mo=Qn,go=eo,ho=to,xo=no,vo=oo,bo=ro,et=ao,Co=so,Mo=co,wo=io,_o=uo,tt={name:"ellipsis",size:24,node:[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],aliases:["more-horizontal"]};tt.node;var Lo=he(tt),nt={name:"eye",size:24,node:[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]};nt.node;var Fo=he(nt),ot={name:"trash",size:24,node:[["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"}]],aliases:["trash-2"]};ot.node;var Go=he(ot);function $o({...t}){return(0,o.jsx)(lo,{"data-slot":"dropdown-menu",...t})}s($o,"DropdownMenu");function Ko({...t}){return(0,o.jsx)(fo,{"data-slot":"dropdown-menu-trigger",...t})}s(Ko,"DropdownMenuTrigger");function Bo({className:t,sideOffset:e=4,...r}){return(0,o.jsx)(po,{children:(0,o.jsx)(mo,{"data-slot":"dropdown-menu-content",sideOffset:e,className:_("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-(--sz-8rem) origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",t),...r})})}s(Bo,"DropdownMenuContent");function Uo({className:t,inset:e,variant:r="default",...n}){return(0,o.jsx)(ho,{"data-slot":"dropdown-menu-item","data-inset":e,"data-variant":r,className:_("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...n})}s(Uo,"DropdownMenuItem");function Vo({className:t,children:e,checked:r,...n}){return(0,o.jsxs)(xo,{"data-slot":"dropdown-menu-checkbox-item",className:_("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),checked:r,...n,children:[(0,o.jsx)("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:(0,o.jsx)(et,{children:(0,o.jsx)(Te,{className:"size-4"})})}),e]})}s(Vo,"DropdownMenuCheckboxItem");function Xo({...t}){return(0,o.jsx)(vo,{"data-slot":"dropdown-menu-radio-group",...t})}s(Xo,"DropdownMenuRadioGroup");function Yo({className:t,children:e,...r}){return(0,o.jsxs)(bo,{"data-slot":"dropdown-menu-radio-item",className:_("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...r,children:[(0,o.jsx)("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:(0,o.jsx)(et,{children:(0,o.jsx)(Gt,{className:"size-2 fill-current"})})}),e]})}s(Yo,"DropdownMenuRadioItem");function qo({className:t,inset:e,...r}){return(0,o.jsx)(go,{"data-slot":"dropdown-menu-label","data-inset":e,className:_("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",t),...r})}s(qo,"DropdownMenuLabel");function Ho({className:t,...e}){return(0,o.jsx)(Co,{"data-slot":"dropdown-menu-separator",className:_("bg-border -mx-1 my-1 h-px",t),...e})}s(Ho,"DropdownMenuSeparator");function Wo({className:t,...e}){return(0,o.jsx)("span",{"data-slot":"dropdown-menu-shortcut",className:_("text-muted-foreground ml-auto text-xs tracking-widest",t),...e})}s(Wo,"DropdownMenuShortcut");function Zo({...t}){return(0,o.jsx)(Mo,{"data-slot":"dropdown-menu-sub",...t})}s(Zo,"DropdownMenuSub");function Jo({className:t,inset:e,children:r,...n}){return(0,o.jsxs)(wo,{"data-slot":"dropdown-menu-sub-trigger","data-inset":e,className:_("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...n,children:[r,(0,o.jsx)(Ft,{className:"ml-auto size-4"})]})}s(Jo,"DropdownMenuSubTrigger");function Qo({className:t,...e}){return(0,o.jsx)(_o,{"data-slot":"dropdown-menu-sub-content",className:_("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-(--sz-8rem) origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",t),...e})}s(Qo,"DropdownMenuSubContent");function er({delayDuration:t=0,...e}){return(0,o.jsx)(At,{"data-slot":"tooltip-provider",delayDuration:t,...e})}s(er,"TooltipProvider");function tr({...t}){return(0,o.jsx)(Lt,{"data-slot":"tooltip",...t})}s(tr,"Tooltip");function nr({...t}){return(0,o.jsx)(Et,{"data-slot":"tooltip-trigger",...t})}s(nr,"TooltipTrigger");function or({className:t,sideOffset:e=0,children:r,...n}){return(0,o.jsx)(Pt,{children:(0,o.jsxs)(Tt,{"data-slot":"tooltip-content",sideOffset:e,className:_("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",t),...n,children:[r,(0,o.jsx)(Ot,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-(--sz-calc-28) rotate-45 rounded-(--rad-2)"})]})})}s(or,"TooltipContent");function rr({...t}){return(0,o.jsx)(yt,{"data-slot":"dialog",...t})}s(rr,"Dialog");function ar({...t}){return(0,o.jsx)(Nt,{"data-slot":"dialog-trigger",...t})}s(ar,"DialogTrigger");function Do({...t}){return(0,o.jsx)(kt,{"data-slot":"dialog-portal",...t})}s(Do,"DialogPortal");function sr({...t}){return(0,o.jsx)(xe,{"data-slot":"dialog-close",...t})}s(sr,"DialogClose");function Io({className:t,...e}){return(0,o.jsx)(St,{"data-slot":"dialog-overlay",className:_("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 duration-100 motion-reduce:animate-none motion-reduce:transition-none",t),...e})}s(Io,"DialogOverlay");function cr({className:t,children:e,showCloseButton:r=!0,...n}){return(0,o.jsxs)(Do,{"data-slot":"dialog-portal",children:[(0,o.jsx)(Io,{}),(0,o.jsxs)(zt,{"data-slot":"dialog-content",className:_("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-[0.97] data-[state=open]:zoom-in-[0.97] data-[state=closed]:slide-out-to-top-[1%] data-[state=open]:slide-in-from-top-[1%] fixed top-(--sz-calc-26) md:top-(--pct-50) left-(--pct-50) z-50 grid w-full max-w-(--sz-calc-25) translate-x-(--pct-neg-50) translate-y-0 md:translate-y-(--pct-neg-50) gap-4 rounded-lg border p-6 shadow-lg duration-150 ease-(--e-cubic-bezier-0_16-1-0_3-1) outline-none sm:max-w-lg [&>*]:min-w-0 motion-reduce:animate-none motion-reduce:transition-none",t),...n,children:[e,r&&(0,o.jsxs)(xe,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[(0,o.jsx)(ft,{}),(0,o.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}s(cr,"DialogContent");function ir({className:t,...e}){return(0,o.jsx)("div",{"data-slot":"dialog-header",className:_("flex flex-col gap-2 text-center sm:text-left",t),...e})}s(ir,"DialogHeader");function ur({className:t,showCloseButton:e=!1,children:r,...n}){return(0,o.jsxs)("div",{"data-slot":"dialog-footer",className:_("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),...n,children:[r,e&&(0,o.jsx)(xe,{asChild:!0,children:(0,o.jsx)($t,{variant:"outline",children:"Close"})})]})}s(ur,"DialogFooter");function dr({className:t,...e}){return(0,o.jsx)(Rt,{"data-slot":"dialog-title",className:_("text-lg leading-none font-semibold",t),...e})}s(dr,"DialogTitle");function lr({className:t,...e}){return(0,o.jsx)(jt,{"data-slot":"dialog-description",className:_("text-muted-foreground text-sm",t),...e})}s(lr,"DialogDescription");function fr({className:t,...e}){return(0,o.jsx)("textarea",{"data-slot":"textarea",className:_("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 min-w-0 w-full max-w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-(--tp-color-box-shadow) outline-none focus-visible:ring-(length:--rad-3) disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",t),...e})}s(fr,"Textarea");function pr({className:t,...e}){return(0,o.jsx)(Yt,{"data-slot":"checkbox",className:_("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-(--rad-4) border shadow-xs transition-shadow outline-none focus-visible:ring-(length:--rad-3) disabled:cursor-not-allowed disabled:opacity-50",t),...e,children:(0,o.jsx)(Ht,{"data-slot":"checkbox-indicator",className:"grid place-content-center text-current transition-none",children:(0,o.jsx)(Te,{className:"size-3.5"})})})}s(pr,"Checkbox");export{Fo as A,Ho as C,Jo as D,Qo as E,Ko as O,Yo as S,Zo as T,Vo as _,cr as a,qo as b,ir as c,ar as d,tr as f,$o as g,nr as h,sr as i,Lo as j,Go as k,Do as l,er as m,fr as n,lr as o,or as p,rr as r,ur as s,pr as t,dr as u,Bo as v,Wo as w,Xo as x,Uo as y};
|
|
1
|
+
var ct=Object.defineProperty;var s=(t,e)=>ct(t,"name",{value:e,configurable:!0});import{i as ye}from"./rolldown-runtime-ZpX3ckPj.js";import{S as _,a as pe,c as me,f as it,i as Q,ji as ut,ki as dt,l as N,m as A,n as ge,r as re,s as C,t as he,u as lt}from"./agent-avatar-url-COB3FyNh.js";import{Z as ft}from"./mention-chips-gWjq0PC7.js";import{a as pt,i as mt,n as gt,r as je,t as ht}from"./dist-CKsixJWn.js";import{S as xt,_ as vt,b as bt,f as Ct,g as Mt,h as wt,m as Pe,p as Ee,u as _t,x as Dt,y as It}from"./boxes-B17SB309.js";import{C as xe,D as kt,E as St,O as Rt,S as yt,T as jt,_ as Pt,b as Et,g as Tt,h as Ot,k as Nt,v as At,w as zt,y as Lt}from"./MarkdownEditor-DqSHOPon.js";import{t as Te}from"./check-BMyl919B.js";import{t as Ft}from"./chevron-right-Dz0Hakt6.js";import{A as Gt,t as $t}from"./button-B-wjguAV.js";var i=ye(ut(),1),o=ye(dt(),1),Kt=Object.defineProperty,O=s((t,e)=>Kt(t,"name",{value:e,configurable:!0}),"__name$2"),ve="Checkbox",[Bt,Ao]=me(ve),[Ut,be]=Bt(ve);function Oe(t){const{__scopeCheckbox:e,checked:r,children:n,defaultChecked:a,disabled:c,form:u,name:d,onCheckedChange:f,required:p,value:x="on",internal_do_not_use_render:g}=t,[l,m]=pe({prop:r,defaultProp:a??!1,onChange:f,caller:ve}),[b,M]=i.useState(null),[k,P]=i.useState(null),S=i.useRef(!1),[w,R]=i.useReducer(y=>y+1,0),L=b?!!u||!!b.closest("form"):!0,K={checked:l,disabled:c,setChecked:m,control:b,setControl:M,name:d,form:u,value:x,hasConsumerStoppedPropagationRef:S,userInteractionCount:w,onUserInteraction:R,required:p,defaultChecked:T(a)?!1:a,isFormControl:L,bubbleInput:k,setBubbleInput:P};return(0,o.jsx)(Ut,{scope:e,...K,children:Ne(g)?g(K):n})}s(Oe,"CheckboxProvider");O(Oe,"CheckboxProvider");var Vt="CheckboxTrigger",Xt=i.forwardRef(O(s(function({__scopeCheckbox:e,onKeyDown:r,onClick:n,...a},c){const{control:u,value:d,disabled:f,checked:p,required:x,setControl:g,setChecked:l,hasConsumerStoppedPropagationRef:m,onUserInteraction:b,isFormControl:M,bubbleInput:k}=be(Vt,e),P=A(c,g),S=i.useRef(p);return i.useEffect(()=>{const w=u?.form;if(w){const R=O(()=>l(S.current),"reset");return w.addEventListener("reset",R),()=>w.removeEventListener("reset",R)}},[u,l]),(0,o.jsx)(N.button,{type:"button",role:"checkbox","aria-checked":T(p)?"mixed":p,"aria-required":x,"data-state":Ce(p),"data-disabled":f?"":void 0,disabled:f,value:d,...a,ref:P,onKeyDown:C(r,w=>{w.key==="Enter"&&w.preventDefault()}),onClick:C(n,w=>{b(),l(R=>T(R)?!0:!R),k&&M&&(m.current=w.isPropagationStopped(),m.current||w.stopPropagation())})})},"CheckboxTrigger2"),"CheckboxTrigger")),Yt=i.forwardRef(O(s(function(e,r){const{__scopeCheckbox:n,name:a,checked:c,defaultChecked:u,required:d,disabled:f,value:p,onCheckedChange:x,form:g,...l}=e;return(0,o.jsx)(Oe,{__scopeCheckbox:n,checked:c,defaultChecked:u,disabled:f,required:d,onCheckedChange:x,name:a,form:g,value:p,internal_do_not_use_render:s(({isFormControl:m})=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Xt,{...l,ref:r,__scopeCheckbox:n}),m&&(0,o.jsx)(Zt,{__scopeCheckbox:n})]}),"internal_do_not_use_render")})},"Checkbox2"),"Checkbox")),qt="CheckboxIndicator",Ht=i.forwardRef(O(s(function(e,r){const{__scopeCheckbox:n,forceMount:a,...c}=e,u=be(qt,n);return(0,o.jsx)(Q,{present:a||T(u.checked)||u.checked===!0,children:(0,o.jsx)(N.span,{"data-state":Ce(u.checked),"data-disabled":u.disabled?"":void 0,...c,ref:r,style:{pointerEvents:"none",...e.style}})})},"CheckboxIndicator2"),"CheckboxIndicator")),Wt="CheckboxBubbleInput",Zt=i.forwardRef(O(s(function({__scopeCheckbox:e,onClick:r,...n},a){const{control:c,hasConsumerStoppedPropagationRef:u,userInteractionCount:d,checked:f,defaultChecked:p,required:x,disabled:g,name:l,value:m,form:b,bubbleInput:M,setBubbleInput:k}=be(Wt,e),P=A(a,k),S=wt(c),w=i.useRef(!1),R=i.useRef(f),L=i.useRef(d);i.useEffect(()=>{const y=M;if(!y)return;const B=window.HTMLInputElement.prototype,te=Object.getOwnPropertyDescriptor(B,"checked").set,F=d!==L.current;L.current=d;const U=R.current!==f;R.current=f;const ie=!(F&&u.current);if(U&&te){w.current=!F;const H=new Event("click",{bubbles:ie});y.indeterminate=T(f),te.call(y,T(f)?!1:f),y.dispatchEvent(H),w.current=!1}},[M,f,u,d]);const K=i.useRef(T(f)?!1:f);return(0,o.jsx)(N.input,{type:"checkbox","aria-hidden":!0,defaultChecked:p??K.current,required:x,disabled:g,name:l,value:m,form:b,...n,tabIndex:-1,ref:P,onClick:C(r,y=>{w.current&&y.stopPropagation()}),style:{...n.style,...S,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})},"CheckboxBubbleInput2"),"CheckboxBubbleInput"));function Ne(t){return typeof t=="function"}s(Ne,"isFunction");O(Ne,"isFunction");function T(t){return t==="indeterminate"}s(T,"isIndeterminate$1");O(T,"isIndeterminate");function Ce(t){return T(t)?"indeterminate":t?"checked":"unchecked"}s(Ce,"getState");O(Ce,"getState");var Jt=Object.defineProperty,v=s((t,e)=>Jt(t,"name",{value:e,configurable:!0}),"__name$1"),le=["Enter"," "],Qt=["ArrowDown","PageUp","Home"],Ae=["ArrowUp","PageDown","End"],en=[...Qt,...Ae],tn={ltr:[...le,"ArrowRight"],rtl:[...le,"ArrowLeft"]},nn={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ae="Menu",[Z,on,rn]=pt(ae),[$,ze]=me(ae,[rn,Pe,je]),se=Pe(),Le=je(),[Fe,z]=$(ae),[an,ee]=$(ae),sn=v(t=>{const{__scopeMenu:e,open:r=!1,children:n,dir:a,onOpenChange:c,modal:u=!0}=t,d=se(e),[f,p]=i.useState(null),x=i.useRef(!1),g=ge(c),l=mt(a);return i.useEffect(()=>{const m=v(()=>{x.current=!0,document.addEventListener("pointerdown",b,{capture:!0,once:!0}),document.addEventListener("pointermove",b,{capture:!0,once:!0})},"handleKeyDown"),b=v(()=>x.current=!1,"handlePointer");return document.addEventListener("keydown",m,{capture:!0}),()=>{document.removeEventListener("keydown",m,{capture:!0}),document.removeEventListener("pointerdown",b,{capture:!0}),document.removeEventListener("pointermove",b,{capture:!0})}},[]),i.useEffect(()=>{if(!r)return;const m=v(()=>g(!1),"handleBlur");return window.addEventListener("blur",m),()=>window.removeEventListener("blur",m)},[r,g]),(0,o.jsx)(Ee,{...d,children:(0,o.jsx)(Fe,{scope:e,open:r,onOpenChange:g,content:f,onContentChange:p,children:(0,o.jsx)(an,{scope:e,onClose:i.useCallback(()=>g(!1),[g]),isUsingKeyboardRef:x,dir:l,modal:u,children:n})})})},"Menu"),Ge=i.forwardRef(v(s(function(e,r){const{__scopeMenu:n,...a}=e,c=se(n);return(0,o.jsx)(_t,{...c,...a,ref:r})},"MenuAnchor2"),"MenuAnchor")),$e="MenuPortal",[cn,Ke]=$($e,{forceMount:void 0}),un=v(t=>{const{__scopeMenu:e,forceMount:r,children:n,container:a}=t,c=z($e,e);return(0,o.jsx)(cn,{scope:e,forceMount:r,children:(0,o.jsx)(Q,{present:r||c.open,children:(0,o.jsx)(bt,{asChild:!0,container:a,children:n})})})},"MenuPortal"),j="MenuContent",[dn,Me]=$(j),ln=i.forwardRef(v(s(function(e,r){const n=Ke(j,e.__scopeMenu),{forceMount:a=n.forceMount,...c}=e,u=z(j,e.__scopeMenu),d=ee(j,e.__scopeMenu);return(0,o.jsx)(Z.Provider,{scope:e.__scopeMenu,children:(0,o.jsx)(Q,{present:a||u.open,children:(0,o.jsx)(Z.Slot,{scope:e.__scopeMenu,children:d.modal?(0,o.jsx)(fn,{...c,ref:r}):(0,o.jsx)(pn,{...c,ref:r})})})})},"MenuContent2"),"MenuContent")),fn=i.forwardRef(v(s(function(e,r){const n=z(j,e.__scopeMenu),a=i.useRef(null),c=A(r,a);return i.useEffect(()=>{const u=a.current;if(u)return Mt(u)},[]),(0,o.jsx)(we,{...e,ref:c,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:C(e.onFocusOutside,u=>u.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:s(()=>n.onOpenChange(!1),"onDismiss")})},"MenuRootContentModal2"),"MenuRootContentModal")),pn=i.forwardRef(v(s(function(e,r){const n=z(j,e.__scopeMenu);return(0,o.jsx)(we,{...e,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:s(()=>n.onOpenChange(!1),"onDismiss")})},"MenuRootContentNonModal2"),"MenuRootContentNonModal")),mn=it("MenuContent.ScrollLock"),we=i.forwardRef(v(s(function(e,r){const{__scopeMenu:n,loop:a=!1,trapFocus:c,onOpenAutoFocus:u,onCloseAutoFocus:d,disableOutsidePointerEvents:f,onEntryFocus:p,onEscapeKeyDown:x,onPointerDownOutside:g,onFocusOutside:l,onInteractOutside:m,onDismiss:b,disableOutsideScroll:M,...k}=e,P=z(j,n),S=ee(j,n),w=se(n),R=Le(n),L=on(n),[K,y]=i.useState(null),B=i.useRef(null),te=A(r,B,P.onContentChange),F=i.useRef(0),U=i.useRef(""),ie=i.useRef(0),H=i.useRef(null),ke=i.useRef("right"),ue=i.useRef(0),rt=M?vt:i.Fragment,at=M?{as:mn,allowPinchZoom:!0}:void 0,st=v(h=>{const X=U.current+h,G=L().filter(E=>!E.disabled),W=document.activeElement,de=G.find(E=>E.ref.current===W)?.textValue,ne=We(G.map(E=>E.textValue),X,de),Y=G.find(E=>E.textValue===ne)?.ref.current;v(s((function E(Se){U.current=Se,window.clearTimeout(F.current),Se!==""&&(F.current=window.setTimeout(()=>E(""),1e3))}),"updateSearch"),"updateSearch")(X),Y&&setTimeout(()=>Y.focus())},"handleTypeaheadSearch");i.useEffect(()=>()=>window.clearTimeout(F.current),[]),It();const V=i.useCallback(h=>ke.current===H.current?.side&&Je(h,H.current?.area),[]);return(0,o.jsx)(dn,{scope:n,searchRef:U,onItemEnter:i.useCallback(h=>{V(h)&&h.preventDefault()},[V]),onItemLeave:i.useCallback(h=>{V(h)||(B.current?.focus(),y(null))},[V]),onTriggerLeave:i.useCallback(h=>{V(h)&&h.preventDefault()},[V]),pointerGraceTimerRef:ie,onPointerGraceIntentChange:i.useCallback(h=>{H.current=h},[]),children:(0,o.jsx)(rt,{...at,children:(0,o.jsx)(Dt,{asChild:!0,trapped:c,onMountAutoFocus:C(u,h=>{h.preventDefault(),B.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:d,children:(0,o.jsx)(xt,{asChild:!0,disableOutsidePointerEvents:f,onEscapeKeyDown:x,onPointerDownOutside:g,onFocusOutside:l,onInteractOutside:m,onDismiss:b,children:(0,o.jsx)(gt,{asChild:!0,...R,dir:S.dir,orientation:"vertical",loop:a,currentTabStopId:K,onCurrentTabStopIdChange:y,onEntryFocus:C(p,h=>{S.isUsingKeyboardRef.current||h.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,o.jsx)(Ct,{role:"menu","aria-orientation":"vertical","data-state":De(P.open),"data-radix-menu-content":"",dir:S.dir,...w,...k,ref:te,style:{outline:"none",...k.style},onKeyDown:C(k.onKeyDown,h=>{const X=h.target.closest("[data-radix-menu-content]")===h.currentTarget,G=h.ctrlKey||h.altKey||h.metaKey,W=h.key.length===1;X&&(h.key==="Tab"&&h.preventDefault(),!G&&W&&st(h.key));const de=B.current;if(h.target!==de||!en.includes(h.key))return;h.preventDefault();const ne=L().filter(Y=>!Y.disabled).map(Y=>Y.ref.current);Ae.includes(h.key)&&ne.reverse(),qe(ne)}),onBlur:C(e.onBlur,h=>{h.currentTarget.contains(h.target)||(window.clearTimeout(F.current),U.current="")}),onPointerMove:C(e.onPointerMove,q(h=>{const X=h.target,G=ue.current!==h.clientX;if(h.currentTarget.contains(X)&&G){const W=h.clientX>ue.current?"right":"left";ke.current=W,ue.current=h.clientX}}))})})})})})})},"MenuContentImpl2"),"MenuContentImpl")),gn=i.forwardRef(v(s(function(e,r){const{__scopeMenu:n,...a}=e;return(0,o.jsx)(N.div,{role:"group",...a,ref:r})},"MenuGroup2"),"MenuGroup")),hn=i.forwardRef(v(s(function(e,r){const{__scopeMenu:n,...a}=e;return(0,o.jsx)(N.div,{...a,ref:r})},"MenuLabel2"),"MenuLabel")),fe="MenuItem",Re="menu.itemSelect",_e=i.forwardRef(v(s(function(e,r){const{disabled:n=!1,onSelect:a,...c}=e,u=i.useRef(null),d=ee(fe,e.__scopeMenu),f=Me(fe,e.__scopeMenu),p=A(r,u),x=i.useRef(!1),g=v(()=>{const l=u.current;if(!n&&l){const m=new CustomEvent(Re,{bubbles:!0,cancelable:!0});l.addEventListener(Re,b=>a?.(b),{once:!0}),lt(l,m),m.defaultPrevented?x.current=!1:d.onClose()}},"handleSelect");return(0,o.jsx)(Be,{...c,ref:p,disabled:n,onClick:C(e.onClick,g),onPointerDown:s(l=>{e.onPointerDown?.(l),x.current=!0},"onPointerDown"),onPointerUp:C(e.onPointerUp,l=>{x.current||l.currentTarget?.click()}),onKeyDown:C(e.onKeyDown,l=>{n||l.target!==l.currentTarget||f.searchRef.current!==""&&l.key===" "||le.includes(l.key)&&(l.currentTarget.click(),l.preventDefault())})})},"MenuItem2"),"MenuItem")),Be=i.forwardRef(v(s(function(e,r){const{__scopeMenu:n,disabled:a=!1,textValue:c,...u}=e,d=Me(fe,n),f=Le(n),p=i.useRef(null),x=A(r,p),[g,l]=i.useState(!1),[m,b]=i.useState("");return i.useEffect(()=>{const M=p.current;M&&b((M.textContent??"").trim())},[u.children]),(0,o.jsx)(Z.ItemSlot,{scope:n,disabled:a,textValue:c??m,children:(0,o.jsx)(ht,{asChild:!0,...f,focusable:!a,children:(0,o.jsx)(N.div,{role:"menuitem","data-highlighted":g?"":void 0,"aria-disabled":a||void 0,"data-disabled":a?"":void 0,...u,ref:x,onPointerMove:C(e.onPointerMove,q(M=>{a?d.onItemLeave(M):(d.onItemEnter(M),M.defaultPrevented||M.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:C(e.onPointerLeave,q(M=>d.onItemLeave(M))),onFocus:C(e.onFocus,()=>l(!0)),onBlur:C(e.onBlur,()=>l(!1))})})})},"MenuItemImpl2"),"MenuItemImpl")),xn=i.forwardRef(v(s(function(e,r){const{checked:n=!1,onCheckedChange:a,...c}=e;return(0,o.jsx)(Ve,{scope:e.__scopeMenu,checked:n,children:(0,o.jsx)(_e,{role:"menuitemcheckbox","aria-checked":J(n)?"mixed":n,...c,ref:r,"data-state":ce(n),onSelect:C(c.onSelect,()=>a?.(J(n)?!0:!n),{checkForDefaultPrevented:!1})})})},"MenuCheckboxItem2"),"MenuCheckboxItem")),[vn,bn]=$("MenuRadioGroup",{value:void 0,onValueChange:v(()=>{},"onValueChange")}),Cn=i.forwardRef(v(s(function(e,r){const{value:n,onValueChange:a,...c}=e,u=ge(a);return(0,o.jsx)(vn,{scope:e.__scopeMenu,value:n,onValueChange:u,children:(0,o.jsx)(gn,{...c,ref:r})})},"MenuRadioGroup2"),"MenuRadioGroup")),Mn="MenuRadioItem",wn=i.forwardRef(v(s(function(e,r){const{value:n,...a}=e,c=bn(Mn,e.__scopeMenu),u=n===c.value;return(0,o.jsx)(Ve,{scope:e.__scopeMenu,checked:u,children:(0,o.jsx)(_e,{role:"menuitemradio","aria-checked":u,...a,ref:r,"data-state":ce(u),onSelect:C(a.onSelect,()=>c.onValueChange?.(n),{checkForDefaultPrevented:!1})})})},"MenuRadioItem2"),"MenuRadioItem")),Ue="MenuItemIndicator",[Ve,_n]=$(Ue,{checked:!1}),Dn=i.forwardRef(v(s(function(e,r){const{__scopeMenu:n,forceMount:a,...c}=e,u=_n(Ue,n);return(0,o.jsx)(Q,{present:a||J(u.checked)||u.checked===!0,children:(0,o.jsx)(N.span,{...c,ref:r,"data-state":ce(u.checked)})})},"MenuItemIndicator2"),"MenuItemIndicator")),In=i.forwardRef(v(s(function(e,r){const{__scopeMenu:n,...a}=e;return(0,o.jsx)(N.div,{role:"separator","aria-orientation":"horizontal",...a,ref:r})},"MenuSeparator2"),"MenuSeparator")),Xe="MenuSub",[kn,Ye]=$(Xe),Sn=v(t=>{const{__scopeMenu:e,children:r,open:n=!1,onOpenChange:a}=t,c=z(Xe,e),u=se(e),[d,f]=i.useState(null),[p,x]=i.useState(null),g=ge(a);return i.useEffect(()=>(c.open===!1&&g(!1),()=>g(!1)),[c.open,g]),(0,o.jsx)(Ee,{...u,children:(0,o.jsx)(Fe,{scope:e,open:n,onOpenChange:g,content:p,onContentChange:x,children:(0,o.jsx)(kn,{scope:e,contentId:re(),triggerId:re(),trigger:d,onTriggerChange:f,children:r})})})},"MenuSub"),oe="MenuSubTrigger",Rn=i.forwardRef(v(s(function(e,r){const n=z(oe,e.__scopeMenu),a=ee(oe,e.__scopeMenu),c=Ye(oe,e.__scopeMenu),u=Me(oe,e.__scopeMenu),d=i.useRef(null),{pointerGraceTimerRef:f,onPointerGraceIntentChange:p}=u,x={__scopeMenu:e.__scopeMenu},g=i.useCallback(()=>{d.current&&window.clearTimeout(d.current),d.current=null},[]);i.useEffect(()=>g,[g]),i.useEffect(()=>{const m=f.current;return()=>{window.clearTimeout(m),p(null)}},[f,p]);const l=A(r,c.onTriggerChange);return(0,o.jsx)(Ge,{asChild:!0,...x,children:(0,o.jsx)(Be,{id:c.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":n.open?c.contentId:void 0,"data-state":De(n.open),...e,ref:l,onClick:s(m=>{e.onClick?.(m),!(e.disabled||m.defaultPrevented)&&(m.currentTarget.focus(),n.open||n.onOpenChange(!0))},"onClick"),onPointerMove:C(e.onPointerMove,q(m=>{u.onItemEnter(m),!m.defaultPrevented&&!e.disabled&&!n.open&&!d.current&&(u.onPointerGraceIntentChange(null),d.current=window.setTimeout(()=>{n.onOpenChange(!0),g()},100))})),onPointerLeave:C(e.onPointerLeave,q(m=>{g();const b=n.content?.getBoundingClientRect();if(b){const M=n.content?.dataset.side,k=M==="right",P=k?-5:5,S=b[k?"left":"right"],w=b[k?"right":"left"];u.onPointerGraceIntentChange({area:[{x:m.clientX+P,y:m.clientY},{x:S,y:b.top},{x:w,y:b.top},{x:w,y:b.bottom},{x:S,y:b.bottom}],side:M}),window.clearTimeout(f.current),f.current=window.setTimeout(()=>u.onPointerGraceIntentChange(null),300)}else{if(u.onTriggerLeave(m),m.defaultPrevented)return;u.onPointerGraceIntentChange(null)}})),onKeyDown:C(e.onKeyDown,m=>{e.disabled||m.target!==m.currentTarget||u.searchRef.current!==""&&m.key===" "||tn[a.dir].includes(m.key)&&(n.onOpenChange(!0),n.content?.focus(),m.preventDefault())})})})},"MenuSubTrigger2"),"MenuSubTrigger")),yn="MenuSubContent",jn=i.forwardRef(v(s(function(e,r){const n=Ke(j,e.__scopeMenu),{forceMount:a=n.forceMount,align:c="start",...u}=e,d=z(j,e.__scopeMenu),f=ee(j,e.__scopeMenu),p=Ye(yn,e.__scopeMenu),x=i.useRef(null),g=A(r,x);return(0,o.jsx)(Z.Provider,{scope:e.__scopeMenu,children:(0,o.jsx)(Q,{present:a||d.open,children:(0,o.jsx)(Z.Slot,{scope:e.__scopeMenu,children:(0,o.jsx)(we,{id:p.contentId,"aria-labelledby":p.triggerId,...u,ref:g,align:c,side:f.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:s(l=>{f.isUsingKeyboardRef.current&&x.current?.focus(),l.preventDefault()},"onOpenAutoFocus"),onCloseAutoFocus:s(l=>l.preventDefault(),"onCloseAutoFocus"),onFocusOutside:C(e.onFocusOutside,l=>{l.target!==p.trigger&&d.onOpenChange(!1)}),onEscapeKeyDown:C(e.onEscapeKeyDown,l=>{f.onClose(),l.preventDefault()}),onKeyDown:C(e.onKeyDown,l=>{const m=l.currentTarget.contains(l.target),b=nn[f.dir].includes(l.key);m&&b&&(d.onOpenChange(!1),p.trigger?.focus(),l.preventDefault())})})})})})},"MenuSubContent2"),"MenuSubContent"));function De(t){return t?"open":"closed"}s(De,"getOpenState");v(De,"getOpenState");function J(t){return t==="indeterminate"}s(J,"isIndeterminate");v(J,"isIndeterminate");function ce(t){return J(t)?"indeterminate":t?"checked":"unchecked"}s(ce,"getCheckedState");v(ce,"getCheckedState");function qe(t){const e=document.activeElement;for(const r of t)if(r===e||(r.focus(),document.activeElement!==e))return}s(qe,"focusFirst");v(qe,"focusFirst");function He(t,e){return t.map((r,n)=>t[(e+n)%t.length])}s(He,"wrapArray");v(He,"wrapArray");function We(t,e,r){const n=e.length>1&&Array.from(e).every(d=>d===e[0])?e[0]:e,a=r?t.indexOf(r):-1;let c=He(t,Math.max(a,0));n.length===1&&(c=c.filter(d=>d!==r));const u=c.find(d=>d.toLowerCase().startsWith(n.toLowerCase()));return u!==r?u:void 0}s(We,"getNextMatch");v(We,"getNextMatch");function Ze(t,e){const{x:r,y:n}=t;let a=!1;for(let c=0,u=e.length-1;c<e.length;u=c++){const d=e[c],f=e[u],p=d.x,x=d.y,g=f.x,l=f.y;x>n!=l>n&&r<(g-p)*(n-x)/(l-x)+p&&(a=!a)}return a}s(Ze,"isPointInPolygon");v(Ze,"isPointInPolygon");function Je(t,e){return e?Ze({x:t.clientX,y:t.clientY},e):!1}s(Je,"isPointerInGraceArea");v(Je,"isPointerInGraceArea");function q(t){return e=>e.pointerType==="mouse"?t(e):void 0}s(q,"whenMouse");v(q,"whenMouse");var Pn=sn,En=Ge,Tn=un,On=ln,Nn=hn,An=_e,zn=xn,Ln=Cn,Fn=wn,Gn=Dn,$n=In,Kn=Sn,Bn=Rn,Un=jn,Vn=Object.defineProperty,D=s((t,e)=>Vn(t,"name",{value:e,configurable:!0}),"__name"),Ie="DropdownMenu",[Xn,zo]=me(Ie,[ze]),I=ze(),[Yn,Qe]=Xn(Ie),qn=D(t=>{const{__scopeDropdownMenu:e,children:r,dir:n,open:a,defaultOpen:c,onOpenChange:u,modal:d=!0}=t,f=I(e),p=i.useRef(null),[x,g]=pe({prop:a,defaultProp:c??!1,onChange:u,caller:Ie});return(0,o.jsx)(Yn,{scope:e,triggerId:re(),triggerRef:p,contentId:re(),open:x,onOpenChange:g,onOpenToggle:i.useCallback(()=>g(l=>!l),[g]),modal:d,children:(0,o.jsx)(Pn,{...f,open:x,onOpenChange:g,dir:n,modal:d,children:r})})},"DropdownMenu"),Hn="DropdownMenuTrigger",Wn=i.forwardRef(D(s(function(e,r){const{__scopeDropdownMenu:n,disabled:a=!1,...c}=e,u=Qe(Hn,n),d=I(n),f=A(r,u.triggerRef);return(0,o.jsx)(En,{asChild:!0,...d,children:(0,o.jsx)(N.button,{type:"button",id:u.triggerId,"aria-haspopup":"menu","aria-expanded":u.open,"aria-controls":u.open?u.contentId:void 0,"data-state":u.open?"open":"closed","data-disabled":a?"":void 0,disabled:a,...c,ref:f,onPointerDown:C(e.onPointerDown,p=>{!a&&p.button===0&&p.ctrlKey===!1&&(u.onOpenToggle(),u.open||p.preventDefault())}),onKeyDown:C(e.onKeyDown,p=>{a||(["Enter"," "].includes(p.key)&&u.onOpenToggle(),p.key==="ArrowDown"&&u.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(p.key)&&p.preventDefault())})})})},"DropdownMenuTrigger2"),"DropdownMenuTrigger")),Zn=D(t=>{const{__scopeDropdownMenu:e,...r}=t,n=I(e);return(0,o.jsx)(Tn,{...n,...r})},"DropdownMenuPortal"),Jn="DropdownMenuContent",Qn=i.forwardRef(D(s(function(e,r){const{__scopeDropdownMenu:n,...a}=e,c=Qe(Jn,n),u=I(n),d=i.useRef(!1);return(0,o.jsx)(On,{id:c.contentId,"aria-labelledby":c.triggerId,...u,...a,ref:r,onCloseAutoFocus:C(e.onCloseAutoFocus,f=>{d.current||c.triggerRef.current?.focus(),d.current=!1,f.preventDefault()}),onInteractOutside:C(e.onInteractOutside,f=>{const p=f.detail.originalEvent,x=p.button===0&&p.ctrlKey===!0,g=p.button===2||x;(!c.modal||g)&&(d.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})},"DropdownMenuContent2"),"DropdownMenuContent")),eo=i.forwardRef(D(s(function(e,r){const{__scopeDropdownMenu:n,...a}=e,c=I(n);return(0,o.jsx)(Nn,{...c,...a,ref:r})},"DropdownMenuLabel2"),"DropdownMenuLabel")),to=i.forwardRef(D(s(function(e,r){const{__scopeDropdownMenu:n,...a}=e,c=I(n);return(0,o.jsx)(An,{...c,...a,ref:r})},"DropdownMenuItem2"),"DropdownMenuItem")),no=i.forwardRef(D(s(function(e,r){const{__scopeDropdownMenu:n,...a}=e,c=I(n);return(0,o.jsx)(zn,{...c,...a,ref:r})},"DropdownMenuCheckboxItem2"),"DropdownMenuCheckboxItem")),oo=i.forwardRef(D(s(function(e,r){const{__scopeDropdownMenu:n,...a}=e,c=I(n);return(0,o.jsx)(Ln,{...c,...a,ref:r})},"DropdownMenuRadioGroup2"),"DropdownMenuRadioGroup")),ro=i.forwardRef(D(s(function(e,r){const{__scopeDropdownMenu:n,...a}=e,c=I(n);return(0,o.jsx)(Fn,{...c,...a,ref:r})},"DropdownMenuRadioItem2"),"DropdownMenuRadioItem")),ao=i.forwardRef(D(s(function(e,r){const{__scopeDropdownMenu:n,...a}=e,c=I(n);return(0,o.jsx)(Gn,{...c,...a,ref:r})},"DropdownMenuItemIndicator2"),"DropdownMenuItemIndicator")),so=i.forwardRef(D(s(function(e,r){const{__scopeDropdownMenu:n,...a}=e,c=I(n);return(0,o.jsx)($n,{...c,...a,ref:r})},"DropdownMenuSeparator2"),"DropdownMenuSeparator")),co=D(t=>{const{__scopeDropdownMenu:e,children:r,open:n,onOpenChange:a,defaultOpen:c}=t,u=I(e),[d,f]=pe({prop:n,defaultProp:c??!1,onChange:a,caller:"DropdownMenuSub"});return(0,o.jsx)(Kn,{...u,open:d,onOpenChange:f,children:r})},"DropdownMenuSub"),io=i.forwardRef(D(s(function(e,r){const{__scopeDropdownMenu:n,...a}=e,c=I(n);return(0,o.jsx)(Bn,{...c,...a,ref:r})},"DropdownMenuSubTrigger2"),"DropdownMenuSubTrigger")),uo=i.forwardRef(D(s(function(e,r){const{__scopeDropdownMenu:n,...a}=e,c=I(n);return(0,o.jsx)(Un,{...c,...a,ref:r,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})},"DropdownMenuSubContent2"),"DropdownMenuSubContent")),lo=qn,fo=Wn,po=Zn,mo=Qn,go=eo,ho=to,xo=no,vo=oo,bo=ro,et=ao,Co=so,Mo=co,wo=io,_o=uo,tt={name:"ellipsis",size:24,node:[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],aliases:["more-horizontal"]};tt.node;var Lo=he(tt),nt={name:"eye",size:24,node:[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]};nt.node;var Fo=he(nt),ot={name:"trash",size:24,node:[["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"}]],aliases:["trash-2"]};ot.node;var Go=he(ot);function $o({...t}){return(0,o.jsx)(lo,{"data-slot":"dropdown-menu",...t})}s($o,"DropdownMenu");function Ko({...t}){return(0,o.jsx)(fo,{"data-slot":"dropdown-menu-trigger",...t})}s(Ko,"DropdownMenuTrigger");function Bo({className:t,sideOffset:e=4,...r}){return(0,o.jsx)(po,{children:(0,o.jsx)(mo,{"data-slot":"dropdown-menu-content",sideOffset:e,className:_("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-(--sz-8rem) origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",t),...r})})}s(Bo,"DropdownMenuContent");function Uo({className:t,inset:e,variant:r="default",...n}){return(0,o.jsx)(ho,{"data-slot":"dropdown-menu-item","data-inset":e,"data-variant":r,className:_("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...n})}s(Uo,"DropdownMenuItem");function Vo({className:t,children:e,checked:r,...n}){return(0,o.jsxs)(xo,{"data-slot":"dropdown-menu-checkbox-item",className:_("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),checked:r,...n,children:[(0,o.jsx)("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:(0,o.jsx)(et,{children:(0,o.jsx)(Te,{className:"size-4"})})}),e]})}s(Vo,"DropdownMenuCheckboxItem");function Xo({...t}){return(0,o.jsx)(vo,{"data-slot":"dropdown-menu-radio-group",...t})}s(Xo,"DropdownMenuRadioGroup");function Yo({className:t,children:e,...r}){return(0,o.jsxs)(bo,{"data-slot":"dropdown-menu-radio-item",className:_("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...r,children:[(0,o.jsx)("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:(0,o.jsx)(et,{children:(0,o.jsx)(Gt,{className:"size-2 fill-current"})})}),e]})}s(Yo,"DropdownMenuRadioItem");function qo({className:t,inset:e,...r}){return(0,o.jsx)(go,{"data-slot":"dropdown-menu-label","data-inset":e,className:_("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",t),...r})}s(qo,"DropdownMenuLabel");function Ho({className:t,...e}){return(0,o.jsx)(Co,{"data-slot":"dropdown-menu-separator",className:_("bg-border -mx-1 my-1 h-px",t),...e})}s(Ho,"DropdownMenuSeparator");function Wo({className:t,...e}){return(0,o.jsx)("span",{"data-slot":"dropdown-menu-shortcut",className:_("text-muted-foreground ml-auto text-xs tracking-widest",t),...e})}s(Wo,"DropdownMenuShortcut");function Zo({...t}){return(0,o.jsx)(Mo,{"data-slot":"dropdown-menu-sub",...t})}s(Zo,"DropdownMenuSub");function Jo({className:t,inset:e,children:r,...n}){return(0,o.jsxs)(wo,{"data-slot":"dropdown-menu-sub-trigger","data-inset":e,className:_("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...n,children:[r,(0,o.jsx)(Ft,{className:"ml-auto size-4"})]})}s(Jo,"DropdownMenuSubTrigger");function Qo({className:t,...e}){return(0,o.jsx)(_o,{"data-slot":"dropdown-menu-sub-content",className:_("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-(--sz-8rem) origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",t),...e})}s(Qo,"DropdownMenuSubContent");function er({delayDuration:t=0,...e}){return(0,o.jsx)(At,{"data-slot":"tooltip-provider",delayDuration:t,...e})}s(er,"TooltipProvider");function tr({...t}){return(0,o.jsx)(Lt,{"data-slot":"tooltip",...t})}s(tr,"Tooltip");function nr({...t}){return(0,o.jsx)(Et,{"data-slot":"tooltip-trigger",...t})}s(nr,"TooltipTrigger");function or({className:t,sideOffset:e=0,children:r,...n}){return(0,o.jsx)(Pt,{children:(0,o.jsxs)(Tt,{"data-slot":"tooltip-content",sideOffset:e,className:_("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",t),...n,children:[r,(0,o.jsx)(Ot,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-(--sz-calc-28) rotate-45 rounded-(--rad-2)"})]})})}s(or,"TooltipContent");function rr({...t}){return(0,o.jsx)(yt,{"data-slot":"dialog",...t})}s(rr,"Dialog");function ar({...t}){return(0,o.jsx)(Nt,{"data-slot":"dialog-trigger",...t})}s(ar,"DialogTrigger");function Do({...t}){return(0,o.jsx)(kt,{"data-slot":"dialog-portal",...t})}s(Do,"DialogPortal");function sr({...t}){return(0,o.jsx)(xe,{"data-slot":"dialog-close",...t})}s(sr,"DialogClose");function Io({className:t,...e}){return(0,o.jsx)(St,{"data-slot":"dialog-overlay",className:_("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 duration-100 motion-reduce:animate-none motion-reduce:transition-none",t),...e})}s(Io,"DialogOverlay");function cr({className:t,children:e,showCloseButton:r=!0,...n}){return(0,o.jsxs)(Do,{"data-slot":"dialog-portal",children:[(0,o.jsx)(Io,{}),(0,o.jsxs)(zt,{"data-slot":"dialog-content",className:_("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-[0.97] data-[state=open]:zoom-in-[0.97] data-[state=closed]:slide-out-to-top-[1%] data-[state=open]:slide-in-from-top-[1%] fixed top-(--sz-calc-26) md:top-(--pct-50) left-(--pct-50) z-50 grid w-full max-w-(--sz-calc-25) translate-x-(--pct-neg-50) translate-y-0 md:translate-y-(--pct-neg-50) gap-4 rounded-lg border p-6 shadow-lg duration-150 ease-(--e-cubic-bezier-0_16-1-0_3-1) outline-none sm:max-w-lg [&>*]:min-w-0 motion-reduce:animate-none motion-reduce:transition-none",t),...n,children:[e,r&&(0,o.jsxs)(xe,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[(0,o.jsx)(ft,{}),(0,o.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}s(cr,"DialogContent");function ir({className:t,...e}){return(0,o.jsx)("div",{"data-slot":"dialog-header",className:_("flex flex-col gap-2 text-center sm:text-left",t),...e})}s(ir,"DialogHeader");function ur({className:t,showCloseButton:e=!1,children:r,...n}){return(0,o.jsxs)("div",{"data-slot":"dialog-footer",className:_("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),...n,children:[r,e&&(0,o.jsx)(xe,{asChild:!0,children:(0,o.jsx)($t,{variant:"outline",children:"Close"})})]})}s(ur,"DialogFooter");function dr({className:t,...e}){return(0,o.jsx)(Rt,{"data-slot":"dialog-title",className:_("text-lg leading-none font-semibold",t),...e})}s(dr,"DialogTitle");function lr({className:t,...e}){return(0,o.jsx)(jt,{"data-slot":"dialog-description",className:_("text-muted-foreground text-sm",t),...e})}s(lr,"DialogDescription");function fr({className:t,...e}){return(0,o.jsx)("textarea",{"data-slot":"textarea",className:_("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 min-w-0 w-full max-w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-(--tp-color-box-shadow) outline-none focus-visible:ring-(length:--rad-3) disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",t),...e})}s(fr,"Textarea");function pr({className:t,...e}){return(0,o.jsx)(Yt,{"data-slot":"checkbox",className:_("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-(--rad-4) border shadow-xs transition-shadow outline-none focus-visible:ring-(length:--rad-3) disabled:cursor-not-allowed disabled:opacity-50",t),...e,children:(0,o.jsx)(Ht,{"data-slot":"checkbox-indicator",className:"grid place-content-center text-current transition-none",children:(0,o.jsx)(Te,{className:"size-3.5"})})})}s(pr,"Checkbox");export{Fo as A,Ho as C,Jo as D,Qo as E,Ko as O,Yo as S,Zo as T,Vo as _,cr as a,qo as b,ir as c,ar as d,tr as f,$o as g,nr as h,sr as i,Lo as j,Go as k,Do as l,er as m,fr as n,lr as o,or as p,rr as r,ur as s,pr as t,dr as u,Bo as v,Wo as w,Xo as x,Uo as y};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as o}from"./agent-avatar-url-
|
|
1
|
+
import{t as o}from"./agent-avatar-url-COB3FyNh.js";var e={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};e.node;var a=o(e);export{a as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t}from"./agent-avatar-url-
|
|
1
|
+
import{t}from"./agent-avatar-url-COB3FyNh.js";var e={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};e.node;var o=t(e);export{o as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var d=Object.defineProperty;var n=(a,e)=>d(a,"name",{value:e,configurable:!0});import{t as o}from"./agent-avatar-url-
|
|
1
|
+
var d=Object.defineProperty;var n=(a,e)=>d(a,"name",{value:e,configurable:!0});import{t as o}from"./agent-avatar-url-COB3FyNh.js";var r={name:"copy",size:24,node:[["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"}]]};r.node;var y=o(r),i={name:"folder-open",size:24,node:[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]};i.node;var p=o(i),c={name:"key-round",size:24,node:[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]};c.node;var s=o(c);async function f(a){if((typeof window>"u"||window.isSecureContext!==!1)&&typeof navigator<"u"&&navigator.clipboard?.writeText)try{await navigator.clipboard.writeText(a);return}catch{}if(typeof document>"u")throw new Error("Clipboard unavailable");const e=document.createElement("textarea");e.value=a,e.setAttribute("aria-hidden","true"),e.tabIndex=-1,e.style.position="fixed",e.style.top="0",e.style.left="-9999px",document.body.appendChild(e);const t=document.activeElement;try{if(e.focus({preventScroll:!0}),e.select(),e.setSelectionRange(0,a.length),!document.execCommand("copy"))throw new Error("execCommand copy failed")}finally{document.body.removeChild(e),t!==document.activeElement&&typeof t?.focus=="function"&&t.focus({preventScroll:!0})}}n(f,"copyTextToClipboard");export{y as i,s as n,p as r,f as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var p=Object.defineProperty;var t=(e,i)=>p(e,"name",{value:i,configurable:!0});import{
|
|
1
|
+
var p=Object.defineProperty;var t=(e,i)=>p(e,"name",{value:i,configurable:!0});import{zr as s}from"./agent-avatar-url-COB3FyNh.js";function l(e){const i=new URLSearchParams;e.state&&i.set("state",e.state),e.limit&&i.set("limit",String(e.limit)),e.offset&&i.set("offset",String(e.offset));const n=i.toString();return n?`?${n}`:""}t(l,"buildInviteListQuery");var I={createCompanyInvite:t((e,i={})=>s.post(`/companies/${e}/invites`,i),"createCompanyInvite"),createOpenClawInvitePrompt:t((e,i={})=>s.post(`/companies/${e}/openclaw/invite-prompt`,i),"createOpenClawInvitePrompt"),getInvite:t(e=>s.get(`/invites/${e}`),"getInvite"),getInviteOnboarding:t(e=>s.get(`/invites/${e}/onboarding`),"getInviteOnboarding"),acceptInvite:t((e,i)=>s.post(`/invites/${e}/accept`,i),"acceptInvite"),listInvites:t((e,i={})=>s.get(`/companies/${e}/invites${l(i)}`),"listInvites"),revokeInvite:t(e=>s.post(`/invites/${e}/revoke`,{}),"revokeInvite"),listJoinRequests:t((e,i="pending_approval",n)=>s.get(`/companies/${e}/join-requests?status=${i}${n?`&requestType=${n}`:""}`),"listJoinRequests"),listMembers:t(e=>s.get(`/companies/${e}/members`),"listMembers"),listUserDirectory:t(e=>s.get(`/companies/${e}/user-directory`),"listUserDirectory"),updateMember:t((e,i,n)=>s.patch(`/companies/${e}/members/${i}`,n),"updateMember"),updateMemberPermissions:t((e,i,n)=>s.patch(`/companies/${e}/members/${i}/permissions`,n),"updateMemberPermissions"),updateMemberAccess:t((e,i,n)=>s.patch(`/companies/${e}/members/${i}/role-and-grants`,n),"updateMemberAccess"),archiveMember:t((e,i,n={})=>s.post(`/companies/${e}/members/${i}/archive`,n),"archiveMember"),approveJoinRequest:t((e,i)=>s.post(`/companies/${e}/join-requests/${i}/approve`,{}),"approveJoinRequest"),rejectJoinRequest:t((e,i)=>s.post(`/companies/${e}/join-requests/${i}/reject`,{}),"rejectJoinRequest"),claimJoinRequestApiKey:t((e,i)=>s.post(`/join-requests/${e}/claim-api-key`,{claimSecret:i}),"claimJoinRequestApiKey"),getBoardClaimStatus:t((e,i)=>s.get(`/board-claim/${e}?code=${encodeURIComponent(i)}`),"getBoardClaimStatus"),claimBoard:t((e,i)=>s.post(`/board-claim/${e}/claim`,{code:i}),"claimBoard"),claimBootstrapAdmin:t(()=>s.post("/bootstrap/claim",{}),"claimBootstrapAdmin"),getCliAuthChallenge:t((e,i)=>s.get(`/cli-auth/challenges/${e}?token=${encodeURIComponent(i)}`),"getCliAuthChallenge"),approveCliAuthChallenge:t((e,i)=>s.post(`/cli-auth/challenges/${e}/approve`,{token:i}),"approveCliAuthChallenge"),cancelCliAuthChallenge:t((e,i)=>s.post(`/cli-auth/challenges/${e}/cancel`,{token:i}),"cancelCliAuthChallenge"),searchAdminUsers:t(e=>s.get(`/admin/users?query=${encodeURIComponent(e)}`),"searchAdminUsers"),promoteInstanceAdmin:t(e=>s.post(`/admin/users/${e}/promote-instance-admin`,{}),"promoteInstanceAdmin"),demoteInstanceAdmin:t(e=>s.post(`/admin/users/${e}/demote-instance-admin`,{}),"demoteInstanceAdmin"),getUserCompanyAccess:t(e=>s.get(`/admin/users/${e}/company-access`),"getUserCompanyAccess"),setUserCompanyAccess:t((e,i)=>s.put(`/admin/users/${e}/company-access`,{companyIds:i}),"setUserCompanyAccess"),getCurrentBoardAccess:t(()=>s.get("/cli-auth/me"),"getCurrentBoardAccess")};function m(e){return e==="local-board"?"Board":e.slice(0,5)}t(m,"fallbackUserLabel");function o(e){const i=e.user?.name?.trim();if(i)return i;const n=e.user?.email?.trim();return n||m(e.principalId)}t(o,"baseMemberLabel");function c(e){const i=new Map;for(const n of e??[])n.status==="active"&&(i.has(n.principalId)||i.set(n.principalId,n));return[...i.values()].sort((n,a)=>o(n).localeCompare(o(a)))}t(c,"activeUniqueMembers");function b(e){const i=new Map;for(const n of e??[])i.set(n.principalId,o(n));return i}t(b,"buildCompanyUserLabelMap");function v(e){const i=new Map;for(const n of e??[])i.set(n.principalId,{label:o(n),image:n.user?.image??null});return i}t(v,"buildCompanyUserProfileMap");function h(e,i){const n=new Set([...i?.excludeUserIds??[]].filter(a=>!!a));return c(e).filter(a=>!n.has(a.principalId)).map(a=>({id:`user:${a.principalId}`,label:o(a),searchText:[a.user?.name,a.user?.email,a.principalId].filter(Boolean).join(" ")}))}t(h,"buildCompanyUserInlineOptions");function u(e){return c(e).map(i=>({id:`user:${i.principalId}`,name:o(i),kind:"user",userId:i.principalId}))}t(u,"buildCompanyUserMentionOptions");function d(e){return e.status!=="terminated"&&e.status!=="pending_approval"&&e.orgChainHealth?.status!=="invalid_org_chain"}t(d,"isAgentTaskTarget");function $(e){const i=[];for(const n of e??[]){const a=n.identifier?.trim();if(!a)continue;const r=n.title?.trim()??"";i.push({id:`issue:${n.id}`,name:r?`${a} ${r}`:a,kind:"issue",issueId:n.id,issueIdentifier:a})}return i}t($,"buildIssueMentionOptions");function C(e){return[...u(e.members),...[...e.agents??[]].filter(d).sort((i,n)=>i.name.localeCompare(n.name)).map(i=>({id:`agent:${i.id}`,name:i.name,kind:"agent",agentId:i.id,agentIcon:i.icon,agentAppearance:i.appearance})),...[...e.projects??[]].sort((i,n)=>i.name.localeCompare(n.name)).map(i=>({id:`project:${i.id}`,name:i.name,kind:"project",projectId:i.id,projectColor:i.color})),...$(e.issues)]}t(C,"buildMarkdownMentionOptions");export{d as a,C as i,b as n,I as o,v as r,h as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var c=Object.defineProperty;var n=(e,o)=>c(e,"name",{value:o,configurable:!0});import{Vt as p}from"./index-
|
|
1
|
+
var c=Object.defineProperty;var n=(e,o)=>c(e,"name",{value:o,configurable:!0});import{Vt as p}from"./index-DlP9bxBd.js";import{PAPERCLIP_CHARACTER as a}from"./character-CguPM7IG.js";import{o as l,r as f}from"./model-DL5biheO.js";function b(e,o=!1){const r=p[o?"muted-dream":e.paletteId],i={...a.character,id:"paperclip-cap-v1",name:"Agent",color:r.a,color2:r.b,followCursor:!0,followRotation:!0},s=f({version:1,name:"Paperclip",characters:[i],expressions:a.expressions,animations:a.animations},i);for(const t of s.animations)t.id==="happy"&&(t.loop=!1);return s}n(b,"characterDefinition");function d(e){return e==="success"?"happy":e==="rest"?"idle":e}n(d,"animationId");function C(e,o){if(o==="rest"){const r=e.expressions.find(i=>i.id==="idle")??e.expressions[0];return{pose:{...r.beats[0].pose},blink:0,bob:0,breathe:0,expressionId:r.id,beatIndex:0,stepIndex:0,faceLayers:void 0}}return l(e,d(o),.6)}n(C,"characterStill");export{d as animationId,b as characterDefinition,C as characterStill};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var me=Object.defineProperty;var u=(r,e)=>me(r,"name",{value:e,configurable:!0});import{i as Z}from"./rolldown-runtime-ZpX3ckPj.js";import{Ai as ve,Oi as Ie,a as ye,c as q,f as z,l as ee,m as j,n as Ce,o as xe,r as Re,s as k}from"./agent-avatar-url-BcyFoVtv.js";var c=Z(ve(),1),g=Z(Ie(),1),Se=Object.defineProperty,x=u((r,e)=>Se(r,"name",{value:e,configurable:!0}),"__name$3");function te(r){const e=r+"CollectionProvider",[t,n]=q(e),[o,i]=t(e,{collectionRef:{current:null},itemMap:new Map}),f=x(m=>{const{scope:v,children:I}=m,s=c.useRef(null),l=c.useRef(new Map).current;return(0,g.jsx)(o,{scope:v,itemMap:l,collectionRef:s,children:I})},"CollectionProvider");f.displayName=e;const d=r+"CollectionSlot",O=z(d),A=c.forwardRef((m,v)=>{const{scope:I,children:s}=m,l=i(d,I),a=j(v,l.collectionRef);return(0,g.jsx)(O,{ref:a,children:s})});A.displayName=d;const y=r+"CollectionItemSlot",p="data-radix-collection-item",_=z(y),h=c.forwardRef((m,v)=>{const{scope:I,children:s,...l}=m,a=c.useRef(null),S=j(v,a),b=i(y,I);return c.useEffect(()=>(b.itemMap.set(a,{ref:a,...l}),()=>{b.itemMap.delete(a)})),(0,g.jsx)(_,{[p]:"",ref:S,children:s})});h.displayName=y;function C(m){const v=i(r+"CollectionConsumer",m);return c.useCallback(()=>{const I=v.collectionRef.current;if(!I)return[];const s=Array.from(I.querySelectorAll(`[${p}]`));return Array.from(v.itemMap.values()).sort((l,a)=>s.indexOf(l.ref.current)-s.indexOf(a.ref.current))},[v.collectionRef,v.itemMap])}return u(C,"useCollection"),x(C,"useCollection"),[{Provider:f,Slot:A,ItemSlot:h},C,n]}u(te,"createCollection");x(te,"createCollection");var X=new WeakMap,H=class D extends Map{static{u(this,"_OrderedDict")}static{x(this,"OrderedDict")}#e;constructor(e){super(e),this.#e=[...super.keys()],X.set(this,!0)}set(e,t){return X.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,n){const o=this.has(t),i=this.#e.length,f=Y(e);let d=f>=0?f:i+f;const O=d<0||d>=i?-1:d;if(O===this.size||o&&O===this.size-1||O===-1)return this.set(t,n),this;const A=this.size+(o?0:1);f<0&&d++;const y=[...this.#e];let p,_=!1;for(let h=d;h<A;h++)if(d===h){let C=y[h];y[h]===t&&(C=y[h+1]),o&&this.delete(t),p=this.get(C),this.set(t,n)}else{!_&&y[h-1]===t&&(_=!0);const C=y[_?h:h-1],m=p;p=this.get(C),this.delete(C),this.set(C,m)}return this}with(e,t,n){const o=new D(this);return o.insert(e,t,n),o}before(e){const t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){const o=this.#e.indexOf(e);return o===-1?this:this.insert(o,t,n)}after(e){let t=this.#e.indexOf(e);if(t=t===-1||t===this.size-1?-1:t+1,t!==-1)return this.entryAt(t)}setAfter(e,t,n){const o=this.#e.indexOf(e);return o===-1?this:this.insert(o+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){const t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){const t=this.keyAt(e);return t!==void 0?this.delete(t):!1}at(e){const t=G(this.#e,e);if(t!==void 0)return this.get(t)}entryAt(e){const t=G(this.#e,e);if(t!==void 0)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return G(this.#e,e)}from(e,t){const n=this.indexOf(e);if(n===-1)return;let o=n+t;return o<0&&(o=0),o>=this.size&&(o=this.size-1),this.at(o)}keyFrom(e,t){const n=this.indexOf(e);if(n===-1)return;let o=n+t;return o<0&&(o=0),o>=this.size&&(o=this.size-1),this.keyAt(o)}find(e,t){let n=0;for(const o of this){if(Reflect.apply(e,t,[o,n,this]))return o;n++}}findIndex(e,t){let n=0;for(const o of this){if(Reflect.apply(e,t,[o,n,this]))return n;n++}return-1}filter(e,t){const n=[];let o=0;for(const i of this)Reflect.apply(e,t,[i,o,this])&&n.push(i),o++;return new D(n)}map(e,t){const n=[];let o=0;for(const i of this)n.push([i[0],Reflect.apply(e,t,[i,o,this])]),o++;return new D(n)}reduce(...e){const[t,n]=e;let o=0,i=n??this.at(0);for(const f of this)o===0&&e.length===1?i=f:i=Reflect.apply(t,this,[i,f,o,this]),o++;return i}reduceRight(...e){const[t,n]=e;let o=n??this.at(-1);for(let i=this.size-1;i>=0;i--){const f=this.at(i);i===this.size-1&&e.length===1?o=f:o=Reflect.apply(t,this,[o,f,i,this])}return o}toSorted(e){const t=[...this.entries()].sort(e);return new D(t)}toReversed(){const e=new D;for(let t=this.size-1;t>=0;t--){const n=this.keyAt(t),o=this.get(n);e.set(n,o)}return e}toSpliced(...e){const t=[...this.entries()];return t.splice(...e),new D(t)}slice(e,t){const n=new D;let o=this.size-1;if(e===void 0)return n;e<0&&(e=e+this.size),t!==void 0&&t>0&&(o=t-1);for(let i=e;i<=o;i++){const f=this.keyAt(i),d=this.get(f);n.set(f,d)}return n}every(e,t){let n=0;for(const o of this){if(!Reflect.apply(e,t,[o,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(const o of this){if(Reflect.apply(e,t,[o,n,this]))return!0;n++}return!1}};function G(r,e){if("at"in Array.prototype)return Array.prototype.at.call(r,e);const t=oe(r,e);return t===-1?void 0:r[t]}u(G,"at");x(G,"at");function oe(r,e){const t=r.length,n=Y(e),o=n>=0?n:t+n;return o<0||o>=t?-1:o}u(oe,"toSafeIndex");x(oe,"toSafeIndex");function Y(r){return r!==r||r===0?0:Math.trunc(r)}u(Y,"toSafeInteger");x(Y,"toSafeInteger");function ge(r){const e=r+"CollectionProvider",[t,n]=q(e),[o,i]=t(e,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new H,setItemMap:x(()=>{},"setItemMap")}),f=x(({state:s,...l})=>s?(0,g.jsx)(O,{...l,state:s}):(0,g.jsx)(d,{...l}),"CollectionProvider");f.displayName=e;const d=x(s=>{const l=v();return(0,g.jsx)(O,{...s,state:l})},"CollectionInit");d.displayName=e+"Init";const O=x(s=>{const{scope:l,children:a,state:S}=s,b=c.useRef(null),[w,E]=c.useState(null),R=j(b,E),[L,M]=S;return c.useEffect(()=>{if(!w)return;const F=se(()=>{});return F.observe(w,{childList:!0,subtree:!0}),()=>{F.disconnect()}},[w]),(0,g.jsx)(o,{scope:l,itemMap:L,setItemMap:M,collectionRef:R,collectionRefObject:b,collectionElement:w,children:a})},"CollectionProviderImpl");O.displayName=e+"Impl";const A=r+"CollectionSlot",y=z(A),p=c.forwardRef((s,l)=>{const{scope:a,children:S}=s,b=i(A,a),w=j(l,b.collectionRef);return(0,g.jsx)(y,{ref:w,children:S})});p.displayName=A;const _=r+"CollectionItemSlot",h="data-radix-collection-item",C=z(_),m=c.forwardRef((s,l)=>{const{scope:a,children:S,...b}=s,w=c.useRef(null),[E,R]=c.useState(null),L=j(l,w,R),{setItemMap:M}=i(_,a),F=c.useRef(b);ne(F.current,b)||(F.current=b);const T=F.current;return c.useEffect(()=>{const Q=T;return M(P=>E?P.has(E)?P.set(E,{...Q,element:E}).toSorted(V):(P.set(E,{...Q,element:E}),P.toSorted(V)):P),()=>{M(P=>!E||!P.has(E)?P:(P.delete(E),new H(P)))}},[E,T,M]),(0,g.jsx)(C,{[h]:"",ref:L,children:S})});m.displayName=_;function v(){return c.useState(new H)}u(v,"useInitCollection"),x(v,"useInitCollection");function I(s){const{itemMap:l}=i(r+"CollectionConsumer",s);return l}return u(I,"useCollection"),x(I,"useCollection"),[{Provider:f,Slot:p,ItemSlot:m},{createCollectionScope:n,useCollection:I,useInitCollection:v}]}u(ge,"createCollection2");x(ge,"createCollection");function ne(r,e){if(r===e)return!0;if(typeof r!="object"||typeof e!="object"||r==null||e==null)return!1;const t=Object.keys(r),n=Object.keys(e);if(t.length!==n.length)return!1;for(const o of t)if(!Object.prototype.hasOwnProperty.call(e,o)||r[o]!==e[o])return!1;return!0}u(ne,"shallowEqual");x(ne,"shallowEqual");function re(r,e){return!!(e.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_PRECEDING)}u(re,"isElementPreceding");x(re,"isElementPreceding");function V(r,e){return!r[1].element||!e[1].element?0:re(r[1].element,e[1].element)?-1:1}u(V,"sortByDocumentPosition");x(V,"sortByDocumentPosition");function se(r){return new MutationObserver(e=>{for(const t of e)if(t.type==="childList"){r();return}})}u(se,"getChildListObserver");x(se,"getChildListObserver");var be=Object.defineProperty,Ee=u((r,e)=>be(r,"name",{value:e,configurable:!0}),"__name$2"),_e=c.createContext(void 0);function ie(r){const e=c.useContext(_e);return r||e||"ltr"}u(ie,"useDirection");Ee(ie,"useDirection");var Oe=Object.defineProperty,W=u((r,e)=>Oe(r,"name",{value:e,configurable:!0}),"__name$1"),B=!1;function ce(){const[r,e]=c.useState(B);return c.useEffect(()=>{B||(B=!0,e(!0))},[]),r}u(ce,"useIsHydrated");W(ce,"useIsHydrated");var le=c[" useSyncExternalStore ".trim().toString()];function ue(){return()=>{}}u(ue,"subscribe");W(ue,"subscribe");function ae(){return le(ue,()=>!0,()=>!1)}u(ae,"useIsHydratedModern");W(ae,"useIsHydratedModern");var Ae=typeof le=="function"?ae:ce,we=Object.defineProperty,N=u((r,e)=>we(r,"name",{value:e,configurable:!0}),"__name"),U="rovingFocusGroup.onEntryFocus",Fe={bubbles:!1,cancelable:!0},K="RovingFocusGroup",[$,fe,Te]=te(K),[Pe,Be]=q(K,[Te]),[Me,De]=Pe(K),Ne=c.forwardRef(N(u(function(e,t){return(0,g.jsx)($.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,g.jsx)($.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,g.jsx)(je,{...e,ref:t})})})},"RovingFocusGroup2"),"RovingFocusGroup")),je=c.forwardRef(N(u(function(e,t){const{__scopeRovingFocusGroup:n,orientation:o,loop:i=!1,dir:f,currentTabStopId:d,defaultCurrentTabStopId:O,onCurrentTabStopIdChange:A,onEntryFocus:y,preventScrollOnEntryFocus:p=!1,..._}=e,h=c.useRef(null),C=j(t,h),m=ie(f),[v,I]=ye({prop:d,defaultProp:O??null,onChange:A,caller:K}),[s,l]=c.useState(!1),a=Ce(y),S=fe(n),b=c.useRef(!1),[w,E]=c.useState(0);return c.useEffect(()=>{const R=h.current;if(R)return R.addEventListener(U,a),()=>R.removeEventListener(U,a)},[a]),(0,g.jsx)(Me,{scope:n,orientation:o,dir:m,loop:i,currentTabStopId:v,onItemFocus:c.useCallback(R=>I(R),[I]),onItemShiftTab:c.useCallback(()=>l(!0),[]),onFocusableItemAdd:c.useCallback(()=>E(R=>R+1),[]),onFocusableItemRemove:c.useCallback(()=>E(R=>R-1),[]),children:(0,g.jsx)(ee.div,{tabIndex:s||w===0?-1:0,"data-orientation":o,..._,ref:C,style:{outline:"none",...e.style},onMouseDown:k(e.onMouseDown,()=>{b.current=!0}),onFocus:k(e.onFocus,R=>{const L=!b.current;if(R.target===R.currentTarget&&L&&!s){const M=new CustomEvent(U,Fe);if(R.currentTarget.dispatchEvent(M),!M.defaultPrevented){const F=S().filter(T=>T.focusable);J([F.find(T=>T.active),F.find(T=>T.id===v),...F].filter(Boolean).map(T=>T.ref.current),p)}}b.current=!1}),onBlur:k(e.onBlur,()=>l(!1))})})},"RovingFocusGroupImpl2"),"RovingFocusGroupImpl")),ke="RovingFocusGroupItem",Le=c.forwardRef(N(u(function(e,t){const{__scopeRovingFocusGroup:n,focusable:o=!0,active:i=!1,tabStopId:f,children:d,...O}=e,A=Re(),y=f||A,p=De(ke,n),_=p.currentTabStopId===y,h=fe(n),{onFocusableItemAdd:C,onFocusableItemRemove:m,currentTabStopId:v}=p,I=Ae();return xe(()=>{if(!(!I||!o))return C(),()=>m()},[I,o,C,m]),c.useEffect(()=>{if(!(I||!o))return C(),()=>m()},[I,o,C,m]),(0,g.jsx)($.ItemSlot,{scope:n,id:y,focusable:o,active:i,children:(0,g.jsx)(ee.span,{tabIndex:_?0:-1,"data-orientation":p.orientation,...O,ref:t,onMouseDown:k(e.onMouseDown,s=>{o?p.onItemFocus(y):s.preventDefault()}),onFocus:k(e.onFocus,()=>p.onItemFocus(y)),onKeyDown:k(e.onKeyDown,s=>{if(s.key==="Tab"&&s.shiftKey){p.onItemShiftTab();return}if(s.target!==s.currentTarget)return;const l=pe(s,p.orientation,p.dir);if(l!==void 0){if(s.metaKey||s.ctrlKey||s.altKey||s.shiftKey)return;s.preventDefault();let a=h().filter(S=>S.focusable).map(S=>S.ref.current);if(l==="last")a.reverse();else if(l==="prev"||l==="next"){l==="prev"&&a.reverse();const S=a.indexOf(s.currentTarget);a=p.loop?he(a,S+1):a.slice(S+1)}setTimeout(()=>J(a))}}),children:typeof d=="function"?d({isCurrentTabStop:_,hasTabStop:v!=null}):d})})},"RovingFocusGroupItem2"),"RovingFocusGroupItem")),Ge={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function de(r,e){return e!=="rtl"?r:r==="ArrowLeft"?"ArrowRight":r==="ArrowRight"?"ArrowLeft":r}u(de,"getDirectionAwareKey");N(de,"getDirectionAwareKey");function pe(r,e,t){const n=de(r.key,t);if(!(e==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(e==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return Ge[n]}u(pe,"getFocusIntent");N(pe,"getFocusIntent");function J(r,e=!1){const t=document.activeElement;for(const n of r)if(n===t||(n.focus({preventScroll:e}),document.activeElement!==t))return}u(J,"focusFirst");N(J,"focusFirst");function he(r,e){return r.map((t,n)=>r[(e+n)%r.length])}u(he,"wrapArray");N(he,"wrapArray");var Ue=Ne,Ve=Le;export{te as a,ie as i,Ue as n,Be as r,Ve as t};
|
|
1
|
+
var me=Object.defineProperty;var u=(r,e)=>me(r,"name",{value:e,configurable:!0});import{i as Z}from"./rolldown-runtime-ZpX3ckPj.js";import{a as ve,c as q,f as z,ji as Ie,ki as ye,l as ee,m as j,n as Ce,o as xe,r as Re,s as k}from"./agent-avatar-url-COB3FyNh.js";var c=Z(Ie(),1),g=Z(ye(),1),Se=Object.defineProperty,x=u((r,e)=>Se(r,"name",{value:e,configurable:!0}),"__name$3");function te(r){const e=r+"CollectionProvider",[t,n]=q(e),[o,i]=t(e,{collectionRef:{current:null},itemMap:new Map}),f=x(m=>{const{scope:v,children:I}=m,s=c.useRef(null),l=c.useRef(new Map).current;return(0,g.jsx)(o,{scope:v,itemMap:l,collectionRef:s,children:I})},"CollectionProvider");f.displayName=e;const d=r+"CollectionSlot",O=z(d),w=c.forwardRef((m,v)=>{const{scope:I,children:s}=m,l=i(d,I),a=j(v,l.collectionRef);return(0,g.jsx)(O,{ref:a,children:s})});w.displayName=d;const y=r+"CollectionItemSlot",p="data-radix-collection-item",_=z(y),h=c.forwardRef((m,v)=>{const{scope:I,children:s,...l}=m,a=c.useRef(null),S=j(v,a),b=i(y,I);return c.useEffect(()=>(b.itemMap.set(a,{ref:a,...l}),()=>{b.itemMap.delete(a)})),(0,g.jsx)(_,{[p]:"",ref:S,children:s})});h.displayName=y;function C(m){const v=i(r+"CollectionConsumer",m);return c.useCallback(()=>{const I=v.collectionRef.current;if(!I)return[];const s=Array.from(I.querySelectorAll(`[${p}]`));return Array.from(v.itemMap.values()).sort((l,a)=>s.indexOf(l.ref.current)-s.indexOf(a.ref.current))},[v.collectionRef,v.itemMap])}return u(C,"useCollection"),x(C,"useCollection"),[{Provider:f,Slot:w,ItemSlot:h},C,n]}u(te,"createCollection");x(te,"createCollection");var X=new WeakMap,H=class D extends Map{static{u(this,"_OrderedDict")}static{x(this,"OrderedDict")}#e;constructor(e){super(e),this.#e=[...super.keys()],X.set(this,!0)}set(e,t){return X.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,n){const o=this.has(t),i=this.#e.length,f=Y(e);let d=f>=0?f:i+f;const O=d<0||d>=i?-1:d;if(O===this.size||o&&O===this.size-1||O===-1)return this.set(t,n),this;const w=this.size+(o?0:1);f<0&&d++;const y=[...this.#e];let p,_=!1;for(let h=d;h<w;h++)if(d===h){let C=y[h];y[h]===t&&(C=y[h+1]),o&&this.delete(t),p=this.get(C),this.set(t,n)}else{!_&&y[h-1]===t&&(_=!0);const C=y[_?h:h-1],m=p;p=this.get(C),this.delete(C),this.set(C,m)}return this}with(e,t,n){const o=new D(this);return o.insert(e,t,n),o}before(e){const t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){const o=this.#e.indexOf(e);return o===-1?this:this.insert(o,t,n)}after(e){let t=this.#e.indexOf(e);if(t=t===-1||t===this.size-1?-1:t+1,t!==-1)return this.entryAt(t)}setAfter(e,t,n){const o=this.#e.indexOf(e);return o===-1?this:this.insert(o+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){const t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){const t=this.keyAt(e);return t!==void 0?this.delete(t):!1}at(e){const t=G(this.#e,e);if(t!==void 0)return this.get(t)}entryAt(e){const t=G(this.#e,e);if(t!==void 0)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return G(this.#e,e)}from(e,t){const n=this.indexOf(e);if(n===-1)return;let o=n+t;return o<0&&(o=0),o>=this.size&&(o=this.size-1),this.at(o)}keyFrom(e,t){const n=this.indexOf(e);if(n===-1)return;let o=n+t;return o<0&&(o=0),o>=this.size&&(o=this.size-1),this.keyAt(o)}find(e,t){let n=0;for(const o of this){if(Reflect.apply(e,t,[o,n,this]))return o;n++}}findIndex(e,t){let n=0;for(const o of this){if(Reflect.apply(e,t,[o,n,this]))return n;n++}return-1}filter(e,t){const n=[];let o=0;for(const i of this)Reflect.apply(e,t,[i,o,this])&&n.push(i),o++;return new D(n)}map(e,t){const n=[];let o=0;for(const i of this)n.push([i[0],Reflect.apply(e,t,[i,o,this])]),o++;return new D(n)}reduce(...e){const[t,n]=e;let o=0,i=n??this.at(0);for(const f of this)o===0&&e.length===1?i=f:i=Reflect.apply(t,this,[i,f,o,this]),o++;return i}reduceRight(...e){const[t,n]=e;let o=n??this.at(-1);for(let i=this.size-1;i>=0;i--){const f=this.at(i);i===this.size-1&&e.length===1?o=f:o=Reflect.apply(t,this,[o,f,i,this])}return o}toSorted(e){const t=[...this.entries()].sort(e);return new D(t)}toReversed(){const e=new D;for(let t=this.size-1;t>=0;t--){const n=this.keyAt(t),o=this.get(n);e.set(n,o)}return e}toSpliced(...e){const t=[...this.entries()];return t.splice(...e),new D(t)}slice(e,t){const n=new D;let o=this.size-1;if(e===void 0)return n;e<0&&(e=e+this.size),t!==void 0&&t>0&&(o=t-1);for(let i=e;i<=o;i++){const f=this.keyAt(i),d=this.get(f);n.set(f,d)}return n}every(e,t){let n=0;for(const o of this){if(!Reflect.apply(e,t,[o,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(const o of this){if(Reflect.apply(e,t,[o,n,this]))return!0;n++}return!1}};function G(r,e){if("at"in Array.prototype)return Array.prototype.at.call(r,e);const t=oe(r,e);return t===-1?void 0:r[t]}u(G,"at");x(G,"at");function oe(r,e){const t=r.length,n=Y(e),o=n>=0?n:t+n;return o<0||o>=t?-1:o}u(oe,"toSafeIndex");x(oe,"toSafeIndex");function Y(r){return r!==r||r===0?0:Math.trunc(r)}u(Y,"toSafeInteger");x(Y,"toSafeInteger");function ge(r){const e=r+"CollectionProvider",[t,n]=q(e),[o,i]=t(e,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new H,setItemMap:x(()=>{},"setItemMap")}),f=x(({state:s,...l})=>s?(0,g.jsx)(O,{...l,state:s}):(0,g.jsx)(d,{...l}),"CollectionProvider");f.displayName=e;const d=x(s=>{const l=v();return(0,g.jsx)(O,{...s,state:l})},"CollectionInit");d.displayName=e+"Init";const O=x(s=>{const{scope:l,children:a,state:S}=s,b=c.useRef(null),[A,E]=c.useState(null),R=j(b,E),[L,M]=S;return c.useEffect(()=>{if(!A)return;const F=se(()=>{});return F.observe(A,{childList:!0,subtree:!0}),()=>{F.disconnect()}},[A]),(0,g.jsx)(o,{scope:l,itemMap:L,setItemMap:M,collectionRef:R,collectionRefObject:b,collectionElement:A,children:a})},"CollectionProviderImpl");O.displayName=e+"Impl";const w=r+"CollectionSlot",y=z(w),p=c.forwardRef((s,l)=>{const{scope:a,children:S}=s,b=i(w,a),A=j(l,b.collectionRef);return(0,g.jsx)(y,{ref:A,children:S})});p.displayName=w;const _=r+"CollectionItemSlot",h="data-radix-collection-item",C=z(_),m=c.forwardRef((s,l)=>{const{scope:a,children:S,...b}=s,A=c.useRef(null),[E,R]=c.useState(null),L=j(l,A,R),{setItemMap:M}=i(_,a),F=c.useRef(b);ne(F.current,b)||(F.current=b);const T=F.current;return c.useEffect(()=>{const Q=T;return M(P=>E?P.has(E)?P.set(E,{...Q,element:E}).toSorted(V):(P.set(E,{...Q,element:E}),P.toSorted(V)):P),()=>{M(P=>!E||!P.has(E)?P:(P.delete(E),new H(P)))}},[E,T,M]),(0,g.jsx)(C,{[h]:"",ref:L,children:S})});m.displayName=_;function v(){return c.useState(new H)}u(v,"useInitCollection"),x(v,"useInitCollection");function I(s){const{itemMap:l}=i(r+"CollectionConsumer",s);return l}return u(I,"useCollection"),x(I,"useCollection"),[{Provider:f,Slot:p,ItemSlot:m},{createCollectionScope:n,useCollection:I,useInitCollection:v}]}u(ge,"createCollection2");x(ge,"createCollection");function ne(r,e){if(r===e)return!0;if(typeof r!="object"||typeof e!="object"||r==null||e==null)return!1;const t=Object.keys(r),n=Object.keys(e);if(t.length!==n.length)return!1;for(const o of t)if(!Object.prototype.hasOwnProperty.call(e,o)||r[o]!==e[o])return!1;return!0}u(ne,"shallowEqual");x(ne,"shallowEqual");function re(r,e){return!!(e.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_PRECEDING)}u(re,"isElementPreceding");x(re,"isElementPreceding");function V(r,e){return!r[1].element||!e[1].element?0:re(r[1].element,e[1].element)?-1:1}u(V,"sortByDocumentPosition");x(V,"sortByDocumentPosition");function se(r){return new MutationObserver(e=>{for(const t of e)if(t.type==="childList"){r();return}})}u(se,"getChildListObserver");x(se,"getChildListObserver");var be=Object.defineProperty,Ee=u((r,e)=>be(r,"name",{value:e,configurable:!0}),"__name$2"),_e=c.createContext(void 0);function ie(r){const e=c.useContext(_e);return r||e||"ltr"}u(ie,"useDirection");Ee(ie,"useDirection");var Oe=Object.defineProperty,W=u((r,e)=>Oe(r,"name",{value:e,configurable:!0}),"__name$1"),B=!1;function ce(){const[r,e]=c.useState(B);return c.useEffect(()=>{B||(B=!0,e(!0))},[]),r}u(ce,"useIsHydrated");W(ce,"useIsHydrated");var le=c[" useSyncExternalStore ".trim().toString()];function ue(){return()=>{}}u(ue,"subscribe");W(ue,"subscribe");function ae(){return le(ue,()=>!0,()=>!1)}u(ae,"useIsHydratedModern");W(ae,"useIsHydratedModern");var we=typeof le=="function"?ae:ce,Ae=Object.defineProperty,N=u((r,e)=>Ae(r,"name",{value:e,configurable:!0}),"__name"),U="rovingFocusGroup.onEntryFocus",Fe={bubbles:!1,cancelable:!0},K="RovingFocusGroup",[$,fe,Te]=te(K),[Pe,Be]=q(K,[Te]),[Me,De]=Pe(K),Ne=c.forwardRef(N(u(function(e,t){return(0,g.jsx)($.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,g.jsx)($.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,g.jsx)(je,{...e,ref:t})})})},"RovingFocusGroup2"),"RovingFocusGroup")),je=c.forwardRef(N(u(function(e,t){const{__scopeRovingFocusGroup:n,orientation:o,loop:i=!1,dir:f,currentTabStopId:d,defaultCurrentTabStopId:O,onCurrentTabStopIdChange:w,onEntryFocus:y,preventScrollOnEntryFocus:p=!1,..._}=e,h=c.useRef(null),C=j(t,h),m=ie(f),[v,I]=ve({prop:d,defaultProp:O??null,onChange:w,caller:K}),[s,l]=c.useState(!1),a=Ce(y),S=fe(n),b=c.useRef(!1),[A,E]=c.useState(0);return c.useEffect(()=>{const R=h.current;if(R)return R.addEventListener(U,a),()=>R.removeEventListener(U,a)},[a]),(0,g.jsx)(Me,{scope:n,orientation:o,dir:m,loop:i,currentTabStopId:v,onItemFocus:c.useCallback(R=>I(R),[I]),onItemShiftTab:c.useCallback(()=>l(!0),[]),onFocusableItemAdd:c.useCallback(()=>E(R=>R+1),[]),onFocusableItemRemove:c.useCallback(()=>E(R=>R-1),[]),children:(0,g.jsx)(ee.div,{tabIndex:s||A===0?-1:0,"data-orientation":o,..._,ref:C,style:{outline:"none",...e.style},onMouseDown:k(e.onMouseDown,()=>{b.current=!0}),onFocus:k(e.onFocus,R=>{const L=!b.current;if(R.target===R.currentTarget&&L&&!s){const M=new CustomEvent(U,Fe);if(R.currentTarget.dispatchEvent(M),!M.defaultPrevented){const F=S().filter(T=>T.focusable);J([F.find(T=>T.active),F.find(T=>T.id===v),...F].filter(Boolean).map(T=>T.ref.current),p)}}b.current=!1}),onBlur:k(e.onBlur,()=>l(!1))})})},"RovingFocusGroupImpl2"),"RovingFocusGroupImpl")),ke="RovingFocusGroupItem",Le=c.forwardRef(N(u(function(e,t){const{__scopeRovingFocusGroup:n,focusable:o=!0,active:i=!1,tabStopId:f,children:d,...O}=e,w=Re(),y=f||w,p=De(ke,n),_=p.currentTabStopId===y,h=fe(n),{onFocusableItemAdd:C,onFocusableItemRemove:m,currentTabStopId:v}=p,I=we();return xe(()=>{if(!(!I||!o))return C(),()=>m()},[I,o,C,m]),c.useEffect(()=>{if(!(I||!o))return C(),()=>m()},[I,o,C,m]),(0,g.jsx)($.ItemSlot,{scope:n,id:y,focusable:o,active:i,children:(0,g.jsx)(ee.span,{tabIndex:_?0:-1,"data-orientation":p.orientation,...O,ref:t,onMouseDown:k(e.onMouseDown,s=>{o?p.onItemFocus(y):s.preventDefault()}),onFocus:k(e.onFocus,()=>p.onItemFocus(y)),onKeyDown:k(e.onKeyDown,s=>{if(s.key==="Tab"&&s.shiftKey){p.onItemShiftTab();return}if(s.target!==s.currentTarget)return;const l=pe(s,p.orientation,p.dir);if(l!==void 0){if(s.metaKey||s.ctrlKey||s.altKey||s.shiftKey)return;s.preventDefault();let a=h().filter(S=>S.focusable).map(S=>S.ref.current);if(l==="last")a.reverse();else if(l==="prev"||l==="next"){l==="prev"&&a.reverse();const S=a.indexOf(s.currentTarget);a=p.loop?he(a,S+1):a.slice(S+1)}setTimeout(()=>J(a))}}),children:typeof d=="function"?d({isCurrentTabStop:_,hasTabStop:v!=null}):d})})},"RovingFocusGroupItem2"),"RovingFocusGroupItem")),Ge={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function de(r,e){return e!=="rtl"?r:r==="ArrowLeft"?"ArrowRight":r==="ArrowRight"?"ArrowLeft":r}u(de,"getDirectionAwareKey");N(de,"getDirectionAwareKey");function pe(r,e,t){const n=de(r.key,t);if(!(e==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(e==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return Ge[n]}u(pe,"getFocusIntent");N(pe,"getFocusIntent");function J(r,e=!1){const t=document.activeElement;for(const n of r)if(n===t||(n.focus({preventScroll:e}),document.activeElement!==t))return}u(J,"focusFirst");N(J,"focusFirst");function he(r,e){return r.map((t,n)=>r[(e+n)%r.length])}u(he,"wrapArray");N(he,"wrapArray");var Ue=Ne,Ve=Le;export{te as a,ie as i,Ue as n,Be as r,Ve as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var Ue=Object.defineProperty;var p=(l,e)=>Ue(l,"name",{value:e,configurable:!0});import{i as we}from"./rolldown-runtime-ZpX3ckPj.js";import{Ai as We,Oi as Ke,a as Te,c as Ge,f as qe,i as ze,ki as Ye,l as O,m as U,n as Ce,o as X,r as Ie,s as E}from"./agent-avatar-url-BcyFoVtv.js";import{a as $e,i as Xe}from"./dist-BCtf-vM2.js";import{S as Ze,_ as Je,b as Qe,f as et,g as tt,m as Oe,p as ot,u as nt,x as rt,y as ct}from"./boxes-tcjFwFpA.js";var Ne=we(Ye(),1),o=we(We(),1),d=we(Ke(),1),st=Object.defineProperty,lt=p((l,e)=>st(l,"name",{value:e,configurable:!0}),"__name$3"),De=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),at=o.forwardRef(lt(p(function(e,s){return(0,d.jsx)(O.span,{...e,ref:s,style:{...De,...e.style}})},"VisuallyHidden2"),"VisuallyHidden")),Ft=at,it=Object.defineProperty,dt=p((l,e)=>it(l,"name",{value:e,configurable:!0}),"__name$2");function Le(l){const e=o.useRef({value:l,previous:l});return o.useMemo(()=>(e.current.value!==l&&(e.current.previous=e.current.value,e.current.value=l),e.current.previous),[l])}p(Le,"usePrevious");dt(Le,"usePrevious");var ut=Object.defineProperty,pt=p((l,e)=>ut(l,"name",{value:e,configurable:!0}),"__name$1");function ge(l,[e,s]){return Math.min(s,Math.max(e,l))}p(ge,"clamp");pt(ge,"clamp");var ft=Object.defineProperty,v=p((l,e)=>ft(l,"name",{value:e,configurable:!0}),"__name"),ht=[" ","Enter","ArrowUp","ArrowDown"],mt=[" ","Enter"],se="Select",[fe,he,St]=$e(se),[te,Ut]=Ge(se,[St,Oe]),Pe=Oe(),[vt,Z]=te(se),[gt,xt]=te(se);function Ve(l){const{__scopeSelect:e,children:s,open:t,defaultOpen:u,onOpenChange:r,value:f,defaultValue:n,onValueChange:c,dir:a,name:x,autoComplete:I,disabled:P,required:_,form:y,internal_do_not_use_render:b}=l,i=Pe(e),[g,C]=o.useState(null),[m,h]=o.useState(null),[N,D]=o.useState(!1),le=Xe(a),[V,k]=Te({prop:t,defaultProp:u??!1,onChange:r,caller:se}),[J,q]=Te({prop:f,defaultProp:n,onChange:c,caller:se}),W=o.useRef(null),K=o.useRef(J);o.useEffect(()=>{const M=y?g?.ownerDocument.getElementById(y):g?.form;if(M instanceof HTMLFormElement){const F=v(()=>q(K.current),"reset");return M.addEventListener("reset",F),()=>M.removeEventListener("reset",F)}},[y,g,q]);const Q=g?!!y||!!g.closest("form"):!0,[G,B]=o.useState(new Set),z=Ie(),Y=Array.from(G).map(M=>M.props.value).join(";"),$=o.useCallback(M=>{B(F=>new Set(F).add(M))},[]),H=o.useCallback(M=>{B(F=>{const re=new Set(F);return re.delete(M),re})},[]),ne={required:_,trigger:g,onTriggerChange:C,valueNode:m,onValueNodeChange:h,valueNodeHasChildren:N,onValueNodeHasChildrenChange:D,contentId:z,value:J,onValueChange:q,open:V,onOpenChange:k,dir:le,triggerPointerDownPosRef:W,disabled:P,name:x,autoComplete:I,form:y,nativeOptions:G,nativeSelectKey:Y,isFormControl:Q};return(0,d.jsx)(ot,{...i,children:(0,d.jsx)(vt,{scope:e,...ne,children:(0,d.jsx)(fe.Provider,{scope:e,children:(0,d.jsx)(gt,{scope:e,onNativeOptionAdd:$,onNativeOptionRemove:H,children:He(b)?b(ne):s})})})})}p(Ve,"SelectProvider");v(Ve,"SelectProvider");var Wt=v(l=>{const{__scopeSelect:e,children:s,...t}=l;return(0,d.jsx)(Ve,{__scopeSelect:e,...t,internal_do_not_use_render:p(({isFormControl:u})=>(0,d.jsxs)(d.Fragment,{children:[s,u?(0,d.jsx)(Lt,{__scopeSelect:e}):null]}),"internal_do_not_use_render")})},"Select"),wt="SelectTrigger",Kt=o.forwardRef(v(p(function(e,s){const{__scopeSelect:t,disabled:u=!1,...r}=e,f=Pe(t),n=Z(wt,t),c=n.disabled||u,a=U(s,n.onTriggerChange),x=he(t),I=o.useRef("touch"),[P,_,y]=_e(i=>{const g=x().filter(m=>!m.disabled),C=be(g,i,g.find(m=>m.value===n.value));C!==void 0&&n.onValueChange(C.value)}),b=v(i=>{c||(n.onOpenChange(!0),y()),i&&(n.triggerPointerDownPosRef.current={x:Math.round(i.pageX),y:Math.round(i.pageY)})},"handleOpen");return(0,d.jsx)(nt,{asChild:!0,...f,children:(0,d.jsx)(O.button,{type:"button",role:"combobox","aria-controls":n.open?n.contentId:void 0,"aria-expanded":n.open,"aria-required":n.required,"aria-autocomplete":"none",dir:n.dir,"data-state":n.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":de(n.value)?"":void 0,...r,ref:a,onClick:E(r.onClick,i=>{i.currentTarget.focus(),I.current!=="mouse"&&b(i)}),onPointerDown:E(r.onPointerDown,i=>{I.current=i.pointerType;const g=i.target;g.hasPointerCapture(i.pointerId)&&g.releasePointerCapture(i.pointerId),i.button===0&&i.ctrlKey===!1&&i.pointerType==="mouse"&&(b(i),i.preventDefault())}),onKeyDown:E(r.onKeyDown,i=>{const g=P.current!=="";!(i.ctrlKey||i.altKey||i.metaKey)&&i.key.length===1&&_(i.key),!(g&&i.key===" ")&&ht.includes(i.key)&&(b(),i.preventDefault())})})})},"SelectTrigger2"),"SelectTrigger")),Ct="SelectValue",Gt=o.forwardRef(v(p(function(e,s){const{__scopeSelect:t,className:u,style:r,children:f,placeholder:n="",...c}=e,a=Z(Ct,t),{onValueNodeHasChildrenChange:x}=a,I=f!==void 0,P=U(s,a.onValueNodeChange);X(()=>{x(I)},[x,I]);const _=de(a.value);return(0,d.jsx)(O.span,{...c,asChild:_?!1:c.asChild,ref:P,style:{pointerEvents:"none"},children:(0,d.jsx)(o.Fragment,{children:_?n:f},_?"placeholder":"value")})},"SelectValue2"),"SelectValue")),qt=o.forwardRef(v(p(function(e,s){const{__scopeSelect:t,children:u,...r}=e;return(0,d.jsx)(O.span,{"aria-hidden":!0,...r,ref:s,children:u||"▼"})},"SelectIcon2"),"SelectIcon")),[It,Pt]=te("SelectPortal",{forceMount:void 0}),zt=v(l=>{const{__scopeSelect:e,forceMount:s,...t}=l;return(0,d.jsx)(It,{scope:l.__scopeSelect,forceMount:s,children:(0,d.jsx)(Qe,{asChild:!0,...t})})},"SelectPortal"),ee="SelectContent",Yt=o.forwardRef(v(p(function(e,s){const t=Pt(ee,e.__scopeSelect),{forceMount:u=t.forceMount,...r}=e,f=Z(ee,e.__scopeSelect),[n,c]=o.useState();return X(()=>{c(new DocumentFragment)},[]),(0,d.jsx)(ze,{present:u||f.open,children:p(({present:a})=>a?(0,d.jsx)(bt,{...r,ref:s}):(0,d.jsx)(yt,{...r,fragment:n}),"children")})},"SelectContent2"),"SelectContent")),yt=o.forwardRef(v(p(function(e,s){const{__scopeSelect:t,children:u,fragment:r}=e;return r?Ne.createPortal((0,d.jsx)(Ae,{scope:t,children:(0,d.jsx)(fe.Slot,{scope:t,children:(0,d.jsx)("div",{ref:s,children:u})})}),r):null},"SelectContentFragment2"),"SelectContentFragment")),A=10,[Ae,oe]=te(ee),_t=qe("SelectContent.RemoveScroll"),bt=o.forwardRef(v(p(function(e,s){const{__scopeSelect:t}=e,{position:u="item-aligned",onCloseAutoFocus:r,onEscapeKeyDown:f,onPointerDownOutside:n,side:c,sideOffset:a,align:x,alignOffset:I,arrowPadding:P,collisionBoundary:_,collisionPadding:y,sticky:b,hideWhenDetached:i,avoidCollisions:g,...C}=e,m=Z(ee,t),[h,N]=o.useState(null),[D,le]=o.useState(null),V=U(s,N),[k,J]=o.useState(null),[q,W]=o.useState(null),K=he(t),[Q,G]=o.useState(!1),B=o.useRef(!1);o.useEffect(()=>{if(h)return tt(h)},[h]),ct();const z=o.useCallback(S=>{const[R,...T]=K().map(L=>L.ref.current),[w]=T.slice(-1),j=document.activeElement;for(const L of S)if(L===j||(L?.scrollIntoView({block:"nearest"}),L===R&&D&&(D.scrollTop=0),L===w&&D&&(D.scrollTop=D.scrollHeight),L?.focus(),document.activeElement!==j))return},[K,D]),Y=o.useCallback(()=>z([k,h]),[z,k,h]);o.useEffect(()=>{Q&&Y()},[Q,Y]);const{onOpenChange:$,triggerPointerDownPosRef:H}=m;o.useEffect(()=>{if(h){let S={x:0,y:0};const R=v(w=>{S={x:Math.abs(Math.round(w.pageX)-(H.current?.x??0)),y:Math.abs(Math.round(w.pageY)-(H.current?.y??0))}},"handlePointerMove"),T=v(w=>{S.x<=10&&S.y<=10?w.preventDefault():w.composedPath().includes(h)||$(!1),document.removeEventListener("pointermove",R),H.current=null},"handlePointerUp");return H.current!==null&&(document.addEventListener("pointermove",R),document.addEventListener("pointerup",T,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",R),document.removeEventListener("pointerup",T,{capture:!0})}}},[h,$,H]),o.useEffect(()=>{const S=v(()=>$(!1),"close");return window.addEventListener("blur",S),window.addEventListener("resize",S),()=>{window.removeEventListener("blur",S),window.removeEventListener("resize",S)}},[$]);const[ne,M]=_e(S=>{const R=K().filter(w=>!w.disabled),T=be(R,S,R.find(w=>w.ref.current===document.activeElement));T&&setTimeout(()=>T.ref.current?.focus())}),F=o.useCallback((S,R,T)=>{const w=!B.current&&!T;(m.value!==void 0&&m.value===R||w)&&(J(S),w&&(B.current=!0))},[m.value]),re=o.useCallback(()=>h?.focus(),[h]),ce=o.useCallback((S,R,T)=>{const w=!B.current&&!T;(m.value!==void 0&&m.value===R||w)&&W(S)},[m.value]),ue=u==="popper"?Re:Tt,ae=ue===Re?{side:c,sideOffset:a,align:x,alignOffset:I,arrowPadding:P,collisionBoundary:_,collisionPadding:y,sticky:b,hideWhenDetached:i,avoidCollisions:g}:{};return(0,d.jsx)(Ae,{scope:t,content:h,viewport:D,onViewportChange:le,itemRefCallback:F,selectedItem:k,onItemLeave:re,itemTextRefCallback:ce,focusSelectedItem:Y,selectedItemText:q,position:u,isPositioned:Q,searchRef:ne,children:(0,d.jsx)(Je,{as:_t,allowPinchZoom:!0,children:(0,d.jsx)(rt,{asChild:!0,trapped:m.open,onMountAutoFocus:p(S=>{S.preventDefault()},"onMountAutoFocus"),onUnmountAutoFocus:E(r,S=>{m.trigger?.focus({preventScroll:!0}),S.preventDefault()}),children:(0,d.jsx)(Ze,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:f,onPointerDownOutside:n,onFocusOutside:p(S=>S.preventDefault(),"onFocusOutside"),onDismiss:p(()=>m.onOpenChange(!1),"onDismiss"),children:(0,d.jsx)(ue,{role:"listbox",id:m.contentId,"data-state":m.open?"open":"closed",dir:m.dir,onContextMenu:p(S=>S.preventDefault(),"onContextMenu"),...C,...ae,onPlaced:p(()=>G(!0),"onPlaced"),ref:V,style:{display:"flex",flexDirection:"column",outline:"none",...C.style},onKeyDown:E(C.onKeyDown,S=>{const R=S.ctrlKey||S.altKey||S.metaKey;if(S.key==="Tab"&&S.preventDefault(),!R&&S.key.length===1&&M(S.key),["ArrowUp","ArrowDown","Home","End"].includes(S.key)){let T=K().filter(w=>!w.disabled).map(w=>w.ref.current);if(["ArrowUp","End"].includes(S.key)&&(T=T.slice().reverse()),["ArrowUp","ArrowDown"].includes(S.key)){const w=S.target,j=T.indexOf(w);T=T.slice(j+1)}setTimeout(()=>z(T)),S.preventDefault()}})})})})})})},"SelectContentImpl2"),"SelectContentImpl")),Tt=o.forwardRef(v(p(function(e,s){const{__scopeSelect:t,onPlaced:u,...r}=e,f=Z(ee,t),n=oe(ee,t),[c,a]=o.useState(null),[x,I]=o.useState(null),P=U(s,I),_=he(t),y=o.useRef(!1),b=o.useRef(!0),{viewport:i,selectedItem:g,selectedItemText:C,focusSelectedItem:m}=n,h=o.useCallback(()=>{if(f.trigger&&f.valueNode&&c&&x&&i&&g&&C){const V=f.trigger.getBoundingClientRect(),k=x.getBoundingClientRect(),J=f.valueNode.getBoundingClientRect(),q=C.getBoundingClientRect();if(f.dir!=="rtl"){const w=q.left-k.left,j=J.left-w,L=V.left-j,ie=V.width+L,me=Math.max(ie,k.width),Se=window.innerWidth-A,ve=ge(j,[A,Math.max(A,Se-me)]);c.style.minWidth=ie+"px",c.style.left=ve+"px"}else{const w=k.right-q.right,j=window.innerWidth-J.right-w,L=window.innerWidth-V.right-j,ie=V.width+L,me=Math.max(ie,k.width),Se=window.innerWidth-A,ve=ge(j,[A,Math.max(A,Se-me)]);c.style.minWidth=ie+"px",c.style.right=ve+"px"}const W=_(),K=window.innerHeight-A*2,Q=i.scrollHeight,G=window.getComputedStyle(x),B=parseInt(G.borderTopWidth,10),z=parseInt(G.paddingTop,10),Y=parseInt(G.borderBottomWidth,10),$=parseInt(G.paddingBottom,10),H=B+z+Q+$+Y,ne=Math.min(g.offsetHeight*5,H),M=window.getComputedStyle(i),F=parseInt(M.paddingTop,10),re=parseInt(M.paddingBottom,10),ce=V.top+V.height/2-A,ue=K-ce,ae=g.offsetHeight/2,S=g.offsetTop+ae,R=B+z+S,T=H-R;if(R<=ce){const w=W.length>0&&g===W[W.length-1].ref.current;c.style.bottom="0px";const j=x.clientHeight-i.offsetTop-i.offsetHeight,L=R+Math.max(ue,ae+(w?re:0)+j+Y);c.style.height=L+"px"}else{const w=W.length>0&&g===W[0].ref.current;c.style.top="0px";const j=Math.max(ce,B+i.offsetTop+(w?F:0)+ae)+T;c.style.height=j+"px",i.scrollTop=R-ce+i.offsetTop}c.style.margin=`${A}px 0`,c.style.minHeight=ne+"px",c.style.maxHeight=K+"px",u?.(),requestAnimationFrame(()=>y.current=!0)}},[_,f.trigger,f.valueNode,c,x,i,g,C,f.dir,u]);X(()=>h(),[h]);const[N,D]=o.useState();X(()=>{x&&D(window.getComputedStyle(x).zIndex)},[x]);const le=o.useCallback(V=>{V&&b.current===!0&&(h(),m?.(),b.current=!1)},[h,m]);return(0,d.jsx)(Rt,{scope:t,contentWrapper:c,shouldExpandOnScrollRef:y,onScrollButtonChange:le,children:(0,d.jsx)("div",{ref:a,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:N},children:(0,d.jsx)(O.div,{...r,ref:P,style:{boxSizing:"border-box",maxHeight:"100%",...r.style}})})})},"SelectItemAlignedPosition2"),"SelectItemAlignedPosition")),Re=o.forwardRef(v(p(function(e,s){const{__scopeSelect:t,align:u="start",collisionPadding:r=A,...f}=e,n=Pe(t);return(0,d.jsx)(et,{...n,...f,ref:s,align:u,collisionPadding:r,style:{boxSizing:"border-box",...f.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})},"SelectPopperPosition2"),"SelectPopperPosition")),[Rt,ye]=te(ee,{}),Ee="SelectViewport",$t=o.forwardRef(v(p(function(e,s){const{__scopeSelect:t,nonce:u,...r}=e,f=oe(Ee,t),n=ye(Ee,t),c=U(s,f.onViewportChange),a=o.useRef(0);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:u}),(0,d.jsx)(fe.Slot,{scope:t,children:(0,d.jsx)(O.div,{"data-radix-select-viewport":"",role:"presentation",...r,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...r.style},onScroll:E(r.onScroll,x=>{const I=x.currentTarget,{contentWrapper:P,shouldExpandOnScrollRef:_}=n;if(_?.current&&P){const y=Math.abs(a.current-I.scrollTop);if(y>0){const b=window.innerHeight-A*2,i=parseFloat(P.style.minHeight),g=parseFloat(P.style.height),C=Math.max(i,g);if(C<b){const m=C+y,h=Math.min(b,m),N=m-h;P.style.height=h+"px",P.style.bottom==="0px"&&(I.scrollTop=N>0?N:0,P.style.justifyContent="flex-end")}}}a.current=I.scrollTop})})})]})},"SelectViewport2"),"SelectViewport")),[Et,Mt]=te("SelectGroup"),Xt=o.forwardRef(v(p(function(e,s){const{__scopeSelect:t,...u}=e,r=Ie();return(0,d.jsx)(Et,{scope:t,id:r,children:(0,d.jsx)(O.div,{role:"group","aria-labelledby":r,...u,ref:s})})},"SelectGroup2"),"SelectGroup")),jt="SelectLabel",Zt=o.forwardRef(v(p(function(e,s){const{__scopeSelect:t,...u}=e,r=Mt(jt,t);return(0,d.jsx)(O.div,{id:r.id,...u,ref:s})},"SelectLabel2"),"SelectLabel")),xe="SelectItem",[Ot,ke]=te(xe),Jt=o.forwardRef(v(p(function(e,s){const{__scopeSelect:t,value:u,disabled:r=!1,textValue:f,...n}=e,c=Z(xe,t),a=oe(xe,t),x=c.value===u,[I,P]=o.useState(f??""),[_,y]=o.useState(!1),b=Ce(h=>a.itemRefCallback?.(h,u,r)),i=U(s,b),g=Ie(),C=o.useRef("touch"),m=v(()=>{r||(c.onValueChange(u),c.onOpenChange(!1))},"handleSelect");return(0,d.jsx)(Ot,{scope:t,value:u,disabled:r,textId:g,isSelected:x,onItemTextChange:o.useCallback(h=>{P(N=>N||(h?.textContent??"").trim())},[]),children:(0,d.jsx)(fe.ItemSlot,{scope:t,value:u,disabled:r,textValue:I,children:(0,d.jsx)(O.div,{role:"option","aria-labelledby":g,"data-highlighted":_?"":void 0,"aria-selected":x&&_,"data-state":x?"checked":"unchecked","aria-disabled":r||void 0,"data-disabled":r?"":void 0,tabIndex:r?void 0:-1,...n,ref:i,onFocus:E(n.onFocus,()=>y(!0)),onBlur:E(n.onBlur,()=>y(!1)),onClick:E(n.onClick,()=>{C.current!=="mouse"&&m()}),onPointerUp:E(n.onPointerUp,()=>{C.current==="mouse"&&m()}),onPointerDown:E(n.onPointerDown,h=>{C.current=h.pointerType}),onPointerMove:E(n.onPointerMove,h=>{C.current=h.pointerType,r?a.onItemLeave?.():C.current==="mouse"&&h.currentTarget.focus({preventScroll:!0})}),onPointerLeave:E(n.onPointerLeave,h=>{h.currentTarget===document.activeElement&&a.onItemLeave?.()}),onKeyDown:E(n.onKeyDown,h=>{r||h.target!==h.currentTarget||a.searchRef?.current!==""&&h.key===" "||(mt.includes(h.key)&&m(),h.key===" "&&h.preventDefault())})})})})},"SelectItem2"),"SelectItem")),pe="SelectItemText",Qt=o.forwardRef(v(p(function(e,s){const{__scopeSelect:t,className:u,style:r,...f}=e,n=Z(pe,t),c=oe(pe,t),a=ke(pe,t),x=xt(pe,t),[I,P]=o.useState(null),_=Ce(m=>c.itemTextRefCallback?.(m,a.value,a.disabled)),y=U(s,P,a.onItemTextChange,_),b=I?.textContent,i=o.useMemo(()=>(0,d.jsx)("option",{value:a.value,disabled:a.disabled,children:b},a.value),[a.disabled,a.value,b]),{onNativeOptionAdd:g,onNativeOptionRemove:C}=x;return X(()=>(g(i),()=>C(i)),[g,C,i]),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(O.span,{id:a.textId,...f,ref:y}),a.isSelected&&n.valueNode&&!n.valueNodeHasChildren&&!de(n.value)?Ne.createPortal(f.children,n.valueNode):null]})},"SelectItemText2"),"SelectItemText")),Nt="SelectItemIndicator",eo=o.forwardRef(v(p(function(e,s){const{__scopeSelect:t,...u}=e;return ke(Nt,t).isSelected?(0,d.jsx)(O.span,{"aria-hidden":!0,...u,ref:s}):null},"SelectItemIndicator2"),"SelectItemIndicator")),Me="SelectScrollUpButton",to=o.forwardRef(v(p(function(e,s){const t=oe(Me,e.__scopeSelect),u=ye(Me,e.__scopeSelect),[r,f]=o.useState(!1),n=U(s,u.onScrollButtonChange);return X(()=>{if(t.viewport&&t.isPositioned){let c=p(function(){const x=a.scrollTop>0;f(x)},"handleScroll2");v(c,"handleScroll");const a=t.viewport;return c(),a.addEventListener("scroll",c),()=>a.removeEventListener("scroll",c)}},[t.viewport,t.isPositioned]),r?(0,d.jsx)(Be,{...e,ref:n,onAutoScroll:p(()=>{const{viewport:c,selectedItem:a}=t;c&&a&&(c.scrollTop=c.scrollTop-a.offsetHeight)},"onAutoScroll")}):null},"SelectScrollUpButton2"),"SelectScrollUpButton")),je="SelectScrollDownButton",oo=o.forwardRef(v(p(function(e,s){const t=oe(je,e.__scopeSelect),u=ye(je,e.__scopeSelect),[r,f]=o.useState(!1),n=U(s,u.onScrollButtonChange);return X(()=>{if(t.viewport&&t.isPositioned){let c=p(function(){const x=a.scrollHeight-a.clientHeight,I=Math.ceil(a.scrollTop)<x;f(I)},"handleScroll2");v(c,"handleScroll");const a=t.viewport;return c(),a.addEventListener("scroll",c),()=>a.removeEventListener("scroll",c)}},[t.viewport,t.isPositioned]),r?(0,d.jsx)(Be,{...e,ref:n,onAutoScroll:p(()=>{const{viewport:c,selectedItem:a}=t;c&&a&&(c.scrollTop=c.scrollTop+a.offsetHeight)},"onAutoScroll")}):null},"SelectScrollDownButton2"),"SelectScrollDownButton")),Be=o.forwardRef(v(p(function(e,s){const{__scopeSelect:t,onAutoScroll:u,...r}=e,f=oe("SelectScrollButton",t),n=o.useRef(null),c=he(t),a=o.useCallback(()=>{n.current!==null&&(window.clearInterval(n.current),n.current=null)},[]);return o.useEffect(()=>()=>a(),[a]),X(()=>{c().find(x=>x.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[c]),(0,d.jsx)(O.div,{"aria-hidden":!0,...r,ref:s,style:{flexShrink:0,...r.style},onPointerDown:E(r.onPointerDown,()=>{n.current===null&&(n.current=window.setInterval(u,50))}),onPointerMove:E(r.onPointerMove,()=>{f.onItemLeave?.(),n.current===null&&(n.current=window.setInterval(u,50))}),onPointerLeave:E(r.onPointerLeave,()=>{a()})})},"SelectScrollButtonImpl2"),"SelectScrollButtonImpl")),no=o.forwardRef(v(p(function(e,s){const{__scopeSelect:t,...u}=e;return(0,d.jsx)(O.div,{"aria-hidden":!0,...u,ref:s})},"SelectSeparator2"),"SelectSeparator")),Dt="SelectBubbleInput",Lt=o.forwardRef(v(p(function({__scopeSelect:e,...s},t){const u=Z(Dt,e),{value:r,onValueChange:f,required:n,disabled:c,name:a,autoComplete:x,form:I}=u,{nativeOptions:P,nativeSelectKey:_}=u,y=o.useRef(null),b=U(t,y),i=r??"",g=Le(i),C=Array.from(P).some(m=>(m.props.value??"")==="");return o.useEffect(()=>{const m=y.current;if(!m)return;const h=window.HTMLSelectElement.prototype,N=Object.getOwnPropertyDescriptor(h,"value").set;if(g!==i&&N){const D=new Event("change",{bubbles:!0});N.call(m,i),m.dispatchEvent(D)}},[g,i]),(0,d.jsxs)(O.select,{"aria-hidden":!0,required:n,tabIndex:-1,name:a,autoComplete:x,disabled:c,form:I,onChange:p(m=>f(m.target.value),"onChange"),...s,style:{...De,...s.style},ref:b,defaultValue:i,children:[de(r)&&!C?(0,d.jsx)("option",{value:""}):null,Array.from(P)]},_)},"SelectBubbleInput2"),"SelectBubbleInput"));function He(l){return typeof l=="function"}p(He,"isFunction");v(He,"isFunction");function de(l){return l===""||l===void 0}p(de,"shouldShowPlaceholder");v(de,"shouldShowPlaceholder");function _e(l){const e=Ce(l),s=o.useRef(""),t=o.useRef(0),u=o.useCallback(f=>{const n=s.current+f;e(n),v(p((function c(a){s.current=a,window.clearTimeout(t.current),a!==""&&(t.current=window.setTimeout(()=>c(""),1e3))}),"updateSearch"),"updateSearch")(n)},[e]),r=o.useCallback(()=>{s.current="",window.clearTimeout(t.current)},[]);return o.useEffect(()=>()=>window.clearTimeout(t.current),[]),[s,u,r]}p(_e,"useTypeaheadSearch");v(_e,"useTypeaheadSearch");function be(l,e,s){const t=e.length>1&&Array.from(e).every(n=>n===e[0])?e[0]:e,u=s?l.indexOf(s):-1;let r=Fe(l,Math.max(u,0));t.length===1&&(r=r.filter(n=>n!==s));const f=r.find(n=>n.textValue.toLowerCase().startsWith(t.toLowerCase()));return f!==s?f:void 0}p(be,"findNextItem");v(be,"findNextItem");function Fe(l,e){return l.map((s,t)=>l[(e+t)%l.length])}p(Fe,"wrapArray");v(Fe,"wrapArray");export{Ft as _,Jt as a,Zt as c,to as d,no as f,ge as g,$t as h,qt as i,zt as l,Gt as m,Yt as n,eo as o,Kt as p,Xt as r,Qt as s,Wt as t,oo as u};
|
|
1
|
+
var Ue=Object.defineProperty;var p=(l,e)=>Ue(l,"name",{value:e,configurable:!0});import{i as we}from"./rolldown-runtime-ZpX3ckPj.js";import{Ai as We,a as Te,c as Ke,f as Ge,i as qe,ji as ze,ki as Ye,l as O,m as U,n as Ce,o as X,r as Ie,s as E}from"./agent-avatar-url-COB3FyNh.js";import{a as $e,i as Xe}from"./dist-CKsixJWn.js";import{S as Ze,_ as Je,b as Qe,f as et,g as tt,m as Oe,p as ot,u as nt,x as rt,y as ct}from"./boxes-B17SB309.js";var Ne=we(We(),1),o=we(ze(),1),d=we(Ye(),1),st=Object.defineProperty,lt=p((l,e)=>st(l,"name",{value:e,configurable:!0}),"__name$3"),De=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),at=o.forwardRef(lt(p(function(e,s){return(0,d.jsx)(O.span,{...e,ref:s,style:{...De,...e.style}})},"VisuallyHidden2"),"VisuallyHidden")),Ft=at,it=Object.defineProperty,dt=p((l,e)=>it(l,"name",{value:e,configurable:!0}),"__name$2");function Le(l){const e=o.useRef({value:l,previous:l});return o.useMemo(()=>(e.current.value!==l&&(e.current.previous=e.current.value,e.current.value=l),e.current.previous),[l])}p(Le,"usePrevious");dt(Le,"usePrevious");var ut=Object.defineProperty,pt=p((l,e)=>ut(l,"name",{value:e,configurable:!0}),"__name$1");function ge(l,[e,s]){return Math.min(s,Math.max(e,l))}p(ge,"clamp");pt(ge,"clamp");var ft=Object.defineProperty,v=p((l,e)=>ft(l,"name",{value:e,configurable:!0}),"__name"),ht=[" ","Enter","ArrowUp","ArrowDown"],mt=[" ","Enter"],se="Select",[fe,he,St]=$e(se),[te,Ut]=Ke(se,[St,Oe]),Pe=Oe(),[vt,Z]=te(se),[gt,xt]=te(se);function Ve(l){const{__scopeSelect:e,children:s,open:t,defaultOpen:u,onOpenChange:r,value:f,defaultValue:n,onValueChange:c,dir:a,name:x,autoComplete:I,disabled:P,required:_,form:y,internal_do_not_use_render:b}=l,i=Pe(e),[g,C]=o.useState(null),[m,h]=o.useState(null),[N,D]=o.useState(!1),le=Xe(a),[V,k]=Te({prop:t,defaultProp:u??!1,onChange:r,caller:se}),[J,q]=Te({prop:f,defaultProp:n,onChange:c,caller:se}),W=o.useRef(null),K=o.useRef(J);o.useEffect(()=>{const M=y?g?.ownerDocument.getElementById(y):g?.form;if(M instanceof HTMLFormElement){const F=v(()=>q(K.current),"reset");return M.addEventListener("reset",F),()=>M.removeEventListener("reset",F)}},[y,g,q]);const Q=g?!!y||!!g.closest("form"):!0,[G,B]=o.useState(new Set),z=Ie(),Y=Array.from(G).map(M=>M.props.value).join(";"),$=o.useCallback(M=>{B(F=>new Set(F).add(M))},[]),H=o.useCallback(M=>{B(F=>{const re=new Set(F);return re.delete(M),re})},[]),ne={required:_,trigger:g,onTriggerChange:C,valueNode:m,onValueNodeChange:h,valueNodeHasChildren:N,onValueNodeHasChildrenChange:D,contentId:z,value:J,onValueChange:q,open:V,onOpenChange:k,dir:le,triggerPointerDownPosRef:W,disabled:P,name:x,autoComplete:I,form:y,nativeOptions:G,nativeSelectKey:Y,isFormControl:Q};return(0,d.jsx)(ot,{...i,children:(0,d.jsx)(vt,{scope:e,...ne,children:(0,d.jsx)(fe.Provider,{scope:e,children:(0,d.jsx)(gt,{scope:e,onNativeOptionAdd:$,onNativeOptionRemove:H,children:He(b)?b(ne):s})})})})}p(Ve,"SelectProvider");v(Ve,"SelectProvider");var Wt=v(l=>{const{__scopeSelect:e,children:s,...t}=l;return(0,d.jsx)(Ve,{__scopeSelect:e,...t,internal_do_not_use_render:p(({isFormControl:u})=>(0,d.jsxs)(d.Fragment,{children:[s,u?(0,d.jsx)(Lt,{__scopeSelect:e}):null]}),"internal_do_not_use_render")})},"Select"),wt="SelectTrigger",Kt=o.forwardRef(v(p(function(e,s){const{__scopeSelect:t,disabled:u=!1,...r}=e,f=Pe(t),n=Z(wt,t),c=n.disabled||u,a=U(s,n.onTriggerChange),x=he(t),I=o.useRef("touch"),[P,_,y]=_e(i=>{const g=x().filter(m=>!m.disabled),C=be(g,i,g.find(m=>m.value===n.value));C!==void 0&&n.onValueChange(C.value)}),b=v(i=>{c||(n.onOpenChange(!0),y()),i&&(n.triggerPointerDownPosRef.current={x:Math.round(i.pageX),y:Math.round(i.pageY)})},"handleOpen");return(0,d.jsx)(nt,{asChild:!0,...f,children:(0,d.jsx)(O.button,{type:"button",role:"combobox","aria-controls":n.open?n.contentId:void 0,"aria-expanded":n.open,"aria-required":n.required,"aria-autocomplete":"none",dir:n.dir,"data-state":n.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":de(n.value)?"":void 0,...r,ref:a,onClick:E(r.onClick,i=>{i.currentTarget.focus(),I.current!=="mouse"&&b(i)}),onPointerDown:E(r.onPointerDown,i=>{I.current=i.pointerType;const g=i.target;g.hasPointerCapture(i.pointerId)&&g.releasePointerCapture(i.pointerId),i.button===0&&i.ctrlKey===!1&&i.pointerType==="mouse"&&(b(i),i.preventDefault())}),onKeyDown:E(r.onKeyDown,i=>{const g=P.current!=="";!(i.ctrlKey||i.altKey||i.metaKey)&&i.key.length===1&&_(i.key),!(g&&i.key===" ")&&ht.includes(i.key)&&(b(),i.preventDefault())})})})},"SelectTrigger2"),"SelectTrigger")),Ct="SelectValue",Gt=o.forwardRef(v(p(function(e,s){const{__scopeSelect:t,className:u,style:r,children:f,placeholder:n="",...c}=e,a=Z(Ct,t),{onValueNodeHasChildrenChange:x}=a,I=f!==void 0,P=U(s,a.onValueNodeChange);X(()=>{x(I)},[x,I]);const _=de(a.value);return(0,d.jsx)(O.span,{...c,asChild:_?!1:c.asChild,ref:P,style:{pointerEvents:"none"},children:(0,d.jsx)(o.Fragment,{children:_?n:f},_?"placeholder":"value")})},"SelectValue2"),"SelectValue")),qt=o.forwardRef(v(p(function(e,s){const{__scopeSelect:t,children:u,...r}=e;return(0,d.jsx)(O.span,{"aria-hidden":!0,...r,ref:s,children:u||"▼"})},"SelectIcon2"),"SelectIcon")),[It,Pt]=te("SelectPortal",{forceMount:void 0}),zt=v(l=>{const{__scopeSelect:e,forceMount:s,...t}=l;return(0,d.jsx)(It,{scope:l.__scopeSelect,forceMount:s,children:(0,d.jsx)(Qe,{asChild:!0,...t})})},"SelectPortal"),ee="SelectContent",Yt=o.forwardRef(v(p(function(e,s){const t=Pt(ee,e.__scopeSelect),{forceMount:u=t.forceMount,...r}=e,f=Z(ee,e.__scopeSelect),[n,c]=o.useState();return X(()=>{c(new DocumentFragment)},[]),(0,d.jsx)(qe,{present:u||f.open,children:p(({present:a})=>a?(0,d.jsx)(bt,{...r,ref:s}):(0,d.jsx)(yt,{...r,fragment:n}),"children")})},"SelectContent2"),"SelectContent")),yt=o.forwardRef(v(p(function(e,s){const{__scopeSelect:t,children:u,fragment:r}=e;return r?Ne.createPortal((0,d.jsx)(Ae,{scope:t,children:(0,d.jsx)(fe.Slot,{scope:t,children:(0,d.jsx)("div",{ref:s,children:u})})}),r):null},"SelectContentFragment2"),"SelectContentFragment")),A=10,[Ae,oe]=te(ee),_t=Ge("SelectContent.RemoveScroll"),bt=o.forwardRef(v(p(function(e,s){const{__scopeSelect:t}=e,{position:u="item-aligned",onCloseAutoFocus:r,onEscapeKeyDown:f,onPointerDownOutside:n,side:c,sideOffset:a,align:x,alignOffset:I,arrowPadding:P,collisionBoundary:_,collisionPadding:y,sticky:b,hideWhenDetached:i,avoidCollisions:g,...C}=e,m=Z(ee,t),[h,N]=o.useState(null),[D,le]=o.useState(null),V=U(s,N),[k,J]=o.useState(null),[q,W]=o.useState(null),K=he(t),[Q,G]=o.useState(!1),B=o.useRef(!1);o.useEffect(()=>{if(h)return tt(h)},[h]),ct();const z=o.useCallback(S=>{const[R,...T]=K().map(L=>L.ref.current),[w]=T.slice(-1),j=document.activeElement;for(const L of S)if(L===j||(L?.scrollIntoView({block:"nearest"}),L===R&&D&&(D.scrollTop=0),L===w&&D&&(D.scrollTop=D.scrollHeight),L?.focus(),document.activeElement!==j))return},[K,D]),Y=o.useCallback(()=>z([k,h]),[z,k,h]);o.useEffect(()=>{Q&&Y()},[Q,Y]);const{onOpenChange:$,triggerPointerDownPosRef:H}=m;o.useEffect(()=>{if(h){let S={x:0,y:0};const R=v(w=>{S={x:Math.abs(Math.round(w.pageX)-(H.current?.x??0)),y:Math.abs(Math.round(w.pageY)-(H.current?.y??0))}},"handlePointerMove"),T=v(w=>{S.x<=10&&S.y<=10?w.preventDefault():w.composedPath().includes(h)||$(!1),document.removeEventListener("pointermove",R),H.current=null},"handlePointerUp");return H.current!==null&&(document.addEventListener("pointermove",R),document.addEventListener("pointerup",T,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",R),document.removeEventListener("pointerup",T,{capture:!0})}}},[h,$,H]),o.useEffect(()=>{const S=v(()=>$(!1),"close");return window.addEventListener("blur",S),window.addEventListener("resize",S),()=>{window.removeEventListener("blur",S),window.removeEventListener("resize",S)}},[$]);const[ne,M]=_e(S=>{const R=K().filter(w=>!w.disabled),T=be(R,S,R.find(w=>w.ref.current===document.activeElement));T&&setTimeout(()=>T.ref.current?.focus())}),F=o.useCallback((S,R,T)=>{const w=!B.current&&!T;(m.value!==void 0&&m.value===R||w)&&(J(S),w&&(B.current=!0))},[m.value]),re=o.useCallback(()=>h?.focus(),[h]),ce=o.useCallback((S,R,T)=>{const w=!B.current&&!T;(m.value!==void 0&&m.value===R||w)&&W(S)},[m.value]),ue=u==="popper"?Re:Tt,ae=ue===Re?{side:c,sideOffset:a,align:x,alignOffset:I,arrowPadding:P,collisionBoundary:_,collisionPadding:y,sticky:b,hideWhenDetached:i,avoidCollisions:g}:{};return(0,d.jsx)(Ae,{scope:t,content:h,viewport:D,onViewportChange:le,itemRefCallback:F,selectedItem:k,onItemLeave:re,itemTextRefCallback:ce,focusSelectedItem:Y,selectedItemText:q,position:u,isPositioned:Q,searchRef:ne,children:(0,d.jsx)(Je,{as:_t,allowPinchZoom:!0,children:(0,d.jsx)(rt,{asChild:!0,trapped:m.open,onMountAutoFocus:p(S=>{S.preventDefault()},"onMountAutoFocus"),onUnmountAutoFocus:E(r,S=>{m.trigger?.focus({preventScroll:!0}),S.preventDefault()}),children:(0,d.jsx)(Ze,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:f,onPointerDownOutside:n,onFocusOutside:p(S=>S.preventDefault(),"onFocusOutside"),onDismiss:p(()=>m.onOpenChange(!1),"onDismiss"),children:(0,d.jsx)(ue,{role:"listbox",id:m.contentId,"data-state":m.open?"open":"closed",dir:m.dir,onContextMenu:p(S=>S.preventDefault(),"onContextMenu"),...C,...ae,onPlaced:p(()=>G(!0),"onPlaced"),ref:V,style:{display:"flex",flexDirection:"column",outline:"none",...C.style},onKeyDown:E(C.onKeyDown,S=>{const R=S.ctrlKey||S.altKey||S.metaKey;if(S.key==="Tab"&&S.preventDefault(),!R&&S.key.length===1&&M(S.key),["ArrowUp","ArrowDown","Home","End"].includes(S.key)){let T=K().filter(w=>!w.disabled).map(w=>w.ref.current);if(["ArrowUp","End"].includes(S.key)&&(T=T.slice().reverse()),["ArrowUp","ArrowDown"].includes(S.key)){const w=S.target,j=T.indexOf(w);T=T.slice(j+1)}setTimeout(()=>z(T)),S.preventDefault()}})})})})})})},"SelectContentImpl2"),"SelectContentImpl")),Tt=o.forwardRef(v(p(function(e,s){const{__scopeSelect:t,onPlaced:u,...r}=e,f=Z(ee,t),n=oe(ee,t),[c,a]=o.useState(null),[x,I]=o.useState(null),P=U(s,I),_=he(t),y=o.useRef(!1),b=o.useRef(!0),{viewport:i,selectedItem:g,selectedItemText:C,focusSelectedItem:m}=n,h=o.useCallback(()=>{if(f.trigger&&f.valueNode&&c&&x&&i&&g&&C){const V=f.trigger.getBoundingClientRect(),k=x.getBoundingClientRect(),J=f.valueNode.getBoundingClientRect(),q=C.getBoundingClientRect();if(f.dir!=="rtl"){const w=q.left-k.left,j=J.left-w,L=V.left-j,ie=V.width+L,me=Math.max(ie,k.width),Se=window.innerWidth-A,ve=ge(j,[A,Math.max(A,Se-me)]);c.style.minWidth=ie+"px",c.style.left=ve+"px"}else{const w=k.right-q.right,j=window.innerWidth-J.right-w,L=window.innerWidth-V.right-j,ie=V.width+L,me=Math.max(ie,k.width),Se=window.innerWidth-A,ve=ge(j,[A,Math.max(A,Se-me)]);c.style.minWidth=ie+"px",c.style.right=ve+"px"}const W=_(),K=window.innerHeight-A*2,Q=i.scrollHeight,G=window.getComputedStyle(x),B=parseInt(G.borderTopWidth,10),z=parseInt(G.paddingTop,10),Y=parseInt(G.borderBottomWidth,10),$=parseInt(G.paddingBottom,10),H=B+z+Q+$+Y,ne=Math.min(g.offsetHeight*5,H),M=window.getComputedStyle(i),F=parseInt(M.paddingTop,10),re=parseInt(M.paddingBottom,10),ce=V.top+V.height/2-A,ue=K-ce,ae=g.offsetHeight/2,S=g.offsetTop+ae,R=B+z+S,T=H-R;if(R<=ce){const w=W.length>0&&g===W[W.length-1].ref.current;c.style.bottom="0px";const j=x.clientHeight-i.offsetTop-i.offsetHeight,L=R+Math.max(ue,ae+(w?re:0)+j+Y);c.style.height=L+"px"}else{const w=W.length>0&&g===W[0].ref.current;c.style.top="0px";const j=Math.max(ce,B+i.offsetTop+(w?F:0)+ae)+T;c.style.height=j+"px",i.scrollTop=R-ce+i.offsetTop}c.style.margin=`${A}px 0`,c.style.minHeight=ne+"px",c.style.maxHeight=K+"px",u?.(),requestAnimationFrame(()=>y.current=!0)}},[_,f.trigger,f.valueNode,c,x,i,g,C,f.dir,u]);X(()=>h(),[h]);const[N,D]=o.useState();X(()=>{x&&D(window.getComputedStyle(x).zIndex)},[x]);const le=o.useCallback(V=>{V&&b.current===!0&&(h(),m?.(),b.current=!1)},[h,m]);return(0,d.jsx)(Rt,{scope:t,contentWrapper:c,shouldExpandOnScrollRef:y,onScrollButtonChange:le,children:(0,d.jsx)("div",{ref:a,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:N},children:(0,d.jsx)(O.div,{...r,ref:P,style:{boxSizing:"border-box",maxHeight:"100%",...r.style}})})})},"SelectItemAlignedPosition2"),"SelectItemAlignedPosition")),Re=o.forwardRef(v(p(function(e,s){const{__scopeSelect:t,align:u="start",collisionPadding:r=A,...f}=e,n=Pe(t);return(0,d.jsx)(et,{...n,...f,ref:s,align:u,collisionPadding:r,style:{boxSizing:"border-box",...f.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})},"SelectPopperPosition2"),"SelectPopperPosition")),[Rt,ye]=te(ee,{}),Ee="SelectViewport",$t=o.forwardRef(v(p(function(e,s){const{__scopeSelect:t,nonce:u,...r}=e,f=oe(Ee,t),n=ye(Ee,t),c=U(s,f.onViewportChange),a=o.useRef(0);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:u}),(0,d.jsx)(fe.Slot,{scope:t,children:(0,d.jsx)(O.div,{"data-radix-select-viewport":"",role:"presentation",...r,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...r.style},onScroll:E(r.onScroll,x=>{const I=x.currentTarget,{contentWrapper:P,shouldExpandOnScrollRef:_}=n;if(_?.current&&P){const y=Math.abs(a.current-I.scrollTop);if(y>0){const b=window.innerHeight-A*2,i=parseFloat(P.style.minHeight),g=parseFloat(P.style.height),C=Math.max(i,g);if(C<b){const m=C+y,h=Math.min(b,m),N=m-h;P.style.height=h+"px",P.style.bottom==="0px"&&(I.scrollTop=N>0?N:0,P.style.justifyContent="flex-end")}}}a.current=I.scrollTop})})})]})},"SelectViewport2"),"SelectViewport")),[Et,Mt]=te("SelectGroup"),Xt=o.forwardRef(v(p(function(e,s){const{__scopeSelect:t,...u}=e,r=Ie();return(0,d.jsx)(Et,{scope:t,id:r,children:(0,d.jsx)(O.div,{role:"group","aria-labelledby":r,...u,ref:s})})},"SelectGroup2"),"SelectGroup")),jt="SelectLabel",Zt=o.forwardRef(v(p(function(e,s){const{__scopeSelect:t,...u}=e,r=Mt(jt,t);return(0,d.jsx)(O.div,{id:r.id,...u,ref:s})},"SelectLabel2"),"SelectLabel")),xe="SelectItem",[Ot,ke]=te(xe),Jt=o.forwardRef(v(p(function(e,s){const{__scopeSelect:t,value:u,disabled:r=!1,textValue:f,...n}=e,c=Z(xe,t),a=oe(xe,t),x=c.value===u,[I,P]=o.useState(f??""),[_,y]=o.useState(!1),b=Ce(h=>a.itemRefCallback?.(h,u,r)),i=U(s,b),g=Ie(),C=o.useRef("touch"),m=v(()=>{r||(c.onValueChange(u),c.onOpenChange(!1))},"handleSelect");return(0,d.jsx)(Ot,{scope:t,value:u,disabled:r,textId:g,isSelected:x,onItemTextChange:o.useCallback(h=>{P(N=>N||(h?.textContent??"").trim())},[]),children:(0,d.jsx)(fe.ItemSlot,{scope:t,value:u,disabled:r,textValue:I,children:(0,d.jsx)(O.div,{role:"option","aria-labelledby":g,"data-highlighted":_?"":void 0,"aria-selected":x&&_,"data-state":x?"checked":"unchecked","aria-disabled":r||void 0,"data-disabled":r?"":void 0,tabIndex:r?void 0:-1,...n,ref:i,onFocus:E(n.onFocus,()=>y(!0)),onBlur:E(n.onBlur,()=>y(!1)),onClick:E(n.onClick,()=>{C.current!=="mouse"&&m()}),onPointerUp:E(n.onPointerUp,()=>{C.current==="mouse"&&m()}),onPointerDown:E(n.onPointerDown,h=>{C.current=h.pointerType}),onPointerMove:E(n.onPointerMove,h=>{C.current=h.pointerType,r?a.onItemLeave?.():C.current==="mouse"&&h.currentTarget.focus({preventScroll:!0})}),onPointerLeave:E(n.onPointerLeave,h=>{h.currentTarget===document.activeElement&&a.onItemLeave?.()}),onKeyDown:E(n.onKeyDown,h=>{r||h.target!==h.currentTarget||a.searchRef?.current!==""&&h.key===" "||(mt.includes(h.key)&&m(),h.key===" "&&h.preventDefault())})})})})},"SelectItem2"),"SelectItem")),pe="SelectItemText",Qt=o.forwardRef(v(p(function(e,s){const{__scopeSelect:t,className:u,style:r,...f}=e,n=Z(pe,t),c=oe(pe,t),a=ke(pe,t),x=xt(pe,t),[I,P]=o.useState(null),_=Ce(m=>c.itemTextRefCallback?.(m,a.value,a.disabled)),y=U(s,P,a.onItemTextChange,_),b=I?.textContent,i=o.useMemo(()=>(0,d.jsx)("option",{value:a.value,disabled:a.disabled,children:b},a.value),[a.disabled,a.value,b]),{onNativeOptionAdd:g,onNativeOptionRemove:C}=x;return X(()=>(g(i),()=>C(i)),[g,C,i]),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(O.span,{id:a.textId,...f,ref:y}),a.isSelected&&n.valueNode&&!n.valueNodeHasChildren&&!de(n.value)?Ne.createPortal(f.children,n.valueNode):null]})},"SelectItemText2"),"SelectItemText")),Nt="SelectItemIndicator",eo=o.forwardRef(v(p(function(e,s){const{__scopeSelect:t,...u}=e;return ke(Nt,t).isSelected?(0,d.jsx)(O.span,{"aria-hidden":!0,...u,ref:s}):null},"SelectItemIndicator2"),"SelectItemIndicator")),Me="SelectScrollUpButton",to=o.forwardRef(v(p(function(e,s){const t=oe(Me,e.__scopeSelect),u=ye(Me,e.__scopeSelect),[r,f]=o.useState(!1),n=U(s,u.onScrollButtonChange);return X(()=>{if(t.viewport&&t.isPositioned){let c=p(function(){const x=a.scrollTop>0;f(x)},"handleScroll2");v(c,"handleScroll");const a=t.viewport;return c(),a.addEventListener("scroll",c),()=>a.removeEventListener("scroll",c)}},[t.viewport,t.isPositioned]),r?(0,d.jsx)(Be,{...e,ref:n,onAutoScroll:p(()=>{const{viewport:c,selectedItem:a}=t;c&&a&&(c.scrollTop=c.scrollTop-a.offsetHeight)},"onAutoScroll")}):null},"SelectScrollUpButton2"),"SelectScrollUpButton")),je="SelectScrollDownButton",oo=o.forwardRef(v(p(function(e,s){const t=oe(je,e.__scopeSelect),u=ye(je,e.__scopeSelect),[r,f]=o.useState(!1),n=U(s,u.onScrollButtonChange);return X(()=>{if(t.viewport&&t.isPositioned){let c=p(function(){const x=a.scrollHeight-a.clientHeight,I=Math.ceil(a.scrollTop)<x;f(I)},"handleScroll2");v(c,"handleScroll");const a=t.viewport;return c(),a.addEventListener("scroll",c),()=>a.removeEventListener("scroll",c)}},[t.viewport,t.isPositioned]),r?(0,d.jsx)(Be,{...e,ref:n,onAutoScroll:p(()=>{const{viewport:c,selectedItem:a}=t;c&&a&&(c.scrollTop=c.scrollTop+a.offsetHeight)},"onAutoScroll")}):null},"SelectScrollDownButton2"),"SelectScrollDownButton")),Be=o.forwardRef(v(p(function(e,s){const{__scopeSelect:t,onAutoScroll:u,...r}=e,f=oe("SelectScrollButton",t),n=o.useRef(null),c=he(t),a=o.useCallback(()=>{n.current!==null&&(window.clearInterval(n.current),n.current=null)},[]);return o.useEffect(()=>()=>a(),[a]),X(()=>{c().find(x=>x.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[c]),(0,d.jsx)(O.div,{"aria-hidden":!0,...r,ref:s,style:{flexShrink:0,...r.style},onPointerDown:E(r.onPointerDown,()=>{n.current===null&&(n.current=window.setInterval(u,50))}),onPointerMove:E(r.onPointerMove,()=>{f.onItemLeave?.(),n.current===null&&(n.current=window.setInterval(u,50))}),onPointerLeave:E(r.onPointerLeave,()=>{a()})})},"SelectScrollButtonImpl2"),"SelectScrollButtonImpl")),no=o.forwardRef(v(p(function(e,s){const{__scopeSelect:t,...u}=e;return(0,d.jsx)(O.div,{"aria-hidden":!0,...u,ref:s})},"SelectSeparator2"),"SelectSeparator")),Dt="SelectBubbleInput",Lt=o.forwardRef(v(p(function({__scopeSelect:e,...s},t){const u=Z(Dt,e),{value:r,onValueChange:f,required:n,disabled:c,name:a,autoComplete:x,form:I}=u,{nativeOptions:P,nativeSelectKey:_}=u,y=o.useRef(null),b=U(t,y),i=r??"",g=Le(i),C=Array.from(P).some(m=>(m.props.value??"")==="");return o.useEffect(()=>{const m=y.current;if(!m)return;const h=window.HTMLSelectElement.prototype,N=Object.getOwnPropertyDescriptor(h,"value").set;if(g!==i&&N){const D=new Event("change",{bubbles:!0});N.call(m,i),m.dispatchEvent(D)}},[g,i]),(0,d.jsxs)(O.select,{"aria-hidden":!0,required:n,tabIndex:-1,name:a,autoComplete:x,disabled:c,form:I,onChange:p(m=>f(m.target.value),"onChange"),...s,style:{...De,...s.style},ref:b,defaultValue:i,children:[de(r)&&!C?(0,d.jsx)("option",{value:""}):null,Array.from(P)]},_)},"SelectBubbleInput2"),"SelectBubbleInput"));function He(l){return typeof l=="function"}p(He,"isFunction");v(He,"isFunction");function de(l){return l===""||l===void 0}p(de,"shouldShowPlaceholder");v(de,"shouldShowPlaceholder");function _e(l){const e=Ce(l),s=o.useRef(""),t=o.useRef(0),u=o.useCallback(f=>{const n=s.current+f;e(n),v(p((function c(a){s.current=a,window.clearTimeout(t.current),a!==""&&(t.current=window.setTimeout(()=>c(""),1e3))}),"updateSearch"),"updateSearch")(n)},[e]),r=o.useCallback(()=>{s.current="",window.clearTimeout(t.current)},[]);return o.useEffect(()=>()=>window.clearTimeout(t.current),[]),[s,u,r]}p(_e,"useTypeaheadSearch");v(_e,"useTypeaheadSearch");function be(l,e,s){const t=e.length>1&&Array.from(e).every(n=>n===e[0])?e[0]:e,u=s?l.indexOf(s):-1;let r=Fe(l,Math.max(u,0));t.length===1&&(r=r.filter(n=>n!==s));const f=r.find(n=>n.textValue.toLowerCase().startsWith(t.toLowerCase()));return f!==s?f:void 0}p(be,"findNextItem");v(be,"findNextItem");function Fe(l,e){return l.map((s,t)=>l[(e+t)%l.length])}p(Fe,"wrapArray");v(Fe,"wrapArray");export{Ft as _,Jt as a,Zt as c,to as d,no as f,ge as g,$t as h,qt as i,zt as l,Gt as m,Yt as n,eo as o,Kt as p,Xt as r,Qt as s,Wt as t,oo as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var a=Object.defineProperty;var s=(e,t)=>a(e,"name",{value:t,configurable:!0});import{
|
|
1
|
+
var a=Object.defineProperty;var s=(e,t)=>a(e,"name",{value:t,configurable:!0});import{zr as n}from"./agent-avatar-url-COB3FyNh.js";var p={get:s(()=>n.get("/instance/settings"),"get"),update:s(e=>n.patch("/instance/settings",e),"update"),getGeneral:s(()=>n.get("/instance/settings/general"),"getGeneral"),updateGeneral:s(e=>n.patch("/instance/settings/general",e),"updateGeneral"),getExperimental:s(()=>n.get("/instance/settings/experimental"),"getExperimental"),updateExperimental:s(e=>n.patch("/instance/settings/experimental",e),"updateExperimental")};function i(e){return`companyId=${encodeURIComponent(e)}`}s(i,"companyIdQuery");var c={list:s(e=>n.get(`/companies/${e}/environments`),"list"),capabilities:s(e=>n.get(`/companies/${e}/environments/capabilities`),"capabilities"),lease:s(e=>n.get(`/environment-leases/${e}`),"lease"),secretRefs:s(e=>n.get(`/environments/${e}/secret-refs`),"secretRefs"),deleteBlastRadius:s(e=>n.get(`/environments/${e}/delete-blast-radius`),"deleteBlastRadius"),remove:s((e,t={})=>n.delete(t.destroyReusableSandboxLeases?`/environments/${e}?destroyReusableSandboxLeases=true`:`/environments/${e}`),"remove"),create:s((e,t)=>n.post(`/companies/${e}/environments`,t),"create"),update:s((e,t,o)=>n.patch(o?`/environments/${e}?${i(o)}`:`/environments/${e}`,t),"update"),probe:s((e,t)=>n.post(t?`/environments/${e}/probe?${i(t)}`:`/environments/${e}/probe`,{}),"probe"),probeConfig:s((e,t)=>n.post(`/companies/${e}/environments/probe-config`,t),"probeConfig"),customImageTemplate:s((e,t)=>n.get(`/environments/${e}/custom-image-template?${i(t)}`),"customImageTemplate"),startCustomImageSetupSession:s((e,t,o={})=>n.post(`/environments/${e}/custom-image-setup-sessions?${i(t)}`,o),"startCustomImageSetupSession"),customImageSetupSession:s(e=>n.get(`/environment-custom-image-setup-sessions/${e}`),"customImageSetupSession"),createCustomImageTerminalSessionToken:s((e,t={})=>n.post(`/environment-custom-image-setup-sessions/${e}/terminal-session-token`,t),"createCustomImageTerminalSessionToken"),finishCustomImageSetupSession:s((e,t={})=>n.post(`/environment-custom-image-setup-sessions/${e}/finish`,t),"finishCustomImageSetupSession"),cancelCustomImageSetupSession:s((e,t={})=>n.post(`/environment-custom-image-setup-sessions/${e}/cancel`,t),"cancelCustomImageSetupSession"),rollbackCustomImageTemplate:s((e,t)=>n.post(`/environments/${e}/custom-image-template/rollback?${i(t)}`,{}),"rollbackCustomImageTemplate"),relinkCustomImageTemplate:s((e,t,o={})=>n.post(`/environments/${e}/custom-image-template/relink?${i(t)}`,{confirmBootSourceDrift:o.confirmBootSourceDrift===!0}),"relinkCustomImageTemplate"),disableCustomImageTemplate:s((e,t,o={})=>n.delete(`/environments/${e}/custom-image-template?${i(t)}&deleteProviderTemplate=${o.deleteProviderTemplate===!0?"true":"false"}`),"disableCustomImageTemplate")};export{p as n,c as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./agent-avatar-url-
|
|
1
|
+
import{t as e}from"./agent-avatar-url-COB3FyNh.js";var a={name:"external-link",size:24,node:[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]};a.node;var n=e(a);export{n as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./agent-avatar-url-
|
|
1
|
+
import{t as e}from"./agent-avatar-url-COB3FyNh.js";var a={name:"file-text",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]};a.node;var r=e(a);export{r as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var o=Object.defineProperty;var a=(e,t)=>o(e,"name",{value:t,configurable:!0});import{
|
|
1
|
+
var o=Object.defineProperty;var a=(e,t)=>o(e,"name",{value:t,configurable:!0});import{Gr as s,Hr as n,Rr as c,Wr as i}from"./agent-avatar-url-COB3FyNh.js";var h={get:a(async()=>{const e=await fetch("/api/health",{credentials:"include",headers:{Accept:"application/json"},cache:"no-store"}),t=await i(e);if(!e.ok){const r=s.recoverIfNeeded(e.status,t);if(r)return r;throw new c(t?.error??`Failed to load health (${e.status})`,e.status,t)}if(t?.status!=="ok"&&t?.status!=="starting")throw new n(e.status);return t},"get"),requestDevServerRestart:a(async()=>{const e=await fetch("/api/health/dev-server/restart",{method:"POST",credentials:"include",headers:{Accept:"application/json"}});if(!e.ok){const t=await e.json().catch(()=>null),r=s.recoverIfNeeded(e.status,t);if(r)return r;throw new Error(t?.error??`Failed to request restart (${e.status})`)}},"requestDevServerRestart")};export{h as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var G=Object.defineProperty;var n=(e,t)=>G(e,"name",{value:t,configurable:!0});import{i as q}from"./rolldown-runtime-ZpX3ckPj.js";import{
|
|
1
|
+
var G=Object.defineProperty;var n=(e,t)=>G(e,"name",{value:t,configurable:!0});import{i as q}from"./rolldown-runtime-ZpX3ckPj.js";import{Gr as L,ji as F,ki as E,t as B,zr as r}from"./agent-avatar-url-COB3FyNh.js";var M={name:"list",size:24,node:[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]]};M.node;var Q=B(M),s=q(F(),1),U=q(E(),1),_=(0,s.createContext)(null),A=(0,s.createContext)(null);function X({children:e}){const[t,a]=(0,s.useState)(!1),[o,i]=(0,s.useState)({}),[c,l]=(0,s.useState)(!1),[d,g]=(0,s.useState)(!1),[p,m]=(0,s.useState)({}),[f,h]=(0,s.useState)(!1),[v,w]=(0,s.useState)(!1),[b,$]=(0,s.useState)({}),[S,C]=(0,s.useState)(!1),I=(0,s.useCallback)((u={})=>{i(u),a(!0)},[]),k=(0,s.useCallback)(()=>{a(!1),i({})},[]),O=(0,s.useCallback)(()=>{l(!0)},[]),D=(0,s.useCallback)(()=>{l(!1)},[]),R=(0,s.useCallback)((u={})=>{m(u),g(!0)},[]),P=(0,s.useCallback)(()=>{g(!1),m({})},[]),x=(0,s.useCallback)(()=>{h(!0)},[]),y=(0,s.useCallback)(()=>{h(!1)},[]),N=(0,s.useCallback)((u={})=>{$(u),w(!0)},[]),j=(0,s.useCallback)(()=>{w(!1),$({})},[]),T=(0,s.useMemo)(()=>({newIssueOpen:t,newIssueDefaults:o,newProjectOpen:c,newGoalOpen:d,newGoalDefaults:p,newAgentOpen:f,onboardingOpen:v,onboardingOptions:b,onboardingRouteDismissed:S}),[t,o,c,d,p,f,v,b,S]),z=(0,s.useMemo)(()=>({openNewIssue:I,closeNewIssue:k,openNewProject:O,closeNewProject:D,openNewGoal:R,closeNewGoal:P,openNewAgent:x,closeNewAgent:y,openOnboarding:N,closeOnboarding:j,setOnboardingRouteDismissed:C}),[I,k,O,D,R,P,x,y,N,j,C]);return(0,U.jsx)(A.Provider,{value:z,children:(0,U.jsx)(_.Provider,{value:T,children:e})})}n(X,"DialogProvider");function K(){const e=(0,s.useContext)(A);if(!e)throw new Error("useDialogActions must be used within DialogProvider");return e}n(K,"useDialogActions");function V(){const e=(0,s.useContext)(_);if(!e)throw new Error("useDialogState must be used within DialogProvider");return e}n(V,"useDialogState");function Y(){return{...V(),...K()}}n(Y,"useDialog");var Z={executionForIssue:n(e=>r.get(`/issues/${e}/execution`),"executionForIssue"),list:n((e,t,a,o={})=>{const i=new URLSearchParams;t&&i.set("agentId",t),a&&i.set("limit",String(a)),o.summary&&i.set("summary","true");const c=i.toString();return r.get(`/companies/${e}/heartbeat-runs${c?`?${c}`:""}`)},"list"),get:n(e=>r.get(`/heartbeat-runs/${e}`),"get"),events:n((e,t=0,a=200,o)=>r.get(`/heartbeat-runs/${e}/events?afterSeq=${encodeURIComponent(String(t))}&limit=${encodeURIComponent(String(a))}`,o),"events"),log:n((e,t=0,a=256e3,o)=>r.get(`/heartbeat-runs/${e}/log?offset=${encodeURIComponent(String(t))}&limitBytes=${encodeURIComponent(String(a))}`,o),"log"),workspaceOperations:n(e=>r.get(`/heartbeat-runs/${e}/workspace-operations`),"workspaceOperations"),providerTrace:n(e=>r.get(`/heartbeat-runs/${e}/provider-trace`),"providerTrace"),providerTraceMetadata:n((e,t)=>{const a=new URLSearchParams({runIds:t.slice(0,100).join(",")});return r.get(`/companies/${e}/provider-traces?${a.toString()}`)},"providerTraceMetadata"),revealProviderTraceFrame:n((e,t)=>r.post(`/heartbeat-runs/${e}/provider-trace/frames/${t}/reveal`,{}),"revealProviderTraceFrame"),deleteProviderTrace:n(e=>r.delete(`/heartbeat-runs/${e}/provider-trace`),"deleteProviderTrace"),downloadProviderTrace:n(async e=>{const t=await fetch(`/api/heartbeat-runs/${e}/provider-trace/download`,{credentials:"include",headers:{Accept:"application/x-ndjson"}});if(!t.ok){const a=await t.json().catch(()=>null),o=L.recoverIfNeeded(t.status,a);if(o)return o;throw new Error(a?.error??`Trace download failed: ${t.status}`)}return t.blob()},"downloadProviderTrace"),workspaceOperationLog:n((e,t=0,a=256e3)=>r.get(`/workspace-operations/${e}/log?offset=${encodeURIComponent(String(t))}&limitBytes=${encodeURIComponent(String(a))}`),"workspaceOperationLog"),cancel:n(e=>r.post(`/heartbeat-runs/${e}/cancel`,{}),"cancel"),resolveRuntimeRequest:n(e=>r.post(`/heartbeat-runs/${e.runId}/runtime-requests/${encodeURIComponent(e.requestId)}/resolve`,{turnId:e.turnId,requestKind:e.requestKind,resolution:e.resolution}),"resolveRuntimeRequest"),recordWatchdogDecision:n(e=>r.post(`/heartbeat-runs/${e.runId}/watchdog-decisions`,{decision:e.decision,evaluationIssueId:e.evaluationIssueId??null,reason:e.reason??null,snoozedUntil:e.snoozedUntil??null}),"recordWatchdogDecision"),liveRunsForIssue:n(e=>r.get(`/issues/${e}/live-runs`),"liveRunsForIssue"),activeRunForIssue:n(e=>r.get(`/issues/${e}/active-run`),"activeRunForIssue"),liveRunsForCompany:n((e,t)=>{const a=new URLSearchParams;typeof t=="number"?a.set("minCount",String(t)):t&&(t.minCount&&a.set("minCount",String(t.minCount)),t.limit&&a.set("limit",String(t.limit)),t.distinctTasks&&a.set("distinctTasks","true"));const o=a.toString();return r.get(`/companies/${e}/live-runs${o?`?${o}`:""}`)},"liveRunsForCompany")};export{V as a,K as i,X as n,Q as o,Y as r,Z as t};
|