PageSourceSearch

https://myjobscore.com/_next/static/chunks/cef891e0c0d5a5d5.js

js myjobscore.com collected 2026-10-02 00:53:19 UTC 249,954 bytes, 34 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,741499,e=>{"use strict";var t=e.i(635350),s=e.i(528826),r=e.i(688061);e.s(["default",0,({currentRegionCode:e,redirectMapping:a={},baseUrl:n="/",allowedRegions:o=["KY","TN","MO","IN","OH","IMN","CA","BC","AB","VA","WV","MI","IL","OK","AR","GA","NC","PA","FL","SC","MD","DE","NJ","NY","CT","MA","VT","NH","ME","WI","MN","IA","KS","TX","LA","MS","AL","CO","NM","AZ","NV","OR","WA","ID","MT","WY","SD","ND","NE","UT","RI","DC","AK","HI","ON","QC","MB","SK","NS","NB","PE","NL","YT","NT","NU","BE","BK","BR","BU","CB","CH","CW","CD","CM","DB","DV","DO","ERY","ES","GL","GM","HM","HR","HERT","IOW","KT","LE","LN","NO","OX","SH","SO","SY"],allowedCountries:l=["US","CA","UK"]})=>{let[i,c]=(0,r.useState)(null),[d,u]=(0,r.useState)(!0),[m,h]=(0,r.useState)(null),[x,p]=(0,r.useState)(!1),f=(0,s.useRouter)();(0,r.useEffect)(()=>{(async()=>{try{{let e=sessionStorage.getItem("user-location-data");if(e){let t=JSON.parse(e);c(t),u(!1);return}}let e=await fetch("https://ipapi.co/json");if(!e.ok)throw Error("Failed to fetch location data");let t=await e.json();c(t),sessionStorage.setItem("user-location-data",JSON.stringify(t))}catch(e){h("Unable to detect your location"),console.error("Error fetching location:",e)}finally{u(!1)}})()},[]),(0,r.useEffect)(()=>{sessionStorage.getItem(`region-banner-dismissed-${e}`)&&p(!0)},[e]);let b=()=>0===o.length||i&&o.some(e=>e.toLowerCase()===i.region_code.toLowerCase()),g=()=>0===l.length||i&&l.some(e=>e.toLowerCase()===i.country_code.toLowerCase());return(console.log({isRegionAllowed:b(),isCountryAllowed:g(),locationData:i,currentRegionCode:e}),d||m||x||!i||i.region_code.toLowerCase()===e.toLowerCase()||!b()||!g())?null:(0,t.jsx)("div",{className:"w-full bg-blue-50 border-b border-blue-100 px-4 py-3",children:(0,t.jsxs)("div",{className:"max-w-7xl mx-auto flex flex-col sm:flex-row sm:items-center sm:justify-between gap-2",children:[(0,t.jsx)("div",{children:(0,t.jsxs)("p",{className:"text-sm text-blue-800",children:[(0,t.jsxs)("span",{className:"font-medium",children:["We noticed you're from ",i.region,"."]})," Would you like to view job listings for your region instead?"]})}),(0,t.jsxs)("div",{className:"flex space-x-3 shrink-0",children:[(0,t.jsxs)("button",{onClick:()=>{if(i?.region_code&&b()&&g()){if(a[i.region_code])return void f.push(a[i.region_code]);f.push(`/${i.region.toLowerCase()}`)}},"data-testid":"region-redirect-btn",className:"text-sm font-medium text-blue-600 hover:text-blue-800",children:["Yes, show me ",i.region," jobs"]}),(0,t.jsx)("button",{onClick:()=>{p(!0),sessionStorage.setItem(`region-banner-dismissed-${e}`,"true"),setTimeout(()=>{sessionStorage.removeItem(`region-banner-dismissed-${e}`)},864e5)},"data-testid":"region-dismiss-btn",className:"text-sm font-medium text-gray-500 hover:text-gray-700",children:"No, thanks"})]})]})})}])},488476,e=>{"use strict";e.s(["PROOF_TILE_PANEL_ENABLED",0,!1])},322046,e=>{"use strict";let t=(0,e.i(4717).default)("message-circle",[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]]);e.s(["MessageCircle",()=>t],322046)},806827,e=>{"use strict";var t=e.i(635350),s=e.i(688061);function r({jobCount:e}){let s=e.toLocaleString();return(0,t.jsxs)("div",{className:"w-full flex flex-col gap-1 pt-3 pb-13 bg-white",children:[(0,t.jsx)("div",{className:"text-sm text-black font-normal text-left ml-2",children:(0,t.jsxs)("p",{children:["powered by Geescore",(0,t.jsx)("span",{className:"text-xs align-super",children:"™"})]})}),(0,t.jsx)("div",{className:"text-[36px] sm:text-[50px] font-bold text-[#000066] leading-none",children:s}),(0,t.jsx)("span",{style:{letterSpacing:"5%"},className:"text-[26px] sm:text-[37px] font-bold text-[#0AB911]",children:"fresh jobs"})]})}var a=e.i(544129),n=e.i(550792),o=e.i(488476),l=e.i(580324),i=e.i(715760),c=e.i(664216);let d=({isOpen:e,onClose:r,onUploadSuccess:a})=>{let[n,o]=(0,s.useState)(null),[d,u]=(0,s.useState)(!1),[m,h]=(0,s.use
1State)(""),[x,p]=(0,s.useState)(null),f=(0,s.useRef)(null);(0,s.useEffect)(()=>(e?document.body.style.overflow="hidden":document.body.style.overflow="unset",()=>{document.body.style.overflow="unset"}),[e]);let b=async()=>{if(!n)return void p("Please select a file first");u(!0),p(null);try{let e=(0,c.getAuthData)(),t=e.seeker_id?.toString(),s=e.access_token;if(!t||!s)throw Error("Authentication required. Please log in again.");h("Getting upload URL...");let o=await (0,l.getSignedUrl)(n,"resume",t);h("Uploading file..."),await (0,l.uploadFileToS3)(o.uploadURL,n),h("Updating profile..."),await i.default.put(`/job-seeker/${t}`,{filepath:o.filepath},{headers:{"Content-Type":"text/plain;charset=UTF-8"}}),h("Upload completed successfully!"),setTimeout(()=>{a?.(),r()},2e3)}catch(e){console.error("Upload error:",e),p(e instanceof Error?e.message:"Upload failed. Please try again."),h("")}finally{u(!1)}},g=()=>{d||(o(null),h(""),p(null),r())};return e?(0,t.jsxs)("div",{className:"fixed inset-0 z-50 overflow-y-auto",children:[(0,t.jsx)("div",{className:"fixed inset-0 bg-gray-300 bg-opacity-50 transition-opacity",onClick:g,style:{opacity:"0.6"}}),(0,t.jsx)("div",{className:"flex items-center justify-center min-h-screen p-4",children:(0,t.jsxs)("div",{className:"relative bg-white rounded-lg shadow-xl w-full max-w-md overflow-hidden border border-blue-200",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between p-6 border-b border-gray-200",children:[(0,t.jsx)("h2",{className:"text-xl font-semibold text-[#293E99]",children:"Upload Resume"}),(0,t.jsx)("div",{className:"flex items-center gap-2",children:(0,t.jsx)("button",{onClick:g,"data-testid":"resume-upload-close-btn",className:"text-gray-400 hover:text-gray-600 transition-colors",disabled:d,children:(0,t.jsx)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})})]}),(0,t.jsx)("div",{className:"p-6",children:(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-[#293E99] font-bold text-sm mb-2",children:"Upload"}),(0,t.jsx)("button",{onClick:()=>f.current?.click(),disabled:d,"data-testid":"resume-upload-choose-file-btn",className:"w-full border border-blue-300 bg-white text-blue-500 py-3 px-4 rounded-md hover:bg-blue-50 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:"CHOOSE FILE"}),(0,t.jsx)("input",{ref:f,type:"file",accept:".pdf,.doc,.docx",onChange:e=>{let t=e.target.files?.[0];if(t){if(!["application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"].includes(t.type))return void p("Please select a valid file type (PDF, DOC, or DOCX)");if(t.size>0xa00000)return void p("File size must be less than 10MB");o(t),p(null),h(t.name)}},"data-testid":"resume-upload-file-input",className:"hidden",disabled:d})]}),(0,t.jsx)("div",{className:"bg-gray-100 border border-gray-300 rounded-md p-3",children:(0,t.jsx)("div",{className:"text-gray-500 text-sm uppercase",children:m})}),x&&(0,t.jsx)("div",{className:"text-red-600 text-sm bg-red-50 p-3 rounded-md",children:x}),(0,t.jsx)("button",{onClick:b,disabled:!n||d,"data-testid":"resume-upload-submit-btn",className:"w-full bg-[#293E99] text-white py-3 px-4 rounded-md hover:bg-[#1e2d6b] transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:d?"Uploading...":"Upload Resume"})]})})]})})]}):null},u={HOW_TO_SEARCH_LOCAL_JOBS:{title:"How to Search for local Jobs",content:`The My Jobscore service includes a search bar that lets you put in a location, a position title, or a keyword to get more focused search results of job postings.
2The search feature accesses job postings from multiple sources including our own feed. We make every effort to display high value job postings. If you see an interesting job opportunity, don't be afraid to search the company in Google or Bing, the company's own career pages, as well as social networks from TikTok to LinkedIn. 
3Learn more about the company, and find more open job opportunities, by expanding your search.
4We're always using our system to display jobs suited to you, based on your resume and location. 
5An important part of our My Jobscore jobseeker scoring is matching and comparing you for similar jobs to the ones displayed.`},HIGH_SUITABILITY_WORK_DOMAIN:{title:"High Suitability in the correct work domain",content:`The My Jobscore service is designed to give you a score for a job opening, based on your suitability for the job, in the specific, correct work domain. 
6This means that if, for example, you are a professional, certified welder, and the job called for a welder with experience in underwater ship repairs, a high score and high suitability would reflect that you had the underwater work experience needed for the job.
7If you look at your jobscore and want to understand how the service came up with the score, the best explanation is that the scoring algorithm is designed to consider many factors that will determine high suitability in the correct work domain. 
8Scoring is bias-free, purposefully ignoring attributes and parameters that don't directly help determine high suitability in the correct work domain.`},DOWNLOAD_PROOF_OF_AWESOMENESS:{title:"Download your Proof of Awesomeness",content:`You can get a free download of your score. It's a great resource for you, and to pass on to the hiring manager, with your resume when you apply. 
9You'll need to have the full completed profile that includes your name, contact tel number, a link to your LinkedIn profile page, etc. You can also add a professional photo. 
10The score download PDF is unique for every job and jobscore you get.`},CONNECT_WITH_LOCAL_HIRING_MANAGERS:{title:"Connect with local Hiring Managers",content:`When you get a good score for a job opportunity from My Jobscore, many hiring companies are excited to quickly get you in for an interview. In Retail and Quick Serve Restaurants in particular, the local unit manager will often reach out to top scoring candidates, and invite them to come in for a face to face interview. 
11Depending on the company's contract with My Jobscore, you may be able to access the contact information of local Hiring Managers inside our user menus. Typically you will see the 3 closest location's hiring managers contact information.`},HOW_JOBSCORE_WORKS:{title:"How does the My Jobscore service work for job seekers?",content:"Elevate your job search in Kentucky, from Louisville to Lexington, with My Jobscore—the location-focused job board designed to connect you with exceptional opportunities. With instant scoring to assess your fit and a powerful Chrome extension, your search will be smarter and more efficient, providing you with a downloadable proof of awesomeness as a PDF for every application you submit."},FREE_QUEENIE_AI_RESUME_FIXUP:{title:"Free Queenie AI fixup of your resume",content:`My Jobscore offers you a free AI fix up of your r\xe9sum\xe9 using Queenie’s hive mind intelligence. We instantly analyze gaps and issues in your r\xe9sum\xe9, to get you more interviews with hiring companies. The service is free and instant.`},SIDEBAR_SURVEYS:{title:"Sidebar surveys",content:`Get a Higher Score
12
13In the sidebar to the right you will find an opportunity to improve your resume to Get a Higher Score
14We instantly analyze your resume. When you're ready, login and answer a few custom questions to improve your resume for a higher score, and a better chance to get the interview.
15
16• Converts vague responsibilities into quantifiable achievements by asking for specific metrics, percentages, and data points.
17• Identifies and integrates latent industry skills and technical keywords that search algorithms and ATS require.
18• Enhances professional tone by replacing passive language with high-impact action verbs like spearheaded and optimized.
19• Strategic restructuring to ensure your most impressive qualifications and unique value proposition are immediately visible.
20• Contextualizes your experience by asking about the scale, budget, and seniority of your previous roles.
21• Acts as an expert editor to eliminate grammatical inconsistencies and fluff while ensuring machine-readable formatting.
22• Drafts a compelling professional summary that highlights your problem-solving style and future potential.
23
24Tell Us About Yourself
25
26In the sidebar to the right you will see a set of questions about Your life in the community, and your work life
27
28By asking about residency length, favorite local spots, and communication preferences, we build a "
28Local Identity" profile that a resume can't capture. Questions about coupon usage and leisure activities—like hiking or working out—provide a deep-layer understanding of your lifestyle and consumer habits. This allows My Jobscore to move beyond basic data to see you as a neighborhood-integrated candidate, helping us prove to employers that you are a reliable, long-term fit for the community.
29
30For the jobseeker, questions regarding commute distance (2 to 20+ miles) and transportation method (Bus, Car, or Bike) are the ultimate filters against "The Black Hole." By defining your immediate availability and specific job interests (Full-time, Part-time, or Remote), we ensure your feed only displays roles that are physically and logistically reachable. This focus on your daily reality means you only spend time on high-suitability matches where you have the highest probability of actually getting hired.`},UPDATE_RESUME_RESCORE:{title:"Can I update my resume and get rescored?",content:"Yes, you can update your resume at any time to improve your job scores. After uploading a new resume, the system will automatically rescore you for available positions to give you the most accurate matching results."}};var m=e.i(738128),h=e.i(156503),x=e.i(227825);function p({isOpen:e,onClose:r,aboutKYJobs:a,title:n}){return(0,s.useEffect)(()=>(e?document.body.style.overflow="hidden":document.body.style.overflow="unset",()=>{document.body.style.overflow="unset"}),[e]),(0,t.jsx)(x.Transition,{appear:!0,show:e,as:s.Fragment,children:(0,t.jsxs)(h.Dialog,{as:"div",className:"relative z-50",onClose:r,children:[(0,t.jsx)(m.default,{id:"d689eb3311795d56",children:"textarea::-webkit-scrollbar{width:4px}textarea::-webkit-scrollbar-track{background:0 0}textarea::-webkit-scrollbar-thumb{background:#006;border-radius:20px}textarea::-moz-scrollbar-button{width:0}textarea{scrollbar-width:thin;scrollbar-color:#006 transparent;height:auto!important;min-height:50vh!important}textarea::placeholder{color:#000;opacity:1;opacity:1;opacity:1}"}),(0,t.jsx)(x.Transition.Child,{as:s.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-70",leave:"ease-in duration-200",leaveFrom:"opacity-70",leaveTo:"opacity-0",children:(0,t.jsx)("div",{className:"jsx-d689eb3311795d56 fixed inset-0 bg-[#FFFFFFB2] bg-opacity-70"})}),(0,t.jsx)("div",{className:"jsx-d689eb3311795d56 fixed inset-0",children:(0,t.jsx)("div",{className:"jsx-d689eb3311795d56 flex min-h-full items-center justify-center p-4",children:(0,t.jsx)(x.Transition.Child,{as:s.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:(0,t.jsxs)(h.Dialog.Panel,{className:"w-full max-w-4xl transform rounded-4xl bg-white p-8 text-left align-middle transition-all min-h-[60vh] max-h-[85vh] shadow-[0px_4px_34px_0px_#00000040] flex flex-col",children:[(0,t.jsxs)("div",{className:"jsx-d689eb3311795d56 flex justify-between items-center mb-6 sticky top-0 bg-white pt-1 relative",children:[(0,t.jsx)(h.Dialog.Title,{as:"h3",className:"text-2xl font-bold leading-6 text-[#000066]",children:n}),(0,t.jsx)("button",{onClick:r,"data-testid":"about-jobs-close-btn",className:"jsx-d689eb3311795d56 absolute w-[40px] h-[40px] rounded-full bg-white top-[-40px] right-[-40px] text-[#0AB911] hover:text-[#0AB911] text-3xl font-medium flex items-center justify-center shadow-[0px_4px_34px_0px_#00000040]",children:"×"})]}),(0,t.jsx)("div",{className:"jsx-d689eb3311795d56 flex-grow mt-8",children:(0,t.jsx)("textarea",{value:a,readOnly:!0,className:"jsx-d689eb3311795d56 w-full h-full p-6 border-2 rounded-[10px] resize-none text-black-600 focus:outline-none focus:border-[#000066] text-lg leading-relaxed"})})]})})})})]})})}function f({isOpen:e,onClose:r,comments:a}){let[n,o]=(0,s.useState)(0),l=Math.ceil(a.length/2),i=()=>{let e=2*n;return a.slice(e,e+2)};return(0,s.useEffect)(()=>{o(0)},[e,a]),(0,s.useEffect)(()=>(e?document.body.style.overflow="hidden":document.body.style.overflow="unset",()=>{document.body.style.overflow="unset"}),[e]),(0,t.jsx)(x.Transition,{appear:!0,show:e,as:s.Fragment,children:(0,t.jsxs)(h.Dialog,{as:"div",className:"relative z-50",onClose:r,children:[(0,t.jsx)(m.default,{id:"e851fe78fce44654",children:"textarea::-webkit-scrollbar{width:4px}textarea::-webkit-scrollbar-track{background:0 0}textarea::-webkit-scrollbar-thumb{background:#006;border-radius:20px}textarea::-moz-scrollbar-button{width:0}textarea{scrollbar-width:thin;scrollbar-color:#006 transparent}textarea::placeholder{color:#000;opacity:1;opacity:1;opacity:1}"}),(0,t.jsx)(x.Transition.Child,{as:s.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-70",leave:"ease-in duration-200",leaveFrom:"opacity-70",leaveTo:"opacity-0",children:(0,t.jsx)("div",{className:"jsx-e851fe78fce44654 fixed inset-0 bg-[#FFFFFFB2] bg-opacity-70"})}),(0,t.jsx)("div",{className:"jsx-e851fe78fce44654 fixed inset-0",children:(0,t.jsx)("div",{className:"jsx-e851fe78fce44654 flex min-h-full items-center justify-center p-4",children:(0,t.jsx)(x.Transition.Child,{as:s.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:(0,t.jsxs)(h.Dialog.Panel,{className:"w-full max-w-2xl transform rounded-4xl bg-white p-6 text-left align-middle transition-all max-h-[90vh] md:max-h-[80vh] shadow-[0px_4px_34px_0px_#00000040] relative",children:[(0,t.jsxs)("div",{className:"jsx-e851fe78fce44654 flex justify-between items-center mb-6 sticky top-0 bg-white pt-1 relative",children:[(0,t.jsx)(h.Dialog.Title,{as:"h3",className:"text-[22px] font-bold leading-6 text-[#000066]",children:"Comments"}),(0,t.jsx)("button",{onClick:r,"data-testid":"comments-close-btn",className:"jsx-e851fe78fce44654 absolute w-[33px] h-[33px] rounded-full bg-white top-[-33px] right-[-33px] text-[#0AB911] hover:text-[#0AB911] text-3xl font-medium flex items-center justify-center shadow-[0px_4px_34px_0px_#00000040]",children:"×"})]}),0===a.length?(0,t.jsx)("div",{className:"jsx-e851fe78fce44654 flex justify-center items-center py-10",children:(0,t.jsx)("p",{className:"jsx-e851fe78fce44654 text-lg text-gray-600 font-medium",children:"No comments for this state"})}):(0,t.jsx)("div",{className:"jsx-e851fe78fce44654 relative",children:(0,t.jsxs)("div",{className:"jsx-e851fe78fce44654 flex flex-row gap-3 w-full",children:[i().map((e,s)=>(0,t.jsx)("div",{className:"jsx-e851fe78fce44654 w-full",children:(0,t.jsx)("textarea",{value:e,readOnly:!0,className:"jsx-e851fe78fce44654 w-full min-h-[214px] p-4 border-2 rounded-[10px] resize-none text-black-600 focus:outline-none focus:border-[#000066]"})},`comment-${n}-${s}`)),i().length<2&&(0,t.jsx)("div",{className:"jsx-e851fe78fce44654 w-full",children:(0,t.jsx)("textarea",{placeholder:"No comment",disabled:!0,className:"jsx-e851fe78fce44654 w-full min-h-[214px] p-4 border-2 rounded-[10px] resize-none text-black-600 focus:outline-none focus:border-[#000066] opacity-50"})})]})}),l>1&&(0,t.jsxs)("div",{className:"jsx-e851fe78fce44654 absolute top-5 right-6 flex justify-between px-0 gap-2 pointer-events-none",children:[(0,t.jsx)("button",{onClick:()=>{o(e=>Math.max(0,e-1))},disabled:0===n,"data-testid":"comments-prev-btn","aria-label":"Previous comments",className:`jsx-e851fe78fce44654 w-8 h-8 rounded-full bg-[#000066] flex items-center justify-center pointer-events-auto ${0===n?"opacity-50 cursor-not-allowed":"hover:bg-[#000088]"}`,children:(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"jsx-e851fe78fce44654",children:(0,t.jsx)("path",{d:"M15 18l-6-6 6-6",className:"jsx-e851fe78fce44654"})})}),(0,t.jsx)("button",{onClick:()=>{o(e=>Math.min(l-1,e+1))},disabled:n===l-1,"data-testid":"comments-next-btn","aria-label":"Next comments",className:`jsx-e851fe78fce44654 w-8 h-8 rounded-full bg-[#000066] flex items-center justify-center pointer-events-auto ${n===l-1?"opacity-50 cursor-not-allowed":"hover:bg-[#000088]"}`,children:(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"jsx-e851fe78fce44654",children:(0,t.jsx)("path",{d:"M9 18l6-6-6-6",className:"jsx-e851fe78fce44654"})})})]})]})})})})]})})}function b({isOpen:e,onClose:r,content:a,title:n}){return(0,s.useEffect)(()=>(e?document.body.style.overflow="hidden":document.body.style.overflow="unset",()=>{document.body.style.overflow="unset"}),[e]),(0,t.jsx)(x.Transition,{appear:!0,show:e,as:s.Fragment,children:(0,t.jsxs)(h.Dialog,{as:"div",className:"relative z-50",onClose:r,children:[(0,t.jsx)(m.default,{id:"f2b1acb59d901a40",children:"textarea::-webkit-scrollbar{width:4px}textarea::-webkit-scrollbar-track{background:0 0}textarea::-webkit-scrollbar-thumb{background:#006;border-radius:20px}textarea::-moz-scrollbar-button{width:0}textarea{scrollbar-width:thin;scrollbar-color:#006 transparent;height:auto!important;min-height:50vh!important}textarea::placeholder{color:#000;opacity:1;opacity:1;opacity:1}textarea::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}textarea::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}textarea[type=number]{-moz-appearance:textfield}"}),(0,t.jsx)(x.Transition.Child,{as:s.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-70",leave:"ease-in duration-200",leaveFrom:"opacity-70",leaveTo:"opacity-0",children:(0,t.jsx)("div",{className:"jsx-f2b1acb59d901a40 fixed inset-0 bg-[#FFFFFFB2] bg-opacity-70"})}),(0,t.jsx)("div",{className:"jsx-f2b1acb59d901a40 fixed inset-0",children:(0,t.jsx)("div",{className:"jsx-f2b1acb59d901a40 flex min-h-full items-center justify-center p-4",children:(0,t.jsx)(x.Transition.Child,{as:s.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:(0,t.jsxs)(h.Dialog.Panel,{className:"w-full max-w-4xl transform rounded-4xl bg-white p-8 text-left align-middle transition-all min-h-[60vh] max-h-[85vh] shadow-[0px_4px_34px_0px_#00000040] flex flex-col",children:[(0,t.jsxs)("div",{className:"jsx-f2b1acb59d901a40 flex justify-between items-center mb-6 sticky top-0 bg-white pt-1 relative",children:[(0,t.jsx)(h.Dialog.Title,{as:"h3",className:"text-2xl font-bold leading-6 text-[#000066]",children:n}),(0,t.jsx)("button",{onClick:r,"data-testid":"common-dialog-close-btn",className:"jsx-f2b1acb59d901a40 absolute w-[40px] h-[40p
30x] rounded-full bg-white top-[-40px] right-[-40px] text-[#0AB911] hover:text-[#0AB911] text-3xl font-medium flex items-center justify-center shadow-[0px_4px_34px_0px_#00000040]",children:"×"})]}),(0,t.jsx)("div",{className:"jsx-f2b1acb59d901a40 flex-grow mt-8",children:(0,t.jsx)("textarea",{value:a,readOnly:!0,className:"jsx-f2b1acb59d901a40 w-full h-full p-6 border-2 rounded-[10px] resize-none text-black-600 focus:outline-none focus:border-[#000066] text-lg leading-relaxed"})})]})})})})]})})}function g({isOpen:e,onClose:r,howItWorks:a}){return(0,s.useEffect)(()=>(e?document.body.style.overflow="hidden":document.body.style.overflow="unset",()=>{document.body.style.overflow="unset"}),[e]),(0,t.jsx)(x.Transition,{appear:!0,show:e,as:s.Fragment,children:(0,t.jsxs)(h.Dialog,{as:"div",className:"relative z-50",onClose:r,children:[(0,t.jsx)(m.default,{id:"f2b1acb59d901a40",children:"textarea::-webkit-scrollbar{width:4px}textarea::-webkit-scrollbar-track{background:0 0}textarea::-webkit-scrollbar-thumb{background:#006;border-radius:20px}textarea::-moz-scrollbar-button{width:0}textarea{scrollbar-width:thin;scrollbar-color:#006 transparent;height:auto!important;min-height:50vh!important}textarea::placeholder{color:#000;opacity:1;opacity:1;opacity:1}textarea::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}textarea::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}textarea[type=number]{-moz-appearance:textfield}"}),(0,t.jsx)(x.Transition.Child,{as:s.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-70",leave:"ease-in duration-200",leaveFrom:"opacity-70",leaveTo:"opacity-0",children:(0,t.jsx)("div",{className:"jsx-f2b1acb59d901a40 fixed inset-0 bg-[#FFFFFFB2] bg-opacity-70"})}),(0,t.jsx)("div",{className:"jsx-f2b1acb59d901a40 fixed inset-0",children:(0,t.jsx)("div",{className:"jsx-f2b1acb59d901a40 flex min-h-full items-center justify-center p-4",children:(0,t.jsx)(x.Transition.Child,{as:s.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:(0,t.jsxs)(h.Dialog.Panel,{className:"w-full max-w-4xl transform rounded-4xl bg-white p-8 text-left align-middle transition-all min-h-[60vh] max-h-[85vh] shadow-[0px_4px_34px_0px_#00000040] flex flex-col",children:[(0,t.jsxs)("div",{className:"jsx-f2b1acb59d901a40 flex justify-between items-center mb-6 sticky top-0 bg-white pt-1 relative",children:[(0,t.jsx)(h.Dialog.Title,{as:"h3",className:"text-2xl font-bold leading-6 text-[#000066]",children:"How It Works"}),(0,t.jsx)("button",{onClick:r,"data-testid":"how-it-works-close-btn",className:"jsx-f2b1acb59d901a40 absolute w-[40px] h-[40px] rounded-full bg-white top-[-40px] right-[-40px] text-[#0AB911] hover:text-[#0AB911] text-3xl font-medium flex items-center justify-center shadow-[0px_4px_34px_0px_#00000040]",children:"×"})]}),(0,t.jsx)("div",{className:"jsx-f2b1acb59d901a40 flex-grow mt-8",children:(0,t.jsx)("textarea",{value:a,readOnly:!0,className:"jsx-f2b1acb59d901a40 w-full h-full p-6 border-2 rounded-[10px] resize-none text-black-600 focus:outline-none focus:border-[#000066] text-lg leading-relaxed"})})]})})})})]})})}let y=({className:e})=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,children:(0,t.jsx)("path",{d:"m9 18 6-6-6-6"})});function j({data:e}){let{isSkipped:r,reopen:l}=(0,a.useCommunityPanel)(),{isSkipped:i,reopen:c}=(0,n.useProofTilePanel)(),[m,h]=(0,s.useState)(!1),[x,j]=(0,s.useState)(!1),[w,v]=(0,s.useState)(!1),[N,C]=(0,s.useState)(!1),[_,k]=(0,s.useState)(!1),[S,E]=(0,s.useState)(!1),[A,L]=(0,s.useState)(!1),[I,T]=(0,s.useState)(!1),[O,F]=(0,s.useState)(!1),[R,P]=(0,s.useState)(!1),D="gap-2 bg-[#fdad2a] text-[#000066] px-6 py-2 rounded-xl font-medium flex items-center justify-between hover:bg-[#000066] hover:text-white transition-colors w-full";return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex flex-col gap-3 w-full mt-10",children:[(0,t.jsxs)("button",{className:D,"aria-label":"How It Works","data-testid":"nav-how-it-works-btn",onClick:()=>h(!0),children:[(0,t.jsx)("span",{className:"text-base lg:text-lg",children:"How It Works"}),(0,t.jsx)(y,{className:"ml-2 h-5 w-5"})]}),(0,t.jsxs)("button",{className:D,"aria-label":"About KY Jobs","data-testid":"nav-about-jobs-btn",onClick:()=>j(!0),children:[(0,t.jsxs)("span",{className:"text-base lg:text-lg",children:["About ",e.stateCode," Jobs"]}),(0,t.jsx)(y,{className:"h-5 w-5"})]}),(0,t.jsxs)("button",{className:D,"aria-label":"Comments","data-testid":"nav-comments-btn",onClick:()=>v(!0),children:[(0,t.jsx)("span",{className:"text-base lg:text-lg",children:"Comments"}),(0,t.jsx)(y,{className:"h-5 w-5"})]}),(0,t.jsxs)("button",{className:`${D} text-left`,"aria-label":"Update Resume and Rescore","data-testid":"nav-update-resume-btn",onClick:()=>E(!0),children:[(0,t.jsx)("span",{className:"text-base lg:text-lg",children:"Update Resume and Rescore"}),(0,t.jsx)(y,{className:"min-h-5 min-w-5"})]}),(0,t.jsxs)("button",{className:`${D} text-left`,"aria-label":"How to Search for local Jobs","data-testid":"nav-search-local-jobs-btn",onClick:()=>C(!0),children:[(0,t.jsx)("span",{className:"text-base lg:text-lg",children:"How to Search for local Jobs"}),(0,t.jsx)(y,{className:"min-h-5 min-w-5"})]}),(0,t.jsxs)("button",{className:`${D} text-left`,"aria-label":"Download your Proof of Awesomeness","data-testid":"nav-proof-awesomeness-btn",onClick:()=>L(!0),children:[(0,t.jsx)("span",{className:"text-base lg:text-lg",children:"Download your Proof of Awesomeness"}),(0,t.jsx)(y,{className:"min-h-5 min-w-5"})]}),(0,t.jsxs)("button",{className:`${D} text-left`,"aria-label":"High Suitability in the correct work domain","data-testid":"nav-correct-work-domain-btn",onClick:()=>k(!0),children:[(0,t.jsx)("span",{className:"text-base lg:text-lg",children:"High Suitability in the correct work domain"}),(0,t.jsx)(y,{className:"min-h-5 min-w-5"})]}),(0,t.jsxs)("button",{className:`${D} text-left`,"aria-label":"Connect with local Hiring Managers","data-testid":"nav-connect-hiring-managers-btn",onClick:()=>T(!0),children:[(0,t.jsx)("span",{className:"text-base lg:text-lg",children:"Connect with local Hiring Managers"}),(0,t.jsx)(y,{className:"min-h-5 min-w-5"})]}),(0,t.jsxs)("button",{className:`${D} text-left`,"aria-label":"Sidebar surveys","data-testid":"nav-sidebar-surveys-btn",onClick:()=>F(!0),children:[(0,t.jsx)("span",{className:"text-base lg:text-lg",children:"Sidebar surveys"}),(0,t.jsx)(y,{className:"min-h-5 min-w-5"})]}),(0,t.jsxs)("button",{className:`${D} text-left`,"aria-label":"Free Queenie AI fixup of your resume","data-testid":"nav-queenie-resume-fixup-btn",onClick:()=>P(!0),children:[(0,t.jsx)("span",{className:"text-base lg:text-lg",children:"Free Queenie AI fixup of your resume"}),(0,t.jsx)(y,{className:"min-h-5 min-w-5"})]}),o.PROOF_TILE_PANEL_ENABLED&&i&&(0,t.jsxs)("button",{className:`${D} text-left`,"aria-label":"Add your proof",onClick:()=>{c();let e=()=>{let t=document.getElementById("proof-tile-panel");
30if(t){let e=t.getBoundingClientRect().top+window.scrollY-80;window.scrollTo({top:e,behavior:"smooth"})}else requestAnimationFrame(e)};requestAnimationFrame(e)},children:[(0,t.jsx)("span",{className:"text-base lg:text-lg",children:"Add your proof"}),(0,t.jsx)(y,{className:"min-h-5 min-w-5"})]}),r&&(0,t.jsxs)("button",{className:`${D} text-left`,"aria-label":"Tell Us About Yourself Questions",onClick:()=>{l();let e=()=>{let t=document.getElementById("community-questions-panel");if(t){let e=t.getBoundingClientRect().top+window.scrollY-80;window.scrollTo({top:e,behavior:"smooth"})}else requestAnimationFrame(e)};requestAnimationFrame(e)},children:[(0,t.jsx)("span",{className:"text-base lg:text-lg",children:"Tell Us About Yourself Questions"}),(0,t.jsx)(y,{className:"min-h-5 min-w-5"})]})]}),(0,t.jsx)(g,{howItWorks:e?.howItWorks||"",isOpen:m,onClose:()=>h(!1)}),(0,t.jsx)(p,{aboutKYJobs:e?.about||"",title:`About ${e.stateCode} Jobs`,isOpen:x,onClose:()=>j(!1)}),(0,t.jsx)(f,{comments:e?.comments||[],isOpen:w,onClose:()=>v(!1)}),(0,t.jsx)(b,{title:u.HOW_TO_SEARCH_LOCAL_JOBS.title,content:u.HOW_TO_SEARCH_LOCAL_JOBS.content,isOpen:N,onClose:()=>C(!1)}),(0,t.jsx)(b,{title:u.HIGH_SUITABILITY_WORK_DOMAIN.title,content:u.HIGH_SUITABILITY_WORK_DOMAIN.content,isOpen:_,onClose:()=>k(!1)}),(0,t.jsx)(b,{title:u.DOWNLOAD_PROOF_OF_AWESOMENESS.title,content:u.DOWNLOAD_PROOF_OF_AWESOMENESS.content,isOpen:A,onClose:()=>L(!1)}),(0,t.jsx)(b,{title:u.CONNECT_WITH_LOCAL_HIRING_MANAGERS.title,content:u.CONNECT_WITH_LOCAL_HIRING_MANAGERS.content,isOpen:I,onClose:()=>T(!1)}),(0,t.jsx)(b,{title:u.FREE_QUEENIE_AI_RESUME_FIXUP.title,content:u.FREE_QUEENIE_AI_RESUME_FIXUP.content,isOpen:R,onClose:()=>P(!1)}),(0,t.jsx)(b,{title:u.SIDEBAR_SURVEYS.title,content:u.SIDEBAR_SURVEYS.content,isOpen:O,onClose:()=>F(!1)}),(0,t.jsx)(d,{isOpen:S,onClose:()=>E(!1),onUploadSuccess:()=>{setTimeout(()=>{window.location.reload()},1e3)}})]})}var w=e.i(707759),v=e.i(528826);let N=(0,s.memo)(({className:e})=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:e,children:[(0,t.jsx)("path",{fill:"currentColor",d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"}),(0,t.jsx)("circle",{cx:"12",cy:"9",r:"3.5",fill:"transparent"})]}));N.displayName="LocationPin";let C=(0,s.memo)(({neighbors:e})=>{let r=(0,v.usePathname)().substring(1),[a,n]=(0,s.useState)(!1),[o,l]=(0,s.useState)(null);(0,s.useEffect)(()=>{n(0===e.length)},[e.length]),(0,s.useEffect)(()=>{o&&l("Failed to load neighboring states")},[o]);let i=e?.filter(e=>null!=e&&"object"==typeof e&&"neighbor_id"in e&&"neighbor_slug"in e&&"neighbor_abbreviation"in e)||[];return(0,t.jsxs)("section",{className:"w-[100%] bg-white","aria-labelledby":"nearby-states-heading",children:[(0,t.jsxs)("div",{className:"mb-6 sm:block hidden",children:[(0,t.jsx)("h3",{id:"nearby-states-heading",className:"sr-only",children:"Explore Jobs in Neighboring States"}),(0,t.jsx)("div",{className:"text-2xl font-bold leading-tight","aria-hidden":"true",children:(0,t.jsx)("span",{className:"text-[#0ab911]",children:"more"})}),(0,t.jsx)("div",{className:"text-2xl font-bold leading-tight","aria-hidden":"true",children:(0,t.jsx)("span",{className:"text-[#000066]",children:"jobs"})}),(0,t.jsx)("div",{className:"text-2xl font-bold leading-tight","aria-hidden":"true",children:(0,t.jsx)("span",{className:"text-[#000066]",children:"scores"})}),(0,t.jsx)("div",{className:"text-2xl font-bold leading-tight","aria-hidden":"true",children:(0,t.jsx)("span",{className:"text-[#000066]",children:"matches"})})]}),(0,t.jsx)("nav",{"aria-label":"Neighboring states with job opportunities",className:"space-y-[5px]",children:a?(0,t.jsx)("div",{className:"text-center py-4",children:"Loading neighboring states..."}):o?(0,t.jsx)("div",{className:"text-center text-red-500 py-4",children:o}):0===i.length?(0,t.jsx)("div",{className:"text-center text-gray-500 py-4",children:"No neighboring states available"}):i.map(e=>{let s=r===e.neighbor_slug;return(0,t.jsxs)(w.default,{href:`/jobs/us/${e.neighbor_slug}
30`,title:`Browse ${e.neighbor_job_count.toLocaleString()} job opportunities in ${e.neighbor_name}`,className:`flex items-center justify-between p-2 rounded-lg border-2 transition-colors group ${s?"bg-[#293e99] border-[#293e99] hover:bg-[#1e2f73]":"bg-white border-[#FDAD2A] hover:border-[#000066] hover:bg-[#000066] hover:text-[#fff]"}`,children:[(0,t.jsxs)("div",{className:"flex items-center",children:[(0,t.jsx)(N,{className:"w-7 h-7 text-[#fdad2a]","aria-hidden":"true"}),(0,t.jsxs)("span",{className:`text-xl font-bold ${s?"text-white":"text-[#293e99] group-hover:text-white"}`,children:[(0,t.jsx)("span",{className:"sr-only",children:"Jobs in "}),e.neighbor_abbreviation,(0,t.jsxs)("span",{className:"sr-only",children:[" (",e.neighbor_name,")"]})]})]}),(0,t.jsx)("div",{className:"bg-[#0ab911] text-white px-2 rounded-lg font-bold text-sm","aria-label":`${e.neighbor_job_count} jobs available`,children:e.neighbor_job_count})]},e.neighbor_id)})})]})});var _=e.i(322046),k=e.i(583253);function S(){return(0,t.jsxs)("div",{"data-testid":"whatsapp-group-card",className:"w-full max-w-[220px] rounded-xl border border-gray-200 bg-white p-4 flex flex-col items-center gap-2",children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(k.default,{src:"/images/qr-code-whatsapp.png",alt:"Scan to join our WhatsApp group",width:150,height:150,className:"w-full max-w-[150px] h-auto rounded-lg"}),(0,t.jsx)("div",{className:"absolute -bottom-2 -right-2 flex items-center justify-center w-8 h-8 rounded-full bg-[#25D366] border-2 border-white shadow",children:(0,t.jsx)(_.MessageCircle,{className:"w-4 h-4 text-white",fill:"white"})})]}),(0,t.jsx)("p",{className:"text-sm font-bold text-gray-800 text-center mt-1",children:"Join our WhatsApp Group"}),(0,t.jsx)("p",{className:"text-[11px] text-gray-500 text-center",children:"Scan with your phone camera"}),(0,t.jsx)("a",{href:"https://chat.whatsapp.com/DOgxzPEc8r422V1wrheptk?s=qs&p=i&ilr=0&amv=2",target:"_blank",rel:"noopener noreferrer",className:"w-full text-center rounded-lg bg-[#25D366] px-3 py-2 text-sm font-bold text-white hover:bg-[#1ebe5a] transition-colors mt-1",children:"Join Now"})]})}function E(){return(0,t.jsxs)("svg",{width:"100%",height:"auto",viewBox:"0 0 130 111",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsxs)("g",{clipPath:"url(#clip0_720_1714)",children:[(0,t.jsx)("path",{d:"M0.00948126 6.95507C-0.0919606 3.42812 3.03903 0.23072 6.59498 0.247061C14.2771 0.222549 21.9593 0.236167 29.6415 0.238891C32.4352 0.195315 35.1166 2.06364 36.0214 4.68911C36.8713 6.9006 35.9638 9.35448 36.8301 11.5605C37.7623 14.2187 40.5177 16.0625 43.3444 15.9726C70.0345 15.9835 96.7247 15.9699 123.418 15.9808C125.924 15.9944 128.317 17.5659 129.356 19.8264C129.836 20.8205 130.014 21.9317 129.998 23.0292C129.979 28.3128 130.028 33.5965 129.973 38.8801C129.636 36.0231 127.144 33.5774 124.229 33.4276C122.294 33.3731 120.352 33.4276 118.414 33.4058C118.376 31.818 118.502 30.2193 118.335 28.6369C117.935 25.8372 115.283 23.5957 112.435 23.6611C80.8121 23.6529 49.1896 23.6529 17.5672 23.6611C14.491 23.5821 11.6698 26.2185 11.6013 29.2797C11.5656 35.8951 11.6013 42.5132 11.5848 49.1286C9.64372 49.1504 7.70261 49.0878 5.76151 49.1586C2.90743 49.3057 0.475565 51.6588 0.042381 54.4313C-0.0398691 38.6077 0.0259313 22.7814 0.00948126 6.95507Z",fill:"#0AB911"}),(0,t.jsx)("path",{d:"M11.8443 29.2798C11.9126 26.2185 14.7209 23.5822 17.783 23.6612C49.261 23.653 80.7391 23.653 112.217 23.6612C115.053 23.5958 117.692 25.8372 118.091 28.637C118.257 30.2194 118.131 31.8181 118.17 33.4059C105.176 33.4059 92.18 33.4086 79.1837 33.4059C77.9444 33.4141 76.662 33.3051 75.4803 33.7545C74.4077 34.114 73.4989 34.8276 72.7293 35.6392C69.1514 39.2369 65.5595 42.8211 61.9764 46.4134C60.6255 48.0012 58.7014 49.2186 56.5481 49.1287C41.6415 49.1342 26.7349 49.1287 11.8282 49.1287C11.8443 42.5133 11.8088 35.8952 11.8443 29.2798ZM20.2856 33.158C19.2321 33.2561 19.1093 34.8766 20.1328 35.1489C22.8974 35.2388 25.6702 35.1544 28.4376 35.1898C28.9234 35.2088 29.5211 35.217 29.8103 34.7404C30.3098 34.1222 29.7585 33.1199 28.9807 33.1471C26.085 33.1335 23.184 33.1117 20.2856 33.158ZM34.7965 33.1962C33.6857 33.5421 34.0706 35.3178 35.2141 35.1843C45.211 35.1734 55.2106 35.2143 65.2047 35.1653C66.3725 34.9882 66.2009 33.1117 65.0219 33.1471C55.3716 33.1145 45.7186 33.1471 36.0656 33.1308C35.6425 33.139 35.2141 33.1036 34.7965 33.1962ZM19.7862 41.6363C18.6836 41.8733 18.8664 43.6299 19.9827 43.6354C25.8094 43.6599 31.6361 43.6408 37.4629 43.6463C38.0469 43.7089 38.6255 43.2051 38.6064 42.6113C38.6064 42.0203 38.0251 41.5356 37.4465 41.5982C31.5597 41.6173 25.6675 41.5437 19.7862 41.6363ZM43.5025 41.6145C42.3508 41.6717 42.3044 43.5128 43.4506 43.6299C46.1743 43.6653 48.898 43.649 51.
306217 43.6381C52.3395 43.649 52.8935 42.723 52.4569 42.1211C52.2549 41.7344 51.8019 41.5655 51.3843 41.5955C48.7589 41.6064 46.1279 41.571 43.5025 41.6145Z",fill:"white"}),(0,t.jsx)("path",{d:"M20.2857 33.1581C23.184 33.1118 26.0851 33.1336 28.9808 33.1472C29.7586 33.12 30.3098 34.1222 29.8104 34.7405C29.5211 35.2171 28.9234 35.2089 28.4377 35.1898C25.6703 35.1544 22.8975 35.2389 20.1328 35.149C19.1094 34.8766 19.2322 33.2561 20.2857 33.1581Z",fill:"#0AB911"}),(0,t.jsx)("path",{d:"M34.7966 33.1963C35.2142 33.1037 35.6427 33.1391 36.0657 33.1309C45.7187 33.1472 55.3717 33.1145 65.022 33.1472C66.201 33.1118 66.3727 34.9883 65.2049 35.1653C55.2107 35.2144 45.2111 35.1735 35.2142 35.1844C34.0707 35.3179 33.6859 33.5421 34.7966 33.1963Z",fill:"#0AB911"}),(0,t.jsx)("path",{d:"M19.7862 41.6364C25.6676 41.5438 31.5598 41.6174 37.4466 41.5983C38.0252 41.5357 38.6065 42.0205 38.6065 42.6115C38.6256 43.2052 38.047 43.709 37.463 43.6464C31.6362 43.641 25.8095 43.66 19.9827 43.6355C18.8665 43.6301 18.6837 41.8734 19.7862 41.6364Z",fill:"#0AB911"}),(0,t.jsx)("path",{d:"M43.5026 41.6146C46.128 41.571 48.7589 41.6064 51.3843 41.5955C51.8019 41.5656 52.2549 41.7344 52.4569 42.1212C52.8936 42.7231 52.3396 43.6491 51.6218 43.6382C48.8981 43.6491 46.1744 43.6654 43.4507 43.63C42.3045 43.5129 42.3509 41.6718 43.5026 41.6146Z",fill:"#0AB911"}),(0,t.jsx)("path",{d:"M129.983 103.019C129.958 81.3233 130.048 59.6254 129.961 37.9316C129.624 35.5171 127.132 33.4502 124.218 33.3236C122.283 33.2775 120.342 33.3236 118.404 33.3052C105.353 33.3052 92.3 33.3075 79.2465 33.3052C78.0017 33.3121 76.7136 33.22 75.5267 33.5998C74.4494 33.9036 73.5366 34.5066 72.7636 35.1926C69.1699 38.2331 65.5623 41.2621 61.9634 44.2981C60.6065 45.64 58.674 46.6688 56.5112 46.5929C41.5389 46.5975 26.5666 46.5929 11.5943 46.5929C9.6535 46.6113 7.71275 46.5584 5.772 46.6182C2.91843 46.7425 0.487009 48.7312 0.0539026 51.0743C-0.0530032 56.8032 0.0374555 62.5368 0.00730261 68.2655C0.0182673 80.7732 0.0155265 93.2807 0.02375 105.788C0.0100442 107.91 1.70957 109.929 4.07795 110.654C5.32244 111.071 6.67659 110.992 7.98687 110.997C45.9905 110.997 83.9942 110.997 121.998 110.997C123.308 110.99 124.665 111.073 125.91 110.656C128.097 109.989 129.736 108.219 129.945 106.269C130.027 105.187 129.961 104.101 129.983 103.019Z",fill:"#0AB911"}),(0,t.jsx)("path",{d:"M129.63 80.3442L129.682 106.907C129.682 106.907 129.182 110.175 125.747 110.72H95.4307C95.4307 110.72 118.577 107.171 129.63 80.3442Z",fill:"#0ECD16"}),(0,t.jsx)("path",{d:"M0.338135 54.4315V61.2525V91.7899C0.338135 91.7899 4.40349 54.605 38.3454 49.1215H12.5639H6.45962C6.45962 49.1215 1.47155 48.9608 0.338135 54.4315Z",fill:"#0ECD16"}),(0,t.jsx)("path",{d:"M36.0595 72L32.1056 58.1818H35.2971L37.5843 67.783H37.699L40.2225 58.1818H42.9551L45.4718 67.8033H45.5932L47.8805 58.1818H51.0719L47.1181 72H44.2708L41.6394 62.9656H41.5314L38.9068 72H36.0595ZM55.4559 66.0085V72H52.5816V58.1818H55.3749V63.4648H55.4964C55.7303 62.8531 56.1081 62.3741 56.6299 62.0277C57.1517 61.6768 57.8061 61.5014 58.5933 61.5014C59.313 61.5014 59.9405 61.6589 60.4758 61.9737C61.0155 62.2841 61.4339 62.7317 61.7307 63.3164C62.0321 63.8967 62.1805 64.5916 62.176 65.4013V72H59.3018V65.9141C59.3063 65.2753 59.1443 64.7783 58.816 64.4229C58.4921 64.0676 58.0378 63.8899 57.453 63.8899C57.0617 63.8899 56.7153 63.9731 56.414 64.1396C56.1171 64.306 55.8832 64.5489 55.7123 64.8683C55.5458 65.1831 55.4604 65.5632 55.4559 66.0085ZM67.3933 72.1957C66.7321 72.1957 66.1428 72.081 65.6255 71.8516C65.1083 71.6177 64.6989 71.2736 64.3975 70.8192C64.1007 70.3604 63.9522 69.7892 63.9522 69.1055C63.9522 68.5297 64.0579 68.0462 64.2694 67.6548C64.4808 67.2635 64.7686 66.9486 65.133 66.7102C65.4973 66.4718 65.9112 66.2919 66.3745 66.1705C66.8423 66.049 67.3326 65.9635 67.8453 65.9141C68.4481 65.8511 68.9339 65.7926 69.3027 65.7386C69.6716 65.6802 69.9392 65.5947 70.1056 65.4822C70.2721 65.3698 70.3553 65.2034 70.3553 64.983V64.9425C70.3553 64.5152 70.2203 64.1845 69.9505 63.9506C69.6851 63.7167 69.3072 63.5998 68.8169 63.5998C68.2997 63.5998 67.8881 63.7145 67.5822 63.9439C67.2763 64.1688 67.0739 64.4522 66.975 64.794L64.3166 64.5781C64.4515 63.9484 64.7169 63.4041 65.1127 62.9453C65.5086 62.482 66.0191 62.1267 66.6444 61.8793C67.2741 61.6274 68.0028 61.5014 68.8304 61.5014C69.4062 61.5014 69.9572 61.5689 70.4835 61.7038C71.0143 61.8388 71.4843 62.0479 71.8936 62.3313C72.3075 62.6147 72.6336 62.979 72.872 63.4244C73.1104 63.8652 73.2296 64.3937 73.2296 65.0099V72H70.5037V70.5629H70.4228C70.2563 70.8867 70.0337 71.1723 69.7548 71.4197C69.4759 71.6626 69.1408 71.8538 68.7495 71.9933C68.3581 72.1282 67.9061 72.1957 67.3933 72.1957ZM68.2164 70.212C68.6393 70.212 69.0126 70.1288 69.3365 69.9624C69.6603 69.7914 69.9145 69.562 70.0989 69.2741C70.2833 68.9863 70.3755 68.6602 70.3755 68.2958V67.196C70.2856 67.2545 70.1619 67.3085 70.0044 67.358C69.8515 67.4029 69.6783 67.4457 69.4849 67.4862C69.2915 67.5221 69.0981 67.5559 68.9047 67.5874C68.7112 67.6143 68.5358 67.6391 68.3784 67.6616C68.041 67.7111 67.7464 67.7898 67.4945 67.8977C67.2426 68.0057 67.0469 68.1519 66.9075 68.3363C66.7681 68.5162 66.6983 68.7411 66.6983 69.011C66.6983 69.4023 66.84 69.7015 67.1234 69.9084C67.4113 70.1108 67.7756 70.212 68.2164 70.212ZM80.9719 61.6364V63.7955H74.7308V61.6364H80.9719ZM76.1477 59.1534H79.022V68.8153C79.022 69.0807 79.0625 69.2876 79.1435 69.4361C79.2244 69.58 79.3369 69.6812 79.4808 69.7397C79.6293 69.7982 79.8002 69.8274 79.9936 69.8274C80.1286 69.8274 80.2635 69.8162 80.3984 69.7937C80.5334 69.7667 80.6368 69.7464 80.7088 69.733L81.1609 71.8718C81.0169 71.9168 80.8145 71.9685 80.5536 72.027C80.2927 72.09 79.9756 72.1282 79.6023 72.1417C78.9096 72.1687 78.3023 72.0765 77.7805 71.8651C77.2633 71.6536 76.8607 71.3253 76.5728 70.88C76.2849 70.4347 76.1432 69.8724 76.1477 69.1932V59.1534ZM85.7169 58.1818V59.6392C85.7169 60.053 85.6359 60.4759 85.474 60.9077C85.3166 61.335 85.1051 61.7398 84.8398 62.1222C84.5744 62.5 84.2842 62.8216 83.9694 63.087L82.7009 62.3381C82.9258 61.9827 83.1237 61.5891 83.2947 61.1573C83.4701 60.7255 83.5578 60.224 83.5578 59.6527V58.1818H85.7169ZM94.9554 64.5916L92.324 64.7536C92.2791 64.5286 92.1824 64.3262 92.0339 64.1463C91.8855 63.9619 91.6898 63.8157 91.4469 63.7077C91.2085 63.5953 90.9229 63.5391 90.59 63.5391C90.1447 63.5391 89.7691 63.6335 89.4632 63.8224C89.1574 64.0069 89.0044 64.2543 89.0044 64.5646C89.0044 64.812 89.1034 65.0212 89.3013 65.1921C89.4992 65.363 89.8388 65.5002 90.3201 65.6037L92.1958 65.9815C93.2034 66.1884 93.9546 66.5213 94.4494 66.9801C94.9442 67.4389 95.1916 68.0417 95.1916 68.7884C95.1916 69.4676 94.9914 70.0636 94.5911 70.5763C94.1953 71.0891 93.651 71.4895 92.9583 71.7773C92.2701 72.0607 91.4761 72.2024 90.5765 72.2024C89.2046 72.2024 88.1116 71.9168 87.2974 71.3455C86.4877 70.7698 86.0132 69.9871 85.8738 68.9975L88.7008 68.8491C88.7863 69.2674 88.9932 69.5868 89.3216 69.8072C89.6499 70.0231 90.0705 70.131 90.5833 70.131C91.0871 70.131 91.4919 70.0343 91.7978 69.8409C92.1081 69.643 92.2656 69.3888 92.2701 69.0785C92.2656 68.8176 92.1554 68.6039 91.9395 68.4375C91.7235 68.2666 91.3907 68.1361 90.9409 68.0462L89.1461 67.6886C88.1341 67.4862 87.3806 67.1353 86.8858 66.636C86.3955 66.1367 86.1504 65.5002 86.1504 64.7266C86.1504 64.0608 86.3303 63.4873 86.6902 63.006C87.0545 62.5247 87.565 62.1536 88.2218 61.8928C88.883 61.6319 89.6567 61.5014 90.5428 61.5014C91.8517 61.5014 92.8818 61.7781 93.633 62.3313C94.3887 62.8846 94.8295 63.638 94.9554 64.5916ZM18.4486 81.1818H22.0515L25.8569 90.4659H26.0189L29.8243 81.1818H33.4272V95H30.5934V86.006H30.4787L26.9027 94.9325H24.9731L21.3971 85.9723H21.2824V95H18.4486V81.1818ZM37.5548 98.8864C37.1905 98.8864 36.8486 98.8571 36.5293 98.7987C36.2144 98.7447 35.9535 98.675 35.7466 98.5895L36.3943 96.4439C36.7317 96.5473 37.0353 96.6036 37.3052 96.6126C37.5796 96.6216 37.8157 96.5586 38.0136 96.4237C38.216 96.2887 38.3802 96.0593 38.5062 95.7354L38.6748 95.2969L34.9572 84.6364H37.9799L40.1255 92.2472H40.2334L42.3993 84.6364H45.4422L41.4142 96.12C41.2208 96.6778 40.9576 97.1636 40.6248 97.5774C40.2964 97.9957 39.8803 98.3174 39.3766 98.5423C38.8728 98.7717 38.2655 98.8864 37.5548 98.8864ZM58.8607 85.1559C58.8067 84.6116 58.575 84.1888 58.1657 83.8874C57.7564 83.5861 57.2009 83.4354 56.4992 83.4354C56.0224 83.4354 55.6198 83.5028 55.2914 83.6378C54.9631 83.7682 54.7112 83.9504 54.5357 84.1843C54.3648 84.4182 54.2793 84.6836 54.2793 84.9805C54.2703 85.2279 54.3221 85.4438 54.4345 85.6282C54.5515 85.8126 54.7112 85.9723 54.9136 86.1072C55.116 86.2377 55.3499 86.3524 55.6153 86.4513C55.8807 86.5458 56.164 86.6268 56.4654 86.6942L57.7069 86.9911C58.3096 87.1261 58.8629 87.306 59.366
307 87.5309C59.8705 87.7558 60.3068 88.0324 60.6756 88.3608C61.0445 88.6892 61.3301 89.076 61.5325 89.5213C61.7395 89.9666 61.8452 90.4772 61.8497 91.0529C61.8452 91.8986 61.6292 92.6317 61.2019 93.2525C60.7791 93.8687 60.1674 94.3478 59.3667 94.6896C58.5705 95.027 57.6102 95.1957 56.4857 95.1957C55.3701 95.1957 54.3985 95.0247 53.5709 94.6829C52.7477 94.341 52.1045 93.835 51.6412 93.1648C51.1824 92.4901 50.9417 91.6557 50.9193 90.6616H53.7463C53.7778 91.1249 53.9105 91.5117 54.1444 91.8221C54.3828 92.128 54.6999 92.3596 55.0957 92.517C55.4961 92.67 55.9481 92.7464 56.4519 92.7464C56.9467 92.7464 57.3763 92.6745 57.7406 92.5305C58.1095 92.3866 58.3951 92.1864 58.5975 91.93C58.7999 91.6737 58.9011 91.379 58.9011 91.0462C58.9011 90.7358 58.8089 90.4749 58.6245 90.2635C58.4446 90.0521 58.1792 89.8722 57.8283 89.7237C57.482 89.5753 57.0569 89.4403 56.5531 89.3189L55.0485 88.9411C53.8835 88.6577 52.9636 88.2146 52.2889 87.6119C51.6142 87.0091 51.2791 86.1972 51.2836 85.1761C51.2791 84.3395 51.5018 83.6085 51.9516 82.9833C52.4059 82.3581 53.0289 81.87 53.8205 81.5192C54.6122 81.1683 55.5118 80.9929 56.5194 80.9929C57.545 80.9929 58.4401 81.1683 59.2048 81.5192C59.9739 81.87 60.5722 82.3581 60.9995 82.9833C61.4268 83.6085 61.6472 84.3327 61.6607 85.1559H58.8607ZM68.4433 95.2024C67.3818 95.2024 66.4686 94.9775 65.704 94.5277C64.9438 94.0734 64.359 93.4437 63.9497 92.6385C63.5449 91.8333 63.3425 90.9067 63.3425 89.8587C63.3425 88.7971 63.5471 87.866 63.9565 87.0653C64.3703 86.2602 64.9573 85.6327 65.7175 85.1829C66.4776 84.7286 67.3818 84.5014 68.4298 84.5014C69.3339 84.5014 70.1256 84.6656 70.8048 84.994C71.484 85.3223 72.0216 85.7834 72.4174 86.3771C72.8132 86.9709 73.0314 87.6681 73.0719 88.4688H70.3595C70.283 87.9515 70.0806 87.5354 69.7523 87.2205C69.4284 86.9012 69.0033 86.7415 68.4771 86.7415C68.0317 86.7415 67.6427 86.8629 67.3098 87.1058C66.9814 87.3442 66.725 87.6928 66.5406 88.1516C66.3562 88.6104 66.264 89.166 66.264 89.8182C66.264 90.4794 66.3539 91.0417 66.5339 91.505C66.7183 91.9683 66.9769 92.3214 67.3098 92.5643C67.6427 92.8072 68.0317 92.9286 68.4771 92.9286C68.8054 92.9286 69.1 92.8612 69.3609 92.7262C69.6263 92.5913 69.8445 92.3956 70.0154 92.1392C70.1908 91.8783 70.3055 91.5657 70.3595 91.2013H73.0719C73.0269 91.993 72.811 92.6902 72.4241 93.293C72.0418 93.8912 71.5133 94.359 70.8386 94.6964C70.1638 95.0337 69.3654 95.2024 68.4433 95.2024ZM79.5947 95.2024C78.5466 95.2024 77.6403 94.9798 76.8756 94.5344C76.1154 94.0846 75.5284 93.4594 75.1146 92.6587C74.7007 91.8536 74.4938 90.9202 74.4938 89.8587C74.4938 88.7881 74.7007 87.8525 75.1146 87.0518C75.5284 86.2467 76.1154 85.6214 76.8756 85.1761C77.6403 84.7263 78.5466 84.5014 79.5947 84.5014C80.6427 84.5014 81.5469 84.7263 82.307 85.1761C83.0717 85.6214 83.661 86.2467 84.0748 87.0518C84.4886 87.8525 84.6955 88.7881 84.6955 89.8587C84.6955 90.9202 84.4886 91.8536 84.0748 92.6587C83.661 93.4594 83.0717 94.0846 82.307 94.5344C81.5469 94.9798 80.6427 95.2024 79.5947 95.2024ZM79.6082 92.9759C80.085 92.9759 80.4831 92.8409 80.8024 92.571C81.1218 92.2966 81.3624 91.9233 81.5244 91.451C81.6908 90.9787 81.774 90.4412 81.774 89.8384C81.774 89.2357 81.6908 88.6982 81.5244 88.2259C81.3624 87.7536 81.1218 87.3802 80.8024 87.1058C80.4831 86.8314 80.085 86.6942 79.6082 86.6942C79.1269 86.6942 78.722 86.8314 78.3937 87.1058C78.0698 87.3802 77.8247 87.7536 77.6582 88.2259C77.4963 88.6982 77.4153 89.2357 77.4153 89.8384C77.4153 90.4412 77.4963 90.9787 77.6582 91.451C77.8247 91.9233 78.0698 92.2966 78.3937 92.571C78.722 92.8409 79.1269 92.9759 79.6082 92.9759ZM86.5645 95V84.6364H89.3511V86.4446H89.459C89.6479 85.8014 89.9651 85.3156 90.4104 84.9872C90.8557 84.6544 91.3685 84.4879 91.9487 84.4879C92.0927 84.4879 92.2479 84.4969 92.4143 84.5149C92.5807 84.5329 92.7269 84.5576 92.8529 84.5891V87.1396C92.7179 87.0991 92.5312 87.0631 92.2928 87.0316C92.0544 87.0001 91.8363 86.9844 91.6384 86.9844C91.2155 86.9844 90.8377 87.0766 90.5048 87.261C90.1765 87.4409 89.9156 87.6928 89.7222 88.0167C89.5332 88.3406 89.4388 88.7139 89.4388 89.1367V95H86.5645ZM98.5795 95.2024C97.5135 95.2024 96.5958 94.9865 95.8267 94.5547C95.062 94.1184 94.4727 93.5021 94.0589 92.706C93.6451 91.9053 93.4382 90.9585 93.4382 89.8654C93.4382 88.7994 93.6451 87.8638 94.0589 87.0586C94.4727 86.2534 95.0552 85.6259 95.8064 85.1761C96.5621 84.7263 97.4482 84.5014 98.4648 84.5014C99.1485 84.5014 99.785 84.6116 100.374 84.832C100.968 85.0479 101.485 85.3741 101.926 85.8104C102.371 86.2467 102.718 86.7955 102.965 87.4567C103.213 88.1134 103.336 88.8826 103.336 89.7642V90.5536H94.5852V88.7724H100.631C100.631 88.3585 100.541 87.992 100.361 87.6726C100.181 87.3532 99.9312 87.1036 99.6118 86.9237C99.2969 86.7392 98.9304 86.647 98.512 86.647C98.0757 86.647 97.6889 86.7482 97.3515 86.9506C97.0187 87.1486 96.7578 87.4162 96.5688 87.7536C96.3799 88.0864 96.2832 88.4575 96.2787 88.8668V90.5604C96.2787 91.0732 96.3732 91.5162 96.5621 91.8896C96.7555 92.2629 97.0277 92.5508 97.3785 92.7532C97.7294 92.9556 98.1454 93.0568 98.6267 93.0568C98.9461 93.0568 99.2385 93.0118 99.5039 92.9219C99.7693 92.8319 99.9964 92.697 100.185 92.517C100.374 92.3371 100.518 92.1167 100.617 91.8558L103.276 92.0312C103.141 92.67 102.864 93.2277 102.446 93.7045C102.032 94.1768 101.497 94.5457 100.84 94.8111C100.188 95.072 99.4341 95.2024 98.5795 95.2024ZM107.681 90.8572V90.6278C107.686 89.8407 107.756 89.2132 107.891 88.7454C108.03 88.2776 108.232 87.8997 108.498 87.6119C108.763 87.324 109.083 87.0631 109.456 86.8292C109.735 86.6493 109.984 86.4626 110.205 86.2692C110.425 86.0758 110.601 85.8621 110.731 85.6282C110.862 85.3898 110.927 85.1244 110.927 84.832C110.927 84.5217 110.853 84.2495 110.704 84.0156C110.556 83.7817 110.356 83.6018 110.104 83.4759C109.856 83.3499 109.582 83.2869 109.28 83.2869C108.988 83.2869 108.711 83.3522 108.451 83.4826C108.19 83.6085 107.976 83.7975 107.81 84.0494C107.643 84.2968 107.553 84.6049 107.54 84.9737H104.787C104.809 84.0741 105.025 83.3319 105.435 82.7472C105.844 82.1579 106.386 81.7193 107.061 81.4315C107.735 81.1391 108.48 80.9929 109.294 80.9929C110.189 80.9929 110.981 81.1413 111.669 81.4382C112.357 81.7306 112.897 82.1557 113.288 82.7134C113.68 83.2712 113.875 83.9437 113.875 84.7308C113.875 85.2571 113.788 85.7249 113.612 86.1342C113.441 86.5391 113.201 86.8989 112.89 87.2138C112.58 87.5241 112.213 87.8053 111.79 88.0572C111.435 88.2686 111.143 88.489 110.913 88.7184C110.688 88.9478 110.52 89.2132 110.407 89.5146C110.299 89.8159 110.243 90.187 110.239 90.6278V90.8572H107.681ZM109.017 95.1754C108.568 95.1754 108.183 95.018 107.864 94.7031C107.549 94.3838 107.394 94.0014 10
307.398 93.5561C107.394 93.1153 107.549 92.7375 107.864 92.4226C108.183 92.1077 108.568 91.9503 109.017 91.9503C109.445 91.9503 109.82 92.1077 110.144 92.4226C110.468 92.7375 110.632 93.1153 110.637 93.5561C110.632 93.853 110.553 94.1251 110.401 94.3725C110.252 94.6154 110.056 94.8111 109.814 94.9595C109.571 95.1035 109.305 95.1754 109.017 95.1754Z",fill:"white"})]}),(0,t.jsx)("defs",{children:(0,t.jsx)("clipPath",{id:"clip0_720_1714",children:(0,t.jsx)("rect",{width:"130",height:"111",fill:"white"})})})]})}function A({stateName:e,jobCount:a,data:n,stateCode:o,displayName:l}){let i=l||e,[c,d]=(0,s.useState)(0),[u,m]=(0,s.useState)(0),[h,x]=(0,s.useState)(!1),[p,f]=(0,s.useState)(!1),b=(0,s.useRef)(null),g=(0,s.useRef)(null),y=(0,s.useRef)(null),w=(0,s.useMemo)(()=>n?.neighbors||[],[n?.neighbors]);(0,s.useEffect)(()=>{x(!0)},[]),(0,s.useEffect)(()=>{if(!h)return;let e=()=>{if(b.current&&d(b.current.offsetWidth),y.current){let e=y.current.offsetHeight;m(Math.max(0,(window.innerHeight-e-(b.current?.offsetWidth||0))/2)),f(!0)}},t=setTimeout(()=>{requestAnimationFrame(e)},300);return()=>clearTimeout(t)},[h,e]),(0,s.useEffect)(()=>{if(!h)return;let e=()=>{if(y.current){let e=y.current.offsetHeight;m(Math.max(0,(window.innerHeight-e-(b.current?.offsetWidth||0))/2))}};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[h]);let v=(0,t.jsxs)("div",{className:"relative min-h-screen",children:[(0,t.jsx)("span",{ref:b,className:"text-[124px] font-bold text-[#000066] tracking-widest absolute -left-[9999px]",style:{whiteSpace:"nowrap"},children:i}),(0,t.jsxs)("div",{className:"flex flex-col items-center justify-start min-h-screen",children:[(0,t.jsxs)("div",{ref:y,className:"flex flex-col gap-4 items-center",children:[(0,t.jsx)(r,{jobCount:a}),(0,t.jsx)(E,{}),(0,t.jsx)(C,{neighbors:w}),(0,t.jsx)(S,{})]}),p&&(0,t.jsx)("div",{style:{height:c?`${c}px`:"auto",marginTop:`${u}px`},children:(0,t.jsx)("span",{ref:g,className:"text-[124px] font-bold text-[#000066] tracking-widest block",style:{writingMode:"vertical-rl",transform:"rotate(180deg)",whiteSpace:"nowrap"},children:i})}),(0,t.jsx)("div",{className:"mt-auto",children:(0,t.jsx)(j,{data:{...n,stateName:e,stateCode:o}})})]})]}),N=(0,t.jsx)("div",{className:"p-3 bg-white rounded-lg shadow-sm",children:(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)("h2",{className:"text-4xl font-bold text-[#000066] mb-3 text-center",children:i}),(0,t.jsxs)("div",{className:"flex flex-row flex-wrap justify-between gap-4 w-full",children:[(0,t.jsx)("div",{className:"flex-1 min-w-[calc(50%-0.5rem)] sm:min-w-[150px]",children:(0,t.jsx)(r,{jobCount:a})}),(0,t.jsx)("div",{className:"flex-1 min-w-[calc(50%-0.5rem)] sm:min-w-[150px]",children:(0,t.jsx)(E,{})}),(0,t.jsx)("div",{className:"flex-1 min-w-[calc(50%-0.5rem)] sm:min-w-[150px]",children:(0,t.jsx)(C,{neighbors:w})}),(0,t.jsx)("div",{className:"flex-1 min-w-[calc(50%-0.5rem)] sm:min-w-[150px]",children:(0,t.jsx)(S,{})})]}),(0,t.jsx)("div",{className:"w-full mt-4",children:(0,t.jsx)(j,{data:{...n,stateName:e,stateCode:o}})})]})});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{"data-testid":"left-sidebar-desktop",className:"hidden lg:block",children:v}),(0,t.jsx)("div",{"data-testid":"left-sidebar-mobile",className:"lg:hidden",children:N})]})}e.s(["default",()=>A],806827)},124531,e=>{"use strict";var t=e.i(635350),s=e.i(707759);e.s(["default",0,({chromeExtensionUrl:e,stateAbbreviation:r="KY",shortLabel:a})=>(0,t.jsx)("div",{className:"flex flex-col items-center justify-center ",children:(0,t.jsxs)("div",{className:"inline-flex flex-col items-center justify-center",children:[(0,t.jsxs)("div",{className:"flex flex-row items-center justify-center gap-[0]",children:[(0,t.jsx)("div",{className:"flex flex-col items-center justify-center",children:(0,t.jsx)("span",{style:{letterSpacing:"13px"},className:"text-[72px] sm:text-[100px] lg:text-[124px] text-[#F6C604] text-[Inter] font-bold",children:a||r})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{style:{lineHeight:"100%"},className:"text-[Inter] font-bold text-[22px] sm:text-[27px] lg:text-[31px] text-[#000066]",children:"jobs"}),(0,t.jsx)("br",{}),(0,t.jsx)("span",{style:{lineHeight:"100%"},className:"text-[Inter] font-bold text-[22px] sm:text-[27px] lg:text-[31px] text-[#000066]",children:"scores"}),(0,t.jsx)("br",{}),(0,t.jsx)("span",{style:{lineHeight:"100%"},className:"text-[Inter] font-bold text-[22px] sm:text-[27px] lg:text-[31px] text-[#000066]",children:"matches"}),(0,t.jsx)("br",{})]})]}),(0,t.jsxs)(s.default,{href:e||"",target:"_blank",className:"bg-[#000066] font-bold text-[14px] sm:text-[17px] text-white px-[22px] py-[2px] mt-[-8px] sm:mt-[-40px] rounded-[5px] z-10 mb-[20px] sm:mb-[30px] w-full text-center",children:["Get the chrome extension ",(0,t.jsx)("span",{className:"text-[#31E239]",children:"Here"})]})]})})])},672531,e=>{"use strict";var t=e.i(635350),s=e.i(346187),r=e.i(664216),a=e.i(550792),n=e.i(488476),o=e.i(688
30061),l=e.i(179430);function i({hivemindHint:e,isSubmitting:s,onSubmit:r,onDismiss:a}){let[n,i]=(0,o.useState)("file"),[c,d]=(0,o.useState)(null),[u,m]=(0,o.useState)(""),[h,x]=(0,o.useState)(""),[p,f]=(0,o.useState)(!0),[b,g]=(0,o.useState)(!1),y=(0,o.useRef)(null),j=("file"===n?!!c:u.trim().length>0)&&h.trim().length>0&&!s;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"overflow-y-auto flex-1 p-4 space-y-3",children:[e&&(0,t.jsx)("div",{className:"px-3 py-2 bg-[#FFF6D4] rounded-lg border border-[#F0C419]/40",children:(0,t.jsxs)("p",{className:"text-xs text-[#7A5E00]",children:[(0,t.jsx)("span",{className:"font-semibold",children:"Expert tip:"})," ",e]})}),(0,t.jsxs)("div",{className:"flex rounded-lg overflow-hidden border border-gray-200",children:[(0,t.jsx)("button",{type:"button",onClick:()=>i("file"),className:`flex-1 py-2 text-sm font-medium transition-colors ${"file"===n?"bg-[#293E99] text-white":"bg-white text-gray-600 hover:bg-gray-50"}`,children:"Upload File"}),(0,t.jsx)("button",{type:"button",onClick:()=>i("link"),className:`flex-1 py-2 text-sm font-medium transition-colors ${"link"===n?"bg-[#293E99] text-white":"bg-white text-gray-600 hover:bg-gray-50"}`,children:"Paste Link"})]}),"file"===n?(0,t.jsxs)("div",{role:"button",tabIndex:0,className:`border-2 border-dashed rounded-xl p-5 text-center cursor-pointer transition-colors ${b?"border-[#293E99] bg-[#EAEEFF]":"border-gray-300 hover:border-[#293E99] hover:bg-[#EAEEFF]/30"}`,onClick:()=>y.current?.click(),onKeyDown:e=>"Enter"===e.key&&y.current?.click(),onDragOver:e=>{e.preventDefault(),g(!0)},onDragLeave:()=>g(!1),onDrop:e=>{e.preventDefault(),g(!1);let t=e.dataTransfer.files[0];t&&d(t)},children:[(0,t.jsx)("input",{ref:y,type:"file",accept:".pdf,.doc,.docx,.png,.jpg,.jpeg,.mp4,.mov",className:"hidden",onChange:e=>{let t=e.target.files?.[0];t&&d(t)}}),c?(0,t.jsxs)("div",{className:"text-sm",children:[(0,t.jsx)("p",{className:"font-medium text-[#293E99] truncate",children:c.name}),(0,t.jsxs)("p",{className:"text-gray-400 text-xs mt-1",children:[(c.size/1024).toFixed(0)," KB · Click to replace"]})]}):(0,t.jsxs)("div",{className:"text-gray-400",children:[(0,t.jsx)("svg",{className:"mx-auto mb-2 w-7 h-7",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12"})}),(0,t.jsx)("p",{className:"text-sm",children:"Drop a file or click to upload"}),(0,t.jsx)("p",{className:"text-xs mt-0.5",children:"PDF, Word, image, or short video"})]})]}):(0,t.jsxs)("div",{children:[(0,t.jsx)("input",{type:"url",value:u,onChange:e=>m(e.target.value),placeholder:"https://github.com/you/project",className:"w-full px-3 py-2.5 border border-gray-300 rounded-xl text-sm focus:outline-none focus:ring-2 focus:ring-[#293E99] focus:border-transparent"}),(0,t.jsx)("p",{className:"text-xs text-gray-400 mt-1 ml-1",children:"GitHub, portfolio, YouTube, Google Drive, or Loom"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-xs font-semibold uppercase tracking-wide text-[#293E99] mb-1",children:"What does this prove?"}),(0,t.jsx)("textarea",{value:h,onChange:e=>{e.target.value.length<=200&&x(e.target.value)},placeholder:"e.g. I built this scheduling tool at my current job. Reduced scheduling conflicts by 40% in two months.",rows:3,className:"w-full px-3 py-2 border border-gray-300 rounded-xl text-sm focus:outline-none focus:ring-2 focus:ring-[#293E99] focus:border-transparent resize-none"}),(0,t.jsxs)("p",{className:`text-xs text-right mt-0.5 ${h.length>=200?"text-red-400":"text-gray-400"}`,children:[h.length,"/",200]})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between py-2.5 px-3 bg-gray-50 rounded-xl border border-gray-100",children:[(0,t.jsxs)("div",{className:"flex-1 pr-3",children:[(0,t.jsx)("p",{className:"text-sm font-medium text-gray-700",children:"Share with employers"}),(0,t.jsx)("p",{className:"text-xs text-gray-400",children:"Show this proof on your profile"})]}),(0,t.jsx)("button",{type:"button",onClick:()=>f(e=>!e),className:`relative w-11 h-6 rounded-full transition-colors flex-shrink-0 ${p?"bg-[#60bb46]":"bg-gray-300"}`,"aria-label":p?"Disable sharing":"Enable sharing",children:(0,t.jsx)("span",{className:`absolute top-0.5 left-0.5 w-
305 h-5 rounded-full bg-white shadow transition-transform ${p?"translate-x-5":"translate-x-0"}`})})]})]}),(0,t.jsxs)("div",{className:"p-3 border-t border-gray-200 flex gap-2 flex-shrink-0",children:[(0,t.jsx)("button",{type:"button",onClick:a,disabled:s,className:"flex-1 py-2.5 rounded-lg font-medium transition-colors text-sm border border-gray-300 text-gray-600 hover:bg-gray-100 disabled:opacity-50",children:"Skip for now"}),(0,t.jsx)("button",{type:"button",onClick:()=>{j&&r({type:n,file:"file"===n?c??void 0:void 0,link:"link"===n?u:void 0,explanation:h,shareWithEmployers:p})},disabled:!j,className:"flex-1 py-2.5 rounded-lg text-white font-medium transition-colors disabled:cursor-not-allowed flex items-center justify-center gap-2 text-sm",style:{background:j?"#60bb46":"#9ca3af"},children:s?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.default,{_size:18,_color:"#ffffff"}),(0,t.jsx)("span",{children:"Saving..."})]}):"Save Proof"})]})]})}function c({isOpen:e,hivemindHint:s,isSubmitting:r,onSubmit:a,onDismiss:n}){return e?(0,t.jsxs)("div",{className:"border-2 border-[#293E99] rounded-2xl overflow-hidden bg-white w-full flex-shrink-0 flex flex-col",children:[(0,t.jsxs)("div",{className:"bg-[#293E99] rounded-2xl m-1 px-4 py-4 flex items-center justify-between flex-shrink-0",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-xl font-semibold text-white",children:"Add Your Proof"}),(0,t.jsx)("p",{className:"text-sm text-blue-200 mt-0.5",children:"Show employers what you can actually do — one file or link, and a short explanation."})]}),(0,t.jsx)("button",{onClick:n,className:"text-white hover:opacity-70 transition-opacity text-2xl font-bold leading-none ml-4","aria-label":"Close",children:"×"})]}),(0,t.jsx)(i,{hivemindHint:s,isSubmitting:r,onSubmit:a,onDismiss:n})]}):null}var d=e.i(624602),u=e.i(393506);async function m(e,t,s){let r=new URLSearchParams({seeker_id:e,file_name:t,content_type:s}),a=(0,u.buildApiUrl)(`/slide-up-questions/proofUploadUrl?${r}`),n=await fetch(a,{headers:(0,d.getHeaders)(a)}),o=await n.json();if(o.has_error)throw Error(o.message||"Failed to get upload URL");return o.data}async function h(e,t){let s=await fetch(e,{method:"PUT",headers:{"Content-Type":t.type},body:t});if(!s.ok)throw Error(`S3 upload failed: ${s.status}`)}async function x(e,t){try{let s;if(t){let{upload_url:r,s3_key:a}=await m(String(e.seeker_id),t.name,t.type||"application/octet-stream");await h(r,t),s=a}let r=(0,u.buildApiUrl)("/slide-up-questions/submitProof"),a={seeker_id:String(e.seeker_id),explanation:e.explanation,share_with_employers:e.share_with_employers,proof_type:t?"file":"link",...s?{s3_key:s}:{},...e.link?{link:e.link}:{}},n=await fetch(r,{method:"POST",headers:{...(0,d.getHeaders)(r),"Content-Type":"application/json"},body:JSON.stringify(a)});return await n.json()}catch(e){return console.error("Error submitting proof tile:",e),{has_error:!0,message:e instanceof Error?e.message:"Failed to submit proof"}}}function p(){let{isAuthenticated:e}=(0,s.useAuth)(),l=(0,r.getAuthData)(),{isSkipped:i,skip:d}=(0,a.useProofTilePanel)(),[u,m]=(0,o.useState)(!1);if(!n.PROOF_TILE_PANEL_ENABLED||!e||i)return null;let h=async e=>{if(!l?.seeker_id)return!1;m(!0);try{return!(await x({seeker_id:l.seeker_id,explanation:e.explanation,share_with_employers:e.shareWithEmployers,link:"link"===e.type?e.link:void 0},"file"===e.type?e.file:void 0)).has_error}catch{return!1}finally{m(!1)}};return(0,t.jsx)("div",{id:"proof-tile-panel",children:(0,t.jsx)(c,{isOpen:!0,hivemindHint:"Top experts say a short case response or portfolio link works best for most roles.",isSubmitting:u,onSubmit:h,onDismiss:d})})}e.s(["default",()=>p],672531)},93914,e=>{"use strict";var t=e.i(635350),s=e.i(179430),r=e.i(664216),a=e.i(688061),n=e.i(624602),o=e.i(393506);async function l(){try{let e=(0,o.buildApiUrl)("/slide-up-questions/communityQuestions");console.log("[CommunityQuestions] Fetching from:",e);let t=await fetch(e,{method:"GET",headers:(0,n.getHeaders)(e)}),s=await t.json();return console.log("[CommunityQuestions] API response:",s),s}catch(e){return console.error("[CommunityQuestions] Fetch error:",e),{has_error:!0,message:"Failed to fetch community questions"}}}async function i(e){try{let t=(0,o.buildApiUrl)("/slide-up-questions/saveCommunityAnswers"),s=await fetch(t,{method:"POST",headers:{...(0,n.getHeaders)(t),"Content-Type":"application/json"},body:JSON.stringify(e)});return await s.json()}catch(e){return console.error("Error submitting community answers:",e),{has_error:!0,message:"Failed to submit c
30ommunity answers"}}}let c="community_questions_completed",d=/^How long have you lived in .+\?$/;function u(e){return{your_work_life:{insight:"",questions:[{question:"Are you looking for full-time, part-time or remote?",answer_type:"radio",answer_set:["Full-time","Part-time","Remote"],expected_answer:""},{question:"How far are you willing to commute to work?",answer_type:"radio",answer_set:["2 miles","5 miles","10 miles","20+ miles"],expected_answer:""},{question:"How do you commute?",answer_type:"radio",answer_set:["Bus","Car","Bike","Other"],expected_answer:""},{question:"Are you available now for work?",answer_type:"radio",answer_set:["Yes","No"],expected_answer:""},{question:"What type of jobs will you be looking for today?",answer_type:"text",answer_set:[],expected_answer:""}]},your_life_in_the_community:{insight:"",questions:[{question:"Your favorite restaurant or cafe?",answer_type:"text",answer_set:[],expected_answer:""},{question:`How long have you lived in ${e||"your area"}?`,answer_type:"radio",answer_set:["Less than 1 year","2 years","5 years","More than 10 years"],expected_answer:""},{question:"Your favorite leisure activity?",answer_type:"radio",answer_set:["Hiking","Movies","Working out","Other"],expected_answer:""},{question:"Your favorite way to reach friends and family?",answer_type:"radio",answer_set:["Text","Voice call","Email","Other"],expected_answer:""},{question:"Do you use coupons or shop for discounts?",answer_type:"radio",answer_set:["Yes","No"],expected_answer:""}]}}}var m=e.i(544129),h=e.i(935489);let x=[{bg:"#EAEEFF"},{bg:"#FFF6D4"}];function p({onClose:e,stateName:n}){let o=(0,r.getAuthData)(),p=function(e){let[t,s]=(0,a.useState)(!1),[r,n]=(0,a.useState)({}),[o,m]=(0,a.useState)(!1),[h,x]=(0,a.useState)(!1),[p,f]=(0,a.useState)({}),b=(0,a.useRef)(!1);(0,a.useEffect)(()=>{if("true"===localStorage.getItem(c)||b.current)return;let t=!1,r=async()=>{m(!0);try{let r=await l();if(console.log("response =--->>",r),t)return;!r.has_error&&r.data?.questions&&Object.keys(r.data.questions).length>0?n(function(e,t){if(!t)return e;let s={};for(let[r,a]of Object.entries(e))s[r]={...a,questions:a.questions.map(e=>d.test(e.question)?{...e,question:`How long have you lived in ${t}?`}:e)};return s}(r.data.questions,e||"")):n(u(e||"")),s(!0)}catch(r){console.error("Failed to fetch community questions, using fallback:",r),t||(n(u(e||"")),s(!0))}finally{t||m(!1)}},a=setTimeout(()=>{b.current=!0,r()},3e3);return()=>{t=!0,clearTimeout(a)}},[e]);let g=(0,a.useCallback)((e,t)=>{f(s=>({...s,[e]:t}))},[]),y=(0,a.useCallback)(async e=>{if(!e||0===Object.keys(p).length)return!1;x(!0);try{if(!(await i({seeker_id:e,questions:function(e,t){let s={};for(let[r,a]of Object.entries(e))s[r]={},a.questions.forEach(e=>{let a=t[e.question];a&&(s[r][e.question]=a)});return s}(r,p)})).has_error)return s(!1),localStorage.setItem(c,"true"),!0;return!1}catch(e){return console.error("Failed to submit community answers:",e),!1}finally{x(!1)}},[p,r]);return{isOpen:t,questions:r,isLoading:o,isSubmitting:h,answers:p,setAnswer:g,submitAnswers:y,dismiss:(0,a.useCallback)(()=>{s(!1)},[])}}(n),{isSkipped:f,skip:b}=(0,m.useCommunityPanel)(),g=function(){let[e,t]=(0,a.useState)(!0);return(0,a.useEffect)(()=>{let e=window.matchMedia("(min-width: 1024px)");t(e.matches);let s=e=>t(e.matches);return e.addEventListener("change",s),()=>e.removeEventListener("change",s)},[]),e}();if(f||!p.isOpen||0===Object.keys(p.questions).length)return null;let y=Object.keys(p.answers).length>0,j=async()=>{let e=o?.seeker_id||Date.now().toString();await p.submitAnswers(e)},w=0,v=(0,t.jsxs)("div",{id:"community-questions-panel",className:`border-2 border-[#293E99] rounded-2xl overflow-hidden bg-white flex-shrink-0 ${g?"w-full":"w-[92vw] max-w-[480px] max-h-[90vh] flex flex-col shadow-xl"}`,children:[(0,t.jsxs)("div",{className:"bg-[#293E99] rounded-2xl m-1 px-4 py-4 flex items-center justify-between flex-shrink-0",children:[(0,t.jsx)("h2",{className:"text-xl font-semibold text-white",children:"Tell Us About Yourself"}),(e||!g)&&(0,t.jsx)("button",{onClick:e||b,className:"text-white hover:opacity-70 transition-opacity text-2xl font-bold leading-none ml-4","aria-label":"Close",children:"×"})]}),(0,t.jsx)("div",{className:`p-2 space-y-1 overflow-y-auto ${g?"max-h-[94vh]":"flex-1"}`,children:Object.entries(p.questions).map(([e,s])=>{let r=e.replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase());return(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"px-4 py-2",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"inline-block w-2 h-2 rounded-full bg-[#293E99]"}),(0,t.jsx)("h3",{className:"text-sm font-bold uppercase tracking-wide text-[#293E99]",children:r})]}),s.insight&&(0,t.jsx)("p",{className:"text-xs text-gray-500 mt-1 ml-4",children:s.insight})]}),s.questions.map((s,r)=>{w++;let a=x[r%x.length].bg;return(0,t.jsxs)("div",{className:"px-4 py-3 rounded-2xl",style:{background:a},children:[(0,t.jsxs)("p",{className:"font-medium text-sm mb-2 text-[#293E99]",children:[(0,t.jsx)("span",{className:"inline-flex items-center justify-center w-5 h-5 rounded-full text-xs text-white mr-2 bg-[#293E99]",children:w}),s.question]}),"radio"===s.answer_type&&s.answer_set.length>0&&(0,t.jsx)("div",{className:"ml-7 space-y-1",children:s.answer_set.map((a,n)=>(0,t.jsxs)("label",{className:"flex gap-2 items-center text-sm cursor-pointer",children:[(0,t.jsx)("input",{type:"radio",name:`community-q-${e}-${r}`,value:a,checked:p.answers[s.question]===a,onChange:()=>p.setAnswer(s.question,a),disabled:p.isSubmitting,className:"accent-[#293E99]"}),(0,t.jsx)("span",{className:"text-gray-700",children:a})]},n))}),("text"===s.answer_type||"radio"!==s.answer_type&&0===s.answer_set.length)&&(0,t.jsx)("div",{className:"ml-7",children:(0,t.jsx)("input",{type:"text",value:p.answers[s.question]||"",onChange:e=>p.setAnswer(s.question,e.target.value),disabled:p.isSubmitting,placeholder:"Type your answer...",className:"w-full px-3 py-2 border border-gray-300 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-[#293E99] focus:border-transparent disabled:bg-gray-100"})})]},`${e}-${r}`)})]},e)})}),(0,t.jsxs)("div",{className:"p-3 border-t border-gray-200 flex gap-2 flex-shrink-0",children:[(0,t.jsx)("button",{onClick:b,disabled:p.isSubmitting,className:"flex-1 py-2.5 rounded-lg font-medium transition-colors text-sm border border-gray-300 text-gray-600 hover:bg-gray-100",children:"Skip"}),(0,t.jsx)("button",{onClick:j,disabled:p.isSubmitting||!y,className:"flex-1 py-2.5 rounded-lg text-white font-medium transition-colors disabled:cursor-not-allowed flex items-center justify-center gap-2 text-sm",style:{background:p.isSubmitting||!y?"#9ca3af":"#60bb46"},children:p.isSubmitting?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.default,{_size:18,_color:"#ffffff"}),(0,t.jsx)("span",{children:"Submitting..."})]}):"Submit Answers"})]})]});return g?v:(0,h.createPortal)((0,t.jsx)("div",{className:"fixed inset-0 z-[2000] flex items-center justify-center bg-black/50",children:v}),document.body)}e.s(["default",()=>p],93914)},224859,(e,t,s)=>{var r;let a;e.e,r=function e(){var t,s="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==s?s:{}
vendor: 6,475 bytes, line 30
30,r=!s.document&&!!s.postMessage,a=s.IS_PAPA_WORKER||!1,n={},o=0,l={};function i(e){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},(function(e){var t=y(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null),this._handle=new h(t),(this._handle.streamer=this)._config=t}).call(this,e),this.parseChunk=function(e,t){var r=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<r){let t=this._config.newline;t||(n=this._config.quoteChar||'"',t=this._handle.guessLineEndings(e,n)),e=[...e.split(t).slice(r)].join(t)}this.isFirstChunk&&w(this._config.beforeFirstChunk)&&void 0!==(n=this._config.beforeFirstChunk(e))&&(e=n),this.isFirstChunk=!1,this._halted=!1;var r=this._partialLine+e,n=(this._partialLine="",this._handle.parse(r,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(e=n.meta.cursor,this._finished||(this._partialLine=r.substring(e-this._baseIndex),this._baseIndex=e),n&&n.data&&(this._rowCount+=n.data.length),r=this._finished||this._config.preview&&this._rowCount>=this._config.preview,a)s.postMessage({results:n,workerId:l.WORKER_ID,finished:r});else if(w(this._config.chunk)&&!t){if(this._config.chunk(n,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=n=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(n.data),this._completeResults.errors=this._completeResults.errors.concat(n.errors),this._completeResults.meta=n.meta),this._completed||!r||!w(this._config.complete)||n&&n.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),r||n&&n.meta.paused||this._nextChunk(),n}this._halted=!0},this._sendError=function(e){w(this._config.error)?this._config.error(e):a&&this._config.error&&s.postMessage({workerId:l.WORKER_ID,error:e,finished:!1})}}function c(e){var t;(e=e||{}).chunkSize||(e.chunkSize=l.RemoteChunkSize),i.call(this,e),this._nextChunk=r?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),r||(t.onload=j(this._chunkLoaded,this),t.onerror=j(this._chunkError,this)),t.open(this._config.downloadRequestBody?"POST":"GET",this._input,!r),this._config.downloadRequestHeaders){var e,s,a=this._config.downloadRequestHeaders;for(s in a)t.setRequestHeader(s,a[s])}this._config.chunkSize&&(e=this._start+this._config.chunkSize-1,t.setRequestHeader("Range","bytes="+this._start+"-"+e));try{t.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}r&&0===t.status&&this._chunkError()}},this._chunkLoaded=function(){let e;4===t.readyState&&(t.status<200||400<=t.status?this._chunkError():(this._start+=this._config.chunkSize||t.responseText.length,this._finished=!this._config.chunkSize||this._start>=(null!==(e=(e=t).getResponseHeader("Content-Range"))?parseInt(e.substring(e.lastIndexOf("/")+1)):-1),this.parseChunk(t.responseText)))},this._chunkError=function(e){e=t.statusText||e,this._sendError(Error(e))}}function d(e){(e=e||{}).chunkSize||(e.chunkSize=l.LocalChunkSize),i.call(this,e);var t,s,r="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,s=e.slice||e.webkitSlice||e.mozSlice,r?((t=new FileReader).onload=j(this._chunkLoaded,this),t.onerror=j(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var e=this._input,a=(this._config.chunkSize&&(a=Math.min(this._start+this._config.chunkSize,this._input.size),e=s.call(e,this._start,a)),t.readAsText(e,this._config.encoding));r||this._chunkLoaded({target:{result:a}})},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function u(e){var t;i.call(this,e=e||{}),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){var e,s;if(!this._finished)return t=(e=this._config.chunkSize)?(s=t.substring(0,e),t.substring(e)):(s=t,""),this._finished=!t,this.parseChunk(s)}}function m(e){i.call(this,e=e||{});var t=[],s=!0,r=!1;this.pause=function(){i.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){i.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){r&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):s=!0},this._streamData=j(function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),s&&(s=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}},this),this._streamError=j(function(e){this._streamCleanUp(),this._sendError(e)},this),this._streamEnd=j(function(){this._streamCleanUp(),r=!0,this._streamData("")},this),this._streamCleanUp=j(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function h(e){var t,s,r,a,n=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,o=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,i=this,c=0,d=0,u=!1,m=!1,h=[],f={data:[],errors:[],meta:{}};function b(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function g(){if(f&&r&&(v("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+l.DefaultDelimiter+"'"),r=!1),e.skipEmptyLines&&(f.data=f.data.filter(function(e){return!b(e)})),j()){if(f)if(Array.isArray(f.data[0])){for(var t,s=0;j()&&s<f.data.length;
30s++)f.data[s].forEach(a);f.data.splice(0,1)}else f.data.forEach(a);function a(t,s){w(e.transformHeader)&&(t=e.transformHeader(t,s)),h.push(t)}}function i(t,s){for(var r=e.header?{}:[],a=0;a<t.length;a++){var l=a,i=t[a],i=((t,s)=>(e.dynamicTypingFunction&&void 0===e.dynamicTyping[t]&&(e.dynamicTyping[t]=e.dynamicTypingFunction(t)),!0===(e.dynamicTyping[t]||e.dynamicTyping))?"true"===s||"TRUE"===s||"false"!==s&&"FALSE"!==s&&((e=>{if(n.test(e)&&-0x20000000000000<(e=parseFloat(e))&&e<0x20000000000000)return 1})(s)?parseFloat(s):o.test(s)?new Date(s):""===s?null:s):s)(l=e.header?a>=h.length?"__parsed_extra":h[a]:l,i=e.transform?e.transform(i,l):i);"__parsed_extra"===l?(r[l]=r[l]||[],r[l].push(i)):r[l]=i}return e.header&&(a>h.length?v("FieldMismatch","TooManyFields","Too many fields: expected "+h.length+" fields but parsed "+a,d+s):a<h.length&&v("FieldMismatch","TooFewFields","Too few fields: expected "+h.length+" fields but parsed "+a,d+s)),r}f&&(e.header||e.dynamicTyping||e.transform)&&(t=1,!f.data.length||Array.isArray(f.data[0])?(f.data=f.data.map(i),t=f.data.length):f.data=i(f.data,0),e.header&&f.meta&&(f.meta.fields=h),d+=t)}function j(){return e.header&&0===h.length}function v(e,t,s,r){e={type:e,code:t,message:s},void 0!==r&&(e.row=r),f.errors.push(e)}w(e.step)&&(a=e.step,e.step=function(t){f=t,j()?g():(g(),0!==f.data.length&&(c+=t.data.length,e.preview&&c>e.preview?s.abort():(f.data=f.data[0],a(f,i))))}),this.parse=function(a,n,o){var i=e.quoteChar||'"',i=(e.newline||(e.newline=this.guessLineEndings(a,i)),r=!1,e.delimiter?w(e.delimiter)&&(e.delimiter=e.delimiter(a),f.meta.delimiter=e.delimiter):((i=((t,s,r,a,n)=>{var o,i,c,d;n=n||[",","	","|",";",l.RECORD_SEP,l.UNIT_SEP];for(var u=0;u<n.length;u++){for(var m,h=n[u],x=0,f=0,g=0,y=(c=void 0,new p({comments:a,delimiter:h,newline:s,preview:10}).parse(t)),j=0;j<y.data.length;j++)r&&b(y.data[j])?g++:(f+=m=y.data[j].length,void 0===c?c=m:0<m&&(x+=Math.abs(m-c),c=m));0<y.data.length&&(f/=y.data.length-g),(void 0===i||x<=i)&&(void 0===d||d<f)&&1.99<f&&(i=x,o=h,d=f)}return{successful:!!(e.delimiter=o),bestDelimiter:o}})(a,e.newline,e.skipEmptyLines,e.comments,e.delimitersToGuess)).successful?e.delimiter=i.bestDelimiter:(r=!0,e.delimiter=l.DefaultDelimiter),f.meta.delimiter=e.delimiter),y(e));return e.preview&&e.header&&i.preview++,t=a,f=(s=new p(i)).parse(t,n,o),g(),u?{meta:{paused:!0}}:f||{meta:{paused:!1}}},this.paused=function(){return u},this.pause=function(){u=!0,s.abort(),t=w(e.chunk)?"":t.substring(s.getCharIndex())},this.resume=function(){i.streamer._halted?(u=!1,i.streamer.parseChunk(t,!0)):setTimeout(i.resume,3)},this.aborted=function(){return m},this.abort=function(){m=!0,s.abort(),f.meta.aborted=!0,w(e.complete)&&e.complete(f),t=""},this.guessLineEndings=function(e,t){e=e.substring(0,1048576);var t=RegExp(x(t)+"([^]*?)"+x(t),"gm"),s=(e=e.replace(t,"")).split("\r"),t=e.split("\n"),e=1<t.length&&t[0].length<s[0].length;if(1===s.length||e)return"\n";for(var r=0,a=0;a<s.length;a++)"\n"===s[a][0]&&r++;return r>=s.length/2?"\r\n":"\r"}}function x(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function p(e){var t=(e=e||{}).delimiter,s=e.newline,r=e.comments,a=e.step,n=e.preview,o=e.fastMode,i=null,c=!1,d=null==e.quoteChar?'"':e.quoteChar,u=d;if(void 0!==e.escapeChar&&(u=e.escapeChar),("string"!=typeof t||-1<l.BAD_DELIMITERS.indexOf(t))&&(t=","),r===t)throw Error("Comment character same as delimiter");!0===r?r="#":("string"!=typeof r||-1<l.BAD_DELIMITERS.indexOf(r))&&(r=!1),"\n"!==s&&"\r"!==s&&"\r\n"!==s&&(s="\n");var m=0,h=!1;this.parse=function(l,p,f){if("string"!=typeof l)throw Error("Input must be a string");var b=l.length,g=t.length,y=s.length,j=r.length,v=w(a),N=[],C=[],_=[],k=m=0;if(!l)return M();if(o||!1!==o&&-1===l.indexOf(d)){for(var S=l.split(s),E=0;E<S.length;E++){if(_=S[E],m+=_.length,E!==S.length-1)m+=s.length;else if(f)break;if(!r||_.substring(0,j)!==r){if(v){if(N=[],F(_.split(t)),U(),h)return M()}else F(_.split(t));if(n&&n<=E)return N=N.slice(0,n),M(!0)}}return M()}for(var A=l.indexOf(t,m),L=l.indexOf(s,m),I=RegExp(x(u)+x(d),"g"),T=l.indexOf(d,m);;)if(l[m]===d)for(T=m,m++;;){if(-1===(T=l.indexOf(d,T+1)))return f||C.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:N.length,index:m}),P();if(T===b-1)return P(l.substring(m,T).replace(I,d));if(d===u&&l[T+1]===u)T++;else if(d===u||0===T||l[T-1]!==u){-1!==A&&A<T+1&&(A=l.indexOf(t,T+1));var O=R(-1===(L=-1!==L&&L<T+1?l.indexOf(s,T+1):L)?A:Math.min(A,L));if(l.substr(T+1+O,g)===t){_.push(l.substring(m,T).replace(I,d)),l[m=T+1+O+g]!==d&&(T=l.indexOf(d,m)),A=l.indexOf(t,m),L=l.indexOf(s,m);break}if(O=R(L),l.substring(T+1+O,T+1+O+y)===s){if(_.push(l.substring(m,T).replace(I,d)),D(T+1+O+y),A=l.indexOf(t,m),T=l.indexOf(d,m),v&&(U(),h))return M();if(n&&N.length>=n)return M(!0);break}C.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:N.length,index:m}),T++}}else if(r&&0===_.length&&l.substring(m,m+j)===r){if(-1===L)return M();m=L+y,L=l.indexOf(s,m),A=l.indexOf(t,m)}else if(-1!==A&&(A<L||-1===L))_.push(l.substring(m,A)),m=A+g,A=l.indexOf(t,m);else{if(-1===L)break;if(_.push(l.substring(m,L)),D(L+y),v&&(U(),h))return M();if(n&&N.length>=n)return M(!0)}return P();function F(e){N.push(e),k=m}function R(e){return -1!==e&&(e=l.substring(T+1,e))&&""===e.trim()?e.length:0}function P(e){return f||(void 0===e&&(e=l.substring(m)),_.push(e),m=b,F(_),v&&U()),M()}function D(e){m=e,F(_),_=[],L=l.indexOf(s,m)}function M(r){if(e.header&&!p&&N.length&&!c){var a=N[0],n=Object.create(null),o=new Set(a
30);let t=!1;for(let s=0;s<a.length;s++){let r=a[s];if(n[r=w(e.transformHeader)?e.transformHeader(r,s):r]){let e,l=n[r];for(;e=r+"_"+l,l++,o.has(e););o.add(e),a[s]=e,n[r]++,t=!0,(i=null===i?{}:i)[e]=r}else n[r]=1,a[s]=r;o.add(r)}t&&console.warn("Duplicate headers found and renamed."),c=!0}return{data:N,errors:C,meta:{delimiter:t,linebreak:s,aborted:h,truncated:!!r,cursor:k+(p||0),renamedHeaders:i}}}function U(){a(M()),N=[],C=[]}},this.abort=function(){h=!0},this.getCharIndex=function(){return m}}function f(e){var t=e.data,s=n[t.workerId],r=!1;if(t.error)s.userError(t.error,t.file);else if(t.results&&t.results.data){var a={abort:function(){r=!0,b(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:g,resume:g};if(w(s.userStep)){for(var o=0;o<t.results.data.length&&(s.userStep({data:t.results.data[o],errors:t.results.errors,meta:t.results.meta},a),!r);o++);delete t.results}else w(s.userChunk)&&(s.userChunk(t.results,a,t.file),delete t.results)}t.finished&&!r&&b(t.workerId,t.results)}function b(e,t){var s=n[e];w(s.userComplete)&&s.userComplete(t),s.terminate(),delete n[e]}function g(){throw Error("Not implemented.")}function y(e){if("object"!=typeof e||null===e)return e;var t,s=Array.isArray(e)?[]:{};for(t in e)s[t]=y(e[t]);return s}function j(e,t){return function(){e.apply(t,arguments)}}function w(e){return"function"==typeof e}return l.parse=function(t,r){var a,i,h,x=(r=r||{}).dynamicTyping||!1;if(w(x)&&(r.dynamicTypingFunction=x,x={}),r.dynamicTyping=x,r.transform=!!w(r.transform)&&r.transform,!r.worker||!l.WORKERS_SUPPORTED){let e;return x=null,l.NODE_STREAM_INPUT,"string"==typeof t?(t=65279!==(e=t).charCodeAt(0)?e:e.slice(1),x=new(r.download?c:u)(r)):!0===t.readable&&w(t.read)&&w(t.on)?x=new m(r):(s.File&&t instanceof File||t instanceof Object)&&(x=new d(r)),x.stream(t)}(x=!!l.WORKERS_SUPPORTED&&(i=s.URL||s.webkitURL||null,h=e.toString(),a=l.BLOB_URL||(l.BLOB_URL=i.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",h,")();"],{type:"text/javascript"}))),(a=new s.Worker(a)).onmessage=f,a.id=o++,n[a.id]=a)).userStep=r.step,x.userChunk=r.chunk,x.userComplete=r.complete,x.userError=r.error,r.step=w(r.step),r.chunk=w(r.chunk),r.complete=w(r.complete),r.error=w(r.error),delete r.worker,x.postMessage({input:t,config:r,workerId:x.id})},l.unparse=function(e,t){var s=!1,r=!0,a=",",n="\r\n",o='"',i=o+o,c=!1,d=null,u=!1,m=((()=>{if("object"==typeof t){if("string"!=typeof t.delimiter||l.BAD_DELIMITERS.filter(function(e){return -1!==t.delimiter.indexOf(e)}).length||(a=t.delimiter),("boolean"==typeof t.quotes||"function"==typeof t.quotes||Array.isArray(t.quotes))&&(s=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(c=t.skipEmptyLines),"string"==typeof t.newline&&(n=t.newline),"string"==typeof t.quoteChar&&(o=t.quoteChar),"boolean"==typeof t.header&&(r=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw Error("Option columns is empty");d=t.columns}void 0!==t.escapeChar&&(i=t.escapeChar+o),t.escapeFormulae instanceof RegExp?u=t.escapeFormulae:"boolean"==typeof t.escapeFormulae&&t.escapeFormulae&&(u=/^[=+\-@\t\r].*$/)}})(),RegExp(x(o),"g"));if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return h(null,e,c);if("object"==typeof e[0])return h(d||Object.keys(e[0]),e,c)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||d),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),h(e.fields||[],e.data||[],c);throw Error("Unable to serialize unrecognized input");function h(e,t,s){var o="",l=("string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t)),Array.isArray(e)&&0<e.length),i=!Array.isArray(t[0]);if(l&&r){for(var c=0;c<e.length;c++)0<c&&(o+=a),o+=p(e[c],c);0<t.length&&(o+=n)}for(var d=0;d<t.length;d++){var u=(l?e:t[d]).length,m=!1,h=l?0===Object.keys(t[d]).length:0===t[d].length;if(s&&!l&&(m="greedy"===s?""===t[d].join("").trim():1===t[d].length&&0===t[d][0].length),"greedy"===s&&l){for(var x=[],f=0;f<u;f++){var b=i?e[f]:f;x.push(t[d][b])}m=""===x.join("").trim()}if(!m){for(var g=0;g<u;g++){0<g&&!h&&(o+=a);var y=l&&i?e[g]:g;o+=p(t[d][y],g)}
30d<t.length-1&&(!s||0<u&&!h)&&(o+=n)}}return o}function p(e,t){var r,n;return null==e?"":e.constructor===Date?JSON.stringify(e).slice(1,25):(n=!1,u&&"string"==typeof e&&u.test(e)&&(e="'"+e,n=!0),r=e.toString().replace(m,i),(n=n||!0===s||"function"==typeof s&&s(e,t)||Array.isArray(s)&&s[t]||((e,t)=>{for(var s=0;s<t.length;s++)if(-1<e.indexOf(t[s]))return!0;return!1})(r,l.BAD_DELIMITERS)||-1<r.indexOf(a)||" "===r.charAt(0)||" "===r.charAt(r.length-1))?o+r+o:r)}},l.RECORD_SEP="\x1e",l.UNIT_SEP="\x1f",l.BYTE_ORDER_MARK="\uFEFF",l.BAD_DELIMITERS=["\r","\n",'"',l.BYTE_ORDER_MARK],l.WORKERS_SUPPORTED=!r&&!!s.Worker,l.NODE_STREAM_INPUT=1,l.LocalChunkSize=0xa00000,l.RemoteChunkSize=5242880,l.DefaultDelimiter=",",l.Parser=p,l.ParserHandle=h,l.NetworkStreamer=c,l.FileStreamer=d,l.StringStreamer=u,l.ReadableStreamStreamer=m,s.jQuery&&((t=s.jQuery).fn.parse=function(e){var r=e.config||{},a=[];return this.each(function(e){if(!("INPUT"===t(this).prop("tagName").toUpperCase()&&"file"===t(this).attr("type").toLowerCase()&&s.FileReader)||!this.files||0===this.files.length)return!0;for(var n=0;n<this.files.length;n++)a.push({file:this.files[n],inputElem:this,instanceConfig:t.extend({},r)})}),n(),this;function n(){if(0===a.length)w(e.complete)&&e.complete();else{var s,r,n,i=a[0];if(w(e.before)){var c=e.before(i.file,i.inputElem);if("object"==typeof c){if("abort"===c.action)return s=i.file,r=i.inputElem,n=c.reason,void(w(e.error)&&e.error({name:"AbortError"},s,r,n));if("skip"===c.action)return void o();"object"==typeof c.config&&(i.instanceConfig=t.extend(i.instanceConfig,c.config))}else if("skip"===c)return void o()}var d=i.instanceConfig.complete;i.instanceConfig.complete=function(e){w(d)&&d(e,i.file,i.inputElem),o()},l.parse(i.file,i.instanceConfig)}}function o(){a.splice(0,1),n()}}),a&&(s.onmessage=function(e){e=e.data,void 0===l.WORKER_ID&&e&&(l.WORKER_ID=e.workerId),"string"==typeof e.input?s.postMessage({workerId:l.WORKER_ID,results:l.parse(e.input,e.config),finished:!0}):(s.File&&e.input instanceof File||e.input instanceof Object)&&(e=l.parse(e.input,e.config))&&s.postMessage({workerId:l.WORKER_ID,results:e,finished:!0})}),(c.prototype=Object.create(i.prototype)).constructor=c,(d.prototype=Object.create(i.prototype)).constructor=d,(u.prototype=Object.create(u.prototype)).constructor=u,(m.prototype=Object.create(i.prototype)).constructor=m,l},"function"==typeof define&&define.amd?void 0!==(a=r())&&e.v(a):t.exports=r()},82114,(e,t,s)=>{!function(t,s){if("function"==typeof define&&define.amd){let t;void 0!==(t=s())&&e.v(t)}else s()}(e.e,function(){"use strict";function s(e,t,s){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){l(r.response,t,s)},r.onerror=function(){console.error("could not download file")},r.send()}function r(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function a(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(s){var t=document.createEvent("MouseEvents");
30t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var n="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:e.g.global===e.g?e.g:void 0,o=n.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=n.saveAs||("object"!=typeof window||window!==n?function(){}:"download"in HTMLAnchorElement.prototype&&!o?function(e,t,o){var l=n.URL||n.webkitURL,i=document.createElement("a");i.download=t=t||e.name||"download",i.rel="noopener","string"==typeof e?(i.href=e,i.origin===location.origin?a(i):r(i.href)?s(e,t,o):a(i,i.target="_blank")):(i.href=l.createObjectURL(e),setTimeout(function(){l.revokeObjectURL(i.href)},4e4),setTimeout(function(){a(i)},0))}:"msSaveOrOpenBlob"in navigator?function(e,t,n){if(t=t||e.name||"download","string"!=typeof e){var o;navigator.msSaveOrOpenBlob((void 0===(o=n)?o={autoBom:!1}:"object"!=typeof o&&(console.warn("Deprecated: Expected third argument to be a object"),o={autoBom:!o}),o.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\uFEFF",e],{type:e.type}):e),t)}else if(r(e))s(e,t,n);else{var l=document.createElement("a");l.href=e,l.target="_blank",setTimeout(function(){a(l)})}}:function(e,t,r,a){if((a=a||open("","_blank"))&&(a.document.title=a.document.body.innerText="downloading..."),"string"==typeof e)return s(e,t,r);var l="application/octet-stream"===e.type,i=/constructor/i.test(n.HTMLElement)||n.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||l&&i||o)&&"undefined"!=typeof FileReader){var d=new FileReader;d.onloadend=function(){var e=d.result;e=c?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=e:location=e,a=null},d.readAsDataURL(e)}else{var u=n.URL||n.webkitURL,m=u.createObjectURL(e);a?a.location=m:location.href=m,a=null,setTimeout(function(){u.revokeObjectURL(m)},4e4)}});n.saveAs=l.saveAs=l,t.exports=l})}
30,879265,(e,t,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function a(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,s=Array(e.length);t<e.length;t++)s[t]=e[t];return s}var n=s.isSafari=function(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)},o=s.isJsons=function(e){return Array.isArray(e)&&e.every(function(e){return(void 0===e?"undefined":r(e))==="object"&&!(e instanceof Array)})},l=s.isArrays=function(e){return Array.isArray(e)&&e.every(function(e){return Array.isArray(e)})},i=s.jsonsHeaders=function(e){return Array.from(e.map(function(e){return Object.keys(e)}).reduce(function(e,t){return new Set([].concat(a(e),a(t)))},[]))},c=s.jsons2arrays=function(e,t){var s=t=t||i(e),r=t;return o(t)&&(s=t.map(function(e){return e.label}),r=t.map(function(e){return e.key})),[s].concat(a(e.map(function(e){return r.map(function(t){return d(t,e)})})))},d=s.getHeaderValue=function(e,t){var s=e.replace(/\[([^\]]+)]/g,".$1").split(".").reduce(function(e,t,s,r){var a=e[t];if(null!=a)return a;r.splice(1)},t);return void 0===s?e in t?t[e]:"":s},u=s.elementOrEmpty=function(e){return null==e?"":e},m=s.joiner=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",",s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:'"';return e.filter(function(e){return e}).map(function(e){return e.map(function(e){return u(e)}).map(function(e){return""+s+e+s}).join(t)}).join("\n")},h=s.arrays2csv=function(e,t,s,r){return m(t?[t].concat(a(e)):e,s,r)},x=s.jsons2csv=function(e,t,s,r){return m(c(e,t),s,r)},p=s.string2csv=function(e,t,s,r){return t?t.join(s)+"\n"+e:e.replace(/"/g,'""')},f=s.toCSV=function(e,t,s,r){if(o(e))return x(e,t,s,r);if(l(e))return h(e,t,s,r);if("string"==typeof e)return p(e,t,s);throw TypeError('Data should be a "String", "Array of arrays" OR "Array of objects" ')};s.buildURI=function(e,t,s,r,a){var o=f(e,s,r,a),l=n()?"application/csv":"text/csv",i=new Blob([t?"\uFEFF":"",o],{type:l}),c="data:"+l+";charset=utf-8,"+(t?"\uFEFF":"")+o,d=window.URL||window.webkitURL;return void 0===d.createObjectURL?c:d.createObjectURL(i)}},859956,(e,t,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.PropsNotForwarded=s.defaultProps=s.propTypes=void 0,(r=e.r(688061))&&r.__esModule;var r,a=e.r(304153);s.propTypes={data:(0,a.oneOfType)([a.string,a.array,a.func]).isRequired,headers:a.array,target:a.string,separator:a.string,filename:a.string,uFEFF:a.bool,onClick:a.func,asyncOnClick:a.bool,enclosingCharacter:a.string},s.defaultProps={separator:",",filename:"generatedBy_react-csv.csv",uFEFF:!0,asyncOnClick:!1,enclosingCharacter:'"'},s.PropsNotForwarded=["data","headers"]},305221,(e,t,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0});var r,a=function(){function e(e,t){for(var s=0;s<t.length;s++){var r=t[s];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,s,r){return s&&e(t.prototype,s),r&&e(t,r),t}}(),n=(r=e.r(688061))&&r.__esModule?r:{default:r},o=e.r(879265),l=e.r(859956),i=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);function t(e){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");var s=function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return s.state={},s}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),a(t,[{key:"buildURI",value:function(){return o.buildURI.apply(void 0,arguments)}},{key:"componentDidMount",value:function(){var e=this.props,t=e.data,s=e.headers,r
30=e.separator,a=e.enclosingCharacter,n=e.uFEFF,o=e.target,l=e.specs,i=e.replace;this.state.page=window.open(this.buildURI(t,n,s,r,a),o,l,i)}},{key:"getWindow",value:function(){return this.state.page}},{key:"render",value:function(){return null}}]),t}(n.default.Component);i.defaultProps=Object.assign(l.defaultProps,{target:"_blank"}),i.propTypes=l.propTypes,s.default=i},35335,(e,t,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0});var r,a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},n=function(){function e(e,t){for(var s=0;s<t.length;s++){var r=t[s];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,s,r){return s&&e(t.prototype,s),r&&e(t,r),t}}(),o=(r=e.r(688061))&&r.__esModule?r:{default:r},l=e.r(879265),i=e.r(859956),c=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);function t(e){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");var s=function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return s.buildURI=s.buildURI.bind(s),s}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),n(t,[{key:"buildURI",value:function(){return l.buildURI.apply(void 0,arguments)}},{key:"handleLegacy",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(window.navigator.msSaveOrOpenBlob){e.preventDefault();var s=this.props,r=s.data,a=s.headers,n=s.separator,o=s.filename,i=s.enclosingCharacter,c=s.uFEFF,d=t&&"function"==typeof r?r():r,u=new Blob([c?"\uFEFF":"",(0,l.toCSV)(d,a,n,i)]);return window.navigator.msSaveBlob(u,o),!1}}},{key:"handleAsyncClick",value:function(e){var t=this;this.props.onClick(e,function(s){!1===s?e.preventDefault():t.handleLegacy(e,!0)})}},{key:"handleSyncClick",value:function(e){!1===this.props.onClick(e)?e.preventDefault():this.handleLegacy(e)}},{key:"handleClick",value:function(){var e=this;return function(t){if("function"==typeof e.props.onClick)return e.props.asyncOnClick?e.handleAsyncClick(t):e.handleSyncClick(t);e.handleLegacy(t)}}},{key:"render",value:function(){var e=this,t=this.props,s=t.data,r=t.headers,n=t.separator,l=t.filename,i=t.uFEFF,c=t.children,d=(t.onClick,t.asyncOnClick,t.enclosingCharacter),u=function(e,t){var s={};for(var r in e)!(t.indexOf(r)>=0)&&Object.prototype.hasOwnProperty.call(e,r)&&(s[r]=e[r]);return s}(t,["data","headers","separator","filename","uFEFF","children","onClick","asyncOnClick","enclosingCharacter"]),m="undefined"==typeof window?"":this.buildURI(s,i,r,n,d);return o.default.createElement("a",a({download:l},u,{ref:function(t){return e.link=t},target:"_self",href:m,onClick:this.handleClick()}),c)}}]),t}(o.default.Component);c.defaultProps=i.defaultProps,c.propTypes=i.propTypes,s.default=c},27833,(e,t,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.CSVLink=s.CSVDownload=void 0;var r=n(e.r(305221)),a=n(e.r(35335));function n(e){return e&&e.__esModule?e:{default:e}}s.CSVDownload=r.default,s.CSVLink=a.default},462373,(e,t,s)=>{t.exports=e.r(27833)},380696,e=>{"use strict";var t=e.i(635350),s=e.i(697835);let r=(0,s.createServerReference)("4004493e235a592ddf881b31cbf6ccc46eb11791f3",s.callServer,void 0,s.findSourceMapURL,"fetchCitiesWithJobsAction");var a=e.i(688061),n=e.i(579532),o=e.i(664216),l=e.i(547774),i=e.i(420102);let c=a.forwardRef(function({title:e,titleId:t,...s},r){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},s),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 3.75v4.5m0-4.5h4.5m-4.5 0L9 9M3.75 20.25v-4.5m0 4.5h4.5m-4.5 0L9 15M2
300.25 3.75h-4.5m4.5 0v4.5m0-4.5L15 9m5.25 11.25h-4.5m4.5 0v-4.5m0 4.5L15 15"}))});var d=e.i(755809),u=e.i(583253),m=e.i(707759),h=e.i(346187);let x=(0,d.default)(()=>e.A(409499).then(e=>e.LeafletMapContainer),{loadableGenerated:{modules:[189450]},ssr:!1,loading:()=>(0,t.jsx)("div",{className:"h-full bg-[#e8e4df] flex items-center justify-center rounded-xl",children:(0,t.jsx)("span",{className:"text-gray-400 text-sm",children:"Loading map..."})})}),p=(0,d.default)(()=>e.A(477713).then(e=>e.CityMarkers),{loadableGenerated:{modules:[887696]},ssr:!1}),f=(0,d.default)(()=>e.A(930865).then(e=>e.HomeDistanceOverlay),{loadableGenerated:{modules:[283097]},ssr:!1}),b=(0,d.default)(()=>e.A(149679).then(e=>e.ZoomControls),{loadableGenerated:{modules:[451839]},ssr:!1}),g=(0,d.default)(()=>e.A(26566).then(e=>e.PostJobMarkers),{loadableGenerated:{modules:[175030]},ssr:!1}),y=2*Math.PI*14;function j({citiesForMap:e,stateCenter:s,stateSlug:r,countryCode:d,selectedCityName:j,onCitySelect:w,citiesDataReady:v=!0,isCityPage:N=!1}){let[C,_]=(0,a.useState)(!1),[k,S]=(0,a.useState)(0),E=C&&v,{user:A,isAuthenticated:L}=(0,h.useAuth)(),I=(0,a.useMemo)(()=>(0,o.getAuthData)(),[]),T=A?.seeker_id?Number(A.seeker_id):I.seeker_id,O=(0,a.useMemo)(()=>e.filter(e=>e.jobCount>0),[e]),F=(0,a.useMemo)(()=>(0,n.findNearestCitiesWithJobs)(e,s),[e,s]),{scores:R,isLoading:P}=(0,i.useCityScores)(r,E?O:[]),{personalizedCityScores:D}=(0,l.useBackgroundCityScoring)({nearestCities:F,stateSlug:r,isAuthenticated:L,seekerId:T,enabled:E&&L}),M=(0,a.useMemo)(()=>{let e={...R};for(let[t,s]of Object.entries(D))e[t]=s;return e},[R,D]);(0,a.useEffect)(()=>{let e=Date.now(),t=setInterval(()=>{let s=Math.min((Date.now()-e)/5e3,1);S(s),s>=1&&(clearInterval(t),_(!0))},50);return()=>clearInterval(t)},[]);let U=(0,a.useCallback)(e=>{w(e.name)},[w]),q=(0,a.useCallback)((e,t)=>{w(t)},[w]);return(0,t.jsxs)("section",{className:"mb-8 isolate",children:[(0,t.jsx)("div",{className:"relative w-full h-[230px] sm:h-[300px] md:h-[400px] lg:h-[500px] rounded-[30px] overflow-clip",children:E?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(x,{center:s,zoom:N?10:7,minZoom:N?7:5,className:"h-full w-full",children:[(0,t.jsx)(p,{cities:O,selectedCityName:j,onCityClick:U,countryCode:d,stateName:r,scores:M,scoresLoading:P}),(0,t.jsx)(f,{cities:O,initialPosition:s,onDragEnd:q}),(0,t.jsx)(g,{}),(0,t.jsx)(b,{})]}),(0,t.jsx)("div",{className:"absolute bottom-3 left-3 right-3 z-[500] flex items-center gap-2",children:(0,t.jsxs)(m.default,{href:`/jobs/${d}/${r}/map`,className:"flex items-center gap-1.5 bg-white/90 backdrop-blur-sm px-3 py-2 rounded-lg shadow-md text-xs font-medium text-[#1a73e8] hover:bg-white transition-colors",children:[(0,t.jsx)(c,{className:"h-4 w-4"}),"Full map view"]})})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(u.default,{src:"/jobseeker/images/job-seekers-header.png",alt:"Job seekers searching for opportunities",fill:!0,className:"xs:object-contain sm:object-cover object-center rounded-[20px]",sizes:"100vw",priority:!0}),(0,t.jsx)("div",{className:"absolute inset-0 bg-black/30"}),(0,t.jsx)("div",{className:"absolute inset-0 z-10 flex mt-8",children:(0,t.jsx)("div",{className:"container mx-auto px-4",children:(0,t.jsxs)("div",{className:"text-center text-white",children:[(0,t.jsxs)("h2",{className:"bg-blue-700 md:bg-transparent text-md md:text-4xl lg:text-5xl font-bold mb-2",children:["Get Your ",(0,t.jsx)("span",{className:"text-green-400",children:"Free Score"})," On"]}),(0,t.jsx)("p",{className:"bg-blue-700 md:bg-transparent text-md md:text-4xl lg:text-5xl font-bold",children:"Any Job Posting, Anywhere"})]})})}),(0,t.jsxs)("div",{className:"absolute bottom-3 right-3 z-20 flex items-center gap-2",children:[(0,t.jsx)("span",{className:"text-[10px] text-white/80 font-medium",children:C&&!v?"Loading cities...":"Map loading"}),C&&!v?(0,t.jsx)("div",{className:"w-5 h-5 border-2 border-white/30 border-t-white rounded-full animate-spin"}):(0,t.jsxs)("svg",{width:"36",height:"36",className:"drop-shadow-md",children:[(0,t.jsx)("circle",{cx:"18",cy:"18",r:14,fill:"rgba(0,0,0,0.4)",stroke:"rgba(255,255,255,0.3)",strokeWidth:"3"}),(0,t.jsx)("circle",{cx:"18",cy:"18",r:14,fill:"none",stroke:"white",strokeWidth:"3",strokeLinecap:"round",strokeDasharray:y,strokeDashoffset:y*(1-k),transform:"rotate(-90 18 18)",className:"transition-[stroke-dashoffset] duration-100 ease-linear"}),(0,t.jsx)("text",{x:"18",y:"18",textAnchor:"middle",dominantBaseline:"central",fill:"white",fontSize:"11",fontWeight:"600",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",children:Math.max(1,Math.ceil((1-k)*5))})]})]})]})}),E&&F.length>0&&(0,t.jsx)("div",{className:"flex gap-2 overflow-x-auto scrollbar-none mt-3 pb-1",children:F.map(e=>(0,t.jsxs)("button",{onClick:()=>w(e.name),className:`flex-shrink-0 px-3 py-1.5 rounded-full text-xs font-medium transition-colors border ${j===e.name?"bg-[#d2e3fc] border-[#1a73e8] text-[#1a73e8]":"bg-white border-[#dadce0] text-[#3c4043] hover:bg-[#f1f3f4]"}`,children:[e.name,(0,t.jsx)("span",{className:"text-[#80868b] ml-1",children:e.jobCount})]},e.name))})]})}var w=e.i(685369),v=e.i(224859),N=e.i(442002),C=e.i(974400),_=e.i(31368);let k=_.default.create({baseURL:"https://prod.api.geedash.com",headers:{"Content-Type":"application/json",uniqueCode:"CBP39814"}}),S=null;async function E(e){return(await k.request(e)).data}k.interceptors.request.use(e=>{{let t=localStorage.getItem("hkt_access_token");t&&e.headers&&(e.headers.Authorization=`Bearer ${t}`)}return e}),k.interceptors.response.use(e=>(console.log("axios response",e),e),e=>(N.default.error("Please log in and try again"),S&&S.clearAuthData(),Promise.reject(e)));let A=async e=>{let t=new URLSearchParams;e?.limit&&t.append("limit",e.limit.toString()),e?.offset!==void 0&&t.append("offset",e.offset.toString());let s=t.toString();return await E({url:`/hkt/getLocalUnitManagers${s?`?${s}`:""}`,method:"GET"})},L=async e=>await E({url:"/hkt/addLocalUnitManager",method:"POST",data:{name:e.name.trim(),email:e.email.trim(),location:e.location.trim(),phone:e.phone.trim()}}),I={en:"Hiring Professional HKT View",es:"Vista HKT Profesional de Contratación"},T={en:"Jobseeker Scoring Metagraph",es:"Metagrafo de Puntuación de Solicitantes"},O={en:"User",es:"Usuario"},F={en:"Organization",es:"Organización"},R={en:"Go Back",es:"Regresar"},P={en:"Setting language, access",es:"Configuración de idioma, acceso"},D={en:"Select Language",es:"Seleccionar idioma"},M={en:"Manage Users",es:"Gestionar usuarios"},U={en:"Name",es:"Nombre"},q={en:"Email",es:"Correo electrónico"},B={en:"Add New User",es:"Agregar nuevo usuario"},H={en:"Add New User",es:"Agregar nuevo usuario"},z={en:"User Name",es:"Nombre de usuario"},$={en:"Email",es:"Correo electrónico"},J={en:"Add User",es:"Agregar usuario"},W={en:"Send Reset Password OTP",es:"Enviar OTP para restablecer contraseña"},V={en:"Reset Password",es:"Restablecer contraseña"},G={en:"Reset Password",es:"Restablecer contraseña"},Q={en:"OTP",es:"OTP"},K={en:"Enter OTP received in your email",es:"Ingrese el OTP recibido en su correo electrónico"},Y={en:"New password",es:"Nueva contraseña"},Z={en:"Enter new password",es:"Ingrese nueva contraseña"},X={en:"Confirm password",es:"Confirmar contraseña"}
30,ee={en:"Confirm new password",es:"Confirmar nueva contraseña"},et={en:"Save",es:"Guardar"},es={en:"Help with Omni",es:"Ayuda con Omni"},er={en:"Logout",es:"Cerrar sesión"},ea={en:"Discovering high suitability",es:"Descubriendo alta idoneidad"},en={en:"Shortlists",es:"Listas cortas"},eo={en:"Loading shortlists...",es:"Cargando listas cortas..."},el={en:"No shortlists found",es:"No se encontraron listas cortas"},ei={en:"Consult Sales",es:"Consultar Ventas"},ec={en:"View Screening Question",es:"Ver pregunta de selección"},ed={en:"View Interview Question",es:"Ver Pregunta de Entrevista"},eu={en:"Name",es:"Nombre"},em={en:"ID",es:"ID"},eh={en:"Action",es:"Acción"},ex={en:"View",es:"Ver"},ep={en:"Add to Shortlist",es:"Agregar a la lista corta"},ef={en:"Select Shortlist",es:"Seleccionar Lista Corta"},eb={en:"Choose a shortlist",es:"Elige una lista corta"},eg={en:"Add Jobseekers",es:"Añadir Solicitantes"},ey={en:"View Shortlist Details",es:"Detalles de la Lista Corta"},ej={en:"Resume",es:"Currículums"},ew={en:"Loading shortlist details...",es:"Cargando detalles de la lista corta..."},ev={en:"No jobseekers found",es:"No se encontraron solicitantes"},eN={en:"Add New Shortlist",es:"Agregar nueva lista corta"},eC={en:"Shortlist Name",es:"Nombre de la lista corta"},e_={en:"Enter shortlist name",es:"Ingrese el nombre de la lista corta"},ek={en:"Add Shortlist",es:"Agregar lista corta"},eS={en:"Select Job and Jobseekers",es:"Seleccionar trabajo y solicitantes"},eE={en:"Select a job",es:"Seleccione un trabajo"},eA={en:"Choose a job",es:"Elige un trabajo"},eL={en:"Filters",es:"Filtros"},eI={en:"Score",es:"Puntuación"},eT={en:"Minimum score (0-100)",es:"Puntuación mínima (0-100)"},eO={en:"Distance (miles)",es:"Distancia (millas)"},eF={en:"Maximum distance (0-50)",es:"Distancia máxima (0-50)"},eR={en:"Clear Filters",es:"Borrar filtros"},eP={en:"Add to Shortlist",es:"Añadir a la lista corta"},eD={en:"Export to CSV",es:"Exportar a CSV"},eM={en:"Loading jobseekers...",es:"Cargando solicitantes..."},eU={en:"No jobseekers found",es:"No se encontraron solicitantes"},eq={en:"Name",es:"Nombre"},eB={en:"ID",es:"ID"},eH={en:"AI Fraud",es:"Fraude de IA"},ez={en:"GEN AI SCORING QUESTIONS",es:"Preguntas de puntuación de IA generativa"},e$={en:"GEN AI INTERVIEW QUESTIONS",es:"Preguntas de entrevista de IA generativa"},eJ={en:"Score",es:"Puntuación"},eW={en:"Score PDF",es:"PDF de puntuación"},eV={en:"Local Unit Managers",es:"Gestores de unidad local"},eG={en:"Add New Manager",es:"Agregar nuevo administrador"},eQ={en:"Loading local unit managers...",es:"Cargando gestores..."},eK={en:"No local unit managers found",es:"No se encontraron gestores"},eY={en:"Name",es:"Nombre"},eZ={en:"ID",es:"ID"},eX={en:"Email",es:"Correo electrónico"},e0={en:"Phone",es:"Teléfono"},e1={en:"Location",es:"Ubicación"},e2={en:"Add New Manager",es:"Agregar nuevo administrador"},e3={en:"Upload CSV File",es:"Subir archivo CSV"},e6={en:"Manager Name",es:"Nombre del gerente"},e5={en:"Email",es:"Correo electrónico"},e4={en:"Location",es:"Ubicación"},e9={en:"Phone",es:"Teléfono"},e8={en:"Add Manager",es:"Agregar administrador"},e7={en:"Help with Columbo",es:"Ayuda con Columbo"},te={en:"Management",es:"Gestión"},tt={en:"Data Upload",es:"Carga de datos"},ts={en:"Add New Job",es:"Agregar nuevo trabajo"},tr={en:"Add New Job Using URL",es:"Agregar nuevo trabajo usando URL"},ta={en:"Upload Resumes",es:"Subir currículums"},tn={en:"Upload Resumes",es:"Subir currículums"},to={en:"Select a job",es:"Seleccione un trabajo"},tl={en:"Choose a job",es:"Elige un trabajo"},ti={en:"Select Resume File",es:"Seleccionar archivo de currículum"},tc={en:"Upload",es:"Subir"},td={en:"Add New Job",es:"Agregar nuevo trabajo"},tu={en:"Job Title",es:"Título del trabajo"},tm={en:"Job Post URL",es:"URL del trabajo"},th={en:"Job Description",es:"Descripción del trabajo"},tx={en:"Responsibilities",es:"Responsabilidades"},tp={en:"Qualifications",es:"Requisitos"},tf={en:"Salary",es:"Salario"},tb={en:"Benefits",es:"Beneficios"},tg={en:"Company Name",es:"Nombre de la empresa"},ty={en:"Company Description",es:"Descripción de la empresa"},tj={en:"Email",es:"Correo electrónico"},tw={en:"Phone",es:"Teléfono"}
30,tv={en:"City",es:"Ciudad"},tN={en:"State",es:"Estado"},tC={en:"Zip Code",es:"Código postal"},t_={en:"Country",es:"País"},tk={en:"Job Post URL",es:"URL del trabajo"},tS={en:"Enter job title",es:"Ingrese el título del trabajo"},tE={en:"Enter job post URL",es:"Ingrese la URL del trabajo"},tA={en:"Enter brief job description",es:"Ingrese la descripción del trabajo"},tL={en:"Enter responsibilities (comma-separated)",es:"Ingrese las responsabilidades"},tI={en:"Enter qualifications (comma-separated)",es:"Ingrese los requisitos"},tT={en:"Enter salary",es:"Ingrese el salario"},tO={en:"Enter benefits (comma-separated)",es:"Ingrese los beneficios"},tF={en:"Enter company name",es:"Ingrese el nombre de la empresa"},tR={en:"Enter company description",es:"Ingrese la descripción de la empresa"},tP={en:"Enter email",es:"Ingrese el correo electrónico"},tD={en:"Enter phone",es:"Ingrese el teléfono"},tM={en:"Enter city",es:"Ingrese la ciudad"},tU={en:"Enter state",es:"Ingrese el estado"},tq={en:"Enter zip code",es:"Ingrese el código postal"},tB={en:"Enter country",es:"Ingrese el país"},tH={en:"Enter job post URL",es:"Ingrese la URL del trabajo"},tz={en:"Add Job",es:"Agregar trabajo"},t$={en:"API Setup",es:"Configuración de API"},tJ={en:"Go to API Dashboard",es:"Ir al panel de API"},tW={en:"Analytics",es:"Analítica"},tV={en:"Go to Analytics Dashboard",es:"Ir al panel de análisis"},tG={en:"Help with Tools",es:"Ayuda con Tools"},tQ={en:"Contact Support",es:"Contactar soporte"},tK={en:"Email",es:"Correo electrónico"},tY={en:"WhatsApp",es:"WhatsApp"},tZ={en:"Frequently Asked Questions",es:"Preguntas frecuentes"},tX={en:"Terms and Conditions",es:"Términos y condiciones"},t0={en:"Privacy Policy",es:"Política de privacidad"},t1={en:"Previous",es:"Anterior"},t2={en:"Next",es:"Siguiente"},t3={en:"Page",es:"Página"},t6={en:"of",es:"de"},t5=(0,a.createContext)({}),t4=({children:e})=>{let[s,r]=(0,a.useState)(""),[n,o]=(0,a.useState)(),[l,i]=(0,a.useState)(null),[c,d]=(0,a.useState)("en"),u=e=>localStorage.getItem(e)||"",[m,h]=(0,a.useState)(()=>u("hkt_access_token")),[x,p]=(0,a.useState)(()=>u("hkt_seeker_id")),[f,b]=(0,a.useState)(()=>u("hkt_refresh_token")),[g,y]=(0,a.useState)(()=>u("hkt_id")),[j,w]=(0,a.useState)(()=>u("hkt_org_name")),[v,N]=(0,a.useState)(()=>u("hkt_dp_name")),[C,_]=(0,a.useState)(()=>u("hkt_user_name")),[k,S]=(0,a.useState)(()=>u("hkt_user_email"));return(0,t.jsx)(t5.Provider,{value:{selectedView:s,selectedViewData:n,setSelectedView:(e,t)=>{r(e),o(t)},dropdownOpen:l,setDropdownOpen:i,selectedLanguage:c,setSelectedLanguage:d,authAccessToken:m,hktSeekerId:x,authRefreshToken:f,hktId:g,hktOrgName:j,hktDpName:v,hktUserName:C,hktUserEmail:k,isAuthenticated:!!m&&!!x&&!!f,setAuthData:e=>{localStorage.setItem("hkt_access_token",e.access_token),localStorage.setItem("hkt_seeker_id",e.seeker_id),localStorage.setItem("hkt_refresh_token",e.refresh_token),localStorage.setItem("hkt_id",e.id),localStorage.setItem("hkt_org_name",e.org_name),localStorage.setItem("hkt_dp_name",e.dp_name),localStorage.setItem("hkt_user_name",e.user_name),localStorage.setItem("hkt_user_email",e.user_email),h(e.access_token),p(e.seeker_id),b(e.refresh_token),y(e.id),w(e.org_name),N(e.dp_name),_(e.user_name),S(e.user_email)},clearAuthData:()=>{localStorage.removeItem("hkt_access_token"),localStorage.removeItem("hkt_seeker_id"),localStorage.removeItem("hkt_refresh_token"),localStorage.removeItem("hkt_id"),localStorage.removeItem("hkt_org_name"),localStorage.removeItem("hkt_dp_name"),localStorage.removeItem("hkt_user_name"),localStorage.removeItem("hkt_user_email"),h(""),p(""),b(""),y(""),w(""),N(""),_(""),S("")}},children:e})},t9=()=>{let{setSelectedView:e,selectedLanguage:s}=(0,a.useContext)(t5),r=(0,a.useRef)(null),[n,o]=(0,a.useState)({name:"",email:"",location:"",phone:""}),l=e=>{let t=e.target.value;""===t.trim()&&(t=""),o(s=>({...s,[e.target.name]:t}))},i=async t=>{t.preventDefault();let s=N.default.loading("Adding local unit manager...");try{let t=await L(n);t.has_error?N.default.error(t.message,{id:s}):(N.default.success("Local unit manager added successfully!",{id:s}),e("columbo/managers"))}catch(e){N.default.error("An unexpected error occurred",{id:s})}};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{className:"text-[#343c79] flex items-center mb-6",onClick:()=>e("columbo/managers"),children:[(0,t.jsx)(w.ArrowLeftIcon,{className:"w-4 h-4 mr-2"})," ",R[s]]}),(0,t.jsxs)("div",{className:"@3xl:flex items-center justify-between space-y-2 @3xl:space-y-0 mb-4",children:[(0,t.jsx)("p",{className:"text-lg",children:e2[s]}),(0,t.jsx)("button",{className:"border border-[#343c79] text-[#343c79] text-sm font-medium py-1.5 px-3 rounded-lg",onClick:()=>{r.current&&r.current.click()},children:e3[s]}),(0,t.jsx)("input",{ref:r,className:"hidden",type:"file",name:"managers-file",onChange:t=>{let s=t.target.files;if(s&&s.length>0){let t=s[0];if("text/csv"!==t.type)return void N.default.error("Please upload a valid CSV file");let a=N.default.loading("Parsing CSV file...");v.default.parse(t,{header:!0,skipEmptyLines:!0,complete:async t=>{let s=t.data;if(0===s.length)return void N.default.error("Please upload a valid CSV file",{id:a});
30N.default.loading(`Uploading ${s.length} records...`,{id:a});let n=0,o=[];for(let e=0;e<s.length;e++){let t=s[e];try{if(!t.name||!t.email||!t.location||!t.phone)throw Error("Missing required fields in record");let e=await L(t);e.has_error?o.push({record:t,error:e.message}):n++}catch(e){o.push({record:t,error:e.message||"An unexpected error occurred."})}}n>0?(N.default.success("Bulk upload successful",{id:a}),e("columbo/managers")):(console.log("Bulk local unit manager failed records",o),N.default.error("Bulk upload failed",{id:a})),r.current&&(r.current.value="")},error:e=>{N.default.error(`Error parsing CSV: ${e.message}`,{id:a}),r.current&&(r.current.value="")}})}}})]}),(0,t.jsxs)("form",{onSubmit:i,children:[(0,t.jsx)("label",{className:"block mb-2 text-[#343c79]",children:e6[s]}),(0,t.jsx)("input",{name:"name",className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5",value:n.name,onChange:l,required:!0}),(0,t.jsx)("label",{className:"block mb-2 text-[#343c79] mt-4",children:e5[s]}),(0,t.jsx)("input",{name:"email",type:"email",className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5",value:n.email,onChange:l,required:!0}),(0,t.jsx)("label",{className:"block mb-2 text-[#343c79] mt-4",children:e4[s]}),(0,t.jsx)("input",{name:"location",className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5",value:n.location,onChange:l,required:!0}),(0,t.jsx)("label",{className:"block mb-2 text-[#343c79] mt-4",children:e9[s]}),(0,t.jsx)("input",{name:"phone",className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5",value:n.phone,onChange:l,required:!0}),(0,t.jsx)("button",{type:"submit",className:"w-full mt-6 bg-[#60BB46] text-white font-medium py-2 px-4 rounded-lg",children:e8[s]})]})]})},t8=async e=>{let t=new URLSearchParams;e?.limit&&t.append("limit",e.limit.toString()),e?.offset!==void 0&&t.append("offset",e.offset.toString());let s=t.toString();return await E({url:`/hkt/getShortlists${s?`?${s}`:""}`,method:"GET"})},t7=async e=>await E({url:`/hkt/getShortlistDetails?shortlist_id=${e}`,method:"GET"}),se=async e=>await E({url:"/hkt/saveShortlist",method:"POST",data:{shortlist_name:e.shortlist_name.trim()}}),st=async(e,t)=>await E({url:`/hkt/addJobseekersToShortlist?shortlist_id=${e}`,method:"POST",data:t}),ss=()=>{let{setSelectedView:e,selectedLanguage:s}=(0,a.useContext)(t5),[r,n]=(0,a.useState)(""),o=async t=>{t.preventDefault();let s=N.default.loading("Adding shortlist...");try{let t=await se({shortlist_name:r});t.has_error?N.default.error(t.message,{id:s}):(N.default.success("Shortlist added",{id:s}),e("columbo/shortlists"))}catch(e){N.default.error("An unexpected error occurred",{id:s})}};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{className:"text-[#343c79] flex items-center mb-6",onClick:()=>e("columbo/shortlists"),children:[(0,t.jsx)(w.ArrowLeftIcon,{className:"w-4 h-4 mr-2"})," ",R[s]]}),(0,t.jsx)("p",{className:"text-lg mb-4",children:eN[s]}),(0,t.jsxs)("form",{onSubmit:o,children:[(0,t.jsx)("label",{className:"block mb-2 text-[#343c79]",children:eC[s]}),(0,t.jsx)("input",{name:"name",className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5",placeholder:e_[s],value:r,onChange:e=>{let t=e.target.value;""===t.trim()&&(t=""),n(t)},required:!0}),(0,t.jsx)("button",{type:"submit",className:"w-full mt-6 bg-[#60BB46] text-white font-medium py-2 px-4 rounded-lg",children:ek[s]})]})]})},sr=()=>{let{selectedViewData:e,setSelectedView:s,selectedLanguage:r}=(0,a.useContext)(t5),[n,o]=(0,a.useState)(!1),[l,i]=(0,a.useState)([]),[c,d]=(0,a.useState)();e||s("columbo/jobseekers");let u=async()=>{o(!0);try{let e=await t8();e.has_error?N.default.error(e.message):i(e.data)}catch(e){N.default.error("An unexpected error occurred")}finally{o(!1)}},m=async t=>{if(t.preventDefault(),!c)return;let r=N.default.loading("Adding jobseekers to shortlist...");try{let t=await st(c,e);t.has_error?N.default.error(t.message,{id:r}):(N.default.success("Shortlist added",{id:r}),s("columbo/jobseekers"))}catch(e){N.default.error("An unexpected error occurred",{id:r})}};return(0,a.useEffect)(()=>{u()},[]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{className:"text-[#343c79] flex items-center mb-6",onClick:()=>s("columbo/jobseekers"),children:[(0,t.jsx)(w.ArrowLeftIcon,{className:"w-4 h-4 mr-2"})," ",R[r]]}),(0,t.jsx)("p",{className:"text-lg mb-4",children:ep[r]}),n?(0,t.jsx)("p",{children:eo[r]}):(0,t.jsxs)("form",{onSubmit:m,children:[(0,t.jsx)("label",{className:"block mb-2 text-[#343c79]",children:ef[r]}),(0,t.jsxs)("select",{name:"shortlist",className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg w-full p-2.5",value:c,onChange:e=>d(Number(e.target.value)),required:!0,children:[(0,t.jsx)("option",{selected:!0,disabled:!0,children:eb[r]}),l.map(e=>(0,t.jsx)("option",{value:e.shortlist_id,children:e.shortlist_name},e.shortlist_id))]}),(0,t.jsx)("button",{type:"submit",className:"w-full mt-6 bg-[#60BB46] text-white font-medium py-2 px-4 roun
30ded-lg",children:eg[r]})]})]})},sa=a.forwardRef(function({title:e,titleId:t,...s},r){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},s),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 6H5.25A2.25 2.25 0 0 0 3 8.25v10.5A2.25 2.25 0 0 0 5.25 21h10.5A2.25 2.25 0 0 0 18 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"}))}),sn=()=>{let{selectedLanguage:e}=(0,a.useContext)(t5);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"text-lg mb-4",children:e7[e]}),(0,t.jsx)("p",{children:tQ[e]}),(0,t.jsxs)("p",{children:[tK[e],":"," ",(0,t.jsx)("a",{className:"text-[#343c79]",href:"mailto:[email protected]",children:"[email protected]"})]}),(0,t.jsxs)("p",{children:[tY[e],":"," ",(0,t.jsx)("a",{className:"text-[#343c79]",href:"tel:+14163024475",children:"+1 (416) 302-4475"})]}),(0,t.jsxs)("a",{href:"https://geescore.com/hkt_client_dashboard_faq/",className:"text-[#343c79] flex items-center mt-4",target:"_blank",children:[tZ[e]," ",(0,t.jsx)(sa,{className:"w-4 h-4 ml-2"})]}),(0,t.jsxs)("a",{href:"https://geescore.com/terms-and-conditions/",className:"text-[#343c79] flex items-center",target:"_blank",children:[tX[e]," ",(0,t.jsx)(sa,{className:"w-4 h-4 ml-2"})]}),(0,t.jsxs)("a",{href:"https://geescore.com/privacy/",className:"text-[#343c79] flex items-center",target:"_blank",children:[t0[e]," ",(0,t.jsx)(sa,{className:"w-4 h-4 ml-2"})]})]})},so=a.forwardRef(function({title:e,titleId:t,...s},r){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},s),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12 12 16.5m0 0L7.5 12m4.5 4.5V3"}))});var sl=e.i(82114),si=e.i(462373);let sc=({isOpen:e,onClose:s,title:r,data:n,isLoading:o=!1,error:l=null,dataType:i="generic"})=>{(0,a.useEffect)(()=>(e?document.body.style.overflow="hidden":document.body.style.overflow="unset",()=>{document.body.style.overflow="unset"}),[e]);let c=e=>{if(!e)return"N/A";try{return new Date(e).toLocaleDateString()}catch{return"N/A"}};return e?(0,t.jsxs)("div",{className:"fixed inset-0 z-50 overflow-y-auto",children:[(0,t.jsx)("div",{className:"fixed inset-0 bg-gray-300 bg-opacity-50 transition-opacity",style:{opacity:"0.6"},onClick:s}),(0,t.jsx)("div",{className:"flex items-center justify-center min-h-screen p-4",children:(0,t.jsxs)("div",{className:"relative bg-white rounded-lg shadow-xl w-full max-w-4xl max-h-[90vh] overflow-auto",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between p-6 border-b border-gray-200",children:[(0,t.jsx)("h2",{className:"text-xl font-semibold text-gray-900",children:r}),(0,t.jsx)("button",{onClick:s,className:"text-gray-400 hover:text-gray-600 transition-colors",children:(0,t.jsx)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),(0,t.jsxs)("div",{className:"p-6 overflow-y-auto",style:{maxHeight:"calc(85vh - 120px)"},children:[o&&(0,t.jsxs)("div",{className:"flex items-center justify-center py-8",children:[(0,t.jsx)("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-[#293E99]"}),(0,t.jsx)("span",{className:"ml-3 text-gray-600",children:"Loading..."})]}),l&&(0,t.jsxs)("div",{className:"text-center py-8",children:[(0,t.jsx)("svg",{className:"mx-auto h-12 w-12 text-red-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})}),(0,t.jsx)("h3",{className:"mt-2 text-sm font-medium text-red-600",children:"Error loading data"}),(0,t.jsx)("p",{className:"mt-1 text-sm text-gray-500",children:l}),(0,t.jsx)("div",{className:"mt-3",children:(0,t.jsx)("button",{type:"button",onClick:s,className:"inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-[#293E99] hover:bg-[#1a2b6b] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-[#293E99]",children:"Close"})})]}),!o&&!l&&n&&(0,t.jsx)("div",{className:"space-y-4",children:"downloadHistory"===i&&Array.isArray(n)?(0,t.jsx)("div",{className:"space-y-3",children:n.map((e,s)=>(0,t.jsxs)("div",{className:"border border-gray-200 rounded-lg p-4 hover:shadow-md transition-shadow",children:[(0,t.jsxs)("div",{className:"flex justify-between items-start mb-3",children:[(0,t.jsx)("h3",{className:"text-lg font-semibold text-gray-900 flex-1 mr-4",children:e.job_position_title||"No Job Title"}),(0,t.jsx)("div",{className:"flex items-center",children:(0,t.jsxs)("span",{className:"bg-[#293E99] text-white px-3 py-1 rounded-full text-sm font-bold",children:["Score: ",e.score||"N/A"]})})]}),(0,t.jsxs)("div",{className:"space-y-2 mb-3",children:[(0,t.jsxs)("div",{className:"flex items-center text-sm text-gray-600",children:[(0,t.jsx)("span",{className:"font-medium mr-2",children:"User:"}),(0,t.jsx)("span",{children:e.user_name||"N/A"}),(0,t.jsxs)("span",{className:"text-gray-400 ml-2",children:["(",e.user_email||"N/A",")"]})]}),(0,t.jsxs)("div",{className:"flex items-center text-sm text-gray-600",children:[(0,t.jsx)("span",{className:"font-medium mr-2",children:"Job ID:"}),(0,t.jsx)("span",{children:e.job_id||"N/A"})]}),(0,t.jsxs)("div",{className:"flex items-center text-sm text-gray-600",children:[(0,t.jsx)("span",{className:"font-medium mr-2",children:"Seeker ID:"}),(0,t.jsx)("span",{children:e.seeker_id||"N/A"})]}),(0,t.jsxs)("div",{className:"flex items-center text-sm text-gray-600",children:[(0,t.jsx)("span",{className:"font-medium mr-2",children:"Created:"}),(0,t.jsx)("span",{children:c(e.created_at)})]})]}
30),e.pdf_path_on_s3&&(0,t.jsx)("div",{className:"mb-3",children:(0,t.jsxs)("a",{href:e.pdf_path_on_s3,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center px-4 py-2 bg-[#293E99] text-white text-sm font-medium rounded-md hover:bg-[#1a2b6b] transition-colors",children:[(0,t.jsx)("svg",{className:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 10v6m0 0l-3-3m3 3l3-3m2 8H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})}),"Download PDF"]})}),e.job_url&&(0,t.jsx)("div",{className:"mt-3",children:(0,t.jsx)("a",{href:e.job_url,target:"_blank",rel:"noopener noreferrer",className:"text-[#293E99] hover:text-[#1a2b6b] text-sm font-medium underline",children:"View Original Job Posting →"})})]},s))}):"jobListings"===i&&n?.data?.items?(0,t.jsx)("div",{className:"space-y-4",children:n.data.items.map((e,s)=>{var r;return(0,t.jsxs)("div",{className:"border border-gray-200 rounded-lg p-4 hover:shadow-md transition-shadow",children:[(0,t.jsxs)("div",{className:"flex justify-between items-start mb-3",children:[(0,t.jsx)("h3",{className:"text-lg font-semibold text-gray-900 flex-1 mr-4",children:e.job_position_title||"No Title"}),(0,t.jsx)("div",{className:"flex items-center",children:e.total_score?(0,t.jsxs)("span",{className:"bg-[#293E99] text-white px-3 py-1 rounded-full text-sm font-bold",children:["Score: ",e.total_score]}):(0,t.jsx)("span",{className:"bg-green-500 text-white px-3 py-1 rounded-full text-sm font-bold",children:"Local Job"})})]}),(0,t.jsxs)("div",{className:"space-y-2 mb-3",children:[(0,t.jsxs)("div",{className:"flex items-center text-sm text-gray-600",children:[(0,t.jsx)("span",{className:"font-medium mr-2",children:"Location:"}),(0,t.jsx)("span",{children:e.job_location||e.job_city||"Not specified"})]}),(0,t.jsxs)("div",{className:"flex items-center text-sm text-gray-600",children:[(0,t.jsx)("span",{className:"font-medium mr-2",children:"Company:"}),(0,t.jsx)("span",{children:e.job_company_name||"Not specified"})]}),(0,t.jsxs)("div",{className:"flex items-center text-sm text-gray-600",children:[(0,t.jsx)("span",{className:"font-medium mr-2",children:"Job ID:"}),(0,t.jsx)("span",{children:e.id||e.jobpost_id||"N/A"})]}),e.job_type&&(0,t.jsxs)("div",{className:"flex items-center text-sm text-gray-600",children:[(0,t.jsx)("span",{className:"font-medium mr-2",children:"Type:"}),(0,t.jsx)("span",{children:e.job_type})]}),e.job_salary&&(0,t.jsxs)("div",{className:"flex items-center text-sm text-gray-600",children:[(0,t.jsx)("span",{className:"font-medium mr-2",children:"Salary:"}),(0,t.jsx)("span",{children:e.job_salary})]}),e.created_at&&(0,t.jsxs)("div",{className:"flex items-center text-sm text-gray-600",children:[(0,t.jsx)("span",{className:"font-medium mr-2",children:"Posted:"}),(0,t.jsx)("span",{children:c(e.created_at)})]})]}),e.job_position_description&&(0,t.jsxs)("div",{className:"mb-3",children:[(0,t.jsx)("h4",{className:"font-medium text-gray-900 mb-2",children:"Description:"}),(0,t.jsxs)("div",{className:"text-sm text-gray-700 leading-relaxed max-h-32 overflow-y-auto",children:[(!(r=e.job_position_description)?"":r.replace(/<[^>]*>/g,"")).substring(0,300),e.job_position_description.length>300&&"..."]})]}),e.job_url&&(0,t.jsx)("div",{className:"mt-3",children:(0,t.jsx)("a",{href:e.job_url,target:"_blank",rel:"noopener noreferrer",className:"text-[#293E99] hover:text-[#1a2b6b] text-sm font-medium underline",children:"View Job Details →"})})]},s)})}):"localManagers"===i&&n?.data?(0,t.jsx)("div",{className:"space-y-4",children:n.data.map((e,s)=>(0,t.jsxs)("div",{className:"border border-gray-200 rounded-lg p-4 hover:shadow-md transition-shadow",children:[(0,t.jsxs)("div",{className:"flex justify-between items-start mb-3",children:[(0,t.jsx)("h3",{className:"text-lg font-semibold text-gray-900 flex-1 mr-4",children:e.name||"No Name"}),(0,t.jsx)("div",{className:"flex items-center",children:(0,t.jsxs)("span",{className:"bg-[#293E99] text-white px-3 py-1 rounded-full text-sm font-bold",children:["ID: ",e.id||"N/A"]})})]}),(0,t.jsxs)("div",{className:"space-y-2 mb-3",children:[(0,t.jsxs)("div",{className:"flex items-center text-sm text-gray-600",children:[(0,t.jsx)("span",{className:"font-medium mr-2",children:"Email:"}),(0,t.jsx)("span",{children:e.email||"Not specified"})]}),(0,t.jsxs)("div",{className:"flex items-center text-sm text-gray-600",children:[(0,t.jsx)("span",{className:"font-medium mr-2",children:"Location:"}),(0,t.jsx)("span",{children:e.location||"Not specified"})]}),(0,t.jsxs)("div",{className:"flex items-center text-sm text-gray-600",children:[(0,t.jsx)("span",{className:"font-medium mr-2",children:"Phone:"}),(0,t.jsx)("span",{children:e.phone||"Not specified"})]})]}),(0,t.jsxs)("div",{className:"mt-3 flex space-x-3",children:[e.email&&(0,t.jsx)("a",{href:`mailto:${e.email}`,className:"text-[#293E99] hover:text-[#1a2b6b] text-sm font-medium underline",children:"Send Email →"}),e.phone&&(0,t.jsx)("a",{href:`tel:${e.phone}`,className:"text-[#293E99] hover:text-[#1a2b6b] text-sm font-medium underline",children:"Call →"})]})]},s))}):"scoringQuestions"===i&&n?(0,t.jsx)("div",{className:"space-y-4",children:Array.isArray(n)?n.map((e,s)=>(0,t.jsxs)("div",{className:"border border-gray-200 rounded-lg p-4 hover:shadow-md transition-shadow",children:[(0,t.jsxs)("div",{className:"mb-3 pb-2 border-b border-gray-200",children:[(0,t.jsxs)("h3",{className:"text-lg font-semibold text-gray-900 mb-1",children:["Question ",s+1]}),e.question_id&&(0,t.jsxs)("span",{className:"text-sm text-gray-500",children:["ID: ",e.question_id]})]}),(0,t.jsxs)("div",{className:"mb-4",children:[(0,t.jsx)("h4",{className:"font-medium text-gray-900 text-sm mb-2",children:"Question:"}),(0,t.jsx)("p",{className:"text-sm text-gray-700 bg-gray-50 rounded p-3",children:e.question_text||"No question text"})]}),e.answer_type&&(0,t.jsxs)("div",{className:"mb-3",children:[(0,t.jsx)("h5",{className:"font-medium text-gray-900 text-sm mb-1",children:"Answer Type:"}),(0,t.jsx)("span",{className:"bg-blue-100 text-blue-800 px-2 py-1 rounded text-xs font-medium",children:e.answer_type})]}),e.answer_set&&Array.isArray(e.answer_set)&&(0,t.jsxs)("div",{className:"mb-4",children:[(0,t.jsx)("h5",{className:"font-medium text-gray-900 text-sm mb-2",children:"Available Options:"}),(0,t.jsx)("div",{className:"space-y-1",children:e.answer_set.map((e,s)=>(0,t.jsx)("div",{className:"text-sm text-gray-600 bg-white rounded p-2 border",children:e},s))})]}),(0,t.jsxs)("div",{className:"mb-3",children:[(0,t.jsx)("h5",{className:"font-medium text-gray-900 text-sm mb-2",children:"Your Answer:"}),(0,t.jsx)("div",{className:"bg-[#293E99] text-white rounded p-3",children:(0,t.jsx)("span",{className:"font-medium",children:e.answer_text||"No answer provided"})})]}),e.answer_id&&(0,t.jsx)("div",{className:"text-right",children:(0,t.jsxs)("span",{className:"text-xs text-gray-500",children:["Answer ID: ",e.answer_id]})})]},s)):(0,t.jsx)("div",{className:"border border-gray-200 rounded-lg p-4",children:(0,t.jsx)("p",{className:"text-gray-500 text-center",children:"No scoring questions data available"})})}):"customQuestions"===i&&n?(0,t.jsx)("div",{className:"space-y-4",children:Array.isArray(n)&&n.length>0?n.map((e,s)=>(0,t.jsxs)("div",{className:"border border-gray-200 rounded-lg p-4 hover:shadow-md transition-shadow",children:[(0,t.jsxs)("div",{className:"mb-3 pb-2 border-b border-gray-200",children:[(0,t.jsxs)("h3",{className:"text-lg font-semibold text-gray-900 mb-1",children:["Question ",s+1]}),e.id&&(0,t.jsxs)("span",{className:"text-sm text-gray-500",children:["ID: ",e.id]})]}),(0,t.jsxs)("div",{className:"mb-4",children:[(0,t.jsx)("h4",{className:"font-medium text-gray-900 text-sm mb-2",children:"Question:"}),(0,t.jsx)("p",{className:"text-sm text-gray-700 bg-gray-50 rounded p-3",children:e.question||"No question text"})]}),e.answer_type&&(0,t.jsxs)("div",{className:"mb-3",children:[(0,t.jsx)("h5",{className:"font-medium text-gray-900 text-sm mb-1",children:"Answer Type:"}),(0,t.jsx)("span",{className:"bg-blue-100 text-blue-800 px-2 py-1 rounded text-xs font-medium",children:e.answer_type})]}),e.answer_set&&Array.isArray(e.answer_set)&&(0,t.jsxs)("div",{className:"mb-4",children:[(0,t.jsx)("h5",{className:"font-medium text-gray-900 text-sm mb-2",children:"Available Options:"}),(0,t.jsx)("div",{className:"space-y-1",children:e.answer_set.map((e,s)=>(0,t.jsx)("div",{className:"text-sm text-gray-600 bg-white rounded p-2 border",children:e},s))})]}),e.expected_answer&&(0,t.jsxs)("div",{className:"mb-3",children:[(0,t.jsx)("h5",{className:"font-medium text-gray-900 text-sm mb-2",children:"Expected Answer:"}),(0,t.jsx)("div",{className:"bg-green-100 text-green-800 rounded p-2",children:(0,t.jsx)("span",{className:"font-medium",children:e.expected_answer})})]}),e.answer&&(0,t.jsxs)("div",{className:"mb-3",children:[(0,t.jsx)("h5",{className:"font-medium text-gray-900 text-sm mb-2",children:"Answer:"}),(0,t.jsx)("div",{className:"bg-green-100 text-green-800 rounded p-2",children:(0,t.jsx)("span",{className:"font-medium",children:e.answer})})]})]},e.id||s)):(0,t.jsx)("div",{className:"border border-gray-200 rounded-lg p-4",children:(0,t.jsx)("p",{className:"text-gray-500 text-center",children:"No custom questions available"})})}):"interviewQuestions"===i&&n?(0,t.jsx)("div",{className:"space-y-4",children:Array.isArray(n)&&n.length>0?n.map((e,s)=>(0,t.jsxs)("div",{className:"border border-gray-200 rounded-lg p-4 hover:shadow-md transition-shadow",children:[(0,t.jsxs)("div",{className:"mb-3 pb-2 border-b border-gray-200",children:[(0,t.jsxs)("h3",{className:"text-lg font-semibold text-gray-900 mb-1",children:["Question ",s+1]}),e.id&&(0,t.jsxs)("span",{className:"text-sm text-gray-500",children:["ID: ",e.id]})]}),(0,t.jsxs)("div",{className:"mb-4",children:[(0,t.jsx)("h4",{className:"font-medium text-gray-900 text-sm mb-2",children:"Question:"}),(0,t.jsx)("p",{className:"text-sm text-gray-700 bg-gray-50 rounded p-3",children:e.question||"No question text"})]}),e.created_at&&(0,t.jsx)("div",{className:"text-right",children:(0,t.jsxs)("span",{className:"text-xs text-gray-500",children:["Created: ",c(e.created_at)]})})]},e.id||s)):(0,t.jsx)("div",{className:"border border-gray-200 rounded-lg p-4",children:(0,t.jsx)("p",{className:"text-gray-500 text-center",children:"No GEN AI INTERVIEW QUESTIONS available"})})}):(0,t.jsx)("div",{className:"space-y-3",children:Array.isArray(n)?n.map((e,s)=>(0,t.jsx)("div",{className:"border border-gray-200 rounded-lg p-4",children:(0,t.jsx)("pre",{className:"text-sm text-gray-800 whitespace-pre-wrap overflow-x-auto",children:JSON.stringify(e,null,2)})}
30,s)):(0,t.jsx)("div",{className:"border border-gray-200 rounded-lg p-4",children:(0,t.jsx)("pre",{className:"text-sm text-gray-800 whitespace-pre-wrap overflow-x-auto",children:JSON.stringify(n,null,2)})})})}),!o&&!l&&!n&&(0,t.jsxs)("div",{className:"text-center py-8",children:[(0,t.jsx)("svg",{className:"mx-auto h-12 w-12 text-gray-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 13h6m-3-3v6m-9 1V7a2 2 0 012-2h6l2 2h6a2 2 0 012 2v8a2 2 0 01-2 2H5a2 2 0 01-2-2z"})}),(0,t.jsx)("h3",{className:"mt-2 text-sm font-medium text-gray-900",children:"No data available"}),(0,t.jsxs)("p",{className:"mt-1 text-sm text-gray-500",children:["downloadHistory"===i&&"You don't have any score download history yet.","jobListings"===i&&"No job listings match your criteria.","localManagers"===i&&"No local hiring managers found in your area.","scoringQuestions"===i&&"No custom scoring questions available for this job.","customQuestions"===i&&"No custom questions available for this job.","interviewQuestions"===i&&"No GEN AI INTERVIEW QUESTIONS available for this job.","generic"===i&&"No data to be viewed."]})]})]})]})})]}):null};var sd=e.i(393506);let su=async e=>{let t=e.location??([e.city,e.state,e.country].filter(Boolean).join(", ")||e.country);return await E({url:"/job-post",method:"POST",data:{job_title:e.jobTitle,job_description:e.jobDescription,country:e.country,location:t,responsibilities:e.responsibilities,qualifications:e.qualifications,job_post_domain:e.jobPostDomain??null,company:e.companyName,company_description:e.companyDescription,widget_code:"CBP39814",status:"active",contact_details:e.contactDetails??null,date:e.date??null,email:e.email,phone:e.phone,benefits:e.benefits,keywords:e.keywords??[],postal_code:e.zipCode,city:e.city,state:e.state,salary:e.salary,domain:e.jobPostDomain??null,job_url:e.jobUrl,job_category:e.jobCategory??null,job_type:e.jobType??null,alert_type:e.alertType??null,education:e.education??[],skills:e.skills??[],certifications:e.certifications??[],industry_sector:e.industrySector??null,metadata:{url:e.jobUrl}}})},sm=async e=>{let t=new URLSearchParams;return t.append("job_id","null"),e?.limit&&t.append("limit",e.limit.toString()),e?.offset!==void 0&&t.append("offset",e.offset.toString()),e?.search&&t.append("search",e.search),await E({url:`/hkt/userJobList?${t.toString()}`,method:"GET"})},sh=async e=>await E({url:`/hkt/userJobList?job_id=${e}`,method:"GET"}),sx=async(e,t)=>{let s=new URLSearchParams;for(let r in s.append("job_id",e.toString()),t)t[r]&&s.append(r,t[r]);return await E({url:`/hkt/jobSeekersList?${s.toString()}`,method:"GET"})},sp=async e=>await E({url:"/job-scores/download-scores",method:"POST",data:e}),sf=async(e,t)=>{let s=new URLSearchParams;return s.append("jobId",e.toString()),s.append("seekerId",t.toString()),await E({url:"/slide-up-questions/getCustomQuestions?"+s.toString(),method:"GET"})},sb=async e=>await E({url:`${(0,sd.getApiBaseUrl)()}/job-parser/getJobContent`,method:"POST",data:{url:e}}),sg={0:"#16a34a",[-1]:"#22c55e",[-2]:"#84cc16",[-3]:"#eab308",[-4]:"#f59e0b",[-5]:"#f97316",[-6]:"#ef4444",[-7]:"#b91c1c"},sy="#6b7280",sj=a.forwardRef(function({title:e,titleId:t,...s},r){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},s),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"}))}),sw=e=>{let t=new Map;for(let s of e)t.has(s.id)||t.set(s.id,s);return Array.from(t.values())},sv=({value:e,onChange:s,onJobSelect:r,placeholder:n="Search or select a job...",label:o,disabled:l=!1})=>{let[i,c]=(0,a.useState)(!1),[d,u]=(0,a.useState)(""),[m,h]=(0,a.useState)(""),[x,p]=(0,a.useState)([]),[f,b]=(0,a.useState)([]),[g,y]=(0,a.useState)(1),[j,w]=(0,a.useState)(!1),[v,N]=(0,a.useState)(!0),[C,_]=(0,a.useState)(null),[k,S]=(0,a.useState)(0),E=(0,a.useRef)(null),A=(0,a.useRef)(null),L=(0,a.useRef)(!1),I=(0,a.useCallback)(async(e=0,t)=>{w(!0),_(null);try{let s=await sm({limit:100,offset:e,search:t||void 0});if(s.data)return s.data;return[]}catch(e){return _(e instanceof Error?e.message:"Failed to fetch jobs"),[]}finally{w(!1)}},[]),T=async e=>{w(!0),_(null);try{let t=await sh(e);if(t.data)return t.data;return null}catch(e){return _(e instanceof Error?e.message:"Job not found"),null}finally{w(!1)}};(0,a.useEffect)(()=>{(async()=>{let e=await I(0),t=sw(e);p(t),b(t.slice(0,10)),S(1),N(100===e.length)})()},[]);let[O,F]=(0,a.useState)("");(0,a.useEffect)(()=>{let e=(g-1)*10;b(x.slice(e,e+10))},[x,g]);let R=(0,a.useCallback)(async()=>{let e=d.trim();F(e),y(1),w(!0),_(null);try{let t=(await sm({limit:100,offset:0,search:e||void 0})).data??[],s=sw(t);p(s),b(s.slice(0,10)),S(1),N(100===t.length)}catch(e){_(e instanceof Error?e.message:"Failed to search jobs")}finally{w(!1)}},[d]);(0,a.useEffect)(()=>
30{if(L.current||!v)return;let e=x.length;if(0===e)return;let t=Math.ceil(e/10);g===t&&t>0&&e===100*k&&(L.current=!0,(async()=>{try{let e=await I(100*k,O||void 0);e.length>0?(p(t=>{let s=[...t,...e];return sw(s)}),S(e=>e+1),N(100===e.length)):N(!1)}finally{L.current=!1}})())},[g,x.length,k,v,O,I]);let P=async()=>{let e=parseInt(m);if(isNaN(e))return void _("Please enter a valid job ID");let t=await T(e);t?(p(e=>-1===e.findIndex(e=>e.id===t.id)?sw([t,...e]):e),s(t.id),r?.(t),h(""),c(!1),_(null)):_("Job not found")},D=x.find(t=>t.id===e);(0,a.useEffect)(()=>{let e=e=>{let t=e.target;E.current&&!E.current.contains(t)&&c(!1)};if(i)return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[i]),(0,a.useEffect)(()=>{i&&A.current&&A.current.focus()},[i]);let M=Math.ceil(x.length/10),U=M>1||v,q=g<M||v&&!j;return(0,t.jsxs)("div",{className:"relative",ref:E,children:[o&&(0,t.jsx)("label",{className:"block mb-2 text-[#343c79]",children:o}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>!l&&c(!i),disabled:l,className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 text-left flex items-center justify-between disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,t.jsx)("span",{className:D?"text-gray-900":"text-gray-500",children:D?`${D.id} - ${D.job_position_title}`:n}),(0,t.jsx)("svg",{className:`w-4 h-4 transition-transform ${i?"rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),i&&(0,t.jsxs)("div",{className:"absolute z-50 w-full mt-1 bg-white border border-gray-300 rounded-lg shadow-lg max-h-96 overflow-hidden flex flex-col",onClick:e=>e.stopPropagation(),onMouseDown:e=>e.stopPropagation(),children:[(0,t.jsx)("div",{className:"p-2 border-b border-gray-200",children:(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("input",{ref:A,type:"text",value:d,onChange:e=>u(e.target.value),onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),R())},onClick:e=>e.stopPropagation(),onMouseDown:e=>e.stopPropagation(),placeholder:"Search jobs by title or company name",className:"w-full px-3 py-2 pr-8 border border-gray-300 rounded-md text-sm focus:ring-blue-500 focus:border-blue-500"}),d&&(0,t.jsx)("button",{onClick:e=>{e.stopPropagation(),u(""),O&&(F(""),y(1),(async()=>{w(!0);try{let e=(await sm({limit:100,offset:0})).data??[],t=sw(e);p(t),b(t.slice(0,10)),S(1),N(100===e.length)}finally{w(!1)}})())},onMouseDown:e=>e.stopPropagation(),className:"absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-400 hover:text-gray-600",children:(0,t.jsx)(sj,{className:"w-4 h-4"})})]})}),(0,t.jsx)("div",{className:"p-2 border-b border-gray-200 bg-gray-50",children:(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)("input",{type:"number",value:m,onChange:e=>h(e.target.value),onKeyPress:e=>{"Enter"===e.key&&P()},onClick:e=>e.stopPropagation(),onMouseDown:e=>e.stopPropagation(),placeholder:"Enter Job ID",className:"flex-1 px-3 py-1.5 border border-gray-300 rounded-md text-sm focus:ring-blue-500 focus:border-blue-500"}),(0,t.jsx)("button",{onClick:e=>{e.stopPropagation(),P()},onMouseDown:e=>e.stopPropagation(),disabled:j||!m,className:"px-3 py-1.5 bg-[#343c79] text-white rounded-md text-sm hover:bg-[#2a3261] disabled:opacity-50 disabled:cursor-not-allowed",children:"Search"})]})}),C&&(0,t.jsx)("div",{className:"p-2 bg-red-50 border-b border-red-200",children:(0,t.jsx)("p",{className:"text-sm text-red-600",children:C})}),(0,t.jsx)("div",{className:"overflow-y-auto flex-1",children:j?(0,t.jsxs)("div",{className:"p-4 flex flex-col items-center justify-center gap-2",children:[(0,t.jsxs)("svg",{className:"animate-spin h-6 w-6 text-[#343c79]",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,t.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,t.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),(0,t.jsx)("span",{className:"text-sm text-gray-500",children:"Loading jobs..."})]}):0===f.length?(0,t.jsx)("div",{className:"p-4 text-center text-gray-500 text-sm",children:O?"No jobs found matching your search":"No jobs available"}):f.map(a=>(0,t.jsxs)("button",{type:"button",onClick:()=>{s(a.id),r?.(a),c(!1),u(""),_(null)},className:`w-full text-left px-4 py-2 hover:bg-gray-100 transition-colors ${e===a.id?"bg-blue-50 text-blue-900":"text-gray-900"}`,children:[(0,t.jsx)("div",{className:"font-medium",children:a.job_position_title}),(0,t.jsxs)("div",{className:"text-xs text-gray-500",children:["ID: ",a.id," | ",a.job_company_name]})]},a.id))}),U&&(0,t.jsxs)("div",{className:"p-2 border-t border-gray-200 bg-gray-50 flex items-center justify-between",onClick:e=>e.stopPropagation(),onMouseDown:e=>e.stopPropagation(),children:[(0,t.jsx)("button",{onClick:e=>{e.stopPropagation(),y(e=>Math.max(1,e-1))},onMouseDown:e=>e.stopPropagation(),disabled:1===g||j,className:"px-3 py-1 text-sm border border-gray-300 rounded-md hover:bg-gray-200 disabled:opacity-50 disabled:cursor-not-allowed",children:"Previous"}),(0,t.jsxs)("span",{className:"text-sm text-gray-600",children:["Page ",g," of ",M]}),(0,t.jsx)("button",{onClick:e=>{e.stopPropagation(),y(e=>e+1)},onMouseDown:e=>e.stopPropagation(),disabled:!q||j,className:"px-3 py-1 text-sm border border-gray-300 rounded-md hover:bg-gray-200 disabled:opacity-50 disabled:cursor-not-allowed",children:"Next"})]})]})]})]})},sN=()=>{let{selectedLanguage:e,setSelectedView:s}=(0,a.useContext)(t5),[r,n]=(0,a.useState)(!0),[o,l]=(0,a.useState)(),[i,c]=(0,a.useState)(null),[d,u]=(0,a.useState)([]),[m,h]=(0,a.useState)([]),[x,p]=(0,a.useState)(""),[f,b]=(0,a.useState)(""),[g,y]=(0,a.useState)(""),[j,w]=(0,a.useState)(!1),[v,C]=(0,a.useState)(null),[_,k]=(0,a.useState)(""),[S,E]=(0,a.useState)("customQuestions"),[A,L]=(0,a.useState)(!1),[I,T]=(0,a.useState)(null),O=async()=>{o&&(n(!0),u((await sx(o,{score:f,distance:g})).data),n(!1))},F=(0,a.useMemo)(()=>
30{if(!x.trim())return d;let e=x.toLowerCase();return d.filter(t=>t.jobseeker_name.toLowerCase().includes(e)||t.job_seeker_id.toString().includes(e)||t.resume_id.toString().includes(e)||t.normalized_score.toString().includes(e))},[d,x]),R=e=>{let t=Number(e.target.value);e.target.checked?h([...m,t]):h(m.filter(e=>e!==t))},P=e=>{let t=Number(e.target.value);switch(e.target.name){case"score":t>100?t=100:t<0&&(t=0),b(t.toString());break;case"distance":t>50?t=50:t<0&&(t=0),y(t.toString())}},D=async(e,t,s)=>{let r=N.default.loading("Downloading score PDF...");if(o&&i)try{let a=await sp({seeker_id:t,score:s,job_id:o,jobTitle:i.job_position_title,companyName:i.job_company_name});a.data?((0,sl.saveAs)(a.data,`${e} - Geescore.pdf`),N.default.dismiss(r)):N.default.error("An unexpected error occurred",{id:r})}catch(e){N.default.error("An unexpected error occurred",{id:r})}},M=async(e,t)=>{w(!0),L(!0),T(null),k("GEN AI SCORING QUESTIONS"),E("customQuestions"),C(null);try{let s=await sf(e,t);s.has_error?(T(s.message||"Failed to fetch custom questions"),C(null)):C(s.data.customQuestions||[])}catch(e){T(e instanceof Error?e.message:"An unexpected error occurred"),C(null)}finally{L(!1)}},U=async(e,t)=>{w(!0),L(!0),T(null),k("GEN AI INTERVIEW QUESTIONS"),E("interviewQuestions"),C(null);try{let s=await sf(e,t);s.has_error?(T(s.message||"Failed to fetch GEN AI INTERVIEW QUESTIONS"),C(null)):C(s.data.customInterviewQuestions||[])}catch(e){T(e instanceof Error?e.message:"An unexpected error occurred"),C(null)}finally{L(!1)}};return(0,a.useEffect)(()=>{O()},[o,f,g]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"text-lg mb-4",children:eS[e]}),(0,t.jsx)(sv,{value:o,onChange:e=>{l(e),h([]),p(""),e||c(null)},onJobSelect:e=>{c(e)},label:eE[e],placeholder:eA[e]}),o&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex @3xl:block flex-col-reverse",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mt-6",children:[(0,t.jsx)("p",{className:"text-lg hidden @3xl:block",children:eL[e]}),(0,t.jsxs)("div",{className:"flex flex-col @3xl:flex-row space-y-2 @3xl:space-y-0 @3xl:space-x-2 w-full @3xl:w-auto",children:[(0,t.jsx)("button",{className:"border border-[#343c79] text-[#343c79] text-sm font-medium py-1.5 px-3 rounded-lg",onClick:()=>{b(""),y("")},children:eR[e]}),(0,t.jsx)("button",{className:"border border-[#343c79] text-[#343c79] text-sm font-medium py-1.5 px-3 rounded-lg",disabled:0===m.length,onClick:()=>{s("columbo/shortlists/addJobseekers",{jobseeker_ids:m})},children:eP[e]}),(0,t.jsx)(si.CSVLink,{data:F,headers:[{label:"jobseeker_id",key:"job_seeker_id"},{label:"jobseeker_name",key:"jobseeker_name"},{label:"resume_id",key:"resume_id"},{label:"resume_path",key:"resume_path"},{label:"score",key:"normalized_score"}],filename:"Jobseekers - Geescore.csv",className:"border border-[#343c79] text-[#343c79] text-sm text-center font-medium py-1.5 px-3 rounded-lg",role:"button",children:eD[e]})]})]}),(0,t.jsxs)("div",{className:"mt-6 @3xl:mt-2",children:[(0,t.jsx)("p",{className:"text-lg @3xl:hidden mb-2",children:eL[e]}),(0,t.jsxs)("div",{className:"@3xl:flex items-center space-y-2 @3xl:space-y-0 @3xl:space-x-4",children:[(0,t.jsxs)("div",{className:"flex-1 flex flex-col",children:[(0,t.jsx)("label",{className:"block text-[#343c79]",children:eI[e]}),(0,t.jsx)("input",{name:"score",type:"number",className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg py-1.5 px-3",placeholder:eT[e],min:0,max:100,value:f,onChange:P})]}),(0,t.jsxs)("div",{className:"flex-1 flex flex-col",children:[(0,t.jsx)("label",{className:"block text-[#343c79]",children:eO[e]}),(0,t.jsx)("input",{name:"distance",type:"number",className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg py-1.5 px-3",placeholder:eF[e],min:0,max:50,value:g,onChange:P})]})]})]})]}),(0,t.jsx)("div",{className:"mt-6 mb-4",children:(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("input",{type:"text",value:x,onChange:e=>p(e.target.value),placeholder:"Search jobseekers by name, ID, resume ID, or score...",className:"w-full px-3 pr-4 py-2 border border-gray-300 rounded-lg text-sm focus:ring-blue-500 focus:border-blue-500"}),x&&(0,t.jsx)("button",{onClick:()=>p(""),className:"absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-400 hover:text-gray-600",children:(0,t.jsx)("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]})}),(0,t.jsx)("div",{className:"relative max-h-80 overflow-auto mt-6",children:(0,t.jsxs)("table",{className:"relative w-full text-sm text-left text-gray-500",children:[(0,t.jsx)("thead",{className:"text-xs text-gray-700 uppercase",children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{scope:"col",className:"p-4 bg-gray-50 sticky top-0 z-10",children:(0,t.jsxs)("div",{className:"flex items-center",children:[(0,t.jsx)("input",{id:"checkbox-all-search",type:"checkbox",className:"w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 rounded-sm",checked:F.length>0&&F.every(e=>m.includes(e.job_seeker_id)),onChange:e=>{e.target.checked?h(F.map(e=>e.job_seeker_id)):h([])}}),(0,t.jsx)("label",{className:"sr-only",children:"checkbox"})]})}),(0,t.jsx)("th",{scope:"col",className:"px-6 py-3 bg-gray-50 sticky top-0 z-10",children:eq[e]}),(0,t.jsx)("th",{scope:"col",className:"px-6 py-3 bg-gray-50 sticky top-0 z-10",children:eB[e]}),(0,t.jsx)("th",{scope:"col",className:"px-6 py-3 bg-gray-50 sticky top-0 z-10",children:eJ[e]}),(0,t.jsx)("th",{scope:"col",className:"px-6 py-3 bg-gray-50 sticky top-0 z-10",children:eW[e]}),(0,t.jsx)("th",{scope:"col",className:"px-6 py-3 bg-gray-50 sticky top-0 z-10",children:eH[e]}),(0,t.jsx)("th",{scope:"col",className:"px-6 py-3 bg-gray-50 sticky top-0 z-10",children:ez[e]}),(0,t.jsx)("th",{scope:"col",className:"px-6 py-3 bg-gray-50 sticky top-0 z-10",children:e$[e]})]})}),(0,t.jsx)("tbody",{children:r?(0,t.jsx)("tr",{children:(0,t.jsx)("td",{className:"px-6 py-4 text-center",colSpan:8,children:eM[e]})}):0===F.length?(0,t.jsx)("tr",{children:(0,t.jsx)("td",{className:"px-6 py-4 text-center",colSpan:8,children:x?"No jobseekers found matching your search":eU[e]})}):F.map(s=>{let r;return(0,t.jsxs)("tr",{className:"odd:bg-white even:bg-gray-50 border-b border-gray-200",children:[(0,t.jsx)("td",{className:"w-4 p-4",children:(0,t.jsxs)("div",{className:"flex items-center",children:[(0,t.jsx)("input",{id:"checkbox-table-search-1",type:"checkbox",className:"w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 rounded-sm",checked:m.includes(s.job_seeker_id),value:s.job_seeker_id,onChange:R}),(0,t.jsx)("label",{className:"sr-only",children:"checkbox"})]})}),(0,t.jsx)("td",{className:"px-6 py-4 font-medium text-gray-900 whitespace-nowrap",children:s.jobseeker_name}),(0,t.jsx)("td",{className:"px-6 py-4",children:s.job_seeker_id}),(0,t.jsx)("td",{className:"px-6 py-4",children:s.normalized_score}),(0,t.jsx)("td",{className:"px-6 py-4",children:(0,t.jsx)("a",{className:"font-medium text-[#343c79] cursor-pointer hover:underline",onClick:()=>D(s.jobseeker_name,s.job_seeker_id,s.normalized_score),children:(0,t.jsx)(so,{className:"w-4 h-4"})})}),(0,t.jsx)("td",{className:"px-6 py-4",children:null!=s.fraud_modifier&&""!==s.fraud_modifier?(0,t.jsx)("span",{className:"font-medium",style:{color:null===(r=function(e){if(null==e)return null;let t="string"==typeof e?parseInt(e,10):Math.round(e);return Number.isNaN(t)||t>0||t<-7?null:t}(s.fraud_modifier))?sy:sg[r]??sy},children:s.fraud_modifier}):(0,t.jsx)("a",{href:"https://calendar.app.google/mcqepwutaHDMPhiMA",className:"text-blue-600 hover:underline",target:"_blank",rel:"noopener noreferrer",children:ei[e]})}),(0,t.jsx)("td",{className:"px-6 py-4",children:s.question_modifier?s.question_modifier:o?(0,t.jsx)("button",{onClick:()=>M(o,s.job_seeker_id),className:"text-blue-600 hover:underline cursor-pointer",children:ec[e]}):(0,t.jsx)("span",{className:"text-gray-400",children:ec[e]})}),(0,t.jsx)("td",{className:"px-6 py-4",children:s.interview_question_modifier?s.interview_question_modifier:o?(0,t.jsx)("button",{onClick:()=>U(o,s.job_seeker_id),className:"text-blue-600 hover:underline cursor-pointer",children:ed[e]}):(0,t.jsx)("span",{className:"text-gray-400",children:ed[e]})})]},s.resume_id)})})]})})]}),(0,t.jsx)(sc,{isOpen:j,onClose:()=>{w(!1),C(null),T(null),k("")},title:_,data:v,isLoading:A,error:I,dataType:S})]})},sC=()=>{let{setSelectedView:e,selectedLanguage:s}=(0,a.useContext)(t5),[r,n]=(0,a.useState)([]),[o,l]=(0,a.useState)(1),[i,c]=(0,a.useState)(!1),[d,u]=(0,a.useState)(!0),[m,h]=(0,a.useState)(0),x=(0,a.useRef)(!1),p=(0,a.useRef)(!1),f=(0,a.useCallback)(async(e=0)=>{c(!0);try{let t=await A({limit:100,offset:e});if(t.has_error)return N.default.error(t.message),[];return t.data??[]}catch(e){return N.default.error("An unexpected error occurred"),[]}finally{c(!1)}},[]);(0,a.useEffect)(()=>{p.current||(p.current=!0,(async()=>{let e=await f(0);n(e),h(1),u(100===e.length)})())},[f]),(0,a.useEffect)(()=>
30{if(x.current||!d)return;let e=r.length;if(0===e)return;let t=Math.ceil(e/10);o===t&&t>0&&e===100*m&&(x.current=!0,(async()=>{try{let e=await f(100*m);e.length>0?(n(t=>[...t,...e]),h(e=>e+1),u(100===e.length)):u(!1)}finally{x.current=!1}})())},[o,r.length,m,d,f]);let b=Math.ceil(r.length/10),g=b>1||d,y=o<b||d&&!i,j=(o-1)*10,w=r.slice(j,j+10);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"@3xl:flex items-center justify-between space-y-2 @3xl:space-y-0 mb-4",children:[(0,t.jsx)("p",{className:"text-lg",children:eV[s]}),(0,t.jsx)("button",{className:"border border-[#343c79] text-[#343c79] text-sm font-medium py-1.5 px-3 rounded-lg",onClick:()=>e("columbo/managers/add"),children:eG[s]})]}),(0,t.jsx)("div",{className:"relative overflow-x-auto",children:(0,t.jsxs)("table",{className:"w-full text-sm text-left text-gray-500",children:[(0,t.jsx)("thead",{className:"text-xs text-gray-700 uppercase bg-gray-50",children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{scope:"col",className:"px-6 py-3",children:eY[s]}),(0,t.jsx)("th",{scope:"col",className:"px-6 py-3",children:eZ[s]}),(0,t.jsx)("th",{scope:"col",className:"px-6 py-3",children:eX[s]}),(0,t.jsx)("th",{scope:"col",className:"px-6 py-3",children:e1[s]}),(0,t.jsx)("th",{scope:"col",className:"px-6 py-3",children:e0[s]})]})}),(0,t.jsx)("tbody",{children:i&&0===r.length?(0,t.jsx)("tr",{children:(0,t.jsx)("td",{className:"px-6 py-4 text-center",colSpan:5,children:eQ[s]})}):0===r.length?(0,t.jsx)("tr",{children:(0,t.jsx)("td",{className:"px-6 py-4 text-center",colSpan:5,children:eK[s]})}):w.map(e=>(0,t.jsxs)("tr",{className:"odd:bg-white even:bg-gray-50 border-b border-gray-200",children:[(0,t.jsx)("td",{className:"px-6 py-4 font-medium text-gray-900 whitespace-nowrap",children:e.name}),(0,t.jsx)("td",{className:"px-6 py-4",children:e.id}),(0,t.jsx)("td",{className:"px-6 py-4",children:e.email}),(0,t.jsx)("td",{className:"px-6 py-4",children:e.location}),(0,t.jsx)("td",{className:"px-6 py-4",children:e.phone})]},e.id))})]})}),g&&(0,t.jsxs)("div",{className:"mt-4 flex items-center justify-between",children:[(0,t.jsx)("button",{onClick:()=>l(e=>Math.max(1,e-1)),disabled:1===o||i,className:"px-3 py-1 text-sm border border-gray-300 rounded-md hover:bg-gray-200 disabled:opacity-50 disabled:cursor-not-allowed",children:t1[s]}),(0,t.jsxs)("span",{className:"text-sm text-gray-600",children:[t3[s]," ",o," ",t6[s]," ",b]}),(0,t.jsx)("button",{onClick:()=>l(e=>e+1),disabled:!y||i,className:"px-3 py-1 text-sm border border-gray-300 rounded-md hover:bg-gray-200 disabled:opacity-50 disabled:cursor-not-allowed",children:t2[s]})]})]})},s_=()=>{let{setSelectedView:e,selectedLanguage:s}=(0,a.useContext)(t5),[r,n]=(0,a.useState)([]),[o,l]=(0,a.useState)(1),[i,c]=(0,a.useState)(!1),[d,u]=(0,a.useState)(!0),[m,h]=(0,a.useState)(0),x=(0,a.useRef)(!1),p=(0,a.useRef)(!1),f=(0,a.useCallback)(async(e=0)=>{c(!0);try{let t=await t8({limit:100,offset:e});if(t.has_error)return N.default.error(t.message),[];return t.data??[]}catch(e){return N.default.error("An unexpected error occurred"),[]}finally{c(!1)}},[]);(0,a.useEffect)(()=>{p.current||(p.current=!0,(async()=>{let e=await f(0);n(e),h(1),u(100===e.length)})())},[f]),(0,a.useEffect)(()=>{if(x.current||!d)return;let e=r.length;if(0===e)return;let t=Math.ceil(e/10);o===t&&t>0&&e===100*m&&(x.current=!0,(async()=>{try{let e=await f(100*m);e.length>0?(n(t=>[...t,...e]),h(e=>e+1),u(100===e.length)):u(!1)}finally{x.current=!1}})())},[o,r.length,m,d,f]);let b=Math.ceil(r.length/10),g=b>1||d,y=o<b||d&&!i,j=(o-1)*10,w=r.slice(j,j+10);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"@3xl:flex items-center justify-between space-y-2 @3xl:space-y-0 mb-4",children:[(0,t.jsx)("p",{className:"text-lg",children:en[s]}),(0,t.jsx)("button",{className:"border border-[#343c79] text-[#343c79] text-sm font-medium py-1.5 px-3 rounded-lg",onClick:()=>e("columbo/shortlists/add"),children:eN[s]})]}),(0,t.jsx)("div",{className:"relative overflow-x-auto",children:(0,t.jsxs)("table",{className:"w-full text-sm text-left text-gray-500",children:[(0,t.jsx)("thead",{className:"text-xs text-gray-700 uppercase bg-gray-50",children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{scope:"col",className:"px-6 py-3",children:eu[s]}),(0,t.jsx)("th",{scope:"col",className:"px-6 py-3",children:em[s]}),(0,t.jsx)("th",{scope:"col",className:"px-6 py-3",children:eh[s]})]})}),(0,t.jsx)("tbody",{children:i&&0===r.length?(0,t.jsx)("tr",{children:(0,t.jsx)("td",{className:"px-6 py-4 text-center",colSpan:3,children:eo[s]})}):0===r.length?(0,t.jsx)("tr",{children:(0,t.jsx)("td",{className:"px-6 py-4 text-center",colSpan:3,children:el[s]})}):w.map(r=>(0,t.jsxs)("tr",{className:"odd:bg-white even:bg-gray-50 border-b border-gray-200",children:[(0,t.jsx)("td",{className:"px-6 py-4 font-medium text-gray-900 whitespace-nowrap",children:r.shortlist_name}),(0,t.jsx)("td",{className:"px-6 py-4",children:r.shortlist_id}),(0,t.jsx)("td",{className:"px-6 py-4",children:(0,t.jsx)("a",{className:"font-medium text-[#343c79] cursor-pointer hover:underline",onClick:()=>e("columbo/shortlists/view",r.shortlist_id),children:ex[s]})})]},r.shortlist_id))})]})}),g&&(0,t.jsxs)("div",{className:"mt-4 flex items-center justify-between",children:[(0,t.jsx)("button",{onClick:()=>l(e=>Math.max(1,e-1)),disabled:1===o||i,className:"px-3 py-1 text-sm border border-gray-300 rounded-md hover:bg-gray-200 disabled:opacity-50 disabled:cursor-not-allowed",children:t1[s]}),(0,t.jsxs)("span",{className:"text-sm text-gray-600",children:[t3[s]," ",o," ",t6[s]," ",b]}),(0,t.jsx)("button",{onClick:()=>l(e=>e+1),disabled:!y||i,className:"px-3 py-1 text-sm border border-gray-300 rounded-md hover:bg-gray-200 disabled:opacity-50 disabled:cursor-not-allowed",children:t2[s]})]})]})},sk=()=>{let{setSelectedView:e,selectedViewData:s,selectedLanguage:r}=(0,a.useContext)(t5),[n,o]=(0,a.useState)(!1),[l,i]=(0,a.useState)(),[c,d]=(0,a.useState)([]);s||e("columbo/shortlists");let u=async()=>{o(!0);try{let e=await t7(s);e.has_error?N.default.error(e.message):(i(e.data[0]),d(e.data[0].jobseekers.filter(e=>null!==e.job_seeker_id)))}catch(e){N.default.error("An unexpected error occurred")}finally{o(!1)}};return(0,a.useEffect)(()=>{u()},[]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{className:"text-[#343c79] flex items-center mb-6",onClick:()=>e("columbo/shortlists"),children:[(0,t.jsx)(w.ArrowLeftIcon,{className:"w-4 h-4 mr-2"})," ",R[r]]}),(0,t.jsx)("p",{className:"text-lg mb-4",children:ey[r]}
30),n?(0,t.jsx)("p",{children:ew[r]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"text-lg mb-4",children:l?.shortlist_name}),(0,t.jsx)("div",{className:"relative overflow-x-auto",children:(0,t.jsxs)("table",{className:"w-full text-sm text-left text-gray-500",children:[(0,t.jsx)("thead",{className:"text-xs text-gray-700 uppercase bg-gray-50",children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{scope:"col",className:"px-6 py-3",children:eu[r]}),(0,t.jsx)("th",{scope:"col",className:"px-6 py-3",children:em[r]}),(0,t.jsx)("th",{scope:"col",className:"px-6 py-3",children:ej[r]})]})}),(0,t.jsx)("tbody",{children:0===c.length?(0,t.jsx)("tr",{children:(0,t.jsx)("td",{className:"px-6 py-4 text-center",colSpan:3,children:ev[r]})}):c.map(e=>(0,t.jsxs)("tr",{className:"odd:bg-white even:bg-gray-50 border-b border-gray-200",children:[(0,t.jsx)("td",{className:"px-6 py-4 font-medium text-gray-900 whitespace-nowrap",children:e.jobseeker_name}),(0,t.jsx)("td",{className:"px-6 py-4",children:e.job_seeker_id}),(0,t.jsx)("td",{className:"px-6 py-4",children:(0,t.jsx)("a",{className:"font-medium text-[#343c79] cursor-pointer hover:underline",onClick:()=>{var t,s;return t=e.jobseeker_name,s=e.resume_path,void(0,sl.saveAs)(`https://prod-geescore.s3.us-east-2.amazonaws.com/${s}`,`${t} - Geescore.pdf`)},children:(0,t.jsx)(so,{className:"w-4 h-4"})})})]},e.job_seeker_id))})]})})]})]})},sS=async e=>await E({url:"/user-registration/userLogin",method:"POST",data:{source_type:"web",user_type:"hkt",user_email:e.email,user_pin:e.password}}),sE=async e=>await E({url:"/user-registration/resetPin",method:"POST",data:{user_type:"hkt",user_email:e}}),sA=async e=>await E({url:"/user-registration/generatePin",method:"POST",data:{user_type:"hkt",user_email:e.email,user_otp:e.otp,user_pin:e.password}});
30var sL=e.i(450021),sI=e.i(7284),sT=e.i(249398);let sO=(...e)=>(0,sT.twMerge)((0,sI.default)(e)),sF=({label:e,items:s,className:r})=>{let{selectedView:n,dropdownOpen:o,setDropdownOpen:l}=(0,a.useContext)(t5),i=(0,a.useRef)(null),c=t=>{i.current&&!i.current.contains(t.target)&&o===e&&l(null)};(0,a.useEffect)(()=>{let e=document;if(i.current){let t=i.current.getRootNode();t instanceof ShadowRoot&&(e=t)}return e.addEventListener("mousedown",c),()=>{e.removeEventListener("mousedown",c)}},[o,l,e]);let d=n.startsWith(e.toLowerCase());return(0,t.jsxs)("div",{className:"flex-1 @3xl:relative inline-block text-left",children:[(0,t.jsxs)("button",{className:sO("flex items-center justify-center w-full @3xl:px-7 py-4 text-sm @3xl:text-base font-medium text-[#343c79] border-[#60BB46] bg-white hover:bg-[#60BB46cc] hover:border-[#60BB46cc] hover:text-white focus:z-10",(o===e||d)&&"bg-[#60BB46] text-white",r),"aria-expanded":"true","aria-haspopup":"true","data-testid":`dropdown-trigger-${e.toLowerCase()}`,onClick:()=>{l(o===e?null:e)},children:[e,(0,t.jsx)(sL.ChevronDownIcon,{className:"w-4 h-6 ml-1"})]}),(0,t.jsx)("div",{className:sO("absolute min-w-48 w-full right-0 z-10 mt-2 origin-top-right divide-y divide-gray-100 rounded-lg bg-white shadow-lg ring-1 ring-[#e4e4e4] focus:outline-none",o!==e&&"hidden"),role:"menu","aria-orientation":"vertical","aria-labelledby":"menu-button","data-testid":`dropdown-menu-${e.toLowerCase()}`,children:(0,t.jsx)("div",{ref:i,role:"none",children:s.map(e=>(0,t.jsx)("p",{className:"px-4 py-2 text-sm text-gray-700 hover:bg-[#60BB46cc] hover:text-white cursor-pointer",role:"menuitem",onClick:()=>{e.onClick(),l(null)},children:e.label},e.label))})})]})},sR=({className:e})=>{let{setSelectedView:s,selectedLanguage:r,isAuthenticated:n,clearAuthData:o}=(0,a.useContext)(t5),l=[{label:D[r],onClick:()=>{s("omni/language")}},{label:M[r],onClick:()=>{s("omni/users")}},{label:G[r],onClick:()=>{s("omni/access")}},{label:es[r],onClick:()=>{s("omni/help")}}];return n&&l.push({label:er[r],onClick:()=>{o()}}),(0,t.jsxs)("div",{className:sO("inline-flex relative rounded-md",e),role:"group",children:[(0,t.jsx)(sF,{className:"border-2 rounded-s-lg",label:"Omni",items:l}),(0,t.jsx)(sF,{className:"border-b-2 border-t-2",label:"Columbo",items:[{label:en[r],onClick:()=>{s("columbo/shortlists")}},{label:eS[r],onClick:()=>{s("columbo/jobseekers")}},{label:eV[r],onClick:()=>{s("columbo/managers")}},{label:e7[r],onClick:()=>{s("columbo/help")}}]}),(0,t.jsx)(sF,{className:"border-2 rounded-e-lg",label:"Tools",items:[{label:tt[r],onClick:()=>{s("tools/data-upload")}},{label:t$[r],onClick:()=>{s("tools/api")}},{label:tW[r],onClick:()=>{s("tools/analytics")}},{label:tG[r],onClick:()=>{s("tools/help")}}]})]})},sP=({children:e})=>{let{selectedLanguage:s,isAuthenticated:r,hktOrgName:n,hktUserName:o}=(0,a.useContext)(t5);return(0,t.jsxs)("div",{className:"@container",children:[(0,t.jsx)("div",{className:"mx-auto mb-5",children:(0,t.jsxs)("div",{className:"emt-form-bg min-h-[250px] p-6 relative",children:[(0,t.jsx)("div",{className:"flex justify-between",children:(0,t.jsx)("h2",{className:"text-[#343c79] text-2xl @2xl:w-[40%] @5xl:w-full font-bold",children:I[s]})}),(0,t.jsxs)("div",{className:"@3xl:flex @3xl:space-x-2",children:[(0,t.jsxs)("div",{className:"@2xl:w-[40%] mt-8 flex flex-col",children:[(0,t.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,t.jsx)("p",{className:"text-[#343c79] font-bold",children:"Geescore"}),(0,t.jsx)("p",{children:T[s]})]}),r&&(0,t.jsxs)("div",{className:"flex flex-col mt-4",children:[(0,t.jsx)("p",{className:"text-[#343c79] font-bold",children:O[s]}),(0,t.jsx)("p",{children:o}),(0,t.jsx)("p",{className:"text-[#343c79] font-bold mt-2",children:F[s]}),(0,t.jsx)("p",{children:n})]})]}),(0,t.jsxs)("div",{className:"flex-1 flex flex-col-reverse @3xl:flex-col @3xl:items-end @3xl:-mt-8",children:[(0,t.jsx)(sR,{className:"mt-5 @3xl:mt-0 @3xl:mb-5"}),(0,t.jsxs)("div",{className:"mt-4 @3xl:mt-0 space-y-2",children:[(0,t.jsxs)("div",{className:"flex flex-col @3xl:items-end",children:[(0,t.jsx)("p",{className:"text-[#343c79] font-bold",children:"Omni"}),(0,t.jsx)("p",{children:P[s]})]}),(0,t.jsxs)("div",{className:"flex flex-col @3xl:items-end",children:[(0,t.jsx)("p",{className:"text-[#343c79] font-bold",children:"Columbo"}),(0,t.jsx)("p",{children:ea[s]})]}),(0,t.jsxs)("div",{className:"flex flex-col @3xl:items-end",children:[(0,t.jsx)("p",{className:"text-[#343c79] font-bold",children:"Tools"}),(0,t.jsx)("p",{children:te[s]})]})]})]})]}),(0,t.jsx)("span",{className:"bottom-line w-24 h-2 bg-[#343c79] absolute bottom-0 left-0 right-0 block mx-auto"})]})}),!!e&&(0,t.jsx)("div",{className:"border-2 border-[#e4e4e4] rounded-lg p-6 pb-8",children:e})]})},sD=({email:e,setEmail:s,changeView:r})=>{let[n,o]=(0,a.useState)(""),{setAuthData:l}=(0,a.useContext)(t5),i=async t=>{t.preventDefault();let s=N.default.loading("Logging you in");try{let t=await sS({email:e,password:n});t.has_error?N.default.error(t.message,{id:s}):(N.default.success("You're logged in",{id:s}),l(t))}catch(e){N.default.error("An unexpected error occurred",{id:s})}};return(0,t.jsxs)("form",{onSubmit:i,children:[(0,t.jsx)("label",{className:"block mb-2 text-[#343c79]",children:"Email"}),(0,t.jsx)("input",{name:"email",type:"email",className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5",placeholder:"Enter your email address",value:e,onCh
30ange:e=>s(e.target.value),required:!0}),(0,t.jsx)("label",{className:"block mb-2 text-[#343c79] mt-4",children:"Password"}),(0,t.jsx)("input",{name:"password",className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5",type:"password",placeholder:"Enter your password",value:n,onChange:e=>o(e.target.value),required:!0}),(0,t.jsx)("button",{type:"submit",className:"w-full mt-6 bg-[#60BB46] text-white font-medium py-2 px-4 rounded-lg",children:"Log In"}),(0,t.jsx)("div",{className:"flex items-center justify-center w-full mt-2",children:(0,t.jsx)("a",{className:"text-[#343c79] cursor-pointer",onClick:()=>r("send-otp"),children:"Forgot password?"})})]})},sM=({email:e,setEmail:s,changeView:r})=>{let a=async t=>{t.preventDefault();let s=N.default.loading("Sending reset password OTP");try{let t=await sE(e);t.has_error?N.default.error(t.message,{id:s}):(N.default.success("OTP sent",{id:s}),r("set-password"))}catch(e){N.default.error("An unexpected error occurred",{id:s})}};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{className:"text-[#343c79] flex items-center mb-6",onClick:()=>r("login"),children:[(0,t.jsx)(w.ArrowLeftIcon,{className:"w-4 h-4 mr-2"})," Go Back"]}),(0,t.jsxs)("form",{onSubmit:a,children:[(0,t.jsx)("label",{className:"block mb-2 text-[#343c79]",children:"Email"}),(0,t.jsx)("input",{name:"email",type:"email",className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5",placeholder:"Enter your email address",value:e,onChange:e=>s(e.target.value),required:!0}),(0,t.jsx)("button",{type:"submit",className:"w-full mt-6 bg-[#60BB46] text-white font-medium py-2 px-4 rounded-lg",children:"Send OTP"})]})]})},sU=({email:e,changeView:s})=>{let[r,n]=(0,a.useState)(""),[o,l]=(0,a.useState)(""),[i,c]=(0,a.useState)(""),d=async t=>{if(t.preventDefault(),o!==i)return void N.default.error("Passwords do not match");let a=N.default.loading("Setting password");try{let t=await sA({email:e,otp:r,password:o});t.has_error?N.default.error(t.message,{id:a}):(N.default.success("Password reset successfully",{id:a}),s("login"))}catch(e){N.default.error("An unexpected error occurred",{id:a})}};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{className:"text-[#343c79] flex items-center mb-6",onClick:()=>s("send-otp"),children:[(0,t.jsx)(w.ArrowLeftIcon,{className:"w-4 h-4 mr-2"})," Go Back"]}),(0,t.jsxs)("form",{onSubmit:d,children:[(0,t.jsx)("label",{className:"block mb-2 text-[#343c79]",children:"OTP"}),(0,t.jsx)("input",{name:"otp",type:"password",className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5",placeholder:"Enter OTP received in your email",value:r,onChange:e=>n(e.target.value),required:!0}),(0,t.jsx)("label",{className:"block mb-2 text-[#343c79] mt-4",children:"New Password"}),(0,t.jsx)("input",{name:"newPassword",type:"password",className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5",placeholder:"Enter new password",value:o,onChange:e=>l(e.target.value),required:!0}),(0,t.jsx)("label",{className:"block mb-2 text-[#343c79] mt-4",children:"Confirm Password"}),(0,t.jsx)("input",{name:"confirmPassword",type:"password",className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5",placeholder:"Confirm new password",value:i,onChange:e=>c(e.target.value),required:!0}),(0,t.jsx)("button",{type:"submit",className:"w-full mt-6 bg-[#60BB46] text-white font-medium py-2 px-4 rounded-lg",children:"Set Password"})]})]})},sq=()=>{let[e,s]=(0,a.useState)("login"),[r,n]=(0,a.useState)("");return(0,t.jsxs)(sP,{children:["login"===e&&(0,t.jsx)(sD,{email:r,setEmail:n,changeView:s}),"send-otp"===e&&(0,t.jsx)(sM,{email:r,setEmail:n,changeView:s}),"set-password"===e&&(0,t.jsx)(sU,{email:r,setEmail:n,changeView:s})]})},sB=()=>{let{selectedLanguage:e,setSelectedView:s,hktUserEmail:r}=(0,a.useContext)(t5),n=async()=>{let e=N.default.loading("Sending reset password OTP");try{let t=await sE(r);t.has_error?N.default.error(t.message,{id:e}):(N.default.success("OTP sent",{id:e}),s("omni/access/reset-password"))}
30catch(t){N.default.error("An unexpected error occurred",{id:e})}};return(0,t.jsxs)("div",{className:"@3xl:flex items-center justify-between space-y-2 @3xl:space-y-0",children:[(0,t.jsx)("p",{className:"text-lg",children:G[e]}),(0,t.jsx)("div",{children:(0,t.jsx)("button",{className:"border border-[#343c79] text-[#343c79] text-sm font-medium py-1.5 px-3 rounded-lg",onClick:n,children:W[e]})})]})},sH=async e=>await E({url:"/user-registration/registerUser",method:"POST",data:{user_name:e.name.trim(),user_email:e.email.trim(),user_type:"hkt",registration_source:"web"}}),sz=async e=>{let t=new URLSearchParams;e?.limit&&t.append("limit",e.limit.toString()),e?.offset!==void 0&&t.append("offset",e.offset.toString());let s=t.toString();return await E({url:`/hkt/orgUsersList${s?`?${s}`:""}`,method:"GET"})},s$=()=>{let{setSelectedView:e,selectedLanguage:s}=(0,a.useContext)(t5),[r,n]=(0,a.useState)({name:"",email:""}),o=e=>{let t=e.target.value;""===t.trim()&&(t=""),n(s=>({...s,[e.target.name]:t}))},l=async t=>{t.preventDefault();try{let t=await sH(r);t.has_error?N.toast.error(t.message):(N.toast.success("User added successfully!"),e("omni/users"))}catch(e){N.toast.error("An unexpected error occurred")}};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{className:"text-[#343c79] flex items-center mb-6",onClick:()=>e("omni/users"),children:[(0,t.jsx)(w.ArrowLeftIcon,{className:"w-4 h-4 mr-2"})," ",R[s]]}),(0,t.jsx)("p",{className:"text-lg mb-4",children:H[s]}),(0,t.jsxs)("form",{onSubmit:l,children:[(0,t.jsx)("label",{className:"block mb-2 text-[#343c79]",children:z[s]}),(0,t.jsx)("input",{name:"name",className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg block w-full p-2.5",value:r.name,onChange:o,required:!0}),(0,t.jsx)("label",{className:"block mb-2 text-[#343c79] mt-4",children:$[s]}),(0,t.jsx)("input",{name:"email",type:"email",className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg block w-full p-2.5",value:r.email,onChange:o,required:!0}),(0,t.jsx)("button",{type:"submit",className:"w-full mt-6 bg-[#60BB46] text-white font-medium py-2 px-4 rounded-lg",children:J[s]})]})]})},sJ=()=>{let{selectedLanguage:e}=(0,a.useContext)(t5);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"text-lg mb-4",children:es[e]}),(0,t.jsx)("p",{children:tQ[e]}),(0,t.jsxs)("p",{children:[tK[e],":"," ",(0,t.jsx)("a",{className:"text-[#343c79]",href:"mailto:[email protected]",children:"[email protected]"})]}),(0,t.jsxs)("p",{children:[tY[e],":"," ",(0,t.jsx)("a",{className:"text-[#343c79]",href:"tel:+14163024475",children:"+1 (416) 302-4475"})]}),(0,t.jsxs)("a",{href:"https://geescore.com/hkt_client_dashboard_faq/",className:"text-[#343c79] flex items-center mt-4",target:"_blank",children:[tZ[e]," ",(0,t.jsx)(sa,{className:"w-4 h-4 ml-2"})]}),(0,t.jsxs)("a",{href:"https://geescore.com/terms-and-conditions/",className:"text-[#343c79] flex items-center",target:"_blank",children:[tX[e]," ",(0,t.jsx)(sa,{className:"w-4 h-4 ml-2"})]}),(0,t.jsxs)("a",{href:"https://geescore.com/privacy/",className:"text-[#343c79] flex items-center",target:"_blank",children:[t0[e]," ",(0,t.jsx)(sa,{className:"w-4 h-4 ml-2"})]})]})},sW=()=>{let{selectedLanguage:e,setSelectedLanguage:s}=(0,a.useContext)(t5);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"text-lg mb-4",children:D[e]}),(0,t.jsxs)("select",{className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5",value:e,onChange:e=>{s(e.target.value)},name:"language",children:[(0,t.jsx)("option",{value:"en",children:"English"}),(0,t.jsx)("option",{value:"es",children:"Spanish"})]})]})},sV=()=>{let{selectedLanguage:e,setSelectedView:s,hktUserEmail:r}=(0,a.useContext)(t5),[n,o]=(0,a.useState)(""),[l,i]=(0,a.useState)(""),[c,d]=(0,a.useState)(""),u=async e=>{if(e.preventDefault(),l!==c)return void N.default.error("Passwords do not match");try{let e=await sA({email:r,otp:n,password:l});e.has_error?N.default.error(e.message):(N.default.success("Password reset successfully"),s("omni/access"))}catch(e){N.default.error("An unexpected error occurred")}};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"text-lg mb-4",children:V[e]}),(0,t.jsxs)("form",{onSubmit:u,children:[(0,t.jsx)("label",{className:"block mb-2 text-[#343c79]",children:Q[e]}),(0,t.jsx)("input",{name:"otp",type:"password",className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5",placeholder:K[e],value:n,onChange:e=>o(e.target.value),required:!0}),(0,t.jsx)("label",{className:"block mb-2 text-[#343c79] mt-4",children:Y[e]}),(0,t.jsx)("input",{name:"newPassword",type:"password",className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5",placeholder:Z[e],value:l,onCh
30ange:e=>i(e.target.value),required:!0}),(0,t.jsx)("label",{className:"block mb-2 text-[#343c79] mt-4",children:X[e]}),(0,t.jsx)("input",{name:"confirmPassword",type:"password",className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5",placeholder:ee[e],value:c,onChange:e=>d(e.target.value),required:!0}),(0,t.jsx)("button",{type:"submit",className:"w-full mt-6 bg-[#60BB46] text-white font-medium py-2 px-4 rounded-lg",children:et[e]})]})]})},sG=()=>{let{setSelectedView:e,selectedLanguage:s,hktUserEmail:r}=(0,a.useContext)(t5),[n,o]=(0,a.useState)([]),[l,i]=(0,a.useState)(1),[c,d]=(0,a.useState)(!1),[u,m]=(0,a.useState)(!0),[h,x]=(0,a.useState)(0),p=(0,a.useRef)(!1),f=(0,a.useRef)(!1),b=(0,a.useCallback)(async(e=0)=>{d(!0);try{let t=await sz({limit:100,offset:e});if(t.has_error)return N.default.error(t.message),[];return t.data??[]}catch(e){return N.default.error("An unexpected error occurred"),[]}finally{d(!1)}},[]);(0,a.useEffect)(()=>{f.current||(f.current=!0,(async()=>{let e=await b(0);o(e),x(1),m(100===e.length)})())},[b]),(0,a.useEffect)(()=>{if(p.current||!u)return;let e=n.length;if(0===e)return;let t=Math.ceil(e/10);l===t&&t>0&&e===100*h&&(p.current=!0,(async()=>{try{let e=await b(100*h);e.length>0?(o(t=>[...t,...e]),x(e=>e+1),m(100===e.length)):m(!1)}finally{p.current=!1}})())},[l,n.length,h,u,b]);let g=Math.ceil(n.length/10),y=g>1||u,j=l<g||u&&!c,w=(l-1)*10,v=n.slice(w,w+10);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"@3xl:flex items-center justify-between space-y-2 @3xl:space-y-0 mb-4",children:[(0,t.jsx)("p",{className:"text-lg",children:M[s]}),(0,t.jsx)("button",{className:"border border-[#343c79] text-[#343c79] text-sm font-medium py-1.5 px-3 rounded-lg",onClick:()=>e("omni/users/add"),children:B[s]})]}),(0,t.jsx)("div",{className:"relative overflow-x-auto",children:(0,t.jsxs)("table",{className:"w-full text-sm text-left text-gray-500",children:[(0,t.jsx)("thead",{className:"text-xs text-gray-700 uppercase bg-gray-50",children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{scope:"col",className:"px-6 py-3",children:U[s]}),(0,t.jsx)("th",{scope:"col",className:"px-6 py-3",children:q[s]})]})}),(0,t.jsx)("tbody",{children:c&&0===n.length?(0,t.jsx)("tr",{children:(0,t.jsx)("td",{className:"px-6 py-4 text-center",colSpan:2,children:"Loading users..."})}):v.map(e=>(0,t.jsxs)("tr",{className:"odd:bg-white even:bg-gray-50 border-b border-gray-200",children:[(0,t.jsxs)("th",{scope:"row",className:"px-6 py-4 font-medium text-gray-900 whitespace-nowrap",children:[e.user_name," ",e.email===r&&(0,t.jsx)("span",{className:"text-xs font-normal text-gray-500",children:"(You)"})]}),(0,t.jsx)("td",{className:"px-6 py-4",children:e.email})]},e.email))})]})}),y&&(0,t.jsxs)("div",{className:"mt-4 flex items-center justify-between",children:[(0,t.jsx)("button",{onClick:()=>i(e=>Math.max(1,e-1)),disabled:1===l||c,className:"px-3 py-1 text-sm border border-gray-300 rounded-md hover:bg-gray-200 disabled:opacity-50 disabled:cursor-not-allowed",children:t1[s]}),(0,t.jsxs)("span",{className:"text-sm text-gray-600",children:[t3[s]," ",l," ",t6[s]," ",g]}),(0,t.jsx)("button",{onClick:()=>i(e=>e+1),disabled:!j||c,className:"px-3 py-1 text-sm border border-gray-300 rounded-md hover:bg-gray-200 disabled:opacity-50 disabled:cursor-not-allowed",children:t2[s]})]})]})},sQ=()=>{let{setSelectedView:e,selectedLanguage:s}=(0,a.useContext)(t5),[r,n]=(0,a.useState)(""),[o,l]=(0,a.useState)(""),[i,c]=(0,a.useState)([]),[d,u]=(0,a.useState)([]),[m,h]=(0,a.useState)(""),[x,p]=(0,a.useState)([]),[f,b]=(0,a.useState)(""),[g,y]=(0,a.useState)(""),[j,v]=(0,a.useState)(""),[C,_]=(0,a.useState)(""),[k,S]=(0,a.useState)(""),[E,A]=(0,a.useState)(""),[L,I]=(0,a.useState)(""),[T,O]=(0,a.useState)(""),[F,P]=(0,a.useState)(""),D=async t=>{t.preventDefault();let s=N.default.loading("Adding job...");try{let t=await su({jobTitle:r,jobDescription:o,responsibilities:i,qualifications:d,salary:m,benefits:x,companyName:f,companyDescription:g,email:j,phone:C,city:k,state:E,zipCode:L,country:T,jobUrl:F});t.has_error?N.default.error(t.message,{id:s}):(N.default.success("Job added successfully!",{id:s}),e("tools/data-upload"))}catch(e){N.default.error("An unexpected error occurred",{id:s})}};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{className:"text-[#343c79] flex items-center mb-6",onClick:()=>e("tools/data-upload"),children:[(0,t.jsx)(w.ArrowLeftIcon,{className:"w-4 h-4 mr-2"})," ",R[s]]}),(0,t.jsx)("p",{className:"text-lg mb-4",children:td[s]}),(0,t.jsxs)("form",{onSubmit:D,children:[(0,t.jsx)("label",{className:"block mb-2 text-[#343c79]",children:tu[s]}),(0,t.jsx)("input",{name:"job_title",className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5",placeholder:tS[s],value:r,onChange:e=>n(e.target.value),required:!0}),(0,t.jsx)("label",{className:"block mb-2 text-[#343c79] mt-4",children:th[s]}),(0,t.jsx)("textarea",{name:"job_description",className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5",placeholder:tA[s],rows:4,value:o,onChange:e=>l(e.target.value),required:!0}),(0,t.jsx)("label",{className:"block mb-2 text-[#343c79] mt-4",children:tx[s]}),(0,t.jsx)("textarea",{name:"responsibilities",className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5",placeholder:tL[s],rows:4,value:i.join(","),onChange:e=>c(e.target.value.split(",").map(e=>e.trim()))}),(0,t.jsx)("label",{className:"block mb-2 text-[#343c79] mt-4",children:tp[s]}),(0,t.jsx)("textarea",{name:"qualifications",className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5",placeholder:tI[s],rows:4,value:d.join(","),onChange:e=>u(e.target.value.split(",").map(e=>e.trim()))}),(0,t.jsx)("label",{className:"block mb-2 text-[#343c79] mt-4",children:tf[s]}),(0,t.jsx)("input",{name:"salary",className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5",placeholder:tT[s],value:m,onChange:e=>h(e.target.value)}),(0,t.jsx)("label",{className:"block mb-2 text-[#343c79] mt-4",children:tb[s]}),(0,t.jsx)("textarea",{name:"benefits",className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5",placeholder:tO[s],rows:4,value:x.join(","),onChange:e=>p(e.target.value.split(",").map(e=>e.trim()))}),(0,t.jsx)("label",{className:"block mb-2 text-[#343c79] mt-4",children:tg[s]}),(0,t.jsx)("input",{name:"company_name",className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5",placeholder:tF[s],value:f,onChange:e=>b(e.target.value),required:!0}),(0,t.jsx)("label",{className:"block mb-2 text-[#343c79] mt-4",children:ty[s]}),(0,t.jsx)("textarea",{name:"company_description",className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5",placeholder:tR[s],rows:4,value:g,onChange:e=>y(e.target.value)}),(0,t.jsx)("label",{className:"block mb-2 text-[#343c79] mt-4",children:tj[s]}),(0,t.jsx)("input",{name:"email",type:"email",className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5",placeholder:tP[s],value:j,onChange:e=>v(e.target.value),required:!0}),(0,t.jsx)("label",{className:"block mb-2 text-[#343c79] mt-4",children:tw[s]}),(0,t.jsx)("input",{name:"phone",type:"tel",className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5",placeholder:tD[s],value:C,onChange:e=>_(e.target.value),required:!0}),(0,t.jsx)("label",{className:"block mb-2 text-[#343c79] mt-4",children:tv[s]}),(0,t.jsx)("input",{name:"city",className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5",placeholder:tM[s],value:k,onChange:e=>S(e.target.value),required:!0}),(0,t.jsx)("label",{className:"block mb-2 text-[#343c79] mt-4",children:tN[s]}),(0,t.jsx)("input",{name:"state",className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5",placeholder:tU[s],value:E,onChange:e=>A(e.target.value),required:!0}),(0,t.jsx)("label",{className:"block mb-2 text-[#343c79] mt-4",children:tC[s]}),(0,t.jsx)("input",{name:"zip_code",className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5",placeholder:tq[s],value:L,onChange:e=>I(e.target.value),required:!0}),(0,t.jsx)("label",{className:"block mb-2 text-[#343c79] mt-4",children:t_[s]}),(0,t.jsx)("input",{name:"country",className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5",placeholder:tB[s],value:T,onChange:e=>O(e.target.value),required:!0}),(0,t.jsx)("label",{className:"block mb-2 text-[#343c79] mt-4",children:tk[s]}),(0,t.jsx)("input",{name:"jobUrl",className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5",placeholder:tH[s],value:F,onChange:e=>P(e.target.value),required:!0}),(0,t.jsx)("button",{type:"submit",className:"w-full mt-6 bg-[#60BB46] text-white font-medium py-2 px-4 roun
30ded-lg",children:tz[s]})]})]})};var sK=e.i(834456),sY=e.i(627897),sZ=e.i(98856);let sX=["job_title","job_description","company","company_name","responsibilities","qualifications"],s0=e=>!!e&&"object"==typeof e&&!Array.isArray(e)&&sX.some(t=>!!e[t]),s1=e=>{if(e&&"object"==typeof e)return[Array.isArray(e.jobs)?e.jobs[0]:e.jobs,Array.isArray(e.job)?e.job[0]:e.job,e].find(s0)},s2=e=>{if(!e)return;let t=s1(e.json_part);if(t)return t;if("string"==typeof e.parsed_content)try{return s1(JSON.parse(e.parsed_content))}catch{}},s3=e=>e?Array.isArray(e)?e.filter(Boolean).map(String):String(e).split(/\r?\n|;|\|,/).map(e=>e.trim()).filter(Boolean):[],s6=()=>{let{setSelectedView:e,selectedLanguage:s}=(0,a.useContext)(t5),[r,n]=(0,a.useState)(""),[o,l]=(0,a.useState)(null),[i,c]=(0,a.useState)(!1),[d,u]=(0,a.useState)(!1),[m,h]=(0,a.useState)(!1),[x,p]=(0,a.useState)(!1),f=(0,a.useRef)(""),b=(0,a.useRef)(null),g=(0,a.useRef)(null),y=()=>{g.current&&(clearTimeout(g.current),g.current=null)};(0,a.useEffect)(()=>{let e=C.default.env.SOCKET_URL||"wss://mh35iohuta.execute-api.us-east-2.amazonaws.com/dev/",t=sZ.default.onMessage(async e=>{var t;if(console.debug("WebSocket received:",e),e?.operation_id&&b.current&&e.operation_id!==b.current)return;l(e||null);let s="string"==typeof e?.message&&e.message.includes("timed out");s||(c(!1),h(!1));let r=s2(e);if(!r){if(!s){let t,s;y(),b.current=null,N.default.error(`Couldn't read a job from that URL — ${(s=(t=e?.json_part??{}).confidence,"string"==typeof s?.confidence_reason?s.confidence_reason:"string"==typeof t.page_type?`the parser saw no job page (page_type: ${t.page_type})`:"string"==typeof e?.message?e.message:"the response carried no job fields")}`,{duration:8e3})}return}y(),b.current=null;try{let e,s,a;u(!0);let o=f.current,l=await (0,sK.expandStateAbbreviation)(r.state??"",r.country??"");await su((e=r.company??r.company_name??"",s=r.postal_code??r.zip_code??"",a=l??r.state??"",{jobTitle:r.job_title??"",jobDescription:r.job_description??"",responsibilities:s3(r.responsibilities),qualifications:s3(r.qualifications),salary:r.salary??"",benefits:s3(r.benefits),companyName:e,companyDescription:(t=r.company_description)?Array.isArray(t)?t.filter(Boolean).join(" ").trim():String(t).trim():"",email:r.email??"",phone:r.phone??"",city:r.city??"",state:a,zipCode:s,country:r.country??"",jobUrl:o??r.job_url??"",jobPostDomain:r.job_post_domain??null,jobCategory:r.job_category??null,contactDetails:r.contact_details??null,date:r.date??null,keywords:Array.isArray(r.keywords)?r.keywords:[],education:Array.isArray(r.education)?r.education:[],skills:Array.isArray(r.skills)?r.skills:[],certifications:Array.isArray(r.certifications)?r.certifications:[],industrySector:r.industry_sector??null,alertType:r.alert_type??null,jobType:r.job_type??null,location:r.location??null})),N.default.success("Job added successfully!"),p(!0),n("")}catch(e){console.error("Failed to add job from crawler response:",e),N.default.error("Failed to add job to database")}finally{u(!1)}});return sZ.default.connect(e).catch(e=>{console.debug("WebSocket connection failed:",e)}),()=>{y(),t();try{sZ.default.close()}catch(e){}}},[]);let j=async e=>{e.preventDefault(),y(),l(null),p(!1),u(!1),h(!0);let t=N.default.loading("Fetching job content...");try{let e=await sb(r);console.debug("getJobContent ->",e),f.current=r;let s=(0,sY.v4)();b.current=s;let a={action:"parse_with_llm",operation_id:s,url:r,frameId:"widget",html_text:(e=>{if(!e)return"";let t=document.createElement("div");t.innerHTML=e;let s=t.textContent||t.innerText||"";return s=s.replace(/[\n\t\r]+/g," ").replace(/\s+/g," ").trim()})(e?.job_post_content??"")};console.debug("Sending websocket message:",a),c(!0),h(!1),await sZ.default.sendMessage(a),g.current=setTimeout(()=>{b.current===s&&(b.current=null,g.current=null,sZ.default.clearWaitingState(),c(!1),N.default.error("No response from the job parser. Please try again."))},12e4),N.default.success("Job request sent successfully!",{id:t})}catch(e){console.error(e),b.current=null,N.default.error(e instanceof Error?e.message:"An unexpected error occurred",{id:t}),h(!1),c(!1)}finally{setTimeout(()=>{try{N.default.dismiss(t)}catch(e){}},500)}};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{className:"text-[#343c79] flex items-center mb-6",onClick:()=>e("tools/data-upload"),children:[(0,t.jsx)(w.ArrowLeftIcon,{className:"w-4 h-4 mr-2"}),R[s]]}),(0,t.jsx)("p",{className:"text-lg mb-4",children:td[s]}),(0,t.jsxs)("form",{onSubmit:j,children:[(0,t.jsx)("label",{className:"block mb-2 text-[#343c79]",children:tm[s]}),(0,t.jsx)("input",{name:"job_url",className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5",placeholder:tE[s],value:r,onChange:e=>n(e.target.value),required:!0}),(0,t.jsx)("button",{type:"submit",disabled:m||i||d,className:"w-full mt-6 bg-[#60BB46] text-white font-medium py-2 px-4 roun
30ded-lg disabled:opacity-50 disabled:cursor-not-allowed",children:tz[s]})]}),(o||i||d)&&(0,t.jsxs)("div",{className:"mt-6 p-4 border rounded bg-gray-50 text-sm",children:[(0,t.jsx)("strong",{children:"Response:"}),(0,t.jsxs)("div",{className:"mt-2 max-h-[400px] overflow-auto bg-white border border-gray-200 rounded p-2",children:[i&&(0,t.jsxs)("div",{className:"flex items-center justify-center py-6",children:[(0,t.jsx)("div",{className:"animate-spin rounded-full h-6 w-6 border-t-2 border-b-2 border-[#343c79]"}),(0,t.jsx)("span",{className:"ml-2 text-gray-700",children:"Waiting for response..."})]}),d&&(0,t.jsxs)("div",{className:"flex items-center justify-center py-6",children:[(0,t.jsx)("div",{className:"animate-spin rounded-full h-6 w-6 border-t-2 border-b-2 border-[#343c79]"}),(0,t.jsx)("span",{className:"ml-2 text-gray-700",children:"Adding job to database..."})]}),(0,t.jsx)("pre",{className:"whitespace-pre-wrap break-all text-xs",children:o?JSON.stringify(s2(o)??o,null,2):""})]}),x&&(0,t.jsxs)("div",{className:"mt-4 p-3 bg-green-50 border border-green-200 rounded-lg flex items-center",children:[(0,t.jsx)("svg",{className:"w-5 h-5 text-green-600 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),(0,t.jsx)("span",{className:"text-green-700 font-medium",children:"Job added successfully! You can now submit a new URL."})]})]})]})},s5=()=>{let{selectedLanguage:e}=(0,a.useContext)(t5);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"text-lg mb-4",children:tW[e]}),(0,t.jsxs)("a",{className:"text-[#343c79] flex items-center",href:"#",target:"_blank",children:[tV[e]," ",(0,t.jsx)(sa,{className:"w-4 h-4 ml-2"})]})]})},s4=()=>{let{selectedLanguage:e}=(0,a.useContext)(t5);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"text-lg mb-4",children:t$[e]}),(0,t.jsxs)("a",{className:"text-[#343c79] flex items-center",href:"https://api.geescore.com",target:"_blank",children:[tJ[e]," ",(0,t.jsx)(sa,{className:"w-4 h-4 ml-2"})]})]})},s9=()=>{let{setSelectedView:e,selectedLanguage:s}=(0,a.useContext)(t5);return(0,t.jsxs)("div",{className:"@3xl:flex items-center justify-between space-y-2 @3xl:space-y-0",children:[(0,t.jsx)("p",{className:"text-lg",children:tt[s]}),(0,t.jsxs)("div",{className:"space-x-2",children:[(0,t.jsx)("button",{className:"border border-[#343c79] text-[#343c79] text-sm font-medium py-1.5 px-3 rounded-lg",onClick:()=>e("tools/data-upload/add-job-crawler"),children:tr[s]}),(0,t.jsx)("button",{className:"border border-[#343c79] text-[#343c79] text-sm font-medium py-1.5 px-3 rounded-lg",onClick:()=>e("tools/data-upload/add-job"),children:ts[s]}),(0,t.jsx)("button",{className:"border border-[#343c79] text-[#343c79] text-sm font-medium py-1.5 px-3 rounded-lg",onClick:()=>e("tools/data-upload/add-resume"),children:ta[s]})]})]})},s8=()=>{let{selectedLanguage:e}=(0,a.useContext)(t5);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"text-lg mb-4",children:tG[e]}),(0,t.jsx)("p",{children:tQ[e]}),(0,t.jsxs)("p",{children:[tK[e],":"," ",(0,t.jsx)("a",{className:"text-[#343c79]",href:"mailto:[email protected]",children:"[email protected]"})]}),(0,t.jsxs)("p",{children:[tY[e],":"," ",(0,t.jsx)("a",{className:"text-[#343c79]",href:"tel:+14163024475",children:"+1 (416) 302-4475"})]}),(0,t.jsxs)("a",{href:"https://geescore.com/hkt_client_dashboard_faq/",className:"text-[#343c79] flex items-center mt-4",target:"_blank",children:[tZ[e]," ",(0,t.jsx)(sa,{className:"w-4 h-4 ml-2"})]}),(0,t.jsxs)("a",{href:"https://geescore.com/terms-and-conditions/",className:"text-[#343c79] flex items-center",target:"_blank",children:[tX[e]," ",(0,t.jsx)(sa,{className:"w-4 h-4 ml-2"})]}),(0,t.jsxs)("a",{href:"https://geescore.com/privacy/",className:"text-[#343c79] flex items-center",target:"_blank",children:[t0[e]," ",(0,t.jsx)(sa,{className:"w-4 h-4 ml-2"})]})]})},s7=async e=>await E({url:"/job-seeker/signed-url",method:"POST",data:{filename:e.filename,type:e.filetype,job_ids:e.job_ids,file_notation:"",doc_type:e.doc_type||"resume",seeker_id:"anonymous"}}),re=async(e,t)=>await _.default.put(e,t.file,{headers:{"Content-Type":t.type}}),rt=()=>{let{setSelectedView:e,selectedLanguage:s}=(0,a.useContext)(t5),[r,n]=(0,a.useState)(),[o,l]=(0,a.useState)(),i=async t=>{if(t.preventDefault(),!r||!o)return;let s=N.default.loading("Uploading resume...");try{let t=await s7({filename:o.name,filetype:o.type,job_ids:[r.toString()],doc_type:"bulk_single_resumes"});if(!t.uploadURL)return void N.default.error("An unexpected error occurred",{id:s});let a=await re(t.uploadURL,{file:o,type:o.type});200===a.status?(N.default.success("Resume uploaded successfully",{id:s}),e("tools/data-upload")):N.default.error("An unexpected error occurred",{id:s})}catch(e){N.default.error("An unexpected error occurred",{id:s})}};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{className:"text-[#343c79] flex items-center mb-6",onClick:()=>e("tools/data-upload"),children:[(0,t.jsx)(w.ArrowLeftIcon,{className:"w-4 h-4 mr-2"})," ",R[s]]}),(0,t.jsx)("p",{className:"text-lg mb-4",children:tn[s]}),(0,t.jsx)(sv,{value:r,onChange:e=>{n(e)},label:to[s],placeholder:tl[s]}),r&&(0,t.jsxs)("form",{className:"mt-4",onSubmit:i,children:[(0,t.jsx)("label",{className:"block mb-2 text-[#343c79]",children:ti[s]}),(0,t.jsx)("input",{name:"resume",type:"file",className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5",onChange:e=>{e.target.files&&l(e.target.files[0])},required:!0}),(0,t.jsx)("button",{type:"submit",className:"w-full mt-6 bg-[#60BB46] text-white font-medium py-2 px-4 roun
30ded-lg",children:tc[s]})]})]})},rs=()=>{let e=(0,a.useContext)(t5);return((0,a.useEffect)(()=>{S=e},[e]),e.isAuthenticated)?(0,t.jsx)(sP,{children:(()=>{switch(e.selectedView){case"omni/language":return(0,t.jsx)(sW,{});case"omni/users":return(0,t.jsx)(sG,{});case"omni/users/add":return(0,t.jsx)(s$,{});case"omni/access":return(0,t.jsx)(sB,{});case"omni/access/reset-password":return(0,t.jsx)(sV,{});case"omni/help":return(0,t.jsx)(sJ,{});case"columbo/shortlists":return(0,t.jsx)(s_,{});case"columbo/shortlists/add":return(0,t.jsx)(ss,{});case"columbo/shortlists/view":return(0,t.jsx)(sk,{});case"columbo/shortlists/addJobseekers":return(0,t.jsx)(sr,{});case"columbo/jobseekers":return(0,t.jsx)(sN,{});case"columbo/managers":return(0,t.jsx)(sC,{});case"columbo/managers/add":return(0,t.jsx)(t9,{});case"columbo/help":return(0,t.jsx)(sn,{});case"tools/data-upload":return(0,t.jsx)(s9,{});case"tools/data-upload/add-job":return(0,t.jsx)(sQ,{});case"tools/data-upload/add-job-crawler":return(0,t.jsx)(s6,{});case"tools/data-upload/add-resume":return(0,t.jsx)(rt,{});case"tools/api":return(0,t.jsx)(s4,{});case"tools/analytics":return(0,t.jsx)(s5,{});case"tools/help":return(0,t.jsx)(s8,{});default:return null}})()}):(0,t.jsx)(sq,{})},rr=()=>(0,t.jsx)(t4,{children:(0,t.jsx)(rs,{})});var ra=e.i(528355),rn=e.i(661718),ro=e.i(528826),rl=e.i(199976),ri=e.i(504959),rc=e.i(70916),rd=e.i(179430);function ru({currentPage:e,setPage:s,isNextDisabled:r,isPrevDisabled:a=e<=1,className:n="flex justify-center items-center"}){return(0,t.jsx)("div",{className:n,children:(0,t.jsxs)("div",{className:"flex justify-center space-x-2 font-montserrat",style:{fontFamily:"Montserrat",padding:"30px"},children:[(0,t.jsx)("button",{"data-testid":"pagination-prev-btn",onClick:()=>s(Math.max(1,e-1)),disabled:a,className:"px-4 text-white pagination rounded-lg select-none font-montserrat",style:{background:"#60BB46",paddingTop:"12px",paddingBottom:"12px",opacity:a?.5:1,cursor:a?"not-allowed":"pointer"},"aria-label":"Previous page",children:"Prev"}),(0,t.jsx)("div",{"data-testid":"pagination-page-indicator",style:{background:"#E8E8E8",fontFamily:"Montserrat",justifyContent:"center",alignItems:"center",display:"flex"},className:"px-5 py-[9px] text-[#0a9a10] rounded-lg select-none font-montserrat",children:e}),(0,t.jsx)("button",{"data-testid":"pagination-next-btn",onClick:()=>!r&&s(e+1),disabled:r,className:"px-4 py-[9px] bg-[#2c3d71] text-white pagination rounded-lg select-none font-montserrat",style:{opacity:r?.5:1,cursor:r?"not-allowed":"pointer"},"aria-label":"Next page",children:"Next"})]})})}var rm=e.i(456263);e.i(514027);var rh=e.i(300500),rx=e.i(884215);let rp=({_className:e="flex w-full justify-center",_classNameAppend:s="my-10",_color:r="#2c3d71",_size:a=30})=>(0,t.jsx)("div",{className:`${e} ${s}`,children:(0,t.jsx)("svg",{width:a,height:a,stroke:r,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("g",{className:"spinner_V8m1",children:(0,t.jsx)("circle",{cx:12,cy:12,r:"9.5",fill:"none",strokeWidth:3})})})});function rf({isOpen:e,onClose:s,questions:r,jobpost_id:n,isMobile:l=!1}){let[i,c]=(0,a.useState)({}),[d,u]=(0,a.useState)(!1);(0,a.useEffect)(()=>{if(!r||0===r.length)return;let e={};r.forEach(t=>{t.answer&&(e[t.question_id]=t.answer.toLowerCase())}),c(e)},[r]);let m=(e,t)=>{c(s=>({...s,[e]:t.toLowerCase()}))},h=async()=>{let e=(0,o.hasAuth)()?(0,o.getAuthData)().seeker_id:5251,t=Object.keys(i).map(t=>({jobpost_id:n,seeker_id:e,answer:i[Number(t)],question_id:Number(t),question_type:"custom"}));u(!0);try{let e=await (0,rx.saveCustomQuestionData)(t);!0===e?setTimeout(()=>{s()},500):u(!1)}catch(e){console.error("Error submitting answers:",e),u(!1)}},x=Object.keys(i).length,p=r?.length||0,f=x>=p;return(0,t.jsxs)("div",{className:`
31        border-2 border-[#293E99] rounded-2xl overflow-hidden bg-white shadow-2xl
32        z-50
33        ${l?"w-[90%] max-w-[400px]":"w-[350px]"}
34      `,style:{transform:e?"translateX(0)":"translateX(100%)",transition:"transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s ease-in-out",opacity:+!!e,pointerEvents:e?"auto":"none"},children:[(0,t.jsxs)("div",{className:"flex justify-between items-center px-4 py-4 bg-[#293E99] rounded-2xl m-1",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-lg font-semibold text-white",children:"Screening Questions"}),(0,t.jsxs)("p",{className:"text-xs text-blue-200 mt-0.5",children:[x,"/",p," answered"]})]}),(0,t.jsx)("button",{onClick:s,className:"text-white text-xl font-bold hover:opacity-70 transition-opacity",children:"×"})]}),(0,t.jsx)("div",{className:"p-2 space-y-1 max-h-[60vh] overflow-y-auto",children:r.map((e,s)=>(0,t.jsxs)("div",{className:`px-4 py-3 rounded-2xl ${s%2==0?"bg-[#EAEEFF]":"bg-[#FFF6D4]"}`,children:[(0,t.jsxs)("p",{className:"font-medium text-sm mb-2",style:{color:"#293E99"},children:[(0,t.jsx)("span",{className:"inline-flex items-center justify-center w-5 h-5 rounded-full text-xs text-white mr-2 bg-[#293E99]",children:s+1}),e.question]}),"radio"===e.answer_type&&e.answer_set?.map((s,r)=>{let a=s.toLowerCase();return(0,t.jsxs)("label",{className:"flex gap-2 items-center ml-7 mb-1 text-sm cursor-pointer",children:[(0,t.jsx)("input",{type:"radio",name:`q-${e.question_id}`,value:a,checked:i[e.question_id]===a,onChange:()=>m(e.question_id,a),disabled:d,className:"accent-[#293E99]"}),(0,t.jsx)("span",{className:"text-gray-700",children:s})]},r)}),"text"===e.answer_type&&(0,t.jsx)("div",{className:"ml-7",children:(0,t.jsx)("input",{type:"text",value:i[e.question_id]||"",onChange:t=>m(e.question_id,t.target.value),disabled:d,placeholder:"Type your answer...",className:"w-full px-3 py-2 border border-gray-300 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-[#293E99] focus:border-transparent disabled:bg-gray-100"})})]},e.question_id))}),(0,t.jsxs)("div",{className:"p-3 border-t border-gray-200 flex gap-3",children:[(0,t.jsx)("button",{onClick:s,disabled:d,className:"flex-1 py-2.5 rounded-lg border border-gray-300 text-gray-700 font-medium hover:bg-gray-50 transition-colors disabled:opacity-50 text-sm",children:"Cancel"}),(0,t.jsx)("button",{onClick:h,disabled:d||!f,className:"flex-1 py-2.5 rounded-lg text-white font-medium transition-colors disabled:cursor-not-allowed flex items-center justify-center gap-2 text-sm",style:{background:d||!f?"#9ca3af":"#60bb46"},children:d?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(rp,{_className:"flex justify-center",_
34color:"white",_classNameAppend:"",_size:18}),(0,t.jsx)("span",{children:"Saving..."})]}):"Submit Answers"})]})]})}var rb=e.i(585066);let rg=({searchTerm:e,customMessage:s})=>(0,t.jsx)("div",{className:"px-4 py-10 text-center",children:(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center",children:[(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64",viewBox:"0 0 24 24",fill:"none",stroke:"#d1d5db",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round",className:"mb-4",children:[(0,t.jsx)("rect",{x:"2",y:"3",width:"20",height:"14",rx:"2",ry:"2"}),(0,t.jsx)("line",{x1:"8",y1:"21",x2:"16",y2:"21"}),(0,t.jsx)("line",{x1:"12",y1:"17",x2:"12",y2:"21"})]}),(0,t.jsx)("h3",{className:"text-lg font-medium text-gray-700 mb-2",children:"No data found"}),s?(0,t.jsx)("p",{className:"text-gray-500 max-w-md",children:s}):e?(0,t.jsx)("p",{className:"text-gray-500 max-w-md",children:"No items match your search criteria. Try adjusting your search terms or clear filters."}):(0,t.jsx)("p",{className:"text-gray-500 max-w-md",children:"There are no items available at the moment. Please check back later."})]})});function ry({data:e,loading:s=!1,emptyMessage:r,searchTerm:a="",renderMobileRow:n,expandedRowIds:o=[],onRowToggle:l,getRowId:i}){return(0,t.jsx)("div",{className:"w-full border-2 border-[#293E99] rounded-2xl overflow-hidden bg-white p-2",children:s?(0,t.jsx)("div",{className:"px-4 py-12 text-center",children:(0,t.jsx)(rd.default,{_size:30,_color:"#60BB46"})}):0===e.length?(0,t.jsx)(rg,{searchTerm:a,customMessage:r}):e.map(e=>{let s=i(e),r=o?.includes(s);return(0,t.jsx)("div",{className:`mb-2 overflow-hidden rounded-xl border border-gray-200 ${l?"cursor-pointer":""}`,onClick:()=>l&&l(s),children:n(e,r)},s)})})}let rj=({label:e,value:s,colorScheme:r="blue",isFirst:a=!1,isLast:n=!1,onClick:o})=>{let l={topLeft:a?"rounded-tl-lg":"",bottomLeft:n?"rounded-bl-lg":"",topRight:a?"rounded-tr-lg":"",bottomRight:n?"rounded-br-lg":""};return(0,t.jsxs)("div",{onClick:o,className:`flex min-h-[33px] items-stretch gap-1 ${!a?"mt-1":""} ${o?"cursor-pointer hover:opacity-90 transition":""}`,children:[(0,t.jsx)("div",{className:`flex items-center justify-start text-white ${"blue"===r?"bg-[#293E99]":"bg-[#60BB46]"} w-[30%] p-2 font-bold text-xs ${l.topLeft} ${l.bottomLeft}`,children:e}),(0,t.jsx)("div",{className:`flex items-center justify-start text-black ${"blue"===r?"bg-[#EAEEFF]":"bg-[#FFF6D4]"} w-[70%] pl-2 font-normal text-xs ${l.topRight} ${l.bottomRight}`,children:s})]})},rw=({children:e})=>(0,t.jsx)("div",{className:"flex flex-row justify-center gap-2 p-2 bg-[#f8f9fa] border-t border-gray-200",children:e});function rv({columns:e,data:s,loading:r=!1,emptyMessage:a,searchTerm:n="",renderRow:o,renderExpandedContent:l,expandedRowIds:i=[],onRowClick:c,getRowId:d,alternateRowColors:u=!0,headerClassName:m="bg-[#293E99] text-white",rowClassName:h=e=>u?e%2==1?"bg-[#FFF6D4]":"bg-[#EAEEFF]":""}){let x=e.map(e=>e.width||"1fr").join(" ");return(0,t.jsxs)("div",{className:"border-2 border-[#293E99] rounded-2xl overflow-hidden bg-white p-2",children:[(0,t.jsx)("div",{className:`px-4 py-4 ${m} rounded-2xl mb-1`,children:(0,t.jsx)("div",{className:"grid font-semibold text-lg",style:{gridTemplateColumns:x},children:e.map((e,s)=>(0,t.jsx)("div",{className:`  text-center px-1 ${0===s?"text-left":"text-center"}`,children:e.title},e.key))})}),r?(0,t.jsx)("div",{className:"px-4 py-12 text-center",children:(0,t.jsx)(rd.default,{_size:30,_color:"#60BB46"})}):0===s.length?(0,t.jsx)(rg,{searchTerm:n,customMessage:a}):s.map((e,s)=>{let r=d(e),a=i?.includes(r);return(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:`px-4 py-3 rounded-2xl mb-1 ${h(s)} ${c?"cursor-pointer":""}`,onClick:()=>c&&c(r),children:(0,t.jsx)("div",{className:"grid items-center",style:{gridTemplateColumns:x},children:o(e,s)})}),a&&l&&(0,t.jsx)("div",{className:"px-4 py-3 rounded-2xl mb-1 bg-white flex justify-center items-center",children:l(e,s)})]},r)})]})}function rN({children:e,className:s="",...r}){return(0,t.jsx)("button",{className:s,...r,children:e})}let rC=async e=>{let t=await fetch("/api/download",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});return await t.json()},r_=async e=>{try{let t=rC(e),s=await t;if("true"==s.has_error)return console.error(s.message),{has_error:"true",message:"Something went wrong",data:""};return t}catch(e){return console.error("Something went wrong",e),new Promise(e=>{e({has_error:"true",message:"Something went wrong",data:""})})}};function rk({initialJobs:e}){let[s,r]=(0,a.useState)(e),[n,l]=(0,a.useState)([]),[i,c]=(0,a.useState)(null),[d,u]=(0,a.useState)(!1),{isAuthenticated:m,user:x,openLoginDialog:p}=(0,h.useAuth)(),{addScoredJob:f}=(0,rb.useScoredJobs)(),{isMobile:b}=function(){let[e,t]=(0,a.useState)(!1),[s,r]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{let e=()=>{t(window.innerWidth<768),r(window.innerWidth>=1024)};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),{isMobile:e,isLargeScreen:s}}(),[g,y]=(0,a.useState)(null),[j,w]=(0,a.useState)(!1),[v,N]=(0,a.useState)([]),[C,_]=(0,a.useState)(null),[k,S]=(0,a.useState)(!1),[E,A]=(0,a.useState)({}),[L,I]=(0,a.useState)({}),[T,O]=(0,a.useState)(!1),[F,R]=(0,a.useState)(!1),P=(0,a.useRef)(0),D=(0,a.useRef)(e),M=(0,a.useRef)(e.map(e=>e.id).join(","));(0,a.useEffect)(()=>{let t=e.map(e=>e.id).join(","),s=t!==M.current;
34M.current=t,s&&(P.current+=1,R(!1),O(!1),A({}),I({})),r(e),D.current=e},[e]);let U=e=>{m?l(t=>t.includes(e)?[]:[e]):p()},q=(0,a.useCallback)(async e=>{if(m&&x&&x.seeker_id)try{A(t=>({...t,[e.id]:!0}));let t=await (0,rh.scoreJob)(e,Number(x.seeker_id));if(t){I(s=>({...s,[e.id]:t})),r(s=>s.map(s=>s.id===e.id?{...s,jobscore:t.score,status:t.job_status,speed:t.job_score_time}:s).sort((e,t)=>{let s=parseInt(e.jobscore,10),r=parseInt(t.jobscore,10),a=!isNaN(s),n=!isNaN(r);return a&&n?r-s:a?-1:+!!n}));let s=parseInt(t.score,10);s>0&&f({id:e.id,title:e.job_position_title||e.title,company:e.job_company_name||"Company",score:s,city:e.job_city||"",location:e.job_location||"",url:e.job_url})}}catch(e){console.error("Error fetching job score:",e)}finally{A(t=>({...t,[e.id]:!1}))}},[m,x]),B=(0,a.useCallback)(async()=>{if(T||F||0===s.length)return;let e=P.current;O(!0),R(!0);try{let t=s.filter(e=>!L[e.id]);if(0===t.length)return;for(let s of t){if(P.current!==e)break;await q(s),await (0,rh.trackScoreDelivery)(1),t.indexOf(s)<t.length-1&&await new Promise(e=>setTimeout(e,50))}}finally{P.current===e&&O(!1)}},[s,L,q,T,F]);(0,a.useEffect)(()=>{m&&x&&x.seeker_id&&!F&&s.length>0&&s.filter(e=>!L[e.id]).length>0&&B()},[m,x,s,L,B,F]),(0,a.useEffect)(()=>()=>{P.current+=1},[]),(0,a.useEffect)(()=>{let e=()=>{P.current+=1,R(!1),O(!1),A({}),I({}),r(e=>e.map(e=>({...e,jobscore:"**",status:"Up",speed:"**"})))};return window.addEventListener(rh.RESCORE_EVENT,e),()=>window.removeEventListener(rh.RESCORE_EVENT,e)},[]);let H=async e=>{if(!m||!x)return void p();S(!0);let t={seeker_id:(0,o.hasAuth)()?(0,o.getAuthData)().seeker_id:5251,job_id:"string"==typeof e.id?parseInt(e.id):e.id};try{let s=await (0,rx.getCustomQuestionData)(t);console.log("Custom questions response:",s),s.slideUp?.data&&(N(s.slideUp.data),_("string"==typeof e.id?parseInt(e.id):e.id),w(!0))}catch(e){console.error("Error fetching custom questions:",e)}finally{S(!1)}},z=(e,t)=>{if(t.stopPropagation(),!m)return void p();c(e.id);let s={score:Number(e.jobscore),jobTitle:e.job_position_title,seeker_id:x?.seeker_id||5251,seekerName:"",companyName:e.job_company_name,userName:x?.jobseeker_name,userContactNumber:x?.jobseeker_phone_number,linkedIn:x?.linkedin_url,imageUrl:x?.profile_image,job_id:"string"==typeof e.id?parseInt(e.id):e.id,cvLink:"",jobUrl:e.job_url};u(!0),r_(s).then(e=>{var t;let r,a=e.data;a&&(t=`${s.userName}${s.jobTitle&&" Scored for "+s.jobTitle}${s.companyName&&" at "+s.companyName}.pdf`,(r=document.createElement("a")).href=a,r.download=t,document.body.appendChild(r),r.click(),document.body.removeChild(r))}).catch(()=>{console.error("Download failed")}).finally(()=>{u(!1),c(null)})},$=e=>!!E[e];function J(e){let t={...e};return delete t.job_url,t}if(b)return(0,t.jsxs)("div",{style:{position:"relative",width:"100%"},children:[(0,t.jsx)(ry,{data:s,searchTerm:"",expandedRowIds:n,onRowToggle:U,getRowId:e=>e.id.toString(),renderMobileRow:(e,s)=>{let r;return r=s||!1,(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(rj,{label:"Job Title",value:e.title,colorScheme:"blue",isFirst:!0}),(0,t.jsx)(rj,{label:"Job Source",value:e.job_posting,colorScheme:"green",isFirst:!0,onClick:()=>y(J(e))}),(0,t.jsx)(rj,{label:"My Jobscore",value:$(e.id)?(0,t.jsx)(rm.default,{size:"sm",width:"41",height:"35",state:"loading",score:m?e.jobscore:"**"}):(0,t.jsx)(rm.default,{size:"sm",width:"41",height:"35",state:"normal",score:m?e.jobscore:"**"}),colorScheme:"blue"}),(0,t.jsx)(rj,{label:"Score Status",value:e.status,colorScheme:"green"}),(0,t.jsx)(rj,{label:"Score Speed",value:e.speed,colorScheme:"blue",isLast:!0}),r&&e.hasActions&&(0,t.jsxs)(rw,{children:[(0,t.jsx)(rN,{className:"bg-green-600 hover:bg-green-700 text-white px-3 py-2 rounded-lg font-semibold text-sm",onClick:t=>{t.stopPropagation(),window.open(e.job_url,"_blank","noopener,noreferrer")},title:"Open job posting on external career site","aria-label":`Link to ${e.job_position_title||e.title}
34 job posting`,"data-entity":"Source Application",children:"Link To Job Post"}),(0,t.jsx)(rN,{className:"bg-green-600 hover:bg-green-700 text-white px-3 py-2 rounded-lg font-semibold text-sm disabled:bg-gray-400",onClick:t=>{t.stopPropagation(),H(e)},disabled:k,children:k?(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(rd.default,{_size:16,_color:"#ffffff"}),(0,t.jsx)("span",{children:"Fetching..."})]}):"Answer Screening Questions"}),(0,t.jsx)(rN,{className:"bg-[#293E99] hover:bg-blue-700 text-white px-3 py-2 rounded-lg font-semibold text-sm",onClick:t=>{t.stopPropagation(),z(e,t)},disabled:i===e.id||d,title:"Generate verified Proof of Awesomeness PDF","aria-label":`Download job score PDF for ${e.job_position_title||e.title}`,children:i===e.id?(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(rd.default,{_size:16,_color:"#ffffff"}),(0,t.jsx)("span",{children:"Downloading..."})]}):"Download Score"}),(0,t.jsx)(rN,{className:"bg-green-600 hover:bg-green-700 text-white px-3 py-2 rounded-lg font-semibold text-sm",onClick:e=>{e.stopPropagation(),window.open("https://geescore.com/zenpeak-pages/","_blank","noopener,noreferrer")},title:"Open career action resources","aria-label":"View action pages and career resources",children:"Action Pages"})]}),W(e)]})},emptyMessage:"No jobs found matching your search criteria."}),j&&(0,t.jsx)("div",{style:{position:"fixed",top:0,right:0,bottom:0,left:0,zIndex:1e3,pointerEvents:j?"auto":"none"},onClick:e=>{e.target===e.currentTarget&&(w(!1),N([]),_(null))},children:(0,t.jsx)("div",{style:{width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.5)",transition:"background 0.3s ease-in-out",display:"flex",justifyContent:"flex-end",alignItems:"flex-start",paddingTop:"20px",paddingRight:"10px"},children:(0,t.jsx)(rf,{isOpen:j,onClose:()=>{w(!1),N([]),_(null)},questions:v,jobpost_id:C,isMobile:!0},C)})})]});function W(e){return g&&g.id===e.id?(0,t.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center",style:{width:"50vw",height:"50vh",alignItems:"center",justifyContent:"center"},children:(0,t.jsxs)("div",{className:"bg-white rounded-lg p-5 w-full max-w-md 
34shadow-lg relative",children:[(0,t.jsx)("h2",{className:"text-lg font-semibold mb-3 text-center",children:"Job Details"}),(0,t.jsx)("pre",{className:"bg-gray-100 p-3 rounded text-sm overflow-auto max-h-72",children:JSON.stringify(g,null,2)}),(0,t.jsx)("div",{className:"flex justify-end mt-3",children:(0,t.jsx)("button",{style:{background:"#ce1313ff"},className:"text-white px-3 py-1 rounded hover:bg-red-600",onClick:()=>y(null),children:"Close"})})]})}):null}return(0,t.jsxs)("div",{style:{position:"relative",display:"flex",alignItems:"flex-start"},children:[(0,t.jsx)("div",{style:{flex:1,position:"relative"},children:(0,t.jsx)(rv,{columns:[{key:"title",title:"Job Title",width:"25%"},{key:"jobSource",title:"Job Source",width:"15%"},{key:"jobscore",title:"My Jobscore",width:"20%"},{key:"status",title:"Score Status",width:"20%"},{key:"speed",title:"Score Speed",width:"20%"}],data:s,searchTerm:"",expandedRowIds:n,onRowClick:U,getRowId:e=>e.id.toString(),emptyMessage:"No jobs found matching your search criteria.",renderRow:e=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"text-[#293E99] font-semibold text-lg",children:e.title}),(0,t.jsx)("div",{className:"text-black text-center",onClick:()=>y(J(e)),children:e.job_posting}),$(e.id)?(0,t.jsx)("div",{className:"flex justify-center",children:(0,t.jsx)(rm.default,{size:"md",width:"41",height:"35",state:"loading",score:m?e.jobscore:"**"})}):(0,t.jsx)("div",{className:"flex justify-center",children:(0,t.jsx)(rm.default,{size:"md",width:"41",height:"35",state:"normal",score:m?e.jobscore:"**"})}),(0,t.jsx)("div",{className:"text-black text-center",children:e.status}),(0,t.jsx)("div",{className:"text-black text-center",children:e.speed}),W(e)]}),renderExpandedContent:e=>e.hasActions?(0,t.jsxs)("div",{className:"flex gap-4 w-full justify-center items-center",children:[(0,t.jsx)(rN,{className:"bg-green-600 hover:bg-green-700 text-white px-6 py-3 rounded-lg font-semibold w-full",onClick:t=>{t.stopPropagation(),window.open(e.job_url,"_blank","noopener,noreferrer")},title:"Open job posting on external career site","aria-label":`Link to ${e.job_position_title||e.title}
34 job posting`,"data-entity":"Source Application",children:"Link To Job Post"}),(0,t.jsx)(rN,{className:"bg-green-600 hover:bg-green-700 text-white px-6 py-3 rounded-lg font-semibold w-full disabled:bg-gray-400",onClick:t=>{t.stopPropagation(),H(e)},disabled:k,children:k?(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(rd.default,{_size:20,_color:"#ffffff"}),(0,t.jsx)("span",{children:"Fetching..."})]}):"Answer Screening Questions"}),(0,t.jsx)(rN,{className:"bg-[#293E99] hover:bg-blue-700 text-white px-6 py-3 rounded-lg font-semibold w-full",onClick:t=>z(e,t),disabled:i===e.id||d,title:"Generate verified Proof of Awesomeness PDF","aria-label":`Download job score PDF for ${e.job_position_title||e.title}`,children:i===e.id?(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(rd.default,{_size:20,_color:"#ffffff"}),(0,t.jsx)("span",{children:"Downloading..."})]}):"Download Score"}),(0,t.jsx)(rN,{className:"bg-green-600 hover:bg-green-700 text-white px-6 py-3 rounded-lg font-semibold w-full",onClick:e=>{e.stopPropagation(),window.open("https://geescore.com/zenpeak-pages/","_blank","noopener,noreferrer")},title:"Open career action resources","aria-label":"View action pages and career resources",rel:"noopener noreferrer",children:"Action Pages"})]}):null})}),(0,t.jsx)("div",{style:{overflow:"hidden",width:j?"350px":"0",transition:"width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94)",marginLeft:"16px",flexShrink:0},children:(0,t.jsx)(rf,{isOpen:j,onClose:()=>{w(!1),N([]),_(null)},questions:v,jobpost_id:C},C)})]})}function rS({initialJobs:e,initialPagination:s,isLoading:r,onPageChange:n,hidePagination:o=!1}){let[l,i]=(0,a.useState)(e),[c,d]=(0,a.useState)(s);return(0,a.useEffect)(()=>{i(e),d(s)},[e,s]),(0,t.jsx)("div",{"data-testid":"jobs-table-with-pagination",className:"w-full",children:r?(0,t.jsxs)("div",{className:"flex justify-center items-center py-20",children:[(0,t.jsx)(rd.default,{_size:40,_color:"#293E99"}),(0,t.jsx)("span",{className:"ml-3 text-lg font-medium text-gray-700",children:"Loading jobs..."})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(rk,{initialJobs:l},`content-${s.page}`),!o&&(l.length>0||c.page>1)&&(0,t.jsx)(ru,{currentPage:c.page,totalPages:c.totalPages,setPage:n,isNextDisabled:!c.hasNextPage,isPrevDisabled:c.page<=1})]})})}function rE({stateAbbreviation:e,state:s,searchQuery:r="",location:n="",searchCondition:l="",initialJobs:i,initialPagination:c}){let{isAuthenticated:d,user:u}=(0,h.useAuth)(),m=(0,o.getAuthData)(),x=(i||[]).map(e=>({...e,id:e.id?e.id.toString():String(Math.random()),title:e.job_position_title||"Untitled Job",jobscore:e.job_score_time||"**",status:e.status||"Up",speed:e.speed||"**",job_url:e.job_url||"#",hasActions:!0})),[p,f]=(0,a.useState)(r),[b,g]=(0,a.useState)(n),[y,j]=(0,a.useState)(l),[w,v]=(0,a.useState)(1);(0,a.useEffect)(()=>{f(r),g(n),j(l),v(1)},[r,n,l]);let[N,C]=(0,a.useState)(x),[_,k]=(0,a.useState)(c||{page:1,pageSize:10,totalItems:0,totalPages:0,hasNextPage:!1}),[S,E]=(0,a.useState)(!i||0===i.length),[A,L]=(0,a.useState)(null),[I,T]=(0,a.useState)(!1),O=(0,a.useRef)(!!i&&i.length>0),F=(0,rc.useDebounce)(p,500),R=(0,rc.useDebounce)(b,500),P=(0,rc.useDebounce)(y,500),D=(0,a.useRef)(null),M=(0,a.useCallback)(async()=>{E(!0),L(null),D.current&&D.current.abort();let e=new AbortController;D.current=e;try{let t=await (0,ri.fetchJobs)({state:s,jobTitle:F,location:R,searchCondition:d?P:"",limit:5,pageNumber:w,authToken:m.access_token,seekerId:u?.seeker_id?Number(u.seeker_id):m.seeker_id});if(e.signal.aborted)return;
34let r=Array.isArray(t.jobs)?t.jobs.map(e=>({...e,id:e.id?e.id.toString():String(Math.random()),title:e.job_position_title||"Untitled Job",jobscore:e.job_score_time||"**",status:e.status||"Up",speed:e.speed||"**",job_url:e.job_url||"#",hasActions:!0,job_filepath:e.job_filepath,job_position_title:e.job_position_title,job_position_description:e.job_position_description,job_location:e.job_location,job_city:e.job_city,job_state:e.job_state,job_country:e.job_country,job_salary:e.job_salary,job_min_salary:e.job_min_salary,job_max_salary:e.job_max_salary,job_type:e.job_type,job_company_name:e.job_company_name,created_at:e.created_at,job_entry_date:e.job_entry_date,job_prompt_parser:e.job_prompt_parser})):[];C(r),k(t.pagination),T(!!t.aiFallback)}catch(e){if(e instanceof Error&&"AbortError"===e.name)return void console.log("Fetch aborted");console.error("Error fetching jobs:",e),L("Failed to load jobs. Please try again later."),C([]),T(!1),k({page:w,pageSize:10,totalItems:0,totalPages:0,hasNextPage:!1})}finally{D.current!==e||e.signal.aborted||E(!1)}},[F,R,P,w,s,d,m.access_token,m.seeker_id,u?.seeker_id]),U=(0,a.useRef)({jobTitle:"",location:"",searchCondition:"",page:1,state:s});(0,a.useEffect)(()=>{if(O.current&&1===w&&!F&&!R&&!P){O.current=!1;return}(U.current.jobTitle!==F||U.current.location!==R||U.current.searchCondition!==P)&&1!==w?v(1):(U.current={jobTitle:F,location:R,searchCondition:P,page:w,state:s},M())},[F,R,P,w,s,M]),(0,a.useEffect)(()=>()=>{D.current&&D.current.abort()},[]);let q=d&&!!P&&!I;return(0,t.jsxs)("div",{"data-testid":"jobs-table-container",className:"w-full mx-auto",children:[(0,t.jsx)("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3 mb-4",children:(0,t.jsx)("h2",{className:"text-2xl sm:text-3xl font-bold text-[#000066] font-Inter",children:s?`Featured Jobs in ${e}`:"Featured Jobs"})}),A?(0,t.jsx)("div",{className:"p-8 text-center",children:(0,t.jsx)("p",{className:"text-red-500",children:A})}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(rl.default,{visible:I&&!S,query:P}),(0,t.jsx)(rS,{initialJobs:N,initialPagination:_,isLoading:S,onPageChange:e=>{v(e)},hidePagination:q})]})]})}var rA=e.i(167881),rL=e.i(970065),rI=e.i(23750),rT=e.i(62870),rO=e.i(987398),rF=e.i(823690);async function rR(){let e=await fetch("/api/job-categories");if(!e.ok)throw Error("Failed to fetch categories");return e.json()}function rP({initialParams:e={},onSearch:s,showAiSearch:r=!0,locationPlaceholder:n="Location (city, state, or remote)",className:o="",isAuthenticated:l=!1,stateName:i,skipAiSearchAuthCheck:c=!1}){let{openLoginDialog:d}=(0,h.useAuth)(),[u,m]=(0,a.useState)(e.aiSearch||""),[x,p]=(0,a.useState)(e.companyName||""),[f,b]=(0,a.useState)(e.jobTitle||""),[g,y]=(0,a.useState)(e.category||""),[j,w]=(0,a.useState)(e.location||""),[v,N]=(0,a.useState)(!1),{data:C=[]}=(0,rF.useQuery)({queryKey:["jobCategories"],queryFn:rR,staleTime:3e5}),_=(0,a.useCallback)(e=>{(e&&e.preventDefault(),!u||l||c)?(N(!1),s({aiSearch:l||c?u:"",companyName:x,jobTitle:f,category:g,location:j})):N(!0)},[u,l,c,x,f,g,j,s]);return(0,t.jsx)(rL.Card,{"data-testid":"job-search-bar",className:`p-6 ${o}`,children:(0,t.jsxs)("form",{"data-testid":"job-search-form",onSubmit:_,className:"flex flex-col gap-4",children:[r&&(0,t.jsxs)("div",{className:"w-full",children:[(0,t.jsxs)("label",{htmlFor:"ai-search",className:"block text-sm font-medium text-gray-700 mb-2",children:["AI Search",!l&&(0,t.jsx)("span",{className:"text-xs text-gray-500 ml-2",children:"(Login required)"})]}),(0,t.jsx)(rI.Input,{id:"ai-search","data-testid":"ai-search-input",type:"text",placeholder:i?`Ask our Suitability AI to match your resume to ${i} career destinations`:'AI Search - e.g "find me a local job that fits my skills and experience"',value:u,onChange:e=>{m(e.target.value),v&&N(!1)},className:"w-full",name:"ai_search"}),(0,t.jsx)("p",{className:"mt-1 text-xs text-gray-500",children:"Powered by AI Suitability Scoring"}),v&&(0,t.jsx)("div",{className:"mt-2 p-3 bg-amber-50 border border-amber-200 rounded-md",children:(0,t.jsxs)("p",{className:"text-sm text-amber-800",children:["Please"," ",(0,t.jsx)("button",{type:"button",onClick:()=>d("login"),className:"font-semibold text-amber-900 underline hover:text-amber-700",children:"log in"})," ","or"," ",(0,t.jsx)("button",{type:"button",onClick:()=>d("signup"),className:"font-semibold text-amber-900 underline hover:text-amber-700",children:"create an account"})," ","to use AI Search."]})})]}),(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"company-name",className:"block text-sm font-medium text-gray-700 mb-2",children:"Company Name"}),(0,t.jsx)(rI.Input,{id:"company-name","data-testid":"company-name-input",type:"text",placeholder:"Enter company name",value:x,onChange:e=>p(e.target.value),className:"w-full",name:"company_name"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"job-title",className:"block text-sm font-medium text-gray-700 mb-2",children:"Job Title"}),(0,t.jsx)(rI.Input,{id:"job-title","data-testid":"job-title-input",type:"text",placeholder:"Enter job title",value:f,onChange:e=>b(e.target.value),className:"w-full",name:"job_title"})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,t.jsx)("label",{htmlFor:"category",className:"block text-sm font-medium text-gray-700",children:"Category"}),g&&(0,t.jsxs)("button",{type:"button","data-testid":"category-clear-button",onClick:()=>y(""),className:"inline-flex items-center gap-1 text-xs text-gray-500 hover:text-gray-700",children:["Clear",(0,t.jsx)("span",{"aria-hidden":"true",children:"✕"})]})]}),(0,t.jsxs)(rT.Select,{value:g,onValueChange:y,children:[(0,t.jsx)(rT.SelectTrigger,{id:"category","data-testid":"category-select",className:"w-full",children:(0,t.jsx)(rT.SelectValue,{placeholder:"Select category e.g sales"})}),(0,t.jsx)(rT.SelectContent,{children:C.map(e=>(0,t.jsx)(rT.SelectItem,{value:e,children:e},e))})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"location",className:"block text-sm font-medium text-gray-700 mb-2",children:"Location"}),(0,t.jsx)(rI.Input,{id:"location","data-testid":"location-input",type:"text",placeholder:n,value:j,onChange:e=>w(e.target.value),className:"w-full",name:"location"})]})]}),(0,t.jsxs)(rA.Button,{"data-testid":"search-submit-button",type:"submit",size:"lg",className:"w-full md:w-auto bg-[rgb(96,187,70)] hover:bg-[rgb(86,167,60)] text-white",children:[(0,t.jsx)(rO.MagnifyingGlassIcon,{className:"h-5 w-5 mr-2","aria-hidden":"true"}),"Search"]})]})})}function rD({onSearchChange:e,initialParams:s={},skipAiSearchAuthCheck:r=!1}){let n=(0,ro.useParams)(),o=n?.state,{isAuthenticated:l}=(0,h.useAuth)(),i=o?`Enter location within ${o.split(/[-_]/).map(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join(" ")}`:"Location (city, state, or remote)",c=(0,a.useCallback)(t=>{e(t)},[e]);return(0,t.jsx)(rP,{initialParams:s,onSearch:c,showAiSearch:!0,locationPlaceholder:i,className:"mb-6",isAuthenticated:l,skipAiSearchAuthCheck:r})}
34function rM({name:e,image:s,subtitle:r,description:a,ctaText:n,ctaLink:o}){return(0,t.jsxs)("div",{className:"bg-[#f5f5f5] rounded-lg p-6 flex flex-col h-full",children:[(0,t.jsxs)("div",{className:"flex gap-5 flex-1",children:[(0,t.jsx)("img",{src:s,className:"rounded-lg w-[120px] h-auto object-cover self-start shrink-0",alt:e}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"mb-1 text-[22px] font-bold leading-7",children:e}),(0,t.jsx)("p",{className:"text-gray-400 mb-2 text-sm",children:r}),(0,t.jsx)("p",{className:"text-sm leading-relaxed",children:a})]})]}),(0,t.jsx)("a",{href:`/go?url=${encodeURIComponent(o)}&utm_source=myjobscore&utm_medium=referral&utm_campaign=${encodeURIComponent(e.toLowerCase().replace(/\s+/g,"-"))}`,target:"_blank",rel:"noopener noreferrer",className:"bg-[#2DC100] hover:bg-[#28ad00] text-white font-semibold text-sm text-center rounded-lg w-full mt-4 block py-3",children:n})]})}var rU=e.i(71820),rq=e.i(4717);let rB=(0,rq.default)("facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]]),rH=(0,rq.default)("instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]]),rz=(0,rq.default)("linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]]),r$=(0,rq.default)("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]);var rJ=e.i(322046);let rW=(0,rq.default)("rss",[["path",{d:"M4 11a9 9 0 0 1 9 9",key:"pv89mb"}],["path",{d:"M4 4a16 16 0 0 1 16 16",key:"k0647b"}],["circle",{cx:"5",cy:"19",r:"1",key:"bfqh0e"}]]),rV=(0,rq.default)("twitter",[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]]),rG=(0,rq.default)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),rQ=[{icon:r$,label:"[email protected]",href:"mailto:[email protected]"},{icon:rJ.MessageCircle,label:"416 302-4475 (text, cell, or WhatsApp)",href:"https://wa.me/14163024475"},{icon:rz,label:"LinkedIn",href:"https://www.linkedin.com/company/geescore/"},{icon:rW,label:"Substack",href:"https://geescore.substack.com/?utm_campaign=profile_chips"},{icon:rV,label:"X / Twitter",href:"https://x.com/geescore"},{icon:rH,label:"Instagram",href:"https://www.instagram.com/Geescore"},{icon:rB,label:"Facebook",href:"https://www.facebook.com/people/Geescore/100065457701223/"}];function rK(){let[e,s]=(0,a.useState)(!1);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"bg-[#f5f5f5] rounded-lg p-6 flex flex-col h-full",children:[(0,t.jsxs)("div",{className:"flex gap-5 flex-1",children:[(0,t.jsx)("div",{className:"w-[120px] h-[120px] rounded-lg bg-gray-300 shrink-0 flex items-center justify-center",children:(0,t.jsxs)("svg",{width:"60",height:"60",viewBox:"0 0 24 24",fill:"none",className:"text-gray-400",children:[(0,t.jsx)("circle",{cx:"12",cy:"8",r:"4",fill:"currentColor"}),(0,t.jsx)("path",{d:"M4 20c0-3.314 3.582-6 8-6s8 2.686 8 6",fill:"currentColor"})]})}),(0,t.jsxs)("div",{className:"flex-1 flex flex-col",children:[(0,t.jsx)("p",{className:"mb-1 text-[22px] font-bold leading-7 text-gray-600",children:"This could be you!"}),(0,t.jsx)("p",{className:"text-gray-400 mb-2 text-sm",children:"Share your expertise with jobseekers"}),(0,t.jsxs)("div",{className:"flex-1 flex flex-col gap-1.5",children:[(0,t.jsx)("div",{className:"h-3 w-full bg-gray-200 rounded"}),(0,t.jsx)("div",{className:"h-3 w-11/12 bg-gray-200 rounded"}),(0,t.jsx)("div",{className:"h-3 w-full bg-gray-200 rounded"}),(0,t.jsx)("div",{className:"h-3 w-10/12 bg-gray-200 rounded"}),(0,t.jsx)("div",{className:"h-3 w-full bg-gray-200 rounded"}),(0,t.jsx)("div",{className:"h-3 w-10/12 bg-gray-200 rounded"}),(0,t.jsx)("div",{className:"h-3 w-full bg-gray-200 rounded"}),(0,t.jsx)("div",{className:"h-3 w-10/12 bg-gray-200 rounded"}),(0,t.jsx)("div",{className:"h-3 w-full bg-gray-200 rounded"}),(0,t.jsx)("div",{className:"h-3 w-9/12 bg-gray-200 rounded"}),(0,t.jsx)("div",{className:"h-3 w-full bg-gray-200 rounded"})]})]})]}),(0,t.jsx)("button",{type:"button",onClick:()=>s(!0),className:"bg-[#2DC100] hover:bg-[#28ad00] text-white font-semibold text-sm text-center rounded-lg w-full mt-4 block py-3 cursor-pointer",children:"Contact us"})]}),(0,t.jsx)(rU.Root,{open:e,onOpenChange:s,children:(0,t.jsxs)(rU.Portal,{children:[(0,t.jsx)(rU.Overlay,{className:"fixed inset-0 z-[2000] bg-black/50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"}),(0,t.jsxs)(rU.Content,{className:"fixed left-1/2 top-1/2 z-[2001] w-[92vw] max-w-md -translate-x-1/2 -translate-y-1/2 roun
34ded-xl bg-white p-6 shadow-2xl focus:outline-none 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",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between mb-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(rU.Title,{className:"text-xl font-bold text-gray-900",children:"Contact us"}),(0,t.jsx)(rU.Description,{className:"text-sm text-gray-500 mt-1",children:"Reach out through any of the channels below."})]}),(0,t.jsx)(rU.Close,{"aria-label":"Close",className:"text-gray-400 hover:text-gray-600 rounded cursor-pointer",children:(0,t.jsx)(rG,{size:20})})]}),(0,t.jsx)("ul",{className:"flex flex-col gap-2",children:rQ.map(({icon:e,label:s,href:r})=>(0,t.jsx)("li",{children:(0,t.jsxs)("a",{href:r,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-3 rounded-lg px-3 py-3 text-sm text-gray-700 hover:bg-gray-100 transition-colors",children:[(0,t.jsx)(e,{size:20,className:"text-[#2DC100] shrink-0"}),(0,t.jsx)("span",{className:"truncate",children:s})]})},r))})]})]})})]})}function rY({stateName:e,stateAbbreviation:s,countryCode:r,stateSlug:n,citySlug:o,initialJobs:l,initialPagination:i,defaultLocation:c="",mapSection:d,afterSearch:u,jobsStateOverride:m}){let[h,x]=(0,a.useState)(!1),[p,f]=(0,a.useState)(!0),[b,g]=(0,a.useState)({aiSearch:"",companyName:"",jobTitle:"",category:"",location:c});(0,a.useEffect)(()=>{g(e=>({...e,location:c}))},[c]);let y=(0,ro.useSearchParams)().get("ref");y&&rn.Mixpanel.once("utm_campaign",{campaign:y}),(0,a.useEffect)(()=>{let e=e=>{(e.ctrlKey||e.metaKey)&&e.altKey&&("g"===e.key.toLowerCase()||"©"===e.key.toLowerCase())&&(e.preventDefault(),x(e=>!e),f(e=>!e))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[]);let j=[b.jobTitle,b.companyName,b.category].filter(Boolean).join(" ");return(0,t.jsxs)("section",{"data-testid":"toggle-wrapper",className:"mb-[27px]",children:[(0,t.jsx)(rD,{onSearchChange:e=>{g(e)},initialParams:b}),p&&(0,t.jsx)("div",{"data-testid":"jobs-table-section",className:"mb-6",children:(0,t.jsx)(rE,{state:void 0!==m?m:n?e.toLowerCase():"",stateAbbreviation:s,searchQuery:j,location:b.location,searchCondition:b.aiSearch,initialJobs:l,initialPagination:i})}),u,d,h&&(0,t.jsx)("div",{className:"mb-6",children:(0,t.jsx)(rr,{})}),n&&(()=>{let{sponsors:e,showPlaceholder:s,maxCards:a}=function(e,t,s){let{defaults:r,sponsors:a,locations:n}=ra.default,o=[],l=e.toLowerCase();s&&t&&o.push(`${l}/${t}/${s}`),t&&o.push(`${l}/${t}`),o.push(l);let i=r.maxCards,c=r.showPlaceholder;for(let e of o){let t=n[e];t&&(void 0!==t.maxCards&&i===r.maxCards&&(i=t.maxCards),void 0!==t.showPlaceholder&&c===r.showPlaceholder&&(c=t.showPlaceholder))}let d=new Set,u=[];for(let e of o){let t=n[e];if(t?.sponsors)for(let e of t.sponsors){if(d.has(e)||u.length>=i)continue;let t=a[e];t&&(d.add(e),u.push(t))}}return{sponsors:u,showPlaceholder:c,maxCards:i}}(r,n,o),l=s&&e.length<a;return 0!==e.length||l?(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[e.map(e=>(0,t.jsx)(rM,{name:e.name,image:e.image,subtitle:e.subtitle,description:e.description,ctaText:e.ctaText,ctaLink:e.ctaLink},e.name)),l&&(0,t.jsx)(rK,{})]}):null})()]})}function rZ({geoCities:e,stateCenter:s,fixedCityName:o,citySlug:l,stateName:i,stateAbbreviation:c,countryCode:d,stateSlug:u,initialJobs:m,initialPagination:h,afterSearch:x,jobsStateOverride:p}){let{citiesWithJobs:f,isLoading:b}=function(e){let[t,s]=(0,a.useState)([]),[n,o]=(0,a.useState)(!0),l=(0,a.useRef)(null);return(0,a.useEffect)(()=>{l.current!==e&&(l.current=e,o(!0),s([]),r(e).then(s).catch(e=>console.error("Error fetching cities with jobs:",e)).finally(()=>o(!1)))},[e]),{citiesWithJobs:t,isLoading:n}}(i),g=(0,a.useMemo)(()=>e.filter(e=>e.latitude&&e.longitude).map(e=>{let t=f.find(t=>t.cityName.toLowerCase()===e.name.toLowerCase());return{...e,jobCount:t?.jobCount??0}}).sort((e,t)=>t.jobCount-e.jobCount),[e,f]),y=(0,a.useMemo)(()=>o||(b?null:(0,n.findNearestCitiesWithJobs)(g,s)[0]?.name??null),[o,b,g,s]),[w,v]=(0,a.useState)(null),N=(0,a.useCallback)(e=>{v(e)},[]),C=e.length>0?(0,t.jsx)(j,{citiesForMap:g,stateCenter:s,stateSlug:u,countryCode:d,selectedCityName:w??o??y,onCitySelect:N,citiesDataReady:!b,isCityPage:!!o}):null;return(0,t.jsx)(rY,{stateName:i,stateAbbreviation:c,countryCode:d,stateSlug:u,citySlug:l,initialJobs:m,initialPagination:h,defaultLocation:w??o??"",mapSection:C,afterSearch:x,jobsStateOverride:p})}e.s(["default",()=>rZ],380696)}]);

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.