1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[459],{4140:function(n,e,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return r(4595)}])},1838:function(n,e,r){"use strict";r.d(e,{J:function(){return t}});var t="https://www.bluefrog.com/api"},4595:function(n,e,r){"use strict";r.r(e);var t=r(8520),a=r.n(t),o=r(5893),u=r(9669),s=r.n(u),i=r(1838),c=r(1163),l=r(7294),p=r(9294),_=r.n(p);function h(n,e,r,t,a,o,u){try{var s=n[o](u),i=s.value}catch(c){return void r(c)}s.done?e(i):Promise.resolve(i).then(t,a)}e.default=function(){var n,e=(0,l.useState)(null),r=e[0],t=e[1],u=(0,l.useState)(null),p=u[0],d=u[1],f=(0,l.useState)(!1),v=f[0],w=f[1],g=(0,c.useRouter)(),m=(n=a().mark((function n(){return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,s().post("".concat(i.J,"/login"),{username:r,password:p});case 3:g.push("/admin"),n.next=9;break;case 6:n.prev=6,n.t0=n.catch(0),w(!0);case 9:case"end":return n.stop()}}),n,null,[[0,6]])})),function(){var e=this,r=arguments;return new Promise((function(t,a){var o=n.apply(e,r);function u(n){h(o,t,a,u,s,"next",n)}function s(n){h(o,t,a,u,s,"throw",n)}u(void 0)}))});return(0,o.jsx)("div",{className:_().container,children:(0,o.jsxs)("div",{className:_().wrapper,children:[(0,o.jsx)("h1",{children:"Admin Dashboard"}),(0,o.jsx)("input",{placeholder:"username",className:_().input,onChange:function(n){return t(n.target.value)}}),(0,o.jsx)("input",{placeholder:"password",type:"password",className:_().input,onChange:function(n){return d(n.target.value)}}),(0,o.jsx)("button",{onClick:m,className:_().button,children:"Sign In"}),v&&(0,o.jsx)("span",{className:_().error,children:"Wrong Credentials!"})]})})}},9294:function(n){n.exports={container:"Login_container__TKPt4",wrapper:"Login_wrapper__zlhh7",input:"Login_input__r_1vS",button:"Login_button__ejJ5H",error:"Login_error__aOZP3"}}},function(n){n.O(0,[388,774,888,179],(function(){return e=4140,n(n.s=e);var e}));var e=n.O();_N_E=e}]);
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.