Build 542549stable
Module 540177
1,061 characters · in 9b93149ea2bd68d2.jsDependencies
Source Raw
function(e,t,n){n.r(t),n.d(t,{default:()=>x});var i=n(627968),l=n(64700),s=n(980707),a=n(477782),r=n(922016),c=n(306471),o=n(189252),u=n(538064),d=n(786574),m=n(404486),g=n(949091);function f(e){let{onClose:t}=e,n=(0,m.x)(),l=(0,d.N)(n,u.Ft),r=(0,g.A)();return(0,i.jsxs)(s.W,{"data-menu-migrated":!0,onSelect:()=>{},navId:"devtools-popout",variant:"fixed",onClose:t,"aria-label":"DevTools Actions",children:[l,(0,i.jsx)(a.rX,{"aria-label":"Playgrounds",children:r})]})}function x(e){let{focusSectionProps:t}=e,[n,s]=l.useState(!1),[a,d]=l.useState(0),m=l.useRef(null),g=e=>{clearTimeout(a),d(setTimeout(()=>{s(e)},100))};return(0,i.jsx)("div",{onMouseEnter:()=>g(!0),onMouseLeave:()=>g(!1),children:(0,i.jsx)(r.Y,{targetElementRef:m,shouldShow:n,animation:r.Y.Animation.NONE,position:"bottom",align:"right",autoInvert:!1,onRequestOpen:()=>s(!0),onRequestClose:()=>s(!1),renderPopout:()=>(0,i.jsx)(f,{onClose:()=>s(!1)}),children:(e,n)=>{let{isShown:l}=n;return(0,i.jsx)(o.A,{ref:m,onClick:()=>(0,u.Ft)(),icon:c.V,"aria-label":"DevTools",selected:l,...t})}})})}}