1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[230],{20384:(e,l,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/[username]/resume",function(){return t(53562)}])},41972:(e,l,t)=>{"use strict";t.d(l,{A:()=>m});var n=t(37876),i=t(19635),o=t.n(i),r=t(81515),u=t.n(r),a=t(63819),c=t(82381),s=t(16495),d=t(70514),E=t(78063),y=t(1492);let p=s.JOB_PREFERENCES_CONST.JOB_ROLES,v=s.JOB_PREFERENCES_CONST.SKILLS,f=s.JOB_PREFERENCES_CONST.JOB_TYPES,h=s.JOB_PREFERENCES_CONST.LOCATION,N="remoteOnly",O="minExp",S="maxExp",m={generateQueriesFromFilter:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=Object.entries(e),t=[];return l.forEach(e=>{let[l,n]=e;switch(l){case v:{if(!(null==n?void 0:n.length)||!n)return;let e=n.map(e=>e.name);t.push("skills=".concat(encodeURIComponent(e.toString())));break}case p:n.length>0&&t.push("roles=".concat(n.toString()));break;case"min":case O:Number.isInteger(n)&&t.push("minExp=".concat(n));break;case"max":case S:Number.isInteger(n)&&t.push("maxExp=".concat(n));break;case N:t.push("remoteOnly=".concat(n));break;case f:t.push("jobType=".concat(n));break;case h:{let e=(0,c.yY)(n);e&&t.push(e);break}case"cities":if(n.length>0){let e=n.map(e=>a.default.isString(e)?e:e.city);t.some(e=>e.includes("cities"))||t.push("cities=".concat(e.toString()))}break;case"countries":if(n.length>0){let e=n.map(e=>a.default.isString(e)?e:e.country);t.some(e=>e.includes("countries"))||t.push("countries=".concat(e.toString()))}}}),t},generateFilterFromQueries:e=>{let l=Object.entries(e),t={};return l.forEach(e=>{var l,n,i;let[o,r]=e;switch(o){case v:t.skills=null==r||null==(l=r.split(","))?void 0:l.map(e=>({label:e,name:e}));break;case p:t.roles=null==r?void 0:r.split(",");break;case N:t.remoteOnly="true"===r;break;case f:t.jobType=r;break;case O:t[O]=r;break;case S:t[S]=r;break;case"cities":{let e=Array.isArray(r)?r:null==r||null==(n=r.split(","))?void 0:n.map(e=>({city:e}));t.cities=e,t.location=Array.isArray(t.location)?t.location.concat(e):e;break}case"countries":{let e=r instanceof Array?(null==r?void 0:r[0])||"":r,l=null==e||null==(i=e.split(","))?void 0:i.map(e=>({country:e}));t.countries=l,t.location=Array.isArray(t.location)?t.location.concat(l):l}}}),t},calculateJobPostPercentage:e=>{let l=0,t=["jobTitle","jobType","jobDescription","department","locationPreference","location","roles","skills","otherOptions","salary"];(null==e?void 0:e.applyLink)&&t.push(s.JOB_PREFERENCES_CONST.APPLY_LINK),(null==e?void 0:e.jobType)!==d.A.INTERNSHIP&&t.push(s.JOB_PREFERENCES_CONST.EQUITY,s.JOB_PREFERENCES_CONST.EXPERIENCE),(null==e?void 0:e.jobType)===d.A.INTERNSHIP&&t.push(d.A.INTERNSHIP_DURATION);let n=t.length;return Object.entries(o()(e,t)).forEach(e=>{var t;let[n,i]=e;if(null!=i){if(Array.isArray(i)&&i.length>0||"string"==typeof i&&""!==i.trim()||"boolean"==typeof i){l+=1;return}if("salary"===n){(null==i?void 0:i.min)&&(null==i?void 0:i.max)&&(l+=1);return}if("object"==typeof i&&!Array.isArray(i)&&(null==(t=Object)?void 0:t.keys(i).length)>0){if("equity"===n&&!(null==i?void 0:i.option))return;l+=1}"number"==typeof i&&(l+=1)}}),Math.min(l/n*100,100).toFixed()},restructureJobPostDataBeforeApiCall:(e,l)=>{var t,n,i,o,r,a,c;let{questions:y,socialLinks:p}=l,v={...e},f=["hiringManagerDetails","publishedAt"];(null==e?void 0:e.jobType)===d.A.INTERNSHIP&&f.push(s.JOB_PREFERENCES_CONST.EXPERIENCE),[d.A.FREELANCE,d.A.CONSULTANT,d.A.INTERNSHIP].includes(null==e?void 0:e.jobType)&&(f.push(s.JOB_PREFERENCES_CONST.EQUITY),v.salary={currency:null==e||null==(t=e.salary)?void 0:t.currency,min:null==e||null==(n=e.salary)?void 0:n.min,unit:null==e||null==(i=e.salary)?void 0:i.unit});let h=u()(v,f);if(null==h?void 0:h[s.JOB_PREFERENCES_CONST.EQUITY]){let e={min:(null==(o=h.equity)?void 0:o.min)&&parseFloat(h.equity.min)||null,max:(null==h||null==(r=h.equity)?void 0:r.max)&&parseFloat(h.equity.max)||null,option:h.equity.option};h[s.JOB_PREFERENCES_CONST.EQUITY]=e}return(null==h?void 0:h[s.JOB_PREFERENCES_CONST.JOB_DESCRIPTION])&&(h[s.JOB_PREFERENCES_CONST.JOB_DESCRIPTION]=(0,E.sanitizeRichText)(null==h?void 0:h.jobDescription,E.extendTagsMap.job)),(null==y?void 0:y.length)&&(h.applicationForm={...null!=(a=null==e?void 0:e.applicationForm)?a:{},questions:y}),(null==p?void 0:p.length)&&(h.applicationForm={...null!=(c=null==h?void 0:h.applicationForm)?c:{},socialLinks:p}),h},getCandidateBadgeByScore:e=>{if(!e||e>1||e<=0)return null;let l=null,t=parseFloat(e||0,10);switch(!0){case t>=.8:l=(0,n.jsx)(y.A.GreatFit,{});break;case t>=.6&&t<.8:l=(0,n.jsx)(y.A.GoodFit,{});break;case t<.3:l=(0,n.jsx)(y.A.MisFit,{});break;default:l=null}return l}}},53562:(e,l,t)=>{"use strict";t.r(l),t.d(l,{__N_SSP:()=>v,default:()=>f});var n=t(37876),i=t(89099),o=t(14232),r=t(2171),u=t(56998),a=t(70250),c=t(6827),s=t(95993),d=t(16495),E=t(63819),y=t(63096);let p=e=>{let{user:l}=e,t=(0,r.useDispatch)(),a=(0,i.useRouter)();return(0,o.useEffect)(()=>{l.me&&(t(c.Yt.updatePrimaryUserData(l)),t(s.K5.updateAppData(l)),a.asPath.indexOf("get-verified")>0&&(0,E.scrollToElementWithOffset)("get-verified-btn"))},[JSON.stringify(l)]),(0,n.jsx)(u.A,{data:l})};p.getLayout=e=>{let{user:l}=e.props,t=(0,a.H)(l)?d.APP_PATHS.userProfile({profileHandle:null==l?void 0:l.profileHandle,absolute:!0}):d.APP_PATHS.userProfileSubPage({profileHandle:null==l?void 0:l.profileHandle,absolute:!0,subPage:d.APP_PATHS.resume});return(0,n.jsx)(y.A,{children:(0,n.jsx)(a.A,{user:l,canonical:t,children:e})})};var v=!0;let f=p},82381:(e,l,t)=>{"use strict";t.d(l,{AD:()=>r,kC:()=>o,yY:()=>u});var n=t(61251),i=t(16495);let o=e=>{if(e){if((null==e?void 0:e.city)&&(null==e?void 0:e.country)&&((null==e?void 0:e.code)||(null==e?void 0:e.countryCode)))return e;if((null==e?void 0:e.city)&&(null==e?void 0:e.country)&&!e.code){let l=n.find(l=>l.country===(null==e?void 0:e.country));return{city:null==e?void 0:e.city,country:null==l?void 0:l.country,code:null==l?void 0:l.code,countryCode:null==l?void 0:l.code}}if("string"==typeof e){var l;let t=e.split(","),i=null==t?void 0:t.length,o=t[0],r=null==t||null==(l=t[i-1])?void 0:l.trim(),u=n.find(e=>e.country===r);return{city:o,country:null==u?void 0:u.country,code:null==u?void 0:u.code}}if((null==e?void 0:e.country)===i.REMOTE)return{country:i.REMOTE,code:i.REMOTE};if((null==e?void 0:e.country)!==i.REMOTE&&((null==e?void 0:e.city)===""||!(null==e?void 0:e.city))){if((null==e?void 0:e.country)&&(null==e?void 0:e.code))return e;let l=null==e?void 0:e.country,t=n.find(e=>e.country.toLowerCase()===(null==l?void 0:l.toLowerCase()));return{country:null==t?void 0:t.country,code:null==t?void 0:t.code}}}},r=e=>{let l;if(!(e instanceof Array)||(null==e?void 0:e.length)===0)return;let t=[],n=[];
1return(e.forEach(e=>{let i=null==n?void 0:n.find(l=>l===e.city);(null==t?void 0:t.find(l=>l===e.country))||t.push(e.country),i||void 0===e.city||n.push(e.city),e.remote&&(l=e.remote)}),n.length>0&&t.length>0)?{cities:n,remote:l}:1===t.length||0===n.length?{countries:t,remote:l}:{remote:l}},u=e=>{if(!(e instanceof Array)||(null==e?void 0:e.length)===0)return;let{countries:l,cities:t}=r(e);return(null==t?void 0:t.length)>0?"cities=".concat(t.toString()):(null==l?void 0:l.length)>=1||(null==t?void 0:t.length)===0?"countries=".concat(l.join(",")):""}}},e=>{e.O(0,[1515,9111,6318,8237,828,250,636,6593,8792],()=>e(e.s=20384)),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.