/*! 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([[29],{65:function(e,t,n){"use strict";n.r(t),n.d(t,"getLocation",(function(){return o}));var i=n(49),a=n.n(i),r=n(53),s=n(44),l=n(0);function o(e,t){const{mapId:n,filters:i,query:o,refreshInterval:u,timeRange:c,initialLayers:d,hash:p}=e,f=null!=p?p:t.useHash,h={},b={};o&&(h.query=o),i&&i.length&&(h.filters=null==i?void 0:i.filter((e=>!Object(s.isFilterPinned)(e)))),c&&(b.time=c),i&&i.length&&(b.filters=null==i?void 0:i.filter((e=>Object(s.isFilterPinned)(e)))),u&&(b.refreshInterval=u);let m=`/map#/${n||""}`;if(m=Object(r.setStateToKbnUrl)("_g",b,{useHash:f},m),m=Object(r.setStateToKbnUrl)("_a",h,{useHash:f},m),d&&d.length){const e=a.a.encodeArray(d);m=`${m}&${l.R}=${encodeURIComponent(e)}`}return{app:l.e,path:m,state:e.dataViewSpec?{dataViewSpec:e.dataViewSpec}:{}}}}}]);