text: (self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[31109],{691380:(e,t,r)=>{"use strict";r.d(t,{ZY:()=>u,Gv:()=>s});var n=r(124852),o=r.n(n),i=r(775382),a=r(867076),c=r(438482);function l(){return l=Object.assign||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)}var u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.overrideWidthProvider;return(0,a.compose)((0,a.defaultProps)({useDefaultWidthProvider:!t}),(function(e){return function(t){return o().createElement(i.Z,{handleWidth:!0},(function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=r.width;return o().createElement(e,l({width:n},t))}))}}))},s=function(e){return(0,a.compose)((0,a.withStateHandlers)((function(){return{}}),{onResize:function(){return function(e){return{height:e.height}}}}),(0,c.Z)(e))}},572688:(e,t,r)=>{"use strict";r.d(t,{Z:()=>w});var n=r(124852),o=r.n(n),i=r(675263),a=r.n(i),c=r(282467),l=r(843614),u=r(472986),s=r.n(u);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 d(){return d=Object.assign||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},d.apply(this,arguments)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(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||function(e,t){return e.__proto__=t,e},y(e,t)}function v(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 m(e)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(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 O=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)}(u,e);var t,r,n,i,a=(n=u,i=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(i){var r=b(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return v(this,e)});function u(){var e;f(this,u);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return h(m(e=a.call.apply(a,[this].concat(r))),"onConfirm",(function(){e.props.onConfirm()})),e}return t=u,(r=[{key:"render",value:function(){var e=this,t=o().createElement("span",{role:"footer"},o().createElement("div",{style:{float:"left"}}),o().createElement(c.Z,{ref:"confirmButton",disabled:this.props.running,className:this.props.className,key:"confirmButton",bsStyle:"primary",bsSize:this.props.buttonSize,onClick:function(){e.onConfirm()}},this.props.running?o().createElement(s(),{spinnerName:"circle",overrideSpinnerClassName:"spinner",noFadeIn:!0}):null,this.props.confirmText),this.props.includeCloseButton?o().createElement(c.Z,{key:"cancelButton",ref:"cancelButton",bsSize:this.props.buttonSize,onClick:this.props.onClose},this.props.cancelText):o().createElement("span",null)),r=this.props.body;return o().createElement(l.Z,d({},this.props.options,{show:this.props.show,onHide:this.props.onClose}),o().createElement(l.Z.Header,{key:"dialogHeader",closeButton:!0},o().createElement(l.Z.Title,null,this.props.titleText)),o().createElement(l.Z.Body,null,r),o().createElement(l.Z.Footer,null,t))}}])&&g(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),u}(o().Component);h(O,"propTypes",{className:a().string,show:a().bool,options:a().object,onConfirm:a().func,onClose:a().func,closeGlyph:a().string,style:a().object,buttonSize:a().string,includeCloseButton:a().bool,body:a().oneOfType([a().string,a().element]),titleText:a().oneOfType([a().string,a().element]),confirmText:a().oneOfType([a().string,a().element]),cancelText:a().oneOfType([a().string,a().element]),running:a().bool}),h(O,"defaultProps",{onConfirm:function(){},onClose:function(){},options:{animation:!1},className:"",closeGlyph:"",style:{},includeCloseButton:!0,body:"",titleText:"Confirm Delete",confirmText:"Delete",cancelText:"Cancel"});const w=O},532425:(e,t,r)=>{"use strict";r.d(t,{Z:()=>d});var n=r(675263),o=r.n(n),i=r(124852),a=r.n(i);function c(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 l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){u(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var s=function(e){return e>100?"full":e>40?"medium":"small"},p=function(e){var t=e.size,r=e.style,n=void 0===r?{}:r,o=e.className,i=e.hidden;return a().createElement("div",{className:o,style:l({width:t,height:t,overflow:"hidden"},n)},!i&&a().createElement("div",{className:"mapstore-".concat(s(t),"-size-loader")}))};p.propTypes={size:o().number,className:o().string,style:o().object};const d=p},975480:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(124852),o=r.n(n);const i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.style,r=void 0===t?{display:"inline-block"}:t;return o().createElement("div",{style:r,className:"mapstore-inline-loader"})}},1036:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(618446),o=r.n(n);const i=(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:()=>f});var n=r(124852),o=r.n(n),i=r(513218),a=r.n(i),c=r(532425),l=["body","caption","infoExtra","className","description","fullText","onClick","onMouseEnter","onMouseLeave","preview","selected","size","style","stylePreview","styleTools","title","loading","dragSymbol","tools"];function u(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?u(Object(r),!0).forEach((function(t){p(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(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 d(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}const f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.body,r=e.caption,n=e.infoExtra,i=e.className,u=void 0===i?"":i,p=e.description,f=e.fullText,g=e.onClick,y=void 0===g?function(){}:g,v=e.onMouseEnter,m=void 0===v?function(){}:v,b=e.onMouseLeave,h=void 0===b?function(){}:b,O=e.preview,w=e.selected,j=e.size,P=e.style,E=void 0===P?{}:P,S=e.stylePreview,D=void 0===S?{}:S,C=e.styleTools,k=void 0===C?{}:C,x=e.title,T=e.loading,Z=e.dragSymbol,R=void 0===Z?"+":Z,N=e.tools,I=d(e,l);return o().createElement("div",{className:"mapstore-side-card".concat(w?" selected":"").concat(j?" ms-"+j:"").concat(u?" ".concat(u):"").concat(f?" full-text":""),onClick:function(e){return y(s({title:x,preview:O,description:p,caption:r,tools:N},I),e)},onMouseEnter:m,onMouseLeave:h,style:E},o().createElement("div",{className:"ms-head"},I.isDraggable&&I.connectDragSource&&I.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:D},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"},x&&o().createElement("div",{className:"mapstore-side-card-title"},o().createElement("span",null,x)),p&&o().createElement("div",{className:"mapstore-side-card-desc"},a()(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:k},N),"sm"!==j&&o().createElement("div",{className:"mapstore-side-card-loading"},o().createElement(c.Z,{className:"mapstore-side-card-loader",size:12,hidden:!T})))))),t&&o().createElement("div",{className:"ms-body"},t))}},638064:(e,t,r)=>{"use strict";r.d(t,{Z:()=>b});var n=r(675263),o=r.n(n),i=r(124852),a=r.n(i),c=r(757588),l=r(876424);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 s(){return s=Object.assign||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 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 f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function g(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 y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(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 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,i=(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=y(n);if(o){var r=y(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return g(this,e)});function u(){return p(this,u),i.apply(this,arguments)}return t=u,(r=[{key:"render",value:function(){var e=this.props,t=e.cardComponent,r=e.items,n=e.colProps,o=e.onItemClick,i=e.size,u=t||l.Z;return a().createElement("div",{className:"msSideGrid"+(this.props.className?" "+this.props.className:"")},a().createElement(c.Row,{className:"items-list"},r.map((function(e,t){return a().createElement(c.Col,s({key:e.id||t},n),a().createElement(u,s({onClick:function(){return o(e)},size:i},e)))}))))}}])&&d(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),u}(a().Component);v(m,"propTypes",{size:o().string,onItemClick:o().func,colProps:o().object,items:o().array,cardComponent:o().oneOfType([o().string,o().func]),className:o().string}),v(m,"defaultProps",{size:"",onItemClick:function(){},colProps:{xs:12},className:"",items:[]});const b=m},212610:(e,t,r)=>{"use strict";r.d(t,{Z:()=>u});var n=r(124852),o=r.n(n),i=r(867076),a=r(957557),c=r.n(a),l=r(815135);const u=(0,i.branch)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disabled,r=e.noTooltipWhenDisabled,n=void 0!==r&&r;return!(n&&t)}),l.Z,(function(e){return function(t){return o().createElement(e,c()(t,["tooltipId","tooltip","noTooltipWhenDisabled"]),t.children)}}))},617252:(e,t,r)=>{"use strict";r.d(t,{Z:()=>h});var n=r(124852),o=r.n(n),i=r(867076),a=r(675263),c=r.n(a),l=r(957557),u=r.n(l),s=r(757588),p=r(950966);function d(e){return d="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},d(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(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||function(e,t){return e.__proto__=t,e},y(e,t)}function v(e,t){if(t&&("object"===d(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:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const h=(0,i.branch)((function(e){return e.popover}),(function(e){var t;return t=function(t){!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)}(d,t);var r,n,a,c,l=(a=d,c=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(a);if(c){var r=m(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return v(this,e)});function d(){return f(this,d),l.apply(this,arguments)}return r=d,(n=[{key:"renderPopover",value:function(){return o().createElement(s.Popover,u()(this.props.popover,["trigger","placement","text"]),this.props.popover.text)}},{key:"renderContent",value:function(){var t=(0,i.toClass)(e);return o().createElement(t,u()(this.props,["popover"]))}},{key:"render",value:function(){var e=!0===this.props.popover.trigger?["hover","focus"]:this.props.popover.trigger;return o().createElement("span",null,o().createElement(p.Z,{trigger:e,placement:this.props.popover.placement,overlay:this.renderPopover()},this.renderContent()))}}])&&g(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),d}(o().Component),b(t,"propTypes",{popover:c().object}),b(t,"defaultProps",{popover:{trigger:!0}}),t}))},80717:(e,t,r)=>{"use strict";r.d(t,{Z:()=>d});var n=r(124852),o=r.n(n),i=r(819081),a=r.n(i),c=r(757588),l=r(90085),u=["visible","Element","renderButton"];function s(){return s=Object.assign||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(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}const d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.buttons,r=void 0===t?[]:t,n=e.btnGroupProps,i=void 0===n?{}:n,d=e.btnDefaultProps,f=void 0===d?{}:d,g=e.transitionProps,y=void 0===g?{transitionName:"toolbar-btn-transition",transitionEnterTimeout:300,transitionLeaveTimeout:300}:g,v=function(){return r.map((function(e,t){var r=e.visible,n=void 0===r||r,i=e.Element,a=e.renderButton,c=p(e,u);return n?a||i&&o().createElement(i,s({key:c.key||t},c))||o().createElement(l.Z,s({key:c.key||t},f,c)):null}))};return o().createElement(c.ButtonGroup,i,y?o().createElement(a(),y,v()):v())}},90085:(e,t,r)=>{"use strict";r.d(t,{Z:()=>m});var n=r(124852),o=r.n(n),i=r(867076),a=r(805346),c=r(957557),l=r.n(c),u=r(757588),s=r(532425),p=r(212610),d=r(617252),f=r(282467),g=["glyph","loading","text","textId","glyphClassName","loaderProps","children"];function y(){return y=Object.assign||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},y.apply(this,arguments)}function v(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}const m=(0,i.compose)(p.Z,d.Z)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.glyph,r=e.loading,n=e.text,i=void 0===n?"":n,c=e.textId,p=e.glyphClassName,d=void 0===p?"":p,m=e.loaderProps,b=void 0===m?{}:m,h=e.children,O=v(e,g);return o().createElement(f.Z,l()(O,["pullRight","confirmNo","confirmYes"]),t&&!r?o().createElement(u.Glyphicon,{glyph:t,className:d}):null,c?o().createElement(a.Z,{msgId:c}):i,r?o().createElement(s.Z,y({className:"ms-loader".concat(O.bsStyle&&" ms-loader-"+O.bsStyle||"").concat(O.bsSize&&" ms-loader-"+O.bsSize||"")},b)):null,h)}))},425382:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});var n=r(49977),o=r.n(n),i=r(886850),a=r(624262);const c=function(e){return e.distinctUntilChanged((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.layer,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.layer;return(0,a.Tt)(t)===(0,a.Tt)(n)&&t.loadingError===n.loadingError})).switchMap((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.layer;return(0,i.v$)({layer:t}).map((function(e){return{describeFeatureType:e.data,loading:!1,error:void 0}})).catch((function(e){return o().Observable.of({loading:!1,error:e})}))}))}},264945:(e,t,r)=>{"use strict";r.d(t,{Z:()=>x});var n=r(124852),o=r.n(n),i=r(867076),a=r(313311),c=r.n(a),l=r(66604),u=r.n(l),s=r(669968),p=r(227361),d=r.n(p),f=r(91175),g=r.n(f);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 v(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){m(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 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 b=function(e){return d()(g()(e,(function(e){return e.color})),"color")};const h=(0,i.withProps)((function(e){var t=e.groups,r=e.showGroupColor,n=e.headerStyle,o=void 0===n?{borderTop:"3px solid rgba(0,0,0,0)",transition:"border-color .5s ease-out"}:n;return{headerStyle:r&&t&&b(t)?v(v({},o),{},{borderTop:"3px solid ".concat(b(t))}):o}}));r(889611);var O=["id","style","className","toolsOptions","rowHeight","breakpoints","cols","widgets","layouts","dependencies","verticalCompact","compactMode","useDefaultWidthProvider","measureBeforeMount","width","showGroupColor","groups","canEdit","getWidgetClass","onWidgetClick","updateWidgetProperty","deleteWidget","toggleCollapse","toggleMaximize","editWidget","onLayoutChange","language","env"];function w(){return w=Object.assign||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},w.apply(this,arguments)}function j(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?j(Object(r),!0).forEach((function(t){E(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function E(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function S(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var D=(0,i.branch)((function(e){var t=e.useDefaultWidthProvider;return void 0===t||t}),s.WidthProvider)(s.Responsive),C=h(r(443716).Z),k=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return e.filter((function(e){return c()(e.widgets,(function(e){return e===t.id}))}))};const x=(0,i.pure)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id,r=e.style,n=e.className,i=void 0===n?"":n,a=e.toolsOptions,l=void 0===a?{}:a,s=e.rowHeight,p=void 0===s?208:s,d=e.breakpoints,f=void 0===d?{lg:1200,md:996,sm:768,xs:480,xxs:0}:d,g=e.cols,y=void 0===g?{lg:6,md:6,sm:4,xs:2,xxs:1}:g,v=e.widgets,m=void 0===v?[]:v,b=e.layouts,h=e.dependencies,j=e.verticalCompact,E=void 0!==j&&j,x=e.compactMode,T=e.useDefaultWidthProvider,Z=void 0===T||T,R=e.measureBeforeMount,N=e.width,I=e.showGroupColor,F=e.groups,M=void 0===F?[]:F,z=e.canEdit,L=void 0===z||z,G=e.getWidgetClass,A=void 0===G?function(){}:G,_=e.onWidgetClick,W=void 0===_?function(){}:_,B=e.updateWidgetProperty,V=void 0===B?function(){}:B,q=e.deleteWidget,H=void 0===q?function(){}:q,U=e.toggleCollapse,$=void 0===U?function(){}:U,K=e.toggleMaximize,Q=void 0===K?function(){}:K,J=e.editWidget,Y=void 0===J?function(){}:J,X=e.onLayoutChange,ee=void 0===X?function(){}:X,te=e.language,re=e.env,ne=S(e,O),oe=m.filter((function(e){var t=e.mapSync,r=e.dependenciesMap;return t&&r})).map((function(e){return e.dependenciesMap})),ie=function(e){return"table"===e.widgetType&&oe.filter((function(t){return Object.keys(t).filter((function(r){return t[r]&&-1!==t[r].indexOf(e.id)})).length>0})).length>0};return o().createElement(D,{key:t||"widgets-view",useDefaultWidthProvider:Z,measureBeforeMount:R,width:Z?void 0:N,isResizable:L,isDraggable:L,draggableHandle:".draggableHandle",onLayoutChange:ee,preventCollision:!0,style:r,className:"widget-container ".concat(i," ").concat(L?"":"no-drag"),rowHeight:p,autoSize:!0,verticalCompact:E,compactMode:x,breakpoints:f,cols:y,layouts:b?JSON.parse(JSON.stringify(u()(b,(function(e){return e.map((function(e){var t=c()(m,{id:e.i});return t?P(P({},e),{},{isResizable:t.dataGrid&&t.dataGrid.isResizable,isDraggable:t.dataGrid&&t.dataGrid.isDraggable,static:t.dataGrid&&t.dataGrid.static}):e}))})))):void 0},m.map((function(e){return o().createElement("div",{key:e.id,"data-grid":e.dataGrid,onClick:function(){return W(e)},className:A(e)},o().createElement(C,w({"data-grid":e.dataGrid},ne,e,{quickFilters:ie(e)?e.quickFilters:void 0,toolsOptions:l,groups:k(M,e),showGroupColor:I,dependencies:h,enableColumnFilters:ie(e),canEdit:L,updateProperty:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return V.apply(void 0,[e.id].concat(r))},toggleCollapse:function(){return $(e)},toggleMaximize:function(){return Q(e)},onDelete:function(){return H(e)},onEdit:function(){return Y(e)},language:te,env:re})))})))}))},443716:(e,t,r)=>{"use strict";r.d(t,{Z:()=>Nt});var n=r(124852),o=r.n(n),i=r(867076),a=r(12425),c=r(839860);function l(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}const u=(0,i.compose)(a.Z,(0,i.compose)((0,i.withState)("showTable","setShowTable",!1),(0,i.withHandlers)({toggleTableView:function(e){var t=e.setShowTable,r=e.showTable;return function(){return t(!r)}}}),(0,i.withProps)((function(e){var t,r=e.widgetTools,n=void 0===r?[]:r,o=e.toggleTableView,i=void 0===o?function(){}:o;return{widgetTools:[].concat((t=n,function(e){if(Array.isArray(e))return l(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return l(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)?l(e,t):void 0}}(t)||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.")}()),[{glyph:"features-grid",target:"menu",textId:"widgets.widget.menu.showChartData",onClick:function(){return i()}}])}}))),(0,c.tR)(),(0,c.AV)(),(0,c.E6)(),(0,i.branch)((function(e){return!e.showTable}),(0,c.um)())),s=(0,i.compose)(a.Z,(0,c.tR)(),(0,c.E6)(),(0,c.um)());var p=r(227361),d=r.n(p),f=r(23279),g=r.n(f);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 v(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){m(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 m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const b=(0,i.compose)((0,i.withPropsOnChange)(["gridEvents"],(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.gridEvents,r=void 0===t?{}:t,n=e.updateProperty,o=void 0===n?function(){}:n,i=g()((function(){return o.apply(void 0,arguments)}),500);return{gridEvents:v(v({},r),{},{onAddFilter:function(e){return i("quickFilters.".concat(e.attribute),e)},onColumnResize:function(e,t,r,n,i,a){return o('options.columnSettings["'.concat(d()(a.filter((function(e){return!e.hide}))[e],"name"),'"].width'),t)}})}})),a.Z,(0,c.tR)(),(0,c.E6)(),(0,c.um)(),(0,i.withPropsOnChange)(["gridEvents"],(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.gridEvents,r=void 0===t?{}:t,n=e.updateProperty,o=void 0===n?function(){}:n;return{gridEvents:v(v({},r),{},{onGridSort:function(e,t){return o("sortOptions",{sortBy:e,sortOrder:t})}})}})));var h=r(213314);const O=(0,i.compose)(a.Z,(0,c.tR)(),(0,c.G5)(),(0,c.E6)(),(0,c.um)()),w=(0,i.compose)(a.Z,(0,c.tR)(),(0,c.E6)(),(0,c.um)());var j=r(387017),P=r(39589),E=r(264721),S=r.n(E),D=r(682492),C=r.n(D),k=r(378889),x=r(273849),T=r(425382),Z=r(49977),R=r.n(Z),N=r(886850);const I=function(e){return e.switchMap((function(e){var t=e.layer,r=void 0===t?{}:t,n=e.options,o=void 0===n?{}:n,i=e.filter,a=e.onLoad,c=void 0===a?function(){}:a,l=e.onLoadError,u=void 0===l?function(){}:l;return(0,N.Mc)(r,i,{timeout:15e3,params:{propertyName:o.propertyName,viewParams:o.viewParams}}).map((function(){return{loading:!1,error:void 0}})).do((function(e){return c({features:e.features,pagination:{totalFeatures:e.totalFeatures}})})).catch((function(e){return R().Observable.of({loading:!1,error:e,data:[]}).do(u)}))}))};function F(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?F(Object(r),!0).forEach((function(t){z(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):F(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return 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}r(49977);const L=function(e){return e.filter((function(e){var t=e.layer;return(void 0===t?{}:t).name})).distinctUntilChanged((function(e,t){var r=e.layer,n=void 0===r?{}:r,o=e.options,i=void 0===o?{}:o,a=e.filter,c=e.sortOptions;return t.layer&&n.name===t.layer.name&&n.loadingError===t.layer.loadingError&&function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.propertyName===t.propertyName&&e.viewParams===t.viewParams}(i,t.options)&&a===t.filter&&function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.sortBy===t.sortBy&&e.sortOrder===t.sortOrder}(c,t.sortOptions)})).map((function(e){return M(M({},e),{},{features:[],pages:[],pagination:{}})}))};var G=r(196958);function A(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 _(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?A(Object(r),!0).forEach((function(t){W(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function W(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const B=function(e){return function(t){return t.switchMap((function(t){var r=t.layer,n=void 0===r?{}:r,o=t.size,i=void 0===o?20:o,a=t.maxStoredPages,c=void 0===a?5:a,l=t.filter,u=t.options,s=void 0===u?{}:u,p=t.sortOptions,d=t.pages,f=t.features,g=void 0===f?[]:f,y=t.onLoad,v=void 0===y?function(){}:y,m=t.onLoadError,b=void 0===m?function(){}:m;return e.switchMap((function(e,t){var r=e.pagesRange,o=e.pagination,a=void 0===o?{}:o;return function(e){if(null==e)throw new TypeError("Cannot destructure undefined")}(t),(0,N.Mc)(n,l,_(_({},(0,G.S9)(r,d,i)),{},{sortOptions:p,timeout:15e3,totalFeatures:a.totalFeatures,propertyName:s.propertyName,viewParams:s.viewParams})).do((function(e){return v(_(_({},(0,G.f1)(e,r,{pages:d,features:g},_(_({},(0,G.S9)(r,d,i)),{},{size:i,maxStoredPages:c}))),{},{pagination:{totalFeatures:e.totalFeatures}}))})).map((function(){return{loading:!1}})).catch((function(e){return R().Observable.of({loading:!1,error:e}).do(b)})).startWith({loading:!0})}))}))}};function V(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 q(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?V(Object(r),!0).forEach((function(t){H(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):V(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return 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 U=function(e){var t=(0,i.createEventHandler)(),r=t.handler,n=t.stream;return(0,T.Z)(e).combineLatest(function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return L(e).let(r?B(t.withLatestFrom(e.map((function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).pagination;return{pagination:void 0===e?{}:e}})),(function(e,t){return q({pagesRange:e},t)}))):I).startWith({})}(e,n.startWith({startPage:0,endPage:1})),(function(e,t){return q(q(q({},e),t),{},{pageEvents:{moreFeatures:r,onPageChange:function(){}}})})).startWith({loading:!0})};const $=(0,i.compose)((0,i.defaultProps)({virtualScroll:!0,size:20,maxStoredPages:5}),(0,i.withStateHandlers)({pages:[],features:[],pagination:{}},{setData:function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.pages,r=e.features,n=e.pagination;return{pages:t,features:r,pagination:n,error:void 0}}}}),(0,i.withHandlers)({onLoad:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.setData,r=void 0===t?function(){}:t,n=e.onLoad,o=void 0===n?function(){}:n;return function(){r.apply(void 0,arguments),o.apply(void 0,arguments)}}}),(0,i.withProps)((function(){return{dataStreamFactory:U}})),x.Z,(0,i.withProps)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.options,r=void 0===t?{}:t,n=e.describeFeatureType,o=e.columnSettings,i=void 0===o?{}:o;return{columnSettings:C()(n?(0,k.getFeatureTypeProperties)(n).filter((function(e){return!S()(r.propertyName||[],e.name)})).reduce((function(e,t){return q(q({},e),{},H({},t.name,{hide:!0}))}),{}):{},r.columnSettings||{},i)}})));var K=r(630881),Q=r(908488),J=r(873339),Y=r(505055),X=r.n(Y),ee=r(441609),te=r.n(ee),re=r(618446),ne=r.n(re),oe=r(670956),ie=r(199767),ae=r(27835),ce=function(e){var t=e.wfsGetFeature;return(0,ae.Uh)("gs:Bounds",[(0,ie.qP)("features",(0,ie.fA)("text/xml","http://geoserver/wfs","POST",t))],(0,ie.DK)((0,ie.En)("bounds","application/json")))};var le=r(47805),ue=r(624262),se=r(761868),pe=r(552259);function de(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 fe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?de(Object(r),!0).forEach((function(t){ge(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):de(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ge(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ye=(0,i.compose)((0,i.branch)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mapSync,r=e.dependencies;return t&&(!te()(r.quickFilters)||!te()(r.filter))}),(0,i.compose)((0,i.withPropsOnChange)(["id"],(function(e){var t=e.hookRegister;return{hookRegister:(void 0===t?null:t)||(0,pe.createRegisterHooks)()}})),(0,i.mapPropsStream)((function(e){return e.distinctUntilChanged((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return ne()(e.dependencies.quickFilters,t.dependencies.quickFilters)&&ne()(e.dependencies.filter,t.dependencies.filter)&&ne()(e.dependencies.layer,t.dependencies.layer)})).debounceTime(500).switchMap((function(e){var t=e.mapSync,r=e.dependencies,n=void 0===r?{}:r,o=e.filter,i=e.hookRegister;if(!t||te()(n.layer))return Z.Observable.of({loading:!1});var a={};n.quickFilters&&(a=fe(fe({},a),(0,oe.r$)(o,n.quickFilters,n.options))),n.filter&&(a=fe(fe({},a),(0,le.composeAttributeFilters)([a,n.filter])));var c=n&&n.layer&&n.layer.name;if(!te()(a)){a=fe(fe({},a),{},{options:fe(fe({},a.options||{}),{},{noSchemaLocation:!0})});var l=(0,le.toOGCFilter)(c,a,"1.1.0");return function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,ae.mG)(e,ce(t),{},r)}((0,ue.ZA)(n.layer),{wfsGetFeature:l}).switchMap((function(e){var t,r,n;if(X().parseString(e,{explicitArray:!1},(function(e,o){t=o["ows:BoundingBox"],r=t["ows:LowerCorner"].split(" "),n=t["ows:UpperCorner"].split(" ")})),"0.0 0.0"===t["ows:LowerCorner"]&&"-1.0 -1.0"===t["ows:UpperCorner"])return Z.Observable.of({loading:!1});var o={minx:parseFloat(r[0]),miny:parseFloat(r[1]),maxx:parseFloat(n[0]),maxy:parseFloat(n[1])},a=i.getHook(pe.ZOOM_TO_EXTENT_HOOK);return a&&a(o,{crs:"EPSG:4326",maxZoom:21}),Z.Observable.of({loading:!1})})).startWith({loading:!0}).catch((function(e){return Z.Observable.of({error:"error getting bounds from filter",details:e})}))}return Z.Observable.of({loading:!1})})).combineLatest(e,(function(e){var t=e.loading,r=void 0!==t&&t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,se.t8)("loading",r,n)}))})))));var ve=r(313311),me=r.n(ve),be=r(143378);function he(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 Oe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?he(Object(r),!0).forEach((function(t){we(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):he(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function we(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const je=(0,i.compose)((0,i.withPropsOnChange)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mapSync,r=e.dependencies,n=void 0===r?{}:r,o=e.map,i=void 0===o?{}:o,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=arguments.length>2?arguments[2]:void 0;return t!==a.mapSync||!ne()(n,a.dependencies)||!ne()(i,a.map)||c!==a.filter}),(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mapSync,r=e.dependencies,n=void 0===r?{}:r,o=e.filter,i=void 0===o?{}:o,a=e.map,c=void 0===a?{layers:[]}:a,l=n&&n.layer&&n.layer.name,u=me()(c.layers,{name:l})||{},s={},p={},d=void 0;return t&&!te()(u)&&(n.quickFilters&&(s=Oe(Oe({},s),(0,oe.r$)(i,n.quickFilters,n.options))),n.filter&&(s=Oe(Oe({},s),(0,le.composeAttributeFilters)([s,n.filter]))),!te()(s)&&(0,le.toCQLFilter)(s))?(d=(0,le.toCQLFilter)(s),p=(0,se.cc)(!1,Oe(Oe({},u),{},{params:(0,be.v)({params:{CQL_FILTER:d}},u&&u.params&&u.params.CQL_FILTER)}),{name:l},c.layers),{map:Oe(Oe({},c),{},{layers:p})}):(p=c.layers.map((function(e){return Oe(Oe({},e),{},{params:Oe(Oe({},e.params),{},{CQL_FILTER:void 0})})})),{map:Oe(Oe({},c),{},{layers:p})})}))),Pe=function(e){return(0,i.branch)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mapSync;return t}),(0,i.withPropsOnChange)((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.mapSync,n=t.dependencies,o=void 0===n?{}:n,a=arguments.length>1?arguments[1]:void 0,c=a.mapSync,l=a.dependencies;return l&&(0,i.shallowEqual)(o[e],l[e])||r===c}),(function(t){var r=t.map,n=t.mapSync,o=t.dependencies,i=void 0===o?{}:o;return{mapStateSource:"__dependency_system__",map:i[e]&&n?(0,se.t8)(e,i[e],r):r}})))};var Ee=r(757588),Se=["data"];function De(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 Ce(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?De(Object(r),!0).forEach((function(t){ke(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):De(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ke(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xe(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}const Te=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.data,r=void 0===t?[]:t,n=xe(e,Se),i=Object.keys(r.reduce((function(e,t){return Ce(Ce({},e),t)}),{}));return o().createElement("div",{className:"mapstore-widget-table"},o().createElement(Ee.Table,{striped:!0},o().createElement("thead",null,o().createElement("tr",null,i.map((function(e,t){return o().createElement("th",null,t+1===i.length&&n.yAxisLabel?n.yAxisLabel:t>0?"".concat(e):e)})))),o().createElement("tbody",null,r.map((function(e){return o().createElement("tr",null,i.map((function(t){return o().createElement("td",null,e[t])})))})))))};var Ze=r(496259),Re=r(173014),Ne=r(342415),Ie=r(639837),Fe=r(351990),Me=(0,Re.Z)()((0,Ne.Z)((0,Ie.Z)(Fe.Z)));const ze=function(e){return o().createElement("div",{className:"mapstore-widget-chart"},o().createElement(Ze.Z,null,o().createElement(Me,e)))};var Le=r(805346),Ge=r(965539),Ae=r(572688);const _e=function(e){var t=e.id,r=e.title,n=e.confirmDelete,i=void 0!==n&&n,a=e.className,c=e.isDraggable,l=void 0===c||c,u=e.toggleDeleteConfirm,s=void 0===u?function(){}:u,p=e.onDelete,d=void 0===p?function(){}:p,f=e.icons,g=e.topLeftItems,y=e.topRightItems,v=e.headerStyle,m=void 0===v?{}:v,b=e.children;return o().createElement("div",{className:"mapstore-widget-card",id:t},o().createElement(Ge.Z,{className:a,header:o().createElement("div",{style:m,className:"mapstore-widget-info ".concat(l?"draggableHandle":"")},o().createElement("div",{className:"mapstore-widget-header"},o().createElement("span",{className:"widget-icons"},f),g,o().createElement("span",{className:"widget-title"},r),o().createElement("span",{className:"mapstore-widget-options"},y)))},b),i?o().createElement(Ae.Z,{confirmText:o().createElement(Le.Z,{msgId:"widgets.widget.menu.delete"}),titleText:o().createElement(Le.Z,{msgId:"widgets.widget.menu.delete"}),body:o().createElement(Le.Z,{msgId:"widgets.widget.menu.confirmDelete"}),show:i,onClose:function(){return s(!1)},onConfirm:function(){return d(t)}}):null)};var We=["id","title","description","headerStyle","data","series","loading","icons","showTable","topRightItems","confirmDelete","dataGrid","onDelete","toggleTableView","toggleDeleteConfirm"];function Be(){return Be=Object.assign||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},Be.apply(this,arguments)}var Ve=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.showTable,r=e.toggleTableView,n=void 0===r?function(){}:r;return t?o().createElement(Ee.Glyphicon,{onClick:function(){n()},glyph:"arrow-left pull-left"}):null};var qe=r(982030),He=r(599707),Ue=(0,qe.Z)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.text;return!t}),(function(){return{glyph:"sheet",messageId:"widgets.errors.notext"}}),He.Z)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.text;return o().createElement("div",{className:"mapstore-widget-default-content ql-editor",dangerouslySetInnerHTML:{__html:t}})})),$e=r(957557),Ke=r.n($e),Qe=r(975480),Je=r(892936),Ye=["layers"];function Xe(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 et(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Xe(Object(r),!0).forEach((function(t){tt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function tt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var rt=(0,i.withHandlers)({onMapViewChanges:function(e){var t=e.updateProperty,r=void 0===t?function(){}:t;return function(e){e.layers;var t=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,Ye);return r("map",t,"merge")}}})(Je.Z),nt=r(118027);function ot(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 it(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ot(Object(r),!0).forEach((function(t){at(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ot(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function at(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ct=(0,i.compose)((0,i.mapPropsStream)((function(e){return e.combineLatest(e.pluck("quickFilterStream$").distinctUntilChanged().switchMap((function(e){return e})).startWith(void 0),(function(e,t){var r=t&&e.options&&me()(e.options.propertyName,(function(t){return t===e.attributeName}))&&t[e.attributeName]||{},n=r&&(r.rawValue||r.value);return it(it({},e),{},{value:n})}))}))),lt=function(e){var t=e.options,r=e.localType,n=e.attributeName,o=e.quickFilterStream$;return(0,i.compose)((0,i.withProps)({quickFilterStream$:o,attributeName:n,options:t}),ct)((0,nt.Q)(r,{name:n}))},ut=(0,i.compose)((0,i.mapPropsStream)((function(e){return e.map((function(t){return it(it({},t),{},{quickFilterStream$:e.pluck("quickFilters").distinctUntilChanged()})}))}))),st=(0,i.compose)(ut,(0,i.withPropsOnChange)(["describeFeatureType","options"],(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.describeFeatureType,r=e.options,n=e.quickFilterStream$;return t?{filterRenderers:(0,G.Lo)(t).reduce((function(e,t){var o=t.localType,i=t.name,a=lt({options:r,localType:o,attributeName:i,quickFilterStream$:n});return it(it({},e),{},at({},i,a))}),{})}:{}}))),pt=r(830029),dt=r(588300),ft=(0,Ne.Z)((0,Re.Z)((function(e){return!e.describeFeatureType}))(dt.Z));const gt=st((function(e){var t=e.id,r=e.title,n=e.loading,i=e.confirmDelete,a=void 0!==i&&i,c=e.enableColumnFilters,l=void 0!==c&&c,u=e.headerStyle,s=e.icons,p=e.topRightItems,d=e.toggleDeleteConfirm,f=void 0===d?function(){}:d,g=e.onDelete,y=void 0===g?function(){}:g,v=e.gridEvents,m=void 0===v?function(){}:v,b=e.pageEvents,h=void 0===b?{moreFeatures:function(){}}:b,O=e.describeFeatureType,w=e.filterRenderers,j=e.columnSettings,P=e.features,E=e.size,S=e.pages,D=e.error,C=e.pagination,k=void 0===C?{}:C,x=e.dataGrid,T=void 0===x?{}:x,Z=e.virtualScroll,R=void 0===Z||Z;return o().createElement(_e,{id:"widget-chart-".concat(t),title:r,headerStyle:u,icons:s,isDraggable:T.isDraggable,confirmDelete:a,onDelete:y,toggleDeleteConfirm:f,topRightItems:p},o().createElement(Ge.Z,{footer:k.totalFeatures?o().createElement("div",{style:{height:"30px",overflow:"hidden"}},n?o().createElement("span",{style:{float:"right"}},o().createElement(Qe.Z,null)):null,void 0===D&&o().createElement("span",{style:{float:"left",margin:"5px"}},o().createElement(Le.Z,{msgId:"featuregrid.resultInfoVirtual",msgParams:{total:k.totalFeatures}}))):null},o().createElement(ft,{emptyRowsView:function(){return o().createElement(pt.Z,{loading:n},o().createElement(He.Z,{messageId:"featuregrid.noFeaturesAvailable",glyph:"features-grid"}))},gridEvents:m,sortable:!0,defaultSize:!1,columnSettings:j,pageEvents:h,virtualScroll:R,enableColumnFilters:l,filterRenderers:w,features:P,pages:S,error:D,size:E,rowKey:"id",describeFeatureType:O,pagination:k})))}));var yt=r(980844),vt=["id","title","description","data","series","loading","showTable","confirmDelete","headerStyle","icons","topRightItems","dataGrid","toggleTableView","toggleDeleteConfirm","onDelete"];function mt(){return mt=Object.assign||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},mt.apply(this,arguments)}var bt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.showTable,r=e.toggleTableView,n=void 0===r?function(){}:r;return t?o().createElement(Ee.Glyphicon,{onClick:function(){n()},glyph:"arrow-left pull-left"}):null},ht=r(946173),Ot=r(70919),wt=["toggleDeleteConfirm","id","title","icons","headerStyle","confirmDelete","topRightItems","dataGrid","onDelete"];function jt(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var Pt=(0,ht.Z)()(Ot.Z),Et=(0,i.compose)(J.Z,K.Z,Q.Z,j.Z,u)((function(e){var t=e.id,r=e.title,n=e.description,i=e.headerStyle,a=e.data,c=void 0===a?[]:a,l=e.series,u=void 0===l?[]:l,s=e.loading,p=e.icons,d=e.showTable,f=e.topRightItems,g=e.confirmDelete,y=void 0!==g&&g,v=e.dataGrid,m=void 0===v?{}:v,b=e.onDelete,h=void 0===b?function(){}:b,O=e.toggleTableView,w=void 0===O?function(){}:O,j=e.toggleDeleteConfirm,P=void 0===j?function(){}:j,E=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,We);return o().createElement(_e,{id:"widget-chart-".concat(t),headerStyle:i,isDraggable:m.isDraggable,title:r,icons:p,topLeftItems:Ve({loading:s,title:r,description:n,showTable:d,toggleTableView:w}),confirmDelete:y,onDelete:h,toggleDeleteConfirm:P,topRightItems:f},d?o().createElement(Te,Be({data:c},E)):o().createElement(ze,Be({id:t,isAnimationActive:!s,loading:s,data:c,series:u,iconFit:!0},E)))})),St=(0,i.compose)(O)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.toggleDeleteConfirm,r=void 0===t?function(){}:t,n=e.icons,i=e.topLeftItems,a=e.id,c=e.title,l=e.text,u=e.headerStyle,s=e.topRightItems,p=e.dataGrid,d=void 0===p?{}:p,f=e.confirmDelete,g=void 0!==f&&f,y=e.onDelete,v=void 0===y?function(){}:y;return o().createElement(_e,{id:"widget-text-".concat(a),title:c,confirmDelete:g,onDelete:v,toggleDeleteConfirm:r,headerStyle:u,isDraggable:d.isDraggable,icons:n,topLeftItems:i,topRightItems:s},o().createElement(Ue,{text:l}))})),Dt=(0,i.compose)(J.Z,je,Pe("center"),Pe("zoom"),ye,w)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.updateProperty,r=void 0===t?function(){}:t,n=e.toggleDeleteConfirm,i=void 0===n?function(){}:n,a=e.id,c=e.title,l=e.map,u=e.icons,s=e.hookRegister,p=e.mapStateSource,d=e.topRightItems,f=e.confirmDelete,g=void 0!==f&&f,y=e.loading,v=void 0!==y&&y,m=e.dataGrid,b=void 0===m?{}:m,h=e.onDelete,O=void 0===h?function(){}:h,w=e.headerStyle,j=e.env,P=l.size,E=P.height,S=P.width,D=l.mapInfoControl,C=E>400&&S>400&&D;return o().createElement(_e,{id:"widget-text-".concat(a),title:c,confirmDelete:g,onDelete:O,toggleDeleteConfirm:i,headerStyle:w,icons:u,topRightItems:d,isDraggable:b.isDraggable},o().createElement(Ge.Z,{footer:o().createElement("div",{style:{height:"30px",overflow:"hidden"}},v?o().createElement("span",{style:{float:"right"}},o().createElement(Qe.Z,null)):null)},o().createElement(rt,{tools:C?["popup"]:[],updateProperty:r,id:a,map:et({},Ke()(l,"mapStateSource")),mapStateSource:p,hookRegister:s,layers:l&&l.layers,options:{style:{margin:10,height:"calc(100% - 20px)"}},env:j})))})),Ct=(0,i.compose)(J.Z,Q.Z,K.Z,$,b)(gt),kt=(0,i.compose)(J.Z,K.Z,Q.Z,P.Z,s)((function(e){var t=e.id,r=e.title,n=e.description,i=e.data,a=void 0===i?[]:i,c=e.series,l=void 0===c?[]:c,u=e.loading,s=e.showTable,p=e.confirmDelete,d=void 0!==p&&p,f=e.headerStyle,g=e.icons,y=e.topRightItems,v=e.dataGrid,m=void 0===v?{}:v,b=e.toggleTableView,h=void 0===b?function(){}:b,O=e.toggleDeleteConfirm,w=void 0===O?function(){}:O,j=e.onDelete,P=void 0===j?function(){}:j,E=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,vt);return o().createElement(_e,{className:"counter-widget",id:"widget-chart-".concat(t),title:r,isDraggable:m.isDraggable,icons:g,topLeftItems:bt({loading:u,title:r,description:n,showTable:s,toggleTableView:h}),confirmDelete:d,onDelete:P,toggleDeleteConfirm:w,headerStyle:f,topRightItems:y},o().createElement(yt.Z,mt({id:t,isAnimationActive:!u,loading:u,data:a,series:l,iconFit:!0},E)))})),xt=(0,i.compose)(J.Z,h.Z)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.toggleDeleteConfirm,r=void 0===t?function(){}:t,n=e.id,i=e.title,a=e.icons,c=e.headerStyle,l=e.confirmDelete,u=void 0!==l&&l,s=e.topRightItems,p=e.dataGrid,d=void 0===p?{}:p,f=e.onDelete,g=void 0===f?function(){}:f,y=jt(e,wt);return o().createElement(_e,{id:"widget-text-".concat(n),title:i,confirmDelete:u,onDelete:g,toggleDeleteConfirm:r,headerStyle:c,icons:a,topRightItems:s,isDraggable:d.isDraggable},o().createElement(Pt,y))})),Tt=["dependencies","toggleCollapse","exportCSV","exportImage","onDelete","onEdit"];function Zt(){return Zt=Object.assign||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},Zt.apply(this,arguments)}function Rt(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}const Nt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.dependencies,r=e.toggleCollapse,n=void 0===r?function(){}:r,i=e.exportCSV,a=void 0===i?function(){}:i,c=e.exportImage,l=void 0===c?function(){}:c,u=e.onDelete,s=void 0===u?function(){}:u,p=e.onEdit,d=void 0===p?function(){}:p,f=Rt(e,Tt);return"text"===f.widgetType?o().createElement(St,Zt({},f,{toggleCollapse:n,onDelete:s,onEdit:d})):"table"===f.widgetType?o().createElement(Ct,Zt({},f,{toggleCollapse:n,exportCSV:a,dependencies:t,onDelete:s,onEdit:d})):"counter"===f.widgetType?o().createElement(kt,Zt({},f,{toggleCollapse:n,dependencies:t,onDelete:s,onEdit:d})):"map"===f.widgetType?o().createElement(Dt,Zt({},f,{toggleCollapse:n,dependencies:t,onDelete:s,onEdit:d})):"legend"===f.widgetType?o().createElement(xt,Zt({},f,{toggleCollapse:n,dependencies:t,onDelete:s,onEdit:d})):o().createElement(Et,Zt({},f,{toggleCollapse:n,exportCSV:a,dependencies:t,exportImage:l,onDelete:s,onEdit:d}))}},688395:(e,t,r)=>{"use strict";r.d(t,{ZP:()=>_});var n=r(49977),o=r.n(n),i=r(666654),a=r.n(i),c=r(218721),l=r.n(c),u=r(227361),s=r.n(u),p=r(264721),d=r.n(p),f=r(618446),g=r.n(f),y=r(957557),v=r.n(y),m=r(114176),b=r.n(m),h=r(557579),O=r(881808),w=r(401757),j=r(580416),P=r(675110),E=r(324684),S=r(769293),D=r(555927),C=r(275982),k=r(178598),x=r(989077),T=r(117542),Z=r.n(T),R=r(459425),N=r.n(R);function I(e){return function(e){if(Array.isArray(e))return F(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 F(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)?F(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 F(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 M(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 z(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?M(Object(r),!0).forEach((function(t){L(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):M(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function L(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){return e.ofType(S.WC,S.a3,S.W5).startWith({type:O.ok}).switchMap((function(t){return t.type===S.WC?o().Observable.never():e})).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.type;return t===C.nk}))},A=function(e,t,r,n){return o().Observable.of((0,h.Rz)("mapSync",e),(0,h.Rz)("dependenciesMap",function(e,t,r){var n,o=r.dependenciesMap,i=r.mappings,c=["layer","filter","quickFilters","options"],l=["layers","viewport","zoom","center"],u=(h.oU.exec(t)||[])[1],s=b()(o,(function(e){return-1===e.indexOf(u)})),p=Object.keys(i).filter((function(e){return void 0!==i[e]})).reduce((function(e,r){return!a()(t,"map")&&d()(c,r)?z(z({},e),{},L({},r,"".concat(t,".").concat(i[r]))):a()(t,"map")?d()(l,r)?z(z({},e),{},L({},r,"map"===t?i[r]:"".concat(t,".").concat(i[r]))):z(z({},e),{},L({},r,"".concat(t.replace(".map",""),".").concat(i[r]))):e}),{});return e?z(z(z({},s),p),{},(L(n={},"dependenciesMap","".concat(t.replace(".map",""),".dependenciesMap")),L(n,"mapSync","".concat(t.replace(".map",""),".mapSync")),n)):v()(s,[Object.keys(i)])}(e,t,r)))};const _={exportWidgetData:function(e){return e.ofType(h.Km).do((function(e){var t=e.data,r=void 0===t?[]:t,n=e.title,o=void 0===n?"data":n;return Z().json2csv(r,(function(e,t){return e?null:(0,k.saveAs)(new Blob([t],{type:"text/csv"}),o+".csv")}))})).filter((function(){return!1}))},alignDependenciesToWidgets:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.getState,n=void 0===r?function(){}:r;return e.ofType(O.ok,D.E9,h.Jm).map((function(){return(0,w.jx)(n())})).pluck("availableDependencies").distinctUntilChanged((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return g()(I(e),I(t))})).map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(0,h._k)(e.reduce((function(e,t){var r,n,o=t.replace(".map","");return a()(t,"map")?z(z({},e),{},(L(r={},"".concat(o,".dependenciesMap"),"".concat(o,".dependenciesMap")),L(r,"".concat(o,".mapSync"),"".concat(o,".mapSync")),L(r,"map"===t?"viewport":"".concat(t,".viewport"),"".concat(t,".bbox")),L(r,"map"===t?"center":"".concat(t,".center"),"".concat(t,".center")),L(r,"map"===t?"zoom":"".concat(t,".zoom"),"".concat(t,".zoom")),L(r,"map"===t?"layers":"".concat(t,".layers"),"map"===t?"layers.flat":"".concat(t,".layers")),r)):z(z({},e),{},(L(n={},"".concat(t,".filter"),"".concat(t,".filter")),L(n,"".concat(t,".quickFilters"),"".concat(t,".quickFilters")),L(n,"".concat(o,".dependenciesMap"),"".concat(o,".dependenciesMap")),L(n,"".concat(o,".mapSync"),"".concat(o,".mapSync")),L(n,"".concat(t,".layer"),"".concat(t,".layer")),L(n,"".concat(t,".options"),"".concat(t,".options")),n))}),{}))}))},toggleWidgetConnectFlow:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.getState,n=void 0===r?function(){}:r;return e.ofType(h.LH).switchMap((function(t){var r=t.active,i=t.availableDependencies,a=void 0===i?[]:i,c=t.options;return r&&a.length>0?1===a.length?A(r,a[0],c):o().Observable.of((0,h.kr)(r,{availableDependencies:a})).merge(e.ofType(h.V5).filter((function(){return(0,w.xI)(n())})).switchMap((function(e){var t=e.widget,i=s()((0,w.r0)(n()),"availableDependencies").filter((function(e){return(h.oU.exec(e)||[])[1]===t.id}));return A(r,i[0],c,t.dependeciesMap).concat(o().Observable.of((0,h.kr)(!1,{})))})).takeUntil(e.ofType(C.nk).merge(e.filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.type,r=e.key;return t===h.Cz&&r===h.jv}))))):A(r,a[0],c)}))},clearWidgetsOnLocationChange:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.getState,n=void 0===r?function(){}:r;return e.ofType(O.ok).switchMap((function(){var t=(0,E.F)(n()).split("/"),r=t[t.length-1];return e.let(G).filter((function(){var e=(0,E.F)(n()).split("/");return e[e.length-1]!==r})).switchMap((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.payload,r=void 0===t?{}:t;return r&&r.location&&r.location.pathname?o().Observable.of((0,h.K4)()):o().Observable.empty()}))}))},exportWidgetImage:function(e){return e.ofType(h.pV).do((function(e){var t,r,n=e.widgetDivId,o=e.title,i=void 0===o?"data":o,a=document.createElement("canvas"),c=document.querySelector("#".concat(n," .recharts-wrapper svg")),l=c.outerHTML?c.outerHTML:(t=c,(r=document.createElement("div")).appendChild(t.cloneNode(!0)),r.innerHTML);N()(a,l,{renderCallback:function(){var e=a.getContext("2d");e.globalCompositeOperation="destination-over",e.fillStyle="#fff",e.fillRect(0,0,a.width,a.height),(0,x.RP)(a.toDataURL("image/jpeg",1),"".concat(i,".jpg"),"image/jpeg")}})})).filter((function(){return!1}))},updateLayerOnLayerPropertiesChange:function(e,t){return e.ofType(j.yS).switchMap((function(e){var r,n=e.layer,i=e.newProperties,a=t.getState(),c=(0,P.CA)(a,n);return(r=o().Observable).of.apply(r,I(l()(i,"layerFilter")&&c?[(0,h.Ko)(c)]:[]))}))},updateLayerOnLoadingErrorChange:function(e,t){return e.ofType(j.x9,j.vs).groupBy((function(e){return e.layerId})).map((function(e){return e.switchMap((function(e){var r,n=e.layerId,i=t.getState(),a=(0,P.CA)(i,n);return(r=o().Observable).of.apply(r,I(a&&a.previousLoadingError!==a.loadingError?[(0,h.Ko)(a)]:[]))}))})).mergeAll()}}},875859:(e,t,r)=>{"use strict";r.d(t,{Z:()=>C});var n=r(557579),o=r(881808),i=r(555927),a=r(727418),c=r.n(a),l=r(728252),u=r.n(l),s=r(227361),p=r.n(s),d=r(313311),f=r.n(d),g=r(957557),y=r.n(g),v=r(66604),m=r.n(v),b=r(984596),h=r.n(b),O=r(761868);function w(e){return function(e){if(Array.isArray(e))return j(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 j(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)?j(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 j(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 P(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 E(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?P(Object(r),!0).forEach((function(t){S(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):P(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function S(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var D={dependencies:{viewport:"map.bbox",center:"map.center",zoom:"map.zoom"},containers:{floating:{widgets:[]}},builder:{settings:{step:0}}};const C=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:D,r=arguments.length>1?arguments[1]:void 0;switch(r.type){case n.Cz:return u()("builder.settings.".concat(r.key),r.value,t);case n.n8:return u()("builder.editor",r.widget,u()("builder.settings",r.settings||D.settings,t));case n.dm:return u()("builder.editor",E(E({},r.widget),{},{widgetType:r.widget&&r.widget.widgetType||"chart"}),u()("builder.settings.step","chart"===(r.widget&&r.widget.widgetType||"chart")?1:0,t));case n.BV:return u()("builder.editor.".concat(r.key),r.value,t);case n.Jm:var a=(0,O.vy)("containers[".concat(r.target,"].widgets"),E(E({id:r.id},r.widget),{},{dataGrid:r.id&&{y:0,x:0,w:1,h:1}}),{id:r.widget.id||r.id},t);return a;case n.$A:var l=f()(p()(t,"containers[".concat(r.target,"].widgets")),{id:r.id});return(0,O.vy)("containers[".concat(r.target,"].widgets"),u()(r.key,"merge"===r.mode?c()({},l[r.key],r.value):r.value,l),{id:r.id},t);case n.eb:if(r.layer){var s=p()(t,"containers[".concat(n.VR,"].widgets"));if(s)return u()("containers[".concat(n.VR,"].widgets"),s.map((function(e){return p()(e,"layer.id")===r.layer.id?u()("layer",r.layer,e):e})),t)}return t;case n.yY:return(0,O.z6)("containers[".concat(r.target,"].widgets"),{id:r.widget.id},t);case i.E9:var d=r.data;return u()("containers[".concat(n.VR,"]"),E({},d),t);case o.ok:var g=r.config||{},v=g.widgetsConfig;return u()("containers[".concat(n.VR,"]"),E({},v),t);case n.v8:return u()("containers[".concat(r.target,"].layout"),r.layout)(u()("containers[".concat(r.target,"].layouts"),r.allLayouts,t));case n.ff:case i.R4:return u()("containers[".concat(n.VR,"]"),D.containers[n.VR],t);case n.S0:var b=r.key,j=r.value;return u()("dependencies[".concat(b,"]"),j,t);case n.Q6:var P=r.key;return u()("dependencies[".concat(P,"]"),null,t);case n.kb:var S=r.dependencies;return u()("dependencies",S,t);case n.GV:return u()("dependencies",D.dependencies,t);case n.Ym:var C=r.widget,k=void 0===C?{}:C;if(k.dataGrid&&k.dataGrid.static)return t;var x=p()(t,"containers[".concat(r.target,"].collapsed[").concat(k.id));if(x){var T=[].concat(w(p()(t,"containers[".concat(r.target,"].layout"),[])),w(h()(p()(x,"layout",[])))),Z=m()(p()(t,"containers[".concat(r.target,"].layouts"),{}),(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return[].concat(w(e),w(h()(p()(x,"layouts[".concat(t,"]"),[]))))}));return y()((0,O.qC)(u()("containers[".concat(r.target,"].layout"),T),u()("containers[".concat(r.target,"].layouts"),Z))(t),"containers[".concat(r.target,"].collapsed[").concat(k.id,"]"))}return u()("containers[".concat(r.target,"].collapsed[").concat(k.id,"]"),{layout:f()(p()(t,"containers[".concat(r.target,"].layout"),[]),{i:k.id}),layouts:m()(p()(t,"containers[".concat(r.target,"].layouts"),{}),(function(e){return f()(e,{i:k.id})}))},t);case n.ke:var R,N,I,F,M,z,L,G,A,_,W,B,V,q,H,U,$,K,Q=r.widget,J=null==t||null===(R=t.containers)||void 0===R||null===(N=R[r.target])||void 0===N?void 0:N.maximized;if(!Q||null!==(I=Q.dataGrid)&&void 0!==I&&I.static)return t;if(null!=J&&J.widget)return(0,O.qC)(u()("containers[".concat(r.target,"].layout"),J.layout),u()("containers[".concat(r.target,"].layouts"),J.layouts),u()("containers[".concat(r.target,"].maximized"),{}),u()("containers[".concat(r.target,"].widgets"),null==t||null===(U=t.containers)||void 0===U||null===($=U[r.target])||void 0===$||null===(K=$.widgets)||void 0===K?void 0:K.map((function(e){return e.id===J.widget.id?E(E({},e),{},{dataGrid:E(E({},e.dataGrid),{},{isDraggable:!0,isResizable:!0})}):e}))))(t);if(null!=t&&null!==(F=t.containers)&&void 0!==F&&null!==(M=F[r.target])&&void 0!==M&&null!==(z=M.collapsed)&&void 0!==z&&z[Q.id])return t;var Y={x:0,y:0,w:1,h:1},X=f()(null==t||null===(L=t.containers)||void 0===L||null===(G=L[r.target])||void 0===G?void 0:G.layout,{i:Q.id}),ee=E(E({},X),Y);return(0,O.qC)(u()("containers[".concat(r.target,"].maximized"),{widget:Q,layout:null==t||null===(A=t.containers)||void 0===A||null===(_=A[r.target])||void 0===_?void 0:_.layout,layouts:null==t||null===(W=t.containers)||void 0===W||null===(B=W[r.target])||void 0===B?void 0:B.layouts}),u()("containers[".concat(r.target,"].layout"),[ee]),u()("containers[".concat(r.target,"].layouts"),{xxs:[ee]}),u()("containers[".concat(r.target,"].widgets"),null==t||null===(V=t.containers)||void 0===V||null===(q=V[r.target])||void 0===q||null===(H=q.widgets)||void 0===H?void 0:H.map((function(e){return e.id===Q.id?E(E({},e),{},{dataGrid:E(E({},e.dataGrid),{},{isDraggable:!1,isResizable:!1})}):e}))))(t);case n.uU:var te=p()(t,"containers[".concat(r.target,"].widgets"),[]).filter((function(e){return!e.dataGrid||!e.dataGrid.static})),re=te.filter((function(e){return p()(t,"containers[".concat(r.target,"].collapsed[").concat(e.id,"]"))})),ne=te.filter((function(e){return!p()(t,"containers[".concat(r.target,"].collapsed[").concat(e.id,"]"))})),oe=0===ne.length;return oe?re.reduce((function(t,r){return e(t,(0,n.f)(r))}),t):ne.length>0?ne.reduce((function(t,r){return e(t,(0,n.f)(r))}),t):t;case n.nw:return u()("tray",r.value,t);default:return t}}}}]);