1import{r as g,j as e}from"./vendor-query-DL_iJxmK.js";import{c3 as ce,r as pe}from"./vendor-icons-DtS5ccx4.js";const y=({d:s,size:f=16,stroke:h="currentColor",fill:m="none",style:c,...l})=>e.jsx("svg",{width:f,height:f,viewBox:"0 0 24 24",fill:m,stroke:h,strokeWidth:1.8,strokeLinecap:"round",strokeLinejoin:"round",style:c,...l,children:Array.isArray(s)?s.map((j,N)=>e.jsx("path",{d:j},N)):e.jsx("path",{d:s})}),o={ArrowLeft:s=>e.jsx(y,{...s,d:"M19 12H5M12 19l-7-7 7-7"}),ChevronRight:s=>e.jsx(y,{...s,d:"M9 18l6-6-6-6"}),User:s=>e.jsx(y,{...s,d:["M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2","M12 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8"]}),Upload:s=>e.jsx(y,{...s,d:["M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4","M17 8l-5-5-5 5","M12 3v12"]}),FileText:s=>e.jsx(y,{...s,d:["M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z","M14 2v6h6","M16 13H8","M16 17H8","M10 9H8"]}),CheckIco:s=>e.jsx(y,{...s,d:"M20 6L9 17l-5-5"}),X:s=>e.jsx(y,{...s,d:"M18 6L6 18M6 6l12 12"}),AlertCircle:s=>e.jsx(y,{...s,d:["M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10z","M12 8v4","M12 16h.01"]}),Users:s=>e.jsx(y,{...s,d:["M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2","M23 21v-2a4 4 0 0 0-3-3.87","M16 3.13a4 4 0 0 1 0 7.75"]}),Globe:s=>e.jsx(y,{...s,d:["M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10z","M2 12h20","M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"]}),MapPin:s=>e.jsx(y,{...s,d:"M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"}),Briefcase:s=>e.jsx(y,{...s,d:["M20 7H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2z","M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16"]}),MessageSquare:s=>e.jsx(y,{...s,d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"}),Send:s=>e.jsx(y,{...s,d:["M22 2L11 13","M22 2L15 22 11 13 2 9l20-7"]})},ee=s=>s?s.startsWith("data:")||s.startsWith("/objects/")||s.startsWith("http")?s:`/objects/${s}`:null,re=` 2@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&display=swap'); 3*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;} 4 5:root { 6 --o: #E8470A; 7 --o-dk: #C93D08; 8 --o-lt: #FFF3EE; 9 --o-lter: #FFF8F5; 10 --o-bd: #F5C4B0; 11 --navy: #1E2B3C; 12 --navy2: #2D3F55; 13 --slate: #4A5568; 14 --muted: #718096; 15 --bg: #F2F4F7; 16 --card: #FFFFFF; 17 --bdr: #E2E8F0; 18 --bdr-lt: #EEF2F7; 19 --green: #059669; 20 --green-bg:#ECFDF5; 21 --green-bd:#6EE7B7; 22 --r: 10px; 23 --r-md: 12px; 24 --r-lg: 16px; 25 --r-xl: 20px; 26 --sh-xs: 0 1px 3px rgba(30,43,60,.06); 27 --sh-sm: 0 2px 8px rgba(30,43,60,.07), 0 8px 24px rgba(30,43,60,.04); 28 --sh-md: 0 4px 16px rgba(30,43,60,.09), 0 20px 48px rgba(30,43,60,.06); 29 --sh-o: 0 4px 18px rgba(232,71,10,.32); 30 --sh-o-h: 0 8px 30px rgba(232,71,10,.44); 31 --font: 'Plus Jakarta Sans', sans-serif; 32} 33 34body,#root { font-family:var(--font); background:var(--bg); color:var(--navy); -webkit-font-smoothing:antialiased; } 35 36@keyframes spin { to{transform:rotate(360deg);} } 37@keyframes fadeUp { from{opacity:0;transform:translateY(14px);}to{opacity:1;transform:translateY(0);} } 38@keyframes popIn { 0%{opacity:0;transform:scale(.88)}70%{transform:scale(1.04)}100%{opacity:1;transform:scale(1)} } 39@keyframes glowPulse { 0%,100%{box-shadow:var(--sh-o)}50%{box-shadow:var(--sh-o-h)} } 40@keyframes slideUp { from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)} } 41 42/* ââ NAV ââ */ 43.hn-nav { 44 background:var(--card); border-bottom:1px solid var(--bdr); 45 position:sticky; top:0; z-index:300; 46 box-shadow:0 1px 0 rgba(30,43,60,.05),0 2px 10px rgba(30,43,60,.04); 47} 48.hn-nav-inner { 49 max-width:1180px; margin:0 auto; padding:0 24px; 50 height:58px; display:flex; align-items:center; justify-content:space-between; 51} 52.back-btn { 53 display:inline-flex; align-items:center; gap:6px; 54 font:600 13px var(--font); color:var(--slate); 55 background:transparent; border:1.5px solid var(--bdr); border-radius:var(--r); 56 padding:7px 14px; cursor:pointer; text-decoration:none; 57 transition:border-color .15s,color .15s,background .15s; 58} 59.back-btn:hover{border-color:var(--navy);color:var(--navy);background:var(--bg);} 60 61/* ââ HERO HEADER ââ */ 62.apply-hero { 63 background:#F0E4DC; 64 border-bottom:1px solid rgba(255,255,255,.06); 65 position:relative; overflow:hidden; 66} 67.apply-hero-dots { 68 position:absolute; inset:0; 69 background-image:radial-gradient(rgba(232,71,10,.06) 1px,transparent 1px);
70 background-size:26px 26px; pointer-events:none; 71} 72.apply-hero-inner { 73 max-width:1180px; margin:0 auto; padding:28px 24px 26px; 74 position:relative; z-index:1; 75 display:flex; align-items:flex-start; gap:16px; 76 animation:fadeUp .5s cubic-bezier(.16,1,.3,1) both; 77} 78@media(min-width:768px){.apply-hero-inner{padding:32px 24px 30px;gap:20px;}} 79 80.hero-co-logo { 81 width:54px; height:54px; flex-shrink:0; border-radius:14px; 82 background:rgba(255,255,255,.85); border:1.5px solid rgba(255,255,255,.6); 83 display:flex; align-items:center; justify-content:center; overflow:hidden; 84} 85.hero-co-logo img{width:100%;height:100%;object-fit:contain;padding:8px;} 86.hero-co-init{font-size:22px;font-weight:900;color:var(--o);font-family:var(--font);} 87@media(min-width:768px){.hero-co-logo{width:62px;height:62px;}} 88 89.hero-meta{flex:1;min-width:0;} 90.hero-co-name{font-size:11.5px;font-weight:700;color:#E8470A;text-transform:uppercase;letter-spacing:.12em;margin-bottom:6px;} 91.hero-job-title{font-size:22px;font-weight:900;color:#1E2B3C;line-height:1.18;letter-spacing:-.4px;margin-bottom:14px;} 92@media(min-width:768px){.hero-job-title{font-size:27px;}} 93 94.hero-pills{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:12px;} 95.hero-pill { 96 display:inline-flex; align-items:center; gap:5px; 97 background:rgba(232,71,10,.1); border:1px solid rgba(232,71,10,.25); 98 color:#4A5568; font-size:12px; font-weight:500; 99 padding:4px 11px; border-radius:50px; 100} 101.hero-pill svg{color:#E8470A;flex-shrink:0;} 102 103/* ââ PAGE BODY ââ */ 104.apply-body{max-width:860px;margin:0 auto;padding:32px 24px 72px;} 105.apply-grid{display:grid;grid-template-columns:1fr;gap:24px;align-items:start;} 106 107/* ââ STEPPER ââ */ 108.stepper-wrap{ 109 background:var(--card); border:1px solid var(--bdr); 110 border-radius:var(--r-lg); padding:20px 24px; margin-bottom:20px; 111 box-shadow:var(--sh-xs); 112 animation:fadeUp .4s cubic-bezier(.16,1,.3,1) both; 113} 114.stepper{display:flex;align-items:center;overflow-x:auto;scrollbar-width:none;} 115.stepper::-webkit-scrollbar{display:none;} 116.step-item{display:flex;align-items:center;flex-shrink:0;} 117.step-circle { 118 width:34px; height:34px; border-radius:50%; flex-shrink:0; 119 display:flex; align-items:center; justify-content:center; 120 font-size:12.5px; font-weight:700; 121 border:2px solid var(--bdr); background:var(--card); color:var(--muted); 122 transition:all .22s; font-family:var(--font); 123} 124.step-circle.active{border-color:var(--o);color:var(--o);box-shadow:0 0 0 4px rgba(232,71,10,.1);} 125.step-circle.done{border-color:var(--o);background:var(--o);color:#fff;} 126.step-label{font-size:11.5px;font-weight:600;margin-left:7px;white-space:nowrap;color:var(--muted);display:none;} 127@media(min-width:560px){.step-label{display:inline;}} 128.step-label.active{color:var(--navy);} 129.step-label.done{color:var(--o);} 130.step-line{flex:1;height:1.5px;background:var(--bdr);margin:0 9px;min-width:16px;transition:background .3s;} 131.step-line.done{background:var(--o);} 132 133/* ââ MAIN CARD ââ */ 134.form-card{ 135 background:var(--card); border:1px solid var(--bdr); 136 border-radius:var(--r-lg); box-shadow:var(--sh-sm); 137 overflow:hidden; 138 animation:slideUp .35s cubic-bezier(.16,1,.3,1) both; 139} 140.form-card-head{ 141 padding:22px 28px 20px; border-bottom:1px solid var(--bdr-lt); 142 background:linear-gradient(to right,#FAFBFC,var(--card)); 143 display:flex; align-items:center; gap:14px; 144} 145.form-head-ico{ 146 width:38px; height:38px; border-radius:10px; 147 background:var(--o-lt); display:flex; align-items:center; justify-content:center; 148 color:var(--o); flex-shrink:0; 149} 150.form-card-title{font-size:15.5px;font-weight:700;color:var(--navy);} 151.form-card-sub{font-size:12.5px;color:var(--muted);margin-top:2px;} 152.form-card-body{padding:28px;} 153@media(max-width:640px){.form-card-body{padding:20px 18px;}} 154 155/* ââ FIELDS ââ */ 156.form-fields{display:flex;flex-direction:column;gap:24px;} 157.field-group{display:flex;flex-direction:column;gap:8px;} 158/* Fields rendered as siblings inside a section wrapper need explicit separation */ 159.field-group + .field-group{margin-top:24px;} 160.section-heading + .field-group{margin-top:14px;} 161.field-label{ 162 font-size:13px;font-weight:600;color:var(--navy); 163 display:flex;align-items:center;gap:3px; 164} 165.req-star{color:var(--o);} 166.opt-tag{font-size:11px;font-weight:500;color:var(--muted);margin-left:auto;} 167 168.input-wrap{position:relative;display:flex;align-items:center;} 169.input-ico{position:absolute;
169left:11px;color:var(--muted);pointer-events:none;display:flex;align-items:center;} 170 171input[type=text],input[type=email],input[type=tel],input[type=url], 172input[type=number],input[type=date],textarea,select { 173 width:100%; font-family:var(--font); font-size:13.5px; color:var(--navy); 174 background:var(--card); border:1.5px solid var(--bdr); border-radius:var(--r-md); 175 outline:none; transition:border-color .15s,box-shadow .15s; 176} 177input[type=text],input[type=email],input[type=tel],input[type=url], 178input[type=number],input[type=date],select{height:44px;padding:0 14px 0 40px;} 179input.no-ico,select.no-ico{padding-left:14px;} 180input:focus,textarea:focus,select:focus{border-color:var(--o);box-shadow:0 0 0 3px rgba(232,71,10,.1);} 181input.err,textarea.err,select.err{border-color:#DC2626;} 182input::placeholder,textarea::placeholder{color:#CBD5E1;} 183textarea{padding:12px 44px 12px 14px;resize:vertical;min-height:108px;line-height:1.7;} 184 185.field-err{font-size:12px;color:#DC2626;display:flex;align-items:center;gap:4px;margin-top:4px;} 186.section-divider{border:none;border-top:1px solid var(--bdr-lt);margin:14px 0 6px;} 187.section-heading{font-size:13.5px;font-weight:700;color:var(--navy);letter-spacing:-.1px;padding-bottom:4px;} 188 189/* ââ DROP ZONE ââ */ 190.drop-zone{ 191 border:2px dashed var(--bdr); border-radius:var(--r-md); 192 cursor:pointer; padding:32px 20px; text-align:center; 193 transition:all .2s; background:var(--card); 194} 195.drop-zone:hover{border-color:var(--o);background:var(--o-lter);} 196.drop-zone.err-zone{border-color:#DC2626;background:#FFF5F5;} 197.drop-icon{width:46px;height:46px;border-radius:50%;background:var(--o-lt);display:flex;align-items:center;justify-content:center;margin:0 auto 12px;color:var(--o);} 198.drop-title{font-size:13.5px;font-weight:600;color:var(--navy);margin-bottom:4px;} 199.drop-hint{font-size:12px;color:var(--muted);} 200 201.file-pill{ 202 display:flex;align-items:center;gap:12px;padding:12px 16px; 203 border-radius:var(--r-md);background:var(--o-lter);border:1.5px solid var(--o-bd); 204} 205.file-ico{width:36px;height:36px;border-radius:9px;background:var(--o-lt);display:flex;align-items:center;justify-content:center;flex-shrink:0;color:var(--o);} 206.file-nm{font-size:13px;font-weight:600;color:var(--navy);} 207.file-sz{font-size:11.5px;color:var(--muted);margin-top:1px;} 208.file-rm{margin-left:auto;background:none;border:none;cursor:pointer;color:var(--muted);padding:5px;border-radius:7px;display:flex;align-items:center;transition:background .14s,color .14s;} 209.file-rm:hover{background:var(--o-lt);color:var(--o);} 210 211/* ââ QUESTIONS ââ */ 212.question-card{ 213 background:#FAFBFD;border:1px solid var(--bdr); 214 border-radius:var(--r-md);padding:22px 22px 18px; 215} 216.question-card+.question-card{margin-top:16px;} 217.q-label{display:flex;align-items:flex-start;gap:12px;font-size:13.5px;font-weight:600;color:var(--navy);margin-bottom:16px;line-height:1.5;} 218.q-num{ 219 display:inline-flex;align-items:center;justify-content:center; 220 width:28px;height:28px;border-radius:50%; 221 background:var(--o);color:#fff;font-size:11.5px;font-weight:700; 222 flex-shrink:0;margin-top:1px;font-family:var(--font); 223} 224.yesno-row{display:flex;gap:10px;} 225.yesno-opt{ 226 flex:1;display:flex;align-items:center;justify-content:center;gap:7px; 227 padding:11px;border-radius:9px;background:var(--card);border:1.5px solid var(--bdr); 228 cursor:pointer;font-size:13px;font-weight:600;color:var(--slate); 229 transition:all .16s; 230} 231.yesno-opt:hover{border-color:var(--o-bd);background:var(--o-lter);color:var(--o);} 232.yesno-opt.sel{border-color:var(--o);background:var(--o-lt);color:var(--o);} 233.radio-opt,.check-opt{ 234 display:flex;align-items:center;gap:10px;padding:11px 14px; 235 border-radius:9px;background:var(--card);border:1.5px solid var(--bdr); 236 cursor:pointer;font-size:13px;color:var(--navy);margin-bottom:8px; 237 transition:border-color .14s,background .14s; 238} 239.radio-opt:hover,.check-opt:hover{border-color:var(--o-bd);background:var(--o-lter);} 240.radio-opt input,.check-opt input{width:16px;height:16px;min-width:16px;accent-color:var(--o);cursor:pointer;} 241 242/* ââ REVIEW ââ */ 243.review-sec{margin-bottom:24px;} 244.review-hdr{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;} 245.review-hdr-lbl{font-size:11px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.1em;} 246.review-edit{font-size:12.5px;font-weight:600;color:var(--o);background:none;border:none;cursor:pointer;transition:color .14s;} 247.review-edit:hover{color:var(--o-dk);} 248.review-tbl{border:1px solid var(--bdr);border-radius:var(--r-md);overflow:hidden;} 249.review-row{display:flex;align-items:flex-start;padding:12px 18px;gap:16px;border-bottom:1px solid var(--bdr-lt);} 250.review-row:last-child{border-bottom:none;} 251.review-row:hover{background:var(--o-lter);} 252.review-key{font-size:12px;color:var(--muted);font-weight:600;width:140px;flex-shrink:0;padding-top:2px;line-height:1.45;} 253.review-val{font-size:13px;color:var(--navy);word-break:break-word;line-height:1.55;} 254.review-qa{padding:14px 18px;border-bottom:1px solid var(--bdr-lt);display:flex;flex-direction:column;gap:7px;} 255.review-qa:last-child{border-bottom:none;} 256.review-qa:hover{background:var(--o-lter);} 257.review-q{font-size:12.5px;color:var(--navy);font-weight:700;line-height:1.5;} 258.review-a{font-size:13px;color:var(--slate);word-break:break-word;white-space:pre-wrap;line-height:1.6;padding-left:2px;} 259.consent-box{ 260 display:flex;align-items:flex-start;gap:12px; 261 background:var(--o-lter);border:1px solid var(--o-bd); 262 border-radius:var(--r-md);padding:16px 18px;margin-top:8px; 263} 264.consent-txt{font-size:12.5px;color:var(--slate);line-height:1.7;} 265 266/* ââ NAV BUTTONS ââ */ 267.nav-row{display:flex;align-items:center;justify-content:space-between;margin-top:18px;gap:10px;} 268.btn{ 269 display:inline-flex;align-items:center;justify-content:center;gap:6px; 270 font:600 13.5px var(--font);cursor:pointer;border-radius:var(--r-md);border:none; 271 transition:all .18s;white-space:nowrap; 272} 273.btn-ghost{ 274 height:40px;padding:0 18px; 275 background:var(--card);color:var(--slate);border:1.5px solid var(--bdr); 276} 277.btn-ghost:hover{background:var(--bg);border-color:var(--navy);color:var(--navy);} 278.btn-primary{ 279 height:40px;padding:0 22px; 280 background:linear-gradient(135deg,var(--o) 0%,#F06020 100%); 281 color:#fff;box-shadow:var(--sh-o); 282} 283.btn-primary:hover{transform:translateY(-2px);box-shadow:var(--sh-o-h);} 284.btn-primary:disabled{opacity:.55;cursor:not-allowed;transform:none;box-shadow:var(--sh-o);} 285.btn-primary .arr{transition:transform .18s;} 286.btn-primary:hover .arr{transform:translateX(4px);} 287.btn-submit{height:44px;padding:0 28px;font-size:14px;font-weight:700;animation:glowPulse 3s ease-in-out infinite;} 288.btn-submit:hover{animation:none;} 289 290/* ââ SUCCESS / ERROR ââ */ 291.success-screen{min-height:100vh;display:flex;align-items:center;justify-content:center;background:var(--bg);} 292.success-card{ 293 max-width:440px;width:100%;margin:24px;background:var(--card); 294 border:1px solid var(--bdr);border-radius:var(--r-xl); 295 box-shadow:var(--sh-md);padding:48px 36px;text-align:center; 296 animation:popIn .5s cubic-bezier(.34,1.56,.64,1) both; 297} 298.success-ico{ 299 width:68px;height:68px;border-radius:50%; 300 background:linear-gradient(135deg,var(--o),#F06020); 301 display:flex;align-items:center;justify-content:center; 302 margin:0 auto 22px;box-shadow:var(--sh-o);color:#fff; 303} 304.success-title{font-size:24px;font-weight:900;color:var(--navy);margin-bottom:9px;letter-spacing:-.3px;} 305.success-body{font-size:14px;color:var(--slate);line-height:1.65;margin-bottom:6px;} 306.success-sub{font-size:12.5px;color:var(--muted);margin-bottom:28px;} 307.err-banner{ 308 display:flex;align-items:center;gap:8px; 309 background:#FFF5F5;border:1px solid #FECACA; 310 border-radius:var(--r-md);padding:11px 14px;color:#DC2626;font-size:13px;margin-top:12px; 311} 312 313@media(max-width:640px){ 314 .hn-nav-inner,.apply-hero-inner,.apply-body{padding-left:16px;padding-right:16px;} 315 .form-card-body{padding:16px;} 316} 317`,xe=s=>({full_time:"Full-time",part_time:"Part-time",contract:"Contract",internship:"Internship",temporary:"Temporary"})[s]??s,he=s=>({remote:"Remote",onsite:"On-site",hybrid:"Hybrid"})[s]??s;function me(s,f=[]){const h={},m=[];for(const c of s){if(c.type==="file"||f.includes(c.id))continue;const l=c.section||"Application Details";h[l]||(h[l]=[],m.push(l)),h[l].push(c)}return{sections:h,order:m}}const A=1,T=2,I=3,D=4;function q({value:s,onChange:f,placeholder:h,rows:m=4}){const[c,l]=g.useState(!1),[j,N]=g.useState(!1),v=g.useRef(null),a=g.useRef(s),S=g.useRef(f),z=g.useRef(!1),C=g.useRef(0);a.current=s,S.current=f,z.current=c,g.useState(()=>{const x=window.SpeechRecognition||window.webkitSpeechRecognition;if(N(!!x),!x)return;const w=new x;w.continuous=!0,w.interimResults=!0,w.lang="en-US",w.onresult=p=>{let M="";for(let u=C.current;u<p.results.length;u++)p.results[u].isFinal&&(M+=p.results[u][0].transcript,C.current=u+1);const b=M.trim();if(b){const u=a.current;S.current(u?`${u.replace(/\s+$/,"")} ${b}`:b)}},w.onerror=p=>{(p==null?void 0:p.error)==="no-speech"||(p==null?void 0:p.error)==="aborted"||l(!1)},w.onend=()=>
317{if(z.current)try{w.start()}catch{l(!1)}else l(!1)},v.current=w});const L=()=>{if(v.current)if(c){z.current=!1,l(!1);try{v.current.stop()}catch{}}else{C.current=0,z.current=!0,l(!0);try{v.current.start()}catch{l(!1)}}};return e.jsxs("div",{style:{position:"relative"},children:[e.jsx("textarea",{value:s,onChange:x=>f(x.target.value),placeholder:h,rows:m,style:{width:"100%",fontFamily:"var(--font)",fontSize:13.5,color:"var(--navy)",background:"var(--card)",border:"1.5px solid var(--bdr)",borderRadius:"var(--r-md)",outline:"none",resize:"vertical",lineHeight:1.65,minHeight:100,padding:"11px 44px 11px 12px",transition:"border-color .15s,box-shadow .15s"},onFocus:x=>{x.target.style.borderColor="var(--o)",x.target.style.boxShadow="0 0 0 3px rgba(232,71,10,.1)"},onBlur:x=>{x.target.style.borderColor="var(--bdr)",x.target.style.boxShadow="none"}}),j&&e.jsx("button",{type:"button",onClick:L,style:{position:"absolute",bottom:8,right:8,width:30,height:30,borderRadius:7,border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",background:c?"#DC2626":"var(--o-lt)",color:c?"#fff":"var(--o)",transition:"all .15s"},children:c?e.jsx(ce,{size:13}):e.jsx(pe,{size:13})})]})}function fe({job:s,slug:f}){var $,H,W,O,Q,Y,J,X,G;const h=g.useRef(null),[m,c]=g.useState(null),[l,j]=g.useState(A),[N,v]=g.useState(!1),[a,S]=g.useState(!1),[z,C]=g.useState(null),[L]=g.useState(()=>Date.now()),[x,w]=g.useState({}),[p,M]=g.useState({}),[b,u]=g.useState({}),[U,se]=g.useState(!1),P=(r,t)=>{w(i=>({...i,[r]:t})),u(i=>({...i,[r]:""}))},R=!!(($=s.screeningQuestions)!=null&&$.length),d=s.dynamicSchema.find(r=>/cover.?letter/i.test(r.id)||/cover.?letter/i.test(r.label))??null,E=[{id:A,label:"Resume",icon:e.jsx(o.FileText,{size:14})},{id:T,label:"Application",icon:e.jsx(o.User,{size:14})},...R?[{id:I,label:"Questions",icon:e.jsx(o.MessageSquare,{size:14})}]:[],{id:D,label:"Review",icon:e.jsx(o.CheckIco,{size:14})}],B=E.findIndex(r=>
317r.id===l),{sections:ie,order:V}=me(s.dynamicSchema,d?[d.id]:[]),ae=r=>{const t={};if(r===A&&(m||(t.__resume="Please upload your resume to continue"),d!=null&&d.required)){const i=x[d.id];(!i||typeof i=="string"&&!i.trim())&&(t[d.id]=`${d.label} is required`)}if(r===T){for(const i of s.dynamicSchema)if(i.type!=="file"&&i.id!==(d==null?void 0:d.id)&&i.required){const n=x[i.id];(!n||(Array.isArray(n)?n.length===0:n.trim()===""))&&(t[i.id]=`${i.label} is required`)}}if(r===I&&R)for(const i of s.screeningQuestions)i.isRequired&&!String(p[i.id]||"").trim()&&(t[`sq_${i.id}`]="This answer is required");return u(t),Object.keys(t).length===0},te=()=>{if(!ae(l)){setTimeout(()=>{const t=document.querySelector("[data-field-error]");t==null||t.scrollIntoView({behavior:"smooth",block:"center"})},50);return}const r=E[B+1];r&&j(r.id)},ne=()=>{const r=E[B-1];r&&j(r.id)},oe=async()=>{if(!U){u(r=>({...r,__consent:"Please agree to the consent statement before submitting"})),setTimeout(()=>{const r=document.querySelector("[data-field-error]");r==null||r.scrollIntoView({behavior:"smooth",block:"center"})},50);return}v(!0),C(null);try{const r=new FormData;r.append("resume",m),r.append("consent","true"),r.append("_ts",String(L)),r.append("_hp","");const t={};for(const k of s.dynamicSchema)t[k.id]=x[k.id]??null;r.append("dynamicResponses",JSON.stringify(t));const i=k=>{for(const Z of s.dynamicSchema)if(k.some(_=>Z.label.toLowerCase().includes(_))){const _=x[Z.id];if(typeof _=="string")return _}return""},n=i(["full name"]);if(n){const k=n.trim().split(/\s+/);r.append("firstName",k[0]||""),r.append("lastName",k.slice(1).join(" ")||"")}else r.append("firstName",i(["first name"])),r.append("lastName",i(["last name","surname"]));r.append("email",i(["email"])),r.append("phone",i(["phone","mobile","contact number"])),r.append("location",i(["location","city","address","current location"])),r.append("linkedinUrl",i(["linkedin"])),r.append("githubUrl",i(["github"])),r.append("websiteUrl",i(["website","portfolio"]));const F={};if(R)for(const k of s.screeningQuestions)F[k.id]=p[k.id]||"";r.append("screeningResponses",JSON.stringify(F));const K=await fetch(`/api/apply/${encodeURIComponent(f)}/apply`,{method:"POST",body:r}),de=await K.json();if(!K.ok)throw new Error(de.error||"Submission failed");S(!0)}catch(r){C(r.message||"Something went wrong. Please try again.")}finally{v(!1)}},le=((O=(W=(H=s.organization)==null?void 0:H.name)==null?void 0:W[0])==null?void 0:O.toUpperCase())||"?";return a?e.jsxs(e.Fragment,{children:[e.jsx("style",{children:re}),e.jsx("div",{className:"success-screen",children:e.jsxs("div",{className:"success-card",children:[e.jsx("div",{className:"success-ico",children:e.jsx(o.CheckIco,{size:32})}),e.jsx("div",{className:"success-title",children:"Application Submitted!"}),e.jsxs("p",{className:"success-body",children:["Thank you for applying to ",e.jsx("strong",{children:s.title}),(Q=s.organization)!=null&&Q.name?` at ${s.organization.name}`:"",". We'll review your application and reach out soon."]}),e.jsx("p",{className:"success-sub",children:"You'll hear back within a few business days."})]})})]}):e.jsxs(e.Fragment,{children:[e.jsx("style",{children:re}),e.jsx("div",{style:{position:"absolute",left:-9999,top:-9999},"aria-hidden":"true",children:e.jsx("input",{type:"text",name:"website2",tabIndex:-1,autoComplete:"off",defaultValue:""})}),e.jsxs("div",{style:{minHeight:"100vh",background:"var(--bg)"},children:[e.jsx("nav",{className:"hn-nav",children:e.jsx("div",{className:"hn-nav-inner",children:e.jsxs("button",{className:"back-btn",onClick:()=>history.back(),children:[e.jsx(o.ArrowLeft,{size:14})," Back to Job"]})})}),e.jsxs("div",{className:"apply-hero",children:[e.jsx("div",{className:"apply-hero-dots"}),e.jsxs("div",{className:"apply-hero-inner",children:[e.jsx("div",{className:"hero-co-logo",children:ee((Y=s.organization)==null?void 0:Y.logoUrl)?e.jsx("img",{src:ee((J=s.organization)==null?void 0:J.logoUrl),alt:(X=s.organization)==null?void 0:X.name}):e.jsx("span",{className:"hero-co-init",children:le})}),e.jsxs("div",{className:"hero-meta",children:[((G=s.organization)==null?void 0:G.name)&&e.jsx("div",{className:"hero-co-name",children:s.organization.name}),e.jsx("h1",{className:"hero-job-title",children:s.title}),e.jsxs("div",{className:"hero-pills",children:[s.department&&e.jsxs("span",{className:"hero-pill",children:[e.jsx(o.Users,{size:12}),s.department]}),s.employmentType&&e.jsxs("span",{className:"hero-pill",children:[e.jsx(o.Briefcase,{size:12}),xe(s.employmentType)]}),s.locationType&&e.jsxs("span",{className:"hero-pill",children:[e.jsx(o.Globe,{size:12}),he(s.locationType)]}),s.location&&e.jsxs("span",{className:"hero-pill",children:[e.jsx(o.MapPin,{size:12}),s.location]})]})]})]})]}),e.jsx("div",{className:"apply-body",children:e.jsx("div",{className:"apply-grid",children:e.jsxs("div",{children:[e.jsx("div",{className:"stepper-wrap",children:e.jsx("div",{className:"stepper",children:E.map((r,t)=>{const i=l>
317r.id,n=l===r.id;return e.jsxs("div",{className:"step-item",style:t<E.length-1?{flex:1}:{},children:[e.jsx("div",{className:`step-circle${i?" done":n?" active":""}`,children:i?e.jsx(o.CheckIco,{size:14}):r.icon}),e.jsx("span",{className:`step-label${i?" done":n?" active":""}`,children:r.label}),t<E.length-1&&e.jsx("div",{className:`step-line${i?" done":""}`})]},r.id)})})}),l===A&&e.jsxs("div",{className:"form-card",children:[e.jsxs("div",{className:"form-card-head",children:[e.jsx("div",{className:"form-head-ico",children:e.jsx(o.FileText,{size:16})}),e.jsxs("div",{children:[e.jsx("div",{className:"form-card-title",children:"Resume / CV"}),e.jsx("div",{className:"form-card-sub",children:"Upload your resume to get started"})]})]}),e.jsx("div",{className:"form-card-body",children:e.jsxs("div",{className:"form-fields",children:[e.jsxs("div",{className:"field-group",children:[e.jsxs("label",{className:"field-label",children:[e.jsx("span",{className:"req-star",children:"*"})," Resume / CV"]}),m?e.jsxs("div",{className:"file-pill",children:[e.jsx("div",{className:"file-ico",children:e.jsx(o.FileText,{size:16})}),e.jsxs("div",{children:[e.jsx("div",{className:"file-nm",children:m.name}),e.jsxs("div",{className:"file-sz",children:[(m.size/1024).toFixed(0)," KB"]})]}),e.jsx("button",{className:"file-rm",onClick:()=>c(null),children:e.jsx(o.X,{size:14})})]}):e.jsxs("div",{className:`drop-zone${b.__resume?" err-zone":""}`,onClick:()=>{var r;return(r=h.current)==null?void 0:r.click()},children:[e.jsx("input",{ref:h,type:"file",accept:".pdf,.doc,.docx",style:{display:"none"},onChange:r=>{var i;const t=(i=r.target.files)==null?void 0:i[0];t&&(c(t),u(n=>({...n,__resume:""}))),r.target.value=""}}),e.jsx("div",{className:"drop-icon",children:e.jsx(o.Upload,{size:20})}),e.jsx("div",{className:"drop-title",children:"Click to upload your resume"}),e.jsx("div",{className:"drop-hint",children:"PDF, DOC or DOCX · Max 10 MB"})]}),b.__resume&&e.jsxs("span",{className:"field-err","data-field-error":!0,children:[e.jsx(o.AlertCircle,{size:12}),b.__resume]})]}),d&&e.jsxs("div",{className:"field-group",style:{marginTop:18},children:[e.jsxs("label",{className:"field-label",children:[d.required&&e.jsx("span",{className:"req-star",children:"*"})," ",d.label,!d.required&&e.jsx("span",{className:"opt-tag",style:{marginLeft:6,fontSize:11,fontWeight:500,color:"var(--muted)"},children:"Optional"})]}),e.jsx(q,{value:x[d.id]||"",onChange:r=>P(d.id,r),placeholder:d.placeholder||"Write a brief cover letter â why you're a great fit for this roleâ¦",rows:5}),b[d.id]&&e.jsxs("span",{className:"field-err","data-field-error":!0,children:[e.jsx(o.AlertCircle,{size:12}),b[d.id]]})]})]})})]}),l===T&&e.jsxs("div",{className:"form-card",children:[e.jsxs("div",{className:"form-card-head",children:[e.jsx("div",{className:"form-head-ico",children:e.jsx(o.User,{size:16})}),e.jsxs("div",{children:[e.jsx("div",{className:"form-card-title",children:"Application Details"}),e.jsx("div",{className:"form-card-sub",children:"Please fill in your details below"})]})]}),e.jsx("div",{className:"form-card-body",children:e.jsx("div",{className:"form-fields",children:V.map((r,t)=>e.jsxs("div",{children:[V.length>1&&e.jsxs(e.Fragment,{children:[t>0&&e.jsx("hr",{className:"section-divider"}),e.jsx("div",{className:"section-heading",children:r})]}),ie[r].map(i=>e.jsx(ue,{field:i,value:x[i.id]??"",onChange:n=>P(i.id,n),error:b[i.id]},i.id))]},r))})})]}),l===I&&R&&e.jsxs("div",{className:"form-card",children:[e.jsxs("div",{className:"form-card-head",children:[e.jsx("div",{className:"form-head-ico",children:e.jsx(o.MessageSquare,{size:16})}),e.jsxs("div",{children:[e.jsx("div",{className:"form-card-title",children:"Screening Questions"}),e.jsx("div",{className:"form-card-sub",children:"Please answer all questions honestly"})]})]}),e.jsx("div",{className:"form-card-body",children:s.screeningQuestions.map((r,t)=>e.jsxs("div",{className:"question-card",children:[e.jsxs("div",{className:"q-label",children:[e.jsx("span",{className:"q-num",children:t+1}),e.jsxs("span",{children:[r.isRequired&&e.jsx("span",{className:"req-star",children:"* "}),r.questionText]})]}),r.questionType==="yes_no"&&e.jsx("div",{className:"yesno-row",children:[{k:"Yes"},{k:"No"}].map(({k:i})=>e.jsxs("div",{className:`yesno-opt${p[r.id]===i?" sel":""}`,onClick:()=>{M(n=>({...n,[r.id]:i})),u(n=>({...n,[`sq_${r.id}`]:""}))},children:[i==="Yes"?e.jsx(o.CheckIco,{size:14}):e.jsx(o.X,{size:14}),i]},i))}),(r.questionType==="multiple_choice"||r.questionType==="single_choice")&&r.options&&e.jsx("div",{children:r.options.map((i,n)=>e.jsxs("label",{className:"radio-opt",children:[e.jsx("input",{type:"radio",name:`q-${r.id}`,value:i,checked:p[r.id]===i,onChange:()=>{M(F=>({...F,[r.id]:i})),u(F=>({...F,[`sq_${r.id}`]:""}))}}),e.jsx("span",{children:i})]},n))}),(r.questionType==="numeric"||r.questionType==="number")&&e.jsx("div",{className:"input-wrap",children:e.jsx("input",{type:"number",className:"no-ico",value:p[r.id]||"",onChange:i=>{M(n=>({...n,[r.id]:i.target.value})),u(n=>({...n,[`sq_${r.id}`]:""}))},placeholder:"Enter a number"})}),(r.questionType==="long_answer"||r.questionType==="long_text"||r.questionType==="textarea")&&e.jsx(q,{value:p[r.id]||"",onChange:i=>{M(n=>({...n,[r.id]:i})),u(n=>({...n,[`sq_${r.id}`]:""}))},placeholder:"Your detailed answerâ¦",rows:4}),!["yes_no","multiple_choice","single_choice","numeric","number","long_answer","long_text","textarea"].includes(r.questionType)&&e.jsx("div",{className:"input-wrap",children:e.jsx("input",{type:"text",className:"no-ico",value:p[r.id]||"",onChange:i=>{M(n=>({...n,[r.id]:i.target.value})),u(n=>({...n,[`sq_${r.id}`]:""}))},placeholder:"Your answerâ¦"})}),b[`sq_${r.id}`]&&e.jsxs("span",{className:"field-err","data-field-error":!0,style:{marginTop:8},children:[e.jsx(o.AlertCircle,{size:12}),b[`sq_${r.id}`]]})]},r.id))})]}),l===D&&e.jsxs("div",{className:"form-card",children:[e.jsxs("div",{className:"form-card-head",children:[e.jsx("div",{className:"form-head-ico",children:e.jsx(o.CheckIco,{size:16})}),e.jsxs("div",{children:[e.jsx("div",{className:"form-card-title",children:"Review Your Application"}),e.jsx("div",{className:"form-card-sub",children:"Check everything looks correct before submitting"})]})]}),e.jsxs("div",{className:"form-card-body",children:[e.jsxs("div",{className:"review-sec",children:[e.jsxs("div",{className:"review-hdr",children:[e.jsx("span",{className:"review-hdr-lbl",children:"Resume"}),e.jsx("button",{className:"review-edit",onClick:()=>j(A),children:"Edit"})]}),e.jsxs("div",{className:"review-tbl",children:[e.jsxs("div",{className:"review-row",children:[e.jsx("span",{className:"review-key",children:"File"}),e.jsx("span",{className:"review-val",style:{display:"flex",alignItems:"center",gap:6},children:m?e.jsxs(e.Fragment,{children:[e.jsx(o.FileText,{size:13,style:{color:"var(--o)"}}),m.name]}):"Not uploaded"})]}),d&&e.jsxs("div",{className:"review-row",children:[e.jsx("span",{className:"review-key",children:d.label}),e.jsx("span",{className:"review-val",style:{whiteSpace:"pre-wrap"},children:(()=>{const r=x[d.id]||"";return r?r.length>200?r.slice(0,200)+"â¦":r:"â"})()})]})]})]}),e.jsxs("div",{className:"review-sec",children:[e.jsxs("div",{className:"review-hdr",children:[e.jsx("span",{className:"review-hdr-lbl",children:"Application Details"}),e.jsx("button",{className:"review-edit",onClick:()=>j(T),children:"Edit"})]}),e.jsx("div",{className:"review-tbl",children:s.dynamicSchema.filter(r=>r.type!=="file").filter(r=>r.id!==(d==null?void 0:d.id)).map(r=>{const t=x[r.id],i=Array.isArray(t)?t.join(", "):t||"â";return e.jsxs("div",{className:"review-row",children:[e.jsx("span",{className:"review-key",children:r.label}),e.jsx("span",{className:"review-val",children:i||"â"})]},r.id)})})]}),R&&Object.keys(p).length>0&&e.jsxs("div",{className:"review-sec",children:[e.jsxs("div",{className:"review-hdr",children:[e.jsx("span",{className:"review-hdr-lbl",children:"Screening Questions"}),e.jsx("button",{className:"review-edit",onClick:()=>j(I),children:"Edit"})]}),e.jsx("div",{className:"review-tbl",children:s.screeningQuestions.map((r,t)=>p[r.id]&&e.jsxs("div",{className:"review-qa",children:[e.jsxs("div",{className:"review-q",children:["Q",t+1,". ",r.questionText]}),e.jsx("div",{className:"review-a",children:p[r.id]})]},r.id))})]}),e.jsxs("label",{className:"consent-box",style:{cursor:"pointer"},children:[e.jsx("input",{type:"checkbox",checked:U,onChange:r=>{se(r.target.checked),u(t=>({...t,__consent:""}))},style:{width:16,height:16,minWidth:16,marginTop:1,accentColor:"var(--o)",cursor:"pointer"}}),e.jsxs("span",{className:"consent-txt",children:["I consent to my personal information being processed for recruitment purposes. I understand this includes my resume, contact details, and responses provided in this form. ",e.jsx("strong",{children:"*"})]})]}),b.__consent&&e.jsxs("span",{className:"field-err","data-field-error":!0,children:[e.jsx(o.AlertCircle,{size:12}),b.__consent]}),z&&e.jsxs("div",{className:"err-banner",children:[e.jsx(o.AlertCircle,{size:14}),z]})]})]}),e.jsxs("div",{className:"nav-row",children:[B>0?e.jsxs("button",{className:"btn btn-ghost",onClick:ne,children:[e.jsx(o.ArrowLeft,{size:14}),"Back"]}):e.jsx("div",{}),l===D?e.jsx("button",{className:"btn btn-primary btn-submit",onClick:oe,disabled:N||!U,children:N?e.jsxs(e.Fragment,{children:[e.jsx("svg",{style:{width:15,height:15,animation:"spin 1s linear infinite"},viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:e.jsx("path",{d:"M12 2v4M12 18v4M4.93 4.93l2.83 2.83M16.24 16.24l2.83 2.83M2 12h4M18 12h4M4.93 19.07l2.83-2.83M16.24 7.76l2.83-2.83"})}),"Submittingâ¦"]}):e.jsxs(e.Fragment,{children:["Submit Application ",e.jsx(o.Send,{size:14,className:"arr"})]})}):e.jsxs("button",{className:"btn btn-primary",onClick:te,children:["Continue ",e.jsx(o.ChevronRight,{size:14,className:"arr"})]})]})]})})})]})]})}function ue({field:s,value:f,onChange:h,error:m}){const c=typeof f=="string"?f:"",l=Array.isArray(f)?f:[],j=e.jsx("label",{className:"field-label",children:s.required?e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"req-star",children:"*"})," ",s.label]}):e.jsxs(e.Fragment,{children:[s.label," ",e.jsx("span",{className:"opt-tag",children:"Optional"})]})}),N=()=>{const a=s.label.toLowerCase();return s.type==="email"||a.includes("email")?e.jsx("span",{className:"input-ico",children:e.jsxs("svg",{width:14,height:14,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.8,strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"}),e.jsx("path",{d:"M22 6l-10 7L2 6"})]})}):s.type==="phone"||a.includes("phone")||a.includes("mobile")?e.jsx("span",{className:"input-ico",children:e.jsx("svg",{width:14,height:14,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.8,strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07A19.5 19.5 0 0 1 4.69 13a19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 3.61 2h3a2 2 0 0 1 2 1.72c.127.96.361 1.903.7 2.81a2 2 0 0 1-.45 2.11L7.91 9.91a16 16 0 0 0 6.06 6.06l1.27-1.27a2 2 0 0 1 2.11-.45c.907.339 1.85.573 2.81.7A2 2 0 0 1 22 16.92z"})})}):a.includes("location")||a.includes("city")||a.includes("address")?e.jsx("span",{className:"input-ico",children:e.jsx("svg",{width:14,height:14,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.8,strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("path",{d:"M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"})})}):a.includes("linkedin")?e.jsx("span",{className:"input-ico",children:e.jsxs("svg",{width:14,height:14,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.8,strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-4 0v7h-4v-7a6 6 0 0 1 6-6z"}),e.jsx("path",{d:"M2 9h4v12H2z"})]})}):a.includes("github")||a.includes("website")||a.includes("portfolio")||s.type==="url"?e.jsx("span",{className:"input-ico",children:e.jsxs("svg",{width:14,height:14,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.8,strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}),e.jsx("path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"})]})}):s.type==="number"||a.includes("experience")||a.includes("years")||a.includes("ctc")||a.includes("salary")||a.includes("notice")?e.jsx("span",{className:"input-ico",children:e.jsxs("svg",{width:14,height:14,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.8,strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M20 7H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2z"}),e.jsx("path",{d:"M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16"})]})}):e.jsx("span",{className:"input-ico",children:e.jsxs("svg",{width:14,height:14,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.8,strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"}),e.jsx("path",{d:"M12 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8"})]})})};let v;switch(s.type){case"textarea":v=e.jsx(q,{value:c,onChange:a=>h(a),placeholder:s.placeholder||"",rows:3});break;case"select":v=e.jsxs("select",{className:"no-ico",value:c,onChange:a=>h(a.target.value),children:[e.jsx("option",{value:"",children:s.placeholder||"Selectâ¦"}),(s.options||[]).map(a=>e.jsx("option",{value:a,children:a},a))]});break;case"radio":v=e.jsx("div",{children:(s.options||[]).map(a=>e.jsxs("label",{className:"radio-opt",children:[e.jsx("input",{type:"radio",name:s.id,value:a,checked:c===a,onChange:()=>h(a)}),e.jsx("span",{children:a})]},a))});break;case"checkbox":v=e.jsx("div",{children:(s.options||[]).map(a=>e.jsxs("label",{className:"check-opt",children:[e.jsx("input",{type:"checkbox",checked:l.includes(a),onChange:S=>{const z=S.target.checked?[...l,a]:l.filter(C=>C!==a);h(z)}}),e.jsx("span",{children:a})]},a))});break;case"file":v=e.jsx("div",{style:{fontSize:13,color:"var(--muted)",padding:"10px 12px",background:"var(--bg)",borderRadius:"var(--r-md)",border:"1.5px solid var(--bdr)"},children:"Upload via resume field above"});break;case"number":v=e.jsxs("div",{className:"input-wrap",children:[N(),e.jsx("input",{type:"number",value:c,placeholder:s.placeholder||"",className:m?"err":"",onChange:a=>h(a.target.value)})]});break;case"date":v=e.jsx("div",{className:"input-wrap",children:e.jsx("input",{type:"date",className:"no-ico",value:c,style:{colorScheme:"light"},onChange:a=>h(a.target.value)})});break;default:{const a=s.type==="email"?"email":s.type==="phone"?"tel":s.type==="url"?"url":"text";v=e.jsxs("div",{className:"input-wrap",children:[N(),e.jsx("input",{type:a,value:c,placeholder:s.placeholder||"",className:m?"err":"",onChange:S=>h(S.target.value)})]})}}return e.jsxs("div",{className:"field-group",children:[j,v,m&&e.jsxs("span",{className:"field-err","data-field-error":!0,children:[e.jsxs("svg",{width:12,height:12,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.8,strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10z"}),e.jsx("path",{d:"M12 8v4"}),e.jsx("path",{d:"M12 16h.01"})]}),m]})]})}export{fe as default};
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.