"use strict";var React=require("react"),stringUtil=require("./stringUtil-83d9823f.js"),TablePanel=require("./TablePanel-beda9808.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-126df5b9.js"),require("react-use"),require("dom-to-image"),require("html2canvas"),require("mobx-react"),require("./isNil-94d3ae47.js"),require("./index-9d852a50.js"),require("./orderBy-2919938a.js"),require("./Slider-24117ed4.js"),require("./index-c2c15661.js"),require("./index-da57325a.js"),require("./index-c5a3aa6d.js"),require("./index-b4c10693.js"),require("./index-ffa34f0e.js"),require("./index-5695045f.js"),require("./index-937f0783.js"),require("./index-d8a22c9f.js"),require("./index-dceb5357.js"),require("./Toggle-6223d7eb.js"),require("./DataGroupby-56f6754f.js"),require("./useDataValue-c5fb1212.js"),require("simple-statistics"),require("echarts"),require("styled-components"),require("./CustomIconManager-790ca2e0.js"),require("react-dropzone"),require("./ColorList-e7599f4a.js"),require("./trim-f7825232.js"),require("echarts-wordcloud"),require("ali-react-table"),require("./previleges-c9e16523.js"),require("./VirtualizedTable-d8ba09ce.js"),require("ali-react-table-fork"),require("./useAutoScroll-fe970242.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;
