1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5059],{78531:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/blogs/job-description-generator",function(){return l(88341)}])},9885:function(e,t,l){"use strict";l.r(t),l.d(t,{preloadLocationAPI:function(){return preloadLocationAPI}});var s=l(85893),i=l(64475),n=l(43061),a=l(67294),o=l(9669),r=l.n(o),x=l(2299),d=l(83939),p=l(95332);let preloadLocationAPI=async()=>{let{data:e}=await r().get("https://www.cloudflare.com/cdn-cgi/trace");return`${e}`};t.default=e=>{let{blogId:t,isJdPage:l}=e,[o,r]=(0,a.useState)(""),[c,m]=(0,a.useState)(0),[u,h]=(0,a.useState)(""),takeFeedBack=async e=>{let s=0;if(u)return;h(e);let i="",n=`${x.l6}customapi/feedback`;l&&(n=`${x.bl}v2/public/jd-pages-feedback`);let a=await (0,d._f)();try{var p,c,v;let e=await preloadLocationAPI();i=(null===(v=e.split("ip="))||void 0===v?void 0:null===(c=v[1])||void 0===c?void 0:null===(p=c.split("ts="))||void 0===p?void 0:p[0])||""}catch(e){console.log(e)}if(o===e){r("");try{await fetch(`${n}?removeFeedback=true`,{method:"post",headers:{"Content-Type":"application/json",turnstiletoken:a},body:JSON.stringify({vote:e,blogid:t,ipaddress:i})})}catch(e){console.log(e)}}else{try{let l=await fetch(n,{method:"post",headers:{"Content-Type":"application/json",turnstiletoken:a},body:JSON.stringify({vote:e,blogid:t,ipaddress:i})}),o=await l.json();s=(null==o?void 0:o.countOfUpVote)||0}catch(e){console.log(e)}s>0&&"upvote"===e?m(s):m(0),r(e)}h("")};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{id:"turnstile-container"}),(0,s.jsxs)("div",{className:"w-full font-inter",children:[(0,s.jsxs)("div",{className:"w-[160px] h-[107px] m-auto",children:[(0,s.jsx)("p",{className:"text-center font-medium text-[16px] text-[#343244]",children:"Was This Helpful?"}),(0,s.jsxs)("div",{className:"flex justify-between mt-[24px]",children:[(0,s.jsx)("div",{className:`w-[64px] h-[64px] rounded-full ${"upvote"===o&&"upvote"!=u?"bg-[#6D5DE7]":"bg-[#f7f6ff]"} flex justify-center items-center ${u?"opacity-60 cursor-not-allowed":"cursor-pointer"}`,onClick:()=>{takeFeedBack("upvote")},children:"upvote"==u?(0,s.jsx)(p.Z,{}):(0,s.jsx)(i.V,{size:32,color:"upvote"===o?"white":"#343244"})}),(0,s.jsx)("div",{className:`w-[64px] h-[64px] rounded-full ${"downvote"===o&&"downvote"!=u?"bg-[#6D5DE7]":"bg-[#f7f6ff]"} flex justify-center items-center ${u?"opacity-60 cursor-not-allowed":"cursor-pointer"}`,onClick:()=>{takeFeedBack("downvote")},children:"downvote"==u?(0,s.jsx)(p.Z,{}):(0,s.jsx)(n.L,{size:32,color:"downvote"===o?"white":"#343244"})})]})]}),"upvote"===o&&(0,s.jsx)(s.Fragment,{children:c>0&&(0,s.jsx)("div",{className:"flex justify-center relative",children:(0,s.jsxs)("p",{className:"text-[14px] text-center mt-[16px] top-[16px] absolute text-[#5A5878] leading-[24px]",children:["Appreciate ",c," helpful clicks!"]})})}),"downvote"===o&&(0,s.jsx)("div",{className:"flex justify-center relative",children:(0,s.jsx)("p",{className:"text-[14px] text-center mt-[16px] top-[16px] text-[#5A5878] leading-[24px] absolute",children:"Appreciate your feedback! Weâll improve next time"})})]})]})}},88341:function(e,t,l){"use strict";l.r(t),l.d(t,{__N_SSG:function(){return S},default:function(){return job_description_generator}});var s=l(85893),i=l(2299),n=l(9008),a=l.n(n),o=l(25675),r=l.n(o),x=l(87633),d=l(67294),p=l(57851);let CustomDropDown=e=>{let{options:t,className:l,className2:i,defaultValue:n,onValueChange:a,containerWidth:o,children:r,clearData:x,...c}=e,[m,u]=(0,d.useState)(!1),[h,v]=(0,d.useState)("");(0,d.useEffect)(()=>{v(n)},[n]),(0,d.useEffect)(()=>{x&&v("")},[x]);let j=(0,p.m)("border border-solid border-[#D9DEE2] text-gray-500 rounded px-4 py-4 flex justify-between items-center text-sm",l),b=(0,p.m)(" text-sm text-gray-400 mt-1 shadow border bg-white rounded absolute",i),selectOption=e=>{v(e),u(!1)};return(0,s.jsxs)("div",{className:"relative z-[2]",children:[m?(0,s.jsx)("div",{className:"w-[100vw] h-[100vh] fixed top-0 left-0 -z-[1]",onClick:()=>u(!1)}):"",(0,s.jsxs)("div",{className:j,onClick:()=>{u(!m)},children:[(0,s.jsxs)("div",{className:`flex flex-col items-start ${(null==h?void 0:h.label)?"pb-[3px]":""} select-none`,children:[" ",(0,s.jsx)("p",{className:`text-[#8C8AB7] font-medium ${(null==h?void 0:h.label)?"text-[12px]":"text-[14px]"}`,children:r}),(null==h?void 0:h.label)&&(0,s.jsx)("p",{className:`${h?"text-[black]":"text-[#8C8AB7]"} text-[16px] pt-[6px]`,children:h.label})]}),(0,s.jsx)("p",{children:(0,s.jsx)("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",children:(0,s.jsx)("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.564
164L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd"})})})]}),m&&(0,s.jsx)("div",{className:b,children:t.map(e=>(0,s.jsx)("li",{className:`hover:bg-[#6D5DE7] hover:text-white p-[4px] m-[4px] flex items-center rounded py-[6px] pl-[9px] ${(null==h?void 0:h.label)==e.label?"bg-[#6D5DE7] text-white hover:bg-[#6d5de7e2]":"text-black"} text-[14px] font-normal text-[#343244] leading-[26px]`,onClick:()=>{selectOption(e),a&&a(e)},children:e.label},e.value))})]})},CustomInput=e=>{let{className:t,id:l,placeholder:i,onChange:n,value:a}=e,o=(0,p.m)("relative",t);return(0,s.jsxs)("div",{className:o,children:[(0,s.jsx)("input",{type:"text",id:l,className:"w-full h-[60px] font-normal pl-[20px] text-[16px] bg-[#FDFDFF] focus:border-[#6D5DE7] outline-none border-solid border-[1px] border-[#D9DEE2] rounded-sm peer pt-[20px]",placeholder:" ",onChange:e=>{n(e.target.value,l)},value:a}),(0,s.jsx)("label",{for:l,className:"absolute font-medium text-[#8C8AB7] text-[12px] duration-300 transform -translate-y-5 smr:-translate-y-5 mdr:-translate-y-5 lgr:-translate-y-5 xlr:-translate-y-4 2xlr:-translate-y-4 scale-75 top-5 z-[1] left-[20px] peer-placeholder-shown:scale-100 peer-placeholder-shown:translate-y-1 smr:peer-placeholder-shown:translate-y-1 mdr:peer-placeholder-shown:translate-y-1 lgr:peer-placeholder-shown:translate-y-1 xlr:peer-placeholder-shown:translate-y-0 2xlr:peer-placeholder-shown:translate-y-0 peer-placeholder-shown:text-[14px] peer-focus:scale-75 peer-focus:-translate-y-5 smr:peer-focus:-translate-y-5 mdr:peer-focus:-translate-y-5 lgr:peer-focus:-translate-y-5 xlr:peer-focus:-translate-y-4 2xl:peer-focus:-translate-y-4 peer-focus:text-[12px] select-none cursor-text",children:i})]})};var c=l(8054),m=l(9046),u=l(32673),h=l(77645),v=l(64475),j=l(43061),blogs_FeedbackForJd=e=>{let{pagePath:t,jdStoreId:l}=e,[n,a]=(0,d.useState)(""),takeFeedBack=async e=>{try{await fetch(`${i.l6}customapi/jd-generator/feedback`,{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({vote:e,jdStoreId:l})})}catch(e){console.log(e)}e===n?a(""):a(e)};return(0,s.jsxs)("div",{className:"w-full font-inter",children:[(0,s.jsxs)("div",{className:"w-[160px] h-[107px] m-auto",children:[(0,s.jsx)("p",{className:"text-center font-medium text-[16px] text-[#343244]",children:"Was this Helpful?"}),(0,s.jsxs)("div",{className:"flex justify-between mt-[24px]",children:[(0,s.jsx)("div",{className:`w-[64px] h-[64px] rounded-full ${"upvote"===n?"bg-[#6D5DE7]":"bg-[#f7f6ff]"} flex justify-center items-center cursor-pointer duration-300`,onClick:()=>{takeFeedBack("upvote")},children:(0,s.jsx)(v.V,{size:32,color:"upvote"===n?"white":"#343244"})}),(0,s.jsx)("div",{className:`w-[64px] h-[64px] rounded-full ${"downvote"===n?"bg-[#6D5DE7]":"bg-[#f7f6ff]"} flex justify-center items-center cursor-pointer duration-300`,onClick:()=>{takeFeedBack("downvote")},children:(0,s.jsx)(j.L,{size:32,color:"downvote"===n?"white":"#343244"})})]})]}),"upvote"===n&&(0,s.jsx)("p",{className:"text-[14px] text-center mt-[16px] text-[#5A5878] leading-[24px]",children:"Glad you found it helpful"}),"downvote"===n&&(0,s.jsx)("p",{className:"text-[14px] text-center mt-[16px] text-[#5A5878] leading-[24px]",children:"Sorry we will try to improve next time"})]})},b=l(11163),f=l(93866),g=l(65885);function CopyTextModal(e){let{isCopyModalOpen:t,setIsCopyModalOpen:l,jdStoreId:i}=e,n=new g.Z,a=n.get("secret"),o=!!a,r=(0,b.useRouter)();return(0,s.jsx)(x.u_,{isOpen:t,setIsOpen:l,children:(0,s.jsxs)("div",{className:"flex flex-col justify-center items-center p-8 px-12 rounded-md bg-white shadow-lg relative smr:w-[90vw]",children:[(0,s.jsx)(f.X,{size:20,color:"#050505",className:"absolute top-3 right-3 cursor-pointer",onClick:()=>l(!1)}),(0,s.jsx)("p",{className:"font-semibold text-[18px] text-center smr:text-[16px] text-[#343244] mb-4",children:"Job Description Copied! \uD83D\uDCCB"}),(0,s.jsx)("div",{className:"flex items-center justify-center",children:(0,s.jsx)(x.zx,{className:"h-[50px] text-[14px] font-bold leading-[25.6px] text-[#FFFFFF] flex items-center justify-center",onClick:()=>{o?r.push(`/process/publish?jd_id=${i}&utm_source=public_auto_jd`):r.push(`/getstarted/register/publish?jd_id=${i}&utm_source=public_auto_jd`)},children:"Post this Job for Free on Expertia AI"})})]})})}var ShowJdTemplatePublic=e=>{var t,l,n,a,o,r,p,c,v,j;
1let{jobDescriptionDetails:f,jdStoreId:w}=e,[y,N]=(0,d.useState)(!1),[k,C]=(0,d.useState)(!1),[_,A]=(0,d.useState)(!1),S=(0,b.useRouter)(),F=new g.Z,D=F.get("secret"),T=!!D,[E,I]=(0,d.useState)(!1),[B,R]=(0,d.useState)(f),[O,$]=(0,d.useState)(f),onChangeTextArea=(e,t)=>{if("responsibilities"===t||"qualifications"===t||"skills"===t){let l=e.split("\n"),s=[],i="responsibilities"===t?"jobResponsibility":"qualifications"===t?"jobQualification":"jobSkill";l.forEach(e=>{s.push({[i]:e})}),R(e=>({...e,[t]:s})),A(e=>({...e,["edited_"+t]:s}))}else R(l=>({...l,[t]:e})),A(l=>({...l,["edited_"+t]:e}))},saveEditMode=async()=>{_&&k&&(await fetch(`${i.l6}customapi/jd-generator/jd-edit`,{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({editedData:_,jdStoreId:w})}),$(()=>B))};return(0,s.jsxs)("div",{children:[(0,s.jsx)(CopyTextModal,{isCopyModalOpen:E,setIsCopyModalOpen:I,jdStoreId:w}),(0,s.jsxs)("div",{className:"mt-[28px] bg-[#F5F7F9] w-[full] py-[48px] smr:py-[48px] mdr:py-[48px] lgr:py-[48px] xlr:py-[48px] 2xlr:py-[48px] px-[16px] smr:px-[16px] mdr:px-[74px] lgr:px-[74px] xlr:px-[74px] 2xlr:px-[74px] font-inter leading-[38.4px] text-[#4D4B5C] rounded-md",children:[(0,s.jsxs)("div",{className:"flex justify-between items-center flex-wrap gap-[10px] border-b border-solid pb-[22px] mb-[17px] smr:mb-[17px] mdr:mb-[22px] lgr:mb-[22px] xlr:mb-[22px] 2xlr:mb-[22px]",children:[(0,s.jsx)("div",{className:"flex items-center",children:(0,s.jsx)("p",{className:"font-extrabold text-[20px] smr:text-[20px] mdr:text-[24px] lgr:text-[24px] xlr:text-[24px] 2xlr:text-[24px]",children:(null==B?void 0:B.jobTitle)&&(null==B?void 0:B.jobTitle.split(" ").map(function(e){return e.charAt(0).toUpperCase()+(null==e?void 0:e.slice(1))}).join(" "))})}),(0,s.jsxs)("div",{className:"flex gap-[10px]",children:[k&&(0,s.jsx)("div",{className:`flex items-center ${k?"justify-center":""} smr:justify-center p-[8px] bg-[white] border border-solid border-[#444356] rounded-[4px] w-[50px] h-[36px] smr:w-[50px] mdr:w-[72px] lgr:w-[72px] xlr:w-[72px] 2xlr:w-[72px] smr:h-[36px] mdr:h-[38px] lgr:h-[38px] xlr:h-[38px] 2xlr:h-[38px] cursor-pointer select-none`,onClick:()=>{C(e=>!e),R(()=>O)},children:(0,s.jsx)("p",{className:"text-[12px] smr:text-[12px] mdr:text-[14px] lgr:text-[14px] xlr:text-[14px] 2xlr:text-[14px] text-[#444356]",children:"Discard"})}),(0,s.jsx)("div",{className:`flex items-center ${k?"justify-center w-[50px] smr:w-[50px]":"w-[36px] smr:w-[36pxpx]"} smr:justify-center p-[8px] bg-[white] border border-solid border-[#444356] rounded-[4px] h-[36px] mdr:w-[72px] lgr:w-[72px] xlr:w-[72px] 2xlr:w-[72px] smr:h-[36px] mdr:h-[38px] lgr:h-[38px] xlr:h-[38px] 2xlr:h-[38px] cursor-pointer select-none`,onClick:()=>{C(e=>!e),saveEditMode()},children:k?(0,s.jsx)("p",{className:"text-[12px] smr:text-[12px] mdr:text-[14px] lgr:text-[14px] xlr:text-[14px] 2xlr:text-[14px] text-[#444356]",children:"Save"}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{className:"text-[14px] text-[#444356] hidden smr:hidden mdr:block lgr:block xlr:block 2xlr:block",children:"Edit"}),(0,s.jsx)("div",{className:"h-[20px] w-[20px]",children:(0,s.jsx)(m.k,{color:"#444356",size:"20px",weight:"bold",className:"mdr:ml-[10px] lgr:ml-[10px] xlr:ml-[10px] 2xlr:ml-[10px]"})})]})}),!k&&(0,s.jsxs)("div",{className:"flex items-center smr:justify-center p-[8px] bg-[white] border border-solid border-[#444356] rounded-[4px] w-[36px] h-[36px] smr:w-[36px] mdr:w-[82px] lgr:w-[82px] xlr:w-[82px] 2xlr:w-[82px] smr:h-[36px] mdr:h-[38px] lgr:h-[38px] xlr:h-[38px] 2xlr:h-[38px] cursor-pointer select-none relative",onClick:()=>{let e=document.getElementById("job-description-data"),t=e.outerHTML;!function(e){let listener=function(t){t.preventDefault(),t.clipboardData.setData("text/html",e),t.clipboardData.setData("text/plain",e)};document.addEventListener("copy",listener),document.execCommand("copy"),document.removeEventListener("copy",listener)}(t),N(!0),setTimeout(()=>{N(!1)},3e3),I(!0)},children:[(0,s.jsx)("p",{className:`${y?"text-[12px]":"text-[14px]"} w-[50px] text-[#444356] hidden smr:hidden mdr:block lgr:block xlr:block 2xlr:block`,children:y?"Copied!":"Copy"}),(0,s.jsx)("div",{className:"h-[20px] w-[20px]",children:(0,s.jsx)(u.C,{color:"#444356",size:"20px",weight:"fill",className:""})})]})]})]}),k?(0,s.jsxs)("div",{children:[(null==B?void 0:null===(t=B.aboutTheCompany)||void 0===t?void 0:t.length)>0&&(0,s.jsxs)("div",{className:"",children:[(0,s.jsx)("h1",{className:"text-[16px] mb-0",children:"About The Company"}),(0,s.jsx)("textarea",{className:"w-full",rows:"8",value:null==B?void 0:B.aboutTheCompany,onChange:e=>{onChangeTextArea(e.target.value,"aboutTheCompany")}})]}),(null==B?void 0:null===(l=B.aboutTheRole)||void 0===l?void 0:l.length)>0&&(0,s.jsxs)("div",{className:"mt-[24px]",children:[(0,s.jsx)("h1",{className:"text-[16px] mb-0",children:"About The Role"}),(0,s.jsx)("textarea",{className:"w-full",rows:"8",value:null==B?void 0:B.aboutTheRole,onChange:e=>{onChangeTextArea(e.target.value,"aboutTheRole")}})]}),(null==B?void 0:null===(n=B.responsibilities)||void 0===n?void 0:n.length)>0&&(0,s.jsxs)("div",{className:"mt-[24px]",children:[(0,s.jsx)("h1",{className:"text-[16px] mb-0",children:"Responsibilities"}),(0,s.jsx)("textarea",{className:"w-full",rows:"8",value:null==B?void 0:B.responsibilities.map(e=>null==e?void 0:e.jobResponsibility).join("\r\n"),onChange:e=>{onChangeTextArea(e.target.value,"responsibilities")}})]}),(null==B?void 0:null===(a=B.qualifications)||void 0===a?void 0:a.length)>0&&(0,s.jsxs)("div",{className:"mt-[24px]",children:[(0,s.jsx)("h1",{className:"text-[16px] mb-0",children:"Qualifications"}),(0,s.jsx)("textarea",{className:"w-full",rows:"8",value:null==B?void 0:B.qualifications.map(e=>null==e?void 0:e.jobQualification).join("\r\n"),onChange:e=>{onChangeTextArea(e.target.value,"qualifications")}})]}),(null==B?void 0:null===(o=B.skills)||void 0===o?void 0:o.length)>0&&(0,s.jsxs)("div",{className:"mt-[24px]",children:[(0,s.jsx)("h1",{className:"text-[16px] mb-0",children:"Skills"}),(0,s.jsx)("textarea",{className:"w-full",rows:"8",value:null==B?void 0:B.skills.map(e=>null==e?void 0:e.jobSkill).join("\r\n"),onChange:e=>{onChangeTextArea(e.target.value,"skills")}})]})]}):(0,s.jsxs)("div",{className:"mb-0",id:"job-description-data",children:[(null==B?void 0:null===(r=B.aboutTheCompany)||void 0===r?void 0:r.length)>0&&(0,s.jsxs)("div",{className:"",children:[(0,s.jsx)("h1",{className:"text-[16px] mb-0",children:"About the Company"}),(0,s.jsx)("p",{className:"text-[14px] mt-[9px]",children:null==B?void 0:B.aboutTheCompany})]}),(null==B?void 0:null===(p=B.aboutTheRole)||void 0===p?void 0:p.length)>0&&(0,s.jsxs)("div",{className:"mt-[24px]",children:[(0,s.jsx)("h1",{className:"text-[16px] mb-0",children:"About The Role"}),(0,s.jsx)("p",{className:"text-[14px] mt-[9px]",children:null==B?void 0:B.aboutTheRole})]}),(null==B?void 0:null===(c=B.responsibilities)||void 0===c?void 0:c.length)>0&&(0,s.jsxs)("div",{className:"mt-[24px]",children:[(0,s.jsx)("h1",{className:"text-[16px] mb-0",children:"Responsibilities"}),(0,s.jsx)("ul",{className:"space-y-[10px] text-[14px]",children:null==B?void 0:B.responsibilities.map(e=>(0,s.jsx)("li",{className:"leading-[26px]",children:null==e?void 0:e.jobResponsibility}))})]}),(null==B?void 0:null===(v=B.qualifications)||void 0===v?void 0:v.length)>0&&(0,s.jsxs)("div",{className:"mt-[24px]",children:[(0,s.jsx)("h1",{className:"text-[16px] mb-0",children:"Qualifications"}),(0,s.jsx)("ul",{className:"space-y-[10px] text-[14px]",children:null==B?void 0:B.qualifications.map(e=>(0,s.jsx)("li",{className:"leading-[26px]",children:null==e?void 0:e.jobQualification}))})]}),(null==B?void 0:null===(j=B.skills)||void 0===j?void 0:j.length)>0&&(0,s.jsxs)("div",{className:"mt-[24px]",children:[(0,s.jsx)("h1",{className:"text-[16px] mb-0",children:"Skills"}),(0,s.jsx)("ul",{className:"space-y-[10px] text-[14px]",children:null==B?void 0:B.skills.map(e=>(0,s.jsx)("li",{className:"leading-[26px]",children:null==e?void 0:e.jobSkill}))})]})]}),(0,s.jsx)("div",{className:"w-full border-b border-solid mt-[25px] mb-[25px]"}),(0,s.jsx)("div",{className:"flex justify-center",children:(0,s.jsx)(x.zx,{className:"h-[50px] text-[14px] font-bold leading-[25.6px] text-[#FFFFFF] flex items-center justify-center",onClick:()=>{T?S.push(`/process/publish?jd_id=${w}&utm_source=public_auto_jd`):S.push(`/getstarted/register/publish?jd_id=${w}&utm_source=public_auto_jd`)},children:"Post this Job for Free on Expertia AI"})})]}),(0,s.jsx)("div",{className:"flex items-center justify-between flex-wrap mt-[12px] mb-[32px] p-[2px]",children:(0,s.jsxs)("div",{className:"flex gap-[5px]",children:[(0,s.jsx)("div",{className:"h-[22px] w-[22px] smr:h-[22px] mdr:h-[20px] lgr:h-[20px] xlr:h-[20px] 2xlr:h-[20px] smr:w-[22px] mdr:w-[20px] lgr:w-[20px] xlr:w-[20px] 2xlr:w-[20px]",children:(0,s.jsx)(h.k,{color:"#6B6B74",size:"16px"})}),(0,s.jsx)("p",{className:"text-[#6B6B74] text-[12px] font-medium",children:"This is an AI generated job description, please make sure to go through it before use"})]})}),(0,s.jsx)("div",{className:"mb-[38px] smr:mb-[38px] mdr:mb-[68px] lgr:mb-[68px] xlr:mb-[68px] 2xlr:mb-[68px]",children:(0,s.jsx)(blogs_FeedbackForJd,{jdStoreId:w})})]})},w=l(9885),Sections_AutoJdFaq=e=>{let{}=e;return(0,s.jsxs)("div",{className:"w-full font-inter pb-[30px] mt-[18px] smr:mt-[18px] mdr:mt-[48px] lgr:mt-[48px] xlr:mt-[48px] 2xlr:mt-[48px] ",children:[(0,s.jsx)("div",{className:"w-full border border-solid mt-[0px]"}),(0,s.jsxs)("div",{className:"mt-[38px] smr:mt-[38px] mdr:mt-[68px] lgr:mt-[68px] xlr:mt-[68px] 2xlr:mt-[68px]",children:[(0,s.jsxs)("div",{className:"",children:[(0,s.jsx)("p",{className:"font-semibold text-[#343244] text-[22px] mb-[10px]",children:"What is the Job Description Generator tool from Expertia AI?"}),(0,s.jsxs)("div",{className:"text-[14px] text-[#6B6B74]",children:[(0,s.jsx)("p",{children:"Having a good job description can help attract the right candidates to a job. It's hard and time-consuming to write a comprehensive jd even for the most seasoned professionals, but it's super important."}),(0,s.jsx)("p",{className:"mt-[15px]",children:"We have created a simple free tool to give you a high-quality job-description for any role. We also allow you to make edits to the generated jd and copy or download it. Save time and effort by using our job description generator to create professional and comprehensive job postings that stand out to job seekers in a competitive job market."})]})]}),(0,s.jsxs)("div",{className:"pt-[30px]",children:[(0,s.jsx)("p",{className:"font-semibold text-[22px] text-[#343244] mb-[15px]",children:"What are the Job Description components?"}),(0,s.jsx)("p",{className:"font-semibold text-[16px] text-[#343244] mb-[5px]",children:"About The Role"}),(0,s.jsx)("p",{className:"text-[14px] text-[#6B6B74] mb-[15px]",children:"This section provides a high level overview of the role with a concise summary in a few sentences. It provides a basic understanding of the role with a âbirdâs eye viewâ of the role."}),(0,s.jsx)("p",{className:"font-semibold text-[16px] text-[#343244] mb-[5px]",children:"Responsibilities"}),(0,s.jsx)("p",{className:"text-[14px] text-[#6B6B74] mb-[15px]",children:"This section refers to the responsibilities assigned to the job role. In a few key points, they describe the fundamental nature of the job where the majority of the employeeâs time is spent."}),(0,s.jsx)("p",{className:"font-semibold text-[16px] text-[#343244] mb-[5px]",children:"Qualifications"}),(0,s.jsx)("p",{className:"text-[14px] text-[#6B6B74] mb-[15px]",children:"This section lists the required level of job knowledge such as education, experience, knowledge, and abilities required to do the job. Here, there is an emphasis on the âminimumâ level of qualifications for an individual to be productive and successful in this role."}),(0,s.jsx)("p",{className:"font-semibold text-[16px] text-[#343244] mb-[5px]",children:"Skills"}),(0,s.jsx)("p",{className:"text-[14px] text-[#6B6B74] mb-[15px]",children:"This section lists the specific skills required from the candidate to contribute to the day-to-day activities and be successful in the role."})]}),(0,s.jsxs)("div",{className:"pt-[30px]",children:[(0,s.jsx)("p",{className:"font-semibold text-[22px] mb-[10px] text-[#343244]",children:"How does the tool work?"}),(0,s.jsx)("p",{className:"text-[14px] mb-[10px] text-[#6B6B74]",children:"The tool leverages generative AI to create job descriptions. The job title is a mandatory field, you can enter it and click on generate. The other optional fields are industry and experience level which help create a more personalized job description."})]}),(0,s.jsxs)("div",{className:"pt-[30px]",children:[(0,s.jsx)("p",{className:"font-semibold text-[22px] mb-[10px] text-[#343244]",children:"Know more about Expertia AI"}),(0,s.jsxs)("p",{className:"text-[14px] mb-[10px] text-[#6B6B74]",children:["Expertia AI helps companies source large number of candidates owing to its integrations with many job boards. The intelligence in the platform helps identify top candidates, conduct assessments, expert interviews, and more."," ",(0,s.jsx)("a",{className:"text-[#6c5de7] hover:text-[#6c5de7]",href:"https://www.expertia.ai/getstarted",target:"_blank",children:"Post a job"})," ","and get started for free."]})]})]})]})},y=l(9465),N=l(37285),Sections_ShowJdTemplatePrivate=e=>{var t,l,n,a,o,r,p,c,v;
1let{jobDescriptionDetails:j,jdStoreId:f}=e,[w,y]=(0,d.useState)(!1),[k,C]=(0,d.useState)(!1),[_,A]=(0,d.useState)(!1),S=(0,b.useRouter)(),F=new g.Z,D=F.get("secret"),T=!!D,{data:E}=(0,N.Nf)({}),[I,B]=(0,d.useState)(!1),[R,O]=(0,d.useState)(j),[$,J]=(0,d.useState)(j),onChangeTextArea=(e,t)=>{if("rolesAndResponsibilities"===t||"qualificationsAndSkills"===t){let l=e.split("\n"),s=[],i="rolesAndResponsibilities"===t?"jobRoleAndResponsibilitiy":"qualificationsAndSkills"===t?"jobQualificationAndSkill":"";l.forEach(e=>{s.push({[i]:e})}),O(e=>({...e,[t]:s})),A(e=>({...e,["edited_"+t]:s}))}else O(l=>({...l,[t]:e})),A(l=>({...l,["edited_"+t]:e}))},saveEditMode=async()=>{_&&k&&(await fetch(`${i.l6}customapi/jd-generator/jd-edit`,{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({editedData:_,jdStoreId:f})}),J(()=>R))};return(0,s.jsxs)("div",{children:[(0,s.jsx)(CopyTextModal,{isCopyModalOpen:I,setIsCopyModalOpen:B,jdStoreId:f}),(0,s.jsxs)("div",{className:"mt-[28px] bg-[#F5F7F9] w-[full] py-[48px] sm:py-[48px] md:py-[48px] lg:py-[48px] xl:py-[48px] 2xl:py-[48px] px-[16px] sm:px-[16px] md:px-[74px] lg:px-[74px] xl:px-[74px] 2xl:px-[74px] font-inter leading-[38.4px] text-[#4D4B5C] rounded-md",children:[(0,s.jsxs)("div",{className:"flex justify-between items-center flex-wrap gap-[10px] border-b border-solid pb-[22px] mb-[17px] sm:mb-[17px] md:mb-[22px] lg:mb-[22px] xl:mb-[22px] 2xl:mb-[22px]",children:[(0,s.jsxs)("div",{className:"flex items-center",children:[(null==E?void 0:null===(t=E.logo)||void 0===t?void 0:t.length)>0&&(0,s.jsx)("img",{src:i.y5+"/"+(null==E?void 0:E.logo),className:"h-[38px] w-[38px] mr-[12px] rounded-full",onError:e=>{e.target.onerror=null,e.target.classList.add("hidden")}}),(0,s.jsx)("p",{className:"font-extrabold text-[20px] sm:text-[20px] md:text-[24px] lg:text-[24px] xl:text-[24px] 2xl:text-[24px]",children:(null==R?void 0:R.jobTitle)&&(null==R?void 0:R.jobTitle.split(" ").map(function(e){return e.charAt(0).toUpperCase()+(null==e?void 0:e.slice(1))}).join(" "))})]}),(0,s.jsxs)("div",{className:"flex gap-[10px]",children:[k&&(0,s.jsx)("div",{className:`flex items-center ${k?"justify-center":""} sm:justify-center p-[8px] bg-[white] border border-solid border-[#444356] rounded-[4px] w-[50px] h-[36px] sm:w-[50px] md:w-[72px] lg:w-[72px] xl:w-[72px] 2xl:w-[72px] sm:h-[36px] md:h-[38px] lg:h-[38px] xl:h-[38px] 2xl:h-[38px] cursor-pointer select-none`,onClick:()=>{C(e=>!e),O(()=>$)},children:(0,s.jsx)("p",{className:"text-[12px] sm:text-[12px] md:text-[14px] lg:text-[14px] xl:text-[14px] 2xl:text-[14px] text-[#444356]",children:"Discard"})}),(0,s.jsx)("div",{className:`flex items-center ${k?"justify-center w-[50px] sm:w-[50px]":"w-[36px] sm:w-[36pxpx]"} sm:justify-center p-[8px] bg-[white] border border-solid border-[#444356] rounded-[4px] h-[36px] md:w-[72px] lg:w-[72px] xl:w-[72px] 2xl:w-[72px] sm:h-[36px] md:h-[38px] lg:h-[38px] xl:h-[38px] 2xl:h-[38px] cursor-pointer select-none`,onClick:()=>{C(e=>!e),saveEditMode()},children:k?(0,s.jsx)("p",{className:"text-[12px] sm:text-[12px] md:text-[14px] lg:text-[14px] xl:text-[14px] 2xl:text-[14px] text-[#444356]",children:"Save"}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{className:"text-[14px] text-[#444356] hidden sm:hidden md:block lg:block xl:block 2xl:block",children:"Edit"}),(0,s.jsx)("div",{className:"h-[20px] w-[20px]",children:(0,s.jsx)(m.k,{color:"#444356",size:"20px",weight:"bold",className:"md:ml-[10px] lg:ml-[10px] xl:ml-[10px] 2xl:ml-[10px]"})})]})}),!k&&(0,s.jsxs)("div",{className:"flex items-center sm:justify-center p-[8px] bg-[white] border border-solid border-[#444356] rounded-[4px] w-[36px] h-[36px] sm:w-[36px] md:w-[82px] lg:w-[82px] xl:w-[82px] 2xl:w-[82px] sm:h-[36px] md:h-[38px] lg:h-[38px] xl:h-[38px] 2xl:h-[38px] cursor-pointer select-none relative",onClick:()=>{let e=document.getElementById("job-description-data"),t=e.outerHTML;!function(e){let listener=function(t){t.preventDefault(),t.clipboardData.setData("text/html",e),t.clipboardData.setData("text/plain",e)};document.addEventListener("copy",listener),document.execCommand("copy"),document.removeEventListener("copy",listener)}(t),y(!0),setTimeout(()=>{y(!1)},3e3),B(!0)},children:[(0,s.jsx)("p",{className:`${w?"text-[12px]":"text-[14px]"} w-[50px] text-[#444356] hidden sm:hidden md:block lg:block xl:block 2xl:block`,children:w?"Copied!":"Copy"}),(0,s.jsx)("div",{className:"h-[20px] w-[20px]",children:(0,s.jsx)(u.C,{color:"#444356",size:"20px",weight:"fill",className:""})})]})]})]}),k?(0,s.jsxs)("div",{children:[(null==R?void 0:null===(l=R.companyOverview)||void 0===l?void 0:l.length)>0&&(0,s.jsxs)("div",{className:"",children:[(0,s.jsx)("h1",{className:"text-[16px] mb-0",children:"Company Overview"}),(0,s.jsx)("textarea",{className:"w-full",rows:"8",value:null==R?void 0:R.companyOverview,onChange:e=>{onChangeTextArea(e.target.value,"companyOverview")}})]}),(null==R?void 0:null===(n=R.jobOverview)||void 0===n?void 0:n.length)>0&&(0,s.jsxs)("div",{className:"mt-[24px]",children:[(0,s.jsx)("h1",{className:"text-[16px] mb-0",children:"Job Overview"}),(0,s.jsx)("textarea",{className:"w-full",rows:"8",value:null==R?void 0:R.jobOverview,onChange:e=>{onChangeTextArea(e.target.value,"jobOverview")}})]}),(null==R?void 0:null===(a=R.rolesAndResponsibilities)||void 0===a?void 0:a.length)>0&&(0,s.jsxs)("div",{className:"mt-[24px]",children:[(0,s.jsx)("h1",{className:"text-[16px] mb-0",children:"Roles and Responsibilities"}),(0,s.jsx)("textarea",{className:"w-full",rows:"8",value:null==R?void 0:R.rolesAndResponsibilities.map(e=>null==e?void 0:e.jobRoleAndResponsibilitiy).join("\r\n"),onChange:e=>{onChangeTextArea(e.target.value,"rolesAndResponsibilities")}})]}),(null==R?void 0:null===(o=R.qualificationsAndSkills)||void 0===o?void 0:o.length)>0&&(0,s.jsxs)("div",{className:"mt-[24px]",children:[(0,s.jsx)("h1",{className:"text-[16px] mb-0",children:"Qualifications and
1Skills"}),(0,s.jsx)("textarea",{className:"w-full",rows:"8",value:null==R?void 0:R.qualificationsAndSkills.map(e=>null==e?void 0:e.jobQualificationAndSkill).join("\r\n"),onChange:e=>{onChangeTextArea(e.target.value,"qualificationsAndSkills")}})]})]}):(0,s.jsxs)("div",{className:"mb-0",id:"job-description-data",children:[(null==R?void 0:null===(r=R.companyOverview)||void 0===r?void 0:r.length)>0&&(0,s.jsxs)("div",{className:"",children:[(0,s.jsx)("h1",{className:"text-[16px] mb-0",children:"Company Overview"}),(0,s.jsx)("p",{className:"text-[14px] mt-[9px]",children:null==R?void 0:R.companyOverview})]}),(null==R?void 0:null===(p=R.jobOverview)||void 0===p?void 0:p.length)>0&&(0,s.jsxs)("div",{className:"mt-[24px]",children:[(0,s.jsx)("h1",{className:"text-[16px] mb-0",children:"Job Overview"}),(0,s.jsx)("p",{className:"text-[14px] mt-[9px]",children:null==R?void 0:R.jobOverview})]}),(null==R?void 0:null===(c=R.rolesAndResponsibilities)||void 0===c?void 0:c.length)>0&&(0,s.jsxs)("div",{className:"mt-[24px]",children:[(0,s.jsx)("h1",{className:"text-[16px] mb-0",children:"Roles and Responsibilities"}),(0,s.jsx)("ul",{className:"space-y-[10px] text-[14px]",children:null==R?void 0:R.rolesAndResponsibilities.map(e=>(0,s.jsx)("li",{className:"leading-[26px]",children:null==e?void 0:e.jobRoleAndResponsibilitiy}))})]}),(null==R?void 0:null===(v=R.qualificationsAndSkills)||void 0===v?void 0:v.length)>0&&(0,s.jsxs)("div",{className:"mt-[24px]",children:[(0,s.jsx)("h1",{className:"text-[16px] mb-0",children:"Qualifications and Skills"}),(0,s.jsx)("ul",{className:"space-y-[10px] text-[14px]",children:null==R?void 0:R.qualificationsAndSkills.map(e=>(0,s.jsx)("li",{className:"leading-[26px]",children:null==e?void 0:e.jobQualificationAndSkill}))})]})]}),(0,s.jsx)("div",{className:"w-full border-b border-solid mt-[25px] mb-[25px]"}),(0,s.jsx)("div",{className:"flex justify-center",children:(0,s.jsx)(x.zx,{className:"h-[50px] text-[14px] font-bold leading-[25.6px] text-[#FFFFFF] flex items-center justify-center",onClick:()=>{T?S.push(`/process/publish?jd_id=${f}&utm_source=public_auto_jd`):S.push(`/getstarted/register/publish?jd_id=${f}&utm_source=public_auto_jd`)},children:"Post this Job for Free on Expertia AI"})})]}),(0,s.jsx)("div",{className:"flex items-center justify-between flex-wrap mt-[12px] mb-[32px] p-[2px]",children:(0,s.jsxs)("div",{className:"flex gap-[5px]",children:[(0,s.jsx)("div",{className:"h-[22px] w-[22px] sm:h-[22px] md:h-[20px] lg:h-[20px] xl:h-[20px] 2xl:h-[20px] sm:w-[22px] md:w-[20px] lg:w-[20px] xl:w-[20px] 2xl:w-[20px]",children:(0,s.jsx)(h.k,{color:"#6B6B74",size:"16px"})}),(0,s.jsx)("p",{className:"text-[#6B6B74] text-[12px] font-medium",children:"This is an AI generated job description, please make sure to go through it before use"})]})}),(0,s.jsx)("div",{className:"mb-[38px] sm:mb-[38px] md:mb-[68px] lg:mb-[68px] xl:mb-[68px] 2xl:mb-[68px]",children:(0,s.jsx)(blogs_FeedbackForJd,{jdStoreId:f})})]})},k=l(84143),C=l(70522),_=l(79464),A=l(58169);function capitalize(e){return e.charAt(0).toUpperCase()+(null==e?void 0:e.slice(1))}var S=!0,job_description_generator=e=>{var t,l,n;let{categoriesArr:o}=e,[p,{data:m,isLoading:u}]=(0,k.tl)(),[h,{data:v,isLoading:j,error:f}]=(0,c.rm)(),[S,F]=(0,d.useState)({}),[D,T]=(0,d.useState)({}),[E,I]=(0,d.useState)(!1),[B,R]=(0,d.useState)(!1),[O,$]=(0,d.useState)(""),[J,q]=(0,d.useState)(!1),[z,L]=(0,d.useState)([]),[P,M]=(0,d.useState)([]);(0,b.useRouter)();let{data:G}=(0,N.Nf)({}),Q=new g.Z,W=Q.get("secret")||!1,Z=!!W,onChangeFields=async(e,t)=>{F(l=>({...l,[t]:e})),"job_title"===t&&I(!1)},getData=async e=>{var t,l,s,n,a,o,r;if(e.preventDefault(),(null==S?void 0:null===(t=S.job_title)||void 0===t?void 0:t.length)>2){q(!0);let e="",t="";try{e=await new Promise((e,t)=>{turnstile.ready(function(){turnstile.render("#example-container",{sitekey:"0x4AAAAAAAHRfGN6qdiKXqUI",callback:function(t){e(t)},"error-callback":t})})})}catch(e){console.error(e)}try{let e=await (0,w.preloadLocationAPI)();t=(null===(n=e.split("ip="))||void 0===n?void 0:null===(s=n[1])||void 0===s?void 0:null===(l=s.split("ts="))||void 0===l?void 0:l[0])||""}catch(e){console.log(e)}if(!J)try{let l={job_title:(null==S?void 0:S.job_title)&&(null==S?void 0:null===(r=S.job_title)||void 0===r?void 0:null===(o=r.split(" "))||void 0===o?void 0:null===(a=o.map(capitalize))||void 0===a?void 0:a.join(" ")),token:e,ip:t};
1if(Z){l.path="private";let e=`${i.bl}v2/public/careerPageSimpleDetails/${null==G?void 0:G.org_name}`,t=await fetch(e),s=await t.json(),n=null==s?void 0:s.careerPageSimpleDetails;l.industry_type=(null==S?void 0:S.industry_type)?null==S?void 0:S.industry_type:null==n?void 0:n.industry_type,l.company_name=null==n?void 0:n.full_name,l.company_description=null==n?void 0:n.short_description,l.headquarters=null==n?void 0:n.location,l.company_size=null==n?void 0:n.employees,l.company_website=null==n?void 0:n.company_website}else l.industry_type=null==S?void 0:S.industry_type,l.path="public";(null==S?void 0:S.experience_level)&&(l.experience_level=null==S?void 0:S.experience_level),P&&(l.skills=P.toString()),(null==S?void 0:S.skills)&&(l.skills=(l.skills?l.skills:"")+","+(null==S?void 0:S.skills)),await h(l),R(()=>!1)}catch(e){console.log(e),R(()=>!0)}q(!1)}else I(!0)};(0,d.useEffect)(()=>{(null==v?void 0:v.jobDescription)&&T(null==v?void 0:v.jobDescription),(null==v?void 0:v.docId)&&$(null==v?void 0:v.docId)},[v]),(0,d.useEffect)(()=>{(null==f?void 0:f.status)===500&&R(()=>!0)},[f]);let H=(0,d.useCallback)(function(e){let t,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500;var s=this;return function(){for(var i=arguments.length,n=Array(i),a=0;a<i;a++)n[a]=arguments[a];clearTimeout(t),t=setTimeout(()=>{e.apply(s,n)},l)}}(e=>{p(e)},500),[]);return(0,d.useEffect)(()=>{if(m){var e,t;let l=[];null==m||null===(t=m.data)||void 0===t||null===(e=t.suggestions)||void 0===e||e.map(e=>{l.push({title:e.text.split(" ").map(capitalize).join(" ")})}),L(l)}else L([])},[m]),(0,s.jsxs)("div",{className:"bg-white",children:[(0,s.jsxs)(a(),{children:[(0,s.jsx)("title",{children:"Generate job description using AI"}),(0,s.jsx)("link",{rel:"canonical",href:"https://www.expertia.ai/blogs/jd-generator"}),(0,s.jsx)("meta",{property:"og:url",content:"https://www.expertia.ai/blogs/jd-generator"}),(0,s.jsx)("meta",{property:"title",content:"Generate job description using AI"}),(0,s.jsx)("meta",{name:"description",content:"Generate job description using AI and enhance your hiring journey with Expertia AI"}),(0,s.jsx)("meta",{name:"robots",content:"index, follow"}),(0,s.jsx)("meta",{name:"author",content:"ExpertiaJobs"}),(0,s.jsx)("meta",{property:"og:title",content:"Generate job description using AI"}),(0,s.jsx)("meta",{property:"og:description",content:"Generate job description using AI and enhance your hiring journey with Expertia AI"}),(0,s.jsx)("meta",{property:"og:image",content:`${i.jW}/expertia-open-graph-image.png`}),(0,s.jsx)("meta",{property:"og:image:type",content:"image/png"}),(0,s.jsx)("meta",{property:"og:image:width",content:"1200"}),(0,s.jsx)("meta",{property:"og:image:height",content:"630"}),(0,s.jsx)("meta",{property:"og:site_name",content:"expertia.ai"}),(0,s.jsx)("meta",{"http-equiv":"content-language",content:"en-in"})]}),(0,s.jsx)(y.Z,{categoriesArr:o}),(0,s.jsxs)("div",{className:"font-inter bg-white w-full",children:[(0,s.jsx)("div",{}),(0,s.jsxs)("div",{className:"w-[100%] smr:w-[100%] mdr:w-[100%] smr:px-[16px] px-[16px] mdr:px-[16px] lgr:px-[16px] xlr:px-[0px] 2xlr:px-[0px] lgr:w-[100%] xlr:w-[85%] 2xlr:w-[70%] lgr:max-w-[1080px] xlr:max-w-[1080px] 2xlr:max-w-[1080px] m-auto mb-[50px] min-h-[90vh] bg-white pt-[20px]",children:[(0,s.jsxs)("div",{className:"mt-[32px] smr:mt-[32px] mdr:mt-[50px] lgr:mt-[50px] xlr:mt-[50px] 2xlr:mt-[50px] mb-[32px] smr:mb-[32px] mdr:mb-[81px] lgr:mb-[81px] xlr:mb-[81px] 2xlr:mb-[81px]",children:[(0,s.jsx)("p",{className:"text-[24px] text-[#343244] leading-[38.4px] font-bold text-center mb-[10px]",children:"AI-assisted Job Description Generator"}),(0,s.jsx)("p",{className:"text-[14px] text-[#6B6B74] leading-[22.4px] font-medium text-center",children:"Create the perfect job description for any position in seconds"})]}),(0,s.jsx)("div",{id:"example-container"}),(0,s.jsx)("form",{onSubmit:getData,children:(0,s.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-1 md:grid-cols-3 lg:grid-cols-3 xl:grid-cols-3 2xl:grid-cols-3 gap-[20px]",children:[(0,s.jsxs)("div",{class:"relative",children:[(0,s.jsx)("input",{type:"text",id:"job_title",className:"w-full h-[60px] font-normal pl-[20px] text-[16px] bg-[#FDFDFF] focus:border-[#6D5DE7] outline-none border-solid border-[1px] border-[#D9DEE2] rounded-sm peer pt-[20px]",placeholder:" ",onCh
1ange:e=>{onChangeFields(e.target.value,"job_title"),H(e.target.value)},value:(null==S?void 0:S.job_title)?null==S?void 0:S.job_title:""}),(0,s.jsx)("label",{for:"job_title",className:"absolute font-medium text-[#8C8AB7] text-[12px] duration-300 transform -translate-y-5 sm:-translate-y-5 md:-translate-y-5 lg:-translate-y-5 xl:-translate-y-4 2xl:-translate-y-4 scale-75 top-5 z-[1] left-[20px] peer-placeholder-shown:scale-100 peer-placeholder-shown:translate-y-1 sm:peer-placeholder-shown:translate-y-1 md:peer-placeholder-shown:translate-y-1 lg:peer-placeholder-shown:translate-y-1 xl:peer-placeholder-shown:translate-y-0 2xl:peer-placeholder-shown:translate-y-0 peer-placeholder-shown:text-[14px] peer-focus:scale-75 peer-focus:-translate-y-5 sm:peer-focus:-translate-y-5 md:peer-focus:-translate-y-5 lg:peer-focus:-translate-y-5 xl:peer-focus:-translate-y-4 2xl:peer-focus:-translate-y-4 peer-focus:text-[12px] select-none cursor-text",children:"Job Title"}),u&&(0,s.jsx)("div",{className:"absolute right-[10px] top-[30%]",children:(0,s.jsx)(x.CE,{})}),(null==z?void 0:z.length)>0&&(0,s.jsx)("div",{className:"relative",children:(0,s.jsx)(x.EP,{options:z,onValueChange:async e=>{onChangeFields(e.title,"job_title"),L([])}})})]}),(0,s.jsx)(CustomInput,{id:"industry_type",placeholder:"Industry Type (Optional)",onChange:(e,t)=>
1{onChangeFields(e,t)},value:(null==S?void 0:S.industry_type)?null==S?void 0:S.industry_type:""}),(0,s.jsxs)("div",{children:[(0,s.jsx)(CustomDropDown,{className:" h-[60px] w-full justify-between whitespace-nowrap rounded-md",className2:"w-full cursor-pointer",clearData:null==S||!S.experience_level,options:[{value:"Fresher: Less than 1 year",label:"Fresher: Less than 1 year"},{value:"Junior: 1 to 3 years",label:"Junior: 1 to 3 years"},{value:"Mid-Level: 4 to 6 years",label:"Mid-Level: 4 to 6 years"},{value:"Senior: 7 to 10 years",label:"Senior: 7 to 10 years"},{value:"Executive: More than 10 years",label:"Executive: More than 10 years"}],onValueChange:e=>{F(t=>({...t,experience_level:e.value}))},isSearchable:!0,children:"Experience (Optional)"}),(null==D?void 0:D.jobTitle)&&!E&&(0,s.jsx)("p",{className:"text-[#6D5DE7] text-[14px] font-semibold font-inter leading-[28px] left-0 mt-[8px] cursor-pointer inline sm:inline md:hidden lg:hidden xl:hidden 2xl:hidden pl-[2px]",onClick:()=>{F(()=>{}),T(()=>{})},children:"Generate another Job Description"})]}),(0,s.jsx)("div",{className:"col-span-1 sm:col-span-1 md:col-span-2 lg:col-span-2 xl:col-span-2 2xl:col-span-2",children:(0,s.jsx)(CustomInput,{id:"skills",placeholder:"Skill 1, Skill 2... (Optional)",className:"",onChange:(e,t)=>
1{onChangeFields(e,t)},value:(null==S?void 0:S.skills)?null==S?void 0:S.skills:""})}),(0,s.jsxs)(x.zx,{className:"h-[60px] text-[16px] font-bold leading-[25.6px] text-[#FFFFFF] flex items-center justify-center gap-[12px]",onClick:e=>{getData(e)},disabled:J,type:"submit",children:[(0,s.jsx)("div",{className:"w-[21px] h-[20.28px] relative",children:(0,s.jsx)(r(),{src:"/3stars.svg",alt:"3 stars icon",fill:!0,sizes:"100vw"})})," ",J?"Generating":(null==D?void 0:D.jobTitle)&&(null==v?void 0:null===(t=v.errResponce)||void 0===t?void 0:t.error)!==1?"Regenerate":"Generate"," ",J&&(0,s.jsx)(x.CE,{})]})]})}),(null==D?void 0:D.jobTitle)&&!E&&(0,s.jsx)("p",{className:"text-[#6D5DE7] text-[14px] font-semibold font-inter leading-[28px] left-0 mt-[8px] cursor-pointer hidden smr:hidden mdr:inline lgr:inline xlr:inline 2xlr:inline pl-[2px]",onClick:()=>{F(()=>{}),T(()=>{})},children:"Generate another Job Description"}),(0,s.jsxs)("div",{className:"bg-[#F5F7F9] select-none rounded-md transition-all",children:[" ",(0,s.jsx)("div",{className:`m-auto mt-[28px] select-none pointer-events-none transition-all duration-700 ${J?"h-[300px]":"h-0"}`,children:(0,s.jsx)(_.Z,{options:{loop:!0,autoplay:!0,animationData:A}})})]}),J?(0,s.jsx)("div",{}):(0,s.jsx)("div",{children:B?(0,s.jsx)("div",{className:"h-[500px] bg-[#F5F7F9] mt-[28px] flex justify-center items-center",children:(0,s.jsxs)("div",{className:"flex flex-col justify-center items-center max-w-[400px]",children:[(0,s.jsx)("img",{className:"h-[128px] w-[211px]",src:"/error-show.svg"}),(0,s.jsx)("p",{className:"font-bold text-[24px] text-[#5A5878] text-center mt-[32px]",children:"Something Went Wrong Please Generate again?"})]})}):(null==v?void 0:null===(l=v.errResponce)||void 0===l?void 0:l.error)===1?(0,s.jsx)("div",{className:"h-[500px] bg-[#F5F7F9] mt-[28px] flex justify-center items-center",children:(0,s.jsxs)("div",{className:"flex flex-col justify-center items-center max-w-[400px]",children:[(0,s.jsx)("img",{className:"h-[128px] w-[211px]",src:"/error-show.svg"}),(0,s.jsx)("p",{className:"font-bold text-[24px] text-[#5A5878] text-center mt-[32px]",children:null==v?void 0:null===(n=v.errResponce)||void 0===n?void 0:n.message})]})}):(0,s.jsx)("div",{children:(null==D?void 0:D.jobTitle)&&(0,s.jsx)("div",{children:(null==D?void 0:D.path)==="public"?(0,s.jsx)(ShowJdTemplatePublic,{jobDescriptionDetails:D,jdStoreId:O}):(0,s.jsx)(Sections_ShowJdTemplatePrivate,{jobDescriptionDetails:D,jdStoreId:O})})})}),(0,s.jsx)(Sections_AutoJdFaq,{})]})]}),(0,s.jsx)(C.default,{})]})}}},function(e){e.O(0,[296,9972,5675,3083,9464,5015,5631,522,4143,3939,9465,6970,9774,2888,179],function(){return e(e.s=78531)}),_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.