"use strict";(self.webpackChunkfrg_frontend=self.webpackChunkfrg_frontend||[]).push([[199],{75737:(e,t,s)=>{s.d(t,{Z:()=>O});var a=s(96156),r=s(67294),o=s(6304),i=s(4479),n=s(67930),c=s(98185),l=s(31219),p=s(20767),d=s(59797),u=s(15565),h=s(98361),m=s(35141),y=s(45697),v=s.n(y);class g extends r.PureComponent{constructor(...e){super(...e),(0,a.Z)(this,"getFocusedFeatureStyle",(e=>{const t=e.get("color"),s=`rgba(${t.r}, ${t.g}, ${t.b}, 1.0)`,a=new c.Z({color:s||"white"});return new l.ZP({stroke:i.Y$,fill:a})})),(0,a.Z)(this,"getSelectedFeatureStyle",(e=>{const t=e.get("color"),s=`rgba(${t.r}, ${t.g}, ${t.b}, 1.0)`,a=new c.Z({color:s||"white"});return new l.ZP({stroke:i.N4,fill:a})})),(0,a.Z)(this,"getSelectedFeatureFromServiceProviderLayer",(e=>(0,m.XC)(this.props.map,n.DM,e.id))),(0,a.Z)(this,"getSelectedServiceProviderOfficeStyle",(e=>new l.ZP({image:new d.Z({radius:50,stroke:new p.Z({color:"pink"}),fill:new c.Z({color:"red"})}),text:new u.Z({text:e.get("features").length.toString(),fill:new c.Z({color:"white"})})})))}render(){const{accessibilityByAirFocusedFeatures:e,selectedAccessibilityByAirFeature:t}=this.props,s=t?t.properties.closestServiceProviderOffice:null;let a=!1;this.props.accessibilityByAirDataLoadingStatus&&"completed"===this.props.accessibilityByAirDataLoadingStatus.dataLoadingStatus&&(a=!0);let o=!1;return this.props.serviceProvidersLayerDataLoadingStatus&&"completed"===this.props.serviceProvidersLayerDataLoadingStatus.dataLoadingStatus&&(o=!0),r.createElement(r.Fragment,null,i.Ur.includes(this.props.currentPopupPath)&&r.createElement(h.Z,{map:this.props.map,canStyle:a,layerName:i.ag,onStyleFocusedFeature:this.getFocusedFeatureStyle,onStyleSelectedFeature:this.getSelectedFeatureStyle,focusedFeatures:e,selectedFeature:t}),r.createElement(h.Z,{map:this.props.map,canStyle:o,layerName:n.DM,onStyleSelectedFeature:this.getSelectedServiceProviderOfficeStyle,focusedFeatures:null,selectedFeature:s,getSelectedFeature:this.getSelectedFeatureFromServiceProviderLayer}))}}g.propTypes={map:v().object.isRequired,accessibilityByAirFocusedFeatures:v().array,selectedAccessibilityByAirFeature:v().object};const C=(0,o.$j)((e=>({accessibilityByAirFocusedFeatures:e.components.mapclickhandler.featuresIndexedByLayerName[i.ag],selectedAccessibilityByAirFeature:e.components.mapclickhandler.selectedFeatureIndexedByLayerName[i.ag],currentPopupPath:e.components.olpopup.popupPath,serviceProvidersLayerDataLoadingStatus:e.components.notificationcontainer.dataLoadingStatuses.serviceproviderslayer,accessibilityByAirDataLoadingStatus:e.components.notificationcontainer.dataLoadingStatuses.accessibilitybyairgridlayer})))(g);var S=s(23279),A=s.n(S),L=s(14106),E=s(818),Z=s(81566),f=s(19807),b=s(7513),F=s(56462),P=s(74444),D=s(92434);class B extends r.PureComponent{constructor(e){super(e),(0,a.Z)(this,"strokeStyle",new p.Z({color:"rgba(0, 0, 0, 1.0)",width:.5})),(0,a.Z)(this,"languageCode",P.Z._language),(0,a.Z)(this,"zipNameKey",`zip_name_${this.languageCode}`),(0,a.Z)(this,"municipalityKey",`municipality_name_${this.languageCode}`),(0,a.Z)(this,"styleFeature",(e=>{const t=e.get("color"),s=`rgba(${t.r}, ${t.g}, ${t.b}, 1.0)`,a=new c.Z({color:s||"white"}),r=`${e.get(this.zipNameKey)}, ${e.get(this.municipalityKey)}`;return new l.ZP({stroke:this.strokeStyle,fill:a,text:(0,m.qz)(r)})})),(0,a.Z)(this,"handleLayerDataFetchSuccess",((e,t,s)=>{this.isUnMounted||t(e,JSON.parse(s))})),(0,a.Z)(this,"handleLayerDataFetchError",(()=>{this.props.dispatch((0,f.B0)("accessibilitybyairgridlayer","error","ERROR",P.Z.accessibilityByAirLoadingError))})),(0,a.Z)(this,"handleLayerDataFetchCanceled",(()=>{this.props.dispatch((0,f.B0)("accessibilitybyairgridlayer","error","ERROR",P.Z.accessibilityByAirLoadingCancel))})),(0,a.Z)(this,"fetchLayerFeaturesAsGeoJSON",((e,t,s)=>{if(this.isUnMounted)return;this.props.dispatch((0,f.B0)("accessibilitybyairgridlayer","loading","INFO",P.Z.accessibilityByAirLoadingInfo));const a={serviceProviderIDs:this.props.selectedServiceProviderIDs,selectedMunicipalities:this.props.selectedMunicipalities},{promise:r,request:o}=(0,b.tU)("POST",`${F.yx}/distancetoproviders/getGrids`,{headers:{"Content-Type":"application/json"}},JSON.stringify(a),null,this.handleLayerDataFetchCanceled);r.then((s=>this.handleLayerDataFetchSuccess(e,t,s))).catch((e=>this.handleLayerDataFetchError(e))),s(o)})),(0,a.Z)(this,"handleLayerLoadComplete",(e=>{this.props.dispatch((0,Z.$C)([(0,f.B0)("accessibilitybyairgridlayer","completed","SUCCESS",P.Z.accessibilityByAirLoadingSuccess),(0,D.MB)(e.matrix)]))})),(0,a.Z)(this,"componentWillUnmount",(()=>{this.cleanUp()})),(0,a.Z)(this,"cleanUp",(()=>{this.isUnMounted=!0,this.props.dispatch((0,f.Vh)("accessibilitybyairgridlayer"))}));const t=this.props.layerOrderIndexedByLayerName[i.ag];this.layerObject=new E.Z(this.props.map,{name:i.ag,renderMode:"image",opacity:.8,style:this.styleFeature,zIndex:t}),this.debouncedFetchLayerFeaturesAsGeoJSON=A()(this.fetchLayerFeaturesAsGeoJSON,500)}render(){return r.createElement(L.Z,{notificationKey:"accessibilitybyairgridlayer",layerObject:this.layerObject,onLayerLoadComplete:this.handleLayerLoadComplete,onShouldUpdateLayerFeatures:this.debouncedFetchLayerFeaturesAsGeoJSON,selectedServiceProviderIDs:this.props.selectedServiceProviderIDs,selectedMunicipalities:this.props.selectedMunicipalities})}}const T=(0,o.$j)((e=>({selectedServiceProviderIDs:e.filters.present[F.XG].values,selectedMunicipalities:e.filters.present[F.$7].values,layerOrderIndexedByLayerName:e.components.layerorderupdater.layerOrderIndexedByLayerName})))(B);var x=s(72653);class I extends r.PureComponent{constructor(...e){super(...e),(0,a.Z)(this,"componentWillUnmount",(()=>{this.props.dispatchBatchedActions([(0,D.kX)(),(0,x.Co)(i.ag),(0,x.u7)(i.ag)])}))}render(){return r.createElement(r.Fragment,null,r.createElement(T,{map:this.props.map}),r.createElement(C,{map:this.props.map}))}}const O=(0,o.$j)(null,(e=>({dispatchBatchedActions:t=>e((0,Z.$C)(t))})))(I)},52368:(e,t,s)=>{s.d(t,{Z:()=>Q});var a=s(67294),r=s(96156),o=s(4479),i=s(6304),n=s(17078),c=s(45697),l=s.n(c),p=s(74444),d=s(96757);class u extends a.PureComponent{render(){const{selectedFeature:e}=this.props;return a.createElement("div",null,a.createElement("label",null,p.Z.selectedGridPopulation),a.createElement("div",null,(0,d.wn)(e.properties.vaesto,0,0)),a.createElement("label",null,p.Z.selectedGridDistance),a.createElement("div",null,(0,d.wn)(e.properties.mindistancetonearestprovider,2,2)))}}u.propTypes={selectedFeature:l().object.isRequired};const h=(0,i.$j)((e=>({languageCode:e.components.languageselector.languageCode})))(u);var m=s(93379),y=s.n(m),v=s(7795),g=s.n(v),C=s(90569),S=s.n(C),A=s(3565),L=s.n(A),E=s(19216),Z=s.n(E),f=s(44589),b=s.n(f),F=s(12083),P={};P.styleTagTransform=b(),P.setAttributes=L(),P.insert=S().bind(null,"head"),P.domAPI=g(),P.insertStyleElement=Z(),y()(F.Z,P),F.Z&&F.Z.locals&&F.Z.locals;var D=s(75338),B=s(10700),T=s(56462);class x extends a.PureComponent{constructor(...e){super(...e),(0,r.Z)(this,"renderSelectableFeature",(e=>a.createElement("button",{className:"AccessibilityByAir-selectableFeature"},a.createElement("div",{className:"AccessibilityByAir-icon"},(0,B.j)(T.cy)),p.Z.populationGridLayerInteractionShowDistance)))}render(){return a.createElement(D.Z,{listItems:this.props.selectableFeatures,listItemRender:this.renderSelectableFeature,onListItemClicked:this.props.onFeatureSelected,languageCode:this.props.languageCode})}}x.propTypes={selectableFeatures:l().array.isRequired,onFeatureSelected:l().func};const I=(0,i.$j)((e=>({languageCode:e.components.languageselector.languageCode})))(x);var O=s(81566),N=s(69963),U=s(72653);class w extends a.PureComponent{constructor(...e){super(...e),(0,r.Z)(this,"componentDidUpdate",(e=>{e.currentPopupPath===o.LP&&"root"===this.props.currentPopupPath&&this.props.setSelectedAccessibilityByAirFeature(null),!0===e.popupOpen&&!1===this.props.popupOpen&&this.props.setSelectedAccessibilityByAirFeatureAndRemoveClickedFeaturesByLayerName(null,o.ag),e.featuresIndexedByLayerName!==this.props.featuresIndexedByLayerName&&(0,d.EY)(o.ag,this.props.featuresIndexedByLayerName)&&this.handleFeatureSelected(this.props.accessibilityByAirFocusedFeatures[0])})),(0,r.Z)(this,"handleFeatureSelected",(e=>{this.props.setSelectedAccessibilityByAirFeatureAndPopupPath(e,o.LP)}))}render(){return this.props.accessibilityByAirFocusedFeatures&&0!==this.props.accessibilityByAirFocusedFeatures.length?this.props.selectedAccessibilityByAirFeature?a.createElement(n.Z,{popupPath:o.LP},a.createElement(h,{selectedFeature:this.props.selectedAccessibilityByAirFeature})):a.createElement(n.Z,{popupPath:"root"},a.createElement(I,{selectableFeatures:this.props.accessibilityByAirFocusedFeatures,onFeatureSelected:this.handleFeatureSelected})):null}}w.propTypes={accessibilityByAirFocusedFeatures:l().array};const _=(0,i.$j)((e=>({featuresIndexedByLayerName:e.components.mapclickhandler.featuresIndexedByLayerName,accessibilityByAirFocusedFeatures:e.components.mapclickhandler.featuresIndexedByLayerName[o.ag],selectedAccessibilityByAirFeature:e.components.mapclickhandler.selectedFeatureIndexedByLayerName[o.ag],currentPopupPath:e.components.olpopup.popupPath,popupOpen:e.components.olpopup.open})),(e=>({setSelectedAccessibilityByAirFeature:t=>e((0,U.fI)(o.ag,t)),setSelectedAccessibilityByAirFeatureAndRemoveClickedFeaturesByLayerName:(t,s)=>e((0,O.$C)([(0,U.fI)(o.ag,t),(0,U.Co)(s)])),setSelectedAccessibilityByAirFeatureAndPopupPath:(t,s)=>e((0,O.$C)([(0,U.fI)(o.ag,t),(0,N.v2)(s)])),removeClickedFeaturesByLayerName:t=>e((0,U.Co)(t))})))(w);var R=s(88126),V={};V.styleTagTransform=b(),V.setAttributes=L(),V.insert=S().bind(null,"head"),V.domAPI=g(),V.insertStyleElement=Z(),y()(R.Z,V),R.Z&&R.Z.locals&&R.Z.locals;class k extends a.PureComponent{constructor(...e){super(...e),(0,r.Z)(this,"renderColumnHeader",(e=>{const t=e.name.split(" - "),s=`${(0,d.wn)(t[0],2,2)} - ${(0,d.wn)(t[1],2,2)}`;return a.createElement("th",{scope:"col",key:s,className:"ColorMatrix-cell"},s)})),(0,r.Z)(this,"renderColumnHeaders",(e=>a.createElement(a.Fragment,null,a.createElement("tr",null,a.createElement("td",null),a.createElement("th",{colSpan:e.length-1},p.Z.colorRowDistanceToNearestServiceProvider)),a.createElement("tr",null,a.createElement("th",null,p.Z.colorMatrixPeopleInGrid),e.map((e=>this.renderColumnHeader(e))))))),(0,r.Z)(this,"renderColumnOfARow",(e=>{const t=e.color,s=`rgba(${t.r}, ${t.g}, ${t.b}, 1.0)`,r=s+e.name;let i;const n=this.props.selectedFeatureIndexedByLayerName[o.ag];if(n){const e=n.properties.color;i=e.r===t.r&&e.g===t.g&&e.b===t.b?"ColorMatrix-cell-selected":"ColorMatrix-cell"}else i="ColorMatrix-cell";return a.createElement("td",{key:r,className:i,style:{backgroundColor:s}})})),(0,r.Z)(this,"renderRow",(e=>{const t=(0,d.jQ)(e.name,0,0);return a.createElement("tr",{key:t},a.createElement("th",{scope:"row",className:"ColorMatrix-cell"},t),e.columns.map((e=>this.renderColumnOfARow(e))))})),(0,r.Z)(this,"renderRows",(e=>e.map((e=>this.renderRow(e)))))}render(){return 0===this.props.colorMatrix.length?null:a.createElement("table",null,a.createElement("tbody",null,this.renderColumnHeaders(this.props.colorMatrix[0].columns),this.renderRows(this.props.colorMatrix)))}}k.propTypes={colorMatrix:l().array.isRequired};const G=(0,i.$j)((e=>({languageCode:e.components.languageselector.languageCode,selectedFeatureIndexedByLayerName:e.components.mapclickhandler.selectedFeatureIndexedByLayerName})))(k);var M=s(61267),j=s(80983),H=s(5108),$=s(57369),K=s(17503),z=s(78709),W=s(62813),q={};q.styleTagTransform=b(),q.setAttributes=L(),q.insert=S().bind(null,"head"),q.domAPI=g(),q.insertStyleElement=Z(),y()(W.Z,q),W.Z&&W.Z.locals&&W.Z.locals;class J extends a.PureComponent{constructor(...e){super(...e),(0,r.Z)(this,"componentDidMount",(()=>{this.props.openInfoAreaAndSetActiveTab(T.sR)}))}render(){return this.props.accessibilityByAirDataLoadingStatus?a.createElement(M.Z,{tabID:T.sR},a.createElement(j.Z,{loadingStatus:this.props.accessibilityByAirDataLoadingStatus.dataLoadingStatus,loadingContent:a.createElement(H.Z,{loadingText:this.props.accessibilityByAirDataLoadingStatus.dataLoadingNotificationMessage,displayAbortButton:!1}),actualContent:a.createElement(a.Fragment,null,a.createElement("h2",{className:"AccessibilityByAir-title"},p.Z.accessibilityByAirUIContainerLegendsColorMatrixTitle),a.createElement(G,{colorMatrix:this.props.colorMatrixData})),errorContent:a.createElement($.Z,{errorText:this.props.accessibilityByAirDataLoadingStatus.dataLoadingNotificationMessage,displayRefreshButton:!1})})):null}}const X=(0,i.$j)((e=>({colorMatrixData:e.views.accessibilitybyair.colorMatrixData,accessibilityByAirDataLoadingStatus:e.components.notificationcontainer.dataLoadingStatuses.accessibilitybyairgridlayer,languageCode:e.components.languageselector.languageCode})),(e=>({openInfoAreaAndSetActiveTab:t=>e((0,O.$C)([(0,K.Lt)(t),(0,z.r0)()]))})))(J);class Y extends a.PureComponent{render(){return a.createElement(a.Fragment,null,a.createElement(_,null),a.createElement(X,null))}}const Q=Y},4479:(e,t,s)=>{s.d(t,{LP:()=>i,N4:()=>c,Ur:()=>l,Y$:()=>n,ag:()=>r,fr:()=>o});var a=s(20767);const r="accessibilitybyair",o=[r],i="root/accessibilityairfeaturedetails",n=new a.Z({color:"orange",width:5}),c=new a.Z({color:"red",width:5}),l=["root",i]},92434:(e,t,s)=>{s.d(t,{Kb:()=>r,MB:()=>o,kX:()=>i,oe:()=>a});const a="SET_DISTANCE_TO_NEAREST_PROVIDER_MATRIX_DATA",r="CLEAR_ACCESSIBILITY_BY_AIR_DATA",o=e=>({type:a,colorMatrix:e}),i=()=>({type:r})},4618:(e,t,s)=>{s.d(t,{Z:()=>Z});var a=s(96156),r=s(67294),o=s(6304),i=s(28097),n=s(14106),c=s(818),l=s(19807),p=s(81566),d=s(7513),u=s(31219),h=s(98185),m=s(20767),y=s(56462),v=s(74444),g=s(54988),C=s(23279),S=s.n(C);class A extends r.PureComponent{constructor(e){super(e),(0,a.Z)(this,"strokeStyle",new m.Z({color:"rgba(0, 0, 0, 1.0)",width:.05})),(0,a.Z)(this,"styleFeature",(e=>{const t=e.get("color"),s=e.get("zIndex"),a=new h.Z({color:t||"white"});return new u.ZP({stroke:this.strokeStyle,fill:a,zIndex:s})})),(0,a.Z)(this,"handleLayerDataFetchSuccess",((e,t,s)=>{this.isUnMounted||t(e,JSON.parse(s))})),(0,a.Z)(this,"handleLayerDataFetchError",(()=>{this.props.setDataLoadingStatusByKey("accessibilitybyroad","error","ERROR",v.Z.accessibilityCatchmentDataLoadingError)})),(0,a.Z)(this,"handleLayerDataFetchCanceled",(()=>{this.props.setDataLoadingStatusByKey("accessibilitybyroad","error","ERROR",v.Z.accessibilityCatchmentDataLoadingCancel)})),(0,a.Z)(this,"fetchLayerFeaturesAsGeoJSON",((e,t,s)=>{if(this.isUnMounted)return;this.props.setDataLoadingStatusByKey("accessibilitybyroad","loading","INFO",v.Z.accessibilityCatchmentDataLoadingInfo);const a={serviceProviderIDs:this.props.selectedServiceProviderIDs},{promise:r,request:o}=(0,d.tU)("POST",`${y.yx}/catchments/getCatchments`,{headers:{"Content-Type":"application/json"}},JSON.stringify(a),null,this.handleLayerDataFetchCanceled);r.then((s=>this.handleLayerDataFetchSuccess(e,t,s))).catch((e=>this.handleLayerDataFetchError(e))),s(o)})),(0,a.Z)(this,"handleLayerLoadComplete",(e=>{this.props.setDataLoadingStatusByKeyAndLegendData("accessibilitybyroad","completed","SUCCESS",v.Z.accessibilityCatchmentDataLoadingSuccess,e.legendData)})),(0,a.Z)(this,"componentWillUnmount",(()=>{this.cleanUp()})),(0,a.Z)(this,"cleanUp",(()=>{this.isUnMounted=!0,this.props.dismissNotificationByKey("accessibilitybyroad")}));const t=this.props.layerOrderIndexedByLayerName[i.F];this.layerObject=new c.Z(this.props.map,{name:i.F,renderMode:"image",opacity:.8,style:this.styleFeature,zIndex:t}),this.debouncedFetchLayerFeaturesAsGeoJSON=S()(this.fetchLayerFeaturesAsGeoJSON,500)}render(){return r.createElement(n.Z,{notificationKey:"accessibilitybyroad",layerObject:this.layerObject,onLayerLoadComplete:this.handleLayerLoadComplete,onShouldUpdateLayerFeatures:this.debouncedFetchLayerFeaturesAsGeoJSON,selectedServiceProviderIDs:this.props.selectedServiceProviderIDs})}}const L=(0,o.$j)((e=>({selectedServiceProviderIDs:e.filters.present[y.XG].values,layerOrderIndexedByLayerName:e.components.layerorderupdater.layerOrderIndexedByLayerName})),(e=>({setDataLoadingStatusByKey:(t,s,a,r)=>e((0,l.B0)(t,s,a,r)),setDataLoadingStatusByKeyAndLegendData:(t,s,a,r,o)=>e((0,p.$C)([(0,g.td)(o),(0,l.B0)(t,s,a,r)])),dismissNotificationByKey:t=>e((0,l.Vh)(t))})))(A);class E extends r.PureComponent{constructor(...e){super(...e),(0,a.Z)(this,"componentWillUnmount",(()=>{this.props.clearAccessibilityByRoadData()}))}render(){return r.createElement(L,{map:this.props.map})}}const Z=(0,o.$j)(null,(e=>({clearAccessibilityByRoadData:()=>e((0,g.YG)())})))(E)},67441:(e,t,s)=>{s.d(t,{Z:()=>Z});var a=s(67294),r=s(96156),o=s(81566),i=s(6304),n=s(24757),c=s(74444),l=s(61267),p=s(80983),d=s(5108),u=s(57369),h=s(17503),m=s(78709),y=s(43605),v=s(54973),g=s(56462),C=s(7513),S=s(22913);class A extends a.PureComponent{constructor(...e){super(...e),(0,r.Z)(this,"state",{roadDataInfoFetchedAt:"",dataLoadingStatus:""}),(0,r.Z)(this,"componentDidMount",(()=>{this.props.openInfoAreaAndSetActiveTab(g.sR)})),(0,r.Z)(this,"handleRoadDataInfoFetched",(e=>{const t=JSON.parse(e);this.setState({dataLoadingStatus:"completed",roadDataInfoFetchedAt:t.data_fetched_at})})),(0,r.Z)(this,"fetchRoadDataInfo",((e,t,s)=>{this.setState({dataLoadingStatus:"loading"});const{promise:a,request:r}=(0,C.tU)("POST",`${g.yx}/system/geospatialdatainfo`,{headers:{"Content-Type":"application/json"}},JSON.stringify({id:"DigiroadK"}),null,null);a.then((s=>t(e,s))).catch((e=>this.setState({dataLoadingStatus:"error"}))),s(r)}))}render(){return this.props.dataLoadingStatuses.accessibilitybyroad?a.createElement(a.Fragment,null,a.createElement(S.Z,{notificationKey:"catchmentLegendContainer",canFetchData:!0,fetchData:this.fetchRoadDataInfo,handleFetchedDataCommit:this.handleRoadDataInfoFetched}),a.createElement(l.Z,{tabID:g.sR},a.createElement(p.Z,{loadingStatus:this.props.dataLoadingStatuses.accessibilitybyroad.dataLoadingStatus,loadingContent:a.createElement(d.Z,{loadingText:this.props.dataLoadingStatuses.accessibilitybyroad.dataLoadingNotificationMessage,displayAbortButton:!1}),actualContent:a.createElement(n.Z,{ranges:(0,y.y)(this.props.catchmentLegendData),rangeText:c.Z.accessibilityLegendText},a.createElement(v.Z,{showLabel:c.Z.accessibilityLegendAdditionalInfoShow,hideLabel:c.Z.accessibilityLegendAdditionalInfoHide},a.createElement("p",null,c.Z.formatString(c.Z.accessibilityLegendAdditionalInfo,this.state.roadDataInfoFetchedAt)))),errorContent:a.createElement(u.Z,{errorText:this.props.dataLoadingStatuses.accessibilitybyroad.dataLoadingNotificationMessage,displayRefreshButton:!1})}))):null}}const L=(0,i.$j)((e=>({catchmentLegendData:e.views.accessibilitybyroad.catchmentLegendData,dataLoadingStatuses:e.components.notificationcontainer.dataLoadingStatuses,languageCode:e.components.languageselector.languageCode})),(e=>({openInfoAreaAndSetActiveTab:t=>e((0,o.$C)([(0,h.Lt)(t),(0,m.r0)()]))})))(A);class E extends a.PureComponent{render(){return a.createElement(L,null)}}const Z=E},28097:(e,t,s)=>{s.d(t,{F:()=>a,p:()=>r});const a="accessibilitybyroad",r=[a]},54988:(e,t,s)=>{s.d(t,{$d:()=>a,YG:()=>i,td:()=>o,uS:()=>r});const a="SET_CATCHMENT_LEGEND_DATA",r="CLEAR_ACCESSIBILITY_BY_ROAD_DATA",o=e=>({type:a,catchmentLegendData:e}),i=()=>({type:r})},91825:(e,t,s)=>{s.d(t,{Z:()=>U});var a=s(96156),r=s(67294),o=s(6304),i=s(62450),n=s(14106),c=s(818),l=s(19807),p=s(7513),d=s(35141),u=s(31219),h=s(98185),m=s(20767),y=s(56462),v=s(74444);class g extends r.PureComponent{constructor(e){super(e),(0,a.Z)(this,"strokeStyle",new m.Z({color:"rgba(0, 0, 0, 1.0)",width:.5})),(0,a.Z)(this,"languageCode",v.Z._language),(0,a.Z)(this,"zipNameKey",`zip_name_${this.languageCode}`),(0,a.Z)(this,"municipalityKey",`municipality_name_${this.languageCode}`),(0,a.Z)(this,"styleFeature",(e=>{const t=e.get("color"),s=new h.Z({color:t||"white"}),a=`${e.get(this.zipNameKey)}, ${e.get(this.municipalityKey)}`;return new u.ZP({stroke:this.strokeStyle,fill:s,text:(0,d.qz)(a)})})),(0,a.Z)(this,"handleProgress",(e=>{if(this.isUnMounted)return;const t=(0,p.P6)(e);this.props.updateNotificationMessageByKey("customervisitslayer",`${v.Z.customerVisitsLayerLoadingText} ${t} %`)})),(0,a.Z)(this,"handleLayerDataFetchSuccess",((e,t,s)=>{this.isUnMounted||t(e,{features:JSON.parse(s)})})),(0,a.Z)(this,"handleLayerDataFetchError",(()=>{this.props.setDataLoadingStatusByKey("customervisitslayer","error","ERROR",v.Z.customerVisitsLayerLoadingTextError)})),(0,a.Z)(this,"handleLayerDataFetchCanceled",(()=>{this.props.setDataLoadingStatusByKey("customervisitslayer","error","ERROR",v.Z.customerVisitsLayerLoadingTextCancel)})),(0,a.Z)(this,"fetchLayerFeaturesAsGeoJSON",((e,t,s)=>{if(this.isUnMounted)return;this.props.setDataLoadingStatusByKey("customervisitslayer","loading","INFO",v.Z.customerVisitsLayerLoadingText);const a={headers:{"Cache-Control":`max-age=${i.YG}`}},{promise:r,request:o}=(0,p.tU)("GET",`${y.yx}/zipCodeAreas/getZipCodeAreasGeoJSON`,a,null,this.handleProgress,this.handleLayerDataFetchCanceled);r.then((s=>this.handleLayerDataFetchSuccess(e,t,s))).catch((e=>this.handleLayerDataFetchError(e))),s(o)})),(0,a.Z)(this,"handleLayerLoadComplete",(e=>{this.props.setDataLoadingStatusByKey("customervisitslayer","completed","SUCCESS",v.Z.customerVisitsLayerLoadingTextSuccess)})),(0,a.Z)(this,"componentWillUnmount",(()=>{this.cleanUp()})),(0,a.Z)(this,"cleanUp",(()=>{this.isUnMounted=!0,this.props.dismissNotificationByKey("customervisitslayer")}));const t=this.props.layerOrderIndexedByLayerName[i._C];this.layerObject=new c.Z(this.props.map,{name:i._C,renderMode:"image",opacity:.8,style:this.styleFeature,zIndex:t})}render(){return r.createElement(n.Z,{notificationKey:"customervisitslayer",layerObject:this.layerObject,onLayerLoadComplete:this.handleLayerLoadComplete,onShouldUpdateLayerFeatures:this.fetchLayerFeaturesAsGeoJSON})}}const C=(0,o.$j)((e=>({layerOrderIndexedByLayerName:e.components.layerorderupdater.layerOrderIndexedByLayerName})),(e=>({setDataLoadingStatusByKey:(t,s,a,r)=>e((0,l.B0)(t,s,a,r)),dismissNotificationByKey:t=>e((0,l.Vh)(t)),updateNotificationMessageByKey:(t,s)=>e((0,l.GA)(t,s))})))(g);var S=s(46014),A=s(23279),L=s.n(A),E=s(81566),Z=s(39515),f=s(96757),b=s(99055);class F extends r.PureComponent{constructor(e){super(e),(0,a.Z)(this,"handleLayerUpdateDataFetchSuccess",((e,t,s)=>{this.isUnMounted||t(e,JSON.parse(s))})),(0,a.Z)(this,"handleLayerUpdateDataFetchError",(()=>{this.props.dispatch((0,l.B0)("customervisitsdata","error","ERROR",v.Z.customerVisitsDataLoadingTextError))})),(0,a.Z)(this,"handleLayerUpdateDataFetchCanceled",(()=>{this.props.dispatch((0,l.B0)("customervisitsdata","error","ERROR",v.Z.customerVisitsDataLoadingTextCancel))})),(0,a.Z)(this,"fetchLayerUpdateData",((e,t,s)=>{if(this.isUnMounted||!this.props.from||!this.props.to)return;this.props.dispatch((0,l.B0)("customervisitsdata","loading","INFO",v.Z.customerVisitsDataLoadingText));const a=this.props.from.year(),r=this.props.from.month()+1,o=this.props.from.date(),i=this.props.to.year(),n=this.props.to.month()+1,c=this.props.to.date(),d={[y.qB]:this.props.isContactTypesSelectedAsCohortFilter},u={[y.XG]:this.props.isServiceProvidersSelectedAsDynamicFilter},h={fromYear:a,fromMonth:r,fromDay:o,toYear:i,toMonth:n,toDay:c,ageGroups:this.props.agegroups,genders:this.props.genders,areaMDCGroups:this.props.areamdcs,mainDiagnosisGroups:(0,f.Ss)(this.props.maindiagnoses,"value"),serviceUnits:this.props.serviceProviderIDs,eprGroups:this.props.eprgroups,basicServiceTypes:this.props.basicservicetypes,serviceTypes:this.props.servicetypes,servicegroups:this.props.servicegroups,municipalities:this.props.municipalities,valueType:this.props.valueType,contactTypes:this.props.contactTypes,cohortFilterStatus:d,zipCodes:this.props.zipCodes,urgencyTypes:this.props.urgencyTypes,thlndgGroups:this.props.thlndgGroups,thldgGroups:this.props.thldgGroups,visitKinds:this.props.visitKinds,personnelTypes:this.props.personnelTypes,sosServiceDuties:this.props.sosServiceDuties,sosServices:this.props.sosServices,serviceKinds:this.props.serviceKinds,dynamicFilterStatus:u},{promise:m,request:g}=(0,p.tU)("POST",`${y.yx}/customervisits/getCustomerVisitsData`,{headers:{"Content-Type":"application/json"}},JSON.stringify(h),null,this.handleLayerUpdateDataFetchCanceled);m.then((s=>this.handleLayerUpdateDataFetchSuccess(e,t,s))).catch((e=>this.handleLayerUpdateDataFetchError(e))),s(g)})),(0,a.Z)(this,"handleFeatureUpdateComplete",(e=>{const t=[(0,Z.WR)(e.legendData),(0,Z.xc)(e.dataDisplayPrecisions),(0,Z.Fp)(e.dataLimits),(0,l.B0)("customervisitsdata","completed","SUCCESS",v.Z.customerVisitsDataLoadingTextSuccess)];e.dynamicFilterValues&&e.dynamicFilterValues[y.XG]&&t.push((0,b.b3)(y.XG,e.dynamicFilterValues[y.XG])),this.props.dispatch((0,E.$C)(t))})),(0,a.Z)(this,"componentWillUnmount",(()=>{this.cleanUp()})),(0,a.Z)(this,"cleanUp",(()=>{this.isUnMounted=!0,this.props.dispatch((0,l.Vh)("customervisitsdata"))})),this.debouncedFetchLayerUpdateData=L()(this.fetchLayerUpdateData,500)}render(){let e=!1;return this.props.dataLoadingStatuses.customervisitslayer&&"completed"===this.props.dataLoadingStatuses.customervisitslayer.dataLoadingStatus&&(e=!0),r.createElement(S.Z,{notificationKey:"customervisitsdata",map:this.props.map,layerName:i._C,layerLoaded:e,from:this.props.from,to:this.props.to,genders:this.props.genders,ageGroups:this.props.agegroups,areamdcs:this.props.areamdcs,maindiagnoses:this.props.maindiagnoses,serviceProviderIDs:this.props.serviceProviderIDs,eprgroups:this.props.eprgroups,basicservicetypes:this.props.basicservicetypes,servicetypes:this.props.servicetypes,servicegroups:this.props.servicegroups,municipalities:this.props.municipalities,valueType:this.props.valueType,contactTypes:this.props.contactTypes,isContactTypesSelectedAsCohortFilter:this.props.isContactTypesSelectedAsCohortFilter,isServiceProvidersSelectedAsDynamicFilter:this.props.isServiceProvidersSelectedAsDynamicFilter,zipCodes:this.props.zipCodes,urgencyTypes:this.props.urgencyTypes,thlndgGroups:this.props.thlndgGroups,thldgGroups:this.props.thldgGroups,visitKinds:this.props.visitKinds,personnelTypes:this.props.personnelTypes,sosServiceDuties:this.props.sosServiceDuties,sosServices:this.props.sosServices,serviceKinds:this.props.serviceKinds,onShouldUpdateFeatureData:this.debouncedFetchLayerUpdateData,onFeatureUpdateComplete:this.handleFeatureUpdateComplete})}}const P=(0,o.$j)((e=>({dataLoadingStatuses:e.components.notificationcontainer.dataLoadingStatuses,from:e.filters.present[y.DU].from,to:e.filters.present[y.DU].to,genders:e.filters.present[y.d5].values,serviceProviderIDs:e.filters.present[y.XG].values,agegroups:e.filters.present[y.oG].values,areamdcs:e.filters.present[y.G1].values,maindiagnoses:e.filters.present[y.pA].values,eprgroups:e.filters.present[y.WJ].values,basicservicetypes:e.filters.present[y.e3].values,servicetypes:e.filters.present[y.xs].values,servicegroups:e.filters.present[y.M2].values,municipalities:e.filters.present[y.$7].values,valueType:e.filters.present[y.kY].selectedValue,contactTypes:e.filters.present[y.qB].values,isContactTypesSelectedAsCohortFilter:e.filters.present[y.qB].isSelectedAsCohortFilter,zipCodes:e.filters.present[y.Zt].values,urgencyTypes:e.filters.present[y.PR].values,thlndgGroups:e.filters.present[y.KB].values,thldgGroups:e.filters.present[y.fi].values,visitKinds:e.filters.present[y.WC].values,personnelTypes:e.filters.present[y.W$].values,sosServiceDuties:e.filters.present[y.Z].values,sosServices:e.filters.present[y._U].values,serviceKinds:e.filters.present[y.FC].values,isServiceProvidersSelectedAsDynamicFilter:e.filters.present[y.XG].isSelectedAsDynamicFilter})))(F);var D=s(98361),B=s(45697),T=s.n(B);class x extends r.PureComponent{constructor(...e){super(...e),(0,a.Z)(this,"getFocusedFeatureStyle",(e=>{const t=e.get("color"),s=new h.Z({color:t||"white"});return new u.ZP({stroke:i.kl,fill:s})})),(0,a.Z)(this,"getSelectedFeatureStyle",(e=>{const t=e.get("color"),s=new h.Z({color:t||"white"});return new u.ZP({stroke:i.g1,fill:s})}))}render(){const{customerVisitsFocusedFeatures:e,selectedCustomerVisitsFeature:t,customerVisitsLayerLoadingStatus:s}=this.props;let a=!1;return s&&"completed"===s.dataLoadingStatus&&(a=!0),i.Fy.includes(this.props.currentPopupPath)&&r.createElement(D.Z,{map:this.props.map,canStyle:a,layerName:i._C,onStyleFocusedFeature:this.getFocusedFeatureStyle,onStyleSelectedFeature:this.getSelectedFeatureStyle,focusedFeatures:e,selectedFeature:t})}}x.propTypes={map:T().object.isRequired,customerVisitsLayerLoadingStatus:T().object,customerVisitsFocusedFeatures:T().array,selectedCustomerVisitsFeature:T().object};const I=(0,o.$j)((e=>({customerVisitsLayerLoadingStatus:e.components.notificationcontainer.dataLoadingStatuses.customervisitslayer,customerVisitsFocusedFeatures:e.components.mapclickhandler.featuresIndexedByLayerName[i._C],selectedCustomerVisitsFeature:e.components.mapclickhandler.selectedFeatureIndexedByLayerName[i._C],currentPopupPath:e.components.olpopup.popupPath})))(x);var O=s(72653);class N extends r.PureComponent{constructor(...e){super(...e),(0,a.Z)(this,"componentWillUnmount",(()=>{this.props.dispatchBatchedActions([(0,Z.bC)(),(0,O.Co)(i._C),(0,O.u7)(i._C)])}))}render(){return r.createElement(r.Fragment,null,r.createElement(C,{map:this.props.map}),r.createElement(P,{map:this.props.map}),r.createElement(I,{map:this.props.map}))}}const U=(0,o.$j)(null,(e=>({dispatchBatchedActions:t=>e((0,E.$C)(t))})))(N)},33544:(e,t,s)=>{s.d(t,{Z:()=>J});var a=s(67294),r=s(96156),o=s(81566),i=s(6304),n=s(24757),c=s(74444),l=s(61267),p=s(80983),d=s(5108),u=s(57369),h=s(17503),m=s(78709),y=s(43605),v=s(56462);class g extends a.PureComponent{constructor(...e){super(...e),(0,r.Z)(this,"componentDidMount",(()=>{this.props.openInfoAreaAndSetActiveTab(v.sR)}))}render(){if(!this.props.customerVisitsDataLoadingStatus)return null;let e={[v.Mm]:c.Z.customerVisitsLegendTextAbsolute,[v.kX]:c.Z.customerVisitsLegendTextRelativeToPopulation,[v.jq]:c.Z.customerVisitsLegendTextCohortAbsolute}[this.props.customerVisitsLegendData.valueType];return e=e||c.Z.customerVisitsLegendTextRelativeToCustomers,a.createElement(l.Z,{tabID:v.sR},a.createElement(p.Z,{loadingStatus:this.props.customerVisitsDataLoadingStatus.dataLoadingStatus,loadingContent:a.createElement(d.Z,{loadingText:this.props.customerVisitsDataLoadingStatus.dataLoadingNotificationMessage,displayAbortButton:!1}),actualContent:a.createElement(n.Z,{ranges:(0,y.m)(this.props.customerVisitsLegendData.clusters,this.props.customerVisitsLegendData.precision.min,this.props.customerVisitsLegendData.precision.max),rangeText:Object.keys(this.props.customerVisitsLegendData.clusters).length>0?e:c.Z.customerVisitsNoResults}),errorContent:a.createElement(u.Z,{errorText:this.props.customerVisitsDataLoadingStatus.dataLoadingNotificationMessage,displayRefreshButton:!1})}))}}const C=(0,i.$j)((e=>({customerVisitsDataLoadingStatus:e.components.notificationcontainer.dataLoadingStatuses.customervisitsdata,customerVisitsLegendData:e.views.customervisits.customerVisitsLegendData,languageCode:e.components.languageselector.languageCode})),(e=>({openInfoAreaAndSetActiveTab:t=>e((0,o.$C)([(0,h.Lt)(t),(0,m.r0)()]))})))(g);var S=s(62450),A=s(17078),L=s(45697),E=s.n(L),Z=s(96757);class f extends a.PureComponent{constructor(...e){super(...e),(0,r.Z)(this,"formatNumberForDisplay",((e,t,s,a)=>{const r=e.properties[t];return 0===r?0:(0,Z.wn)(r,s[a].min,s[a].max)}))}render(){const{selectedFeature:e}=this.props,t=`zip_name_${this.props.languageCode}`,s=`municipality_name_${this.props.languageCode}`,r=this.props.dataLimits&&this.props.dataLimits.min?this.props.dataLimits.min:0,o=0===e.properties.visits,i=o?0===r?c.Z.customerVisitsLegendNoVisits:c.Z.formatString(c.Z.customerVisitsLegendTooFewVisits,r):"",n=o?i:this.formatNumberForDisplay(e,"visits",this.props.dataDisplayPrecisions,v.Mm),l=o?i:this.formatNumberForDisplay(e,"pop_rel_visits",this.props.dataDisplayPrecisions,v.kX),p=o?i:this.formatNumberForDisplay(e,"cust_rel_visits",this.props.dataDisplayPrecisions,v.nM),d=this.formatNumberForDisplay(e,"visits_cohort_percentage_share",this.props.dataDisplayPrecisions,v.jq),u=this.formatNumberForDisplay(e,"cohort_visits",this.props.dataDisplayPrecisions,v.Mm),h=o?i:`${u} / ${n} (${d} %)`;return a.createElement("div",null,a.createElement("label",null,c.Z.customerVisitsPopupZipCodeAreaLabel),a.createElement("div",null,e.properties.zip_code,","," ",e.properties[t],","," ",e.properties[s]),a.createElement("label",null,c.Z.customerVisitsPopupCustomerVisitsLabel),a.createElement("div",null,n),a.createElement("label",null,c.Z.customerVisitsPopupPopulationRelativeCustomerVisitsLabel),a.createElement("div",null,l),a.createElement("label",null,c.Z.customerVisitsPopupCustomerRelativeCustomerVisitsLabel),a.createElement("div",null,p),a.createElement("label",null,c.Z.customerVisitsPopupCohortCustomerVisitsLabel),a.createElement("div",null,h))}}f.propTypes={selectedFeature:E().object.isRequired};const b=(0,i.$j)((e=>({languageCode:e.components.languageselector.languageCode,dataDisplayPrecisions:e.views.customervisits.customerVisitsDataDisplayPrecisions,dataLimits:e.views.customervisits.customerVisitsDataLimits})))(f);var F=s(93379),P=s.n(F),D=s(7795),B=s.n(D),T=s(90569),x=s.n(T),I=s(3565),O=s.n(I),N=s(19216),U=s.n(N),w=s(44589),_=s.n(w),R=s(24027),V={};V.styleTagTransform=_(),V.setAttributes=O(),V.insert=x().bind(null,"head"),V.domAPI=B(),V.insertStyleElement=U(),P()(R.Z,V),R.Z&&R.Z.locals&&R.Z.locals;var k=s(75338),G=s(10700);class M extends a.PureComponent{constructor(...e){super(...e),(0,r.Z)(this,"renderSelectableFeature",(e=>{const t=`zip_name_${this.props.languageCode}`;return a.createElement("button",{className:"CustomerVisits-selectableFeature"},a.createElement("div",{className:"CustomerVisits-icon"},(0,G.j)(v.jH)),c.Z.formatString(c.Z.customerVisitsPopupShowCustomerVisitsInZipCodeArea,e.properties[t]))}))}render(){return a.createElement(k.Z,{listItems:this.props.selectableFeatures,listItemRender:this.renderSelectableFeature,onListItemClicked:this.props.onFeatureSelected,languageCode:this.props.languageCode})}}M.propTypes={selectableFeatures:E().array.isRequired,onFeatureSelected:E().func};const j=(0,i.$j)((e=>({languageCode:e.components.languageselector.languageCode})))(M);var H=s(69963),$=s(72653);class K extends a.PureComponent{constructor(...e){super(...e),(0,r.Z)(this,"componentDidUpdate",(e=>{e.currentPopupPath===S.sw&&"root"===this.props.currentPopupPath&&this.props.dispatch((0,$.fI)(S._C,null)),!0===e.popupOpen&&!1===this.props.popupOpen&&this.props.dispatch((0,o.$C)([(0,$.fI)(S._C,null),(0,$.Co)(S._C)])),e.featuresIndexedByLayerName!==this.props.featuresIndexedByLayerName&&(0,Z.EY)(S._C,this.props.featuresIndexedByLayerName)&&this.handleFeatureSelected(this.props.customerVisitsFocusedFeatures[0])})),(0,r.Z)(this,"handleFeatureSelected",(e=>{this.props.dispatch((0,o.$C)([(0,$.fI)(S._C,e),(0,H.v2)(S.sw)]))}))}render(){return this.props.customerVisitsFocusedFeatures&&0!==this.props.customerVisitsFocusedFeatures.length?this.props.selectedCustomerVisitsFeature?a.createElement(A.Z,{popupPath:S.sw},a.createElement(b,{selectedFeature:this.props.selectedCustomerVisitsFeature})):a.createElement(A.Z,{popupPath:"root"},a.createElement(j,{selectableFeatures:this.props.customerVisitsFocusedFeatures,onFeatureSelected:this.handleFeatureSelected})):null}}K.propTypes={featuresIndexedByLayerName:E().object.isRequired};const z=(0,i.$j)((e=>({featuresIndexedByLayerName:e.components.mapclickhandler.featuresIndexedByLayerName,customerVisitsFocusedFeatures:e.components.mapclickhandler.featuresIndexedByLayerName[S._C],selectedCustomerVisitsFeature:e.components.mapclickhandler.selectedFeatureIndexedByLayerName[S._C],currentPopupPath:e.components.olpopup.popupPath,popupOpen:e.components.olpopup.open})))(K);var W=s(63254);class q extends a.PureComponent{render(){return a.createElement(a.Fragment,null,a.createElement(W.C,null),a.createElement(C,null),a.createElement(z,null),a.createElement("div",{id:v.nk[v.i6].valueTypeSelectorContainerId}))}}q.propTypes={};const J=q},62450:(e,t,s)=>{s.d(t,{Fy:()=>c,YG:()=>d,_C:()=>o,g1:()=>p,kl:()=>l,sw:()=>n,yB:()=>i});var a=s(20767),r=s(67674);const o="customervisits",i=[o],n="root/customervisitsfeaturedetails",c=["root",n],l=new a.Z({color:"#c9e9fb",width:5}),p=new a.Z({color:r.H,width:5}),d=86400},39515:(e,t,s)=>{s.d(t,{Fp:()=>l,Hg:()=>o,Mp:()=>r,WR:()=>n,bC:()=>p,hc:()=>a,oN:()=>i,xc:()=>c});const a="SET_CUSTOMER_VISITS_LEGEND_DATA",r="SET_CUSTOMER_VISITS_DATA_DISPLAY_PRECISIONS",o="SET_CUSTOMER_VISITS_DATA_LIMITS",i="CLEAR_CUSTOMER_VISITS_DATA",n=e=>({type:a,legendData:e}),c=e=>({type:r,dataDisplayPrecisions:e}),l=e=>({type:o,dataLimits:e}),p=()=>({type:i})},85257:(e,t,s)=>{s.d(t,{Z:()=>U});var a=s(96156),r=s(67294),o=s(6304),i=s(47752),n=s(14106),c=s(818),l=s(19807),p=s(7513),d=s(35141),u=s(31219),h=s(98185),m=s(20767),y=s(56462),v=s(74444);class g extends r.PureComponent{constructor(e){super(e),(0,a.Z)(this,"strokeStyle",new m.Z({color:"rgba(0, 0, 0, 1.0)",width:.5})),(0,a.Z)(this,"languageCode",v.Z._language),(0,a.Z)(this,"zipNameKey",`zip_name_${this.languageCode}`),(0,a.Z)(this,"municipalityKey",`municipality_name_${this.languageCode}`),(0,a.Z)(this,"handleProgress",(e=>{if(this.isUnMounted)return;const t=(0,p.P6)(e);this.props.updateNotificationMessageByKey("customervolumeslayer",`${v.Z.customerVolumesLayerLoadingInfo} ${t} %`)})),(0,a.Z)(this,"styleFeature",(e=>{const t=e.get("color"),s=new h.Z({color:t||"white"}),a=`${e.get(this.zipNameKey)}, ${e.get(this.municipalityKey)}`;return new u.ZP({stroke:this.strokeStyle,fill:s,text:(0,d.qz)(a)})})),(0,a.Z)(this,"handleLayerDataFetchSuccess",((e,t,s)=>{this.isUnMounted||t(e,{features:JSON.parse(s)})})),(0,a.Z)(this,"handleLayerDataFetchError",(()=>{this.props.setDataLoadingStatusByKey("customervolumeslayer","error","ERROR",v.Z.customerVolumesLayerLoadingError)})),(0,a.Z)(this,"handleLayerDataFetchCanceled",(()=>{this.props.setDataLoadingStatusByKey("customervolumeslayer","error","ERROR",v.Z.customerVolumesLayerLoadingCancel)})),(0,a.Z)(this,"fetchLayerFeaturesAsGeoJSON",((e,t,s)=>{if(this.isUnMounted)return;this.props.setDataLoadingStatusByKey("customervolumeslayer","loading","INFO",v.Z.customerVolumesLayerLoadingInfo);const a={headers:{"Cache-Control":`max-age=${i.KV}`}},{promise:r,request:o}=(0,p.tU)("GET",`${y.yx}/zipCodeAreas/getZipCodeAreasGeoJSON`,a,null,this.handleProgress,this.handleLayerDataFetchCanceled);r.then((s=>this.handleLayerDataFetchSuccess(e,t,s))).catch((e=>this.handleLayerDataFetchError(e))),s(o)})),(0,a.Z)(this,"handleLayerLoadComplete",(()=>{this.props.setDataLoadingStatusByKey("customervolumeslayer","completed","SUCCESS",v.Z.customerVolumesLayerLoadingSuccess)})),(0,a.Z)(this,"componentWillUnmount",(()=>{this.cleanUp()})),(0,a.Z)(this,"cleanUp",(()=>{this.isUnMounted=!0,this.props.dismissNotificationByKey("customervolumeslayer")}));const t=this.props.layerOrderIndexedByLayerName[i.T9];this.layerObject=new c.Z(this.props.map,{name:i.T9,renderMode:"image",opacity:.8,style:this.styleFeature,zIndex:t})}render(){return r.createElement(n.Z,{notificationKey:"customervolumeslayer",layerObject:this.layerObject,onLayerLoadComplete:this.handleLayerLoadComplete,onShouldUpdateLayerFeatures:this.fetchLayerFeaturesAsGeoJSON})}}const C=(0,o.$j)((e=>({layerOrderIndexedByLayerName:e.components.layerorderupdater.layerOrderIndexedByLayerName})),(e=>({setDataLoadingStatusByKey:(t,s,a,r)=>e((0,l.B0)(t,s,a,r)),dismissNotificationByKey:t=>e((0,l.Vh)(t)),updateNotificationMessageByKey:(t,s)=>e((0,l.GA)(t,s))})))(g);var S=s(46014),A=s(23279),L=s.n(A),E=s(81566),Z=s(58502),f=s(96757),b=s(99055);class F extends r.PureComponent{constructor(e){super(e),(0,a.Z)(this,"handleLayerUpdateDataFetchSuccess",((e,t,s)=>{this.isUnMounted||t(e,JSON.parse(s))})),(0,a.Z)(this,"handleLayerUpdateDataFetchError",(()=>{this.props.dispatch((0,l.B0)("customervolumesdata","error","ERROR",v.Z.customerVolumesLayerUpdaterLoadingError))})),(0,a.Z)(this,"handleLayerUpdateDataFetchCanceled",(()=>{this.props.dispatch((0,l.B0)("customervolumesdata","error","ERROR",v.Z.customerVolumesLayerUpdaterLoadingCancel))})),(0,a.Z)(this,"fetchLayerUpdateData",((e,t,s)=>{if(this.isUnMounted||!this.props.from||!this.props.to)return;this.props.dispatch((0,l.B0)("customervolumesdata","loading","INFO",v.Z.customerVolumesLayerUpdaterLoadingInfo));const a=this.props.from.year(),r=this.props.from.month()+1,o=this.props.from.date(),i=this.props.to.year(),n=this.props.to.month()+1,c=this.props.to.date(),d=(0,f.Ss)(this.props.maindiagnoses,"value"),u={[y.qB]:this.props.isContactTypesSelectedAsCohortFilter},h={[y.XG]:this.props.isServiceProvidersSelectedAsDynamicFilter},m={fromYear:a,fromMonth:r,fromDay:o,toYear:i,toMonth:n,toDay:c,ageGroups:this.props.agegroups,genders:this.props.genders,areaMDCGroups:this.props.areamdcs,mainDiagnosisGroups:d,serviceUnits:this.props.serviceProviderIDs,eprGroups:this.props.eprgroups,basicServiceTypes:this.props.basicservicetypes,serviceTypes:this.props.servicetypes,servicegroups:this.props.servicegroups,municipalities:this.props.municipalities,valueType:this.props.valueType,contactTypes:this.props.contactTypes,cohortFilterStatus:u,zipCodes:this.props.zipCodes,urgencyTypes:this.props.urgencyTypes,thlndgGroups:this.props.thlndgGroups,thldgGroups:this.props.thldgGroups,visitKinds:this.props.visitKinds,personnelTypes:this.props.personnelTypes,sosServiceDuties:this.props.sosServiceDuties,sosServices:this.props.sosServices,serviceKinds:this.props.serviceKinds,dynamicFilterStatus:h},{promise:g,request:C}=(0,p.tU)("POST",`${y.yx}/customervolumes/getCustomerVolumesData`,{headers:{"Content-Type":"application/json"}},JSON.stringify(m),null,this.handleLayerUpdateDataFetchCanceled);g.then((s=>this.handleLayerUpdateDataFetchSuccess(e,t,s))).catch((e=>this.handleLayerUpdateDataFetchError(e))),s(C)})),(0,a.Z)(this,"handleFeatureUpdateComplete",(e=>{const t=[(0,Z.OR)(e.legendData),(0,Z.q9)(e.dataDisplayPrecisions),(0,Z.UE)(e.dataLimits),(0,l.B0)("customervolumesdata","completed","SUCCESS",v.Z.customerVolumesLayerUpdaterLoadingSuccess)];e.dynamicFilterValues&&e.dynamicFilterValues[y.XG]&&t.push((0,b.b3)(y.XG,e.dynamicFilterValues[y.XG])),this.props.dispatch((0,E.$C)(t))})),(0,a.Z)(this,"componentWillUnmount",(()=>{this.cleanUp()})),(0,a.Z)(this,"cleanUp",(()=>{this.isUnMounted=!0,this.props.dispatch((0,l.Vh)("customervolumesdata"))})),this.debouncedFetchLayerUpdateData=L()(this.fetchLayerUpdateData,500)}render(){let e=!1;return this.props.customerVolumesZipCodeLayerLoadingStatus&&"completed"===this.props.customerVolumesZipCodeLayerLoadingStatus.dataLoadingStatus&&(e=!0),r.createElement(S.Z,{notificationKey:"customervolumesdata",map:this.props.map,layerName:i.T9,layerLoaded:e,from:this.props.from,to:this.props.to,genders:this.props.genders,ageGroups:this.props.agegroups,serviceProviderIDs:this.props.serviceProviderIDs,eprgroups:this.props.eprgroups,areamdcs:this.props.areamdcs,maindiagnoses:this.props.maindiagnoses,basicservicetypes:this.props.basicservicetypes,servicetypes:this.props.servicetypes,servicegroups:this.props.servicegroups,municipalities:this.props.municipalities,valueType:this.props.valueType,contactTypes:this.props.contactTypes,isContactTypesSelectedAsCohortFilter:this.props.isContactTypesSelectedAsCohortFilter,isServiceProvidersSelectedAsDynamicFilter:this.props.isServiceProvidersSelectedAsDynamicFilter,zipCodes:this.props.zipCodes,urgencyTypes:this.props.urgencyTypes,thlndgGroups:this.props.thlndgGroups,thldgGroups:this.props.thldgGroups,visitKinds:this.props.visitKinds,personnelTypes:this.props.personnelTypes,sosServiceDuties:this.props.sosServiceDuties,sosServices:this.props.sosServices,serviceKinds:this.props.serviceKinds,onShouldUpdateFeatureData:this.debouncedFetchLayerUpdateData,onFeatureUpdateComplete:this.handleFeatureUpdateComplete})}}const P=(0,o.$j)((e=>({customerVolumesZipCodeLayerLoadingStatus:e.components.notificationcontainer.dataLoadingStatuses.customervolumeslayer,from:e.filters.present[y.DU].from,to:e.filters.present[y.DU].to,genders:e.filters.present[y.d5].values,serviceProviderIDs:e.filters.present[y.XG].values,agegroups:e.filters.present[y.oG].values,areamdcs:e.filters.present[y.G1].values,maindiagnoses:e.filters.present[y.pA].values,eprgroups:e.filters.present[y.WJ].values,basicservicetypes:e.filters.present[y.e3].values,servicetypes:e.filters.present[y.xs].values,servicegroups:e.filters.present[y.M2].values,municipalities:e.filters.present[y.$7].values,valueType:e.filters.present[y.DO].selectedValue,contactTypes:e.filters.present[y.qB].values,isContactTypesSelectedAsCohortFilter:e.filters.present[y.qB].isSelectedAsCohortFilter,zipCodes:e.filters.present[y.Zt].values,urgencyTypes:e.filters.present[y.PR].values,thlndgGroups:e.filters.present[y.KB].values,thldgGroups:e.filters.present[y.fi].values,visitKinds:e.filters.present[y.WC].values,personnelTypes:e.filters.present[y.W$].values,sosServiceDuties:e.filters.present[y.Z].values,sosServices:e.filters.present[y._U].values,serviceKinds:e.filters.present[y.FC].values,isServiceProvidersSelectedAsDynamicFilter:e.filters.present[y.XG].isSelectedAsDynamicFilter})))(F);var D=s(98361),B=s(45697),T=s.n(B);class x extends r.PureComponent{constructor(...e){super(...e),(0,a.Z)(this,"getFocusedFeatureStyle",(e=>{const t=e.get("color"),s=new h.Z({color:t||"white"});return new u.ZP({stroke:i._L,fill:s})})),(0,a.Z)(this,"getSelectedFeatureStyle",(e=>{const t=e.get("color"),s=new h.Z({color:t||"white"});return new u.ZP({stroke:i.o4,fill:s})}))}render(){let e=!1;return this.props.customerVolumesLayerLoadingStatus&&"completed"===this.props.customerVolumesLayerLoadingStatus.dataLoadingStatus&&(e=!0),i.Zs.includes(this.props.currentPopupPath)&&r.createElement(D.Z,{canStyle:e,map:this.props.map,layerName:i.T9,onStyleFocusedFeature:this.getFocusedFeatureStyle,onStyleSelectedFeature:this.getSelectedFeatureStyle,focusedFeatures:this.props.customerVolumesFocusedFeatures,selectedFeature:this.props.selectedCustomerVolumesFeature})}}x.propTypes={map:T().object.isRequired,customerVolumesFocusedFeatures:T().array,selectedCustomerVolumesFeature:T().object};const I=(0,o.$j)((e=>({customerVolumesLayerLoadingStatus:e.components.notificationcontainer.dataLoadingStatuses.customervolumeslayer,customerVolumesFocusedFeatures:e.components.mapclickhandler.featuresIndexedByLayerName[i.T9],selectedCustomerVolumesFeature:e.components.mapclickhandler.selectedFeatureIndexedByLayerName[i.T9],currentPopupPath:e.components.olpopup.popupPath})))(x);var O=s(72653);class N extends r.PureComponent{constructor(...e){super(...e),(0,a.Z)(this,"componentWillUnmount",(()=>{this.props.dispatchBatchedActions([(0,Z.vf)(),(0,O.Co)(i.T9),(0,O.u7)(i.T9)])}))}render(){return r.createElement(r.Fragment,null,r.createElement(C,{map:this.props.map}),r.createElement(P,{map:this.props.map}),r.createElement(I,{map:this.props.map}))}}const U=(0,o.$j)(null,(e=>({dispatchBatchedActions:t=>e((0,E.$C)(t))})))(N)},55494:(e,t,s)=>{s.d(t,{Z:()=>J});var a=s(67294),r=s(96156),o=s(81566),i=s(6304),n=s(24757),c=s(74444),l=s(61267),p=s(80983),d=s(5108),u=s(57369),h=s(17503),m=s(78709),y=s(43605),v=s(56462);class g extends a.PureComponent{constructor(...e){super(...e),(0,r.Z)(this,"componentDidMount",(()=>{this.props.openInfoAreaAndSetActiveTab(v.sR)}))}render(){if(!this.props.customerVolumesDataLoadingStatus)return null;let e={[v.Mm]:c.Z.customerVolumesLegendTextAbsolute,[v.jq]:c.Z.customerVolumesLegendTextCohort}[this.props.customerVolumesLegendData.valueType];return e=e||c.Z.customerVolumesLegendTextRelativeToPopulation,a.createElement(l.Z,{tabID:v.sR},a.createElement(p.Z,{loadingStatus:this.props.customerVolumesDataLoadingStatus.dataLoadingStatus,loadingContent:a.createElement(d.Z,{loadingText:this.props.customerVolumesDataLoadingStatus.dataLoadingNotificationMessage,displayAbortButton:!1}),actualContent:a.createElement(n.Z,{ranges:(0,y.m)(this.props.customerVolumesLegendData.clusters,this.props.customerVolumesLegendData.precision.min,this.props.customerVolumesLegendData.precision.max),rangeText:Object.keys(this.props.customerVolumesLegendData.clusters).length>0?e:c.Z.customerVolumesLegendNoResults}),errorContent:a.createElement(u.Z,{errorText:this.props.customerVolumesDataLoadingStatus.dataLoadingNotificationMessage,displayRefreshButton:!1})}))}}const C=(0,i.$j)((e=>({customerVolumesDataLoadingStatus:e.components.notificationcontainer.dataLoadingStatuses.customervolumesdata,customerVolumesLegendData:e.views.customervolumes.customerVolumesLegendData,languageCode:e.components.languageselector.languageCode})),(e=>({openInfoAreaAndSetActiveTab:t=>e((0,o.$C)([(0,h.Lt)(t),(0,m.r0)()]))})))(g);var S=s(47752),A=s(17078),L=s(45697),E=s.n(L),Z=s(96757);class f extends a.PureComponent{constructor(...e){super(...e),(0,r.Z)(this,"formatNumberForDisplay",((e,t,s,a)=>{const r=e.properties[t];return 0===r?0:(0,Z.wn)(r,s[a].min,s[a].max)}))}render(){const{selectedFeature:e}=this.props,t=`zip_name_${this.props.languageCode}`,s=`municipality_name_${this.props.languageCode}`,r=this.props.dataLimits&&this.props.dataLimits.min?this.props.dataLimits.min:0,o=0===e.properties.volume,i=o?0===r?c.Z.customerVolumesLegendNoCustomers:c.Z.formatString(c.Z.customerVolumesLegendTooFewCustomers,r):"",n=o?i:this.formatNumberForDisplay(e,"volume",this.props.dataDisplayPrecisions,v.Mm),l=o?i:this.formatNumberForDisplay(e,"pop_rel_volume",this.props.dataDisplayPrecisions,v.kX),p=this.formatNumberForDisplay(e,"volume_cohort_percentage_share",this.props.dataDisplayPrecisions,v.jq),d=this.formatNumberForDisplay(e,"cohort_volume",this.props.dataDisplayPrecisions,v.Mm),u=o?i:`${d} / ${n} (${p} %)`;return a.createElement("div",null,a.createElement("label",null,c.Z.customerVolumesPopupZipCodeAreaLabel),a.createElement("div",null,e.properties.zip_code,","," ",e.properties[t],","," ",e.properties[s]),a.createElement("label",null,c.Z.customerVolumesPopupCustomerVolumesLabel),a.createElement("div",null,n),a.createElement("label",null,c.Z.customerVolumesPopupRelativeCustomerVolumesLabel),a.createElement("div",null,l),a.createElement("div",null),a.createElement("label",null,c.Z.customerVolumesPopupCohortCustomerVolumesLabel),a.createElement("div",null,u))}}f.propTypes={selectedFeature:E().object.isRequired};const b=(0,i.$j)((e=>({languageCode:e.components.languageselector.languageCode,dataDisplayPrecisions:e.views.customervolumes.customerVolumesDataDisplayPrecisions,dataLimits:e.views.customervolumes.customerVolumesDataLimits})))(f);var F=s(93379),P=s.n(F),D=s(7795),B=s.n(D),T=s(90569),x=s.n(T),I=s(3565),O=s.n(I),N=s(19216),U=s.n(N),w=s(44589),_=s.n(w),R=s(70403),V={};V.styleTagTransform=_(),V.setAttributes=O(),V.insert=x().bind(null,"head"),V.domAPI=B(),V.insertStyleElement=U(),P()(R.Z,V),R.Z&&R.Z.locals&&R.Z.locals;var k=s(75338),G=s(10700);class M extends a.PureComponent{constructor(...e){super(...e),(0,r.Z)(this,"renderSelectableFeature",(e=>{const t=`zip_name_${this.props.languageCode}`;return a.createElement("button",{className:"CustomerVolumes-selectableFeature"},a.createElement("div",{className:"CustomerVolumes-icon"},(0,G.j)(v.TZ)),c.Z.formatString(c.Z.customerVolumesPopupShowCustomerVolumesInZipCodeArea,e.properties[t]))}))}render(){return a.createElement(k.Z,{listItems:this.props.selectableFeatures,listItemRender:this.renderSelectableFeature,onListItemClicked:this.props.onFeatureSelected,languageCode:this.props.languageCode})}}M.propTypes={selectableFeatures:E().array.isRequired,onFeatureSelected:E().func};const j=(0,i.$j)((e=>({languageCode:e.components.languageselector.languageCode})))(M);var H=s(69963),$=s(72653);class K extends a.PureComponent{constructor(...e){super(...e),(0,r.Z)(this,"componentDidUpdate",(e=>{e.currentPopupPath===S.EG&&"root"===this.props.currentPopupPath&&this.props.dispatch((0,$.fI)(S.T9,null)),!0===e.popupOpen&&!1===this.props.popupOpen&&this.props.dispatch((0,o.$C)([(0,$.fI)(S.T9,null),(0,$.Co)(S.T9)])),e.featuresIndexedByLayerName!==this.props.featuresIndexedByLayerName&&(0,Z.EY)(S.T9,this.props.featuresIndexedByLayerName)&&this.handleFeatureSelected(this.props.customerVolumesFocusedFeatures[0])})),(0,r.Z)(this,"handleFeatureSelected",(e=>{this.props.dispatch((0,o.$C)([(0,$.fI)(S.T9,e),(0,H.v2)(S.EG)]))}))}render(){return this.props.customerVolumesFocusedFeatures&&0!==this.props.customerVolumesFocusedFeatures.length?this.props.selectedCustomerVolumesFeature?a.createElement(A.Z,{popupPath:S.EG},a.createElement(b,{selectedFeature:this.props.selectedCustomerVolumesFeature})):a.createElement(A.Z,{popupPath:"root"},a.createElement(j,{selectableFeatures:this.props.customerVolumesFocusedFeatures,onFeatureSelected:this.handleFeatureSelected})):null}}K.propTypes={customerVolumesFocusedFeatures:E().array};const z=(0,i.$j)((e=>({featuresIndexedByLayerName:e.components.mapclickhandler.featuresIndexedByLayerName,customerVolumesFocusedFeatures:e.components.mapclickhandler.featuresIndexedByLayerName[S.T9],selectedCustomerVolumesFeature:e.components.mapclickhandler.selectedFeatureIndexedByLayerName[S.T9],currentPopupPath:e.components.olpopup.popupPath,popupOpen:e.components.olpopup.open})))(K);var W=s(63254);class q extends a.PureComponent{render(){return a.createElement(a.Fragment,null,a.createElement(W.C,null),a.createElement(C,null),a.createElement(z,null),a.createElement("div",{id:v.nk[v.LN].valueTypeSelectorContainerId}))}}const J=q},47752:(e,t,s)=>{s.d(t,{EG:()=>n,KV:()=>d,T9:()=>o,Zs:()=>c,_L:()=>l,o4:()=>p,yX:()=>i});var a=s(20767),r=s(67674);const o="customervolumes",i=[o],n="root/customervolumesdetails",c=["root",n],l=new a.Z({color:"#c9e9fb",width:5}),p=new a.Z({color:r.H,width:5}),d=86400},58502:(e,t,s)=>{s.d(t,{OR:()=>c,UE:()=>p,ig:()=>r,ix:()=>i,kA:()=>o,q9:()=>l,vf:()=>d,xV:()=>n});var a=s(39515);const r="SET_CUSTOMER_VOLUMES_LEGEND_DATA",o="SET_CUSTOMER_VOLUMES_DATA_DISPLAY_PRECISIONS",i="SET_CUSTOMER_VOLUMES_DATA_LIMITS",n="CLEAR_CUSTOMER_VOLUMES_DATA",c=e=>({type:r,customerVolumesLegendData:e}),l=e=>({type:a.Mp,dataDisplayPrecisions:e}),p=e=>({type:i,dataLimits:e}),d=()=>({type:n})},59327:(e,t,s)=>{s.d(t,{Z:()=>se});var a=s(67294),r=s(96156),o=s(45697),i=s.n(o),n=s(6304),c=s(7513),l=s(56462),p=s(92345),d=s(81566),u=s(19807),h=s(82633);class m extends a.PureComponent{constructor(...e){super(...e),(0,r.Z)(this,"componentDidMount",(()=>{this.wmsTileLayer=new h.Z(this.props.map,this.props.layerName,this.props.zIndex,this.props.opacity,this.props.baseURL,this.props.minResolution,this.props.maxResolution,this.props.wmsRequestParameters)})),(0,r.Z)(this,"componentWillUnmount",(()=>{this.wmsTileLayer.cleanUp()}))}render(){return null}}m.propTypes={map:i().object.isRequired,layerName:i().string,zIndex:i().number,opacity:i().number,baseURL:i().string.isRequired,minResolution:i().number,maxResolution:i().number,wmsRequestParameters:i().object.isRequired};const y=m;var v=s(14106),g=s(818),C=s(31219),S=s(98185),A=s(20767),L=s(74444),E=s(67674);const Z=new A.Z({color:"#c9e9fb",width:5}),f=new A.Z({color:E.H,width:5});class b extends a.PureComponent{constructor(e){super(e),(0,r.Z)(this,"strokeStyle",new A.Z({color:"rgba(0, 0, 0, 1.0)",width:.5})),(0,r.Z)(this,"styleFeature",(e=>{const t=e.get("color"),s=new S.Z({color:t||"white"});return new C.ZP({stroke:this.strokeStyle,fill:s})})),(0,r.Z)(this,"handleProgress",(e=>{if(this.isUnMounted)return;const t=(0,c.P6)(e);this.props.updateNotificationMessageByKey("paavoptlayer",`${L.Z.paavoPTLayerLoadingInfo} ${t} %`)})),(0,r.Z)(this,"handleLayerDataFetchCanceled",(()=>{this.props.setDataLoadingStatusByKey("paavoptlayer","error","ERROR",L.Z.paavoPTLayerLoadingCancel)})),(0,r.Z)(this,"handleLayerDataFetchSuccess",((e,t,s)=>{this.isUnMounted||t(e,{features:JSON.parse(s)})})),(0,r.Z)(this,"handleLayerDataFetchError",(()=>{this.props.setDataLoadingStatusByKey("paavoptlayer","error","ERROR",L.Z.paavoPTLayerLoadingError)})),(0,r.Z)(this,"fetchLayerFeaturesAsGeoJSON",((e,t,s)=>{if(this.isUnMounted)return;this.props.setDataLoadingStatusByKey("paavoptlayer","loading","INFO",L.Z.paavoHELayerLoadingInfo);const{promise:a,request:r}=(0,c.tU)("GET",`${l.yx}/zipCodeAreas/getZipCodeAreasGeoJSON`,{headers:{"Cache-Control":"max-age=86400"}},null,this.handleProgress,this.handleLayerDataFetchCanceled);a.then((s=>this.handleLayerDataFetchSuccess(e,t,s))).catch((e=>this.handleLayerDataFetchError(e))),s(r)})),(0,r.Z)(this,"handleLayerLoadComplete",(()=>{this.props.setDataLoadingStatusByKey("paavoptlayer","completed","SUCCESS",L.Z.paavoPTLayerLoadingSuccess)})),(0,r.Z)(this,"componentWillUnmount",(()=>{this.cleanUp()})),(0,r.Z)(this,"cleanUp",(()=>{this.isUnMounted=!0,this.props.dismissNotificationByKey("paavoptlayer")}));const t=this.props.layerOrderIndexedByLayerName[this.props.layerName];this.layerObject=new g.Z(this.props.map,{name:this.props.layerName,renderMode:"image",opacity:.8,style:this.styleFeature,zIndex:t})}render(){return a.createElement(v.Z,{notificationKey:"paavoptlayer",layerObject:this.layerObject,onLayerLoadComplete:this.handleLayerLoadComplete,onShouldUpdateLayerFeatures:this.fetchLayerFeaturesAsGeoJSON})}}const F=(0,n.$j)((e=>({layerOrderIndexedByLayerName:e.components.layerorderupdater.layerOrderIndexedByLayerName})),(e=>({setDataLoadingStatusByKey:(t,s,a,r)=>e((0,u.B0)(t,s,a,r)),dismissNotificationByKey:t=>e((0,u.Vh)(t)),updateNotificationMessageByKey:(t,s)=>e((0,u.GA)(t,s))})))(b);var P=s(46014),D=s(23279),B=s.n(D),T=s(77787);class x extends a.PureComponent{constructor(e){super(e),(0,r.Z)(this,"handleLayerUpdateDataFetchSuccess",((e,t,s)=>{this.isUnMounted||t(e,JSON.parse(s))})),(0,r.Z)(this,"handleLayerUpdateDataFetchError",(()=>{this.props.dispatch((0,u.B0)("paavoptdata","error","ERROR",L.Z.paavoPTLayerUpdaterLoadingError))})),(0,r.Z)(this,"handleLayerDataFetchCanceled",(()=>{this.props.dispatch((0,u.B0)("paavoptdata","error","ERROR",L.Z.paavoPTLayerUpdaterLoadingCancel))})),(0,r.Z)(this,"fetchLayerUpdateData",((e,t,s)=>{if(this.isUnMounted)return;this.props.dispatch((0,u.B0)("paavoptdata","loading","INFO",L.Z.paavoPTLayerUpdaterLoadingInfo));const{promise:a,request:r}=(0,c.tU)("GET",`${l.yx}/paavo/getPaavoPT`,null,null,null,this.handleLayerDataFetchCanceled);a.then((s=>this.handleLayerUpdateDataFetchSuccess(e,t,s))).catch((e=>this.handleLayerUpdateDataFetchError(e))),s(r)})),(0,r.Z)(this,"handleFeatureUpdateComplete",(e=>{this.props.dispatch((0,d.$C)([(0,T.jO)(e.legendData),(0,u.B0)("paavoptdata","completed","SUCCESS",L.Z.paavoPTLayerUpdaterLoadingSuccess)]))})),(0,r.Z)(this,"componentWillUnmount",(()=>{this.cleanUp()})),(0,r.Z)(this,"cleanUp",(()=>{this.isUnMounted=!0,this.props.dispatch((0,u.Vh)("paavoptdata"))})),this.debouncedFetchLayerUpdateData=B()(this.fetchLayerUpdateData,500)}render(){let e=!1;return this.props.paavoPTLayerLoadingStatus&&"completed"===this.props.paavoPTLayerLoadingStatus.dataLoadingStatus&&(e=!0),a.createElement(P.Z,{map:this.props.map,layerName:this.props.layerName,layerLoaded:e,onShouldUpdateFeatureData:this.debouncedFetchLayerUpdateData,onFeatureUpdateComplete:this.handleFeatureUpdateComplete})}}const I=(0,n.$j)((e=>({paavoPTLayerLoadingStatus:e.components.notificationcontainer.dataLoadingStatuses.paavoptlayer})))(x);var O=s(98361);class N extends a.PureComponent{constructor(...e){super(...e),(0,r.Z)(this,"getFocusedFeatureStyle",(e=>{const t=e.get("color"),s=new S.Z({color:t||"white"});return new C.ZP({stroke:Z,fill:s})})),(0,r.Z)(this,"getSelectedFeatureStyle",(e=>{const t=e.get("color"),s=new S.Z({color:t||"white"});return new C.ZP({stroke:f,fill:s})}))}render(){let e=!1;return this.props.paavoPTLayerLoadingStatus&&"completed"===this.props.paavoPTLayerLoadingStatus.dataLoadingStatus&&(e=!0),a.createElement(O.Z,{map:this.props.map,canStyle:e,layerName:this.props.layerName,onStyleFocusedFeature:this.getFocusedFeatureStyle,onStyleSelectedFeature:this.getSelectedFeatureStyle,focusedFeatures:this.props.paavoPTFocusedFeatures,selectedFeature:this.props.selectedPaavoPTFeature})}}N.propTypes={map:i().object.isRequired,selectedPaavoPTFeature:i().object};const U=(0,n.$j)(((e,t)=>({paavoPTLayerLoadingStatus:e.components.notificationcontainer.dataLoadingStatuses.paavoptlayer,paavoPTFocusedFeatures:e.components.mapclickhandler.featuresIndexedByLayerName[t.layerName],selectedPaavoPTFeature:e.components.mapclickhandler.selectedFeatureIndexedByLayerName[t.layerName],currentPopupPath:e.components.olpopup.popupPath})))(N);var w=s(72653);class _ extends a.PureComponent{constructor(...e){super(...e),(0,r.Z)(this,"componentWillUnmount",(()=>{this.props.dispatchBatchedActions([(0,T.me)(),(0,w.Co)(this.props.layerName),(0,w.u7)(this.props.layerName)])}))}render(){return a.createElement(a.Fragment,null,a.createElement(F,{map:this.props.map,layerName:this.props.layerName}),a.createElement(I,{map:this.props.map,layerName:this.props.layerName}),a.createElement(U,{map:this.props.map,layerName:this.props.layerName}))}}const R=(0,n.$j)(null,(e=>({dispatchBatchedActions:t=>e((0,d.$C)(t))})))(_),V=new A.Z({color:"#c9e9fb",width:5}),k=new A.Z({color:E.H,width:5});class G extends a.PureComponent{constructor(e){super(e),(0,r.Z)(this,"strokeStyle",new A.Z({color:"rgba(0, 0, 0, 1.0)",width:.5})),(0,r.Z)(this,"styleFeature",(e=>{const t=e.get("color"),s=new S.Z({color:t||"white"});return new C.ZP({stroke:this.strokeStyle,fill:s})})),(0,r.Z)(this,"handleProgress",(e=>{if(this.isUnMounted)return;const t=(0,c.P6)(e);this.props.updateNotificationMessageByKey("paavohelayer",`${L.Z.paavoHELayerLoadingInfo} ${t} %`)})),(0,r.Z)(this,"handleLayerDataFetchCanceled",(()=>{this.props.setDataLoadingStatusByKey("paavohelayer","error","ERROR",L.Z.paavoHELayerLoadingCancel)})),(0,r.Z)(this,"handleLayerDataFetchSuccess",((e,t,s)=>{this.isUnMounted||t(e,{features:JSON.parse(s)})})),(0,r.Z)(this,"handleLayerDataFetchError",(()=>{this.props.setDataLoadingStatusByKey("paavohelayer","error","ERROR",L.Z.paavoHELayerLoadingError)})),(0,r.Z)(this,"fetchLayerFeaturesAsGeoJSON",((e,t,s)=>{if(this.isUnMounted)return;this.props.setDataLoadingStatusByKey("paavohelayer","loading","INFO",L.Z.paavoHELayerLoadingInfo);const{promise:a,request:r}=(0,c.tU)("GET",`${l.yx}/zipCodeAreas/getZipCodeAreasGeoJSON`,{headers:{"Cache-Control":"max-age=86400"}},null,this.handleProgress,this.handleLayerDataFetchCanceled);a.then((s=>this.handleLayerDataFetchSuccess(e,t,s))).catch((e=>this.handleLayerDataFetchError(e))),s(r)})),(0,r.Z)(this,"handleLayerLoadComplete",(e=>{this.props.setDataLoadingStatusByKey("paavohelayer","completed","SUCCESS",L.Z.paavoHELayerLoadingSuccess)})),(0,r.Z)(this,"componentWillUnmount",(()=>{this.cleanUp()})),(0,r.Z)(this,"cleanUp",(()=>{this.isUnMounted=!0,this.props.dismissNotificationByKey("paavohelayer")}));const t=this.props.layerOrderIndexedByLayerName[this.props.layerName];this.layerObject=new g.Z(this.props.map,{name:this.props.layerName,renderMode:"image",opacity:.8,style:this.styleFeature,zIndex:t})}render(){return a.createElement(v.Z,{notificationKey:"paavohelayer",layerObject:this.layerObject,onLayerLoadComplete:this.handleLayerLoadComplete,onShouldUpdateLayerFeatures:this.fetchLayerFeaturesAsGeoJSON})}}const M=(0,n.$j)((e=>({layerOrderIndexedByLayerName:e.components.layerorderupdater.layerOrderIndexedByLayerName})),(e=>({setDataLoadingStatusByKey:(t,s,a,r)=>e((0,u.B0)(t,s,a,r)),dismissNotificationByKey:t=>e((0,u.Vh)(t)),updateNotificationMessageByKey:(t,s)=>e((0,u.GA)(t,s))})))(G);var j=s(89492);class H extends a.PureComponent{constructor(e){super(e),(0,r.Z)(this,"handleLayerUpdateDataFetchSuccess",((e,t,s)=>{this.isUnMounted||t(e,JSON.parse(s))})),(0,r.Z)(this,"handleLayerUpdateDataFetchError",(()=>{this.props.dispatch((0,u.B0)("paavohedata","error","ERROR",L.Z.paavoHELayerUpdaterLoadingError))})),(0,r.Z)(this,"handleLayerUpdateDataFetchCanceled",(()=>{this.props.dispatch((0,u.B0)("paavohedata","error","ERROR",L.Z.paavoHELayerUpdaterLoadingCancel))})),(0,r.Z)(this,"fetchLayerUpdateData",((e,t,s)=>{if(this.isUnMounted)return;this.props.dispatch((0,u.B0)("paavohedata","loading","INFO",L.Z.paavoHELayerUpdaterLoadingInfo));const{promise:a,request:r}=(0,c.tU)("GET",`${l.yx}/paavo/getPaavoHE`,null,null,null,this.handleLayerUpdateDataFetchCanceled);a.then((s=>this.handleLayerUpdateDataFetchSuccess(e,t,s))).catch((e=>this.handleLayerUpdateDataFetchError(e))),s(r)})),(0,r.Z)(this,"handleFeatureUpdateComplete",(e=>{this.props.dispatch((0,d.$C)([(0,j.fW)(e.legendData),(0,u.B0)("paavohedata","completed","SUCCESS",L.Z.paavoHELayerUpdaterLoadingSuccess)]))})),(0,r.Z)(this,"componentWillUnmount",(()=>{this.cleanUp()})),(0,r.Z)(this,"cleanUp",(()=>{this.isUnMounted=!0,this.props.dispatch((0,u.Vh)("paavohedata"))})),this.debouncedFetchLayerUpdateData=B()(this.fetchLayerUpdateData,500)}render(){let e=!1;return this.props.paavoHELayerLoadingStatus&&"completed"===this.props.paavoHELayerLoadingStatus.dataLoadingStatus&&(e=!0),a.createElement(P.Z,{notificationKey:"paavohedata",map:this.props.map,layerName:this.props.layerName,layerLoaded:e,onShouldUpdateFeatureData:this.debouncedFetchLayerUpdateData,onFeatureUpdateComplete:this.handleFeatureUpdateComplete})}}const $=(0,n.$j)((e=>({paavoHELayerLoadingStatus:e.components.notificationcontainer.dataLoadingStatuses.paavohelayer})))(H);class K extends a.PureComponent{constructor(...e){super(...e),(0,r.Z)(this,"getFocusedFeatureStyle",(e=>{const t=e.get("color"),s=new S.Z({color:t||"white"});return new C.ZP({stroke:V,fill:s})})),(0,r.Z)(this,"getSelectedFeatureStyle",(e=>{const t=e.get("color"),s=new S.Z({color:t||"white"});return new C.ZP({stroke:k,fill:s})}))}render(){let e=!1;return this.props.paavoHELayerLoadingStatus&&"completed"===this.props.paavoHELayerLoadingStatus.dataLoadingStatus&&(e=!0),a.createElement(O.Z,{map:this.props.map,canStyle:e,layerName:this.props.layerName,onStyleFocusedFeature:this.getFocusedFeatureStyle,onStyleSelectedFeature:this.getSelectedFeatureStyle,focusedFeatures:this.props.paavoHEFocusedFeatures,selectedFeature:this.props.selectedPaavoHEFeature})}}K.propTypes={map:i().object.isRequired};const z=(0,n.$j)(((e,t)=>({paavoHELayerLoadingStatus:e.components.notificationcontainer.dataLoadingStatuses.paavohelayer,paavoHEFocusedFeatures:e.components.mapclickhandler.featuresIndexedByLayerName[t.layerName],selectedPaavoHEFeature:e.components.mapclickhandler.selectedFeatureIndexedByLayerName[t.layerName],currentPopupPath:e.components.olpopup.popupPath})))(K);class W extends a.PureComponent{constructor(...e){super(...e),(0,r.Z)(this,"componentWillUnmount",(()=>{this.props.dispatchBatchedActions([(0,j.p8)(),(0,w.Co)(this.props.layerName),(0,w.u7)(this.props.layerName)])}))}render(){return a.createElement(a.Fragment,null,a.createElement(M,{map:this.props.map,layerName:this.props.layerName}),a.createElement($,{map:this.props.map,layerName:this.props.layerName}),a.createElement(z,{map:this.props.map,layerName:this.props.layerName}))}}const q={extraBaseLayersPaavoPT:R,extraBaseLayersPaavoHE:(0,n.$j)(null,(e=>({dispatchBatchedActions:t=>e((0,d.$C)(t))})))(W)};class J extends a.PureComponent{constructor(...e){super(...e),(0,r.Z)(this,"renderSelectedBaseLayers",((e,t)=>e.map((e=>{const s=t.find((t=>t.value.toString()===e));if(!s)return null;const r=q[e];if(r)return a.createElement(r,{key:e,map:this.props.map,layerName:s.layer_name});const o=this.props.layerOrderIndexedByLayerName[s.layer_name];return a.createElement(y,{key:e,map:this.props.map,layerName:s.layer_name,zIndex:o,opacity:s.opacity,baseURL:s.url,maxResolution:s.max_resolution,wmsRequestParameters:s.wms_request_parameters})}))))}render(){return this.renderSelectedBaseLayers(this.props.selectedBaseLayerIDS,this.props.selectableBaseLayers)}}J.propTypes={map:i().object.isRequired,selectedBaseLayerIDS:i().array.isRequired,selectableBaseLayers:i().array.isRequired,layerOrderIndexedByLayerName:i().object};const X=J;var Y=s(22913);class Q extends a.PureComponent{constructor(...e){super(...e),(0,r.Z)(this,"fetchSelectableExtraBaseLayerData",((e,t,s)=>{if(this.isUnMounted)return;this.props.setDataLoadingStatusByKey("extrabaselayers_selectablelayers","loading","INFO",L.Z.extraBaseLayersDataLoadingInfo);const{promise:a,request:r}=(0,c.tU)("GET",`${l.yx}/extrabaselayers`,null,null,null,this.handleSelectableExtraBaseLayerDataFetchCanceled);a.then((s=>this.handleSelectableExtraBaseLayerDataFetchSuccess(e,t,s))).catch((e=>this.handleSelectableExtraBaseLayerDataFetchError(e))),s(r)})),(0,r.Z)(this,"handleSelectableExtraBaseLayerDataFetchSuccess",((e,t,s)=>{this.isUnMounted||t(e,JSON.parse(s))})),(0,r.Z)(this,"handleSelectableExtraBaseLayerDataFetchError",(()=>{this.props.setDataLoadingStatusByKey("extrabaselayers_selectablelayers","error","ERROR",L.Z.extraBaseLayersDataLoadingError)})),(0,r.Z)(this,"handleSelectableExtraBaseLayerDataFetchCanceled",(()=>{this.props.dispatch((0,u.B0)("extrabaselayers_selectablelayers","error","ERROR",L.Z.extraBaseLayersDataLoadingCancel))})),(0,r.Z)(this,"commitExtraBaseLayerData",(e=>{this.props.setExtraBaseLayersSelectableBaseLayersLoadingStatusAndSelectableExtraBaseLayers("extrabaselayers_selectablelayers","completed","SUCCESS",L.Z.extraBaseLayersDataLoadingSuccess,e)})),(0,r.Z)(this,"componentWillUnmount",(()=>{this.cleanUp()})),(0,r.Z)(this,"cleanUp",(()=>{this.isUnMounted=!0,this.props.dismissNotificationByKey("extrabaselayers_selectablelayers")}))}render(){return a.createElement(a.Fragment,null,a.createElement(Y.Z,{notificationKey:"extrabaselayers_selectablelayers",canFetchData:!0,fetchData:this.fetchSelectableExtraBaseLayerData,handleFetchedDataCommit:this.commitExtraBaseLayerData}),a.createElement(X,{map:this.props.map,selectedBaseLayerIDS:this.props.selectedExtraBaseLayers,selectableBaseLayers:this.props.selectableBaseLayers,layerOrderIndexedByLayerName:this.props.layerOrderIndexedByLayerName}))}}Q.propTypes={map:i().object.isRequired,selectedExtraBaseLayers:i().array.isRequired};const ee=(0,n.$j)((e=>({selectedExtraBaseLayers:e.views.extrabaselayers.selectedBaseLayerIDs,selectableBaseLayers:e.views.extrabaselayers.selectableBaseLayers,layerOrderIndexedByLayerName:e.components.layerorderupdater.layerOrderIndexedByLayerName})),(e=>({setDataLoadingStatusByKey:(t,s,a,r)=>e((0,u.B0)(t,s,a,r)),setExtraBaseLayersSelectableBaseLayersLoadingStatusAndSelectableExtraBaseLayers:(t,s,a,r,o)=>e((0,d.$C)([(0,u.B0)(t,s,a,r),(0,p._$)(o)])),dismissNotificationByKey:t=>e((0,u.Vh)(t))})))(Q);class te extends a.PureComponent{render(){return a.createElement(ee,{map:this.props.map})}}const se=te},7022:(e,t,s)=>{s.d(t,{Z:()=>_e});var a=s(67294),r=s(6304),o=s(45697),i=s.n(o),n=s(96156),c=s(81566),l=s(24757),p=s(74444),d=s(61267),u=s(80983),h=s(5108),m=s(57369),y=s(17503),v=s(78709),g=s(43605),C=s(54973),S=s(56462),A=s(7513),L=s(22913);class E extends a.PureComponent{constructor(...e){super(...e),(0,n.Z)(this,"state",{dataLoadingStatus:"",paavoPTDataFetchedAt:""}),(0,n.Z)(this,"componentDidMount",(()=>{this.props.openInfoAreaAndSetActiveTab(S.sR)})),(0,n.Z)(this,"handlePaavoPTDataInfoFetched",(e=>{const t=JSON.parse(e);this.setState({dataLoadingStatus:"completed",paavoPTDataFetchedAt:t.data_fetched_at})})),(0,n.Z)(this,"fetchPaavoPTDataInfo",((e,t,s)=>{this.setState({dataLoadingStatus:"loading"});const{promise:a,request:r}=(0,A.tU)("POST",`${S.yx}/system/geospatialdatainfo`,{headers:{"Content-Type":"application/json"}},JSON.stringify({id:"PaavoPT"}),null,null);a.then((s=>t(e,s))).catch((e=>this.setState({dataLoadingStatus:"error"}))),s(r)}))}render(){return this.props.paavoPTDataLoadingStatus?a.createElement(a.Fragment,null,a.createElement(L.Z,{notificationKey:"paavoPTLegendContainer",canFetchData:!0,fetchData:this.fetchPaavoPTDataInfo,handleFetchedDataCommit:this.handlePaavoPTDataInfoFetched}),a.createElement(d.Z,{tabID:S.sR},a.createElement(u.Z,{loadingStatus:this.props.paavoPTDataLoadingStatus.dataLoadingStatus,loadingContent:a.createElement(h.Z,{loadingText:this.props.paavoPTDataLoadingStatus.dataLoadingNotificationMessage,displayAbortButton:!1}),actualContent:a.createElement(l.Z,{ranges:(0,g.m)(this.props.paavoPTLegendData,2,2),rangeText:Object.keys(this.props.paavoPTLegendData).length>0?p.Z.paavoPTLegendText:p.Z.paavoPTLegendNoResults},a.createElement(C.Z,{showLabel:p.Z.paavoPTLegendTextSourceShow,hideLabel:p.Z.paavoPTLegendTextSourceHide},a.createElement("p",null,p.Z.formatString(p.Z.paavoPTLegendTextSource,this.state.paavoPTDataFetchedAt)))),errorContent:a.createElement(m.Z,{errorText:this.props.paavoPTDataLoadingStatus.dataLoadingNotificationMessage,displayRefreshButton:!1})}))):null}}const Z=(0,r.$j)((e=>({paavoPTDataLoadingStatus:e.components.notificationcontainer.dataLoadingStatuses.paavoptdata,paavoPTLegendData:e.views.paavopt.paavoPTLegendData,languageCode:e.components.languageselector.languageCode})),(e=>({openInfoAreaAndSetActiveTab:t=>e((0,c.$C)([(0,y.Lt)(t),(0,v.r0)()]))})))(E);var f=s(17078),b=s(93379),F=s.n(b),P=s(7795),D=s.n(P),B=s(90569),T=s.n(B),x=s(3565),I=s.n(x),O=s(19216),N=s.n(O),U=s(44589),w=s.n(U),_=s(81403),R={};R.styleTagTransform=w(),R.setAttributes=I(),R.insert=T().bind(null,"head"),R.domAPI=D(),R.insertStyleElement=N(),F()(_.Z,R),_.Z&&_.Z.locals&&_.Z.locals;var V=s(75338),k=s(10700);class G extends a.PureComponent{constructor(...e){super(...e),(0,n.Z)(this,"renderSelectableFeature",(e=>{const t=`zip_name_${this.props.languageCode}`;return a.createElement("button",{className:"PaavoPT-selectableFeature"},a.createElement("div",{className:"PaavoPT-icon"},(0,k.j)(S.QV)),p.Z.formatString(p.Z.paavoPTSelectableFeature,e.properties[t]))}))}render(){return a.createElement(V.Z,{listItems:this.props.selectableFeatures,listItemRender:this.renderSelectableFeature,onListItemClicked:this.props.onFeatureSelected,languageCode:this.props.languageCode})}}G.propTypes={selectableFeatures:i().array.isRequired,onFeatureSelected:i().func};const M=(0,r.$j)((e=>({languageCode:e.components.languageselector.languageCode})))(G);var j=s(69963),H=s(72653),$=s(60793),K={};K.styleTagTransform=w(),K.setAttributes=I(),K.insert=T().bind(null,"head"),K.domAPI=D(),K.insertStyleElement=N(),F()($.Z,K),$.Z&&$.Z.locals&&$.Z.locals;var z=s(24585),W=s(19807),q=s(94831),J=s(3023),X=s(75358),Y=s(14195),Q=s(65657),ee=s(53237),te=s(43815),se=s(96757),ae=s(14784);class re extends a.PureComponent{constructor(...e){super(...e),(0,n.Z)(this,"state",{dataLoadingStatus:"",paavoPTDataFetchedAt:"",populationTotal:null,paavoPTChartData:[]}),(0,n.Z)(this,"renderTooltip",((e,t,s)=>{const r=e.payload;if(!r||0===r.length)return null;const o=this.getYAxisValue(r),i=this.getXAxisValue(r);return a.createElement("div",{className:"PaavoPTTabContainer-tooltip"},a.createElement("label",null,t),a.createElement("div",null,o),a.createElement("label",null,s),a.createElement("div",null,i))})),(0,n.Z)(this,"getYAxisValue",(e=>{const t=e[0].payload.label_localization_key;return p.Z[t]})),(0,n.Z)(this,"getXAxisValue",(e=>(0,se.wn)(e[0].value,0,0))),(0,n.Z)(this,"renderPaavoPTTooltip",(e=>{const t=p.Z.paavoPTChartXAxisLabel,s=p.Z.paavoPTChartYAxisLabel;return this.renderTooltip(e,s,t)})),(0,n.Z)(this,"renderAdditionalPaavoPtInfo",(()=>a.createElement(a.Fragment,null,this.renderPaavoPtAdditionalInfoHeader(),a.createElement(C.Z,{showLabel:p.Z.paavoPTAdditionalInfoShow,hideLabel:p.Z.paavoPTAdditionalInfoHide},this.renderEmploymentPercentage(),this.renderZeroValuesInfo())))),(0,n.Z)(this,"renderPaavoPtAdditionalInfoHeader",(()=>a.createElement("h2",{className:"PaavoPTTabContainer-additionalPaavoPTInfoHeader"},p.Z.formatString(p.Z.paavoPTAdditionalInfo,this.state.paavoPTDataFetchedAt)))),(0,n.Z)(this,"renderEmploymentPercentage",(()=>null===this.props.selectedPaavoPTFeature.properties.employedPercentage||void 0===this.props.selectedPaavoPTFeature.properties.employedPercentage?null:a.createElement("p",null,p.Z.formatString(p.Z.paavoPTEmploymentPercentage,(0,se.wn)(this.props.selectedPaavoPTFeature.properties.employedPercentage,2,2))))),(0,n.Z)(this,"renderZeroValuesInfo",(()=>a.createElement("div",null,p.Z.paavoPTZeroValuesInfo,a.createElement("ul",null,a.createElement("li",null,p.Z.paavoPTZeroValueActual),a.createElement("li",null,p.Z.paavoPTZeroValueNotAvailable),a.createElement("li",null,p.Z.paavoPTZeroValueHidden))))),(0,n.Z)(this,"formatTick",(e=>p.Z[e])),(0,n.Z)(this,"renderChart",((e,t,s,r,o,i)=>a.createElement(q.v,{width:350,height:500,margin:{left:35,right:15,top:25,bottom:25},data:e,layout:"vertical",maxBarSize:20},a.createElement(J.K,{type:"number",label:{value:r,position:"bottom",fontWeight:"bold",offset:-5}}),a.createElement(X.B,{type:"category",tickFormatter:this.formatTick,dataKey:s,interval:0,label:{value:o,position:"top",fontWeight:"bold",offset:10},minTickGap:10}),a.createElement(Y.q,{strokeDasharray:"3 3"}),a.createElement(Q.u,{content:i}),a.createElement(ee.$,{dataKey:t},e.map(((e,t)=>a.createElement(te.b,{key:t,fill:e.color}))))))),(0,n.Z)(this,"handlePaavoPTChartDataFetchSuccess",((e,t,s)=>{this.isUnMounted||t(e,JSON.parse(s))})),(0,n.Z)(this,"handlePaavoPTChartDataFetchError",(()=>{this.setState({populationTotal:null,paavoPTChartData:[]}),this.props.dispatch((0,W.B0)("paavoPTChartData","error","ERROR",p.Z.paavoPTSelectedFeatureDataLoadingError))})),(0,n.Z)(this,"handlePaavoPTChartDataFetchCanceled",(()=>{this.setState({populationTotal:null,paavoPTChartData:[]}),this.props.dispatch((0,W.B0)("paavoPTChartData","error","ERROR",p.Z.paavoPTSelectedFeatureDataLoadingCancel))})),(0,n.Z)(this,"fetchPaavoPTChartData",((e,t,s)=>{if(this.isUnMounted)return;this.props.dispatch((0,W.B0)("paavoPTChartData","loading","INFO",p.Z.paavoPTSelectedFeatureDataLoadingInfo));const a={zipCode:this.props.selectedPaavoPTFeature.properties.zip_code},{promise:r,request:o}=(0,A.tU)("POST",`${S.yx}/paavo/getPaavoPTByZipCode`,{headers:{"Content-Type":"application/json"}},JSON.stringify(a));r.then((s=>this.handlePaavoPTChartDataFetchSuccess(e,t,s))).catch((e=>this.handlePaavoPTChartDataFetchError(e))),s(o)})),(0,n.Z)(this,"commitPaavoPTChartData",(e=>{this.setState({paavoPTChartData:e.paavo_pt_data}),this.props.dispatch((0,W.B0)("paavoPTChartData","completed","SUCCESS",p.Z.paavoPTSelectedFeatureDataLoadingSuccess))})),(0,n.Z)(this,"componentWillUnmount",(()=>{this.cleanUp()})),(0,n.Z)(this,"cleanUp",(()=>{this.isUnMounted=!0,this.props.dispatch((0,W.Vh)("paavoPTChartData"))})),(0,n.Z)(this,"renderHideableChart",(()=>a.createElement(C.Z,{showLabel:p.Z.paavoPTShowPlot,hideLabel:p.Z.paavoPTHidePlot},this.renderChart(this.state.paavoPTChartData,"count","label_localization_key",p.Z.paavoPTChartXAxisLabel,p.Z.paavoPTChartYAxisLabel,this.renderPaavoPTTooltip)))),(0,n.Z)(this,"renderErrorMessage",(()=>a.createElement(m.Z,{errorText:this.props.dataLoadingStatuses.paavoPTChartData.dataLoadingNotificationMessage,displayRefreshButton:!1}))),(0,n.Z)(this,"renderHideableChartOrErrorMessage",(()=>this.props.dataLoadingStatuses.paavoPTChartData?"error"===this.props.dataLoadingStatuses.paavoPTChartData.dataLoadingStatus?this.renderErrorMessage():this.renderHideableChart():null)),(0,n.Z)(this,"handlePaavoPTDataInfoFetched",(e=>{const t=JSON.parse(e);this.setState({dataLoadingStatus:"completed",paavoPTDataFetchedAt:t.data_fetched_at})})),(0,n.Z)(this,"fetchPaavoPTDataInfo",((e,t,s)=>{this.setState({dataLoadingStatus:"loading"});const{promise:a,request:r}=(0,A.tU)("POST",`${S.yx}/system/geospatialdatainfo`,{headers:{"Content-Type":"application/json"}},JSON.stringify({id:"PaavoPT"}),null,null);a.then((s=>t(e,s))).catch((e=>this.setState({dataLoadingStatus:"error"}))),s(r)}))}render(){const e={en:this.props.selectedPaavoPTFeature.properties.municipality_name_en,fi:this.props.selectedPaavoPTFeature.properties.municipality_name_fi,sv:this.props.selectedPaavoPTFeature.properties.municipality_name_sv},t={en:this.props.selectedPaavoPTFeature.properties.zip_name_en,fi:this.props.selectedPaavoPTFeature.properties.zip_name_fi,sv:this.props.selectedPaavoPTFeature.properties.zip_name_sv};return a.createElement(a.Fragment,null,a.createElement(L.Z,{notificationKey:"paavoPTChartData",canFetchData:!0,fetchData:this.fetchPaavoPTChartData,handleFetchedDataCommit:this.commitPaavoPTChartData,selectedPaavoPTFeature:this.props.selectedPaavoPTFeature}),a.createElement(L.Z,{notificationKey:"paavoPTTabDataInfo",canFetchData:!0,fetchData:this.fetchPaavoPTDataInfo,handleFetchedDataCommit:this.handlePaavoPTDataInfoFetched}),a.createElement(ae.Z,{tabID:S.b_}),a.createElement(d.Z,{tabID:S.b_},a.createElement(a.Fragment,null,a.createElement(z.Z,{localizedMunicipalityNames:e,localizedZipCodeNames:t,zipCodeNumber:this.props.selectedPaavoPTFeature.properties.zip_code,municipalityCode:this.props.selectedPaavoPTFeature.properties.municipality_code,renderAdditionalZipCodeInfo:this.renderAdditionalPaavoPtInfo}),this.renderHideableChartOrErrorMessage())))}}re.propTypes={};const oe=(0,r.$j)((e=>({languageCode:e.components.languageselector.languageCode,dataLoadingStatuses:e.components.notificationcontainer.dataLoadingStatuses})))(re);class ie extends a.PureComponent{constructor(...e){super(...e),(0,n.Z)(this,"componentDidUpdate",(e=>{!0!==e.popupOpen||!1!==this.props.popupOpen?e.featuresIndexedByLayerName!==this.props.featuresIndexedByLayerName&&(0,se.EY)(this.props.layerName,this.props.featuresIndexedByLayerName)&&this.handleFeatureSelected(this.props.paavoPTFocusedFeatures[0]):this.props.dispatch((0,H.Co)(this.props.layerName))})),(0,n.Z)(this,"handleFeatureSelected",(e=>{this.props.dispatch((0,c.$C)([(0,H.fI)(this.props.layerName,e),(0,j.j4)(),(0,y.Lt)(S.b_),(0,v.r0)(),(0,H.Co)(this.props.layerName)]))}))}render(){return a.createElement(a.Fragment,null,this.props.paavoPTFocusedFeatures&&0!==this.props.paavoPTFocusedFeatures.length&&a.createElement(f.Z,{popupPath:"root"},a.createElement(M,{selectableFeatures:this.props.paavoPTFocusedFeatures,onFeatureSelected:this.handleFeatureSelected})),this.props.selectedPaavoPTFeature&&a.createElement(oe,{selectedPaavoPTFeature:this.props.selectedPaavoPTFeature}))}}ie.propTypes={paavoPTFocusedFeatures:i().array};const ne=(0,r.$j)(((e,t)=>({featuresIndexedByLayerName:e.components.mapclickhandler.featuresIndexedByLayerName,paavoPTFocusedFeatures:e.components.mapclickhandler.featuresIndexedByLayerName[t.layerName],selectedPaavoPTFeature:e.components.mapclickhandler.selectedFeatureIndexedByLayerName[t.layerName],currentPopupPath:e.components.olpopup.popupPath,popupOpen:e.components.olpopup.open})))(ie);class ce extends a.PureComponent{render(){return a.createElement(a.Fragment,null,a.createElement(Z,null),a.createElement(ne,{layerName:this.props.layerName}))}}const le=ce;class pe extends a.PureComponent{constructor(...e){super(...e),(0,n.Z)(this,"state",{paavoHEDataFetchedAt:"",dataLoadingStatus:""}),(0,n.Z)(this,"componentDidMount",(()=>{this.props.openInfoAreaAndSetActiveTab(S.sR)})),(0,n.Z)(this,"handlePaavoHEDataInfoFetched",(e=>{const t=JSON.parse(e);this.setState({dataLoadingStatus:"completed",paavoHEDataFetchedAt:t.data_fetched_at})})),(0,n.Z)(this,"fetchPaavoHEDataInfo",((e,t,s)=>{this.setState({dataLoadingStatus:"loading"});const{promise:a,request:r}=(0,A.tU)("POST",`${S.yx}/system/geospatialdatainfo`,{headers:{"Content-Type":"application/json"}},JSON.stringify({id:"PaavoHE"}),null,null);a.then((s=>t(e,s))).catch((e=>this.setState({dataLoadingStatus:"error"}))),s(r)}))}render(){return this.props.paavoHEDataLoadingStatus?a.createElement(a.Fragment,null,a.createElement(L.Z,{notificationKey:"paavoHELegendContainer",canFetchData:!0,fetchData:this.fetchPaavoHEDataInfo,handleFetchedDataCommit:this.handlePaavoHEDataInfoFetched}),a.createElement(d.Z,{tabID:S.sR},a.createElement(u.Z,{loadingStatus:this.props.paavoHEDataLoadingStatus.dataLoadingStatus,loadingContent:a.createElement(h.Z,{loadingText:this.props.paavoHEDataLoadingStatus.dataLoadingNotificationMessage,displayAbortButton:!1}),actualContent:a.createElement(l.Z,{ranges:(0,g.m)(this.props.paavoHELegendData,0,0),rangeText:Object.keys(this.props.paavoHELegendData).length>0?p.Z.paavoHELegendText:p.Z.paavoHELegendNoResults},a.createElement(C.Z,{showLabel:p.Z.paavoHELegendTextSourceShow,hideLabel:p.Z.paavoHELegendTextSourceHide},a.createElement("p",null,p.Z.formatString(p.Z.paavoHELegendTextSource,this.state.paavoHEDataFetchedAt)))),errorContent:a.createElement(m.Z,{errorText:this.props.paavoHEDataLoadingStatus.dataLoadingNotificationMessage,displayRefreshButton:!1})}))):null}}const de=(0,r.$j)((e=>({paavoHEDataLoadingStatus:e.components.notificationcontainer.dataLoadingStatuses.paavohedata,paavoHELegendData:e.views.paavohe.paavoHELegendData,languageCode:e.components.languageselector.languageCode})),(e=>({openInfoAreaAndSetActiveTab:t=>e((0,c.$C)([(0,y.Lt)(t),(0,v.r0)()]))})))(pe);var ue=s(88040),he={};he.styleTagTransform=w(),he.setAttributes=I(),he.insert=T().bind(null,"head"),he.domAPI=D(),he.insertStyleElement=N(),F()(ue.Z,he),ue.Z&&ue.Z.locals&&ue.Z.locals;class me extends a.PureComponent{constructor(...e){super(...e),(0,n.Z)(this,"renderSelectableFeature",(e=>{const t=`zip_name_${this.props.languageCode}`;return a.createElement("button",{className:"PaavoHE-selectableFeature"},a.createElement("div",{className:"PaavoHE-icon"},(0,k.j)(S.sJ)),p.Z.formatString(p.Z.paavoHESelectableFeature,e.properties[t]))}))}render(){return a.createElement(V.Z,{listItems:this.props.selectableFeatures,listItemRender:this.renderSelectableFeature,onListItemClicked:this.props.onFeatureSelected,languageCode:this.props.languageCode})}}me.propTypes={selectableFeatures:i().array.isRequired,onFeatureSelected:i().func};const ye=(0,r.$j)((e=>({languageCode:e.components.languageselector.languageCode})))(me);var ve=s(88025),ge={};ge.styleTagTransform=w(),ge.setAttributes=I(),ge.insert=T().bind(null,"head"),ge.domAPI=D(),ge.insertStyleElement=N(),F()(ve.Z,ge),ve.Z&&ve.Z.locals&&ve.Z.locals;class Ce extends a.PureComponent{constructor(...e){super(...e),(0,n.Z)(this,"state",{dataLoadingStatus:"",paavoHEDataFetchedAt:"",populationTotal:null,ageAverage:null,paavoHEGenderDistributionChartData:[],paavoHEAgeDistributionChartData:[]}),(0,n.Z)(this,"renderTooltip",((e,t,s)=>{const r=e.payload;if(!r||0===r.length)return null;const o=this.getYAxisValue(r),i=this.getXAxisValue(r);return a.createElement("div",{className:"PaavoHETabContainer-tooltip"},a.createElement("label",null,t),a.createElement("div",null,o),a.createElement("label",null,s),a.createElement("div",null,i))})),(0,n.Z)(this,"getYAxisValue",(e=>{const t=e[0].payload.label_localization_key;return p.Z[t]})),(0,n.Z)(this,"getXAxisValue",(e=>(0,se.wn)(e[0].value,0,0))),(0,n.Z)(this,"renderGenderDistributionTooltip",(e=>{const t=p.Z.paavoHEGenderDistributionXAxisLabel,s=p.Z.paavoHEGenderDistributionYAXisLabel;return this.renderTooltip(e,s,t)})),(0,n.Z)(this,"renderAgeDistributionTooltip",(e=>{const t=p.Z.paavoHEAgeDistributionXAxisLabel,s=p.Z.paavoHEAgeDistributionYAXisLabel;return this.renderTooltip(e,s,t)})),(0,n.Z)(this,"renderAdditionalPaavoHeInfo",(()=>a.createElement(a.Fragment,null,this.renderPaavoHeAdditionalInfoHeader(),a.createElement(C.Z,{showLabel:p.Z.paavoHEAdditionalInfoShow,hideLabel:p.Z.paavoHEAdditionalInfoHide},this.renderTotalPopulation(),this.renderAgeAverage(),this.renderZeroValuesInfo())))),(0,n.Z)(this,"renderPaavoHeAdditionalInfoHeader",(()=>a.createElement("h2",{className:"PaavoHETabContainer-additionalPaavoHEInfoHeader"},p.Z.formatString(p.Z.paavoHEAdditionalInfo,this.state.paavoHEDataFetchedAt)))),(0,n.Z)(this,"renderAgeAverage",(()=>this.state.ageAverage?a.createElement("p",null,p.Z.formatString(p.Z.paavoHEAgeAverageLabel,(0,se.wn)(this.state.ageAverage,0,0))):null)),(0,n.Z)(this,"renderTotalPopulation",(()=>this.state.populationTotal?a.createElement("p",null,p.Z.formatString(p.Z.paavoHEPopulationTotalLabel,(0,se.wn)(this.state.populationTotal,0,0))):null)),(0,n.Z)(this,"renderZeroValuesInfo",(()=>a.createElement("div",null,p.Z.paavoHEZeroValuesInfo,a.createElement("ul",null,a.createElement("li",null,p.Z.paavoHEZeroValueActual),a.createElement("li",null,p.Z.paavoHEZeroValueNotAvailable),a.createElement("li",null,p.Z.paavoHEZeroValueHidden))))),(0,n.Z)(this,"formatTick",(e=>p.Z[e])),(0,n.Z)(this,"renderChart",((e,t,s,r,o,i,n,c)=>a.createElement(q.v,{width:e,height:t,margin:{left:5,right:15,top:25,bottom:25},data:s,layout:"vertical",maxBarSize:20},a.createElement(J.K,{type:"number",label:{value:i,position:"bottom",fontWeight:"bold",offset:-5}}),a.createElement(X.B,{type:"category",tickFormatter:this.formatTick,dataKey:o,interval:0,label:{value:n,position:"top",fontWeight:"bold",offset:10}}),a.createElement(Y.q,{strokeDasharray:"3 3"}),a.createElement(Q.u,{content:c}),a.createElement(ee.$,{dataKey:r},s.map(((e,t)=>a.createElement(te.b,{key:t,fill:e.color}))))))),(0,n.Z)(this,"renderHideableCharts",(()=>a.createElement(a.Fragment,null,a.createElement(C.Z,{showLabel:p.Z.paavoHEShowAgePlot,hideLabel:p.Z.paavoHEHideAgePlot},this.renderChart(350,400,this.state.paavoHEAgeDistributionChartData,"count","label_localization_key",p.Z.paavoHEAgeDistributionXAxisLabel,p.Z.paavoHEAgeDistributionYAXisLabel,this.renderAgeDistributionTooltip)),a.createElement(C.Z,{showLabel:p.Z.paavoHEShowGenderPlot,hideLabel:p.Z.paavoHEHideGenderPlot},this.renderChart(350,200,this.state.paavoHEGenderDistributionChartData,"count","label_localization_key",p.Z.paavoHEGenderDistributionXAxisLabel,p.Z.paavoHEGenderDistributionYAXisLabel,this.renderGenderDistributionTooltip))))),(0,n.Z)(this,"renderErrorMessage",(()=>a.createElement(m.Z,{errorText:this.props.dataLoadingStatuses.paavoHEChartData.dataLoadingNotificationMessage,displayRefreshButton:!1}))),(0,n.Z)(this,"renderHideableChartsOrErrorMessage",(()=>this.props.paavoHEChartDataLoadingStatus?"error"===this.props.paavoHEChartDataLoadingStatus.dataLoadingStatus?this.renderErrorMessage():this.renderHideableCharts():null)),(0,n.Z)(this,"handlePaavoHEChartDataFetchSuccess",((e,t,s)=>{this.isUnMounted||t(e,JSON.parse(s))})),(0,n.Z)(this,"handlePaavoHEChartDataFetchError",(()=>{this.setState({populationTotal:null,ageAverage:null,paavoHEGenderDistributionChartData:[],paavoHEAgeDistributionChartData:[]}),this.props.dispatch((0,W.B0)("paavoHEChartData","error","ERROR",p.Z.paavoHESelectedFeatureDataLoadingError))})),(0,n.Z)(this,"handlePaavoHEChartDataFetchCanceled",(()=>{this.setState({populationTotal:null,ageAverage:null,paavoHEGenderDistributionChartData:[],paavoHEAgeDistributionChartData:[]}),this.props.dispatch((0,W.B0)("paavoHEChartData","error","ERROR",p.Z.paavoHESelectedFeatureDataLoadingCancel))})),(0,n.Z)(this,"fetchPaavoHEChartData",((e,t,s)=>{if(this.isUnMounted)return;this.props.dispatch((0,W.B0)("paavoHEChartData","loading","INFO",p.Z.paavoHESelectedFeatureDataLoadingInfo));const a={zipCode:this.props.selectedPaavoHEFeature.properties.zip_code},{promise:r,request:o}=(0,A.tU)("POST",`${S.yx}/paavo/getPaavoHEByZipCode`,{headers:{"Content-Type":"application/json"}},JSON.stringify(a),null,this.handlePaavoHEChartDataFetchCanceled);r.then((s=>this.handlePaavoHEChartDataFetchSuccess(e,t,s))).catch((e=>this.handlePaavoHEChartDataFetchError(e))),s(o)})),(0,n.Z)(this,"commitPaavoHEChartData",(e=>{this.setState({populationTotal:e.paavo_he_population_total,ageAverage:e.paavo_he_age_average,paavoHEGenderDistributionChartData:e.paavo_he_gender_distribution,paavoHEAgeDistributionChartData:e.paavo_he_age_distribution}),this.props.dispatch((0,W.B0)("paavoHEChartData","completed","SUCCESS",p.Z.paavoHESelectedFeatureDataLoadingSuccess))})),(0,n.Z)(this,"componentWillUnmount",(()=>{this.cleanUp()})),(0,n.Z)(this,"cleanUp",(()=>{this.isUnMounted=!0,this.props.dispatch((0,W.Vh)("paavoHEChartData"))})),(0,n.Z)(this,"handlePaavoHEDataInfoFetched",(e=>{const t=JSON.parse(e);this.setState({dataLoadingStatus:"completed",paavoHEDataFetchedAt:t.data_fetched_at})})),(0,n.Z)(this,"fetchPaavoHEDataInfo",((e,t,s)=>{this.setState({dataLoadingStatus:"loading"});const{promise:a,request:r}=(0,A.tU)("POST",`${S.yx}/system/geospatialdatainfo`,{headers:{"Content-Type":"application/json"}},JSON.stringify({id:"PaavoHE"}),null,null);a.then((s=>t(e,s))).catch((e=>this.setState({dataLoadingStatus:"error"}))),s(r)}))}render(){const e={en:this.props.selectedPaavoHEFeature.properties.municipality_name_en,fi:this.props.selectedPaavoHEFeature.properties.municipality_name_fi,sv:this.props.selectedPaavoHEFeature.properties.municipality_name_sv},t={en:this.props.selectedPaavoHEFeature.properties.zip_name_en,fi:this.props.selectedPaavoHEFeature.properties.zip_name_fi,sv:this.props.selectedPaavoHEFeature.properties.zip_name_sv};return a.createElement(a.Fragment,null,a.createElement(L.Z,{notificationKey:"paavoHEChartData",canFetchData:!0,fetchData:this.fetchPaavoHEChartData,handleFetchedDataCommit:this.commitPaavoHEChartData,selectedPaavoHEFeature:this.props.selectedPaavoHEFeature}),a.createElement(L.Z,{notificationKey:"paavoHETabDataInfo",canFetchData:!0,fetchData:this.fetchPaavoHEDataInfo,handleFetchedDataCommit:this.handlePaavoHEDataInfoFetched}),a.createElement(ae.Z,{tabID:S.mo}),a.createElement(d.Z,{tabID:S.mo},a.createElement(a.Fragment,null,a.createElement(z.Z,{localizedMunicipalityNames:e,localizedZipCodeNames:t,zipCodeNumber:this.props.selectedPaavoHEFeature.properties.zip_code,municipalityCode:this.props.selectedPaavoHEFeature.properties.municipality_code,renderAdditionalZipCodeInfo:this.renderAdditionalPaavoHeInfo}),this.renderHideableChartsOrErrorMessage())))}}Ce.propTypes={};const Se=(0,r.$j)((e=>({languageCode:e.components.languageselector.languageCode,paavoHEChartDataLoadingStatus:e.components.notificationcontainer.dataLoadingStatuses.paavoHEChartData})))(Ce);class Ae extends a.PureComponent{constructor(...e){super(...e),(0,n.Z)(this,"componentWillUnmount",(()=>{this.cleanUp()})),(0,n.Z)(this,"cleanUp",(()=>{this.props.dispatch((0,H.Co)(this.props.layerName))})),(0,n.Z)(this,"componentDidUpdate",(e=>{!0!==e.popupOpen||!1!==this.props.popupOpen?e.featuresIndexedByLayerName!==this.props.featuresIndexedByLayerName&&(0,se.EY)(this.props.layerName,this.props.featuresIndexedByLayerName)&&this.handleFeatureSelected(this.props.paavoHEFocusedFeatures[0]):this.props.dispatch((0,H.Co)(this.props.layerName))})),(0,n.Z)(this,"handleFeatureSelected",(e=>{this.props.dispatch((0,c.$C)([(0,H.fI)(this.props.layerName,e),(0,j.j4)(),(0,y.Lt)(S.mo),(0,v.r0)(),(0,H.Co)(this.props.layerName)]))}))}render(){return a.createElement(a.Fragment,null,this.props.paavoHEFocusedFeatures&&0!==this.props.paavoHEFocusedFeatures.length&&a.createElement(f.Z,{popupPath:"root"},a.createElement(ye,{selectableFeatures:this.props.paavoHEFocusedFeatures,onFeatureSelected:this.handleFeatureSelected})),this.props.selectedPaavoHEFeature&&a.createElement(Se,{selectedPaavoHEFeature:this.props.selectedPaavoHEFeature}))}}Ae.propTypes={paavoHEFocusedFeatures:i().array};const Le=(0,r.$j)(((e,t)=>({featuresIndexedByLayerName:e.components.mapclickhandler.featuresIndexedByLayerName,paavoHEFocusedFeatures:e.components.mapclickhandler.featuresIndexedByLayerName[t.layerName],selectedPaavoHEFeature:e.components.mapclickhandler.selectedFeatureIndexedByLayerName[t.layerName],currentPopupPath:e.components.olpopup.popupPath,popupOpen:e.components.olpopup.open})))(Ae);class Ee extends a.PureComponent{render(){return a.createElement(a.Fragment,null,a.createElement(de,null),a.createElement(Le,{layerName:this.props.layerName}))}}const Ze={extraBaseLayersPaavoPT:le,extraBaseLayersPaavoHE:Ee};class fe extends a.PureComponent{render(){return this.props.selectedExtraBaseLayersIDs.map((e=>{const t=this.props.selectableBaseLayers.find((t=>t.value.toString()===e)),s=Ze[e];return s?a.createElement(s,{key:e,layerName:t.layer_name}):null}))}}fe.propTypes={selectedExtraBaseLayersIDs:i().array};const be=(0,r.$j)((e=>({selectedExtraBaseLayersIDs:e.views.extrabaselayers.selectedBaseLayerIDs,selectableBaseLayers:e.views.extrabaselayers.selectableBaseLayers})))(fe);var Fe=s(44365),Pe=s(73542),De=s(92345);class Be extends a.PureComponent{constructor(...e){super(...e),(0,n.Z)(this,"state",{selectableExtraBaseLayers:[],expandedExtraBaseLayers:[],loadingStatus:"loading",aborted:!1}),(0,n.Z)(this,"setExpandedExtraBaseLayers",(e=>{this.setState({expandedExtraBaseLayers:e})})),(0,n.Z)(this,"componentDidUpdate",(e=>{if(e.languageCode!==this.props.languageCode){const e=(0,Pe.j$)((0,se.Zw)(this.state.selectableExtraBaseLayers),Pe.o8);this.setState({selectableExtraBaseLayers:e})}})),(0,n.Z)(this,"fetchSelectableExtraBaseLayerTreeData",((e,t,s)=>{if(this.isUnMounted)return;this.setState({loadingStatus:"loading",aborted:!1});const{promise:a,request:r}=(0,A.tU)("GET",`${S.yx}/extrabaselayerstree`,null,null,null,this.handleSelectableExtraBaseLayerTreeDataFetchCancelled);a.then((s=>this.handleSelectableExtraBaseLayerTreeFetchSuccess(e,t,s))).catch((e=>this.handleSelectableExtraBaseLayerTreeDataFetchError(e))),s(r)})),(0,n.Z)(this,"handleSelectableExtraBaseLayerTreeFetchSuccess",((e,t,s)=>{this.isUnMounted||t(e,JSON.parse(s))})),(0,n.Z)(this,"handleSelectableExtraBaseLayerTreeDataFetchError",(()=>{this.setState({loadingStatus:"error",aborted:!1})})),(0,n.Z)(this,"handleSelectableExtraBaseLayerTreeDataFetchCancelled",(()=>{this.setState({loadingStatus:"error",aborted:!0})})),(0,n.Z)(this,"commitExtraBaseLayerTreeData",(e=>{const t=(0,Pe.j$)(e.treeData,Pe.o8);this.setState({selectableExtraBaseLayers:t,loadingStatus:"completed",aborted:!1})})),(0,n.Z)(this,"componentWillUnmount",(()=>{this.cleanUp()})),(0,n.Z)(this,"cleanUp",(()=>{this.isUnMounted=!0})),(0,n.Z)(this,"refreshExtraBaseLayersTreeFetch",(()=>{this.props.setRequestedAction("extrabaselayers_extrabaselayerstree","refresh")})),(0,n.Z)(this,"abortExtraBaseLayersTreeFetch",(()=>{this.props.setRequestedAction("extrabaselayers_extrabaselayerstree","abort")}))}render(){const e=this.state.aborted?p.Z.extraBaseLayersTreeLoadingMessageCancel:p.Z.extraBaseLayersTreeLoadingMessageError;return a.createElement(a.Fragment,null,a.createElement(L.Z,{notificationKey:"extrabaselayers_extrabaselayerstree",canFetchData:!0,fetchData:this.fetchSelectableExtraBaseLayerTreeData,handleFetchedDataCommit:this.commitExtraBaseLayerTreeData}),a.createElement(u.Z,{loadingStatus:this.state.loadingStatus,loadingContent:a.createElement(h.Z,{loadingText:p.Z.extraBaseLayersTreeLoadingMessage,onAbort:this.abortExtraBaseLayersTreeFetch}),actualContent:a.createElement(Fe.Z,{nodes:this.state.selectableExtraBaseLayers,checked:this.props.selectedBaseLayerIDs,onCheck:this.props.setSelectedBaseLayers,expanded:this.state.expandedExtraBaseLayers,onExpand:this.setExpandedExtraBaseLayers}),errorContent:a.createElement(m.Z,{errorText:e,onRefresh:this.refreshExtraBaseLayersTreeFetch})}))}}const Te=(0,r.$j)((e=>({selectedBaseLayerIDs:e.views.extrabaselayers.selectedBaseLayerIDs,languageCode:e.components.languageselector.languageCode})),(e=>({setSelectedBaseLayers:t=>e((0,De.Cn)(t)),setRequestedAction:(t,s)=>e((0,W.xd)(t,s))})))(Be);var xe=s(72419),Ie={};Ie.styleTagTransform=w(),Ie.setAttributes=I(),Ie.insert=T().bind(null,"head"),Ie.domAPI=D(),Ie.insertStyleElement=N(),F()(xe.Z,Ie),xe.Z&&xe.Z.locals&&xe.Z.locals;const Oe=e=>a.createElement("div",{className:"ExtraBaseLayerLegend"},a.createElement("h2",{className:"ExtraBaseLayerLegend-title"},e.title),a.createElement("p",null,e.text),a.createElement("img",{className:"ExtraBaseLayerLegend-image",src:e.url,alt:"Extra base layer legend"}));class Ne extends a.PureComponent{constructor(...e){super(...e),(0,n.Z)(this,"componentDidUpdate",(()=>{this.openInfoTab&&(this.props.openInfoAreaAndSetActiveTab(S.sR),this.openInfoTab=!1)})),(0,n.Z)(this,"renderLegendsForSelectedBaseLayers",((e,t)=>e.map((e=>{const s=t.find((t=>t.value.toString()===e));return s&&s.legend?(this.openInfoTab=!0,a.createElement(d.Z,{tabID:S.sR,key:s.id},a.createElement(Oe,{url:s.legend.url,title:p.Z[s.legend.title_localization_key],text:p.Z[s.legend.custom_message_localization_key]}))):null}))))}render(){return this.renderLegendsForSelectedBaseLayers(this.props.selectedExtraBaseLayers,this.props.selectableBaseLayers)}}Ne.propTypes={selectedExtraBaseLayers:i().array.isRequired,selectableBaseLayers:i().array.isRequired};const Ue=(0,r.$j)((e=>({selectedExtraBaseLayers:e.views.extrabaselayers.selectedBaseLayerIDs,selectableBaseLayers:e.views.extrabaselayers.selectableBaseLayers,languageCode:e.components.languageselector.languageCode})),(e=>({openInfoAreaAndSetActiveTab:t=>e((0,c.$C)([(0,y.Lt)(t),(0,v.r0)()]))})))(Ne);class we extends a.PureComponent{render(){return a.createElement(a.Fragment,null,a.createElement(Te,null),a.createElement(Ue,null),a.createElement(be,null))}}const _e=we},92345:(e,t,s)=>{s.d(t,{Cn:()=>i,U0:()=>a,_$:()=>n,dn:()=>o,kG:()=>r});const a="SET_SELECTED_BASE_LAYER_IDS",r="CLEAR_EXTRA_BASE_LAYERS_DATA",o="SET_SELECTABLE_BASE_LAYERS",i=e=>({type:a,selectedBaseLayerIDs:e}),n=e=>({type:o,selectableBaseLayers:e})},89492:(e,t,s)=>{s.d(t,{fW:()=>o,nJ:()=>r,p7:()=>a,p8:()=>i});const a="SET_PAAVOHE_LEGEND_DATA",r="CLEAR_PAAVOHE_DATA",o=e=>({type:a,paavoHELegendData:e}),i=()=>({type:r})},77787:(e,t,s)=>{s.d(t,{BZ:()=>r,X4:()=>a,jO:()=>o,me:()=>i});const a="SET_PAAVOPT_LEGEND_DATA",r="CLEAR_PAAVOPT_DATA",o=e=>({type:a,paavoPTLegendData:e}),i=()=>({type:r})},80240:(e,t,s)=>{s.d(t,{I:()=>O});var a=s(14890),r=s(96156),o=s(92434);function i(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,a)}return s}const n={colorMatrixData:[]};var c=s(54988);function l(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,a)}return s}const p={catchmentLegendData:{}};var d=s(92345);function u(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,a)}return s}function h(e){for(var t=1;t{switch(t.type){case o.oe:return function(e){for(var t=1;t{switch(t.type){case c.$d:return function(e){for(var t=1;t{switch(t.type){case d.dn:return h({},e,{selectableBaseLayers:t.selectableBaseLayers});case d.U0:return h({},e,{selectedBaseLayerIDs:t.selectedBaseLayerIDs});case d.kG:return m;default:return e}},servicecosts:(e=C,t)=>{switch(t.type){case y.wB:return g({},e,{serviceCostGroupedByServiceProviderOfficeTotals:t.totals,serviceCostGroupedByServiceProviderOfficeMinimums:t.min,serviceCostGroupedByServiceProviderOfficeMaximums:t.max,serviceCostGroupedByServiceProviderOfficePlotData:t.plotData});case y.ZJ:return g({},e,{serviceCostGroupedByServiceProviderOfficePlotData:t.serviceCostGroupedByServiceProviderOfficePlotData});case y.C7:return g({},e,{serviceCostGroupedByServiceProviderUnitTotals:t.totals,serviceCostGroupedByServiceProviderUnitMinimums:t.min,serviceCostGroupedByServiceProviderUnitMaximums:t.max,serviceCostGroupedByServiceProviderUnitPlotData:t.plotData});case y.t:return g({},e,{serviceCostGroupedByServiceProviderUnitPlotData:t.serviceCostGroupedByServiceProviderUnitPlotData});case y.VW:return g({},e,{serviceCostGroupedByZipCodeLegendData:t.legendData});case y.Oc:return g({},e,{serviceCostDataDisplayPrecisions:t.dataDisplayPrecisions});case y.AM:return g({},e,{serviceCostDataLimits:t.dataLimits});case y.SQ:return C;default:return e}},customervisits:(e=E,t)=>{switch(t.type){case S.hc:return L({},e,{customerVisitsLegendData:t.legendData});case S.Mp:return L({},e,{customerVisitsDataDisplayPrecisions:t.dataDisplayPrecisions});case S.Hg:return L({},e,{customerVisitsDataLimits:t.dataLimits});case S.oN:return E;default:return e}},customervolumes:(e=F,t)=>{switch(t.type){case Z.ig:return b({},e,{customerVolumesLegendData:t.customerVolumesLegendData});case Z.kA:return b({},e,{customerVolumesDataDisplayPrecisions:t.dataDisplayPrecisions});case Z.ix:return b({},e,{customerVolumesDataLimits:t.dataLimits});case Z.xV:return F;default:return e}},paavopt:(e=B,t)=>{switch(t.type){case P.X4:return function(e){for(var t=1;t{switch(t.type){case T.p7:return function(e){for(var t=1;t{s.d(t,{Z:()=>V});var a=s(96156),r=s(67294),o=s(23279),i=s.n(o),n=s(6304),c=s(62782),l=s(14106),p=s(818),d=s(67587),u=s(19807),h=s(7513),m=s(31219),y=s(20767),v=s(56462),g=s(81566),C=s(74444),S=s(96757),A=s(99055);class L extends r.PureComponent{constructor(e){super(e),(0,a.Z)(this,"styleFeature",(e=>{const t=e.get("color"),s=e.get("zIndex"),a=e.get("width");return new m.ZP({stroke:new y.Z({color:t,width:a}),zIndex:s})})),(0,a.Z)(this,"handleLayerDataFetchSuccess",((e,t,s)=>{this.isUnMounted||t(e,JSON.parse(s))})),(0,a.Z)(this,"handleLayerDataFetchError",(()=>{this.props.setDataLoadingStatusByKey("servicecostscostline","error","ERROR",C.Z.serviceCostsCostLineLoadingError)})),(0,a.Z)(this,"handleLayerDataFetchCanceled",(()=>{this.props.setDataLoadingStatusByKey("servicecostscostline","error","ERROR",C.Z.serviceCostsCostLineLoadingCancel)})),(0,a.Z)(this,"fetchLayerFeaturesAsGeoJSON",((e,t,s)=>{if(!this.props.selectedServiceCostZipCodeFeature||!this.props.from||!this.props.to||this.isUnMounted)return;this.layerObject.removeAllFeatures(),this.props.setDataLoadingStatusByKey("servicecostscostline","loading","INFO",C.Z.serviceCostsCostLineLoadingInfo);const a=this.props.from.year(),r=this.props.from.month()+1,o=this.props.from.date(),i=this.props.to.year(),n=this.props.to.month()+1,c=this.props.to.date(),l={[v.qB]:this.props.isContactTypesSelectedAsCohortFilter},p={[v.XG]:this.props.isServiceProvidersSelectedAsDynamicFilter},d={fromYear:a,fromMonth:r,fromDay:o,toYear:i,toMonth:n,toDay:c,ageGroups:this.props.agegroups,genders:this.props.genders,areaMDCGroups:this.props.areamdcs,mainDiagnosisGroups:(0,S.Ss)(this.props.maindiagnoses,"value"),serviceUnits:this.props.serviceProviderIDs,selectedZipCodeNumber:this.props.selectedServiceCostZipCodeFeature.properties.zip_code,eprGroups:this.props.eprgroups,basicServiceTypes:this.props.basicservicetypes,serviceTypes:this.props.servicetypes,servicegroups:this.props.servicegroups,municipalities:this.props.municipalities,contactTypes:this.props.contactTypes,cohortFilterStatus:l,zipCodes:this.props.zipCodes,urgencyTypes:this.props.urgencyTypes,thlndgGroups:this.props.thlndgGroups,thldgGroups:this.props.thldgGroups,visitKinds:this.props.visitKinds,personnelTypes:this.props.personnelTypes,sosServiceDuties:this.props.sosServiceDuties,sosServices:this.props.sosServices,serviceKinds:this.props.serviceKinds,dynamicFilterStatus:p},{promise:u,request:m}=(0,h.tU)("POST",`${v.yx}/servicecostsbyoffice/getServiceCosts`,{headers:{"Content-Type":"application/json"}},JSON.stringify(d),null,this.handleLayerDataFetchCanceled);u.then((s=>this.handleLayerDataFetchSuccess(e,t,s))).catch((e=>this.handleLayerDataFetchError(e))),s(m)})),(0,a.Z)(this,"handleLayerLoadComplete",(e=>{this.props.setServiceCostsGroupedByServiceProviderOfficeDataAndLoadingStatus("servicecostscostline","completed","SUCCESS",C.Z.serviceCostsCostLineLoadingSuccess,e.totals,e.min,e.max,e.plotData,e.dynamicFilterValues)})),(0,a.Z)(this,"componentWillUnmount",(()=>{this.cleanUp()})),(0,a.Z)(this,"cleanUp",(()=>{this.isUnMounted=!0,this.props.dismissNotificationByKey("servicecostscostline")}));const t=this.props.layerOrderIndexedByLayerName[c.ye];this.layerObject=new p.Z(this.props.map,{name:c.ye,renderMode:"image",opacity:1,style:this.styleFeature,zIndex:t}),this.debouncedFetchLayerFeaturesAsGeoJSON=i()(this.fetchLayerFeaturesAsGeoJSON,500)}render(){return this.props.selectedServiceCostZipCodeFeature?r.createElement(l.Z,{notificationKey:"servicecostscostline",layerObject:this.layerObject,onLayerLoadComplete:this.handleLayerLoadComplete,onShouldUpdateLayerFeatures:this.debouncedFetchLayerFeaturesAsGeoJSON,from:this.props.from,to:this.props.to,genders:this.props.genders,serviceProviderIDs:this.props.serviceProviderIDs,maindiagnoses:this.props.maindiagnoses,agegroups:this.props.agegroups,areamdcs:this.props.areamdcs,eprgroups:this.props.eprgroups,basicservicetypes:this.props.basicservicetypes,servicetypes:this.props.servicetypes,servicegroups:this.props.servicegroups,municipalities:this.props.municipalities,contactTypes:this.props.contactTypes,isContactTypesSelectedAsCohortFilter:this.props.isContactTypesSelectedAsCohortFilter,selectedZipCodeFeatureID:this.props.selectedServiceCostZipCodeFeature.id,zipCodes:this.props.zipCodes,urgencyTypes:this.props.urgencyTypes,thlndgGroups:this.props.thlndgGroups,thldgGroups:this.props.thldgGroups,visitKinds:this.props.visitKinds,personnelTypes:this.props.personnelTypes,sosServiceDuties:this.props.sosServiceDuties,sosServices:this.props.sosServices,serviceKinds:this.props.serviceKinds,isServiceProvidersSelectedAsDynamicFilter:this.props.isServiceProvidersSelectedAsDynamicFilter}):null}}const E=(0,n.$j)((e=>({selectedServiceCostZipCodeFeature:e.components.mapclickhandler.selectedFeatureIndexedByLayerName[c.MU],layerOrderIndexedByLayerName:e.components.layerorderupdater.layerOrderIndexedByLayerName,from:e.filters.present[v.DU].from,to:e.filters.present[v.DU].to,genders:e.filters.present[v.d5].values,serviceProviderIDs:e.filters.present[v.XG].values,agegroups:e.filters.present[v.oG].values,areamdcs:e.filters.present[v.G1].values,maindiagnoses:e.filters.present[v.pA].values,eprgroups:e.filters.present[v.WJ].values,basicservicetypes:e.filters.present[v.e3].values,servicetypes:e.filters.present[v.xs].values,servicegroups:e.filters.present[v.M2].values,municipalities:e.filters.present[v.$7].values,contactTypes:e.filters.present[v.qB].values,isContactTypesSelectedAsCohortFilter:e.filters.present[v.qB].isSelectedAsCohortFilter,isServiceProvidersSelectedAsDynamicFilter:e.filters.present[v.XG].isSelectedAsDynamicFilter,zipCodes:e.filters.present[v.Zt].values,urgencyTypes:e.filters.present[v.PR].values,thlndgGroups:e.filters.present[v.KB].values,thldgGroups:e.filters.present[v.fi].values,visitKinds:e.filters.present[v.WC].values,personnelTypes:e.filters.present[v.W$].values,sosServiceDuties:e.filters.present[v.Z].values,sosServices:e.filters.present[v._U].values,serviceKinds:e.filters.present[v.FC].values})),(e=>({setDataLoadingStatusByKey:(t,s,a,r)=>e((0,u.B0)(t,s,a,r)),setServiceCostsGroupedByServiceProviderOfficeDataAndLoadingStatus:(t,s,a,r,o,i,n,c,l)=>e((0,g.$C)([(0,u.B0)(t,s,a,r),(0,d.rA)(o,n,i,c),...l&&l[v.XG]?[(0,A.b3)(v.XG,l[v.XG])]:[]])),dismissNotificationByKey:t=>e((0,u.Vh)(t))})))(L);var Z=s(35141),f=s(98185);class b extends r.PureComponent{constructor(e){super(e),(0,a.Z)(this,"strokeStyle",new y.Z({color:"rgba(0, 0, 0, 1.0)",width:.5})),(0,a.Z)(this,"languageCode",C.Z._language),(0,a.Z)(this,"zipNameKey",`zip_name_${this.languageCode}`),(0,a.Z)(this,"municipalityKey",`municipality_name_${this.languageCode}`),(0,a.Z)(this,"styleFeature",(e=>{const t=e.get("color"),s=new f.Z({color:t||"white"}),a=`${e.get(this.zipNameKey)}, ${e.get(this.municipalityKey)}`;return new m.ZP({stroke:this.strokeStyle,fill:s,text:(0,Z.qz)(a)})})),(0,a.Z)(this,"handleProgress",(e=>{if(this.isUnMounted)return;const t=(0,h.P6)(e);this.props.updateNotificationMessageByKey("servicecostszipcode",`${C.Z.serviceCostsZipCodeLoadingInfo} ${t} %`)})),(0,a.Z)(this,"handleLayerDataFetchSuccess",((e,t,s)=>{this.isUnMounted||t(e,{features:JSON.parse(s)})})),(0,a.Z)(this,"handleLayerDataFetchError",(()=>{this.props.setDataLoadingStatusByKey("servicecostszipcode","error","ERROR",C.Z.serviceCostsZipCodeLoadingError)})),(0,a.Z)(this,"handleLayerDataFetchCanceled",(()=>{this.props.setDataLoadingStatusByKey("servicecostszipcode","error","ERROR",C.Z.serviceCostsZipCodeLoadingCancel)})),(0,a.Z)(this,"fetchLayerFeaturesAsGeoJSON",((e,t,s)=>{if(this.isUnMounted)return;this.props.setDataLoadingStatusByKey("servicecostszipcode","loading","INFO",C.Z.serviceCostsZipCodeLoadingInfo);const a={headers:{"Cache-Control":`max-age=${c.AY}`}},{promise:r,request:o}=(0,h.tU)("GET",`${v.yx}/zipCodeAreas/getZipCodeAreasGeoJSON`,a,null,this.handleProgress,this.handleLayerDataFetchCanceled);r.then((s=>this.handleLayerDataFetchSuccess(e,t,s))).catch((e=>this.handleLayerDataFetchError(e))),s(o)})),(0,a.Z)(this,"handleLayerLoadComplete",(()=>{this.props.setDataLoadingStatusByKey("servicecostszipcode","completed","SUCCESS",C.Z.serviceCostsZipCodeLoadingSuccess)})),(0,a.Z)(this,"componentWillUnmount",(()=>{this.cleanUp()})),(0,a.Z)(this,"cleanUp",(()=>{this.isUnMounted=!0,this.props.dismissNotificationByKey("servicecostszipcode")}));const t=this.props.layerOrderIndexedByLayerName[c.MU];this.layerObject=new p.Z(this.props.map,{name:c.MU,renderMode:"image",opacity:.8,style:this.styleFeature,zIndex:t})}render(){return r.createElement(l.Z,{notificationKey:"servicecostszipcode",layerObject:this.layerObject,onLayerLoadComplete:this.handleLayerLoadComplete,onShouldUpdateLayerFeatures:this.fetchLayerFeaturesAsGeoJSON})}}const F=(0,n.$j)((e=>({layerOrderIndexedByLayerName:e.components.layerorderupdater.layerOrderIndexedByLayerName})),(e=>({setDataLoadingStatusByKey:(t,s,a,r)=>e((0,u.B0)(t,s,a,r)),dismissNotificationByKey:t=>e((0,u.Vh)(t)),updateNotificationMessageByKey:(t,s)=>e((0,u.GA)(t,s))})))(b);var P=s(98361),D=s(45697),B=s.n(D);class T extends r.PureComponent{constructor(...e){super(...e),(0,a.Z)(this,"getFocusedFeatureStyle",(e=>{const t=e.get("zIndex"),s=e.get("width"),a=c.Xf.clone();return a.setWidth(s),new m.ZP({stroke:a,zIndex:t})})),(0,a.Z)(this,"getSelectedFeatureStyle",(e=>{const t=e.get("zIndex"),s=e.get("width"),a=c.hI.clone();return a.setWidth(s),new m.ZP({stroke:a,zIndex:t})}))}render(){let e=!1;return this.props.serviceCostLineDataLoadingStatus&&"completed"===this.props.serviceCostLineDataLoadingStatus.dataLoadingStatus&&(e=!0),r.createElement(P.Z,{map:this.props.map,canStyle:e,layerName:c.ye,onStyleFocusedFeature:this.getFocusedFeatureStyle,onStyleSelectedFeature:this.getSelectedFeatureStyle,focusedFeatures:this.props.serviceCostLineFocusedFeatures,selectedFeature:this.props.selectedServiceCostLineFeature})}}T.propTypes={map:B().object.isRequired,selectedServiceCostLine:B().object};const x=(0,n.$j)((e=>({serviceCostLineDataLoadingStatus:e.components.notificationcontainer.dataLoadingStatuses.servicecostscostline,selectedServiceCostLineFeature:e.components.mapclickhandler.selectedFeatureIndexedByLayerName[c.ye],serviceCostLineFocusedFeatures:e.components.mapclickhandler.featuresIndexedByLayerName[c.ye],currentPopupPath:e.components.olpopup.popupPath})))(T);class I extends r.PureComponent{constructor(...e){super(...e),(0,a.Z)(this,"getFocusedFeatureStyle",(e=>{const t=e.get("color"),s=new f.Z({color:t||"white"});return new m.ZP({stroke:c.H4,fill:s})})),(0,a.Z)(this,"getSelectedFeatureStyle",(e=>{const t=e.get("color"),s=new f.Z({color:t||"white"});return new m.ZP({stroke:c.Sp,fill:s})}))}render(){let e=!1;return this.props.serviceCostZipCodeLayerLoadingStatus&&"completed"===this.props.serviceCostZipCodeLayerLoadingStatus.dataLoadingStatus&&(e=!0),r.createElement(P.Z,{map:this.props.map,canStyle:e,layerName:c.MU,onStyleFocusedFeature:this.getFocusedFeatureStyle,onStyleSelectedFeature:this.getSelectedFeatureStyle,focusedFeatures:this.props.serviceCostZipCodeFocusedFeatures,selectedFeature:this.props.selectedServiceCostZipCodeFeature})}}I.propTypes={map:B().object.isRequired,selectedServiceCostZipCodeFeature:B().object};const O=(0,n.$j)((e=>({serviceCostZipCodeLayerLoadingStatus:e.components.notificationcontainer.dataLoadingStatuses.servicecostszipcode,selectedServiceCostZipCodeFeature:e.components.mapclickhandler.selectedFeatureIndexedByLayerName[c.MU],serviceCostZipCodeFocusedFeatures:e.components.mapclickhandler.featuresIndexedByLayerName[c.MU],currentPopupPath:e.components.olpopup.popupPath})))(I);var N=s(46014);class U extends r.PureComponent{constructor(e){super(e),(0,a.Z)(this,"handleLayerUpdateDataFetchSuccess",((e,t,s)=>{this.isUnMounted||t(e,JSON.parse(s))})),(0,a.Z)(this,"handleLayerUpdateDataFetchError",(()=>{this.props.dispatch((0,u.B0)("servicecostszipcodecolors","error","ERROR",C.Z.costsGroupedByZipCodeLegendLoadingTextError))})),(0,a.Z)(this,"handleLayerDataFetchCanceled",(()=>{this.props.dispatch((0,u.B0)("servicecostszipcodecolors","error","ERROR",C.Z.costsGroupedByZipCodeLegendLoadingTextCancel))})),(0,a.Z)(this,"fetchLayerUpdateData",((e,t,s)=>{if(this.isUnMounted||!this.props.from||!this.props.to)return;this.props.dispatch((0,u.B0)("servicecostszipcodecolors","loading","INFO",C.Z.costsGroupedByZipCodeLegendLoadingText));const a=this.props.from.year(),r=this.props.from.month()+1,o=this.props.from.date(),i=this.props.to.year(),n=this.props.to.month()+1,c=this.props.to.date(),l={[v.qB]:this.props.isContactTypesSelectedAsCohortFilter},p={[v.XG]:this.props.isServiceProvidersSelectedAsDynamicFilter},d={fromYear:a,fromMonth:r,fromDay:o,toYear:i,toMonth:n,toDay:c,ageGroups:this.props.agegroups,genders:this.props.genders,areaMDCGroups:this.props.areamdcs,mainDiagnosisGroups:(0,S.Ss)(this.props.maindiagnoses,"value"),serviceUnits:this.props.serviceProviderIDs,eprGroups:this.props.eprgroups,basicServiceTypes:this.props.basicservicetypes,serviceTypes:this.props.servicetypes,servicegroups:this.props.servicegroups,municipalities:this.props.municipalities,valueType:this.props.valueType,contactTypes:this.props.contactTypes,cohortFilterStatus:l,zipCodes:this.props.zipCodes,urgencyTypes:this.props.urgencyTypes,thlndgGroups:this.props.thlndgGroups,thldgGroups:this.props.thldgGroups,visitKinds:this.props.visitKinds,personnelTypes:this.props.personnelTypes,sosServiceDuties:this.props.sosServiceDuties,sosServices:this.props.sosServices,serviceKinds:this.props.serviceKinds,dynamicFilterStatus:p},{promise:m,request:y}=(0,h.tU)("POST",`${v.yx}/servicecostsbyzipcode/getServiceCosts`,{headers:{"Content-Type":"application/json"}},JSON.stringify(d),null,this.handleLayerDataFetchCanceled);m.then((s=>this.handleLayerUpdateDataFetchSuccess(e,t,s))).catch((e=>this.handleLayerUpdateDataFetchError(e))),s(y)})),(0,a.Z)(this,"handleFeatureUpdateComplete",(e=>{const t=[(0,d.$A)(e.legendData),(0,d.Hy)(e.dataDisplayPrecisions),(0,d.Ye)(e.dataLimits),(0,u.B0)("servicecostszipcodecolors","completed","SUCCESS",C.Z.costsGroupedByZipCodeLegendLoadingTextSuccess)];e.dynamicFilterValues&&e.dynamicFilterValues[v.XG]&&t.push((0,A.b3)(v.XG,e.dynamicFilterValues[v.XG])),this.props.dispatch((0,g.$C)(t))})),(0,a.Z)(this,"componentWillUnmount",(()=>{this.cleanUp()})),(0,a.Z)(this,"cleanUp",(()=>{this.isUnMounted=!0,this.props.dispatch((0,u.Vh)("servicecostszipcodecolors"))})),this.debouncedFetchLayerUpdateData=i()(this.fetchLayerUpdateData,500)}render(){let e=!1;return this.props.serviceCostZipCodeLayerLoadingStatus&&"completed"===this.props.serviceCostZipCodeLayerLoadingStatus.dataLoadingStatus&&(e=!0),r.createElement(N.Z,{notificationKey:"servicecostszipcodecolors",map:this.props.map,layerName:c.MU,layerLoaded:e,from:this.props.from,to:this.props.to,genders:this.props.genders,ageGroups:this.props.agegroups,areamdcs:this.props.areamdcs,serviceProviderIDs:this.props.serviceProviderIDs,eprgroups:this.props.eprgroups,maindiagnoses:this.props.maindiagnoses,basicservicetypes:this.props.basicservicetypes,servicetypes:this.props.servicetypes,servicegroups:this.props.servicegroups,municipalities:this.props.municipalities,valueType:this.props.valueType,contactTypes:this.props.contactTypes,isContactTypesSelectedAsCohortFilter:this.props.isContactTypesSelectedAsCohortFilter,zipCodes:this.props.zipCodes,urgencyTypes:this.props.urgencyTypes,thlndgGroups:this.props.thlndgGroups,thldgGroups:this.props.thldgGroups,visitKinds:this.props.visitKinds,personnelTypes:this.props.personnelTypes,sosServiceDuties:this.props.sosServiceDuties,sosServices:this.props.sosServices,serviceKinds:this.props.serviceKinds,isServiceProvidersSelectedAsDynamicFilter:this.props.isServiceProvidersSelectedAsDynamicFilter,onShouldUpdateFeatureData:this.debouncedFetchLayerUpdateData,onFeatureUpdateComplete:this.handleFeatureUpdateComplete})}}const w=(0,n.$j)((e=>({serviceCostZipCodeLayerLoadingStatus:e.components.notificationcontainer.dataLoadingStatuses.servicecostszipcode,from:e.filters.present[v.DU].from,to:e.filters.present[v.DU].to,genders:e.filters.present[v.d5].values,serviceProviderIDs:e.filters.present[v.XG].values,agegroups:e.filters.present[v.oG].values,areamdcs:e.filters.present[v.G1].values,maindiagnoses:e.filters.present[v.pA].values,eprgroups:e.filters.present[v.WJ].values,basicservicetypes:e.filters.present[v.e3].values,servicetypes:e.filters.present[v.xs].values,servicegroups:e.filters.present[v.M2].values,municipalities:e.filters.present[v.$7].values,valueType:e.filters.present[v.Ym].selectedValue,contactTypes:e.filters.present[v.qB].values,isContactTypesSelectedAsCohortFilter:e.filters.present[v.qB].isSelectedAsCohortFilter,zipCodes:e.filters.present[v.Zt].values,urgencyTypes:e.filters.present[v.PR].values,thlndgGroups:e.filters.present[v.KB].values,thldgGroups:e.filters.present[v.fi].values,visitKinds:e.filters.present[v.WC].values,personnelTypes:e.filters.present[v.W$].values,sosServiceDuties:e.filters.present[v.Z].values,sosServices:e.filters.present[v._U].values,serviceKinds:e.filters.present[v.FC].values,isServiceProvidersSelectedAsDynamicFilter:e.filters.present[v.XG].isSelectedAsDynamicFilter})))(U);var _=s(72653);class R extends r.PureComponent{constructor(...e){super(...e),(0,a.Z)(this,"componentWillUnmount",(()=>{this.props.dispatchBatchedActions([(0,d.sC)(),(0,_.Co)(c.ye),(0,_.Co)(c.MU),(0,_.u7)(c.ye),(0,_.u7)(c.MU)])}))}render(){return r.createElement(r.Fragment,null,r.createElement(F,{map:this.props.map}),r.createElement(w,{map:this.props.map}),r.createElement(O,{map:this.props.map}),r.createElement(E,{map:this.props.map}),r.createElement(x,{map:this.props.map}))}}const V=(0,n.$j)(null,(e=>({dispatchBatchedActions:t=>e((0,g.$C)(t))})))(R)},70149:(e,t,s)=>{s.d(t,{Z:()=>we});var a=s(67294),r=s(63254),o=s(96156),i=s(62782),n=s(93379),c=s.n(n),l=s(7795),p=s.n(l),d=s(90569),u=s.n(d),h=s(3565),m=s.n(h),y=s(19216),v=s.n(y),g=s(44589),C=s.n(g),S=s(17228),A={};A.styleTagTransform=C(),A.setAttributes=m(),A.insert=u().bind(null,"head"),A.domAPI=p(),A.insertStyleElement=v(),c()(S.Z,A),S.Z&&S.Z.locals&&S.Z.locals;var L=s(81566),E=s(6304),Z=s(17078),f=s(60577),b={};b.styleTagTransform=C(),b.setAttributes=m(),b.insert=u().bind(null,"head"),b.domAPI=p(),b.insertStyleElement=v(),c()(f.Z,b),f.Z&&f.Z.locals&&f.Z.locals;var F=s(75338),P=s(45697),D=s.n(P),B=s(10700),T=s(74444),x=s(56462);class I extends a.PureComponent{constructor(...e){super(...e),(0,o.Z)(this,"renderSelectableFeature",(e=>{const t=`zip_name_${this.props.languageCode}`;return a.createElement("button",{className:"ServiceCostsZipCode-selectableFeature"},a.createElement("div",{className:"ServiceCostsZipCode-icon"},(0,B.j)(x._v)),T.Z.formatString(T.Z.costsWithinZipCodeAreaSelectableFeature,e.properties[t]))}))}render(){return a.createElement(F.Z,{listItems:this.props.selectableFeatures,listItemRender:this.renderSelectableFeature,onListItemClicked:this.props.onFeatureSelected,languageCode:this.props.languageCode})}}I.propTypes={selectableFeatures:D().array.isRequired,languageCode:D().string,onFeatureSelected:D().func};const O=(0,E.$j)((e=>({languageCode:e.components.languageselector.languageCode})))(I);var N=s(72653),U=s(17503),w=s(78709),_=s(72746),R={};R.styleTagTransform=C(),R.setAttributes=m(),R.insert=u().bind(null,"head"),R.domAPI=p(),R.insertStyleElement=v(),c()(_.Z,R),_.Z&&_.Z.locals&&_.Z.locals;class V extends a.PureComponent{constructor(e){super(e),(0,o.Z)(this,"onClick",(()=>{this.props.onClick(this.props.payload)})),this.id=this.props.calculateIDForNode(this.props.payload)}render(){const e=Math.sqrt(this.props.size/Math.PI),t=this.id===this.props.selectedID?"ScatterDot-selected":"ScatterDot";return a.createElement("circle",{className:t,onClick:this.onClick,cx:this.props.cx,cy:this.props.cy,r:e})}}const k=V;var G=s(54973),M=s(57478),j=s(14195),H=s(3023),$=s(75358),K=s(47197),z=s(65657),W=s(39277),q={};q.styleTagTransform=C(),q.setAttributes=m(),q.insert=u().bind(null,"head"),q.domAPI=p(),q.insertStyleElement=v(),c()(W.Z,q),W.Z&&W.Z.locals&&W.Z.locals;var J=s(96757);class X extends a.PureComponent{constructor(...e){super(...e),(0,o.Z)(this,"formatNumberForDisplay",((e,t,s,a)=>{const r=e.properties[t];return 0===r?0:(0,J.wn)(r,s[a].min,s[a].max)})),(0,o.Z)(this,"renderTooltip",(e=>{const t=e.payload;if(!t||0===t.length)return null;const s=t[0].name,r=(0,J.wn)(t[0].value,2,2),o=t[0].unit,n=i.gs.includes(t[0].payload.streetAddress)?T.Z.costsWithinZipCodeAreaServiceProviderInvalidAddress:t[0].payload.streetAddress,c=t[1].name,l=(0,J.wn)(t[1].value,0,2),p=t[1].unit;return a.createElement("div",{className:"recharts-default-tooltip ServiceCostZipCodeLegend-tooltip"},a.createElement("label",null,T.Z.costsWithinZipCodeAreaServiceProviderAddressLabel),a.createElement("div",null,n),a.createElement("label",null,s),a.createElement("div",null,r," ",o),a.createElement("label",null,c),a.createElement("div",null,l," ",p))})),(0,o.Z)(this,"handleCalculateIDForNode",(e=>e.streetAddress))}render(){const e=this.props.selectedServiceCostZipCodeFeature,t=this.formatNumberForDisplay(e,"total_costs_cohort_percentage_share",this.props.dataDisplayPrecisions,x.jq),s=this.formatNumberForDisplay(e,"cohort_total_service_costs",this.props.dataDisplayPrecisions,x.Mm),r=this.formatNumberForDisplay(e,"base_total_service_costs",this.props.dataDisplayPrecisions,x.Mm),o=this.formatNumberForDisplay(e,"cohort_pop_rel_costs",this.props.dataDisplayPrecisions,x.kX);return a.createElement(a.Fragment,null,a.createElement(G.Z,{showLabel:T.Z.costsWithinZipCodeAreaServiceProviderShowInfo,hideLabel:T.Z.costsWithinZipCodeAreaServiceProviderHideInfo},a.createElement("label",null,T.Z.costsWithinZipCodeAreaServiceProviderCostsAll),a.createElement("div",null,T.Z.formatString(T.Z.costsWithinZipCodeAreaServiceProviderCostsAllValue,(0,J.wn)(this.props.totalCostWithinZipCodeArea,2,2))),a.createElement("label",null,T.Z.costsWithinZipCodeAreaRelativeToPopulation),a.createElement("div",null,T.Z.formatString(T.Z.costsWithinZipCodeAreaRelativeToPopulationValue,o)),a.createElement("label",null,T.Z.costsWithinZipCodeAreaServiceProviderVolumesAll),a.createElement("div",null,T.Z.formatString(T.Z.costsWithinZipCodeAreaServiceProviderVolumesAllValue,(0,J.wn)(this.props.totalServiceVolumeWithinZipCodeArea,0,2))),a.createElement("label",null,T.Z.costsWithinZipCodeAreaServiceProviderCostsAllCohort),a.createElement("div",null,`${s} € / ${r} € (${t} %)`)),this.props.plotData&&this.props.plotData.length>0&&a.createElement(G.Z,{showLabel:T.Z.costsWithinZipCodeAreaPlotShow,hideLabel:T.Z.costsWithinZipCodeAreaPlotHide},a.createElement(M.G,{width:350,height:400,margin:{top:20,right:20,bottom:20,left:20}},a.createElement(j.q,null),a.createElement(H.K,{dataKey:"x",type:"number",name:T.Z.costPlotXAttributeText,unit:T.Z.costPlotXAttributeUnit}),a.createElement($.B,{dataKey:"y",type:"number",name:T.Z.costPlotYAttributeText,unit:T.Z.costPlotYAttributeUnit}),a.createElement(K.b,{name:"fefe",data:this.props.plotData,fill:"blue",shape:a.createElement(k,{onClick:this.props.onNodeClicked,selectedID:this.props.selectedNodeID,calculateIDForNode:this.handleCalculateIDForNode})}),a.createElement(z.u,{cursor:{strokeDasharray:"3 3"},content:this.renderTooltip}))))}}const Y=(0,E.$j)((e=>({languageCode:e.components.languageselector.languageCode,dataDisplayPrecisions:e.views.servicecosts.serviceCostDataDisplayPrecisions})))(X);var Q=s(61267),ee=s(80983),te=s(5108),se=s(57369),ae=s(24585),re=s(71238),oe=s(14784);const ie=["costs","costspercitizen"];class ne extends a.PureComponent{constructor(...e){super(...e),(0,o.Z)(this,"renderLegendOrNoResults",(()=>{const e=this.props.dataLimits&&this.props.dataLimits.minTotalVisits?this.props.dataLimits.minTotalVisits:0;if(!this.props.totalServiceVolumeWithinZipCodeArea||this.props.totalServiceVolumeWithinZipCodeArea({languageCode:e.components.languageselector.languageCode,serviceCostLineDataLoadingStatus:e.components.notificationcontainer.dataLoadingStatuses.servicecostscostline,totalCostWithinZipCodeArea:e.views.servicecosts.serviceCostGroupedByServiceProviderOfficeTotals.totalCost,totalServiceVolumeWithinZipCodeArea:e.views.servicecosts.serviceCostGroupedByServiceProviderOfficeTotals.totalServiceVolume,plotData:e.views.servicecosts.serviceCostGroupedByServiceProviderOfficePlotData,dataLimits:e.views.servicecosts.serviceCostDataLimits})))(ne);var le=s(69963);class pe extends a.PureComponent{constructor(...e){super(...e),(0,o.Z)(this,"componentDidUpdate",(e=>{!0!==e.popupOpen||!1!==this.props.popupOpen?e.featuresIndexedByLayerName!==this.props.featuresIndexedByLayerName&&(0,J.EY)(i.MU,this.props.featuresIndexedByLayerName)&&this.handleFeatureSelected(this.props.serviceCostZipCodeFocusedFeatures[0]):this.props.dispatch((0,N.Co)(i.MU))})),(0,o.Z)(this,"handleFeatureSelected",(e=>{this.props.dispatch((0,L.$C)([(0,N.fI)(i.MU,e),(0,N.fI)(i.ye,null),(0,le.j4)(),(0,U.Lt)(x.IQ),(0,w.r0)(),(0,N.Co)(i.MU)]))})),(0,o.Z)(this,"handleServiceCostLineSelectedFromPlot",(e=>{this.props.dispatch((0,L.$C)([(0,N.fI)(i.ye,e.feature),(0,U.Lt)(x.$k),(0,w.r0)()]))})),(0,o.Z)(this,"renderServiceCostLineDescription",(()=>a.createElement(a.Fragment,null,a.createElement("h2",{className:"ServiceCostsZipCodeUIInteraction-ServiceCostServiceCostLineDescription-title"},"Postinumeroalueen kustannukset"),a.createElement("div",{className:"ServiceCostsZipCodeUIInteraction-ServiceCostServiceCostLineDescription-description"},T.Z.costsGroupedByServiceProviderOfficeLegendDescription))))}render(){const{selectedServiceCostZipCodeFeature:e,selectedServiceCostLineFeature:t,serviceCostZipCodeFocusedFeatures:s}=this.props,r=t?t.id:null;let o={},i={};return e&&(o={en:e.properties.municipality_name_en,fi:e.properties.municipality_name_fi,sv:e.properties.municipality_name_sv},i={en:e.properties.zip_name_en,fi:e.properties.zip_name_fi,sv:e.properties.zip_name_sv}),a.createElement(a.Fragment,null,s&&0!==s.length&&a.createElement(Z.Z,{popupPath:"root"},a.createElement(O,{selectableFeatures:s,onFeatureSelected:this.handleFeatureSelected})),e&&a.createElement(a.Fragment,null,a.createElement(ce,{zipCodeNumber:e.properties.zip_code,localizedMunicipalityNames:o,localizedZipCodeNames:i,municipalityCode:e.properties.municipality_code,onNodeClicked:this.handleServiceCostLineSelectedFromPlot,selectedNodeID:r,selectedServiceCostZipCodeFeature:e}),a.createElement(Q.Z,{tabID:x.sR},this.renderServiceCostLineDescription())))}}pe.propTypes={serviceCostZipCodeFocusedFeatures:D().array};const de=(0,E.$j)((e=>({featuresIndexedByLayerName:e.components.mapclickhandler.featuresIndexedByLayerName,serviceCostZipCodeFocusedFeatures:e.components.mapclickhandler.featuresIndexedByLayerName[i.MU],selectedServiceCostZipCodeFeature:e.components.mapclickhandler.selectedFeatureIndexedByLayerName[i.MU],selectedServiceCostLineFeature:e.components.mapclickhandler.selectedFeatureIndexedByLayerName[i.ye],popupOpen:e.components.olpopup.open})))(pe);var ue=s(23279),he=s.n(ue),me=s(22913),ye=s(7513),ve=s(67587),ge=s(19807),Ce=s(29799),Se={};Se.styleTagTransform=C(),Se.setAttributes=m(),Se.insert=u().bind(null,"head"),Se.domAPI=p(),Se.insertStyleElement=v(),c()(Ce.Z,Se),Ce.Z&&Ce.Z.locals&&Ce.Z.locals;class Ae extends a.PureComponent{constructor(...e){super(...e),(0,o.Z)(this,"renderSelectableFeature",(e=>a.createElement("button",{className:"ServiceCostsLine-selectableFeature"},a.createElement("div",{className:"ServiceCostsLine-icon"},(0,B.j)(x._v)),T.Z.formatString(T.Z.costsWithinAddressSelectableFeature,e.properties.streetAddress))))}render(){return a.createElement(F.Z,{listItems:this.props.selectableFeatures,listItemRender:this.renderSelectableFeature,onListItemClicked:this.props.onFeatureSelected,languageCode:this.props.languageCode})}}Ae.propTypes={selectableFeatures:D().array.isRequired,onFeatureSelected:D().func};const Le=(0,E.$j)((e=>({languageCode:e.components.languageselector.languageCode})))(Ae);var Ee=s(79531),Ze={};Ze.styleTagTransform=C(),Ze.setAttributes=m(),Ze.insert=u().bind(null,"head"),Ze.domAPI=p(),Ze.insertStyleElement=v(),c()(Ee.Z,Ze),Ee.Z&&Ee.Z.locals&&Ee.Z.locals;class fe extends a.PureComponent{constructor(...e){super(...e),(0,o.Z)(this,"state",{clickedNodeID:null}),(0,o.Z)(this,"renderTooltip",(e=>{const t=e.payload;if(!t||0===t.length)return null;const s=t[0].name,r=(0,J.wn)(t[0].value,2,2),o=t[0].unit,i=t[0].payload.serviceProviderName,n=t[1].name,c=(0,J.wn)(t[1].value,0,2),l=t[1].unit;return a.createElement("div",{className:"recharts-default-tooltip ServiceCostZipCodeLegend-tooltip"},a.createElement("label",null,T.Z.costsWithinAddressServiceProviderNameLabel),a.createElement("div",null,i),a.createElement("label",null,s),a.createElement("div",null,r," ",o),a.createElement("label",null,n),a.createElement("div",null,c," ",l))})),(0,o.Z)(this,"handleCalculateIDForNode",(e=>e.serviceProviderIndex)),(0,o.Z)(this,"handleNodeClicked",(e=>{this.setState({clickedNodeID:e.serviceProviderIndex})}))}render(){const e=null!==this.props.streetAddress?this.props.streetAddress:T.Z.costsWithinZipCodeAreaServiceProviderInvalidAddress;return a.createElement(a.Fragment,null,a.createElement("h2",{className:"ServiceCostsCostLineLegend-header"},e),a.createElement("p",null,T.Z.costsWithinAddressInfoLabel),a.createElement(G.Z,{showLabel:T.Z.costsWithinAddressServiceProviderShowInfo,hideLabel:T.Z.costsWithinAddressServiceProviderHideInfo},a.createElement("label",null,T.Z.costsWithinAddressServiceProviderCostsAll),a.createElement("div",null,T.Z.formatString(T.Z.costsWithinAddressServiceProviderCostsAllValue,(0,J.wn)(this.props.totalCostWithinServiceProviderOffice,2,2))),a.createElement("label",null,T.Z.costsWithinAddressServiceProviderVolumesAll),a.createElement("div",null,T.Z.formatString(T.Z.costsWithinAddressServiceProviderVolumesAllValue,(0,J.wn)(this.props.totalServiceVolumeWithinServiceProviderOffice,0,2)))),this.props.plotData&&this.props.plotData.length>0&&a.createElement(G.Z,{showLabel:T.Z.costsWithinAddressPlotShow,hideLabel:T.Z.costsWithinAddressPlotHide},a.createElement(M.G,{width:350,height:400,margin:{top:20,right:20,bottom:20,left:20}},a.createElement(j.q,null),a.createElement(H.K,{dataKey:"x",type:"number",name:T.Z.costPlotXAttributeText,unit:T.Z.costPlotXAttributeUnit}),a.createElement($.B,{dataKey:"y",type:"number",name:T.Z.costPlotYAttributeText,unit:T.Z.costPlotYAttributeUnit}),a.createElement(K.b,{name:"fefe",data:this.props.plotData,shape:a.createElement(k,{onClick:this.handleNodeClicked,selectedID:this.state.clickedNodeID,calculateIDForNode:this.handleCalculateIDForNode})}),a.createElement(z.u,{cursor:{strokeDasharray:"3 3"},content:this.renderTooltip}))))}}const be=(0,E.$j)((e=>({languageCode:e.components.languageselector.languageCode})))(fe);class Fe extends a.PureComponent{constructor(...e){super(...e),(0,o.Z)(this,"renderLegendOrNoResults",(()=>{const e=this.props.dataLimits&&this.props.dataLimits.minTotalVisits?this.props.dataLimits.minTotalVisits:0;if(!this.props.totalServiceVolumeWithinServiceProviderOffice||this.props.totalServiceVolumeWithinServiceProviderOffice({serviceCostLineDetailsLoadingStatus:e.components.notificationcontainer.dataLoadingStatuses.servicecostscostlinedetails,totalCostWithinServiceProviderOffice:e.views.servicecosts.serviceCostGroupedByServiceProviderUnitTotals.totalCost,totalServiceVolumeWithinServiceProviderOffice:e.views.servicecosts.serviceCostGroupedByServiceProviderUnitTotals.totalServiceVolume,plotData:e.views.servicecosts.serviceCostGroupedByServiceProviderUnitPlotData,languageCode:e.components.languageselector.languageCode,dataLimits:e.views.servicecosts.serviceCostDataLimits})))(Fe);var De=s(99055);class Be extends a.PureComponent{constructor(e){super(e),(0,o.Z)(this,"componentDidUpdate",(e=>{!0===e.popupOpen&&!1===this.props.popupOpen&&this.props.dispatch((0,N.Co)(i.ye))})),(0,o.Z)(this,"handleServiceCostLineSelected",(e=>{this.props.dispatch((0,L.$C)([(0,N.fI)(i.ye,e),(0,le.j4)(),(0,U.Lt)(x.$k),(0,w.r0)()]))})),(0,o.Z)(this,"handleServiceCostsGroupedByServiceProviderUnitDataCanceled",(()=>{this.props.dispatch((0,ge.B0)("servicecostscostlinedetails","error","ERROR",T.Z.serviceCostLineDetailsLoadingCancel))})),(0,o.Z)(this,"fetchServiceCostsGroupedByServiceProviderUnitData",((e,t,s)=>{if(this.isUnMounted||!this.props.from||!this.props.to)return;this.props.dispatch((0,ge.B0)("servicecostscostlinedetails","loading","INFO",T.Z.serviceCostLineDetailsLoadingInfo));const a=this.props.from.year(),r=this.props.from.month()+1,o=this.props.from.date(),i=this.props.to.year(),n=this.props.to.month()+1,c=this.props.to.date(),l={[x.qB]:this.props.isContactTypesSelectedAsCohortFilter},p={[x.XG]:this.props.isServiceProvidersSelectedAsDynamicFilter},d={fromYear:a,fromMonth:r,fromDay:o,toYear:i,toMonth:n,toDay:c,ageGroups:this.props.agegroups,genders:this.props.genders,areaMDCGroups:this.props.areamdcs,mainDiagnosisGroups:(0,J.Ss)(this.props.maindiagnoses,"value"),serviceUnits:this.props.serviceProviderIDs,selectedZipCodeNumber:this.props.selectedServiceCostZipCode.properties.zip_code,selectedServiceProviderOfficeStreetAddress:this.props.selectedServiceCostLine.properties.streetAddress,eprGroups:this.props.eprgroups,basicServiceTypes:this.props.basicservicetypes,serviceTypes:this.props.servicetypes,servicegroups:this.props.servicegroups,municipalities:this.props.municipalities,urgencyTypes:this.props.urgencyTypes,thlndgGroups:this.props.thlndgGroups,thldgGroups:this.props.thldgGroups,visitKinds:this.props.visitKinds,personnelTypes:this.props.personnelTypes,sosServiceDuties:this.props.sosServiceDuties,sosServices:this.props.sosServices,contactTypes:this.props.contactTypes,cohortFilterStatus:l,dynamicFilterStatus:p,serviceKinds:this.props.serviceKinds,selectedServiceProviderOfficeLongitude:this.props.selectedServiceCostLine.properties.longitude,selectedServiceProviderOfficeLatitude:this.props.selectedServiceCostLine.properties.latitude},{promise:u,request:h}=(0,ye.tU)("POST",`${x.yx}/servicecostsbyserviceunit/getServiceCosts`,{headers:{"Content-Type":"application/json"}},JSON.stringify(d),null,this.handleServiceCostsGroupedByServiceProviderUnitDataCanceled);u.then((s=>this.handleServiceCostsGroupedByServiceProviderUnitFetchSuccess(e,t,s))).catch((e=>this.handleServiceCostsGroupedByServiceUnitFetchError(e))),s(h)})),(0,o.Z)(this,"handleServiceCostsGroupedByServiceProviderUnitFetchSuccess",((e,t,s)=>{this.isUnMounted||t(e,JSON.parse(s))})),(0,o.Z)(this,"handleServiceCostsGroupedByServiceUnitFetchError",(()=>{this.props.dispatch((0,ge.B0)("servicecostscostlinedetails","error","ERROR",T.Z.serviceCostLineDetailsLoadingError))})),(0,o.Z)(this,"commitServiceCostsGroupedByServiceUnitData",(e=>{const t=[(0,ge.B0)("servicecostscostlinedetails","completed","SUCCESS",T.Z.serviceCostLineDetailsLoadingSuccess),(0,ve.aq)(e.totals,e.max,e.min,e.plotData)];e.dynamicFilterValues&&e.dynamicFilterValues[x.XG]&&t.push((0,De.b3)(x.XG,e.dynamicFilterValues[x.XG])),this.props.dispatch((0,L.$C)(t))})),(0,o.Z)(this,"componentWillUnmount",(()=>{this.cleanUp()})),(0,o.Z)(this,"cleanUp",(()=>{this.isUnMounted=!0,this.props.dispatch((0,ge.Vh)("servicecostscostlinedetails"))})),this.debouncedFetchServiceCostsGroupedByServiceProviderUnitData=he()(this.fetchServiceCostsGroupedByServiceProviderUnitData,500)}render(){const e=null!==this.props.selectedServiceCostLine&&void 0!==this.props.selectedServiceCostLine,t=this.props.selectedServiceCostLine&&!i.gs.includes(this.props.selectedServiceCostLine.properties.streetAddress)?this.props.selectedServiceCostLine.properties.streetAddress:null;return a.createElement(a.Fragment,null,a.createElement(me.Z,{notificationKey:"servicecostscostlinedetails",canFetchData:e,handleFetchedDataCommit:this.commitServiceCostsGroupedByServiceUnitData,fetchData:this.debouncedFetchServiceCostsGroupedByServiceProviderUnitData,areamdcs:this.props.areamdcs,genders:this.props.genders,agegroups:this.props.agegroups,serviceProviderIDs:this.props.serviceProviderIDs,from:this.props.from,to:this.props.to,selectedServiceProviderOfficeStreetAddress:t,maindiagnoses:this.props.maindiagnoses,eprgroups:this.props.eprgroups,basicservicetypes:this.props.basicservicetypes,servicetypes:this.props.servicetypes,servicegroups:this.props.servicegroups,municipalities:this.props.municipalities,urgencyTypes:this.props.urgencyTypes,thlndgGroups:this.props.thlndgGroups,thldgGroups:this.props.thldgGroups,visitKinds:this.props.visitKinds,personnelTypes:this.props.personnelTypes,sosServiceDuties:this.props.sosServiceDuties,sosServices:this.props.sosServices,contactTypes:this.props.contactTypes,serviceKinds:this.props.serviceKinds,isContactTypesSelectedAsCohortFilter:this.props.isContactTypesSelectedAsCohortFilter,isServiceProvidersSelectedAsDynamicFilter:this.props.isServiceProvidersSelectedAsDynamicFilter}),this.props.serviceCostLineFocusedFeatures&&0!==this.props.serviceCostLineFocusedFeatures.length&&a.createElement(Z.Z,{popupPath:"root"},a.createElement(Le,{selectableFeatures:this.props.serviceCostLineFocusedFeatures,onFeatureSelected:this.handleServiceCostLineSelected})),this.props.selectedServiceCostLine&&a.createElement(Pe,{streetAddress:t}))}}const Te=(0,E.$j)((e=>({serviceCostLineFocusedFeatures:e.components.mapclickhandler.featuresIndexedByLayerName[i.ye],selectedServiceCostLine:e.components.mapclickhandler.selectedFeatureIndexedByLayerName[i.ye],selectedServiceCostZipCode:e.components.mapclickhandler.selectedFeatureIndexedByLayerName[i.MU],from:e.filters.present[x.DU].from,to:e.filters.present[x.DU].to,genders:e.filters.present[x.d5].values,areamdcs:e.filters.present[x.G1].values,serviceProviderIDs:e.filters.present[x.XG].values,agegroups:e.filters.present[x.oG].values,maindiagnoses:e.filters.present[x.pA].values,eprgroups:e.filters.present[x.WJ].values,basicservicetypes:e.filters.present[x.e3].values,servicetypes:e.filters.present[x.xs].values,servicegroups:e.filters.present[x.M2].values,municipalities:e.filters.present[x.$7].values,urgencyTypes:e.filters.present[x.PR].values,thlndgGroups:e.filters.present[x.KB].values,thldgGroups:e.filters.present[x.fi].values,visitKinds:e.filters.present[x.WC].values,personnelTypes:e.filters.present[x.W$].values,sosServiceDuties:e.filters.present[x.Z].values,sosServices:e.filters.present[x._U].values,contactTypes:e.filters.present[x.qB].values,serviceKinds:e.filters.present[x.FC].values,isContactTypesSelectedAsCohortFilter:e.filters.present[x.qB].isSelectedAsCohortFilter,isServiceProvidersSelectedAsDynamicFilter:e.filters.present[x.XG].isSelectedAsDynamicFilter,popupOpen:e.components.olpopup.open})))(Be);var xe=s(24757),Ie=s(43605);class Oe extends a.PureComponent{constructor(...e){super(...e),(0,o.Z)(this,"componentDidMount",(()=>{this.props.openInfoAreaAndSetActiveTab(x.sR)}))}render(){if(!this.props.serviceCostZipCodeDataLoadingStatus)return null;let e={[x.Mm]:T.Z.costsGroupedByZipCodeLegendTextTotal,[x.kX]:T.Z.costsGroupedByZipCodeLegendTextRelativeToPopulation,[x.nM]:T.Z.costsGroupedByZipCodeLegendTextRelativeToCustomers,[x.jq]:T.Z.costsGroupedByZipCodeLegendTextTotalCohort}[this.props.serviceCostGroupedByZipCodeLegendData.valueType];return e=e||T.Z.costsGroupedByZipCodeLegendTextAverage,a.createElement(Q.Z,{tabID:x.sR},a.createElement(ee.Z,{loadingStatus:this.props.serviceCostZipCodeDataLoadingStatus.dataLoadingStatus,loadingContent:a.createElement(te.Z,{loadingText:this.props.serviceCostZipCodeDataLoadingStatus.dataLoadingNotificationMessage,displayAbortButton:!1}),actualContent:a.createElement(xe.Z,{ranges:(0,Ie.m)(this.props.serviceCostGroupedByZipCodeLegendData.clusters,this.props.serviceCostGroupedByZipCodeLegendData.precision.min,this.props.serviceCostGroupedByZipCodeLegendData.precision.max),rangeText:Object.keys(this.props.serviceCostGroupedByZipCodeLegendData.clusters).length>0?e:T.Z.costsGroupedByZipCodeNoResults}),errorContent:a.createElement(se.Z,{errorText:this.props.serviceCostZipCodeDataLoadingStatus.dataLoadingNotificationMessage,displayRefreshButton:!1})}))}}const Ne=(0,E.$j)((e=>({serviceCostZipCodeDataLoadingStatus:e.components.notificationcontainer.dataLoadingStatuses.servicecostszipcodecolors,serviceCostGroupedByZipCodeLegendData:e.views.servicecosts.serviceCostGroupedByZipCodeLegendData,languageCode:e.components.languageselector.languageCode})),(e=>({openInfoAreaAndSetActiveTab:t=>e((0,L.$C)([(0,U.Lt)(t),(0,w.r0)()]))})))(Oe);class Ue extends a.PureComponent{render(){return a.createElement(a.Fragment,null,a.createElement(r.C,null),a.createElement(de,null),a.createElement(Te,null),a.createElement(Ne,null),a.createElement("div",{id:x.nk[x.ob].valueTypeSelectorContainerId}))}}const we=Ue},62782:(e,t,s)=>{s.d(t,{AY:()=>h,H4:()=>c,MU:()=>i,Sp:()=>l,Xf:()=>p,gs:()=>u,hI:()=>d,mu:()=>n,ye:()=>o});var a=s(20767),r=s(67674);const o="servicecostscostline",i="servicecostszipcode",n=[o,i],c=new a.Z({color:"#c9e9fb",width:5}),l=new a.Z({color:r.H,width:5}),p=new a.Z({color:"#c9e9fb"}),d=new a.Z({color:r.H}),u=[", "],h=86400},67587:(e,t,s)=>{s.d(t,{$A:()=>h,AM:()=>l,C7:()=>o,Hy:()=>m,Oc:()=>c,SQ:()=>p,VW:()=>n,Ye:()=>y,ZJ:()=>r,aq:()=>u,rA:()=>d,sC:()=>v,t:()=>i,wB:()=>a});const a="SET_SERVICE_COST_GROUPED_BY_SERVICE_PROVIDER_OFFICE_DATA",r="SET_SERVICE_COST_GROUPED_BY_SERVICE_PROVIDER_OFFICE_PLOT_DATA",o="SET_SERVICE_COST_GROUPED_BY_SERVICE_PROVIDER_UNIT_DATA",i="SET_SERVICE_COST_GROUPED_BY_SERVICE_PROVIDER_UNIT_PLOT_DATA",n="SET_SERVICE_COST_GROUPED_BY_ZIP_CODE_LEGEND_DATA",c="SET_SERVICE_COST_DATA_DISPLAY_PRECISIONS",l="SET_SERVICE_COST_DATA_LIMITS",p="CLEAR_SERVICE_COSTS_DATA",d=(e,t,s,r)=>({type:a,totals:e,max:t,min:s,plotData:r}),u=(e,t,s,a)=>({type:o,totals:e,max:t,min:s,plotData:a}),h=e=>({type:n,legendData:e}),m=e=>({type:c,dataDisplayPrecisions:e}),y=e=>({type:l,dataLimits:e}),v=()=>({type:p})},38951:(e,t,s)=>{s.d(t,{Z:()=>w});var a=s(96156),r=s(67294),o=s(81566),i=s(6304),n=s(23279),c=s.n(n);const l=s.p+"static/images/3ada15b9e8cbe210c60d..png";var p=s(67930),d=s(15565),u=s(98185);const h=(e,t,s)=>e.get("features").length>1?m(e,s):y(e,t),m=(e,t)=>{const s=new d.Z({text:e.get("features").length.toString(),fill:new u.Z({color:"black"}),font:"12px sans-serif"});return t.setText(s),t},y=(e,t)=>t;var v=s(14106),g=s(56462),C=s(61201),S=s(19807),A=s(7513),L=s(31219),E=s(20767),Z=s(59797),f=s(8732),b=s(74444);class F extends r.PureComponent{constructor(e){super(e),(0,a.Z)(this,"clusterStyle",new L.ZP({image:new Z.Z({radius:22.5,stroke:new E.Z({color:"black"}),fill:new u.Z({color:"white"})})})),(0,a.Z)(this,"singleFeatureStyle",new L.ZP({image:new f.Z({src:l,imgSize:[32,32],scale:1})})),(0,a.Z)(this,"styleFeature",(e=>h(e,this.singleFeatureStyle,this.clusterStyle))),(0,a.Z)(this,"handleLayerDataFetchSuccess",((e,t,s)=>{this.isUnMounted||t(e,JSON.parse(s))})),(0,a.Z)(this,"handleLayerDataFetchError",(()=>{this.props.setDataLoadingStatusByKey("serviceproviderslayer","error","ERROR",b.Z.serviceProviderLayerLoadingError)})),(0,a.Z)(this,"handleLayerDataFetchCanceled",(()=>{this.props.setDataLoadingStatusByKey("serviceproviderslayer","error","ERROR",b.Z.serviceProviderLayerLoadingCancel)})),(0,a.Z)(this,"fetchLayerFeaturesAsGeoJSON",((e,t,s)=>{if(this.isUnMounted)return;this.props.setDataLoadingStatusByKey("serviceproviderslayer","loading","INFO",b.Z.serviceProviderLayerLoadingInfo);const a={serviceProviderIDs:this.props.isSelectedAsDynamicFilter?this.props.dynamicallySelectedServiceProviderIDs:this.props.selectedServiceProviderIDs},{promise:r,request:o}=(0,A.tU)("POST",`${g.yx}/serviceproviders/getServiceProvidersGeoJSON`,{headers:{"Content-Type":"application/json"}},JSON.stringify(a),null,this.handleLayerDataFetchCanceled);r.then((s=>this.handleLayerDataFetchSuccess(e,t,s))).catch((e=>this.handleLayerDataFetchError(e))),s(o)})),(0,a.Z)(this,"handleLayerLoadComplete",(()=>{this.props.setDataLoadingStatusByKey("serviceproviderslayer","completed","SUCCESS",b.Z.serviceProviderLayerLoadingSuccess)})),(0,a.Z)(this,"componentWillUnmount",(()=>{this.cleanUp()})),(0,a.Z)(this,"cleanUp",(()=>{this.isUnMounted=!0,this.props.dismissNotificationByKey("serviceproviderslayer")}));const t=this.props.layerOrderIndexedByLayerName[p.DM];this.layerObject=new C.Z(this.props.map,{name:p.DM,renderMode:"image",opacity:.8,style:this.styleFeature,zIndex:t}),this.debouncedFetchLayerFeaturesAsGeoJSON=c()(this.fetchLayerFeaturesAsGeoJSON,500)}render(){return r.createElement(v.Z,{notificationKey:"serviceproviderslayer",layerObject:this.layerObject,onLayerLoadComplete:this.handleLayerLoadComplete,onShouldUpdateLayerFeatures:this.debouncedFetchLayerFeaturesAsGeoJSON,selectedServiceProviderIDs:this.props.selectedServiceProviderIDs,dynamicallySelectedServiceProviderIDs:this.props.dynamicallySelectedServiceProviderIDs})}}const P=(0,i.$j)((e=>({selectedServiceProviderIDs:e.filters.present[g.XG].values,dynamicallySelectedServiceProviderIDs:e.filters.present[g.XG].dynamicValues,isSelectedAsDynamicFilter:e.filters.present[g.XG].isSelectedAsDynamicFilter,layerOrderIndexedByLayerName:e.components.layerorderupdater.layerOrderIndexedByLayerName})),(e=>({setDataLoadingStatusByKey:(t,s,a,r)=>e((0,S.B0)(t,s,a,r)),dismissNotificationByKey:t=>e((0,S.Vh)(t))})))(F);var D=s(98361),B=s(45697),T=s.n(B),x=s(35141);class I extends r.PureComponent{constructor(...e){super(...e),(0,a.Z)(this,"singleFeatureStyle",new L.ZP({image:new f.Z({src:l,imgSize:[32,32],scale:1})})),(0,a.Z)(this,"getFocusedFeatureStyle",(e=>h(e,this.singleFeatureStyle,p.Qy.clone()))),(0,a.Z)(this,"getSelectedFeatureStyle",(e=>h(e,this.singleFeatureStyle,p.$c.clone()))),(0,a.Z)(this,"getFeatureFromClusterLayer",(e=>{const t=e.properties.features?e.properties.features[0].id:e.id;return(0,x.XC)(this.props.map,p.DM,t)}))}render(){let e=!1;return this.props.serviceProviderLayerLoadingStatus&&"completed"===this.props.serviceProviderLayerLoadingStatus.dataLoadingStatus&&(e=!0),p.fg.includes(this.props.currentPopupPath)&&r.createElement(D.Z,{map:this.props.map,canStyle:e,layerName:p.DM,onStyleFocusedFeature:this.getFocusedFeatureStyle,onStyleSelectedFeature:this.getSelectedFeatureStyle,focusedFeatures:this.props.serviceProviderLayerFocusedFeatures,selectedFeature:this.props.selectedServiceProviderOffice,getSelectedFeature:this.getFeatureFromClusterLayer,getFocusedFeature:this.getFeatureFromClusterLayer})}}I.propTypes={map:T().object.isRequired};const O=(0,i.$j)((e=>({serviceProviderLayerLoadingStatus:e.components.notificationcontainer.dataLoadingStatuses.serviceproviderslayer,serviceProviderLayerFocusedFeatures:e.components.mapclickhandler.featuresIndexedByLayerName[p.DM],selectedServiceProviderOffice:e.components.mapclickhandler.selectedFeatureIndexedByLayerName[p.DM],currentPopupPath:e.components.olpopup.popupPath})))(I);var N=s(72653);class U extends r.PureComponent{constructor(...e){super(...e),(0,a.Z)(this,"componentWillUnmount",(()=>{this.props.dispatchBatchedActions([(0,N.Co)(p.DM),(0,N.u7)(p.DM)])}))}render(){return r.createElement(r.Fragment,null,r.createElement(P,{map:this.props.map}),r.createElement(O,{map:this.props.map}))}}const w=(0,i.$j)(null,(e=>({dispatchBatchedActions:t=>e((0,o.$C)(t))})))(U)},66898:(e,t,s)=>{s.d(t,{Z:()=>H});var a=s(67294),r=s(96156),o=s(67930),i=s(6304),n=s(17078),c=s(45697),l=s.n(c),p=s(93379),d=s.n(p),u=s(7795),h=s.n(u),m=s(90569),y=s.n(m),v=s(3565),g=s.n(v),C=s(19216),S=s.n(C),A=s(44589),L=s.n(A),E=s(12561),Z={};Z.styleTagTransform=L(),Z.setAttributes=g(),Z.insert=y().bind(null,"head"),Z.domAPI=h(),Z.insertStyleElement=S(),d()(E.Z,Z),E.Z&&E.Z.locals&&E.Z.locals;var f=s(74444),b=s(56462),F=s(99055),P=s(72653),D=s(44365),B=s(73542);class T extends a.PureComponent{constructor(e){super(e),(0,r.Z)(this,"state",{currentlySelectedServiceProviderIDs:[],selectableServiceProviderIDs:[],expandedServiceProviderIDs:[]}),(0,r.Z)(this,"setFilterToOnlySelectedServiceProviders",(()=>{const e=this.state.currentlySelectedServiceProviderIDs.map((e=>(0,B.$k)(this.state.selectableServiceProviderIDs,"value",e))),t={values:this.state.currentlySelectedServiceProviderIDs,labels:e.map((e=>e.label)),changed:!0,undoable:!0};this.props.setFilterState(b.XG,t)})),(0,r.Z)(this,"renderServiceProviders",(()=>a.createElement(D.Z,{nodes:this.state.selectableServiceProviderIDs,checked:this.state.currentlySelectedServiceProviderIDs,onCheck:this.handleChecked,expanded:this.state.expandedServiceProviderIDs,onExpand:this.setExpandedServiceProviderIDs,disabled:this.props.isSelectedAsDynamicFilter}))),(0,r.Z)(this,"setExpandedServiceProviderIDs",(e=>{this.setState({expandedServiceProviderIDs:e})})),(0,r.Z)(this,"handleChecked",(e=>{this.setState({currentlySelectedServiceProviderIDs:e})})),this.state.selectableServiceProviderIDs=[{label:f.Z.serviceProvidersPopupServiceUnitsLabel,value:"root",children:e.selectedFeature.properties.service_providers.map((e=>({value:e.service_provider_index,label:e.service_provider_name})))}],this.state.currentlySelectedServiceProviderIDs=e.selectedFeature.properties.service_providers.map((e=>e.service_provider_index)),this.state.expandedServiceProviderIDs=["root"]}render(){const{selectedFeature:e}=this.props;return a.createElement(a.Fragment,null,a.createElement("label",null,f.Z.serviceProvidersPopupAddressLabel),a.createElement("div",null,e.properties.street_address),this.renderServiceProviders(),a.createElement("button",{onClick:this.setFilterToOnlySelectedServiceProviders,className:"btn btn-default btn-xs ServiceProviderSelectedFeature-serviceUnit-button",disabled:this.props.isSelectedAsDynamicFilter},f.Z.serviceProvidersPopupCommitServiceProviderSelection))}}T.propTypes={selectedFeature:l().object.isRequired};const x=(0,i.$j)((e=>({languageCode:e.components.languageselector.languageCode,isSelectedAsDynamicFilter:e.filters.present[b.XG].isSelectedAsDynamicFilter})),(e=>({setFilterState:(t,s)=>e((0,F.sl)(t,s)),clearFilterValues:t=>e((0,F.q5)(t)),setSelectedFeatureIndexedByLayerName:(t,s)=>e((0,P.fI)(t,s))})))(T);var I=s(2662),O={};O.styleTagTransform=L(),O.setAttributes=g(),O.insert=y().bind(null,"head"),O.domAPI=h(),O.insertStyleElement=S(),d()(I.Z,O),I.Z&&I.Z.locals&&I.Z.locals;var N=s(75338),U=s(10700);class w extends a.PureComponent{constructor(...e){super(...e),(0,r.Z)(this,"getServiceProviderOffices",(()=>{const e=[];for(const t of this.props.selectableFeatures)t.properties.features?e.push.apply(e,t.properties.features):e.push(t);return e})),(0,r.Z)(this,"renderSelectableFeature",(e=>a.createElement("button",{className:"ServiceProviders-selectableFeature"},a.createElement("div",{className:"ServiceProviders-icon"},(0,U.j)(b.K7)),f.Z.formatString(f.Z.serviceProvidersPopupShowServiceUnitsInAddress,e.properties.street_address))))}render(){return a.createElement(N.Z,{listItems:this.getServiceProviderOffices(),listItemRender:this.renderSelectableFeature,onListItemClicked:this.props.onFeatureSelected,languageCode:this.props.languageCode})}}w.propTypes={selectableFeatures:l().array.isRequired,onFeatureSelected:l().func};const _=(0,i.$j)((e=>({languageCode:e.components.languageselector.languageCode})))(w);var R=s(81566),V=s(69963),k=s(96757);class G extends a.PureComponent{constructor(...e){super(...e),(0,r.Z)(this,"componentDidUpdate",(e=>{e.currentPopupPath===o.Wb&&"root"===this.props.currentPopupPath&&this.props.setSelectedServiceProviderOffice(null),!0===e.popupOpen&&!1===this.props.popupOpen&&this.props.setSelectedServiceProviderOfficeFeatureAndRemoveClickedFeaturesByLayerName(null,o.DM),e.featuresIndexedByLayerName!==this.props.featuresIndexedByLayerName&&(0,k.EY)(o.DM,this.props.featuresIndexedByLayerName)&&this.handleFeatureSelected(this.props.serviceProviderLayerFocusedFeatures[0].properties.features[0])})),(0,r.Z)(this,"handleFeatureSelected",(e=>{this.props.setSelectedServiceProviderOfficeFeatureAndPopupPath(e,o.Wb)}))}render(){return this.props.serviceProviderLayerFocusedFeatures&&0!==this.props.serviceProviderLayerFocusedFeatures.length?this.props.selectedServiceProviderOffice?a.createElement(n.Z,{popupPath:o.Wb},a.createElement(x,{selectedFeature:this.props.selectedServiceProviderOffice})):a.createElement(n.Z,{popupPath:"root"},a.createElement(_,{selectableFeatures:this.props.serviceProviderLayerFocusedFeatures,onFeatureSelected:this.handleFeatureSelected})):null}}const M=(0,i.$j)((e=>({featuresIndexedByLayerName:e.components.mapclickhandler.featuresIndexedByLayerName,serviceProviderLayerFocusedFeatures:e.components.mapclickhandler.featuresIndexedByLayerName[o.DM],selectedServiceProviderOffice:e.components.mapclickhandler.selectedFeatureIndexedByLayerName[o.DM],currentPopupPath:e.components.olpopup.popupPath,popupOpen:e.components.olpopup.open})),(e=>({setSelectedServiceProviderOffice:t=>e((0,P.fI)(o.DM,t)),setSelectedServiceProviderOfficeFeatureAndRemoveClickedFeaturesByLayerName:(t,s)=>e((0,R.$C)([(0,P.fI)(o.DM,t),(0,P.Co)(s)])),setSelectedServiceProviderOfficeFeatureAndPopupPath:(t,s)=>e((0,R.$C)([(0,P.fI)(o.DM,t),(0,V.v2)(s)])),removeClickedFeaturesByLayerName:t=>e((0,P.Co)(t))})))(G);class j extends a.PureComponent{render(){return a.createElement(M,null)}}const H=j},67930:(e,t,s)=>{s.d(t,{$c:()=>u,DM:()=>c,Qy:()=>d,Wb:()=>p,fg:()=>h,rj:()=>l});var a=s(98185),r=s(31219),o=s(20767),i=s(59797),n=s(67674);const c="serviceproviders",l=[c],p="root/serviceproviderlist",d=new r.ZP({image:new i.Z({radius:22.5,stroke:new o.Z({color:"#c9e9fb"}),fill:new a.Z({color:"white"})})}),u=new r.ZP({image:new i.Z({radius:22.5,stroke:new o.Z({color:n.H}),fill:new a.Z({color:"white"})})}),h=["root",p]},62813:(e,t,s)=>{s.d(t,{Z:()=>n});var a=s(87537),r=s.n(a),o=s(23645),i=s.n(o)()(r());i.push([e.id,".AccessibilityByAir-title {\n margin-top: 0;\n font-size: 12pt;\n font-weight: 700;\n}\n","",{version:3,sources:["webpack://./src/views/accessibilitybyair/components/AccessibilityByAirUIContainer/components/AccessibilityByAirLegendContainer/AccessibilityByAirLegendContainer.css"],names:[],mappings:"AAAA;EACE,aAAa;EACb,eAAe;EACf,gBAAgB;AAClB",sourcesContent:[".AccessibilityByAir-title {\n margin-top: 0;\n font-size: 12pt;\n font-weight: 700;\n}\n"],sourceRoot:""}]);const n=i},88126:(e,t,s)=>{s.d(t,{Z:()=>n});var a=s(87537),r=s.n(a),o=s(23645),i=s.n(o)()(r());i.push([e.id,".ColorMatrix-cell {\n border: 1px solid #999;\n padding-left: 2px;\n padding-right: 2px;\n}\n\n.ColorMatrix-cell-selected {\n border: 3px solid red;\n}\n\ntable {\n margin-bottom: 10px;\n}\n","",{version:3,sources:["webpack://./src/views/accessibilitybyair/components/AccessibilityByAirUIContainer/components/AccessibilityByAirLegendContainer/components/ColorMatrix/ColorMatrix.css"],names:[],mappings:"AAAA;EACE,sBAAsB;EACtB,iBAAiB;EACjB,kBAAkB;AACpB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,mBAAmB;AACrB",sourcesContent:[".ColorMatrix-cell {\n border: 1px solid #999;\n padding-left: 2px;\n padding-right: 2px;\n}\n\n.ColorMatrix-cell-selected {\n border: 3px solid red;\n}\n\ntable {\n margin-bottom: 10px;\n}\n"],sourceRoot:""}]);const n=i},12083:(e,t,s)=>{s.d(t,{Z:()=>n});var a=s(87537),r=s.n(a),o=s(23645),i=s.n(o)()(r());i.push([e.id,".AccessibilityByAir-selectableFeature {\n margin: 0;\n padding: 0;\n display: block;\n border: none;\n background: none;\n}\n\n.AccessibilityByAir-selectableFeature:focus {\n outline-style: solid;\n outline-color: rgb(77, 144, 254);\n outline-width: 0.7px;\n}\n\n.AccessibilityByAir-selectableFeature:hover {\n text-decoration: underline;\n}\n.AccessibilityByAir-icon {\n display: inline;\n margin-right: 0.1em;\n}\n","",{version:3,sources:["webpack://./src/views/accessibilitybyair/components/AccessibilityByAirUIContainer/components/AccessibilityByAirUIInteraction/components/SelectableFeatures/SelectableFeatures.css"],names:[],mappings:"AAAA;EACE,SAAS;EACT,UAAU;EACV,cAAc;EACd,YAAY;EACZ,gBAAgB;AAClB;;AAEA;EACE,oBAAoB;EACpB,gCAAgC;EAChC,oBAAoB;AACtB;;AAEA;EACE,0BAA0B;AAC5B;AACA;EACE,eAAe;EACf,mBAAmB;AACrB",sourcesContent:[".AccessibilityByAir-selectableFeature {\n margin: 0;\n padding: 0;\n display: block;\n border: none;\n background: none;\n}\n\n.AccessibilityByAir-selectableFeature:focus {\n outline-style: solid;\n outline-color: rgb(77, 144, 254);\n outline-width: 0.7px;\n}\n\n.AccessibilityByAir-selectableFeature:hover {\n text-decoration: underline;\n}\n.AccessibilityByAir-icon {\n display: inline;\n margin-right: 0.1em;\n}\n"],sourceRoot:""}]);const n=i},24027:(e,t,s)=>{s.d(t,{Z:()=>n});var a=s(87537),r=s.n(a),o=s(23645),i=s.n(o)()(r());i.push([e.id,".CustomerVisits-selectableFeature {\n margin: 0;\n padding: 0;\n display: block;\n border: none;\n background: none;\n}\n\n.CustomerVisits-selectableFeature:focus {\n outline-style: solid;\n outline-color: rgb(77, 144, 254);\n outline-width: 0.7px;\n}\n\n.CustomerVisits-selectableFeature:hover {\n text-decoration: underline;\n}\n.CustomerVisits-icon {\n display: inline;\n margin-right: 0.1em;\n}\n","",{version:3,sources:["webpack://./src/views/customervisits/components/CustomerVisitsUIContainer/components/CustomerVisitsUIInteraction/components/SelectableFeatures/SelectableFeatures.css"],names:[],mappings:"AAAA;EACE,SAAS;EACT,UAAU;EACV,cAAc;EACd,YAAY;EACZ,gBAAgB;AAClB;;AAEA;EACE,oBAAoB;EACpB,gCAAgC;EAChC,oBAAoB;AACtB;;AAEA;EACE,0BAA0B;AAC5B;AACA;EACE,eAAe;EACf,mBAAmB;AACrB",sourcesContent:[".CustomerVisits-selectableFeature {\n margin: 0;\n padding: 0;\n display: block;\n border: none;\n background: none;\n}\n\n.CustomerVisits-selectableFeature:focus {\n outline-style: solid;\n outline-color: rgb(77, 144, 254);\n outline-width: 0.7px;\n}\n\n.CustomerVisits-selectableFeature:hover {\n text-decoration: underline;\n}\n.CustomerVisits-icon {\n display: inline;\n margin-right: 0.1em;\n}\n"],sourceRoot:""}]);const n=i},70403:(e,t,s)=>{s.d(t,{Z:()=>n});var a=s(87537),r=s.n(a),o=s(23645),i=s.n(o)()(r());i.push([e.id,".CustomerVolumes-selectableFeature {\n margin: 0;\n padding: 0;\n display: block;\n border: none;\n background: none;\n}\n\n.CustomerVolumes-selectableFeature:focus {\n outline-style: solid;\n outline-color: rgb(77, 144, 254);\n outline-width: 0.7px;\n}\n\n.CustomerVolumes-selectableFeature:hover {\n text-decoration: underline;\n}\n.CustomerVolumes-icon {\n display: inline;\n margin-right: 0.1em;\n}\n","",{version:3,sources:["webpack://./src/views/customervolumes/components/CustomerVolumesUIContainer/components/CustomerVolumesUIInteraction/components/SelectableFeatures/SelectableFeatures.css"],names:[],mappings:"AAAA;EACE,SAAS;EACT,UAAU;EACV,cAAc;EACd,YAAY;EACZ,gBAAgB;AAClB;;AAEA;EACE,oBAAoB;EACpB,gCAAgC;EAChC,oBAAoB;AACtB;;AAEA;EACE,0BAA0B;AAC5B;AACA;EACE,eAAe;EACf,mBAAmB;AACrB",sourcesContent:[".CustomerVolumes-selectableFeature {\n margin: 0;\n padding: 0;\n display: block;\n border: none;\n background: none;\n}\n\n.CustomerVolumes-selectableFeature:focus {\n outline-style: solid;\n outline-color: rgb(77, 144, 254);\n outline-width: 0.7px;\n}\n\n.CustomerVolumes-selectableFeature:hover {\n text-decoration: underline;\n}\n.CustomerVolumes-icon {\n display: inline;\n margin-right: 0.1em;\n}\n"],sourceRoot:""}]);const n=i},72419:(e,t,s)=>{s.d(t,{Z:()=>n});var a=s(87537),r=s.n(a),o=s(23645),i=s.n(o)()(r());i.push([e.id,".ExtraBaseLayerLegend {\n margin-bottom: 20px;\n}\n\n.ExtraBaseLayerLegend-title {\n margin-top: 0;\n margin-bottom: 5px;\n font-size: 12pt;\n font-weight: bold;\n}\n\n.ExtraBaseLayerLegend-image {\n margin-left: 20px;\n max-width: 300px;\n}\n","",{version:3,sources:["webpack://./src/views/extrabaselayers/components/ExtraBaseLayersUIContainer/components/ExtraBaseLayersLegendList/components/ExtraBaseLayerLegend/ExtraBaseLayerLegend.css"],names:[],mappings:"AAAA;EACE,mBAAmB;AACrB;;AAEA;EACE,aAAa;EACb,kBAAkB;EAClB,eAAe;EACf,iBAAiB;AACnB;;AAEA;EACE,iBAAiB;EACjB,gBAAgB;AAClB",sourcesContent:[".ExtraBaseLayerLegend {\n margin-bottom: 20px;\n}\n\n.ExtraBaseLayerLegend-title {\n margin-top: 0;\n margin-bottom: 5px;\n font-size: 12pt;\n font-weight: bold;\n}\n\n.ExtraBaseLayerLegend-image {\n margin-left: 20px;\n max-width: 300px;\n}\n"],sourceRoot:""}]);const n=i},88025:(e,t,s)=>{s.d(t,{Z:()=>n});var a=s(87537),r=s.n(a),o=s(23645),i=s.n(o)()(r());i.push([e.id,".PaavoHETabContainer-tooltip {\n margin: 0px;\n border: 1px solid #aaa;\n box-shadow: 3px 3px 3px #999;\n background-color: white;\n padding-left: 5px;\n padding-right: 5px;\n max-width: 250px;\n}\n\n.PaavoHETabContainer-additionalPaavoHEInfoHeader {\n margin-top: 20px;\n font-size: 12pt;\n font-weight: bold;\n}\n","",{version:3,sources:["webpack://./src/views/paavoHE/components/PaavoHEUIContainer/components/PaavoHEUIInteraction/components/PaavoHETabContainer/PaavoHETabContainer.css"],names:[],mappings:"AAAA;EACE,WAAW;EACX,sBAAsB;EACtB,4BAA4B;EAC5B,uBAAuB;EACvB,iBAAiB;EACjB,kBAAkB;EAClB,gBAAgB;AAClB;;AAEA;EACE,gBAAgB;EAChB,eAAe;EACf,iBAAiB;AACnB",sourcesContent:[".PaavoHETabContainer-tooltip {\n margin: 0px;\n border: 1px solid #aaa;\n box-shadow: 3px 3px 3px #999;\n background-color: white;\n padding-left: 5px;\n padding-right: 5px;\n max-width: 250px;\n}\n\n.PaavoHETabContainer-additionalPaavoHEInfoHeader {\n margin-top: 20px;\n font-size: 12pt;\n font-weight: bold;\n}\n"],sourceRoot:""}]);const n=i},88040:(e,t,s)=>{s.d(t,{Z:()=>n});var a=s(87537),r=s.n(a),o=s(23645),i=s.n(o)()(r());i.push([e.id,".PaavoHE-selectableFeature {\n margin: 0;\n padding: 0;\n display: block;\n border: none;\n background: none;\n}\n\n.PaavoHE-selectableFeature:focus {\n outline-style: solid;\n outline-color: rgb(77, 144, 254);\n outline-width: 0.7px;\n}\n\n.PaavoHE-selectableFeature:hover {\n text-decoration: underline;\n}\n.PaavoHE-icon {\n display: inline;\n margin-right: 0.1em;\n}\n","",{version:3,sources:["webpack://./src/views/paavoHE/components/PaavoHEUIContainer/components/PaavoHEUIInteraction/components/SelectableFeatures/SelectableFeatures.css"],names:[],mappings:"AAAA;EACE,SAAS;EACT,UAAU;EACV,cAAc;EACd,YAAY;EACZ,gBAAgB;AAClB;;AAEA;EACE,oBAAoB;EACpB,gCAAgC;EAChC,oBAAoB;AACtB;;AAEA;EACE,0BAA0B;AAC5B;AACA;EACE,eAAe;EACf,mBAAmB;AACrB",sourcesContent:[".PaavoHE-selectableFeature {\n margin: 0;\n padding: 0;\n display: block;\n border: none;\n background: none;\n}\n\n.PaavoHE-selectableFeature:focus {\n outline-style: solid;\n outline-color: rgb(77, 144, 254);\n outline-width: 0.7px;\n}\n\n.PaavoHE-selectableFeature:hover {\n text-decoration: underline;\n}\n.PaavoHE-icon {\n display: inline;\n margin-right: 0.1em;\n}\n"],sourceRoot:""}]);const n=i},60793:(e,t,s)=>{s.d(t,{Z:()=>n});var a=s(87537),r=s.n(a),o=s(23645),i=s.n(o)()(r());i.push([e.id,".PaavoPTTabContainer-tooltip {\n margin: 0px;\n border: 1px solid #aaa;\n box-shadow: 3px 3px 3px #999;\n background-color: white;\n padding-left: 5px;\n padding-right: 5px;\n max-width: 250px;\n}\n\n.PaavoPTTabContainer-additionalPaavoPTInfoHeader {\n margin-top: 20px;\n font-size: 12pt;\n font-weight: bold;\n}\n","",{version:3,sources:["webpack://./src/views/paavoPT/components/PaavoPTUIContainer/components/PaavoPTUIInteraction/components/PaavoPTTabContainer/PaavoPTTabContainer.css"],names:[],mappings:"AAAA;EACE,WAAW;EACX,sBAAsB;EACtB,4BAA4B;EAC5B,uBAAuB;EACvB,iBAAiB;EACjB,kBAAkB;EAClB,gBAAgB;AAClB;;AAEA;EACE,gBAAgB;EAChB,eAAe;EACf,iBAAiB;AACnB",sourcesContent:[".PaavoPTTabContainer-tooltip {\n margin: 0px;\n border: 1px solid #aaa;\n box-shadow: 3px 3px 3px #999;\n background-color: white;\n padding-left: 5px;\n padding-right: 5px;\n max-width: 250px;\n}\n\n.PaavoPTTabContainer-additionalPaavoPTInfoHeader {\n margin-top: 20px;\n font-size: 12pt;\n font-weight: bold;\n}\n"],sourceRoot:""}]);const n=i},81403:(e,t,s)=>{s.d(t,{Z:()=>n});var a=s(87537),r=s.n(a),o=s(23645),i=s.n(o)()(r());i.push([e.id,".PaavoPT-selectableFeature {\n margin: 0;\n padding: 0;\n display: block;\n border: none;\n background: none;\n}\n\n.PaavoPT-selectableFeature:focus {\n outline-style: solid;\n outline-color: rgb(77, 144, 254);\n outline-width: 0.7px;\n}\n\n.PaavoPT-selectableFeature:hover {\n text-decoration: underline;\n}\n.PaavoPT-icon {\n display: inline;\n margin-right: 0.1em;\n}\n","",{version:3,sources:["webpack://./src/views/paavoPT/components/PaavoPTUIContainer/components/PaavoPTUIInteraction/components/SelectableFeatures/SelectableFeatures.css"],names:[],mappings:"AAAA;EACE,SAAS;EACT,UAAU;EACV,cAAc;EACd,YAAY;EACZ,gBAAgB;AAClB;;AAEA;EACE,oBAAoB;EACpB,gCAAgC;EAChC,oBAAoB;AACtB;;AAEA;EACE,0BAA0B;AAC5B;AACA;EACE,eAAe;EACf,mBAAmB;AACrB",sourcesContent:[".PaavoPT-selectableFeature {\n margin: 0;\n padding: 0;\n display: block;\n border: none;\n background: none;\n}\n\n.PaavoPT-selectableFeature:focus {\n outline-style: solid;\n outline-color: rgb(77, 144, 254);\n outline-width: 0.7px;\n}\n\n.PaavoPT-selectableFeature:hover {\n text-decoration: underline;\n}\n.PaavoPT-icon {\n display: inline;\n margin-right: 0.1em;\n}\n"],sourceRoot:""}]);const n=i},72746:(e,t,s)=>{s.d(t,{Z:()=>n});var a=s(87537),r=s.n(a),o=s(23645),i=s.n(o)()(r());i.push([e.id,".ScatterDot {\n cursor: pointer;\n fill: var(--primary_theme_color);\n stroke: black;\n stroke-width: 1;\n}\n\n.ScatterDot-selected {\n cursor: pointer;\n fill: white;\n stroke: black;\n stroke-width: 2;\n}\n","",{version:3,sources:["webpack://./src/views/servicecosts/components/ServiceCostsUIContainer/components/ScatterDot/ScatterDot.css"],names:[],mappings:"AAAA;EACE,eAAe;EACf,gCAAgC;EAChC,aAAa;EACb,eAAe;AACjB;;AAEA;EACE,eAAe;EACf,WAAW;EACX,aAAa;EACb,eAAe;AACjB",sourcesContent:[".ScatterDot {\n cursor: pointer;\n fill: var(--primary_theme_color);\n stroke: black;\n stroke-width: 1;\n}\n\n.ScatterDot-selected {\n cursor: pointer;\n fill: white;\n stroke: black;\n stroke-width: 2;\n}\n"],sourceRoot:""}]);const n=i},29799:(e,t,s)=>{s.d(t,{Z:()=>n});var a=s(87537),r=s.n(a),o=s(23645),i=s.n(o)()(r());i.push([e.id,".ServiceCostsLine-selectableFeature {\n margin: 0;\n padding: 0;\n display: block;\n border: none;\n background: none;\n}\n\n.ServiceCostsLine-selectableFeature:focus {\n outline-style: solid;\n outline-color: rgb(77, 144, 254);\n outline-width: 0.7px;\n}\n\n.ServiceCostsLine-selectableFeature:hover {\n text-decoration: underline;\n}\n.ServiceCostsLine-icon {\n display: inline;\n margin-right: 0.1em;\n}\n","",{version:3,sources:["webpack://./src/views/servicecosts/components/ServiceCostsUIContainer/components/ServiceCostsCostLineUIInteraction/components/SelectableFeatures/SelectableFeatures.css"],names:[],mappings:"AAAA;EACE,SAAS;EACT,UAAU;EACV,cAAc;EACd,YAAY;EACZ,gBAAgB;AAClB;;AAEA;EACE,oBAAoB;EACpB,gCAAgC;EAChC,oBAAoB;AACtB;;AAEA;EACE,0BAA0B;AAC5B;AACA;EACE,eAAe;EACf,mBAAmB;AACrB",sourcesContent:[".ServiceCostsLine-selectableFeature {\n margin: 0;\n padding: 0;\n display: block;\n border: none;\n background: none;\n}\n\n.ServiceCostsLine-selectableFeature:focus {\n outline-style: solid;\n outline-color: rgb(77, 144, 254);\n outline-width: 0.7px;\n}\n\n.ServiceCostsLine-selectableFeature:hover {\n text-decoration: underline;\n}\n.ServiceCostsLine-icon {\n display: inline;\n margin-right: 0.1em;\n}\n"],sourceRoot:""}]);const n=i},79531:(e,t,s)=>{s.d(t,{Z:()=>n});var a=s(87537),r=s.n(a),o=s(23645),i=s.n(o)()(r());i.push([e.id,".ServiceCostsCostLineLegend-header {\n margin-top: 0;\n font-size: 12pt;\n font-weight: bold;\n}\n","",{version:3,sources:["webpack://./src/views/servicecosts/components/ServiceCostsUIContainer/components/ServiceCostsCostLineUIInteraction/components/ServiceCostsCostLineLegendContainer/components/ServiceCostsCostLineLegend/ServiceCostsCostLineLegend.css"],names:[],mappings:"AAAA;EACE,aAAa;EACb,eAAe;EACf,iBAAiB;AACnB",sourcesContent:[".ServiceCostsCostLineLegend-header {\n margin-top: 0;\n font-size: 12pt;\n font-weight: bold;\n}\n"],sourceRoot:""}]);const n=i},17228:(e,t,s)=>{s.d(t,{Z:()=>n});var a=s(87537),r=s.n(a),o=s(23645),i=s.n(o)()(r());i.push([e.id,".ServiceCostsZipCodeUIInteraction-ServiceCostServiceCostLineDescription-title {\n font-size: 12pt;\n font-weight: bold;\n margin-top: 0;\n margin-bottom: 5px;\n}\n\n.ServiceCostsZipCodeUIInteraction-ServiceCostServiceCostLineDescription-description {\n margin-left: 20px;\n white-space: pre-line;\n margin-bottom: 20px;\n}\n","",{version:3,sources:["webpack://./src/views/servicecosts/components/ServiceCostsUIContainer/components/ServiceCostsZipCodeUIInteraction/ServiceCostsZipCodeUIInteraction.css"],names:[],mappings:"AAAA;EACE,eAAe;EACf,iBAAiB;EACjB,aAAa;EACb,kBAAkB;AACpB;;AAEA;IACI,iBAAiB;IACjB,qBAAqB;IACrB,mBAAmB;AACvB",sourcesContent:[".ServiceCostsZipCodeUIInteraction-ServiceCostServiceCostLineDescription-title {\n font-size: 12pt;\n font-weight: bold;\n margin-top: 0;\n margin-bottom: 5px;\n}\n\n.ServiceCostsZipCodeUIInteraction-ServiceCostServiceCostLineDescription-description {\n margin-left: 20px;\n white-space: pre-line;\n margin-bottom: 20px;\n}\n"],sourceRoot:""}]);const n=i},60577:(e,t,s)=>{s.d(t,{Z:()=>n});var a=s(87537),r=s.n(a),o=s(23645),i=s.n(o)()(r());i.push([e.id,".ServiceCostsZipCode-selectableFeature {\n margin: 0;\n padding: 0;\n display: block;\n border: none;\n background: none;\n}\n\n.ServiceCostsZipCode-selectableFeature:focus {\n outline-style: solid;\n outline-color: rgb(77, 144, 254);\n outline-width: 0.7px;\n}\n\n.ServiceCostsZipCode-selectableFeature:hover {\n text-decoration: underline;\n}\n.ServiceCostsZipCode-icon {\n display: inline;\n margin-right: 0.1em;\n}\n","",{version:3,sources:["webpack://./src/views/servicecosts/components/ServiceCostsUIContainer/components/ServiceCostsZipCodeUIInteraction/components/SelectableFeatures/SelectableFeatures.css"],names:[],mappings:"AAAA;EACE,SAAS;EACT,UAAU;EACV,cAAc;EACd,YAAY;EACZ,gBAAgB;AAClB;;AAEA;EACE,oBAAoB;EACpB,gCAAgC;EAChC,oBAAoB;AACtB;;AAEA;EACE,0BAA0B;AAC5B;AACA;EACE,eAAe;EACf,mBAAmB;AACrB",sourcesContent:[".ServiceCostsZipCode-selectableFeature {\n margin: 0;\n padding: 0;\n display: block;\n border: none;\n background: none;\n}\n\n.ServiceCostsZipCode-selectableFeature:focus {\n outline-style: solid;\n outline-color: rgb(77, 144, 254);\n outline-width: 0.7px;\n}\n\n.ServiceCostsZipCode-selectableFeature:hover {\n text-decoration: underline;\n}\n.ServiceCostsZipCode-icon {\n display: inline;\n margin-right: 0.1em;\n}\n"],sourceRoot:""}]);const n=i},39277:(e,t,s)=>{s.d(t,{Z:()=>n});var a=s(87537),r=s.n(a),o=s(23645),i=s.n(o)()(r());i.push([e.id,".ServiceCostZipCodeLegend-tooltip {\n margin: 0px;\n border: 1px solid #aaa;\n box-shadow: 3px 3px 3px #999;\n background-color: white;\n padding-left: 5px;\n padding-right: 5px;\n max-width: 250px;\n}\n","",{version:3,sources:["webpack://./src/views/servicecosts/components/ServiceCostsUIContainer/components/ServiceCostsZipCodeUIInteraction/components/ServiceCostZipCodeLegendContainer/components/ServiceCostZipCodeLegend/ServiceCostZipCodeLegend.css"],names:[],mappings:"AAAA;EACE,WAAW;EACX,sBAAsB;EACtB,4BAA4B;EAC5B,uBAAuB;EACvB,iBAAiB;EACjB,kBAAkB;EAClB,gBAAgB;AAClB",sourcesContent:[".ServiceCostZipCodeLegend-tooltip {\n margin: 0px;\n border: 1px solid #aaa;\n box-shadow: 3px 3px 3px #999;\n background-color: white;\n padding-left: 5px;\n padding-right: 5px;\n max-width: 250px;\n}\n"],sourceRoot:""}]);const n=i},2662:(e,t,s)=>{s.d(t,{Z:()=>n});var a=s(87537),r=s.n(a),o=s(23645),i=s.n(o)()(r());i.push([e.id,".ServiceProviders-selectableFeature {\n margin: 0;\n padding: 0;\n display: block;\n border: none;\n background: none;\n}\n\n.ServiceProviders-selectableFeature:focus {\n outline-style: solid;\n outline-color: rgb(77, 144, 254);\n outline-width: 0.7px;\n}\n\n.ServiceProviders-selectableFeature:hover {\n text-decoration: underline;\n}\n.ServiceProviders-icon {\n display: inline;\n margin-right: 0.1em;\n}\n","",{version:3,sources:["webpack://./src/views/serviceproviders/components/ServiceProvidersUIContainer/components/ServiceProvidersUIInteraction/components/SelectableFeatures/SelectableFeatures.css"],names:[],mappings:"AAAA;EACE,SAAS;EACT,UAAU;EACV,cAAc;EACd,YAAY;EACZ,gBAAgB;AAClB;;AAEA;EACE,oBAAoB;EACpB,gCAAgC;EAChC,oBAAoB;AACtB;;AAEA;EACE,0BAA0B;AAC5B;AACA;EACE,eAAe;EACf,mBAAmB;AACrB",sourcesContent:[".ServiceProviders-selectableFeature {\n margin: 0;\n padding: 0;\n display: block;\n border: none;\n background: none;\n}\n\n.ServiceProviders-selectableFeature:focus {\n outline-style: solid;\n outline-color: rgb(77, 144, 254);\n outline-width: 0.7px;\n}\n\n.ServiceProviders-selectableFeature:hover {\n text-decoration: underline;\n}\n.ServiceProviders-icon {\n display: inline;\n margin-right: 0.1em;\n}\n"],sourceRoot:""}]);const n=i},12561:(e,t,s)=>{s.d(t,{Z:()=>n});var a=s(87537),r=s.n(a),o=s(23645),i=s.n(o)()(r());i.push([e.id,".ServiceProviderSelectedFeature-serviceUnit-icon {\n display: inline;\n margin-right: 0.1em;\n}\n\n.ServiceProviderSelectedFeature-serviceUnit-button {\n margin-right: 10px;\n border-color: var(--primary_theme_color);\n margin-top: 10px;\n}\n","",{version:3,sources:["webpack://./src/views/serviceproviders/components/ServiceProvidersUIContainer/components/ServiceProvidersUIInteraction/components/SelectedFeature/SelectedFeature.css"],names:[],mappings:"AAAA;EACE,eAAe;EACf,mBAAmB;AACrB;;AAEA;EACE,kBAAkB;EAClB,wCAAwC;EACxC,gBAAgB;AAClB",sourcesContent:[".ServiceProviderSelectedFeature-serviceUnit-icon {\n display: inline;\n margin-right: 0.1em;\n}\n\n.ServiceProviderSelectedFeature-serviceUnit-button {\n margin-right: 10px;\n border-color: var(--primary_theme_color);\n margin-top: 10px;\n}\n"],sourceRoot:""}]);const n=i}}]); //# sourceMappingURL=views.bundle.js.map