1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5593],{38262:function(e,r,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/referral",function(){return n(97491)}])},74005:function(e,r){"use strict";r.Z={src:"/_next/static/media/acciojob-logo-white.4466a9e0.svg",height:40,width:136}},97491:function(e,r,n){"use strict";n.r(r),n.d(r,{default:function(){return fe}});var t,a,l,o=n(85893),s=n(9008),i=n.n(s),c=n(25675),u=n.n(c),d=n(11163),f=n(67294),h=n(86204),m="+91",p=["Full Stack Development with Gen AI","Data Science","Data Analyst","AI Engineering"],x=["Chennai","Noida","Pune","Hyderabad","Online Course","Self Paced"],v=["Friend","Colleague","Family","Classmate","Batchmate"],j="Other",b="phone",N="linkedin",y=[{value:b,label:"Phone number"},{value:N,label:"LinkedIn profile"}],g=["Your details","Their details"],C=[{title:"Refer someone you know",description:"Share the name and number of a friend who is serious about tech career."},{title:"We take it from here",description:"Our counsellors reach out, understand their goals and guide them to the right track."},{title:"You get rewarded",description:"Once they enrol and their payment is realised, your reward is released."}],k=[{value:"2000+",label:"Learners placed"},{value:"\u20b97.4 LPA",label:"Average package"},{value:"500+",label:"Hiring partners"}],w=[{title:"Takes under a minute",description:"Name and number is all we need to get started."},{title:"We call within 24 hours",description:"A counsellor reaches out to them on a working day."},{title:"Your number stays private",description:"We never share it with anyone."}],R=[{left:6,delay:0,duration:2.4,color:"#2f80ed"},{left:15,delay:.35,duration:2.9,color:"#12b76a"},{left:24,delay:.12,duration:2.6,color:"#f79009"},{left:33,delay:.55,duration:3.1,color:"#7db3ff"},{left:42,delay:.05,duration:2.7,color:"#12b76a"},{left:51,delay:.42,duration:2.5,color:"#2f80ed"},{left:60,delay:.18,duration:3,color:"#f79009"},{left:69,delay:.6,duration:2.6,color:"#7db3ff"},{left:78,delay:.28,duration:2.85,color:"#2f80ed"},{left:87,delay:.48,duration:2.55,color:"#12b76a"},{left:94,delay:.1,duration:3.05,color:"#f79009"},{left:38,delay:.75,duration:2.7,color:"#2f80ed"}],S=function(){return(0,o.jsxs)("aside",{className:"referral-aside",children:[(0,o.jsx)("span",{className:"referral-eyebrow",children:"Referral programme"}),(0,o.jsxs)("h1",{className:"referral-heading",children:["Know someone ready for a ",(0,o.jsx)("em",{children:"tech career"}),"?"]}),(0,o.jsx)("p",{className:"referral-subheading",children:"Refer them in under a minute. We will guide them from first call to their first offer - and reward you when they enrol."}),(0,o.jsx)("ol",{className:"referral-benefits",children:C.map((function(e,r){return(0,o.jsxs)("li",{children:[(0,o.jsx)("span",{className:"referral-benefit-index",children:r+1}),(0,o.jsxs)("div",{children:[(0,o.jsx)("h3",{children:e.title}),(0,o.jsx)("p",{children:e.description})]})]},e.title)}))}),(0,o.jsx)("div",{className:"referral-stats",children:k.map((function(e){return(0,o.jsxs)("div",{children:[(0,o.jsx)("strong",{children:e.value}),(0,o.jsx)("span",{children:e.label})]},e.label)}))})]})},P=function(){return(0,o.jsx)("div",{className:"referral-assurance",children:w.map((function(e){return(0,o.jsxs)("div",{className:"referral-assurance-item",children:[(0,o.jsx)("span",{className:"referral-assurance-icon",children:(0,o.jsx)(h.l_A,{})}),(0,o.jsxs)("div",{children:[(0,o.jsx)("strong",{children:e.title}),(0,o.jsx)("span",{children:e.description})]})]},e.title)}))})},_=n(56543),E=n(47568),A=n(828),I=n(29815),T=n(97582),F=n(6241),L=function(e,r){return!!r&&(e===m?/^\d{10}$/.test(r):r.length>=6&&r.length<=15)},O=/^[a-z0-9][a-z0-9\-_%.]{1,99}$/i,Z=function(e){var r=e.trim();if(!(0,F.np)(r))return null;var n=(0,F.dy)(r).toLowerCase();return n&&O.test(n)?n:null},B=function(e){if(!e)return"AJ";var r,n,t=(0,A.Z)(e.trim().split(/\s+/),2),a=t[0],l=void 0===a?"":a,o=t[1],s=void 0===o?"":o;return"".concat(null!==(r=l[0])&&void 0!==r?r:"").concat(null!==(n=s[0])&&void 0!==n?n:"").toUpperCase()||"AJ"},M=function(e,r){var n,l,o,s;return null!==(a=null!==(t=null===e||void 0===e||null===(n=e.response)||void 0===n||null===(l=n.data)||void 0===l?void 0:l.message)&&void 0!==t?t:null===e||void 0===e||null===(o=e.response)||void 0===o||null===(s=o.data)||void 0===s?void 0:s.errorMessage)&&void 0!==a?a:r},U=function(){var e=(0,E.Z)((function(e){var r,n;return(0,T.__generator)(this,(function(t){switch(t.label){case 0:return(null===(r=navigator.clipboard)||void 0===r?void 0:r.writeText)?[4,navigator.clipboard.writeText(e)]:[3,2];case 1:return t.sent(),[2];case 2:return(n=document.createElement("textarea")).value=e,n.style.position="fixed",n.style.opacity="0",document.body.appendChild(n),n.select(),document.execCommand("copy"),document.body.removeChild(n),[2]}}))}));return function(r){return e.apply(this,arguments)}}(),Y=function(){var e=(0,f.useState)(!1),r=e[0],n=e[1],t=(0,f.useRef)(null);return function(e,r,n){(0,f.useEffect)((function(){if(r){var t=function(r){e.current&&!e.current.contains(r.target)&&n()};return document.addEventListener("mousedown",t),document.addEventListener("touchstart",t),function(){document.removeEventListener("mousedown",t),document.removeEventListener("touchstart",t)}}}),[e,r,n])}(t,r,(0,f.useCallback)((function(){return n(!1)}),[])),{isOpen:r,setIsOpen:n,ref:t}},D=function(e){var r=e.message;return r?(0,o.jsx)("p",{className:"referral-error",children:r}):null},W=function(e){var r=e.isOpen,n=e.children,t=(0,f.useRef)(null),a=(0,f.useState)(r?"auto":0),l=a[0],s=a[1],i=(0,f.useRef)(!0);return(0,f.useEffect)((function(){if(i.current)i.current=!1;else{var e=t.current;if(e){if(!r){s(e.scrollHeight);var n=requestAnimationFrame((function(){return s(0)}));return function(){return cancelAnimationFrame(n)}}s(e.scrollHeight)}}}),[r]),(0,o.jsx)("div",{className:"referral-collapse ".concat(r?"open":""),style:{height:"auto"===l?"auto":"".concat(l,"px"),overflow:"auto"===l?"visible":"hidden"},onTransitionEnd:function(e){e.target===e.currentTarget&&"height"===e.propertyName&&r&&s("auto")},children:(0,o.jsx)("div",{ref:t,children:n})})},H=function(e){var r=e.label,n=e.placeholder,t=e.value,a=e.onChange,l=e.error,s=e.autoFocus;return(0,o.jsxs)("div",{className:"referral-field",children:[(0,o.jsx)("label",{className:"referral-label",children:r}),(0,o.jsx)("input",{className:"referral-input ".concat(l?"error":""),placeholder:n,value:t,autoF
1ocus:s,onChange:function(e){return a(e.target.value)}}),(0,o.jsx)(D,{message:l})]})},J=function(e){var r=e.value,n=e.options,t=e.onChange,a=Math.max(n.findIndex((function(e){return e.value===r})),0);return(0,o.jsxs)("div",{className:"referral-contact-toggle",children:[(0,o.jsx)("span",{className:"referral-contact-thumb",style:{width:"calc((100% - 8px) / ".concat(n.length,")"),transform:"translateX(".concat(100*a,"%)")}}),n.map((function(e){return(0,o.jsx)("button",{type:"button","aria-pressed":r===e.value,className:"referral-contact-tab ".concat(r===e.value?"active":""),onClick:function(){return t(e.value)},children:e.label},e.value)}))]})},X=function(e){var r=e.label,n=e.placeholder,t=e.value,a=e.options,l=e.onChange,s=e.optional,i=Y(),c=i.isOpen,u=i.setIsOpen,d=i.ref;return(0,o.jsxs)("div",{className:"referral-field",ref:d,children:[(0,o.jsxs)("label",{className:"referral-label",children:[r,s&&(0,o.jsx)("span",{className:"referral-optional",children:"Optional"})]}),(0,o.jsxs)("button",{type:"button",className:"referral-select ".concat(c?"open":""," ").concat(t?"has-value":""),onClick:function(){return u((function(e){return!e}))},children:[(0,o.jsx)("span",{children:t||n}),(0,o.jsx)(h.RiI,{className:"referral-caret ".concat(c?"up":"")})]}),c&&(0,o.jsx)("ul",{className:"referral-options",children:a.map((function(e){return(0,o.jsxs)("li",{className:"referral-option ".concat(t===e?"active":""),onClick:function(){l(t===e?"":e),u(!1)},children:[e,t===e&&(0,o.jsx)(h.l_A,{})]},e)}))})]})},z=function(e){var r=e.label,n=e.countryCode,t=e.phoneNumber,a=e.onCountryCodeChange,l=e.onPhoneNumberChange,s=e.error,i=e.autoFocus,c=Y(),u=c.isOpen,d=c.setIsOpen,f=c.ref;return(0,o.jsxs)("div",{className:"referral-field",children:[(0,o.jsx)("label",{className:"referral-label",children:r}),(0,o.jsxs)("div",{className:"referral-phone ".concat(s?"error":""),children:[(0,o.jsxs)("div",{className:"referral-code-wrapper",ref:f,children:[(0,o.jsxs)("button",{type:"button",className:"referral-code",onClick:function(){return d((function(e){return!e}))},children:[n,(0,o.jsx)(h.RiI,{className:"referral-caret ".concat(u?"up":"")})]}),u&&(0,o.jsx)("ul",{className:"referral-options code-options",children:_.nR.map((function(e){return(0,o.jsxs)("li",{className:"referral-option ".concat(n===e?"active":""),onClick:function(){a(e),d(!1)},children:[e,n===e&&(0,o.jsx)(h.l_A,{})]},e)}))})]}),(0,o.jsx)("input",{className:"referral-phone-input",inputMode:"numeric",autoComplete:"tel",autoFocus:i,placeholder:"98765 43210",value:t,onChange:function(e){return l(e.target.value.replace(/\D/g,"").slice(0,15))}})]}),(0,o.jsx)(D,{message:s})]})},$=function(e){var r=e.step;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"referral-progress",children:[(0,o.jsxs)("div",{className:"referral-progress-meta",children:[(0,o.jsxs)("span",{children:["Step ",r," of ",g.length]}),(0,o.jsx)("strong",{children:g[r-1]})]}),(0,o.jsx)("div",{className:"referral-progress-track",children:(0,o.jsx)("span",{style:{width:"".concat(r/g.length*100,"%")}})})]}),(0,o.jsx)("div",{className:"referral-stepper",children:g.map((function(e,n){var t=n+1,a=r>t,l=r===t;return(0,o.jsxs)("div",{className:"referral-step ".concat(l?"active":""," ").concat(a?"done":""),children:[(0,o.jsx)("span",{className:"referral-step-dot",children:a?(0,o.jsx)(h.l_A,{}):t}),(0,o.jsx)("span",{className:"referral-step-label",children:e})]},e)}))})]})},q=function(e){var r=e.form;return(0,o.jsxs)("div",{className:"referral-form",children:[(0,o.jsxs)("div",{className:"referral-form-head",children:[(0,o.jsx)("h2",{children:"Let's start with your number"}),(0,o.jsx)("p",{children:"We use it to recognise you and to credit your reward."})]}),(0,o.jsx)(z,{label:"Your phone number",countryCode:r.referrerCountryCode,phoneNumber:r.referrerPhone,onCountryCodeChange:r.setReferrerCountryCode,onPhoneNumberChange:r.updateReferrerPhone,error:r.errors.referrerPhone,autoFocus:!0}),(0,o.jsx)("button",{type:"button",className:"referral-btn referral-btn-primary",onClick:r.checkReferrer,disabled:r.isCheckingReferrer,children:r.isCheckingReferrer?"Checking\u2026":"Continue"}),(0,o.jsx)("p",{className:"referral-note",children:"Refer as many friends as you like. We never share your number with anyone."})]})},G=function(e){var r,n,t=e.form;return(0,o.jsxs)("div",{className:"referral-identity",children:[(0,o.jsx)("span",{className:"referral-avatar",children:B(null!==(l=null===(r=t.referrer)||void 0===r?void 0:r.name)&&void 0!==l?l:t.referrerName)}
1),(0,o.jsxs)("div",{className:"referral-identity-body",children:[(0,o.jsx)("strong",{children:(null===(n=t.referrer)||void 0===n?void 0:n.name)||"Welcome"}),(0,o.jsxs)("span",{children:[t.referrerCountryCode," ",t.referrerPhone]})]}),(0,o.jsx)("button",{type:"button",className:"referral-link",onClick:t.goBackToPhoneStep,children:"Change"})]})},K=function(e){var r,n,t=e.form,a=t.referee,l=t.showOptionalFields,s=[a.courseInterest,a.preferredCentre,a.relationship],i=s.filter(Boolean).length;return(0,o.jsxs)("div",{className:"referral-accordion ".concat(l?"open":""),children:[(0,o.jsxs)("button",{type:"button",className:"referral-accordion-head","aria-expanded":l,onClick:function(){return t.setShowOptionalFields((function(e){return!e}))},children:[(0,o.jsxs)("span",{className:"referral-accordion-title",children:[(0,o.jsx)("strong",{children:"More details"}),(0,o.jsx)("span",{children:"Helps our counsellor prepare for the call"})]}),(0,o.jsxs)("span",{className:"referral-accordion-meta",children:[(0,o.jsx)("em",{children:i?"".concat(i," of ").concat(s.length," added"):"Optional"}),(0,o.jsx)(h.RiI,{})]})]}),(0,o.jsx)(W,{isOpen:l,children:(0,o.jsxs)("div",{className:"referral-accordion-body",children:[(0,o.jsx)(X,{label:"Course they are interested in",placeholder:"Select a course",value:a.courseInterest,options:p,onChange:function(e){return t.updateReferee("courseInterest",e)},optional:!0}),(0,o.jsx)(X,{label:"Preferred centre",placeholder:"Select a centre",value:a.preferredCentre,options:x,onChange:function(e){return t.updateReferee("preferredCentre",e)},optional:!0}),(0,o.jsx)(X,{label:"How do you know them?",placeholder:"Select a relationship",value:a.relationship,options:(n=null===(r=t.referrer)||void 0===r?void 0:r.userType,"Alumni (Placed)"===n?[j].concat((0,I.Z)(v)):(0,I.Z)(v).concat([j])),onChange:function(e){return t.updateReferee("relationship",e)},optional:!0})]})})]})},V=function(e){var r=e.form,n=r.referee,t=r.errors;return(0,o.jsxs)("div",{className:"referral-form",children:[(0,o.jsx)(G,{form:r}),(0,o.jsxs)("div",{className:"referral-form-head",children:[(0,o.jsx)("h2",{children:"Who are you referring?"}),(0,o.jsx)("p",{children:"A name with their number or LinkedIn profile is enough \u2014 the rest is optional."})]}),r.referrer&&!r.referrer.isRegisteredUser&&(0,o.jsx)(H,{label:"Your name",placeholder:"Enter your full name",value:r.referrerName,onChange:r.updateReferrerName,error:t.referrerName}),(0,o.jsx)(H,{label:"Their full name",placeholder:"e.g. Riya Sharma",value:n.fullName,onChange:function(e){return r.updateReferee("fullName",e)},error:t.fullName,autoFocus:!0}),(0,o.jsxs)("div",{className:"referral-contact-group",children:[(0,o.jsx)("p",{className:"referral-contact-hint",children:"Fill their phone number or LinkedIn profile - any one is enough to process the referral."}),(0,o.jsx)(J,{value:r.contactMode,options:y,onChange:function(e){return r.changeContactMode(e)}})]}),(0,o.jsx)("div",{className:"referral-contact-field",children:r.isLinkedinReferral?(0,o.jsx)(H,{label:"Their LinkedIn profile",placeholder:"https://www.linkedin.com/in/riya-sharma/",value:n.linkedinUrl,onChange:function(e){return r.updateReferee("linkedinUrl",e)},error:t.linkedinUrl}):(0,o.jsx)(z,{label:"Their phone number",countryCode:n.countryCode,phoneNumber:n.phoneNumber,onCountryCodeChange:function(e){return r.updateReferee("countryCode",e)},onPhoneNumberChange:function(e){return r.updateReferee("phoneNumber",e)},error:t.phoneNumber})},r.contactMode),(0,o.jsx)(K,{form:r}),(0,o.jsxs)("div",{className:"referral-actions",children:[(0,o.jsx)("button",{type:"button",className:"referral-btn referral-btn-ghost",onClick:r.goBackToPhoneStep,disabled:r.isSubmitting,children:"Back"}),(0,o.jsx)("button",{type:"button",className:"referral-btn referral-btn-primary",onClick:r.submitReferral,disabled:r.isSubmitting,children:r.isSubmitting?"Submitting\u2026":"Submit referral"})]})]})},Q=n(30381),ee=n.n(Q),re=function(){return(0,o.jsx)("span",{className:"referral-confetti","aria-hidden":"true",children:R.map((function(e,r){return(0,o.jsx)("i",{style:{left:"".concat(e.left,"%"),background:e.color,animationDelay:"".concat(e.delay,"s"),animationDuration:"".concat(e.duration,"s")}},r)}))})},ne=[{title:"Counsellor outreach",description:function(e,r){return r?"We reach out to ".concat(e," on LinkedIn within 24 working hours."):"We call ".concat(e," within 24 working hours.")}},{title:"Counselling & enrolment",description:function(){return"They pick the track that fits their goals and enrol."}},{title:"Your reward",description:function(){return"Released once their enrolment and payment are confirmed."}}],te=function(e){var r=e.refereeName,n=e.isLinkedinReferral,t=e.referrerName,a=e.referralCode,l=e.referralExpiresAt,s=e.hasCopied,i=e.onCopy,c=e.onBackToForm,u=t?", ".concat(t.split(" ")[0]):"",d=l?ee()(l).format("DD MMM YYYY"):"";return(0,o.jsxs)("div",{className:"referral-success",children:[(0,o.jsx)(re,{}),(0,o.jsx)("span",{className:"referral-success-icon",children:(0,o.jsx)(h.l_A,{})}),(0,o.jsx)("h2",{children:"Referral submitted"}),(0,o.jsxs)("p",{children:["Thanks",u,". We have received your referral for"," ",(0,o.jsx)("strong",{children:r})," and our team will reach out to them shortly."]}),a&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("button",{type:"button",className:"referral-code-box ".concat(s?"copied":""),onClick:i,title:"Click to copy",children:[(0,o.jsx)("span",{className:"referral-code-label",children:"Your referral ID"}),(0,o.jsx)("strong",{children:a}),(0,o.jsxs)("span",{className:"referral-copy-hint",children:[s?(0,o.jsx)(h.l_A,{}):(0,o.jsx)(h.Dup,{}),s?"Copied":"Click to copy"]})]}),(0,o.jsxs)("p",{className:"referral-save-note",children:["Save this referral code for future reference."," ",d?"This referral stays valid till ".concat(d,"."):"This referral stays valid for ".concat(90," days.")]})]}),(0,o.jsx)("ul",{className:"referral-timeline",children:ne.map((function(e){return(0,o.jsxs)("li",{children:[(0,o.jsx)("span",{}),(0,o.jsxs)("div",{children:[(0,o.jsx)("h4",{children:e.title}),(0,o.jsx)("p",{children:e.description(r,n)})]})]},e.title)}))}),(0,o.jsx)("button",{type:"button",className:"referral-btn referral-btn-secondary",onClick:c,children:"Back to referral form"})]})},ae=n(14924),le=n(26042),oe=n(69396),se=n(24377),ie=n(95658),ce={fullName:"",countryCode:m,phoneNumber:"",linkedinUrl:"",courseInterest:"",preferredCentre:"",relationship:""},ue=function(){var e=(0,f.useMemo)((function(){return new se.Y}),[]),r=(0,f.useState)(1),n=r[0],t=r[1],a=(0,f.useState)({}),l=a[0],o=a[1],s=(0,f.useState)(m),i=s[0],c=s[1],u=(0,f.useState)(""),d=u[0],h=u[1],p=(0,f.useState)(""),x=p[0],v=p[1],j=(0,f.useState)(null),y=j[0],g=j[1],C=(0,f.useState)(!1),k=C[0],w=C[1],R=(0,f.useState)(ce),S=R[0],P=R[1],_=(0,f.useState)(b),A=_[0],I=_[1],F=(0,f.useState)(!0),O=F[0],B=F[1],Y=(0,f.useState)(!1),D=Y[0],W=Y[1],H=A===N,J=(0,f.useState)(!1),X=J[0],z=J[1],$=(0,f.useState)(""),q=$[0],G=$[1],K=(0,f.useState)(""),V=K[0],Q=K[1],ee=(0,f.useState)(!1),re=ee[0],ne=ee[1];(0,f.useEffect)((function(){if(re){var e=setTimeout((function(){return ne(!1)}),2e3);return function(){return clearTimeout(e)}}}),[re]);var te=(0,f.useCallback)((function(e){o((function(r){if(!r[e])return r;var n=(0,le.Z)({},r);return delete n[e],n}))}),[]),ue=(0,f.useCallback)((function(e,r){o((function(n){return(0,oe.Z)((0,le.Z)({},n),(0,ae.Z)({},e,r))}))}),[]),de=(0,f.useCallback)((function(e,r){P((function(n){return(0,oe.Z)((0,le.Z)({},n),(0,ae.Z)({},e,r))})),te(e)}),[te]),fe=(0,f.useCallback)((function(e){I(e),te("phoneNumber"),te("linkedinUrl")}),[te]),he=(0,f.useCallback)((function(e){h(e),te("referrerPhone")}),[te]),me=(0,f.useCallback)((function(e){v(e),te("referrerName")}),[te]),pe=function(){var r=(0,E.Z)((function(){var r,n,a,l;return(0,T.__generator)(this,(function(o){switch(o.label){case 0:if(!L(i,d))return ue("referrerPhone","Enter a valid phone number"),[2];o.label=1;case 1:return o.trys.push([1,3,4,5]),w(!0),[4,e.getReferrerDetailsByPhoneNumber(d)];case 2:return r=o.sent(),g(r),v(null!==(n=r.name)&&void 0!==n?n:""),te("referrerPhone"),t(2),[3,5];case 3:return a=o.sent(),l=M(a,"We could not verify your number. Please try again."),ue("referrerPhone",l),(0,ie.cB)(l),[3,5];case 4:return w(!1),[7];case 5:return[2]}}
1))}));return function(){return r.apply(this,arguments)}}(),xe=function(){var r=(0,E.Z)((function(){var r,n,t,a,l,s,c;return(0,T.__generator)(this,(function(u){switch(u.label){case 0:if(r=function(){var e={};return S.fullName.trim()||(e.fullName="Enter your friend's name"),H?Z(S.linkedinUrl)||(e.linkedinUrl="Enter a valid LinkedIn profile URL"):L(S.countryCode,S.phoneNumber)?S.phoneNumber===d&&(e.phoneNumber="You cannot refer yourself"):e.phoneNumber="Enter a valid phone number",!y||y.isRegisteredUser||x.trim()||(e.referrerName="Enter your name"),e}(),o(r),Object.keys(r).length)return[2];u.label=1;case 1:return u.trys.push([1,3,4,5]),W(!0),[4,e.createReferralLead((0,oe.Z)((0,le.Z)({fullName:S.fullName.trim(),courseInterest:S.courseInterest,preferredCentre:S.preferredCentre,relationship:S.relationship},H?{linkedinUsername:Z(S.linkedinUrl)}:{countryCode:S.countryCode,phoneNumber:S.phoneNumber}),{referredByCountryCode:i,referredByPhoneNumber:d,referredByName:x.trim()}))];case 2:return n=u.sent(),G(null!==(t=null===n||void 0===n?void 0:n.referralCode)&&void 0!==t?t:""),Q(null!==(a=null===n||void 0===n?void 0:n.expiresAt)&&void 0!==a?a:""),z(!0),[3,5];case 3:return l=u.sent(),c=M(l,"Something went wrong. Please try again."),409===(null===l||void 0===l||null===(s=l.response)||void 0===s?void 0:s.status)&&ue(H?"linkedinUrl":"phoneNumber",c),(0,ie.cB)(c),[3,5];case 4:return W(!1),[7];case 5:return[2]}}
1))}));return function(){return r.apply(this,arguments)}}(),ve=function(){var e=(0,E.Z)((function(){return(0,T.__generator)(this,(function(e){switch(e.label){case 0:if(!q)return[2];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,U(q)];case 2:return e.sent(),ne(!0),[3,4];case 3:return e.sent(),(0,ie.cB)("Could not copy the referral ID. Please copy it manually."),[3,4];case 4:return[2]}}))}));return function(){return e.apply(this,arguments)}}();return{step:n,errors:l,referrer:y,referrerName:x,referrerPhone:d,referrerCountryCode:i,isCheckingReferrer:k,referee:S,contactMode:A,isLinkedinReferral:H,showOptionalFields:O,isSubmitting:D,isSubmitted:X,referralCode:q,referralExpiresAt:V,hasCopied:re,setReferrerCountryCode:c,setShowOptionalFields:B,updateReferrerPhone:he,updateReferrerName:me,updateReferee:de,changeContactMode:fe,checkReferrer:pe,submitReferral:xe,copyReferralCode:ve,goBackToPhoneStep:function(){t(1),g(null),o({})},resetForm:function(){t(1),o({}),c(m),h(""),v(""),g(null),P(ce),I(b),B(!0),z(!1),G(""),Q(""),ne(!1)}}},de=n(74005),fe=function(){var e=(0,d.useRouter)(),r=ue(),n=(0,f.useRef)(null);(0,f.useEffect)((function(){if(window.matchMedia("(max-width: 1024px)").matches){var e=setTimeout((function(){var e;window.scrollY>40||null===(e=n.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"start"})}),700);return function(){return clearTimeout(e)}}}),[]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(i(),{children:[(0,o.jsx)("title",{children:"Refer a friend | AccioJob"}),(0,o.jsx)("meta",{name:"robots",content:"noindex, nofollow"}),(0,o.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1, maximum-scale=5"})]}),(0,o.jsxs)("div",{className:"referral-page",children:[(0,o.jsxs)("header",{className:"referral-navbar",children:[(0,o.jsx)("div",{className:"referral-logo",onClick:function(){return e.push("/")},role:"button",tabIndex:0,children:(0,o.jsx)(u(),{src:de.Z.src,width:132,height:44,alt:"AccioJob",priority:!0})}),(0,o.jsx)("span",{className:"referral-pill",children:"Refer & Earn"})]}),(0,o.jsxs)("main",{className:"referral-shell",children:[(0,o.jsx)(S,{}),(0,o.jsxs)("section",{className:"referral-panel",ref:n,children:[(0,o.jsx)("div",{className:"referral-card",children:r.isSubmitted?(0,o.jsx)(te,{refereeName:r.referee.fullName.trim(),isLinkedinReferral:r.isLinkedinReferral,referrerName:r.referrerName,referralCode:r.referralCode,referralExpiresAt:r.referralExpiresAt,hasCopied:r.hasCopied,onCopy:r.copyReferralCode,onBackToForm:r.resetForm}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)($,{step:r.step}),1===r.step?(0,o.jsx)(q,{form:r}):(0,o.jsx)(V,{form:r})]})}),!r.isSubmitted&&(0,o.jsx)(P,{})]})]})]})]})}}},function(e){e.O(0,[4885,6241,9774,2888,179],(function(){return r=38262,e(e.s=r);var r}));var r=e.O();_N_E=r}]);
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.