PageSourceSearch

https://meviet.vn/_next/static/chunks/1ya93t9t4qzvp.js

js meviet.vn collected 2026-10-04 11:35:54 UTC 6,349 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,747229,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M881 442.4H519.7v148.5h206.4c-8.9 48-35.9 88.6-76.6 115.8-34.4 23-78.3 36.6-129.9 36.6-99.9 0-184.4-67.5-214.6-158.2-7.6-23-12-47.6-12-72.9s4.4-49.9 12-72.9c30.3-90.6 114.8-158.1 214.7-158.1 56.3 0 106.8 19.4 146.6 57.4l110-110.1c-66.5-62-153.2-100-256.6-100-149.9 0-279.6 86-342.7 211.4-26 51.8-40.8 110.4-40.8 172.4S151 632.8 177 684.6C240.1 810 369.8 896 519.7 896c103.6 0 190.4-34.4 253.8-93 72.5-66.8 114.4-165.2 114.4-282.1 0-27.2-2.4-53.3-6.9-78.5z"}}]},name:"google",theme:"outlined"}},59674,e=>{"use strict";e.i(315724);var t=e.i(513576),a=e.i(747229),r=e.i(458400);function l(){return(l=Object.assign.bind()).apply(this,arguments)}let s=t.forwardRef((e,s)=>t.createElement(r.default,l({},e,{ref:s,icon:a.default})));e.s(["GoogleOutlined",0,s],59674)},36770,e=>{"use strict";var t=e.i(523518);let a=(0,t.createServerReference)("40dd1ef3c37cbec2d426eda8092da7650fc2d41595",t.callServer,void 0,t.findSourceMapURL,"loginGoogleProvider");e.s(["loginGoogleProvider",0,a])},263975,e=>{"use strict";var t=e.i(574658),a=e.i(513576),r=e.i(536339),l=e.i(307560),s=e.i(59674),i=e.i(639400),n=e.i(476038),o=e.i(523518);let c=(0,o.createServerReference)("40df56746b731285bbef80c7b494e40d18104d5048",o.callServer,void 0,o.findSourceMapURL,"loginAction");var d=e.i(36770),m=e.i(491937);e.s(["default",0,function({callbackUrl:e=""}){let[o,u]=(0,a.useState)(!1),[x,h]=(0,a.useState)({email:"",password:""}),[g,f]=(0,a.useState)(!1),p=(0,n.useRouter)(),b=(0,a.useMemo)(()=>""!==x.email&&!x.email.match(/^[A-Z0-9._%+-]+@[A-Z0-9.-]+.[A-Z]{2,4}$/i),[x]),v=async t=>{t.preventDefault();try{u(!0);let t=await c({username:x.email,password:x.password,callback:e});if(t?.login){let a=e||(t.verified?"/workspace":"/workspace/settings/verify");window.location.href=a}else u(!1),m.message.open({type:"error",content:"Thông tin tài khoản không đúng, xin vui lòng thử lại!"})}catch(e){u(!1),m.message.open({type:"error",content:e})}},y=async t=>{t.preventDefault();try{u(!0);let t=await (0,d.loginGoogleProvider)({callback:e});t?.url?p.push(t?.url||"/"):u(!1)}catch(e){u(!1)}},j=e=>{let{name:t,value:a}=e.target;h({...x,[t]:a})};return(0,t.jsx)("div",{className:"w-full",children:(0,t.jsxs)("div",{id:"log-in",className:"base-layout",children:[(0,t.jsx)("h4",{className:"text-2xl font-bold text-gray-900 tracking-tight text-center",children:"Đăng nhập"}),(0,t.jsx)("span",{className:"sub-title text-sm text-gray-500 block mt-2 text-center",children:"Vui lòng lựa chọn phương thức đăng nhập"}),(0,t.jsxs)("div",{className:"pt-6",children:[(0,t.jsx)("form",{className:"max-w-md mx-auto text-start flex flex-col",onSubmit:y,children:(0,t.jsx)("div",{className:"flex flex-col gap-5",children:(0,t.jsx)("div",{id:"google-sign-button",className:"button--with-icon",children:(0,t.jsx)(l.Button,{className:"bg-white border border-gray-200 text-gray-700 hover:bg-gray-50 font-semibold rounded-xl h-12",fullWidth:!0,size:"lg",type:"submit",isLoading:o,startContent:(0,t.jsx)(s.GoogleOutlined,{style:{color:"#EA4335",fontSize:"18px"}}),children:o?"Đang xử lý...":" Đăng nhập với Google"})})})}),(0,t.jsx)("div",{className:"flex items-center my-6 before:flex-1 before:border-t before:border-gray-200 before:mt-0.5 after:flex-1 after:border-t after:border-gray-200 after:mt-0.5",children:(0,t.jsx)("p",{className:"text-center font-medium text-xs text-gray-400 mx-4 mb-0",children:"Hoặc"})}),(0,t.jsxs)("form",{className:"max-w-md mx-auto text-start flex flex-col gap-4",onSubmit:v,children:[(0,t.jsx)("div",{className:"flex",children:(0,t.jsx)(i.Input,{isClearable:!0,name:"email",type:"email",label:"Email",variant:"bordered",placeholder:"Tên đăng nhập",className:"w-full mx-auto",isInvalid:b,color:b?"danger":"default",errorMessage:b&&"Email không hợp lệ",value:x.email,onChange:e=>{j(e)},onClear:()=>h({password:"",email:""}),classNames:{inputWrapper:["border-1 border-gray-200 hover:border-gray-400 focus-within:border-gray-400 rounded-xl h-12"]}})}),(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)(i.Input,{label:"Mật khẩu",name:"password",variant:"bordered",value:x.password,placeholder:"Nhập mật khẩu",onChange:e=>{j(e)},endContent:(0,t.jsx)("button",{className:"focus:outline-hidden text-gray-400 hover:text-gray-600 transition-colors",type:"button",onClick:()=>f(!g),children:g?(0,t.jsx)("i",{className:"las la-eye text-lg"}):(0,t.jsx)("i",{className:"las la-low-vision text-lg"})}),type:g?"text":"password",className:"mx-auto",classNames:{inputWrapper:["border-1 border-gray-200 hover:border-gray-400 focus-within:border-gray-400 rounded-xl h-12"]}}),(0,t.jsx)("div",{className:"text-right",children:(0,t.jsx)(r.default,{href:"/forgot",className:"text-xs text-gray-400 hover:text-gray-700 transition-colors",children:"Quên mật khẩu?"})})]}),(0,t.jsx)("div",{className:"pt-2",children:(0,t.jsx)(l.Button,{isLoading:o,type:"submit",size:"lg",fullWidth:!0,className:"rounded-xl h-12 bg-[#7827c8] hover:bg-[#6320a6] text-white font-semibold transition-colors duration-200",children:o?"Đang xử lý...":"Đăng nhập ngay"})})]})]}),(0,t.jsx)("div",{className:"mt-6 text-center",children:(0,t.jsxs)("p",{className:"text-sm text-gray-500",children:["Bạn chưa có tài khoản?",(0,t.jsx)(r.default,{prefetch:!1,href:"/signup",className:"text-sm font-semibold text-gray-900 hover:underline ms-2",children:"Đăng ký ngay"})]})})]})})}],263975)},29598,e=>{"use strict";var t=e.i(574658),a=e.i(476038),r=e.i(263975);e.s(["default",0,function(){let e=(0,a.useSearchParams)().get("callback")||"";return(0,t.jsx)("div",{className:"flex items-center justify-center mx-auto mt-6 md:mt-16 px-4 pb-12 w-full",children:(0,t.jsx)("div",{id:"auth-login",className:"w-full max-w-[440px]",children:(0,t.jsx)("div",{className:"w-full bg-white border-0 md:border border-gray-100/80 rounded-2xl p-6 md:p-8",children:(0,t.jsx)(r.default,{callbackUrl:e})})})})}])},955607,e=>{e.v(t=>
1Promise.all(["static/chunks/37rx4mtu-5054.js","static/chunks/44e0lxagkn1m1.js"].map(t=>e.l(t))).then(()=>t(576977)))}]);

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.