import{c as ge,b as he,j as xe,k as bn,l as yn,f as F,e as M,P as T,m as Dn,S as In,n as _e,u as En,d as Me,a as y}from"./createLucideIcon-W0Ra_zwb.js";import{r as s,j as a}from"./index-gX9iSPDQ.js";import{c as Ce,a as Pn,A as Nn,P as Sn,h as Tn,u as jn,R as An,F as On,D as kn,C as Ln,b as Fn,d as Gn}from"./Combination-BtzWoF87.js";import{c as Re,P as H,I as Kn,R as $n}from"./index-DVAmEPTK.js";import{C as Un}from"./chevron-right-BHY7sgyv.js";/**
 * @license lucide-react v0.476.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Bn=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],mo=ge("ChevronLeft",Bn);/**
 * @license lucide-react v0.476.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Vn=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],zn=ge("Circle",Vn);var ne=["Enter"," "],Xn=["ArrowDown","PageUp","Home"],be=["ArrowUp","PageDown","End"],Yn=[...Xn,...be],Hn={ltr:[...ne,"ArrowRight"],rtl:[...ne,"ArrowLeft"]},Wn={ltr:["ArrowLeft"],rtl:["ArrowRight"]},G="Menu",[k,Zn,qn]=yn(G),[I,ye]=he(G,[qn,Ce,Re]),W=Ce(),De=Re(),[Jn,E]=I(G),[Qn,K]=I(G),Ie=e=>{const{__scopeMenu:t,open:n=!1,children:o,dir:r,onOpenChange:c,modal:u=!0}=e,l=W(t),[m,v]=s.useState(null),p=s.useRef(!1),i=xe(c),f=bn(r);return s.useEffect(()=>{const g=()=>{p.current=!0,document.addEventListener("pointerdown",w,{capture:!0,once:!0}),document.addEventListener("pointermove",w,{capture:!0,once:!0})},w=()=>p.current=!1;return document.addEventListener("keydown",g,{capture:!0}),()=>{document.removeEventListener("keydown",g,{capture:!0}),document.removeEventListener("pointerdown",w,{capture:!0}),document.removeEventListener("pointermove",w,{capture:!0})}},[]),a.jsx(Pn,{...l,children:a.jsx(Jn,{scope:t,open:n,onOpenChange:i,content:m,onContentChange:v,children:a.jsx(Qn,{scope:t,onClose:s.useCallback(()=>i(!1),[i]),isUsingKeyboardRef:p,dir:f,modal:u,children:o})})})};Ie.displayName=G;var et="MenuAnchor",te=s.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e,r=W(n);return a.jsx(Nn,{...r,...o,ref:t})});te.displayName=et;var oe="MenuPortal",[nt,Ee]=I(oe,{forceMount:void 0}),Pe=e=>{const{__scopeMenu:t,forceMount:n,children:o,container:r}=e,c=E(oe,t);return a.jsx(nt,{scope:t,forceMount:n,children:a.jsx(H,{present:n||c.open,children:a.jsx(Sn,{asChild:!0,container:r,children:o})})})};Pe.displayName=oe;var _="MenuContent",[tt,re]=I(_),Ne=s.forwardRef((e,t)=>{const n=Ee(_,e.__scopeMenu),{forceMount:o=n.forceMount,...r}=e,c=E(_,e.__scopeMenu),u=K(_,e.__scopeMenu);return a.jsx(k.Provider,{scope:e.__scopeMenu,children:a.jsx(H,{present:o||c.open,children:a.jsx(k.Slot,{scope:e.__scopeMenu,children:u.modal?a.jsx(ot,{...r,ref:t}):a.jsx(rt,{...r,ref:t})})})})}),ot=s.forwardRef((e,t)=>{const n=E(_,e.__scopeMenu),o=s.useRef(null),r=F(t,o);return s.useEffect(()=>{const c=o.current;if(c)return Tn(c)},[]),a.jsx(ae,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:M(e.onFocusOutside,c=>c.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),rt=s.forwardRef((e,t)=>{const n=E(_,e.__scopeMenu);return a.jsx(ae,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),ae=s.forwardRef((e,t)=>{const{__scopeMenu:n,loop:o=!1,trapFocus:r,onOpenAutoFocus:c,onCloseAutoFocus:u,disableOutsidePointerEvents:l,onEntryFocus:m,onEscapeKeyDown:v,onPointerDownOutside:p,onFocusOutside:i,onInteractOutside:f,onDismiss:g,disableOutsideScroll:w,...D}=e,P=E(_,n),j=K(_,n),$=W(n),U=De(n),de=Zn(n),[gn,le]=s.useState(null),B=s.useRef(null),hn=F(t,B,P.onContentChange),V=s.useRef(0),z=s.useRef(""),xn=s.useRef(0),q=s.useRef(null),pe=s.useRef("right"),J=s.useRef(0),_n=w?An:s.Fragment,Cn=w?{as:In,allowPinchZoom:!0}:void 0,Rn=d=>{var S,me;const x=z.current+d,C=de().filter(R=>!R.disabled),b=document.activeElement,Q=(S=C.find(R=>R.ref.current===b))==null?void 0:S.textValue,ee=C.map(R=>R.textValue),fe=Mt(ee,x,Q),A=(me=C.find(R=>R.textValue===fe))==null?void 0:me.ref.current;(function R(ve){z.current=ve,window.clearTimeout(V.current),ve!==""&&(V.current=window.setTimeout(()=>R(""),1e3))})(x),A&&setTimeout(()=>A.focus())};s.useEffect(()=>()=>window.clearTimeout(V.current),[]),jn();const N=s.useCallback(d=>{var C,b;return pe.current===((C=q.current)==null?void 0:C.side)&&gt(d,(b=q.current)==null?void 0:b.area)},[]);return a.jsx(tt,{scope:n,searchRef:z,onItemEnter:s.useCallback(d=>{N(d)&&d.preventDefault()},[N]),onItemLeave:s.useCallback(d=>{var x;N(d)||((x=B.current)==null||x.focus(),le(null))},[N]),onTriggerLeave:s.useCallback(d=>{N(d)&&d.preventDefault()},[N]),pointerGraceTimerRef:xn,onPointerGraceIntentChange:s.useCallback(d=>{q.current=d},[]),children:a.jsx(_n,{...Cn,children:a.jsx(On,{asChild:!0,trapped:r,onMountAutoFocus:M(c,d=>{var x;d.preventDefault(),(x=B.current)==null||x.focus({preventScroll:!0})}),onUnmountAutoFocus:u,children:a.jsx(kn,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:v,onPointerDownOutside:p,onFocusOutside:i,onInteractOutside:f,onDismiss:g,children:a.jsx($n,{asChild:!0,...U,dir:j.dir,orientation:"vertical",loop:o,currentTabStopId:gn,onCurrentTabStopIdChange:le,onEntryFocus:M(m,d=>{j.isUsingKeyboardRef.current||d.preventDefault()}),preventScrollOnEntryFocus:!0,children:a.jsx(Ln,{role:"menu","aria-orientation":"vertical","data-state":Xe(P.open),"data-radix-menu-content":"",dir:j.dir,...$,...D,ref:hn,style:{outline:"none",...D.style},onKeyDown:M(D.onKeyDown,d=>{const C=d.target.closest("[data-radix-menu-content]")===d.currentTarget,b=d.ctrlKey||d.altKey||d.metaKey,Q=d.key.length===1;C&&(d.key==="Tab"&&d.preventDefault(),!b&&Q&&Rn(d.key));const ee=B.current;if(d.target!==ee||!Yn.includes(d.key))return;d.preventDefault();const A=de().filter(S=>!S.disabled).map(S=>S.ref.current);be.includes(d.key)&&A.reverse(),mt(A)}),onBlur:M(e.onBlur,d=>{d.currentTarget.contains(d.target)||(window.clearTimeout(V.current),z.current="")}),onPointerMove:M(e.onPointerMove,L(d=>{const x=d.target,C=J.current!==d.clientX;if(d.currentTarget.contains(x)&&C){const b=d.clientX>J.current?"right":"left";pe.current=b,J.current=d.clientX}}))})})})})})})});Ne.displayName=_;var at="MenuGroup",se=s.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return a.jsx(T.div,{role:"group",...o,ref:t})});se.displayName=at;var st="MenuLabel",Se=s.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return a.jsx(T.div,{...o,ref:t})});Se.displayName=st;var X="MenuItem",we="menu.itemSelect",Z=s.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:o,...r}=e,c=s.useRef(null),u=K(X,e.__scopeMenu),l=re(X,e.__scopeMenu),m=F(t,c),v=s.useRef(!1),p=()=>{const i=c.current;if(!n&&i){const f=new CustomEvent(we,{bubbles:!0,cancelable:!0});i.addEventListener(we,g=>o==null?void 0:o(g),{once:!0}),Dn(i,f),f.defaultPrevented?v.current=!1:u.onClose()}};return a.jsx(Te,{...r,ref:m,disabled:n,onClick:M(e.onClick,p),onPointerDown:i=>{var f;(f=e.onPointerDown)==null||f.call(e,i),v.current=!0},onPointerUp:M(e.onPointerUp,i=>{var f;v.current||(f=i.currentTarget)==null||f.click()}),onKeyDown:M(e.onKeyDown,i=>{const f=l.searchRef.current!=="";n||f&&i.key===" "||ne.includes(i.key)&&(i.currentTarget.click(),i.preventDefault())})})});Z.displayName=X;var Te=s.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:o=!1,textValue:r,...c}=e,u=re(X,n),l=De(n),m=s.useRef(null),v=F(t,m),[p,i]=s.useState(!1),[f,g]=s.useState("");return s.useEffect(()=>{const w=m.current;w&&g((w.textContent??"").trim())},[c.children]),a.jsx(k.ItemSlot,{scope:n,disabled:o,textValue:r??f,children:a.jsx(Kn,{asChild:!0,...l,focusable:!o,children:a.jsx(T.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...c,ref:v,onPointerMove:M(e.onPointerMove,L(w=>{o?u.onItemLeave(w):(u.onItemEnter(w),w.defaultPrevented||w.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:M(e.onPointerLeave,L(w=>u.onItemLeave(w))),onFocus:M(e.onFocus,()=>i(!0)),onBlur:M(e.onBlur,()=>i(!1))})})})}),ct="MenuCheckboxItem",je=s.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:o,...r}=e;return a.jsx(Fe,{scope:e.__scopeMenu,checked:n,children:a.jsx(Z,{role:"menuitemcheckbox","aria-checked":Y(n)?"mixed":n,...r,ref:t,"data-state":ie(n),onSelect:M(r.onSelect,()=>o==null?void 0:o(Y(n)?!0:!n),{checkForDefaultPrevented:!1})})})});je.displayName=ct;var Ae="MenuRadioGroup",[it,ut]=I(Ae,{value:void 0,onValueChange:()=>{}}),Oe=s.forwardRef((e,t)=>{const{value:n,onValueChange:o,...r}=e,c=xe(o);return a.jsx(it,{scope:e.__scopeMenu,value:n,onValueChange:c,children:a.jsx(se,{...r,ref:t})})});Oe.displayName=Ae;var ke="MenuRadioItem",Le=s.forwardRef((e,t)=>{const{value:n,...o}=e,r=ut(ke,e.__scopeMenu),c=n===r.value;return a.jsx(Fe,{scope:e.__scopeMenu,checked:c,children:a.jsx(Z,{role:"menuitemradio","aria-checked":c,...o,ref:t,"data-state":ie(c),onSelect:M(o.onSelect,()=>{var u;return(u=r.onValueChange)==null?void 0:u.call(r,n)},{checkForDefaultPrevented:!1})})})});Le.displayName=ke;var ce="MenuItemIndicator",[Fe,dt]=I(ce,{checked:!1}),Ge=s.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:o,...r}=e,c=dt(ce,n);return a.jsx(H,{present:o||Y(c.checked)||c.checked===!0,children:a.jsx(T.span,{...r,ref:t,"data-state":ie(c.checked)})})});Ge.displayName=ce;var lt="MenuSeparator",Ke=s.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return a.jsx(T.div,{role:"separator","aria-orientation":"horizontal",...o,ref:t})});Ke.displayName=lt;var pt="MenuArrow",$e=s.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e,r=W(n);return a.jsx(Fn,{...r,...o,ref:t})});$e.displayName=pt;var ft="MenuSub",[vo,Ue]=I(ft),O="MenuSubTrigger",Be=s.forwardRef((e,t)=>{const n=E(O,e.__scopeMenu),o=K(O,e.__scopeMenu),r=Ue(O,e.__scopeMenu),c=re(O,e.__scopeMenu),u=s.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:m}=c,v={__scopeMenu:e.__scopeMenu},p=s.useCallback(()=>{u.current&&window.clearTimeout(u.current),u.current=null},[]);return s.useEffect(()=>p,[p]),s.useEffect(()=>{const i=l.current;return()=>{window.clearTimeout(i),m(null)}},[l,m]),a.jsx(te,{asChild:!0,...v,children:a.jsx(Te,{id:r.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":r.contentId,"data-state":Xe(n.open),...e,ref:_e(t,r.onTriggerChange),onClick:i=>{var f;(f=e.onClick)==null||f.call(e,i),!(e.disabled||i.defaultPrevented)&&(i.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:M(e.onPointerMove,L(i=>{c.onItemEnter(i),!i.defaultPrevented&&!e.disabled&&!n.open&&!u.current&&(c.onPointerGraceIntentChange(null),u.current=window.setTimeout(()=>{n.onOpenChange(!0),p()},100))})),onPointerLeave:M(e.onPointerLeave,L(i=>{var g,w;p();const f=(g=n.content)==null?void 0:g.getBoundingClientRect();if(f){const D=(w=n.content)==null?void 0:w.dataset.side,P=D==="right",j=P?-5:5,$=f[P?"left":"right"],U=f[P?"right":"left"];c.onPointerGraceIntentChange({area:[{x:i.clientX+j,y:i.clientY},{x:$,y:f.top},{x:U,y:f.top},{x:U,y:f.bottom},{x:$,y:f.bottom}],side:D}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>c.onPointerGraceIntentChange(null),300)}else{if(c.onTriggerLeave(i),i.defaultPrevented)return;c.onPointerGraceIntentChange(null)}})),onKeyDown:M(e.onKeyDown,i=>{var g;const f=c.searchRef.current!=="";e.disabled||f&&i.key===" "||Hn[o.dir].includes(i.key)&&(n.onOpenChange(!0),(g=n.content)==null||g.focus(),i.preventDefault())})})})});Be.displayName=O;var Ve="MenuSubContent",ze=s.forwardRef((e,t)=>{const n=Ee(_,e.__scopeMenu),{forceMount:o=n.forceMount,...r}=e,c=E(_,e.__scopeMenu),u=K(_,e.__scopeMenu),l=Ue(Ve,e.__scopeMenu),m=s.useRef(null),v=F(t,m);return a.jsx(k.Provider,{scope:e.__scopeMenu,children:a.jsx(H,{present:o||c.open,children:a.jsx(k.Slot,{scope:e.__scopeMenu,children:a.jsx(ae,{id:l.contentId,"aria-labelledby":l.triggerId,...r,ref:v,align:"start",side:u.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:p=>{var i;u.isUsingKeyboardRef.current&&((i=m.current)==null||i.focus()),p.preventDefault()},onCloseAutoFocus:p=>p.preventDefault(),onFocusOutside:M(e.onFocusOutside,p=>{p.target!==l.trigger&&c.onOpenChange(!1)}),onEscapeKeyDown:M(e.onEscapeKeyDown,p=>{u.onClose(),p.preventDefault()}),onKeyDown:M(e.onKeyDown,p=>{var g;const i=p.currentTarget.contains(p.target),f=Wn[u.dir].includes(p.key);i&&f&&(c.onOpenChange(!1),(g=l.trigger)==null||g.focus(),p.preventDefault())})})})})})});ze.displayName=Ve;function Xe(e){return e?"open":"closed"}function Y(e){return e==="indeterminate"}function ie(e){return Y(e)?"indeterminate":e?"checked":"unchecked"}function mt(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function vt(e,t){return e.map((n,o)=>e[(t+o)%e.length])}function Mt(e,t,n){const r=t.length>1&&Array.from(t).every(v=>v===t[0])?t[0]:t,c=n?e.indexOf(n):-1;let u=vt(e,Math.max(c,0));r.length===1&&(u=u.filter(v=>v!==n));const m=u.find(v=>v.toLowerCase().startsWith(r.toLowerCase()));return m!==n?m:void 0}function wt(e,t){const{x:n,y:o}=e;let r=!1;for(let c=0,u=t.length-1;c<t.length;u=c++){const l=t[c].x,m=t[c].y,v=t[u].x,p=t[u].y;m>o!=p>o&&n<(v-l)*(o-m)/(p-m)+l&&(r=!r)}return r}function gt(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return wt(n,t)}function L(e){return t=>t.pointerType==="mouse"?e(t):void 0}var ht=Ie,xt=te,_t=Pe,Ct=Ne,Rt=se,bt=Se,yt=Z,Dt=je,It=Oe,Et=Le,Pt=Ge,Nt=Ke,St=$e,Tt=Be,jt=ze,ue="DropdownMenu",[At,Mo]=he(ue,[ye]),h=ye(),[Ot,Ye]=At(ue),He=e=>{const{__scopeDropdownMenu:t,children:n,dir:o,open:r,defaultOpen:c,onOpenChange:u,modal:l=!0}=e,m=h(t),v=s.useRef(null),[p=!1,i]=En({prop:r,defaultProp:c,onChange:u});return a.jsx(Ot,{scope:t,triggerId:Me(),triggerRef:v,contentId:Me(),open:p,onOpenChange:i,onOpenToggle:s.useCallback(()=>i(f=>!f),[i]),modal:l,children:a.jsx(ht,{...m,open:p,onOpenChange:i,dir:o,modal:l,children:n})})};He.displayName=ue;var We="DropdownMenuTrigger",Ze=s.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:o=!1,...r}=e,c=Ye(We,n),u=h(n);return a.jsx(xt,{asChild:!0,...u,children:a.jsx(T.button,{type:"button",id:c.triggerId,"aria-haspopup":"menu","aria-expanded":c.open,"aria-controls":c.open?c.contentId:void 0,"data-state":c.open?"open":"closed","data-disabled":o?"":void 0,disabled:o,...r,ref:_e(t,c.triggerRef),onPointerDown:M(e.onPointerDown,l=>{!o&&l.button===0&&l.ctrlKey===!1&&(c.onOpenToggle(),c.open||l.preventDefault())}),onKeyDown:M(e.onKeyDown,l=>{o||(["Enter"," "].includes(l.key)&&c.onOpenToggle(),l.key==="ArrowDown"&&c.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(l.key)&&l.preventDefault())})})})});Ze.displayName=We;var kt="DropdownMenuPortal",qe=e=>{const{__scopeDropdownMenu:t,...n}=e,o=h(t);return a.jsx(_t,{...o,...n})};qe.displayName=kt;var Je="DropdownMenuContent",Qe=s.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=Ye(Je,n),c=h(n),u=s.useRef(!1);return a.jsx(Ct,{id:r.contentId,"aria-labelledby":r.triggerId,...c,...o,ref:t,onCloseAutoFocus:M(e.onCloseAutoFocus,l=>{var m;u.current||(m=r.triggerRef.current)==null||m.focus(),u.current=!1,l.preventDefault()}),onInteractOutside:M(e.onInteractOutside,l=>{const m=l.detail.originalEvent,v=m.button===0&&m.ctrlKey===!0,p=m.button===2||v;(!r.modal||p)&&(u.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)"}})});Qe.displayName=Je;var Lt="DropdownMenuGroup",Ft=s.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=h(n);return a.jsx(Rt,{...r,...o,ref:t})});Ft.displayName=Lt;var Gt="DropdownMenuLabel",en=s.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=h(n);return a.jsx(bt,{...r,...o,ref:t})});en.displayName=Gt;var Kt="DropdownMenuItem",nn=s.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=h(n);return a.jsx(yt,{...r,...o,ref:t})});nn.displayName=Kt;var $t="DropdownMenuCheckboxItem",tn=s.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=h(n);return a.jsx(Dt,{...r,...o,ref:t})});tn.displayName=$t;var Ut="DropdownMenuRadioGroup",Bt=s.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=h(n);return a.jsx(It,{...r,...o,ref:t})});Bt.displayName=Ut;var Vt="DropdownMenuRadioItem",on=s.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=h(n);return a.jsx(Et,{...r,...o,ref:t})});on.displayName=Vt;var zt="DropdownMenuItemIndicator",rn=s.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=h(n);return a.jsx(Pt,{...r,...o,ref:t})});rn.displayName=zt;var Xt="DropdownMenuSeparator",an=s.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=h(n);return a.jsx(Nt,{...r,...o,ref:t})});an.displayName=Xt;var Yt="DropdownMenuArrow",Ht=s.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=h(n);return a.jsx(St,{...r,...o,ref:t})});Ht.displayName=Yt;var Wt="DropdownMenuSubTrigger",sn=s.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=h(n);return a.jsx(Tt,{...r,...o,ref:t})});sn.displayName=Wt;var Zt="DropdownMenuSubContent",cn=s.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=h(n);return a.jsx(jt,{...r,...o,ref:t,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)"}})});cn.displayName=Zt;var qt=He,Jt=Ze,Qt=qe,un=Qe,dn=en,ln=nn,pn=tn,fn=on,mn=rn,vn=an,Mn=sn,wn=cn;const wo=qt,go=Jt,eo=s.forwardRef(({className:e,inset:t,children:n,...o},r)=>a.jsxs(Mn,{ref:r,className:y("focus:bg-accent data-[state=open]:bg-accent flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...o,children:[n,a.jsx(Un,{className:"ml-auto"})]}));eo.displayName=Mn.displayName;const no=s.forwardRef(({className:e,...t},n)=>a.jsx(wn,{ref:n,className:y("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-[8rem] overflow-hidden rounded-md border p-1 shadow-lg",e),...t}));no.displayName=wn.displayName;const to=s.forwardRef(({className:e,sideOffset:t=4,...n},o)=>a.jsx(Qt,{children:a.jsx(un,{ref:o,sideOffset:t,className:y("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-[8rem] overflow-hidden rounded-md border p-1 shadow-md",e),...n})}));to.displayName=un.displayName;const oo=s.forwardRef(({className:e,inset:t,...n},o)=>a.jsx(ln,{ref:o,className:y("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...n}));oo.displayName=ln.displayName;const ro=s.forwardRef(({className:e,children:t,checked:n,...o},r)=>a.jsxs(pn,{ref:r,className:y("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...o,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(mn,{children:a.jsx(Gn,{className:"h-4 w-4"})})}),t]}));ro.displayName=pn.displayName;const ao=s.forwardRef(({className:e,children:t,...n},o)=>a.jsxs(fn,{ref:o,className:y("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(mn,{children:a.jsx(zn,{className:"h-2 w-2 fill-current"})})}),t]}));ao.displayName=fn.displayName;const so=s.forwardRef(({className:e,inset:t,...n},o)=>a.jsx(dn,{ref:o,className:y("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));so.displayName=dn.displayName;const co=s.forwardRef(({className:e,...t},n)=>a.jsx(vn,{ref:n,className:y("bg-muted -mx-1 my-1 h-px",e),...t}));co.displayName=vn.displayName;export{mo as C,wo as D,go as a,to as b,oo as c,so as d};
