"use strict";var React=require("react"),stringUtil=require("./stringUtil-623229ca.js"),TablePanel=require("./TablePanel-6701f21c.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("ali-oss"),require("minio"),require("lz-string"),require("url-join"),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("react-use"),require("perfect-scrollbar"),require("./ChartPreview-aabc088c.js"),require("dom-to-image"),require("html2canvas"),require("mobx-react"),require("./SimpleCrossTable-9d10bb37.js"),require("ali-react-table-fork"),require("./index-043e97fe.js"),require("./orderBy-cf4afe09.js"),require("./Slider-21a4ffd2.js"),require("./index-ba8a8af2.js"),require("./index-543765a1.js"),require("./index-8da42176.js"),require("./index-04c810ff.js"),require("./index-45bef83a.js"),require("./index-cfc54f88.js"),require("./index-4f844383.js"),require("./index-50781cf5.js"),require("./index-3bacbf0c.js"),require("./Toggle-82c7428e.js"),require("./DataGroupby-f4d02c4c.js"),require("./useDataValue-598e7b3b.js"),require("simple-statistics"),require("echarts"),require("styled-components"),require("./CustomIconManager-a2ff8672.js"),require("react-dropzone"),require("./ColorList-29f59939.js"),require("./trim-01566987.js"),require("echarts-wordcloud"),require("ali-react-table"),require("./AdaptiveMore-65c095c8.js"),require("./Transfer-c09d1328.js"),require("./MapBaseChange-8afe0a9e.js"),require("./previleges-105169d8.js"),require("./useAutoScroll-5005e670.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;
