PageSourceSearch

https://uapply.africa/js/universities-DXSqLUBZ.js

js uapply.africa collected 2026-10-05 19:13:52 UTC 4,760 bytes, 1 lines download raw bytes

1import{j as e,a as c,Q as p}from"./chunk-D76d6Nhf.js";import{u as d}from"./chunk-C5ZDwG3s.js";import{B as g}from"./chunk-BL8lIIho.js";import{F as u}from"./chunk-BbMktldQ.js";import{u as x,l as h}from"../assets/index-BFVgIuJz.js";import{o as _,q as f,p as i,h as b,j as v,i as w,g as j,f as y,a as N,b as k,d as S,c as A,e as C,m as P,l as B,k as F,n as U}from"./chunk-96Jl9U-E.js";import{p as E}from"./chunk-DMUNPh4O.js";import{p as I}from"./chunk-DQWo8p1p.js";import{I as L}from"./chunk-1nl8AiJ5.js";import{S as T,a as Q}from"./chunk-c2Xxh3yn.js";import{A as l}from"./chunk-hsjedM4B.js";import{C as n}from"./chunk-DXVLkTAU.js";import{u as R}from"./chunk-5AzuTYYl.js";import{n as q}from"./chunk-B0ZR1lp1.js";import{b as D}from"./chunk-ntJfdghC.js";import"./chunk-B1OypRos.js";import"./chunk-BKyy4R_S.js";import"./chunk-Twnw11IT.js";import"./chunk-DbvEWrmn.js";import"./chunk-DeRmtv56.js";const H="/assets/three-men-purple-peace-signs-vu0QeLou.webp",z="/assets/three-men-purple-peace-signs-sm-DzBSW4dW.webp",W="/assets/woman-white-polo-seated-desk-portrait-TZsT1ocj.webp",K="/assets/woman-white-polo-seated-desk-portrait-sm-CIarUnHB.webp",O="/assets/man-purple-polo-arms-crossed-portrait-Bobag5hR.webp",Y="/assets/man-purple-polo-arms-crossed-portrait-sm-CDN4Beeo.webp",m=3,Z=s=>{const a=s.replace(/[_-]+/g," ").trim();return a&&a.charAt(0).toUpperCase()+a.slice(1)};function G({institution:s}){const[a,r]=c.useState(!1),t=[s.location?.city,s.location?.country].filter(Boolean).join(", "),o=(Array.isArray(s.field_categories)?s.field_categories:[]).slice(0,3).map(Z).join(" · ");return e.jsxs(p,{to:h(s),className:"group flex h-full gap-4 rounded-2xl border border-hairline bg-white p-5 shadow-sm transition-all hover:-translate-y-0.5 hover:shadow-lg sm:p-6 lg:flex-col lg:gap-0",children:[e.jsx("div",{className:"flex h-12 w-12 shrink-0 items-center justify-center overflow-hidden rounded-xl border border-hairline bg-white p-1",children:s.logo_url&&!a?e.jsx("img",{src:s.logo_url,alt:"",loading:"lazy",onError:()=>r(!0),className:"max-h-full max-w-full object-contain"}):e.jsx("span",{className:"text-sm font-semibold text-brand",children:D(s.name)})}),e.jsxs("div",{className:"flex min-w-0 flex-1 flex-col lg:mt-5",children:[e.jsx("h3",{className:"font-display text-base font-bold leading-snug text-ink line-clamp-2 group-hover:text-brand sm:text-lg",children:s.name}),t&&e.jsx("p",{className:"mt-1 text-sm text-ink-muted line-clamp-1",children:t}),o&&e.jsx("p",{className:"mt-3 text-sm text-ink line-clamp-2",children:o})]})]})}function J(){return e.jsxs("div",{className:"flex h-full animate-pulse gap-4 roun
1ded-2xl border border-hairline bg-white p-5 sm:p-6 lg:flex-col lg:gap-0",children:[e.jsx("div",{className:"h-12 w-12 shrink-0 rounded-xl bg-gray-200"}),e.jsxs("div",{className:"flex-1 space-y-2 lg:mt-5",children:[e.jsx("div",{className:"h-4 w-3/4 rounded bg-gray-200"}),e.jsx("div",{className:"h-3 w-1/2 rounded bg-gray-100"}),e.jsx("div",{className:"h-3 w-2/3 rounded bg-gray-100"})]})]})}const he=()=>{x({title:f(),description:_()}),R();const s=d({queryKey:["network","search","universities-intro","rwanda"],queryFn:()=>q.searchInstitutions({category:"university",country:"Rwanda",sort:"relevance",limit:m,view:"card"}),staleTime:300*1e3}),a=s.data?.institutions??[],r=s.data?.pagination.total??0;return e.jsxs("div",{className:"relative min-h-screen overflow-x-clip bg-page",children:[e.jsx(g,{}),e.jsxs("main",{className:"relative",children:[e.jsx(L,{hero:!0,image:H,imageSmall:z,imageAlt:w(),title:v(),body:b(),primary:{label:I(),to:"/network/country/rwanda"},secondary:{label:i(),to:"/network"},textSide:"left",textAlignY:"bottom"}),e.jsxs(T,{cardClassName:"px-6 py-10 sm:px-10 sm:py-12 lg:flex lg:flex-col lg:justify-center lg:px-16 xl:px-20",children:[e.jsxs("div",{className:"max-w-3xl",children:[e.jsx(Q,{className:"text-ink",children:j()}),e.jsx("p",{className:"mt-4 text-base leading-relaxed text-ink-muted sm:text-lg",children:y()})]}),(s.isPending||a.length>0)&&e.jsx("div",{className:"mt-8 grid gap-4 sm:gap-5 lg:mt-10 lg:grid-cols-3",children:s.isPending?Array.from({length:m}).map((t,o)=>e.jsx(J,{},o)):a.map(t=>e.jsx(G,{institution:t},t.id))}),e.jsxs("div",{className:"mt-8 flex flex-col gap-3 sm:flex-row lg:mt-10",children:[e.jsx(l,{to:"/network/country/rwanda",arrow:!0,label:r>0?N({count:r.toLocaleString()}):k()}),e.jsx(l,{to:"/network",variant:"outline",label:i()})]})]}),e.jsx(n,{tone:"surface",imageSide:"left",title:C(),body:A(),action:{label:E(),to:"/network"},image:W,imageSmall:K,imageAlt:S(),focus:"center 20%",mobileFocus:"center 15%"}),e.jsx(n,{title:U(),body:F(),action:{label:B(),to:"/institutions"},image:O,imageSmall:Y,imageAlt:P(),focus:"center 20%"})]}),e.jsx(u,{variant:"white"})]})};export{he 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.