1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4094],{37216:(t,e,n)=>{n.d(e,{A:()=>a});var r=n(37847),o=n(89099);function a(){let t=(0,o.useRouter)();return{pushToContentDetail:e=>{console.log({contentVideo:e});let n=function(t){if(!t)return"";let e=t?.id?t:t?.content,n=t?.contentType||e?.contentType;if(e?.series?.id)return`/content/series/${e?.series?.id}?episodeOffset=${e?.series?.episodeOffset}`;switch(e?.__typename){case"Event":return`/content/event/${e?.id}`;case"Channel":return`/content/channel/${e?.id}`;case"Programme":return`/content/channel/${e?.channel?.id}`;case"Series":return`/content/series/${e?.id}`;case"Short":return`/content/short/${e?.id}`;case"Collection":return e?.collectionType==="SERIES"?`/content/series/${e?.id}`:`/content/generic-collection/${e?.id}`;case"VOD":return"GENERIC_VOD"===n?`/content/generic-vod/${e?.id}`:`/content/movie-vod/${e?.id}`;case"StudioProfile":return`/content/studio-profile/${e?.id}`;case"SearchItem":if(e?.contentType==="GENERIC_VOD")return`/content/generic-vod/${e?.contentID}`;if(e?.contentType==="MOVIE_VOD")return`/content/movie-vod/${e?.contentID}`;if(e?.contentType==="STUDIO_PROFILE")return`/content/studio-profile/${e?.contentID}`;if(e?.contentType==="CHANNEL")return`/content/channel/${e?.contentID}`;if(e?.contentType==="SHORT")return`/content/short/${e?.contentID}`;return`/content/series/${e?.contentID}`;default:return""}}(e);n?t.push(n):r.Ew.warring({message:"Ná»i dung hiá»n kh\xf4ng khả dụng"})},returnLinkByContentType:t=>{if(!t)return"";let e=t?.id?t:t?.content;if(e?.series?.id)return`/content/series/${e?.series?.id}?episodeOffset=${e?.series?.episodeOffset}`;switch(e?.__typename){case"Event":return`/content/event/${e?.id}`;case"Channel":return`/content/channel/${e?.id}`;case"Programme":return`/content/channel/${e?.channel?.id}`;case"Series":return`/content/series/${e?.id}`;case"Short":return`/content/short/${e?.id}`;case"Collection":if(e?.collectionType==="SERIES")return`/content/series/${e?.id}`;return`/content/generic-collection/${e?.id}`;case"VOD":if(t?.contentType==="GENERIC_VOD")return`/content/generic-vod/${e?.id}`;return`/content/movie-vod/${e?.id}`;case"StudioProfile":return`/content/studio-profile/${e?.id}`;case"SearchItem":if(e?.contentType==="GENERIC_VOD")return`/content/generic-vod/${e?.contentID}`;if(e?.contentType==="MOVIE_VOD")return`/content/movie-vod/${e?.contentID}`;if(e?.contentType==="STUDIO_PROFILE")return`/content/studio-profile/${e?.contentID}`;else if(e?.contentType==="CHANNEL")return`/content/channel/${e?.contentID}`;else if(e?.contentType==="SHORT")return`/content/short/${e?.contentID}`;else return`/content/series/${e?.contentID}`;default:return""}}}}},41629:(t,e,n)=>{n.d(e,{$h:()=>$,BU:()=>x,CG:()=>O,Cp:()=>m,H6:()=>l,Ii:()=>g,Oz:()=>I,R1:()=>p,_D:()=>u,_r:()=>y,_v:()=>s,a7:()=>c,c5:()=>w,cB:()=>f,f7:()=>C,fi:()=>D,k5:()=>T,kF:()=>i,qd:()=>d,sZ:()=>h,tX:()=>M,w:()=>E});var r=n(37876),o=n(22085),a=n(14232);function i(t){let e=new Date,n=new Date(t),r=Math.abs(e.getTime()-n.getTime())/1e3,o=e.getTime()-n.getTime()>0?"trưá»c":"nữa",a=Math.floor(r/86400);if(a>365)return Math.floor(a/365)+" nÄm "+o;if(a>30)return Math.floor(a/30)+" th\xe1ng "+o;if(a>0)return a+" ng\xe0y "+o;let i=Math.floor(r/3600);if(i>0)return Math.floor(i)+" giá» "+o;let u=r%3600,l=Math.floor(u/60);return l>0?Math.floor(l)+" ph\xfat "+o:Math.floor(Math.floor(u%60))+" gi\xe2y "+o}function u(t,e){let n=new Date,r=new Date(t),o=(n.getTime()-r.getTime()||0)/1e3,a=Math.floor(o/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(o/3600);if(i>0)return Math.floor(i)+" giá»";let u=o%3600,l=Math.floor(u/60);if(l>0)return Math.floor(l)+" ph\xfat";if("message"===e)return"Vừa xong";let c=Math.floor(u%60);return c<=10?"1 gi\xe2y":Math.floor(c)+" gi\xe2y"}let l=t=>{if(!t)return"";let e=new Date(new Date(new Date(t).getTime()+252e5).toUTCString().replace(/ GMT$/,"")),n=""+e.getDate(),r=""+(e.getMonth()+1),o=""+e.getFullYear(),a=""+e.getHours(),i=""+e.getMinutes();return n.length<2&&(n="0"+n),r.length<2&&(r="0"+r),a.length<2&&(a="0"+a),i.length<2&&(i="0"+i),a+":"+i+" ng\xe0y "+n+"-"+r+"-"+o},c=t=>{let e=new Date,n=new Date(t),r=Math.floor((n-e)/1e3/60),o=n.getHours().toString().padStart(2,"0"),a=n.getMinutes().toString().padStart(2,"0"),i=`${o}:${a}`,u=new Date(e.getFullYear(),e.getMonth(),e.getDate()),l=Math.floor((new Date(n.getFullYear(),n.getMonth(),n.getDate())-u)/864e5);if(1===l)return`Sắp khá»i chiếu: ${i} Ng\xe0y mai`;if(l>1){let t=String(n.getDate()).padStart(2,"0"),e=String(n.getMonth()+1).padStart(2,"0"),r=n.getFullYear();return`Khá»i chiếu l\xfac: ${i} ng\xe0y ${t}-${e}-${r}`}if(0===l){if(r>30)return`L\xfac ${i} h\xf4m nay`;if(r<=30&&r>=1)return`Sắp khá»i chiếu: C\xf2n ${r} ph\xfat`;if(r<1&&r>=0)return"Sẵn s\xe0ng! Sắp khá»i chiếu"}let c=Math.floor((e-n)/1e3),f=Math.floor(c/60),s=Math.floor(f/60),h=Math.floor(s/24),g=Math.floor(h/30);return c<60?`Bắt Äầu ${c}
1 gi\xe2y trưá»c`:f<60?`Bắt Äầu ${f} ph\xfat trưá»c`:s<24?`Bắt Äầu ${s} giá» trưá»c`:h<30?`Bắt Äầu ${h} ng\xe0y trưá»c`:`Bắt Äầu ${g} th\xe1ng trưá»c`},f=t=>{let e=new Date,n=new Date(t),r=e-n;if(r<0)return"Chưa kết th\xfac";let o=Math.floor(r/6e4),a=Math.floor(r/36e5);if(o<60)return`Kết th\xfac ${o} ph\xfat trưá»c`;if(a<24)return`Kết th\xfac ${a} giá» trưá»c`;let i=n.getHours().toString().padStart(2,"0"),u=n.getMinutes().toString().padStart(2,"0"),l=n.getDate().toString().padStart(2,"0"),c=(n.getMonth()+1).toString().padStart(2,"0"),f=n.getFullYear();return`Kết th\xfac l\xfac: ${i}:${u} ng\xe0y ${l}-${c}-${f}`},s=t=>{if(!t)return"";let e=new Date(new Date(new Date(t).getTime()+252e5).toUTCString().replace(/ GMT$/,"")),n=""+e.getDate(),r=""+(e.getMonth()+1),o=""+e.getFullYear();return n.length<2&&(n="0"+n),r.length<2&&(r="0"+r),o+"-"+r+"-"+n};function h(t,e){if(!t)return"";let n=new Date(t),o=10>n.getMinutes()?"0"+n.getMinutes():n.getMinutes();return(0,r.jsxs)("span",{children:[n.getHours(),":",o," | ",n.getDate(),"/",n.getMonth()+1,e&&(0,r.jsxs)(a.Fragment,{children:["/",n.getFullYear()]})]})}function g(t){let e=Math.floor(t/60),n=Math.floor(t%60);return`${String(e).padStart(2,"0")}:${String(n).padStart(2,"0")}`}function d(t){let e=Math.floor(t/60),n=Math.floor(t%60);return 0===e?`${String(n).padStart(2,"0")} gi\xe2y`:`${String(e).padStart(2,"0")} ph\xfat ${String(n).padStart(2,"0")} gi\xe2y`}function $(t){let e=new Date(t),n=10>e.getHours()?"0"+e.getHours():e.getHours(),o=10>e.getMinutes()?"0"+e.getMinutes():e.getMinutes();return(0,r.jsxs)("span",{children:[n,":",o]})}function M(t){let e=Math.floor(t/3600),n=t%3600,r=Math.floor(n/60),o=n%60;return 0===e?e="":e+=":",r<10&&(r="0"+r),o<10&&(o="0"+o),e+r+":"+o}function D(t){let e=new Date;e.setDate(e.getDate()+t);let n=e.getMonth()+1;return{date:e.getFullYear()+"-"+n+"-"+e.getDate(),day:0===t?`H\xf4m nay (${e.getDate()}/${n})`:`${S(e.getDay())} (${e.getDate()}/${n})`}}function p(t){let e=new Date;e.setDate(e.getDate()+t);let n=e.getMonth()+1;return{date:e.getFullYear()+"-"+n+"-"+e.getDate(),day:0===t?`H\xf4m nay, ${e.getDate()}/${n}`:`${S(e.getDay())}, ${e.getDate()}/${n}`}}function S(t){return 0===t?"Chá»§ nháºt":"Thứ "+(t+1)}function m(t){return new Date(t).getFullYear()}function y(t){let[e,n,r]=t.split("-"),o=`${e}-${n.padStart(2,"0")}-${r.padStart(2,"0")}`;return{timeStart:new Date(o).setHours(0,0,0,0),timeStop:new Date(o).setHours(23,59,59,999)}}let x=t=>{if(!t)return"";let e=Math.floor(t/3600),n=Math.floor((t-3600*e)/60),r=Math.floor(t-3600*e-60*n);return e>0?e+"h "+n+"ph "+r+"s":n+"ph "+r+"s"},T=t=>{if(!t||0===t)return"0 lượt xem";if(t<1e3)return`${t} lượt xem`;if(t>=1e3&&t<1e4){let e=(Math.round(100*Math.round(t/100)/1e3*10)/10).toFixed(1);return`${e}N lượt xem`}if(t>=1e4&&t<1e6){let e=Math.round(1e3*Math.round(t/1e3)/1e3);return`${e}N lượt xem`}if(t>=1e6){let e=(Math.round(1e4*Math.round(t/1e4)/1e6*100)/100).toFixed(2);return`${e}Tr lượt xem`}},w=t=>{if(!t||0===t)return 0;if(t<1e3)return t.toString();if(t>=1e3&&t<1e4){let e=(Math.round(100*Math.round(t/100)/1e3*10)/10).toFixed(1);return`${e}N`}if(t>=1e4&&t<1e6){let e=Math.round(1e3*Math.round(t/1e3)/1e3);return`${e}N`}if(t>=1e6){let e=(Math.round(1e4*Math.round(t/1e4)/1e6*100)/100).toFixed(2);return`${e}Tr`}return t.toString()};function I(t,e,n,r){let a=new Date;if("subVTVprime"===n){let t=(0,o.h4)(),e=t?.activeSubscriptions||[];e?.forEach(t=>{t?.tier?.id===r?.id&&t?.status==="ACTIVE"&&(a=t?.nextPaymentDate?new Date(t?.nextPaymentDate):new Date)})}switch(e?.toUpperCase()){case"DAY":a.setDate(a.getDate()+t);break;case"MONTH":a.setMonth(a.getMonth()+t);break;case"YEAR":a.setFullYear(a.getFullYear()+t)}return a.toLocaleDateString("vi-VN",{year:"numeric",month:"2-digit",day:"2-digit"})}function E(t=new Date){let e=t=>String(t).padStart(2,"0"),n=t.getFullYear(),r=e(t.getMonth()+1),o=e(t.getDate()),a=e(t.getHours()),i=e(t.getMinutes()),u=e(t.getSeconds()),l=-t.getTimezoneOffset(),c=e(Math.floor(Math.abs(l)/60)),f=e(Math.abs(l)%60);return`${n}-${r}-${o}T${a}:${i}:${u}${l>=0?"+":"-"}${c}:${f}`}let C=t=>{if(t){let e=new DOMParser().parseFromString(t,"text/html"),n=e.body.textContent||e.body.innerText,r=n.split(".");return r.length>=2?`${r[0]}.${r[1]}`:n}return""},O=t=>{if(t?.length>0){let e=new DOMParser;return t.map(t=>{if(!t?.html)return"";let n=e.parseFromString(t.html,"text/html");return n.body.textContent?.trim()||""}
1).filter(Boolean).join("\n")}return""}}}]);
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.