vue-google-maps-ui
Version:
A Google Map Component For Vue
17 lines (15 loc) • 42.1 kB
JavaScript
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("vue")):"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["vuegooglemap"]=e(require("vue")):t["vuegooglemap"]=e(t["Vue"])})("undefined"!==typeof self?self:this,(function(t){return function(){var e={9662:function(t,e,r){var n=r(614),o=r(6330),i=TypeError;t.exports=function(t){if(n(t))return t;throw i(o(t)+" is not a function")}},9670:function(t,e,r){var n=r(111),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw i(o(t)+" is not an object")}},1318:function(t,e,r){var n=r(5656),o=r(1400),i=r(6244),s=function(t){return function(e,r,s){var a,c=n(e),l=i(c),u=o(s,l);if(t&&r!=r){while(l>u)if(a=c[u++],a!=a)return!0}else for(;l>u;u++)if((t||u in c)&&c[u]===r)return t||u||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},3658:function(t,e,r){"use strict";var n=r(9781),o=r(3157),i=TypeError,s=Object.getOwnPropertyDescriptor,a=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=a?function(t,e){if(o(t)&&!s(t,"length").writable)throw i("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},4326:function(t,e,r){var n=r(1702),o=n({}.toString),i=n("".slice);t.exports=function(t){return i(o(t),8,-1)}},648:function(t,e,r){var n=r(1694),o=r(614),i=r(4326),s=r(5112),a=s("toStringTag"),c=Object,l="Arguments"==i(function(){return arguments}()),u=function(t,e){try{return t[e]}catch(r){}};t.exports=n?i:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=u(e=c(t),a))?r:l?i(e):"Object"==(n=i(e))&&o(e.callee)?"Arguments":n}},9920:function(t,e,r){var n=r(2597),o=r(3887),i=r(1236),s=r(3070);t.exports=function(t,e,r){for(var a=o(e),c=s.f,l=i.f,u=0;u<a.length;u++){var p=a[u];n(t,p)||r&&n(r,p)||c(t,p,l(e,p))}}},8880:function(t,e,r){var n=r(9781),o=r(3070),i=r(9114);t.exports=n?function(t,e,r){return o.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},9114:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},7045:function(t,e,r){var n=r(6339),o=r(3070);t.exports=function(t,e,r){return r.get&&n(r.get,e,{getter:!0}),r.set&&n(r.set,e,{setter:!0}),o.f(t,e,r)}},8052:function(t,e,r){var n=r(614),o=r(3070),i=r(6339),s=r(3072);t.exports=function(t,e,r,a){a||(a={});var c=a.enumerable,l=void 0!==a.name?a.name:e;if(n(r)&&i(r,l,a),a.global)c?t[e]=r:s(e,r);else{try{a.unsafe?t[e]&&(c=!0):delete t[e]}catch(u){}c?t[e]=r:o.f(t,e,{value:r,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return t}},3072:function(t,e,r){var n=r(7854),o=Object.defineProperty;t.exports=function(t,e){try{o(n,t,{value:e,configurable:!0,writable:!0})}catch(r){n[t]=e}return e}},9781:function(t,e,r){var n=r(7293);t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4154:function(t){var e="object"==typeof document&&document.all,r="undefined"==typeof e&&void 0!==e;t.exports={all:e,IS_HTMLDDA:r}},317:function(t,e,r){var n=r(7854),o=r(111),i=n.document,s=o(i)&&o(i.createElement);t.exports=function(t){return s?i.createElement(t):{}}},7207:function(t){var e=TypeError,r=9007199254740991;t.exports=function(t){if(t>r)throw e("Maximum allowed index exceeded");return t}},8113:function(t){t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},7392:function(t,e,r){var n,o,i=r(7854),s=r(8113),a=i.process,c=i.Deno,l=a&&a.versions||c&&c.version,u=l&&l.v8;u&&(n=u.split("."),o=n[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&s&&(n=s.match(/Edge\/(\d+)/),(!n||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/),n&&(o=+n[1]))),t.exports=o},748:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(t,e,r){var n=r(7854),o=r(1236).f,i=r(8880),s=r(8052),a=r(3072),c=r(9920),l=r(4705);t.exports=function(t,e){var r,u,p,h,d,f,g=t.target,y=t.global,v=t.stat;if(u=y?n:v?n[g]||a(g,{}):(n[g]||{}).prototype,u)for(p in e){if(d=e[p],t.dontCallGetSet?(f=o(u,p),h=f&&f.value):h=u[p],r=l(y?p:g+(v?".":"#")+p,t.forced),!r&&void 0!==h){if(typeof d==typeof h)continue;c(d,h)}(t.sham||h&&h.sham)&&i(d,"sham",!0),s(u,p,d,t)}}},7293:function(t){t.exports=function(t){try{return!!t()}catch(e){return!0}}},4374:function(t,e,r){var n=r(7293);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},6916:function(t,e,r){var n=r(4374),o=Function.prototype.call;t.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},6530:function(t,e,r){var n=r(9781),o=r(2597),i=Function.prototype,s=n&&Object.getOwnPropertyDescriptor,a=o(i,"name"),c=a&&"something"===function(){}.name,l=a&&(!n||n&&s(i,"name").configurable);t.exports={EXISTS:a,PROPER:c,CONFIGURABLE:l}},1702:function(t,e,r){var n=r(4374),o=Function.prototype,i=o.call,s=n&&o.bind.bind(i,i);t.exports=n?s:function(t){return function(){return i.apply(t,arguments)}}},5005:function(t,e,r){var n=r(7854),o=r(614),i=function(t){return o(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?i(n[t]):n[t]&&n[t][e]}},8173:function(t,e,r){var n=r(9662),o=r(8554);t.exports=function(t,e){var r=t[e];return o(r)?void 0:n(r)}},7854:function(t,e,r){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||function(){return this}()||this||Function("return this")()},2597:function(t,e,r){var n=r(1702),o=r(7908),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},3501:function(t){t.exports={}},4664:function(t,e,r){var n=r(9781),o=r(7293),i=r(317);t.exports=!n&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},8361:function(t,e,r){var n=r(1702),o=r(7293),i=r(4326),s=Object,a=n("".split);t.exports=o((function(){return!s("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?a(t,""):s(t)}:s},2788:function(t,e,r){var n=r(1702),o=r(614),i=r(5465),s=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return s(t)}),t.exports=i.inspectSource},9909:function(t,e,r){var n,o,i,s=r(4811),a=r(7854),c=r(111),l=r(8880),u=r(2597),p=r(5465),h=r(6200),d=r(3501),f="Object already initialized",g=a.TypeError,y=a.WeakMap,v=function(t){return i(t)?o(t):n(t,{})},m=function(t){return function(e){var r;if(!c(e)||(r=o(e)).type!==t)throw g("Incompatible receiver, "+t+" required");return r}};if(s||p.state){var b=p.state||(p.state=new y);b.get=b.get,b.has=b.has,b.set=b.set,n=function(t,e){if(b.has(t))throw g(f);return e.facade=t,b.set(t,e),e},o=function(t){return b.get(t)||{}},i=function(t){return b.has(t)}}else{var w=h("state");d[w]=!0,n=function(t,e){if(u(t,w))throw g(f);return e.facade=t,l(t,w,e),e},o=function(t){return u(t,w)?t[w]:{}},i=function(t){return u(t,w)}}t.exports={set:n,get:o,has:i,enforce:v,getterFor:m}},3157:function(t,e,r){var n=r(4326);t.exports=Array.isArray||function(t){return"Array"==n(t)}},614:function(t,e,r){var n=r(4154),o=n.all;t.exports=n.IS_HTMLDDA?function(t){return"function"==typeof t||t===o}:function(t){return"function"==typeof t}},4705:function(t,e,r){var n=r(7293),o=r(614),i=/#|\.prototype\./,s=function(t,e){var r=c[a(t)];return r==u||r!=l&&(o(e)?n(e):!!e)},a=s.normalize=function(t){return String(t).replace(i,".").toLowerCase()},c=s.data={},l=s.NATIVE="N",u=s.POLYFILL="P";t.exports=s},8554:function(t){t.exports=function(t){return null===t||void 0===t}},111:function(t,e,r){var n=r(614),o=r(4154),i=o.all;t.exports=o.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:n(t)||t===i}:function(t){return"object"==typeof t?null!==t:n(t)}},1913:function(t){t.exports=!1},2190:function(t,e,r){var n=r(5005),o=r(614),i=r(7976),s=r(3307),a=Object;t.exports=s?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return o(e)&&i(e.prototype,a(t))}},6244:function(t,e,r){var n=r(7466);t.exports=function(t){return n(t.length)}},6339:function(t,e,r){var n=r(1702),o=r(7293),i=r(614),s=r(2597),a=r(9781),c=r(6530).CONFIGURABLE,l=r(2788),u=r(9909),p=u.enforce,h=u.get,d=String,f=Object.defineProperty,g=n("".slice),y=n("".replace),v=n([].join),m=a&&!o((function(){return 8!==f((function(){}),"length",{value:8}).length})),b=String(String).split("String"),w=t.exports=function(t,e,r){"Symbol("===g(d(e),0,7)&&(e="["+y(d(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!s(t,"name")||c&&t.name!==e)&&(a?f(t,"name",{value:e,configurable:!0}):t.name=e),m&&r&&s(r,"arity")&&t.length!==r.arity&&f(t,"length",{value:r.arity});try{r&&s(r,"constructor")&&r.constructor?a&&f(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(o){}var n=p(t);return s(n,"source")||(n.source=v(b,"string"==typeof e?e:"")),t};Function.prototype.toString=w((function(){return i(this)&&h(this).source||l(this)}),"toString")},4758:function(t){var e=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?r:e)(n)}},3070:function(t,e,r){var n=r(9781),o=r(4664),i=r(3353),s=r(9670),a=r(4948),c=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,p="enumerable",h="configurable",d="writable";e.f=n?i?function(t,e,r){if(s(t),e=a(e),s(r),"function"===typeof t&&"prototype"===e&&"value"in r&&d in r&&!r[d]){var n=u(t,e);n&&n[d]&&(t[e]=r.value,r={configurable:h in r?r[h]:n[h],enumerable:p in r?r[p]:n[p],writable:!1})}return l(t,e,r)}:l:function(t,e,r){if(s(t),e=a(e),s(r),o)try{return l(t,e,r)}catch(n){}if("get"in r||"set"in r)throw c("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},1236:function(t,e,r){var n=r(9781),o=r(6916),i=r(5296),s=r(9114),a=r(5656),c=r(4948),l=r(2597),u=r(4664),p=Object.getOwnPropertyDescriptor;e.f=n?p:function(t,e){if(t=a(t),e=c(e),u)try{return p(t,e)}catch(r){}if(l(t,e))return s(!o(i.f,t,e),t[e])}},8006:function(t,e,r){var n=r(6324),o=r(748),i=o.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,i)}},5181:function(t,e){e.f=Object.getOwnPropertySymbols},7976:function(t,e,r){var n=r(1702);t.exports=n({}.isPrototypeOf)},6324:function(t,e,r){var n=r(1702),o=r(2597),i=r(5656),s=r(1318).indexOf,a=r(3501),c=n([].push);t.exports=function(t,e){var r,n=i(t),l=0,u=[];for(r in n)!o(a,r)&&o(n,r)&&c(u,r);while(e.length>l)o(n,r=e[l++])&&(~s(u,r)||c(u,r));return u}},5296:function(t,e){"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!r.call({1:2},1);e.f=o?function(t){var e=n(this,t);return!!e&&e.enumerable}:r},2140:function(t,e,r){var n=r(6916),o=r(614),i=r(111),s=TypeError;t.exports=function(t,e){var r,a;if("string"===e&&o(r=t.toString)&&!i(a=n(r,t)))return a;if(o(r=t.valueOf)&&!i(a=n(r,t)))return a;if("string"!==e&&o(r=t.toString)&&!i(a=n(r,t)))return a;throw s("Can't convert object to primitive value")}},3887:function(t,e,r){var n=r(5005),o=r(1702),i=r(8006),s=r(5181),a=r(9670),c=o([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=i.f(a(t)),r=s.f;return r?c(e,r(t)):e}},7066:function(t,e,r){"use strict";var n=r(9670);t.exports=function(){var t=n(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},4488:function(t,e,r){var n=r(8554),o=TypeError;t.exports=function(t){if(n(t))throw o("Can't call method on "+t);return t}},6200:function(t,e,r){var n=r(2309),o=r(9711),i=n("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},5465:function(t,e,r){var n=r(7854),o=r(3072),i="__core-js_shared__",s=n[i]||o(i,{});t.exports=s},2309:function(t,e,r){var n=r(1913),o=r(5465);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.31.1",mode:n?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.31.1/LICENSE",source:"https://github.com/zloirock/core-js"})},6293:function(t,e,r){var n=r(7392),o=r(7293),i=r(7854),s=i.String;t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!s(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},1400:function(t,e,r){var n=r(9303),o=Math.max,i=Math.min;t.exports=function(t,e){var r=n(t);return r<0?o(r+e,0):i(r,e)}},5656:function(t,e,r){var n=r(8361),o=r(4488);t.exports=function(t){return n(o(t))}},9303:function(t,e,r){var n=r(4758);t.exports=function(t){var e=+t;return e!==e||0===e?0:n(e)}},7466:function(t,e,r){var n=r(9303),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},7908:function(t,e,r){var n=r(4488),o=Object;t.exports=function(t){return o(n(t))}},7593:function(t,e,r){var n=r(6916),o=r(111),i=r(2190),s=r(8173),a=r(2140),c=r(5112),l=TypeError,u=c("toPrimitive");t.exports=function(t,e){if(!o(t)||i(t))return t;var r,c=s(t,u);if(c){if(void 0===e&&(e="default"),r=n(c,t,e),!o(r)||i(r))return r;throw l("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},4948:function(t,e,r){var n=r(7593),o=r(2190);t.exports=function(t){var e=n(t,"string");return o(e)?e:e+""}},1694:function(t,e,r){var n=r(5112),o=n("toStringTag"),i={};i[o]="z",t.exports="[object z]"===String(i)},1340:function(t,e,r){var n=r(648),o=String;t.exports=function(t){if("Symbol"===n(t))throw TypeError("Cannot convert a Symbol value to a string");return o(t)}},6330:function(t){var e=String;t.exports=function(t){try{return e(t)}catch(r){return"Object"}}},9711:function(t,e,r){var n=r(1702),o=0,i=Math.random(),s=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+s(++o+i,36)}},3307:function(t,e,r){var n=r(6293);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(t,e,r){var n=r(9781),o=r(7293);t.exports=n&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8053:function(t){var e=TypeError;t.exports=function(t,r){if(t<r)throw e("Not enough arguments");return t}},4811:function(t,e,r){var n=r(7854),o=r(614),i=n.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},5112:function(t,e,r){var n=r(7854),o=r(2309),i=r(2597),s=r(9711),a=r(6293),c=r(3307),l=n.Symbol,u=o("wks"),p=c?l["for"]||l:l&&l.withoutSetter||s;t.exports=function(t){return i(u,t)||(u[t]=a&&i(l,t)?l[t]:p("Symbol."+t)),u[t]}},7658:function(t,e,r){"use strict";var n=r(2109),o=r(7908),i=r(6244),s=r(3658),a=r(7207),c=r(7293),l=c((function(){return 4294967297!==[].push.call({length:4294967296},1)})),u=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}},p=l||!u();n({target:"Array",proto:!0,arity:1,forced:p},{push:function(t){var e=o(this),r=i(e),n=arguments.length;a(r+n);for(var c=0;c<n;c++)e[r]=arguments[c],r++;return s(e,r),r}})},2087:function(t,e,r){var n=r(7854),o=r(9781),i=r(7045),s=r(7066),a=r(7293),c=n.RegExp,l=c.prototype,u=o&&a((function(){var t=!0;try{c(".","d")}catch(u){t=!1}var e={},r="",n=t?"dgimsy":"gimsy",o=function(t,n){Object.defineProperty(e,t,{get:function(){return r+=n,!0}})},i={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var s in t&&(i.hasIndices="d"),i)o(s,i[s]);var a=Object.getOwnPropertyDescriptor(l,"flags").get.call(e);return a!==n||r!==n}));u&&i(l,"flags",{configurable:!0,get:s})},6229:function(t,e,r){"use strict";var n=r(8052),o=r(1702),i=r(1340),s=r(8053),a=URLSearchParams,c=a.prototype,l=o(c.append),u=o(c["delete"]),p=o(c.forEach),h=o([].push),d=new a("a=1&a=2");d["delete"]("a",1),d+""!=="a=2"&&n(c,"delete",(function(t){var e=arguments.length,r=e<2?void 0:arguments[1];if(e&&void 0===r)return u(this,t);var n=[];p(this,(function(t,e){h(n,{key:e,value:t})})),s(e,1);var o,a=i(t),c=i(r),d=0,f=0,g=!1,y=n.length;while(d<y)o=n[d++],g||o.key===a?(g=!0,u(this,o.key)):f++;while(f<y)o=n[f++],o.key===a&&o.value===c||l(this,o.key,o.value)}),{enumerable:!0,unsafe:!0})},7330:function(t,e,r){"use strict";var n=r(8052),o=r(1702),i=r(1340),s=r(8053),a=URLSearchParams,c=a.prototype,l=o(c.getAll),u=o(c.has),p=new a("a=1");p.has("a",2)&&n(c,"has",(function(t){var e=arguments.length,r=e<2?void 0:arguments[1];if(e&&void 0===r)return u(this,t);var n=l(this,t);s(e,1);var o=i(r),a=0;while(a<n.length)if(n[a++]===o)return!0;return!1}),{enumerable:!0,unsafe:!0})},2062:function(t,e,r){"use strict";var n=r(9781),o=r(1702),i=r(7045),s=URLSearchParams.prototype,a=o(s.forEach);n&&!("size"in s)&&i(s,"size",{get:function(){var t=0;return a(this,(function(){t++})),t},configurable:!0,enumerable:!0})},1092:function(t,e,r){"use strict";r.r(e);var n=r(8081),o=r.n(n),i=r(3645),s=r.n(i),a=s()(o());a.push([t.id,".GoogleMap{height:-moz-max-content;height:max-content;background:#e5e3df}.GoogleMap .SearchArea{border:1px solid #ddd;border-radius:6px;display:flex}.GoogleMap .SearchArea input{flex:1;outline:none;border:none;height:30px;padding:10px}",""]),e["default"]=a},3645:function(t){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var r="",n="undefined"!==typeof e[5];return e[4]&&(r+="@supports (".concat(e[4],") {")),e[2]&&(r+="@media ".concat(e[2]," {")),n&&(r+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),r+=t(e),n&&(r+="}"),e[2]&&(r+="}"),e[4]&&(r+="}"),r})).join("")},e.i=function(t,r,n,o,i){"string"===typeof t&&(t=[[null,t,void 0]]);var s={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(s[c]=!0)}for(var l=0;l<t.length;l++){var u=[].concat(t[l]);n&&s[u[0]]||("undefined"!==typeof i&&("undefined"===typeof u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=i),r&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=r):u[2]=r),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),e.push(u))}},e}},8081:function(t){"use strict";t.exports=function(t){return t[1]}},9082:function(t,e){"use strict";e.Z=(t,e)=>{const r=t.__vccOpts||t;for(const[n,o]of e)r[n]=o;return r}},1811:function(t,e,r){var n=r(1092);n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.id,n,""]]),n.locals&&(t.exports=n.locals);var o=r(3650).Z;o("e052cd36",n,!0,{sourceMap:!1,shadowMode:!1})},3650:function(t,e,r){"use strict";r.d(e,{Z:function(){return f}});r(7658);function n(t,e){for(var r=[],n={},o=0;o<e.length;o++){var i=e[o],s=i[0],a=i[1],c=i[2],l=i[3],u={id:t+":"+o,css:a,media:c,sourceMap:l};n[s]?n[s].parts.push(u):r.push(n[s]={id:s,parts:[u]})}return r}var o="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!o)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var i={},s=o&&(document.head||document.getElementsByTagName("head")[0]),a=null,c=0,l=!1,u=function(){},p=null,h="data-vue-ssr-id",d="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function f(t,e,r,o){l=r,p=o||{};var s=n(t,e);return g(s),function(e){for(var r=[],o=0;o<s.length;o++){var a=s[o],c=i[a.id];c.refs--,r.push(c)}e?(s=n(t,e),g(s)):s=[];for(o=0;o<r.length;o++){c=r[o];if(0===c.refs){for(var l=0;l<c.parts.length;l++)c.parts[l]();delete i[c.id]}}}}function g(t){for(var e=0;e<t.length;e++){var r=t[e],n=i[r.id];if(n){n.refs++;for(var o=0;o<n.parts.length;o++)n.parts[o](r.parts[o]);for(;o<r.parts.length;o++)n.parts.push(v(r.parts[o]));n.parts.length>r.parts.length&&(n.parts.length=r.parts.length)}else{var s=[];for(o=0;o<r.parts.length;o++)s.push(v(r.parts[o]));i[r.id]={id:r.id,refs:1,parts:s}}}}function y(){var t=document.createElement("style");return t.type="text/css",s.appendChild(t),t}function v(t){var e,r,n=document.querySelector("style["+h+'~="'+t.id+'"]');if(n){if(l)return u;n.parentNode.removeChild(n)}if(d){var o=c++;n=a||(a=y()),e=b.bind(null,n,o,!1),r=b.bind(null,n,o,!0)}else n=y(),e=w.bind(null,n),r=function(){n.parentNode.removeChild(n)};return e(t),function(n){if(n){if(n.css===t.css&&n.media===t.media&&n.sourceMap===t.sourceMap)return;e(t=n)}else r()}}var m=function(){var t=[];return function(e,r){return t[e]=r,t.filter(Boolean).join("\n")}}();function b(t,e,r,n){var o=r?"":n.css;if(t.styleSheet)t.styleSheet.cssText=m(e,o);else{var i=document.createTextNode(o),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(i,s[e]):t.appendChild(i)}}function w(t,e){var r=e.css,n=e.media,o=e.sourceMap;if(n&&t.setAttribute("media",n),p.ssrId&&t.setAttribute(h,e.id),o&&(r+="\n/*# sourceURL="+o.sources[0]+" */",r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),t.styleSheet)t.styleSheet.cssText=r;else{while(t.firstChild)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}},7203:function(e){"use strict";e.exports=t}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={id:t,exports:{}};return e[t].call(i.exports,i,i.exports,n),i.exports}!function(){n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,{a:e}),e}}(),function(){n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}}(),function(){n.p=""}();var o={};return function(){"use strict";if(n.d(o,{default:function(){return O}}),"undefined"!==typeof window){var t=window.document.currentScript,e=t&&t.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);e&&(n.p=e[1])}var r=n(7203);const i={class:"GoogleMap"},s={key:0,class:"SearchArea"},a=["disabled"];function c(t,e,n,o,c,l){return(0,r.openBlock)(),(0,r.createElementBlock)("div",i,[n.autocomplete?((0,r.openBlock)(),(0,r.createElementBlock)("div",s,[(0,r.withDirectives)((0,r.createElementVNode)("input",(0,r.mergeProps)(t.$attrs,{ref:"SearchInput",class:n.inputClass,disabled:n.disabledSearch,"onUpdate:modelValue":e[0]||(e[0]=t=>c.address=t)}),null,16,a),[[r.vModelDynamic,c.address]])])):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",{ref:n.id,style:(0,r.normalizeStyle)(l.mapStyle)},null,4)])}n(7658),n(2087),n(6229),n(7330),n(2062);
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
function l(t,e,r,n){function o(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,i){function s(t){try{c(n.next(t))}catch(e){i(e)}}function a(t){try{c(n["throw"](t))}catch(e){i(e)}}function c(t){t.done?r(t.value):o(t.value).then(s,a)}c((n=n.apply(t,e||[])).next())}))}var u=function t(e,r){if(e===r)return!0;if(e&&r&&"object"==typeof e&&"object"==typeof r){if(e.constructor!==r.constructor)return!1;var n,o,i;if(Array.isArray(e)){if(n=e.length,n!=r.length)return!1;for(o=n;0!==o--;)if(!t(e[o],r[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(r).length)return!1;for(o=n;0!==o--;)if(!Object.prototype.hasOwnProperty.call(r,i[o]))return!1;for(o=n;0!==o--;){var s=i[o];if(!t(e[s],r[s]))return!1}return!0}return e!==e&&r!==r};const p="__googleMapsScriptId";var h;(function(t){t[t["INITIALIZED"]=0]="INITIALIZED",t[t["LOADING"]=1]="LOADING",t[t["SUCCESS"]=2]="SUCCESS",t[t["FAILURE"]=3]="FAILURE"})(h||(h={}));class d{constructor({apiKey:t,authReferrerPolicy:e,channel:r,client:n,id:o=p,language:i,libraries:s=[],mapIds:a,nonce:c,region:l,retries:h=3,url:f="https://maps.googleapis.com/maps/api/js",version:g}){if(this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=t,this.authReferrerPolicy=e,this.channel=r,this.client=n,this.id=o||p,this.language=i,this.libraries=s,this.mapIds=a,this.nonce=c,this.region=l,this.retries=h,this.url=f,this.version=g,d.instance){if(!u(this.options,d.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(d.instance.options)}`);return d.instance}d.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?h.FAILURE:this.done?h.SUCCESS:this.loading?h.LOADING:h.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let t=this.url;return t+="?callback=__googleMapsCallback",this.apiKey&&(t+=`&key=${this.apiKey}`),this.channel&&(t+=`&channel=${this.channel}`),this.client&&(t+=`&client=${this.client}`),this.libraries.length>0&&(t+=`&libraries=${this.libraries.join(",")}`),this.language&&(t+=`&language=${this.language}`),this.region&&(t+=`®ion=${this.region}`),this.version&&(t+=`&v=${this.version}`),this.mapIds&&(t+=`&map_ids=${this.mapIds.join(",")}`),this.authReferrerPolicy&&(t+=`&auth_referrer_policy=${this.authReferrerPolicy}`),t}deleteScript(){const t=document.getElementById(this.id);t&&t.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise(((t,e)=>{this.loadCallback((r=>{r?e(r.error):t(window.google)}))}))}importLibrary(t){return this.execute(),google.maps.importLibrary(t)}loadCallback(t){this.callbacks.push(t),this.execute()}setScript(){var t,e;if(document.getElementById(this.id))return void this.callback();const r={key:this.apiKey,channel:this.channel,client:this.client,libraries:this.libraries.length&&this.libraries,v:this.version,mapIds:this.mapIds,language:this.language,region:this.region,authReferrerPolicy:this.authReferrerPolicy};Object.keys(r).forEach((t=>!r[t]&&delete r[t])),(null===(e=null===(t=null===window||void 0===window?void 0:window.google)||void 0===t?void 0:t.maps)||void 0===e?void 0:e.importLibrary)||(t=>{let e,r,n,o="The Google Maps JavaScript API",i="google",s="importLibrary",a="__ib__",c=document,u=window;u=u[i]||(u[i]={});const p=u.maps||(u.maps={}),h=new Set,d=new URLSearchParams,f=()=>e||(e=new Promise(((s,u)=>l(this,void 0,void 0,(function*(){var l;for(n in yield r=c.createElement("script"),r.id=this.id,d.set("libraries",[...h]+""),t)d.set(n.replace(/[A-Z]/g,(t=>"_"+t[0].toLowerCase())),t[n]);d.set("callback",i+".maps."+a),r.src=this.url+"?"+d,p[a]=s,r.onerror=()=>e=u(Error(o+" could not load.")),r.nonce=this.nonce||(null===(l=c.querySelector("script[nonce]"))||void 0===l?void 0:l.nonce)||"",c.head.append(r)})))));p[s]?console.warn(o+" only loads once. Ignoring:",t):p[s]=(t,...e)=>h.add(t)&&f().then((()=>p[s](t,...e)))})(r);const n=this.libraries.map((t=>this.importLibrary(t)));n.length||n.push(this.importLibrary("core")),Promise.all(n).then((()=>this.callback()),(t=>{const e=new ErrorEvent("error",{error:t});this.loadErrorCallback(e)}))}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(t){if(this.errors.push(t),this.errors.length<=this.retries){const t=this.errors.length*Math.pow(2,this.errors.length);console.error(`Failed to load Google Maps script, retrying in ${t} ms.`),setTimeout((()=>{this.deleteScript(),this.setScript()}),t)}else this.onerrorEvent=t,this.callback()}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach((t=>{t(this.onerrorEvent)})),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version)return console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."),void this.callback();this.loading||(this.loading=!0,this.setScript())}}}function f(t){return t.charAt(0).toUpperCase()+t.slice(1)}class g{constructor(t={}){this.options=t,this.el=t.el,this.language=t.language||"en",this.location=t.location||{lat:0,lng:0},this.version=t.version||"quarterly",this.libraries=t.libraries||["places"],this.zoom=t.zoom||11,this.google=null,this.googleMap=null,this.autocomplete=null,this.marker=null,this.geocoder=null,this.infoWindow=null,this.drawingManager=null,this.Loader=new d({apiKey:t.apiKey,version:this.version,libraries:this.libraries,language:this.language,...t.loaderOptions||{}})}async createInstance(){this.google=await this.Loader.load()}get mapOptions(){return{zoom:this.zoom,center:this.location,mapTypeControl:!1,streetViewControl:!1,...this.options.mapOptions||{}}}async init(t){const e=this.options.location;e||t||await this.setCurrentLocation();try{await this.createInstance(),this.googleMap=new this.google.maps.Map(this.el,this.mapOptions)}catch(r){console.error(r)}}getZoom(){return this.googleMap.getZoom()}resetZoom(){this.setZoom(this.zoom)}setZoom(t){this.googleMap.setZoom(t)}getMapCenter(){return this.googleMap.getCenter()}setLocation(t){this.location.lat=t.lat,this.location.lng=t.lng}async getCurrentLocation(t={}){return new Promise((function(e,r){navigator.geolocation.getCurrentPosition(e,r,t)}))}async setCurrentLocation(){let t="";try{t=await this.getCurrentLocation()}catch(e){console.log(e)}finally{if(t){const{latitude:e,longitude:r}=t.coords,n={lat:e,lng:r};this.setLocation(n)}}}generateLocationData(t){return new this.google.maps.LatLng(t.lat,t.lng)}convertPositionInfo(t){return{lat:t.lat(),lng:t.lng()}}setNewAddress(t){if(!t||!t.geometry||!t.geometry.location)return;const{location:e}=t.geometry,r=this.convertPositionInfo(e);return this.googleMap.setCenter(r),this.drawingManager||this.setZoom(15),{...t,coords:r}}createMarker(t={}){this.marker=new this.google.maps.Marker({map:this.googleMap,anchorPoint:new this.google.maps.Point(0,-29),...t}),this.setMarkerPosition(this.location),this.createInfoWindow()}visibleMarker(t){this.marker.setVisible(t)}getMarkerPosition(){if(!this.marker)return;const t=this.marker.getPosition();return this.convertPositionInfo(t)}async setMarkerData(){const t=this.getMarkerPosition();this.googleMap.setCenter(t);const e=await this.setGeocodeAddress(t);return e}markerAddListener(t,e){this.marker&&this.marker.addListener(t,e)}setMarkerPosition(t){this.marker.setPosition(t)}createGeocoder(){this.geocoder=new this.google.maps.Geocoder}async getAddressOnGeocoder(t){if(!t)return null;try{const e=await this.geocoder.geocode({location:t}),r=e.results[0];return r}catch(e){return console.error("error geocode",e),null}}async setGeocodeAddress(t){const e=await this.getAddressOnGeocoder(t);return e&&this.setNewAddress(e),e}createInfoWindow(t={}){this.infoWindow=new this.google.maps.InfoWindow(t)}openInfoWindow(t={}){this.infoWindow.setContent(t.content),this.infoWindow.open({anchor:this.marker,map:this.googleMap,...t})}closeInfoWindow(){this.infoWindow.close()}createAutoComplete(t,e={}){if(!this.google)return;const r=new this.google.maps.places.Autocomplete(t,e);this.autocomplete=r}getAutoCompleteAddress(){return this.autocomplete.getPlace()}autoCompleteAddListener(t,e){this.autocomplete&&this.autocomplete.addListener(t,(t=>e(t)))}setAutoComplete(){const t=this.getAutoCompleteAddress(),e=this.setNewAddress(t);return this.setMarkerPosition(e.coords),this.visibleMarker(!0),e}controlContainsCircles(t,e){return t.some((t=>{const r=new this.google.maps.Circle(t).getBounds().contains({lat:e.lat,lng:e.lng});return r}))}createDrawingManager(t={},e){const r=new y(this.google,this.googleMap);r.init(t,e),this.drawingManager=r}}class y{constructor(t,e){this.google=t,this.map=e,this.manager=null,this.shapes={},this.shapeInstances={},this.callbacks={},this.isSingle=!0,this.shapeColor="#53A1E0",this.OverlayTypes=t.maps.drawing.OverlayType,this.OverlayTypeValues.map((t=>{const e=f(t);this.shapes[t]={},this.callbacks[t]=null,this.shapeInstances[t]=this.google.maps[e]}))}get maps(){if(this.google)return this.google.maps}get OverlayTypeValues(){return Object.values(this.OverlayTypes)}get drawing(){if(this.maps)return this.maps.drawing}get CIRCLE_SHAPE(){return this.OverlayTypes.CIRCLE}get POLYGON_SHAPE(){return this.OverlayTypes.POLYGON}get POLYLINE_SHAPE(){return this.OverlayTypes.POLYLINE}get RECTANGLE_SHAPE(){return this.OverlayTypes.RECTANGLE}get MARKER_SHAPE(){return this.OverlayTypes.MARKER}get ALL_SHAPES(){const t=Object.values(this.shapes).map((t=>Object.values(t)));return t.flat()}init(t={},e){this.setCallbacks(e),Object.prototype.hasOwnProperty.call(t,"isSingle")&&(this.isSingle=t.isSingle);const r=this.getOptions(t);this.manager=new this.drawing.DrawingManager(r),this.manager.setMap(this.map),this.maps.event.addListener(this.manager,"overlaycomplete",(t=>{const{type:e,overlay:r}=t,n=Date.now(),o={key:n,type:e,overlay:r};this.setOverlay(o),r.setEditable&&r.setEditable(!0),this.setOverlayEvents(o)}))}setShapeColor(t){this.shapeColor=t}runCallShapeCallback(t){const e=this.callbacks[t];e&&"function"===typeof e&&e(this.shapes[t])}createShapes({type:t,shapes:e,opts:r={}}){e.map((e=>{const n=this.getShapeOptions({type:t,shapeData:e,opts:r}),o={...n,editable:!0,map:this.map},i=new this.shapeInstances[t](o),s=Date.now(),a={key:s,type:t,overlay:i};this.setOverlay(a),this.afterCompleteDrawing(t),this.setOverlayEvents(a),this.mapFitBounds({type:t,shape:i})}))}setCallbacks(t){if(!t)return;if("object"!==typeof t)throw Error("callbacks must be object");const e=Object.keys(t);e.forEach((e=>{const r=this.OverlayTypeValues.includes(e);if(!r)throw Error(`${e}cannot be used as a callback. You can looks drawing overlay types. https://developers.google.com/maps/documentation/javascript/reference/drawing#OverlayType`);this.callbacks[e]=t[e]}))}createPolyBounds(t){const e=new this.google.maps.LatLngBounds;for(const r of t.getPath().getArray())e.extend(r);return e}mapFitBounds({type:t,shape:e}){let r;switch(t){case this.CIRCLE_SHAPE:case this.RECTANGLE_SHAPE:r=e.getBounds();break;case this.POLYGON_SHAPE:case this.POLYLINE_SHAPE:r=this.createPolyBounds(e);break;case this.MARKER_SHAPE:this.map.setCenter(e.getPosition()),this.map.setZoom(15);break;default:break}r&&this.map.fitBounds(r)}afterCompleteDrawing(t){const e=this.ALL_SHAPES.length;this.manager.setOptions({drawingMode:""}),this.isSingle&&this.manager.setOptions({drawingControl:0===e}),this.runCallShapeCallback(t)}getCircleOptions(t={}){const e=this.shapeColor;return{fillColor:e,fillOpacity:.5,strokeColor:e,strokeWeight:2,draggable:!0,zIndex:1,...t}}getPolygonOptions(t={}){const e=this.shapeColor;return{fillColor:e,fillOpacity:.5,strokeColor:e,strokeWeight:2,draggable:!0,zIndex:1,...t}}getPolylineOptions(t={}){const e=this.shapeColor;return{strokeOpacity:1,strokeColor:e,strokeWeight:2,draggable:!0,zIndex:1,...t}}getRectangleOptions(t={}){const e=this.shapeColor;return{fillColor:e,fillOpacity:.5,strokeColor:e,strokeWeight:2,draggable:!0,zIndex:1,...t}}getMarkerOptions(t={}){return{draggable:!0,zIndex:1,anchorPoint:new this.google.maps.Point(0,-29),...t}}getShapeOptions({type:t,opts:e={},shapeData:r}){switch(t){case this.CIRCLE_SHAPE:return{...this.getCircleOptions(e),center:r.center,radius:r.radius};case this.POLYGON_SHAPE:return{...this.getPolygonOptions(e),paths:r};case this.POLYLINE_SHAPE:return{...this.getPolylineOptions(e),path:r};case this.RECTANGLE_SHAPE:return{...this.getRectangleOptions(e),bounds:r};case this.MARKER_SHAPE:return{...this.getMarkerOptions(e),position:r};default:return{}}}getOptions(t){const e={drawingMode:"",drawingControl:!0,map:this.map,drawingControlOptions:{drawingModes:this.OverlayTypeValues}},r={...e.drawingControlOptions,...t.drawingControlOptions||{}},n={...e,...t,drawingControlOptions:r,circleOptions:{...this.getCircleOptions(t.circleOptions)},polygonOptions:{...this.getPolygonOptions(t.polygonOptions)},polylineOptions:{...this.getPolygonOptions(t.polylineOptions)},rectangleOptions:{...this.getRectangleOptions(t.rectangleOptions)},markerOptions:{...this.getMarkerOptions(t.rectangleOptions)}};return n}setOverlayEvents({key:t,type:e,overlay:r}){switch(r.addListener("rightclick",(()=>this.removeOverlay({key:t,type:e,overlay:r}))),e){case this.CIRCLE_SHAPE:r.addListener("radius_changed",(()=>this.setOverlay({key:t,type:e,overlay:r}))),r.addListener("center_changed",(()=>this.setOverlay({key:t,type:e,overlay:r})));break;case this.RECTANGLE_SHAPE:r.addListener("bounds_changed",(()=>this.setOverlay({key:t,type:e,overlay:r})));break;case this.POLYGON_SHAPE:case this.POLYLINE_SHAPE:const n=r.getPath();n.addListener("insert_at",(()=>this.setOverlay({key:t,type:e,overlay:r}))),n.addListener("remove_at",(()=>this.setOverlay({key:t,type:e,overlay:r}))),n.addListener("set_at",(()=>this.setOverlay({key:t,type:e,overlay:r})));break;case this.MARKER_SHAPE:r.addListener("dragend",(()=>this.setOverlay({key:t,type:e,overlay:r})));break;default:break}}setOverlay({key:t,type:e,overlay:r}){this.shapes[e][t]=r,this.afterCompleteDrawing(e)}removeOverlay({key:t,type:e,overlay:r}){r.setMap(),delete this.shapes[e][t],this.afterCompleteDrawing(e)}}var v={name:"VueGoogleMapUI",emits:["change-address","update-circle","update-polygon","update-polyline","update-rectangle","update-marker"],props:{apiKey:{type:String,required:!0},disabledSearch:{type:Boolean},id:{type:String,default:"GoogleMapArea"},inputClass:{type:String,default:""},width:{type:String,default:"100%"},height:{type:String,default:"500px"},drawingMode:{type:String,default:""},autocomplete:{type:Boolean,default:!1},currentAddress:{type:Object,default:null},location:{type:Object,default:null},language:{type:String,default:""},circles:{type:Array,default:()=>[]},polygons:{type:Array,default:()=>[]},polylines:{type:Array,default:()=>[]},rectangles:{type:Array,default:()=>[]},markers:{type:Array,default:()=>[]},mapStyleOption:{type:Object,default:()=>({})},loaderOptions:{type:Object,default:()=>({})},drawingManagerOptions:{type:Object,default:()=>({})},drawingControlOptions:{type:Object,default:()=>({})}},data(){return{address:"",addressInfo:null}},computed:{mapStyle(){return{width:this.width,height:this.height,borderRadius:"inherit",...this.mapStyleOption}},GoogleMaps(){return new g({apiKey:this.apiKey,el:this.$refs[this.id],libraries:["places","drawing"],language:this.language,location:this.location,loaderOptions:this.loaderOptions})},autoCompleteOptions(){return{fields:["name","geometry","formatted_address","place_id"],strictBounds:!0,types:["establishment"]}}},methods:{setAddressData(t){t&&(this.addressInfo=t,this.address=t.formatted_address,this.GoogleMaps.closeInfoWindow(),this.$emit("change-address",{info:t,address:this.address}))},setAutoComplete(){const t=this.GoogleMaps.setAutoComplete();this.setAddressData(t)},async setLocation(){const t=await this.GoogleMaps.setMarkerData();this.setAddressData(t)},setCurrentAddres(){const t=JSON.parse(JSON.stringify(this.currentAddress));if(t){const e=this.GoogleMaps.generateLocationData(t.geometry.location);t.geometry.location=e,this.setAddressData(t),this.GoogleMaps.setNewAddress(t),this.GoogleMaps.setMarkerPosition(e)}else 0===this.getShapesData().length&&this.setLocation()},mapFitWithCircle(t){this.GoogleMaps.drawingManager.mapFitWithCircle(t)},getShapeTypes(){return this.GoogleMaps.google.maps.drawing.OverlayType},getShapesData(){const t=this.getShapeTypes();return Object.values(t).reduce(((t,e)=>(t.push(...this[`${e}s`]),t)),[])},getShapesUpdateCallback(){const t=this.getShapeTypes();return Object.values(t).reduce(((t,e)=>(t[e]=t=>this.updateShapes(e,t),t)),{})},updateShapes(t,e){this.$emit(`update-${t}`,e)},createShapes(){const t=this.getShapeTypes();Object.values(t).forEach((t=>{const e=this[`${t}s`]||[];this.GoogleMaps.drawingManager.createShapes({type:t,shapes:e})}))},initMarker(){const t=this.drawingMode;this.GoogleMaps.createMarker({draggable:!t}),this.GoogleMaps.visibleMarker(t!==this.getShapeTypes().MARKER),this.GoogleMaps.markerAddListener("dragend",this.setLocation),this.GoogleMaps.markerAddListener("click",(()=>{this.GoogleMaps.openInfoWindow({content:this.address})}))},initAutoComplete(){if(this.autocomplete){const t=this.$refs.SearchInput;this.GoogleMaps.createAutoComplete(t,this.autoCompleteOptions),this.GoogleMaps.autoCompleteAddListener("place_changed",this.setAutoComplete)}},async initDrawingManager(){if(this.drawingMode){const t=this.getShapesUpdateCallback(),e={drawingMode:this.drawingMode,...this.drawingManagerOptions,drawingControlOptions:{drawingModes:[this.drawingMode],...this.drawingControlOptions}};this.GoogleMaps.createDrawingManager(e,t),this.createShapes()}},initGeocoder(){this.GoogleMaps.createGeocoder()},async initMap(){await this.GoogleMaps.init(),this.initGeocoder(),this.initMarker(),this.initAutoComplete(),this.initDrawingManager()}},async mounted(){await this.initMap(),this.setCurrentAddres()},watch:{language(){window.location.reload()}},beforeUnmount(){this.GoogleMaps.Loader.deleteScript(),this.address="",this.addressInfo=""}},m=(n(1811),n(9082));const b=(0,m.Z)(v,[["render",c]]);var w=b,O=w}(),o=o["default"],o}()}));
//# sourceMappingURL=vuegooglemap.umd.min.js.map