text: (self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[6993],{97222:(e,r,t)=>{"use strict";t.d(r,{Vc:()=>o,bj:()=>a,p7:()=>u,Av:()=>i,M8:()=>s,wn:()=>c,gs:()=>l,NN:()=>f,C2:()=>p,O7:()=>d,oQ:()=>g,dX:()=>y,al:()=>v,Gh:()=>E,x2:()=>b,Y7:()=>m,b4:()=>h,GI:()=>O,KP:()=>T,dS:()=>S,Zw:()=>_,Z:()=>R,a:()=>w,WN:()=>A,k9:()=>C,yo:()=>P,kE:()=>j,kV:()=>q,v2:()=>I,_q:()=>H,tt:()=>D,Jc:()=>k,w4:()=>L,QJ:()=>G,KG:()=>M,o$:()=>x,TS:()=>X,Tw:()=>F,I3:()=>N});var n=t(97395),o="SEARCH:SEARCH_WITH_FILTER",a="TEXT_SEARCH_STARTED",u="TEXT_SEARCH_RESULTS_LOADED",i="TEXT_SEARCH_RESULTS_PURGE",s="TEXT_SEARCH_RESET",c="TEXT_SEARCH_ADD_MARKER",l="TEXT_SEARCH_TEXT_CHANGE",f="TEXT_SEARCH_LOADING",p="TEXT_SEARCH_NESTED_SERVICE_SELECTED",d="TEXT_SEARCH_ERROR",g="TEXT_SEARCH_CANCEL_ITEM",y="TEXT_SEARCH_ITEM_SELECTED",v="TEXT_SEARCH_SHOW_GFI",E="TEXT_SEARCH_SET_HIGHLIGHTED_FEATURE",b="UPDATE_RESULTS_STYLE",m="CHANGE_SEARCH_TOOL",h="SEARCH:ZOOM_ADD_POINT",O="SEARCH:CHANGE_FORMAT",T="SEARCH:CHANGE_COORD",S="SEARCH:HIDE_MARKER";function _(e){return{type:O,format:e}}function R(e,r,t){return{type:h,pos:e,zoom:r,crs:t}}function w(e){return{type:m,activeSearchTool:e}}function A(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=arguments.length>2?arguments[2]:void 0;return{type:u,results:e,append:r,services:t}}function C(e){return{type:l,searchText:e}}function P(e){return{type:f,loading:e}}function j(e){return{type:d,error:e}}function q(){return{type:i}}function I(){return{type:s}}function H(e,r){return{type:c,markerPosition:e,markerLabel:r}}function D(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=r.services,n=void 0===t?null:t,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:15;return{type:a,searchText:e,services:n,maxResults:o}}function k(e,r,t){return{type:y,item:e,mapConfig:r,resultsStyle:t}}var L=function(e){return{type:v,item:e}};function G(e,r,t){return{type:p,searchText:t,services:e,items:r}}function M(e){return{type:g,item:e}}function x(e){return{type:b,style:e}}function X(e,r){return{type:T,coord:e,val:r}}function F(){return(0,n.vU)({title:"Error",position:"tc",message:"search.errors.nonQueriableLayers",autoDismiss:10})}function N(){return(0,n.vU)({title:"Error",position:"tc",message:"search.errors.serverError",autoDismiss:10})}},93451:(e,r,t)=>{"use strict";t.d(r,{Z:()=>T});var n=t(86638),o=t(45697),a=t.n(o),u=t(84596),i=t.n(u),s=t(1469),c=t.n(s),l=t(14293),f=t.n(l),p=t(47037),d=t.n(p),g=t(2479),y=["messages"];function v(e,r){if(null==e)return{};var t,n,o=function(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function E(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function b(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?E(Object(t),!0).forEach((function(r){m(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):E(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function m(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var h=function(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"label";if(c()(r))return r.map((function(o){var a=(0,n.S$)(e,o[t]||d()(o)&&o||"");return b(b({},o),{},m({},t,f()(a)?r:a))}));var o=(0,n.S$)(e,r);return f()(o)?r:o},O=function(e,r,t){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;return b(b({},n),{},m({},o,e[o]&&h(r,e[o],t)))}};const T=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"label";return(0,g.compose)((0,g.getContext)({messages:a().object}),(0,g.mapProps)((function(t){var n=t.messages,o=v(t,y);return b(b({},o),i()(e).reduce(O(o,n,r),{}))})))}},26125:(e,r,t)=>{"use strict";t.d(r,{Z:()=>R});var n=t(21914),o=t(81808),a=t(82904),u=t(27418),i=t.n(u),s=t(30998),c=t.n(s),l=t(52353),f=t.n(l),p=t(41609),d=t.n(p),g=t(13652),y=t(7412),v=["index","loaded"];function E(e,r){if(null==e)return{};var t,n,o=function(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function b(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,r){if(e){if("string"==typeof e)return m(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?m(e,r):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function h(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function O(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?h(Object(t),!0).forEach((function(r){T(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):h(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function T(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function S(e,r,t){var n="vector"===t,o=n?r.reqId:c()(e.requests||[],(function(e){return e.reqId===r.reqId}));if(-1!==o){var a;if(["exceptions","error"].includes(t)){var u=e.requests.filter((function(e,r){return r!==o})),s=e.responses.filter((function(e,r){return r!==o}));return O(O({},e),{},{responses:s,requests:u})}var l,p=e.configuration,g=e.requests,v=e.responses||[],E="hover"===(null==p?void 0:p.trigger)||(null==e?void 0:e.showInMapPopup);if(!n){var m={response:r[t],queryParams:r.requestParams,layerMetadata:r.layerMetadata,layer:r.layer};E?v=[].concat(b(v),[m]):v[o]=m}return E?l={loaded:!0,index:0}:!E&&function(e,r,t,n){var o,a,u=e.configuration,i=e.requests,s=e.queryableLayers,c=void 0===s?[]:s,l=e.index,p=(u||{}).infoFormat,g=null===(o=(0,y.Te)(p))||void 0===o?void 0:o.getValidResponses([r[t]]),v=null===(a=(0,y.Te)(p))||void 0===a?void 0:a.getNoValidResponses(r),E=f()(l)&&!!g.length,b=!n&&i.length===v.filter((function(e){return e})).length,m=f()(l)&&n&&i.filter((function(e){return d()(e)})).length===c.length;return E||b||m}(e,v,o,n)?l={loaded:!0,index:o}:v.length!==g.length||null!==(a=l)&&void 0!==a&&a.loaded||(l={loaded:!0}),i()({},e,O(O(O({},n&&{requests:g}),!f()(l)&&l),{},{responses:b(v)}))}return e}var _={enabled:!0,configuration:{}};const R=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_,r=arguments.length>1?arguments[1]:void 0;switch(r.type){case n.Re:return i()({},e,{warning:"NO_QUERYABLE_LAYERS"});case n.ih:return i()({},e,{warning:null});case n.Xw:return i()({},e,{enabled:r.enabled});case n.ph:return i()({},e,{enabled:!e.enabled});case n.gG:return i()({},e,{index:r.index});case n.oz:return i()({},e,{highlight:r.enabled});case n.Pn:var u=r.reqId,s=r.request,c=e.requests||[];return i()({},e,{requests:[].concat(b(c),[{request:s,reqId:u}])});case n.DZ:e.index,e.loaded;var l=E(e,v);return O(O({},l),{},{queryableLayers:[],responses:[],requests:[]});case n.XL:return S(e,r,"data");case n.Ih:return S(e,r,"exceptions");case n.km:return S(e,r,"error");case n.xy:return i()({},e,{clickPoint:r.point,clickLayer:r.layer||null,itemId:r.itemId||null,overrideParams:r.overrideParams||null,filterNameList:r.filterNameList||null});case n.e8:return O(O({},e),{},{configuration:O(O({},e.configuration),{},{infoFormat:r.infoFormat})});case n.E0:return i()({},e,{showMarker:!0});case n.F9:return i()({},e,{showMarker:!1});case n.X_:return i()({},e,{showModalReverse:!0,reverseGeocodeData:r.reverseGeocodeData});case n.pb:return i()({},e,{showModalReverse:!1,reverseGeocodeData:void 0});case a.l:return i()({},e,{showMarker:!1,responses:[],requests:[],configuration:O(O({},e.configuration),{},{trigger:"click"})});case n.qb:var f,p=t(55745),d=t(65442),y={type:"Feature",properties:{},geometry:{type:"Point",coordinates:[r.request.lng,r.request.lat]}},m=r.metadata&&r.metadata.units;switch(m){case"m":default:m="meters";break;case"deg":m="degrees";break;case"mi":m="miles"}var h,T=r.metadata&&r.metadata.resolution||1,R=p(y,(r.metadata.buffer||1)*T,m),w=(r.layer.features||[]).filter((function(e){try{return"FeatureCollection"===e.type&&e.features&&e.features.length?e.features.reduce((function(e,t){var n=t.properties.useGeodesicLines&&t.properties.geometryGeodesic?O(O({},t),{},{geometry:t.properties.geometryGeodesic}):t;return e||d(R,T&&r.metadata.buffer&&m?p(n,1,"meters"):n)}),!1):d(R,T&&r.metadata.buffer&&m?p(e,1,"meters"):e)}catch(e){return!1}})),A=e.responses||[],C="hover"===(null==e||null===(f=e.configuration)||void 0===f?void 0:f.trigger)||(null==e?void 0:e.showInMapPopup),P={response:{crs:null,features:w,totalFeatures:"unknown",type:"FeatureCollection"},queryParams:r.request,layerMetadata:r.metadata,format:"JSON"};C?(A=[].concat(b(A),[P]),h={reqId:0}):(A[e.requests.length]=P,h={reqId:e.requests.length});var j=[].concat(b(e.requests),[{}]);return S(i()({},e,{requests:j,queryableLayers:r.queryableLayers,responses:b(A)}),h,"vector");case n.lF:return i()({},e,{centerToMarker:r.status});case n.ZF:return O(O({},e),{},{configuration:O(O({},e.configuration),{},{showEmptyMessageGFI:!e.configuration.showEmptyMessageGFI})});case o.ok:return O(O({},e),{},{configuration:r.config.mapInfoConfiguration||e.configuration||{}});case n.GI:return O(O({},e),{},{formatCoord:r.format});case n.B1:return O(O({},e),{},{showCoordinateEditor:!r.showCoordinateEditor});case n.gc:return O(O({},e),{},{currentEditFeatureQuery:r.query});case n.zX:return O(O({},e),{},{configuration:O(O({},e.configuration),{},{trigger:r.trigger})});case n.Zb:return O(O({},e),{},{showInMapPopup:r.value});case g.Wz:return"cesium"===r.mapType?O(O({},e),{},{configuration:O(O({},e.configuration),{},{trigger:"click"})}):e;default:return e}}}}]);