"use strict";var React=require("react"),stringUtil=require("./stringUtil-46bec29a.js"),TablePanel=require("./TablePanel-dd57c11d.js");function _interopNamespace(a){if(a&&a.__esModule)return a;var i=Object.create(null);return a&&Object.keys(a).forEach(function(e){var r;"default"!==e&&(r=Object.getOwnPropertyDescriptor(a,e),Object.defineProperty(i,e,r.get?r:{enumerable:!0,get:function(){return a[e]}}))}),i.default=a,Object.freeze(i)}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-e726daa2.js"),require("react-use"),require("dom-to-image"),require("html2canvas"),require("mobx-react"),require("./isNil-424bca54.js"),require("./index-aaa509d6.js"),require("./orderBy-061e4c8b.js"),require("./Slider-d2c8ff1a.js"),require("./index-104377eb.js"),require("./index-cd89f292.js"),require("./index-b0ad6bcc.js"),require("./index-99d89fc8.js"),require("./index-51c39097.js"),require("./index-3da7eb77.js"),require("./index-bd476f1b.js"),require("./index-f23acd1a.js"),require("./index-4ec67192.js"),require("./Toggle-96a174f7.js"),require("./DataGroupby-430761ea.js"),require("./useDataValue-2d046f9c.js"),require("simple-statistics"),require("echarts"),require("styled-components"),require("./CustomIconManager-040ef8ef.js"),require("react-dropzone"),require("./ColorList-cdcb76b8.js"),require("./trim-c5741c65.js"),require("echarts-wordcloud"),require("ali-react-table"),require("./previleges-237c4a69.js"),require("./VirtualizedTable-086a2399.js"),require("ali-react-table-fork"),require("./useAutoScroll-377f9659.js");var React__namespace=_interopNamespace(React),prefixCls="dm-table-load-panel",filterArray=[stringUtil.FieldDbType.json,stringUtil.FieldDbType.array],TableLoadPanel=function(e){var a=e.data,r=e.height,i=e.width,e=e.emptyContent,t=React__namespace.useCallback(function(e,r){return-1===filterArray.indexOf(a.types[r])},[a.types]),u=React__namespace.useMemo(function(){return stringUtil.filter_1(a.columns,t)},[a.columns,t]),l=React__namespace.useMemo(function(){return stringUtil.map_1(a.values,function(e){return stringUtil.filter_1(e,t)})},[a.values,t]),o=React__namespace.useMemo(function(){return stringUtil.map_1(l,function(a,e){var i={};return stringUtil.forEach_1(u,function(e,r){i[e]=a[r]}),i.key=e,i})},[l,u]),c=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]),s=React__namespace.useMemo(function(){return{height:r,width:i,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,i]);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:c,emptyContent:e,outBorderType:stringUtil.TableBorder.around,innerBorderType:stringUtil.TableBorder.horizonVertical,style:s})))};TableLoadPanel.whyDidYouRender=!0,TableLoadPanel.displayName="TableLoadPanel",exports.default=TableLoadPanel;
