UNPKG

jodit-pro

Version:

PRO Version of Jodit Editor

2 lines (1 loc) 900 B
var l=Object.defineProperty;var t=(e,o)=>l(e,"name",{value:o,configurable:!0});let p=!1;const n=[];function d(e){p?e():n.push(e)}t(d,"googleReady");function i(){p=!0,n&&n.forEach(e=>e())}t(i,"GoogleReadyHandler");function f(e,o=!1){const r=[];if(Array.isArray(e))if(Array.isArray(e[0])||Array.isArray(e[1]))e.forEach(a=>{r.push(f(a,o))});else return o?{lat:e[0],lng:e[1]}:new google.maps.LatLng(e[0],e[1]);return r}t(f,"arrayToPath");function g(e){return e.getArray().map(o=>[o.lat(),o.lng()])}t(g,"pathToArray");function u(e){return e.toUpperCase().replace("#","0x").padEnd(10,"F")}t(u,"specialColor");function A(){return typeof google<"u"&&typeof google.maps<"u"&&typeof google.maps.Map<"u"}t(A,"isApiAvailable");export{i as GoogleReadyHandler,f as arrayToPath,d as googleReady,A as isApiAvailable,p as jdGoogleMapsAlreadyLoaded,n as jdGoogleMapsOnloadHandlers,g as pathToArray,u as specialColor};