PageSourceSearch

https://portal.medicalschoolhq.net/_next/static/chunks/app/club-re…?dpl=dpl_KyD5GXdkYcjEpaQBuv3BPKKzh4H7

js medicalschoolhq.net collected 2026-09-24 19:22:14 UTC 19,237 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3643],{32559:function(e,t,a){Promise.resolve().then(a.t.bind(a,65878,23)),Promise.resolve().then(a.bind(a,73722))},25523:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return n}});let n=a(47043)._(a(2265)).default.createContext(null)},73722:function(e,t,a){"use strict";a.d(t,{default:function(){return d}});var n=a(57437),r=a(2265),l=a(93881),s=a(91174);let o=[{value:"America/New_York",label:"Eastern"},{value:"America/Chicago",label:"Central"},{value:"America/Denver",label:"Mountain"},{value:"America/Phoenix",label:"Arizona"},{value:"America/Los_Angeles",label:"Pacific"},{value:"America/Anchorage",label:"Alaska"},{value:"Pacific/Honolulu",label:"Hawaii"}],i="block text-sm font-medium text-gray-900",c="mt-1 block w-full rounded-md border border-gray-300 px-3 py-2 text-gray-900 shadow-sm focus:border-[#3765E2] focus:outline-none focus:ring-1 focus:ring-[#3765E2]";function d(){let e=(0,r.useRef)(null),[t,a]=(0,r.useState)(!1),[d,u]=(0,r.useState)(null),[m,h]=(0,r.useState)(!1),[p,f]=(0,r.useState)(""),[b,x]=(0,r.useState)("virtual"),[g,y]=(0,r.useState)(""),[v,j]=(0,r.useState)({state:"idle"}),[_,N]=(0,r.useState)(!1);(0,r.useEffect)(()=>{var e;let t=null===(e=/^\d{5}$/.exec(g.trim()))||void 0===e?void 0:e[0];if(!t||!p){j({state:"idle"});return}j({state:"checking"});let a=!0,n=setTimeout(async()=>{try{let e=await fetch("/api/public/club-in-person-coverage?zip=".concat(t,"&topic_kind=").concat(p)),n=await e.json();if(!a)return;j(e.ok&&!0===n.inPerson?{state:"available",zip:t}:{state:"unavailable",zip:t})}catch(e){a&&j({state:"unavailable",zip:t})}},400);return()=>{a=!1,clearTimeout(n)}},[g,p]);let w="available"===v.state;(0,r.useEffect)(()=>{w||x("virtual")},[w]);let k="unavailable"===v.state;(0,r.useEffect)(()=>{k||N(!1)},[k]);let S=w&&"in_person"===b?"in_person":_?"in_person":"virtual";async function C(n){if(n.preventDefault(),!t){u(null),a(!0);try{var r,l;let t=await fetch("/api/public/club-speaker-requests",{method:"POST",body:new FormData(n.currentTarget)}),a=await t.json();t.ok?(h(!0),null===(l=e.current)||void 0===l||l.reset(),f(""),x("virtual"),y(""),j({state:"idle"}),N(!1)):u(null!==(r=a.error)&&void 0!==r?r:"HTTP ".concat(t.status))}catch(e){u(e instanceof Error?e.message:String(e))}finally{a(!1)}}}return m?(0,n.jsxs)("div",{className:"rounded-lg border border-green-200 bg-green-50 p-6 text-green-900",children:[(0,n.jsx)("h2",{className:"text-xl font-semibold",children:"Got it — your request is in."}),(0,n.jsx)("p",{className:"mt-2 text-sm",children:"We're checking with the people on call for that week now. You'll hear back by email either way, usually within a few days. Once someone accepts, we'll introduce you to them directly so you can sort out the meeting link."}),(0,n.jsx)("button",{type:"button",onClick:()=>h(!1),className:"mt-4 text-sm font-medium underline",children:"Submit another request"})]}):(0,n.jsxs)("form",{ref:e,onSubmit:C,className:"space-y-8",children:[(0,n.jsxs)("div",{"aria-hidden":"true",className:"absolute -left-[9999px] h-0 w-0 overflow-hidden",children:[(0,n.jsxs)("label",{children:["Company",(0,n.jsx)("input",{type:"text",name:"hp_company",tabIndex:-1,autoComplete:"off"})]}),(0,n.jsxs)("label",{children:["Website",(0,n.jsx)("input",{type:"text",name:"hp_url",tabIndex:-1,autoComplete:"off"})]}),(0,n.jsxs)("label",{children:["Phone",(0,n.jsx)("input",{type:"text",name:"hp_phone_alt",tabIndex:-1,autoComplete:"off"})]})]}),(0,n.jsxs)("fieldset",{className:"rounded-lg border border-gray-200 bg-white p-5",children:[(0,n.jsx)("legend",{className:"px-2 text-base font-semibold text-gray-900",children:"What kind of talk?"}),(0,n.jsx)("div",{className:"mt-2 space-y-3",children:s.DD.map(e=>(0,n.jsxs)("label",{className:"flex cursor-pointer items-start gap-3 rounded-md border p-3 ".concat(p===e?"border-[#3765E2] bg-blue-50":"border-gray-200 hover:border-gray-300"),children:[(0,n.jsx)("input",{type:"radio",name:"topic_kind",value:e,required:!0,checked:p===e,onChange:()=>f(e),className:"mt-1 shrink-0"}),(0,n.jsxs)("span",{className:"min-w-0",children:[(0,n.jsx)("span",{className:"block font-medium text-gray-900",children:(0,s.VB)(e)}),(0,n.jsx)("span",{className:"block text-sm text-gray-600",children:(0,s.VQ)(e)})]})]},e))}),(0,n.jsx)("p",{className:"mt-3 text-sm text-gray-600",children:"Want more than one? Each one needs its own request — they're staffed by different people, and we may be able to cover one but not the other."})]}),(0,n.jsxs)("fieldset",{className:"rounded-lg border border-gray-200 bg-white p-5",children:[(0,n.jsx)("legend",{className:"px-2 text-base font-semibold text-gray-900",children:"Your club"}),(0,n.jsxs)("div",{className:"mt-2 grid gap-4 sm:grid-cols-2",children:[(0,n.jsxs)("div",{className:"sm:col-span-2",children:[(0,n.jsx)("label",{className:i,htmlFor:"organization_name",children:"Club or organization name *"}),(0,n.jsx)("input",{id:"organization_name",name:"organization_name",required:!0,className:c})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{className:i,htmlFor:"school_name",children:"School or university *"}),(0,n.jsx)("input",{id:"school_name",name:"school_name",required:!0,className:c})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{className:i,htmlFor:"school_zip",children:"School zip code *"}),(0,n.jsx)("input",{id:"school_zip",name:"school_zip",required:!0,inputMode:"numeric",autoComplete:"postal-code",maxLength:5,pattern:"\\d{5}",placeholder:"02115",value:g,onChange:e=>y(e.target.value.replace(/[^\d]/g,"").slice(0,5)),className:c}),(0,n.jsx)("p",{className:"mt-1 text-sm text-gray-600",children:"So we can tell whether any of our speakers is close enough to come to you."})]}),(0,n.jsxs)("div",{className:"sm:col-span-2",children:[(0,n.jsx)("label",{className:i,htmlFor:"website",children:"Club website or social link"}),(0,n.jsx)("input",{id:"website",name:"website",className:c})]})]})]}),(0,n.jsxs)("fieldset",{className:"rounded-lg border border-gray-200 bg-white p-5",children:[(0,n.jsx)("legend",{className:"px-2 text-base font-semibold text-gray-900",children:"Who should we talk to?"}),(0,n.jsxs)("div",{className:"mt-2 grid gap-4 sm:grid-cols-2",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{className:i,htmlFor:"contact_first_name",children:"First name *"}),(0,n.jsx)("input",{id:"contact_first_name",name:"contact_first_name",required:!0,className:c})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{className:i,htmlFor:"contact_last_name",children:"Last name *"}),(0,n.jsx)("input",{id:"contact_last_name",name:"contact_last_name",required:!0,className:c})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{className:i,htmlFor:"contact_email",children:"Email *"}),(0,n.jsx)("input",{id:"contact_email",name:"contact_email",type:"email",required:!0,className:c})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{className:i,htmlFor:"contact_phone",children:"Phone"}),(0,n.jsx)("input",{id:"contact_phone",name:"contact_phone",className:c})]}),(0,n.jsxs)("div",{className:"sm:col-span-2",children:[(0,n.jsx)("label",{className:i,htmlFor:"contact_role",children:"Your role in the club"}),(0,n.jsx)("input",{id:"contact_role",name:"contact_role",placeholder:"President, events chair, faculty advisor…",className:c})]})]})]}),(0,n.jsxs)("fieldset",{className:"rounded-lg border border-gray-200 bg-white p-5",children:[(0,n.jsx)("legend",{className:"px-2 text-base font-semibold text-gray-900",children:"When is it?"}),(0,n.jsx)("p",{className:"mt-1 text-sm text-gray-600",children:"Give us the date and time of your meeting and we'll work around it. The more notice the better — but if it's soon, still ask. We'll tell you quickly either way."}),(0,n.jsxs)("div",{className:"mt-3 grid gap-4 sm:grid-cols-2",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{className:i,htmlFor:"event_date",children:"Date *"}),(0,n.jsx)("input",{id:"event_date",name:"event_date",type:"date",required:!0,min:function(){let e=new Date;return"".concat(e.getFullYear(),"-").concat(String(e.getMonth()+1).padStart(2,"0"),"-").concat(String(e.getDate()).padStart(2,"0"))}(),className:c})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{className:i,htmlFor:"event_start_time",children:"Start time *"}),(0,n.jsx)(l.ZP,{id:"event_start_time",name:"event_start_time",required:!0,className:c,placeholder:"Pick a time"})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{className:i,htmlFor:"event_timezone",children:"Time zone *"}
1),(0,n.jsx)("select",{id:"event_timezone",name:"event_timezone",required:!0,defaultValue:function(){try{let e=Intl.DateTimeFormat().resolvedOptions().timeZone;return o.some(t=>t.value===e)?e:"America/New_York"}catch(e){return"America/New_York"}}(),className:c,children:o.map(e=>(0,n.jsx)("option",{value:e.value,children:e.label},e.value))})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{className:i,htmlFor:"duration_minutes",children:"How long? *"}),(0,n.jsx)("select",{id:"duration_minutes",name:"duration_minutes",required:!0,defaultValue:s.vT,className:c,children:s.qz.map(e=>(0,n.jsxs)("option",{value:e,children:[e," minutes"]},e))})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{className:i,htmlFor:"format",children:"Format *"}),(0,n.jsx)("input",{type:"hidden",name:"format",value:S}),(0,n.jsxs)("select",{id:"format",required:!0,value:b,onChange:e=>x("in_person"===e.target.value?"in_person":"virtual"),className:c,children:[(0,n.jsx)("option",{value:"virtual",children:"Virtual — we join your meeting"}),(0,n.jsx)("option",{value:"in_person",disabled:!w,children:w?"In person — someone can come to you":"In person — very unlikely, see below"})]}),(0,n.jsx)("p",{className:"mt-1 text-sm ".concat(w?"font-medium text-green-800":"text-gray-600"),children:"checking"===v.state?"Checking whether any of our speakers is near you…":"available"===v.state?"Good news — we have a speaker near you, so in person is on the table. It still depends on who's free that week.":"unavailable"===v.state?"Our speakers are spread across the country and none of them is close to ".concat(v.zip,", so this one would be over video. In person is very unlikely outside the handful of areas we cover."):"In person is very unlikely — our speakers are spread across the country. Add your school's zip code above and we'll tell you either way."}),k&&(0,n.jsxs)("div",{className:"mt-3 rounded-md border border-gray-200 bg-gray-50 p-4",children:[(0,n.jsxs)("label",{className:"flex cursor-pointer items-start gap-2 text-sm text-gray-900",children:[(0,n.jsx)("input",{type:"checkbox",name:"travel_request",value:"yes",checked:_,onChange:e=>N(e.target.checked),className:"mt-0.5 h-4 w-4 rounded border-gray-300 text-[#3765E2] focus:ring-[#3765E2]"}),(0,n.jsx)("span",{children:"We'd still like to ask for someone in person — it's a big event, or we can help with travel."})]}),_&&(0,n.jsxs)("div",{className:"mt-3",children:[(0,n.jsx)("label",{className:i,htmlFor:"travel_request_note",children:"What makes the trip worth it? *"}),(0,n.jsx)("textarea",{id:"travel_request_note",name:"travel_request_note",rows:3,required:!0,placeholder:"How many students you expect, whether you can cover travel or offer an honorarium, how flexible the date is…",className:c}),(0,n.jsx)("p",{className:"mt-1 text-sm text-gray-600",children:"This one goes to a real person rather than our usual scheduling — we'll look at it by hand and come back to you either way. It may take a little longer than a normal request."})]})]})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{className:i,htmlFor:"expected_attendees",children:"Roughly how many people?"}),(0,n.jsx)("input",{id:"expected_attendees",name:"expected_attendees",type:"number",min:1,className:c})]}),"in_person"===S&&(0,n.jsxs)("div",{className:"sm:col-span-2 rounded-md border border-gray-200 bg-gray-50 p-4",children:[(0,n.jsx)("p",{className:i,children:"If nobody can travel, would a video call work instead? *"}),(0,n.jsx)("p",{className:"mt-1 text-sm text-gray-600",children:w?"Someone is close enough to come to you, but they still have to be free that day. Saying yes here means we can send a different speaker over video rather than turning the talk down.":"Nobody is close to you, so the trip is a real ask and it may not come off. Saying yes here means we can still give the talk over video rather than leaving you with nothing."}),(0,n.jsx)("div",{className:"mt-3 space-y-2",children:[{value:"yes",label:"Yes — we'd rather have a speaker over video than none"},{value:"no",label:"No — this only works in person"}].map(e=>(0,n.jsxs)("label",{className:"flex cursor-pointer items-start gap-2 text-sm text-gray-900",children:[(0,n.jsx)("input",{type:"radio",name:"virtual_ok",value:e.value,required:!0,className:"mt-0.5 h-4 w-4 border-gray-300 text-[#3765E2] focus:ring-[#3765E2]"}),(0,n.jsx)("span",{children:e.label})]},e.value))})]})]})]}),(0,n.jsxs)("fieldset",{className:"rounded-lg border border-gray-200 bg-white p-5",children:[(0,n.jsx)("legend",{className:"px-2 text-base font-semibold text-gray-900",children:"What would you like covered?"}),(0,n.jsxs)("div",{className:"mt-2 space-y-4",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{className:i,htmlFor:"topic",children:"Topic"}),(0,n.jsx)("input",{id:"topic",name:"topic",placeholder:"Building a school list, MCAT study planning, interview prep…",className:c})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{className:i,htmlFor:"notes",children:"Anything else we should know?"}),(0,n.jsx)("textarea",{id:"notes",name:"notes",rows:4,className:c})]})]})]}),d&&(0,n.jsx)("div",{className:"rounded-md border border-red-300 bg-red-50 p-3 text-sm text-red-800",children:d}),(0,n.jsx)("button",{type:"submit",disabled:t,className:"w-full rounded-md bg-[#3765E2] px-4 py-3 font-semibold text-white hover:bg-[#2b52bd] disabled:opacity-60 sm:w-auto",children:t?"Sending…":"Request a speaker"})]})}},93881:function(e,t,a){"use strict";a.d(t,{ZP:function(){return s}});var n=a(57437),r=a(2265);
1function l(e){let[t,a]=e.split(":").map(Number);return 60*t+a}function s(e){let{id:t,name:a,value:s,defaultValue:o,onChange:i,required:c,disabled:d,className:u,stepMinutes:m=15,minTime:h="09:00",maxTime:p="21:00",placeholder:f="Select a time"}=e,b=(0,r.useMemo)(()=>{var e;let t=function(e,t,a){let n=[],r=l(a);for(let a=l(t);a<=r;a+=e){let e=Math.floor(a/60),t=a%60;n.push("".concat(String(e).padStart(2,"0"),":").concat(String(t).padStart(2,"0")))}return n}(m,h,p),a=(null!==(e=null!=s?s:o)&&void 0!==e?e:"").slice(0,5);return a&&!t.includes(a)&&(t.push(a),t.sort()),t},[m,h,p,s,o]);return(0,n.jsxs)("select",{id:t,name:a,value:s,defaultValue:void 0===s?o:void 0,onChange:e=>null==i?void 0:i(e.target.value),required:c,disabled:d,className:u,children:[(0,n.jsx)("option",{value:"",children:f}),b.map(e=>(0,n.jsx)("option",{value:e,children:function(e){let[t,a]=e.split(":").map(Number);return"".concat(t%12==0?12:t%12,":").concat(String(a).padStart(2,"0")," ").concat(t<12?"AM":"PM")}(e)},e))]})}},91174:function(e,t,a){"use strict";a.d(t,{DD:function(){return n},Fs:function(){return S},L5:function(){return p},Pi:function(){return N},UA:function(){return x},VB:function(){return i},VQ:function(){return c},WS:function(){return A},Zr:function(){return v},_c:function(){return w},b5:function(){return u},bP:function(){return b},bh:function(){return q},cW:function(){return f},hz:function(){return m},i3:function(){return C},js:function(){return y},lz:function(){return k},mP:function(){return o},qz:function(){return j},tU:function(){return h},vT:function(){return _}});let n=["general_premed","application_cycle","mcat_prep"],r={general_premed:"Premed years",application_cycle:"Application cycle",mcat_prep:"MCAT prep"},l={general_premed:"The premed years",application_cycle:"Applying to medical school",mcat_prep:"MCAT prep"},s={general_premed:"Course selection, extracurriculars, clinical and research experience, choosing a major, building a strong application over time — led by one of our advisors.",application_cycle:"Application timeline, personal statements, school lists, secondaries, interviews, gap years — led by one of our advisors.",mcat_prep:"Study planning, content review strategy, practice tests, score goals — led by one of our MCAT faculty."};function o(e){return r[e]}function i(e){return l[e]}function c(e){return s[e]}let d={advising:"Advising",mcat_prep:"MCAT prep"};function u(e){return d[e]}function m(e){var t;return null!==(t=e.requested_format)&&void 0!==t?t:e.format}function h(e){return"in_person"===m(e)&&!0===e.virtual_ok}function p(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t?"in_person"===m(e)&&"virtual"===e.format?"Virtual (they asked for in person)":"in_person"===e.format?"In person":"Virtual":h(e)?"In person — or virtual, if nobody can travel":"in_person"===m(e)?!1===e.virtual_ok?"In person only":"In person":"Virtual"}let f={pending:"Not yet offered",offered:"Awaiting response",confirmed:"Confirmed",needs_admin:"Needs you",declined:"Declined",canceled:"Canceled"},b={pending:"bg-gray-100 text-gray-700",offered:"bg-blue-100 text-blue-800",confirmed:"bg-green-100 text-green-800",needs_admin:"bg-amber-100 text-amber-900",declined:"bg-gray-100 text-gray-600",canceled:"bg-gray-100 text-gray-600"},x=["introEmail","calendarHold","logisticsCalendar","logisticsNotify"],g={introEmail:"Intro email to the club",calendarHold:"Calendar hold",logisticsCalendar:"Meeting details onto the calendar",logisticsNotify:"Meeting details emailed on"};function y(e){return g[e]}let v=7,j=[15,30,45,60],_=60,N=[0,15,30,45,60];function w(e){return e>0?"".concat(e," min"):"None"}function k(e){return e.before||e.after?e.before&&e.after?e.before===e.after?"".concat(e.before," min held either side of a talk."):"".concat(e.before," min held before a talk, ").concat(e.after," min after."):e.before?"".concat(e.before," min held before a talk."):"".concat(e.after," min held after a talk."):"No transition time held."}let S={yes:"Yes, they plan to record",no:"No recording",unsure:"They're not sure yet"};function C(e){return"yes"===e||"no"===e||"unsure"===e}let q=["Zoom","Google Meet","Microsoft Teams","Webex"],A=[{key:"platform",label:"Platform",formats:["virtual"]},{key:"meetingId",label:"Meeting ID",formats:["virtual"]},{key:"passcode",label:"Passcode",formats:["virtual"]},{key:"dialIn",label:"Dial-in number",formats:["virtual"]},{key:"roomDetails",label:"Building and room",formats:["in_person"]},{key:"parking",label:"Parking and getting in",formats:["in_person"],multiline:!0},{key:"onsiteContactName",label:"Day-of contact",formats:["virtual","in_person"]},{key:"onsiteContactPhone",label:"Their phone number",formats:["virtual","in_person"]},{key:"runOfShow",label:"How the meeting runs",formats:["virtual","in_person"],multiline:!0},{key:"avNotes",label:"Screen share and A/V",formats:["virtual","in_person"],multiline:!0},{key:"recording",label:"Recording",formats:["virtual","in_person"]},{key:"anythingElse",label:"Anything else",formats:["virtual","in_person"],multiline:!0}]}},function(e){e.O(0,[5878,2971,2117,1744],function(){return e(e.s=32559)}),_N_E=e.O()}]);

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.