{"version":3,"sources":["webpack:///./src/views/admin/Reporting.vue?76c9","webpack:///./src/views/admin/Reporting.vue?68d2","webpack:///src/views/admin/Reporting.vue","webpack:///./src/views/admin/Reporting.vue?d41c","webpack:///./src/views/admin/Reporting.vue?9f2c"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","_v","downloading","on","$event","downloadReport","fieldOptions","model","value","callback","$$v","selectedFields","expression","staticStyle","alert","alertVariant","_s","documents","computedFields","loading","scopedSlots","_u","key","fn","proxy","data","item","unformatted","_f","class","staticRenderFns","name","label","sortable","mounted","getDocuments","$emit","beforeDestroy","computed","fields","filter","methods","axios","get","config","then","encodedUri","encodeURI","csvContent","link","document","createElement","setAttribute","body","appendChild","click","removeChild","component"],"mappings":"yIAAA,yBAAke,EAAG,G,yCCAre,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,aAAa,CAACF,EAAG,QAAQ,CAACE,YAAY,QAAQ,CAACF,EAAG,QAAQ,CAACG,MAAM,CAAC,KAAO,KAAK,GAAK,MAAM,CAACH,EAAG,KAAK,CAACE,YAAY,QAAQ,CAACN,EAAIQ,GAAG,oBAAoBJ,EAAG,QAAQ,CAACE,YAAY,cAAc,CAACF,EAAG,YAAY,CAACE,YAAY,kCAAkCC,MAAM,CAAC,KAAOP,EAAIS,YAAY,QAAU,QAAQ,QAAU,IAAK,kBAAkB,YAAY,gBAAgB,GAAG,QAAU,OAAO,CAACL,EAAG,WAAW,CAACG,MAAM,CAAC,MAAQ,IAAIG,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOX,EAAIY,oBAAoB,CAACZ,EAAIQ,GAAG,gBAAgB,GAAGJ,EAAG,WAAW,CAACE,YAAY,OAAOC,MAAM,CAAC,GAAK,0BAA0B,QAAU,YAAY,CAACP,EAAIQ,GAAG,mBAAmB,IAAI,GAAGJ,EAA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EAAKM,QACL,EAAR,WACQL,SAASG,KAAKG,YAAYP,GAC1B,EAAR,kBACA,mBACQ,EAAR,eACQ,EAAR,QACQ,EAAR,kBCpPkW,I,wBCQ9VQ,EAAY,eACd,EACAjE,EACAsC,GACA,EACA,KACA,KACA,MAIa,aAAA2B,E","file":"js/chunk-1d2195a4.e2f8ef1b.js","sourcesContent":["import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.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!./Reporting.vue?vue&type=style&index=0&lang=css&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.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!./Reporting.vue?vue&type=style&index=0&lang=css&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"reporting\"},[_c('b-row',{staticClass:\"mb-3\"},[_c('b-col',{attrs:{\"cols\":\"12\",\"md\":\"6\"}},[_c('h1',{staticClass:\"mb-0\"},[_vm._v(\"Rapportering\")])]),_c('b-col',{staticClass:\"text-right\"},[_c('b-overlay',{staticClass:\"d-inline-block ignore-font-size\",attrs:{\"show\":_vm.downloading,\"variant\":\"light\",\"opacity\":0.75,\"spinner-variant\":\"secondary\",\"spinner-small\":\"\",\"rounded\":\"sm\"}},[_c('b-button',{attrs:{\"small\":\"\"},on:{\"click\":function($event){return _vm.downloadReport()}}},[_vm._v(\"Hent .CSV\")])],1),_c('b-button',{staticClass:\"ml-3\",attrs:{\"id\":\"popover-selected-fields\",\"variant\":\"primary\"}},[_vm._v(\"Viste felter\")])],1)],1),_c('b-popover',{attrs:{\"target\":\"popover-selected-fields\",\"triggers\":\"click blur\",\"placement\":\"bottom\"}},[_c('b-form-checkbox-group',{attrs:{\"id\":\"selected-fields\",\"options\":_vm.fieldOptions,\"name\":\"fields\",\"size\":\"sm\",\"switches\":\"\",\"stacked\":\"\"},model:{value:(_vm.selectedFields),callback:function ($$v) {_vm.selectedFields=$$v},expression:\"selectedFields\"}})],1),_c('b-alert',{staticClass:\"mt-3\",staticStyle:{\"white-space\":\"break-spaces\"},attrs:{\"show\":_vm.alert !== null,\"variant\":_vm.alertVariant}},[_vm._v(\" \"+_vm._s(_vm.alert)+\" \")]),_c('b-table',{staticClass:\"no-wrap mt-3\",attrs:{\"striped\":\"\",\"hover\":\"\",\"small\":\"\",\"items\":_vm.documents,\"fields\":_vm.computedFields,\"busy\":_vm.loading,\"sticky-header\":\"calc(100vh - 210px)\"},scopedSlots:_vm._u([{key:\"table-busy\",fn:function(){return [_c('div',{staticClass:\"d-flex justify-content-around align-items-center\",staticStyle:{\"height\":\"600px\"}},[_c('b-spinner',{attrs:{\"variant\":\"primary\"}})],1)]},proxy:true},{key:\"cell()\",fn:function(data){return [(data.value !== '')?[_vm._v(\" \"+_vm._s(data.value)+\" \")]:[_c('em',{staticClass:\"text-muted\"},[_vm._v(\"Ingen\")])]]}},{key:\"cell(10)\",fn:function(item){return [(item.unformatted !== '')?[_vm._v(\" \"+_vm._s(_vm._f(\"moment\")(item.unformatted,'dddd DD. MMMM, YYYY'))+\" \")]:[_c('em',{staticClass:\"text-muted\"},[_vm._v(\"Ingen\")])]]}},{key:\"cell(11)\",fn:function(item){return [(item.unformatted !== '')?[_vm._v(\" \"+_vm._s(_vm._f(\"moment\")(item.unformatted,'dddd DD. MMMM, YYYY'))+\" \")]:[_c('em',{staticClass:\"text-muted\"},[_vm._v(\"Ingen\")])]]}},{key:\"cell(12)\",fn:function(item){return [_c('span',{staticClass:\"font-weight-bold\",class:{\n 'text-success': item.unformatted,\n 'text-danger': !item.unformatted\n }},[(item.unformatted)?[_vm._v(\"Ja\")]:[_vm._v(\"Nej\")]],2)]}},{key:\"cell(13)\",fn:function(item){return [(item.unformatted !== '')?[_vm._v(\" \"+_vm._s(_vm._f(\"moment\")(item.unformatted,'dddd DD. MMMM, YYYY'))+\" \")]:[_c('em',{staticClass:\"text-muted\"},[_vm._v(\"Ingen\")])]]}},{key:\"cell(14)\",fn:function(item){return [_c('span',{staticClass:\"font-weight-bold\",class:{\n 'text-success': item.unformatted,\n 'text-danger': !item.unformatted\n }},[(item.unformatted)?[_vm._v(\"Ja\")]:[_vm._v(\"Nej\")]],2)]}}])})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\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!./Reporting.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!./Reporting.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Reporting.vue?vue&type=template&id=62065f59&\"\nimport script from \"./Reporting.vue?vue&type=script&lang=js&\"\nexport * from \"./Reporting.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Reporting.vue?vue&type=style&index=0&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 null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}