"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../mixins/mixins.js"),t=require("../../utils/amap-helpers.js"),a=require("../mixins/props.js"),r=require("../mixins/base.js"),s=e.default(r.default).extend({name:"AmapLabelMarker",inject:["$amapLabelsLayer"],amapMeta:{initComponent:async(e,t)=>new e.LabelMarker(t),async add(e,t){const a=await this.$amapLabelsLayer.ready;this.$amapContext.destroyed||a.add(t)},async remove(e,t){(await this.$amapLabelsLayer.ready).remove(t)},events:["click","mouseover","mousemove","mouseput","mousedown","mouseup","touchstart","touchend"]},props:{position:a.defineProp({type:Array,deep:!0,equals:t.theSamePair,setter(e,a){const r=e;if(!a)return;const s=t.lngLat2Array(r.getPosition());t.nearPair(a,s)||r.setPosition([a[0],a[1]])}}),zooms:a.defineProp({type:Array,deep:!0,equals:t.theSamePair,setter:"setZooms"}),opacity:a.defineProp("setOpacity",Number),rank:{type:Number},icon:a.defineProp({type:Object,setter:"setIcon",deep:!0}),text:a.defineProp({type:Object,setter:"setText",deep:!0})}});exports.default=s;
