PageSourceSearch

https://tresda.institute/assets/Campus-BTStdcPz.js

js tresda.institute collected 2026-10-02 01:59:21 UTC 21,625 bytes, 1 lines download raw bytes

1import{j as e,bt as _,z as b,b as m,x,m as p,r as y,a0 as w}from"./index-u0HMC9Vb.js";function S({children:a,className:r=""}){return e.jsx(_.div,{className:r,initial:"hidden",whileInView:"show",viewport:{once:!0,margin:"-40px"},variants:{hidden:{},show:{transition:{staggerChildren:.08}}},children:a})}function E({children:a,className:r=""}){return e.jsx(_.div,{className:r,variants:{hidden:{opacity:0,y:20},show:{opacity:1,y:0,transition:{duration:.5,ease:[.22,1,.36,1]}}},children:a})}const F={founder:"https://images.unsplash.com/photo-1481277542470-605612bd2d61?w=800&q=80",challenge:"https://images.unsplash.com/photo-1503387762-592deb58ef4e?w=800&q=80",event:"https://images.unsplash.com/photo-1517502884422-41eaead166d4?w=800&q=80",read:"https://images.unsplash.com/photo-1512820790803-83ca734da794?w=800&q=80"};function N(a){const r=(a||"").trim().split(/\s+/).filter(Boolean).length;return Math.max(1,Math.round(r/200))}function k(){var l;const a=b(),{data:r=[]}=m({queryKey:["campus-founder-notes"],queryFn:()=>p.entities.Announcement.filter({is_active:!0},"-created_date",5)}),{data:n=[]}=m({queryKey:["campus-founder-posts"],queryFn:()=>p.entities.Post.filter({post_type:"announcement",is_archived:!1},"-created_date",5)}),{data:o=[]}=m({queryKey:["campus-challenges"],queryFn:()=>p.entities.Challenge.filter({status:"active"},"-created_date",5)}),{data:d=[]}=m({queryKey:["campus-next-event"],queryFn:()=>p.entities.Event.filter({},"start_time",10).then(t=>t.filter(g=>new Date(g.start_time)>new Date(Date.now()-36e5)))}),{data:f=[]}=m({queryKey:["campus-read-of-week"],queryFn:()=>p.entities.Read.filter({},"-created_date",10).then(t=>t.filter(g=>g.cover_image_url))}),h=r[0],u=n[0],i=u&&(!h||new Date(u.created_date)>new Date(h.created_date)),s=i?u:h,c=[];if(s){const t=s.content||"";c.push({img:i&&((l=u.image_urls)==null?void 0:l[0])||F.founder,label:"Founder Note",title:s.title||"How Taste Develops",meta:`${x(new Date(s.created_date),"d MMM")} · ${N(t)} min read`,action:"Read",path:"/Circle"})}if(o[0]){const t=o[0];c.push({img:t.cover_image_url||F.challenge,label:"Current Challenge",title:t.title,meta:t.end_date?`Closes ${x(new Date(t.end_date),"d MMM")}`:"Live brief",action:"View Brief",path:"/Circle"})}if(d[0]){const t=d[0],g=new Date(t.start_time),j=g<=new Date&&(!t.end_time||new Date(t.end_time)>=new Date);c.push({img:F.event,label:"Next Event",title:t.title,meta:x(g,"EEE d MMM · HH:mm"),action:j?"Join Live":"RSVP",path:"/campus",isLive:j,meetingUrl:t.meeting_url})}if(f[0]){const t=f[0];c.push({img:t.cover_image_url||F.read,label:"Read of the Week",title:t.title||"The Poetics of Space",meta:t.author||"",action:"Read",path:"/Library"})}return c.length===0?null:e.jsx("section",{className:"w-full",style:{paddingBottom:"clamp(32px, 5vw, 56px)"},children:e.jsx("div",{className:"max-w-[1400px] mx-auto px-6 lg:px-12",children:e.jsx(S,{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-
15 lg:gap-6",children:c.map((t,g)=>e.jsx(E,{children:e.jsxs("button",{onClick:()=>t.isLive&&t.meetingUrl?window.open(t.meetingUrl,"_blank"):a(t.path),className:"group block w-full text-left",children:[e.jsxs("div",{className:"relative overflow-hidden",style:{aspectRatio:"4/5",background:"#eee"},children:[e.jsx("img",{src:t.img,alt:"",loading:"lazy",className:"w-full h-full object-cover block transition-transform duration-700 ease-out group-hover:scale-105"}),t.isLive&&e.jsx("span",{className:"absolute top-3 left-3",style:{fontSize:9,fontFamily:"monospace",fontWeight:600,color:"#fff",textTransform:"uppercase",letterSpacing:"0.12em",background:"#dc2626",padding:"0.2em 0.5em"},children:"● Live"}),t.action==="Join Live"&&e.jsx("span",{className:"absolute bottom-3 right-3",style:{fontSize:10,fontFamily:"monospace",fontWeight:500,color:"#fff",background:"#000",padding:"6px 14px"},children:"Join Live →"})]}),e.jsxs("div",{style:{paddingTop:14},children:[e.jsx("p",{style:{margin:"0 0 6px",fontSize:9,fontFamily:"monospace",color:"#999",textTransform:"uppercase",letterSpacing:"0.12em"},children:t.label}),e.jsx("h3",{style:{margin:"0 0 8px",fontSize:"clamp(16px, 1.8vw, 19px)",fontWeight:500,fontFamily:"Pliant",color:"#1A1A1A",lineHeight:1.3,letterSpacing:"-0.01em"},children:t.title}),e.jsx("p",{style:{margin:0,fontSize:11,fontFamily:"monospace",color:"#999"},children:t.meta})]})]})},g))})})})}function v({label:a,title:r,actionLabel:n,onAction:o}){return e.jsxs("div",{className:"flex items-end justify-between",style:{marginBottom:"clamp(20px, 3vw, 32px)"},children:[e.jsxs("div",{children:[e.jsx("p",{style:{margin:"0 0 10px",fontSize:10,fontFamily:"monospace",color:"#999",textTransform:"uppercase",letterSpacing:"0.14em"},children:a}),e.jsx("h2",{style:{margin:0,fontSize:"clamp(22px, 3vw, 32px)",fontWeight:500,fontFamily:"Pliant",color:"#1A1A1A",lineHeight:1.15,letterSpacing:"-0.02em"},children:r})]}),n&&e.jsxs("button",{onClick:o,style:{fontSize:11,fontFamily:"monospace",fontWeight:500,background:"none",border:"none",cursor:"pointer",minHeight:"unset",color:"#999",textTransform:"uppercase",letterSpacing:"0.08em",whiteSpace:"nowrap",transition:"color 0.2s"},onMouseEnter:d=>d.currentTarget.style.color="#1A1A1A",onMouseLeave:d=>d.currentTarget.style.color="#999",children:[n," →"]})]})}function q(){const a=b(),{data:r=[]}=m({queryKey:["mid-activity-posts"],queryFn:()=>p.entities.Post.filter({is_archived:!1},"-created_date",6)}),{data:n=[]}=m({queryKey:["mid-activity-notes"],queryFn:()=>p.entities.Announcement.filter({is_active:!0},"-created_date",4)}),{data:o=[]}=m({queryKey:["mid-activity-challenges"],queryFn:()=>p.entities.Challenge.filter({status:"active"},"-created_date",3)}),{data:d=[]}=m({queryKey:["mid-activity-events"],queryFn:()=>p.entities.Event.filter({},"-created_date",3)}),{data:f=[]}=m({queryKey:["mid-critiques"],queryFn:()=>p.entities.CritRequest.filter({status:"open"},"-created_date",10).then(l=>l.filter(t=>{var g;return(g=t.image_urls)==null?void 0:g.length}))}),{data:h=[]}=m({queryKey:["mid-library-reads"],queryFn:()=>p.entities.Read.filter({},"-created_date",8).then(l=>l.filter(t=>t.cover_image_url))}),{data:u=[]}=m({queryKey:["mid-library-designers"],queryFn:()=>p.entities.Designer.filter({},"-created_date",6).then(l=>l.filter(t=>t.cover_image_url||t.avatar_url))}),i=y.useMemo(()=>{const l=[];return r.forEach(t=>l.push({type:t.post_type==="announcement"?"Founder":"Community",text:t.content||t.title,date:t.created_date})),n.forEach(t=>l.push({type:"Founder",text:t.title,date:t.created_date})),o.forEach(t=>l.push({type:"Challenge",text:t.title,date:t.created_date})),d.forEach(t=>l.push({type:"Event",text:t.title,date:t.created_date})),l.sort((t,g)=>new Date(g.date)-new Date(t.date)).slice(0,6)},[r,n,o,d]),s=f[0],c=[...h.slice(0,2).map(l=>({img:l.cover_image_url,label:l.author||"Author",path:"/Library"})),...u.slice(0,2).map(l=>({img:l.cover_image_url||l.avatar_url,label:l.name,path:"/Library"}))];return e.jsx("section",{className:"w-full",style:{padding:"clamp(40px, 6vw, 64px) 0",background:"#F3F1EE"},children:e.jsx("div",{className:"max-w-[1400px] mx-auto px-6 lg:px-12",children:e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-8 lg:gap-10",children:[e.jsxs("div",{children:[e.jsx(v,{label:"Latest",title:"Activity",actionLabel:"View all",onAction:()=>a("/Circle")}),i.length===0?e.jsx("p",{style:{fontSize:13,color:"#999",fontFamily:"Pliant"},children:"No recent activity."}):e.jsx("div",{style:{borderTop:"1px solid #E5E5E5"},children:i.map((l,t)=>{var g,j;return e.jsxs(_.div,{initial:{opacity:0,x:-16},whileInView:{opacity:1,x:0},viewport:{once:!0,margin:"-20px"},transition:{duration:.4,delay:t*.05},className:"group flex items-baseline gap-3 py-4",style:{borderBottom:"1px solid #E5E5E5",cursor:"pointer"},onClick:()=>a("/Circle"),children:[e.jsx("span",{style:{fontSize:9,fontFamily:"monospace",color:"#999",textTransform:"uppercase",letterSpacing:"0.1em",width:70,flexShrink:0},children:l.type}),e.jsxs("p",{className:"flex-1",style:{margin:0,fontSize:14,fontFamily:"Pliant",color:"#1A1A1A",lineHeight:1.5,transition:"transform 0.2s"},onMouseEnter:A=>A.currentTarget.style.transform="translateX(4px)",onMouseLeave:A=>A.currentTarget.style.transform="translateX(0)",children:[(g=l.text)==null?void 0:g.slice(0,100),((j=l.text)==null?void 0:j.length)>100?"…":""]}),e.jsx("span",{className:"hidden md:block",style:{fontSize:9,fontFamily:"monospace",color:"#BBB",flexShrink:0,whiteSpace:"nowrap"},children:w(new Date(l.date),{addSuffix:!0})})]},t)})})]}),e.jsxs("div",{children:[e.jsx(v,{label:"In Studio",title:"Critique",actionLabel:"Discuss",onAction:()=>a("/Circle")}),s?e.jsx("button",{onClick:()=>a("/Circle"),className:"group block w-full text-left",children:e.jsxs("div",{className:"relative overflow-hidden",style:{aspectRatio:"4/5",background:"#ddd"},children:[e.jsx("img",{src:s.image_urls[0],alt:"",loading:"lazy",className:"w-full h-full object-cover block transition-transform duration-700 ease-out group-hover:scale-105"}),e.jsx("div",{className:"absolute inset-0 flex items-end",style:{background:"linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.7) 100%)"},children:e.jsxs("div",{style:{padding:20},children:[e.jsx("p",{style:{margin:"0 0 4px",fontSize:9,fontFamily:"monospace",color:"rgba(255,255,255,0.6)",textTransform:"uppercase",letterSpacing:"0.1em"},children:w(new Date(s.created_date),{addSuffix:!0})}),e.jsx("p",{style:{margin:0,fontSize:16,fontWeight:500,fontFamily:"Pliant",color:"#fff",lineHeight:1.3},children:s.title})]})})]})}):e.jsx("div",{style:{aspectRatio:"4/5",background:"#E5E5E5",display:"flex",alignItems:"center",justifyContent:"center"},children:e.jsx("p",{style:{fontSize:13,color:"#999",fontFamily:"Pliant"},children:"No active critiques"})})]}),e.jsxs("div",{children:[e.jsx(v,{label:"Library",title:"Preview",actionLabel:"Browse",onAction:()=>a("/Library")}),e.jsx("div",{className:"grid grid-cols-2 gap-3",children:c.length>0?c.map((l,t)=>e.jsxs(_.button,{initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-20px"},transition:{duration:.4,delay:t*.06},onClick:()=>a(l.path),className:"group block text-left",children:[e.jsx("div",{className:"relative overflow-hidden",style:{aspectRatio:"3/4",background:"#ddd"},children:e.jsx("img",{src:l.img,alt:"",loading:"lazy",className:"w-full h-full object-cover block transition-transform duration-700 ease-out group-hover:scale-105"})}),e.jsx("p",{style:{margin:"8px 0 0",fontSize:11,fontFamily:"Pliant",fontWeight:500,color:"#1A1A1A",lineHeight:1.3},children:l.label})]},t)):e.jsx("p",{style:{fontSize:13,color:"#999",fontFamily:"Pliant",gridColumn:"span 2"},children:"No library items."})})]})]})})})}function T({user:a,profile:r}){const n=b(),o=r==null?void 0:r.id,{data:d=[]}=m({queryKey:["campus-journey-enrollments",o],queryFn:()=>p.entities.Enrollment.filter({student_profile_id:o,status:"active"}),enabled:!!o}),{data:f=[]}=m({queryKey:["campus-journey-traces",a==null?void 0:a.id],queryFn:()=>p.entities.Trace.filter({owner_id:a==null?void 0:a.id}).then(i=>i.filter(s=>{var c;return((c=s.name)==null?void 0:c.trim())&&!s.parent_id&&!s.is_archived})),enabled:!!(a!=null&&a.id)}),{data:h=[]}=m({queryKey:["campus-journey-labs",a==null?void 0:a.id],queryFn:()=>p.entities.LabEnrolment.filter({resident_id:a==null?void 0:a.id,status:"active"}),enabled:!!(a!=null&&a.id)}),u=[];
1if(f.length>0){const i=f.reduce((s,c)=>new Date(c.updated_date)>new Date(s.updated_date)?c:s);u.push({label:"TRACE",sub:`${f.length} active project${f.length!==1?"s":""}`,lastActivity:w(new Date(i.updated_date),{addSuffix:!0}),path:"/Trace",progress:Math.min(f.length*20,100)})}return h.length>0&&u.push({label:"Visualisation Lab",sub:"Lab in progress",lastActivity:w(new Date(h[0].enrolled_at||h[0].created_date),{addSuffix:!0}),path:"/Labs",progress:50}),d.forEach(i=>{u.push({label:`Studio ${i.course_id?"— "+i.course_id:""}`,sub:i.current_milestone_id?"In progress":"Started",lastActivity:w(new Date(i.updated_date),{addSuffix:!0}),path:"/Studio",progress:i.status==="completed"?100:45})}),u.length===0?null:e.jsx("section",{className:"w-full",style:{padding:"clamp(40px, 6vw, 64px) 0",borderTop:"1px solid #E5E5E5",borderBottom:"1px solid #E5E5E5"},children:e.jsxs("div",{className:"max-w-[1400px] mx-auto px-6 lg:px-12",children:[e.jsx(v,{label:"Continue",title:"Your Journey"}),e.jsx(S,{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-5 lg:gap-6",children:u.map((i,s)=>e.jsx(E,{children:e.jsx("button",{onClick:()=>n(i.path),className:"group block w-full text-left",style:{background:"#fff",border:"1px solid #E5E5E5",transition:"all 0.2s"},onMouseEnter:c=>{c.currentTarget.style.borderColor="#1A1A1A",c.currentTarget.style.transform="translateY(-2px)"},onMouseLeave:c=>{c.currentTarget.style.borderColor="#E5E5E5",c.currentTarget.style.transform="translateY(0)"},children:e.jsxs("div",{style:{padding:"24px 22px"},children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsx("span",{style:{fontSize:9,fontFamily:"monospace",color:"#999",textTransform:"uppercase",letterSpacing:"0.12em"},children:i.sub}),e.jsx("span",{style:{fontSize:9,fontFamily:"monospace",color:"#BBB"},children:i.lastActivity})]}),e.jsx("p",{style:{fontSize:"clamp(18px, 2.2vw, 22px)",fontWeight:500,fontFamily:"Pliant",color:"#1A1A1A",margin:"0 0 18px",letterSpacing:"-0.01em"},children:i.label}),e.jsx("div",{style:{height:2,background:"#E5E5E5",marginBottom:16,overflow:"hidden"},children:e.jsx(_.div,{initial:{width:0},whileInView:{width:`${i.progress}%`},viewport:{once:!0},transition:{duration:.8,delay:.2,ease:"easeOut"},style:{height:"100%",background:"#1A1A1A"}})}),e.jsx("span",{style:{fontSize:11,fontFamily:"monospace",fontWeight:500,color:"#1A1A1A",textTransform:"uppercase",letterSpacing:"0.08em"},children:"Resume →"})]})})},s))})]})})}function z(){const a=b(),[r,n]=y.useState(18),o=y.useRef(null),{data:d=[]}=m({queryKey:["wall-portfolios"],queryFn:()=>p.entities.PortfolioProject.filter({},"-created_date",20)}),{data:f=[]}=m({queryKey:["wall-moodboards"],queryFn:()=>p.entities.Moodboard.filter({is_shared:!0},"-created_date",20)}),{data:h=[]}=m({queryKey:["wall-posts"],queryFn:()=>p.entities.Post.filter({is_archived:!1},"-created_date",20).then(i=>i.filter(s=>{var c;return(c=s.image_urls)==null?void 0:c.length}))}),u=[...d.flatMap(i=>(i.image_urls||[]).slice(0,3).map(s=>({url:s,label:i.title,sub:"Portfolio",path:"/Discover"}))),...f.filter(i=>i.cover_image_url).map(i=>({url:i.cover_image_url,label:i.title||"Moodboard",sub:`Moodboard · ${i.course_code||""}`,path:"/Discover"})),...h.flatMap(i=>(i.image_urls||[]).slice(0,2).map(s=>({url:s,label:"Studio Work",sub:i.post_type||"Post",path:"/Circle"})))];return y.useEffect(()=>{if(!o.current)return;const i=new IntersectionObserver(s=>{s[0].isIntersecting&&n(c=>Math.min(c+12,u.length))},{rootMargin:"300px"});return i.observe(o.current),()=>i.disconnect()},[u.length]),u.length===0?null:e.jsx("section",{id:"wall",className:"w-full",style:{padding:"clamp(40px, 6vw, 64px) 0",background:"#F9F7F4"},children:e.jsxs("div",{className:"max-w-[1400px] mx-auto px-6 lg:px-12",children:[e.jsx(v,{label:"Campus Wall",title:"Resident Work",actionLabel:"Explore",onAction:()=>a("/Discover")}),e.jsx(S,{className:"columns-2 lg:columns-3 xl:columns-4",children:u.slice(0,r).map((i,s)=>e.jsx(E,{children:e.jsx("button",{onClick:()=>a(i.path),className:"group block w-full mb-4 text-left",style:{breakInside:"avoid"},children:e.jsxs("div",{className:"relative overflow-hidden",style:{background:"#E5E5E5"},children:[e.jsx("img",{src:i.url,alt:"",loading:"lazy",className:"w-full block transition-transform duration-700 ease-out group-hover:scale-105"}),e.jsx("div",{className:"absolute inset-0 flex items-end opacity-0 group-hover:opacity-100 transition-opacity duration-300",style:{background:"linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.6) 100%)"},children:e.jsxs("div",{style:{padding:14},children:[e.jsx("p",{style:{fontSize:9,fontFamily:"monospace",color:"rgba(255,255,255,0.6)",textTransform:"uppercase",letterSpacing:"0.08em",margin:0},children:i.sub}),e.jsx("p",{style:{fontSize:12,fontFamily:"Pliant",fontWeight:500,color:"#fff",margin:"4px 0 0"},children:i.label||"View"})]})})]})})},s))}),r<u.length&&e.jsx("div",{ref:o,style:{height:1}})]})})}function C(){const a=b(),{data:r=[]}=m({queryKey:["campus-upcoming-events"],queryFn:()=>p.entities.Event.filter({},"start_time",12).then(n=>n.filter(o=>new Date(o.start_time)>new Date).slice(0,4))});return r.length===0?null:e.jsx("section",{id:"events",className:"w-full",style:{padding:"clamp(40px, 6vw, 64px) 0",background:"#F3F1EE"},children:e.jsxs("div",{className:"max-w-[1400px] mx-auto px-6 lg:px-12",children:[e.jsx(v,{label:"Upcoming",title:"Events",actionLabel:"View all",onAction:()=>a("/campus")}),e.jsx(S,{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-
15 lg:gap-6",children:r.map(n=>{const o=new Date(n.start_time);return e.jsx(E,{children:e.jsx("button",{onClick:()=>a("/campus"),className:"group block w-full text-left",children:e.jsxs("div",{className:"flex items-stretch",style:{background:"#fff",border:"1px solid #E5E5E5",transition:"border-color 0.2s"},onMouseEnter:d=>d.currentTarget.style.borderColor="#1A1A1A",onMouseLeave:d=>d.currentTarget.style.borderColor="#E5E5E5",children:[e.jsxs("div",{className:"flex flex-col items-center justify-center flex-shrink-0",style:{width:64,padding:"14px 8px",background:"#1A1A1A"},children:[e.jsx("span",{style:{fontSize:9,fontFamily:"monospace",color:"rgba(255,255,255,0.4)",textTransform:"uppercase",letterSpacing:"0.1em"},children:x(o,"MMM")}),e.jsx("span",{style:{fontSize:22,fontWeight:500,fontFamily:"Pliant",color:"#fff",lineHeight:1,marginTop:4},children:x(o,"d")}),e.jsx("span",{style:{fontSize:9,fontFamily:"monospace",color:"rgba(255,255,255,0.5)",marginTop:6,fontVariantNumeric:"tabular-nums"},children:x(o,"HH:mm")})]}),e.jsxs("div",{className:"flex-1 flex flex-col justify-center",style:{padding:"14px 18px"},children:[e.jsx("p",{style:{margin:0,fontSize:14,fontWeight:500,fontFamily:"Pliant",color:"#1A1A1A",lineHeight:1.4},children:n.title}),n.location&&e.jsx("p",{style:{margin:"4px 0 0",fontSize:11,fontFamily:"Pliant",color:"#999"},children:n.location}),e.jsx("span",{style:{marginTop:8,fontSize:10,fontFamily:"monospace",fontWeight:500,color:"#1A1A1A",textTransform:"uppercase",letterSpacing:"0.08em"},children:"RSVP →"})]})]})})},n.id)})})]})})}function D(){const a=b(),{data:r=[]}=m({queryKey:["campus-residents"],queryFn:()=>p.entities.TRESDAProfile.filter({directory_listed:!0},"-created_date",12).then(n=>n.filter(o=>o.avatar_url&&o.selected_role==="student").slice(0,4))});return r.length===0?null:e.jsx("section",{id:"residents",className:"w-full",style:{padding:"clamp(40px, 6vw, 64px) 0",background:"#F9F7F4"},children:e.jsxs("div",{className:"max-w-[1400px] mx-auto px-6 lg:px-12",children:[e.jsx(v,{label:"Community",title:"Residents",actionLabel:"Directory",onAction:()=>a("/Directory")}
1),e.jsx(S,{className:"grid grid-cols-2 lg:grid-cols-4 gap-5 lg:gap-6",children:r.map(n=>e.jsx(E,{children:e.jsxs("button",{onClick:()=>a(`/profile/${n.user_id}`),className:"group block w-full text-left",children:[e.jsxs("div",{className:"relative overflow-hidden",style:{aspectRatio:"3/4",background:"#E5E5E5"},children:[e.jsx("img",{src:n.avatar_url,alt:"",loading:"lazy",className:"w-full h-full object-cover block transition-transform duration-700 ease-out group-hover:scale-105"}),e.jsx("div",{className:"absolute inset-0 flex items-end opacity-0 group-hover:opacity-100 transition-opacity duration-300",style:{background:"linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.7) 100%)"},children:e.jsxs("div",{style:{padding:14},children:[e.jsx("p",{style:{fontSize:13,fontFamily:"Pliant",fontWeight:500,color:"#fff",margin:0},children:n.full_name||"Resident"}),n.primary_tra&&e.jsx("p",{style:{fontSize:10,fontFamily:"monospace",color:"rgba(255,255,255,0.6)",textTransform:"uppercase",letterSpacing:"0.08em",margin:"4px 0 0"},children:n.primary_tra})]})})]}),e.jsxs("div",{style:{marginTop:12},children:[e.jsx("p",{style:{margin:0,fontSize:14,fontWeight:500,fontFamily:"Pliant",color:"#1A1A1A"},children:n.full_name||"Resident"}),e.jsx("p",{style:{margin:"4px 0 0",fontSize:10,fontFamily:"monospace",color:"#999",textTransform:"uppercase",letterSpacing:"0.08em"},children:n.location||"—"})]})]})},n.id))})]})})}function P(){const[a,r]=y.useState(null),[n,o]=y.useState(null);return y.useEffect(()=>{p.auth.me().then(d=>{r(d),d!=null&&d.id&&p.entities.TRESDAProfile.filter({user_id:d.id}).then(f=>o(f[0]||null)).catch(()=>{})}).catch(()=>{})},[]),e.jsxs("div",{className:"min-h-screen",style:{background:"#F9F7F4"},children:[e.jsx("section",{className:"w-full",style:{padding:"clamp(48px, 7vw, 80px) 0 clamp(32px, 4vw, 48px)"},children:e.jsxs("div",{className:"max-w-[1400px] mx-auto px-6 lg:px-12",children:[e.jsx("p",{style:{margin:"0 0 14px",fontSize:10,fontFamily:"monospace",color:"#999",textTransform:"uppercase",letterSpacing:"0.14em"},children:e.jsx("span",{style:{background:"#EDEAE5",padding:"0.15em 0.35em"},children:x(new Date,"EEEE d MMMM yyyy")})}),e.jsx("h1",{style:{margin:"0 0 12px",fontSize:"clamp(48px, 9vw, 104px)",fontWeight:500,fontFamily:"Pliant",color:"#1A1A1A",lineHeight:.95,letterSpacing:"-0.03em"},children:"Today"}),e.jsx("p",{style:{margin:0,fontSize:"clamp(15px, 2vw, 18px)",fontFamily:"Pliant",color:"#666",lineHeight:1.6},children:"What's happening across the institute."})]})}),e.jsx(k,{}),e.jsx(T,{user:a,profile:n}),e.jsx(q,{}),e.jsx(z,{}),e.jsx(C,{}),e.jsx(D,{})]})}export{P 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.