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

"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[762],{4845:function(e,n,o){var l=o(85893),r=o(89262),t=o(67294),c=o(25934),i=o(99429),s=o(56903),a=o(25137);let u=(0,r.ZP)(s.Z)({justifyContent:"flex-end",width:"100%"});n.Z=e=>{let{actions:n=[],loading:o}=e,r=(0,t.useMemo)(()=>n.map(e=>(0,l.jsx)(i.Z,{...e,children:e.children},(0,c.Z)())),[n]);return o?(0,l.jsx)(a.Z,{mt:0}):(0,l.jsx)(u,{row:!0,spacing:".5em",children:r})}},77583:function(e,n,o){var l=o(85893),r=o(14440),t=o(67294),c=o(33544),i=o(56903),s=o(87006),a=o(59278);let u=(0,t.forwardRef)((e,n)=>{let{actionCancelText:o="Cancel",actionProceedText:u,children:d,closeOnProceed:p=!1,contentContainerProps:h,dialogProps:f,disableProceed:x,loading:Z,loadingAction:m=!1,onActionAppend:v,onCancelAppend:g,onProceedAppend:b,openInitially:j,preActionArea:C,proceedButtonProps:y,proceedColour:k="blue",scrollContent:P=!1,scrollBoxProps:w,showActionArea:M=!0,showCancel:A,showClose:R,titleText:O,wide:F,content:E=d}=e,D=(0,t.useRef)(null),W=(0,t.useMemo)(()=>(0,s.Z)(E,a.Ac),[E]),I=(0,t.useMemo)(()=>(0,t.createElement)(P?c.VZ:r.Z,w,W),[W,w,P]),N=(0,t.useMemo)(()=>M&&(0,l.jsx)(c.ux,{cancelProps:{children:o,onClick:function(){for(var e=arguments.length,n=Array(e),o=0;o<e;o++)n[o]=arguments[o];null==v||v.call(null,...n),null==g||g.call(null,...n)}},closeOnProceed:p,loading:m,proceedProps:{background:k,children:u,disabled:x,onClick:function(){for(var e=arguments.length,n=Array(e),o=0;o<e;o++)n[o]=arguments[o];null==v||v.call(null,...n),null==b||b.call(null,...n)},...y},showCancel:A}),[o,u,p,x,m,v,g,b,y,k,M,A]);return(0,t.useImperativeHandle)(n,()=>({setOpen:e=>{var n;return null===(n=D.current)||void 0===n?void 0:n.setOpen(e)}}),[]),(0,l.jsx)(c.Js,{dialogProps:f,header:O,loading:Z,openInitially:j,ref:D,showClose:R,wide:F,children:(0,l.jsxs)(i.Z,{...h,children:[I,C,N]})})});u.displayName="ConfirmDialog",n.Z=u},33544:function(e,n,o){o.d(n,{ux:function(){return p},VZ:function(){return b},Js:function(){return C}});var l=o(85893),r=o(92309),t=o(67294),c=o(23930),i=o(25137);let s=(0,t.createContext)(void 0),a=(0,t.forwardRef)((e,n)=>{let{children:o,dialogProps:a={},loading:u,openInitially:d=!1,wide:p}=e,{open:h,PaperProps:f={},...x}=a,{sx:Z,...m}=f,[v,g]=(0,t.useState)(d),b=(0,t.useMemo)(()=>null!=h?h:v,[v,h]),j=(0,t.useMemo)(()=>u?(0,l.jsx)(i.Z,{mt:0}):o,[o,u]),C=(0,t.useMemo)(()=>({minWidth:p?{xs:"calc(100%)",md:"50em"}:null,overflow:"visible",...Z}),[Z,p]);return(0,t.useImperativeHandle)(n,()=>({open:b,setOpen:g}),[b]),(0,l.jsx)(r.Z,{open:b,PaperComponent:c.s_,PaperProps:{...m,sx:C},...x,children:(0,l.jsx)(s.Provider,{value:{open:b,setOpen:g},children:j})})});a.displayName="Dialog";var u=o(4845);let d=function(e){let{handlers:{base:n,origin:o}}=e;for(var l=arguments.length,r=Array(l>1?l-1:0),t=1;t<l;t++)r[t-1]=arguments[t];null==n||n.call(null,...r),null==o||o.call(null,...r)};var p=e=>{let{cancelProps:n,closeOnProceed:o,loading:r=!1,onCancel:c=d,onProceed:i=d,proceedColour:a,proceedProps:p,showCancel:h=!0,cancelChildren:f=null==n?void 0:n.children,proceedChildren:x=null==p?void 0:p.children}=e,Z=(0,t.useContext)(s),m=(0,t.useCallback)(function(){for(var e=arguments.length,o=Array(e),l=0;l<e;l++)o[l]=arguments[l];return c({handlers:{base:()=>{null==Z||Z.setOpen(!1)},origin:null==n?void 0:n.onClick}},...o)},[null==n?void 0:n.onClick,Z,c]),v=(0,t.useCallback)(function(){for(var e=arguments.length,n=Array(e),l=0;l<e;l++)n[l]=arguments[l];return i({handlers:{base:()=>{o&&(null==Z||Z.setOpen(!1))},origin:null==p?void 0:p.onClick}},...n)},[o,Z,i,null==p?void 0:p.onClick]);return(0,t.useMemo)(()=>{let e=[{background:a,...p,children:x,onClick:v}];return h&&e.unshift({...n,children:f,onClick:m}),(0,l.jsx)(u.Z,{actions:e,loading:r})},[f,m,n,r,x,a,v,p,h])},h=o(65895),f=o(87006),x=o(59278),Z=e=>{let{children:n,onClose:o=function(e){let{handlers:{base:n}}=e;for(var o=arguments.length,l=Array(o>1?o-1:0),r=1;r<o;r++)l[r-1]=arguments[r];return null==n?void 0:n.call(null,...l)},showClose:r}=e,i=(0,t.useContext)(s),a=(0,t.useCallback)(function(){for(var e=arguments.length,n=Array(e),l=0;l<e;l++)n[l]=arguments[l];return o({handlers:{base:()=>{null==i||i.setOpen(!1)}}},...n)},[i,o]),u=(0,t.useMemo)(()=>(0,f.Z)(n,x.z),[n]),d=(0,t.useMemo)(()=>r&&(0,l.jsx)(h.Z,{mapPreset:"close",onClick:a,size:"small"}),[a,r]);return(0,l.jsxs)(c.V9,{children:[u,d]})},m=o(89262),v=o(14440);let g=(0,m.ZP)(v.Z)({overflowY:"scroll",paddingRight:".4em"});var b=(0,m.ZP)(g)({maxHeight:"60vh"});let j=(0,t.forwardRef)((e,n)=>{let{children:o,dialogProps:r,header:t,loading:c,onClose:i,openInitially:s,showClose:u,wide:d}=e;return(0,l.jsxs)(a,{dialogProps:r,loading:c,openInitially:s,ref:n,wide:d,children:[(0,l.jsx)(Z,{onClose:i,showClose:u,children:t}),o]})});j.displayName="DialogWithHeader";var C=j},34635:function(e,n,o){var l=o(85893),r=o(99576);n.Z=function(){let{sx:e,text:n,...o}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,l.jsx)(l.Fragment,{children:n&&(0,l.jsx)(r.Z,{...o,sx:{marginTop:".4em",...e},text:n})})}},23833:function(e,n,o){var l=o(85893),r=o(73970),t=o(85959),c=o(77831);n.Z=e=>{let{children:n,sx:o}=e,i={backgroundColor:c.lD,paddingRight:"3em",["&.".concat(r.Z.selected)]:{backgroundColor:c.s7,fontWeight:400,["&.".concat(r.Z.focusVisible)]:{backgroundColor:c.s7},"&:hover":{backgroundColor:c.s7}},["&.".concat(r.Z.focusVisible)]:{backgroundColor:c.s7},"&:hover":{backgroundColor:c.s7},...o};return(0,l.jsx)(t.Z,{...e,sx:i,children:n})}},15627:function(e,n,o){o.d(n,{Z:function(){return h}});var l=o(85893),r=o(19607),t=o(58811),c=o(80594),i=o(28721),s=o(61481),a=o(67294),u=o(77831),d=o(37842);let p=e=>{let{disableAutofill:n=!1,endAdornment:o,label:p,onPasswordVisibilityAppend:h,sx:f,inputProps:{type:x,...Z}={},type:m=x,...v}=e,[g,b]=(0,a.useState)(m),j=(0,a.useMemo)(()=>{let e=m===d.Z.password,n=g===d.Z.password;return(0,l.jsx)(l.Fragment,{children:e&&(0,l.jsx)(c.Z,{onClick:function(){for(var e=arguments.length,o=Array(e),l=0;l<e;l++)o[l]=arguments[l];let r=n?d.Z.text:d.Z.password;b(r),null==h||h.call(null,r,...o)},children:n?(0,l.jsx)(r.Z,{}):(0,l.jsx)(t.Z,{})})})},[m,h,g]),C=(0,a.useMemo)(()=>({color:u.s7,["& .".concat(i.Z.notchedOutline)]:{borderColor:u.UZ},["& .".concat(i.Z.input)]:{color:u.lD},"&:hover":{["& .".concat(i.Z.notchedOutline)]:{borderColor:u.s7}},["&.".concat(i.Z.focused)]:{color:u.lD,["& .".concat(i.Z.notchedOutline)]:{borderColor:u.s7,"& legend":{paddingRight:p?"1.2em":0}}},...f}),[p,f]),y=(0,a.useMemo)(()=>{let e;if("object"==typeof o){let{props:{children:n=[],...r}}=o;e=(0,a.cloneElement)(o,{...r,children:(0,l.jsxs)(l.Fragment,{children:[j,n]})})}return e},[j,o]),k=(0,a.useMemo)(()=>n?{onFocus:function(){for(var e,n=arguments.length,o=Array(n),l=0;l<n;l++)o[l]=arguments[l];let[r]=o;r.target.readOnly=!1,null==v||null===(e=v.onFocus)||void 0===e||e.call(null,...o)},readOnly:!0}:void 0,[n,null==v?void 0:v.onFocus]);return(0,l.jsx)(s.Z,{endAdornment:y,label:p,inputProps:{type:g,...Z},...v,...k,sx:C})};p.defaultProps={disableAutofill:!1,onPasswordVisibilityAppend:void 0};var h=p},79237:function(e,n,o){o.d(n,{Z:function(){return u}});var l=o(85893),r=o(21182),t=o(73315),c=o(69375),i=o(72341),s=o(14440),a=o(77831),u=e=>{let{children:n,isNotifyRequired:o,sx:u,variant:d="outlined",...p}=e,h={color:"".concat(a.s7,"9F"),["& .".concat(t.Z.root)]:{color:a.s7},["&.".concat(c.Z.focused)]:{backgroundColor:a.s7,borderRadius:a.n_,color:a.E5,padding:".1em .6em"},["&.".concat(c.Z.shrink," .").concat(t.Z.root)]:{display:"none"},...u};return(0,l.jsx)(i.Z,{variant:d,...p,sx:h,children:(0,l.jsxs)(s.Z,{sx:{alignItems:"center",display:"flex",flexDirection:"row"},children:[o&&(0,l.jsx)(r.Z,{sx:{marginLeft:"-.2rem",marginRight:".4rem"}}),n]})})}},91029:function(e,n,o){var l=o(85893),r=o(77970),t=o(51714),c=o(99657),i=o(80543),s=o(80594),a=o(67294),u=o(77831),d=o(34635),p=o(15627),h=o(79237);let f={baseInputProps:void 0,formControlProps:{},helpMessageBoxProps:{},id:"",inputProps:{},inputLabelProps:{},messageBoxProps:{},onHelp:void 0,onHelpAppend:void 0,required:!1,type:void 0,value:""},x=e=>{let{baseInputProps:n,disableAutofill:o,formControlProps:x=f.formControlProps,helpMessageBoxProps:Z=f.helpMessageBoxProps,id:m=f.id,inputProps:{endAdornment:v,...g}=f.inputProps,inputLabelProps:b=f.inputLabelProps,label:j,messageBoxProps:C=f.messageBoxProps,name:y,onBlur:k,onChange:P,onFocus:w,onHelp:M,onHelpAppend:A,required:R=f.required,type:O,value:F=f.value}=e,{text:E=""}=Z,[D,W]=(0,a.useState)(!1),I=(0,a.useMemo)(()=>D&&(0,l.jsx)(d.Z,{onClose:()=>{W(!1)},...Z}),[Z,D]),N=(0,a.useMemo)(()=>void 0!==M||E.length>0,[E,M]),B=(0,a.useCallback)(()=>{let e;return M?e=M:E.length>0&&(e=function(){for(var e=arguments.length,n=Array(e),o=0;o<e;o++)n[o]=arguments[o];W(e=>!e),null==A||A.call(null,...n)}),e},[E,M,A]),H=(0,a.useMemo)(B,[B]);return(0,l.jsxs)(t.Z,{fullWidth:!0,...x,children:[(0,l.jsx)(h.Z,{htmlFor:m,isNotifyRequired:R,...b,children:j}),(0,l.jsx)(p.Z,{disableAutofill:o,endAdornment:(0,l.jsxs)(c.Z,{position:"end",sx:{display:"flex",flexDirection:"row",["& > .".concat(i.Z.root)]:{color:u.s7,padding:".2em"},["& > :not(:first-child, .".concat(i.Z.root,")")]:{marginLeft:".3em"}},children:[v,N&&(0,l.jsx)(s.Z,{onClick:H,tabIndex:-1,children:(0,l.jsx)(r.Z,{})})]}),fullWidth:x.fullWidth,id:m,inputProps:n,label:j,name:y,onBlur:k,onChange:P,onFocus:w,type:O,value:F,...g}),I,(0,l.jsx)(d.Z,{...C})]})};x.defaultProps=f,n.Z=x},6189:function(e,n,o){o.d(n,{Z:function(){return j}});var l=o(85893),r=o(84799),t=o(20869),c=o(51714),i=o(67294),s=o(34635),a=o(23833),u=o(15627),d=o(79237),p=o(12641),h=o(49440),f=o(80543),x=o(79588),Z=o(99657),m=o(80594),v=o(64242),g=o(77831),b=function(){for(var e=arguments.length,n=Array(e),o=0;o<e;o++)n[o]=arguments[o];let[t]=n,{onClearIndicatorClick:c,...s}=t,{sx:a,value:u,...d}=s,b=(0,i.useMemo)(()=>({["& .".concat(r.Z.icon)]:{color:g.s7},["& .".concat(h.Z.root)]:{marginRight:".8em"},["& .".concat(f.Z.root)]:{color:g.s7,visibility:"hidden"},["&:hover .".concat(h.Z.root," .").concat(f.Z.root,",\n &.").concat(x.Z.focused," .").concat(h.Z.root," .").concat(f.Z.root)]:{visibility:"visible"},...a}),[a]),j=(0,i.useMemo)(()=>String(u).length>0&&c&&(0,l.jsx)(Z.Z,{position:"end",children:(0,l.jsx)(m.Z,{onClick:c,children:(0,l.jsx)(p.Z,{fontSize:"small"})})}),[c,u]);return(0,l.jsx)(v.Z,{endAdornment:j,value:u,...d,sx:b})},j=function(){for(var e=arguments.length,n=Array(e),o=0;o<e;o++)n[o]=arguments[o];let[p]=n,{id:h,label:f,selectItems:x,checkItem:Z,disableItem:m,formControlProps:v,hideItem:g,inputLabelProps:j={},isReadOnly:C=!1,messageBoxProps:y={},name:k,onBlur:P,onChange:w,onFocus:M,required:A,selectProps:{multiple:R,sx:O,...F}={},value:E,isCheckableItems:D=R}=p,W=(0,i.useMemo)(()=>C?{["& .".concat(r.Z.icon)]:{visibility:"hidden"},...O}:O,[C,O]),I=(0,i.useCallback)(e=>D&&(0,l.jsx)(t.Z,{checked:null==Z?void 0:Z.call(null,e)}),[Z,D]),N=(0,i.useCallback)((e,n)=>(0,l.jsxs)(a.Z,{disabled:null==m?void 0:m.call(null,e),sx:{display:(null==g?void 0:g.call(null,e))?"none":void 0},value:e,children:[I(e),n]},"".concat(h,"-").concat(e)),[I,m,g,h]),B=(0,i.useMemo)(()=>"".concat(h,"-select-element"),[h]),H=(0,i.useMemo)(()=>(0,l.jsx)(u.Z,{id:h,label:f}),[h,f]),S=(0,i.useMemo)(()=>f&&(0,l.jsx)(d.Z,{htmlFor:B,isNotifyRequired:A,...j,children:f}),[j,A,f,B]),V=(0,i.useMemo)(()=>x.map(e=>{if("string"==typeof e)return N(e,e);let{value:n,displayValue:o=String(n)}=e;return N(n,o)}),[N,x]);return(0,l.jsxs)(c.Z,{fullWidth:!0,...v,children:[S,(0,l.jsx)(b,{id:B,input:H,multiple:R,name:k,onBlur:P,onChange:w,onFocus:M,readOnly:C,value:E,...F,sx:W,children:V}),(0,l.jsx)(s.Z,{...y})]})}},37842:function(e,n){n.Z={checkbox:"checkbox",number:"number",password:"password",text:"text"}},38189:function(e,n,o){o.d(n,{FZ:function(){return a},JW:function(){return f},OU:function(){return p},Qt:function(){return h},ah:function(){return d},tf:function(){return u}});let l="[a-z0-9]",r="[a-z0-9-]",t="[0-9a-f]",c="(?:25[0-5]|(?:2[0-4]|1[0-9]|[1-9]|)[0-9])",i="(?:".concat(c,"[.]){3}").concat(c),s="".concat(t,"{8}-(?:").concat(t,"{4}-){3}").concat(t,"{12}"),a=new RegExp("^(?:".concat(l,"(?:").concat(r,"{0,61}").concat(l,")?[.])+").concat(l).concat(r,"{0,61}").concat(l,"$")),u=new RegExp("^".concat(i,"$")),d=new RegExp("^(?:".concat(i,"\\s*,\\s*)*").concat(i,"$")),p=/^[^'"/\\><}{]*$/,h=RegExp("^".concat(s,"$"),"i"),f=/(?=.*passw)(?!.*script).*/i},87006:function(e,n,o){var l=o(67294);n.Z=(e,n)=>"string"==typeof e?(0,l.createElement)(n,null,e):e}}]);