1"use strict";(self.webpackChunkAtchr=self.webpackChunkAtchr||[]).push([[659],{63060:(e,r,s)=>{s.d(r,{A:()=>a});var t=s(70579);function a(){return(0,t.jsx)("span",{className:"btn-spinner"})}},3659:(e,r,s)=>{s.r(r),s.d(r,{default:()=>I});var t=s(65043),a=s(99904),o=s(12327),c=s(22345),l=s(49157),n=s(18353),i=s(81509),A=s(6221),d=s(7493),h=s(98288),_=s(72679),m=s(23194),P=s(97550),E=s(26259),p=s(97508),u=s(59557),T=s(62582),R=s(74882),f=s(73033),C=s(12362),b=s(73058),g=s(55531),N=s(63060),S=s(74725),O=s(70919),j=s(59949),v=s(90197),x=s(70579);const I=(0,u.y)((0,p.Ng)((e=>{const{user:r,loading:s,error:t}=e.Auth,{currentYear:a}=e.Misc;return{user:r,loading:s,error:t,currentYear:a}}),{loginUser:O.Lx,apiError:O.pb})((e=>{const{t:r}=(0,S.B)(),[s,p]=(0,t.useState)(!1),O=(0,u.zy)().search,I=new URLSearchParams(O).get("redirect");(0,t.useEffect)((()=>{e.error&&setTimeout((()=>{p(!1)}),500)}),[e.error]),(0,t.useEffect)((()=>{localStorage.token&&C.rc();let e=w("affiliate");if(!e){const r=document.cookie.match(/(?:^|; )atchr_affiliate=([^;]*)/);e=r?decodeURIComponent(r[1]):""}e&&localStorage.setItem("affiliate",e)}),[]);const D=(0,R.Wx)({initialValues:{email:"",password:""},validationSchema:f.Ik({email:f.Yj().required("Please enter your email"),password:f.Yj().min(8,"Please enter a valid password").required("Please enter your password")}),onSubmit:r=>{s||(p(!0),e.loginUser(r.email,r.password,e.history))}}),w=e=>{for(var r=window.location.search.substring(1).split("&"),s=0;s<r.length;s++){var t=r[s].split("=");if(decodeURIComponent(t[0])==e)return decodeURIComponent(t[1])}};return localStorage.getItem("token")?I?(0,x.jsx)(u.rd,{to:`/verify/?redirect=${I}`}):(0,x.jsx)(u.rd,{to:"/verify"}):(0,x.jsx)(t.Fragment,{children:(0,x.jsxs)("div",{className:"account-pages mt-5 pt-sm-5 pt-md-0",children:[(0,x.jsxs)("div",{className:"faux-menu",children:[(0,x.jsx)(g.A,{}),(0,x.jsx)(b.A,{})]}),(0,x.jsx)(a.A,{children:(0,x.jsx)(o.A,{className:"justify-content-center",children:(0,x.jsxs)(c.A,{md:8,lg:6,xl:5,children:[(0,x.jsxs)("div",{className:"text-center mb-4",children:[(0,x.jsxs)(T.N_,{to:"/",onClick:()=>function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;window.location.href=e||"/"}("/"),className:"auth-logo mb-2 d-block",children:[(0,x.jsx)("img",{src:j,alt:{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_NAME:"Atchr",REACT_APP_HOST:"atchr-web",REACT_APP_API:"https://api.atchr.com",REACT_APP_URI:"wss://api.atchr.com",REACT_APP_DOMAIN:"atchr.com",REACT_APP_CHROMESQ_API:"https://api.chromesq.com",REACT_APP_CHROMESQ_AUTH:"f4eb27cea7255cea4d1ffabf593372e8",REACT_APP_CHROMESQ_REF:"https://chromesq.com",REACT_APP_BASE_URL:"https://atchr.com",REACT_APP_TAGLINE:"- Atchr by Chromesque",REACT_APP_ENTITY_NAME:"Atchr by Chromesque",REACT_APP_CDN_ENDPOINT:"https://cdn.atchr.com",REACT_APP_STORAGE_ENDPOINT:"https://storage.cdn.chromesq.com",REACT_APP_COMMISSION:"30",REACT_APP_PASSWORD_REGEX:"/^(?=.*\\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[a-zA-Z]).{8,}/",REACT_APP_DASHBOARD_URL:"https://chat.atchr.com",REACT_APP_VERSION:"3.0.0",REACT_APP_DEFAULTAUTH:"fakebackend",REACT_APP_VAPID_PUBLIC_KEY:"BDuXVQpocr1psG_OlMK5VaroS_s2DSfAUWCGGj4BqkBf6vJsBSapPDockbfZfG_5C9cl6kDfGjrpLI7QAth4lMo",REACT_APP_APIKEY:"",REACT_APP_AUTHDOMAIN:"",REACT_APP_DATABASEURL:"",REACT_APP_PROJECTID:"",REACT_APP_STORAGEBUCKET:"",REACT_APP_MESSAGINGSENDERID:"",REACT_APP_APPID:"",REACT_APP_MEASUREMENTID:""}.REACT_APP,height:"50",className:"logo logo-dark"}),(0,x.jsx)("img",{src:v,alt:{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_NAME:"Atchr",REACT_APP_HOST:"atchr-web",REACT_APP_API:"https://api.atchr.com",REACT_APP_URI:"wss://api.atchr.com",REACT_APP_DOMAIN:"atchr.com",REACT_APP_CHROMESQ_API:"https://api.chromesq.com",REACT_APP_CHROMESQ_AUTH:"f4eb27cea7255cea4d1ffabf593372e8",REACT_APP_CHROMESQ_REF:"https://chromesq.com",REACT_APP_BASE_URL:"https://atchr.com",REACT_APP_TAGLINE:"- Atchr by Chromesque",REACT_APP_ENTITY_NAME:"Atchr by Chromesque",REACT_APP_CDN_ENDPOINT:"https://cdn.atchr.com",REACT_APP_STORAGE_ENDPOINT:"https://storage.cdn.chromesq.com",REACT_APP_COMMISSION:"30",REACT_APP_PASSWORD_REGEX:"/^(?=.*\\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[a-zA-Z]).{8,}/",REACT_APP_DASHBOARD_URL:"https://chat.atchr.com",REACT_APP_VERSION:"3.0.0",REACT_APP_DEFAULTAUTH:"fakebackend",REACT_APP_VAPID_PUBLIC_KEY:"BDuXVQpocr1psG_OlMK5VaroS_
1s2DSfAUWCGGj4BqkBf6vJsBSapPDockbfZfG_5C9cl6kDfGjrpLI7QAth4lMo",REACT_APP_APIKEY:"",REACT_APP_AUTHDOMAIN:"",REACT_APP_DATABASEURL:"",REACT_APP_PROJECTID:"",REACT_APP_STORAGEBUCKET:"",REACT_APP_MESSAGINGSENDERID:"",REACT_APP_APPID:"",REACT_APP_MEASUREMENTID:""}.REACT_APP,height:"50",className:"logo logo-light"})]}),(0,x.jsx)("h4",{children:r("Sign in")}),(0,x.jsx)("p",{className:"text-muted mb-4",children:r("Sign in to continue to Atchr.")})]}),(0,x.jsx)(l.A,{children:(0,x.jsxs)(n.A,{className:"p-4",children:[e.error&&(0,x.jsx)(i.A,{className:"mb-0",color:"danger",children:e.error}),(0,x.jsx)("div",{className:"p-3",children:(0,x.jsxs)(A.A,{onSubmit:D.handleSubmit,children:[(0,x.jsxs)("div",{className:"mb-3",children:[(0,x.jsx)(d.A,{className:"form-label",children:r("Email")}),(0,x.jsxs)(h.A,{className:"mb-3 rounded-3",children:[(0,x.jsx)("span",{className:"input-group-text text-muted",id:"basic-addon3",children:(0,x.jsx)("i",{className:"ri-user-2-line"})}),(0,x.jsx)(_.A,{type:"email",id:"email",name:"email",className:"form-control form-control-lg border-light bg-soft-light",placeholder:"Enter email",onChange:D.handleChange,onBlur:D.handleBlur,value:D.values.email,invalid:!(!D.touched.email||!D.errors.email)}),D.touched.email&&D.errors.email?(0,x.jsx)(m.A,{type:"invalid",children:D.errors.email}):null]})]}),(0,x.jsxs)(P.A,{className:"mb-4",children:[(0,x.jsx)("div",{className:"float-end",children:(0,x.jsxs)(T.N_,{to:"help",className:"text-muted font-size-13",children:[r("Forgot your password"),"?"]})}),(0,x.jsx)(d.A,{className:"form-label",children:r("Password")}),(0,x.jsxs)(h.A,{className:"mb-3 rounded-3",children:[(0,x.jsx)("span",{className:"input-group-text text-muted",children:(0,x.jsx)("i",{className:"ri-lock-2-line"})}),(0,x.jsx)(_.A,{type:"password",id:"password",name:"password",className:"form-control form-control-lg border-light bg-soft-light",placeholder:"Enter Password",onChange:D.handleChange,onBlur:D.handleBlur,value:D.values.password,invalid:!(!D.touched.password||!D.errors.password)}),D.touched.password&&D.errors.password?(0,x.jsx)(m.A,{type:"invalid",children:D.errors.password}):null]})]}),(0,x.jsxs)("div",{className:"form-check mb-4",children:[(0,x.jsx)(_.A,{type:"checkbox",className:"form-check-input",id:"remember-check"}),(0,x.jsx)(d.A,{className:"form-check-label",htmlFor:"remember-check",children:r("Remember me")})]}),(0,x.jsx)("div",{className:"d-grid",children:(0,x.jsx)(E.A,{color:"primary",className:s?"btn-loading waves-effect waves-light":"waves-effect waves-light",type:"submit",disabled:s,children:s?(0,x.jsx)(N.A,{}):r("Sign in")})})]})})]})}),(0,x.jsxs)("div",{className:"mt-5 text-center",children:[(0,x.jsxs)("p",{children:[r("Don't have an account"),"?"," ",(0,x.jsxs)(T.N_,{to:"register",className:"font-weight-medium text-primary",children:[" ",r("Signup now")," "]})," "]}),(0,x.jsxs)("p",{children:["\xa9",e.currentYear," ",r("Atchr")," ",r("by Chromesque")]})]})]})})})]})})})))},23194:(e,r,s)=>{s.d(r,{A:()=>m});var t=s(65043),a=s(65173),o=s.n(a),c=s(98139),l=s.n(c),n=s(96794),i=["className","cssModule","valid","tooltip","tag"];function A(){return A=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var s=arguments[r];for(var t in s)Object.prototype.hasOwnProperty.call(s,t)&&(e[t]=s[t])}return e},A.apply(this,arguments)}function d(e,r){if(null==e)return{};var s,t,a=function(e,r){if(null==e)return{};var s,t,a={},o=Object.keys(e);for(t=0;t<o.length;t++)s=o[t],r.indexOf(s)>=0||(a[s]=e[s]);return a}(e,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(t=0;t<o.length;t++)s=o[t],r.indexOf(s)>=0||Object.prototype.propertyIsEnumerable.call(e,s)&&(a[s]=e[s])}return a}var h={children:o().node,tag:n.Wx,className:o().string,cssModule:o().object,valid:o().bool,tooltip:o().bool};function _(e){var r=e.className,s=e.cssModule,a=e.valid,o=void 0===a?void 0:a,c=e.tooltip,h=e.tag,_=void 0===h?"div":h,m=d(e,i),P=c?"tooltip":"feedback",E=(0,n.qO)(l()(r,o?"valid-".concat(P):"invalid-".concat(P)),s);return t.createElement(_,A({},m,{className:E}))}_.propTypes=h;const m=_},97550:(e,r,s)=>{s.d(r,{A:()=>m});var t=s(65043),a=s(65173),o=s.n(a),c=s(98139),l=s.n(c),n=s(96794),i=["className","cssModule","row","disabled","check","inline","floating","noMargin","tag","switch"];function A(){return A=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var s=arguments[r];for(var t in s)Object.prototype.hasOwnProperty.call(s,t)&&(e[t]=s[t])}return e},A.apply(this,arguments)}function d(e,r){if(null==e)return{};var s,t,a=function(e,r){if(null==e)return{};var s,t,a={},o=Object.keys(e);for(t=0;t<o.length;t++)s=o[t],r.indexOf(s)>=0||(a[s]=e[s]);return a}(e,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(t=0;t<o.length;t++)s=o[t],r.indexOf(s)>=0||Object.prototype.propertyIsEnumerable.call(e,s)&&(a[s]=e[s])}return a}var h={children:o().node,row:o().bool,check:o().bool,switch:o().bool,inline:o().bool,floating:o().bool,noMargin:o().bool,disabled:o().bool,tag:n.Wx,className:o().string,cssModule:o().object};function _(e){var r=e.className,s=e.cssModule,a=e.row,o=e.disabled,c=e.check,h=e.inline,_=e.floating,m=e.noMargin,P=e.tag,E=void 0===P?"div"
1:P,p=e.switch,u=d(e,i),T=c||p,R=(0,n.qO)(l()(r,!!a&&"row",!!T&&"form-check",!!p&&"form-switch",!T&&!m&&"mb-3",!(!T||!h)&&"form-check-inline",!(!T||!o)&&"disabled",_&&"form-floating"),s);return"fieldset"===E&&(u.disabled=o),t.createElement(E,A({},u,{className:R}))}_.propTypes=h;const m=_}}]); 2//# sourceMappingURL=659.d547a4f5.chunk.js.map
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.