{"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/Pages/Archieve/archieve_copilot.vue?043d","webpack:///./src/store/general.js","webpack:///./src/Pages/Archieve/archieve_copilot.vue","webpack:///src/Pages/Archieve/archieve_copilot.vue","webpack:///./src/Pages/Archieve/archieve_copilot.vue?7970","webpack:///./src/Pages/Archieve/archieve_copilot.vue?1857","webpack:///./src/Pages/Archieve/archieve_copilot.vue?faec","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","GetArchivedCampaigns","queryString","Array","isArray","item","GetBookmarkedCampaigns","DeleteCampaign","id","delete","BookmarkCampaign","post","ArchiveCampaign","UnarchiveCampaign","UnbookmarkCampaign","ActivityLog","on","hideAllDropdown","goBack","tableLoading","tableData","length","$route","query","client_case","loadData","tableConfig","tableHandler","tableSearchConfig","sortData","sendQuery","require","staticStyle","$event","$bvModal","hide","deleteCampaign","components","BreadCrumb","TableList","creds","format","header","width","center","options","label","pagination","current","total","fullData","selected","watch","handler","newCf","page","$router","push","deep","methods","$root","$emit","o","campaignId","unarchiveCampaign","show","viewCampaign","name","params","general","res","message","$toast","success","archiveCampaign","console","log","_this$$route$query$cl","obj","DATA","current_page","perPage","per_page","statLoading","ent","$options","filters","username","creator","created_at","q","Rquery","navigate","to","created","CRED","parse","getItem","les","full","used"],"mappings":"kHAAA,IAAIA,EAAS,WAAiB,IAAAC,EAAKC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,M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AAgC,QAAAC,KAAA,CAAAlC,WAEAL,SACA,KAAAsC,QAAAC,KAAA,CAAAU,KAAA,cAEAyB,SAAAC,GACA,MAAAA,GACA,KAAArC,QAAAC,KAAA,CAAAU,KAAA,4BAOA2B,UACA,MAAAC,EAAA5G,KAAA6G,MAAA/G,aAAAgH,QAAA,aAAAjH,eACA,KAAAwD,MAAA0D,IAAAH,EAAAI,KAAAD,IAAAH,EAAAK,KAAAF,IAEA,KAAA5E,OAAAC,MAAAgC,KACA,KAAA9B,WADA,KAAA+B,QAAAC,KAAA,CAAAlC,MAAA,CAAAgC,KAAA,OCzPwW,I,kCCSpWpF,EAAY,eACd,EACApB,EACAgB,GACA,EACA,KACA,WACA,MAIa,aAAAI,E,2CCpBf,W,kCCAA","file":"js/chunk-1cb81d65.a530c99b.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","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!./archieve_copilot.vue?vue&type=style&index=1&id=b9c42778&prod&scoped=true&lang=css\"","import axios from \"@/axios.js\";\r\n\r\nexport default {\r\n /**\r\n * Retrieve updated userInfo\r\n * @param {*} me Vue's `this` instance\r\n */\r\n GetMe() {\r\n return new Promise((resolve, reject) => {\r\n axios\r\n .get(\"me\")\r\n .then((response) => {\r\n if (!response) return;\r\n\r\n const UI = response.data.data;\r\n if (![undefined, \"undefined\", null, \"null\"].includes(UI.nexlaw_credits)) localStorage.setItem(\"userInfo\", JSON.stringify(UI));\r\n\r\n resolve(response);\r\n })\r\n .catch((error) => { reject(error); });\r\n });\r\n },\r\n\r\n /**\r\n * Retrieve campaign list\r\n * @param {*} args Queries to filter the list\r\n */\r\n GetCampaigns(args = null) {\r\n var API = `nexlaw`;\r\n if (args) {\r\n API += `?` + Object\r\n .entries(args)\r\n .map(([k, v]) => `${k}=${v}`)\r\n .join(`&`);\r\n }\r\n\r\n // if (id) {\r\n // API += (args ? `&` : `?`) + `client_id=${id}`;\r\n // }\r\n\r\n // console.log(API);\r\n\r\n return new Promise((resolve, reject) => {\r\n axios\r\n .get(API)\r\n .then((response) => { resolve(response); })\r\n .catch((error) => { reject(error); });\r\n });\r\n },\r\n\r\n /**\r\n * Retrieve campaign list\r\n * @param {*} args Queries to filter the list\r\n */\r\n GetSharedCampaigns(args = null) {\r\n var API = `shared-nexlaw`;\r\n if (args) {\r\n API += `?` + Object\r\n .entries(args)\r\n .map(([k, v]) => `${k}=${v}`)\r\n .join(`&`);\r\n }\r\n // if (id) {\r\n // API += (args ? `&` : `?`) + `client_id=${id}`;\r\n // }\r\n // console.log(API);\r\n return new Promise((resolve, reject) => {\r\n axios\r\n .get(API)\r\n .then((response) => { resolve(response); })\r\n .catch((error) => { reject(error); });\r\n });\r\n },\r\n /**\r\n * Archieve campaign list\r\n * @param {*} args Queries to filter the list\r\n */\r\n GetArchivedCampaigns(args = null) {\r\n let API = `nexlaw?archived=1`;\r\n\r\n if (args) {\r\n const queryString = Object.entries(args)\r\n .map(([k, v]) => {\r\n if (Array.isArray(v)) {\r\n // If it's an array, format each element with `[]` for multi types\r\n return v.map(item => `${k}[]=${item}`).join('&');\r\n } else {\r\n // If it's a single type, format as a normal key-value pair\r\n return `${k}=${v}`;\r\n }\r\n })\r\n .join('&');\r\n\r\n // Append the query string to the API URL\r\n API += `&` + queryString;\r\n }\r\n\r\n return new Promise((resolve, reject) => {\r\n axios\r\n .get(API)\r\n .then((response) => { resolve(response); })\r\n .catch((error) => { reject(error); });\r\n });\r\n },\r\n\r\n /**\r\n * Archieve campaign list\r\n * @param {*} args Queries to filter the list\r\n */\r\n GetBookmarkedCampaigns(args = null) {\r\n let API = `nexlaw?bookmarked=1`;\r\n\r\n if (args) {\r\n const queryString = Object.entries(args)\r\n .map(([k, v]) => {\r\n if (Array.isArray(v)) {\r\n // If it's an array, format each element with `[]` for multi types\r\n return v.map(item => `${k}[]=${item}`).join('&');\r\n } else {\r\n // If it's a single type, format as a normal key-value pair\r\n return `${k}=${v}`;\r\n }\r\n })\r\n .join('&');\r\n\r\n // Append the query string to the API URL\r\n API += `&` + queryString;\r\n }\r\n\r\n return new Promise((resolve, reject) => {\r\n axios\r\n .get(API)\r\n .then((response) => { resolve(response); })\r\n .catch((error) => { reject(error); });\r\n });\r\n },\r\n \r\n\r\n /**\r\n * Permanently delete a campaign\r\n * @param {*} id Campaign ID\r\n */\r\n DeleteCampaign(id) {\r\n return new Promise((resolve, reject) => {\r\n axios\r\n .delete(`nexlaw/${id}/delete`)\r\n .then((response) => { resolve(response); })\r\n .catch((error) => { reject(error); });\r\n });\r\n },\r\n\r\n /**\r\n * Bookmark campaign\r\n * @param {*} id Campaign ID\r\n */\r\n BookmarkCampaign(id) {\r\n return new Promise((resolve, reject) => {\r\n axios\r\n .post(`nexlaw/${id}/bookmark`)\r\n .then((response) => { resolve(response); })\r\n .catch((error) => { reject(error); });\r\n });\r\n },\r\n \r\n\r\n /**\r\n * Move campaign into `Archived Campaigns`\r\n * @param {*} id Campaign ID\r\n */\r\n ArchiveCampaign(id) {\r\n return new Promise((resolve, reject) => {\r\n axios\r\n .post(`nexlaw/${id}/archive`)\r\n .then((response) => { resolve(response); })\r\n .catch((error) => { reject(error); });\r\n });\r\n },\r\n\r\n /**\r\n * Unarchive campaign\r\n * @param {*} id Campaign ID\r\n */\r\n UnarchiveCampaign(id) {\r\n return new Promise((resolve, reject) => {\r\n axios\r\n .post(`nexlaw/${id}/unarchive`)\r\n .then((response) => { resolve(response); })\r\n .catch((error) => { reject(error); });\r\n });\r\n },\r\n\r\n /**\r\n * Unbookmark campaign\r\n * @param {*} id Campaign ID\r\n */\r\n UnbookmarkCampaign(id) {\r\n return new Promise((resolve, reject) => {\r\n axios\r\n .post(`nexlaw/${id}/unbookmark`)\r\n .then((response) => { resolve(response); })\r\n .catch((error) => { reject(error); });\r\n });\r\n },\r\n\r\n ActivityLog(args = null) {\r\n let API = `nexlaw`;\r\n\r\n if (args) {\r\n const queryString = Object.entries(args)\r\n .map(([k, v]) => Array.isArray(v) \r\n ? v.map(item => `${k}[]=${item}`).join('&') \r\n : `${k}=${v}`\r\n )\r\n .join('&');\r\n\r\n API += `?` + queryString;\r\n }\r\n\r\n return new Promise((resolve, reject) => {\r\n axios\r\n .get(API)\r\n .then((response) => { resolve(response); })\r\n .catch((error) => { reject(error); });\r\n });\r\n },\r\n\r\n \r\n}","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{on:{\"click\":_vm.hideAllDropdown}},[_c('BreadCrumb',{attrs:{\"title\":\"Archive Page\",\"subtitle\":\"Legal AI Trial Copilot\"}}),_c('div',{staticClass:\"d-flex align-items-center left mt-3\",on:{\"click\":_vm.goBack}},[_c('span',{staticClass:\"material-symbols-rounded me-2\"},[_vm._v(\"arrow_back\")]),_c('p',{staticClass:\"mb-0\"},[_vm._v(\"Back\")])]),(_vm.tableLoading || _vm.tableData.length > 0 || _vm.$route.query.client_case)?_c('TableList',{staticClass:\"table-margin\",attrs:{\"unarhive-all\":true,\"delete-all\":true,\"load-data\":_vm.loadData,\"loading\":_vm.tableLoading,\"tableConfig\":_vm.tableConfig,\"tableData\":_vm.tableData,\"actions\":_vm.tableHandler,\"search\":_vm.tableSearchConfig},on:{\"sort-data\":_vm.sortData,\"send-query\":_vm.sendQuery}}):_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 Legal AI Trial Copilot! No trials to display yet—start a new one to get started. \")])]),_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 title=\"Archive Page\" subtitle=\"Legal AI Trial Copilot\"></BreadCrumb>\r\n <div class=\"d-flex align-items-center left mt-3\" @click=\"goBack\">\r\n <span class=\"material-symbols-rounded me-2\">arrow_back</span>\r\n <p class=\"mb-0\">Back</p>\r\n </div>\r\n\r\n <TableList class=\"table-margin\" v-if=\"tableLoading || tableData.length > 0 || $route.query.client_case\"\r\n :unarhive-all=\"true\" :delete-all=\"true\" :load-data=\"loadData\" :loading=\"tableLoading\" :tableConfig=\"tableConfig\"\r\n :tableData=\"tableData\" :actions=\"tableHandler\" @sort-data=\"sortData\" :search=\"tableSearchConfig\"\r\n @send-query=\"sendQuery\" />\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 Legal AI Trial Copilot! No trials to display yet—start a\r\n new one to get started.\r\n </p>\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 general from \"../../store/general\";\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: \"Archived Matters: Legal AI Trial Copilot\",\r\n },\r\n tableConfig: {\r\n format: [\r\n {\r\n header: \"ID\",\r\n width: 9,\r\n },\r\n {\r\n header: \"Matter Info\",\r\n width: 49,\r\n },\r\n {\r\n header: \"Created By\",\r\n width: 16,\r\n center: true,\r\n },\r\n {\r\n header: \"Date\",\r\n width: 16,\r\n },\r\n {\r\n header: \"Action\",\r\n width: 10,\r\n center: true,\r\n },\r\n ],\r\n options: [\r\n {\r\n icon: \"unarchive\",\r\n label: \"Undo 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\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 if (this.$route.query.page == page) return;\r\n\r\n const query = { page };\r\n if (this.$route.query.client_case)\r\n query.client_case = this.$route.query.client_case;\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.loadData();\r\n },\r\n },\r\n\r\n methods: {\r\n hideAllDropdown() {\r\n this.$root.$emit(\"bv::hide::tooltip\");\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 case 0:\r\n this.unarchiveCampaign(campaignId);\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 1:\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: \"LegalCopilot_CaseFlowResult\",\r\n params: { id: campaignId },\r\n });\r\n },\r\n unarchiveCampaign(campaignId) {\r\n general.UnarchiveCampaign(campaignId).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 general.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 general.DeleteCampaign(this.selected).then((res) => {\r\n if (res.data.message === \"Successful\")\r\n this.$toast.success(res.data.message);\r\n console.log(\"Success Delete\");\r\n this.loadData();\r\n });\r\n },\r\n\r\n loadData() {\r\n const client_case = this.$route.query.client_case ?? null;\r\n const page = this.$route.query.page;\r\n\r\n const obj = { type: \"les\", page };\r\n if (client_case) obj.client_case = client_case;\r\n\r\n this.tableLoading = true;\r\n general.GetArchivedCampaigns(obj).then((res) => {\r\n if (!res) return;\r\n const DATA = res.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 ent.client_case,\r\n this.$options.filters.username(ent.creator.name),\r\n ent.created_at,\r\n ]);\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.client_case = q;\r\n else if (Rquery.page > 1 || Rquery.client_case)\r\n this.$router.push({ query });\r\n },\r\n goBack() {\r\n this.$router.push({ name: \"Archieve\" });\r\n },\r\n navigate(to) {\r\n if (to === \"+\") {\r\n this.$router.push({ name: \"LegalCopilot_PreTrial\" });\r\n } else {\r\n return;\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\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.left {\r\n color: var(--primary);\r\n cursor: pointer;\r\n}\r\n\r\n#Header {\r\n background: #fff;\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!./archieve_copilot.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!./archieve_copilot.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./archieve_copilot.vue?vue&type=template&id=b9c42778&scoped=true\"\nimport script from \"./archieve_copilot.vue?vue&type=script&lang=js\"\nexport * from \"./archieve_copilot.vue?vue&type=script&lang=js\"\nimport style0 from \"./archieve_copilot.vue?vue&type=style&index=0&id=b9c42778&prod&scoped=true&lang=css\"\nimport style1 from \"./archieve_copilot.vue?vue&type=style&index=1&id=b9c42778&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 \"b9c42778\",\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./archieve_copilot.vue?vue&type=style&index=0&id=b9c42778&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!./BreadCrumb.vue?vue&type=style&index=0&id=9da42f32&prod&scoped=true&lang=css\""],"sourceRoot":""}