PageSourceSearch

https://grow.almabetter.com/static/js/27.8ee225f8.chunk.js

js almabetter.com collected 2026-10-02 10:20:54 UTC 43,024 bytes, 1 lines download raw bytes

1(this["webpackJsonpalma-student"]=this["webpackJsonpalma-student"]||[]).push([[27],{1930:function(e,t,a){"use strict";a.r(t);var l=a(3),s=a(264),r=a(635),c=a(31),n=a(153),i=a(643),o=a(1756),d=a(1932),u=a(869),b=a(63),m=a(974),j=a(2);function x(e){return u.find((t=>t.city===e))}function h(e){var t,a,s,r;let{form:h,setForm:p,error:O}=e;const v=Object(c.e)(n.e),[g,f]=Object(l.useState)(!1),y=e=>{p({...h,basicInfo:{...h.basicInfo,[e.target.name]:e.target.value}})};return Object(j.jsxs)("div",{className:"md:grid grid-cols-2 gap-4 gap-x-10 md:px-10 px-4 py-2 flex flex-col",children:[Object(j.jsxs)("div",{className:"flex md:hidden justify-between",children:[Object(j.jsxs)("div",{className:"flex flex-col",children:[Object(j.jsxs)("label",{className:"text-blue-c9 flex items-center gap-2",htmlFor:"firstName",children:["Name"," ",Object(j.jsx)("p",{className:"text-xs font-extralight text-learn-primary",children:"(This will be shown in certificate)"})]}),(null===v||void 0===v?void 0:v.firstName)+" "+(null===v||void 0===v?void 0:v.lastName)]}),Object(j.jsx)("div",{className:"flex flex-col"})]}),Object(j.jsxs)("div",{className:"md:flex flex-col hidden",children:[Object(j.jsxs)("label",{className:"text-blue-c9 flex items-center gap-2",htmlFor:"firstName",children:["Name"," ",Object(j.jsx)("p",{className:"text-xs font-extralight text-learn-primary",children:"(This will be shown in certificate)"})]}),(null===v||void 0===v?void 0:v.firstName)+" "+(null===v||void 0===v?void 0:v.lastName)]}),Object(j.jsx)("div",{className:"md:flex flex-col hidden"}),Object(j.jsxs)("div",{className:"flex flex-col break-words",children:[Object(j.jsx)("label",{className:"text-blue-c9",htmlFor:"email",children:"Email"}),v.email]}),Object(j.jsxs)("div",{className:"flex flex-col",children:[Object(j.jsx)("label",{className:"text-blue-c9",htmlFor:"mobile",children:"Mobile"}),v.phone]}),Object(j.jsxs)("div",{className:"col-span-2 mb-2",children:[Object(j.jsxs)("div",{className:"mb-4",children:[Object(j.jsx)("div",{children:"Current Address"}),Object(j.jsxs)("p",{className:"text-sm",children:["(Make sure you enter the ",Object(j.jsx)("span",{className:"text-learn-primary",children:"correct address"}),". We will ship your AlmaBetter Merchandise to your current address)"]})]}),Object(j.jsxs)("div",{className:"text-blue-c9",children:["Address ",Object(j.jsx)("span",{className:"text-ab-secondary text-sm ml-2",children:O.address||""})]}),Object(j.jsx)(b.c,{variant:"outlined",type:"text",name:"address",placeholder:"Flat/Floor/Street/Building/Landmark",onChange:e=>{y(e)},value:null===h||void 0===h||null===(t=h.basicInfo)||void 0===t?void 0:t.address,fullWidth:!0,required:!0})]}),Object(j.jsxs)("div",{className:"flex flex-col",children:[Object(j.jsxs)("label",{className:"text-blue-c9 mb-1",htmlFor:"city",children:["District ",Object(j.jsx)("span",{className:"text-ab-secondary text-sm ml-2",children:O.city||""})]}),Object(j.jsx)(d.a,{id:"city",name:"city",placeholder:"Select District",options:u,getOptionLabel:e=>e&&e.city&&0!==Object.keys(e).length?e.city:"",value:x(h.basicInfo.city)||null,onChange:(e,t)=>
1p({...h,basicInfo:{...h.basicInfo,city:t?t.city:null,state:t?x(t.city).state:null}}),renderInput:e=>Object(j.jsx)(i.a,{...e,variant:"outlined"})})]}),Object(j.jsxs)("div",{className:"flex flex-col",children:[Object(j.jsxs)("label",{className:"text-blue-c9 mb-1",htmlFor:"state",children:["State ",Object(j.jsx)("span",{className:"text-ab-secondary text-sm ml-2",children:O.state||""})]}),Object(j.jsx)(d.a,{disabled:!0,id:"state",name:"state",placeholder:"Select State",options:u,getOptionLabel:e=>e&&e.state&&0!==Object.keys(e).length?e.state:"",value:(N=h.basicInfo.state,u.find((e=>e.state===N))||null),onChange:(e,t)=>{if(null===t)return null;p({...h,basicInfo:{...h.basicInfo,state:t.state}})},renderInput:e=>Object(j.jsx)(i.a,{...e,variant:"outlined"})})]}),Object(j.jsxs)("div",{className:"flex flex-col",children:[Object(j.jsxs)("div",{className:"text-blue-c9",children:["Postal code"," ",Object(j.jsx)("span",{className:"text-ab-secondary text-sm ml-2",children:(null===O||void 0===O?void 0:O.postalCode)||""})]}),Object(j.jsx)(b.c,{name:"postalCode",variant:"outlined",type:"number",placeholder:"Enter PIN",onChange:e=>{y(e)},value:null===h||void 0===h||null===(a=h.basicInfo)||void 0===a?void 0:a.postalCode,fullWidth:!0,required:!0})]}),Object(j.jsxs)("div",{className:"flex flex-col col-span-2 mt-2",children:[Object(j.jsxs)("label",{className:"text-blue-c9 mb-1",htmlFor:"englishProficiency",children:["English Level Proficiency"," ",Object(j.jsx)("span",{className:"text-ab-secondary text-sm ml-2",children:O.englishProficiency||""})]}),Object(j.jsxs)(i.a,{select:!0,variant:"outlined",placeholder:"Select English Level Proficiency",name:"englishProficiency",value:h.basicInfo.englishProficiency||"",onChange:y,children:[Object(j.jsx)(o.a,{value:"basic",children:"Basic - can only understand but cannot speak and write long phrases"}
1),Object(j.jsx)(o.a,{value:"intermediate",children:"Intermediate - can understand, speak and write long phrases with difficulty"}),Object(j.jsx)(o.a,{value:"proficient",children:"Proficient - can understand, speak and write with full proficiency"})]})]}),Object(j.jsxs)("div",{className:"flex flex-col mt-2",children:[Object(j.jsxs)("label",{className:"text-blue-c9 mb-1",htmlFor:"gender",children:["Gender",Object(j.jsx)("span",{className:"text-ab-secondary text-sm ml-2",children:O.gender||""})]}),Object(j.jsxs)(i.a,{select:!0,variant:"outlined",placeholder:"Select gender",name:"gender",value:null!==(s=null===(r=h.basicInfo)||void 0===r?void 0:r.gender)&&void 0!==s?s:"",onChange:y,required:!0,children:[Object(j.jsx)(o.a,{value:"male",children:"Male"}),Object(j.jsx)(o.a,{value:"female",children:"Female"}),Object(j.jsx)(o.a,{value:"other",children:"Others"}),Object(j.jsx)(o.a,{value:"prefer-not-to-say",children:"Prefer not to say"})]})]}),Object(j.jsx)(m.a,{isModalOpen:g,setIsModalOpen:f})]});var N}function p(e){let{form:t,error:a,setError:l}=e,s=!0;return t.basicInfo.city||(l({...a,city:"*This field is required"}),s=!1),t.basicInfo.address||(l({...a,address:"*This field is required"}),s=!1),t.basicInfo.postalCode||(l({...a,postalCode:"*This field is required"}),s=!1),t.basicInfo.state||(l({...a,state:"*This field is required"}),s=!1),t.basicInfo.englishProficiency||(l({...a,englishProficiency:"*This field is required"}),s=!1),t.basicInfo.gender||(l({...a,gender:"*This field is required"}),s=!1),s&&l({}),s}var O=a(48),v=a.n(O),g=a(1868),f=a(25),y=a(839),N=a(1924),w=a(783),S=a(838),k=a(870),E=a(1903),F=a(1910);function C(e){var t,a,s,r;let{form:n,setForm:o,error:d}=e;const[u,b]=Object(l.useState)({}),[m,x]=Object(l.useState)([]),[h,p]=Object(l.useState)([]),[O,C]=Object(l.useState)({degree:!1,stream:!1,university:!1}),[T,A]=Object(l.useState)({}),[I,P]=Object(l.useState)(!1),[Y,M]=Object(l.useState)(!1),[R,D]=Object(l.useState)({}),[_,V]=Object(l.useState)(-1),[L,q]=Object(l.useState)([]),B=Object(c.e)((e=>e.userSubscriptionReducer.profileOnboardingData));Object(l.useEffect)((()=>{null!==B&&void 0!==B&&B.educationStream&&p(null===B||void 0===B?void 0:B.educationStream),null!==B&&void 0!==B&&B.degree&&x(null===B||void 0===B?void 0:B.degree)}),[B]);const z=(e,t)=>{t?D({...R,[e.target.name]:e.target.value}):b({...u,[e.target.name]:e.target.value})},U=(e,t,a)=>{a?D({...R,[t]:(null===e||void 0===e?void 0:e.name)||e}):b({...u,[t]:(null===e||void 0===e?void 0:e.name)||e})},W=(e,t,a)=>{if(!e)return null;a?D({...R,[t]:e.name?{name:e.name,id:e.id}:e}):b({...u,[t]:e.name?{name:e.name,id:e.id}:e})},$=(e,t)=>{if(null===e){const e={...u};delete e[t],b({...e})}else b({...u,[t]:new Date(e).getFullYear()})},J=(e,t)=>{if(null===e){const e={...R};delete e[t],D({...e})}else D({...R,[t]:new Date(e).getFullYear()})};Object(l.useEffect)((()=>{!Y&&Object.keys(R).length>0&&G(!0)}),[Y,R]);const G=e=>{if((()=>{try{var e;const t={};return u.university||(t.university="*This field is required"),u.degree||(t.degree="*This field is required"),u.startYear||(t.startYear="*This field is required"),u.stream||(t.stream="*This field is required"),u.percentage&&isNaN(u.percentage)&&(t.percentage="*Please enter a correct percentage"),A(t),!(null!==(e=Object.keys(t))&&void 0!==e&&e.length)}catch(d){console.error(d)}})()){const t=e?[...n.education.education]:[...n.education.education,u];o({...n,education:{education:t}}),D({}),b({}),P(!1)}else console.log("error")},H=e=>e||null,K=v.a.debounce((async function(e){if(""===e.target.value)return;const t=await Object(f.S)(e.target.value);q(t.map((e=>e.item)))}),500);return Object(j.jsxs)("div",{className:"gap-4 gap-x-10 md:px-10 px-4 py-2 flex flex-col",children:[Object(j.jsx)("div",{className:"flex justify-between flex-col gap-2",children:Y?Object(j.jsxs)("div",{className:"md:grid grid-cols-2 gap-4 md:gap-x-10 flex flex-col",children:[Object(j.jsxs)("div",{className:"flex flex-col",children:[Object(j.jsxs)("label",{className:"text-blue-c9 mb-1",htmlFor:"university",children:["University/Board"," ",Object(j.jsx)("span",{className:"text-ab-secondary text-sm ml-2",children:T.university||""})]}),Object(j.jsx)(k.a,{loading:O.university,value:H(R.university),onChange:async(e,t)=>{if(t&&t.inputValue){C((e=>({...e,university:!0})));const e=await Object(f.e)({name:t.inputValue});C((e=>({...e,university:!1}))),W(e,"university",!0)}else W(t,"university",!0)},onTextChange:K,options:L,name:"university",placeholder:"Select University/Board"})]}),Object(j.jsxs)("div",{className:"flex flex-col",children:[Object(j.jsxs)("label",{className:"text-blue-c9 mb-1",htmlFor:"degree",children:["Degree"," ",Object(j.jsx)("span",{className:"text-ab-secondary text-sm ml-2",children:T.degree||""})]}),Object(j.jsx)(S.a,{loading:O.degree,value:{name:R.degree}||"",onChange:async(e,t)=>{if(t&&t.inputValue){C((e=>({...e,degree:!0})));const e=await Object(f.b)({name:t.inputValue});C((e=>({...e,degree:!1}))),x([...m,e]),U(e,"degree",!0)}else U(t,"degree",!0)},options:m,name:"degree",placeholder:"Select Degree"})]}),Object(j.jsxs)("div",{className:"flex flex-col",children:[Object(j.jsxs)("label",{className:"text-blue-c9 mb-1",htmlFor:"startYear",children:["Start Year"," ",Object(j.jsx)("span",{className:"text-ab-secondary text-sm ml-2",children:T.startYear||""})]}),Object(j.jsx)(y.a,{utils:w.a,children:Object(j.jsx)(N.a,{autoOk:!0,clearable:!0,disableFuture:!0,inputVariant:"outlined",placeholder:"Select Start Year",name:"startYear",openTo:"year",format:"yyyy",views:["year"],value:(new Date).setFullYear(R.startYear)||null,onChange:e=>J(e,"startYear")})})]}),Object(j.jsxs)("div",{className:"flex flex-col",children:[Object(j.jsxs)("label",{className:"text-blue-c9 mb-1",htmlFor:"endYear",children:["End Year"," ",Object(j.jsx)("span",{className:"text-ab-secondary text-sm ml-2",children:T.endYear||""})]}),Object(j.jsx)(y.a,{utils:w.a,children:Object(j.jsx)(N.a,{autoOk:!0,clearable:!0,disableFuture:!0,inputVariant:"outlined",placeholder:"Select End Year",name:"endYear",openTo:"year",format:"yyyy",views:["year"],value:(new Date).setFullYear(R.endYear)||null,onChange:e=>J(e,"endYear"),helperText:"If currently studying, leave blank"})})]}),Object(j.jsxs)("div",{className:"flex flex-col",children:[Object(j.jsxs)("label",{className:"text-blue-c9 mb-1",htmlFor:"stream",children:["Stream"," ",Object(j.jsx)("span",{className:"text-ab-secondary text-sm ml-2",children:T.stream||""})]}),Object(j.jsx)(S.a,{loading:O.stream,value:{name:null!==(t=null===R||void 0===R||null===(a=R.stream)||void 0===a?void 0:a.name)&&void 0!==t?t:R.stream}||"",onChange:async(e,t)=>{if(t&&t.inputValue){C((e=>
1({...e,stream:!0})));const e=await Object(f.c)({name:t.inputValue});C((e=>({...e,stream:!1}))),p([...h,e]),U(e,"stream",!0)}else U(t,"stream",!0)},options:h,name:"stream",placeholder:"Electrical, Mechanical, etc."})]}),Object(j.jsxs)("div",{className:"flex flex-col",children:[Object(j.jsxs)("label",{className:"text-blue-c9 mb-1",htmlFor:"percentage",children:["Percentage"," ",Object(j.jsx)("span",{className:"text-ab-secondary text-sm ml-2",children:T.percentage||""})]}),Object(j.jsx)(i.a,{name:"percentage",placeholder:"Enter your grade percentage (optional)",variant:"outlined",type:"number",value:R.percentage||"",onChange:e=>z(e,!0),InputProps:{endAdornment:"%"}})]}),Object(j.jsx)("button",{className:"custom-400:py-4 py-2 px-8 border border-solid border-ab-primary rounded",onClick:()=>{const e={...R},t={};if(e.university||(t.university="*This field is required"),e.degree||(t.degree="*This field is required"),e.startYear||(t.startYear="*This field is required"),e.stream||(t.stream="*This field is required"),e.percentage&&isNaN(e.percentage)&&(t.percentage="*Please enter a correct percentage"),0===Object.keys(t).length){const t=[...n.education.education];-1!==_&&(t[_]=e,b(t[_]),o({...n,education:{...n.education,education:t}})),M(!1)}else A(t)},children:"Save"})]}):(n.education.education||[]).map(((e,t)=>Object(j.jsxs)("div",{className:"p-4 grid grid-cols-2 gap-4 bg-gray-100 rounded-md w-full relative",children:[!I&&Object(j.jsx)(g.a,{title:"Edit",children:Object(j.jsx)("div",{className:"absolute right-2 top-2 cursor-pointer",onClick:()=>((e,t)=>{M(!0),D(e),V(t)})(e,t),children:Object(j.jsx)(E.a,{fontSize:"small"})})}),n.education.education.length>1&&Object(j.jsx)(g.a,{title:"Delete",children:Object(j.jsx)("div",{className:"absolute custom-400:right-10 right-8 top-2 cursor-pointer",onClick:()=>((e,t)=>{const a=[...n.education.education];a.splice(t,1),o({...n,education:{education:a}})})(0,t),children:Object(j.jsx)(F.a,{fontSize:"small"})})}),Object(j.jsxs)("div",{className:"flex flex-col",children:[Object(j.jsx)("label",{className:"text-blue-c9",htmlFor:"university",children:"University"}),e.university.name]}),Object(j.jsxs)("div",{className:"flex flex-col",children:[Object(j.jsx)("label",{className:"text-blue-c9",htmlFor:"degree",children:"Degree"}),e.degree]}),Object(j.jsxs)("div",{className:"flex flex-col",children:[Object(j.jsx)("label",{className:"text-blue-c9",htmlFor:"startYear",children:"Start Year"}),e.startYear]}),Object(j.jsxs)("div",{className:"flex flex-col",children:[Object(j.jsx)("label",{className:"text-blue-c9",htmlFor:"endYear",children:"End Year"}),e.endYear?e.endYear:"Present"]}),e.stream&&Object(j.jsxs)("div",{className:"flex flex-col",children:[Object(j.jsx)("label",{className:"text-blue-c9",htmlFor:"stream",children:"Stream"}),e.stream]}),e.percentage&&Object(j.jsxs)("div",{className:"flex flex-col",children:[Object(j.jsx)("label",{className:"text-blue-c9",htmlFor:"percentage",children:"Percentage"}),e.percentage," %"]})]},t)))}),null===n||void 0===n||null===(s=n.education)||void 0===s||null===(r=s.education)||void 0===r||!r.length||I?Object(j.jsxs)(j.Fragment,{children:[Object(j.jsxs)("div",{className:"md:grid grid-cols-2 gap-4 md:gap-x-10 flex flex-col",children:[Object(j.jsxs)("div",{className:"flex flex-col",children:[Object(j.jsxs)("label",{className:"text-blue-c9 mb-1",htmlFor:"university",children:["University/Board"," ",Object(j.jsx)("span",{className:"text-ab-secondary text-sm ml-2",children:T.university||""})]}),Object(j.jsx)(k.a,{loading:O.university,value:H(u.university),onChange:async(e,t)=>{if(t&&t.inputValue){C((e=>({...e,university:!0})));const e=await Object(f.e)({name:t.inputValue});C((e=>({...e,university:!1}))),W(e,"university")}else W(t,"university")},onTextChange:K,options:L,name:"university",placeholder:"Select University/Board"})]}),Object(j.jsxs)("div",{className:"flex flex-col",children:[Object(j.jsxs)("label",{className:"text-blue-c9 mb-1",htmlFor:"degree",children:["Degree"," ",Object(j.jsx)("span",{className:"text-ab-secondary text-sm ml-2",children:T.degree||""})]}),Object(j.jsx)(S.a,{loading:O.degree,value:{name:u.degree}||"",onChange:async(e,t)=>{if(t&&t.inputValue){C((e=>({...e,degree:!0})));const e=await Object(f.b)({name:t.inputValue});C((e=>({...e,degree:!1}))),x([...m,e]),U(e,"degree")}else U(t,"degree")},options:m,name:"degree",placeholder:"Select Degree"})]}),Object(j.jsxs)("div",{className:"flex flex-col",children:[Object(j.jsxs)("label",{className:"text-blue-c9 mb-1",htmlFor:"startYear",children:["Start Year"," ",Object(j.jsx)("span",{className:"text-ab-secondary text-sm ml-2",children:T.startYear||""})]}),Object(j.jsx)(y.a,{utils:w.a,children:Object(j.jsx)(N.a,{autoOk:!0,clearable:!0,disableFuture:!0,inputVariant:"outlined",placeholder:"Select Start Year",name:"startYear",openTo:"year",format:"yyyy",views:["year"],value:(new Date).setFullYear(u.startYear)||null,onChange:e=>$(e,"startYear")})})]}),Object(j.jsxs)("div",{className:"flex flex-col",children:[Object(j.jsxs)("label",{className:"text-blue-c9 mb-1",htmlFor:"endYear",children:["End Year"," ",Object(j.jsx)("span",{className:"text-ab-secondary text-sm ml-2",children:T.endYear||""})]}),Object(j.jsx)(y.a,{utils:w.a,children:Object(j.jsx)(N.a,{autoOk:!0,clearable:!0,disableFuture:!0,inputVariant:"outlined",placeholder:"Select End Year",name:"endYear",openTo:"year",format:"yyyy",views:["year"],value:(new Date).setFullYear(u.endYear)||null,onChange:e=>$(e,"endYear"),helperText:"If currently studying, leave blank"})})]}),Object(j.jsxs)("div",{className:"flex flex-col",children:[Object(j.jsxs)("label",{className:"text-blue-c9 mb-1",htmlFor:"stream",children:["Stream"," ",Object(j.jsx)("span",{className:"text-ab-secondary text-sm ml-2",children:T.stream||""})]}),Object(j.jsx)(S.a,{loading:O.stream,value:{name:u.stream}||"",onChange:async(e,t)=>{if(t&&t.inputValue){C((e=>
1({...e,stream:!0})));const e=await Object(f.c)({name:t.inputValue});C((e=>({...e,stream:!1}))),p([...h,e]),U(e,"stream")}else U(t,"stream")},options:h,name:"stream",placeholder:"Electrical, Mechanical, etc."})]}),Object(j.jsxs)("div",{className:"flex flex-col",children:[Object(j.jsxs)("label",{className:"text-blue-c9 mb-1",htmlFor:"percentage",children:["Percentage"," ",Object(j.jsx)("span",{className:"text-ab-secondary text-sm ml-2",children:T.percentage||""})]}),Object(j.jsx)(i.a,{name:"percentage",placeholder:"Enter your grade percentage (optional)",variant:"outlined",type:"number",value:u.percentage||"",onChange:z,InputProps:{endAdornment:"%"}})]})]}),Object(j.jsx)("button",{className:"custom-400:py-4 py-2 px-8 border border-solid border-ab-primary rounded mr-auto",onClick:()=>G(!1),children:"Add"})]}):!Y&&Object(j.jsx)("button",{className:"custom-400:py-4 py-2 px-8 border border-solid border-ab-primary rounded mr-auto",onClick:()=>P(!0),children:"Add Education"}),d.education&&Object(j.jsx)("span",{className:"text-ab-secondary text-sm my-1",children:d.education})]})}function T(e){var t,a;let{form:l,error:s,setError:r}=e,c=!0;return null!==(t=l.education)&&void 0!==t&&null!==(a=t.education)&&void 0!==a&&a.length||(r({...s,education:"*Atleast one education is required"}),c=!1),c&&r({}),c}var A=a(709),I=a(1907),P=a(704),Y=a(1908),M=a(39),R=a.n(M),D=a(1905);const _=Object(Y.a)(),V=Object(r.a)((()=>({tooltip:{color:"#8692A6",backgroundColor:"#fff",fontSize:"14px",padding:"10px",boxShadow:"2px 2px 10px 1px rgba(0,0,0,0.2)",borderRadius:"8px"},tooltipArrow:{color:"rgba(100,100,100, 0.6)"}})));function L(e){var t,a,s,r,n,o;let{form:u,setForm:m,error:x}=e;const h=V(),p=Object(c.e)((e=>e.userSubscriptionReducer.profileOnboardingData)),[O,v]=Object(l.useState)({}),[S,k]=Object(l.useState)(1),[E,F]=Object(l.useState)([]),[C,T]=Object(l.useState)([]),[Y,M]=Object(l.useState)({}),[L,q]=Object(l.useState)(!1),[B,z]=Object(l.useState)(!1),U="w-full p-4 bg-gray-200 rounded text-blue-c9 cursor-pointer hover:bg-gray-300 focus:ring focus:ring-blue-c2 focus:text-blue-c2 select-none";Object(l.useEffect)((()=>{var e,t,a;Array.isArray(null===u||void 0===u||null===(e=u.workExperience)||void 0===e?void 0:e.workExperience)&&null!==u&&void 0!==u&&null!==(t=u.workExperience)&&void 0!==t&&null!==(a=t.workExperience)&&void 0!==a&&a.length&&k(2),null!==p&&void 0!==p&&p.companies&&F(null===p||void 0===p?void 0:p.companies),null!==p&&void 0!==p&&p.jobTitles&&T(null===p||void 0===p?void 0:p.jobTitles)}),[p]);const W=(e,t)=>{if(!e)return null;v({...O,[t]:{name:e.name,id:e.id}})},$=(e,t)=>{if(null===e){const e={...O};delete e[t],v({...e})}else{const a=R()(e).format("MMMM"),l=R()(e).format("YYYY");v({...O,[t]:`${a} ${l}`})}},J=e=>{Array.isArray(e)&&k(2),m({...u,workExperience:{workExperience:e}})};return 1===S?Object(j.jsxs)("div",{className:"gap-4 gap-x-10 md:px-10 px-4 py-2 flex flex-col",children:[Object(j.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[Object(j.jsx)("h2",{className:"md:text-2xl text-lg font-semibold text-center",children:"What's your level of work experience?"}),Object(j.jsx)("button",{className:U+` ${"unemployed"===u.workExperience.workExperience&&"ring ring-blue-c2"}`,onClick:()=>J("unemployed"),children:"I have graduated but have not worked in past"}),Object(j.jsx)("button",{className:U+` ${"fresher"===u.workExperience.workExperience&&"ring ring-blue-c2"}`,onClick:()=>J("fresher"),children:"I am currently studying in college"}),Object(j.jsx)("button",{className:U,onClick:()=>J([]),children:"I was previously working but unemployed currently"}),Object(j.jsx)("button",{className:U,onClick:()=>J([]),children:"0-2 years of work experience (no gap years)"}),Object(j.jsx)("button",{className:U,onClick:()=>J([]),children:"2+ years of work experience (no gap years)"})]}),x.workExperience&&Object(j.jsx)("span",{className:"text-ab-secondary text-sm",children:x.workExperience})]}):Object(j.jsxs)("div",{className:"gap-4 gap-x-10 md:px-10 custom-400:px-4 custom-400:py-2 flex flex-col",children:[Object(j.jsx)("div",{className:"flex flex-col gap-6",children:Array.isArray(u.workExperience.workExperience)&&u.workExperience.workExperience.map(((e,t)=>{var a;return Object(j.jsxs)("div",{className:"p-4 grid grid-cols-2 gap-4 bg-gray-100 rounded-md",children:[Object(j.jsxs)("div",{className:"flex flex-col",children:[Object(j.jsx)("label",{className:"text-blue-c9",htmlFor:"company",children:"Company"}),e.company.name]}),Object(j.jsxs)("div",{className:"flex flex-col",children:[Object(j.jsx)("label",{className:"text-blue-c9",htmlFor:"role",children:"Role"}),e.role.name]}),Object(j.jsxs)("div",{className:"flex flex-col",children:[Object(j.jsx)("label",{className:"text-blue-c9",htmlFor:"from",children:"From"}),e.from]}
1),Object(j.jsxs)("div",{className:"flex flex-col",children:[Object(j.jsx)("label",{className:"text-blue-c9",htmlFor:"to",children:"To"}),e.to?e.to:"Present"]}),(null===e||void 0===e?void 0:e.salary)&&Object(j.jsxs)("div",{className:"flex flex-col",children:[Object(j.jsx)("label",{className:"text-blue-c9",htmlFor:"from",children:"Annual Salary"}),null===e||void 0===e||null===(a=e.salary)||void 0===a?void 0:a.name," LPA"]}),e.description&&Object(j.jsxs)("div",{className:"flex flex-col",children:[Object(j.jsx)("label",{className:"text-blue-c9",htmlFor:"to",children:"Description"}),e.description]})]},t)}))}),null===u||void 0===u||null===(t=u.workExperience)||void 0===t||null===(a=t.workExperience)||void 0===a||!a.length||B?Object(j.jsxs)(j.Fragment,{children:[Object(j.jsxs)("div",{className:"md:grid grid-cols-2 gap-4 gap-x-10 flex flex-col",children:[Object(j.jsxs)("div",{className:"flex flex-col",children:[Object(j.jsxs)("label",{className:"text-blue-c9 mb-1",htmlFor:"company",children:["Company"," ",Object(j.jsx)("span",{className:"text-ab-secondary text-sm ml-2",children:Y.company||""})]}),Object(j.jsx)(d.a,{disableClearable:!0,disabled:L,id:"company",name:"company",placeholder:"Select Company",value:(H=O.company,H?E.find((e=>e.id===H.id)):null),onChange:async(e,t)=>{if(t&&t.inputValue){q(!0);const e=await Object(f.a)({name:t.inputValue});q(!1),F([...E,e]),W(e,"company")}else W(t,"company")},options:E,getOptionLabel:e=>e&&e.name&&0!==Object.keys(e).length?e.name:"",filterOptions:(e,t)=>{const a=_(e,t);return""===t.inputValue||null!==a&&void 0!==a&&a.length||a.push({inputValue:t.inputValue,name:`Add ${t.inputValue}`}),a},renderInput:e=>Object(j.jsx)(i.a,{...e,variant:"outlined",InputProps:{...e.InputProps,endAdornment:Object(j.jsxs)(j.Fragment,{children:[L?Object(j.jsx)(A.a,{color:"inherit",size:20}):null,e.InputProps.endAdornment]})}})})]}),Object(j.jsxs)("div",{className:"flex flex-col",children:[Object(j.jsxs)("label",{className:"text-blue-c9 mb-1",htmlFor:"role",children:["Role ",Object(j.jsx)("span",{className:"text-ab-secondary text-sm ml-2",children:Y.role||""})]}),Object(j.jsx)(d.a,{disableClearable:!0,disabled:L,id:"role",name:"role",placeholder:"Select Role",value:(G=O.role,G?C.find((e=>e.id===G.id)):null),options:C,getOptionLabel:e=>e&&e.name&&0!==Object.keys(e).length?e.name:"",onChange:async(e,t)=>{if(t&&t.inputValue){q(!0);const e=await Object(f.d)({name:t.inputValue});q(!1),T([...C,e]),W(e,"role")}else W(t,"role")},filterOptions:(e,t)=>{const a=_(e,t);return""===t.inputValue||null!==a&&void 0!==a&&a.length||a.push({inputValue:t.inputValue,name:`Add ${t.inputValue}`}),a},renderInput:e=>Object(j.jsx)(i.a,{...e,variant:"outlined",InputProps:{...e.InputProps,endAdornment:Object(j.jsxs)(j.Fragment,{children:[L?Object(j.jsx)(A.a,{color:"inherit",size:20}):null,e.InputProps.endAdornment]})}})})]}),Object(j.jsxs)("div",{className:"flex flex-col",children:[Object(j.jsxs)("label",{className:"text-blue-c9 mb-1",htmlFor:"from",children:["From ",Object(j.jsx)("span",{className:"text-ab-secondary text-sm ml-2",children:Y.from||""})]}),Object(j.jsx)(y.a,{utils:w.a,children:Object(j.jsx)(N.a,{autoOk:!0,clearable:!0,disableFuture:!0,inputVariant:"outlined",placeholder:"Select Month & Year",name:"from",openTo:"month",format:"MM/yyyy",views:["month","year"],value:O.from?R()(O.from,"MMMM YYYY").toDate().toString():null,onChange:e=>$(e,"from")})})]}),Object(j.jsxs)("div",{className:"flex flex-col",children:[Object(j.jsx)("label",{className:"text-blue-c9 mb-1",htmlFor:"to",children:"To"}),Object(j.jsx)(y.a,{utils:w.a,children:Object(j.jsx)(N.a,{autoOk:!0,clearable:!0,disableFuture:!0,inputVariant:"outlined",placeholder:"Select Month & Year",name:"to",openTo:"month",format:"MM/yyyy",views:["month","year"],value:O.to?R()(O.to,"MMMM YYYY").toDate().toString():null,onChange:e=>$(e,"to"),helperText:"Leave blank if presently working"})})]}),Object(j.jsxs)("div",{className:"flex flex-col",children:[Object(j.jsxs)("label",{className:"text-blue-c9 mb-1",htmlFor:"salary",children:["Annual Salary"," ",Object(j.jsx)(g.a,{arrow:!0,classes:{tooltip:h.tooltip,arrow:h.tooltipArrow},title:"We use this information to match you with better placement opportunities.",children:Object(j.jsx)(D.a,{className:"text-blue-c9  cursor-pointer",fontSize:"small"})}),Object(j.jsx)("span",{className:"text-ab-secondary text-sm ml-2",children:Y.salary||""})]}),Object(j.jsx)(b.c,{name:"salary",variant:"outlined",placeholder:"Annual Salary : Ex - 4.5 LPA",error:null===O||void 0===O||null===(s=O.error)||void 0===s?void 0:s.salary,helperText:(null===O||void 0===O||null===(r=O.error)||void 0===r?void 0:r.salary)||"",inputMode:"decimal",InputProps:{endAdornment:Object(j.jsx)(I.a,{position:"end",children:Object(j.jsx)("span",{children:"(LPA)"})})},value:null!==(n=null===O||void 0===O||null===(o=O.salary)||void 0===o?void 0:o.name)&&void 0!==n?n:"",onCh
1ange:e=>{const t=e.target.value;if(/^\d*\.?\d*$/.test(t)){if(t>100)return;W({name:t,id:t},"salary")}}})]}),Object(j.jsxs)("div",{className:"flex flex-col col-span-2",children:[Object(j.jsx)("label",{className:"text-blue-c9 mb-1",htmlFor:"description",children:"Job Description"}),Object(j.jsx)(P.a,{style:{border:"1px solid rgba(0,0,0,0.3)",padding:12,borderRadius:"4px"},name:"description",placeholder:"Let us know what you worked on (optional)",value:O.description||"",onChange:e=>{v({...O,[e.target.name]:e.target.value})},minRows:4})]})]}),Object(j.jsx)("button",{className:"custom-400:py-4 py-2 px-8 border border-solid border-ab-primary rounded mr-auto",onClick:e=>{(()=>{var e;const t={};return O.company||(t.company="*This field is required"),O.role||(t.role="*This field is required"),O.from||(t.from="*This field is required"),O.salary||(t.salary="*This field is required"),M(t),!(null!==(e=Object.keys(t))&&void 0!==e&&e.length)})()&&(m({...u,workExperience:{workExperience:[...u.workExperience.workExperience,O]}}),v({}),z(!1))},children:"Add"})]}):Object(j.jsx)("button",{className:"custom-400:py-4 py-2 px-8 border border-solid border-ab-primary rounded mr-auto",onClick:()=>z(!0),children:"Add Experience"}),x.workExperience&&Object(j.jsx)("span",{className:"text-ab-secondary text-sm my-1",children:x.workExperience})]});var G,H}function q(e){var t,a,l;let{form:s,error:r,setError:c}=e,n=!0;return null!==(t=s.workExperience)&&void 0!==t&&t.workExperience&&null!==(a=s.workExperience)&&void 0!==a&&null!==(l=a.workExperience)&&void 0!==l&&l.length||(c({...r,workExperience:"*Atleast one work experience is required"}),n=!1),n&&c({}),n}var B=a(7);function z(e){var t,a,s,r,c,n,i,o,d,u;let{form:b,setForm:m,error:x,course:h}=e;const p="w-full p-4 bg-gray-200 rounded text-blue-c9 cursor-pointer hover:bg-gray-300 focus:ring focus:ring-blue-c2 focus:text-blue-c2 select-none",[O,v]=Object(l.useState)((null===b||void 0===b||null===(t=b.goal)||void 0===t||null===(a=t.goal)||void 0===a?void 0:a[h])||(null===b||void 0===b||null===(s=b.goal)||void 0===s||null===(r=s.goal)||void 0===r?void 0:r[B.h.DATA_SCIENCE])||(null===b||void 0===b||null===(c=b.goal)||void 0===c||null===(n=c.goal)||void 0===n?void 0:n[B.h.WEB_DEV])||(null===b||void 0===b||null===(i=b.goal)||void 0===i||null===(o=i.goal)||void 0===o?void 0:o[B.h.MASTERS_DS_AS])||(null===b||void 0===b||null===(d=b.goal)||void 0===d||null===(u=d.goal)||void 0===u?void 0:u[B.h.MASTERS_CS]));Object(l.useEffect)((()=>{O&&m({...b,goal:{goal:{...b.goal.goal,[h]:O}}})}),[]);const g=e=>{v(e),m({...b,goal:{goal:{...b.goal.goal,[h]:e}}})};return Object(j.jsxs)("div",{className:"gap-4 gap-x-10 lg:px-20 md:px-10 px-4 py-2 flex flex-col",children:[Object(j.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[Object(j.jsx)("h2",{className:"md:text-2xl text-lg font-semibold text-center",children:"What's your reason to pursue this course with us?"}),Object(j.jsx)("button",{className:p+` ${"only here to learn"===O&&"ring ring-blue-c2"}`,onClick:()=>g("only here to learn"),children:"Only Here to Learn"}),Object(j.jsx)("button",{className:p+` ${"get a job"===O&&"ring ring-blue-c2"}`,onClick:()=>g("get a job"),children:"Get a Job"}),Object(j.jsx)("button",{className:p+` ${"switch career"===O&&"ring ring-blue-c2"}`,onClick:()=>g("switch career"),children:"Switch Career"})]}),x.goal&&Object(j.jsx)("span",{className:"text-ab-secondary text-sm",children:x.goal||""})]})}function U(e){var t,a,l;let{form:s,error:r,setError:c,course:n}=e,i=!0;return null!==(t=s.goal)&&void 0!==t&&null!==(a=t.goal)&&void 0!==a&&a[n]&&null!==(l=Object.keys(s.goal.goal))&&void 0!==l&&l.length||(c({...r,goal:"*Please select one option"}),i=!1),i&&c({}),i}var W=a(126),$=a(113),J=a(1014);var G=function(e){let{step:t,user:a}=e;const l="md:text-2xl md:mb-8 text-lg",s="md:text-2xl text-lg";switch(t){case 1:return Object(j.jsx)(J.a,{in:!0,children:Object(j.jsx)("h2",{className:l,children:"Let's start with some basic info to know you better. \ud83d\udcc4"})});case 2:return Object(j.jsxs)(j.Fragment,{children:[Object(j.jsx)("h2",{className:l,children:"Thanks for all the basic 
1info."}),Object(j.jsx)("h3",{className:s,children:"Please tell us a bit about your education. \ud83c\udfc5"})]});case 3:return Object(j.jsxs)(j.Fragment,{children:[Object(j.jsx)("h2",{className:l,children:"Awesome, thanks for sharing your education details. \u2764\ufe0f"}),Object(j.jsx)("h3",{className:s,children:"Now, we would like to add your work experience to your profile. \ud83d\udcbc"})]});case 4:return Object(j.jsxs)(j.Fragment,{children:[Object(j.jsx)("div",{className:l,children:Object(j.jsxs)("span",{children:["Almost there, ",a.firstName,"! \ud83c\udff4"]})}),Object(j.jsx)("h3",{className:s,children:"Would like to learn about your goal at AlmaBetter"})]})}},H=a(1911),K=a(966),X=a.n(K);const Q=["Basic Info","Education","Work Exp.","Goal"];var Z=function(e){let{onboardingInitialize:t,currentStep:a,classes:l,progress:s}=e;return Object(j.jsx)("div",{className:"col-span-8",children:Object(j.jsx)(J.a,{in:t,children:Object(j.jsxs)("div",{className:"grid grid-rows-2 gap-2 h-20",children:[Object(j.jsx)("div",{className:"flex items-center md:justify-center justify-around text-gray-400",children:null===Q||void 0===Q?void 0:Q.map(((e,t)=>Object(j.jsxs)("div",{className:`flex items-center custom-400:w-full ${t!==(null===Q||void 0===Q?void 0:Q.length)-1?"justify-around":"justify-start"} md:text-base text-sm`,children:[Object(j.jsx)("span",{className:`relative ${a===t+1&&"text-ab-secondary font-semibold pointer-events-none"}`,children:e}),t!==(null===Q||void 0===Q?void 0:Q.length)-1&&Object(j.jsx)(X.a,{className:"text-gray-400"})]},t)))}),Object(j.jsx)(H.a,{classes:{root:l.root,bar:l.bar},variant:"determinate",value:s})]})})})},ee=a(760),te=a(1141),ae=a.n(te);var le=function(e){var t,a,l;let{MASTER_FORM_OBJECT_FOR_CURRENT_STEP:s,onboardingInitialize:r,loading:c,currentStep:n,handlePrevStep:i,handleNextStep:o}=e;return Object(j.jsx)(J.a,{in:r,children:Object(j.jsxs)("div",{className:"col-span-8 place-self-start shadow-lg p-6 flex-1 border border-solid border-ab-primary border-opacity-10 rounded-lg w-full bg-white md:mb-0 mb-4",children:[c.data?Object(j.jsx)("div",{className:"w-full h-60 grid place-items-center",children:Object(j.jsx)(A.a,{className:"m-auto"})}):null===s||void 0===s||null===(t=s[n])||void 0===t?void 0:t.FORM,Object(j.jsx)("hr",{className:"w-10/12 my-6 m-auto"}),Object(j.jsxs)("div",{className:"flex custom-400:items-center px-4 md:px-10 gap-8 justify-center",children:[("payment"!==(null===(a=window.location.pathname.split("/"))||void 0===a?void 0:a[1])||n>1)&&Object(j.jsxs)("button",{className:"flex items-center gap-2 border border-solid rounded md:px-20 px-6 md:p-4 py-1.5 border-black",onClick:i,children:[Object(j.jsx)(ae.a,{}),"Back"]}),Object(j.jsx)(ee.b,{disabled:c.formSubmit,className:"md:p-4 md:text-lg rounded md:px-20 px-6 text-base",onClick:o,children:n<(null===(l=Object.keys(s))||void 0===l?void 0:l.length)?"Continue":"Finish Onboarding"})]})]})})},se=a(1972),re=a(1912),ce=a(1973),ne=a(49),ie=a(859),oe=a(21);var de=function(e){let{dialog:t,classes:a,user:l,MASTER_FORM_OBJECT_FOR_CURRENT_STEP:s,currentStep:r,selectedCourse:i}=e;const o=Object(c.d)(),d=Object(ne.useHistory)();return Object(j.jsxs)(se.a,{open:t,className:a.dialog,children:[Object(j.jsx)("div",{className:"absolute inset-0 max-h-36",children:Object(j.jsx)("div",{className:"relative overflow-hidden w-full h-36",children:Object(j.jsx)(ie.a,{height:"120px",numberOfPieces:80})})}),Object(j.jsx)(re.a,{style:{textAlign:"center",fontSize:"2rem",fontWeight:700},children:"Successfully Onboarded!"}),Object(j.jsx)(ce.a,{children:Object(j.jsxs)("div",{className:"flex flex-col gap-6",children:[Object(j.jsxs)("span",{className:"text-lg font-medium",children:["Congratulations ",l.firstName,", for successfully completing your onboarding on AlmaBetter Learning Platform. Let's go to your Dashboard to continue your learning journey"]}),Object(j.jsx)(ee.b,{className:"p-4 text-lg rounded md:px-20 my-2 m-auto",onClick:async()=>{await o(Object(n.i)(s[r].STEP_TO_UPDATE)),d.push(oe.a.COURSE_LMS_DASHBOARD.LEARN_HOME(i))},children:"My Dashboard"})]})})]})},ue=a(11),be=a(200),me=a.n(be);var je=function(e){var t,a,r,n,i,o,d;let{user:u,courseName:b,setOnboardingInitialize:m,subscriptionDetail
1s:x,profileInfo:h}=e;const p="web-dev"===b?"web3":b,O=null===x||void 0===x||null===(t=x[p])||void 0===t?void 0:t.paymentMode,v=null===x||void 0===x?void 0:x[p],g=Object(ue.i)(null===v||void 0===v?void 0:v.courseType,null===v||void 0===v?void 0:v.planType),f=Object(c.e)((e=>e.userSubscriptionReducer.paymentCompleted)),y=h&&((null===h||void 0===h||null===(a=h.basicInfo)||void 0===a?void 0:a.state)||(null===h||void 0===h||null===(r=h.education)||void 0===r||null===(n=r.education)||void 0===n?void 0:n.length)||(null===h||void 0===h||null===(i=h.goal)||void 0===i?void 0:i.goal)||"string"===typeof(null===h||void 0===h?void 0:h.workExperience)||0===(null===h||void 0===h||null===(o=h.workExperience)||void 0===o||null===(d=o.workExperience)||void 0===d?void 0:d.length));return Object(l.useEffect)((()=>{window.fbq("track","Purchase",{eventID:u.id}),me.a.track("12759956","2558316")}),[]),Object(j.jsxs)("div",{className:"md:bg-white bg-ab-gray-c10 h-screen",children:[Object(j.jsx)("div",{className:"bg-white md:px-16 md:pt-16 p-4 text-center",children:Object(j.jsx)("img",{className:"h-7 custom-400:mx-0 mx-auto",src:s.a,alt:"Logo"})}),Object(j.jsx)("div",{className:"flex items-center justify-center flex-col md:h-auto h-85%",children:Object(j.jsxs)("div",{className:"font-semibold m-auto text-center md:p-16 p-8 md:shadow-none shadow-normal bg-white px-2 md:mx-0 mx-4 rounded-lg md:rounded-none max-w-2xl",children:[Object(j.jsxs)("h2",{className:"text-2xl mb-6",children:["\ud83d\udc4b Hi ",u.firstName,","]}),Object(j.jsx)("h2",{className:"md:text-2xl text-xl mb-4",children:O&&!y||f?`Thanks for enrolling in our ${g} Program.`:"We noticed that your profile is still incomplete!"}),Object(j.jsxs)("div",{className:"mb-8 text-lg md:text-xl",children:[Object(j.jsx)("span",{className:"font-thin",children:"Before we kickstart your journey, please share more about your profile. \xa0"}),Object(j.jsx)("span",{className:"underline",children:"We use your profile to improve it and share it with our recruiter partners right from Day 1 to help you land the right job."})]}),Object(j.jsx)(ee.b,{className:"px-16 py-4 rounded md:my-6 my-4",onClick:()=>m(!0),children:"Get Started"})]})})]})},xe=a(155);const he=Object(r.a)((()=>({root:{height:10,borderRadius:5,background:"rgba(134, 146, 166, 0.3)"},bar:{borderRadius:5,background:"linear-gradient(90deg, #684AA7 21.47%, #E15F7A 113.19%)"},dialog:{"& .MuiBackdrop-root":{background:"rgba(0,0,0,0.6)",backdropFilter:"blur(2px)"},"& .MuiPaper-root":{padding:"20px",maxWidth:"700px"}}})));t.default=function(e){let{courseSelected:t}=e;const a=Object(c.e)(W.q),r=he(),i=Object(c.e)(n.e),o=Object(c.e)(n.f),d=Object(c.e)($.a),u=Object(c.d)(),[b,m]=Object(l.useState)((x=i.onBoardingFormStage||B.w.BASIC_INFO,{[B.w.BASIC_INFO]:1,[B.w.EDUCATION]:2,[B.w.WORK_EXPERIENCE]:3,[B.w.GOAL]:4}[x]||1));var x;const O=Object.freeze({basicInfo:{},education:{education:[]},workExperience:{workExperience:null},goal:{goal:null}}),[g,y]=Object(l.useState)(O),[N,w]=Object(l.useState)({data:!0,formSubmit:!1,pageLoading:!1}),[S,k]=Object(l.useState)({}),[E,F]=Object(l.useState)(!1),[I,P]=Object(l.useState)(1!==b),Y=Object(l.useRef)();Object(l.useEffect)((()=>(window.onpopstate=()=>{u(Object(xe.j)(!1))},()=>{window.onpopstate=null})),[]),Object(l.useEffect)((()=>{if(o){var e,t,a;const l=null!==(e=null===o||void 0===o||null===(t=o.education)||void 0===t||null===(a=t.education)||void 0===a?void 0:a.filter((e=>(null===e||void 0===e||!e.school)&&!v.a.isEmpty(null===e||void 0===e?void 0:e.university))))&&void 0!==e?e:[],s={...null===o||void 0===o?void 0:o.education,education:l},r={...o,education:s};y({...O,...r}),w({...N,formSubmit:!1,data:!1})}}),[o]),Object(l.useEffect)((()=>{!async function(){try{await u(Object(n.c)()),await u(Object(W.b)({forced:!0}));const[e,t,a,l]=await Promise.all([Object(f.s)(),Object(f.q)(),Object(f.p)(),Object(f.r)()]);u(Object(W.m)({educationStream:t,degree:e,companies:a,jobTitles:l}))}catch(S){console.error(S)}}()}),[]);const M=Object(l.useMemo)((()=>E?100:(b-1)*Math.floor(25)+Math.floor(25)/2),[b,E]),R={1:{FORM:Object(j.jsx)(h,{form:g,setForm:y,error:S}),STEP_TO_UPDATE:{onBoardingFormStage:"EDUCATION"},VALIDATOR:p},2:{FORM:Object(j.jsx)(C,{form:g,setForm:y,error:S}),STEP_TO_UPDATE:{onBoardingFormStage:"WORK_EXPERIENCE"},VALIDATOR:T},3:{FORM:Object(j.jsx)(L,{form:g,setForm:y,error:S}),STEP_TO_UPDATE:{onBoardingFormStage:"GOAL"},VALIDATOR:q},4:{FORM:Object(j.jsx)(z,{form:g,setForm:y,error:S,course:t}),STEP_TO_UPDATE:{onBoardingFormStage:null},VALIDATOR:U}};return Object(l.useEffect)((()=>{var e;null===(e=Y.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"start",inline:"start"})}),[b]),I?Object(j.jsxs)("div",{className:"relative min-h-screen",ref:Y,children:[Object(j.jsxs)("div",{className:"relative",children:[Object(j.jsx)("div",{className:"md:hidden p-4",children:Object(j.jsx)("img",{className:"h-7 custom-400:mx-0 mx-auto",src:s.a,alt:"Logo"})}),Object(j.jsx)("hr",{className:"absolute w-full bottom-0.5",style:{backgroundColor:"#F3F3F5"}})]}),N.formSubmit&&Object(j.jsx)("div",{className:"fixed left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 z-50",children:Object(j.jsx)(A.a,{})}),Object(j.jsx)("div",{className:"md:bg-white bg-ab-gray-c10 md:p-16 p-4 overflow-auto h-full",children:Object(j.jsx)("div",{className:"relative",children:Object(j.jsxs)("div",{className:"md:grid grid-cols-12 gap-y-12 items-center "+(N.formSubmit?"opacity-40":""),children:[Object(j.jsx)("img",{className:"h-7 custom-400:mx-0 mx-auto col-span-4 md:block hidden",src:s.a,alt:"Logo"}),Object(j.jsx)("div",{className:"col-span-8",children:Object(j.jsx)(Z,{onboardingInitialize:I,currentStep:b,classes:r,progress:M})}),Object(j.jsx)("div",{className:"md:col-span-4 col-span-8 md:place-self-start font-semibold md:max-w-sm w-auto md:order-none -order-1 md:p-0 p-4 bg-white md:bg-transparent roun
1ded-md md:rounded-none mb-4 md:mb-0 md:shadow-none shadow-normal",children:G({step:b,user:i})}),Object(j.jsx)(le,{MASTER_FORM_OBJECT_FOR_CURRENT_STEP:R,onboardingInitialize:I,loading:N,currentStep:b,handlePrevStep:()=>{b>1&&m((e=>e-1))},handleNextStep:async()=>{try{var e,a;if(null!==(e=R[b])&&void 0!==e&&e.VALIDATOR({form:g,error:S,setError:k,course:t}))w({...N,formSubmit:!0}),await u(Object(n.h)(g)),await u(Object(n.b)()),w({...N,formSubmit:!1,data:!1}),b<(null===(a=Object.keys(R))||void 0===a?void 0:a.length)?(await u(Object(n.i)(R[b].STEP_TO_UPDATE)),m((e=>e+1))):(await u(Object(W.b)({forced:!0})),F(!0),u(Object(W.l)(!1)))}catch(S){console.error(S)}}})]})})}),Object(j.jsx)(de,{dialog:E,classes:r,user:i,MASTER_FORM_OBJECT_FOR_CURRENT_STEP:R,currentStep:b,selectedCourse:d})]}):Object(j.jsx)(je,{user:i,courseName:t,setOnboardingInitialize:P,subscriptionDetails:a,profileInfo:o})}},974:function(e,t,a){"use strict";a(3);var l=a(768),s=a(728),r=a.p+"static/media/tShirtSizeChartDesk.c5dca6ed.png",c=a.p+"static/media/tShirtSizeChartMobile.ae57dd02.png",n=a(2);t.a=e=>{let{isModalOpen:t,setIsModalOpen:a}=e;return Object(n.jsxs)(s.a,{isOpen:t,setIsOpen:a,removePadding:!0,children:[Object(n.jsxs)("div",{className:"w-624 relative hidden md:block",children:[Object(n.jsx)("img",{src:r,alt:"size chart"}),Object(n.jsx)(l.f,{className:"absolute top-2 right-2 cursor-pointer",onClick:()=>{a(!1)}})]}),Object(n.jsxs)("div",{className:"w-312 relative block md:hidden",children:[Object(n.jsx)("img",{src:c,alt:"size chart"}),Object(n.jsx)(l.f,{className:"absolute top-2 right-2 cursor-pointer",onClick:()=>{a(!1)}})]})]})}}}]);

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.