Module 726079

751 characters · in 30a277b9d32d70b1.js
Dependencies
Required by (1)
Lazily required by (0)none
Lazily requires (0)none
Source Raw
function(e,t,n){n.d(t,{l:()=>d});var i=n(627968),l=n(64700),a=n(397927),r=n(646881),s=n(92534),o=n(383614);function d(e){let{onOpen:t,onClose:n,children:d,popoutPosition:c,popoutAlign:u}=e,[A,h]=l.useState(!1),_=l.useRef(null),m=l.useCallback(()=>{h(!1),n?.()},[n]),{handlePrimaryAction:g,handleContextMenu:p}=(0,s.B)(m),E=l.useCallback(()=>{h(e=>{let i=!e;return i?t?.():n?.(),i})},[n,t]),I=l.useCallback(()=>(0,i.jsx)("div",{className:o.k,children:(0,i.jsx)(r.$,{onPrimaryAction:g,onContextMenu:p})}),[p,g]);return(0,i.jsx)(a.YNO,{targetElementRef:_,animation:a.YNO.Animation.NONE,position:c,align:u,autoInvert:!1,shouldShow:A,onRequestClose:m,renderPopout:I,ignoreModalClicks:!0,clickTrap:!0,children:(e,t)=>{let{isShown:n}=t;return d(E,n,e,_)}})}}