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.

4 lines
256 KiB

(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[161],{37574:function(e,t,r){"use strict";let l,n;r.d(t,{_:function(){return ur}});var o,i,a,s,u,c,d,p,f,m,g,h,b,v,C,w,y,x,R,k,S,Z,E,P,M,I,T,_,F=r(67294),O=r(45697),D=r.n(O),H=r(87462),L=r(63366);function j(){for(var e,t,r=0,l="";r<arguments.length;)(e=arguments[r++])&&(t=function e(t){var r,l,n="";if("string"==typeof t||"number"==typeof t)n+=t;else if("object"==typeof t){if(Array.isArray(t))for(r=0;r<t.length;r++)t[r]&&(l=e(t[r]))&&(n&&(n+=" "),n+=l);else for(r in t)t[r]&&(n&&(n+=" "),n+=r)}return n}(e))&&(l&&(l+=" "),l+=t);return l}var z=r(75228),A=r(28735),V=r(23769),$=r(94780),N=r(89262),B=r(41796),U=r(73490);let G=(0,N.ZP)("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,t)=>[{[`&.${U._.autoHeight}`]:t.autoHeight},{[`& .${U._.editBooleanCell}`]:t.editBooleanCell},{[`& .${U._["cell--editing"]}`]:t["cell--editing"]},{[`& .${U._["cell--textCenter"]}`]:t["cell--textCenter"]},{[`& .${U._["cell--textLeft"]}`]:t["cell--textLeft"]},{[`& .${U._["cell--textRight"]}`]:t["cell--textRight"]},{[`& .${U._["cell--withRenderer"]}`]:t["cell--withRenderer"]},{[`& .${U._.cell}`]:t.cell},{[`& .${U._.cellContent}`]:t.cellContent},{[`& .${U._.cellCheckbox}`]:t.cellCheckbox},{[`& .${U._.checkboxInput}`]:t.checkboxInput},{[`& .${U._["columnHeader--alignCenter"]}`]:t["columnHeader--alignCenter"]},{[`& .${U._["columnHeader--alignLeft"]}`]:t["columnHeader--alignLeft"]},{[`& .${U._["columnHeader--alignRight"]}`]:t["columnHeader--alignRight"]},{[`& .${U._["columnHeader--dragging"]}`]:t["columnHeader--dragging"]},{[`& .${U._["columnHeader--moving"]}`]:t["columnHeader--moving"]},{[`& .${U._["columnHeader--numeric"]}`]:t["columnHeader--numeric"]},{[`& .${U._["columnHeader--sortable"]}`]:t["columnHeader--sortable"]},{[`& .${U._["columnHeader--sorted"]}`]:t["columnHeader--sorted"]},{[`& .${U._.columnHeader}`]:t.columnHeader},{[`& .${U._.columnHeaderCheckbox}`]:t.columnHeaderCheckbox},{[`& .${U._.columnHeaderDraggableContainer}`]:t.columnHeaderDraggableContainer},{[`& .${U._.columnHeaderTitleContainer}`]:t.columnHeaderTitleContainer},{[`& .${U._["columnSeparator--resizable"]}`]:t["columnSeparator--resizable"]},{[`& .${U._["columnSeparator--resizing"]}`]:t["columnSeparator--resizing"]},{[`& .${U._.columnSeparator}`]:t.columnSeparator},{[`& .${U._.filterIcon}`]:t.filterIcon},{[`& .${U._.iconSeparator}`]:t.iconSeparator},{[`& .${U._.menuIcon}`]:t.menuIcon},{[`& .${U._.menuIconButton}`]:t.menuIconButton},{[`& .${U._.menuOpen}`]:t.menuOpen},{[`& .${U._.menuList}`]:t.menuList},{[`& .${U._["row--editable"]}`]:t["row--editable"]},{[`& .${U._["row--editing"]}`]:t["row--editing"]},{[`& .${U._["row--dragging"]}`]:t["row--dragging"]},{[`& .${U._.row}`]:t.row},{[`& .${U._.rowReorderCellPlaceholder}`]:t.rowReorderCellPlaceholder},{[`& .${U._.rowReorderCell}`]:t.rowReorderCell},{[`& .${U._["rowReorderCell--draggable"]}`]:t["rowReorderCell--draggable"]},{[`& .${U._.sortIcon}`]:t.sortIcon},{[`& .${U._.withBorder}`]:t.withBorder},{[`& .${U._.treeDataGroupingCell}`]:t.treeDataGroupingCell},{[`& .${U._.treeDataGroupingCellToggle}`]:t.treeDataGroupingCellToggle},{[`& .${U._.detailPanelToggleCell}`]:t.detailPanelToggleCell},{[`& .${U._["detailPanelToggleCell--expanded"]}`]:t["detailPanelToggleCell--expanded"]},t.root]})(({theme:e})=>{let t="light"===e.palette.mode?(0,B.$n)((0,B.Fq)(e.palette.divider,1),.88):(0,B._j)((0,B.Fq)(e.palette.divider,1),.68);return(0,H.Z)({flex:1,boxSizing:"border-box",position:"relative",border:`1px solid ${t}`,borderRadius:e.shape.borderRadius,color:e.palette.text.primary},e.typography.body2,{outline:"none",height:"100%",display:"flex",flexDirection:"column",[`&.${U._.autoHeight}`]:{height:"auto",[`& .${U._["row--lastVisible"]} .${U._.cell}`]:{borderBottomColor:"transparent"}},[`& .${U._["virtualScrollerContent--overflowed"]} .${U._["row--lastVisible"]} .${U._.cell}`]:{borderBottomColor:"transparent"},[`& .${U._.columnHeader}, & .${U._.cell}`]:{WebkitTapHighlightColor:"transparent",lineHeight:null,padding:"0 10px",boxSizing:"border-box"},[`& .${U._.columnHeader}:focus-within, & .
`,"").trim();if(!o)return i;let a=`${t.filter(e=>e.field!==nV.field).map(e=>n$(e.headerName||e.field,n)).join(n)}\r
`;return`${a}${i}`.trim()}({columns:nB({apiRef:e,options:r}),rowIds:(null!=(l=r.getRowsToExport)?l:nU)({apiRef:e}),getCellParams:e.current.getCellParams,delimiterCharacter:r.delimiter||",",includeHeaders:null==(n=r.includeHeaders)||n})},[t,e]),l=F.useCallback(e=>{t.debug("Export data as CSV");let l=r(e);!function(e,t="csv",r=document.title||"untitled"){let l=`${r}.${t}`;if("download"in HTMLAnchorElement.prototype){let t=URL.createObjectURL(e),r=document.createElement("a");r.href=t,r.download=l,r.click(),setTimeout(()=>{URL.revokeObjectURL(t)});return}throw Error("MUI: exportAs not supported")}(new Blob([null!=e&&e.utf8WithBom?new Uint8Array([239,187,191]):"",l],{type:"text/csv"}),"csv",null==e?void 0:e.fileName)},[t,r]);th(e,{getDataAsCsv:r,exportDataAsCsv:l},"GridCsvExportApi"),tB(e,"exportMenu",F.useCallback((e,t)=>{var r;return null!=(r=t.csvOptions)&&r.disableToolbarButton?e:[...e,{component:(0,eT.jsx)(nG,{options:t.csvOptions}),componentName:"csvExport"}]},[]))};var nq=r(19194);let nY=e=>e.rowsMeta,nX=(e,t)=>{let r=eD(e,"useGridPrintExport"),l=F.useRef(null),n=F.useRef(null),o=F.useRef({});F.useEffect(()=>{l.current=(0,nq.Z)(e.current.rootElementRef.current)},[e]);let i=F.useCallback((t,r)=>new Promise(l=>{if(!t&&!r){l();return}let n=nB({apiRef:e,options:{fields:t,allColumns:r}}).map(e=>e.field),o=el(e),i={};o.forEach(e=>{i[e.field]=n.includes(e.field)}),e.current.setColumnVisibilityModel(i),l()}),[e]),a=F.useCallback(e=>{let t=document.createElement("iframe");return t.id="grid-print-window",t.src=window.location.href,t.style.position="absolute",t.style.width="0px",t.style.height="0px",t.title=e||document.title,t},[]),s=F.useCallback((t,r)=>{var n,o,i,a,s;let u=(0,H.Z)({copyStyles:!0,hideToolbar:!1,hideFooter:!1},r);t.onload=null;let c=t.contentDocument||(null==(n=t.contentWindow)?void 0:n.document);if(!c)return;let d=eM(e),p=nY(e.current.state),f=e.current.rootElementRef.current,m=f.cloneNode(!0),g=m.querySelector(`.${U._.virtualScroller}`);g.style.height="auto",g.style.width="auto",g.parentElement.style.width="auto",g.parentElement.style.height="auto",m.querySelector(`.${U._.main}`).style.overflow="visible",m.querySelector(`.${U._.columnHeaders}`).querySelector(`.${U._.columnHeadersInner}`).style.width="100%";let h=(null==(o=f.querySelector(`.${U._.toolbarContainer}`))?void 0:o.clientHeight)||0,b=(null==(i=f.querySelector(`.${U._.footerContainer}`))?void 0:i.clientHeight)||0;u.hideToolbar&&(null==(a=m.querySelector(`.${U._.toolbarContainer}`))||a.remove(),h=0),u.hideFooter&&(null==(s=m.querySelector(`.${U._.footerContainer}`))||s.remove(),b=0),m.style.height=`${p.currentPageTotalHeight+d+h+b}px`,c.body.innerHTML="",c.body.appendChild(m);let v="function"==typeof u.pageStyle?u.pageStyle():u.pageStyle;if("string"==typeof v){let e=c.createElement("style");e.appendChild(c.createTextNode(v)),c.head.appendChild(e)}if(u.bodyClassName&&c.body.classList.add(...u.bodyClassName.split(" ")),u.copyStyles){let e=l.current.querySelectorAll("style, link[rel='stylesheet']");for(let t=0;t<e.length;t+=1){let r=e[t];if("STYLE"===r.tagName){let e=c.createElement(r.tagName),t=r.sheet;if(t){let r="";for(let e=0;e<t.cssRules.length;e+=1)"string"==typeof t.cssRules[e].cssText&&(r+=`${t.cssRules[e].cssText}\r
`);e.appendChild(c.createTextNode(r)),c.head.appendChild(e)}}else if(r.getAttribute("href")){let e=c.createElement(r.tagName);for(let t=0;t<r.attributes.length;t+=1){let l=r.attributes[t];l&&e.setAttribute(l.nodeName,l.nodeValue||"")}c.head.appendChild(e)}}}t.contentWindow.print()},[e,l]),u=F.useCallback(t=>{var r,i;l.current.body.removeChild(t),e.current.restoreState(n.current||{}),null!=(r=n.current)&&null!=(i=r.columns)&&i.columnVisibilityModel||e.current.setColumnVisibilityModel(o.current),e.current.unstable_enableVirtualization(),n.current=null,o.current={}},[e]),c=F.useCallback(async c=>{if(r.debug("Export data as Print"),!e.current.rootElementRef.current)throw Error("MUI: No grid root element available.");if(n.current=e.current.exportState(),o.current=en(e),t.pagination){let t=e6(e);e.current.setPageSize(t)}await i(null==c?void 0:c.fields,null==c?void 0:c.allColumns),e.current.unstable_disableVirtualization();let d=a(null==c?void 0:c.fileName);l.current.body.appendChild(d),d.onload=()=>s(d,c),d.contentWindow.onafterprint=()=>u(d)},[t,r,e,a,s,u,i]);th(e,{exportDataAsPrint:c},"GridPrintExportApi"),tB(e,"exportMenu",F.useCallback((e,t)=>{var r;return null!=(r=t.printOptions)&&r.disableToolbarButton?e:[...e,{component:(0,eT.jsx)(nK,{options:t.printOptions}),componentName:"printExport"}]},[]))},nQ="client";(f=Z||(Z={})).And="and",f.Or="or";let nJ=()=>({items:[],linkOperator:Z.And,quickFilterValues:[],quickFilterLogicOperator:Z.And}),n0=(e,t,r,l)=>{let n=F.useCallback(()=>{e.current.unstable_registerStrategyProcessor(t,r,l)},[e,l,r,t]);tN(()=>{n()});let o=F.useRef(!0);F.useEffect(()=>{o.current?o.current=!1:n()},[n])},n1=(e,t)=>{let r=(0,H.Z)({},e);if(null==r.id&&(r.id=Math.round(1e5*Math.random())),null==r.operatorValue){let e=er(t)[r.columnField];r.operatorValue=e&&e.filterOperators[0].value}return r},n2=X(["MUI: The `filterModel` can only contain a single item when the `disableMultipleColumnsFiltering` prop is set to `true`.","If you are using the community version of the `DataGrid`, this prop is always `true`."],"error"),n5=X("MUI: The 'id' field is required on `filterModel.items` when you use multiple filters.","error"),n9=X(["MUI: One of your filtering item have no `operatorValue` provided.","This property will become required on `@mui/x-data-grid@6.X`."]),n4=(e,t,r)=>{let l;let n=e.items.length>1;n&&t?(n2(),l=[e.items[0]]):l=e.items;let o=n&&l.some(e=>null==e.id),i=l.some(e=>null==e.operatorValue);return(o&&n5(),i&&n9(),i||o)?(0,H.Z)({},e,{items:l.map(e=>n1(e,r))}):e.items!==l?(0,H.Z)({},e,{items:l}):e},n6=(e,t,r)=>l=>(0,H.Z)({},l,{filterModel:n4(e,t,r)}),n8=(e,t)=>{let{items:r,linkOperator:l=Z.And}=e,n=r.map(e=>{let r;if(!e.columnField||!e.operatorValue)return null;let l=t.current.getColumn(e.columnField);if(!l)return null;if(l.valueParser){var n;let t=l.valueParser;r=Array.isArray(e.value)?null==(n=e.value)?void 0:n.map(e=>t(e)):t(e.value)}else r=e.value;let o=(0,H.Z)({},e,{value:r}),i=l.filterOperators;if(!(null!=i&&i.length))throw Error(`MUI: No filter operators found for column '${l.field}'.`);let a=i.find(e=>e.value===o.operatorValue);if(!a)throw Error(`MUI: No filter operator found for column '${l.field}' and operator value '${o.operatorValue}'.`);let s=a.getApplyFilterFn(o,l);return"function"!=typeof s?null:{fn:e=>s(t.current.getCellParams(e,o.columnField)),item:o}}).filter(e=>!!e);return 0===n.length?null:(e,t)=>{let r=t?n.filter(e=>t(e.item.columnField)):n;return l===Z.And?r.every(t=>t.fn(e)):r.some(t=>t.fn(e))}},n3=(e,t)=>{let{quickFilterValues:r=[],quickFilterLogicOperator:l=Z.And}=e;if(0===r.length)return null;let n=et(t),o={};n.forEach(e=>{let l=t.current.getColumn(e),n=null==l?void 0:l.getApplyQuickFilterFn;n&&(o[e]=r.map(e=>n(e,l,t)))});let i=r.filter((e,t)=>Object.keys(o).some(e=>null!=o[e][t]));return(e,r)=>{let n={},a=[];return(Object.keys(o).forEach(l=>{(!r||r(l))&&(n[l]=t.current.getCellParams(e,l),a.push(l))}),l===Z.And)?i.every((e,t)=>a.some(e=>{var r,l;return null!=o[e][t]&&(null==(r=(l=o[e])[t])?void 0:r.call(l,n[e]))})):i.some((e,t)=>a.some(e=>{var r,l;return null!=o[e][t]&&(null==(r=(l