PageSourceSearch

https://www.weekday.works/_next/static/chunks/pages/jd-generator/[role]-d775ecd44ba0468f.js

js weekday.works collected 2026-10-02 04:27:40 UTC 17,448 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1437],{6447:(e,t,n)=>{"use strict";n.d(t,{W:()=>l,k:()=>i});let l=(e,t,n)=>{if(t<0||t>=e.length||n<0||n>=e.length)throw Error("Index out of bounds");let[l]=e.splice(t,1);return e.splice(n,0,l),e},i=(e,t)=>e.reduce((e,n)=>{let l=n[t];return e[l]||(e[l]=[]),e[l].push(n),e},{})},18637:(e,t,n)=>{"use strict";n.d(t,{A:()=>r,b:()=>o});var l=n(14457),i=n(21849);function o(e){return(0,i.Ay)("MuiListItemText",e)}let r=(0,l.A)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"])},43185:(e,t,n)=>{"use strict";n.d(t,{A:()=>r,f:()=>o});var l=n(14457),i=n(21849);function o(e){return(0,i.Ay)("MuiListItemIcon",e)}let r=(0,l.A)("MuiListItemIcon",["root","alignItemsFlexStart"])},50773:(e,t,n)=>{"use strict";n.d(t,{P:()=>a,d:()=>r});var l=n(81854);let i=new Set(["null","undefined","nil","none","n/a","-"]),o=e=>i.has(e.trim().toLowerCase()),r=e=>{let t=(e=>{if(!e)return null;let t=String(e).trim();if(!t||o(t))return null;try{return new URL(t.startsWith("http")?t:"https://".concat(t)).hostname.replace(/^www\./,"")||null}catch(e){return t.replace(/^https?:\/\//,"").replace(/^www\./,"").split("/")[0]||null}})(e);return t?"".concat(l.RP,"/").concat(t):null},a=e=>{let{companyLogo:t,companyDomain:n}=e;return[(e=>{if("string"!=typeof e)return null;let t=e.trim();return!t||o(t)?null:t.startsWith("//")?"https:".concat(t):/^http:\/\//i.test(t)?t.replace(/^http:/i,"https:"):/^https:\/\//i.test(t)||t.startsWith("/")?t:null})(t),r(n)].filter(e=>!!e)}},62266:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__N_SSP:()=>H,default:()=>U});var l=n(37876),i=n(59661),o=n(15805),r=n(19908),a=n(81854),s=n(72975),c=n(27027),d=n(96965),p=n(38465),u=n(40359),h=n(82777),x=n(38769),m=n(59480),b=n(31777),g=n(34650),f=n(60307),v=n(10775),j=n(14232),A=n(76512),y=n(6698),k=n(50773),w=n(70069);function C(){var e,t,n,i;let o=(0,b.d4)(e=>e.jdGenerator.formData),r=[null==o?void 0:o.department,null==o?void 0:o.roleType,null==o?void 0:o.workType].filter(e=>!!e&&"-"!==e),a=(0,j.useCallback)(e=>{let t=document.getElementById(e);t&&(t.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"}),null==t||t.focus())},[]),s=(0,g.j)(),c=(0,j.useRef)(null),d=(0,j.useCallback)(e=>{var t;let n=null==(t=e.target.files)?void 0:t[0];n&&(0,A.t)(n).then(e=>{s((0,y.FO)({key:"companyLogo",value:e}))})},[s]);return(0,l.jsxs)(u.A,{sx:W.container,children:[(0,l.jsx)("input",{type:"file",accept:"image/*",hidden:!0,ref:c,onChange:d}),(0,l.jsxs)(u.A,{id:"jd-preview",padding:4,children:[(0,l.jsxs)(u.A,{sx:W.header,children:[(0,l.jsxs)(u.A,{sx:W.logo,children:[(0,l.jsx)(x.A,{src:(null==o?void 0:o.companyLogo)||(0,k.d)(null==o?void 0:o.companyWebsite)||void 0,variant:"square",onClick:()=>{var e;return null==(e=c.current)?void 0:e.click()},sx:W.companyLogo,children:null==o||null==(t=o.companyName)||null==(e=t[0])?void 0:e.toUpperCase()}),(0,l.jsxs)(u.A,{children:[(0,l.jsx)(h.A,{sx:W.role,onClick:()=>a("jd-role"),children:null==o?void 0:o.role}),(0,l.jsxs)(h.A,{component:"a",href:null==o?void 0:o.companyWebsite,target:"_blank",sx:W.website,children:[null==o?void 0:o.companyName," ・ ",null==o?void 0:o.companyWebsite]})]})]}),(null==o?void 0:o.jobLink)?(0,l.jsx)(v.A,{variant:"primary",sx:W.applyBtn,href:null==o?void 0:o.jobLink,openInNewTab:!0,children:"Apply"}):null]}),(0,l.jsx)(h.A,{sx:W.subtitle,component:"span",onClick:()=>a("jd-subtitle-row"),children:r.map((e,t)=>(0,l.jsxs)("span",{children:[e,t+1<r.length?(0,l.jsx)("span",{style:{margin:"0 4px"},children:"/"}):""]},e))}),(null==o?void 0:o.location)?(0,l.jsxs)(h.A,{sx:W.subtitle,component:"span",onClick:()=>a("jd-location"),children:[(0,l.jsx)(f.A,{fontSize:"inherit",color:"inherit",sx:W.locIcon}),null==o?void 0:o.location]}):null,(0,l.jsxs)(u.A,{mt:2,children:[(0,l.jsx)(h.A,{sx:W.sectionTitle,contentEditable:!0,suppressContentEditableWarning:!0,children:"About the Role"}),(0,l.jsx)(h.A,{contentEditable:!0,suppressContentEditableWarning:!0,children:null==o?void 0:o.aboutRole})]}),(0,l.jsxs)(u.A,{mt:2,children:[(0,l.jsx)(h.A,{sx:W.sectionTitle,contentEditable:!0,suppressContentEditableWarning:!0,children:"Responsibilities - What will you do"}),(0,l.jsx)(h.A,{component:"ul",sx:W.ul,contentEditable:!0,suppressContentEditableWarning:!0,children:null==o||null==(n=o.responsibilities)?void 0:n.map(e=>(0,l.jsx)(h.A,{component:"li",children:e},e))})]}),(0,l.jsxs)(u.A,{mt:2,children:[(0,l.jsx)(h.A,{sx:W.sectionTitle,contentEditable:!0,suppressContentEditableWarning:!0,children:"Experience & Qualifications - What you will need"}),(0,l.jsx)(h.A,{component:"ul",sx:W.ul,contentEditable:!0,suppressContentEditableWarning:!0,children:null==o||null==(i=o.qualifications)?void 0:i.map(e=>(0,l.jsx)(h.A,{component:"li",children:e},e))})]}),(0,l.jsxs)(u.A,{mt:2,children:[(0,l.jsx)(h.A,{sx:W.sectionTitle,contentEditable:!0,suppressContentEditableWarning:!0,children:"About us"}),(0,l.jsx)(h.A,{contentEditable:!0,suppressContentEditableWarning:!0,children:(null==o?void 0:o.aboutCompany)||"..."})]}),(0,l.jsxs)(u.A,{mt:2,children:[(0,l.jsx)(h.A,{sx:W.sectionTitle,contentEditable:!0,suppressContentEditableWarning:!0,children:"Why join us?"}),(0,l.jsx)(h.A,{component:"ul",sx:W.ul,contentEditable:!0,suppressContentEditableWarning:!0,children:w.hs.map(e=>{let{point:t,text:n}=e;return(0,l.jsxs)(h.A,{component:"li",children:[(0,l.jsxs)("b",{children:[t,":"]})," ",n]},t)})})]}),(null==o?void 0:o.contactEmail)?(0,l.jsxs)(h.A,{component:"span",mt:2,contentEditable:!0,suppressContentEditableWarning:!0,children:["If this sounds like something you resonate with, then do reach out to us on"," ",(0,l.jsx)(m.A,{href:"mailto:".concat(null==o?void 0:o.contactEmail),target:"_blank",children:null==o?void 0:o.contactEmail})]}):null,(null==o?void 0:o.jobLink)?(0,l.jsxs)(h.A,{component:"span",mt:2,fontWeight:600,contentEditable:!0,suppressContentEditableWarning:!0,children:["Apply here -"," ",(0,l.jsx)(v.A,{href:null==o?void 0:o.jobLink,openInNewTab:!0,variant:"link",sx:W.applyLink,children:null==o?void 0:o.jobLink})]}):null]})]})}let W={container:{borderRadius:2,border:"1px solid #1414141a",background:"#fff"},header:{flexDirection:"row",alignItems:"center",gap:"12px",width:"100%",justifyContent:"space-between"},logo:{flexDirection:"row",alignItems:"center",gap:"12px",width:"100%"},companyLogo:{width:"48px",height:"48px",cursor:"pointer"},role:{fontSize:"20px",fontWeight:600},website:{fontSize:"15px",color:"#333",textDecoration:"none",fontWeight:500},sectionTitle:{fontSize:"18px",fontWeight:700,color:"#141414"},subtitle:{mt:1,display:"inline-flex",alignItems:"center",fontSize:"16px",color:"#4D596A",fontWeight:600},locIcon:{mr:"4px"},applyBtn:{height:"40px",borderRadius:"8px",width:"100px",fontWeight:600},applyLink:{fontSize:"16px",textDecoration:"underline"},ul:{paddingInlineStart:"1rem"}};var E=n(18847),I=n.n(E);let L=(0,n(6447).k)(Object.entries(w.Ov).map(e=>{let[t,{role:n}]=e;return{label:n,value:t,type:w.pw[t]}}),"type");function D(){return(0,l.jsxs)(u.A,{sx:T.card,children:[(0,l.jsx)(h.A,{sx:T.title,children:"JD Generators"}),Object.entries(L).map(e=>{let[t,n]=e;return(0,l.jsxs)(u.A,{gap:1.5,children:[(0,l.jsx)(h.A,{sx:T.type,children:t}),(0,l.jsx)(u.A,{gap:1,children:n.map(e=>{let{label:t,value:n}=e;return(0,l.jsx)(h.A,{component:"a",href:"/jd-generator/".concat(n),rel:"noopener noreferrer",sx:T.link,children:t},n)})})]},t)})]})}let T={card:{borderRadius:"32px",border:"1px solid #1414141a",px:2,py:3,backgroundColor:"#FFFDF7",gap:2},type:{fontSize:"18px",fontWeight:600},title:{color:"#0a0a0a",fontSize:{xs:"20px",md:"24px"},fontStyle:"normal",fontWeight:700,textAlign:"center",lineHeight:"1.32em",backgroundColor:"#FFFDF7"},link:{textDecoration:"none",color:"#141414",":hover":{textDecoration:"underline"}}};
1var S=n(91349),O=n(96524),z=n(93265),F=n(13811),R=n(49099);let _=(0,z.Z)();function P(){let e=(0,b.d4)(e=>e.jdGenerator.companyOptions),t=(0,b.d4)(e=>e.jdGenerator.selectedCompany),n=(0,g.j)(),i=(0,j.useCallback)((0,F.A)(e=>{n((0,y.qS)(e))},500),[]);return(0,l.jsx)(R.A,{fullWidth:!0,size:"small",options:e,value:t,onChange:(e,t)=>{n((0,y.Ff)(t))},onInputChange:(e,t)=>{i(t)},freeSolo:!0,filterOptions:(e,t)=>{let n=_(e,t),{inputValue:l}=t;return(null==l?void 0:l.trim())!==""&&n.unshift({inputValue:l,label:'Add "'.concat(l,'"')}),n},renderOption:(e,t)=>(0,j.createElement)(u.A,{component:"li",...e,key:(null==t?void 0:t.id)||(null==t?void 0:t.label),sx:M.labelContainer,children:[(0,l.jsx)(x.A,{src:(null==t?void 0:t.logo)||(0,k.d)(null==t?void 0:t.website)||void 0,alt:"companyLogo",variant:"rounded",children:"\uD83C\uDFE2"}),(0,l.jsxs)(u.A,{children:[(0,l.jsx)(h.A,{sx:M.label,children:t.label}),(0,l.jsx)(h.A,{sx:M.website,children:null==t?void 0:t.website})]})]}),renderInput:e=>(0,l.jsx)(S.A,{...e,required:!0,label:"Company Name",placeholder:"Seach Company",InputLabelProps:{shrink:!0}})})}let M={labelContainer:{flexDirection:"row",width:"100%",gap:1},label:{fontSize:"16px",fontWeight:600},website:{fontSize:"14px",fontWeight:400,color:"#333"}};var N=n(94195);let G=()=>{let e=document.getElementById("jd-preview");e&&e.scrollIntoView({behavior:"smooth"})};function V(){let e=(0,b.d4)(e=>e.jdGenerator.formData),t=(0,g.j)(),n=(0,j.useCallback)(e=>{let{name:n,value:l}=e.target;t((0,y.FO)({key:n,value:l}))},[t]);return(0,l.jsxs)(u.A,{sx:q.card,children:[(0,l.jsxs)(u.A,{direction:"row",gap:2,children:[(0,l.jsx)(P,{}),(0,l.jsx)(S.A,{fullWidth:!0,required:!0,label:"Website",size:"small",name:"companyWebsite",value:null==e?void 0:e.companyWebsite,onChange:n,InputLabelProps:{shrink:!0}})]}),(0,l.jsxs)(u.A,{direction:"row",gap:2,children:[(0,l.jsx)(S.A,{fullWidth:!0,required:!0,label:"Role",size:"small",name:"role",id:"jd-role",value:null==e?void 0:e.role,onChange:n,InputLabelProps:{shrink:!0}}),(0,l.jsx)(S.A,{id:"jd-location",fullWidth:!0,label:"Job Location (Optional)",size:"small",name:"location",value:null==e?void 0:e.location,onChange:n,InputLabelProps:{shrink:!0}})]}),(0,l.jsxs)(u.A,{direction:{xs:"column",md:"row"},gap:2,id:"jd-subtitle-row",children:[(0,l.jsx)(S.A,{fullWidth:!0,label:"Department (Optional)",size:"small",name:"department",value:null==e?void 0:e.department,onChange:n,InputLabelProps:{shrink:!0}}),(0,l.jsx)(S.A,{fullWidth:!0,select:!0,name:"roleType",size:"small",onChange:n,label:"Role Type (Optional)",value:null==e?void 0:e.roleType,InputLabelProps:{shrink:!0},children:w.P4.map(e=>(0,l.jsx)(O.A,{value:e,children:e},e))}),(0,l.jsx)(S.A,{fullWidth:!0,select:!0,name:"workType",size:"small",onChange:n,label:"Work Type (Optional)",value:null==e?void 0:e.workType,children:w.IL.map(e=>(0,l.jsx)(O.A,{value:e,children:e},e))})]}),(0,l.jsxs)(u.A,{direction:"row",gap:2,children:[(0,l.jsx)(S.A,{fullWidth:!0,label:"Contact Email (Optional)",size:"small",name:"contactEmail",value:null==e?void 0:e.contactEmail,onChange:n,InputLabelProps:{shrink:!0}}),(0,l.jsx)(S.A,{fullWidth:!0,label:"Application Link (Optional)",size:"small",name:"jobLink",value:null==e?void 0:e.jobLink,onChange:n,InputLabelProps:{shrink:!0}})]}),(0,l.jsx)(N.A,{btnVariant:"primary",sx:q.btn,onClick:G,children:"Generate JD"})]})}let q={card:{borderRadius:"32px",padding:"24px",border:"1px solid #1414141a",backgroundColor:"#FFFDF7",gap:2},btn:{width:"100%",height:"40px"}};var B=n(80588);let J=I()(()=>Promise.all([n.e(7969),n.e(2366),n.e(8574),n.e(6064)]).then(n.bind(n,86064)),{loadableGenerated:{webpack:()=>[86064]},ssr:!1});var H=!0;function U(e){var t;let{roleId:n,role:x,metaDescription:m,pageTitle:b,pageSubtitle:f,faqs:v}=e,A=(0,g.j)();(0,j.useEffect)(()=>{A((0,y.qf)(n))},[n,A]);let k={title:"Job Description Generator for ".concat(x," (plus template)"),description:m,ogTitle:"Job Description Generator for ".concat(x," (plus template)"),ogImageUrl:s.nT,ogUrl:"".concat(a.pX,"/jd-generator/").concat(n),ogDescription:m};return(0,l.jsx)(i.A,{metaData:k,faqs:v,ogType:"article",structuredData:[(0,o.os)({url:k.ogUrl,headline:b,description:m})],children:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(c.A,{contentMaxWidth:"100%",title:b,subtitle:f,subtitleSx:X.subtitle}),(0,l.jsxs)(u.A,{sx:X.body,children:[(0,l.jsxs)(u.A,{gap:2,flex:3,children:[(0,l.jsx)(u.A,{flex:1,children:(0,l.jsx)(V,{})}),(0,l.jsxs)(u.A,{flex:2,children:[(0,l.jsx)(C,{}),(0,l.jsx)(h.A,{variant:"body2",color:"#333",children:"Hint: You can click on the text and edit (Keyboard shortcuts like bold, italics, underline can be used)"})]}),(0,l.jsx)(J,{}),(0,l.jsxs)(u.A,{my:5,sx:X.sampleContainer,children:[(0,l.jsxs)(h.A,{sx:X.infoTitle,children:["Sample ",x," Job Description"]}),(0,l.jsx)(h.A,{sx:X.sampleJD,component:"span",dangerouslySetInnerHTML:{__html:(0,r.p)(null==(t=w.Ov[n])?void 0:t.sampleJd)}})]})]}),(0,l.jsx)(u.A,{flex:1,children:(0,l.jsx)(D,{})})]}),(0,l.jsx)(B.A,{faqs:v}),(0,l.jsx)(p.A,{}),(0,l.jsx)(d.A,{})]})})}let X={infoTitle:{color:"#141414",textAlign:"center",fontFamily:"Crimson Text",fontSize:"35px",fontStyle:"normal",fontWeight:600,lineHeight:"130%"},sampleContainer:{gap:2},sampleJD:{padding:3},body:{flexDirection:{xs:"column",md:"row"},gap:2,my:3},subtitle:{textAlign:"justify"}}}
1,76512:(e,t,n)=>{"use strict";n.d(t,{t:()=>l});let l=e=>new Promise((t,n)=>{let l=new FileReader;l.onloadend=()=>{t(l.result)},l.onerror=e=>{n(e)},l.readAsDataURL(e)})},85564:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/jd-generator/[role]",function(){return n(62266)}])},90599:(e,t,n)=>{"use strict";n.d(t,{A:()=>r,K:()=>o});var l=n(14457),i=n(21849);function o(e){return(0,i.Ay)("MuiDivider",e)}let r=(0,l.A)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"])},96524:(e,t,n)=>{"use strict";n.d(t,{A:()=>w});var l=n(14232),i=n(69241),o=n(13323),r=n(14770),a=n(66438),s=n(95651),c=n(63915),d=n(20370),p=n(6215),u=n(74648),h=n(43132),x=n(90599),m=n(43185),b=n(18637),g=n(14457),f=n(21849);function v(e){return(0,f.Ay)("MuiMenuItem",e)}let j=(0,g.A)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);var A=n(25509),y=n(37876);let k=(0,a.Ay)(p.A,{shouldForwardProp:e=>(0,r.A)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((0,s.A)(e=>{let{theme:t}=e;return{...t.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(j.selected)]:{backgroundColor:t.alpha((t.vars||t).palette.primary.main,(t.vars||t).palette.action.selectedOpacity),["&.".concat(j.focusVisible)]:{backgroundColor:t.alpha((t.vars||t).palette.primary.main,"".concat((t.vars||t).palette.action.selectedOpacity," + ").concat((t.vars||t).palette.action.focusOpacity))}},["&.".concat(j.selected,":hover")]:{backgroundColor:t.alpha((t.vars||t).palette.primary.main,"".concat((t.vars||t).palette.action.selectedOpacity," + ").concat((t.vars||t).palette.action.hoverOpacity)),"@media (hover: none)":{backgroundColor:t.alpha((t.vars||t).palette.primary.main,(t.vars||t).palette.action.selectedOpacity)}},["&.".concat(j.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(j.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity},["& + .".concat(x.A.root)]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},["& + .".concat(x.A.inset)]:{marginLeft:52},["& .".concat(b.A.root)]:{marginTop:0,marginBottom:0},["& .".concat(b.A.inset)]:{paddingLeft:36},["& .".concat(m.A.root)]:{minWidth:36},variants:[{props:e=>{let{ownerState:t}=e;return!t.disableGutters},style:{paddingLeft:16,paddingRight:16}},{props:e=>{let{ownerState:t}=e;return t.divider},style:{borderBottom:"1px solid ".concat((t.vars||t).palette.divider),backgroundClip:"padding-box"}},{props:e=>{let{ownerState:t}=e;return!t.dense},style:{[t.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:e=>{let{ownerState:t}=e;return t.dense},style:{minHeight:32,paddingTop:4,paddingBottom:4,...t.typography.body2,["& .".concat(m.A.root," svg")]:{fontSize:"1.25rem"}}}]}})),w=l.forwardRef(function(e,t){let n,r=(0,c.b)({props:e,name:"MuiMenuItem"}),{autoFocus:a=!1,component:s="li",dense:p=!1,divider:x=!1,disableGutters:m=!1,focusVisibleClassName:b,role:g="menuitem",tabIndex:f,className:j,...w}=r,C=(0,A.x)(),W=l.useContext(d.A),E=l.useMemo(()=>({dense:p||W.dense||!1,disableGutters:m}),[W.dense,p,m]),I=l.useRef(null);(0,u.A)(()=>{a&&I.current&&function(e,t){if(null==t)return e.focus();try{e.focus({focusVisible:"keyboard"===t})}catch(t){e.focus()}}(I.current,C)},[a]);let L={...r,dense:E.dense,divider:x,disableGutters:m},D=(e=>{let{disabled:t,dense:n,divider:l,disableGutters:i,selected:r,classes:a}=e,s=(0,o.A)({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",l&&"divider",r&&"selected"]},v,a);return{...a,...s}})(r),T=(0,h.A)(I,t),{root:S,...O}=D;return r.disabled||(n=void 0!==f?f:-1),(0,y.jsx)(d.A.Provider,{value:E,children:(0,y.jsx)(k,{ref:T,role:g,tabIndex:n,component:s,focusVisibleClassName:(0,i.A)(D.focusVisible,b),className:(0,i.A)(D.root,j),...w,ownerState:L,classes:O})})})}},e=>{e.O(0,[1825,9819,6939,2973,3774,2052,1349,2228,5692,2704,5820,9099,6021,7984,6626,636,6593,8792],()=>e(e.s=85564)),_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.