1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5292],{12317:(e,l,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/[username]/posts",function(){return n(65183)}])},41972:(e,l,n)=>{"use strict";n.d(l,{A:()=>S});var t=n(37876),i=n(19635),o=n.n(i),r=n(81515),u=n.n(r),a=n(63819),c=n(82381),s=n(16495),d=n(70514),E=n(78063),y=n(1492);let p=s.JOB_PREFERENCES_CONST.JOB_ROLES,v=s.JOB_PREFERENCES_CONST.SKILLS,N=s.JOB_PREFERENCES_CONST.JOB_TYPES,h=s.JOB_PREFERENCES_CONST.LOCATION,m="remoteOnly",f="minExp",O="maxExp",S={generateQueriesFromFilter:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=Object.entries(e),n=[];return l.forEach(e=>{let[l,t]=e;switch(l){case v:{if(!(null==t?void 0:t.length)||!t)return;let e=t.map(e=>e.name);n.push("skills=".concat(encodeURIComponent(e.toString())));break}case p:t.length>0&&n.push("roles=".concat(t.toString()));break;case"min":case f:Number.isInteger(t)&&n.push("minExp=".concat(t));break;case"max":case O:Number.isInteger(t)&&n.push("maxExp=".concat(t));break;case m:n.push("remoteOnly=".concat(t));break;case N:n.push("jobType=".concat(t));break;case h:{let e=(0,c.yY)(t);e&&n.push(e);break}case"cities":if(t.length>0){let e=t.map(e=>a.default.isString(e)?e:e.city);n.some(e=>e.includes("cities"))||n.push("cities=".concat(e.toString()))}break;case"countries":if(t.length>0){let e=t.map(e=>a.default.isString(e)?e:e.country);n.some(e=>e.includes("countries"))||n.push("countries=".concat(e.toString()))}}}),n},generateFilterFromQueries:e=>{let l=Object.entries(e),n={};return l.forEach(e=>{var l,t,i;let[o,r]=e;switch(o){case v:n.skills=null==r||null==(l=r.split(","))?void 0:l.map(e=>({label:e,name:e}));break;case p:n.roles=null==r?void 0:r.split(",");break;case m:n.remoteOnly="true"===r;break;case N:n.jobType=r;break;case f:n[f]=r;break;case O:n[O]=r;break;case"cities":{let e=Array.isArray(r)?r:null==r||null==(t=r.split(","))?void 0:t.map(e=>({city:e}));n.cities=e,n.location=Array.isArray(n.location)?n.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}));n.countries=l,n.location=Array.isArray(n.location)?n.location.concat(l):l}}}),n},calculateJobPostPercentage:e=>{let l=0,n=["jobTitle","jobType","jobDescription","department","locationPreference","location","roles","skills","otherOptions","salary"];(null==e?void 0:e.applyLink)&&n.push(s.JOB_PREFERENCES_CONST.APPLY_LINK),(null==e?void 0:e.jobType)!==d.A.INTERNSHIP&&n.push(s.JOB_PREFERENCES_CONST.EQUITY,s.JOB_PREFERENCES_CONST.EXPERIENCE),(null==e?void 0:e.jobType)===d.A.INTERNSHIP&&n.push(d.A.INTERNSHIP_DURATION);let t=n.length;return Object.entries(o()(e,n)).forEach(e=>{var n;let[t,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"===t){(null==i?void 0:i.min)&&(null==i?void 0:i.max)&&(l+=1);return}if("object"==typeof i&&!Array.isArray(i)&&(null==(n=Object)?void 0:n.keys(i).length)>0){if("equity"===t&&!(null==i?void 0:i.option))return;l+=1}"number"==typeof i&&(l+=1)}}),Math.min(l/t*100,100).toFixed()},restructureJobPostDataBeforeApiCall:(e,l)=>{var n,t,i,o,r,a,c;let{questions:y,socialLinks:p}=l,v={...e},N=["hiringManagerDetails","publishedAt"];(null==e?void 0:e.jobType)===d.A.INTERNSHIP&&N.push(s.JOB_PREFERENCES_CONST.EXPERIENCE),[d.A.FREELANCE,d.A.CONSULTANT,d.A.INTERNSHIP].includes(null==e?void 0:e.jobType)&&(N.push(s.JOB_PREFERENCES_CONST.EQUITY),v.salary={currency:null==e||null==(n=e.salary)?void 0:n.currency,min:null==e||null==(t=e.salary)?void 0:t.min,unit:null==e||null==(i=e.salary)?void 0:i.unit});let h=u()(v,N);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,n=parseFloat(e||0,10);switch(!0){case n>=.8:l=(0,t.jsx)(y.A.GreatFit,{});break;case n>
1=.6&&n<.8:l=(0,t.jsx)(y.A.GoodFit,{});break;case n<.3:l=(0,t.jsx)(y.A.MisFit,{});break;default:l=null}return l}}},65183:(e,l,n)=>{"use strict";n.r(l),n.d(l,{__N_SSP:()=>c,default:()=>s});var t=n(37876),i=n(63096),o=n(79841),r=n(70250),u=n(16495);let a=e=>{let{user:l}=e;return(0,t.jsx)(o.A,{userId:l.id,firstName:null==l?void 0:l.firstName,numPosts:null==l?void 0:l.numPosts,me:null==l?void 0:l.me})};a.getLayout=e=>{let{user:l}=e.props;return(0,t.jsx)(i.A,{children:(0,t.jsx)(r.A,{user:l,className:"lg:py-10 pt-8 pb-10 w-full",canonical:u.APP_PATHS.userProfileSubPage({profileHandle:l.profileHandle,subPage:u.APP_PATHS.posts,absolute:!0}),children:e})})};var c=!0;let s=a},82381:(e,l,n)=>{"use strict";n.d(l,{AD:()=>r,kC:()=>o,yY:()=>u});var t=n(61251),i=n(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=t.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 n=e.split(","),i=null==n?void 0:n.length,o=n[0],r=null==n||null==(l=n[i-1])?void 0:l.trim(),u=t.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,n=t.find(e=>e.country.toLowerCase()===(null==l?void 0:l.toLowerCase()));return{country:null==n?void 0:n.country,code:null==n?void 0:n.code}}}},r=e=>{let l;if(!(e instanceof Array)||(null==e?void 0:e.length)===0)return;let n=[],t=[];return(e.forEach(e=>{let i=null==t?void 0:t.find(l=>l===e.city);(null==n?void 0:n.find(l=>l===e.country))||n.push(e.country),i||void 0===e.city||t.push(e.city),e.remote&&(l=e.remote)}),t.length>0&&n.length>0)?{cities:t,remote:l}:1===n.length||0===t.length?{countries:n,remote:l}:{remote:l}},u=e=>{if(!(e instanceof Array)||(null==e?void 0:e.length)===0)return;let{countries:l,cities:n}=r(e);return(null==n?void 0:n.length)>0?"cities=".concat(n.toString()):(null==l?void 0:l.length)>=1||(null==n?void 0:n.length)===0?"countries=".concat(l.join(",")):""}}},e=>{e.O(0,[1515,8798,9111,6318,5777,2705,8237,828,250,7343,636,6593,8792],()=>e(e.s=12317)),_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.