PageSourceSearch

https://vtvprime.vn/_next/static/chunks/494.8ed29f9feeec401a.js

js vtvprime.vn collected 2026-09-24 12:48:09 UTC 28,458 bytes, 3 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[494],{765:e=>{e.exports={root:"Input_root__Hny5o"}},41629:(e,t,r)=>{"use strict";r.d(t,{$h:()=>f,BU:()=>j,CG:()=>S,Cp:()=>C,H6:()=>l,Ii:()=>g,Oz:()=>_,R1:()=>w,_D:()=>o,_r:()=>v,_v:()=>h,a7:()=>d,c5:()=>k,cB:()=>c,f7:()=>D,fi:()=>p,k5:()=>M,kF:()=>i,qd:()=>x,sZ:()=>u,tX:()=>m,w:()=>y});var n=r(37876),s=r(22085),a=r(14232);function i(e){let t=new Date,r=new Date(e),n=Math.abs(t.getTime()-r.getTime())/1e3,s=t.getTime()-r.getTime()>0?"trước":"nữa",a=Math.floor(n/86400);if(a>365)return Math.floor(a/365)+" năm "+s;if(a>30)return Math.floor(a/30)+" th\xe1ng "+s;if(a>0)return a+" ng\xe0y "+s;let i=Math.floor(n/3600);if(i>0)return Math.floor(i)+" giờ "+s;let o=n%3600,l=Math.floor(o/60);return l>0?Math.floor(l)+" ph\xfat "+s:Math.floor(Math.floor(o%60))+" gi\xe2y "+s}function o(e,t){let r=new Date,n=new Date(e),s=(r.getTime()-n.getTime()||0)/1e3,a=Math.floor(s/86400);if(a>365)return Math.floor(a/365)+" năm";if(a>30)return Math.floor(a/30)+" th\xe1ng";if(a>0)return a+" ng\xe0y";let i=Math.floor(s/3600);if(i>0)return Math.floor(i)+" giờ";let o=s%3600,l=Math.floor(o/60);if(l>0)return Math.floor(l)+" ph\xfat";if("message"===t)return"Vừa xong";let d=Math.floor(o%60);return d<=10?"1 gi\xe2y":Math.floor(d)+" gi\xe2y"}let l=e=>{if(!e)return"";let t=new Date(new Date(new Date(e).getTime()+252e5).toUTCString().replace(/ GMT$/,"")),r=""+t.getDate(),n=""+(t.getMonth()+1),s=""+t.getFullYear(),a=""+t.getHours(),i=""+t.getMinutes();return r.length<2&&(r="0"+r),n.length<2&&(n="0"+n),a.length<2&&(a="0"+a),i.length<2&&(i="0"+i),a+":"+i+" ng\xe0y "+r+"-"+n+"-"+s},d=e=>{let t=new Date,r=new Date(e),n=Math.floor((r-t)/1e3/60),s=r.getHours().toString().padStart(2,"0"),a=r.getMinutes().toString().padStart(2,"0"),i=`${s}:${a}`,o=new Date(t.getFullYear(),t.getMonth(),t.getDate()),l=Math.floor((new Date(r.getFullYear(),r.getMonth(),r.getDate())-o)/864e5);if(1===l)return`Sắp khởi chiếu: ${i} Ng\xe0y mai`;if(l>1){let e=String(r.getDate()).padStart(2,"0"),t=String(r.getMonth()+1).padStart(2,"0"),n=r.getFullYear();return`Khởi chiếu l\xfac: ${i} ng\xe0y ${e}-${t}-${n}`}if(0===l){if(n>30)return`L\xfac ${i} h\xf4m nay`;if(n<=30&&n>=1)return`Sắp khởi chiếu: C\xf2n ${n} ph\xfat`;if(n<1&&n>=0)return"Sẵn s\xe0ng! Sắp khởi chiếu"}let d=Math.floor((t-r)/1e3),c=Math.floor(d/60),h=Math.floor(c/60),u=
1Math.floor(h/24),g=Math.floor(u/30);return d<60?`Bắt đầu ${d} gi\xe2y trước`:c<60?`Bắt đầu ${c} ph\xfat trước`:h<24?`Bắt đầu ${h} giờ trước`:u<30?`Bắt đầu ${u} ng\xe0y trước`:`Bắt đầu ${g} th\xe1ng trước`},c=e=>{let t=new Date,r=new Date(e),n=t-r;if(n<0)return"Chưa kết th\xfac";let s=Math.floor(n/6e4),a=Math.floor(n/36e5);if(s<60)return`Kết th\xfac ${s} ph\xfat trước`;if(a<24)return`Kết th\xfac ${a} giờ trước`;let i=r.getHours().toString().padStart(2,"0"),o=r.getMinutes().toString().padStart(2,"0"),l=r.getDate().toString().padStart(2,"0"),d=(r.getMonth()+1).toString().padStart(2,"0"),c=r.getFullYear();return`Kết th\xfac l\xfac: ${i}:${o} ng\xe0y ${l}-${d}-${c}`},h=e=>{if(!e)return"";let t=new Date(new Date(new Date(e).getTime()+252e5).toUTCString().replace(/ GMT$/,"")),r=""+t.getDate(),n=""+(t.getMonth()+1),s=""+t.getFullYear();return r.length<2&&(r="0"+r),n.length<2&&(n="0"+n),s+"-"+n+"-"+r};function u(e,t){if(!e)return"";let r=new Date(e),s=10>r.getMinutes()?"0"+r.getMinutes():r.getMinutes();return(0,n.jsxs)("span",{children:[r.getHours(),":",s," | ",r.getDate(),"/",r.getMonth()+1,t&&(0,n.jsxs)(a.Fragment,{children:["/",r.getFullYear()]})]})}function g(e){let t=Math.floor(e/60),r=Math.floor(e%60);return`${String(t).padStart(2,"0")}:${String(r).padStart(2,"0")}`}function x(e){let t=Math.floor(e/60),r=Math.floor(e%60);return 0===t?`${String(r).padStart(2,"0")} gi\xe2y`:`${String(t).padStart(2,"0")} ph\xfat ${String(r).padStart(2,"0")} gi\xe2y`}function f(e){let t=new Date(e),r=10>t.getHours()?"0"+t.getHours():t.getHours(),s=10>t.getMinutes()?"0"+t.getMinutes():t.getMinutes();return(0,n.jsxs)("span",{children:[r,":",s]})}function m(e){let t=Math.floor(e/3600),r=e%3600,n=Math.floor(r/60),s=r%60;return 0===t?t="":t+=":",n<10&&(n="0"+n),s<10&&(s="0"+s),t+n+":"+s}function p(e){let t=new Date;t.setDate(t.getDate()+e);let r=t.getMonth()+1;return{date:t.getFullYear()+"-"+r+"-"+t.getDate(),day:0===e?`H\xf4m nay (${t.getDate()}/${r})`:`${b(t.getDay())} (${t.getDate()}/${r})`}}function w(e){let t=new Date;t.setDate(t.getDate()+e);let r=t.getMonth()+1;return{date:t.getFullYear()+"-"+r+"-"+t.getDate(),day:0===e?`H\xf4m nay, ${t.getDate()}/${r}`:`${b(t.getDay())}, ${t.getDate()}/${r}`}}function b(e){return 0===e?"Chủ nhật":"Thứ "+(e+1)}function C(e){return new Date(e).getFullYear()}function v(e){let[t,r,n]=e.split("-"),s=`${t}-${r.padStart(2,"0")}-${n.padStart(2,"0")}`;return{timeStart:new Date(s).setHours(0,0,0,0),timeStop:new Date(s).setHours(23,59,59,999)}}let j=e=>{if(!e)return"";let t=Math.floor(e/3600),r=Math.floor((e-3600*t)/60),n=Math.floor(e-3600*t-60*r);return t>0?t+"h "+r+"ph "+n+"s":r+"ph "+n+"s"},M=e=>{if(!e||0===e)return"0 lượt xem";if(e<1e3)return`${e} lượt xem`;if(e>=1e3&&e<1e4){let t=(Math.round(100*Math.round(e/100)/1e3*10)/10).toFixed(1);return`${t}N lượt xem`}if(e>=1e4&&e<1e6){let t=Math.round(1e3*Math.round(e/1e3)/1e3);return`${t}N lượt xem`}if(e>=1e6){let t=(Math.round(1e4*Math.round(e/1e4)/1e6*100)/100).toFixed(2);return`${t}Tr lượt xem`}},k=e=>{if(!e||0===e)return 0;if(e<1e3)return e.toString();if(e>=1e3&&e<1e4){let t=(Math.round(100*Math.round(e/100)/1e3*10)/10).toFixed(1);return`${t}N`}if(e>=1e4&&e<1e6){let t=Math.round(1e3*Math.round(e/1e3)/1e3);return`${t}N`}if(e>=1e6){let t=(Math.round(1e4*Math.round(e/1e4)/1e6*100)/100).toFixed(2);return`${t}Tr`}return e.toString()};function _(e,t,r,n){let a=new Date;if("subVTVprime"===r){let e=(0,s.h4)(),t=e?.activeSubscriptions||[];t?.forEach(e=>{e?.tier?.id===n?.id&&e?.status==="ACTIVE"&&(a=e?.nextPaymentDate?new Date(e?.nextPaymentDate):new Date)})}switch(t?.toUpperCase()){case"DAY":a.setDate(a.getDate()+e);break;case"MONTH":a.setMonth(a.getMonth()+e);break;case"YEAR":a.setFullYear(a.getFullYear()+e)}return a.toLocaleDateString("vi-VN",{year:"numeric",month:"2-digit",day:"2-digit"})}function y(e=new Date){let t=e=>String(e).padStart(2,"0"),r=e.getFullYear(),n=t(e.getMonth()+1),s=t(e.getDate()),a=t(e.getHours()),i=t(e.getMinutes()),o=t(e.getSeconds()),l=-e.getTimezoneOffset(),d=t(Math.floor(Math.abs(l)/60)),c=t(Math.abs(l)%60);return`${r}-${n}-${s}T${a}:${i}:${o}${l>=0?"+":"-"}${d}:${c}`}let D=e=>{if(e){let t=new DOMParser().parseFromString(e,"text/html"),r=t.body.textContent||t.body.innerText,n=r.split(".");return n.length>=2?`${n[0]}.${n[1]}`:r}return""},S=e=>{if(e?.length>0){let t=new DOMParser;return e.map(e=>{if(!e?.html)return"";let r=t.parseFromString(e.html,"text/html");return r.body.textContent?.trim()||""}
1).filter(Boolean).join("\n")}return""}},56703:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n=r(37876),s=r(14232),a=r(58103),i=r.n(a),o=r(765),l=r.n(o);let d=(0,s.forwardRef)(({error:e,...t},r)=>{let[a,o]=(0,s.useState)(!0);function d(){o(e=>!e)}return(0,n.jsxs)(s.Fragment,{children:[(0,n.jsx)("div",{children:(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)("input",{ref:r,autoComplete:"new-password",className:`rounded-lg outline-none text-primary w-full border border-solid bg-surface-bright py-[10px] px-3 text16_400_24
2                  ${e?"border border-solid border-brand":"border-none"}
3              `,...t,type:a?"password":"text",maxLength:20}),(0,n.jsx)("div",{className:i()("absolute right-3 top-1/2 text-gray-400 text-sm",l().root),role:"button",tabIndex:"-1",onKeyDown:d,onClick:d,children:a?c:h})]})}),(0,n.jsx)("div",{className:"h-6",children:e&&(0,n.jsx)("span",{className:"text-brand text-sm",children:e})})]})}),c=(0,n.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("path",{d:"M2.01677 10.5946C1.90328 10.4149 1.84654 10.3251 1.81477 10.1865C1.79091 10.0824 1.79091 9.91824 1.81477 9.81415C1.84654 9.67556 1.90328 9.58571 2.01677 9.40601C2.95461 7.92103 5.74617 4.16699 10.0003 4.16699C14.2545 4.16699 17.0461 7.92103 17.9839 9.40601C18.0974 9.58571 18.1541 9.67556 18.1859 9.81415C18.2098 9.91824 18.2098 10.0824 18.1859 10.1865C18.1541 10.3251 18.0974 10.4149 17.9839 10.5946C17.0461 12.0796 14.2545 15.8337 10.0003 15.8337C5.74617 15.8337 2.95461 12.0796 2.01677 10.5946Z",stroke:"#76767F",strokeWidth:"1.67",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("path",{d:"M10.0003 12.5003C11.381 12.5003 12.5003 11.381 12.5003 10.0003C12.5003 8.61961 11.381 7.50033 10.0003 7.50033C8.61962 7.50033 7.50034 8.61961 7.50034 10.0003C7.50034 11.381 8.61962 12.5003 10.0003 12.5003Z",stroke:"#76767F",strokeWidth:"1.67",strokeLinecap:"round",strokeLinejoin:"round"})]}),h=(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21"})})},80494:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>T});var n=r(37876),s=r(56703),a=r(9759),i=r(56132),o=r(14232),l=r(65426),d=r(37847),c=r(22085),h=r(89099),u=r(48230),g=r.n(u),x=r(23799),f=r(41506),m=r(15078),p=r(71950),w=r(78220),b=r(41629),C=r(76984);function v({onChangeView:e,onLogin:t}){let[r,s]=(0,o.useState)("456756"),[a,c]=(0,o.useState)(60),[h,u]=(0,o.useState)(0),{togleModalLogin:g}=(0,l.A)(),x=(0,o.useRef)(),f=(0,o.useRef)(),m=(0,o.useRef)();async function y(){m.current&&clearInterval(m.current);try{let e=await i.AR.getDeviceInfoCode(),t=Number(e?.data?.expires_in),r=Date.now()+1e3*t;u(r),c(t),s(e?.data?.user_code),f.current=setInterval(D,2e3,e?.data?.device_code),m.current=setInterval(()=>{let e=Math.max(0,Math.ceil((r-Date.now())/1e3));c(e),e<=0&&(clearInterval(m.current),m.current=null)},[1e3])}catch(e){console.log(e)}}async function D(e){let r=await i.AR.checkDeviceCode({grant_type:"urn:ietf:params:oauth:grant-type:device_code",device_code:e});if(r?.data?.access_token){try{let e=r?.data?.id_token,t=(0,C.s)(e);sessionStorage.setItem("user_id",t?.sub||"")}catch(e){console.log({error:e})}d.Ew.success({message:"Đăng nhập th\xe0nh c\xf4ng, bắt đầu trải nghiệm!"}),t("qr_code",r?.data)}}return(0,o.useEffect)(()=>{0===a&&clearInterval(m.current)},[a]),(0,o.useEffect)(()=>(x.current="w-"+(0,w.A)(),c(60),y(),()=>{clearInterval(m.current),clearInterval(f.current)}),[]),(0,n.jsxs)("div",{className:"h-full relative text-primary",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between mb-8",children:[(0,n.jsx)("button",{onClick:()=>e("phone"),className:"w-[30px] h-[30px] flex justify-center items-center rounded-full bg-background3 backdrop-blur-md border border-solid border-light-300",children:j}),(0,n.jsx)("h2",{className:"text20_700_30",children:"Đăng nhập QR"}),(0,n.jsx)("button",{className:"w-[30px] h-[30px] flex justify-center items-center rounded-full bg-background3 backdrop-blur-md border border-solid border-light-300",onClick:()=>g(!1),children:M})]}),(0,n.jsxs)("div",{className:"",children:[(0,n.jsxs)("div",{className:"text14_500_20 flex items-center justify-start mb-4",children:[k," ",(0,n.jsx)("p",{className:"ml-2",children:"Truy cập “T\xe0i khoản” tr\xean ứng dụng điện thoại"})]}),(0,n.jsx)("div",{className:"mb-6",children:(0,n.jsx)("img",{src:"/auth/imageGuideOpenQRCode.png",alt:""})}),(0,n.jsxs)("div",{className:"text14_500_20 flex items-center justify-start mb-4",children:[_," ",(0,n.jsx)("p",{className:"ml-2",children:"Lựa chọn qu\xe9t QR hoặc nhập m\xe3 để đăng nhập"})]}),(0,n.jsxs)("div",{className:"flex flex-col items-center",children:[(0,n.jsx)("div",{className:"p-3 rounded-xl bg-inverse",children:(0,n.jsx)(p.X,{id:"web-qr",value:r,size:106})}),(0,n.jsx)("div",{className:"w-[130px] text-center mt-3 px-3 py-[10px] rounded-lg text16_600_24 border border-solid border-bright2 bg-bright",children:r})]})]}),0!==a?(0,n.jsxs)("div",{className:"mt-2 text-center text-secondary1 text16_500_24",children:["C\xf3 gi\xe1 trị đến ",(0,b.$h)(h)]}):(0,n.jsx)("div",{className:"text-brand mt-2 text16_500_20 text-center",children:"Đ\xe3 hết hạn"})]})}let j=(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:(0,n.jsx)("path",{d:"M9.875 11.75L6.125 8L9.875 4.25",stroke:"#F4F4F8",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),M=(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:(0,n.jsx)("path",{d:"M11.75 4.25L4.25 11.75M4.25 4.25L11.75 11.75",stroke:"#F4F4F8",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),k=(0,n.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("path",{d:"M0.5 12C0.5 5.64873 5.64873 0.5 12 0.5C18.3513 0.5 23.5 5.64873 23.5 12C23.5 18.3513 18.3513 23.5 12 23.5C5.64873 23.5 0.5 18.3513 0.5 12Z",fill:"#2F3037"}),(0,n.jsx)("path",{d:"M0.5 12C0.5 5.64873 5.64873 0.5 12 0.5C18.3513 0.5 23.5 5.64873 23.5 12C23.5 18.3513 18.3513 23.5 12 23.5C5.64873 23.5 0.5 18.3513 0.5 12Z",stroke:"#45454A"}
3),(0,n.jsx)("path",{d:"M13.8302 6.81818V17H11.6775V8.86151H11.6178L9.28613 10.3232V8.41406L11.8067 6.81818H13.8302Z",fill:"#F4F4F8"})]}),_=(0,n.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("path",{d:"M0.5 12C0.5 5.64873 5.64873 0.5 12 0.5C18.3513 0.5 23.5 5.64873 23.5 12C23.5 18.3513 18.3513 23.5 12 23.5C5.64873 23.5 0.5 18.3513 0.5 12Z",fill:"#2F3037"}),(0,n.jsx)("path",{d:"M0.5 12C0.5 5.64873 5.64873 0.5 12 0.5C18.3513 0.5 23.5 5.64873 23.5 12C23.5 18.3513 18.3513 23.5 12 23.5C5.64873 23.5 0.5 18.3513 0.5 12Z",stroke:"#45454A"}),(0,n.jsx)("path",{d:"M8.4161 17V15.4489L12.0404 12.093C12.3486 11.7947 12.6072 11.5263 12.816 11.2876C13.0281 11.049 13.1888 10.8153 13.2982 10.5866C13.4076 10.3546 13.4623 10.1044 13.4623 9.83594C13.4623 9.53764 13.3943 9.28078 13.2584 9.06534C13.1225 8.84659 12.9369 8.67921 12.7016 8.56321C12.4663 8.44389 12.1995 8.38423 11.9012 8.38423C11.5896 8.38423 11.3179 8.44721 11.0858 8.57315C10.8538 8.6991 10.6749 8.87973 10.5489 9.11506C10.423 9.35038 10.36 9.63044 10.36 9.95526H8.31667C8.31667 9.28906 8.46748 8.7107 8.76909 8.22017C9.0707 7.72964 9.49328 7.35014 10.0368 7.08168C10.5804 6.81321 11.2068 6.67898 11.9161 6.67898C12.6453 6.67898 13.28 6.80824 13.8202 7.06676C14.3638 7.32197 14.7864 7.67661 15.088 8.13068C15.3896 8.58475 15.5404 9.10511 15.5404 9.69176C15.5404 10.0762 15.4642 10.4557 15.3117 10.8303C15.1626 11.2048 14.8957 11.6207 14.5113 12.0781C14.1268 12.5322 13.5849 13.0774 12.8856 13.7138L11.3991 15.1705V15.2401H15.6746V17H8.4161Z",fill:"#F4F4F8"})]});var y=r(30955);r(5068),r(99742);let D=({onLogin:e,onChangeView:t})=>{let r,s;return(0,o.useRef)({DevicePlatform:1,DeviceName:(r="Unknown",Object.keys(s={"Generic Linux":/Linux/i,Android:/Android/i,BlackBerry:/BlackBerry/i,Bluebird:/EF500/i,"Chrome OS":/CrOS/i,Datalogic:/DL-AXIS/i,Honeywell:/CT50/i,iPad:/iPad/i,iPhone:/iPhone/i,iPod:/iPod/i,macOS:/Macintosh/i,Windows:/IEMobile|Windows/i,Zebra:/TC70|TC55/i}).map(e=>navigator.userAgent.match(s[e])&&(r=e)),r+" "+function(){if(-1!=(navigator.userAgent.indexOf("Opera")||navigator.userAgent.indexOf("OPR")))return"Opera";if(-1!=navigator.userAgent.indexOf("Edg"))return"Edge";if(-1!=navigator.userAgent.indexOf("Chrome"))return"Chrome";if(-1!=navigator.userAgent.indexOf("Safari"))return"Safari";if(-1!=navigator.userAgent.indexOf("Firefox"))return"Firefox";else if(-1!=navigator.userAgent.indexOf("MSIE")||!0==!!document.documentMode)return"IE";else return"unknown"}()),TokenDevice:(0,c.IP)()}),(0,n.jsxs)("div",{className:"grid sm:grid-cols-3 grid-cols-3 gap-4 mt-6",children:[(0,n.jsx)("div",{}),(0,n.jsx)("div",{onClick:()=>{t("qr")},children:(0,n.jsx)("div",{className:"w-full sm:w-auto flex justify-center py-[10px] px-[30px] border border-solid border-bright2 bg-bright rounded-lg cursor-pointer",children:S})}),(0,n.jsx)("div",{})]})},S=(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:(0,n.jsx)("path",{d:"M5.41667 5.41667H5.425M14.5833 5.41667H14.5917M5.41667 14.5833H5.425M10.8333 10.8333H10.8417M14.5833 14.5833H14.5917M14.1667 17.5H17.5V14.1667M11.6667 13.75V17.5M17.5 11.6667H13.75M13 8.33333H16.1667C16.6334 8.33333 16.8667 8.33333 17.045 8.24251C17.2018 8.16261 17.3293 8.03513 17.4092 7.87833C17.5 7.70007 17.5 7.46671 17.5 7V3.83333C17.5 3.36662 17.5 3.13327 17.4092 2.95501C17.3293 2.79821 17.2018 2.67072 17.045 2.59083C16.8667 2.5 16.6334 2.5 16.1667 2.5H13C12.5333 2.5 12.2999 2.5 12.1217 2.59083C11.9649 2.67072 11.8374 2.79821 11.7575 2.95501C11.6667 3.13327 11.6667 3.36662 11.6667 3.83333V7C11.6667 7.46671 11.6667 7.70007 11.7575 7.87833C11.8374 8.03513 11.9649 8.16261 12.1217 8.24251C12.2999 8.33333 12.5333 8.33333 13 8.33333ZM3.83333 8.33333H7C7.46671 8.33333 7.70007 8.33333 7.87833 8.24251C8.03513 8.16261 8.16261 8.03513 8.24251 7.87833C8.33333 7.70007 8.33333 7.46671 8.33333 7V3.83333C8.33333 3.36662 8.33333 3.13327 8.24251 2.95501C8.16261 2.79821 8.03513 2.67072 7.87833 2.59083C7.70007 2.5 7.46671 2.5 7 2.5H3.83333C3.36662 2.5 3.13327 2.5 2.95501 2.59083C2.79821 2.67072 2.67072 2.79821 2.59083 2.95501C2.5 3.13327 2.5 3.36662 2.5 3.83333V7C2.5 7.46671 2.5 7.70007 2.59083 7.87833C2.67072 8.03513 2.79821 8.16261 2.95501 8.24251C3.13327 8.33333 3.36662 8.33333 3.83333 8.33333ZM3.83333 17.5H7C7.46671 17.5 7.70007 17.5 7.87833 17.4092C8.03513 17.3293 8.16261 17.2018 8.24251 17.045C8.33333 16.8667 8.33333 16.6334 8.33333 16.1667V13C8.33333 12.5333 8.33333 12.2999 8.24251 12.1217C8.16261 11.9649 8.03513 11.8374 7.87833 11.7575C7.70007 11.6667 7.46671 11.6667 7 11.6667H3.83333C3.36662 11.6667 3.13327 11.6667 2.95501 11.7575C2.79821 11.8374 2.67072 11.9649 2.59083 12.1217C2.5 12.2999 2.5 12.5333 2.5 13V16.1667C2.5 16.6334 2.5 16.8667 2.59083 17.045C2.67072 17.2018 2.79821 17.3293 2.95501 17.4092C3.13327 17.5 3.36662 17.5 3.83333 17.5Z",stroke:"#F4F4F8",strokeWidth:"1.67",strokeLinecap:"round",strokeLinejoin:"round"})});var N=r(55364),A=r(59),$=r(83133);let F=function({dateDeleteAcc:e}){let{togleModalLogin:t,setUser:r}=(0,l.A)(),s=(0,h.useRouter)();async function a(){let e=sessionStorage.getItem(m.A.SessionID),t=await i.AR.restoreAccount({session_id:e});if(t?.data?.authorization_code){sessionStorage.setItem("user_id",t?.data?.session_note?.user_id||"");let e=await i.AR.loginGetToken({code:t?.data?.authorization_code,code_verifier:sessionStorage.getItem(m.A.CodeVerifier)}),n=e?.data?.access_token,a=e?.data?.refresh_token;if(n){(0,c.ki)(n),(0,c.fE)(a);try{let e=await i.AR.getProfile(),{data:t}=e;if(e.error)d.Ew.success({message:"Lấy th\xf4ng tin thất bại"});else{let e=sessionStorage.getItem("user_id")||void 0,n={...(0,N.nd)(t),id:e};console.log({dataUser:n}),r(n),await (0,A.y4)(n),(0,$.XB)($.dd.PHONE_NUMBER,{user_id:n?.id,email:n?.email,phoneNumber:n?.phoneNumber,fullName:n?.fullName,gender:n?.gender,birthDate:n?.birthDate}),s.reload(),d.Ew.success({message:"Kh\xf4i phục t\xe0i khoản th\xe0nh c\xf4ng!"})}}catch(e){throw e&&d.Ew.error({message:e}),e}return}}d.Ew.error({message:"Kh\xf4i phục t\xe0i khoản thất bại, vui l\xf2ng thử lại!"})}return(0,n.jsxs)("div",{className:"",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("h1",{className:"text24_700_32 text-primary",children:"T\xe0i khoản của bạn đang được l\xean lịch để xo\xe1."}),(0,n.jsxs)("p",{className:"text16_400_24 text-secondary2 mt-2",children:["T\xe0i khoản của bạn hiện đang được l\xean lịch để xo\xe1. Nếu bạn kh\xf4ng muốn xo\xe1 nữa, bạn sẽ c\xf3 thể tiếp tục sử dụng VTVprime như trước. Ngược lại, t\xe0i khoản của bạn sẽ bị xo\xe1 vĩnh viễn sau ",e]})]}),(0,n.jsxs)("div",{className:"w-full mt-5 flex justify-between items-center text14_700_20 text-primary",children:[(0,n.jsx)("button",{className:"py-3 px-8 w-1/2 bg-bright border border-solid border-bright2 rounded-lg mr-6",onClick:a,children:"Tiếp tục"}),(0,n.jsx)("button",{className:"py-3 px-8 w-1/2 bg-brand rounded-lg",onClick:function(){t()},children:"Xo\xe1 t\xe0i khoản"})]})]})};var L=r(41265),E=r(16657),H=r(26456);let I={phone:"",password:""};function T({setView:e,onClose:t,setPhone:r}){let{setUser:u}=(0,l.A)(),[p,w]=(0,o.useState)("phone"),[C,j]=(0,o.useState)(I),[M,k]=(0,o.useState)(I),[_,S]=(0,o.useState)(""),[N,O]=(0,o.useState)(""),[P,W]=(0,o.useState)(!0),Y=(0,h.useRouter)(),Z=(0,E.Rt)(),G=Z?.isCaptchaDisabled===!1;async function q(t){t?.preventDefault();let{phone:n,password:s}=C,a={};if("phone"===p?n||(a.phone="Số điện thoại kh\xf4ng được để trống"):s.length<6&&(a.password="Mật khẩu lớn hơn 6 k\xfd tự"),Object.keys(a).length>0)return void k(a);if(k(I),"phone"===p){if(!P)return void d.Ew.warring({message:"Vui l\xf2ng đồng \xfd Điều khoản dịch vụ v\xe0 Ch\xednh s\xe1ch bảo mật"});if(G&&!N)return;let t=n?.startsWith("0")?n:"0"+n,s={phone_number:t,code_challenge:sessionStorage.getItem(m.A.CodeChallenge)};G&&(s.attestation_token=N);let a=await i.AR.loginGetSessionID(s),o=a?.data;if(o?.session_id)if(sessionStorage.setItem(m.A.SessionID,o?.session_id),o?.session_note?.is_new_user||o?.error_code===y.A.OtpChannelRequired)r(t),e("register");else if(o?.error_code===y.A.PasscodeRetryExceeded){d.Ew.error({message:y.A.PasscodeRetryExceededDes}),w("password");return}else w("password");else o?.error_code===y.A.OtpLimitationExceeded&&d.Ew.warring({message:y.A.OtpLimitationExceededDes})}else{let e=await i.AR.loginGetAuthorizationCode({session_id:sessionStorage.getItem(m.A.SessionID),passcode:C.password});if(e?.data?.error_code&&e?.data?.error_code===y.A.InvalidPasscode)return void d.Ew.error({message:y.A.InvalidPasscodeDe
3s});if(e?.data?.error_code&&e?.data?.error_code===y.A.RestorationApprovalRequired){S((0,b.sZ)(e?.data?.session_note?.deletion_date||new Date,!0)),w("restoreAcc");return}if(e?.data?.error_code&&e?.data?.error_code===y.A.PasscodeRetryExceeded)return void d.Ew.error({message:y.A.PasscodeRetryExceededDes});if(sessionStorage.setItem("user_id",e?.data?.session_note?.user_id||""),e?.data?.authorization_code){let t=await i.AR.loginGetToken({code:e?.data?.authorization_code,code_verifier:sessionStorage.getItem(m.A.CodeVerifier)});if(t?.data?.access_token)return void K("code_number",t?.data)}return void d.Ew.error({message:"Đăng nhập thất bại, vui l\xf2ng thử lại!"})}}async function K(e,r){let{access_token:n,refresh_token:s}=r;(0,c.ki)(n),(0,c.fE)(s);try{let{data:r}=await (0,H.A)(),n=await i.AR.getProfile(),{data:s}=n;if(n.error)d.Ew.success({message:"Lấy th\xf4ng tin thất bại"});else{let n=sessionStorage.getItem("user_id")||r?.id||void 0,a={...r,id:n,avatarURL:s?.avatar_url,birthDate:s?.birth_date,phoneNumber:s?.phone_number,email:s?.email,fullName:s?.full_name,gender:s?.gender};u(a),await (0,A.y4)(a);let i=function(e){switch(e){case"code_number":case"phone":case"phone_number":return $.dd.PHONE_NUMBER;case"google":return $.dd.GOOGLE;case"apple":return $.dd.APPLE;case"qr_code":return $.dd.QR_CODE;default:return null}}(e);i&&(0,$.XB)(i,{user_id:a?.id,email:a?.email,phoneNumber:a?.phoneNumber,fullName:a?.fullName,gender:a?.gender,birthDate:a?.birthDate}),t(),"desktop"!==(0,A.Ap)()?(d.Ew.success({message:"Đăng nhập th\xe0nh c\xf4ng, bắt đầu trải nghiệm!"}),Y.replace(Y.asPath,void 0,{scroll:!1}).catch(()=>{})):Y.reload()}}catch(e){throw e&&d.Ew.error({message:e}),e}}function z(e,t){if("password"===e&&t?.length>6)return;let r=(0,f.Hy)(t);"password"!==e||r?(k({}),j(r=>({...r,[e]:t}))):d.Ew.error({message:"Mật khẩu chỉ được chứa chữ số"})}function U(e){w(e),j(I)}(0,o.useEffect)(()=>{let e=()=>{t()};return Y.events.on("routeChangeComplete",e),()=>{Y.events.off("routeChangeComplete",e)}},[Y.events]);let{password:Q,phone:X}=C;return(0,n.jsx)("div",{className:"flex justify-between flex-col modal_login bg-surface rounded-xl",children:(0,n.jsxs)("div",{className:"p-6 flex-col flex",children:[("phone"===p||"password"===p)&&(0,n.jsxs)("form",{onSubmit:q,children:[(0,n.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,n.jsx)("h1",{className:"text24_700_32 text-primary",children:"phone"===p?"Đăng nhập hoặc Đăng k\xfd":"Mật khẩu của bạn"}),(0,n.jsx)("div",{className:"w-[24px] h-[24px] cursor-pointer flex justify-center items-center rounded-full bg-background4 backdrop-blur-md border border-solid border-light-300",onClick:t,children:R})]}),"phone"===p&&(0,n.jsxs)("div",{className:"flex items-start gap-3",children:[(0,n.jsxs)("div",{className:"flex items-center gap-1 py-[10px] pl-3 pr-2 rounded-lg bg-bright text-primary  text16_500_24",children:[(0,n.jsx)("img",{src:"/auth/flagVN.png",alt:""}),"+84",V]}),(0,n.jsx)("div",{className:"w-[calc(100%-119px)]",children:(0,n.jsx)(a.A,{onChange:e=>z("phone",e?.trim()),placeholder:"Số điện thoại",error:M.phone,name:"phone",value:X})})]}),"password"===p&&(0,n.jsxs)("div",{children:[(0,n.jsx)(s.A,{onChange:e=>z("password",e.target.value),placeholder:"Mật khẩu",name:"password",error:M.password,value:Q}),(0,n.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsxs)("label",{className:"containerCheckBox",children:[(0,n.jsx)("input",{type:"checkbox"}),(0,n.jsx)("span",{className:"checkmark"})]}),(0,n.jsx)("span",{className:"text14_500_18 text-secondary2 ml-2",children:"Lưu mật khẩu"})]}),(0,n.jsx)("div",{className:"text-primary text14_500_18 cursor-pointer",onClick:function(){r(C.phone),e("reset-password")},children:"Qu\xean mật khẩu?"})]})]}),(0,n.jsx)(x.A,{title:"phone"===p?"Tiếp tục":"Đăng nhập",onClick:q,isActive:"phone"===p?G?(0,f.d4)(C?.phone)&&!!N&&P:(0,f.d4)(C?.phone)&&P:(0,f.yf)(C?.password)}),"phone"===p&&(0,n.jsxs)("label",{className:"mt-4 flex items-start gap-3 cursor-pointer select-none",children:[(0,n.jsx)("input",{type:"checkbox",checked:P,onChange:e=>W(e.target.checked),className:"sr-only"}
3),(0,n.jsx)("span",{className:`mmt-[2px] h-4 w-4 rounded-[4px] border border-solid flex items-center justify-center transition-colors s ${P?"bg-[#FF0000] border-[#E10000] text-white shadow-[inset_0_-1px_0_rgba(0,0,0,0.2)]":"bg-bright border-light-300 text-transparent"}`,children:B}),(0,n.jsxs)("span",{className:"text-secondary2 text14_400_20 leading-6",children:["Khi tiếp tục, bạn đồng \xfd với"," ",(0,n.jsx)(g(),{href:"/dieu-khoan",className:"text-primary font-semibold",children:"Điều khoản dịch vụ"})," ","v\xe0"," ",(0,n.jsx)(g(),{href:"/chinh-sach",className:"text-primary font-semibold",children:"Ch\xednh s\xe1ch bảo mật"})," ","của VTVprime"]})]}),"phone"===p&&(0,n.jsxs)("div",{className:"mt-6",children:[(0,n.jsx)("div",{className:"text14_400_20 text-secondary2 text-center",children:"Hoặc đăng nhập bằng"}),(0,n.jsx)(D,{onChangeView:U,onLogin:K})]}),G&&(0,n.jsx)(L.A,{siteKey:"0x4AAAAAAB6sQI1eJWDWWHxA",onVerify:e=>{O(e),sessionStorage.setItem("turnstile_token",e)}})]}),"restoreAcc"===p&&(0,n.jsx)(F,{onLogin:K,dateDeleteAcc:_}),"qr"===p&&(0,n.jsx)(v,{onChangeView:U,onLogin:K})]})})}let R=(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:(0,n.jsx)("path",{d:"M9 3L3 9M3 3L9 9",stroke:"#F4F4F8",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),V=(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:(0,n.jsx)("path",{d:"M5 7.5L10 12.5L15 7.5",stroke:"#76767F",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})}),B=(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 15 15",fill:"none",children:(0,n.jsx)("path",{d:"M12.5 4L5.625 10.875L2.5 7.75",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round"})})}}]);

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.