{"version":3,"sources":["webpack:///./src/views/buyerRequests/Requests.vue?5907","webpack:///./src/views/contracts/Requests.vue?08ef","webpack:///./src/views/superAdmin/quickQuotes/Requests.vue?e1c9","webpack:///./src/views/contracts/Requests.vue?fdb3","webpack:///./src/views/approvalRequests/Requests.vue?1315","webpack:///./src/views/superAdmin/buyers/Buyers.vue?adb4","webpack:///./src/views/superAdmin/buyers/Buyers.vue","webpack:///./src/views/superAdmin/buyers/Buyers.vue?871a","webpack:///./src/views/superAdmin/buyers/Buyers.vue?a96d","webpack:///./src/views/buyerRequests/Requests.vue?17a5","webpack:///./src/views/buyerRequests/Requests.vue","webpack:///./src/views/buyerRequests/Requests.vue?e001","webpack:///./src/views/buyerRequests/Requests.vue?217a","webpack:///./src/views/contracts/helpers/YearPicker.vue?be8a","webpack:///./src/views/contracts/Requests.vue?d032","webpack:///./src/models/enums/contractDountChartLabels.ts","webpack:///./src/models/enums/contractBarChartLabels.ts","webpack:///./src/views/contracts/helpers/YearPicker.vue?5b27","webpack:///./src/views/contracts/helpers/YearPicker.vue","webpack:///./src/views/contracts/helpers/YearPicker.vue?666d","webpack:///./src/views/contracts/helpers/YearPicker.vue?b81e","webpack:///./src/views/contracts/Requests.vue","webpack:///./src/views/contracts/Requests.vue?7814","webpack:///./src/views/contracts/Requests.vue?2731","webpack:///./src/views/contracts/helpers/BarChart.vue?81ef","webpack:///./src/views/contracts/helpers/BarChart.vue","webpack:///./src/views/contracts/helpers/BarChart.vue?c5d4","webpack:///./src/views/contracts/helpers/BarChart.vue?e481","webpack:///./src/views/approvalRequests/Requests.vue?c3b7","webpack:///./src/views/approvalRequests/Requests.vue","webpack:///./src/views/approvalRequests/Requests.vue?3b88","webpack:///./src/views/approvalRequests/Requests.vue?d2fe","webpack:///./src/views/approvalRequests/Requests.vue?8373","webpack:///./src/views/contracts/helpers/BarChart.vue?e0b4","webpack:///./src/views/contracts/helpers/DoughnutChart.vue?6a05","webpack:///./src/views/contracts/helpers/DoughnutChart.vue","webpack:///./src/views/contracts/helpers/DoughnutChart.vue?7caf","webpack:///./src/views/contracts/helpers/DoughnutChart.vue?fa96","webpack:///./src/views/contracts/helpers/DoughnutChart.vue?f43f","webpack:///../../../src/components/VGrid/grid.ts","webpack:///../../../src/components/VGrid/VContainer.ts","webpack:///./src/views/superAdmin/quickQuotes/Requests.vue?5516","webpack:///./src/views/superAdmin/quickQuotes/Requests.vue","webpack:///./src/views/superAdmin/quickQuotes/Requests.vue?bdbc","webpack:///./src/views/superAdmin/quickQuotes/Requests.vue?8ecb","webpack:///./src/views/superAdmin/buyers/Buyers.vue?f3cb","webpack:///./src/views/buyerRequests/Requests.vue?7463"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","_v","staticClass","redirected","_e","key","routerViewKey","staticRenderFns","auth","namespace","SuperAdminBuyers","Vue","constructor","quickQuoteFormDialogKey","createQuickQuoteDialog","quickQuoteId","created","AuthRedirectService","handleAuthRouteRedirect","isSuperAdmin","then","__decorate","Getter","IS_ACCOUNT_SUPER_ADMIN","Component","component","VCol","VContainer","VRow","staticStyle","_s","$t","directives","name","rawName","value","expression","on","$event","$$selectedVal","Array","prototype","filter","call","target","options","o","selected","map","val","_value","selectedLang","multiple","changeLang","_l","lang","code","domProps","isAccountApprover","openCreateQuickQuoteDialog","closeCreateQuickQuoteDialog","model","callback","$$v","onQuickQuoteCreated","Requests","locales","localStorage","getItem","isBuyerSubscribed","setItem","location","reload","IS_BUYER_SUBSCRIBED","IS_ACCOUNT_APPROVER","components","QuickQuoteForm","VBtn","VDialog","ContractDountChartLabels","responseFunnelLoading","IsContractsAvailable","responseFunnelSeries","responseFunnelLabels","filterContracts","totalContractsLoading","totalContractsSeries","allMonthsLabels","filterContractsByMonth","moveToCreateContract","handleYearSelected","searchText","SearchContracts","currentFilterString","showArchived","handleArchiveButtonHandler","buyerRequestHeaders","contracts","approvalRequestsLoading","goToRequest","scopedSlots","_u","fn","ref","item","status","unarchiveContract","id","values","Map","Live","Upcoming","Expired","toString","get","parse","getValues","from","getKeys","keys","getEnumValueByLabel","label","enumValue","enumLabel","entries","ContractBarChartLabels","January","Feburary","March","April","May","June","July","August","September","October","November","December","_g","_b","stopPropagation","menu","selectedYear","year","class","selectYear","YearPicker","Date","getFullYear","years","length","_","index","$emit","VList","VListItem","VListItemContent","VListItemTitle","VMenu","VTextField","selectedBuyerRequest","BuyerRequestState","monthlyContractsCount","text","align","sortable","loadResponseFunnel","listContracts","loadBarChart","console","log","getContractDountChartLabels","$router","push","ContractsApiService","getResponseFunnel","res","liveCount","toBeExpiredCount","expiredCount","catch","err","Toast","error","finally","filterArchivedContracts","selectedStatus","Number","ContractBaseStatus","Archive","labelName","getContractBaseStatusbyLabel","getContractMonthbyLabel","row","GetOnlyArchivedContracts","contractStatus","month","isArchivedContractsOnly","x","obj","expirationDate","undefined","toDateString","Id","c","success","getContractBarChartLabels","getMonthlyContractsCount","contractsCountByMonth","monthlyContractsSeries","newContractObject","find","contractCount","data","IS_ACCOUNT_ATLEAST_BUYER","LoadingSpinner","DoughnutChart","ConfirmDialog","ApprovalRequestStateChip","ContractBaseStatusChip","BarChart","VDataTable","series","GetLabelName","chart","type","toolbar","show","zoom","enabled","selection","colors","plotOptions","bar","horizontal","borderRadius","columnWidth","dataLabels","position","fill","opacity","textAnchor","offsetX","background","foreColor","padding","dropShadow","style","fontSize","stroke","xaxis","categories","labels","onLabelChange","newVal","event","chartContext","config","clickedIndex","dataPointIndex","clickedLabel","Prop","default","Watch","apexchart","VueApexCharts","moveToCreateApprovalRequest","height","left","right","top","bottom","margin","grid","responsive","breakpoint","formatter","opts","tag","w","seriesIndex","click","pie","offsetY","donut","size","legend","legendOptions","floating","VGrid","extend","functional","props","String","h","children","trim","classes","Object","startsWith","join","Grid","fluid","Boolean","mergeData","concat","SuperAdminBuyerRequests"],"mappings":"4GAAA,yBAA0jB,EAAG,G,oCCA7jB,yBAAyf,EAAG,G,2DCA5f,yBAA+kB,EAAG,G,oCCAllB,yBAA0jB,EAAG,G,kCCA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AArDC,c,oBAEQ,KAAAN,cAAgB,IAChB,KAAAO,wBAA0B,IAC1B,KAAAC,wBAAyB,EACzB,KAAAC,aAAe,GACf,KAAAZ,YAAa,EAEpBa,UACCC,OAAoBC,wBAAwBvB,KAAKwB,cAAcC,KAC9DjB,IACCR,KAAKQ,WAAaA,IAKdwD,6BACNhE,KAAKoB,aAAe,GACpBpB,KAAKkB,0BACLlB,KAAKmB,wBAAyB,EAGxB8C,8BACNjE,KAAKoB,aAAe,GACpBpB,KAAKW,gBACLX,KAAKmB,wBAAyB,EAGxBkD,oBAAoBjD,GAC1BpB,KAAKoB,aAAeA,IA5BgBM,gBAApCb,EAAKc,OAAOC,SAAuB,mCADhB2R,EAAuB,gBAH3C1R,eAAU,CACVmD,WAAY,CAAEC,0BAEMsO,WCvDkZ,I,6FCQnazR,EAAY,eACd,EACAhC,EACAc,GACA,EACA,KACA,WACA,MAIa,aAAAkB,EAAiB,QAQhC,IAAkBA,EAAW,CAACC,OAAA,KAAKC,aAAA,KAAWmD,UAAA,KAAQlD,OAAA,Q,kCC3BtD,yBAA6kB,EAAG,G,yDCAhlB,yBAAyf,EAAG","file":"js/requests.8f4ea838.js","sourcesContent":["import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Requests.vue?vue&type=style&index=0&id=41340b10&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Requests.vue?vue&type=style&index=0&id=41340b10&lang=scss&scoped=true&\"","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!./Requests.vue?vue&type=style&index=1&id=10aecd74&scoped=true&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!./Requests.vue?vue&type=style&index=1&id=10aecd74&scoped=true&lang=css&\"","import mod from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Requests.vue?vue&type=style&index=0&id=6e9d6c9e&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Requests.vue?vue&type=style&index=0&id=6e9d6c9e&lang=scss&scoped=true&\"","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Requests.vue?vue&type=style&index=0&id=10aecd74&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Requests.vue?vue&type=style&index=0&id=10aecd74&lang=scss&scoped=true&\"","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!./Requests.vue?vue&type=style&index=1&id=b28496f8&scoped=true&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!./Requests.vue?vue&type=style&index=1&id=b28496f8&scoped=true&lang=css&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-container',{attrs:{\"fluid\":\"\"}},[_c('div',[_c('v-row',[_c('v-col',[_c('h1',[_vm._v(\"Active Buyers\")])])],1)],1),_c('div',{staticClass:\"header-divider\"}),(!_vm.redirected)?_c('router-view',{key:_vm.routerViewKey}):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Vue, Watch } from 'vue-property-decorator';\r\nimport { namespace } from 'vuex-class';\r\nimport { Route } from 'vue-router';\r\n// import QuickQuoteForm from '@/views/buyerRequests/quickQuotes/QuickQuoteForm.vue';\r\nimport AuthRedirectService from '@/services/authRedirect.service';\r\nimport {\r\n\tIS_ACCOUNT_SUPER_ADMIN\r\n} from '@/store/auth/getters';\r\n\r\nconst auth = namespace('auth');\r\n\r\n@Component({\r\n\t// components: { QuickQuoteForm }\r\n})\r\nexport default class SuperAdminBuyers extends Vue {\r\n\t@auth.Getter(IS_ACCOUNT_SUPER_ADMIN) public isSuperAdmin!: boolean;\r\n\tpublic routerViewKey = 10000;\r\n\tpublic quickQuoteFormDialogKey = 10000;\r\n\tpublic createQuickQuoteDialog = false;\r\n\tpublic quickQuoteId = '';\r\n\tpublic redirected = true;\r\n\r\n\tcreated() {\r\n\t\tAuthRedirectService.handleAuthRouteRedirect(this.isSuperAdmin).then(\r\n\t\t\tredirected => {\r\n\t\t\t\tthis.redirected = redirected;\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\t// public openCreateQuickQuoteDialog() {\r\n\t// \tthis.quickQuoteId = '';\r\n\t// \tthis.quickQuoteFormDialogKey++;\r\n\t// \tthis.createQuickQuoteDialog = true;\r\n\t// }\r\n\r\n\t// public closeCreateQuickQuoteDialog() {\r\n\t// \tthis.quickQuoteId = '';\r\n\t// \tthis.routerViewKey++;\r\n\t// \tthis.createQuickQuoteDialog = false;\r\n\t// }\r\n\r\n\t// public onQuickQuoteCreated(quickQuoteId: string) {\r\n\t// \tthis.quickQuoteId = quickQuoteId;\r\n\t// }\r\n\t// public subtitle: string = 'Manage your people';\r\n}\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Buyers.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Buyers.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Buyers.vue?vue&type=template&id=13a85c6a&scoped=true&\"\nimport script from \"./Buyers.vue?vue&type=script&lang=ts&\"\nexport * from \"./Buyers.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./Buyers.vue?vue&type=style&index=0&id=13a85c6a&lang=scss&scoped=true&\"\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 \"13a85c6a\",\n null\n \n)\n\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VContainer } from 'vuetify/lib/components/VGrid';\nimport { VRow } from 'vuetify/lib/components/VGrid';\ninstallComponents(component, {VCol,VContainer,VRow})\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-container',{attrs:{\"fluid\":\"\"}},[_c('div',{staticStyle:{\"float\":\"right\"}},[_c('label',{staticStyle:{\"padding-right\":\"0.5rem\"},attrs:{\"for\":\"language-select\"}},[_vm._v(_vm._s(_vm.$t('Languages')))]),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.selectedLang),expression:\"selectedLang\"}],staticStyle:{\"border-radius\":\"25px 25px\",\"text-align\":\"center\"},attrs:{\"id\":\"language-select\"},on:{\"change\":[function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.selectedLang=$event.target.multiple ? $$selectedVal : $$selectedVal[0]},_vm.changeLang]}},_vm._l((_vm.locales),function(lang){return _c('option',{key:lang.code,domProps:{\"value\":lang.code}},[_vm._v(_vm._s(lang.name))])}),0)]),_c('div',[_c('v-row',[_c('v-col',[(_vm.isAccountApprover)?_c('h1',[_vm._v(_vm._s(_vm.$t('ReviewRequests.reviewRequests')))]):_vm._e(),(!_vm.isAccountApprover)?_c('h1',[_vm._v(_vm._s(_vm.$t('RequestsPage.MyRequests')))]):_vm._e()])],1),_c('v-row',[_c('v-col',[(!_vm.isAccountApprover)?_c('v-btn',{attrs:{\"type\":\"button\",\"color\":\"primary\",\"depressed\":\"\",\"rounded\":\"\",\"large\":\"\"},on:{\"click\":function($event){return _vm.openCreateQuickQuoteDialog()}}},[_vm._v(_vm._s(_vm.$t('RequestsPage.CreateQuickQuote')))]):_vm._e(),_c('v-dialog',{key:_vm.quickQuoteFormDialogKey,attrs:{\"persistent\":\"\",\"fullscreen\":\"\"},on:{\"click:outside\":function($event){return _vm.closeCreateQuickQuoteDialog()}},model:{value:(_vm.createQuickQuoteDialog),callback:function ($$v) {_vm.createQuickQuoteDialog=$$v},expression:\"createQuickQuoteDialog\"}},[_c('QuickQuoteForm',{attrs:{\"quickQuoteId\":_vm.quickQuoteId,\"cancel\":_vm.closeCreateQuickQuoteDialog},on:{\"onQuickQuoteCreated\":function($event){return _vm.onQuickQuoteCreated($event)}}})],1)],1)],1)],1),_c('div',{staticClass:\"header-divider\"}),(!_vm.redirected)?_c('router-view',{key:_vm.routerViewKey}):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Vue, Watch } from 'vue-property-decorator';\r\nimport { namespace } from 'vuex-class';\r\nimport { Route } from 'vue-router';\r\nimport QuickQuoteForm from '@/views/buyerRequests/quickQuotes/QuickQuoteForm.vue';\r\nimport AuthRedirectService from '@/services/authRedirect.service';\r\nimport {\r\n\tIS_BUYER_SUBSCRIBED,\r\n\tIS_ACCOUNT_APPROVER\r\n} from '@/store/auth/getters';\r\n\r\nconst auth = namespace('auth');\r\n\r\n@Component({\r\n\tcomponents: { QuickQuoteForm }\r\n})\r\nexport default class Requests extends Vue {\r\n\t@auth.Getter(IS_BUYER_SUBSCRIBED) public isBuyerSubscribed!: boolean;\r\n\t@auth.Getter(IS_ACCOUNT_APPROVER) public isAccountApprover!: boolean;\r\n\tpublic routerViewKey = 10000;\r\n\tpublic quickQuoteFormDialogKey = 10000;\r\n\tpublic createQuickQuoteDialog = false;\r\n\tpublic quickQuoteId = '';\r\n\tpublic redirected = true;\r\n\tpublic selectedLang='';\r\n\tpublic locales= [\r\n { code: 'en', name: 'English' },\r\n { code: 'fr', name: 'Français' },\r\n { code: 'ar', name: 'العربية' },\r\n ]\r\n\r\n\tcreated() {\r\n\t\tthis.selectedLang=localStorage.getItem('locale') || 'en';\r\n\t\tAuthRedirectService.handleAuthRouteRedirect(this.isBuyerSubscribed).then(\r\n\t\t\tredirected => {\r\n\t\t\t\tthis.redirected = redirected;\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tpublic changeLang() {\r\n localStorage.setItem('locale', this.selectedLang);\r\n\t location.reload();\r\n }\r\n\tpublic openCreateQuickQuoteDialog() {\r\n\t\tthis.quickQuoteId = '';\r\n\t\tthis.quickQuoteFormDialogKey++;\r\n\t\tthis.createQuickQuoteDialog = true;\r\n\t}\r\n\r\n\tpublic closeCreateQuickQuoteDialog() {\r\n\t\tthis.quickQuoteId = '';\r\n\t\tthis.routerViewKey++;\r\n\t\tthis.createQuickQuoteDialog = false;\r\n\t}\r\n\r\n\tpublic onQuickQuoteCreated(quickQuoteId: string) {\r\n\t\tthis.quickQuoteId = quickQuoteId;\r\n\t}\r\n\t// public subtitle: string = 'Manage your people';\r\n}\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Requests.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Requests.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Requests.vue?vue&type=template&id=41340b10&scoped=true&\"\nimport script from \"./Requests.vue?vue&type=script&lang=ts&\"\nexport * from \"./Requests.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./Requests.vue?vue&type=style&index=0&id=41340b10&lang=scss&scoped=true&\"\nimport style1 from \"./Requests.vue?vue&type=style&index=1&id=41340b10&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 \"41340b10\",\n null\n \n)\n\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VContainer } from 'vuetify/lib/components/VGrid';\nimport { VDialog } from 'vuetify/lib/components/VDialog';\nimport { VRow } from 'vuetify/lib/components/VGrid';\ninstallComponents(component, {VBtn,VCol,VContainer,VDialog,VRow})\n","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!./YearPicker.vue?vue&type=style&index=0&id=5a5f0ba3&scoped=true&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!./YearPicker.vue?vue&type=style&index=0&id=5a5f0ba3&scoped=true&lang=css&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-container',{attrs:{\"fluid\":\"\"}},[_c('div',{staticStyle:{\"float\":\"right\"}},[_c('label',{staticStyle:{\"padding-right\":\"0.5rem\"},attrs:{\"for\":\"language-select\"}},[_vm._v(_vm._s(_vm.$t('Languages')))]),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.selectedLang),expression:\"selectedLang\"}],staticStyle:{\"border-radius\":\"25px 25px\",\"text-align\":\"center\"},attrs:{\"id\":\"language-select\"},on:{\"change\":[function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.selectedLang=$event.target.multiple ? $$selectedVal : $$selectedVal[0]},_vm.changeLang]}},_vm._l((_vm.locales),function(lang){return _c('option',{key:lang.code,domProps:{\"value\":lang.code}},[_vm._v(_vm._s(lang.name))])}),0)]),_c('div',[_c('v-row',[_c('v-col',[_c('h1',[_vm._v(_vm._s(_vm.$t('Contract.RequestsPage.MyContracts')))])])],1),_c('v-row',[_c('v-col',{staticClass:\"col-sm-4\"},[(_vm.responseFunnelLoading)?_c('LoadingSpinner'):_vm._e(),(!_vm.responseFunnelLoading && _vm.IsContractsAvailable)?_c('DoughnutChart',{staticClass:\"max-pie-chart-height\",attrs:{\"series\":_vm.responseFunnelSeries,\"labels\":_vm.responseFunnelLabels,\"filterContracts\":_vm.filterContracts}}):_vm._e()],1),_c('v-col',{staticClass:\"col-sm-8\"},[(_vm.totalContractsLoading)?_c('LoadingSpinner'):_vm._e(),(!_vm.totalContractsLoading)?_c('BarChart',{staticClass:\"max-bar-chart-height\",attrs:{\"series\":_vm.totalContractsSeries,\"labels\":_vm.allMonthsLabels,\"filterContracts\":_vm.filterContractsByMonth}}):_vm._e()],1)],1),_c('v-row',[_c('v-col',{staticClass:\"col-sm-4\"},[_c('v-btn',{attrs:{\"type\":\"button\",\"color\":\"primary\",\"depressed\":\"\",\"rounded\":\"\",\"large\":\"\"},on:{\"click\":function($event){return _vm.moveToCreateContract()}}},[_vm._v(\" \"+_vm._s(_vm.$t('Contract.RequestsPage.CreateContract'))+\" \")])],1),_c('v-col',{staticClass:\"col-sm-3\"},[_c('YearPicker',{on:{\"year-selected\":_vm.handleYearSelected}})],1)],1)],1),_c('div',{staticClass:\"header-divider\"}),_c('div',{staticClass:\"mt-4\",attrs:{\"id\":\"ContractsIndexListPageMainDiv\"}},[_c('v-row',[_c('v-col',{attrs:{\"cols\":\"4\"}},[_c('v-text-field',{attrs:{\"id\":\"searchText\",\"autocomplete\":\"new\",\"outlined\":\"\",\"rounded\":\"\",\"type\":\"text\",\"placeholder\":_vm.$t('Contract.RequestsManagePage.searchContractPlaceholder'),\"label\":_vm.$t('Contract.RequestsManagePage.searchContracts')},model:{value:(_vm.searchText),callback:function ($$v) {_vm.searchText=$$v},expression:\"searchText\"}})],1),_c('v-col',{attrs:{\"cols\":\"8\"}},[_c('v-btn',{attrs:{\"type\":\"button\",\"color\":\"primary\",\"depressed\":\"\",\"rounded\":\"\",\"large\":\"\"},on:{\"click\":function($event){return _vm.SearchContracts()}}},[_vm._v(\" \"+_vm._s(_vm.$t('Contract.RequestsManagePage.search'))+\" \")]),_c('v-btn',{staticStyle:{\"margin-left\":\"20px\"},attrs:{\"type\":\"button\",\"depressed\":\"\",\"rounded\":\"\",\"large\":\"\",\"title\":_vm.$t('Contract.RequestsManagePage.ClearGraphFilters')},on:{\"click\":function($event){return _vm.SearchContracts()}}},[_vm._v(\" \"+_vm._s(_vm.$t('Contract.RequestsManagePage.ClearFilters'))+\" \")]),_c('label',{staticStyle:{\"border\":\"1px solid rgb(130, 130, 130)\",\"padding\":\"10px\",\"border-radius\":\"30px\",\"margin\":\"20px\",\"font-size\":\"small\"}},[_vm._v(\" \"+_vm._s(_vm.$t('Contract.RequestsPage.Displaying'))+\" \"),_c('span',{staticClass:\"purple--text font-weight-bold\"},[_vm._v(_vm._s(_vm.currentFilterString))]),_vm._v(\" \"+_vm._s(_vm.$t('Contract.RequestsPage.records'))+\" \")]),_c('v-btn',{attrs:{\"outlined\":!_vm.showArchived,\"color\":\"secondary\",\"depressed\":\"\",\"rounded\":\"\",\"large\":\"\"},on:{\"click\":_vm.handleArchiveButtonHandler}},[_vm._v(\" \"+_vm._s(_vm.showArchived ? _vm.$t('Contract.RequestsManagePage.ShowAllContracts') : _vm.$t('Contract.RequestsManagePage.ShowArchiveContracts'))+\" \")])],1)],1),_c('v-data-table',{attrs:{\"headers\":_vm.buyerRequestHeaders,\"items\":_vm.contracts,\"loading\":_vm.approvalRequestsLoading,\"no-data-text\":_vm.$t('Contract.RequestsManagePage.noDataText')},on:{\"click:row\":_vm.goToRequest},scopedSlots:_vm._u([{key:\"item.status\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('ContractBaseStatusChip',{attrs:{\"state\":item.status}})]}},{key:\"item.id\",fn:function(ref){\nvar item = ref.item;\nreturn [(_vm.showArchived)?_c('v-btn',{attrs:{\"type\":\"button\",\"color\":\"primary\",\"rounded\":\"\",\"small\":\"\"},on:{\"click\":function($event){return _vm.unarchiveContract(item.id)}}},[_c('span',{staticClass:\"mdi mdi-package-up mdi-18px\"}),_vm._v(\" \"+_vm._s(_vm.$t('Contract.RequestsManagePage.Restore'))+\" \")]):_vm._e()]}}])})],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","/* eslint-disable no-inner-declarations */\r\n/* eslint-disable @typescript-eslint/no-namespace */\r\nexport enum ContractDountChartLabels {\r\n\tLive = 0,\r\n Upcoming = 3,\r\n Expired = 4\r\n}\r\n\r\nconst values = new Map([\r\n\t[ContractDountChartLabels.Live, `Live`],\r\n\t[ContractDountChartLabels.Upcoming, `To be expired`],\r\n\t[ContractDountChartLabels.Expired, `Expired`]\r\n]);\r\n\r\nexport namespace ContractDountChartLabels {\r\n\texport function toString(key: ContractDountChartLabels): string {\r\n\t\treturn values.get(key) as string;\r\n\t}\r\n\r\n\texport function parse(value: string): ContractDountChartLabels {\r\n\t\tfor (const [key, val] of values) {\r\n\t\t\tif (value === val) {\r\n\t\t\t\treturn key;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn 0;\r\n\t}\r\n\r\n\texport function getValues(): string[] {\r\n\t\treturn Array.from(values.values());\r\n\t}\r\n\r\n\texport function getKeys(): ContractDountChartLabels[] {\r\n\t\treturn Array.from(values.keys());\r\n\t}\r\n\texport function getEnumValueByLabel(\r\n\t\tlabel: string\r\n\t): ContractDountChartLabels | undefined {\r\n\t\tfor (const [enumValue, enumLabel] of values.entries()) {\r\n\t\t\tif (enumLabel === label) {\r\n\t\t\t\treturn enumValue;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn undefined; // Label not found\r\n\t}\r\n}\r\n\r\nexport default ContractDountChartLabels;\r\n","/* eslint-disable no-inner-declarations */\r\n/* eslint-disable @typescript-eslint/no-namespace */\r\nexport enum ContractBarChartLabels {\r\n\tJanuary = 1,\r\n Feburary = 2,\r\n March = 3,\r\n\tApril = 4,\r\n\tMay = 5,\r\n\tJune = 6,\r\n\tJuly = 7,\r\n\tAugust = 8,\r\n\tSeptember = 9,\r\n\tOctober = 10,\r\n\tNovember = 11,\r\n\tDecember = 12\r\n}\r\n\r\nconst values = new Map([\r\n\t[ContractBarChartLabels.January, `January`],\r\n\t[ContractBarChartLabels.Feburary, `Feburary`],\r\n\t[ContractBarChartLabels.March, `March`],\r\n\t[ContractBarChartLabels.April, `April`],\r\n\t[ContractBarChartLabels.May, `May`],\r\n\t[ContractBarChartLabels.June, `June`],\r\n\t[ContractBarChartLabels.July, `July`],\r\n\t[ContractBarChartLabels.August, `August`],\r\n\t[ContractBarChartLabels.September, `September`],\r\n\t[ContractBarChartLabels.October, `October`],\r\n\t[ContractBarChartLabels.November, `November`],\r\n\t[ContractBarChartLabels.December, `December`]\r\n]);\r\n\r\nexport namespace ContractBarChartLabels {\r\n\texport function toString(key: ContractBarChartLabels): string {\r\n\t\treturn values.get(key) as string;\r\n\t}\r\n\r\n\texport function parse(value: string): ContractBarChartLabels {\r\n\t\tfor (const [key, val] of values) {\r\n\t\t\tif (value === val) {\r\n\t\t\t\treturn key;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn 1;\r\n\t}\r\n\r\n\texport function getValues(): string[] {\r\n\t\treturn Array.from(values.values());\r\n\t}\r\n\r\n\texport function getKeys(): ContractBarChartLabels[] {\r\n\t\treturn Array.from(values.keys());\r\n\t}\r\n\texport function getEnumValueByLabel(\r\n\t\tlabel: string\r\n\t): ContractBarChartLabels | undefined {\r\n\t\tfor (const [enumValue, enumLabel] of values.entries()) {\r\n\t\t\tif (enumLabel === label) {\r\n\t\t\t\treturn enumValue;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn undefined; // Label not found\r\n\t}\r\n}\r\n\r\nexport default ContractBarChartLabels;\r\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-menu',{attrs:{\"close-on-content-click\":false,\"transition\":\"scale-transition\",\"offset-y\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nvar attrs = ref.attrs;\nreturn [_c('v-text-field',_vm._g(_vm._b({attrs:{\"label\":\"Select Year\",\"readonly\":\"\"},on:{\"click\":function($event){$event.stopPropagation();_vm.menu = !_vm.menu}},model:{value:(_vm.selectedYear),callback:function ($$v) {_vm.selectedYear=$$v},expression:\"selectedYear\"}},'v-text-field',attrs,false),on))]}}]),model:{value:(_vm.menu),callback:function ($$v) {_vm.menu=$$v},expression:\"menu\"}},[(_vm.menu)?_c('v-list',{staticStyle:{\"max-height\":\"300px\",\"overflow-y\":\"auto\"}},_vm._l((_vm.years),function(year){return _c('v-list-item',{key:year},[_c('v-list-item-content',{class:{ 'year-selected': year === _vm.selectedYear },on:{\"click\":function($event){return _vm.selectYear(year)}}},[_c('v-list-item-title',[_vm._v(_vm._s(year))])],1)],1)}),1):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n import {Component, Vue } from 'vue-property-decorator';\n\n @Component({})\n\nexport default class YearPicker extends Vue {\n menu = false;\n selectedYear = new Date().getFullYear();\n years = Array.from({ length: 73 }, (_, index) => new Date().getFullYear() - index);\n\n selectYear(year) {\n this.selectedYear = year;\n this.menu = false;\n this.$emit('year-selected', this.selectedYear);\n }\n}\n ","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./YearPicker.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./YearPicker.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./YearPicker.vue?vue&type=template&id=5a5f0ba3&scoped=true&\"\nimport script from \"./YearPicker.vue?vue&type=script&lang=ts&\"\nexport * from \"./YearPicker.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./YearPicker.vue?vue&type=style&index=0&id=5a5f0ba3&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 \"5a5f0ba3\",\n null\n \n)\n\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VList } from 'vuetify/lib/components/VList';\nimport { VListItem } from 'vuetify/lib/components/VList';\nimport { VListItemContent } from 'vuetify/lib/components/VList';\nimport { VListItemTitle } from 'vuetify/lib/components/VList';\nimport { VMenu } from 'vuetify/lib/components/VMenu';\nimport { VTextField } from 'vuetify/lib/components/VTextField';\ninstallComponents(component, {VList,VListItem,VListItemContent,VListItemTitle,VMenu,VTextField})\n","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Vue, Watch } from 'vue-property-decorator';\r\nimport { namespace } from 'vuex-class';\r\nimport AuthRedirectService from '@/services/authRedirect.service';\r\nimport Toast from '@/services/toast.service';\r\nimport DoughnutChart from '@/views/contracts/helpers/DoughnutChart.vue';\r\nimport BarChart from '@/views/contracts/helpers/BarChart.vue';\r\nimport LoadingSpinner from '@/components/LoadingSpinner.vue';\r\nimport { ContractVM } from '@/models/contract';\r\nimport { BuyerRequestState } from '@/models/enums/buyerRequestState';\r\nimport ConfirmDialog from '@/components/ConfirmDialog.vue';\r\nimport ApprovalRequestStateChip from '@/components/ApprovalRequestStateChip.vue';\r\nimport ContractBaseStatusChip from '@/components/ContractBaseStatusChip.vue';\r\nimport { ContractBaseStatus } from '@/models/enums/contractBaseStatus'\r\nimport { ContractDountChartLabels } from '@/models/enums/contractDountChartLabels';\r\nimport { ContractBarChartLabels } from '@/models/enums/contractBarChartLabels';\r\nimport {\r\n\tIS_BUYER_SUBSCRIBED,\r\n\tIS_ACCOUNT_APPROVER,\r\n\tIS_ACCOUNT_ATLEAST_BUYER,\r\n} from '@/store/auth/getters';\r\nimport ContractsApiService from '@/api/contracts.api';\r\nimport YearPicker from '@/views/contracts/helpers/YearPicker.vue';\r\nimport { areIntervalsOverlappingWithOptions } from 'date-fns/fp';\r\n\r\nconst auth = namespace('auth');\r\n\r\n@Component({\r\n\tcomponents: { LoadingSpinner, DoughnutChart, ConfirmDialog, ApprovalRequestStateChip, ContractBaseStatusChip, BarChart, YearPicker }\r\n})\r\nexport default class Requests extends Vue {\r\n\t@auth.Getter(IS_BUYER_SUBSCRIBED) public isBuyerSubscribed!: boolean;\r\n\t@auth.Getter(IS_ACCOUNT_APPROVER) public isAccountApprover!: boolean;\r\n\t@auth.Getter(IS_ACCOUNT_ATLEAST_BUYER) public isAccountAtleastBuyer!: boolean;\r\n\r\n\tpublic redirected = true;\r\n\tpublic responseFunnelLoading = false;\r\n\tpublic IsContractsAvailable = true;\r\n\tpublic routerViewKey = 10000;\r\n\tpublic responseFunnelSeries: any[] = [];\r\n\tpublic responseFunnelLabels: any[] = [];\r\n\tpublic selectedLang = '';\r\n\tpublic locales = [\r\n\t\t{ code: 'en', name: 'English' },\r\n\t\t{ code: 'fr', name: 'Français' },\r\n\t\t{ code: 'ar', name: 'العربية' },\r\n\t]\r\n\tpublic contracts: ContractVM[] = [];\r\n\tpublic selectedBuyerRequest: ContractVM | null = null;\r\n\tpublic BuyerRequestState = BuyerRequestState;\r\n\tpublic approvalRequestsLoading = false;\r\n\tpublic searchText = '';\r\n\tpublic allMonthsLabels: string[] = [];\r\n\tpublic totalContractsSeries: any[] = [];\r\n\tpublic monthlyContractsCount: any[] = [];\r\n\tpublic totalContractsLoading = false;\r\n\tpublic currentFilterString = 'All';\r\n\tpublic showArchived = false;\r\n\tpublic selectedYear = new Date().getFullYear();\r\n\tpublic buyerRequestHeaders = [\r\n\t\t{\r\n\t\t\ttext: this.$t('Contract.RequestsManagePage.Status'),\r\n\t\t\talign: 'start',\r\n\t\t\tvalue: 'status',\r\n\t\t\tsortable: true\r\n\t\t},\r\n\t\t{\r\n\t\t\ttext: this.$t('Contract.RequestsManagePage.Title'),\r\n\t\t\talign: 'start',\r\n\t\t\tsortable: true,\r\n\t\t\tvalue: 'title'\r\n\t\t},\r\n\t\t{\r\n\t\t\ttext: this.$t('Contract.RequestsManagePage.Supplier'),\r\n\t\t\talign: 'start',\r\n\t\t\tsortable: true,\r\n\t\t\tvalue: 'supplierName'\r\n\t\t},\r\n\t\t{\r\n\t\t\ttext: this.$t('Contract.RequestsManagePage.Category'),\r\n\t\t\talign: 'start',\r\n\t\t\tsortable: true,\r\n\t\t\tvalue: 'categoryName'\r\n\t\t},\r\n\t\t{\r\n\t\t\ttext: this.$t('Contract.RequestsManagePage.Owner'),\r\n\t\t\talign: 'start',\r\n\t\t\tsortable: true,\r\n\t\t\tvalue: 'ownerName'\r\n\t\t},\r\n\t\t{\r\n\t\t\ttext: this.$t('Contract.RequestsManagePage.ExpirationDate'),\r\n\t\t\talign: 'start',\r\n\t\t\tsortable: true,\r\n\t\t\tvalue: 'expirationDate'\r\n\t\t},\r\n\t\t{\r\n\t\t\ttext: this.$t('Contract.RequestsManagePage.Actions'),\r\n\t\t\talign: 'start',\r\n\t\t\tsortable: false,\r\n\t\t\tvalue: 'id'\r\n\t\t}\r\n\t];\r\n\r\n\tcreated() {\r\n\t\tthis.selectedLang = localStorage.getItem('locale') || 'en';\r\n\t\tAuthRedirectService.handleAuthRouteRedirect(this.isBuyerSubscribed).then(\r\n\t\t\tredirected => {\r\n\t\t\t\tthis.redirected = redirected;\r\n\t\t\t}\r\n\t\t);\r\n\t\tthis.loadResponseFunnel();\r\n\t\tthis.listContracts();\r\n\t\tthis.loadBarChart();\r\n\t\tconsole.log(this.getContractDountChartLabels());\r\n\t}\r\n\r\n\tpublic changeLang() {\r\n\t\tlocalStorage.setItem('locale', this.selectedLang);\r\n\t\tlocation.reload();\r\n\t}\r\n\tpublic moveToCreateContract() {\r\n\t\tthis.$router.push('/contracts/manage/create')\r\n\t}\r\n\tprivate loadResponseFunnel() {\r\n\t\tthis.responseFunnelLoading = true;\r\n\t\tContractsApiService.getResponseFunnel()\r\n\t\t\t.then(res => {\r\n\t\t\t\tthis.responseFunnelSeries = [\r\n\t\t\t\t\tres.liveCount,\r\n\t\t\t\t\tres.toBeExpiredCount,\r\n\t\t\t\t\tres.expiredCount\r\n\t\t\t\t];\r\n\t\t\t\tthis.responseFunnelLabels = this.getContractDountChartLabels();\r\n\t\t\t\tif (res.liveCount <= 0 &&\r\n\t\t\t\t\tres.toBeExpiredCount <= 0 &&\r\n\t\t\t\t\tres.expiredCount <= 0) {\r\n\t\t\t\t\tthis.IsContractsAvailable = false;\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t\t.catch(err => Toast.error(err))\r\n\t\t\t.finally(() => (this.responseFunnelLoading = false));\r\n\t}\r\n\r\n\tpublic handleArchiveButtonHandler()\r\n\t{\r\n\t\tif(this.showArchived == true)\r\n\t\t{\r\n\t\t\tthis.SearchContracts();\r\n\t\t}\r\n\t\telse{\r\n\t\t\tthis.filterArchivedContracts();\r\n\t\t}\r\n\t}\r\n\r\n\tpublic filterArchivedContracts() {\r\n\t\tconst selectedStatus = Number(ContractBaseStatus.Archive);\r\n\t\tthis.currentFilterString = ContractBaseStatus[ContractBaseStatus.Archive];\r\n\t\tthis.listContracts(ContractBaseStatus[selectedStatus]);\r\n\t}\r\n\t// public subtitle: string = 'Manage your people';\r\n\tpublic filterContracts(labelName, index) {\r\n\t\tconst selectedStatus = Number(this.getContractBaseStatusbyLabel(labelName));\r\n\t\tthis.currentFilterString = labelName;\r\n\t\tthis.listContracts(ContractBaseStatus[selectedStatus]);\r\n\t}\r\n\tpublic filterContractsByMonth(labelName, index) {\r\n\t\tconst selectedMonth = Number(this.getContractMonthbyLabel(labelName));\r\n\t\tthis.currentFilterString = labelName + ' ' + this.selectedYear;\r\n\t\tthis.listContracts('All', this.getContractMonthbyLabel(labelName),this.selectedYear);\r\n\t}\r\n\tpublic goToRequest(item: ContractVM, row: any) {\r\n\t\tif(!this.showArchived)\r\n\t\t{\r\n\t\t\tthis.selectedBuyerRequest = item;\r\n\t\t\tthis.$router.push(`/contracts/${item.id}/responses`);\r\n\t\t}\r\n\t}\r\n\tpublic SearchContracts() {\r\n\t\tthis.currentFilterString = 'All';\r\n\t\tthis.listContracts('All');\r\n\t}\r\n\r\n\tpublic GetOnlyArchivedContracts() {\r\n\t\tthis.currentFilterString = 'All';\r\n\t\tthis.listContracts('All');\r\n\t}\r\n\t\r\n\r\n\tpublic listContracts(contractStatus = 'All', month = 0, year = 0) {\r\n\t\tthis.approvalRequestsLoading = true;\r\n\t\tContractsApiService.listContracts(this.searchText, contractStatus, month, year)\r\n\t\t\t.then(res => {\r\n\t\t\t\tthis.showArchived = res.isArchivedContractsOnly;\r\n\t\t\t\tthis.contracts = res.contracts.map(x => {\r\n\r\n\t\t\t\t\tconst obj = {\r\n\t\t\t\t\t\t...x,\r\n\t\t\t\t\t\texpirationDate: x.expirationDate == null || x.expirationDate == undefined ? '--' : new Date(x.expirationDate).toDateString()\r\n\t\t\t\t\t\t// endDate: DateService.formatTableDateString(x.endDate)\r\n\t\t\t\t\t};\r\n\t\t\t\t\treturn obj;\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch(err => {\r\n\t\t\t\tToast.error(err);\r\n\t\t\t})\r\n\t\t\t.finally(() => {\r\n\t\t\t\tthis.approvalRequestsLoading = false;\r\n\t\t\t});\r\n\t}\r\n\r\n\tpublic unarchiveContract(Id)\r\n\t{\r\n\t\treturn ContractsApiService.unarchiveContract(Id)\r\n\t\t\t.then(res => {\r\n\t\t\t\tthis.contracts = this.contracts.filter(c => c.id !== Id);\r\n\t\t\t\tToast.success(this.$t('Contract.RequestsManagePage.ContractUnarchived').toString());\r\n\t\t\t})\r\n\t\t\t.catch(err => {\r\n\t\t\t\tToast.error(err);\r\n\t\t\t});\r\n\t}\r\n\r\n\tpublic getContractDountChartLabels() {\r\n\t\treturn ContractDountChartLabels.getKeys().map(x => {\r\n\t\t\treturn ContractDountChartLabels.toString(x);\r\n\t\t});\r\n\t}\r\n\tpublic getContractBaseStatusbyLabel(label) {\r\n\t\treturn ContractDountChartLabels.getEnumValueByLabel(label);\r\n\t}\r\n\tpublic getContractBarChartLabels() {\r\n\t\treturn ContractBarChartLabels.getKeys().map(x => {\r\n\t\t\treturn ContractBarChartLabels.toString(x);\r\n\t\t});\r\n\t}\r\n\tpublic getContractMonthbyLabel(label) {\r\n\t\treturn ContractBarChartLabels.getEnumValueByLabel(label);\r\n\t}\r\n\tprivate loadBarChart() {\r\n\t\tthis.totalContractsLoading = true;\r\n\t\tContractsApiService.getMonthlyContractsCount(this.selectedYear)\r\n\t\t\t.then(res => {\r\n\t\t\t\tthis.monthlyContractsCount = res.contractsCountByMonth;\r\n\t\t\t\tconst monthlyContractsSeries: any[] = [];\r\n\t\t\t\tfor (let month = 1; month <= 12; month++) {\r\n\t\t\t\t\tlet newContractObject = this.monthlyContractsCount.find(item => item.month === month)\r\n\t\t\t\t\tif (newContractObject == null) {\r\n\t\t\t\t\t\tnewContractObject = { month: month, contractCount: 0 }\r\n\t\t\t\t\t}\r\n\t\t\t\t\tmonthlyContractsSeries.push(newContractObject);\r\n\t\t\t\t}\r\n\t\t\t\tthis.totalContractsSeries = [\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tname: 'Contracts',\r\n\t\t\t\t\t\tdata: monthlyContractsSeries.map(x => x.contractCount)\r\n\t\t\t\t\t}\r\n\t\t\t\t]\r\n\t\t\t\tthis.allMonthsLabels = this.getContractBarChartLabels();\r\n\t\t\t})\r\n\t\t\t.catch(err => Toast.error(err))\r\n\t\t\t.finally(() => (this.totalContractsLoading = false));\r\n\t}\r\n\thandleYearSelected(year) {\r\n\t this.selectedYear = year;\r\n\t this.loadBarChart();\r\n }\r\n}\r\n\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Requests.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Requests.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Requests.vue?vue&type=template&id=10aecd74&scoped=true&\"\nimport script from \"./Requests.vue?vue&type=script&lang=ts&\"\nexport * from \"./Requests.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./Requests.vue?vue&type=style&index=0&id=10aecd74&lang=scss&scoped=true&\"\nimport style1 from \"./Requests.vue?vue&type=style&index=1&id=10aecd74&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 \"10aecd74\",\n null\n \n)\n\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VContainer } from 'vuetify/lib/components/VGrid';\nimport { VDataTable } from 'vuetify/lib/components/VDataTable';\nimport { VRow } from 'vuetify/lib/components/VGrid';\nimport { VTextField } from 'vuetify/lib/components/VTextField';\ninstallComponents(component, {VBtn,VCol,VContainer,VDataTable,VRow,VTextField})\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{\"id\":\"chart\"}},[_c('apexchart',{attrs:{\"type\":\"bar\",\"height\":\"350\",\"width\":\"600\",\"options\":_vm.options,\"series\":_vm.series},on:{\"dataPointSelection\":_vm.GetLabelName}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\r\nimport { Component, Prop, Vue, Watch } from 'vue-property-decorator';\r\nimport VueApexCharts from 'vue-apexcharts';\r\n\r\n@Component({\r\n\tcomponents: {\r\n\t\tapexchart: VueApexCharts\r\n\t}\r\n})\r\nexport default class BarChart extends Vue {\r\n\t@Prop({\r\n\t\tdefault: [\r\n\t\t\t{\r\n\t\t\t\tdata: []\r\n\t\t\t}\r\n\t\t]\r\n\t})\r\n\tpublic series!: any[];\r\n\t@Prop({\r\n\t\tdefault: []\r\n\t})\r\n\tpublic labels!: string[];\r\n\t@Prop() public filterContracts!: any;\r\n\r\n\t@Watch('labels') onLabelChange(newVal) {\r\n\t\tthis.options.xaxis.categories = newVal;\r\n\t}\r\n\r\n\tpublic options: any = {\r\n\t\tchart: {\r\n\t\t\ttype: 'bar',\r\n\t\t\ttoolbar: {\r\n\t\t\t\tshow: false\r\n\t\t\t},\r\n\t\t\tzoom: {\r\n\t\t\t\tenabled: false\r\n\t\t\t},\r\n\t\t\tselection: {\r\n\t\t\t\tenabled: false\r\n\t\t\t}\r\n\t\t},\r\n\t\tcolors: ['#00c853'],\r\n\t\tplotOptions: {\r\n\t\t\tbar: {\r\n\t\t\t\thorizontal: false,\r\n\t\t\t\tborderRadius: 10,\r\n\t\t\t\tcolumnWidth: '55%',\r\n\t\t\t\tdataLabels: {\r\n\t\t\t\t\tposition: 'top'\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\tfill: {\r\n\t\t\topacity: 1\r\n\t\t},\r\n\t\tdataLabels: {\r\n\t\t\tenabled: true,\r\n\t\t\ttextAnchor: 'middle',\r\n\t\t\toffsetX: -6,\r\n\t\t\tbackground: {\r\n\t\t\t\tenabled: true,\r\n\t\t\t\tforeColor: '#2b2b2b',\r\n\t\t\t\tpadding: 2,\r\n\t\t\t\tborderRadius: 2,\r\n\t\t\t\topacity: 1,\r\n\t\t\t\tdropShadow: {\r\n\t\t\t\t\tenabled: false\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tstyle: {\r\n\t\t\t\tfontSize: '12px',\r\n\t\t\t\tcolors: ['#fff']\r\n\t\t\t}\r\n\t\t},\r\n\t\tstroke: {\r\n\t\t\tshow: false\r\n\t\t},\r\n\t\txaxis: {\r\n\t\t\tcategories: this.labels\r\n\t\t}\r\n\t};\r\n\tpublic GetLabelName(event, chartContext, config) {\r\n\t\tconst clickedIndex = config.dataPointIndex;\r\n\t\tconst clickedLabel = this.labels[clickedIndex];\r\n\t\tthis.filterContracts(clickedLabel, clickedIndex)\r\n\t}\r\n}\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BarChart.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BarChart.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./BarChart.vue?vue&type=template&id=9ee9b364&scoped=true&\"\nimport script from \"./BarChart.vue?vue&type=script&lang=ts&\"\nexport * from \"./BarChart.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./BarChart.vue?vue&type=style&index=0&id=9ee9b364&lang=scss&scoped=true&\"\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 \"9ee9b364\",\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('v-container',{attrs:{\"fluid\":\"\"}},[_c('div',{staticStyle:{\"float\":\"right\"}},[_c('label',{staticStyle:{\"padding-right\":\"0.5rem\"},attrs:{\"for\":\"language-select\"}},[_vm._v(_vm._s(_vm.$t('Languages')))]),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.selectedLang),expression:\"selectedLang\"}],staticStyle:{\"border-radius\":\"25px 25px\",\"text-align\":\"center\"},attrs:{\"id\":\"language-select\"},on:{\"change\":[function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.selectedLang=$event.target.multiple ? $$selectedVal : $$selectedVal[0]},_vm.changeLang]}},_vm._l((_vm.locales),function(lang){return _c('option',{key:lang.code,domProps:{\"value\":lang.code}},[_vm._v(_vm._s(lang.name))])}),0)]),_c('div',[_c('v-row',[_c('v-col',[_c('h1',[_vm._v(_vm._s(_vm.$t('ApprovalRequestsPage.MyApprovalRequests')))])])],1),_c('v-row',[_c('v-col',[_c('v-btn',{attrs:{\"type\":\"button\",\"color\":\"primary\",\"depressed\":\"\",\"rounded\":\"\",\"large\":\"\"},on:{\"click\":function($event){return _vm.moveToCreateApprovalRequest()}}},[_vm._v(_vm._s(_vm.$t('ApprovalRequestsPage.CreateApprovalRequest')))])],1)],1)],1),_c('div',{staticClass:\"header-divider\"}),(!_vm.redirected)?_c('router-view',{key:_vm.routerViewKey}):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Vue, Watch } from 'vue-property-decorator';\r\nimport { namespace } from 'vuex-class';\r\nimport { Route } from 'vue-router';\r\nimport QuickQuoteForm from '@/views/buyerRequests/quickQuotes/QuickQuoteForm.vue';\r\nimport AuthRedirectService from '@/services/authRedirect.service';\r\nimport {\r\n\tIS_BUYER_SUBSCRIBED,\r\n\tIS_ACCOUNT_APPROVER\r\n} from '@/store/auth/getters';\r\n\r\nconst auth = namespace('auth');\r\n\r\n@Component({\r\n\tcomponents: { QuickQuoteForm }\r\n})\r\nexport default class Requests extends Vue {\r\n\t@auth.Getter(IS_BUYER_SUBSCRIBED) public isBuyerSubscribed!: boolean;\r\n\t@auth.Getter(IS_ACCOUNT_APPROVER) public isAccountApprover!: boolean;\r\n\tpublic routerViewKey = 10000;\r\n\tpublic quickQuoteFormDialogKey = 10000;\r\n\tpublic createQuickQuoteDialog = false;\r\n\tpublic quickQuoteId = '';\r\n\tpublic redirected = true;\r\n\tpublic selectedLang='';\r\n\tpublic locales= [\r\n { code: 'en', name: 'English' },\r\n { code: 'fr', name: 'Français' },\r\n { code: 'ar', name: 'العربية' },\r\n ]\r\n\r\n\tcreated() {\r\n\t\tthis.selectedLang=localStorage.getItem('locale') || 'en';\r\n\t\tAuthRedirectService.handleAuthRouteRedirect(this.isBuyerSubscribed).then(\r\n\t\t\tredirected => {\r\n\t\t\t\tthis.redirected = redirected;\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tpublic changeLang() {\r\n localStorage.setItem('locale', this.selectedLang);\r\n\t location.reload();\r\n }\r\n\tpublic moveToCreateApprovalRequest() {\r\n\t\tthis.$router.push('/approvalRequests/manage/create')\r\n\t}\r\n\r\n\t// public subtitle: string = 'Manage your people';\r\n}\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Requests.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Requests.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Requests.vue?vue&type=template&id=b28496f8&scoped=true&\"\nimport script from \"./Requests.vue?vue&type=script&lang=ts&\"\nexport * from \"./Requests.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./Requests.vue?vue&type=style&index=0&id=b28496f8&lang=scss&scoped=true&\"\nimport style1 from \"./Requests.vue?vue&type=style&index=1&id=b28496f8&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 \"b28496f8\",\n null\n \n)\n\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VContainer } from 'vuetify/lib/components/VGrid';\nimport { VRow } from 'vuetify/lib/components/VGrid';\ninstallComponents(component, {VBtn,VCol,VContainer,VRow})\n","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Requests.vue?vue&type=style&index=0&id=b28496f8&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Requests.vue?vue&type=style&index=0&id=b28496f8&lang=scss&scoped=true&\"","import mod from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BarChart.vue?vue&type=style&index=0&id=9ee9b364&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BarChart.vue?vue&type=style&index=0&id=9ee9b364&lang=scss&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('apexchart',{attrs:{\"type\":\"donut\",\"height\":\"350\",\"width\":\"350\",\"padding\":\"0\",\"options\":_vm.options,\"series\":_vm.series},on:{\"dataPointSelection\":_vm.GetLabelName}})}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\r\nimport { Component, Prop, Vue } from 'vue-property-decorator';\r\nimport VueApexCharts from 'vue-apexcharts';\r\n\r\n@Component({\r\n\tcomponents: {\r\n\t\tapexchart: VueApexCharts\r\n\t}\r\n})\r\nexport default class DoughnutChart extends Vue {\r\n\t@Prop() public series!: any[];\r\n\t@Prop() public labels!: any[];\r\n\t@Prop() public filterContracts!: any;\r\n\t@Prop({ default: null }) public tag!: string | null;\r\n\r\n\tget legendOptions() {\r\n\t\tif (this.series.length > 6) {\r\n\t\t\treturn {\r\n\t\t\t\tshow: false,\r\n\t\t\t\tfloating: true,\r\n\t\t\t\tposition: 'top'\r\n\t\t\t};\r\n\t\t} else {\r\n\t\t\treturn {\r\n\t\t\t\tfloating: true,\r\n\t\t\t\tposition: 'top'\r\n\t\t\t};\r\n\t\t}\r\n\t}\r\n\r\n\tpublic options: any = {\r\n\t\tchart: {\r\n\t\t\ttype: 'donut',\r\n\t\t\theight: 350,\r\n\t\t\ttoolbar: {\r\n\t\t\t\tshow: false\r\n\t\t\t}\r\n\t\t},\r\n\t\tpadding: {\r\n\t\t\tleft: 0,\r\n\t\t\tright: 0,\r\n\t\t\ttop: 0,\r\n\t\t\tbottom: 0\r\n\t\t},\r\n\t\tmargin: {\r\n\t\t\tleft: 0,\r\n\t\t\tright: 0,\r\n\t\t\ttop: 0,\r\n\t\t\tbottom: 0\r\n\t\t},\r\n\t\tgrid: {\r\n\t\t\tpadding: {\r\n\t\t\t\tleft: 0,\r\n\t\t\t\tright: 0,\r\n\t\t\t\ttop: 0,\r\n\t\t\t\tbottom: 0\r\n\t\t\t}\r\n\t\t},\r\n\t\tresponsive: [\r\n\t\t\t{\r\n\t\t\t\tbreakpoint: 1600,\r\n\t\t\t\toptions: {\r\n\t\t\t\t\tchart: {\r\n\t\t\t\t\t\theight: 300\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t],\r\n\t\tlabels: this.labels,\r\n\t\tdataLabels: {\r\n\t\t\tenabled: true,\r\n\t\t\tformatter: (val, opts) => {\r\n\t\t if (this.tag !== null) {\r\n\t\t return this.tag + opts.w.config.series[opts.seriesIndex];\r\n\t\t } else {\r\n\t\t return opts.w.config.series[opts.seriesIndex];\r\n\t\t }\r\n\t\t},\r\n\t\t\tclick: function (val, opts) {\r\n\t\t\t\tconsole.log(opts.w.config.series[opts.seriesIndex]);\r\n\t\t\t},\r\n\t\t\ttextAnchor: 'middle',\r\n\t\t\tbackground: {\r\n\t\t\t\tenabled: true,\r\n\t\t\t\tforeColor: '#2b2b2b',\r\n\t\t\t\tpadding: 2,\r\n\t\t\t\tborderRadius: 2,\r\n\t\t\t\topacity: 1,\r\n\t\t\t\tdropShadow: {\r\n\t\t\t\t\tenabled: false\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tstyle: {\r\n\t\t\t\tfontSize: '12px',\r\n\t\t\t\tcolors: ['#fff']\r\n\t\t\t}\r\n\t\t},\r\n\t\tcolors: ['#14CC60', '#e6a308', '#b70c0c'],\r\n\t\tplotOptions: {\r\n\t\t\tpie: {\r\n\t\t\t\toffsetY: 40,\r\n\t\t\t\tdonut: {\r\n\t\t\t\t\tsize: '50%'\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\tlegend: this.legendOptions\r\n\t};\r\n\tpublic GetLabelName(event, chartContext, config) {\r\n\t\tconst clickedIndex = config.dataPointIndex;\r\n\t\tconst clickedLabel = this.labels[clickedIndex];\r\n\t\tthis.filterContracts(clickedLabel, clickedIndex)\r\n\t}\r\n}\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DoughnutChart.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DoughnutChart.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./DoughnutChart.vue?vue&type=template&id=45aefa70&scoped=true&\"\nimport script from \"./DoughnutChart.vue?vue&type=script&lang=ts&\"\nexport * from \"./DoughnutChart.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./DoughnutChart.vue?vue&type=style&index=0&id=45aefa70&lang=scss&scoped=true&\"\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 \"45aefa70\",\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DoughnutChart.vue?vue&type=style&index=0&id=45aefa70&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DoughnutChart.vue?vue&type=style&index=0&id=45aefa70&lang=scss&scoped=true&\"","// Types\nimport Vue, { VNode } from 'vue'\n\nexport default function VGrid (name: string) {\n /* @vue/component */\n return Vue.extend({\n name: `v-${name}`,\n\n functional: true,\n\n props: {\n id: String,\n tag: {\n type: String,\n default: 'div',\n },\n },\n\n render (h, { props, data, children }): VNode {\n data.staticClass = (`${name} ${data.staticClass || ''}`).trim()\n\n const { attrs } = data\n if (attrs) {\n // reset attrs to extract utility clases like pa-3\n data.attrs = {}\n const classes = Object.keys(attrs).filter(key => {\n // TODO: Remove once resolved\n // https://github.com/vuejs/vue/issues/7841\n if (key === 'slot') return false\n\n const value = attrs[key]\n\n // add back data attributes like data-test=\"foo\" but do not\n // add them as classes\n if (key.startsWith('data-')) {\n data.attrs![key] = value\n return false\n }\n\n return value || typeof value === 'string'\n })\n\n if (classes.length) data.staticClass += ` ${classes.join(' ')}`\n }\n\n if (props.id) {\n data.domProps = data.domProps || {}\n data.domProps.id = props.id\n }\n\n return h(props.tag, data, children)\n },\n })\n}\n","import './_grid.sass'\nimport './VGrid.sass'\n\nimport Grid from './grid'\n\nimport mergeData from '../../util/mergeData'\n\n/* @vue/component */\nexport default Grid('container').extend({\n name: 'v-container',\n functional: true,\n props: {\n id: String,\n tag: {\n type: String,\n default: 'div',\n },\n fluid: {\n type: Boolean,\n default: false,\n },\n },\n render (h, { props, data, children }) {\n let classes\n const { attrs } = data\n if (attrs) {\n // reset attrs to extract utility clases like pa-3\n data.attrs = {}\n classes = Object.keys(attrs).filter(key => {\n // TODO: Remove once resolved\n // https://github.com/vuejs/vue/issues/7841\n if (key === 'slot') return false\n\n const value = attrs[key]\n\n // add back data attributes like data-test=\"foo\" but do not\n // add them as classes\n if (key.startsWith('data-')) {\n data.attrs![key] = value\n return false\n }\n\n return value || typeof value === 'string'\n })\n }\n\n if (props.id) {\n data.domProps = data.domProps || {}\n data.domProps.id = props.id\n }\n\n return h(\n props.tag,\n mergeData(data, {\n staticClass: 'container',\n class: Array<any>({\n 'container--fluid': props.fluid,\n }).concat(classes || []),\n }),\n children\n )\n },\n})\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-container',{attrs:{\"fluid\":\"\"}},[_c('div',[_c('v-row',[_c('v-col',[_c('h1',[_vm._v(\"Buyers Requests\")])])],1),_c('v-row',[_c('v-col',[_c('v-dialog',{key:_vm.quickQuoteFormDialogKey,attrs:{\"persistent\":\"\",\"fullscreen\":\"\"},on:{\"click:outside\":function($event){return _vm.closeCreateQuickQuoteDialog()}},model:{value:(_vm.createQuickQuoteDialog),callback:function ($$v) {_vm.createQuickQuoteDialog=$$v},expression:\"createQuickQuoteDialog\"}},[_c('QuickQuoteForm',{attrs:{\"quickQuoteId\":_vm.quickQuoteId,\"cancel\":_vm.closeCreateQuickQuoteDialog},on:{\"onQuickQuoteCreated\":function($event){return _vm.onQuickQuoteCreated($event)}}})],1)],1)],1)],1),_c('div',{staticClass:\"header-divider\"}),(!_vm.redirected)?_c('router-view',{key:_vm.routerViewKey}):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Vue, Watch } from 'vue-property-decorator';\r\nimport { namespace } from 'vuex-class';\r\nimport { Route } from 'vue-router';\r\nimport QuickQuoteForm from '@/views/buyerRequests/quickQuotes/QuickQuoteForm.vue';\r\nimport AuthRedirectService from '@/services/authRedirect.service';\r\nimport {\r\n\tIS_ACCOUNT_SUPER_ADMIN\r\n} from '@/store/auth/getters';\r\n\r\nconst auth = namespace('auth');\r\n\r\n@Component({\r\n\tcomponents: { QuickQuoteForm }\r\n})\r\nexport default class SuperAdminBuyerRequests extends Vue {\r\n\t@auth.Getter(IS_ACCOUNT_SUPER_ADMIN) public isSuperAdmin!: boolean;\r\n\tpublic routerViewKey = 10000;\r\n\tpublic quickQuoteFormDialogKey = 10000;\r\n\tpublic createQuickQuoteDialog = false;\r\n\tpublic quickQuoteId = '';\r\n\tpublic redirected = true;\r\n\r\n\tcreated() {\r\n\t\tAuthRedirectService.handleAuthRouteRedirect(this.isSuperAdmin).then(\r\n\t\t\tredirected => {\r\n\t\t\t\tthis.redirected = redirected;\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tpublic openCreateQuickQuoteDialog() {\r\n\t\tthis.quickQuoteId = '';\r\n\t\tthis.quickQuoteFormDialogKey++;\r\n\t\tthis.createQuickQuoteDialog = true;\r\n\t}\r\n\r\n\tpublic closeCreateQuickQuoteDialog() {\r\n\t\tthis.quickQuoteId = '';\r\n\t\tthis.routerViewKey++;\r\n\t\tthis.createQuickQuoteDialog = false;\r\n\t}\r\n\r\n\tpublic onQuickQuoteCreated(quickQuoteId: string) {\r\n\t\tthis.quickQuoteId = quickQuoteId;\r\n\t}\r\n\t// public subtitle: string = 'Manage your people';\r\n}\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Requests.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Requests.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Requests.vue?vue&type=template&id=6e9d6c9e&scoped=true&\"\nimport script from \"./Requests.vue?vue&type=script&lang=ts&\"\nexport * from \"./Requests.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./Requests.vue?vue&type=style&index=0&id=6e9d6c9e&lang=scss&scoped=true&\"\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 \"6e9d6c9e\",\n null\n \n)\n\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VContainer } from 'vuetify/lib/components/VGrid';\nimport { VDialog } from 'vuetify/lib/components/VDialog';\nimport { VRow } from 'vuetify/lib/components/VGrid';\ninstallComponents(component, {VCol,VContainer,VDialog,VRow})\n","import mod from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Buyers.vue?vue&type=style&index=0&id=13a85c6a&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Buyers.vue?vue&type=style&index=0&id=13a85c6a&lang=scss&scoped=true&\"","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!./Requests.vue?vue&type=style&index=1&id=41340b10&scoped=true&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!./Requests.vue?vue&type=style&index=1&id=41340b10&scoped=true&lang=css&\""],"sourceRoot":""}