1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3267],{82701:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(84297);let o=(0,r.Z)("ArrowRight",[["line",{x1:"5",x2:"19",y1:"12",y2:"12",key:"13b5wn"}],["polyline",{points:"12 5 19 12 12 19",key:"sfr3i6"}]])},80008:function(e,t,n){(e.exports=n(85177)).tz.load(n(91128))},85177:function(e,t,n){var r,o,i;i=function(e){"use strict";void 0===e.version&&e.default&&(e=e.default);var t,n,r={},o={},i={},a={},s={};e&&"string"==typeof e.version||logError("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var l=e.version.split("."),c=+l[0],f=+l[1];function charCodeToInt(e){return e>96?e-87:e>64?e-29:e-48}function unpackBase60(e){var t,n=0,r=e.split("."),o=r[0],i=r[1]||"",a=1,s=0,l=1;for(45===e.charCodeAt(0)&&(n=1,l=-1);n<o.length;n++)s=60*s+(t=charCodeToInt(o.charCodeAt(n)));for(n=0;n<i.length;n++)a/=60,s+=(t=charCodeToInt(i.charCodeAt(n)))*a;return s*l}function arrayToInt(e){for(var t=0;t<e.length;t++)e[t]=unpackBase60(e[t])}function mapIndices(e,t){var n,r=[];for(n=0;n<t.length;n++)r[n]=e[t[n]];return r}function unpack(e){var t=e.split("|"),n=t[2].split(" "),r=t[3].split(""),o=t[4].split(" ");return arrayToInt(n),arrayToInt(r),arrayToInt(o),function(e,t){for(var n=0;n<t;n++)e[n]=Math.round((e[n-1]||0)+6e4*e[n]);e[t-1]=1/0}(o,r.length),{name:t[0],abbrs:mapIndices(t[1].split(" "),r),offsets:mapIndices(n,r),untils:o,population:0|t[5]}}function Zone(e){e&&this._set(unpack(e))}function Country(e,t){this.name=e,this.zones=t}function OffsetAt(e){var t=e.toTimeString(),n=t.match(/\([a-z ]+\)/i);"GMT"===(n=n&&n[0]?(n=n[0].match(/[A-Z]/g))?n.join(""):void 0:(n=t.match(/[A-Z]{3,5}/g))?n[0]:void 0)&&(n=void 0),this.at=+e,this.abbr=n,this.offset=e.getTimezoneOffset()}function ZoneScore(e){this.zone=e,this.offsetScore=0,this.abbrScore=0}function sortZoneScores(e,t){return e.offsetScore!==t.offsetScore?e.offsetScore-t.offsetScore:e.abbrScore!==t.abbrScore?e.abbrScore-t.abbrScore:e.zone.population!==t.zone.population?t.zone.population-e.zone.population:t.zone.name.localeCompare(e.zone.name)}function normalizeName(e){return(e||"").toLowerCase().replace(/\//g,"_")}function addZone(e){var t,n,o,i;for("string"==typeof e&&(e=[e]),t=0;t<e.length;t++)r[i=normalizeName(n=(o=e[t].split("|"))[0])]=e[t],a[i]=n,function(e,t){var n,r;for(arrayToInt(t),n=0;n<t.length;n++)s[r=t[n]]=s[r]||{},s[r][e]=!0}(i,o[2].split(" "))}function getZone(e,t){var n,i=r[e=normalizeName(e)];return i instanceof Zone?i:"string"==typeof i?(i=new Zone(i),r[e]=i,i):o[e]&&t!==getZone&&(n=getZone(o[e],getZone))?((i=r[e]=new Zone)._set(n),i.name=a[e],i):null}function addLink(e){var t,n,r,i;for("string"==typeof e&&(e=[e]),t=0;t<e.length;t++)r=normalizeName((n=e[t].split("|"))[0]),i=normalizeName(n[1]),o[r]=i,a[r]=n[0],o[i]=r,a[i]=n[1]}function zoneExists(e){return zoneExists.didShowError||(zoneExists.didShowError=!0,logError("moment.tz.zoneExists('"+e+"') has been deprecated in favor of !moment.tz.zone('"+e+"')")),!!getZone(e)}function needsOffset(e){var t="X"===e._f||"x"===e._f;return!!(e._a&&void 0===e._tzm&&!t)}function logError(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e)}function tz(t){var n,r=Array.prototype.slice.call(arguments,0,-1),o=arguments[arguments.length-1],i=e.utc.apply(null,r);return!e.isMoment(t)&&needsOffset(i)&&(n=getZone(o))&&i.add(n.parse(i),"minutes"),i.tz(o),i}(c<2||2===c&&f<6)&&logError("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js "+e.version+". See momentjs.com"),Zone.prototype={_set:function(e){this.name=e.name,this.abbrs=e.abbrs,this.untils=e.untils,this.offsets=e.offsets,this.population=e.population},_index:function(e){var t;if((t=function(e,t){var n,r=t.length;if(e<t[0])return 0;if(r>1&&t[r-1]===1/0&&e>=t[r-2])return r-1;if(e>=t[r-1])return -1;for(var o=0,i=r-1;i-o>1;)t[n=Math.floor((o+i)/2)]<=e?o=n:i=n;return i}(+e,this.untils))>=0)return t},countries:function(){var e=this.name;return Object.keys(i).filter(function(t){return -1!==i[t].zones.indexOf(e)})},parse:function(e){var t,n,r,o,i=+e,a=this.offsets,s=this.untils,l=s.length-1;for(o=0;o<l;o++)if(t=a[o],n=a[o+1],r=a[o?o-1:o],t<n&&tz.moveAmbiguousForward?t=n:t>r&&tz.moveInvalidForward&&(t=r),i<s[o]-6e4*t)return a[o];return a[l]},abbr:function(e){return this.abbrs[this._index(e)]},offset:function(e){return logError("zone.offset has been deprecated
1in favor of zone.utcOffset"),this.offsets[this._index(e)]},utcOffset:function(e){return this.offsets[this._index(e)]}},ZoneScore.prototype.scoreOffsetAt=function(e){this.offsetScore+=Math.abs(this.zone.utcOffset(e.at)-e.offset),this.zone.abbr(e.at).replace(/[^A-Z]/g,"")!==e.abbr&&this.abbrScore++},tz.version="0.5.48",tz.dataVersion="",tz._zones=r,tz._links=o,tz._names=a,tz._countries=i,tz.add=addZone,tz.link=addLink,tz.load=function(e){addZone(e.zones),addLink(e.links),function(e){var t,n,r,o;if(e&&e.length)for(t=0;t<e.length;t++)n=(o=e[t].split("|"))[0].toUpperCase(),r=o[1].split(" "),i[n]=new Country(n,r)}(e.countries),tz.dataVersion=e.version},tz.zone=getZone,tz.zoneExists=zoneExists,tz.guess=function(e){return(!n||e)&&(n=function(){try{var e=Intl.DateTimeFormat().resolvedOptions().timeZone;if(e&&e.length>3){var t=a[normalizeName(e)];if(t)return t;logError("Moment Timezone found "+e+" from the Intl api, but did not have that data loaded.")}}catch(e){}var n,r,o,i=function(){var e,t,n,r,o=new Date().getFullYear()-2,i=new OffsetAt(new Date(o,0,1)),a=i.offset,s=[i];for(r=1;r<48;r++)(n=new Date(o,r,1).getTimezoneOffset())!==a&&(s.push(e=function(e,t){for(var n,r;r=((t.at-e.at)/12e4|0)*6e4;)(n=new OffsetAt(new Date(e.at+r))).offset===e.offset?e=n:t=n;return e}(i,t=new OffsetAt(new Date(o,r,1)))),s.push(new OffsetAt(new Date(e.at+6e4))),i=t,a=n);for(r=0;r<4;r++)s.push(new OffsetAt(new Date(o+r,0,1))),s.push(new OffsetAt(new Date(o+r,6,1)));return s}(),l=i.length,c=function(e){var t,n,r,o,i=e.length,l={},c=[],f={};for(t=0;t<i;t++)if(r=e[t].offset,!f.hasOwnProperty(r)){for(n in o=s[r]||{})o.hasOwnProperty(n)&&(l[n]=!0);f[r]=!0}for(t in l)l.hasOwnProperty(t)&&c.push(a[t]);return c}(i),f=[];for(r=0;r<c.length;r++){for(o=0,n=new ZoneScore(getZone(c[r]),l);o<l;o++)n.scoreOffsetAt(i[o]);f.push(n)}return f.sort(sortZoneScores),f.length>0?f[0].zone.name:void 0}()),n},tz.names=function(){var e,t=[];for(e in a)a.hasOwnProperty(e)&&(r[e]||r[o[e]])&&a[e]&&t.push(a[e]);return t.sort()},tz.Zone=Zone,tz.unpack=unpack,tz.unpackBase60=unpackBase60,tz.needsOffset=needsOffset,tz.moveInvalidForward=!0,tz.moveAmbiguousForward=!1,tz.countries=function(){return Object.keys(i)},tz.zonesForCountry=function(e,t){if(!(e=i[e.toUpperCase()]||null))return null;var n=e.zones.sort();return t?n.map(function(e){var t=getZone(e);return{name:e,offset:t.utcOffset(new Date)}}):n};var u=e.fn;function abbrWrap(e){return function(){return this._z?this._z.abbr(this):e.call(this)}}function resetZoneWrap(e){return function(){return this._z=null,e.apply(this,arguments)}}e.tz=tz,e.defaultZone=null,e.updateOffset=function(t,n){var r,o=e.defaultZone;if(void 0===t._z&&(o&&needsOffset(t)&&!t._isUTC&&t.isValid()&&(t._d=e.utc(t._a)._d,t.utc().add(o.parse(t),"minutes")),t._z=o),t._z){if(16>Math.abs(r=t._z.utcOffset(t))&&(r/=60),void 0!==t.utcOffset){var i=t._z;t.utcOffset(-r,n),t._z=i}else t.zone(r,n)}},u.tz=function(t,n){if(t){if("string"!=typeof t)throw Error("Time zone name must be a string, got "+t+" ["+typeof t+"]");return this._z=getZone(t),this._z?e.updateOffset(this,n):logError("Moment Timezone has no data for "+t+". See http://momentjs.com/timezone/docs/#/data-loading/."),this}if(this._z)return this._z.name},u.zoneName=abbrWrap(u.zoneName),u.zoneAbbr=abbrWrap(u.zoneAbbr),u.utc=resetZoneWrap(u.utc),u.local=resetZoneWrap(u.local),u.utcOffset=(t=u.utcOffset,function(){return arguments.length>0&&(this._z=null),t.apply(this,arguments)}),e.tz.setDefault=function(t){return(c<2||2===c&&f<9)&&logError("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+e.version+"."),e.defaultZone=t?getZone(t):null,e};var d=e.momentProperties;return"[object Array]"===Object.prototype.toString.call(d)?(d.push("_z"),d.push("_a")):d&&(d._z=null),e},e.exports?e.exports=i(n(30381)):(r=[n(30381)],void 0===(o=i.apply(t,r))||(e.exports=o))},78615:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/tin-tuc/[title]/[id]/tags",function(){return n(90712)}])},20380:function(e,t,n){"use strict";var r=n(85893),o=n(9008),i=n.n(o),a=n(11163);t.Z=e=>{let{title:t,description:n,type:o,image:s,imageWidth:l,imageHeight:c}=e,f=(0,a.useRouter)();return(0,r.jsxs)(i(),{children:[(0,r.jsx)("title",{children:t}),!!n&&(0,r.jsx)("meta",{name:"description",content:n},"desc"),!!n&&(0,r.jsx)("meta",{property:"og:description",content:n},"og_desc"),!!o&&(0,r.jsx)("meta",{property:"og:type",content:o},"og_type"),(0,r.jsx)("meta",{property:"og:url",content:"https://fireant.vn".concat(f.asPath)},"og_url"),!!s&&(0,r.jsx)("meta",{property:"og:image",content:s},"og_image"),!!l&&(0,r.jsx)("meta",{property:"og:image:width",content:l.toString()},"og_imageWidth"),!!c&&(0,r.jsx)("meta",{property:"og:image:height",content:c.toString()},"og_imageHeight")]})}},63836:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var r=n(85893),o=n(67294),i=n(6345),a=n(41664),s=n.n(a),l=n(63833),c=n(82701),f=n(86010);let u=o.memo(e=>{var t;let{symbol:n,index:o,priceSince:a}=e,[u,d]=(0,i.kc)(n.symbol),m=(0,i.qr)(n.symbol);return(0,r.jsx)(s(),{href:(0,l.BD)(n.symbol),children:(0,r.jsxs)("div",{className:(0,f.Z)("flex flex-row p-2",o%2==0?"bg-gray-50 dark:bg-gray-800":void 0),children:[(0,r.jsxs)("div",{className:"flex flex-col flex-1 line-clamp-1",children:[(0,r.jsx)("div",{className:"mb-2 font-bold ",children:n.symbol}),(0,r.jsx)("div",{className:"line-clamp-1",children:m?m.name:n.symbol})]}),u&&!a&&(0,r.jsxs)("div",{className:"flex-1 line-clamp-1",children:[(0,r.jsx)("div",{className:"flex flex-row items-center justify-end mb-2 font-bold text-right",children:(0,r.jsx)("span",{style:{backgroundColor:(0,i.WW)(u.last,null==d?void 0:d.last)},children:u.last.toFixed(u.fractionDigits)})}),(0,r.jsx)("div",{className:"font-bold text-right",children:(0,r.jsxs)("span",{style:{color:(0,i.j5)(u.last,u,null==d?void 0:d.last),backgroundColor:(0,i.WW)(u.last,null==d?void 0:d.last)},children:[u.last>u.basic?"+":"",(u.last-u.basic).toFixed(u.fractionDigits)," / ",u.last>u.basic?"+":"",((u.last-u.basic)*100/u.basic).toFixed(2),"%"]})})]}),a&&(0,r.jsx)("div",{className:"flex-1 line-clamp-1",children:u&&!!n.price&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex flex-row items-center justify-end mb-2 font-bold text-right",children:[(0,r.jsx)("span",{children:null===(t=n.price)||void 0===t?void 0:t.toFixed(u.fractionDigits)}),(0,r.jsx)(c.Z,{size:12}),(0,r.jsx)("span",{style:{backgroundColor:(0,i.WW)(u.last,null==d?void 0:d.last)},children:u.last.toFixed(2)})]}),(0,r.jsx)("div",{className:"font-bold text-right",children:(0,r.jsxs)("span",{style:{color:(0,i.PZ)(Math.round(100*u.last),Math.round(100*n.price),d?100*d.last:void 0),backgroundColor:(0,i.WW)(u.last,null==d?void 0:d.last)},children:[Math.round(100*u.last)>Math.round(100*n.price)?"+":"",((Math.round(100*u.last)-Math.round(100*n.price))/100).toFixed(u.fractionDigits)," ","/"," ",Math.round(100*u.last)>Math.round(100*n.price)?"+":"",((Math.round(100*u.last)-Math.round(100*n.price))*100/Math.round(100*n.price)).toFixed(2),"%"]})})]})})]})})});var d=n(26246);let m=o.memo(e=>{let{symbols:t,useWindowScroll:n,priceSince:i}=e,a=o.useCallback((e,t)=>(0,r.jsx)(u,{symbol:t,index:e,priceSince:i}),[i]);return(0,r.jsx)(d.OO,{useWindowScroll:n,itemContent:a,data:t})});var h=n(30381),p=n.n(h);n(80008);var g=n(8820);let v=o.memo(e=>{let{date:t,symbols:n,useWindowScroll:i}=e,[a,s]=(0,o.useState)("today"),l=(0,o.useCallback)(e=>{s(e)},[]);return(0,r.jsxs)("div",{className:"flex flex-col flex-1 text-[90%]",children:[(0,r.jsx)(g.mQ,{defaultValue:a,onValueChange:l,children:(0,r.jsxs)(g.dr,{className:"grid w-full grid-cols-2",children:[(0,r.jsx)(g.SP,{value:"today",children:"H\xf4m nay"}),(0,r.jsx)(g.SP,{value:"since",children:"Từ l\xfac ÄÄng"})]})}),(0,r.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,r.jsxs)("div",{className:"flex flex-row p-2",children:[(0,r.jsx)("span",{className:"flex flex-row items-end flex-1",children:"M\xe3 CK"}),"today"==a&&(0,r.jsx)("span",{className:"flex flex-row items-end justify-end flex-1",children:"H\xf4m nay"}),"since"==a&&(0,r.jsx)("span",{className:"flex flex-row items-end justify-end flex-1",children:p()(t).format("DD/MM HH:mm")}
1)]}),(0,r.jsx)(m,{symbols:n,useWindowScroll:i,priceSince:"since"==a})]})]})});var x=v},8820:function(e,t,n){"use strict";n.d(t,{SP:function(){return c},dr:function(){return l},mQ:function(){return s},nU:function(){return f}});var r=n(85893),o=n(67294),i=n(60434),a=n(56616);let s=i.fC,l=o.forwardRef((e,t)=>{let{className:n,...o}=e;return(0,r.jsx)(i.aV,{ref:t,className:(0,a.cn)("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",n),...o})});l.displayName=i.aV.displayName;let c=o.forwardRef((e,t)=>{let{className:n,...o}=e;return(0,r.jsx)(i.xz,{ref:t,className:(0,a.cn)("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-[#a855f7] data-[state=active]:text-white data-[state=active]:shadow-sm",n),...o})});c.displayName=i.xz.displayName;let f=o.forwardRef((e,t)=>{let{className:n,...o}=e;return(0,r.jsx)(i.VY,{ref:t,className:(0,a.cn)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",n),...o})});f.displayName=i.VY.displayName},90712:function(e,t,n){"use strict";n.r(t);var r=n(85893),o=n(11163),i=n(92678),a=n(11201),s=n(41664),l=n.n(s),c=n(63833),f=n(9473),u=n(20508),d=n(63836),m=n(76618),h=n(20380);let Page=()=>{let{query:e}=(0,o.useRouter)(),t=(0,f.v9)(t=>{if(e.id){let n=parseInt(e.id.toString());return u.pNi(t,n)}return null});return t?(0,r.jsxs)("div",{className:"max-w-[700px] mx-auto",children:[(0,r.jsx)(h.Z,{type:"article",title:(0,m.vz)(t),description:t.description?t.description:t.title,image:t.images.length>0?"https://static.fireant.vn/posts/image/".concat(t.images[0].imageID,"?width=800&height=600"):void 0,imageWidth:t.images.length>0?800:void 0,imageHeight:t.images.length>0?600:void 0}),(0,r.jsxs)("div",{className:"mt-3 mb-3 text-2xl leading-9",children:["M\xe3 ÄÆ°á»£c tag trong b\xe0i"," ",(0,r.jsx)(l(),{className:"font-semibold ",href:(0,c.q7)(t),children:(0,m.vz)(t)})]}),(0,r.jsx)(d.Z,{symbols:t.taggedSymbols,date:t.date,useWindowScroll:!0})]}):null};Page.getInitialProps=i.ZP.getInitialPageProps(e=>async t=>{let{pathname:n,req:r,res:o,query:s}=t;if(s.id){let t=parseInt(s.id.toString());e.dispatch(i.cq.requestPost(t))}r&&(e.dispatch(a.uR),await e.sagaTask.toPromise())}),t.default=Page},60434:function(e,t,n){"use strict";n.d(t,{VY:function(){return C},aV:function(){return k},fC:function(){return Z},nU:function(){return N},xz:function(){return O}});var r=n(67294),o=n(36206),i=n(25360),a=n(66681),s=n(29115),l=n(75320),c=n(78990),f=n(77342),u=n(91276),d=n(85893),m="Tabs",[h,p]=(0,i.b)(m,[a.Pc]),g=(0,a.Pc)(),[v,x]=h(m),b=r.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,onValueChange:o,defaultValue:i,orientation:a="horizontal",dir:s,activationMode:h="automatic",...p}=e,g=(0,c.gm)(s),[x,b]=(0,f.T)({prop:r,onChange:o,defaultProp:i??"",caller:m});return(0,d.jsx)(v,{scope:n,baseId:(0,u.M)(),value:x,onValueChange:b,orientation:a,dir:g,activationMode:h,children:(0,d.jsx)(l.WV.div,{dir:g,"data-orientation":a,...p,ref:t})})});b.displayName=m;var z="TabsList",y=r.forwardRef((e,t)=>{let{__scopeTabs:n,loop:r=!0,...o}=e,i=x(z,n),s=g(n);return(0,d.jsx)(a.fC,{asChild:!0,...s,orientation:i.orientation,dir:i.dir,loop:r,children:(0,d.jsx)(l.WV.div,{role:"tablist","aria-orientation":i.orientation,...o,ref:t})})});y.displayName=z;var j="TabsTrigger",w=r.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,disabled:i=!1,...s}=e,c=x(j,n),f=g(n),u=makeTriggerId(c.baseId,r),m=makeContentId(c.baseId,r),h=r===c.value;return(0,d.jsx)(a.ck,{asChild:!0,...f,focusable:!i,active:h,children:(0,d.jsx)(l.WV.button,{type:"button",role:"tab","aria-selected":h,"aria-controls":m,"data-state":h?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:u,...s,ref:t,onMouseDown:(0,o.M)(e.onMouseDown,e=>{i||0!==e.button||!1!==e.ctrlKey?e.preventDefault():c.onValueChange(r)}),onKeyDown:(0,o.M)(e.onKeyDown,e=>
1{[" ","Enter"].includes(e.key)&&c.onValueChange(r)}),onFocus:(0,o.M)(e.onFocus,()=>{let e="manual"!==c.activationMode;h||i||!e||c.onValueChange(r)})})})});w.displayName=j;var _="TabsContent",N=r.forwardRef((e,t)=>{let{__scopeTabs:n,value:o,forceMount:i,children:a,...c}=e,f=x(_,n),u=makeTriggerId(f.baseId,o),m=makeContentId(f.baseId,o),h=o===f.value,p=r.useRef(h);return r.useEffect(()=>{let e=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,d.jsx)(s.z,{present:i||h,children:({present:n})=>(0,d.jsx)(l.WV.div,{"data-state":h?"active":"inactive","data-orientation":f.orientation,role:"tabpanel","aria-labelledby":u,hidden:!n,id:m,tabIndex:0,...c,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:n&&a})})});function makeTriggerId(e,t){return`${e}-trigger-${t}`}function makeContentId(e,t){return`${e}-content-${t}`}N.displayName=_;var Z=b,k=y,O=w,C=N}},function(e){e.O(0,[2678,9774,2888,179],function(){return e(e.s=78615)}),_N_E=e.O()}]);
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.