PageSourceSearch

https://ereadrone.com/_next/static/chunks/pages/login-82568dbbe334a259.js

js ereadrone.com collected 2026-09-25 11:09:49 UTC 24,347 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3459],{47922:function(e,t,a){"use strict";a.d(t,{Z:function(){return S}});var o=a(8161),n=a(65260),r=a(82684),i=a(77385),s=a(18491),c=a(70547),l=a(18133),d=a(37367),u=a(41129),h=a(8851),m=a(42231),g=a(3998),p=a(73851);function v(e){return(0,p.ZP)("MuiLink",e)}let _=(0,g.Z)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);var f=a(78843),b=a(41878);let w={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},x=e=>w[e]||e;var y=e=>{let{theme:t,ownerState:a}=e,o=x(a.color),n=(0,f.DW)(t,"palette.".concat(o),!1)||a.color,r=(0,f.DW)(t,"palette.".concat(o,"Channel"));return"vars"in t&&r?"rgba(".concat(r," / 0.4)"):(0,b.Fq)(n,.4)},Z=a(28598);let j=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],C=e=>{let{classes:t,component:a,focusVisible:o,underline:n}=e,r={root:["root","underline".concat((0,c.Z)(n)),"button"===a&&"button",o&&"focusVisible"]};return(0,s.Z)(r,v,t)},k=(0,l.ZP)(m.Z,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:a}=e;return[t.root,t["underline".concat((0,c.Z)(a.underline))],"button"===a.component&&t.button]}})(e=>{let{theme:t,ownerState:a}=e;return(0,n.Z)({},"none"===a.underline&&{textDecoration:"none"},"hover"===a.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===a.underline&&(0,n.Z)({textDecoration:"underline"},"inherit"!==a.color&&{textDecorationColor:y({theme:t,ownerState:a})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===a.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},["&.".concat(_.focusVisible)]:{outline:"auto"}})});var S=r.forwardRef(function(e,t){let a=(0,d.Z)({props:e,name:"MuiLink"}),{className:s,color:c="primary",component:l="a",onBlur:m,onFocus:g,TypographyClasses:p,underline:v="always",variant:_="inherit",sx:f}=a,b=(0,o.Z)(a,j),{isFocusVisibleRef:x,onBlur:y,onFocus:S,ref:z}=(0,u.Z)(),[N,L]=r.useState(!1),P=(0,h.Z)(t,z),T=(0,n.Z)({},a,{color:c,component:l,focusVisible:N,underline:v,variant:_}),I=C(T);return(0,Z.jsx)(k,(0,n.Z)({color:c,className:(0,i.Z)(I.root,s),classes:p,component:l,onBlur:e=>{y(e),!1===x.current&&L(!1),m&&m(e)},onFocus:e=>{S(e),!0===x.current&&L(!0),g&&g(e)},ref:P,ownerState:T,variant:_,sx:[...Object.keys(w).includes(c)?[]:[{color:c}],...Array.isArray(f)?f:[f]]},b))})},52050:function(e,t,a){"use strict";var o=a(8161),n=a(65260),r=a(82684),i=a(77385),s=a(18491),c=a(41878),l=a(70547),d=a(96550),u=a(37367),h=a(18133),m=a(32233),g=a(28598);let p=["className","color","edge","size","sx"],v=e=>{let{classes:t,edge:a,size:o,color:r,checked:i,disabled:c}=e,d={root:["root",a&&"edge".concat((0,l.Z)(a)),"size".concat((0,l.Z)(o))],switchBase:["switchBase","color".concat((0,l.Z)(r)),i&&"checked",c&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},u=(0,s.Z)(d,m.H,t);return(0,n.Z)({},t,u)},_=(0,h.ZP)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:a}=e;return[t.root,a.edge&&t["edge".concat((0,l.Z)(a.edge))],t["size".concat((0,l.Z)(a.size))]]}})(e=>{let{ownerState:t}=e;return(0,n.Z)({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},"start"===t.edge&&{marginLeft:-8},"end"===t.edge&&{marginRight:-8},"small"===t.size&&{width:40,height:24,padding:7,["& .".concat(m.Z.thumb)]:{width:16,height:16},["& .".concat(m.Z.switchBase)]:{padding:4,["&.".concat(m.Z.checked)]:{transform:"translateX(16px)"}}})}),f=(0,h.ZP)(d.Z,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{let{ownerState:a}=e;return[t.switchBase,{["& .".concat(m.Z.input)]:t.input},"default"!==a.color&&t["color".concat((0,l.Z)(a.color))]]}})(e=>{let{theme:t}=e;return{position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:"".concat("light"===t.palette.mode?t.palette.common.white:t.palette.grey[300]),transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),["&.".concat(m.Z.checked)]:{transform:"translateX(20px)"},["&.".concat(m.Z.disabled)]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:"".concat("light"===t.palette.mode?t.palette.grey[100]:t.palette.grey[600])},["&.".concat(m.Z.checked," + .").concat(m.Z.track)]:{opacity:.5},["&.".concat(m.Z.disabled," + .").concat(m.Z.track)]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:"".concat("light"===t.palette.mode?.12:.2)},["& .".concat(m.Z.input)]:{left:"-100%",width:"300%"}}},e=>{let{theme:t,ownerState:a}=e;return(0,n.Z)({"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.activeChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,c.Fq)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==a.color&&{["&.".concat(m.Z.checked)]:{color:(t.vars||t).palette[a.color].main,"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[a.color].mainCh
1annel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,c.Fq)(t.palette[a.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(m.Z.disabled)]:{color:t.vars?t.vars.palette.Switch["".concat(a.color,"DisabledColor")]:"".concat("light"===t.palette.mode?(0,c.$n)(t.palette[a.color].main,.62):(0,c._j)(t.palette[a.color].main,.55))}},["&.".concat(m.Z.checked," + .").concat(m.Z.track)]:{backgroundColor:(t.vars||t).palette[a.color].main}})}),b=(0,h.ZP)("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(e=>{let{theme:t}=e;return{height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:"".concat("light"===t.palette.mode?t.palette.common.black:t.palette.common.white),opacity:t.vars?t.vars.opacity.switchTrack:"".concat("light"===t.palette.mode?.38:.3)}}),w=(0,h.ZP)("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(e=>{let{theme:t}=e;return{boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}}),x=r.forwardRef(function(e,t){let a=(0,u.Z)({props:e,name:"MuiSwitch"}),{className:r,color:s="primary",edge:c=!1,size:l="medium",sx:d}=a,h=(0,o.Z)(a,p),m=(0,n.Z)({},a,{color:s,edge:c,size:l}),x=v(m),y=(0,g.jsx)(w,{className:x.thumb,ownerState:m});return(0,g.jsxs)(_,{className:(0,i.Z)(x.root,r),sx:d,ownerState:m,children:[(0,g.jsx)(f,(0,n.Z)({type:"checkbox",icon:y,checkedIcon:y,ref:t,ownerState:m},h,{classes:(0,n.Z)({},x,{root:x.switchBase})})),(0,g.jsx)(b,{className:x.track,ownerState:m})]})});t.Z=x},32233:function(e,t,a){"use strict";a.d(t,{H:function(){return r}});var o=a(3998),n=a(73851);function r(e){return(0,n.ZP)("MuiSwitch",e)}let i=(0,o.Z)("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]);t.Z=i},83236:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return a(82488)}])},69414:function(e,t,a){"use strict";var o=a(28598),n=a(73680),r=a(99354),i=a(82684),s=a(28059),c=a(1608),l=a(68582),d=a(51171),u=a(32384);t.Z=e=>{let{show:t=!1,onHide:a=()=>{}}=e,[h,m]=(0,i.useState)(""),[g,p]=(0,i.useState)(!1),[v,_]=(0,i.useState)(!1),{enqueueSnackbar:f}=(0,u.Ds)(),b=async e=>{e.preventDefault(),p(!0);try{await l.Z.post("".concat(d.Sg,"/forgot-password"),{email:h}),p(!1),_(!0),f("Email sent!",{variant:"success"})}catch(e){console.log(e),f("An error occured!",{variant:"error"})}};return(0,o.jsxs)(s.Z,{show:t,onHide:a,onShow:()=>{m(""),p(!1),_(!1)},centered:!0,className:"text-black",size:"lg",children:[(0,o.jsx)(s.Z.Header,{closeButton:!0,children:(0,o.jsx)(s.Z.Title,{children:"I forgot my password"})}),(0,o.jsx)(s.Z.Body,{className:"px-5 pb-4 pt-3",children:(0,o.jsx)("form",{onSubmit:b,children:v?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("p",{children:"An email has been sent (if associated to an existing account)!"}),(0,o.jsx)(r.Z,{variant:"contained",color:"ereadrone",className:"w-100",style:{fontSize:"1.2rem"},onClick:a,children:"Close"})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("p",{children:"Enter your account's email. An email will be sent to this email with a link to reset your password."}),(0,o.jsx)(n.Z,{required:!0,label:"Email",type:"email",fullWidth:!0,className:"mb-3",value:h,onChange:e=>m(e.target.value)}),(0,o.jsx)(c.Z,{type:"submit",variant:"contained",color:"ereadrone",className:"w-100",style:{fontSize:"1.2rem"},loading:g,children:"Send reset password link"})]})})})]})}},23970:function(e,t,a){"use strict";a.d(t,{Z:function(){return n}});var o=a(28598);function n(e){return(0,o.jsx)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",...e,children:(0,o.jsx)("path",{d:"M3.537 0C2.165 0 1.66.506 1.66 1.879V18.44a4.262 4.262 0 00.02.433c.031.3.037.59.316.92.027.033.311.245.311.245.153.075.258.13.43.2l8.335 3.491c.433.199.614.276.928.27h.002c.314.006.495-.071.928-.27l8.335-3.492c.172-.07.277-.124.43-.2 0 0 .284-.211.311-.243.28-.33.285-.621.316-.92a4.261 4.261 0 00.02-.434V1.879c0-1.373-.506-1.88-1.878-1.88zm13.366 3.11h.68c1.138 0 1.688.553 1.688 1.696v1.88h-1.374v-1.8c0-.369-.17-.54-.523-.54h-.235c-.367 0-.537.17-.537.539v5.81c0 .369.17.54.537.54h.262c.353 0 .523-.171.523-.54V8.619h1.373v2.143c0 1.144-.562 1.71-1.7 1.71h-.694c-1.138 0-1.7-.566-1.7-1.71V4.82c0-1.144.562-1.709 1.7-1.709zm-12.186.08h3.114v1.274H6.117v2.603h1.648v1.275H6.117v2.774h1.74v1.275h-3.14zm3.816 0h2.198c1.138 0 1.7.564 1.7 1.708v2.445c0 1.144-.562 1.71-1.7 1.71h-.799v3.338h-1.4zm4.53 0h1.4v9.201h-1.4zm-3.13 1.235v3.392h.575c.354 0 .523-.171.523-.54V4.965c0-.368-.17-.54-.523-.54zm-3.74 10.147a1.708 1.708 0 01.591.108 1.745 1.745 0 01.49.299l-.452.546a1.247 1.247 0 00-.308-.195.91.91 0 00-.363-.068.658.658 0 00-.28.06.703.703 0 00-.224.163.783.783 0 00-.151.243.799.799 0 00-.056.299v.008a.852.852 0 00.056.31.7.7 0 00.157.245.736.736 0 00.238.16.774.774 0 00.303.058.79.79 0 00.445-.116v-.339h-.548v-.565H7.37v1.255a2.019 2.019 0 01-.524.307 1.789 1.789 0 01-.683.123 1.642 1.642 0 01-.602-.107 1.46 1.46 0 01-.478-.3 1.371 1.371 0 01-.318-.455 1.438 1.438 0 01-.115-.58v-.008a1.426 1.426 0 01.113-.57 1.449 1.449 0 01.312-.46 1.418 1.418 0 01.474-.309 1.58 1.58 0 01.598-.111 1.708 1.708 0 01.045 0zm11.963.008a2.006 2.006 0 01.612.094 1.61 1.61 0 01.507.277l-.386.546a1.562 1.562 0 00-.39-.205 1.178 1.178 0 00-.388-.07.347.347 0 00-.208.052.154.154 0 00-.07.127v.008a.158.158 0 00.022.084.198.198 0 00.076.066.831.831 0 00.147.06c.062.02.14.04.23
16.061a3.389 3.389 0 01.43.122 1.292 1.292 0 01.328.17.678.678 0 01.207.24.739.739 0 01.071.337v.008a.865.865 0 01-.081.382.82.82 0 01-.229.285 1.032 1.032 0 01-.353.18 1.606 1.606 0 01-.46.061 2.16 2.16 0 01-.71-.116 1.718 1.718 0 01-.593-.346l.43-.514c.277.223.578.335.9.335a.457.457 0 00.236-.05.157.157 0 00.082-.142v-.008a.15.15 0 00-.02-.077.204.204 0 00-.073-.066.753.753 0 00-.143-.062 2.45 2.45 0 00-.233-.062 5.036 5.036 0 01-.413-.113 1.26 1.26 0 01-.331-.16.72.72 0 01-.222-.243.73.73 0 01-.082-.36v-.008a.863.863 0 01.074-.359.794.794 0 01.214-.283 1.007 1.007 0 01.34-.185 1.423 1.423 0 01.448-.066 2.006 2.006 0 01.025 0zm-9.358.025h.742l1.183 2.81h-.825l-.203-.499H8.623l-.198.498h-.81zm2.197.02h.814l.663 1.08.663-1.08h.814v2.79h-.766v-1.602l-.711 1.091h-.016l-.707-1.083v1.593h-.754zm3.469 0h2.235v.658h-1.473v.422h1.334v.61h-1.334v.442h1.493v.658h-2.255zm-5.3.897l-.315.793h.624zm-1.145 5.19h8.014l-4.09 1.348z"})})}a(82684)},82488:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSG:function(){return H},default:function(){return q}});var o=a(28598),n=a(12887),r=a.n(n),i=a(1887),s=a.n(i),c=a(49773),l=a(31378),d=a(68225),u=a(73680),h=a(88190),m=a(51713),g=a(76944),p=a(61628),v=a(7703),_=a(52050),f=a(64696),b=a(47922),w=a(99354),x=a(1608),y=a(50082),Z=a(29541),j=a(89120),C=a(82684),k=a(68582),S=a(51171),z=a(84969),N=a(41348),L=a(64076),P=a(34376),T=a(51774),I=a.n(T),R=a(69414),W=a(12691),M=a.n(W),B=a(73464),D=a(62422),E=e=>(0,o.jsxs)("svg",{fill:"#FFFFFF",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,o.jsx)("g",{id:"SVGRepo_bgCarrier",strokeWidth:0}),(0,o.jsx)("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.jsx)("g",{id:"SVGRepo_iconCarrier",children:(0,o.jsx)("path",{d:"M 22 6 C 18.745659 6 16.09469 8.6041857 16.007812 11.837891 L 12.337891 17.083984 C 12.065931 17.032464 11.786701 17 11.5 17 C 10.551677 17 9.673638 17.297769 8.9472656 17.800781 L 4 15.84375 L 4 21.220703 L 7.1054688 22.449219 C 7.5429388 24.475474 9.3449541 26 11.5 26 C 13.703628 26 15.534282 24.405137 15.917969 22.310547 L 21.691406 17.984375 C 21.794183 17.989633 21.895937 18 22 18 C 25.309 18 28 15.309 28 12 C 28 8.691 25.309 6 22 6 z M 22 8 C 24.206 8 26 9.794 26 12 C 26 14.206 24.206 16 22 16 C 19.794 16 18 14.206 18 12 C 18 9.794 19.794 8 22 8 z M 22 9 A 3 3 0 0 0 22 15 A 3 3 0 0 0 22 9 z M 11.5 18 C 13.43 18 15 19.57 15 21.5 C 15 23.43 13.43 25 11.5 25 C 10.078718 25 8.8581368 24.145398 8.3105469 22.925781 L 10.580078 23.824219 C 10.882078 23.944219 11.192047 24.001953 11.498047 24.001953 C 12.494047 24.001953 13.436219 23.403875 13.824219 22.421875 C 14.333219 21.137875 13.703922 19.683781 12.419922 19.175781 L 10.142578 18.273438 C 10.560118 18.097145 11.019013 18 11.5 18 z"})})]}),A=a(23970);let F=I()(()=>Promise.all([a.e(8523),a.e(7112),a.e(71),a.e(3272),a.e(5563),a.e(8228),a.e(5820),a.e(6213),a.e(2930)]).then(a.bind(a,46213)),{loadableGenerated:{webpack:()=>[46213]}});var H=!0;function q(){let{user:e,authed:t,refreshUser:a}=(0,L.aF)(),n=(0,P.useRouter)(),[i,T]=(0,C.useState)(!1),[I,W]=(0,C.useState)([]),[H,q]=(0,C.useState)({email:"",username:"",countryId:0,password:"",register:!1,showPassword:!1,verificationCode:""}),[O,V]=(0,C.useState)([]),[X,G]=(0,C.useState)(!1),[U,J]=(0,C.useState)(!1),[K,Y]=(0,C.useState)(!1),[$,Q]=(0,C.useState)(!1),[ee,et]=(0,C.useState)(!1),[ea,eo]=(0,C.useState)(0),{t:en}=(0,B.$G)(),{logEvent:er}=(0,D.r)(),ei=(0,C.useCallback)(async()=>{if(t&&n.isReady&&!U){let t=n.query.next;if(er({event:"login"}),await a(),e&&e.roles&&5===e.roles.id){n.push("/activate?id=".concat(e.id,"&next=").concat(t)),(0,z.yE)(),a();return}console.log(t),J(!0),"null"==t&&(t=null);try{n.push(t||"/")}catch(e){if(!e.cancelled)throw e}return}},[e,t,n,a]);(0,C.useEffect)(()=>{ei(),(async()=>{0===O.length&&V((await N.ZP.get(S.Sg+"/countries.json")).data)})()},[t,O,n,ei]),(0,C.useEffect)(()=>{let e;return ea>0&&(e=setInterval(()=>{eo(e=>e-1)},1e3)),()=>clearInterval(e)},[ea]);let es=e=>t=>{let a={...H,[e]:t.target.value};"email"===e&&t.target.value!==H.email&&(Q(!1),Y(!1),eo(0),a.verificationCode=""),q(a)},ec=async e=>{if(e.preventDefault(),W([]),T(!0),H.register){if(H.countryId<=0)return W([en("please_enter_country")]);if(!$)return W([en("please_verify_email")||"Please verify your email first"]);try{await k.Z.post("".concat(S.Sg,"/users/register"),{username:H.username,email:H.email,password:H.password,country:"/countries/".concat(H.countryId),verificationCode:H.verificationCode},{headers:{Accept:"application/json","X-Registration-Source":"browser"}}),await el()}catch(e){e.response?W(e.response.data.violations?e.response.data.violations.map(e=>e.message):[e.response.data.message||e.response.data.detail||e.response.data.error]):W([en("an_error_occured")])}}else await el();T(!1)},el=async()=>{try{let e=await k.Z.post("".concat(S.Sg,"/login"),{email:H.email,password:H.password});(0,z.Fm)(e.data.token,e.data.refresh_token),a()}catch(e){e.response?W(e.response.data.violations?e.response.data.violations.map(e=>e.message):[e.response.data.message||e.response.data.detail||e.response.data.error]):W([en("an_error_occured")])}},ed=async()=>
1{if(!H.email){W([en("please_enter_email")]);return}et(!0),W([]);try{await k.Z.post("".concat(S.Sg,"/users/send-verification-code"),{email:H.email}),Q(!0),eo(30)}catch(e){e.response?W(e.response.data.violations?e.response.data.violations.map(e=>e.message):[e.response.data.message||e.response.data.detail||e.response.data.error]):W([en("an_error_occured")])}et(!1)},eu=async e=>{let t="".concat(window.location.origin,"/auth/").concat(e,"/popup-close");try{let o=await fetch("".concat(S.Sg,"/auth/").concat(e,"/redirect?redirect_to=").concat(encodeURIComponent(t)),{headers:{"X-Registration-Source":"browser"}}),{url:n}=await o.json(),r=window.open(n,"".concat(e,"_login"),"width=500,height=700,noopener"),i=new BroadcastChannel("auth"),s=setTimeout(()=>{i.close(),null==r||r.close()},3e5);i.onmessage=t=>{var o,n,c;console.log(t),(null===(o=t.origin)||void 0===o?void 0:o.length)>0&&t.origin!==window.location.origin||(clearTimeout(s),i.close(),(null===(n=t.data)||void 0===n?void 0:n.type)==="".concat(e,"_token")?((0,z.Fm)(t.data.token,null),a(),null==r||r.close()):(null===(c=t.data)||void 0===c?void 0:c.type)==="".concat(e,"_error")&&(W([en("an_error_occured")]),null==r||r.close()))}}catch(e){W([en("an_error_occured")])}},eh=H.register?en("create_account"):en("login"),em="Join EreaDrone now by logging in or by creating your account.";return(0,o.jsx)(F,{children:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(s(),{children:[(0,o.jsx)("title",{children:"".concat(eh," - EreaDrone")}),(0,o.jsx)("meta",{name:"description",content:em}),(0,o.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"https://schema.org/","@type":"WebPage",name:"".concat(en("login"),"/").concat(en("create_account")," - EreaDrone"),url:"https://ereadrone.com/login",breadcrumb:{"@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:"https://ereadrone.com"},{"@type":"ListItem",position:2,name:"".concat(en("login"),"/").concat(en("create_account")),item:"https://ereadrone.com/login"}]},description:em,datePublished:"2021-01-01"})}})]}),(0,o.jsxs)("div",{className:"".concat(r().article," ").concat(r().background),style:{"--bg-image":"url('/images/StadiumBlurred.jpg')"},children:[(0,o.jsx)(R.Z,{show:X,onHide:()=>G(!1)}),(0,o.jsxs)(c.default,{children:[(0,o.jsx)("h1",{className:"".concat(r().headerTitle," ").concat(r().centered," mb-5"),children:eh}),(0,o.jsx)("div",{className:r().card,children:(0,o.jsxs)("form",{onSubmit:ec,children:[I.map((e,t)=>e?(0,o.jsx)(l.Z,{severity:"error",variant:"filled",className:"text-start ".concat(t===I.length-1?"mb-5":"mb-3"),action:(0,o.jsx)(d.Z,{"aria-label":"close",color:"inherit",size:"small",onClick:()=>{W(I.filter(t=>t!==e))},children:(0,o.jsx)(j.Z,{fontSize:"inherit"})}),children:e.replace(". ",".\n").split("\n").map((e,t)=>(0,o.jsxs)("span",{children:[e,t>=0&&(0,o.jsx)("br",{})]},t))},t):null),(0,o.jsx)(u.Z,{required:!0,label:en("email"),type:"email",fullWidth:!0,className:H.register?"mb-1":"mb-3",value:H.email,onChange:es("email")}),H.register&&(0,o.jsxs)("div",{className:"mb-3",children:[(0,o.jsxs)("div",{className:"d-flex gap-2 mb-3",children:[$&&(0,o.jsx)(u.Z,{label:en("verification_code")||"Verification Code",value:H.verificationCode,onChange:es("verificationCode"),placeholder:"000000",inputProps:{maxLength:6,pattern:"[0-9]*"},fullWidth:!0,required:H.register&&$}),(0,o.jsx)(x.Z,{variant:"outlined",onClick:ed,disabled:!H.email||ee||ea>0,loading:ee,style:{minWidth:$?"120px":"auto",width:"100%"},children:ea>0?"".concat(en("wait")||"Wait"," ").concat(ea,"s"):$?en("resend")||"Resend":en("send_code")||"Send Code"})]}),$&&(0,o.jsxs)(l.Z,{severity:"success",className:"mb-3",children:[en("verification_code_sent")||"Verification code sent to your email address.",ea>0&&(0,o.jsxs)("span",{children:[" ",(en("wait_before_resend")||"Wait before requesting a new code").replace("{seconds}",ea.toString())||"Wait ".concat(ea," seconds before requesting a new code.")]})]})]}),(0,o.jsxs)(h.Z,{fullWidth:!0,className:"mb-3",children:[(0,o.jsxs)(m.Z,{children:[en("password")," *"]}),(0,o.jsx)(g.Z,{required:!0,label:"".concat(en("password")," *"),value:H.password,onChange:es("password"),endAdornment:(0,o.jsx)(p.Z,{position:"end",children:(0,o.jsx)(d.Z,{"aria-label":"toggle password visibility",onClick:()=>{q({...H,showPassword:!H.showPassword})},onMouseDown:e=>{e.preventDefault()},edge:"end",children:H.showPassword?(0,o.jsx)(y.Z,{}):(0,o.jsx)(Z.Z,{})})}),type:H.showPassword?"text":"password"})]}),(0,o.jsx)(v.Z,{control:(0,o.jsx)(_.Z,{value:H.register,onChange:e=>{q({...H,register:e.target.checked,verificationCode:""}),Q(!1),Y(!1),eo(0)}}),label:en("create_account"),labelPlacement:"start",className:"mb-3"}),(0,o.jsx)(u.Z,{required:H.register,label:en("username"),value:H.username,onChange:es("username"),fullWidth:!0,className:"mb-3 ".concat(H.register?"":"d-none")}),(0,o.jsx)(f.Z,{className:"mb-3 ".concat(H.register?"":"d-none"),disablePortal:!0,options:O,renderInput:e=>(0,o.jsx)(u.Z,{required:H.register,...e,label:en("country")}),fullWidth:!0,value:H.countryId>0?O.find(e=>e.id===H.countryId):null,onChange:(e,t)=>
1{q({...H,countryId:t?t.id:0})},getOptionLabel:e=>e.name}),(0,o.jsxs)("div",{children:[(0,o.jsx)("small",{className:"".concat(H.register?"d-block":"d-none"," text-muted text-start my-3"),style:{fontSize:"0.9em"},children:(0,o.jsx)(B.cC,{i18nKey:"register_disclaimer",components:[(0,o.jsx)(M(),{href:"/terms",target:"_blank",rel:"noreferer"},"terms"),(0,o.jsx)(M(),{href:"/privacy",target:"_blank",rel:"noreferer"},"privacy")]})}),(0,o.jsx)(x.Z,{type:"submit",variant:"contained",color:"ereadrone",className:"w-100 mb-2",style:{fontSize:"1.2rem",fontWeight:"bold"},loading:i,disabled:H.register&&!$,children:eh}),(0,o.jsx)(b.Z,{href:"#",color:"#E79230",onClick:e=>G(!0),className:"".concat(H.register?"d-none":""),children:en("forgot_password")})]}),(0,o.jsxs)("div",{className:"d-flex align-items-center my-3 gap-2",children:[(0,o.jsx)("hr",{className:"flex-grow-1 m-0",style:{borderColor:"rgba(255,255,255,0.2)"}}),(0,o.jsx)("small",{className:"text-muted px-1",children:en("or")||"or"}),(0,o.jsx)("hr",{className:"flex-grow-1 m-0",style:{borderColor:"rgba(255,255,255,0.2)"}})]}),(0,o.jsx)(w.Z,{variant:"contained",fullWidth:!0,onClick:()=>eu("steam"),style:{backgroundColor:"#1b2838",color:"#c7d5e0",fontSize:"1.2rem",fontWeight:"bold",textTransform:"uppercase",height:"4rem"},startIcon:(0,o.jsx)(E,{style:{width:32,height:32},onError:e=>e.currentTarget.style.display="none"}),children:en("login_with_steam")}),(0,o.jsx)(w.Z,{variant:"contained",fullWidth:!0,onClick:()=>eu("epic"),className:"mt-2",style:{backgroundColor:"#000000",color:"#ffffff",fontSize:"1.2rem",fontWeight:"bold",textTransform:"uppercase",height:"4rem"},startIcon:(0,o.jsx)(A.Z,{style:{width:32,height:32,fill:"#ffffff"}}),children:en("login_with_epic")})]})})]})]})]})})}},12887:function(e){e.exports={article:"login_article__X42BM",background:"login_background__fzSzR",field:"login_field__Ahcs8",headerTitle:"login_headerTitle__9VXLb",fixedSize:"login_fixedSize__TERZ_",centered:"login_centered__yg7Ol",oneWordPerLine:"login_oneWordPerLine__fREpg",noLine:"login_noLine__clcLL","title-small":"login_title-small___p19U",subtitle:"login_subtitle__UWske","block-img":"login_block-img__NSGCr",button:"login_button__A3KHT",noOutline:"login_noOutline__XBlSE",spinning:"login_spinning__9kh5Y",spin:"login_spin__8UobS",account:"login_account___tR5_",imageContainer:"login_imageContainer__Llb9D",image:"login_image__Mw8Gm",flipImage:"login_flipImage__qsZIJ",fabTranslucent:"login_fabTranslucent___2gXs",noHover:"login_noHover__d6vNo",card:"login_card__qmdIj",large:"login_large__BizW_",buttonOpacity:"login_buttonOpacity__rswPZ",table:"login_table__Udd3Y",colHeader:"login_colHeader__ADJsZ",mainTitle:"login_mainTitle__lwz0X",mainTitleSmall:"login_mainTitleSmall__BUMAv",bold:"login_bold__PBgKF",mainTitleImage:"login_mainTitleImage__G_WhZ",blink:"login_blink__oJlMQ"}}},function(e){e.O(0,[2691,7074,7526,1055,2727,4524,4696,3549,2888,9774,179],function(){return e(e.s=83236)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.