Local modifications to ClusterLabs/Anvil by Alteeve
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.

20 lines
17 KiB

(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[753],{62675:function(e,t,n){"use strict";var l=n(64836);t.Z=void 0;var r=l(n(64938)),o=n(85893),i=(0,r.default)((0,o.jsx)("path",{d:"M20 3H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h6v2H8v2h8v-2h-2v-2h6c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"}),"DesktopWindows");t.Z=i},31846:function(e,t,n){"use strict";var l=n(64836);t.Z=void 0;var r=l(n(64938)),o=n(85893),i=(0,r.default)((0,o.jsx)("path",{d:"M20 5H4c-1.1 0-1.99.9-1.99 2L2 17c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm-9 3h2v2h-2V8zm0 3h2v2h-2v-2zM8 8h2v2H8V8zm0 3h2v2H8v-2zm-1 2H5v-2h2v2zm0-3H5V8h2v2zm9 7H8v-2h8v2zm0-4h-2v-2h2v2zm0-3h-2V8h2v2zm3 3h-2v-2h2v2zm0-3h-2V8h2v2z"}),"Keyboard");t.Z=i},57976:function(e,t,n){"use strict";var l=n(64836);t.Z=void 0;var r=l(n(64938)),o=n(85893),i=(0,r.default)((0,o.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert");t.Z=i},39858:function(e,t,n){"use strict";var l=n(64836);t.Z=void 0;var r=l(n(64938)),o=n(85893),i=(0,r.default)((0,o.jsx)("path",{d:"M13 3h-2v10h2V3zm4.83 2.17-1.42 1.42C17.99 7.86 19 9.81 19 12c0 3.87-3.13 7-7 7s-7-3.13-7-7c0-2.19 1.01-4.14 2.58-5.42L6.17 5.17C4.23 6.82 3 9.26 3 12c0 4.97 4.03 9 9 9s9-4.03 9-9c0-2.74-1.23-5.18-3.17-6.83z"}),"PowerSettingsNew");t.Z=i},74808:function(e,t,n){"use strict";var l=n(64836);t.Z=void 0;var r=l(n(64938)),o=n(85893),i=(0,r.default)((0,o.jsx)("path",{d:"M13 3h-2v10h2V3zm4.83 2.17-1.42 1.42C17.99 7.86 19 9.81 19 12c0 3.87-3.13 7-7 7s-7-3.13-7-7c0-2.19 1.01-4.14 2.58-5.42L6.17 5.17C4.23 6.82 3 9.26 3 12c0 4.97 4.03 9 9 9s9-4.03 9-9c0-2.74-1.23-5.18-3.17-6.83z"}),"PowerSettingsNewOutlined");t.Z=i},41171:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/server",function(){return n(49666)}])},73393:function(e,t,n){"use strict";var l=n(85893),r=n(90948),o=n(67294),i=n(25934),a=n(19467),s=n(55238),c=n(81796);let u=(0,r.ZP)(s.Z)({justifyContent:"flex-end",width:"100%"});t.Z=e=>{let{actions:t=[],loading:n}=e,r=(0,o.useMemo)(()=>t.map(e=>(0,l.jsx)(a.Z,{...e,children:e.children},(0,i.Z)())),[t]);return n?(0,l.jsx)(c.Z,{mt:0}):(0,l.jsx)(u,{row:!0,spacing:".5em",children:r})}},56597:function(e,t,n){"use strict";var l=n(85893),r=n(5616),o=n(67294),i=n(56211),a=n(55238),s=n(4121),c=n(84154);let u=(0,o.forwardRef)((e,t)=>{let{actionCancelText:n="Cancel",actionProceedText:u,children:d,closeOnProceed:h=!1,contentContainerProps:p,dialogProps:f,disableProceed:m,loading:g,loadingAction:v=!1,onActionAppend:x,onCancelAppend:b,onProceedAppend:_,openInitially:j,preActionArea:w,proceedButtonProps:Z,proceedColour:y="blue",scrollContent:C=!1,scrollBoxProps:k,showActionArea:P=!0,showCancel:M,showClose:D,titleText:O,wide:S,content:z=d}=e,A=(0,o.useRef)(null),V=(0,o.useMemo)(()=>(0,s.Z)(z,c.Ac),[z]),L=(0,o.useMemo)(()=>(0,o.createElement)(C?i.VZ:r.Z,k,V),[V,k,C]),R=(0,o.useMemo)(()=>P&&(0,l.jsx)(i.ux,{cancelProps:{children:n,onClick:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];null==x||x.call(null,...t),null==b||b.call(null,...t)}},closeOnProceed:h,loading:v,proceedProps:{background:y,children:u,disabled:m,onClick:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];null==x||x.call(null,...t),null==_||_.call(null,...t)},...Z},showCancel:M}),[n,u,h,m,v,x,b,_,Z,y,P,M]);return(0,o.useImperativeHandle)(t,()=>({setOpen:e=>{var t;return null===(t=A.current)||void 0===t?void 0:t.setOpen(e)}}),[]),(0,l.jsx)(i.Js,{dialogProps:f,header:O,loading:g,openInitially:j,ref:A,showClose:D,wide:S,children:(0,l.jsxs)(a.Z,{...p,children:[L,w,R]})})});u.displayName="ConfirmDialog",t.Z=u},56211:function(e,t,n){"use strict";n.d(t,{ux:function(){return Dialog_DialogActionGroup},VZ:function(){return x},Js:function(){return _}});var l=n(85893),r=n(78262),o=n(67294),i=n(37260),a=n(81796);let s=(0,o.createContext)(void 0),c=(0,o.forwardRef)((e,t)=>{let{children:n,dialogProps:c={},loading:u,openInitially:d=!1,wide:h}=e,{open:p,PaperProps:f={},...m}=c,{sx:g,...v}=f,[x,b]=(0,o.useState)(d),_=(0,o.use
@copyright (c) 2017-present James Kyle <me@thejameskyle.com>
MIT License
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
*/Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return c}});let l=n(38754),r=l._(n(67294)),o=n(37747),i=[],a=[],s=!1;function load(e){let t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then(e=>(n.loading=!1,n.loaded=e,e)).catch(e=>{throw n.loading=!1,n.error=e,e}),n}let LoadableSubscription=class LoadableSubscription{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}};function Loadable(e){return function(e,t){let n=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),l=null;function init(){if(!l){let t=new LoadableSubscription(e,n);l={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return l.promise()}if(!s){let e=n.webpack?n.webpack():n.modules;e&&a.push(t=>{for(let n of e)if(t.includes(n))return init()})}function LoadableComponent(e,t){!function(){init();let e=r.default.useContext(o.LoadableContext);e&&Array.isArray(n.modules)&&n.modules.forEach(t=>{e(t)})}();let i=r.default.useSyncExternalStore(l.subscribe,l.getCurrentValue,l.getCurrentValue);return r.default.useImperativeHandle(t,()=>({retry:l.retry}),[]),r.default.useMemo(()=>{var t;return i.loading||i.error?r.default.createElement(n.loading,{isLoading:i.loading,pastDelay:i.pastDelay,timedOut:i.timedOut,error:i.error,retry:l.retry}):i.loaded?r.default.createElement((t=i.loaded)&&t.default?t.default:t,e):null},[e,i])}return LoadableComponent.preload=()=>init(),LoadableComponent.displayName="LoadableComponent",r.default.forwardRef(LoadableComponent)}(load,e)}function flushInitializers(e,t){let n=[];for(;e.length;){let l=e.pop();n.push(l(t))}return Promise.all(n).then(()=>{if(e.length)return flushInitializers(e,t)})}Loadable.preloadAll=()=>new Promise((e,t)=>{flushInitializers(i).then(e,t)}),Loadable.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let res=()=>(s=!0,t());flushInitializers(a,e).then(res,res)})),window.__NEXT_PRELOADREADY=Loadable.preloadReady;let c=Loadable},49666:function(e,t,n){"use strict";n.r(t);var l=n(85893),r=n(90948),o=n(5616),i=n(9008),a=n.n(i),s=n(11163),c=n(67294),u=n(81302),d=n(21405);let h="Server",p={preview:"".concat(h,"-preview"),fullView:"".concat(h,"-fullView")},f=(0,r.ZP)("div")(e=>{let{theme:t}=e;return{["& .".concat(p.preview)]:{width:"25%",height:"100%",[t.breakpoints.down("md")]:{width:"100%"}},["& .".concat(p.fullView)]:{display:"flex",flexDirection:"row",width:"100%",justifyContent:"center"}}});t.default=()=>{let[e,t]=(0,c.useState)(!0),n=(0,s.useRouter)(),{server_name:r,server_state:i,uuid:h,vnc:m}=n.query,g=((null==m?void 0:m.toString())||"").length>0,v=(null==r?void 0:r.toString())||"",x=(null==i?void 0:i.toString())||"",b=(null==h?void 0:h.toString())||"";return(0,c.useEffect)(()=>{g&&t(!1)},[g]),(0,l.jsxs)(f,{children:[(0,l.jsx)(a(),{children:(0,l.jsx)("title",{children:v})}),(0,l.jsx)(d.Z,{}),e?(0,l.jsx)(o.Z,{className:p.preview,children:(0,l.jsx)(u.M,{onClickPreview:()=>{t(!1)},serverName:v,serverState:x,serverUUID:b})}):(0,l.jsx)(o.Z,{className:p.fullView,children:(0,l.jsx)(u.S,{onClickClose