PageSourceSearch

https://gaurang.page/_next/static/chunks/pages/jobs/recommended-aaf73b578322651d.js

js gaurang.page collected 2026-09-25 21:33:12 UTC 6,531 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4380],{19140:(e,t,l)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/jobs/recommended",function(){return l(69976)}])},45537:(e,t,l)=>{"use strict";l.d(t,{A:()=>i});var s=l(37876),r=l(48230),n=l.n(r),a=l(83872),o=l(21639);let i={Wrapper:e=>{let{children:t,className:l="justify-between"}=e;return(0,s.jsx)("div",{className:"flex items-center p-4 sm:p-6 absolute bottom-20 lg:bottom-0 w-full mx-auto  ".concat(l),children:t})},PrevStepButton:e=>{let{as:t=n(),path:l,disabled:r=!1,circular:i=!1,...u}=e;return(0,s.jsxs)(o.Ay.Carbon,{"aria-label":"Previous page",as:r?"button":t,href:l,className:"flex items-center gap-1 ".concat(r?"":"group"),disabled:r,circular:i,...u,children:[(0,s.jsx)("span",{className:"-rotate-90 group-hover:-translate-x-0.5 transition-all -ml-2",children:(0,s.jsx)(a.ChevronUpIcon,{size:16})}),(0,s.jsx)("span",{className:"".concat(i?"hidden":"flex"),children:"Prev"})]})},NextStepButton:e=>{let{as:t=n(),path:l,disabled:r=!1,circular:i=!1,...u}=e;return(0,s.jsxs)(o.Ay.Carbon,{"aria-label":"Next page",as:r?"button":t,href:l,className:"flex items-center gap-1 ".concat(r?"":"group"),disabled:r,circular:i,...u,children:[(0,s.jsx)("span",{className:"".concat(i?"hidden":"flex"),children:"Next"}),(0,s.jsx)("span",{className:"rotate-90 group-hover:translate-x-0.5 transition-all -mr-2",children:(0,s.jsx)(a.ChevronUpIcon,{size:16})})]})},MorePages:()=>(0,s.jsx)("span",{className:"flex items-center justify-center h-8 w-8 text-xs font-semibold",children:"..."}),PageButton:e=>{let{page:t,isActive:l,onClick:r,...n}=e;return(0,s.jsx)("button",{type:"button",className:"flex items-center justify-center h-8 w-8 rounded-xl text-xs font-semibold ".concat(l?"bg-gray-900 hover:bg-gray-800 text-gray-00":"hover:bg-gray-50"),onClick:r,...n,children:t})}}},60967:(e,t,l)=>{"use strict";l.d(t,{A:()=>n});var s=l(37876),r=l(45537);let n=e=>{let{prevBtnPath:t,nextBtnPath:l,prevBtnDisabled:n,nextBtnDisabled:a,nextOnClick:o=()=>{},prevOnClick:i=()=>{}}=e;return(0,s.jsxs)(r.A.Wrapper,{children:[(0,s.jsx)(r.A.PrevStepButton,{path:t,disabled:n,onClick:i}),(0,s.jsx)(r.A.NextStepButton,{path:l,disabled:a,onClick:o})]})}},62572:(e,t,l)=>{"use strict";l.d(t,{A:()=>a});var s=l(37876),r=l(58385),n=l(89311);let a=()=>(0,s.jsxs)("div",{className:"w-full flex flex-col justify-center items-center text-center p-6 my-20",children:[(0,s.jsx)(r.A.EmptyJobsPage,{}),(0,s.jsx)(n.default.SemiBoldText,{sm:!0,className:"mt-4 mb-1",children:"We couldn't find jobs matching your criteria."}),(0,s.jsx)(n.default.MutedText,{xs:!0,children:"May be try with different job filters."})]})},69976:(e,t,l)=>{"use strict";l.r(t),l.d(t,{default:()=>y});var s=l(37876),r=l(14232),n=l(89099),a=l(2171),o=l(63819),i=l(30511),u=l(16495),c=l(58385),d=l(89311),b=l(60967),x=l(21639),p=l(83872),m=l(34321),h=l(47553),j=l(37591),f=l(62572);let v=e=>{let{page:t,query:l}=e;return(0,o.getPageURLWithPageNumber)({pageNo:t,query:l,pageURL:u.APP_PATHS.recommendedJobs})},g=e=>{let{title:t,subtext:l,buttonText:r}=e,a=(0,n.useRouter)();return(0,s.jsxs)("div",{className:"w-full flex flex-col justify-center items-center text-center sm:px-32 p-10 my-20",children:[(0,s.jsx)(c.A.EmptyJobsPage,{}),(0,s.jsx)(d.default.SemiBoldText,{sm:!0,className:"mt-4 mb-1",children:t}),(0,s.jsx)(d.default.MutedText,{xs:!0,children:l}),(0,s.jsx)(x.Ay.Primary,{onClick:()=>a.push(u.APP_PATHS.jobPreferenceSettings),small:!0,className:"mt-6",iconRight:(0,s.jsx)(p.ArrowRightIcon,{size:14}),children:r})]})},y=(0,h.A)(()=>{var e,t,l,o,c;let d=(0,n.useRouter)(),{primaryUserData:x}=(0,a.useSelector)(e=>e.PrimaryUserData),[p,h]=(0,r.useState)({}),[y,P]=(0,r.useState)({}),[S,N]=(0,r.useState)(!0),[A,_]=(0,r.useState)(!1),E=async e=>{try{var t,l,s;N(!0);let r=e?await m.vS.getRecommendedJobs("?page=".concat(e)):await m.vS.getRecommendedJobs();(null==r||null==(s=r.data)||null==(l=s.data)||null==(t=l.jobs)?void 0:t.length)&&h(r.data.data)}catch(e){_(!0)}finally{N(!1)}},w=parseInt(null==d||null==(e=d.query)?void 0:e.page,10)||1,T=w+1||0,C=w<=1?1:w-1;if((0,r.useEffect)(()=>{var e,t;!(null==p||null==(e=p.jobs)?void 0:e.length)&&[u.JOB_PREFERENCES_CONST.STATUS_OPEN,u.JOB_PREFERENCES_CONST.STATUS_PASSIVE].includes(null==x||null==(t=x.jobPreferences)?void 0:t.status)&&(null==x?void 0:x.published)?E():N(!1)},[null==x||null==(t=x.jobPreferences)?void 0:t.status,null==x?void 0:x.published]),!(null==x?void 0:x.id))return null;let R=(null==y?void 0:y.jobs)&&(null==y||null==(l=y.jobs)?void 0:l.length)?y:p,B=(null==x?void 0:x.id)&&(null==x?void 0:x.published)&&(null==x||null==(o=x.jobPreferences)?void 0:o.status)===u.JOB_PREFERENCES_CONST.STATUS_INACTIVE;return(0,s.jsxs)(i.A,{loading:S,pageHeading:Object.values(d.query).length>0?"Search Results":"All Jobs",setJobsData:P,setApiError:_,setLoading:N,nextUrl:(null==p?void 0:p.page)?v({page:T,query:{...d.query,c:null==p?void 0:p.cursor}}):null,prevUrl:w>1?v({page:C,query:{...d.query,c:null==p?void 0:p.cursor}}):null,fromRecommended:!0,children:[(null==x?void 0:x.id)&&!(null==x?void 0:x.published)?(0,s.jsx)(g,{title:"Find jobs that match your profile!",subtext:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("b",{children:"Set your job preferences"})," and ",(0,s.jsx)("b",{children:"publish your profile"})," to view recommended jobs that match with your skills and experience."]}),buttonText:"Set Job Preferences"}):null,(null==x?void 0:x.id)&&(null==x?void 0:x.published)&&!(null==x?void 0:x.jobPreferences)?(0,s.jsx)(g,{title:"Find jobs that match your profile!",subtext:"Set your job preferences to view recommended jobs that match         with your skills and experience.",buttonText:"Set Job Preferences"}):null,B?(0,s.jsx)(g,{title:'Your job preferences are set as "Not Looking"',subtext:"Jobs are recommended based on your job preferences. Update your         preferences to view personalized jobs.",buttonText:"Update Job Preferences"}):null,A&&!B?(0,s.jsx)(f.A,{}):null,S||!((null==R||null==(c=R.jobs)?void 0:c.length)>0)||A?null:(0,s.jsx)("ul",{children:R.jobs.map(e=>(0,s.jsx)(j.A,{job:e,showApplyWPeerlistBtn:null==e?void 0:e.applyWPeerlist,utm:"?utm_source=recommended-jobs"},"".concat(e.jobId,"-job-item")))}),(0,s.jsx)(b.A,{prevBtnPath:v({page:w<=1?1:w-1,query:{...d.query}}),prevBtnDisabled:w<=1,nextBtnPath:v({page:w+1||0,query:{...d.query}}),nextBtnDisabled:!(null==p?void 0:p.page),nextOnClick:()=>E(T),prevOnClick:()=>E(C)})]})},{redirectUrl:u.APP_PATHS.jobs})}},e=>{e.O(0,[1515,9111,6318,4481,2212,511,636,6593,8792],()=>e(e.s=19140)),_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.