PageSourceSearch

https://govil.ai/_nuxt/CVXhzRUj.js

js govil.ai collected 2026-10-05 12:02:36 UTC 6,121 bytes, 1 lines download raw bytes

1import{d as H,x as O,y as Y,B as J,n as h,C as w,j as P,a as d,b as e,e as j,w as N,f as k,t as _,k as a,D as L,E as W,G as M,l as X,H as Z,F as C,r as z,g as tt,o as r,c as et,s as R,m as g}from"./DB260odX.js";import{_ as st}from"./DuXzySIc.js";import{_ as ot}from"./vMxoRTGW.js";import{l as at}from"./C715MS9Q.js";import{u as nt}from"./DpVykVGu.js";import{u as lt}from"./Dw7uYl1l.js";import"./D0dZas_T.js";function rt(D){const c=new Map,v=new Map;for(const l of D){l.organization&&c.set(l.organization,(c.get(l.organization)??0)+1);for(const n of l.formats)v.set(n,(v.get(n)??0)+1)}return{organizations:[...c.entries()].sort((l,n)=>n[1]-l[1]),formats:[...v.entries()].sort((l,n)=>n[1]-l[1])}}const it={class:"max-w-gov mx-auto px-4 py-8"},ut={class:"mb-8"},dt={class:"text-xs text-subtle mb-2"},ct={class:"text-subtle mt-2 max-w-2xl"},pt={class:"mt-4 flex items-center gap-2 bg-white border border-rule rounded-gov px-3 py-2 max-w-xl focus-within:border-brand transition-colors"},mt={class:"grid grid-cols-1 lg:grid-cols-[1fr_260px] gap-8"},ft={class:"flex items-center justify-between gap-3 mb-3 text-sm"},xt={class:"text-subtle"},vt={class:"flex items-center gap-3"},_t={class:"flex items-center gap-2"},gt={key:0,class:"card p-6 text-center text-subtle"},bt={class:"m-0"},yt={key:1,class:"grid grid-cols-1 md:grid-cols-2 gap-3"},ht={class:"space-y-4"},wt={class:"card p-4"},kt={class:"list-none m-0 p-0 space-y-1"},qt=["onClick"],Ct={class:"truncate"},zt={class:"text-xs text-subtle"},Dt={class:"card p-4"},St={class:"flex flex-wrap gap-1"},Tt=["onClick"],Mt=H({__name:"index",async setup(D){let c,v;nt({title:"כל מאגרי המידע הממשלתיים — חיפוש, סינון ותקצירים בעברית",description:"סיור, חיפוש וסינון של כל מאגרי המידע הציבוריים של ממשלת ישראל — לפי משרד, פורמט ותגיות.",path:"/datasets/",breadcrumbs:[{name:"ראשי",url:"https://govil.ai/"},{name:"מאגרים",url:"https://govil.ai/datasets/"}]});const{data:l}=([c,v]=O(()=>lt("search-index",()=>at())),c=await c,v(),c),n=g(()=>l.value?.datasets??[]),S=g(()=>rt(n.value)),A=g(()=>S.value.organizations),E=g(()=>S.value.formats),i=Y(),T=J(),K=["gov","site","alpha"],$=s=>typeof s=="string"&&K.includes(s),f=h(null),x=h(null),B=typeof i.query.q=="string"?i.query.q:"",p=h(B),b=h(B),m=h($(i.query.sort)?i.query.sort:"site");let y=null;w(p,s=>{y&&clearTimeout(y),y=setTimeout(()=>{b.value=s},150)}),P(()=>{y&&clearTimeout(y)}),w(b,s=>{const t=s.trim()?{...i.query,q:s.trim()}:{...i.query,q:void 0};T.replace({query:t})});const F=g(()=>{const s=b.value.trim().toLowerCase();return n.value.filter(t=>!(f.value&&t.organization!==f.value||x.value&&!t.formats.includes(x.value)||s&&!`${t.title} ${t.summary_he??""} ${t.tags_he.join(" ")} ${(t.suggested_tags??[]).join(" ")}`.toLowerCase().includes(s)))}),V=(s,t)=>(t?Date.parse(t):0)-(s?Date.parse(s):0),U=g(()=>{const s=[...F.value];return m.value==="site"?s.sort((t,u)=>V(t.last_analyzed_at,u.last_analyzed_at)):m.value==="alpha"?s.sort((t,u)=>t.title.localeCompare(u.title,"he")):s.sort((t,u)=>V(t.metadata_modified,u.metadata_modified)),s});function I(){f.value=null,x.value=null,p.value="",b.value=""}return w(()=>i.query.q,s=>{const t=typeof s=="string"?s:"";t!==p.value&&(p.value=t,b.value=t)}),w(m,s=>{const t={...i.query,sort:s==="site"?void 0:s};T.replace({query:t})}),w(()=>i.query.sort,s=>{const t=$(s)?s:"site";t!==m.value&&(m.value=t)}),(s,t)=>{const u=tt,Q=st;return r(),d("div",it,[e("section",ut,[e("div",dt,[j(u,{to:"/"},{default:N(()=>[...t[2]||(t[2]=[k("ראשי",-1)])]),_:1}),t[3]||(t[3]=k(" › מאגרים ",-1))]),t[5]||(t[5]=e("h1",{class:"font-display"},"כל המאגרים",-1)),e("p",ct,_(a(n).length)+" מאגרים מאורגנים לפי משרד, פורמט ותגיות. לחץ על מאגר כדי לראות את דף ה-AI שנכתב עבורו. ",1),e("label",pt,[t[4]||(t[4]=e("img",{src:ot,alt:"",class:"w-5 h-5 opacity-70"},null,-1)),L(e("input",{"onUpdate:modelValue":t[0]||(t[0]=o=>M(p)?p.value=o:null),type:"search",placeholder:"חיפוש מאגר, נושא או משרד…",class:"flex-1 bg-transparent border-0 outline-none text-sm text-ink placeholder:text-subtle"},null,512),[[W,a(p)]])])]),e("section",mt,[e("div",null,[e("div",ft,[e("span",xt,_(a(F).length)+" מאגרים זמינים",1),e("div",vt,[a(f)||a(x)||a(p)?(r(),d("button",{key:0,onClick:I,class:"text-brand hover:underline"}," איפוס פילטרים ")):X("",!0),e("label",_t,[t[7]||(t[7]=e("span",{class:"text-subtle"},"מיון:",-1)),L(e("select",{"onUpdate:modelValue":t[1]||(t[1]=o=>M(m)?m.value=o:null),class:"bg-white border border-rule rounded-gov px-2 py-1 text-ink focus:border-brand outline-none"},[...t[6]||(t[6]=[e("option",{value:"gov"},"חדש בממשלה",-1),e("option",{value:"site"},"חדש באתר",-1),e("option",{value:"alpha"},"א–ת",-1)])],512),[[Z,a(m)]])])])]),a(n).length===0?(r(),d("div",gt,[e("p",bt,[t[9]||(t[9]=k("רשימת המאגרים לא נטענה. נסו לרענן את הדף, או חזרו ",-1)),j(u,{to:"/"},{default:N(()=>[...t[8]||(t[8]=[k("לעמוד הראשי",-1)])]),_:1}),t[10]||(t[10]=k(".",-1))])])):(r(),d("div",yt,[(r(!0),d(C,null,z(a(U),o=>(r(),et(Q,{key:o.id,entry:o},null,8,["entry"]))),128))]))]),e("aside",ht,[e("div",wt,[t[11]||(t[11]=e("h3",{class:"m-0 mb-2 text-sm text-subtle font-display"},"ארגון",-1)),e("ul",kt,[(r(!0),d(C,null,z(a(A),([o,q])=>(r(),d("li",{key:o},[e("button",{class:R(["w-full text-right text-sm px-2 py-1 rounded-md hover:bg-surface flex items-center justify-between gap-2",{"bg-brand-50 text-brand-700":a(f)===o}]),onClick:G=>f.value=a(f)===o?null:o},[e("span",Ct,_(o),1),e("span",zt,_(q),1)],10,qt)]))),128))])]),e("div",Dt,[t[12]||(t[12]=e("h3",{class:"m-0 mb-2 text-sm text-subtle font-display"},"פורמט",-1)),e("div",St,[(r(!0),d(C,null,z(a(E),([o,q])=>(r(),d("button",{key:o,class:R(["badge hover:bg-brand-50",{"!bg-brand-50 !text-brand-700 !border-brand-100":a(x)===o}]),onClick:G=>x.value=a(x)===o?null:o}
1,_(o)+" · "+_(q),11,Tt))),128))])])])])])}}});export{Mt 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.