/*! Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one or more contributor license agreements. * Licensed under the Elastic License 2.0; you may not use this file except in compliance with the Elastic License 2.0. */ (window.maps_bundle_jsonpfunction=window.maps_bundle_jsonpfunction||[]).push([[18],{120:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var i=n(39),o=n.n(i);const s={};let a,u,c;const l={getGeoFieldNames(){const e=[];return Object.values(s).forEach((t=>{e.push(...t.getGeoFieldNames())})),o.a.uniq(e)},getLocation:()=>a,getMapPanels:()=>Object.keys(s).map((e=>({...s[e],id:e}))),hasMultipleMaps:()=>Object.keys(s).length>1,register(e,t){s[e]=t},setLocation(e,t,n,i){u&&u!==e||(u=e,c&&clearTimeout(c),c=setTimeout((()=>{u=void 0}),500),a={lat:t,lon:n,zoom:i},Object.keys(s).forEach((o=>{if(o===e)return;const a=s[o];a.getIsMovementSynchronized()&&a.onLocationChange(t,n,i)})))},unregister(e){delete s[e],0===Object.keys(s).length&&(a=void 0)}}},228:function(e,t,n){"use strict";function i(e){var t,n;return"visualization"===e.type&&"function"==typeof e.getVis&&["region_map","tile_map"].includes(null===(t=e.getVis())||void 0===t||null===(n=t.type)||void 0===n?void 0:n.name)}n.d(t,"a",(function(){return i}))},532:function(e,t,n){"use strict";n.r(t),n.d(t,"isCompatible",(function(){return a}));var i=n(0),o=n(228),s=n(120);function a({embeddable:e}){var t;return!!s.a.hasMultipleMaps()&&("lens"===e.type&&"function"==typeof e.getSavedVis&&"lnsChoropleth"===(null===(t=e.getSavedVis())||void 0===t?void 0:t.visualizationType)||!!Object(o.a)(e)||e.type===i.fb)}}}]);