{"version":3,"sources":["webpack:///./src/components/gauge/Gauges.vue?e5ce","webpack:///./src/components/gauge/Gauges.vue","webpack:///src/components/gauge/Gauges.vue","webpack:///./src/components/gauge/Gauges.vue?9ab3","webpack:///./src/components/gauge/Gauges.vue?9c05"],"names":["render","_vm","this","_c","_self","class","expanded","showGauges","staticStyle","attrs","gaugesLabel","close","staticClass","loading","_e","directives","name","rawName","value","selectedGaugeISRS","expression","on","$event","$$selectedVal","Array","prototype","filter","call","target","options","o","selected","map","val","_value","multiple","domProps","_v","_l","orderedGauges","gaugesForCountry","cc","key","g","properties","isrs_code","_s","gaugeLabel","takeMeThere","dateFrom","toISOString","split","valueAsDate","dateTo","showWaterlevelDiagram","yearCompare","Date","getFullYear","composing","showHydrologicalConditionsDiagram","staticRenderFns","mixins","pdfgen","data","computed","_objectSpread","mapState","mapGetters","$gettext","_this","gauges","forEach","isrsInfo","hasOwnProperty","countryCode","push","get","$store","state","set","isrs","dispatch","date","commit","year","watch","gauge","methods","coordinates","selectedGauge","geometry","zoom","preventZoomOut","_this2","Promise","all","catch","error","message","response","_error$response","status","concat","displayError","title","finally","includes","paneSetup","_this3","_error$response2","objname","orc","mounted","component"],"mappings":"uIAAA,W,yDCAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,MAAM,CAC/E,8CACA,CAAEC,SAAUL,EAAIM,cACf,CAACJ,EAAG,MAAM,CAACK,YAAY,CAAC,MAAQ,UAAU,CAACL,EAAG,cAAc,CAACM,MAAM,CAAC,KAAO,iBAAiB,MAAQR,EAAIS,YAAY,cAAgBT,EAAIU,SAASR,EAAG,MAAM,CAACS,YAAY,YAAY,CAAEX,EAAIY,QAASV,EAAG,oBAAoBF,EAAIa,KAAKX,EAAG,MAAM,CAACS,YAAY,UAAU,CAACT,EAAG,SAAS,CAACY,WAAW,CAAC,CAACC,KAAK,QAAQC,QAAQ,UAAUC,MAAOjB,EAAIkB,k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"js/chunk-3b383522.c54465f6.js","sourcesContent":["export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Gauges.vue?vue&type=style&index=0&id=75878335&prod&scoped=true&lang=css\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{class:[\n 'box ui-element rounded bg-white text-nowrap',\n { expanded: _vm.showGauges }\n ]},[_c('div',{staticStyle:{\"width\":\"17rem\"}},[_c('UIBoxHeader',{attrs:{\"icon\":\"ruler-vertical\",\"title\":_vm.gaugesLabel,\"closeCallback\":_vm.close}}),_c('div',{staticClass:\"box-body\"},[(_vm.loading)?_c('UISpinnerOverlay'):_vm._e(),_c('div',{staticClass:\"d-flex\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.selectedGaugeISRS),expression:\"selectedGaugeISRS\"}],staticClass:\"w-90 form-control font-weight-bold\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.selectedGaugeISRS=$event.target.multiple ? $$selectedVal : $$selectedVal[0]}}},[_c('option',{domProps:{\"value\":null}},[_c('translate',[_vm._v(\"Select Gauge\")])],1),_vm._l((_vm.orderedGauges),function(gaugesForCountry,cc){return _c('optgroup',{key:cc,attrs:{\"label\":cc}},_vm._l((gaugesForCountry),function(g){return _c('option',{key:g.properties.isrs_code,domProps:{\"value\":g.properties.isrs_code}},[_vm._v(\"\\n \"+_vm._s(_vm.gaugeLabel(g))+\"\\n \")])}),0)})],2),_c('button',{staticClass:\"btn btn-sm btn-info\",on:{\"click\":_vm.takeMeThere}},[_c('font-awesome-icon',{attrs:{\"icon\":\"crosshairs\"}})],1)]),(_vm.selectedGaugeISRS)?_c('div',{staticClass:\"mt-2\"},[_c('hr',{staticClass:\"mb-1\"}),_c('div',{staticClass:\"row no-gutters mb-2\"},[_c('div',{staticClass:\"col-6 pr-1\"},[_c('small',{staticClass:\"text-muted\"},[_c('translate',[_vm._v(\"From\")]),_vm._v(\":\")],1),_c('input',{staticClass:\"form-control form-control-sm small\",attrs:{\"type\":\"date\"},domProps:{\"value\":_vm.dateFrom && _vm.dateFrom.toISOString().split('T')[0]},on:{\"input\":function($event){_vm.dateFrom = $event.target.valueAsDate}}})]),_c('div',{staticClass:\"col-6 pl-1\"},[_c('small',{staticClass:\"text-muted\"},[_c('translate',[_vm._v(\"To\")]),_vm._v(\":\")],1),_c('input',{staticClass:\"form-control form-control-sm small\",attrs:{\"type\":\"date\"},domProps:{\"value\":_vm.dateTo && _vm.dateTo.toISOString().split('T')[0]},on:{\"input\":function($event){_vm.dateTo = $event.target.valueAsDate}}})])]),_c('button',{staticClass:\"btn btn-sm btn-info d-block w-100\",on:{\"click\":function($event){return _vm.showWaterlevelDiagram()}}},[_c('translate',[_vm._v(\"Show Waterlevels\")])],1),_c('hr',{staticClass:\"mb-1\"}),_c('div',{staticClass:\"row no-gutters mb-2\"},[_c('small',{staticClass:\"text-muted\"},[_c('translate',[_vm._v(\"Compare to\")]),_vm._v(\":\\n \")],1),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.yearCompare),expression:\"yearCompare\"}],staticClass:\"form-control form-control-sm small\",attrs:{\"type\":\"number\",\"step\":\"1\",\"min\":\"1900\",\"max\":new Date().getFullYear()},domProps:{\"value\":(_vm.yearCompare)},on:{\"input\":function($event){if($event.target.composing)return;_vm.yearCompare=$event.target.value}}})]),_c('button',{staticClass:\"btn btn-sm btn-info d-block w-100 mt-2\",on:{\"click\":function($event){return _vm.showHydrologicalConditionsDiagram()}}},[_c('translate',[_vm._v(\"Show Hydrological Conditions\")])],1)]):_vm._e()],1)],1)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n \n \n \n \n \n \n \n Select Gauge\n \n \n \n {{ gaugeLabel(g) }}\n \n \n \n \n \n \n \n \n \n \n \n From:\n \n \n \n To:\n \n \n \n \n Show Waterlevels\n \n \n \n \n Compare to:\n \n \n \n \n Show Hydrological Conditions\n \n \n \n \n \n\n\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Gauges.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Gauges.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Gauges.vue?vue&type=template&id=75878335&scoped=true\"\nimport script from \"./Gauges.vue?vue&type=script&lang=js\"\nexport * from \"./Gauges.vue?vue&type=script&lang=js\"\nimport style0 from \"./Gauges.vue?vue&type=style&index=0&id=75878335&prod&scoped=true&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"75878335\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}