"use strict";var mobxReact=require("mobx-react"),MapEditView=require("./MapEditView-8a91a536.js"),React=require("react"),lodash=require("lodash"),stringUtil=require("./stringUtil-1aa1a451.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-f626fe66.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("ahooks"),require("rc-menu"),require("react-beautiful-dnd"),require("react-virtualized"),require("ali-oss"),require("minio"),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("react-use"),require("perfect-scrollbar"),require("./index-f7af7caa.js"),require("./index-8b034940.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("./index-3bcd48e8.js"),require("./index-f86c82fd.js"),require("./index-941f05cc.js"),require("./index-dfa4fb79.js"),require("./index-be146a61.js"),require("stream"),require("./ResizeObserver.es-aec6dde4.js");var React__namespace=_interopNamespace(React),DataTable=stringUtil.LazyLoad(function(){return Promise.resolve().then(function(){return require("./index-d4fac6a4.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]),q=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;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:d,onDbClick:s,onRowClick:c,handleInnerStoreChange:q})}),MapDataTable$1=MapDataTable;exports.default=MapDataTable$1;
