1import{_ as U}from"./DNrW19FK.js";import{_ as S}from"./B0lrt6yh.js";import{u as T,_ as j,a as z,b as E,c as P}from"./D5SPSvp0.js";import{d as A,D as O,a as W,u as q,I as G,C as H,b as J,r as d,f,e as K,j as _,c as y,h as t,i as n,s as g,z as Q,k as X,F as Y,l as Z,o as i,B as tt,v as et,A as ot,a5 as rt}from"./V9JhC5tk.js";import{u as st}from"./BGK1KDWU.js";import{r as it}from"./BIzIHadU.js";import"./DlAUqK2U.js";import"./DVgYcg13.js";import"./BbvguYQI.js";import"./CVblC2sp.js";import"./Bu_-FVb7.js";import"./D2NKXzGE.js";import"./Vhv_Dc1z.js";import"./0estIay_.js";import"./l_muiikG.js";import"./BZc5dB8v.js";import"./B2fzEHtX.js";import"./Ba2Li6JO.js";import"./Bxs9gDhA.js";import"./DK-9GlOH.js";import"./if1Z1kDS.js";import"./CUIJnxAG.js";import"./vK69jOgP.js";import"./BklayekH.js";import"./DhtCAc81.js";import"./jQLGC4LM.js";import"./BaMbDH48.js";import"./CbM3pdsT.js";import"./io9jwJ0V.js";import"./BQ8q6UFt.js";import"./Dvru-Ywk.js";import"./DiCR-jL5.js";import"./BNzcKUun.js";import"./CbXrAkAr.js";import"./DV86bAKO.js";import"./ndeV8u3D.js";import"./km3Zisod.js";import"./B2xusiKp.js";import"./mytVuYq0.js";import"./CopvZuQ7.js";import"./CW3qiFCN.js";import"./H4E3ifFi.js";import"./BK3KUEzx.js";import"./CKonQIBz.js";import"./_voegVoc.js";import"./DMznCD_n.js";import"./CvXIjs3J.js";import"./Ck4aZK_D.js";import"./BYOoNtyS.js";import"./7r2jgjNP.js";import"./DfOYUL-Q.js";import"./BIkqaYzU.js";import"./DGh10gAD.js";import"./DIB_oiDq.js";import"./OCCUKrjG.js";import"./DESKnmaD.js";import"./BQ029v-L.js";import"./C-tqfofF.js";import"./BF1x-QwG.js";import"./Bwhv3lf2.js";import"./BbDcNM_Z.js";import"./DsN_ID3z.js";import"./DxXeS15W.js";import"./BraCYMPe.js";import"./CEDImm6Y.js";import"./BB-Qfkng.js";import"./C1KCzu0q.js";import"./ByBsjtUa.js";import"./Dy_TG5F-.js";import"./BEhCDBlS.js";const at={key:1,class:"container"},mt={class:"text-xl font-bold line-clamp-1"},nt={key:0,class:"flex flex-col gap-y-4"},Ve=A({__name:"[id]",setup(lt){O(async()=>await $());const o=T(),s=o.filter,{t:h}=W(),v=q(),{isLoading:x,stopLoading:k,startLoading:w}=st(),F=G(),B=H(),{getMenuTitle:V}=J(),N=B.params.id,l=d(!1),p=d([]),L=f(()=>o.getFilteredNotes(p.value)),c=d(""),I=f(()=>[V("notes",h("Notes")),c.value].filter(Boolean)),M=f(()=>Object.values(s).reduce((m,e)=>m+e.length,0));async function $(){w();const m=`/webservice/note/?category_id=${N}`;try{const{data:e}=await K(m,{cache:"reload"}),{category:a,notes:u}=e.value;c.value=(a==null?void 0:a.title)||"",p.value=[...u||[]]}finally{k()}}return rt("back",()=>F.push(v(it.notes()))),(m,e)=>{const a=U,u=S,b=z,C=j,D=E,R=P;return t(x)?(i(),_(a,{key:0})):(i(),y("section",at,[n(u,{crumbs:t(I),class:"mb-0"},null,8,["crumbs"]),n(C,{"show-extra-filters":t(l),"onUpdate:showExtraFilters":e[2]||(e[2]=r=>X(l)?l.value=r:null),search:t(o).searchModel,"onUpdate:search":e[3]||(e[3]=r=>t(o).searchModel=r),"filters-number":t(M),class:Q(t(ot)("mt-5 mb-6 ")),onResetFilter:e[4]||(e[4]=()=>t(o).resetFilter())},{"left-side":g(()=>[tt("h1",mt,et(t(c)),1)]),filters:g(()=>[n(b,{modelValue:t(o).filter.types,"onUpdate:modelValue":e[0]||(e[0]=r=>t(o).filter.types=r),"filters-number":t(s).types.length,"is-filtered":!!t(s).types.length,items:t(o).getFilterItems.types,value:t(s).types.length,text:"Type de note"},null,8,["modelValue","filters-number","is-filtered","items","value"]),n(b,{modelValue:t(o).filter.dates,"onUpdate:modelValue":e[1]||(e[1]=r=>t(o).filter.dates=r),"filters-number":t(s).dates.length,"is-filtered":!!t(s).dates.length,items:t(o).getFilterItems.dates,value:t(s).dates.length,text:"Date"},null,8,["modelValue","filters-number","is-filtered","items","value"])]),_:1},8,["show-extra-filters","search","filters-number","class"]),t(p).length?(i(),y("div",nt,[(i(!0),y(Y,null,Z(t(L),r=>(i(),_(D,{key:r.id,note:r},null,8,["note"]))),128))])):(i(),_(R,{key:1}))]))}}});
1export{Ve 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.