{"version":3,"sources":["webpack:///./node_modules/core-js/modules/es.object.has-own.js","webpack:///./src/Pages/LegalResearch/case_law_search/main.vue?2454","webpack:///./src/Pages/LegalResearch/case_law_search/main.vue","webpack:///src/Pages/LegalResearch/case_law_search/main.vue","webpack:///./src/Pages/LegalResearch/case_law_search/main.vue?e8b9","webpack:///./src/Pages/LegalResearch/case_law_search/main.vue?795f","webpack:///./src/Pages/LegalResearch/case_law_search/main.vue?65ec","webpack:///./src/store/casesearch.js"],"names":["$","hasOwn","target","stat","render","_vm","this","_c","_self","staticClass","pageLoading","attrs","on","openSearchHistory","_v","directives","name","rawName","value","statement","expression","domProps","$event","composing","class","isAllFieldsValid","performSearch","toggleJurisdiction","_l","selectedJurisdictions","juri","index","key","_s","formatSelectedJurisdiction","j","formatSelectedCourts","c","removeJurisdiction","showJurisdiction","handleUpdateJurisdiction","_e","preventDefault","isOpenProject","Object","keys","projectId","length","project","loading","getSelectedProject","toggleDateBox","resetAll","showDateBox","startDate","clearYears","endDate","years","_q","setYears","clearDates","showCitation","staticRenderFns","components","JurisdictionSelector","PageLoader","ProjectDialog","props","type","Array","required","Boolean","data","showProject","anyDate","from_date","to_date","recentSearches","watch","newVal","computed","getProjectId","dateRange","hasValidJurisdiction","every","jurisdiction","methods","$emit","selectProject","$router","push","countrySelector","toggleProject","currentYear","Date","getFullYear","toggleCitation","jurisdictions","console","log","pop","$toast","error","countryMapping","Australia","USA","Canada","Singapore","Malaysia","courts","join","splice","toastError","flag","empty","max","map","item","results","groupValidateInput","i","locations","localStorage","getItem","JSON","parse","foundLocation","find","x","title","obj","search_type","location_id","id","language","client_id","Auth","getMe","then","res","setItem","stringify","nexlaw_credits","undefined","removeItem","CaseSearch","caseSearch","response","success","message","params","catch","component","Promise","resolve","reject","axios","post","GetCaseSearch","get","GetJurisdiction","payload","SummarizeCase","OpenSummary","sendQuestion"],"mappings":"kHACA,IAAIA,EAAI,EAAQ,QACZC,EAAS,EAAQ,QAIrBD,EAAE,CAAEE,OA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91f4f9a.js","sourcesContent":["'use strict';\nvar $ = require('../internals/export');\nvar hasOwn = require('../internals/has-own-property');\n\n// `Object.hasOwn` method\n// https://tc39.es/ecma262/#sec-object.hasown\n$({ target: 'Object', stat: true }, {\n hasOwn: hasOwn\n});\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!./main.vue?vue&type=style&index=0&id=4e4004a8&prod&scoped=true&lang=css\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"legal-research-container\"},[(_vm.pageLoading)?_c('page-loader',{staticClass:\"page-loader\",attrs:{\"loading\":_vm.pageLoading}}):_c('div',[_c('button',{staticClass:\"search-history-btn\",on:{\"click\":_vm.openSearchHistory}},[_c('span',{staticClass:\"material-symbols-rounded search-history-icon\"},[_vm._v(\"schedule\")]),_c('span',{staticClass:\"search-history-text\"},[_vm._v(\"Search History\")])]),_c('main',{staticClass:\"main-content\"},[_c('section',{staticClass:\"search-section\"},[_c('header',{staticClass:\"search-header\"},[_c('h2',{staticClass:\"search-title\"},[_vm._v(\"Case Law Search\")]),_c('p',{staticClass:\"search-description\"},[_vm._v(\" Search for judgments, legal cases, or rulings across various jurisdictions. \")])]),_c('div',{staticClass:\"search-and-filter\"},[_c('div',{staticClass:\"search-form\"},[_c('div',{staticClass:\"search-input-wrapper\"},[_c('span',{staticClass:\"material-symbols-rounded search-icon\"},[_vm._v(\"search\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.statement),expression:\"statement\"}],staticClass:\"search-input\",attrs:{\"type\":\"text\",\"placeholder\":\"Can second wife claim husband's insurance money?\",\"aria-label\":\"Search query\"},domProps:{\"value\":(_vm.statement)},on:{\"input\":function($event){if($event.target.composing)return;_vm.statement=$event.target.value}}})]),_c('button',{staticClass:\"btn\",class:{\n 'search-submit-btn': !_vm.isAllFieldsValid,\n 'search-submit-btn-active': _vm.isAllFieldsValid,\n },attrs:{\"disabled\":!_vm.isAllFieldsValid},on:{\"click\":_vm.performSearch}},[_c('span',{staticClass:\"material-symbols-rounded search-submit-icon\"},[_vm._v(\"send\")])])]),_c('div',{staticClass:\"filter-section\"},[_c('div',{staticClass:\"jurisdiction-filter\"},[_c('div',{staticClass:\"filter-header\",on:{\"click\":_vm.toggleJurisdiction}},[_c('span',{staticClass:\"material-symbols-rounded filter-icon me-2\"},[_vm._v(\"language\")]),_c('span',{staticClass:\"filter-title\"},[_vm._v(\"Jurisdiction and Courts\")]),_c('span',{staticClass:\"material-symbols-rounded dropdown-icon\"},[_vm._v(\"arrow_drop_down\")])]),_c('div',{staticClass:\"selected-jurisdictions\"},_vm._l((_vm.selectedJurisdictions),function(juri,index){return _c('span',{key:index,staticClass:\"jurisdiction-badge\"},[_vm._v(\" \"+_vm._s(_vm.formatSelectedJurisdiction(juri.j))+\" (\"+_vm._s(_vm.formatSelectedCourts(juri.c))+\") \"),_c('span',{staticClass:\"material-symbols-rounded remove-icon\",on:{\"click\":function($event){return _vm.removeJurisdiction(index)}}},[_vm._v(\" close \")])])}),0)]),(_vm.showJurisdiction)?_c('JurisdictionSelector',{directives:[{name:\"clickaway\",rawName:\"v-clickaway\",value:(_vm.toggleJurisdiction),expression:\"toggleJurisdiction\"}],on:{\"update-jurisdiction\":_vm.handleUpdateJurisdiction,\"toggle-jurisdiction\":_vm.toggleJurisdiction}}):_vm._e()],1)]),_c('div',{staticClass:\"d-flex mb-2 mt-3\"},[_c('button',{staticClass:\"filter-btn pe-none me-2\"},[_c('span',{staticClass:\"material-symbols-rounded filter-icon me-2\"},[_vm._v(\"folder\")]),_c('span',[_vm._v(\"Case Name :\")])]),_c('div',[_c('span',{staticClass:\"filter-badge cursor-pointer\",on:{\"click\":function($event){$event.preventDefault();_vm.isOpenProject = true}}},[_vm._v(\" \"+_vm._s(Object.keys(_vm.projectId).length > 0 ? _vm.projectId.name : \"Choose Case\")+\" \"),_c('span',{staticClass:\"material-symbols-rounded remove-icon\"},[_vm._v(\"keyboard_arrow_down\")])])]),(_vm.isOpenProject)?_c('ProjectDialog',{attrs:{\"project\":_vm.project,\"loading\":_vm.loading},on:{\"close\":function($event){_vm.isOpenProject = false},\"project\":_vm.getSelectedProject}}):_vm._e()],1),_c('div',{staticClass:\"d-flex justify-content-between\"},[_c('div',{staticClass:\"advanced-filters\"},[_c('button',{staticClass:\"filter-btn pe-none\"},[_c('span',{staticClass:\"material-symbols-rounded filter-icon me-2\"},[_vm._v(\"filter_list\")]),_c('span',[_vm._v(\"Filters :\")])]),_c('span',{staticClass:\"filter-badge cursor-pointer\",on:{\"click\":_vm.toggleDateBox}},[_vm._v(\" Date Range \"),_c('span',{staticClass:\"material-symbols-rounded remove-icon\"},[_vm._v(\"keyboard_arrow_down\")])])]),_c('div',{staticClass:\"advanced-filters\"},[_c('button',{staticClass:\"clearall-button\",on:{\"click\":_vm.resetAll}},[_vm._v(\"Reset\")])])]),(_vm.showDateBox)?_c('div',{directives:[{name:\"clickaway\",rawName:\"v-clickaway\",value:(_vm.toggleDateBox),expression:\"toggleDateBox\"}],staticClass:\"position-relative\"},[_c('div',{staticClass:\"search-card\"},[_c('div',[_c('h6',{staticClass:\"public_title\"},[_vm._v(\"Publication Date\")]),_c('div',{staticClass:\"date-inputs\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.startDate),expression:\"startDate\"}],staticClass:\"custom-date-input\",attrs:{\"type\":\"date\",\"placeholder\":\"Start Date\"},domProps:{\"value\":(_vm.startDate)},on:{\"input\":[function($event){if($event.target.composing)return;_vm.startDate=$event.target.value},_vm.clearYears]}}),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.endDate),expression:\"endDate\"}],staticClass:\"custom-date-input\",attrs:{\"type\":\"date\",\"placeholder\":\"End Date\"},domProps:{\"value\":(_vm.endDate)},on:{\"input\":[function($event){if($event.target.composing)return;_vm.endDate=$event.target.value},_vm.clearYears]}})]),_c('div',{staticClass:\"radio-group\"},[_c('div',{staticClass:\"radio-option\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.years),expression:\"years\"}],attrs:{\"type\":\"radio\",\"id\":\"last5\",\"value\":\"5\"},domProps:{\"checked\":_vm._q(_vm.years,\"5\")},on:{\"change\":[function($event){_vm.years=\"5\"},_vm.setYears]}}),_c('label',{attrs:{\"for\":\"last5\"}},[_vm._v(\"Last 5 Years\")])]),_c('div',{staticClass:\"radio-option\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.years),expression:\"years\"}],attrs:{\"type\":\"radio\",\"id\":\"last10\",\"value\":\"10\"},domProps:{\"checked\":_vm._q(_vm.years,\"10\")},on:{\"change\":[function($event){_vm.years=\"10\"},_vm.setYears]}}),_c('label',{attrs:{\"for\":\"last10\"}},[_vm._v(\"Last 10 Years\")])]),_c('div',{staticClass:\"radio-option\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.years),expression:\"years\"}],attrs:{\"type\":\"radio\",\"id\":\"last15\",\"value\":\"15\"},domProps:{\"checked\":_vm._q(_vm.years,\"15\")},on:{\"change\":[function($event){_vm.years=\"15\"},_vm.setYears]}}),_c('label',{attrs:{\"for\":\"last15\"}},[_vm._v(\"Last 15 Years\")])]),_c('div',{staticClass:\"radio-option\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.years),expression:\"years\"}],attrs:{\"type\":\"radio\",\"id\":\"anyDate\",\"value\":\"any\"},domProps:{\"checked\":_vm._q(_vm.years,\"any\")},on:{\"change\":[function($event){_vm.years=\"any\"},_vm.clearDates]}}),_c('label',{attrs:{\"for\":\"anyDate\"}},[_vm._v(\"Any Date\")])])])])])]):_vm._e(),(_vm.showCitation)?_c('div',{staticClass:\"position-relative\"},[_c('div',{staticClass:\"citation\"},[_c('p',[_vm._v(\"Citation Count\")]),_c('input',{staticClass:\"citation_input\",attrs:{\"type\":\"number\",\"placeholder\":\"Enter Max Citation Count\"}})])]):_vm._e()])])])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"legal-research-container\">\r\n <page-loader v-if=\"pageLoading\" :loading=\"pageLoading\" class=\"page-loader\" />\r\n\r\n <div v-else>\r\n <button class=\"search-history-btn\" @click=\"openSearchHistory\">\r\n <span class=\"material-symbols-rounded search-history-icon\">schedule</span>\r\n <span class=\"search-history-text\">Search History</span>\r\n </button>\r\n <main class=\"main-content\">\r\n <section class=\"search-section\">\r\n <header class=\"search-header\">\r\n <h2 class=\"search-title\">Case Law Search</h2>\r\n <p class=\"search-description\">\r\n Search for judgments, legal cases, or rulings across various\r\n jurisdictions.\r\n </p>\r\n </header>\r\n <div class=\"search-and-filter\">\r\n <div class=\"search-form\">\r\n <div class=\"search-input-wrapper\">\r\n <span class=\"material-symbols-rounded search-icon\">search</span>\r\n <input v-model=\"statement\" type=\"text\" class=\"search-input\"\r\n placeholder=\"Can second wife claim husband's insurance money?\" aria-label=\"Search query\" />\r\n </div>\r\n <button @click=\"performSearch\" :disabled=\"!isAllFieldsValid\" class=\"btn\" :class=\"{\r\n 'search-submit-btn': !isAllFieldsValid,\r\n 'search-submit-btn-active': isAllFieldsValid,\r\n }\">\r\n <span class=\"material-symbols-rounded search-submit-icon\">send</span>\r\n </button>\r\n </div>\r\n <div class=\"filter-section\">\r\n <div class=\"jurisdiction-filter\">\r\n <div class=\"filter-header\" @click=\"toggleJurisdiction\">\r\n <span class=\"material-symbols-rounded filter-icon me-2\">language</span>\r\n <span class=\"filter-title\">Jurisdiction and Courts</span>\r\n <span class=\"material-symbols-rounded dropdown-icon\">arrow_drop_down</span>\r\n </div>\r\n <div class=\"selected-jurisdictions\">\r\n <span v-for=\"(juri, index) in selectedJurisdictions\" :key=\"index\" class=\"jurisdiction-badge\">\r\n {{ formatSelectedJurisdiction(juri.j) }} ({{\r\n formatSelectedCourts(juri.c)\r\n }})\r\n <span class=\"material-symbols-rounded remove-icon\" @click=\"removeJurisdiction(index)\">\r\n close\r\n </span>\r\n </span>\r\n </div>\r\n </div>\r\n <JurisdictionSelector v-if=\"showJurisdiction\" @update-jurisdiction=\"handleUpdateJurisdiction\"\r\n @toggle-jurisdiction=\"toggleJurisdiction\" v-clickaway=\"toggleJurisdiction\" />\r\n </div>\r\n </div>\r\n <div class=\"d-flex mb-2 mt-3\">\r\n <button class=\"filter-btn pe-none me-2\">\r\n <span class=\"material-symbols-rounded filter-icon me-2\">folder</span>\r\n <span>Case Name :</span>\r\n </button>\r\n <div>\r\n <span class=\"filter-badge cursor-pointer\" @click.prevent=\"isOpenProject = true\">\r\n {{\r\n Object.keys(projectId).length > 0\r\n ? projectId.name\r\n : \"Choose Case\"\r\n }}\r\n <span class=\"material-symbols-rounded remove-icon\">keyboard_arrow_down</span>\r\n </span>\r\n </div>\r\n\r\n <ProjectDialog :project=\"project\" :loading=\"loading\" @close=\"isOpenProject = false\"\r\n @project=\"getSelectedProject\" v-if=\"isOpenProject\" />\r\n <!-- <div>\r\n <div>\r\n <span\r\n class=\"filter-badge cursor-pointer\"\r\n @click=\"toggleProject\"\r\n >\r\n {{ getProjectId }}\r\n <span class=\"material-symbols-rounded remove-icon\"\r\n >keyboard_arrow_down</span\r\n >\r\n </span>\r\n </div> -->\r\n <!-- <select v-model.trim=\"projectId\" v-validate=\"'required'\" class=\"filter-badge cursor-pointer\" style=\"width: 450px;\">\r\n <option v-if=\"project.length === 0\" value=\"\" disabled selected>Loading Projects...</option>\r\n <option v-for=\"project in project\" :key=\"project.id\" :value=\"project\">\r\n {{ project.name }}\r\n </option>\r\n </select> -->\r\n <!-- </div> -->\r\n </div>\r\n <!-- <div\r\n v-if=\"showProject\"\r\n v-clickaway=\"toggleProject\"\r\n class=\"position-relative\"\r\n >\r\n <div\r\n class=\"search-card pt-2 pb-0\"\r\n style=\"max-height: 400px; overflow-y: auto; left: 14%\"\r\n >\r\n <div v-if=\"project.length === 0\">\r\n <p>Loading Project...</p>\r\n </div>\r\n <div\r\n v-for=\"project in project\"\r\n :key=\"project.id\"\r\n :value=\"project\"\r\n >\r\n <div\r\n @click=\"selectProject(project)\"\r\n class=\"cursor-pointer project-item\"\r\n >\r\n <span>{{ project.name }}</span>\r\n </div>\r\n </div>\r\n </div>\r\n </div> -->\r\n <div class=\"d-flex justify-content-between\">\r\n <div class=\"advanced-filters\">\r\n <button class=\"filter-btn pe-none\">\r\n <span class=\"material-symbols-rounded filter-icon me-2\">filter_list</span>\r\n <span>Filters :</span>\r\n </button>\r\n <span class=\"filter-badge cursor-pointer\" @click=\"toggleDateBox\">\r\n Date Range\r\n <span class=\"material-symbols-rounded remove-icon\">keyboard_arrow_down</span>\r\n </span>\r\n\r\n <!-- <span class=\"filter-badge cursor-pointer\" @click=\"toggleCitation\">\r\n Citation Count\r\n <span class=\"material-symbols-rounded remove-icon\"\r\n >keyboard_arrow_down</span\r\n >\r\n </span> -->\r\n </div>\r\n <div class=\"advanced-filters\">\r\n <!-- <button class=\"clearall-button\" @click=\"clearAll\">Clear</button> -->\r\n <button class=\"clearall-button\" @click=\"resetAll\">Reset</button>\r\n </div>\r\n </div>\r\n <div v-if=\"showDateBox\" class=\"position-relative\" v-clickaway=\"toggleDateBox\">\r\n <div class=\"search-card\">\r\n <div>\r\n <h6 class=\"public_title\">Publication Date</h6>\r\n <div class=\"date-inputs\">\r\n <input type=\"date\" placeholder=\"Start Date\" v-model=\"startDate\" @input=\"clearYears\"\r\n class=\"custom-date-input\" />\r\n <input type=\"date\" placeholder=\"End Date\" v-model=\"endDate\" @input=\"clearYears\"\r\n class=\"custom-date-input\" />\r\n </div>\r\n\r\n <div class=\"radio-group\">\r\n <div class=\"radio-option\">\r\n <input type=\"radio\" id=\"last5\" value=\"5\" v-model=\"years\" @change=\"setYears\" />\r\n <label for=\"last5\">Last 5 Years</label>\r\n </div>\r\n <div class=\"radio-option\">\r\n <input type=\"radio\" id=\"last10\" value=\"10\" v-model=\"years\" @change=\"setYears\" />\r\n <label for=\"last10\">Last 10 Years</label>\r\n </div>\r\n <div class=\"radio-option\">\r\n <input type=\"radio\" id=\"last15\" value=\"15\" v-model=\"years\" @change=\"setYears\" />\r\n <label for=\"last15\">Last 15 Years</label>\r\n </div>\r\n <div class=\"radio-option\">\r\n <input type=\"radio\" id=\"anyDate\" value=\"any\" v-model=\"years\" @change=\"clearDates\" />\r\n <label for=\"anyDate\">Any Date</label>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div v-if=\"showCitation\" class=\"position-relative\">\r\n <div class=\"citation\">\r\n <p>Citation Count</p>\r\n <input type=\"number\" class=\"citation_input\" placeholder=\"Enter Max Citation Count\" />\r\n </div>\r\n </div>\r\n </section>\r\n </main>\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport { groupValidateInput } from \"../../../store/utils\";\r\nimport JurisdictionSelector from \"./../JurisdictionSelector.vue\";\r\nimport Auth from \"@/store/Auth.js\";\r\nimport CaseSearch from \"@/store/casesearch.js\";\r\nimport PageLoader from \"../../PageLoader.vue\";\r\nimport ProjectDialog from \"../../../components/input/ProjectDialog.vue\";\r\nexport default {\r\n components: {\r\n JurisdictionSelector,\r\n PageLoader,\r\n ProjectDialog,\r\n },\r\n props: {\r\n project: {\r\n type: Array,\r\n required: true,\r\n },\r\n loading: {\r\n type: Boolean,\r\n required: true,\r\n },\r\n },\r\n data() {\r\n return {\r\n isOpenProject: false,\r\n projectId: {},\r\n pageLoading: false,\r\n showJurisdiction: false,\r\n selectedJurisdictions: [],\r\n showProject: false,\r\n showDateBox: false,\r\n showCitation: false,\r\n anyDate: false,\r\n startDate: \"\",\r\n endDate: \"\",\r\n years: \"\",\r\n from_date: \"\",\r\n to_date: \"\",\r\n recentSearches: [\r\n \"Can second wife claim husband's insurance money?\",\r\n \"Driving in a drunken state is a violation of law.\",\r\n \"Alcohol, driver, accident.\",\r\n \"Domestic violence.\",\r\n ],\r\n statement: \"\",\r\n };\r\n },\r\n watch: {\r\n startDate(newVal) {\r\n this.from_date = newVal;\r\n },\r\n endDate(newVal) {\r\n this.to_date = newVal;\r\n },\r\n },\r\n computed: {\r\n getProjectId() {\r\n return this.projectId ? this.projectId.name : \"Select Project\";\r\n },\r\n dateRange() {\r\n if (this.startDate && this.endDate) {\r\n return {\r\n from_date: this.startDate,\r\n to_date: this.endDate,\r\n };\r\n } else if (this.years) {\r\n this.setYears();\r\n return {\r\n from_date: this.startDate,\r\n to_date: this.endDate,\r\n };\r\n } else {\r\n return {\r\n from_date: null,\r\n to_date: null,\r\n };\r\n }\r\n },\r\n isAllFieldsValid() {\r\n const hasValidJurisdiction = () => {\r\n if (this.selectedJurisdictions && this.selectedJurisdictions.length) {\r\n return this.selectedJurisdictions.every(\r\n (jurisdiction) =>\r\n Object.hasOwn(jurisdiction, \"c\") && jurisdiction.c.length\r\n );\r\n }\r\n return false;\r\n };\r\n return hasValidJurisdiction() && this.statement;\r\n },\r\n },\r\n methods: {\r\n getSelectedProject(value) {\r\n this.projectId = value;\r\n this.isOpenProject = false;\r\n this.$emit(\"update-project\", this.projectId);\r\n },\r\n selectProject(project) {\r\n this.projectId = project;\r\n this.showProject = false;\r\n },\r\n openSearchHistory() {\r\n this.$router.push({ name: \"CaseLawSearchHistory\" });\r\n },\r\n toggleJurisdiction() {\r\n this.showJurisdiction = !this.showJurisdiction;\r\n this.countrySelector = true;\r\n },\r\n toggleProject() {\r\n this.showProject = !this.showProject;\r\n },\r\n toggleDateBox() {\r\n this.showDateBox = !this.showDateBox;\r\n },\r\n setYears() {\r\n const currentYear = new Date().getFullYear();\r\n this.startDate = `${currentYear - this.years}-01-01`;\r\n this.endDate = `${currentYear}-12-31`;\r\n },\r\n clearYears() {\r\n this.years = \"\";\r\n },\r\n clearDates() {\r\n this.startDate = \"\";\r\n this.endDate = \"\";\r\n },\r\n toggleCitation() {\r\n this.showCitation = !this.showCitation;\r\n },\r\n handleUpdateJurisdiction(jurisdictions) {\r\n console.log(\"Array of Jurisdictions\", jurisdictions);\r\n console.log(\"All Jurisdictions Lenght\", jurisdictions.length);\r\n // console.log(\"Jurisditions 0 Court Lenght\",jurisdictions[0].c.length);\r\n // console.log(\"Jurisditions 1 Court Lenght\",jurisdictions[1].c.length);\r\n\r\n if (\r\n jurisdictions &&\r\n jurisdictions[0] &&\r\n jurisdictions[0].c &&\r\n jurisdictions[0].c.length === 0\r\n ) {\r\n this.selectedJurisdictions.pop();\r\n\r\n if (jurisdictions.length === 2) {\r\n this.$toast.error(\r\n \"Please select states and it's court first before choosing another jurisdiction\"\r\n );\r\n this.toggleJurisdiction();\r\n this.selectedJurisdictions = [];\r\n }\r\n } else if (\r\n jurisdictions &&\r\n jurisdictions[1] &&\r\n jurisdictions[1].c &&\r\n jurisdictions[1].c.length === 0\r\n ) {\r\n if (jurisdictions.length === 3) {\r\n this.$toast.error(\r\n \"Please select states and it's court first before choosing another jurisdiction\"\r\n );\r\n this.toggleJurisdiction();\r\n this.selectedJurisdictions = [];\r\n }\r\n } else if (\r\n jurisdictions &&\r\n jurisdictions[2] &&\r\n jurisdictions[2].c &&\r\n jurisdictions[2].c.length === 0\r\n ) {\r\n console.log(\r\n \"Selected Jurisdictions [3] court 0\",\r\n this.selectedJurisdictions\r\n );\r\n } else {\r\n this.selectedJurisdictions = jurisdictions; // Update with the selected data from child\r\n // console.log(\"Main SELECTED JURISDICTIONS\",this.selectedJurisdictions)\r\n }\r\n },\r\n formatSelectedJurisdiction(jurisdiction) {\r\n const countryMapping = {\r\n Australia: \"AUS\",\r\n USA: \"USA\",\r\n Canada: \"CAN\",\r\n \"New Zealand\": \"NZ\",\r\n Singapore: \"SG\",\r\n Malaysia: \"MY\",\r\n \"United Kingdom\": \"UK\",\r\n \"Hong Kong\": \"HK\"\r\n };\r\n return countryMapping[jurisdiction];\r\n },\r\n formatSelectedCourts(courts) {\r\n // Assuming `courts` is an array of court names\r\n if (courts.length > 2) {\r\n return `${courts[0]},...`;\r\n } else {\r\n return courts.join(\", \");\r\n }\r\n },\r\n removeJurisdiction(index) {\r\n // Remove the jurisdiction by index\r\n this.selectedJurisdictions.splice(index, 1);\r\n },\r\n // clearAll() {},\r\n resetAll() {\r\n this.showJurisdiction = false;\r\n this.showCitation = false;\r\n this.showDateBox = false;\r\n this.clearYears();\r\n this.clearDates();\r\n this.selectedJurisdictions = [];\r\n this.statement = \"\";\r\n },\r\n toastError(flag) {\r\n this.$toast.error(\r\n {\r\n empty: \"Please fill in all required fields\",\r\n max: \"Maximum word limit exceeded\",\r\n courts: \"Please select court(s) for each chosen jurisdiction\",\r\n }[flag]\r\n );\r\n },\r\n performSearch() {\r\n this.pageLoading = true;\r\n\r\n const jurisdictions = this.selectedJurisdictions.map((item) => {\r\n return {\r\n jurisdiction: item.j,\r\n courts: item.c,\r\n };\r\n });\r\n const results = groupValidateInput([\r\n [this.statement, \"string\", [\"max50\"]],\r\n [jurisdictions, \"courts\"],\r\n ]);\r\n\r\n for (let i = 0; i < results.length; i++) {\r\n if (!results[i][0]) {\r\n this.toastError(results[i][1]);\r\n return;\r\n }\r\n }\r\n\r\n const locations = localStorage.getItem(\"locations\")\r\n ? JSON.parse(localStorage.getItem(\"locations\"))\r\n : [];\r\n const foundLocation = locations.find(\r\n (x) => x.title === jurisdictions[0][\"jurisdiction\"]\r\n );\r\n\r\n const obj = {\r\n search_type: \"and\",\r\n statement: [results[0][1]],\r\n location_id: foundLocation.id,\r\n language: \"en\",\r\n from_date: this.startDate || \"2024-05-05\",\r\n to_date: this.endDate || \"2024-09-05\",\r\n jurisdictions: results[1][1],\r\n };\r\n if (this.projectId && Object.keys(this.projectId).length > 0) {\r\n obj.client_id = this.projectId.id;\r\n }\r\n Auth.getMe()\r\n .then((res) => {\r\n localStorage.setItem(\"userInfo\", JSON.stringify(res.data.data));\r\n switch (res.data.data.nexlaw_credits) {\r\n case undefined:\r\n case \"undefined\":\r\n case null:\r\n case \"null\":\r\n localStorage.removeItem(\"accessToken\");\r\n localStorage.removeItem(\"userInfo\");\r\n this.$router.push(\"/login\");\r\n break;\r\n }\r\n })\r\n .then(() => {\r\n return CaseSearch.caseSearch(obj);\r\n })\r\n .then((response) => {\r\n this.$toast.success(response.data.message);\r\n this.$router.push({\r\n name: \"CaseLawSearchResult\",\r\n params: { id: response.data.data.id },\r\n });\r\n // this.currentPage = 1;\r\n // this.emptyInputs();\r\n // this.loadData();\r\n })\r\n .catch((error) => {\r\n console.log(error);\r\n });\r\n },\r\n },\r\n};\r\n</script>\r\n\r\n<style scoped>\r\n.page-loader {\r\n position: absolute;\r\n top: 0;\r\n left: 0;\r\n right: 0;\r\n bottom: 0;\r\n background: rgba(255, 255, 255, 0.8);\r\n z-index: 1000;\r\n}\r\n\r\n.legal-research-container {\r\n background: #fafbfc;\r\n}\r\n\r\n.page-header {\r\n background: #fff;\r\n padding: 16px 20px;\r\n}\r\n\r\n.page-title {\r\n color: #383a3e;\r\n font: 600 24px Poppins, sans-serif;\r\n}\r\n\r\n.tabs-navigation {\r\n border-bottom: 1px solid #f2f3f3;\r\n background: #fff;\r\n padding-right: 12px;\r\n}\r\n\r\n.tabs-list {\r\n display: flex;\r\n list-style-type: none;\r\n padding: 0;\r\n margin: 0;\r\n}\r\n\r\n.tab-item {\r\n color: #86888d;\r\n font: 400 14px/24px Poppins, sans-serif;\r\n padding: 8px 16px;\r\n cursor: pointer;\r\n}\r\n\r\n.tab-item.active {\r\n border-bottom: 2px solid #0e4485;\r\n color: #0e4485;\r\n}\r\n\r\n.search-history-btn {\r\n display: flex;\r\n align-items: center;\r\n gap: 8px;\r\n border: none;\r\n background: #0e4485;\r\n color: #fff;\r\n border-radius: 4px;\r\n font: 500 16px Poppins, sans-serif;\r\n margin: 16px 32px 0 auto;\r\n padding: 4px 16px;\r\n cursor: pointer;\r\n}\r\n\r\n.search-history-btn:hover {\r\n color: #d1d2d5;\r\n}\r\n\r\n.search-history-icon {\r\n width: 24px;\r\n height: 24px;\r\n}\r\n\r\n.main-content {\r\n margin-top: 16px;\r\n padding: 0 20px;\r\n}\r\n\r\n.search-section {\r\n background-color: #fff;\r\n border-radius: 8px;\r\n box-shadow: 0 4px 10px rgba(227, 229, 235, 0.6);\r\n padding: 40px;\r\n}\r\n\r\n.search-header {\r\n text-align: center;\r\n margin-bottom: 32px;\r\n}\r\n\r\n.search-title {\r\n color: #383a3e;\r\n font-size: 32px;\r\n font-weight: 600;\r\n margin-bottom: 8px;\r\n}\r\n\r\n.search-description {\r\n color: #86888d;\r\n font-size: 14px;\r\n line-height: 24px;\r\n}\r\n\r\n.search-form {\r\n display: flex;\r\n border: 1px solid #f2f3f3;\r\n border-radius: 8px;\r\n overflow: hidden;\r\n}\r\n\r\n.search-input-wrapper {\r\n display: flex;\r\n align-items: center;\r\n flex-grow: 1;\r\n padding: 0 20px;\r\n}\r\n\r\n.search-icon {\r\n width: 24px;\r\n height: 24px;\r\n margin-right: 16px;\r\n}\r\n\r\n.search-input {\r\n border: none;\r\n flex-grow: 1;\r\n font: 400 16px/28px Poppins, sans-serif;\r\n color: #383a3e;\r\n padding: 8px 0;\r\n}\r\n\r\n.search-input::placeholder {\r\n font-size: 16px !important;\r\n}\r\n\r\na {\r\n text-decoration: none;\r\n}\r\n\r\n.search-submit-btn {\r\n display: flex;\r\n align-items: center;\r\n background: #0e4485;\r\n border: none;\r\n opacity: 0.6;\r\n padding: 8px 16px;\r\n color: #fff;\r\n cursor: pointer;\r\n border-radius: 0px 8px 8px 0px !important;\r\n}\r\n\r\n.search-submit-btn:hover {\r\n opacity: 1;\r\n}\r\n\r\n.search-submit-btn-active {\r\n display: flex;\r\n align-items: center;\r\n background: #0e4485;\r\n border: none;\r\n padding: 8px 16px;\r\n color: #fff;\r\n cursor: pointer;\r\n border-radius: 0px 8px 8px 0px !important;\r\n}\r\n\r\n.search-submit-icon {\r\n display: flex;\r\n align-items: center;\r\n width: 24px;\r\n height: 24px;\r\n}\r\n\r\n.filter-section {\r\n position: relative;\r\n margin-top: 16px;\r\n}\r\n\r\n.jurisdiction-filter {\r\n display: flex;\r\n align-items: center;\r\n gap: 8px;\r\n flex-wrap: wrap;\r\n}\r\n\r\n.filter-header {\r\n padding: 5px 5px;\r\n cursor: pointer;\r\n display: flex;\r\n align-items: center;\r\n gap: 4px;\r\n font-size: 14px;\r\n color: #86888d;\r\n}\r\n\r\n.filter-header:hover {\r\n background: #f2f3f3;\r\n border-radius: 4px;\r\n}\r\n\r\n.filter-icon,\r\n.dropdown-icon {\r\n display: flex;\r\n align-items: center;\r\n width: 18px;\r\n height: 18px;\r\n}\r\n\r\n.selected-jurisdictions {\r\n display: flex;\r\n gap: 8px;\r\n}\r\n\r\n.jurisdiction-badge {\r\n display: flex;\r\n align-items: center;\r\n gap: 4px;\r\n background: #f2f3f3;\r\n border: 1px solid #d1d2d5;\r\n border-radius: 1000px;\r\n padding: 0 8px;\r\n font-size: 12px;\r\n color: #86888d;\r\n}\r\n\r\n.remove-icon {\r\n font-size: 18px;\r\n cursor: pointer;\r\n}\r\n\r\n.jurisdiction-limit {\r\n font-size: 12px;\r\n color: #86888d;\r\n margin-top: 8px;\r\n}\r\n\r\n.advanced-filters {\r\n display: flex;\r\n align-items: center;\r\n gap: 8px;\r\n margin-top: 16px;\r\n}\r\n\r\n.filter-btn {\r\n display: flex;\r\n align-items: center;\r\n gap: 4px;\r\n background: none;\r\n border: none;\r\n font: 500 14px Poppins, sans-serif;\r\n color: #86888d;\r\n cursor: pointer;\r\n}\r\n\r\n.filter-badge {\r\n display: flex;\r\n align-items: center;\r\n gap: 8px;\r\n background: #fff;\r\n border: 1px solid #d1d2d5;\r\n border-radius: 1000px;\r\n padding: 0 8px;\r\n font-size: 14px;\r\n color: #86888d;\r\n position: relative;\r\n}\r\n\r\n@media (max-width: 991px) {\r\n .legal-research-container {\r\n padding-bottom: 100px;\r\n }\r\n\r\n .search-history-btn {\r\n margin-right: 10px;\r\n }\r\n\r\n .search-section {\r\n padding: 20px;\r\n }\r\n}\r\n</style>\r\n<style scoped>\r\n.search-card {\r\n /* width: 30%; */\r\n /* margin-top: -3%; */\r\n /* margin-left: 12%; */\r\n left: 9%;\r\n position: absolute;\r\n z-index: 1000;\r\n background-color: white;\r\n border-radius: 8px;\r\n box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);\r\n padding: 16px;\r\n}\r\n\r\n.project-item {\r\n padding: 6px;\r\n border-radius: 8px;\r\n}\r\n\r\n.project-item:hover {\r\n background-color: #f2f3f3;\r\n}\r\n\r\nh4 {\r\n font-size: 14px;\r\n font-weight: 600;\r\n color: #333;\r\n margin-bottom: 12px;\r\n}\r\n\r\n.date-inputs {\r\n display: flex;\r\n justify-content: space-between;\r\n margin-bottom: 5px;\r\n}\r\n\r\n.date-inputs input {\r\n width: 48%;\r\n padding: 8px;\r\n border: 1px solid #ddd;\r\n border-radius: 4px;\r\n font-size: 12px;\r\n}\r\n\r\n.radio-group {\r\n display: flex;\r\n flex-direction: column;\r\n}\r\n\r\n.radio-option {\r\n display: flex;\r\n align-items: center;\r\n margin-bottom: 10px;\r\n}\r\n\r\n.radio-option input {\r\n margin-right: 8px;\r\n}\r\n\r\n.radio-option label {\r\n font-size: 14px;\r\n color: #666;\r\n}\r\n\r\ninput[type=\"radio\"] {\r\n width: 18px;\r\n height: 18px;\r\n transform: scale(1.1);\r\n accent-color: var(--primary);\r\n}\r\n\r\ninput[type=\"text\"]::placeholder {\r\n color: #aaa;\r\n font-size: 12px;\r\n}\r\n\r\n/* Media query for responsive layout */\r\n@media (max-width: 600px) {\r\n .search-card {\r\n width: 100%;\r\n }\r\n\r\n .date-inputs input {\r\n width: 100%;\r\n margin-bottom: 8px;\r\n }\r\n}\r\n\r\n.citation {\r\n /* margin-top: -3%; */\r\n /* margin-left: 22%; */\r\n /* width: 25%; */\r\n left: 21.5%;\r\n position: absolute;\r\n z-index: 1000;\r\n background-color: white;\r\n border-radius: 8px;\r\n box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);\r\n padding: 16px;\r\n}\r\n\r\n.citation_input {\r\n border-radius: 4px;\r\n border: 1px solid var(--Neutral-Light-Grey, #f2f3f3);\r\n background: var(--Neutral-Interface-Grey, #fafbfc);\r\n display: flex;\r\n padding: 4px 8px;\r\n align-items: center;\r\n gap: 10px;\r\n flex: 1 0 0;\r\n}\r\n\r\n.citation_input::placeholder {\r\n color: var(--Neutral-Dark-Grey, #86888d);\r\n font-size: 14px;\r\n font-weight: 400;\r\n}\r\n\r\n.clearall-button {\r\n border: none;\r\n border-radius: 20px !important;\r\n color: #86888d;\r\n font-size: 14px;\r\n cursor: pointer;\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=4e4004a8&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=4e4004a8&prod&scoped=true&lang=css\"\nimport style1 from \"./main.vue?vue&type=style&index=1&id=4e4004a8&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 \"4e4004a8\",\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=1&id=4e4004a8&prod&scoped=true&lang=css\"","import axios from \"@/axios.js\";\r\n/* eslint-disable */\r\nexport default {\r\n\tcaseSearch(item) {\r\n\t\treturn new Promise((resolve, reject) => {\r\n\t\t\taxios\r\n\t\t\t\t.post(`nexlaw/case-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\tGetCaseSearch(obj) {\r\n\t\treturn new Promise((resolve, reject) => {\r\n\t\t\taxios\r\n\t\t\t\t.get(`nexlaw?type=statement` + 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\tGetJurisdiction(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\tSummarizeCase(id) {\r\n\t\treturn new Promise((resolve, reject) => {\r\n\t\t\taxios\r\n\t\t\t\t.post(`nexlaw/case-search/summarize-jurisdiction/${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/jurisdiction/${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"],"sourceRoot":""}