Spaces:
Running
Running
File size: 4,361 Bytes
6ed5ced | 1 2 | import{u as v,b as _,i as S,j as e,L as f,x as b}from"./index-BASp1Jlg.js";import{a as j,A as C,b as E}from"./AreaSection-CPDB6sm_.js";import{M as N}from"./MarkdownText-BJyuHn3y.js";import{s as F}from"./areas-Dvi8w2dp.js";import{c as L,h as T}from"./colors-BkWRhvFI.js";import{C as $}from"./conferenceListings-BnmhBx-_.js";import{f as A}from"./deadlines-BG5SWwEG.js";import{d as P}from"./transform-DhU91To3.js";import{S as w}from"./skeleton-CX3VRuwp.js";import{s as D}from"./safeExternalHref-CkBrsh84.js";import{l as R}from"./LoadFailurePage-C-5nDa4j.js";import{u as B}from"./useDocumentTitle-CMM05SJc.js";import{e as M}from"./pageTitles-Bh_-lk2I.js";import"./PaperPreviewLink-BemGp5Gv.js";import"./index-1knUYnUW.js";import"./index-BHdIUY4i.js";import"./hover-card-_8wQQfUX.js";import"./useMutation-xugMiFBh.js";import"./alert-TcODKBfp.js";import"./NotFound-B3USeNgx.js";const ie=()=>{var x,h;const{confSlug:c}=v(),r=_(b.conferenceAreasWithTasks(c)),m=S.useMemo(()=>{var s;return F(((s=r.data)==null?void 0:s.results)??[])},[r.data]),a=(x=r.data)==null?void 0:x.conference;B(a&&M(a.name));const d=((h=r.data)==null?void 0:h.total_paper_count)??0,y=$.filter(s=>{var t;return(((t=r.data)==null?void 0:t[s.countKey])??0)>0}),p=R([r.error],"Failed to load conference. Please try again.");if(p)return p;const u=a?A(a.start_date,a.end_date):null,g=a?[a.venue,a.location].filter(Boolean).join(", "):null,l=a==null?void 0:a.name;return e.jsxs("div",{className:"page",children:[e.jsxs("div",{className:a!=null&&a.image_url?"task-hero-grid":void 0,children:[e.jsxs("div",{children:[e.jsx("div",{style:{fontFamily:"var(--mono)",fontSize:11,color:"var(--accent-text)",letterSpacing:"0.1em",marginBottom:8},children:"CONFERENCE"}),e.jsx("h1",{className:"feed-title",children:l??e.jsx(w,{className:"h-10 w-64 inline-block"})}),e.jsxs("div",{className:"feed-subtitle",style:{display:"flex",flexDirection:"column",gap:4},children:[u&&e.jsx("span",{children:u}),g&&e.jsx("span",{children:g}),(a==null?void 0:a.url)&&e.jsx("a",{href:D(a.url)??void 0,target:"_blank",rel:"noopener noreferrer",style:{color:"var(--accent-text)"},children:a.url.replace(/^https?:\/\//,"")}),(a==null?void 0:a.hf_url)&&e.jsxs("a",{className:"bm-action-btn",href:a.hf_url,target:"_blank",rel:"noopener noreferrer",style:{alignSelf:"flex-start",marginTop:4},children:[e.jsx("span",{"aria-hidden":"true",children:"🤗"})," View on Hugging Face"]})]}),(a==null?void 0:a.description)&&e.jsx(N,{className:"method-description",text:a.description})]}),(a==null?void 0:a.image_url)&&e.jsxs("figure",{className:"task-figure-card",children:[e.jsx("div",{className:"task-figure-img-wrap",children:e.jsx("img",{className:"task-figure-img",src:a.image_url,alt:l?`${l} visual`:"Conference visual",onError:s=>{var t,n;(n=(t=s.currentTarget.parentElement)==null?void 0:t.parentElement)==null||n.style.setProperty("display","none")}})}),e.jsxs("figcaption",{children:["Figure · ",l??"Conference",a.image_credit&&e.jsxs(e.Fragment,{children:[e.jsx("br",{}),e.jsx(N,{className:"task-image-credit",text:a.image_credit})]})]})]})]}),!r.isLoading&&d>0&&e.jsx(j,{title:"Browse papers",description:"All accepted papers, plus oral, spotlight, outstanding, and best paper finalists.",meta:`${d.toLocaleString()} papers`,style:{marginTop:48},children:y.map(s=>{var t;return e.jsxs(f,{to:`/conferences/${c}/${s.slug}`,className:"tag-cell",children:[e.jsxs("div",{className:"name",children:[e.jsx("span",{className:"dot",style:{background:s.dotColor}}),s.label]}),e.jsx("div",{className:"meta",children:e.jsxs("span",{children:[(((t=r.data)==null?void 0:t[s.countKey])??0).toLocaleString()," papers"]})})]},s.slug)})}),r.isLoading?e.jsx(C,{tiles:6,tileClassName:"h-24"}):m.map(s=>{const t=s.tasks;if(t.length===0)return null;const n=t.reduce((i,o)=>i+(o.paper_count||0),0);return e.jsx(j,{title:s.name,description:s.description,meta:`${t.length} ${t.length===1?"task":"tasks"} · ${n.toLocaleString()} papers`,children:t.map(i=>{const o=i.slug||"",k=L(T(o));return e.jsxs(f,{to:`/conferences/${c}/${o}`,className:"tag-cell",children:[e.jsxs("div",{className:"name",children:[e.jsx("span",{className:"dot",style:{background:k.dot}}),P(i.name,o)]}),e.jsx("div",{className:"meta",children:e.jsxs("span",{children:[(i.paper_count??0).toLocaleString()," papers"]})})]},i.id)})},s.id)}),e.jsx(E,{areas:m})]})};export{ie as default};
|