"use strict";var React=require("react"),stringUtil=require("./stringUtil-b064ec79.js"),TablePanel=require("./TablePanel-437f2723.js");function _interopNamespace(i){if(i&&i.__esModule)return i;var a=Object.create(null);return i&&Object.keys(i).forEach(function(e){var r;"default"!==e&&(r=Object.getOwnPropertyDescriptor(i,e),Object.defineProperty(a,e,r.get?r:{enumerable:!0,get:function(){return i[e]}}))}),a.default=i,Object.freeze(a)}require("@loadable/component"),require("@tanem/react-nprogress"),require("dayjs"),require("sql-formatter-fork"),require("axios"),require("superstruct"),require("lodash"),require("chroma-js"),require("localforage"),require("classnames"),require("react-draggable"),require("react-rnd"),require("react-is"),require("react-dom"),require("react-virtualized"),require("ahooks"),require("rc-menu"),require("mobx"),require("react-beautiful-dnd"),require("ali-oss"),require("minio"),require("lz-string"),require("spark-md5"),require("js-cookie"),require("is-email"),require("is-uuid"),require("is-url"),require("@syncpoint/wkx"),require("buffer"),require("@turf/turf"),require("@mapbox/polylabel"),require("turf-multipolygon"),require("turf-polygon"),require("gcoord"),require("eventemitter2"),require("anymatch"),require("crypto"),require("uuid"),require("perfect-scrollbar"),require("./ChartPreview-60adab8c.js"),require("react-use"),require("dom-to-image"),require("html2canvas"),require("mobx-react"),require("./isNil-6bf591df.js"),require("./index-1b63d94e.js"),require("./orderBy-e033bff2.js"),require("./Slider-1bc5cbe0.js"),require("./index-cf0674ce.js"),require("./index-d1e50604.js"),require("./index-7d336e54.js"),require("./index-93c44883.js"),require("./index-247ee8d1.js"),require("./index-ebf2ee4d.js"),require("./index-548221b3.js"),require("./index-8d0a3d76.js"),require("./index-4a126c5a.js"),require("./Toggle-7f6eab49.js"),require("./DataGroupby-62355c42.js"),require("./useDataValue-0fe5c774.js"),require("simple-statistics"),require("echarts"),require("styled-components"),require("./CustomIconManager-541ec6e3.js"),require("react-dropzone"),require("./ColorList-c27411aa.js"),require("./trim-27a70c6b.js"),require("echarts-wordcloud"),require("ali-react-table"),require("./previleges-2321eae8.js"),require("./VirtualizedTable-683c3ef1.js"),require("ali-react-table-fork"),require("./useAutoScroll-cc0e2f40.js");var React__namespace=_interopNamespace(React),prefixCls="dm-table-load-panel",filterArray=[stringUtil.FieldDbType.json,stringUtil.FieldDbType.array],TableLoadPanel=function(e){var i=e.data,r=e.height,a=e.width,e=e.emptyContent,t=React__namespace.useCallback(function(e,r){return-1===filterArray.indexOf(i.types[r])},[i.types]),u=React__namespace.useMemo(function(){return stringUtil.filter_1(i.columns,t)},[i.columns,t]),l=React__namespace.useMemo(function(){return stringUtil.map_1(i.values,function(e){return stringUtil.filter_1(e,t)})},[i.values,t]),o=React__namespace.useMemo(function(){return stringUtil.map_1(l,function(i,e){var a={};return stringUtil.forEach_1(u,function(e,r){a[e]=i[r]}),a.key=e,a})},[l,u]),s=React__namespace.useMemo(function(){return stringUtil.map_1(u,function(e){return{code:e,name:e,width:120,ellipsis:!0,className:prefixCls+"-table-column"}})},[u]),n=React__namespace.useMemo(function(){return{height:r,width:a,overflow:"auto","--header-bgcolor":"var(--dmc-primary-panel-7)","--header-cell-border-top":"1px solid var(--dmc-border-1)","--cell-border-bottom":"1px solid var(--dmc-border-1)","--header-cell-border-left":"1px solid var(--dmc-border-1)","--header-cell-border-right":"1px solid var(--dmc-border-1)","--cell-border-left":"1px solid var(--dmc-border-1)","--cell-border-right":"1px solid var(--dmc-border-1)","--cell-border-top":"1px solid var(--dmc-border-1)","--header-cell-border-bottom":"1px solid var(--dmc-border-1)"}},[r,a]);return React__namespace.createElement("div",{className:prefixCls+"-table "+prefixCls+"-default"},React__namespace.createElement("div",{className:prefixCls+"-table-wrap"},React__namespace.createElement(TablePanel.TablePanel,{height:r,dataSource:o,columns:s,emptyContent:e,outBorderType:stringUtil.TableBorder.around,innerBorderType:stringUtil.TableBorder.horizonVertical,style:n})))};TableLoadPanel.whyDidYouRender=!0,TableLoadPanel.displayName="TableLoadPanel",exports.default=TableLoadPanel;
