PageSourceSearch

https://scrubsociety.com/_next/static/chunks/96194-82fd05b76939657a.js

js scrubsociety.com collected 2026-10-09 05:02:46 UTC 49,510 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[96194],{2138:(e,t,r)=>{r.d(t,{d:()=>a});class a extends Error{constructor(e){super(e.message),this.name="EditorialRequestError",this.kind=e.kind,this.status=e.status,this.cause=e.cause}}},5551:(e,t,r)=>{r.d(t,{Fc:()=>l,TN:()=>c,XL:()=>s});var a=r(7724);r(2272);var n=r(17145),o=r(49566);let i=(0,n.F)("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-[color:var(--ss-foundation-background-color-surface)] text-[color:var(--ss-foundation-text-color-primary)]",destructive:"text-destructive bg-[color:var(--ss-foundation-background-color-surface)] [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90"}},defaultVariants:{variant:"default"}});function l(e){let{className:t,variant:r,...n}=e;return(0,a.jsx)("div",{"data-slot":"alert",role:"alert",className:(0,o.cn)(i({variant:r}),t),...n})}function s(e){let{className:t,...r}=e;return(0,a.jsx)("div",{"data-slot":"alert-title",className:(0,o.cn)("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",t),...r})}function c(e){let{className:t,...r}=e;return(0,a.jsx)("div",{"data-slot":"alert-description",className:(0,o.cn)("text-[color:var(--ss-foundation-text-color-muted)] col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",t),...r})}},8614:(e,t,r)=>{r.d(t,{wJ:()=>p,yP:()=>x,_A:()=>g,f1:()=>n,E3:()=>a,z6:()=>c,Sw:()=>d,uu:()=>j,ir:()=>S,Xt:()=>f,I7:()=>k,Us:()=>L,Sc:()=>E,DH:()=>N,xZ:()=>I,hX:()=>A,e3:()=>o,lQ:()=>v,r8:()=>w,sN:()=>m,mp:()=>u,b$:()=>b});let a=Object.freeze({user:"USER",admin:"ADMIN",superAdmin:"SUPER_ADMIN",editor:"EDITOR",author:"AUTHOR",recruiter:"RECRUITER",vendorAdmin:"VENDOR_ADMIN",leadDistributor:"LEAD_DISTRIBUTOR",subscriber:"SUBSCRIBER",nurse:"NURSE",agency:"AGENCY",agent:"AGENT"}),n=Object.freeze([a.superAdmin,a.admin,a.editor,a.author,a.leadDistributor,a.recruiter,a.vendorAdmin,a.agency,a.agent,a.user,a.subscriber,a.nurse]);function o(e){return"string"!=typeof e?null:e.trim().toUpperCase()||null}var i=r(66545);let l={[a.admin]:{role:a.admin,principalLane:"user",defaultDestination:i.JZ.admin.users.index,workspaces:["admin"],returnTargetDomains:["public","admin"],mayImpersonate:!0},[a.superAdmin]:{role:a.superAdmin,principalLane:"user",defaultDestination:i.JZ.admin.home,workspaces:["admin"],returnTargetDomains:["public","admin"],mayImpersonate:!0},[a.editor]:{role:a.editor,principalLane:"user",defaultDestination:i.JZ.admin.jobs.index,workspaces:["admin"],returnTargetDomains:["public","admin"],mayImpersonate:!1},[a.author]:{role:a.author,principalLane:"user",defaultDestination:i.JZ.admin.blogs.index,workspaces:["admin"],returnTargetDomains:["public","admin"],mayImpersonate:!1},[a.leadDistributor]:{role:a.leadDistributor,principalLane:"user",defaultDestination:i.JZ.leadDistributor.home,workspaces:["lead-distributor"],returnTargetDomains:["public","lead-distributor"],mayImpersonate:!1},[a.recruiter]:{role:a.recruiter,principalLane:"recruiter",defaultDestination:i.JZ.admin.home,workspaces:["admin","recruiter"],returnTargetDomains:["public","admin"],mayImpersonate:!1},[a.vendorAdmin]:{role:a.vendorAdmin,principalLane:"agency",defaultDestination:i.JZ.admin.home,workspaces:["admin","agency"],returnTargetDomains:["public","admin"],mayImpersonate:!1},[a.agency]:{role:a.agency,principalLane:"agency",defaultDestination:i.JZ.admin.home,workspaces:["admin","agency"],returnTargetDomains:["public","admin"],mayImpersonate:!1},[a.user]:s(a.user),[a.subscriber]:s(a.subscriber),[a.agent]:s(a.agent),[a.nurse]:s(a.nurse)};function s(e){return{role:e,principalLane:"user",defaultDestination:i.JZ.jobs.index,workspaces:[],returnTargetDomains:["public"],mayImpersonate:!1}}function c(e){var t;let r=function(e){var t;let r=o(e);return null!=(t=n.find(e=>e===r))?t:null}(e);return r?l[r]:s(null!=(t=o(e))?t:a.user)}function d(e){return c(e).defaultDestination}function u(e,t){return c(e).workspaces.includes(t)}function m(e,t){return c(e).returnTargetDomains.includes(t)}let p=[a.user,a.author,a.admin,a.superAdmin,a.editor,a.leadDistributor,a.recruiter,a.vendorAdmin];[...p,a.subscriber,a.agent,a.nurse,a.agency];let f=[a.recruiter,a.vendorAdmin],b=[a.admin,a.superAdmin,a.editor,a.author,a.agency,a.recruiter],g={[a.admin]:"Admin",[a.superAdmin]:"Super Admin",[a.editor]:"Editor",[a.user]:"User",[a.recruiter]:"Recruiter",[a.vendorAdmin]:"Vendor Admin",[a.agency]:"Agency",[a.leadDistributor]:"Lead Distributor",[a.author]:"Author",[a.subscriber]:"Subscriber",[a.agent]:"Agent",[a.nurse]:"Nurse"},h=p.map(e=>({value:e,label:g[e]})),v=p.filter(e=>e!==a.superAdmin),y=new Set([a.subscriber,a.agent]),x=h.filter(e=>!y.has(e.value)),w=x.filter(e=>e.value!==a.superAdmin),k=f.map(e=>({value:e,label:g[e]}));function N(e,t){let r=o(e);return!!r&&t.includes(r)}function j(e){let t=o(e);return t===a.admin||t===a.superAdmin}function E(e){return o(e)===a.editor}function L(e){return o(e)===a.author}function S(e){let t=c(e);return"user"===t.principalLane&&t.workspaces.includes("admin")}function A(e){return o(e)===a.superAdmin}function I(e){return o(e)===a.admin}},9881:(e,t,r)=>{r.d(t,{Dg:()=>i,e9:()=>c,hL:()=>s,sU:()=>m});var a=r(21667),n=r(75313);let o=e=>e.replace(/\/+$/,""),i=()=>o("https://scrubsociety.com"),l=()=>{var e;let t="https://scrubsociety.com".trim()||(null==(e=n.env.FRONTEND_URL)?void 0:e.trim());return t?o(t):void 0},s=()=>{let e="".concat(i(),"/api/v1");try{if(a.Ii.isNativePlatform())return{mode:"native_direct",apiBaseUrl:e}}catch(e){}return{mode:"browser_same_origin",apiBaseUrl:"/api/v1"}},c=()=>{let e=i();{let t=window.location.hostname,r=window.location.port,n=window.location.protocol,o=(()=>{try{return a.Ii.isNativePlatform()}catch(e){return!1}})(),i="capacitor:"===n||"file:"===n||"http:"===n&&"localhost"===t&&!r||""===t||"null"===t;return o||i?e:""}},d=new Set(["authors","blog-images","profile-images","profile-images-original","recruiter-images","admin-users","agency-logos","vendor-logos","vendor-logos-original","facility-logos"]),u=e=>!!d.has(e)||!!e.endsWith("-original")&&d.has(e.slice(0,-9)),m=e=>{if(!e||""===e)return"";
1let t=e.trim(),r=t;try{r=decodeURIComponent(t)}catch(e){}let a=i(),n=a.endsWith("/")?a.slice(0,-1):a,o=e=>e.split("/").map(encodeURIComponent).join("/"),s=e=>{let t=l();return t?"".concat(t,"/").concat(o(e)):"".concat(n,"/api/v1/s3-proxy/").concat(o(e))};if(r.startsWith("http://")||r.startsWith("https://")){if(t.includes("%3A%2F%2F")||t.includes("%3A//")){let e=decodeURIComponent(t);(e.startsWith("http://")||e.startsWith("https://"))&&(r=e)}try{let e=new URL(r),t=decodeURIComponent(e.pathname.replace(/^\/+/,"")),a=t.split("/")[0];if((e=>{let t=l();if(!t)return!1;try{let r=new URL(e),a=new URL(t);return r.hostname===a.hostname}catch(e){return!1}})(r)&&u(a))return s(t);if(e.pathname.includes("/api/v1/s3-proxy/")){let e=t.replace(/^api\/v1\/s3-proxy\//,""),r=e.split("/")[0];if(u(r))return s(e)}if((e.hostname.includes("amazonaws.com")||e.hostname.includes("s3."))&&u(a))return s(t)}catch(e){}return r}if(r.startsWith("/api/v1/s3-proxy/")){let e=r.replace(/^\/api\/v1\/s3-proxy\//,"");if(u(e.split("/")[0]))return s(e)}if(r.startsWith("/api/v1/images/"))return"".concat(n).concat(r);let c=r.replace(/^\/+/,""),d=c.indexOf("/");if(d>0&&u(c.slice(0,d)))return s(c);let m=r.split("/").pop();return m?"".concat(n,"/api/v1/images/").concat(m):""}},11287:(e,t,r)=>{r.d(t,{Cf:()=>m,Es:()=>f,L3:()=>b,c7:()=>p,lG:()=>s,rr:()=>g,zM:()=>c});var a=r(7724);r(2272);var n=r(93134),o=r(21952),i=r(49566),l=r(53611);function s(e){let{...t}=e;return(0,a.jsx)(o.bL,{"data-slot":"dialog",...t})}function c(e){let{...t}=e;return(0,a.jsx)(o.l9,{"data-slot":"dialog-trigger",...t})}function d(e){let{...t}=e;return(0,a.jsx)(o.ZL,{"data-slot":"dialog-portal",...t})}function u(e){let{className:t,...r}=e;return(0,a.jsx)(o.hJ,{"data-slot":"dialog-overlay",className:(0,i.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...r})}function m(e){let{className:t,children:r,showCloseButton:l=!0,...s}=e;return(0,a.jsxs)(d,{"data-slot":"dialog-portal",children:[(0,a.jsx)(u,{}),(0,a.jsxs)(o.UC,{"data-slot":"dialog-content",className:(0,i.cn)("bg-[color:var(--ss-foundation-background-color-surface)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 outline-none sm:max-w-lg",t),...s,children:[r,l&&(0,a.jsxs)(o.bm,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-[color:var(--ss-foundation-border-color-focus)] data-[state=open]:bg-accent data-[state=open]:text-[color:var(--ss-foundation-text-color-muted)] absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[(0,a.jsx)(n.A,{}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function p(e){let{className:t,...r}=e;return(0,a.jsx)("div",{"data-slot":"dialog-header",className:(0,i.cn)("flex flex-col gap-2 text-center sm:text-left",t),...r})}function f(e){let{className:t,showCloseButton:r=!1,children:n,...s}=e;return(0,a.jsxs)("div",{"data-slot":"dialog-footer",className:(0,i.cn)("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),...s,children:[n,r&&(0,a.jsx)(o.bm,{asChild:!0,children:(0,a.jsx)(l.$,{variant:"outline",children:"Close"})})]})}function b(e){let{className:t,...r}=e;return(0,a.jsx)(o.hE,{"data-slot":"dialog-title",className:(0,i.cn)("text-lg leading-none font-semibold",t),...r})}function g(e){let{className:t,...r}=e;return(0,a.jsx)(o.VY,{"data-slot":"dialog-description",className:(0,i.cn)("text-[color:var(--ss-foundation-text-color-muted)] text-sm",t),...r})}},17237:(e,t,r)=>{r.d(t,{f:()=>o});var a=r(30643),n=r(66688);function o(e){var t,r,o,i,l;if((null==e?void 0:e.code)!=="APP_UPDATE_REQUIRED")return;let s=null==(t=e.data)?void 0:t.platform,c=null==(r=e.data)?void 0:r.storeUrl;if("ios"!==s&&"android"!==s||"string"!=typeof c||!(0,n.o)(c,s))return;let d={decision:"required_update",platform:s,currentVersion:null,currentBuild:0,recommendedMinimumBuild:null,recommendedVersion:null,requiredMinimumBuild:"number"==typeof(null==(o=e.data)?void 0:o.requiredMinimumBuild)?e.data.requiredMinimumBuild:null,requiredVersion:"string"==typeof(null==(i=e.data)?void 0:i.requiredVersion)?e.data.requiredVersion:null,message:"string"==typeof e.message?e.message:null,storeUrl:c,policyVersion:"number"==typeof(null==(l=e.data)?void 0:l.policyVersion)?e.data.policyVersion:0};a.o.activateRequiredUpdate(d)}},22353:(e,t,r)=>{r.d(t,{$:()=>l,mh:()=>i});var a=r(7724),n=r(2828),o=r(49566);function i(e){let{className:t,size:r="default",...i}=e;return(0,a.jsxs)("div",{className:"group/native-select relative w-full has-[select:disabled]:opacity-50","data-slot":"native-select-wrapper",children:[(0,a.jsx)("select",{"data-slot":"native-select","data-size":r,className:(0,o.cn)("border-[color:var(--ss-foundation-border-color-default)] placeholder:text-[color:var(--ss-foundation-text-color-muted)] selection:bg-primary selection:text-primary-foreground dark:bg-[color:var(--ss-foundation-background-color-surface-alt)]/30 dark:hover:bg-[color:var(--ss-foundation-background-color-surface-alt)]/50 h-9 w-full min-w-0 appearance-none rounded-md border bg-transparent px-3 py-2 pr-9 text-sm shadow-xs transition-[color,box-shadow] outline-none disabled:pointer-events-none disabled:cursor-not-allowed data-[size=sm]:h-8 data-[size=sm]:py-1","focus-visible:border-[color:var(--ss-foundation-border-color-focus)] focus-visible:ring-[color:var(--ss-foundation-border-color-focus)]/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",t),...i}),(0,a.jsx)(n.A,{className:"text-[color:var(--ss-foundation-text-color-muted)] pointer-events-none absolute top-1/2 right-3.5 size-4 -translate-y-1/2 opacity-50 select-none","aria-hidden":"true","data-slot":"native-select-icon"})]})}function l(e){return(0,a.jsx)("option",{"data-slot":"native-select-option",...e})}},25894:(e,t,r)=>{r.d(t,{D9:()=>n,Zw:()=>a,k7:()=>o});let a={"willing-50-plus-miles":{slug:"willing-50-plus-miles",label:"Travel distance",prompt:"Are you open to opportunities that are 50 or more miles away?",submitLabel:"Save answer",type:"boolean",fieldName:"willing50Plus
1Miles",trueLabel:"Yes, I am open to travel",falseLabel:"No, I prefer closer roles"},"prior-travel-experience":{slug:"prior-travel-experience",label:"Travel experience",prompt:"Have you completed a travel assignment before?",submitLabel:"Save answer",type:"boolean",fieldName:"priorTravelExperience",trueLabel:"Yes",falseLabel:"No"},"strike-willing":{slug:"strike-willing",label:"Strike assignments",prompt:"Would you consider a strike assignment?",submitLabel:"Save answer",type:"boolean",fieldName:"strikeWilling",trueLabel:"Yes",falseLabel:"No"},"currently-on-assignment":{slug:"currently-on-assignment",label:"Current assignment",prompt:"Are you currently working on an assignment?",submitLabel:"Save answer",type:"boolean",fieldName:"currentlyOnAssignment",trueLabel:"Yes, I am on assignment",falseLabel:"No, I am available"},"working-with-other-agencies":{slug:"working-with-other-agencies",label:"Agency relationships",prompt:"Are you currently working with other staffing agencies?",submitLabel:"Save answer",type:"boolean",fieldName:"workingWithOtherAgencies",trueLabel:"Yes",falseLabel:"No"},"contract-length-pref":{slug:"contract-length-pref",label:"Contract length",prompt:"How many weeks would you prefer your next contract to be?",submitLabel:"Save preference",type:"number",fieldName:"contractLengthPref",min:1,max:52,step:1,inputMode:"numeric",placeholder:"Number of weeks"},"minimum-weekly-pay":{slug:"minimum-weekly-pay",label:"Weekly pay",prompt:"What is the minimum weekly pay you would consider?",submitLabel:"Save preference",type:"number",fieldName:"minimumWeeklyPay",min:1,max:3500,step:.01,inputMode:"decimal",placeholder:"Weekly amount"},"assignment-end-date":{slug:"assignment-end-date",label:"Assignment end date",prompt:"When does your current assignment end?",submitLabel:"Save date",type:"date",fieldName:"assignmentEndDate"},"years-of-experience":{slug:"years-of-experience",label:"Years of experience",prompt:"How many years of professional experience do you have?",submitLabel:"Save answer",type:"number",fieldName:"yearsOfExperience",min:1,max:50,step:1,inputMode:"numeric",placeholder:"Number of years"},"travel-radius":{slug:"travel-radius",label:"Travel radius",prompt:"How far are you willing to travel for an assignment?",submitLabel:"Save preference",type:"number",fieldName:"travelRadius",min:1,max:500,step:1,inputMode:"numeric",placeholder:"Distance in miles"},"current-agency":{slug:"current-agency",label:"Current agency",prompt:"Which staffing agency are you currently working with?",submitLabel:"Save answer",type:"text",fieldName:"currentAgency",placeholder:"Agency name"},"emr-experience":{slug:"emr-experience",label:"EMR experience",prompt:"Which EMR system have you used most recently?",submitLabel:"Save experience",type:"emr",fieldName:"emrExperience",namePlaceholder:"EMR system, such as Epic",yearsPlaceholder:"Years",minYears:0,maxYears:50},shift:{slug:"shift",label:"Shift preference",prompt:"Which shift do you prefer?",submitLabel:"Save preference",type:"select",fieldName:"shift",placeholder:"Select a shift",options:[{value:"DAY",label:"Day"},{value:"EVENING",label:"Evening"},{value:"NIGHT",label:"Night"},{value:"ROTATE",label:"Rotate"},{value:"VARIES",label:"Varies"}]}};function n(e){return a[e]}let o=["willing-50-plus-miles","prior-travel-experience","strike-willing","currently-on-assignment","working-with-other-agencies","contract-length-pref","minimum-weekly-pay","assignment-end-date","years-of-experience","travel-radius","current-agency","emr-experience","shift"].filter(e=>"emr-experience"!==e).map(e=>({slug:e,fieldName:a[e].fieldName,label:a[e].label}))},26228:(e,t,r)=>{r.d(t,{$C:()=>s,FQ:()=>l,N:()=>c,QK:()=>d,QY:()=>i,VU:()=>p,Vx:()=>b,WG:()=>m,Xv:()=>a,_R:()=>o,_p:()=>f,qK:()=>u,rk:()=>n}),r(62198);let a="/blog",n="_placeholder_",o="_placeholder_",i="/agencies-and-employers",l="_placeholder_",s=e=>{let t=String(null!=e?e:"").trim();return t?t.normalize("NFKD").replace(/[\u0300-\u036f]/g,"").toLowerCase().replace(/&/g," and ").replace(/['’]/g,"").replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").replace(/-{2,}/g,"-"):""},c=e=>
1{let t=e.split("/").filter(Boolean).map(e=>s((e=>{try{return decodeURIComponent(e)}catch(t){return e}})(e))).filter(Boolean);return t.length>0?"/".concat(t.join("/")):"/"},d=e=>{let t=s(e);return t?"/blog/".concat(t):a},u=(e,t)=>d(e),m=e=>{let t=s(e);return t?"/blog/category/".concat(t):a},p=(e,t)=>{let r=s(e);return r?"/blog/author/".concat(r):a},f=(e,t)=>m(e),b=e=>{let t=s(e);return t?"".concat(i,"/").concat(t):i}},27707:(e,t,r)=>{r.d(t,{Input:()=>i});var a=r(7724),n=r(2272),o=r(49566);function i(e){let{className:t,type:r,mode:i="auto",sanitize:l,validate:s,validationContext:c,onSanitizedValueChange:d,onChange:u,onInput:m,onPaste:p,...f}=e,b=null!=f.value,g="sanitized"===i||"auto"===i&&("function"==typeof l||!!s),h=(0,n.useCallback)(e=>{let t=l?l(e):e,r=s?s(t,c):{valid:!0,value:t};return null==d||d(r.value,r),r},[d,l,s,c]),v=(0,n.useCallback)(e=>{if(g){let t=h(e.currentTarget.value);b||e.currentTarget.value===t.value||(e.currentTarget.value=t.value)}null==u||u(e)},[b,u,h,g]),y=(0,n.useCallback)(e=>null==m?void 0:m(e),[m]),x=(0,n.useCallback)(e=>{var t,r;if(!g){null==p||p(e);return}e.preventDefault();let a=e.currentTarget,n=e.clipboardData.getData("text"),o=null!=(t=a.selectionStart)?t:a.value.length,i=null!=(r=a.selectionEnd)?r:a.value.length,l=h("".concat(a.value.slice(0,o)).concat(n).concat(a.value.slice(i)));b||(a.value=l.value),null==p||p(e)},[b,p,h,g]);return(0,a.jsx)("input",{type:r,"data-slot":"input",className:(0,o.cn)("file:text-[color:var(--ss-foundation-text-color-muted)] placeholder:text-[color:var(--ss-foundation-text-color-muted)] selection:bg-primary selection:text-primary-foreground dark:bg-[color:var(--ss-foundation-background-color-surface-alt)]/30 border-[color:var(--ss-foundation-border-color-default)] h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-[color:var(--ss-foundation-border-color-focus)] focus-visible:ring-[color:var(--ss-foundation-border-color-focus)]/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",t),onChange:v,onInput:y,onPaste:x,...f})}},30643:(e,t,r)=>{r.d(t,{o:()=>s});let a="tgn:mobile-update:recommended-dismissal",n={status:"checking"},o=new Set;function i(e){for(let t of(n=e,o))t()}function l(e){return"".concat(e.platform,":").concat(e.currentBuild,":").concat(e.policyVersion)}let s=Object.freeze({getState:()=>n,subscribe:e=>(o.add(e),()=>o.delete(e)),beginCheck(){"required"!==n.status&&i({status:"checking"})},applyResult:e=>"required_update"===e.decision?void i({status:"required",update:e,openingStore:!1}):"recommended_update"===e.decision&&!function(e){try{return localStorage.getItem(a)===l(e)}catch(e){return!1}}(e)?void i({status:"recommended",update:e}):void i({status:"supported"}),markUnverifiedOffline(){"required"!==n.status&&i({status:"unverified_offline"})},activateRequiredUpdate(e){i({status:"required",update:{...e,decision:"required_update"},openingStore:!1})},dismissRecommended(){if("recommended"===n.status){try{localStorage.setItem(a,l(n.update))}catch(e){}i({status:"supported"})}},setOpeningStore(e){"required"===n.status&&i({...n,openingStore:e})},resetForTests(){n={status:"checking"},o.clear()}})},40018:(e,t,r)=>{r.d(t,{y:()=>p,getNativeBlogBySlug:()=>y,getNativePublishedBlogs:()=>v,shouldUseNativeEditorialBlogApi:()=>f});var a=r(21667),n=r(9881),o=r(87670),i=r(2138),l=r(26228);let s=e=>{if(!e||"object"!=typeof e)throw new i.d({kind:"decode",message:"Blog response is malformed"});return e},c=e=>{if(!e||"string"!=typeof e.id||"string"!=typeof e.title||"string"!=typeof e.slug||"string"!=typeof e.description||"string"!=typeof e.publishDate)throw new i.d({kind:"decode",message:"Blog record is malformed"});return e},d=e=>{let t=s(e);return{...t,data:c(t.data)}},u=e=>{let t=s(e),r=t.data;if(!r||!Array.isArray(r.blogs))throw new i.d({kind:"decode",message:"Blog list response is malformed"});return{...t,data:{...r,blogs:r.blogs.map(c)}}};var m=r(95059);let p="scrub-society:native-blog-content",f=()=>{try{return a.Ii.isNativePlatform()}catch(e){return!1}},b=async(e,t)=>{let r=await fetch("".concat((0,n.hL)().apiBaseUrl).concat(e),{method:"GET",headers:await (0,m.W)(),signal:t}),a=await r.json().catch(()=>null);if(!r.ok)throw(0,m.g)(r.status,a),new i.d({kind:"http",status:r.status,message:"Blog API request failed with status ".concat(r.status)});return a},g=e=>{window.dispatchEvent(new CustomEvent(p,{detail:e}))},h=(e,t,r)=>{if("not-found"===e.kind)throw g({family:t,identity:r,kind:"not-found"}),new i.d({kind:"http",status:404,message:"Blog content was not found"});if("error"===e.kind)throw g({family:t,identity:r,kind:"error"}),e.error;return g({family:t,identity:r,kind:e.kind,fetchedAt:e.fetchedAt}),{data:e.value}},v=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new URLSearchParams;for(let[r,a]of Object.entries(e))void 0!==a&&""!==a&&t.set(r,String(a));let r=e.authorId?"blog-author":e.category?"blog-category":"blog-list",a=e.authorId||(0,l.$C)(e.category)||"index",i=(0,n.hL)().apiBaseUrl;return h(await (0,o.L)({cacheIdentity:{apiOrigin:i,family:r,identity:a,query:t},fetch:e=>b("/blogs/published".concat(t.size?"?".concat(t):""),e),decode:u}),r,a)},y=async e=>{let t=(0,l.$C)(e),r=(0,n.hL)().apiBaseUrl;return h(await (0,o.L)({cacheIdentity:{apiOrigin:r,family:"blog-detail",identity:t},fetch:e=>b("/blogs/".concat(encodeURIComponent(t)),e),decode:d,canonicalIdentity:e=>e.data.slug}),"blog-detail",t)}},49566:(e,t,r)=>{r.d(t,{cn:()=>o});var a=r(22785),n=r(36436);function o(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,n.QP)((0,a.$)(t))}},53611:(e,t,r)=>{r.d(t,{$:()=>c});
1var a=r(7724),n=r(2272),o=r(17145),i=r(63464),l=r(49566);let s=(0,o.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-[9999px_9999px_9999px_0] text-sm font-semibold transition-all duration-200 shadow-[var(--ss-foundation-box-shadow-raised-sm)] hover:-translate-y-0.5 hover:shadow-[var(--ss-foundation-box-shadow-raised-md)] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-[color:var(--ss-foundation-border-color-focus)] focus-visible:ring-[color:var(--ss-foundation-border-color-focus)]/60 focus-visible:ring-2 focus-visible:ring-offset-2 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"border border-transparent bg-[var(--ss-foundation-background-color-accent)] text-[color:var(--ss-foundation-text-color-on-accent)] hover:bg-[var(--ss-foundation-background-color-accent-hover)]",destructive:"border border-transparent bg-destructive text-white hover:bg-destructive/90",outline:"border border-[color:var(--ss-foundation-border-color-primary)] bg-[var(--ss-foundation-background-color-surface)] text-[color:var(--ss-foundation-text-color-primary)] hover:bg-[var(--ss-foundation-background-color-inverse)] hover:text-[color:var(--ss-foundation-text-color-inverse)]",secondary:"border border-[color:var(--ss-foundation-border-color-default)] bg-[var(--ss-foundation-background-color-info)] text-[color:var(--ss-foundation-text-color-on-info)] hover:bg-[var(--ss-foundation-background-color-info-soft)]",ghost:"border border-transparent bg-transparent text-[color:var(--ss-foundation-text-color-primary)] shadow-none hover:bg-[var(--ss-foundation-background-color-accent-tint)]",link:"border border-transparent bg-transparent text-[color:var(--ss-foundation-text-color-link)] underline decoration-[color:var(--ss-foundation-text-decoration-color-link)] underline-offset-[var(--ss-foundation-text-underline-offset-link)] shadow-none hover:bg-transparent hover:font-semibold hover:text-[color:var(--ss-foundation-text-color-link-hover)] hover:decoration-[color:var(--ss-foundation-text-decoration-color-link-hover)]"},size:{default:"h-11 px-6 py-3 has-[>svg]:px-4",xs:"h-8 gap-1 px-3 text-xs has-[>svg]:px-2 [&_svg:not([class*='size-'])]:size-3",sm:"h-10 gap-1.5 px-5 has-[>svg]:px-3.5",lg:"h-12 px-7 has-[>svg]:px-5",icon:"size-9","icon-xs":"size-6 [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}}),c=n.forwardRef(function(e,t){let{className:r,variant:n="default",size:o="default",asChild:c=!1,...d}=e,u=c?i.bL:"button";return(0,a.jsx)(u,{ref:t,"data-slot":"button","data-variant":n,"data-size":o,className:(0,l.cn)(s({variant:n,size:o,className:r})),...d})})},57019:(e,t,r)=>{r.d(t,{T:()=>o});var a=r(7724),n=r(49566);function o(e){let{className:t,...r}=e;return(0,a.jsx)("textarea",{"data-slot":"textarea",className:(0,n.cn)("border-[color:var(--ss-foundation-border-color-focus)] placeholder:text-[color:var(--ss-foundation-text-color-muted)] focus-visible:border-[color:var(--ss-foundation-border-color-focus)] focus-visible:ring-[color:var(--ss-foundation-border-color-focus)]/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-[color:var(--ss-foundation-background-color-surface-alt)]/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",t),...r})}},62198:(e,t,r)=>{r.d(t,{vi:()=>i});var a=r(75313);let n="https://scrubsociety.com",o=(e,t)=>{let r,a=e.trim().replace(/\/$/,"");if(!a)throw Error("NEXT_PUBLIC_SITE_URL is required for ".concat(t," builds"));try{r=new URL(a)}catch(e){throw Error("NEXT_PUBLIC_SITE_URL must be a valid exact origin")}if(!(e=>!e.username&&!e.password&&"/"===e.pathname&&!e.search&&!e.hash)(r)||r.origin!==a)throw Error("NEXT_PUBLIC_SITE_URL must be an exact origin without credentials, paths, queries, or fragments");return r.origin},i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.env,t=e.DEPLOY_ENV,r=e.NEXT_PUBLIC_SITE_URL;if(!t)return r?o(r,"local"):"http://localhost:3000";let i=o(null!=r?r:"",t),l=new URL(i);if("production"===t){if(i!==n)throw Error("Production NEXT_PUBLIC_SITE_URL must be ".concat(n));return i}if("staging"===t){if("https:"!==l.protocol||"localhost"===l.hostname||i===n)throw Error("Staging NEXT_PUBLIC_SITE_URL must be a non-production HTTPS origin");return i}if("https:"!==l.protocol||"localhost"===l.hostname)throw Error("Deployed NEXT_PUBLIC_SITE_URL must be a non-localhost HTTPS origin");return i}},66688:(e,t,r)=>{r.d(t,{o:()=>a});function a(e,t){try{let r=new URL(e);if("https:"!==r.protocol||r.username||r.password||r.hash)return!1;if("ios"===t)return"apps.apple.com"===r.hostname&&/(?:^|\/)id6761185793\/?$/.test(r.pathname);return"play.google.com"===r.hostname&&"/store/apps/details"===r.pathname&&"com.thescrubsociety.app"===r.searchParams.get("id")&&[...r.searchParams.keys()].every(e=>"id"===e||"hl"===e||"gl"===e)}catch(e){return!1}}},79130:(e,t,r)=>{r.r(t),r.d(t,{APP_CLIENT_METADATA_HEADERS:()=>o,attachAppClientMetadata:()=>c,getAppClientMetadata:()=>s,resetAppClientMetadataForTests:()=>d});var a=r(72510),n=r(21667);let o={client:"X-TGN-App-Client",platform:"X-TGN-App-Platform",version:"X-TGN-App-Version",build:"X-TGN-App-Build"},i=null;async function l(){var e,t;let r=n.Ii.getPlatform();if("ios"!==r&&"android"!==r)return null;let o=await a.q.getInfo(),i=String(null!=(e=o.build)?e:"").trim(),l=String(null!=(t=o.version)?t:"").trim(),s=Number(i);return l&&i&&Number.isSafeInteger(s)&&!(s<0)?{client:"native",platform:r,version:l,build:i}:null}function s(){return!function(){try{return n.Ii.isNativePlatform()&&["ios","android"].includes(n.Ii.getPlatform())}catch(e){return!1}}()?Promise.resolve({client:"web"}):(null!=i||(i=l().then(e=>(e||(i=null),e)).catch(()=>(i=null,null))),i)}async function c(e){let t=await s();t&&(e[o.client]=t.client,"native"===t.client&&(e[o.platform]=t.platform,e[o.version]=t.version,e[o.build]=t.build))}function d(){i=null}},87146:(e,t,r)=>{r.d(t,{ElicitationLinkDialog:()=>y,canGenerateElicitationLink:()=>v});
1var a=r(7724),n=r(2272),o=r(85653),i=r(17806),l=r(5527),s=r(50340),c=r(5551),d=r(53611),u=r(22353),m=r(57019),p=r(11287),f=r(39760),b=r(8614),g=r(25894);async function h(e){var t;if(null==(t=navigator.clipboard)?void 0:t.writeText)return void await navigator.clipboard.writeText(e);let r=document.createElement("textarea");r.value=e,r.style.position="fixed",r.style.opacity="0",document.body.appendChild(r),r.select();let a=document.execCommand("copy");if(r.remove(),!a)throw Error("Copy failed")}function v(e){return e===b.E3.user}function y(e){let{userId:t,candidateName:r}=e,[b,v]=(0,n.useState)(!1),[y,x]=(0,n.useState)(g.k7[0].slug),[w,k]=(0,n.useState)(""),[N,j]=(0,n.useState)(null),[E,L]=(0,n.useState)(!1),[S,A]=(0,n.useState)(!1),[I,T]=(0,n.useState)(null),_=()=>{k(""),j(null),A(!1),T(null)},C=async()=>{let e=g.k7.find(e=>e.slug===y);if(e&&!E){L(!0),T(null),A(!1);try{var r,a;let n=null==(r=(await f.Er.createElicitationLink(t,{fieldName:e.fieldName})).data.data)?void 0:r.elicitationLink,o=null==n?void 0:n.url;if("string"!=typeof o||!o.trim())throw Error("Missing generated URL");k(function(e){let t=new URL(e,window.location.origin);if("http:"!==t.protocol&&"https:"!==t.protocol)throw Error("Unsupported generated URL");return t.toString()}(o)),j(null!=(a=n.expiresAt)?a:null)}catch(e){T("We could not generate the secure link. Please try again.")}finally{L(!1)}}},R=async()=>{if(w){T(null);try{await h(w),A(!0)}catch(e){T("We could not copy the link. Select and copy it manually.")}}},U=function(e){if(!e)return null;let t=new Date(e);return Number.isNaN(t.getTime())?null:t.toLocaleDateString("en-US",{month:"2-digit",day:"2-digit",year:"numeric"})}(N);return(0,a.jsxs)(p.lG,{open:b,onOpenChange:e=>{v(e),e||_()},children:[(0,a.jsx)(p.zM,{asChild:!0,children:(0,a.jsxs)(d.$,{type:"button",children:[(0,a.jsx)(o.A,{"aria-hidden":"true"}),"Generate Elicitation Link"]})}),(0,a.jsxs)(p.Cf,{className:"rounded-2xl p-6 sm:rounded-3xl",children:[(0,a.jsxs)(p.c7,{children:[(0,a.jsx)(p.L3,{children:"Generate Secure Profile Link"}),(0,a.jsxs)(p.rr,{children:["Choose one question for"," ",(0,a.jsx)("strong",{className:"font-semibold text-[color:var(--ss-foundation-text-color-primary)]",children:r}),". The generated link expires after 14 days and can be submitted once."]})]}),(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"mb-2 block text-sm font-medium text-[color:var(--ss-foundation-text-color-primary)]",htmlFor:"elicitation-field",children:"Profile Field"}),(0,a.jsx)("div",{className:"w-full [&>div]:w-full",children:(0,a.jsx)(u.mh,{id:"elicitation-field",className:"h-12 w-full rounded-xl border-2 border-[color:var(--ss-foundation-border-color-focus)] bg-white px-4 shadow-sm hover:border-[color:var(--ss-foundation-border-color-focus)] focus-visible:border-[var(--ss-foundation-border-color-focus)]",value:y,disabled:E,onChange:e=>{x(e.target.value),_()},children:g.k7.map(e=>(0,a.jsx)(u.$,{value:e.slug,children:e.label},e.slug))})})]}),w?(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)("label",{className:"block text-sm font-medium text-[color:var(--ss-foundation-text-color-primary)]",htmlFor:"elicitation-url",children:"Secure Link"}),(0,a.jsx)(m.T,{id:"elicitation-url",readOnly:!0,value:w,className:"min-h-24 break-all"}),U?(0,a.jsxs)("p",{className:"text-sm text-[color:var(--ss-foundation-text-color-primary)]",children:["Expires ",U]}):null]}):null,I?(0,a.jsx)(c.Fc,{variant:"destructive",children:(0,a.jsx)(c.TN,{children:I})}):null]}),(0,a.jsx)(p.Es,{children:w?(0,a.jsxs)(d.$,{type:"button",onClick:R,children:[S?(0,a.jsx)(i.A,{"aria-hidden":"true"}):(0,a.jsx)(l.A,{"aria-hidden":"true"}),S?"Copied":"Copy Link"]}):(0,a.jsxs)(d.$,{type:"button",disabled:E,onClick:C,children:[E?(0,a.jsx)(s.A,{className:"animate-spin","aria-hidden":"true"}):null,E?"Generating…":"Generate Link"]})})]})]})}},87670:(e,t,r)=>{r.d(t,{L:()=>u});var a=r(54715);let n=e=>{try{return new URL(e).origin.toLowerCase()}catch(t){return e.trim().replace(/\/+$/,"").toLowerCase()}},o=e=>{let t=e instanceof URLSearchParams?new URLSearchParams(e):new URLSearchParams;if(e&&!(e instanceof URLSearchParams))for(let[r,a]of Object.entries(e))null!=a&&""!==a&&t.append(r,String(a));return[...t.entries()].sort((e,t)=>
1{let[r,a]=e,[n,o]=t;return r===n?a.localeCompare(o):r.localeCompare(n)}).map(e=>{let[t,r]=e;return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(r))}).join("&")},i=e=>JSON.stringify([1,n(e.apiOrigin),e.family,e.identity.trim().toLowerCase(),o(e.query)]),l=null,s=()=>(null!=l||(l=(0,a.P2)("scrub-society-editorial",1,{upgrade(e){e.objectStoreNames.contains("editorial")||e.createObjectStore("editorial",{keyPath:"key"})}})),l),c={async get(e){try{let t=await (await s()).get("editorial",e);if(!t)return null;if(1!==t.schemaVersion||t.key!==e)return await this.delete(e),null;return t}catch(e){return null}},async put(e){try{let t=(await s()).transaction("editorial","readwrite");await t.store.put(e),await t.done}catch(e){}},async delete(e){try{await (await s()).delete("editorial",e)}catch(e){}}};var d=r(2138);async function u(e){var t,r,a,l,s,u,m,p,f;let b=null!=(a=e.cache)?a:c,g=null!=(l=e.now)?l:Date.now,h=i(e.cacheIdentity),v=async t=>{let r=await b.get(h);if(!r)return{kind:"error",error:new d.d({kind:"timeout"===t?"timeout":"transport",message:"Editorial content is unavailable"})};let a=Math.max(0,g()-r.fetchedAt);if(a>6048e5)return{kind:"error",error:new d.d({kind:"transport",message:"The saved editorial copy has expired"})};try{return{kind:"cached",value:e.decode(r.value),fetchedAt:r.fetchedAt,cacheAgeMs:a,fallbackCause:t,canonicalIdentity:r.canonicalIdentity}}catch(e){return await b.delete(h),{kind:"error",error:e}}};if(!(null!=(s=e.online)?s:"undefined"==typeof navigator||navigator.onLine))return v("offline");let y=new AbortController,x=()=>{var t;return y.abort(null==(t=e.signal)?void 0:t.reason)};(null==(t=e.signal)?void 0:t.aborted)?x():null==(r=e.signal)||r.addEventListener("abort",x,{once:!0});let w=!1,k=null,N=new Promise((e,t)=>{k=t}),j=setTimeout(()=>{w=!0,y.abort(new DOMException("Request timed out","TimeoutError")),null==k||k(new d.d({kind:"timeout",message:"Editorial request timed out"}))},null!=(u=e.timeoutMs)?u:8e3);try{let t,r=await Promise.race([e.fetch(y.signal),N]),a=e.decode(r),l=g(),s=null==(m=e.canonicalIdentity)?void 0:m.call(e,a);return await b.put((t={identity:e.cacheIdentity,value:r,fetchedAt:l,canonicalIdentity:s},{key:i(t.identity),schemaVersion:1,apiOrigin:n(t.identity.apiOrigin),family:t.identity.family,identity:t.identity.identity,normalizedQuery:o(t.identity.query),value:t.value,fetchedAt:t.fetchedAt,canonicalIdentity:t.canonicalIdentity})),{kind:"live",value:a,fetchedAt:l,canonicalIdentity:s}}catch(r){let e=null==r?void 0:r.status;if(404===e||410===e)return await b.delete(h),{kind:"not-found"};let t=w||"timeout"===(f=r).kind||"TimeoutError"===f.name?"timeout":"transport"===f.kind||"TypeError"===f.name?"transport":"http"!==f.kind?null:408===f.status?"timeout":429===f.status?"rate-limit":f.status&&f.status>
1=500?"server":null;return t?v(t):{kind:"error",error:r}}finally{clearTimeout(j),null==(p=e.signal)||p.removeEventListener("abort",x)}}},95059:(e,t,r)=>{r.d(t,{W:()=>o,g:()=>i});var a=r(79130),n=r(17237);async function o(){let e={Accept:"application/json"};return await (0,a.attachAppClientMetadata)(e),e}function i(e,t){426===e&&(0,n.f)(t)}},99548:(e,t,r)=>{r.d(t,{ElicitationForm:()=>x});var a=r(7724),n=r(2272),o=r(17806),i=r(92432),l=r(50340),s=r(52950),c=r.n(s),d=r(56379),u=r(5551),m=r(53611),p=r(27707),f=r(22353),b=r(39760),g=r(49566),h=r(25894);function v(e){var t;return null==e||null==(t=e.response)?void 0:t.status}function y(e){let t=v(e),r=function(e){var t;let r=null==e||null==(t=e.response)?void 0:t.data;return[null==r?void 0:r.code,null==r?void 0:r.message].filter(e=>"string"==typeof e).join(" ").toLowerCase()}(e);return 404===t||409===t||410===t||/expired|already used|revoked|token|field mismatch|does not match/.test(r)}function x(e){var t,r;let{field:s}=e,x=(0,h.D9)(s),k=null!=(r=null==(t=(0,d.useSearchParams)().get("t"))?void 0:t.trim())?r:"",N=(0,n.useRef)(null),[j,E]=(0,n.useState)(0),[L,S]=(0,n.useState)("loading"),[A,I]=(0,n.useState)("Verifying link…"),[T,_]=(0,n.useState)(null),[C,R]=(0,n.useState)(!1),[U,D]=(0,n.useState)(!1),[P,z]=(0,n.useState)(null);(0,n.useEffect)(()=>{if(!k||!(k.length<=1024&&/^[^.\s]+\.[A-Za-z0-9_-]+$/.test(k))){S("unavailable"),I("This secure link is missing or invalid.");return}let e=!0;return S("loading"),I("Verifying link…"),z(null),b.os.verify({t:k,field:s}).then(t=>{var r;e&&(_(function(e,t){if("boolean"===t.type)return"boolean"==typeof e?e:null;if("number"===t.type)return"number"==typeof e&&Number.isFinite(e)?String(e):"string"==typeof e&&e.trim()&&Number.isFinite(Number(e))?e:"";if("date"===t.type){var r;if("string"!=typeof e)return"";let t=/^\d{4}-\d{2}-\d{2}/.exec(e);return null!=(r=null==t?void 0:t[0])?r:""}if("emr"===t.type){let t=Array.isArray(e)?e[0]:e;return t&&"object"==typeof t?{emr_name:"string"==typeof t.emr_name?t.emr_name:"",years:"number"==typeof t.years&&Number.isFinite(t.years)?String(t.years):""}:{emr_name:"",years:""}}return"string"==typeof e?e:""}(null==(r=t.data.data)?void 0:r.currentValue,x)),S("ready"))}).catch(t=>{if(e){if(function(e){let t=v(e);return void 0===t||t>=500||408===t||429===t}(t)){S("retryable"),I("We could not check this link. Please try again.");return}S("unavailable"),I(y(t)?"This link has expired, was already used, or is no longer available.":"This secure link is invalid or unavailable.")}}),()=>{e=!1}},[x,s,k,j]);let M=async e=>{if(e.preventDefault(),C||"ready"!==L)return;z(null);let t=(()=>{if("boolean"===x.type)return"boolean"!=typeof T?(z("Choose an answer before continuing."),null):T;if("emr"===x.type){if(!T||"object"!=typeof T)return z("Enter your EMR system and years of experience."),null;let e=T.emr_name.trim(),t=Number(T.years);return e?!T.years.trim()||!Number.isFinite(t)||t<x.minYears||t>x.maxYears?(z("Enter EMR experience from ".concat(x.minYears," to ").concat(x.maxYears," years.")),null):{emr_name:e,years:t}:(z("Enter the EMR system you have used."),null)}if("string"!=typeof T||""===T.trim())return z("Enter an answer before continuing."),null;if("date"===x.type)return/^\d{4}-\d{2}-\d{2}$/.test(T)?T:(z("Enter a valid date."),null);if("number"!==x.type)return T.trim();let e=Number(T);return!Number.isFinite(e)||e<x.min||e>x.max||1===x.step&&!Number.isInteger(e)?("contractLengthPref"===x.fieldName?z("Enter a whole number from ".concat(x.min," to ").concat(x.max," weeks.")):"yearsOfExperience"===x.fieldName?z("Enter a whole number from ".concat(x.min," to ").concat(x.max," years.")):"travelRadius"===x.fieldName?z("Enter a whole number from ".concat(x.min," to ").concat(x.max," miles.")):z("Enter an amount from ".concat(x.min," to ").concat(x.max,".")),null):e})();if(null!==t){R(!0);try{await b.os.submit({t:k,field:s,value:t}),D(!0)}catch(e){y(e)?(S("unavailable"),I("This link has expired, was already used, or is no longer available.")):z("We could not save your answer. Please check it and try again.")}finally{R(!1)}}};if("loading"===L)return(0,a.jsx)(w,{verificationState:L,message:A,loading:!0});if("retryable"===L)return(0,a.jsx)(w,{verificationState:L,message:A,retry:()=>E(e=>e+1)});if("unavailable"===L)return(0,a.jsx)(w,{verificationState:L,message:A});if(U)return(0,a.jsxs)("div",{className:"text-center","data-testid":"elicitation-thank-you","data-verification-state":L,"aria-busy":!1,children:[(0,a.jsx)("div",{className:"mx-auto mb-5 flex size-14 items-center justify-center rounded-full bg-emerald-100 text-emerald-700",children:(0,a.jsx)(o.A,{className:"size-7","aria-hidden":"true"})}),(0,a.jsx)("h1",{className:"mb-3 text-3xl font-semibold text-[var(--ss-foundation-text-color-primary)]",children:"Thank y
1ou"}),(0,a.jsx)("p",{className:"text-base leading-7 text-[color:var(--ss-foundation-text-color-primary)]",children:"Your profile has been updated. You can safely close this page."}),(0,a.jsx)(m.$,{asChild:!0,className:"mt-6 min-w-48",children:(0,a.jsx)(c(),{href:"/",children:"Back to home"})})]});let B="number"===x.type&&"contractLengthPref"===x.fieldName?"weeks":"number"===x.type&&"yearsOfExperience"===x.fieldName?"years":"number"===x.type&&"travelRadius"===x.fieldName?"miles":null;return(0,a.jsxs)("form",{className:"space-y-6",onSubmit:M,noValidate:!0,"data-testid":"elicitation-form","data-verification-state":L,"aria-busy":C,children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"mb-2 text-sm font-semibold uppercase tracking-[0.12em] text-[var(--ss-foundation-text-color-primary)]",children:x.label}),(0,a.jsx)("h1",{className:"mb-3 text-3xl font-semibold leading-tight text-[var(--ss-foundation-text-color-primary)]",children:x.prompt})]}),"boolean"===x.type?(0,a.jsx)("div",{className:"grid gap-3",role:"group","aria-label":x.label,children:[{label:x.trueLabel,optionValue:!0},{label:x.falseLabel,optionValue:!1}].map(e=>(0,a.jsx)("button",{type:"button","aria-pressed":T===e.optionValue,className:(0,g.cn)("min-h-14 rounded-xl border-2 px-4 py-3 text-left text-base font-semibold transition-colors",T===e.optionValue?"border-[var(--ss-foundation-border-color-default)] bg-[var(--ss-foundation-background-color-surface)] text-[var(--ss-foundation-text-color-primary)]":"border-[color:var(--ss-foundation-border-color-default)] bg-white text-[color:var(--ss-foundation-text-color-primary)] hover:border-[var(--ss-foundation-border-color-default)]"),onClick:()=>{_(e.optionValue),z(null)},children:e.label},String(e.optionValue)))}):"date"===x.type?(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("label",{className:"sr-only",htmlFor:"elicit-".concat(s),children:x.label}),(0,a.jsxs)("div",{className:"flex h-14 w-full items-center rounded-xl border-2 border-[color:var(--ss-foundation-border-color-focus)] bg-white px-4 pr-14 text-lg shadow-sm transition-[color,box-shadow,border-color] hover:border-[color:var(--ss-foundation-border-color-focus)] focus-within:border-[var(--ss-foundation-border-color-focus)] focus-within:ring-2 focus-within:ring-[var(--ss-foundation-border-color-focus)]","aria-hidden":"true",children:[(0,a.jsx)("span",{className:"text-[color:var(--ss-foundation-text-color-primary)]",children:"string"==typeof T&&T?function(e){let t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e);return t?"".concat(t[2],"/").concat(t[3],"/").concat(t[1]):""}(T):"MM/DD/YYYY"}),(0,a.jsx)(i.A,{className:"absolute right-4 size-7 text-[color:var(--ss-foundation-text-color-primary)]"})]}),(0,a.jsx)("input",{ref:N,id:"elicit-".concat(s),type:"date",value:"string"==typeof T?T:"",className:"absolute inset-0 size-full cursor-pointer opacity-0",onClick:()=>{let e=N.current;if(e&&(e.focus(),"function"==typeof e.showPicker))try{e.showPicker()}catch(e){}},onChange:e=>{_(e.target.value),z(null)}})]}):"emr"===x.type?(0,a.jsxs)("div",{className:"grid gap-3 sm:grid-cols-[minmax(0,1fr)_8rem]",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"sr-only",htmlFor:"elicit-".concat(s,"-name"),children:"EMR system"}),(0,a.jsx)(p.Input,{id:"elicit-".concat(s,"-name"),type:"text",value:"object"==typeof T&&T?T.emr_name:"",placeholder:x.namePlaceholder,className:"h-14 rounded-xl border-2 border-[color:var(--ss-foundation-border-color-focus)] bg-white px-4 text-lg shadow-sm hover:border-[color:var(--ss-foundation-border-color-focus)] focus-visible:border-[var(--ss-foundation-border-color-focus)]",onChange:e=>{_({emr_name:e.target.value,years:"object"==typeof T&&T?T.years:""}),z(null)}})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"sr-only",htmlFor:"elicit-".concat(s,"-years"),children:"Years of EMR experience"}),(0,a.jsx)(p.Input,{id:"elicit-".concat(s,"-years"),type:"number",min:x.minYears,max:x.maxYears,step:"0.1",inputMode:"decimal",value:"object"==typeof T&&T?T.years:"",placeholder:x.yearsPlaceholder,className:"h-14 rounded-xl border-2 border-[color:var(--ss-foundation-border-color-focus)] bg-white px-4 text-lg shadow-sm hover:border-[color:var(--ss-foundation-border-color-focus)] focus-visible:border-[var(--ss-foundation-border-color-focus)] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",onChange:e=>{_({emr_name:"object"==typeof T&&T?T.emr_name:"",years:e.target.value}),z(null)}})]})]}):"select"===x.type?(0,a.jsxs)("div",{className:"w-full [&>div]:w-full",children:[(0,a.jsx)("label",{className:"sr-only",htmlFor:"elicit-".concat(s),children:x.label}),(0,a.jsxs)(f.mh,{id:"elicit-".concat(s),value:"string"==typeof T?T:"",className:"h-10 w-full rounded-full border-2 border-[color:var(--ss-foundation-border-color-focus)] bg-white px-4 text-lg shadow-sm hover:border-[color:var(--ss-foundation-border-color-focus)] focus-visible:border-[var(--ss-foundation-border-color-focus)]",onChange:e=>{_(e.target.value),z(null)},children:[(0,a.jsx)(f.$,{value:"",children:x.placeholder}),x.options.map(e=>(0,a.jsx)(f.$,{value:e.value,children:e.label},e.value))]})]}):"text"===x.type?(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"sr-only",htmlFor:"elicit-".concat(s),children:x.label}),(0,a.jsx)(p.Input,{id:"elicit-".concat(s),type:"text",value:"string"==typeof T?T:"",placeholder:x.placeholder,className:(0,g.cn)("h-14 roun
1ded-xl border-2 border-[color:var(--ss-foundation-border-color-default)] bg-white px-4 text-lg shadow-sm hover:border-[color:var(--ss-foundation-border-color-default)] focus-visible:border-[var(--ss-foundation-border-color-focus)]","current-agency"===s&&"h-10 rounded-full"),onChange:e=>{_(e.target.value),z(null)}})]}):(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("label",{className:"sr-only",htmlFor:"elicit-".concat(s),children:x.label}),"minimumWeeklyPay"===x.fieldName?(0,a.jsx)("span",{className:"pointer-events-none absolute inset-y-0 left-0 z-10 flex w-12 items-center justify-center border-r border-[color:var(--ss-foundation-border-color-default)] text-lg font-semibold text-[color:var(--ss-foundation-text-color-primary)]","aria-hidden":"true",children:"$"}):null,B?(0,a.jsx)("span",{className:"pointer-events-none absolute inset-y-0 right-4 z-10 flex items-center text-base font-semibold text-[color:var(--ss-foundation-text-color-primary)]","aria-hidden":"true",children:B}):null,(0,a.jsx)(p.Input,{id:"elicit-".concat(s),type:"minimumWeeklyPay"===x.fieldName?"text":"number",value:"string"==typeof T?T:"",min:x.min,max:x.max,step:x.step,inputMode:x.inputMode,pattern:"minimumWeeklyPay"===x.fieldName?"[0-9]*[.]?[0-9]*":void 0,placeholder:x.placeholder,className:(0,g.cn)("h-14 rounded-xl border-2 border-[color:var(--ss-foundation-border-color-focus)] bg-white px-4 text-lg shadow-sm hover:border-[color:var(--ss-foundation-border-color-focus)] focus-visible:border-[var(--ss-foundation-border-color-focus)]",B&&"pr-20 [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none","minimumWeeklyPay"===x.fieldName&&"pl-16"),onChange:e=>{_("minimumWeeklyPay"===x.fieldName?e.target.value.replace(/[^0-9.]/g,""):e.target.value),z(null)}})]}),P?(0,a.jsx)(u.Fc,{variant:"destructive",children:(0,a.jsx)(u.TN,{children:P})}):null,(0,a.jsx)(m.$,{className:"h-14 w-full text-base",type:"submit",disabled:C,children:C?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(l.A,{className:"animate-spin","aria-hidden":"true"}),"Saving…"]}):x.submitLabel})]})}function w(e){let{verificationState:t,message:r,loading:n=!1,retry:o}=e;return(0,a.jsxs)("div",{className:"py-8 text-center","data-testid":"elicitation-status","data-verification-state":t,"aria-busy":n,children:[n?(0,a.jsx)(l.A,{className:"mx-auto mb-4 size-7 animate-spin text-[var(--ss-foundation-text-color-primary)]","aria-hidden":"true"}):null,(0,a.jsx)("h1",{className:"mb-2 text-2xl font-semibold text-[var(--ss-foundation-text-color-primary)]",children:n?"One moment":"This page is unavailable"}),(0,a.jsx)("p",{className:"text-base leading-7 text-[color:var(--ss-foundation-text-color-primary)]",children:r}),o?(0,a.jsx)(m.$,{className:"mt-5",type:"button",onClick:o,children:"Try again"}):null]})}}}]);

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.