/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import{__decorate as e}from"tslib";import{subclass as t}from"../../../core/accessorSupport/decorators.js";import{isPoint as o}from"../../../geometry/support/typeUtils.js";import{PluginBase as r}from"./PluginBase.js";let n=class extends r{start(e){super.start(e),e.session.appendOrReplacePart(null,[])}beforeAttachPlugin(e){return{useStandaloneSession:!0,geometryType:"point"}}detachPlugin(e,t){if("complete"!==t)return;const r=this._context?.getSession(e),n=this._session,s=r?.generatePreviewGeometry({includeAutomaticConnection:!1,geometryType:"point"});s&&o(s)&&n&&(n.appendOrReplacePoint(null,s),n.appendOrReplacePart(null,[]),n.automaticRestart=!1,n.groupGeometryChanges()),e.configuration&&this._context?.requestBeginDownstreamPlugin(e.configuration)}};n=e([t("esri.views.draw.plugins.MultipointPlugin")],n);export{n as MultipointPlugin};
