PageSourceSearch

https://www.inradius.in/_next/static/chunks/pages/dashboard-164d163d0320d80a.js

js inradius.in collected 2026-09-24 13:36:48 UTC 149,467 bytes, 1 lines download raw bytes

1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="eaba3826-e9d2-4db7-a093-c680d2dff9a9",e._sentryDebugIdIdentifier="sentry-dbid-eaba3826-e9d2-4db7-a093-c680d2dff9a9")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8026,6616],{26117:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard",function(){return l(17729)}])},14904:function(e,t){"use strict";t.Z={src:"/_next/static/media/Frame (1).79e19faa.png",height:126,width:126,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAG1BMVEVcPPdNM+NOM+ZMMd9MMuBLMt9OM+ZTNeJMNOJ65DGIAAAACXRSTlMBKKBNjkiMETqXbVq6AAAACXBIWXMAACE4AAAhOAFFljFgAAAAMUlEQVR4nC2KwQ0AMQyDsJ003X/iKrrjhQQACcNi4wvoHAnaJZWbrl/mbgImO38kwAMUTwCOaViOJQAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:8}},26134:function(e,t){"use strict";t.Z={src:"/_next/static/media/Search (2).70d58e66.png",height:160,width:160,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAG1BMVEVLMt9MM99MaXFMMuFPNONNM+FNMuBNM+FGOOL9uqyBAAAACXRSTlMnOgCCIE9VXxJ02jVKAAAACXBIWXMAACE4AAAhOAFFljFgAAAAMUlEQVR4nEXLSQrAQBDDQFnuWf7/4kAg5CpKGJRIOjoNzO0R0LKj6Nldvi0r8ONvfwAUpgCNiXgTSgAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:8}},62846:function(e,t,l){"use strict";let a=new(l(20984)).g6("".concat("https://ap-south-1.cdn.hygraph.com/content/clg0o1x3x7nlc01t7ek7mel48/master"),{cache:"no-store"});t.Z=a},24577:function(e,t,l){"use strict";var a=l(85893),r=l(59417),s=l(99603),i=l(51526),o=l(70798),n=l(28410),d=l(82409),c=l(48665),m=l(11163),u=l(67294),p=l(9473),x=l(91444),h=l(9010),f=l(27786),g=l(55296),y=l(65247),v=l(56206),b=l(40245),w=l(48687),j=l(23279),N=l.n(j),k=l(30381),C=l.n(k),S=l(34651),E=l(61415),P=l(79194),A=l(13261),_=l(64388),B=l(55497),D=l(30771);let I=e=>{let{triggerType:t,content:l,date:r,newNotif:s,id:i,callback:o,userType:n}=e,d=(0,m.useRouter)(),c=(0,p.I0)(),u=(0,p.v9)(e=>e.dashboard.dashboardJobNames);return(0,a.jsxs)("div",{className:"flex justify-center items-center gap-4 px-4",children:[(0,a.jsx)("div",{className:"w-2 h-2 bg-primary rounded-xl ".concat(s?"visible":"invisible")}),(0,a.jsxs)("div",{className:"py-4 px-2 w-full cursor-pointer ".concat("bg-white text-black"),onClick:()=>{var e=l.replace(/(.*your\s+)(.*)(\s+position.*)/,"$2").trim();let a=u.find(t=>t.name===e);a&&c((0,f.TZ)(a)),t===E.$my.EmployeeApplied?(c((0,f.D4)(f.O$.jobs)),d.push("/dashboard/?page=".concat(f.O$.jobs,"&jobTitle=").concat(encodeURIComponent(e),"&tabName=").concat(encodeURIComponent("applications")))):t===E.$my.EmployerShortlisted&&(c((0,f.D4)(f.O$["my-applications"])),d.push("/dashboard/?page=".concat(f.O$["my-applications"]))),c((0,g.eu)(i)),o()},children:[(0,a.jsx)("p",{className:"text-xs font-medium mb-2",children:l}),(0,a.jsx)("p",{style:{fontSize:"12px"},className:"font-light mb-0",children:C()(r).startOf("day").isBefore(C()().startOf("day"))?C()(r).format("DD MMM hh:mm a"):C()(r).format("hh:mm a")})]})]})};t.Z=(0,u.memo)(e=>{var t,l,g,j,k,C,O,z,M,R,T;let{setSelectedSkills:Z,type:F,searchText:L,searchHandler:J,externalSearchRef:$,allSkillsPaginatedQuery:U,toggleIconMargin:G}=e,q=(0,m.useRouter)(),H=(0,p.I0)(),{page:V}=q.query,Y=(0,u.useRef)(null),[W,X]=(0,u.useState)(!1),[K,Q]=(0,u.useState)("new"),[ee,et]=(0,u.useState)(!1),[el,ea]=(0,u.useState)(!1),[er,es]=(0,u.useState)(),[ei,eo]=(0,u.useState)(!1),[en,ed]=(0,u.useState)(""),[ec,em]=(0,u.useState)("new"),[eu,ep]=(0,u.useState)(!1),[ex,eh]=(0,u.useState)([]),[ef,eg]=(0,u.useState)(),[ey,ev]=(0,u.useState)(!1),[eb,ew]=(0,u.useState)(!1),[ej]=(0,E.z_k)(),[eN]=(0,E.nkV)(),[ek]=(0,E._Cv)(),[eC]=(0,E.tIv)(),[eS]=(0,E.MyG)(),[eE]=(0,E.hTr)(),[eP,eA]=(0,u.useState)(!1),e_=(0,p.v9)(e=>e.dashboard.dashboardUser),eB=(0,p.v9)(e=>e.notification.newNotifs),eD=(0,p.v9)(e=>e.notification.allNotifications),eI=(0,p.v9)(e=>e.dashboard.dashboardUser),eO=(0,p.v9)(e=>e.dashboard.dashboardEmployer),ez=(0,p.v9)(e=>e.dashboard.openJobModal),eM=(0,p.v9)(e=>{var t;return null===(t=e.dashboard.dashboardEmployer)||void 0===t?void 0:t.credit
1Config}),eR=(0,p.v9)(e=>{var t;return null==e?void 0:null===(t=e.employer)||void 0===t?void 0:t.firstJobPosted}),[eT,eZ]=(0,u.useState)(null),eF=(0,p.v9)(e=>e.common.allSkills);(0,p.v9)(e=>{var t;return null===(t=e.dashboard.dashboardEmployer)||void 0===t?void 0:t._id});let eL=(0,p.v9)(e=>{var t,l;return null===(l=e.dashboard)||void 0===l?void 0:null===(t=l.dashboardUser)||void 0===t?void 0:t._id});(0,p.v9)(e=>{var t;return null===(t=e.dashboard.dashboardEmployer)||void 0===t?void 0:t.companyName});let eJ=(0,p.v9)(e=>e.dashboard.sidebarCollapsed),[e$,eU]=(0,u.useState)(eF.map(e=>({id:e._id.toString(),label:e.skill.toString()}))),[eG,eq]=(0,u.useState)(!1),eH=(0,u.useMemo)(()=>N()(async e=>{if(U){if(e.trim().length<=2){eU(eF.map(e=>({id:e._id.toString(),label:e.skill.toString()})));return}try{eq(!0);let{data:t,error:l}=await U({variables:{page:0,search:e},fetchPolicy:"network-only"});if(l||!(null==t?void 0:t.allSkillsPaginated)){console.error("Skill fetch error:",l),eq(!1);return}eU(t.allSkillsPaginated.map(e=>({id:e._id.toString(),label:e.skill.toString()}))),eq(!1)}catch(e){console.error("Error fetching skills:",e),eq(!1)}}},600),[U,eF]);(0,u.useEffect)(()=>()=>{eH.cancel()},[eH]);let eV=async()=>{if("new"===ec){H((0,f.$7)(!1)),X(!1);try{H((0,h.o4)());let{data:e,errors:t}=await eN({variables:{isSourcedJob:eb}});if(void 0!==t)return H((0,h.o4)()),x.Am.error(t[0].message,{autoClose:2e3,hideProgressBar:!0}),null;if(!e)return H((0,h.o4)()),x.Am.error("Something went wrong!",{autoClose:2e3,hideProgressBar:!0}),null;H((0,h.o4)()),eb?q.push("/job-details?jobId=".concat(e.addEmployerJob,"&isSourcedJob=yes")):q.push("/job-details?jobId=".concat(e.addEmployerJob)),H((0,f.$7)(!1))}catch(e){return H((0,h.o4)()),x.Am.error(e.toString(),{autoClose:3e3,hideProgressBar:!0}),null}}else{if(!ef){x.Am.info("Select a job first!",{autoClose:2e3,hideProgressBar:!0});return}try{var e,t,l,a,r,s,i,o,n,d,c,m,u,p,g,y,v,b,w,j,N,k,C,S,P,A,_,B,D,I,O,z,M,R,T,Z,F,L,J,$,U,G;H((0,h.o4)());let{data:V,errors:Y}=await eN({variables:{isSourcedJob:eb}});if(void 0!==Y)return H((0,h.o4)()),x.Am.error(Y[0].message,{autoClose:2e3,hideProgressBar:!0}),null;if(!V)return H((0,h.o4)()),x.Am.error("Something went wrong!",{autoClose:2e3,hideProgressBar:!0}),null;let{data:W,errors:X}=await ek({variables:{input:{_id:V.addEmployerJob,jobTitle:{_id:null===(e=ef.jobTitle)||void 0===e?void 0:e._id,value:null!==(D=null===(t=ef.jobTitle)||void 0===t?void 0:t.value)&&void 0!==D?D:""},jobDesc:{_id:null===(l=ef.jobDesc)||void 0===l?void 0:l._id,value:null!==(I=null===(a=ef.jobDesc)||void 0===a?void 0:a.value)&&void 0!==I?I:""},jobStatus:E.$T5.Closed,jobType:ef.jobType?{_id:null===(r=ef.jobType)||void 0===r?void 0:r._id,value:null===(s=ef.jobType)||void 0===s?void 0:s.value}:null,listingComplete:!1,benefits:null===(i=ef.benefits)||void 0===i?void 0:i.map(e=>({_id:null==e?void 0:e._id,value:null==e?void 0:e.value})),isUrgent:null!==(O=ef.isUrgent)&&void 0!==O&&O,locations:null===(o=ef.locations)||void 0===o?void 0:o.map(e=>{var t,l,a,r,s,i;return{address:e.address,city:{_id:null===(t=e.city)||void 0===t?void 0:t._id,value:null!==(s=null===(l=e.city)||void 0===l?void 0:l.value)&&void 0!==s?s:""},location:{coordinates:null!==(i=null===(a=e.location)||void 0===a?void 0:a.coordinates)&&void 0!==i?i:[],type:null===(r=e.location)||void 0===r?void 0:r.type},shortName:e.shortName,locality:e.locality}}),radius:{_id:null===(n=ef.radius)||void 0===n?void 0:n._id,value:null!==(z=null===(d=ef.radius)||void 0===d?void 0:d.value)&&void 0!==z?z:5},qualifications:null===(c=ef.qualifications)||void 0===c?void 0:c.map(e=>({_id:null==e?void 0:e._id,value:null==e?void 0:e.value})),industry:{_id:null===(m=ef.industry)||void 0===m?void 0:m._id,value:null!==(M=null===(u=ef.industry)||void 0===u?void 0:u.value)&&void 0!==M?M:""},domain:{_id:null===(p=ef.domain)||void 0===p?void 0:p._id,value:null!==(R=null===(g=ef.domain)||void 0===g?void 0:g.value)&&void 0!==R?R:""},subDomain:null===(y=ef.subDomain)||void 0===y?void 0:y.map(e=>({_id:null==e?void 0:e._id,value:null==e?void 0:e.value})),skills:null===(v=ef.skills)||void 0===v?void 0:v.map(e=>({_id:null==e?void 0:e._id,value:null==e?void 0:e.value})),minRequiredExp:ef.minRequiredExp?{years:null!==(T=null===(b=ef.minRequiredExp)||void 0===b?void 0:b.years)&&void 0!==T?T:"",months:null!==(Z=null===(w=ef.minRequiredExp)||void 0===w?void 0:w.months)&&void 0!==Z?Z:""}:null,maxRequiredExp:ef.maxRequiredExp?{years:null!==(F=null===(j=ef.maxRequiredExp)||void 0===j?void 0:j.years)&&void 0!==F?F:"",months:null!==(L=null===(N=ef.maxRequiredExp)||void 0===N?void 0:N.months)&&void 0!==L?L:""}:null,minPay:{_id:null===(k=ef.minPay)||void 0===k?void 0:k._id,value:null!==(J=null===(C=ef.minPay)||void 0===C?void 0:C.value)&&void 0!==J?J:0},maxPay:{_id:null===(S=ef.maxPay)||void 0===S?void 0:S._id,value:null!==($=null===(P=ef.maxPay)||void 0===P?void 0:P.value)&&void 0!==$?$:0},isSourcedJob:!!eb,sourcedCompanyDesc:eb&&(null==ef?void 0:ef.isSourcedJob)?{_id:null===(A=ef.sourcedCompanyDesc)||void 0===A?void 0:A._id,value:null!==(U=null===(_=ef.sourcedCompanyDesc)||void 0===_?void 0:_.value)&&void 0!==U?U:""}:null,sourcedCompanyExternalLink:eb&&(null==ef?void 0:ef.isSourcedJob)?ef.sourcedCompanyExternalLink:null,sourcedCompanyLogo:eb&&(null==ef?void 0:ef.isSourcedJob)?{_id:ef.sourcedCompanyLogo._id,value:null===(B=ef.sourcedCompanyLogo)||void 0===B?void 0:B.value}:null,sourcedCompanyName:eb&&(null==ef?void 0:ef.isSourcedJob)?ef.sourcedCompanyName:null,relocate:null!==(G=ef.relocate)&&void 0!==G&&G}}});if(void 0!==X)return H((0,h.o4)()),x.Am.error(X[0].message,{autoClose:2e3,hideProgressBar:!0}),null;if(!W)return H((0,h.o4)()),x.Am.error("Something went wrong!",{autoClose:2e3,hideProgressBar:!0}),null;H((0,h.o4)()),eb?q.push("/job-details?jobId=".concat(V.addEmployerJob,"&otp=").concat(en,"&otpkey=").concat(encodeURIComponent(er),"&isSourcedJob=yes")):q.push("/job-details?jobId=".concat(V.addEmployerJob,"&otp=").concat(en,"&otpkey=").concat(encodeURIComponent(er))),H((0,f.$7)(!1))}catch(e){return H((0,h.o4)()),x.Am.error(e.toString(),{autoClose:2e3,hideProgressBar:!0}),null}}},eY=async()=>{try{H((0,h.o4)());let{data:e,error:t}=await eS({variables:{job:!0,edit:!1},fetchPolicy:"network-only"});if(H((0,h.o4)()),t){x.Am.error(t.message,{autoClose:2e3,hideProgressBar:!0});return}if(void 0===e){x.Am.error("Something went wrong",{autoClose:2e3,hideProgressBar:!0});return}es(e.generateOtp),eo(!0),x.Am.info("OTP sent to your email id / mobile number",{autoClose:2e3,hideProgressBar:!0})}catch(e){H((0,h.o4)()),x.Am.error("Something went wrong",{autoClose:2e3,hideProgressBar:!0});return}},eW=async e=>{try{if(!er){x.Am.info("Something went wrong, please try again later.",{autoClose:2e3,hideProgressBar:!0});return}H((0,h.o4)());let{data:t,error:l}=await eE({variables:{key:er,otp:e},fetchPolicy:"network-only"});if(H((0,h.o4)()),l){x.Am.error(l.message,{autoClose:2e3,hideProgressBar:!0});return}if(void 0===t){x.Am.error("Something went wrong",{autoClose:2e3,hideProgressBar:!0});return}if(!t.validateOtp){x.Am.info("Invalid OTP entered",{autoClose:2e3,hideProgressBar:!0});return}x.Am.success("OTP verified successfully",{autoClose:2e3,hideProgressBar:!0}),eo(!1),ed(e),H((0,f.$7)(!0)),X(!0)}catch(e){H((0,h.o4)()),x.Am.error("Something went wrong",{autoClose:2e3,hideProgressBar:!0});return}},eX=async()=>{try{H((0,h.o4)());let{data:e,error:t}=await eC({fetchPolicy:"network-only"});if(H((0,h.o4)()),void 0!==t)return x.Am.error(t.message,{autoClose:2e3,hideProgressBar:!0}),!1;if(void 0===e||!1===e.logout)return x.Am.error("Something went wrong!",{autoClose:2e3,hideProgressBar:!0}),!1;S.ZP.reset(),q.replace("/".concat((null==eI?void 0:eI.type)==="employee"?"jobseeker":"talentseeker","/login")),H((0,h.D3)()),H((0,v.Dr)()),H((0,b.mA)()),H((0,w.p$)()),localStorage.clear(),sessionStorage.clear()}catch(e){if(e)return H((0,h.o4)()),x.Am.error(e.toString(),{autoClose:2e3,hideProgressBar:!0}),!1}},eK=()=>{eg(void 0),et(!1),Q("new"),em("new"),H((0,f.$7)(!1)),X(!1)};(0,u.useEffect)(()=>{(async()=>{H((0,h.o4)());let{data:e,error:t}=await ej({fetchPolicy:"network-only"});return void 0!==t?(x.Am.error(t.message,{autoClose:2e3,hideProgressBar:!0}),H((0,h.o4)()),null):e?void(H((0,h.o4)()),eh(e.getEmployerAllJobs)):(x.Am.error("Something went wrong!",{autoClose:2e3,hideProgressBar:!0}),H((0,h.o4)()),null)})()},[f.$7,ez]);let eQ=async()=>{H((0,h.o4)());let{data:e,error:t}=await ej({fetchPolicy:"network-only"});return void 0!==t?(x.Am.error(t.message,{autoClose:2e3,hideProgressBar:!0}),H((0,h.o4)()),null):e?void(H((0,h.o4)()),eh(e.getEmployerAllJobs)):(x.Am.error("Something went wrong!",{autoClose:2e3,hideProgressBar:!0}),H((0,h.o4)()),null)};(0,u.useEffect)(()=>{Y.current&&(Y.current.value="")},[Y]);let e0=(J||Z)&&L;return(0,a.jsxs)("div",{className:"z-20 relative w-full",children:[(0,a.jsxs)("div",{className:"w-full flex items-center justify-between flex-row px-6 xl:px-8  gap-0.5 md:gap-2.5",children:[(0,a.jsx)("div",{className:"xl:hidden relative flex justify-center items-center",onClick:()=>{H((0,f.aY)(!0))},id:"mobilenav_icon",children:(0,a.jsx)(s.G,{icon:r.xiG,className:"text-black bg-lightGray rounded-xl p-2 cursor-pointer shadow-dashboardCards",size:"sm"})}),null===eO||(null==eO?void 0:eO.employerVerified)||"employer"!==F?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"hidden xl:flex relative justify-center items-center ml-4 ".concat(G||""),children:(0,a.jsx)("button",{onClick:()=>H((0,f.vP)(!eJ)),className:"text-black bg-white outline-none focus-within:outline-none border border-[rgba(0,0,0,0.2)] rounded-xl p-2 cursor-pointer shadow-dashboardCards hover:bg-gray-50 transition-colors",title:eJ?"Expand Sidebar":"Collapse Sidebar",children:eJ?(0,a.jsx)(d.Z,{size:14}):(0,a.jsx)(c.Z,{size:14})})}),e0?(0,a.jsx)("div",{className:"flex-1 relative select-none w-full ".concat(V===f.O$.explore&&"employer"===F?"md:max-w-[75%]":""," ").concat(eJ?"ml-3":"ml-2"),id:"search_bar",children:void 0!==J?(0,a.jsx)("div",{children:$?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("input",{ref:$,type:"text",className:"bg-white outline-none focus-within:outline-none border border-[rgba(0,0,0,0.2)] rounded-xl text-xs px-8 xl:px-8 py-2 w-full",placeholder:L,onChange:e=>{J(e.target.value.toString())}}),(0,a.jsx)(s.G,{icon:r.wn1,className:"absolute left-4 xl:left-3 align-middle top-[50%] text-gray-500",style:{transform:"translateY(-50%)"},size:"xs"})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("input",{ref:Y,type:"text",className:"bg-white outline-none focus-within:outline-none border border-[rgba(0,0,0,0.2)] rounded-xl text-xs px-8 xl:px-8 py-2 w-full",placeholder:L,onChange:e=>{J(e.target.value.toString())}}),(0,a.jsx)(s.G,{icon:r.wn1,className:"absolute left-4 xl:left-3 align-middle top-[50%] text-gray-500",style:{transform:"translateY(-50%)"},size:"xs"})]})}):void 0!==Z?(0,a.jsx)("div",{children:(0,a.jsx)("div",{children:(0,a.jsx)(y.y,{onSearch:e=>{Z(e.map(e=>e.label))},options:e$,shouldShowSearchBtn:!1,onChange:e=>{Z(e.map(e=>e.label))},onInputChange:e=>{eH(e)},placeholder:L,yscrollable:!0,isLoading:eG})})}):(0,a.jsx)("div",{className:"flex-1 relative select-none"})}):(0,a.jsx)("div",{className:"flex-1 relative select-none"}),(0,a.jsxs)("div",{className:"flex items-end justify-center gap-2",children:["employer"===F&&"6365e05e9e8b12f445358d85"===eL&&(0,a.jsx)("div",{className:"relative justify-center items-center flex",children:(0,a.jsx)(A.Z,{bg:"bg-primary",className:"text-sm mx-2 w-44 font-thin hidden lg:block",text:"text-white",title:"Post a sourced job",size:"small",icon:r.KtF,onClick:async()=>
1{if(H((0,w.xd)(!1)),eR)H((0,f.$7)(!0)),X(!0),ew(!0);else try{H((0,h.o4)());let{data:e,errors:t}=await eN({variables:{isSourcedJob:!0},fetchPolicy:"network-only"});if(t){H((0,h.o4)()),x.Am.error(t[0].message,{autoClose:2e3,hideProgressBar:!0});return}if(!e){H((0,h.o4)()),x.Am.error("Something went wrong!",{autoClose:2e3,hideProgressBar:!0});return}H((0,h.o4)()),q.push("/job-details?jobId=".concat(e.addEmployerJob,"&isSourcedJob=yes"))}catch(e){H((0,h.o4)()),x.Am.error(e.toString(),{autoClose:3e3,hideProgressBar:!0})}},id:"new_job_btn"})}),"employer"===F&&(0,a.jsx)("div",{className:"relative justify-center items-center flex",children:(0,a.jsx)(A.Z,{bg:"bg-primary",className:"text-sm mx-2 w-44 font-thin hidden lg:block",text:"text-white",title:"Post a Job",size:"small",icon:r.KtF,onClick:async()=>{if(H((0,w.xd)(!1)),localStorage.removeItem("other_candidate_empl_id"),localStorage.removeItem("other_candidate_empl_dets"),eQ(),eR)H((0,f.$7)(!0)),X(!0),ew(!1);else try{H((0,h.o4)());let{data:e,errors:t}=await eN();if(t){H((0,h.o4)()),x.Am.error(t[0].message,{autoClose:2e3,hideProgressBar:!0});return}if(!e){H((0,h.o4)()),x.Am.error("Something went wrong!",{autoClose:2e3,hideProgressBar:!0});return}H((0,h.o4)()),q.push("/job-details?jobId=".concat(e.addEmployerJob))}catch(e){H((0,h.o4)()),x.Am.error(e.toString(),{autoClose:3e3,hideProgressBar:!0})}},id:"new_job_btn"})}),(0,a.jsxs)("div",{className:"relative flex justify-center items-center",onClick:()=>{ep(!0)},id:"notification_icon",children:[(0,a.jsx)(s.G,{icon:r.qmU,className:"text-gray-500 bg-white outline-none focus-within:outline-none border border-[rgba(0,0,0,0.2)] rounded-xl p-2  w-3 h-3 cursor-pointer px-3 xl:px-3 py-2.5 shadow-dashboardCards",size:"sm"}),eB.length>0&&(0,a.jsx)("div",{className:"absolute top-0 right-0",children:(0,a.jsxs)("span",{className:"flex h-2 w-2 relative top-0",children:[(0,a.jsx)("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-xl bg-primary opacity-75"}),(0,a.jsx)("span",{className:"relative inline-flex rounded-xl h-2 w-2 bg-primary"})]})})]}),"employer"===F&&(0,a.jsx)("div",{className:" w-full flex justify-start items-center gap-4 relative bg-white outline-none focus-within:outline-none cursor-pointer",onClick:()=>{ev(e=>!e)},children:(0,a.jsx)("div",{className:"w-[33px] h-[33px] rounded-full bg-lightPurple text-black font-normal flex items-center justify-center",children:(0,a.jsx)("p",{className:"!leading-[0px] text-[12px]",children:eI&&eO?null===(l=eO.companyName)||void 0===l?void 0:l.split("")[0]:null})})})]})]}):(0,a.jsxs)("div",{className:"w-full flex gap-3",children:[(0,a.jsxs)("div",{className:"bg-red-50 border shadow-sm items-center relative select-none ml-3 w-full flex rounded-lg text-sm px-2 py-1",children:[(0,a.jsx)(n.Z,{className:"w-4 h-4 mr-1.5 text-white fill-red-600"}),(0,a.jsx)("p",{className:"mt-0.5",children:"Account under review. You'll receive an email once verified, after which you can start posting jobs."})]}),(0,a.jsx)("div",{className:"flex justify-start items-center gap-4 relative bg-white outline-none focus-within:outline-none cursor-pointer",onClick:()=>{ev(e=>!e)},children:(0,a.jsx)("div",{className:"w-[33px] h-[33px] rounded-full bg-lightPurple text-black font-normal flex items-center justify-center",children:(0,a.jsx)("p",{className:"!leading-[0px] text-[12px]",children:eI&&eO?null===(t=eO.companyName)||void 0===t?void 0:t.split("")[0]:null})})})]})]}),(0,a.jsx)(i.M,{children:ey&&(0,a.jsx)(o.E.div,{initial:{opacity:0}
1,animate:{opacity:1,transition:{}},exit:{opacity:0},className:"fixed top-0 left-0 bg-transparent w-full h-full flex justify-center items-center overflow-hidden z-30",onClick:()=>ev(!1),children:(0,a.jsxs)(o.E.div,{initial:{opacity:0,y:-500},animate:{opacity:1,y:0,transition:{duration:.3}},exit:{opacity:0,y:-500,transition:{duration:.3}},className:"w-52 xl:w-1/6 bg-white rounded-xl shadow-2xl h-auto p-4 absolute top-20 right-2  z-10",children:[(0,a.jsxs)("div",{className:"flex flex-row justify-start items-center cursor-pointer",onClick:()=>{ev(!1),q.push("/dashboard?page=profile"),H((0,f.D4)(f.O$.profile))},children:[(0,a.jsx)("div",{className:"w-10 h-10 rounded-xl bg-lightGray text-black font-bold grid place-items-center text-xs",children:eI&&eI.type===E.i44.Employee?eI.firstName.split("")[0]:eO?null===(g=eO.companyName)||void 0===g?void 0:g.split("")[0]:null}),eO?(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("p",{className:"w-full px-3 text-base font-medium text-black flex-1 text-ellipsis whitespace-nowrap overflow-hidden",children:[eO.companyName,eI&&eI.type&&(0,a.jsx)("span",{className:"block w-full text-xs font-medium text-tabInactive flex-1 text-ellipsis whitespace-nowrap overflow-hidden",children:eI.firstName+" "+eI.lastName})]})}):null]}),(0,a.jsx)("hr",{className:"my-4"}),(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)("div",{className:"flex flex-row justify-start items-center cursor-pointer",onClick:()=>{ev(!1),q.push("/dashboard?page=settings"),H((0,f.D4)(f.O$.settings))},children:[(0,a.jsx)(D.Z,{color:"black"}),(0,a.jsx)("p",{className:"flex-1 px-3 text-sm text-black",children:"Account"})]}),(null==eI?void 0:eI.type)===E.i44.Employer&&(0,a.jsxs)("div",{className:"flex flex-row justify-start items-center cursor-pointer",onClick:()=>{ev(!1),q.push("/dashboard?page=subscription"),H((0,f.D4)(f.O$.subscription))},children:[(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,a.jsx)("rect",{x:"2",y:"5",width:"20",height:"14",rx:"2"}),(0,a.jsx)("line",{x1:"2",y1:"10",x2:"22",y2:"10"})]}),(0,a.jsx)("p",{className:"flex-1 px-3 text-sm text-black",children:"Billing Details"})]}),(0,a.jsxs)("div",{className:"flex flex-row justify-start items-center cursor-pointer",onClick:()=>{ev(!1),q.push("/dashboard?page="+f.O$.profile),H((0,f.D4)(f.O$.profile))},children:[(0,a.jsx)(B.Z,{color:"black",stroke:"black"}),(0,a.jsx)("p",{className:"flex-1 px-3 text-sm text-black",children:"Profile"})]})]}),(0,a.jsx)("hr",{className:"mt-4"}),(0,a.jsxs)("div",{className:"flex flex-row justify-start items-center cursor-pointer mt-4",onClick:eX,children:[(0,a.jsx)("p",{className:"flex-1 px-3 text-sm text-black",children:"Logout"}),(0,a.jsx)(s.G,{icon:r.SJh,size:"sm",className:"text-black"})]})]})})}),(0,a.jsx)(i.M,{children:eu&&(0,a.jsx)(o.E.div,{initial:{opacity:0}
1,animate:{opacity:1,transition:{}},exit:{opacity:0},className:"fixed top-0 left-0 bg-transparent w-full h-full flex justify-center items-center overflow-hidden z-30",onClick:()=>ep(!1),children:(0,a.jsxs)(o.E.div,{initial:{opacity:0,y:-20},animate:{opacity:1,y:0,transition:{duration:.3}},exit:{opacity:0,y:-20,transition:{duration:.3}},className:"w-full overflow-y-auto xl:w-2/5 bg-white rounded-xl shadow-2xl absolute top-20 xl:right-6 z-10 outline outline-gray-100",style:{maxHeight:"80vh"},children:[(0,a.jsx)("h4",{className:"text-darkGray font-bold text-xl pt-4 pb-2 px-5",children:"All Notifications"}),eD.length>0?(0,a.jsx)("div",{className:"space-y-3",children:[...eD].sort((e,t)=>{let l=new Date("1970/01/01 "+e.date);return new Date("1970/01/01 "+t.date).valueOf()-l.valueOf()}).map((e,t)=>(0,a.jsx)(I,{triggerType:e.triggerType,content:e.content,date:e.date,id:e._id,newNotif:!!eB.find(t=>t._id===e._id),callback:()=>{ep(!0)},userType:null==e_?void 0:e_.type},t))}):(0,a.jsx)("div",{className:"flex justify-center items-center w-full h-full",children:(0,a.jsx)("p",{className:"text-sm font-medium xl:whitespace-pre-line text-center text-black text-opacity-60 px-6 xl:px-0 pb-6",style:{textAlignLast:"center"},children:"No New Notifications"})})]})})}),(0,a.jsx)(_.Z,{show:ei,closeHandler:()=>{eo(!1),es(void 0)},handleModalSubmit:eW,resendHandler:eY}),"employer"===F&&(0,a.jsx)(P.Z,{show:ez,size:"lg:w-2/5 w-11/12",close:eK,children:(0,a.jsxs)("div",{className:"w-full h-full flex flex-col justify-start items-start p-2",children:[(0,a.jsxs)("div",{className:"flex flex-row justify-between items-center w-full",children:[(0,a.jsx)(s.G,{icon:r.A35,className:"self-end cursor-pointer p-4 ".concat("new"!==ec?"block":"invisible"),onClick:()=>{eg(void 0),em("new")}}),(0,a.jsx)(s.G,{icon:r.YIN,className:"self-end cursor-pointer p-4",onClick:()=>eK()})]}),(0,a.jsx)("br",{}),(0,a.jsxs)("div",{className:"w-full h-full px-8",children:[(0,a.jsx)("p",{className:"text-lg font-medium text-justify text-opacity-80 text-black mb-4",children:"new"===ec?"How would you like to post your job?":"Choose any one job from below?"}),"new"===ec&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{onClick:()=>em("new"),className:"px-8 py-6 w-full flex justify-start items-center gap-4 roun
1ded-xl cursor-pointer transition-all  ".concat("new"===ec?"border border-primary":"border border-gray-300"),children:[(0,a.jsxs)("span",{className:"flex h-4 w-4 relative top-0 justify-center items-center",children:[(0,a.jsx)("span",{className:"absolute inline-flex h-full w-full rounded-xl border border-gray-300"}),(0,a.jsx)("span",{className:"relative inline-flex rounded-xl h-3 w-3 ".concat("new"===ec?"bg-primary":"bg-gray-400")})]}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)("p",{className:"text-sm",children:"Start with a new post"}),(0,a.jsx)("p",{className:"",style:{fontSize:"10px"},children:"Use our posting tool to create your job."})]})]}),ex.filter(e=>e.listingComplete).length>0&&(0,a.jsxs)("div",{onClick:()=>em("past"),className:"px-8 py-6 w-full flex justify-start items-center gap-4 rounded-xl mt-6 cursor-pointer transition-all  ".concat("new"!==ec?"border border-primary":"border border-gray-300"," relative"),children:[(0,a.jsxs)("span",{className:"flex h-4 w-4 relative top-0 justify-center items-center",children:[(0,a.jsx)("span",{className:"absolute inline-flex h-full w-full rounded-xl border border-gray-300"}),(0,a.jsx)("span",{className:"relative inline-flex rounded-xl h-3 w-3 ".concat("new"!==ec?"bg-primary":"bg-gray-300")})]}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)("p",{className:"text-sm",children:"Use a previously posted job"}),(0,a.jsx)("p",{className:"",style:{fontSize:"10px"},children:"Copy a past job post and edit as needed"})]}),(0,a.jsx)("p",{className:"absolute top-2 right-2 text-primary bg-black bg-opacity-10 px-2 py-1 rounded-xl",style:{fontSize:"8px"},children:"Save Time"})]}),ex.filter(e=>!e.listingComplete&&e.jobStatus===E.$T5.Closed).length>0&&(0,a.jsxs)("div",{onClick:()=>em("pending"),className:"px-8 py-6 w-full flex justify-start items-center gap-4 roun
1ded-xl mt-6 cursor-pointer transition-all  ".concat("new"!==ec?"border border-primary":"border border-gray-300"," relative"),children:[(0,a.jsxs)("span",{className:"flex h-4 w-4 relative top-0 justify-center items-center",children:[(0,a.jsx)("span",{className:"absolute inline-flex h-full w-full rounded-xl border border-gray-300"}),(0,a.jsx)("span",{className:"relative inline-flex rounded-xl h-3 w-3 ".concat("new"!==ec?"bg-primary":"bg-gray-300")})]}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)("p",{className:"text-sm",children:"Complete pending job"}),(0,a.jsx)("p",{className:"",style:{fontSize:"10px"},children:"Complete your pending job post and publish it."})]})]})]}),("past"===ec||"pending"===ec)&&(0,a.jsx)("div",{className:"overflow-y-auto space-y-6",style:{maxHeight:"240px"},children:ex.filter(e=>"past"===ec?e.listingComplete:!e.listingComplete&&e.jobStatus===E.$T5.Closed).map(e=>{var t,l;return(0,a.jsxs)("div",{onClick:()=>eg(e),className:"px-8 py-6 w-full flex justify-start items-center gap-4 roun
1ded-xl cursor-pointer transition-all  ".concat((null==ef?void 0:ef._id)===e._id?"border border-primary":"border border-gray-300"),children:[(0,a.jsxs)("span",{className:"flex h-4 w-4 relative top-0 justify-center items-center",children:[(0,a.jsx)("span",{className:"absolute inline-flex h-full w-full rounded-xl border border-gray-300"}),(0,a.jsx)("span",{className:"relative inline-flex rounded-xl h-3 w-3 ".concat((null==ef?void 0:ef._id)===e._id?"bg-primary":"bg-gray-400")})]}),(0,a.jsx)("div",{className:"flex flex-col",children:(0,a.jsx)("p",{className:"text-sm",children:null!==(l=null===(t=e.jobTitle)||void 0===t?void 0:t.value)&&void 0!==l?l:"Incomplete job"})})]},e._id)})})]}),(0,a.jsx)("br",{}),(0,a.jsx)("div",{className:"w-full flex justify-end items-center px-8 mt-4",children:(0,a.jsx)(A.Z,{className:"text-xs w-32 font-thin",bg:"bg-primary",text:"text-white",title:"Continue",size:"small",onClick:eV})}),(0,a.jsx)("br",{})]})}),"employer"===F&&(0,a.jsx)(P.Z,{size:"w-full md:w-11/12 lg:w-[40%]",show:eP,close:()=>eA(!1),children:(0,a.jsxs)("div",{className:"w-full p-6 flex flex-col items-center gap-6 relative",children:[(0,a.jsx)("button",{onClick:()=>eA(!1),className:"absolute top-2 right-2 px-3 py-1 rounded-lg hover:bg-gray-100 transition-colors duration-200",children:(0,a.jsx)(s.G,{icon:r.NBC,className:"text-gray-500 hover:text-gray-700",size:"sm"})}),(0,a.jsx)("div",{className:"flex justify-between items-center w-full border-b pb-4 mt-2",children:(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{className:"text-xl font-bold text-gray-800",children:"Usage Details"}),(0,a.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:"Here's an overview of your credits usage."})]})}),(0,a.jsxs)("div",{className:"w-full space-y-4",children:[(0,a.jsx)("div",{className:"bg-gradient-to-r from-blue-50 to-blue-100 p-4 rounded-lg shadow-sm",children:(0,a.jsxs)("div",{className:"flex justify-between items-start",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"text-lg font-semibold text-gray-700",children:"Pro Plan"}),(0,a.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:"Credit usage of pro plan"})]}),(0,a.jsxs)("div",{className:"text-right",children:[(0,a.jsx)("p",{className:"text-xs text-gray-500 mt-1",children:"Used / Remaining"}),(0,a.jsxs)("p",{className:"text-xl font-semibold text-black mt-1",children:[null!==(z=null==eM?void 0:null===(j=eM.Pro)||void 0===j?void 0:j.creditsUsed)&&void 0!==z?z:0," /"," ",null!==(M=null==eM?void 0:null===(k=eM.Pro)||void 0===k?void 0:k.creditsRemaining)&&void 0!==M?M:0]})]})]})}),(0,a.jsx)("div",{className:"bg-gradient-to-r from-purple-50 to-purple-100 p-4 rounded-lg shadow-sm",children:(0,a.jsxs)("div",{className:"flex justify-between items-start",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"text-lg font-semibold text-gray-700",children:"Starter Plan"}),(0,a.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:"Credit usage of starter plan"})]}),(0,a.jsxs)("div",{className:"text-right",children:[(0,a.jsx)("p",{className:"text-xs text-gray-500 mt-1",children:"Used / Remaining"}),(0,a.jsxs)("p",{className:"text-xl font-semibold text-black mt-1",children:[null!==(R=null==eM?void 0:null===(C=eM.Starter)||void 0===C?void 0:C.creditsUsed)&&void 0!==R?R:0," /"," ",null!==(T=null==eM?void 0:null===(O=eM.Starter)||void 0===O?void 0:O.creditsRemaining)&&void 0!==T?T:0]})]})]})})]})]})})]})})},70791:function(e,t,l){"use strict";var a=l(85893);t.Z=e=>{let{title:t,desc:l,showPadding:r=!0,showtooltip:s,topMargin:i}=e;return(0,a.jsx)("div",{className:"flex flex-row justify-between flex-shrink-0 ".concat(i?"md:mt-2 mt-0":"mt-2"),children:(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)("h4",{className:"text-darkGray font-bold text-xl pb-1 items-center pt-2 md:pt-0 ".concat(r?"px-6 lg:px-12":"px-0"),children:t}),l&&(0,a.jsx)("p",{className:"text-darkGray font-normal text-xs pb-2 px-6 xl:px-12",children:l})]})})}},55497:function(e,t,l){"use strict";var a=l(85893);t.Z=e=>{let{color:t="black",stroke:l="white"}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",className:"w-6 h-6 fill-inherit stroke-inherit stroke-[6px]",children:[(0,a.jsx)("circle",{className:"st0",cx:"50",cy:"30.6",r:"13.2"}),(0,a.jsx)("path",{className:"st0",d:"M50,54.5c-3.8,0-7.7-1.9-10.6-3.7c-3.1-2-7.2-1.7-9.9,0.7c-2.7,2.4
1-5.3,6.4-8.2,11.2c-3.9,6.6-6,19.9,5,19.9   s23.7,0,23.7,0"}),(0,a.jsx)("path",{className:"st0",d:"M50,54.5c3.8,0,7.7-1.9,10.6-3.7c3.1-2,7.2-1.7,9.9,0.7c2.7,2.4,5.3,6.4,8.2,11.2c3.9,6.6,6,19.9-5,19.9   s-23.7,0-23.7,0"})]})}},30771:function(e,t,l){"use strict";var a=l(85893);t.Z=e=>{let{color:t="white"}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",className:"w-6 h-6 fill-inherit",children:[(0,a.jsx)("path",{d:"M29.74,80.05c.49-2.12,.97-4.22,1.45-6.33,.28-1.2,.57-2.4,.81-3.61,.04-.21-.1-.48-.2-.7-.05-.11-.21-.18-.28-.29-.72-1.11-1.65-1.15-2.86-.82-2.72,.73-5.49,1.28-8.24,1.92-.31,.07-.49,.07-.63-.27-1.77-4.28-3.55-8.55-5.32-12.83-.02-.05-.02-.11-.04-.21,.18-.12,.37-.25,.56-.37,2.66-1.65,5.31-3.31,7.98-4.94,.39-.24,.54-.49,.48-.93-.04-.28-.07-.59-.02-.86,.16-.78-.17-1.2-.84-1.59-2.57-1.54-5.1-3.14-7.64-4.72-.18-.11-.35-.23-.57-.37l5.56-13.38c2.01,.46,3.96,.9,5.92,1.35,1.36,.31,2.71,.64,4.07,.91,.21,.04,.49-.09,.7-.2,.18-.1,.28-.33,.45-.44,.96-.63,.98-1.43,.71-2.47-.75-2.93-1.38-5.89-2.07-8.91l13.4-5.55c.14,.21,.26,.38,.37,.56,1.66,2.67,3.33,5.33,4.98,8.02,.24,.39,.49,.54,.93,.47,.26-.04,.55-.08,.81-.02,.87,.21,1.29-.23,1.71-.93,1.52-2.53,3.1-5.02,4.67-7.53,.11-.18,.23-.35,.35-.55,.2,.07,.36,.12,.52,.19,4.12,1.71,8.24,3.42,12.37,5.11,.43,.17,.52,.35,.42,.81-.74,3.11-1.43,6.24-2.16,9.36-.08,.36-.03,.59,.25,.8,.06,.04,.13,.1,.17,.16,.77,1.2,1.77,1.22,3.06,.87,2.7-.73,5.45-1.28,8.18-1.9,.11-.03,.22-.04,.37-.07,.08,.18,.17,.34,.24,.52,1.7,4.1,3.4,8.19,5.12,12.28,.19,.45,.12,.65-.3,.91-2.7,1.65-5.38,3.34-8.08,4.99-.36,.22-.52,.46-.46,.88,.04,.25,.07,.51,.02,.75-.2,.92,.22,1.4,1,1.86,2.56,1.51,5.06,3.12,7.6,4.68,.35,.21,.42,.39,.26,.78-1.74,4.14-3.46,8.29-5.18,12.45-.14,.35-.29,.45-.68,.36-3.14-.74-6.29-1.44-9.43-2.17-.38-.09-.61-.03-.85,.26-.26,.31-.53,.62-.86,.86-.49,.35-.5,.75-.37,1.3,.72,3.02,1.39,6.05,2.11,9.07,.1,.43,0,.6-.4,.77-4.14,1.7-8.28,3.42-12.41,5.15-.39,.16-.56,.1-.78-.25-1.67-2.71-3.37-5.41-5.03-8.12-.23-.38-.48-.55-.93-.48-.34,.05-.71,.08-1.04,.01-.68-.13-1.02,.17-1.37,.73-1.6,2.64-3.25,5.25-4.88,7.87-.17,.28-.3,.43-.68,.27-4.26-1.78-8.52-3.54-12.79-5.31-.05-.02-.1-.06-.22-.13Zm-10.45-38.48c.21,.13,.38,.25,.56,.36,2.42,1.52,4.84,3.04,7.27,4.54,.32,.2,.45,.4,.41,.79-.24,1.86-.24,3.73,0,5.6,.05,.38-.07,.59-.4,.79-2.44,1.49-4.86,3.01-7.29,4.52-.18,.11-.35,.23-.55,.36l3,7.25c.15-.03,.24-.04,.33-.06,2.88-.67,5.76-1.33,8.63-2.01,.31-.07,.54-.1,.81,.19,1.32,1.37,2.68,2.72,4.05,4.05,.28,.27,.34,.48,.25,.85-.67,2.79-1.3,5.6-1.97,8.39-.1,.44-.03,.63,.41,.81,2.05,.81,4.07,1.67,6.11,2.51,.21,.09,.42,.17,.64,.25,.13-.2,.24-.36,.34-.52,1.52-2.42,3.04-4.83,4.55-7.26,.21-.34,.42-.44,.83-.43,1.85,.04,3.7,.04,5.55,0,.4,0,.62,.08,.83,.43,1.5,2.43,3.02,4.85,4.53,7.27,.11,.17,.23,.34,.35,.52,2.45-1.01,4.85-2.01,7.25-3-.03-.16-.04-.23-.05-.3-.67-2.89-1.34-5.78-2.03-8.67-.09-.37,0-.57,.27-.84,1.36-1.31,2.69-2.66,4.01-4.01,.23-.23,.4-.34,.74-.25,1.1,.28,2.22,.53,3.33,.78,1.9,.44,3.79,.88,5.7,1.32,.06-.1,.11-.16,.13-.23,.92-2.23,1.84-4.46,2.78-6.68,.15-.37-.03-.47-.27-.62-2.46-1.53-4.91-3.08-7.37-4.6-.36-.22-.46-.44-.45-.87,.04-1.85,.04-3.7,0-5.54,0-.38,.07-.59,.4-.79,2.42-1.49,4.81-3.01,7.24-4.47,.52-.31,.55-.57,.33-1.08-.76-1.73-1.46-3.49-2.18-5.23-.18-.44-.37-.88-.56-1.35-.27,.06-.5,.11-.72,.16-2.76,.64-5.53,1.27-8.29,1.93-.34,.08-.54,.01-.79-.25-1.29-1.33-2.59-2.65-3.93-3.92-.35-.33-.43-.59-.32-1.04,.66-2.76,1.29-5.52,1.95-8.28,.1-.43,.04-.63-.4-.81-2.1-.83-4.18-1.71-6.27-2.57-.16-.06-.32-.11-.49-.17-.13,.2-.25,.37-.36,.55-1.51,2.4-3.02,4.8-4.52,7.21-.21,.33-.41,.49-.83,.43-1.85-.24-3.7-.24-5.55,0-.4,.05-.62-.07-.84-.42-1.5-2.43-3.01-4.85-4.53-7.27-.11-.17-.23-.34-.35-.53-2.26,.93-4.46,1.87-6.69,2.75-.5,.2-.56,.42-.44,.89,.67,2.79,1.3,5.6,1.97,8.39,.08,.33,0,.51-.24,.74-1.35,1.32-2.69,2.65-4.01,4.01-.26,.26-.46,.38-.84,.28-1.27-.32-2.56-.6-3.83-.9-1.71-.4-3.42-.79-5.17-1.2l-3.01,7.27Z"}),(0,a.jsx)("path",{d:"M36.88,50.05c0-7.27,5.87-13.15,13.15-13.16,7.27-.01,13.18,5.87,13.19,13.12,.01,7.28-5.9,13.2-13.19,13.19-7.27,0-13.16-5.89-13.16-13.16Zm3.92-.08c-.05,5.12,4.05,9.28,9.17,9.31,5.11,.04,9.27-4.02,9.32-9.11,.05-5.15-4-9.31-9.12-9.37-5.16-.06-9.34,4.01-9.38,9.17Z"})]})}},64714:function(e,t,l){"use strict";l.d(t,{l:function(){return o}});var a=l(85893),r=l(32233),s=l(70798),i=l(67294);let o=e=>{let t,{percentage:l,size:o=48,strokeWidth:n=4,className:d="",showInitial:c=!1,initial:m=""}=e,u=(o-n)/2,p=u*Math.PI,x=p-l/100*p;t=l<40?"#EF4444":l<70?"#F59E0B":"#4d33e0";let h=(0,r._)();return(0,i.useEffect)(()=>{h.start({strokeDashoffset:x,transition:{duration:1,ease:"easeOut"}})},[l,h]),(0,a.jsxs)("div",{className:"relative ".concat(d),style:{width:o,height:o},children:[(0,a.jsxs)("svg",{width:o,height:o,viewBox:"0 0 ".concat(o," ").concat(o),className:"overflow-visible",children:[(0,a.jsx)("path",{d:"\n            M ".concat(n/2,",").concat(o/2,"\n            a ").concat(u," ").concat(u," 0 0 1 ").concat(o-n," 0\n          "),fill:"none",stroke:"#E5E7EB",strokeWidth:n,strokeLinecap:"round"}),(0,a.jsx)(s.E.path,{d:"\n            M ".concat(n/2,",").concat(o/2,"\n            a ").concat(u," ").concat(u," 0 0 1 ").concat(o-n," 0\n          "),fill:"none",stroke:t,strokeWidth:n,strokeLinecap:"round",strokeDasharray:p,initial:{strokeDashoffset:p},animate:h})]}),(0,a.jsx)("div",{className:"absolute bottom-0 left-0 right-0 flex justify-center",style:{bottom:"16
1px"},children:(0,a.jsxs)(s.E.span,{className:"text-xs font-bold",initial:{opacity:0},animate:{opacity:1},transition:{delay:.5},style:{color:t},children:[l,"%"]})})]})}},39712:function(e,t,l){"use strict";l.d(t,{Z:function(){return h}});var a=l(85893),r=l(44204),s=l(2466),i=(l(66574),l(67294)),o=l(27245),n=l(98997);let d=e=>{let{className:t,...l}=e;return(0,a.jsx)("nav",{role:"navigation","aria-label":"pagination",className:(0,n.cn)("",t),...l})};d.displayName="Pagination";let c=i.forwardRef((e,t)=>{let{className:l,...r}=e;return(0,a.jsx)("ul",{ref:t,className:(0,n.cn)("flex flex-row items-center gap-1",l),...r})});c.displayName="PaginationContent";let m=i.forwardRef((e,t)=>{let{className:l,...r}=e;return(0,a.jsx)("li",{ref:t,className:(0,n.cn)("",l),...r})});m.displayName="PaginationItem";let u=e=>{let{className:t,isActive:l,size:r="icon",...s}=e;return(0,a.jsx)("a",{"aria-current":l?"page":void 0,className:(0,n.cn)((0,o.d)({variant:l?"outline":"ghost",size:r}),t),...s})};u.displayName="PaginationLink";let p=e=>{let{className:t,...l}=e;return(0,a.jsx)(u,{"aria-label":"Go to previous page",size:"default",className:(0,n.cn)("p-2",t),...l,children:(0,a.jsx)(r.Z,{className:"h-4 w-4"})})};p.displayName="PaginationPrevious";let x=e=>{let{className:t,...l}=e;return(0,a.jsx)(u,{"aria-label":"Go to next page",size:"default",className:(0,n.cn)("p-2",t),...l,children:(0,a.jsx)(s.Z,{className:"h-4 w-4"})})};x.displayName="PaginationNext";var h=e=>{let{currentPage:t,totalPages:l,onPageChange:r,center:s,isOnTop:i}=e;return(0,a.jsx)(d,{className:"w-full ".concat(s?"justify-center":"justify-end"," flex"),children:(0,a.jsxs)(c,{className:"flex flex-wrap justify-center items-center",children:[(0,a.jsx)(m,{className:"sm:mr-1",children:(0,a.jsx)(p,{onClick:()=>r(t-1),className:"\n              text-xs\n              ".concat(0===t?"pointer-events-none opacity-50":"cursor-pointer","\n            ")})}),i?(0,a.jsxs)("span",{className:"block  text-[13px] ",children:[t+1," / ",l]}):(0,a.jsxs)("span",{className:"block  text-[13px] ",children:["Page ",t+1," of ",l]}),(0,a.jsx)(m,{className:"sm:ml-1",children:(0,a.jsx)(x,{onClick:()=>r(t+1),className:"\n              text-xs\n              ".concat(t===l-1?"pointer-events-none opacity-50":"cursor-pointer","\n            ")})})]})})}},62:function(e,t,l){"use strict";var a=l(82729),r=l(85893),s=l(87253),i=l(31230),o=l(89755),n=l.n(o),d=l(41664),c=l.n(d),m=l(67294),u=l(62846),p=l(10668),x=l(11163),h=l(85409);function f(){let e=(0,a._)(["\n            query MyQuery {\n              postsConnection(\n                orderBy: createdAt_DESC\n                first: 2\n                where: { featuredPost: false }\n              ) {\n                aggregate {\n                  count\n                }\n                edges {\n                  node {\n                    createdAt\n                    slug\n                    title\n                    excerpt\n                    featuredImage {\n                      url\n                    }\n                    blurHash\n                    content {\n                      text\n                    }\n                  }\n                }\n                pageInfo {\n                  hasNextPage\n                  hasPreviousPage\n                  pageSize\n                }\n              }\n            }\n          "]);return f=function(){return e},e}function g(){let e=(0,a._)(["\n            query MyQuery {\n              postsConnection(\n                orderBy: createdAt_DESC\n                first: 1\n                where: { featuredPost: true }\n              ) {\n                aggregate {\n                  count\n                }\n                edges {\n                  node {\n                    createdAt\n                    slug\n                    title\n                    excerpt\n                    featuredImage {\n                      url\n                    }\n                    blurHash\n                    content {\n                      text\n                    }\n                  }\n                }\n                pageInfo {\n                  hasNextPage\n                  hasPreviousPage\n                  pageSize\n                }\n              }\n            }\n          "]);return g=function(){return e},e}let y=()=>{(0,x.useRouter)();let[e,t]=(0,m.useState)([]);return(0,m.useEffect)(()=>{(async()=>{try{var e,l;let a=await u.Z.request((0,i.Ps)(f())),r=await u.Z.request((0,i.Ps)(g())),s=null==r?void 0:null===(e=r.postsConnection)||void 0===e?void 0:e.edges.map(e=>({content:e.node.content.text,createdAt:e.node.createdAt,excerpt:e.node.excerpt,image:e.node.featuredImage.url,slug:e.node.slug,title:e.node.title,blurHash:e.node.blurHash})),o=null==a?void 0:null===(l=a.postsConnection)||void 0===l?void 0:l.edges.map(e=>({content:e.node.content.text,createdAt:e.node.createdAt,excerpt:e.node.excerpt,image:e.node.featuredImage.url,slug:e.node.slug,title:e.node.title,blurHash:e.node.blurHash}));t([...null!=s?s:[],...null!=o?o:[]])}catch(e){console.log(e)}})()},[]),(0,r.jsx)("div",{className:"text-center mx-auto w-full relative",children:(0,r.jsx)("div",{className:"grid grid-cols-1 gap-8 place-content-center ".concat(e.length>0?"md:grid-cols-3":""),children:null==e?void 0:e.map(e=>(0,r.jsx)("div",{className:"h-full",children:(0,r.jsx)(c(),{href:"/blogs/".concat(e.slug),passHref:!0,children:(0,r.jsxs)("article",{className:"flex flex-col h-full",children:[(0,r.jsx)("div",{className:"md:hidden block flex-shrink-0",children:(0,r.jsx)(n(),{alt:e.title,src:e.image,layout:"responsive",width:"400",height:"200",className:"overflow-hidden transition duration-500 hover:scale-110 rounded-lg hover:rounded-lg object-cover",placeholder:"blur",blurDataURL:(0,h.Ow)(null==e?void 0:e.blurHash),loading:"lazy",sizes:"(max-width: 768px) 50vw, (max-width: 1200px) 40vw, 30vw"})}),(0,r.jsx)("div",{className:"hidden md:block flex-shrink-0",children:(0,r.jsx)(n(),{alt:e.title,src:e.image,layout:"responsive",width:"450",height:"320",className:"overflow-hidden transition duration-500 hover:scale-110 rounded-lg hover:rounded-lg object-cover",placeholder:"blur",blurDataURL:(0,h.Ow)(null==e?void 0:e.blurHash),loading:"lazy",sizes:"(max-width: 768px) 50vw, (max-width: 1200px) 40vw, 30vw"})}),(0,r.jsxs)("div",{className:"flex flex-col flex-1 py-4",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between group/item py-3 gap-2",children:[(0,r.jsx)("h2",{className:"transition-transform duration-500 group-hover/item:underline text-left flex-1",children:(0,r.jsx)("span",{className:"font-heading-lp text-lg md:text-xl text-subTextColor font-semibold line-clamp-2",children:e.title})}),(0,r.jsx)("div",{className:"flex-shrink-0 mt-1",children:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-5 h-5 text-primary",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 19.5l15-15m0 0H8.25m11.25 0v11.25"})})})]}),(0,r.jsxs)("p",{className:"font-body-lp text-sm md:text-base text-secondaryText max-w-3xl text-left",children:[e.excerpt.slice(0,95),"..."]}),(0,r.jsx)("div",{className:"mt-auto pt-4",children:(0,r.jsx)("div",{className:"bg-lightpinkBg w-fit py-2 px-1 rounded-lg",children:(0,r.jsxs)("span",{className:"font-body-lp text-sm md:px-2 px-1",children:[(0,h.Eh)(e.content)," min read"]})})})]})]})})}
1,e.title))})})};t.Z=e=>{let{NoPadding:t}=e,l=(0,x.useRouter)();return(0,r.jsx)("div",{id:"blogs",className:"".concat(t?"px-0":"lg:px-16 px-6 "," py-6"),children:(0,r.jsxs)("div",{className:"max-w-7xl mx-auto ",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between pb-6",children:[(0,r.jsx)(s.Z,{clasName:"font-heading-lp font-semibold",color:"newBlack",align:"left",size:"4xl",children:"Blogs"}),(0,r.jsx)(p.Z,{outline:!1,buttonBg:"lightPurple",onClick:()=>l.push("/blogs"),text:(0,r.jsx)("span",{className:"font-body-lp text-sm ",children:"View More"}),textColor:"primary",paddingX:"3",paddingY:"2"})]}),(0,r.jsx)(y,{})]})})}},96221:function(e,t,l){"use strict";var a=l(85893),r=l(25675),s=l.n(r),i=l(11163);t.Z=e=>{let{services:t,link:l,title:r,type:o,NoPadding:n}=e,d=(0,i.useRouter)();return(0,a.jsx)("section",{id:"services",className:"w-full md:py-10 py-6 ".concat(n?"px-0":"lg:px-16 px-6"),children:(0,a.jsxs)("div",{className:"w-full relative max-w-7xl mx-auto",children:["employee"===o?(0,a.jsxs)("h2",{className:"font-heading-lp text-2xl md:text-4xl font-semibold mb-10 text-subTextColor text-start flex md:flex-row flex-col",children:[(0,a.jsx)("p",{children:"Make a lasting"}),(0,a.jsxs)("p",{children:[(0,a.jsx)("span",{className:"line-through md:ml-2",children:"impression"}),(0,a.jsx)("span",{className:"ml-2 text-primary",children:"impact"})]})]}):(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{className:"font-heading-lp text-2xl md:text-4xl font-semibold pb-2 text-subTextColor text-start",children:r}),(0,a.jsx)("p",{className:"font-body-lp max-7xl mx-auto pb-6 md:pb-10 text-lg md:text-xl text-secondaryText",children:"End-to-end recruitment services for growing companies"})]}),(0,a.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:t.map(e=>(0,a.jsx)("div",{className:"h-full rounded-lg group transition-all duration-300",children:(0,a.jsxs)("article",{onClick:()=>{d.push("mobile"===d.query.source?"".concat(e.link,"?source=mobile"):"".concat(e.link))},className:"cursor-pointer flex flex-col h-full",children:[e.img?(0,a.jsx)("div",{className:"relative overflow-hidden rounded-lg mb-5 bg-lightPurple/30",children:(0,a.jsx)(s(),{src:e.img,alt:"function"==typeof e.name?"Paid Service":e.name,width:350,height:400,className:"w-full h-[340px] object-cover",loading:"lazy"})}):null,(0,a.jsxs)("div",{className:"flex flex-col flex-1 justify-between",children:[(0,a.jsxs)("div",{className:"",children:[(0,a.jsx)("div",{className:"flex items-center justify-between group/item gap-2",children:(0,a.jsx)("h2",{className:"transition-transform duration-500 text-left flex-1",children:(0,a.jsx)("span",{className:"font-heading-lp md:text-xl text-subTextColor font-semibold line-clamp-2",children:e.name()})})}),(0,a.jsx)("p",{className:"font-body-lp text-sm md:text-base text-secondaryText text-left",children:e.service})]}),(0,a.jsxs)("div",{className:"flex pt-5 text-primary items-center group/item gap-2 mt-auto",children:[(0,a.jsx)("h2",{className:"transition-transform duration-500 group-hover:underline text-left",children:(0,a.jsx)("span",{className:"font-body-lp text-base font-semibold",children:"Learn More"})}),(0,a.jsx)("div",{className:"flex justify-center items-start",children:(0,a.jsx)("svg",{className:"w-4 h-4 stroke-primary",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M3.75 16.25L16.25 3.75M16.25 3.75H6.875M16.25 3.75V13.125",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]})]})]})},e.name))})]})})}},94401:function(e,t,l){"use strict";var a=l(85893),r=l(40645),s=l.n(r),i=l(45781),o=l(76739),n=l(99699),d=l(37504),c=l(67294),m=l(61415),u=l(91444),p=l(9473);t.Z=e=>{let{}=e,[t]=(0,m.cuY)(),l=(0,p.v9)(e=>{var t,l;return null==e?void 0:null===(l=e.dashboard)||void 0===l?void 0:null===(t=l.dashboardUser)||void 0===t?void 0:t.email}),r=(0,p.v9)(e=>{var t;return null==e?void 0:null===(t=e.dashboard)||void 0===t?void 0:t.dashboardUser}),x=(0,p.v9)(e=>{var t,l;return null==e?void 0:null===(l=e.dashboard)||void 0===l?void 0:null===(t=l.dashboardUser)||void 0===t?void 0:t.number}),h=(0,p.v9)(e=>{var t,l;return null==e?void 0:null===(l=e.dashboard)||void 0===l?void 0:null===(t=l.dashboardUser)||void 0===t?void 0:t.firstName}),[f,g]=(0,c.useState)(!1),[y,v]=(0,c.useState)({message:""}),[b,w]=(0,c.useState)({}),[j,N]=(0,c.useState)(!1),[k,C]=(0,c.useState)(!1),S=(0,c.useRef)(null);(0,c.useEffect)(()=>{let e=e=>{f&&S.current&&!S.current.contains(e.target)&&g(!1)};return f&&document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[f]);let E=()=>{let e={};return y.message.trim()||(e.message="Support question is required"),w(e),0===Object.keys(e).length},P=(e,t)=>{v(l=>({...l,[e]:t})),b[e]&&w(t=>({...t,[e]:""}))},A=async()=>
1{if(E()){N(!0);try{let{data:e,error:a}=await t({variables:{input:{content:y.message,name:h,email:l,number:x}}});if(a){console.error("GraphQL error:",a),alert("Something went wrong. Please try again later.");return}(null==e?void 0:e.newEmployerAppSupport)&&(v({message:""}),u.Am.success("Your support message has been received. Our team will get in touch with you shortly.",{hideProgressBar:!0}),g(!1))}catch(e){console.error("Error submitting support form:",e),alert("Something went wrong. Please try again later.")}finally{N(!1)}}},_=()=>{g(!f)};return r&&r.type===m.i44.Employee?null:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"jsx-51f8e44fb11c8a4d "+"fixed bottom-[15%] right-0 ".concat(k?"-mr-1":"-mr-[67px]"," transition-all ease-in-out duration-300 hover:-mr-1 z-50"),children:[(0,a.jsx)(s(),{id:"51f8e44fb11c8a4d",children:"@-webkit-keyframes shake{0%{-webkit-transform:translatex(0)rotate(0);transform:translatex(0)rotate(0)}35%{-webkit-transform:translatey(0)rotate(0);transform:translatey(0)rotate(0)}85%{-webkit-transform:translatey(0)rotate(0);transform:translatey(0)rotate(0)}89%{-webkit-transform:translatey(-2px)rotate(-17deg);transform:translatey(-2px)rotate(-17deg)}93%{-webkit-transform:translatey(-3px)rotate(17deg);transform:translatey(-3px)rotate(17deg)}98%{-webkit-transform:translatey(-4px)rotate(-17deg);transform:translatey(-4px)rotate(-17deg)}100%{-webkit-transform:translatey(0)rotate(0);transform:translatey(0)rotate(0)}}@-moz-keyframes shake{0%{-moz-transform:translatex(0)rotate(0);transform:translatex(0)rotate(0)}35%{-moz-transform:translatey(0)rotate(0);transform:translatey(0)rotate(0)}85%{-moz-transform:translatey(0)rotate(0);transform:translatey(0)rotate(0)}89%{-moz-transform:translatey(-2px)rotate(-17deg);transform:translatey(-2px)rotate(-17deg)}93%{-moz-transform:translatey(-3px)rotate(17deg);transform:translatey(-3px)rotate(17deg)}98%{-moz-transform:translatey(-4px)rotate(-17deg);transform:translatey(-4px)rotate(-17deg)}100%{-moz-transform:translatey(0)rotate(0);transform:translatey(0)rotate(0)}}@-o-keyframes shake{0%{-o-transform:translatex(0)rotate(0);transform:translatex(0)rotate(0)}35%{-o-transform:translatey(0)rotate(0);transform:translatey(0)rotate(0)}85%{-o-transform:translatey(0)rotate(0);transform:translatey(0)rotate(0)}89%{-o-transform:translatey(-2px)rotate(-17deg);transform:translatey(-2px)rotate(-17deg)}93%{-o-transform:translatey(-3px)rotate(17deg);transform:translatey(-3px)rotate(17deg)}98%{-o-transform:translatey(-4px)rotate(-17deg);transform:translatey(-4px)rotate(-17deg)}100%{-o-transform:translatey(0)rotate(0);transform:translatey(0)rotate(0)}}@keyframes shake{0%{-webkit-transform:translatex(0)rotate(0);-moz-transform:translatex(0)rotate(0);-o-transform:translatex(0)rotate(0);transform:translatex(0)rotate(0)}35%{-webkit-transform:translatey(0)rotate(0);-moz-transform:translatey(0)rotate(0);-o-transform:translatey(0)rotate(0);transform:translatey(0)rotate(0)}85%{-webkit-transform:translatey(0)rotate(0);-moz-transform:translatey(0)rotate(0);-o-transform:translatey(0)rotate(0);transform:translatey(0)rotate(0)}89%{-webkit-transform:translatey(-2px)rotate(-17deg);-moz-transform:translatey(-2px)rotate(-17deg);-o-transform:translatey(-2px)rotate(-17deg);transform:translatey(-2px)rotate(-17deg)}93%{-webkit-transform:translatey(-3px)rotate(17deg);-moz-transform:translatey(-3px)rotate(17deg);-o-transform:translatey(-3px)rotate(17deg);transform:translatey(-3px)rotate(17deg)}98%{-webkit-transform:translatey(-4px)rotate(-17deg);-moz-transform:translatey(-4px)rotate(-17deg);-o-transform:translatey(-4px)rotate(-17deg);transform:translatey(-4px)rotate(-17deg)}100%{-webkit-transform:translatey(0)rotate(0);-moz-transform:translatey(0)rotate(0);-o-transform:translatey(0)rotate(0);transform:translatey(0)rotate(0)}}.shake.jsx-51f8e44fb11c8a4d{-webkit-animation:shake 1.7s ease-in-out 2;-moz-animation:shake 1.7s ease-in-out 2;-o-animation:shake 1.7s ease-in-out 2;animation:shake 1.7s ease-in-out 2}"}),(0,a.jsxs)("button",{onClick:_,"aria-label":"Support Chat",className:"jsx-51f8e44fb11c8a4d "+"group flex items-center  bg-primary text-white shadow-lg hover:shadow-xl transform transition-all duration-200 lg:w-auto lg:h-12 lg:px-4 lg:rounded-lg lg:justify-start w-auto h-10 px-3 rounded-lg justify-start ".concat(k?"shake":""),children:[f?(0,a.jsx)(i.Z,{className:"w-4 h-4 lg:w-5 lg:h-5"}):(0,a.jsx)(o.Z,{className:"w-4 h-4 lg:w-5 lg:h-5"}),!f&&(0,a.jsx)("span",{className:"jsx-51f8e44fb11c8a4d ml-2 font-medium text-xs lg:text-sm font-primary",children:"Support"})]})]}),f&&(0,a.jsxs)("div",{ref:S,className:"fixed bottom-[20%] right-2 z-50 w-96 left-1/2 -translate-x-1/2 sm:left-auto sm:translate-x-0 max-w-[calc(100vw-2rem)]",children:[(0,a.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-25 lg:hidden",onClick:_}),(0,a.jsxs)("div",{className:"relative bg-white rounded-lg shadow-2xl border border-gray-200 animate-in slide-in-from-bottom-2 duration-300 flex flex-col min-h-[350px]",children:[(0,a.jsx)("div",{className:"bg-primary text-white p-4 rounded-t-lg flex-shrink-0",children:(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)(o.Z,{className:"w-4 h-4 lg:w-5 lg:h-5"}),(0,a.jsx)("h3",{className:"font-semibold font-primary text-lg",children:"Support"})]}),(0,a.jsx)("button",{onClick:_,className:"hover:bg-primary rounded-full p-1 transition-colors",children:(0,a.jsx)(i.Z,{className:"w-4 h-4 text-white"})})]})}),(0,a.jsx)("div",{className:"p-4 overflow-y-auto flex-grow no-scrollbar",children:(0,a.jsx)("div",{className:"space-y-4",children:(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{className:"flex items-center text-sm font-medium text-gray-700 mb-1",children:[(0,a.jsx)(n.Z,{className:"w-4 h-4 mr-1"}),"Describe"]}),(0,a.jsx)("textarea",{rows:6,value:y.message,onChange:e=>P("message",e.target.value),placeholder:"Describe your issues/query",className:"w-full px-3 py-2 border rounded-md  resize-none ".concat(b.message?"border-red-300":"border-gray-300")}),b.message&&(0,a.jsx)("p",{className:"text-xs text-red-500 mt-1",children:b.message})]})})}),(0,a.jsx)("div",{className:"p-4 pt-0 border-t border-gray-100 bg-white rounded-b-lg flex-shrink-0",children:(0,a.jsx)("button",{type:"button",onClick:A,disabled:j,className:"w-full bg-primary hover:bg-primary/80 disabled:bg-primary/50 text-white font-medium py-2 px-4 roun
1ded-md flex items-center justify-center space-x-2 transition-colors",children:j?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"w-4 h-4 border-2 border-white border-t-transparent rounded-full animate-spin"}),(0,a.jsx)("span",{children:"Sending..."})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(d.Z,{className:"w-4 h-4"}),(0,a.jsx)("span",{children:"Submit"})]})})})]})]})]})}},18966:function(e,t,l){"use strict";l.r(t);var a=l(85893);l(67294);var r=l(5152);let s=l.n(r)()(()=>l.e(8388).then(l.bind(l,39879)).then(e=>e.Player),{loadableGenerated:{webpack:()=>[39879]},ssr:!1});t.default=e=>{let{loading:t=!1}=e;return(0,a.jsx)("div",{className:"w-screen h-screen bg-white bg-opacity-50 backdrop-blur-sm fixed top-0 left-0 grid place-items-center transition-all ".concat(t?"visible opacity-100":"hidden opacity-0"),style:{zIndex:60},children:(0,a.jsx)("div",{className:"grid place-items-center rounded-lg",children:(0,a.jsx)(s,{src:l(45443),loop:!0,autoplay:!0,style:{width:350,height:240}})})})}},79194:function(e,t,l){"use strict";var a=l(85893),r=l(51526),s=l(70798),i=l(67294),o=l(59418);t.Z=e=>{let{children:t,show:l,title:n,size:d="w-3/5 max-w-2xl",close:c}=e;return(0,o.L)(l),(0,i.useEffect)(()=>{let e=e=>{"Escape"===e.key&&(e.preventDefault(),c())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[]),(0,a.jsx)(r.M,{children:l&&(0,a.jsx)(s.E.div,{initial:{opacity:0}
1,animate:{opacity:1,transition:{}},exit:{opacity:0},className:"fixed inset-0 bg-white bg-opacity-10 backdrop-filter backdrop-blur-sm w-full  flex justify-center items-center  z-50",onClick:c,children:(0,a.jsx)(s.E.div,{onClick:e=>{e.stopPropagation()},initial:{y:800},animate:{y:0,transition:{delay:.3,type:"just"}},exit:{y:800},className:"".concat(d," bg-white z-10 relative shadow-2xl grid xl:place-items-center rounded-xl overflow-y-auto scrollbar-hide"),style:{maxHeight:"90%",scrollbarWidth:"none",msOverflowStyle:"none"},children:t})})})}},65247:function(e,t,l){"use strict";l.d(t,{y:function(){return n}});var a=l(85893),r=l(98997),s=l(53075),i=l(45781),o=l(67294);function n(e){let{placeholder:t="Search...",options:l,initValue:n,onSearch:d,onChange:c,className:m,shouldShowSearchBtn:u=!0,showImmediate:p=!1,yscrollable:x=!1,onInputChange:h,isLoading:f=!1}=e,[g,y]=(0,o.useState)(""),[v,b]=(0,o.useState)(null!=n?n:[]),[w,j]=(0,o.useState)(!1),[N,k]=(0,o.useState)([]),C=(0,o.useRef)(null),S=(0,o.useRef)(null);(0,o.useEffect)(()=>{n&&b(n)},[n]),(0,o.useEffect)(()=>{if(g.length>=(p?0:2)){let e=g.toLowerCase().split(/\s+/);k(l.filter(t=>{let l=t.label.toLowerCase();return e.every(e=>l.includes(e))&&!v.some(e=>e.id===t.id)})),p||j(!0)}else j(!1)},[g,l,v,p]),(0,o.useEffect)(()=>{let e=e=>{S.current&&!S.current.contains(e.target)&&j(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]);let E=e=>{let t=[...v,e];b(t),y(""),j(!1),c&&c(t),C.current&&C.current.focus()},P=e=>{let t=v.filter(t=>t.id!==e);b(t),c&&c(t)};return(0,a.jsxs)("div",{ref:S,className:(0,r.cn)("relative w-full",m),children:[(0,a.jsxs)("div",{className:"flex items-center w-full outline-none focus-within:outline-none border border-[rgba(0,0,0,0.2)] rounded-xl text-xs px-3 ".concat(v.length>0?"py-2":"py-3"),onClick:()=>{C.current&&(C.current.focus(),p&&j(!0))},children:[(0,a.jsx)(s.Z,{className:"h-4 w-4 mr-2 shrink-0 text-muted-foreground"}),(0,a.jsxs)("div",{className:"flex flex-wrap gap-1.5 flex-1 min-w-0 ".concat(x?"overflow-y-auto max-h-14":""),children:[v.map(e=>(0,a.jsxs)("div",{className:"flex items-center gap-1 bg-lightPurple text-primary text-xs text-muted-foreground rounded-md px-2 py-1",children:[(0,a.jsx)("span",{children:e.label}),(0,a.jsxs)("button",{type:"button",onClick:()=>P(e.id),className:"h-4 w-4 rounded-full hover:bg-muted-foreground/20 flex items-center justify-center",children:[(0,a.jsx)(i.Z,{className:"h-3 w-3"}),(0,a.jsxs)("span",{className:"sr-only",children:["Remove ",e.label]})]})]},e.id)),(0,a.jsx)("input",{ref:C,type:"text",value:g,onChange:e=>{let t=e.target.value;y(t),h&&h(t)},onKeyDown:e=>{"Backspace"===e.key&&""===g&&v.length>0&&P(v[v.length-1].id)},className:"flex-1 bg-transparent outline-none min-w-[120px] placeholder:text-muted-foreground",placeholder:0===v.length?t:"",onFocus:()=>{g.length>=2&&j(!0)}})]}),v.length>0&&(null==u||u)&&(0,a.jsx)("button",{className:"bg-primary px-2 py-2 rounded-md flex items-center justify-between",onClick:()=>{d(v)},children:(0,a.jsx)("p",{className:"text-xs text-white",children:"Search"})})]}),w&&(N.length>0||f)&&(0,a.jsx)("div",{className:"absolute z-50 w-full mt-1 bg-popover border rounded-md shadow-md max-h-60 overflow-auto",children:f?(0,a.jsx)("div",{className:"px-3 py-2 text-sm text-muted-foreground text-center",children:"Loading skills..."}):N.map(e=>(0,a.jsx)("div",{className:"px-3 py-2 text-sm hover:bg-muted cursor-pointer",onClick:()=>E(e),children:e.label},e.id))})]})}},64388:function(e,t,l){"use strict";var a=l(85893),r=l(59417),s=l(99603),i=l(67294),o=l(91444),n=l(63682),d=l(79194),c=l(13261);l(27108),t.Z=e=>{let{show:t,handleModalSubmit:l,closeHandler:m,resendHandler:u,text:p}=e,[x,h]=(0,i.useState)("");return(0,a.jsx)(d.Z,{show:t,size:"w-11/12 xl:w-1/3",close:()=>{h(""),m&&m()},children:(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"w-full h-full flex flex-col justify-start items-start px-8 border-[1px] shadow-sm border-borderColor",children:[(0,a.jsxs)("div",{className:"flex flex-row justify-between items-center w-full cursor-pointer gap-2 select-none py-4 ",children:[(0,a.jsxs)("p",{className:"text-lg font-medium flex flex-col text-ju
1stify text-opacity-80 text-black mb-1",children:["Verify OTP",(0,a.jsx)("span",{className:"text-xs text-black text-opacity-60",children:null!=p?p:"OTP is only valid for 10 minutes"})]}),m&&(0,a.jsx)(s.G,{icon:r.YIN,size:"sm",className:"text-black",onClick:()=>{h(""),m()}})]}),(0,a.jsx)(n.Z,{type:"text",inputMode:"numeric",placeholder:"123456",maxLength:6,value:x,backgroud:"bg-lightGray",onChange:e=>{h(e.target.value.replace(/[^0-9]/g,"").slice(0,6))},onKeyDown:e=>{if("Enter"===e.key){if(!x){o.Am.info("Please enter your otp",{hideProgressBar:!0,autoClose:2e3});return}if(6!==x.length){o.Am.info("Please enter valid 6 digit otp",{hideProgressBar:!0,autoClose:2e3});return}l(x)}}}),(0,a.jsxs)("p",{className:"text-sm w-full text-center text-darkGray text-opacity-80 font-medium mt-2 capitalize",children:["Didn't receive OTP? ",(0,a.jsx)("span",{className:"text-primary cursor-pointer",onClick:u,children:"Resend"})]}),(0,a.jsx)("div",{className:"w-full text-right py-4",children:(0,a.jsx)(c.Z,{bg:"bg-primary w-24 !rounded-lg",title:"Submit",text:"text-white",size:"small",onClick:()=>{if(!x){o.Am.info("Please enter your otp",{hideProgressBar:!0,autoClose:2e3});return}if(6!==x.length){o.Am.info("Please enter valid 6 digit otp",{hideProgressBar:!0,autoClose:2e3});return}l(x)}})})]})})})}},34680:function(e,t,l){"use strict";l.d(t,{Zb:function(){return i},aY:function(){return o}});var a=l(85893),r=l(67294),s=l(98997);let i=r.forwardRef((e,t)=>{let{className:l,...r}=e;return(0,a.jsx)("div",{ref:t,className:(0,s.cn)("rounded-lg border bg-card text-card-foreground shadow-sm",l),...r})});i.displayName="Card",r.forwardRef((e,t)=>{let{className:l,...r}=e;return(0,a.jsx)("div",{ref:t,className:(0,s.cn)("flex flex-col space-y-1.5 p-6",l),...r})}).displayName="CardHeader",r.forwardRef((e,t)=>{let{className:l,...r}=e;return(0,a.jsx)("div",{ref:t,className:(0,s.cn)("text-2xl font-semibold leading-none tracking-tight",l),...r})}).displayName="CardTitle",r.forwardRef((e,t)=>{let{className:l,...r}=e;return(0,a.jsx)("div",{ref:t,className:(0,s.cn)("text-sm text-muted-foreground",l),...r})}).displayName="CardDescription";let o=r.forwardRef((e,t)=>{let{className:l,...r}=e;return(0,a.jsx)("div",{ref:t,className:(0,s.cn)("p-6 pt-0",l),...r})});o.displayName="CardContent",r.forwardRef((e,t)=>{let{className:l,...r}=e;return(0,a.jsx)("div",{ref:t,className:(0,s.cn)("flex items-center p-6 pt-0",l),...r})}).displayName="CardFooter"},17729:function(e,t,l){"use strict";l.r(t),l.d(t,{__N_SSP:function(){return e0},default:function(){return e1}});var a=l(85893),r=l(10668),s=l(79194);l(52200);var i=l(5152),o=l.n(i),n=l(11163),d=l(67294),c=l(62201),m=l(9473),u=l(91444),p=l(14904),x=l(26134),h=l(9010),f=l(9669),g=l.n(f),y=l(38074),v=l(22078),b=l(9041),w=l(89265),j=l.n(w),N=l(63698),k=l(51526),C=l(70798),S=l(59418),E=l(98997),P=l(77048);let A=e=>{let t,l,r,s,i,o,n,c,{children:m,className:u,containerClassName:p,colors:x,waveWidth:h,backgroundFill:f,blur:g=10,speed:y="fast",waveOpacity:v=.5,...b}=e,w=(0,P.zz)(),j=(0,d.useRef)(null),N=()=>{switch(y){case"slow":return 8e-4;case"fast":return .0015;default:return .001}},k=()=>{o=(n=j.current).getContext("2d");let e=n.getBoundingClientRect();t=o.canvas.width=e.width*window.devicePixelRatio,l=o.canvas.height=e.height*window.devicePixelRatio,n.style.width=e.width+"px",n.style.height=e.height+"px",o.scale(window.devicePixelRatio,window.devicePixelRatio),r=0,window.onresize=function(){let e=n.getBoundingClientRect();t=o.canvas.width=e.width*window.devicePixelRatio,l=o.canvas.height=e.height*window.devicePixelRatio,n.style.width=e.width+"px",n.style.height=e.height+"px",o.scale(window.devicePixelRatio,window.devicePixelRatio)},A()},C=null!=x?x:["#8787FF","#F6D3FF","#DDDDFF","#F9E7FF","#EBEAFF"],S=e=>{for(r+=N(),o.clearRect(0,0,t/window.devicePixelRatio,l/window.devicePixelRatio),s=0;s<e;s++){o.beginPath(),o.lineWidth=h||80,o.lineCap="round",o.lineJoin="round";let e=o.createLinearGradient(0,0,t/window.devicePixelRatio,0),a=C[s%C.length];e.addColorStop(0,a+"30"),e.addColorStop(.1,a+"80"),e.addColorStop(.9,a+"80"),e.addColorStop(1,a+"20"),o.strokeStyle=e,o.globalAlpha=v*(.8+.2*s);let n=[];for(i=0;i<=t/window.devicePixelRatio;i+=3){let e=(w(i/1200,.2*s,r)+.3*w(i/400,.5*s,1.5*r)+.1*w(i/100,1*s,2*r))*(120+40*Math.sin(i/500+2*r)),t=l/window.devicePixelRatio*.5+e;n.push({x:i,y:t})}if(n.length>0){o.moveTo(n[0].x,n[0].y);for(let e=1;e<n.length-1;e++){let t=n[e],l=n[e+1],a=(t.x+l.x)/2,r=(t.y+l.y)/2;o.quadraticCurveTo(t.x,t.y,a,r)}if(n.length>1){let e=n[n.length-1];o.lineTo(e.x,e.y)}}o.stroke(),o.closePath()}},A=()=>{S(5),c=requestAnimationFrame(A)};(0,d.useEffect)(()=>(k(),()=>{cancelAnimationFrame(c)}),[]);let[_,B]=(0,d.useState)(!1);return(0,d.useEffect)(()=>{B(navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome"))},[]),(0,a.jsxs)("div",{className:(0,E.cn)("w-full",p),children:[(0,a.jsx)("canvas",{className:"absolute top-4 left-0 w-full h-full",ref:j,id:"canvas",style:{width:"100%",height:"100%",filter:"blur(".concat(g,"px)")}}),(0,a.jsx)("div",{className:(0,E.cn)("relative z-10",u),...b,children:m})]})};var _=e=>{let{children:t,show:l,title:r,size:s="w-3/5 max-w-2xl",close:i}=e;return(0,S.L)(l),(0,d.useEffect)(()=>{let e=e=>{"Escape"===e.key&&(e.preventDefault(),i())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[]),(0,a.jsx)(k.M,{children:l&&(0,a.jsx)(C.E.div,{initial:{opacity:0}
1,animate:{opacity:1,transition:{}},exit:{opacity:0},className:"fixed inset-0 bg-black bg-opacity-40 backdrop-filter backdrop-blur-sm w-full flex justify-center items-center z-50",onClick:i,children:(0,a.jsxs)(C.E.div,{onClick:e=>{e.stopPropagation()},initial:{y:800},animate:{y:0,transition:{delay:.3,type:"just"}},exit:{y:800},className:"".concat(s," bg-white max-h-[85vh] z-10 relative shadow-2xl grid xl:place-items-center rounded-xl overflow-hidden"),children:[(0,a.jsx)("div",{className:"absolute top-0 left-0 w-full h-[80px] z-0 overflow-hidden",children:(0,a.jsx)("div",{className:"w-full h-full scale-y-[-1]",children:(0,a.jsx)(A,{containerClassName:"w-full h-full",waveOpacity:.3,speed:"fast",colors:["#8787FF","#DDDDFF","#F6D3FF"],blur:8})})}),(0,a.jsx)("div",{className:"w-full h-full grid place-items-center overflow-y-auto relative z-10",children:t}),(0,a.jsx)("div",{className:"absolute bottom-0 left-0 w-full h-[80px] z-[5] rotate-180 overflow-hidden pointer-events-none",children:(0,a.jsx)("div",{className:"w-full h-full scale-y-[-1]",children:(0,a.jsx)(A,{containerClassName:"w-full h-full",waveOpacity:.3,speed:"fast",colors:["#F6D3FF","#8787FF","#F9E7FF"],blur:8})})})]})})})},B=l(94401),D=l(18966),I=l(27786),O=l(56206),z=l(40245),M=l(45781),R=l(25675),T=l.n(R),Z=l(61415),F=l(88976),L=()=>{let e=(0,n.useRouter)();return(0,a.jsx)("div",{className:"w-full bg-lightPurple py-3 flex-shrink-0 border-b border-purple-200",children:(0,a.jsxs)("div",{className:"flex items-center justify-center gap-2",children:[(0,a.jsx)(F.Z,{className:"w-4 h-4 text-primary",strokeWidth:2}),(0,a.jsx)("span",{className:"text-xs font-semibold text-primary",children:"Advance Database Search"}),(0,a.jsx)("span",{className:"text-sm cursor-pointer font-semibold text-primary underline underline-offset-2",onClick:()=>{e.push("/dashboard/advanced-search")},children:"Live now →"})]})})},J=l(59417),$=l(99603),U=l(4705),G=l(48687),q=l(81905),H=l(30771),V=l(49724),Y=l(82096),W=l(34651),X=l(5428),K=l(13261),Q=l(55497),ee=l(64714),et=l(34680),el=l(59592),ea=l(39332),er=e=>{let{services:t,link:l,title:r,type:s,NoPadding:i}=e;(0,ea.useRouter)();let[o,n]=(0,d.useState)(0),[c,m]=(0,d.useState)(),[u,p]=(0,d.useState)(!0);(0,d.useEffect)(()=>{c&&(n(c.selectedScrollSnap()),c.on("select",()=>{n(c.selectedScrollSnap())}))},[c]),(0,d.useEffect)(()=>{if(!c||!u)return;let e=setInterval(()=>{let e=Math.ceil(t.length/1);c.scrollTo((o+1)%e)},5e3);return()=>clearInterval(e)},[c,o,t.length,u]),(0,d.useEffect)(()=>{let e=()=>{p(!1);let e=setTimeout(()=>{p(!0)},5e3);return()=>clearTimeout(e)};if(null==c?void 0:c.rootNode()){let t=c.rootNode();return t.addEventListener("mousedown",e),t.addEventListener("touchstart",e),()=>{t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",e)}}},[c]);let x=Array.from({length:Math.ceil(t.length/1)},(e,l)=>t.slice(1*l,(l+1)*1));return(0,a.jsx)("div",{className:"w-full mt-4",children:(0,a.jsxs)("div",{className:" mx-auto",children:[(0,a.jsx)("h2",{className:"text-sm mb-1.5 font-medium text-secondaryText",children:"Premium Services"}),(0,a.jsxs)(el.lr,{setApi:m,opts:{align:"start",loop:!0,skipSnaps:!1,dragFree:!1},className:"w-full",children:[(0,a.jsx)(el.KI,{children:x.map((e,t)=>(0,a.jsx)(el.d$,{className:"w-full",children:(0,a.jsx)("div",{className:"gap-4 h-full flex",children:e.map((e,t)=>(0,a.jsx)(et.Zb,{className:"w-full ",children:(0,a.jsx)("div",{className:"h-full border-borderColor bg-bgColor border-[1px] rounded-lg p-2.5 group   transition-all duration-300 ",children:(0,a.jsx)("article",{onClick:()=>{window.open(e.link,"_blank")},className:"cursor-pointer flex flex-col h-full",children:(0,a.jsxs)("div",{className:"flex flex-col flex-1 ",children:[(0,a.jsx)("div",{className:"",children:(0,a.jsx)("div",{className:"flex items-center justify-between group/item gap-2",children:(0,a.jsx)("h2",{className:"transition-transform duration-500 text-left flex-1",children:(0,a.jsx)("span",{className:"md:text-sm text-subTextColor font-semibold line-clamp-2 ",children:e.name()})})})}),(0,a.jsxs)("div",{className:"flex pt-2 text-primary  items-center group/item gap-2 mt-auto",children:[(0,a.jsx)("h2",{className:"transition-transform duration-500 group-hover:underline text-left ",children:(0,a.jsx)("span",{className:"text-xs font-semibold",children:"Learn More"})}),(0,a.jsx)("div",{className:"flex justify-center items-start",children:(0,a.jsx)("svg",{className:"w-2.5 h-2.5 mt-[2px]  stroke-primary",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M3.75 16.25L16.25 3.75M16.25 3.75H6.875M16.25 3.75V13.125",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]})]})})},e.name)},t))})},t))}),(0,a.jsx)("div",{className:"flex gap-1.5 mt-2 justify-center",children:x.map((e,t)=>(0,a.jsx)("button",{onClick:()=>{n(t),null==c||c.scrollTo(t),p(!1),setTimeout(()=>p(!0),5e3)},className:"w-1.5 h-1.5  rounded-full transition-all duration-300  ".concat(o===t?"bg-primary":"bg-lightPurple"),"aria-label":"Go to slide ".concat(t+1)},t))})]})]})})},es=e=>{var t,l,r;let{list:s}=e,i=(0,n.useRouter)(),[o,c]=(0,d.useState)(!1),p=(0,m.v9)(e=>e.dashboard.dashboardUser),[x,f]=(0,d.useState)(()=>new Set),[g]=(0,Z.tIv)(),[y]=(0,Z.nkV)(),v=(0,m.I0)();(0,m.v9)(e=>e.dashboard.dashboardUser);let b=(0,m.v9)(e=>e.dashboard.sidebarCollapsed),w=(0,m.v9)(e=>{var t;return null==e?void 0:null===(t=e.employer)||void 0===t?void 0:t.firstJobPosted});(0,m.v9)(e=>e.dashboard.numberOfLiveJobs);let j=(0,m.v9)(e=>{var t,l;return null===(l=e.employee)||void 0===l?void 0:null===(t=l.employee)||void 0===t?void 0:t.profileScore}),N=(0,m.v9)(e=>{var t,l;return null===(l=e.dashboard)||void 0===l?void 0:null===(t=l.dashboardEmployee)||void 0===t?void 0:t.profileScore}),[S,E]=(0,d.useState)(j),P=(0,m.v9)(e=>e.dashboard.currentPage),A=(0,m.v9)(e=>e.dashboard.mobileNav);(0,m.v9)(e=>e.common.loading);let _=(0,m.v9)(e=>e.dashboard.dashboardEmployer);(0,m.v9)(e=>e.dashboard.profileViewTrigger),(0,d.useEffect)(()=>{j&&E(j)},[j]),(0,d.useEffect)(()=>{N&&N>0&&E(N)},[N]);let B=e=>{f(t=>{let l=new Set(t);return l.has(e)?l.delete(e):l.add(e),l})},D=e=>(null==e?void 0:e.some(e=>e.page===P))||!1,M=async()=>{try{v((0,h.o4)());let{data:e,error:t}=await g({fetchPolicy:"network-only"});if(v((0,h.o4)()),void 0!==t)return u.Am.error(t.message,{autoClose:2e3,hideProgressBar:!0}),!1;if(void 0===e||!1===e.logout)return u.Am.error("Something went wrong!",{autoClose:2e3,hideProgressBar:!0}),!1;W.ZP.reset(),i.replace("/".concat((null==p?void 0:p.type)==="employee"?"jobseeker":"talentseeker","/login")),v((0,h.D3)()),v((0,O.Dr)()),v((0,z.mA)()),v((0,G.p$)()),localStorage.clear(),sessionStorage.clear()}catch(e){if(e)return v((0,h.o4)()),u.Am.error(e.toString(),{autoClose:2e3,hideProgressBar:!0}),!1}},R=async e=>{if(e.stopPropagation(),v((0,G.xd)(!1)),localStorage.removeItem("other_candidate_empl_id"),localStorage.removeItem("other_candidate_empl_dets"),w)v((0,I.$7)(!0));else try{v((0,h.o4)());let{data:e,errors:t}=await y();if(t){v((0,h.o4)()),u.Am.error(t[0].message,{autoClose:2e3,hideProgressBar:!0});return}if(!e){v((0,h.o4)()),u.Am.error("Something went wrong!",{autoClose:2e3,hideProgressBar:!0});return}v((0,h.o4)()),i.push("/job-details?jobId=".concat(e.addEmployerJob))}catch(e){v((0,h.o4)()),u.Am.error(e.toString(),{autoClose:3e3,hideProgressBar:!0})}},T={expanded:{rotate:180,transition:{duration:.2}},collapsed:{rotate:0,transition:{duration:.2}}};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(k.M,{children:o&&(0,a.jsx)(C.E.div,{initial:{opacity:0}
1,animate:{opacity:1,transition:{}},exit:{opacity:0},className:"fixed top-0 left-0 bg-transparent w-full h-full flex justify-center items-center overflow-hidden z-30",onClick:()=>c(!1)})}),(0,a.jsx)("div",{className:"hidden xl:flex h-screen bg-white border-l border-r border-outline flex-shrink-0 backdrop-filter backdrop-blur-md relative overflow-hidden transition-all duration-300 ".concat(b?"w-16":"w-72"),children:(0,a.jsxs)("div",{className:"h-screen w-full relative bg-opacity-10 flex flex-col justify-start items-center",children:[(0,a.jsx)("div",{className:"self-center flex justify-center items-center h-20 w-full relative",children:(0,a.jsx)(k.M,{mode:"wait",children:b?(0,a.jsx)(C.E.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.2},className:"absolute",children:(0,a.jsx)(X.Z,{width:40,dashboard:!0})},"small-logo"):(0,a.jsx)(C.E.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.2},className:"absolute",children:(0,a.jsx)(X.Z,{width:120,dashboard:!0})},"full-logo")})}),(0,a.jsxs)("div",{className:"flex-1 flex flex-col w-full py-0 !overflow-scroll h-[calc(100vh-150px)] hideScrollbar transition-all duration-300 ".concat(b?"px-2":"px-6"),children:[s.map((e,t)=>(0,a.jsx)("div",{children:e.items?(0,a.jsxs)("div",{className:"w-full",id:"".concat(e.title.replaceAll(" ",""),"_desktop"),children:[(0,a.jsxs)("div",{className:"flex flex-row items-center py-2 my-1 w-full rounded-xl cursor-pointer transition-all hover:scale-105".concat(D(e.items)?" bg-primary/10 !text-primary !fill-primary":" bg-transparent !text-black fill-black hover:bg-gray-50"," ").concat(b?"justify-center px-0":"justify-start px-3"),onClick:()=>B(t),title:b?e.title:"",children:[(0,a.jsx)("div",{className:"flex-shrink-0 w-5 h-5 flex justify-center items-center",children:e.icon}),(0,a.jsx)(k.M,{children:!b&&(0,a.jsxs)(C.E.div,{initial:{opacity:0,width:0},animate:{opacity:1,width:"auto"},exit:{opacity:0,width:0},transition:{duration:.2,ease:"easeInOut"},className:"flex flex-1 items-center overflow-hidden whitespace-nowrap",children:[(0,a.jsx)("p",{className:"px-3 text-sm",children:e.title}),(0,a.jsx)(C.E.div,{variants:T,animate:x.has(t)?"expanded":"collapsed",className:"ml-auto",children:(0,a.jsx)(U.Z,{size:16})})]})})]}),(0,a.jsx)(k.M,{initial:!1,children:x.has(t)&&!b&&(0,a.jsx)(C.E.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1,transition:{height:{duration:.2},opacity:{duration:.2,delay:.1}}},exit:{height:0,opacity:0,transition:{height:{duration:.2,delay:.1},opacity:{duration:.1}}},className:"overflow-hidden",children:(0,a.jsx)("div",{className:"pl-10 pb-2",children:e.items.map((e,t)=>(0,a.jsx)(C.E.div,{initial:{x:-10,opacity:0},animate:{x:0,opacity:1,transition:{delay:.05*t,duration:.2}},id:"".concat(e.page,"_desktop"),className:"flex flex-row justify-start items-center px-3 py-2 my-1 w-full rounded-xl cursor-pointer transition-all hover:scale-105 relative".concat(e.page===P?" bg-primary !text-white !fill-white shadow-sm":" bg-transparent !text-gray-700 fill-gray-700 hover:bg-gray-50"),onClick:()=>{c(!1),i.replace("/dashboard?page="+e.page),v((0,I.D4)(e.page))},children:(0,a.jsx)("p",{className:"flex-1 text-sm",children:e.title})},t))})})})]}):(0,a.jsxs)("div",{id:"".concat(e.page,"_desktop"),className:"flex flex-row items-center py-2 my-1 w-full rounded-xl cursor-pointer transition-all hover:scale-105".concat(e.page===P?" bg-primary  !text-white !fill-white":" bg-transparent !text-black fill-black"," ").concat(b?"justify-center px-0":"justify-start px-3"),title:b?e.title:"",onClick:()=>{if(e.isExternal){i.replace("/"+e.page);return}if(e.page===I.O$["advanced-search"]){i.push("/dashboard/advanced-search");return}c(!1),i.replace("/dashboard?page="+e.page),v((0,I.D4)(e.page))},children:[(0,a.jsx)("div",{className:"flex-shrink-0 w-5 h-5 flex justify-center items-center",children:e.icon}),(0,a.jsx)(k.M,{children:!b&&(0,a.jsx)(C.E.div,{initial:{opacity:0,width:0},animate:{opacity:1,width:"auto"},exit:{opacity:0,width:0},transition:{duration:.2,ease:"easeInOut"},className:"flex flex-1 items-center overflow-hidden whitespace-nowrap",children:(0,a.jsx)("p",{className:"px-3 text-sm",children:e.title})})})]})},t)),(0,a.jsx)(k.M,{children:!b&&(0,a.jsx)(C.E.div,{initial:{opacity:0,height:0}
1,animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.2},className:"max-w-fit overflow-hidden whitespace-nowrap",children:(0,a.jsx)(er,{services:p&&p.type===Z.i44.Employer?Y.u:V.u,link:"/jobseeker/pricing",title:"Premium Services",type:"employee"})})})]}),(0,a.jsxs)("div",{className:"w-full flex items-center gap-4 relative outline-none focus-within:outline-none cursor-pointer ".concat(p&&p.type===Z.i44.Employer?"bg-white":"bg-white p-4 border border-outline"," ").concat(b?"justify-center px-2":"justify-start px-6"),onClick:()=>{p&&p.type===Z.i44.Employee&&c(e=>!e)},children:[p&&p.type===Z.i44.Employee?(0,a.jsx)(C.E.div,{initial:{scale:.8,opacity:0},animate:{scale:1,opacity:1},transition:{duration:.5},className:"flex items-center gap-3",onClick:e=>{e.stopPropagation(),i.push("/dashboard?page=profile"),v((0,I.D4)(I.O$.profile))},children:(0,a.jsx)(ee.l,{percentage:S||0,size:48,strokeWidth:4,showInitial:!1})}):null,p&&p.type===Z.i44.Employee?(0,a.jsx)(k.M,{children:!b&&(0,a.jsx)(C.E.div,{initial:{opacity:0,width:0},animate:{opacity:1,width:"auto"},exit:{opacity:0,width:0},transition:{duration:.2},onClick:e=>{e.stopPropagation(),i.push("/dashboard?page=profile"),v((0,I.D4)(I.O$.profile))},className:"flex-1 overflow-hidden",children:(0,a.jsx)("div",{className:"w-full text-sm font-medium text-black text-ellipsis whitespace-nowrap overflow-hidden",children:p.firstName+" "+p.lastName})})}):_?(0,a.jsx)(k.M,{mode:"wait",children:b?(0,a.jsxs)(C.E.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},className:"w-full flex flex-col items-center gap-2 mb-2",children:[(0,a.jsx)("div",{className:"w-10 h-10 rounded-xl bg-lightGray text-black font-bold grid place-items-center text-xs flex-shrink-0 cursor-pointer",onClick:()=>{v((0,I.D4)(I.O$.settings)),i.push("/dashboard/?page=".concat(I.O$.settings))},children:null===(l=_.companyName)||void 0===l?void 0:l.split("")[0]}),(null==_?void 0:_.employerVerified)&&(0,a.jsx)("button",{onClick:R,className:"w-10 h-10 bg-primary text-white rounded-lg flex justify-center items-center hover:bg-purple shadow-md transition-colors duration-200",title:"Post a job",children:(0,a.jsx)($.G,{icon:J.r8p})})]},"collapsed-employer"):(0,a.jsx)(C.E.div,{initial:{opacity:0,width:0},animate:{opacity:1,width:"auto"},exit:{opacity:0,width:0},transition:{duration:.2},className:"mb-2 w-full flex-1 overflow-hidden",children:(0,a.jsx)(C.E.div,{className:"w-full h-full flex justify-center items-center overflow-hidden z-30",onClick:()=>{v((0,I.D4)(I.O$.settings)),i.push("/dashboard/?page=".concat(I.O$.settings))},children:(0,a.jsxs)(C.E.div,{className:"bg-white border px-2 py-4 border-gray-200 rounded-xl w-full z-10 whitespace-nowrap",children:[(0,a.jsxs)("div",{className:"flex flex-row justify-start items-center",children:[(0,a.jsx)("div",{className:"w-10 h-10 rounded-xl bg-lightGray text-black font-bold grid place-items-center text-xs flex-shrink-0",children:p&&p.type===Z.i44.Employee?p.firstName.split("")[0]:_?null===(t=_.companyName)||void 0===t?void 0:t.split("")[0]:null}),_?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,a.jsxs)("p",{className:"w-full px-3 text-base font-medium text-black text-ellipsis whitespace-nowrap overflow-hidden",children:[_.companyName,p&&p.type&&(0,a.jsx)("span",{className:"block w-full text-xs font-medium text-tabInactive text-ellipsis whitespace-nowrap overflow-hidden",children:p.firstName+" "+p.lastName})]})})}):null]}),(null==_?void 0:_.employerVerified)&&(0,a.jsx)("button",{onClick:R,className:"w-full mt-4 bg-primary text-white py-2 px-2 rounded-lg font-medium text-sm hover:bg-purple transition-colors duration-200",id:"upgrade-button",children:"Post a job"})]})})},"expanded-employer")}):null,p&&p.type===Z.i44.Employee&&!b?(0,a.jsx)(C.E.div,{id:"setting_desktop",variants:{rotate:{rotate:180,transition:{duration:.3}},rotateBack:{rotate:0,transition:{duration:.3}}},animate:o?"rotate":"rotateBack",children:(0,a.jsx)($.G,{icon:J.mTx,size:"lg",className:"cursor-pointer text-black"})}):null]})]})}),(0,a.jsx)(k.M,{children:o&&(0,a.jsx)(C.E.div,{initial:{opacity:0}
1,animate:{opacity:1,transition:{}},exit:{opacity:0},className:"fixed top-0 left-0 bg-transparent w-full h-full flex justify-center items-center overflow-hidden z-30",onClick:()=>c(!1),children:(0,a.jsxs)(C.E.div,{initial:{opacity:0,y:500},animate:{opacity:1,y:0,transition:{duration:.3}},exit:{opacity:0,y:500,transition:{duration:.3}},className:"w-52 xl:w-1/6 bg-white rounded-xl shadow-2xl h-auto p-4 absolute bottom-20 right-2 xl:left-44 z-10",children:[(0,a.jsxs)("div",{className:"flex flex-row justify-start items-center cursor-pointer",onClick:()=>{c(!1),i.push("/dashboard?page=profile"),v((0,I.D4)(I.O$.profile))},children:[(0,a.jsx)("div",{className:"w-10 h-10 rounded-xl bg-lightGray text-black font-bold grid place-items-center text-xs",children:p&&p.type===Z.i44.Employee?p.firstName.split("")[0]:_?null===(r=_.companyName)||void 0===r?void 0:r.split("")[0]:null}),p&&p.type===Z.i44.Employee?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("p",{className:"w-full px-3 text-base font-medium text-black flex-1 text-ellipsis whitespace-nowrap overflow-hidden",children:p.firstName+" "+p.lastName})}):_?(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("p",{className:"w-full px-3 text-base font-medium text-black flex-1 text-ellipsis whitespace-nowrap overflow-hidden",children:[_.companyName,p&&p.type&&(0,a.jsx)("span",{className:"block w-full text-xs font-medium text-tabInactive flex-1 text-ellipsis whitespace-nowrap overflow-hidden",children:p.firstName+" "+p.lastName})]})}):null]}),(0,a.jsx)("hr",{className:"my-4"}),(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)("div",{className:"flex flex-row justify-start items-center cursor-pointer",onClick:()=>{c(!1),i.push("/dashboard?page=settings"),v((0,I.D4)(I.O$.settings))},children:[(0,a.jsx)(H.Z,{color:"black"}),(0,a.jsx)("p",{className:"flex-1 px-3 text-sm text-black",children:"Settings"})]}),(0,a.jsxs)("div",{className:"flex flex-row justify-start items-center cursor-pointer",onClick:()=>{c(!1),i.push("/dashboard?page="+I.O$.profile),v((0,I.D4)(I.O$.profile))},children:[(0,a.jsx)(Q.Z,{color:"black",stroke:"black"}),(0,a.jsx)("p",{className:"flex-1 px-3 text-sm text-black",children:"Profile"})]}),(null==p?void 0:p.type)===Z.i44.Employer&&(0,a.jsxs)("div",{className:"xl:hidden flex flex-row justify-start items-center cursor-pointer",onClick:()=>{c(!1),v((0,I.D4)(I.O$.jobs)),i.replace("/dashboard?page="+I.O$.jobs)},children:[(0,a.jsx)(q.Z,{color:"black"}),(0,a.jsx)("p",{className:"flex-1 px-3 text-sm text-black",children:"Jobs"})]})]}),(0,a.jsx)("hr",{className:"mt-4"}),(0,a.jsxs)("div",{className:"flex flex-row justify-start items-center cursor-pointer mt-4",onClick:M,children:[(0,a.jsx)("p",{className:"flex-1 px-3 text-sm text-black",children:"Logout"}),(0,a.jsx)($.G,{icon:J.SJh,size:"sm",className:"text-black"})]})]})})}),(0,a.jsx)(k.M,{children:A?(0,a.jsxs)(C.E.div,{initial:{opacity:0,x:300},animate:{opacity:1,x:0,transition:{duration:.4}},exit:{opacity:0,x:300,transition:{duration:.4}},className:"fixed top-0 left-0 right-0 bottom-0 bg-white w-full h-full flex flex-col overflow-hidden select-none z-50",children:[(0,a.jsx)("div",{className:"flex justify-start px-8 pt-6 pb-2 text-black cursor-pointer",children:(0,a.jsx)($.G,{icon:J.YIN,size:"lg",onClick:()=>v((0,I.aY)(!1))})}),(0,a.jsx)("div",{className:"flex justify-center items-center w-[40%] mx-auto mb-6 pb-2",children:(0,a.jsx)(X.Z,{width:200,gradientId:"linear-gradient-logo-mobile"})}),(0,a.jsx)("hr",{className:"px-8 w-4/5 mx-auto"}),(0,a.jsxs)("div",{className:"xl:hidden w-full py-4 z-20 overflow-y-auto flex flex-col",children:[(0,a.jsxs)("div",{className:"px-8",children:[s.map((e,t)=>(0,a.jsx)("div",{children:e.items?(0,a.jsxs)("div",{className:"w-full",children:[(0,a.jsxs)("div",{className:"flex flex-row justify-start items-center px-3 py-2 my-1 w-full rounded-xl cursor-pointer transition-all hover:scale-105".concat(D(e.items)?" bg-primary/10 !text-primary !fill-primary":" bg-transparent !text-black fill-black hover:bg-gray-50"),onClick:()=>B(t),children:[e.icon,(0,a.jsx)("p",{className:"flex-1 px-3 text-sm",children:e.title}),(0,a.jsx)(C.E.div,{variants:T,animate:x.has(t)?"expanded":"collapsed",className:"ml-auto",children:(0,a.jsx)(U.Z,{size:16})})]}),(0,a.jsx)(k.M,{initial:!1,children:x.has(t)&&(0,a.jsx)(C.E.div,{initial:{height:0,opacity:0}
1,animate:{height:"auto",opacity:1,transition:{height:{duration:.2},opacity:{duration:.2,delay:.1}}},exit:{height:0,opacity:0,transition:{height:{duration:.2,delay:.1},opacity:{duration:.1}}},className:"overflow-hidden",children:(0,a.jsx)("div",{className:"pl-6 pb-2",children:e.items.map((e,t)=>(0,a.jsx)(C.E.div,{initial:{x:-10,opacity:0},animate:{x:0,opacity:1,transition:{delay:.05*t,duration:.2}},id:"".concat(e.page,"_desktop"),className:"flex flex-row justify-start items-center px-3 py-2 my-1 w-full rounded-xl cursor-pointer transition-all hover:scale-105 relative".concat(e.page===P?" bg-primary !text-white !fill-white shadow-sm":" bg-transparent !text-gray-700 fill-gray-700 hover:bg-gray-50"),onClick:()=>{c(!1),v((0,I.aY)(!1)),i.replace("/dashboard?page="+e.page),v((0,I.D4)(e.page))},children:(0,a.jsx)("p",{className:"flex-1 text-sm",children:e.title})},t))})})})]}):(0,a.jsxs)("div",{id:"".concat(e.page,"_desktop"),className:"flex flex-row justify-start items-center px-3 py-2 my-1 w-full rounded-xl cursor-pointer transition-all hover:scale-105".concat(e.page===P?" bg-primary  !text-white !fill-white":" bg-transparent !text-black fill-black"),onClick:()=>{if(e.isExternal){i.replace("/"+e.page);return}if(e.page===I.O$["advanced-search"]){v((0,I.aY)(!1)),i.push("/dashboard/advanced-search");return}c(!1),v((0,I.aY)(!1)),i.replace("/dashboard?page="+e.page),v((0,I.D4)(e.page))},children:[e.icon,(0,a.jsx)("p",{className:"flex-1 px-3 text-sm",children:e.title})]})},t)),(0,a.jsxs)("div",{id:"".concat(I.O$.profile,"_mobile"),className:"flex flex-row justify-start items-center px-3 py-2 my-1 w-full rounded-xl cursor-pointer transition-all hover:scale-105".concat(I.O$.profile===P?" bg-primary fill-white":" fill-black stroke-black"),onClick:()=>{c(!1),v((0,I.aY)(!1)),v((0,I.D4)(I.O$.profile)),i.replace("/dashboard?page="+I.O$.profile)},children:[(0,a.jsx)(Q.Z,{color:"white",stroke:"white"}),(0,a.jsx)("p",{className:"flex-1 px-3 text-xs ".concat(I.O$.profile===P?"text-white":"text-black"),children:"Profile"})]}),(0,a.jsxs)("div",{id:"".concat(I.O$.settings,"_mobile"),className:"flex flex-row justify-start items-center px-3 py-2 my- w-full rounded-xl cursor-pointer transition-all hover:scale-105".concat(I.O$.settings===P?" bg-primary fill-white":" fill-black"),onClick:()=>{c(!1),v((0,I.aY)(!1)),v((0,I.D4)(I.O$.settings)),i.replace("/dashboard?page="+I.O$.settings)},children:[(0,H.Z)({}),(0,a.jsx)("p",{className:"flex-1 px-3 text-xs ".concat(I.O$.settings===P?"text-white":"text-black"),children:"Settings"})]})]}),(0,a.jsx)("div",{className:"flex flex-1 justify-end items-end flex-row gap-6 p-8",children:(0,a.jsx)(K.Z,{className:"text-xs w-full font-semibold",bg:"bg-purplelight",text:"text-primary",title:"Logout",onClick:M,icon:J.SJh})})]})]}):null})]})},ei=l(23157),eo=e=>{let{showModal:t,onClose:l,onSkip:i}=e,o=(0,m.I0)(),[n]=(0,Z.mfz)(),[c,p]=(0,d.useState)(null),[x,f]=(0,d.useState)(""),[b,w]=(0,d.useState)("idle"),[j,N]=(0,d.useState)(0),[k,C]=(0,d.useState)(null),[S,E]=(0,d.useState)(null),P=(0,m.v9)(e=>e.common.allSkills),[A]=(0,Z.ABF)(),[_]=(0,Z._Qg)(),[B,D]=(0,d.useState)(!1),[I,z]=(0,d.useState)(null),[R,T]=(0,d.useState)([]),[F,L]=(0,d.useState)(!1);(0,d.useEffect)(()=>{(async()=>{try{let{data:e,error:t}=await A();if(void 0!==t)return console.error("Error fetching skills:",t),null;if(void 0===e)return u.Am.error("Failed to fetch skills!",{autoClose:2e3,hideProgressBar:!0}),null;let l=e.allSkills.map(e=>({_id:e._id,skill:e.skill})).sort((e,t)=>e.skill.localeCompare(t.skill));o((0,h.hI)(l))}catch(e){console.error("Error in fetchAllSkills:",e),u.Am.error("Failed to load skills data",{autoClose:2e3,hideProgressBar:!0})}})()},[A,o]),(0,d.useEffect)(()=>{I&&I.skills&&I.skills.length>0&&R.length>0&&L(!0)},[I,R]);let J=e=>e.size/1048576>5?(C("File size must be less than 5MB"),!1):!!["application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document"].includes(e.type)||(C("Only PDF, DOC and DOCX files are allowed"),!1),$=()=>{w("uploading"),N(0);let e=setInterval(()=>{N(t=>t>=100?(clearInterval(e),w("complete"),100):t+10)},200)},U=async e=>{try{let t=P.filter(t=>e.some(e=>
1t.skill.toLowerCase()===e.toLowerCase())),l=e.filter(e=>!P.some(t=>t.skill.toLowerCase()===e.toLowerCase())),a=[];if(l.length>0)try{let{data:e}=await _({variables:{skills:l}});(null==e?void 0:e.AddMultipleSkillsFromAffinda)&&a.push(...e.AddMultipleSkillsFromAffinda.map(e=>({_id:e._id,skill:e.skill})))}catch(e){console.error("Error adding multiple skills:",e)}let r=[...t.map(e=>({_id:e._id,skill:e.skill})),...a].map(e=>({_id:e._id,skill:e.skill})).slice(0,30);return T(r),r}catch(e){return console.error("Error processing skills:",e),u.Am.error("Failed to process skills",{autoClose:2e3,hideProgressBar:!0}),[]}},G=async e=>{let{skills:t}=e.data,l=(null==t?void 0:t.map(e=>e.name))||[],a=await U(l);return z({skills:l}),{skills:a}},q=async e=>{if(!e)return;C("");let t="".concat(e.name,"-").concat(e.lastModified);if(t!==S)try{var l;D(!0);let a=new FormData;a.append("file",e),a.append("wait","true"),a.append("rejectDuplicates","true"),a.append("workspace","IPZHzGPH");let r=(await g().request({method:"POST",url:"https://api.affinda.com/v3/documents?compact=true",headers:{accept:"application/json",authorization:"Bearer ".concat("aff_b6e05634cbd1b1b9d113c0f6ada91f04ebafcca1")},data:a})).data;if((null===(l=r.error)||void 0===l?void 0:l.errorCode)==="duplicate_document_error"){let e=r.error.errorDetail.split(" ").pop();if(e){let t=await H(e);await G(t)}}else await G(r);E(t),D(!1)}catch(e){console.error("Error during resume processing:",e),C("Something went wrong, please try to upload the file again."),D(!1)}},H=async e=>{try{return(await g().get("https://api.affinda.com/v3/documents/".concat(e,"?compact=true"),{headers:{accept:"application/json",authorization:"Bearer ".concat("aff_b6e05634cbd1b1b9d113c0f6ada91f04ebafcca1")}})).data}catch(e){throw console.error("Error fetching parsed data:",e),e}},V=(0,d.useCallback)(async e=>{let t=e[0];t&&J(t)&&(C(null),p(t),f(t.name),$(),await q(t))},[]),{getRootProps:Y,getInputProps:W}=(0,y.uI)({onDrop:V,accept:{"application/pdf":[".pdf"],"application/msword":[".doc"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":[".docx"]},multiple:!1}),X=(0,d.useCallback)(e=>{if(e.length>30){u.Am.warn("You can select up to 30 skills only.",{autoClose:2e3,hideProgressBar:!0});return}T(e.map(e=>({_id:e.value,skill:e.label})))},[]),K=async()=>{try{var e;if(!c){u.Am.error("Upload Resume to update skills",{hideProgressBar:!0,autoClose:2e3});return}let t=null,{contentType:l,ext:a}=(0,v.hU)(c),r=v.WC?"candidate-resumes-dev":"candidate-resumes",s=(0,v.Dq)(),d="".concat(r,"/resume_").concat(s,".").concat(a),m=await g().post(v.hW,{fileKey:d});if(200!==m.status||!(null===(e=m.data)||void 0===e?void 0:e.fileUploadUrl)){u.Am.error("Something went wrong during resume upload, please try again after sometime.",{hideProgressBar:!0,autoClose:2e3});return}let{fileUploadUrl:p}=m.data;await g().put(p,c,{headers:{"Content-Type":l}});let x="https://assets.inradius.in/".concat(d);o((0,O.Cr)({resume:{_id:"",value:x}})),t=x;let h=R.map(e=>({_id:e._id,value:e.skill}));o((0,O.Cr)({skills:h}));let{errors:f}=await n({variables:{input:{skills:h,resume:{value:null!=t?t:""}}}});if(f){console.error("Errors updating employee data:",f),C("Failed to save changes. Please try again.");return}await i()}catch(e){console.error("Error saving changes:",e),C("An unexpected error occurred. Please try again.")}};return(0,a.jsx)(s.Z,{show:t,close:l,children:(0,a.jsxs)("div",{className:"w-full max-w-2xl mx-auto bg-white p-6 rounded-lg",children:[(0,a.jsxs)("div",{className:"flex justify-between items-center mb-6",children:[(0,a.jsx)("h2",{className:"text-2xl font-semibold",children:"Update Your Profile"}),(0,a.jsx)("button",{title:"close",onClick:l,className:"text-gray-500 hover:text-gray-700",children:(0,a.jsx)(M.Z,{className:"w-6 h-6"})})]}),(0,a.jsxs)("div",{className:"space-y-6",children:[(0,a.jsx)("div",{className:"bg-gray-200 rounded-lg p-4",children:(0,a.jsx)("p",{className:"text-sm text-black",children:"It's been a while since you updated your profile. Let us help you\n              quickly get all set up with a simple resume upload. We'll scan it\n              for all your latest details, and update your profile accordingly\n              to help you find better job matches."})}),(0,a.jsxs)("div",{...Y(),className:"border-2 border-dashed border-gray-300 rounded-lg p-6 text-center cursor-pointer hover:border-primary",children:[(0,a.jsx)("input",{...W()}),(0,a.jsx)("p",{className:"text-gray-600",children:"Drag & drop your resume here, or click to select"}),(0,a.jsx)("p",{className:"text-sm text-gray-500 mt-2",children:"Supports PDF, DOC, DOCX (Max 5MB)"})]}),c&&(0,a.jsxs)(et.Zb,{className:"p-4",children:[(0,a.jsxs)("div",{className:"flex justify-between items-center",children:[(0,a.jsx)("span",{className:"text-sm font-medium",children:x}),(0,a.jsx)("span",{className:"text-sm text-gray-500",children:"complete"===b?"Uploaded":"".concat(j,"%")})]}),"uploading"===b&&(0,a.jsx)("div",{className:"w-full h-2 bg-gray-200 rounded-full mt-2",children:(0,a.jsx)("div",{className:"h-full bg-primary rounded-full transition-all",style:{width:"".concat(j,"%")}})})]}),F&&!B&&(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsx)("h3",{className:"text-lg font-medium",children:"Skills"}),(0,a.jsx)("p",{className:"text-sm text-gray-600",children:"Select 8-30 skills that best describe your expertise"}),(0,a.jsx)(ei.ZP,{isMulti:!0,value:R.map(e=>({value:e._id,label:e.skill})),onChange:X,options:P.map(e=>({value:e._id,label:e.skill})),className:"w-full",placeholder:"Select skills...",noOptionsMessage:()=>"Type to search skills"}),R.length>0&&(0,a.jsxs)("p",{className:"text-sm text-gray-500",children:[R.length," skills selected (",8," minimum required)"]})]}),B&&(0,a.jsxs)("div",{className:"text-center py-4",children:[(0,a.jsx)("div",{className:"animate-spin w-8 h-8 border-4 border-primary border-t-transparent roun
1ded-full mx-auto mb-2"}),(0,a.jsx)("p",{className:"text-gray-600",children:"Analyzing your resume..."})]}),k&&(0,a.jsx)("p",{className:"text-red-500 text-sm",children:k}),(0,a.jsxs)("div",{className:"flex justify-end space-x-4 mt-6",children:[(0,a.jsx)("button",{className:"border border-primary bg-white text-primary text-xs px-4 py-1 rounded-md",onClick:i,children:"Skip"}),(0,a.jsx)(r.Z,{outline:!1,buttonBg:"primary",disabled:!(c&&R.length>=8),onClick:K,text:"Save",textColor:"white"})]})]})]})})};let en=o()(()=>Promise.all([l.e(3392),l.e(7677)]).then(l.bind(l,47677)),{loadableGenerated:{webpack:()=>[47677]},ssr:!1}),ed=o()(()=>l.e(8388).then(l.bind(l,39879)).then(e=>e.Player),{loadableGenerated:{webpack:()=>[39879]},ssr:!1}),ec=l(17247).default,em=o()(()=>Promise.resolve().then(l.bind(l,62201)),{loadableGenerated:{webpack:()=>[null]},ssr:!1}),eu=e=>{let{backProps:t,continuous:l,index:r,isLastStep:s,primaryProps:i,skipProps:o,step:n,tooltipProps:d,size:c}=e;return(0,a.jsxs)("div",{...d,className:"rounded-2xl bg-white max-w-xs w-80",children:[(0,a.jsx)("p",{className:"text-base font-medium text-center text-black text-opacity-60 p-4",style:{textAlignLast:"center"},children:n.content}),(0,a.jsx)("div",{className:"flex flex-row justify-end gap-2 w-full px-4 pb-4",children:(0,a.jsx)("button",{className:"w-24 text-xs bg-primary p-2 text-white grid place-items-center rounded-lg cursor-pointer border-none outline-none",...i,children:s?"Close":"Next (".concat(r+1," / ").concat(c,")")})})]})},ep=[{disableBeacon:!0,target:"#explore_desktop",content:"All jobs matching your criteria will be listed here",placement:"right",hideCloseButton:!0},{target:"#my-interests_desktop",content:"All jobs you've applied for will be listed here",placement:"right",hideCloseButton:!0},{target:"#blogs_desktop",content:"Best Job & Talent Search blogs to find the latest job trends, hiring trends, skill trends and career insights",placement:"right",hideCloseButton:!0},{target:"#setting_desktop",content:"You can update / view your profile detail from here",placement:"right",hideCloseButton:!0},{target:"#search_bar",content:"You can search for jobs or companies here",placement:"bottom",hideCloseButton:!0},{target:"#notification_icon",content:"You can view all your job search updates here",placement:"bottom",hideCloseButton:!0}],ex=[{disableBeacon:!0,target:"#Jobs_desktop",content:"All your job postings can be managed from here",placement:"right",hideCloseButton:!0},{target:"#viewed-profile_desktop",content:"All the candidates that you have previously viewed, will be listed here",placement:"right",hideCloseButton:!0},{target:"#teams_desktop",content:"All your account team members will be listed here",placement:"right",hideCloseButton:!0}];var eh=e=>{let{children:t}=e,[i,o]=(0,d.useState)(!1),[f,w]=(0,d.useState)(!1),[k,C]=(0,d.useState)(!1);(0,m.v9)(e=>e.dashboard.dashboardEmployer);let[S,E]=(0,d.useState)(null),[P,A]=(0,d.useState)(!1),[R,F]=(0,d.useState)(!1),[J,$]=(0,d.useState)(!1),[U,G]=(0,d.useState)([]),[q,H]=(0,d.useState)(!1),[V,Y]=(0,d.useState)(!1),[W,X]=(0,d.useState)(null),[K,Q]=(0,d.useState)(null),[ee,et]=(0,d.useState)(!1),[el,ea]=(0,d.useState)(!1),[er]=(0,Z.mfz)(),[ei]=(0,Z.k0R)(),[eh]=(0,Z.Igy)(),[ef]=(0,Z.G6X)(),[eg]=(0,Z.Hjn)(),[ey]=(0,Z.p7)(),ev=(0,m.I0)(),eb=(0,n.useRouter)(),[ew]=(0,Z.idL)(),[ej]=(0,Z.nkV)(),[eN]=(0,Z.m5x)(),[ek,eC]=(0,d.useState)(N.N),[eS,eE]=(0,d.useState)(null),[eP,eA]=(0,d.useState)({});(0,m.v9)(e=>e.dashboard.allPlans),(0,m.v9)(e=>e.dashboard.showAllPlans),(0,m.v9)(e=>e.dashboard.showPremiumPlans),(0,m.v9)(e=>e.dashboard.showNonPremiumPlans),(0,m.v9)(e=>e.employer.firstJobPosted);let e_=(0,m.v9)(e=>e.dashboard.dashboardUser);(0,m.v9)(e=>e.dashboard.upgradeTrigger);let[eB,eD]=(0,d.useState)(null),[eI,eO]=(0,d.useState)(""),[ez,eM]=(0,d.useState)("idle"),[eR,eT]=(0,d.useState)(null),[eZ,eF]=(0,d.useState)(null);eb.pathname;let[eL]=(0,Z.Jpb)(),[eJ]=(0,Z.p_1)(),[e$,eU]=(0,d.useState)(!1),[eG,eq]=(0,d.useState)(b.EditorState.createEmpty()),[eH,eV]=(0,d.useState)(0),[eY,eW]=(0,d.useState)(!1),eX=(0,m.v9)(e=>e.dashboard.showUploadCVPopup),eK=["Scanning your resum\xe9...","Processing details...","Almost there..."],[eQ,e0]=(0,d.useState)(eK[0]),[e1,e2]=(0,d.useState)(0),e4=(e,t)=>{eA(l=>{let a=l[e]||1;return{...l,[e]:Math.max(1,a+t)}})};(0,d.useEffect)(()=>
1{if(e$&&e1<eK.length-1){let e=setInterval(()=>{e2(t=>{let l=t+1;return l<eK.length?(e0(eK[l]),l):(clearInterval(e),t)})},1e3);return()=>clearInterval(e)}},[e$,e1]),(0,d.useEffect)(()=>{let e=async()=>{try{let{data:e,error:t}=await eL({fetchPolicy:"network-only"});e&&ev((0,z.Kr)(e.employerFirstJobPosted)),t&&console.error("Error fetching first job posted:",t)}catch(e){console.error("Unexpected error:",e)}try{let{data:e,error:t}=await eJ({fetchPolicy:"network-only"});E(e.employerActiveJobsCount)}catch(e){console.log("Error fetch active live jobs")}};(null==to?void 0:to.type)===Z.i44.Employer&&e()},[]),(0,d.useEffect)(()=>{let e=async()=>{try{if(!J)return;H(!0);let e=await eN({variables:{forPremium:V},fetchPolicy:"network-only"});e.data.fetchAllActiveJobs&&G(e.data.fetchAllActiveJobs.map(e=>{var t;return{_id:e._id,jobDesc:null!==(t=e.jobDesc.value)&&void 0!==t?t:"",jobTitle:e.jobTitle.value}}))}catch(e){console.log(e)}finally{H(!1)}};(null==e_?void 0:e_.type)===Z.i44.Employer&&e()},[J]);let e3=(0,d.useCallback)(e=>e.size/1048576>5?(eT("File size must be less than 5MB"),!1):["application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document"].includes(e.type)?(eT(null),!0):(eT("Only PDF, DOC and DOCX files are allowed"),!1),[]),e5=(0,d.useCallback)(async e=>{try{return(await g().get("https://api.affinda.com/v3/documents/".concat(e,"?compact=true"),{headers:{accept:"application/json",authorization:"Bearer ".concat("aff_b6e05634cbd1b1b9d113c0f6ada91f04ebafcca1")}})).data}catch(e){throw console.error("Error fetching parsed data:",e),e}},[]),e6=(0,d.useCallback)(e=>{let{summary:t}=e.data;eF({summary:t||""})},[]),e7=(0,d.useCallback)(async e=>{if(e)try{var t;eU(!0);let l=new FormData;l.append("file",e),l.append("wait","true"),l.append("rejectDuplicates","true"),l.append("workspace","IPZHzGPH");let a=(await g().request({method:"POST",url:"https://api.affinda.com/v3/documents?compact=true",headers:{accept:"application/json",authorization:"Bearer ".concat("aff_b6e05634cbd1b1b9d113c0f6ada91f04ebafcca1")},data:l})).data;if((null===(t=a.error)||void 0===t?void 0:t.errorCode)==="duplicate_document_error"){let e=a.error.errorDetail.split(" ").pop();if(e){let t=await e5(e);e6(t)}}else e6(a)}catch(e){console.error("Error during resume processing:",e),eT("Something went wrong, please try to upload the file again.")}finally{eU(!1)}},[e5,e6]),e8=(0,d.useCallback)(async e=>{let t=e[0];t&&e3(t)&&(eD(t),eO(t.name),eM("uploading"),await e7(t),eM("complete"))},[e3,e7]),{getRootProps:e9,getInputProps:te}=(0,y.uI)({onDrop:e8,accept:{"application/pdf":[".pdf"],"application/msword":[".doc"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":[".docx"]},multiple:!1}),tt=(0,d.useCallback)(e=>{eV(e.getCurrentContent().getPlainText().length),eq(e)},[]),tl=(0,d.useCallback)(async e=>{var t;let{contentType:l,ext:a}=(0,v.hU)(e),r=v.WC?"candidate-resumes-dev":"candidate-resumes",s=(0,v.Dq)(),i="".concat(r,"/resume_").concat(s,".").concat(a),o=await g().post(v.hW,{fileKey:i});if(200!==o.status||!(null===(t=o.data)||void 0===t?void 0:t.fileUploadUrl))throw Error("Failed to get upload URL");let{fileUploadUrl:n}=o.data;return await g().put(n,e,{headers:{"Content-Type":l}}),"https://assets.inradius.in/".concat(i)},[]),ta=(0,d.useCallback)(async()=>{if(!eB){u.Am.error("Please upload a resume first",{autoClose:2e3,hideProgressBar:!0});return}let e=j()((0,b.convertToRaw)(eG.getCurrentContent())),t=eG.getCurrentContent().getPlainText();if(t.length<50){u.Am.error("Summary must be at least ".concat(50," characters"),{autoClose:2e3,hideProgressBar:!0});return}if(t.length>2500){u.Am.error("Summary must be less than ".concat(2500," characters"),{autoClose:2e3,hideProgressBar:!0});return}try{eW(!0);let t=await tl(eB),{data:l,errors:a}=await er({variables:{input:{resume:{value:t},shortDescription:e&&e.length>0?{value:e}:null},key:"",otp:""}});l.updateEmployee&&(u.Am.success("Resume and summary updated successfully",{autoClose:2e3,hideProgressBar:!0}),eb.reload(),eW(!1))}catch(e){console.log(e),u.Am.error("error: "+e)}finally{eW(!1)}},[eG,eB]);(0,d.useEffect)(()=>
1{if(null==eZ?void 0:eZ.summary)try{let e=ec(eZ.summary);if(e){let t=b.ContentState.createFromBlockArray(e.contentBlocks),l=b.EditorState.createWithContent(t),a=t.getPlainText();eV(a.length),eq(l)}}catch(e){console.error("Error processing parsed data:",e)}},[eZ]);let[tr,ts]=(0,d.useState)(!1);(0,d.useEffect)(()=>{let e=()=>{ts(window.innerWidth>=1024)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,d.useEffect)(()=>{if(i&&!tm)return;let{planType:e,planQty:t}=eb.query;if(e){"Free"===e?(ev((0,I.D4)(I.O$.jobs)),eb.push("/dashboard/?page=".concat(I.O$.jobs))):(ev((0,I.lG)(!0)),e4(e,parseFloat(t)-1));let l={...eb.query};delete l.planType,delete l.planQty,eb.replace({pathname:eb.pathname,query:l},void 0,{shallow:!0})}},[eb.query,i]),(0,m.v9)(e=>e.dashboard.dashboardJobs);let ti=async()=>{await ei(),ea(!1),ev((0,I.v)({...to,oldAccountResumeParsed:!0}))},to=(0,m.v9)(e=>e.dashboard.dashboardUser);(0,m.v9)(e=>{var t,l;return null===(l=e.employee)||void 0===l?void 0:null===(t=l.employee)||void 0===t?void 0:t.skills});let[tn,td]=(0,d.useState)([]);(0,d.useEffect)(()=>{(null==to?void 0:to.type)===Z.i44.Employee&&!1===to.oldAccountResumeParsed&&ea(!0)},[to]);let tc=(0,m.v9)(e=>e.common.showIntro),tm=(0,m.v9)(e=>e.common.loading);(0,d.useEffect)(()=>{let e=async()=>{if(to&&to.type===Z.i44.Employer){if(!localStorage.getItem("openAIModalPopupEmployer")&&(await eh({variables:{employerId:null==e_?void 0:e_._id}})).data.incEmployerModalView){let{data:e}=await eL({fetchPolicy:"network-only"});e.employerFirstJobPosted?C(!0):w(!0),localStorage.setItem("openAIModalPopupEmployer","true")}}else if(to&&to.type===Z.i44.Employee){if(localStorage.getItem("openAIModalPopupEmployee"))return;(await ef({variables:{employeeId:null==e_?void 0:e_._id}})).data.incEmployeeModalView&&(et(!0),localStorage.setItem("openAIModalPopupEmployee","true"))}};to&&e()},[to]),(0,d.useEffect)(()=>{to&&!to.intro&&!tm&&tc&&o(!0)},[to,tc,tm]),(0,d.useEffect)(()=>{let e=async()=>{var e,t;let{data:l,error:a}=await ew({fetchPolicy:"network-only"}),r={_id:l.getEmployee._id,image:l.getEmployee.image,firstName:l.getEmployee.firstName,lastName:l.getEmployee.lastName,email:l.getEmployee.email,shortDescription:l.getEmployee.shortDescription,radius:l.getEmployee.radius,location:l.getEmployee.location,city:l.getEmployee.city,qualifications:l.getEmployee.qualifications?l.getEmployee.qualifications.map(e=>({_id:e._id,value:e.value})):[],industry:l.getEmployee.industry,domain:l.getEmployee.domain,subDomain:l.getEmployee.subDomain,skills:l.getEmployee.skills,suggestions:l.getEmployee.suggestions,workExp:l.getEmployee.workExp,totalExp:l.getEmployee.totalExp,relevantExp:l.getEmployee.relevantExp,currentPay:l.getEmployee.currentPay,expectedPay:l.getEmployee.expectedPay,linkedIn:l.getEmployee.linkedIn,resume:l.getEmployee.resume,gender:l.getEmployee.gender,currentAddress:l.getEmployee.currentAddress,dob:l.getEmployee.dob,panCard:l.getEmployee.panCard,aadharCard:l.getEmployee.aadharCard,fresher:(null===(e=l.getEmployee.relevantExp)||void 0===e?void 0:e.years)==="0"&&(null===(t=l.getEmployee.relevantExp)||void 0===t?void 0:t.months)==="0",nationality:l.getEmployee.nationality,joiningStatus:l.getEmployee.joiningStatus,lastWorkingDate:l.getEmployee.lastWorkingDate,noticeDays:l.getEmployee.noticeDays,relocate:l.getEmployee.relocate,snoozedAccount:l.getEmployee.snoozedAccount,autoApply:l.getEmployee.autoApply,profileScore:l.getEmployee.profileScore,nonRelevantCredits:l.getEmployee.nonRelevantCredits,usedNonRelevantCredits:l.getEmployee.usedNonRelevantCredits,hasTopSkill:l.getEmployee.hasTopSkill,headline:l.getEmployee.profileHeadline,certificates:l.getEmployee.certificates,isResumeSkip:l.getEmployee.resumeSkipped,languages:l.getEmployee.languages,qualification:l.getEmployee.education,workExperience:l.getEmployee.workExperience};ev((0,O.fH)(r)),ev((0,I.CP)(r)),ev((0,I.OX)(r.nonRelevantCredits)),ev((0,I.Ho)(r.usedNonRelevantCredits))};to&&to.type===Z.i44.Employee&&e()},[to,ev]);let[tu]=(0,Z.d_C)(),tp=async e=>{let{status:t,type:l}=e;if([c.STATUS.FINISHED,c.STATUS.SKIPPED].includes(t)&&to){o(!1),ev((0,h.hy)(!1)),ev((0,I.v)({...to,intro:!0}));let{data:e,error:t}=await tu({fetchPolicy:"network-only"});if(void 0!==t)return u.Am.error(t.message,{autoClose:2e3,hideProgressBar:!0}),null;if(void 0===e||!1===e.updateIntroStatus)return u.Am.error("Something went wrong",{autoClose:2e3,hideProgressBar:!0}),null}};return(0,a.jsxs)("div",{className:"flex flex-row overflow-hidden h-screen justify-start w-full",children:[(0,a.jsx)(B.Z,{}),(0,a.jsx)("div",{className:"hidden lg:block",children:(0,a.jsx)(em,{continuous:!0,run:window.innerWidth>=1024&&i,showProgress:!0,showSkipButton:!0,hideBackButton:!0,beaconComponent:()=>(0,a.jsx)("div",{className:"hidden"}),steps:(null==to?void 0:to.type)===Z.i44.Employee?ep:(null==to?void 0:to.type)===Z.i44.Employer?ex:[],styles:{options:{primaryColor:"#fc4102",textColor:"black",zIndex:1e4}},callback:tp,tooltipComponent:eu})}),(0,a.jsx)(D.default,{loading:q}),(0,a.jsx)(es,{list:to&&to.type===Z.i44.Employer?to.isEmployerSubUser?I.O6.employer.filter(e=>"Team"!==e.title):I.O6.employer:(null==to?void 0:to.platformStatus)===Z.wsY.Active?I.O6.employee:I.H1.employee}),(0,a.jsxs)("div",{className:"flex flex-col flex-1 min-w-0 h-full",children:[(null==to?void 0:to.type)===Z.i44.Employer&&!eb.asPath.includes("/dashboard/advanced-search")&&!eb.asPath.includes("/dashboard?page=settings")&&!eb.asPath.includes("/dashboard?page=subscription")&&!eb.asPath.includes("/dashboard?page=profile")&&(0,a.jsx)(L,{}),t]}),(0,a.jsx)(_,{size:"md:w-[55%] lg:w-[38%] w-11/12",show:f&&!i,close:()=>w(!1),children:(0,a.jsxs)("div",{className:"w-full h-max overflow-y-auto",children:[(0,a.jsx)("button",{onClick:()=>w(!1),className:"absolute top-4 z-[999] right-2 px-3 py-1 rounded-lg transition-colors duration-200",children:(0,a.jsx)(M.Z,{className:"z-[999999] cursor-pointer"})}),(0,a.jsxs)("div",{className:"w-full z-50 flex flex-col items-center justify-center relative px-6 py-6 md:px-8 md:py-8 text-newBlack",children:[(0,a.jsxs)("div",{className:"flex flex-col w-full items-center",children:[(0,a.jsxs)("p",{className:"text-2xl md:text-3xl font-semibold text-center text-newBlack",children:["Introducing ",(0,a.jsx)("br",{})," AI Candidate Search"," ",(0,a.jsx)(T(),{src:p.Z,alt:"SparklesIcon",className:"inline-block w-6 h-6 md:w-7 md:h-7"})]}),(0,a.jsx)("p",{className:"text-center mt-4 md:mt-5 text-sm md:text-base font-medium max-w-[380px]",children:"A faster, smarter way to find candidates using AI. Search using plain English or keywords and get relevant profiles instantly."})]}),(0,a.jsx)("div",{className:"flex flex-col items-center w-full gap-4 mt-5 mb-5",children:(0,a.jsxs)("div",{className:"rounded-lg  border-scroll px-3 md:px-4 py-3 flex items-center w-full max-w-[420px]",children:[(0,a.jsx)(T(),{src:x.Z,alt:"SearchIcon",className:"w-8 h-8 md:w-10 md:h-10 object-cover mr-3"}),(0,a.jsxs)("div",{className:"flex flex-col items-start text-newBlack",children:[(0,a.jsx)("p",{className:"text-sm md:text-base font-semibold",children:"Search Candidates in Plain English"}),(0,a.jsx)("p",{className:"text-xs text-gray-600 mt-0.5",children:"Describe the role or the candidate you want. Our AI understands intent, not just keywords."})]})]})}),(0,a.jsx)("div",{className:"flex flex-row justify-center gap-3 w-full",children:(0,a.jsx)(r.Z,{outline:!1,buttonBg:"transparent",onClick:()=>{w(!1),eb.push("/dashboard/advanced-search")},text:"Try AI Search",textColor:"white",gradient:"bg-gradient-to-r from-purpleLight to-purpleDark px-4",paddingY:"2.5",paddingX:"12"})})]})]})}),(0,a.jsx)(_,{size:"md:w-[55%] lg:w-[38%] w-11/12",show:k&&!i,close:()=>C(!1),children:(0,a.jsxs)("div",{className:"w-full h-max overflow-y-auto",children:[(0,a.jsx)("button",{onClick:()=>C(!1),className:"absolute top-4 z-[999] right-2 px-3 py-1 rounded-lg transition-colors duration-200",children:(0,a.jsx)(M.Z,{className:"z-[999999] cursor-pointer"})}),(0,a.jsxs)("div",{className:"w-full z-50 flex flex-col items-center justify-center relative px-6 py-6 md:px-8 md:py-8 text-newBlack",children:[(0,a.jsxs)("div",{className:"flex flex-col w-full items-center",children:[(0,a.jsxs)("p",{className:"text-2xl md:text-3xl font-semibold text-center text-newBlack",children:["Introducing ",(0,a.jsx)("br",{})," AI Candidate Search"," ",(0,a.jsx)(T(),{src:p.Z,alt:"SparklesIcon",className:"inline-block w-6 h-6 md:w-7 md:h-7"})]}),(0,a.jsx)("p",{className:"text-center mt-4 md:mt-5 text-sm md:text-base font-medium max-w-[380px]",children:"A faster, smarter way to find candidates using AI. Search using plain English or keywords and get relevant profiles instantly."})]}),(0,a.jsx)("div",{className:"flex flex-col items-center w-full gap-4 mt-5 mb-5",children:(0,a.jsxs)("div",{className:"rounded-lg border-scroll px-3 md:px-4 py-3 flex items-center w-full max-w-[420px]",children:[(0,a.jsx)(T(),{src:x.Z,alt:"SearchIcon",className:"w-8 h-8 md:w-10 md:h-10 object-cover mr-3"}),(0,a.jsxs)("div",{className:"flex flex-col items-start text-newBlack",children:[(0,a.jsx)("p",{className:"text-sm md:text-base font-semibold",children:"Search Candidates in Plain English"}),(0,a.jsx)("p",{className:"text-xs text-gray-600 mt-0.5",children:"Describe the role or the candidate you want. Our AI understands intent, not just keywords."})]})]})}),(0,a.jsx)("div",{className:"flex flex-row justify-center gap-3 w-full",children:(0,a.jsx)(r.Z,{outline:!1,buttonBg:"transparent",onClick:()=>{C(!1),eb.push("/dashboard/advanced-search")},text:"Try AI Search",textColor:"white",gradient:"bg-gradient-to-r from-purpleLight to-purpleDark px-4",paddingY:"2.5",paddingX:"12"})})]})]})}),(0,a.jsx)(_,{size:"md:w-[55%] lg:w-[38%] w-11/12",show:ee&&!i,close:()=>et(!1),children:(0,a.jsxs)("div",{className:"w-full h-max overflow-y-auto",children:[(0,a.jsx)("button",{onClick:()=>et(!1),className:"absolute top-4 z-[999] right-2 px-3 py-1 rounded-lg transition-colors duration-200",children:(0,a.jsx)(M.Z,{className:"z-[999999] cursor-pointer"})}),(0,a.jsxs)("div",{className:"w-full z-50 flex flex-col items-center justify-center relative p-8 text-newBlack",children:[(0,a.jsxs)("div",{className:"flex flex-col w-full items-center",children:[(0,a.jsxs)("p",{className:"text-2xl md:text-4xl font-semibold text-center text-newBlack",children:["Bringing to you, ",(0,a.jsx)("br",{})," the power of OpenAI!"]}),(0,a.jsx)("p",{className:"text-center mt-5 md:mt-8 text-sm md:text-base font-medium max-w-[400px]",children:"Not just more matches but better accuracy, using the same tech that powers ChatGPT."})]}),(0,a.jsxs)("div",{className:"flex flex-col items-center justify-between gap-4 my-6",children:[(0,a.jsxs)("div",{className:"rounded-lg bg-lightpinkBg shadow-sm border border-scroll px-2 md:px-4 py-2 flex items-center",children:[(0,a.jsx)(T(),{src:p.Z,alt:"SearchIcon",className:"md:w-10 w-7 md:h-8 h-5 object-cover mr-5"}),(0,a.jsxs)("div",{className:"flex flex-col items-start text-newBlack",children:[(0,a.jsx)("p",{className:"text-sm md:text-lg font-semibold",children:"Smarter Job Matches"}),(0,a.jsx)("p",{className:"text-[12px] md:text-xs text-gray-600 mt-0.5",children:"Our AI looks beyond just keywords. It understands your full experience, strengths, and potential."})]})]}),(0,a.jsxs)("div",{className:"rounded-lg bg-lightpinkBg shadow-sm border border-scroll px-2 md:px-4 py-2 flex items-center",children:[(0,a.jsx)(T(),{src:x.Z,alt:"SearchIcon",className:"md:w-9 w-6 md:h-9 h-6 object-cover mr-4"}),(0,a.jsxs)("div",{className:"flex flex-col items-start text-newBlack",children:[(0,a.jsx)("p",{className:"text-sm md:text-lg font-semibold",children:"More Meaningful Roles"}),(0,a.jsx)("p",{className:"text-[12px] md:text-xs text-gray-600 mt-0.5",children:"You'll now see jobs that align with your journey-not just\n                    your resume line by line."})]})]}),(0,a.jsx)("p",{className:"text-center text-sm md:text-base mt-4 font-medium max-w-[400px]",children:"We recommend that you ensure your profile is up-to-date, so our AI has the right data to match you with relevant jobs."})]}),(0,a.jsx)("div",{className:"flex flex-row justify-center gap-3 w-full",children:(0,a.jsx)(r.Z,{outline:!1,buttonBg:"transparent",onClick:()=>{eb.push("/dashboard?page="+I.O$.profile),ev((0,I.D4)(I.O$.profile)),et(!1)},text:"Update Profile",textColor:"white",gradient:"bg-gradient-to-r from-purpleLight to-purpleDark px-4",paddingY:"2.5",paddingX:"12"})})]})]})}),(0,a.jsx)(s.Z,{close:()=>{ev((0,I.rg)(!1))},show:eX,title:"Upload Resume",size:"lg:w-[50%] w-11/12",children:(0,a.jsxs)("div",{className:"space-y-4 w-full p-6 relative",children:[!eB&&(0,a.jsx)("p",{className:"text-newBlack text-sm mb-6 md:text-lg font-semibold",children:"Upload your CV to apply. It boosts your profile score by 10 and\n              makes you 3x more visible to re
1cruiters."}),(0,a.jsxs)("div",{...e9(),className:"border-2 border-dashed border-gray-300 rounded-lg p-6 text-center cursor-pointer hover:border-primary",children:[(0,a.jsx)("input",{...te()}),(0,a.jsx)("p",{className:"text-gray-600",children:"Drag & drop your resume here, or click to select"}),(0,a.jsx)("p",{className:"text-sm text-gray-500 mt-2",children:"Supports PDF, DOC, DOCX (Max 5MB)"})]}),eB&&(0,a.jsx)("div",{className:"p-4 border rounded-lg",children:(0,a.jsxs)("div",{className:"flex justify-between items-center",children:[(0,a.jsx)("span",{className:"text-sm font-medium",children:eI}),(0,a.jsx)("span",{className:"text-sm text-gray-500",children:"complete"===ez?"Uploaded":"Uploading..."})]})}),e$&&(0,a.jsx)("div",{className:"w-full bg-white flex items-center justify-center",children:(0,a.jsx)("div",{className:"w-full max-w-2xl px-8 py-2 flex flex-col items-center",children:(0,a.jsxs)("div",{className:"space-y-6 flex flex-col items-center",children:[(0,a.jsx)(ed,{src:l(23604),loop:!0,autoplay:!0,style:{width:200,height:200}}),(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsx)("h2",{className:"text-xl font-semibold text-black",children:"Getting things Ready"}),(0,a.jsx)("p",{className:"text-base text-gray-500 animate-fade-in",children:eQ})]})]})})}),eB&&!e$&&(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsx)("h3",{className:"text-lg font-medium",children:"Professional Summary"}),(0,a.jsx)("p",{className:"text-sm text-gray-600",children:"Review and edit your professional summary extracted from your resume"}),(0,a.jsx)(en,{editorState:eG,onEditorStateChange:tt,heights:"!h-48"}),(0,a.jsx)("div",{className:"text-xs w-full text-right text-gray-500 font-normal mt-2",children:(0,a.jsxs)("span",{className:eH>2500||eH<50?"text-red-500":"text-gray-500",children:[eH,"/",2500," Character(s)"]})})]}),(0,a.jsx)("button",{onClick:ta,className:"bg-primary sticky bottom-5 w-full text-white py-2 disabled:bg-opacity-50 px-4 rounded-md hover:bg-primary-dark transition-colors !z-[99999]",disabled:(null==eZ?void 0:eZ.summary)&&eH<50||(null==eZ?void 0:eZ.summary)&&eH>2500||!1===eG.getCurrentContent().hasText()||eG.getCurrentContent().getPlainText().length<50||e$||!eB||eY,children:"Submit"}),eR&&(0,a.jsx)("p",{className:"text-red-500 text-sm",children:eR})]})}),(0,a.jsx)(eo,{showModal:el,onClose:()=>ea(!1),onSkip:ti})]})},ef=l(39712),eg=l(96486),ey=l.n(eg),ev=l(28410);l(96232);var eb=l(61090),ew=l(80206),ej=l(46444),eN=l(2317),ek=l(24577),eC=l(70791),eS=l(28709),eE=l(20927),eP=l(70783);l(27108);var eA=()=>{var e,t;let l=(0,m.I0)(),i=(0,n.useRouter)(),o=(0,d.useRef)(null),c=(0,m.v9)(e=>e.filters),[p,x]=(0,d.useState)(0),[h,f]=(0,d.useState)(),[g,y]=(0,d.useState)(null),[v,b]=(0,d.useState)(null),[w,j]=(0,d.useState)(!1),N=(0,d.useRef)();(0,d.useRef)();let k=(0,m.v9)(e=>e.dashboard.dashboardJobNames),C=(0,m.v9)(e=>e.dashboard.currentPage),S=(0,m.v9)(e=>e.dashboard.dashboardEmployer),E=(0,m.v9)(e=>e.dashboard.dashboardUser),P=(0,m.v9)(e=>e.dashboard.selectedJob);(0,m.v9)(e=>e.employer.employer._id),(0,m.v9)(e=>e.employer.employer.companyName);let[A,_]=(0,d.useState)(!1),[B,O]=(0,d.useState)(!1),[z,M]=(0,d.useState)([]),[R,T]=(0,d.useState)([]),F=(0,d.useRef)(null),[L,U]=(0,d.useState)(!1),[G,q]=(0,d.useState)("non-relevant"),[H,V]=(0,d.useState)(!1),[Y,W]=(0,d.useState)(!1),[X,K]=(0,d.useState)(!1),[Q,ee]=(0,d.useState)(""),[et,el]=(0,d.useState)(0),[ea,er]=(0,d.useState)(0),[es,ei]=(0,d.useState)(0);(0,d.useEffect)(()=>()=>{l((0,eb.Mk)())},[l]);let eo=(0,d.useRef)(!1);eo.current||(l((0,eb.Mk)()),l((0,eb.Al)({sortBy:{value:Z.YVJ.Default,label:"Default"},sortType:Z.YVJ.Default})),eo.current=!0),(0,d.useEffect)(()=>{C!==I.O$["viewed-profile"]&&l((0,eb.Mk)())},[C,l]),(0,ej.Z)({dispatch:l,setShowPersonalization:null,setMasterLoading:null,dashboard:!0}),(0,m.v9)(e=>e.common.allSkills);let[en]=(0,Z.S9o)();(0,m.v9)(e=>e.common.allLocations);let[ed,ec]=(0,d.useState)(!1),[em,eu]=(0,d.useState)([]),[ep,ex]=(0,d.useState)([]),[eh,eA]=(0,d.useState)(void 0),[e_,eB]=(0,d.useState)(void 0),[eD,eI]=(0,d.useState)([]),[eO,ez]=(0,d.useState)([]),eM=d.useMemo(()=>{let e=[];return c.joiningStatus&&("immediate"===c.joiningStatus.value?e.push(Z._6e.ImmediateJoining):"notice"===c.joiningStatus.value?e.push(Z._6e.OnNoticePeriod):"yettoresign"===c.joiningStatus.value&&e.push(Z._6e.YetToResign)),e},[c.joiningStatus]),eR=d.useMemo(()=>c.selectedCities.map(e=>e.label),[c.selectedCities]),eT=d.useMemo(()=>c.selectedSkills.map(e=>e.value),[c.selectedSkills]),eZ=null!==(e=c.minSalary)&&void 0!==e?e:void 0,eF=null!==(t=c.maxSalary)&&void 0!==t?t:void 0,eL=d.useMemo(()=>{var e;let t=null===(e=c.sortBy)||void 0===e?void 0:e.value;return[Z.YVJ.Default,Z.YVJ.HighestPay,Z.YVJ.LowestPay].includes(t)?t:Z.YVJ.Default},[c.sortBy]),{employeeName:eJ,employeeId:e$}=i.query,[eU]=(0,Z.Isf)();(0,d.useMemo)(()=>(0,eg.debounce)(async e=>{if(e.trim().length>0){let{data:t}=await eU({variables:{search:e.trim(),page:0}});(null==t?void 0:t.allSkillsPaginated)&&ez(t.allSkillsPaginated.map(e=>({label:e.skill,value:e.skill})))}else ez([])},300),[eU]),(0,d.useEffect)(()=>{f(null),eJ&&(y(eJ.toString()),j(!0))},[eJ]),(0,d.useEffect)(()=>{let e=async()=>
1{if("non-relevant"===G){var e,t;_(!0);let{data:l,error:a}=await en({fetchPolicy:"network-only",variables:{input:{pageNumber:et,rowsPerPage:Z.n9v.Ten},filter:{searchText:Q,sort:eL,filters:eM,maxSalary:eF,minSalary:eZ,minExperience:null===(e=c.minExperience)||void 0===e?void 0:e.value,maxExperience:null===(t=c.maxExperience)||void 0===t?void 0:t.value,cityFilter:eR,skillsFilter:eT}}});if(void 0!==a)return _(!1),u.Am.error(a.message,{autoClose:2e3,hideProgressBar:!0}),null;if(!l)return _(!1),u.Am.error("Something went wrong!",{autoClose:2e3,hideProgressBar:!0}),null;let r=l.employerViewedCandidates.items,s=l.employerViewedCandidates.total;er(Math.ceil(s/10)),ei(s);let i=r.map(e=>{var t,l,a,r,s,i,o,n,d,c;return{userImage:e.employeeImage.value,industry:null==e?void 0:null===(t=e.employeeIndustry)||void 0===t?void 0:t.value,domain:null==e?void 0:null===(l=e.employeeDomain)||void 0===l?void 0:l.value,expectedPay:e.employeeExpectedPay.value,currentPay:e.employeeCurrentPay.value,firstName:e.firstName,lastName:e.lastName,location:(0,ew.D4)(null===(a=k.find(t=>t._id===e.jobId))||void 0===a?void 0:a.locations,e.employeeLocation).toString(),city:null===(s=e.employeeCity)||void 0===s?void 0:null===(r=s.value)||void 0===r?void 0:r.toString(),qualification:(null==e?void 0:null===(i=e.employeeQualifications)||void 0===i?void 0:i.map(e=>e.value))||[],skills:e.employeeSkills.map(e=>e.value),subDomain:(null==e?void 0:null===(o=e.employeeSubDomain)||void 0===o?void 0:o.map(e=>e.value))||[],score:e.score,employeeId:e.employeeId,shortDescription:null!==(c=null===(n=e.employeeDesc)||void 0===n?void 0:n.value)&&void 0!==c?c:"",relevantExp:e.employeeRelevantExp?{years:e.employeeRelevantExp.years,months:e.employeeRelevantExp.months}:null,workExp:[],fresher:(null===(d=e.employeeRelevantExp)||void 0===d?void 0:d.years)==="0"&&"0"===e.employeeRelevantExp.months,joiningStatus:e.joiningStatus,noticeDays:e.noticeDays,lastWorkingDate:e.lastWorkingDate,mobileNumber:e.mobileNumber,resume:"",profileHeadline:e.profileHeadline,aiSummary:e.aiSummary,education:e.employeeEducation}});M(i),T(i),_(!1)}};C===I.O$["viewed-profile"]&&(null==E?void 0:E.type)==="employer"&&e()},[l,S,eL,p,P,C,k,Q,G,et,en,E,eM,eR,eT,eZ,eF,c.minExperience,c.maxExperience]);let eG=(0,d.useMemo)(()=>(0,eg.debounce)(e=>{el(0),ee(e.trim())},400),[]),eq=e=>{eG(e)};(0,d.useEffect)(()=>()=>{eG.cancel()},[eG]);let eH=()=>{if(c.minSalary&&c.minSalary<12e4){u.Am.error("Minimum salary filter amount can not be less than 120000",{autoClose:2e3,hideProgressBar:!0});return}el(0),x(e=>e+1),ec(!1)},eV=(0,eg.debounce)(eq,400);(0,d.useEffect)(()=>()=>{eV.cancel()});let eY=e=>{var t;f(e),null===(t=N.current)||void 0===t||t.open()},eW=async e=>{u.Am.success("Candidate removed!",{autoClose:1500,hideProgressBar:!0});let t=[...z].filter(t=>t.employeeId!==e);M(t),T(t)},eX=(0,d.useCallback)(()=>{var e;if(null===F.current){U(!1);return}let t=F.current.clientWidth<F.current.scrollWidth||F.current.clientHeight<F.current.scrollHeight,l=(null!==(e=k.length)&&void 0!==e?e:0)>0;U(t&&l)},[k]);(0,d.useEffect)(()=>{k.length>0&&eX()},[k]),(0,d.useEffect)(()=>{0!==z.length&&ey().uniqBy([...z.map(e=>{var t,l;return{value:null!==(t=e.domain)&&void 0!==t?t:"",label:null!==(l=e.domain)&&void 0!==l?l:""}})],e=>e.value)},[z]),(0,d.useEffect)(()=>{ed&&(eu(eM),ex(eR),eA(eZ),eB(eF),eI(eT))},[ed,eM,eR,eZ,eF,eT]),(0,d.useEffect)(()=>(window.addEventListener("resize",eX),()=>window.removeEventListener("resize",eX)),[eX]),o.current;let eK=async e=>{f(e),V(!0)},eQ=async()=>{try{_(!0),u.Am.error("This feature is temporarily unavailable",{autoClose:2e3,hideProgressBar:!0}),_(!1),K(!1);return}catch(e){_(!1),K(!1),f(void 0),u.Am.error(e.toString().split(": ")[1],{autoClose:2e3,hideProgressBar:!0})}};return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"flex flex-col  pt-6 pb-4 w-full h-full flex-1 ",children:[(0,a.jsx)(D.default,{loading:A}),(0,a.jsx)(s.Z,{show:X,close:()=>{},size:"w-11/12 xl:w-1/3",children:(0,a.jsxs)("div",{className:"w-full flex flex-col justify-center items-center",children:[(0,a.jsx)("p",{className:"text-sm w-full text-ju
1stify text-gray-500 font-normal pt-6 px-4 whitespace-pre-line",style:{textAlignLast:"center"},children:"A notification will be sent to the candidate about your interest in their profile along with your company details. Please click continue to proceed."}),(0,a.jsxs)("div",{className:"flex flex-row justify-end gap-2 w-full p-4",children:[(0,a.jsx)("button",{type:"submit",className:"w-24 text-xs bg-white p-2 text-primary border border-primary grid place-items-center rounded-full cursor-pointer",onClick:()=>{K(!1)},children:"Cancel"}),(0,a.jsx)("button",{type:"submit",className:"w-24 text-xs bg-primary p-2 text-white grid place-items-center rounded-full cursor-pointer",onClick:()=>{eQ()},children:"Yes, Proceed"})]})]})}),(0,a.jsx)(s.Z,{show:B,close:()=>{},size:"w-11/12 xl:w-[25%]",children:(0,a.jsxs)("div",{className:"w-full flex flex-col justify-center items-center",children:[(0,a.jsx)("p",{className:"text-sm w-full text-justify text-gray-500 font-normal pt-6 px-4 whitespace-pre-line",style:{textAlignLast:"center"},children:"Are you sure you want to mark the candidate as not interested, this action is not reversible"}),(0,a.jsxs)("div",{className:"flex flex-row justify-end gap-2 w-full p-4",children:[(0,a.jsx)("button",{type:"submit",className:"w-24 text-xs bg-white p-2 text-primary border border-primary grid place-items-center rounded-full cursor-pointer",onClick:()=>{f(void 0),O(!1)},children:"Cancel"}),(0,a.jsx)("button",{type:"submit",className:"w-24 text-xs bg-primary p-2 text-white grid place-items-center rounded-full cursor-pointer",onClick:()=>{if(O(!1),h){var e;eW(null!==(e=h.employeeId)&&void 0!==e?e:"")}},children:"Yes, Proceed"})]})]})}),(0,a.jsx)(s.Z,{show:H,close:()=>{},size:"w-11/12 xl:w-1/3",children:(0,a.jsxs)("div",{className:"w-full flex flex-col justify-center items-center",children:[(0,a.jsx)("p",{className:"text-sm w-full text-justify text-gray-500 font-normal px-4 pt-6 lg:whitespace-pre-line",style:{textAlignLast:"center"},children:"To show interest in the candidate you must have a job posting matching the candidate.\nDo you want to proceed with a new job posting?"}),(0,a.jsxs)("div",{className:"flex flex-row justify-end gap-2 w-full p-4",children:[(0,a.jsx)("button",{type:"submit",className:"w-24 text-xs bg-white p-2 text-primary border border-primary grid place-items-center rounded-full cursor-pointer",onClick:()=>{V(!1)},children:"Cancel"}),(0,a.jsx)("button",{type:"submit",className:"w-24 text-xs bg-primary p-2 text-white grid place-items-center rounded-full cursor-pointer",onClick:()=>{var e;let t=document.querySelector("#new_job_btn");V(!1),t.click(),localStorage.setItem("other_candidate_empl_id",null!==(e=null==h?void 0:h.employeeId)&&void 0!==e?e:""),localStorage.setItem("other_candidate_empl_dets",JSON.stringify(null!=h?h:""))},children:"Yes, Proceed"})]})]})}),(0,a.jsx)(ek.Z,{searchHandler:eq,type:"employer",searchText:"Search for candidate"}),(0,a.jsxs)("div",{className:"flex flex-col md:flex-row items-start justify-between md:items-center w-full lg:w-[75%] pt-1",children:[(0,a.jsx)("div",{className:"flex-shrink-0 flex flex-col justify-center items-start",children:(0,a.jsx)(eC.Z,{title:"Candidate Profiles ".concat(es>0?"(".concat(es,")"):"")})}),es>0&&(0,a.jsx)(ef.Z,{currentPage:et,onPageChange:e=>{el(e),o.current&&o.current.scrollTo({top:0,behavior:"smooth"})},isOnTop:!0,totalPages:ea})]}),(0,a.jsxs)("div",{className:"flex items-start w-full h-full pb-14 gap-1",children:[(0,a.jsxs)("div",{ref:o,className:"overflow-y-auto h-full pb-6 px-6 xl:px-2 xl:pl-12 w-full lg:w-[calc(100%-300px)] xl:w-[calc(100%-390px)] flex-shrink-0 hideScrollbar ".concat(""," "),children:[(0,eg.uniqBy)(R,e=>e.mobileNumber).length>0?(0,a.jsx)("div",{className:"w-full relative ",children:(0,eg.uniqBy)(R,e=>e.mobileNumber).map((e,t)=>(0,a.jsx)("div",{className:"employee-card","data-employee-id":e.employeeId,"data-employee-name":e.firstName+" "+e.lastName,children:(0,a.jsx)(eE.Z,{data:{...e},readMoreHandler:eY,other:"non-relevant"===G,otherInterestHandler:eK,showInterestBtn:!1})},t))}):(0,a.jsx)("div",{className:"w-full xl:w-4/5",children:(0,a.jsx)(eN.Z,{message:eM.length>0||void 0!=eF||void 0!=eZ||eR.length>0||eT.length>
10?"No results found!\n Please try broadening your filters to see more candidates.":"All crunched up nothing to show,\nkeep a tab on your email for further updates"})}),(0,a.jsx)("br",{})]}),(0,a.jsx)("div",{className:"w-full lg:w-[25%] xl:w-[380px] flex flex-col flex-shrink-0 mb-6 px-4 h-[calc(100vh-120px)]",children:(0,a.jsxs)("div",{className:"space-y-5 h-full overflow-hidden",children:[(0,a.jsx)("div",{className:"hidden lg:block lg:sticky lg:top-4 h-full",children:(0,a.jsx)("div",{className:"bg-white rounded-xl border border-gray-200 overflow-hidden h-[calc(100vh-160px)] min-h-[50vh]",children:(0,a.jsx)(eP.default,{visibleSections:["sorting","location","experience","salary","joiningStatus","skills"],onSearch:eH,showMobileButton:!1,showLastWorkingDate:!1,showNoticePeriod:!1,showRelocationToggle:!1,sortOptions:[{value:Z.YVJ.Default,label:"Default"},{value:Z.YVJ.HighestPay,label:"Highest Pay"},{value:Z.YVJ.LowestPay,label:"Lowest Pay"}],showSortOrder:!1})})}),(0,a.jsx)("div",{className:"lg:hidden",children:(0,a.jsx)(eP.default,{visibleSections:["sorting","location","experience","salary","joiningStatus","skills"],onSearch:eH,showMobileButton:!0,showLastWorkingDate:!1,showNoticePeriod:!1,showRelocationToggle:!1,sortOptions:[{value:Z.YVJ.Default,label:"Default"},{value:Z.YVJ.HighestPay,label:"Highest Pay"},{value:Z.YVJ.LowestPay,label:"Lowest Pay"}],showSortOrder:!1})})]})}),(0,a.jsx)(eS.Z,{bottomSheetRef:N,employeeId:(null==h?void 0:h.employeeId)?null==h?void 0:h.employeeId:v,showCta:!0,onEmployeeDataUpdate:(e,t)=>{M(l=>l.map(l=>l.employeeId===e?{...l,firstName:t.employeeName.split(" ")[0],lastName:t.employeeName.split(" ")[1],mobileNumber:t.mobileNumber}:l)),T(l=>l.map(l=>l.employeeId===e?{...l,firstName:t.employeeName.split(" ")[0],lastName:t.employeeName.split(" ")[1],mobileNumber:t.mobileNumber}:l))},setEmployeeId:()=>{f(void 0),b(null),(e$||eJ)&&i.replace("/dashboard?page=explore")}}),(0,a.jsx)(s.Z,{show:w,close:()=>{j(!1);let{employeeName:e,employeeId:t,setPage:l,...a}=i.query;i.replace({pathname:i.pathname,query:a},void 0,{shallow:!0})},size:"w-1/3",children:(0,a.jsxs)("div",{className:"w-full flex flex-col items-center relative p-8",children:[(0,a.jsx)("button",{onClick:()=>{j(!1);let{employeeName:e,employeeId:t,setPage:l,...a}=i.query;i.replace({pathname:i.pathname,query:a},void 0,{shallow:!0})},className:"absolute top-4 right-2 px-3 py-1 rounded-lg hover:bg-gray-100 transition-colors duration-200",children:(0,a.jsx)($.G,{icon:J.NBC,className:"text-gray-500 hover:text-gray-700",size:"sm"})}),(0,a.jsx)("div",{className:"w-16 h-16 rounded-full bg-amber-100 flex items-center justify-center mb-6",children:(0,a.jsx)(ev.Z,{className:"w-8 h-8 text-amber-600"})}),(0,a.jsx)("h3",{className:"text-2xl font-semibold text-gray-900 mb-3",children:"Please confirm"}),(0,a.jsx)("p",{className:"text-gray-600 text-center mb-8 max-w-md",children:"Are you sure you want to view ".concat(g,"'s profile using 1 premium credit?")}),(0,a.jsxs)("div",{className:"flex flex-row justify-end gap-3 w-full",children:[(0,a.jsx)(r.Z,{outline:!0,outlineColor:"border-primary",buttonBg:"transparent",onClick:()=>{var e;null===(e=N.current)||void 0===e||e.close(),j(!1);let{employeeName:t,employeeId:l,setPage:a,...r}=i.query;f(null),y(null),i.replace({pathname:i.pathname,query:r},void 0,{shallow:!0})},text:"Cancel",textColor:"primary"}),(0,a.jsx)(r.Z,{outline:!1,buttonBg:"transparent",onClick:()=>{var e;j(!1),b(null!==(e=e$.toString())&&void 0!==e?e:""),N.current.open()},text:"Confirm",textColor:"white",gradient:"bg-gradient-to-r from-purpleLight to-purpleDark"})]})]})})]})]})})},e_=l(55296),eB=l(18251),eD=l(12365),eI=l(93024),eO=l(9008),ez=l.n(eO),eM=l(89755),eR=l.n(eM),eT=l(41664),eZ=l.n(eT);let eF=o()(()=>Promise.all([l.e(7536),l.e(2528)]).then(l.bind(l,32528)),{loadableGenerated:{webpack:()=>[32528]}}),eL=o()(()=>Promise.all([l.e(3897),l.e(1252),l.e(1173)]).then(l.bind(l,31173)),{loadableGenerated:{webpack:()=>[31173]}}),eJ=o()(()=>l.e(1372).then(l.bind(l,11372)),{loadableGenerated:{webpack:()=>[11372]}}),e$=o()(()=>Promise.all([l.e(3897),l.e(3467),l.e(4284)]).then(l.bind(l,44284)),{loadableGenerated:{webpack:()=>[44284]}}),eU=o()(()=>Promise.all([l.e(3392),l.e(1255),l.e(673),l.e(9543),l.e(4623),l.e(9086),l.e(7725)]).then(l.bind(l,7725)),{loadableGenerated:{webpack:()=>[7725]}}),eG=o()(()=>Promise.all([l.e(3392),l.e(673),l.e(2548),l.e(2104)]).then(l.bind(l,72104)),{loadableGenerated:{webpack:()=>[72104]}}),eq=o()(()=>l.e(1497).then(l.bind(l,41497)),{loadableGenerated:{webpack:()=>[41497]}}),eH=o()(()=>l.e(4125).then(l.bind(l,64125)),{loadableGenerated:{webpack:()=>[64125]}}),eV=o()(()=>Promise.all([l.e(2012),l.e(8331)]).then(l.bind(l,8331)),{loadableGenerated:{webpack:()=>[8331]}}),eY=o()(()=>Promise.resolve().then(l.bind(l,18966)),{loadableGenerated:{webpack:()=>[18966]}}),eW=o()(()=>Promise.all([l.e(7767),l.e(9033)]).then(l.bind(l,99033)),{loadableGenerated:{webpack:()=>[99033]}}),eX=o()(()=>Promise.all([l.e(2012),l.e(6585)]).then(l.bind(l,76585)),{loadableGenerated:{webpack:()=>[76585]}}),eK=o()(()=>Promise.all([l.e(3897),l.e(1252),l.e(2729)]).then(l.bind(l,32729)),{loadableGenerated:{webpack:()=>[32729]}}),eQ=(e,t,l)=>{[e[t],e[l]]=[e[l],e[t]]};var e0=!0,e1=()=>{let e=(0,n.useRouter)(),{page:t}=e.query,[l,r]=(0,d.useState)(!1),[s,i]=(0,d.useState)([]),[o]=(0,Z.csg)(),[c]=(0,Z.idL)(),[p]=(0,Z.p_1)(),[x]=(0,Z.nYu)(),[f]=(0,Z.HNe)(),[g]=(0,Z.X9I)(),y=(0,m.I0)(),v=(0,m.v9)(e=>e.dashboard.dashboardUser);(0,d.useEffect)(()=>{let e=async()=>{try{let{data:e}=await g({fetchPolicy:"network-only"});e.allCreditPlan&&y((0,I.QU)(e.allCreditPlan))}catch(e){console.log("Error fetch active live jobs")}};v&&v.type===Z.i44.Employer&&e()},[v]),(0,d.useEffect)(()=>{let e=async()=>{var e,t;r(!0);let l=(0,eB.in)();await l.resetStore();let{data:a,error:s}=await c({fetchPolicy:"network-only"});if(void 0!==s)return r(!1),u.Am.error(s.message,{autoClose:2e3,hideProgressBar:!0}),null;if(void 0===a)return r(!1),u.Am.error("Something went wrong!",{autoClose:2e3,hideProgressBar:!0}),null;let i=a.getEmployee,o={_id:i._id,image:i.image,firstName:i.firstName,lastName:i.lastName,email:i.email,shortDe
1scription:i.shortDescription,radius:i.radius,location:i.location,city:i.city,qualifications:i.qualifications?i.qualifications.map(e=>({_id:e._id,value:e.value})):[],industry:i.industry,domain:i.domain,subDomain:i.subDomain,skills:i.skills,suggestions:i.suggestions,workExp:i.workExp,totalExp:i.totalExp,relevantExp:i.relevantExp,currentPay:i.currentPay,expectedPay:i.expectedPay,linkedIn:i.linkedIn,resume:i.resume,gender:i.gender,currentAddress:i.currentAddress,dob:i.dob,nationality:i.nationality,panCard:i.panCard,aadharCard:i.aadharCard,fresher:(null===(e=i.relevantExp)||void 0===e?void 0:e.years)==="0"&&(null===(t=i.relevantExp)||void 0===t?void 0:t.months)==="0",joiningStatus:a.getEmployee.joiningStatus,lastWorkingDate:a.getEmployee.lastWorkingDate,noticeDays:a.getEmployee.noticeDays,relocate:i.relocate,profileScore:i.profileScore,nonRelevantCredits:i.nonRelevantCredits,usedNonRelevantCredits:i.usedNonRelevantCredits,hasTopSkill:a.getEmployee.hasTopSkill,profileHeadline:a.getEmployee.profileHeadline,certificates:a.getEmployee.certificates,isResumeSkip:a.getEmployee.resumeSkipped,languages:a.getEmployee.languages,qualification:a.getEmployee.education,workExperience:a.getEmployee.workExperience};y((0,I.CP)(o)),r(!1)},t=async()=>{var e,t;r(!0),(0,eB.in)(),y((0,h.hy)(!0));let{data:l,error:a}=await o({fetchPolicy:"network-only"});if(void 0!==a)return u.Am.error(a.message,{autoClose:2e3,hideProgressBar:!0}),r(!1),null;if(!l)return u.Am.error("Something went wrong!",{autoClose:2e3,hideProgressBar:!0}),r(!1),null;let s={_id:l.getEmployer._id,companyName:null!==(t=l.getEmployer.companyName)&&void 0!==t?t:localStorage.getItem("companyName"),companyDesc:l.getEmployer.companyDesc,companyWebsite:l.getEmployer.companyWebsite,companyImage:l.getEmployer.image,companyLetterHead:l.getEmployer.companyLetterHead,employerVerifyStatus:l.getEmployer.employerVerifyStatus,employerVerified:l.getEmployer.employerVerified,linkedIn:l.getEmployer.linkedIn,gstNo:l.getEmployer.gstNo,panNo:l.getEmployer.panNo,registeredAddress:l.getEmployer.registeredAddress,currentAddress:l.getEmployer.currentAddress,noOfLocations:l.getEmployer.noOfLocations,landline:l.getEmployer.landline,noOfEmployees:l.getEmployer.noOfEmployees,lastTurnover:l.getEmployer.lastTurnover,noOfHiring:l.getEmployer.noOfHiring,attritionRate:l.getEmployer.attritionRate,benefits:null===(e=l.getEmployer.benefits)||void 0===e?void 0:e.map(e=>({_id:e._id,value:e.value})),companyType:l.getEmployer.companyType,creditConfig:l.getEmployer.creditsConfig},{data:i,error:n}=await x({fetchPolicy:"network-only"});return void 0!==n?(u.Am.error(n.message,{autoClose:2e3,hideProgressBar:!0}),r(!1),null):i?void(y((0,I.R1)(i.getEmployerAllActiveJobNames.map(e=>({_id:e._id,name:e.name,locations:e.locations})))),y((0,I.AJ)(s)),r(!1)):(u.Am.error("Something went wrong!",{autoClose:2e3,hideProgressBar:!0}),r(!1),null)};if(v){if((0,eD.ng)({id:v._id.toString(),email:v.email,name:"".concat(v.firstName," ").concat(v.lastName),number:v.number,type:v.type===Z.i44.Employee?"employee":"employer"}),v.type===Z.i44.Employee){e();return}if(v.type===Z.i44.Employer&&v.userStatus===Z.J0j.Subscribed){t();return}}},[o,c,x,y,null==v?void 0:v.userStatus]),(0,d.useEffect)(()=>{("my-interests"===t||"referrals"===t)&&(y((0,I.D4)(I.O$.explore)),e.replace("/dashboard?page=explore"))},[t,e,y]),(0,d.useEffect)(()=>{([I.O$.perks,I.O$.profile,I.O$.settings].includes(t)||(null==v?void 0:v.platformStatus)!==Z.wsY.Delisted)&&y((0,I.D4)(t))},[y,t]),(0,d.useEffect)(()=>{let e=async()=>{r(!0);let{data:e,error:t}=await f();if(void 0!==t)return r(!1),u.Am.error(t.message,{autoClose:2e3,hideProgressBar:!0}),null;if(void 0===e)return r(!1),u.Am.error("Something went wrong!",{autoClose:2e3,hideProgressBar:!0}),null;let l=e.getMyNotifications.map(e=>({_id:e._id,content:e.content,date:e.createdAtDate,triggerType:e.triggerType}));y((0,e_.xN)(l)),r(!1)};(null==v?void 0:v.userStatus)===Z.J0j.Subscribed&&e()},[y,f,v]);let{data:b,loading:w,error:j}=(0,Z.NFl)();return(0,d.useEffect)(()=>{(null==b?void 0:b.subscribeNotification)&&(null==v?void 0:v.userStatus)===Z.J0j.Subscribed&&!j&&(y((0,e_.q$)({_id:b.subscribeNotification._id,content:b.subscribeNotification.content,date:b.subscribeNotification.createdAtDate,triggerType:b.subscribeNotification.triggerType})),y((0,e_.wN)({_id:b.subscribeNotification._id,content:b.subscribeNotification.content,date:b.subscribeNotification.createdAtDate,triggerType:b.subscribeNotification.triggerType})))},[b,j,v]),(0,S.L)((null==v?void 0:v.type)==="employee"&&s.length>0),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(ez(),{children:(0,a.jsx)("title",{children:"InRadius - Home"})}),(0,a.jsxs)(eh,{children:[(null==v?void 0:v.type)==="employee"&&s.length>0?(0,a.jsx)("div",{className:"bg-black bg-opacity-80 fixed top-0 left-0 right-0 bottom-0 w-full h-full z-50 grid place-items-center",children:(0,a.jsxs)("div",{className:"flex flex-col justify-center items-center w-11/12 lg:w-[30%] px-2",children:[(0,a.jsx)("p",{className:"text-xl lg:text-2xl text-white",children:"Companies Interested In Me"}),(0,a.jsx)("p",{className:"text-xs lg:text-sm text-white/60 text-center mt-1",children:"Swipe to explore companies. Click 'Interested' to share your details with them."}),(0,a.jsx)("div",{className:"w-full h-[320px] relative mt-8",children:s.map((e,t)=>{var l,r,o,n;let d=0===t;return(0,a.jsx)(C.E.div,{className:"".concat(d?"cursor-grab":"cursor-auto"," ").concat(0!==t?"backdrop-blur-md bg-white/80 ":"backdrop-blur-sm bg-white/90"," shadow-dashboardCards w-full rounded-lg absolute left-0 right-0 top-0 bottom-0 p-4"),style:{transformOrigin:"top center"},animate:{top:-15*t,scale:1-.1*t,zIndex:s.length-t},drag:!!d&&"x",dragConstraints:{top:0,left:0,right:0,bottom:0},onDragEnd:()=>{i(e=>{let l=[...e];return eQ(l,t,l.length-1),l})},children:(0,a.jsx)("div",{className:"p-1 flex flex-col justify-between h-full",children:(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"flex flex-row gap-2 mb-2",children:[(0,a.jsx)("div",{className:"bg-white rounded-xl place-items-center border hidden xl:grid p-1",children:(0,a.jsx)(eR(),{src:null!==(l=e.companyImage)&&void 0!==l?l:"",alt:null!==(r=e.companyName)&&void 0!==r?r:"",className:"object-contain rounded-xl object-center",width:60,height:60})}),(0,a.jsx)("div",{className:"bg-white rounded-xl border flex xl:hidden justify-start items-start mr-auto p-1",children:(0,a.jsx)(eR(),{src:null!==(o=e.companyImage)&&void 0!==o?o:"",alt:null!==(n=e.companyName)&&void 0!==n?n:"",className:"object-contain w-40 h-40 rounded-xl object-center",width:60,height:60})}),(0,a.jsx)("div",{className:"flex-1 flex flex-col justify-center items-start",children:(0,a.jsx)("p",{className:"text-base xl:text-lg font-medium",children:e.companyName})})]}),(0,a.jsxs)(eZ(),{prefetch:!1,target:"_blank",rel:"noopener noreferrer",href:e.companyWebsite,className:"font-normal md:font-medium py-2 flex flex-row justify-start items-center text-xs lg:text-sm text-clip break-all hover:text-primary w-max",children:[(0,a.jsx)($.G,{icon:J.g4A,size:"lg",className:"text-gray-500 h-3.5 w-3.5 mr-2"}),(0,a.jsx)("span",{className:"line-clamp-2",children:e.companyWebsite})]}),(0,a.jsxs)("p",{className:"font-normal md:font-medium  py-2 flex flex-row justify-start items-center text-xs lg:text-sm",children:[(0,a.jsx)($.G,{icon:J.opg,size:"lg",className:"text-gray-500 h-3.5 w-3.5 mr-2"}),(0,a.jsx)("span",{className:"line-clamp-3",children:e.companyLocations})]}),(0,a.jsxs)(eZ(),{prefetch:!1,target:"_blank",rel:"noopener noreferrer",href:e.companyLinkedin,className:"font-normal md:font-medium pt-2 flex flex-row justify-start items-center text-xs lg:text-sm text-clip break-all hover:text-primary",children:[(0,a.jsx)($.G,{icon:eI.D9H,size:"lg",className:"text-gray-500 h-3.5 w-3.5 mr-2"}),(0,a.jsx)("span",{className:"line-clamp-2",children:e.companyLinkedin})]})]})})},"".concat(t))})})]})}):null,(0,a.jsx)(eY,{loading:l}),!l&&(0,a.jsxs)(a.Fragment,{children:[t&&t===I.O$.explore&&(0,a.jsx)(a.Fragment,{children:(null==v?void 0:v.type)===Z.i44.Employee?(0,a.jsx)(eL,{}):(0,a.jsx)(eJ,{})}),t&&t===I.O$.jobs&&(0,a.jsx)(e$,{}),t&&t===I.O$.profile&&(0,a.jsx)(a.Fragment,{children:(null==v?void 0:v.type)===Z.i44.Employee?(0,a.jsx)(eU,{}):(0,a.jsx)(eG,{})}),t&&t===I.O$.settings&&(0,a.jsx)(a.Fragment,{children:(null==v?void 0:v.type)===Z.i44.Employee?(0,a.jsx)(eq,{}):(0,a.jsx)(eH,{})}),t&&t===I.O$.subscription&&(0,a.jsx)(a.Fragment,{children:(null==v?void 0:v.type)===Z.i44.Employer&&(0,a.jsx)(eV,{})}),t&&t===I.O$.teams&&(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(eF,{})}),t&&t===I.O$.blogs&&(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(eW,{})}),t&&t===I.O$["advanced-search"]&&(0,a.jsx)(eX,{}),t&&t===I.O$["viewed-profile"]&&(0,a.jsx)(a.Fragment,{children:(null==v?void 0:v.type)===Z.i44.Employer&&(0,a.jsx)(eA,{})}),t&&t===I.O$["my-applications"]&&(0,a.jsx)(a.Fragment,{children:(null==v?void 0:v.type)===Z.i44.Employee&&(0,a.jsx)(eK,{})})]})]})]})}},85409:function(e,t,l){"use strict";l.d(t,{Ag:function(){return d},Eh:function(){return n},Ow:function(){return o}});var a=l(43985),r=l(95340),s=l(62846),i=l(48764).lW;function o(e){if(e)return function(e,t,l){let a=function(e,t,l){let a,r,s,i;let o=String.fromCharCode(120,1),n=[],d=String.fromCharCode(137,80,78,71,13,10,26,10);for(a=0;a<256;a++){for(s=0,r=a;s<8;s++)1&r?r=3988292384^r>>>1:r>>>=1;n[a]=r}function c(e){return String.fromCharCode((4278190080&e)>>>24,(16711680&e)>>>16,(65280&e)>>>8,255&e)}function m(e,t,l){let a=4294967295^function(e,t){let l=4294967295;for(let e=0;e<t.length;e++)l=n[(l^t.charCodeAt(e))&255]^l>>>8;return l}(0,t+l);return c(e)+t+l+c(a)}let u=m(0,"IEND",""),p=m(13,"IHDR",c(32)+c(32)+"\b\x06\0\0\0"),x="";for(let t=0;t<l.length;t+=4*e){if(i="\0",Array.isArray(l))for(let a=0;a<4*e;a++)i+=String.fromCharCode(255&l[t+a]);else i+=l.substr(t,4*e);x+=i}let h=o+function(e){let t,l;let a="";for(let r=0;r<e.length;r+=65535)t=e.length-r,l="",t<=65535?l="\x01":(t=65535,l="\0"),a+=l+String.fromCharCode(255&t,(65280&t)>>>8)+String.fromCharCode(255&~t,(65280&~t)>>>8)+e.substring(r,r+t);return a}(x)+c(function(e){let t=1,l=0;for(let a=0;a<e.length;a++)l=(l+(t=(t+e.charCodeAt(a))%65521))%65521;return l<<16|t}(x));return d+p+m(h.length,"IDAT",h)+u}(32,32,[...e].map(e=>String.fromCharCode(e)).join(""));return"data:image/png;base64,"+(void 0!==i?i.from(function(e){let t=new Uint8Array(e.length);for(let l=0;l<e.length;l++)t[l]=e.charCodeAt(l);return t}(a)).toString("base64"):btoa(a))}((0,a.Jx)(e,32,32),0,0)}let n=e=>{if(!e)return 0;let t=0,l=!1;for(let a of e)a.trim()?l||(t++,l=!0):l=!1;return Math.ceil(t/160)},d=(0,r.Z)({limit:2,interval:2e3})(async function(){for(var e=arguments.length,t=Array(e),l=0;l<e;l++)t[l]=arguments[l];let[a,r]=t;return await s.Z.request(a)})}},function(e){e.O(0,[4976,7948,3662,4885,3365,887,2822,9603,1664,798,8159,9755,2586,6192,6908,3157,6450,6202,8965,8764,9238,9669,307,4413,8814,9550,5420,5040,8074,4875,8168,1009,7140,1411,553,9724,9753,4805,2888,9774,179],function(){return e(e.s=26117)}),_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.