PageSourceSearch

https://agda.com.au/wp-content/themes/agda/dist/frontend/assets/archive-judge-BzDoXOsO.js

js agda.com.au collected 2026-10-02 03:39:54 UTC 4,915 bytes, 2 lines download raw bytes

1import{e as h,j as e,C as y,V as v,W as u,t as f,b4 as w,D as N,b5 as S,b1 as C}from"./entry.client-BF1tJIhu.js";import{R as I}from"./ResponsiveImage-CSPuaRWh.js";import{C as M}from"./ChipGroup-INSy566i.js";import{R}from"./RichSelect-Bpdg6iaB.js";import{D as b}from"./DirectoryHeader-7ahek64K.js";import{R as k}from"./ResultList-DH3pAUG_.js";import{S as E}from"./Transition-BTIyssUe.js";import{u as L}from"./useSearchParams-eEjfaWaP.js";import"./react-icons.esm-BrOTrqLX.js";import"./index-CWWd72kg.js";import"./index-CCDKe8Fw.js";import"./floating-ui.dom-D0RElrgj.js";import"./index-Btu-ytwD.js";import"./HR-B6amvMOY.js";import"./Toggle-DAyqQddl.js";import"./LoadingResults-BL-vfXql.js";import"./LoadingSensor-BfQ9saTp.js";import"./NoResults-B0C5vLHC.js";function T(o){var l;const a=o.judgeInfo,[t,c]=h.useState(!1);h.useEffect(()=>{o.autoExpand&&c(!0)},[o.autoExpand]);const m=(l=a==null?void 0:a.category)==null?void 0:l.map((r,d)=>e.jsx(y,{as:"span",children:r==null?void 0:r.name},d)),x=e.jsx(y,{as:"span",variant:"outline",children:a==null?void 0:a.judgeYear}),g=(a==null?void 0:a.company)??(a==null?void 0:a.position),s=(a==null?void 0:a.profileImage)&&e.jsx(I,{...a==null?void 0:a.profileImage,aspect:4/3});return o.mode==="row"?e.jsxs("div",{className:"@container border-b will-change-transform",children:[e.jsxs("button",{className:"grid-auto grid-flow-col pt-4 pb-4 text-pretty overflow-clip text-left",onClick:()=>{c(!t)},children:[e.jsxs("div",{className:"col-span-8 @3xl:col-span-4",children:[e.jsx("div",{className:"type-title-xs-medium @[200px]:type-title-s-medium antialiased",children:o.title}),e.jsx("div",{className:"type-title-xs-roman @[200px]:type-title-s-light",children:g}),e.jsx("div",{className:"@3xl:hidden",children:e.jsxs("div",{className:"flex flex-wrap gap-1 mt-3",children:[x," ",m]})}),e.jsx(v,{children:t&&e.jsx(u.div,{initial:{opacity:0,height:0},exit:{opacity:0,height:0},animate:{opacity:1,height:"auto"},className:"hidden @3xl:block",children:e.jsx("div",{className:"pt-6",children:s})})})]}),e.jsx("div",{className:"hidden col-span-2 @3xl:block",children:e.jsx("div",{className:"flex flex-wrap gap-1 pt-1",children:m})}),e.jsx("div",{className:"hidden @3xl:block @3xl:col-span-4",children:e.jsx(u.div,{initial:"collapsed",variants:{collapsed:{height:"4em"},expanded:{height:"auto"}},animate:t?"expanded":"collapsed",className:f("type-body-s-serif el-p:mb-3",t?"":"[&>p]:hidden [&>p:first-child]:line-clamp-3"),dangerouslySetInnerHTML:{__html:(a==null?void 0:a.profile)??""}})}),e.jsxs("div",{className:"hidden @3xl:flex justify-end @3xl:col-span-2",children:[x,t?e.jsx(w,{className:"w-4 h-4 ml-2"}):e.jsx(N,{className:"w-4 h-4 ml-2"})]}),e.jsx("div",{className:"col-span-4 @3xl:hidden",children:s})]}),e.jsx(u.div,{initial:"collapsed",variants:{collapsed:{height:"0"},expanded:{height:"auto"}},animate:t?"expanded":"collapsed",className:"type-body-s-roman el-p:mb-3 overflow-hidden @3xl:!hidden will-change-transform",children:e.jsx("div",{className:"pt-4 pb-6",dangerouslySetInnerHTML:{__html:(a==null?void 0:a.profile)??""}})})]}):e.jsx("div",{})}function _(o){const a=h.useMemo(()=>{var s,l,r,d;return((d=(r=(l=(s=o.page)==null?void 0:s.judgeListing)==null?void 0:l.yearsToShow)==null?void 0:r.map(n=>{var i;return(i=n==null?void 0:n.info)==null?void 0:i.awardYear}))==null?void 0:d.filter(Boolean).sort().reverse())??[]},[o.page]),[t,c]=L({category:[],year:a[0],display:"row",search:""}),m=S({year:t.year,category:t.category,search:t.search}),x=h.useMemo(()=>{var s,l,r,d,n;return((n=(d=(r=(l=(s=o.page)==null?void 0:s.judgeListing)==null?void 0:l.yearsToShow)==null?void 0:r.find(i=>{var p;return((p=i==null?void 0:i.info)==null?void 0:p.awardYear)===t.year}))==null?void 0:d.judgeCategories)==null?void 0:n.sort((i,p)=>{var j;return(j=i==null?void 0:i.name)==null?void 0:j.localeCompare(p==null?void 0:p.name)}))??[]},[o.page,t.year]),g=h.useMemo(()=>{var l,r;const s=((r=(l=m.data)==null?void 0:l.judges)==null?void 0:r.nodes)??[];return s.sort((d,n)=>{var i;return(i=d.title)==null?void 0:i.localeCompare(n.title)}),s},[m.data]);return e.jsxs(E,{children:[e.jsx(b,{heading:"Jury",displayMode:"row",tags:e.jsxs("div",{className:"stack-x-1 flex-wrap max-w-[800px]",children:[a.length>1&&e.jsx(R,{size:"chip",variant:"outline",value:String(t.year),onChange:s=>c.set("year",parseInt(s)),options:a.map(s=>({label:String(s),value:String(s)}))}),e.jsx(M,{unwrapped:!0,value:t.category,onValueChange:c.setter("category"),options:x.map(s=>({value:s==null?void 0:s.slug,label:s==null?void 0:s.name}))})]}),search:e.jsx(C,{onSearch:c.setter("search"),placeholder:"Search judges..."})}),e.jsx(k,{mode:t.display,items:g,hasNextPage:!1,loading:m.isLoading,loadingNextPage:!1,
1component:T,dynamicSizing:!1,keyField:"id",mobileMode:"row"}),e.jsx("div",{className:"h-10"})]})}_.displayName="View(archive-judge)";export{_ as default};
2//# sourceMappingURL=archive-judge-BzDoXOsO.js.map

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.