PageSourceSearch

https://www.ahrcm-srmo.org/build/assets/List.550fc50b.js

js ahrcm-srmo.org collected 2026-10-06 18:25:43 UTC 6,197 bytes, 1 lines download raw bytes

1import{j,d as f,y as F,I as h,e as i,a as e,b as p,h as o,t as m,l as L,C as I,p as V,F as y,i as x,f as B,k as N,o as a,H as D,g as z}from"./app.1c75f29f.js";import{_ as O}from"./HeaderAbsoluteImages.0bc5e367.js";import{H as W,_ as q}from"./Footer.804a5aa7.js";import P from"./ResourceCard.2470496f.js";import{_ as U}from"./EmptyState.32308625.js";import"./ApplicationMark.85c52153.js";import"./_plugin-vue_export-helper.cdc0426e.js";import"./AuthenticationCardLogo.6f355cfb.js";import"./index.970b99d8.js";import"./AttachmentsList.ce0e6eb5.js";import"./download.b52da6e8.js";const A={class:"bg-[#DBEBE8] relative pt-52"},G={class:"container px-6 text-center md:px-0"},J=e("div",{class:"h-20"},null,-1),K={class:"grid md:grid-cols-12"},Q={class:"col-span-12"},X={class:"relative flex justify-center lg:justify-around"},Y={class:"relative z-20 w-full text-center ltr:lg:text-left rtl:lg:text-right lg:px-4"},Z=["innerHTML"],ee=["innerHTML"],te=e("div",{class:"h-24"},null,-1),se=e("div",{class:"h-5"},null,-1),re=["src"],le={class:"container"},oe=e("div",{class:"h-20"},null,-1),ie={class:"items-center px-4 md:grid md:grid-cols-12"},ae={class:"col-span-full break-words w-full"},ne={class:"grid grid-cols-1 lg:grid-cols-2 items-start"},ce={class:"mb-4 text-32 font-medium"},ue={class:"flex flex-col lg:flex-row"},de={class:"relative right-0 flex items-center"},pe=e("i",{class:"icon-search text-gray-50 absolute text-20-medium ltr:left-3 rtl:right-3 flex"},null,-1),_e=["placeholder"],me={selected:"",disabled:""},ve=["value"],ge={key:0,class:"flex items-end lg:items-center justify-end flex-col lg:flex-row gap-2 col-span-full mb-10 mt-2 w-full"},fe=["onClick"],he=e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9.75 9.75l4.5 4.5m0-4.5l-4.5 4.5M21 12a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1),ye=[he],xe={class:"mt-16 text-center"},be=e("div",{class:"h-24"},null,-1),Fe={__name:"List",props:{email:String,filters:Object,report_types:Object},setup(R){var w,k,S,T,E;const n=R,v=j(()=>N().props.value.resources);let b=f(n.email),c=f({...v.value});const C=()=>{v.value.links.next!==null&&h.Inertia.get(v.value.links.next,{},{preserveState:!0,preserveScroll:!0,only:["resources"],onSuccess:()=>{c.value.data=[...c.value.data,...v.value.data]}})},l=f({title:(w=n.filters)==null?void 0:w.title,report_types:((k=n.filters)==null?void 0:k.reportTypes)||[]});F(()=>l.value.title,_.debounce(s=>{h.Inertia.reload({data:{filter:{title:s}},only:["resources"],onSuccess:t=>{c.value=t.props.resources},preserveScroll:!0,preserveState:!0,replace:!0})},500));let d=f([]);((S=n.filters)==null?void 0:S.reportTypes)&&((T=n.filters)==null?void 0:T.reportTypes.length)>0&&((E=n.filters)==null||E.reportTypes.map(s=>d.value.push(n.report_types.data.filter(t=>t.id===+s)[0])));const H=s=>{if(l.value.report_types.includes(s))return;l.value.report_types.push(s);const t=n.report_types.data.find(u=>u.id==s);d.value.push(t),h.Inertia.reload({data:{filter:{reportTypes:l.value.report_types}},preserveScroll:!0,preserveState:!0,replace:!0,only:["resources"],onSuccess:u=>{c.value=u.props.resources}})},M=s=>{l.value.report_types=l.value.report_types.filter(t=>t!=s.id),d.value=d.value.filter(t=>t.id!=s.id),h.Inertia.get(route("website.resources"),{filter:{reportTypes:l.value.report_types}},{preserveScroll:!0,preserveState:!0,replace:!0,only:["resources"],onSuccess:t=>{c.value=t.props.resources}})},$=s=>{c.value=s.values,s.filters.map(t=>{if(!l.value.report_types.includes(t)){l.value.report_types.push(t);const u=n.report_types.data.find(g=>g.id==t);d.value.push(u)}})};return(s,t)=>{var u,g;return a(),i(y,null,[e("section",null,[p(o(D),{title:s.__("header.nav.resources")},null,8,["title"]),p(W,{"background-color":"bg-[#DBEBE8]"}),e("section",A,[p(O,{"fill-color-hex":"E2EFEC"}),e("div",G,[J,e("div",K,[e("div",Q,[e("div",X,[e("section",Y,[e("h1",{class:"font-bold text-gray-100 text-32 fade-up md:text-56",innerHTML:s.__("resources.resources.heading_text")},null,8,Z),e("p",{class:"mt-6 w-full text-center text-16-regular text-gray-80 fade-up rtl:lg:text-right lg:text-left",innerHTML:s.__("resources.resources.explore_text",{email:o(b),address:o(b)})},null,8,ee),te,se]),e("img",{src:"/images/resources_header_image.png",alt:"Resources Human",class:"hidden lg:block absolute ltr:-right-10 rtl:left-10 bottom-0 w-[493px]"},null,8,re)])])])])]),e("div",le,[oe,e("div",ie,[e("div",ae,[e("section",ne,[e("h2",ce,m(s.__("resources.resources.all_resources")),1),e("section",ue,[e("div",de,[pe,L(e("input",{type:"text",class:"bg-white placeholder:text-gray-50 rounded-lg block ltr:pl-14 rtl:pr-14 w-full lg:w-fit border-gray-40",placeholder:s.__("resources.resources.search_resources"),"onUpdate:modelValue":t[0]||(t[0]=r=>o(l).title=r)},null,8,_e),[[I,o(l).title]]),e("i",{class:"icon-close-square text-gray-50 absolute text-20-medium ltr:right-3 rtl:left-3 flex",onClick:t[1]||(t[1]=V(r=>o(l).title="",["prevent"]))})]),e("select",{class:"bg-transparent text-sm outline-none border border-gray-40 text-gray-50 w-full py-2.5 rounded-lg my-4 lg:my-0 rtl:lg:mr-2 ltr:lg:ml-2",onChange:t[2]||(t[2]=r=>H(r.target.value))},[e("option",me,"--"+m(s.__("commonWords.select_placeholder"))+"--",1),(a(!0),i(y,null,x(s.$page.props.report_types.data,r=>
1(a(),i("option",{value:r.id,key:r.id},m(r.name),9,ve))),128))],32)]),o(d).length>0?(a(),i("div",ge,[(a(!0),i(y,null,x(o(d),r=>(a(),i("div",{key:r,class:"bg-[#E6E4FF] text-sm rounded-lg p-2 flex items-center gap-2"},[z(m(r.name)+" ",1),(a(),i("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",onClick:we=>M(r),stroke:"currentColor",class:"w-5 h-5 cursor-pointer"},ye,8,fe))]))),128))])):B("",!0)]),(a(!0),i(y,null,x(o(c).data,r=>(a(),i("div",{key:r.id},[p(P,{resource:r,onFilteredByReportType:$,filters:o(l)},null,8,["resource","filters"])]))),128)),p(U,{message:s.__("resources.resources.no_resources"),show:((g=(u=o(c))==null?void 0:u.data)==null?void 0:g.length)<1},null,8,["message","show"])])]),e("div",xe,[o(c).links.next?(a(),i("button",{key:0,class:"mx-auto block w-48 btn btn-primary",onClick:t[3]||(t[3]=r=>C())},m(s.__("commonWords.view.view_more")),1)):B("",!0)])])]),be,p(q)],64)}}};export{Fe 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.