"use strict";var React=require("react"),stringUtil=require("./stringUtil-1ce2e674.js"),TablePanel=require("./TablePanel-418e48a3.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("ahooks"),require("rc-menu"),require("mobx"),require("react-dom"),require("react-beautiful-dnd"),require("react-virtualized"),require("lz-string"),require("ali-oss"),require("minio"),require("url-join"),require("spark-md5"),require("js-cookie"),require("is-email"),require("is-uuid"),require("is-url"),require("eventemitter2"),require("@syncpoint/wkx"),require("buffer"),require("@turf/turf"),require("@mapbox/polylabel"),require("turf-multipolygon"),require("turf-polygon"),require("gcoord"),require("anymatch"),require("crypto"),require("@datlas/dm-rc"),require("uuid"),require("react-use"),require("perfect-scrollbar"),require("./useInterval-a107a489.js"),require("./ChartPreview-999c0bc3.js"),require("dom-to-image"),require("html2canvas"),require("mobx-react"),require("./SimpleCrossTable-5e6c22c0.js"),require("ali-react-table-fork"),require("./index-c522f015.js"),require("./orderBy-3f009a04.js"),require("./Slider-543a970b.js"),require("./index-210a5990.js"),require("./index-5b5a7629.js"),require("./index-f7424da5.js"),require("./index-5ccb2368.js"),require("./index-4b1e052e.js"),require("./index-3e93ee94.js"),require("./index-e31a0ba5.js"),require("./index-10397814.js"),require("./index-07c9e49a.js"),require("./Toggle-e9480ec0.js"),require("./DataGroupby-380c09dc.js"),require("./useDataValue-c9c0c1f5.js"),require("simple-statistics"),require("echarts"),require("styled-components"),require("./CustomIconManager-7ba1fb84.js"),require("react-dropzone"),require("./ColorList-3e5738e0.js"),require("echarts-wordcloud"),require("ali-react-table"),require("./AdaptiveMore-328f790f.js"),require("./Transfer-71c9bbca.js"),require("./MapBaseChange-dbff382c.js"),require("./previleges-ffe1496f.js"),require("./throttleTime-b4dfded5.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]),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: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:s,emptyContent:e,outBorderType:stringUtil.TableBorder.around,innerBorderType:stringUtil.TableBorder.horizonVertical,style:n})))};TableLoadPanel.whyDidYouRender=!0,TableLoadPanel.displayName="TableLoadPanel",exports.default=TableLoadPanel;
