"use strict";var mobxReact=require("mobx-react"),MapEditView=require("./MapEditView-ca0308a8.js"),React=require("react"),lodash=require("lodash"),stringUtil=require("./stringUtil-46bec29a.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-3c074043.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-73206f55.js"),require("./index-43c122ad.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("react-use"),require("./index-72501f82.js"),require("./index-ddb7552a.js"),require("./index-7943ed4d.js"),require("./index-c8fa9450.js"),require("./index-2b0b7bb9.js"),require("stream"),require("./ResizeObserver.es-d2091bf3.js");var React__namespace=_interopNamespace(React),DataTable=stringUtil.LazyLoad(function(){return Promise.resolve().then(function(){return require("./index-6bdad80c.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=React.useRef(),c=React.useCallback(function(e){},[]),s=React.useCallback(function(e){t(!0),o.current=e},[t]),l=React.useCallback(function(e){r(void 0,"delete",e)},[r]),d=React.useCallback(function(e){var r;null!==(r=i.editMapStore)&&void 0!==r&&r.setTableStores(e)},[i]),q=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;o.current&&(e=o.current.cTableStore.tableId,e=u(e,void 0,"packageUuid"),e=lodash.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:l,tabPopupConfirm:q,onDbClick:s,onRowClick:c,handleInnerStoreChange:d})}),MapDataTable$1=MapDataTable;exports.default=MapDataTable$1;
