1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="9864884e-ed20-46da-8ec1-e34158e93f70",e._sentryDebugIdIdentifier="sentry-dbid-9864884e-ed20-46da-8ec1-e34158e93f70")}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1497],{41497:function(e,t,s){s.r(t);var l=s(85893),r=s(13261),i=s(11163),a=s(67294),o=s(9473),n=s(91444),c=s(61415),d=s(18966),u=s(79194),x=s(24577),m=s(70791),p=s(10668);t.default=()=>{(0,o.I0)();let[e,t]=(0,a.useState)("account"),[s,f]=(0,a.useState)(!1),[h,y]=(0,a.useState)(!1),[b,g]=(0,a.useState)(!1),[w,j]=(0,a.useState)(!1),[v,N]=(0,a.useState)(""),[k,A]=(0,a.useState)(!1),C=(0,i.useRouter)(),S=(0,o.v9)(e=>e.dashboard.dashboardUser),z=(0,o.v9)(e=>{var t;return null===(t=e.employee.employee)||void 0===t?void 0:t.snoozedAccount}),E=(0,o.v9)(e=>{var t;return null===(t=e.employee.employee)||void 0===t?void 0:t.autoApply}),[Y,P]=(0,a.useState)(z||!1),[B,I]=(0,a.useState)(E||!1),[Z]=(0,c.KG5)(),[_]=(0,c.xdq)(),[T]=(0,c.Rpt)(),[W]=(0,c.mfz)();(0,a.useEffect)(()=>{P(z||!1)},[z]),(0,a.useEffect)(()=>{I(E||!1)},[E]),(0,a.useEffect)(()=>{N("")},[w]);let F=async()=>{if(!Y){y(!0);return}try{P(!Y),await W({variables:{input:{snoozedAccount:!Y}}}),n.Am.success("Your profile has been ".concat(Y?"unsnoozed":"snoozed"," successfully!"))}catch(e){n.Am.error("Error toggling snooze status."),console.error("Error toggling snooze status:",e)}},q=async()=>{if(B){g(!0);return}try{I(!B),await W({variables:{input:{autoApply:!B}}}),n.Am.success(B?"Smart Apply is toggled off":"Smart Apply is toggled on",{hideProgressBar:!0,autoClose:2e3})}catch(e){n.Am.error("Error toggling snooze status."),console.error("Error toggling snooze status:",e)}},D=async()=>{A(!0);let{data:e,error:t}=await _({fetchPolicy:"network-only"});if(A(!1),t){n.Am.info("Something went wrong try again later.");return}n.Am.success("Account Delisted!"),C.reload()},G=async()=>{if(0===v.length){n.Am.info("Please write your request before submitting!");return}A(!0);let{data:e,error:t}=await T({variables:{input:{content:v,userId:S._id,email:S.email,number:S.number}}});if(A(!1),t){n.Am.info("Something went wrong try again later.");return}e.newAppSupport&&(n.Am.success("Request submitted successfully",{hideProgressBar:!0}),j(!1))},R=e=>{let{checked:t,onChange:s}=e;return(0,l.jsxs)("label",{className:"relative inline-flex items-center cursor-pointer",children:[(0,l.jsx)("input",{type:"checkbox",className:"sr-only",checked:t,onChange:s}),(0,l.jsx)("div",{className:"w-11 h-5 rounded-full transition-colors duration-200 ease-in-out ".concat(t?"bg-primary":"bg-gray-200"),children:(0,l.jsx)("div",{className:"w-4 h-4 bg-white rounded-full shadow-md transform transition-transform duration-200 ease-in-out ".concat(t?"translate-x-[25px]":"translate-x-0.5"," mt-0.5")})})]})};return(0,l.jsxs)("div",{className:"flex flex-col pt-6 pb-4 w-full h-full flex-1 min-w-0",children:[(0,l.jsx)(d.default,{loading:k}),(0,l.jsx)(x.Z,{type:"employee",searchHandler:void 0,searchText:void 0}),(0,l.jsx)(m.Z,{title:"Settings",desc:"All your account related settings will be shown here"}),(0,l.jsx)(u.Z,{show:s,close:()=>f(!1),size:"w-11/12 xl:w-1/3",children:(0,l.jsxs)("div",{className:"w-full flex flex-col justify-center items-center",children:[(0,l.jsx)("p",{className:"text-sm w-full text-justify text-gray-500 font-normal pt-6 px-4 xl:whitespace-pre-line",children:(null==S?void 0:S.platformStatus)===c.wsY.Active?"Please note, by clicking proceed you will be delisted from the job section of our platform and your profile will no longer be visible to any Talent Seeker/Employer.\n\nIf you had any active interest or interviews lined up with any Talent Seeker/Employer they will be intimated about your profile delisting. You will be able to continue using our Refferal Program and Perks and Benefits section.":(0,l.jsxs)(l.Fragment,{children:["You can seek to relist yourself by initiating a chat with our support team by clicking the chat button on the bottom right corner of your screen.",(0,l.jsxs)("span",{className:"block mt-2 text-xs",children:["*","Note: on relisting (if you seek to relist before your joining date) we will be obliged to communicate about your relisting to the employer whose job offer you have accepted."]})]})}),(0,l.jsx)("div",{className:"flex flex-row justify-end gap-2 w-full p-4",children:(null==S?void 0:S.platformStatus)===c.wsY.Active?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("button",{type:"submit",className:"w-24 text-xs bg-white p-2 text-primary border border-primary grid place-items-center rounded-full cursor-pointer",onClick:()=>{f(!1)},children:"Cancel"}),(0,l.jsx)("button",{type:"submit",className:"w-24 text-xs bg-primary p-2 text-white grid place-items-center rounded-full cursor-pointer",onClick:()=>{(null==S?void 0:S.platformStatus)===c.wsY.Active&&D()},children:"Yes, Proceed"})]}):(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("button",{type:"submit",className:"w-24 text-xs bg-white p-2 text-primary border border-primary grid place-items-center rounded-full cursor-pointer",onClick:()=>{f(!1)},children:"Close"})})})]})}),(0,l.jsx)(u.Z,{show:w,close:()=>j(!1),size:"w-11/12 xl:w-1/3",children:(0,l.jsxs)("div",{className:"w-full flex flex-col justify-center items-center",children:[(0,l.jsxs)("div",{className:"w-full pt-6 px-4 ",children:[(0,l.jsx)("textarea",{className:"w-full border border-borderColor roun
1ded-lg p-2.5 text-newBlack text-xs",value:v,placeholder:"Write your request!",onChange:e=>N(e.target.value),rows:6,maxLength:250}),(0,l.jsxs)("p",{className:"text-[10px] flex justify-end w-full",children:[v.length,"/250"]})]}),(0,l.jsx)("div",{className:"flex flex-row justify-end gap-2 w-full p-4",children:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("button",{type:"submit",className:"w-24 text-xs bg-white p-2 text-primary border border-primary grid place-items-center rounded-lg cursor-pointer",onClick:()=>{j(!1)},children:"Cancel"}),(0,l.jsx)("button",{type:"submit",className:"w-24 text-xs bg-primary p-2 text-white grid place-items-center rounded-lg cursor-pointer",onClick:()=>{G()},children:"Submit"})]})})]})}),(0,l.jsx)(u.Z,{show:b,size:"md:w-2/5 w-11/12",close:()=>g(!1),children:(0,l.jsxs)("div",{className:"w-full h-full flex flex-col justify-start items-start p-5",children:[(0,l.jsx)("div",{className:"w-full flex justify-between items-center mb-5 md:mb-6",children:(0,l.jsx)("h2",{className:"text-lg md:text-xl font-bold text-newBlack",children:"Are you sure you want to turn off Smart Apply?"})}),(0,l.jsxs)("div",{className:"mb-6",children:[(0,l.jsx)("p",{className:"text-darkGray",children:" With Smart Apply on, you never miss a matching job. Employers see your application faster, which means better chances of getting hired."}),(0,l.jsx)("p",{className:"text-darkGray pt-4",children:"Turn it off and you might miss out on the right opportunities."})]}),(0,l.jsxs)("div",{className:"flex justify-end w-full gap-3 mt-4",children:[(0,l.jsx)(p.Z,{outline:!0,buttonBg:"white",onClick:()=>g(!1),text:"Cancel",textColor:"primary",paddingY:"2",paddingX:"6"}),(0,l.jsx)(p.Z,{outline:!1,buttonBg:"primary",onClick:async()=>{I(!B),await W({variables:{input:{autoApply:!B}}}),n.Am.success("Smart Apply is toggled off",{hideProgressBar:!0,autoClose:2e3}),g(!1)},text:"Yes, Proceed",textColor:"white",paddingY:"2",paddingX:"6"})]})]})}),(0,l.jsx)(u.Z,{show:h,size:"md:w-2/5 w-11/12",close:()=>y(!1),children:(0,l.jsxs)("div",{className:"w-full h-full flex flex-col justify-start items-start p-5",children:[(0,l.jsx)("div",{className:"w-full flex justify-between items-center mb-5 md:mb-6",children:(0,l.jsx)("h2",{className:"text-xl md:text-2xl font-bold text-newBlack",children:"Thinking of taking a break?"})}),(0,l.jsxs)("div",{className:"mb-6",children:[(0,l.jsx)("p",{className:"text-darkGray",children:"With our new Snooze feature, you can hide your profile from\n recruiters temporarily. But remember - while you're away, others\n are getting noticed, shortlisted, and hired. Why miss out on a\n great opportunity that could come any day?"}),(0,l.jsx)("p",{className:"text-darkGray pt-4",children:"Stay visible. Stay ahead."})]}),(0,l.jsxs)("div",{className:"flex justify-end w-full gap-3 mt-4",children:[(0,l.jsx)(p.Z,{outline:!0,buttonBg:"white",onClick:()=>y(!1),text:"Cancel",textColor:"primary",paddingY:"2",paddingX:"6"}),(0,l.jsx)(p.Z,{outline:!1,buttonBg:"primary",onClick:async()=>{P(!Y),await W({variables:{input:{snoozedAccount:!Y}}}),n.Am.success("Your profile has been ".concat(Y?"unsnoozed":"snoozed"," successfully!")),y(!1)},text:"Yes, Proceed",textColor:"white",paddingY:"2",paddingX:"6"})]})]})}),(0,l.jsx)("div",{className:"w-full flex relative mb-6 gap-x-12 px-6 xl:px-12",children:(0,l.jsxs)("div",{className:"w-full border-b border-gray-200 flex items-center flex-1 overflow-x-auto jobs",children:[(0,l.jsx)("p",{className:"text-sm font-normal px-3 py-2 cursor-pointer select-none transition text-center ".concat("account"===e?"text-primary border-b border-primary active":"text-tabInactive border-none"),onClick:()=>{t("account")},children:"Account"}),(0,l.jsx)("p",{className:"text-sm font-normal px-3 py-2 cursor-pointer select-none transition text-center ".concat("profile-setting"===e?"text-primary border-b border-primary active":"text-tabInactive border-none"),onClick:()=>{t("profile-setting")},children:"Communication preference"})]})}),"account"===e?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"px-6 xl:px-12 pt-2 mb-12 xl:mb-0",children:(0,l.jsx)("div",{className:"grid grid-cols-1 w-11/12 relative mb-6 gap-x-12 gap-y-2",children:(0,l.jsxs)("div",{className:"w-full h-full flex flex-col justify-start items-start col-span-1 space-y-6 xl:space-y-8",children:[(0,l.jsxs)("div",{className:"grid grid-cols-1 xl:grid-cols-2 w-full gap-4",children:[(0,l.jsxs)("div",{className:"flex flex-col justify-start items-start w-full",children:[(0,l.jsx)("p",{className:"text-sm text-black font-medium",children:"First Name"}),(0,l.jsx)("p",{className:"text-xs text-black text-opacity-70 font-thin",children:null==S?void 0:S.firstName})]}),(0,l.jsxs)("div",{className:"flex flex-col justify-start items-start w-full",children:[(0,l.jsx)("p",{className:"text-sm text-black font-medium",children:"Last Name"}),(0,l.jsx)("p",{className:"text-xs text-black text-opacity-70 font-thin",children:null==S?void 0:S.lastName})]})]}),(0,l.jsx)("hr",{className:"w-full"}),(0,l.jsxs)("div",{className:"grid grid-cols-1 xl:grid-cols-2 w-full gap-4",children:[(0,l.jsxs)("div",{className:"flex flex-col justify-start items-start w-full",children:[(0,l.jsx)("p",{className:"text-sm text-black font-medium",children:"Email Id"}),(0,l.jsx)("p",{className:"text-xs text-black text-opacity-70 font-thin",children:null==S?void 0:S.email})]}),(0,l.jsxs)("div",{className:"flex flex-col justify-start items-start w-full",children:[(0,l.jsx)("p",{className:"text-sm text-black font-medium",children:"Phone Number"}),(0,l.jsxs)("p",{className:"text-xs text-black text-opacity-70 font-thin",children:["+91 ",null==S?void 0:S.number]})]})]})]})})}),(0,l.jsx)("p",{className:"text-xs w-full xl:w-4/5 px-6 xl:px-12 text-gray-500 my-4 italic",children:"*Note to change your email or number please click the button below"}),(0,l.jsx)("div",{className:"w-full xl:w-4/5 flex relative mb-6 gap-x-12 px-6 xl:px-12",children:(0,l.jsx)(r.Z,{outline:!0,outlineColor:"primary",dar
1k:!0,bg:"bg-white",text:"text-primary text-opacity-90 text-medium",title:"Support Request",size:"small",onClick:e=>{e.stopPropagation(),j(!0)}})})]}):(0,l.jsx)("div",{className:"px-6 xl:px-12 pt-2 mb-12 xl:mb-0",children:(0,l.jsx)("div",{className:"grid grid-cols-1 w-11/12 relative mb-6 gap-x-12 gap-y-2",children:(0,l.jsx)("div",{className:"w-full h-full flex flex-col justify-start items-start col-span-1 space-y-6 xl:space-y-8",children:(0,l.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 w-full gap-4",children:[(0,l.jsx)("div",{className:"flex flex-col justify-start items-start w-full",children:(0,l.jsxs)("div",{className:"flex items-center justify-between w-full mb-2",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("p",{className:"text-sm text-black font-medium",children:"Snooze profile"}),(0,l.jsxs)("p",{className:"text-xs text-black text-opacity-70 font-thin mr-4",children:["While snoozed, your profile will be hidden from employers, you'll receive no notifications."," ",(0,l.jsx)("i",{children:"While snoozed, your profile will be hidden from\n employers, you'll receive no notifications. It will be\n automatically un-snoozed once you apply for a job."})]})]}),(0,l.jsx)(R,{checked:Y||!1,onChange:F})]})}),(0,l.jsx)("div",{className:"flex flex-col justify-start items-start w-full",children:(0,l.jsxs)("div",{className:"flex items-center justify-between w-full mb-2",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("p",{className:"text-sm text-black font-medium",children:"Smart Apply"}),(0,l.jsx)("p",{className:"text-xs text-black text-opacity-70 font-thin mr-4",children:"While Smart Apply is on, we automatically apply to jobs that match your profile, so you donât miss any opportunity."})]}),(0,l.jsx)(R,{checked:B||!1,onChange:q})]})})]})})})})]})}}}]);
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.