@adamosuiteservices/ui 1.1.0 → 1.1.2

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/dialog.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./jsx-runtime-BB_1_6y_.cjs");require("react");const o=require("./index-BpvjJ_T6.cjs"),d=require("./utils-DoxiiusW.cjs"),m=require("./x-CBKgg4YL.cjs");function u({...a}){return t.jsxRuntimeExports.jsx(o.Root,{"data-slot":"dialog",...a})}function g({...a}){return t.jsxRuntimeExports.jsx(o.Trigger,{"data-slot":"dialog-trigger",...a})}function s({...a}){return t.jsxRuntimeExports.jsx(o.Portal,{"data-slot":"dialog-portal",...a})}function x({...a}){return t.jsxRuntimeExports.jsx(o.Close,{"data-slot":"dialog-close",...a})}function n({className:a,...e}){return t.jsxRuntimeExports.jsx(o.Overlay,{"data-slot":"dialog-overlay",className:d.cn("adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0 adm:data-[state=open]:fade-in-0 adm:fixed adm:inset-0 adm:z-50 adm:bg-black/50",a),...e})}function c({className:a,children:e,showCloseButton:i=!0,theme:r,...l}){return t.jsxRuntimeExports.jsxs(s,{"data-slot":"dialog-portal",children:[t.jsxRuntimeExports.jsx(n,{}),t.jsxRuntimeExports.jsxs(o.Content,{"data-theme":r,"data-slot":"dialog-content",className:d.cn("adm:bg-background adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0 adm:data-[state=open]:fade-in-0 adm:data-[state=closed]:zoom-out-95 adm:data-[state=open]:zoom-in-95 adm:fixed adm:top-[50%] adm:left-[50%] adm:z-50 adm:grid adm:w-full adm:max-w-[calc(100%-2rem)] adm:translate-x-[-50%] adm:translate-y-[-50%] adm:gap-4 adm:rounded-lg adm:border adm:p-6 adm:shadow-lg adm:duration-200 adm:sm:max-w-lg",a),...l,children:[e,i&&t.jsxRuntimeExports.jsxs(o.Close,{"data-slot":"dialog-close",className:"adm:ring-offset-background adm:focus:ring-ring adm:data-[state=open]:bg-accent adm:data-[state=open]:text-muted-foreground adm:absolute adm:top-4 adm:right-4 adm:rounded-xs adm:opacity-70 adm:transition-opacity adm:hover:opacity-100 adm:focus:ring-2 adm:focus:ring-offset-2 adm:focus:outline-hidden adm:disabled:pointer-events-none adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0 adm:[&_svg:not([class*=size-])]:size-4",children:[t.jsxRuntimeExports.jsx(m.X,{}),t.jsxRuntimeExports.jsx("span",{className:"adm:sr-only",children:"Close"})]})]})]})}function p({className:a,...e}){return t.jsxRuntimeExports.jsx("div",{"data-slot":"dialog-header",className:d.cn("adm:flex adm:flex-col adm:gap-2 adm:text-center adm:sm:text-left",a),...e})}function f({className:a,...e}){return t.jsxRuntimeExports.jsx("div",{"data-slot":"dialog-footer",className:d.cn("adm:flex adm:flex-col-reverse adm:gap-2 adm:sm:flex-row adm:sm:justify-end",a),...e})}function j({className:a,...e}){return t.jsxRuntimeExports.jsx(o.Title,{"data-slot":"dialog-title",className:d.cn("adm:text-lg adm:leading-none adm:font-semibold",a),...e})}function D({className:a,...e}){return t.jsxRuntimeExports.jsx(o.Description,{"data-slot":"dialog-description",className:d.cn("adm:text-muted-foreground adm:text-sm",a),...e})}exports.Dialog=u;exports.DialogClose=x;exports.DialogContent=c;exports.DialogDescription=D;exports.DialogFooter=f;exports.DialogHeader=p;exports.DialogOverlay=n;exports.DialogPortal=s;exports.DialogTitle=j;exports.DialogTrigger=g;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./jsx-runtime-BB_1_6y_.cjs");require("react");const o=require("./index-BpvjJ_T6.cjs"),d=require("./utils-DoxiiusW.cjs"),m=require("./x-CBKgg4YL.cjs");function u({...a}){return t.jsxRuntimeExports.jsx(o.Root,{"data-slot":"dialog",...a})}function g({...a}){return t.jsxRuntimeExports.jsx(o.Trigger,{"data-slot":"dialog-trigger",...a})}function s({...a}){return t.jsxRuntimeExports.jsx(o.Portal,{"data-slot":"dialog-portal",...a})}function x({...a}){return t.jsxRuntimeExports.jsx(o.Close,{"data-slot":"dialog-close",...a})}function n({className:a,...e}){return t.jsxRuntimeExports.jsx(o.Overlay,{"data-slot":"dialog-overlay",className:d.cn("adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0 adm:data-[state=open]:fade-in-0 adm:fixed adm:inset-0 adm:z-50 adm:bg-black/50",a),...e})}function c({className:a,children:e,showCloseButton:i=!0,theme:r,...l}){return t.jsxRuntimeExports.jsxs(s,{"data-slot":"dialog-portal",children:[t.jsxRuntimeExports.jsx(n,{}),t.jsxRuntimeExports.jsxs(o.Content,{"data-theme":r,"data-slot":"dialog-content",className:d.cn("adm:bg-background adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0 adm:data-[state=open]:fade-in-0 adm:data-[state=closed]:zoom-out-95 adm:data-[state=open]:zoom-in-95 adm:fixed adm:top-[50%] adm:left-[50%] adm:z-50 adm:grid adm:w-full adm:max-w-[calc(100%-2rem)] adm:translate-x-[-50%] adm:translate-y-[-50%] adm:gap-4 adm:rounded-lg adm:border adm:p-6 adm:shadow-xs adm:duration-200 adm:sm:max-w-lg",a),...l,children:[e,i&&t.jsxRuntimeExports.jsxs(o.Close,{"data-slot":"dialog-close",className:"adm:ring-offset-background adm:focus:ring-ring adm:data-[state=open]:bg-accent adm:data-[state=open]:text-muted-foreground adm:absolute adm:top-4 adm:right-4 adm:rounded-xs adm:opacity-70 adm:transition-opacity adm:hover:opacity-100 adm:focus:ring-2 adm:focus:ring-offset-2 adm:focus:outline-hidden adm:disabled:pointer-events-none adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0 adm:[&_svg:not([class*=size-])]:size-4",children:[t.jsxRuntimeExports.jsx(m.X,{}),t.jsxRuntimeExports.jsx("span",{className:"adm:sr-only",children:"Close"})]})]})]})}function p({className:a,...e}){return t.jsxRuntimeExports.jsx("div",{"data-slot":"dialog-header",className:d.cn("adm:flex adm:flex-col adm:gap-2 adm:text-center adm:sm:text-left",a),...e})}function f({className:a,...e}){return t.jsxRuntimeExports.jsx("div",{"data-slot":"dialog-footer",className:d.cn("adm:flex adm:flex-col-reverse adm:gap-2 adm:sm:flex-row adm:sm:justify-end",a),...e})}function j({className:a,...e}){return t.jsxRuntimeExports.jsx(o.Title,{"data-slot":"dialog-title",className:d.cn("adm:text-lg adm:leading-none adm:font-semibold",a),...e})}function D({className:a,...e}){return t.jsxRuntimeExports.jsx(o.Description,{"data-slot":"dialog-description",className:d.cn("adm:text-muted-foreground adm:text-sm",a),...e})}exports.Dialog=u;exports.DialogClose=x;exports.DialogContent=c;exports.DialogDescription=D;exports.DialogFooter=f;exports.DialogHeader=p;exports.DialogOverlay=n;exports.DialogPortal=s;exports.DialogTitle=j;exports.DialogTrigger=g;
package/dist/dialog.js CHANGED
@@ -54,7 +54,7 @@ function w({
54
54
  "data-theme": m,
55
55
  "data-slot": "dialog-content",
56
56
  className: e(
57
- "adm:bg-background adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0 adm:data-[state=open]:fade-in-0 adm:data-[state=closed]:zoom-out-95 adm:data-[state=open]:zoom-in-95 adm:fixed adm:top-[50%] adm:left-[50%] adm:z-50 adm:grid adm:w-full adm:max-w-[calc(100%-2rem)] adm:translate-x-[-50%] adm:translate-y-[-50%] adm:gap-4 adm:rounded-lg adm:border adm:p-6 adm:shadow-lg adm:duration-200 adm:sm:max-w-lg",
57
+ "adm:bg-background adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0 adm:data-[state=open]:fade-in-0 adm:data-[state=closed]:zoom-out-95 adm:data-[state=open]:zoom-in-95 adm:fixed adm:top-[50%] adm:left-[50%] adm:z-50 adm:grid adm:w-full adm:max-w-[calc(100%-2rem)] adm:translate-x-[-50%] adm:translate-y-[-50%] adm:gap-4 adm:rounded-lg adm:border adm:p-6 adm:shadow-xs adm:duration-200 adm:sm:max-w-lg",
58
58
  a
59
59
  ),
60
60
  ...n,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./jsx-runtime-BB_1_6y_.cjs"),q=require("react"),x=require("./index-BWaO7kQK.cjs"),L=require("./index-BKbK2GzY.cjs"),H=require("./index-cwZN7ZY3.cjs"),K=require("./index-DQvx1rG_.cjs"),d=require("./index-BMitW9UR.cjs"),M=require("./index-WIv2ndLu.cjs"),c=require("./utils-DoxiiusW.cjs"),U=require("./check-CLxNVljQ.cjs"),B=require("./circle-CX7JIirj.cjs"),F=require("./chevron-right-BpzggHsr.cjs");function W(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const t=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(o,n,t.get?t:{enumerable:!0,get:()=>e[n]})}}return o.default=e,Object.freeze(o)}const u=W(q);var g="DropdownMenu",[X]=H.createContextScope(g,[d.createMenuScope]),m=d.createMenuScope(),[J,D]=X(g),R=e=>{const{__scopeDropdownMenu:o,children:n,dir:t,open:a,defaultOpen:i,onOpenChange:p,modal:s=!0}=e,l=m(o),v=u.useRef(null),[f,w]=x.useControllableState({prop:a,defaultProp:i??!1,onChange:p,caller:g});return r.jsxRuntimeExports.jsx(J,{scope:o,triggerId:M.useId(),triggerRef:v,contentId:M.useId(),open:f,onOpenChange:w,onOpenToggle:u.useCallback(()=>w($=>!$),[w]),modal:s,children:r.jsxRuntimeExports.jsx(d.Root3,{...l,open:f,onOpenChange:w,dir:t,modal:s,children:n})})};R.displayName=g;var b="DropdownMenuTrigger",h=u.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,disabled:t=!1,...a}=e,i=D(b,n),p=m(n);return r.jsxRuntimeExports.jsx(d.Anchor2,{asChild:!0,...p,children:r.jsxRuntimeExports.jsx(K.Primitive.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":t?"":void 0,disabled:t,...a,ref:L.composeRefs(o,i.triggerRef),onPointerDown:x.composeEventHandlers(e.onPointerDown,s=>{!t&&s.button===0&&s.ctrlKey===!1&&(i.onOpenToggle(),i.open||s.preventDefault())}),onKeyDown:x.composeEventHandlers(e.onKeyDown,s=>{t||(["Enter"," "].includes(s.key)&&i.onOpenToggle(),s.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})})});h.displayName=b;var Q="DropdownMenuPortal",j=e=>{const{__scopeDropdownMenu:o,...n}=e,t=m(o);return r.jsxRuntimeExports.jsx(d.Portal,{...t,...n})};j.displayName=Q;var E="DropdownMenuContent",_=u.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,a=D(E,n),i=m(n),p=u.useRef(!1);return r.jsxRuntimeExports.jsx(d.Content2,{id:a.contentId,"aria-labelledby":a.triggerId,...i,...t,ref:o,onCloseAutoFocus:x.composeEventHandlers(e.onCloseAutoFocus,s=>{p.current||a.triggerRef.current?.focus(),p.current=!1,s.preventDefault()}),onInteractOutside:x.composeEventHandlers(e.onInteractOutside,s=>{const l=s.detail.originalEvent,v=l.button===0&&l.ctrlKey===!0,f=l.button===2||v;(!a.modal||f)&&(p.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)"}})});_.displayName=E;var V="DropdownMenuGroup",S=u.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,a=m(n);return r.jsxRuntimeExports.jsx(d.Group,{...a,...t,ref:o})});S.displayName=V;var Y="DropdownMenuLabel",N=u.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,a=m(n);return r.jsxRuntimeExports.jsx(d.Label,{...a,...t,ref:o})});N.displayName=Y;var Z="DropdownMenuItem",I=u.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,a=m(n);return r.jsxRuntimeExports.jsx(d.Item2,{...a,...t,ref:o})});I.displayName=Z;var ee="DropdownMenuCheckboxItem",C=u.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,a=m(n);return r.jsxRuntimeExports.jsx(d.CheckboxItem,{...a,...t,ref:o})});C.displayName=ee;var oe="DropdownMenuRadioGroup",y=u.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,a=m(n);return r.jsxRuntimeExports.jsx(d.RadioGroup,{...a,...t,ref:o})});y.displayName=oe;var ne="DropdownMenuRadioItem",P=u.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,a=m(n);return r.jsxRuntimeExports.jsx(d.RadioItem,{...a,...t,ref:o})});P.displayName=ne;var te="DropdownMenuItemIndicator",O=u.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,a=m(n);return r.jsxRuntimeExports.jsx(d.ItemIndicator,{...a,...t,ref:o})});O.displayName=te;var re="DropdownMenuSeparator",A=u.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,a=m(n);return r.jsxRuntimeExports.jsx(d.Separator,{...a,...t,ref:o})});A.displayName=re;var ae="DropdownMenuArrow",de=u.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,a=m(n);return r.jsxRuntimeExports.jsx(d.Arrow2,{...a,...t,ref:o})});de.displayName=ae;var se=e=>{const{__scopeDropdownMenu:o,children:n,open:t,onOpenChange:a,defaultOpen:i}=e,p=m(o),[s,l]=x.useControllableState({prop:t,defaultProp:i??!1,onChange:a,caller:"DropdownMenuSub"});return r.jsxRuntimeExports.jsx(d.Sub,{...p,open:s,onOpenChange:l,children:n})},ie="DropdownMenuSubTrigger",T=u.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,a=m(n);return r.jsxRuntimeExports.jsx(d.SubTrigger,{...a,...t,ref:o})});T.displayName=ie;var ue="DropdownMenuSubContent",k=u.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,a=m(n);return r.jsxRuntimeExports.jsx(d.SubContent,{...a,...t,ref:o,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)"}})});k.displayName=ue;var me=R,pe=h,z=j,ce=_,le=S,xe=N,fe=I,we=C,ge=y,ve=P,G=O,Me=A,De=se,Re=T,be=k;function he({...e}){return r.jsxRuntimeExports.jsx(me,{"data-slot":"dropdown-menu",...e})}function je({...e}){return r.jsxRuntimeExports.jsx(z,{"data-slot":"dropdown-menu-portal",...e})}function Ee({...e}){return r.jsxRuntimeExports.jsx(pe,{"data-slot":"dropdown-menu-trigger",...e})}function _e({className:e,sideOffset:o=4,...n}){return r.jsxRuntimeExports.jsx(z,{children:r.jsxRuntimeExports.jsx(ce,{"data-slot":"dropdown-menu-content",sideOffset:o,className:c.cn("adm:bg-popover adm:text-popover-foreground adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0 adm:data-[state=open]:fade-in-0 adm:data-[state=closed]:zoom-out-95 adm:data-[state=open]:zoom-in-95 adm:data-[side=bottom]:slide-in-from-top-2 adm:data-[side=left]:slide-in-from-right-2 adm:data-[side=right]:slide-in-from-left-2 adm:data-[side=top]:slide-in-from-bottom-2 adm:z-50 adm:max-h-(--radix-dropdown-menu-content-available-height) adm:min-w-[8rem] adm:origin-(--radix-dropdown-menu-content-transform-origin) adm:overflow-x-hidden adm:overflow-y-auto adm:rounded-md adm:border adm:p-1 adm:shadow-md",e),...n})})}function Se({...e}){return r.jsxRuntimeExports.jsx(le,{"data-slot":"dropdown-menu-group",...e})}function Ne({className:e,inset:o,variant:n="default",...t}){return r.jsxRuntimeExports.jsx(fe,{"data-slot":"dropdown-menu-item","data-inset":o,"data-variant":n,className:c.cn("adm:focus:bg-accent adm:focus:text-accent-foreground adm:data-[variant=destructive]:text-destructive adm:data-[variant=destructive]:focus:bg-destructive/10 adm:dark:data-[variant=destructive]:focus:bg-destructive/20 adm:data-[variant=destructive]:focus:text-destructive adm:data-[variant=destructive]:*:[svg]:!text-destructive adm:[&_svg:not([class*=text-])]:text-muted-foreground adm:relative adm:flex adm:cursor-default adm:items-center adm:gap-2 adm:rounded-sm adm:px-2 adm:py-1.5 adm:text-sm adm:outline-hidden adm:select-none adm:data-[disabled]:pointer-events-none adm:data-[disabled]:opacity-50 adm:data-[inset]:pl-8 adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0 adm:[&_svg:not([class*=size-])]:size-4",e),...t})}function Ie({className:e,children:o,checked:n,...t}){return r.jsxRuntimeExports.jsxs(we,{"data-slot":"dropdown-menu-checkbox-item",className:c.cn("adm:focus:bg-accent adm:focus:text-accent-foreground adm:relative adm:flex adm:cursor-default adm:items-center adm:gap-2 adm:rounded-sm adm:py-1.5 adm:pr-2 adm:pl-8 adm:text-sm adm:outline-hidden adm:select-none adm:data-[disabled]:pointer-events-none adm:data-[disabled]:opacity-50 adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0 adm:[&_svg:not([class*=size-])]:size-4",e),checked:n,...t,children:[r.jsxRuntimeExports.jsx("span",{className:"adm:pointer-events-none adm:absolute adm:left-2 adm:flex adm:size-3.5 adm:items-center adm:justify-center",children:r.jsxRuntimeExports.jsx(G,{children:r.jsxRuntimeExports.jsx(U.Check,{className:"adm:size-4"})})}),o]})}function Ce({...e}){return r.jsxRuntimeExports.jsx(ge,{"data-slot":"dropdown-menu-radio-group",...e})}function ye({className:e,children:o,...n}){return r.jsxRuntimeExports.jsxs(ve,{"data-slot":"dropdown-menu-radio-item",className:c.cn("adm:focus:bg-accent adm:focus:text-accent-foreground adm:relative adm:flex adm:cursor-default adm:items-center adm:gap-2 adm:rounded-sm adm:py-1.5 adm:pr-2 adm:pl-8 adm:text-sm adm:outline-hidden adm:select-none adm:data-[disabled]:pointer-events-none adm:data-[disabled]:opacity-50 adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0 adm:[&_svg:not([class*=size-])]:size-4",e),...n,children:[r.jsxRuntimeExports.jsx("span",{className:"adm:pointer-events-none adm:absolute adm:left-2 adm:flex adm:size-3.5 adm:items-center adm:justify-center",children:r.jsxRuntimeExports.jsx(G,{children:r.jsxRuntimeExports.jsx(B.Circle,{className:"adm:size-2 adm:fill-current"})})}),o]})}function Pe({className:e,inset:o,...n}){return r.jsxRuntimeExports.jsx(xe,{"data-slot":"dropdown-menu-label","data-inset":o,className:c.cn("adm:px-2 adm:py-1.5 adm:text-sm adm:font-medium adm:data-[inset]:pl-8",e),...n})}function Oe({className:e,...o}){return r.jsxRuntimeExports.jsx(Me,{"data-slot":"dropdown-menu-separator",className:c.cn("adm:bg-border adm:-mx-1 adm:my-1 adm:h-px",e),...o})}function Ae({className:e,...o}){return r.jsxRuntimeExports.jsx("span",{"data-slot":"dropdown-menu-shortcut",className:c.cn("adm:text-muted-foreground adm:ml-auto adm:text-xs adm:tracking-widest",e),...o})}function Te({...e}){return r.jsxRuntimeExports.jsx(De,{"data-slot":"dropdown-menu-sub",...e})}function ke({className:e,inset:o,children:n,...t}){return r.jsxRuntimeExports.jsxs(Re,{"data-slot":"dropdown-menu-sub-trigger","data-inset":o,className:c.cn("adm:focus:bg-accent adm:focus:text-accent-foreground adm:data-[state=open]:bg-accent adm:data-[state=open]:text-accent-foreground adm:[&_svg:not([class*=text-])]:text-muted-foreground adm:flex adm:cursor-default adm:items-center adm:gap-2 adm:rounded-sm adm:px-2 adm:py-1.5 adm:text-sm adm:outline-hidden adm:select-none adm:data-[inset]:pl-8 adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0 adm:[&_svg:not([class*=size-])]:size-4",e),...t,children:[n,r.jsxRuntimeExports.jsx(F.ChevronRight,{className:"adm:ml-auto adm:size-4"})]})}function ze({className:e,...o}){return r.jsxRuntimeExports.jsx(be,{"data-slot":"dropdown-menu-sub-content",className:c.cn("adm:bg-popover adm:text-popover-foreground adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0 adm:data-[state=open]:fade-in-0 adm:data-[state=closed]:zoom-out-95 adm:data-[state=open]:zoom-in-95 adm:data-[side=bottom]:slide-in-from-top-2 adm:data-[side=left]:slide-in-from-right-2 adm:data-[side=right]:slide-in-from-left-2 adm:data-[side=top]:slide-in-from-bottom-2 adm:z-50 adm:min-w-[8rem] adm:origin-(--radix-dropdown-menu-content-transform-origin) adm:overflow-hidden adm:rounded-md adm:border adm:p-1 adm:shadow-lg",e),...o})}exports.DropdownMenu=he;exports.DropdownMenuCheckboxItem=Ie;exports.DropdownMenuContent=_e;exports.DropdownMenuGroup=Se;exports.DropdownMenuItem=Ne;exports.DropdownMenuLabel=Pe;exports.DropdownMenuPortal=je;exports.DropdownMenuRadioGroup=Ce;exports.DropdownMenuRadioItem=ye;exports.DropdownMenuSeparator=Oe;exports.DropdownMenuShortcut=Ae;exports.DropdownMenuSub=Te;exports.DropdownMenuSubContent=ze;exports.DropdownMenuSubTrigger=ke;exports.DropdownMenuTrigger=Ee;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./jsx-runtime-BB_1_6y_.cjs"),q=require("react"),x=require("./index-BWaO7kQK.cjs"),L=require("./index-BKbK2GzY.cjs"),H=require("./index-cwZN7ZY3.cjs"),K=require("./index-DQvx1rG_.cjs"),d=require("./index-BMitW9UR.cjs"),M=require("./index-WIv2ndLu.cjs"),c=require("./utils-DoxiiusW.cjs"),U=require("./check-CLxNVljQ.cjs"),B=require("./circle-CX7JIirj.cjs"),F=require("./chevron-right-BpzggHsr.cjs");function W(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const t=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(o,n,t.get?t:{enumerable:!0,get:()=>e[n]})}}return o.default=e,Object.freeze(o)}const u=W(q);var g="DropdownMenu",[X]=H.createContextScope(g,[d.createMenuScope]),m=d.createMenuScope(),[J,D]=X(g),R=e=>{const{__scopeDropdownMenu:o,children:n,dir:t,open:a,defaultOpen:i,onOpenChange:p,modal:s=!0}=e,l=m(o),v=u.useRef(null),[f,w]=x.useControllableState({prop:a,defaultProp:i??!1,onChange:p,caller:g});return r.jsxRuntimeExports.jsx(J,{scope:o,triggerId:M.useId(),triggerRef:v,contentId:M.useId(),open:f,onOpenChange:w,onOpenToggle:u.useCallback(()=>w($=>!$),[w]),modal:s,children:r.jsxRuntimeExports.jsx(d.Root3,{...l,open:f,onOpenChange:w,dir:t,modal:s,children:n})})};R.displayName=g;var b="DropdownMenuTrigger",h=u.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,disabled:t=!1,...a}=e,i=D(b,n),p=m(n);return r.jsxRuntimeExports.jsx(d.Anchor2,{asChild:!0,...p,children:r.jsxRuntimeExports.jsx(K.Primitive.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":t?"":void 0,disabled:t,...a,ref:L.composeRefs(o,i.triggerRef),onPointerDown:x.composeEventHandlers(e.onPointerDown,s=>{!t&&s.button===0&&s.ctrlKey===!1&&(i.onOpenToggle(),i.open||s.preventDefault())}),onKeyDown:x.composeEventHandlers(e.onKeyDown,s=>{t||(["Enter"," "].includes(s.key)&&i.onOpenToggle(),s.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})})});h.displayName=b;var Q="DropdownMenuPortal",j=e=>{const{__scopeDropdownMenu:o,...n}=e,t=m(o);return r.jsxRuntimeExports.jsx(d.Portal,{...t,...n})};j.displayName=Q;var E="DropdownMenuContent",_=u.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,a=D(E,n),i=m(n),p=u.useRef(!1);return r.jsxRuntimeExports.jsx(d.Content2,{id:a.contentId,"aria-labelledby":a.triggerId,...i,...t,ref:o,onCloseAutoFocus:x.composeEventHandlers(e.onCloseAutoFocus,s=>{p.current||a.triggerRef.current?.focus(),p.current=!1,s.preventDefault()}),onInteractOutside:x.composeEventHandlers(e.onInteractOutside,s=>{const l=s.detail.originalEvent,v=l.button===0&&l.ctrlKey===!0,f=l.button===2||v;(!a.modal||f)&&(p.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)"}})});_.displayName=E;var V="DropdownMenuGroup",S=u.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,a=m(n);return r.jsxRuntimeExports.jsx(d.Group,{...a,...t,ref:o})});S.displayName=V;var Y="DropdownMenuLabel",N=u.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,a=m(n);return r.jsxRuntimeExports.jsx(d.Label,{...a,...t,ref:o})});N.displayName=Y;var Z="DropdownMenuItem",I=u.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,a=m(n);return r.jsxRuntimeExports.jsx(d.Item2,{...a,...t,ref:o})});I.displayName=Z;var ee="DropdownMenuCheckboxItem",C=u.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,a=m(n);return r.jsxRuntimeExports.jsx(d.CheckboxItem,{...a,...t,ref:o})});C.displayName=ee;var oe="DropdownMenuRadioGroup",y=u.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,a=m(n);return r.jsxRuntimeExports.jsx(d.RadioGroup,{...a,...t,ref:o})});y.displayName=oe;var ne="DropdownMenuRadioItem",P=u.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,a=m(n);return r.jsxRuntimeExports.jsx(d.RadioItem,{...a,...t,ref:o})});P.displayName=ne;var te="DropdownMenuItemIndicator",O=u.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,a=m(n);return r.jsxRuntimeExports.jsx(d.ItemIndicator,{...a,...t,ref:o})});O.displayName=te;var re="DropdownMenuSeparator",A=u.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,a=m(n);return r.jsxRuntimeExports.jsx(d.Separator,{...a,...t,ref:o})});A.displayName=re;var ae="DropdownMenuArrow",de=u.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,a=m(n);return r.jsxRuntimeExports.jsx(d.Arrow2,{...a,...t,ref:o})});de.displayName=ae;var se=e=>{const{__scopeDropdownMenu:o,children:n,open:t,onOpenChange:a,defaultOpen:i}=e,p=m(o),[s,l]=x.useControllableState({prop:t,defaultProp:i??!1,onChange:a,caller:"DropdownMenuSub"});return r.jsxRuntimeExports.jsx(d.Sub,{...p,open:s,onOpenChange:l,children:n})},ie="DropdownMenuSubTrigger",T=u.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,a=m(n);return r.jsxRuntimeExports.jsx(d.SubTrigger,{...a,...t,ref:o})});T.displayName=ie;var ue="DropdownMenuSubContent",k=u.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,a=m(n);return r.jsxRuntimeExports.jsx(d.SubContent,{...a,...t,ref:o,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)"}})});k.displayName=ue;var me=R,pe=h,z=j,ce=_,le=S,xe=N,fe=I,we=C,ge=y,ve=P,G=O,Me=A,De=se,Re=T,be=k;function he({...e}){return r.jsxRuntimeExports.jsx(me,{"data-slot":"dropdown-menu",...e})}function je({...e}){return r.jsxRuntimeExports.jsx(z,{"data-slot":"dropdown-menu-portal",...e})}function Ee({...e}){return r.jsxRuntimeExports.jsx(pe,{"data-slot":"dropdown-menu-trigger",...e})}function _e({className:e,sideOffset:o=4,...n}){return r.jsxRuntimeExports.jsx(z,{children:r.jsxRuntimeExports.jsx(ce,{"data-slot":"dropdown-menu-content",sideOffset:o,className:c.cn("adm:bg-popover adm:text-popover-foreground adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0 adm:data-[state=open]:fade-in-0 adm:data-[state=closed]:zoom-out-95 adm:data-[state=open]:zoom-in-95 adm:data-[side=bottom]:slide-in-from-top-2 adm:data-[side=left]:slide-in-from-right-2 adm:data-[side=right]:slide-in-from-left-2 adm:data-[side=top]:slide-in-from-bottom-2 adm:z-50 adm:max-h-(--radix-dropdown-menu-content-available-height) adm:min-w-[8rem] adm:origin-(--radix-dropdown-menu-content-transform-origin) adm:overflow-x-hidden adm:overflow-y-auto adm:rounded-md adm:border adm:p-1 adm:shadow-xs",e),...n})})}function Se({...e}){return r.jsxRuntimeExports.jsx(le,{"data-slot":"dropdown-menu-group",...e})}function Ne({className:e,inset:o,variant:n="default",...t}){return r.jsxRuntimeExports.jsx(fe,{"data-slot":"dropdown-menu-item","data-inset":o,"data-variant":n,className:c.cn("adm:focus:bg-accent adm:focus:text-accent-foreground adm:data-[variant=destructive]:text-destructive adm:data-[variant=destructive]:focus:bg-destructive/10 adm:dark:data-[variant=destructive]:focus:bg-destructive/20 adm:data-[variant=destructive]:focus:text-destructive adm:data-[variant=destructive]:*:[svg]:!text-destructive adm:[&_svg:not([class*=text-])]:text-muted-foreground adm:relative adm:flex adm:cursor-default adm:items-center adm:gap-2 adm:rounded-sm adm:px-2 adm:py-1.5 adm:text-sm adm:outline-hidden adm:select-none adm:data-[disabled]:pointer-events-none adm:data-[disabled]:opacity-50 adm:data-[inset]:pl-8 adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0 adm:[&_svg:not([class*=size-])]:size-4",e),...t})}function Ie({className:e,children:o,checked:n,...t}){return r.jsxRuntimeExports.jsxs(we,{"data-slot":"dropdown-menu-checkbox-item",className:c.cn("adm:focus:bg-accent adm:focus:text-accent-foreground adm:relative adm:flex adm:cursor-default adm:items-center adm:gap-2 adm:rounded-sm adm:py-1.5 adm:pr-2 adm:pl-8 adm:text-sm adm:outline-hidden adm:select-none adm:data-[disabled]:pointer-events-none adm:data-[disabled]:opacity-50 adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0 adm:[&_svg:not([class*=size-])]:size-4",e),checked:n,...t,children:[r.jsxRuntimeExports.jsx("span",{className:"adm:pointer-events-none adm:absolute adm:left-2 adm:flex adm:size-3.5 adm:items-center adm:justify-center",children:r.jsxRuntimeExports.jsx(G,{children:r.jsxRuntimeExports.jsx(U.Check,{className:"adm:size-4"})})}),o]})}function Ce({...e}){return r.jsxRuntimeExports.jsx(ge,{"data-slot":"dropdown-menu-radio-group",...e})}function ye({className:e,children:o,...n}){return r.jsxRuntimeExports.jsxs(ve,{"data-slot":"dropdown-menu-radio-item",className:c.cn("adm:focus:bg-accent adm:focus:text-accent-foreground adm:relative adm:flex adm:cursor-default adm:items-center adm:gap-2 adm:rounded-sm adm:py-1.5 adm:pr-2 adm:pl-8 adm:text-sm adm:outline-hidden adm:select-none adm:data-[disabled]:pointer-events-none adm:data-[disabled]:opacity-50 adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0 adm:[&_svg:not([class*=size-])]:size-4",e),...n,children:[r.jsxRuntimeExports.jsx("span",{className:"adm:pointer-events-none adm:absolute adm:left-2 adm:flex adm:size-3.5 adm:items-center adm:justify-center",children:r.jsxRuntimeExports.jsx(G,{children:r.jsxRuntimeExports.jsx(B.Circle,{className:"adm:size-2 adm:fill-current"})})}),o]})}function Pe({className:e,inset:o,...n}){return r.jsxRuntimeExports.jsx(xe,{"data-slot":"dropdown-menu-label","data-inset":o,className:c.cn("adm:px-2 adm:py-1.5 adm:text-sm adm:font-medium adm:data-[inset]:pl-8",e),...n})}function Oe({className:e,...o}){return r.jsxRuntimeExports.jsx(Me,{"data-slot":"dropdown-menu-separator",className:c.cn("adm:bg-border adm:-mx-1 adm:my-1 adm:h-px",e),...o})}function Ae({className:e,...o}){return r.jsxRuntimeExports.jsx("span",{"data-slot":"dropdown-menu-shortcut",className:c.cn("adm:text-muted-foreground adm:ml-auto adm:text-xs adm:tracking-widest",e),...o})}function Te({...e}){return r.jsxRuntimeExports.jsx(De,{"data-slot":"dropdown-menu-sub",...e})}function ke({className:e,inset:o,children:n,...t}){return r.jsxRuntimeExports.jsxs(Re,{"data-slot":"dropdown-menu-sub-trigger","data-inset":o,className:c.cn("adm:focus:bg-accent adm:focus:text-accent-foreground adm:data-[state=open]:bg-accent adm:data-[state=open]:text-accent-foreground adm:[&_svg:not([class*=text-])]:text-muted-foreground adm:flex adm:cursor-default adm:items-center adm:gap-2 adm:rounded-sm adm:px-2 adm:py-1.5 adm:text-sm adm:outline-hidden adm:select-none adm:data-[inset]:pl-8 adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0 adm:[&_svg:not([class*=size-])]:size-4",e),...t,children:[n,r.jsxRuntimeExports.jsx(F.ChevronRight,{className:"adm:ml-auto adm:size-4"})]})}function ze({className:e,...o}){return r.jsxRuntimeExports.jsx(be,{"data-slot":"dropdown-menu-sub-content",className:c.cn("adm:bg-popover adm:text-popover-foreground adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0 adm:data-[state=open]:fade-in-0 adm:data-[state=closed]:zoom-out-95 adm:data-[state=open]:zoom-in-95 adm:data-[side=bottom]:slide-in-from-top-2 adm:data-[side=left]:slide-in-from-right-2 adm:data-[side=right]:slide-in-from-left-2 adm:data-[side=top]:slide-in-from-bottom-2 adm:z-50 adm:min-w-[8rem] adm:origin-(--radix-dropdown-menu-content-transform-origin) adm:overflow-hidden adm:rounded-md adm:border adm:p-1 adm:shadow-xs",e),...o})}exports.DropdownMenu=he;exports.DropdownMenuCheckboxItem=Ie;exports.DropdownMenuContent=_e;exports.DropdownMenuGroup=Se;exports.DropdownMenuItem=Ne;exports.DropdownMenuLabel=Pe;exports.DropdownMenuPortal=je;exports.DropdownMenuRadioGroup=Ce;exports.DropdownMenuRadioItem=ye;exports.DropdownMenuSeparator=Oe;exports.DropdownMenuShortcut=Ae;exports.DropdownMenuSub=Te;exports.DropdownMenuSubContent=ze;exports.DropdownMenuSubTrigger=ke;exports.DropdownMenuTrigger=Ee;
