1(self.webpackChunkweb_mf_ptv_web=self.webpackChunkweb_mf_ptv_web||[]).push([[8767],{30653:function(e){e.exports={container:"login_container__Nul1y",formField:"login_formField__52y9j"}},49101:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dev/login",function(){return t(55626)}])},55626:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return c}});var i=t(12974),r=t(67077),o=t(62732),l=t(26131),a=t(30653),s=t.n(a),c=function(){let[e,n]=(0,r.useState)(),[t,a]=(0,r.useState)(),c=(0,r.useRef)(null),u=async()=>{try{let n=await l.A.post("/api/auth/login/",{email:e,password:t});console.log(n),window.location.assign("/")}catch(e){console.error(e),alert("Login failed")}};return(0,i.jsx)(o.ComponentThemeWrapper,{theme:"light",children:(0,i.jsx)("form",{ref:c,onSubmit:e=>{e.preventDefault(),u()},children:(0,i.jsxs)("div",{className:s().container,children:[(0,i.jsx)(o.Heading,{variant:"heading-01",weight:"bold",size:"medium",color:"primary",children:"Login"}),(0,i.jsxs)("div",{className:s().formField,children:[(0,i.jsx)(o.Text,{color:"primary",children:"Email"}),(0,i.jsx)(o.Input,{id:"email",type:"text",label:"Email",onChange:e=>n(e.target.value)})]}),(0,i.jsxs)("div",{className:s().formField,children:[(0,i.jsx)(o.Text,{color:"primary",children:"Password"}),(0,i.jsx)(o.Input,{id:"password",label:"Password",type:"password",onChange:e=>a(e.target.value)})]}),(0,i.jsx)(o.Button,{colorScheme:"primary",onClick:()=>{var e;null==c||null===(e=c.current)||void 0===e||e.dispatchEvent(new Event("submit",{cancelable:!0,bubbles:!0}))},children:"Submit"})]})})})}}},function(e){e.x(),_N_E=Promise.all([e.f.consumes||function(e,n){},e.f.remotes||function(e,n){}].reduce(function(e,n){return n("8767",e),e},[])).then(function(){return e.X(0,[636,8792,6131],function(){return e(e.s=49101)})})}]); 2//# sourceMappingURL=login-8ce65b79756708da.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.