1import{_ as D}from"./CYiKpZTc.js";import{_ as F}from"./CzMpYZyX.js";import{_ as C}from"./DWOb8Rg8.js";import{_ as B}from"./MCcIMRUm.js";import{b9 as I,aJ as q,bd as N,T,e as K,f as a,g as _,k as s,w as t,V as c,z as L,h as o,l as g,j as l,s as m,Q as R,n as d,m as S,p as j,q as E,F as $,D as z,L as A,M as H}from"./D2R2lqYg.js";import"./BUdrf9g1.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new n.Error().stack;i&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[i]="aff4d152-57a4-4b5a-a180-00be8731e3e0",n._sentryDebugIdIdentifier="sentry-dbid-aff4d152-57a4-4b5a-a180-00be8731e3e0")}catch{}})();const M={class:"text-center py-8"},P={key:1},W=I({__name:"index",setup(n){const i=q(),r=A(""),{data:w,pending:y,error:b}=N("/api/knowledgebase/categories",{key:"kb-categories",method:"GET",transform:u=>({...u,lastFetched:new Date}),getCachedData(u){const e=T(u);if(!(!e.data.value?.lastFetched||Date.now()-new Date(e.data.value.lastFetched).getTime()>3e5))return e.data.value}},"$-tFZMO81jR"),p=H(()=>w.value?.data?.categories||[]),x=()=>{r.value.trim()&&i.push({path:"/knowledgebase/search",query:{q:r.value.trim()}})};return K({title:"Knowledge Base",meta:[{name:"description",content:"Find answers to frequently asked questions in our knowledge base."}]}),(u,e)=>{const h=D,k=F,v=C,V=B;return a(),_("div",null,[s(h,{title:"Knowledge Base",subtitle:"Find answers to frequently asked questions","show-divider":!1}),s(g,{class:"mb-4"},{default:t(()=>[s(c,{cols:"12","offset-lg":"2",lg:"8",xl:"6","offset-xl":"3"},{default:t(()=>[s(k,{modelValue:o(r),"onUpdate:modelValue":e[0]||(e[0]=f=>L(r)?r.value=f:null),onSearch:x},null,8,["modelValue"])]),_:1})]),_:1}),o(y)?(a(),l(g,{key:0,class:"mt-12"},{default:t(()=>[s(c,{cols:"12"},{default:t(()=>[s(v,{name:"loader",width:"520px"})]),_:1})]),_:1})):m("",!0),o(y)?m("",!0):(a(),l(g,{key:1},{default:t(()=>[o(b)?(a(),l(c,{key:0,cols:"12"},{default:t(()=>[s(R,{type:"error",variant:"tonal",prominent:""},{default:t(()=>[...e[1]||(e[1]=[d("div",{class:"text-h6 mb-2"},"Failed to Load Categories",-1),d("p",{class:"mb-0"},"Please try refreshing the page.",-1)])]),_:1})]),_:1})):m("",!0),o(b)?m("",!0):(a(),l(c,{key:1,cols:"12","offset-lg":"2",lg:"8",xl:"6","offset-xl":"3"},{default:t(()=>[!o(p)||o(p).length===0?(a(),l(S,{key:0,"min-height":"480px",class:"d-flex align-center justify-center"},{default:t(()=>[d("div",M,[s(j,{size:"64",color:"grey-lighten-1"},{default:t(()=>[...e[2]||(e[2]=[E("$folderIcon",-1)])]),_:1}),e[3]||(e[3]=d("p",{class:"text-h6 mt-4"},"No Categories Available",-1)),e[4]||(e[4]=d("p",{class:"text-body-2 text-medium-emphasis"}," Knowledge base categories will appear here. ",-1))])]),_:1})):(a(),_("div",P,[(a(!0),_($,null,z(o(p),f=>(a(),l(V,{key:f.id,category:f},null,8,["category"]))),128))]))]),_:1}))]),_:1}))])}}});export{W 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.