1(self.webpackChunk_hertz_apac_react_bus_tracking=self.webpackChunk_hertz_apac_react_bus_tracking||[]).push([[7332],{37332:(e,n,o)=>{"use strict";o.r(n),o.d(n,{default:()=>q});var a,r,t,i=o(4796),s=o(34699),u=(o(66992),o(41539),o(88674),o(78783),o(33948),o(47042),o(73210),o(32564),o(67294)),l=o(89211),c=o(14494),d=o(62598),Z=o(76213),m=o(60712),f=o(41397),h=o(41332),g=o(57518),p=o(2658),v=o(15725),C=o(64478),b=o(82171),w=o(47308),_=o(22571),k=o(3432),y=o(67865),x=o(65721),S=o(85893),L=(0,u.lazy)((function(){return o.e(1638).then(o.bind(o,11638))}));function P(e){return e.charAt(0).toUpperCase()+e.slice(1)}var T=(0,f.Z)((function(){return{root:{marginLeft:30,height:"95%",width:"80%"},content:{backgroundColor:"#00386C"}}}));const q=function(e){var n=e.loginCallback,o=(0,c.I0)(),f=(0,C.$)().t,q=(0,x.Z)().userType,z=T(),j=(0,l.Z)(!1),A=(0,s.Z)(j,1)[0],E=(0,d.TA)({initialValues:{username:"",password:"",locationCode:""},onSubmit:function(e){n({username:e.username.trim().toLowerCase(),password:e.password}),o((0,y.lt)(e.locationCode))},validationSchema:function(){return Z.Ry().shape({username:Z.Z_().required(),password:Z.Z_().required(),locationCode:Z.Z_().required()})}}),N=E.errors,R=E.touched,W=E.values,F=E.handleChange,I=E.handleSubmit,M=(0,c.v9)((function(e){return e.auth})),O=M.verifying,U=M.errorMessage;return(0,u.useEffect)((function(){(O||""!==q)&&o((0,y.r5)())}),[q]),(0,u.useEffect)((function(){U&&setTimeout((function(){o((0,y.j8)())}),4e3)}),[U]),(0,S.jsxs)(S.Fragment,{children:[(0,i.Z)(u.Suspense,{fallback:a||(a=(0,i.Z)(k.Z,{}))},void 0,A&&(r||(r=(0,i.Z)(L,{})))),!(0,m.Z)(N)&&!(0,m.Z)(R)&&(t||(t=(0,i.Z)(L,{warningText:"login.errorRequired"}))),(0,i.Z)(h.Z,{open:null!=U,anchorOrigin:{vertical:"bottom",horizontal:"right"},className:z.root},void 0,(0,i.Z)(g.Z,{message:"Sorry! ".concat(U," Please confirm and try again"),className:z.content})),(0,i.Z)("form",{onSubmit:I},void 0,(0,i.Z)(p.Z,{variant:"h4"},void 0,f("login.adminLogin",{userType:P(q)})),(0,i.Z)(v.ZP,{item:!0,xs:12},void 0,(0,i.Z)(_.default,{locationCode:W.locationCode,changeLocationCode:F("locationCode")})),(0,i.Z)(v.ZP,{item:!0,xs:12},void 0,(0,i.Z)(b.Z,{id:"username",label:f("login.username"),value:W.username,onChange:F,margin:"normal",variant:"outlined",fullWidth:!0,autoComplete:"username"})),(0,i.Z)(v.ZP,{item:!0,xs:12},void 0,(0,i.Z)(b.Z,{type:"password",id:"password",label:f("login.password"),value:W.password,onChange:F,margin:"normal",variant:"outlined",fullWidth:!0,autoComplete:"current-password"})),(0,i.Z)(v.ZP,{container:!0,item:!0,xs:12,justifyContent:"flex-end"},void 0,(0,i.Z)(w.Z,{onClick:I,isLoading: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.