1import{N as Q,j as e,ch as D,B as L,ci as O,cj as ee,bh as te,bf as se,r as l,q as v,L as R,ck as ae,cl as ne,am as M,cm as re,cn as A,co as ie,u as oe,D as le,E as ce,bi as E,U as de,aU as ue,cp as me,cq as U,cr as xe}from"./main-DO3vLohi.js";import{A as N}from"./arrow-right-DcEyhqNS.js";import{C as pe}from"./CompanyTile-D9GWb5d7.js";import{P as he}from"./play-CASX3aEl.js";const fe=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],ge=Q("wrench",fe),be=D.slice(0,6).map(t=>({label:t.group,href:`/browse/${t.slug}`,slug:t.slug})),P={label:`All ${D.length} fields â`,href:"/browse"};function je(){return e.jsx("div",{className:"border-t border-hairline bg-surface-white",children:e.jsxs("div",{className:"mx-auto flex max-w-[1200px] flex-col gap-4 px-6 py-8 md:flex-row md:items-center md:gap-6 md:px-12",children:[e.jsx("div",{className:"flex-none text-xs font-bold uppercase tracking-label text-text-muted",children:"Browse by field"}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[be.map(t=>e.jsx("a",{href:t.href,"data-amp-track-surface":"landing","data-amp-track-action":"browse_field","data-amp-track-placement":"field_chips","data-amp-track-target":t.slug,className:"inline-flex items-center rounded-pill border border-border bg-surface-white px-3.5 py-1.5 text-sm text-text no-underline hover:border-border-hover hover:text-text-strong",children:t.label},t.href)),e.jsx("a",{href:P.href,"data-amp-track-surface":"landing","data-amp-track-action":"browse_field","data-amp-track-placement":"field_chips","data-amp-track-target":"all",className:"inline-flex items-center rounded-pill px-3.5 py-1.5 text-sm font-bold text-text-strong no-underline hover:text-orange",children:P.label})]})]})})}function we(){return e.jsx("div",{className:"bg-text-strong",children:e.jsxs("div",{className:"mx-auto grid max-w-[1200px] gap-8 px-6 py-12 text-center md:grid-cols-[1fr_380px] md:items-center md:px-12 md:py-14 md:text-left",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"max-w-[16ch] text-balance text-xl font-bold leading-tight tracking-display text-text-on-dark md:text-2xl",children:"Your next internship is already posted somewhere."}),e.jsx("p",{className:"mt-4 text-md leading-snug text-text-on-dark/70",children:"Upload your resume and Chegg starts working today. Free to start."})]}),e.jsxs("div",{className:"flex flex-col gap-3",children:[e.jsx(L,{asChild:!0,variant:"orange",size:"lg",className:"h-14 text-md",children:e.jsxs("a",{href:O(),"data-amp-track-surface":"landing","data-amp-track-action":"start_signup","data-amp-track-target":"search","data-amp-track-placement":"closing_cta",children:["Start your search",e.jsx(N,{})]})}),e.jsx("span",{className:"text-center text-sm text-text-on-dark/60",children:"No credit card. Takes about two minutes."})]})]})})}const ye="/assets/amara-CdqDT7nG.jpg",Ne="/assets/jordan-BJCEqL9d.jpg",ve="/assets/nora-CyZaHYrT.jpg",g="cubic-bezier(.22,1,.36,1)";function ke(){return e.jsxs("section",{id:"how-it-works",className:"mx-auto max-w-[1200px] scroll-mt-12 px-6 pb-20 pt-12 md:px-12 md:pb-28 md:pt-16",children:[e.jsx("p",{className:"mb-3.5 text-xs font-bold uppercase tracking-label text-text-muted",children:"How it works"}),e.jsxs("h2",{className:"mb-4 max-w-[16ch] text-balance text-xl font-bold leading-tight tracking-display text-text-strong md:text-2xl",children:["Let us do the work ",e.jsx("span",{className:"text-orange",children:"for you"})]}),e.jsx("p",{className:"mb-16 max-w-[60ch] text-md leading-snug text-text",children:"Stop spending hours scanning job boards, tweaking your resume, and wondering why you've been ghosted. Chegg handles the boring parts so you can get more interviews, faster."}),e.jsxs("div",{className:"flex flex-col gap-8",children:[e.jsx(w,{anchorId:"match-and-apply",Icon:ee,title:"Match and apply",blurb:"The right roles found and your materials tailored, so applying is one click.",points:["All your internship options in one place, not ten open tabs","Sorted so the ones that fit you show up first","A resume and cover letter tailored to each one"],illustration:e.jsx(Le,{})}),e.jsx(w,{anchorId:"networking",Icon:te,title:"Networking",blurb:"Build a real professional network without the grunt work.",points:["Alumni and hiring contacts at the companies you're applying to","A first message drafted for you, so you're not starting from scratch","A nudge to follow up when it's gone quiet"],illustration:e.jsx(Ce,{}),flip:!0}),e.jsx(w,{anchorId:"skill-building",Icon:ge,title:"Skill building",blurb:"See what stands between you and your dream job, and a plan to close it.",points:["The skills a job wants that aren't on your resume yet","Short videos and courses to pick them up","What you finish gets added to your resume"],illustration:e.jsx(Te,{})}),e.jsx(w,{anchorId:"interview-prep",Icon:se,title:"Interview prep",soon:!0,blurb:"Know what that company asks, and be ready to answer it.",points:["The kind of questions a company is likely to ask","Practice out loud and timed, like the real thing","Honest feedback on how your answers came across"],illustration:e.jsx(Ie,{}),flip:!0})]})]})}function w({anchorId:t,Icon:s,title:a,soon:n,blurb:i,points:o,illustration:r,flip:d}){const u=e.jsxs("div",{className:"flex flex-col justify-center p-8 md:p-12",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2.5",children:[e.jsx(s,{className:"size-6 flex-none text-orange",strokeWidth:1.5}),e.jsx("h3",{className:"text-lg font-bold tracking-tight text-text-strong md:text-xl",children:a}),n?e.jsx("span",{className:"inline-flex items-center rounded-pill border border-border bg-surface-raised px-2.5 py-1 text-xs font-bold uppercase tracking-label text-text-muted",children:"Coming soon"}):null]}),e.jsx("p",{className:"mt-4 max-w-[44ch] text-md leading-body text-text",children:i}),e.jsx("div",{className:"mt-7 flex flex-col gap-4",children:o.map(x=>e.jsxs("div",{className:"flex items-baseline gap-3",children:[e.jsx("span",{className:"flex-none text-sm text-text-disabled",children:"â"}),e.jsx("span",{className:"text-base leading-snug text-text",children:x})]},x))})]}),c=e.jsx("div",{"aria-hidden":"true",className:`grid min-h-[320px] border-hairline max-md:border-b md:min-h-[380px] ${d?"md:border-r":"md:border-l"}`,children:r});return e.jsx("article",{id:t,className:"grid scroll-mt-20 overflow-clip rounded-xl border border-hairline bg-surface-white md:grid-cols-2",children:d?e.jsxs(e.Fragment,{children:[e.jsx("div",{children:c}),u]}):e.jsxs(e.Fragment,{children:[u,e.jsx("div",{className:"order-first md:order-none",children:c})]})})}function k({tone:t,label:s,children:a}){return e.jsxs("div",{className:`relative flex h-full flex-col justify-center overflow-hidden p-6 ${t==="agent"?"bg-purple-08":"bg-orange-04"}`,children:[e.jsx("div",{className:"mb-3 text-xs font-bold uppercase tracking-label text-text-muted",children:s}),a]})}function q({lines:t}){return e.jsxs("div",{className:"mt-3.5 rounded-lg border border-purple-16 bg-purple-surface p-3",children:[e.jsx("span",{style:{animation:"landing-work 1.6s ease-in-out infinite"},className:"size-1.5 flex-none rounded-pill bg-purple"}),e.jsx("div",{className:"relative mt-1.5 h-5",children:t.map((s,a)=>e.jsx("div",{style:{animation:`landing-cyc 7s ${a*2.33}s ${g} infinite backwards`},className:"absolute inset-0 text-xs text-text",children:s},s))})]})}const Se=[{title:"Marketing Intern",org:"Blue Ridge Coffee · Austin, TX",meta:"Summer 2026 · $22/hr"},{title:"Events Assistant",org:"Cedar Park Library · Remote",meta:"Summer 2026 · $19/hr"},{title:"Social Media Intern",org:"Hill Country Outfitters · Austin, TX",meta:"Summer 2026 · $21/hr"}];function Le(){return e.jsxs(k,{tone:"warm",label:"Three new jobs for you today",children:[e.jsxs("div",{className:"relative h-[92px]",children:[e.jsx("div",{className:"absolute inset-0 scale-[0.96] translate-y-2 rounded-[10px] border border-cream bg-surface-white opacity-60"}),Se.map((t,s)=>e.jsxs("div",{style:{animation:`landing-swipe-${s%2===0?"r":"l"} 9s ${s*3}s ${g} infinite`,zIndex:5-s},className:"absolute inset-0 rounded-[10px] border border-cream bg-surface-white p-3.5",children:[e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx(pe,{companyName:t.org,size:32}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("div",{className:"truncate text-sm font-bold text-text-strong",children:t.title}),e.jsx("div",{className:"mt-0.5 text-xs text-text-muted",children:t.org})]})]}),e.jsx("div",{className:"mt-2.5 text-xs text-text",children:t.meta})]},t.title)),e.jsx("div",{style:{animation:`landing-stamp 9s 0s ${g} infinite`},className:"absolute right-0 top-6 z-10 rotate-[9deg] rounded-md border-[1.5px] border-success bg-surface-white px-2.5 py-1 text-xs font-bold uppercase tracking-label text-success",children:"Apply"}),e.jsx("div",{style:{animation:`landing-stamp 9s 3s ${g} infinite backwards`},className:"absolute left-0 top-6 z-10 -rotate-[9deg] rounded-md border-[1.5px] border-danger bg-surface-white px-2.5 py-1 text-xs font-bold uppercase tracking-label text-danger",children:"Skip"}),e.jsx("div",{style:{animation:`landing-stamp 9s 6s ${g} infinite backwards`},className:"absolute right-0 top-6 z-10 rotate-[9deg] rounded-md border-[1.5px] border-success bg-surface-white px-2.5 py-1 text-xs font-bold uppercase tracking-label text-success",children:"Apply"})]}),e.jsx(q,{lines:["Tailoring your resume for this posting","Writing a cover letter in your words","Filling in the form and sending it"]})]})}const Ae=[{name:"Nora Medina",role:"Marketing manager at Blue Ridge Coffee",badge:"Class of 2021",note:"Drafted a short note about the campus pop-up you both ran.",action:"Send intro",aside:"Not this time",photo:ve},{name:"Jordan Reyes",role:"University recruiter at Cedar Park",badge:"Replies fast",note:"Drafted your intro and picked Tuesday morning to send it.",action:"Review draft",aside:"Not this time",photo:Ne},{name:"Amara Koh",role:"Alum at Blue Ridge Coffee",badge:"Thu 2:30pm",note:"Amara said yes. Chegg put a 20 minute coffee chat on your calendar.",action:"See the invite",aside:"Reschedule",photo:ye}];function Ce(){return e.jsx(k,{tone:"agent",label:e.jsxs("span",{className:"inline-flex items-center gap-2",children:[e.jsx("span",{style:{animation:"landing-work 1.6s ease-in-out infinite"},className:"size-1.5 rounded-pill bg-purple"}),"Your network, handled"]}),children:e.jsx("div",{className:"relative h-[196px]",children:Ae.map((t,s)=>e.jsxs("div",{style:{animation:`landing-cyc 12s ${s*4}s ${g} infinite backwards`},className:"absolute inset-0 flex flex-col rounded-xl border border-purple-16 bg-surface-white p-4",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("img",{src:t.photo,alt:"",loading:"lazy",className:"size-10 flex-none rounded-pill object-cover"}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("div",{className:"text-sm font-bold text-text-strong",children:t.name}),e.jsx("div",{className:"mt-0.5 truncate text-xs text-text-muted",children:t.role})]})]}),e.jsx("span",{className:"mt-2.5 self-start rounded-pill border border-purple-24 bg-purple-04 px-2.5 py-1 text-xs text-text",children:t.badge}),e.jsx("p",{className:"mt-2.5 flex-1 text-xs leading-snug text-text",children:t.note}),e.jsxs("div",{className:"flex items-center gap-3.5",children:[e.jsx("span",{className:"inline-flex h-8 items-center rounded-md bg-purple px-3.5 text-xs font-bold text-text-on-brand",children:t.action}),e.jsx("span",{className:"text-xs text-text-muted",children:t.aside})]})]},t.name))})})}const Re=["Social media","Copywriting","Google Analytics"],Ee=["Email campaigns","Basic SEO"],_e=[{name:"Email campaigns",meta:"6 min"},{name:"Basic SEO",meta:"4 hr class"}];function Te(){return e.jsxs(k,{tone:"warm",label:"To be a marketing intern you need",children:[e.jsxs("div",{className:"flex flex-wrap gap-2",children:[Re.map(t=>e.jsxs("span",{className:"inline-flex items-center gap-2 rounded-pill border border-success-tint bg-surface-white py-1.5 pl-2 pr-3.5 text-xs text-text",children:[e.jsx("span",{className:"grid size-4 place-items-center rounded-[5px] border-[1.5px] border-success bg-success",children:e.jsx("svg",{viewBox:"0 0 24 24",className:"size-2.5 text-white",f
1ill:"none",stroke:"currentColor",strokeWidth:"3.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:e.jsx("polyline",{points:"20 6 9 17 4 12"})})}),t]},t)),Ee.map((t,s)=>e.jsxs("span",{style:{animation:`landing-pill-done 9s ${s*.7}s ${g} infinite backwards`},className:"inline-flex items-center gap-2 rounded-pill border border-cream bg-surface-white py-1.5 pl-2 pr-3.5 text-xs",children:[e.jsx("span",{style:{animation:`landing-box-done 9s ${s*.7}s ${g} infinite backwards`},className:"grid size-4 place-items-center rounded-[5px] border-[1.5px] border-cream bg-surface-white",children:e.jsx("span",{style:{animation:`landing-check-in 9s ${s*.7}s ${g} infinite backwards`},className:"grid place-items-center",children:e.jsx("svg",{viewBox:"0 0 24 24",className:"size-2.5 text-white",fill:"none",stroke:"currentColor",strokeWidth:"3.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:e.jsx("polyline",{points:"20 6 9 17 4 12"})})})}),t]},t))]}),e.jsx("div",{className:"mt-4 flex gap-2.5",children:_e.map(t=>e.jsxs("div",{className:"flex flex-1 items-center gap-2.5 rounded-lg border border-cream bg-surface-white p-2.5",children:[e.jsx("span",{className:"grid size-7 flex-none place-items-center rounded-md bg-cream",children:e.jsx(he,{className:"size-3 fill-orange text-orange"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("div",{className:"truncate text-xs font-bold text-text-strong",children:t.name}),e.jsx("div",{className:"mt-0.5 font-mono text-xs text-text-muted",children:t.meta})]})]},t.name))})]})}const $e=[10,18,26,16,22,12,20,26,14,9,17,24,11].map((t,s)=>({h:t,delay:s*.07,key:`wave-${s}`}));function Ie(){return e.jsxs(k,{tone:"warm",label:"Mock interview · Blue Ridge Coffee",children:[e.jsx("div",{className:"rounded-lg border border-cream bg-surface-white p-3 text-xs leading-snug text-text-strong",children:"Tell me about a time you had to get people to care about something."}),e.jsxs("div",{className:"mt-2.5 flex items-center gap-2.5 rounded-lg border border-purple-16 bg-surface-white p-3",children:[e.jsx("div",{className:"flex h-6 items-center gap-[3px]",children:$e.map(t=>e.jsx("span",{style:{height:t.h,animation:`landing-wave 1.1s ${t.delay}s ease-in-out infinite backwards`},className:"w-[3px] origin-center rounded-pill bg-purple"},t.key))}),e.jsx("span",{className:"ml-auto font-mono text-xs text-text-muted",children:"01:12"})]}),e.jsx(q,{lines:["Good story. Say what changed because of you, not just what you did.","You opened with context for 40 seconds. Get to the problem sooner.","End on the number. It is the part they will repeat to their manager."]})]})}function ze(t){const[s,a]=l.useState(t??[]);return l.useEffect(()=>{let n=!1;return fetch(v("/api/footer-companies"),{cache:"no-store"}).then(async i=>{if(!i.ok)throw new Error(`footer-companies ${i.status}`);return await i.json()}).then(i=>{if(n||!Array.isArray(i.companies))return;const o=i.companies.filter(r=>{if(typeof r!="object"||r===null)return!1;const d=r;return typeof d.label=="string"&&typeof d.slug=="string"});a(o)}).catch(()=>{}),()=>{n=!0}},[]),s}const Fe=24;function _(){const[t,s]=l.useState(!1);return l.useEffect(()=>{const a=window.matchMedia("(prefers-reduced-motion: reduce)"),n=()=>s(a.matches);return n(),a.addEventListener("change",n),()=>a.removeEventListener("change",n)},[]),t}const Me=1e4,Pe=6e4;function He(t){return typeof t=="object"&&t!==null&&typeof t.id=="number"}function H(t){const s=t.filter(He).slice(0,Fe),a=s.length>1?s[0]:null;return{rest:(a?s.slice(1):s).map(i=>({...i,isNew:!1})),held:a}}function Be(t){const[s]=l.useState(()=>t?H(t):null),[a,n]=l.useState(s?.rest??[]),[i,o]=l.useState(s!==null);return l.useEffect(()=>{let r=!1,d=0;const u=c=>{c&&(d=window.setTimeout(()=>{r||n(x=>[{...c,isNew:!0},...x])},Me))};return s?u(s.held):fetch(v("/api/home/feed")).then(c=>c.ok?c.json():null).then(c=>{if(r||!c||typeof c!="object")return;const x=c.items;if(!Array.isArray(x)){o(!0);return}const{rest:m,held:h}=H(x);n(m),o(!0),u(h)}).catch(()=>o(!0)),()=>{r=!0,window.clearTimeout(d)}},[s]),{items:a,loaded:i}}function De(t){const[s,a]=l.useState(()=>t??Date.now());return l.useEffect(()=>{t!==void 0&&a(Date.now());const n=window.setInterval(()=>a(Date.now()),Pe);return()=>window.clearInterval(n)},[t]),s}function Oe(t,s){if(!t)return"Posted recently";const a=Date.parse(t);if(Number.isNaN(a))return"Posted recently";const n=Math.floor(Math.max(0,s-a)/36e5);if(n<1)return"Posted less than an hour ago";if(n<24)return`Posted ${n} hour${n===1?"":"s"} ago`;const i=Math.floor(n/24);return`Posted ${i} day${i===1?"":"s"} ago`}function Ue({initialItems:t=null,renderedAt:s}){const{items:a,loaded:n}=Be(t),i=De(s);return n&&a.length===0?null:e.jsxs("section",{className:"mx-auto max-w-[1200px] px-6 pt-4 pb-12 md:px-12",children:[e.jsxs("div",{className:"mb-6 flex items-end justify-between gap-4",children:[e.jsxs("h2",{className:"text-xl font-bold leading-tight tracking-display text-text-strong md:text-2xl",children:["Internships posted ",e.jsx("span",{className:"text-orange",children:"today"})]}),e.jsxs(R,{to:"/browse",reloadDocument:!0,className:"inline-flex shrink-0 items-center gap-1 text-sm font-bold text-orange hover:text-orange-hover","data-amp-track-surface":"landing","data-amp-track-action":"browse_all_listings","data-amp-track-placement":"home_feed",children:["Browse all listings",e.jsx(N,{className:"size-4"})]})]}),e.jsx("ul",{className:"flex items-stretch gap-4 overflow-x-auto pb-2",children:n?a.map(o=>e.jsx(qe,{item:o,nowMs:i},o.id)):Array.from({length:4}).map((o,r)=>
1e.jsx(We,{},r))})]})}function qe({item:t,nowMs:s}){const a=l.useRef(null),n=l.useRef(null),i=l.useRef(!1),o=_(),[r,d]=l.useState(t.isNew);l.useEffect(()=>{if(!t.isNew)return;const m=a.current,h=n.current;if(o){m&&(m.style.width=""),d(!1);return}if(!i.current&&m&&h){i.current=!0;const f=h.offsetWidth,b=m.animate([{width:"0px"},{width:`${f}px`}],{duration:420,easing:"cubic-bezier(0.22,1,0.36,1)",fill:"forwards"});b.onfinish=()=>{m.style.width=""}}const p=window.setTimeout(()=>d(!1),760);return()=>window.clearTimeout(p)},[t.isNew,o]);const u=ae(t.title,t.companyName,t.id),c=t.remote?"Remote":t.location?.trim(),x=t.salary?.trim()||"Compensation not listed";return e.jsxs("li",{ref:a,className:"relative shrink-0 overflow-hidden",style:t.isNew?{width:"0px"}:void 0,children:[e.jsxs(R,{ref:n,to:"/posting/$slugId",params:{slugId:u},reloadDocument:!0,className:`flex h-full w-72 flex-col rounded-xl border border-hairline bg-surface-white p-4 no-underline shadow-card transition-[opacity,box-shadow] duration-300 ease-out hover:shadow-card-hover sm:w-80 ${r?"opacity-0":"opacity-100"}`,"data-amp-track-surface":"landing","data-amp-track-action":"open_posting","data-amp-track-placement":"home_feed",children:[e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(ne,{name:t.companyName,logoUrl:t.companyLogoUrl,size:44,radius:8}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("h3",{className:"line-clamp-2 text-md font-bold leading-snug tracking-tight text-text-strong",children:t.title??"Internship"}),t.companyName?e.jsx("p",{className:"mt-0.5 truncate text-sm font-semibold text-text",children:t.companyName}):null]})]}),e.jsxs("p",{className:"mt-3 line-clamp-3 text-sm text-text-muted tabular-nums",children:[c?e.jsxs(e.Fragment,{children:[c,e.jsx("span",{className:"mx-1.5 text-text-disabled",children:"·"})]}):null,x]}),e.jsxs("div",{className:"mt-auto flex items-center justify-between gap-3 border-t border-hairline pt-3",children:[e.jsxs("span",{className:"inline-flex items-center gap-1.5 text-xs font-semibold text-orange",children:[e.jsx("span",{"aria-hidden":"true",className:"size-1.5 shrink-0 rounded-pill bg-orange"}),Oe(t.postedAt,s)]}),e.jsx("span",{className:"inline-flex items-center rounded-md border border-border bg-surface-white px-3 py-1.5 text-sm font-semibold text-text-strong",children:"Apply now"})]})]}),t.isNew?e.jsx("div",{"aria-hidden":"true",className:`pointer-events-none absolute inset-0 transition-opacity duration-300 ease-out ${r?"opacity-100":"opacity-0"}`,children:e.jsx(W,{})}):null]})}function W(){return e.jsxs("div",{className:"flex h-full w-72 animate-pulse flex-col rounded-xl border border-hairline bg-surface-white p-4 shadow-card sm:w-80",children:[e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"size-11 rounded-md bg-surface-raised"}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("div",{className:"h-4 w-full rounded-pill bg-surface-raised"}),e.jsx("div",{className:"mt-2 h-3 w-24 rounded-pill bg-surface-raised"})]})]}),e.jsx("div",{className:"mt-3 h-3 w-2/3 rounded-pill bg-surface-raised"}),e.jsxs("div",{className:"mt-4 flex items-center justify-between border-t border-hairline pt-3",children:[e.jsx("div",{className:"h-3 w-24 rounded-pill bg-surface-raised"}),e.jsx("div",{className:"h-7 w-20 rounded-md bg-surface-raised"})]})]})}function We(){return e.jsx("li",{className:"shrink-0",children:e.jsx(W,{})})}function Y({photo:t,priority:s=!1,className:a,pictureClassName:n}){return e.jsxs("picture",{className:n,children:[e.jsx("source",{srcSet:t.avif,type:"image/avif"}),e.jsx("source",{srcSet:t.webp,type:"image/webp"}),e.jsx("img",{src:t.jpg,alt:"","aria-hidden":"true",fetchPriority:s?"high":void 0,loading:s?void 0:"lazy",className:a})]})}const C=3e3;function Ye(t){const s=t?.getAnimations?.().find(a=>a.animationName==="landing-stat-reveal");return s?s.playState==="finished"||Number(s.currentTime??0)>=C:performance.now()>=C}function Ke(t,s,a,n,i){const o=n&&t>0,[r,d]=l.useState(o?t:0),[u,c]=l.useState(o),[x,m]=l.useState(o),h=l.useRef(o),p=l.useRef(-1),f=l.useRef(0),[b,j]=l.useState(!1);return l.useEffect(()=>{if(t<=0)return;const V=h.current&&Ye(i.current);
1if(a||re()||V){p.current=t,f.current=t,h.current=!1,m(!1),d(t),c(!0);return}if(h.current&&(h.current=!1,m(!1),d(0)),p.current===t)return;p.current=t,c(!1),j(!0);const T=f.current,G=t-T;let $=!1,S=0;const J=performance.now(),I=X=>{const z=Math.min(1,(X-J)/s),Z=1-(1-z)**3,F=Math.round(T+Z*G);f.current=F,d(F),z<1?S=requestAnimationFrame(I):($=!0,f.current=t,d(t),c(!0))};return S=requestAnimationFrame(I),()=>{cancelAnimationFrame(S),$||(p.current=-1)}},[t,s,a,i]),{display:r,done:u,pending:x,rolled:b}}function Ve({reduced:t}){const s=l.useRef(null),a=l.useRef(!1);return l.useEffect(()=>{if(t||a.current)return;a.current=!0;const n=s.current;if(!n)return;const i=n.animate([{opacity:0,transform:"translateY(4px) scale(0.6)"},{opacity:1,transform:"translateY(0) scale(1.12)",offset:.7},{opacity:1,transform:"translateY(0) scale(1)"}],{duration:420,easing:"cubic-bezier(0.34,1.4,0.5,1)",fill:"forwards"});i.onfinish=()=>{n.style.opacity="1",n.style.transform="none"}},[t]),t?e.jsx("span",{className:"text-xl font-medium leading-none text-orange lg:text-2xl",children:"+"}):e.jsx("span",{ref:s,className:"text-xl font-medium leading-none text-orange opacity-0 lg:text-2xl",children:"+"})}function B({value:t,label:s,durationMs:a=1600,fromServer:n=!1,className:i}){const o=_(),r=l.useRef(null),{display:d,done:u,pending:c,rolled:x}=Ke(t,a,o,n,r),m=t>0;return e.jsxs("div",{className:M("flex w-full flex-col items-center rounded-xl bg-orange-08 px-5 py-6 text-center shadow-card",i),children:[e.jsxs("div",{ref:r,className:M("flex items-baseline justify-center gap-1 whitespace-nowrap tracking-display",c&&"landing-stat-pending"),style:c?{animationDelay:`${C}ms`}:void 0,children:[e.jsx("span",{className:"text-xl font-medium leading-none tracking-tight text-text tabular-nums lg:text-2xl",children:m?d.toLocaleString("en-US"):"â"}),m&&u?e.jsx(Ve,{reduced:o||!x}):null]}),e.jsx("p",{className:"mt-2 max-w-[24ch] text-xs leading-snug text-text-muted",children:s})]})}function Ge(t){const[s,a]=l.useState(t),[n]=l.useState(t!==null);return l.useEffect(()=>{if(n)return;let i=!1;return fetch(v("/api/home/stats")).then(o=>o.ok?o.json():null).then(o=>{if(i||!o||typeof o!="object")return;const r=o;typeof r.topTierListings=="number"&&typeof r.payingListings=="number"&&a({topTierListings:r.topTierListings,payingListings:r.payingListings,totalOpen:typeof r.totalOpen=="number"?r.totalOpen:0})}).catch(()=>{}),()=>{i=!0}},[n]),{stats:s,fromServer:n}}const y=[{key:"photo-colleagues",kind:"photo",align:"self-start",speed:-.05},{key:"stat-top-tier",kind:"stat",align:"self-end",speed:.028},{key:"stat-paying",kind:"stat",align:"self-start",speed:-.038},{key:"photo-designer",kind:"photo",align:"self-start",speed:.062}];function Je({initialStats:t=null}){const{stats:s,fromServer:a}=Ge(t),n=_(),i=l.useRef([]);l.useEffect(()=>{if(n){for(const m of i.current)m&&(m.style.transform="");return}const r=y.map(()=>0),d=.2;let u=0;const c=()=>{const m=window.scrollY;let h=!1;for(let p=0;p<y.length;p++){const f=m*y[p].speed,b=f-r[p];Math.abs(b)>.05?(r[p]+=b*d,h=!0):r[p]=f;const j=i.current[p];j&&(j.style.transform=`translate3d(0, ${r[p].toFixed(2)}px, 0)`)}u=h?requestAnimationFrame(c):0},x=()=>{u||(u=requestAnimationFrame(c))};return c(),window.addEventListener("scroll",x,{passive:!0}),()=>{window.removeEventListener("scroll",x),cancelAnimationFrame(u)}},[n]);const o=r=>r==="stat-top-tier"?e.jsx(B,{value:s?.topTierListings??0,durationMs:1400,fromServer:a,label:"current listings with Fortune 500 companies"}):e.jsx(B,{value:s?.payingListings??0,durationMs:2100,fromServer:a,label:"listings available for internships that actually pay"});return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"hidden grid-cols-2 gap-4 md:grid",children:y.map((r,d)=>e.jsx("div",{ref:u=>{i.current[d]=u},className:`will-change-transform ${r.align}`,children:r.kind==="photo"?e.jsx(Y,{photo:r.key==="photo-colleagues"?A.colleagues:A.designer,className:"aspect-square w-full rounded-xl object-cover shadow-card"}):o(r.key)},r.key))}),e.jsxs("div",{className:"flex flex-col gap-4 md:hidden",children:[o("stat-top-tier"),o("stat-paying")]})]})}function Xe({stats:t=null}){return e.jsx("section",{className:"relative mx-auto max-w-[1200px] px-6 pb-12 pt-14 md:px-12 md:pb-14 md:pt-20",children:e.jsxs("div",{className:"grid items-center gap-8 md:grid-cols-[1fr_380px] md:gap-10 lg:grid-cols-[1fr_500px] lg:gap-14",children:[e.jsx(Y,{photo:A.colleagues,priority:!0,pictureClassName:"sm:hidden",className:"aspect-[4/3] w-full rounded-xl object-cover shadow-card"}),e.jsxs("div",{children:[e.jsx("h1",{className:"mb-6 max-w-[16ch] text-balance pb-1 text-2xl font-bold leading-tight tracking-display text-text-strong md:text-3xl",children:"Find the right internship, faster and easier."}),e.jsx("p",{className:"mb-9 max-w-[46ch] text-md leading-snug text-text md:text-lg",children:"Feel confident you'll match with the best fit. No ghost listings. Resume tailoring and matching. Auto-apply. All in one space."}),e.jsxs("div",{className:"flex flex-wrap items-center gap-x-6 gap-y-3",children:[e.jsx(L,{asChild:!0,variant:"orange",size:"lg",className:"h-14 px-7 text-md",children:e.jsxs("a",{href:O(),"data-amp-track-surface":"landing","data-amp-track-action":"start_signup","data-amp-track-target":"search","data-amp-track-placement":"hero",children:["Start your search",e.jsx(N,{})]})}),e.jsx(L,{asChild:!0,variant:"ghost",size:"sm",className:"group h-10 px-2 text-md font-bold text-text-strong hover:bg-transparent hover:text-orange",children:e.jsxs("a",{href:"#how-it-works",onClick:ie,"data-amp-track-surface":"landing","data-amp-track-action":"view_section","data-amp-track-target":"how_it_works","data-amp-track-placement":"hero",children:["See how it works",e.jsx(N,{className:"transition-transform duration-fast ease-
1out group-hover:translate-x-1"})]})})]})]}),e.jsx("div",{children:e.jsx(Je,{initialStats:t})})]})})}function Ze({companies:t,feed:s=null,stats:a=null,renderedAt:n}){oe();const i=ze(t);return e.jsxs("div",{className:"landing-home bg-surface text-text min-h-svh",children:[e.jsx(le,{}),e.jsx(Xe,{stats:a}),e.jsx(Ue,{initialItems:s,renderedAt:n}),e.jsx(ke,{}),e.jsx(je,{}),e.jsx(we,{}),e.jsx(ce,{browseLinks:!0,companies:i})]})}function K(t){return new URLSearchParams(t).get("_landing")==="1"}function Qe(t,s){return K(t)||!s?null:`${E}${t}`}function et(){const t=de(),s=ue({select:a=>a.searchStr});l.useEffect(()=>{const a=s??"";if(K(a))return;let n=!1;return(async()=>{const i=await me();if(n)return;const o=Qe(a,i.session);if(o){if(U){window.location.replace(v(o));return}t({to:E,search:!0,replace:!0})}})(),()=>{n=!0}},[t,s])}const tt=new Map;function ot(){tt.clear()}function lt(){const t=xe.useLoaderData();return et(),U?e.jsx(Ze,{companies:t?.companies??void 0,feed:t?.feed??null,stats:t?.stats??null,renderedAt:t?.renderedAt}):e.jsx(st,{})}function st(){return e.jsx("div",{className:"flex min-h-svh items-center justify-center p-6",children:e.jsxs("p",{className:"text-text-muted text-sm",children:["Taking you to your internship searchâ¦"," ",e.jsx(R,{className:"underline",to:E,search:!0,"data-amp-track-surface":"landing","data-amp-track-action":"continue_to_app","data-amp-track-target":"home","data-amp-track-placement":"embed_fallback",children:"Continue"})]})})}export{ot as __resetHomeLiveWarnings,lt as component};
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.