mirror of
https://github.com/GMWalletApp/epusdt.git
synced 2026-07-07 02:06:16 +00:00
485059f60e
- Updated script and module preload links in index.html for optimized loading. - Modified service worker (sw.js) to reflect new asset revisions and improve caching strategy. - Updated configuration documentation in BT_RUN.md, docker-RUN.md, and manual_RUN.md to clarify currency rate settings.
1 line
20 KiB
JavaScript
1 line
20 KiB
JavaScript
import{$u as e,Qu as t,nd as n}from"./messages-GNZRoNCJ.js";import{n as r,t as i}from"./dist-BBeIw6Mf.js";import{c as a,d as o,i as s,u as c}from"./button-CgehfZOz.js";import{a as l,r as u,t as d}from"./dist-BVB_XD7R.js";import{i as f,n as p,r as m,t as ee}from"./dist-ocY2rTvF.js";import{t as h}from"./dist-BmDzTadk.js";import{n as g,t as _}from"./dist-y2ssackP.js";import{n as te}from"./dist-DHfFvH8a.js";import{n as ne,t as v}from"./dist-lfYKV97O.js";import{i as re,n as ie,r as ae,t as oe}from"./es2015-BlGYWzx8.js";import{a as y,i as b,n as se,r as ce,t as x}from"./dist-B37Isglo.js";import{t as S}from"./check-Dk399u4y.js";var C=n(e(),1),w=t(),T=[`Enter`,` `],E=[`ArrowDown`,`PageUp`,`Home`],le=[`ArrowUp`,`PageDown`,`End`],ue=[...E,...le],D={ltr:[...T,`ArrowRight`],rtl:[...T,`ArrowLeft`]},de={ltr:[`ArrowLeft`],rtl:[`ArrowRight`]},O=`Menu`,[k,fe,A]=f(O),[j,M]=l(O,[A,y,m]),N=y(),pe=m(),[P,F]=j(O),[I,L]=j(O),me=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:o=!0}=e,s=N(t),[c,l]=C.useState(null),u=C.useRef(!1),d=_(a),f=te(i);return C.useEffect(()=>{let e=()=>{u.current=!0,document.addEventListener(`pointerdown`,t,{capture:!0,once:!0}),document.addEventListener(`pointermove`,t,{capture:!0,once:!0})},t=()=>u.current=!1;return document.addEventListener(`keydown`,e,{capture:!0}),()=>{document.removeEventListener(`keydown`,e,{capture:!0}),document.removeEventListener(`pointerdown`,t,{capture:!0}),document.removeEventListener(`pointermove`,t,{capture:!0})}},[]),(0,w.jsx)(b,{...s,children:(0,w.jsx)(P,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:l,children:(0,w.jsx)(I,{scope:t,onClose:C.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:f,modal:o,children:r})})})};me.displayName=O;var he=`MenuAnchor`,R=C.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=N(n);return(0,w.jsx)(x,{...i,...r,ref:t})});R.displayName=he;var z=`MenuPortal`,[ge,_e]=j(z,{forceMount:void 0}),ve=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=F(z,t);return(0,w.jsx)(ge,{scope:t,forceMount:n,children:(0,w.jsx)(h,{present:n||a.open,children:(0,w.jsx)(v,{asChild:!0,container:i,children:r})})})};ve.displayName=z;var B=`MenuContent`,[ye,V]=j(B),be=C.forwardRef((e,t)=>{let n=_e(B,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=F(B,e.__scopeMenu),o=L(B,e.__scopeMenu);return(0,w.jsx)(k.Provider,{scope:e.__scopeMenu,children:(0,w.jsx)(h,{present:r||a.open,children:(0,w.jsx)(k.Slot,{scope:e.__scopeMenu,children:o.modal?(0,w.jsx)(xe,{...i,ref:t}):(0,w.jsx)(Se,{...i,ref:t})})})})}),xe=C.forwardRef((e,t)=>{let n=F(B,e.__scopeMenu),r=C.useRef(null),i=o(t,r);return C.useEffect(()=>{let e=r.current;if(e)return oe(e)},[]),(0,w.jsx)(H,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:u(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Se=C.forwardRef((e,t)=>{let n=F(B,e.__scopeMenu);return(0,w.jsx)(H,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Ce=a(`MenuContent.ScrollLock`),H=C.forwardRef((e,t)=>{let{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:c,onEntryFocus:l,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:m,onInteractOutside:ee,onDismiss:h,disableOutsideScroll:g,..._}=e,te=F(B,n),v=L(B,n),oe=N(n),y=pe(n),b=fe(n),[se,x]=C.useState(null),S=C.useRef(null),T=o(t,S,te.onContentChange),E=C.useRef(0),D=C.useRef(``),de=C.useRef(0),O=C.useRef(null),k=C.useRef(`right`),A=C.useRef(0),j=g?ie:C.Fragment,M=g?{as:Ce,allowPinchZoom:!0}:void 0,P=e=>{let t=D.current+e,n=b().filter(e=>!e.disabled),r=document.activeElement,i=n.find(e=>e.ref.current===r)?.textValue,a=$e(n.map(e=>e.textValue),t,i),o=n.find(e=>e.textValue===a)?.ref.current;(function e(t){D.current=t,window.clearTimeout(E.current),t!==``&&(E.current=window.setTimeout(()=>e(``),1e3))})(t),o&&setTimeout(()=>o.focus())};C.useEffect(()=>()=>window.clearTimeout(E.current),[]),ae();let I=C.useCallback(e=>k.current===O.current?.side&&tt(e,O.current?.area),[]);return(0,w.jsx)(ye,{scope:n,searchRef:D,onItemEnter:C.useCallback(e=>{I(e)&&e.preventDefault()},[I]),onItemLeave:C.useCallback(e=>{I(e)||(S.current?.focus(),x(null))},[I]),onTriggerLeave:C.useCallback(e=>{I(e)&&e.preventDefault()},[I]),pointerGraceTimerRef:de,onPointerGraceIntentChange:C.useCallback(e=>{O.current=e},[]),children:(0,w.jsx)(j,{...M,children:(0,w.jsx)(re,{asChild:!0,trapped:i,onMountAutoFocus:u(a,e=>{e.preventDefault(),S.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:(0,w.jsx)(ne,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:m,onInteractOutside:ee,onDismiss:h,children:(0,w.jsx)(p,{asChild:!0,...y,dir:v.dir,orientation:`vertical`,loop:r,currentTabStopId:se,onCurrentTabStopIdChange:x,onEntryFocus:u(l,e=>{v.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,w.jsx)(ce,{role:`menu`,"aria-orientation":`vertical`,"data-state":Xe(te.open),"data-radix-menu-content":``,dir:v.dir,...oe,..._,ref:T,style:{outline:`none`,..._.style},onKeyDown:u(_.onKeyDown,e=>{let t=e.target.closest(`[data-radix-menu-content]`)===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=e.key.length===1;t&&(e.key===`Tab`&&e.preventDefault(),!n&&r&&P(e.key));let i=S.current;if(e.target!==i||!ue.includes(e.key))return;e.preventDefault();let a=b().filter(e=>!e.disabled).map(e=>e.ref.current);le.includes(e.key)&&a.reverse(),Ze(a)}),onBlur:u(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(E.current),D.current=``)}),onPointerMove:u(e.onPointerMove,Z(e=>{let t=e.target,n=A.current!==e.clientX;e.currentTarget.contains(t)&&n&&(k.current=e.clientX>A.current?`right`:`left`,A.current=e.clientX)}))})})})})})})});be.displayName=B;var we=`MenuGroup`,U=C.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,w.jsx)(i.div,{role:`group`,...r,ref:t})});U.displayName=we;var Te=`MenuLabel`,Ee=C.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,w.jsx)(i.div,{...r,ref:t})});Ee.displayName=Te;var W=`MenuItem`,De=`menu.itemSelect`,G=C.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:i,...a}=e,s=C.useRef(null),c=L(W,e.__scopeMenu),l=V(W,e.__scopeMenu),d=o(t,s),f=C.useRef(!1),p=()=>{let e=s.current;if(!n&&e){let t=new CustomEvent(De,{bubbles:!0,cancelable:!0});e.addEventListener(De,e=>i?.(e),{once:!0}),r(e,t),t.defaultPrevented?f.current=!1:c.onClose()}};return(0,w.jsx)(Oe,{...a,ref:d,disabled:n,onClick:u(e.onClick,p),onPointerDown:t=>{e.onPointerDown?.(t),f.current=!0},onPointerUp:u(e.onPointerUp,e=>{f.current||e.currentTarget?.click()}),onKeyDown:u(e.onKeyDown,e=>{let t=l.searchRef.current!==``;n||t&&e.key===` `||T.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});G.displayName=W;var Oe=C.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:a,...s}=e,c=V(W,n),l=pe(n),d=C.useRef(null),f=o(t,d),[p,m]=C.useState(!1),[h,g]=C.useState(``);return C.useEffect(()=>{let e=d.current;e&&g((e.textContent??``).trim())},[s.children]),(0,w.jsx)(k.ItemSlot,{scope:n,disabled:r,textValue:a??h,children:(0,w.jsx)(ee,{asChild:!0,...l,focusable:!r,children:(0,w.jsx)(i.div,{role:`menuitem`,"data-highlighted":p?``:void 0,"aria-disabled":r||void 0,"data-disabled":r?``:void 0,...s,ref:f,onPointerMove:u(e.onPointerMove,Z(e=>{r?c.onItemLeave(e):(c.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:u(e.onPointerLeave,Z(e=>c.onItemLeave(e))),onFocus:u(e.onFocus,()=>m(!0)),onBlur:u(e.onBlur,()=>m(!1))})})})}),ke=`MenuCheckboxItem`,Ae=C.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,w.jsx)(Le,{scope:e.__scopeMenu,checked:n,children:(0,w.jsx)(G,{role:`menuitemcheckbox`,"aria-checked":Y(n)?`mixed`:n,...i,ref:t,"data-state":X(n),onSelect:u(i.onSelect,()=>r?.(Y(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Ae.displayName=ke;var je=`MenuRadioGroup`,[Me,Ne]=j(je,{value:void 0,onValueChange:()=>{}}),Pe=C.forwardRef((e,t)=>{let{value:n,onValueChange:r,...i}=e,a=_(r);return(0,w.jsx)(Me,{scope:e.__scopeMenu,value:n,onValueChange:a,children:(0,w.jsx)(U,{...i,ref:t})})});Pe.displayName=je;var Fe=`MenuRadioItem`,Ie=C.forwardRef((e,t)=>{let{value:n,...r}=e,i=Ne(Fe,e.__scopeMenu),a=n===i.value;return(0,w.jsx)(Le,{scope:e.__scopeMenu,checked:a,children:(0,w.jsx)(G,{role:`menuitemradio`,"aria-checked":a,...r,ref:t,"data-state":X(a),onSelect:u(r.onSelect,()=>i.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});Ie.displayName=Fe;var K=`MenuItemIndicator`,[Le,Re]=j(K,{checked:!1}),ze=C.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...a}=e,o=Re(K,n);return(0,w.jsx)(h,{present:r||Y(o.checked)||o.checked===!0,children:(0,w.jsx)(i.span,{...a,ref:t,"data-state":X(o.checked)})})});ze.displayName=K;var Be=`MenuSeparator`,Ve=C.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,w.jsx)(i.div,{role:`separator`,"aria-orientation":`horizontal`,...r,ref:t})});Ve.displayName=Be;var He=`MenuArrow`,Ue=C.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=N(n);return(0,w.jsx)(se,{...i,...r,ref:t})});Ue.displayName=He;var q=`MenuSub`,[We,Ge]=j(q),Ke=e=>{let{__scopeMenu:t,children:n,open:r=!1,onOpenChange:i}=e,a=F(q,t),o=N(t),[s,c]=C.useState(null),[l,u]=C.useState(null),d=_(i);return C.useEffect(()=>(a.open===!1&&d(!1),()=>d(!1)),[a.open,d]),(0,w.jsx)(b,{...o,children:(0,w.jsx)(P,{scope:t,open:r,onOpenChange:d,content:l,onContentChange:u,children:(0,w.jsx)(We,{scope:t,contentId:g(),triggerId:g(),trigger:s,onTriggerChange:c,children:n})})})};Ke.displayName=q;var J=`MenuSubTrigger`,qe=C.forwardRef((e,t)=>{let n=F(J,e.__scopeMenu),r=L(J,e.__scopeMenu),i=Ge(J,e.__scopeMenu),a=V(J,e.__scopeMenu),o=C.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=a,d={__scopeMenu:e.__scopeMenu},f=C.useCallback(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);return C.useEffect(()=>f,[f]),C.useEffect(()=>{let e=s.current;return()=>{window.clearTimeout(e),l(null)}},[s,l]),(0,w.jsx)(R,{asChild:!0,...d,children:(0,w.jsx)(Oe,{id:i.triggerId,"aria-haspopup":`menu`,"aria-expanded":n.open,"aria-controls":i.contentId,"data-state":Xe(n.open),...e,ref:c(t,i.onTriggerChange),onClick:t=>{e.onClick?.(t),!(e.disabled||t.defaultPrevented)&&(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:u(e.onPointerMove,Z(t=>{a.onItemEnter(t),!t.defaultPrevented&&!e.disabled&&!n.open&&!o.current&&(a.onPointerGraceIntentChange(null),o.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:u(e.onPointerLeave,Z(e=>{f();let t=n.content?.getBoundingClientRect();if(t){let r=n.content?.dataset.side,i=r===`right`,o=i?-5:5,c=t[i?`left`:`right`],l=t[i?`right`:`left`];a.onPointerGraceIntentChange({area:[{x:e.clientX+o,y:e.clientY},{x:c,y:t.top},{x:l,y:t.top},{x:l,y:t.bottom},{x:c,y:t.bottom}],side:r}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:u(e.onKeyDown,t=>{let i=a.searchRef.current!==``;e.disabled||i&&t.key===` `||D[r.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())})})})});qe.displayName=J;var Je=`MenuSubContent`,Ye=C.forwardRef((e,t)=>{let n=_e(B,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=F(B,e.__scopeMenu),s=L(B,e.__scopeMenu),c=Ge(Je,e.__scopeMenu),l=C.useRef(null),d=o(t,l);return(0,w.jsx)(k.Provider,{scope:e.__scopeMenu,children:(0,w.jsx)(h,{present:r||a.open,children:(0,w.jsx)(k.Slot,{scope:e.__scopeMenu,children:(0,w.jsx)(H,{id:c.contentId,"aria-labelledby":c.triggerId,...i,ref:d,align:`start`,side:s.dir===`rtl`?`left`:`right`,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{s.isUsingKeyboardRef.current&&l.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:u(e.onFocusOutside,e=>{e.target!==c.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:u(e.onEscapeKeyDown,e=>{s.onClose(),e.preventDefault()}),onKeyDown:u(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=de[s.dir].includes(e.key);t&&n&&(a.onOpenChange(!1),c.trigger?.focus(),e.preventDefault())})})})})})});Ye.displayName=Je;function Xe(e){return e?`open`:`closed`}function Y(e){return e===`indeterminate`}function X(e){return Y(e)?`indeterminate`:e?`checked`:`unchecked`}function Ze(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Qe(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function $e(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=Qe(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}function et(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}function tt(e,t){return t?et({x:e.clientX,y:e.clientY},t):!1}function Z(e){return t=>t.pointerType===`mouse`?e(t):void 0}var nt=me,rt=R,it=ve,at=be,ot=U,st=Ee,ct=G,lt=Ae,ut=Pe,dt=Ie,ft=ze,pt=Ve,mt=Ue,ht=qe,gt=Ye,Q=`DropdownMenu`,[_t,vt]=l(Q,[M]),$=M(),[yt,bt]=_t(Q),xt=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,c=$(t),l=C.useRef(null),[u,f]=d({prop:i,defaultProp:a??!1,onChange:o,caller:Q});return(0,w.jsx)(yt,{scope:t,triggerId:g(),triggerRef:l,contentId:g(),open:u,onOpenChange:f,onOpenToggle:C.useCallback(()=>f(e=>!e),[f]),modal:s,children:(0,w.jsx)(nt,{...c,open:u,onOpenChange:f,dir:r,modal:s,children:n})})};xt.displayName=Q;var St=`DropdownMenuTrigger`,Ct=C.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...a}=e,o=bt(St,n),s=$(n);return(0,w.jsx)(rt,{asChild:!0,...s,children:(0,w.jsx)(i.button,{type:`button`,id:o.triggerId,"aria-haspopup":`menu`,"aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":o.open?`open`:`closed`,"data-disabled":r?``:void 0,disabled:r,...a,ref:c(t,o.triggerRef),onPointerDown:u(e.onPointerDown,e=>{!r&&e.button===0&&e.ctrlKey===!1&&(o.onOpenToggle(),o.open||e.preventDefault())}),onKeyDown:u(e.onKeyDown,e=>{r||([`Enter`,` `].includes(e.key)&&o.onOpenToggle(),e.key===`ArrowDown`&&o.onOpenChange(!0),[`Enter`,` `,`ArrowDown`].includes(e.key)&&e.preventDefault())})})})});Ct.displayName=St;var wt=`DropdownMenuPortal`,Tt=e=>{let{__scopeDropdownMenu:t,...n}=e,r=$(t);return(0,w.jsx)(it,{...r,...n})};Tt.displayName=wt;var Et=`DropdownMenuContent`,Dt=C.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=bt(Et,n),a=$(n),o=C.useRef(!1);return(0,w.jsx)(at,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...r,ref:t,onCloseAutoFocus:u(e.onCloseAutoFocus,e=>{o.current||i.triggerRef.current?.focus(),o.current=!1,e.preventDefault()}),onInteractOutside:u(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;(!i.modal||r)&&(o.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)`}})});Dt.displayName=Et;var Ot=`DropdownMenuGroup`,kt=C.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,w.jsx)(ot,{...i,...r,ref:t})});kt.displayName=Ot;var At=`DropdownMenuLabel`,jt=C.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,w.jsx)(st,{...i,...r,ref:t})});jt.displayName=At;var Mt=`DropdownMenuItem`,Nt=C.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,w.jsx)(ct,{...i,...r,ref:t})});Nt.displayName=Mt;var Pt=`DropdownMenuCheckboxItem`,Ft=C.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,w.jsx)(lt,{...i,...r,ref:t})});Ft.displayName=Pt;var It=`DropdownMenuRadioGroup`,Lt=C.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,w.jsx)(ut,{...i,...r,ref:t})});Lt.displayName=It;var Rt=`DropdownMenuRadioItem`,zt=C.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,w.jsx)(dt,{...i,...r,ref:t})});zt.displayName=Rt;var Bt=`DropdownMenuItemIndicator`,Vt=C.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,w.jsx)(ft,{...i,...r,ref:t})});Vt.displayName=Bt;var Ht=`DropdownMenuSeparator`,Ut=C.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,w.jsx)(pt,{...i,...r,ref:t})});Ut.displayName=Ht;var Wt=`DropdownMenuArrow`,Gt=C.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,w.jsx)(mt,{...i,...r,ref:t})});Gt.displayName=Wt;var Kt=`DropdownMenuSubTrigger`,qt=C.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,w.jsx)(ht,{...i,...r,ref:t})});qt.displayName=Kt;var Jt=`DropdownMenuSubContent`,Yt=C.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,w.jsx)(gt,{...i,...r,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)`}})});Yt.displayName=Jt;var Xt=xt,Zt=Ct,Qt=Tt,$t=Dt,en=kt,tn=jt,nn=Nt,rn=Ft,an=Vt,on=Ut;function sn({...e}){return(0,w.jsx)(Xt,{"data-slot":`dropdown-menu`,...e})}function cn({...e}){return(0,w.jsx)(Zt,{"data-slot":`dropdown-menu-trigger`,...e})}function ln({className:e,sideOffset:t=4,...n}){return(0,w.jsx)(Qt,{children:(0,w.jsx)($t,{className:s(`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 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=closed]:animate-out data-[state=open]:animate-in`,e),"data-slot":`dropdown-menu-content`,sideOffset:t,...n})})}function un({...e}){return(0,w.jsx)(en,{"data-slot":`dropdown-menu-group`,...e})}function dn({className:e,inset:t,variant:n=`default`,...r}){return(0,w.jsx)(nn,{className:s(`relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[inset]:pl-8 data-[variant=destructive]:text-destructive data-[disabled]:opacity-50 data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 data-[variant=destructive]:*:[svg]:text-destructive!`,e),"data-inset":t,"data-slot":`dropdown-menu-item`,"data-variant":n,...r})}function fn({className:e,children:t,checked:n,...r}){return(0,w.jsxs)(rn,{checked:n,className:s(`relative flex cursor-default select-none items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0`,e),"data-slot":`dropdown-menu-checkbox-item`,...r,children:[(0,w.jsx)(`span`,{className:`pointer-events-none absolute left-2 flex size-3.5 items-center justify-center`,children:(0,w.jsx)(an,{children:(0,w.jsx)(S,{className:`size-4`})})}),t]})}function pn({className:e,inset:t,...n}){return(0,w.jsx)(tn,{className:s(`px-2 py-1.5 font-medium text-sm data-[inset]:pl-8`,e),"data-inset":t,"data-slot":`dropdown-menu-label`,...n})}function mn({className:e,...t}){return(0,w.jsx)(on,{className:s(`-mx-1 my-1 h-px bg-border`,e),"data-slot":`dropdown-menu-separator`,...t})}function hn({className:e,...t}){return(0,w.jsx)(`span`,{className:s(`ml-auto text-muted-foreground text-xs tracking-widest`,e),"data-slot":`dropdown-menu-shortcut`,...t})}export{dn as a,hn as c,un as i,cn as l,fn as n,pn as o,ln as r,mn as s,sn as t,Ct as u}; |