PageSourceSearch

https://app.unfoldlegal.ai/assets/FoiaRebuildIndex-QlYByNd-.js

js unfoldlegal.ai collected 2026-10-05 13:10:42 UTC 1,887 bytes, 1 lines download raw bytes

1import{d as w,q as D,j as p,c as E,b as d,a as e,w as o,r as a,o as V,g as m,p as F,i as S,E as n,y as f,_ as k}from"./index-PwlJ0uc_.js";const R=c=>(F("data-v-7961e823"),c=c(),S(),c),B={class:"page-content"},N=R(()=>d("div",{class:"case-section-header"},[d("h1",null,"FOIA Case Management")],-1)),M={class:"form-container"},O=w({__name:"FoiaRebuildIndex",setup(c){const s=D({caseId:""}),l=p(!1),r=p(!1),I=async()=>{if(!s.caseId){n.error("Please enter Case ID");return}l.value=!0;try{const t=await f.post("/api/v2/chatbot/foia/rebuild_index",{case_id:s.caseId});n.success("Index rebuilt successfully")}catch(t){console.error("Error rebuilding index:",t),n.error("Failed to rebuild index")}finally{l.value=!1}},y=async()=>{if(!s.caseId){n.error("Please enter Case ID");return}r.value=!0;try{const t=await f.post("/api/v2/chatbot/foia/sync_case_documents",{case_id:s.caseId});n.success("Documents synced successfully")}catch(t){console.error("Error syncing documents:",t),n.error("Failed to sync documents")}finally{r.value=!1}};return(t,i)=>{const b=a("el-input"),u=a("el-form-item"),_=a("el-button"),v=a("el-form"),x=a("el-card"),h=a("el-col"),g=a("el-row");return V(),E("div",B,[N,d("div",M,[e(g,{gutter:20},{default:o(()=>[e(h,{span:12},{default:o(()=>[e(x,{header:"Case Operations"},{default:o(()=>[e(v,{model:s,"label-width":"120px"},{default:o(()=>[e(u,{label:"Case ID"},{default:o(()=>[e(b,{modelValue:s.caseId,"onUpdate:modelValue":i[0]||(i[0]=C=>s.caseId=C),placeholder:"Enter case ID"},null,8,["modelValue"])]),_:1}),e(u,null,{default:o(()=>[e(_,{type:"primary",onClick:I,loading:l.value},{default:o(()=>[m(" Rebuild Index ")]),_:1},8,["loading"]),e(_,{type:"success",onClick:y,loading:r.value},{default:o(()=>[m(" Sync Documents ")]),_:1},8,["loading"])]),_:1})]),_:1},8,["model"])]),_:1})]),_:1})]),_:1})])])}}}),j=k(O,[["__scopeId","data-v-7961e823"]]);export{j as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.