PageSourceSearch

https://avua.com/assets/Index-BHiF_BSZ.js

js avua.com collected 2026-09-24 12:54:53 UTC 6,673 bytes, 2 lines download raw bytes

1import{b as j,h as p,u as b,j as e,bI as c,i as m,a3 as g,hC as v}from"./index-B9q78oLf.js";import{D as y}from"./DashboardHeader-XSpBSNYV.js";import{b as N}from"./index.esm-C6ULobLQ.js";function C(){const h=j(o=>o.auth.token),[r,_]=p.useState([]),[d,x]=p.useState(!1),u=b(),f=async()=>{try{x(!0);const o=await v(h);if(o.msg==="success"){const n={};o?.data?.forEach(s=>{const a=s.criteria,l=s.created_at.split("T")[0];n[l]||(n[l]=[]),n[l].push({job_titles:a.job_titles||[],is_recent_job_title:a.is_recent_job_title||!1,industries:a.industries||[],keywords:a.keywords||[],bool_search_keywords:a.bool_search_keywords||null,skills:a.skills||[],companies:a.companies||[],company_filter:a.company_filter||[],locations:a.locations||[],experience:a.experience||null,availability:a.availability||null,current_salary:a.current_salary||null,last_active_days:a.last_active_days||null,educational_institute:a.educational_institute||null,field_of_study:a.field_of_study||[],qualification_level:a.qualification_level||null,employment_status:a.employment_status||[],job_search_status:a.job_search_status||[],work_mode:a.work_mode||[],is_video:a.is_video||null,countries:typeof a.countries=="string"?a.countries?a.countries.split(","):[]:Array.isArray(a.countries)?a.countries:[],open_to_relocate:a.open_to_relocate||!1,created_at:s.created_at,nationality_ids:a.nationalities||[],jd_data:a.jd_data||null})}),_(Object?.entries(n)??[])}}catch(o){console.log(o,"ERROR")}finally{x(!1)}};return p.useEffect(()=>{f()},[]),e.jsxs("div",{children:[e.jsx("div",{className:"flex",children:e.jsx(y,{employerHeader:!0})}),e.jsxs("div",{className:"bg-[#DED3F3A6] h-[160px] mx-[40px] md:mx-[122px] mt-[40px] rounded-[18px] p-[10px] md:p-[24px] flex flex-row justify-between",children:[e.jsxs("div",{className:"flex flex-col justify-between",children:[e.jsx("h1",{className:"font-poppins font-[500] text-[20px] md:text-[32px] md:leading-[48px] text-[#000000]",children:"Search history"}),e.jsx("h3",{className:"cursor-pointer",onClick:()=>{u("/avua-pool")},children:"Avua Pool"})]}),e.jsxs("div",{className:"flex flex-col justify-between ",children:[e.jsx("div",{}),e.jsx("div",{className:"flex"})]})]}),e.jsxs("div",{className:"mx-[40px] md:mx-[122px] mt-[40px]",children:[r?.map((o,n)=>e.jsxs("div",{className:"",children:[e.jsxs("h1",{className:`text-h5 font-[500] leading-[30px] text-[#231F20] border-b-[1px] border-[#B8B8B899] pb-[10px] ${n!=0?"mt-[30px]":""}`,children:[c().format("YYYY-MM-DD")==c(o?.[0]).format("YYYY-MM-DD")?"Today - ":"",c(o?.[0]).format("dddd, MMM D, YYYY")]}),o?.[1]?.map((s,a)=>e.jsx(e.Fragment,{children:e.jsxs("div",{className:"flex justify-between items-center border-b-[1px] border-[#B8B8B899] pb-[10px]",children:[e.jsxs("div",{className:"flex flex-col mt-[10px] flex-[0.95]",children:[e.jsx("h5",{className:"text-subtitle2 font-poppins font-[500] text-[14px] leading-[22px] text-[#AEAEAE]",children:c(s?.created_at)?.format("HH:mm")}),s?.jd_data&&e.jsxs("div",{className:"flex  justify-start items-center  gap-[3px] mt-[5px]  ",children:[e.jsx(N,{className:"w-[15px] h-[18px] "}),e.jsx("p",{className:"font-poppins font-[400] text-[14px] text-[#2B1845]  leading-[21px] truncate",children:s?.jd_data?.jd_link.replace(/https?:\/\/[^/]+\/jd\/pool-jd\/[^_]+_/,"").replace(/\.pdf$/,"").replace(/_/g," ")})]}),e.jsxs("h5",{className:"text-subtitle2 font-poppins font-[500] text-[14px] leading-[22px] text-[#5C5C5C] mt-[5px] break-words",children:[s?.job_titles?.map((l,i,t)=>e.jsxs("span",{children:[!i&&"+ Job Title: ",`${l}`," ",t[i+1]?"OR":t[t?.length-1]?".":","," "]})),s?.job_titles?.length>=1&&s?.is_recent_job_title==!0?"(Recent)":"",s?.job_titles?.length===0&&(s?.is_recent_job_title==!0?"+ Job Title: Recent ":"+ Job Title: All "),!!s?.bool_search_keywords?.length&&e.jsxs("span",{children:["+ Keywords : ",`${s?.bool_search_keywords}.`," "]}),s.skills.map((l,i,t)=>e.jsxs("span",{children:[!i&&"+ Skills: ",`${l}`," ",t[i+1]?"OR":t[t?.length-1]?".":","," "]})),s.companies.map((l,i,t)=>e.jsxs("span",{children:[!i&&"+ Companies: ",`${l}`," ",t[i+1]?"OR":t[t?.length-1]?".":","," "]})),s?.companies.length>=1&&(s?.company_filter?.is_current===!0?" (Current) ":s?.company_filter?.is_previous===!0?" (Previous) ":""),s?.companies?.length===0&&(s?.company_filter?.is_current===!0?"+ Companies: (Current) ":s?.company_filter?.is_previous===!0?"+ Companies: (Previous) ":""),s.locations.map((l,i,t)=>e.jsxs("span",{children:[!i&&"+ Locations: ",`${l?.city&&l?.state&&l?.country?`${l?.city}, ${l?.state}, ${l?.country}`:l?.state}`," ",t[i+1]?"OR":t[t?.length-1]?".":","," "]})),!!s?.experience&&e.jsxs("span",{children:["+ Experience: ",`${s?.experience?.min} - ${s?.experience?.max} Years .`," "]}),!!s?.availability&&e.jsxs("span",{children:["+ Availability: ",`${s?.availability?.max} Days .`," "]}),!!s?.current_salary&&e.jsxs("span",{children:["+ Current Salary: ",`₹ ${s?.current_salary?.min} - ₹ ${s?.current_salary?.max} .`," "]}),!!s?.educational_institute?.length&&e.jsxs("span",{children:["+ Educational Institute: ",`${s?.educational_institute}.`," "]}),s.field_of_study.map((l,i,t)=>e.jsxs("span",{children:[!i&&"+ Field of Study: ",`${l?.name}`," ",t[i+1]?"OR":t[t?.length-1]?".":","," "]})),!!s?.qualification_level?.length&&e.jsxs("span",{children:["+ Educational Degrees: ",`${s?.qualification_level?.toUpperCase()}.`," "]}),s.employment_status.map((l,i,t)=>e.jsxs("span",{children:[!i&&"+ Employment Status: ",`${l?.toUpperCase()}`," ",t[i+1]?"OR":t[t?.length-1]?".":","," "]})),s.work_mode.map((l,i,t)=>e.jsxs("span",{children:[!i&&"+ Work Mode: ",`${l}`," ",t[i+1]?"OR":t[t?.length-1]?".":","," "]})),s.countries.map((l,i,t)=>e.jsxs("span",{children:[!i&&"+ Countries: ",`${l?.name?.toUpperCase?.()}`," ",t[i+1]?"OR":t[t?.length-1]?".":","," "]})),s.nationality_ids?.map((l,i,t)=>e.jsxs("span",{children:[!i&&(t?.length>1?"+ Nationalities: ":"+ Nationality: "),`${l?.nationality.toUpperCase()}`," ",t[i+1]?"OR":t[t?.length-1]?".":","," "]}))]})]}),e.jsx("div",{onClick:()=>{u("/avua-pool",{state:{data:s}})},className:"border-[1px] px-[30px] py-[10px] rounded-[50px] cursor-pointer mt-[10px] ",children:e.jsx("img",{src:m.avuaPool.poolSearchIcon})})]},a)}))]},n)),d&&e.jsx("div",{className:"flex justify-center",children:e.jsx(g,{height:"80",
1width:"80",color:"#6F3EB2",ariaLabel:"tail-spin-loading",radius:"1"})}),!r?.length&&!d&&e.jsxs("div",{className:"flex flex-col items-center justify-center",children:[e.jsx("img",{src:m.avuaPool.noSearchHistory}),e.jsx("h1",{className:"font-poppins font-[500] text-h5 leading-[30px] mt-[20px]",children:"You Have no search History"})]})]})]})}export{C as default};
2//# sourceMappingURL=Index-BHiF_BSZ.js.map

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.