1import{r as i,j as p}from"./chunk-62JRHF6Z-sqzRhys5.js";import{c as C,u as I,a as S,P as A}from"./index-BtVbnKnk.js";import{u as O,c as M}from"./index-B0f3f84K.js";import{c as T}from"./index-Dt-Kvizm.js";import{P as k,h as N,R as L,u as G,F as H,D as K}from"./Combination-D3clxueD.js";import{A as b,c as E,R as $,C as U}from"./index-DXATCjJk.js";import{P as w}from"./index-BB7OVNN0.js";try{let n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new n.Error().stack;e&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[e]="79737df5-2de0-47af-a395-526f5811fb91",n._sentryDebugIdIdentifier="sentry-dbid-79737df5-2de0-47af-a395-526f5811fb91")}catch{}var V=Object.defineProperty,l=(n,e)=>V(n,"name",{value:e,configurable:!0}),R="Popover",[j,fe]=T(R,[E]),x=E(),[Z,d]=j(R),q=l(n=>{const{__scopePopover:e,children:a,open:r,defaultOpen:s,onOpenChange:o,modal:t=!1}=n,c=x(e),u=i.useRef(null),[P,f]=i.useState(!1),[m,v]=I({prop:r,defaultProp:s??!1,onChange:o,caller:R});return p.jsx($,{...c,children:p.jsx(Z,{scope:e,contentId:S(),triggerRef:u,open:m,onOpenChange:v,onOpenToggle:i.useCallback(()=>v(g=>!g),[v]),hasCustomAnchor:P,onCustomAnchorAdd:i.useCallback(()=>f(!0),[]),onCustomAnchorRemove:i.useCallback(()=>f(!1),[]),modal:t,children:a})})},"Popover"),z="PopoverAnchor",B=i.forwardRef(l(function(e,a){const{__scopePopover:r,...s}=e,o=d(z,r),t=x(r),{onCustomAnchorAdd:c,onCustomAnchorRemove:u}=o;return i.useEffect(()=>(c(),()=>u()),[c,u]),p.jsx(b,{...t,...s,ref:a})},"PopoverAnchor")),J="PopoverTrigger",Q=i.forwardRef(l(function(e,a){const{__scopePopover:r,...s}=e,o=d(J,r),t=x(r),c=O(a,o.triggerRef),u=p.jsx(w.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":_(o.open),...s,ref:c,onClick:C(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?u:p.jsx(b,{asChild:!0,...t,children:u})},"PopoverTrigger")),y="PopoverPortal",[W,X]=j(y,{forceMount:void 0}),Y=l(n=>{const{__scopePopover:e,forceMount:a,children:r,container:s}=n,o=d(y,e);return p.jsx(W,{scope:e,forceMount:a,children:p.jsx(A,{present:a||o.open,children:p.jsx(k,{asChild:!0,container:s,children:r})})})},"PopoverPortal"),h="PopoverContent",ee=i.forwardRef(l(function(e,a){const r=X(h,e.__scopePopover),{forceMount:s=r.forceMount,...o}=e,t=d(h,e.__scopePopover);return p.jsx(A,{present:s||t.open,children:t.modal?p.jsx(te,{...o,ref:a}):p.jsx(re,{...o,ref:a})})},"PopoverContent")),oe=M("PopoverContent.RemoveScroll"),te=i.forwardRef(l(function(e,a){const r=d(h,e.__scopePopover),s=i.useRef(null),o=O(a,s),t=i.useRef(!1);return i.useEffect(()=>{const c=s.current;if(c)return N(c)},[]),p.jsx(L,{as:oe,allowPinchZoom:!0,children:p.jsx(D,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:C(e.onCloseAutoFocus,c=>{c.preventDefault(),t.current||r.triggerRef.current?.focus()}),onPointerDownOutside:C(e.onPointerDownOutside,c=>{const u=c.detail.originalEvent,P=u.button===0&&u.ctrlKey===!0,f=u.button===2||P;t.current=f},{checkForDefaultPrevented:!1}),onFocusOutside:C(e.onFocusOutside,c=>c.preventDefault(),{checkForDefaultPrevented:!1})})})},"PopoverContentModal")),re=i.forwardRef(l(function(e,a){const r=d(h,e.__scopePopover),s=i.useRef(!1),o=i.useRef(!1);return p.jsx(D,{...e,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(s.current||r.triggerRef.current?.focus(),t.preventDefault()),s.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(s.current=!0,t.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=t.target;r.triggerRef.current?.contains(c)&&t.preventDefault(),t.detail.originalEvent.type==="focusin"&&o.current&&t.preventDefault()}})},"PopoverContentNonModal")),D=i.forwardRef(l(function(e,a){const{__scopePopover:r,trapFocus:s,onOpenAutoFocus:o,onCloseAutoFocus:t,disableOutsidePointerEvents:c,onEscapeKeyDown:u,onPointerDownOutside:P,onFocusOutside:f,onInteractOutside:m,...v}=e,g=d(h,r),F=x(r);return G(),p.jsx(H,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:o,onUnmountAutoFocus:t,children:p.jsx(K,{asChild:!0,disableOutsidePointerEvents:c,onInteractOutside:m,onEscapeKeyDown:u,onPointerDownOutside:P,onFocusOutside:f,onDismiss:()=>g.onOpenChange(!1),deferPointerDownOutside:!0,children:p.jsx(U,{"data-state":_(g.open),role:"dialog",id:g.contentId,...F,...v,ref:a,style:{...v.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)"}})})})},"PopoverContentImpl")),ne="PopoverClose",se=i.forwardRef(l(function(e,a){const{__scopePopover:r,...s}=e,o=d(ne,r);return p.jsx(w.button,{type:"button",...s,ref:a,onClick:C(e.onClick,()=>o.onOpenChange(!1))})},"PopoverClose"));function _(n){return n?"open":"closed"}l(_,"getState");var ve=q,Pe=B,ge=Q,Ce=Y,he=ee,xe=se;export{Pe as A,he as C,Ce as P,ve as R,ge as T,xe as a};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.