@@ -226,7 +226,7 @@ function Ye({
226
226
  "data-slot": "dropdown-menu-content",
227
227
  sideOffset: o,
228
228
  className: u(
229
- "adm:bg-popover adm:text-popover-foreground adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0 adm:data-[state=open]:fade-in-0 adm:data-[state=closed]:zoom-out-95 adm:data-[state=open]:zoom-in-95 adm:data-[side=bottom]:slide-in-from-top-2 adm:data-[side=left]:slide-in-from-right-2 adm:data-[side=right]:slide-in-from-left-2 adm:data-[side=top]:slide-in-from-bottom-2 adm:z-50 adm:max-h-(--radix-dropdown-menu-content-available-height) adm:min-w-[8rem] adm:origin-(--radix-dropdown-menu-content-transform-origin) adm:overflow-x-hidden adm:overflow-y-auto adm:rounded-md adm:border adm:p-1 adm:shadow-md",
229
+ "adm:bg-popover adm:text-popover-foreground adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0 adm:data-[state=open]:fade-in-0 adm:data-[state=closed]:zoom-out-95 adm:data-[state=open]:zoom-in-95 adm:data-[side=bottom]:slide-in-from-top-2 adm:data-[side=left]:slide-in-from-right-2 adm:data-[side=right]:slide-in-from-left-2 adm:data-[side=top]:slide-in-from-bottom-2 adm:z-50 adm:max-h-(--radix-dropdown-menu-content-available-height) adm:min-w-[8rem] adm:origin-(--radix-dropdown-menu-content-transform-origin) adm:overflow-x-hidden adm:overflow-y-auto adm:rounded-md adm:border adm:p-1 adm:shadow-xs",
230
230
  e
231
231
  ),
232
232
  ...a
@@ -397,7 +397,7 @@ function po({
397
397
  {
398
398
  "data-slot": "dropdown-menu-sub-content",
399
399
  className: u(
400
- "adm:bg-popover adm:text-popover-foreground adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0 adm:data-[state=open]:fade-in-0 adm:data-[state=closed]:zoom-out-95 adm:data-[state=open]:zoom-in-95 adm:data-[side=bottom]:slide-in-from-top-2 adm:data-[side=left]:slide-in-from-right-2 adm:data-[side=right]:slide-in-from-left-2 adm:data-[side=top]:slide-in-from-bottom-2 adm:z-50 adm:min-w-[8rem] adm:origin-(--radix-dropdown-menu-content-transform-origin) adm:overflow-hidden adm:rounded-md adm:border adm:p-1 adm:shadow-lg",
400
+ "adm:bg-popover adm:text-popover-foreground adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0 adm:data-[state=open]:fade-in-0 adm:data-[state=closed]:zoom-out-95 adm:data-[state=open]:zoom-in-95 adm:data-[side=bottom]:slide-in-from-top-2 adm:data-[side=left]:slide-in-from-right-2 adm:data-[side=right]:slide-in-from-left-2 adm:data-[side=top]:slide-in-from-bottom-2 adm:z-50 adm:min-w-[8rem] adm:origin-(--radix-dropdown-menu-content-transform-origin) adm:overflow-hidden adm:rounded-md adm:border adm:p-1 adm:shadow-xs",
401
401
  e
402
402
  ),
403
403
  ...o
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./jsx-runtime-BB_1_6y_.cjs"),q=require("react"),l=require("./index-BWaO7kQK.cjs"),L=require("./index-cwZN7ZY3.cjs"),k=require("./index-BKbK2GzY.cjs"),f=require("./index-BGiGvaq8.cjs"),$=require("./index-Ce3QBKyj.cjs"),w=require("./index-IKJMQref.cjs"),F=require("./index-DQvx1rG_.cjs"),I=require("./index-VIUqZjyP.cjs"),U=require("./utils-DoxiiusW.cjs");function z(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const a=z(q);var H,P="HoverCard",[T]=L.createContextScope(P,[f.createPopperScope]),b=f.createPopperScope(),[W,j]=T(P),O=e=>{const{__scopeHoverCard:t,children:r,open:n,defaultOpen:i,onOpenChange:c,openDelay:m=700,closeDelay:v=300}=e,d=b(t),x=a.useRef(0),u=a.useRef(0),C=a.useRef(!1),p=a.useRef(!1),[h,o]=l.useControllableState({prop:n,defaultProp:i??!1,onChange:c,caller:P}),R=a.useCallback(()=>{clearTimeout(u.current),x.current=window.setTimeout(()=>o(!0),m)},[m,o]),A=a.useCallback(()=>{clearTimeout(x.current),!C.current&&!p.current&&(u.current=window.setTimeout(()=>o(!1),v))},[v,o]),M=a.useCallback(()=>o(!1),[o]);return a.useEffect(()=>()=>{clearTimeout(x.current),clearTimeout(u.current)},[]),s.jsxRuntimeExports.jsx(W,{scope:t,open:h,onOpenChange:o,onOpen:R,onClose:A,onDismiss:M,hasSelectionRef:C,isPointerDownOnContentRef:p,children:s.jsxRuntimeExports.jsx(f.Root2,{...d,children:r})})};O.displayName=P;var y="HoverCardTrigger",_=a.forwardRef((e,t)=>{const{__scopeHoverCard:r,...n}=e,i=j(y,r),c=b(r);return s.jsxRuntimeExports.jsx(f.Anchor,{asChild:!0,...c,children:s.jsxRuntimeExports.jsx(F.Primitive.a,{"data-state":i.open?"open":"closed",...n,ref:t,onPointerEnter:l.composeEventHandlers(e.onPointerEnter,g(i.onOpen)),onPointerLeave:l.composeEventHandlers(e.onPointerLeave,g(i.onClose)),onFocus:l.composeEventHandlers(e.onFocus,i.onOpen),onBlur:l.composeEventHandlers(e.onBlur,i.onClose),onTouchStart:l.composeEventHandlers(e.onTouchStart,m=>m.preventDefault())})})});_.displayName=y;var S="HoverCardPortal",[B,G]=T(S,{forceMount:void 0}),N=e=>{const{__scopeHoverCard:t,forceMount:r,children:n,container:i}=e,c=j(S,t);return s.jsxRuntimeExports.jsx(B,{scope:t,forceMount:r,children:s.jsxRuntimeExports.jsx(w.Presence,{present:r||c.open,children:s.jsxRuntimeExports.jsx($.Portal,{asChild:!0,container:i,children:n})})})};N.displayName=S;var E="HoverCardContent",D=a.forwardRef((e,t)=>{const r=G(E,e.__scopeHoverCard),{forceMount:n=r.forceMount,...i}=e,c=j(E,e.__scopeHoverCard);return s.jsxRuntimeExports.jsx(w.Presence,{present:n||c.open,children:s.jsxRuntimeExports.jsx(K,{"data-state":c.open?"open":"closed",...i,onPointerEnter:l.composeEventHandlers(e.onPointerEnter,g(c.onOpen)),onPointerLeave:l.composeEventHandlers(e.onPointerLeave,g(c.onClose)),ref:t})})});D.displayName=E;var K=a.forwardRef((e,t)=>{const{__scopeHoverCard:r,onEscapeKeyDown:n,onPointerDownOutside:i,onFocusOutside:c,onInteractOutside:m,...v}=e,d=j(E,r),x=b(r),u=a.useRef(null),C=k.useComposedRefs(t,u),[p,h]=a.useState(!1);return a.useEffect(()=>{if(p){const o=document.body;return H=o.style.userSelect||o.style.webkitUserSelect,o.style.userSelect="none",o.style.webkitUserSelect="none",()=>{o.style.userSelect=H,o.style.webkitUserSelect=H}}},[p]),a.useEffect(()=>{if(u.current){const o=()=>{h(!1),d.isPointerDownOnContentRef.current=!1,setTimeout(()=>{document.getSelection()?.toString()!==""&&(d.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",o),()=>{document.removeEventListener("pointerup",o),d.hasSelectionRef.current=!1,d.isPointerDownOnContentRef.current=!1}}},[d.isPointerDownOnContentRef,d.hasSelectionRef]),a.useEffect(()=>{u.current&&Q(u.current).forEach(R=>R.setAttribute("tabindex","-1"))}),s.jsxRuntimeExports.jsx(I.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:m,onEscapeKeyDown:n,onPointerDownOutside:i,onFocusOutside:l.composeEventHandlers(c,o=>{o.preventDefault()}),onDismiss:d.onDismiss,children:s.jsxRuntimeExports.jsx(f.Content,{...x,...v,onPointerDown:l.composeEventHandlers(v.onPointerDown,o=>{o.currentTarget.contains(o.target)&&h(!0),d.hasSelectionRef.current=!1,d.isPointerDownOnContentRef.current=!0}),ref:C,style:{...v.style,userSelect:p?"text":void 0,WebkitUserSelect:p?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})}),V="HoverCardArrow",J=a.forwardRef((e,t)=>{const{__scopeHoverCard:r,...n}=e,i=b(r);return s.jsxRuntimeExports.jsx(f.Arrow,{...i,...n,ref:t})});J.displayName=V;function g(e){return t=>t.pointerType==="touch"?void 0:e()}function Q(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;r.nextNode();)t.push(r.currentNode);return t}var X=O,Y=_,Z=N,ee=D;function te({...e}){return s.jsxRuntimeExports.jsx(X,{"data-slot":"hover-card",...e})}function re({...e}){return s.jsxRuntimeExports.jsx(Y,{"data-slot":"hover-card-trigger",...e})}function oe({className:e,align:t="center",sideOffset:r=4,...n}){return s.jsxRuntimeExports.jsx(Z,{"data-slot":"hover-card-portal",children:s.jsxRuntimeExports.jsx(ee,{"data-slot":"hover-card-content",align:t,sideOffset:r,className:U.cn("adm:bg-popover adm:text-popover-foreground adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0 adm:data-[state=open]:fade-in-0 adm:data-[state=closed]:zoom-out-95 adm:data-[state=open]:zoom-in-95 adm:data-[side=bottom]:slide-in-from-top-2 adm:data-[side=left]:slide-in-from-right-2 adm:data-[side=right]:slide-in-from-left-2 adm:data-[side=top]:slide-in-from-bottom-2 adm:z-50 adm:w-64 adm:origin-(--radix-hover-card-content-transform-origin) adm:rounded-md adm:border adm:p-4 adm:shadow-md adm:outline-hidden",e),...n})})}exports.HoverCard=te;exports.HoverCardContent=oe;exports.HoverCardTrigger=re;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./jsx-runtime-BB_1_6y_.cjs"),q=require("react"),l=require("./index-BWaO7kQK.cjs"),L=require("./index-cwZN7ZY3.cjs"),k=require("./index-BKbK2GzY.cjs"),f=require("./index-BGiGvaq8.cjs"),$=require("./index-Ce3QBKyj.cjs"),w=require("./index-IKJMQref.cjs"),F=require("./index-DQvx1rG_.cjs"),I=require("./index-VIUqZjyP.cjs"),U=require("./utils-DoxiiusW.cjs");function z(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const a=z(q);var H,P="HoverCard",[T]=L.createContextScope(P,[f.createPopperScope]),b=f.createPopperScope(),[W,j]=T(P),O=e=>{const{__scopeHoverCard:t,children:r,open:n,defaultOpen:i,onOpenChange:c,openDelay:m=700,closeDelay:v=300}=e,d=b(t),x=a.useRef(0),u=a.useRef(0),C=a.useRef(!1),p=a.useRef(!1),[h,o]=l.useControllableState({prop:n,defaultProp:i??!1,onChange:c,caller:P}),R=a.useCallback(()=>{clearTimeout(u.current),x.current=window.setTimeout(()=>o(!0),m)},[m,o]),A=a.useCallback(()=>{clearTimeout(x.current),!C.current&&!p.current&&(u.current=window.setTimeout(()=>o(!1),v))},[v,o]),M=a.useCallback(()=>o(!1),[o]);return a.useEffect(()=>()=>{clearTimeout(x.current),clearTimeout(u.current)},[]),s.jsxRuntimeExports.jsx(W,{scope:t,open:h,onOpenChange:o,onOpen:R,onClose:A,onDismiss:M,hasSelectionRef:C,isPointerDownOnContentRef:p,children:s.jsxRuntimeExports.jsx(f.Root2,{...d,children:r})})};O.displayName=P;var y="HoverCardTrigger",_=a.forwardRef((e,t)=>{const{__scopeHoverCard:r,...n}=e,i=j(y,r),c=b(r);return s.jsxRuntimeExports.jsx(f.Anchor,{asChild:!0,...c,children:s.jsxRuntimeExports.jsx(F.Primitive.a,{"data-state":i.open?"open":"closed",...n,ref:t,onPointerEnter:l.composeEventHandlers(e.onPointerEnter,g(i.onOpen)),onPointerLeave:l.composeEventHandlers(e.onPointerLeave,g(i.onClose)),onFocus:l.composeEventHandlers(e.onFocus,i.onOpen),onBlur:l.composeEventHandlers(e.onBlur,i.onClose),onTouchStart:l.composeEventHandlers(e.onTouchStart,m=>m.preventDefault())})})});_.displayName=y;var S="HoverCardPortal",[B,G]=T(S,{forceMount:void 0}),N=e=>{const{__scopeHoverCard:t,forceMount:r,children:n,container:i}=e,c=j(S,t);return s.jsxRuntimeExports.jsx(B,{scope:t,forceMount:r,children:s.jsxRuntimeExports.jsx(w.Presence,{present:r||c.open,children:s.jsxRuntimeExports.jsx($.Portal,{asChild:!0,container:i,children:n})})})};N.displayName=S;var E="HoverCardContent",D=a.forwardRef((e,t)=>{const r=G(E,e.__scopeHoverCard),{forceMount:n=r.forceMount,...i}=e,c=j(E,e.__scopeHoverCard);return s.jsxRuntimeExports.jsx(w.Presence,{present:n||c.open,children:s.jsxRuntimeExports.jsx(K,{"data-state":c.open?"open":"closed",...i,onPointerEnter:l.composeEventHandlers(e.onPointerEnter,g(c.onOpen)),onPointerLeave:l.composeEventHandlers(e.onPointerLeave,g(c.onClose)),ref:t})})});D.displayName=E;var K=a.forwardRef((e,t)=>{const{__scopeHoverCard:r,onEscapeKeyDown:n,onPointerDownOutside:i,onFocusOutside:c,onInteractOutside:m,...v}=e,d=j(E,r),x=b(r),u=a.useRef(null),C=k.useComposedRefs(t,u),[p,h]=a.useState(!1);return a.useEffect(()=>{if(p){const o=document.body;return H=o.style.userSelect||o.style.webkitUserSelect,o.style.userSelect="none",o.style.webkitUserSelect="none",()=>{o.style.userSelect=H,o.style.webkitUserSelect=H}}},[p]),a.useEffect(()=>{if(u.current){const o=()=>{h(!1),d.isPointerDownOnContentRef.current=!1,setTimeout(()=>{document.getSelection()?.toString()!==""&&(d.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",o),()=>{document.removeEventListener("pointerup",o),d.hasSelectionRef.current=!1,d.isPointerDownOnContentRef.current=!1}}},[d.isPointerDownOnContentRef,d.hasSelectionRef]),a.useEffect(()=>{u.current&&Q(u.current).forEach(R=>R.setAttribute("tabindex","-1"))}),s.jsxRuntimeExports.jsx(I.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:m,onEscapeKeyDown:n,onPointerDownOutside:i,onFocusOutside:l.composeEventHandlers(c,o=>{o.preventDefault()}),onDismiss:d.onDismiss,children:s.jsxRuntimeExports.jsx(f.Content,{...x,...v,onPointerDown:l.composeEventHandlers(v.onPointerDown,o=>{o.currentTarget.contains(o.target)&&h(!0),d.hasSelectionRef.current=!1,d.isPointerDownOnContentRef.current=!0}),ref:C,style:{...v.style,userSelect:p?"text":void 0,WebkitUserSelect:p?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})}),V="HoverCardArrow",J=a.forwardRef((e,t)=>{const{__scopeHoverCard:r,...n}=e,i=b(r);return s.jsxRuntimeExports.jsx(f.Arrow,{...i,...n,ref:t})});J.displayName=V;function g(e){return t=>t.pointerType==="touch"?void 0:e()}function Q(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;r.nextNode();)t.push(r.currentNode);return t}var X=O,Y=_,Z=N,ee=D;function te({...e}){return s.jsxRuntimeExports.jsx(X,{"data-slot":"hover-card",...e})}function re({...e}){return s.jsxRuntimeExports.jsx(Y,{"data-slot":"hover-card-trigger",...e})}function oe({className:e,align:t="center",sideOffset:r=4,...n}){return s.jsxRuntimeExports.jsx(Z,{"data-slot":"hover-card-portal",children:s.jsxRuntimeExports.jsx(ee,{"data-slot":"hover-card-content",align:t,sideOffset:r,className:U.cn("adm:bg-popover adm:text-popover-foreground adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0 adm:data-[state=open]:fade-in-0 adm:data-[state=closed]:zoom-out-95 adm:data-[state=open]:zoom-in-95 adm:data-[side=bottom]:slide-in-from-top-2 adm:data-[side=left]:slide-in-from-right-2 adm:data-[side=right]:slide-in-from-left-2 adm:data-[side=top]:slide-in-from-bottom-2 adm:z-50 adm:w-64 adm:origin-(--radix-hover-card-content-transform-origin) adm:rounded-md adm:border adm:p-4 adm:shadow-xs adm:outline-hidden",e),...n})})}exports.HoverCard=te;exports.HoverCardContent=oe;exports.HoverCardTrigger=re;
@@ -196,7 +196,7 @@ function he({
196
196
  align: o,
197
197
  sideOffset: t,
198
198
  className: K(
199
- "adm:bg-popover adm:text-popover-foreground adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0 adm:data-[state=open]:fade-in-0 adm:data-[state=closed]:zoom-out-95 adm:data-[state=open]:zoom-in-95 adm:data-[side=bottom]:slide-in-from-top-2 adm:data-[side=left]:slide-in-from-right-2 adm:data-[side=right]:slide-in-from-left-2 adm:data-[side=top]:slide-in-from-bottom-2 adm:z-50 adm:w-64 adm:origin-(--radix-hover-card-content-transform-origin) adm:rounded-md adm:border adm:p-4 adm:shadow-md adm:outline-hidden",
199
+ "adm:bg-popover adm:text-popover-foreground adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0 adm:data-[state=open]:fade-in-0 adm:data-[state=closed]:zoom-out-95 adm:data-[state=open]:zoom-in-95 adm:data-[side=bottom]:slide-in-from-top-2 adm:data-[side=left]:slide-in-from-right-2 adm:data-[side=right]:slide-in-from-left-2 adm:data-[side=top]:slide-in-from-bottom-2 adm:z-50 adm:w-64 adm:origin-(--radix-hover-card-content-transform-origin) adm:rounded-md adm:border adm:p-4 adm:shadow-xs adm:outline-hidden",
200
200
  e
201
201
  ),
202
202
  ...s
@@ -243,7 +243,7 @@ function bo({
243
243
  align: n,
244
244
  sideOffset: e,
245
245
  className: Q(
246
- "adm:bg-popover adm:text-popover-foreground adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0 adm:data-[state=open]:fade-in-0 adm:data-[state=closed]:zoom-out-95 adm:data-[state=open]:zoom-in-95 adm:data-[side=bottom]:slide-in-from-top-2 adm:data-[side=left]:slide-in-from-right-2 adm:data-[side=right]:slide-in-from-left-2 adm:data-[side=top]:slide-in-from-bottom-2 adm:z-50 adm:w-72 adm:origin-(--radix-popover-content-transform-origin) adm:rounded-md adm:border adm:p-4 adm:shadow-md adm:outline-hidden",
246
+ "adm:bg-popover adm:text-popover-foreground adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0 adm:data-[state=open]:fade-in-0 adm:data-[state=closed]:zoom-out-95 adm:data-[state=open]:zoom-in-95 adm:data-[side=bottom]:slide-in-from-top-2 adm:data-[side=left]:slide-in-from-right-2 adm:data-[side=right]:slide-in-from-left-2 adm:data-[side=top]:slide-in-from-bottom-2 adm:z-50 adm:w-72 adm:origin-(--radix-popover-content-transform-origin) adm:rounded-md adm:border adm:p-4 adm:shadow-xs adm:outline-hidden",
247
247
  o
248
248
  ),
249
249
  ...a
@@ -1 +1 @@
1
- "use strict";const a=require("./jsx-runtime-BB_1_6y_.cjs"),$=require("react"),f=require("./index-BWaO7kQK.cjs"),E=require("./index-BKbK2GzY.cjs"),I=require("./index-cwZN7ZY3.cjs"),H=require("./index-VIUqZjyP.cjs"),h=require("./index-DXQ-7kNJ.cjs"),z=require("./index-WIv2ndLu.cjs"),l=require("./index-BGiGvaq8.cjs"),L=require("./index-Ce3QBKyj.cjs"),O=require("./index-IKJMQref.cjs"),_=require("./index-DQvx1rG_.cjs"),G=require("./utils-DoxiiusW.cjs");function K(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,r.get?r:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const c=K($);var C="Popover",[b]=I.createContextScope(C,[l.createPopperScope]),P=l.createPopperScope(),[U,u]=b(C),w=e=>{const{__scopePopover:t,children:o,open:r,defaultOpen:n,onOpenChange:s,modal:i=!1}=e,p=P(t),x=c.useRef(null),[m,g]=c.useState(!1),[R,d]=f.useControllableState({prop:r,defaultProp:n??!1,onChange:s,caller:C});return a.jsxRuntimeExports.jsx(l.Root2,{...p,children:a.jsxRuntimeExports.jsx(U,{scope:t,contentId:z.useId(),triggerRef:x,open:R,onOpenChange:d,onOpenToggle:c.useCallback(()=>d(j=>!j),[d]),hasCustomAnchor:m,onCustomAnchorAdd:c.useCallback(()=>g(!0),[]),onCustomAnchorRemove:c.useCallback(()=>g(!1),[]),modal:i,children:o})})};w.displayName=C;var N="PopoverAnchor",S=c.forwardRef((e,t)=>{const{__scopePopover:o,...r}=e,n=u(N,o),s=P(o),{onCustomAnchorAdd:i,onCustomAnchorRemove:p}=n;return c.useEffect(()=>(i(),()=>p()),[i,p]),a.jsxRuntimeExports.jsx(l.Anchor,{...s,...r,ref:t})});S.displayName=N;var y="PopoverTrigger",F=c.forwardRef((e,t)=>{const{__scopePopover:o,...r}=e,n=u(y,o),s=P(o),i=E.useComposedRefs(t,n.triggerRef),p=a.jsxRuntimeExports.jsx(_.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":q(n.open),...r,ref:i,onClick:f.composeEventHandlers(e.onClick,n.onOpenToggle)});return n.hasCustomAnchor?p:a.jsxRuntimeExports.jsx(l.Anchor,{asChild:!0,...s,children:p})});F.displayName=y;var A="PopoverPortal",[V,W]=b(A,{forceMount:void 0}),D=e=>{const{__scopePopover:t,forceMount:o,children:r,container:n}=e,s=u(A,t);return a.jsxRuntimeExports.jsx(V,{scope:t,forceMount:o,children:a.jsxRuntimeExports.jsx(O.Presence,{present:o||s.open,children:a.jsxRuntimeExports.jsx(L.Portal,{asChild:!0,container:n,children:r})})})};D.displayName=A;var v="PopoverContent",M=c.forwardRef((e,t)=>{const o=W(v,e.__scopePopover),{forceMount:r=o.forceMount,...n}=e,s=u(v,e.__scopePopover);return a.jsxRuntimeExports.jsx(O.Presence,{present:r||s.open,children:s.modal?a.jsxRuntimeExports.jsx(B,{...n,ref:t}):a.jsxRuntimeExports.jsx(J,{...n,ref:t})})});M.displayName=v;var Z=E.createSlot("PopoverContent.RemoveScroll"),B=c.forwardRef((e,t)=>{const o=u(v,e.__scopePopover),r=c.useRef(null),n=E.useComposedRefs(t,r),s=c.useRef(!1);return c.useEffect(()=>{const i=r.current;if(i)return h.hideOthers(i)},[]),a.jsxRuntimeExports.jsx(h.ReactRemoveScroll,{as:Z,allowPinchZoom:!0,children:a.jsxRuntimeExports.jsx(T,{...e,ref:n,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:f.composeEventHandlers(e.onCloseAutoFocus,i=>{i.preventDefault(),s.current||o.triggerRef.current?.focus()}),onPointerDownOutside:f.composeEventHandlers(e.onPointerDownOutside,i=>{const p=i.detail.originalEvent,x=p.button===0&&p.ctrlKey===!0,m=p.button===2||x;s.current=m},{checkForDefaultPrevented:!1}),onFocusOutside:f.composeEventHandlers(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),J=c.forwardRef((e,t)=>{const o=u(v,e.__scopePopover),r=c.useRef(!1),n=c.useRef(!1);return a.jsxRuntimeExports.jsx(T,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||o.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,n.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(n.current=!0));const i=s.target;o.triggerRef.current?.contains(i)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&n.current&&s.preventDefault()}})}),T=c.forwardRef((e,t)=>{const{__scopePopover:o,trapFocus:r,onOpenAutoFocus:n,onCloseAutoFocus:s,disableOutsidePointerEvents:i,onEscapeKeyDown:p,onPointerDownOutside:x,onFocusOutside:m,onInteractOutside:g,...R}=e,d=u(v,o),j=P(o);return h.useFocusGuards(),a.jsxRuntimeExports.jsx(h.FocusScope,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:n,onUnmountAutoFocus:s,children:a.jsxRuntimeExports.jsx(H.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:g,onEscapeKeyDown:p,onPointerDownOutside:x,onFocusOutside:m,onDismiss:()=>d.onOpenChange(!1),children:a.jsxRuntimeExports.jsx(l.Content,{"data-state":q(d.open),role:"dialog",id:d.contentId,...j,...R,ref:t,style:{...R.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),k="PopoverClose",Q=c.forwardRef((e,t)=>{const{__scopePopover:o,...r}=e,n=u(k,o);return a.jsxRuntimeExports.jsx(_.Primitive.button,{type:"button",...r,ref:t,onClick:f.composeEventHandlers(e.onClick,()=>n.onOpenChange(!1))})});Q.displayName=k;var X="PopoverArrow",Y=c.forwardRef((e,t)=>{const{__scopePopover:o,...r}=e,n=P(o);return a.jsxRuntimeExports.jsx(l.Arrow,{...n,...r,ref:t})});Y.displayName=X;function q(e){return e?"open":"closed"}var ee=w,oe=S,te=F,re=D,ne=M;function se({...e}){return a.jsxRuntimeExports.jsx(ee,{"data-slot":"popover",...e})}function ae({...e}){return a.jsxRuntimeExports.jsx(te,{"data-slot":"popover-trigger",...e})}function ie({className:e,align:t="center",sideOffset:o=4,...r}){return a.jsxRuntimeExports.jsx(re,{children:a.jsxRuntimeExports.jsx(ne,{"data-slot":"popover-content",align:t,sideOffset:o,className:G.cn("adm:bg-popover adm:text-popover-foreground adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0 adm:data-[state=open]:fade-in-0 adm:data-[state=closed]:zoom-out-95 adm:data-[state=open]:zoom-in-95 adm:data-[side=bottom]:slide-in-from-top-2 adm:data-[side=left]:slide-in-from-right-2 adm:data-[side=right]:slide-in-from-left-2 adm:data-[side=top]:slide-in-from-bottom-2 adm:z-50 adm:w-72 adm:origin-(--radix-popover-content-transform-origin) adm:rounded-md adm:border adm:p-4 adm:shadow-md adm:outline-hidden",e),...r})})}function ce({...e}){return a.jsxRuntimeExports.jsx(oe,{"data-slot":"popover-anchor",...e})}exports.Popover=se;exports.PopoverAnchor=ce;exports.PopoverContent=ie;exports.PopoverTrigger=ae;
1
+ "use strict";const a=require("./jsx-runtime-BB_1_6y_.cjs"),$=require("react"),f=require("./index-BWaO7kQK.cjs"),E=require("./index-BKbK2GzY.cjs"),I=require("./index-cwZN7ZY3.cjs"),H=require("./index-VIUqZjyP.cjs"),h=require("./index-DXQ-7kNJ.cjs"),z=require("./index-WIv2ndLu.cjs"),l=require("./index-BGiGvaq8.cjs"),L=require("./index-Ce3QBKyj.cjs"),O=require("./index-IKJMQref.cjs"),_=require("./index-DQvx1rG_.cjs"),G=require("./utils-DoxiiusW.cjs");function K(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,r.get?r:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const c=K($);var C="Popover",[b]=I.createContextScope(C,[l.createPopperScope]),P=l.createPopperScope(),[U,u]=b(C),w=e=>{const{__scopePopover:t,children:o,open:r,defaultOpen:n,onOpenChange:s,modal:i=!1}=e,p=P(t),x=c.useRef(null),[m,g]=c.useState(!1),[R,d]=f.useControllableState({prop:r,defaultProp:n??!1,onChange:s,caller:C});return a.jsxRuntimeExports.jsx(l.Root2,{...p,children:a.jsxRuntimeExports.jsx(U,{scope:t,contentId:z.useId(),triggerRef:x,open:R,onOpenChange:d,onOpenToggle:c.useCallback(()=>d(j=>!j),[d]),hasCustomAnchor:m,onCustomAnchorAdd:c.useCallback(()=>g(!0),[]),onCustomAnchorRemove:c.useCallback(()=>g(!1),[]),modal:i,children:o})})};w.displayName=C;var N="PopoverAnchor",S=c.forwardRef((e,t)=>{const{__scopePopover:o,...r}=e,n=u(N,o),s=P(o),{onCustomAnchorAdd:i,onCustomAnchorRemove:p}=n;return c.useEffect(()=>(i(),()=>p()),[i,p]),a.jsxRuntimeExports.jsx(l.Anchor,{...s,...r,ref:t})});S.displayName=N;var y="PopoverTrigger",F=c.forwardRef((e,t)=>{const{__scopePopover:o,...r}=e,n=u(y,o),s=P(o),i=E.useComposedRefs(t,n.triggerRef),p=a.jsxRuntimeExports.jsx(_.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":q(n.open),...r,ref:i,onClick:f.composeEventHandlers(e.onClick,n.onOpenToggle)});return n.hasCustomAnchor?p:a.jsxRuntimeExports.jsx(l.Anchor,{asChild:!0,...s,children:p})});F.displayName=y;var A="PopoverPortal",[V,W]=b(A,{forceMount:void 0}),D=e=>{const{__scopePopover:t,forceMount:o,children:r,container:n}=e,s=u(A,t);return a.jsxRuntimeExports.jsx(V,{scope:t,forceMount:o,children:a.jsxRuntimeExports.jsx(O.Presence,{present:o||s.open,children:a.jsxRuntimeExports.jsx(L.Portal,{asChild:!0,container:n,children:r})})})};D.displayName=A;var v="PopoverContent",M=c.forwardRef((e,t)=>{const o=W(v,e.__scopePopover),{forceMount:r=o.forceMount,...n}=e,s=u(v,e.__scopePopover);return a.jsxRuntimeExports.jsx(O.Presence,{present:r||s.open,children:s.modal?a.jsxRuntimeExports.jsx(B,{...n,ref:t}):a.jsxRuntimeExports.jsx(J,{...n,ref:t})})});M.displayName=v;var Z=E.createSlot("PopoverContent.RemoveScroll"),B=c.forwardRef((e,t)=>{const o=u(v,e.__scopePopover),r=c.useRef(null),n=E.useComposedRefs(t,r),s=c.useRef(!1);return c.useEffect(()=>{const i=r.current;if(i)return h.hideOthers(i)},[]),a.jsxRuntimeExports.jsx(h.ReactRemoveScroll,{as:Z,allowPinchZoom:!0,children:a.jsxRuntimeExports.jsx(T,{...e,ref:n,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:f.composeEventHandlers(e.onCloseAutoFocus,i=>{i.preventDefault(),s.current||o.triggerRef.current?.focus()}),onPointerDownOutside:f.composeEventHandlers(e.onPointerDownOutside,i=>{const p=i.detail.originalEvent,x=p.button===0&&p.ctrlKey===!0,m=p.button===2||x;s.current=m},{checkForDefaultPrevented:!1}),onFocusOutside:f.composeEventHandlers(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),J=c.forwardRef((e,t)=>{const o=u(v,e.__scopePopover),r=c.useRef(!1),n=c.useRef(!1);return a.jsxRuntimeExports.jsx(T,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||o.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,n.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(n.current=!0));const i=s.target;o.triggerRef.current?.contains(i)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&n.current&&s.preventDefault()}})}),T=c.forwardRef((e,t)=>{const{__scopePopover:o,trapFocus:r,onOpenAutoFocus:n,onCloseAutoFocus:s,disableOutsidePointerEvents:i,onEscapeKeyDown:p,onPointerDownOutside:x,onFocusOutside:m,onInteractOutside:g,...R}=e,d=u(v,o),j=P(o);return h.useFocusGuards(),a.jsxRuntimeExports.jsx(h.FocusScope,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:n,onUnmountAutoFocus:s,children:a.jsxRuntimeExports.jsx(H.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:g,onEscapeKeyDown:p,onPointerDownOutside:x,onFocusOutside:m,onDismiss:()=>d.onOpenChange(!1),children:a.jsxRuntimeExports.jsx(l.Content,{"data-state":q(d.open),role:"dialog",id:d.contentId,...j,...R,ref:t,style:{...R.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),k="PopoverClose",Q=c.forwardRef((e,t)=>{const{__scopePopover:o,...r}=e,n=u(k,o);return a.jsxRuntimeExports.jsx(_.Primitive.button,{type:"button",...r,ref:t,onClick:f.composeEventHandlers(e.onClick,()=>n.onOpenChange(!1))})});Q.displayName=k;var X="PopoverArrow",Y=c.forwardRef((e,t)=>{const{__scopePopover:o,...r}=e,n=P(o);return a.jsxRuntimeExports.jsx(l.Arrow,{...n,...r,ref:t})});Y.displayName=X;function q(e){return e?"open":"closed"}var ee=w,oe=S,te=F,re=D,ne=M;function se({...e}){return a.jsxRuntimeExports.jsx(ee,{"data-slot":"popover",...e})}function ae({...e}){return a.jsxRuntimeExports.jsx(te,{"data-slot":"popover-trigger",...e})}function ie({className:e,align:t="center",sideOffset:o=4,...r}){return a.jsxRuntimeExports.jsx(re,{children:a.jsxRuntimeExports.jsx(ne,{"data-slot":"popover-content",align:t,sideOffset:o,className:G.cn("adm:bg-popover adm:text-popover-foreground adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0 adm:data-[state=open]:fade-in-0 adm:data-[state=closed]:zoom-out-95 adm:data-[state=open]:zoom-in-95 adm:data-[side=bottom]:slide-in-from-top-2 adm:data-[side=left]:slide-in-from-right-2 adm:data-[side=right]:slide-in-from-left-2 adm:data-[side=top]:slide-in-from-bottom-2 adm:z-50 adm:w-72 adm:origin-(--radix-popover-content-transform-origin) adm:rounded-md adm:border adm:p-4 adm:shadow-xs adm:outline-hidden",e),...r})})}function ce({...e}){return a.jsxRuntimeExports.jsx(oe,{"data-slot":"popover-anchor",...e})}exports.Popover=se;exports.PopoverAnchor=ce;exports.PopoverContent=ie;exports.PopoverTrigger=ae;
package/dist/popover.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./popover-BBXe2myL.cjs");exports.Popover=o.Popover;exports.PopoverAnchor=o.PopoverAnchor;exports.PopoverContent=o.PopoverContent;exports.PopoverTrigger=o.PopoverTrigger;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./popover-CMTsAwCP.cjs");exports.Popover=o.Popover;exports.PopoverAnchor=o.PopoverAnchor;exports.PopoverContent=o.PopoverContent;exports.PopoverTrigger=o.PopoverTrigger;
package/dist/popover.js CHANGED
@@ -1,4 +1,4 @@
1
- import { P as e, c as a, b as p, a as P } from "./popover-DNiRNCdn.js";
1
+ import { P as e, c as a, b as p, a as P } from "./popover-C9LfsD8S.js";
2
2
  export {
3
3
  e as Popover,
4
4
  a as PopoverAnchor,
package/dist/select.cjs CHANGED
@@ -3,4 +3,4 @@
3
3
  *
4
4
  * This source code is licensed under the ISC license.
5
5
  * See the LICENSE file in the root directory of this source tree.
6
- */const St=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Et=gt.createLucideIcon("chevron-up",St);var wt=[" ","Enter","ArrowUp","ArrowDown"],Rt=[" ","Enter"],Q="Select",[ue,pe,Ct]=Te.createCollection(Q),[ne]=ut.createContextScope(Q,[Ct,oe.createPopperScope]),me=oe.createPopperScope(),[yt,G]=ne(Q),[jt,bt]=ne(Q),Me=t=>{const{__scopeSelect:o,children:e,open:a,defaultOpen:i,onOpenChange:u,value:s,defaultValue:c,onValueChange:l,dir:m,name:v,autoComplete:E,disabled:I,required:j,form:R}=t,d=me(o),[x,g]=r.useState(null),[f,h]=r.useState(null),[q,M]=r.useState(!1),re=Te.useDirection(m),[T,A]=y.useControllableState({prop:a,defaultProp:i??!1,onChange:u,caller:Q}),[F,X]=y.useControllableState({prop:s,defaultProp:c,onChange:l,caller:Q}),H=r.useRef(null),k=x?R||!!x.closest("form"):!0,[$,B]=r.useState(new Set),V=Array.from($).map(P=>P.props.value).join(";");return n.jsxRuntimeExports.jsx(oe.Root2,{...d,children:n.jsxRuntimeExports.jsxs(yt,{required:j,scope:o,trigger:x,onTriggerChange:g,valueNode:f,onValueNodeChange:h,valueNodeHasChildren:q,onValueNodeHasChildrenChange:M,contentId:je.useId(),value:F,onValueChange:X,open:T,onOpenChange:A,dir:re,triggerPointerDownPosRef:H,disabled:I,children:[n.jsxRuntimeExports.jsx(ue.Provider,{scope:o,children:n.jsxRuntimeExports.jsx(jt,{scope:t.__scopeSelect,onNativeOptionAdd:r.useCallback(P=>{B(L=>new Set(L).add(P))},[]),onNativeOptionRemove:r.useCallback(P=>{B(L=>{const U=new Set(L);return U.delete(P),U})},[]),children:e})}),k?n.jsxRuntimeExports.jsxs(nt,{"aria-hidden":!0,required:j,tabIndex:-1,name:v,autoComplete:E,value:F,onChange:P=>X(P.target.value),disabled:I,form:R,children:[F===void 0?n.jsxRuntimeExports.jsx("option",{value:""}):null,Array.from($)]},V):null]})})};Me.displayName=Q;var Oe="SelectTrigger",De=r.forwardRef((t,o)=>{const{__scopeSelect:e,disabled:a=!1,...i}=t,u=me(e),s=G(Oe,e),c=s.disabled||a,l=D.useComposedRefs(o,s.onTriggerChange),m=pe(e),v=r.useRef("touch"),[E,I,j]=st(d=>{const x=m().filter(h=>!h.disabled),g=x.find(h=>h.value===s.value),f=at(x,d,g);f!==void 0&&s.onValueChange(f.value)}),R=d=>{c||(s.onOpenChange(!0),j()),d&&(s.triggerPointerDownPosRef.current={x:Math.round(d.pageX),y:Math.round(d.pageY)})};return n.jsxRuntimeExports.jsx(oe.Anchor,{asChild:!0,...u,children:n.jsxRuntimeExports.jsx(N.Primitive.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":rt(s.value)?"":void 0,...i,ref:l,onClick:y.composeEventHandlers(i.onClick,d=>{d.currentTarget.focus(),v.current!=="mouse"&&R(d)}),onPointerDown:y.composeEventHandlers(i.onPointerDown,d=>{v.current=d.pointerType;const x=d.target;x.hasPointerCapture(d.pointerId)&&x.releasePointerCapture(d.pointerId),d.button===0&&d.ctrlKey===!1&&d.pointerType==="mouse"&&(R(d),d.preventDefault())}),onKeyDown:y.composeEventHandlers(i.onKeyDown,d=>{const x=E.current!=="";!(d.ctrlKey||d.altKey||d.metaKey)&&d.key.length===1&&I(d.key),!(x&&d.key===" ")&&wt.includes(d.key)&&(R(),d.preventDefault())})})})});De.displayName=Oe;var Ae="SelectValue",Le=r.forwardRef((t,o)=>{const{__scopeSelect:e,className:a,style:i,children:u,placeholder:s="",...c}=t,l=G(Ae,e),{onValueNodeHasChildrenChange:m}=l,v=u!==void 0,E=D.useComposedRefs(o,l.onValueNodeChange);return W.useLayoutEffect2(()=>{m(v)},[m,v]),n.jsxRuntimeExports.jsx(N.Primitive.span,{...c,ref:E,style:{pointerEvents:"none"},children:rt(l.value)?n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:s}):u})});Le.displayName=Ae;var It="SelectIcon",He=r.forwardRef((t,o)=>{const{__scopeSelect:e,children:a,...i}=t;return n.jsxRuntimeExports.jsx(N.Primitive.span,{"aria-hidden":!0,...i,ref:o,children:a||"▼"})});He.displayName=It;var Tt="SelectPortal",ke=t=>n.jsxRuntimeExports.jsx(mt.Portal,{asChild:!0,...t});ke.displayName=Tt;var ee="SelectContent",Be=r.forwardRef((t,o)=>{const e=G(ee,t.__scopeSelect),[a,i]=r.useState();if(W.useLayoutEffect2(()=>{i(new DocumentFragment)},[]),!e.open){const u=a;return u?Ne.createPortal(n.jsxRuntimeExports.jsx(Ve,{scope:t.__scopeSelect,children:n.jsxRuntimeExports.jsx(ue.Slot,{scope:t.__scopeSelect,children:n.jsxRuntimeExports.jsx("div",{children:t.children})})}),u):null}return n.jsxRuntimeExports.jsx(Ue,{...t,ref:o})});Be.displayName=ee;var O=10,[Ve,Y]=ne(ee),Pt="SelectContentImpl",_t=D.createSlot("SelectContent.RemoveScroll"),Ue=r.forwardRef((t,o)=>{const{__scopeSelect:e,position:a="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:u,onPointerDownOutside:s,side:c,sideOffset:l,align:m,alignOffset:v,arrowPadding:E,collisionBoundary:I,collisionPadding:j,sticky:R,hideWhenDetached:d,avoidCollisions:x,...g}=t,f=G(ee,e),[h,q]=r.useState(null),[M,re]=r.useState(null),T=D.useComposedRefs(o,p=>q(p)),[A,F]=r.useState(null),[X,H]=r.useState(null),k=pe(e),[$,B]=r.useState(!1),V=r.useRef(!1);r.useEffect(()=>{if(h)return le.hideOthers(h)},[h]),le.useFocusGuards();const P=r.useCallback(p=>{const[C,..._]=k().map(b=>b.ref.current),[S]=_.slice(-1),w=document.activeElement;for(const b of p)if(b===w||(b?.scrollIntoView({block:"nearest"}),b===C&&M&&(M.scrollTop=0),b===S&&M&&(M.scrollTop=M.scrollHeight),b?.focus(),document.activeElement!==w))return},[k,M]),L=r.useCallback(()=>P([A,h]),[P,A,h]);r.useEffect(()=>{$&&L()},[$,L]);const{onOpenChange:U,triggerPointerDownPosRef:z}=f;r.useEffect(()=>{if(h){let p={x:0,y:0};const C=S=>{p={x:Math.abs(Math.round(S.pageX)-(z.current?.x??0)),y:Math.abs(Math.round(S.pageY)-(z.current?.y??0))}},_=S=>{p.x<=10&&p.y<=10?S.preventDefault():h.contains(S.target)||U(!1),document.removeEventListener("pointermove",C),z.current=null};return z.current!==null&&(document.addEventListener("pointermove",C),document.addEventListener("pointerup",_,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",C),document.removeEventListener("pointerup",_,{capture:!0})}}},[h,U,z]),r.useEffect(()=>{const p=()=>U(!1);return window.addEventListener("blur",p),window.addEventListener("resize",p),()=>{window.removeEventListener("blur",p),window.removeEventListener("resize",p)}},[U]);const[fe,ie]=st(p=>{const C=k().filter(w=>!w.disabled),_=C.find(w=>w.ref.current===document.activeElement),S=at(C,p,_);S&&setTimeout(()=>S.ref.current.focus())}),xe=r.useCallback((p,C,_)=>{const S=!V.current&&!_;(f.value!==void 0&&f.value===C||S)&&(F(p),S&&(V.current=!0))},[f.value]),he=r.useCallback(()=>h?.focus(),[h]),te=r.useCallback((p,C,_)=>{const S=!V.current&&!_;(f.value!==void 0&&f.value===C||S)&&H(p)},[f.value]),ce=a==="popper"?Ee:qe,se=ce===Ee?{side:c,sideOffset:l,align:m,alignOffset:v,arrowPadding:E,collisionBoundary:I,collisionPadding:j,sticky:R,hideWhenDetached:d,avoidCollisions:x}:{};return n.jsxRuntimeExports.jsx(Ve,{scope:e,content:h,viewport:M,onViewportChange:re,itemRefCallback:xe,selectedItem:A,onItemLeave:he,itemTextRefCallback:te,focusSelectedItem:L,selectedItemText:X,position:a,isPositioned:$,searchRef:fe,children:n.jsxRuntimeExports.jsx(le.ReactRemoveScroll,{as:_t,allowPinchZoom:!0,children:n.jsxRuntimeExports.jsx(le.FocusScope,{asChild:!0,trapped:f.open,onMountAutoFocus:p=>{p.preventDefault()},onUnmountAutoFocus:y.composeEventHandlers(i,p=>{f.trigger?.focus({preventScroll:!0}),p.preventDefault()}),children:n.jsxRuntimeExports.jsx(pt.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:u,onPointerDownOutside:s,onFocusOutside:p=>p.preventDefault(),onDismiss:()=>f.onOpenChange(!1),children:n.jsxRuntimeExports.jsx(ce,{role:"listbox",id:f.contentId,"data-state":f.open?"open":"closed",dir:f.dir,onContextMenu:p=>p.preventDefault(),...g,...se,onPlaced:()=>B(!0),ref:T,style:{display:"flex",flexDirection:"column",outline:"none",...g.style},onKeyDown:y.composeEventHandlers(g.onKeyDown,p=>{const C=p.ctrlKey||p.altKey||p.metaKey;if(p.key==="Tab"&&p.preventDefault(),!C&&p.key.length===1&&ie(p.key),["ArrowUp","ArrowDown","Home","End"].includes(p.key)){let S=k().filter(w=>!w.disabled).map(w=>w.ref.current);if(["ArrowUp","End"].includes(p.key)&&(S=S.slice().reverse()),["ArrowUp","ArrowDown"].includes(p.key)){const w=p.target,b=S.indexOf(w);S=S.slice(b+1)}setTimeout(()=>P(S)),p.preventDefault()}})})})})})})});Ue.displayName=Pt;var Nt="SelectItemAlignedPosition",qe=r.forwardRef((t,o)=>{const{__scopeSelect:e,onPlaced:a,...i}=t,u=G(ee,e),s=Y(ee,e),[c,l]=r.useState(null),[m,v]=r.useState(null),E=D.useComposedRefs(o,T=>v(T)),I=pe(e),j=r.useRef(!1),R=r.useRef(!0),{viewport:d,selectedItem:x,selectedItemText:g,focusSelectedItem:f}=s,h=r.useCallback(()=>{if(u.trigger&&u.valueNode&&c&&m&&d&&x&&g){const T=u.trigger.getBoundingClientRect(),A=m.getBoundingClientRect(),F=u.valueNode.getBoundingClientRect(),X=g.getBoundingClientRect();if(u.dir!=="rtl"){const w=X.left-A.left,b=F.left-w,Z=T.left-b,J=T.width+Z,ve=Math.max(J,A.width),ge=window.innerWidth-O,Se=Ie.clamp(b,[O,Math.max(O,ge-ve)]);c.style.minWidth=J+"px",c.style.left=Se+"px"}else{const w=A.right-X.right,b=window.innerWidth-F.right-w,Z=window.innerWidth-T.right-b,J=T.width+Z,ve=Math.max(J,A.width),ge=window.innerWidth-O,Se=Ie.clamp(b,[O,Math.max(O,ge-ve)]);c.style.minWidth=J+"px",c.style.right=Se+"px"}const H=I(),k=window.innerHeight-O*2,$=d.scrollHeight,B=window.getComputedStyle(m),V=parseInt(B.borderTopWidth,10),P=parseInt(B.paddingTop,10),L=parseInt(B.borderBottomWidth,10),U=parseInt(B.paddingBottom,10),z=V+P+$+U+L,fe=Math.min(x.offsetHeight*5,z),ie=window.getComputedStyle(d),xe=parseInt(ie.paddingTop,10),he=parseInt(ie.paddingBottom,10),te=T.top+T.height/2-O,ce=k-te,se=x.offsetHeight/2,p=x.offsetTop+se,C=V+P+p,_=z-C;if(C<=te){const w=H.length>0&&x===H[H.length-1].ref.current;c.style.bottom="0px";const b=m.clientHeight-d.offsetTop-d.offsetHeight,Z=Math.max(ce,se+(w?he:0)+b+L),J=C+Z;c.style.height=J+"px"}else{const w=H.length>0&&x===H[0].ref.current;c.style.top="0px";const Z=Math.max(te,V+d.offsetTop+(w?xe:0)+se)+_;c.style.height=Z+"px",d.scrollTop=C-te+d.offsetTop}c.style.margin=`${O}px 0`,c.style.minHeight=fe+"px",c.style.maxHeight=k+"px",a?.(),requestAnimationFrame(()=>j.current=!0)}},[I,u.trigger,u.valueNode,c,m,d,x,g,u.dir,a]);W.useLayoutEffect2(()=>h(),[h]);const[q,M]=r.useState();W.useLayoutEffect2(()=>{m&&M(window.getComputedStyle(m).zIndex)},[m]);const re=r.useCallback(T=>{T&&R.current===!0&&(h(),f?.(),R.current=!1)},[h,f]);return n.jsxRuntimeExports.jsx(Ot,{scope:e,contentWrapper:c,shouldExpandOnScrollRef:j,onScrollButtonChange:re,children:n.jsxRuntimeExports.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:q},children:n.jsxRuntimeExports.jsx(N.Primitive.div,{...i,ref:E,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});qe.displayName=Nt;var Mt="SelectPopperPosition",Ee=r.forwardRef((t,o)=>{const{__scopeSelect:e,align:a="start",collisionPadding:i=O,...u}=t,s=me(e);return n.jsxRuntimeExports.jsx(oe.Content,{...s,...u,ref:o,align:a,collisionPadding:i,style:{boxSizing:"border-box",...u.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)"}})});Ee.displayName=Mt;var[Ot,be]=ne(ee,{}),we="SelectViewport",Fe=r.forwardRef((t,o)=>{const{__scopeSelect:e,nonce:a,...i}=t,u=Y(we,e),s=be(we,e),c=D.useComposedRefs(o,u.onViewportChange),l=r.useRef(0);return n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[n.jsxRuntimeExports.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:a}),n.jsxRuntimeExports.jsx(ue.Slot,{scope:e,children:n.jsxRuntimeExports.jsx(N.Primitive.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:y.composeEventHandlers(i.onScroll,m=>{const v=m.currentTarget,{contentWrapper:E,shouldExpandOnScrollRef:I}=s;if(I?.current&&E){const j=Math.abs(l.current-v.scrollTop);if(j>0){const R=window.innerHeight-O*2,d=parseFloat(E.style.minHeight),x=parseFloat(E.style.height),g=Math.max(d,x);if(g<R){const f=g+j,h=Math.min(R,f),q=f-h;E.style.height=h+"px",E.style.bottom==="0px"&&(v.scrollTop=q>0?q:0,E.style.justifyContent="flex-end")}}}l.current=v.scrollTop})})})]})});Fe.displayName=we;var $e="SelectGroup",[Dt,At]=ne($e),ze=r.forwardRef((t,o)=>{const{__scopeSelect:e,...a}=t,i=je.useId();return n.jsxRuntimeExports.jsx(Dt,{scope:e,id:i,children:n.jsxRuntimeExports.jsx(N.Primitive.div,{role:"group","aria-labelledby":i,...a,ref:o})})});ze.displayName=$e;var We="SelectLabel",Ke=r.forwardRef((t,o)=>{const{__scopeSelect:e,...a}=t,i=At(We,e);return n.jsxRuntimeExports.jsx(N.Primitive.div,{id:i.id,...a,ref:o})});Ke.displayName=We;var de="SelectItem",[Lt,Ge]=ne(de),Ye=r.forwardRef((t,o)=>{const{__scopeSelect:e,value:a,disabled:i=!1,textValue:u,...s}=t,c=G(de,e),l=Y(de,e),m=c.value===a,[v,E]=r.useState(u??""),[I,j]=r.useState(!1),R=D.useComposedRefs(o,f=>l.itemRefCallback?.(f,a,i)),d=je.useId(),x=r.useRef("touch"),g=()=>{i||(c.onValueChange(a),c.onOpenChange(!1))};if(a==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return n.jsxRuntimeExports.jsx(Lt,{scope:e,value:a,disabled:i,textId:d,isSelected:m,onItemTextChange:r.useCallback(f=>{E(h=>h||(f?.textContent??"").trim())},[]),children:n.jsxRuntimeExports.jsx(ue.ItemSlot,{scope:e,value:a,disabled:i,textValue:v,children:n.jsxRuntimeExports.jsx(N.Primitive.div,{role:"option","aria-labelledby":d,"data-highlighted":I?"":void 0,"aria-selected":m&&I,"data-state":m?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...s,ref:R,onFocus:y.composeEventHandlers(s.onFocus,()=>j(!0)),onBlur:y.composeEventHandlers(s.onBlur,()=>j(!1)),onClick:y.composeEventHandlers(s.onClick,()=>{x.current!=="mouse"&&g()}),onPointerUp:y.composeEventHandlers(s.onPointerUp,()=>{x.current==="mouse"&&g()}),onPointerDown:y.composeEventHandlers(s.onPointerDown,f=>{x.current=f.pointerType}),onPointerMove:y.composeEventHandlers(s.onPointerMove,f=>{x.current=f.pointerType,i?l.onItemLeave?.():x.current==="mouse"&&f.currentTarget.focus({preventScroll:!0})}),onPointerLeave:y.composeEventHandlers(s.onPointerLeave,f=>{f.currentTarget===document.activeElement&&l.onItemLeave?.()}),onKeyDown:y.composeEventHandlers(s.onKeyDown,f=>{l.searchRef?.current!==""&&f.key===" "||(Rt.includes(f.key)&&g(),f.key===" "&&f.preventDefault())})})})})});Ye.displayName=de;var ae="SelectItemText",Xe=r.forwardRef((t,o)=>{const{__scopeSelect:e,className:a,style:i,...u}=t,s=G(ae,e),c=Y(ae,e),l=Ge(ae,e),m=bt(ae,e),[v,E]=r.useState(null),I=D.useComposedRefs(o,g=>E(g),l.onItemTextChange,g=>c.itemTextRefCallback?.(g,l.value,l.disabled)),j=v?.textContent,R=r.useMemo(()=>n.jsxRuntimeExports.jsx("option",{value:l.value,disabled:l.disabled,children:j},l.value),[l.disabled,l.value,j]),{onNativeOptionAdd:d,onNativeOptionRemove:x}=m;return W.useLayoutEffect2(()=>(d(R),()=>x(R)),[d,x,R]),n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[n.jsxRuntimeExports.jsx(N.Primitive.span,{id:l.textId,...u,ref:I}),l.isSelected&&s.valueNode&&!s.valueNodeHasChildren?Ne.createPortal(u.children,s.valueNode):null]})});Xe.displayName=ae;var Ze="SelectItemIndicator",Je=r.forwardRef((t,o)=>{const{__scopeSelect:e,...a}=t;return Ge(Ze,e).isSelected?n.jsxRuntimeExports.jsx(N.Primitive.span,{"aria-hidden":!0,...a,ref:o}):null});Je.displayName=Ze;var Re="SelectScrollUpButton",Qe=r.forwardRef((t,o)=>{const e=Y(Re,t.__scopeSelect),a=be(Re,t.__scopeSelect),[i,u]=r.useState(!1),s=D.useComposedRefs(o,a.onScrollButtonChange);return W.useLayoutEffect2(()=>{if(e.viewport&&e.isPositioned){let c=function(){const m=l.scrollTop>0;u(m)};const l=e.viewport;return c(),l.addEventListener("scroll",c),()=>l.removeEventListener("scroll",c)}},[e.viewport,e.isPositioned]),i?n.jsxRuntimeExports.jsx(tt,{...t,ref:s,onAutoScroll:()=>{const{viewport:c,selectedItem:l}=e;c&&l&&(c.scrollTop=c.scrollTop-l.offsetHeight)}}):null});Qe.displayName=Re;var Ce="SelectScrollDownButton",et=r.forwardRef((t,o)=>{const e=Y(Ce,t.__scopeSelect),a=be(Ce,t.__scopeSelect),[i,u]=r.useState(!1),s=D.useComposedRefs(o,a.onScrollButtonChange);return W.useLayoutEffect2(()=>{if(e.viewport&&e.isPositioned){let c=function(){const m=l.scrollHeight-l.clientHeight,v=Math.ceil(l.scrollTop)<m;u(v)};const l=e.viewport;return c(),l.addEventListener("scroll",c),()=>l.removeEventListener("scroll",c)}},[e.viewport,e.isPositioned]),i?n.jsxRuntimeExports.jsx(tt,{...t,ref:s,onAutoScroll:()=>{const{viewport:c,selectedItem:l}=e;c&&l&&(c.scrollTop=c.scrollTop+l.offsetHeight)}}):null});et.displayName=Ce;var tt=r.forwardRef((t,o)=>{const{__scopeSelect:e,onAutoScroll:a,...i}=t,u=Y("SelectScrollButton",e),s=r.useRef(null),c=pe(e),l=r.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return r.useEffect(()=>()=>l(),[l]),W.useLayoutEffect2(()=>{c().find(v=>v.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[c]),n.jsxRuntimeExports.jsx(N.Primitive.div,{"aria-hidden":!0,...i,ref:o,style:{flexShrink:0,...i.style},onPointerDown:y.composeEventHandlers(i.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(a,50))}),onPointerMove:y.composeEventHandlers(i.onPointerMove,()=>{u.onItemLeave?.(),s.current===null&&(s.current=window.setInterval(a,50))}),onPointerLeave:y.composeEventHandlers(i.onPointerLeave,()=>{l()})})}),Ht="SelectSeparator",ot=r.forwardRef((t,o)=>{const{__scopeSelect:e,...a}=t;return n.jsxRuntimeExports.jsx(N.Primitive.div,{"aria-hidden":!0,...a,ref:o})});ot.displayName=Ht;var ye="SelectArrow",kt=r.forwardRef((t,o)=>{const{__scopeSelect:e,...a}=t,i=me(e),u=G(ye,e),s=Y(ye,e);return u.open&&s.position==="popper"?n.jsxRuntimeExports.jsx(oe.Arrow,{...i,...a,ref:o}):null});kt.displayName=ye;var Bt="SelectBubbleInput",nt=r.forwardRef(({__scopeSelect:t,value:o,...e},a)=>{const i=r.useRef(null),u=D.useComposedRefs(a,i),s=xt.usePrevious(o);return r.useEffect(()=>{const c=i.current;if(!c)return;const l=window.HTMLSelectElement.prototype,v=Object.getOwnPropertyDescriptor(l,"value").set;if(s!==o&&v){const E=new Event("change",{bubbles:!0});v.call(c,o),c.dispatchEvent(E)}},[s,o]),n.jsxRuntimeExports.jsx(N.Primitive.select,{...e,style:{...ht.VISUALLY_HIDDEN_STYLES,...e.style},ref:u,defaultValue:o})});nt.displayName=Bt;function rt(t){return t===""||t===void 0}function st(t){const o=ft.useCallbackRef(t),e=r.useRef(""),a=r.useRef(0),i=r.useCallback(s=>{const c=e.current+s;o(c),(function l(m){e.current=m,window.clearTimeout(a.current),m!==""&&(a.current=window.setTimeout(()=>l(""),1e3))})(c)},[o]),u=r.useCallback(()=>{e.current="",window.clearTimeout(a.current)},[]);return r.useEffect(()=>()=>window.clearTimeout(a.current),[]),[e,i,u]}function at(t,o,e){const i=o.length>1&&Array.from(o).every(m=>m===o[0])?o[0]:o,u=e?t.indexOf(e):-1;let s=Vt(t,Math.max(u,0));i.length===1&&(s=s.filter(m=>m!==e));const l=s.find(m=>m.textValue.toLowerCase().startsWith(i.toLowerCase()));return l!==e?l:void 0}function Vt(t,o){return t.map((e,a)=>t[(o+a)%t.length])}var Ut=Me,qt=De,Ft=Le,$t=He,zt=ke,Wt=Be,Kt=Fe,Gt=ze,Yt=Ke,Xt=Ye,Zt=Xe,Jt=Je,Qt=Qe,eo=et,to=ot;function oo({...t}){return n.jsxRuntimeExports.jsx(Ut,{"data-slot":"select",...t})}function no({...t}){return n.jsxRuntimeExports.jsx(Gt,{"data-slot":"select-group",...t})}function ro({...t}){return n.jsxRuntimeExports.jsx(Ft,{"data-slot":"select-value",...t})}function so({className:t,size:o="default",children:e,...a}){return n.jsxRuntimeExports.jsxs(qt,{"data-slot":"select-trigger","data-size":o,className:K.cn("adm:border-input adm:data-[placeholder]:text-muted-foreground adm:[&_svg:not([class*=text-])]:text-muted-foreground adm:focus-visible:border-ring adm:focus-visible:ring-ring/50 adm:aria-invalid:ring-destructive/20 adm:dark:aria-invalid:ring-destructive/40 adm:aria-invalid:border-destructive adm:dark:bg-input/30 adm:dark:hover:bg-input/50 adm:flex adm:w-fit adm:items-center adm:justify-between adm:gap-2 adm:rounded-md adm:border adm:bg-transparent adm:px-3 adm:py-2 adm:text-sm adm:whitespace-nowrap adm:shadow-xs adm:transition-[color,box-shadow] adm:outline-none adm:focus-visible:ring-[3px] adm:disabled:cursor-not-allowed adm:disabled:opacity-50 adm:data-[size=default]:h-9 adm:data-[size=sm]:h-8 adm:*:data-[slot=select-value]:line-clamp-1 adm:*:data-[slot=select-value]:flex adm:*:data-[slot=select-value]:items-center adm:*:data-[slot=select-value]:gap-2 adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0 adm:[&_svg:not([class*=size-])]:size-4",t),...a,children:[e,n.jsxRuntimeExports.jsx($t,{asChild:!0,children:n.jsxRuntimeExports.jsx(Pe.ChevronDown,{className:"adm:size-4 adm:opacity-50"})})]})}function ao({className:t,children:o,position:e="popper",align:a="center",...i}){return n.jsxRuntimeExports.jsx(zt,{children:n.jsxRuntimeExports.jsxs(Wt,{"data-slot":"select-content",className:K.cn("adm:bg-popover adm:text-popover-foreground adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0 adm:data-[state=open]:fade-in-0 adm:data-[state=closed]:zoom-out-95 adm:data-[state=open]:zoom-in-95 adm:data-[side=bottom]:slide-in-from-top-2 adm:data-[side=left]:slide-in-from-right-2 adm:data-[side=right]:slide-in-from-left-2 adm:data-[side=top]:slide-in-from-bottom-2 adm:relative adm:z-50 adm:max-h-(--radix-select-content-available-height) adm:min-w-[8rem] adm:origin-(--radix-select-content-transform-origin) adm:overflow-x-hidden adm:overflow-y-auto adm:rounded-md adm:border adm:shadow-md",e==="popper"&&"adm:data-[side=bottom]:translate-y-1 adm:data-[side=left]:-translate-x-1 adm:data-[side=right]:translate-x-1 adm:data-[side=top]:-translate-y-1",t),position:e,align:a,...i,children:[n.jsxRuntimeExports.jsx(it,{}),n.jsxRuntimeExports.jsx(Kt,{className:K.cn("adm:p-1",e==="popper"&&"adm:h-[var(--radix-select-trigger-height)] adm:w-full adm:min-w-[var(--radix-select-trigger-width)] adm:scroll-my-1"),children:o}),n.jsxRuntimeExports.jsx(ct,{})]})})}function io({className:t,...o}){return n.jsxRuntimeExports.jsx(Yt,{"data-slot":"select-label",className:K.cn("adm:text-muted-foreground adm:px-2 adm:py-1.5 adm:text-xs",t),...o})}function co({className:t,children:o,...e}){return n.jsxRuntimeExports.jsxs(Xt,{"data-slot":"select-item",className:K.cn("adm:focus:bg-accent adm:focus:text-accent-foreground adm:[&_svg:not([class*=text-])]:text-muted-foreground adm:relative adm:flex adm:w-full adm:cursor-default adm:items-center adm:gap-2 adm:rounded-sm adm:py-1.5 adm:pr-8 adm:pl-2 adm:text-sm adm:outline-hidden adm:select-none adm:data-[disabled]:pointer-events-none adm:data-[disabled]:opacity-50 adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0 adm:[&_svg:not([class*=size-])]:size-4 adm:*:[span]:last:flex adm:*:[span]:last:items-center adm:*:[span]:last:gap-2",t),...e,children:[n.jsxRuntimeExports.jsx("span",{className:"adm:absolute adm:right-2 adm:flex adm:size-3.5 adm:items-center adm:justify-center",children:n.jsxRuntimeExports.jsx(Jt,{children:n.jsxRuntimeExports.jsx(vt.Check,{className:"adm:size-4"})})}),n.jsxRuntimeExports.jsx(Zt,{children:o})]})}function lo({className:t,...o}){return n.jsxRuntimeExports.jsx(to,{"data-slot":"select-separator",className:K.cn("adm:bg-border adm:pointer-events-none adm:-mx-1 adm:my-1 adm:h-px",t),...o})}function it({className:t,...o}){return n.jsxRuntimeExports.jsx(Qt,{"data-slot":"select-scroll-up-button",className:K.cn("adm:flex adm:cursor-default adm:items-center adm:justify-center adm:py-1",t),...o,children:n.jsxRuntimeExports.jsx(Et,{className:"adm:size-4"})})}function ct({className:t,...o}){return n.jsxRuntimeExports.jsx(eo,{"data-slot":"select-scroll-down-button",className:K.cn("adm:flex adm:cursor-default adm:items-center adm:justify-center adm:py-1",t),...o,children:n.jsxRuntimeExports.jsx(Pe.ChevronDown,{className:"adm:size-4"})})}exports.Select=oo;exports.SelectContent=ao;exports.SelectGroup=no;exports.SelectItem=co;exports.SelectLabel=io;exports.SelectScrollDownButton=ct;exports.SelectScrollUpButton=it;exports.SelectSeparator=lo;exports.SelectTrigger=so;exports.SelectValue=ro;
6
+ */const St=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Et=gt.createLucideIcon("chevron-up",St);var wt=[" ","Enter","ArrowUp","ArrowDown"],Rt=[" ","Enter"],Q="Select",[ue,pe,Ct]=Te.createCollection(Q),[ne]=ut.createContextScope(Q,[Ct,oe.createPopperScope]),me=oe.createPopperScope(),[yt,G]=ne(Q),[jt,bt]=ne(Q),Me=t=>{const{__scopeSelect:o,children:e,open:a,defaultOpen:i,onOpenChange:u,value:s,defaultValue:c,onValueChange:l,dir:m,name:v,autoComplete:E,disabled:I,required:j,form:R}=t,d=me(o),[x,g]=r.useState(null),[f,h]=r.useState(null),[q,M]=r.useState(!1),re=Te.useDirection(m),[T,A]=y.useControllableState({prop:a,defaultProp:i??!1,onChange:u,caller:Q}),[F,X]=y.useControllableState({prop:s,defaultProp:c,onChange:l,caller:Q}),H=r.useRef(null),k=x?R||!!x.closest("form"):!0,[$,B]=r.useState(new Set),V=Array.from($).map(P=>P.props.value).join(";");return n.jsxRuntimeExports.jsx(oe.Root2,{...d,children:n.jsxRuntimeExports.jsxs(yt,{required:j,scope:o,trigger:x,onTriggerChange:g,valueNode:f,onValueNodeChange:h,valueNodeHasChildren:q,onValueNodeHasChildrenChange:M,contentId:je.useId(),value:F,onValueChange:X,open:T,onOpenChange:A,dir:re,triggerPointerDownPosRef:H,disabled:I,children:[n.jsxRuntimeExports.jsx(ue.Provider,{scope:o,children:n.jsxRuntimeExports.jsx(jt,{scope:t.__scopeSelect,onNativeOptionAdd:r.useCallback(P=>{B(L=>new Set(L).add(P))},[]),onNativeOptionRemove:r.useCallback(P=>{B(L=>{const U=new Set(L);return U.delete(P),U})},[]),children:e})}),k?n.jsxRuntimeExports.jsxs(nt,{"aria-hidden":!0,required:j,tabIndex:-1,name:v,autoComplete:E,value:F,onChange:P=>X(P.target.value),disabled:I,form:R,children:[F===void 0?n.jsxRuntimeExports.jsx("option",{value:""}):null,Array.from($)]},V):null]})})};Me.displayName=Q;var Oe="SelectTrigger",De=r.forwardRef((t,o)=>{const{__scopeSelect:e,disabled:a=!1,...i}=t,u=me(e),s=G(Oe,e),c=s.disabled||a,l=D.useComposedRefs(o,s.onTriggerChange),m=pe(e),v=r.useRef("touch"),[E,I,j]=st(d=>{const x=m().filter(h=>!h.disabled),g=x.find(h=>h.value===s.value),f=at(x,d,g);f!==void 0&&s.onValueChange(f.value)}),R=d=>{c||(s.onOpenChange(!0),j()),d&&(s.triggerPointerDownPosRef.current={x:Math.round(d.pageX),y:Math.round(d.pageY)})};return n.jsxRuntimeExports.jsx(oe.Anchor,{asChild:!0,...u,children:n.jsxRuntimeExports.jsx(N.Primitive.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":rt(s.value)?"":void 0,...i,ref:l,onClick:y.composeEventHandlers(i.onClick,d=>{d.currentTarget.focus(),v.current!=="mouse"&&R(d)}),onPointerDown:y.composeEventHandlers(i.onPointerDown,d=>{v.current=d.pointerType;const x=d.target;x.hasPointerCapture(d.pointerId)&&x.releasePointerCapture(d.pointerId),d.button===0&&d.ctrlKey===!1&&d.pointerType==="mouse"&&(R(d),d.preventDefault())}),onKeyDown:y.composeEventHandlers(i.onKeyDown,d=>{const x=E.current!=="";!(d.ctrlKey||d.altKey||d.metaKey)&&d.key.length===1&&I(d.key),!(x&&d.key===" ")&&wt.includes(d.key)&&(R(),d.preventDefault())})})})});De.displayName=Oe;var Ae="SelectValue",Le=r.forwardRef((t,o)=>{const{__scopeSelect:e,className:a,style:i,children:u,placeholder:s="",...c}=t,l=G(Ae,e),{onValueNodeHasChildrenChange:m}=l,v=u!==void 0,E=D.useComposedRefs(o,l.onValueNodeChange);return W.useLayoutEffect2(()=>{m(v)},[m,v]),n.jsxRuntimeExports.jsx(N.Primitive.span,{...c,ref:E,style:{pointerEvents:"none"},children:rt(l.value)?n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:s}):u})});Le.displayName=Ae;var It="SelectIcon",He=r.forwardRef((t,o)=>{const{__scopeSelect:e,children:a,...i}=t;return n.jsxRuntimeExports.jsx(N.Primitive.span,{"aria-hidden":!0,...i,ref:o,children:a||"▼"})});He.displayName=It;var Tt="SelectPortal",ke=t=>n.jsxRuntimeExports.jsx(mt.Portal,{asChild:!0,...t});ke.displayName=Tt;var ee="SelectContent",Be=r.forwardRef((t,o)=>{const e=G(ee,t.__scopeSelect),[a,i]=r.useState();if(W.useLayoutEffect2(()=>{i(new DocumentFragment)},[]),!e.open){const u=a;return u?Ne.createPortal(n.jsxRuntimeExports.jsx(Ve,{scope:t.__scopeSelect,children:n.jsxRuntimeExports.jsx(ue.Slot,{scope:t.__scopeSelect,children:n.jsxRuntimeExports.jsx("div",{children:t.children})})}),u):null}return n.jsxRuntimeExports.jsx(Ue,{...t,ref:o})});Be.displayName=ee;var O=10,[Ve,Y]=ne(ee),Pt="SelectContentImpl",_t=D.createSlot("SelectContent.RemoveScroll"),Ue=r.forwardRef((t,o)=>{const{__scopeSelect:e,position:a="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:u,onPointerDownOutside:s,side:c,sideOffset:l,align:m,alignOffset:v,arrowPadding:E,collisionBoundary:I,collisionPadding:j,sticky:R,hideWhenDetached:d,avoidCollisions:x,...g}=t,f=G(ee,e),[h,q]=r.useState(null),[M,re]=r.useState(null),T=D.useComposedRefs(o,p=>q(p)),[A,F]=r.useState(null),[X,H]=r.useState(null),k=pe(e),[$,B]=r.useState(!1),V=r.useRef(!1);r.useEffect(()=>{if(h)return le.hideOthers(h)},[h]),le.useFocusGuards();const P=r.useCallback(p=>{const[C,..._]=k().map(b=>b.ref.current),[S]=_.slice(-1),w=document.activeElement;for(const b of p)if(b===w||(b?.scrollIntoView({block:"nearest"}),b===C&&M&&(M.scrollTop=0),b===S&&M&&(M.scrollTop=M.scrollHeight),b?.focus(),document.activeElement!==w))return},[k,M]),L=r.useCallback(()=>P([A,h]),[P,A,h]);r.useEffect(()=>{$&&L()},[$,L]);const{onOpenChange:U,triggerPointerDownPosRef:z}=f;r.useEffect(()=>{if(h){let p={x:0,y:0};const C=S=>{p={x:Math.abs(Math.round(S.pageX)-(z.current?.x??0)),y:Math.abs(Math.round(S.pageY)-(z.current?.y??0))}},_=S=>{p.x<=10&&p.y<=10?S.preventDefault():h.contains(S.target)||U(!1),document.removeEventListener("pointermove",C),z.current=null};return z.current!==null&&(document.addEventListener("pointermove",C),document.addEventListener("pointerup",_,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",C),document.removeEventListener("pointerup",_,{capture:!0})}}},[h,U,z]),r.useEffect(()=>{const p=()=>U(!1);return window.addEventListener("blur",p),window.addEventListener("resize",p),()=>{window.removeEventListener("blur",p),window.removeEventListener("resize",p)}},[U]);const[fe,ie]=st(p=>{const C=k().filter(w=>!w.disabled),_=C.find(w=>w.ref.current===document.activeElement),S=at(C,p,_);S&&setTimeout(()=>S.ref.current.focus())}),xe=r.useCallback((p,C,_)=>{const S=!V.current&&!_;(f.value!==void 0&&f.value===C||S)&&(F(p),S&&(V.current=!0))},[f.value]),he=r.useCallback(()=>h?.focus(),[h]),te=r.useCallback((p,C,_)=>{const S=!V.current&&!_;(f.value!==void 0&&f.value===C||S)&&H(p)},[f.value]),ce=a==="popper"?Ee:qe,se=ce===Ee?{side:c,sideOffset:l,align:m,alignOffset:v,arrowPadding:E,collisionBoundary:I,collisionPadding:j,sticky:R,hideWhenDetached:d,avoidCollisions:x}:{};return n.jsxRuntimeExports.jsx(Ve,{scope:e,content:h,viewport:M,onViewportChange:re,itemRefCallback:xe,selectedItem:A,onItemLeave:he,itemTextRefCallback:te,focusSelectedItem:L,selectedItemText:X,position:a,isPositioned:$,searchRef:fe,children:n.jsxRuntimeExports.jsx(le.ReactRemoveScroll,{as:_t,allowPinchZoom:!0,children:n.jsxRuntimeExports.jsx(le.FocusScope,{asChild:!0,trapped:f.open,onMountAutoFocus:p=>{p.preventDefault()},onUnmountAutoFocus:y.composeEventHandlers(i,p=>{f.trigger?.focus({preventScroll:!0}),p.preventDefault()}),children:n.jsxRuntimeExports.jsx(pt.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:u,onPointerDownOutside:s,onFocusOutside:p=>p.preventDefault(),onDismiss:()=>f.onOpenChange(!1),children:n.jsxRuntimeExports.jsx(ce,{role:"listbox",id:f.contentId,"data-state":f.open?"open":"closed",dir:f.dir,onContextMenu:p=>p.preventDefault(),...g,...se,onPlaced:()=>B(!0),ref:T,style:{display:"flex",flexDirection:"column",outline:"none",...g.style},onKeyDown:y.composeEventHandlers(g.onKeyDown,p=>{const C=p.ctrlKey||p.altKey||p.metaKey;if(p.key==="Tab"&&p.preventDefault(),!C&&p.key.length===1&&ie(p.key),["ArrowUp","ArrowDown","Home","End"].includes(p.key)){let S=k().filter(w=>!w.disabled).map(w=>w.ref.current);if(["ArrowUp","End"].includes(p.key)&&(S=S.slice().reverse()),["ArrowUp","ArrowDown"].includes(p.key)){const w=p.target,b=S.indexOf(w);S=S.slice(b+1)}setTimeout(()=>P(S)),p.preventDefault()}})})})})})})});Ue.displayName=Pt;var Nt="SelectItemAlignedPosition",qe=r.forwardRef((t,o)=>{const{__scopeSelect:e,onPlaced:a,...i}=t,u=G(ee,e),s=Y(ee,e),[c,l]=r.useState(null),[m,v]=r.useState(null),E=D.useComposedRefs(o,T=>v(T)),I=pe(e),j=r.useRef(!1),R=r.useRef(!0),{viewport:d,selectedItem:x,selectedItemText:g,focusSelectedItem:f}=s,h=r.useCallback(()=>{if(u.trigger&&u.valueNode&&c&&m&&d&&x&&g){const T=u.trigger.getBoundingClientRect(),A=m.getBoundingClientRect(),F=u.valueNode.getBoundingClientRect(),X=g.getBoundingClientRect();if(u.dir!=="rtl"){const w=X.left-A.left,b=F.left-w,Z=T.left-b,J=T.width+Z,ve=Math.max(J,A.width),ge=window.innerWidth-O,Se=Ie.clamp(b,[O,Math.max(O,ge-ve)]);c.style.minWidth=J+"px",c.style.left=Se+"px"}else{const w=A.right-X.right,b=window.innerWidth-F.right-w,Z=window.innerWidth-T.right-b,J=T.width+Z,ve=Math.max(J,A.width),ge=window.innerWidth-O,Se=Ie.clamp(b,[O,Math.max(O,ge-ve)]);c.style.minWidth=J+"px",c.style.right=Se+"px"}const H=I(),k=window.innerHeight-O*2,$=d.scrollHeight,B=window.getComputedStyle(m),V=parseInt(B.borderTopWidth,10),P=parseInt(B.paddingTop,10),L=parseInt(B.borderBottomWidth,10),U=parseInt(B.paddingBottom,10),z=V+P+$+U+L,fe=Math.min(x.offsetHeight*5,z),ie=window.getComputedStyle(d),xe=parseInt(ie.paddingTop,10),he=parseInt(ie.paddingBottom,10),te=T.top+T.height/2-O,ce=k-te,se=x.offsetHeight/2,p=x.offsetTop+se,C=V+P+p,_=z-C;if(C<=te){const w=H.length>0&&x===H[H.length-1].ref.current;c.style.bottom="0px";const b=m.clientHeight-d.offsetTop-d.offsetHeight,Z=Math.max(ce,se+(w?he:0)+b+L),J=C+Z;c.style.height=J+"px"}else{const w=H.length>0&&x===H[0].ref.current;c.style.top="0px";const Z=Math.max(te,V+d.offsetTop+(w?xe:0)+se)+_;c.style.height=Z+"px",d.scrollTop=C-te+d.offsetTop}c.style.margin=`${O}px 0`,c.style.minHeight=fe+"px",c.style.maxHeight=k+"px",a?.(),requestAnimationFrame(()=>j.current=!0)}},[I,u.trigger,u.valueNode,c,m,d,x,g,u.dir,a]);W.useLayoutEffect2(()=>h(),[h]);const[q,M]=r.useState();W.useLayoutEffect2(()=>{m&&M(window.getComputedStyle(m).zIndex)},[m]);const re=r.useCallback(T=>{T&&R.current===!0&&(h(),f?.(),R.current=!1)},[h,f]);return n.jsxRuntimeExports.jsx(Ot,{scope:e,contentWrapper:c,shouldExpandOnScrollRef:j,onScrollButtonChange:re,children:n.jsxRuntimeExports.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:q},children:n.jsxRuntimeExports.jsx(N.Primitive.div,{...i,ref:E,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});qe.displayName=Nt;var Mt="SelectPopperPosition",Ee=r.forwardRef((t,o)=>{const{__scopeSelect:e,align:a="start",collisionPadding:i=O,...u}=t,s=me(e);return n.jsxRuntimeExports.jsx(oe.Content,{...s,...u,ref:o,align:a,collisionPadding:i,style:{boxSizing:"border-box",...u.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)"}})});Ee.displayName=Mt;var[Ot,be]=ne(ee,{}),we="SelectViewport",Fe=r.forwardRef((t,o)=>{const{__scopeSelect:e,nonce:a,...i}=t,u=Y(we,e),s=be(we,e),c=D.useComposedRefs(o,u.onViewportChange),l=r.useRef(0);return n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[n.jsxRuntimeExports.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:a}),n.jsxRuntimeExports.jsx(ue.Slot,{scope:e,children:n.jsxRuntimeExports.jsx(N.Primitive.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:y.composeEventHandlers(i.onScroll,m=>{const v=m.currentTarget,{contentWrapper:E,shouldExpandOnScrollRef:I}=s;if(I?.current&&E){const j=Math.abs(l.current-v.scrollTop);if(j>0){const R=window.innerHeight-O*2,d=parseFloat(E.style.minHeight),x=parseFloat(E.style.height),g=Math.max(d,x);if(g<R){const f=g+j,h=Math.min(R,f),q=f-h;E.style.height=h+"px",E.style.bottom==="0px"&&(v.scrollTop=q>0?q:0,E.style.justifyContent="flex-end")}}}l.current=v.scrollTop})})})]})});Fe.displayName=we;var $e="SelectGroup",[Dt,At]=ne($e),ze=r.forwardRef((t,o)=>{const{__scopeSelect:e,...a}=t,i=je.useId();return n.jsxRuntimeExports.jsx(Dt,{scope:e,id:i,children:n.jsxRuntimeExports.jsx(N.Primitive.div,{role:"group","aria-labelledby":i,...a,ref:o})})});ze.displayName=$e;var We="SelectLabel",Ke=r.forwardRef((t,o)=>{const{__scopeSelect:e,...a}=t,i=At(We,e);return n.jsxRuntimeExports.jsx(N.Primitive.div,{id:i.id,...a,ref:o})});Ke.displayName=We;var de="SelectItem",[Lt,Ge]=ne(de),Ye=r.forwardRef((t,o)=>{const{__scopeSelect:e,value:a,disabled:i=!1,textValue:u,...s}=t,c=G(de,e),l=Y(de,e),m=c.value===a,[v,E]=r.useState(u??""),[I,j]=r.useState(!1),R=D.useComposedRefs(o,f=>l.itemRefCallback?.(f,a,i)),d=je.useId(),x=r.useRef("touch"),g=()=>{i||(c.onValueChange(a),c.onOpenChange(!1))};if(a==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return n.jsxRuntimeExports.jsx(Lt,{scope:e,value:a,disabled:i,textId:d,isSelected:m,onItemTextChange:r.useCallback(f=>{E(h=>h||(f?.textContent??"").trim())},[]),children:n.jsxRuntimeExports.jsx(ue.ItemSlot,{scope:e,value:a,disabled:i,textValue:v,children:n.jsxRuntimeExports.jsx(N.Primitive.div,{role:"option","aria-labelledby":d,"data-highlighted":I?"":void 0,"aria-selected":m&&I,"data-state":m?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...s,ref:R,onFocus:y.composeEventHandlers(s.onFocus,()=>j(!0)),onBlur:y.composeEventHandlers(s.onBlur,()=>j(!1)),onClick:y.composeEventHandlers(s.onClick,()=>{x.current!=="mouse"&&g()}),onPointerUp:y.composeEventHandlers(s.onPointerUp,()=>{x.current==="mouse"&&g()}),onPointerDown:y.composeEventHandlers(s.onPointerDown,f=>{x.current=f.pointerType}),onPointerMove:y.composeEventHandlers(s.onPointerMove,f=>{x.current=f.pointerType,i?l.onItemLeave?.():x.current==="mouse"&&f.currentTarget.focus({preventScroll:!0})}),onPointerLeave:y.composeEventHandlers(s.onPointerLeave,f=>{f.currentTarget===document.activeElement&&l.onItemLeave?.()}),onKeyDown:y.composeEventHandlers(s.onKeyDown,f=>{l.searchRef?.current!==""&&f.key===" "||(Rt.includes(f.key)&&g(),f.key===" "&&f.preventDefault())})})})})});Ye.displayName=de;var ae="SelectItemText",Xe=r.forwardRef((t,o)=>{const{__scopeSelect:e,className:a,style:i,...u}=t,s=G(ae,e),c=Y(ae,e),l=Ge(ae,e),m=bt(ae,e),[v,E]=r.useState(null),I=D.useComposedRefs(o,g=>E(g),l.onItemTextChange,g=>c.itemTextRefCallback?.(g,l.value,l.disabled)),j=v?.textContent,R=r.useMemo(()=>n.jsxRuntimeExports.jsx("option",{value:l.value,disabled:l.disabled,children:j},l.value),[l.disabled,l.value,j]),{onNativeOptionAdd:d,onNativeOptionRemove:x}=m;return W.useLayoutEffect2(()=>(d(R),()=>x(R)),[d,x,R]),n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[n.jsxRuntimeExports.jsx(N.Primitive.span,{id:l.textId,...u,ref:I}),l.isSelected&&s.valueNode&&!s.valueNodeHasChildren?Ne.createPortal(u.children,s.valueNode):null]})});Xe.displayName=ae;var Ze="SelectItemIndicator",Je=r.forwardRef((t,o)=>{const{__scopeSelect:e,...a}=t;return Ge(Ze,e).isSelected?n.jsxRuntimeExports.jsx(N.Primitive.span,{"aria-hidden":!0,...a,ref:o}):null});Je.displayName=Ze;var Re="SelectScrollUpButton",Qe=r.forwardRef((t,o)=>{const e=Y(Re,t.__scopeSelect),a=be(Re,t.__scopeSelect),[i,u]=r.useState(!1),s=D.useComposedRefs(o,a.onScrollButtonChange);return W.useLayoutEffect2(()=>{if(e.viewport&&e.isPositioned){let c=function(){const m=l.scrollTop>0;u(m)};const l=e.viewport;return c(),l.addEventListener("scroll",c),()=>l.removeEventListener("scroll",c)}},[e.viewport,e.isPositioned]),i?n.jsxRuntimeExports.jsx(tt,{...t,ref:s,onAutoScroll:()=>{const{viewport:c,selectedItem:l}=e;c&&l&&(c.scrollTop=c.scrollTop-l.offsetHeight)}}):null});Qe.displayName=Re;var Ce="SelectScrollDownButton",et=r.forwardRef((t,o)=>{const e=Y(Ce,t.__scopeSelect),a=be(Ce,t.__scopeSelect),[i,u]=r.useState(!1),s=D.useComposedRefs(o,a.onScrollButtonChange);return W.useLayoutEffect2(()=>{if(e.viewport&&e.isPositioned){let c=function(){const m=l.scrollHeight-l.clientHeight,v=Math.ceil(l.scrollTop)<m;u(v)};const l=e.viewport;return c(),l.addEventListener("scroll",c),()=>l.removeEventListener("scroll",c)}},[e.viewport,e.isPositioned]),i?n.jsxRuntimeExports.jsx(tt,{...t,ref:s,onAutoScroll:()=>{const{viewport:c,selectedItem:l}=e;c&&l&&(c.scrollTop=c.scrollTop+l.offsetHeight)}}):null});et.displayName=Ce;var tt=r.forwardRef((t,o)=>{const{__scopeSelect:e,onAutoScroll:a,...i}=t,u=Y("SelectScrollButton",e),s=r.useRef(null),c=pe(e),l=r.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return r.useEffect(()=>()=>l(),[l]),W.useLayoutEffect2(()=>{c().find(v=>v.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[c]),n.jsxRuntimeExports.jsx(N.Primitive.div,{"aria-hidden":!0,...i,ref:o,style:{flexShrink:0,...i.style},onPointerDown:y.composeEventHandlers(i.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(a,50))}),onPointerMove:y.composeEventHandlers(i.onPointerMove,()=>{u.onItemLeave?.(),s.current===null&&(s.current=window.setInterval(a,50))}),onPointerLeave:y.composeEventHandlers(i.onPointerLeave,()=>{l()})})}),Ht="SelectSeparator",ot=r.forwardRef((t,o)=>{const{__scopeSelect:e,...a}=t;return n.jsxRuntimeExports.jsx(N.Primitive.div,{"aria-hidden":!0,...a,ref:o})});ot.displayName=Ht;var ye="SelectArrow",kt=r.forwardRef((t,o)=>{const{__scopeSelect:e,...a}=t,i=me(e),u=G(ye,e),s=Y(ye,e);return u.open&&s.position==="popper"?n.jsxRuntimeExports.jsx(oe.Arrow,{...i,...a,ref:o}):null});kt.displayName=ye;var Bt="SelectBubbleInput",nt=r.forwardRef(({__scopeSelect:t,value:o,...e},a)=>{const i=r.useRef(null),u=D.useComposedRefs(a,i),s=xt.usePrevious(o);return r.useEffect(()=>{const c=i.current;if(!c)return;const l=window.HTMLSelectElement.prototype,v=Object.getOwnPropertyDescriptor(l,"value").set;if(s!==o&&v){const E=new Event("change",{bubbles:!0});v.call(c,o),c.dispatchEvent(E)}},[s,o]),n.jsxRuntimeExports.jsx(N.Primitive.select,{...e,style:{...ht.VISUALLY_HIDDEN_STYLES,...e.style},ref:u,defaultValue:o})});nt.displayName=Bt;function rt(t){return t===""||t===void 0}function st(t){const o=ft.useCallbackRef(t),e=r.useRef(""),a=r.useRef(0),i=r.useCallback(s=>{const c=e.current+s;o(c),(function l(m){e.current=m,window.clearTimeout(a.current),m!==""&&(a.current=window.setTimeout(()=>l(""),1e3))})(c)},[o]),u=r.useCallback(()=>{e.current="",window.clearTimeout(a.current)},[]);return r.useEffect(()=>()=>window.clearTimeout(a.current),[]),[e,i,u]}function at(t,o,e){const i=o.length>1&&Array.from(o).every(m=>m===o[0])?o[0]:o,u=e?t.indexOf(e):-1;let s=Vt(t,Math.max(u,0));i.length===1&&(s=s.filter(m=>m!==e));const l=s.find(m=>m.textValue.toLowerCase().startsWith(i.toLowerCase()));return l!==e?l:void 0}function Vt(t,o){return t.map((e,a)=>t[(o+a)%t.length])}var Ut=Me,qt=De,Ft=Le,$t=He,zt=ke,Wt=Be,Kt=Fe,Gt=ze,Yt=Ke,Xt=Ye,Zt=Xe,Jt=Je,Qt=Qe,eo=et,to=ot;function oo({...t}){return n.jsxRuntimeExports.jsx(Ut,{"data-slot":"select",...t})}function no({...t}){return n.jsxRuntimeExports.jsx(Gt,{"data-slot":"select-group",...t})}function ro({...t}){return n.jsxRuntimeExports.jsx(Ft,{"data-slot":"select-value",...t})}function so({className:t,size:o="default",children:e,...a}){return n.jsxRuntimeExports.jsxs(qt,{"data-slot":"select-trigger","data-size":o,className:K.cn("adm:border-input adm:data-[placeholder]:text-muted-foreground adm:[&_svg:not([class*=text-])]:text-muted-foreground adm:focus-visible:border-ring adm:focus-visible:ring-ring/50 adm:aria-invalid:ring-destructive/20 adm:dark:aria-invalid:ring-destructive/40 adm:aria-invalid:border-destructive adm:dark:bg-input/30 adm:dark:hover:bg-input/50 adm:flex adm:w-fit adm:items-center adm:justify-between adm:gap-2 adm:rounded-md adm:border adm:bg-transparent adm:px-3 adm:py-2 adm:text-sm adm:whitespace-nowrap adm:shadow-xs adm:transition-[color,box-shadow] adm:outline-none adm:focus-visible:ring-[3px] adm:disabled:cursor-not-allowed adm:disabled:opacity-50 adm:data-[size=default]:h-9 adm:data-[size=sm]:h-8 adm:*:data-[slot=select-value]:line-clamp-1 adm:*:data-[slot=select-value]:flex adm:*:data-[slot=select-value]:items-center adm:*:data-[slot=select-value]:gap-2 adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0 adm:[&_svg:not([class*=size-])]:size-4",t),...a,children:[e,n.jsxRuntimeExports.jsx($t,{asChild:!0,children:n.jsxRuntimeExports.jsx(Pe.ChevronDown,{className:"adm:size-4 adm:opacity-50"})})]})}function ao({className:t,children:o,position:e="popper",align:a="center",...i}){return n.jsxRuntimeExports.jsx(zt,{children:n.jsxRuntimeExports.jsxs(Wt,{"data-slot":"select-content",className:K.cn("adm:bg-popover adm:text-popover-foreground adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0 adm:data-[state=open]:fade-in-0 adm:data-[state=closed]:zoom-out-95 adm:data-[state=open]:zoom-in-95 adm:data-[side=bottom]:slide-in-from-top-2 adm:data-[side=left]:slide-in-from-right-2 adm:data-[side=right]:slide-in-from-left-2 adm:data-[side=top]:slide-in-from-bottom-2 adm:relative adm:z-50 adm:max-h-(--radix-select-content-available-height) adm:min-w-[8rem] adm:origin-(--radix-select-content-transform-origin) adm:overflow-x-hidden adm:overflow-y-auto adm:rounded-md adm:border adm:shadow-xs",e==="popper"&&"adm:data-[side=bottom]:translate-y-1 adm:data-[side=left]:-translate-x-1 adm:data-[side=right]:translate-x-1 adm:data-[side=top]:-translate-y-1",t),position:e,align:a,...i,children:[n.jsxRuntimeExports.jsx(it,{}),n.jsxRuntimeExports.jsx(Kt,{className:K.cn("adm:p-1",e==="popper"&&"adm:h-[var(--radix-select-trigger-height)] adm:w-full adm:min-w-[var(--radix-select-trigger-width)] adm:scroll-my-1"),children:o}),n.jsxRuntimeExports.jsx(ct,{})]})})}function io({className:t,...o}){return n.jsxRuntimeExports.jsx(Yt,{"data-slot":"select-label",className:K.cn("adm:text-muted-foreground adm:px-2 adm:py-1.5 adm:text-xs",t),...o})}function co({className:t,children:o,...e}){return n.jsxRuntimeExports.jsxs(Xt,{"data-slot":"select-item",className:K.cn("adm:focus:bg-accent adm:focus:text-accent-foreground adm:[&_svg:not([class*=text-])]:text-muted-foreground adm:relative adm:flex adm:w-full adm:cursor-default adm:items-center adm:gap-2 adm:rounded-sm adm:py-1.5 adm:pr-8 adm:pl-2 adm:text-sm adm:outline-hidden adm:select-none adm:data-[disabled]:pointer-events-none adm:data-[disabled]:opacity-50 adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0 adm:[&_svg:not([class*=size-])]:size-4 adm:*:[span]:last:flex adm:*:[span]:last:items-center adm:*:[span]:last:gap-2",t),...e,children:[n.jsxRuntimeExports.jsx("span",{className:"adm:absolute adm:right-2 adm:flex adm:size-3.5 adm:items-center adm:justify-center",children:n.jsxRuntimeExports.jsx(Jt,{children:n.jsxRuntimeExports.jsx(vt.Check,{className:"adm:size-4"})})}),n.jsxRuntimeExports.jsx(Zt,{children:o})]})}function lo({className:t,...o}){return n.jsxRuntimeExports.jsx(to,{"data-slot":"select-separator",className:K.cn("adm:bg-border adm:pointer-events-none adm:-mx-1 adm:my-1 adm:h-px",t),...o})}function it({className:t,...o}){return n.jsxRuntimeExports.jsx(Qt,{"data-slot":"select-scroll-up-button",className:K.cn("adm:flex adm:cursor-default adm:items-center adm:justify-center adm:py-1",t),...o,children:n.jsxRuntimeExports.jsx(Et,{className:"adm:size-4"})})}function ct({className:t,...o}){return n.jsxRuntimeExports.jsx(eo,{"data-slot":"select-scroll-down-button",className:K.cn("adm:flex adm:cursor-default adm:items-center adm:justify-center adm:py-1",t),...o,children:n.jsxRuntimeExports.jsx(Pe.ChevronDown,{className:"adm:size-4"})})}exports.Select=oo;exports.SelectContent=ao;exports.SelectGroup=no;exports.SelectItem=co;exports.SelectLabel=io;exports.SelectScrollDownButton=ct;exports.SelectScrollUpButton=it;exports.SelectSeparator=lo;exports.SelectTrigger=so;exports.SelectValue=ro;
package/dist/select.js CHANGED
@@ -868,7 +868,7 @@ function Oo({
868
868
  {
869
869
  "data-slot": "select-content",
870
870
  className: G(
871
- "adm:bg-popover adm:text-popover-foreground adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0 adm:data-[state=open]:fade-in-0 adm:data-[state=closed]:zoom-out-95 adm:data-[state=open]:zoom-in-95 adm:data-[side=bottom]:slide-in-from-top-2 adm:data-[side=left]:slide-in-from-right-2 adm:data-[side=right]:slide-in-from-left-2 adm:data-[side=top]:slide-in-from-bottom-2 adm:relative adm:z-50 adm:max-h-(--radix-select-content-available-height) adm:min-w-[8rem] adm:origin-(--radix-select-content-transform-origin) adm:overflow-x-hidden adm:overflow-y-auto adm:rounded-md adm:border adm:shadow-md",
871
+ "adm:bg-popover adm:text-popover-foreground adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0 adm:data-[state=open]:fade-in-0 adm:data-[state=closed]:zoom-out-95 adm:data-[state=open]:zoom-in-95 adm:data-[side=bottom]:slide-in-from-top-2 adm:data-[side=left]:slide-in-from-right-2 adm:data-[side=right]:slide-in-from-left-2 adm:data-[side=top]:slide-in-from-bottom-2 adm:relative adm:z-50 adm:max-h-(--radix-select-content-available-height) adm:min-w-[8rem] adm:origin-(--radix-select-content-transform-origin) adm:overflow-x-hidden adm:overflow-y-auto adm:rounded-md adm:border adm:shadow-xs",
872
872
  e === "popper" && "adm:data-[side=bottom]:translate-y-1 adm:data-[side=left]:-translate-x-1 adm:data-[side=right]:translate-x-1 adm:data-[side=top]:-translate-y-1",
873
873
  t
874
874
  ),
@@ -51,7 +51,7 @@ function T({
51
51
  {
52
52
  "data-slot": "sheet-content",
53
53
  className: d(
54
- "adm:bg-background adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:fixed adm:z-50 adm:flex adm:flex-col adm:gap-4 adm:shadow-lg adm:transition adm:ease-in-out adm:data-[state=closed]:duration-300 adm:data-[state=open]:duration-500",
54
+ "adm:bg-background adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:fixed adm:z-50 adm:flex adm:flex-col adm:gap-4 adm:shadow-xs adm:transition adm:ease-in-out adm:data-[state=closed]:duration-300 adm:data-[state=open]:duration-500",
55
55
  o === "right" && "adm:rounded-tl-lg adm:rounded-bl-lg adm:data-[state=closed]:slide-out-to-right adm:data-[state=open]:slide-in-from-right adm:inset-y-0 adm:right-0 adm:h-full adm:w-3/4 adm:border-l adm:sm:max-w-sm",
56
56
  o === "left" && "adm:rounded-tr-lg adm:rounded-br-lg adm:data-[state=closed]:slide-out-to-left adm:data-[state=open]:slide-in-from-left adm:inset-y-0 adm:left-0 adm:h-full adm:w-3/4 adm:border-r adm:sm:max-w-sm",
57
57
  o === "top" && "adm:rounded-br-lg adm:rounded-bl-lg adm:data-[state=closed]:slide-out-to-top adm:data-[state=open]:slide-in-from-top adm:inset-x-0 adm:top-0 adm:h-auto adm:border-b",
@@ -1 +1 @@
1
- "use strict";const e=require("./jsx-runtime-BB_1_6y_.cjs");require("react");const d=require("./index-BpvjJ_T6.cjs"),s=require("./utils-DoxiiusW.cjs"),r=require("./x-CBKgg4YL.cjs");function i({...t}){return e.jsxRuntimeExports.jsx(d.Root,{"data-slot":"sheet",...t})}function l({...t}){return e.jsxRuntimeExports.jsx(d.Trigger,{"data-slot":"sheet-trigger",...t})}function u({...t}){return e.jsxRuntimeExports.jsx(d.Close,{"data-slot":"sheet-close",...t})}function x({...t}){return e.jsxRuntimeExports.jsx(d.Portal,{"data-slot":"sheet-portal",...t})}function c({className:t,...a}){return e.jsxRuntimeExports.jsx(d.Overlay,{"data-slot":"sheet-overlay",className:s.cn("adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0 adm:data-[state=open]:fade-in-0 adm:fixed adm:inset-0 adm:z-50 adm:bg-black/50",t),...a})}function h({className:t,children:a,side:o="right",showCloseButton:m=!0,...n}){return e.jsxRuntimeExports.jsxs(x,{children:[e.jsxRuntimeExports.jsx(c,{}),e.jsxRuntimeExports.jsxs(d.Content,{"data-slot":"sheet-content",className:s.cn("adm:bg-background adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:fixed adm:z-50 adm:flex adm:flex-col adm:gap-4 adm:shadow-lg adm:transition adm:ease-in-out adm:data-[state=closed]:duration-300 adm:data-[state=open]:duration-500",o==="right"&&"adm:rounded-tl-lg adm:rounded-bl-lg adm:data-[state=closed]:slide-out-to-right adm:data-[state=open]:slide-in-from-right adm:inset-y-0 adm:right-0 adm:h-full adm:w-3/4 adm:border-l adm:sm:max-w-sm",o==="left"&&"adm:rounded-tr-lg adm:rounded-br-lg adm:data-[state=closed]:slide-out-to-left adm:data-[state=open]:slide-in-from-left adm:inset-y-0 adm:left-0 adm:h-full adm:w-3/4 adm:border-r adm:sm:max-w-sm",o==="top"&&"adm:rounded-br-lg adm:rounded-bl-lg adm:data-[state=closed]:slide-out-to-top adm:data-[state=open]:slide-in-from-top adm:inset-x-0 adm:top-0 adm:h-auto adm:border-b",o==="bottom"&&"adm:rounded-tr-lg adm:rounded-tl-lg adm:data-[state=closed]:slide-out-to-bottom adm:data-[state=open]:slide-in-from-bottom adm:inset-x-0 adm:bottom-0 adm:h-auto adm:border-t",t),...n,children:[a,m&&e.jsxRuntimeExports.jsxs(d.Close,{className:"adm:ring-offset-background adm:focus:ring-ring adm:data-[state=open]:bg-secondary adm:absolute adm:top-4 adm:right-4 adm:rounded-xs adm:opacity-70 adm:transition-opacity adm:hover:opacity-100 adm:focus:ring-2 adm:focus:ring-offset-2 adm:focus:outline-hidden adm:disabled:pointer-events-none",children:[e.jsxRuntimeExports.jsx(r.X,{className:"adm:size-4"}),e.jsxRuntimeExports.jsx("span",{className:"adm:sr-only",children:"Close"})]})]})]})}function p({className:t,...a}){return e.jsxRuntimeExports.jsx("div",{"data-slot":"sheet-header",className:s.cn("adm:flex adm:flex-col adm:gap-1.5 adm:p-4",t),...a})}function f({className:t,...a}){return e.jsxRuntimeExports.jsx("div",{"data-slot":"sheet-footer",className:s.cn("adm:mt-auto adm:flex adm:flex-col adm:gap-2 adm:p-4",t),...a})}function g({className:t,...a}){return e.jsxRuntimeExports.jsx(d.Title,{"data-slot":"sheet-title",className:s.cn("adm:text-foreground adm:font-semibold",t),...a})}function j({className:t,...a}){return e.jsxRuntimeExports.jsx(d.Description,{"data-slot":"sheet-description",className:s.cn("adm:text-muted-foreground adm:text-sm",t),...a})}exports.Sheet=i;exports.SheetClose=u;exports.SheetContent=h;exports.SheetDescription=j;exports.SheetFooter=f;exports.SheetHeader=p;exports.SheetTitle=g;exports.SheetTrigger=l;
1
+ "use strict";const e=require("./jsx-runtime-BB_1_6y_.cjs");require("react");const d=require("./index-BpvjJ_T6.cjs"),s=require("./utils-DoxiiusW.cjs"),r=require("./x-CBKgg4YL.cjs");function i({...t}){return e.jsxRuntimeExports.jsx(d.Root,{"data-slot":"sheet",...t})}function l({...t}){return e.jsxRuntimeExports.jsx(d.Trigger,{"data-slot":"sheet-trigger",...t})}function u({...t}){return e.jsxRuntimeExports.jsx(d.Close,{"data-slot":"sheet-close",...t})}function x({...t}){return e.jsxRuntimeExports.jsx(d.Portal,{"data-slot":"sheet-portal",...t})}function c({className:t,...a}){return e.jsxRuntimeExports.jsx(d.Overlay,{"data-slot":"sheet-overlay",className:s.cn("adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0 adm:data-[state=open]:fade-in-0 adm:fixed adm:inset-0 adm:z-50 adm:bg-black/50",t),...a})}function h({className:t,children:a,side:o="right",showCloseButton:m=!0,...n}){return e.jsxRuntimeExports.jsxs(x,{children:[e.jsxRuntimeExports.jsx(c,{}),e.jsxRuntimeExports.jsxs(d.Content,{"data-slot":"sheet-content",className:s.cn("adm:bg-background adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:fixed adm:z-50 adm:flex adm:flex-col adm:gap-4 adm:shadow-xs adm:transition adm:ease-in-out adm:data-[state=closed]:duration-300 adm:data-[state=open]:duration-500",o==="right"&&"adm:rounded-tl-lg adm:rounded-bl-lg adm:data-[state=closed]:slide-out-to-right adm:data-[state=open]:slide-in-from-right adm:inset-y-0 adm:right-0 adm:h-full adm:w-3/4 adm:border-l adm:sm:max-w-sm",o==="left"&&"adm:rounded-tr-lg adm:rounded-br-lg adm:data-[state=closed]:slide-out-to-left adm:data-[state=open]:slide-in-from-left adm:inset-y-0 adm:left-0 adm:h-full adm:w-3/4 adm:border-r adm:sm:max-w-sm",o==="top"&&"adm:rounded-br-lg adm:rounded-bl-lg adm:data-[state=closed]:slide-out-to-top adm:data-[state=open]:slide-in-from-top adm:inset-x-0 adm:top-0 adm:h-auto adm:border-b",o==="bottom"&&"adm:rounded-tr-lg adm:rounded-tl-lg adm:data-[state=closed]:slide-out-to-bottom adm:data-[state=open]:slide-in-from-bottom adm:inset-x-0 adm:bottom-0 adm:h-auto adm:border-t",t),...n,children:[a,m&&e.jsxRuntimeExports.jsxs(d.Close,{className:"adm:ring-offset-background adm:focus:ring-ring adm:data-[state=open]:bg-secondary adm:absolute adm:top-4 adm:right-4 adm:rounded-xs adm:opacity-70 adm:transition-opacity adm:hover:opacity-100 adm:focus:ring-2 adm:focus:ring-offset-2 adm:focus:outline-hidden adm:disabled:pointer-events-none",children:[e.jsxRuntimeExports.jsx(r.X,{className:"adm:size-4"}),e.jsxRuntimeExports.jsx("span",{className:"adm:sr-only",children:"Close"})]})]})]})}function p({className:t,...a}){return e.jsxRuntimeExports.jsx("div",{"data-slot":"sheet-header",className:s.cn("adm:flex adm:flex-col adm:gap-1.5 adm:p-4",t),...a})}function f({className:t,...a}){return e.jsxRuntimeExports.jsx("div",{"data-slot":"sheet-footer",className:s.cn("adm:mt-auto adm:flex adm:flex-col adm:gap-2 adm:p-4",t),...a})}function g({className:t,...a}){return e.jsxRuntimeExports.jsx(d.Title,{"data-slot":"sheet-title",className:s.cn("adm:text-foreground adm:font-semibold",t),...a})}function j({className:t,...a}){return e.jsxRuntimeExports.jsx(d.Description,{"data-slot":"sheet-description",className:s.cn("adm:text-muted-foreground adm:text-sm",t),...a})}exports.Sheet=i;exports.SheetClose=u;exports.SheetContent=h;exports.SheetDescription=j;exports.SheetFooter=f;exports.SheetHeader=p;exports.SheetTitle=g;exports.SheetTrigger=l;
package/dist/sheet.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./sheet-0jRbqkzj.cjs");exports.Sheet=e.Sheet;exports.SheetClose=e.SheetClose;exports.SheetContent=e.SheetContent;exports.SheetDescription=e.SheetDescription;exports.SheetFooter=e.SheetFooter;exports.SheetHeader=e.SheetHeader;exports.SheetTitle=e.SheetTitle;exports.SheetTrigger=e.SheetTrigger;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./sheet-Dz6zFmQ3.cjs");exports.Sheet=e.Sheet;exports.SheetClose=e.SheetClose;exports.SheetContent=e.SheetContent;exports.SheetDescription=e.SheetDescription;exports.SheetFooter=e.SheetFooter;exports.SheetHeader=e.SheetHeader;exports.SheetTitle=e.SheetTitle;exports.SheetTrigger=e.SheetTrigger;
package/dist/sheet.js CHANGED
@@ -1,4 +1,4 @@
1
- import { S as a, b as s, c as S, g as h, e as o, d as r, f as i, a as g } from "./sheet-RAbg4M5A.js";
1
+ import { S as a, b as s, c as S, g as h, e as o, d as r, f as i, a as g } from "./sheet-CFbUnXCJ.js";
2
2
  export {
3
3
  a as Sheet,
4
4
  s as SheetClose,
package/dist/sidebar.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./jsx-runtime-BB_1_6y_.cjs"),m=require("react"),l=require("./index-Ce3QBKyj.cjs"),i=require("./utils-DoxiiusW.cjs"),n=require("./sheet-0jRbqkzj.cjs"),b=require("./index-gO_QEiaK.cjs"),p=require("./index-BKbK2GzY.cjs"),h=require("./createLucideIcon-CAtnV-yz.cjs");function j(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const s=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,s.get?s:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const c=j(m);/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./jsx-runtime-BB_1_6y_.cjs"),m=require("react"),l=require("./index-Ce3QBKyj.cjs"),i=require("./utils-DoxiiusW.cjs"),n=require("./sheet-Dz6zFmQ3.cjs"),b=require("./index-gO_QEiaK.cjs"),p=require("./index-BKbK2GzY.cjs"),h=require("./createLucideIcon-CAtnV-yz.cjs");function j(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const s=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,s.get?s:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const c=j(m);/**
2
2
  * @license lucide-react v0.546.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
package/dist/sidebar.js CHANGED
@@ -3,7 +3,7 @@ import * as n from "react";
3
3
  import { createContext as c, useState as u, useContext as x } from "react";
4
4
  import { P as h } from "./index-yR-v1A4G.js";
5
5
  import { c as s } from "./utils-CRiPKpXj.js";
6
- import { S as b, a as f, c as p, d as S, f as g, g as j } from "./sheet-RAbg4M5A.js";
6
+ import { S as b, a as f, c as p, d as S, f as g, g as j } from "./sheet-CFbUnXCJ.js";
7
7
  import { V as v } from "./index-P1sVIHE3.js";
8
8
  import { S as w } from "./index-6oTEokEx.js";
9
9
  import { c as y } from "./createLucideIcon-B_8CJpcQ.js";