UNPKG

inertia-google-maps

Version:
2 lines 40.8 kB
(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["inertia-google-maps"]=e(require("vue")):t["inertia-google-maps"]=e(t["Vue"])})("undefined"!==typeof self?self:this,(function(t){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"00ee":function(t,e,n){var o=n("b622"),r=o("toStringTag"),i={};i[r]="z",t.exports="[object z]"===String(i)},"04f8":function(t,e,n){var o=n("2d00"),r=n("d039");t.exports=!!Object.getOwnPropertySymbols&&!r((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&o&&o<41}))},"06cf":function(t,e,n){var o=n("83ab"),r=n("c65b"),i=n("d1e7"),a=n("5c6c"),s=n("fc6a"),c=n("a04b"),l=n("1a2d"),u=n("0cfb"),d=Object.getOwnPropertyDescriptor;e.f=o?d:function(t,e){if(t=s(t),e=c(e),u)try{return d(t,e)}catch(n){}if(l(t,e))return a(!r(i.f,t,e),t[e])}},"07fa":function(t,e,n){var o=n("50c4");t.exports=function(t){return o(t.length)}},"0cfb":function(t,e,n){var o=n("83ab"),r=n("d039"),i=n("cc12");t.exports=!o&&!r((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},"0d26":function(t,e,n){var o=n("e330"),r=Error,i=o("".replace),a=function(t){return String(r(t).stack)}("zxcasd"),s=/\n\s*at [^:]*:[^\n]*/,c=s.test(a);t.exports=function(t,e){if(c&&"string"==typeof t&&!r.prepareStackTrace)while(e--)t=i(t,s,"");return t}},"0d51":function(t,e){var n=String;t.exports=function(t){try{return n(t)}catch(e){return"Object"}}},"13d2":function(t,e,n){var o=n("d039"),r=n("1626"),i=n("1a2d"),a=n("83ab"),s=n("5e77").CONFIGURABLE,c=n("8925"),l=n("69f3"),u=l.enforce,d=l.get,p=Object.defineProperty,f=a&&!o((function(){return 8!==p((function(){}),"length",{value:8}).length})),h=String(String).split("String"),g=t.exports=function(t,e,n){"Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!i(t,"name")||s&&t.name!==e)&&(a?p(t,"name",{value:e,configurable:!0}):t.name=e),f&&n&&i(n,"arity")&&t.length!==n.arity&&p(t,"length",{value:n.arity});try{n&&i(n,"constructor")&&n.constructor?a&&p(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(r){}var o=u(t);return i(o,"source")||(o.source=h.join("string"==typeof e?e:"")),t};Function.prototype.toString=g((function(){return r(this)&&d(this).source||c(this)}),"toString")},"14d9":function(t,e,n){"use strict";var o=n("23e7"),r=n("7b0b"),i=n("07fa"),a=n("3a34"),s=n("3511"),c=n("d039"),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}}();o({target:"Array",proto:!0,arity:1,forced:l||u},{push:function(t){var e=r(this),n=i(e),o=arguments.length;s(n+o);for(var c=0;c<o;c++)e[n]=arguments[c],n++;return a(e,n),n}})},1626:function(t,e,n){var o=n("8ea1"),r=o.all;t.exports=o.IS_HTMLDDA?function(t){return"function"==typeof t||t===r}:function(t){return"function"==typeof t}},"1a2d":function(t,e,n){var o=n("e330"),r=n("7b0b"),i=o({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(r(t),e)}},"1d80":function(t,e,n){var o=n("7234"),r=TypeError;t.exports=function(t){if(o(t))throw r("Can't call method on "+t);return t}},"1de5":function(t,e,n){"use strict";t.exports=function(t,e){return e||(e={}),t=t&&t.__esModule?t.default:t,"string"!==typeof t?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t)}},"23cb":function(t,e,n){var o=n("5926"),r=Math.max,i=Math.min;t.exports=function(t,e){var n=o(t);return n<0?r(n+e,0):i(n,e)}},"23e7":function(t,e,n){var o=n("da84"),r=n("06cf").f,i=n("9112"),a=n("cb2d"),s=n("6374"),c=n("e893"),l=n("94ca");t.exports=function(t,e){var n,u,d,p,f,h,g=t.target,m=t.global,b=t.stat;if(u=m?o:b?o[g]||s(g,{}):(o[g]||{}).prototype,u)for(d in e){if(f=e[d],t.dontCallGetSet?(h=r(u,d),p=h&&h.value):p=u[d],n=l(m?d:g+(b?".":"#")+d,t.forced),!n&&void 0!==p){if(typeof f==typeof p)continue;c(f,p)}(t.sham||p&&p.sham)&&i(f,"sham",!0),a(u,d,f,t)}}},"241c":function(t,e,n){var o=n("ca84"),r=n("7839"),i=r.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return o(t,i)}},"24fb":function(t,e,n){"use strict";function o(t,e){var n=t[1]||"",o=t[3];if(!o)return n;if(e&&"function"===typeof btoa){var i=r(o),a=o.sources.map((function(t){return"/*# sourceURL=".concat(o.sourceRoot||"").concat(t," */")}));return[n].concat(a).concat([i]).join("\n")}return[n].join("\n")}function r(t){var e=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),n="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(e);return"/*# ".concat(n," */")}t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=o(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,o){"string"===typeof t&&(t=[[null,t,""]]);var r={};if(o)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(r[a]=!0)}for(var s=0;s<t.length;s++){var c=[].concat(t[s]);o&&r[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),e.push(c))}},e}},"2ba4":function(t,e,n){var o=n("40d5"),r=Function.prototype,i=r.apply,a=r.call;t.exports="object"==typeof Reflect&&Reflect.apply||(o?a.bind(i):function(){return a.apply(i,arguments)})},"2d00":function(t,e,n){var o,r,i=n("da84"),a=n("342f"),s=i.process,c=i.Deno,l=s&&s.versions||c&&c.version,u=l&&l.v8;u&&(o=u.split("."),r=o[0]>0&&o[0]<4?1:+(o[0]+o[1])),!r&&a&&(o=a.match(/Edge\/(\d+)/),(!o||o[1]>=74)&&(o=a.match(/Chrome\/(\d+)/),o&&(r=+o[1]))),t.exports=r},"342f":function(t,e,n){var o=n("d066");t.exports=o("navigator","userAgent")||""},3511:function(t,e){var n=TypeError,o=9007199254740991;t.exports=function(t){if(t>o)throw n("Maximum allowed index exceeded");return t}},3658:function(t,e,n){var o=n("384d");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var r=n("499e").default;r("0af54636",o,!0,{sourceMap:!1,shadowMode:!1})},"384d":function(t,e,n){var o=n("24fb"),r=n("1de5"),i=n("bbc5"),a=n("4d66");e=o(!1);var s=r(i),c=r(a);e.push([t.i,"#mapHolder{position:relative}#mapHolder,#mapHolder #map,#mapHolder #map .loading{width:100%;height:100%;float:left}#mapHolder #map .loading{background-color:#ededed;position:realtive}#mapHolder #map .loading .text{width:100%;padding:15px;text-align:center;position:absolute;top:50%;transform:translateY(-50%)}#mapHolder #map iframe{width:100%;height:100%}#mapHolder #map #infowindow-content,#mapHolder #map #pac-card{display:block}@keyframes gps-searching-animation{0%{width:50%;height:50%}to{width:100%;height:100%}}#mapHolder #pac-card{background:#ededed;padding:10px;width:100%;height:auto;display:none;position:relative}#mapHolder #pac-card input{width:100%;line-height:30px;border-radius:5px;background-color:#fff;border:0;outline:0;padding:5px 40px 5px 40px;font-size:14px;background-image:url("+s+');background-size:auto 15px;background-repeat:no-repeat;background-position:left 15px center}#mapHolder #pac-card .location-by-gps-btn{position:absolute;width:30px;height:30px;top:50%;transform:translateY(-50%);right:15px}#mapHolder #pac-card .location-by-gps-btn:hover{cursor:pointer}#mapHolder #pac-card .location-by-gps-btn:before{display:block;content:"";width:100%;height:100%;position:absolute;top:0;left:0;z-index:2;background-image:url('+c+');background-position:50%;background-repeat:no-repeat;background-size:18px auto;border-radius:30px}#mapHolder #pac-card .location-by-gps-btn.searching:after{display:block;border-radius:30px;background-color:#fdf6e3;content:"";width:100%;height:100%;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:1;animation-name:gps-searching-animation;animation-iteration-count:infinite;animation-duration:1s}#mapHolder #infowindow-content{width:100%;float:left;display:none}',""]),t.exports=e},"3a34":function(t,e,n){"use strict";var o=n("83ab"),r=n("e8b5"),i=TypeError,a=Object.getOwnPropertyDescriptor,s=o&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=s?function(t,e){if(r(t)&&!a(t,"length").writable)throw i("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},"3a9b":function(t,e,n){var o=n("e330");t.exports=o({}.isPrototypeOf)},"3bbe":function(t,e,n){var o=n("1626"),r=String,i=TypeError;t.exports=function(t){if("object"==typeof t||o(t))return t;throw i("Can't set "+r(t)+" as a prototype")}},"40d5":function(t,e,n){var o=n("d039");t.exports=!o((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},"44ad":function(t,e,n){var o=n("e330"),r=n("d039"),i=n("c6b6"),a=Object,s=o("".split);t.exports=r((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?s(t,""):a(t)}:a},"485a":function(t,e,n){var o=n("c65b"),r=n("1626"),i=n("861d"),a=TypeError;t.exports=function(t,e){var n,s;if("string"===e&&r(n=t.toString)&&!i(s=o(n,t)))return s;if(r(n=t.valueOf)&&!i(s=o(n,t)))return s;if("string"!==e&&r(n=t.toString)&&!i(s=o(n,t)))return s;throw a("Can't convert object to primitive value")}},"499e":function(t,e,n){"use strict";function o(t,e){for(var n=[],o={},r=0;r<e.length;r++){var i=e[r],a=i[0],s=i[1],c=i[2],l=i[3],u={id:t+":"+r,css:s,media:c,sourceMap:l};o[a]?o[a].parts.push(u):n.push(o[a]={id:a,parts:[u]})}return n}n.r(e),n.d(e,"default",(function(){return h}));var r="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!r)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={},a=r&&(document.head||document.getElementsByTagName("head")[0]),s=null,c=0,l=!1,u=function(){},d=null,p="data-vue-ssr-id",f="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function h(t,e,n,r){l=n,d=r||{};var a=o(t,e);return g(a),function(e){for(var n=[],r=0;r<a.length;r++){var s=a[r],c=i[s.id];c.refs--,n.push(c)}e?(a=o(t,e),g(a)):a=[];for(r=0;r<n.length;r++){c=n[r];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 n=t[e],o=i[n.id];if(o){o.refs++;for(var r=0;r<o.parts.length;r++)o.parts[r](n.parts[r]);for(;r<n.parts.length;r++)o.parts.push(b(n.parts[r]));o.parts.length>n.parts.length&&(o.parts.length=n.parts.length)}else{var a=[];for(r=0;r<n.parts.length;r++)a.push(b(n.parts[r]));i[n.id]={id:n.id,refs:1,parts:a}}}}function m(){var t=document.createElement("style");return t.type="text/css",a.appendChild(t),t}function b(t){var e,n,o=document.querySelector("style["+p+'~="'+t.id+'"]');if(o){if(l)return u;o.parentNode.removeChild(o)}if(f){var r=c++;o=s||(s=m()),e=v.bind(null,o,r,!1),n=v.bind(null,o,r,!0)}else o=m(),e=w.bind(null,o),n=function(){o.parentNode.removeChild(o)};return e(t),function(o){if(o){if(o.css===t.css&&o.media===t.media&&o.sourceMap===t.sourceMap)return;e(t=o)}else n()}}var y=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}();function v(t,e,n,o){var r=n?"":o.css;if(t.styleSheet)t.styleSheet.cssText=y(e,r);else{var i=document.createTextNode(r),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(i,a[e]):t.appendChild(i)}}function w(t,e){var n=e.css,o=e.media,r=e.sourceMap;if(o&&t.setAttribute("media",o),d.ssrId&&t.setAttribute(p,e.id),r&&(n+="\n/*# sourceURL="+r.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{while(t.firstChild)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}},"4d64":function(t,e,n){var o=n("fc6a"),r=n("23cb"),i=n("07fa"),a=function(t){return function(e,n,a){var s,c=o(e),l=i(c),u=r(a,l);if(t&&n!=n){while(l>u)if(s=c[u++],s!=s)return!0}else for(;l>u;u++)if((t||u in c)&&c[u]===n)return t||u||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},"4d66":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABHNCSVQICAgIfAhkiAAABPxJREFUaEPtWUFy2zYUBUh3V8v2CaqcILKSfeSJnK2dE0Q+QeQTVD1B3RNEPkHtba2MlX0jsycofYJYSnY1ib5PghYEAiBIWTthRjMaCgT++//9/x8gzjY0FpNXp4yJT/hErf7d0Ya2YXxTCy9uulOs/obW5yI42j3+e7qJvbYAbF7dRsCTb1sKFY768Venk4TBCResg2f0aa86UUy54JHgPErC5PrgKHrwdLJz2loR+Hbb2Q+S8ANnYlg2uNK8MarT5brVqTEA1PkPqPEXMHO/0lT3hKskTM8RkbjJOrUBSK/fwutEE3XcAxBqfQCDkkg36PvN614apB2estOiPygvP+DZeevtbFwXRC0AxPM0CP7U6ALD+bDV/3rluzmc0A4TPsJ7iOJyIH8udo9n577r0DxvANL4W5UyAl7bezsjGjUaOZCAgL9UFhi3+rMz3wW9ABBtsNGd4vl5kKa9n99Fke9Gtnn52hxOWEajjmO8AMwnr+4Uzj+b8SqoxeQQ/F+C8NVPlQAWn7sDJhhUZT7g+UOX53NahG8EF20uRA9GxfBoHCRiuvvu7osrYqr8wLwYVHpRFWEnAEmdfwveu0Ir+fwr5g4cm8YANELCX5rmyP2Ilr/Q70Kw3/aOZyMXCCeA+U13xDkjo2jcwyNt02JL7e/dE6j2n5m6sRbxB+x50BjAYtIl70uj+XtTqZTGU2mtNQTj0V7/66HZIV1EKo8CImbct3jPGgFZNqnyWL0vaUNzGnVjbP7Hbn9GMmRlzD93h+gJv+cPxTVOdDjdmYcVwCp9xCUWGehL6JWjVgjkZFDphd61pWMo+tkAjax2Wn+AcWgw/MQWRn2TJsZnBLFEAfSlZM4anKvyOQAs+W/ykl5emwLAe8ZyWeXAYj+eJ2H6sWwA77lCqFWoNew3U0RbP0Yu4KMOHpOKBYDuNzx2JqGJg1rTWQuAiSI+DqK+xH0MMQLQWv86CODJA70n+AAguZHlAGl13QDBU1Ke1irgs4EvKJODvk+6F4KxjNqU6ExkqvVpPO48xlS97ElccTFFoFWQvsaW55nrvO+1jBWA6gGbBkL+UGLJjtkQAmdnppOYmpsmihW72SOgqlDBvrSOZyWaPUMpNeorTZ5YNZikl9lzUhlShcqGqRfQ89V6XSsK1nOF2uGrFKlTja5KBbOckECnMF09FlYhmSMzhybq6B3e5rhKCtEEPVFdi6k5U2H9Per+qe1QBO6Tss3Fm4W66vrVJzJFE5EETsPkyHarRt7bSYIhyh8ZoCW3uGacX7muTvScqvK+MwcKlDKkJKz25DPvWwOS5P/9xKheV14j6rceNpGnR7cyAlmiaudiPPIGUZUM9LvhyuYfeL/nA9wLQJYPSmfMjRLTJBTvfTZxgZDOocNLocfmML7tu643gCwSZf0Tuw7pLsMtlwC1r2xqASCDVo97TybGSPALJDhdmwOUfSxuOieMB5TkA22WN23U92oDyOiU66AxvpZkBFUqXILRXdDTrV2Qsn3cE+EymNOFcEm6U8I+hunIlzZrAygWkIqUDuVFhXI5v/wb6nyykw6qouZatFEE9AXzRBSgRXGGduK4hzwYpzvpeB3Dix2eBYBqbl4Sw7b88yOjWKHnoeHpf4PKnlAnjM8OoNjcV8/XMdY0dwvA5sFtBDy5tTkKKV3bR1V62luatjEA2b+ZaTDAJ1r3v2AXuP8BxVnEryMn3rAAAAAASUVORK5CYII="},"50c4":function(t,e,n){var o=n("5926"),r=Math.min;t.exports=function(t){return t>0?r(o(t),9007199254740991):0}},5692:function(t,e,n){var o=n("c430"),r=n("c6cd");(t.exports=function(t,e){return r[t]||(r[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.25.3",mode:o?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.25.3/LICENSE",source:"https://github.com/zloirock/core-js"})},"56ef":function(t,e,n){var o=n("d066"),r=n("e330"),i=n("241c"),a=n("7418"),s=n("825a"),c=r([].concat);t.exports=o("Reflect","ownKeys")||function(t){var e=i.f(s(t)),n=a.f;return n?c(e,n(t)):e}},"577e":function(t,e,n){var o=n("f5df"),r=String;t.exports=function(t){if("Symbol"===o(t))throw TypeError("Cannot convert a Symbol value to a string");return r(t)}},5926:function(t,e,n){var o=n("b42e");t.exports=function(t){var e=+t;return e!==e||0===e?0:o(e)}},"59ed":function(t,e,n){var o=n("1626"),r=n("0d51"),i=TypeError;t.exports=function(t){if(o(t))return t;throw i(r(t)+" is not a function")}},"5c6c":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"5e77":function(t,e,n){var o=n("83ab"),r=n("1a2d"),i=Function.prototype,a=o&&Object.getOwnPropertyDescriptor,s=r(i,"name"),c=s&&"something"===function(){}.name,l=s&&(!o||o&&a(i,"name").configurable);t.exports={EXISTS:s,PROPER:c,CONFIGURABLE:l}},6374:function(t,e,n){var o=n("da84"),r=Object.defineProperty;t.exports=function(t,e){try{r(o,t,{value:e,configurable:!0,writable:!0})}catch(n){o[t]=e}return e}},"69f3":function(t,e,n){var o,r,i,a=n("cdce"),s=n("da84"),c=n("e330"),l=n("861d"),u=n("9112"),d=n("1a2d"),p=n("c6cd"),f=n("f772"),h=n("d012"),g="Object already initialized",m=s.TypeError,b=s.WeakMap,y=function(t){return i(t)?r(t):o(t,{})},v=function(t){return function(e){var n;if(!l(e)||(n=r(e)).type!==t)throw m("Incompatible receiver, "+t+" required");return n}};if(a||p.state){var w=p.state||(p.state=new b),A=c(w.get),x=c(w.has),O=c(w.set);o=function(t,e){if(x(w,t))throw m(g);return e.facade=t,O(w,t,e),e},r=function(t){return A(w,t)||{}},i=function(t){return x(w,t)}}else{var j=f("state");h[j]=!0,o=function(t,e){if(d(t,j))throw m(g);return e.facade=t,u(t,j,e),e},r=function(t){return d(t,j)?t[j]:{}},i=function(t){return d(t,j)}}t.exports={set:o,get:r,has:i,enforce:y,getterFor:v}},"6b0d":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=(t,e)=>{const n=t.__vccOpts||t;for(const[o,r]of e)n[o]=r;return n}},7156:function(t,e,n){var o=n("1626"),r=n("861d"),i=n("d2bb");t.exports=function(t,e,n){var a,s;return i&&o(a=e.constructor)&&a!==n&&r(s=a.prototype)&&s!==n.prototype&&i(t,s),t}},7234:function(t,e){t.exports=function(t){return null===t||void 0===t}},7418:function(t,e){e.f=Object.getOwnPropertySymbols},7839:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(t,e,n){var o=n("1d80"),r=Object;t.exports=function(t){return r(o(t))}},"7fb6":function(t,e,n){"use strict";n("3658")},"825a":function(t,e,n){var o=n("861d"),r=String,i=TypeError;t.exports=function(t){if(o(t))return t;throw i(r(t)+" is not an object")}},"83ab":function(t,e,n){var o=n("d039");t.exports=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"861d":function(t,e,n){var o=n("1626"),r=n("8ea1"),i=r.all;t.exports=r.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:o(t)||t===i}:function(t){return"object"==typeof t?null!==t:o(t)}},8925:function(t,e,n){var o=n("e330"),r=n("1626"),i=n("c6cd"),a=o(Function.toString);r(i.inspectSource)||(i.inspectSource=function(t){return a(t)}),t.exports=i.inspectSource},"8bbf":function(e,n){e.exports=t},"8ea1":function(t,e){var n="object"==typeof document&&document.all,o="undefined"==typeof n&&void 0!==n;t.exports={all:n,IS_HTMLDDA:o}},"90e3":function(t,e,n){var o=n("e330"),r=0,i=Math.random(),a=o(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++r+i,36)}},9112:function(t,e,n){var o=n("83ab"),r=n("9bf2"),i=n("5c6c");t.exports=o?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},"94ca":function(t,e,n){var o=n("d039"),r=n("1626"),i=/#|\.prototype\./,a=function(t,e){var n=c[s(t)];return n==u||n!=l&&(r(e)?o(e):!!e)},s=a.normalize=function(t){return String(t).replace(i,".").toLowerCase()},c=a.data={},l=a.NATIVE="N",u=a.POLYFILL="P";t.exports=a},"9bf2":function(t,e,n){var o=n("83ab"),r=n("0cfb"),i=n("aed9"),a=n("825a"),s=n("a04b"),c=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d="enumerable",p="configurable",f="writable";e.f=o?i?function(t,e,n){if(a(t),e=s(e),a(n),"function"===typeof t&&"prototype"===e&&"value"in n&&f in n&&!n[f]){var o=u(t,e);o&&o[f]&&(t[e]=n.value,n={configurable:p in n?n[p]:o[p],enumerable:d in n?n[d]:o[d],writable:!1})}return l(t,e,n)}:l:function(t,e,n){if(a(t),e=s(e),a(n),r)try{return l(t,e,n)}catch(o){}if("get"in n||"set"in n)throw c("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},a04b:function(t,e,n){var o=n("c04e"),r=n("d9b5");t.exports=function(t){var e=o(t,"string");return r(e)?e:e+""}},ab36:function(t,e,n){var o=n("861d"),r=n("9112");t.exports=function(t,e){o(e)&&"cause"in e&&r(t,"cause",e.cause)}},aeb0:function(t,e,n){var o=n("9bf2").f;t.exports=function(t,e,n){n in t||o(t,n,{configurable:!0,get:function(){return e[n]},set:function(t){e[n]=t}})}},aed9:function(t,e,n){var o=n("83ab"),r=n("d039");t.exports=o&&r((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},b42e:function(t,e){var n=Math.ceil,o=Math.floor;t.exports=Math.trunc||function(t){var e=+t;return(e>0?o:n)(e)}},b622:function(t,e,n){var o=n("da84"),r=n("5692"),i=n("1a2d"),a=n("90e3"),s=n("04f8"),c=n("fdbf"),l=r("wks"),u=o.Symbol,d=u&&u["for"],p=c?u:u&&u.withoutSetter||a;t.exports=function(t){if(!i(l,t)||!s&&"string"!=typeof l[t]){var e="Symbol."+t;s&&i(u,t)?l[t]=u[t]:l[t]=c&&d?d(e):p(e)}return l[t]}},b980:function(t,e,n){var o=n("d039"),r=n("5c6c");t.exports=!o((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",r(1,7)),7!==t.stack)}))},bbc5:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAGKADAAQAAAABAAAAGAAAAADB/VeXAAACj0lEQVRIDa1VPXYTMRAeaeGFjhzBLVCwnAD7BA4nwKl5zouLrE2FU7G2iwT7Udu5QTgB5gRxBa1zg9DxQqzhm41Hq934J3lBzYzmT6NPMyNDa9ZR/2scGVcn5gqTiQ1RDNMpM8/ImLlZ3HxLP7bma9y9GH7FdXhysrtz/WRsDO0VNSt2hrrpUfN4hcaLCgd0BqMqOR4jw4q32MIw0Qy3ebfuNlb9s+BM3wvBmc6IeH9B9k2aNA0ZqjnmFmQ/1A8ZxhxFF53PJxWVhRR6IoHl2XV0EQS/RLAGrj8NjUM+6Q0PcWIXUD5fyqdIohbaCJ/dYOdvNAmD/3l6E28KLo799sGpM7Yq/HJV5VDdKLVSLcikrgLJ/LTVuvL7Dcwg+TAjpmM1wW0+Ka/URuzyagHm2zJXR6Vpu9kFfyl7JLqbvaVslksgquiGDE89/wAGlXSu5s5xrLxQC6UXLCiahcr78obQfMtl0ZTKC7XA7bUKMkx18xCKzvbmhiueBwOI8pou4xcabuJDWDBW/G3EBxDlgtBwU8CyLoQlhOv2AOa5OgCvvFxVuIVKkwKFt2pWfkdr3eJclaArmyXQ32HLTVp+R5sNqVKzSPPdibRCkAyGKaq/jhF+q0WTls2MCtq90SysKHTN2lGsIx2+e/BZLv6ZJgevdKfUqyVry24KBx1egJbn0kSWLD4ZN3fZx4NGYqoGs0tjgfIEh+wHAuQZrGzkRhh8ZPyjBeqVLND5haRe5MriIdk0VaW8BzKoysyH42+Vr6Ey0mu9dvMlbnSW25hGpz8c675wAxUqlcaT3sjqHB0qPSN1LqVYrpZObzTBge/VF9B+6SVN/Bn/cZUPkV+wANFjz8LobihccoPHxruX/z/cc/WGlIj91gAAAABJRU5ErkJggg=="},c04e:function(t,e,n){var o=n("c65b"),r=n("861d"),i=n("d9b5"),a=n("dc4a"),s=n("485a"),c=n("b622"),l=TypeError,u=c("toPrimitive");t.exports=function(t,e){if(!r(t)||i(t))return t;var n,c=a(t,u);if(c){if(void 0===e&&(e="default"),n=o(c,t,e),!r(n)||i(n))return n;throw l("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},c430:function(t,e){t.exports=!1},c65b:function(t,e,n){var o=n("40d5"),r=Function.prototype.call;t.exports=o?r.bind(r):function(){return r.apply(r,arguments)}},c6b6:function(t,e,n){var o=n("e330"),r=o({}.toString),i=o("".slice);t.exports=function(t){return i(r(t),8,-1)}},c6cd:function(t,e,n){var o=n("da84"),r=n("6374"),i="__core-js_shared__",a=o[i]||r(i,{});t.exports=a},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(o){"object"===typeof window&&(n=window)}t.exports=n},ca84:function(t,e,n){var o=n("e330"),r=n("1a2d"),i=n("fc6a"),a=n("4d64").indexOf,s=n("d012"),c=o([].push);t.exports=function(t,e){var n,o=i(t),l=0,u=[];for(n in o)!r(s,n)&&r(o,n)&&c(u,n);while(e.length>l)r(o,n=e[l++])&&(~a(u,n)||c(u,n));return u}},cb2d:function(t,e,n){var o=n("1626"),r=n("9bf2"),i=n("13d2"),a=n("6374");t.exports=function(t,e,n,s){s||(s={});var c=s.enumerable,l=void 0!==s.name?s.name:e;if(o(n)&&i(n,l,s),s.global)c?t[e]=n:a(e,n);else{try{s.unsafe?t[e]&&(c=!0):delete t[e]}catch(u){}c?t[e]=n:r.f(t,e,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}},cc12:function(t,e,n){var o=n("da84"),r=n("861d"),i=o.document,a=r(i)&&r(i.createElement);t.exports=function(t){return a?i.createElement(t):{}}},cdce:function(t,e,n){var o=n("da84"),r=n("1626"),i=o.WeakMap;t.exports=r(i)&&/native code/.test(String(i))},d012:function(t,e){t.exports={}},d039:function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},d066:function(t,e,n){var o=n("da84"),r=n("1626"),i=function(t){return r(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?i(o[t]):o[t]&&o[t][e]}},d1e7:function(t,e,n){"use strict";var o={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!o.call({1:2},1);e.f=i?function(t){var e=r(this,t);return!!e&&e.enumerable}:o},d2bb:function(t,e,n){var o=n("e330"),r=n("825a"),i=n("3bbe");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=o(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),t(n,[]),e=n instanceof Array}catch(a){}return function(n,o){return r(n),i(o),e?t(n,o):n.__proto__=o,n}}():void 0)},d9b5:function(t,e,n){var o=n("d066"),r=n("1626"),i=n("3a9b"),a=n("fdbf"),s=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=o("Symbol");return r(e)&&i(e.prototype,s(t))}},d9e2:function(t,e,n){var o=n("23e7"),r=n("da84"),i=n("2ba4"),a=n("e5cb"),s="WebAssembly",c=r[s],l=7!==Error("e",{cause:7}).cause,u=function(t,e){var n={};n[t]=a(t,e,l),o({global:!0,constructor:!0,arity:1,forced:l},n)},d=function(t,e){if(c&&c[t]){var n={};n[t]=a(s+"."+t,e,l),o({target:s,stat:!0,constructor:!0,arity:1,forced:l},n)}};u("Error",(function(t){return function(e){return i(t,this,arguments)}})),u("EvalError",(function(t){return function(e){return i(t,this,arguments)}})),u("RangeError",(function(t){return function(e){return i(t,this,arguments)}})),u("ReferenceError",(function(t){return function(e){return i(t,this,arguments)}})),u("SyntaxError",(function(t){return function(e){return i(t,this,arguments)}})),u("TypeError",(function(t){return function(e){return i(t,this,arguments)}})),u("URIError",(function(t){return function(e){return i(t,this,arguments)}})),d("CompileError",(function(t){return function(e){return i(t,this,arguments)}})),d("LinkError",(function(t){return function(e){return i(t,this,arguments)}})),d("RuntimeError",(function(t){return function(e){return i(t,this,arguments)}}))},da84:function(t,e,n){(function(e){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 e&&e)||function(){return this}()||Function("return this")()}).call(this,n("c8ba"))},dc4a:function(t,e,n){var o=n("59ed"),r=n("7234");t.exports=function(t,e){var n=t[e];return r(n)?void 0:o(n)}},e330:function(t,e,n){var o=n("40d5"),r=Function.prototype,i=r.bind,a=r.call,s=o&&i.bind(a,a);t.exports=o?function(t){return t&&s(t)}:function(t){return t&&function(){return a.apply(t,arguments)}}},e391:function(t,e,n){var o=n("577e");t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:o(t)}},e5cb:function(t,e,n){"use strict";var o=n("d066"),r=n("1a2d"),i=n("9112"),a=n("3a9b"),s=n("d2bb"),c=n("e893"),l=n("aeb0"),u=n("7156"),d=n("e391"),p=n("ab36"),f=n("0d26"),h=n("b980"),g=n("83ab"),m=n("c430");t.exports=function(t,e,n,b){var y="stackTraceLimit",v=b?2:1,w=t.split("."),A=w[w.length-1],x=o.apply(null,w);if(x){var O=x.prototype;if(!m&&r(O,"cause")&&delete O.cause,!n)return x;var j=o("Error"),P=e((function(t,e){var n=d(b?e:t,void 0),o=b?new x(t):new x;return void 0!==n&&i(o,"message",n),h&&i(o,"stack",f(o.stack,2)),this&&a(O,this)&&u(o,this,P),arguments.length>v&&p(o,arguments[v]),o}));if(P.prototype=O,"Error"!==A?s?s(P,j):c(P,j,{name:!0}):g&&y in x&&(l(P,x,y),l(P,x,"prepareStackTrace")),c(P,x),!m)try{O.name!==A&&i(O,"name",A),O.constructor=P}catch(C){}return P}}},e893:function(t,e,n){var o=n("1a2d"),r=n("56ef"),i=n("06cf"),a=n("9bf2");t.exports=function(t,e,n){for(var s=r(e),c=a.f,l=i.f,u=0;u<s.length;u++){var d=s[u];o(t,d)||n&&o(n,d)||c(t,d,l(e,d))}}},e8b5:function(t,e,n){var o=n("c6b6");t.exports=Array.isArray||function(t){return"Array"==o(t)}},f5df:function(t,e,n){var o=n("00ee"),r=n("1626"),i=n("c6b6"),a=n("b622"),s=a("toStringTag"),c=Object,l="Arguments"==i(function(){return arguments}()),u=function(t,e){try{return t[e]}catch(n){}};t.exports=o?i:function(t){var e,n,o;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=u(e=c(t),s))?n:l?i(e):"Object"==(o=i(e))&&r(e.callee)?"Arguments":o}},f772:function(t,e,n){var o=n("5692"),r=n("90e3"),i=o("keys");t.exports=function(t){return i[t]||(i[t]=r(t))}},fb15:function(t,e,n){"use strict";if(n.r(e),"undefined"!==typeof window){var o=window.document.currentScript,r=o&&o.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);r&&(n.p=r[1])}n("d9e2"),n("14d9");const i={loaded:!1,readyPromises:[],load({apiKey:t,version:e,libraries:n,language:o,region:r}){if("undefined"===typeof window)return Promise.resolve();if(this.loaded||window.google&&window.google.maps)this._setLoaded();else{const i=document.createElement("SCRIPT"),a={};if("string"===typeof t)a.key=t;else{if("object"!==typeof t)throw new Error("`apiKey` should either be a string or an object");for(let e in t)a[e]=t[e]}let s="";n&&n.length>0?(s=n.join(","),a["libraries"]=s):a.libraries instanceof Array&&(a.libraries=a.libraries.join(",")),a["callback"]="VueGoogleMapsLoaded";let c="https://maps.googleapis.com/",l=c+"maps/api/js?"+Object.keys(a).map(t=>encodeURIComponent(t)+"="+encodeURIComponent(a[t])).join("&");e&&(l=l+"&v="+e),o&&(l=l+"&language="+o),r&&(l=l+"&region="+r),i.setAttribute("src",l),i.setAttribute("async",""),i.setAttribute("defer",""),document.body.appendChild(i),window.VueGoogleMapsLoaded=this._setLoaded.bind(this)}},ensureReady(){return this.loaded?Promise.resolve():new Promise(t=>{this.readyPromises.push(t)})},_setLoaded(){this.loaded=!0;for(let t=0;t<this.readyPromises.length;t++)this.readyPromises[t]();this.readyPromises=[]}};var a=i,s=n("8bbf");const c={id:"mapHolder"},l={id:"map"},u={class:"loading"},d={class:"text"},p={id:"pac-card"},f=["placeholder"],h={id:"infowindow-content"},g={id:"place-name",class:"title"},m=Object(s["createElementVNode"])("br",null,null,-1),b={id:"place-address"};function y(t,e,n,o,r,i){return Object(s["openBlock"])(),Object(s["createElementBlock"])("div",c,[Object(s["createElementVNode"])("div",l,[Object(s["createElementVNode"])("div",u,[Object(s["createElementVNode"])("div",d,Object(s["toDisplayString"])(this.loading),1)])]),Object(s["createElementVNode"])("div",p,[Object(s["withDirectives"])(Object(s["createElementVNode"])("input",{id:"pac-input",placeholder:n.placeholder,type:"text","onUpdate:modelValue":e[0]||(e[0]=t=>r.query=t)},null,8,f),[[s["vModelText"],r.query]]),Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(["location-by-gps-btn",{searching:r.searching_gps}]),onClick:e[1]||(e[1]=Object(s["withModifiers"])((...t)=>i.getLocationViaGPS&&i.getLocationViaGPS(...t),["prevent"]))},null,2)]),Object(s["createElementVNode"])("div",h,[Object(s["createElementVNode"])("span",g,Object(s["toDisplayString"])(null!=r.place?r.place.name:""),1),m,Object(s["createElementVNode"])("span",b,Object(s["toDisplayString"])(null!=r.place?r.place.formatted_address:""),1)])])}var v={name:"PlaceSearch",props:{ready:{type:Boolean,default:void 0},loading:String,placeholder:String,fallbackProcedure:String,zoom:Number,geolocation:Object,gps_timeout:{type:Number,default:5e3},address:Object,manually:Object,query_mod:String,verConsole:{type:Boolean,default:!1}},data(){return{searching_gps:!1,lat:null!=this.geolocation?this.geolocation.lat:null,lng:null!=this.geolocation?this.geolocation.lng:null,query_address:this.address.query,default_zoom:void 0!=this.zoom?this.zoom:9,query:null,map:null,marker:null,place:null,zip_code:null,country:null,state:null,city:null,town:null,area:null,nearest_road:"route",address_description:null,placeAddresCompoponent:{zip_code:"postal_code",country:"country",state:"administrative_area_level_1",city:"administrative_area_level_2",town:"sublocality_level_1",area:"sublocality_level_2",nearest_road:"route"}}},watch:{query_mod:function(t){this.query=t,""==this.query&&this.hideInfoWindow(),this.verConsole&&console.log("query_mod",t)},place:function(){if(void 0==this.place.manually){this.watchCityAndCountryChange(),this.lat=this.place.geometry.location.lat(),this.lng=this.place.geometry.location.lng();for(const t in this.placeAddresCompoponent)this.$set,this[t]=this.getAddressComponent(this.place.address_components,this.placeAddresCompoponent[t]);this.emitData()}},fallbackProcedure:function(){void 0!=this.fallbackProcedure&&console.log(this.fallbackProcedure)},address:function(){this.query_address=this.address.query,this.default_zoom=this.address.zoom,this.verConsole&&(console.log("watch address: "+this.query_address),console.log("watch zoom: "+this.default_zoom))},geolocation:function(t){this.verConsole&&(console.log("watch geolocation: "),console.log(t)),this.lat=null!=t?t.lat:null,this.lng=null!=t?t.lng:null,this.getNovoLocal()},ready:function(t){setTimeout(()=>{1==t&&this.buildApplication()},200)}},methods:{returnData(){return{query:this.query,lat:this.lat,lng:this.lng,place:this.place,address_description:this.address_description,city:this.city,state:this.state,country:this.country,zip_code:this.zip_code}},createMap(t,e){this.verConsole&&console.log("Criando Mapa"),this.map=new window.google.maps.Map(document.getElementById("map"),{center:t,zoom:e,mapTypeControlOptions:{position:window.google.maps.ControlPosition.BOTTOM_LEFT}})},findNearestPlace(){this.verConsole&&console.log("encontrar o lugar mais próximo"),this.findPlaces(this.lat,this.lng,10,(t,e)=>{if(e===window.google.maps.places.PlacesServiceStatus.OK){let e=t[0];void 0!=t[0]&&(t[0].types.includes("route")?e=t[0]:void 0!=t[1]&&(e=t[1])),this.getPlaceDetails(e.place_id,(t,e)=>{e===window.google.maps.places.PlacesServiceStatus.OK&&(this.place=t)})}})},findPlaces(t,e,n,o){this.verConsole&&console.log("encontrar lugares");var r=new window.google.maps.LatLng(t,e),i={location:r,radius:n,fields:["address_components","formatted_address","geometry","name"]},a=new window.google.maps.places.PlacesService(this.map);a.nearbySearch(i,o)},getPlaceDetails(t,e){this.verConsole&&console.log("obter detalhes do lugar");var n=new window.google.maps.places.PlacesService(this.map);n.getDetails({placeId:t,fields:["address_components","formatted_address","geometry","name"]},e)},watchCityAndCountryChange(){this.verConsole&&console.log("Check Mudanças de Cidades e Países"),null!=this.place&&(void 0==this.place.name||null==this.place.name||this.place.formatted_address.includes(this.place.name)?this.address_description=this.place.formatted_address:this.address_description=this.place.name+", "+this.place.formatted_address)},getAddressComponent(t,e){this.verConsole&&console.log("Componente de Endereço");var n="",o=t.filter(t=>t.types.some(t=>t===e));return null!=o&&o.length>0&&(n=o[0].long_name),this.query=this.address_description,n},initMapByCoordinates(t,e,n=null){console.log("Iniciar Mapa por Coordenadas");let o=void 0!=this.geolocation.zoom?this.geolocation.zoom:this.default_zoom;null!=n&&(o=n),this.createMap({lat:t,lng:e},o),this.findNearestPlace(),this.prepareMap(),this.createMarker(),this.marker.setPosition({lat:t,lng:e})},initMapManually(){this.verConsole&&console.log("Iniciar Mapa Manualmente"),this.address_description=this.manually.address_description,this.city=this.manually.city,this.country=this.manually.country,this.lat=this.manually.lat,this.lng=this.manually.lng,this.state=this.manually.state,this.zip_code=this.manually.zip_code,this.lat=this.manually.lat,this.lng=this.manually.lng,this.emitData(),this.createMap({lat:this.lat,lng:this.lng},this.manually.zoom),this.prepareMap(),this.createMarker(),this.marker.setPosition({lat:this.lat,lng:this.lng})},initMapByEnd(){this.verConsole&&console.log("Teste de END");let t=new window.google.maps.Geocoder,e=void 0!=this.address.zoom?this.address.zoom:this.default_zoom;t.geocode({address:this.query_address},(t,n)=>{n==window.google.maps.GeocoderStatus.OK?(this.createMap(t[0].geometry.location,e),this.place=t[0],this.prepareMap()):this.initMapByCoordinates(this.lat,this.lng,5)})},initMapByAddress(){this.verConsole&&console.log("Inicializar Mapa por Endereço");let t=new window.google.maps.Geocoder,e=void 0!=this.address.zoom?this.address.zoom:this.default_zoom;t.geocode({address:this.query_address},(t,n)=>{n==window.google.maps.GeocoderStatus.OK?(this.createMap(t[0].geometry.location,e),this.place=t[0],this.prepareMap()):(this.initMapByCoordinates(this.lat,this.lng,5),this.verConsole&&console.log("defaut long: "+n))})},createMarker(t=null){this.verConsole&&console.log("Criar Marcador"),null==this.marker&&(this.marker=new window.google.maps.Marker({map:this.map,draggable:!0,anchorPoint:new window.google.maps.Point(0,-29)}),null!=t&&this.marker.setPosition(t),window.google.maps.event.addListener(this.marker,"dragend",()=>{this.lat=this.marker.getPosition().lat(),this.lng=this.marker.getPosition().lng(),this.emitData()}),window.google.maps.event.addListener(this.marker,"dragstart",()=>{this.hideInfoWindow()}))},repositionMarker(t){this.verConsole&&console.log("Reposicionar Marcador"),this.lat=t.lat(),this.lng=t.lng(),this.findNearestPlace(),null==this.marker?this.createMarker(t):this.marker.setPosition(t)},createInfoWindow(){this.verConsole&&console.log("Criar Janela de Informações"),this.infowindow=new window.google.maps.InfoWindow,this.infowindowContent=document.getElementById("infowindow-content"),this.infowindow.setContent(this.infowindowContent)},showInfoWindow(){this.verConsole&&console.log("Mostrar Janela de Informações"),this.infowindow.open(this.map,this.marker)},hideInfoWindow(){this.verConsole&&console.log("Ocultar Janela de Informações"),this.infowindow.close()},generateSearchCard(){this.verConsole&&console.log("Gerar Cartão de Pesquisa");const t=document.getElementById("pac-card"),e=document.getElementById("pac-input"),n={fields:["address_components","formatted_address","geometry","name"],origin:this.map.getCenter(),strictBounds:!1};this.map.controls[window.google.maps.ControlPosition.TOP_RIGHT].push(t);const o=new window.google.maps.places.Autocomplete(e,n);o.bindTo("bounds",this.map),this.createMarker(),o.addListener("place_changed",()=>{this.hideInfoWindow(),this.marker.setVisible(!1);const t=o.getPlace();t.geometry&&t.geometry.location?(t.geometry.viewport?this.map.fitBounds(t.geometry.viewport):(this.map.setCenter(t.geometry.location),this.map.setZoom(17)),this.marker.setPosition(t.geometry.location),this.marker.setVisible(!0),this.place=t,this.showInfoWindow()):window.alert("No details available for input: '"+t.name+"'")})},prepareMap(){this.verConsole&&console.log("Preparar Mapa"),window.google.maps.event.addListener(this.map,"click",t=>{this.repositionMarker(t["latLng"]),this.hideInfoWindow()}),this.generateSearchCard(),this.createInfoWindow()},emitData(){this.$emit("changed",this.returnData())},getLocationViaGPS(){this.verConsole&&console.log("Obter Localização via GPS"),this.searching_gps=!0,this.$getLocation({timeout:this.gps_timeout}).then(t=>{this.lat=t.lat,this.lng=t.lng,this.findNearestPlace(),this.marker.setPosition({lat:this.lat,lng:this.lng}),this.map.panTo(new window.google.maps.LatLng(this.lat,this.lng))}).catch(t=>{console.log(t)}).finally(()=>{this.searching_gps=!1})},getNovoLocal(){this.verConsole&&console.log("Obter Novo Local");let t=void 0!=this.geolocation.zoom?this.geolocation.zoom:15;this.map.setZoom(t),this.findNearestPlace(),this.marker.setPosition({lat:this.lat,lng:this.lng}),this.map.panTo(new window.google.maps.LatLng(this.lat,this.lng))},async buildApplication(){"manually"===this.fallbackProcedure?this.initMapManually():"geolocation"===this.fallbackProcedure?this.initMapByCoordinates(this.lat,this.lng):"address"===this.fallbackProcedure?(this.initMapByAddress(),this.verConsole&&console.log("address <-- fallback")):"end"===this.fallbackProcedure?(this.initMapByEnd(),this.verConsole&&console.log("end <-- fallback")):(this.searching_gps=!0,this.$getLocation({timeout:this.gps_timeout}).then(t=>{this.lat=t.lat,this.lng=t.lng,this.initMapByCoordinates(this.lat,this.lng,this.zoom),this.createMarker(),this.marker.setPosition({lat:this.lat,lng:this.lng})}).catch(()=>{this.initMapByAddress(),this.initMapByEnd()}).finally(()=>{this.searching_gps=!1}))}},async mounted(){await a.ensureReady(),void 0!=this.ready&&0==this.ready||this.buildApplication()}},w=(n("7fb6"),n("6b0d")),A=n.n(w);const x=A()(v,[["render",y]]);var O=x;const j={install:(t,e)=>{const n=Object.assign({},e);t.config.globalProperties.$GMaps=j.finalOptions,n.load&&a.load(n.load),t.component("PlaceSearch",O)}};var P=j;e["default"]=P},fc6a:function(t,e,n){var o=n("44ad"),r=n("1d80");t.exports=function(t){return o(r(t))}},fdbf:function(t,e,n){var o=n("04f8");t.exports=o&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}})["default"]})); //# sourceMappingURL=inertia-google-maps.umd.min.js.map