"use strict";var React=require("react"),stringUtil=require("./stringUtil-37622c44.js"),TablePanel=require("./TablePanel-ff3b59ae.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-20a4c7ea.js"),require("react-use"),require("dom-to-image"),require("html2canvas"),require("mobx-react"),require("./isNil-972cde05.js"),require("./index-82e62efc.js"),require("./orderBy-cdd9a866.js"),require("./Slider-af7d4714.js"),require("./index-90b744bb.js"),require("./index-76b65ad2.js"),require("./index-9e7e675c.js"),require("./index-5ce36e20.js"),require("./index-65844bfe.js"),require("./index-a9f95207.js"),require("./index-f7ac3df4.js"),require("./index-fbd5a411.js"),require("./index-828407d1.js"),require("./Toggle-55d3440c.js"),require("./DataGroupby-fefb7620.js"),require("./useDataValue-6effaae2.js"),require("simple-statistics"),require("echarts"),require("styled-components"),require("./CustomIconManager-a1b2946d.js"),require("react-dropzone"),require("./ColorList-27e2cb95.js"),require("./trim-b697d2bc.js"),require("echarts-wordcloud"),require("ali-react-table"),require("./previleges-461214d8.js"),require("./VirtualizedTable-2f5a749f.js"),require("ali-react-table-fork"),require("./useAutoScroll-d9c32412.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;
