1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1249],{42523:function(e,t,n){n.d(t,{n:function(){return a}});let a={AF:"Afghanistan",AL:"Albania",DZ:"Algeria",AD:"Andorra",AO:"Angola",AG:"Antigua and Barbuda",AR:"Argentina",AM:"Armenia",AU:"Australia",AT:"Austria",AZ:"Azerbaijan",BS:"Bahamas",BH:"Bahrain",BD:"Bangladesh",BB:"Barbados",BY:"Belarus",BE:"Belgium",BZ:"Belize",BJ:"Benin",BT:"Bhutan",BO:"Bolivia",BA:"Bosnia and Herzegovina",BW:"Botswana",BR:"Brazil",BN:"Brunei",BG:"Bulgaria",BF:"Burkina Faso",BI:"Burundi",CV:"Cabo Verde",KH:"Cambodia",CM:"Cameroon",CA:"Canada",CF:"Central African Republic",TD:"Chad",CL:"Chile",CN:"China",CO:"Colombia",KM:"Comoros",CD:"Congo, Democratic Republic of the",CG:"Congo, Republic of the",CR:"Costa Rica",CI:"C\xf4te d'Ivoire",HR:"Croatia",CU:"Cuba",CY:"Cyprus",CZ:"Czechia",DK:"Denmark",DJ:"Djibouti",DM:"Dominica",DO:"Dominican Republic",EC:"Ecuador",EG:"Egypt",SV:"El Salvador",GQ:"Equatorial Guinea",ER:"Eritrea",EE:"Estonia",SZ:"Eswatini",ET:"Ethiopia",FJ:"Fiji",FI:"Finland",FR:"France",GA:"Gabon",GM:"Gambia",GE:"Georgia",DE:"Germany",GH:"Ghana",GR:"Greece",GD:"Grenada",GT:"Guatemala",GN:"Guinea",GW:"Guinea-Bissau",GY:"Guyana",HT:"Haiti",HN:"Honduras",HK:"Hong Kong",HU:"Hungary",IS:"Iceland",IN:"India",ID:"Indonesia",IR:"Iran",IQ:"Iraq",IE:"Ireland",IL:"Israel",IT:"Italy",JM:"Jamaica",JP:"Japan",JO:"Jordan",KZ:"Kazakhstan",KE:"Kenya",KI:"Kiribati",KP:"Korea, North",KR:"Korea, South",XK:"Kosovo",KW:"Kuwait",KG:"Kyrgyzstan",LA:"Laos",LV:"Latvia",LB:"Lebanon",LS:"Lesotho",LR:"Liberia",LY:"Libya",LI:"Liechtenstein",LT:"Lithuania",LU:"Luxembourg",MG:"Mad
1agascar",MW:"Malawi",MY:"Malaysia",MV:"Maldives",ML:"Mali",MT:"Malta",MH:"Marshall Islands",MR:"Mauritania",MU:"Mauritius",MX:"Mexico",FM:"Micronesia",MD:"Moldova",MC:"Monaco",MN:"Mongolia",ME:"Montenegro",MA:"Morocco",MZ:"Mozambique",MM:"Myanmar",NA:"Namibia",NR:"Nauru",NP:"Nepal",NL:"Netherlands",NZ:"New Zealand",NI:"Nicaragua",NE:"Niger",NG:"Nigeria",MK:"North Macedonia",NO:"Norway",OM:"Oman",PK:"Pakistan",PR:"Puerto Rico",PW:"Palau",PS:"Palestine",PA:"Panama",PG:"Papua New Guinea",PY:"Paraguay",PE:"Peru",PH:"Philippines",PL:"Poland",PT:"Portugal",QA:"Qatar",RO:"Romania",RU:"Russia",RW:"Rwanda",KN:"Saint Kitts and Nevis",LC:"Saint Lucia",VC:"Saint Vincent and the Grenadines",WS:"Samoa",SM:"San Marino",ST:"S\xe3o Tom\xe9 and Pr\xedncipe",SA:"Saudi Arabia",SN:"Senegal",RS:"Serbia",SC:"Seychelles",SL:"Sierra Leone",SG:"Singapore",SK:"Slovakia",SI:"Slovenia",SB:"Solomon Islands",SO:"Somalia",ZA:"South Africa",SS:"South Sudan",ES:"Spain",LK:"Sri Lanka",SD:"Sudan",SR:"Suriname",SE:"Sweden",CH:"Switzerland",SY:"Syria",TW:"Taiwan",TJ:"Tajikistan",TZ:"Tanzania",TH:"Thailand",TL:"Timor-Leste",TG:"Togo",TO:"Tonga",TT:"Trinidad and Tobago",TN:"Tunisia",TR:"Turkey",TM:"Turkmenistan",TV:"Tuvalu",UG:"Uganda",UA:"Ukraine",AE:"United Arab Emirates",GB:"United Kingdom",US:"United States",UY:"Uruguay",UZ:"Uzbekistan",VU:"Vanuatu",VA:"Vatican City",VE:"Venezuela",VN:"Vietnam",YE:"Yemen",ZM:"Zambia",ZW:"Zimbabwe"}},49374:function(e,t,n){n.d(t,{F:function(){return i}});var a=n(97502),r=n(60089);function i(e,t,n){let i=(0,a.Z)(),o=(0,r.Z)(i.breakpoints.up(t)),s=(0,r.Z)(i.breakpoints.down(t)),l=(0,r.Z)(i.breakpoints.between(t,n)),d=(0,r.Z)(i.breakpoints.only(t));return"up"===e?o:"down"===e?s:"between"===e?l:d}},17450:function(e,t,n){n.d(t,{V:function(){return l},u:function(){return d}});var a=n(27573),r=n(7653),i=n(99948),o=n(49023);let s=(0,r.createContext)();function l(){return(0,r.useContext)(s)}function d(e){let{children:t}=e,[n,l]=(0,r.useState)(!1),[d,c]=(0,r.useState)(null),[u,p]=(0,r.useState)(null),[g,x]=(0,r.useState)(6e3),[m,h]=(0,r.useState)({vertical:"bottom",horizontal:"left"}),y=()=>{l(!1),c(null),p(null)};return(0,a.jsxs)(s.Provider,{value:{showAlert:e=>{let{type:t,message:n,open:a,position:r,autoHide:i=!0}=e;!0===a&&(c(n),p(t),l(!0),r&&h(r),x(i?6e3:null))}},children:[n&&(0,a.jsx)(o.Z,{open:n,message:d,autoHideDuration:g,onClose:y,anchorOrigin:m,sx:{zIndex:100000000002},children:(0,a.jsx)(i.Z,{severity:u,sx:{zIndex:100000000002,width:"100%"},onClose:y,children:d})}),t]})}},97464:function(e,t,n){n.d(t,{q:function(){return s},w:function(){return l}});var a=n(27573),r=n(7653);let i=()=>(0,a.jsx)("div",{}),o=(0,r.createContext)({LogoFull:i,Logo:i,logo:"",logoFull:""});function s(){return(0,r.useContext)(o)}function l(e){let{children:t,...n}=e;return(0,a.jsx)(o.Provider,{value:n,children:t})}},1249:function(e,t,n){n.d(t,{n:function(){return et},d:function(){return en}});var a=n(27573),r=n(50759),i=n(81695),o=n(7653),s=n(48182),l=n(75726),d=n(62066),c=n(35705),u=n(17450),p=n(88469),g=n(51211),x=n(99652),m=n(45144),h=n(53779),y=n(42449),f=n(29273),v=n(79158),w=n(86268),b=n(55991),S=n(80831),C=n(71622),_=n(10052),j=n(59255),I=n(10882),T=n(63686),E=n(70039),B=n(9812),P=n.n(B),A=n(24769),Z=n(53628),k=n(48234),D=n(97502),R=n(32134),L=n(72721),N=n(49374),z=n(83176);let M=()=>(0,a.jsxs)(b.Z,{sx:k.ey.loadingWrapper,children:[(0,a.jsx)(_.Z,{size:32}),(0,a.jsx)(b.Z,{children:"Signing you inâ¦"})]}),W=e=>{let{handleCloseSignInModal:t,msg:n,handleEntryType:r}=e;return(0,a.jsxs)(a.Fragment,{children:["success"===n.type&&(0,a.jsxs)(b.Z,{sx:k.ey.statusWrapper,children:[(0,a.jsx)(E.Z,{sx:k.ey.statusIcon}),(0,a.jsx)(b.Z,{sx:k.ey.statusTitle,children:"Check your inbox"}),(0,a.jsx)(b.Z,{sx:k.ey.statusText,children:n.msg}),(0,a.jsx)(S.Z,{fullWidth:!0,onClick:()=>{t()},variant:"contained",sx:{...k.ey.submitBtn,marginTop:"10px"},children:"Done"})]}),"importeduser"===n.type&&(0,a.jsxs)(b.Z,{sx:k.ey.statusWrapper,children:[(0,a.jsx)(T.Z,{sx:k.ey.statusIconInfo}),(0,a.jsx)(b.Z,{sx:k.ey.statusTitle,children:"Welcome ".concat(n.data.firstName,"!")}),(0,a.jsxs)(b.Z,{sx:k.ey.statusText,children:["Please sign up with"," ",(0,a.jsx)(b.Z,{component:"span",sx:k.ey.statusEmail,children:n.data.email})," ","to gain access to your designgurus.io purchases."]}),(0,a.jsx)(S.Z,{fullWidth:!0,onClick:()=>{r("signup")},variant:"contained",sx:{...k.ey.submitBtn,marginTop:"10px"},children:"Sign Up"})]})]})},O=e=>{let{handleCloseSignInModal:t,email:n,onEmailChange:r,onBack:i}=e,s=(0,N.F)("up","md"),[l,c]=(0,o.useState)(""),[u,p]=(0,o.useState)(!1),[g,x]=(0,o.useState)(!1),m=async()=>
1{if(!n){c("Email cannot be empty.");return}if(!(0,d.vV)(n)){c("Please enter a valid email address.");return}c(""),x(!0);try{var e,t;let a={searchFilter:btoa(JSON.stringify({email:n}))},r=await (0,A.k_)(A.bl.USER_PUBLIC,"GET",{params:a});if(!(null==r?void 0:null===(t=r.data)||void 0===t?void 0:null===(e=t.data)||void 0===e?void 0:e.exists)){c("No account found with this email.");return}await (0,Z.jv)(n),p(!0)}catch(e){y.k.log(e),c("Something went wrong. Please try again.")}finally{x(!1)}};return u?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(z.RA,{onClick:i}),(0,a.jsxs)(b.Z,{sx:k.ey.statusWrapper,children:[(0,a.jsx)(E.Z,{sx:k.ey.statusIcon}),(0,a.jsxs)(b.Z,{sx:k.ey.statusText,children:["We sent a password reset link to"," ",(0,a.jsx)(b.Z,{component:"span",sx:k.ey.statusEmail,children:n}),"."]}),(0,a.jsx)(S.Z,{fullWidth:!0,onClick:()=>{t()},variant:"contained",sx:{...k.ey.submitBtn,marginTop:"6px"},children:"Done"})]})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(z.RA,{onClick:i}),(0,a.jsx)(z.oq,{children:"We'll send a password reset link to your email."}),(0,a.jsxs)(b.Z,{component:"form",noValidate:!0,sx:k.ey.form,onSubmit:e=>{e.preventDefault(),m()},children:[(0,a.jsx)(j.Z,{sx:k.ey.input,size:s?"medium":"small",error:!!l,helperText:l,placeholder:"[email protected]",type:"email",name:"email",autoComplete:"username",required:!0,autoFocus:!0,value:n,onChange:e=>{l&&c(""),r(e.target.value)},id:"forgotPasswordEmail",label:"Email","data-cy":"forgot-password-email-input"}),(0,a.jsx)(C.Z,{fullWidth:!0,type:"submit",variant:"contained",loading:g,sx:k.ey.submitBtn,"data-cy":"forgot-password-submit-btn",children:"Send reset link"})]})]})};var G=e=>{var t,n,r,l;let{cypressBtnId:c,entryType:u,handleEntryType:p,userData:g,handleCloseModal:x,onViewChange:m}=e,h={email:"",password:"",passwordType:"password",forgotPasswordEmail:"",content:"signin",msg:{},passwordlessSingin:!0},f=(0,D.Z)(),v=(0,N.F)("up","md"),{LogEvent:_}=(0,s.z)(),[T,E]=(0,o.useState)(h),A=(0,i.useRouter)(),G=localStorage.getItem("byPassRecaptch"),[U,F]=(0,o.useState)(!1),H=(0,B.useTurnstile)(),[K,V]=(0,o.useState)(G||null),[Y,J]=(0,o.useState)(0),q=(0,o.useRef)(null),[X,Q]=(0,o.useState)(!1),$=!T.passwordlessSingin,ee=e=>{V(localStorage.getItem("byPassRecaptch")||e)},et=e=>{E(t=>({...t,email:e.trim(),passwordType:"password",forgotPasswordEmail:"",msg:{}}))},en=async e=>{let t;("Google"==e||"Github"==e)&&(t=await (0,d.IG)({type:e,LogEvent:_,router:A,entryType:u})),"Email"==e&&(E(e=>({...e,content:"loading"})),t=await (0,d.Qn)({email:T.email,password:T.password,token:K,LogEvent:_,entryType:u})),"Passwordless"==e&&((t=await (0,d.eq)({email:T.email,LogEvent:_,token:K,entryType:u,actionCodeSettings:{url:window.location.href,handleCodeInApp:!0}})).success&&(localStorage.setItem("emailForPasswordlessSignIn",T.email),E(e=>({...e,content:"message",msg:{msg:"We sent a sign-in link to ".concat(T.email,". Open it on this device to continue."),type:"success"}}))),F(!1)),("Email"===e||"Passwordless"===e)&&ea(),(null==t?void 0:t.msg)&&E(e=>({...e,content:"success"===t.msg.type||"importeduser"===t.msg.type?"message":"signin",msg:t.msg}))},ea=()=>{K&&H&&(ee(null),H.reset(),J(e=>e+1))},er=async()=>{if(T.email){if((0,d.vV)(T.email)){if(T.password||T.passwordlessSingin){if(T.password)en("Email");else{F(!0);let e=await (0,d.cy)(T.email);(null==e?void 0:e.exists)&&(null==e?void 0:e.passwordlessSingin)?en("Passwordless"):(E(e=>({...e,passwordlessSingin:!1})),F(!1))}}else E(e=>({...e,msg:{msg:"Password cannot be empty.",type:"error",field:"password"}}))}else E(e=>({...e,msg:{msg:"Please enter a valid email address.",type:"error",field:"email"}}))}else E(e=>({...e,msg:{msg:"Email cannot be empty.",type:"error",field:"email"}}))},ei=async(e,t)=>{try{E(e=>({...e,content:"loading"})),await (0,Z.M5)(),E(e=>({...e,msg:{msg:"Please verify email address. Check your inbox",type:"success"},content:"message"}))}catch(e){y.k.log(e)}},eo=(0,o.useRef)(!1);(0,o.useEffect)(()=>{var e,t,n;if((null==g?void 0:null===(e=g.user)||void 0===e?void 0:e.id)||(eo.current=!1),null==g?void 0:null===(t=g.user)||void 0===t?void 0:t.id){if(eo.current)return;eo.current=!0,es()}else(null==g?void 0:null===(n=g.msg)||void 0===n?void 0:n.msg)&&E(e=>({...e,content:"success"===g.msg.type||"importeduser"===g.msg.type?"message":"signin",msg:g.msg}))},[g]),(0,o.useEffect)(()=>{E(h)},[]),(0,o.useEffect)(()=>{null==m||m(T.content)},[T.content]);let es=()=>{x()};(0,o.useEffect)(()=>
1{if("loading"===T.content){let e=setTimeout(()=>{E(e=>({...e,msg:{msg:"Signing in is taking longer than expected. Please try again",type:"error"},content:"signin"})),(0,d.OnLogOut)()},3e4);return()=>clearTimeout(e)}},[T.content]);let el=e=>{var t;return(null===(t=T.msg)||void 0===t?void 0:t.field)===e?T.msg.msg:""},ed=(null===(t=T.msg)||void 0===t?void 0:t.msg)&&!(null===(n=T.msg)||void 0===n?void 0:n.field);return(0,a.jsxs)(a.Fragment,{children:["loading"===T.content&&(0,a.jsx)(M,{}),"forgotPassword"===T.content&&(0,a.jsx)(O,{handleCloseSignInModal:es,email:T.forgotPasswordEmail,onEmailChange:e=>E(t=>({...t,forgotPasswordEmail:e.trim()})),onBack:()=>E(e=>({...e,content:"signin",msg:{}}))}),"message"===T.content&&(0,a.jsx)(W,{handleEntryType:p,handleCloseSignInModal:es,msg:T.msg}),"signin"===T.content&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(z.PI,{onSelect:e=>en(e),label:"Continue with"}),(0,a.jsx)(z.oq,{children:$?"or enter your password":"or sign in with"}),(0,a.jsxs)(b.Z,{component:"form",noValidate:!0,sx:k.ey.form,onSubmit:e=>{e.preventDefault(),er()},children:[$?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(b.Z,{sx:k.ey.identityRow,children:[(0,a.jsx)(b.Z,{sx:k.ey.identityEmail,children:T.email}),(0,a.jsx)(S.Z,{variant:"text",onClick:()=>{E(e=>({...e,password:"",passwordlessSingin:!0,msg:{}})),Q(!1)},sx:k.ey.linkBtn,"data-cy":"signin-change-email-btn",children:"Change"})]}),(0,a.jsx)(b.Z,{component:"input",type:"text",name:"email",autoComplete:"username",value:T.email,readOnly:!0,tabIndex:-1,"aria-hidden":"true",sx:k.ey.visuallyHiddenInput}),(0,a.jsx)(j.Z,{sx:k.ey.input,size:v?"medium":"small",placeholder:"Your password",type:X?"text":"password",name:"password",required:!0,autoFocus:!0,error:!!el("password"),helperText:el("password"),value:T.password,inputRef:q,autoComplete:"current-password",onChange:e=>E(t=>({...t,password:e.target.value,msg:{}})),id:"signInPassword",label:"Password","data-cy":"signin-password-input".concat(c),InputProps:{endAdornment:(0,a.jsx)(I.Z,{position:"end",children:(0,a.jsx)(w.Z,{"aria-label":"toggle password visibility",onClick:()=>{let e=q.current,t=null==e?void 0:e.selectionStart;Q(e=>!e),requestAnimationFrame(()=>{var n;null==e||null===(n=e.setSelectionRange)||void 0===n||n.call(e,t,t)})},onMouseDown:e=>{e.preventDefault()},edge:"end",children:X?(0,a.jsx)(R.Z,{sx:{fontSize:"20px"}}):(0,a.jsx)(L.Z,{sx:{fontSize:"20px"}})})})}}),(0,a.jsx)(b.Z,{sx:k.ey.inlineActionRow,children:(0,a.jsx)(S.Z,{variant:"text",onClick:()=>{E(e=>({...e,content:"forgotPassword",forgotPasswordEmail:e.forgotPasswordEmail||e.email,msg:{}}))},sx:k.ey.linkBtn,"data-cy":"forgot-password-btn",children:"Forgot password?"})})]}):(0,a.jsx)(j.Z,{sx:k.ey.input,size:v?"medium":"small",placeholder:"[email protected]",type:"email",name:"email",required:!0,autoFocus:!0,error:!!el("email"),helperText:el("email"),value:T.email,onChange:e=>et(e.target.value),id:"signInEmail",label:"Email",autoComplete:"username","data-cy":"signin-email-input".concat(c)}),ed&&(0,a.jsxs)(z.l4,{children:[null===(r=T.msg)||void 0===r?void 0:r.msg,(null===(l=T.msg)||void 0===l?void 0:l.type)==="emailVerificationRequired"&&(0,a.jsx)(S.Z,{variant:"text",onClick:()=>{ei(!0)},sx:{...k.ey.linkBtn,marginLeft:"6px"},children:"Resend email"})]}),(0,a.jsx)(C.Z,{id:"loginBtn",fullWidth:!0,type:"submit",variant:"contained",disabled:!K,sx:k.ey.submitBtn,"data-cy":"submit-signin-btn".concat(c),loading:U,children:$?"Sign In":"Continue"})]}),(0,a.jsx)(z.zg,{text:"Don't have an account?",actionLabel:"Sign Up",onAction:()=>p("signup"),dataCy:"goto-signup-btn"})]}),(0,a.jsx)(b.Z,{sx:k.ey.turnstileWrapper,children:(0,a.jsx)(P(),{sitekey:"0x4AAAAAAATNYeZXDb1I1PsX",theme:f.palette.mode,size:"flexible",fixedSize:!0,onVerify:e=>{ee(e)}},Y)})]})},U=n(35504),F=n(43406),H=n(49362),K=()=>(0,a.jsxs)(b.Z,{sx:k.CH.wrapper,children:[(0,a.jsx)(b.Z,{sx:k.CH.text,children:"This site is protected by CLOUDFLARE."}),(0,a.jsxs)(b.Z,{sx:k.CH.text,children:[(0,a.jsx)("a",{style:k.CH.anchor,href:"/privacy",target:"_blank",rel:"noopener noreferrer",children:"Privacy Policy"}),(0,a.jsx)("span",{children:"and"}),(0,a.jsx)("a",{style:k.CH.anchor,href:"/terms",target:"_blank",rel:"noopener noreferrer",children:"Terms of Service"}),(0,a.jsx)("span",{children:"apply."})]})]}),V=n(97464),Y=e=>{let{entryType:t,handleEntryType:n,userData:r,open:s}=e,l=(0,i.useRouter)(),d=(0,i.usePathname)(),{LogoFull:c}=(0,V.q)(),[u,p]=(0,o.useState)(t),[g,x]=(0,o.useState)(0),[m,h]=(0,o.useState)(s),[y,b]=(0,o.useState)("signin"),S="signin"===u&&"forgotPassword"===y;t&&t!==u&&p(t),s!==m&&(h(s),s&&x(e=>e+1)),(0,o.useEffect)(()=>{!0==r.loggedIn&&t&&n(null)},[r.loggedIn,t]);let C=()=>{"/"===d&&!0==r.loggedIn&&l.push("/learn/dashboard"),n(null)};return(0,a.jsx)(f.Z,{open:s,onClose:()=>{C()},closeAfterTransition:!0,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",sx:k.ey.modal,children:(0,a.jsx)(v.Z,{in:s,children:(0,a.jsxs)(F.Z,{sx:k.ey.card,children:[(0,a.jsx)(w.Z,{"aria-label":"Close",size:"small",sx:k.ey.closeBtn,onClick:()=>{C()},"data-cy":"close-auth-modal-btn",children:(0,a.jsx)(H.Z,{fontSize:"small"})}),(0,a.jsxs)(F.Z,{sx:k.ey.cardBody,children:[S?(0,a.jsx)(F.Z,{sx:k.ey.headerSpacer}):(0,a.jsx)(F.Z,{sx:k.ey.logoWrapper,children:(0,a.jsx)(c,{})}),"signin"==u&&(0,a.jsx)(G,{onViewChange:b,cypressBtnId:"0",handleEntryType:n,entryType:u,userData:r,handleCloseModal:C},g),"signup"==u&&(0,a.jsx)(U.Z,{user:r.user,msg:r.msg,handleEntryType:n,entryType:u,handleCloseModal:C},g),(0,a.jsx)(K,{})]})]})})})};n(42523);let J="countryDiscountCache",q=e=>{try{let t=sessionStorage.getItem(J);if(!t)return null;let{data:n,timestamp:a,cachedCountry:r}=JSON.parse(t);if(!(Date.now()-a>9e5)&&r===e&&n)return n;return null}catch(e){return y.k.log("Error reading country discount cache",e),null}},X=(e,t)=>{try{sessionStorage.setItem(J,JSON.stringify({data:t,timestamp:Date.now(),cachedCountry:e}))}catch(e){y.k.log("Error setting country discount cache",e)}},Q=async function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!n){let t=q(e);if(t)return t}let a=await (0,A.k_)(A.bl.COUNTRY_DISCOUNT,"GET",{params:{countryCode:e}});return(null==a?void 0:null===(t=a.data)||void 0===t?void 0:t.data)?(X(e,a.data.data),a.data.data):(y.k.log("Error while fetching country discount"),null)}
1,$=(0,o.createContext)(),ee={subscriptionEmail:!1,codeEditorAutoComplete:!0,codeEditorFontSize:h.gm,playerTheme:"Light",cpTheme:!1,theme:"Light",coursePlayerLayout:"Standard",codeEditorLeftRightSplit:[50,50],codeEditorTopBottomSplit:[80,20],vimKeyBindings:!1,fontSize:20,fontFamily:"default"};function et(){return(0,o.useContext)($)}function en(e){var t,n,h,f,v;let{children:w}=e,{showAlert:b}=(0,u.V)(),S=(0,i.useRouter)(),{LogEvent:C}=(0,s.z)(),[_,j]=(0,o.useState)(!1),[I,T]=(0,o.useState)(null),[E,B]=(0,o.useState)(!1),[P,Z]=(0,o.useState)({loggedIn:!1,user:{},preferences:ee,country:null,countryDiscount:null,purchasesDetails:{},msg:{},report:{}}),[k,D]=(0,o.useState)(null),R=async()=>{try{var e;let t=null===(e=sessionStorage)||void 0===e?void 0:e.getItem("country");if(!t){let e=await (0,p.Z)();if(null==e?void 0:e.country_code){t=e.country_code;try{sessionStorage.setItem("country",t)}catch(e){y.k.error("country not set",e)}}}return t}catch(e){return null}},L=()=>{let e=P.preferences;if(P.loggedIn)e={...e,...P.user.preferences};else{let t=(0,c.getCookie)("preferences");e=t?{...e,...JSON.parse(t)}:{...e,...ee}}e.cpTheme=(null==e?void 0:e.playerTheme)==="Dark",Z(t=>({...t,preferences:e})),(0,c.setCookie)("preferences",JSON.stringify(e))},N=async()=>{let e=P.country;if(P.loggedIn){var t,n,a;if(e=(null==P?void 0:null===(t=P.user)||void 0===t?void 0:t.country)||(null==P?void 0:null===(a=P.user)||void 0===a?void 0:null===(n=a.fc_attribution)||void 0===n?void 0:n.country))try{sessionStorage.setItem("country",e)}catch(e){y.k.error("country not set",e)}else if(e=await R()){let t=await (0,d.tQ)({id:P.user.id,country:e});t&&U(t)}}else e=await R();let r=await Q(e);Z(t=>{let n=e!==t.country,a=JSON.stringify(r)!==JSON.stringify(t.countryDiscount);return n||a?{...t,...n&&{country:e},...a&&{countryDiscount:r}}:t})},z=(0,o.useRef)(),M=async e=>{!_||(null==P?void 0:P.loggedIn)||await (0,d.OnLogOut)(),Z(e=>e.msg&&0!==Object.keys(e.msg).length?{...e,msg:{}}:e),D(e),z.current={entryType:e}},W=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(t=>({...t,loggedIn:!1,user:{},purchasesDetails:{},msg:e})),!1===_&&j(!0)},O=async e=>{var t,n,a,r,i,o;let s=await (0,d.PR)({user:e,router:S,LogEvent:C,entryType:null==z?void 0:null===(t=z.current)||void 0===t?void 0:t.entryType});s.user?(Z(e=>({...e,loggedIn:!0,user:s.user,msg:{},purchasesDetails:{},report:{}})),(0,c.setCookie)("user",JSON.stringify(s.user)),g.ZP.identify(null===(n=s.user)||void 0===n?void 0:n.email,{name:null===(a=s.user)||void 0===a?void 0:a.displayName,email:null===(r=s.user)||void 0===r?void 0:r.email}),(null===g.ZP||void 0===g.ZP?void 0:g.ZP.isFeatureEnabled(x.Y.CAPTURE_ALL_ACTIVITY))&&(null===g.ZP||void 0===g.ZP||g.ZP.startSessionRecording()),(0,m.av)({username:null===(i=s.user)||void 0===i?void 0:i.displayName,email:null===(o=s.user)||void 0===o?void 0:o.email})):s.msg&&Z(e=>({...e,loggedIn:!1,user:{},msg:s.msg,purchasesDetails:{},report:{}})),!1===_&&j(!0)},G=async e=>{(0,c.setCookie)("loggedInAs",e.email),Z({loggedIn:!0,user:e,preferences:null==P?void 0:P.preferences,country:null==P?void 0:P.country,countryDiscount:null==P?void 0:P.countryDiscount,purchasesDetails:{},msg:{},report:{}})},U=async e=>{y.k.log(e,"updating puchases"),Z(t=>({...t,user:{...t.user,...e}}))},F=async e=>{Z(t=>({...t,purchasesDetails:e}))},H=async()=>{var e;let t=await (0,A.k_)(A.bl.USER_REPORT_HOME,"GET");if(null==t?void 0:null===(e=t.data)||void 0===e?void 0:e.data)return t.data.data},K=async()=>{let e=await H();Z(t=>({...t,report:e}))},V=async()=>{try{await (0,r.cx)(l.l)}catch(e){if((null==e?void 0:e.code)==="auth/account-exists-with-different-credential"){b({type:"error",open:!0,message:"This email is already associated with another sign-in method. Please use your original sign-in method."});return}(null==e?void 0:e.code)&&!["auth/popup-closed-by-user","auth/cancelled-popup-request","auth/user-cancelled"].includes(e.code)&&(y.k.error("OAuth redirect error:",e),(0,m.Tb)(e),b({type:"error",open:!0,message:"Authentication failed. Please try again."}))}};(0,o.useEffect)(()=>{L()},[P.stateLoaded,P.loggedIn]),(0,o.useEffect)(()=>{N()},[P.loggedIn,null==P?void 0:P.country]);let J=async()=>{let e=localStorage.getItem("emailForPasswordlessSignIn");if(e){j(!1);
1try{await (0,r.P6)(l.l,e,window.location.href),localStorage.removeItem("emailForSignIn")}catch(e){W(),console.error("Sign-in error:",e)}}else W()},q=e=>{y.k.log("handleOnAuthStateChange user",e);try{v&&clearTimeout(v),v=setTimeout(()=>{v=null;try{e?O(e):(0,r.JB)(l.l,window.location.href)?J():((0,d.OnLogOut)(),W())}catch(e){y.k.error("handleOnAuthStateChange innerError",e),W({type:"error",msg:"Something went wrong"})}},200)}catch(e){y.k.error("handleOnAuthStateChange error",e),W({type:"error",msg:"Something went wrong"})}},X=()=>{let e=(0,c.getCookie)("user");e&&Z(t=>({...t,user:JSON.parse(e)}))};(0,o.useEffect)(()=>{X(),V();let e=(0,r.Aj)(l.l,e=>{q(e)});return()=>e()},[]);let et=async()=>{try{var e;if(!P.user.email)return;B(!1);let{data:t}=await (0,A.k_)(A.bl.MARKETING_EMAIL_IS_SUBSCRIBED,"GET",{params:{email:P.user.email,type:"newsletter"}});(null==t?void 0:null===(e=t.data)||void 0===e?void 0:e.subscribed)&&B(!0)}catch(e){}};(0,o.useEffect)(()=>{et()},[null==P?void 0:null===(t=P.user)||void 0===t?void 0:t.email]);let en=async()=>{let e=null==P?void 0:P.country;if(!e)return;let t=await Q(e,!0);return Z(e=>({...e,countryDiscount:t})),t},ea={stateLoaded:_,purchasesDetails:P.purchasesDetails,loggedIn:P.loggedIn,user:P.user,cpTheme:null===(n=P.preferences)||void 0===n?void 0:n.cpTheme,theme:null===(h=P.preferences)||void 0===h?void 0:h.theme,vimKeyBindings:null===(f=P.preferences)||void 0===f?void 0:f.vimKeyBindings,country:null==P?void 0:P.country,countryDiscount:null==P?void 0:P.countryDiscount,coupon:I,preferences:P.preferences,report:P.report,isNewsletterSubscribed:E,msg:P.msg,setLoginAsUser:G,updateCoupon:e=>{T(e)},updateUser:U,updatePurchases:F,updateUserReport:K,handleEntryType:M,deleteUser:W,setPreference:(e,t)=>{Z(n=>{let a=n.preferences;return a={...a,[e]:t},"playerTheme"===e&&(a.cpTheme=(null==a?void 0:a.playerTheme)==="Dark"),y.k.log("setting prefferences",e,a),(0,c.setCookie)("preferences",JSON.stringify(a)),{...n,preferences:a}})},updatePreferences:e=>{Z(t=>((0,c.setCookie)("preferences",JSON.stringify(e)),{...t,preferences:e}))},getPreferences:()=>P.preferences,getPreference:e=>P.preferences[e],checkIsNewsletterAlreadySubscribed:et,refreshCountryDiscount:en};return(0,a.jsxs)($.Provider,{value:ea,children:[w,(0,a.jsx)(Y,{handleEntryType:M,entryType:k,userData:P,open:"signin"===k||"signup"===k})]})}},83176:function(e,t,n){n.d(t,{RA:function(){return v},l4:function(){return y},oq:function(){return x},zg:function(){return f},PI:function(){return h}});var a=n(27573);n(7653);var r=n(55991),i=n(80831),o=n(41181),s=n(70110),l=n.n(s),d=n(20063),c=n(40966),u=n(97502),p=n(48234);let g=[{id:"Google",label:"Google",logo:{src:"/_next/static/media/googleColoredLogo.564bc3d2.svg",height:333333,width:326667,blurWidth:0,blurHeight:0}},{id:"Github",label:"GitHub",logo:{src:"/_next/static/media/githubColoredLogo.3c961b87.svg",height:64,width:64,blurWidth:0,blurHeight:0},invertOnDark:!0}],x=e=>{let{children:t}=e;return(0,a.jsx)(r.Z,{sx:p.ey.note,children:t})},m=e=>{let{provider:t,wrapperSx:n}=e,i=(0,u.Z)();return(0,a.jsx)(r.Z,{sx:n,children:(0,a.jsx)(l(),{priority:!0,alt:"".concat(t.label," logo"),src:t.logo,style:{filter:t.invertOnDark&&"dark"===i.palette.mode?"invert(1)":void 0},objectFit:"contain",layout:"fill"})})},h=e=>{let{onSelect:t,label:n="Continue with",variant:s="buttons",large:l=!1}=e;return"icons"===s?(0,a.jsx)(r.Z,{sx:p.hu.navBar__iconsContainer,children:g.map(e=>(0,a.jsx)(o.Z,{onClick:()=>t(e.id),title:"".concat(n," ").concat(e.label),placement:"top",children:(0,a.jsx)(r.Z,{sx:l?p.hu.navBar__btnLarge:p.hu.navBar__btn,children:(0,a.jsx)(m,{provider:e,wrapperSx:p.hu.navBar__iconWrapper})})},e.id))}):(0,a.jsx)(r.Z,{sx:p.ey.socialRow,children:g.map(e=>(0,a.jsx)(o.Z,{title:"".concat(n," ").concat(e.label),placement:"top",children:(0,a.jsxs)(i.Z,{variant:"outlined",color:"inherit",onClick:()=>t(e.id),sx:p.ey.socialBtn,"data-cy":"auth-".concat(e.id.toLowerCase(),"-btn"),children:[(0,a.jsx)(m,{provider:e,wrapperSx:p.ey.socialIcon}),e.label]})},e.id))})},y=e=>{let{children:t}=e;return(0,a.jsxs)(r.Z,{role:"alert",sx:p.ey.errorRow,children:[(0,a.jsx)(d.Z,{sx:{fontSize:"16px",marginTop:"1px"}}),(0,a.jsx)(r.Z,{component:"span",children:t})]})},f=e=>{let{text:t,actionLabel:n,onAction:i,dataCy:o}=e;return(0,a.jsxs)(r.Z,{sx:p.ey.footer,children:[t,(0,a.jsx)(r.Z,{component:"span",role:"button",tabIndex:0,onClick:i,onKeyDown:e=>
1{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),i())},sx:p.ey.footerAction,"data-cy":o,children:n})]})},v=e=>{let{onClick:t,label:n="Go Back"}=e;return(0,a.jsx)(r.Z,{sx:p.ey.topRow,children:(0,a.jsx)(i.Z,{variant:"text",color:"inherit",onClick:t,startIcon:(0,a.jsx)(c.Z,{sx:{fontSize:"16px"}}),sx:p.ey.backBtn,"data-cy":"auth-back-btn",children:n})})}},35504:function(e,t,n){var a=n(27573),r=n(7653),i=n(55991),o=n(80831),s=n(59255),l=n(48182),d=n(9812),c=n.n(d),u=n(81695),p=n(10052),g=n(70039),x=n(62066),m=n(48234),h=n(97502),y=n(10882),f=n(86268),v=n(32134),w=n(72721),b=n(49374),S=n(83176);let C=()=>(0,a.jsxs)(i.Z,{sx:m.ey.loadingWrapper,children:[(0,a.jsx)(p.Z,{size:32}),(0,a.jsx)(i.Z,{children:"Creating your accountâ¦"})]}),_=e=>{let{handleCloseSignUpModal:t,msg:n}=e;return(0,a.jsxs)(i.Z,{sx:m.ey.statusWrapper,"data-cy":"create-account-success-msg",children:[(0,a.jsx)(g.Z,{sx:m.ey.statusIcon}),(0,a.jsx)(i.Z,{sx:m.ey.statusTitle,children:"You're almost there"}),(0,a.jsx)(i.Z,{sx:m.ey.statusText,children:n.msg}),(0,a.jsx)(o.Z,{fullWidth:!0,onClick:()=>{t()},variant:"contained",sx:{...m.ey.submitBtn,marginTop:"10px"},children:"Done"})]})};t.Z=e=>{var t,n,p;let g,{entryType:j,handleEntryType:I,handleCloseModal:T,isLandingPage:E=!1,hideTerms:B=!1,msg:P,user:A}=e,Z={email:"",password:"",confirmPassword:"",passwordType:"password",showPassword:!1,showConfirmPassword:!1,content:"signup",msg:{}},k=(0,h.Z)(),D=(0,b.F)("up","md"),{LogEvent:R}=(0,l.z)(),[L,N]=(0,r.useState)(Z),[z,M]=(0,r.useState)(0),W=(0,d.useTurnstile)(),O=(0,u.useRouter)();g=null===(p=localStorage)||void 0===p?void 0:p.getItem("byPassRecaptch");let[G,U]=(0,r.useState)(g||null),F=e=>{U(localStorage.getItem("byPassRecaptch")||e)},H=e=>{N(t=>({...t,email:e.trim(),passwordType:"password",msg:{}}))},K=async e=>{let t;("Google"==e||"Github"==e)&&(t=await (0,x.IG)({type:e,LogEvent:R,router:O,entryType:j})),"Email"==e&&(N(e=>({...e,content:"loading"})),t=await (0,x.Yb)({email:L.email,password:L.password,token:G,LogEvent:R,entryType:j}),V()),(null==t?void 0:t.msg)&&N(e=>({...e,content:"success"===t.msg.type?"message":"signup",msg:t.msg}))},V=()=>{G&&W&&(F(null),W.reset(),M(e=>e+1))},Y=()=>{L.email?(0,x.vV)(L.email)?L.password&&L.confirmPassword?L.password!==L.confirmPassword?N(e=>({...e,msg:{msg:"Passwords do not match.",type:"error",field:"confirmPassword"}})):K("Email"):N(e=>({...e,msg:{msg:"Password cannot be empty.",type:"error",field:e.password?"confirmPassword":"password"}})):N(e=>({...e,msg:{msg:"Please enter a valid email address.",type:"error",field:"email"}})):N(e=>({...e,msg:{msg:"Email cannot be empty.",type:"error",field:"email"}}))};(0,r.useEffect)(()=>{N(Z)},[]);let J=(0,r.useRef)(!1);(0,r.useEffect)(()=>{((null==A?void 0:A.id)||(J.current=!1),null==A?void 0:A.id)?J.current||(J.current=!0,q()):(null==P?void 0:P.msg)&&N(e=>({...e,content:"success"===P.type||"verifyemail"===P.type?"message":"signup",msg:P}))},[A,P]);let q=()=>{if(E){N(Z);return}T()},X=e=>{var t;return(null===(t=L.msg)||void 0===t?void 0:t.field)===e?L.msg.msg:""},Q=(null===(t=L.msg)||void 0===t?void 0:t.msg)&&!(null===(n=L.msg)||void 0===n?void 0:n.field),$=(e,t,n)=>({endAdornment:(0,a.jsx)(y.Z,{position:"end",children:(0,a.jsx)(f.Z,{"aria-label":n,onClick:t,edge:"end",children:e?(0,a.jsx)(v.Z,{sx:{fontSize:"20px"}}):(0,a.jsx)(w.Z,{sx:{fontSize:"20px"}})})})});return(0,a.jsxs)(a.Fragment,{children:["loading"===L.content&&(0,a.jsx)(C,{}),"message"===L.content&&(0,a.jsx)(_,{handleCloseSignUpModal:q,msg:L.msg}),"signup"===L.content&&(0,a.jsxs)(a.Fragment,{children:[!E&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(S.PI,{onSelect:e=>K(e),label:"Continue with"}),(0,a.jsx)(S.oq,{children:"or sign up with"})]}),(0,a.jsxs)(i.Z,{component:"form",noValidate:!0,sx:m.ey.form,onSubmit:e=>{e.preventDefault(),Y()},children:[(0,a.jsx)(s.Z,{sx:m.ey.input,size:D?"medium":"small",placeholder:"[email protected]",type:"email",name:"email",autoComplete:"username",required:!0,error:!!X("email"),helperText:X("email"),value:L.email,onChange:e=>H(e.target.value),id:"demo-helper-text-aligned",label:"Email","data-cy":"signup-email-input"}),(0,a.jsx)(s.Z,{sx:m.ey.input,size:D?"medium":"small",placeholder:"At least 8 characters",type:L.showPassword?"text":"password",name:"password",autoComplete:"new-password",required:!0,error:!!X("password"),helperText:X("password"),value:L.password,onChange:e=>N(t=>({...t,password:e.target.value,msg:{}})),id:"password",label:"Password","data-cy":"signup-password-input",InputProps:$(L.showPassword,()=>{N(e=>({...e,showPassword:!e.showPassword}))},"toggle password visibility")}),(0,a.jsx)(s.Z,{sx:m.ey.input,size:D?"medium":"small",placeholder:"Re-enter your password",type:L.showConfirmPassword?"text":"password",name:"passwordConfirmation",autoComplete:"new-password",required:!0,error:!!X("confirmPassword"),helperText:X("confirmPassword"),value:L.confirmPassword,onChange:e=>N(t=>({...t,confirmPassword:e.target.value,msg:{}})),id:"confirmPassword",label:"Confirm Password","data-cy":"signup-confirm-password-input",InputProps:$(L.showConfirmPassword,()=>{N(e=>({...e,showConfirmPassword:!e.showConfirmPassword}))},"toggle confirm password visibility")}),Q&&(0,a.jsx)(S.l4,{children:L.msg.msg}),(0,a.jsx)(o.Z,{"data-cy":"create-account-btn",fullWidth:!0,type:"submit",variant:"contained",disabled:!G,sx:m.ey.submitBtn,children:"Create Free Account"})]}),E&&!B&&(0,a.jsxs)(i.Z,{sx:{fontSize:"12px",marginTop:"10px"},children:["By signing up, you agree to the Techgrind"," ",(0,a.jsx)("a",{href:"/terms",target:"_blank",rel:"noopener noreferrer",children:"Terms of Service"})," ","and"," ",(0,a.jsx)("a",{href:"/privacy-policy",target:"_blank",rel:"noopener noreferrer",children:"Privacy Policy"}),". This site is protected by reCAPTCHA and the"," ",(0,a.jsx)("a",{href:"https://policies.google.com/privacy",target:"_blank",rel:"noopener noreferrer",children:"Google Privacy Policy"})," ","and"," ",(0,a.jsx)("a",{href:"https://policies.google.com/terms",target:"_blank",rel:"noopener noreferrer",children:"Terms of Service"})," ","apply."]}),E?(0,a.jsxs)(i.Z,{sx:{marginTop:"20px",width:"100%",display:"flex",flexDirection:"column",justifyContent:B?"center":"flex-start"},children:[(0,a.jsx)(i.Z,{sx:m.hu.navBar__orText,children:"Or sign up with"}),(0,a.jsx)(S.PI,{onSelect:e=>K(e),label:"Sign up with",variant:"icons",large:!0})]}):(0,a.jsx)(S.zg,{text:"Already have an account?",actionLabel:"Log In",onAction:()=>I("signin"),dataCy:"goto-signin-btn"})]}),E?(0,a.jsx)(i.Z,{children:(0,a.jsx)(c(),{sitekey:"0x4AAAAAAATNYeZXDb1I1PsX",theme:k.palette.mode,fixedSize:!0,onVerify:e=>{F(e)},appearance:"interaction-only"},z)}):(0,a.jsx)(i.Z,{sx:m.ey.turnstileWrapper,children:(0,a.jsx)(c(),{sitekey:"0x4AAAAAAATNYeZXDb1I1PsX",theme:k.palette.mode,size:"flexible",fixedSize:!0,onVerify:e=>{F(e)}},z)})]})}},48234:function(e,t,n){n.d(t,{CH:function(){return i},ey:function(){return r},hu:function(){return a}});let a={wrapper:{backgroundColor:e=>e.palette.background.default},navBarActive:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:"10px 30px",transition:"all 0.2s ease-in-out",boxShadow:"rgba(0, 0, 0, 0.2) 0px 3px 3px -2px, rgba(0, 0, 0, 0.14) 0px 3px 4px 0px, rgba(0, 0, 0, 0.12) 0px 1px 8px 0px",zIndex:1e5,position:"fixed",width:"100%",backgroundColor:e=>e.palette.background.default,borderBottom:e=>"1px solid ".concat(e.palette.borderColor)},navBar:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",zIndex:2e5,padding:"5px 45px",transition:"all 0.2s ease-in-out",position:"fixed",width:"100%",backgroundColor:e=>e.palette.background.default},navBar__lightDarkModeBtn:{padding:"8px",fontSize:"40px",borderRadius:"50%",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",backgroundColor:e=>e.palette.main,color:e=>e.palette.backgroundColor,transition:"all 0.5s ease"},navBar__guidesDropdown:{position:"absolute",top:"34px",right:"-150%",backgroundColor:e=>e.palette.background.paper,border:e=>"1px solid ".concat(e.palette.secondaryBorderColor),borderRadius:"4px",boxShadow:"$primaryShadow",width:"200px",color:e=>e.palette.main},navBar__guidesDropdownItem:{borderBottom:e=>"1px solid ".concat(e.palette.secondaryBorderColor),padding:"10px",color:e=>e.palette.main,transition:"all 0.5s ease"}
1,navBar__logo:{height:"40px",width:"192px",marginTop:"1.5px",marginRight:"10px"},navBar__title:{cursor:"pointer"},navBar__itemsLeftWrapper:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-start",height:"100%",width:"max-content"},navBar__itemsRightWrapper:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-end",height:"max-content"},navBar__item:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",textTransform:"capitalize",fontFamily:"$ubuntuFont",fontWeight:"500",fontSize:"16px",color:e=>e.palette.main,transition:"all 0.2s ease-in-out",padding:"5px 0px",borderRadius:"0px",margin:"0px 10px",textAlign:"center",borderBottom:"2px solid transparent",cursor:"pointer"},navBar__btn:{margin:"5px"},navBar__signInModal:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",zIndex:2000000001},navBar__signInContent:{position:"relative",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:{xs:"max-content",sm:"max-content",md:"max-content"},width:{xs:"max-content",sm:"450px"},padding:"20px",outline:"none",border:e=>"1px solid ".concat(e.palette.borderColor),backgroundColor:e=>e.palette.background.default},closeIconWrapper:{display:{md:"none"},cursor:"pointer",position:"absolute",top:"20px",right:"20px"},navBar__signInImage:{position:"relative",marginTop:"5px",height:"50px",width:{xs:"140px",sm:"140px",md:"200px"},cursor:"pointer"},navBar__iconsContainer:{display:"flex",flexFlow:"row wrap",alignItems:"center",justifyContent:"center",margin:"10px 0px"},navBar__titleText:{margin:"10px 0px",fontSize:"17px",fontWeight:"500",textAlign:"center"},navBar__orText:{margin:"0px 0px 10px 0px",fontSize:"12px",fontWeight:"500",textAlign:"center"},navBar__btn:{padding:"7px",border:"1px solid hsla(0,0%,50%,.4)",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",color:"rgba(grey, 1)",transition:"all 0.5s ease",borderRadius:"4px",margin:"5px",cursor:"pointer"},navBar__btnLarge:{padding:"12px",border:"1px solid hsla(0,0%,50%,.4)",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",color:"rgba(grey, 1)",transition:"all 0.5s ease",borderRadius:"4px",margin:"5px",cursor:"pointer"},navBar__btnText:{fontSize:"14px",fontWeight:"700",padding:"5px"},navBar__iconWrapper:{position:"relative",height:{xs:"20px",sm:"25px"},width:{xs:"20px",sm:"25px"}},navBar__signUpModal:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",zIndex:3e5},navBar__signUpContent:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"496px",width:"500px",padding:"20px",backgroundColor:e=>e.palette.background.default},navBar__signUpSuccess:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"150px",width:"400px",padding:"10px",backgroundColor:e=>e.palette.backgroundColor},navBar__signUpImage:{position:"relative",marginTop:"5px",height:"50px",width:"200px",cursor:"pointer"},navBar__forgotPasswordWrapper:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",width:"100%",height:"300px"},navBar__loginForm:{width:"100%"},navBar__signUpInputsWrapper:{display:"flex",flexDirection:"column",width:"100%",alignItems:"center",justifyContent:"flex-start"},navBar__signUpInput:{margin:"5px 0px",width:"100%"},navBar__signUpBtn:{width:{xs:"100%",sm:"100%",md:"max-content"},fontSize:{xs:"14px",sm:"14px",md:"16px"},marginTop:"10px"},navBar__nestedModal:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center"},navBar__nestedModalContent:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"500px",width:"500px",padding:"10px",backgroundColor:"white"},navBar__nestedModalBtnWrapper:{width:"100%",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center"},navBar__nestedModalBtn:{margin:"5px !important"},signUpBtnWrapper:{margin:"15px 0px",display:"flex",flexFlow:"row",alignItems:"center",justifyContent:"center",fontSize:"12px"},signUpBtn:{marginLeft:"10px",color:"##004e98",fontWeight:"600",cursor:"pointer"}},r={modal:{display:"flex",alignItems:"center",justifyContent:"center",padding:"16px",zIndex:2000000001},card:{position:"relative",display:"flex",flexDirection:"column",alignItems:"center",width:{xs:"100%",sm:"420px"},maxWidth:"420px",maxHeight:"calc(100vh - 32px)",overflow:"hidden",padding:{xs:"24px 20px",sm:"28px"},borderRadius:2,outline:"none",border:e=>"1px solid ".concat(e.palette.divider),backgroundColor:e=>e.palette.background.paper,boxShadow:e=>{var t;return(null===(t=e.customShadows)||void 0===t?void 0:t.z24)||e.shadows[24]}},headerSpacer:{height:{xs:"44px",sm:"40px"},flexShrink:0},cardBody:{width:"100%",display:"flex",flexDirection:"column",alignItems:"center",minHeight:0,overflowY:"auto"},closeBtn:{position:"absolute",top:"16px",right:"16px",color:"text.disabled","&:hover":{color:"text.primary"}},logoWrapper:{display:"flex",justifyContent:"center",marginBottom:"16
1px","& img":{maxWidth:"150px",height:"auto"}},note:{width:"100%",marginBottom:"12px",textAlign:"center",fontSize:"13px",lineHeight:1.5,color:"text.secondary"},socialRow:{width:"100%",display:"flex",flexDirection:"row",gap:"10px",marginBottom:"12px"},socialBtn:{flex:1,minWidth:0,height:"46px",gap:"10px",textTransform:"none",fontSize:"14px",fontWeight:600,color:"text.primary",borderColor:"divider","&:hover":{borderColor:"text.secondary",backgroundColor:"action.hover"}},socialIcon:{position:"relative",height:"18px",width:"18px",flexShrink:0},form:{width:"100%",display:"flex",flexDirection:"column",gap:"14px"},input:{width:"100%"},visuallyHiddenInput:{position:"absolute",width:"1px",height:"1px",margin:"-1px",padding:0,border:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(50%)",whiteSpace:"nowrap"},submitBtn:{height:"46px",textTransform:"none",fontSize:"15px",fontWeight:700,boxShadow:"none","&:hover":{boxShadow:"none"}},inlineActionRow:{display:"flex",justifyContent:"flex-end",marginTop:"-8px"},topRow:{position:"absolute",top:"20px",left:"16px"},backBtn:{padding:"2px 6px",minWidth:"auto",textTransform:"none",fontWeight:500,fontSize:"13px",color:"text.secondary","&:hover":{backgroundColor:"action.hover",color:"text.primary"}},linkBtn:{padding:0,minWidth:"auto",textTransform:"none",fontWeight:600,fontSize:"13px","&:hover":{backgroundColor:"transparent",textDecoration:"underline"}},errorRow:{display:"flex",alignItems:"flex-start",gap:"6px",color:"error.main",fontSize:"13px",lineHeight:1.45},identityRow:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"8px",width:"100%",padding:"9px 8px 9px 12px",borderRadius:1.5,border:e=>"1px solid ".concat(e.palette.divider),backgroundColor:"action.hover"},identityEmail:{fontSize:"14px",fontWeight:500,color:"text.primary",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},footer:{width:"100%",marginTop:"18px",display:"flex",alignItems:"center",justifyContent:"center",gap:"6px",fontSize:"13px",color:"text.secondary"},footerAction:{fontWeight:700,color:"primary.main",cursor:"pointer","&:hover":{textDecoration:"underline"}},turnstileWrapper:{display:"flex",justifyContent:"center",width:"100%",alignItems:"center",marginTop:"12px",height:"65px",flexShrink:0},statusWrapper:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",gap:"8px",width:"100%",padding:"4px 0px"},statusIcon:{fontSize:"38px",color:"success.main"},statusIconInfo:{fontSize:"38px",color:"primary.main"},statusTitle:{fontSize:"16px",fontWeight:700,color:"text.primary"},statusText:{fontSize:"14px",lineHeight:1.55,color:"text.secondary"},statusEmail:{fontWeight:600,color:"text.primary"},loadingWrapper:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"12px",width:"100%",minHeight:"180px",fontSize:"14px",color:"text.secondary"}},i={wrapper:{width:"100%",marginTop:"12px"},text:{textAlign:"center",color:"text.disabled",fontSize:"11px",lineHeight:1.5},anchor:{margin:"0px 5px"},"a:link":{textDecoration:"underline"},"a:visited":{textDecoration:"none"},"a:hover":{textDecoration:"underline"},"a:active":{textDecoration:"none"}}},48182:function(e,t,n){n.d(t,{a:function(){return l},z:function(){return s}});var a=n(27573),r=n(7653),i=n(73949);let o=r.createContext();function s(){return(0,r.useContext)(o)}function l(e){let t,{children:n}=e;(0,r.useEffect)(()=>{t=(0,i.IH)()},[]);let s=async(e,n,a)=>{t||(t=(0,i.IH)()),a&&(0,i.Iv)(t,a),(0,i.Kz)(t,e,n)};return(0,a.jsx)(o.Provider,{value:{LogEvent:s},children:n})}},99652:function(e,t,n){n.d(t,{Y:function(){return a}});let a={ENABLE_SELECT_INTERVIEWER:"enable_select_interviewer",AFTERPAY_CHECKOUT_ENABLED:"afterpay_checkout_enabled",TRIAL_ENABLED:"trial_enabled",TRIAL_AS_PRIMARY_BUTTON:"trial_as_primary_button",ENABLE_WEBSITE_DARKMODE:"enable_website_darkmode",CUSTOM_LIFETIME_PRICING_OPTIONS:"custom_lifetime_pricing_options",IS_SUBSCRIPTION_ENABLED:"is_subscription_enabled",ENABLE_USER_NOTIFICATIONS:"enable_user_notifications",ENABLE_USER_HOME_V2:"enable_user_home_v2",COURSE_AUDIO_PLAYER:"course_audio_player",COURSE_AUDIO_PLAYER_BETA_ICON:"course_audio_player_beta_icon",CAPTURE_ALL_ACTIVITY:"capture_all_activity",ENABLE_SCHEDULED_MAINTENANCE:"enable_scheduled_maintenance",DOTNET_CSHARP_FEATURE:"dotnet_csharp_feature",ENABLE_CREDIT_SYSTEM:"enable_credit_system",LOW_SALES_ALERT:"low_sales_alert",COREX_DIRECT_POLLING:"corex_direct_polling"}}}]);
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.