"use strict";(self.webpackChunkfront=self.webpackChunkfront||[]).push([[766],{48766:(n,t,r)=>{r.r(t),r.d(t,{default:()=>A});var e=r(96540),i=r(91874),o=r(85647),a=r(26523),s=r(34477),c=r(5744),u=r(53356),l=r(26739),f=r(96224),d=r(30433),p=r(15548),y=r(37768),b=r(73708),g=r(76647),h=r(42215),m=r(74848);function j(n){return j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},j(n)}function v(n,t){var r=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);t&&(e=e.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.push.apply(r,e)}return r}function w(n){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach((function(t){x(n,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(r,t))}))}return n}function x(n,t,r){return(t=function(n){var t=function(n){if("object"!=j(n)||!n)return n;var t=n[Symbol.toPrimitive];if(void 0!==t){var r=t.call(n,"string");if("object"!=j(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(n);return"symbol"==j(t)?t:t+""}(t))in n?Object.defineProperty(n,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[t]=r,n}function S(n,t){return function(n){if(Array.isArray(n))return n}(n)||function(n,t){var r=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=r){var e,i,o,a,s=[],c=!0,u=!1;try{if(o=(r=r.call(n)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(e=o.call(r)).done)&&(s.push(e.value),s.length!==t);c=!0);}catch(n){u=!0,i=n}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(n,t)||function(n,t){if(n){if("string"==typeof n)return O(n,t);var r={}.toString.call(n).slice(8,-1);return"Object"===r&&n.constructor&&(r=n.constructor.name),"Map"===r||"Set"===r?Array.from(n):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?O(n,t):void 0}}(n,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(n,t){(null==t||t>n.length)&&(t=n.length);for(var r=0,e=Array(t);r<t;r++)e[r]=n[r];return e}function A(){var n=240,t=(0,u.A)(),r=(e.useRef(null),(0,o.Zp)()),j=((0,o.zy)(),S(e.useState([]),2)),v=j[0],x=j[1],O=S(e.useState(!1),2),A=O[0],P=O[1];e.useEffect((function(){i.A.generateFiles2().then((function(n){x(n.map((function(n){return{id:n[0],ID:n[0],名称:n[1]}})))}))}),[]);var k=(0,l.Ay)(c.A,{shouldForwardProp:function(n){return"open"!==n}})((function(t){var r=t.theme;return{transition:r.transitions.create(["margin","width"],{easing:r.transitions.easing.sharp,duration:r.transitions.duration.leavingScreen}),variants:[{props:function(n){return n.open},style:{width:"calc(100% - ".concat(n,"px)"),marginLeft:"".concat(n,"px"),transition:r.transitions.create(["margin","width"],{easing:r.transitions.easing.easeOut,duration:r.transitions.duration.enteringScreen})}}]}})),C=(0,l.Ay)("main",{shouldForwardProp:function(n){return"open"!==n}})((function(t){var r=t.theme;return{flexGrow:1,padding:r.spacing(3),transition:r.transitions.create("margin",{easing:r.transitions.easing.sharp,duration:r.transitions.duration.leavingScreen}),marginLeft:"-".concat(n,"px"),variants:[{props:function(n){return n.open},style:{transition:r.transitions.create("margin",{easing:r.transitions.easing.easeOut,duration:r.transitions.duration.enteringScreen}),marginLeft:0}}]}})),D=(0,l.Ay)("div")((function(n){var t=n.theme;return w(w({display:"flex",alignItems:"center",padding:t.spacing(0,1)},t.mixins.toolbar),{},{justifyContent:"flex-end"})}));return(0,m.jsxs)(s.A,{sx:{display:"flex"},children:[(0,m.jsxs)(k,{position:"fixed",open:A,children:[(0,m.jsx)(f.A,{}),(0,m.jsx)(y.A,{color:"inherit","aria-label":"open drawer",onClick:function(){P(!0)},edge:"start",sx:[{mr:2},A&&{display:"none"}],children:(0,m.jsx)(h.A,{})})]}),(0,m.jsxs)(d.Ay,{sx:{width:n,flexShrink:0,"& .MuiDrawer-paper":{width:n,boxSizing:"border-box"}},variant:"persistent",anchor:"left",open:A,children:[(0,m.jsx)(D,{children:(0,m.jsx)(y.A,{onClick:function(){P(!1)},children:"ltr"===t.direction?(0,m.jsx)(b.A,{}):(0,m.jsx)(g.A,{})})}),(0,m.jsx)(p.A,{})]}),(0,m.jsxs)(C,{open:A,children:[(0,m.jsx)(D,{}),(0,m.jsx)("div",{style:{height:800,width:"100%"},children:(0,m.jsx)(a.z,{onRowClick:function(n){r("/editor/qingdan/".concat(n.row.id))},rows:v,columns:[{field:"ID",headerName:"ID",width:250},{field:"名称",headerName:"名称",width:400}],disableColumnMenu:!0,localeText:{noRowsLabel:"无数据",paginationRowsPerPage:"每页行数",footerRowSelected:function(n){return"共选中了".concat(n.toLocaleString(),"行")}}})})]})]})}}}]);