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 lines
5.0 KiB
1 lines
5.0 KiB
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[753],{9309:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var i=n(3366),o=n(7462),r=n(7294),s=n(6010),a=n(7192),d=n(1796),c=n(1496),l=n(3616),u=n(9773),p=n(7739),f=n(8974),m=n(1705),v=n(5097),b=n(4592);var g=(0,n(6087).Z)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),h=n(2429),Z=n(5893);const y=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex"],w=(0,c.ZP)(p.Z,{shouldForwardProp:e=>(0,c.FO)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>(0,o.Z)({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${e.palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${h.Z.selected}`]:{backgroundColor:(0,d.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${h.Z.focusVisible}`]:{backgroundColor:(0,d.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${h.Z.selected}:hover`]:{backgroundColor:(0,d.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(0,d.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${h.Z.focusVisible}`]:{backgroundColor:e.palette.action.focus},[`&.${h.Z.disabled}`]:{opacity:e.palette.action.disabledOpacity},[`& + .${v.Z.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${v.Z.inset}`]:{marginLeft:52},[`& .${g.root}`]:{marginTop:0,marginBottom:0},[`& .${g.inset}`]:{paddingLeft:36},[`& .${b.Z.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&(0,o.Z)({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${b.Z.root} svg`]:{fontSize:"1.25rem"}}))));var x=r.forwardRef((function(e,t){const n=(0,l.Z)({props:e,name:"MuiMenuItem"}),{autoFocus:d=!1,component:c="li",dense:p=!1,divider:v=!1,disableGutters:b=!1,focusVisibleClassName:g,role:x="menuitem",tabIndex:C}=n,k=(0,i.Z)(n,y),j=r.useContext(u.Z),N={dense:p||j.dense||!1,disableGutters:b},S=r.useRef(null);(0,f.Z)((()=>{d&&S.current&&S.current.focus()}),[d]);const _=(0,o.Z)({},n,{dense:N.dense,divider:v,disableGutters:b}),O=(e=>{const{disabled:t,dense:n,divider:i,disableGutters:r,selected:s,classes:d}=e,c={root:["root",n&&"dense",t&&"disabled",!r&&"gutters",i&&"divider",s&&"selected"]},l=(0,a.Z)(c,h.K,d);return(0,o.Z)({},d,l)})(n),$=(0,m.Z)(S,t);let I;return n.disabled||(I=void 0!==C?C:-1),(0,Z.jsx)(u.Z.Provider,{value:N,children:(0,Z.jsx)(w,(0,o.Z)({ref:$,role:x,tabIndex:I,component:c,focusVisibleClassName:(0,s.Z)(O.focusVisible,g)},k,{ownerState:_,classes:O}))})}))},2429:function(e,t,n){"use strict";n.d(t,{K:function(){return o}});var i=n(8979);function o(e){return(0,i.Z)("MuiMenuItem",e)}const r=(0,n(6087).Z)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);t.Z=r},8954:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/server",function(){return n(1142)}])},8336:function(e,t){"use strict";t.Z=function(e,t){return fetch(e,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})}},1142:function(e,t,n){"use strict";n.r(t);var i=n(5893),o=n(7294),r=n(1163),s=n(9008),a=n(7357),d=n(1496),c=n(7906),l=n(5716);function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p="Server",f={preview:"".concat(p,"-preview"),fullView:"".concat(p,"-fullView")},m=(0,d.ZP)("div")((function(e){var t,n=e.theme;return u(t={},"& .".concat(f.preview),u({width:"25%",height:"100%"},n.breakpoints.down("md"),{width:"100%"})),u(t,"& .".concat(f.fullView),{display:"flex",flexDirection:"row",width:"100%",justifyContent:"center"}),t}));t.default=function(){var e=(0,o.useState)(!0),t=e[0],n=e[1],d=(0,r.useRouter)().query,u=d.server_name,p=d.uuid,v=d.vnc,b=((null===v||void 0===v?void 0:v.toString())||"").length>0,g=(null===p||void 0===p?void 0:p.toString())||"",h=(null===u||void 0===u?void 0:u.toString())||"";return(0,o.useEffect)((function(){b&&n(!1)}),[b]),(0,i.jsxs)(m,{children:[(0,i.jsx)(s.default,{children:(0,i.jsx)("title",{children:h})}),(0,i.jsx)(l.Z,{}),t?(0,i.jsx)(a.Z,{className:f.preview,children:(0,i.jsx)(c.M,{onClickPreview:function(){n(!1)},serverName:h,serverUUID:g})}):(0,i.jsx)(a.Z,{className:f.fullView,children:(0,i.jsx)(c.S,{onClickCloseButton:function(){n(!0)},serverUUID:g,serverName:h})})]})}},9008:function(e,t,n){e.exports=n(5443)},1163:function(e,t,n){e.exports=n(387)}},function(e){e.O(0,[738,7,142,315,818,906,774,888,179],(function(){return t=8954,e(e.s=t);var t}));var t=e.O();_N_E=t}]); |