Commit f048a7d8 by Giang Tran

change version

parent 960b7355
{
"files": {
"main.css": "/static/css/main.2ae47eeb.chunk.css",
"main.js": "/static/js/main.77ea1be5.chunk.js",
"main.js.map": "/static/js/main.77ea1be5.chunk.js.map",
"runtime-main.js": "/static/js/runtime-main.51589bb8.js",
"runtime-main.js.map": "/static/js/runtime-main.51589bb8.js.map",
"static/js/2.3f160133.chunk.js": "/static/js/2.3f160133.chunk.js",
"static/js/2.3f160133.chunk.js.map": "/static/js/2.3f160133.chunk.js.map",
"static/js/3.08f9fe83.chunk.js": "/static/js/3.08f9fe83.chunk.js",
"static/js/3.08f9fe83.chunk.js.map": "/static/js/3.08f9fe83.chunk.js.map",
"main.js": "/static/js/main.1d01cc7b.chunk.js",
"main.js.map": "/static/js/main.1d01cc7b.chunk.js.map",
"runtime-main.js": "/static/js/runtime-main.775bbc76.js",
"runtime-main.js.map": "/static/js/runtime-main.775bbc76.js.map",
"static/js/2.046534e6.chunk.js": "/static/js/2.046534e6.chunk.js",
"static/js/2.046534e6.chunk.js.map": "/static/js/2.046534e6.chunk.js.map",
"static/js/3.88365e3c.chunk.js": "/static/js/3.88365e3c.chunk.js",
"static/js/3.88365e3c.chunk.js.map": "/static/js/3.88365e3c.chunk.js.map",
"index.html": "/index.html",
"static/css/main.2ae47eeb.chunk.css.map": "/static/css/main.2ae47eeb.chunk.css.map",
"static/js/2.3f160133.chunk.js.LICENSE.txt": "/static/js/2.3f160133.chunk.js.LICENSE.txt"
"static/js/2.046534e6.chunk.js.LICENSE.txt": "/static/js/2.046534e6.chunk.js.LICENSE.txt"
},
"entrypoints": [
"static/js/runtime-main.51589bb8.js",
"static/js/2.3f160133.chunk.js",
"static/js/runtime-main.775bbc76.js",
"static/js/2.046534e6.chunk.js",
"static/css/main.2ae47eeb.chunk.css",
"static/js/main.77ea1be5.chunk.js"
"static/js/main.1d01cc7b.chunk.js"
]
}
\ No newline at end of file
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>React App</title><link href="/static/css/main.2ae47eeb.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function r(r){for(var n,i,a=r[0],c=r[1],l=r[2],s=0,p=[];s<a.length;s++)i=a[s],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&p.push(o[i][0]),o[i]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);for(f&&f(r);p.length;)p.shift()();return u.push.apply(u,l||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,a=1;a<t.length;a++){var c=t[a];0!==o[c]&&(n=!1)}n&&(u.splice(r--,1),e=i(i.s=t[0]))}return e}var n={},o={1:0},u=[];function i(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.e=function(e){var r=[],t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise((function(r,n){t=o[e]=[r,n]}));r.push(t[2]=n);var u,a=document.createElement("script");a.charset="utf-8",a.timeout=120,i.nc&&a.setAttribute("nonce",i.nc),a.src=function(e){return i.p+"static/js/"+({}[e]||e)+"."+{3:"08f9fe83"}[e]+".chunk.js"}(e);var c=new Error;u=function(r){a.onerror=a.onload=null,clearTimeout(l);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),u=r&&r.target&&r.target.src;c.message="Loading chunk "+e+" failed.\n("+n+": "+u+")",c.name="ChunkLoadError",c.type=n,c.request=u,t[1](c)}o[e]=void 0}};var l=setTimeout((function(){u({type:"timeout",target:a})}),12e4);a.onerror=a.onload=u,document.head.appendChild(a)}return Promise.all(r)},i.m=e,i.c=n,i.d=function(e,r,t){i.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,r){if(1&r&&(e=i(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)i.d(t,n,function(r){return e[r]}.bind(null,n));return t},i.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(r,"a",r),r},i.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},i.p="/",i.oe=function(e){throw console.error(e),e};var a=this.webpackJsonpcheckin_dcv=this.webpackJsonpcheckin_dcv||[],c=a.push.bind(a);a.push=r,a=a.slice();for(var l=0;l<a.length;l++)r(a[l]);var f=c;t()}([])</script><script src="/static/js/2.3f160133.chunk.js"></script><script src="/static/js/main.77ea1be5.chunk.js"></script></body></html>
\ No newline at end of file
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>React App</title><link href="/static/css/main.2ae47eeb.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function r(r){for(var n,i,c=r[0],a=r[1],l=r[2],s=0,p=[];s<c.length;s++)i=c[s],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&p.push(o[i][0]),o[i]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(f&&f(r);p.length;)p.shift()();return u.push.apply(u,l||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,c=1;c<t.length;c++){var a=t[c];0!==o[a]&&(n=!1)}n&&(u.splice(r--,1),e=i(i.s=t[0]))}return e}var n={},o={1:0},u=[];function i(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.e=function(e){var r=[],t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise((function(r,n){t=o[e]=[r,n]}));r.push(t[2]=n);var u,c=document.createElement("script");c.charset="utf-8",c.timeout=120,i.nc&&c.setAttribute("nonce",i.nc),c.src=function(e){return i.p+"static/js/"+({}[e]||e)+"."+{3:"88365e3c"}[e]+".chunk.js"}(e);var a=new Error;u=function(r){c.onerror=c.onload=null,clearTimeout(l);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),u=r&&r.target&&r.target.src;a.message="Loading chunk "+e+" failed.\n("+n+": "+u+")",a.name="ChunkLoadError",a.type=n,a.request=u,t[1](a)}o[e]=void 0}};var l=setTimeout((function(){u({type:"timeout",target:c})}),12e4);c.onerror=c.onload=u,document.head.appendChild(c)}return Promise.all(r)},i.m=e,i.c=n,i.d=function(e,r,t){i.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,r){if(1&r&&(e=i(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)i.d(t,n,function(r){return e[r]}.bind(null,n));return t},i.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(r,"a",r),r},i.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},i.p="/",i.oe=function(e){throw console.error(e),e};var c=this.webpackJsonpcheckin_dcv=this.webpackJsonpcheckin_dcv||[],a=c.push.bind(c);c.push=r,c=c.slice();for(var l=0;l<c.length;l++)r(c[l]);var f=a;t()}([])</script><script src="/static/js/2.046534e6.chunk.js"></script><script src="/static/js/main.1d01cc7b.chunk.js"></script></body></html>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
(this.webpackJsonpcheckin_dcv=this.webpackJsonpcheckin_dcv||[]).push([[3],{276:function(t,n,e){"use strict";e.r(n),e.d(n,"getCLS",(function(){return l})),e.d(n,"getFCP",(function(){return g})),e.d(n,"getFID",(function(){return h})),e.d(n,"getLCP",(function(){return y})),e.d(n,"getTTFB",(function(){return F}));var i,a,r=function(){return"".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)},o=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return{name:t,value:n,delta:0,entries:[],id:r(),isFinal:!1}},c=function(t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){var e=new PerformanceObserver((function(t){return t.getEntries().map(n)}));return e.observe({type:t,buffered:!0}),e}}catch(t){}},u=!1,s=!1,d=function(t){u=!t.persisted},f=function(){addEventListener("pagehide",d),addEventListener("beforeunload",(function(){}))},p=function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];s||(f(),s=!0),addEventListener("visibilitychange",(function(n){var e=n.timeStamp;"hidden"===document.visibilityState&&t({timeStamp:e,isUnloading:u})}),{capture:!0,once:n})},v=function(t,n,e,i){var a;return function(){e&&n.isFinal&&e.disconnect(),n.value>=0&&(i||n.isFinal||"hidden"===document.visibilityState)&&(n.delta=n.value-(a||0),(n.delta||n.isFinal||void 0===a)&&(t(n),a=n.value))}},l=function(t){var n,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=o("CLS",0),a=function(t){t.hadRecentInput||(i.value+=t.value,i.entries.push(t),n())},r=c("layout-shift",a);r&&(n=v(t,i,r,e),p((function(t){var e=t.isUnloading;r.takeRecords().map(a),e&&(i.isFinal=!0),n()})))},m=function(){return void 0===i&&(i="hidden"===document.visibilityState?0:1/0,p((function(t){var n=t.timeStamp;return i=n}),!0)),{get timeStamp(){return i}}},g=function(t){var n,e=o("FCP"),i=m(),a=c("paint",(function(t){"first-contentful-paint"===t.name&&t.startTime<i.timeStamp&&(e.value=t.startTime,e.isFinal=!0,e.entries.push(t),n())}));a&&(n=v(t,e,a))},h=function(t){var n=o("FID"),e=m(),i=function(t){t.startTime<e.timeStamp&&(n.value=t.processingStart-t.startTime,n.entries.push(t),n.isFinal=!0,r())},a=c("first-input",i),r=v(t,n,a);a?p((function(){a.takeRecords().map(i),a.disconnect()}),!0):window.perfMetrics&&window.perfMetrics.onFirstInputDelay&&window.perfMetrics.onFirstInputDelay((function(t,i){i.timeStamp<e.timeStamp&&(n.value=t,n.isFinal=!0,n.entries=[{entryType:"first-input",name:i.type,target:i.target,cancelable:i.cancelable,startTime:i.timeStamp,processingStart:i.timeStamp+t}],r())}))},S=function(){return a||(a=new Promise((function(t){return["scroll","keydown","pointerdown"].map((function(n){addEventListener(n,t,{once:!0,passive:!0,capture:!0})}))}))),a},y=function(t){var n,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=o("LCP"),a=m(),r=function(t){var e=t.startTime;e<a.timeStamp?(i.value=e,i.entries.push(t)):i.isFinal=!0,n()},u=c("largest-contentful-paint",r);if(u){n=v(t,i,u,e);var s=function(){i.isFinal||(u.takeRecords().map(r),i.isFinal=!0,n())};S().then(s),p(s,!0)}},F=function(t){var n,e=o("TTFB");n=function(){try{var n=performance.getEntriesByType("navigation")[0]||function(){var t=performance.timing,n={entryType:"navigation",startTime:0};for(var e in t)"navigationStart"!==e&&"toJSON"!==e&&(n[e]=Math.max(t[e]-t.navigationStart,0));return n}();e.value=e.delta=n.responseStart,e.entries=[n],e.isFinal=!0,t(e)}catch(t){}},"complete"===document.readyState?setTimeout(n,0):addEventListener("pageshow",n)}}}]);
//# sourceMappingURL=3.08f9fe83.chunk.js.map
\ No newline at end of file
(this.webpackJsonpcheckin_dcv=this.webpackJsonpcheckin_dcv||[]).push([[3],{297:function(t,n,e){"use strict";e.r(n),e.d(n,"getCLS",(function(){return l})),e.d(n,"getFCP",(function(){return g})),e.d(n,"getFID",(function(){return h})),e.d(n,"getLCP",(function(){return y})),e.d(n,"getTTFB",(function(){return F}));var i,a,r=function(){return"".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)},o=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return{name:t,value:n,delta:0,entries:[],id:r(),isFinal:!1}},c=function(t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){var e=new PerformanceObserver((function(t){return t.getEntries().map(n)}));return e.observe({type:t,buffered:!0}),e}}catch(t){}},u=!1,s=!1,d=function(t){u=!t.persisted},f=function(){addEventListener("pagehide",d),addEventListener("beforeunload",(function(){}))},p=function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];s||(f(),s=!0),addEventListener("visibilitychange",(function(n){var e=n.timeStamp;"hidden"===document.visibilityState&&t({timeStamp:e,isUnloading:u})}),{capture:!0,once:n})},v=function(t,n,e,i){var a;return function(){e&&n.isFinal&&e.disconnect(),n.value>=0&&(i||n.isFinal||"hidden"===document.visibilityState)&&(n.delta=n.value-(a||0),(n.delta||n.isFinal||void 0===a)&&(t(n),a=n.value))}},l=function(t){var n,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=o("CLS",0),a=function(t){t.hadRecentInput||(i.value+=t.value,i.entries.push(t),n())},r=c("layout-shift",a);r&&(n=v(t,i,r,e),p((function(t){var e=t.isUnloading;r.takeRecords().map(a),e&&(i.isFinal=!0),n()})))},m=function(){return void 0===i&&(i="hidden"===document.visibilityState?0:1/0,p((function(t){var n=t.timeStamp;return i=n}),!0)),{get timeStamp(){return i}}},g=function(t){var n,e=o("FCP"),i=m(),a=c("paint",(function(t){"first-contentful-paint"===t.name&&t.startTime<i.timeStamp&&(e.value=t.startTime,e.isFinal=!0,e.entries.push(t),n())}));a&&(n=v(t,e,a))},h=function(t){var n=o("FID"),e=m(),i=function(t){t.startTime<e.timeStamp&&(n.value=t.processingStart-t.startTime,n.entries.push(t),n.isFinal=!0,r())},a=c("first-input",i),r=v(t,n,a);a?p((function(){a.takeRecords().map(i),a.disconnect()}),!0):window.perfMetrics&&window.perfMetrics.onFirstInputDelay&&window.perfMetrics.onFirstInputDelay((function(t,i){i.timeStamp<e.timeStamp&&(n.value=t,n.isFinal=!0,n.entries=[{entryType:"first-input",name:i.type,target:i.target,cancelable:i.cancelable,startTime:i.timeStamp,processingStart:i.timeStamp+t}],r())}))},S=function(){return a||(a=new Promise((function(t){return["scroll","keydown","pointerdown"].map((function(n){addEventListener(n,t,{once:!0,passive:!0,capture:!0})}))}))),a},y=function(t){var n,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=o("LCP"),a=m(),r=function(t){var e=t.startTime;e<a.timeStamp?(i.value=e,i.entries.push(t)):i.isFinal=!0,n()},u=c("largest-contentful-paint",r);if(u){n=v(t,i,u,e);var s=function(){i.isFinal||(u.takeRecords().map(r),i.isFinal=!0,n())};S().then(s),p(s,!0)}},F=function(t){var n,e=o("TTFB");n=function(){try{var n=performance.getEntriesByType("navigation")[0]||function(){var t=performance.timing,n={entryType:"navigation",startTime:0};for(var e in t)"navigationStart"!==e&&"toJSON"!==e&&(n[e]=Math.max(t[e]-t.navigationStart,0));return n}();e.value=e.delta=n.responseStart,e.entries=[n],e.isFinal=!0,t(e)}catch(t){}},"complete"===document.readyState?setTimeout(n,0):addEventListener("pageshow",n)}}}]);
//# sourceMappingURL=3.88365e3c.chunk.js.map
\ No newline at end of file
(this.webpackJsonpcheckin_dcv=this.webpackJsonpcheckin_dcv||[]).push([[0],{142:function(e,t,n){},249:function(e,t,n){"use strict";n.r(t);var a=n(7),r=n(0),c=n.n(r),o=n(11),i=n.n(o),s=(n(142),n(46)),u=n(13),l=n(37),d=n(12),h=n.n(d),j=n(19),b=n(33),p=n(290),m=n(288),f=n(293),O=n(250),x=n(285),g=n(289),v=n(291),y=n(294),w=n(286),C=n(287),k=n(51),S=n.n(k);function N(e,t){return I.apply(this,arguments)}function I(){return(I=Object(j.a)(h.a.mark((function e(t,n){var a,r=arguments;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return!(r.length>2&&void 0!==r[2])||r[2],a={method:"post",url:t,headers:{Accept:"application/json","Content-Type":"application/json"},timeout:6e4,data:JSON.stringify(n)},console.log("post data mobile",a),e.next=5,S()(a).then((function(e){return e})).then((function(e){return e})).catch((function(e){return console.log(e.request),{message:"error",status:e.request.status}}));case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}S.a.defaults.timeout=1e4;var T=function(){var e=Object(j.a)(h.a.mark((function e(t){return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",N("http://hrm.auth.dcv.vn/api/v1/auth/login",t).then((function(e){return e})).catch((function(e){return e})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function D(){return Object(a.jsxs)(O.a,{variant:"body2",color:"textSecondary",align:"center",children:["Copyright \xa9 ",Object(a.jsx)(x.a,{color:"inherit",href:"https://material-ui.com/",children:"Your Website"})," ",(new Date).getFullYear(),"."]})}var F=Object(w.a)((function(e){return{paper:{display:"flex",flexDirection:"column",alignItems:"center"},avatar:{margin:e.spacing(1),backgroundColor:e.palette.secondary.main},form:{width:"100%"},submit:{margin:e.spacing(3,0,2)}}})),W=function(){var e=F(),t=Object(u.f)(),n=Object(r.useState)({appcode:"Dcv",username:"",password:""}),c=Object(b.a)(n,2),o=c[0],i=c[1],s=Object(r.useState)(""),d=Object(b.a)(s,2),w=d[0],k=d[1],S=function(){var e=Object(j.a)(h.a.mark((function e(){var n;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log("Abc"),""!==o.username&&""!==o.password){e.next=6;break}k(""),k("C\u1ea7n ph\u1ea3i \u0111i\u1ec1n \u0111\u1ea7y \u0111\u1ee7 email v\xe0 password"),e.next=13;break;case 6:return k(""),console.log(o),e.next=10,T(o);case 10:n=e.sent,console.log(n.data),n.data&&0===n.data.errorCode?(localStorage.setItem("TOKEN_KEY",n.data.data.accessToken),t.push({pathname:"/home",state:{code:n.data.data.code,fullName:n.data.data.fullName}})):n.data&&1===n.data.errorCode&&(k(""),k("Sai email ho\u1eb7c m\u1eadt kh\u1ea9u"));case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return Object(a.jsx)("div",{style:{height:"100vh"},children:Object(a.jsxs)(C.a,{component:"main",maxWidth:"xs",children:[Object(a.jsx)(m.a,{}),Object(a.jsxs)("div",{className:e.paper,children:[Object(a.jsx)("img",{style:{width:200,height:100,marginTop:10,marginBottom:10},src:"/logo-DCV.png"}),Object(a.jsx)(O.a,{color:"primary",component:"h1",variant:"h5",children:"\u0110\u0102NG NH\xc2P"}),Object(a.jsx)(f.a,{variant:"outlined",margin:"normal",required:!0,fullWidth:!0,label:"email",autoComplete:"email",onChange:function(e){i(Object(l.a)(Object(l.a)({},o),{},{username:e.target.value}))},autoFocus:!0}),Object(a.jsx)(f.a,{variant:"outlined",margin:"normal",required:!0,fullWidth:!0,label:"M\u1eadt kh\u1ea9u",type:"password",onChange:function(e){i(Object(l.a)(Object(l.a)({},o),{},{password:e.target.value}))},autoComplete:"current-password"}),Object(a.jsx)("div",{style:{width:"100%"},children:Object(a.jsx)(g.a,{style:{marginLeft:"16px",color:"red",fontSize:"13px"},children:w})}),Object(a.jsx)(p.a,{type:"submit",fullWidth:!0,variant:"contained",color:"primary",className:e.submit,onClick:S,children:"\u0110\u0103ng nh\u1eadp"}),Object(a.jsx)(v.a,{container:!0,children:Object(a.jsx)(v.a,{item:!0,xs:!0,children:Object(a.jsx)(x.a,{href:"#",variant:"body2",children:"Qu\xean m\u1eadt kh\u1ea9u?"})})})]}),Object(a.jsx)(y.a,{mt:8,children:Object(a.jsx)(D,{})})]})})},q=n(292),E=n(91),P=n(92),z=n(124),A=n(122),B=n(93),J=n(123),L=n(70),Y={bounce:{animation:"x 1s",animationName:J.a.keyframes(B.bounceIn,"bounceIn"),animationDuration:"10s"}},_=(c.a.Component,function(e){var t=e.user,n=e.onCheckIn,c=Object(r.useState)(0),o=Object(b.a)(c,2),i=o[0];o[1];return Object(a.jsxs)(C.a,{fixed:!0,style:{height:"100vh"},children:[Object(a.jsx)("div",{style:{marginTop:50}}),Object(a.jsx)("div",{style:{textAlign:"center",fontSize:"35px"},children:Object(a.jsxs)(O.a,{variant:"h4",style:{color:" #3399ff"},children:["Ch\xe0o m\u1eebng ",t?t.name:""]})}),Object(a.jsx)("br",{}),Object(a.jsx)(v.a,{container:!0,style:{height:"100vh",justifyContent:"center"},children:Object(a.jsx)(q.a,{color:"secondary","aria-label":"edit",style:{width:"30vw",height:"30vw"},onClick:n,children:Object(a.jsx)("span",{style:{fontSize:"3vw"},children:0==i?"Checkin":"Checkout"})})})]})}),K=function(e){var t=Object(u.g)(),n=Object(r.useState)({latitude:null,longitude:null}),c=Object(b.a)(n,2),o=c[0],i=c[1];Object(r.useEffect)((function(){p()}),[]);var s=Object(r.useState)({name:t.state.fullName,code:t.state.code}),l=Object(b.a)(s,2),d=l[0],p=(l[1],function(){var e=Object(j.a)(h.a.mark((function e(){return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:navigator.geolocation.getCurrentPosition((function(e){e.coords.longitude&&i({latitude:e.coords.latitude,longitude:e.coords.longitude})}));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}());return Object(a.jsx)(_,{user:d,onCheckIn:function(){console.log(o)}})},M=function(){Object(u.f)();return Object(a.jsx)(s.a,{children:Object(a.jsxs)(u.c,{children:[Object(a.jsx)(u.a,{exact:!0,path:"/",children:Object(a.jsx)(W,{})}),Object(a.jsx)(u.a,{path:"/home",children:Object(a.jsx)(K,{})})]})})};var G=function(){return Object(a.jsx)(M,{})},H=function(e){e&&e instanceof Function&&n.e(3).then(n.bind(null,297)).then((function(t){var n=t.getCLS,a=t.getFID,r=t.getFCP,c=t.getLCP,o=t.getTTFB;n(e),a(e),r(e),c(e),o(e)}))};i.a.render(Object(a.jsx)(c.a.StrictMode,{children:Object(a.jsx)(G,{})}),document.getElementById("root")),H()}},[[249,1,2]]]);
//# sourceMappingURL=main.1d01cc7b.chunk.js.map
\ No newline at end of file
(this.webpackJsonpcheckin_dcv=this.webpackJsonpcheckin_dcv||[]).push([[0],{134:function(e,t,n){},223:function(e,t,n){"use strict";n.r(t);var a=n(7),c=n(0),r=n.n(c),i=n(11),o=n.n(i),s=(n(134),n(63)),l=n(12),j=n(268),u=n(266),h=n(271),d=n(267),b=n(273),m=n(263),x=n(269),O=n(272),p=n(117),g=n(264),f=n(265);function v(){return Object(a.jsxs)(p.a,{variant:"body2",color:"textSecondary",align:"center",children:["Copyright \xa9 ",Object(a.jsx)(m.a,{color:"inherit",href:"https://material-ui.com/",children:"Your Website"})," ",(new Date).getFullYear(),"."]})}var y=Object(g.a)((function(e){return{paper:{display:"flex",flexDirection:"column",alignItems:"center"},avatar:{margin:e.spacing(1),backgroundColor:e.palette.secondary.main},form:{width:"100%"},submit:{margin:e.spacing(3,0,2)}}})),w=function(){var e=y();return Object(a.jsx)("div",{style:{height:"100vh"},children:Object(a.jsxs)(f.a,{component:"main",maxWidth:"xs",children:[Object(a.jsx)(u.a,{}),Object(a.jsxs)("div",{className:e.paper,children:[Object(a.jsx)("img",{style:{width:200,height:100,marginTop:10,marginBottom:10},src:"/logo-DCV.png"}),Object(a.jsx)(p.a,{component:"h1",variant:"h5",children:"\u0110\u0103ng nh\u1eadp"}),Object(a.jsxs)("form",{className:e.form,noValidate:!0,children:[Object(a.jsx)(h.a,{variant:"outlined",margin:"normal",required:!0,fullWidth:!0,id:"email",label:"email",name:"email",autoComplete:"email",autoFocus:!0}),Object(a.jsx)(h.a,{variant:"outlined",margin:"normal",required:!0,fullWidth:!0,name:"password",label:"M\u1eadt kh\u1ea9u",type:"password",id:"password",autoComplete:"current-password"}),Object(a.jsx)(d.a,{control:Object(a.jsx)(b.a,{value:"remember",color:"primary"}),label:"Nh\u1edb m\u1eadt kh\u1ea9u"}),Object(a.jsx)(j.a,{type:"submit",fullWidth:!0,variant:"contained",color:"primary",className:e.submit,children:"\u0110\u0103ng nh\u1eadp"}),Object(a.jsx)(x.a,{container:!0,children:Object(a.jsx)(x.a,{item:!0,xs:!0,children:Object(a.jsx)(m.a,{href:"#",variant:"body2",children:"Qu\xean m\u1eadt kh\u1ea9u?"})})})]})]}),Object(a.jsx)(O.a,{mt:8,children:Object(a.jsx)(v,{})})]})})},C=n(66),k=n.n(C),S=n(82),T=n(69),F=n(270),D=n(83),I=n(84),N=n(116),W=n(114),B=n(85),L=n(115),P=n(65),q={bounce:{animation:"x 1s",animationName:L.a.keyframes(B.bounceIn,"bounceIn"),animationDuration:"10s"}},z=(r.a.Component,function(e){var t=Object(c.useState)({latitude:null,longitude:null}),n=Object(T.a)(t,2),r=(n[0],n[1],Object(c.useState)(0)),i=Object(T.a)(r,2),o=i[0],s=(i[1],function(){var e=Object(S.a)(k.a.mark((function e(){var t;return k.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,navigator.geolocation.getCurrentPosition((function(e){return{long:e.coords.longitude,lat:e.coords.latitude}}));case 2:t=e.sent,console.log(t);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}());return Object(a.jsxs)(f.a,{fixed:!0,style:{height:"100vh"},children:[Object(a.jsx)("div",{style:{marginTop:50}}),Object(a.jsx)("div",{style:{textAlign:"center",fontSize:"35px"},children:"T\xean: L\xea Tr\u1ecdng Tr\xed"}),Object(a.jsx)("br",{}),Object(a.jsx)(x.a,{container:!0,style:{height:"100vh",justifyContent:"center"},children:Object(a.jsx)(F.a,{color:"secondary","aria-label":"edit",style:{width:"20vw",height:"20vw"},onClick:function(){var e=s();e&&console.log(e)},children:Object(a.jsx)("span",{style:{fontSize:"3vw"},children:0==o?"Checkin":"Checkout"})})})]})}),J=function(e){return Object(a.jsx)(z,{})},M=function(){Object(l.f)();return Object(a.jsx)(s.a,{children:Object(a.jsxs)(l.c,{children:[Object(a.jsx)(l.a,{exact:!0,path:"/",children:Object(a.jsx)(w,{})}),Object(a.jsx)(l.a,{path:"/home",children:Object(a.jsx)(J,{})})]})})};var V=function(){return Object(a.jsx)(M,{})},Y=function(e){e&&e instanceof Function&&n.e(3).then(n.bind(null,276)).then((function(t){var n=t.getCLS,a=t.getFID,c=t.getFCP,r=t.getLCP,i=t.getTTFB;n(e),a(e),c(e),r(e),i(e)}))};o.a.render(Object(a.jsx)(r.a.StrictMode,{children:Object(a.jsx)(V,{})}),document.getElementById("root")),Y()}},[[223,1,2]]]);
//# sourceMappingURL=main.77ea1be5.chunk.js.map
\ No newline at end of file
!function(e){function r(r){for(var n,i,a=r[0],c=r[1],l=r[2],s=0,p=[];s<a.length;s++)i=a[s],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&p.push(o[i][0]),o[i]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);for(f&&f(r);p.length;)p.shift()();return u.push.apply(u,l||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,a=1;a<t.length;a++){var c=t[a];0!==o[c]&&(n=!1)}n&&(u.splice(r--,1),e=i(i.s=t[0]))}return e}var n={},o={1:0},u=[];function i(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.e=function(e){var r=[],t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise((function(r,n){t=o[e]=[r,n]}));r.push(t[2]=n);var u,a=document.createElement("script");a.charset="utf-8",a.timeout=120,i.nc&&a.setAttribute("nonce",i.nc),a.src=function(e){return i.p+"static/js/"+({}[e]||e)+"."+{3:"08f9fe83"}[e]+".chunk.js"}(e);var c=new Error;u=function(r){a.onerror=a.onload=null,clearTimeout(l);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),u=r&&r.target&&r.target.src;c.message="Loading chunk "+e+" failed.\n("+n+": "+u+")",c.name="ChunkLoadError",c.type=n,c.request=u,t[1](c)}o[e]=void 0}};var l=setTimeout((function(){u({type:"timeout",target:a})}),12e4);a.onerror=a.onload=u,document.head.appendChild(a)}return Promise.all(r)},i.m=e,i.c=n,i.d=function(e,r,t){i.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,r){if(1&r&&(e=i(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)i.d(t,n,function(r){return e[r]}.bind(null,n));return t},i.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(r,"a",r),r},i.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},i.p="/",i.oe=function(e){throw console.error(e),e};var a=this.webpackJsonpcheckin_dcv=this.webpackJsonpcheckin_dcv||[],c=a.push.bind(a);a.push=r,a=a.slice();for(var l=0;l<a.length;l++)r(a[l]);var f=c;t()}([]);
//# sourceMappingURL=runtime-main.51589bb8.js.map
\ No newline at end of file
!function(e){function r(r){for(var n,i,c=r[0],a=r[1],l=r[2],s=0,p=[];s<c.length;s++)i=c[s],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&p.push(o[i][0]),o[i]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(f&&f(r);p.length;)p.shift()();return u.push.apply(u,l||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,c=1;c<t.length;c++){var a=t[c];0!==o[a]&&(n=!1)}n&&(u.splice(r--,1),e=i(i.s=t[0]))}return e}var n={},o={1:0},u=[];function i(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.e=function(e){var r=[],t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise((function(r,n){t=o[e]=[r,n]}));r.push(t[2]=n);var u,c=document.createElement("script");c.charset="utf-8",c.timeout=120,i.nc&&c.setAttribute("nonce",i.nc),c.src=function(e){return i.p+"static/js/"+({}[e]||e)+"."+{3:"88365e3c"}[e]+".chunk.js"}(e);var a=new Error;u=function(r){c.onerror=c.onload=null,clearTimeout(l);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),u=r&&r.target&&r.target.src;a.message="Loading chunk "+e+" failed.\n("+n+": "+u+")",a.name="ChunkLoadError",a.type=n,a.request=u,t[1](a)}o[e]=void 0}};var l=setTimeout((function(){u({type:"timeout",target:c})}),12e4);c.onerror=c.onload=u,document.head.appendChild(c)}return Promise.all(r)},i.m=e,i.c=n,i.d=function(e,r,t){i.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,r){if(1&r&&(e=i(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)i.d(t,n,function(r){return e[r]}.bind(null,n));return t},i.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(r,"a",r),r},i.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},i.p="/",i.oe=function(e){throw console.error(e),e};var c=this.webpackJsonpcheckin_dcv=this.webpackJsonpcheckin_dcv||[],a=c.push.bind(c);c.push=r,c=c.slice();for(var l=0;l<c.length;l++)r(c[l]);var f=a;t()}([]);
//# sourceMappingURL=runtime-main.775bbc76.js.map
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment