(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pvm_MglPopup"],{5899:function(t,e){t.exports="\t\n\v\f\r                　\u2028\u2029\ufeff"},"58a8":function(t,e,o){var i=o("1d80"),n=o("5899"),p="["+n+"]",s=RegExp("^"+p+p+"*"),r=RegExp(p+p+"*$"),a=function(t){return function(e){var o=String(i(e));return 1&t&&(o=o.replace(s,"")),2&t&&(o=o.replace(r,"")),o}};t.exports={start:a(1),end:a(2),trim:a(3)}},7156:function(t,e,o){var i=o("861d"),n=o("d2bb");t.exports=function(t,e,o){var p,s;return n&&"function"==typeof(p=e.constructor)&&p!==o&&i(s=p.prototype)&&s!==o.prototype&&n(t,s),t}},"81e1":function(t,e,o){"use strict";e["a"]={methods:{$_emitSelfEvent(t,e={}){this.$_emitMapEvent(t,{control:this.control,...e})},$_bindSelfEvents(t,e){Object.keys(this.$listeners).forEach(o=>{t.includes(o)&&e.on(o,this.$_emitSelfEvent)})},$_unbindSelfEvents(t,e){0!==t.length&&e&&t.forEach(t=>{e.off(t,this.$_emitSelfEvent)})}}}},"9f0b":function(t,e,o){"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})}}}},a9e3:function(t,e,o){"use strict";var i=o("83ab"),n=o("da84"),p=o("94ca"),s=o("6eeb"),r=o("5135"),a=o("c6b6"),u=o("7156"),l=o("c04e"),f=o("d039"),c=o("7c73"),h=o("241c").f,d=o("06cf").f,m=o("9bf2").f,v=o("58a8").trim,E="Number",b=n[E],_=b.prototype,$=a(c(_))==E,g=function(t){var e,o,i,n,p,s,r,a,u=l(t,!1);if("string"==typeof u&&u.length>2)if(u=v(u),e=u.charCodeAt(0),43===e||45===e){if(o=u.charCodeAt(2),88===o||120===o)return NaN}else if(48===e){switch(u.charCodeAt(1)){case 66:case 98:i=2,n=49;break;case 79:case 111:i=8,n=55;break;default:return+u}for(p=u.slice(2),s=p.length,r=0;r<s;r++)if(a=p.charCodeAt(r),a<48||a>n)return NaN;return parseInt(p,i)}return+u};if(p(E,!b(" 0o1")||!b("0b1")||b("+0x1"))){for(var y,N=function(t){var e=arguments.length<1?0:t,o=this;return o instanceof N&&($?f((function(){_.valueOf.call(o)})):a(o)!=E)?u(new b(g(e)),o,N):g(e)},I=i?h(b):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),x=0;I.length>x;x++)r(b,y=I[x])&&!r(N,y)&&m(N,y,d(b,y));N.prototype=_,_.constructor=N,s(n,E,N)}},ab67:function(t,e,o){"use strict";o.r(e);var i=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticStyle:{display:"none"}},[t._t("default")],2)},n=[],p=(o("caad"),o("d81d"),o("a9e3"),o("b64b"),o("9f0b")),s=o("81e1"),r={open:"open",close:"close"},a={name:"Popup",mixins:[p["a"],s["a"]],inject:{mapbox:{default:null},map:{default:null},marker:{default:null}},props:{closeButton:{type:Boolean,default:!0},closeOnClick:{type:Boolean,default:!0},anchor:{validator:function(t){var e=["top","bottom","left","right","top-left","top-right","bottom-left","bottom-right"];return"string"===typeof t&&e.includes(t)},default:void 0},offset:{type:[Number,Object,Array],default:function(){return[0,0]}},coordinates:{type:Array},onlyText:{type:Boolean,default:!1},showed:{type:Boolean,default:!1}},data:function(){return{initial:!0,popup:void 0}},computed:{open:{get:function(){return void 0!==this.popup&&this.popup.isOpen()},set:function(t){this.map&&this.popup&&(t?this.popup.addTo(this.map):this.popup.remove())}}},watch:{coordinates:function(t){this.initial||this.popup.setLngLat(t)},showed:function(t,e){t!==e&&(this.open=t,this.marker&&this.marker.togglePopup())}},created:function(){this.popup=new this.mapbox.Popup(this.$props)},mounted:function(){this.$_addPopup(),this.initial=!1},beforeDestroy:function(){this.map&&(this.popup.remove(),this.$_emitEvent("removed"))},methods:{$_addPopup:function(){if(this.popup=new this.mapbox.Popup(this.$props),void 0!==this.coordinates&&this.popup.setLngLat(this.coordinates),void 0!==this.$slots.default)if(this.onlyText)if(3===this.$slots.default[0].elm.nodeType){var t=document.createElement("span");t.appendChild(this.$slots.default[0].elm),this.popup.setText(t.innerText)}else this.popup.setText(this.$slots.default[0].elm.innerText);else this.popup.setDOMContent(this.$slots.default[0].elm);this.$_bindSelfEvents(Object.keys(r),this.popup),this.$_emitEvent("added",{popup:this.popup}),this.marker&&this.marker.setPopup(this.popup),this.showed&&this.marker&&this.marker.togglePopup()},$_emitSelfEvent:function(t){this.$_emitMapEvent(t,{popup:this.popup})},remove:function(){this.popup.remove(),this.$_emitEvent("remove",{popup:this.popup})}}},u=a,l=o("2877"),f=Object(l["a"])(u,i,n,!1,null,null,null);e["default"]=f.exports}}]);
//# sourceMappingURL=pvm_MglPopup.4d61fb61.js.map