dsql-admin/dsql-app/.local_dist/static/chunks/8473-1a1faf3d4d34beef.js
2024-11-05 12:12:42 +01:00

1 line
9.7 KiB
JavaScript

"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8473],{42065:function(e,n,t){var r=t(64836);n.Z=void 0;var o=r(t(64938)),i=t(85893),a=(0,o.default)((0,i.jsx)("path",{d:"M16.62 2.99c-.49-.49-1.28-.49-1.77 0L6.54 11.3c-.39.39-.39 1.02 0 1.41l8.31 8.31c.49.49 1.28.49 1.77 0s.49-1.28 0-1.77L9.38 12l7.25-7.25c.48-.48.48-1.28-.01-1.76z"}),"ArrowBackIosRounded");n.Z=a},41899:function(e,n,t){var r=t(64836);n.Z=void 0;var o=r(t(64938)),i=t(85893),a=(0,o.default)((0,i.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"}),"ContentCopy");n.Z=a},35922:function(e,n,t){t.d(n,{Z:function(){return $}});var r=t(63366),o=t(87462),i=t(67294),a=t(94780),s=t(78987),c=t(33703),u=t(59948),l=t(82690),d=t(85893);function f(e){return e.substring(2).toLowerCase()}function m(e){const{children:n,disableReactTree:t=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:a="onTouchEnd"}=e,s=i.useRef(!1),m=i.useRef(null),g=i.useRef(!1),p=i.useRef(!1);i.useEffect((()=>(setTimeout((()=>{g.current=!0}),0),()=>{g.current=!1})),[]);const h=(0,c.Z)(n.ref,m),v=(0,u.Z)((e=>{const n=p.current;p.current=!1;const r=(0,l.Z)(m.current);if(!g.current||!m.current||"clientX"in e&&function(e,n){return n.documentElement.clientWidth<e.clientX||n.documentElement.clientHeight<e.clientY}(e,r))return;if(s.current)return void(s.current=!1);let i;i=e.composedPath?e.composedPath().indexOf(m.current)>-1:!r.documentElement.contains(e.target)||m.current.contains(e.target),i||!t&&n||o(e)})),E=e=>t=>{p.current=!0;const r=n.props[e];r&&r(t)},Z={ref:h};return!1!==a&&(Z[a]=E(a)),i.useEffect((()=>{if(!1!==a){const e=f(a),n=(0,l.Z)(m.current),t=()=>{s.current=!0};return n.addEventListener(e,v),n.addEventListener("touchmove",t),()=>{n.removeEventListener(e,v),n.removeEventListener("touchmove",t)}}}),[v,a]),!1!==r&&(Z[r]=E(r)),i.useEffect((()=>{if(!1!==r){const e=f(r),n=(0,l.Z)(m.current);return n.addEventListener(e,v),()=>{n.removeEventListener(e,v)}}}),[v,r]),(0,d.jsx)(i.Fragment,{children:i.cloneElement(n,Z)})}var g=t(30437);var p=t(2641),h=t(2734),v=t(54502),E=t(98216),Z=t(84527),y=t(30577),x=t(51705);const w=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function C(e){return`scale(${e}, ${e**2})`}const b={entering:{opacity:1,transform:C(1)},entered:{opacity:1,transform:"none"}},k="undefined"!==typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),L=i.forwardRef((function(e,n){const{addEndListener:t,appear:a=!0,children:s,easing:c,in:u,onEnter:l,onEntered:f,onEntering:m,onExit:g,onExited:p,onExiting:v,style:E,timeout:L="auto",TransitionComponent:R=Z.ZP}=e,S=(0,r.Z)(e,w),O=i.useRef(),T=i.useRef(),P=(0,h.Z)(),M=i.useRef(null),j=(0,x.Z)(M,s.ref,n),z=e=>n=>{if(e){const t=M.current;void 0===n?e(t):e(t,n)}},H=z(m),A=z(((e,n)=>{(0,y.n)(e);const{duration:t,delay:r,easing:o}=(0,y.C)({style:E,timeout:L,easing:c},{mode:"enter"});let i;"auto"===L?(i=P.transitions.getAutoHeightDuration(e.clientHeight),T.current=i):i=t,e.style.transition=[P.transitions.create("opacity",{duration:i,delay:r}),P.transitions.create("transform",{duration:k?i:.666*i,delay:r,easing:o})].join(","),l&&l(e,n)})),D=z(f),B=z(v),N=z((e=>{const{duration:n,delay:t,easing:r}=(0,y.C)({style:E,timeout:L,easing:c},{mode:"exit"});let o;"auto"===L?(o=P.transitions.getAutoHeightDuration(e.clientHeight),T.current=o):o=n,e.style.transition=[P.transitions.create("opacity",{duration:o,delay:t}),P.transitions.create("transform",{duration:k?o:.666*o,delay:k?t:t||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=C(.75),g&&g(e)})),_=z(p);return i.useEffect((()=>()=>{clearTimeout(O.current)}),[]),(0,d.jsx)(R,(0,o.Z)({appear:a,in:u,nodeRef:M,onEnter:A,onEntered:D,onEntering:H,onExit:N,onExited:_,onExiting:B,addEndListener:e=>{"auto"===L&&(O.current=setTimeout(e,T.current||0)),t&&t(M.current,e)},timeout:"auto"===L?null:L},S,{children:(e,n)=>i.cloneElement(s,(0,o.Z)({style:(0,o.Z)({opacity:0,transform:C(.75),visibility:"exited"!==e||u?void 0:"hidden"},b[e],E,s.props.style),ref:j},n))}))}));L.muiSupportAuto=!0;var R=L,S=t(90512),O=t(41796),T=t(90629),P=t(1588),M=t(34867);function j(e){return(0,M.Z)("MuiSnackbarContent",e)}(0,P.Z)("MuiSnackbarContent",["root","message","action"]);const z=["action","className","message","role"],H=(0,p.ZP)(T.Z,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,n)=>n.root})((({theme:e})=>{const n="light"===e.palette.mode?.8:.98,t=(0,O._4)(e.palette.background.default,n);return(0,o.Z)({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(t),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:t,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})})),A=(0,p.ZP)("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,n)=>n.message})({padding:"8px 0"}),D=(0,p.ZP)("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,n)=>n.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8});var B=i.forwardRef((function(e,n){const t=(0,v.Z)({props:e,name:"MuiSnackbarContent"}),{action:i,className:s,message:c,role:u="alert"}=t,l=(0,r.Z)(t,z),f=t,m=(e=>{const{classes:n}=e;return(0,a.Z)({root:["root"],action:["action"],message:["message"]},j,n)})(f);return(0,d.jsxs)(H,(0,o.Z)({role:u,square:!0,elevation:6,className:(0,S.Z)(m.root,s),ownerState:f,ref:n},l,{children:[(0,d.jsx)(A,{className:m.message,ownerState:f,children:c}),i?(0,d.jsx)(D,{className:m.action,ownerState:f,children:i}):null]}))}));function N(e){return(0,M.Z)("MuiSnackbar",e)}(0,P.Z)("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const _=["onEnter","onExited"],W=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],I=(0,p.ZP)("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:t}=e;return[n.root,n[`anchorOrigin${(0,E.Z)(t.anchorOrigin.vertical)}${(0,E.Z)(t.anchorOrigin.horizontal)}`]]}})((({theme:e,ownerState:n})=>(0,o.Z)({zIndex:(e.vars||e).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"},{[e.breakpoints.up("sm")]:(0,o.Z)({},"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"})})));var $=i.forwardRef((function(e,n){const t=(0,v.Z)({props:e,name:"MuiSnackbar"}),c=(0,h.Z)(),l={enter:c.transitions.duration.enteringScreen,exit:c.transitions.duration.leavingScreen},{action:f,anchorOrigin:{vertical:p,horizontal:Z}={vertical:"bottom",horizontal:"left"},autoHideDuration:y=null,children:x,className:w,ClickAwayListenerProps:C,ContentProps:b,disableWindowBlurListener:k=!1,message:L,open:S,TransitionComponent:O=R,transitionDuration:T=l,TransitionProps:{onEnter:P,onExited:M}={}}=t,j=(0,r.Z)(t.TransitionProps,_),z=(0,r.Z)(t,W),H=(0,o.Z)({},t,{anchorOrigin:{vertical:p,horizontal:Z},autoHideDuration:y,disableWindowBlurListener:k,TransitionComponent:O,transitionDuration:T}),A=(e=>{const{classes:n,anchorOrigin:t}=e,r={root:["root",`anchorOrigin${(0,E.Z)(t.vertical)}${(0,E.Z)(t.horizontal)}`]};return(0,a.Z)(r,N,n)})(H),{getRootProps:D,onClickAway:$}=function(e={}){const{autoHideDuration:n=null,disableWindowBlurListener:t=!1,onClose:r,open:a,resumeHideDuration:s}=e,c=i.useRef();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]);const l=(0,u.Z)(((e,n)=>{null==r||r(e,n)})),d=(0,u.Z)((e=>{r&&null!=e&&(clearTimeout(c.current),c.current=setTimeout((()=>{l(null,"timeout")}),e))}));i.useEffect((()=>(a&&d(n),()=>{clearTimeout(c.current)})),[a,n,d]);const f=()=>{clearTimeout(c.current)},m=i.useCallback((()=>{null!=n&&d(null!=s?s:.5*n)}),[n,s,d]),p=e=>n=>{const t=e.onFocus;null==t||t(n),f()},h=e=>n=>{const t=e.onMouseEnter;null==t||t(n),f()},v=e=>n=>{const t=e.onMouseLeave;null==t||t(n),m()};return i.useEffect((()=>{if(!t&&a)return window.addEventListener("focus",m),window.addEventListener("blur",f),()=>{window.removeEventListener("focus",m),window.removeEventListener("blur",f)}}),[t,m,a]),{getRootProps:(n={})=>{const t=(0,o.Z)({},(0,g._)(e),(0,g._)(n));return(0,o.Z)({role:"presentation"},n,t,{onBlur:(r=t,e=>{const n=r.onBlur;null==n||n(e),m()}),onFocus:p(t),onMouseEnter:h(t),onMouseLeave:v(t)});var r},onClickAway:e=>{null==r||r(e,"clickaway")}}}((0,o.Z)({},H)),[F,V]=i.useState(!0),X=(0,s.y)({elementType:I,getSlotProps:D,externalForwardedProps:z,ownerState:H,additionalProps:{ref:n},className:[A.root,w]});return!S&&F?null:(0,d.jsx)(m,(0,o.Z)({onClickAway:$},C,{children:(0,d.jsx)(I,(0,o.Z)({},X,{children:(0,d.jsx)(O,(0,o.Z)({appear:!0,in:S,timeout:T,direction:"top"===p?"down":"up",onEnter:(e,n)=>{V(!1),P&&P(e,n)},onExited:e=>{V(!0),M&&M(e)}},j,{children:x||(0,d.jsx)(B,(0,o.Z)({message:L,action:f},b))}))}))}))}))}}]);