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

"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[284],{1363:function(e,r,n){var t=n(5893),o=n(8187);function i(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function l(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{},t=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),t.forEach((function(r){i(e,r,n[r])}))}return e}function u(e,r){if(null==e)return{};var n,t,o=function(e,r){if(null==e)return{};var n,t,o={},i=Object.keys(e);for(t=0;t<i.length;t++)n=i[t],r.indexOf(n)>=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t<i.length;t++)n=i[t],r.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}r.Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.sx,n=e.text,i=u(e,["sx","text"]);return(0,t.jsx)(t.Fragment,{children:n&&(0,t.jsx)(o.Z,l({},i,{sx:l({marginTop:".4em"},r),text:n}))})}},9:function(e,r,n){n.d(r,{Z:function(){return g}});var t=n(5893),o=n(2186),i=n(5697),l=n(4799),u=n(4656),c=n(7709),a=n(7294),s=n(7169),f=n(4188);function p(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n<r;n++)t[n]=e[n];return t}function d(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function b(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{},t=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),t.forEach((function(r){d(e,r,n[r])}))}return e}function y(e,r){if(null==e)return{};var n,t,o=function(e,r){if(null==e)return{};var n,t,o={},i=Object.keys(e);for(t=0;t<i.length;t++)n=i[t],r.indexOf(n)>=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t<i.length;t++)n=i[t],r.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function m(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,r){if(!e)return;if("string"===typeof e)return p(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.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(e,r)}(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 v=function(e){var r=e.endAdornment,n=e.label,p=e.onPasswordVisibilityAppend,v=e.sx,g=e.inputProps,O=(void 0===g?{}:g).type,h=e.type,j=void 0===h?O:h,x=y(e.inputProps,["type"]),P=y(e,["endAdornment","label","onPasswordVisibilityAppend","sx","inputProps","type"]),w=(0,a.useState)(j),Z=w[0],S=w[1],A=(0,a.useMemo)((function(){var e=j===f.Z.password,r=Z===f.Z.password;return(0,t.jsx)(t.Fragment,{children:e&&(0,t.jsx)(l.Z,{onClick:function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];var o,i=r?f.Z.text:f.Z.password;S(i),null===p||void 0===p||(o=p).call.apply(o,[null,i].concat(m(n)))},children:r?(0,t.jsx)(o.Z,{}):(0,t.jsx)(i.Z,{})})})}),[j,p,Z]),k=(0,a.useMemo)((function(){var e;return b((d(e={color:s.s7},"& .".concat(u.Z.notchedOutline),{borderColor:s.UZ}),d(e,"& .".concat(u.Z.input),{color:s.lD}),d(e,"&:hover",d({},"& .".concat(u.Z.notchedOutline),{borderColor:s.s7})),d(e,"&.".concat(u.Z.focused),d({color:s.lD},"& .".concat(u.Z.notchedOutline),{borderColor:s.s7,"& legend":{paddingRight:n?"1.2em":0}})),e),v)}),[n,v]),C=(0,a.useMemo)((function(){var e;if("object"===typeof r){var n=r,o=n.props.children,i=void 0===o?[]:o,l=y(n.props,["children"]);e=(0,a.cloneElement)(n,b({},l,{children:(0,t.jsxs)(t.Fragment,{children:[A,i]})}))}return e}),[A,r]);return(0,t.jsx)(c.Z,b({endAdornment:C,label:n,inputProps:b({type:Z},x)},P,{sx:k}))};v.defaultProps={onPasswordVisibilityAppend:void 0};var g=v},192:function(e,r,n){n.d(r,{Z:function(){return d}});var t=n(5893),o=n(6400),i=n(2994),l=n(6727),u=n(76),c=n(7357),a=n(7169);function s(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function f(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{},t=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),t.forEach((function(r){s(e,r,n[r])}))}return e}function p(e,r){if(null==e)return{};var n,t,o=function(e,r){if(null==e)return{};var n,t,o={},i=Object.keys(e);for(t=0;t<i.length;t++)n=i[t],r.indexOf(n)>=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t<i.length;t++)n=i[t],r.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var d=function(e){var r,n=e.children,d=e.isNotifyRequired,b=e.sx,y=e.variant,m=void 0===y?"outlined":y,v=p(e,["children","isNotifyRequired","sx","variant"]),g=f((s(r={color:"".concat(a.s7,"9F")},"& .".concat(i.Z.root),{color:a.s7}),s(r,"&.".concat(l.Z.focused),{backgroundColor:a.s7,borderRadius:a.n_,color:a.E5,padding:".1em .6em"}),s(r,"&.".concat(l.Z.shrink," .").concat(i.Z.root),{display:"none"}),r),b);return(0,t.jsx)(u.Z,f({variant:m},v,{sx:g,children:(0,t.jsxs)(c.Z,{sx:{alignItems:"center",display:"flex",flexDirection:"row"},children:[d&&(0,t.jsx)(o.Z,{sx:{marginLeft:"-.2rem",marginRight:".4rem"}}),n]})}))}},6284:function(e,r,n){var t=n(5893),o=n(5685),i=n(3640),l=n(1057),u=n(6239),c=n(4799),a=n(7294),s=n(7169),f=n(1363),p=n(9),d=n(192);function b(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n<r;n++)t[n]=e[n];return t}function y(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function m(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{},t=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),t.forEach((function(r){y(e,r,n[r])}))}return e}function v(e,r){if(null==e)return{};var n,t,o=function(e,r){if(null==e)return{};var n,t,o={},i=Object.keys(e);for(t=0;t<i.length;t++)n=i[t],r.indexOf(n)>=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t<i.length;t++)n=i[t],r.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function g(e){return function(e){if(Array.isArray(e))return b(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,r){if(!e)return;if("string"===typeof e)return b(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.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 b(e,r)}(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 O={baseInputProps:void 0,fillRow:!1,formControlProps:{},helpMessageBoxProps:{},id:"",inputProps:{},inputLabelProps:{},messageBoxProps:{},onHelp:void 0,onHelpAppend:void 0,required:!1,type:void 0,value:""},h=function(e){var r,n=e.baseInputProps,b=e.fillRow,h=void 0===b?O.fillRow:b,j=e.formControlProps,x=void 0===j?O.formControlProps:j,P=e.helpMessageBoxProps,w=void 0===P?O.helpMessageBoxProps:P,Z=e.id,S=void 0===Z?O.id:Z,A=e.inputProps,k=(void 0===A?O.inputProps:A).endAdornment,C=e.inputLabelProps,E=void 0===C?O.inputLabelProps:C,I=e.label,M=e.messageBoxProps,R=void 0===M?O.messageBoxProps:M,B=e.name,D=e.onBlur,F=e.onChange,q=e.onFocus,L=e.onHelp,N=e.onHelpAppend,_=e.required,H=void 0===_?O.required:_,T=e.type,U=e.value,V=void 0===U?O.value:U,W=v(e.inputProps,["endAdornment"]),$=x.sx,z=v(x,["sx"]),G=w.text,J=void 0===G?"":G,K=(0,a.useState)(!1),Q=K[0],X=K[1],Y=(0,a.useMemo)((function(){return h?"100%":void 0}),[h]),ee=(0,a.useMemo)((function(){return Q&&(0,t.jsx)(f.Z,m({onClose:function(){X(!1)}},w))}),[w,Q]),re=(0,a.useMemo)((function(){return void 0!==L||J.length>0}),[J,L]),ne=(0,a.useCallback)((function(){var e;return L?e=L:J.length>0&&(e=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var t;X((function(e){return!e})),null===N||void 0===N||(t=N).call.apply(t,[null].concat(g(r)))}),e}),[J,L,N]),te=(0,a.useMemo)(ne,[ne]);return(0,t.jsxs)(i.Z,m({fullWidth:!0},z,{sx:m({width:Y},$),children:[(0,t.jsx)(d.Z,m({htmlFor:S,isNotifyRequired:H},E,{children:I})),(0,t.jsx)(p.Z,m({endAdornment:(0,t.jsxs)(l.Z,{position:"end",sx:(r={display:"flex",flexDirection:"row"},y(r,"& > .".concat(u.Z.root),{color:s.s7,padding:".2em"}),y(r,"& > :not(:first-child, .".concat(u.Z.root,")"),{marginLeft:".3em"}),r),children:[k,re&&(0,t.jsx)(c.Z,{onClick:te,tabIndex:-1,children:(0,t.jsx)(o.Z,{})})]}),fullWidth:x.fullWidth,id:S,inputProps:n,label:I,name:B,onBlur:D,onChange:F,onFocus:q,type:T,value:V},W)),ee,(0,t.jsx)(f.Z,m({},R))]}))};h.defaultProps=O,r.Z=h},4188:function(e,r){r.Z={checkbox:"checkbox",number:"number",password:"password",text:"text"}}}]);