{"version":3,"sources":["webpack:///./src/services/resources/ProductService.js","webpack:///./src/services/resources/FileService.js","webpack:///./src/views/Client/DownloadFiles.vue","webpack:///src/views/Client/DownloadFiles.vue","webpack:///./src/views/Client/DownloadFiles.vue?796f","webpack:///./src/views/Client/DownloadFiles.vue?4891","webpack:///./src/views/Client/DownloadFiles.vue?2562"],"names":["ProductService","_Rest","_inherits","_super","_createSuper","_classCallCheck","apply","arguments","_createClass","Rest","_defineProperty","FileService","render","_vm","this","_c","_self","staticClass","attrs","product","img","_v","_s","name","author","_m","loading","listagem_files","length","_l","file","key","id","on","$event","downloadFile","require","_e","helpLink","voompLink","staticRenderFns","serviceFiles","build","serviceProduct","data","product_id","sale_id","hash","process","methods","id_file","_this","url","blobSearch","then","response","window","URL","createObjectURL","Blob","link","document","createElement","href","setAttribute","body","appendChild","click","catch","err","console","log","finally","getFiles","_this2","concat","read","seller","image_url","attachments","mounted","params","$route","component"],"mappings":"8PAKqBA,EAAc,SAAAC,GAAAC,eAAAF,EAAAC,GAAA,IAAAE,EAAAC,eAAAJ,GAAA,SAAAA,IAAA,OAAAK,eAAA,KAAAL,GAAAG,EAAAG,MAAA,KAAAC,WAAA,OAAAC,eAAAR,GAAA,CAASS,QAC1CC,eADmBV,EAAc,WAIf,a,2KCJCW,EAAW,SAAAV,GAAAC,eAAAS,EAAAV,GAAA,IAAAE,EAAAC,eAAAO,GAAA,SAAAA,IAAA,OAAAN,eAAA,KAAAM,GAAAR,EAAAG,MAAA,KAAAC,WAAA,OAAAC,eAAAG,GAAA,CAASF,QACvCC,eADmBC,EAAW,WAIZ,gB,uDCThBC,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,UAAU,CAACE,YAAY,aAAa,CAACF,EAAG,OAAO,CAACE,YAAY,iBAAiB,CAACF,EAAG,MAAM,CAACE,YAAY,aAAa,CAACF,EAAG,MAAM,CAACE,YAAY,iBAAiB,CAACF,EAAG,MAAM,CA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AAAoC,EAAAnC,UACA,KAAAA,QAAAmC,EAAAnC,SAGA,oBAAAmC,EAAAlC,OACA,KAAAA,KAAAkC,EAAAlC,MAEA,KAAA0B,aCtLoY,I,wBCQhYU,EAAY,eACd,EACAvE,EACA4B,GACA,EACA,KACA,WACA,MAIa,aAAA2C,E,6CCnBf","file":"js/chunk-78601c47.1e3b289a.js","sourcesContent":["import Rest from '@/services/Rest';\n\n/**\n * @typedef {ProductService}\n */\nexport default class ProductService extends Rest {\n /**\n * @type {String}\n */\n static resource = '/product'\n}\n","import Rest from '@/services/Rest';\n\n/**\n * @typedef {FileService}\n */\nexport default class FileService extends Rest {\n /**\n * @type {String}\n */\n static resource = '/attachment'\n}","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('section',{staticClass:\"container\"},[_c('main',{staticClass:\"main-download\"},[_c('div',{staticClass:\"info-main\"},[_c('div',{staticClass:\"dados-produto\"},[_c('img',{attrs:{\"src\":_vm.product.img,\"alt\":\"\"}}),_c('div',{staticClass:\"dados-produto-sub\"},[_c('h5',[_vm._v(_vm._s(_vm.product.name))]),_c('h6',{staticClass:\"author-title\"},[_vm._v(\"Autor: \"),_c('span',{staticClass:\"author-name\"},[_vm._v(_vm._s(_vm.product.author))])])])]),_c('h1',{attrs:{\"data-anima\":\"top\"}},[_vm._v(\" Obrigado por \"),_c('br'),_vm._v(\" comprar o produto \"),_c('br'),_c('h2',[_vm._v(_vm._s(_vm.product.name))])]),_vm._m(0),_c('div',{staticClass:\"listagem-arquivos\",attrs:{\"data-anima\":\"bottom\"}},[_c('div',{staticClass:\"lista\"},[(!_vm.loading && _vm.listagem_files.length)?_c('ul',_vm._l((_vm.listagem_files),function(file){return _c('li',{key:file.id,staticClass:\"file-item\",attrs:{\"id\":'file-' + file.id},on:{\"click\":function($event){return _vm.downloadFile(file.id, file.name)}}},[_c('div',{staticClass:\"ilu\"},[_c('span',[_vm._v(\" \"+_vm._s(file.name)+\" \")])]),_c('img',{attrs:{\"src\":require(\"@/assets/img/icons/down.svg\")}}),_c('b-tooltip',{attrs:{\"target\":'file-' + file.id,\"title\":\"Clique para baixar o arquivo\"}})],1)}),0):_vm._e(),(_vm.loading)?_c('div',{key:\"loading\",staticClass:\"py-5 my-5 d-flex justify-content-center align-items-center\"},[_c('b-spinner',{attrs:{\"variant\":\"dark\",\"label\":\"Spinning\"}})],1):_vm._e(),(!_vm.loading && !_vm.listagem_files.length)?_c('b-row',{staticClass:\"Table-body justify-content-center\"},[_c('p',{staticClass:\"nao-encontrado\"},[_vm._v(\"Nenhum arquivo disponível\")])]):_vm._e()],1)])]),_vm._m(1)]),_c('footer',{staticClass:\"footer-download\"},[_c('div',[_c('a',{staticClass:\"help\",attrs:{\"href\":_vm.helpLink,\"target\":\"_blank\",\"data-anima\":\"right\"}},[_vm._m(2),_c('span',[_vm._v(\"Preciso de ajuda\")])])]),_c('div',{staticClass:\"div-logo\"},[_c('span',[_vm._v(\"Feito com\")]),_c('a',{attrs:{\"href\":_vm.voompLink,\"target\":\"_blank\"}},[_c('img',{attrs:{\"src\":require(\"@/assets/img/icons/logo-voomp.svg\")}})])])])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('h4',{attrs:{\"data-anima\":\"bottom\"}},[_vm._v(\" Abaixo estão todos os \"),_c('span',[_vm._v(\" arquivos para download\")]),_c('br'),_vm._v(\" disponibilizados pelo produtor \")])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"ilustracao\",attrs:{\"data-anima\":\"bottom\"}},[_c('img',{attrs:{\"src\":require(\"@/assets/img/ilu-download.png\")}})])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"icon-help\"},[_c('img',{attrs:{\"src\":require(\"@/assets/img/icons/new-help.svg\")}})])\n}]\n\nexport { render, staticRenderFns }","\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/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./DownloadFiles.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/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./DownloadFiles.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./DownloadFiles.vue?vue&type=template&id=bdda2968&scoped=true&\"\nimport script from \"./DownloadFiles.vue?vue&type=script&lang=js&\"\nexport * from \"./DownloadFiles.vue?vue&type=script&lang=js&\"\nimport style0 from \"./DownloadFiles.vue?vue&type=style&index=0&id=bdda2968&prod&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"bdda2968\",\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./DownloadFiles.vue?vue&type=style&index=0&id=bdda2968&prod&scoped=true&lang=css&\""],"sourceRoot":""}