1import{a as C}from"./chunk-K7OOE7GQ.js";import{b as u}from"./chunk-LYZ2I5BW.js";import{i as D}from"./chunk-LJ5C7PD6.js";import{a as h}from"./chunk-GIOTB24D.js";import{E as _,S as l,qa as v,va as w,y as d,za as k}from"./chunk-FGUTMTVL.js";var U=`${h.backend_root}api/v1/knowledgeBases/preview/`,E=`${h.backend_root}api/v1/kbDocuments/preview/`,I=e=>{let{kbId:t,enterprise_unique_name:i}=e;return`${U}?kb_id=${t}&enterprise_unique_name=${i}`},g=e=>{let{kbId:t,enterprise_unique_name:i,docId:r}=e;return`${E}?kb_id=${t}&enterprise_unique_name=${i}&document_id=${r}`},j=e=>{let{kbId:t,enterprise_unique_name:i}=e;return`${U}?caa_kb_id=${t}&enterprise_unique_name=${i}`},H=e=>{let{enterprise_unique_name:t,caa_document_id:i,caa_kb_id:r}=e;return`${E}?enterprise_unique_name=${t}&caa_document_id=${i}&caa_kb_id=${r}`};var O=(()=>{let t=class t{constructor(r,o){this.httpClient=r,this.httpMonitoringService=o}getKb(r,o,m){let p=m==="caa"?j({kbId:r,enterprise_unique_name:o}):I({kbId:r,enterprise_unique_name:o}),s={url:p},c=Date.now();return this.httpClient.get(p,{observe:"response"}).pipe(v(n=>{let b=n?.body;this.httpMonitoringService?.submitBehavioralEventFromHttpRequest(s,{status:n?.status,data:b},u.GET,{duration_ms:Date.now()-c})}),_(n=>n?.body),l(n=>(this.httpMonitoringService?.submitBehavioralEventFromHttpRequest(s,n,u.GET,{duration_ms:Date.now()-c}),d(n))))}getDocument(r,o,m,p,s,c,n,b){let q=p==="caa"?H({kbId:r,enterprise_unique_name:o,docId:m,caa_document_id:s,caa_kb_id:c}):g({kbId:n,enterprise_unique_name:o,docId:b,caa_document_id:s,caa_kb_id:c}),$={url:q},f=Date.now();return this.httpClient.get(q,{observe:"response"}).pipe(v(a=>{let y=a?.body;this.httpMonitoringService?.submitBehavioralEventFromHttpRequest($,{status:a?.status,data:y},u.GET,{duration_ms:Date.now()-f})}),_(a=>a?.body?.objects),l(a=>(this.httpMonitoringService?.submitBehavioralEventFromHttpRequest($,a,u.GET,{duration_ms:Date.now()-f}),d(a))))}};t.\u0275fac=function(o){return new(o||t)(k(D),k(C,8))},t.\u0275prov=w({token:t,factory:t.\u0275fac});let e=t;return e})();export{O as a};
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.