"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../loadPlugins.js"),t=require("./mixins.js"),a=require("../../utils/amap-helpers.js"),r=require("./props.js"),s=require("./geometry.js"),i=require("./editable.js"),d=t.default(s.default,i.default).extend({amapMeta:{editable:{events:["end","move","adjust"],async loadEditor(){await e.default("AMap.PolyEditor")},async initEditor(e,t,a){return new e.PolyEditor(t,a,this.draggable)},onEdit(e){const t=e.target.getPath().map(a.lngLat2Array);this.$emit("update:path",t)}}},props:{path:r.defineProp({type:Array,setter(e,t){const r=e;if(this.$props.editable||this.$props.editable){const e=r.getPath().map(a.lngLat2Array);if(a.theSamePath(e,t))return}r.setPath(t)},getter:e=>e.getPath().map(a.lngLat2Array),clone:!0,equals:a.theSamePath,events:["dragging","dragend"]})}});exports.default=d;
