"use strict";var React=require("react"),stringUtil=require("./stringUtil-0d797e21.js"),TablePanel=require("./TablePanel-c48c66db.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-6f273a0a.js"),require("react-use"),require("dom-to-image"),require("html2canvas"),require("mobx-react"),require("./isNil-f0d356da.js"),require("./index-0340d4e2.js"),require("./orderBy-b01c6edd.js"),require("./Slider-ec7235ad.js"),require("./index-4dcb2baa.js"),require("./index-b57266a8.js"),require("./index-a827e621.js"),require("./index-3fd74fa8.js"),require("./index-834598e0.js"),require("./index-45fbafac.js"),require("./index-cdaf0837.js"),require("./index-49119573.js"),require("./index-a927e126.js"),require("./Toggle-63cb3af4.js"),require("./DataGroupby-35fc648d.js"),require("./useDataValue-47abfdcd.js"),require("simple-statistics"),require("echarts"),require("styled-components"),require("./CustomIconManager-69e36eaf.js"),require("react-dropzone"),require("./ColorList-78f745f6.js"),require("./trim-95cf03c4.js"),require("echarts-wordcloud"),require("ali-react-table"),require("./previleges-3890528e.js"),require("./VirtualizedTable-118b071e.js"),require("ali-react-table-fork"),require("./useAutoScroll-caca0a20.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;
