text: (self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[4058],{91380:(e,t,r)=>{"use strict";r.d(t,{ZY:()=>u,Gv:()=>s});var n=r(67294),o=r.n(n),i=r(75382),a=r(2479),c=r(38482);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}).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))}},72688:(e,t,r)=>{"use strict";r.d(t,{Z:()=>w});var n=r(67294),o=r.n(n),i=r(45697),a=r.n(i),c=r(82467),l=r(43614),u=r(72986),s=r.n(u);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})(e)}function p(){return(p=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}).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 v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(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 y(e)}function y(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)})(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}}),t&&v(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 m(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(y(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,p({},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),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},43614:(e,t,r)=>{"use strict";r.d(t,{Z:()=>g});var n=r(27418),o=r.n(n),i=r(57588),a=r(61365);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})(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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 s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(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 function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=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}}),t&&s(e,t)}(a,e);var t,r,n,o,i=(n=a,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=p(n);if(o){var r=p(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return d(this,e)});function a(){return l(this,a),i.apply(this,arguments)}return t=a,(r=[{key:"handleDialogClick",value:function(e){e.target===e.currentTarget&&this.props.onHide(e)}}])&&u(t.prototype,r),a}(i.Modal);const g=o()((0,a.Z)(f),{Body:i.Modal.Body,Dialog:i.Modal.Dialog,Footer:i.Modal.Footer,Header:i.Modal.Header,Title:i.Modal.Title})},76424:(e,t,r)=>{"use strict";r.d(t,{Z:()=>f});var n=r(67294),o=r.n(n),i=r(13218),a=r.n(i),c=r(32425),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){d(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 d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}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 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,d=e.description,f=e.fullText,g=e.onClick,v=void 0===g?function(){}:g,m=e.onMouseEnter,y=void 0===m?function(){}:m,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,T=void 0===C?{}:C,k=e.title,x=e.loading,Z=e.dragSymbol,F=void 0===Z?"+":Z,R=e.tools,I=p(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 v(s({title:k,preview:O,description:d,caption:r,tools:R},I),e)},onMouseEnter:y,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"}},F))),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"},k&&o().createElement("div",{className:"mapstore-side-card-title"},o().createElement("span",null,k)),d&&o().createElement("div",{className:"mapstore-side-card-desc"},a()(d)?d:o().createElement("span",null,d)),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:T},R),"sm"!==j&&o().createElement("div",{className:"mapstore-side-card-loading"},o().createElement(c.Z,{className:"mapstore-side-card-loader",size:12,hidden:!x})))))),t&&o().createElement("div",{className:"ms-body"},t))}},25382:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(89255),o=r(86850),i=r(24262);const a=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,i.Tt)(t)===(0,i.Tt)(n)&&t.loadingError===n.loadingError})).switchMap((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.layer;return(0,o.v$)({layer:t}).map((function(e){return{describeFeatureType:e.data,loading:!1,error:void 0}})).catch((function(e){return n.Observable.of({loading:!1,error:e})}))}))}},64945:(e,t,r)=>{"use strict";r.d(t,{Z:()=>k});var n=r(67294),o=r.n(n),i=r(2479),a=r(13311),c=r.n(a),l=r(66604),u=r.n(l),s=r(69968),d=r(27361),p=r.n(d),f=r(91175),g=r.n(f);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 m(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){y(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 y(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 p()(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)?m(m({},o),{},{borderTop:"3px solid ".concat(b(t))}):o}}));r(89611);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}).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(43716).Z),T=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 k=(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,d=void 0===s?208:s,p=e.breakpoints,f=void 0===p?{lg:1200,md:996,sm:768,xs:480,xxs:0}:p,g=e.cols,v=void 0===g?{lg:6,md:6,sm:4,xs:2,xxs:1}:g,m=e.widgets,y=void 0===m?[]:m,b=e.layouts,h=e.dependencies,j=e.verticalCompact,E=void 0!==j&&j,k=e.compactMode,x=e.useDefaultWidthProvider,Z=void 0===x||x,F=e.measureBeforeMount,R=e.width,I=e.showGroupColor,M=e.groups,N=void 0===M?[]:M,L=e.canEdit,G=void 0===L||L,A=e.getWidgetClass,z=void 0===A?function(){}:A,_=e.onWidgetClick,W=void 0===_?function(){}:_,V=e.updateWidgetProperty,q=void 0===V?function(){}:V,B=e.deleteWidget,H=void 0===B?function(){}:B,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=y.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:F,width:Z?void 0:R,isResizable:G,isDraggable:G,draggableHandle:".draggableHandle",onLayoutChange:ee,preventCollision:!0,style:r,className:"widget-container ".concat(i," ").concat(G?"":"no-drag"),rowHeight:d,autoSize:!0,verticalCompact:E,compactMode:k,breakpoints:f,cols:v,layouts:b?JSON.parse(JSON.stringify(u()(b,(function(e){return e.map((function(e){var t=c()(y,{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},y.map((function(e){return o().createElement("div",{key:e.id,"data-grid":e.dataGrid,onClick:function(){return W(e)},className:z(e)},o().createElement(C,w({"data-grid":e.dataGrid},ne,e,{quickFilters:ie(e)?e.quickFilters:void 0,toolsOptions:l,groups:T(N,e),showGroupColor:I,dependencies:h,enableColumnFilters:ie(e),canEdit:G,updateProperty:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return q.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})))})))}))},43716:(e,t,r)=>{"use strict";r.d(t,{Z:()=>xt});var n=r(67294),o=r.n(n),i=r(2479),a=r(12425),c=r(39860);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 d=r(27361),p=r.n(d);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 g(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){v(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 v(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const m=(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;return{gridEvents:g(g({},r),{},{onAddFilter:function(e){return o("quickFilters.".concat(e.attribute),e)},onColumnResize:function(e,t,r,n,i,a){return o('options.columnSettings["'.concat(p()(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:g(g({},r),{},{onGridSort:function(e,t){return o("sortOptions",{sortBy:e,sortOrder:t})}})}})));var y=r(13314);const b=(0,i.compose)(a.Z,(0,c.tR)(),(0,c.G5)(),(0,c.E6)(),(0,c.um)()),h=(0,i.compose)(a.Z,(0,c.tR)(),(0,c.E6)(),(0,c.um)());var O=r(87017),w=r(39589),j=r(64721),P=r.n(j),E=r(82492),S=r.n(E),D=r(78889),C=r(73849),T=r(25382),k=r(89255),x=r(86850);const Z=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,x.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 k.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 R(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){I(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 I(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(89255);const M=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 R(R({},e),{},{features:[],pages:[],pagination:{}})}))};var N=r(96958);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 G(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){A(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 A(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const z=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,d=t.sortOptions,p=t.pages,f=t.features,g=void 0===f?[]:f,v=t.onLoad,m=void 0===v?function(){}:v,y=t.onLoadError,b=void 0===y?function(){}:y;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,x.Mc)(n,l,G(G({},(0,N.S9)(r,p,i)),{},{sortOptions:d,timeout:15e3,totalFeatures:a.totalFeatures,propertyName:s.propertyName,viewParams:s.viewParams})).do((function(e){return m(G(G({},(0,N.f1)(e,r,{pages:p,features:g},G(G({},(0,N.S9)(r,p,i)),{},{size:i,maxStoredPages:c}))),{},{pagination:{totalFeatures:e.totalFeatures}}))})).map((function(){return{loading:!1}})).catch((function(e){return k.Observable.of({loading:!1,error:e}).do(b)})).startWith({loading:!0})}))}))}};function _(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 W(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_(Object(r),!0).forEach((function(t){V(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_(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 q=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 M(e).let(r?z(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 W({pagesRange:e},t)}))):Z).startWith({})}(e,n.startWith({startPage:0,endPage:1})),(function(e,t){return W(W(W({},e),t),{},{pageEvents:{moreFeatures:r,onPageChange:function(){}}})})).startWith({loading:!0})};const B=(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:q}})),C.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:S()(n?(0,D.getFeatureTypeProperties)(n).filter((function(e){return!P()(r.propertyName||[],e.name)})).reduce((function(e,t){return W(W({},e),{},V({},t.name,{hide:!0}))}),{}):{},r.columnSettings||{},i)}})));var H=r(30881),U=r(8488),$=r(73339),K=r(5055),Q=r.n(K),J=r(41609),Y=r.n(J),X=r(18446),ee=r.n(X),te=r(70956),re=r(99767),ne=r(27835),oe=function(e){var t=e.wfsGetFeature;return(0,ne.Uh)("gs:Bounds",[(0,re.qP)("features",(0,re.fA)("text/xml","http://geoserver/wfs","POST",t))],(0,re.DK)((0,re.En)("bounds","application/json")))};var ie=r(47805),ae=r(24262),ce=r(61868),le=r(52259);function ue(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 se(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ue(Object(r),!0).forEach((function(t){de(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ue(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function de(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const pe=(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&&(!Y()(r.quickFilters)||!Y()(r.filter))}),(0,i.compose)((0,i.withPropsOnChange)(["id"],(function(e){var t=e.hookRegister;return{hookRegister:(void 0===t?null:t)||(0,le.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 ee()(e.dependencies.quickFilters,t.dependencies.quickFilters)&&ee()(e.dependencies.filter,t.dependencies.filter)&&ee()(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||Y()(n.layer))return k.Observable.of({loading:!1});var a={};n.quickFilters&&(a=se(se({},a),(0,te.r$)(o,n.quickFilters,n.options))),n.filter&&(a=se(se({},a),(0,ie.composeAttributeFilters)([a,n.filter])));var c=n&&n.layer&&n.layer.name;if(!Y()(a)){a=se(se({},a),{},{options:se(se({},a.options||{}),{},{noSchemaLocation:!0})});var l=(0,ie.toOGCFilter)(c,a,"1.1.0");return function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,ne.mG)(e,oe(t),{},r)}((0,ae.ZA)(n.layer),{wfsGetFeature:l}).switchMap((function(e){var t,r,n;if(Q().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 k.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(le.ZOOM_TO_EXTENT_HOOK);return a&&a(o,{crs:"EPSG:4326",maxZoom:21}),k.Observable.of({loading:!1})})).startWith({loading:!0}).catch((function(e){return k.Observable.of({error:"error getting bounds from filter",details:e})}))}return k.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,ce.t8)("loading",r,n)}))})))));var fe=r(13311),ge=r.n(fe),ve=r(43378);function me(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 ye(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?me(Object(r),!0).forEach((function(t){be(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):me(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function be(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const he=(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||!ee()(n,a.dependencies)||!ee()(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=ge()(c.layers,{name:l})||{},s={},d={},p=void 0;return t&&!Y()(u)&&(n.quickFilters&&(s=ye(ye({},s),(0,te.r$)(i,n.quickFilters,n.options))),n.filter&&(s=ye(ye({},s),(0,ie.composeAttributeFilters)([s,n.filter]))),!Y()(s)&&(0,ie.toCQLFilter)(s))?(p=(0,ie.toCQLFilter)(s),d=(0,ce.cc)(!1,ye(ye({},u),{},{params:(0,ve.v)({params:{CQL_FILTER:p}},u&&u.params&&u.params.CQL_FILTER)}),{name:l},c.layers),{map:ye(ye({},c),{},{layers:d})}):(d=c.layers.map((function(e){return ye(ye({},e),{},{params:ye(ye({},e.params),{},{CQL_FILTER:void 0})})})),{map:ye(ye({},c),{},{layers:d})})}))),Oe=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,ce.t8)(e,i[e],r):r}})))};var we=r(57588),je=["data"];function Pe(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 Ee(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Pe(Object(r),!0).forEach((function(t){Se(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Se(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function De(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 Ce=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.data,r=void 0===t?[]:t,n=De(e,je),i=Object.keys(r.reduce((function(e,t){return Ee(Ee({},e),t)}),{}));return o().createElement("div",{className:"mapstore-widget-table"},o().createElement(we.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 Te=r(96259),ke=r(73014),xe=r(42415),Ze=r(39837),Fe=r(28315),Re=(0,ke.Z)()((0,xe.Z)((0,Ze.Z)(Fe.Z)));const Ie=function(e){return o().createElement("div",{className:"mapstore-widget-chart"},o().createElement(Te.Z,null,o().createElement(Re,e)))};var Me=r(5346),Ne=r(65539),Le=r(72688);const Ge=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,d=e.onDelete,p=void 0===d?function(){}:d,f=e.icons,g=e.topLeftItems,v=e.topRightItems,m=e.headerStyle,y=void 0===m?{}:m,b=e.children;return o().createElement("div",{className:"mapstore-widget-card",id:t},o().createElement(Ne.Z,{className:a,header:o().createElement("div",{style:y,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"},v)))},b),i?o().createElement(Le.Z,{confirmText:o().createElement(Me.Z,{msgId:"widgets.widget.menu.delete"}),titleText:o().createElement(Me.Z,{msgId:"widgets.widget.menu.delete"}),body:o().createElement(Me.Z,{msgId:"widgets.widget.menu.confirmDelete"}),show:i,onClose:function(){return s(!1)},onConfirm:function(){return p(t)}}):null)};var Ae=["id","title","description","headerStyle","data","series","loading","icons","showTable","topRightItems","confirmDelete","dataGrid","onDelete","toggleTableView","toggleDeleteConfirm"];function ze(){return(ze=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}).apply(this,arguments)}var _e=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(we.Glyphicon,{onClick:function(){n()},glyph:"arrow-left pull-left"}):null};var We=r(82030),Ve=r(99707),qe=(0,We.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"}}),Ve.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}})})),Be=r(57557),He=r.n(Be),Ue=r(75480),$e=r(92936),Ke=["layers"];function Qe(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 Je(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Qe(Object(r),!0).forEach((function(t){Ye(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ye(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Xe=(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,Ke);return r("map",t,"merge")}}})($e.Z),et=r(18027);function tt(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 rt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?tt(Object(r),!0).forEach((function(t){nt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function nt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ot=(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&&ge()(e.options.propertyName,(function(t){return t===e.attributeName}))&&t[e.attributeName]||{},n=r&&(r.rawValue||r.value);return rt(rt({},e),{},{value:n})}))}))),it=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}),ot)((0,et.Q)(r,{name:n}))},at=(0,i.compose)((0,i.mapPropsStream)((function(e){return e.map((function(t){return rt(rt({},t),{},{quickFilterStream$:e.pluck("quickFilters").distinctUntilChanged()})}))}))),ct=(0,i.compose)(at,(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,N.Lo)(t).reduce((function(e,t){var o=t.localType,i=t.name,a=it({options:r,localType:o,attributeName:i,quickFilterStream$:n});return rt(rt({},e),{},nt({},i,a))}),{})}:{}}))),lt=r(30029),ut=r(93358),st=(0,xe.Z)((0,ke.Z)((function(e){return!e.describeFeatureType}))(ut.Z));const dt=ct((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,d=e.topRightItems,p=e.toggleDeleteConfirm,f=void 0===p?function(){}:p,g=e.onDelete,v=void 0===g?function(){}:g,m=e.gridEvents,y=void 0===m?function(){}:m,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,T=void 0===C?{}:C,k=e.dataGrid,x=void 0===k?{}:k,Z=e.virtualScroll,F=void 0===Z||Z;return o().createElement(Ge,{id:"widget-chart-".concat(t),title:r,headerStyle:u,icons:s,isDraggable:x.isDraggable,confirmDelete:a,onDelete:v,toggleDeleteConfirm:f,topRightItems:d},o().createElement(Ne.Z,{footer:T.totalFeatures?o().createElement("div",{style:{height:"30px",overflow:"hidden"}},n?o().createElement("span",{style:{float:"right"}},o().createElement(Ue.Z,null)):null,void 0===D&&o().createElement("span",{style:{float:"left",margin:"5px"}},o().createElement(Me.Z,{msgId:"featuregrid.resultInfoVirtual",msgParams:{total:T.totalFeatures}}))):null},o().createElement(st,{emptyRowsView:function(){return o().createElement(lt.Z,{loading:n},o().createElement(Ve.Z,{messageId:"featuregrid.noFeaturesAvailable",glyph:"features-grid"}))},gridEvents:y,sortable:!0,defaultSize:!1,columnSettings:j,pageEvents:h,virtualScroll:F,enableColumnFilters:l,filterRenderers:w,features:P,pages:S,error:D,size:E,rowKey:"id",describeFeatureType:O,pagination:T})))}));var pt=r(80844),ft=["id","title","description","data","series","loading","showTable","confirmDelete","headerStyle","icons","topRightItems","dataGrid","toggleTableView","toggleDeleteConfirm","onDelete"];function gt(){return(gt=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}).apply(this,arguments)}var vt=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(we.Glyphicon,{onClick:function(){n()},glyph:"arrow-left pull-left"}):null},mt=r(46173),yt=r(70919),bt=["toggleDeleteConfirm","id","title","icons","headerStyle","confirmDelete","topRightItems","dataGrid","onDelete"];function ht(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 Ot=(0,mt.Z)()(yt.Z),wt=(0,i.compose)($.Z,H.Z,U.Z,O.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,d=e.icons,p=e.showTable,f=e.topRightItems,g=e.confirmDelete,v=void 0!==g&&g,m=e.dataGrid,y=void 0===m?{}:m,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,Ae);return o().createElement(Ge,{id:"widget-chart-".concat(t),headerStyle:i,isDraggable:y.isDraggable,title:r,icons:d,topLeftItems:_e({loading:s,title:r,description:n,showTable:p,toggleTableView:w}),confirmDelete:v,onDelete:h,toggleDeleteConfirm:P,topRightItems:f},p?o().createElement(Ce,ze({data:c},E)):o().createElement(Ie,ze({id:t,isAnimationActive:!s,loading:s,data:c,series:u,iconFit:!0},E)))})),jt=(0,i.compose)(b)((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,d=e.dataGrid,p=void 0===d?{}:d,f=e.confirmDelete,g=void 0!==f&&f,v=e.onDelete,m=void 0===v?function(){}:v;return o().createElement(Ge,{id:"widget-text-".concat(a),title:c,confirmDelete:g,onDelete:m,toggleDeleteConfirm:r,headerStyle:u,isDraggable:p.isDraggable,icons:n,topLeftItems:i,topRightItems:s},o().createElement(qe,{text:l}))})),Pt=(0,i.compose)($.Z,he,Oe("center"),Oe("zoom"),pe,h)((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,d=e.mapStateSource,p=e.topRightItems,f=e.confirmDelete,g=void 0!==f&&f,v=e.loading,m=void 0!==v&&v,y=e.dataGrid,b=void 0===y?{}:y,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(Ge,{id:"widget-text-".concat(a),title:c,confirmDelete:g,onDelete:O,toggleDeleteConfirm:i,headerStyle:w,icons:u,topRightItems:p,isDraggable:b.isDraggable},o().createElement(Ne.Z,{footer:o().createElement("div",{style:{height:"30px",overflow:"hidden"}},m?o().createElement("span",{style:{float:"right"}},o().createElement(Ue.Z,null)):null)},o().createElement(Xe,{tools:C?["popup"]:[],updateProperty:r,id:a,map:Je({},He()(l,"mapStateSource")),mapStateSource:d,hookRegister:s,layers:l&&l.layers,options:{style:{margin:10,height:"calc(100% - 20px)"}},env:j})))})),Et=(0,i.compose)($.Z,U.Z,H.Z,B,m)(dt),St=(0,i.compose)($.Z,H.Z,U.Z,w.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,d=e.confirmDelete,p=void 0!==d&&d,f=e.headerStyle,g=e.icons,v=e.topRightItems,m=e.dataGrid,y=void 0===m?{}:m,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,ft);return o().createElement(Ge,{className:"counter-widget",id:"widget-chart-".concat(t),title:r,isDraggable:y.isDraggable,icons:g,topLeftItems:vt({loading:u,title:r,description:n,showTable:s,toggleTableView:h}),confirmDelete:p,onDelete:P,toggleDeleteConfirm:w,headerStyle:f,topRightItems:v},o().createElement(pt.Z,gt({id:t,isAnimationActive:!u,loading:u,data:a,series:l,iconFit:!0},E)))})),Dt=(0,i.compose)($.Z,y.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,d=e.dataGrid,p=void 0===d?{}:d,f=e.onDelete,g=void 0===f?function(){}:f,v=ht(e,bt);return o().createElement(Ge,{id:"widget-text-".concat(n),title:i,confirmDelete:u,onDelete:g,toggleDeleteConfirm:r,headerStyle:c,icons:a,topRightItems:s,isDraggable:p.isDraggable},o().createElement(Ot,v))})),Ct=["dependencies","toggleCollapse","exportCSV","exportImage","onDelete","onEdit"];function Tt(){return(Tt=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}).apply(this,arguments)}function kt(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 xt=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,d=e.onEdit,p=void 0===d?function(){}:d,f=kt(e,Ct);return"text"===f.widgetType?o().createElement(jt,Tt({},f,{toggleCollapse:n,onDelete:s,onEdit:p})):"table"===f.widgetType?o().createElement(Et,Tt({},f,{toggleCollapse:n,exportCSV:a,dependencies:t,onDelete:s,onEdit:p})):"counter"===f.widgetType?o().createElement(St,Tt({},f,{toggleCollapse:n,dependencies:t,onDelete:s,onEdit:p})):"map"===f.widgetType?o().createElement(Pt,Tt({},f,{toggleCollapse:n,dependencies:t,onDelete:s,onEdit:p})):"legend"===f.widgetType?o().createElement(Dt,Tt({},f,{toggleCollapse:n,dependencies:t,onDelete:s,onEdit:p})):o().createElement(wt,Tt({},f,{toggleCollapse:n,exportCSV:a,dependencies:t,exportImage:l,onDelete:s,onEdit:p}))}},88395:(e,t,r)=>{"use strict";r.d(t,{ZP:()=>z});var n=r(89255),o=r(66654),i=r.n(o),a=r(18721),c=r.n(a),l=r(27361),u=r.n(l),s=r(64721),d=r.n(s),p=r(18446),f=r.n(p),g=r(57557),v=r.n(g),m=r(14176),y=r.n(m),b=r(57579),h=r(81808),O=r(1757),w=r(80416),j=r(75110),P=r(24684),E=r(69293),S=r(55927),D=r(75982),C=r(78598),T=r(89077),k=r(17542),x=r.n(k),Z=r(59425),F=r.n(Z);function R(e){return function(e){if(Array.isArray(e))return I(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 I(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)?I(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 I(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 N(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(E.WC,E.a3,E.W5).startWith({type:h.ok}).switchMap((function(t){return t.type===E.WC?n.Observable.never():e})).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.type;return t===D.nk}))},A=function(e,t,r,o){return n.Observable.of((0,b.Rz)("mapSync",e),(0,b.Rz)("dependenciesMap",function(e,t,r){var n,o=r.dependenciesMap,a=r.mappings,c=["layer","filter","quickFilters","options"],l=["layers","viewport","zoom","center"],u=(b.oU.exec(t)||[])[1],s=y()(o,(function(e){return-1===e.indexOf(u)})),p=Object.keys(a).filter((function(e){return void 0!==a[e]})).reduce((function(e,r){return!i()(t,"map")&&d()(c,r)?N(N({},e),{},L({},r,"".concat(t,".").concat(a[r]))):i()(t,"map")?d()(l,r)?N(N({},e),{},L({},r,"map"===t?a[r]:"".concat(t,".").concat(a[r]))):N(N({},e),{},L({},r,"".concat(t.replace(".map",""),".").concat(a[r]))):e}),{});return e?N(N(N({},s),p),{},(L(n={},"dependenciesMap","".concat(t.replace(".map",""),".dependenciesMap")),L(n,"mapSync","".concat(t.replace(".map",""),".mapSync")),n)):v()(s,[Object.keys(a)])}(e,t,r)))};const z={exportWidgetData:function(e){return e.ofType(b.Km).do((function(e){var t=e.data,r=void 0===t?[]:t,n=e.title,o=void 0===n?"data":n;return x().json2csv(r,(function(e,t){return e?null:(0,C.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(h.ok,S.E9,b.Jm).map((function(){return(0,O.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 f()(R(e),R(t))})).map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(0,b._k)(e.reduce((function(e,t){var r,n,o=t.replace(".map","");return i()(t,"map")?N(N({},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)):N(N({},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,o=void 0===r?function(){}:r;return e.ofType(b.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):n.Observable.of((0,b.kr)(r,{availableDependencies:a})).merge(e.ofType(b.V5).filter((function(){return(0,O.xI)(o())})).switchMap((function(e){var t=e.widget,i=u()((0,O.r0)(o()),"availableDependencies").filter((function(e){return(b.oU.exec(e)||[])[1]===t.id}));return A(r,i[0],c,t.dependeciesMap).concat(n.Observable.of((0,b.kr)(!1,{})))})).takeUntil(e.ofType(D.nk).merge(e.filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.type,r=e.key;return t===b.Cz&&r===b.jv}))))):A(r,a[0],c)}))},clearWidgetsOnLocationChange:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.getState,o=void 0===r?function(){}:r;return e.ofType(h.ok).switchMap((function(){var t=(0,P.F)(o()).split("/"),r=t[t.length-1];return e.let(G).filter((function(){var e=(0,P.F)(o()).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?n.Observable.of((0,b.K4)()):n.Observable.empty()}))}))},exportWidgetImage:function(e){return e.ofType(b.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);F()(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,T.RP)(a.toDataURL("image/jpeg",1),"".concat(i,".jpg"),"image/jpeg")}})})).filter((function(){return!1}))},updateLayerOnLayerPropertiesChange:function(e,t){return e.ofType(w.yS).switchMap((function(e){var r,o=e.layer,i=e.newProperties,a=t.getState(),l=(0,j.CA)(a,o);return(r=n.Observable).of.apply(r,R(c()(i,"layerFilter")&&l?[(0,b.Ko)(l)]:[]))}))},updateLayerOnLoadingErrorChange:function(e,t){return e.ofType(w.x9,w.vs).groupBy((function(e){return e.layerId})).map((function(e){return e.switchMap((function(e){var r,o=e.layerId,i=t.getState(),a=(0,j.CA)(i,o);return(r=n.Observable).of.apply(r,R(a&&a.previousLoadingError!==a.loadingError?[(0,b.Ko)(a)]:[]))}))})).mergeAll()}}},75859:(e,t,r)=>{"use strict";r.d(t,{Z:()=>C});var n=r(57579),o=r(81808),i=r(55927),a=r(27418),c=r.n(a),l=r(28252),u=r.n(l),s=r(27361),d=r.n(s),p=r(13311),f=r.n(p),g=r(57557),v=r.n(g),m=r(66604),y=r.n(m),b=r(84596),h=r.n(b),O=r(61868);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()(d()(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=d()(t,"containers[".concat(n.VR,"].widgets"));if(s)return u()("containers[".concat(n.VR,"].widgets"),s.map((function(e){return d()(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 p=r.data;return u()("containers[".concat(n.VR,"]"),E({},p),t);case o.ok:var g=r.config||{},m=g.widgetsConfig;return u()("containers[".concat(n.VR,"]"),E({},m),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,T=void 0===C?{}:C;if(T.dataGrid&&T.dataGrid.static)return t;var k=d()(t,"containers[".concat(r.target,"].collapsed[").concat(T.id));if(k){var x=[].concat(w(d()(t,"containers[".concat(r.target,"].layout"),[])),w(h()(d()(k,"layout",[])))),Z=y()(d()(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()(d()(k,"layouts[".concat(t,"]"),[]))))}));return v()((0,O.qC)(u()("containers[".concat(r.target,"].layout"),x),u()("containers[".concat(r.target,"].layouts"),Z))(t),"containers[".concat(r.target,"].collapsed[").concat(T.id,"]"))}return u()("containers[".concat(r.target,"].collapsed[").concat(T.id,"]"),{layout:f()(d()(t,"containers[".concat(r.target,"].layout"),[]),{i:T.id}),layouts:y()(d()(t,"containers[".concat(r.target,"].layouts"),{}),(function(e){return f()(e,{i:T.id})}))},t);case n.ke:var F,R,I,M,N,L,G,A,z,_,W,V,q,B,H,U,$,K,Q=r.widget,J=null==t||null===(F=t.containers)||void 0===F||null===(R=F[r.target])||void 0===R?void 0:R.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!==(M=t.containers)&&void 0!==M&&null!==(N=M[r.target])&&void 0!==N&&null!==(L=N.collapsed)&&void 0!==L&&L[Q.id])return t;var Y={x:0,y:0,w:1,h:1},X=f()(null==t||null===(G=t.containers)||void 0===G||null===(A=G[r.target])||void 0===A?void 0:A.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===(z=t.containers)||void 0===z||null===(_=z[r.target])||void 0===_?void 0:_.layout,layouts:null==t||null===(W=t.containers)||void 0===W||null===(V=W[r.target])||void 0===V?void 0:V.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===(q=t.containers)||void 0===q||null===(B=q[r.target])||void 0===B||null===(H=B.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=d()(t,"containers[".concat(r.target,"].widgets"),[]).filter((function(e){return!e.dataGrid||!e.dataGrid.static})),re=te.filter((function(e){return d()(t,"containers[".concat(r.target,"].collapsed[").concat(e.id,"]"))})),ne=te.filter((function(e){return!d()(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}}}}]);