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 line
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.getO