{"version":3,"sources":["components/map/ol-controls/filter-menu/FilterMenuControl.jsx","components/map/ol-map/ol-map-full/OLMapFull.jsx"],"names":["FilterMenuControl","Component","constructor","props","super","setLanguage","selectedFilterGroup","layerGroups","filter","lg","layers","some","l","layerChoice","lc","name","groupName","this","state","filterGroup","toggleFilterGroup","bind","componentDidUpdate","map","setVisibleLayers","group","setState","toggleLayerVisibility","newLayerChoices","layerToggledOn","includes","e","push","layerGroup","permitMultipleLayers","disableLayers","d","exclusiveGroups","forEach","onLayersChange","renderFilterGroup","filterOptions","customRenderer","React","createElement","key","type","className","onClick","label","concat","groupLabel","render","filterMenuOpen","id","g","OLMapFull","language","createRef","mapClickHandler","times","error","progressBar","taskFetchStations","taskFetchMetsWmts","taskFetchGeodata","progressBarHandler","addLoading","current","addDone","onMapLoaded","getMetsWmtsPromise","t","getGeoDataWmtsPromise","getStationsPromise","promise","values","prevProps","latitude","longitude","setTimeout","panTo","parseFloat","zoom","componentWillUnmount","cancel","evt","feature","forEachFeatureAtPixel","pixel","f","hitTolerance","station","get","getView","getZoom","ErrorMessage","header","Localization","mapErrorHeader","text","mapErrorMessage","OLMap","ref","center","mapClick","layer","TimeSliderControl","timeParam","onTimeSliderChange","OlProgressBar"],"mappings":"mIAAA,oCAIA,MAAMA,UAA0BC,YAC9BC,YAAYC,GACVC,MAAMD,GACNE,cACA,MAAMC,EAAsBH,EAAMI,YAAYC,OAAOC,GAAMA,EAAGC,OAAOC,KAAKC,GAAKT,EAAMU,YAAYF,KAAKG,GAAMA,IAAOF,EAAEG,QAAQ,GAAGC,UAChIC,KAAKC,MAAQ,CACXC,YAAab,GAGfW,KAAKG,kBAAoBH,KAAKG,kBAAkBC,KAAKJ,MAGvDK,qBACEL,KAAKd,MAAMoB,IAAIC,iBAAiBP,KAAKd,MAAMU,aAG7CO,kBAAkBK,GACZR,KAAKC,MAAMC,cAAgBM,EAC7BR,KAAKS,SAAS,CAAEP,YAAa,SAE7BF,KAAKS,SAAS,CAAEP,YAAa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iD,qBAE3BvB,IAAAC,cAAC5C,IAAiB,CAChBqD,eAAgBpC,KAAKd,MAAMkD,eAC3B9C,YAAaU,KAAKd,MAAMI,YACxBM,YAAaI,KAAKd,MAAMuG,MACxBnF,IAAKN,KAAKM,IAAI6C,QACd7B,eAAgBtB,KAAKd,MAAMoC,iBAG7BI,IAAAC,cAAC+D,IAAiB,CAChB/C,MAAO3C,KAAKC,MAAM0C,MAClBrC,IAAKN,KAAKM,IAAI6C,QACdwC,UAAW3F,KAAKd,MAAMyG,UACtBC,mBAAoB5F,KAAKd,MAAM0G,qBAGjClE,IAAAC,cAACkE,IAAa,CAACP,IAAKtF,KAAK6C,gBAMlBN","file":"static/js/11.1dff6da3.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport './FilterMenu.scss';\nimport { setLanguage } from 'languages/components/map/MapLan';\n\nclass FilterMenuControl extends Component {\n constructor(props) {\n super(props);\n setLanguage();\n const selectedFilterGroup = props.layerGroups.filter(lg => lg.layers.some(l => props.layerChoice.some(lc => lc === l.name)))[0].groupName;\n this.state = {\n filterGroup: selectedFilterGroup,\n };\n\n this.toggleFilterGroup = this.toggleFilterGroup.bind(this);\n }\n\n componentDidUpdate() {\n this.props.map.setVisibleLayers(this.props.layerChoice);\n }\n\n toggleFilterGroup(group) {\n if (this.state.filterGroup === group) {\n this.setState({ filterGroup: 'none' });\n } else {\n this.setState({ filterGroup: group });\n }\n }\n\n\n toggleLayerVisibility(name) {\n let newLayerChoices = this.props.layerChoice;\n let layerToggledOn = false;\n if (newLayerChoices.includes(name)) {\n newLayerChoices = newLayerChoices.filter(e => e !== name);\n } else {\n layerToggledOn = true;\n newLayerChoices.push(name);\n }\n if (layerToggledOn) {\n const layerGroup = this.props.layerGroups.filter(lg => lg.layers.some(l => l.name === name))[0];\n if (!layerGroup.permitMultipleLayers) {\n const disableLayers = layerGroup.layers.map(l => l.name).filter(l => l !== name);\n newLayerChoices = newLayerChoices.filter(l => !disableLayers.some(d => d === l));\n }\n this.props.layerGroups.filter(l => layerGroup.exclusiveGroups && layerGroup.exclusiveGroups.some(e => e === l.groupName)).forEach((e) => {\n const disableLayers = e.layers.map(l => l.name);\n newLayerChoices = newLayerChoices.filter(l => !disableLayers.some(d => d === l));\n });\n }\n this.props.onLayersChange(newLayerChoices);\n }\n\n renderFilterGroup(group) {\n let filterOptions = group.customRenderer && group.customRenderer();\n if (!filterOptions) {\n filterOptions = (\n