PageSourceSearch

https://vjs.vietnam.vn/_next/static/chunks/1403-04cdb7ac627307a1.js

js vietnam.vn collected 2026-10-02 02:21:19 UTC 8,128 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1403],{21403:function(e,t,s){s.d(t,{default:function(){return W}});var a=s(57437),n=s(41556),l=s(81801),i=s(2265),r=s(99376),c=s(73442),o=s(60985),h=s(83410),d=s(28961),p=s(40428),u=s(70464),x=s(74370);function m(e){let{name:t,size:s}=e;return(0,a.jsx)("div",{className:"flex-center",style:{width:s,height:s,borderRadius:"22.73px",backgroundColor:function(e){let t=0;for(let s=0;s<e.length;s++)t=e.charCodeAt(s)+((t<<5)-t);return"hsl(".concat(t%360,", 70%, 60%)")}(t),color:"white",fontSize:"18px",display:"flex",justifyContent:"center",alignItems:"center",fontWeight:"bold"},children:(null==t?void 0:t.substring(0,1).toUpperCase())||"A"})}var v=s(96246),f=s(24370);function w(e){let{profile:t}=e,{useOpen:s}=(0,c.a)(),n=async e=>{2==e.key?(localStorage.removeItem(f.wr),await (0,x.L)(),s(f.Ql.ID,"login")):1==e.key&&s(f.Ql.VIETNAM,"profile")},l=(0,a.jsxs)(o.Z,{onClick:n,children:[(0,a.jsx)(o.Z.Item,{children:"Th\xf4ng tin chung"},"1"),(0,a.jsx)(o.Z.Item,{children:(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{style:{marginRight:"10px"},children:"Tho\xe1t"}),(0,a.jsx)(p.Z,{})]})},"2")]});return(0,a.jsx)(h.Z,{overlay:l,trigger:["click"],children:(0,a.jsxs)(d.Z,{children:[t&&(t.avatar||t.avatarUrl)?(0,a.jsx)("img",{width:24,height:24,style:{width:24,height:24,borderRadius:"22.73px"},src:(0,v.pj)(t.avatar||t.avatarUrl),alt:"Avatar"}):(0,a.jsx)(m,{name:null==t?void 0:t.displayName,size:"24px"}),(0,a.jsx)(u.Z,{className:"text-white"})]})})}var g=s(73070),j=s(64131),y=s(59352),N=s(49638);let b=()=>{let{profile:e}=(0,c.a)(),{t,getLink:s,isMobile:n}=(0,c.a)(),l=(0,r.usePathname)();return!e||!e.displayName||l.startsWith("/login")||l.startsWith("/otp-password")||l.startsWith("/otp-password")||l.startsWith("/signin")||l.startsWith("/signup")?(0,a.jsx)(y.ZP,{type:"primary",onClick:()=>{let e=s(f.Ql.ID,"login");e=e+"?callback="+encodeURIComponent(window.location.href),window.open(e,"_self")},className:"w-[115px] h-[40px]",children:t("share.login")}):(0,a.jsx)(w,{profile:e})};var W=e=>{let{vLang:t}=e,{t:s,lang:o,setLang:h,getStatic:d}=(0,c.a)(),[p,u]=(0,i.useState)(""),[x,m]=(0,i.useState)(!1),v=()=>{p?C(f.Ql.SEARCH,"?text=".concat(encodeURIComponent(p))):C(f.Ql.SEARCH,"")},[w,y]=(0,i.useState)(g.L.find(e=>e.value==t)||g.L[0]),{isMobile:W,useOpen:C,gotoHome:k,getLink:I}=(0,c.a)(),Z=(0,r.usePathname)(),_=()=>{m(!x)},L=e=>{let t=Z;Z.startsWith("/")||(t="/"+Z),t=="/"+o&&(t+="/"),y(e),m(!1),j.Z.set(f.iT,null==e?void 0:e.value),h(null==e?void 0:e.value),o!=(null==e?void 0:e.value)&&((null==e?void 0:e.value)!="vi"?"vi"!=o?"/"==Z||Z=="/"+o?window.open(Z.replaceAll("/"+o,"/"+(null==e?void 0:e.value)),"_self"):window.open(Z.replaceAll("/"+o+"/","/"+(null==e?void 0:e.value)+"/"),"_self"):window.open("/"+(null==e?void 0:e.value)+t,"_self"):window.open(t.replaceAll("/"+o+"/","/"),"_self"))};return W&&(Z.startsWith("/login")||Z.startsWith("/otp-password")||Z.startsWith("/otp-password")||Z.startsWith("/signin")||Z.startsWith("/signup"))?(0,a.jsx)(i.Fragment,{}):W?(0,a.jsx)("header",{className:"bg-white shadow w-full",children:(0,a.jsxs)("div",{className:"mx-auto flex justify-between items-center px-2",children:[(0,a.jsx)("div",{className:"flex items-center",children:(0,a.jsx)("a",{href:I(f.Ql.VIETNAM,"/","_self"),title:f.jS.title,children:(0,a.jsx)("img",{className:"h-12 w-auto block cp-hover",alt:f.jS.title,src:d("/assets/images/logo-vietnam.png")})})}),(0,a.jsxs)("div",{className:"flex items-center gap-4 py-4",children:[(0,a.jsx)("div",{className:"flex-center w-10 h-10",children:(0,a.jsx)(n.Z,{className:"h-[28px] w-[28px] text-[#0B0C0D]",onClick:()=>v()})}),(0,a.jsxs)("div",{className:"flex-grow-1 min-w-14",children:[(0,a.jsxs)("button",{onClick:_,className:"py-2 rounded bg-white flex items-center gap-1 h-10 justify-between",children:[(0,a.jsxs)("span",{className:"flex-center gap-2 font-inter-body-small",children:[w.icon,w.textMB]}),(0,a.jsx)(l.Z,{className:"h-4 w-4"})]}),x&&(0,a.jsxs)("div",{className:"absolute right-0 w-full mt-2 bg-white border rounded shadow-lg",style:{height:(null===g.L||void 0===g.L?void 0:g.L.length)*40+"px",zIndex:2},children:[(0,a.jsx)("div",{className:"h-10 w-full flex-items-center justify-end text-#0B0C0D",children:(0,a.jsx)(N.Z,{className:"w-4 h-4 mr-4"})}),g.L.filter(e=>e.value!=w.value).map((e,t)=>(0,a.jsxs)("a",{href:"#",className:"px-4 py-2 text-gray-800 hover:bg-gray-100 flex items-center",onClick:()=>L(e),children:[(0,a.jsx)("span",{className:"mr-4",children:e.icon}),e.text]},t))]})]}),(0,a.jsx)(b,{})]})]})}):(0,a.jsx)("header",{className:"bg-white shadow w-full",children:(0,a.jsxs)("div",{className:"mx-auto flex justify-between items-center py-2 pl-4 pr-8",children:[(0,a.jsx)("div",{className:"flex items-center",children:(0,a.jsx)("a",{href:I(f.Ql.VIETNAM,"/","_self"),title:f.jS.title,children:(0,a.jsx)("img",{className:"h-16 w-auto cp-hover",alt:f.jS.title,src:d("/assets/images/logo-vietnam.png")})})}),(0,a.jsxs)("div",{className:"flex items-center py-2 gap-6",children:[(0,a.jsxs)("div",{className:"relative flex-grow-2 max-w-md w-[400px] h-10",children:[(0,a.jsx)("input",{type:"text",onCh
1ange:e=>u(e.target.value),onKeyDown:e=>"Enter"===e.key&&v(),className:"rounded-md p-2 pl-10 h-full w-full focus:outline-none bg-[#F1F3F5]",placeholder:s("share.search_content")+" ..."}),(0,a.jsx)(n.Z,{className:"h-5 text-gray-500 absolute left-3 top-1/2 transform -translate-y-1/2",onClick:()=>v()})]}),(0,a.jsxs)("div",{className:"relative flex-grow-1 min-w-14",children:[(0,a.jsxs)("button",{onClick:_,className:"px-4 py-2 rounded bg-white hover:bg-gray-200 flex items-center gap-2 w-[180px] h-10 justify-between",children:[(0,a.jsxs)("span",{className:"flex-center gap-2",children:[w.icon,w.text]}),(0,a.jsx)(l.Z,{className:"h-5 w-5 ml-2"})]}),x&&(0,a.jsx)("div",{className:"absolute right-0 w-[180px] bg-white border rounded shadow-lg",style:{height:((null===g.L||void 0===g.L?void 0:g.L.length)-1)*40+"px",zIndex:2},children:g.L.filter(e=>e.value!=w.value).map((e,t)=>(0,a.jsxs)("a",{href:"#",className:"px-4 py-2 text-gray-800 hover:bg-gray-100 flex items-center",onClick:()=>L(e),children:[(0,a.jsx)("span",{className:"mr-4",children:e.icon}),e.text]},t))})]}),(0,a.jsx)(b,{})]})]})})}},74370:function(e,t,s){s.d(t,{L:function(){return n}});var a=s(8562);let n=async()=>{let e=await (0,a.MW)("/action/user/logout",{action:!0,cache:"no-cache"});return e.success&&e.data?e.data:null}},96246:function(e,t,s){s.d(t,{SS:function(){return c},Zw:function(){return l},eg:function(){return i},pj:function(){return n},tw:function(){return r}});var a=s(24370);function n(e,t){if(!e)return"";if(e.startsWith("http://103.168.58.210:9010/vietnam"))return e.replace("http://103.168.58.210:9010/vietnam",a.rM);if(e.startsWith("https://www.vietnam.vn/wp-content/"))return e.replace("https://www.vietnam.vn/wp-content/","https://cdn.vietnam.vn/wp-content/");let s=e.match(/<iframe.*?src=["']([^"']+)["']/);return s?s[1]:e.startsWith("https://vstatic.vrviet.vn/")&&a.iY&&t&&!e.endsWith(".avif")?e.replace("https://vstatic.vrviet.vn/",a.iY+"/thumb/"+t+"/"):e.startsWith("https://vstatic.vietnam.vn/")&&a.iY&&t&&!e.endsWith(".avif")?e.replace("https://vstatic.vietnam.vn/",a.iY+"/thumb/"+t+"/"):e.startsWith("happy/")?a.iY&&a.Vp&&t?a.iY+"/thumb/"+t+"/"+a.Vp+"/"+e:e.replace("happy/",a.wL+"/happy/"):e.startsWith("happy_tmp/")?a.iY&&a.Vp&&t?a.iY+"/thumb/"+t+"/"+a.Vp+"/"+e:e.replace("happy_tmp/",a.wL+"/happy_tmp/"):e.startsWith("http")?e:a.iY&&a.Vp&&t?a.iY+"/thumb/"+t+"/"+a.Vp+"/"+e:e.startsWith("/")?a.rM+""+e:a.rM+"/"+e}function l(e){if((null==e?void 0:e.startsWith("http://"))||(null==e?void 0:e.startsWith("https://")))return e;(null==e?void 0:e.startsWith("/"))||(e="/"+e);let t=a.DO||a.Mt;return"".concat(t).concat(e)}function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t="".concat(a.fH,"/login");return e&&(t+="?callback=".concat(encodeURIComponent(e))),t}function r(){return window.location.origin.startsWith("http://103.")?window.location.origin+"/":a.XR+"/"}function c(e){return"".concat(a.R9,"/login/google?callback=").concat(encodeURIComponent(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.