"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../loadPlugins.js"),i=require("../mixins/mixins.js"),t=require("../mixins/events.js"),s=require("../mixins/props.js"),n=require("../mixins/methods.js"),o=require("./base.js"),d=i.default(o.default).extend({name:"AmapOverView",amapMeta:{prepare:()=>e.default("AMap.OverView"),initComponent:async(e,i)=>new e.OverView(i)},props:{visible:s.defineProp({type:Boolean,default:!0,setter(e,i){const t=e;i?t.show():t.hide()}}),isOpen:s.defineProp({type:Boolean,default:void 0,setter(e,i){const t=e;i?t.open():t.close()}}),tileLayer:s.defineProp("setTileLayer")},methods:{show:n.defineMethod("show"),hide:n.defineMethod("hide"),open:n.defineMethod("open"),close:n.defineMethod("close")},async mounted(){await this.context.ready,t.bindEvent(this,"open",()=>{this.$emit("update:is-open",!0)}),t.bindEvent(this,"close",()=>{this.$emit("update:is-open",!1)})}});exports.default=d;
