PageSourceSearch

https://firstnationalstaffing.com/_next/static/chunks/f3288aa1aa596e61.js

js firstnationalstaffing.com collected 2026-10-07 03:14:43 UTC 12,335 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,595468,e=>{"use strict";let a=(0,e.i(475254).default)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["CheckCircle2",()=>a],595468)},972520,e=>{"use strict";let a=(0,e.i(475254).default)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);e.s(["ArrowRight",()=>a],972520)},95187,(e,a,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var s={callServer:function(){return i.callServer},createServerReference:function(){return l.createServerReference},findSourceMapURL:function(){return n.findSourceMapURL}};for(var t in s)Object.defineProperty(r,t,{enumerable:!0,get:s[t]});let i=e.r(132120),n=e.r(92245),l=e.r(235326)},641961,e=>{"use strict";var a=e.i(95187),r=(0,a.createServerReference)("40c917a0b931e7ca209ae45cfdaad88722a896e86c",a.callServer,void 0,a.findSourceMapURL,"submitBrief");e.s(["submitBrief",()=>r])},434831,e=>{"use strict";var a=e.i(843476),r=e.i(271645),s=e.i(681307),t=e.i(972520),i=e.i(595468);let n=(0,e.i(475254).default)("phone-call",[["path",{d:"M13 2a9 9 0 0 1 9 9",key:"1itnx2"}],["path",{d:"M13 6a5 5 0 0 1 5 5",key:"11nki7"}],["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]]);var l=e.i(522016),o=e.i(641961),d=e.i(80104),c=e.i(942522);new Date().getFullYear();let m="+1 470-470-4243",h=["Agriculture & Nursery","Food Production","Manufacturing & Production","Recycling & Waste Management","Warehouse & Logistics","Hospital
1ity & Events","Healthcare Support & EVS"],u=["1st Shift (Day)","2nd Shift (Evening)","3rd Shift (Night)","Rotating/Mixed"],p=["1-5 Workers","6-20 Workers","21-50 Workers","50+ Workers"],x=["Standard (same week)","Urgent (rush)","Future Planning"],y=s.z.object({company:s.z.string().trim().min(1,"Company name is required.").max(120),name:s.z.string().trim().min(1,"Contact person is required.").max(100),email:s.z.string().trim().min(1,"Work email is required.").max(120).pipe(s.z.email("Enter a valid email address.")),phone:s.z.string().trim().min(7,"Direct phone is required."),industry:s.z.enum(h,{error:"Select an industry vertical."}),role:s.z.string().trim().min(1,"Tell us the position(s) you need to staff.").max(120),shift:s.z.enum(u,{error:"Select a shift preference."}),headcount:s.z.enum(p,{error:"Select volume needed."}),start:s.z.enum(x,{error:"Select an urgency level."}),location:s.z.string().trim().regex(/^\d{5}$/,"Enter a valid 5-digit postal code."),notes:s.z.string().max(2e3).optional(),smsConsent:s.z.boolean().optional()}),v={company:"",name:"",email:"",phone:"",industry:"",role:"",shift:"",headcount:"",start:"",location:"",notes:"",smsConsent:!1},b="w-full min-h-[44px] rounded-md border border-slate-300 bg-white px-4 py-2.5 text-sm text-brand-navy outline-none transition-colors placeholder:text-slate-400 focus:border-brand-primary focus:ring-2 focus:ring-brand-primary/20",g="mb-1.5 block text-sm font-semibold text-brand-navy",j="mt-1.5 text-xs font-medium text-red-600";function f(){let e=(0,r.useId)(),[s,f]=(0,r.useState)(v),[N,$]=(0,r.useState)({}),[S,k]=(0,r.useState)(!1),[C,w]=(0,r.useState)(!1),[z,P]=(0,r.useState)(null),F=(e,a)=>f(r=>({...r,[e]:a})),M=async e=>{e.preventDefault(),P(null);let a=y.safeParse(s);if(!a.success){let e={};for(let r of a.error.issues){let a=r.path[0];e[a]||(e[a]=r.message)}$(e);return}$({}),k(!0);let r=(0,d.newEventId)(),t=[`Urgency: ${s.start}`,`SMS consent: ${s.smsConsent?"yes":"no"}`,s.notes.trim()].filter(Boolean),i={industry:s.industry,role:s.role,headcount:s.headcount,start:s.start,shift:s.shift,duration:"",location:s.location,company:s.company,name:s.name,email:s.email,phone:s.phone,notes:t.join("\n"),event_id:r,source:"request-workforce-form",attribution:(0,c.readAttributionCookie)()??void 0},n=await (0,o.submitBrief)(i);k(!1),n.success?((0,d.trackLead)({event_id:r,value:100,currency:"USD",industry:i.industry,role:"workforce-request",source:"request-workforce-form"}),w(!0)):P(n.error??"Unable to submit your request. Please try again.")};return C?(0,a.jsxs)("div",{className:"card-standard flex flex-col items-center gap-4 py-12 text-center",children:[(0,a.jsx)("div",{className:"icon-wrapper",children:(0,a.jsx)(i.CheckCircle2,{className:"h-6 w-6","aria-hidden":!0})}),(0,a.jsx)("h3",{className:"text-xl font-bold text-brand-navy",children:"Request received"}),(0,a.jsx)("p",{className:"max-w-md text-sm text-slate-600",children:"Thanks — an account manager will c
1ontact you shortly during business hours."})]}):(0,a.jsxs)("form",{onSubmit:M,noValidate:!0,className:"card-standard grid gap-5",children:[(0,a.jsxs)("div",{className:"grid gap-5 sm:grid-cols-2",children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{htmlFor:`${e}-company`,className:g,children:["Company Name",(0,a.jsx)("span",{className:"ml-1 text-brand-primary",children:"*"})]}),(0,a.jsx)("input",{id:`${e}-company`,type:"text",className:b,value:s.company,onChange:e=>F("company",e.target.value),"aria-invalid":!!N.company,"aria-describedby":N.company?`${e}-company-error`:void 0}),N.company&&(0,a.jsx)("p",{id:`${e}-company-error`,role:"alert",className:j,children:N.company})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{htmlFor:`${e}-name`,className:g,children:["Contact Person",(0,a.jsx)("span",{className:"ml-1 text-brand-primary",children:"*"})]}),(0,a.jsx)("input",{id:`${e}-name`,type:"text",className:b,value:s.name,onChange:e=>F("name",e.target.value),"aria-invalid":!!N.name,"aria-describedby":N.name?`${e}-name-error`:void 0}),N.name&&(0,a.jsx)("p",{id:`${e}-name-error`,role:"alert",className:j,children:N.name})]})]}),(0,a.jsxs)("div",{className:"grid gap-5 sm:grid-cols-2",children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{htmlFor:`${e}-email`,className:g,children:["Work Email",(0,a.jsx)("span",{className:"ml-1 text-brand-primary",children:"*"})]}),(0,a.jsx)("input",{id:`${e}-email`,type:"email",className:b,value:s.email,onChange:e=>F("email",e.target.value),"aria-invalid":!!N.email,"aria-describedby":N.email?`${e}-email-error`:void 0}),N.email&&(0,a.jsx)("p",{id:`${e}-email-error`,role:"alert",className:j,children:N.email})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{htmlFor:`${e}-phone`,className:g,children:["Direct Phone",(0,a.jsx)("span",{className:"ml-1 text-brand-primary",children:"*"})]}),(0,a.jsx)("input",{id:`${e}-phone`,type:"tel",className:b,value:s.phone,onChange:e=>F("phone",e.target.value),"aria-invalid":!!N.phone,"aria-describedby":N.phone?`${e}-phone-error`:void 0}),N.phone&&(0,a.jsx)("p",{id:`${e}-phone-error`,role:"alert",className:j,children:N.phone})]})]}),(0,a.jsxs)("div",{className:"grid gap-5 sm:grid-cols-2",children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{htmlFor:`${e}-industry`,className:g,children:["Industry Vertical",(0,a.jsx)("span",{className:"ml-1 text-brand-primary",children:"*"})]}),(0,a.jsxs)("select",{id:`${e}-industry`,className:b,value:s.industry,onChange:e=>F("industry",e.target.value),"aria-invalid":!!N.industry,"aria-describedby":N.industry?`${e}-industry-error`:void 0,children:[(0,a.jsx)("option",{value:"",children:"Select an industry"}),h.map(e=>(0,a.jsx)("option",{value:e,children:e},e))]}),N.industry&&(0,a.jsx)("p",{id:`${e}-industry-error`,role:"alert",className:j,children:N.industry})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{htmlFor:`${e}-shift`,className:g,children:["Shift Preference",(0,a.jsx)("span",{className:"ml-1 text-brand-primary",children:"*"})]}),(0,a.jsxs)("select",{id:`${e}-shift`,className:b,value:s.shift,onChange:e=>F("shift",e.target.value),"aria-invalid":!!N.shift,"aria-describedby":N.shift?`${e}-shift-error`:void 0,children:[(0,a.jsx)("option",{value:"",children:"Select a shift"}),u.map(e=>(0,a.jsx)("option",{value:e,children:e},e))]}),N.shift&&(0,a.jsx)("p",{id:`${e}-shift-error`,role:"alert",className:j,children:N.shift})]})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{htmlFor:`${e}-role`,className:g,children:["Position(s) Needed",(0,a.jsx)("span",{className:"ml-1 text-brand-primary",children:"*"})]}),(0,a.jsx)("input",{id:`${e}-role`,type:"text",className:b,placeholder:"e.g., Forklift Operator, Sanitation Crew, Line Lead",value:s.role,onChange:e=>F("role",e.target.value),"aria-invalid":!!N.role,"aria-describedby":N.role?`${e}-role-error`:void 0}),N.role&&(0,a.jsx)("p",{id:`${e}-role-error`,role:"alert",className:j,children:N.role})]}),(0,a.jsxs)("div",{className:"grid gap-5 sm:grid-cols-2",children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{htmlFor:`${e}-headcount`,className:g,children:["Volume Needed",(0,a.jsx)("span",{className:"ml-1 text-brand-primary",children:"*"})]}),(0,a.jsxs)("select",{id:`${e}-headcount`,className:b,value:s.headcount,onChange:e=>F("headcount",e.target.value),"aria-invalid":!!N.headcount,"aria-describedby":N.headcount?`${e}-headcount-error`:void 0,children:[(0,a.jsx)("option",{value:"",children:"Select a range"}),p.map(e=>(0,a.jsx)("option",{value:e,children:e},e))]}),N.headcount&&(0,a.jsx)("p",{id:`${e}-headcount-error`,role:"alert",className:j,children:N.headcount})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{htmlFor:`${e}-location`,className:g,children:["Postal Code",(0,a.jsx)("span",{className:"ml-1 text-brand-primary",children:"*"})]}),(0,a.jsx)("input",{id:`${e}-location`,type:"text",inputMode:"numeric",maxLength:5,className:b,value:s.location,onChange:e=>F("location",e.target.value),"aria-invalid":!!N.location,"aria-describedby":N.location?`${e}-location-error`:void 0}),N.location&&(0,a.jsx)("p",{id:`${e}-location-error`,role:"alert",className:j,children:N.location})]})]}),(0,a.jsxs)("fieldset",{"aria-describedby":N.start?`${e}-urgency-error`:void 0,children:[(0,a.jsxs)("legend",{className:g,children:["Urgency Level",(0,a.jsx)("span",{className:"ml-1 text-brand-primary",children:"*"})]}),(0,a.jsx)("div",{className:"grid gap-2.5 sm:grid-cols-3",children:x.map(r=>
1(0,a.jsxs)("label",{className:`flex min-h-[44px] cursor-pointer items-center gap-2.5 rounded-md border px-4 py-2.5 text-sm transition-colors ${s.start===r?"border-brand-primary bg-brand-primary/5 text-brand-navy":"border-slate-300 bg-white text-slate-600 hover:border-brand-primary/50"}`,children:[(0,a.jsx)("input",{type:"radio",name:`${e}-urgency`,value:r,checked:s.start===r,onChange:e=>F("start",e.target.value),className:"h-4 w-4 accent-brand-primary"}),r]},r))}),N.start&&(0,a.jsx)("p",{id:`${e}-urgency-error`,role:"alert",className:j,children:N.start})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:`${e}-notes`,className:g,children:"Additional Details"}),(0,a.jsx)("textarea",{id:`${e}-notes`,rows:3,className:`${b} resize-y`,value:s.notes,onChange:e=>F("notes",e.target.value)})]}),(0,a.jsxs)("div",{className:"rounded-md border border-slate-200 bg-brand-light p-4",children:[(0,a.jsxs)("label",{className:"flex items-start gap-3 text-sm text-brand-navy",children:[(0,a.jsx)("input",{type:"checkbox",checked:s.smsConsent,onChange:e=>F("smsConsent",e.target.checked),className:"mt-0.5 h-4 w-4 accent-brand-primary"}),(0,a.jsx)("span",{children:"Text me updates about this request (optional)"})]}),(0,a.jsxs)("p",{className:"mt-2 pl-7 text-xs text-slate-600",children:["I agree to receive SMS from First National Staffing Group about my workforce request. Msg & data rates may apply. Reply STOP to opt out."," ",(0,a.jsx)(l.default,{href:"/legal/privacy-policy",className:"text-brand-secondary underline",children:"Privacy Policy"})]})]}),z&&(0,a.jsxs)("div",{role:"alert",className:"rounded-md border border-red-200 bg-red-50 p-4 text-sm text-red-700",children:[(0,a.jsx)("p",{children:z}),(0,a.jsxs)("a",{href:`tel:${m}`,className:"mt-1 inline-flex items-center gap-1.5 font-semibold",children:[(0,a.jsx)(n,{className:"h-4 w-4","aria-hidden":!0})," Call ",m]})]}),(0,a.jsxs)("button",{type:"submit",disabled:S,className:"btn-primary w-full disabled:opacity-60 sm:w-auto",children:[S?"Submitting…":"Get Started"," ",(0,a.jsx)(t.ArrowRight,{className:"ml-2 h-4 w-4","aria-hidden":!0})]})]})}e.s(["default",()=>f],434831)},803461,e=>{e.n(e.i(434831))}]);

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.