"use strict";var stringUtil=require("./stringUtil-0d797e21.js"),React=require("react"),index=require("./index-136fc3e3.js"),mobxReact=require("mobx-react"),dayjs=(require("./MapEditView-b37f9adc.js"),require("react-dom"),require("react-dnd-html5-backend"),require("classnames"),require("perfect-scrollbar"),require("react-virtualized"),require("dayjs")),_=require("lodash");function _interopDefaultLegacy(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("@loadable/component"),require("@tanem/react-nprogress"),require("sql-formatter-fork"),require("axios"),require("superstruct"),require("chroma-js"),require("localforage"),require("react-draggable"),require("react-rnd"),require("react-is"),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("react-contextmenu"),require("./isNil-f0d356da.js"),require("./orderBy-b01c6edd.js"),require("coordtransform"),require("./compact-741ec811.js"),require("react-use"),require("./useDataValue-47abfdcd.js"),require("./trim-95cf03c4.js"),require("./VirtualizedTable-118b071e.js"),require("ali-react-table-fork"),require("./Transfer-7e33684b.js"),require("maptalks"),require("js-beautify"),require("jquery"),require("geobuf"),require("./index-7befc29a.js"),require("./index-2c2dd454.js"),require("./index-9a1c259f.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("./index-5efb31e1.js"),require("./index-9174f5fe.js"),require("./index-32dfda69.js"),require("./index-567d7302.js"),require("./index-03d46886.js"),require("stream"),require("./ResizeObserver.es-c4381b73.js");var React__default=_interopDefaultLegacy(React),dayjs__default=_interopDefaultLegacy(dayjs),FORMAT="YYYY/hh/mm",CollaborationSide=mobxReact.observer(function(e){var t=e.onClose,e=index.thumbListContext.getContext(),e=React__default.default.useContext(e).store,r=e.totalCount,i=e.packageItem,a=e.deleteAllCol,l=e.onClearWillDeleteCollaborateInfo,e=i.name,u=i.geometryType,u=void 0===u?"point":u,n=i.createTime,i=i.updateTime,r=[{label:index.i18n$1.collaboration.type,value:stringUtil.GEO_TYPES_LABEL_MAP[u]},{label:index.i18n$1.collaboration.rowCount,value:r},{label:index.i18n$1.collaboration.createTime,value:n?dayjs__default.default(1e3*n).format(FORMAT):"-"},{label:index.i18n$1.collaboration.updateTime,value:i?dayjs__default.default(1e3*i).format(FORMAT):"-"}],n=stringUtil.GEO_TYPE_THUMB_MAP[u],i=React.useCallback(function(){return stringUtil.__awaiter(void 0,void 0,void 0,function(){var r,i;return stringUtil.__generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,a()];case 1:return e.sent(),l(),t(),[3,3];case 2:return r=e.sent(),console.log("error",r),i=null!==(i=_.get(r,"response.message"))&&void 0!==i?i:_.get(r,"response.data.message"),stringUtil.toastApi.error(null!=i?i:index.i18n$1.collaboration.deleteCollaborationError),[3,3];case 3:return[2]}})})},[a,l,t]);return React__default.default.createElement("div",{className:index.prefixCls$1+"-side"},React__default.default.createElement("div",{className:index.prefixCls$1+"-side-main"},React__default.default.createElement("div",{className:index.prefixCls$1+"-side-img"},React__default.default.createElement(stringUtil.Icon,{icon:n})),React__default.default.createElement("div",{className:index.prefixCls$1+"-side-title"},React__default.default.createElement(stringUtil.Tooltip,{title:null!==(u=""+e+index.i18n$1.collaboration.package)?u:"-"},React__default.default.createElement("span",null,null!==(n=""+e+index.i18n$1.collaboration.package)?n:"-"))),stringUtil.map_1(r,function(e){return React__default.default.createElement("div",{className:index.prefixCls$1+"-side-item",key:e.label},React__default.default.createElement("div",{className:index.prefixCls$1+"-side-item-label"},e.label),React__default.default.createElement("div",{className:index.prefixCls$1+"-side-item-value"},e.value))})),React__default.default.createElement(stringUtil.Button,{type:"assist-bg",block:!0,disabled:!0},index.i18n$1.collaboration.batchStartCollaborationPackage),React__default.default.createElement(stringUtil.Button,{type:"assist-bg",block:!0,onClick:i},index.i18n$1.collaboration.deleteCollaboration))});CollaborationSide.displayName="Collaboration",exports.default=CollaborationSide;
