dsql-admin/dsql-app/.local_dist/server/chunks/1790.js

1 line
20 KiB
JavaScript
Raw Normal View History

2024-12-08 19:56:57 +00:00
"use strict";exports.id=1790,exports.ids=[1790],exports.modules={52763:(e,t,r)=>{var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.ClickAwayListener=function(e){let{children:t,disableReactTree:r=!1,mouseEvent:n="onClick",onClickAway:u,touchEvent:s="onTouchEnd"}=e,c=o.useRef(!1),d=o.useRef(null),p=o.useRef(!1),v=o.useRef(!1);o.useEffect(()=>(setTimeout(()=>{p.current=!0},0),()=>{p.current=!1}),[]);let y=(0,a.unstable_useForkRef)((0,i.default)(t),d),b=(0,a.unstable_useEventCallback)(e=>{let t=v.current;v.current=!1;let n=(0,a.unstable_ownerDocument)(d.current);if(p.current&&d.current&&(!("clientX"in e)||!(n.documentElement.clientWidth<e.clientX)&&!(n.documentElement.clientHeight<e.clientY))){if(c.current){c.current=!1;return}(e.composedPath?e.composedPath().indexOf(d.current)>-1:!n.documentElement.contains(e.target)||d.current.contains(e.target))||!r&&t||u(e)}}),g=e=>r=>{v.current=!0;let n=t.props[e];n&&n(r)},O={ref:y};return!1!==s&&(O[s]=g(s)),o.useEffect(()=>{if(!1!==s){let e=f(s),t=(0,a.unstable_ownerDocument)(d.current),r=()=>{c.current=!0};return t.addEventListener(e,b),t.addEventListener("touchmove",r),()=>{t.removeEventListener(e,b),t.removeEventListener("touchmove",r)}}},[b,s]),!1!==n&&(O[n]=g(n)),o.useEffect(()=>{if(!1!==n){let e=f(n),t=(0,a.unstable_ownerDocument)(d.current);return t.addEventListener(e,b),()=>{t.removeEventListener(e,b)}}},[b,n]),(0,l.jsx)(o.Fragment,{children:o.cloneElement(t,O)})};var o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=u(void 0);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(r(82015));n(r(29825));var a=r(76831),i=n(r(16362)),l=r(8732);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:t})(e)}function f(e){return e.substring(2).toLowerCase()}},47693:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n.ClickAwayListener}});var n=r(52763)},32683:(e,t,r)=>{var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(94634)),a=n(r(54893)),i=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=y(void 0);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(r(82015));n(r(29825));var l=n(r(710));n(r(30729));var u=n(r(16362)),f=r(37727),s=n(r(90403)),c=r(66322),d=n(r(68660)),p=r(8732);let v=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function y(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(y=function(e){return e?r:t})(e)}function b(e){return`scale(${e}, ${e**2})`}let g={entering:{opacity:1,transform:b(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),m=i.forwardRef(function(e,t){let{addEndListener:r,appear:n=!0,children:y,easing:m,in:j,onEnter:_,onEntered:P,onEntering:h,onExit:w,onExited:k,onExiting:M,style:E,timeout:C="auto",TransitionComponent:x=f.Transition}=e,D=(0,a.default)(e,v),W=(0,l.default)(),R=i.useRef(),L=(0,s.default)(),S=i.useRef(null),T=(0,d.default)(S,(0,u.default)(y),t),z=e=>t=>{if(e){let r=S.current;void 0===t?e(r):e(r,t)}},A=z(h),$=z((e,t)=>{let r;(0,c.reflow)(e);let{duration:n,delay:o,easing:a}=(0,c