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.
5 lines
278 KiB
5 lines
278 KiB
11 months ago
|
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[197],{8280:function(e,t,r){"use strict";var l=r(64836);t.Z=void 0;var n=l(r(64938)),o=r(85893),i=(0,n.default)((0,o.jsx)("path",{d:"M20 9H4v2h16V9zM4 15h16v-2H4v2z"}),"DragHandle");t.Z=i},34386:function(e,t,r){"use strict";r.d(t,{Z:function(){return F}});var l=r(63366),n=r(87462),o=r(67294),i=r(63961),a=r(94780),s=r(10238),u=r(41796),c=r(90948),d=r(2734),p=r(71657),g=r(98216),m=r(96514),f=r(48831),h=r(2068),b=r(51705),C=r(27909),v=r(18791),w=r(49299),y=r(1588),S=r(34867);function getTooltipUtilityClass(e){return(0,S.Z)("MuiTooltip",e)}let x=(0,y.Z)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);var R=r(85893);let P=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"],useUtilityClasses=e=>{let{classes:t,disableInteractive:r,arrow:l,touch:n,placement:o}=e,i={popper:["popper",!r&&"popperInteractive",l&&"popperArrow"],tooltip:["tooltip",l&&"tooltipArrow",n&&"touch",`tooltipPlacement${(0,g.Z)(o.split("-")[0])}`],arrow:["arrow"]};return(0,a.Z)(i,getTooltipUtilityClass,t)},E=(0,c.ZP)(f.Z,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})(({theme:e,ownerState:t,open:r})=>(0,n.Z)({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${x.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${x.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${x.arrow}`]:(0,n.Z)({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${x.arrow}`]:(0,n.Z)({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),k=(0,c.ZP)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${(0,g.Z)(r.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>(0,n.Z)({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:(0,u.Fq)(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${Math.round(1e5*(16/14))/1e5}em`,fontWeight:e.typography.fontWeightRegular},{[`.${x.popper}[data-popper-placement*="left"] &`]:(0,n.Z)({transformOrigin:"right center"},t.isRtl?(0,n.Z)({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):(0,n.Z)({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${x.popper}[data-popper-placement*="right"] &`]:(0,n.Z)({transformOrigin:"left center"},t.isRtl?(0,n.Z)({marginRight:"14px"},t.touch&&{marginRight:"24px"}):(0,n.Z)({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${x.popper}[data-popper-placement*="top"] &`]:(0,n.Z)({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${x.popper}[data-popper-placement*="bottom"] &`]:(0,n.Z)({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),M=(0,c.ZP)("s
|
||
|
`,"").trim();if(!o)return i;let a=`${t.filter(e=>e.field!==rO.field).map(e=>serializeCellValue(e.headerName||e.field,n)).join(n)}\r
|
||
|
`;return`${a}${i}`.trim()}({columns:o,rowIds:a,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),n=new Blob([null!=e&&e.utf8WithBom?new Uint8Array([239,187,191]):"",l],{type:"text/csv"});!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")}(n,"csv",null==e?void 0:e.fileName)},[t,r]);useGridApiMethod(e,{getDataAsCsv:r,exportDataAsCsv:l},"GridCsvExportApi");let n=F.useCallback((e,t)=>{var r;return null!=(r=t.csvOptions)&&r.disableToolbarButton?e:[...e,{component:(0,ew.jsx)(GridCsvExportMenuItem,{options:t.csvOptions}),componentName:"csvExport"}]},[]);useGridRegisterPipeProcessor(e,"exportMenu",n)};var rA=r(8038);let gridRowsMetaSelector=e=>e.rowsMeta,useGridPrintExport=(e,t)=>{let r=useGridLogger(e,"useGridPrintExport"),l=F.useRef(null),n=F.useRef(null),o=F.useRef({});F.useEffect(()=>{l.current=(0,rA.Z)(e.current.rootElementRef.current)},[e]);let i=F.useCallback((t,r)=>new Promise(l=>{if(!t&&!r){l();return}let n=getColumnsToExport({apiRef:e,options:{fields:t,allColumns:r}}).map(e=>e.field),o=Y(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,A.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=eC(e),p=gridRowsMetaSelector(e.current.state),g=e.current.rootElementRef.current,m=g.cloneNode(!0),f=m.querySelector(`.${N._.virtualScroller}`);f.style.height="auto",f.style.width="auto",f.parentElement.style.width="auto",f.parentElement.style.height="auto";let h=m.querySelector(`.${N._.main}`);h.style.overflow="visible";let b=m.querySelector(`.${N._.columnHeaders}`),C=b.querySelector(`.${N._.columnHeadersInner}`);C.style.width="100%";let v=(null==(o=g.querySelector(`.${N._.toolbarContainer}`))?void 0:o.clientHeight)||0,w=(null==(i=g.querySelector(`.${N._.footerContainer}`))?void 0:i.clientHeight)||0;u.hideToolbar&&(null==(a=m.querySelector(`.${N._.toolbarContainer}`))||a.remove(),v=0),u.hideFooter&&(null==(s=m.querySelector(`.${N._.footerContainer}`))||s.remove(),w=0),m.style.height=`${p.currentPageTotalHeight+d+v+w}px`,c.body.innerHTML="",c.body.appendChild(m);let y="function"==typeof u.pageStyle?u.pageStyle():u.pageStyle;if("string"==typeof y){let e=c.createElement("style");e.appendChild(c.createTextNode(y)),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=X(e),t.pagination){let t=ez(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]);useGridApiMethod(e,{exportDataAsPrint:c},"GridPrintExportApi");let d=F.useCallback((e,t)=>{var r;return null!=(r=t.printOptions)&&r.disableToolbarButton?e:[...e,{component:(0,ew.jsx)(GridPrintExportMenuItem,{options:t.printOptions}),componentName:"printExport"}]},[]);useGridRegisterPipeProcessor(e,"exportMenu",d)},rH={client:"client",server:"server"};(g=E||(E={})).And="and",g.Or="or";let getDefaultGridFilterModel=()=>({items:[],linkOperator:E.And,quickFilterValues:[],quickFilterLogicOperator:E.And}),useGridRegisterStrategyProcessor=(e,t,r,l)=>{let n=F.useCallback(()=>{e.current.unstable_registerStrategyProcessor(t,r,l)},[e,l,r,t]);useFirstRender(()=>{n()});let o=F.useRef(!0);F.useEffect(()=>{o.current?o.current=!1:n()},[n])},cleanFilterItem=(e,t)=>{let r=(0,A.Z)({},e);if(null==r.id&&(r.id=Math.round(1e5*Math.random())),null==r.operatorValue){let e=Q(t)[r.columnField];r.operatorValue=e&&e.filterOperators[0].value}return r},rD=buildWarning(["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"),rL=buildWarning("MUI: The 'id' field is required on `filterModel.items` when you use multiple filters.","error"),rz=buildWarning(["MUI: One of your filtering item have no `operatorValue` provided.","This property will become required on `@mui/x-data-grid@6.X`."]),sanitizeFilterModel=(e,t,r)=>{let l;let n=e.items.length>1;n&&t?(rD(),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&&rL(),i&&rz(),i||o)?(0,A.Z)({},e,{items:l.map(e=>cleanFilterItem(e,r))}):e.items!==l?(0,A.Z)({},e,{items:l}):e},mergeStateWithFilterModel=(e,t,r)=>l=>(0,A.Z)({},l,{filterModel:sanitizeFilterModel(e,t,r)}),buildAggregatedFilterItemsApplier=(e,t)=>{let{items:r,linkOperator:l=E.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,A.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=>{let r=t.current.getCellParams(e,o.columnField);return s(r)},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===E.And?r.every(t=>t.fn(e)):r.some(t=>t.fn(e))}},buildAggregatedQuickFilterApplier=(e,t)=>{let{quickFilterValues:r=[],quickFilterLogicOperator:l=E.And}=e;if(0===r.length)return null;let n=q(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(
|
||
|
${"light"===e.palette.mode?(0,$.$n)((0,$.Fq)(e.palette.divider,1),.88):(0,$._j)((0,$.Fq)(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},"head"===t.variant&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},"body"===t.variant&&{color:(e.vars||e).palette.text.primary},"footer"===t.variant&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},"small"===t.size&&{padding:"6px 16px",[`&.${lE.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===t.padding&&{width:48,padding:"0 0 0 4px"},"none"===t.padding&&{padding:0},"left"===t.align&&{textAlign:"left"},"center"===t.align&&{textAlign:"center"},"right"===t.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===t.align&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),lI=F.forwardRef(function(e,t){let r;let l=(0,tx.Z)({props:e,name:"MuiTableCell"}),{align:n="inherit",className:o,component:i,padding:a,scope:s,size:u,sortDirection:c,variant:d}=l,p=(0,H.Z)(l,lk),g=F.useContext(lR),m=F.useContext(lP),f=m&&"head"===m.variant,h=s;"td"===(r=i||(f?"th":"td"))?h=void 0:!h&&f&&(h="col");let b=d||m&&m.variant,C=(0,A.Z)({},l,{align:n,component:r,padding:a||(g&&g.padding?g.padding:"normal"),size:u||(g&&g.size?g.size:"medium"),sortDirection:c,stickyHeader:"head"===b&&g&&g.stickyHeader,variant:b}),v=TableCell_useUtilityClasses(C),w=null;return c&&(w="asc"===c?"ascending":"descending"),(0,ew.jsx)(lM,(0,A.Z)({as:r,ref:t,className:(0,ty.Z)(v.root,o),"aria-sort":w,scope:h,ownerState:C},p))});function getToolbarUtilityClass(e){return(0,t_.Z)("MuiToolbar",e)}(0,tG.Z)("MuiToolbar",["root","gutters","regular","dense"]);let lZ=["className","component","disableGutters","variant"],Toolbar_useUtilityClasses=e=>{let{classes:t,disableGutters:r,variant:l}=e;return(0,j.Z)({root:["root",!r&&"gutters",l]},getToolbarUtilityClass,t)},lG=(0,V.ZP)("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})(({theme:e,ownerState:t})=>(0,A.Z)({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},"dense"===t.variant&&{minHeight:48}),({theme:e,ownerState:t})=>"regular"===t.variant&&e.mixins.toolbar),l_=F.forwardRef(function(e,t){let r=(0,tx.Z)({props:e,name:"MuiToolbar"}),{className:l,component:n="div",disableGutters:o=!1,variant:i="regular"}=r,a=(0,H.Z)(r,lZ),s=(0,A.Z)({},r,{component:n,disableGutters:o,variant:i}),u=Toolbar_useUtilityClasses(s);return(0,ew.jsx)(lG,(0,A.Z)({as:n,className:(0,ty.Z)(u.root,l),ref:t,ownerState:s},a))});var lF=r(67070),lT=r(56686),lO=r(2734),lA=(0,e0.Z)((0,ew.jsx)("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),lH=(0,e0.Z)((0,ew.jsx)("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage");let lD=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],lL=F.forwardRef(function(e,t){var r,l,n,o,i,a,s,u;let{backIconButtonProps:c,count:d,disabled:p=!1,getItemAriaLabel:g,nextIconButtonProps:m,onPageChange:f,page:h,rowsPerPage:b,showFirstButton:C,showLastButton:v,slots:w={},slotProps:y={}}=e,S=(0,H.Z)(e,lD),x=(0,lO.Z)(),R=null!=(r=w.firstButton)?r:rt.Z,P=null!=(l=w.lastButton)?l:rt.Z,E=null!=(n=w.nextButton)?n:rt.Z,k=null!=(o=w.previousButton)?o:rt.Z,M=null!=(i=w.firstButtonIcon)?i:lH,I=null!=(a=w.lastButtonIcon)?a:lA,Z=null!=(s=w.nextButtonIcon)?s:lT.Z,G=null!=(u=w.previousButtonIcon)?u:lF.Z,_="rtl"===x.direction?P:R,F="rtl"===x.direction?E:k,T="rtl"===x.direction?k:E,O="rtl"===x.direction?R:P,D="rtl"===x.direction?y.lastButton:y.firstButton,L="rtl"===x.direction?y.nextButton:y.previousButton,z="rtl"===x.direction?y.
|