text: (self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[66992],{838167:(e,t,r)=>{"use strict";r.d(t,{k9:()=>P,v0:()=>O,ZP:()=>j});var n=r(675263),o=r.n(n),a=r(124852),c=r.n(a),i=r(868195);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},l.apply(this,arguments)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function y(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(u,e);var t,r,n,o,a=(n=u,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=b(n);if(o){var r=b(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return y(this,e)});function u(){return s(this,u),a.apply(this,arguments)}return t=u,(r=[{key:"render",value:function(){return this.context.intl?c().createElement(i.FormattedDate,l({value:this.props.value},this.props.dateParams)):c().createElement("span",null,this.props.value&&this.props.value.toString()||"")}}])&&p(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),u}(c().Component);d(m,"propTypes",{value:o().object,dateParams:o().object}),d(m,"contextTypes",{intl:o().object}),d(m,"defaultProps",{value:new Date});const v=m;var h=r(615402),g=r(805346),O=g.Z,P=h.Z,w=v;const j={Message:g.Z,HTML:P,DateFormat:w}},271231:(e,t,r)=>{"use strict";r.d(t,{Q:()=>b});var n=r(701469),o=r.n(n),a=r(124852),c=r.n(a),i=r(867076),u=r(828878),l=r(749902);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){f(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function f(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}(0,i.setObservableConfig)(u.Z);var y=(0,i.mapPropsStreamWithConfig)(u.Z)((function(e){return e.take(1).switchMap((function(t){return t.autocompleteStreamFactory(e)})).combineLatest(e,(function(e,t){return{data:o()(e&&e.fetchedData&&e.fetchedData.values)?e.fetchedData.values.map((function(e){return{label:e,value:e}})):[],valuesCount:e&&e.fetchedData&&e.fetchedData.size,currentPage:t&&t.currentPage,maxFeatures:t&&t.maxFeatures,select:t&&t.select,focus:t&&t.focus,loadNextPage:t&&t.loadNextPage,loadPrevPage:t&&t.loadPrevPage,toggle:t&&t.toggle,change:t.change,open:t.open,selected:t&&t.selected,value:t.value,busy:e.busy,dropUp:t.dropUp,attribute:t.column&&t.column.key,changeAttribute:t.changeAttribute}}))}))((function(e){var t=e.open,r=e.toggle,n=e.select,o=e.focus,a=e.change,i=e.value,u=e.valuesCount,s=e.loadNextPage,p=e.loadPrevPage,f=e.maxFeatures,y=e.currentPage,b=e.busy,d=e.data,m=e.loading,v=void 0!==m&&m,h=e.dropUp,g=void 0!==h&&h,O=e.attribute,P=e.changeAttribute,w=Math.ceil(u/f);return c().createElement(l.Z,{pagination:{firstPage:1===y,lastPage:y===w,paginated:!0,loadPrevPage:p,loadNextPage:s},busy:b,dropUp:g,data:d,attribute:O,open:t,onFocus:o,onToggle:r,onChange:a,onSelect:n,onChangeAttribute:P,selectedValue:i,loading:v})})),b=(0,i.compose)((0,i.withStateHandlers)((function(e){return{delayDebounce:0,performFetch:!1,open:!1,openOnFocus:e.openOnFocus,currentPage:1,maxFeatures:5,url:e.url,typeName:e.typeName,value:e.value,attribute:e.column&&e.column.key,autocompleteStreamFactory:e.autocompleteStreamFactory,onChange:e.onChange}}),{select:function(e){return function(){return p(p({},e),{},{selected:!0})}},change:function(e){return function(t){if(e.selected&&e.changingPage)return p(p({},e),{},{delayDebounce:e.selected?0:500,selected:!1,changingPage:!1,performFetch:!(e.selected&&!e.changingPage),value:e.value,currentPage:e.changingPage?e.currentPage:1});var r="string"==typeof t?t:t.value;return e.onChange&&e.onChange(r),p(p({},e),{},{delayDebounce:e.selected?0:500,selected:!1,changingPage:!1,performFetch:!(e.selected&&!e.changingPage),value:r,currentPage:e.changingPage?e.currentPage:1})}},focus:function(e){return function(t){return t&&0===t.length&&""===e.value?p(p({},e),{},{delayDebounce:0,currentPage:1,performFetch:!0,isToggled:!1},e.openOnFocus?{open:!0}:{}):e}},toggle:function(e){return function(){return p(p({},e),{},{open:!!e.changingPage||!e.open})}},loadNextPage:function(e){return function(){return p(p({},e),{},{currentPage:e.currentPage+1,performFetch:!0,changingPage:!0,delayDebounce:0,value:e.value})}},loadPrevPage:function(e){return function(){return p(p({},e),{},{currentPage:e.currentPage-1,performFetch:!0,changingPage:!0,delayDebounce:0,value:e.value})}},changeAttribute:function(e){return function(t){return p(p({},e),{},{attribute:t})}}}))(y)},352595:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n=(0,r(461365).Z)(r(757588).Overlay)},1036:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(618446),o=r.n(n);const a=(0,r(867076).shouldUpdate)((function(e,t){return!o()(e.start,t.start)||e.disabled!==t.disabled}))(r(185552))},876424:(e,t,r)=>{"use strict";r.d(t,{Z:()=>y});var n=r(124852),o=r.n(n),a=r(513218),c=r.n(a),i=r(532425),u=["body","caption","infoExtra","className","description","fullText","onClick","onMouseEnter","onMouseLeave","preview","selected","size","style","stylePreview","styleTools","title","loading","dragSymbol","tools"];function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){p(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}const y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.body,r=e.caption,n=e.infoExtra,a=e.className,l=void 0===a?"":a,p=e.description,y=e.fullText,b=e.onClick,d=void 0===b?function(){}:b,m=e.onMouseEnter,v=void 0===m?function(){}:m,h=e.onMouseLeave,g=void 0===h?function(){}:h,O=e.preview,P=e.selected,w=e.size,j=e.style,E=void 0===j?{}:j,C=e.stylePreview,S=void 0===C?{}:C,k=e.styleTools,x=void 0===k?{}:k,N=e.title,_=e.loading,D=e.dragSymbol,R=void 0===D?"+":D,T=e.tools,F=f(e,u);return o().createElement("div",{className:"mapstore-side-card".concat(P?" selected":"").concat(w?" ms-"+w:"").concat(l?" ".concat(l):"").concat(y?" full-text":""),onClick:function(e){return d(s({title:N,preview:O,description:p,caption:r,tools:T},F),e)},onMouseEnter:v,onMouseLeave:g,style:E},o().createElement("div",{className:"ms-head"},F.isDraggable&&F.connectDragSource&&F.connectDragSource(o().createElement("div",{className:"mapstore-side-card-tool text-center"},o().createElement("div",{style:{width:10,overflow:"hidden"}},R))),O&&o().createElement("div",{className:"mapstore-side-preview",style:S},O),o().createElement("div",{className:"mapstore-side-card-container"},o().createElement("div",{className:"mapstore-side-card-inner"},o().createElement("div",{className:"mapstore-side-card-left-container"},o().createElement("div",{className:"mapstore-side-card-info"},N&&o().createElement("div",{className:"mapstore-side-card-title"},o().createElement("span",null,N)),p&&o().createElement("div",{className:"mapstore-side-card-desc"},c()(p)?p:o().createElement("span",null,p)),r&&o().createElement("div",{className:"mapstore-side-card-caption"},o().createElement("span",null,r))),n),o().createElement("div",{className:"mapstore-side-card-right-container"},o().createElement("div",{className:"mapstore-side-card-tool text-center",style:x},T),"sm"!==w&&o().createElement("div",{className:"mapstore-side-card-loading"},o().createElement(i.Z,{className:"mapstore-side-card-loader",size:12,hidden:!_})))))),t&&o().createElement("div",{className:"ms-body"},t))}},638064:(e,t,r)=>{"use strict";r.d(t,{Z:()=>h});var n=r(675263),o=r.n(n),a=r(124852),c=r.n(a),i=r(757588),u=r(876424);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}function b(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(l,e);var t,r,n,o,a=(n=l,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=d(n);if(o){var r=d(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return b(this,e)});function l(){return p(this,l),a.apply(this,arguments)}return t=l,(r=[{key:"render",value:function(){var e=this.props,t=e.cardComponent,r=e.items,n=e.colProps,o=e.onItemClick,a=e.size,l=t||u.Z;return c().createElement("div",{className:"msSideGrid"+(this.props.className?" "+this.props.className:"")},c().createElement(i.Row,{className:"items-list"},r.map((function(e,t){return c().createElement(i.Col,s({key:e.id||t},n),c().createElement(l,s({onClick:function(){return o(e)},size:a},e)))}))))}}])&&f(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),l}(c().Component);m(v,"propTypes",{size:o().string,onItemClick:o().func,colProps:o().object,items:o().array,cardComponent:o().oneOfType([o().string,o().func]),className:o().string}),m(v,"defaultProps",{size:"",onItemClick:function(){},colProps:{xs:12},className:"",items:[]});const h=v},906724:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(124852),o=r.n(n),a=r(867076),c=function(e,t,r){var n=r.maskContainerStyle,c=r.maskStyle,i=r.className,u=r.white;return function(r){return(0,a.nest)((function(r){return o().createElement("div",{className:"ms2-mask-container ".concat(i||""," ").concat(e(r)?"":"ms2-mask-empty"),style:n},r.children,e(r)?o().createElement("div",{className:"ms2-mask"+(u?" white-mask":""),style:c},t(r)):null)}),r)}};const i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.alwaysWrap,o=void 0===n||n,i=r.white,u=void 0!==i&&i,l=r.maskContainerStyle,s=void 0===l?{}:l,p=r.maskStyle,f=void 0===p?{}:p,y=r.className;return o?c(e,t,{maskContainerStyle:s,maskStyle:f,className:y,white:u}):(0,a.branch)(e,c((function(){return!0}),t,{maskContainerStyle:s,maskStyle:f,white:u}))}},112346:(e,t,r)=>{"use strict";r.d(t,{Z:()=>T});var n=r(124852),o=r.n(n),a=r(675263),c=r.n(a),i=r(757588),u=r(145869),l=r(80717),s=r(805346);function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}function d(e,t){if(t&&("object"===p(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function v(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b(e,t)}(i,e);var t,r,n,a,c=(n=i,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=m(n);if(a){var r=m(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return d(this,e)});function i(){return f(this,i),c.apply(this,arguments)}return t=i,(r=[{key:"render",value:function(){var e=this;return o().createElement(l.Z,{btnDefaultProps:{className:"square-button-md",bsStyle:"primary"},btnGroupProps:{style:{margin:10}},buttons:[{glyph:this.props.checked?"chevron-down":"chevron-left",visible:!0,tooltip:this.props.checked?o().createElement(s.Z,{msgId:"collapse"}):o().createElement(s.Z,{msgId:"expand"}),onClick:function(){return e.props.onClick(!e.props.checked)}}]})}}])&&y(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(o().Component);v(h,"propTypes",{checked:c().bool,onClick:c().func}),v(h,"defaultProps",{checked:!1,onClick:function(){}});const g=h;var O=r(282467),P=r(82110);function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}function j(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function C(e,t){return C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},C(e,t)}function S(e,t){if(t&&("object"===w(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return k(e)}function k(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x(e){return x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},x(e)}function N(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var _=function(){return o().createElement(O.Z,{className:"square-button-sm no-border switch-error"},o().createElement(i.Glyphicon,{glyph:"exclamation-mark",className:"text-danger"}))},D=function(){return o().createElement("div",{className:"switch-loading"},o().createElement(P.Z,{size:"small"}))},R=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&C(e,t)}(s,e);var t,r,n,a,c=(n=s,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=x(n);if(a){var r=x(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return S(this,e)});function s(){var e;j(this,s);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return N(k(e=c.call.apply(c,[this].concat(r))),"state",{}),e}return t=s,(r=[{key:"renderHeader",value:function(){var e=this,t=this.props.useToolbar?g:u.Z;return o().createElement("div",null,o().createElement("div",{className:"pull-left"},this.props.title||this.props.header),o().createElement("div",{className:"pull-right"},this.props.locked?null:o().createElement(t,{checked:this.props.expanded,onClick:function(t){e.props.onSwitch(t)}}),this.props.error?o().createElement(_,null):null,this.props.loading?o().createElement(D,null):null,this.props.buttons.length>0&&this.props.expanded&&o().createElement(l.Z,{btnDefaultProps:{className:"square-button-sm no-border"},buttons:this.props.buttons})))}},{key:"render",value:function(){return o().createElement(i.Panel,{className:"mapstore-switch-panel",collapsible:!0,expanded:this.props.expanded,defaultExpanded:this.props.defaultExpanded,header:this.renderHeader()},this.props.children)}}])&&E(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(o().Component);N(R,"propTypes",{header:c().node,title:c().oneOfType([c().string,c().node]),defaultExpanded:c().string,expanded:c().bool,onSwitch:c().func,locked:c().bool,buttons:c().array,loading:c().bool,error:c().any,errorMsgId:c().string,transitionProps:c().object,useToolbar:c().bool}),N(R,"defaultProps",{title:"",expanded:!1,onSwitch:function(){},locked:!1,buttons:[],useToolbar:!1});const T=R},10208:(e,t,r)=>{"use strict";r.d(t,{Z:()=>M});var n=r(124852),o=r.n(n),a=r(675263),c=r.n(a),i=r(757588),u=r(212961),l=r(281763),s=r.n(l),p=r(414293),f=r.n(p),y=r(509886),b=r.n(y),d=r(200020),m=r(727418),v=r.n(m),h=r(805346),g=r(576364),O=r(271231),P=r(737275),w=r(443143),j=r(455877),E=r.n(j);function C(e){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C(e)}function S(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function k(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?S(Object(r),!0).forEach((function(t){Z(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):S(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function x(e){return function(e){if(Array.isArray(e))return N(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return N(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?N(e,t):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 N(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function D(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function R(e,t){return R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},R(e,t)}function T(e,t){if(t&&("object"===C(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return F(e)}function F(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function q(e){return q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},q(e)}function Z(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}b()();var U=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&R(e,t)}(l,e);var t,r,n,a,c=(n=l,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=q(n);if(a){var r=q(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return T(this,e)});function l(){var e;_(this,l);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Z(F(e=c.call.apply(c,[this].concat(r))),"renderFieldByClassification",(function(t,r,n,a){var c;if(f()(t.unique))c=f()(t.min)?o().createElement(o().Fragment,null,o().createElement(i.FormControl,{value:t.label,type:"text",onChange:function(t){return e.updateRaster(r,t.target.value)}}),o().createElement(d.NumberPicker,{format:"- ###.###",value:t.quantity,onChange:function(t){return e.updateRaster(r,t,"number")}})):o().createElement(o().Fragment,null,o().createElement(d.NumberPicker,{format:"- ###.###",value:t.min,onChange:function(t){return e.updateMin(r,t)}}),o().createElement(d.NumberPicker,{format:"- ###.###",value:t.max,precision:3,onChange:function(t){return e.updateMax(r,t)}}));else if(s()(t.unique))c=o().createElement(d.NumberPicker,{format:"- ###.###",value:t.unique,onChange:function(t){return e.updateUnique(r,t,"number")}});else if(n&&a){var u=a.dropUpAutoComplete,l=a.classificationAttribute,p=a.layer;c=o().createElement(O.Q,{dropUp:u,openOnFocus:!1,autocompleteEnabled:!0,column:{key:l},onChange:function(t){return e.updateUnique(r,t)},dataType:"string",typeName:p.name,url:P.ZP.getParsedUrl(p.url,{outputFormat:"json"}),value:t.unique,filter:"contains",autocompleteStreamFactory:g.Vd})}else c=o().createElement(i.FormControl,{value:t.unique,type:"text",onChange:function(t){return e.updateUnique(r,t.target.value)}});return c})),Z(F(e),"renderClasses",(function(){return e.props.classification.map((function(t,r,n){var a;return o().createElement(i.FormGroup,{key:null!==(a=t.id)&&void 0!==a?a:r},o().createElement(u.Z,{key:t.color,color:t.color,disableAlpha:!0,format:"hex",onChangeColor:function(t){return e.updateColor(r,t)}}),e.renderFieldByClassification(t,r,e.props.uniqueValuesClasses,e.props.autoCompleteOptions),e.props.customLabels&&o().createElement(i.FormControl,{value:t.title,type:"text",onChange:function(t){return e.updateCustomLabel(r,t.target.value)}}),o().createElement(i.DropdownButton,{style:{flex:0},className:"square-button-md no-border add-rule",noCaret:!0,pullRight:!0,title:o().createElement(i.Glyphicon,{glyph:"option-vertical"}),dropup:e.props.dropUpMenu},[{labelId:"styleeditor.addRuleBefore",glyph:"add-row-before",value:"before"},{labelId:"styleeditor.addRuleAfter",glyph:"add-row-after",value:"after"}].concat(x(e.props.allowEmpty||r?[{labelId:"styleeditor.remove",glyph:"trash",value:"remove"}]:[])).map((function(t){return o().createElement(i.MenuItem,{key:t.value,onClick:function(){return e.updateClassification(r,t.value,n,e.props.customLabels)}},o().createElement(o().Fragment,null,o().createElement(i.Glyphicon,{glyph:t.glyph}),o().createElement(h.Z,{msgId:t.labelId})))}))))}))})),Z(F(e),"updateColor",(function(t,r){if(r){var n=e.props.classification.map((function(e,n){return n===t?v()({},e,{color:r}):e}));e.props.onUpdateClasses(n,"color")}})),Z(F(e),"updateUnique",(function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"text",o=e.props.classification.map((function(e,o){return o===t?v()({},e,{unique:f()(r)?"number"===n?0:"":r}):e}));e.props.onUpdateClasses(o,"interval")})),Z(F(e),"updateRaster",(function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"text",o="number"===n?"quantity":"label",a=e.props.classification.map((function(e,n){return n===t?v()({},e,Z({},o,r)):e}));e.props.onUpdateClasses(a,"interval")})),Z(F(e),"updateMin",(function(t,r){if(!isNaN(r)){var n=e.props.classification.map((function(e,n){return n===t?v()({},e,{min:r}):e}));e.props.onUpdateClasses(n,"interval")}})),Z(F(e),"updateMax",(function(t,r){if(!isNaN(r)){var n=e.props.classification.map((function(e,n){return n===t?v()({},e,{max:r}):n===t+1?v()({},e,{min:r}):e}));e.props.onUpdateClasses(n,"interval")}})),Z(F(e),"updateClassification",(function(t,r,n,o){var a,c,i=0,u=x(e.props.classification),l=u[t],p=n.map((function(e){return e.color}));if("before"===r){var y=0===t;a=y?0:t,c={min:y?f()(l.min)?l.min:0:l.min,max:l.min}}else"after"===r?(a=t===u.length-1?u.length:t+1,c={min:l.max,max:l.max}):(a=t,i=1);var b=[a,i];if("remove"!==r){var d,m=e.props.usePresetColors?(0,w.TM)(p):"#ffffff";if(f()(l.unique))d=f()(l.quantity)?k(k(k({},l),{},{id:E().v1()},c),{},{color:m,title:o?"":" >= ".concat(c.min," AND <").concat(c.max)}):k(k({},l),{},{id:E().v1(),color:m,label:"0",quantity:0});else{var v=s()(l.unique)?0:"";d=k(k({},l),{},{id:E().v1(),color:m,title:v,unique:v})}b=b.concat(d)}u.splice.apply(u,x(b)),e.props.onUpdateClasses(u,"interval")})),Z(F(e),"updateCustomLabel",(function(t,r){if(void 0!==r){var n=e.props.classification.map((function(e,n){return n===t?v()({},e,{title:r}):e}));e.props.onUpdateClasses(n,"title")}})),e}return t=l,(r=[{key:"render",value:function(){return o().createElement("div",{className:"thema-classes-editor "+this.props.className},this.renderClasses())}}])&&D(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),l}(o().Component);Z(U,"propTypes",{classification:c().array,onUpdateClasses:c().func,className:c().string,allowEmpty:c().bool,customLabels:c().bool,uniqueValuesClasses:c().bool,autoCompleteOptions:c().object,dropUpMenu:c().bool,usePresetColors:c().bool}),Z(U,"defaultProps",{classification:[],onUpdateClasses:function(){},className:"",allowEmpty:!0,customLabels:!1,uniqueValuesClasses:!1,dropUpMenu:!1});const M=U},398360:(e,t,r)=>{"use strict";r.d(t,{Z:()=>O});var n=r(124852),o=r.n(n),a=r(675263),c=r.n(a),i=r(443143),u=r(743129),l=r(313311),s=r.n(l),p=r(701469),f=r.n(p),y=r(805346),b=["options"];function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){v(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function v(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var h=function(e){var t=e.ramp,r=e.name,n=e.label,a=1/t.length,c="linear-gradient(to right";return c="global.colors.custom"===r&&f()(t[0])?(t[0]||[]).reduce((function(e,r,n){var o=100/t[0].length,a="".concat(Math.ceil(o*n),"%"),c="".concat(Math.ceil(o*(n+1)),"%");return"".concat(e,", ").concat(r," ").concat(a,", ").concat(r," ").concat(c)}),c):(t||[]).reduce((function(e,r,n){return"".concat(e,", ").concat(r," ").concat(n/t.length*100,"%, ").concat(r," ").concat(100*(n/t.length+a),"%")}),c),o().createElement("div",{style:{backgroundImage:"".concat(c,")"),width:"100%",display:"inline-block",verticalAlign:"middle",padding:"0 2px"}},o().createElement("span",{style:{color:"#000000",backgroundColor:"rgba(255, 255, 255, 0.75)",padding:"0 4px"}},o().createElement(y.Z,{msgId:n||r,msgParams:{number:t.length}})))};function g(e){var t=e.value,r=e.samples,n=e.onChange,a=e.items,c=e.rampFunction,l=e.disabled,p=a.map((function(e){var t=e.options,n=void 0===t?{}:t,o=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,b);return m(m({},o),{},{options:n,ramp:o.ramp?[o.ramp]:c?c(o,n):((0,i.qH)(n.base,n.range,r+1,n.options)||["#AAA"]).splice(1)})})),f=s()(p,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e===t||e.name===(t&&t.name)}));return o().createElement(u.ZP,{valueKey:"name",className:"color-ramp-selector",clearable:!1,value:f,options:p,disabled:l,valueRenderer:h,optionRenderer:h,onChange:function(e){e&&n(e)}})}g.propTypes={value:c().oneOfType([c().string,c().object]),samples:c().number,onChange:c().func,items:c().array,rampFunction:c().func,disabled:c().bool},g.defaultProps={samples:5,onChange:function(){},items:[{name:"global.colors.blue",schema:"sequencial",options:{base:190,range:20}},{name:"global.colors.red",schema:"sequencial",options:{base:10,range:4}},{name:"global.colors.green",schema:"sequencial",options:{base:120,range:4}},{name:"global.colors.brown",schema:"sequencial",options:{base:30,range:4,s:1,v:.5}},{name:"global.colors.purple",schema:"sequencial",options:{base:300,range:4}},{name:"global.colors.random",schema:"qualitative",options:{base:190,range:340,options:{base:10,range:360,s:.67,v:.67}}}],disabled:!1};const O=g},202576:(e,t,r)=>{"use strict";r.d(t,{Z:()=>O});var n=r(124852),o=r.n(n),a=r(180307),c=r.n(a),i=r(675263),u=r.n(i),l=r(757588),s=r(352595),p=r(950966);function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function m(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function h(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(u,e);var t,r,n,a,i=(n=u,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=v(n);if(a){var r=v(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return m(this,e)});function u(){return y(this,u),i.apply(this,arguments)}return t=u,(r=[{key:"renderPopover",value:function(){return o().createElement(l.Popover,{id:this.props.id,placement:this.props.placement,positionLeft:this.props.left,positionTop:this.props.top,title:this.props.title},this.props.text)}},{key:"renderContent",value:function(){var e=this;return o().createElement(l.Glyphicon,{ref:function(t){e.target=t},className:"text-".concat(this.props.bsStyle),glyph:this.props.glyph})}},{key:"render",value:function(){var e=this,t=!0===this.props.trigger?["hover","focus"]:this.props.trigger;return o().createElement("span",{className:"mapstore-info-popover"},this.props.trigger?o().createElement(p.Z,{trigger:t,placement:this.props.placement,overlay:this.renderPopover()},this.renderContent()):[this.renderContent(),o().createElement(s.Z,{placement:this.props.placement,show:!0,target:function(){return c().findDOMNode(e.target)}},this.renderPopover())])}}])&&b(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),u}(o().Component);h(g,"propTypes",{id:u().string,title:u().string,text:u().string,glyph:u().string,bsStyle:u().string,placement:u().string,left:u().number,top:u().number,trigger:u().oneOfType([u().array,u().bool])}),h(g,"defaultProps",{id:"",title:"",text:"",placement:"right",left:200,top:50,glyph:"question-sign",bsStyle:"info",trigger:["hover","focus"]});const O=g},680833:(e,t,r)=>{"use strict";r.d(t,{kB:()=>m,HI:()=>v});var n=r(472500),o=r.n(n),a=(r(91175),r(490173)),c=r(49977),i=r(501157),u=r(375875),l=r.n(u),s=(r(986267),r(624262)),p=r(510284),f=r(233044);function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}a.default;var m=function(e){return c.Observable.defer((function(){return i.ZP.getCapabilities((0,s.Fh)(e))})).let(p.oB).map((function(t){return i.ZP.parseLayerCapabilities(t,e)}))},v=function(e){return function(e){return c.Observable.defer((function(){return l().get(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,r=e.search,n=void 0===r?{}:r,a=e.url,c=o().parse(n.url||a,!0);return o().format(b(b({},c),{},{search:void 0,query:b(b({},c.query),{},{service:"WMS",version:"1.1.1",layers:t,outputFormat:"application/json",request:"DescribeLayer"})}))}(e))})).let(p.oB)}(e).map((function(e){var t=e.data,r=void 0===t?{}:t;return r&&r.layerDescriptions[0]})).map((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.owsURL;return b(b({},e),{},{params:{},search:r?{type:"wfs",url:(0,f.cleanAuthParamsFromURL)(r)}:void 0})}))}}}]);