1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[459],{6429:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return i(338)}])},5752:function(e,t,i){"use strict";var s=i(5893),n=i(9008),r=i.n(n),o=i(5697),a=i.n(o);let l=e=>{var t,i,n,o,a,l,d,c,m,u,g;let{seo:p}=e;return(0,s.jsxs)(r(),{children:[(0,s.jsx)("title",{children:p.title}),(0,s.jsx)("meta",{name:"title",content:p.title}),p.description&&(0,s.jsx)("meta",{name:"description",content:p.description}),p.keywords&&(0,s.jsx)("meta",{name:"keywords",content:p.keywords}),p.canonicalUrl&&(0,s.jsx)("link",{rel:"canonical",href:p.canonicalUrl}),(0,s.jsx)("meta",{property:"og:type",content:"website"}),(null===(t=p.og)||void 0===t?void 0:t.title)&&(0,s.jsx)("meta",{name:"og:title",property:"og:title",content:p.og.title}),(null===(i=p.og)||void 0===i?void 0:i.description)&&(0,s.jsx)("meta",{name:"og:description",property:"og:description",content:p.og.description}),(null===(n=p.og)||void 0===n?void 0:n.url)&&(0,s.jsx)("meta",{name:"og:url",property:"og:url",content:p.og.url}),(null===(o=p.og)||void 0===o?void 0:o.image)&&(0,s.jsx)("meta",{name:"og:image",property:"og:image",content:p.og.image}),(null===(a=p.og)||void 0===a?void 0:a.sitename)&&(0,s.jsx)("meta",{name:"og:site_name",property:"og:site_name",content:p.og.sitename}),(0,s.jsx)("meta",{name:"twitter:card",content:"summary"}),(null===(l=p.twitter)||void 0===l?void 0:l.title)&&(0,s.jsx)("meta",{name:"twitter:title",content:p.twitter.title}),(null===(d=p.twitter)||void 0===d?void 0:d.description)&&(0,s.jsx)("meta",{name:"twitter:description",content:p.twitter.description}),(null===(c=p.twitter)||void 0===c?void 0:c.url)&&(0,s.jsx)("meta",{name:"twitter:url",content:p.twitter.url}),(null===(m=p.twitter)||void 0===m?void 0:m.image)&&(0,s.jsx)("meta",{name:"twitter:image",content:p.twitter.image}),(null===(u=p.twitter)||void 0===u?void 0:u.sitename)&&(0,s.jsx)("meta",{name:"twitter:site",content:p.twitter.sitename}),(null===(g=p.twitter)||void 0===g?void 0:g.creator)&&(0,s.jsx)("meta",{name:"twitter:creator",content:p.twitter.creator})]})};l.propTypes={seo:a().shape({title:a().string,keywords:a().string,description:a().string,canonicalUrl:a().string,og:a().shape({sitename:a().string,title:a().string,description:a().string,image:a().string,url:a().string}),twitter:a().shape({sitename:a().string,title:a().string,description:a().string,image:a().string,creator:a().string,url:a().string})})},l.defaultProps={seo:{title:"",keywords:"",description:"",canonicalUrl:"",og:{sitename:"",title:"",description:"",image:"",url:""},twitter:{sitename:"",title:"",description:"",image:"",creator:"",url:""}}},t.Z=l},338:function(e,t,i){"use strict";i.r(t),i.d(t,{__N_SSP:function(){return w},default:function(){return f}});var s=i(5893),n=i(7294),r=i(5697),o=i.n(r),a=i(1664),l=i.n(a),d=i(4379),c=i(7536),m=i(1163),u=i(4536),g=i(2930),p=i(4171),v=i(5752);let x=e=>{let{message:t,title:i,onClose:n}=e;return(0,s.jsx)("div",{className:"modal cancel-modal",role:"dialog","aria-hidden":"true",children:(0,s.jsx)("div",{className:"modal-dialog modal-sm modal-dialog-centered",role:"document",children:(0,s.jsx)("div",{className:"modal-content",children:(0,s.jsx)("div",{className:"modal-body",children:(0,s.jsxs)("div",{className:"cancel-form-container",children:[(0,s.jsx)("div",{className:"cancel-header text-center mb-2",children:i}),(0,s.jsx)("div",{className:"text-center mb-4",children:t}),(0,s.jsx)("div",{className:"text-center",children:(0,s.jsx)("button",{type:"button",className:"btn",onClick:n,children:"Ok"})})]})})})})})};x.propTypes={onClose:o().func.isRequired};var j=i(4790);let h=e=>{let{redirectUrl:t,channelCode:i,labels:r}=e,o=(0,m.useRouter)(),{register:a,formState:{errors:h},handleSubmit:w}=(0,c.cI)({mode:"onChange"}
1),f=(0,p.XI)(u.Z.FORGOT_PASSWORD,t),N=(0,p.XI)(u.Z.SIGNUP,t),[b,y]=(0,n.useState)(!1),[_,k]=(0,n.useState)(""),[S,R]=(0,n.useState)("");return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(v.Z,{seo:{title:r["login.title"]}}),(0,s.jsx)("div",{className:"register-page section-pt-90 section-pb-90",children:(0,s.jsx)("div",{className:"container",children:(0,s.jsx)("div",{className:"row",children:(0,s.jsx)("div",{className:"col-lg-7 col-md-12 m-auto",children:(0,s.jsxs)("div",{className:"login-register-wrapper",children:[(0,s.jsx)("div",{className:"login-register-tab-list",children:(0,s.jsx)("h2",{children:r["login.heading"]})}),(0,s.jsx)("div",{className:"login-form-container",children:(0,s.jsx)("div",{className:"login-register-form",children:(0,s.jsxs)("form",{onSubmit:w(e=>{R(""),y(!0);let s=(0,g.nH)(),n={...e,deviceId:s.uid,deviceModel:s.model,deviceOs:s.os};(0,j.e_)(i,n).then(()=>{o.push(t||u.Z.BROWSE)}).catch(e=>{var t,i,s,n,o;if(y(!1),403===((null===(t=e.response)||void 0===t?void 0:t.status)||0))k((null==e?void 0:null===(s=e.response)||void 0===s?void 0:null===(i=s.data)||void 0===i?void 0:i.message)||"");else{let t=(null==e?void 0:null===(o=e.response)||void 0===o?void 0:null===(n=o.data)||void 0===n?void 0:n.message)||"";R(t||r["messages.commonError"]),d.fn.error(t||r["messages.commonError"],"",4e3)}})}),children:[(0,s.jsxs)("div",{className:"login-input-box",children:[""!==S&&(0,s.jsxs)("div",{className:"error-label error-big text-center mb-4",children:[(0,s.jsx)("i",{className:"zmdi zmdi-alert-circle-o"}),"\xa0",S]}),h.username&&(0,s.jsx)("div",{className:"error-label",children:h.username.message}),(0,s.jsx)("input",{type:"text",id:"username",name:"username",placeholder:r["login.field1"],autoComplete:"off",...a("username",{required:r["messages.usernameEmailRequired"]}),"aria-invalid":h.username?"true":"false"}),h.password&&(0,s.jsx)("div",{className:"error-label",children:h.password.message}),(0,s.jsx)("input",{type:"password",id:"password",name:"password",placeholder:r["login.field2"],...a("password",{required:r["messages.passwordRequired"]}),"aria-invalid":h.password?"true":"false"})]}),(0,s.jsx)("div",{className:"button-box text-center",children:(0,s.jsx)("button",{className:"login-btn btn",type:"submit",disabled:b,children:(0,s.jsx)("span",{children:r["login.btnLabel"]})})}),(0,s.jsxs)("div",{className:"register-links mt-4",children:[(0,s.jsxs)("div",{className:"d-flex justify-content-center links mb-2",children:[r["login.dontHaveAccount"]," \xa0",(0,s.jsx)(l(),{href:N,children:r["login.register"]})]}),(0,s.jsx)("div",{className:"d-flex justify-content-center links mb-2",children:(0,s.jsx)(l(),{href:f,children:r["login.forgotPassword"]})})]})]})})})]})})})})}),""!==_&&(0,s.jsx)(x,{title:"Information",message:_,onClose:()=>k("")})]})};h.propTypes={redirectUrl:o().string.isRequired,channelCode:o().string.isRequired,labels:o().object.isRequired};var w=!0,f=h}},function(e){e.O(0,[536,774,888,179],function(){return e(e.s=6429)}),_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.