PageSourceSearch

https://aibr.org/build/assets/chunk-LSZJW3GU-QPv3TR7N.js

js aibr.org collected 2026-09-24 09:33:21 UTC 3,043 bytes, 1 lines download raw bytes

1import{r as i,j as r}from"./app-belrbPXN.js";import{g as w,a as h,$ as U}from"./import-CF4r66r5.js";import{T as C}from"./chunk-WUWNKKWR-zu7Kmz1i.js";import{n as D,K as j,b as F,c as v}from"./import-0kiaZdOS.js";import{R as K}from"./Combination-asPpbgkX.js";import{g as V,u as q}from"./chunk-3YBC73XM-2g_LxT9c.js";import{m as y}from"./use-force-update-VB-OXXUy.js";import{f as x}from"./chunk-3TAVD5Y3-JLEfvKNw.js";import{u as z,A as G}from"./index-Cg9dHLmZ.js";import{b as H}from"./chunk-NXTXE2B3-LSC6jqGg.js";import{p as J}from"./chunk-VMAPMSPF-sN-l8vC5.js";import{c as L}from"./chunk-3XT5V4LF-zg9JoeIL.js";var[Q,N]=L({name:"PopoverContext",errorMessage:"usePopoverContext: `context` is undefined. Seems you forgot to wrap all popover components within `<Popover />`"});function W(n,t){let{role:l="dialog"}=n,o=D();o=n["aria-label"]?void 0:o;let e=i.useRef(!1);return i.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){j(t.current);let s=setTimeout(()=>{document.activeElement===t.current&&(e.current=!0,t.current&&(t.current.blur(),j(t.current)),e.current=!1)},500);return()=>{clearTimeout(s)}}},[t]),w(),{dialogProps:{...F(n,{labelable:!0}),role:l,tabIndex:-1,"aria-labelledby":n["aria-labelledby"]||o,onBlur:s=>{e.current&&s.stopPropagation()}},titleProps:{id:o}}}var R=x((n,t)=>{const{as:l,children:o,className:e,...s}=n,{Component:a,isOpen:c,placement:u,motionProps:p,backdrop:m,disableAnimation:d,shouldBlockScroll:I,getPopoverProps:_,getDialogProps:O,getBackdropProps:f,getContentProps:S,isNonModal:B,onClose:b}=N(),E=l||a||"div",g=i.useRef(null),{dialogProps:P,titleProps:M}=W({},g);delete P.role;const $=r.jsxs(r.Fragment,{children:[!B&&r.jsx(h,{onDismiss:b}),r.jsx(E,{...O(v(P,s)),ref:g,children:r.jsx("div",{...S({className:e}),children:typeof o=="function"?o(M):o})}),r.jsx(h,{onDismiss:b})]}),k=i.useMemo(()=>m==="transparent"?null:d?r.jsx("div",{...f()}):r.jsx(y.div,{animate:"enter",exit:"exit",initial:"exit",variants:C.fade,...f()}),[m,d,f]);return r.jsxs("div",{..._(),children:[k,r.jsx(K,{forwardProps:!0,enabled:I&&c,removeScrollBar:!1,children:d?$:r.jsx(y.div,{animate:"enter",exit:"exit",initial:"initial",style:{...V(u==="center"?"top":u)},variants:C.scaleSpringOpacity,...p,children:$})})]})});R.displayName="NextUI.PopoverContent";var ce=R,T=x((n,t)=>{const{triggerRef:l,getTriggerProps:o}=N(),{children:e,...s}=n,a=i.useMemo(()=>typeof e=="string"?r.jsx("p",{children:e}):i.Children.only(e),[e]),{onPress:c,...u}=i.useMemo(()=>o(v(a.props,s),a.ref),[o,a.props,s,a.ref]),[,p]=J(e,H),{buttonProps:m}=z({onPress:c},l),d=i.useMemo(()=>(p==null?void 0:p[0])!==void 0,[p]);return i.cloneElement(a,v(u,d?{onPress:c}:m))});T.displayName="NextUI.PopoverTrigger";var pe=T,A=x((n,t)=>{const{children:l,...o}=n,e=q({...o,ref:t}),[s,a]=i.Children.toArray(l),c=r.jsx(U,{portalContainer:e.portalContainer,children:a});return r.jsxs(Q,{value:e,children:[s,e.disableAnimation&&e.isOpen?c:r.jsx(G,{children:e.isOpen?c:null})]})});A.displayName="NextUI.Popover";var de=A;export{W as $,pe as a,de as b,ce as p};

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.