1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8142],{46538:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/jobs",function(){return a(57494)}])},31111:function(e,t,a){"use strict";a.d(t,{Z:function(){return d}});var s=a(85893);a(67294);var r=a(49240);let l={idle:{cx:258,cy:120,r:6,hx:259.5,hy:118.5,hr:2,shape:"circle"},happy:{cx:258,cy:120,r:5.5,hx:259.5,hy:119,hr:1.5,shape:"squint"},thinking:{cx:260,cy:118,r:6,hx:262,hy:116.5,hr:2,shape:"circle"},searching:{cx:256,cy:120,r:6.5,hx:254,hy:118.5,hr:2,shape:"wide"},celebrating:{cx:258,cy:120,r:5,hx:259,hy:119,hr:1.5,shape:"squint"},sad:{cx:258,cy:121,r:5.5,hx:259,hy:120,hr:1.5,shape:"circle"},sleeping:{cx:258,cy:120,r:5,hx:259,hy:119,hr:0,shape:"closed"},proud:{cx:258,cy:119,r:6.5,hx:260,hy:117,hr:2.5,shape:"circle"},waving:{cx:258,cy:120,r:6,hx:259.5,hy:118.5,hr:2,shape:"circle"},coding:{cx:258,cy:120,r:5,hx:259.5,hy:119,hr:1.5,shape:"squint"},love:{cx:258,cy:120,r:6,hx:259,hy:118,hr:0,shape:"heart"}},n={idle:"",happy:"rotate(-3deg)",thinking:"rotate(4deg) translateY(-2px)",searching:"rotate(-2deg) translateX(-3px)",celebrating:"rotate(-6deg) translateY(-4px)",sad:"rotate(5deg) translateY(3px)",sleeping:"rotate(8deg) translateY(4px)",proud:"rotate(-4deg) translateY(-3px) scale(1.02)",waving:"rotate(-5deg)",coding:"rotate(2deg) translateY(-1px)",love:"rotate(-3deg) scale(1.03)"},i={idle:!1,happy:!0,thinking:!1,searching:!1,celebrating:!0,sad:!1,sleeping:!1,proud:!1,waving:!0,coding:!1,love:!0},o={idle:"crane-idle",happy:"crane-happy",thinking:"crane-thinking",searching:"crane-searching",celebrating:"crane-celebrating",sad:"crane-sad",sleeping:"crane-sleeping",proud:"crane-proud",waving:"crane-waving",coding:"crane-thinking",love:"crane-happy"},c={sm:{wrapper:"w-16 h-16",caption:"text-xs mt-1"},md:{wrapper:"w-24 h-24",caption:"text-sm mt-2"},lg:{wrapper:"w-32 h-32",caption:"text-sm mt-2"},xl:{wrapper:"w-40 h-40",caption:"text-base mt-3"}};function d(e){let{mood:t="idle",className:a="",fill:d="#FF4500",caption:u,captionClass:m="",size:p="md",showBg:g=!1}=e,h=l[t],x=n[t],b=i[t],f=o[t],y=c[p],v="#1C1C1C";return(0,s.jsxs)("div",{className:"flex flex-col items-center ".concat(a),children:[(0,s.jsxs)("div",{className:"".concat(y.wrapper," ").concat(f," relative"),children:[g&&(0,s.jsx)("div",{className:"absolute inset-0 rounded-full bg-[#EDEFF1] dark:bg-[#343536]"}),(0,s.jsxs)("svg",{viewBox:"23 95 330 345",className:"w-full h-full relative z-10",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",style:{transform:x,transition:"transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1)"},children:[(0,s.jsx)("path",{d:r.y,transform:"translate(266,117)",fill:d}),(0,s.jsx)("svg",{x:"255",y:"102",width:"92",height:"47",viewBox:"255 102 92 47",children:(0,s.jsx)("path",{d:r.y,transform:"translate(266,117)",fill:"#CC3700"})}),"closed"===h.shape?(0,s.jsx)("line",{x1:h.cx-5,y1:h.cy,x2:h.cx+5,y2:h.cy,stroke:v,strokeWidth:"2.5",strokeLinecap:"round"}):"squint"===h.shape?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("path",{d:"M".concat(h.cx-5," ").concat(h.cy+1," Q").concat(h.cx," ").concat(h.cy-5," ").concat(h.cx+5," ").concat(h.cy+1),stroke:v,strokeWidth:"2.5",strokeLinecap:"round",fill:"none"}),h.hr>0&&(0,s.jsx)("circle",{cx:h.hx,cy:h.hy,r:.8*h.hr,fill:"white",opacity:"0.7"})]}):"heart"===h.shape?(0,s.jsx)("g",{transform:"translate(".concat(h.cx-5,", ").concat(h.cy-5,")"),children:(0,s.jsx)("path",{d:"M5 9 C5 9 0 5 0 3 C0 1 1.5 0 2.5 0 C3.5 0 5 1.5 5 3 C5 1.5 6.5 0 7.5 0 C8.5 0 10 1 10 3 C10 5 5 9 5 9Z",fill:"#EA0027"})}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("circle",{cx:h.cx,cy:h.cy,r:h.r,fill:v}),h.hr>0&&(0,s.jsx)("circle",{cx:h.hx,cy:h.hy,r:h.hr,fill:"white"})]}),b&&(0,s.jsx)("circle",{cx:242,cy:135,r:8,fill:"#FF4500",opacity:"0.12"}),"thinking"===t&&(0,s.jsx)("line",{x1:254,y1:112,x2:264,y2:110,stroke:v,strokeWidth:"1.5",strokeLinecap:"round",opacity:"0.4"}),"sad"===t&&(0,s.jsx)("line",{x1:253,y1:114,x2:263,y2:112,stroke:v,strokeWidth:"1.5",strokeLinecap:"round",opacity:"0.35"}),"proud"===t&&(0,s.jsx)("line",{x1:253,y1:111,x2:263,y2:111,stroke:v,strokeWidth:"1.5",strokeLinecap:"round",opacity:"0.3"}),"coding"===t&&(0,s.jsxs)("g",{opacity:"0.25",stroke:v,strokeWidth:"1",fill:"none",children:[(0,s.jsx)("circle",{cx:255,cy:120,r:7}),(0,s.jsx)("line",{x1:262,y1:120,x2:265,y2:120})]}),"sleeping"===t&&(0,s.jsxs)("g",{opacity:"0.4",fill:v,children:[(0,s.jsx)("text",{x:"270",y:"108",fontSize:"12",fontWeight:"bold",fontFamily:"sans-serif",children:"z"}),(0,s.jsx)("text",{x:"280",y:"100",fontSize:"9",fontWeight:"bold",fontFamily:"sans-serif",children:"z"}),(0,s.jsx)("text",{x:"287",y:"94",fontSize:"7",fontWeight:"bold",fontFamily:"sans-serif",children:"z"})]}),"love"===t&&(0,s.jsxs)("g",{opacity:"0.4",children:[(0,s.jsx)("text",{x:"270",y:"105",fontSize:"10",fontFamily:"sans-serif",children:"â¤"}),(0,s.jsx)("text",{x:"282",y:"98",fontSize:"7",fontFamily:"sans-serif",children:"â¤"})]})]})]}),u&&(0,s.jsx)("p",{className:"text-center font-medium ".concat(y.caption," ").concat(m),children:u})]})}},26915:function(e,t,a){"use strict";a.d(t,{Cv:function(){return d},Ki:function(){return u},V3:function(){return m}});var s,r=a(34155);let l={debug:10,info:20,warn:30,error:40,fatal:50},n=null!==(s=l[r.env.LOG_LEVEL||"info"])&&void 0!==s?s:l.info,i=null,o=/^(password|token|secret|api[_-]?key|authorization|cookie|stripe[_-]?key|otp|nextauth[_-]?secret|webhook[_-]?secret)/i;function c(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(l[e]<n)return;let s=function e(t){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(a>4)return{_truncated:!0};let s={};for(let[r,l]of Object.entries(t))o.test(r)?s[r]="[REDACTED]":!l||"object"!=typeof l||Array.isArray(l)||l instanceof Error||l instanceof Date?s[r]=l:s[r]=e(l,a+1);return s}(a);{let a=JSON.stringify({ts:new Date().toISOString(),level:e,event:t,...s})+"\n";void 0!==r&&r.stdout&&"function"==typeof r.stdout.write?r.stdout.write(a):console.log(a)}if("error"===e||"fatal"===e){let l=r.env.SENTRY_DSN?(i||(i=Function("m","return import(m)")("@sentry/nextjs").then(e=>e).catch(()=>null)),i):null;l&&l.then(r=>{if(!r)return;let l=a.err instanceof Error?a.err:null;l?r.captureException(l,{extra:s,tags:{event:t}}):r.captureMessage(t,{level:"fatal"===e?"fatal":"error",extra:s})}).catch(()=>{})}}!function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=e=>({...t,...e||{}}),s=e=>(t,s,r)=>{s instanceof Error?c(e,t,a({...r||{},err:s,err_message:s.message,err_stack:s.stack,err_name:s.name})):c(e,t,a(s))};return{debug:(e,t)=>c("debug",e,a(t)),info:(e,t)=>c("info",e,a(t)),warn:(e,t)=>c("warn",e,a(t)),error:s("error"),fatal:s("fatal"),child:a=>e({...t,...a})}}();let d=function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a]},u=function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a]},m=function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a]}},83989:function(e,t,a){"use strict";a.d(t,{Z:function(){return s}});let s=(0,a(63759).Z)("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},23488:function(e,t,a){"use strict";a.d(t,{Z:function(){return s}});let s=(0,a(63759).Z)("Award",[["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}],["path",{d:"M15.477 12.89 17 22l-5-3-5 3 1.523-9.11",key:"em7aur"}]])},23346:function(e,t,a){"use strict";a.d(t,{Z:function(){return s}});let s=(0,a(63759).Z)("Calendar",[["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",ry:"2",key:"eu3xkr"}],["line",{x1:"16",x2:"16",y1:"2",y2:"6",key:"m3sa8f"}],["line",{x1:"8",x2:"8",y1:"2",y2:"6",key:"18kwsl"}],["line",{x1:"3",x2:"21",y1:"10",y2:"10",key:"xt86sb"}]])},60493:function(e,t,a){"use strict";a.d(t,{Z:function(){return s}});let s=(0,a(63759).Z)("CheckCircle",[["path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14",key:"g774vq"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])},50039:function(e,t,a){"use strict";a.d(t,{Z:function(){return s}});let s=(0,a(63759).Z)("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]])},46111:function(e,t,a){"use strict";a.d(t,{Z:function(){return s}});let s=(0,a(63759).Z)("DollarSign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]])},15928:function(e,t,a){"use strict";a.d(t,{Z:function(){return s}});let s=(0,a(63759).Z)("Eye",[["path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z",key:"rwhkz3"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},47935:function(e,t,a){"use strict";a.d(t,{Z:function(){return s}});let s=(0,a(63759).Z)("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]])},82591:function(e,t,a){"use strict";a.d(t,{Z:function(){return s}});let s=(0,a(63759).Z)("GraduationCap",[["path",{d:"M22 10v6M2 10l10-5 10 5-10 5z",key:"1ef52a"}],["path",{d:"M6 12v5c3 3 9 3 12 0v-5",key:"1f75yj"}]])},86691:function(e,t,a){"use strict";a.d(t,{Z:function(){return s}});let s=(0,a(63759).Z)("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]])},3350:function(e,t,a){"use strict";a.d(t,{Z:function(){return s}});let s=(0,a(63759).Z)("MapPin",[["path",{d:"M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z",key:"2oe9fu"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]])},44976:function(e,t,a){"use strict";a.d(t,{Z:function(){return s}});let s=(0,a(63759).Z)("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},36127:function(e,t,a){"use strict";a.d(t,{Z:function(){return s}});let s=(0,a(63759).Z)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]])},72278:function(e,t,a){"use strict";a.d(t,{Z:function(){return s}});let s=(0,a(63759).Z)("ShieldCheck",[["path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10",key:"1irkt0"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},32203:function(e,t,a){"use strict";a.d(t,{Z:function(){return s}});let s=(0,a(63759).Z)("Wifi",[["path",{d:"M5 13a10 10 0 0 1 14 0",key:"6v8j51"}],["path",{d:"M8.5 16.5a5 5 0 0 1 7 0",key:"sej527"}
1],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["line",{x1:"12",x2:"12.01",y1:"20",y2:"20",key:"of4bc4"}]])},9475:function(e,t,a){"use strict";a.d(t,{Z:function(){return s}});let s=(0,a(63759).Z)("XCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]])},57494:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return ep}});var s=a(85893),r=a(67294),l=a(73935),n=a(86501),i=a(67694),o=a(3350),c=a(23346),d=a(72278),u=a(63759);let m=(0,u.Z)("ShieldX",[["path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10",key:"1irkt0"}],["path",{d:"m14.5 9-5 5",key:"1m49dw"}],["path",{d:"m9.5 9 5 5",key:"wyx7zg"}]]),p=(0,u.Z)("BookmarkCheck",[["path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2Z",key:"169p4p"}],["path",{d:"m9 10 2 2 4-4",key:"1gnqz4"}]]),g=(0,u.Z)("Bookmark",[["path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z",key:"1fy3hk"}]]);var h=a(32203),x=a(42020),b=a(39889),f=a(50039),y=a(46111),v=a(82591),j=a(15928),k=a(60493),w=a(83989),N=a(33299),F=a(11163);let C=[{skill:"JavaScript",aliases:["javascript","js","ecmascript"]},{skill:"TypeScript",aliases:["typescript","ts"]},{skill:"Python",aliases:["python","python3","py"]},{skill:"Java",aliases:["java"]},{skill:"C#",aliases:["c#","csharp","c-sharp"]},{skill:"C++",aliases:["c++","cpp"]},{skill:"C",aliases:[]},{skill:"Golang",aliases:["golang","go lang","go programming"]},{skill:"Rust",aliases:["rust","rustlang"]},{skill:"Ruby",aliases:["ruby"]},{skill:"PHP",aliases:["php"]},{skill:"Swift",aliases:["swift"]},{skill:"Kotlin",aliases:["kotlin"]},{skill:"Scala",aliases:["scala"]},{skill:"R",aliases:["r lang","r-lang"]},{skill:"MATLAB",aliases:["matlab"]},{skill:"Perl",aliases:["perl"]},{skill:"Haskell",aliases:["haskell"]},{skill:"Elixir",aliases:["elixir"]},{skill:"Clojure",aliases:["clojure"]},{skill:"Dart",aliases:["dart"]},{skill:"Objective-C",aliases:["objective-c","objc","obj-c"]},{skill:"React",aliases:["react","reactjs","react.js"]},{skill:"Vue.js",aliases:["vue","vuejs","vue.js"]},{skill:"Angular",aliases:["angular","angularjs"]},{skill:"Next.js",aliases:["next.js","nextjs"]},{skill:"Nuxt.js",aliases:["nuxt.js","nuxtjs"]},{skill:"Svelte",aliases:["svelte","sveltekit"]},{skill:"Redux",aliases:["redux"]},{skill:"MobX",aliases:["mobx"]},{skill:"Zustand",aliases:["zustand"]},{skill:"jQuery",aliases:["jquery"]},{skill:"Backbone.js",aliases:["backbone","backbonejs"]},{skill:"Ember.js",aliases:["ember","emberjs"]},{skill:".NET",aliases:[".net","dotnet","dot net"]},{skill:".NET Core",aliases:[".net core","dotnet core"]},{skill:"ASP.NET",aliases:["asp.net","aspnet"]},{skill:"Entity Framework",aliases:["entity framework","ef","ef core"]},{skill:"LINQ",aliases:["linq"]},{skill:"WPF",aliases:["wpf"]},{skill:"WCF",aliases:["wcf"]},{skill:"Blazor",aliases:["blazor"]},{skill:"MAUI",aliases:["maui",".net maui"]},{skill:"Xamarin",aliases:["xamarin"]},{skill:"Node.js",aliases:["node.js","nodejs"]},{skill:"Express.js",aliases:["express.js","expressjs"]},{skill:"NestJS",aliases:["nestjs","nest.js"]},{skill:"FastAPI",aliases:["fastapi","fast api"]},{skill:"Django",aliases:["django"]},{skill:"Flask",aliases:["flask"]},{skill:"Spring Boot",aliases:["spring boot","springboot"]},{skill:"Spring",aliases:["spring framework"]},{skill:"Rails",aliases:["rails","ruby on rails","ror"]},{skill:"Laravel",aliases:["laravel"]},{skill:"Gin",aliases:["gin"]},{skill:"FastAPI",aliases:["fastapi"]},{skill:"SQL",aliases:["sql"]},{skill:"MySQL",aliases:["mysql"]},{skill:"PostgreSQL",aliases:["postgresql","postgres","psql"]},{skill:"MongoDB",aliases:["mongodb","mongo"]},{skill:"Redis",aliases:["redis"]},{skill:"Elasticsearch",aliases:["elasticsearch","elastic search","es"]},{skill:"DynamoDB",aliases:["dynamodb","dynamo db"]},{skill:"Cassandra",aliases:["cassandra"]},{skill:"Oracle",aliases:["oracle db","oracle database"]},{skill:"SQL Server",aliases:["sql server","mssql","ms sql"]},{skill:"SQLite",aliases:["sqlite"]},{skill:"Neo4j",aliases:["neo4j"]},{skill:"CouchDB",aliases:["couchdb","couch db"]},{skill:"Firebase",aliases:["firebase","firestore"]},{skill:"Supabase",aliases:["supabase"]},{skill:"AWS",aliases:["aws","amazon web services"]},{skill:"Azure",aliases:["azure","microsoft azure"]},{skill:"GCP",aliases:["gcp","google cloud","google cloud platform"]},{skill:"Heroku",aliases:["heroku"]},{skill:"Vercel",aliases:["vercel"]},{skill:"Netlify",aliases:["netlify"]},{skill:"DigitalOcean",aliases:["digitalocean","digital ocean"]},{skill:"Cloudflare",aliases:["cloudflare"]},{skill:"AWS Lambda",aliases:["lambda","aws lambda"]},{skill:"S3",aliases:["s3","aws s3"]}
1,{skill:"EC2",aliases:["ec2","aws ec2"]},{skill:"ECS",aliases:["ecs","aws ecs"]},{skill:"EKS",aliases:["eks","aws eks"]},{skill:"RDS",aliases:["rds","aws rds"]},{skill:"SQS",aliases:["sqs","aws sqs"]},{skill:"SNS",aliases:["sns","aws sns"]},{skill:"CloudFormation",aliases:["cloudformation"]},{skill:"Docker",aliases:["docker"]},{skill:"Kubernetes",aliases:["kubernetes","k8s"]},{skill:"Terraform",aliases:["terraform"]},{skill:"Ansible",aliases:["ansible"]},{skill:"Jenkins",aliases:["jenkins"]},{skill:"GitHub Actions",aliases:["github actions"]},{skill:"GitLab CI",aliases:["gitlab ci","gitlab-ci"]},{skill:"CircleCI",aliases:["circleci","circle ci"]},{skill:"Travis CI",aliases:["travis ci","travis"]},{skill:"ArgoCD",aliases:["argocd","argo cd"]},{skill:"Helm",aliases:["helm"]},{skill:"Prometheus",aliases:["prometheus"]},{skill:"Grafana",aliases:["grafana"]},{skill:"Datadog",aliases:["datadog"]},{skill:"New Relic",aliases:["new relic","newrelic"]},{skill:"Splunk",aliases:["splunk"]},{skill:"Nginx",aliases:["nginx"]},{skill:"Machine Learning",aliases:["machine learning","ml"]},{skill:"Deep Learning",aliases:["deep learning","dl"]},{skill:"TensorFlow",aliases:["tensorflow","tf"]},{skill:"PyTorch",aliases:["pytorch"]},{skill:"Scikit-learn",aliases:["scikit-learn","sklearn"]},{skill:"Pandas",aliases:["pandas"]},{skill:"NumPy",aliases:["numpy"]},{skill:"Apache Spark",aliases:["apache spark","pyspark","spark sql","spark streaming"]},{skill:"Hadoop",aliases:["hadoop"]},{skill:"Airflow",aliases:["airflow","apache airflow"]},{skill:"Kafka",aliases:["kafka","apache kafka"]},{skill:"Snowflake",aliases:["snowflake"]},{skill:"Databricks",aliases:["databricks"]},{skill:"Delta Lake",aliases:["delta lake","deltalake"]},{skill:"MLflow",aliases:["mlflow","ml flow"]},{skill:"Data Warehousing",aliases:["data warehousing","data warehouse","dwh"]},{skill:"Data Engineering",aliases:["data engineering","data engineer"]},{skill:"Big Data",aliases:["big data","bigdata"]},{skill:"Analytics",aliases:["analytics","data analytics"]},{skill:"Lakehouse",aliases:["lakehouse","data lakehouse"]},{skill:"Redshift",aliases:["redshift","amazon redshift","aws redshift"]},{skill:"Presto",aliases:["presto","prestodb"]},{skill:"Hive",aliases:["hive","apache hive"]},{skill:"Tableau",aliases:["tableau"]},{skill:"Power BI",aliases:["power bi","powerbi"]},{skill:"Looker",aliases:["looker"]},{skill:"dbt",aliases:["dbt"]},{skill:"OpenAI",aliases:["openai","gpt","chatgpt"]},{skill:"LangChain",aliases:["langchain"]},{skill:"Hugging Face",aliases:["hugging face","huggingface"]},{skill:"NLP",aliases:["nlp","natural language processing"]},{skill:"Computer Vision",aliases:["computer vision","cv"]},{skill:"LLM",aliases:["llm","large language model"]},{skill:"iOS",aliases:["ios"]},{skill:"Android",aliases:["android"]},{skill:"React Native",aliases:["react native","react-native"]},{skill:"Flutter",aliases:["flutter"]}
1,{skill:"SwiftUI",aliases:["swiftui"]},{skill:"Jetpack Compose",aliases:["jetpack compose"]},{skill:"Jest",aliases:["jest"]},{skill:"Cypress",aliases:["cypress"]},{skill:"Playwright",aliases:["playwright"]},{skill:"Selenium",aliases:["selenium"]},{skill:"Mocha",aliases:["mocha"]},{skill:"Pytest",aliases:["pytest"]},{skill:"JUnit",aliases:["junit"]},{skill:"TestNG",aliases:["testng"]},{skill:"REST",aliases:["rest","restful","rest api"]},{skill:"GraphQL",aliases:["graphql"]},{skill:"gRPC",aliases:["grpc"]},{skill:"WebSocket",aliases:["websocket","websockets"]},{skill:"OAuth",aliases:["oauth","oauth2","oauth 2.0"]},{skill:"JWT",aliases:["jwt","json web token"]},{skill:"HTML",aliases:["html","html5"]},{skill:"CSS",aliases:["css","css3"]},{skill:"Sass",aliases:["sass","scss"]},{skill:"Tailwind CSS",aliases:["tailwind","tailwindcss"]},{skill:"Bootstrap",aliases:["bootstrap"]},{skill:"Material UI",aliases:["material ui","mui"]},{skill:"Webpack",aliases:["webpack"]},{skill:"Vite",aliases:["vite"]},{skill:"Babel",aliases:["babel"]},{skill:"ESLint",aliases:["eslint"]},{skill:"Prettier",aliases:["prettier"]},{skill:"Git",aliases:["git"]},{skill:"GitHub",aliases:["github"]},{skill:"GitLab",aliases:["gitlab"]},{skill:"Bitbucket",aliases:["bitbucket"]},{skill:"Agile",aliases:["agile"]},{skill:"Scrum",aliases:["scrum"]},{skill:"Kanban",aliases:["kanban"]},{skill:"CI/CD",aliases:["ci/cd","cicd","continuous integration"]},{skill:"TDD",aliases:["tdd","test driven development"]},{skill:"BDD",aliases:["bdd","behavior driven development"]},{skill:"Microservices",aliases:["microservices","micro services"]},{skill:"Jira",aliases:["jira"]},{skill:"Confluence",aliases:["confluence"]},{skill:"Slack",aliases:["slack"]},{skill:"VS Code",aliases:["vs code","vscode","visual studio code"]},{skill:"IntelliJ",aliases:["intellij","intellij idea"]},{skill:"Postman",aliases:["postman"]},{skill:"Figma",aliases:["figma"]},{skill:"FIX Protocol",aliases:["fix protocol","fix","financial information exchange"]},{skill:"Trading Systems",aliases:["trading systems","trading platform","electronic trading"]},{skill:"Crypto",aliases:["crypto","cryptocurrency","cryptocurrencies","bitcoin","ethereum"]},{skill:"Blockchain",aliases:["blockchain","web3","distributed ledger"]},{skill:"DeFi",aliases:["defi","decentralized finance"]},{skill:"Smart Contracts",aliases:["smart contracts","solidity"]},{skill:"Financial Infrastructure",aliases:["financial infrastructure","fintech","payment systems"]}];function S(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!e)return[];let a="".concat(t," ").concat(e).toLowerCase(),s=new Set;for(let{skill:e,aliases:t}of C){let r=e.toLowerCase().replace(/[.*+?^${}()|[\]\\]/g,"\\$&");if(RegExp("\\b".concat(r,"\\b"),"i").test(a)){s.add(e);continue}for(let r of t){let t=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");if(RegExp("\\b".concat(t,"\\b"),"i").test(a)){s.add(e);break}}}return Array.from(s).slice(0,20)}var E=a(22954),D=a(62190),_=a(60641),I=a(38361),A=a(80893),L=a(23488),T=a(86691),M=a(71707),z=a(54271),Z=e=>{var t,a;let{job:n,isOpen:c,onClose:d}=e,{theme:u}=(0,i.F)(),{data:m}=(0,N.useSession)(),[p,g]=(0,r.useState)(null),[h,v]=(0,r.useState)(!1),[j,k]=(0,r.useState)(null);(0,r.useEffect)(()=>{let e=new AbortController;return(async()=>{if(c&&(null==n?void 0:n.jobId)){if(n.description){g(n);return}v(!0),k(null);try{let t=await fetch("/api/jobs/".concat(n.jobId),{signal:e.signal});if(!t.ok){g(n),k("Could not load full job details");return}let a=await t.json();a.success&&a.job?g({...n,...a.job}):(g(n),console.warn("Could not fetch full job details, using partial data"))}catch(e){if((null==e?void 0:e.name)==="AbortError")return;console.error("Error fetching job details:",e),g(n),k("Could not load full job details")}finally{v(!1)}}})(),()=>e.abort()},[c,null==n?void 0:n.jobId]),(0,r.useEffect)(()=>{if(c){let e=window.scrollY;document.body.style.position="fixed",document.body.style.top="-".concat(e,"px"),document.body.style.left="0",document.body.style.right="0",document.body.style.overflow="hidden"}else{let e=document.body.style.top;document.body.style.position="",document.body.style.top="",document.body.style.left="",document.body.style.right="",document.body.style.overflow="",e&&window.scrollTo(0,-1*parseInt(e||"0"))}return()=>{let e=document.body.style.top;document.body.style.position="",document.body.style.top="",document.body.style.left="",document.body.style.right="",document.body.style.overflow="",e&&window.scrollTo(0,-1*parseInt(e||"0"))}},[c]),(0,r.useEffect)(()=>{c||(g(null),k(null))},[c]);let w=p||n,F=((e,t)=>{if(!e||e.includes("undefined")||e.includes("null")){if(t){let e=t.toLowerCase().replace(/\s+/g,"").replace(/[^a-z0-9-]/g,"");return"https://www.google.com/s2/favicons?domain=".concat(e,".com&sz=128")}return null}if(e.startsWith("http")){if(e.includes("logo.clearbit.com")){let t=e.replace("https://logo.clearbit.com/","");return"https://www.google.com/s2/favicons?domain=".concat(t,"&sz=128")}return e}return"https://www.google.com/s2/favicons?domain=".concat(e,"&sz=128")})(w.companyLogo,w.companyName||w.company),C=e=>{if(!e||!Array.isArray(e))return[];
1let t=[/\b(bachelor'?s?|master'?s?|phd|doctorate|degree|diploma|university|college|graduate|undergraduate|bs|ms|mba|certification|certified|education|academic|gpa|cgpa)\b/i,/\b(years?\s*(of)?\s*experience|experience\s*in|minimum|required|preferred|must\s*have|strong|excellent|good|proficient|knowledge\s*of)\b/i,/\b(communication|teamwork|leadership|problem[\s-]?solving|analytical|interpersonal|organizational|self[\s-]?motivated|detail[\s-]?oriented|ability\s*to)\b/i,/\b(computer\s*science|information\s*technology|engineering\s*degree|related\s*field|equivalent\s*experience|stem|science|mathematics)\b/i];return e.filter(e=>{if(!e||"string"!=typeof e)return!1;let a=e.trim();if(a.length<2||a.length>50)return!1;for(let e of t)if(e.test(a))return!1;return!/^[\d\s\-_.,;:!?]+$/.test(a)&&!((a.match(/\s/g)||[]).length>4)})},Z=(0,r.useMemo)(()=>{if(!w)return[];let e=C(w.skills||[]);if(e.length<3&&w.description){let t=S(w.description,w.title||"");if(t.length>e.length)return C(t)}let t=["Spark","Next.js"];if(e.some(e=>t.some(t=>e===t))&&w.description){let e=S(w.description,w.title||"");if(e.length>=2)return C(e)}return e},[null==w?void 0:w.skills,null==w?void 0:w.description,null==w?void 0:w.title]);if(!c)return null;let q=e=>{if(!e)return{min:null,max:null,currency:"USD"};let t=e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'").replace(/&/g,"&").replace(/ /g," ").replace(/<[^>]+>/g," ").replace(/\s+/g," ");for(let e of[/\$\s*([\d,]+)\s*[-ââ]\s*\$?\s*([\d,]+)\s*(USD|CAD|EUR|GBP)?/i,/\$\s*([\d.]+)\s*[kK]\s*[-ââ]\s*\$?\s*([\d.]+)\s*[kK]/i,/(?:base|salary|pay|range)[:\s]*\$?\s*([\d,]+)\s*[-ââ]\s*\$?\s*([\d,]+)/i,/([\d,]{6,})\s*[-ââ]\s*([\d,]{6,})\s*(USD|CAD|EUR|GBP)?/i]){let a=t.match(e);if(a){let e=parseFloat(a[1].replace(/,/g,"")),t=parseFloat(a[2].replace(/,/g,""));if(a[0].toLowerCase().includes("k")&&(e*=1e3,t*=1e3),e>=3e4&&t<=1e6&&e<t)return{min:e,max:t,currency:a[3]||"USD"}}}return{min:null,max:null,currency:"USD"}},P=e=>{let t=e.toLowerCase();return t.includes("responsibilities")||t.includes("what you")||t.includes("you will")||t.includes("your role")||t.includes("the role")||t.includes("duties")?"responsibilities":t.includes("qualifications")||t.includes("requirements")||t.includes("looking for")||t.includes("must have")||t.includes("need")||t.includes("experience")||t.includes("skills")?"requirements":t.includes("about")||t.includes("company")||t.includes("who we are")||t.includes("our team")||t.includes("culture")?"about":t.includes("benefits")||t.includes("offer")||t.includes("perks")||t.includes("compensation")||t.includes("salary")||t.includes("package")?"benefits":t.includes("nice to have")||t.includes("preferred")||t.includes("bonus")?"preferred":"general"},{sections:R,plainText:B}=(e=>{let t;if(!e)return{sections:[],plainText:""};let a=[],s=e;s=s.replace(/\\([*+&_\-\/'"()[\]{}#!|`~^=<>
1@$%])/g,"$1").replace(/\\n/g,"\n").replace(/\\r/g,"").replace(/\\t/g," ").replace(/\\\\/g,"").replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'").replace(/'/g,"'").replace(/ /g," ").replace(/<br\s*\/?>/gi,"\n").replace(/<\/p>/gi,"\n\n").replace(/<p[^>]*>/gi,"").replace(/<div[^>]*>/gi,"").replace(/<\/div>/gi,"\n").replace(/<li[^>]*>/gi,"⢠").replace(/<\/li>/gi,"\n").replace(/<ul[^>]*>/gi,"\n").replace(/<\/ul>/gi,"\n").replace(/<ol[^>]*>/gi,"\n").replace(/<\/ol>/gi,"\n").replace(/<[^>]+>/g,"").replace(/\*\*\*/g,"").replace(/___/g,"").replace(/~~~/g,"").replace(/\/{3,}/g,"/").replace(/\*{3,}/g,"").replace(/[ \t]+/g," ").replace(/\n{3,}/g,"\n\n").trim();let r=["responsibilities","what you will do","what you'll do","your role","the role","requirements","qualifications","what we're looking for","what you need","must have","nice to have","preferred","bonus points","ideal candidate","about us","about the company","who we are","our company","the company","benefits","perks","what we offer","we offer","compensation","skills","experience","education","background","job description","overview","summary","position summary","why join us","why work with us","culture"],l=!1,n=/\*\*([^*\n]+)\*\*\s*:?\s*\n([^]*?)(?=\n\*\*[^*]+\*\*|$)/g;for(;null!==(t=n.exec(s));){let e=t[1].trim().replace(/[:<>]/g,""),s=t[2].trim();e&&s&&(a.push({title:e,content:s,type:P(e)}),l=!0)}if(!l){let e=/^([A-Z][A-Za-z\s]+):\s*\n([^]*?)(?=^[A-Z][A-Za-z\s]+:\s*\n|$)/gm;for(;null!==(t=e.exec(s));){let e=t[1].trim(),s=t[2].trim();e&&s&&e.length<50&&(a.push({title:e,content:s,type:P(e)}),l=!0)}}if(!l){let e=/^([A-Z][A-Z\s]{3,30})\s*\n([^]*?)(?=^[A-Z][A-Z\s]{3,30}\s*\n|$)/gm;for(;null!==(t=e.exec(s));){let e=t[1].trim(),s=t[2].trim();if(e&&s){let t=e.toLowerCase().replace(/\b\w/g,e=>e.toUpperCase());a.push({title:t,content:s,type:P(e)}),l=!0}}}if(!l){let e=s.split("\n"),t=null;for(let s of e){let e=s.trim(),n=e.toLowerCase();r.some(t=>n===t||n.startsWith(t+":")||n.startsWith(t+" -")||e.length<60&&n.includes(t)&&!n.includes("â¢"))&&e.length<60?(t&&t.content.length>0&&a.push({title:t.title,content:t.content.join("\n"),type:t.type}),t={title:e.replace(/[:<>]/g,"").trim(),content:[],type:P(e)},l=!0):t&&e&&t.content.push(e)}t&&t.content.length>0&&a.push({title:t.title,content:t.content.join("\n"),type:t.type})}return 0===a.length&&(s=s.replace(/\*\*/g,"").replace(/[<>]/g,"").trim()),{sections:a,plainText:s}})(w.description),J=[];Array.isArray(w.responsibilities)&&w.responsibilities.length>0&&J.push({title:"What You'll Do",content:w.responsibilities.map(e=>"⢠".concat(e)).join("\n"),type:"responsibilities"}),Array.isArray(w.requirements)&&w.requirements.length>0&&J.push({title:"Requirements & Qualifications",content:w.requirements.map(e=>"⢠".concat(e)).join("\n"),type:"requirements"}),Array.isArray(w.benefits)&&w.benefits.length>0&&J.push({title:"Benefits & Perks",content:w.benefits.map(e=>"⢠".concat(e)).join("\n"),type:"benefits"});let U=J.length>0?J:R,O=e=>e.replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'").replace(/ /g," ").replace(/<[^>]+>/g,"").replace(/\\\//g,"/").replace(/\\"/g,'"').replace(/\\'/g,"'").replace(/\\\\/g,"").replace(/[<>]/g,"").replace(/\*{3,}/g,"").replace(/\/{3,}/g,"/").replace(/[ \t]+/g," ").trim().split("\n").filter(e=>e.trim()).map((e,t)=>{if((e=(e=e.trim()).replace(/^[>\/<\\]+\s*/,"")).match(/^[\*\-\â¢\â\·]\s+/)||e.startsWith("*")||e.startsWith("-")||e.startsWith("â¢")){let a=e.replace(/^[\*\-\â¢\â\·]\s*/,"").trim();return a?(0,s.jsxs)("li",{className:"flex items-start gap-2 mb-2 ".concat("dark"===u?"text-gray-300":"text-gray-700"),children:[(0,s.jsx)(E.Z,{className:"w-4 h-4 text-green-500 mt-1 flex-shrink-0"}),(0,s.jsx)("span",{children:a})]},t):null}return e?(0,s.jsx)("p",{className:"mb-2 ".concat("dark"===u?"text-gray-300":"text-gray-700"),children:e},t):null}).filter(Boolean),W=(0,s.jsxs)("div",{className:"fixed inset-0 z-[9999] flex items-center justify-center p-0 sm:p-4 overscroll-contain",onWheel:e=>e.stopPropagation(),onTouchMove:e=>e.stopPropagation(),children:[(0,s.jsx)("div",{className:"fixed inset-0 bg-black/70",onClick:d}),(0,s.jsx)("button",{onClick:e=>{e.preventDefault(),e.stopPropagation(),d()},className:"fixed z-[10001] p-3 rounded-full shadow-2xl sm:hidden touch-manipulation active:scale-95 transition-transform\n top-[max(12px,env(safe-area-inset-top,12px))] right-[max(12px,env(safe-area-inset-right,12px))] ".concat("dark"===u?"bg-gray-800 text-white border-2 border-gray-500 hover:bg-gray-700":"bg-white text-gray-900 border-2 border-gray-400 hover:bg-gray-100"),style:{minWidth:"48px",minHeight:"48px",WebkitTapHighlightColor:"transparent"},"aria-label":"Close modal",type:"button",children:(0,s.jsx)(D.Z,{className:"w-6 h-6",strokeWidth:2.5})}),(0,s.jsxs)("div",{onClick:e=>e.stopPropagation(),className:"relative w-full sm:max-w-3xl lg:max-w-5xl xl:max-w-6xl ".concat("dark"===u?"bg-gray-900":"bg-white "," rounded-none sm:rounded-2xl shadow-2xl h-full sm:h-auto sm:max-h-[90vh] flex flex-col overscroll-contain"),children:[(0,s.jsx)("div",{className:"sticky top-0 z-20 ".concat("dark"===u?"bg-gray-900 border-gray-700":"bg-white border-[#
1EDEFF1]"," border-b px-4 sm:px-6 pt-12 sm:pt-4 pb-3 sm:pb-4 sm:rounded-t-2xl"),children:(0,s.jsxs)("div",{className:"flex justify-between items-start gap-2 sm:gap-4",children:[(0,s.jsxs)("div",{className:"flex items-start gap-3 sm:gap-4 flex-1 min-w-0",children:[(0,s.jsx)("div",{className:"hidden sm:flex w-14 h-14 rounded-xl items-center justify-center border flex-shrink-0 overflow-hidden ".concat("dark"===u?"bg-gray-800 border-gray-700":"bg-gray-50 border-gray-200"),children:F?(0,s.jsx)("img",{src:F,alt:"".concat(w.companyName||w.company," logo"),className:"w-12 h-12 rounded-lg object-contain",onError:e=>{var t,a,s;let r=e.target,l=(null===(t=w.companyName||w.company)||void 0===t?void 0:t.toLowerCase().replace(/\s+/g,""))+".com";if(r.dataset.triedFallback){if("google"===r.dataset.triedFallback){r.dataset.triedFallback="letter",r.style.display="none";let e=r.parentElement;if(e){let t=document.createElement("span");t.className="text-2xl font-bold ".concat("dark"===u?"text-blue-400":"text-blue-600"),t.textContent=(null===(s=w.companyName||w.company)||void 0===s?void 0:null===(a=s.charAt(0))||void 0===a?void 0:a.toUpperCase())||"C",e.appendChild(t)}}}else r.dataset.triedFallback="google",r.src="https://www.google.com/s2/favicons?domain=".concat(l,"&sz=128")}}):(0,s.jsx)("span",{className:"text-2xl font-bold ".concat("dark"===u?"text-blue-400":"text-blue-600"),children:(null===(a=w.companyName||w.company)||void 0===a?void 0:null===(t=a.charAt(0))||void 0===t?void 0:t.toUpperCase())||"C"})}),(0,s.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,s.jsx)("h1",{className:"text-xl sm:text-2xl lg:text-3xl font-bold mb-2 ".concat("dark"===u?"text-white":"text-gray-900"),children:w.title}),(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-3 text-sm sm:text-base",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(b.Z,{className:"w-4 h-4 text-blue-500 flex-shrink-0"}),(0,s.jsx)("span",{className:"font-medium ".concat("dark"===u?"text-gray-300":"text-gray-700"),children:w.companyName||w.company})]}),w.companyIndustry&&(0,s.jsx)("span",{className:"text-xs px-2 py-1 rounded-full ".concat("dark"===u?"bg-blue-900/30 text-blue-400":"bg-blue-50 text-blue-700"),children:w.companyIndustry})]})]})]}),(0,s.jsx)("button",{onClick:d,className:"hidden sm:flex p-2 sm:p-2.5 rounded-lg transition-colors flex-shrink-0 touch-manipulation min-w-[40px] min-h-[40px] items-center justify-center ".concat("dark"===u?"hover:bg-gray-800 text-gray-400 hover:text-white":"hover:bg-gray-100 text-gray-600 hover:text-gray-900"),"aria-label":"Close modal",children:(0,s.jsx)(D.Z,{className:"w-5 h-5 sm:w-6 sm:h-6"})})]})}),(0,s.jsxs)("div",{className:"overflow-y-auto flex-1 px-4 sm:px-6 py-4 sm:py-6 overscroll-contain",children:[h&&(0,s.jsxs)("div",{className:"flex items-center justify-center py-12",children:[(0,s.jsx)(_.Z,{className:"w-8 h-8 animate-spin ".concat("dark"===u?"text-blue-400":"text-blue-600")}),(0,s.jsx)("span",{className:"ml-3 text-lg ".concat("dark"===u?"text-gray-300":"text-gray-600"),children:"Loading job details..."})]}),!h&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-3 mb-6",children:[(0,s.jsxs)("div",{className:"p-4 rounded-xl border ".concat("dark"===u?"bg-gray-800 border-gray-700":"bg-gradient-to-br from-blue-50 to-[#FFF5F2] border-blue-200"),children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,s.jsx)(o.Z,{className:"w-4 h-4 text-blue-500"}),(0,s.jsx)("div",{className:"text-xs font-medium ".concat("dark"===u?"text-gray-400":"text-gray-600"),children:"Location"})]}),(0,s.jsx)("div",{className:"font-semibold text-sm ".concat("dark"===u?"text-white":"text-gray-900"),children:w.location||"Not specified"}),w.remote&&(0,s.jsxs)("div",{className:"flex items-center gap-1 mt-1",children:[(0,s.jsx)(I.Z,{className:"w-3 h-3 text-green-500"}),(0,s.jsx)("span",{className:"text-xs text-green-500 font-medium",children:"Remote"})]})]}),(0,s.jsxs)("div",{className:"p-4 rounded-xl border ".concat("dark"===u?"bg-gray-800 border-gray-700":"bg-gradient-to-br from-green-50 to-emerald-50 border-green-200"),children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,s.jsx)(y.Z,{className:"w-4 h-4 text-green-500"}),(0,s.jsx)("div",{className:"text-xs font-medium ".concat("dark"===u?"text-gray-400":"text-gray-600"),children:"Salary"})]}),(0,s.jsx)("div",{className:"font-semibold text-sm ".concat("dark"===u?"text-white":"text-gray-900"),children:(()=>{let e=w.salaryMin,t=w.salaryMax,a=w.salaryCurrency||"USD";if(!e&&!t&&w.description){let s=q(w.description);e=s.min,t=s.max,a=s.currency}if(e&&t){let s=w.salaryInterval||"yearly";
1return"".concat(a," $").concat(e.toLocaleString()," - $").concat(t.toLocaleString()).concat("hourly"===s?"/hr":"monthly"===s?"/mo":"")}if(e){let t=w.salaryInterval||"yearly";return"".concat(a," $").concat(e.toLocaleString(),"+").concat("hourly"===t?"/hr":"monthly"===t?"/mo":"")}if(t){let e=w.salaryInterval||"yearly";return"Up to ".concat(a," $").concat(t.toLocaleString()).concat("hourly"===e?"/hr":"monthly"===e?"/mo":"")}return"Not disclosed"})()}),w.salaryMin&&(0,s.jsx)("div",{className:"text-xs text-gray-500 mt-1 capitalize",children:"hourly"===w.salaryInterval?"Hourly Rate":"monthly"===w.salaryInterval?"Monthly":"Annual"})]}),(0,s.jsxs)("div",{className:"p-4 rounded-xl border ".concat("dark"===u?"bg-gray-800 border-gray-700":"bg-gradient-to-br from-[#FFF5F2] to-[#FFF5F2] border-[#FF4500]/15"),children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,s.jsx)(A.Z,{className:"w-4 h-4 text-[#FF4500]"}),(0,s.jsx)("div",{className:"text-xs font-medium ".concat("dark"===u?"text-gray-400":"text-gray-600"),children:"Job Type"})]}),(0,s.jsx)("div",{className:"font-semibold text-sm capitalize ".concat("dark"===u?"text-white":"text-gray-900"),children:w.jobType||"Full-time"}),w.jobLevel&&(0,s.jsx)("div",{className:"text-xs text-gray-500 mt-1 capitalize",children:w.jobLevel})]}),(0,s.jsxs)("div",{className:"p-4 rounded-xl border ".concat("dark"===u?"bg-gray-800 border-gray-700":"bg-gradient-to-br from-orange-50 to-[#FFF1EE] border-orange-200"),children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,s.jsx)(f.Z,{className:"w-4 h-4 text-orange-500"}),(0,s.jsx)("div",{className:"text-xs font-medium ".concat("dark"===u?"text-gray-400":"text-gray-600"),children:"Posted"})]}),(0,s.jsx)("div",{className:"font-semibold text-sm ".concat("dark"===u?"text-white":"text-gray-900"),children:(e=>{if(!e)return"Recently posted";let t=new Date(e);if(isNaN(t.getTime()))return"Recently posted";let a=new Date().getTime()-t.getTime();if(a<0)return"Just now";let s=Math.floor(a/6e4),r=Math.floor(a/36e5),l=Math.floor(a/864e5);return s<1?"Just now":s<60?"Posted ".concat(s," minute").concat(1!==s?"s":""," ago"):r<24?"Posted ".concat(r," hour").concat(1!==r?"s":""," ago"):1===l?"Posted yesterday":l<7?"Posted ".concat(l," day").concat(1!==l?"s":""," ago"):l<30?"Posted ".concat(Math.floor(l/7)," week").concat(1!==Math.floor(l/7)?"s":""," ago"):"Posted ".concat(Math.floor(l/30)," month").concat(1!==Math.floor(l/30)?"s":""," ago")})(w.postedDate)})]}),w.department&&(0,s.jsxs)("div",{className:"p-4 rounded-xl border ".concat("dark"===u?"bg-gray-800 border-gray-700":"bg-gradient-to-br from-[#E8F4FD] to-[#E8F4FD] border-[#EDEFF1]"),children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,s.jsx)(b.Z,{className:"w-4 h-4 text-[#0079D3]"}),(0,s.jsx)("div",{className:"text-xs font-medium ".concat("dark"===u?"text-gray-400":"text-gray-600"),children:"Department"})]}),(0,s.jsx)("div",{className:"font-semibold text-sm ".concat("dark"===u?"text-white":"text-gray-900"),children:w.department})]})]}),Z&&Z.length>0&&(0,s.jsxs)("div",{className:"mb-6",children:[(0,s.jsxs)("h3",{className:"text-lg font-bold mb-3 flex items-center gap-2 ".concat("dark"===u?"text-white":"text-gray-900"),children:[(0,s.jsx)(L.Z,{className:"w-5 h-5 text-blue-500"}),"Required Skills & Technologies"]}),(0,s.jsx)("div",{className:"flex flex-wrap gap-2",children:Z.map((e,t)=>(0,s.jsx)("span",{className:"px-3 py-1.5 rounded-lg text-sm font-medium transition-colors ".concat("dark"===u?"bg-blue-900/30 text-blue-400 border border-blue-500/30 hover:bg-blue-900/50":"bg-blue-50 text-blue-700 border border-blue-200 hover:bg-blue-100"),children:e},t))})]}),U.length>0?(0,s.jsxs)("div",{className:"space-y-6",children:[U.map((e,t)=>{let a=(()=>{switch(e.type){case"responsibilities":return{bg:"dark"===u?"bg-blue-900/30 border-blue-700/50":"bg-blue-50 border-blue-200",heading:"dark"===u?"text-blue-300":"text-blue-700",crane:"briefcase"};case"requirements":return{bg:"dark"===u?"bg-[#992900]/20 border-[#E03D00]/30":"bg-[#FFF5F2] border-[#FF4500]/15",heading:"dark"===u?"text-[#FF4500]/20":"text-[#E03D00]",crane:"check"};case"benefits":return{bg:"dark"===u?"bg-green-900/30 border-green-700/50":"bg-green-50 border-green-200",heading:"dark"===u?"text-green-300":"text-green-700",crane:"love"};case"about":return{bg:"dark"===u?"bg-[#CC3700]/30 border-[#FF4500]/30":"bg-[#FFF1EE] border-[#
1EDEFF1]",heading:"dark"===u?"text-[#FF4500]":"text-[#CC3700]",crane:"building"};case"salary":return{bg:"dark"===u?"bg-emerald-900/30 border-emerald-700/50":"bg-emerald-50 border-emerald-200",heading:"dark"===u?"text-emerald-300":"text-emerald-700",crane:"chart"};case"preferred":return{bg:"dark"===u?"bg-[#0079D3]/15 border-[#0079D3]/30":"bg-[#E8F4FD] border-[#EDEFF1]",heading:"text-[#0079D3]",crane:"trophy"};default:return{bg:"dark"===u?"bg-gray-800 border-gray-700":"bg-gray-50 border-gray-200",heading:"dark"===u?"text-white":"text-gray-900",crane:"profile"}}})();return(0,s.jsxs)("div",{className:"rounded-xl border p-5 ".concat(a.bg),children:[(0,s.jsxs)("h3",{className:"text-lg font-bold mb-4 flex items-center gap-2 ".concat(a.heading),children:[(0,s.jsx)(z.ZP,{variant:a.crane,size:24}),e.title]}),(0,s.jsx)("ul",{className:"space-y-2 list-none",children:O(e.content)})]},t)}),J.length>0&&B&&B.length>200&&(0,s.jsxs)("div",{className:"rounded-xl border p-5 ".concat("dark"===u?"bg-gray-800 border-gray-700":"bg-gray-50 border-gray-200"),children:[(0,s.jsxs)("h3",{className:"text-lg font-bold mb-4 flex items-center gap-2 ".concat("dark"===u?"text-white":"text-gray-900"),children:[(0,s.jsx)(z.ZP,{variant:"profile",size:24}),"Full Job Description"]}),(0,s.jsx)("div",{className:"whitespace-pre-wrap leading-relaxed text-sm ".concat("dark"===u?"text-gray-300":"text-gray-700"),children:B})]})]}):(0,s.jsxs)("div",{className:"rounded-xl border p-6 ".concat("dark"===u?"bg-gray-800 border-gray-700":"bg-gray-50 border-gray-200"),children:[(0,s.jsx)("h3",{className:"text-lg font-bold mb-4 ".concat("dark"===u?"text-white":"text-gray-900"),children:"Job Description"}),(0,s.jsx)("div",{className:"whitespace-pre-wrap leading-relaxed ".concat("dark"===u?"text-gray-300":"text-gray-700"),children:B})]}),(w.companyUrl||w.emails)&&(0,s.jsxs)("div",{className:"mt-6 rounded-xl border p-5 ".concat("dark"===u?"bg-gray-800 border-gray-700":"bg-gray-50 border-gray-200"),children:[(0,s.jsx)("h3",{className:"text-lg font-bold mb-3 ".concat("dark"===u?"text-white":"text-gray-900"),children:"Company Information"}),(0,s.jsxs)("div",{className:"space-y-2",children:[w.companyUrl&&(0,s.jsxs)("a",{href:w.companyUrl,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 text-sm hover:underline ".concat("dark"===u?"text-blue-400":"text-blue-600"),children:[(0,s.jsx)(x.Z,{className:"w-4 h-4"}),"Visit Company Page"]}),w.emails&&(0,s.jsxs)("div",{className:"flex items-center gap-2 text-sm ".concat("dark"===u?"text-gray-300":"text-gray-700"),children:[(0,s.jsx)(T.Z,{className:"w-4 h-4"}),w.emails]})]})]})]})]}),(0,s.jsx)("div",{className:"sticky bottom-0 ".concat("dark"===u?"bg-gray-900 border-gray-700":"bg-white border-[#EDEFF1]"," border-t px-4 sm:px-6 py-4 rounded-b-xl sm:rounded-b-2xl"),children:(0,s.jsxs)("div",{className:"flex flex-col sm:flex-row gap-3",children:[(0,s.jsxs)("button",{onClick:e=>{var t;e.preventDefault();let a=w.applyUrl;if(!a||"#"===a||!a.startsWith("http")){alert("Apply link is not available for this job.");return}window.open(a,"_blank","noopener,noreferrer"),fetch("/api/jobs/apply",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({jobId:w.jobId,confirmed:!1,jobTitle:w.title,companyName:w.companyName||w.company,applyUrl:w.applyUrl})}).catch(()=>{}),(null==m?void 0:null===(t=m.user)||void 0===t?void 0:t.email)&&(sessionStorage.setItem("apply_clicked_".concat(w.jobId),"true"),sessionStorage.setItem("last_applied_job",w.jobId),sessionStorage.setItem("last_applied_job_ts",String(Date.now())),sessionStorage.setItem("last_applied_job_meta",JSON.stringify({title:w.title||"",companyName:w.companyName||w.company||""})),sessionStorage.setItem("left_page_".concat(w.jobId),"true"),setTimeout(()=>{sessionStorage.getItem("last_applied_job")===w.jobId&&(sessionStorage.removeItem("last_applied_job"),sessionStorage.removeItem("last_applied_job_meta"),sessionStorage.removeItem("last_applied_job_ts")),sessionStorage.removeItem("apply_clicked_".concat(w.jobId))},3e5))}
1,className:"flex-1 bg-[#FF4500] hover:bg-[#E03D00] text-white font-bold py-3 px-6 rounded-full transition-all duration-200 flex items-center justify-center gap-2 shadow-lg hover:shadow-xl cursor-pointer",children:[(0,s.jsx)(M.Z,{className:"w-5 h-5"}),"Apply Now"]}),w.emails&&(0,s.jsxs)("a",{href:"mailto:".concat(w.emails),className:"px-6 py-3 rounded-full font-semibold transition-all duration-200 flex items-center justify-center gap-2 ".concat("dark"===u?"bg-gray-800 hover:bg-gray-700 text-gray-300 border border-gray-700":"bg-white hover:bg-white text-gray-700 border border-gray-300/50"),title:"Email recruiter",children:[(0,s.jsx)(T.Z,{className:"w-5 h-5"}),(0,s.jsx)("span",{className:"hidden sm:inline",children:"Contact Recruiter"})]})]})})]})]});return(0,l.createPortal)(W,document.body)};async function q(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],a=1===e.length?{jobId:e[0]}:{jobIds:e};try{let e=await fetch("/api/jobs/viewed",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify(a),keepalive:!0});return t&&e.ok&&window.dispatchEvent(new CustomEvent("jobStatsChanged")),e.ok}catch(e){return!1}}function P(e){(null==e?void 0:e.trim())&&q([e.trim()])}let R={stripe:"stripe.com",coinbase:"coinbase.com",airbnb:"airbnb.com",robinhood:"robinhood.com",databricks:"databricks.com",datadog:"datadoghq.com",cloudflare:"cloudflare.com",twilio:"twilio.com",plaid:"plaid.com",netflix:"netflix.com",spotify:"spotify.com",doordash:"doordash.com",figma:"figma.com",notion:"notion.so",discord:"discord.com",vercel:"vercel.com",linear:"linear.app",supabase:"supabase.com",salesforce:"salesforce.com",nvidia:"nvidia.com",uber:"uber.com",adobe:"adobe.com",amazon:"amazon.com",google:"google.com",meta:"meta.com",facebook:"meta.com",microsoft:"microsoft.com",apple:"apple.com",linkedin:"linkedin.com",paypal:"paypal.com",square:"squareup.com",lyft:"lyft.com",instacart:"instacart.com","dbt-labs":"getdbt.com",webflow:"webflow.com",netlify:"netlify.com"},B=e=>e?e.replace(/\\([*+&_\-\/'"()[\]{}#!|`~^=<>
1@$%])/g,"$1").replace(/\\n/g," ").replace(/\\r/g,"").replace(/\\t/g," ").replace(/\\\\/g,"").replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'").replace(/'/g,"'").replace(/ /g," ").replace(/<br\s*\/?>/gi,"\n").replace(/<\/p>/gi,"\n").replace(/<p[^>]*>/gi,"").replace(/<div[^>]*>/gi,"").replace(/<\/div>/gi,"\n").replace(/<li[^>]*>/gi,"⢠").replace(/<\/li>/gi,"\n").replace(/<ul[^>]*>/gi,"\n").replace(/<\/ul>/gi,"\n").replace(/<ol[^>]*>/gi,"\n").replace(/<\/ol>/gi,"\n").replace(/<[^>]+>/g,"").replace(/\*\*\*/g,"").replace(/\*\*/g,"").replace(/___/g,"").replace(/~~~/g,"").replace(/\/{3,}/g,"/").replace(/[ \t]+/g," ").replace(/\n{3,}/g,"\n\n").trim():"",J=e=>{let{percentage:t,theme:a}=e,r=2*Math.PI*32;return(0,s.jsxs)("div",{className:"relative w-20 h-20 flex-shrink-0",children:[(0,s.jsxs)("svg",{className:"w-20 h-20 transform -rotate-90",children:[(0,s.jsx)("circle",{cx:"40",cy:"40",r:32,stroke:"dark"===a?"#1e293b":"#e5e7eb",strokeWidth:"5",fill:"none"}),(0,s.jsx)("circle",{cx:"40",cy:"40",r:32,stroke:t>=80?"dark"===a?"#10b981":"#059669":t>=60?"dark"===a?"#3b82f6":"#2563eb":t>=40?"dark"===a?"#f59e0b":"#d97706":t>0?"dark"===a?"#f97316":"#ea580c":"dark"===a?"#64748b":"#94a3b8",strokeWidth:"5",fill:"none",strokeDasharray:r,strokeDashoffset:r-t/100*r,strokeLinecap:"round",className:"transition-all duration-500"})]}),(0,s.jsxs)("div",{className:"absolute inset-0 flex flex-col items-center justify-center",children:[(0,s.jsxs)("span",{className:"text-xl font-black ".concat(t>=80?"text-emerald-500":t>=60?"text-blue-500":t>=40?"text-[#FF4500]":t>0?"text-orange-500":"dark"===a?"text-[#818384]":"text-gray-400"),children:[t,"%"]}),(0,s.jsx)("span",{className:"text-[8px] font-semibold uppercase ".concat("dark"===a?"text-[#818384]":"text-gray-400"),children:"match"})]})]})};var U=(0,r.memo)(e=>{var t,a,l,n,u,C;let{job:S,userId:E,userSkills:D=[],isAuthenticated:_=!1,onApplicationStatusChange:I,onSavedStatusChange:A,initialHasApplied:L,initialIsSaved:T}=e,{theme:M}=(0,i.F)(),{data:q}=(0,N.useSession)(),[U,O]=(0,r.useState)(!1),[W,H]=(0,r.useState)(null!=L&&L),[V,$]=(0,r.useState)(!1),[Y,G]=(0,r.useState)(null),[K,Q]=(0,r.useState)(null!=T&&T),[X,ee]=(0,r.useState)(!1);(0,r.useEffect)(()=>{var e;if(void 0!==L)return;let t=new AbortController,a=async()=>{var e;if((null==q?void 0:null===(e=q.user)||void 0===e?void 0:e.email)&&S.jobId){$(!0);try{let e=await fetch("/api/jobs/check-application?jobId=".concat(S.jobId),{signal:t.signal});if(e.ok){let t=await e.json();H(t.hasApplied),G(t.application)}}catch(e){if("AbortError"===e.name)return}finally{t.signal.aborted||$(!1)}}};return _&&(null==q?void 0:null===(e=q.user)||void 0===e?void 0:e.email)&&a(),()=>t.abort()},[null==q?void 0:null===(t=q.user)||void 0===t?void 0:t.email,S.jobId,_,L]),(0,r.useEffect)(()=>{void 0!==S.hasApplied&&H(!!S.hasApplied)},[S.hasApplied]),(0,r.useEffect)(()=>{void 0!==L&&H(L)},[L]),(0,r.useEffect)(()=>{void 0!==T&&Q(T)},[T]),(0,r.useEffect)(()=>{var e;if(void 0!==T)return;let t=new AbortController,a=async()=>{var e;if((null==q?void 0:null===(e=q.user)||void 0===e?void 0:e.email)&&S.jobId)try{let e=await fetch("/api/jobs/saved/check?jobId=".concat(S.jobId),{signal:t.signal});if(e.ok){let t=await e.json();Q(t.isSaved)}}catch(e){if("AbortError"===e.name)return}};return _&&(null==q?void 0:null===(e=q.user)||void 0===e?void 0:e.email)&&a(),()=>t.abort()},[null==q?void 0:null===(a=q.user)||void 0===a?void 0:a.email,S.jobId,_,T]);let et=(0,r.useCallback)(async e=>{var t;if(null==e||e.stopPropagation(),!_||!(null==q?void 0:null===(t=q.user)||void 0===t?void 0:t.email)){alert("Please sign in to save jobs");return}if(!X){ee(!0);try{if(K){let e=await fetch("/api/jobs/saved?jobId=".concat(S.jobId),{method:"DELETE"});if(e.ok)Q(!1),null==A||A(S.jobId,!1),window.dispatchEvent(new CustomEvent("jobStatsChanged"));else{let t=await e.json();alert(t.message||"Failed to remove job from saved list")}}else{let e=await fetch("/api/jobs/saved",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({jobId:S.jobId})});if(e.ok)Q(!0),null==A||A(S.jobId,!0),window.dispatchEvent(new CustomEvent("jobStatsChanged"));else{let t=await e.json();alert(t.message||"Failed to save job")}}}catch(e){alert("An error occurred. Please try again.")}finally{ee(!1)}}},[_,null==q?void 0:null===(l=q.user)||void 0===l?void 0:l.email,K,X,S.jobId,A]),ea=(0,r.useCallback)(e=>{O(e)},[]),es=(0,r.useCallback)(()=>ea(!1),[ea]),er=(e,t)=>{let a="".concat(t," ").concat(e).toLowerCase(),s=[];
1for(let e of["c#",".net",".net core","asp.net","entity framework","ef core","linq","wcf","wpf","xaml","mvvm","prism","winforms","blazor","maui","xamarin","typescript","javascript","html5","html","css3","css","sass","scss","react","angular","vue","vue.js","next.js","nuxt","svelte","redux","mobx","webpack","vite","python","java","golang","go","node","node.js","express","django","flask","fastapi","spring","spring boot","hibernate","sql","sql server","mysql","postgresql","postgres","oracle","mongodb","nosql","redis","elasticsearch","dynamodb","aws","azure","gcp","docker","kubernetes","k8s","jenkins","gitlab","github actions","terraform","ansible","ci/cd","devops","rest","restful","api","graphql","grpc","microservices","clean architecture","solid","design patterns","ios","android","swift","kotlin","flutter","react native","machine learning","ml","ai","tensorflow","pytorch","pandas","numpy","agile","scrum","kanban","jira","git","github","gitlab"]){let t=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/\s+/g,"\\s+");RegExp("\\b".concat(t,"\\b"),"i").test(a)&&s.push(e)}return[...new Set(s)]},el=e=>{if(!e||!Array.isArray(e))return[];let t=[/\b(bachelor'?s?|master'?s?|phd|doctorate|degree|diploma|university|college|graduate|undergraduate|bs|ms|mba|certification|certified|education|academic|gpa|cgpa)\b/i,/\b(years?\s*(of)?\s*experience|experience\s*in|minimum|required|preferred|must\s*have|strong|excellent|good|proficient|knowledge\s*of)\b/i,/\b(communication|teamwork|leadership|problem[\s-]?solving|analytical|interpersonal|organizational|self[\s-]?motivated|detail[\s-]?oriented|ability\s*to)\b/i,/\b(computer\s*science|information\s*technology|engineering\s*degree|related\s*field|equivalent\s*experience|stem|science|mathematics)\b/i];return e.filter(e=>{if(!e||"string"!=typeof e)return!1;let a=e.trim();if(a.length<2||a.length>50)return!1;for(let e of t)if(e.test(a))return!1;return!/^[\d\s\-_.,;:!?]+$/.test(a)&&!((a.match(/\s/g)||[]).length>4)})},en=()=>
1{if(!_||!D||0===D.length)return 0;let e=el(S.skills&&S.skills.length>0?S.skills:S.aiExtractedSkills||[]);if(0===e.length&&(S.description||S.title)&&(e=er(S.description||"",S.title||"")),0===e.length)return 0;let t=e=>{if(!e)return"";let t=e.toLowerCase().trim();return(t=(t=(t=t.replace(/asp\.net\s*core/gi,"aspnetcore").replace(/asp\.net\s*mvc\s*5/gi,"aspnetmvc5").replace(/asp\.net\s*mvc/gi,"aspnetmvc").replace(/asp\.net/gi,"aspnet").replace(/\.net\s*core/gi,"dotnetcore").replace(/\.net\s*framework/gi,"dotnetframework").replace(/\.net\s*[678](?:\/[678])?/gi,"dotnet").replace(/\.net/gi,"dotnet").replace(/c#/gi,"csharp").replace(/c\+\+/gi,"cpp").replace(/f#/gi,"fsharp")).replace(/\s*(?:version\s*)?\d+(?:\.\d+)*(?:\/\d+)?$/gi,"")).replace(/\.js$/i,"").replace(/\s+(?:applications?|framework|library|development|scripting|configuration|knowledge|pattern|methodologies?)$/gi,"")).replace(/[\s\-\_\.\(\)\/]/g,"")},a=e=>{let t=new Set([e]);if(!e)return[e];let a=e.toLowerCase().trim();return(a.includes(".net")||a.includes("dotnet")||a.includes("net framework")||a.includes("net core"))&&[".net","dotnet","dot net","microsoft .net",".net framework",".net core","dotnet framework","dotnet core","dotnetframework","dotnetcore",".net 6",".net 7",".net 8",".net 5","dotnet 5","dotnet 6","dotnet 7","dotnet 8","net framework","net core","dotnet6","dotnet7","dotnet8"].forEach(e=>t.add(e)),(a.includes("asp.net")||a.includes("aspnet"))&&["asp.net","aspnet","asp net","asp.net core","asp.net mvc","asp.net web api","aspnet core","aspnetcore","aspnet mvc","aspnetmvc","aspnetmvc5","asp.net mvc 5",".net web","dotnet web","web api","aspnet web api"].forEach(e=>t.add(e)),(a.includes("c#")||a.includes("csharp")||a.includes("c sharp")||a.includes("c-sharp"))&&["c#","csharp","c sharp","c-sharp","cs","c# developer","c# programming",".net","dotnet"].forEach(e=>t.add(e)),(a.includes("entity framework")||a.includes("ef core")||"ef"===a||"orm"===a)&&["entity framework","ef","ef core","entity framework core","entityframework","ef6","ef 6","orm","entity framework 6","linq to entities"].forEach(e=>t.add(e)),(a.includes("linq")||a.includes("language integrated query"))&&["linq","language integrated query","linq to sql","linq to entities","linq queries","linq query"].forEach(e=>t.add(e)),(a.includes("wpf")||a.includes("windows presentation foundation"))&&["wpf","windows presentation foundation","xaml","wpf xaml","wpf application","wpf development","wpf developer","windows wpf"].forEach(e=>t.add(e)),(a.includes("xaml")||a.includes("extensible application markup"))&&["xaml","wpf","wpf xaml","extensible application markup language","xaml markup","uwp xaml","windows xaml"].forEach(e=>t.add(e)),(a.includes("mvvm")||a.includes("model view viewmodel")||a.includes("model-view-viewmodel"))&&["mvvm","mvvm pattern","model view viewmodel","model-view-viewmodel","mvvm architecture","model view view-model"].forEach(e=>t.add(e)),a.includes("prism")&&(a.includes("framework")||a.includes("wpf")||a.length<10)&&["prism","prism framework","prism wpf","prism library","prism.wpf"].forEach(e=>t.add(e)),a.includes("caliburn")&&["caliburn","caliburn.micro","caliburn micro","caliburnmicro"].forEach(e=>t.add(e)),(a.includes("ui/ux")||a.includes("ui")&&a.includes("ux"))&&["ui/ux","ui ux","ui & ux","user interface","user experience","ui design","ux design","ui/ux design","uiux"].forEach(e=>t.add(e)),(a.includes("data visualization")||a.includes("data viz"))&&["data visualization","data viz","data visualisation","dataviz","charts","graphs","dashboards","reporting"].forEach(e=>t.add(e)),(a.includes("multithreading")||a.includes("threading")||a.includes("concurrent"))&&["multithreading","threading","multi-threading","concurrent programming","parallel programming","async","asynchronous","async/await","async await","task parallel library","tpl","parallel computing","concurrency"].forEach(e=>t.add(e)),(a.includes("sdlc")||a.includes("software development lifecycle")||a.includes("development lifecycle"))&&["sdlc","software development lifecycle","development lifecycle","software development","full sdlc","sdlc methodologies"].forEach(e
1=>t.add(e)),a.includes("agile")&&["agile","agile methodologies","agile methodology","agile development","agile scrum","agile practices","agile framework","agile process"].forEach(e=>t.add(e)),a.includes("scrum")&&["scrum","scrum methodology","scrum master","agile scrum","scrum framework","scrum process","scrum practices"].forEach(e=>t.add(e)),a.includes("kanban")&&["kanban","kanban methodology","kanban board","lean kanban","kanban system"].forEach(e=>t.add(e)),(a.includes("exstream")||a.includes("ot")&&!a.includes("not"))&&["exstream","ot exstream","opentext exstream","exstream applications","document composition","customer communications","opentext"].forEach(e=>t.add(e)),(a.includes("erp")||a.includes("enterprise resource"))&&["erp","enterprise resource planning","erp system","erp implementation","erp analyst","erp administrator"].forEach(e=>t.add(e)),(a.includes("hris")||a.includes("human resources info"))&&["hris","human resources information system","hr systems","workday hris","hr technology","people systems"].forEach(e=>t.add(e)),(a.includes("crm")||a.includes("customer relationship"))&&["crm","customer relationship management","crm system","crm platform","salesforce crm","hubspot crm"].forEach(e=>t.add(e)),(a.includes("itil")||a.includes("it service management"))&&["itil","itil framework","itil v3","itil v4","it service management","itsm"].forEach(e=>t.add(e)),a.includes("sharepoint")&&["sharepoint","sharepoint online","sharepoint administration","microsoft sharepoint","sharepoint development"].forEach(e=>t.add(e)),(a.includes("power bi")||"powerbi"===a)&&["power bi","powerbi","power bi reports","microsoft power bi","power bi dashboard","business intelligence"].forEach(e=>t.add(e)),a.includes("tableau")&&["tableau","tableau desktop","tableau server","data visualization","tableau dashboard","tableau developer"].forEach(e=>t.add(e)),(a.includes("active directory")||"ad"===a||a.includes("azure ad"))&&["active directory","azure ad","azure active directory","ldap","identity management","directory services"].forEach(e=>t.add(e)),(a.includes("project management")||a.includes("pmp"))&&["project management","pmp","project manager","project management professional","pmi","program management","it project management"].forEach(e=>t.add(e)),(a.includes("business analysis")||a.includes("business analyst"))&&["business analysis","business analyst","ba","requirements gathering","requirements analysis","business requirements","stakeholder management"].forEach(e=>t.add(e)),(a.includes("seo")||a.includes("search engine optimization"))&&["seo","search engine optimization","organic search","seo strategy","technical seo","on-page seo","off-page seo"].forEach(e=>t.add(e)),(a.includes("sem")||a.includes("search engine marketing")||a.includes("ppc"))&&["sem","search engine marketing","ppc","paid search","pay per click","google ads","adwords","paid media"].forEach(e=>t.add(e)),(a.includes("google analytics")||"ga4"===a)&&["google analytics","ga4","google analytics 4","web analytics","analytics","google tag manager","gtm"].forEach(e=>t.add(e)),a.includes("hubspot")&&["hubspot","hubspot crm","hubspot marketing","inbound marketing","hubspot certification","marketing automation"].forEach(e=>t.add(e)),a.includes("marketo")&&["marketo","adobe marketo","marketo engage","marketing automation","marketo certified"].forEach(e=>t.add(e)),(a.includes("content marketing")||a.includes("content strategy"))&&["content marketing","content strategy","content creation","content management","content writing","editorial strategy","content calendar"].forEach(e=>t.add(e)),a.includes("social media")&&["social media","social media marketing","social media management","smm","facebook marketing","instagram marketing","tiktok marketing","linkedin marketing"].forEach(e=>t.add(e)),a.includes("email marketing")&&["email marketing","email campaigns","email automation","esp","mailchimp","email strategy","newsletter"].forEach(e=>t.add(e)),a.includes("brand")&&!a.includes("broadband")&&["brand management","brand strategy","brand marketing","branding","brand awareness","brand positioning","brand identity"].forEach(e
1=>t.add(e)),(a.includes("digital marketing")||a.includes("growth marketing"))&&["digital marketing","online marketing","internet marketing","growth marketing","performance marketing","growth hacking","demand generation"].forEach(e=>t.add(e)),(a.includes("copywriting")||a.includes("copy writing"))&&["copywriting","copy writing","content writing","creative writing","ad copy","marketing copy"].forEach(e=>t.add(e)),(a.includes("public relations")||"pr"===a)&&["public relations","pr","media relations","press relations","crisis communications","pr strategy","earned media"].forEach(e=>t.add(e)),(a.includes("campaign management")||a.includes("campaign manager"))&&["campaign management","campaign manager","marketing campaigns","campaign optimization","campaign analytics","lead generation"].forEach(e=>t.add(e)),(a.includes("a/b testing")||a.includes("cro")||a.includes("conversion rate"))&&["a/b testing","ab testing","conversion rate optimization","cro","split testing","experimentation","optimization"].forEach(e=>t.add(e)),(a.includes("javascript")||"js"===a||"ecmascript"===a)&&["javascript","js","ecmascript","es6","es2015","es2016","es2017","es2018","es2019","es2020","es2021","vanilla js","vanilla javascript"].forEach(e=>t.add(e)),(a.includes("typescript")||"ts"===a)&&["typescript","ts","typescript developer","typescript programming"].forEach(e=>t.add(e)),(a.includes("node")||a.includes("nodejs"))&&["node","nodejs","node.js","node js","node.js development","backend javascript"].forEach(e=>t.add(e)),a.includes("react")&&["react","reactjs","react.js","react js","react native","react developer"].forEach(e=>t.add(e)),a.includes("angular")&&["angular","angularjs","angular js","angular 2+","angular framework"].forEach(e=>t.add(e)),a.includes("vue")&&["vue","vuejs","vue.js","vue js","vue 2","vue 3","vue framework"].forEach(e=>t.add(e)),a.includes("next")&&(a.includes("js")||a.includes("react"))&&["next.js","nextjs","next","react next","next js"].forEach(e=>t.add(e)),a.includes("express")&&["express","expressjs","express.js","express js","express framework"].forEach(e=>t.add(e)),(a.includes("python")||"py"===a)&&["python","py","python3","python 3","python 2","python development","python programming"].forEach(e=>t.add(e)),a.includes("django")&&["django","django framework","django web framework","python django"].forEach(e=>t.add(e)),a.includes("flask")&&["flask","flask framework","flask web framework","python flask"].forEach(e=>t.add(e)),a.includes("pandas")&&["pandas","pandas library","python pandas","data manipulation"].forEach(e=>t.add(e)),a.includes("numpy")&&["numpy","numpy library","python numpy","numerical computing"].forEach(e=>t.add(e)),("java"===a||a.includes("java")&&!a.includes("javascript"))&&["java","jdk","java development","java programming","core java","java se","java ee"].forEach(e=>t.add(e)),a.includes("spring")&&["spring","spring boot","spring framework","spring mvc","spring cloud","java spring"].forEach(e=>t.add(e)),a.includes("hibernate")&&["hibernate","hibernate orm","java hibernate","hibernate framework"].forEach(e=>t.add(e)),a.includes("sql")&&!a.includes("nosql")&&["sql","sql database","structured query language","sql queries","sql query"].forEach(e=>t.add(e)),a.includes("mysql")&&["mysql","mysql database","my sql","mysql server"].forEach(e=>t.add(e)),(a.includes("postgresql")||a.includes("postgres"))&&["postgresql","postgres","postgre sql","postgres database"].forEach(e=>t.add(e)),(a.includes("mongodb")||a.includes("mongo"))&&["mongodb","mongo","mongo db","mongodb database","nosql"].forEach(e=>t.add(e)),a.includes("redis")&&["redis","redis database","redis cache","caching"].forEach(e=>t.add(e)),a.includes("oracle")&&["oracle","oracle database","oracle db","plsql","pl/sql"].forEach(e=>t.add(e)),(a.includes("aws")||a.includes("amazon web services"))&&["aws","amazon web services","amazon aws","aws cloud","aws services"].forEach(e=>t.add(e)),(a.includes("azure")||a.includes("microsoft azure"))&&["azure","microsoft azure","azure cloud","windows azure","azure services"].forEach(e=>t.add(e)),(a.includes("gcp")||a.includes("google cloud"))&&["gcp","google cloud","google cloud platform","gcp cloud"].forEach(e
1=>t.add(e)),a.includes("docker")&&["docker","docker containers","docker container","containerization","docker compose"].forEach(e=>t.add(e)),(a.includes("kubernetes")||"k8s"===a)&&["kubernetes","k8s","kubernetes orchestration","container orchestration"].forEach(e=>t.add(e)),a.includes("jenkins")&&["jenkins","jenkins ci/cd","jenkins automation","continuous integration"].forEach(e=>t.add(e)),a.includes("git")&&!a.includes("digital")&&["git","git version control","version control","git scm","source control"].forEach(e=>t.add(e)),a.includes("github")&&["github","git hub","github repository","git","version control"].forEach(e=>t.add(e)),a.includes("perl")&&["perl","perl scripting","perl script","perl programming","perl language"].forEach(e=>t.add(e)),(a.includes("bash")||a.includes("shell")&&!a.includes("powershell"))&&["bash","shell","shell scripting","bash scripting","bash script","linux shell","unix shell","sh","bash shell"].forEach(e=>t.add(e)),a.includes("powershell")&&["powershell","pwsh","powershell scripting","windows powershell","powershell script"].forEach(e=>t.add(e)),a.includes("linux")&&["linux","linux configuration","linux administration","linux admin","unix","linux systems","linux server"].forEach(e=>t.add(e)),a.includes("unix")&&["unix","linux","unix systems","unix server","unix administration"].forEach(e=>t.add(e)),a.includes("xml")&&["xml","xml knowledge","xml processing","xml data","extensible markup language"].forEach(e=>t.add(e)),a.includes("json")&&["json","json processing","json data","json format","javascript object notation"].forEach(e=>t.add(e)),(a.includes("yaml")||a.includes("yml"))&&["yaml","yml","yaml configuration","yaml format"].forEach(e=>t.add(e)),a.includes("jest")&&["jest","jest testing","jest framework","javascript testing"].forEach(e=>t.add(e)),a.includes("junit")&&["junit","junit testing","junit framework","java testing","unit testing"].forEach(e=>t.add(e)),a.includes("selenium")&&["selenium","selenium automation","selenium testing","selenium webdriver","test automation"].forEach(e=>t.add(e)),a.includes("cypress")&&["cypress","cypress testing","cypress.io","e2e testing","end to end testing"].forEach(e=>t.add(e)),Array.from(t)},s=D.map(e=>t(e)),r=e.map(e=>t(e)),l=0,n=new Set,i=[];for(let o=0;o<e.length;o++){let c=e[o],d=r[o];if(n.has(d))continue;let u=0;for(let e=0;e<D.length;e++){let r=D[e],l=s[e],n=a(c).map(e=>t(e)),o=a(r).map(e=>t(e));if(n.some(e=>o.includes(e))&&u<1){u=1,i.push('â "'.concat(c,'" â "').concat(r,'" (alias match)'));continue}if(d===l&&u<1){u=1,i.push('â "'.concat(c,'" â "').concat(r,'" (exact match)'));continue}if(u<.85){let e=d.length>l.length?d:l,t=d.length>l.length?l:d;if(e.includes(t)&&t.length>=3){u=.85,i.push('â "'.concat(c,'" â "').concat(r,'" (substring - 85%)'));continue}}if(u<.75){let e=d.split(/[^a-z0-9]+/).filter(e=>e.length>2),t=l.split(/[^a-z0-9]+/).filter(e=>e.length>2),a=e.filter(e=>t.includes(e));(a.length>=2||1===a.length&&1===e.length)&&a.length/Math.max(e.length,t.length)>=.5&&(u=.75,i.push('~ "'.concat(c,'" â "').concat(r,'" (word match - 75%)')))}}u>0&&(l+=u,n.add(d))}return Math.min(Math.round(e.length>0?l/e.length*100:0),100)},ei=(0,r.useMemo)(()=>en(),[_,D,S.skills,S.description,S.title]),eo=(0,r.useMemo)(()=>{if(S.companyLogo&&!S.companyLogo.includes("undefined")&&!S.companyLogo.includes("null")){if(S.companyLogo.startsWith("http")){if(S.companyLogo.includes("logo.clearbit.com")){let e=S.companyLogo.replace("https://logo.clearbit.com/","");return"https://www.google.com/s2/favicons?domain=".concat(e,"&sz=128")}return S.companyLogo}return"https://www.google.com/s2/favicons?domain=".concat(S.companyLogo,"&sz=128")}if(!S.companyName)return"/images/default-company.png";let e=S.companyName.toLowerCase().replace(/\s+/g,"").replace(/[^a-z0-9-]/g,""),t=R[e]||"".concat(e,".com");return"https://www.google.com/s2/favicons?domain=".concat(t,"&sz=128")},[S.companyLogo,S.companyName]),[ec,ed]=(0,r.useState)(!1),eu=(0,r.useCallback)(()=>{ed(!0)},[]),em=(0,F.useRouter)();(0,r.useCallback)(()=>{let e=S.applyUrl;
1if(!e||"#"===e||!e.startsWith("http")){alert("This job has no apply URL â cannot auto-apply.");return}em.push("/auto-apply?jobUrl=".concat(encodeURIComponent(e)))},[S.applyUrl,em]);let ep=(0,r.useCallback)(async()=>{var e,t;let a=S.applyUrl;if(!a||"#"===a||!a.startsWith("http")){alert("Apply link is not available for this job.");return}window.open(a,"_blank","noopener,noreferrer"),(null==q?void 0:null===(e=q.user)||void 0===e?void 0:e.email)&&_&&fetch("/api/jobs/apply",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({jobId:S.jobId,confirmed:!1,jobTitle:S.title,companyName:S.companyName,applyUrl:S.applyUrl})}).catch(()=>{}),fetch("/api/jobs/track-view",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({jobId:S.jobId})}).catch(()=>{}),(null==q?void 0:null===(t=q.user)||void 0===t?void 0:t.email)&&_&&!W&&(sessionStorage.setItem("apply_clicked_".concat(S.jobId),"true"),sessionStorage.setItem("last_applied_job",S.jobId),sessionStorage.setItem("last_applied_job_meta",JSON.stringify({title:S.title,companyName:S.companyName})),sessionStorage.setItem("last_applied_job_ts",String(Date.now())),sessionStorage.setItem("left_page_".concat(S.jobId),"true"),setTimeout(()=>{sessionStorage.getItem("last_applied_job")===S.jobId&&(sessionStorage.removeItem("last_applied_job"),sessionStorage.removeItem("last_applied_job_meta"),sessionStorage.removeItem("last_applied_job_ts")),sessionStorage.removeItem("apply_clicked_".concat(S.jobId))},3e5));try{let e={type:"application_click",jobId:S.jobId,ts:Date.now()};if("undefined"!=typeof BroadcastChannel){let t=new BroadcastChannel("apply-events");t.postMessage(e),t.close()}else localStorage.setItem("applied_event",JSON.stringify(e)),setTimeout(()=>localStorage.removeItem("applied_event"),100)}catch(e){}},[null==q?void 0:null===(n=q.user)||void 0===n?void 0:n.email,_,W,S.jobId,S.applyUrl,S.title,S.companyName]),eg=e=>{if(!e)return{min:null,max:null,currency:"USD"};for(let t of[/\$\s*([\d,]+)\s*[-ââ]\s*\$?\s*([\d,]+)\s*(USD|CAD|EUR|GBP)?/i,/\$\s*([\d.]+)\s*[kK]\s*[-ââ]\s*\$?\s*([\d.]+)\s*[kK]/i,/(?:base|salary|pay|range)[:\s]*\$?\s*([\d,]+)\s*[-ââ]\s*\$?\s*([\d,]+)/i]){let a=e.match(t);if(a){let e=parseFloat(a[1].replace(/,/g,"")),t=parseFloat(a[2].replace(/,/g,""));if(a[0].toLowerCase().includes("k")&&(e*=1e3,t*=1e3),e>=3e4&&t<=1e6&&e<t)return{min:e,max:t,currency:a[3]||"USD"}}}return{min:null,max:null,currency:"USD"}},eh=(0,r.useMemo)(()=>{let e=S.salaryMin,t=S.salaryMax,a=S.salaryCurrency||"USD";if(!e&&!t&&S.description){let s=eg(S.description);e=s.min,t=s.max,a=s.currency}if(!e&&!t)return null;let s=e=>"hourly"===S.salaryPeriod?e.toString():e>=1e3?"".concat((e/1e3).toFixed(0),"k"):e.toString(),r="hourly"===S.salaryPeriod?"/hr":"";return e&&t?"".concat(a," $").concat(s(e)," - $").concat(s(t)).concat(r):e?"".concat(a," $").concat(s(e),"+").concat(r):t?"Up to ".concat(a," $").concat(s(t)).concat(r):null},[S.salaryMin,S.salaryMax,S.salaryCurrency,S.salaryPeriod,S.description]),ex=(0,r.useMemo)(()=>{let e=S.postedDate;if(!e)return"Recently";let t=new Date(e),a=new Date;if(isNaN(t.getTime()))return"Recently";let s=a.getTime()-t.getTime();if(s<0)return"Just now";let r=Math.floor(s/6e4),l=Math.floor(s/36e5),n=Math.floor(s/864e5);return r<1?"Just now":r<60?"".concat(r," minute").concat(1!==r?"s":""," ago"):l<24?"".concat(l," hour").concat(1!==l?"s":""," ago"):1===n?"Yesterday":n<7?"".concat(n," day").concat(1!==n?"s":""," ago"):n<30?"".concat(Math.floor(n/7)," week").concat(1!==Math.floor(n/7)?"s":""," ago"):"".concat(Math.floor(n/30)," month").concat(1!==Math.floor(n/30)?"s":""," ago")},[S.postedDate]);(0,r.useMemo)(()=>({icon:(()=>{switch(S.locationType){case"remote":return(0,s.jsx)("span",{className:"inline-flex",role:"img","aria-label":"Remote",children:(0,s.jsx)(z.ZP,{variant:"globe",size:20})});case"hybrid":return(0,s.jsxs)("span",{className:"inline-flex items-center gap-0.5",role:"img","aria-label":"Hybrid workplace",children:[(0,s.jsx)(z.ZP,{variant:"building",size:20}),(0,s.jsx)(z.ZP,{variant:"home",size:20})]});default:return(0,s.jsx)(o.Z,{className:"w-3.5 h-3.5"})}})(),label:(()=>{switch(S.locationType){case"remote":return"Remote";case"hybrid":return"Hybrid";case"onsite":return"On-site";default:return""}})()}),[S.locationType]);let eb=(0,r.useCallback)(()=>{var e;let t=[];try{t=JSON.parse(localStorage.getItem("viewedJobs")||"[]")}catch(e){t=[]}let a=!1;
1t.includes(S.jobId)||(t.push(S.jobId),localStorage.setItem("viewedJobs",JSON.stringify(t)),window.dispatchEvent(new CustomEvent("jobStatsChanged")),a=!0),a&&_&&(null==q?void 0:null===(e=q.user)||void 0===e?void 0:e.email)&&P(S.jobId),ea(!0)},[S.jobId,ea,_,null==q?void 0:null===(u=q.user)||void 0===u?void 0:u.email]),ef=(0,r.useMemo)(()=>S.skills&&0!==S.skills.length?S.skills.slice(0,5).map(e=>B(e)):[],[S.skills]);return(0,s.jsxs)("div",{"data-job-url":S.applyUrl,"data-job-card":"true","data-job-title":S.title||"","data-job-company":S.companyName||"","data-job-id":S.id||S._id||"",className:"group relative rounded-md overflow-hidden transition-all duration-300 border cursor-pointer active:scale-[0.98] sm:active:scale-100 hover:border-l-[3px] hover:border-l-[#FF4500] ".concat("dark"===M?"bg-[#1A1A1B] border-[#343536] hover:bg-[#272729]":"bg-white border-[#EDEFF1] hover:shadow-md"),onClick:eb,children:[(0,s.jsxs)("div",{className:"flex flex-col sm:flex-row",children:[(0,s.jsxs)("div",{className:"flex-1 p-4 sm:p-4",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between mb-3 sm:mb-2",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsxs)("span",{className:"text-[11px] flex items-center gap-1 ".concat("dark"===M?"text-[#818384]":"text-gray-400"),children:[(0,s.jsx)(c.Z,{className:"w-3 h-3"}),ex]}),_&&(0,s.jsx)("div",{className:"sm:hidden flex items-center gap-1 px-2 py-0.5 rounded-full ".concat(ei>=80?"dark"===M?"bg-emerald-500/20 text-emerald-400":"bg-emerald-100 text-emerald-600":ei>=60?"dark"===M?"bg-blue-500/20 text-blue-400":"bg-blue-100 text-blue-600":ei>=40?"dark"===M?"bg-[#FF4500]/20 text-[#FF4500]":"bg-[#FFE5DB] text-[#FF4500]":"dark"===M?"bg-[#343536] text-[#818384]":"bg-gray-100 text-gray-500"),children:(0,s.jsxs)("span",{className:"text-xs font-bold",children:[ei,"%"]})})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsxs)("div",{className:"sm:hidden flex items-center gap-1 px-2 py-0.5 rounded-full ".concat(S.h1bSponsorship?"dar
1k"===M?"bg-emerald-500/20":"bg-emerald-100":"dark"===M?"bg-red-500/15":"bg-red-50"),children:[S.h1bSponsorship?(0,s.jsx)(d.Z,{className:"w-3 h-3 ".concat("dark"===M?"text-emerald-400":"text-emerald-600")}):(0,s.jsx)(m,{className:"w-3 h-3 ".concat("dark"===M?"text-red-400":"text-red-500")}),(0,s.jsx)("span",{className:"text-[10px] font-semibold ".concat(S.h1bSponsorship?"dark"===M?"text-emerald-400":"text-emerald-600":"dark"===M?"text-red-400":"text-red-500"),children:S.h1bSponsorship?"H1B":"No H1B"})]}),_&&(0,s.jsx)("button",{onClick:e=>{e.stopPropagation(),et()},disabled:X,title:K?"Remove from saved":"Save job",className:"p-2 rounded-full transition-all ".concat(K?"dark"===M?"text-[#FF4500] bg-[#FF4500]/20":"text-[#FF4500] bg-[#FFE5DB]":"dark"===M?"text-[#818384] hover:text-[#FF4500] hover:bg-[#272729]":"text-gray-400 hover:text-[#FF4500] hover:bg-gray-100"),children:K?(0,s.jsx)(p,{className:"w-5 h-5"}):(0,s.jsx)(g,{className:"w-5 h-5"})})]})]}),(0,s.jsxs)("div",{className:"flex items-start gap-3 mb-3",children:[(0,s.jsx)("div",{className:"w-14 h-14 sm:w-12 sm:h-12 rounded-2xl sm:rounded-xl flex items-center justify-center flex-shrink-0 overflow-hidden ".concat("dark"===M?"bg-[#272729]":"bg-white border border-[#EDEFF1]"),children:ec?(0,s.jsx)("span",{className:"text-base sm:text-sm font-bold ".concat("dark"===M?"text-[#FF4500]":"text-[#0079D3]"),children:(null===(C=S.companyName)||void 0===C?void 0:C.split(" ").filter(e=>e).map(e=>e[0]).join("").substring(0,2).toUpperCase())||"??"}):(0,s.jsx)("img",{src:eo,alt:"".concat(S.companyName," logo"),className:"w-12 h-12 sm:w-10 sm:h-10 object-contain",onError:eu})}),(0,s.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,s.jsx)("h3",{className:"text-[15px] sm:text-base font-semibold leading-tight line-clamp-2 ".concat("dark"===M?"text-white":"text-gray-900"),children:S.title}),(0,s.jsxs)("div",{className:"flex items-center gap-1.5 mt-1",children:[(0,s.jsx)("span",{className:"text-sm font-medium ".concat("dark"===M?"text-[#818384]":"text-gray-600"),children:S.companyName}),S.companyIndustry&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"text-xs ".concat("dark"===M?"text-[#4F4F51]":"text-gray-400"),children:"\xb7"}),(0,s.jsx)("span",{className:"text-xs ".concat("dark"===M?"text-[#818384]":"text-gray-500"),children:S.companyIndustry})]})]})]})]}),(0,s.jsxs)("div",{className:"flex sm:hidden gap-2 mb-3 overflow-x-auto scrollbar-hide pb-1 -mx-1 px-1",children:[S.location&&(0,s.jsxs)("div",{className:"flex items-center gap-1.5 px-3 py-1.5 rounded-full whitespace-nowrap ".concat("dark"===M?"bg-[#272729]":"bg-gray-100"),children:[(0,s.jsx)(o.Z,{className:"w-3.5 h-3.5 ".concat("dark"===M?"text-blue-400":"text-blue-600")}),(0,s.jsx)("span",{className:"text-xs font-medium ".concat("dark"===M?"text-[#D7DADC]":"text-gray-700"),children:S.location.length>20?S.location.substring(0,20)+"...":S.location})]}),S.locationType&&(0,s.jsxs)("div",{className:"flex items-center gap-1.5 px-3 py-1.5 rounded-full whitespace-nowrap ".concat("remote"===S.locationType?"dark"===M?"bg-green-500/20":"bg-green-100":"hybrid"===S.locationType?"dark"===M?"bg-[#FF4500]/15":"bg-[#FF4500]/10":"dark"===M?"bg-[#272729]":"bg-gray-100"),children:["remote"===S.locationType?(0,s.jsx)(h.Z,{className:"w-3.5 h-3.5 ".concat("dark"===M?"text-green-400":"text-green-600")}):"hybrid"===S.locationType?(0,s.jsx)(x.Z,{className:"w-3.5 h-3.5 ".concat("text-[#FF4500]")}):(0,s.jsx)(b.Z,{className:"w-3.5 h-3.5 ".concat("dark"===M?"text-[#818384]":"text-gray-600")}),(0,s.jsx)("span",{className:"text-xs font-semibold capitalize ".concat("remote"===S.locationType?"dark"===M?"text-green-400":"text-green-600":"hybrid"===S.locationType?"text-[#FF4500]":"dark"===M?"text-[#D7DADC]":"text-gray-700"),children:S.locationType})]}),S.jobType&&(0,s.jsxs)("div",{className:"flex items-center gap-1.5 px-3 py-1.5 rounded-full whitespace-nowrap ".concat("dark"===M?"bg-[#FF4500]/20":"bg-[#FFE5DB]"),children:[(0,s.jsx)(f.Z,{className:"w-3.5 h-3.5 ".concat("text-[#FF4500]")}),(0,s.jsx)("span",{className:"text-xs font-medium capitalize ".concat("dark"===M?"text-[#FF4500]":"text-[#CC3700]"),children:S.jobType.replace("-"," ")})]}),eh&&(0,s.jsxs)("div",{className:"flex items-center gap-1.5 px-3 py-1.5 rounded-full whitespace-nowrap ".concat("dark"===M?"bg-emerald-500/20":"bg-emerald-100"),children:[(0,s.jsx)(y.Z,{className:"w-3.5 h-3.5 ".concat("dark"===M?"text-emerald-400":"text-emerald-600")}),(0,s.jsx)("span",{className:"text-xs font-bold ".concat("dark"===M?"text-emerald-400":"text-emerald-600"),children:eh})]})]}),(0,s.jsxs)("div",{className:"hidden sm:grid grid-cols-3 gap-x-3 gap-y-2 mb-3 py-3 px-3 rounded-lg ".concat("dark"===M?"bg-[#272729]":"bg-gray-50"),children:[S.location&&(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("div",{className:"p-1.5 rounded-lg ".concat("dark"===M?"bg-blue-500/20":"bg-blue-100"),children:(0,s.jsx)(o.Z,{className:"w-4 h-4 ".concat("dark"===M?"text-blue-400":"text-blue-600")})}),(0,s.jsxs)("div",{className:"flex flex-col min-w-0",children:[(0,s.jsx)("span",{className:"text-[10px] uppercase tracking-wide font-medium ".concat("dark"===M?"text-[#818384]":"text-gray-400"),children:"Location"}),(0,s.jsx)("span",{className:"text-xs font-medium truncate ".concat("dark"===M?"text-[#D7DADC]":"text-gray-700"),children:S.location})]})]}),S.locationType&&(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("div",{className:"p-1.5 rounded-lg ".concat("remote"===S.locationType?"dark"===M?"bg-green-500/20":"bg-green-100":"hybrid"===S.locationType?"dark"===M?"bg-[#FF4500]/15":"bg-[#FF4500]/10":"dark"===M?"bg-[#343536]":"bg-gray-200"),children:"remote"===S.locationType?(0,s.jsx)(h.Z,{className:"w-4 h-4 ".concat("dark"===M?"text-green-400":"text-green-600")}):"hybrid"===S.locationType?(0,s.jsx)(x.Z,{className:"w-4 h-4 ".concat("text-[#FF4500]")}):(0,s.jsx)(b.Z,{className:"w-4 h-4 ".concat("dark"===M?"text-[#818384]":"text-gray-600")})}),(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)("span",{className:"text-[10px] uppercase tracking-wide font-medium ".concat("dark"===M?"text-[#818384]":"text-gray-400"),children:"Work Type"}),(0,s.jsx)("span",{className:"text-xs font-semibold capitalize ".concat("remote"===S.locationType?"dark"===M?"text-green-400":"text-green-600":"hybrid"===S.locationType?"text-[#FF4500]":"dark"===M?"text-[#D7DADC]":"text-gray-700"),children:S.locationType})]})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("div",{className:"p-1.5 rounded-lg ".concat(eh?"dark"===M?"bg-emerald-500/20":"bg-emerald-100":"dark"===M?"bg-[#343536]":"bg-gray-200"),children:(0,s.jsx)(y.Z,{className:"w-4 h-4 ".concat(eh?"dark"===M?"text-emerald-400":"text-emerald-600":"dark"===M?"text-[#818384]":"text-gray-500")})}),(0,s.jsxs)("div",{className:"flex flex-col min-w-0",children:[(0,s.jsx)("span",{className:"text-[10px] uppercase tracking-wide font-medium ".concat("dark"===M?"text-[#818384]":"text-gray-400"),children:"Salary"}),(0,s.jsx)("span",{className:"text-xs font-bold truncate ".concat(eh?"dark"===M?"text-emerald-400":"text-emerald-600":"dark"===M?"text-[#818384]":"text-gray-400"),children:eh||"Not specified"})]})]}),S.jobType&&(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("div",{className:"p-1.5 rounded-lg ".concat("dark"===M?"bg-[#FF4500]/20":"bg-[#FFE5DB]"),children:(0,s.jsx)(f.Z,{className:"w-4 h-4 ".concat("text-[#FF4500]")})}),(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)("span",{className:"text-[10px] uppercase tracking-wide font-medium ".concat("dark"===M?"text-[#818384]":"text-gray-400"),children:"Job Type"}),(0,s.jsx)("span",{className:"text-xs font-medium capitalize ".concat("dark"===M?"text-[#D7DADC]":"text-gray-700"),children:S.jobType.replace("-"," ")})]})]}),(S.jobLevel||S.experienceLevel)&&(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("div",{className:"p-1.5 rounded-lg ".concat("dark"===M?"bg-[#FF4500]/15":"bg-[#FF4500]/10"),children:(0,s.jsx)(v.Z,{className:"w-4 h-4 ".concat("text-[#FF4500]")})}),(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)("span",{className:"text-[10px] uppercase tracking-wide font-medium ".concat("dark"===M?"text-[#818384]":"text-gray-400"),children:"Level"}),(0,s.jsx)("span",{className:"text-xs font-medium capitalize ".concat("dark"===M?"text-[#D7DADC]":"text-gray-700"),children:S.jobLevel||S.experienceLevel})]})]})]}),S.skills&&S.skills.length>0&&(0,s.jsxs)("div",{className:"flex items-center gap-1.5 overflow-x-auto scrollbar-hide pb-1",children:[ef.map((e,t)=>(0,s.jsx)("span",{className:"px-2.5 py-1 sm:px-2 sm:py-0.5 rounded-full sm:rounded text-[11px] sm:text-[10px] font-medium whitespace-nowrap ".concat("dark"===M?"bg-[#272729] text-[#D7DADC]":"bg-[#F6F7F8] text-blue-700 border border-[#
1EDEFF1]"),children:e},t)),S.skills.length>5&&(0,s.jsxs)("span",{className:"text-[11px] sm:text-[10px] font-semibold px-2 py-1 sm:px-1.5 sm:py-0.5 rounded-full sm:rounded ".concat("dark"===M?"bg-[#FF4500]/15 text-[#FF4500]":"bg-[#FF4500]/10 text-[#FF4500] border border-[#FF4500]/20"),children:["+",S.skills.length-5]})]}),(0,s.jsxs)("div",{className:"flex sm:hidden gap-3 mt-4 pt-3 -mx-4 -mb-4 px-4 pb-4 border-t ".concat("dark"===M?"border-[#343536] bg-[#272729]":"border-[#EDEFF1] bg-[#F6F7F8]"),children:[(0,s.jsxs)("button",{onClick:e=>{e.stopPropagation();try{let e=JSON.parse(localStorage.getItem("viewedJobs")||"[]"),a=Array.isArray(e)?e:[];if(!a.includes(S.jobId)){var t;a.push(S.jobId),localStorage.setItem("viewedJobs",JSON.stringify(a)),window.dispatchEvent(new CustomEvent("jobStatsChanged")),_&&(null==q?void 0:null===(t=q.user)||void 0===t?void 0:t.email)&&P(S.jobId)}}catch(e){window.dispatchEvent(new CustomEvent("jobStatsChanged"))}ea(!0)},className:"flex-1 flex items-center justify-center gap-2 px-4 py-3 rounded-full text-sm font-medium transition-all ".concat("dark"===M?"bg-[#272729] text-[#D7DADC] active:bg-[#343536]":"bg-gray-100 text-gray-700 active:bg-gray-200"),children:[(0,s.jsx)(j.Z,{className:"w-4 h-4"}),(0,s.jsx)("span",{children:"Details"})]}),(0,s.jsx)("button",{onClick:e=>{e.stopPropagation(),ep()},disabled:W,className:"flex-1 flex items-center justify-center gap-2 px-4 py-3 rounded-full text-sm font-bold transition-all ".concat(W?"bg-emerald-500 text-white":"bg-[#FF4500] active:bg-[#E03D00] text-white"),children:W?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(k.Z,{className:"w-4 h-4"}),(0,s.jsx)("span",{children:"Applied"})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{children:"Apply"}),(0,s.jsx)(w.Z,{className:"w-4 h-4"})]})})]})]}),(0,s.jsxs)("div",{className:"hidden sm:flex w-44 flex-shrink-0 flex-col items-center justify-between p-4 border-l ".concat("dark"===M?"border-[#343536] bg-[#272729]":"border-[#EDEFF1] bg-[#F6F7F8]"),children:[(0,s.jsxs)("div",{className:"flex flex-col items-center",children:[_?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"relative mb-2 ".concat(ei>=80?"drop-shadow-[0_0_15px_rgba(16,185,129,0.4)]":ei>=60?"drop-shadow-[0_0_15px_rgba(59,130,246,0.4)]":ei>=40?"drop-shadow-[0_0_15px_rgba(245,158,11,0.4)]":""),children:(0,s.jsx)(J,{percentage:ei,theme:M})}),(0,s.jsx)("span",{className:"text-[10px] font-bold uppercase tracking-wide mb-3 ".concat(ei>=80?"dark"===M?"text-emerald-400":"text-emerald-600":ei>=60?"dark"===M?"text-blue-400":"text-blue-600":ei>=40?"text-[#FF4500]":"dark"===M?"text-[#818384]":"text-gray-500"),children:ei>=80?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(z.ZP,{variant:"sparkle",size:20})," Great Match"]}):ei>=60?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(z.ZP,{variant:"wave",size:20})," Good Match"]}):ei>=40?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(z.ZP,{variant:"chart",size:20})," Fair Match"]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(z.ZP,{variant:"warn",size:20})," Low Match"]})})]}):(0,s.jsxs)("div",{className:"flex flex-col items-center mb-3",children:[(0,s.jsx)("div",{className:"w-16 h-16 rounded-full flex items-center justify-center mb-2 ".concat("dark"===M?"bg-[#343536]":"bg-gray-200"),role:"img","aria-label":"Sign in required",children:(0,s.jsx)(z.ZP,{variant:"lock",size:34})}),(0,s.jsx)("span",{className:"text-[10px] font-medium text-center ".concat("dark"===M?"text-[#818384]":"text-gray-500"),children:"Login for match"})]}),(0,s.jsxs)("div",{className:"flex items-center gap-1.5 px-3 py-1.5 rounded-lg w-full justify-center ".concat(S.h1bSponsorship?"dar
1k"===M?"bg-emerald-500/20 ring-1 ring-emerald-500/40":"bg-emerald-100 ring-1 ring-emerald-300":"dark"===M?"bg-red-500/15 ring-1 ring-red-500/30":"bg-red-50 ring-1 ring-red-200"),children:[S.h1bSponsorship?(0,s.jsx)(d.Z,{className:"w-4 h-4 ".concat("dark"===M?"text-emerald-400":"text-emerald-600")}):(0,s.jsx)(m,{className:"w-4 h-4 ".concat("dark"===M?"text-red-400":"text-red-500")}),(0,s.jsx)("span",{className:"text-[10px] font-bold ".concat(S.h1bSponsorship?"dark"===M?"text-emerald-300":"text-emerald-700":"dark"===M?"text-red-300":"text-red-600"),children:S.h1bSponsorship?"H1B Sponsor":"No H1B"})]})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-2 w-full mt-3",children:[(0,s.jsxs)("button",{onClick:e=>{e.stopPropagation();try{let e=JSON.parse(localStorage.getItem("viewedJobs")||"[]"),a=Array.isArray(e)?e:[];if(!a.includes(S.jobId)){var t;a.push(S.jobId),localStorage.setItem("viewedJobs",JSON.stringify(a)),window.dispatchEvent(new CustomEvent("jobStatsChanged")),_&&(null==q?void 0:null===(t=q.user)||void 0===t?void 0:t.email)&&P(S.jobId)}}catch(e){window.dispatchEvent(new CustomEvent("jobStatsChanged"))}ea(!0)},className:"flex items-center justify-center gap-1.5 px-3 py-2 rounded-full text-xs font-medium transition-all w-full ".concat("dark"===M?"bg-[#343536] text-[#D7DADC] hover:bg-[#343536]":"bg-white text-gray-700 hover:bg-white ring-1 ring-gray-200/50"),children:[(0,s.jsx)(j.Z,{className:"w-4 h-4"}),(0,s.jsx)("span",{children:"Details"})]}),(0,s.jsx)("button",{onClick:e=>{e.stopPropagation(),ep()},disabled:W,className:"flex items-center justify-center gap-1.5 px-3 py-2 rounded-full text-xs font-bold transition-all w-full ".concat(W?"bg-emerald-500 text-white":"bg-[#FF4500] hover:bg-[#E03D00] text-white shadow-sm"),children:W?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(k.Z,{className:"w-4 h-4"}),(0,s.jsx)("span",{children:"Applied"})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{children:"Apply Now"}),(0,s.jsx)(w.Z,{className:"w-4 h-4"})]})})]})]})]}),(0,s.jsx)(Z,{job:{...S,company:S.companyName,companyLogo:eo,remote:"remote"===S.locationType,emails:S.emails||null,companyDescription:S.companyDescription||null},isOpen:U,onClose:es})]})},(e,t)=>{let a=e.userSkills===t.userSkills||Array.isArray(e.userSkills)&&Array.isArray(t.userSkills)&&e.userSkills.length===t.userSkills.length&&e.userSkills.every((e,a)=>e===t.userSkills[a]);return e.job.jobId===t.job.jobId&&e.initialHasApplied===t.initialHasApplied&&e.initialIsSaved===t.initialIsSaved&&e.isAuthenticated===t.isAuthenticated&&e.userId===t.userId&&a}),O=a(2553),W=a(9475),H=e=>{let{isOpen:t,onClose:a,jobTitle:l,companyName:n,jobId:o,onConfirm:c}=e,{theme:d}=(0,i.F)(),[u,m]=(0,r.useState)(""),[p,g]=(0,r.useState)(!1);if((0,r.useEffect)(()=>{t||(m(""),g(!1))},[t]),!t)return null;let h=async e=>{if(!e){a();try{Promise.resolve(c(!1,u)).catch(()=>{})}catch(e){}return}g(!0);try{await c(!0,u)}finally{g(!1),a()}};return(0,s.jsxs)("div",{className:"fixed inset-0 z-[10000] flex items-center justify-center animate-in fade-in duration-150",children:[(0,s.jsx)("div",{className:"absolute inset-0 animate-in fade-in duration-100 ".concat("dark"===d?"bg-black/70":"bg-black/50"),onClick:a}),(0,s.jsxs)("div",{className:"relative w-full max-w-lg mx-4 rounded-2xl shadow-2xl animate-in zoom-in-95 slide-in-from-bottom-4 duration-200 ".concat("dark"===d?"bg-gradient-to-br from-[#272729]/95 to-[#1A1A1B]/95 border border-[#343536]":"bg-white border border-[#EDEFF1]"),children:[(0,s.jsx)("div",{className:"relative p-6 border-b border-[#343536]",children:(0,s.jsxs)("div",{className:"flex items-start gap-4",children:[(0,s.jsx)("div",{className:"p-3 rounded-xl ".concat("dark"===d?"bg-gradient-to-br from-blue-500/20 to-[#FF4500]/15":"bg-gradient-to-br from-blue-50 to-[#FF4500]/10"),children:(0,s.jsx)(O.Z,{className:"w-6 h-6 ".concat("dark"===d?"text-blue-400":"text-blue-600")})}),(0,s.jsxs)("div",{className:"flex-1",children:[(0,s.jsx)("h3",{className:"text-xl font-bold ".concat("dark"===d?"text-white":"text-gray-900"),children:"Did you apply?"}),(0,s.jsx)("p",{className:"mt-1 text-sm ".concat("dark"===d?"text-[#818384]":"text-gray-600"),children:"Let us know if you submitted your application"})]}),(0,s.jsx)("button",{onClick:a,className:"p-2 rounded-lg transition-colors ".concat("dark"===d?"hover:bg-[#343536] text-[#818384] hover:text-white":"hover:bg-gray-100 text-gray-500 hover:text-gray-700"),children:(0,s.jsx)(D.Z,{className:"w-5 h-5"})})]})}),(0,s.jsxs)("div",{className:"p-6 space-y-4",children:[(0,s.jsxs)("div",{className:"p-4 rounded-xl ".concat("dark"===d?"bg-[#272729] border border-[#343536]":"bg-gray-50 border border-gray-200"),children:[(0,s.jsx)("p",{className:"font-semibold ".concat("dark"===d?"text-white":"text-gray-900"),children:l}),(0,s.jsx)("p",{className:"text-sm mt-1 ".concat("dark"===d?"text-[#818384]":"text-gray-600"),children:n})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-sm font-medium mb-2 ".concat("dark"===d?"text-[#D7DADC]":"text-gray-700"),children:"Notes (Optional)"}),(0,s.jsx)("textarea",{value:u,onChange:e=>m(e.target.value),placeholder:"Add any notes about this application...",rows:3,className:"w-full px-4 py-3 rounded-xl border resize-none transition-colors ".concat("dark"===d?"bg-[#272729] border-[#343536] text-white placeholder-[#818384] focus:border-blue-500":"bg-white border-gray-300/50 text-gray-900 placeholder-gray-400 focus:border-blue-500"," focus:outline-none focus:ring-2 focus:ring-[#FF4500]/20")})]})]}),(0,s.jsxs)("div",{className:"p-6 border-t border-[#343536] flex gap-3",children:[(0,s.jsxs)("button",{onClick:()=>h(!1),disabled:p,className:"flex-1 flex items-center justify-center gap-2 px-6 py-3 rounded-full font-medium transition-all ".concat("dark"===d?"bg-[#343536] hover:bg-[#343536] text-white border border-[#343536]":"bg-gray-100 hover:bg-gray-200 text-gray-700 border border-gray-300"," disabled:opacity-50 disabled:cursor-not-allowed"),children:[(0,s.jsx)(W.Z,{className:"w-5 h-5"}),(0,s.jsx)("span",{children:"Not Yet"})]}),(0,s.jsxs)("button",{onClick:()=>h(!0),disabled:p,className:"flex-1 flex items-center justify-center gap-2 px-6 py-3 rounded-full font-medium transition-all ".concat("bg-emerald-600 hover:bg-emerald-700 text-white shadow-md"," disabled:opacity-50 disabled:cursor-not-allowed"),children:[(0,s.jsx)(k.Z,{className:"w-5 h-5"}),(0,s.jsx)("span",{children:p?"Saving...":"Yes, Applied!"})]})]}),(0,s.jsx)("div",{className:"px-6 pb-6 text-xs text-center ".concat("dark"===d?"text-[#818384]":"text-gray-500"),children:"This helps us track y
1our applications and show them in your dashboard"})]})]})},V=e=>{var t,a;let{isOpen:l,onClose:n}=e,{data:o}=(0,N.useSession)(),{theme:c}=(0,i.F)(),[d,u]=(0,r.useState)([]),[m,p]=(0,r.useState)(!1),[g,h]=(0,r.useState)({total:0,applied:0,clicked:0,viewing:0,saved:0,viewed:0}),x=(0,r.useCallback)(async()=>{var e,t,a;if(null==o?void 0:null===(e=o.user)||void 0===e?void 0:e.email){p(!0);try{let e="/api/jobs/applications?userId=".concat(encodeURIComponent(o.user.email),"&limit=8&sortBy=createdAt&order=desc"),s=await fetch(e);if(s.ok){let e=await s.json();u(e.applications||[]),e.stats?h({total:e.stats.total||0,applied:e.stats.applied||0,clicked:e.stats.clicked||0,viewing:e.stats.viewing||0,saved:null!==(t=e.stats.saved)&&void 0!==t?t:0,viewed:null!==(a=e.stats.viewed)&&void 0!==a?a:0}):h(t=>{var a;return{...t,total:e.total||(null===(a=e.applications)||void 0===a?void 0:a.length)||0}})}}catch(e){console.error("Error fetching my jobs:",e)}finally{p(!1)}}},[null==o?void 0:null===(t=o.user)||void 0===t?void 0:t.email]);(0,r.useEffect)(()=>{l&&x();let e=null,t=e=>{let t=null;e.data?t=e.data:"applied_event"===e.key&&e.newValue&&(t=JSON.parse(e.newValue)),t&&(("application_click"===t.type||"application_confirmed"===t.type)&&x(),"open_my_jobs"===t.type&&t.open&&x())};try{"undefined"!=typeof BroadcastChannel&&(e=new BroadcastChannel("apply-events")).addEventListener("message",t)}catch(t){e=null}window.addEventListener("storage",t);let a=()=>{x()};return window.addEventListener("jobStatsChanged",a),()=>{e&&e.close(),window.removeEventListener("storage",t),window.removeEventListener("jobStatsChanged",a)}},[l,null==o?void 0:null===(a=o.user)||void 0===a?void 0:a.email]);let b=(0,F.useRouter)();return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"fixed inset-0 z-[120] ".concat(l?"pointer-events-auto":"pointer-events-none"),"aria-hidden":!l,children:[(0,s.jsx)("div",{className:"".concat(l?"opacity-60 visible":"opacity-0 invisible"," transition-opacity duration-200 bg-black/40 absolute inset-0"),onClick:n}),(0,s.jsx)("div",{className:"absolute right-0 top-0 bottom-0 w-full md:w-[420px] p-4 md:p-6 transition-transform duration-250 transform ".concat(l?"translate-y-0 md:translate-x-0":"translate-y-full md:translate-x-full"),children:(0,s.jsxs)("div",{className:"h-full rounded-xl shadow-2xl border overflow-hidden flex flex-col ".concat("dark"===c?"bg-[#1A1A1B] border-[#343536]":"bg-white border-[#EDEFF1]"),children:[(0,s.jsxs)("div",{className:"px-4 py-3 border-b flex items-center justify-between",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"w-9 h-9 rounded-lg bg-gradient-to-br from-[#FF4500] to-[#CC3700] flex items-center justify-center text-white",children:(0,s.jsx)($,{})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"text-sm font-semibold ".concat("dark"===c?"text-white":"text-gray-900"),style:{fontFamily:"Rajdhani, sans-serif"},children:"My Applied Jobs"}),(0,s.jsxs)("div",{className:"text-xs ".concat("dark"===c?"text-[#818384]":"text-gray-500"),children:[g.applied," applied ⢠",g.saved," saved ⢠",g.viewed," viewed ⢠",g.total," tracked"]})]})]}),(0,s.jsx)("button",{"aria-label":"Close",onClick:n,className:"p-2 rounded-lg transition-colors ".concat("dark"===c?"hover:bg-[#272729] text-[#818384]":"hover:bg-gray-100 text-gray-500"),children:(0,s.jsx)(D.Z,{className:"w-4 h-4"})})]}),(0,s.jsx)("div",{className:"overflow-auto p-4 flex-1 space-y-3",children:m?(0,s.jsx)("div",{className:"text-center py-8",children:"Loadingâ¦"}):0===d.length?(0,s.jsx)("div",{className:"text-center text-sm text-gray-500 py-6",children:"No tracked applications â click Apply on a job to begin tracking."}):d.map(e=>(0,s.jsxs)("div",{className:"p-3 rounded-md border ".concat("dark"===c?"border-[#343536]":"border-gray-100"," flex flex-col gap-2"),children:[(0,s.jsxs)("div",{className:"flex items-start justify-between",children:[(0,s.jsxs)("div",{className:"flex-1 pr-3",children:[(0,s.jsx)("div",{className:"text-sm font-semibold ".concat("dark"===c?"text-white":"text-gray-900"),children:e.jobTitle}),(0,s.jsx)("div",{className:"text-xs ".concat("dark"===c?"text-[#818384]":"text-gray-600"),children:e.companyName}),(0,s.jsxs)("div",{className:"mt-2 text-xs flex items-center gap-2",children:["applied"===e.status?(0,s.jsx)(k.Z,{className:"w-4 h-4 text-green-400"}):(0,s.jsx)(f.Z,{className:"w-4 h-4 text-yellow-400"}),(0,s.jsx)("div",{className:"text-xs ".concat("dark"===c?"text-[#818384]":"text-gray-500"),children:e.status})]})]}),(0,s.jsx)("div",{className:"flex-shrink-0 flex flex-col items-end gap-2",children:e.applyUrl&&"#"!==e.applyUrl&&e.applyUrl.startsWith("http")?(0,s.jsxs)("a",{href:e.applyUrl,target:"_blank",rel:"noopener noreferrer",className:"px-3 py-1 rounded-full border text-xs flex items-center gap-2 ".concat("dark"===c?"bg-[#272729] border-[#343536] text-[#D7DADC]":"bg-white border-gray-200 text-gray-800"),children:[(0,s.jsx)(M.Z,{className:"w-3.5 h-3.5"}),(0,s.jsx)("span",{children:"View"})]}):(0,s.jsx)("span",{className:"px-3 py-1 rounded-lg text-xs ".concat("dark"===c?"text-[#818384]":"text-gray-400"),children:"Link unavailable"})})]}),e.notes&&(0,s.jsx)("div",{className:"p-2 rounded text-xs ".concat("dark"===c?"bg-[#272729] text-[#D7DADC]":"bg-gray-50 text-gray-600"),children:(0,s.jsx)("span",{className:"line-clamp-2",children:e.notes})})]},e._id))}),(0,s.jsx)("div",{className:"px-4 py-3 border-t",children:(0,s.jsx)("button",{onClick:()=>{try{n(),b.push("/my-jobs")}catch(e){window.location.href="/my-jobs"}},className:"w-full inline-flex items-center justify-center px-4 py-2 text-sm rounded-full ".concat("dark"===c?"bg-[#272729] border-[#343536] text-[#D7DADC]":"bg-white border-gray-200 text-gray-800"),children:"View All Applications"})})]})})]})})};let $=()=>(0,s.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{d:"M9 2H15C15.5523 2
116 2.44772 16 3V5H8V3C8 2.44772 8.44772 2 9 2Z",stroke:"white",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M20 7H4V19C4 20.1046 4.89543 21 6 21H18C19.1046 21 20 20.1046 20 19V7Z",stroke:"white",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})]});var Y=a(36127),G=a(42171),K=a(78865);function Q(e){let t=e.toLowerCase();return/^staff_|^principal_|^distinguished|^fellow_/.test(t)?"trophy":/design|ux_|product_design|ui_designer|graphic_design|ui_developer|creative_/.test(t)?"palette":/data_engineer|data_scientist|data_analyst|bi_|analytics_engineer|database_administrator|etl_developer|big_data|reporting|sql_developer|sql_engineer|dba/.test(t)?"chart":/ml_engineer|mlops|ai_engineer|nlp|computer_vision|llm_engineer|genai|deep_learning|prompt_|research_scientist|applied_scientist/.test(t)?"sparkle":/qa_|sdet|quality_|test_engineer|automation_tester|performance_engineer/.test(t)||/security|cyber|soc_|iam|infosec|penetration/.test(t)?"eye":/devops|sre_|platform_engineer|infrastructure|kubernetes|k8s|cloud_engineer|cloud_architect|aws_engineer|azure_engineer|gcp_engineer|release_engineer|build_engineer|jenkins|terraform|docker/.test(t)?"rocket":/manager|director|_vp|cto|cio|cfo|coo|head_of|chief_|engineering_lead|lead_engineer/.test(t)?"building":/mobile|android|ios|flutter|swift|react_native|expo/.test(t)?"briefcase":/writer|documentation|technical_writer|doc_/.test(t)?"edit":/recruiter|talent|people_ops|hr_/.test(t)?"team":/business_analyst|ba_|operations|supply_chain|scm|product_manager|program_manager|project_manager|_pm_/.test(t)?"target":/marketing|growth|sales_engineer|account_executive|content_/.test(t)||/blockchain|web3|solidity|smart_contract/.test(t)?"chart":"briefcase"}let X="trueresume_role_preference";function ee(e){let{selectedRole:t,onRoleSelect:a,className:l=""}=e,{theme:n}=(0,i.F)(),[o,c]=(0,r.useState)([]),[d,u]=(0,r.useState)(!0),[m,p]=(0,r.useState)(!1),[g,h]=(0,r.useState)(""),x=(0,r.useRef)(null),b=(0,r.useRef)(null);(0,r.useEffect)(()=>{let e=localStorage.getItem(X);e&&e!==t&&a(e)},[]),(0,r.useEffect)(()=>{t?localStorage.setItem(X,t):localStorage.removeItem(X)},[t]),(0,r.useEffect)(()=>{(async()=>{try{let e=await fetch("/api/jobs/role-badges");if(e.ok){let t=await e.json();t.badges&&c(t.badges)}}catch(e){console.error("Failed to fetch role badges:",e)}finally{u(!1)}})()},[]),(0,r.useEffect)(()=>{let e=e=>{x.current&&!x.current.contains(e.target)&&(p(!1),h(""))};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),(0,r.useEffect)(()=>{m&&b.current&&b.current.focus()},[m]);let f=o.filter(e=>e.name.toLowerCase().includes(g.toLowerCase())||e.shortName.toLowerCase().includes(g.toLowerCase())||e.description.toLowerCase().includes(g.toLowerCase())||e.category.toLowerCase().includes(g.toLowerCase())).reduce((e,t)=>(e[t.category]||(e[t.category]=[]),e[t.category].push(t),e),{}),y=o.find(e=>e.id===t),v=e=>{a(e),p(!1),h("")};return d?(0,s.jsx)("div",{className:"".concat(l),children:(0,s.jsx)("div",{className:"animate-pulse",children:(0,s.jsx)("div",{className:"h-10 w-full rounded-lg ".concat("dark"===n?"bg-[#343536]":"bg-gray-200")})})}):(0,s.jsxs)("div",{className:"relative ".concat(l),ref:x,children:[(0,s.jsxs)("label",{className:"flex items-center gap-2 text-xs font-semibold mb-2 uppercase tracking-wide ".concat("text-[#FF4500]"),children:[(0,s.jsx)(z.ZP,{variant:"target",size:22})," Role Preference"]}),(0,s.jsx)("button",{onClick:()=>p(!m),className:"w-full flex items-center gap-2 px-3 py-2.5 rounded-lg text-sm font-medium transition-all duration-200 ".concat(y?"".concat(y.color," text-white shadow-lg"):"dark"===n?"bg-[#272729] text-[#D7DADC] hover:bg-[#343536] border border-[#343536]":"bg-white text-gray-700 hover:bg-white border border-gray-300/50 shadow-sm"),children:y?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(z.ZP,{variant:Q(y.id),size:26}),(0,s.jsx)("span",{className:"flex-1 text-left truncate",children:y.name}),(0,s.jsx)("button",{onClick:e=>{e.stopPropagation(),a(null),localStorage.removeItem(X)},className:"p-0.5 rounded hover:bg-white transition-colors",title:"Clear preference",children:(0,s.jsx)(D.Z,{className:"w-4 h-4"})})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Y.Z,{className:"w-4 h-4 opacity-60"}),(0,s.jsx)("span",{className:"flex-1 text-left text-sm",children:"Select your role..."}),(0,s.jsx)(G.Z,{className:"w-4 h-4 transition-transform ".concat(m?"rotate-180":"")})]})}),m&&(0,s.jsxs)("div",{className:"absolute top-full left-0 right-0 mt-2 max-h-[350px] overflow-hidden rounded-xl shadow-2xl border-2 z-50 ".concat("dark"===n?"bg-[#1A1A1B] border-[#343536]":"bg-white border-[#
1EDEFF1]"),onWheel:e=>e.stopPropagation(),onTouchMove:e=>e.stopPropagation(),children:[(0,s.jsx)("div",{className:"p-2.5 border-b ".concat("dark"===n?"border-[#343536]":"border-gray-200"),children:(0,s.jsxs)("div",{className:"flex items-center gap-2 px-2.5 py-1.5 rounded-lg ".concat("dark"===n?"bg-[#272729]":"bg-gray-100"),children:[(0,s.jsx)(Y.Z,{className:"w-3.5 h-3.5 ".concat("dark"===n?"text-[#818384]":"text-gray-400")}),(0,s.jsx)("input",{ref:b,type:"text",value:g,onChange:e=>h(e.target.value),placeholder:"Search roles...",className:"flex-1 bg-transparent border-none outline-none text-sm ".concat("dark"===n?"text-white placeholder-[#818384]":"text-gray-900 placeholder-gray-400")}),g&&(0,s.jsx)("button",{onClick:()=>h(""),className:"p-1",children:(0,s.jsx)(D.Z,{className:"w-3 h-3 ".concat("dark"===n?"text-[#818384]":"text-gray-400")})})]})}),(0,s.jsx)("div",{className:"overflow-y-auto max-h-[320px] p-2 overscroll-contain",style:{touchAction:"pan-y"},onWheel:e=>e.stopPropagation(),onTouchMove:e=>e.stopPropagation(),children:0===Object.entries(f).length?(0,s.jsxs)("div",{className:"text-center py-8 ".concat("dark"===n?"text-[#818384]":"text-gray-500"),children:['No roles found matching "',g,'"']}):Object.entries(f).map(e=>{let[a,r]=e;return(0,s.jsxs)("div",{className:"mb-3",children:[(0,s.jsx)("div",{className:"text-xs font-semibold uppercase tracking-wider px-2 py-1.5 ".concat("dark"===n?"text-[#818384]":"text-gray-400"),children:a}),(0,s.jsx)("div",{className:"space-y-1",children:r.map(e=>{let a=t===e.id;return(0,s.jsxs)("button",{onClick:()=>v(e.id),className:"w-full flex items-center gap-2 px-3 py-2 rounded-lg text-sm transition-all ".concat(a?"".concat(e.color," text-white"):"dark"===n?"hover:bg-[#272729] text-[#D7DADC]":"hover:bg-gray-100 text-gray-700"),children:[(0,s.jsx)(z.ZP,{variant:Q(e.id),size:26}),(0,s.jsxs)("div",{className:"flex-1 text-left",children:[(0,s.jsx)("div",{className:"font-medium",children:e.name}),(0,s.jsx)("div",{className:"text-xs ".concat(a?"text-white/70":"dark"===n?"text-[#818384]":"text-gray-400"),children:e.description})]}),a&&(0,s.jsx)(K.Z,{className:"w-4 h-4"})]},e.id)})})]},a)})})]})]})}var et=a(9008),ea=a.n(et),es=a(41664),er=a.n(es),el=a(85412),en=a(7117),ei=a(44976),eo=a(47935),ec=a(15432),ed=a(31111),eu=a(39793),em=a(26915);function ep(){var e,t,a,c;let d=(0,F.useRouter)(),{theme:u,mounted:m}=(0,i.F)(),{data:p,status:g}=(0,N.useSession)(),[h,x]=(0,r.useState)([]),b=(0,r.useRef)(!1),[y,v]=(0,r.useState)(!0),[j,k]=(0,r.useState)("Finding best matching jobs..."),[w,C]=(0,r.useState)(""),[S,E]=(0,r.useState)(""),[_,I]=(0,r.useState)(null),[L,T]=(0,r.useState)([]),[M,Z]=(0,r.useState)(!1),[R,B]=(0,r.useState)(null),[J,O]=(0,r.useState)(!1),[W,$]=(0,r.useState)(new Set),[K,Q]=(0,r.useState)(new Set),[X,et]=(0,r.useState)(!1),es=(0,r.useRef)(!1),[ep,eg]=(0,r.useState)(null),[eh,ex]=(0,r.useState)(""),[eb,ef]=(0,r.useState)(""),[ey,ev]=(0,r.useState)(!1),[ej,ek]=(0,r.useState)(!1);(0,r.useEffect)(()=>{try{window.localStorage.getItem("tr_tool_guide_dismissed")||ek(!0)}catch(e){ek(!0)}},[]);let ew=(0,r.useCallback)(()=>{ek(!1);try{window.localStorage.setItem("tr_tool_guide_dismissed","1")}catch(e){}},[]);(0,r.useEffect)(()=>{es.current=X},[X]),(0,r.useEffect)(()=>{to.current=M},[M]),(0,r.useEffect)(()=>{tc.current=y},[y]);let eN=(0,r.useCallback)(e=>{ti.current=e,e8(e)},[]),[eF,eC]=(0,r.useState)(0),[eS,eE]=(0,r.useState)(0),[eD,e_]=(0,r.useState)(0),[eI,eA]=(0,r.useState)("all"),[eL,eT]=(0,r.useState)(0),[eM,ez]=(0,r.useState)("all"),[eZ,eq]=(0,r.useState)(!1),[eP,eR]=(0,r.useState)(!1),[eB,eJ]=(0,r.useState)(null),[eU,eO]=(0,r.useState)(""),[eW,eH]=(0,r.useState)(""),[eV,e$]=(0,r.useState)(""),[eY,eG]=(0,r.useState)(""),[eK,eQ]=(0,r.useState)(""),[eX,e0]=(0,r.useState)(""),[e1,e2]=(0,r.useState)(""),e5=(0,r.useRef)(null),e3=(0,r.useRef)(null),e4=(0,r.useRef)(null),[e7,e8]=(0,r.useState)(!0),[e6,e9]=(0,r.useState)(!1),[te,tt]=(0,r.useState)(!1),[ta,ts]=(0,r.useState)(null),tr=(0,r.useRef)(null),tl=(0,r.useRef)(!1),tn=(0,r.useRef)(!1),ti=(0,r.useRef)(!0),to=(0,r.useRef)(!1),tc=(0,r.useRef)(!0),td=(0,r.useRef)([]),tu=(0,r.useRef)(null),tm=(0,r.useRef)(!1),tp=(0,r.useRef)(!0),tg=(0,r.useRef)(null),th=(0,r.useRef)(!1),tx=(0,r.useRef)([]),tb=(0,r.useRef)(0),[tf,ty]=(0,r.useState)(!1),[tv,tj]=(0,r.useState)(!1);(0,r.useLayoutEffect)(()=>
1{if(window.location.search.includes("skipLoader")||"true"===d.query.skipLoader){b.current=!0,v(!1);{let e=new URL(window.location.href);e.searchParams.delete("skipLoader"),e.searchParams.delete("t"),e.searchParams.delete("countryChanged"),window.history.replaceState({},"",e.pathname+e.search)}}},[d.query.skipLoader]),(0,r.useEffect)(()=>{try{let e=localStorage.getItem("trueresume_role_preference");e&&(eJ(e),tw(e))}catch(e){}},[]),(0,r.useEffect)(()=>()=>{e5.current&&e5.current.abort(),tg.current&&tg.current.abort(),tN.current&&clearTimeout(tN.current),e3.current&&clearTimeout(e3.current),e4.current&&clearTimeout(e4.current)},[]);let[tk,tw]=(0,r.useState)(null),tN=(0,r.useRef)(null);(0,r.useEffect)(()=>(tN.current&&clearTimeout(tN.current),tN.current=setTimeout(()=>{tw(eB)},150),()=>{tN.current&&clearTimeout(tN.current)}),[eB]);let tF=(0,r.useRef)(null),tC=(0,r.useRef)(null);(0,r.useEffect)(()=>{let e=e=>{var t;let a=e.target.closest(".overflow-y-auto");if(a&&a!==e.currentTarget){let t=a.scrollHeight>a.clientHeight,s=e.deltaY>0,r=e.deltaY<0,l=0===a.scrollTop,n=a.scrollTop+a.clientHeight>=a.scrollHeight-1;if(t&&(s&&!n||r&&!l)){e.preventDefault(),e.stopPropagation(),a.scrollTop+=e.deltaY;return}}e.preventDefault(),e.stopPropagation();let s=null===(t=e.currentTarget)||void 0===t?void 0:t.querySelector(".overflow-y-auto, .filter-scrollbar");s&&!a&&(s.scrollTop+=e.deltaY)},t=tF.current,a=tC.current;return t&&t.addEventListener("wheel",e,{passive:!1}),a&&a.addEventListener("wheel",e,{passive:!1}),()=>{t&&t.removeEventListener("wheel",e),a&&a.removeEventListener("wheel",e)}},[]),(0,r.useEffect)(()=>{tx.current=h},[h]),(0,r.useEffect)(()=>(e3.current&&clearTimeout(e3.current),e3.current=setTimeout(()=>{e0(eU)},300),()=>{e3.current&&clearTimeout(e3.current)}),[eU]),(0,r.useEffect)(()=>(e4.current&&clearTimeout(e4.current),e4.current=setTimeout(()=>{e2(eW)},300),()=>{e4.current&&clearTimeout(e4.current)}),[eW]);let tS=(e,t)=>{if(!e&&!t)return[];let a="".concat(t||""," ").concat(e||"").toLowerCase(),s=[];for(let e of["c#","csharp","c sharp",".net","dotnet","asp.net","aspnet",".net core","dotnet core","asp.net core","asp.net mvc","entity framework","ef core","linq","wcf","wpf","xaml","mvvm","prism","winforms","blazor","maui","xamarin","caliburn.micro","typescript","javascript","html5","html","css3","css","sass","scss","less","react","angular","vue","vue.js","react.js","next.js","nuxt","svelte","redux","mobx","webpack","vite","babel","python","java","golang","go","node","node.js","express","nestjs","django","flask","fastapi","spring","spring boot","hibernate","sql","sql server","mysql","postgresql","postgres","oracle","mongodb","nosql","redis","elasticsearch","cassandra","dynamodb","aws","azure","gcp","docker","kubernetes","k8s","jenkins","gitlab","github actions","terraform","ansible","ci/cd","devops","rest","restful","api","graphql","grpc","microservices","soa","clean architecture","solid","design patterns","ios","android","swift","kotlin","flutter","react native","machine learning","ml","ai","artificial intelligence","tensorflow","pytorch","pandas","numpy","scikit-learn","data science","agile","scrum","kanban","jira","git","github","gitlab","bitbucket"]){let t=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/\s+/g,"\\s+");RegExp("\\b".concat(t,"\\b"),"i").test(a)&&s.push(e)}return[...new Set(s)]},tE=e=>{if(!e||!Array.isArray(e))return[];let t=[/\b(bachelor'?s?|master'?s?|phd|doctorate|degree|diploma|university|college|graduate|undergraduate|bs|ms|mba|certification|certified|education|academic|gpa|cgpa)\b/i,/\b(years?\s*(of)?\s*experience|experience\s*in|minimum|required|preferred|must\s*have|strong|excellent|good|proficient|knowledge\s*of)\b/i,/\b(communication|teamwork|leadership|problem[\s-]?solving|analytical|interpersonal|organizational|self[\s-]?motivated|detail[\s-]?oriented|ability\s*to)\b/i,/\b(computer\s*science|information\s*technology|engineering\s*degree|related\s*field|equivalent\s*experience|stem|science|mathematics)\b/i];return e.filter(e=>{if(!e||"string"!=typeof e)return!1;let a=e.trim();if(a.length<2||a.length>50)return!1;for(let e of t)if(e.test(a))return!1;return!/^[\d\s\-_.,;:!?]+$/.test(a)&&!((a.match(/\s/g)||[]).length>4)})},tD=(0,r.useMemo)(()=>{let e=new Map,t=e=>e?e.toLowerCase().trim().replace(/asp\.net\s*core/gi,"aspnetcore").replace(/asp\.net\s*mvc/gi,"aspnetmvc").replace(/asp\.net/gi,"aspnet").replace(/\.net\s*core/gi,"dotnetcore").replace(/\.net\s*framework/gi,"dotnetframework").replace(/\.net/gi,"dotnet").replace(/c#/gi,"csharp").replace(/c\+\+/gi,"cpp").replace(/[^a-z0-9]+/g,""):"";for(let[a,s]of Object.entries({javascript:["js","ecmascript","es6","es2015","es2016","es2017","es2018","es2019","es2020","es2021","es2022","es2023","ecma script"],typescript:["ts","type script"],react:["reactjs","react.js","react js"],angular:["angularjs","angular.js","angular js","angular 2","angular2"],vue:["vuejs","vue.js","vue js"],node:["nodejs","node.js","node js"],express:["expressjs","express.js","express js"],next:["nextjs","next.js","next js"],nuxt:["nuxtjs","nuxt.js","nuxt js"],python:["py","python3","python 3"],java:["java 8","java8","java 11","java11","java 17","java17"],golang:["go","go lang"],csharp:["c#","c sharp","c-sharp"],cpp:["c++","cplusplus","c plus plus"],dotnet:[".net","dot net","dotnetframework",".net framework"],dotnetcore:[".net core","dot net core","netcore","net core"],aspnet:["asp.net","asp net","aspnetmvc","asp.net mvc"],aspnetcore:["asp.net core","as
1p net core"],entityframework:["entity framework","ef","ef core","ef6"],sql:["t-sql","tsql","structured query language"],sqlserver:["sql server","mssql","ms sql","microsoft sql server"],mysql:["my sql"],postgresql:["postgres","postgre","pgsql","pg"],mongodb:["mongo","mongo db"],redis:["redis db","redisdb"],docker:["docker container","containerization"],kubernetes:["k8s","kube"],aws:["amazon web services","amazon aws"],azure:["microsoft azure","ms azure","azure cloud"],gcp:["google cloud","google cloud platform"],cicd:["ci/cd","ci cd","continuous integration","continuous deployment","continuous delivery"],git:["github","gitlab","bitbucket","version control"],restapi:["rest api","rest","restful","restful api"],graphql:["graph ql"],microservices:["micro services","micro-services","microservice architecture"],agile:["agile methodology","scrum","kanban"],"machine learning":["ml","machinelearning"],"artificial intelligence":["ai","artificialintelligence"],tensorflow:["tensor flow"],pytorch:["py torch"]})){let r=t(a);for(let a of(e.set(r,r),s))e.set(t(a),r)}return{map:e,normalize:t}},[]),t_=(0,r.useCallback)((e,t)=>{if(!t||0===t.length)return 0;let a=tE(e.skills&&e.skills.length>0?e.skills:e.aiExtractedSkills||[]);
1if(0===a.length&&(e.description||e.shortDescription||e.title)&&(a=tS(e.description||e.shortDescription||"",e.title||"")),0===a.length)return 0;let{map:s,normalize:r}=tD,l=new Set;for(let e of t){let t=r(e);l.add(t);let a=s.get(t);a&&l.add(a)}let n=0,i=new Set;for(let e of a){let t=r(e);if(i.has(t))continue;let a=s.get(t)||t;if(l.has(t)||l.has(a)){n+=1,i.add(t);continue}let o=!1;for(let e of l){if(e.length<3)continue;let a=t.length>e.length?t:e,s=t.length>e.length?e:t;if(s.length>=3&&a.includes(s)){n+=.85,i.add(t),o=!0;break}}if(o)continue;let c=t.split(/[^a-z0-9]+/).filter(e=>e.length>2);if(c.length>0)for(let e of l){let a=e.split(/[^a-z0-9]+/).filter(e=>e.length>2),s=c.filter(e=>a.includes(e));if((s.length>=2||1===s.length&&1===c.length)&&s.length/Math.max(c.length,a.length)>=.5){n+=.75,i.add(t);break}}}return Math.round(n/a.length*100)},[tD]),tI=(0,r.useCallback)((e,t)=>{if(!t||0===t.length)return[...e].sort((e,t)=>{let a=new Date(e.postedDate||e.createdAt||0).getTime();return new Date(t.postedDate||t.createdAt||0).getTime()-a});let a=Date.now(),s=e.map(e=>{let s=t_(e,t),r=new Date(e.postedDate||e.createdAt||0).getTime(),l=Math.max(0,(a-r)/864e5),n=0;l<=1?n=50:l<=2?n=40:l<=3?n=30:l<=5?n=20:l<=7&&(n=10);let i=s+n;return{job:e,skillScore:s,dateTimestamp:r,compositeScore:i,hasMatch:s>0}});return s.sort((e,t)=>{if(e.hasMatch&&!t.hasMatch)return -1;if(!e.hasMatch&&t.hasMatch)return 1;if(e.hasMatch&&t.hasMatch){let a=t.compositeScore-e.compositeScore;if(0!==a)return a}return t.dateTimestamp-e.dateTimestamp}),s.map(e=>e.job)},[t_]);(0,r.useEffect)(()=>{var e;let t=()=>{if(document.hidden){let e=sessionStorage.getItem("last_applied_job");e&&sessionStorage.setItem("left_page_".concat(e),"true");return}if(requestAnimationFrame(()=>{if(es.current)return;let e=sessionStorage.getItem("last_applied_job");if(!e||"true"===sessionStorage.getItem("confirm_dismissed_".concat(e)))return;let t=sessionStorage.getItem("left_page_".concat(e)),a=sessionStorage.getItem("apply_clicked_".concat(e)),s=sessionStorage.getItem("last_applied_job_ts"),r=!!s&&Date.now()-Number(s)<3e5;if("true"===t&&"true"===a&&r){let t=sessionStorage.getItem("last_applied_job_meta"),a="",s="";try{if(t){let e=JSON.parse(t);a=e.title||"",s=e.companyName||""}}catch(e){}eg(e),ex(a),ef(s),et(!0),sessionStorage.removeItem("left_page_".concat(e))}}),(0,em.Cv)("\uD83D\uDC41ï¸ [handleVisibility] Page visible, jobs:",tx.current.length,"auth:",M),tx.current.length>0&&M){let e=tx.current.map(e=>e.jobId);(0,em.Cv)("\uD83D\uDC41ï¸ [handleVisibility] Refreshing batch status for",e.length,"jobs"),tT(e,!1)}};document.addEventListener("visibilitychange",t);let a=null,s=()=>{"visible"===document.visibilityState&&(a&&clearTimeout(a),a=setTimeout(()=>{es.current||t()},300))};window.addEventListener("focus",s);let r=e=>{if("open_my_jobs"===e.key&&e.newValue)try{let t=JSON.parse(e.newValue);t&&t.open&&ev(!0)}catch(e){ev(!0)}};window.addEventListener("storage",r);let l=null;try{"undefined"!=typeof BroadcastChannel&&(l=new BroadcastChannel("apply-events")).addEventListener("message",e=>{let t=e.data;t&&"open_my_jobs"===t.type&&ev(!!t.open)})}catch(e){l=null}try{"visible"===document.visibilityState&&t()}catch(e){}let n=()=>{var e;M&&(S||(null==p?void 0:null===(e=p.user)||void 0===e?void 0:e.email))&&tL(!0)};window.addEventListener("jobStatsChanged",n);let i=e=>{(0,em.Cv)("\uD83D\uDD00 [routeChange] URL:",e,"jobs:",tx.current.length,"auth:",M),"/jobs"===e&&setTimeout(()=>{if(tx.current.length>0&&M){let e=tx.current.map(e=>e.jobId);(0,em.Cv)("\uD83D\uDD00 [routeChange] Refreshing batch status for",e.length,"jobs"),tT(e,!1)}else(0,em.Cv)("\uD83D\uDD00 [routeChange] No jobs to refresh yet")},100)};return null===(e=d.events)||void 0===e||e.on("routeChangeComplete",i),()=>{var e;window.removeEventListener("jobStatsChanged",n),document.removeEventListener("visibilitychange",t),window.removeEventListener("focus",s),window.removeEventListener("storage",r),null===(e=d.events)||void 0===e||e.off("routeChangeComplete",i),a&&clearTimeout(a),l&&l.close()}},[M,S,null==p?void 0:null===(e=p.user)||void 0===e?void 0:e.email]),(0,r.useEffect)(()=>
1{if(!tr.current||!e7||y)return;let e=new IntersectionObserver(e=>{e[0].isIntersecting&&ti.current&&tl.current&&!tn.current&&tz()},{threshold:0,rootMargin:"2000px"});return e.observe(tr.current),()=>e.disconnect()},[e7,y,h.length]);let tA=async()=>{ty(!0),I(new Date),ts(null),eN(!0),tl.current=!1,M&&tL(),await tZ(!0),ty(!1)};(0,r.useEffect)(()=>{if("loading"!==g){if("unauthenticated"===g){d.push("/login?redirect=/jobs");return}if("authenticated"===g&&(null==p?void 0:p.user)){Z(!0),to.current=!0;let t=p.user.email;if(!t){d.push("/login?redirect=/jobs&error=no_email");return}E(t);try{localStorage.setItem("userId",t)}catch(e){}async function e(){try{let e=await fetch("/api/profile/save?userId=".concat(encodeURIComponent(p.user.email))),t=await e.json();if(t.success&&t.profile){B(t.profile);let e=t.profile.skills||{},a=[...e.primary||[],...e.secondary||[],...e.tools||[],...e.domains||[]];T(a),O(!0)}else T([]),O(!0)}catch(e){(0,em.V3)("Failed to load CareerProfile:",e),T([]),O(!0)}}th.current?tL():(th.current=!0,e(),tL(),fetch("/api/subscription/status").then(e=>e.ok?e.json():null).then(e=>{if(null==e?void 0:e.subscription){let t=e.subscription.plan,a=e.subscription.status;eq(("pro"===t||"enterprise"===t)&&("active"===a||"trialing"===a))}}).catch(()=>{}),tZ())}}},[g,p,d]),(0,r.useEffect)(()=>{var e;if("authenticated"===g&&(null==p?void 0:null===(e=p.user)||void 0===e?void 0:e.email))try{let e=JSON.parse(localStorage.getItem("viewedJobs")||"[]");Array.isArray(e)&&e.length>0&&function(e){if(!(null==e?void 0:e.length))return;let t=[...new Set(e.map(e=>null==e?void 0:e.trim()).filter(Boolean))].slice(0,400);t.length&&(async()=>{let e=!1,a=0;for(;a<t.length;){let s=t.slice(a,a+250);await q(s,!1)&&(e=!0),a+=250}e&&window.dispatchEvent(new CustomEvent("jobStatsChanged"))})()}(e)}catch(e){}},[g,null==p?void 0:null===(t=p.user)||void 0===t?void 0:t.email]),(0,r.useEffect)(()=>{th.current&&h.length>0&&M&&0===K.size&&0===W.size&&tT(h.map(e=>e.jobId),!1)},[h.length]);let tL=(0,r.useCallback)(async function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(to.current)try{let t=0;try{let e=localStorage.getItem("viewedJobs")||"[]",a=JSON.parse(e);t=Array.isArray(a)?a.length:0}catch(e){}let a=await fetch("/api/jobs/stats?viewed=".concat(t).concat(e?"&bustCache=true":""));if(a.ok){let e=await a.json();if(e.success&&e.stats){let{totalJobs:a,applied:s,saved:r,viewed:l}=e.stats;eT(a||0),eC(s||0),eE(r||0),e_(l||t||0)}else e_(t)}else e_(t)}catch(e){try{let e=localStorage.getItem("viewedJobs")||"[]",t=JSON.parse(e);e_(Array.isArray(t)?t.length:0)}catch(e){e_(0)}}},[]),tT=async function(e){var t,a,s,r;let l=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!M||!(null==p?void 0:null===(t=p.user)||void 0===t?void 0:t.email)||0===e.length){(0,em.Cv)("\uD83D\uDD04 [fetchBatchStatus] Skipped - auth:",M,"email:",!!(null==p?void 0:null===(a=p.user)||void 0===a?void 0:a.email),"jobIds:",e.length);return}let n=Date.now();if(n-tb.current<1e3){(0,em.Cv)("\uD83D\uDD04 [fetchBatchStatus] Throttled - last fetch was",n-tb.current,"ms ago");return}tb.current=n,(0,em.Cv)("\uD83D\uDD04 [fetchBatchStatus] Fetching status for",e.length,"jobs, skipCache:",l);try{let t=await fetch("/api/jobs/batch-status",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({jobIds:e,skipCache:l})});if(t.ok){let e=await t.json();(0,em.Cv)("\uD83D\uDD04 [fetchBatchStatus] Response:",{applied:(null===(s=e.appliedJobIds)||void 0===s?void 0:s.length)||0,saved:(null===(r=e.savedJobIds)||void 0===r?void 0:r.length)||0}),e.appliedJobIds&&($(t=>{let a=new Set(t);return e.appliedJobIds.forEach(e=>a.add(e)),a}),(0,em.Cv)("â
[fetchBatchStatus] Applied IDs merged:",e.appliedJobIds.length)),e.savedJobIds&&(Q(t=>{let a=new Set(t);return e.savedJobIds.forEach(e=>a.add(e)),a}),(0,em.Cv)("â
[fetchBatchStatus] Saved IDs merged:",e.savedJobIds.length))}else(0,em.V3)("â [fetchBatchStatus] Response not OK:",t.status)}catch(e){(0,em.V3)("â [fetchBatchStatus] Error:",e)}};(0,r.useEffect)(()=>{M&&th.current&&(x([]),ts(null),eN(!0),tl.current=!1,td.current=[],tu.current=null,tp.current=!0,tm.current=!1,tg.current&&(tg.current.abort(),tg.current=null),$(new Set),Q(new Set),"all"!==eI&&tL(),tZ(!0))},[eX,e1,eV,eY,eK,eI,tk,eM]),(0,r.useEffect)(()=>{J&&L.length>0&&h.length>0&&!tk&&x(e=>tI([...e],L))},[J]);let tM=async e=>{var t,a;if(tm.current||!tp.current||!e)return;
1tm.current=!0,tg.current&&tg.current.abort(),tg.current=new AbortController;let s=tg.current.signal;try{let a=new URLSearchParams;eX&&a.append("search",eX),e1&&a.append("location",e1),eV&&a.append("jobType",eV),eY&&a.append("experienceLevel",eY),eK&&a.append("timeFilter",eK),a.append("limit","30"),"career"===eM&&a.append("sourceFilter","career"),tk&&a.append("userPreference",tk);let r=localStorage.getItem("userCountry");r&&["USA","India","UK"].includes(r)&&a.append("userCountry",r),L&&L.length>0&&a.append("userSkills",L.slice(0,20).join(",")),a.append("cursor",e);let l=null;for(let e=0;e<3;e++){if(l=await fetch("/api/jobs?".concat(a.toString()),{signal:s}),s.aborted)return;if(429!==l.status)break;let t=parseInt(l.headers.get("Retry-After")||"0",10),r=Math.max(1e3*t,2**e*1e3);if(await new Promise(e=>setTimeout(e,r)),s.aborted)return}if(!l||!l.ok)return;let n=await l.json();if(s.aborted)return;if(n.success&&n.jobs&&n.jobs.length>0){td.current=n.jobs,tu.current=n.nextCursor||null,tp.current=!0===n.hasMore;let e=n.jobs.map(e=>e.jobId);e.length>0&&M&&(null==p?void 0:null===(t=p.user)||void 0===t?void 0:t.email)&&fetch("/api/jobs/batch-status",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({jobIds:e})}).then(e=>e.json()).then(e=>{e.appliedJobIds&&$(t=>{let a=new Set(t);return e.appliedJobIds.forEach(e=>a.add(e)),a}),e.savedJobIds&&Q(t=>{let a=new Set(t);return e.savedJobIds.forEach(e=>a.add(e)),a})}).catch(()=>{})}else tp.current=!1}catch(e){if((null==e?void 0:e.name)==="AbortError")return}finally{tm.current=!1,(null===(a=td.current)||void 0===a?void 0:a.length)>0&&tr.current&&!tn.current&&ti.current&&tl.current&&!tc.current&&requestAnimationFrame(()=>{tr.current&&!tn.current&&tr.current.getBoundingClientRect().top<window.innerHeight+2e3&&tz()})}},tz=async()=>{if(tn.current||!ti.current||tc.current||!tl.current)return;tn.current=!0,(0,l.flushSync)(()=>{e9(!0),tt(!0)});let e=()=>{tt(!1),e9(!1),tn.current=!1};if(td.current.length>0){let t=L&&L.length>0?[...L]:[],a=td.current;x(e=>{let s=new Set(e.map(e=>e.jobId)),r=a.filter(e=>!s.has(e.jobId));return tk?[...e,...r]:[...e,...tI(r,t)]}),tu.current&&ts(tu.current),eN(tp.current);let s=tu.current;td.current=[],tu.current=null,e(),s&&tp.current&&tM(s);return}if(tm.current){e();return}try{await tZ(!1)}finally{e()}},tZ=async function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];e5.current&&e5.current.abort(),e5.current=new AbortController;let t=e5.current.signal;k("Finding best matching jobs...");let a=[];e&&[{delay:5e3,msg:"Searching across thousands of listings..."},{delay:1e4,msg:"Still searching â this is taking longer than usual..."},{delay:15e3,msg:"Almost there â narrowing down results..."}].forEach(e=>{let{delay:s,msg:r}=e,l=setTimeout(()=>{t.aborted||k(r)},s);a.push(l)}),e?(b.current||v(!0),x([]),ts(null),b.current=!1):e9(!0),C("");let s=!1;try{if("applied"===eI){if(!S){C("Please sign in to view applied jobs"),x([]),eN(!1);return}let a=!e&&ta?"&cursor=".concat(encodeURIComponent(ta)):"",s=await fetch("/api/jobs/applications?userId=".concat(encodeURIComponent(S),"&status=applied&limit=").concat(30).concat(a),{signal:t});if(t.aborted)return;if(!s.ok){if(429===s.status){let r=parseInt(s.headers.get("Retry-After")||"2",10);await new Promise(e=>setTimeout(e,1e3*r));let l=await fetch("/api/jobs/applications?userId=".concat(encodeURIComponent(S),"&status=applied&limit=").concat(30).concat(a),{signal:t});if(t.aborted)return;if(!l.ok)throw Error("Applications API error: ".concat(l.status));let n=await l.json();if(n.success&&n.applications){let a=n.applications.map(e=>e.jobId).filter(Boolean);if(a.length>0){let s=await fetch("/api/jobs?jobIds=".concat(a.join(",")),{signal:t});if(t.aborted)return;if(s.ok){let t=await s.json();if(t.success){let a=(t.jobs||[]).map(e=>(e.atsSystem||(e.atsSystem="direct"),e.jobType||(e.jobType="full-time"),e.location||(e.location="Remote"),e.locationType||(e.locationType="remote"),e.salaryCurrency||(e.salaryCurrency="USD"),{...e,hasApplied:!0}));e?x(a):x(e=>[...e,...a]),a.length>0&&ts(a[a.length-1].jobId),eN(n.hasMore||a.length>=30)}}}}return}throw Error("Applications API error: ".concat(s.status))}let r=await s.json();if(r.success&&r.applications){let a=r.applications.map(e=>
1e.jobId).filter(Boolean);if(a.length>0){let s=await fetch("/api/jobs?jobIds=".concat(a.join(",")),{signal:t});if(t.aborted)return;if(!s.ok){if(429===s.status){let l=parseInt(s.headers.get("Retry-After")||"2",10);await new Promise(e=>setTimeout(e,1e3*l));let n=await fetch("/api/jobs?jobIds=".concat(a.join(",")),{signal:t});if(t.aborted)return;if(n.ok){let t=await n.json();if(t.success){let a=(t.jobs||[]).map(e=>(e.atsSystem||(e.atsSystem="direct"),e.jobType||(e.jobType="full-time"),e.location||(e.location="Remote"),e.locationType||(e.locationType="remote"),e.salaryCurrency||(e.salaryCurrency="USD"),{...e,hasApplied:!0}));e?x(a):x(e=>[...e,...a]),a.length>0&&ts(a[a.length-1].jobId),eN(r.hasMore||a.length>=30)}}return}throw Error("Jobs batch API error: ".concat(s.status))}let l=await s.json();if(l.success){let t=(l.jobs||[]).map(e=>(e.atsSystem||(e.atsSystem="direct"),e.jobType||(e.jobType="full-time"),e.location||(e.location="Remote"),e.locationType||(e.locationType="remote"),e.salaryCurrency||(e.salaryCurrency="USD"),{...e,hasApplied:!0}));e?x(t):x(e=>[...e,...t]),t.length>0&&ts(t[t.length-1].jobId),eN(r.hasMore||t.length>=30)}else e&&(C("No jobs found for your applications"),x([])),eN(!1)}else e&&x([]),eN(!1)}else e&&(C(r.message||"Failed to load applied jobs"),x([])),eN(!1)}else if("saved"===eI){let a=!e&&ta?"&cursor=".concat(encodeURIComponent(ta)):"",s=await fetch("/api/jobs/saved?limit=".concat(30).concat(a),{signal:t});if(t.aborted)return;if(!s.ok){if(429===s.status){let r=parseInt(s.headers.get("Retry-After")||"2",10);await new Promise(e=>setTimeout(e,1e3*r));let l=await fetch("/api/jobs/saved?limit=".concat(30).concat(a),{signal:t});if(t.aborted)return;if(l.ok){let t=await l.json();if(t.success&&t.savedJobs){let a=t.savedJobs.map(e=>e.job).filter(e=>!!e&&!!e.title&&!!e.companyName&&(e.atsSystem||(e.atsSystem="direct"),e.jobType||(e.jobType="full-time"),e.location||(e.location="Remote"),e.locationType||(e.locationType="remote"),e.salaryCurrency||(e.salaryCurrency="USD"),!0));e?x(a):x(e=>[...e,...a]),a.length>0&&ts(a[a.length-1].jobId),eN(t.hasMore||a.length>=30)}}return}throw Error("Saved jobs API error: ".concat(s.status))}let r=await s.json();if(r.success&&r.savedJobs){let t=r.savedJobs.map(e=>e.job).filter(e=>!!e&&!!e.title&&!!e.companyName&&(e.atsSystem||(e.atsSystem="direct"),e.jobType||(e.jobType="full-time"),e.location||(e.location="Remote"),e.locationType||(e.locationType="remote"),e.salaryCurrency||(e.salaryCurrency="USD"),!0));e?x(t):x(e=>[...e,...t]),t.length>0&&ts(t[t.length-1].jobId),eN(r.hasMore||t.length>=30)}else e&&(C(r.message||"Failed to load saved jobs"),x([])),eN(!1)}else if("viewed"===eI){let a=JSON.parse(localStorage.getItem("viewedJobs")||"[]");if(a.length>0){let s=e?0:h.length,r=a.slice(s,s+30);if(0===r.length){eN(!1);return}let l=await fetch("/api/jobs?jobIds=".concat(r.join(",")),{signal:t});if(t.aborted)return;if(!l.ok){if(429===l.status){let n=parseInt(l.headers.get("Retry-After")||"2",10);await new Promise(e=>setTimeout(e,1e3*n));let i=await fetch("/api/jobs?jobIds=".concat(r.join(",")),{signal:t});if(t.aborted)return;if(i.ok){let t=await i.json();if(t.success){let r=(t.jobs||[]).map(e=>(e.atsSystem||(e.atsSystem="direct"),e.jobType||(e.jobType="full-time"),e.location||(e.location="Remote"),e.locationType||(e.locationType="remote"),e.salaryCurrency||(e.salaryCurrency="USD"),e));e?x(r):x(e=>[...e,...r]),eN(s+30<a.length)}}return}throw Error("Viewed jobs API error: ".concat(l.status))}let n=await l.json();if(n.success){let t=(n.jobs||[]).map(e=>(e.atsSystem||(e.atsSystem="direct"),e.jobType||(e.jobType="full-time"),e.location||(e.location="Remote"),e.locationType||(e.locationType="remote"),e.salaryCurrency||(e.salaryCurrency="USD"),e));e?x(t):x(e=>[...e,...t]),eN(s+30<a.length)}else e&&(C("Failed to load viewed jobs"),x([])),eN(!1)}else e&&x([]),eN(!1)}else{let a=new URLSearchParams;eX&&a.append("search",eX),e1&&a.append("location",e1),eV&&a.append("jobType",eV),eY&&a.append("experienceLevel",eY),eK&&a.append("timeFilter",eK),"career"===eM&&a.append("sourceFilter","career"),a.append("limit","30"),tk&&a.append("userPreference",tk);let r=localStorage.getItem("userCountry");r&&["USA","India","UK"].includes(r)&&a.append("userCountry",r),L&&L.length>0&&a.append("userSkills",L.slice(0,20).join(",")),!e&&ta&&a.append("cursor",ta);let l=setTimeout(()=>{if(!t.aborted){var e;s=!0,null===(e=e5.current)||void 0===e||e.abort()}},2e4),n=null;try{for(let e=0;e<3;e++){if(n=await fetch("/api/jobs?".concat(a.toString()),{signal:t}),t.aborted){if(clearTimeout(l),s)throw Error("__TIMEOUT__");return}if(429!==n.status)break;let r=parseInt(n.headers.get("Retry-After")||"0",10),i=Math.max(1e3*r,2**e*1e3);if(await new Promise(e=>
1setTimeout(e,i)),t.aborted){if(s)throw Error("__TIMEOUT__");return}}}finally{clearTimeout(l)}if(!n||!n.ok)throw Error("API error: ".concat((null==n?void 0:n.status)||"unknown"));let i=await n.json();if(i.timedOut){e&&(x([]),C(i.message||"No jobs available for your selected filters. Stay tuned!"),eN(!1));return}if(i.success){let t=i.jobs||[],a=i.nextCursor||null,s=L&&L.length>0?[...L]:[],r=t.map(e=>e.jobId);if(r.length>0&&tT(r,e),e){if(tk)x(t);else{let e=tI(t,s);x(e)}tl.current=!0}else x(e=>{let a=new Set(e.map(e=>e.jobId)),r=t.filter(e=>!a.has(e.jobId));if(tk)return[...e,...r];{let t=tI(r,s);return[...e,...t]}});let l=a||(t.length>0?t[t.length-1].jobId:null);l&&(ts(l),td.current=[],tu.current=null,tp.current=!0,!1!==i.hasMore&&setTimeout(()=>tM(l),100)),eN(!0===i.hasMore)}else e&&C("Failed to load jobs"),eN(!1)}}catch(a){if((null==a?void 0:a.name)==="AbortError"||(null==t?void 0:t.aborted)||(null==a?void 0:a.message)==="__TIMEOUT__"||s){(s||(null==a?void 0:a.message)==="__TIMEOUT__")&&(C("No jobs available for your selected filters. Stay tuned!"),v(!1),k("Finding best matching jobs..."));return}e&&(C("An error occurred while fetching jobs. Please try again."),eN(!1))}finally{a.forEach(e=>clearTimeout(e)),(null==t?void 0:t.aborted)||(v(!1),k("Finding best matching jobs..."))}},tq=(0,r.useCallback)((e,t)=>{x(a=>a.map(a=>a.jobId===e?{...a,hasApplied:t}:a)),t?($(t=>new Set([...t,e])),eC(e=>e+1)):($(t=>{let a=new Set(t);return a.delete(e),a}),eC(e=>Math.max(0,e-1))),setTimeout(()=>{tL(!0)},500)},[]),tP=(0,r.useCallback)((e,t)=>{t?(Q(t=>new Set([...t,e])),eE(e=>e+1)):(Q(t=>{let a=new Set(t);return a.delete(e),a}),eE(e=>Math.max(0,e-1))),setTimeout(()=>{tL(!0)},500)},[]),tR=(0,r.useCallback)(()=>{if(ep){var e,t;sessionStorage.setItem("confirm_dismissed_".concat(ep),"true"),sessionStorage.removeItem("left_page_".concat(ep)),sessionStorage.removeItem("apply_clicked_".concat(ep)),sessionStorage.removeItem("last_applied_job"),sessionStorage.removeItem("last_applied_job_meta"),(null==p?void 0:null===(e=p.user)||void 0===e?void 0:e.email)&&fetch("/api/jobs/apply",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({jobId:ep,confirmed:!1,jobTitle:eh,companyName:eb})}).catch(()=>{});try{let e=JSON.parse(localStorage.getItem("viewedJobs")||"[]");!e.includes(ep)&&(e.push(ep),localStorage.setItem("viewedJobs",JSON.stringify(e)),e_(e.length),(null==p?void 0:null===(t=p.user)||void 0===t?void 0:t.email)&&P(ep))}catch(e){}setTimeout(()=>tL(!0),300)}et(!1),eg(null),ex(""),ef("")},[ep,eh,eb,null==p?void 0:null===(a=p.user)||void 0===a?void 0:a.email]),tB=(0,r.useCallback)(async(e,t)=>{var a,s;if(!ep||!(null==p?void 0:null===(a=p.user)||void 0===a?void 0:a.email))return;let r="submitting_".concat(ep);if("true"!==sessionStorage.getItem(r)){sessionStorage.setItem(r,"true");try{e&&tq(ep,!0);let a="".concat(p.user.email,"_").concat(ep,"_").concat(Date.now()),r=await fetch("/api/jobs/apply",{method:"POST",headers:{"Content-Type":"application/json","X-Idempotency-Key":a},body:JSON.stringify({jobId:ep,confirmed:e,notes:t,idempotencyKey:a,skipIfNotFound:!e,jobTitle:eh,companyName:eb})}),l=await r.json();if(r.ok&&l.success){if(e&&l.isNewConfirmation){tL(!0).catch(()=>{}),window.dispatchEvent(new CustomEvent("jobStatsChanged"));let t={type:"application_confirmed",jobId:ep,applied:e,isNewConfirmation:!0,ts:Date.now()};try{if("undefined"!=typeof BroadcastChannel){let e=new BroadcastChannel("apply-events");e.postMessage(t),e.close()}else localStorage.setItem("applied_event",JSON.stringify(t)),setTimeout(()=>localStorage.removeItem("applied_event"),100)}catch(e){}}else if(e&&l.wasAlreadyApplied);else{try{let e=JSON.parse(localStorage.getItem("viewedJobs")||"[]");!e.includes(ep)&&(e.push(ep),localStorage.setItem("viewedJobs",JSON.stringify(e)),e_(e.length),(null==p?void 0:null===(s=p.user)||void 0===s?void 0:s.email)&&P(ep))}catch(e){}tL(!0).catch(()=>{})}}else e&&tq(ep,!1),n.default.error(l.error||"Failed to confirm application. Please try again.")}catch(t){e&&tq(ep,!1),n.default.error("Network error occurred. Please check your connection and try again.")}finally{sessionStorage.removeItem(r),sessionStorage.removeItem("left_page_".concat(ep)),sessionStorage.removeItem("apply_clicked_".concat(ep)),sessionStorage.removeItem("last_applied_job"),sessionStorage.removeItem("last_applied_job_meta"),sessionStorage.removeItem("confirm_dismissed_".concat(ep)),et(!1),eg(null),ex(""),ef("")}}},[ep,null==p?void 0:null===(c=p.user)||void 0===c?void 0:c.email,tq,tL]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(ea(),{children:[(0,s.jsx)("title",{children:"Job Portal - Find Your Dream Job | TrueResume"}),(0,s.jsx)("meta",{name:"description",content:"Browse thousands of job opportunities from top companies. Apply directly to official job postings on Workday, Greenhouse, Lever, and more."}),(0,s.jsx)("meta",{name:"keywords",content:"jobs, careers, job search, apply jobs, workday jobs, greenhouse jobs"}),(0,s.jsx)("meta",{property:"og:type",content:"website"}),(0,s.jsx)("meta",{property:"og:url",content:"https://trueresume.ai/jobs"}),(0,s.jsx)("meta",{property:"og:title",content:"Job Portal - Find & Apply to Jobs | TrueResume"}),(0,s.jsx)("meta",{property:"og:description",content:"Browse thousands of job opportunities from top companies. Apply directly to official job postings."}),(0,s.jsx)("meta",{property:"og:image",content:"https://trueresume.ai/og-image.png"}),(0,s.jsx)("meta",{property:"og:site_name",content:"TrueResume"}),(0,s.jsx)("meta",{property:"og:locale",content:"en_US"}),(0,s.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,s.jsx)("meta",{name:"twitter:title",content:"Job Portal - Find Your Dream Job | TrueResume"}),(0,s.jsx)("meta",{name:"twitter:description",content:"Browse thousands of jobs from top companies. Apply directly to official postings."}),(0,s.jsx)("meta",{name:"twitter:image",content:"https://trueresume.ai/twitter-image.png"}),(0,s.jsx)("link",{rel:"canonical",href:"https://trueresume.ai/jobs"})]}),(0,s.jsx)(el.Z,{}),(0,s.jsxs)("div",{className:"min-h-screen pt-12 sm:pt-16 transition-all duration-200 \n ".concat(m?"opacity-100":"opacity-0","\n ").concat("dark"===u?"bg-[#060B14]":"bg-transparent","\n "),style:{backgroundColor:m?void 0:"transparent"},children:[(0,s.jsx)("div",{className:"fixed top-12 sm:top-16 left-0 right-0 z-40 shadow-lg border-b transition-colors duration-300 safe-area-inset xl:hidden nav-shimmer-border ".concat("dark"===u?"bg-[#1A1A1B] border-[#343536]":"bg-white border-[#
1EDEFF1]"),children:(0,s.jsx)("div",{className:"px-3 sm:px-6 lg:px-8 py-2 sm:py-3",children:(0,s.jsxs)("div",{className:"flex gap-2 items-center justify-between overflow-x-auto scrollbar-hide",children:[(0,s.jsxs)("div",{className:"flex gap-1.5 sm:gap-3 items-center flex-shrink-0",children:[M&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("button",{onClick:()=>{eA("all"),ez("all")},className:"flex items-center gap-1.5 sm:gap-2 px-3 sm:px-4 py-2.5 sm:py-2 rounded-full sm:rounded-xl text-xs sm:text-sm font-medium transition-all duration-200 whitespace-nowrap ".concat("all"===eI&&"all"===eM?"dark"===u?"bg-blue-600 text-white shadow-lg shadow-blue-500/30":"bg-blue-500 text-white shadow-lg shadow-blue-500/30":"dark"===u?"bg-[#272729] text-[#D7DADC] active:bg-[#343536]":"bg-gray-100 text-gray-700 active:bg-gray-200"),title:"All Jobs",children:[(0,s.jsx)(A.Z,{className:"w-4 h-4"}),(0,s.jsx)("span",{className:"hidden xs:inline sm:inline",children:"All"})]}),(0,s.jsxs)("button",{onClick:()=>{if(!eZ){eR(!0);return}eA("all"),ez("career")},className:"flex items-center gap-1 sm:gap-1.5 px-2.5 sm:px-3 py-2.5 sm:py-2 rounded-full sm:rounded-xl text-xs sm:text-sm font-medium transition-all duration-200 whitespace-nowrap relative ".concat("all"===eI&&"career"===eM?"dark"===u?"bg-[#CC3700] text-white shadow-lg shadow-[#FF4500]/30":"bg-[#FF4500] text-white shadow-lg shadow-[#FF4500]/30":"dark"===u?"bg-[#272729] text-[#D7DADC] active:bg-[#343536]":"bg-gray-100 text-gray-700 active:bg-gray-200"),title:"Career Page Jobs (Pro)",children:[(0,s.jsx)("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4"})}),(0,s.jsx)("span",{className:"hidden sm:inline",children:"Career"}),(0,s.jsxs)("span",{className:"inline-flex items-center gap-0.5 px-1 py-0 rounded-full text-[8px] sm:text-[9px] font-bold uppercase bg-gradient-to-r from-[#FF4500] to-orange-500 text-white shadow-sm animate-badge-shine",children:[(0,s.jsx)("svg",{className:"w-2 h-2",fill:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{d:"M12 2L15.09 8.26L22 9.27L17 14.14L18.18 21.02L12 17.77L5.82 21.02L7 14.14L2 9.27L8.91 8.26L12 2Z"})}),"PRO"]})]}),(0,s.jsxs)("button",{onClick:()=>eA("applied"),className:"flex items-center gap-1 sm:gap-2 px-3 sm:px-4 py-2.5 sm:py-2 rounded-full sm:rounded-xl text-xs sm:text-sm font-medium transition-all duration-200 whitespace-nowrap ".concat("applied"===eI?"dark"===u?"bg-green-600 text-white shadow-lg shadow-green-500/30":"bg-green-500 text-white shadow-lg shadow-green-500/30":"dark"===u?"bg-[#272729] text-[#D7DADC] active:bg-[#343536]":"bg-gray-100 text-gray-700 active:bg-gray-200"),title:"Applied Jobs",children:[(0,s.jsx)("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"})}),(0,s.jsx)("span",{className:"min-w-[1.25rem] text-center px-1 py-0.5 rounded-full text-[10px] sm:text-xs font-bold ".concat("applied"===eI?"bg-white":"dark"===u?"bg-[#343536]":"bg-gray-200"),children:eF})]}),(0,s.jsxs)("button",{onClick:()=>eA("saved"),className:"flex items-center gap-1 sm:gap-2 px-3 sm:px-4 py-2.5 sm:py-2 rounded-full sm:rounded-xl text-xs sm:text-sm font-medium transition-all duration-200 whitespace-nowrap ".concat("saved"===eI?"dark"===u?"bg-[#CC3700] text-white shadow-lg shadow-[#FF4500]/30":"bg-[#FF4500] text-white shadow-lg shadow-[#FF4500]/30":"dark"===u?"bg-[#272729] text-[#D7DADC] active:bg-[#343536]":"bg-gray-100 text-gray-700 active:bg-gray-200"),title:"Saved Jobs",children:[(0,s.jsx)("svg",{className:"w-4 h-4",fill:"saved"===eI?"currentColor":"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 5a2 2 0 012-2h10a2 2 0 012 2v16l-7-3.5L5 21V5z"})}),(0,s.jsx)("span",{className:"min-w-[1.25rem] text-center px-1 py-0.5 rounded-full text-[10px] sm:text-xs font-bold ".concat("saved"===eI?"bg-white":"dark"===u?"bg-[#343536]":"bg-gray-200"),children:eS})]}),(0,s.jsxs)("button",{onClick:()=>eA("viewed"),className:"flex items-center gap-1 sm:gap-2 px-3 sm:px-4 py-2.5 sm:py-2 rounded-full sm:rounded-xl text-xs sm:text-sm font-medium transition-all duration-200 whitespace-nowrap ".concat("viewed"===eI?"bg-[#FF4500] text-white shadow-lg shadow-[#FF4500]/20":"dark"===u?"bg-[#272729] text-[#D7DADC] active:bg-[#343536]":"bg-gray-100 text-gray-700 active:bg-gray-200"),title:"Viewed Jobs",children:[(0,s.jsxs)("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:[(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}),(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"})]}),(0,s.jsx)("span",{className:"min-w-[1.25rem] text-center px-1 py-0.5 rounded-full text-[10px] sm:text-xs font-bold ".concat("viewed"===eI?"bg-white":"dark"===u?"bg-[#343536]":"bg-gray-200"),children:eD})]}),(0,s.jsx)("button",{onClick:tA,disabled:y||tf,className:"flex items-center justify-center p-2.5 sm:px-3 sm:py-1.5 rounded-full sm:rounded-lg font-medium text-xs transition-all duration-200 disabled:opacity-50 disabled:cursor-not-allowed ".concat(y||tf?"dark"===u?"bg-[#272729]":"bg-gray-300":"dark"===u?"bg-gradient-to-r from-[#FF4500] to-blue-600 active:from-[#FF4500] active:to-blue-600 text-white shadow-lg shadow-[#FF4500]/15":"bg-gradient-to-r from-[#FF4500] to-[#CC3700] active:from-[#CC3700] active:to-[#B03000] text-white shadow-lg shadow-[#FF4500]/20"),title:"Refresh Jobs",children:(0,s.jsx)(ei.Z,{className:"w-4 h-4 ".concat(tf?"animate-spin":"")})})]}),!M&&(0,s.jsxs)("span",{className:"text-sm font-medium flex items-center gap-2 ".concat("dark"===u?"text-[#D7DADC]":"text-gray-700"),children:[(0,s.jsx)(A.Z,{className:"w-4 h-4"}),"Job Portal"]})]}),(0,s.jsxs)("div",{className:"hidden sm:flex items-center gap-3",children:[tf&&(0,s.jsxs)("div",{className:"flex items-center gap-1.5 text-xs ".concat("dark"===u?"text-[#FF4500]":"text-blue-600"),children:[(0,s.jsxs)("svg",{className:"animate-spin h-3 w-3",fill:"none",viewBox:"0 0 24 24",children:[(0,s.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,s.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,s.jsx)("span",{children:"Refreshing..."})]}),_&&!tf&&(0,s.jsxs)("div",{className:"flex items-center gap-1.5 text-xs ".concat("dark"===u?"text-[#818384]":"text-gray-500"),children:[(0,s.jsx)(f.Z,{className:"w-3 h-3"}),(0,s.jsxs)("span",{children:["Updated ",new Date(_).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})]})]})]})]})})}),(0,s.jsx)("div",{className:"px-4 sm:px-6 lg:px-8 py-4 mt-14 sm:mt-16 xl:mt-4",children:(0,s.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-[320px_1fr] xl:grid-cols-[320px_1fr_320px] gap-4 lg:gap-5",children:[(0,s.jsx)("div",{className:"lg:hidden mb-3",children:(0,s.jsxs)("button",{onClick:()=>tj(!tv),className:"w-full flex items-center justify-between px-4 py-3.5 rounded-2xl border transition-all active:scale-[0.99] ".concat(tv?"dark"===u?"bg-[#FF4500]/10 border-[#FF4500]/30 text-[#FF4500]/20":"bg-blue-50 border-blue-300 text-blue-700":"dark"===u?"bg-[#1A1A1B] border-[#343536] text-white":"bg-white border-gray-200 text-gray-900 shadow-sm"),children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"p-2 rounded-xl ".concat(tv?"dark"===u?"bg-[#FF4500]/15":"bg-blue-100":"dark"===u?"bg-[#272729]":"bg-gray-100"),children:(0,s.jsx)(eo.Z,{className:"w-5 h-5"})}),(0,s.jsxs)("div",{className:"flex flex-col items-start",children:[(0,s.jsx)("span",{className:"font-semibold text-sm",children:"Filters & Search"}),(()=>{let e=[eU,eW,eV,eY,eK,eB].filter(e=>e).length;return e>0?(0,s.jsxs)("span",{className:"text-xs ".concat("dark"===u?"text-[#FF4500]":"text-blue-600"),children:[e," filter",e>1?"s":""," active"]}):(0,s.jsx)("span",{className:"text-xs ".concat("dark"===u?"text-[#818384]":"text-gray-400"),children:"Tap to customize"})})()]})]}),(0,s.jsx)("div",{className:"p-1 rounded-lg ".concat("dark"===u?"bg-[#272729]":"bg-gray-100"),children:tv?(0,s.jsx)(ec.Z,{className:"w-5 h-5"}):(0,s.jsx)(G.Z,{className:"w-5 h-5"})})]})}),(0,s.jsx)("aside",{ref:tF,className:"".concat(tv?"block":"hidden"," lg:block"),children:(0,s.jsx)("div",{className:"lg:fixed lg:top-[136px] xl:top-[80px] lg:w-[320px] lg:bottom-4",children:(0,s.jsxs)("div",{className:"rounded-2xl lg:rou
1nded-xl shadow-xl lg:shadow-lg border transition-all duration-200 flex flex-col h-full max-h-[70vh] lg:max-h-full ".concat("dark"===u?"bg-[#1A1A1B] border-[#343536]":"bg-white border-gray-200"),children:[(0,s.jsxs)("div",{className:"flex items-center justify-between px-4 py-3 border-b shrink-0 ".concat("dark"===u?"border-[#343536]":"border-gray-200"),children:[(0,s.jsxs)("h2",{className:"text-sm font-bold flex items-center gap-2 ".concat("dark"===u?"text-white":"text-gray-900"),style:{fontFamily:"Rajdhani, sans-serif"},children:[(0,s.jsx)(eo.Z,{className:"w-4 h-4"}),"Filters"]}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(()=>{let e=[eU,eW,eV,eY,eK,eB].filter(e=>e).length;return e>0?(0,s.jsxs)("span",{className:"text-xs px-2 py-1 rounded-full font-medium ".concat("dark"===u?"bg-[#FF4500]/15 text-[#FF4500]":"bg-blue-500/10 text-blue-600"),children:[e," active"]}):null})(),(0,s.jsx)("button",{onClick:()=>tj(!1),className:"lg:hidden p-1 rounded-lg transition-colors ".concat("dark"===u?"hover:bg-[#272729] text-[#818384]":"hover:bg-gray-100 text-gray-500"),children:(0,s.jsx)(D.Z,{className:"w-5 h-5"})})]})]}),(0,s.jsxs)("div",{className:"flex-1 overflow-y-auto overscroll-contain px-4 py-3 filter-scrollbar",children:[M&&"all"===eI&&(0,s.jsxs)("div",{className:"mb-4",children:[(0,s.jsx)(ee,{selectedRole:eB,onRoleSelect:eJ}),(0,s.jsx)("div",{className:"border-t mt-4 ".concat("dark"===u?"border-[#343536]":"border-gray-200")})]}),(0,s.jsxs)("div",{className:"mb-4",children:[(0,s.jsxs)("label",{className:"block text-xs font-semibold mb-2 uppercase tracking-wide ".concat(eU?"dark"===u?"text-[#FF4500]":"text-blue-600":"dark"===u?"text-[#818384]":"text-gray-600"),children:[(0,s.jsx)(Y.Z,{className:"w-3.5 h-3.5 inline mr-1"}),"Search ",eU&&"â"]}),(0,s.jsx)("input",{type:"text",value:eU,onChange:e=>eO(e.target.value),placeholder:"Job title, skills...",className:"w-full px-3 py-2.5 rounded-lg border text-sm transition-all duration-200 ".concat(eU?"dark"===u?"bg-[#661C00]/15 border-[#FF4500] ring-1 ring-[#FF4500]/25 text-white placeholder-[#818384]":"bg-blue-50 border-blue-500 ring-1 ring-[#FF4500]/40 text-gray-900 placeholder-gray-400":"dark"===u?"bg-[#272729] border-[#343536] text-white placeholder-[#818384] focus:ring-[#FF4500] focus:border-[#FF4500]":"bg-white border-gray-300 text-gray-900 placeholder-gray-400 focus:ring-[#FF4500] focus:border-blue-500"," focus:ring-2 focus:outline-none")})]}),(0,s.jsx)("div",{className:"border-t my-3 ".concat("dark"===u?"border-[#343536]":"border-gray-200")}),(0,s.jsxs)("div",{className:"mb-4",children:[(0,s.jsxs)("label",{className:"block text-xs font-semibold mb-2 uppercase tracking-wide ".concat(eW?"dark"===u?"text-[#FF4500]":"text-blue-600":"dark"===u?"text-[#818384]":"text-gray-600"),children:[(0,s.jsx)(o.Z,{className:"w-3.5 h-3.5 inline mr-1"}),"Location ",eW&&"â"]}),(0,s.jsx)("input",{type:"text",value:eW,onChange:e=>eH(e.target.value),placeholder:"City, state, or remote",className:"w-full px-3 py-2.5 rounded-lg border text-sm transition-all duration-200 ".concat(eW?"dark"===u?"bg-[#661C00]/15 border-[#FF4500] ring-1 ring-[#FF4500]/25 text-white placeholder-[#818384]":"bg-blue-50 border-blue-500 ring-1 ring-[#FF4500]/40 text-gray-900 placeholder-gray-400":"dark"===u?"bg-[#272729] border-[#343536] text-white placeholder-[#818384] focus:ring-[#FF4500] focus:border-[#FF4500]":"bg-white border-gray-300 text-gray-900 placeholder-gray-400 focus:ring-[#FF4500] focus:border-blue-500"," focus:ring-2 focus:outline-none")})]}),(0,s.jsx)("div",{className:"border-t my-3 ".concat("dark"===u?"border-[#343536]":"border-gray-200")}),(0,s.jsxs)("div",{className:"mb-4",children:[(0,s.jsxs)("label",{className:"block text-xs font-semibold mb-2 uppercase tracking-wide ".concat(eV?"dark"===u?"text-[#FF4500]":"text-blue-600":"dark"===u?"text-[#818384]":"text-gray-600"),children:[(0,s.jsx)(A.Z,{className:"w-3.5 h-3.5 inline mr-1"}),"Job Type ",eV&&"â"]}),(0,s.jsxs)("select",{value:eV,onChange:e=>e$(e.target.value),className:"w-full px-3 py-2.5 rounded-lg border text-sm transition-all duration-200 ".concat(eV?"dark"===u?"bg-[#661C00]/15 border-[#FF4500] ring-1 ring-[#FF4500]/25 text-white":"bg-blue-50 border-blue-500 ring-1 ring-[#FF4500]/40 text-gray-900":"dark"===u?"bg-[#272729] border-[#343536] text-white focus:ring-[#FF4500] focu
1s:border-[#FF4500]":"bg-white border-gray-300 text-gray-900 focus:ring-[#FF4500] focus:border-blue-500"," focus:ring-2 focus:outline-none"),children:[(0,s.jsx)("option",{value:"",children:"All Types"}),(0,s.jsx)("option",{value:"full-time",children:"Full-time"}),(0,s.jsx)("option",{value:"part-time",children:"Part-time"}),(0,s.jsx)("option",{value:"contract",children:"Contract"}),(0,s.jsx)("option",{value:"internship",children:"Internship"})]})]}),(0,s.jsx)("div",{className:"border-t my-3 ".concat("dark"===u?"border-[#343536]":"border-gray-200")}),(0,s.jsxs)("div",{className:"mb-4",children:[(0,s.jsxs)("label",{className:"block text-xs font-semibold mb-2 uppercase tracking-wide ".concat(eY?"dark"===u?"text-[#FF4500]":"text-blue-600":"dark"===u?"text-[#818384]":"text-gray-600"),children:["Experience Level ",eY&&"â"]}),(0,s.jsxs)("select",{value:eY,onChange:e=>eG(e.target.value),className:"w-full px-3 py-2.5 rounded-lg border text-sm transition-all duration-200 ".concat(eY?"dark"===u?"bg-[#661C00]/15 border-[#FF4500] ring-1 ring-[#FF4500]/25 text-white":"bg-blue-50 border-blue-500 ring-1 ring-[#FF4500]/40 text-gray-900":"dark"===u?"bg-[#272729] border-[#343536] text-white focus:ring-[#FF4500] focus:border-[#FF4500]":"bg-white border-gray-300 text-gray-900 focus:ring-[#FF4500] focus:border-blue-500"," focus:ring-2 focus:outline-none"),children:[(0,s.jsx)("option",{value:"",children:"All Levels"}),(0,s.jsx)("option",{value:"entry",children:"Entry Level"}),(0,s.jsx)("option",{value:"mid",children:"Mid Level"}),(0,s.jsx)("option",{value:"senior",children:"Senior"}),(0,s.jsx)("option",{value:"lead",children:"Lead"}),(0,s.jsx)("option",{value:"executive",children:"Executive"})]})]}),(0,s.jsx)("div",{className:"border-t my-3 ".concat("dark"===u?"border-[#343536]":"border-gray-200")}),(0,s.jsxs)("div",{className:"mb-2",children:[(0,s.jsxs)("label",{className:"block text-xs font-semibold mb-2 uppercase tracking-wide ".concat(eK?"dark"===u?"text-[#FF4500]":"text-blue-600":"dark"===u?"text-[#818384]":"text-gray-600"),children:[(0,s.jsx)(f.Z,{className:"w-3.5 h-3.5 inline mr-1"}),"Posted Within ",eK&&"â"]}),(0,s.jsxs)("select",{value:eK,onChange:e=>eQ(e.target.value),className:"w-full px-3 py-2.5 rounded-lg border text-sm transition-all duration-200 ".concat(eK?"dark"===u?"bg-[#661C00]/15 border-[#FF4500] ring-1 ring-[#FF4500]/25 text-white":"bg-blue-50 border-blue-500 ring-1 ring-[#FF4500]/40 text-gray-900":"dark"===u?"bg-[#272729] border-[#343536] text-white focus:ring-[#FF4500] focus:border-[#FF4500]":"bg-white border-gray-300 text-gray-900 focus:ring-[#FF4500] focus:border-blue-500"," focus:ring-2 focus:outline-none"),children:[(0,s.jsx)("option",{value:"",children:"All Time (default)"}),(0,s.jsx)("option",{value:"1h",children:"Last Hour"}),(0,s.jsx)("option",{value:"1d",children:"Last 24 Hours"}),(0,s.jsx)("option",{value:"3d",children:"Last 3 Days"}),(0,s.jsx)("option",{value:"5d",children:"Last 5 Days"})]})]})]}),(0,s.jsx)("div",{className:"px-4 py-3 border-t shrink-0 ".concat("dark"===u?"border-[#343536] bg-[#1A1A1B]":"border-gray-200 bg-gray-50/50"),children:(0,s.jsx)("button",{onClick:()=>{eO(""),eH(""),e$(""),eG(""),eQ(""),eJ(null),ts(null),eN(!0),tl.current=!1},className:"w-full px-4 py-2.5 text-sm font-semibold rounded-xl transition-all duration-200 border min-h-[44px] ".concat("dark"===u?"text-[#FF4500] border-[#343536] hover:bg-[#272729] active:scale-95":"text-blue-600 border-gray-300 hover:bg-white active:scale-95"),children:"Clear All Filters"})})]})})}),(0,s.jsxs)("main",{className:"min-w-0 pb-24",children:[M&&(!L||0===L.length)&&!y&&(0,s.jsx)("div",{className:"mb-6 p-5 rounded-2xl border-2 ".concat("dark"===u?"bg-gradient-to-r from-[#FF4500]/15 via-[#CC3700]/10 to-[#FF4500]/15 border-[#FF4500]/30":"bg-gradient-to-r from-[#FFF1EE] via-orange-50 to-[#FFF1EE] border-[#EDEFF1]"),children:(0,s.jsxs)("div",{className:"flex flex-col sm:flex-row items-start sm:items-center gap-4",children:[(0,s.jsx)("div",{className:"flex-shrink-0 w-14 h-14 rounded-xl flex items-center justify-center ".concat("dark"===u?"bg-[#FF4500]/20":"bg-[#FFE5DB]"),children:(0,s.jsx)("svg",{className:"w-8 h-8 ".concat("text-[#FF4500]"),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9a5 5 0 117.072 0l-.548.547A3.374 3.374 0 0014 18.469V19a2 2 0 11-4 0v-.531c0-.895-.356-1.754-.988-2.386l-.548-.547z"})})}),(0,s.jsxs)("div",{className:"flex-1",children:[(0,s.jsx)("h3",{className:"text-base font-bold mb-1 ".concat("dark"===u?"text-[#FF4500]":"text-[#CC3700]"),style:{fontFamily:"Rajdhani, sans-serif"},children:"\uD83C\uDFAF Add Your Skills for Better Job Matches!"}),(0,s.jsx)("p",{className:"text-sm ".concat("dark"===u?"text-[#FF4500]/80":"text-[#CC3700]"),children:"We're showing you the latest jobs, but add your skills to see personalized match percentages and find jobs that fit your expertise."})]}),(0,s.jsx)(er(),{href:"/profile-setup",className:"flex-shrink-0 px-5 py-2.5 rounded-xl font-semibold text-sm transition-all duration-200 shadow-md hover:shadow-lg ".concat("dark"===u?"bg-[#FF4500] hover:bg-[#FF4500] text-black":"bg-[#FF4500] hover:bg-[#CC3700] text-white"),children:"Add Skills Now â"})]})}),ej&&!y&&(0,s.jsxs)("div",{className:"mb-4 rounded-xl border overflow-hidden ".concat("dark"===u?"bg-[#1A1A1B] border-[#343536]":"bg-white border-gray-200"),children:[(0,s.jsxs)("div",{className:"flex items-center justify-between px-4 py-2.5 border-b ".concat("dark"===u?"border-[#343536] bg-[#272729]":"border-gray-100 bg-gray-50"),children:[(0,s.jsx)("span",{className:"text-xs font-bold ".concat("dark"===u?"text-[#D7DADC]":"text-gray-700"),children:"\uD83E\uDD16 Two ways to apply with AI â which one should I use?"}),(0,s.jsx)("button",{onClick:ew,className:"text-xs ".concat("dark"===u?"text-[#818384] hover:text-[#D7DADC]":"text-gray-400 hover:text-gray-600"),"aria-label":"Dismiss guide",children:"â Got it"})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 divide-y sm:divide-y-0 sm:divide-x ".concat("dark"===u?"divide-[#343536]":"divide-gray-100"),children:[(0,s.jsxs)("div",{className:"px-4 py-3",children:[(0,s.jsx)("div",{className:"text-xs font-semibold mb-1 ".concat("dark"===u?"text-[#FF4500]":"text-[#CC3700]"),children:"\uD83E\uDD16 In-app bot (orange button, bottom-right)"}),(0,s.jsxs)("div",{className:"text-xs leading-relaxed ".concat("dark"===u?"text-[#9AA0A6]":"text-gray-500"),children:["Use on ",(0,s.jsx)("strong",{children:"this"})," jobs page. Drag the orange bot onto any job card below â get a tailored resume & cover letter in seconds, then apply with one click."]})]}),(0,s.jsxs)("div",{className:"px-4 py-3",children:[(0,s.jsx)("div",{className:"text-xs font-semibold mb-1 ".concat("dark"===u?"text-[#FF4500]":"text-[#CC3700]"),children:"\uD83C\uDF10 Browser extension (Chrome / Edge)"}),(0,s.jsxs)("div",{className:"text-xs leading-relaxed ".concat("dark"===u?"text-[#9AA0A6]":"text-gray-500"),children:["Use on ",(0,s.jsx)("strong",{children:"external portals"})," â LinkedIn, Workday, Greenhouse, Indeed, etc. Click the TrueResume icon that appears on any job posting to tailor & auto-fill the form."]})]})]})]}),eB&&!y&&h.length>0&&(0,s.jsxs)("div",{className:"mb-4 px-4 py-2.5 rounded-xl flex items-center gap-2 text-sm ".concat("all"===eI?"dark"===u?"bg-gradient-to-r from-emerald-900/30 to-green-900/30 border border-emerald-700/30 text-emerald-300":"bg-gradient-to-r from-emerald-50 to-green-50 border border-emerald-200 text-emerald-700":"dark"===u?"bg-gradient-to-r from-[#272729]/50 to-[#343536]/50 border border-[#343536]/30 text-[#D7DADC]":"bg-gradient-to-r from-gray-50 to-[#F6F7F8] border border-gray-200 text-gray-600"),children:[(0,s.jsx)("svg",{className:"w-4 h-4 flex-shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"})}),(0,s.jsx)("span",{children:"all"===eI?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("strong",{children:"\uD83C\uDFAF Role Preference Active"})," â Showing jobs matching your selected role first"]}):(0,s.jsxs)(s.Fragment,{children:["You're viewing your ",(0,s.jsx)("strong",{children:eI}
1)," jobs. Select ",(0,s.jsx)("strong",{children:'"All"'})," to see role-preference sorted jobs."]})})]}),M&&L&&L.length>0&&!eB&&!y&&h.length>0&&(0,s.jsxs)("div",{className:"mb-4 px-4 py-2.5 rounded-xl flex items-center gap-2 text-sm ".concat("dark"===u?"bg-gradient-to-r from-[#661C00]/30 to-blue-900/30 border border-[#E03D00]/20 text-[#FF4500]/20":"bg-gradient-to-r from-[#FFF1EE] to-[#FFE5DB] border border-blue-200 text-blue-700"),children:[(0,s.jsx)("svg",{className:"w-4 h-4 flex-shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"})}),(0,s.jsxs)("span",{children:[(0,s.jsx)("strong",{children:"\uD83C\uDFAF Smart Matching ON"})," â Jobs sorted by your ",L.length," skills + latest postings"]})]}),y?(0,s.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-[#1A1A1B] ",children:(0,s.jsxs)("div",{className:"flex flex-col items-center space-y-6 p-8 rounded-2xl ".concat("dark"===u?"bg-[#1A1A1B]/95":"bg-white"," shadow-2xl"),children:[(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("div",{className:"absolute inset-0 rounded-full blur-2xl opacity-30",style:{background:"radial-gradient(circle, #FF4500 0%, transparent 70%)"}}),(0,s.jsx)(eu.Cn,{size:120})]}),(0,s.jsx)("p",{className:"text-base sm:text-lg font-semibold text-center max-w-xs transition-all duration-300 ".concat("dark"===u?"text-white":"text-gray-900"),children:j}),(0,s.jsx)("div",{className:"w-48 h-1.5 rounded-full overflow-hidden ".concat("dark"===u?"bg-[#343536]":"bg-gray-200"),children:(0,s.jsx)("div",{className:"h-full rounded-full bg-gradient-to-r from-[#FF4500] via-[#FFD700] to-[#FF4500] animate-pulse",style:{width:"60%"}})}),(0,s.jsx)("div",{className:"flex items-center justify-center gap-2",children:["building","sparkle","building"].map((e,t)=>(0,s.jsx)("span",{className:"animate-bounce inline-flex",style:{animationDelay:"".concat(150*t,"ms")},children:(0,s.jsx)(z.ZP,{variant:e,size:26,animated:!0,density:"full"})},t))})]})}):w?(0,s.jsxs)("div",{className:"rounded-xl sm:rounded-2xl p-6 sm:p-8 text-center transition-colors duration-300 ".concat("dark"===u?"bg-red-900/20 border border-red-800":"bg-red-50 border border-red-200"),children:[(0,s.jsx)("p",{className:"dark"===u?"text-red-400":"text-red-600",children:w}),(0,s.jsx)("button",{onClick:()=>tZ(!0),className:"mt-4 font-medium transition-colors ".concat("dark"===u?"text-[#FF4500] hover:text-[#FF4500]/20":"text-blue-600 hover:text-blue-700"),children:"Try Again"})]}):0===h.length?(0,s.jsxs)("div",{className:"rounded-xl p-12 text-center ".concat("dark"===u?"bg-[#1A1A1B] border border-[#343536]":"bg-white border border-gray-200"),children:[(0,s.jsx)(ed.Z,{mood:"searching",size:"lg",fill:"dark"===u?"#94a3b8":"#9ca3af",className:"mx-auto mb-4"}),(0,s.jsx)("h3",{className:"text-lg font-semibold mb-2 ".concat("dark"===u?"text-white":"text-gray-900"),children:"No jobs found"}),(0,s.jsx)("p",{className:"dark"===u?"text-[#818384]":"text-gray-600",children:"Try adjusting your filters or search criteria"})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"flex flex-col gap-3",children:h.map(e=>(0,s.jsx)(U,{job:e,userId:S,userSkills:M&&L&&L.length>0?L:void 0,isAuthenticated:M,onApplicationStatusChange:tq,onSavedStatusChange:tP,initialHasApplied:W.has(e.jobId),initialIsSaved:K.has(e.jobId)},e.jobId))}),(0,s.jsx)("div",{ref:tr,className:"py-6 flex justify-center","aria-hidden":"true",children:!e7&&h.length>0&&(0,s.jsx)("div",{className:"text-sm ".concat("dark"===u?"text-[#818384]":"text-gray-400"),children:"You've reached the end of available jobs"})})]})]}),(0,s.jsx)("aside",{ref:tC,className:"hidden xl:block",children:(0,s.jsx)("div",{className:"xl:fixed xl:top-[80px] xl:w-[320px] xl:right-8 xl:bottom-4",children:(0,s.jsx)("div",{className:"rounded-xl shadow-lg border h-full flex flex-col overflow-hidden ".concat("dark"===u?"bg-[#1A1A1B]/95 border-[#343536]":"bg-white border-gray-200"),children:(0,s.jsxs)("div",{className:"flex-1 overflow-y-auto overscroll-contain p-4 space-y-4 scrollbar-thin scrollbar-thumb-gray-400/30 scrollbar-track-transparent",children:[(0,s.jsx)("div",{className:"rounded-xl p-3 border ".concat("dark"===u?"bg-[#272729] border-[#343536]":"bg-gray-50 border-gray-100"),children:(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("div",{className:"flex items-center gap-2",children:tf?(0,s.jsxs)("div",{className:"flex items-center gap-1.5 text-xs ".concat("dark"===u?"text-[#FF4500]":"text-blue-600"),children:[(0,s.jsxs)("svg",{className:"animate-spin h-3 w-3",fill:"none",viewBox:"0 0 24 24",children:[(0,s.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,s.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,s.jsx)("span",{children:"Refreshing..."})]}):_?(0,s.jsxs)("div",{className:"flex items-center gap-1.5 text-xs ".concat("dark"===u?"text-[#818384]":"text-gray-500"),children:[(0,s.jsx)(f.Z,{className:"w-3 h-3"}),(0,s.jsxs)("span",{children:["Updated ",new Date(_).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})]})]}):(0,s.jsx)("span",{className:"text-xs ".concat("dark"===u?"text-[#818384]":"text-gray-400"),children:"Ready"})}),(0,s.jsxs)("button",{onClick:tA,disabled:y||tf,className:"flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-medium transition-all duration-200 disabled:opacity-50 disabled:cursor-not-allowed ".concat(y||tf?"dark"===u?"bg-[#343536]":"bg-gray-200":"dark"===u?"bg-gradient-to-r from-[#FF4500] to-blue-600 hover:from-[#FF4500] hover:to-blue-700 text-white shadow-lg shadow-[#FF4500]/15":"bg-gradient-to-r from-[#FF4500] to-[#CC3700] hover:from-[#CC3700] hover:to-[#B03000] text-white shadow-lg shadow-[#FF4500]/20"),title:"Refresh Jobs",children:[(0,s.jsx)(ei.Z,{className:"w-3.5 h-3.5 ".concat(tf?"animate-spin":"")}),(0,s.jsx)("span",{children:"Refresh"})]})]})}),(0,s.jsxs)("div",{className:"rounded-xl p-4 border-2 ".concat("dark"===u?"bg-gradient-to-br from-[#272729] to-[#1A1A1B] border-[#FF4500]/20":"bg-gradient-to-br from-white to-blue-50 border-blue-200"),children:[(0,s.jsxs)("h3",{className:"text-base font-bold mb-4 flex items-center gap-2 ".concat("dark"===u?"text-white":"text-gray-900"),children:[(0,s.jsx)("svg",{className:"w-5 h-5 ".concat("dark"===u?"text-[#FF4500]":"text-blue-600"),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 7h8m0 0v8m0-8l-8 8-4-4-6 6"})}),"\uD83D\uDCCA Your Job Hunt Stats"]}),(0,s.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,s.jsxs)("div",{onClick:()=>{eA("all"),ez("all")},className:"col-span-2 p-3 rounded-lg text-center cursor-pointer transition-all hover:scale-[1.02] ".concat("all"===eI&&"all"===eM?"dark"===u?"bg-gradient-to-r from-[#FF4500]/40 to-[#CC3700]/40 ring-2 ring-[#FF4500]":"bg-gradient-to-r from-[#FFF1EE] to-[#FFE5DB] ring-2 ring-[#FF4500]":"dark"===u?"bg-[#343536] hover:bg-[#343536]":"bg-white hover:bg-gray-50 border border-gray-200"),children:[(0,s.jsxs)("div",{className:"flex items-center justify-center gap-2",children:[(0,s.jsx)(A.Z,{className:"w-5 h-5 ".concat("dark"===u?"text-[#FF4500]":"text-blue-600")}),(0,s.jsx)("div",{className:"text-lg font-bold ".concat("dark"===u?"text-white":"text-gray-900"),children:"\uD83C\uDFAF All Jobs"})]}),(0,s.jsx)("div",{className:"text-xs mt-0.5 ".concat("dark"===u?"text-[#818384]":"text-gray-500"),children:"Browse all available positions"})]}),(0,s.jsxs)("div",{onClick:()=>
1{if(!eZ){eR(!0);return}eA("all"),ez("career")},className:"col-span-2 p-3 rounded-lg text-center cursor-pointer transition-all hover:scale-[1.02] relative overflow-hidden ".concat("all"===eI&&"career"===eM?"dark"===u?"bg-gradient-to-r from-[#FF4500]/30 to-orange-600/30 ring-2 ring-[#FF4500]":"bg-gradient-to-r from-[#FFF1EE] to-orange-50 ring-2 ring-[#FF4500]":"dark"===u?"bg-[#343536] hover:bg-[#343536]":"bg-white hover:bg-gray-50 border border-gray-200"),children:[(0,s.jsxs)("div",{className:"flex items-center justify-center gap-2",children:[(0,s.jsx)("svg",{className:"w-5 h-5 ".concat("all"===eI&&"career"===eM?"text-[#FF4500]":"dark"===u?"text-[#FF4500]/70":"text-[#FF4500]"),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4"})}),(0,s.jsx)("div",{className:"text-base font-bold ".concat("dark"===u?"text-white":"text-gray-900"),children:"Career Page Jobs"}),(0,s.jsxs)("span",{className:"inline-flex items-center gap-0.5 px-1.5 py-0.5 rounded-full text-[10px] font-bold uppercase tracking-wider bg-gradient-to-r from-[#FF4500] to-orange-500 text-white shadow-lg shadow-[#FF4500]/30 animate-badge-shine",children:[(0,s.jsx)("svg",{className:"w-2.5 h-2.5",fill:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{d:"M12 2L15.09 8.26L22 9.27L17 14.14L18.18 21.02L12 17.77L5.82 21.02L7 14.14L2 9.27L8.91 8.26L12 2Z"})}),"PRO"]})]}),(0,s.jsx)("div",{className:"text-xs mt-0.5 ".concat("dark"===u?"text-[#818384]":"text-gray-500"),children:"Direct from company career pages \uD83D\uDE80"})]}),(0,s.jsxs)("div",{onClick:()=>eA("viewed"),className:"p-3 rounded-lg text-center cursor-pointer transition-all hover:scale-105 ".concat("viewed"===eI?"dark"===u?"bg-blue-500/30 ring-2 ring-[#FF4500]":"bg-blue-100 ring-2 ring-[#FF4500]":"dark"===u?"bg-blue-500/10 hover:bg-blue-500/20":"bg-blue-50 hover:bg-blue-100"),children:[(0,s.jsx)("div",{className:"text-2xl font-bold ".concat("dark"===u?"text-blue-400":"text-blue-600"),children:eD}),(0,s.jsx)("div",{className:"text-xs ".concat("dark"===u?"text-[#818384]":"text-gray-500"),children:"\uD83D\uDC41ï¸ Viewed"})]}),(0,s.jsxs)("div",{onClick:()=>eA("saved"),className:"p-3 rounded-lg text-center cursor-pointer transition-all hover:scale-105 ".concat("saved"===eI?"dark"===u?"bg-[#FF4500]/30 ring-2 ring-[#FF4500]":"bg-[#FFE5DB] ring-2 ring-[#FF4500]":"dark"===u?"bg-[#FF4500]/10 hover:bg-[#FF4500]/20":"bg-[#FFF1EE] hover:bg-[#FFE5DB]"),children:[(0,s.jsx)("div",{className:"text-2xl font-bold ".concat("text-[#FF4500]"),children:eS}),(0,s.jsx)("div",{className:"text-xs ".concat("dark"===u?"text-[#818384]":"text-gray-500"),children:"\uD83D\uDCCC Saved"})]}),(0,s.jsxs)("div",{onClick:()=>eA("applied"),className:"p-3 rounded-lg text-center cursor-pointer transition-all hover:scale-105 ".concat("applied"===eI?"dark"===u?"bg-green-500/30 ring-2 ring-green-500":"bg-green-100 ring-2 ring-green-500":"dark"===u?"bg-green-500/10 hover:bg-green-500/20":"bg-green-50 hover:bg-green-100"),children:[(0,s.jsx)("div",{className:"text-2xl font-bold ".concat("dark"===u?"text-green-400":"text-green-600"),children:eF}),(0,s.jsx)("div",{className:"text-xs ".concat("dark"===u?"text-[#818384]":"text-gray-500"),children:"â
Applied"})]}),(0,s.jsxs)("div",{className:"p-3 rounded-lg text-center ".concat("dark"===u?"bg-[#FF4500]/10":"bg-[#FFF5F2]"),children:[(0,s.jsx)("div",{className:"text-2xl font-bold ".concat("dark"===u?"text-[#FF4500]":"text-[#E03D00]"),children:(null==L?void 0:L.length)||0}),(0,s.jsx)("div",{className:"text-xs ".concat("dark"===u?"text-[#818384]":"text-gray-500"),children:"Skills"})]})]})]}),(0,s.jsxs)("div",{className:"rounded-xl p-4 border ".concat("dark"===u?"bg-[#272729] border-[#343536]":"bg-gray-50 border-gray-100"),children:[(0,s.jsxs)("h3",{className:"text-sm font-bold mb-3 flex items-center gap-2 ".concat("dark"===u?"text-white":"text-gray-900"),children:[(0,s.jsx)("svg",{className:"w-4 h-4 text-[#FF4500]",fill:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{d:"M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9a5 5 0 117.072 0l-.548.547A3.374 3.374 0 0014 18.469V19a2 2 0 11-4 0v-.531c0-.895-.356-1.754-.988-2.386l-.548-.547z"})}),"Job Search Tips"]}),(0,s.jsxs)("ul",{className:"text-xs space-y-2.5 ".concat("dark"===u?"text-[#818384]":"text-gray-600"),children:[(0,s.jsxs)("li",{className:"flex items-start gap-2",children:[(0,s.jsx)("span",{className:"text-green-500 mt-0.5",children:"â"}),(0,s.jsx)("span",{children:"Apply within 24 hours of posting for best response rates"})]}),(0,s.jsxs)("li",{className:"flex items-start gap-2",children:[(0,s.jsx)("span",{className:"text-green-500 mt-0.5",children:"â"}),(0,s.jsx)("span",{children:"Tailor your resume to match job keywords"})]}),(0,s.jsxs)("li",{className:"flex items-start gap-2",children:[(0,s.jsx)("span",{className:"text-green-500 mt-0.5",children:"â"}),(0,s.jsx)("span",{children:"Focus on jobs with 60%+ skill match"})]}),(0,s.jsxs)("li",{className:"flex items-start gap-2",children:[(0,s.jsx)("span",{className:"text-green-500 mt-0.5",children:"â"}
1),(0,s.jsx)("span",{children:"Save jobs to track your applications"})]})]})]}),(0,s.jsxs)("div",{className:"rounded-xl p-4 border ".concat("dark"===u?"bg-[#272729] border-[#343536]":"bg-gray-50 border-gray-100"),children:[(0,s.jsxs)("h3",{className:"text-sm font-bold mb-3 flex items-center gap-2 ".concat("dark"===u?"text-white":"text-gray-900"),children:[(0,s.jsx)("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1"})}),"Quick Actions"]}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsxs)(er(),{href:"/profile-setup",className:"flex items-center gap-2 px-3 py-2.5 rounded-lg text-xs font-medium transition-all ".concat("dark"===u?"bg-[#272729] hover:bg-[#343536] text-[#D7DADC]":"bg-gray-50 hover:bg-gray-100 text-gray-700"),children:[(0,s.jsx)("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"})}),"Update Your Profile"]}),(0,s.jsxs)(er(),{href:"/create-resume",className:"flex items-center gap-2 px-3 py-2.5 rounded-lg text-xs font-medium transition-all ".concat("dark"===u?"bg-[#272729] hover:bg-[#343536] text-[#D7DADC]":"bg-gray-50 hover:bg-gray-100 text-gray-700"),children:[(0,s.jsx)("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12h6m-6 4h6m2 5H7a2 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"})}),"ResumeGPT"]}),(0,s.jsxs)(er(),{href:"/my-jobs",className:"flex items-center gap-2 px-3 py-2.5 rounded-lg text-xs font-medium transition-all ".concat("dark"===u?"bg-[#272729] hover:bg-[#343536] text-[#D7DADC]":"bg-gray-50 hover:bg-gray-100 text-gray-700"),children:[(0,s.jsx)("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01"})}),"My Jobs Board"]})]})]}),(0,s.jsxs)("div",{className:"rounded-xl p-4 text-center border ".concat("dark"===u?"bg-gradient-to-r from-[#661C00]/30 to-blue-900/30 border-[#E03D00]/20":"bg-gradient-to-r from-[#FFF1EE] to-[#FFE5DB] border-blue-200"),children:[(0,s.jsxs)("div",{className:"text-3xl font-bold mb-1 ".concat("dark"===u?"text-white":"text-gray-900"),children:[h.length,"+"]}),(0,s.jsx)("div",{className:"text-xs ".concat("dark"===u?"text-[#818384]":"text-gray-500"),children:"Jobs matching your criteria"})]})]})})})})]})})]}),(te||e6)&&e7&&h.length>0&&(0,s.jsx)("div",{className:"fixed bottom-24 sm:bottom-20 left-1/2 -translate-x-1/2 z-50",children:(0,s.jsxs)("div",{className:"flex items-center gap-4 px-6 py-3 rounded-full shadow-2xl ".concat("dark"===u?"bg-[#1A1A1B]/95 border border-[#FF4500]/30 shadow-[#FF4500]/15":"bg-white border border-blue-300 shadow-[#FF4500]/20"," "),children:[(0,s.jsxs)("div",{className:"flex items-center space-x-1.5",children:[(0,s.jsx)("div",{className:"w-2.5 h-2.5 rounded-full animate-bounce ".concat("dark"===u?"bg-blue-400":"bg-blue-600"),style:{animationDelay:"0ms"}}),(0,s.jsx)("div",{className:"w-2.5 h-2.5 rounded-full animate-bounce ".concat("bg-[#FF4500]"),style:{animationDelay:"150ms"}}),(0,s.jsx)("div",{className:"w-2.5 h-2.5 rounded-full animate-bounce ".concat("bg-[#0079D3]"),style:{animationDelay:"300ms"}})]}),(0,s.jsx)("span",{className:"text-sm font-medium ".concat("dark"===u?"text-[#D7DADC]":"text-gray-700"),children:"Loading more jobs..."})]})}),h.length>10&&(0,s.jsx)("button",{onClick:()=>window.scrollTo({top:0,behavior:"smooth"}),className:"fixed bottom-24 sm:bottom-8 right-20 sm:right-8 z-[9998] p-3 rounded-full shadow-lg transition-all duration-200 hover:scale-110 ".concat("dark"===u?"bg-[#FF4500] hover:bg-[#FF4500] text-white":"bg-blue-600 hover:bg-blue-500 text-white"),title:"Back to Top","aria-label":"Scroll to top",children:(0,s.jsx)("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 10l7-7m0 0l7 7m-7-7v18"})})}),(0,s.jsx)(H,{isOpen:X,onClose:tR,jobTitle:eh,companyName:eb,jobId:ep||"",onConfirm:tB}),(0,s.jsx)(V,{isOpen:ey,onClose:()=>ev(!1)}),(0,s.jsx)(en.Z,{isOpen:eP,onClose:()=>eR(!1),currentPlan:"free"})]})}},25086:function(e,t,a){"use strict";var s=a(67294);let r=s.forwardRef(function(e,t){let{title:a,titleId:r,...l}=e;return s.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:t,"aria-labelledby":r},l),a?s.createElement("title",{id:r},a):null,s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 12.75 6 6 9-13.5"}))});t.Z=r},80172:function(e,t,a){"use strict";var s=a(67294);let r=s.forwardRef(function(e,t){let{title:a,titleId:r,...l}=e;return s.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:t,"aria-labelledby":r},l),a?s.createElement("title",{id:r},a):null,s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.813 15.904 9 18.75l-.813-2.846a4.5 4.5 0 0 0-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 0 0 3.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 0 0 3.09 3.09
1L15.75 12l-2.846.813a4.5 4.5 0 0 0-3.09 3.09ZM18.259 8.715 18 9.75l-.259-1.035a3.375 3.375 0 0 0-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 0 0 2.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 0 0 2.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 0 0-2.456 2.456ZM16.894 20.567 16.5 21.75l-.394-1.183a2.25 2.25 0 0 0-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 0 0 1.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 0 0 1.423 1.423l1.183.394-1.183.394a2.25 2.25 0 0 0-1.423 1.423Z"}))});t.Z=r}},function(e){e.O(0,[4968,1296,8993,5412,9793,7117,2888,9774,179],function(){return e(e.s=46538)}),_N_E=e.O()}]);
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.