1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[916],{46700:function(e,t,n){var s={"./af":42786,"./af.js":42786,"./ar":30867,"./ar-dz":14130,"./ar-dz.js":14130,"./ar-kw":96135,"./ar-kw.js":96135,"./ar-ly":56440,"./ar-ly.js":56440,"./ar-ma":47702,"./ar-ma.js":47702,"./ar-sa":16040,"./ar-sa.js":16040,"./ar-tn":37100,"./ar-tn.js":37100,"./ar.js":30867,"./az":31083,"./az.js":31083,"./be":9808,"./be.js":9808,"./bg":68338,"./bg.js":68338,"./bm":67438,"./bm.js":67438,"./bn":8905,"./bn-bd":76225,"./bn-bd.js":76225,"./bn.js":8905,"./bo":11560,"./bo.js":11560,"./br":1278,"./br.js":1278,"./bs":80622,"./bs.js":80622,"./ca":2468,"./ca.js":2468,"./cs":5822,"./cs.js":5822,"./cv":50877,"./cv.js":50877,"./cy":47373,"./cy.js":47373,"./da":24780,"./da.js":24780,"./de":59740,"./de-at":60217,"./de-at.js":60217,"./de-ch":60894,"./de-ch.js":60894,"./de.js":59740,"./dv":5300,"./dv.js":5300,"./el":50837,"./el.js":50837,"./en-au":78348,"./en-au.js":78348,"./en-ca":77925,"./en-ca.js":77925,"./en-gb":22243,"./en-gb.js":22243,"./en-ie":46436,"./en-ie.js":46436,"./en-il":47207,"./en-il.js":47207,"./en-in":44175,"./en-in.js":44175,"./en-nz":76319,"./en-nz.js":76319,"./en-sg":31662,"./en-sg.js":31662,"./eo":92915,"./eo.js":92915,"./es":55655,"./es-do":55251,"./es-do.js":55251,"./es-mx":96112,"./es-mx.js":96112,"./es-us":71146,"./es-us.js":71146,"./es.js":55655,"./et":5603,"./et.js":5603,"./eu":77763,"./eu.js":77763,"./fa":76959,"./fa.js":76959,"./fi":11897,"./fi.js":11897,"./fil":42549,"./fil.js":42549,"./fo":94694,"./fo.js":94694,"./fr":94470,"./fr-ca":63049,"./fr-ca.js":63049,"./fr-ch":52330,"./fr-ch.js":52330,"./fr.js":94470,"./fy":5044,"./fy.js":5044,"./ga":29295,"./ga.js":29295,"./gd":2101,"./gd.js":2101,"./gl":38794,"./gl.js":38794,"./gom-deva":24980,"./gom-deva.js":24980,"./gom-latn":23168,"./gom-latn.js":23168,"./gu":95349,"./gu.js":95349,"./he":24206,"./he.js":24206,"./hi":30094,"./hi.js":30094,"./hr":30316,"./hr.js":30316,"./hu":22138,"./hu.js":22138,"./hy-am":11423,"./hy-am.js":11423,"./id":29218,"./id.js":29218,"./is":90135,"./is.js":90135,"./it":90626,"./it-ch":10150,"./it-ch.js":10150,"./it.js":90626,"./ja":39183,"./ja.js":39183,"./jv":24286,"./jv.js":24286,"./ka":12105,"./ka.js":12105,"./kk":47772,"./kk.js":47772,"./km":18758,"./km.js":18758,"./kn":79282,"./kn.js":79282,"./ko":33730,"./ko.js":33730,"./ku":1408,"./ku.js":1408,"./ky":33291,"./ky.js":33291,"./lb":36841,"./lb.js":36841,"./lo":55466,"./lo.js":55466,"./lt":57010,"./lt.js":57010,"./lv":37595,"./lv.js":37595,"./me":39861,"./me.js":39861,"./mi":35493,"./mi.js":35493,"./mk":95966,"./mk.js":95966,"./ml":87341,"./ml.js":87341,"./mn":5115,"./mn.js":5115,"./mr":10370,"./mr.js":10370,"./ms":9847,"./ms-my":41237,"./ms-my.js":41237,"./ms.js":9847,"./mt":72126,"./mt.js":72126,"./my":56165,"./my.js":56165,"./nb":64924,"./nb.js":64924,"./ne":16744,"./ne.js":16744,"./nl":93901,"./nl-be":59814,"./nl-be.js":59814,"./nl.js":93901,"./nn":83877,"./nn.js":83877,"./oc-lnc":92135,"./oc-lnc.js":92135,"./pa-in":15858,"./pa-in.js":15858,"./pl":64495,"./pl.js":64495,"./pt":89520,"./pt-br":57971,"./pt-br.js":57971,"./pt.js":89520,"./ro":96459,"./ro.js":96459,"./ru":21793,"./ru.js":21793,"./sd":40950,"./sd.js":40950,"./se":10490,"./se.js":10490,"./si":90124,"./si.js":90124,"./sk":64249,"./sk.js":64249,"./sl":14985,"./sl.js":14985,"./sq":51104,"./sq.js":51104,"./sr":49131,"./sr-cyrl":79915,"./sr-cyrl.js":79915,"./sr.js":49131,"./ss":95606,"./ss.js":95606,"./sv":98760,"./sv.js":98760,"./sw":91172,"./sw.js":91172,"./ta":27333,"./ta.js":27333,"./te":23110,"./te.js":23110,"./tet":52095,"./tet.js":52095,"./tg":27321,"./tg.js":27321,"./th":9041,"./th.js":9041,"./tk":19005,"./tk.js":19005,"./tl-ph":75768,"./tl-ph.js":75768,"./tlh":89444,"./tlh.js":89444,"./tr":72397,"./tr.js":72397,"./tzl":28254,"./tzl.js":28254,"./tzm":51106,"./tzm-latn":30699,"./tzm-latn.js":30699,"./tzm.js":51106,"./ug-cn":9288,"./ug-cn.js":9288,"./uk":67691,"./uk.js":67691,"./ur":13795,"./ur.js":13795,"./uz":6791,"./uz-latn":60588,"./uz-latn.js":60588,"./uz.js":6791,"./vi":65666,"./vi.js":65666,"./x-pseudo":14378,"./x-pseudo.js":14378,"./yo":75805,"./yo.js":75805,"./zh-cn":83839,"./zh-cn.js":83839,"./zh-hk":55726,"./zh-hk.js":55726,"./zh-mo":99807,"./zh-mo.js":99807,"./zh-tw":74152,"./zh-tw.js":74152};function i(e){var t=r(e);return n(t)}function r(e){if(!n.o(s,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return s[e]}i.keys=function(){return Object.keys(s)},i.resolve=r,e.exports=i,i.id=46700},75954:function(e,t,n){"use strict";var s=n(85893),i=n(96486);t.Z=function(e){var t=e.categorys,n=void 0===t?[]:t,r=e.fontWeight,o=void 0===r?"bold":r;return n.length?(0,s.jsx)("div",{style:{display:"flex",flexDirection:"row",flexWrap:"wrap"},children:(0,i.map)(n,(function(e,t){var r=(0,i.get)(e,"name","").replace("&","&"),l=(0,i.get)(e,"slug",""),a="sponsored-content"===l,c=t+1!==n.length?"".concat(r," |"):"".concat(r);return(0,s.jsx)("a",{href:"/category/".concat(l),style:{margin:0,marginRight:5,fontFamily:"'Forbes Highlander Web', sans-serif",color:a?"#ffffff"
1:"#000000",background:a?"#000000":"none",padding:a?"0px 5px":"0px",lineHeight:"22px",fontSize:"0.8em",fontWeight:o,textTransform:"uppercase"},children:c})}))}):null}},74543:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var s=n(85893),i=n(67294),r=n(15020);function o(e){var t=e.url,n=(0,i.useRef)();return(0,i.useEffect)((function(){if(t){var e=n.current,s=e.contentDocument||e.contentWindow.document,i=(t.split("/").slice(-1)[0],'<script src="'.concat(t,'.js"><\/script>'));s.open(),s.write('\n <html>\n <head><base target="_parent"></head>\n <body>'.concat(i,"</body>\n </html>\n ")),s.close()}}),[t]),(0,s.jsx)("iframe",{ref:n,width:"100%",height:"300",frameBorder:"0",title:"Gist Embed"})}function l(e){return(0,r.ZP)(e.content.replace(/<table[^>]*>[\s\S]*?<\/table>/gi,(function(e){var t=e.replace(/<table[^>]*?>/i,'<table border="1" cellspacing="0" cellpadding="8" style="border-collapse: collapse; width: 100%; text-align: center; margin-bottom: 8px;">');return t=(t=(t=(t=(t=(t=(t=(t=t.replace(/<thead[^>]*?>/i,'<thead style="background-color: #f2f2f2;">')).replace(/<td[^>]*?>\s*<div[^>]*?>/gi,"<td>")).replace(/<\/div>\s*<\/td>/gi,"</td>")).replace(/<th[^>]*?>\s*<div[^>]*?>/gi,"<th>")).replace(/<\/div>\s*<\/th>/gi,"</th>")).replace(/<td([^>]*)>/gi,'<td$1 style="vertical-align: middle; text-align: center;">')).replace(/<th([^>]*)>/gi,'<th$1 style="vertical-align: middle; text-align: center;">')).replace(/<span[^>]*?>\s*<\/span>/gi,"")})),{replace:function(e){if("script"===e.name&&e.attribs.src.indexOf("/gist.github.com/"))return(0,s.jsx)(o,{url:e.attribs.src.replace(".js","")})}})}},75791:function(e,t,n){"use strict";n.r(t),n.d(t,{Home:function(){return y}});var s=n(809),i=n.n(s),r=n(92447),o=n(85893),l=n(67294),a=n(30381),c=n.n(a),d=n(96486),u=(n(9041),n(11163)),j=n(9008),m=n(75954),g=n(5874),p=n(69401),h=n(74543),f=n(28035),v=n(21818),x=n(34155).env.NEXT_PUBLIC_SITE_URL||"https://www.forbesthailand.com";function y(e){var t,n,s=(0,p.dD)(),i=e.listData,r=e.seoConfig,a=(0,u.useRouter)(),f="string"===typeof(null===r||void 0===r?void 0:r.url)&&r.url.startsWith("http")?r.url:"".concat(x).concat(a.asPath||""),y=(null===r||void 0===r||null===(t=r.details)||void 0===t||null===(n=t.find((function(e){return"_yoast_wpseo_opengraph-image"===e.meta_key})))||void 0===n?void 0:n.meta_value)||"";c().locale("EN"),(0,l.useEffect)((function(){var e;null!==(e=window.location)&&void 0!==e&&e.pathname&&(0,p.J_)(decodeURI(window.location.pathname))}),[]);var b=(0,d.get)(i,"[0]",{}),w=(0,d.get)(b,"author",{}),k=(0,d.get)(b,"content",""),_=c()((0,d.get)(b,"updatedAt",new Date)).isAfter("2022-10-01")?k:k.replace(/[\r\n\r\n']/g,"</p><p>"),z="".concat(null===w||void 0===w?void 0:w.name," / ").concat(null===w||void 0===w?void 0:w.nickname).toUpperCase(),N=(0,d.get)(b,"category",[]),D=(0,d.sortBy)((0,d.get)(b,"tag",[]),(function(e){return null===e||void 0===e?void 0:e.name})),F=(0,d.get)(b,"isSponsor",!1),T=null!==b&&void 0!==b&&b.publishedAt?null===b||void 0===b?void 0:b.publishedAt:null===b||void 0===b?void 0:b.updatedAt,W=(0,d.get)(b,"postImgUrl","");return b?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(j.default,{children:[(0,o.jsx)("link",{rel:"canonical",href:f}),(0,o.jsx)("title",{children:(null===r||void 0===r?void 0:r.title)||(null===b||void 0===b?void 0:b.title)||"Forbes Thailand"}),(0,o.jsx)("meta",{name:"description",content:(null===r||void 0===r?void 0:r.content)||""}),(0,o.jsx)("meta",{property:"og:type",content:"article"}),(0,o.jsx)("meta",{property:"og:site_name",content:"Forbes Thailand"}),(0,o.jsx)("meta",{property:"og:url",content:f}),(0,o.jsx)("meta",{property:"og:title",content:(null===r||void 0===r?void 0:r.title)||(null===b||void 0===b?void 0:b.title)||""}),(0,o.jsx)("meta",{property:"og:description",content:(null===r||void 0===r?void 0:r.content)||""}),y?(0,o.jsx)("meta",{property:"og:image",content:y}):null,(0,o.jsx)("meta",{property:"og:image:width",content:"1200"}),(0,o.jsx)("meta",{property:"og:image:height",content:"630"}),(0,o.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,o.jsx)("meta",{name:"twitter:title",content:(null===r||void 0===r?void 0:r.title)||(null===b||void 0===b?void 0:b.title)||""}),(0,o.jsx)("meta",{name:"twitter:description",content:(null===r||void 0===r?void 0:r.content)||""}),y?(0,o.jsx)("meta",{name:"twitter:image",content:y}):null]}),(0,o.jsx)(g.Yr,{isMobile:null===e||void 0===e?void 0:e.isMobile}),(0,o.jsxs)("div",{style:{display:"flex",flexDirection:"row",marginTop:30,maxWidth:"1240px",borderTop:"2px solid #ebebeb"},children:[(0,o.jsx)("div",{style:{display:"flex",justifyContent:"center",flexDirection:"row",width:"100%",flexWrap:"wrap",paddingLeft:"5px",paddingRight:"5px"},className:"row",children:(null===i||void 0===i?void 0:i.length)&&(0,o.jsxs)("div",{children:[(0,o.jsxs)("div",{style:{paddingBottom:10,borderBottom:"1px solid black"},children:[W?(0,o.jsx)("img",{style:{width:"100%",maxWidth:903,he
1ight:"auto",marginTop:30,marginBottom:15},src:null===b||void 0===b?void 0:b.thumbnailImgUrl}):null,F?(0,o.jsx)("span",{style:{fontFamily:"DB FongNam X, sans-serif",color:"#ffffff",lineHeight:"22px",fontSize:"1.8rem",fontWeight:"bold",textTransform:"uppercase",background:"#000000",padding:"3px 10px 3px 10px"},children:"SPONSORED CONTENT"}):null,(0,o.jsx)("h1",{className:"entry-title",style:{marginTop:10,marginBottom:15},children:null===b||void 0===b?void 0:b.title}),(0,o.jsxs)("div",{style:{display:"flex",flexDirection:"row"},children:[(0,o.jsx)("img",{style:{width:70,height:70,borderRadius:"50%",marginRight:20,objectFit:"cover"},src:null!==w&&void 0!==w&&w.pictureProfile?w.pictureProfile:"/images/user-solid.png"}),(0,o.jsxs)("div",{style:{display:"flex",flex:1,flexDirection:"column",justifyContent:"center"},children:[(0,o.jsx)("a",{style:{margin:0,fontFamily:"DB FongNam X, sans-serif",color:"#000000",lineHeight:"22px",fontSize:"1.8rem",fontWeight:"bold",textTransform:"uppercase"},href:"/author/".concat(w.id),children:z}),(0,o.jsx)(m.Z,{fontWeight:"normal",categorys:N}),(0,o.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",flexDirection:"row"},children:[(0,o.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,o.jsx)("img",{style:{height:"13px",width:"13px",marginRight:5},src:"/images/Icon-ionic-md-time.svg"}),(0,o.jsx)("span",{className:"main-slide-date single-date-public",style:{fontSize:"0.8em",fontWeight:"normal",fontFamily:"'Forbes Highlander Web', sans-serif"},children:"".concat(c()(T).format("DD MMM YYYY")," | ").concat(c()(T).format("hh:mm A"))})]}),(0,o.jsx)("span",{className:"main-slide-date single-date-public",style:{fontSize:"0.8em",fontWeight:"bold",fontFamily:"'Forbes Highlander Web', sans-serif"},children:"READ ".concat(null===b||void 0===b?void 0:b.viewedCount)})]})]})]})]}),null!==e&&void 0!==e&&e.isMobile?(0,o.jsxs)("div",{style:{display:"flex",flexDirection:"row",justifyContent:"end",gap:"1rem",marginTop:"0.5rem"},children:[(0,o.jsx)(v.Ni,{url:f,title:"Check out this video",children:(0,o.jsx)(v.zb,{size:32,borderRadius:6})}),(0,o.jsx)(v.B,{url:f,title:"Check out this video",children:(0,o.jsx)(v.Zm,{size:32,borderRadius:6})})]}):(0,o.jsxs)("div",{style:{display:"flex",flexDirection:"row",justifyContent:"end",gap:"1rem",marginTop:"0.5rem"},children:[(0,o.jsx)(v.Dk,{url:f,quote:"Check out this video",children:(0,o.jsx)(v.Vq,{size:32,borderRadius:6})}),(0,o.jsx)(v.Ni,{url:f,title:"Check out this video",children:(0,o.jsx)(v.zb,{size:32,borderRadius:6})}),(0,o.jsx)(v.B,{url:f,title:"Check out this video",children:(0,o.jsx)(v.Zm,{size:32,borderRadius:6})})]}),(0,o.jsx)("div",{className:"body-content post-content-wrap post-detail",children:(0,o.jsx)(h.Z,{content:_})}),(0,o.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",marginBottom:20,marginTop:20},children:[(0,o.jsx)("p",{style:{margin:0,width:"90px",backgroundColor:"#000000",padding:"2px 5px",color:"#FFF",fontSize:"26px",fontWeight:600},children:"TAGGED ON"}),(0,o.jsx)("div",{style:{display:"flex",flex:1,alignItems:"center",flexWrap:"wrap"},children:null!==D&&void 0!==D&&D.length?(0,d.map)(D,(function(e,t){return 0===t?(0,o.jsx)("a",{href:"/tag/".concat(null===e||void 0===e?void 0:e.slug),style:{height:"fit-content",margin:0,marginLeft:10,fontFamily:"DB FongNam X, sans-serif",color:"#000000",lineHeight:"26px",fontSize:"26px",fontWeight:"bold",textTransform:"uppercase"},children:null===e||void 0===e?void 0:e.name},(null===e||void 0===e?void 0:e.slug)||t):(0,o.jsxs)("div",{style:{margin:0,marginLeft:10},children:[(0,o.jsx)("span",{style:{height:"fit-content",lineHeight:"26px",margin:0,fontSize:"26px"},children:"/"}),(0,o.jsx)("a",{href:"/tag/".concat(null===e||void 0===e?void 0:e.slug),style:{height:"fit-content",margin:0,marginLeft:5,fontFamily:"DB FongNam X, sans-serif",color:"#000000",lineHeight:"26px",fontSize:"26px",fontWeight:"bold",textTransform:"uppercase"},children:null===e||void 0===e?void 0:e.name})]},(null===e||void 0===e?void 0:e.slug)||t)})):null})]})]})}),"Mobile"!==s?(0,o.jsx)("div",{style:{width:300,height:600,marginLeft:40,marginTop:30},children:(0,o.jsx)(g.AX,{isMobile:null===e||void 0===e?void 0:e.isMobile})}):null]})]}):(0,o.jsx)("div",{style:{margin:50,fontSize:40,fontFamily:"'Forbes Highlander Web', sans-serif"},children:"NOT FOUND"})}y.getInitialProps=function(){var e=(0,r.Z)(i().mark((function e(t){var n,s,o,l,a,c,u,j,m,g,h,v;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.apolloClient,s=t.query,o=(0,d.get)(s,"categoryList",[]),l=o[o.length-1],a=function(){var e=(0,r.Z)(i().mark((function e(){var t;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,f.Nm)(n,{slugId:l});case 2:return t=e.sent,e.abrupt("return",(0,d.get)(t,"result",[]));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),e.next=6,a();case 6:return c=e.sent,e.next=9,(0,f.bW)(n,{});case 9:return u=e.sent,j=(0,d.get)(u,"data",{}),m=(0,d.get)(c,"[0].postImgUrl","")?(0,d.get)(c,"[0].postImgUrl",""):(0,d.get)(c,"[0].thumbnailImgUrl",""),g=null!==m&&void 0!==m&&m.startsWith("http")?m:"".concat(x).concat(m||""),h=(0,p.Vx)((0,d.get)(c,"[0].content","")),v={title:(0,d.get)(c,"[0].title",""),content:h,url:"".concat(x).concat((0,d.get)(t,"asPath","")),tagId:(0,d.get)(c,"[0].tag",[{}
1]),details:[{meta_key:"_yoast_wpseo_opengraph-image",meta_value:g},{meta_key:"_yoast_wpseo_twitter-image",meta_value:g},{meta_key:"_yoast_wpseo_primary_category",meta_value:(0,d.get)(c,"[0].category[0].name","")},{meta_key:"_yoast_wpseo_metadesc",meta_value:h}]},e.abrupt("return",{listData:c,seoConfig:v,forbesSection:j});case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),t.default=y},36767:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[category]/[...categoryList]",function(){return n(75791)}])}},function(e){e.O(0,[885,762,20,818,774,888,179],(function(){return t=36767,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.