"use strict";(self.webpackChunkfront=self.webpackChunkfront||[]).push([[385],{48766:(e,n,t)=>{t.r(n),t.d(n,{default:()=>f});var r=t(96540),o=(t(22969),t(33428)),a=t(54950),l=t(44921),u=(t(67677),t(72107),t(7321),t(91874)),i=t(85647),c=t(74848);function s(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function f(){var e=(0,l.Ay)("ws://127.0.0.1:8000/ws",{shouldReconnect:function(e){return!0}}),n=(e.sendMessage,e.lastMessage);function t(e,n,t,r,o,a,l){var u=document.createElement("button");return u.innerText="打开",2==r&&(u.innerText="解析"),u.addEventListener("mousedown",(function(e){e.preventDefault()})),n.innerText="",n.appendChild(u),n}e.readyState;var f,d,h=r.useRef(null),y=(0,i.Zp)(),v=((0,i.zy)(),f=r.useState([["File Name"]]),d=2,function(e){if(Array.isArray(e))return e}(f)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,a,l,u=[],i=!0,c=!1;try{if(a=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;i=!1}else for(;!(i=(r=a.call(t)).done)&&(u.push(r.value),u.length!==n);i=!0);}catch(e){c=!0,o=e}finally{try{if(!i&&null!=t.return&&(l=t.return(),Object(l)!==l))return}finally{if(c)throw o}}return u}}(f,d)||function(e,n){if(e){if("string"==typeof e)return s(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?s(e,n):void 0}}(f,d)||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.")}()),g=v[0],p=v[1];return r.useEffect((function(){u.A.generateFiles2().then((function(e){p(e)}))}),[]),r.useEffect((function(){console.log(n)}),[n]),(0,a.TS)("highlightRowRenderer",(function(e,n,r,o){for(var a=arguments.length,l=new Array(a>4?a-4:0),u=4;u<a;u++)l[u-4]=arguments[u];t.apply(void 0,[e,n,r,o].concat(l))})),(0,c.jsx)(c.Fragment,{children:(0,c.jsx)(o.sH,{nestedRows:!1,data:g,ref:h,afterSelection:function(e,n){var t;console.log(e);var r=null===(t=h.current)||void 0===t||null===(t=t.hotInstance)||void 0===t?void 0:t.getData()[e];console.log(r[0]),1==n&&y("/editor/qingdan/".concat(r[0]))},rowHeaders:!0,colHeaders:!1,height:"800",readOnly:!0,autoWrapRow:!1,autoWrapCol:!1,licenseKey:"non-commercial-and-evaluation"})})}}}]);