dsql-admin/dsql-app/.local_dist/static/chunks/1105-7897faceec5c28c2.js
Benjamin Toby 7a06e83a46 Updates
2024-12-08 20:56:57 +01:00

1 line
9.0 KiB
JavaScript

"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,easing:o}=(0,k.c)({style:y,timeout:x,easing:c},{mode:"exit"});"auto"===x?(t=T.transitions.getAutoHeightDuration(e.clientHeight),P.current=t):t=n,e.style.transition=[T.transitions.create("opacity",{duration:t,delay:r}),T.transitions.create("transform",{duration:O?t:.666*t,delay:O?r:r||.333*t,easing:o})].join(","),e.style.opacity=0,e.style.transform=L(.75),h&&h(e)}),W=B(A);return(0,p.jsx)(S,(0,o.A)({appear:a,in:u,nodeRef:z,onEnter:D,onEntered:F,onEntering:H,onExit:_,onExited:W,onExiting:I,addEndListener:e=>{"auto"===x&&j.start(P.current||0,e),n&&n(z.current,e)},timeout:"auto"===x?null:x},M,{children:(e,t)=>i.cloneElement(s,(0,o.A)({style:(0,o.A)({opacity:0,transform:L(.75),visibility:"exited"!==e||u?void 0:"hidden"},R[e],y,s.props.style),ref:N},t))}))});S.muiSupportAuto=!0;var M=n(34164),j=n(771),P=n(34544),T=n(38413),z=n(31609);function N(e){return(0,z.Ay)("MuiSnackbarContent",e)}(0,T.A)("MuiSnackbarContent",["root","message","action"]);let B=["action","className","message","role"],H=e=>{let{classes:t}=e;return(0,a.A)({root:["root"],action:["action"],message:["message"]},N,t)},D=(0,v.Ay)(P.A,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(e=>{let{theme:t}=e,n="light"===t.palette.mode?.8:.98,r=(0,j.tL)(t.palette.background.default,n);return(0,o.A)({},t.typography.body2,{color:t.vars?t.vars.palette.SnackbarContent.color:t.palette.getContrastText(r),backgroundColor:t.vars?t.vars.palette.SnackbarContent.bg:r,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,flexGrow:1,[t.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),F=(0,v.Ay)("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),I=(0,v.Ay)("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),_=i.forwardRef(function(e,t){let n=(0,y.b)({props:e,name:"MuiSnackbarContent"}),{action:i,className:a,message:s,role:l="alert"}=n,c=(0,r.A)(n,B),u=H(n);return(0,p.jsxs)(D,(0,o.A)({role:l,square:!0,elevation:6,className:(0,M.A)(u.root,a),ownerState:n,ref:t},c,{children:[(0,p.jsx)(F,{className:u.message,ownerState:n,children:s}),i?(0,p.jsx)(I,{className:u.action,ownerState:n,children:i}):null]}))});function W(e){return(0,z.Ay)("MuiSnackbar",e)}(0,T.A)("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);let X=["onEnter","onExited"],q=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],G=e=>{let{classes:t,anchorOrigin:n}=e,r={root:["root","anchorOrigin".concat((0,x.A)(n.vertical)).concat((0,x.A)(n.horizontal))]};return(0,a.A)(r,W,t)},K=(0,v.Ay)("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t["anchorOrigin".concat((0,x.A)(n.anchorOrigin.vertical)).concat((0,x.A)(n.anchorOrigin.horizontal))]]}})(e=>{let{theme:t,ownerState:n}=e;return(0,o.A)({zIndex:(t.vars||t).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},"top"===n.anchorOrigin.vertical?{top:8}:{bottom:8},"left"===n.anchorOrigin.horizontal&&{justifyContent:"flex-start"},"right"===n.anchorOrigin.horizontal&&{justifyContent:"flex-end"},{[t.breakpoints.up("sm")]:(0,o.A)({},"top"===n.anchorOrigin.vertical?{top:24}:{bottom:24},"center"===n.anchorOrigin.horizontal&&{left:"50%",right:"auto",transform:"translateX(-50%)"},"left"===n.anchorOrigin.horizontal&&{left:24,right:"auto"},"right"===n.anchorOrigin.horizontal&&{right:24,left:"auto"})})}),Y=i.forwardRef(function(e,t){let n=(0,y.b)({props:e,name:"MuiSnackbar"}),a=(0,E.A)(),l={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{action:c,anchorOrigin:{vertical:u,horizontal:f}={vertical:"bottom",horizontal:"left"},autoHideDuration:g=null,children:m,className:h,ClickAwayListenerProps:v,ContentProps:x,disableWindowBlurListener:b=!1,message:k,open:w,TransitionComponent:C=S,transitionDuration:L=l,TransitionProps:{onEnter:R,onExited:O}={}}=n,M=(0,r.A)(n.TransitionProps,X),j=(0,r.A)(n,q),P=(0,o.A)({},n,{anchorOrigin:{vertical:u,horizontal:f},autoHideDuration:g,disableWindowBlurListener:b,TransitionComponent:C,transitionDuration:L}),T=G(P),{getRootProps:z,onClickAway:N}=d((0,o.A)({},P)),[B,H]=i.useState(!0),D=(0,s.A)({elementType:K,getSlotProps:z,externalForwardedProps:j,ownerState:P,additionalProps:{ref:t},className:[T.root,h]});return!w&&B?null:(0,p.jsx)(A,(0,o.A)({onClickAway:N},v,{children:(0,p.jsx)(K,(0,o.A)({},D,{children:(0,p.jsx)(C,(0,o.A)({appear:!0,in:w,timeout:L,direction:"top"===u?"down":"up",onEnter:(e,t)=>{H(!1),R&&R(e,t)},onExited:e=>{H(!0),O&&O(e)}},M,{children:m||(0,p.jsx)(_,(0,o.A)({message:k,action:c},x))}))}))}))})}}]);