{"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/general.js","webpack:///./src/Pages/LegalCopilot/main.vue","webpack:///src/Pages/LegalCopilot/main.vue","webpack:///./src/Pages/LegalCopilot/main.vue?52ac","webpack:///./src/Pages/LegalCopilot/main.vue?998f","webpack:///./src/Pages/LegalCopilot/main.vue?8f37","webpack:///./src/store/projects.js","webpack:///./src/components/misc/BreadCrumb.vue?3ac3","webpack:///./src/Pages/LegalCopilot/main.vue?e289"],"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","tableLoading","tableData","length","$event","navigate","$route","query","client_case","client_id","campaignShared","loadData","loadDataShared","tableConfig","tableConfigShared","tableHandler","project","tableSearchConfig","sortData","sendQuery","navigateToCampaign","filterProject","require","staticStyle","$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","o","campaignId","viewCampaign","bookmarkCampaign","archiveCampaign","show","name","params","general","res","message","$toast","success","getJurisdiction","jurisdiction","parsed","parse","keys","e","_this$$route$query$cl","obj","projects","DATA","ent","current_page","perPage","per_page","statLoading","statement","created_at","$options","filters","username","creator","completedPerCentage","_this$$route$query$cl2","q","Rquery","to","created","CRED","getItem","les","full","used","GetPro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,KACA,WACA,MAIa,aAAAI,E,2CCpBf,W,oFCAA,gBAEe,QAKdC,QACC,OAAO,IAAIC,QAAQ,CAACC,EAASC,KAC5BC,OACEC,IAAI,kBACJC,KAAMC,IACDA,GAILL,EAAQK,KAERU,MAAOC,IACPf,EAAOe,QAKX8H,YAAY5H,EAAO,MAClB,IAAIC,EAAM,iBASV,OARID,IACHC,GACC,IACAC,OAAOC,QAAQH,GACbI,IAAI,EAAEC,EAAGC,KAAO,GAAGD,KAAKC,KACxBC,KAAK,MAGF,IAAI1B,QAAQ,CAACC,EAASC,KAC5BC,OACEC,IAAIgB,GACJf,KAAMC,IACNL,EAAQK,KAERU,MAAOC,IACPf,EAAOe,QAKX+H,WAAWhH,GACV,OAAO,IAAIhC,QAAQ,CAACC,EAASC,KAC5BC,OACEmC,KAAK,iBAAkBN,GACvB3B,KAAMC,IACNL,EAAQK,KAERU,MAAOC,IACPf,EAAOe,QAKXgI,aAAajH,GACZ,OAAO,IAAIhC,QAAQ,CAACC,EAASC,KAC5BC,OACEmC,KAAK,aAAaN,EAAKkH,0BAA0BlH,EAAKmH,UACtD9I,KAAMC,IACNL,EAAQK,KAERU,MAAOC,IACPf,EAAOe,QAKXmI,YAAYpH,GACX,OAAO,IAAIhC,QAAQ,CAACC,EAASC,KAC5BC,OACEkJ,IAAI,kBAAkBrH,EAAKG,GAAMH,GACjC3B,KAAMC,IACNL,EAAQK,KAERU,MAAOC,IACPf,EAAOe,QAKXqI,cAAcC,GACb,OAAO,IAAIvJ,QAAQ,CAACC,EAASC,KAC5BC,OACEiC,OAAO,mBAAmBmH,GAC1BlJ,KAAMC,IACNL,EAAQK,KAERU,MAAOC,IACPf,EAAOe,U,yDC7FZ,W,kCCAA","file":"js/chunk-34effe74.72a18352.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  /**\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\":\"Legal AI Trial Copilot\",\"subtitle\":\"\"}},[(_vm.tableLoading || _vm.tableData.length)?_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 \")]):_vm._e()]),(\n      _vm.tableLoading ||\n      _vm.tableData.length > 0 ||\n      _vm.$route.query.client_case ||\n      _vm.client_id ||\n      _vm.campaignShared\n    )?_c('TableList',{staticClass:\"table-margin\",attrs:{\"showShareCampaign\":true,\"percentageColumnIndex\":4,\"show-buttons\":true,\"load-data\":_vm.loadData,\"load-data-shared\":_vm.loadDataShared,\"loading\":_vm.tableLoading,\"tableConfig\":_vm.tableConfig,\"tableConfigShared\":_vm.tableConfigShared,\"tableData\":_vm.tableData,\"actions\":_vm.tableHandler,\"projects\":_vm.project,\"search\":_vm.tableSearchConfig},on:{\"sort-data\":_vm.sortData,\"send-query\":_vm.sendQuery,\"row-click\":_vm.navigateToCampaign,\"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 Legal AI Trial Copilot! No trials 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 title=\"Legal AI Trial Copilot\" subtitle=\"\">\r\n      <button\r\n        v-if=\"tableLoading || tableData.length\"\r\n        class=\"btn-primary\"\r\n        @click=\"navigate('+')\"\r\n      >\r\n        <span class=\"material-symbols-rounded\">add</span>\r\n        Add new case\r\n      </button>\r\n    </BreadCrumb>\r\n    <TableList\r\n      class=\"table-margin\"\r\n      v-if=\"\r\n        tableLoading ||\r\n        tableData.length > 0 ||\r\n        $route.query.client_case ||\r\n        client_id ||\r\n        campaignShared\r\n      \"\r\n      :showShareCampaign=\"true\"\r\n      :percentageColumnIndex=\"4\"\r\n      :show-buttons=\"true\"\r\n      :load-data=\"loadData\"\r\n      :load-data-shared=\"loadDataShared\"\r\n      :loading=\"tableLoading\"\r\n      :tableConfig=\"tableConfig\"\r\n      :tableConfigShared=\"tableConfigShared\"\r\n      :tableData=\"tableData\"\r\n      :actions=\"tableHandler\"\r\n      :projects=\"project\"\r\n      @sort-data=\"sortData\"\r\n      :search=\"tableSearchConfig\"\r\n      @send-query=\"sendQuery\"\r\n      @row-click=\"navigateToCampaign\"\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 Legal AI Trial Copilot! No trials to display yet — start\r\n        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 general from \"../../store/general\";\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: \"Case Flow Results\",\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: \"Case File\",\r\n            width: 44,\r\n          },\r\n          {\r\n            header: \"Jurisdiction\",\r\n            width: 10,\r\n            center: true,\r\n          },\r\n          {\r\n            header: \"Date Created\",\r\n            width: 20,\r\n            center: true,\r\n          },\r\n          {\r\n            header: \"Created By\",\r\n            width: 16,\r\n            center: true,\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: \"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: 9,\r\n          },\r\n          {\r\n            header: \"Case File\",\r\n            width: 44,\r\n          },\r\n          {\r\n            header: \"Jurisdiction\",\r\n            width: 10,\r\n            center: true,\r\n          },\r\n          {\r\n            header: \"Date Created\",\r\n            width: 20,\r\n            center: true,\r\n          },\r\n          {\r\n            header: \"Created By\",\r\n            width: 16,\r\n            center: true,\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: \"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      client_id: null,\r\n\r\n      // Dropdown Menu\r\n      selected: null,\r\n      campaignShared: false,\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        if (this.$route.query.client_case)\r\n          query.client_case = this.$route.query.client_case; // Change statement to client_case\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.client_case)\r\n          query.client_case = this.$route.query.client_case; // Change statement to 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.tableData = [];\r\n      if (!this.$route.query.page) {\r\n        this.tableConfig.pagination.current = 1;\r\n        this.tableConfigShared.pagination.current = 1;\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    // to hide all dropdown menu when clicked on anywhere in the page\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    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    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\r\n    navigateToCampaign(campaignId) {\r\n      this.$router.push({\r\n        name: \"LegalCopilot_CaseFlowResult\",\r\n        params: { id: campaignId },\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    bookmarkCampaign() {\r\n      general.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      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        this.loadData();\r\n      });\r\n    },\r\n\r\n    getJurisdiction(jurisdiction) {\r\n      try {\r\n        const parsed = JSON.parse(jurisdiction);\r\n        return parsed ? Object.keys(parsed)[0] : \"\";\r\n      } catch (e) {\r\n        return jurisdiction || \"-\";\r\n      }\r\n    },\r\n\r\n    loadData(client_id) {\r\n      this.campaignShared = false;\r\n      this.tableLoading = true;\r\n\r\n      const client_case = this.$route.query.client_case ?? null;\r\n      const page = this.tableConfig.pagination.current;\r\n\r\n      const obj = { type: \"les\", page };\r\n      if (client_case) obj.client_case = client_case;\r\n      if (client_id || this.client_id)\r\n        obj.client_id = client_id || this.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      general.GetCampaigns(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        console.log(\"Full Data\", this.fullData);\r\n\r\n        this.tableData = this.fullData.map((ent) => {\r\n          return [\r\n            ent.id,\r\n            ent.client_case || ent.statement || \"-\",\r\n            // JSON.parse(ent.jurisdiction) ? Object.keys(JSON.parse(ent.jurisdiction))[0] : '',\r\n            this.getJurisdiction(ent.jurisdiction),\r\n            ent.created_at,\r\n            this.$options.filters.username(ent.creator.name),\r\n            ent.completedPerCentage,\r\n          ];\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 client_case = this.$route.query.client_case ?? null;\r\n      const page = this.tableConfigShared.pagination.current;\r\n\r\n      const obj = { type: \"les\", page };\r\n      if (client_case) obj.client_case = client_case;\r\n      if (client_id || this.client_id)\r\n        obj.client_id = client_id || this.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      general.GetSharedCampaigns(obj).then((res) => {\r\n        if (!res) return;\r\n        const DATA = res.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        console.log(\"Full Data\", this.fullData);\r\n\r\n        this.tableData = this.fullData.map((ent) => {\r\n          return [\r\n            ent.id,\r\n            ent.client_case || ent.statement || \"-\",\r\n            // JSON.parse(ent.jurisdiction) ? Object.keys(JSON.parse(ent.jurisdiction))[0] : '',\r\n            this.getJurisdiction(ent.jurisdiction),\r\n            ent.created_at,\r\n            this.$options.filters.username(ent.creator.name),\r\n            ent.completedPerCentage,\r\n          ];\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) this.$router.push({ query });\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) {\r\n        query.client_case = q; // Change statement to client_case\r\n        this.$router.push({ query });\r\n      } else if (Rquery.page > 1 || Rquery.client_case) {\r\n        this.$router.push({ query });\r\n      }\r\n    },\r\n    navigate(to) {\r\n      if (to === \"+\") {\r\n        this.$router.push({ name: \"LegalCopilot_PreTrial\" });\r\n      } else {\r\n        return; // goes into campaigns\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</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!./main.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!./main.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./main.vue?vue&type=template&id=329d0b23&scoped=true\"\nimport script from \"./main.vue?vue&type=script&lang=js\"\nexport * from \"./main.vue?vue&type=script&lang=js\"\nimport style0 from \"./main.vue?vue&type=style&index=0&id=329d0b23&prod&scoped=true&lang=css\"\nimport style1 from \"./main.vue?vue&type=style&index=1&id=329d0b23&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  \"329d0b23\",\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!./main.vue?vue&type=style&index=0&id=329d0b23&prod&scoped=true&lang=css\"","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\"","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!./main.vue?vue&type=style&index=1&id=329d0b23&prod&scoped=true&lang=css\""],"sourceRoot":""}