(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pvm_MglControlContainer"],{"81e1":function(t,e,n){"use strict";e["a"]={methods:{$_emitSelfEvent(t,e={}){this.$_emitMapEvent(t,{control:this.control,...e})},$_bindSelfEvents(t,e){Object.keys(this.$listeners).forEach(n=>{t.includes(n)&&e.on(n,this.$_emitSelfEvent)})},$_unbindSelfEvents(t,e){0!==t.length&&e&&t.forEach(t=>{e.off(t,this.$_emitSelfEvent)})}}}},"9f0b":function(t,e,n){"use strict";e["a"]={methods:{$_emitEvent(t,e={}){this.$emit(t,{map:this.map,component:this,...e})},$_emitMapEvent(t,e={}){this.$_emitEvent(t.type,{mapboxEvent:t,...e})}}}},aa65:function(t,e,n){"use strict";var o=n("9f0b"),i=n("81e1");e["a"]={mixins:[o["a"],i["a"]],inject:["mapbox","map","actions"],props:{position:{type:String,default:"top-right"}},beforeDestroy(){this.map&&this.control&&this.map.removeControl(this.control)},methods:{$_addControl(){try{this.map.addControl(this.control,this.position)}catch(t){return void this.$_emitEvent("error",{error:t})}this.$_emitEvent("added",{control:this.control})}},render(){}}},f925:function(t,e,n){"use strict";n.r(e);var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t._t("default")],2)},i=[],r=n("d4ec"),s=n("bee2"),a=n("aa65"),c={name:"ContainerControl",mixins:[a["a"]],props:{buttonText:{type:String,default:"true"},buttonId:{type:String,default:"button-id"}},mounted:function(){var t=function(){function t(){Object(r["a"])(this,t)}return Object(s["a"])(t,[{key:"onAdd",value:function(t){console.log("ControlContainer.vue OnAdd is running, props:",e)}},{key:"onRemove",value:function(t){this.container.parentNode.removeChild(this.container)}}]),t}(),e=Object.assign({},this.$props);this.control=new t(e),this.$_addControl()}},l=c,u=n("2877"),h=Object(u["a"])(l,o,i,!1,null,null,null);e["default"]=h.exports}}]);
//# sourceMappingURL=pvm_MglControlContainer.1a871063.js.map