{"version":3,"sources":["webpack:///./src/components/systemconfiguration/PDFTemplates.vue?0c22","webpack:///./src/components/systemconfiguration/PDFTemplates.vue","webpack:///src/components/systemconfiguration/PDFTemplates.vue","webpack:///./src/components/systemconfiguration/PDFTemplates.vue?7c8c","webpack:///./src/components/systemconfiguration/PDFTemplates.vue?abe9"],"names":["render","_vm","this","_c","_self","staticClass","ref","staticStyle","attrs","on","uploadTemplate","id","title","concat","nameLabel","class","dateLabel","typeLabel","countryLabel","_f","templates","sortColumn","sortDirection","scopedSlots","_u","key","fn","_ref","template","item","_v","_s","name","time","type","country","$event","downloadTemplate","deleteTemplate","$refs","click","uploading","staticRenderFns","mixins","sortTable","data","computed","$gettext","methods","_this","templateData","element","document","createElement","style","display","setAttribute","body","appendChild","HTTP","get","encodeURIComponent","headers","localStorage","getItem","then","response","template_data","JSON","stringify","properties","elements","catch","error","message","_error$response","status","displayError","finally","removeChild","_this2","reader","FileReader","onload","event","parse","target","result","e","value","checkElement","forEach","indexOf","post","template_name","loadTemplates","displayInfo","_e$response","readAsText","files","_this3","_error$response2","_this4","$store","commit","icon","content","confirm","label","callback","delete","removeIndex","findIndex","t","splice","cancel","mounted","component"],"mappings":"gHAAA,W,yDCAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,2BAA2B,CAACF,EAAG,QAAQ,CAACG,IAAI,iBAAiBC,YAAY,CAAC,WAAa,SAAS,SAAW,YAAYC,MAAM,CAAC,GAAK,iBAAiB,KAAO,QAAQC,GAAG,CAAC,OAASR,EAAIS,kBAAkBP,EAAG,gBAAgB,CAACK,MAAM,CAAC,QAAU,CAC9T,CAAEG,GAAI,OAAQC,MAAO,GAAFC,OAAKZ,EAAIa,WAAaC,MAAO,SAChD,CAAEJ,GAAI,OAAQC,MAAO,GAAFC,OAAKZ,EAAIe,WAAaD,MAAO,SAChD,CAAEJ,GAAI,OAAQC,MAAO,GAAFC,OA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EAAAI,KAAA,QACA2E,QAAA,CACAC,MAAA,KAAA7D,SAAA,UACA0D,KAAA,QACAI,SAAA,WACAlD,OAAAmD,OAAA,cAAAjG,OACAe,EAAAM,KAAA,KAAArB,OAAAgD,mBACAjC,EAAAI,OAEA,CACA8B,QAAA,CACA,eAAAC,aAAAC,QAAA,SACA,4CAGAC,MAAA,WACA,IAAA8C,EAAAT,EAAAlF,UAAA4F,WACA,SAAAC,GAAA,OAAAA,EAAAjF,OAAAJ,EAAAI,SAEA,IAAA+E,IACAT,EAAAlF,UAAA8F,OAAAH,EAAA,GACAf,eAAA,CACAtB,QACA9C,EAAAI,KAAA,IAAAsE,EAAAvD,SAAA,gCAMAoE,OAAA,CACAP,MAAA,KAAA7D,SAAA,UACA0D,KAAA,aAKAW,QAAA,WACA,KAAArB,kBC/VoW,I,wBCQhWsB,EAAY,eACd,EACArH,EACA0C,GACA,EACA,KACA,WACA,MAIa,aAAA2E,E","file":"js/chunk-4ca39845.d309419a.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!./PDFTemplates.vue?vue&type=style&index=0&id=d9637556&prod&scoped=true&lang=css\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"d-flex flex-column pb-4\"},[_c('input',{ref:\"uploadTemplate\",staticStyle:{\"visibility\":\"hidden\",\"position\":\"absolute\"},attrs:{\"id\":\"uploadTemplate\",\"type\":\"file\"},on:{\"change\":_vm.uploadTemplate}}),_c('UITableHeader',{attrs:{\"columns\":[\n { id: 'name', title: `${_vm.nameLabel}`, class: 'col-3' },\n { id: 'time', title: `${_vm.dateLabel}`, class: 'col-3' },\n { id: 'type', title: `${_vm.typeLabel}`, class: 'col-2' },\n { id: 'country', title: `${_vm.countryLabel}`, class: 'col-2' }\n ]}}),_c('UITableBody',{attrs:{\"data\":_vm._f(\"sortTable\")(_vm.templates,_vm.sortColumn, _vm.sortDirection)},scopedSlots:_vm._u([{key:\"row\",fn:function({ item: template }){return [_c('div',{staticClass:\"py-1 col-3\"},[_vm._v(_vm._s(template.name))]),_c('div',{staticClass:\"py-1 col-3\"},[_vm._v(_vm._s(template.time))]),_c('div',{staticClass:\"py-1 col-2\"},[_vm._v(_vm._s(template.type))]),(template.country)?_c('div',{staticClass:\"py-1 col-2\"},[_vm._v(\"\\n \"+_vm._s(template.country)+\"\\n \")]):_c('div',{staticClass:\"py-1 col-2\"},[_c('i',[_vm._v(\"global\")])]),_c('div',{staticClass:\"col py-1 text-right\"},[_c('button',{ref:\"downloadTemplate\",staticClass:\"btn btn-xs btn-info mr-1\",on:{\"click\":function($event){return _vm.downloadTemplate(template)}}},[_c('font-awesome-icon',{attrs:{\"icon\":\"download\",\"fixed-width\":\"\"}})],1),_c('button',{staticClass:\"btn btn-xs btn-dark\",on:{\"click\":function($event){return _vm.deleteTemplate(template)}}},[_c('font-awesome-icon',{attrs:{\"icon\":\"trash\",\"fixed-width\":\"\"}})],1)])]}}])}),_c('div',{staticClass:\"p-3 border-top\"},[_c('button',{staticClass:\"btn btn-info btn-sm mr-2\",on:{\"click\":function($event){_vm.type = 'map';\n _vm.$refs.uploadTemplate.click();}}},[(_vm.uploading)?_c('font-awesome-icon',{staticClass:\"fa-spin fa-fw\",attrs:{\"icon\":\"spinner\"}}):_c('font-awesome-icon',{staticClass:\"fa-fw\",attrs:{\"icon\":\"upload\"}}),_c('translate',[_vm._v(\"Upload new map template\")])],1),_c('button',{staticClass:\"btn btn-info btn-sm\",on:{\"click\":function($event){_vm.type = 'diagram';\n _vm.$refs.uploadTemplate.click();}}},[(_vm.uploading)?_c('font-awesome-icon',{staticClass:\"fa-spin fa-fw\",attrs:{\"icon\":\"spinner\"}}):_c('font-awesome-icon',{staticClass:\"fa-fw\",attrs:{\"icon\":\"upload\"}}),_c('translate',[_vm._v(\"Upload new diagram template\")])],1)])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n \n \n \n \n {{ template.name }}\n {{ template.time }}\n {{ template.type }}\n \n {{ template.country }}\n \n global\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n Upload new map template\n \n \n \n \n Upload new diagram template\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!./PDFTemplates.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!./PDFTemplates.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./PDFTemplates.vue?vue&type=template&id=d9637556&scoped=true\"\nimport script from \"./PDFTemplates.vue?vue&type=script&lang=js\"\nexport * from \"./PDFTemplates.vue?vue&type=script&lang=js\"\nimport style0 from \"./PDFTemplates.vue?vue&type=style&index=0&id=d9637556&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 \"d9637556\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}