dsql-admin/dsql-app/.local_dist/static/chunks/1105-7897faceec5c28c2.js

1 line
9.0 KiB
JavaScript
Raw Normal View History

2024-12-08 19:56:57 +00:00
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1105],{51105:(e,t,n)=>{n.d(t,{A:()=>Y});var r=n(98587),o=n(58168),i=n(96540),a=n(75659),s=n(25908),l=n(27598),c=n(71547),u=n(97340);let d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:a,resumeHideDuration:s}=e,d=(0,l.A)();i.useEffect(()=>{if(a)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){e.defaultPrevented||"Escape"!==e.key&&"Esc"!==e.key||null==r||r(e,"escapeKeyDown")}},[a,r]);let f=(0,c.A)((e,t)=>{null==r||r(e,t)}),g=(0,c.A)(e=>{r&&null!=e&&d.start(e,()=>{f(null,"timeout")})});i.useEffect(()=>(a&&g(t),d.clear),[a,t,g,d]);let m=d.clear,p=i.useCallback(()=>{null!=t&&g(null!=s?s:.5*t)},[t,s,g]),h=e=>t=>{let n=e.onBlur;null==n||n(t),p()},A=e=>t=>{let n=e.onFocus;null==n||n(t),m()},v=e=>t=>{let n=e.onMouseEnter;null==n||n(t),m()},E=e=>t=>{let n=e.onMouseLeave;null==n||n(t),p()};return i.useEffect(()=>{if(!n&&a)return window.addEventListener("focus",p),window.addEventListener("blur",m),()=>{window.removeEventListener("focus",p),window.removeEventListener("blur",m)}},[n,a,p,m]),{getRootProps:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=(0,o.A)({},(0,u.A)(e),(0,u.A)(t));return(0,o.A)({role:"presentation"},t,n,{onBlur:h(n),onFocus:A(n),onMouseEnter:v(n),onMouseLeave:E(n)})},onClickAway:e=>{null==r||r(e,"clickaway")}}};var f=n(31523),g=n(32325),m=n(57223),p=n(74848);function h(e){return e.substring(2).toLowerCase()}function A(e){let{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:a="onTouchEnd"}=e,s=i.useRef(!1),l=i.useRef(null),u=i.useRef(!1),d=i.useRef(!1);i.useEffect(()=>(setTimeout(()=>{u.current=!0},0),()=>{u.current=!1}),[]);let A=(0,f.A)((0,m.A)(t),l),v=(0,c.A)(e=>{let t=d.current;d.current=!1;let r=(0,g.A)(l.current);if(u.current&&l.current&&(!("clientX"in e)||!(r.documentElement.clientWidth<e.clientX)&&!(r.documentElement.clientHeight<e.clientY))){if(s.current){s.current=!1;return}(e.composedPath?e.composedPath().indexOf(l.current)>-1:!r.documentElement.contains(e.target)||l.current.contains(e.target))||!n&&t||o(e)}}),E=e=>n=>{d.current=!0;let r=t.props[e];r&&r(n)},y={ref:A};return!1!==a&&(y[a]=E(a)),i.useEffect(()=>{if(!1!==a){let e=h(a),t=(0,g.A)(l.current),n=()=>{s.current=!0};return t.addEventListener(e,v),t.addEventListener("touchmove",n),()=>{t.removeEventListener(e,v),t.removeEventListener("touchmove",n)}}},[v,a]),!1!==r&&(y[r]=E(r)),i.useEffect(()=>{if(!1!==r){let e=h(r),t=(0,g.A)(l.current);return t.addEventListener(e,v),()=>{t.removeEventListener(e,v)}}},[v,r]),(0,p.jsx)(i.Fragment,{children:i.cloneElement(t,y)})}var v=n(3552),E=n(63891),y=n(98301),x=n(97306),b=n(21962),k=n(82586),w=n(13372);let C=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function L(e){return"scale(".concat(e,", ").concat(e**2,")")}let R={entering:{opacity:1,transform:L(1)},entered:{opacity:1,transform:"none"}},O="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),S=i.forwardRef(function(e,t){let{addEndListener:n,appear:a=!0,children:s,easing:c,in:u,onEnter:d,onEntered:f,onEntering:g,onExit:h,onExited:A,onExiting:v,style:y,timeout:x="auto",TransitionComponent:S=b.Ay}=e,M=(0,r.A)(e,C),j=(0,l.A)(),P=i.useRef(),T=(0,E.A)(),z=i.useRef(null),N=(0,w.A)(z,(0,m.A)(s),t),B=e=>t=>{if(e){let n=z.current;void 0===t?e(n):e(n,t)}},H=B(g),D=B((e,t)=>{let n;(0,k.q)(e);let{duration:r,delay:o,easing:i}=(0,k.c)({style:y,timeout:x,easing:c},{mode:"enter"});"auto"===x?(n=T.transitions.getAutoHeightDuration(e.clientHeight),P.current=n):n=r,e.style.transition=[T.transitions.create("opacity",{duration:n,delay:o}),T.transitions.create("transform",{duration:O?n:.666*n,delay:o,easing:i})].join(","),d&&d(e,t)}),F=B(f),I=B(v),_=B(e=>{let t;let{duration:n,delay:r,e