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

(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[941],{91953:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/file-manager",function(){return l(52288)}])},15079:function(e,t,l){"use strict";var n=l(85893),r=l(5616),i=l(97212),s=l(78462),o=l(65939),a=l(5744),c=l(55238),u=l(84154);let renderEntryValueWithMono=e=>{let{entry:t}=e;return(0,n.jsx)(u.$_,{whiteSpace:"nowrap",children:String(t)})},renderEntryValueWithPassword=e=>{let{entry:t,key:l}=e;return o.JW.test(l)?(0,n.jsx)(u.PJ,{monospaced:!0,children:String(t)}):renderEntryValueWithMono(e)},renderEntryValueBase=e=>{let{entry:t,hasPassword:l}=e;return["",null,void 0].some(e=>t===e)?(0,n.jsx)(u.Ac,{children:"none"}):l?renderEntryValueWithPassword(e):renderEntryValueWithMono(e)},renderEntryBase=e=>{let{depth:t,entry:l,getLabel:i,hasPassword:s,key:o,nest:d,renderValue:h}=e;return(0,n.jsxs)(c.Z,{fullWidth:!0,growFirst:!0,row:!0,maxWidth:"100%",children:[(0,n.jsx)(u.Ac,{children:i({cap:a.Z,depth:t,entry:l,hasPassword:s,key:o})}),(0,n.jsx)(r.Z,{sx:{maxWidth:"100%",overflowX:"scroll"},children:!d&&h(renderEntryValueBase,{depth:t,entry:l,hasPassword:s,key:o})})]})},skipBase=e=>{let{key:t}=e;return!/confirm|uuid/i.test(t)},buildEntryList=e=>{let{depth:t=0,entries:l,getEntryLabel:r,getListProps:o,getListItemProps:a,hasPassword:c,listKey:u,maxDepth:d,renderEntry:h,renderEntryValue:p,skip:m}=e,g=[];Object.entries(l).forEach(e=>{let[l,s]=e,o="form-summary-entry-".concat(l),u=null!==s&&"object"==typeof s,v=u?null:s,f={depth:t,entry:v,hasPassword:c,key:l};m(skipBase,f)&&g.push((0,n.jsx)(i.ZP,{sx:{paddingLeft:"".concat(t,"em")},...null==a?void 0:a.call(null,f),children:h({depth:t,entry:v,getLabel:r,hasPassword:c,key:l,nest:u,renderValue:p})},o)),u&&t<d&&g.push(buildEntryList({depth:t+1,entries:s,getEntryLabel:r,hasPassword:c,listKey:l,maxDepth:d,renderEntry:h,renderEntryValue:p,skip:m}))});let v="form-summary-list-".concat(null!=u?u:"root");return(0,n.jsx)(s.Z,{dense:!0,disablePadding:!0,...null==o?void 0:o.call(null,{depth:t,entries:l,key:u}),children:g},v)};t.Z=e=>{let{entries:t,getEntryLabel:l=e=>{let{cap:t,key:l}=e;return t(l)},getListProps:n,getListItemProps:r,hasPassword:i=!1,maxDepth:s=3,renderEntry:o=renderEntryBase,renderEntryValue:a=function(e){for(var t=arguments.length,l=Array(t>1?t-1:0),n=1;n<t;n++)l[n-1]=arguments[n];return e(...l)},skip:c=function(e){for(var t=arguments.length,l=Array(t>1?t-1:0),n=1;n<t;n++)l[n-1]=arguments[n];return e(...l)}}=e;return buildEntryList({entries:t,getEntryLabel:l,getListProps:n,getListItemProps:r,hasPassword:i,maxDepth:s,renderEntry:o,renderEntryValue:a,skip:c})}},21405:function(e,t,l){"use strict";l.d(t,{Z:function(){return components_Header}});var n=l(85893),r=l(41098),i=l(90948),s=l(42293),o=l(5616),a=l(82589),c=l(54799),u=l(67294),d=l(6010),h=l(25709),p=l(13540),m=l(77533),g=l(78462),v=l(97212),f=l(98619);let x=[{text:"Anvil",image:"/pngs/anvil_icon_on.png",uri:"/manage-element"},{text:"Files",image:"/pngs/files_on.png",uri:"/file-manager"},{text:"Configure",image:"/pngs/configure_icon_on.png",uri:"/config"},{text:"Mail",image:"/pngs/email_on.png",uri:"/mail-config"},{text:"Help",image:"/pngs/help_icon_on.png",uri:"https://alteeve.com/w/Support"}],j={width:"40em",height:"40em"};var Z=l(67645),b=l(57632),y=l(55238),w=l(41247),k=l(84154),F=l(34819);let C="AnvilDrawer",_={actionIcon:"".concat(C,"-actionIcon"),list:"".concat(C,"-list")},S=(0,i.ZP)(m.ZP)(()=>({["& .".concat(_.list)]:{width:"200px"},["& .".concat(_.actionIcon)]:{fontSize:"2.3em",color:d.of}}));var components_AnvilDrawer=e=>{let{open:t,setOpen:l}=e,{getSessionUser:r}=(0,F.Z)(),i=r();return(0,n.jsx)(S,{BackdropProps:{invisible:!0},anchor:"left",open:t,onClose:()=>l(!t),children:(0,n.jsx)("div",{role:"presentation",children:(0,n.jsxs)(g.Z,{className:_.list,children:[(0,n.jsx)(v.ZP,{children:(0,n.jsx)(k.Ac,{children:i?(0,n.jsxs)(n.Fragment,{children:["Welcome, ",i.name]}):"Unregistered"})}),(0,n.jsx)(b.Z,{}),(0,n.jsx)(f.Z,{component:"a",href:"/index.html",children:(0,n.jsxs)(y.Z,{fullWidth:!0,row:!0,spacing:"2em",children:[(0,n.jsx)(h.Z,{className:_.actionIcon}