{"version":3,"sources":["webpack:///./src/components/misc/BreadCrumb.vue","webpack:///src/components/misc/BreadCrumb.vue","webpack:///./src/components/misc/BreadCrumb.vue?9896","webpack:///./src/components/misc/BreadCrumb.vue?7e7c","webpack:///./src/store/research.js","webpack:///./src/Pages/LegalResearch/legislation_search/history.vue?9287","webpack:///./src/Pages/LegalResearch/legislation_search/history.vue?408d","webpack:///./src/Pages/LegalResearch/legislation_search/history.vue","webpack:///src/Pages/LegalResearch/legislation_search/history.vue","webpack:///./src/Pages/LegalResearch/legislation_search/history.vue?0e5a","webpack:///./src/Pages/LegalResearch/legislation_search/history.vue?a711","webpack:///./src/store/projects.js","webpack:///./src/components/misc/BreadCrumb.vue?3ac3"],"names":["render","_vm$subtitle","_vm","this","_c","_self","attrs","subtitle","staticClass","_v","_s","icon","title","_e","class","_t","staticRenderFns","props","type","String","component","GetMe","Promise","resolve","reject","axios","get","then","response","UI","data","undefined","includes","nexlaw_credits","localStorage","setItem","JSON","stringify","catch","error","GetCampaigns","args","API","Object","entries","map","k","v","join","GetSharedCampaigns","DeleteCampaign","id","delete","BookmarkCampaign","post","ArchiveCampaign","UnarchiveCampaign","legislationSearch","item","GetLegislationSearch","obj","GetLegislation","payload","params","SummarizeLegis","OpenSummary","sendQuestion","on","hideAllDropdown","goBack","staticStyle","tableLoading","tableData","length","$route","query","statement","client_id","campaignShared","loadData","loadDataShared","tableConfig","tableConfigShared","tableHandler","tableSearchConfig","project","sortData","sendQuery","viewCampaign","filterProject","require","$event","navigate","$bvModal","hide","deleteCampaign","components","BreadCrumb","TableList","creds","format","header","width","center","options","label","pagination","current","total","fullData","selected","watch","handler","newCf","page","console","log","$router","push","deep","methods","$root","$emit","name","o","campaignId","bookmarkCampaign","archiveCampaign","show","research","res","message","$toast","success","_this$$route$query$st","projects","DATA","ent","current_page","perPage","per_page","statLoading","parse","jurisdictions","total_findings","created_at","$options","filters","username","creator","_this$$route$query$st2","q","Rquery","file_name","created","CRED","getItem","les","full","used","GetProjects","addPro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AKP,GAAMO,GACjC/B,KAAMC,IACNL,EAAQK,KAERU,MAAOC,IACPf,EAAOe,QAKXgI,cAAcC,GACb,OAAO,IAAIlJ,QAAQ,CAACC,EAASC,KAC5BC,OACE2B,OAAO,mBAAmBoH,GAC1B7I,KAAMC,IACNL,EAAQK,KAERU,MAAOC,IACPf,EAAOe,U,kCC7FZ","file":"js/chunk-0d638531.b8ac1c0d.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{attrs:{\"id\":\"Header\"}},[_c('div',[(!_vm.subtitle)?_c('h3',[_vm._v(_vm._s(_vm.title))]):[_c('span',{staticClass:\"material-symbols-rounded main\"},[_vm._v(_vm._s(_vm.icon))]),_c('h3',[_vm._v(_vm._s(_vm.title))])],(_vm.subtitle)?_c('span',{staticClass:\"divider\"}):_vm._e(),(!_vm.subtitle)?_c('span',{staticClass:\"material-symbols-rounded sub\"},[_vm._v(_vm._s(_vm.icon))]):_vm._e(),_c('p',{class:_vm.subtitle && 'black'},[_vm._v(_vm._s(_vm.subtitle ?? _vm.title))])],2),_vm._t(\"default\")],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div id=\"Header\">\r\n <div>\r\n <h3 v-if=\"!subtitle\">{{ title }}</h3>\r\n <template v-else>\r\n <span class=\"material-symbols-rounded main\">{{ icon }}</span>\r\n <h3>{{ title }}</h3>\r\n </template>\r\n\r\n <span v-if=\"subtitle\" class=\"divider\"></span>\r\n <span v-if=\"!subtitle\" class=\"material-symbols-rounded sub\">{{ icon }}</span>\r\n <p :class=\"subtitle && 'black'\">{{ subtitle ?? title }}</p>\r\n </div>\r\n <slot></slot>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n props: {\r\n title: { type: String },\r\n subtitle: { type: String },\r\n icon: { type: String },\r\n }\r\n}\r\n</script>\r\n\r\n<style scoped>\r\nh3, h5, p {\r\n margin-bottom: 0px;\r\n}\r\n\r\nspan.main {\r\n margin-right: 2px;\r\n font-size: 24px;\r\n}\r\n\r\n#Header {\r\n margin: -20px -20px 0px -20px;\r\n padding: 16px 20px;\r\n height: 72px;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n\r\n & > div {\r\n display: flex;\r\n align-items: center;\r\n }\r\n\r\n & button {\r\n margin-left: 50px;\r\n }\r\n}\r\n\r\n.divider {\r\n display: inline-block;\r\n margin: 0px 16px;\r\n width: 1px;\r\n height: 32px;\r\n background-color: var(--mid-grey);\r\n}\r\n\r\nspan.sub {\r\n margin-right: 2px;\r\n font-size: 18px;\r\n color: var(--dark-grey);\r\n}\r\n\r\np {\r\n font-weight: 500;\r\n color: var(--dark-grey) !important;\r\n}\r\n\r\n.black {\r\n color: var(--dark-grey) !important;\r\n}\r\n</style>","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!./BreadCrumb.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!./BreadCrumb.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./BreadCrumb.vue?vue&type=template&id=9da42f32&scoped=true\"\nimport script from \"./BreadCrumb.vue?vue&type=script&lang=js\"\nexport * from \"./BreadCrumb.vue?vue&type=script&lang=js\"\nimport style0 from \"./BreadCrumb.vue?vue&type=style&index=0&id=9da42f32&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 \"9da42f32\",\n null\n \n)\n\nexport default component.exports","import axios from \"@/axios.js\";\r\n\r\nexport default {\r\n\t/**\r\n\t * Retrieve updated userInfo\r\n\t * @param {*} me Vue's `this` instance\r\n\t */\r\n\tGetMe() {\r\n\t\treturn new Promise((resolve, reject) => {\r\n\t\t\taxios\r\n\t\t\t\t.get(\"me\")\r\n\t\t\t\t.then((response) => {\r\n\t\t\t\t\tif (!response) return;\r\n\r\n\t\t\t\t\tconst UI = response.data.data;\r\n\t\t\t\t\tif (\r\n\t\t\t\t\t\t![undefined, \"undefined\", null, \"null\"].includes(UI.nexlaw_credits)\r\n\t\t\t\t\t)\r\n\t\t\t\t\t\tlocalStorage.setItem(\"userInfo\", JSON.stringify(UI));\r\n\r\n\t\t\t\t\tresolve(response);\r\n\t\t\t\t})\r\n\t\t\t\t.catch((error) => {\r\n\t\t\t\t\treject(error);\r\n\t\t\t\t});\r\n\t\t});\r\n\t},\r\n\r\n\t/**\r\n\t * Retrieve campaign list\r\n\t * @param {*} args Queries to filter the list\r\n\t */\r\n\tGetCampaigns(args = null) {\r\n\t\tvar API = `nexlaw`;\r\n\t\tif (args) {\r\n\t\t\tAPI +=\r\n\t\t\t\t`?` +\r\n\t\t\t\tObject.entries(args)\r\n\t\t\t\t\t.map(([k, v]) => `${k}=${v}`)\r\n\t\t\t\t\t.join(`&`);\r\n\t\t}\r\n\r\n\t\treturn new Promise((resolve, reject) => {\r\n\t\t\taxios\r\n\t\t\t\t.get(API)\r\n\t\t\t\t.then((response) => {\r\n\t\t\t\t\tresolve(response);\r\n\t\t\t\t})\r\n\t\t\t\t.catch((error) => {\r\n\t\t\t\t\treject(error);\r\n\t\t\t\t});\r\n\t\t});\r\n\t},\r\n\r\n\t/**\r\n\t * Retrieve campaign list\r\n\t * @param {*} args Queries to filter the list\r\n\t */\r\n\tGetSharedCampaigns(args = null) {\r\n\t\tvar API = `shared-nexlaw`;\r\n\t\tif (args) {\r\n\t\t\tAPI +=\r\n\t\t\t\t`?` +\r\n\t\t\t\tObject.entries(args)\r\n\t\t\t\t\t.map(([k, v]) => `${k}=${v}`)\r\n\t\t\t\t\t.join(`&`);\r\n\t\t}\r\n\t\t// if (id) {\r\n\t\t// API += (args ? `&` : `?`) + `client_id=${id}`;\r\n\t\t// }\r\n\t\t// console.log(API);\r\n\t\treturn new Promise((resolve, reject) => {\r\n\t\t\taxios\r\n\t\t\t\t.get(API)\r\n\t\t\t\t.then((response) => {\r\n\t\t\t\t\tresolve(response);\r\n\t\t\t\t})\r\n\t\t\t\t.catch((error) => {\r\n\t\t\t\t\treject(error);\r\n\t\t\t\t});\r\n\t\t});\r\n\t},\r\n\r\n\t/**\r\n\t * Permanently delete a campaign\r\n\t * @param {*} id Campaign ID\r\n\t */\r\n\tDeleteCampaign(id) {\r\n\t\treturn new Promise((resolve, reject) => {\r\n\t\t\taxios\r\n\t\t\t\t.delete(`nexlaw/${id}/delete`)\r\n\t\t\t\t.then((response) => {\r\n\t\t\t\t\tresolve(response);\r\n\t\t\t\t})\r\n\t\t\t\t.catch((error) => {\r\n\t\t\t\t\treject(error);\r\n\t\t\t\t});\r\n\t\t});\r\n\t},\r\n\r\n\t/**\r\n\t * Bookmark campaign\r\n\t * @param {*} id Campaign ID\r\n\t */\r\n\tBookmarkCampaign(id) {\r\n\t\treturn new Promise((resolve, reject) => {\r\n\t\t\taxios\r\n\t\t\t\t.post(`nexlaw/${id}/bookmark`)\r\n\t\t\t\t.then((response) => {\r\n\t\t\t\t\tresolve(response);\r\n\t\t\t\t})\r\n\t\t\t\t.catch((error) => {\r\n\t\t\t\t\treject(error);\r\n\t\t\t\t});\r\n\t\t});\r\n\t},\r\n\r\n\t/**\r\n\t * Move campaign into `Archived Campaigns`\r\n\t * @param {*} id Campaign ID\r\n\t */\r\n\tArchiveCampaign(id) {\r\n\t\treturn new Promise((resolve, reject) => {\r\n\t\t\taxios\r\n\t\t\t\t.post(`nexlaw/${id}/archive`)\r\n\t\t\t\t.then((response) => {\r\n\t\t\t\t\tresolve(response);\r\n\t\t\t\t})\r\n\t\t\t\t.catch((error) => {\r\n\t\t\t\t\treject(error);\r\n\t\t\t\t});\r\n\t\t});\r\n\t},\r\n\r\n\t/**\r\n\t * Unarchive campaign\r\n\t * @param {*} id Campaign ID\r\n\t */\r\n\tUnarchiveCampaign(id) {\r\n\t\treturn new Promise((resolve, reject) => {\r\n\t\t\taxios\r\n\t\t\t\t.post(`nexlaw/${id}/unarchive`)\r\n\t\t\t\t.then((response) => {\r\n\t\t\t\t\tresolve(response);\r\n\t\t\t\t})\r\n\t\t\t\t.catch((error) => {\r\n\t\t\t\t\treject(error);\r\n\t\t\t\t});\r\n\t\t});\r\n\t},\r\n\tlegislationSearch(item) {\r\n\t\treturn new Promise((resolve, reject) => {\r\n\t\t\taxios\r\n\t\t\t\t.post(`nexlaw/legislation-search`, item)\r\n\t\t\t\t.then((response) => {\r\n\t\t\t\t\tresolve(response);\r\n\t\t\t\t})\r\n\t\t\t\t.catch((error) => {\r\n\t\t\t\t\treject(error);\r\n\t\t\t\t});\r\n\t\t});\r\n\t},\r\n\r\n\tGetLegislationSearch(obj) {\r\n\t\treturn new Promise((resolve, reject) => {\r\n\t\t\taxios\r\n\t\t\t\t.get(`nexlaw?type=legislation` + obj)\r\n\t\t\t\t.then((response) => {\r\n\t\t\t\t\tresolve(response);\r\n\t\t\t\t})\r\n\t\t\t\t.catch((error) => {\r\n\t\t\t\t\treject(error);\r\n\t\t\t\t});\r\n\t\t});\r\n\t},\r\n\r\n\tGetLegislation(id, payload) {\r\n\t\treturn new Promise((resolve, reject) => {\r\n\t\t\taxios\r\n\t\t\t\t.get(`nexlaw/${id}`, { params: payload })\r\n\t\t\t\t.then((response) => {\r\n\t\t\t\t\tresolve(response);\r\n\t\t\t\t})\r\n\t\t\t\t.catch((error) => {\r\n\t\t\t\t\treject(error);\r\n\t\t\t\t});\r\n\t\t});\r\n\t},\r\n\r\n\tSummarizeLegis(id) {\r\n\t\treturn new Promise((resolve, reject) => {\r\n\t\t\taxios\r\n\t\t\t\t.post(`nexlaw/legislation-summary/${id}`)\r\n\t\t\t\t.then((response) => {\r\n\t\t\t\t\tresolve(response);\r\n\t\t\t\t})\r\n\t\t\t\t.catch((error) => {\r\n\t\t\t\t\treject(error);\r\n\t\t\t\t});\r\n\t\t});\r\n\t},\r\n\r\n\tOpenSummary(id) {\r\n\t\treturn new Promise((resolve, reject) => {\r\n\t\t\taxios\r\n\t\t\t\t.get(`nexlaw/legislation/${id}`)\r\n\t\t\t\t.then((response) => {\r\n\t\t\t\t\tresolve(response);\r\n\t\t\t\t})\r\n\t\t\t\t.catch((error) => {\r\n\t\t\t\t\treject(error);\r\n\t\t\t\t});\r\n\t\t});\r\n\t},\r\n\r\n\tsendQuestion(type, id, item) {\r\n\t\treturn new Promise((resolve, reject) => {\r\n\t\t\taxios\r\n\t\t\t\t.post(`nexlaw/case/${type}/${id}/ask`, item)\r\n\t\t\t\t.then((response) => {\r\n\t\t\t\t\tresolve(response);\r\n\t\t\t\t})\r\n\t\t\t\t.catch((error) => {\r\n\t\t\t\t\treject(error);\r\n\t\t\t\t});\r\n\t\t});\r\n\t},\r\n};\r\n","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!./history.vue?vue&type=style&index=0&id=086922d0&prod&scoped=true&lang=css\"","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!./history.vue?vue&type=style&index=1&id=086922d0&prod&scoped=true&lang=css\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{on:{\"click\":_vm.hideAllDropdown}},[_c('BreadCrumb',{attrs:{\"title\":\"Legal Research\",\"subtitle\":\"Legislation Search / Search History\"}}),_c('div',{staticClass:\"d-flex justify-content-start cursor-pointer back\",on:{\"click\":_vm.goBack}},[_c('span',{staticClass:\"material-symbols-rounded\",staticStyle:{\"margin\":\"0\"}},[_vm._v(\"arrow_back\")]),_c('span',{staticStyle:{\"margin\":\"0 8px\"}},[_vm._v(\"Back\")])]),(\n _vm.tableLoading ||\n _vm.tableData.length > 0 ||\n _vm.$route.query.statement ||\n _vm.client_id ||\n _vm.campaignShared\n )?_c('TableList',{staticClass:\"table-margin\",attrs:{\"showShareCampaign\":true,\"percentageColumnIndex\":6,\"show-buttons\":true,\"load-data\":_vm.loadData,\"loadDataShared\":_vm.loadDataShared,\"loading\":_vm.tableLoading,\"tableConfig\":_vm.tableConfig,\"tableConfigShared\":_vm.tableConfigShared,\"tableData\":_vm.tableData,\"actions\":_vm.tableHandler,\"search\":_vm.tableSearchConfig,\"projects\":_vm.project},on:{\"sort-data\":_vm.sortData,\"send-query\":_vm.sendQuery,\"row-click\":_vm.viewCampaign,\"filter-project\":_vm.filterProject}}):_c('div',{staticClass:\"empty-placeholder\"},[_c('span',{staticClass:\"min-margin\"}),_c('img',{attrs:{\"src\":require(\"@/assets/misc/empty.svg\"),\"alt\":\"No Content\"}}),_c('p',[_vm._v(\" Welcome to the Legislation Search! No Search Datas to display yet — start a new one to get started. \")]),_c('button',{staticClass:\"btn-primary\",on:{\"click\":function($event){return _vm.navigate('+')}}},[_c('span',{staticClass:\"material-symbols-rounded\"},[_vm._v(\"add\")]),_vm._v(\" Add new case \")])]),_c('b-modal',{attrs:{\"id\":\"delete-modal\",\"hide-header\":\"\",\"hide-footer\":\"\",\"centered\":\"\"}},[_c('div',{staticClass:\"delete-prompt\"},[_c('img',{attrs:{\"src\":require(\"@/assets/misc/delete.svg\"),\"alt\":\"Delete\"}}),_c('p',{staticStyle:{\"text-align\":\"center\"}},[_c('b',[_vm._v(\"Are you sure you want to delete this matter?\")]),_c('br'),_vm._v(\" This action is permanent and cannot be undone. \")])]),_c('div',{staticClass:\"delete-prompt-options\"},[_c('button',{staticClass:\"btn-outlined\",on:{\"click\":function($event){return _vm.$bvModal.hide('delete-modal')}}},[_vm._v(\" Cancel \")]),_c('button',{staticClass:\"btn-danger\",on:{\"click\":_vm.deleteCampaign}},[_vm._v(\"Delete\")])])])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div @click=\"hideAllDropdown\">\r\n <BreadCrumb\r\n title=\"Legal Research\"\r\n subtitle=\"Legislation Search / Search History\"\r\n >\r\n </BreadCrumb>\r\n\r\n <div\r\n @click=\"goBack\"\r\n class=\"d-flex justify-content-start cursor-pointer back\"\r\n >\r\n <span class=\"material-symbols-rounded\" style=\"margin: 0\">arrow_back</span>\r\n <span style=\"margin: 0 8px\">Back</span>\r\n </div>\r\n\r\n <TableList\r\n class=\"table-margin\"\r\n v-if=\"\r\n tableLoading ||\r\n tableData.length > 0 ||\r\n $route.query.statement ||\r\n client_id ||\r\n campaignShared\r\n \"\r\n :showShareCampaign=\"true\"\r\n :percentageColumnIndex=\"6\"\r\n :show-buttons=\"true\"\r\n :load-data=\"loadData\"\r\n :loadDataShared=\"loadDataShared\"\r\n :loading=\"tableLoading\"\r\n :tableConfig=\"tableConfig\"\r\n :tableConfigShared=\"tableConfigShared\"\r\n :tableData=\"tableData\"\r\n :actions=\"tableHandler\"\r\n @sort-data=\"sortData\"\r\n :search=\"tableSearchConfig\"\r\n :projects=\"project\"\r\n @send-query=\"sendQuery\"\r\n @row-click=\"viewCampaign\"\r\n @filter-project=\"filterProject\"\r\n />\r\n\r\n <div v-else class=\"empty-placeholder\">\r\n <span class=\"min-margin\"></span>\r\n <img src=\"@/assets/misc/empty.svg\" alt=\"No Content\" />\r\n <p>\r\n Welcome to the Legislation Search! No Search Datas to display yet —\r\n start a new one to get started.\r\n </p>\r\n <button class=\"btn-primary\" @click=\"navigate('+')\">\r\n <span class=\"material-symbols-rounded\">add</span>\r\n Add new case\r\n </button>\r\n </div>\r\n\r\n <!-- Delete Modal -->\r\n <b-modal id=\"delete-modal\" hide-header hide-footer centered>\r\n <div class=\"delete-prompt\">\r\n <img src=\"@/assets/misc/delete.svg\" alt=\"Delete\" />\r\n <p style=\"text-align: center\">\r\n <b>Are you sure you want to delete this matter?</b><br />\r\n This action is permanent and cannot be undone.\r\n </p>\r\n </div>\r\n <div class=\"delete-prompt-options\">\r\n <button class=\"btn-outlined\" @click=\"$bvModal.hide('delete-modal')\">\r\n Cancel\r\n </button>\r\n <button class=\"btn-danger\" @click=\"deleteCampaign\">Delete</button>\r\n </div>\r\n </b-modal>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport BreadCrumb from \"../../../components/misc/BreadCrumb.vue\";\r\nimport TableList from \"../../../components/misc/TableList.vue\";\r\nimport research from \"../../../store/research\";\r\nimport projects from \"../../../store/projects\";\r\n\r\nexport default {\r\n components: {\r\n BreadCrumb,\r\n TableList,\r\n },\r\n\r\n data() {\r\n return {\r\n // header\r\n creds: {},\r\n\r\n // Case Flow Results\r\n tableLoading: true,\r\n tableSearchConfig: {\r\n title: \"History\",\r\n },\r\n tableConfig: {\r\n format: [\r\n {\r\n header: \"ID\",\r\n width: 5,\r\n },\r\n {\r\n header: \"Statement\",\r\n // width: 38,\r\n },\r\n {\r\n header: \"Jurisdiction\",\r\n width: 16,\r\n center: true,\r\n },\r\n {\r\n header: \"Findings\",\r\n width: 12,\r\n center: true,\r\n },\r\n {\r\n header: \"Date Created\",\r\n width: 16,\r\n center: true,\r\n },\r\n {\r\n header: \"Action\",\r\n width: 8,\r\n center: true,\r\n },\r\n ],\r\n options: [\r\n {\r\n icon: \"arrow_forward\",\r\n label: \"View Matter\",\r\n },\r\n {\r\n icon: \"star\",\r\n label: \"Bookmark\",\r\n },\r\n {\r\n icon: \"archive\",\r\n label: \"Archive\",\r\n },\r\n {\r\n icon: \"delete\",\r\n label: \"Delete Matter\",\r\n },\r\n ],\r\n pagination: {\r\n current: 1,\r\n total: 0,\r\n },\r\n },\r\n tableConfigShared: {\r\n format: [\r\n {\r\n header: \"ID\",\r\n width: 5,\r\n },\r\n {\r\n header: \"Statement\",\r\n // width: 38,\r\n },\r\n {\r\n header: \"Jurisdiction\",\r\n width: 16,\r\n center: true,\r\n },\r\n {\r\n header: \"Findings\",\r\n width: 12,\r\n center: true,\r\n },\r\n {\r\n header: \"Date Created\",\r\n width: 16,\r\n center: true,\r\n },\r\n {\r\n header: \"Action\",\r\n width: 8,\r\n center: true,\r\n },\r\n ],\r\n options: [\r\n {\r\n icon: \"arrow_forward\",\r\n label: \"View Matter\",\r\n },\r\n {\r\n icon: \"star\",\r\n label: \"Bookmark\",\r\n },\r\n {\r\n icon: \"archive\",\r\n label: \"Archive\",\r\n },\r\n {\r\n icon: \"delete\",\r\n label: \"Delete Matter\",\r\n },\r\n ],\r\n pagination: {\r\n current: 1,\r\n total: 0,\r\n },\r\n },\r\n fullData: [],\r\n tableData: [],\r\n project: [],\r\n\r\n campaignShared: false,\r\n client_id: null,\r\n\r\n // Dropdown Menu\r\n selected: null,\r\n };\r\n },\r\n\r\n watch: {\r\n // update route when changing page\r\n tableConfig: {\r\n handler(newCf) {\r\n const page = newCf.pagination.current;\r\n console.log(\"Page\", page);\r\n if (this.$route.query.page == page) {\r\n // this.client_id = null;\r\n return;\r\n }\r\n\r\n const query = { page };\r\n console.log(\"Query\", query);\r\n if (this.$route.query.statement)\r\n query.statement = this.$route.query.statement; // Change client_case to statement\r\n this.$router.push({ query });\r\n },\r\n deep: true,\r\n },\r\n\r\n tableConfigShared: {\r\n handler(newCf) {\r\n const page = newCf.pagination.current;\r\n console.log(\"Page\", page);\r\n if (this.$route.query.page == page) {\r\n // this.client_id = null;\r\n return;\r\n }\r\n\r\n const query = { page };\r\n console.log(\"Query\", query);\r\n if (this.$route.query.statement)\r\n query.statement = this.$route.query.statement; // Change client_case to statement\r\n this.$router.push({ query });\r\n },\r\n deep: true,\r\n },\r\n\r\n // update data when changed, works when using backward navigation\r\n $route() {\r\n this.tableData = [];\r\n if (!this.$route.query.page) {\r\n this.campaignShared = false;\r\n this.client_id = null; // Reset client_id if page query parameter is removed\r\n }\r\n if (this.campaignShared) this.loadDataShared(this.client_id);\r\n else this.loadData(this.client_id);\r\n },\r\n },\r\n\r\n methods: {\r\n filterProject(id) {\r\n this.client_id = id;\r\n if (this.campaignShared) this.loadDataShared(this.client_id);\r\n else this.loadData(this.client_id);\r\n },\r\n // to hide all dropdown menu when clicked on anywhere in the page\r\n hideAllDropdown() {\r\n this.$root.$emit(\"bv::hide::tooltip\");\r\n },\r\n goBack() {\r\n this.$router.push({ name: \"LegalResearch\" });\r\n // this.$router.go(-1);\r\n },\r\n\r\n sortData(data) {\r\n this.tableData = data;\r\n },\r\n\r\n tableHandler(o, id) {\r\n this.selected = this.tableData[id][0];\r\n const campaignId = this.tableData[id][0];\r\n\r\n switch (o) {\r\n // View File\r\n case 0:\r\n this.viewCampaign(campaignId);\r\n break;\r\n\r\n // Bookmark\r\n case 1:\r\n this.bookmarkCampaign();\r\n break;\r\n\r\n // Archive\r\n case 2:\r\n this.archiveCampaign();\r\n break;\r\n\r\n // Delete\r\n case 3:\r\n this.$bvModal.show(\"delete-modal\");\r\n break;\r\n }\r\n },\r\n viewCampaign(campaignId) {\r\n this.$router.push({\r\n name: \"LegislationSearchResult\",\r\n params: { id: campaignId },\r\n });\r\n },\r\n bookmarkCampaign() {\r\n research.BookmarkCampaign(this.selected).then((res) => {\r\n if (res.data.message === \"Successful\")\r\n this.$toast.success(res.data.message);\r\n this.loadData();\r\n });\r\n },\r\n archiveCampaign() {\r\n research.ArchiveCampaign(this.selected).then((res) => {\r\n if (res.data.message === \"Successful\")\r\n this.$toast.success(res.data.message);\r\n this.loadData();\r\n });\r\n },\r\n\r\n deleteCampaign() {\r\n this.$bvModal.hide(\"delete-modal\");\r\n research.DeleteCampaign(this.selected).then((res) => {\r\n if (res.data.message === \"Successful\")\r\n this.$toast.success(res.data.message);\r\n this.loadData();\r\n });\r\n },\r\n loadData(client_id) {\r\n this.campaignShared = false;\r\n this.tableLoading = true;\r\n\r\n const statement = this.$route.query.statement ?? null;\r\n const page = this.tableConfig.pagination.current;\r\n\r\n const obj = { type: \"legislation\", page };\r\n if (statement) obj.statement = statement;\r\n if (client_id) obj.client_id = client_id;\r\n\r\n projects.GetMe().then((res) => {\r\n const DATA = res.data.data;\r\n this.project = DATA.map((ent) => ({ id: ent.id, name: ent.name }));\r\n });\r\n\r\n research.GetCampaigns(obj).then((res) => {\r\n if (!res) return;\r\n const DATA = res.data.data;\r\n // console.log(\"Data\", DATA);\r\n\r\n this.tableConfig.pagination = {\r\n current: DATA.current_page,\r\n total: DATA.total,\r\n perPage: DATA.per_page,\r\n };\r\n this.fullData = DATA.data;\r\n this.statLoading = false;\r\n this.tableLoading = false;\r\n\r\n this.tableData = this.fullData.map((ent) => [\r\n ent.id,\r\n JSON.parse(ent.statement)[0],\r\n JSON.parse(ent.jurisdictions)[0],\r\n ent.total_findings,\r\n ent.created_at,\r\n this.$options.filters.username(ent.creator.name),\r\n ]);\r\n });\r\n },\r\n\r\n loadDataShared(client_id) {\r\n this.campaignShared = true;\r\n this.tableLoading = true;\r\n\r\n const statement = this.$route.query.statement ?? null;\r\n const page = this.tableConfigShared.pagination.current;\r\n\r\n const obj = { type: \"legislation\", page };\r\n if (statement) obj.statement = statement;\r\n if (client_id) obj.client_id = client_id;\r\n\r\n projects.GetMe().then((res) => {\r\n const DATA = res.data.data;\r\n this.project = DATA.map((ent) => ({ id: ent.id, name: ent.name }));\r\n });\r\n\r\n research.GetSharedCampaigns(obj).then((res) => {\r\n if (!res) return;\r\n const DATA = res.data.data;\r\n // console.log(\"Data\", DATA);\r\n\r\n this.tableConfigShared.pagination = {\r\n current: DATA.current_page,\r\n total: DATA.total,\r\n perPage: DATA.per_page,\r\n };\r\n this.fullData = DATA.data;\r\n this.statLoading = false;\r\n this.tableLoading = false;\r\n\r\n this.tableData = this.fullData.map((ent) => [\r\n ent.id,\r\n JSON.parse(ent.statement)[0],\r\n JSON.parse(ent.jurisdictions)[0],\r\n ent.total_findings,\r\n ent.created_at,\r\n this.$options.filters.username(ent.creator.name),\r\n ]);\r\n });\r\n },\r\n // sendQuery(q) {\r\n // const Rquery = this.$route.query;\r\n // const query = { page: 1 };\r\n // if (q) query.statement = q;\r\n // else if (Rquery.page > 1 || Rquery.statement) this.$router.push({ query });\r\n // },\r\n sendQuery(q) {\r\n const Rquery = this.$route.query;\r\n const query = { page: 1 };\r\n if (q) {\r\n query.statement = q;\r\n this.$router.push({ query });\r\n } else if (Rquery.page > 1 || Rquery.file_name) {\r\n this.$router.push({ query });\r\n }\r\n },\r\n },\r\n\r\n created() {\r\n const CRED = JSON.parse(localStorage.getItem(\"userInfo\")).nexlaw_credits;\r\n this.creds.les = CRED.full.les - CRED.used.les;\r\n\r\n if (!this.$route.query.page) this.$router.push({ query: { page: 1 } });\r\n else this.loadData();\r\n },\r\n};\r\n</script>\r\n\r\n<style scoped>\r\n.table-margin {\r\n margin: 16px 10px 0px 10px;\r\n}\r\n\r\n.btn-primary {\r\n height: 40px;\r\n background: #0e4485;\r\n\r\n span {\r\n margin-right: 10px;\r\n }\r\n}\r\n\r\n.empty-placeholder {\r\n min-height: 40%;\r\n width: 500px;\r\n\r\n .min-margin {\r\n display: inline-block;\r\n height: 110px;\r\n }\r\n\r\n img {\r\n margin-top: auto;\r\n margin-bottom: 24px;\r\n }\r\n\r\n p {\r\n text-align: center;\r\n margin-bottom: 32px;\r\n }\r\n}\r\n</style>\r\n\r\n<!-- Delete Modal -->\r\n<style scoped>\r\n.delete-prompt {\r\n margin: 8px 8px 20px 8px;\r\n display: flex;\r\n flex-direction: column;\r\n justify-content: center;\r\n align-items: center;\r\n}\r\n\r\n.delete-prompt img {\r\n background-color: var(--interface-grey);\r\n padding: 32px;\r\n border-radius: 8px;\r\n height: 164px;\r\n width: 100%;\r\n margin-bottom: 16px;\r\n}\r\n\r\n.delete-prompt p {\r\n margin-bottom: 0px;\r\n}\r\n\r\n.delete-prompt p b {\r\n font-weight: 500;\r\n font-size: 16px;\r\n color: var(--neutral-black);\r\n}\r\n\r\n.delete-prompt-options {\r\n display: flex;\r\n justify-content: space-between;\r\n margin: 0px 8px 8px 8px;\r\n}\r\n\r\n.delete-prompt-options button {\r\n width: calc(50% - 4px);\r\n height: 32px;\r\n}\r\n\r\n.back {\r\n color: var(--primary) !important;\r\n font-weight: 500;\r\n}\r\n</style>\r\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!./history.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!./history.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./history.vue?vue&type=template&id=086922d0&scoped=true\"\nimport script from \"./history.vue?vue&type=script&lang=js\"\nexport * from \"./history.vue?vue&type=script&lang=js\"\nimport style0 from \"./history.vue?vue&type=style&index=0&id=086922d0&prod&scoped=true&lang=css\"\nimport style1 from \"./history.vue?vue&type=style&index=1&id=086922d0&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 \"086922d0\",\n null\n \n)\n\nexport default component.exports","import axios from \"@/axios.js\";\r\n\r\nexport default {\r\n\t/**\r\n\t * Retrieve updated userInfo\r\n\t * @param {*} me Vue's `this` instance\r\n\t */\r\n\tGetMe() {\r\n\t\treturn new Promise((resolve, reject) => {\r\n\t\t\taxios\r\n\t\t\t\t.get(\"nexrank-client\")\r\n\t\t\t\t.then((response) => {\r\n\t\t\t\t\tif (!response) return;\r\n\r\n\t\t\t\t\t// const UI = response.data.data;\r\n\t\t\t\t\t// if (![undefined, \"undefined\", null, \"null\"].includes(UI.nexlaw_credits)) localStorage.setItem(\"userInfo\", JSON.stringify(UI));\r\n\t\t\t\t\tresolve(response);\r\n\t\t\t\t})\r\n\t\t\t\t.catch((error) => {\r\n\t\t\t\t\treject(error);\r\n\t\t\t\t});\r\n\t\t});\r\n\t},\r\n\r\n\tGetProjects(args = null) {\r\n\t\tvar API = `nexrank-client`;\r\n\t\tif (args) {\r\n\t\t\tAPI +=\r\n\t\t\t\t`?` +\r\n\t\t\t\tObject.entries(args)\r\n\t\t\t\t\t.map(([k, v]) => `${k}=${v}`)\r\n\t\t\t\t\t.join(`&`);\r\n\t\t}\r\n\r\n\t\treturn new Promise((resolve, reject) => {\r\n\t\t\taxios\r\n\t\t\t\t.get(API)\r\n\t\t\t\t.then((response) => {\r\n\t\t\t\t\tresolve(response);\r\n\t\t\t\t})\r\n\t\t\t\t.catch((error) => {\r\n\t\t\t\t\treject(error);\r\n\t\t\t\t});\r\n\t\t});\r\n\t},\r\n\r\n\taddProject(item) {\r\n\t\treturn new Promise((resolve, reject) => {\r\n\t\t\taxios\r\n\t\t\t\t.post(\"nexrank-client\", item)\r\n\t\t\t\t.then((response) => {\r\n\t\t\t\t\tresolve(response);\r\n\t\t\t\t})\r\n\t\t\t\t.catch((error) => {\r\n\t\t\t\t\treject(error);\r\n\t\t\t\t});\r\n\t\t});\r\n\t},\r\n\r\n\tshareProject(item) {\r\n\t\treturn new Promise((resolve, reject) => {\r\n\t\t\taxios\r\n\t\t\t\t.post(`employees/${item.employee}/attach-client/${item.client}`)\r\n\t\t\t\t.then((response) => {\r\n\t\t\t\t\tresolve(response);\r\n\t\t\t\t})\r\n\t\t\t\t.catch((error) => {\r\n\t\t\t\t\treject(error);\r\n\t\t\t\t});\r\n\t\t});\r\n\t},\r\n\r\n\teditProject(item) {\r\n\t\treturn new Promise((resolve, reject) => {\r\n\t\t\taxios\r\n\t\t\t\t.put(`nexrank-client/${item.id}`, item)\r\n\t\t\t\t.then((response) => {\r\n\t\t\t\t\tresolve(response);\r\n\t\t\t\t})\r\n\t\t\t\t.catch((error) => {\r\n\t\t\t\t\treject(error);\r\n\t\t\t\t});\r\n\t\t});\r\n\t},\r\n\r\n\tdeleteProject(itemId) {\r\n\t\treturn new Promise((resolve, reject) => {\r\n\t\t\taxios\r\n\t\t\t\t.delete(`/nexrank-client/${itemId}`)\r\n\t\t\t\t.then((response) => {\r\n\t\t\t\t\tresolve(response);\r\n\t\t\t\t})\r\n\t\t\t\t.catch((error) => {\r\n\t\t\t\t\treject(error);\r\n\t\t\t\t});\r\n\t\t});\r\n\t},\r\n};\r\n","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!./BreadCrumb.vue?vue&type=style&index=0&id=9da42f32&prod&scoped=true&lang=css\""],"sourceRoot":""}