1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,51793,e=>{"use strict";var t=e.i(31837),a=e.i(4955);e.s(["default",0,function({faq:e}){return(0,t.jsx)("ul",{className:"max-w-[68ch] mx-auto divide-y divide-rule",children:e.map(e=>(0,t.jsx)("li",{id:`faq-${e.id}`,children:(0,t.jsxs)("details",{className:"group py-5",onToggle:t=>{var r;return r=e.id,void(t.currentTarget.open&&(0,a.trackEvent)(a.EVENTS.faqExpand,{label:r}))},children:[(0,t.jsxs)("summary",{className:"flex items-baseline gap-6 cursor-pointer list-none",children:[(0,t.jsx)("span",{className:"text-foreground text-base font-normal leading-snug flex-1",children:e.question}),(0,t.jsx)("span",{"aria-hidden":!0,className:"text-muted text-lg",children:"+"})]}),(0,t.jsx)("p",{className:"mt-3 text-[15px] text-foreground-soft leading-normal",children:e.answer})]})},e.id))})}])},70306,e=>{"use strict";var t=e.i(31837),a=e.i(70522),r=e.i(68556),s=e.i(4955);function n({label:e,caption:r,src:s,variant:l}){if(s){let e="without"===l;return(0,t.jsxs)("div",{className:"relative w-full aspect-4/3 rounded-lg overflow-hidden bg-background-warm",children:[(0,t.jsx)("video",{src:s,"aria-label":r,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,className:`absolute inset-0 h-full w-full object-cover ${e?"grayscale brightness-75":""}`}),l&&(0,t.jsx)("div",{className:"absolute left-2.5 top-2.5 z-10 flex items-center gap-1 rounded-full bg-foreground px-2.5 py-1 text-xs font-medium text-background",children:e?"Without":(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{children:"With"}),(0,t.jsx)(a.default,{src:"/logo_white.png",alt:"Standard Form",width:3508,height:625,className:"h-3 w-auto"})]})})]})}return(0,t.jsxs)("div",{className:"bg-background border border-dashed border-rule rounded-lg flex flex-col justify-end p-5 min-h-[260px] lg:min-h-[70vh]",children:[(0,t.jsx)("p",{className:"text-sm text-muted",children:"Placeholder"}),(0,t.jsx)("p",{className:"mt-1 text-sm text-foreground-soft leading-snug max-w-[42ch]",children:r}),(0,t.jsxs)("p",{className:"mt-3 text-sm text-muted font-mono",children:["[",e,"]"]})]})}e.s(["default",0,function({steps:e}){let[a,l]=(0,r.useState)(0),o=(0,r.useRef)([]);return(0,r.useEffect)(()=>{let e=0;function t(){e=0;let t=.35*window.innerHeight,a=0;for(let e=0;e<o.current.length;e++){let r=o.current[e];if(r)if(r.getBoundingClientRect().top<=t)a=e;else break}l(e=>e===a?e:a)}function a(){e||(e=requestAnimationFrame(t))}return t(),window.addEventListener("scroll",a,{passive:!0}),window.addEventListener("resize",a),()=>{e&&cancelAnimationFrame(e),window.removeEventListener("scroll",a),window.removeEventListener("resize",a)}},[e.length]),(0,t.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-[260px_1fr] gap-x-10",children:[(0,t.jsx)("aside",{className:"hidden lg:block lg:sticky lg:top-[32vh] lg:self-start",children:(0,t.jsx)("ul",{className:"flex lg:flex-col gap-1 overflow-x-auto lg:overflow-visible",children:e.map((e,r)=>(0,t.jsx)("li",{className:"flex-shrink-0 lg:flex-shrink",children:(0,t.jsx)("button",{type:"button",onClick:()=>{(0,s.trackEvent)(s.EVENTS.howItWorksTab,{label:e.eyebrow}),o.current[r]?.scrollIntoView({behavior:"smooth",block:"start"})},className:`w-full text-left px-3 py-2 text-sm rounded-md whitespace-nowrap lg:whitespace-normal transition-colors ${r===a?"bg-foreground text-background font-medium":"text-muted hover:text-foreground-soft"}`,children:e.eyebrow})},e.eyebrow))})}),(0,t.jsx)("div",{className:"space-y-6 scroll-mt-24",children:e.map((e,a)=>(0,t.jsxs)("article",{ref:e=>{o.current[a]=e},className:"bg-background-warm rounded-2xl p-4 scroll-mt-24 flex flex-col gap-6 lg:gap-8",children:[(0,t.jsxs)("div",{className:"max-w-[60ch]",children:[(0,t.jsx)("p",{className:"text-sm text-muted mb-3 lg:hidden",children:e.eyebrow}),(0,t.jsx)("h3",{className:"text-[clamp(22px,1.8vw,22px)] font-normal tracking-[-0.005em] leading-tight text-foreground",children:e.heading}),(0,t.jsx)("p",{className:"mt-3 text-base text-foreground-soft leading-[1.5]",children:e.body}),(0,t.jsxs)("a",{href:e.learnMoreUrl??"#",target:"_blank",rel:"noreferrer",onClick:()=>(0,s.trackEvent)(s.EVENTS.learnMore,{label:e.eyebrow,href:e.learnMoreUrl}),className:"mt-4 inline-flex items-center gap-1.5 text-sm text-accent hover:text-[#dc5019]",children:["Learn more",(0,t.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,
1children:[(0,t.jsx)("path",{d:"M5 12h14"}),(0,t.jsx)("path",{d:"M13 6l6 6-6 6"})]})]})]}),(0,t.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4 flex-1",children:[(0,t.jsx)(n,{label:e.illustrationTop.label,caption:e.illustrationTop.caption,src:e.illustrationTop.src,variant:e.illustrationTop.variant}),(0,t.jsx)(n,{label:e.illustrationBottom.label,caption:e.illustrationBottom.caption,src:e.illustrationBottom.src,variant:e.illustrationBottom.variant})]})]},e.eyebrow))})]})}])},21931,e=>{"use strict";var t=e.i(31837),a=e.i(68556);let r={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none"},s=(0,a.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:s,absoluteStrokeWidth:n=!1,className:l="",altIcon:o,showAlt:i=!1,icon:d,primaryColor:c,secondaryColor:u,disableSecondaryOpacity:m=!1,...h},x)=>{let g=void 0!==s?n?24*Number(s)/Number(t):s:void 0,p=void 0!==g?{strokeWidth:g,stroke:"currentColor"}:{},f={ref:x,...r,width:t,height:t,color:c||e,className:l,...p,...h},b=[...i&&o?o:d].sort(([,e],[,t])=>{let a=void 0!==e.opacity;return void 0!==t.opacity?1:a?-1:0}).map(([t,r])=>{let s=void 0!==r.opacity,n=s&&!m?r.opacity:void 0,l=u?{...void 0!==r.stroke?{stroke:s?u:c||e}:{fill:s?u:c||e}}:{};return(0,a.createElement)(t,{...r,...p,...l,opacity:n,key:r.key})});return(0,a.createElement)("svg",f,b)});s.displayName="HugeiconsIcon";let n=[["path",{d:"M4 21V18.9231C4 16.9221 4 15.9217 4.14533 15.0846C4.94529 10.4765 8.90656 6.86243 13.9574 6.13259C14.8749 6 16.8068 6 19 6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17 3C17.6068 3.58984 20 5.15973 20 6C20 6.84027 17.6068 8.41016 17 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],l=e=>(0,t.jsx)(s,{icon:n,...e});l.displayName="ArrowMoveUpRightIcon";var o=e.i(94434),i=e.i(4955);function d({label:e,valueLabel:a,min:r,max:s,step:n,value:l,onChange:o}){return(0,t.jsxs)("div",{className:"mb-5",children:[(0,t.jsxs)("div",{className:"flex justify-between items-baseline gap-3 mb-3",children:[(0,t.jsx)("span",{className:"text-sm font-medium text-foreground",children:e}),(0,t.jsx)("b",{className:"text-sm font-medium text-accent whitespace-nowrap",children:a})]}),(0,t.jsx)("input",{type:"range",min:r,max:s,step:n,value:l,onChange:e=>o(parseFloat(e.target.value)),className:"sf-slider","aria-label":e})]})}e.s(["default",0,function({ctaUrl:e=o.siteConfig.getStartedUrl,rate:r=25,defaults:s={buildPerYear:40,managePerMonth:20,chiefs:2},onEmailSubmit:n,acv:c=5e3,sf:u={buildPerYear:20,managePerMonth:4}}){let[m,h]=(0,a.useState)(s.buildPerYear),[x,g]=(0,a.useState)(s.managePerMonth),[p,f]=(0,a.useState)(s.chiefs),[b,v]=(0,a.useState)(r),[j,w]=(0,a.useState)(!1),[N,y]=(0,a.useState)(!1),[k,S]=(0,a.useState)(""),[E,C]=(0,a.useState)(!1),[M,T]=(0,a.useState)(!1),[L,$]=(0,a.useState)(!1),[P,R]=(0,a.useState)(!1),F=(0,a.useRef)(!1);function B(){F.current||(F.current=!0,(0,i.trackEvent)(i.EVENTS.roiCalculatorEngaged))}(0,a.useEffect)(()=>{let e=new URLSearchParams(window.location.search),t=(t,a)=>{let r=parseFloat(e.get(t)??"");isFinite(r)&&r>=0&&a(r)};t("b",h),t("m",g),t("c",f),t("r",v)},[]);let U=e=>isFinite(e)&&e>=0?e:0,V=Math.max(15,U(b)),W=(0,a.useMemo)(()=>{let e=(U(m)+12*U(x))*Math.max(1,U(p)),t=Math.max(0,e-(U(u.buildPerYear)+12*U(u.managePerMonth))),a=t*V,r=U(c)>0?(a-U(c))/U(c)*100:0;return{currentHrs:e,hoursSaved:t,grossSaved:a,roi:r}},[m,x,p,V,c,u]),A=W.roi<0,O=W.hoursSaved/40,H=O<1?O.toFixed(1):String(Math.round(O)),I=W.hoursSaved>0?`reclaimed â about ${H} full work week${1===Math.round(O)?"":"s"}`:"reclaimed",Y=`chief resident${1===U(p)?"":"s"}`;async function q(){let e;(0,i.trackEvent)(i.EVENTS.roiShare);let t=((e=new URL(window.location.href)).searchParams.set("b",String(m)),e.searchParams.set("m",String(x)),e.searchParams.set("c",String(p)),e.searchParams.set("r",String(b)),e.toString()),a=`Standard Form could give our program back ~${Math.round(W.hoursSaved).toLocaleString("en-US")} hours a year on residency scheduling â about ${H} work weeks.`;if("u">typeof navigator&&"share"in navigator)try{await navigator.share({title:"Standard Form ROI",text:a,url:t});return}catch{}try{await navigator.clipboard.writeText(`${a} ${t}`),y(!0),setTimeout(()=>y(!1),2200)}catch{}}async function z(){(0,i.trackEvent)(i.EVENTS.roiReportRequest);let e=k.trim();if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e))return void C(!0);C(!1),R(!1);let t={hoursSaved:Math.round(W.hoursSaved),valueReclaimed:Math.round(W.grossSaved),roi:Math.round(W.roi),inputs:{build:U(m),manage:U(x),chiefs:U(p),rate:V}};n?.({email:e,results:t}),$(!0);let a=await fetch("/api/cost-calculator/reports",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e,results:t}),keepalive:!0}
1).catch(()=>null);($(!1),a&&a.ok)?((0,i.trackEvent)(i.EVENTS.roiReportSent),T(!0)):R(!0)}return(0,t.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-[1.05fr_.95fr] gap-4",children:[(0,t.jsxs)("div",{className:"bg-background-warm rounded-xl p-5 sm:p-6 lg:p-8",children:[(0,t.jsx)(d,{label:"Hours to build the initial schedule",valueLabel:`${U(m)} hrs / yr`,min:0,max:300,step:5,value:m,onChange:e=>{B(),h(e)}}),(0,t.jsx)(d,{label:"Hours to manage it each month",valueLabel:`${U(x)} hrs / mo`,min:0,max:60,step:1,value:x,onChange:e=>{B(),g(e)}}),(0,t.jsx)(d,{label:"Chief residents building the schedule",valueLabel:`${U(p)} ${Y}`,min:1,max:8,step:1,value:p,onChange:e=>{B(),f(e)}}),(0,t.jsx)(d,{label:"Chief's hourly rate",valueLabel:`$${V} / hr`,min:15,max:200,step:5,value:V,onChange:e=>{B(),v(e)}}),(0,t.jsxs)("p",{className:"mt-2 text-sm text-foreground-soft leading-[1.7] bg-surface rounded-lg p-4",children:["Across"," ",(0,t.jsxs)("b",{className:"text-foreground",children:[U(p)," ",Y]})," ","at ",(0,t.jsxs)("b",{className:"text-foreground",children:["$",V,"/hr"]})," â about"," ",(0,t.jsxs)("b",{className:"text-foreground",children:[U(W.currentHrs).toLocaleString("en-US")," hrs"]})," ","a year on scheduling today."]})]}),(0,t.jsxs)("div",{className:"bg-surface rounded-xl p-5 sm:p-6 lg:p-8 flex flex-col",children:[(0,t.jsx)("p",{className:"text-[11px] text-muted mb-5",children:"Your program, per year"}),(0,t.jsxs)("div",{className:"mb-4",children:[(0,t.jsxs)("div",{className:"text-[clamp(36px,5vw,56px)] font-medium tracking-[-0.02em] leading-[0.95] text-foreground",children:[Math.round(W.hoursSaved).toLocaleString("en-US")," hrs"]}),(0,t.jsx)("div",{className:"mt-2 text-sm text-foreground-soft",children:I})]}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-4 pt-5",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"text-[clamp(20px,2.6vw,28px)] font-medium tracking-[-0.005em] leading-none text-foreground",children:"$"+Math.round(Math.abs(W.grossSaved)).toLocaleString("en-US")}),(0,t.jsx)("div",{className:"mt-2 text-xs text-muted leading-[1.4] max-w-[20ch]",children:"Value of time reclaimed per year"})]}),A?(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"text-[clamp(20px,2.6vw,28px)] font-medium tracking-[-0.005em] leading-none text-foreground",children:["~",H," wks"]}),(0,t.jsx)("div",{className:"mt-2 text-xs text-muted leading-[1.4] max-w-[20ch]",children:"Off the spreadsheet, every year"})]}):(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"text-[clamp(20px,2.6vw,28px)] font-medium tracking-[-0.005em] leading-none text-foreground",children:[Math.round(W.roi).toLocaleString("en-US"),"%"]}),(0,t.jsx)("div",{className:"mt-2 text-xs text-muted leading-[1.4] max-w-[20ch]",children:"Return on investment"})]})]}),A&&W.hoursSaved>0&&(0,t.jsxs)("p",{className:"mt-5 text-sm text-foreground-soft leading-[1.6] border-l-2 border-accent pl-4",children:[(0,t.jsx)("b",{className:"text-foreground",children:"The hours are the real return."})," ","At $",V,"/hr the dollar math is close â and thatâs before ACGME compliance, coverage risk, and burnout. Most programs value a chiefâs hour higher."]}),(0,t.jsxs)("a",{href:e,onClick:()=>(0,i.trackEvent)(i.EVENTS.ctaBuildSchedule),className:"mt-6 self-start inline-flex items-center gap-2 bg-accent text-white px-7 py-3 text-base font-medium rounded-full hover:bg-[#dc5019]",children:["Build my free schedule",(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[(0,t.jsx)("path",{d:"M5 12h14"}),(0,t.jsx)("path",{d:"M13 6l6 6-6 6"})]})]}),M?(0,t.jsxs)("div",{className:"mt-5 border border-rule bg-background rounded-lg p-4 text-sm",children:[(0,t.jsx)("span",{"aria-hidden":!0,className:"text-accent mr-1.5",children:"â"}),"Your report is on its way to"," ",(0,t.jsx)("b",{className:"text-foreground",children:k}),"."]}):(0,t.jsxs)("div",{className:"mt-5",children:[(0,t.jsx)("p",{className:"text-xs text-muted mb-2",children:"Or get the full breakdown by email"}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)("input",{type:"email",placeholder:"[email protected]",value:k,onChange:e=>{S(e.target.value),E&&C(!1)},onKeyDown:e=>"Enter"===e.key&&z(),"aria-label":"Work email",className:"flex-1 min-w-0 border border-rule bg-background text-foreground text-sm px-3 py-2 rounded-full focus:outline-none focus:border-foreground placeholder:text-muted"}),(0,t.jsx)("button",{type:"button",onClick:z,disabled:L,className:"bg-foreground text-background text-sm font-medium px-4 py-2 rounded-full hover:bg-foreground
1/85 whitespace-nowrap disabled:opacity-60",children:L?"Sendingâ¦":"Send report"})]}),E&&(0,t.jsx)("p",{className:"mt-2 text-[11px] text-accent",children:"Please enter a valid work email."}),P&&(0,t.jsx)("p",{className:"mt-2 text-[11px] text-accent",children:"Couldn't send just now â please try again."})]})]}),(0,t.jsxs)("div",{className:"lg:col-span-2 flex justify-between items-center gap-4 flex-wrap pt-2",children:[(0,t.jsx)("button",{type:"button","aria-expanded":j,onClick:()=>{(0,i.trackEvent)(i.EVENTS.roiExplainToggle,{label:j?"close":"open"}),w(e=>!e)},className:"text-sm font-medium text-muted hover:text-foreground py-2",children:j?"â Hide explanation":"? Explain ROI calculator"}),(0,t.jsx)("button",{type:"button",onClick:q,className:"inline-flex items-center gap-1 text-sm font-medium text-accent hover:text-[#dc5019] py-2",children:N?"â Link copied":(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l,{size:16}),"Share"]})})]}),j&&(0,t.jsxs)("div",{className:"lg:col-span-2 bg-background-warm rounded-xl p-5 sm:p-6 lg:p-8 text-sm text-foreground-soft leading-[1.7]",children:[(0,t.jsx)("h4",{className:"text-xl font-medium text-foreground tracking-tight mb-4",children:"How this calculator works"}),(0,t.jsx)("p",{className:"mb-3",children:"Today, your chief residents build the schedule by hand and then keep it alive all year. This tool adds up that time:"}),(0,t.jsxs)("ul",{className:"mb-3 pl-5 list-disc",children:[(0,t.jsxs)("li",{className:"mb-1.5",children:[(0,t.jsx)("b",{className:"text-foreground",children:"Build time"})," â the initial hours it takes to build your block schedule and your call schedule."]}),(0,t.jsxs)("li",{className:"mb-1.5",children:[(0,t.jsx)("b",{className:"text-foreground",children:"Management time"})," â the hours spent maintaining it each month: swaps, maternity and paternity leave, leaves of absence, and everything else that moves."]})]}),(0,t.jsxs)("p",{className:"mb-3",children:["We multiply that by the"," ",(0,t.jsx)("b",{className:"text-foreground",children:"number of chief residents"})," doing the work and by their ",(0,t.jsx)("b",{className:"text-foreground",children:"hourly time"})," ","â the real value of the hours your program pours into scheduling."]}),(0,t.jsxs)("p",{className:"mb-3",children:["Standard Form does the heavy lifting â the build and most of the upkeep â so only a small fraction of that time is left for your team. The ",(0,t.jsx)("b",{className:"text-foreground",children:"hours"})," and"," ",(0,t.jsx)("b",{className:"text-foreground",children:"dollar value"})," shown above are what you get back."]}),(0,t.jsxs)("p",{className:"mb-4",children:[(0,t.jsx)("b",{className:"text-foreground",children:"Return on investment"})," compares the value of that reclaimed time against the cost of Standard Form. A result of 100% means you get back about twice what you put in."]}),(0,t.jsx)("p",{className:"text-xs text-muted border-t border-dashed border-rule pt-3",children:"This is only an estimate â your schedule never stops changing. Weâre more than happy to put together a sharper calculation if you reach out, or you can just build your schedule for free."})]})]})}],21931)}]);
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.