"use strict";var mobxReact=require("mobx-react"),MapEditView=require("./MapEditView-a4c7232b.js"),React=require("react"),_=require("lodash"),stringUtil=require("./stringUtil-83d9823f.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("maptalks"),require("uuid"),require("mobx"),require("js-beautify"),require("lz-string"),require("jquery"),require("chroma-js"),require("react-dom"),require("geobuf"),require("./index-62c2f9a9.js"),require("@loadable/component"),require("@tanem/react-nprogress"),require("dayjs"),require("sql-formatter-fork"),require("axios"),require("superstruct"),require("localforage"),require("classnames"),require("react-draggable"),require("react-rnd"),require("react-is"),require("react-virtualized"),require("ahooks"),require("rc-menu"),require("react-beautiful-dnd"),require("ali-oss"),require("minio"),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("perfect-scrollbar"),require("./index-176777af.js"),require("./index-6540b38f.js"),require("jszip"),require("file-saver"),require("screenfull"),require("array-move"),require("turf-multilinestring"),require("copy-to-clipboard"),require("maptalks.three"),require("ajv"),require("turf-point"),require("decamelize"),require("rbush"),require("qs"),require("react-use"),require("./index-58b9b6fd.js"),require("./index-6c8fa301.js"),require("./index-9a933bad.js"),require("./index-48713505.js"),require("./index-f08384ac.js"),require("stream"),require("./ResizeObserver.es-afa54b2e.js");var React__namespace=_interopNamespace(React),DataTable=stringUtil.LazyLoad(function(){return Promise.resolve().then(function(){return require("./index-83b23fe0.js")}).then(function(e){return e.index$1})}),MapDataTable=mobxReact.observer(function(){var e=MapEditView.appContext.getContext(),i=React__namespace.useContext(e).routeStore,e=i.tableDataModel,r=i.setDataTablePkg,a=i.showTableTabPopup,t=i.setTableTabPopup,u=i.SuppFiltersStore.getSuppPackage,n=i.setDataTableTabIndexChangeHandler,o=i.projectOption,c=React.useRef(),s=React.useCallback(function(e){},[]),l=React.useCallback(function(e){t(!0),c.current=e},[t]),q=React.useCallback(function(e){r(void 0,"delete",e)},[r]),p=React.useCallback(function(e){var r;null!==(r=i.editMapStore)&&void 0!==r&&r.setTableStores(e)},[i]),d=React.useMemo(function(){return{showPopup:a,okText:MapEditView.i18n.mapEdit.edit,cancelText:MapEditView.i18n.mapEdit.cancelText,message:MapEditView.i18n.mapEdit.rightTableTabHint,description:MapEditView.i18n.mapEdit.rightTableTabHintDesc,emotion:"info",onVisibleChange:function(e){return!e&&t(!1)},onConfirm:function(){var e;c.current&&(e=c.current.cTableStore.tableId,e=u(e,void 0,"packageUuid"),e=_.pick(e,["uuid","geometryType","objectType","packageUuid","source"]),window.localStorage.setItem("my-data-init-supp-filter",JSON.stringify(e)),window.open(stringUtil.getHostPath("/my-data")))}}},[u,t,a]);return React__namespace.createElement(DataTable,{ref:function(e){e&&(e=e.changeTab,n(e))},showFullScreen:!1,packages:e,delPackage:q,tabPopupConfirm:d,onDbClick:l,onRowClick:s,handleInnerStoreChange:p,projectOption:o})}),MapDataTable$1=MapDataTable;exports.default=MapDataTable$1;
