{"version":3,"sources":["webpack:///./src/components/stretches/Stretches.vue?6a4b","webpack:///./src/components/stretches/Stretches.vue","webpack:///src/components/stretches/Stretches.vue","webpack:///./src/components/stretches/Stretches.vue?17bc","webpack:///./src/components/stretches/Stretches.vue?64ed"],"names":["render","_vm","this","_c","_self","staticClass","attrs","title","$parent","close","loading","_e","showForm","editStretch","id","concat","nameLabel","class","dateLabel","sourceorganizationLabel","_f","filteredStretches","sortColumn","sortDirection","scopedSlots","_u","key","fn","_ref","stretch","item","on","$event","moveMapToStretch","_v","_s","properties","name","date_info","source_organization","isInStaging","gotoStaging","directives","rawName","value","reviewTooltip","expression","download","deleteStretch","staticRenderFns","mixins","sortTable","components","StretchForm","data","staging","computed","_objectSpread","mapState","mapGetters","$gettext","methods","HTTP","get","encodeURIComponent","responseType","headers","localStorage","getItem","then","response","link","document","createElement","now","Date","href","window","URL","createObjectURL","format","body","appendChild","click","removeChild","_this","stretches","filter","s","toLowerCase","includes","searchQuery","stretchName","pendingImport","find","$router","push","loadStagingData","_this2","imports","forEach","i","summary","catch","error","message","_error$response","status","displayError","finally","_error$response2","_this3","post","split","displayInfo","objnam","$store","commit","openLayersMap","getLayer","setVisible","dispatch","feature","zoom","preventZoomOut","mounted","_this4","_error$response3","component"],"mappings":"yIAAA,W,uDCAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,sBAAsB,CAACF,EAAG,cAAc,CAACG,MAAM,CAAC,KAAO,OAAO,MAAQL,EAAIM,MAAM,cAAgBN,EAAIO,QAAQC,SAASN,EAAG,MAAM,CAACE,YAAY,qBAAqB,CAAEJ,EAAIS,QAASP,EAAG,oBAAoBF,EAAIU,KAAMV,EAAIW,SAAUT,EAAG,cAAc,CAACG,MAAM,CAAC,YAAcL,EAAIY,eAAeV,EAAG,MAAM,CAACA,EAAG,gBAAgB,CAACG,MAAM,CAAC,QAAU,CACtZ,CAAEQ,GAAI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f6ad0c.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!./Stretches.vue?vue&type=style&index=0&id=ebec734c&prod&scoped=true&lang=css\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"d-flex flex-column\"},[_c('UIBoxHeader',{attrs:{\"icon\":\"road\",\"title\":_vm.title,\"closeCallback\":_vm.$parent.close}}),_c('div',{staticClass:\"position-relative\"},[(_vm.loading)?_c('UISpinnerOverlay'):_vm._e(),(_vm.showForm)?_c('StretchForm',{attrs:{\"editStretch\":_vm.editStretch}}):_c('div',[_c('UITableHeader',{attrs:{\"columns\":[\n { id: 'properties.name', title: `${_vm.nameLabel}`, class: 'col-4' },\n {\n id: 'properties.date_info',\n title: `${_vm.dateLabel}`,\n class: 'col-2'\n },\n {\n id: 'properties.source_organization',\n title: `${_vm.sourceorganizationLabel}`,\n class: 'col-3'\n }\n ]}}),_c('UITableBody',{attrs:{\"data\":_vm._f(\"sortTable\")(_vm.filteredStretches(),_vm.sortColumn, _vm.sortDirection)},scopedSlots:_vm._u([{key:\"row\",fn:function({ item: stretch }){return [_c('div',{staticClass:\"py-1 px-2 col-4\"},[_c('a',{attrs:{\"href\":\"#\"},on:{\"click\":function($event){return _vm.moveMapToStretch(stretch)}}},[_vm._v(\"\\n \"+_vm._s(stretch.properties.name)+\"\\n \")])]),_c('div',{staticClass:\"py-1 px-2 col-2\"},[_vm._v(\"\\n \"+_vm._s(_vm._f(\"surveyDate\")(stretch.properties.date_info))+\"\\n \")]),_c('div',{staticClass:\"py-1 px-2 col-3\"},[_vm._v(\"\\n \"+_vm._s(stretch.properties.source_organization)+\"\\n \")]),_c('div',{staticClass:\"py-1 px-2 col text-right\"},[(_vm.isInStaging(stretch.properties.name))?_c('button',{staticClass:\"btn btn-xs btn-danger mr-1\",on:{\"click\":function($event){return _vm.gotoStaging(stretch.properties.name)}}},[_c('font-awesome-icon',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\",value:(_vm.reviewTooltip),expression:\"reviewTooltip\"}],attrs:{\"icon\":\"exclamation-triangle\",\"fixed-width\":\"\"}})],1):_vm._e(),_c('button',{staticClass:\"btn btn-xs btn-dark mr-2\",on:{\"click\":function($event){return _vm.download(stretch)}}},[_c('font-awesome-icon',{attrs:{\"icon\":\"download\",\"fixed-width\":\"\"}})],1),_c('button',{staticClass:\"btn btn-xs btn-dark\",on:{\"click\":function($event){return _vm.deleteStretch(stretch)}}},[_c('font-awesome-icon',{attrs:{\"icon\":\"trash\",\"fixed-width\":\"\"}})],1)])]}}])}),_c('div',{staticClass:\"text-right p-2 border-top\"},[_c('button',{staticClass:\"btn btn-sm btn-info\",on:{\"click\":function($event){_vm.showForm = true;\n _vm.editStretch = null;}}},[_c('translate',[_vm._v(\"New stretch\")])],1)])],1)],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n \n \n \n \n \n \n \n \n \n \n {{ stretch.properties.name }}\n \n \n \n {{ stretch.properties.date_info | surveyDate }}\n \n \n {{ stretch.properties.source_organization }}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n New stretch\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!./Stretches.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!./Stretches.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Stretches.vue?vue&type=template&id=ebec734c&scoped=true\"\nimport script from \"./Stretches.vue?vue&type=script&lang=js\"\nexport * from \"./Stretches.vue?vue&type=script&lang=js\"\nimport style0 from \"./Stretches.vue?vue&type=style&index=0&id=ebec734c&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 \"ebec734c\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}