{"version":3,"sources":["webpack:///./src/views/NewLoadingSpinner.vue?4be3","webpack:///./src/views/NewLoadingSpinner.vue?5079","webpack:///src/views/NewLoadingSpinner.vue","webpack:///./src/views/NewLoadingSpinner.vue","webpack:///./src/views/transparency/agreements/CustomAgreements.vue?8010","webpack:///src/views/transparency/agreements/CustomAgreements.vue","webpack:///./src/views/transparency/agreements/CustomAgreements.vue?a4cf","webpack:///./src/views/transparency/agreements/CustomAgreements.vue","webpack:///./src/views/Loading.vue?014c","webpack:///./src/views/Loading.vue?f994","webpack:///src/views/Loading.vue","webpack:///./src/views/Loading.vue","webpack:///./src/views/transparency/agreements/PublisherAgreements.vue?bec3","webpack:///src/views/transparency/agreements/PublisherAgreements.vue","webpack:///./src/views/transparency/agreements/PublisherAgreements.vue?a706","webpack:///./src/views/transparency/agreements/PublisherAgreements.vue","webpack:///./src/views/NewLoadingSpinner.vue?3ac0","webpack:///./src/views/transparency/agreements/Index.vue?de71","webpack:///src/views/transparency/agreements/Index.vue","webpack:///./src/views/transparency/agreements/Index.vue?7281","webpack:///./src/views/transparency/agreements/Index.vue","webpack:///./src/assets/images/icons/pdf.png"],"names":["data","component","_vm","this","$createElement","_self","_c","_m","_h","staticClass","staticRenderFns","components","Loading","BRow","BCard","BImg","BCol","BButton","BBadge","pdfIcon","require","agreementList","loading","created","getInvoiceList","methods","downLoad","axios","url","method","responseType","$http","get","params","tabName","then","reverse","base64ToPDF","base64Str","binaryStr","atob","len","length","bytes","Uint8Array","i","charCodeAt","blob","Blob","type","blobURL","window","URL","createObjectURL","open","agreement","file","fileId","m","_l","key","id","attrs","_v","_s","fileName","isApplied","uploadTime","aggrementType","charAt","toUpperCase","slice","on","$event","download","_e","BSpinner","NewLoadingSpinner","props","loadingStatus","String","default","label","staticStyle","BCardText","BTabs","BTab","BModal","CustomAgreements","PublisherAgreements","activeTab","allowedTabs","checkAuth","getInitialActiveTab","tabChanged","includes","$router","push","name","routeName","$route","newTabIndex","model","value","callback","$$v","expression","module","exports"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,UAAEsG,SAAS,SAAUC,GAAMvG,EAAIwF,UAAUe,GAAKC,WAAW,cAAc,CAACpG,EAAG,QAAQ,CAACwD,MAAM,CAAC,MAAQ,oBAAoB,UAAY5D,EAAIyF,YAAYI,SAAS,KAAK,CAAoB,IAAlB7F,EAAIwF,UAAiBpF,EAAG,qBAAqBJ,EAAIyE,MAAM,GAAGrE,EAAG,QAAQ,CAACwD,MAAM,CAAC,MAAQ,uBAAuB,UAAY5D,EAAIyF,YAAYI,SAAS,KAAK,CAAoB,IAAlB7F,EAAIwF,UAAiBpF,EAAG,wBAAwBJ,EAAIyE,MAAM,IAAI,IAAI,IAAI,IAAI,IAAI,GAC/8B,IGSpBjE,EAEA,KACA,KACA,MAIa,UAAAT,E,8BClBf0G,EAAOC,QAAU,IAA0B,sBAAsB","file":"js/chunk-53175eb5.02cbc132.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _vm._m(0)}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"hollow-dots-spinner\"},[_c('div',{staticClass:\"dot\"}),_c('div',{staticClass:\"dot\"}),_c('div',{staticClass:\"dot\"})])}]\n\nexport { render, staticRenderFns }","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!./NewLoadingSpinner.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!./NewLoadingSpinner.vue?vue&type=script&lang=js\"","<template>\n <div class=\"hollow-dots-spinner\">\n <div class=\"dot\"></div>\n <div class=\"dot\"></div>\n <div class=\"dot\"></div>\n </div>\n</template>\n\n<script>\nexport default {\n data() {\n return {\n };\n },\n};\n</script>\n\n<style scoped>\n.hollow-dots-spinner, .hollow-dots-spinner * {\n box-sizing: border-box;\n}\n\n.hollow-dots-spinner {\n height: 15px;\n width: calc(30px * 3);\n}\n\n.hollow-dots-spinner .dot {\n width: 15px;\n height: 15px;\n margin: 0 calc(15px / 2);\n border: calc(15px / 5) solid #fff;\n border-radius: 50%;\n float: left;\n transform: scale(0);\n animation: hollow-dots-spinner-animation 1000ms ease infinite 0ms;\n}\n\n.hollow-dots-spinner .dot:nth-child(1) {\n animation-delay: calc(300ms * 1);\n}\n\n.hollow-dots-spinner .dot:nth-child(2) {\n animation-delay: calc(300ms * 2);\n}\n\n.hollow-dots-spinner .dot:nth-child(3) {\n animation-delay: calc(300ms * 3);\n}\n\n@keyframes hollow-dots-spinner-animation {\n 50% {\n transform: scale(1);\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n}\n\n</style>\n\n","import { render, staticRenderFns } from \"./NewLoadingSpinner.vue?vue&type=template&id=5db0d5ca&scoped=true\"\nimport script from \"./NewLoadingSpinner.vue?vue&type=script&lang=js\"\nexport * from \"./NewLoadingSpinner.vue?vue&type=script&lang=js\"\nimport style0 from \"./NewLoadingSpinner.vue?vue&type=style&index=0&id=5db0d5ca&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 \"5db0d5ca\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('section',[_vm._l((_vm.agreementList),function(agreement){return _c('b-card',{key:agreement.id,staticClass:\"mb-1\"},[_c('b-row',[_c('b-col',{attrs:{\"md\":\"6\"}},[_c('h4',{staticClass:\"mb-0\"},[_c('b-img',{staticClass:\"mr-1\",attrs:{\"src\":_vm.pdfIcon,\"alt\":\"browser img\",\"height\":\"32\"}}),_vm._v(\" \"+_vm._s(agreement.fileName)+\" \")],1)]),_c('b-col',{staticClass:\"d-flex align-items-center justify-content-end mt-md-0 mt-1\",attrs:{\"md\":\"6\"}},[_c('b-badge',{staticClass:\"mr-1\",attrs:{\"variant\":\"light-primary\",\"size\":\"lg\"}},[_vm._v(\" \"+_vm._s(agreement.isApplied === 1 ? 'Applied' : 'Not Applied')+\" \")]),_c('b-badge',{staticClass:\"mr-1\",attrs:{\"variant\":\"light-secondary\",\"size\":\"lg\"}},[_vm._v(\" \"+_vm._s(agreement.uploadTime)+\" \")]),_c('b-badge',{staticClass:\"mr-1\",attrs:{\"variant\":agreement.aggrementType === \"publishers\" ? \"light-warning\" : \"light-info\"}},[_vm._v(\" \"+_vm._s(agreement.aggrementType.charAt(0).toUpperCase() + agreement.aggrementType.slice(1))+\" \")]),_c('b-button',{attrs:{\"variant\":\"primary\",\"size\":\"sm\",\"target\":\"_blank\"},on:{\"click\":function($event){return _vm.download(agreement)}}},[_c('feather-icon',{staticClass:\"cursor-pointer\",attrs:{\"icon\":\"EyeIcon\",\"size\":\"14\"}})],1)],1)],1)],1)}),((_vm.agreementList.length === 0) & (!_vm.loading))?[_c('b-card',{staticClass:\"text-center p-5\"},[_c('h2',[_vm._v(\"You haven't added an invoice yet.\")])])]:_vm._e(),(_vm.loading)?[_c('b-card',{staticClass:\"text-center p-5\"},[_c('loading')],1)]:_vm._e()],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <section>\n <b-card class=\"mb-1\" v-for=\"agreement in agreementList\" :key=\"agreement.id\">\n <b-row>\n <b-col\n md=\"6\"\n >\n <h4 class=\"mb-0\">\n <b-img\n :src=\"pdfIcon\"\n alt=\"browser img\"\n class=\"mr-1\"\n height=\"32\"\n />\n {{agreement.fileName}}\n </h4>\n </b-col>\n <b-col\n md=\"6\"\n class=\"d-flex align-items-center justify-content-end mt-md-0 mt-1\"\n >\n <b-badge variant=\"light-primary\" class=\"mr-1\" size=\"lg\">\n {{agreement.isApplied === 1 ? 'Applied' : 'Not Applied' }}\n </b-badge>\n <b-badge variant=\"light-secondary\" class=\"mr-1\" size=\"lg\">\n {{agreement.uploadTime}}\n </b-badge>\n <b-badge :variant = 'agreement.aggrementType === \"publishers\" ? \"light-warning\" : \"light-info\" ' class=\"mr-1\">\n {{ agreement.aggrementType.charAt(0).toUpperCase() + agreement.aggrementType.slice(1)}}\n </b-badge>\n\n <b-button\n variant=\"primary\" size=\"sm\" target=\"_blank\" @click=\"download(agreement)\"\n >\n <feather-icon\n icon=\"EyeIcon\"\n size=\"14\"\n class=\"cursor-pointer\"\n />\n </b-button>\n </b-col>\n </b-row>\n </b-card>\n <template v-if = \"(agreementList.length === 0) & (!loading)\">\n <!--\n Eğer hiç invoice yoksa\n-->\n <b-card class=\"text-center p-5\">\n <h2>You haven't added an invoice yet.</h2>\n </b-card>\n </template>\n <template v-if=\"loading\" >\n <b-card class=\"text-center p-5\">\n <loading />\n </b-card>\n </template>\n </section>\n</template>\n<script>\nimport {\n BRow,\n BCol,\n BCard,\n BBadge,\n BButton,\n BImg\n} from 'bootstrap-vue'\nimport axios from 'axios'\nimport Loading from \"@/views/Loading.vue\";\n\nexport default {\n components: {\n Loading,\n BRow,\n BCard,\n BImg,\n BCol,\n BButton,\n BBadge\n },\n data () {\n return {\n pdfIcon: require('@/assets/images/icons/pdf.png'),\n agreementList: [],\n loading: true\n }\n },\n created () {\n this.getInvoiceList()\n },\n methods: {\n downLoad () {\n axios({\n url: '@/assets/images/uploads/agreement-sample.pdf',\n method: 'GET',\n responseType: 'file'\n })\n },\n async getInvoiceList () {\n this.loading = true\n this.agreementList = await this.$http.get('audit/aggrement/list', { params: { tabName: 'custom' } }).then(({ data }) => { return data.reverse() })\n this.loading = false\n },\n base64ToPDF (base64Str) {\n const binaryStr = atob(base64Str)\n const len = binaryStr.length\n const bytes = new Uint8Array(len)\n for (let i = 0; i < len; i++) {\n bytes[i] = binaryStr.charCodeAt(i)\n }\n const blob = new Blob([bytes], { type: 'application/pdf' })\n const blobURL = window.URL.createObjectURL(blob)\n window.open(blobURL)\n },\n async download (agreement) {\n const file = await this.$http.get('audit/aggrement/download',{params: {fileId: agreement.fileId}}).then(({ data }) => { return data })\n this.base64ToPDF(file)\n }\n }\n}\n</script>\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!./CustomAgreements.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!./CustomAgreements.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./CustomAgreements.vue?vue&type=template&id=2deff3e6\"\nimport script from \"./CustomAgreements.vue?vue&type=script&lang=js\"\nexport * from \"./CustomAgreements.vue?vue&type=script&lang=js\"\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","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:\"d-flex justify-content-center align-items-center mb-1\",staticStyle:{\"height\":\"100%\",\"min-height\":\"500px\",\"display\":\"flex\"}},[(_vm.loadingStatus === 'loading')?_c('span',{staticStyle:{\"text-align\":\"center\"}},[_c('new-loading-spinner')],1):_vm._e()])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","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!./Loading.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!./Loading.vue?vue&type=script&lang=js\"","<template>\n <div>\n <div\n style=\"height: 100%; min-height: 500px; display: flex\"\n class=\"d-flex justify-content-center align-items-center mb-1\"\n >\n <span\n v-if=\"loadingStatus === 'loading'\"\n style=\"text-align: center\"\n >\n <new-loading-spinner />\n </span>\n </div>\n </div>\n</template>\n\n<script>\nimport { BSpinner } from 'bootstrap-vue'\nimport NewLoadingSpinner from \"@/views/NewLoadingSpinner.vue\";\n\nexport default {\n components: {\n BSpinner,\n NewLoadingSpinner\n },\n props: {\n loadingStatus: {\n type: String,\n default: 'loading',\n },\n label: {\n type: String,\n default: 'Please Wait',\n },\n },\n}\n</script>\n","import { render, staticRenderFns } from \"./Loading.vue?vue&type=template&id=77246907\"\nimport script from \"./Loading.vue?vue&type=script&lang=js\"\nexport * from \"./Loading.vue?vue&type=script&lang=js\"\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","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('section',[_vm._l((_vm.agreementList),function(agreement){return _c('b-card',{key:agreement.id,staticClass:\"mb-1\"},[_c('b-row',[_c('b-col',{attrs:{\"md\":\"6\"}},[_c('h4',{staticClass:\"mb-0\"},[_c('b-img',{staticClass:\"mr-1\",attrs:{\"src\":_vm.pdfIcon,\"alt\":\"browser img\",\"height\":\"32\"}}),_vm._v(\" \"+_vm._s(agreement.fileName)+\" \")],1)]),_c('b-col',{staticClass:\"d-flex align-items-center justify-content-end mt-md-0 mt-1\",attrs:{\"md\":\"6\"}},[_c('b-badge',{staticClass:\"mr-1\",attrs:{\"variant\":\"light-primary\",\"size\":\"lg\"}},[_vm._v(\" \"+_vm._s(agreement.isApplied === 1 ? 'Applied' : 'Not Applied')+\" \")]),_c('b-badge',{staticClass:\"mr-1\",attrs:{\"variant\":\"light-secondary\",\"size\":\"lg\"}},[_vm._v(\" \"+_vm._s(agreement.uploadTime)+\" \")]),_c('b-badge',{staticClass:\"mr-1\",attrs:{\"variant\":agreement.aggrementType === \"publishers\" ? \"light-warning\" : \"light-info\"}},[_vm._v(\" \"+_vm._s(agreement.aggrementType.charAt(0).toUpperCase() + agreement.aggrementType.slice(1))+\" \")]),_c('b-button',{attrs:{\"variant\":\"primary\",\"size\":\"sm\",\"target\":\"_blank\"},on:{\"click\":function($event){return _vm.download(agreement)}}},[_c('feather-icon',{staticClass:\"cursor-pointer\",attrs:{\"icon\":\"EyeIcon\",\"size\":\"14\"}})],1)],1)],1)],1)}),((_vm.agreementList.length === 0) & (!_vm.loading))?[_c('b-card',{staticClass:\"text-center p-5\"},[_c('h2',[_vm._v(\"You haven't added an invoice yet.\")])])]:_vm._e(),(_vm.loading)?[_c('b-card',{staticClass:\"text-center p-5\"},[_c('loading')],1)]:_vm._e()],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <section>\n <b-card class=\"mb-1\" v-for=\"agreement in agreementList\" :key=\"agreement.id\">\n <b-row>\n <b-col\n md=\"6\"\n >\n <h4 class=\"mb-0\">\n <b-img\n :src=\"pdfIcon\"\n alt=\"browser img\"\n class=\"mr-1\"\n height=\"32\"\n />\n {{agreement.fileName}}\n </h4>\n </b-col>\n <b-col\n md=\"6\"\n class=\"d-flex align-items-center justify-content-end mt-md-0 mt-1\"\n >\n <b-badge variant=\"light-primary\" class=\"mr-1\" size=\"lg\">\n {{agreement.isApplied === 1 ? 'Applied' : 'Not Applied' }}\n </b-badge>\n <b-badge variant=\"light-secondary\" class=\"mr-1\" size=\"lg\">\n {{agreement.uploadTime}}\n </b-badge>\n <b-badge :variant = 'agreement.aggrementType === \"publishers\" ? \"light-warning\" : \"light-info\" ' class=\"mr-1\">\n {{ agreement.aggrementType.charAt(0).toUpperCase() + agreement.aggrementType.slice(1)}}\n </b-badge>\n\n <b-button\n variant=\"primary\" size=\"sm\" target=\"_blank\" @click=\"download(agreement)\"\n >\n <feather-icon\n icon=\"EyeIcon\"\n size=\"14\"\n class=\"cursor-pointer\"\n />\n </b-button>\n </b-col>\n </b-row>\n </b-card>\n <template v-if = \"(agreementList.length === 0) & (!loading)\">\n <!--\n Eğer hiç invoice yoksa\n-->\n <b-card class=\"text-center p-5\">\n <h2>You haven't added an invoice yet.</h2>\n </b-card>\n </template>\n <template v-if=\"loading\" >\n <b-card class=\"text-center p-5\">\n <loading />\n </b-card>\n </template>\n </section>\n</template>\n<script>\nimport {\n BRow,\n BCol,\n BCard,\n BBadge,\n BButton,\n BImg\n} from 'bootstrap-vue'\nimport axios from 'axios'\nimport Loading from \"@/views/Loading.vue\";\n\nexport default {\n components: {\n Loading,\n BRow,\n BCard,\n BImg,\n BCol,\n BButton,\n BBadge\n },\n data () {\n return {\n pdfIcon: require('@/assets/images/icons/pdf.png'),\n agreementList: [],\n loading: true\n }\n },\n created () {\n this.getInvoiceList()\n },\n methods: {\n downLoad () {\n axios({\n url: '@/assets/images/uploads/agreement-sample.pdf',\n method: 'GET',\n responseType: 'file'\n })\n },\n async getInvoiceList () {\n this.loading = true\n this.agreementList = await this.$http.get('audit/aggrement/list', { params: { tabName: 'publisher' } }).then(({ data }) => { return data.reverse() })\n this.loading = false\n },\n base64ToPDF (base64Str) {\n const binaryStr = atob(base64Str)\n const len = binaryStr.length\n const bytes = new Uint8Array(len)\n for (let i = 0; i < len; i++) {\n bytes[i] = binaryStr.charCodeAt(i)\n }\n const blob = new Blob([bytes], { type: 'application/pdf' })\n const blobURL = window.URL.createObjectURL(blob)\n window.open(blobURL)\n },\n async download (agreement) {\n const file = await this.$http.get('audit/aggrement/download',{params: {fileId: agreement.fileId}}).then(({ data }) => { return data })\n this.base64ToPDF(file)\n }\n }\n}\n</script>\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!./PublisherAgreements.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!./PublisherAgreements.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./PublisherAgreements.vue?vue&type=template&id=10104340\"\nimport script from \"./PublisherAgreements.vue?vue&type=script&lang=js\"\nexport * from \"./PublisherAgreements.vue?vue&type=script&lang=js\"\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","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-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-loader/lib/index.js??vue-loader-options!./NewLoadingSpinner.vue?vue&type=style&index=0&id=5db0d5ca&prod&scoped=true&lang=css\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('section',[_c('div',{staticClass:\"mt-2\"},[_c('b-row',[_c('b-col',{attrs:{\"lg\":\"2\"}}),_c('b-col',{attrs:{\"lg\":\"8\"}},[_c('b-row',[_c('b-col',[_c('h6',{staticClass:\"text-muted\"},[_vm._v(\" Transparency \")]),_c('h2',{staticClass:\"mb-1\"},[_vm._v(\" Agreements \")])])],1)],1)],1),_c('b-row',[_c('b-col',{attrs:{\"lg\":\"2\"}}),_c('b-col',{attrs:{\"lg\":\"8\"}},[_c('b-tabs',{attrs:{\"content-class\":\"mt-2\",\"active-tab-class\":\"text-success\",\"pills\":\"\",\"justified\":\"\"},on:{\"input\":_vm.tabChanged},model:{value:(_vm.activeTab),callback:function ($$v) {_vm.activeTab=$$v},expression:\"activeTab\"}},[_c('b-tab',{attrs:{\"title\":\"Custom Agreements\",\"disabled\":!_vm.allowedTabs.includes(0)}},[(_vm.activeTab === 0)?_c('custom-agreements'):_vm._e()],1),_c('b-tab',{attrs:{\"title\":\"Publisher Agreements\",\"disabled\":!_vm.allowedTabs.includes(1)}},[(_vm.activeTab === 1)?_c('publisher-agreements'):_vm._e()],1)],1)],1)],1)],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <section>\n <div class=\"mt-2\">\n <b-row>\n <b-col lg=\"2\" />\n <b-col lg=\"8\">\n <b-row>\n <b-col>\n <h6 class=\"text-muted\">\n Transparency\n </h6>\n <h2 class=\"mb-1\">\n Agreements\n </h2>\n </b-col>\n </b-row>\n </b-col>\n </b-row>\n <b-row>\n <b-col lg=\"2\" />\n <b-col lg=\"8\">\n <b-tabs\n v-model=\"activeTab\"\n content-class=\"mt-2\"\n active-tab-class=\"text-success\"\n pills\n justified\n @input=\"tabChanged\"\n >\n <b-tab\n title=\"Custom Agreements\"\n :disabled=\"!allowedTabs.includes(0)\"\n >\n <custom-agreements v-if=\"activeTab === 0\" />\n </b-tab>\n <b-tab\n title=\"Publisher Agreements\"\n :disabled=\"!allowedTabs.includes(1)\"\n >\n <publisher-agreements v-if=\"activeTab === 1\" />\n </b-tab>\n </b-tabs>\n </b-col>\n </b-row>\n </div>\n </section>\n</template>\n<script>\nimport {\n BRow,\n BCol,\n BCard,\n BBadge,\n BButton,\n BCardText, BImg,\n BTab, BTabs, BModal, VBModal\n} from 'bootstrap-vue'\nimport CustomAgreements from './CustomAgreements.vue'\nimport PublisherAgreements from './PublisherAgreements.vue'\nimport axios from 'axios'\n\nexport default {\n components: {\n BRow,\n BCard,\n BImg,\n BCol,\n BButton,\n BBadge,\n BCardText,\n BTabs,\n BTab,\n BModal,\n CustomAgreements,\n PublisherAgreements\n },\n data () {\n return {\n data: {},\n activeTab: null,\n pdfIcon: require('@/assets/images/icons/pdf.png'),\n allowedTabs: [0,1]\n }\n },\n async created () {\n await this.checkAuth()\n this.activeTab = this.getInitialActiveTab()\n this.tabChanged(this.activeTab)\n },\n methods: {\n async checkAuth () {\n const allowedTabs = await this.$http.get('audit/aggrement/auth').then(({ data }) => { return data })\n if (allowedTabs.includes('publishers') && allowedTabs.includes('custom')) {\n this.allowedTabs = [0, 1]\n } else if (allowedTabs.includes('custom') && !allowedTabs.includes('publishers')) {\n this.allowedTabs = [0]\n } else if (allowedTabs.includes('publishers') && !allowedTabs.includes('custom')) {\n this.allowedTabs = [1]\n } else {\n this.$router.push({ name: 'misc-not-authorized' })\n }\n },\n downLoad () {\n axios({\n url: '@/assets/images/uploads/invoice-sample.pdf',\n method: 'GET',\n responseType: 'file'\n })\n },\n getInitialActiveTab () {\n const routeName = this.$route.name\n if (routeName === 'transparency-custom') {\n return 0\n } else if (routeName === 'transparency-publisher') {\n return 1\n } else {\n return this.allowedTabs[0]\n }\n },\n tabChanged (newTabIndex) {\n if (newTabIndex === 0) {\n this.$router.push('/transparency/agreements/custom')\n } else if (newTabIndex === 1) {\n this.$router.push('/transparency/agreements/publisher')\n }\n }\n }\n}\n</script>\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!./Index.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!./Index.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=3edaba75\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.vue?vue&type=script&lang=js\"\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/pdf.e49f1d59.png\";"],"sourceRoot":""}