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.
 
 
 
 
 
 

1 lines
13 KiB

"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[141],{157:function(r,e,n){var t=n(5893),o=n(8262),i=n(7357),l=n(7294),c=n(7169),a=n(4825),u=n(4690),s=n(3679),f=n(2152),p=n(2416);function d(r,e){(null==e||e>r.length)&&(e=r.length);for(var n=0,t=new Array(e);n<e;n++)t[n]=r[n];return t}function y(r,e,n){return e in r?Object.defineProperty(r,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[e]=n,r}function b(r){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},t=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(n).filter((function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})))),t.forEach((function(e){y(r,e,n[e])}))}return r}function m(r,e){if(null==r)return{};var n,t,o=function(r,e){if(null==r)return{};var n,t,o={},i=Object.keys(r);for(t=0;t<i.length;t++)n=i[t],e.indexOf(n)>=0||(o[n]=r[n]);return o}(r,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);for(t=0;t<i.length;t++)n=i[t],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(r,n)&&(o[n]=r[n])}return o}function v(r){return function(r){if(Array.isArray(r))return d(r)}(r)||function(r){if("undefined"!==typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}(r)||function(r,e){if(!r)return;if("string"===typeof r)return d(r,e);var n=Object.prototype.toString.call(r).slice(8,-1);"Object"===n&&r.constructor&&(n=r.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(r,e)}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var g={blue:c.Ej,red:c.hM},O=(0,l.forwardRef)((function(r,e){var n=r.actionCancelText,d=void 0===n?"Cancel":n,y=r.actionProceedText,O=r.closeOnProceed,h=void 0!==O&&O,j=r.content,x=r.dialogProps,w=void 0===x?{}:x,P=w.open,A=void 0!==P&&P,S=w.PaperProps,Z=void 0===S?{}:S,C=r.loadingAction,k=void 0!==C&&C,I=r.onActionAppend,E=r.onCancelAppend,M=r.onProceedAppend,D=r.openInitially,R=void 0!==D&&D,T=r.proceedButtonProps,_=void 0===T?{}:T,N=r.proceedColour,F=void 0===N?"blue":N,U=r.titleText,q=m(r.dialogProps,["open","PaperProps"]),V=Z.sx,B=m(Z,["sx"]),$=_.sx,z=m(_,["sx"]),L=(0,l.useState)(R),G=L[0],H=L[1],W=(0,l.useMemo)((function(){return e?G:A}),[A,G,e]),J=(0,l.useMemo)((function(){return g[F]}),[F]),K=(0,l.useMemo)((function(){return(0,t.jsx)(a.Z,{onClick:function(){for(var r=arguments.length,e=new Array(r),n=0;n<r;n++)e[n]=arguments[n];var t,o;H(!1),null===I||void 0===I||(t=I).call.apply(t,[null].concat(v(e))),null===E||void 0===E||(o=E).call.apply(o,[null].concat(v(e)))},children:d})}),[d,I,E]),Q=(0,l.useMemo)((function(){return(0,t.jsx)(a.Z,b({onClick:function(){for(var r=arguments.length,e=new Array(r),n=0;n<r;n++)e[n]=arguments[n];var t,o;h&&H(!1),null===I||void 0===I||(t=I).call.apply(t,[null].concat(v(e))),null===M||void 0===M||(o=M).call.apply(o,[null].concat(v(e)))}},z,{sx:b({backgroundColor:J,color:c.lD,"&:hover":{backgroundColor:"".concat(J,"F0")}},$),children:y}))}),[y,h,I,M,$,J,z]),X=(0,l.useMemo)((function(){return k?(0,t.jsx)(f.Z,{mt:0}):(0,t.jsxs)(u.Z,{row:!0,spacing:".5em",sx:{justifyContent:"flex-end",width:"100%"},children:[K,Q]})}),[K,k,Q]);return(0,l.useImperativeHandle)(e,(function(){return{setOpen:function(r){return H(r)}}}),[]),(0,t.jsxs)(o.Z,b({open:W,PaperComponent:s.s_,PaperProps:b({},B,{sx:b({overflow:"visible"},V)})},q,{children:[(0,t.jsx)(s.V9,{children:(0,t.jsx)(p.z,{text:U})}),(0,t.jsx)(i.Z,{sx:{marginBottom:"1em"},children:"string"===typeof j?(0,t.jsx)(p.Ac,{text:j}):j}),X]}))}));O.displayName="ConfirmDialog",e.Z=O},4825:function(r,e,n){var t=n(5893),o=n(3321),i=n(7294),l=n(7169);function c(r,e,n){return e in r?Object.defineProperty(r,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[e]=n,r}function a(r){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},t=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(n).filter((function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})))),t.forEach((function(e){c(r,e,n[e])}))}return r}function u(r,e){if(null==r)return{};var n,t,o=function(r,e){if(null==r)return{};var n,t,o={},i=Object.keys(r);for(t=0;t<i.length;t++)n=i[t],e.indexOf(n)>=0||(o[n]=r[n]);return o}(r,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);for(t=0;t<i.length;t++)n=i[t],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(r,n)&&(o[n]=r[n])}return o}e.Z=function(r){var e=r.sx,n=u(r,["sx"]),c=(0,i.useMemo)((function(){return a({backgroundColor:l.lD,color:l.E5,textTransform:"none","&:hover":{backgroundColor:l.s7}},e)}),[e]);return(0,t.jsx)(o.Z,a({variant:"contained"},n,{sx:c}))}},8187:function(r,e,n){var t=n(5893),o=n(7294),i=n(7357),l=n(4799),c=n(6576),a=n(238),u=n(6195),s=n(5537),f=n(7169),p=n(2416);function d(r,e){(null==e||e>r.length)&&(e=r.length);for(var n=0,t=new Array(e);n<e;n++)t[n]=r[n];return t}function y(r,e,n){return e in r?Object.defineProperty(r,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[e]=n,r}function b(r){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},t=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(n).filter((function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})))),t.forEach((function(e){y(r,e,n[e])}))}return r}function m(r,e){if(null==r)return{};var n,t,o=function(r,e){if(null==r)return{};var n,t,o={},i=Object.keys(r);for(t=0;t<i.length;t++)n=i[t],e.indexOf(n)>=0||(o[n]=r[n]);return o}(r,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);for(t=0;t<i.length;t++)n=i[t],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(r,n)&&(o[n]=r[n])}return o}function v(r){return function(r){if(Array.isArray(r))return d(r)}(r)||function(r){if("undefined"!==typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}(r)||function(r,e){if(!r)return;if("string"===typeof r)return d(r,e);var n=Object.prototype.toString.call(r).slice(8,-1);"Object"===n&&r.constructor&&(n=r.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(r,e)}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var g="MessageBox",O={error:"".concat(g,"-error"),info:"".concat(g,"-info"),warning:"".concat(g,"-warning")},h={error:(0,t.jsx)(c.Z,{}),info:(0,t.jsx)(a.Z,{}),warning:(0,t.jsx)(u.Z,{})},j={isShowInitially:!0,isAllowClose:!1,onClose:void 0,onCloseAppend:void 0,text:void 0,type:"info"},x=function(r){var e=r.children,n=r.isAllowClose,c=void 0===n?j.isAllowClose:n,a=r.isShowInitially,u=void 0===a?j.isShowInitially:a,d=r.onClose,g=r.onCloseAppend,x=r.type,w=void 0===x?j.type:x,P=r.text,A=m(r,["children","isAllowClose","isShowInitially","onClose","onCloseAppend","type","text"]),S=A.sx,Z=(0,o.useState)(u),C=Z[0],k=Z[1],I=(0,o.useMemo)((function(){return c||void 0!==d||void 0!==g}),[c,d,g]),E=(0,o.useCallback)((function(r){return O[r]}),[]),M=(0,o.useCallback)((function(r){return void 0===h[r]?h.info:h[r]}),[]),D=(0,o.useCallback)((function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return(0,t.jsx)(p.Ac,{inverted:"info"===r,children:n})}),[e]),R=(0,o.useMemo)((function(){var r;return b((y(r={alignItems:"center",borderRadius:f.n_,display:"flex",flexDirection:"row",padding:".3em .6em","& > *":{color:f.lD},"& > :first-child":{marginRight:".3em"},"& > :nth-child(2)":{flexGrow:1}},"&.".concat(O.error),{backgroundColor:f.hM}),y(r,"&.".concat(O.info),{backgroundColor:f.s7,"& > *":{color:"".concat(f.E5)}}),y(r,"&.".concat(O.warning),{backgroundColor:f.Wd}),r),S)}),[S]);return C?(0,t.jsxs)(i.Z,b({},A,{className:E(w),sx:R,children:[M(w),D(w,P),I&&(0,t.jsx)(l.Z,{onClick:null!==d&&void 0!==d?d:function(){for(var r=arguments.length,e=new Array(r),n=0;n<r;n++)e[n]=arguments[n];var t;k(!1),null===g||void 0===g||(t=g).call.apply(t,[null].concat(v(e)))},children:(0,t.jsx)(s.Z,{sx:{fontSize:"1.25rem"}})})]})):(0,t.jsx)(t.Fragment,{})};x.defaultProps=j,e.Z=x},9:function(r,e,n){n.d(e,{Z:function(){return g}});var t=n(5893),o=n(2186),i=n(5697),l=n(4799),c=n(4656),a=n(7709),u=n(7294),s=n(7169),f=n(4188);function p(r,e){(null==e||e>r.length)&&(e=r.length);for(var n=0,t=new Array(e);n<e;n++)t[n]=r[n];return t}function d(r,e,n){return e in r?Object.defineProperty(r,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[e]=n,r}function y(r){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},t=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(n).filter((function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})))),t.forEach((function(e){d(r,e,n[e])}))}return r}function b(r,e){if(null==r)return{};var n,t,o=function(r,e){if(null==r)return{};var n,t,o={},i=Object.keys(r);for(t=0;t<i.length;t++)n=i[t],e.indexOf(n)>=0||(o[n]=r[n]);return o}(r,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);for(t=0;t<i.length;t++)n=i[t],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(r,n)&&(o[n]=r[n])}return o}function m(r){return function(r){if(Array.isArray(r))return p(r)}(r)||function(r){if("undefined"!==typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}(r)||function(r,e){if(!r)return;if("string"===typeof r)return p(r,e);var n=Object.prototype.toString.call(r).slice(8,-1);"Object"===n&&r.constructor&&(n=r.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(r,e)}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var v=function(r){var e=r.endAdornment,n=r.label,p=r.onPasswordVisibilityAppend,v=r.sx,g=r.inputProps,O=(void 0===g?{}:g).type,h=r.type,j=void 0===h?O:h,x=b(r.inputProps,["type"]),w=b(r,["endAdornment","label","onPasswordVisibilityAppend","sx","inputProps","type"]),P=(0,u.useState)(j),A=P[0],S=P[1],Z=(0,u.useMemo)((function(){var r=j===f.Z.password,e=A===f.Z.password;return(0,t.jsx)(t.Fragment,{children:r&&(0,t.jsx)(l.Z,{onClick:function(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];var o,i=e?f.Z.text:f.Z.password;S(i),null===p||void 0===p||(o=p).call.apply(o,[null,i].concat(m(n)))},children:e?(0,t.jsx)(o.Z,{}):(0,t.jsx)(i.Z,{})})})}),[j,p,A]),C=(0,u.useMemo)((function(){var r;return y((d(r={color:s.s7},"& .".concat(c.Z.notchedOutline),{borderColor:s.UZ}),d(r,"& .".concat(c.Z.input),{color:s.lD}),d(r,"&:hover",d({},"& .".concat(c.Z.notchedOutline),{borderColor:s.s7})),d(r,"&.".concat(c.Z.focused),d({color:s.lD},"& .".concat(c.Z.notchedOutline),{borderColor:s.s7,"& legend":{paddingRight:n?"1.2em":0}})),r),v)}),[n,v]),k=(0,u.useMemo)((function(){var r;if("object"===typeof e){var n=e,o=n.props.children,i=void 0===o?[]:o,l=b(n.props,["children"]);r=(0,u.cloneElement)(n,y({},l,{children:(0,t.jsxs)(t.Fragment,{children:[Z,i]})}))}return r}),[Z,e]);return(0,t.jsx)(a.Z,y({endAdornment:k,label:n,inputProps:y({type:A},x)},w,{sx:C}))};v.defaultProps={onPasswordVisibilityAppend:void 0};var g=v},192:function(r,e,n){n.d(e,{Z:function(){return d}});var t=n(5893),o=n(6400),i=n(2994),l=n(6727),c=n(76),a=n(7357),u=n(7169);function s(r,e,n){return e in r?Object.defineProperty(r,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[e]=n,r}function f(r){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},t=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(n).filter((function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})))),t.forEach((function(e){s(r,e,n[e])}))}return r}function p(r,e){if(null==r)return{};var n,t,o=function(r,e){if(null==r)return{};var n,t,o={},i=Object.keys(r);for(t=0;t<i.length;t++)n=i[t],e.indexOf(n)>=0||(o[n]=r[n]);return o}(r,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);for(t=0;t<i.length;t++)n=i[t],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(r,n)&&(o[n]=r[n])}return o}var d=function(r){var e,n=r.children,d=r.isNotifyRequired,y=r.sx,b=r.variant,m=void 0===b?"outlined":b,v=p(r,["children","isNotifyRequired","sx","variant"]),g=f((s(e={color:"".concat(u.s7,"9F")},"& .".concat(i.Z.root),{color:u.s7}),s(e,"&.".concat(l.Z.focused),{backgroundColor:u.s7,borderRadius:u.n_,color:u.E5,padding:".1em .6em"}),s(e,"&.".concat(l.Z.shrink," .").concat(i.Z.root),{display:"none"}),e),y);return(0,t.jsx)(c.Z,f({variant:m},v,{sx:g,children:(0,t.jsxs)(a.Z,{sx:{alignItems:"center",display:"flex",flexDirection:"row"},children:[d&&(0,t.jsx)(o.Z,{sx:{marginLeft:"-.2rem",marginRight:".4rem"}}),n]})}))}},4390:function(r,e,n){var t=n(9669),o=n.n(t),i=n(2029),l=new t.Axios({baseURL:i.Z,transformRequest:o().defaults.transformRequest,transformResponse:o().defaults.transformResponse,validateStatus:function(r){return r<400}});e.Z=l},4188:function(r,e){e.Z={number:"number",password:"password",text:"text"}}}]);