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
10 KiB

"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[140],{157:function(e,n,r){var t=r(5893),o=r(7357),l=r(8262),i=r(7294),c=r(7169),u=r(4825),a=r(4690),s=r(3679),f=r(2152),d=r(7750);function p(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=new Array(n);r<n;r++)t[r]=e[r];return t}function b(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function v(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},t=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),t.forEach((function(n){b(e,n,r[n])}))}return e}function m(e,n){if(null==e)return{};var r,t,o=function(e,n){if(null==e)return{};var r,t,o={},l=Object.keys(e);for(t=0;t<l.length;t++)r=l[t],n.indexOf(r)>=0||(o[r]=e[r]);return o}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(t=0;t<l.length;t++)r=l[t],n.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function y(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(!e)return;if("string"===typeof e)return p(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return p(e,n)}(e)||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},h=(0,i.forwardRef)((function(e,n){var r=e.actionCancelText,p=void 0===r?"Cancel":r,b=e.actionProceedText,h=e.contentContainerProps,O=void 0===h?{}:h,j=e.closeOnProceed,x=void 0!==j&&j,P=e.content,C=e.dialogProps,w=void 0===C?{}:C,Z=w.open,k=void 0!==Z&&Z,S=w.PaperProps,A=void 0===S?{}:S,M=e.disableProceed,E=e.formContent,I=e.loading,B=void 0!==I&&I,D=e.loadingAction,T=void 0!==D&&D,H=e.onActionAppend,R=e.onCancelAppend,F=e.onProceedAppend,_=e.onSubmitAppend,N=e.openInitially,V=void 0!==N&&N,q=e.preActionArea,z=e.proceedButtonProps,W=void 0===z?{}:z,L=e.proceedColour,U=void 0===L?"blue":L,X=e.scrollContent,Y=void 0!==X&&X,$=e.scrollBoxProps,G=(void 0===$?{}:$).sx,J=e.titleText,K=m(e.dialogProps,["open","PaperProps"]),Q=m(e.scrollBoxProps,["sx"]),ee=A.sx,ne=m(A,["sx"]),re=W.disabled,te=void 0===re?M:re,oe=W.sx,le=m(W,["disabled","sx"]),ie=(0,i.useState)(V),ce=ie[0],ue=ie[1],ae=(0,i.useMemo)((function(){return n?ce:k}),[k,ce,n]),se=(0,i.useMemo)((function(){return g[U]}),[U]),fe=(0,i.useMemo)((function(){var e,n,r,t=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var t,o;x&&ue(!1),null===H||void 0===H||(t=H).call.apply(t,[null].concat(y(n))),null===F||void 0===F||(o=F).call.apply(o,[null].concat(y(n)))};return E&&(e="form",n=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),t=1;t<n;t++)r[t-1]=arguments[t];var o;e.preventDefault(),x&&ue(!1),null===_||void 0===_||(o=_).call.apply(o,[null,e].concat(y(r)))},t=void 0,r="submit"),{contentContainerComponent:e,contentContainerSubmitEventHandler:n,proceedButtonClickEventHandler:t,proceedButtonType:r}}),[x,E,H,F,_]),de=fe.contentContainerComponent,pe=fe.contentContainerSubmitEventHandler,be=fe.proceedButtonClickEventHandler,ve=fe.proceedButtonType,me=(0,i.useMemo)((function(){return(0,t.jsx)(u.Z,{onClick:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var t,o;ue(!1),null===H||void 0===H||(t=H).call.apply(t,[null].concat(y(n))),null===R||void 0===R||(o=R).call.apply(o,[null].concat(y(n)))},children:p})}),[p,H,R]),ye=(0,i.useMemo)((function(){return(0,t.jsx)(u.Z,v({disabled:te,onClick:be,type:ve},le,{sx:v({backgroundColor:se,color:c.lD,"&:hover":{backgroundColor:"".concat(se,"F0")}},oe),children:b}))}),[b,be,te,oe,ve,se,le]