"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../mixins/mixins.js"),t=require("../mixins/props.js"),n=require("../mixins/marker.js");function r(e){if(!e)return;const t={...e};return t.offset&&(t.offset=new window.AMap.Pixel(t.offset[0],t.offset[1])),t}function s(e){return"string"==typeof e?e:new window.AMap.Icon(e)}var o=e.default(n.default).extend({name:"AmapMarker",amapMeta:{slot:!0,async initComponent(e,t){const n={...t};return this.$slots.default&&this.$slots.default.length>0&&(n.content=this.$slots.default[0].elm),new e.Marker(n)}},props:{content:t.defineProp("setContent",String),icon:t.defineProp({setter(e,t){if(!t)return;const n=e,r=s(t);n.setIcon(r)},transform:s}),shadow:t.defineProp("setShadow"),shape:t.defineProp("setShape"),label:t.defineProp({type:Object,setter(e,t){t&&e.setLabel(r(t))},deep:!0,transform:r})}});exports.default=o;
