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