You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
9.6 KiB
1 line
9.6 KiB
1 year ago
|
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[586],{8262:function(e,r,n){n.d(r,{Z:function(){return P}});var i=n(3366),t=n(7462),o=n(7294),a=n(6010),s=n(7192),l=n(7579),c=n(8216),p=n(9964),d=n(6628),u=n(5113),m=n(3616),g=n(1496),x=n(8979);function h(e){return(0,x.Z)("MuiDialog",e)}var f=(0,n(6087).Z)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]);var S=(0,o.createContext)({}),w=n(7227),b=n(2734),$=n(5893);const v=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],W=(0,g.ZP)(w.Z,{name:"MuiDialog",slot:"Backdrop",overrides:(e,r)=>r.backdrop})({zIndex:-1}),k=(0,g.ZP)(p.Z,{name:"MuiDialog",slot:"Root",overridesResolver:(e,r)=>r.root})({"@media print":{position:"absolute !important"}}),Z=(0,g.ZP)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,r)=>{const{ownerState:n}=e;return[r.container,r[`scroll${(0,c.Z)(n.scroll)}`]]}})((({ownerState:e})=>(0,t.Z)({height:"100%","@media print":{height:"auto"},outline:0},"paper"===e.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===e.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}))),y=(0,g.ZP)(u.Z,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,r)=>{const{ownerState:n}=e;return[r.paper,r[`scrollPaper${(0,c.Z)(n.scroll)}`],r[`paperWidth${(0,c.Z)(String(n.maxWidth))}`],n.fullWidth&&r.paperFullWidth,n.fullScreen&&r.paperFullScreen]}})((({theme:e,ownerState:r})=>(0,t.Z)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===r.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===r.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!r.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===r.maxWidth&&{maxWidth:"px"===e.breakpoints.unit?Math.max(e.breakpoints.values.xs,444):`${e.breakpoints.values.xs}${e.breakpoints.unit}`,[`&.${f.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},"xs"!==r.maxWidth&&{maxWidth:`${e.breakpoints.values[r.maxWidth]}${e.breakpoints.unit}`,[`&.${f.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[r.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},r.fullWidth&&{width:"calc(100% - 64px)"},r.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${f.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})));var P=o.forwardRef((function(e,r){const n=(0,m.Z)({props:e,name:"MuiDialog"}),p=(0,b.Z)(),g={enter:p.transitions.duration.enteringScreen,exit:p.transitions.duration.leavingScreen},{"aria-describedby":x,"aria-labelledby":f,BackdropComponent:w,BackdropProps:P,children:M,className:C,disableEscapeKeyDown:N=!1,fullScreen:B=!1,fullWidth:D=!1,maxWidth:z="sm",onBackdropClick:j,onClose:R,open:F,PaperComponent:T=u.Z,PaperProps:E={},scroll:G="paper",TransitionComponent:A=d.Z,transitionDuration:I=g,TransitionProps:K}=n,_=(0,i.Z)(n,v),L=(0,t.Z)({},n,{disableEscapeKeyDown:N,fullScreen:B,fullWidth:D,maxWidth:z,scroll:G}),X=(e=>{const{classes:r,scroll:n,maxWidth:i,fullWidth:t,fullScreen:o}=e,a={root:["root"],container:["container",`scroll${(0,c.Z)(n)}`],paper:["paper",`paperScroll${(0,c.Z)(n)}`,`paperWidth${(0,c.Z)(String(i))}`,t&&"paperFullWidth",o&&"paperFullScreen"]};return(0,s.Z)(a,h,r)})(L),Y=o.useRef(),H=(0,l.Z)(f),O=o.useMemo((()=>({titleId:H})),[H]);return(0,$.jsx)(k,(0,t.Z)({className:(0,a.Z)(X.root,C),BackdropProps:(0,t.Z)({transitionDuration:I,as:w},P),closeAfterTransition:!0,BackdropComponent:W,disableEscapeKeyDown:N,onClose:R,open:F,ref:r,onClick:e=>{Y.curre
|