{"version":3,"sources":["webpack:///./src/assets/graphics/document.svg","webpack:///./src/pages/certificates.vue","webpack:///./src/domain/composables/use-certificates.js","webpack:///src/pages/certificates.vue","webpack:///./src/pages/certificates.vue?7eee","webpack:///./src/pages/certificates.vue?ea49","webpack:///./src/assets/graphics/warning.svg","webpack:///./src/pages/certificates.vue?9944"],"names":["module","exports","render","_vm","this","_c","_self","staticClass","_v","_s","$tr","isLoading","certificates","length","_l","item","index","key","attrs","require","name","on","$event","download","link","status","again","id","_e","staticRenderFns","useCertificates","statusNew","statusAgain","async","getCertificates","eventId","userId","api","getExistingApiInstance","params","filter","entityId","i18n","locale","data","getMany","againCertificates","attr","file_path","update","components","mounted","methods","console","window","component"],"mappings":"qGAAAA,EAAOC,QAAU,IAA0B,6B,yCCA3C,IAAIC,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,gBAAgB,CAACF,EAAG,OAAO,CAACE,YAAY,QAAQ,CAACF,EAAG,KAAK,CAACE,YAAY,cAAc,CAACJ,EAAIK,GAAGL,EAAIM,GAAGN,EAAIO,IAAI,kCAAoCP,EAAIQ,WAAcR,EAAIS,aAAaC,OAAuNR,EAAG,MAAM,CAACE,YAAY,aAAa,CAACF,EAAG,KAAK,CAACE,YAAY,aAAaJ,EAAIW,GAAIX,EAAIS,cAAc,SAASG,EAAKC,GAAO,OAAOX,EAAG,KAAK,CAACY,IAAID,EAAMT,YAAY,aAAa,CAACF,EAAG,MAAM,CAACE,YAAY,qBAAqBW,MAAM,CAAC,IAAMC,EAAQ,WAAqCd,EAAG,MAAM,CAACE,YAAY,sBAAsB,CAACF,EAAG,KAAK,CAACE,YAAY,mBAAmB,CAACJ,EAAIK,GAAGL,EAAIM,GAAGM,EAAKK,SAASf,EAAG,SAAS,CAACE,YAAY,sBAAsBW,MAAM,CAAC,KAAO,UAAU,KAAO,SAASG,GAAG,CAAC,MAAQ,SAASC,GAAQ,OA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2B,GACA,EACA,KACA,KACA,MAIa,aAAA0B,E,gCCnBfvD,EAAOC,QAAU,IAA0B,4B,yDCA3C","file":"js/chunk-630a3af2.ed8ce4f1.js","sourcesContent":["module.exports = __webpack_public_path__ + \"img/document.4905cf72.svg\";","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"certificates\"},[_c('Card',{staticClass:\"card\"},[_c('h1',{staticClass:\"card-title\"},[_vm._v(_vm._s(_vm.$tr('profile.certificates.title')))]),(!_vm.isLoading && !_vm.certificates.length)?_c('div',{staticClass:\"card-warning\"},[_c('img',{staticClass:\"card-item__preview\",attrs:{\"src\":require(\"@/assets/graphics/warning.svg\")}}),_c('p',[_vm._v(_vm._s(_vm.$tr('profile.certificates.warning')))])]):_c('div',{staticClass:\"card-list\"},[_c('ul',{staticClass:\"card-list\"},_vm._l((_vm.certificates),function(item,index){return _c('li',{key:index,staticClass:\"card-item\"},[_c('img',{staticClass:\"card-item__preview\",attrs:{\"src\":require(\"@/assets/graphics/document.svg\")}}),_c('div',{staticClass:\"card-item__content\"},[_c('h4',{staticClass:\"card-item__name\"},[_vm._v(_vm._s(item.name))]),_c('Button',{staticClass:\"card-item__download\",attrs:{\"type\":\"primary\",\"size\":\"small\"},on:{\"click\":function($event){return _vm.download(item.link)}}},[_vm._v(\" \"+_vm._s(_vm.$tr('document.action.download'))+\" \")]),(item.status !== 3)?_c('Button',{staticClass:\"card-item__again\",attrs:{\"type\":\"primary\",\"size\":\"small\"},on:{\"click\":function($event){return _vm.again(item.id)}}},[_vm._v(\" \"+_vm._s(_vm.$tr('document.action.recreate'))+\" \")]):_vm._e()],1)])}),0)])])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import i18n from '@/plugins/i18n'\nimport { getExistingApiInstance } from '@/api'\n\nexport default function useCertificates() {\n\n const statusNew = 0\n const statusAgain = 3\n\n async function getCertificates(eventId, userId) {\n\n const api = getExistingApiInstance()\n const params = {\n filter: {\n entityId: eventId,\n userId: userId,\n status: [statusNew, statusAgain],\n 'template.lang': i18n.locale,\n },\n }\n const { data } = await api.certificates.getMany(params)\n\n return data\n }\n\n async function againCertificates(id) {\n\n const api = getExistingApiInstance()\n const attr = {\n file_path: null,\n }\n const { data } = await api.certificates.update(id, attr)\n\n return data\n }\n\n return {\n getCertificates,\n againCertificates,\n }\n}\n","\n \n \n {{ $tr('profile.certificates.title') }}\n \n \n {{ $tr('profile.certificates.warning') }}\n \n \n \n \n \n \n {{ item.name }}\n\n\n\n\n {{ $tr('document.action.download') }}\n \n {{ $tr('document.action.recreate') }}\n \n \n \n \n \n \n \n\n\n\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./certificates.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./certificates.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./certificates.vue?vue&type=template&id=9656134a&\"\nimport script from \"./certificates.vue?vue&type=script&lang=js&\"\nexport * from \"./certificates.vue?vue&type=script&lang=js&\"\nimport style0 from \"./certificates.vue?vue&type=style&index=0&id=9656134a&prod&lang=scss&\"\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","module.exports = __webpack_public_path__ + \"img/warning.7a3b1534.svg\";","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../node_modules/style-resources-loader/lib/index.js??ref--9-oneOf-1-4!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./certificates.vue?vue&type=style&index=0&id=9656134a&prod&lang=scss&\""],"sourceRoot":""}
{{ $tr('profile.certificates.warning') }}