@scalant/career-hub 3.6.0-alpha.0 → 3.7.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/career-hub.es.js +57 -56
- package/dist/career-hub.umd.js +1 -1
- package/package.json +2 -2
package/dist/career-hub.es.js
CHANGED
|
@@ -50588,72 +50588,73 @@ tg.defaultProps = {
|
|
|
50588
50588
|
className: ""
|
|
50589
50589
|
};
|
|
50590
50590
|
const Zd = (e) => {
|
|
50591
|
-
|
|
50591
|
+
var n, r, o, a, i, l;
|
|
50592
|
+
if (!e || !((n = e.jobs_data) != null && n.data) || !Array.isArray((r = e.jobs_data) == null ? void 0 : r.data))
|
|
50592
50593
|
return [];
|
|
50593
50594
|
const t = {};
|
|
50594
|
-
return e.included && Array.isArray(e.included) && e.included.forEach((
|
|
50595
|
-
|
|
50596
|
-
}), e.data.map((
|
|
50597
|
-
if (
|
|
50595
|
+
return (o = e.jobs_data) != null && o.included && Array.isArray((a = e.jobs_data) == null ? void 0 : a.included) && ((i = e.jobs_data) == null || i.included.forEach((c) => {
|
|
50596
|
+
c.type === "company" && c.attributes && (t[c.id] = c.attributes);
|
|
50597
|
+
})), (l = e.jobs_data) == null ? void 0 : l.data.map((c) => {
|
|
50598
|
+
if (c.type !== "job_profile" || !c.attributes)
|
|
50598
50599
|
return null;
|
|
50599
|
-
const
|
|
50600
|
-
let
|
|
50601
|
-
if (
|
|
50602
|
-
const
|
|
50603
|
-
|
|
50600
|
+
const u = c.attributes, d = c.relationships || {};
|
|
50601
|
+
let f = null;
|
|
50602
|
+
if (d.company && d.company.data) {
|
|
50603
|
+
const p = d.company.data.id;
|
|
50604
|
+
f = t[p] || null;
|
|
50604
50605
|
}
|
|
50605
50606
|
return {
|
|
50606
|
-
id: parseInt(
|
|
50607
|
-
title:
|
|
50608
|
-
name:
|
|
50607
|
+
id: parseInt(c.id, 10),
|
|
50608
|
+
title: u.title || "",
|
|
50609
|
+
name: u.title || "",
|
|
50609
50610
|
// JobCard expects 'name' field
|
|
50610
|
-
slug:
|
|
50611
|
-
jobDesc:
|
|
50612
|
-
jobDescText:
|
|
50613
|
-
minExperience:
|
|
50614
|
-
maxExperience:
|
|
50615
|
-
minCtc:
|
|
50616
|
-
maxCtc:
|
|
50617
|
-
validTill:
|
|
50618
|
-
createdAt:
|
|
50619
|
-
jobType:
|
|
50620
|
-
preferredCities:
|
|
50621
|
-
preferredNoticePeriod:
|
|
50622
|
-
meritBasedSkills:
|
|
50623
|
-
contestSkills:
|
|
50624
|
-
applicationStatus:
|
|
50625
|
-
expiry:
|
|
50626
|
-
applicationId:
|
|
50627
|
-
userCompanyStatus:
|
|
50628
|
-
applicationLastUpdatedAt:
|
|
50629
|
-
jobSource:
|
|
50630
|
-
jobProfileId:
|
|
50631
|
-
jobProfileStatus:
|
|
50632
|
-
datePostedOn:
|
|
50633
|
-
openForDiscussionCtc:
|
|
50634
|
-
appliedOn:
|
|
50635
|
-
seniorityLevel:
|
|
50636
|
-
roleType:
|
|
50637
|
-
duration:
|
|
50638
|
-
stipend:
|
|
50639
|
-
eligibilityCriteria:
|
|
50611
|
+
slug: u.slug || "",
|
|
50612
|
+
jobDesc: u.job_desc || "",
|
|
50613
|
+
jobDescText: u.job_desc_text || "",
|
|
50614
|
+
minExperience: u.min_experience ? parseFloat(u.min_experience) : null,
|
|
50615
|
+
maxExperience: u.max_experience ? parseFloat(u.max_experience) : null,
|
|
50616
|
+
minCtc: u.min_ctc ? parseFloat(u.min_ctc) : null,
|
|
50617
|
+
maxCtc: u.max_ctc ? parseFloat(u.max_ctc) : null,
|
|
50618
|
+
validTill: u.valid_till || null,
|
|
50619
|
+
createdAt: u.created_at || null,
|
|
50620
|
+
jobType: u.job_type || null,
|
|
50621
|
+
preferredCities: u.preferred_cities || "",
|
|
50622
|
+
preferredNoticePeriod: u.preferred_notice_period || null,
|
|
50623
|
+
meritBasedSkills: u.merit_based_skills || [],
|
|
50624
|
+
contestSkills: u.contest_skills || [],
|
|
50625
|
+
applicationStatus: u.application_status || null,
|
|
50626
|
+
expiry: u.expiry || u.valid_till || null,
|
|
50627
|
+
applicationId: u.application_id || null,
|
|
50628
|
+
userCompanyStatus: u.user_company_status || null,
|
|
50629
|
+
applicationLastUpdatedAt: u.application_last_upated_at || null,
|
|
50630
|
+
jobSource: u.job_source || null,
|
|
50631
|
+
jobProfileId: u.job_profile_id || null,
|
|
50632
|
+
jobProfileStatus: u.job_profile_status || "active",
|
|
50633
|
+
datePostedOn: u.date_posted_on || null,
|
|
50634
|
+
openForDiscussionCtc: u.open_for_discussion_ctc || !1,
|
|
50635
|
+
appliedOn: u.applied_on || null,
|
|
50636
|
+
seniorityLevel: u.seniority_level || null,
|
|
50637
|
+
roleType: u.role_type || "full_time",
|
|
50638
|
+
duration: u.duration || null,
|
|
50639
|
+
stipend: u.stipend || null,
|
|
50640
|
+
eligibilityCriteria: u.eligibility_criteria || {
|
|
50640
50641
|
is_eligible: !1,
|
|
50641
50642
|
reasons: []
|
|
50642
50643
|
},
|
|
50643
|
-
exceptionalJob:
|
|
50644
|
-
isRelevant:
|
|
50645
|
-
isInternship:
|
|
50644
|
+
exceptionalJob: u.exceptional_job || !1,
|
|
50645
|
+
isRelevant: u.is_relevant || !1,
|
|
50646
|
+
isInternship: u.role_type === "internship",
|
|
50646
50647
|
// Company information
|
|
50647
|
-
company:
|
|
50648
|
-
logo: (
|
|
50649
|
-
companyName: (
|
|
50650
|
-
companySlug: (
|
|
50651
|
-
companyLocation: (
|
|
50652
|
-
companyWebsite: (
|
|
50653
|
-
companyVision: (
|
|
50654
|
-
companyTagline: (
|
|
50655
|
-
companyCategory: (
|
|
50656
|
-
companyEmployeeCount: (
|
|
50648
|
+
company: f ? [parseInt(d.company.data.id, 10)] : [],
|
|
50649
|
+
logo: (f == null ? void 0 : f.logo) || null,
|
|
50650
|
+
companyName: (f == null ? void 0 : f.name) || null,
|
|
50651
|
+
companySlug: (f == null ? void 0 : f.slug) || null,
|
|
50652
|
+
companyLocation: (f == null ? void 0 : f.location) || null,
|
|
50653
|
+
companyWebsite: (f == null ? void 0 : f.company_website) || null,
|
|
50654
|
+
companyVision: (f == null ? void 0 : f.company_vision) || null,
|
|
50655
|
+
companyTagline: (f == null ? void 0 : f.tagline) || null,
|
|
50656
|
+
companyCategory: (f == null ? void 0 : f.category) || null,
|
|
50657
|
+
companyEmployeeCount: (f == null ? void 0 : f.employee_count) || null
|
|
50657
50658
|
};
|
|
50658
50659
|
}).filter(Boolean);
|
|
50659
50660
|
}, ef = (e) => {
|
package/dist/career-hub.umd.js
CHANGED
|
@@ -411,4 +411,4 @@ html body {
|
|
|
411
411
|
${t}-collapse,
|
|
412
412
|
${t}-edit,
|
|
413
413
|
${t}-copy
|
|
414
|
-
`]:Object.assign(Object.assign({},vf(e)),{marginInlineStart:e.marginXXS})}),GW(e)),UW(e)),XW()),{"&-rtl":{direction:"rtl"}})}},hO=Mt("Typography",e=>[QW(e)],()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"})),YW=e=>{const{prefixCls:t,"aria-label":n,className:r,style:o,direction:i,maxLength:a,autoSize:l=!0,value:c,onSave:u,onCancel:d,onEnd:f,component:m,enterIcon:p=s.createElement(DP,null)}=e,g=s.useRef(null),h=s.useRef(!1),v=s.useRef(null),[y,C]=s.useState(c);s.useEffect(()=>{C(c)},[c]),s.useEffect(()=>{var D;if(!((D=g.current)===null||D===void 0)&&D.resizableTextArea){const{textArea:P}=g.current.resizableTextArea;P.focus();const{length:A}=P.value;P.setSelectionRange(A,A)}},[]);const x=D=>{let{target:P}=D;C(P.value.replace(/[\n\r]/g,""))},E=()=>{h.current=!0},S=()=>{h.current=!1},$=D=>{let{keyCode:P}=D;h.current||(v.current=P)},O=()=>{u(y.trim())},I=D=>{let{keyCode:P,ctrlKey:A,altKey:R,metaKey:L,shiftKey:j}=D;v.current!==P||h.current||A||R||L||j||(P===ye.ENTER?(O(),f==null||f()):P===ye.ESC&&d())},w=()=>{O()},[N,_,T]=hO(t),M=U(t,`${t}-edit-content`,{[`${t}-rtl`]:i==="rtl",[`${t}-${m}`]:!!m},r,_,T);return N(s.createElement("div",{className:M,style:o},s.createElement(E1,{ref:g,maxLength:a,value:y,onChange:x,onKeyDown:$,onKeyUp:I,onCompositionStart:E,onCompositionEnd:S,onBlur:w,"aria-label":n,rows:1,autoSize:l}),p!==null?Gn(p,{className:`${t}-edit-content-confirm`}):null))};var JW=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||n.forEach(function(o){e.addRange(o)}),t&&t.focus()}},ZW=JW,bO={"text/plain":"Text","text/html":"Url",default:"Text"},eK="Copy to clipboard: #{key}, Enter";function tK(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function nK(e,t){var n,r,o,i,a,l,c=!1;t||(t={}),n=t.debug||!1;try{o=ZW(),i=document.createRange(),a=document.getSelection(),l=document.createElement("span"),l.textContent=e,l.ariaHidden="true",l.style.all="unset",l.style.position="fixed",l.style.top=0,l.style.clip="rect(0, 0, 0, 0)",l.style.whiteSpace="pre",l.style.webkitUserSelect="text",l.style.MozUserSelect="text",l.style.msUserSelect="text",l.style.userSelect="text",l.addEventListener("copy",function(d){if(d.stopPropagation(),t.format)if(d.preventDefault(),typeof d.clipboardData=="undefined"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var f=bO[t.format]||bO.default;window.clipboardData.setData(f,e)}else d.clipboardData.clearData(),d.clipboardData.setData(t.format,e);t.onCopy&&(d.preventDefault(),t.onCopy(d.clipboardData))}),document.body.appendChild(l),i.selectNodeContents(l),a.addRange(i);var u=document.execCommand("copy");if(!u)throw new Error("copy command was unsuccessful");c=!0}catch(d){n&&console.error("unable to copy using execCommand: ",d),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(f){n&&console.error("unable to copy using clipboardData: ",f),n&&console.error("falling back to prompt"),r=tK("message"in t?t.message:eK),window.prompt(r,e)}}finally{a&&(typeof a.removeRange=="function"?a.removeRange(i):a.removeAllRanges()),l&&document.body.removeChild(l),o()}return c}var rK=nK;const oK=Xo(rK);var iK=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{u(r.next(d))}catch(f){a(f)}}function c(d){try{u(r.throw(d))}catch(f){a(f)}}function u(d){d.done?i(d.value):o(d.value).then(l,c)}u((r=r.apply(e,t||[])).next())})};const aK=e=>{let{copyConfig:t,children:n}=e;const[r,o]=s.useState(!1),[i,a]=s.useState(!1),l=s.useRef(null),c=()=>{l.current&&clearTimeout(l.current)},u={};t.format&&(u.format=t.format),s.useEffect(()=>c,[]);const d=qt(f=>iK(void 0,void 0,void 0,function*(){var m;f==null||f.preventDefault(),f==null||f.stopPropagation(),a(!0);try{const p=typeof t.text=="function"?yield t.text():t.text;oK(p||eV(n,!0).join("")||"",u),a(!1),o(!0),c(),l.current=setTimeout(()=>{o(!1)},3e3),(m=t.onCopy)===null||m===void 0||m.call(t,f)}catch(p){throw a(!1),p}}));return{copied:r,copyLoading:i,onClick:d}};function fv(e,t){return s.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const lK=e=>{const t=b.useRef(void 0);return b.useEffect(()=>{t.current=e}),t.current},sK=(e,t,n)=>b.useMemo(()=>e===!0?{title:t!=null?t:n}:b.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t!=null?t:n},e):{title:e},[e,t,n]);var cK=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const yO=s.forwardRef((e,t)=>{const{prefixCls:n,component:r="article",className:o,rootClassName:i,setContentRef:a,children:l,direction:c,style:u}=e,d=cK(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:m,className:p,style:g}=Dn("typography"),h=c!=null?c:m,v=a?Vn(t,a):t,y=f("typography",n);process.env.NODE_ENV!=="production"&&vt("Typography").deprecated(!a,"setContentRef","ref");const[C,x,E]=hO(y),S=U(y,p,{[`${y}-rtl`]:h==="rtl"},o,i,x,E),$=Object.assign(Object.assign({},g),u);return C(s.createElement(r,Object.assign({className:S,style:$,ref:v},d),l))});process.env.NODE_ENV!=="production"&&(yO.displayName="Typography");const CO=yO;function SO(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function mv(e,t,n){return e===!0||e===void 0?t:e||n&&t}function uK(e){const t=document.createElement("em");e.appendChild(t),process.env.NODE_ENV!=="production"&&(t.className="ant-typography-css-ellipsis-content-measure");const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}const pv=e=>["string","number"].includes(typeof e),dK=e=>{let{prefixCls:t,copied:n,locale:r,iconOnly:o,tooltips:i,icon:a,tabIndex:l,onCopy:c,loading:u}=e;const d=SO(i),f=SO(a),{copied:m,copy:p}=r!=null?r:{},g=n?m:p,h=mv(d[n?1:0],g),v=typeof h=="string"?h:g;return s.createElement(lo,{title:h},s.createElement("button",{type:"button",className:U(`${t}-copy`,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:o}),onClick:c,"aria-label":v,tabIndex:l},n?mv(f[1],s.createElement(fs,null),!0):mv(f[0],u?s.createElement(Zo,null):s.createElement(lP,null),!0)))},uu=s.forwardRef((e,t)=>{let{style:n,children:r}=e;const o=s.useRef(null);return s.useImperativeHandle(t,()=>({isExceed:()=>{const i=o.current;return i.scrollHeight>i.clientHeight},getHeight:()=>o.current.clientHeight})),s.createElement("span",{"aria-hidden":!0,ref:o,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},n)},r)}),fK=e=>e.reduce((t,n)=>t+(pv(n)?String(n).length:1),0);function xO(e,t){let n=0;const r=[];for(let o=0;o<e.length;o+=1){if(n===t)return r;const i=e[o],l=pv(i)?String(i).length:1,c=n+l;if(c>t){const u=t-n;return r.push(String(i).slice(0,u)),r}r.push(i),n=c}return e}const vv=0,gv=1,hv=2,bv=3,EO=4,du={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function mK(e){const{enableMeasure:t,width:n,text:r,children:o,rows:i,expanded:a,miscDeps:l,onEllipsis:c}=e,u=s.useMemo(()=>_n(r),[r]),d=s.useMemo(()=>fK(u),[r]),f=s.useMemo(()=>o(u,!1),[r]),[m,p]=s.useState(null),g=s.useRef(null),h=s.useRef(null),v=s.useRef(null),y=s.useRef(null),C=s.useRef(null),[x,E]=s.useState(!1),[S,$]=s.useState(vv),[O,I]=s.useState(0),[w,N]=s.useState(null);Et(()=>{$(t&&n&&d?gv:vv)},[n,r,i,t,u]),Et(()=>{var D,P,A,R;if(S===gv){$(hv);const L=h.current&&getComputedStyle(h.current).whiteSpace;N(L)}else if(S===hv){const L=!!(!((D=v.current)===null||D===void 0)&&D.isExceed());$(L?bv:EO),p(L?[0,d]:null),E(L);const j=((P=v.current)===null||P===void 0?void 0:P.getHeight())||0,z=i===1?0:((A=y.current)===null||A===void 0?void 0:A.getHeight())||0,B=((R=C.current)===null||R===void 0?void 0:R.getHeight())||0,K=Math.max(j,z+B);I(K+1),c(L)}},[S]);const _=m?Math.ceil((m[0]+m[1])/2):0;Et(()=>{var D;const[P,A]=m||[0,0];if(P!==A){const L=(((D=g.current)===null||D===void 0?void 0:D.getHeight())||0)>O;let j=_;A-P===1&&(j=L?P:A),p(L?[P,j]:[j,A])}},[m,_]);const T=s.useMemo(()=>{if(!t)return o(u,!1);if(S!==bv||!m||m[0]!==m[1]){const D=o(u,!1);return[EO,vv].includes(S)?D:s.createElement("span",{style:Object.assign(Object.assign({},du),{WebkitLineClamp:i})},D)}return o(a?u:xO(u,m[0]),x)},[a,S,m,u].concat(ge(l))),M={width:n,margin:0,padding:0,whiteSpace:w==="nowrap"?"normal":"inherit"};return s.createElement(s.Fragment,null,T,S===hv&&s.createElement(s.Fragment,null,s.createElement(uu,{style:Object.assign(Object.assign(Object.assign({},M),du),{WebkitLineClamp:i}),ref:v},f),s.createElement(uu,{style:Object.assign(Object.assign(Object.assign({},M),du),{WebkitLineClamp:i-1}),ref:y},f),s.createElement(uu,{style:Object.assign(Object.assign(Object.assign({},M),du),{WebkitLineClamp:1}),ref:C},o([],!0))),S===bv&&m&&m[0]!==m[1]&&s.createElement(uu,{style:Object.assign(Object.assign({},M),{top:400}),ref:g},o(xO(u,_),!0)),S===gv&&s.createElement("span",{style:{whiteSpace:"inherit"},ref:h}))}const $O=e=>{let{enableEllipsis:t,isEllipsis:n,children:r,tooltipProps:o}=e;return!(o!=null&&o.title)||!t?r:s.createElement(lo,Object.assign({open:n?void 0:!1},o),r)};process.env.NODE_ENV!=="production"&&($O.displayName="EllipsisTooltip");const pK=$O;var vK=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function gK(e,t){let{mark:n,code:r,underline:o,delete:i,strong:a,keyboard:l,italic:c}=e,u=t;function d(f,m){m&&(u=s.createElement(f,{},u))}return d("strong",a),d("u",o),d("del",i),d("code",r),d("mark",n),d("kbd",l),d("i",c),u}const hK="...",fu=s.forwardRef((e,t)=>{var n;const{prefixCls:r,className:o,style:i,type:a,disabled:l,children:c,ellipsis:u,editable:d,copyable:f,component:m,title:p}=e,g=vK(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:h,direction:v}=s.useContext(Xe),[y]=to("Text"),C=s.useRef(null),x=s.useRef(null),E=h("typography",r),S=tn(g,["mark","code","delete","underline","strong","keyboard","italic"]),[$,O]=fv(d),[I,w]=an(!1,{value:O.editing}),{triggerType:N=["icon"]}=O,_=ve=>{var Se;ve&&((Se=O.onStart)===null||Se===void 0||Se.call(O)),w(ve)},T=lK(I);Et(()=>{var ve;!I&&T&&((ve=x.current)===null||ve===void 0||ve.focus())},[I]);const M=ve=>{ve==null||ve.preventDefault(),_(!0)},D=ve=>{var Se;(Se=O.onChange)===null||Se===void 0||Se.call(O,ve),_(!1)},P=()=>{var ve;(ve=O.onCancel)===null||ve===void 0||ve.call(O),_(!1)},[A,R]=fv(f),{copied:L,copyLoading:j,onClick:z}=aK({copyConfig:R,children:c}),[B,K]=s.useState(!1),[W,k]=s.useState(!1),[V,Q]=s.useState(!1),[J,Y]=s.useState(!1),[te,oe]=s.useState(!0),[X,F]=fv(u,{expandable:!1,symbol:ve=>ve?y==null?void 0:y.collapse:y==null?void 0:y.expand}),[ee,Z]=an(F.defaultExpanded||!1,{value:F.expanded}),ne=X&&(!ee||F.expandable==="collapsible"),{rows:re=1}=F,se=s.useMemo(()=>ne&&(F.suffix!==void 0||F.onEllipsis||F.expandable||$||A),[ne,F,$,A]);Et(()=>{X&&!se&&(K(hm("webkitLineClamp")),k(hm("textOverflow")))},[se,X]);const[le,he]=s.useState(ne),fe=s.useMemo(()=>se?!1:re===1?W:B,[se,W,B]);Et(()=>{he(fe&&ne)},[fe,ne]);const ie=ne&&(le?J:V),ce=ne&&re===1&&le,ue=ne&&re>1&&le,me=(ve,Se)=>{var Je;Z(Se.expanded),(Je=F.onExpand)===null||Je===void 0||Je.call(F,ve,Se)},[Ce,Oe]=s.useState(0),Pe=ve=>{let{offsetWidth:Se}=ve;Oe(Se)},je=ve=>{var Se;Q(ve),V!==ve&&((Se=F.onEllipsis)===null||Se===void 0||Se.call(F,ve))};s.useEffect(()=>{const ve=C.current;if(X&&le&&ve){const Se=uK(ve);J!==Se&&Y(Se)}},[X,le,c,ue,te,Ce]),s.useEffect(()=>{const ve=C.current;if(typeof IntersectionObserver=="undefined"||!ve||!le||!ne)return;const Se=new IntersectionObserver(()=>{oe(!!ve.offsetParent)});return Se.observe(ve),()=>{Se.disconnect()}},[le,ne]);const Ne=sK(F.tooltip,O.text,c),Ie=s.useMemo(()=>{if(!(!X||le))return[O.text,c,p,Ne.title].find(pv)},[X,le,p,Ne.title,ie]);if(I)return s.createElement(YW,{value:(n=O.text)!==null&&n!==void 0?n:typeof c=="string"?c:"",onSave:D,onCancel:P,onEnd:O.onEnd,prefixCls:E,className:o,style:i,direction:v,component:m,maxLength:O.maxLength,autoSize:O.autoSize,enterIcon:O.enterIcon});const xe=()=>{const{expandable:ve,symbol:Se}=F;return ve?s.createElement("button",{type:"button",key:"expand",className:`${E}-${ee?"collapse":"expand"}`,onClick:Je=>me(Je,{expanded:!ee}),"aria-label":ee?y.collapse:y==null?void 0:y.expand},typeof Se=="function"?Se(ee):Se):null},be=()=>{if(!$)return;const{icon:ve,tooltip:Se,tabIndex:Je}=O,it=_n(Se)[0]||(y==null?void 0:y.edit),Ot=typeof it=="string"?it:"";return N.includes("icon")?s.createElement(lo,{key:"edit",title:Se===!1?"":it},s.createElement("button",{type:"button",ref:x,className:`${E}-edit`,onClick:M,"aria-label":Ot,tabIndex:Je},ve||s.createElement(Dd,{role:"button"}))):null},Ee=()=>A?s.createElement(dK,Object.assign({key:"copy"},R,{prefixCls:E,copied:L,locale:y,onCopy:z,loading:j,iconOnly:c==null})):null,$e=ve=>[ve&&xe(),be(),Ee()],_e=ve=>[ve&&!ee&&s.createElement("span",{"aria-hidden":!0,key:"ellipsis"},hK),F.suffix,$e(ve)];return s.createElement(Wn,{onResize:Pe,disabled:!ne},ve=>s.createElement(pK,{tooltipProps:Ne,enableEllipsis:ne,isEllipsis:ie},s.createElement(CO,Object.assign({className:U({[`${E}-${a}`]:a,[`${E}-disabled`]:l,[`${E}-ellipsis`]:X,[`${E}-ellipsis-single-line`]:ce,[`${E}-ellipsis-multiple-line`]:ue},o),prefixCls:r,style:Object.assign(Object.assign({},i),{WebkitLineClamp:ue?re:void 0}),component:m,ref:Vn(ve,C,t),direction:v,onClick:N.includes("text")?M:void 0,"aria-label":Ie==null?void 0:Ie.toString(),title:p},S),s.createElement(mK,{enableMeasure:ne&&!le,text:c,rows:re,width:Ce,onEllipsis:je,expanded:ee,miscDeps:[L,ee,j,$,A,y]},(Se,Je)=>gK(e,s.createElement(s.Fragment,null,Se.length>0&&Je&&!ee&&Ie?s.createElement("span",{key:"show-content","aria-hidden":!0},Se):Se,_e(Je)))))))});var bK=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const yK=s.forwardRef((e,t)=>{var{ellipsis:n,rel:r}=e,o=bK(e,["ellipsis","rel"]);if(process.env.NODE_ENV!=="production"){const a=vt("Typography.Link");process.env.NODE_ENV!=="production"&&a(typeof n!="object","usage","`ellipsis` only supports boolean value.")}const i=Object.assign(Object.assign({},o),{rel:r===void 0&&o.target==="_blank"?"noopener noreferrer":r});return delete i.navigate,s.createElement(fu,Object.assign({},i,{ref:t,ellipsis:!!n,component:"a"}))}),CK=s.forwardRef((e,t)=>s.createElement(fu,Object.assign({ref:t},e,{component:"div"})));var SK=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const xK=(e,t)=>{var{ellipsis:n}=e,r=SK(e,["ellipsis"]);const o=s.useMemo(()=>n&&typeof n=="object"?tn(n,["expandable","rows"]):n,[n]);if(process.env.NODE_ENV!=="production"){const i=vt("Typography.Text");process.env.NODE_ENV!=="production"&&i(typeof n!="object"||!n||!("expandable"in n)&&!("rows"in n),"usage","`ellipsis` do not support `expandable` or `rows` props.")}return s.createElement(fu,Object.assign({ref:t},r,{ellipsis:o,component:"span"}))},EK=s.forwardRef(xK);var $K=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const wO=[1,2,3,4,5],wK=s.forwardRef((e,t)=>{const{level:n=1}=e,r=$K(e,["level"]);if(process.env.NODE_ENV!=="production"){const i=vt("Typography.Title");process.env.NODE_ENV!=="production"&&i(wO.includes(n),"usage","Title only accept `1 | 2 | 3 | 4 | 5` as `level` value. And `5` need 4.6.0+ version.")}const o=wO.includes(n)?`h${n}`:"h1";return s.createElement(fu,Object.assign({ref:t},r,{component:o}))}),Ml=CO;Ml.Text=EK,Ml.Link=yK,Ml.Title=wK,Ml.Paragraph=CK;const kt=Ml,Dl={stepText:"_stepText_14qm3_1",titleContainer:"_titleContainer_14qm3_5",titleIcon:"_titleIcon_14qm3_9",titleText:"_titleText_14qm3_14"},{Text:OO}=kt;function yv({currentStep:e,icon:t,title:n,totalSteps:r}){return b.createElement(Zt,{className:Dl.container,direction:"vertical"},b.createElement(OO,{className:Dl.stepText},"Step ",e,"/",r),b.createElement(Zt,{className:Dl.titleContainer},b.createElement(t,{className:Dl.titleIcon}),b.createElement(OO,{className:Dl.titleText},n)))}yv.propTypes={currentStep:pe.number.isRequired,icon:pe.elementType.isRequired,title:pe.string.isRequired,totalSteps:pe.number.isRequired};function OK({applicationData:e}){switch(e.status){case Oi.APPLICATION_FORM:return b.createElement(b.Fragment,null,"Application Form");default:return null}}function NO({currentTab:e,jobProfileId:t,utmId:n,utmMedium:r,utmSource:o}){const[i,a]=b.useState(!0),{data:l,isLoading:c}=Vg({jobProfileId:t,utmMedium:r,utmSource:o,currentTab:e,utmId:n}),u=()=>{a(!1)};return b.createElement(U$,{closable:{placement:"end"},loading:c,onClose:u,open:i,placement:"bottom",title:b.createElement(yv,{currentStep:1,icon:Ta,title:"Required Details",totalSteps:2})},b.createElement(OK,{applicationData:l}))}NO.propTypes={currentTab:pe.string.isRequired,jobProfileId:pe.number.isRequired,utmId:pe.string,utmMedium:pe.string,utmSource:pe.string};const IO="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAACqElEQVR4Xu2bMUpEQRBEXQwNFLyKuYE38KDewMDcqyx8A0NRlAWFDbqKGYuezzP9tdMz7/X0Lrt42Lbt84K/NgQOCGnj4mcjCOnlAyHNfCAEId0INNsP7yEIaUag2XYiN+T48jR87Nv7x6E1OuxBOQBCFEqnzGhTKKUQolBCyDml0e5kZP1h2gFGhz0ol5GRpVBiZDGyjD7xox3GRYc9KOQYWQolRhYjy+gTP9phXHTYg0KOkaVQYmQxsow+8aMdxkWHPSjkGFkKJUYWI8voEz/aYVx02INCbpmRpRzmvzOj3zgr+0OIQon3EINSMMoNCcJWSiFEoRTMICQIWymFEIVSMIOQIGylFEIUSsEMQoKwlVIIUSgFMwgJwlZKIUShFMwgJAhbKYUQhVIwg5AgbKUUQhRKwUwLITN+aZvBbBTGKucof6Ba5SCV9FXOgZDK5OTn1U1HyGTg1XIIORFiZFWtYj6vOqtaDiEVIfM5Qha76pVfbkhFyHzODeGGmC2jxavG4mOvxnFaCiGL3XRuyLTe1xbihnBDtE5xU1VnVevxsbciZD5HyMSrfnl1beI/j9/cPQytsb0+D73++8Uf72/Da1SNFXlTrzYxfMrQAjPGXsUCIYZMhBiwElGEJCgbNRBiwEpEEZKgbNRAiAErEUVIgrJRAyEGrEQUIQnKRg2EGLASUYQkKBs1EGLASkQRkqBs1ECIASsRRUiCslFjN0KMM+8+2uL3kN1TNg6IEANWIoqQBGWjBkIMWIkoQhKUjRoIMWAloghJUDZqIMSAlYgiJEHZqIEQA1YiipAEZaMGQgxYiShCEpSNGggxYCWiCElQNmogxICViA4LSWySGr8Eyn/YAVaWAEKyvMtqCCkRZQMIyfIuqyGkRJQNICTLu6yGkBJRNvAFGmsSbsnlaLoAAAAASUVORK5CYII=",mu=({logo:e,company:t,companiesList:n,companyName:r,size:o=48})=>{const[i,a]=b.useState(()=>{var c;return e||(t&&t[0]&&((c=n[t[0]])!=null&&c.logo)?n[t[0]].logo:IO)}),l=()=>{a(IO)};return b.createElement(Zx,{size:o,src:i,alt:r,onError:l,shape:"square"})};mu.propTypes={logo:pe.string,company:pe.arrayOf(pe.number),companiesList:pe.object,companyName:pe.string,size:pe.number},mu.defaultProps={logo:null,company:[],companiesList:{},companyName:""};const yi={header:"_header_akxwc_1",jobTitle:"_jobTitle_akxwc_6",titleContainer:"_titleContainer_akxwc_14",titleContainerExpanded:"_titleContainerExpanded_akxwc_19",titleContainerCollapsed:"_titleContainerCollapsed_akxwc_23",companyName:"_companyName_akxwc_27",actions:"_actions_akxwc_32"},{Title:NK,Text:IK}=kt,Cv=({title:e,companyName:t,isExpanded:n})=>b.createElement(Zt,{direction:"vertical",size:4,className:U(yi.titleContainer,{[yi.titleContainerExpanded]:n,[yi.titleContainerCollapsed]:!n})},b.createElement(NK,{level:5,className:yi.jobTitle,ellipsis:{rows:1}},e),b.createElement(IK,{type:"secondary",ellipsis:!0,className:yi.companyName},t));Cv.propTypes={title:pe.string.isRequired,companyName:pe.string.isRequired,isExpanded:pe.bool},Cv.defaultProps={isExpanded:!1};const _O=(e,t)=>{let n=0;return e!=null&&e.data&&Object.values(e.data).forEach(r=>{r.contests&&r.contests.cleared===!1&&(n+=1),r.skills&&r.skills.cleared===!1&&(n+=1)}),t!=null&&t.data&&Object.values(t.data).forEach(r=>{r.data&&r.data.cleared===!1&&(n+=1)}),n},Sv=(e,t)=>["experience","notice_period"].every(r=>{if(r===t)return!0;const o=e[r];return!o||o.isEligible}),xv={quick_apply:"quick_apply",eligible:"eligible",ineligible:"ineligible",steps_to_apply:"steps_to_apply",notice_period_mismatch:"notice_period_mismatch",expired:"expired"},_K=["Rejected","Offer Withdrawn","To Be Offered","Offer Accepted","Offer Declined","Joined","Offer Received"],Ev=(e,t)=>{const{isRelevant:n,expiry:r,jobProfileStatus:o}=e,{isEligible:i,reasons:a=[]}=t||{};if(r&&(new Date(r)<new Date||o!=="active"))return{tag:"expired",text:"Job Expired",icon:"ClockCircleOutlined",color:"#5a2780",antdColor:"default"};const c=a.reduce((g,h)=>(g[h.label]=h,g),{}),u=c.experience,d=c.notice_period,f=c.skills,m=c.tech_stacks;if(i&&n)return{tag:"quick_apply",text:"Quick Apply",icon:"CheckCircleOutlined",color:"#20a164",antdColor:"success"};if(i)return{tag:"eligible",text:"Eligible",icon:"CheckCircleOutlined",color:"#20a164",antdColor:"success"};if(u&&!u.isEligible)return{tag:"ineligible",text:"Ineligible",icon:"CloseCircleOutlined",color:"#a42137",antdColor:"error"};if(d&&!d.isEligible&&Sv(c,"notice_period"))return{tag:"notice_period_mismatch",text:"Notice Period Mismatch",icon:"CloseCircleOutlined",color:"#a42137",antdColor:"error"};const p=_O(f,m);return p>0&&Sv(c,"skills")?{tag:"steps_to_apply",text:`${p} ${p===1?"step":"steps"} pending`,icon:"RocketOutlined",color:"#20a164",antdColor:"success",count:p}:{tag:xv.ineligible,text:"Ineligible",icon:"CloseCircleOutlined",color:"#a42137",antdColor:"error"}},PK={tag:"_tag_ueyiz_1"},TK={CheckCircleOutlined:Ih,CloseCircleOutlined:eP,ClockCircleOutlined:Th,RocketOutlined:o2},pu=({jobData:e,currentTab:t})=>{const n=Ev(e,e.eligibilityCriteria);if(!n)return null;const r=TK[n.icon];return b.createElement(ha,{icon:r&&b.createElement(r,null),color:n.antdColor,className:PK.tag,style:n.tag==="expired"?{color:n.color,borderColor:n.color}:{}},n.text)};pu.propTypes={jobData:pe.shape({isRelevant:pe.bool,expiry:pe.string,jobProfileStatus:pe.string,eligibilityCriteria:pe.shape({isEligible:pe.bool,reasons:pe.arrayOf(pe.shape({label:pe.string,isEligible:pe.bool,data:pe.object}))})}).isRequired,currentTab:pe.string},pu.defaultProps={currentTab:"all"};const $v=({jobData:e,currentTab:t})=>b.createElement("div",{className:yi.actions},b.createElement(pu,{jobData:e,currentTab:t}));$v.propTypes={jobData:pe.object.isRequired,currentTab:pe.string},$v.defaultProps={currentTab:"all"};const wv=({jobData:e,companiesList:t,currentTab:n,isExpanded:r})=>b.createElement(wo,{gutter:[12,8],className:yi.header},b.createElement(jn,{flex:"auto"},b.createElement(wo,{gutter:12,align:"top",wrap:!1},b.createElement(jn,null,b.createElement(mu,{logo:e.logo,company:e.company,companiesList:t,companyName:e.name})),b.createElement(jn,{flex:"auto"},b.createElement(Cv,{title:e.title,companyName:e.name,isExpanded:r})))),b.createElement(jn,null,b.createElement($v,{jobData:e,currentTab:n})));wv.propTypes={jobData:pe.object.isRequired,companiesList:pe.object,currentTab:pe.string,isExpanded:pe.bool},wv.defaultProps={companiesList:{},currentTab:"all",isExpanded:!1};const Ov=(e,t)=>{if(e===0&&t===0)return"Fresher";const n=Math.floor(e/12),r=Math.floor(t/12);return n===r?`${n}y Experience`:r===0?"Fresher":n===0?`${r}y Experience`:`${n}y - ${r}y Experience`},Nv=({minCtc:e,maxCtc:t,openForDiscussionCtc:n,isInternship:r,stipend:o,userCountry:i="IN"})=>{if(r)return o?`₹${o}/month`:"Unpaid Internship";const a=i==="US"?"$":"₹",l=i==="US"?"K":"L";return e===null||t===null||e===void 0||t===void 0?`${a} (Flexible)`:n?`${a}${e}${l}+ (Negotiable)`:e===t?`${a}${e}${l} CTC`:`${a}${e}${l} - ${a}${t}${l} CTC`},Iv=e=>!e||e===0?"Immediate":`${e} days Notice Period`,PO=e=>{if(!e)return"";const t=new Date(e),n=String(t.getDate()).padStart(2,"0"),r=String(t.getMonth()+1).padStart(2,"0"),o=t.getFullYear();return`${n}/${r}/${o}`},_v=e=>{if(!e)return null;const t=e.split(",").map(n=>n.trim()).filter(Boolean);return t.length===0?null:t.length===1?t[0]:`${t[0]} +${t.length-1} more`},TO={saveButton:"_saveButton_15f6f_1",savedButton:"_savedButton_15f6f_2"},vu=({jobProfileId:e,applicationStatus:t,applicationLastUpdatedAt:n,onSave:r,disabled:o=!1})=>{const[i,a]=b.useState(!1),l=t==="Saved",c=u=>ar(this,null,function*(){u.stopPropagation(),a(!0);try{yield r(e,l?"unsave":"save")}catch(d){console.error("Save action failed:",d)}finally{a(!1)}});return l&&n?b.createElement(rn,{type:"text",icon:b.createElement(Sb,{twoToneColor:"#8c8c8c"}),onClick:c,disabled:o||i,loading:i,className:TO.savedButton,style:{color:"#8c8c8c"},size:"small"},"Saved on ",PO(n)):b.createElement(rn,{type:"text",icon:b.createElement(s2,null),onClick:c,disabled:o||i,loading:i,className:TO.saveButton,size:"small"},l?"Saved":"Save")};vu.propTypes={jobProfileId:pe.number.isRequired,applicationStatus:pe.string,applicationLastUpdatedAt:pe.string,onSave:pe.func.isRequired,disabled:pe.bool},vu.defaultProps={applicationStatus:"Not Applied",applicationLastUpdatedAt:null,disabled:!1};const Al={body:"_body_1tlme_1",detailsRowContainer:"_detailsRowContainer_1tlme_7",detailsRow:"_detailsRow_1tlme_7",detailText:"_detailText_1tlme_23",saveButtonWrapper:"_saveButtonWrapper_1tlme_29"},{Text:MK}=kt,MO=({text:e})=>e?b.createElement(MK,{className:Al.detailText},e):null;MO.propTypes={text:pe.string};const Pv=({jobData:e,cardConfig:t,userCountry:n,onSave:r,selectedJobId:o})=>{const{preferredCities:i,minExperience:a,maxExperience:l,minCtc:c,maxCtc:u,openForDiscussionCtc:d,isInternship:f,stipend:m,preferredNoticePeriod:p}=e,g=_v(i),h=o===null&&t.isExperienceCtcAvailable?Ov(a,l):null,v=t.isExperienceCtcAvailable?Nv({minCtc:c,maxCtc:u,openForDiscussionCtc:d,isInternship:f,stipend:m,userCountry:n}):null,y=o===null&&t.isNoticePeriodAvailable?Iv(p):null,C=[g&&{text:g},h&&{text:h},v&&{text:v},y&&{text:y}].filter(Boolean);return b.createElement("div",{className:Al.detailsRowContainer},C.length>0&&b.createElement(Zt,{split:b.createElement(I$,{type:"vertical"}),className:Al.detailsRow},C.map((x,E)=>b.createElement(MO,{key:E,text:x.text}))),b.createElement("div",{className:Al.saveButtonWrapper},b.createElement(vu,{jobProfileId:e.id,applicationStatus:e.applicationStatus,applicationLastUpdatedAt:e.applicationLastUpdatedAt,onSave:r})))};Pv.propTypes={jobData:pe.shape({id:pe.number.isRequired,preferredCities:pe.string,minExperience:pe.number,maxExperience:pe.number,minCtc:pe.number,maxCtc:pe.number,openForDiscussionCtc:pe.bool,isInternship:pe.bool,stipend:pe.string,preferredNoticePeriod:pe.number,applicationStatus:pe.string,applicationLastUpdatedAt:pe.string}).isRequired,cardConfig:pe.shape({isExperienceCtcAvailable:pe.bool,isNoticePeriodAvailable:pe.bool}).isRequired,userCountry:pe.oneOf(["IN","US"]),onSave:pe.func.isRequired,selectedJobId:pe.number},Pv.defaultProps={userCountry:"IN",selectedJobId:null};const Tv=({jobData:e,cardConfig:t,userCountry:n,onSave:r,selectedJobId:o})=>b.createElement("div",{className:Al.body},b.createElement(Pv,{jobData:e,cardConfig:t,userCountry:n,onSave:r,selectedJobId:o}));Tv.propTypes={jobData:pe.object.isRequired,cardConfig:pe.object.isRequired,userCountry:pe.oneOf(["IN","US"]),onSave:pe.func.isRequired,selectedJobId:pe.number},Tv.defaultProps={userCountry:"IN",selectedJobId:null};const gu={jobCard:"_jobCard_1orgi_1",expired:"_expired_1orgi_11",active:"_active_1orgi_14",archived:"_archived_1orgi_28",cardContent:"_cardContent_1orgi_37"},hu=({jobData:e,isActive:t,currentTab:n,onClick:r,onSave:o,companiesList:i,userCountry:a,className:l,selectedJobId:c})=>{const{cardConfig:u,shouldShowBody:d}=Kg({currentTab:n,isActive:t,jobData:e}),f=()=>{r&&r(e.id)};return b.createElement(Fc,{className:U(gu.jobCard,{[gu.active]:t,[gu.archived]:e.applicationStatus==="Archived"},l),onClick:f},b.createElement("div",{className:gu.cardContent},b.createElement(wv,{jobData:e,companiesList:i,currentTab:n,isExpanded:!c}),d&&b.createElement(Tv,{jobData:e,cardConfig:u,userCountry:a,onSave:o,selectedJobId:c})))};hu.propTypes={jobData:pe.shape({id:pe.number.isRequired,title:pe.string.isRequired,name:pe.string.isRequired,company:pe.arrayOf(pe.number),logo:pe.string,preferredCities:pe.string,expiry:pe.string,jobProfileStatus:pe.string,isRelevant:pe.bool,applicationStatus:pe.string,applicationLastUpdatedAt:pe.string,minExperience:pe.number,maxExperience:pe.number,minCtc:pe.number,maxCtc:pe.number,preferredNoticePeriod:pe.number,openForDiscussionCtc:pe.bool,isInternship:pe.bool,stipend:pe.string,eligibilityCriteria:pe.shape({isEligible:pe.bool,reasons:pe.arrayOf(pe.object)})}).isRequired,isActive:pe.bool,currentTab:pe.string,onClick:pe.func,onSave:pe.func.isRequired,companiesList:pe.object,userCountry:pe.oneOf(["IN","US"]),className:pe.string,selectedJobId:pe.number},hu.defaultProps={isActive:!1,currentTab:"all",onClick:null,companiesList:{},userCountry:"IN",className:""};const Mv=e=>e&&e.replace(/_([a-z])/g,t=>t[1].toUpperCase()),Dv=e=>!e||typeof e!="string"?e:e.toLowerCase().split(/[\s_]+/).map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" "),DK=(e,t)=>{if(!t||typeof t!="string")return t;switch(e){case"camelCase":return Mv(t);case"titleCase":return Dv(t);default:return t}},bu=e=>{if(e==null)return e;if(Array.isArray(e))return e.map(bu);if(typeof e=="object"){const t={};return Object.keys(e).forEach(n=>{const r=Mv(n);t[r]=bu(e[n])}),t}return e},AK=Xr.injectEndpoints({endpoints:e=>({getJobPreview:e.query({query:t=>`/job-tracker/job_profile/${t}/`,providesTags:(t,n,r)=>[{type:"JobPreview",id:r},{type:"JobPreview",id:"LIST"}],transformResponse:t=>{var a,l,c;const n=bu(t),r=((a=n==null?void 0:n.data)==null?void 0:a.attributes)||{},o=((c=(l=n==null?void 0:n.included)==null?void 0:l.find(u=>u.type==="company"))==null?void 0:c.attributes)||{},i=r.contestSkills||[];return{jobData:ba(ur({},r),{contestSkills:i,name:r.name||(o==null?void 0:o.name)||"Company"}),companyData:o,highlights:r.highlights,eligibilityCriteria:r.eligibilityCriteria}}})}),overrideExisting:!0}),{useGetJobPreviewQuery:DO}=AK,AO=b.createContext(null),RK=({country:e="IN",jobId:t,openMockInterviewModal:n=(a,l)=>{console.log("Method not implemented. We should get it from MIT"),console.log(a,l)},openResume:r=()=>{console.log("Method not implemented. We should get it from MIT")},skip:o=!1,children:i})=>{const{data:a,isLoading:l,error:c,refetch:u}=DO(t,{skip:!t||o}),[d,f]=b.useState(),m={activeTab:d,setActiveTab:f,country:e,jobId:t,data:a,isLoading:l,error:c,refetch:u,openMockInterviewModal:n,openResume:r,jobData:a==null?void 0:a.jobData,companyData:a==null?void 0:a.companyData,highlights:a==null?void 0:a.highlights,eligibilityCriteria:a==null?void 0:a.eligibilityCriteria};return b.createElement(AO.Provider,{value:m},i)},ln=()=>{const e=b.useContext(AO);if(!e)throw new Error("useJobPreview must be used within a JobPreviewProvider");return e},Ci={descriptionContainer:"_descriptionContainer_sd7fu_1",container:"_container_sd7fu_6",recruiterAvatar:"_recruiterAvatar_sd7fu_10",recruiterCardContent:"_recruiterCardContent_sd7fu_14",recruiterName:"_recruiterName_sd7fu_18",recruiterEmail:"_recruiterEmail_sd7fu_24"},jK=({recruiter:e})=>{const{name:t,avatar:n,email:r}=e||{};return b.createElement(Fc,{size:"small"},b.createElement(Zt,{direction:"horizontal"},b.createElement(Zx,{size:48,src:n,className:Ci.recruiterAvatar}),b.createElement(Zt,{direction:"vertical",className:Ci.recruiterCardContent},b.createElement(kt.Text,{className:Ci.recruiterName},t),b.createElement(kt.Link,{className:Ci.recruiterEmail,href:`mailto:${r}`},b.createElement(DT,null),"Send Email To Recruiter"))))},LK=()=>{const{jobData:e}=ln(),{recruiters:t}=e||{};return b.createElement(Zt,null,t.map((n,r)=>b.createElement(jK,{key:r,recruiter:n})))},zK=()=>{const{jobData:e}=ln(),{applicationTimeline:t}=e||{},{timeline:n}=t||{},r=n.map(i=>({title:i.stageName,description:i.stageComments})),o=n.findIndex(i=>i.stageStatus==="ongoing");return b.createElement(Z1,{current:o,items:r,direction:"vertical"})},BK=()=>b.createElement(Zt,{direction:"vertical",size:"large",className:Ci.descriptionContainer},b.createElement(kt.Title,{level:4},"Your Application Status"),b.createElement(zK,null)),kK=()=>{const{jobData:e}=ln(),{recruiters:t}=e||{};return!t||t.length===0?null:b.createElement(Zt,{direction:"vertical",size:"large",className:Ci.descriptionContainer},b.createElement(kt.Title,{level:4},"Recruiter Details"),b.createElement(LK,null))},FK=()=>b.createElement(Zt,{direction:"vertical",size:"large",className:Ci.container},b.createElement(BK,null),b.createElement(kK,null)),Av={bookmark:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/170/276/original/BookmarkSimple.svg?1765444708",exit:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/170/344/original/ExportOutlined.svg?1765460782",airplay:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/170/451/original/Vector.svg?1765523747",monitor:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/170/455/original/Vector_%281%29.svg?1765526679"},Rl={actionBanner:"_actionBanner_13z26_1",actionBannerIcon:"_actionBannerIcon_13z26_12",actionBannerContent:"_actionBannerContent_13z26_17",actionBannerTitle:"_actionBannerTitle_13z26_23",actionBannerDescription:"_actionBannerDescription_13z26_29",actionBannerButton:"_actionBannerButton_13z26_33"},RO=({icon:e,title:t,description:n,buttonText:r,buttonIcon:o,className:i,onClick:a,isLoading:l})=>b.createElement("div",{className:U(Rl.actionBanner,i)},e,b.createElement("div",{className:Rl.actionBannerContent},b.createElement("span",{className:Rl.actionBannerTitle},t),b.createElement("span",{className:Rl.actionBannerDescription},n)),b.createElement(rn,{icon:o,type:"primary",className:Rl.actionBannerButton,onClick:a,loading:l},r)),jO={monitorBanner:"_monitorBanner_gxbq6_1",monitorIcon:"_monitorIcon_gxbq6_7"},HK="https://companion.scaler.com/interview-experiences",LO=()=>{const{jobData:e,companyData:t}=ln(),{appliedOn:n,title:r,applicationStatus:o}=e||{},i=o===Oi.WITHDRAWN,{name:a}=t||{},l=b.useCallback(()=>{globalThis.open(`${HK}?company=${encodeURIComponent(a)}&role=${encodeURIComponent(r)}`,"_blank")},[a,r]);return!n||i?null:b.createElement(RO,{icon:b.createElement("img",{src:Av.monitor,className:jO.monitorIcon}),title:"We've got the resources you need for this role",description:"Explore Interview Experiences from Scaler learners who have attempted this before",buttonText:"Explore",buttonIcon:b.createElement(Md,null),className:jO.monitorBanner,onClick:l})},dn={jobDescriptionTab:"_jobDescriptionTab_kg97i_1",contentContainer:"_contentContainer_kg97i_5",descriptionTitle:"_descriptionTitle_kg97i_10",descriptionText:"_descriptionText_kg97i_18",descriptionLink:"_descriptionLink_kg97i_32",list:"_list_kg97i_36",steps:"_steps_kg97i_40",descriptionContainer:"_descriptionContainer_kg97i_44",container:"_container_kg97i_49"},VK=()=>{const{companyData:e}=ln(),{name:t,employeeCount:n,companyVision:r,location:o,category:i,companyWebsite:a}=e||{};return b.createElement(Zt,{className:dn.contentContainer,direction:"vertical",size:"large"},b.createElement(kt.Text,{className:dn.descriptionTitle},"About ",t,a&&b.createElement(kt.Link,{className:dn.descriptionLink,href:a,target:"_blank"},b.createElement(Zt,null,b.createElement(lb,null),"Company Website"))),r&&b.createElement(kt.Paragraph,{className:dn.descriptionText},b.createElement("div",{dangerouslySetInnerHTML:{__html:r}})),o&&b.createElement(Zt,null,b.createElement(kt.Text,{className:dn.descriptionTitle},"Office Location:"),b.createElement(kt.Text,{className:dn.descriptionText},o)),i&&b.createElement(Zt,null,b.createElement(kt.Text,{className:dn.descriptionTitle},"Company Category:"),b.createElement(kt.Text,{className:dn.descriptionText},Dv(i))),n&&b.createElement(Zt,null,b.createElement(kt.Text,{className:dn.descriptionTitle},"No. of Employees:"),b.createElement(kt.Text,{className:dn.descriptionText},n)))},Rv={collapsableContainer:"_collapsableContainer_1bjjt_1",collapsed:"_collapsed_1bjjt_5",viewMore:"_viewMore_1bjjt_21"},WK=({html:e,contentClassName:t})=>{const[n,r]=b.useState(!1);return b.createElement("div",{className:Rv.collapsableContainer},b.createElement("div",{className:U(t,{[Rv.collapsed]:!n}),dangerouslySetInnerHTML:{__html:e}}),b.createElement(kt.Link,{className:Rv.viewMore,onClick:()=>r(!n)},n?"View Less":"View More"))},KK=()=>{const{jobData:e}=ln(),{jobDescText:t,jobDesc:n}=e||{};return b.createElement(Zt,{className:dn.contentContainer,direction:"vertical",size:"large"},b.createElement(kt.Text,{className:dn.descriptionTitle},"About the Role",n&&b.createElement(kt.Link,{className:dn.descriptionLink,href:n,target:"_blank"},b.createElement(Zt,null,b.createElement(lb,null),"Know More"))),t&&b.createElement(WK,{html:t,contentClassName:dn.descriptionText}))},jv={collapsableContainer:"_collapsableContainer_1bjjt_1",collapsed:"_collapsed_1bjjt_5",viewMore:"_viewMore_1bjjt_21"},qK=({children:e,contentClassName:t})=>{const[n,r]=b.useState(!1);return b.createElement("div",{className:jv.collapsableContainer},b.createElement("div",{className:U(t,{[jv.collapsed]:!n})},e),b.createElement(kt.Link,{className:jv.viewMore,onClick:()=>r(!n)},n?"View Less":"View More"))},GK=()=>{const{jobData:e,country:t}=ln(),{benefits:n,visaSponsorship:r}=e||{},o=r==="yes";return!n&&!o||t!=="US"?null:b.createElement(Zt,{className:dn.contentContainer,direction:"vertical",size:"large"},b.createElement(kt.Text,{className:dn.descriptionTitle},"Benefits"),b.createElement(qK,{contentClassName:dn.descriptionText},b.createElement("ul",{className:dn.list},n==null?void 0:n.map(i=>b.createElement("li",{key:i},i)),o&&b.createElement("li",null,"Visa sponsorship available"))))},UK=()=>{const{jobData:e}=ln(),{hiringSteps:t}=e||{};if(!t)return null;const n=t==null?void 0:t.map(r=>({title:b.createElement("span",{className:dn.descriptionTitle},r.stepName),description:b.createElement("span",{className:dn.descriptionText},r.interviewType)}));return b.createElement(Z1,{className:dn.steps,current:-1,progressDot:!0,items:n})},XK=()=>b.createElement(Zt,{direction:"vertical",size:"large",className:dn.descriptionContainer},b.createElement(kt.Title,{level:4},"Job Description"),b.createElement(VK,null),b.createElement(KK,null),b.createElement(GK,null)),QK=()=>b.createElement(Zt,{direction:"vertical",size:"large",className:dn.descriptionContainer},b.createElement(kt.Title,{level:4},"Post Application Process"),b.createElement(UK,null)),YK=()=>b.createElement(Zt,{direction:"vertical",size:"large",className:dn.container},b.createElement(XK,null),b.createElement(QK,null),b.createElement(LO,null)),Ko={container:"_container_1froy_1",dot:"_dot_1froy_5",successDot:"_successDot_1froy_11",errorDot:"_errorDot_1froy_15"},Mr={completed:"Completed",pending:"Pending",notRequired:"Not Required"},JK=[{title:"Skill Type",dataIndex:"skillType"},{title:"Status",dataIndex:"status"},{title:"Contests",dataIndex:"contests"},{title:"Mock Interview",dataIndex:"mockInterview"}],ZK=({status:e})=>b.createElement(ha,{color:e===Mr.completed?"success":"warning"},e),eq=({contestDetails:e})=>{if(!e)return Mr.notRequired;const{cleared:t,joinLink:n}=e;return t?b.createElement(Zt,null,b.createElement("div",{className:U(Ko.dot,Ko.successDot)}),b.createElement(kt.Text,null,"Success")):b.createElement(kt.Link,{href:n,underline:!0},"Attempt Contest")},tq=({mockInterviewDetails:e,skillId:t,skillName:n})=>{const{openMockInterviewModal:r}=ln();if(!e)return Mr.notRequired;const{cleared:o}=e;return o?b.createElement(Zt,null,b.createElement("div",{className:U(Ko.dot,Ko.successDot)}),b.createElement(kt.Text,null,"Success")):b.createElement(kt.Link,{onClick:()=>r(t,n),underline:!0},"Schedule Interview")},nq=()=>{const{jobData:e}=ln(),{eligibilityCriteria:t}=e||{},{reasons:n}=t||{},r=n==null?void 0:n.find(i=>i.label==="skills");if(!r)return null;const o=Object.entries(r.data).map(([i,a])=>{const l=a.contests,c=l?a.contests.cleared?Mr.completed:Mr.pending:Mr.notRequired,u=a.skills,d=u?a.skills.cleared?Mr.completed:Mr.pending:Mr.notRequired,f=[c,d].every(m=>m!==Mr.pending)?Mr.completed:Mr.pending;return{skillType:i,status:b.createElement(ZK,{status:f}),contests:b.createElement(eq,{contestDetails:l}),mockInterview:b.createElement(tq,{mockInterviewDetails:u,skillId:a.skillId,skillName:a.skillName})}});return b.createElement(sv,{title:()=>b.createElement(kt.Text,{strong:!0},"Scaler certifications you need to apply"),columns:JK,dataSource:o,pagination:!1})},jl={added:"Added",missing:"Missing"},rq=[{title:"Stack Type",dataIndex:"stackType"},{title:"Experience (Yrs)",dataIndex:"experience"},{title:"Status",dataIndex:"status"},{title:"",dataIndex:"action"}],oq=({status:e})=>b.createElement(Zt,null,b.createElement("div",{className:U(Ko.dot,{[Ko.successDot]:e===jl.added,[Ko.errorDot]:e===jl.missing})}),b.createElement(kt.Text,null,e)),iq=({status:e})=>{const{openResume:t}=ln();return e===jl.added?null:b.createElement(kt.Link,{onClick:t,underline:!0},"Add Skill")},aq=()=>{const{jobData:e}=ln(),{eligibilityCriteria:t}=e||{},{reasons:n}=t||{},r=n==null?void 0:n.find(i=>i.label==="tech_stacks");if(!r)return null;const o=Object.entries(r.data).map(([i,a])=>{var c;const l=(c=a.data)!=null&&c.cleared?jl.added:jl.missing;return{stackType:i,experience:`${Math.floor(a.proficiencyPeriod/12)}+`,status:b.createElement(oq,{status:l}),action:b.createElement(iq,{status:l})}});return b.createElement(sv,{title:()=>b.createElement(kt.Text,{strong:!0},"Skills and Toolsets in your Resume"),columns:rq,dataSource:o,pagination:!1})},lq=(e,t)=>{const n=`${Math.floor(e/12)}y`,r=e%12===0?"":` ${e%12}m`,o=`${n}${r}`;if(!t)return`${o}+ Experience`;const i=`${Math.floor(t/12)}y`,a=t%12===0?"":`${t%12}m`;return`${o} - ${i} ${a} Experience`},sq=e=>e===0?"Immediate":e==null?"NA":`${e} days`,cq={placed_mentee:()=>"CTC greater than 1.6x of current offer",diversity:()=>"Female Candidates Only",experience:({minExperience:e,maxExperience:t})=>lq(e,t),notice_period:({preferredNoticePeriod:e})=>`${sq(e)} Notice Period`},Lv={eligible:"Eligible",ineligible:"Ineligible"},uq=[{title:"Requirement",dataIndex:"requirement"},{title:"Details",dataIndex:"details"},{title:"Status",dataIndex:"status"}],dq=({status:e})=>e===Lv.eligible?b.createElement(ha,{color:"success"},"Eligible"):b.createElement(ha,{color:"error"},"Ineligible"),fq=()=>{const{jobData:e}=ln(),{eligibilityCriteria:t}=e||{},{reasons:n}=t||{},r=n==null?void 0:n.filter(i=>i.label!=="skills"&&i.showText);if(!r)return null;const o=r.map(i=>{const a=i.isEligible?Lv.eligible:Lv.ineligible;return{requirement:Dv(i.label),details:cq[i.label](e),status:b.createElement(dq,{status:a})}});return b.createElement(sv,{title:()=>b.createElement(kt.Text,{strong:!0},"Skills and Toolsets in your Resume"),columns:uq,dataSource:o,pagination:!1})},mq=()=>{const{jobData:e}=ln(),{eligibilityCriteria:t}=e||{};return t?b.createElement(Zt,{direction:"vertical",size:"large",className:Ko.container},b.createElement(kt.Title,{level:4},"Job Check-list"),b.createElement(nq,null),b.createElement(aq,null),b.createElement(fq,null)):null},zO={bodyContainer:"_bodyContainer_1nalq_1",tabs:"_tabs_1nalq_5"},pq=()=>{var a;const{activeTab:e,setActiveTab:t,jobData:n}=ln(),{applicationTimeline:r}=n||{},i=[((a=r==null?void 0:r.timeline)==null?void 0:a.length)>0&&{key:ti.APPLICATION_TIMELINE.key,label:ti.APPLICATION_TIMELINE.label,children:b.createElement(FK,null)},{key:ti.ABOUT_ROLE.key,label:ti.ABOUT_ROLE.label,children:b.createElement(YK,null)},{key:ti.REQUIREMENTS.key,label:ti.REQUIREMENTS.label,children:b.createElement(mq,null)}].filter(Boolean);return b.createElement("div",{className:zO.bodyContainer},b.createElement(vp,{activeKey:e,className:zO.tabs,items:i,onChange:t}))},vq=Xr.injectEndpoints({endpoints:e=>({updateApplicationStatus:e.mutation({query:t=>({url:"/job-tracker/update-application/",method:"PATCH",body:t}),invalidatesTags:(t,n,{job_profile_id:r})=>[{type:"JobPreview",id:r}]})})}),{useUpdateApplicationStatusMutation:BO}=vq,qo={appliedButton:"_appliedButton_1f028_1",saveButton:"_saveButton_1f028_9",savedButton:"_savedButton_1f028_9",jobActions:"_jobActions_1f028_30",withdrawalReasonForm:"_withdrawalReasonForm_1f028_36",warningIcon:"_warningIcon_1f028_41",withdrawalReasonRadioGroup:"_withdrawalReasonRadioGroup_1f028_45",withdrawnText:"_withdrawnText_1f028_52"},gq=({withdrawalReason:e,setWithdrawalReason:t,withdrawalMessage:n,setWithdrawalMessage:r})=>{const o=a=>{const l=a.target.value;t(l),l!=="Other"&&r("")},i=a=>{r(a.target.value)};return b.createElement(b.Fragment,null,b.createElement(kt.Text,null,"Please note that once withdrawn you will not be allowed to apply for this job again"),b.createElement(Vt,{className:qo.withdrawalReasonForm},b.createElement(Vt.Item,{layout:"vertical",label:"Select reason"},b.createElement(gr.Group,{className:qo.withdrawalReasonRadioGroup,onChange:o,value:e},wa.map(a=>b.createElement(gr,{key:a.value,value:a.value},a.label))),e==="Other"&&b.createElement(Vt.Item,null,b.createElement(vi.TextArea,{value:n,onChange:i,placeholder:"Please specify your reason"})))))},hq=()=>{var v;const{jobId:e,jobData:t,refetch:n}=ln(),{applicationStatus:r,appliedOn:o}=t||{},[i,a]=b.useState(!1),[l,c]=b.useState((v=wa[0])==null?void 0:v.value),[u,d]=b.useState(""),[f]=BO(),{message:m}=zS.useApp(),p=()=>ar(this,null,function*(){var C,x;const y=yield f({job_profile_id:e,update_action:"withdraw",message:u||l});(C=y==null?void 0:y.data)!=null&&C.success?(m.success("Application withdrawn successfully"),a(!1),c((x=wa[0])==null?void 0:x.value),d(""),n()):m.error("Failed to withdraw application")}),g=()=>{var y;a(!1),c((y=wa[0])==null?void 0:y.value),d("")},h=()=>{var y;c((y=wa[0])==null?void 0:y.value),d(""),a(!0)};return r===Oi.WITHDRAWN?b.createElement("div",{className:qo.withdrawnText},b.createElement(To,null),"Your Application has been Withdrawn"):o&&!_K.includes(r)?b.createElement(b.Fragment,null,b.createElement(rn,{icon:b.createElement("img",{src:Av.exit,alt:"exit"}),onClick:h,className:qo.withdrawButton,ghost:!0,type:"primary",size:"large"},"Withdraw Application"),b.createElement(F1,{title:b.createElement(Zt,null,b.createElement(O2,{className:qo.warningIcon}),b.createElement(kt.Text,null,"Withdraw My Application")),open:i,onOk:p,onCancel:g},b.createElement(gq,{withdrawalReason:l,setWithdrawalReason:c,withdrawalMessage:u,setWithdrawalMessage:d}))):null},bq=()=>{const{jobId:e,jobData:t,refetch:n}=ln(),[r,{isLoading:o}]=BO(),{applicationStatus:i,appliedOn:a}=t||{},l=i===Oi.SAVED,c=()=>ar(this,null,function*(){var d;const u=yield r({job_profile_id:e,update_action:"save"});(d=u==null?void 0:u.data)!=null&&d.success?(Hr.success("Application saved successfully"),n()):Hr.error("Failed to save application")});return a?null:l?b.createElement(rn,{icon:b.createElement("img",{src:Av.bookmark,alt:"bookmark"}),type:"text",size:"large",disabled:!0},"Saved"):b.createElement(rn,{icon:b.createElement(Sb,null),type:"primary",ghost:!0,size:"large",onClick:c,loading:o},"Save")},yq=()=>{const{jobData:e,eligibilityCriteria:t}=ln(),{appliedOn:n,applicationStatus:r}=e||{},{isEligible:o}=t||{},i=r===Oi.WITHDRAWN,a=()=>{};return i?null:n?b.createElement(rn,{icon:b.createElement(To,null),className:qo.appliedButton,type:"text",size:"large"},"Applied"):b.createElement(rn,{icon:b.createElement(hb,null),onClick:a,className:qo.applyButton,type:"primary",size:"large",disabled:!o},"Apply Now")},Cq=()=>b.createElement("div",{className:qo.jobActions},b.createElement(yq,null),b.createElement(bq,null),b.createElement(hq,null)),Io={basicInfo:"_basicInfo_2vzae_1",companyInfo:"_companyInfo_2vzae_12",companyName:"_companyName_2vzae_18",container:"_container_2vzae_25",extraDetails:"_extraDetails_2vzae_33",extraDetailsDivider:"_extraDetailsDivider_2vzae_44",jobTitle:"_jobTitle_2vzae_51",jobLocation:"_jobLocation_2vzae_58"},Sq=()=>{const{companyData:e}=ln(),{logo:t,name:n}=e||{};return b.createElement("div",{className:Io.companyInfo},b.createElement(mu,{logo:t,companyName:n,size:50}),b.createElement("div",{className:Io.companyName},n))},xq=()=>{const{jobData:e}=ln(),{title:t}=e||{};return b.createElement(kt.Text,{ellipsis:!0,className:Io.jobTitle},t)},Eq=()=>{const{jobData:e}=ln(),{preferredCities:t}=e||{},n=_v(t);return b.createElement("div",{className:Io.jobLocation},n)},$q=()=>b.createElement("div",{className:Io.basicInfo},b.createElement(Sq,null),b.createElement(xq,null),b.createElement(Eq,null)),wq=()=>{const{jobData:e}=ln(),{minCtc:t,maxCtc:n,openForDiscussionCtc:r,isInternship:o,stipend:i,preferredNoticePeriod:a,minExperience:l,maxExperience:c}=e||{},u=Nv({minCtc:t,maxCtc:n,openForDiscussionCtc:r,isInternship:o,stipend:i}),d=Ov(l,c),f=Iv(a);return b.createElement("div",{className:Io.extraDetails},[u,d,f].filter(Boolean).map((m,p)=>b.createElement(b.Fragment,{key:p},b.createElement("div",{className:Io.detail},m),b.createElement(I$,{size:"large",type:"vertical",className:Io.extraDetailsDivider}))))},Oq=()=>b.createElement("div",{className:Io.container},b.createElement($q,null),b.createElement(wq,null),b.createElement(Cq,null)),Mn={container:"_container_kgogb_1",actionAlert:"_actionAlert_kgogb_14",ineligible:"_ineligible_kgogb_24",stepsToApply:"_stepsToApply_kgogb_29",actionAlertIcon:"_actionAlertIcon_kgogb_35",actionAlertTitle:"_actionAlertTitle_kgogb_46",eligible:"_eligible_kgogb_52",title:"_title_kgogb_57",highlightsList:"_highlightsList_kgogb_64",keywordsList:"_keywordsList_kgogb_72",keyword:"_keyword_kgogb_72",exceptions:"_exceptions_kgogb_101",exceptionsIconContainer:"_exceptionsIconContainer_kgogb_107",exceptionsIcon:"_exceptionsIcon_kgogb_107",exceptionsTitle:"_exceptionsTitle_kgogb_116",exception:"_exception_kgogb_101",exceptionItem:"_exceptionItem_kgogb_124",exceptionsList:"_exceptionsList_kgogb_131"},Nq=({eligibilityStatus:e,metric:t,onScrollToEnd:n})=>{const{setActiveTab:r}=ln(),o=()=>{r(ti.REQUIREMENTS.key),n()};return e===xv.ineligible?b.createElement("div",{className:U(Mn.actionAlert,Mn.ineligible)},b.createElement(kP,null),b.createElement("span",{className:Mn.actionAlertTitle},"Unfortunately! Your profile does not have the relevant years of experience for this role")):e===xv.steps_to_apply?b.createElement(RO,{icon:b.createElement(G_,{className:Mn.actionAlertIcon}),title:`Eligible to apply in ${t} more steps!`,description:"Complete these three test to become eligible to apply!",buttonText:"Complete Tasks",buttonIcon:b.createElement(Dd,null),className:Mn.stepsToApply,onClick:o}):null},Iq=({highlights:e})=>b.createElement(b.Fragment,null,b.createElement("div",{className:Mn.title},"Top Reasons to Apply"),b.createElement("ul",{className:Mn.highlightsList},e==null?void 0:e.map(t=>b.createElement("li",{key:t,className:Mn.highlight},b.createElement("span",{className:Mn.highlightText},t))))),_q=({keywords:e,eligibilityStatus:t})=>b.createElement("div",{className:Mn.keywordsList},e==null?void 0:e.map((n,r)=>b.createElement("div",{key:r,className:U(Mn.keyword,Mn[Mv(t)])},n))),Pq=({exceptionalJob:e})=>{if(!e)return null;const t=["Considering your current profile and preferences, you seem to be a right fit","Which means that you get to apply to this job irrespective of the requirements mentioned below","So in case this matches what you are looking for, please apply"];return b.createElement("div",{className:Mn.exceptions},b.createElement("div",{className:Mn.exceptionsIconContainer},b.createElement(b2,{size:20,twoToneColor:"#FAAD14",className:Mn.exceptionsIcon})),b.createElement("div",null,b.createElement("div",{className:Mn.exceptionsTitle},"We've made an exception for you!"),b.createElement("ul",{className:Mn.exceptionsList},t.map((n,r)=>b.createElement("li",{className:[Mn.exception],key:r},n)))))},Tq=()=>{const{jobData:e,highlights:t,eligibilityCriteria:n}=ln(),r=b.useRef(null),{highlights:o,keywords:i}=t||(e==null?void 0:e.highlights)||{},{tag:a,count:l}=Ev(e,n||{}),c=()=>{if(r.current&&typeof window!="undefined"){const d=r.current.getBoundingClientRect(),f=d.top+window.pageYOffset,m=d.height,p=window.innerHeight,g=f+m-p/2;window.scrollTo({top:g,behavior:"smooth"})}};return e!=null&&e.appliedOn||!(o!=null&&o.length)?null:b.createElement("div",{ref:r,className:U(Mn.container,Mn[a])},b.createElement(Nq,{eligibilityStatus:a,metric:l,onScrollToEnd:c}),b.createElement(Iq,{highlights:o}),b.createElement(_q,{keywords:i,eligibilityStatus:a}),b.createElement(Pq,{exceptionalJob:e==null?void 0:e.exceptionalJob}))},Mq=Xr.injectEndpoints({endpoints:e=>({issueScreeningCall:e.mutation({query:()=>({url:"/api/v3/careers-hub/screening-call/",method:"POST"})})})}),{useIssueScreeningCallMutation:Dq}=Mq,dZ={screeningCallBanner:"_screeningCallBanner_1ltmt_1",screeningCallIcon:"_screeningCallIcon_1ltmt_7",screeningCallButtonIcon:"_screeningCallButtonIcon_1ltmt_12"},Aq=()=>{ln();const[e,{isLoading:t}]=Dq();return b.useCallback(()=>ar(this,null,function*(){var r;const n=yield e();(r=n==null?void 0:n.data)!=null&&r.url?globalThis.open(n.data.url,"_blank"):Hr.error("Failed to initiate screening call. Please try again.")}),[e]),null},yu={expandedJobView:"_expandedJobView_1lt4c_2",loadingCard:"_loadingCard_1lt4c_18"},Rq=()=>b.createElement("div",{className:yu.expandedJobView},b.createElement(Oq,null),b.createElement(Tq,null),b.createElement(Aq,null),b.createElement(LO,null),b.createElement(pq,null)),jq=({country:e,openMockInterviewModal:t,openResume:n,jobId:r,isActive:o,currentTab:i})=>{var u;const{data:a,isLoading:l,error:c}=DO(r,{skip:!r||!o});return!o||!r?null:l?b.createElement(Fc,{className:`${yu.expandedJobView} ${yu.loadingCard}`},b.createElement(Yc,{size:"large"})):c?b.createElement(Fc,{className:yu.expandedJobView},b.createElement(wf,{type:"error",message:"Failed to load job details",description:((u=c==null?void 0:c.data)==null?void 0:u.message)||(c==null?void 0:c.message)||"Please try again later",showIcon:!0})):a?b.createElement(zS,null,b.createElement(RK,{country:e,openMockInterviewModal:t,openResume:n,jobId:r,skip:!o},b.createElement(Rq,{currentTab:i}))):null},Cu={content:"_content_koeg3_1",header:"_header_koeg3_8",sider:"_sider_koeg3_16",layout:"_layout_koeg3_20"},{Header:Lq,Sider:zq,Content:Bq}=Np;function Su({header:e,children:t,className:n,sider:r,siderWidth:o}){return b.createElement(Np,{className:n},b.createElement(Lq,{className:Cu.header},e||"Header"),b.createElement(Np,{className:Cu.layout},b.createElement(Bq,{className:Cu.content},t),r&&b.createElement(zq,{className:Cu.sider,width:o||"25%"},r)))}Su.propTypes={children:pe.node.isRequired,className:pe.string,sider:pe.node,siderWidth:pe.oneOfType([pe.string,pe.number])},Su.defaultProps={className:"",sider:null,siderWidth:"25%"};const Ll={tagsSection:"_tagsSection_gf6im_1",tag:"_tag_gf6im_1",activeTag:"_activeTag_gf6im_22",icon:"_icon_gf6im_29"};function kq(){const e=wt.useDispatch(),t=wt.useSelector(a=>{var l,c;return((c=(l=a.scalantCareerHub)==null?void 0:l.filter)==null?void 0:c.tab)||"all"}),n=wt.useSelector(a=>{var l,c;return((c=(l=a.scalantCareerHub)==null?void 0:l.dashboard)==null?void 0:c.processCounts)||{}}),r=a=>{const l=pn[a];l&&e(DI(l))},o=a=>{const l=pn[a];return t===l},i=a=>{const l=A2[a];return n[l]||0};return b.createElement("div",{className:Ll.tagsSection},Object.keys(zd).map(a=>b.createElement(ha,{className:U(Ll.tag,{[Ll.activeTag]:o(a)}),key:a,onClick:()=>r(a)},b.createElement(zd[a].icon,{className:Ll.icon}),zd[a].label," ",b.createElement("span",{className:Ll.count},"(",i(a),")"))))}const Fq={processCounts:Mb,filterModalOpen:!1,jobAlertModalOpen:!1},kO=We.createSlice({name:"dashboard",initialState:Fq,reducers:{setProcessCounts:(e,t)=>{e.processCounts=t.payload},openFilterModal:e=>{e.filterModalOpen=!0},closeFilterModal:e=>{e.filterModalOpen=!1},openJobAlertModal:e=>{e.jobAlertModalOpen=!0},closeJobAlertModal:e=>{e.jobAlertModalOpen=!1}}}),{setProcessCounts:Hq,openFilterModal:Vq,closeFilterModal:Wq,openJobAlertModal:Kq,closeJobAlertModal:qq}=kO.actions,Gq=kO.reducer,FO={jobAlert:"_jobAlert_sfx7a_1"};function Uq(){const e=wt.useDispatch(),t=()=>{e(Kq())};return b.createElement("div",{className:FO.jobAlert,onClick:t},b.createElement(Td,{className:FO.icon}),"Job Alerts")}const Xq={};function Qq(){const e=wt.useDispatch(),t=wt.useSelector(a=>{var l,c;return((c=(l=a.scalantCareerHub)==null?void 0:l.filter)==null?void 0:c.sortings)||[]}),n=b.useMemo(()=>R2(t),[t]),r=a=>{const l=ps[a];l&&e(jI([l.mapping]))},o=Object.values(ps).map(a=>({value:a.value,label:a.value===n?`Sorted By: ${a.label}`:a.label})),i=a=>{const l=ps[a.value];return l?l.label:a.label};return b.createElement(yn,{className:Xq.sorting,value:n,onChange:r,suffixIcon:b.createElement(ms,null),options:o,optionRender:i})}const Yq={};function Jq(){const e=wt.useDispatch(),t=()=>{e(Vq())};return b.createElement(rn,{type:"primary",className:Yq.filter,onClick:t},"Filters ",b.createElement(ms,null))}const zv={search:"_search_hhvxj_1",iconContainer:"_iconContainer_hhvxj_7",input:"_input_hhvxj_20",slideIn:"_slideIn_hhvxj_1"};function Zq(){const e=wt.useDispatch(),t=wt.useSelector(f=>{var m,p,g;return((g=(p=(m=f.scalantCareerHub)==null?void 0:m.filter)==null?void 0:p.filters)==null?void 0:g.keyword)||""}),[n,r]=b.useState(!1),[o,i]=b.useState(t),a=b.useRef(null),l=b.useRef(null);b.useEffect(()=>{i(t)},[t]),b.useEffect(()=>{n&&a.current&&a.current.focus()},[n]);const c=()=>{r(!0)},u=f=>{const m=f.target.value;i(m),l.current&&clearTimeout(l.current),l.current=setTimeout(()=>{e(AI(m))},300)},d=()=>{o.trim()||r(!1)};return b.useEffect(()=>()=>{l.current&&clearTimeout(l.current)},[]),b.createElement("div",{className:zv.search},n||o?b.createElement(vi,{ref:a,className:zv.input,placeholder:"Search for job or Company Name",value:o,onChange:u,onBlur:d,suffix:b.createElement(Aa,null)}):b.createElement("div",{className:zv.iconContainer,onClick:c},b.createElement(Aa,null)))}const eG={actions:"_actions_nxp1u_1"};function tG(){return b.createElement("div",{className:eG.actions},b.createElement(Uq,null),b.createElement(Qq,null),b.createElement(Jq,null),b.createElement(Zq,null))}const nG={jobsHeaderContainer:"_jobsHeaderContainer_1un8f_1"};function xu({className:e}){return b.createElement("div",{className:U(e,nG.jobsHeaderContainer)},b.createElement(kq,null),b.createElement(tG,null))}xu.propTypes={className:pe.string},xu.defaultProps={className:""};function Eu({className:e}){return b.createElement("div",{className:e},b.createElement("h1",{style:{textAlign:"center"}},"Profile Details"))}Eu.propTypes={className:pe.string},Eu.defaultProps={className:""};function $u({country:e,openMockInterviewModal:t,openResume:n,jobId:r,className:o}){return r?b.createElement("div",{className:o},b.createElement(jq,{country:e,openMockInterviewModal:t,openResume:n,jobId:r,isActive:!!r,currentTab:"all"})):null}$u.propTypes={country:pe.string,openMockInterviewModal:pe.func,openResume:pe.func,jobId:pe.oneOfType([pe.string,pe.number]),className:pe.string},$u.defaultProps={jobId:null,className:""};const Bv=e=>{if(!e||!e.data||!Array.isArray(e.data))return[];const t={};return e.included&&Array.isArray(e.included)&&e.included.forEach(n=>{n.type==="company"&&n.attributes&&(t[n.id]=n.attributes)}),e.data.map(n=>{if(n.type!=="job_profile"||!n.attributes)return null;const r=n.attributes,o=n.relationships||{};let i=null;if(o.company&&o.company.data){const l=o.company.data.id;i=t[l]||null}return{id:parseInt(n.id,10),title:r.title||"",name:r.title||"",slug:r.slug||"",jobDesc:r.job_desc||"",jobDescText:r.job_desc_text||"",minExperience:r.min_experience?parseFloat(r.min_experience):null,maxExperience:r.max_experience?parseFloat(r.max_experience):null,minCtc:r.min_ctc?parseFloat(r.min_ctc):null,maxCtc:r.max_ctc?parseFloat(r.max_ctc):null,validTill:r.valid_till||null,createdAt:r.created_at||null,jobType:r.job_type||null,preferredCities:r.preferred_cities||"",preferredNoticePeriod:r.preferred_notice_period||null,meritBasedSkills:r.merit_based_skills||[],contestSkills:r.contest_skills||[],applicationStatus:r.application_status||null,expiry:r.expiry||r.valid_till||null,applicationId:r.application_id||null,userCompanyStatus:r.user_company_status||null,applicationLastUpdatedAt:r.application_last_upated_at||null,jobSource:r.job_source||null,jobProfileId:r.job_profile_id||null,jobProfileStatus:r.job_profile_status||"active",datePostedOn:r.date_posted_on||null,openForDiscussionCtc:r.open_for_discussion_ctc||!1,appliedOn:r.applied_on||null,seniorityLevel:r.seniority_level||null,roleType:r.role_type||"full_time",duration:r.duration||null,stipend:r.stipend||null,eligibilityCriteria:r.eligibility_criteria||{is_eligible:!1,reasons:[]},exceptionalJob:r.exceptional_job||!1,isRelevant:r.is_relevant||!1,isInternship:r.role_type==="internship",company:i?[parseInt(o.company.data.id,10)]:[],logo:(i==null?void 0:i.logo)||null,companyName:(i==null?void 0:i.name)||null,companySlug:(i==null?void 0:i.slug)||null,companyLocation:(i==null?void 0:i.location)||null,companyWebsite:(i==null?void 0:i.company_website)||null,companyVision:(i==null?void 0:i.company_vision)||null,companyTagline:(i==null?void 0:i.tagline)||null,companyCategory:(i==null?void 0:i.category)||null,companyEmployeeCount:(i==null?void 0:i.employee_count)||null}}).filter(Boolean)},kv=e=>{const t={};return e!=null&&e.included&&Array.isArray(e.included)&&e.included.forEach(n=>{n.type==="company"&&n.attributes&&(t[n.id]=ur({id:n.id},n.attributes))}),t},rG=Xr.injectEndpoints({endpoints:e=>({fetchAllJobs:e.query({query:(t={})=>({url:"/job-tracker/fetch-all-jobs/",method:"POST",body:t}),transformResponse:t=>{const n=Bv(t),r=kv(t);return{jobs:n,companiesMap:r,results:n}},providesTags:["Jobs"]}),fetchPipelineJobs:e.query({query:(t={})=>({url:"/job-tracker/fetch-pipeline-jobs/",method:"POST",body:t}),transformResponse:t=>{const n=Bv(t),r=kv(t);return{jobs:n,companiesMap:r,results:n}},providesTags:["PipelineJobs"]}),fetchRelevantJobs:e.query({query:(t={})=>({url:"/job-tracker/relevancy/",method:"POST",body:t}),transformResponse:t=>{const n=Bv(t),r=kv(t);return{jobs:n,companiesMap:r,results:n}},providesTags:["RelevantJobs"]})})}),{useFetchAllJobsQuery:oG,useFetchPipelineJobsQuery:HO,useFetchRelevantJobsQuery:iG}=rG,aG={selectedJobId:null},VO=We.createSlice({name:"layout",initialState:aG,reducers:{setSelectedJobId:(e,t)=>{e.selectedJobId=t.payload},clearSelectedJobId:e=>{e.selectedJobId=null}}}),{setSelectedJobId:lG,clearSelectedJobId:sG}=VO.actions,cG=VO.reducer,fo={heading:"_heading_1jbzw_1",spinner:"_spinner_1jbzw_8",alert:"_alert_1jbzw_14",header:"_header_1jbzw_18",sentinel:"_sentinel_1jbzw_23",loadingMore:"_loadingMore_1jbzw_30"},{Title:wu,Text:uG}=kt,WO={[pn.relevant]:"Unlocked Jobs",[pn.all]:"All Jobs",[pn.saved]:"Saved Jobs",[pn.applied]:"Applied Jobs"};function Si({className:e,currentTab:t,jobs:n=[],companiesMap:r={},isLoading:o=!1,error:i=null,isFetchingMore:a=!1,hasMore:l=!0}){var y;const c=wt.useDispatch(),u=wt.useSelector(C=>C.scalantCareerHub.layout.selectedJobId),d=wt.useSelector(C=>{var x,E;return((E=(x=C.scalantCareerHub)==null?void 0:x.dashboard)==null?void 0:E.processCounts)||{}}),f=l!==void 0?l:!0,{sentinelRef:m}=zI({hasMore:f,isLoading:o,isFetchingMore:a}),p=C=>{c(u===C?sG():lG(C))},g=()=>ar(this,null,function*(){return Promise.resolve()}),h=WO[t]||WO[pn.all],v=()=>d[t]||0;return o?b.createElement("div",{className:e},b.createElement(wu,{level:2,className:fo.heading},h),b.createElement(Yc,{size:"large",className:fo.spinner})):i?b.createElement("div",{className:e},b.createElement(wu,{level:2,className:fo.heading},h),b.createElement(wf,{message:"Error loading jobs",description:((y=i==null?void 0:i.data)==null?void 0:y.message)||(i==null?void 0:i.message)||"Failed to fetch jobs. Please try again later.",type:"error",showIcon:!0,className:fo.alert})):!n||n.length===0?b.createElement("div",{className:e},b.createElement(wu,{level:2,className:fo.heading},h),b.createElement(wf,{message:"No jobs found",description:"There are no jobs available at the moment.",type:"info",showIcon:!0,className:fo.alert})):b.createElement("div",{className:e},b.createElement(Zt,{direction:"vertical",className:fo.header},b.createElement(wu,{level:4,className:fo.heading},h," ",b.createElement(ha,{color:"green"},v()," Found")),b.createElement(uG,null,"Based on your profile, preferences, and activity like applies, searches, and saves")),b.createElement("div",null,n.map(C=>b.createElement(hu,{key:C.id,jobData:C,isActive:u===C.id,currentTab:t,onClick:p,onSave:g,companiesList:r,userCountry:"IN",selectedJobId:u})),f&&b.createElement("div",{ref:m,className:fo.sentinel},a&&b.createElement("div",{className:fo.loadingMore},b.createElement(Yc,{size:"small"}),b.createElement("span",null,"Loading more jobs...")))))}Si.propTypes={className:pe.string,currentTab:pe.string,jobs:pe.arrayOf(pe.object),companiesMap:pe.object,isLoading:pe.bool,error:pe.object,isFetchingMore:pe.bool,hasMore:pe.bool},Si.defaultProps={className:"",currentTab:pn.all,jobs:[],companiesMap:{},isLoading:!1,error:null,isFetchingMore:!1,hasMore:!0};const dG={relevantJobsPage:"_relevantJobsPage_19xbf_1"};function fG(){const e=os(),{data:t,isLoading:n,error:r,isFetching:o}=iG(e),{accumulatedJobs:i,accumulatedCompaniesMap:a,hasMore:l,isFetchingMore:c,isLoading:u}=vs(t,o,n,pn.relevant);return b.createElement("div",{className:dG.relevantJobsPage},b.createElement(Si,{currentTab:pn.relevant,jobs:i,companiesMap:a,isLoading:u,error:r,isFetchingMore:c,hasMore:l}))}const mG={allJobsPage:"_allJobsPage_10f3p_1"};function pG(){const e=os(),{data:t,isLoading:n,error:r,isFetching:o}=oG(e),{accumulatedJobs:i,accumulatedCompaniesMap:a,hasMore:l,isFetchingMore:c,isLoading:u}=vs(t,o,n,pn.all);return b.createElement("div",{className:mG.allJobsPage},b.createElement(Si,{currentTab:pn.all,jobs:i,companiesMap:a,isLoading:u,error:r,isFetchingMore:c,hasMore:l}))}const vG={savedJobsPage:"_savedJobsPage_km19z_1"};function gG(){const e=os(),{data:t,isLoading:n,error:r,isFetching:o}=HO(ur({type:pn.saved},e)),{accumulatedJobs:i,accumulatedCompaniesMap:a,hasMore:l,isFetchingMore:c,isLoading:u}=vs(t,o,n,pn.saved);return b.createElement("div",{className:vG.savedJobsPage},b.createElement(Si,{currentTab:pn.saved,jobs:i,companiesMap:a,isLoading:u,error:r,isFetchingMore:c,hasMore:l}))}const hG={appliedJobsPage:"_appliedJobsPage_lw2yt_1"};function bG(){const e=os(),{data:t,isLoading:n,error:r,isFetching:o}=HO(ur({type:pn.applied},e)),{accumulatedJobs:i,accumulatedCompaniesMap:a,hasMore:l,isFetchingMore:c,isLoading:u}=vs(t,o,n,pn.applied);return b.createElement("div",{className:hG.appliedJobsPage},b.createElement(Si,{currentTab:pn.applied,jobs:i,companiesMap:a,isLoading:u,error:r,isFetchingMore:c,hasMore:l}))}const KO={role_type:void 0,company_ids:[],job_title:[],job_category:[],seniority_level:[],company_categories:[],location:[],min_ctc:void 0,min_stipend:void 0,min_duration:void 0,notice_period:void 0,date_posted_on:void 0,mbe_skill_ids:{},experience_skill_ids:[],min_experience:void 0,max_experience:void 0},qO=We.createSlice({name:"filterForm",initialState:KO,reducers:{updateFormField:(e,t)=>{const{field:n,value:r}=t.payload;e[n]=r},resetForm:()=>KO,setFormData:(e,t)=>ur(ur({},e),t.payload),addRatingFilterInput:e=>{(!e.mbe_skill_ids||typeof e.mbe_skill_ids!="object")&&(e.mbe_skill_ids={});const t=`mbe_skill_${Date.now()}_${Math.random().toString(36).substr(2,9)}`;e.mbe_skill_ids[t]={subject:null,rating:null}},deleteRatingFilterInput:(e,t)=>{const{inputFieldKey:n}=t.payload;e.mbe_skill_ids&&e.mbe_skill_ids[n]&&delete e.mbe_skill_ids[n]},updateRatingFilterInput:(e,t)=>{const{inputFilterSubKey:n,value:r}=t.payload;(!e.mbe_skill_ids||typeof e.mbe_skill_ids!="object")&&(e.mbe_skill_ids={});const o=n.split("_").slice(-1)[0],i=n.replace(`_${o}`,"");e.mbe_skill_ids[i]||(e.mbe_skill_ids[i]={subject:null,rating:null}),o==="subject"?e.mbe_skill_ids[i].subject=r:o==="rating"&&(e.mbe_skill_ids[i].rating=r)}}}),{updateFormField:yG,resetForm:CG,setFormData:BZ,addRatingFilterInput:GO,deleteRatingFilterInput:SG,updateRatingFilterInput:UO}=qO.actions,xG=qO.reducer,XO=({fieldName:e,subjectOptions:t,ratingOptions:n})=>{const r=wt.useDispatch(),i=wt.useSelector(h=>h.scalantCareerHub.filterForm)[e],a=b.useMemo(()=>i||{},[i]),l=b.useMemo(()=>typeof a=="object"&&!Array.isArray(a)?a:{},[a]);b.useEffect(()=>{(!a||Object.keys(l).length===0)&&r(GO())},[a,l,r]);const c=b.useMemo(()=>Object.values(l).map(h=>{var v;return((v=h==null?void 0:h.subject)==null?void 0:v.key)||(h==null?void 0:h.subject)}).filter(Boolean),[l]),u=b.useMemo(()=>t.filter(h=>!c.includes(h.key)),[t,c]),d=b.useCallback(()=>{r(GO())},[r]),f=b.useCallback(h=>{r(SG({inputFieldKey:h}))},[r]),m=b.useCallback((h,v)=>{const y=t.find(C=>C.key===v);r(UO({inputFilterSubKey:`${h}_subject`,value:y||v}))},[t,r]),p=b.useCallback((h,v)=>{r(UO({inputFilterSubKey:`${h}_rating`,value:v}))},[r]),g=Object.keys(l);return b.createElement(Zt,{direction:"vertical",style:{width:"100%"},size:"middle"},g.map(h=>{var E;const v=l[h],y=((E=v==null?void 0:v.subject)==null?void 0:E.key)||(v==null?void 0:v.subject),C=v==null?void 0:v.rating,x=[...t.filter(S=>S.key===y),...u];return b.createElement(wo,{key:h,gutter:16,align:"middle"},b.createElement(jn,{span:10},b.createElement(yn,{placeholder:"Select skill",value:y,onChange:S=>m(h,S),showSearch:!0,filterOption:(S,$)=>{var O;return((O=$==null?void 0:$.label)!=null?O:"").toLowerCase().includes(S.toLowerCase())},options:x.map(S=>({label:S.value,value:S.key}))})),b.createElement(jn,{span:10},b.createElement(yn,{placeholder:"Select rating",value:C,onChange:S=>p(h,S),options:n.map(S=>({label:S.label,value:S.value}))})),b.createElement(jn,{span:4},b.createElement(Zt,null,b.createElement(rn,{type:"text",icon:b.createElement(fb,null),onClick:d,style:{color:"#1890ff"}}),g.length>1&&b.createElement(rn,{type:"text",icon:b.createElement(zh,null),onClick:()=>f(h),danger:!0}))))}))};XO.propTypes={fieldName:pe.string.isRequired,subjectOptions:pe.arrayOf(pe.shape({key:pe.oneOfType([pe.string,pe.number]),value:pe.string})).isRequired,ratingOptions:pe.arrayOf(pe.shape({value:pe.oneOfType([pe.string,pe.number]),label:pe.string})).isRequired};const Go={drawerContent:"_drawerContent_fqkgw_1",filterForm:"_filterForm_fqkgw_5",drawerHeaderSubtitle:"_drawerHeaderSubtitle_fqkgw_9",filterIcon:"_filterIcon_fqkgw_14",buttonContainer:"_buttonContainer_fqkgw_18",drawer:"_drawer_fqkgw_1"},{Option:br}=yn;function EG(){var _,T,M,D;const e=wt.useDispatch(),t=wt.useSelector(P=>P.scalantCareerHub.filterForm),n=wt.useSelector(P=>P.scalantCareerHub.filterOptions||{}),[r]=Vt.useForm();b.useEffect(()=>{r.setFieldsValue(t)},[r,t]);const{handleCompanySearch:o,handleTitleSearch:i,handleExperienceSkillSearch:a,handleExperienceSkillChange:l,loadingCompanies:c,loadingTitles:u,loadingExperienceSkills:d}=eM(),{jobTypes:f,functions:m,seniorityLevels:p,companyCategories:g,locations:h,mbeSkills:v,ctcRanges:y,stipendRanges:C,durationRanges:x,noticePeriods:E,datePostedOptions:S,skillRatings:$}=Lb(),O=(P,A)=>{e(yG({field:P,value:A}))},I=t.role_type,w=I==="full_time",N=I==="internship";return b.createElement(Vt,{layout:"vertical",className:Go.filterForm,form:r,initialValues:t},b.createElement(Vt.Item,{label:"Job Types",name:"role_type"},b.createElement(yn,{placeholder:"Select job profile",value:t.role_type,onChange:P=>O("role_type",P)},f.map(P=>b.createElement(br,{key:P.key,value:P.key},P.value)))),b.createElement(Vt.Item,{label:"Company Name",name:"company_ids"},b.createElement(yn,{mode:"multiple",showSearch:!0,placeholder:"Search company",filterOption:!1,onSearch:o,loading:c,value:t.company_ids,onChange:P=>O("company_ids",P),notFoundContent:c?"Loading...":"Type at least 3 characters to search"},(_=n.companyOptions)==null?void 0:_.map(P=>b.createElement(br,{key:P.key,value:P.key},P.value)))),b.createElement(Vt.Item,{label:"Title",name:"job_title"},b.createElement(yn,{mode:"multiple",showSearch:!0,placeholder:"Search job title",filterOption:!1,onSearch:i,loading:u,value:t.job_title,onChange:P=>O("job_title",P),notFoundContent:u?"Loading...":"Type at least 3 characters to search"},(T=n.titleOptions)==null?void 0:T.map(P=>b.createElement(br,{key:P.key,value:P.value},P.value)))),b.createElement(Vt.Item,{label:"Function",name:"job_category"},b.createElement(yn,{mode:"multiple",placeholder:"Select function",value:t.job_category,onChange:P=>O("job_category",P)},m.map(P=>b.createElement(br,{key:P.key,value:P.key},P.value)))),b.createElement(wo,{gutter:16},b.createElement(jn,{span:12},b.createElement(Vt.Item,{label:"Role seniority level",name:"seniority_level"},b.createElement(yn,{mode:"multiple",placeholder:"Select level",value:t.seniority_level,onChange:P=>O("seniority_level",P)},p.map(P=>b.createElement(br,{key:P.key,value:P.key},P.value))))),b.createElement(jn,{span:12},b.createElement(Vt.Item,{label:"Company category",name:"company_categories"},b.createElement(yn,{mode:"multiple",placeholder:"Select category",value:t.company_categories,onChange:P=>O("company_categories",P)},g.map(P=>b.createElement(br,{key:P.key,value:P.key},P.value)))))),b.createElement(Vt.Item,{label:"Location",name:"location"},b.createElement(yn,{mode:"multiple",placeholder:"Select location",value:t.location,onChange:P=>O("location",P)},h.map(P=>b.createElement(br,{key:P.key,value:P.value},P.value)))),!N&&b.createElement(Vt.Item,{label:"Minimum CTC (in Lakhs)?",name:"min_ctc"},b.createElement(yn,{placeholder:"Select range",value:t.min_ctc,onChange:P=>O("min_ctc",P)},y.map(P=>b.createElement(br,{key:P.value,value:P.value},P.label)))),!w&&b.createElement(wo,{gutter:16},b.createElement(jn,{span:12},b.createElement(Vt.Item,{label:"Stipend (INR per month)",name:"min_stipend"},b.createElement(yn,{placeholder:"Select range",value:t.min_stipend,onChange:P=>O("min_stipend",P)},C.map(P=>b.createElement(br,{key:P.value,value:P.value},P.label))))),b.createElement(jn,{span:12},b.createElement(Vt.Item,{label:"Internship duration (in months)",name:"min_duration"},b.createElement(yn,{placeholder:"Select range",value:t.min_duration,onChange:P=>O("min_duration",P)},x.map(P=>b.createElement(br,{key:P.value,value:P.value},P.label)))))),b.createElement(wo,{gutter:16},b.createElement(jn,{span:12},b.createElement(Vt.Item,{label:"Notice period requirement",name:"notice_period"},b.createElement(yn,{placeholder:"Choose period",value:t.notice_period,onChange:P=>O("notice_period",P)},E.map(P=>b.createElement(br,{key:P.value,value:P.value},P.label))))),b.createElement(jn,{span:12},b.createElement(Vt.Item,{label:"Job posted date",name:"date_posted_on"},b.createElement(yn,{placeholder:"Pick date",value:t.date_posted_on,onChange:P=>O("date_posted_on",P)},S.map(P=>b.createElement(br,{key:P.value,value:P.value},P.label)))))),b.createElement(Vt.Item,{label:"Expert Mock Interview Skills Required"},b.createElement(XO,{fieldName:"mbe_skill_ids",subjectOptions:v,ratingOptions:$})),b.createElement(Vt.Item,{label:"Experienced based skills",name:"experience_skill_ids"},b.createElement(yn,{mode:"multiple",showSearch:!0,placeholder:"Search skills",filterOption:!1,onSearch:a,loading:d,value:((M=t.experience_skill_ids)==null?void 0:M.map(P=>typeof P=="object"?P.experience_skill_id:P))||[],onChange:P=>{const A=l(P,n.experienceSkillOptions);O("experience_skill_ids",A)},notFoundContent:d?"Loading...":"Type at least 2 characters to search"},(D=n.experienceSkillOptions)==null?void 0:D.map(P=>b.createElement(br,{key:P.key,value:P.key},P.value)))),b.createElement(Vt.Item,{label:"Experience (Years)? *"},b.createElement(wo,{gutter:16},b.createElement(jn,{span:12},b.createElement(Vt.Item,{name:"min_experience",noStyle:!0},b.createElement(vi,{placeholder:"Minimum",type:"number",value:t.min_experience,onChange:P=>O("min_experience",P.target.value)}))),b.createElement(jn,{span:12},b.createElement(Vt.Item,{name:"max_experience",noStyle:!0},b.createElement(vi,{placeholder:"Maximum",type:"number",value:t.max_experience,onChange:P=>O("max_experience",P.target.value)}))))))}function $G({onClose:e}){return b.createElement(_r,{vertical:!0},b.createElement(_r,{justify:"space-between"},b.createElement(_r,{align:"center",gap:5},b.createElement(iT,{className:Go.filterIcon}),"Filters"),b.createElement(xr,{onClick:e})),b.createElement("div",{className:Go.drawerHeaderSubtitle},"Choose the kind of jobs you'd like to see displayed on this page"))}function wG(){const e=wt.useDispatch(),t=wt.useSelector(a=>a.scalantCareerHub.dashboard.filterModalOpen),n=wt.useSelector(a=>a.scalantCareerHub.filterForm),r=()=>{e(Wq())},o=()=>{var c,u,d,f,m,p,g;let a;n.mbe_skill_ids&&typeof n.mbe_skill_ids=="object"&&!Array.isArray(n.mbe_skill_ids)&&Object.keys(n.mbe_skill_ids).length>0&&(a=Object.values(n.mbe_skill_ids).filter(h=>!h||h.rating===void 0||h.rating===null?!1:h.subject?typeof h.subject=="object"?h.subject.key!==void 0&&h.subject.key!==null:h.subject!==void 0&&h.subject!==null:!1).map(h=>{var y;let v;return typeof h.subject=="object"&&((y=h.subject)==null?void 0:y.key)!==void 0?v=h.subject.key:v=h.subject,{mbe_skill_id:v,rating:h.rating}}),a.length===0&&(a=void 0));const l={role_type:n.role_type||void 0,company_ids:(c=n.company_ids)!=null&&c.length?n.company_ids:void 0,job_title:(u=n.job_title)!=null&&u.length?n.job_title:void 0,job_category:(d=n.job_category)!=null&&d.length?n.job_category:void 0,seniority_level:(f=n.seniority_level)!=null&&f.length?n.seniority_level:void 0,location:(m=n.location)!=null&&m.length?n.location:void 0,min_ctc:n.min_ctc||void 0,min_stipend:n.min_stipend||void 0,min_duration:n.min_duration||void 0,notice_period:n.notice_period||void 0,date_posted_on:n.date_posted_on||void 0,mbe_skill_ids:a,experience_skill_ids:(p=n.experience_skill_ids)!=null&&p.length?n.experience_skill_ids:void 0,min_experience:n.min_experience||void 0,max_experience:n.max_experience||void 0,company_categories:(g=n.company_categories)!=null&&g.length?n.company_categories:void 0};Object.keys(l).forEach(h=>{l[h]===void 0&&delete l[h]}),e(Ug(l)),r()},i=()=>{e(CG()),e(J2()),e(Ug({}))};return b.createElement(U$,{title:b.createElement($G,{onClose:r}),placement:"right",onClose:r,open:t,closable:!1,width:550,className:Go.drawer},b.createElement("div",{className:Go.drawerContent},b.createElement(EG,null),b.createElement("div",{className:Go.buttonContainer},b.createElement(rn,{className:Go.resetButton,onClick:i},"Reset Filters"),b.createElement(rn,{type:"primary",className:Go.applyButton,onClick:o},"Apply"))))}const OG=Xr.injectEndpoints({endpoints:e=>({fetchAlerts:e.query({query:()=>({url:"/job-tracker/v1/alerts/list",method:"GET"}),transformResponse:t=>t.data||[],providesTags:["JobAlerts"]}),createAlert:e.mutation({query:t=>({url:"/job-tracker/v1/alerts/",method:"POST",body:t}),transformResponse:t=>t,invalidatesTags:["JobAlerts"]}),updateAlertStatus:e.mutation({query:t=>({url:"/job-tracker/v1/alerts/update-status",method:"PATCH",body:t}),transformResponse:t=>t,invalidatesTags:["JobAlerts"]}),deleteAlert:e.mutation({query:t=>({url:`/job-tracker/v1/alerts/${t}`,method:"DELETE"}),transformResponse:t=>t,invalidatesTags:["JobAlerts"]}),updateAlert:e.mutation({query:({id:t,payload:n})=>({url:`/job-tracker/v1/alerts/${t}`,method:"PUT",body:n}),transformResponse:t=>t,invalidatesTags:["JobAlerts"]})})}),{useFetchAlertsQuery:NG,useCreateAlertMutation:IG,useUpdateAlertStatusMutation:_G,useDeleteAlertMutation:PG,useUpdateAlertMutation:TG}=OG,MG={alerts:[],loading:!1,error:null},QO=We.createSlice({name:"alerts",initialState:MG,reducers:{setAlerts:(e,t)=>{e.alerts=t.payload},addAlert:(e,t)=>{e.alerts.push(t.payload)},setLoading:(e,t)=>{e.loading=t.payload},setError:(e,t)=>{e.error=t.payload}}}),{setAlerts:DG,addAlert:qZ,setLoading:GZ,setError:UZ}=QO.actions,AG=QO.reducer,mo={modalTitle:"_modalTitle_gu1gu_1",modalTitleHeader:"_modalTitleHeader_gu1gu_6",modalTitleContent:"_modalTitleContent_gu1gu_12",modalCloseIcon:"_modalCloseIcon_gu1gu_18",modalDescription:"_modalDescription_gu1gu_22",modalFooter:"_modalFooter_gu1gu_28",createAlertContent:"_createAlertContent_gu1gu_34",formField:"_formField_gu1gu_52",formLabel:"_formLabel_gu1gu_57",requiredAsterisk:"_requiredAsterisk_gu1gu_63",formInput:"_formInput_gu1gu_67",experienceInputs:"_experienceInputs_gu1gu_71",modal:"_modal_gu1gu_1",radioGroup:"_radioGroup_gu1gu_88",drawerHeaderSubtitle:"_drawerHeaderSubtitle_gu1gu_94",filterIcon:"_filterIcon_gu1gu_99"},{Option:Fv}=yn;function YO({form:e,initialValues:t,onSubmit:n,isSubmitting:r}){const{functions:o,locations:i,ctcRanges:a}=Lb(),[l,c]=b.useState("realtime");b.useEffect(()=>{var f,m;if(t&&e){const g={[un.REALTIME]:"realtime",[un.DAILY]:"daily",[un.ALTERNATE_DAY]:"alternate",[un.WEEKLY]:"weekly"}[t.frequency]||"realtime",h={name:t.name,job_functions:t.job_functions||[],min_ctc:t.min_ctc,locations:t.locations||[],min_experience:((f=t.min_experience)==null?void 0:f.toString())||"",max_experience:((m=t.max_experience)==null?void 0:m.toString())||"",frequency:g,notification_type:t.notification_type||nr.EMAIL};e.setFieldsValue(h),c(g)}},[t,e]);const u=()=>ar(this,null,function*(){try{const f=yield e.validateFields(),m={realtime:un.REALTIME,daily:un.DAILY,alternate:un.ALTERNATE_DAY,weekly:un.WEEKLY},p=f.frequency==="realtime",g={alert:{name:f.name,job_functions:f.job_functions||[],min_ctc:f.min_ctc,locations:f.locations||[],min_experience:f.min_experience?parseInt(f.min_experience,10):0,max_experience:f.max_experience?parseInt(f.max_experience,10):null,frequency:m[f.frequency]||un.REALTIME,notification_type:p&&f.notification_type||nr.EMAIL}};n&&(yield n(g))}catch(f){console.error("Error submitting form:",f)}});b.useEffect(()=>{e&&n&&(e.submit=u)},[e,n]);const d=Vt.useWatch("frequency",e)||"realtime";return b.useEffect(()=>{c(d)},[d]),b.createElement(Vt,{form:e,layout:"vertical",className:mo.createAlertContent,initialValues:{frequency:"realtime"}},b.createElement(Vt.Item,{label:"Alert Name",name:"name",rules:[{required:!0,message:"Please enter alert name"}]},b.createElement(vi,{placeholder:"Give your job alert a name"})),b.createElement(Vt.Item,{label:"Job Function",name:"job_functions",rules:[{required:!0,message:"Please select at least one job function"}]},b.createElement(yn,{mode:"multiple",placeholder:"Select job function",className:mo.formInput},o.map(f=>b.createElement(Fv,{key:f.key,value:f.key},f.value)))),b.createElement(Vt.Item,{label:"Minimum CTC (in Lakhs)?",name:"min_ctc",rules:[{required:!0,message:"Please select minimum CTC"}]},b.createElement(yn,{placeholder:"Select range",className:mo.formInput},a.map(f=>b.createElement(Fv,{key:f.value,value:f.value},f.label)))),b.createElement(Vt.Item,{label:"Locations?",name:"locations",rules:[{required:!0,message:"Please select at least one location"}]},b.createElement(yn,{mode:"multiple",placeholder:"Select locations",className:mo.formInput},i.map(f=>b.createElement(Fv,{key:f.key,value:f.value},f.value)))),b.createElement(Vt.Item,{label:"Experience (Years)?"},b.createElement(wo,{gutter:16},b.createElement(jn,{span:12},b.createElement(Vt.Item,{name:"min_experience",rules:[{required:!0,message:"Please enter minimum experience"}],noStyle:!0},b.createElement(vi,{placeholder:"Minimum",type:"number"}))),b.createElement(jn,{span:12},b.createElement(Vt.Item,{name:"max_experience",rules:[{required:!0,message:"Please enter maximum experience"}],noStyle:!0},b.createElement(vi,{placeholder:"Maximum",type:"number"}))))),b.createElement(Vt.Item,{label:"Alert Frequency",name:"frequency",rules:[{required:!0,message:"Please select alert frequency"}]},b.createElement(gr.Group,{className:mo.radioGroup,onChange:f=>{c(f.target.value),f.target.value!=="realtime"&&e.setFieldsValue({notification_type:nr.EMAIL})}},b.createElement(gr,{value:"realtime"},"Realtime"),b.createElement(gr,{value:"daily"},"Daily"),b.createElement(gr,{value:"alternate"},"Every alternate day"),b.createElement(gr,{value:"weekly"},"Weekly"))),l==="realtime"&&b.createElement(Vt.Item,{label:"Alert mode",name:"notification_type",rules:[{required:!0,message:"Please select notification type"}]},b.createElement(gr.Group,{className:mo.radioGroup},b.createElement(gr,{value:nr.EMAIL},"Email"),b.createElement(gr,{value:nr.WHATSAPP},"Whatsapp"),b.createElement(gr,{value:nr.BOTH},"Both"))))}const Qn={alertCard:"_alertCard_1k2nv_1",alertHeader:"_alertHeader_1k2nv_14",alertIcon:"_alertIcon_1k2nv_20",inactiveIcon:"_inactiveIcon_1k2nv_25",alertActions:"_alertActions_1k2nv_29",editFormCard:"_editFormCard_1k2nv_35"};function RG(){const e=wt.useDispatch(),{data:t=[],isLoading:n,error:r}=NG(),[o]=_G(),[i]=PG(),[a,{isLoading:l}]=TG(),[c,u]=b.useState(null),[d]=Vt.useForm();b.useEffect(()=>{t&&e(DG(t))},[t,e]);const f=x=>Pb[x]||Pb[un.REALTIME],m=x=>Tb[x]||Tb[nr.EMAIL],p=x=>x===ja.ACTIVE,g=(x,E)=>ar(this,null,function*(){try{const S=E===ja.ACTIVE?ja.INACTIVE:ja.ACTIVE;yield o({id:x,status:S}).unwrap(),Hr.success(`Alert ${S===ja.ACTIVE?"activated":"deactivated"} successfully`)}catch(S){Hr.error("Failed to update alert status"),console.error("Error updating alert status:",S)}}),h=x=>{u(x)},v=()=>{u(null),d.resetFields()},y=x=>ar(this,null,function*(){try{yield a({id:c,payload:x}).unwrap(),Hr.success("Alert updated successfully"),u(null),d.resetFields()}catch(E){throw Hr.error("Failed to update alert"),console.error("Error updating alert:",E),E}}),C=x=>ar(this,null,function*(){try{yield i(x).unwrap(),Hr.success("Alert deleted successfully")}catch(E){Hr.error("Failed to delete alert"),console.error("Error deleting alert:",E)}});return n?b.createElement("div",{className:Qn.existingAlertContent},b.createElement("div",{className:Qn.loadingText},"Loading alerts...")):r?b.createElement("div",{className:Qn.existingAlertContent},b.createElement("div",{className:Qn.errorText},"Error loading alerts")):!t||t.length===0?b.createElement("div",{className:Qn.existingAlertContent},b.createElement("div",{className:Qn.emptyText},"No alerts found")):b.createElement("div",{className:Qn.existingAlertContent},t.map(x=>{const E=x.attributes||x,S=x.id||E.id,$=p(E.status),O=f(E.frequency),I=m(E.notification_type),w=c===S;return b.createElement("div",{key:S,className:Qn.alertCard},b.createElement(_r,{align:"center",className:Qn.alertHeader},b.createElement(Td,{className:U(Qn.alertIcon,{[Qn.inactiveIcon]:!$})}),b.createElement("div",null,E.name)),b.createElement("div",{className:Qn.alertSettings},b.createElement(_r,{align:"center",gap:16,wrap:!0},b.createElement(_r,{align:"center",gap:8},b.createElement(d7,{checked:$,onChange:()=>g(S,E.status),size:"small",disabled:w}),b.createElement("span",null,"Active")),b.createElement(_r,{align:"center",gap:8},b.createElement(Th,null),b.createElement("span",null,O)),b.createElement(_r,{align:"center",gap:8},b.createElement(Td,null),b.createElement("span",null,I)))),!w&&b.createElement("div",{className:Qn.alertActions},b.createElement(rn,{type:"text",danger:!0,icon:b.createElement(zh,null),onClick:()=>C(S),className:Qn.deleteButton},"Delete"),b.createElement(rn,{type:"primary",icon:b.createElement(Dd,null),onClick:()=>h(S),className:Qn.editButton},"Edit")),w&&b.createElement("div",{className:Qn.editFormCard},b.createElement(YO,{form:d,initialValues:E,onSubmit:y,isSubmitting:l}),b.createElement(_r,{gap:8,justify:"flex-end",style:{marginTop:"1.6rem"}},b.createElement(rn,{onClick:v,disabled:l},"Cancel"),b.createElement(rn,{type:"primary",onClick:()=>ar(this,null,function*(){try{const N=yield d.validateFields(),_={realtime:un.REALTIME,daily:un.DAILY,alternate:un.ALTERNATE_DAY,weekly:un.WEEKLY},T=N.frequency==="realtime",M={alert:{name:N.name,job_functions:N.job_functions||[],min_ctc:N.min_ctc,locations:N.locations||[],min_experience:N.min_experience?parseInt(N.min_experience,10):0,max_experience:N.max_experience?parseInt(N.max_experience,10):null,frequency:_[N.frequency]||un.REALTIME,notification_type:T&&N.notification_type||nr.EMAIL}};yield y(M)}catch(N){}}),loading:l},"Update Alert"))))}))}function jG(){const e=wt.useDispatch(),t=wt.useSelector(h=>h.scalantCareerHub.dashboard.jobAlertModalOpen),[n,r]=b.useState("create"),[o]=Vt.useForm(),[i,{isLoading:a}]=IG();b.useEffect(()=>{t||(o.resetFields(),r("create"))},[t,o]);const l=()=>{e(qq())},c=()=>{l()},u=()=>ar(this,null,function*(){try{const h=yield o.validateFields(),v={realtime:un.REALTIME,daily:un.DAILY,alternate:un.ALTERNATE_DAY,weekly:un.WEEKLY},y=h.frequency==="realtime",C={alert:{name:h.name,job_functions:h.job_functions||[],min_ctc:h.min_ctc,locations:h.locations||[],min_experience:h.min_experience?parseInt(h.min_experience,10):0,max_experience:h.max_experience?parseInt(h.max_experience,10):null,frequency:v[h.frequency]||un.REALTIME,notification_type:y&&h.notification_type||nr.EMAIL},resume_alert:!1},x=yield i(C).unwrap();x.success&&x.alert&&(o.resetFields(),r("existing"),Hr.success("Alert created successfully"))}catch(h){Hr.error("Failed to create alert"),console.error("Error creating alert:",h)}}),d=h=>ar(this,null,function*(){const v=ba(ur({},h),{resume_alert:!1});return yield i(v).unwrap()}),f=b.createElement(_r,{vertical:!0},b.createElement(_r,{justify:"space-between"},b.createElement(_r,{align:"center",gap:8},b.createElement(y_,{className:mo.filterIcon}),"Curate your Job Alert"),b.createElement(xr,{onClick:l})),b.createElement("div",{className:mo.drawerHeaderSubtitle},"By creating a job alert, you will be notified when a job posting matches your preferred criteria")),m=b.createElement("div",{className:mo.modalFooter},b.createElement(rn,{onClick:c},"Cancel"),b.createElement(rn,{type:"primary",onClick:u,loading:a},"Create Alert")),p=b.createElement(YO,{form:o,onSubmit:d,isSubmitting:a}),g=b.createElement(RG,null);return b.createElement(F1,{title:f,open:t,onCancel:l,footer:m,width:600,closable:!1,className:mo.modal},b.createElement(vp,{activeKey:n,onChange:r,items:[{key:"create",label:"Create alert",children:p},{key:"existing",label:"Existing alerts",children:g}]}))}const LG={jobsPageContent:"_jobsPageContent_pk7y3_1"};function JO({country:e,openMockInterviewModal:t,openResume:n,processCounts:r=Mb}){const o=wt.useDispatch(),i=wt.useSelector(f=>f.scalantCareerHub.layout.selectedJobId),a=wt.useSelector(f=>{var m,p;return((p=(m=f.scalantCareerHub)==null?void 0:m.filter)==null?void 0:p.tab)||pn.all});b.useEffect(()=>{o(Hq(r))},[r,o]);const l=b.createElement(xu,null),c=i?b.createElement($u,{country:e,openMockInterviewModal:t,openResume:n,jobId:i}):b.createElement(Eu,null),u=i?_b.JOB_DETAILS:_b.PROFILE_DETAILS,d=()=>{switch(a){case pn.relevant:return b.createElement(fG,null);case pn.saved:return b.createElement(gG,null);case pn.applied:return b.createElement(bG,null);case pn.all:default:return b.createElement(pG,null)}};return b.createElement(b.Fragment,null,b.createElement(Su,{header:l,sider:c,siderWidth:u,className:LG.jobsPage},d()),b.createElement(wG,null),b.createElement(jG,null))}JO.propTypes={processCounts:pe.shape({all:pe.number,relevant:pe.number,draft:pe.number,applications:pe.number,saved:pe.number,archived:pe.number})};function Hv(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Vv=function(){return Math.random().toString(36).substring(7).split("").join(".")},zl={INIT:"@@redux/INIT"+Vv(),REPLACE:"@@redux/REPLACE"+Vv(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Vv()}};function zG(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function BG(e){if(e===void 0)return"undefined";if(e===null)return"null";var t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(HG(e))return"date";if(FG(e))return"error";var n=kG(e);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}function kG(e){return typeof e.constructor=="function"?e.constructor.name:null}function FG(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function HG(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function VG(e){var t=typeof e;return process.env.NODE_ENV!=="production"&&(t=BG(e)),t}function ZO(e){typeof console!="undefined"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch(t){}}function WG(e,t,n,r){var o=Object.keys(t),i=n&&n.type===zl.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(o.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!zG(e))return"The "+i+' has unexpected type of "'+VG(e)+'". Expected argument to be an object with the following '+('keys: "'+o.join('", "')+'"');var a=Object.keys(e).filter(function(l){return!t.hasOwnProperty(l)&&!r[l]});if(a.forEach(function(l){r[l]=!0}),!(n&&n.type===zl.REPLACE)&&a.length>0)return"Unexpected "+(a.length>1?"keys":"key")+" "+('"'+a.join('", "')+'" found in '+i+". ")+"Expected to find one of the known reducer keys instead: "+('"'+o.join('", "')+'". Unexpected keys will be ignored.')}function KG(e){Object.keys(e).forEach(function(t){var n=e[t],r=n(void 0,{type:zl.INIT});if(typeof r=="undefined")throw new Error(process.env.NODE_ENV==="production"?Hv(12):'The slice reducer for key "'+t+`" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof n(void 0,{type:zl.PROBE_UNKNOWN_ACTION()})=="undefined")throw new Error(process.env.NODE_ENV==="production"?Hv(13):'The slice reducer for key "'+t+'" returned undefined when probed with a random type. '+("Don't try to handle '"+zl.INIT+`' or other actions in "redux/*" `)+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.")})}function qG(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];process.env.NODE_ENV!=="production"&&typeof e[o]=="undefined"&&ZO('No reducer provided for key "'+o+'"'),typeof e[o]=="function"&&(n[o]=e[o])}var i=Object.keys(n),a;process.env.NODE_ENV!=="production"&&(a={});var l;try{KG(n)}catch(c){l=c}return function(u,d){if(u===void 0&&(u={}),l)throw l;if(process.env.NODE_ENV!=="production"){var f=WG(u,n,d,a);f&&ZO(f)}for(var m=!1,p={},g=0;g<i.length;g++){var h=i[g],v=n[h],y=u[h],C=v(y,d);if(typeof C=="undefined"){var x=d&&d.type;throw new Error(process.env.NODE_ENV==="production"?Hv(14):"When called with an action of type "+(x?'"'+String(x)+'"':"(unknown type)")+', the slice reducer for key "'+h+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.')}p[h]=C,m=m||C!==y}return m=m||i.length!==Object.keys(u).length,m?p:u}}const GG={company_categories:[{value:5,label:"large_enterprise"},{value:6,label:"large_startups"},{value:7,label:"early_startups"}],job_categories:[{value:56529,label:"Backend Engineer"},{value:56530,label:"FullStack Engineer"},{value:56531,label:"Frontend Engineer"},{value:56569,label:"Android Engineer"},{value:56570,label:"iOS Engineer"},{value:179985,label:"Testing Engineer"},{value:189726,label:"Data Scientist"},{value:189727,label:"Data Analyst"},{value:189728,label:"Business Analyst"},{value:202365,label:"Data Engineer"},{value:221192,label:"DevOps Engineer"}],job_locations:[{value:"Bangalore",label:"Bangalore"},{value:"Pune",label:"Pune"},{value:"Hyderabad",label:"Hyderabad"},{value:"Gurgaon",label:"Gurgaon"},{value:"Noida",label:"Noida"},{value:"Chennai",label:"Chennai"},{value:"Delhi",label:"Delhi"},{value:"Chandigarh",label:"Chandigarh"},{value:"Kolkata",label:"Kolkata"},{value:"Mumbai",label:"Mumbai"},{value:"Jaipur",label:"Jaipur"},{value:"Vadodara",label:"Vadodara"},{value:"Nagpur",label:"Nagpur"},{value:"Ahmedabad",label:"Ahmedabad"},{value:"Kochi",label:"Kochi"},{value:"Mysore",label:"Mysore"},{value:"Coimbatore",label:"Coimbatore"},{value:"Bangkok",label:"Bangkok"},{value:"Mauritius",label:"Mauritius"},{value:"Udaipur",label:"Udaipur"},{value:"Cochin",label:"Cochin"},{value:"Remote",label:"Remote"},{value:"Hubballi",label:"Hubballi"},{value:"Goa",label:"Goa"},{value:"Trivandrum",label:"Trivandrum"},{value:"Indore",label:"Indore"},{value:"London",label:"London"},{value:"Bhubaneswar",label:"Bhubaneswar"},{value:"Menlo Park",label:"Menlo Park"},{value:"Dehradun",label:"Dehradun"},{value:"Hosur",label:"Hosur"},{value:"Delaware",label:"Delaware"},{value:"Amsterdam",label:"Amsterdam"},{value:"California",label:"California"},{value:"Mohali",label:"Mohali"},{value:"New Jersey",label:"New Jersey"},{value:"Arizona",label:"Arizona"},{value:"North Carolina",label:"North Carolina"},{value:"Agra",label:"Agra"},{value:"Saudi Arabia",label:"Saudi Arabia"},{value:"Pondicherry",label:"Pondicherry"},{value:"Vizag",label:"Vizag"}],role_types:[{value:198018,label:"internship"},{value:198019,label:"full_time"}],seniority_levels:[{value:202948,label:"Fresher"},{value:202949,label:"Entry - Mid"},{value:202950,label:"Mid - Senior"},{value:202951,label:"Senior"}],proficiency_mapping:{"Must to Have":0,"Good to Have":1,"Bar Raiser":2,"Must to Have (Eligibility)":3},onboarding_modal_clicked:!0,pipeline_stages:[{value:"draft",label:"Draft"},{value:"in_review",label:"In Review"},{value:"resume_sent",label:"Resume Sent"},{value:"resume_shortlisted",label:"Resume Shortlisted"},{value:"interviewing",label:"Interviewing"},{value:"to_be_offered",label:"To Be Offered"},{value:"rejected",label:"Rejected"},{value:"offer_received",label:"Offer Received"},{value:"offer_withdrawn",label:"Offer Withdrawn"},{value:"offer_accepted",label:"Offer Accepted"},{value:"offer_declined",label:"Offer Declined"},{value:"on_hold",label:"On Hold"},{value:"joined",label:"Joined"},{value:"saved",label:"Saved"},{value:"not_interested",label:"Not Interested"},{value:"application_withdrawn",label:"Application Withdrawn"},{value:"application_archived",label:"Application Archived"}],merit_based_skills:[{id:37223,title:"Databases and SQL",mentee_module_id:null},{id:37183,title:"Data Structures & Algorithms",mentee_module_id:null},{id:37184,title:"Python",mentee_module_id:null},{id:37185,title:"Java",mentee_module_id:null},{id:37186,title:"Javascript",mentee_module_id:null},{id:37187,title:"Low Level Design",mentee_module_id:3053255},{id:37188,title:"High Level Design",mentee_module_id:3053256},{id:37189,title:"Frontend (React)",mentee_module_id:3053258},{id:37190,title:"Backend (Java Spring/Springboot)",mentee_module_id:3053258},{id:37216,title:"Django",mentee_module_id:3053258},{id:37244,title:"Angular",mentee_module_id:3053258},{id:37191,title:"Python Libraries",mentee_module_id:null},{id:37192,title:"SQL",mentee_module_id:null},{id:37193,title:"Data Analytics - Tools",mentee_module_id:null},{id:37194,title:"EDA Fundamentals",mentee_module_id:null},{id:37195,title:"Supervised Learning",mentee_module_id:null},{id:37196,title:"Unsupervised Learning",mentee_module_id:null},{id:37197,title:"Computer Vision",mentee_module_id:7522793},{id:37198,title:"Natural Language Processing",mentee_module_id:7522794},{id:37194,title:"EDA Fundamentals",mentee_module_id:null},{id:37195,title:"Supervised Learning",mentee_module_id:null},{id:37196,title:"Unsupervised Learning",mentee_module_id:null},{id:37201,title:"DA tools",mentee_module_id:null},{id:37202,title:"Intermediate DSA",mentee_module_id:null},{id:37245,title:"DevOps - Data Structures & Algorithms",mentee_module_id:null},{id:37245,title:"DevOps - Data Structures & Algorithms",mentee_module_id:null},{id:37183,title:"Data Structures & Algorithms",mentee_module_id:null},{id:37223,title:"Databases and SQL",mentee_module_id:null},{id:37185,title:"Java",mentee_module_id:7532826},{id:37186,title:"Javascript",mentee_module_id:7532826},{id:37187,title:"Low Level Design",mentee_module_id:7532828},{id:37189,title:"Frontend (React)",mentee_module_id:7532828},{id:37244,title:"Angular",mentee_module_id:7532828},{id:37188,title:"High Level Design",mentee_module_id:null},{id:37192,title:"SQL",mentee_module_id:null},{id:37191,title:"Python Libraries",mentee_module_id:null},{id:37194,title:"EDA Fundamentals",mentee_module_id:null},{id:37195,title:"Supervised Learning",mentee_module_id:null},{id:37196,title:"Unsupervised Learning",mentee_module_id:7522864},{id:37184,title:"Python",mentee_module_id:5696347},{id:37185,title:"Java",mentee_module_id:5696347},{id:37186,title:"Javascript",mentee_module_id:5696347},{id:37184,title:"Python",mentee_module_id:null},{id:37185,title:"Java",mentee_module_id:null},{id:37186,title:"Javascript",mentee_module_id:null},{id:37187,title:"Low Level Design",mentee_module_id:null},{id:37186,title:"Javascript",mentee_module_id:5910715},{id:37189,title:"Frontend (React)",mentee_module_id:null},{id:37244,title:"Angular",mentee_module_id:null},{id:37224,title:"MERN",mentee_module_id:null},{id:37190,title:"Backend (Java Spring/Springboot)",mentee_module_id:null},{id:37216,title:"Django",mentee_module_id:null},{id:37224,title:"MERN",mentee_module_id:null},{id:37190,title:"Backend (Java Spring/Springboot)",mentee_module_id:null},{id:37216,title:"Django",mentee_module_id:null},{id:37224,title:"MERN",mentee_module_id:null},{id:37190,title:"Backend (Java Spring/Springboot)",mentee_module_id:null},{id:37216,title:"Django",mentee_module_id:null},{id:37224,title:"MERN",mentee_module_id:null},{id:37226,title:"Data Structures & Algorithms Advanced",mentee_module_id:7522524},{id:37190,title:"Backend (Java Spring/Springboot)",mentee_module_id:null},{id:37216,title:"Django",mentee_module_id:null},{id:37224,title:"MERN",mentee_module_id:null},{id:37184,title:"Python",mentee_module_id:null},{id:37185,title:"Java",mentee_module_id:null},{id:37186,title:"Javascript",mentee_module_id:null},{id:37187,title:"Low Level Design",mentee_module_id:null},{id:37188,title:"High Level Design",mentee_module_id:null},{id:37247,title:"Shell Scripting and CS Fundamentals",mentee_module_id:7522518},{id:37194,title:"EDA Fundamentals",mentee_module_id:null}],v1_onboarding_enabled:!0,v0_onboarding_completed:!0,initial_user_application_stage:4,is_discussion_hub_enabled:!1,resume_issues:{total_issues:2},default_resume_details:{id:17407,user_id:674153,name:"AswanthDefaultResume",default:!0,status:"active",meta:{social_profiles:{codechef:"",codeforces:"",geeksforgeeks:"",github:"",hackerearth:"",hackerrank:"",leetcode:"",portfolio:""},job_title:"Fullstack developer 1",interactions:{relevancy_alert_modal_displayed:!0}},modified_at:"2025-05-11T15:27:35.000Z",created_at:"2024-02-13T19:39:17.000Z",updated_at:"2025-05-11T15:27:35.000Z"},resume_builder_skills:{language:[1167,1150,1148,1136,1128,1276,1270,1218,1217,1215,1213,1211,1210,1209],framework:[1206,1203,1200,1198,1197,1196,1195,1158,1157,1156,1145,1133],tools:[2431,2430,2435,1234,1231,1229,1228,1176,1175,2432,46262,58475]},skill_data:[{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1128,subtopic:"Javascript",eligible_topic_id:7591,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1133,subtopic:"Angular",eligible_topic_id:7580,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1136,subtopic:"CSS",eligible_topic_id:7586,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1145,subtopic:"Flutter",eligible_topic_id:8760,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1148,subtopic:"HTML",eligible_topic_id:7589,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1150,subtopic:"JavaScript",eligible_topic_id:7591,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1156,subtopic:"React",eligible_topic_id:7597,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1157,subtopic:"React Native",eligible_topic_id:8763,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1158,subtopic:"Redux",eligible_topic_id:8764,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1167,subtopic:"TypeScript",eligible_topic_id:8768,eligible_class:"Topic"},{id:null,topic:"Mobile Development",topic_id:401,subtopic_id:1175,subtopic:"Android Development",eligible_topic_id:8753,eligible_class:"Topic"},{id:null,topic:"Mobile Development",topic_id:401,subtopic_id:1176,subtopic:"iOS Development",eligible_topic_id:8770,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1195,subtopic:".NET",eligible_topic_id:7579,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1196,subtopic:"Django",eligible_topic_id:7587,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1197,subtopic:"Express.js",eligible_topic_id:8758,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1198,subtopic:"Flask",eligible_topic_id:8759,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1200,subtopic:"Node.js",eligible_topic_id:7594,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1203,subtopic:"Ruby on Rails",eligible_topic_id:null,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1206,subtopic:"Spring Boot",eligible_topic_id:7600,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1209,subtopic:"C",eligible_topic_id:8755,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1210,subtopic:"Go",eligible_topic_id:8761,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1211,subtopic:"Java",eligible_topic_id:7590,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1213,subtopic:"Python",eligible_topic_id:7596,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1215,subtopic:"Ruby",eligible_topic_id:null,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1217,subtopic:"Scala",eligible_topic_id:8765,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1218,subtopic:"Swift",eligible_topic_id:8766,eligible_class:"Topic"},{id:null,topic:"DBMS",topic_id:406,subtopic_id:1228,subtopic:"MongoDB",eligible_topic_id:8769,eligible_class:"Topic"},{id:null,topic:"DBMS",topic_id:406,subtopic_id:1229,subtopic:"MySQL",eligible_topic_id:7601,eligible_class:"Topic"},{id:null,topic:"DBMS",topic_id:406,subtopic_id:1231,subtopic:"PostgreSQL",eligible_topic_id:7601,eligible_class:"Topic"},{id:null,topic:"DBMS",topic_id:406,subtopic_id:1234,subtopic:"SQL Server",eligible_topic_id:7601,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1270,subtopic:"C#",eligible_topic_id:7584,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1276,subtopic:"C++",eligible_topic_id:7585,eligible_class:"Topic"},{id:null,topic:"Cloud Computing",topic_id:564,subtopic_id:2430,subtopic:"AWS",eligible_topic_id:7581,eligible_class:"Topic"},{id:null,topic:"CloudComputing",topic_id:564,subtopic_id:2431,subtopic:"Azure",eligible_topic_id:8754,eligible_class:"Topic"},{id:null,topic:"System Design",topic_id:563,subtopic_id:2432,subtopic:"Microservices",eligible_topic_id:7593,eligible_class:"Topic"},{id:null,topic:"DBMS",topic_id:406,subtopic_id:2435,subtopic:"SQL",eligible_topic_id:7601,eligible_class:"Topic"},{id:null,topic:"Machine Learning",topic_id:405,subtopic_id:46262,subtopic:"Tableau",eligible_topic_id:7604,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:58475,subtopic:"Power BI",eligible_topic_id:null,eligible_class:"Topic"}]},UG=e=>!e||typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1).toLowerCase(),XG=e=>!e||!Array.isArray(e)?e:e.map(t=>ba(ur({},t),{label:UG(t.label||"").replace(/_/g," ")})),QG=e=>!e||!Array.isArray(e)?e:e.map(t=>ba(ur({},t),{label:DK("titleCase",t.label||"")})),eN=e=>{if(!e||typeof e!="object")return e;const t=bu(e);return t.companyCategories&&(t.companyCategories=XG(t.companyCategories)),t.roleTypes&&(t.roleTypes=QG(t.roleTypes)),t},YG=window.__CAREERS_HUB__||GG,JG={meta:eN(YG)},tN=We.createSlice({name:"metaData",initialState:JG,reducers:{setMetaData:(e,t)=>{e.meta=eN(t.payload)}}});tN.actions;const ZG=tN.reducer,eU=qG({[Xr.reducerPath]:Xr.reducer,layout:cG,filter:LI,dashboard:Gq,filterForm:xG,metaData:ZG,filterOptions:Z2,alerts:AG});pt.APPLICATION_STATUS=PI,pt.ApplicationForm=zb,pt.EligibilityTag=pu,pt.FormContainer=NO,pt.FormContent=kd,pt.FormHeader=yv,pt.HelloWorld=Kr,pt.JOB_CARD_CONFIG=ad,pt.JOB_PROFILE_STATUS=TI,pt.JobCard=hu,pt.JobDetails=$u,pt.JobsHeader=xu,pt.JobsLayout=Su,pt.JobsList=Si,pt.JobsPage=JO,pt.ProfileDetails=Eu,pt.SaveButton=vu,pt.TABS=MI,pt.careerHubApi=Xr,pt.checkAllOtherRequirementsMet=Sv,pt.countPendingSteps=_O,pt.default=Kr,pt.determineJobTag=Ev,pt.formatCtc=Nv,pt.formatDate=PO,pt.formatExperience=Ov,pt.formatLocation=_v,pt.formatNoticePeriod=Iv,pt.setBaseUrl=wI,pt.store=eU,pt.useApplicationForm=Wg,pt.useCreateApplication=Vg,pt.useJobCardState=Kg,Object.defineProperties(pt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
414
|
+
`]:Object.assign(Object.assign({},vf(e)),{marginInlineStart:e.marginXXS})}),GW(e)),UW(e)),XW()),{"&-rtl":{direction:"rtl"}})}},hO=Mt("Typography",e=>[QW(e)],()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"})),YW=e=>{const{prefixCls:t,"aria-label":n,className:r,style:o,direction:i,maxLength:a,autoSize:l=!0,value:c,onSave:u,onCancel:d,onEnd:f,component:m,enterIcon:p=s.createElement(DP,null)}=e,g=s.useRef(null),h=s.useRef(!1),v=s.useRef(null),[y,C]=s.useState(c);s.useEffect(()=>{C(c)},[c]),s.useEffect(()=>{var D;if(!((D=g.current)===null||D===void 0)&&D.resizableTextArea){const{textArea:P}=g.current.resizableTextArea;P.focus();const{length:A}=P.value;P.setSelectionRange(A,A)}},[]);const x=D=>{let{target:P}=D;C(P.value.replace(/[\n\r]/g,""))},E=()=>{h.current=!0},S=()=>{h.current=!1},$=D=>{let{keyCode:P}=D;h.current||(v.current=P)},O=()=>{u(y.trim())},I=D=>{let{keyCode:P,ctrlKey:A,altKey:R,metaKey:L,shiftKey:j}=D;v.current!==P||h.current||A||R||L||j||(P===ye.ENTER?(O(),f==null||f()):P===ye.ESC&&d())},w=()=>{O()},[N,_,T]=hO(t),M=U(t,`${t}-edit-content`,{[`${t}-rtl`]:i==="rtl",[`${t}-${m}`]:!!m},r,_,T);return N(s.createElement("div",{className:M,style:o},s.createElement(E1,{ref:g,maxLength:a,value:y,onChange:x,onKeyDown:$,onKeyUp:I,onCompositionStart:E,onCompositionEnd:S,onBlur:w,"aria-label":n,rows:1,autoSize:l}),p!==null?Gn(p,{className:`${t}-edit-content-confirm`}):null))};var JW=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||n.forEach(function(o){e.addRange(o)}),t&&t.focus()}},ZW=JW,bO={"text/plain":"Text","text/html":"Url",default:"Text"},eK="Copy to clipboard: #{key}, Enter";function tK(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function nK(e,t){var n,r,o,i,a,l,c=!1;t||(t={}),n=t.debug||!1;try{o=ZW(),i=document.createRange(),a=document.getSelection(),l=document.createElement("span"),l.textContent=e,l.ariaHidden="true",l.style.all="unset",l.style.position="fixed",l.style.top=0,l.style.clip="rect(0, 0, 0, 0)",l.style.whiteSpace="pre",l.style.webkitUserSelect="text",l.style.MozUserSelect="text",l.style.msUserSelect="text",l.style.userSelect="text",l.addEventListener("copy",function(d){if(d.stopPropagation(),t.format)if(d.preventDefault(),typeof d.clipboardData=="undefined"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var f=bO[t.format]||bO.default;window.clipboardData.setData(f,e)}else d.clipboardData.clearData(),d.clipboardData.setData(t.format,e);t.onCopy&&(d.preventDefault(),t.onCopy(d.clipboardData))}),document.body.appendChild(l),i.selectNodeContents(l),a.addRange(i);var u=document.execCommand("copy");if(!u)throw new Error("copy command was unsuccessful");c=!0}catch(d){n&&console.error("unable to copy using execCommand: ",d),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(f){n&&console.error("unable to copy using clipboardData: ",f),n&&console.error("falling back to prompt"),r=tK("message"in t?t.message:eK),window.prompt(r,e)}}finally{a&&(typeof a.removeRange=="function"?a.removeRange(i):a.removeAllRanges()),l&&document.body.removeChild(l),o()}return c}var rK=nK;const oK=Xo(rK);var iK=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{u(r.next(d))}catch(f){a(f)}}function c(d){try{u(r.throw(d))}catch(f){a(f)}}function u(d){d.done?i(d.value):o(d.value).then(l,c)}u((r=r.apply(e,t||[])).next())})};const aK=e=>{let{copyConfig:t,children:n}=e;const[r,o]=s.useState(!1),[i,a]=s.useState(!1),l=s.useRef(null),c=()=>{l.current&&clearTimeout(l.current)},u={};t.format&&(u.format=t.format),s.useEffect(()=>c,[]);const d=qt(f=>iK(void 0,void 0,void 0,function*(){var m;f==null||f.preventDefault(),f==null||f.stopPropagation(),a(!0);try{const p=typeof t.text=="function"?yield t.text():t.text;oK(p||eV(n,!0).join("")||"",u),a(!1),o(!0),c(),l.current=setTimeout(()=>{o(!1)},3e3),(m=t.onCopy)===null||m===void 0||m.call(t,f)}catch(p){throw a(!1),p}}));return{copied:r,copyLoading:i,onClick:d}};function fv(e,t){return s.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const lK=e=>{const t=b.useRef(void 0);return b.useEffect(()=>{t.current=e}),t.current},sK=(e,t,n)=>b.useMemo(()=>e===!0?{title:t!=null?t:n}:b.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t!=null?t:n},e):{title:e},[e,t,n]);var cK=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const yO=s.forwardRef((e,t)=>{const{prefixCls:n,component:r="article",className:o,rootClassName:i,setContentRef:a,children:l,direction:c,style:u}=e,d=cK(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:m,className:p,style:g}=Dn("typography"),h=c!=null?c:m,v=a?Vn(t,a):t,y=f("typography",n);process.env.NODE_ENV!=="production"&&vt("Typography").deprecated(!a,"setContentRef","ref");const[C,x,E]=hO(y),S=U(y,p,{[`${y}-rtl`]:h==="rtl"},o,i,x,E),$=Object.assign(Object.assign({},g),u);return C(s.createElement(r,Object.assign({className:S,style:$,ref:v},d),l))});process.env.NODE_ENV!=="production"&&(yO.displayName="Typography");const CO=yO;function SO(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function mv(e,t,n){return e===!0||e===void 0?t:e||n&&t}function uK(e){const t=document.createElement("em");e.appendChild(t),process.env.NODE_ENV!=="production"&&(t.className="ant-typography-css-ellipsis-content-measure");const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}const pv=e=>["string","number"].includes(typeof e),dK=e=>{let{prefixCls:t,copied:n,locale:r,iconOnly:o,tooltips:i,icon:a,tabIndex:l,onCopy:c,loading:u}=e;const d=SO(i),f=SO(a),{copied:m,copy:p}=r!=null?r:{},g=n?m:p,h=mv(d[n?1:0],g),v=typeof h=="string"?h:g;return s.createElement(lo,{title:h},s.createElement("button",{type:"button",className:U(`${t}-copy`,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:o}),onClick:c,"aria-label":v,tabIndex:l},n?mv(f[1],s.createElement(fs,null),!0):mv(f[0],u?s.createElement(Zo,null):s.createElement(lP,null),!0)))},uu=s.forwardRef((e,t)=>{let{style:n,children:r}=e;const o=s.useRef(null);return s.useImperativeHandle(t,()=>({isExceed:()=>{const i=o.current;return i.scrollHeight>i.clientHeight},getHeight:()=>o.current.clientHeight})),s.createElement("span",{"aria-hidden":!0,ref:o,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},n)},r)}),fK=e=>e.reduce((t,n)=>t+(pv(n)?String(n).length:1),0);function xO(e,t){let n=0;const r=[];for(let o=0;o<e.length;o+=1){if(n===t)return r;const i=e[o],l=pv(i)?String(i).length:1,c=n+l;if(c>t){const u=t-n;return r.push(String(i).slice(0,u)),r}r.push(i),n=c}return e}const vv=0,gv=1,hv=2,bv=3,EO=4,du={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function mK(e){const{enableMeasure:t,width:n,text:r,children:o,rows:i,expanded:a,miscDeps:l,onEllipsis:c}=e,u=s.useMemo(()=>_n(r),[r]),d=s.useMemo(()=>fK(u),[r]),f=s.useMemo(()=>o(u,!1),[r]),[m,p]=s.useState(null),g=s.useRef(null),h=s.useRef(null),v=s.useRef(null),y=s.useRef(null),C=s.useRef(null),[x,E]=s.useState(!1),[S,$]=s.useState(vv),[O,I]=s.useState(0),[w,N]=s.useState(null);Et(()=>{$(t&&n&&d?gv:vv)},[n,r,i,t,u]),Et(()=>{var D,P,A,R;if(S===gv){$(hv);const L=h.current&&getComputedStyle(h.current).whiteSpace;N(L)}else if(S===hv){const L=!!(!((D=v.current)===null||D===void 0)&&D.isExceed());$(L?bv:EO),p(L?[0,d]:null),E(L);const j=((P=v.current)===null||P===void 0?void 0:P.getHeight())||0,z=i===1?0:((A=y.current)===null||A===void 0?void 0:A.getHeight())||0,B=((R=C.current)===null||R===void 0?void 0:R.getHeight())||0,K=Math.max(j,z+B);I(K+1),c(L)}},[S]);const _=m?Math.ceil((m[0]+m[1])/2):0;Et(()=>{var D;const[P,A]=m||[0,0];if(P!==A){const L=(((D=g.current)===null||D===void 0?void 0:D.getHeight())||0)>O;let j=_;A-P===1&&(j=L?P:A),p(L?[P,j]:[j,A])}},[m,_]);const T=s.useMemo(()=>{if(!t)return o(u,!1);if(S!==bv||!m||m[0]!==m[1]){const D=o(u,!1);return[EO,vv].includes(S)?D:s.createElement("span",{style:Object.assign(Object.assign({},du),{WebkitLineClamp:i})},D)}return o(a?u:xO(u,m[0]),x)},[a,S,m,u].concat(ge(l))),M={width:n,margin:0,padding:0,whiteSpace:w==="nowrap"?"normal":"inherit"};return s.createElement(s.Fragment,null,T,S===hv&&s.createElement(s.Fragment,null,s.createElement(uu,{style:Object.assign(Object.assign(Object.assign({},M),du),{WebkitLineClamp:i}),ref:v},f),s.createElement(uu,{style:Object.assign(Object.assign(Object.assign({},M),du),{WebkitLineClamp:i-1}),ref:y},f),s.createElement(uu,{style:Object.assign(Object.assign(Object.assign({},M),du),{WebkitLineClamp:1}),ref:C},o([],!0))),S===bv&&m&&m[0]!==m[1]&&s.createElement(uu,{style:Object.assign(Object.assign({},M),{top:400}),ref:g},o(xO(u,_),!0)),S===gv&&s.createElement("span",{style:{whiteSpace:"inherit"},ref:h}))}const $O=e=>{let{enableEllipsis:t,isEllipsis:n,children:r,tooltipProps:o}=e;return!(o!=null&&o.title)||!t?r:s.createElement(lo,Object.assign({open:n?void 0:!1},o),r)};process.env.NODE_ENV!=="production"&&($O.displayName="EllipsisTooltip");const pK=$O;var vK=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function gK(e,t){let{mark:n,code:r,underline:o,delete:i,strong:a,keyboard:l,italic:c}=e,u=t;function d(f,m){m&&(u=s.createElement(f,{},u))}return d("strong",a),d("u",o),d("del",i),d("code",r),d("mark",n),d("kbd",l),d("i",c),u}const hK="...",fu=s.forwardRef((e,t)=>{var n;const{prefixCls:r,className:o,style:i,type:a,disabled:l,children:c,ellipsis:u,editable:d,copyable:f,component:m,title:p}=e,g=vK(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:h,direction:v}=s.useContext(Xe),[y]=to("Text"),C=s.useRef(null),x=s.useRef(null),E=h("typography",r),S=tn(g,["mark","code","delete","underline","strong","keyboard","italic"]),[$,O]=fv(d),[I,w]=an(!1,{value:O.editing}),{triggerType:N=["icon"]}=O,_=ve=>{var Se;ve&&((Se=O.onStart)===null||Se===void 0||Se.call(O)),w(ve)},T=lK(I);Et(()=>{var ve;!I&&T&&((ve=x.current)===null||ve===void 0||ve.focus())},[I]);const M=ve=>{ve==null||ve.preventDefault(),_(!0)},D=ve=>{var Se;(Se=O.onChange)===null||Se===void 0||Se.call(O,ve),_(!1)},P=()=>{var ve;(ve=O.onCancel)===null||ve===void 0||ve.call(O),_(!1)},[A,R]=fv(f),{copied:L,copyLoading:j,onClick:z}=aK({copyConfig:R,children:c}),[B,K]=s.useState(!1),[W,k]=s.useState(!1),[V,Q]=s.useState(!1),[J,Y]=s.useState(!1),[te,oe]=s.useState(!0),[X,F]=fv(u,{expandable:!1,symbol:ve=>ve?y==null?void 0:y.collapse:y==null?void 0:y.expand}),[ee,Z]=an(F.defaultExpanded||!1,{value:F.expanded}),ne=X&&(!ee||F.expandable==="collapsible"),{rows:re=1}=F,se=s.useMemo(()=>ne&&(F.suffix!==void 0||F.onEllipsis||F.expandable||$||A),[ne,F,$,A]);Et(()=>{X&&!se&&(K(hm("webkitLineClamp")),k(hm("textOverflow")))},[se,X]);const[le,he]=s.useState(ne),fe=s.useMemo(()=>se?!1:re===1?W:B,[se,W,B]);Et(()=>{he(fe&&ne)},[fe,ne]);const ie=ne&&(le?J:V),ce=ne&&re===1&&le,ue=ne&&re>1&&le,me=(ve,Se)=>{var Je;Z(Se.expanded),(Je=F.onExpand)===null||Je===void 0||Je.call(F,ve,Se)},[Ce,Oe]=s.useState(0),Pe=ve=>{let{offsetWidth:Se}=ve;Oe(Se)},je=ve=>{var Se;Q(ve),V!==ve&&((Se=F.onEllipsis)===null||Se===void 0||Se.call(F,ve))};s.useEffect(()=>{const ve=C.current;if(X&&le&&ve){const Se=uK(ve);J!==Se&&Y(Se)}},[X,le,c,ue,te,Ce]),s.useEffect(()=>{const ve=C.current;if(typeof IntersectionObserver=="undefined"||!ve||!le||!ne)return;const Se=new IntersectionObserver(()=>{oe(!!ve.offsetParent)});return Se.observe(ve),()=>{Se.disconnect()}},[le,ne]);const Ne=sK(F.tooltip,O.text,c),Ie=s.useMemo(()=>{if(!(!X||le))return[O.text,c,p,Ne.title].find(pv)},[X,le,p,Ne.title,ie]);if(I)return s.createElement(YW,{value:(n=O.text)!==null&&n!==void 0?n:typeof c=="string"?c:"",onSave:D,onCancel:P,onEnd:O.onEnd,prefixCls:E,className:o,style:i,direction:v,component:m,maxLength:O.maxLength,autoSize:O.autoSize,enterIcon:O.enterIcon});const xe=()=>{const{expandable:ve,symbol:Se}=F;return ve?s.createElement("button",{type:"button",key:"expand",className:`${E}-${ee?"collapse":"expand"}`,onClick:Je=>me(Je,{expanded:!ee}),"aria-label":ee?y.collapse:y==null?void 0:y.expand},typeof Se=="function"?Se(ee):Se):null},be=()=>{if(!$)return;const{icon:ve,tooltip:Se,tabIndex:Je}=O,it=_n(Se)[0]||(y==null?void 0:y.edit),Ot=typeof it=="string"?it:"";return N.includes("icon")?s.createElement(lo,{key:"edit",title:Se===!1?"":it},s.createElement("button",{type:"button",ref:x,className:`${E}-edit`,onClick:M,"aria-label":Ot,tabIndex:Je},ve||s.createElement(Dd,{role:"button"}))):null},Ee=()=>A?s.createElement(dK,Object.assign({key:"copy"},R,{prefixCls:E,copied:L,locale:y,onCopy:z,loading:j,iconOnly:c==null})):null,$e=ve=>[ve&&xe(),be(),Ee()],_e=ve=>[ve&&!ee&&s.createElement("span",{"aria-hidden":!0,key:"ellipsis"},hK),F.suffix,$e(ve)];return s.createElement(Wn,{onResize:Pe,disabled:!ne},ve=>s.createElement(pK,{tooltipProps:Ne,enableEllipsis:ne,isEllipsis:ie},s.createElement(CO,Object.assign({className:U({[`${E}-${a}`]:a,[`${E}-disabled`]:l,[`${E}-ellipsis`]:X,[`${E}-ellipsis-single-line`]:ce,[`${E}-ellipsis-multiple-line`]:ue},o),prefixCls:r,style:Object.assign(Object.assign({},i),{WebkitLineClamp:ue?re:void 0}),component:m,ref:Vn(ve,C,t),direction:v,onClick:N.includes("text")?M:void 0,"aria-label":Ie==null?void 0:Ie.toString(),title:p},S),s.createElement(mK,{enableMeasure:ne&&!le,text:c,rows:re,width:Ce,onEllipsis:je,expanded:ee,miscDeps:[L,ee,j,$,A,y]},(Se,Je)=>gK(e,s.createElement(s.Fragment,null,Se.length>0&&Je&&!ee&&Ie?s.createElement("span",{key:"show-content","aria-hidden":!0},Se):Se,_e(Je)))))))});var bK=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const yK=s.forwardRef((e,t)=>{var{ellipsis:n,rel:r}=e,o=bK(e,["ellipsis","rel"]);if(process.env.NODE_ENV!=="production"){const a=vt("Typography.Link");process.env.NODE_ENV!=="production"&&a(typeof n!="object","usage","`ellipsis` only supports boolean value.")}const i=Object.assign(Object.assign({},o),{rel:r===void 0&&o.target==="_blank"?"noopener noreferrer":r});return delete i.navigate,s.createElement(fu,Object.assign({},i,{ref:t,ellipsis:!!n,component:"a"}))}),CK=s.forwardRef((e,t)=>s.createElement(fu,Object.assign({ref:t},e,{component:"div"})));var SK=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const xK=(e,t)=>{var{ellipsis:n}=e,r=SK(e,["ellipsis"]);const o=s.useMemo(()=>n&&typeof n=="object"?tn(n,["expandable","rows"]):n,[n]);if(process.env.NODE_ENV!=="production"){const i=vt("Typography.Text");process.env.NODE_ENV!=="production"&&i(typeof n!="object"||!n||!("expandable"in n)&&!("rows"in n),"usage","`ellipsis` do not support `expandable` or `rows` props.")}return s.createElement(fu,Object.assign({ref:t},r,{ellipsis:o,component:"span"}))},EK=s.forwardRef(xK);var $K=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const wO=[1,2,3,4,5],wK=s.forwardRef((e,t)=>{const{level:n=1}=e,r=$K(e,["level"]);if(process.env.NODE_ENV!=="production"){const i=vt("Typography.Title");process.env.NODE_ENV!=="production"&&i(wO.includes(n),"usage","Title only accept `1 | 2 | 3 | 4 | 5` as `level` value. And `5` need 4.6.0+ version.")}const o=wO.includes(n)?`h${n}`:"h1";return s.createElement(fu,Object.assign({ref:t},r,{component:o}))}),Ml=CO;Ml.Text=EK,Ml.Link=yK,Ml.Title=wK,Ml.Paragraph=CK;const kt=Ml,Dl={stepText:"_stepText_14qm3_1",titleContainer:"_titleContainer_14qm3_5",titleIcon:"_titleIcon_14qm3_9",titleText:"_titleText_14qm3_14"},{Text:OO}=kt;function yv({currentStep:e,icon:t,title:n,totalSteps:r}){return b.createElement(Zt,{className:Dl.container,direction:"vertical"},b.createElement(OO,{className:Dl.stepText},"Step ",e,"/",r),b.createElement(Zt,{className:Dl.titleContainer},b.createElement(t,{className:Dl.titleIcon}),b.createElement(OO,{className:Dl.titleText},n)))}yv.propTypes={currentStep:pe.number.isRequired,icon:pe.elementType.isRequired,title:pe.string.isRequired,totalSteps:pe.number.isRequired};function OK({applicationData:e}){switch(e.status){case Oi.APPLICATION_FORM:return b.createElement(b.Fragment,null,"Application Form");default:return null}}function NO({currentTab:e,jobProfileId:t,utmId:n,utmMedium:r,utmSource:o}){const[i,a]=b.useState(!0),{data:l,isLoading:c}=Vg({jobProfileId:t,utmMedium:r,utmSource:o,currentTab:e,utmId:n}),u=()=>{a(!1)};return b.createElement(U$,{closable:{placement:"end"},loading:c,onClose:u,open:i,placement:"bottom",title:b.createElement(yv,{currentStep:1,icon:Ta,title:"Required Details",totalSteps:2})},b.createElement(OK,{applicationData:l}))}NO.propTypes={currentTab:pe.string.isRequired,jobProfileId:pe.number.isRequired,utmId:pe.string,utmMedium:pe.string,utmSource:pe.string};const IO="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAACqElEQVR4Xu2bMUpEQRBEXQwNFLyKuYE38KDewMDcqyx8A0NRlAWFDbqKGYuezzP9tdMz7/X0Lrt42Lbt84K/NgQOCGnj4mcjCOnlAyHNfCAEId0INNsP7yEIaUag2XYiN+T48jR87Nv7x6E1OuxBOQBCFEqnzGhTKKUQolBCyDml0e5kZP1h2gFGhz0ol5GRpVBiZDGyjD7xox3GRYc9KOQYWQolRhYjy+gTP9phXHTYg0KOkaVQYmQxsow+8aMdxkWHPSjkGFkKJUYWI8voEz/aYVx02INCbpmRpRzmvzOj3zgr+0OIQon3EINSMMoNCcJWSiFEoRTMICQIWymFEIVSMIOQIGylFEIUSsEMQoKwlVIIUSgFMwgJwlZKIUShFMwgJAhbKYUQhVIwg5AgbKUUQhRKwUwLITN+aZvBbBTGKucof6Ba5SCV9FXOgZDK5OTn1U1HyGTg1XIIORFiZFWtYj6vOqtaDiEVIfM5Qha76pVfbkhFyHzODeGGmC2jxavG4mOvxnFaCiGL3XRuyLTe1xbihnBDtE5xU1VnVevxsbciZD5HyMSrfnl1beI/j9/cPQytsb0+D73++8Uf72/Da1SNFXlTrzYxfMrQAjPGXsUCIYZMhBiwElGEJCgbNRBiwEpEEZKgbNRAiAErEUVIgrJRAyEGrEQUIQnKRg2EGLASUYQkKBs1EGLASkQRkqBs1ECIASsRRUiCslFjN0KMM+8+2uL3kN1TNg6IEANWIoqQBGWjBkIMWIkoQhKUjRoIMWAloghJUDZqIMSAlYgiJEHZqIEQA1YiipAEZaMGQgxYiShCEpSNGggxYCWiCElQNmogxICViA4LSWySGr8Eyn/YAVaWAEKyvMtqCCkRZQMIyfIuqyGkRJQNICTLu6yGkBJRNvAFGmsSbsnlaLoAAAAASUVORK5CYII=",mu=({logo:e,company:t,companiesList:n,companyName:r,size:o=48})=>{const[i,a]=b.useState(()=>{var c;return e||(t&&t[0]&&((c=n[t[0]])!=null&&c.logo)?n[t[0]].logo:IO)}),l=()=>{a(IO)};return b.createElement(Zx,{size:o,src:i,alt:r,onError:l,shape:"square"})};mu.propTypes={logo:pe.string,company:pe.arrayOf(pe.number),companiesList:pe.object,companyName:pe.string,size:pe.number},mu.defaultProps={logo:null,company:[],companiesList:{},companyName:""};const yi={header:"_header_akxwc_1",jobTitle:"_jobTitle_akxwc_6",titleContainer:"_titleContainer_akxwc_14",titleContainerExpanded:"_titleContainerExpanded_akxwc_19",titleContainerCollapsed:"_titleContainerCollapsed_akxwc_23",companyName:"_companyName_akxwc_27",actions:"_actions_akxwc_32"},{Title:NK,Text:IK}=kt,Cv=({title:e,companyName:t,isExpanded:n})=>b.createElement(Zt,{direction:"vertical",size:4,className:U(yi.titleContainer,{[yi.titleContainerExpanded]:n,[yi.titleContainerCollapsed]:!n})},b.createElement(NK,{level:5,className:yi.jobTitle,ellipsis:{rows:1}},e),b.createElement(IK,{type:"secondary",ellipsis:!0,className:yi.companyName},t));Cv.propTypes={title:pe.string.isRequired,companyName:pe.string.isRequired,isExpanded:pe.bool},Cv.defaultProps={isExpanded:!1};const _O=(e,t)=>{let n=0;return e!=null&&e.data&&Object.values(e.data).forEach(r=>{r.contests&&r.contests.cleared===!1&&(n+=1),r.skills&&r.skills.cleared===!1&&(n+=1)}),t!=null&&t.data&&Object.values(t.data).forEach(r=>{r.data&&r.data.cleared===!1&&(n+=1)}),n},Sv=(e,t)=>["experience","notice_period"].every(r=>{if(r===t)return!0;const o=e[r];return!o||o.isEligible}),xv={quick_apply:"quick_apply",eligible:"eligible",ineligible:"ineligible",steps_to_apply:"steps_to_apply",notice_period_mismatch:"notice_period_mismatch",expired:"expired"},_K=["Rejected","Offer Withdrawn","To Be Offered","Offer Accepted","Offer Declined","Joined","Offer Received"],Ev=(e,t)=>{const{isRelevant:n,expiry:r,jobProfileStatus:o}=e,{isEligible:i,reasons:a=[]}=t||{};if(r&&(new Date(r)<new Date||o!=="active"))return{tag:"expired",text:"Job Expired",icon:"ClockCircleOutlined",color:"#5a2780",antdColor:"default"};const c=a.reduce((g,h)=>(g[h.label]=h,g),{}),u=c.experience,d=c.notice_period,f=c.skills,m=c.tech_stacks;if(i&&n)return{tag:"quick_apply",text:"Quick Apply",icon:"CheckCircleOutlined",color:"#20a164",antdColor:"success"};if(i)return{tag:"eligible",text:"Eligible",icon:"CheckCircleOutlined",color:"#20a164",antdColor:"success"};if(u&&!u.isEligible)return{tag:"ineligible",text:"Ineligible",icon:"CloseCircleOutlined",color:"#a42137",antdColor:"error"};if(d&&!d.isEligible&&Sv(c,"notice_period"))return{tag:"notice_period_mismatch",text:"Notice Period Mismatch",icon:"CloseCircleOutlined",color:"#a42137",antdColor:"error"};const p=_O(f,m);return p>0&&Sv(c,"skills")?{tag:"steps_to_apply",text:`${p} ${p===1?"step":"steps"} pending`,icon:"RocketOutlined",color:"#20a164",antdColor:"success",count:p}:{tag:xv.ineligible,text:"Ineligible",icon:"CloseCircleOutlined",color:"#a42137",antdColor:"error"}},PK={tag:"_tag_ueyiz_1"},TK={CheckCircleOutlined:Ih,CloseCircleOutlined:eP,ClockCircleOutlined:Th,RocketOutlined:o2},pu=({jobData:e,currentTab:t})=>{const n=Ev(e,e.eligibilityCriteria);if(!n)return null;const r=TK[n.icon];return b.createElement(ha,{icon:r&&b.createElement(r,null),color:n.antdColor,className:PK.tag,style:n.tag==="expired"?{color:n.color,borderColor:n.color}:{}},n.text)};pu.propTypes={jobData:pe.shape({isRelevant:pe.bool,expiry:pe.string,jobProfileStatus:pe.string,eligibilityCriteria:pe.shape({isEligible:pe.bool,reasons:pe.arrayOf(pe.shape({label:pe.string,isEligible:pe.bool,data:pe.object}))})}).isRequired,currentTab:pe.string},pu.defaultProps={currentTab:"all"};const $v=({jobData:e,currentTab:t})=>b.createElement("div",{className:yi.actions},b.createElement(pu,{jobData:e,currentTab:t}));$v.propTypes={jobData:pe.object.isRequired,currentTab:pe.string},$v.defaultProps={currentTab:"all"};const wv=({jobData:e,companiesList:t,currentTab:n,isExpanded:r})=>b.createElement(wo,{gutter:[12,8],className:yi.header},b.createElement(jn,{flex:"auto"},b.createElement(wo,{gutter:12,align:"top",wrap:!1},b.createElement(jn,null,b.createElement(mu,{logo:e.logo,company:e.company,companiesList:t,companyName:e.name})),b.createElement(jn,{flex:"auto"},b.createElement(Cv,{title:e.title,companyName:e.name,isExpanded:r})))),b.createElement(jn,null,b.createElement($v,{jobData:e,currentTab:n})));wv.propTypes={jobData:pe.object.isRequired,companiesList:pe.object,currentTab:pe.string,isExpanded:pe.bool},wv.defaultProps={companiesList:{},currentTab:"all",isExpanded:!1};const Ov=(e,t)=>{if(e===0&&t===0)return"Fresher";const n=Math.floor(e/12),r=Math.floor(t/12);return n===r?`${n}y Experience`:r===0?"Fresher":n===0?`${r}y Experience`:`${n}y - ${r}y Experience`},Nv=({minCtc:e,maxCtc:t,openForDiscussionCtc:n,isInternship:r,stipend:o,userCountry:i="IN"})=>{if(r)return o?`₹${o}/month`:"Unpaid Internship";const a=i==="US"?"$":"₹",l=i==="US"?"K":"L";return e===null||t===null||e===void 0||t===void 0?`${a} (Flexible)`:n?`${a}${e}${l}+ (Negotiable)`:e===t?`${a}${e}${l} CTC`:`${a}${e}${l} - ${a}${t}${l} CTC`},Iv=e=>!e||e===0?"Immediate":`${e} days Notice Period`,PO=e=>{if(!e)return"";const t=new Date(e),n=String(t.getDate()).padStart(2,"0"),r=String(t.getMonth()+1).padStart(2,"0"),o=t.getFullYear();return`${n}/${r}/${o}`},_v=e=>{if(!e)return null;const t=e.split(",").map(n=>n.trim()).filter(Boolean);return t.length===0?null:t.length===1?t[0]:`${t[0]} +${t.length-1} more`},TO={saveButton:"_saveButton_15f6f_1",savedButton:"_savedButton_15f6f_2"},vu=({jobProfileId:e,applicationStatus:t,applicationLastUpdatedAt:n,onSave:r,disabled:o=!1})=>{const[i,a]=b.useState(!1),l=t==="Saved",c=u=>ar(this,null,function*(){u.stopPropagation(),a(!0);try{yield r(e,l?"unsave":"save")}catch(d){console.error("Save action failed:",d)}finally{a(!1)}});return l&&n?b.createElement(rn,{type:"text",icon:b.createElement(Sb,{twoToneColor:"#8c8c8c"}),onClick:c,disabled:o||i,loading:i,className:TO.savedButton,style:{color:"#8c8c8c"},size:"small"},"Saved on ",PO(n)):b.createElement(rn,{type:"text",icon:b.createElement(s2,null),onClick:c,disabled:o||i,loading:i,className:TO.saveButton,size:"small"},l?"Saved":"Save")};vu.propTypes={jobProfileId:pe.number.isRequired,applicationStatus:pe.string,applicationLastUpdatedAt:pe.string,onSave:pe.func.isRequired,disabled:pe.bool},vu.defaultProps={applicationStatus:"Not Applied",applicationLastUpdatedAt:null,disabled:!1};const Al={body:"_body_1tlme_1",detailsRowContainer:"_detailsRowContainer_1tlme_7",detailsRow:"_detailsRow_1tlme_7",detailText:"_detailText_1tlme_23",saveButtonWrapper:"_saveButtonWrapper_1tlme_29"},{Text:MK}=kt,MO=({text:e})=>e?b.createElement(MK,{className:Al.detailText},e):null;MO.propTypes={text:pe.string};const Pv=({jobData:e,cardConfig:t,userCountry:n,onSave:r,selectedJobId:o})=>{const{preferredCities:i,minExperience:a,maxExperience:l,minCtc:c,maxCtc:u,openForDiscussionCtc:d,isInternship:f,stipend:m,preferredNoticePeriod:p}=e,g=_v(i),h=o===null&&t.isExperienceCtcAvailable?Ov(a,l):null,v=t.isExperienceCtcAvailable?Nv({minCtc:c,maxCtc:u,openForDiscussionCtc:d,isInternship:f,stipend:m,userCountry:n}):null,y=o===null&&t.isNoticePeriodAvailable?Iv(p):null,C=[g&&{text:g},h&&{text:h},v&&{text:v},y&&{text:y}].filter(Boolean);return b.createElement("div",{className:Al.detailsRowContainer},C.length>0&&b.createElement(Zt,{split:b.createElement(I$,{type:"vertical"}),className:Al.detailsRow},C.map((x,E)=>b.createElement(MO,{key:E,text:x.text}))),b.createElement("div",{className:Al.saveButtonWrapper},b.createElement(vu,{jobProfileId:e.id,applicationStatus:e.applicationStatus,applicationLastUpdatedAt:e.applicationLastUpdatedAt,onSave:r})))};Pv.propTypes={jobData:pe.shape({id:pe.number.isRequired,preferredCities:pe.string,minExperience:pe.number,maxExperience:pe.number,minCtc:pe.number,maxCtc:pe.number,openForDiscussionCtc:pe.bool,isInternship:pe.bool,stipend:pe.string,preferredNoticePeriod:pe.number,applicationStatus:pe.string,applicationLastUpdatedAt:pe.string}).isRequired,cardConfig:pe.shape({isExperienceCtcAvailable:pe.bool,isNoticePeriodAvailable:pe.bool}).isRequired,userCountry:pe.oneOf(["IN","US"]),onSave:pe.func.isRequired,selectedJobId:pe.number},Pv.defaultProps={userCountry:"IN",selectedJobId:null};const Tv=({jobData:e,cardConfig:t,userCountry:n,onSave:r,selectedJobId:o})=>b.createElement("div",{className:Al.body},b.createElement(Pv,{jobData:e,cardConfig:t,userCountry:n,onSave:r,selectedJobId:o}));Tv.propTypes={jobData:pe.object.isRequired,cardConfig:pe.object.isRequired,userCountry:pe.oneOf(["IN","US"]),onSave:pe.func.isRequired,selectedJobId:pe.number},Tv.defaultProps={userCountry:"IN",selectedJobId:null};const gu={jobCard:"_jobCard_1orgi_1",expired:"_expired_1orgi_11",active:"_active_1orgi_14",archived:"_archived_1orgi_28",cardContent:"_cardContent_1orgi_37"},hu=({jobData:e,isActive:t,currentTab:n,onClick:r,onSave:o,companiesList:i,userCountry:a,className:l,selectedJobId:c})=>{const{cardConfig:u,shouldShowBody:d}=Kg({currentTab:n,isActive:t,jobData:e}),f=()=>{r&&r(e.id)};return b.createElement(Fc,{className:U(gu.jobCard,{[gu.active]:t,[gu.archived]:e.applicationStatus==="Archived"},l),onClick:f},b.createElement("div",{className:gu.cardContent},b.createElement(wv,{jobData:e,companiesList:i,currentTab:n,isExpanded:!c}),d&&b.createElement(Tv,{jobData:e,cardConfig:u,userCountry:a,onSave:o,selectedJobId:c})))};hu.propTypes={jobData:pe.shape({id:pe.number.isRequired,title:pe.string.isRequired,name:pe.string.isRequired,company:pe.arrayOf(pe.number),logo:pe.string,preferredCities:pe.string,expiry:pe.string,jobProfileStatus:pe.string,isRelevant:pe.bool,applicationStatus:pe.string,applicationLastUpdatedAt:pe.string,minExperience:pe.number,maxExperience:pe.number,minCtc:pe.number,maxCtc:pe.number,preferredNoticePeriod:pe.number,openForDiscussionCtc:pe.bool,isInternship:pe.bool,stipend:pe.string,eligibilityCriteria:pe.shape({isEligible:pe.bool,reasons:pe.arrayOf(pe.object)})}).isRequired,isActive:pe.bool,currentTab:pe.string,onClick:pe.func,onSave:pe.func.isRequired,companiesList:pe.object,userCountry:pe.oneOf(["IN","US"]),className:pe.string,selectedJobId:pe.number},hu.defaultProps={isActive:!1,currentTab:"all",onClick:null,companiesList:{},userCountry:"IN",className:""};const Mv=e=>e&&e.replace(/_([a-z])/g,t=>t[1].toUpperCase()),Dv=e=>!e||typeof e!="string"?e:e.toLowerCase().split(/[\s_]+/).map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" "),DK=(e,t)=>{if(!t||typeof t!="string")return t;switch(e){case"camelCase":return Mv(t);case"titleCase":return Dv(t);default:return t}},bu=e=>{if(e==null)return e;if(Array.isArray(e))return e.map(bu);if(typeof e=="object"){const t={};return Object.keys(e).forEach(n=>{const r=Mv(n);t[r]=bu(e[n])}),t}return e},AK=Xr.injectEndpoints({endpoints:e=>({getJobPreview:e.query({query:t=>`/job-tracker/job_profile/${t}/`,providesTags:(t,n,r)=>[{type:"JobPreview",id:r},{type:"JobPreview",id:"LIST"}],transformResponse:t=>{var a,l,c;const n=bu(t),r=((a=n==null?void 0:n.data)==null?void 0:a.attributes)||{},o=((c=(l=n==null?void 0:n.included)==null?void 0:l.find(u=>u.type==="company"))==null?void 0:c.attributes)||{},i=r.contestSkills||[];return{jobData:ba(ur({},r),{contestSkills:i,name:r.name||(o==null?void 0:o.name)||"Company"}),companyData:o,highlights:r.highlights,eligibilityCriteria:r.eligibilityCriteria}}})}),overrideExisting:!0}),{useGetJobPreviewQuery:DO}=AK,AO=b.createContext(null),RK=({country:e="IN",jobId:t,openMockInterviewModal:n=(a,l)=>{console.log("Method not implemented. We should get it from MIT"),console.log(a,l)},openResume:r=()=>{console.log("Method not implemented. We should get it from MIT")},skip:o=!1,children:i})=>{const{data:a,isLoading:l,error:c,refetch:u}=DO(t,{skip:!t||o}),[d,f]=b.useState(),m={activeTab:d,setActiveTab:f,country:e,jobId:t,data:a,isLoading:l,error:c,refetch:u,openMockInterviewModal:n,openResume:r,jobData:a==null?void 0:a.jobData,companyData:a==null?void 0:a.companyData,highlights:a==null?void 0:a.highlights,eligibilityCriteria:a==null?void 0:a.eligibilityCriteria};return b.createElement(AO.Provider,{value:m},i)},ln=()=>{const e=b.useContext(AO);if(!e)throw new Error("useJobPreview must be used within a JobPreviewProvider");return e},Ci={descriptionContainer:"_descriptionContainer_sd7fu_1",container:"_container_sd7fu_6",recruiterAvatar:"_recruiterAvatar_sd7fu_10",recruiterCardContent:"_recruiterCardContent_sd7fu_14",recruiterName:"_recruiterName_sd7fu_18",recruiterEmail:"_recruiterEmail_sd7fu_24"},jK=({recruiter:e})=>{const{name:t,avatar:n,email:r}=e||{};return b.createElement(Fc,{size:"small"},b.createElement(Zt,{direction:"horizontal"},b.createElement(Zx,{size:48,src:n,className:Ci.recruiterAvatar}),b.createElement(Zt,{direction:"vertical",className:Ci.recruiterCardContent},b.createElement(kt.Text,{className:Ci.recruiterName},t),b.createElement(kt.Link,{className:Ci.recruiterEmail,href:`mailto:${r}`},b.createElement(DT,null),"Send Email To Recruiter"))))},LK=()=>{const{jobData:e}=ln(),{recruiters:t}=e||{};return b.createElement(Zt,null,t.map((n,r)=>b.createElement(jK,{key:r,recruiter:n})))},zK=()=>{const{jobData:e}=ln(),{applicationTimeline:t}=e||{},{timeline:n}=t||{},r=n.map(i=>({title:i.stageName,description:i.stageComments})),o=n.findIndex(i=>i.stageStatus==="ongoing");return b.createElement(Z1,{current:o,items:r,direction:"vertical"})},BK=()=>b.createElement(Zt,{direction:"vertical",size:"large",className:Ci.descriptionContainer},b.createElement(kt.Title,{level:4},"Your Application Status"),b.createElement(zK,null)),kK=()=>{const{jobData:e}=ln(),{recruiters:t}=e||{};return!t||t.length===0?null:b.createElement(Zt,{direction:"vertical",size:"large",className:Ci.descriptionContainer},b.createElement(kt.Title,{level:4},"Recruiter Details"),b.createElement(LK,null))},FK=()=>b.createElement(Zt,{direction:"vertical",size:"large",className:Ci.container},b.createElement(BK,null),b.createElement(kK,null)),Av={bookmark:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/170/276/original/BookmarkSimple.svg?1765444708",exit:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/170/344/original/ExportOutlined.svg?1765460782",airplay:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/170/451/original/Vector.svg?1765523747",monitor:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/170/455/original/Vector_%281%29.svg?1765526679"},Rl={actionBanner:"_actionBanner_13z26_1",actionBannerIcon:"_actionBannerIcon_13z26_12",actionBannerContent:"_actionBannerContent_13z26_17",actionBannerTitle:"_actionBannerTitle_13z26_23",actionBannerDescription:"_actionBannerDescription_13z26_29",actionBannerButton:"_actionBannerButton_13z26_33"},RO=({icon:e,title:t,description:n,buttonText:r,buttonIcon:o,className:i,onClick:a,isLoading:l})=>b.createElement("div",{className:U(Rl.actionBanner,i)},e,b.createElement("div",{className:Rl.actionBannerContent},b.createElement("span",{className:Rl.actionBannerTitle},t),b.createElement("span",{className:Rl.actionBannerDescription},n)),b.createElement(rn,{icon:o,type:"primary",className:Rl.actionBannerButton,onClick:a,loading:l},r)),jO={monitorBanner:"_monitorBanner_gxbq6_1",monitorIcon:"_monitorIcon_gxbq6_7"},HK="https://companion.scaler.com/interview-experiences",LO=()=>{const{jobData:e,companyData:t}=ln(),{appliedOn:n,title:r,applicationStatus:o}=e||{},i=o===Oi.WITHDRAWN,{name:a}=t||{},l=b.useCallback(()=>{globalThis.open(`${HK}?company=${encodeURIComponent(a)}&role=${encodeURIComponent(r)}`,"_blank")},[a,r]);return!n||i?null:b.createElement(RO,{icon:b.createElement("img",{src:Av.monitor,className:jO.monitorIcon}),title:"We've got the resources you need for this role",description:"Explore Interview Experiences from Scaler learners who have attempted this before",buttonText:"Explore",buttonIcon:b.createElement(Md,null),className:jO.monitorBanner,onClick:l})},dn={jobDescriptionTab:"_jobDescriptionTab_kg97i_1",contentContainer:"_contentContainer_kg97i_5",descriptionTitle:"_descriptionTitle_kg97i_10",descriptionText:"_descriptionText_kg97i_18",descriptionLink:"_descriptionLink_kg97i_32",list:"_list_kg97i_36",steps:"_steps_kg97i_40",descriptionContainer:"_descriptionContainer_kg97i_44",container:"_container_kg97i_49"},VK=()=>{const{companyData:e}=ln(),{name:t,employeeCount:n,companyVision:r,location:o,category:i,companyWebsite:a}=e||{};return b.createElement(Zt,{className:dn.contentContainer,direction:"vertical",size:"large"},b.createElement(kt.Text,{className:dn.descriptionTitle},"About ",t,a&&b.createElement(kt.Link,{className:dn.descriptionLink,href:a,target:"_blank"},b.createElement(Zt,null,b.createElement(lb,null),"Company Website"))),r&&b.createElement(kt.Paragraph,{className:dn.descriptionText},b.createElement("div",{dangerouslySetInnerHTML:{__html:r}})),o&&b.createElement(Zt,null,b.createElement(kt.Text,{className:dn.descriptionTitle},"Office Location:"),b.createElement(kt.Text,{className:dn.descriptionText},o)),i&&b.createElement(Zt,null,b.createElement(kt.Text,{className:dn.descriptionTitle},"Company Category:"),b.createElement(kt.Text,{className:dn.descriptionText},Dv(i))),n&&b.createElement(Zt,null,b.createElement(kt.Text,{className:dn.descriptionTitle},"No. of Employees:"),b.createElement(kt.Text,{className:dn.descriptionText},n)))},Rv={collapsableContainer:"_collapsableContainer_1bjjt_1",collapsed:"_collapsed_1bjjt_5",viewMore:"_viewMore_1bjjt_21"},WK=({html:e,contentClassName:t})=>{const[n,r]=b.useState(!1);return b.createElement("div",{className:Rv.collapsableContainer},b.createElement("div",{className:U(t,{[Rv.collapsed]:!n}),dangerouslySetInnerHTML:{__html:e}}),b.createElement(kt.Link,{className:Rv.viewMore,onClick:()=>r(!n)},n?"View Less":"View More"))},KK=()=>{const{jobData:e}=ln(),{jobDescText:t,jobDesc:n}=e||{};return b.createElement(Zt,{className:dn.contentContainer,direction:"vertical",size:"large"},b.createElement(kt.Text,{className:dn.descriptionTitle},"About the Role",n&&b.createElement(kt.Link,{className:dn.descriptionLink,href:n,target:"_blank"},b.createElement(Zt,null,b.createElement(lb,null),"Know More"))),t&&b.createElement(WK,{html:t,contentClassName:dn.descriptionText}))},jv={collapsableContainer:"_collapsableContainer_1bjjt_1",collapsed:"_collapsed_1bjjt_5",viewMore:"_viewMore_1bjjt_21"},qK=({children:e,contentClassName:t})=>{const[n,r]=b.useState(!1);return b.createElement("div",{className:jv.collapsableContainer},b.createElement("div",{className:U(t,{[jv.collapsed]:!n})},e),b.createElement(kt.Link,{className:jv.viewMore,onClick:()=>r(!n)},n?"View Less":"View More"))},GK=()=>{const{jobData:e,country:t}=ln(),{benefits:n,visaSponsorship:r}=e||{},o=r==="yes";return!n&&!o||t!=="US"?null:b.createElement(Zt,{className:dn.contentContainer,direction:"vertical",size:"large"},b.createElement(kt.Text,{className:dn.descriptionTitle},"Benefits"),b.createElement(qK,{contentClassName:dn.descriptionText},b.createElement("ul",{className:dn.list},n==null?void 0:n.map(i=>b.createElement("li",{key:i},i)),o&&b.createElement("li",null,"Visa sponsorship available"))))},UK=()=>{const{jobData:e}=ln(),{hiringSteps:t}=e||{};if(!t)return null;const n=t==null?void 0:t.map(r=>({title:b.createElement("span",{className:dn.descriptionTitle},r.stepName),description:b.createElement("span",{className:dn.descriptionText},r.interviewType)}));return b.createElement(Z1,{className:dn.steps,current:-1,progressDot:!0,items:n})},XK=()=>b.createElement(Zt,{direction:"vertical",size:"large",className:dn.descriptionContainer},b.createElement(kt.Title,{level:4},"Job Description"),b.createElement(VK,null),b.createElement(KK,null),b.createElement(GK,null)),QK=()=>b.createElement(Zt,{direction:"vertical",size:"large",className:dn.descriptionContainer},b.createElement(kt.Title,{level:4},"Post Application Process"),b.createElement(UK,null)),YK=()=>b.createElement(Zt,{direction:"vertical",size:"large",className:dn.container},b.createElement(XK,null),b.createElement(QK,null),b.createElement(LO,null)),Ko={container:"_container_1froy_1",dot:"_dot_1froy_5",successDot:"_successDot_1froy_11",errorDot:"_errorDot_1froy_15"},Mr={completed:"Completed",pending:"Pending",notRequired:"Not Required"},JK=[{title:"Skill Type",dataIndex:"skillType"},{title:"Status",dataIndex:"status"},{title:"Contests",dataIndex:"contests"},{title:"Mock Interview",dataIndex:"mockInterview"}],ZK=({status:e})=>b.createElement(ha,{color:e===Mr.completed?"success":"warning"},e),eq=({contestDetails:e})=>{if(!e)return Mr.notRequired;const{cleared:t,joinLink:n}=e;return t?b.createElement(Zt,null,b.createElement("div",{className:U(Ko.dot,Ko.successDot)}),b.createElement(kt.Text,null,"Success")):b.createElement(kt.Link,{href:n,underline:!0},"Attempt Contest")},tq=({mockInterviewDetails:e,skillId:t,skillName:n})=>{const{openMockInterviewModal:r}=ln();if(!e)return Mr.notRequired;const{cleared:o}=e;return o?b.createElement(Zt,null,b.createElement("div",{className:U(Ko.dot,Ko.successDot)}),b.createElement(kt.Text,null,"Success")):b.createElement(kt.Link,{onClick:()=>r(t,n),underline:!0},"Schedule Interview")},nq=()=>{const{jobData:e}=ln(),{eligibilityCriteria:t}=e||{},{reasons:n}=t||{},r=n==null?void 0:n.find(i=>i.label==="skills");if(!r)return null;const o=Object.entries(r.data).map(([i,a])=>{const l=a.contests,c=l?a.contests.cleared?Mr.completed:Mr.pending:Mr.notRequired,u=a.skills,d=u?a.skills.cleared?Mr.completed:Mr.pending:Mr.notRequired,f=[c,d].every(m=>m!==Mr.pending)?Mr.completed:Mr.pending;return{skillType:i,status:b.createElement(ZK,{status:f}),contests:b.createElement(eq,{contestDetails:l}),mockInterview:b.createElement(tq,{mockInterviewDetails:u,skillId:a.skillId,skillName:a.skillName})}});return b.createElement(sv,{title:()=>b.createElement(kt.Text,{strong:!0},"Scaler certifications you need to apply"),columns:JK,dataSource:o,pagination:!1})},jl={added:"Added",missing:"Missing"},rq=[{title:"Stack Type",dataIndex:"stackType"},{title:"Experience (Yrs)",dataIndex:"experience"},{title:"Status",dataIndex:"status"},{title:"",dataIndex:"action"}],oq=({status:e})=>b.createElement(Zt,null,b.createElement("div",{className:U(Ko.dot,{[Ko.successDot]:e===jl.added,[Ko.errorDot]:e===jl.missing})}),b.createElement(kt.Text,null,e)),iq=({status:e})=>{const{openResume:t}=ln();return e===jl.added?null:b.createElement(kt.Link,{onClick:t,underline:!0},"Add Skill")},aq=()=>{const{jobData:e}=ln(),{eligibilityCriteria:t}=e||{},{reasons:n}=t||{},r=n==null?void 0:n.find(i=>i.label==="tech_stacks");if(!r)return null;const o=Object.entries(r.data).map(([i,a])=>{var c;const l=(c=a.data)!=null&&c.cleared?jl.added:jl.missing;return{stackType:i,experience:`${Math.floor(a.proficiencyPeriod/12)}+`,status:b.createElement(oq,{status:l}),action:b.createElement(iq,{status:l})}});return b.createElement(sv,{title:()=>b.createElement(kt.Text,{strong:!0},"Skills and Toolsets in your Resume"),columns:rq,dataSource:o,pagination:!1})},lq=(e,t)=>{const n=`${Math.floor(e/12)}y`,r=e%12===0?"":` ${e%12}m`,o=`${n}${r}`;if(!t)return`${o}+ Experience`;const i=`${Math.floor(t/12)}y`,a=t%12===0?"":`${t%12}m`;return`${o} - ${i} ${a} Experience`},sq=e=>e===0?"Immediate":e==null?"NA":`${e} days`,cq={placed_mentee:()=>"CTC greater than 1.6x of current offer",diversity:()=>"Female Candidates Only",experience:({minExperience:e,maxExperience:t})=>lq(e,t),notice_period:({preferredNoticePeriod:e})=>`${sq(e)} Notice Period`},Lv={eligible:"Eligible",ineligible:"Ineligible"},uq=[{title:"Requirement",dataIndex:"requirement"},{title:"Details",dataIndex:"details"},{title:"Status",dataIndex:"status"}],dq=({status:e})=>e===Lv.eligible?b.createElement(ha,{color:"success"},"Eligible"):b.createElement(ha,{color:"error"},"Ineligible"),fq=()=>{const{jobData:e}=ln(),{eligibilityCriteria:t}=e||{},{reasons:n}=t||{},r=n==null?void 0:n.filter(i=>i.label!=="skills"&&i.showText);if(!r)return null;const o=r.map(i=>{const a=i.isEligible?Lv.eligible:Lv.ineligible;return{requirement:Dv(i.label),details:cq[i.label](e),status:b.createElement(dq,{status:a})}});return b.createElement(sv,{title:()=>b.createElement(kt.Text,{strong:!0},"Skills and Toolsets in your Resume"),columns:uq,dataSource:o,pagination:!1})},mq=()=>{const{jobData:e}=ln(),{eligibilityCriteria:t}=e||{};return t?b.createElement(Zt,{direction:"vertical",size:"large",className:Ko.container},b.createElement(kt.Title,{level:4},"Job Check-list"),b.createElement(nq,null),b.createElement(aq,null),b.createElement(fq,null)):null},zO={bodyContainer:"_bodyContainer_1nalq_1",tabs:"_tabs_1nalq_5"},pq=()=>{var a;const{activeTab:e,setActiveTab:t,jobData:n}=ln(),{applicationTimeline:r}=n||{},i=[((a=r==null?void 0:r.timeline)==null?void 0:a.length)>0&&{key:ti.APPLICATION_TIMELINE.key,label:ti.APPLICATION_TIMELINE.label,children:b.createElement(FK,null)},{key:ti.ABOUT_ROLE.key,label:ti.ABOUT_ROLE.label,children:b.createElement(YK,null)},{key:ti.REQUIREMENTS.key,label:ti.REQUIREMENTS.label,children:b.createElement(mq,null)}].filter(Boolean);return b.createElement("div",{className:zO.bodyContainer},b.createElement(vp,{activeKey:e,className:zO.tabs,items:i,onChange:t}))},vq=Xr.injectEndpoints({endpoints:e=>({updateApplicationStatus:e.mutation({query:t=>({url:"/job-tracker/update-application/",method:"PATCH",body:t}),invalidatesTags:(t,n,{job_profile_id:r})=>[{type:"JobPreview",id:r}]})})}),{useUpdateApplicationStatusMutation:BO}=vq,qo={appliedButton:"_appliedButton_1f028_1",saveButton:"_saveButton_1f028_9",savedButton:"_savedButton_1f028_9",jobActions:"_jobActions_1f028_30",withdrawalReasonForm:"_withdrawalReasonForm_1f028_36",warningIcon:"_warningIcon_1f028_41",withdrawalReasonRadioGroup:"_withdrawalReasonRadioGroup_1f028_45",withdrawnText:"_withdrawnText_1f028_52"},gq=({withdrawalReason:e,setWithdrawalReason:t,withdrawalMessage:n,setWithdrawalMessage:r})=>{const o=a=>{const l=a.target.value;t(l),l!=="Other"&&r("")},i=a=>{r(a.target.value)};return b.createElement(b.Fragment,null,b.createElement(kt.Text,null,"Please note that once withdrawn you will not be allowed to apply for this job again"),b.createElement(Vt,{className:qo.withdrawalReasonForm},b.createElement(Vt.Item,{layout:"vertical",label:"Select reason"},b.createElement(gr.Group,{className:qo.withdrawalReasonRadioGroup,onChange:o,value:e},wa.map(a=>b.createElement(gr,{key:a.value,value:a.value},a.label))),e==="Other"&&b.createElement(Vt.Item,null,b.createElement(vi.TextArea,{value:n,onChange:i,placeholder:"Please specify your reason"})))))},hq=()=>{var v;const{jobId:e,jobData:t,refetch:n}=ln(),{applicationStatus:r,appliedOn:o}=t||{},[i,a]=b.useState(!1),[l,c]=b.useState((v=wa[0])==null?void 0:v.value),[u,d]=b.useState(""),[f]=BO(),{message:m}=zS.useApp(),p=()=>ar(this,null,function*(){var C,x;const y=yield f({job_profile_id:e,update_action:"withdraw",message:u||l});(C=y==null?void 0:y.data)!=null&&C.success?(m.success("Application withdrawn successfully"),a(!1),c((x=wa[0])==null?void 0:x.value),d(""),n()):m.error("Failed to withdraw application")}),g=()=>{var y;a(!1),c((y=wa[0])==null?void 0:y.value),d("")},h=()=>{var y;c((y=wa[0])==null?void 0:y.value),d(""),a(!0)};return r===Oi.WITHDRAWN?b.createElement("div",{className:qo.withdrawnText},b.createElement(To,null),"Your Application has been Withdrawn"):o&&!_K.includes(r)?b.createElement(b.Fragment,null,b.createElement(rn,{icon:b.createElement("img",{src:Av.exit,alt:"exit"}),onClick:h,className:qo.withdrawButton,ghost:!0,type:"primary",size:"large"},"Withdraw Application"),b.createElement(F1,{title:b.createElement(Zt,null,b.createElement(O2,{className:qo.warningIcon}),b.createElement(kt.Text,null,"Withdraw My Application")),open:i,onOk:p,onCancel:g},b.createElement(gq,{withdrawalReason:l,setWithdrawalReason:c,withdrawalMessage:u,setWithdrawalMessage:d}))):null},bq=()=>{const{jobId:e,jobData:t,refetch:n}=ln(),[r,{isLoading:o}]=BO(),{applicationStatus:i,appliedOn:a}=t||{},l=i===Oi.SAVED,c=()=>ar(this,null,function*(){var d;const u=yield r({job_profile_id:e,update_action:"save"});(d=u==null?void 0:u.data)!=null&&d.success?(Hr.success("Application saved successfully"),n()):Hr.error("Failed to save application")});return a?null:l?b.createElement(rn,{icon:b.createElement("img",{src:Av.bookmark,alt:"bookmark"}),type:"text",size:"large",disabled:!0},"Saved"):b.createElement(rn,{icon:b.createElement(Sb,null),type:"primary",ghost:!0,size:"large",onClick:c,loading:o},"Save")},yq=()=>{const{jobData:e,eligibilityCriteria:t}=ln(),{appliedOn:n,applicationStatus:r}=e||{},{isEligible:o}=t||{},i=r===Oi.WITHDRAWN,a=()=>{};return i?null:n?b.createElement(rn,{icon:b.createElement(To,null),className:qo.appliedButton,type:"text",size:"large"},"Applied"):b.createElement(rn,{icon:b.createElement(hb,null),onClick:a,className:qo.applyButton,type:"primary",size:"large",disabled:!o},"Apply Now")},Cq=()=>b.createElement("div",{className:qo.jobActions},b.createElement(yq,null),b.createElement(bq,null),b.createElement(hq,null)),Io={basicInfo:"_basicInfo_2vzae_1",companyInfo:"_companyInfo_2vzae_12",companyName:"_companyName_2vzae_18",container:"_container_2vzae_25",extraDetails:"_extraDetails_2vzae_33",extraDetailsDivider:"_extraDetailsDivider_2vzae_44",jobTitle:"_jobTitle_2vzae_51",jobLocation:"_jobLocation_2vzae_58"},Sq=()=>{const{companyData:e}=ln(),{logo:t,name:n}=e||{};return b.createElement("div",{className:Io.companyInfo},b.createElement(mu,{logo:t,companyName:n,size:50}),b.createElement("div",{className:Io.companyName},n))},xq=()=>{const{jobData:e}=ln(),{title:t}=e||{};return b.createElement(kt.Text,{ellipsis:!0,className:Io.jobTitle},t)},Eq=()=>{const{jobData:e}=ln(),{preferredCities:t}=e||{},n=_v(t);return b.createElement("div",{className:Io.jobLocation},n)},$q=()=>b.createElement("div",{className:Io.basicInfo},b.createElement(Sq,null),b.createElement(xq,null),b.createElement(Eq,null)),wq=()=>{const{jobData:e}=ln(),{minCtc:t,maxCtc:n,openForDiscussionCtc:r,isInternship:o,stipend:i,preferredNoticePeriod:a,minExperience:l,maxExperience:c}=e||{},u=Nv({minCtc:t,maxCtc:n,openForDiscussionCtc:r,isInternship:o,stipend:i}),d=Ov(l,c),f=Iv(a);return b.createElement("div",{className:Io.extraDetails},[u,d,f].filter(Boolean).map((m,p)=>b.createElement(b.Fragment,{key:p},b.createElement("div",{className:Io.detail},m),b.createElement(I$,{size:"large",type:"vertical",className:Io.extraDetailsDivider}))))},Oq=()=>b.createElement("div",{className:Io.container},b.createElement($q,null),b.createElement(wq,null),b.createElement(Cq,null)),Mn={container:"_container_kgogb_1",actionAlert:"_actionAlert_kgogb_14",ineligible:"_ineligible_kgogb_24",stepsToApply:"_stepsToApply_kgogb_29",actionAlertIcon:"_actionAlertIcon_kgogb_35",actionAlertTitle:"_actionAlertTitle_kgogb_46",eligible:"_eligible_kgogb_52",title:"_title_kgogb_57",highlightsList:"_highlightsList_kgogb_64",keywordsList:"_keywordsList_kgogb_72",keyword:"_keyword_kgogb_72",exceptions:"_exceptions_kgogb_101",exceptionsIconContainer:"_exceptionsIconContainer_kgogb_107",exceptionsIcon:"_exceptionsIcon_kgogb_107",exceptionsTitle:"_exceptionsTitle_kgogb_116",exception:"_exception_kgogb_101",exceptionItem:"_exceptionItem_kgogb_124",exceptionsList:"_exceptionsList_kgogb_131"},Nq=({eligibilityStatus:e,metric:t,onScrollToEnd:n})=>{const{setActiveTab:r}=ln(),o=()=>{r(ti.REQUIREMENTS.key),n()};return e===xv.ineligible?b.createElement("div",{className:U(Mn.actionAlert,Mn.ineligible)},b.createElement(kP,null),b.createElement("span",{className:Mn.actionAlertTitle},"Unfortunately! Your profile does not have the relevant years of experience for this role")):e===xv.steps_to_apply?b.createElement(RO,{icon:b.createElement(G_,{className:Mn.actionAlertIcon}),title:`Eligible to apply in ${t} more steps!`,description:"Complete these three test to become eligible to apply!",buttonText:"Complete Tasks",buttonIcon:b.createElement(Dd,null),className:Mn.stepsToApply,onClick:o}):null},Iq=({highlights:e})=>b.createElement(b.Fragment,null,b.createElement("div",{className:Mn.title},"Top Reasons to Apply"),b.createElement("ul",{className:Mn.highlightsList},e==null?void 0:e.map(t=>b.createElement("li",{key:t,className:Mn.highlight},b.createElement("span",{className:Mn.highlightText},t))))),_q=({keywords:e,eligibilityStatus:t})=>b.createElement("div",{className:Mn.keywordsList},e==null?void 0:e.map((n,r)=>b.createElement("div",{key:r,className:U(Mn.keyword,Mn[Mv(t)])},n))),Pq=({exceptionalJob:e})=>{if(!e)return null;const t=["Considering your current profile and preferences, you seem to be a right fit","Which means that you get to apply to this job irrespective of the requirements mentioned below","So in case this matches what you are looking for, please apply"];return b.createElement("div",{className:Mn.exceptions},b.createElement("div",{className:Mn.exceptionsIconContainer},b.createElement(b2,{size:20,twoToneColor:"#FAAD14",className:Mn.exceptionsIcon})),b.createElement("div",null,b.createElement("div",{className:Mn.exceptionsTitle},"We've made an exception for you!"),b.createElement("ul",{className:Mn.exceptionsList},t.map((n,r)=>b.createElement("li",{className:[Mn.exception],key:r},n)))))},Tq=()=>{const{jobData:e,highlights:t,eligibilityCriteria:n}=ln(),r=b.useRef(null),{highlights:o,keywords:i}=t||(e==null?void 0:e.highlights)||{},{tag:a,count:l}=Ev(e,n||{}),c=()=>{if(r.current&&typeof window!="undefined"){const d=r.current.getBoundingClientRect(),f=d.top+window.pageYOffset,m=d.height,p=window.innerHeight,g=f+m-p/2;window.scrollTo({top:g,behavior:"smooth"})}};return e!=null&&e.appliedOn||!(o!=null&&o.length)?null:b.createElement("div",{ref:r,className:U(Mn.container,Mn[a])},b.createElement(Nq,{eligibilityStatus:a,metric:l,onScrollToEnd:c}),b.createElement(Iq,{highlights:o}),b.createElement(_q,{keywords:i,eligibilityStatus:a}),b.createElement(Pq,{exceptionalJob:e==null?void 0:e.exceptionalJob}))},Mq=Xr.injectEndpoints({endpoints:e=>({issueScreeningCall:e.mutation({query:()=>({url:"/api/v3/careers-hub/screening-call/",method:"POST"})})})}),{useIssueScreeningCallMutation:Dq}=Mq,dZ={screeningCallBanner:"_screeningCallBanner_1ltmt_1",screeningCallIcon:"_screeningCallIcon_1ltmt_7",screeningCallButtonIcon:"_screeningCallButtonIcon_1ltmt_12"},Aq=()=>{ln();const[e,{isLoading:t}]=Dq();return b.useCallback(()=>ar(this,null,function*(){var r;const n=yield e();(r=n==null?void 0:n.data)!=null&&r.url?globalThis.open(n.data.url,"_blank"):Hr.error("Failed to initiate screening call. Please try again.")}),[e]),null},yu={expandedJobView:"_expandedJobView_1lt4c_2",loadingCard:"_loadingCard_1lt4c_18"},Rq=()=>b.createElement("div",{className:yu.expandedJobView},b.createElement(Oq,null),b.createElement(Tq,null),b.createElement(Aq,null),b.createElement(LO,null),b.createElement(pq,null)),jq=({country:e,openMockInterviewModal:t,openResume:n,jobId:r,isActive:o,currentTab:i})=>{var u;const{data:a,isLoading:l,error:c}=DO(r,{skip:!r||!o});return!o||!r?null:l?b.createElement(Fc,{className:`${yu.expandedJobView} ${yu.loadingCard}`},b.createElement(Yc,{size:"large"})):c?b.createElement(Fc,{className:yu.expandedJobView},b.createElement(wf,{type:"error",message:"Failed to load job details",description:((u=c==null?void 0:c.data)==null?void 0:u.message)||(c==null?void 0:c.message)||"Please try again later",showIcon:!0})):a?b.createElement(zS,null,b.createElement(RK,{country:e,openMockInterviewModal:t,openResume:n,jobId:r,skip:!o},b.createElement(Rq,{currentTab:i}))):null},Cu={content:"_content_koeg3_1",header:"_header_koeg3_8",sider:"_sider_koeg3_16",layout:"_layout_koeg3_20"},{Header:Lq,Sider:zq,Content:Bq}=Np;function Su({header:e,children:t,className:n,sider:r,siderWidth:o}){return b.createElement(Np,{className:n},b.createElement(Lq,{className:Cu.header},e||"Header"),b.createElement(Np,{className:Cu.layout},b.createElement(Bq,{className:Cu.content},t),r&&b.createElement(zq,{className:Cu.sider,width:o||"25%"},r)))}Su.propTypes={children:pe.node.isRequired,className:pe.string,sider:pe.node,siderWidth:pe.oneOfType([pe.string,pe.number])},Su.defaultProps={className:"",sider:null,siderWidth:"25%"};const Ll={tagsSection:"_tagsSection_gf6im_1",tag:"_tag_gf6im_1",activeTag:"_activeTag_gf6im_22",icon:"_icon_gf6im_29"};function kq(){const e=wt.useDispatch(),t=wt.useSelector(a=>{var l,c;return((c=(l=a.scalantCareerHub)==null?void 0:l.filter)==null?void 0:c.tab)||"all"}),n=wt.useSelector(a=>{var l,c;return((c=(l=a.scalantCareerHub)==null?void 0:l.dashboard)==null?void 0:c.processCounts)||{}}),r=a=>{const l=pn[a];l&&e(DI(l))},o=a=>{const l=pn[a];return t===l},i=a=>{const l=A2[a];return n[l]||0};return b.createElement("div",{className:Ll.tagsSection},Object.keys(zd).map(a=>b.createElement(ha,{className:U(Ll.tag,{[Ll.activeTag]:o(a)}),key:a,onClick:()=>r(a)},b.createElement(zd[a].icon,{className:Ll.icon}),zd[a].label," ",b.createElement("span",{className:Ll.count},"(",i(a),")"))))}const Fq={processCounts:Mb,filterModalOpen:!1,jobAlertModalOpen:!1},kO=We.createSlice({name:"dashboard",initialState:Fq,reducers:{setProcessCounts:(e,t)=>{e.processCounts=t.payload},openFilterModal:e=>{e.filterModalOpen=!0},closeFilterModal:e=>{e.filterModalOpen=!1},openJobAlertModal:e=>{e.jobAlertModalOpen=!0},closeJobAlertModal:e=>{e.jobAlertModalOpen=!1}}}),{setProcessCounts:Hq,openFilterModal:Vq,closeFilterModal:Wq,openJobAlertModal:Kq,closeJobAlertModal:qq}=kO.actions,Gq=kO.reducer,FO={jobAlert:"_jobAlert_sfx7a_1"};function Uq(){const e=wt.useDispatch(),t=()=>{e(Kq())};return b.createElement("div",{className:FO.jobAlert,onClick:t},b.createElement(Td,{className:FO.icon}),"Job Alerts")}const Xq={};function Qq(){const e=wt.useDispatch(),t=wt.useSelector(a=>{var l,c;return((c=(l=a.scalantCareerHub)==null?void 0:l.filter)==null?void 0:c.sortings)||[]}),n=b.useMemo(()=>R2(t),[t]),r=a=>{const l=ps[a];l&&e(jI([l.mapping]))},o=Object.values(ps).map(a=>({value:a.value,label:a.value===n?`Sorted By: ${a.label}`:a.label})),i=a=>{const l=ps[a.value];return l?l.label:a.label};return b.createElement(yn,{className:Xq.sorting,value:n,onChange:r,suffixIcon:b.createElement(ms,null),options:o,optionRender:i})}const Yq={};function Jq(){const e=wt.useDispatch(),t=()=>{e(Vq())};return b.createElement(rn,{type:"primary",className:Yq.filter,onClick:t},"Filters ",b.createElement(ms,null))}const zv={search:"_search_hhvxj_1",iconContainer:"_iconContainer_hhvxj_7",input:"_input_hhvxj_20",slideIn:"_slideIn_hhvxj_1"};function Zq(){const e=wt.useDispatch(),t=wt.useSelector(f=>{var m,p,g;return((g=(p=(m=f.scalantCareerHub)==null?void 0:m.filter)==null?void 0:p.filters)==null?void 0:g.keyword)||""}),[n,r]=b.useState(!1),[o,i]=b.useState(t),a=b.useRef(null),l=b.useRef(null);b.useEffect(()=>{i(t)},[t]),b.useEffect(()=>{n&&a.current&&a.current.focus()},[n]);const c=()=>{r(!0)},u=f=>{const m=f.target.value;i(m),l.current&&clearTimeout(l.current),l.current=setTimeout(()=>{e(AI(m))},300)},d=()=>{o.trim()||r(!1)};return b.useEffect(()=>()=>{l.current&&clearTimeout(l.current)},[]),b.createElement("div",{className:zv.search},n||o?b.createElement(vi,{ref:a,className:zv.input,placeholder:"Search for job or Company Name",value:o,onChange:u,onBlur:d,suffix:b.createElement(Aa,null)}):b.createElement("div",{className:zv.iconContainer,onClick:c},b.createElement(Aa,null)))}const eG={actions:"_actions_nxp1u_1"};function tG(){return b.createElement("div",{className:eG.actions},b.createElement(Uq,null),b.createElement(Qq,null),b.createElement(Jq,null),b.createElement(Zq,null))}const nG={jobsHeaderContainer:"_jobsHeaderContainer_1un8f_1"};function xu({className:e}){return b.createElement("div",{className:U(e,nG.jobsHeaderContainer)},b.createElement(kq,null),b.createElement(tG,null))}xu.propTypes={className:pe.string},xu.defaultProps={className:""};function Eu({className:e}){return b.createElement("div",{className:e},b.createElement("h1",{style:{textAlign:"center"}},"Profile Details"))}Eu.propTypes={className:pe.string},Eu.defaultProps={className:""};function $u({country:e,openMockInterviewModal:t,openResume:n,jobId:r,className:o}){return r?b.createElement("div",{className:o},b.createElement(jq,{country:e,openMockInterviewModal:t,openResume:n,jobId:r,isActive:!!r,currentTab:"all"})):null}$u.propTypes={country:pe.string,openMockInterviewModal:pe.func,openResume:pe.func,jobId:pe.oneOfType([pe.string,pe.number]),className:pe.string},$u.defaultProps={jobId:null,className:""};const Bv=e=>{var n,r,o,i,a,l;if(!e||!((n=e.jobs_data)!=null&&n.data)||!Array.isArray((r=e.jobs_data)==null?void 0:r.data))return[];const t={};return(o=e.jobs_data)!=null&&o.included&&Array.isArray((i=e.jobs_data)==null?void 0:i.included)&&((a=e.jobs_data)==null||a.included.forEach(c=>{c.type==="company"&&c.attributes&&(t[c.id]=c.attributes)})),(l=e.jobs_data)==null?void 0:l.data.map(c=>{if(c.type!=="job_profile"||!c.attributes)return null;const u=c.attributes,d=c.relationships||{};let f=null;if(d.company&&d.company.data){const p=d.company.data.id;f=t[p]||null}return{id:parseInt(c.id,10),title:u.title||"",name:u.title||"",slug:u.slug||"",jobDesc:u.job_desc||"",jobDescText:u.job_desc_text||"",minExperience:u.min_experience?parseFloat(u.min_experience):null,maxExperience:u.max_experience?parseFloat(u.max_experience):null,minCtc:u.min_ctc?parseFloat(u.min_ctc):null,maxCtc:u.max_ctc?parseFloat(u.max_ctc):null,validTill:u.valid_till||null,createdAt:u.created_at||null,jobType:u.job_type||null,preferredCities:u.preferred_cities||"",preferredNoticePeriod:u.preferred_notice_period||null,meritBasedSkills:u.merit_based_skills||[],contestSkills:u.contest_skills||[],applicationStatus:u.application_status||null,expiry:u.expiry||u.valid_till||null,applicationId:u.application_id||null,userCompanyStatus:u.user_company_status||null,applicationLastUpdatedAt:u.application_last_upated_at||null,jobSource:u.job_source||null,jobProfileId:u.job_profile_id||null,jobProfileStatus:u.job_profile_status||"active",datePostedOn:u.date_posted_on||null,openForDiscussionCtc:u.open_for_discussion_ctc||!1,appliedOn:u.applied_on||null,seniorityLevel:u.seniority_level||null,roleType:u.role_type||"full_time",duration:u.duration||null,stipend:u.stipend||null,eligibilityCriteria:u.eligibility_criteria||{is_eligible:!1,reasons:[]},exceptionalJob:u.exceptional_job||!1,isRelevant:u.is_relevant||!1,isInternship:u.role_type==="internship",company:f?[parseInt(d.company.data.id,10)]:[],logo:(f==null?void 0:f.logo)||null,companyName:(f==null?void 0:f.name)||null,companySlug:(f==null?void 0:f.slug)||null,companyLocation:(f==null?void 0:f.location)||null,companyWebsite:(f==null?void 0:f.company_website)||null,companyVision:(f==null?void 0:f.company_vision)||null,companyTagline:(f==null?void 0:f.tagline)||null,companyCategory:(f==null?void 0:f.category)||null,companyEmployeeCount:(f==null?void 0:f.employee_count)||null}}).filter(Boolean)},kv=e=>{const t={};return e!=null&&e.included&&Array.isArray(e.included)&&e.included.forEach(n=>{n.type==="company"&&n.attributes&&(t[n.id]=ur({id:n.id},n.attributes))}),t},rG=Xr.injectEndpoints({endpoints:e=>({fetchAllJobs:e.query({query:(t={})=>({url:"/job-tracker/fetch-all-jobs/",method:"POST",body:t}),transformResponse:t=>{const n=Bv(t),r=kv(t);return{jobs:n,companiesMap:r,results:n}},providesTags:["Jobs"]}),fetchPipelineJobs:e.query({query:(t={})=>({url:"/job-tracker/fetch-pipeline-jobs/",method:"POST",body:t}),transformResponse:t=>{const n=Bv(t),r=kv(t);return{jobs:n,companiesMap:r,results:n}},providesTags:["PipelineJobs"]}),fetchRelevantJobs:e.query({query:(t={})=>({url:"/job-tracker/relevancy/",method:"POST",body:t}),transformResponse:t=>{const n=Bv(t),r=kv(t);return{jobs:n,companiesMap:r,results:n}},providesTags:["RelevantJobs"]})})}),{useFetchAllJobsQuery:oG,useFetchPipelineJobsQuery:HO,useFetchRelevantJobsQuery:iG}=rG,aG={selectedJobId:null},VO=We.createSlice({name:"layout",initialState:aG,reducers:{setSelectedJobId:(e,t)=>{e.selectedJobId=t.payload},clearSelectedJobId:e=>{e.selectedJobId=null}}}),{setSelectedJobId:lG,clearSelectedJobId:sG}=VO.actions,cG=VO.reducer,fo={heading:"_heading_1jbzw_1",spinner:"_spinner_1jbzw_8",alert:"_alert_1jbzw_14",header:"_header_1jbzw_18",sentinel:"_sentinel_1jbzw_23",loadingMore:"_loadingMore_1jbzw_30"},{Title:wu,Text:uG}=kt,WO={[pn.relevant]:"Unlocked Jobs",[pn.all]:"All Jobs",[pn.saved]:"Saved Jobs",[pn.applied]:"Applied Jobs"};function Si({className:e,currentTab:t,jobs:n=[],companiesMap:r={},isLoading:o=!1,error:i=null,isFetchingMore:a=!1,hasMore:l=!0}){var y;const c=wt.useDispatch(),u=wt.useSelector(C=>C.scalantCareerHub.layout.selectedJobId),d=wt.useSelector(C=>{var x,E;return((E=(x=C.scalantCareerHub)==null?void 0:x.dashboard)==null?void 0:E.processCounts)||{}}),f=l!==void 0?l:!0,{sentinelRef:m}=zI({hasMore:f,isLoading:o,isFetchingMore:a}),p=C=>{c(u===C?sG():lG(C))},g=()=>ar(this,null,function*(){return Promise.resolve()}),h=WO[t]||WO[pn.all],v=()=>d[t]||0;return o?b.createElement("div",{className:e},b.createElement(wu,{level:2,className:fo.heading},h),b.createElement(Yc,{size:"large",className:fo.spinner})):i?b.createElement("div",{className:e},b.createElement(wu,{level:2,className:fo.heading},h),b.createElement(wf,{message:"Error loading jobs",description:((y=i==null?void 0:i.data)==null?void 0:y.message)||(i==null?void 0:i.message)||"Failed to fetch jobs. Please try again later.",type:"error",showIcon:!0,className:fo.alert})):!n||n.length===0?b.createElement("div",{className:e},b.createElement(wu,{level:2,className:fo.heading},h),b.createElement(wf,{message:"No jobs found",description:"There are no jobs available at the moment.",type:"info",showIcon:!0,className:fo.alert})):b.createElement("div",{className:e},b.createElement(Zt,{direction:"vertical",className:fo.header},b.createElement(wu,{level:4,className:fo.heading},h," ",b.createElement(ha,{color:"green"},v()," Found")),b.createElement(uG,null,"Based on your profile, preferences, and activity like applies, searches, and saves")),b.createElement("div",null,n.map(C=>b.createElement(hu,{key:C.id,jobData:C,isActive:u===C.id,currentTab:t,onClick:p,onSave:g,companiesList:r,userCountry:"IN",selectedJobId:u})),f&&b.createElement("div",{ref:m,className:fo.sentinel},a&&b.createElement("div",{className:fo.loadingMore},b.createElement(Yc,{size:"small"}),b.createElement("span",null,"Loading more jobs...")))))}Si.propTypes={className:pe.string,currentTab:pe.string,jobs:pe.arrayOf(pe.object),companiesMap:pe.object,isLoading:pe.bool,error:pe.object,isFetchingMore:pe.bool,hasMore:pe.bool},Si.defaultProps={className:"",currentTab:pn.all,jobs:[],companiesMap:{},isLoading:!1,error:null,isFetchingMore:!1,hasMore:!0};const dG={relevantJobsPage:"_relevantJobsPage_19xbf_1"};function fG(){const e=os(),{data:t,isLoading:n,error:r,isFetching:o}=iG(e),{accumulatedJobs:i,accumulatedCompaniesMap:a,hasMore:l,isFetchingMore:c,isLoading:u}=vs(t,o,n,pn.relevant);return b.createElement("div",{className:dG.relevantJobsPage},b.createElement(Si,{currentTab:pn.relevant,jobs:i,companiesMap:a,isLoading:u,error:r,isFetchingMore:c,hasMore:l}))}const mG={allJobsPage:"_allJobsPage_10f3p_1"};function pG(){const e=os(),{data:t,isLoading:n,error:r,isFetching:o}=oG(e),{accumulatedJobs:i,accumulatedCompaniesMap:a,hasMore:l,isFetchingMore:c,isLoading:u}=vs(t,o,n,pn.all);return b.createElement("div",{className:mG.allJobsPage},b.createElement(Si,{currentTab:pn.all,jobs:i,companiesMap:a,isLoading:u,error:r,isFetchingMore:c,hasMore:l}))}const vG={savedJobsPage:"_savedJobsPage_km19z_1"};function gG(){const e=os(),{data:t,isLoading:n,error:r,isFetching:o}=HO(ur({type:pn.saved},e)),{accumulatedJobs:i,accumulatedCompaniesMap:a,hasMore:l,isFetchingMore:c,isLoading:u}=vs(t,o,n,pn.saved);return b.createElement("div",{className:vG.savedJobsPage},b.createElement(Si,{currentTab:pn.saved,jobs:i,companiesMap:a,isLoading:u,error:r,isFetchingMore:c,hasMore:l}))}const hG={appliedJobsPage:"_appliedJobsPage_lw2yt_1"};function bG(){const e=os(),{data:t,isLoading:n,error:r,isFetching:o}=HO(ur({type:pn.applied},e)),{accumulatedJobs:i,accumulatedCompaniesMap:a,hasMore:l,isFetchingMore:c,isLoading:u}=vs(t,o,n,pn.applied);return b.createElement("div",{className:hG.appliedJobsPage},b.createElement(Si,{currentTab:pn.applied,jobs:i,companiesMap:a,isLoading:u,error:r,isFetchingMore:c,hasMore:l}))}const KO={role_type:void 0,company_ids:[],job_title:[],job_category:[],seniority_level:[],company_categories:[],location:[],min_ctc:void 0,min_stipend:void 0,min_duration:void 0,notice_period:void 0,date_posted_on:void 0,mbe_skill_ids:{},experience_skill_ids:[],min_experience:void 0,max_experience:void 0},qO=We.createSlice({name:"filterForm",initialState:KO,reducers:{updateFormField:(e,t)=>{const{field:n,value:r}=t.payload;e[n]=r},resetForm:()=>KO,setFormData:(e,t)=>ur(ur({},e),t.payload),addRatingFilterInput:e=>{(!e.mbe_skill_ids||typeof e.mbe_skill_ids!="object")&&(e.mbe_skill_ids={});const t=`mbe_skill_${Date.now()}_${Math.random().toString(36).substr(2,9)}`;e.mbe_skill_ids[t]={subject:null,rating:null}},deleteRatingFilterInput:(e,t)=>{const{inputFieldKey:n}=t.payload;e.mbe_skill_ids&&e.mbe_skill_ids[n]&&delete e.mbe_skill_ids[n]},updateRatingFilterInput:(e,t)=>{const{inputFilterSubKey:n,value:r}=t.payload;(!e.mbe_skill_ids||typeof e.mbe_skill_ids!="object")&&(e.mbe_skill_ids={});const o=n.split("_").slice(-1)[0],i=n.replace(`_${o}`,"");e.mbe_skill_ids[i]||(e.mbe_skill_ids[i]={subject:null,rating:null}),o==="subject"?e.mbe_skill_ids[i].subject=r:o==="rating"&&(e.mbe_skill_ids[i].rating=r)}}}),{updateFormField:yG,resetForm:CG,setFormData:BZ,addRatingFilterInput:GO,deleteRatingFilterInput:SG,updateRatingFilterInput:UO}=qO.actions,xG=qO.reducer,XO=({fieldName:e,subjectOptions:t,ratingOptions:n})=>{const r=wt.useDispatch(),i=wt.useSelector(h=>h.scalantCareerHub.filterForm)[e],a=b.useMemo(()=>i||{},[i]),l=b.useMemo(()=>typeof a=="object"&&!Array.isArray(a)?a:{},[a]);b.useEffect(()=>{(!a||Object.keys(l).length===0)&&r(GO())},[a,l,r]);const c=b.useMemo(()=>Object.values(l).map(h=>{var v;return((v=h==null?void 0:h.subject)==null?void 0:v.key)||(h==null?void 0:h.subject)}).filter(Boolean),[l]),u=b.useMemo(()=>t.filter(h=>!c.includes(h.key)),[t,c]),d=b.useCallback(()=>{r(GO())},[r]),f=b.useCallback(h=>{r(SG({inputFieldKey:h}))},[r]),m=b.useCallback((h,v)=>{const y=t.find(C=>C.key===v);r(UO({inputFilterSubKey:`${h}_subject`,value:y||v}))},[t,r]),p=b.useCallback((h,v)=>{r(UO({inputFilterSubKey:`${h}_rating`,value:v}))},[r]),g=Object.keys(l);return b.createElement(Zt,{direction:"vertical",style:{width:"100%"},size:"middle"},g.map(h=>{var E;const v=l[h],y=((E=v==null?void 0:v.subject)==null?void 0:E.key)||(v==null?void 0:v.subject),C=v==null?void 0:v.rating,x=[...t.filter(S=>S.key===y),...u];return b.createElement(wo,{key:h,gutter:16,align:"middle"},b.createElement(jn,{span:10},b.createElement(yn,{placeholder:"Select skill",value:y,onChange:S=>m(h,S),showSearch:!0,filterOption:(S,$)=>{var O;return((O=$==null?void 0:$.label)!=null?O:"").toLowerCase().includes(S.toLowerCase())},options:x.map(S=>({label:S.value,value:S.key}))})),b.createElement(jn,{span:10},b.createElement(yn,{placeholder:"Select rating",value:C,onChange:S=>p(h,S),options:n.map(S=>({label:S.label,value:S.value}))})),b.createElement(jn,{span:4},b.createElement(Zt,null,b.createElement(rn,{type:"text",icon:b.createElement(fb,null),onClick:d,style:{color:"#1890ff"}}),g.length>1&&b.createElement(rn,{type:"text",icon:b.createElement(zh,null),onClick:()=>f(h),danger:!0}))))}))};XO.propTypes={fieldName:pe.string.isRequired,subjectOptions:pe.arrayOf(pe.shape({key:pe.oneOfType([pe.string,pe.number]),value:pe.string})).isRequired,ratingOptions:pe.arrayOf(pe.shape({value:pe.oneOfType([pe.string,pe.number]),label:pe.string})).isRequired};const Go={drawerContent:"_drawerContent_fqkgw_1",filterForm:"_filterForm_fqkgw_5",drawerHeaderSubtitle:"_drawerHeaderSubtitle_fqkgw_9",filterIcon:"_filterIcon_fqkgw_14",buttonContainer:"_buttonContainer_fqkgw_18",drawer:"_drawer_fqkgw_1"},{Option:br}=yn;function EG(){var _,T,M,D;const e=wt.useDispatch(),t=wt.useSelector(P=>P.scalantCareerHub.filterForm),n=wt.useSelector(P=>P.scalantCareerHub.filterOptions||{}),[r]=Vt.useForm();b.useEffect(()=>{r.setFieldsValue(t)},[r,t]);const{handleCompanySearch:o,handleTitleSearch:i,handleExperienceSkillSearch:a,handleExperienceSkillChange:l,loadingCompanies:c,loadingTitles:u,loadingExperienceSkills:d}=eM(),{jobTypes:f,functions:m,seniorityLevels:p,companyCategories:g,locations:h,mbeSkills:v,ctcRanges:y,stipendRanges:C,durationRanges:x,noticePeriods:E,datePostedOptions:S,skillRatings:$}=Lb(),O=(P,A)=>{e(yG({field:P,value:A}))},I=t.role_type,w=I==="full_time",N=I==="internship";return b.createElement(Vt,{layout:"vertical",className:Go.filterForm,form:r,initialValues:t},b.createElement(Vt.Item,{label:"Job Types",name:"role_type"},b.createElement(yn,{placeholder:"Select job profile",value:t.role_type,onChange:P=>O("role_type",P)},f.map(P=>b.createElement(br,{key:P.key,value:P.key},P.value)))),b.createElement(Vt.Item,{label:"Company Name",name:"company_ids"},b.createElement(yn,{mode:"multiple",showSearch:!0,placeholder:"Search company",filterOption:!1,onSearch:o,loading:c,value:t.company_ids,onChange:P=>O("company_ids",P),notFoundContent:c?"Loading...":"Type at least 3 characters to search"},(_=n.companyOptions)==null?void 0:_.map(P=>b.createElement(br,{key:P.key,value:P.key},P.value)))),b.createElement(Vt.Item,{label:"Title",name:"job_title"},b.createElement(yn,{mode:"multiple",showSearch:!0,placeholder:"Search job title",filterOption:!1,onSearch:i,loading:u,value:t.job_title,onChange:P=>O("job_title",P),notFoundContent:u?"Loading...":"Type at least 3 characters to search"},(T=n.titleOptions)==null?void 0:T.map(P=>b.createElement(br,{key:P.key,value:P.value},P.value)))),b.createElement(Vt.Item,{label:"Function",name:"job_category"},b.createElement(yn,{mode:"multiple",placeholder:"Select function",value:t.job_category,onChange:P=>O("job_category",P)},m.map(P=>b.createElement(br,{key:P.key,value:P.key},P.value)))),b.createElement(wo,{gutter:16},b.createElement(jn,{span:12},b.createElement(Vt.Item,{label:"Role seniority level",name:"seniority_level"},b.createElement(yn,{mode:"multiple",placeholder:"Select level",value:t.seniority_level,onChange:P=>O("seniority_level",P)},p.map(P=>b.createElement(br,{key:P.key,value:P.key},P.value))))),b.createElement(jn,{span:12},b.createElement(Vt.Item,{label:"Company category",name:"company_categories"},b.createElement(yn,{mode:"multiple",placeholder:"Select category",value:t.company_categories,onChange:P=>O("company_categories",P)},g.map(P=>b.createElement(br,{key:P.key,value:P.key},P.value)))))),b.createElement(Vt.Item,{label:"Location",name:"location"},b.createElement(yn,{mode:"multiple",placeholder:"Select location",value:t.location,onChange:P=>O("location",P)},h.map(P=>b.createElement(br,{key:P.key,value:P.value},P.value)))),!N&&b.createElement(Vt.Item,{label:"Minimum CTC (in Lakhs)?",name:"min_ctc"},b.createElement(yn,{placeholder:"Select range",value:t.min_ctc,onChange:P=>O("min_ctc",P)},y.map(P=>b.createElement(br,{key:P.value,value:P.value},P.label)))),!w&&b.createElement(wo,{gutter:16},b.createElement(jn,{span:12},b.createElement(Vt.Item,{label:"Stipend (INR per month)",name:"min_stipend"},b.createElement(yn,{placeholder:"Select range",value:t.min_stipend,onChange:P=>O("min_stipend",P)},C.map(P=>b.createElement(br,{key:P.value,value:P.value},P.label))))),b.createElement(jn,{span:12},b.createElement(Vt.Item,{label:"Internship duration (in months)",name:"min_duration"},b.createElement(yn,{placeholder:"Select range",value:t.min_duration,onChange:P=>O("min_duration",P)},x.map(P=>b.createElement(br,{key:P.value,value:P.value},P.label)))))),b.createElement(wo,{gutter:16},b.createElement(jn,{span:12},b.createElement(Vt.Item,{label:"Notice period requirement",name:"notice_period"},b.createElement(yn,{placeholder:"Choose period",value:t.notice_period,onChange:P=>O("notice_period",P)},E.map(P=>b.createElement(br,{key:P.value,value:P.value},P.label))))),b.createElement(jn,{span:12},b.createElement(Vt.Item,{label:"Job posted date",name:"date_posted_on"},b.createElement(yn,{placeholder:"Pick date",value:t.date_posted_on,onChange:P=>O("date_posted_on",P)},S.map(P=>b.createElement(br,{key:P.value,value:P.value},P.label)))))),b.createElement(Vt.Item,{label:"Expert Mock Interview Skills Required"},b.createElement(XO,{fieldName:"mbe_skill_ids",subjectOptions:v,ratingOptions:$})),b.createElement(Vt.Item,{label:"Experienced based skills",name:"experience_skill_ids"},b.createElement(yn,{mode:"multiple",showSearch:!0,placeholder:"Search skills",filterOption:!1,onSearch:a,loading:d,value:((M=t.experience_skill_ids)==null?void 0:M.map(P=>typeof P=="object"?P.experience_skill_id:P))||[],onChange:P=>{const A=l(P,n.experienceSkillOptions);O("experience_skill_ids",A)},notFoundContent:d?"Loading...":"Type at least 2 characters to search"},(D=n.experienceSkillOptions)==null?void 0:D.map(P=>b.createElement(br,{key:P.key,value:P.key},P.value)))),b.createElement(Vt.Item,{label:"Experience (Years)? *"},b.createElement(wo,{gutter:16},b.createElement(jn,{span:12},b.createElement(Vt.Item,{name:"min_experience",noStyle:!0},b.createElement(vi,{placeholder:"Minimum",type:"number",value:t.min_experience,onChange:P=>O("min_experience",P.target.value)}))),b.createElement(jn,{span:12},b.createElement(Vt.Item,{name:"max_experience",noStyle:!0},b.createElement(vi,{placeholder:"Maximum",type:"number",value:t.max_experience,onChange:P=>O("max_experience",P.target.value)}))))))}function $G({onClose:e}){return b.createElement(_r,{vertical:!0},b.createElement(_r,{justify:"space-between"},b.createElement(_r,{align:"center",gap:5},b.createElement(iT,{className:Go.filterIcon}),"Filters"),b.createElement(xr,{onClick:e})),b.createElement("div",{className:Go.drawerHeaderSubtitle},"Choose the kind of jobs you'd like to see displayed on this page"))}function wG(){const e=wt.useDispatch(),t=wt.useSelector(a=>a.scalantCareerHub.dashboard.filterModalOpen),n=wt.useSelector(a=>a.scalantCareerHub.filterForm),r=()=>{e(Wq())},o=()=>{var c,u,d,f,m,p,g;let a;n.mbe_skill_ids&&typeof n.mbe_skill_ids=="object"&&!Array.isArray(n.mbe_skill_ids)&&Object.keys(n.mbe_skill_ids).length>0&&(a=Object.values(n.mbe_skill_ids).filter(h=>!h||h.rating===void 0||h.rating===null?!1:h.subject?typeof h.subject=="object"?h.subject.key!==void 0&&h.subject.key!==null:h.subject!==void 0&&h.subject!==null:!1).map(h=>{var y;let v;return typeof h.subject=="object"&&((y=h.subject)==null?void 0:y.key)!==void 0?v=h.subject.key:v=h.subject,{mbe_skill_id:v,rating:h.rating}}),a.length===0&&(a=void 0));const l={role_type:n.role_type||void 0,company_ids:(c=n.company_ids)!=null&&c.length?n.company_ids:void 0,job_title:(u=n.job_title)!=null&&u.length?n.job_title:void 0,job_category:(d=n.job_category)!=null&&d.length?n.job_category:void 0,seniority_level:(f=n.seniority_level)!=null&&f.length?n.seniority_level:void 0,location:(m=n.location)!=null&&m.length?n.location:void 0,min_ctc:n.min_ctc||void 0,min_stipend:n.min_stipend||void 0,min_duration:n.min_duration||void 0,notice_period:n.notice_period||void 0,date_posted_on:n.date_posted_on||void 0,mbe_skill_ids:a,experience_skill_ids:(p=n.experience_skill_ids)!=null&&p.length?n.experience_skill_ids:void 0,min_experience:n.min_experience||void 0,max_experience:n.max_experience||void 0,company_categories:(g=n.company_categories)!=null&&g.length?n.company_categories:void 0};Object.keys(l).forEach(h=>{l[h]===void 0&&delete l[h]}),e(Ug(l)),r()},i=()=>{e(CG()),e(J2()),e(Ug({}))};return b.createElement(U$,{title:b.createElement($G,{onClose:r}),placement:"right",onClose:r,open:t,closable:!1,width:550,className:Go.drawer},b.createElement("div",{className:Go.drawerContent},b.createElement(EG,null),b.createElement("div",{className:Go.buttonContainer},b.createElement(rn,{className:Go.resetButton,onClick:i},"Reset Filters"),b.createElement(rn,{type:"primary",className:Go.applyButton,onClick:o},"Apply"))))}const OG=Xr.injectEndpoints({endpoints:e=>({fetchAlerts:e.query({query:()=>({url:"/job-tracker/v1/alerts/list",method:"GET"}),transformResponse:t=>t.data||[],providesTags:["JobAlerts"]}),createAlert:e.mutation({query:t=>({url:"/job-tracker/v1/alerts/",method:"POST",body:t}),transformResponse:t=>t,invalidatesTags:["JobAlerts"]}),updateAlertStatus:e.mutation({query:t=>({url:"/job-tracker/v1/alerts/update-status",method:"PATCH",body:t}),transformResponse:t=>t,invalidatesTags:["JobAlerts"]}),deleteAlert:e.mutation({query:t=>({url:`/job-tracker/v1/alerts/${t}`,method:"DELETE"}),transformResponse:t=>t,invalidatesTags:["JobAlerts"]}),updateAlert:e.mutation({query:({id:t,payload:n})=>({url:`/job-tracker/v1/alerts/${t}`,method:"PUT",body:n}),transformResponse:t=>t,invalidatesTags:["JobAlerts"]})})}),{useFetchAlertsQuery:NG,useCreateAlertMutation:IG,useUpdateAlertStatusMutation:_G,useDeleteAlertMutation:PG,useUpdateAlertMutation:TG}=OG,MG={alerts:[],loading:!1,error:null},QO=We.createSlice({name:"alerts",initialState:MG,reducers:{setAlerts:(e,t)=>{e.alerts=t.payload},addAlert:(e,t)=>{e.alerts.push(t.payload)},setLoading:(e,t)=>{e.loading=t.payload},setError:(e,t)=>{e.error=t.payload}}}),{setAlerts:DG,addAlert:qZ,setLoading:GZ,setError:UZ}=QO.actions,AG=QO.reducer,mo={modalTitle:"_modalTitle_gu1gu_1",modalTitleHeader:"_modalTitleHeader_gu1gu_6",modalTitleContent:"_modalTitleContent_gu1gu_12",modalCloseIcon:"_modalCloseIcon_gu1gu_18",modalDescription:"_modalDescription_gu1gu_22",modalFooter:"_modalFooter_gu1gu_28",createAlertContent:"_createAlertContent_gu1gu_34",formField:"_formField_gu1gu_52",formLabel:"_formLabel_gu1gu_57",requiredAsterisk:"_requiredAsterisk_gu1gu_63",formInput:"_formInput_gu1gu_67",experienceInputs:"_experienceInputs_gu1gu_71",modal:"_modal_gu1gu_1",radioGroup:"_radioGroup_gu1gu_88",drawerHeaderSubtitle:"_drawerHeaderSubtitle_gu1gu_94",filterIcon:"_filterIcon_gu1gu_99"},{Option:Fv}=yn;function YO({form:e,initialValues:t,onSubmit:n,isSubmitting:r}){const{functions:o,locations:i,ctcRanges:a}=Lb(),[l,c]=b.useState("realtime");b.useEffect(()=>{var f,m;if(t&&e){const g={[un.REALTIME]:"realtime",[un.DAILY]:"daily",[un.ALTERNATE_DAY]:"alternate",[un.WEEKLY]:"weekly"}[t.frequency]||"realtime",h={name:t.name,job_functions:t.job_functions||[],min_ctc:t.min_ctc,locations:t.locations||[],min_experience:((f=t.min_experience)==null?void 0:f.toString())||"",max_experience:((m=t.max_experience)==null?void 0:m.toString())||"",frequency:g,notification_type:t.notification_type||nr.EMAIL};e.setFieldsValue(h),c(g)}},[t,e]);const u=()=>ar(this,null,function*(){try{const f=yield e.validateFields(),m={realtime:un.REALTIME,daily:un.DAILY,alternate:un.ALTERNATE_DAY,weekly:un.WEEKLY},p=f.frequency==="realtime",g={alert:{name:f.name,job_functions:f.job_functions||[],min_ctc:f.min_ctc,locations:f.locations||[],min_experience:f.min_experience?parseInt(f.min_experience,10):0,max_experience:f.max_experience?parseInt(f.max_experience,10):null,frequency:m[f.frequency]||un.REALTIME,notification_type:p&&f.notification_type||nr.EMAIL}};n&&(yield n(g))}catch(f){console.error("Error submitting form:",f)}});b.useEffect(()=>{e&&n&&(e.submit=u)},[e,n]);const d=Vt.useWatch("frequency",e)||"realtime";return b.useEffect(()=>{c(d)},[d]),b.createElement(Vt,{form:e,layout:"vertical",className:mo.createAlertContent,initialValues:{frequency:"realtime"}},b.createElement(Vt.Item,{label:"Alert Name",name:"name",rules:[{required:!0,message:"Please enter alert name"}]},b.createElement(vi,{placeholder:"Give your job alert a name"})),b.createElement(Vt.Item,{label:"Job Function",name:"job_functions",rules:[{required:!0,message:"Please select at least one job function"}]},b.createElement(yn,{mode:"multiple",placeholder:"Select job function",className:mo.formInput},o.map(f=>b.createElement(Fv,{key:f.key,value:f.key},f.value)))),b.createElement(Vt.Item,{label:"Minimum CTC (in Lakhs)?",name:"min_ctc",rules:[{required:!0,message:"Please select minimum CTC"}]},b.createElement(yn,{placeholder:"Select range",className:mo.formInput},a.map(f=>b.createElement(Fv,{key:f.value,value:f.value},f.label)))),b.createElement(Vt.Item,{label:"Locations?",name:"locations",rules:[{required:!0,message:"Please select at least one location"}]},b.createElement(yn,{mode:"multiple",placeholder:"Select locations",className:mo.formInput},i.map(f=>b.createElement(Fv,{key:f.key,value:f.value},f.value)))),b.createElement(Vt.Item,{label:"Experience (Years)?"},b.createElement(wo,{gutter:16},b.createElement(jn,{span:12},b.createElement(Vt.Item,{name:"min_experience",rules:[{required:!0,message:"Please enter minimum experience"}],noStyle:!0},b.createElement(vi,{placeholder:"Minimum",type:"number"}))),b.createElement(jn,{span:12},b.createElement(Vt.Item,{name:"max_experience",rules:[{required:!0,message:"Please enter maximum experience"}],noStyle:!0},b.createElement(vi,{placeholder:"Maximum",type:"number"}))))),b.createElement(Vt.Item,{label:"Alert Frequency",name:"frequency",rules:[{required:!0,message:"Please select alert frequency"}]},b.createElement(gr.Group,{className:mo.radioGroup,onChange:f=>{c(f.target.value),f.target.value!=="realtime"&&e.setFieldsValue({notification_type:nr.EMAIL})}},b.createElement(gr,{value:"realtime"},"Realtime"),b.createElement(gr,{value:"daily"},"Daily"),b.createElement(gr,{value:"alternate"},"Every alternate day"),b.createElement(gr,{value:"weekly"},"Weekly"))),l==="realtime"&&b.createElement(Vt.Item,{label:"Alert mode",name:"notification_type",rules:[{required:!0,message:"Please select notification type"}]},b.createElement(gr.Group,{className:mo.radioGroup},b.createElement(gr,{value:nr.EMAIL},"Email"),b.createElement(gr,{value:nr.WHATSAPP},"Whatsapp"),b.createElement(gr,{value:nr.BOTH},"Both"))))}const Qn={alertCard:"_alertCard_1k2nv_1",alertHeader:"_alertHeader_1k2nv_14",alertIcon:"_alertIcon_1k2nv_20",inactiveIcon:"_inactiveIcon_1k2nv_25",alertActions:"_alertActions_1k2nv_29",editFormCard:"_editFormCard_1k2nv_35"};function RG(){const e=wt.useDispatch(),{data:t=[],isLoading:n,error:r}=NG(),[o]=_G(),[i]=PG(),[a,{isLoading:l}]=TG(),[c,u]=b.useState(null),[d]=Vt.useForm();b.useEffect(()=>{t&&e(DG(t))},[t,e]);const f=x=>Pb[x]||Pb[un.REALTIME],m=x=>Tb[x]||Tb[nr.EMAIL],p=x=>x===ja.ACTIVE,g=(x,E)=>ar(this,null,function*(){try{const S=E===ja.ACTIVE?ja.INACTIVE:ja.ACTIVE;yield o({id:x,status:S}).unwrap(),Hr.success(`Alert ${S===ja.ACTIVE?"activated":"deactivated"} successfully`)}catch(S){Hr.error("Failed to update alert status"),console.error("Error updating alert status:",S)}}),h=x=>{u(x)},v=()=>{u(null),d.resetFields()},y=x=>ar(this,null,function*(){try{yield a({id:c,payload:x}).unwrap(),Hr.success("Alert updated successfully"),u(null),d.resetFields()}catch(E){throw Hr.error("Failed to update alert"),console.error("Error updating alert:",E),E}}),C=x=>ar(this,null,function*(){try{yield i(x).unwrap(),Hr.success("Alert deleted successfully")}catch(E){Hr.error("Failed to delete alert"),console.error("Error deleting alert:",E)}});return n?b.createElement("div",{className:Qn.existingAlertContent},b.createElement("div",{className:Qn.loadingText},"Loading alerts...")):r?b.createElement("div",{className:Qn.existingAlertContent},b.createElement("div",{className:Qn.errorText},"Error loading alerts")):!t||t.length===0?b.createElement("div",{className:Qn.existingAlertContent},b.createElement("div",{className:Qn.emptyText},"No alerts found")):b.createElement("div",{className:Qn.existingAlertContent},t.map(x=>{const E=x.attributes||x,S=x.id||E.id,$=p(E.status),O=f(E.frequency),I=m(E.notification_type),w=c===S;return b.createElement("div",{key:S,className:Qn.alertCard},b.createElement(_r,{align:"center",className:Qn.alertHeader},b.createElement(Td,{className:U(Qn.alertIcon,{[Qn.inactiveIcon]:!$})}),b.createElement("div",null,E.name)),b.createElement("div",{className:Qn.alertSettings},b.createElement(_r,{align:"center",gap:16,wrap:!0},b.createElement(_r,{align:"center",gap:8},b.createElement(d7,{checked:$,onChange:()=>g(S,E.status),size:"small",disabled:w}),b.createElement("span",null,"Active")),b.createElement(_r,{align:"center",gap:8},b.createElement(Th,null),b.createElement("span",null,O)),b.createElement(_r,{align:"center",gap:8},b.createElement(Td,null),b.createElement("span",null,I)))),!w&&b.createElement("div",{className:Qn.alertActions},b.createElement(rn,{type:"text",danger:!0,icon:b.createElement(zh,null),onClick:()=>C(S),className:Qn.deleteButton},"Delete"),b.createElement(rn,{type:"primary",icon:b.createElement(Dd,null),onClick:()=>h(S),className:Qn.editButton},"Edit")),w&&b.createElement("div",{className:Qn.editFormCard},b.createElement(YO,{form:d,initialValues:E,onSubmit:y,isSubmitting:l}),b.createElement(_r,{gap:8,justify:"flex-end",style:{marginTop:"1.6rem"}},b.createElement(rn,{onClick:v,disabled:l},"Cancel"),b.createElement(rn,{type:"primary",onClick:()=>ar(this,null,function*(){try{const N=yield d.validateFields(),_={realtime:un.REALTIME,daily:un.DAILY,alternate:un.ALTERNATE_DAY,weekly:un.WEEKLY},T=N.frequency==="realtime",M={alert:{name:N.name,job_functions:N.job_functions||[],min_ctc:N.min_ctc,locations:N.locations||[],min_experience:N.min_experience?parseInt(N.min_experience,10):0,max_experience:N.max_experience?parseInt(N.max_experience,10):null,frequency:_[N.frequency]||un.REALTIME,notification_type:T&&N.notification_type||nr.EMAIL}};yield y(M)}catch(N){}}),loading:l},"Update Alert"))))}))}function jG(){const e=wt.useDispatch(),t=wt.useSelector(h=>h.scalantCareerHub.dashboard.jobAlertModalOpen),[n,r]=b.useState("create"),[o]=Vt.useForm(),[i,{isLoading:a}]=IG();b.useEffect(()=>{t||(o.resetFields(),r("create"))},[t,o]);const l=()=>{e(qq())},c=()=>{l()},u=()=>ar(this,null,function*(){try{const h=yield o.validateFields(),v={realtime:un.REALTIME,daily:un.DAILY,alternate:un.ALTERNATE_DAY,weekly:un.WEEKLY},y=h.frequency==="realtime",C={alert:{name:h.name,job_functions:h.job_functions||[],min_ctc:h.min_ctc,locations:h.locations||[],min_experience:h.min_experience?parseInt(h.min_experience,10):0,max_experience:h.max_experience?parseInt(h.max_experience,10):null,frequency:v[h.frequency]||un.REALTIME,notification_type:y&&h.notification_type||nr.EMAIL},resume_alert:!1},x=yield i(C).unwrap();x.success&&x.alert&&(o.resetFields(),r("existing"),Hr.success("Alert created successfully"))}catch(h){Hr.error("Failed to create alert"),console.error("Error creating alert:",h)}}),d=h=>ar(this,null,function*(){const v=ba(ur({},h),{resume_alert:!1});return yield i(v).unwrap()}),f=b.createElement(_r,{vertical:!0},b.createElement(_r,{justify:"space-between"},b.createElement(_r,{align:"center",gap:8},b.createElement(y_,{className:mo.filterIcon}),"Curate your Job Alert"),b.createElement(xr,{onClick:l})),b.createElement("div",{className:mo.drawerHeaderSubtitle},"By creating a job alert, you will be notified when a job posting matches your preferred criteria")),m=b.createElement("div",{className:mo.modalFooter},b.createElement(rn,{onClick:c},"Cancel"),b.createElement(rn,{type:"primary",onClick:u,loading:a},"Create Alert")),p=b.createElement(YO,{form:o,onSubmit:d,isSubmitting:a}),g=b.createElement(RG,null);return b.createElement(F1,{title:f,open:t,onCancel:l,footer:m,width:600,closable:!1,className:mo.modal},b.createElement(vp,{activeKey:n,onChange:r,items:[{key:"create",label:"Create alert",children:p},{key:"existing",label:"Existing alerts",children:g}]}))}const LG={jobsPageContent:"_jobsPageContent_pk7y3_1"};function JO({country:e,openMockInterviewModal:t,openResume:n,processCounts:r=Mb}){const o=wt.useDispatch(),i=wt.useSelector(f=>f.scalantCareerHub.layout.selectedJobId),a=wt.useSelector(f=>{var m,p;return((p=(m=f.scalantCareerHub)==null?void 0:m.filter)==null?void 0:p.tab)||pn.all});b.useEffect(()=>{o(Hq(r))},[r,o]);const l=b.createElement(xu,null),c=i?b.createElement($u,{country:e,openMockInterviewModal:t,openResume:n,jobId:i}):b.createElement(Eu,null),u=i?_b.JOB_DETAILS:_b.PROFILE_DETAILS,d=()=>{switch(a){case pn.relevant:return b.createElement(fG,null);case pn.saved:return b.createElement(gG,null);case pn.applied:return b.createElement(bG,null);case pn.all:default:return b.createElement(pG,null)}};return b.createElement(b.Fragment,null,b.createElement(Su,{header:l,sider:c,siderWidth:u,className:LG.jobsPage},d()),b.createElement(wG,null),b.createElement(jG,null))}JO.propTypes={processCounts:pe.shape({all:pe.number,relevant:pe.number,draft:pe.number,applications:pe.number,saved:pe.number,archived:pe.number})};function Hv(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Vv=function(){return Math.random().toString(36).substring(7).split("").join(".")},zl={INIT:"@@redux/INIT"+Vv(),REPLACE:"@@redux/REPLACE"+Vv(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Vv()}};function zG(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function BG(e){if(e===void 0)return"undefined";if(e===null)return"null";var t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(HG(e))return"date";if(FG(e))return"error";var n=kG(e);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}function kG(e){return typeof e.constructor=="function"?e.constructor.name:null}function FG(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function HG(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function VG(e){var t=typeof e;return process.env.NODE_ENV!=="production"&&(t=BG(e)),t}function ZO(e){typeof console!="undefined"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch(t){}}function WG(e,t,n,r){var o=Object.keys(t),i=n&&n.type===zl.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(o.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!zG(e))return"The "+i+' has unexpected type of "'+VG(e)+'". Expected argument to be an object with the following '+('keys: "'+o.join('", "')+'"');var a=Object.keys(e).filter(function(l){return!t.hasOwnProperty(l)&&!r[l]});if(a.forEach(function(l){r[l]=!0}),!(n&&n.type===zl.REPLACE)&&a.length>0)return"Unexpected "+(a.length>1?"keys":"key")+" "+('"'+a.join('", "')+'" found in '+i+". ")+"Expected to find one of the known reducer keys instead: "+('"'+o.join('", "')+'". Unexpected keys will be ignored.')}function KG(e){Object.keys(e).forEach(function(t){var n=e[t],r=n(void 0,{type:zl.INIT});if(typeof r=="undefined")throw new Error(process.env.NODE_ENV==="production"?Hv(12):'The slice reducer for key "'+t+`" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof n(void 0,{type:zl.PROBE_UNKNOWN_ACTION()})=="undefined")throw new Error(process.env.NODE_ENV==="production"?Hv(13):'The slice reducer for key "'+t+'" returned undefined when probed with a random type. '+("Don't try to handle '"+zl.INIT+`' or other actions in "redux/*" `)+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.")})}function qG(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];process.env.NODE_ENV!=="production"&&typeof e[o]=="undefined"&&ZO('No reducer provided for key "'+o+'"'),typeof e[o]=="function"&&(n[o]=e[o])}var i=Object.keys(n),a;process.env.NODE_ENV!=="production"&&(a={});var l;try{KG(n)}catch(c){l=c}return function(u,d){if(u===void 0&&(u={}),l)throw l;if(process.env.NODE_ENV!=="production"){var f=WG(u,n,d,a);f&&ZO(f)}for(var m=!1,p={},g=0;g<i.length;g++){var h=i[g],v=n[h],y=u[h],C=v(y,d);if(typeof C=="undefined"){var x=d&&d.type;throw new Error(process.env.NODE_ENV==="production"?Hv(14):"When called with an action of type "+(x?'"'+String(x)+'"':"(unknown type)")+', the slice reducer for key "'+h+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.')}p[h]=C,m=m||C!==y}return m=m||i.length!==Object.keys(u).length,m?p:u}}const GG={company_categories:[{value:5,label:"large_enterprise"},{value:6,label:"large_startups"},{value:7,label:"early_startups"}],job_categories:[{value:56529,label:"Backend Engineer"},{value:56530,label:"FullStack Engineer"},{value:56531,label:"Frontend Engineer"},{value:56569,label:"Android Engineer"},{value:56570,label:"iOS Engineer"},{value:179985,label:"Testing Engineer"},{value:189726,label:"Data Scientist"},{value:189727,label:"Data Analyst"},{value:189728,label:"Business Analyst"},{value:202365,label:"Data Engineer"},{value:221192,label:"DevOps Engineer"}],job_locations:[{value:"Bangalore",label:"Bangalore"},{value:"Pune",label:"Pune"},{value:"Hyderabad",label:"Hyderabad"},{value:"Gurgaon",label:"Gurgaon"},{value:"Noida",label:"Noida"},{value:"Chennai",label:"Chennai"},{value:"Delhi",label:"Delhi"},{value:"Chandigarh",label:"Chandigarh"},{value:"Kolkata",label:"Kolkata"},{value:"Mumbai",label:"Mumbai"},{value:"Jaipur",label:"Jaipur"},{value:"Vadodara",label:"Vadodara"},{value:"Nagpur",label:"Nagpur"},{value:"Ahmedabad",label:"Ahmedabad"},{value:"Kochi",label:"Kochi"},{value:"Mysore",label:"Mysore"},{value:"Coimbatore",label:"Coimbatore"},{value:"Bangkok",label:"Bangkok"},{value:"Mauritius",label:"Mauritius"},{value:"Udaipur",label:"Udaipur"},{value:"Cochin",label:"Cochin"},{value:"Remote",label:"Remote"},{value:"Hubballi",label:"Hubballi"},{value:"Goa",label:"Goa"},{value:"Trivandrum",label:"Trivandrum"},{value:"Indore",label:"Indore"},{value:"London",label:"London"},{value:"Bhubaneswar",label:"Bhubaneswar"},{value:"Menlo Park",label:"Menlo Park"},{value:"Dehradun",label:"Dehradun"},{value:"Hosur",label:"Hosur"},{value:"Delaware",label:"Delaware"},{value:"Amsterdam",label:"Amsterdam"},{value:"California",label:"California"},{value:"Mohali",label:"Mohali"},{value:"New Jersey",label:"New Jersey"},{value:"Arizona",label:"Arizona"},{value:"North Carolina",label:"North Carolina"},{value:"Agra",label:"Agra"},{value:"Saudi Arabia",label:"Saudi Arabia"},{value:"Pondicherry",label:"Pondicherry"},{value:"Vizag",label:"Vizag"}],role_types:[{value:198018,label:"internship"},{value:198019,label:"full_time"}],seniority_levels:[{value:202948,label:"Fresher"},{value:202949,label:"Entry - Mid"},{value:202950,label:"Mid - Senior"},{value:202951,label:"Senior"}],proficiency_mapping:{"Must to Have":0,"Good to Have":1,"Bar Raiser":2,"Must to Have (Eligibility)":3},onboarding_modal_clicked:!0,pipeline_stages:[{value:"draft",label:"Draft"},{value:"in_review",label:"In Review"},{value:"resume_sent",label:"Resume Sent"},{value:"resume_shortlisted",label:"Resume Shortlisted"},{value:"interviewing",label:"Interviewing"},{value:"to_be_offered",label:"To Be Offered"},{value:"rejected",label:"Rejected"},{value:"offer_received",label:"Offer Received"},{value:"offer_withdrawn",label:"Offer Withdrawn"},{value:"offer_accepted",label:"Offer Accepted"},{value:"offer_declined",label:"Offer Declined"},{value:"on_hold",label:"On Hold"},{value:"joined",label:"Joined"},{value:"saved",label:"Saved"},{value:"not_interested",label:"Not Interested"},{value:"application_withdrawn",label:"Application Withdrawn"},{value:"application_archived",label:"Application Archived"}],merit_based_skills:[{id:37223,title:"Databases and SQL",mentee_module_id:null},{id:37183,title:"Data Structures & Algorithms",mentee_module_id:null},{id:37184,title:"Python",mentee_module_id:null},{id:37185,title:"Java",mentee_module_id:null},{id:37186,title:"Javascript",mentee_module_id:null},{id:37187,title:"Low Level Design",mentee_module_id:3053255},{id:37188,title:"High Level Design",mentee_module_id:3053256},{id:37189,title:"Frontend (React)",mentee_module_id:3053258},{id:37190,title:"Backend (Java Spring/Springboot)",mentee_module_id:3053258},{id:37216,title:"Django",mentee_module_id:3053258},{id:37244,title:"Angular",mentee_module_id:3053258},{id:37191,title:"Python Libraries",mentee_module_id:null},{id:37192,title:"SQL",mentee_module_id:null},{id:37193,title:"Data Analytics - Tools",mentee_module_id:null},{id:37194,title:"EDA Fundamentals",mentee_module_id:null},{id:37195,title:"Supervised Learning",mentee_module_id:null},{id:37196,title:"Unsupervised Learning",mentee_module_id:null},{id:37197,title:"Computer Vision",mentee_module_id:7522793},{id:37198,title:"Natural Language Processing",mentee_module_id:7522794},{id:37194,title:"EDA Fundamentals",mentee_module_id:null},{id:37195,title:"Supervised Learning",mentee_module_id:null},{id:37196,title:"Unsupervised Learning",mentee_module_id:null},{id:37201,title:"DA tools",mentee_module_id:null},{id:37202,title:"Intermediate DSA",mentee_module_id:null},{id:37245,title:"DevOps - Data Structures & Algorithms",mentee_module_id:null},{id:37245,title:"DevOps - Data Structures & Algorithms",mentee_module_id:null},{id:37183,title:"Data Structures & Algorithms",mentee_module_id:null},{id:37223,title:"Databases and SQL",mentee_module_id:null},{id:37185,title:"Java",mentee_module_id:7532826},{id:37186,title:"Javascript",mentee_module_id:7532826},{id:37187,title:"Low Level Design",mentee_module_id:7532828},{id:37189,title:"Frontend (React)",mentee_module_id:7532828},{id:37244,title:"Angular",mentee_module_id:7532828},{id:37188,title:"High Level Design",mentee_module_id:null},{id:37192,title:"SQL",mentee_module_id:null},{id:37191,title:"Python Libraries",mentee_module_id:null},{id:37194,title:"EDA Fundamentals",mentee_module_id:null},{id:37195,title:"Supervised Learning",mentee_module_id:null},{id:37196,title:"Unsupervised Learning",mentee_module_id:7522864},{id:37184,title:"Python",mentee_module_id:5696347},{id:37185,title:"Java",mentee_module_id:5696347},{id:37186,title:"Javascript",mentee_module_id:5696347},{id:37184,title:"Python",mentee_module_id:null},{id:37185,title:"Java",mentee_module_id:null},{id:37186,title:"Javascript",mentee_module_id:null},{id:37187,title:"Low Level Design",mentee_module_id:null},{id:37186,title:"Javascript",mentee_module_id:5910715},{id:37189,title:"Frontend (React)",mentee_module_id:null},{id:37244,title:"Angular",mentee_module_id:null},{id:37224,title:"MERN",mentee_module_id:null},{id:37190,title:"Backend (Java Spring/Springboot)",mentee_module_id:null},{id:37216,title:"Django",mentee_module_id:null},{id:37224,title:"MERN",mentee_module_id:null},{id:37190,title:"Backend (Java Spring/Springboot)",mentee_module_id:null},{id:37216,title:"Django",mentee_module_id:null},{id:37224,title:"MERN",mentee_module_id:null},{id:37190,title:"Backend (Java Spring/Springboot)",mentee_module_id:null},{id:37216,title:"Django",mentee_module_id:null},{id:37224,title:"MERN",mentee_module_id:null},{id:37226,title:"Data Structures & Algorithms Advanced",mentee_module_id:7522524},{id:37190,title:"Backend (Java Spring/Springboot)",mentee_module_id:null},{id:37216,title:"Django",mentee_module_id:null},{id:37224,title:"MERN",mentee_module_id:null},{id:37184,title:"Python",mentee_module_id:null},{id:37185,title:"Java",mentee_module_id:null},{id:37186,title:"Javascript",mentee_module_id:null},{id:37187,title:"Low Level Design",mentee_module_id:null},{id:37188,title:"High Level Design",mentee_module_id:null},{id:37247,title:"Shell Scripting and CS Fundamentals",mentee_module_id:7522518},{id:37194,title:"EDA Fundamentals",mentee_module_id:null}],v1_onboarding_enabled:!0,v0_onboarding_completed:!0,initial_user_application_stage:4,is_discussion_hub_enabled:!1,resume_issues:{total_issues:2},default_resume_details:{id:17407,user_id:674153,name:"AswanthDefaultResume",default:!0,status:"active",meta:{social_profiles:{codechef:"",codeforces:"",geeksforgeeks:"",github:"",hackerearth:"",hackerrank:"",leetcode:"",portfolio:""},job_title:"Fullstack developer 1",interactions:{relevancy_alert_modal_displayed:!0}},modified_at:"2025-05-11T15:27:35.000Z",created_at:"2024-02-13T19:39:17.000Z",updated_at:"2025-05-11T15:27:35.000Z"},resume_builder_skills:{language:[1167,1150,1148,1136,1128,1276,1270,1218,1217,1215,1213,1211,1210,1209],framework:[1206,1203,1200,1198,1197,1196,1195,1158,1157,1156,1145,1133],tools:[2431,2430,2435,1234,1231,1229,1228,1176,1175,2432,46262,58475]},skill_data:[{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1128,subtopic:"Javascript",eligible_topic_id:7591,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1133,subtopic:"Angular",eligible_topic_id:7580,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1136,subtopic:"CSS",eligible_topic_id:7586,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1145,subtopic:"Flutter",eligible_topic_id:8760,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1148,subtopic:"HTML",eligible_topic_id:7589,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1150,subtopic:"JavaScript",eligible_topic_id:7591,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1156,subtopic:"React",eligible_topic_id:7597,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1157,subtopic:"React Native",eligible_topic_id:8763,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1158,subtopic:"Redux",eligible_topic_id:8764,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1167,subtopic:"TypeScript",eligible_topic_id:8768,eligible_class:"Topic"},{id:null,topic:"Mobile Development",topic_id:401,subtopic_id:1175,subtopic:"Android Development",eligible_topic_id:8753,eligible_class:"Topic"},{id:null,topic:"Mobile Development",topic_id:401,subtopic_id:1176,subtopic:"iOS Development",eligible_topic_id:8770,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1195,subtopic:".NET",eligible_topic_id:7579,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1196,subtopic:"Django",eligible_topic_id:7587,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1197,subtopic:"Express.js",eligible_topic_id:8758,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1198,subtopic:"Flask",eligible_topic_id:8759,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1200,subtopic:"Node.js",eligible_topic_id:7594,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1203,subtopic:"Ruby on Rails",eligible_topic_id:null,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1206,subtopic:"Spring Boot",eligible_topic_id:7600,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1209,subtopic:"C",eligible_topic_id:8755,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1210,subtopic:"Go",eligible_topic_id:8761,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1211,subtopic:"Java",eligible_topic_id:7590,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1213,subtopic:"Python",eligible_topic_id:7596,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1215,subtopic:"Ruby",eligible_topic_id:null,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1217,subtopic:"Scala",eligible_topic_id:8765,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1218,subtopic:"Swift",eligible_topic_id:8766,eligible_class:"Topic"},{id:null,topic:"DBMS",topic_id:406,subtopic_id:1228,subtopic:"MongoDB",eligible_topic_id:8769,eligible_class:"Topic"},{id:null,topic:"DBMS",topic_id:406,subtopic_id:1229,subtopic:"MySQL",eligible_topic_id:7601,eligible_class:"Topic"},{id:null,topic:"DBMS",topic_id:406,subtopic_id:1231,subtopic:"PostgreSQL",eligible_topic_id:7601,eligible_class:"Topic"},{id:null,topic:"DBMS",topic_id:406,subtopic_id:1234,subtopic:"SQL Server",eligible_topic_id:7601,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1270,subtopic:"C#",eligible_topic_id:7584,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1276,subtopic:"C++",eligible_topic_id:7585,eligible_class:"Topic"},{id:null,topic:"Cloud Computing",topic_id:564,subtopic_id:2430,subtopic:"AWS",eligible_topic_id:7581,eligible_class:"Topic"},{id:null,topic:"CloudComputing",topic_id:564,subtopic_id:2431,subtopic:"Azure",eligible_topic_id:8754,eligible_class:"Topic"},{id:null,topic:"System Design",topic_id:563,subtopic_id:2432,subtopic:"Microservices",eligible_topic_id:7593,eligible_class:"Topic"},{id:null,topic:"DBMS",topic_id:406,subtopic_id:2435,subtopic:"SQL",eligible_topic_id:7601,eligible_class:"Topic"},{id:null,topic:"Machine Learning",topic_id:405,subtopic_id:46262,subtopic:"Tableau",eligible_topic_id:7604,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:58475,subtopic:"Power BI",eligible_topic_id:null,eligible_class:"Topic"}]},UG=e=>!e||typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1).toLowerCase(),XG=e=>!e||!Array.isArray(e)?e:e.map(t=>ba(ur({},t),{label:UG(t.label||"").replace(/_/g," ")})),QG=e=>!e||!Array.isArray(e)?e:e.map(t=>ba(ur({},t),{label:DK("titleCase",t.label||"")})),eN=e=>{if(!e||typeof e!="object")return e;const t=bu(e);return t.companyCategories&&(t.companyCategories=XG(t.companyCategories)),t.roleTypes&&(t.roleTypes=QG(t.roleTypes)),t},YG=window.__CAREERS_HUB__||GG,JG={meta:eN(YG)},tN=We.createSlice({name:"metaData",initialState:JG,reducers:{setMetaData:(e,t)=>{e.meta=eN(t.payload)}}});tN.actions;const ZG=tN.reducer,eU=qG({[Xr.reducerPath]:Xr.reducer,layout:cG,filter:LI,dashboard:Gq,filterForm:xG,metaData:ZG,filterOptions:Z2,alerts:AG});pt.APPLICATION_STATUS=PI,pt.ApplicationForm=zb,pt.EligibilityTag=pu,pt.FormContainer=NO,pt.FormContent=kd,pt.FormHeader=yv,pt.HelloWorld=Kr,pt.JOB_CARD_CONFIG=ad,pt.JOB_PROFILE_STATUS=TI,pt.JobCard=hu,pt.JobDetails=$u,pt.JobsHeader=xu,pt.JobsLayout=Su,pt.JobsList=Si,pt.JobsPage=JO,pt.ProfileDetails=Eu,pt.SaveButton=vu,pt.TABS=MI,pt.careerHubApi=Xr,pt.checkAllOtherRequirementsMet=Sv,pt.countPendingSteps=_O,pt.default=Kr,pt.determineJobTag=Ev,pt.formatCtc=Nv,pt.formatDate=PO,pt.formatExperience=Ov,pt.formatLocation=_v,pt.formatNoticePeriod=Iv,pt.setBaseUrl=wI,pt.store=eU,pt.useApplicationForm=Wg,pt.useCreateApplication=Vg,pt.useJobCardState=Kg,Object.defineProperties(pt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scalant/career-hub",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.7.0-alpha.0",
|
|
4
4
|
"description": "Career Hub package for MIT",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/career-hub.umd.js",
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"@vitejs/plugin-react": "^4.0.0",
|
|
33
33
|
"vite": "^4.3.9"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "2558cf7f19aee4b39c58efcf581ae242a4650374"
|
|
36
36
|
}
|