(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[154471,(e,t,a)=>{function s(e,t,a,s){return!1}e.i(350461),Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"getDomainLocale",{enumerable:!0,get:function(){return s}}),e.r(270090),("function"==typeof a.default||"object"==typeof a.default&&null!==a.default)&&void 0===a.default.__esModule&&(Object.defineProperty(a.default,"__esModule",{value:!0}),Object.assign(a.default,a),t.exports=a.default)},539149,(e,t,a)=>{e.i(350461),Object.defineProperty(a,"__esModule",{value:!0});var s={default:function(){return k},useLinkStatus:function(){return w}};for(var i in s)Object.defineProperty(a,i,{enumerable:!0,get:s[i]});let r=e.r(952456),n=e.r(391398),o=r._(e.r(191788)),l=e.r(160472),c=e.r(471112),d=e.r(728169),h=e.r(889129),u=e.r(514862),f=e.r(425479),x=e.r(771914),p=e.r(154471),m=e.r(344113),g=e.r(663230),b=new Set;function j(e,t,a,s){if(!("u"{})}}function _(e){return"string"==typeof e?e:(0,d.formatUrl)(e)}let v=o.default.forwardRef(function(e,t){let a,s,{href:i,as:r,children:d,prefetch:b=null,passHref:v,replace:y,shallow:w,scroll:k,locale:N,onClick:C,onNavigate:P,onMouseEnter:E,onTouchStart:T,legacyBehavior:I=!1,transitionTypes:S,...M}=e;a=d,I&&("string"==typeof a||"number"==typeof a)&&(a=(0,n.jsx)("a",{children:a}));let O=o.default.useContext(f.RouterContext),L=!1!==b,{href:z,as:A}=o.default.useMemo(()=>{if(!O){let e=_(i);return{href:e,as:r?_(r):e}}let[e,t]=(0,l.resolveHref)(O,i,!0);return{href:e,as:r?(0,l.resolveHref)(O,r):t||e}},[O,i,r]),F=o.default.useRef(z),R=o.default.useRef(A);I&&(s=o.default.Children.only(a));let U=I?s&&"object"==typeof s&&s.ref:t,[B,D,q]=(0,x.useIntersection)({rootMargin:"200px"}),V=o.default.useCallback(e=>{(R.current!==A||F.current!==z)&&(q(),R.current=A,F.current=z),B(e)},[A,z,q,B]),H=(0,g.useMergedRef)(V,U);o.default.useEffect(()=>{!O||D&&L&&j(O,z,A,{bypassPrefetchedCheck:!1,locale:N})},[A,z,D,N,L,null==O?void 0:O.locale,O]);let W={ref:H,onClick(e){I||"function"!=typeof C||C(e),I&&s.props&&"function"==typeof s.props.onClick&&s.props.onClick(e),!O||e.defaultPrevented||function(e,t,a,s,i,r,n,o,l){let d,{nodeName:h}=e.currentTarget;if(!("A"===h.toUpperCase()&&((d=e.currentTarget.getAttribute("target"))&&"_self"!==d||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which)||e.currentTarget.hasAttribute("download"))){if(!(0,c.isLocalURL)(a)){i&&(e.preventDefault(),location.replace(a));return}e.preventDefault(),(()=>{if(l){let e=!1;if(l({preventDefault:()=>{e=!0}}),e)return}let e=null==n||n;"beforePopState"in t?t[i?"replace":"push"](a,s,{shallow:r,locale:o,scroll:e}):t[i?"replace":"push"](s||a,{scroll:e})})()}}(e,O,z,A,y,w,k,N,P)},onMouseEnter(e){I||"function"!=typeof E||E(e),I&&s.props&&"function"==typeof s.props.onMouseEnter&&s.props.onMouseEnter(e),O&&j(O,z,A,{locale:N,priority:!0,bypassPrefetchedCheck:!0})},onTouchStart:function(e){I||"function"!=typeof T||T(e),I&&s.props&&"function"==typeof s.props.onTouchStart&&s.props.onTouchStart(e),O&&j(O,z,A,{locale:N,priority:!0,bypassPrefetchedCheck:!0})}};if((0,h.isAbsoluteUrl)(A))W.href=A;else if(!I||v||"a"===s.type&&!("href"in s.props)){let e=void 0!==N?N:null==O?void 0:O.locale;W.href=(null==O?void 0:O.isLocaleDomain)&&(0,p.getDomainLocale)(A,e,null==O?void 0:O.locales,null==O?void 0:O.domainLocales)||(0,m.addBasePath)((0,u.addLocale)(A,e,null==O?void 0:O.defaultLocale))}return I?o.default.cloneElement(s,W):(0,n.jsx)("a",{...M,...W,children:a})}),y=(0,o.createContext)({pending:!1}),w=()=>(0,o.useContext)(y),k=v;("function"==typeof a.default||"object"==typeof a.default&&null!==a.default)&&void 0===a.default.__esModule&&(Object.defineProperty(a.default,"__esModule",{value:!0}),Object.assign(a.default,a),t.exports=a.default)},771914,(e,t,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"useIntersection",{enumerable:!0,get:function(){return l}});let s=e.r(191788),i=e.r(799604),r="function"==typeof IntersectionObserver,n=new Map,o=[];function l(e){let{rootRef:t,rootMargin:a,disabled:l}=e,c=l||!r,[d,h]=(0,s.useState)(!1),u=(0,s.useRef)(null),f=(0,s.useCallback)(e=>{u.current=e},[]);return(0,s.useEffect)(()=>{if(r){if(c||d)return;let e=u.current;if(e&&e.tagName)return function(e,t,a){let{id:s,observer:i,elements:r}=function(e){let t,a={root:e.root||null,margin:e.rootMargin||""},s=o.find(e=>e.root===a.root&&e.margin===a.margin);if(s&&(t=n.get(s)))return t;let i=new Map;return t={id:a,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),a=e.isIntersecting||e.intersectionRatio>0;t&&a&&t(a)})},e),elements:i},o.push(a),n.set(a,t),t}(a);return r.set(e,t),i.observe(e),function(){if(r.delete(e),i.unobserve(e),0===r.size){i.disconnect(),n.delete(s);let e=o.findIndex(e=>e.root===s.root&&e.margin===s.margin);e>-1&&o.splice(e,1)}}}(e,e=>e&&h(e),{root:null==t?void 0:t.current,rootMargin:a})}else if(!d){let e=(0,i.requestIdleCallback)(()=>h(!0));return()=>(0,i.cancelIdleCallback)(e)}},[c,a,t,d,u.current]),[f,d,(0,s.useCallback)(()=>{h(!1)},[])]}("function"==typeof a.default||"object"==typeof a.default&&null!==a.default)&&void 0===a.default.__esModule&&(Object.defineProperty(a.default,"__esModule",{value:!0}),Object.assign(a.default,a),t.exports=a.default)},663230,(e,t,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"useMergedRef",{enumerable:!0,get:function(){return i}});let s=e.r(191788);function i(e,t){let a=(0,s.useRef)(null),i=(0,s.useRef)(null);return(0,s.useCallback)(s=>{if(null===s){let e=a.current;e&&(a.current=null,e());let t=i.current;t&&(i.current=null,t())}else e&&(a.current=r(e,s)),t&&(i.current=r(t,s))},[e,t])}function r(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let a=e(t);return"function"==typeof a?a:()=>e(null)}}("function"==typeof a.default||"object"==typeof a.default&&null!==a.default)&&void 0===a.default.__esModule&&(Object.defineProperty(a.default,"__esModule",{value:!0}),Object.assign(a.default,a),t.exports=a.default)},425167,(e,t,a)=>{e.i(350461),Object.defineProperty(a,"__esModule",{value:!0});var s={default:function(){return h},noSSR:function(){return d}};for(var i in s)Object.defineProperty(a,i,{enumerable:!0,get:s[i]});let r=e.r(741705),n=e.r(391398);e.r(191788);let o=r._(e.r(852414)),l="u"(0,n.jsx)(a,{error:null,isLoading:!0,pastDelay:!1,timedOut:!1})}function h(e,t){let a=o.default,s={loading:e=>{let{error:t,isLoading:a,pastDelay:s}=e;return null}};e instanceof Promise?s.loader=()=>e:"function"==typeof e?s.loader=e:"object"==typeof e&&(s={...s,...e});let i=(s={...s,...t}).loader;return(s.loadableGenerated&&(s={...s,...s.loadableGenerated},delete s.loadableGenerated),"boolean"!=typeof s.ssr||s.ssr)?a({...s,loader:()=>null!=i?i().then(c):Promise.resolve(c(()=>null))}):(delete s.webpack,delete s.modules,d(a,s))}("function"==typeof a.default||"object"==typeof a.default&&null!==a.default)&&void 0===a.default.__esModule&&(Object.defineProperty(a.default,"__esModule",{value:!0}),Object.assign(a.default,a),t.exports=a.default)},161592,(e,t,a)=>{e.i(350461),Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"LoadableContext",{enumerable:!0,get:function(){return s}});let s=(e.r(741705)._(e.r(191788))).default.createContext(null)},852414,(e,t,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"default",{enumerable:!0,get:function(){return u}});let s=e.r(741705)._(e.r(191788)),i=e.r(161592),r=[],n=[],o=!1;function l(e){let t=e(),a={loading:!0,loaded:null,error:null};return a.promise=t.then(e=>(a.loading=!1,a.loaded=e,e)).catch(e=>{throw a.loading=!1,a.error=e,e}),a}class c{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function d(t){return function(t,a){let l=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},a),d=null;function h(){if(!d){let e=new c(t,l);d={getCurrentValue:e.getCurrentValue.bind(e),subscribe:e.subscribe.bind(e),retry:e.retry.bind(e),promise:e.promise.bind(e)}}return d.promise()}if("u"typeof window){let t=l.webpack&&"function"==typeof e.t.resolveWeak?l.webpack():l.modules;t&&n.push(e=>{for(let a of t)if(e.includes(a))return h()})}function u(e,t){let a;h(),(a=s.default.useContext(i.LoadableContext))&&Array.isArray(l.modules)&&l.modules.forEach(e=>{a(e)});let r=s.default.useSyncExternalStore(d.subscribe,d.getCurrentValue,d.getCurrentValue);return s.default.useImperativeHandle(t,()=>({retry:d.retry}),[]),s.default.useMemo(()=>{var t;return r.loading||r.error?s.default.createElement(l.loading,{isLoading:r.loading,pastDelay:r.pastDelay,timedOut:r.timedOut,error:r.error,retry:d.retry}):r.loaded?s.default.createElement((t=r.loaded)&&t.default?t.default:t,e):null},[e,r])}return u.preload=()=>h(),u.displayName="LoadableComponent",s.default.forwardRef(u)}(l,t)}function h(e,t){let a=[];for(;e.length;){let s=e.pop();a.push(s(t))}return Promise.all(a).then(()=>{if(e.length)return h(e,t)})}d.preloadAll=()=>new Promise((e,t)=>{h(r).then(e,t)}),d.preloadReady=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new Promise(t=>{let a=()=>(o=!0,t());h(n,e).then(a,a)})},"u">typeof window&&(window.__NEXT_PRELOADREADY=d.preloadReady);let u=d},643764,e=>{var t,a=e.i(391398),s=e.i(145246),i=e.i(191788),r=e.i(758568),n=e.i(995545),o=e.i(842633),l=e.i(765986),c=e.i(667803),d=e.i(492580),h=i,u=e.i(958678);e.i(966278);var f=e.i(318398),x=e.i(193432),p=e.i(805513),m=e.i(149428),g=e.i(525835);let b=new String(".filter.jsx-3d193535e9883266{display:flex;overflow:auto}.filter-item.jsx-3d193535e9883266{white-space:nowrap;background-color:var(--secondary-button);border-radius:25px;flex:auto;margin:6px 6px 6px 0;padding:6px 16px;font-size:13px;font-weight:500;line-height:12px}.filter-item.active.jsx-3d193535e9883266{color:var(--text-on-primary-color);background-color:var(--primary-color)}");b.__hash="3d193535e9883266";let j=[],_=e=>{let{forums:t=j,onForumClicked:r}=e,[n,o]=(0,i.useState)(null);return(0,a.jsxs)("div",{className:"jsx-".concat(b.__hash)+" thread-forum-filter",children:[(0,a.jsx)("div",{className:"jsx-".concat(b.__hash)+" section-heading",children:"Chủ đề bài đã viết"}),null===t?(0,a.jsx)("div",{className:"jsx-".concat(b.__hash),children:"Thành viên giới hạn xem nội dung này."}):(0,a.jsx)("div",{className:"jsx-".concat(b.__hash)+" filter",children:(t||[]).map(e=>(0,a.jsx)("button",{onClick:()=>{var t;r(t=e.id),o(t)},className:"jsx-".concat(b.__hash)+" filter-item "+(n===e.id?"active":""),children:e.title},e.id))}),(0,a.jsx)(s.default,{id:b.__hash,children:b})]})};_.apiFetches={forums:(e,t)=>{let{userId:a}=t;return{uri:"tinhte/user-forums",params:{user_id:a},success:e=>(0,g.I)(e),error:()=>null}}};let v=f.f.ApiConsumer(_);var y=e.i(455404),w=e.i(634529),k=e.i(913083),N=e.i(534358),C=e.i(750840);let P=new String("article.jsx-8eba7129cf1262a4{box-shadow:var(--box-shadow-2);background-color:var(--white-background);border-radius:4px;display:block;overflow:hidden}.thread-title.jsx-8eba7129cf1262a4{-webkit-line-clamp:3;-webkit-box-orient:vertical;height:70px;padding:10px;font-size:13px;font-weight:500;line-height:16px;display:-webkit-box;overflow:hidden}");P.__hash="8eba7129cf1262a4";let E=e=>{let{thread:t}=e;return(0,a.jsxs)("article",{className:"jsx-".concat(P.__hash),children:[(0,a.jsxs)("a",{href:(0,C.f)(t.link,"internal","TinhteProfile_PinThread"),onClick:()=>{},className:"jsx-".concat(P.__hash)+" item",children:[(0,a.jsx)("div",{className:"jsx-".concat(P.__hash)+" thumbnail",children:(0,a.jsx)(N.f,{ratio:21/13,thread:t,borderRadius:0,forceUsingThumbnail:!0,noBorder:!0})}),(0,a.jsx)("h5",{title:t.title,className:"jsx-".concat(P.__hash)+" thread-title",children:t.title})]}),(0,a.jsx)(s.default,{id:P.__hash,children:P})]})};function T(){return(T=Object.assign.bind()).apply(null,arguments)}let I=e=>i.createElement("svg",T({xmlns:"http://www.w3.org/2000/svg",width:23,height:30,fill:"none",viewBox:"0 0 23 30"},e),t||(t=i.createElement("path",{stroke:"#A0A1A6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5.1 19.698 9.11 5.556M17.805 19.698 13.794 5.556M6.502 5.556h9.9M11.452 19.698v9.192M2.26 19.698h18.384"}))),S=new String(".sticky-threads.jsx-400087e3fca899d2{padding:0 0 8px;display:flex;overflow-x:auto}.empty-box.jsx-400087e3fca899d2{text-align:center;color:var(--secondary-text);background-color:var(--grey-darker-background);border-radius:8px;padding:12px;font-size:13px}.dot.jsx-400087e3fca899d2{background-color:var(--secondary-text);border-radius:15px;width:2px;height:2px;margin:0 1.5px;display:inline-block;transform:scale(1.5)}.instruction.jsx-400087e3fca899d2{justify-content:center;align-items:center;line-height:1.2;display:flex}.thread.jsx-400087e3fca899d2{flex:0 0 200px;margin-right:8px;position:relative}.thread.jsx-400087e3fca899d2 .menu-container{z-index:1;position:absolute;top:6px;right:12px}.thread.jsx-400087e3fca899d2 .menu-container .menu-trigger{background-color:var(--inverse-background);border-radius:50%;width:20px;height:20px}.thread.jsx-400087e3fca899d2 .menu-container .menu-trigger>span{background-color:var(--inverse-text)}");S.__hash="400087e3fca899d2";let M=[],O=e=>{let{api:t,userId:n,threads:o=M,stickyThreadId:l}=e,[c,d]=(0,i.useState)(o),h=()=>{t.get({uri:"/tinhte/content-stickies",params:{content_type:"thread",user_id:n}}).then(e=>d((0,r.default)(e,"contents",[]).map(k.U)))};return(0,i.useEffect)(()=>{l&&t.post({uri:"/tinhte/content-stickies",params:{content_type:"thread",content_id:l}}).then(()=>{h(),y.c.success("Đã ghim bài viết.")}).catch(()=>y.c.error("Có lỗi khi ghim bài viết."))},[l]),(0,i.useEffect)(()=>{o&&o.length>0&&d(o)},[o]),(0,a.jsxs)("div",{className:"jsx-".concat(S.__hash)+" thread-forum-filter",children:[(0,a.jsx)("div",{className:"jsx-".concat(S.__hash)+" section-heading",children:"Bài viết đang ghim"}),c&&c.length>0?(0,a.jsx)("div",{className:"jsx-".concat(S.__hash)+" sticky-threads",children:c.map(e=>(0,a.jsxs)("div",{className:"jsx-".concat(S.__hash)+" thread",children:[(0,a.jsx)(E,{thread:e}),(0,a.jsx)(w.f,{position:"right",menuItems:(0,a.jsx)("button",{onClick:()=>{var a;return a=e.id,void t.del({uri:"/tinhte/content-stickies",params:{content_type:"thread",content_id:a}}).then(()=>{h(),y.c.success("Đã gỡ ghim bài viết.")}).catch(()=>y.c.error("Có lỗi khi gỡ ghim bài viết."))},className:"jsx-".concat(S.__hash),children:"Gỡ ghim"})})]},e.id))}):(0,a.jsxs)("div",{className:"jsx-".concat(S.__hash)+" empty-box",children:[(0,a.jsx)(I,{}),(0,a.jsxs)("div",{className:"jsx-".concat(S.__hash)+" instruction",children:["Từ danh sách bài đã viết bên dưới chọn ",(0,a.jsx)("span",{className:"jsx-".concat(S.__hash)+" dot"}),(0,a.jsx)("span",{className:"jsx-".concat(S.__hash)+" dot"}),(0,a.jsx)("span",{className:"jsx-".concat(S.__hash)+" dot"})," → Ghim bài viết"]})]}),(0,a.jsx)(s.default,{id:S.__hash,children:S})]})};O.apiFetches={threads:(e,t)=>{let{userId:a}=t;return{uri:"/tinhte/content-stickies",params:{content_type:"thread",user_id:a},success:e=>(0,r.default)(e,"contents",[]).map(k.U)}}};let L=f.f.ApiConsumer(O),z=new String("hr.jsx-cd0d43ef25e7dc39{background-color:var(--primary-border);height:1px;margin:24px 0}");z.__hash="cd0d43ef25e7dc39";class A extends h.default.Component{onForumClicked(e){this.setState({forumId:e})}onStickProfileThread(e){this.setState({stickyThreadId:e})}render(){let{userProfile:e,newThread:t}=this.props,{forumId:i,stickyThreadId:r}=this.state,n={url:"tinhte-facts/users",userId:e.id},o={"@context":"https://schema.org","@type":"ProfilePage",mainEntity:{"@type":"Person",alternateName:e.name,identifier:e.id,image:e.avatarBig,description:e.introPlainText,interactionStatistic:[{"@type":"InteractionCounter",interactionType:"https://schema.org/FollowAction",userInteractionCount:e.stats.follower},{"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:e.stats.like}],agentInteractionStatistic:{"@type":"InteractionCounter",interactionType:"https://schema.org/WriteAction",userInteractionCount:e.stats.post}}};return 3===e.id&&(o.mainEntity.worksFor={"@type":"Organization",name:"Tinhte.vn"},o.mainEntity.sameAs=["https://tinhte.vn/profile/cuhiep.3/","https://twitter.com/cuhiep"]),(0,a.jsxs)("div",{className:"jsx-".concat(z.__hash)+" threads-container",children:[(0,a.jsx)(u.default,{children:(0,a.jsx)("script",{dangerouslySetInnerHTML:{__html:JSON.stringify(o)},type:"application/ld+json",className:"jsx-".concat(z.__hash)})}),(0,a.jsx)(m.f,{newThread:t,limit:15,title:"Fact đã tạo",disableNewFact:!0,disableAuthor:!0,factsUser:n}),(0,a.jsx)("hr",{className:"jsx-".concat(z.__hash)}),(0,a.jsx)(L,{stickyThreadId:r,userId:e.id}),(0,a.jsx)("hr",{className:"jsx-".concat(z.__hash)}),(0,a.jsx)(v,{userId:e.id,onForumClicked:this.onForumClicked}),(0,a.jsx)(p.f,{newThread:t,requestType:x.f.PROFILE,paramVal:{userProfile:e,forumId:i},stickProfileThread:this.onStickProfileThread}),(0,a.jsx)(s.default,{id:z.__hash,children:z})]})}constructor(e){super(e),this.state={forumId:null,stickyThreadId:null},this.onForumClicked=this.onForumClicked.bind(this),this.onStickProfileThread=this.onStickProfileThread.bind(this)}}let F=f.f.ApiConsumer(A);var R=i,U=e.i(112667),B=e.i(128316),D=e.i(312493);let q=new String(".item.jsx-39d65f4baa87b64b{margin-bottom:16px}.item.jsx-39d65f4baa87b64b .title.jsx-39d65f4baa87b64b{margin-bottom:10px;font-size:15px;font-weight:600}.item.jsx-39d65f4baa87b64b .my-info .body{box-shadow:var(--box-shadow);border:0;border-radius:4px}.community.jsx-39d65f4baa87b64b{box-shadow:var(--box-shadow);background-color:var(--white-background);border-radius:4px;padding:14px;position:relative;overflow:hidden}.community.jsx-39d65f4baa87b64b .community-item.jsx-39d65f4baa87b64b{margin-bottom:15px}.community.jsx-39d65f4baa87b64b .community-item.jsx-39d65f4baa87b64b:last-child{margin-bottom:0}.ad.jsx-39d65f4baa87b64b{margin-bottom:16px}.ad.jsx-39d65f4baa87b64b .main{box-shadow:none;border-radius:4px}@media (max-width:1099px){.ad.jsx-39d65f4baa87b64b iframe{width:240px}}.hidden-sm.jsx-39d65f4baa87b64b{display:none}@media (min-width:992px){.hidden-sm.jsx-39d65f4baa87b64b{display:block}}");q.__hash="39d65f4baa87b64b";class V extends R.default.Component{render(){let{userProfile:e,followingPages:t}=this.props,i=t.length>0?t.slice(0,5):[];return(0,a.jsxs)("div",{className:"jsx-".concat(q.__hash)+" sidebar",children:[e.isVisitor&&(0,a.jsx)("div",{className:"jsx-".concat(q.__hash)+" item",children:(0,a.jsx)(B.f,{compactMode:!0})}),(0,a.jsx)("div",{className:"jsx-".concat(q.__hash)+" item hidden-sm",children:i&&i.length>0?(0,a.jsxs)("div",{className:"jsx-".concat(q.__hash)+" community",children:[(0,a.jsx)("h2",{className:"jsx-".concat(q.__hash)+" title",children:e.isVisitor?"Cộng đồng của bạn":"Cộng đồng tham gia"}),(0,a.jsx)("div",{className:"jsx-".concat(q.__hash)+" communities",children:i&&i.map(e=>(0,a.jsx)("div",{className:"jsx-".concat(q.__hash)+" community-item",children:(0,a.jsx)(U.f,{community:e})},e.id))})]}):null}),(0,a.jsx)("div",{className:"jsx-".concat(q.__hash)+" ad",children:(0,a.jsx)(D.f,{path:"Desktop_Forum_Right_1",size:[300,250]})}),(0,a.jsx)("div",{className:"jsx-".concat(q.__hash)+" ad",children:(0,a.jsx)(D.f,{path:"Right_Banner_3",size:[300,600]})}),(0,a.jsx)("div",{className:"jsx-".concat(q.__hash)+" ad",children:(0,a.jsx)(D.f,{path:"Desktop_Forum_Right_2",size:[300,250]})}),(0,a.jsx)(s.default,{id:q.__hash,children:q})]})}constructor(e){super(e),this.state={}}}let H=f.f.ApiConsumer(V),W=new String("");W.__hash="e43e7f1a484b1acb";let G=(0,o.f)(e=>{let{query:t,error:i}=e,o=(0,r.default)(t,"userId","").split("."),h=o[o.length-1];return(0,a.jsxs)("div",{className:"jsx-".concat(W.__hash),children:[(0,a.jsxs)(n.f,{title:"Trang cá nhân",ogImageUrl:"https://tinhte.vn/styles/uiflex/dimota/logo.og.png",error:i,children:[(0,a.jsx)(l.f,{}),(0,a.jsx)(d.f,{userId:h,error:i,sidebar:(0,a.jsx)(H,{}),main:(0,a.jsx)(F,{})}),(0,a.jsx)(c.f,{})]}),(0,a.jsx)(s.default,{id:W.__hash,children:W})]})});e.s(["default",0,G],643764)},704603,e=>{var t=e.i(391398),a=e.i(145246);e.i(191788);var s=e.i(441994);let i=new String(".main.jsx-758c604b6a4caa2d{background:var(--color-light-1)}.main.jsx-758c604b6a4caa2d>div>div{vertical-align:top}");i.__hash="758c604b6a4caa2d",e.s(["f",0,e=>{let{path:r,size:n,sizes:o}=e;return(0,t.jsxs)("div",{className:"jsx-".concat(i.__hash)+" main",children:[(0,t.jsx)(s.Bling,{adUnitPath:"/3823916/Tinhte_".concat(r),sizeMapping:o,slotSize:n,collapseEmptyDiv:!1,renderWhenViewable:!1}),(0,t.jsx)(a.default,{id:i.__hash,children:i})]})}],704603)},490839,e=>{var t,a=e.i(391398),s=e.i(145246),i=e.i(191788),r=e.i(251533),n=e.i(230184),o=e.i(109969),l=e.i(602692);function c(){return(c=Object.assign.bind()).apply(null,arguments)}let d=e=>i.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:4,height:7,viewBox:"0 0 4 7"},e),t||(t=i.createElement("path",{fill:"#333",fillRule:"evenodd",d:"m0 7 4-3.5L0 0z"}))),h=new String(".author.jsx-635efd738da6a98b{display:flex}@media (max-width:575px){.author.jsx-635efd738da6a98b{font-size:12px}}.author.jsx-635efd738da6a98b .author-info.jsx-635efd738da6a98b{flex:1 1 0;padding-right:8px}.author.jsx-635efd738da6a98b .top.jsx-635efd738da6a98b{align-items:center;display:flex}.author.jsx-635efd738da6a98b .top.jsx-635efd738da6a98b>svg{margin:0 5px 1px}.author.jsx-635efd738da6a98b .name.jsx-635efd738da6a98b{color:var(--user-color);align-items:center;font-size:15px;font-weight:700;display:flex}.author.jsx-635efd738da6a98b .name.jsx-635efd738da6a98b:hover{color:var(--color-accent-dark)}.author.jsx-635efd738da6a98b .forum-thread-stream.jsx-635efd738da6a98b{margin-left:8px}.author.jsx-635efd738da6a98b .forum-thread-stream.jsx-635efd738da6a98b .forum.jsx-635efd738da6a98b{margin-left:3px}.author.jsx-635efd738da6a98b .forum-thread-stream.jsx-635efd738da6a98b svg path{fill:var(--text-since)}.author.jsx-635efd738da6a98b .rank.jsx-635efd738da6a98b{color:var(--text-rank);font-size:11px}.author.jsx-635efd738da6a98b .since.jsx-635efd738da6a98b{color:var(--text-since);font-size:11px}.author.jsx-635efd738da6a98b .forum.jsx-635efd738da6a98b{color:var(--text-since)}.author.jsx-635efd738da6a98b .verify-badge.jsx-635efd738da6a98b{vertical-align:middle;margin:0 10px 0 3px;display:inline-block}.author.jsx-635efd738da6a98b .verify-badge.jsx-635efd738da6a98b svg{width:13px;height:13px;display:block}@media (min-width:576px){.author.jsx-635efd738da6a98b .hidden-xs{display:unset!important}}");h.__hash="635efd738da6a98b";let u=i.default.memo(e=>{let{user:t,postedSince:c,forum:u,thread:f}=e,x=(0,l.f)(t);return(0,a.jsxs)("div",{className:"jsx-".concat(h.__hash)+" author",children:[(0,a.jsx)(r.f,{src:t.avatar,alt:t.name,profile:t.link,noScale:!0}),(0,a.jsxs)("div",{className:"jsx-".concat(h.__hash)+" author-info",children:[t&&t.name&&(0,a.jsxs)("div",{className:"jsx-".concat(h.__hash)+" top",children:[(0,a.jsxs)("a",{href:t.link,style:{display:"flex",color:x},className:"jsx-".concat(h.__hash)+" name",children:[t.name,t.verified_badge&&(0,a.jsx)("i",{style:{marginLeft:7,color:x},className:"jsx-".concat(h.__hash)+" fas fa-check-circle"})]}),f&&(0,a.jsx)(o.f,{thread:f}),u&&u.id&&u.title&&(0,a.jsx)(i.Fragment,{children:(0,a.jsxs)("div",{className:"jsx-".concat(h.__hash)+" forum-thread-stream",children:[(0,a.jsx)(d,{}),(0,a.jsx)("span",{className:"jsx-".concat(h.__hash)+" forum",children:(0,a.jsx)("a",{href:"/forum/".concat(u.id),className:"jsx-".concat(h.__hash),children:u.title})})]})})]}),(0,a.jsx)("div",{className:"jsx-".concat(h.__hash)+" bottom",children:c&&(0,a.jsx)("span",{className:"jsx-".concat(h.__hash)+" since",children:(0,a.jsx)(n.f,{value:c})})})]}),(0,a.jsx)(s.default,{id:h.__hash,children:h})]})});e.s(["f",0,u],490839)},112667,e=>{var t=e.i(391398),a=e.i(145246);e.i(191788),e.i(966278);var s=e.i(318398);let i=new String(".community.jsx-2f16d3804d26abac{align-items:center;display:flex}.real-image.jsx-2f16d3804d26abac{opacity:0;width:100%}.image.jsx-2f16d3804d26abac{background-position:50%;background-size:cover;border-radius:6px;width:81px;height:50px;margin-right:12px}.title.jsx-2f16d3804d26abac{color:var(--color-light-2);font-weight:700}.title.jsx-2f16d3804d26abac:hover{color:var(--color-accent-light)}");i.__hash="2f16d3804d26abac";let r=s.f.ApiConsumer(e=>{let{community:s}=e;return(0,t.jsxs)("div",{className:"jsx-".concat(i.__hash)+" main",children:[(0,t.jsxs)("a",{href:s.link,target:"_blank",rel:"noopener noreferrer",className:"jsx-".concat(i.__hash)+" community",children:[(0,t.jsx)("div",{style:{backgroundImage:"url(".concat(s.image,")")},className:"jsx-".concat(i.__hash)+" image",children:(0,t.jsx)("img",{src:s.image,alt:s.title,className:"jsx-".concat(i.__hash)+" real-image"})}),(0,t.jsx)("span",{className:"jsx-".concat(i.__hash)+" title",children:s.title})]}),(0,t.jsx)(a.default,{id:i.__hash,children:i})]})});e.s(["f",0,r],112667)},318892,e=>{var t,a=e.i(391398),s=e.i(145246),i=e.i(191788);function r(){return(r=Object.assign.bind()).apply(null,arguments)}let n=e=>i.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",width:94,height:79,viewBox:"0 0 94 79"},e),t||(t=i.createElement("path",{fill:"#E4E4E4",fillRule:"nonzero",d:"M75.362 67.11a1.37 1.37 0 0 0-1.9.428c-3.435 5.444-9.31 8.695-15.713 8.695H22.346c-10.253 0-18.594-8.388-18.594-18.697V24.383A1.38 1.38 0 0 0 2.376 23C1.616 23 1 23.62 1 24.383v33.153C1 69.37 10.576 79 22.346 79H57.75c7.35 0 14.094-3.731 18.037-9.98.407-.645.217-1.5-.424-1.91M62.694 30.426l-10.298 11.09a1.534 1.534 0 0 0 0 2.057c.263.285.609.427.954.427a1.3 1.3 0 0 0 .956-.427l10.298-11.09a1.535 1.535 0 0 0 0-2.057 1.284 1.284 0 0 0-1.91 0m29.304-23.55-4.822-4.857a6.82 6.82 0 0 0-9.682 0L72.49 7.061C68.422 2.556 62.722 0 56.619 0h-35.6c-4.939 0-9.76 1.73-13.577 4.873a21.7 21.7 0 0 0-7.41 12.183 1.393 1.393 0 0 0 1.353 1.686c.639 0 1.212-.447 1.351-1.1A18.9 18.9 0 0 1 9.193 7.03a18.65 18.65 0 0 1 11.825-4.244H56.62c5.358 0 10.361 2.263 13.91 6.248L55.815 23.85h-38.58c-.765 0-1.384.623-1.384 1.393s.62 1.393 1.384 1.393h35.813l-6.633 6.68h-29.18a1.39 1.39 0 0 0-1.384 1.394c0 .769.62 1.393 1.384 1.393h26.413l-8.582 8.642a31.3 31.3 0 0 0-6.048 8.584l-3.938 8.238c-1.089 2.281-.645 4.91 1.132 6.7 1.13 1.138 2.597 1.733 4.1 1.733.858 0 1.729-.195 2.552-.594l3.97-1.924.002-.001 4.21-2.04a31.1 31.1 0 0 0 8.523-6.09l25.75-25.93v24.048a19 19 0 0 1-.54 4.51 1.393 1.393 0 0 0 1.345 1.726c.622 0 1.187-.425 1.342-1.06.411-1.685.62-3.427.62-5.176V30.635l3.845-3.873.001-.002 10.065-10.135c2.67-2.688 2.67-7.062 0-9.75M32.516 66.671c-1.479.712-2.819.153-3.58-.608-.76-.761-1.32-2.101-.608-3.58L29.523 60A35 35 0 0 1 35 65.477zm8.368-4.214L37.679 64a37 37 0 0 0-3.126-3.553A37 37 0 0 0 31 57.321l1.542-3.205c1.065-2.21 2.4-4.26 3.985-6.116L47 58.473a28.4 28.4 0 0 1-6.116 3.985M48.689 57 38 46.31 69.31 15 80 25.69zm32.896-33L71 13.414 74.414 10 85 20.586zm9.184-9.595L86.935 18 76 7.75l3.834-3.596A4.35 4.35 0 0 1 82.812 3c1.078 0 2.157.384 2.978 1.154l4.978 4.668c1.642 1.54 1.642 4.044.001 5.583M18.386 17h43.229c.764 0 1.385-.671 1.385-1.5s-.62-1.5-1.385-1.5H18.386c-.765 0-1.386.671-1.386 1.5s.62 1.5 1.386 1.5"}))),o=new String(".empty-state.jsx-e20a4db6236c317b{flex-direction:column;justify-content:center;align-items:center;height:50vh;margin:0 auto;padding:20px 15px;display:flex}@media (min-width:992px){.empty-state.jsx-e20a4db6236c317b{height:70vh}}.empty-state.jsx-e20a4db6236c317b svg{margin-left:auto;margin-right:auto}.empty-state.jsx-e20a4db6236c317b .message.jsx-e20a4db6236c317b{opacity:.5;margin:15px 0}");o.__hash="e20a4db6236c317b",e.s(["f",0,e=>{let{icon:t=(0,a.jsx)(n,{}),text:i="Sếp chưa trả bài, quay lại sau nhé anh em!",children:r}=e;return(0,a.jsxs)("div",{className:"jsx-".concat(o.__hash)+" empty-state text-center",children:[t,(0,a.jsx)("br",{className:"jsx-".concat(o.__hash)}),(0,a.jsx)("div",{className:"jsx-".concat(o.__hash)+" message",children:i}),r,(0,a.jsx)(s.default,{id:o.__hash,children:o})]})}],318892)},438311,e=>{var t=e.i(391398),a=e.i(145246),s=e.i(191788);let i=new String(".pagination.jsx-73e051160c8b81b3{white-space:nowrap;align-items:center;font-size:.8rem;display:flex;position:relative}.pagination.jsx-73e051160c8b81b3 .pagination--header.jsx-73e051160c8b81b3{margin-right:10px}.pagination.jsx-73e051160c8b81b3 .pagination--pages.jsx-73e051160c8b81b3{flex-flow:wrap;display:flex}.pagination.jsx-73e051160c8b81b3 .pagination--pages.jsx-73e051160c8b81b3 .page.jsx-73e051160c8b81b3{text-align:center;box-sizing:border-box;border:1px solid var(--border-dark);min-width:26px;height:26px;color:var(--text-dark);opacity:.5;background-color:#0000;border-radius:3px;outline:none;margin:0 3px 3px 0;padding:0 5px;line-height:24px;display:inline-block}.pagination.jsx-73e051160c8b81b3 .pagination--pages.jsx-73e051160c8b81b3 .page.jsx-73e051160c8b81b3:hover{background-color:var(--border-dark);border:1px solid var(--border-dark);color:var(--text-light)}.pagination.jsx-73e051160c8b81b3 .pagination--pages.jsx-73e051160c8b81b3 .current.jsx-73e051160c8b81b3{background-color:var(--border-dark);border:1px solid var(--border-dark);color:var(--text-light);opacity:1;border-radius:3px}@media (max-width:500px){.pagination.jsx-73e051160c8b81b3 .pagination--header.jsx-73e051160c8b81b3{display:none}}");i.__hash="73e051160c8b81b3",e.s(["f",0,e=>{let{currentPage:r,totalPage:n,onSelected:o}=e,[l,c]=(0,s.useState)(r-3),d=e=>{o(e)};return(0,s.useEffect)(()=>{c(r-3)},[r]),(0,t.jsxs)("div",{className:"jsx-".concat(i.__hash),children:[n>1?(0,t.jsx)("div",{className:"jsx-".concat(i.__hash)+" pagination",children:(0,t.jsxs)("div",{className:"jsx-".concat(i.__hash)+" pagination--pages",children:[(0,t.jsx)("button",{onClick:()=>d(1),className:"jsx-".concat(i.__hash)+" "+"page ".concat(1===r?"current":""),children:"1"}),l>1&&(0,t.jsx)("button",{onClick:e=>{e.preventDefault(),l>0&&c(l-5)},className:"jsx-".concat(i.__hash)+" page",children:"←"},"window-back"),(0,t.jsx)("div",{className:"jsx-".concat(i.__hash),children:Array.apply(0,{length:5}).map(Number.call,Number).map(e=>e+l+11&&(0,t.jsx)("button",{onClick:()=>d(e+l+1),className:"jsx-".concat(i.__hash)+" "+"page ".concat(r===e+l+1?"current":""),children:e+l+1}))}),l+5{e.preventDefault(),ld(n),className:"jsx-".concat(i.__hash)+" "+"page ".concat(r===n?"current":""),children:n})]})}):(0,t.jsx)("div",{className:"jsx-".concat(i.__hash)}),(0,t.jsx)(a.default,{id:i.__hash,children:i})]})}],438311)},241427,e=>{var t=e.i(391398),a=e.i(145246),s=e.i(191788);e.i(966278);var i=e.i(318398),r=e.i(693084),n=e.i(587388),o=e.i(113503);let l=new String(".__react_modal_image__icon_menu{margin-top:10px}.tinhtefact-container.jsx-907011416ed6f509{border-radius:10px;width:100%;position:relative;overflow:hidden}.fact-background.jsx-907011416ed6f509{-webkit-filter:blur(8px);z-index:1;background-position:50%;background-repeat:no-repeat;background-size:cover;position:absolute;top:-20px;bottom:-20px;left:-20px;right:-20px}.imgContainer.jsx-907011416ed6f509{z-index:2;margin-left:auto;margin-right:auto;position:relative}.imgWrapper.jsx-907011416ed6f509{padding:12px}.fact-image.jsx-907011416ed6f509{flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%;display:flex;position:relative}.attachments.jsx-907011416ed6f509{text-align:center;z-index:3;width:100%;padding:0 10px 10px;display:inline-block;position:relative;bottom:0}.attachment.jsx-907011416ed6f509{border:2px solid trasparent;cursor:pointer;background-position:50%;background-repeat:no-repeat;background-size:cover;border-radius:4px;flex:0 0 42px;width:42px;height:42px;margin:5px}.attachment.active.jsx-907011416ed6f509{border:2px solid var(--active-indicator)}.img.jsx-907011416ed6f509{object-fit:contain;cursor:pointer;border-radius:12px;margin:auto;display:block;position:relative}@media (max-width:700px){.img.jsx-907011416ed6f509{height:40vh;max-height:500px;margin-top:24px;margin-bottom:24px}}@media (min-width:701px){.img.jsx-907011416ed6f509{height:70vh;max-height:600px;margin-top:24px;margin-bottom:24px}}.fact-video.jsx-907011416ed6f509{width:100%}.fact-video.jsx-907011416ed6f509:focus{outline:none}.title.jsx-907011416ed6f509{color:var(--color-accent-light);background-color:var(--color-dark-2);text-align:center;text-transform:uppercase;border-top-left-radius:8px;border-top-right-radius:8px;font-weight:700}.body.jsx-907011416ed6f509{background:var(--thread-fact-background);color:var(--text-light);border-bottom-right-radius:8px;border-bottom-left-radius:8px}.body.center.jsx-907011416ed6f509{text-align:center}@media (max-width:700px){.body.jsx-907011416ed6f509{padding:12px;font-size:1.1rem;line-height:1.5rem}.attachments.jsx-907011416ed6f509{padding:0}}@media (min-width:701px){.body.jsx-907011416ed6f509{max-height:300px;padding:18px;font-size:1rem;line-height:1.5rem;overflow:auto}}.video-is-processing.jsx-907011416ed6f509{text-align:center;justify-content:center;align-items:center;min-height:200px;font-size:16px;font-weight:700;display:flex}");l.__hash="907011416ed6f509";class c extends s.default.Component{toogleLightbox(){let{showLightBox:e}=this.state;this.setState({showLightBox:!e})}updateFactImage(e){let{images:t}=this.state,a=e.links.permalink;this.setState({photoIndex:t.indexOf(a)})}render(){let{thread:e}=this.props,{showLightBox:i,images:c,photoIndex:d}=this.state,h="";e.firstPost&&(h=(h=e.firstPost.bodyHtml).replace('class="LinkExpander expanded externalLink has-thumbnail-cover is-secure"','class="externalLink has-thumbnail-cover is-secure" style="display:none"'));let u=c[d],f=e&&e.firstPost&&e.firstPost.videoAttachment,{videoAttachment:x}=f?e.firstPost:{};return(0,t.jsxs)("div",{className:"jsx-".concat(l.__hash)+" tinhtefact-container",children:[(0,t.jsx)("div",{style:f?{backgroundColor:"black"}:{backgroundImage:"linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,1)), url(".concat(u,")")},className:"jsx-".concat(l.__hash)+" fact-background"}),(0,t.jsxs)("div",{className:"jsx-".concat(l.__hash)+" imgContainer",children:[(0,t.jsx)("div",{href:u,role:"button",className:"jsx-".concat(l.__hash)+" imgWrapper",children:f?(0,t.jsx)(s.Fragment,{children:x.attachment_video_is_processing?(0,t.jsx)("p",{className:"jsx-".concat(l.__hash)+" video-is-processing",children:"Video đang xử lý, vài phút nữa bạn quay lại nha..."}):(0,t.jsx)(n.f,{preload:"auto",controls:!0,loop:!0,sources:[{src:x.links.video_url||x.links.permalink}],poster:x.links.thumbnail,videoRatio:x.video_ratio,attachment:x,largePortraitVideo:!0,thread:e,post:e.firstPost})}):(0,t.jsxs)("div",{className:"jsx-".concat(l.__hash)+" fact-image",children:[(0,t.jsx)("img",{src:c[d],alt:e.title,onClick:this.toogleLightbox,className:"jsx-".concat(l.__hash)+" img"}),e.firstPost&&e.firstPost.attachments&&e.firstPost.attachments.length>1&&(0,t.jsx)("div",{className:"jsx-".concat(l.__hash)+" attachments",children:e.firstPost.attachments.map((e,a)=>(0,t.jsx)("button",{onClick:()=>this.updateFactImage(e),style:{backgroundImage:"url(".concat(e.links.thumbnail,")")},className:"jsx-".concat(l.__hash)+" "+"attachment ".concat(a===d?"active":"")},e.attachment_id))})]})}),(0,t.jsx)("div",{className:"jsx-".concat(l.__hash)+" "+"body ".concat(h.length<150?"center":""),children:(0,t.jsx)(r.f,{body:h,highlightLinkOnDarkBackground:!0})}),i&&(0,t.jsx)(o.f,{mainSrc:c[d],onCloseRequest:()=>this.setState({showLightBox:!1}),nextSrc:c[(d+1)%c.length],prevSrc:c[(d+(c.length-1))%c.length],onMovePrevRequest:()=>this.setState({photoIndex:(d+(c.length-1))%c.length}),onMoveNextRequest:()=>this.setState({photoIndex:(d+1)%c.length})})]}),(0,t.jsx)(a.default,{id:l.__hash,children:l})]})}constructor(e){super(e);let t="",a=[];if(this.props.thread){let e=this.props.thread;if(t=this.props.thread.image,e.firstPost)if(e.firstPost.attachments&&e.firstPost.attachments.length>0){let s=e.firstPost.attachments[0];s&&(t=s.links.permalink),a=e.firstPost.attachments.map(e=>e.links.permalink)}else a=[t]}this.state={showLightBox:!1,images:a,photoIndex:0},this.toogleLightbox=this.toogleLightbox.bind(this),this.updateFactImage=this.updateFactImage.bind(this)}}let d=i.f.ApiConsumer(c);e.s(["f",0,d],241427)},75588,426923,e=>{var t,a,s=e.i(391398),i=e.i(145246),r=e.i(191788);e.i(966278);var n=e.i(318398),o=e.i(455404),l=e.i(566573);let c=Object.freeze({FORUMFOLLOWED:"Theo dõi forum thành công",FORUMUNFOLLOWED:"Huỷ theo dõi forum thành công",USERFOLLOWED:"Theo dõi thành công",USERUNFOLLOWED:"Huỷ theo dõi thành công",USERIGNORED:"Bỏ qua thành công",USERUNIGNORED:"Huỷ bỏ qua thành công"});function d(){return(d=Object.assign.bind()).apply(null,arguments)}e.s(["f",0,c],426923);let h=e=>r.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:25,height:24,fill:"none",viewBox:"0 0 25 24"},e),t||(t=r.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M11.05 3.5a3.45 3.45 0 1 0 0 6.9 3.45 3.45 0 0 0 0-6.9M6.1 6.95a4.95 4.95 0 1 1 9.9 0 4.95 4.95 0 0 1-9.9 0m-1.623 9.027A6.75 6.75 0 0 1 9.25 14a.75.75 0 0 1 0 1.5A5.25 5.25 0 0 0 4.054 20h8.796a.75.75 0 0 1 0 1.5h-9.6a.75.75 0 0 1-.75-.75 6.75 6.75 0 0 1 1.977-4.773m10.142-4.354a3.39 3.39 0 0 0-2.723.929l-.006.006a3.324 3.324 0 0 0 0 4.734l4.032 3.991a.75.75 0 0 0 1.056 0l4.032-3.993a3.324 3.324 0 0 0 0-4.732l-.527.534.52-.54a3.39 3.39 0 0 0-4.553-.137 3.4 3.4 0 0 0-1.83-.792m4.642 1.58c.261.09.5.235.698.426a1.823 1.823 0 0 1-.003 2.594l-3.506 3.472-3.506-3.47v-.001a1.825 1.825 0 0 1-.004-2.595 1.89 1.89 0 0 1 2.885.32.75.75 0 0 0 1.25 0 1.89 1.89 0 0 1 2.186-.745",clipRule:"evenodd"})));function u(){return(u=Object.assign.bind()).apply(null,arguments)}let f=e=>r.createElement("svg",u({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),a||(a=r.createElement("path",{fill:"#0768EA",fillRule:"evenodd",d:"M20.492 4.262c.566.43.675 1.236.246 1.802l-10.47 13.775a1.286 1.286 0 0 1-1.932.131l-4.96-4.959a1.286 1.286 0 0 1 1.819-1.818l3.917 3.918 9.579-12.603a1.286 1.286 0 0 1 1.801-.246",clipRule:"evenodd"}))),x=new String(".button.jsx-a0535d15a1a033a9{border-radius:4px;justify-content:center;padding:10px 16px;font-size:15px;font-weight:600;display:flex}.follow-btn.jsx-a0535d15a1a033a9{color:var(--text-on-primary-color);background-color:var(--primary-color)}.unfollow-btn.jsx-a0535d15a1a033a9{color:var(--text-on-light-button);background-color:var(--light-button)}");x.__hash="a0535d15a1a033a9";class p extends r.default.Component{followUser(e){this.props.api.post({uri:"/users/".concat(e,"/followers")}).then(e=>{"ok"===e.status&&this.setState({isFollowed:!0},()=>{o.c.success(c.USERFOLLOWED)})}).catch(e=>{let{message:t}=(0,l.f)(e);o.c.error(t)})}unFollowUser(e){this.props.api.del({uri:"/users/".concat(e,"/followers")}).then(e=>{"ok"===e.status&&this.setState({isFollowed:!1},()=>{o.c.success(c.USERUNFOLLOWED)})}).catch(e=>{let{message:t}=(0,l.f)(e);o.c.error(t)})}render(){let{userId:e,isFollowed:t}=this.state;return(0,s.jsxs)("div",{className:"jsx-".concat(x.__hash),children:[t?(0,s.jsxs)("button",{onClick:()=>this.unFollowUser(e),className:"jsx-".concat(x.__hash)+" button unfollow-btn",children:[(0,s.jsx)(f,{}),"  Đang theo dõi"]}):(0,s.jsxs)("button",{onClick:()=>this.followUser(e),className:"jsx-".concat(x.__hash)+" button follow-btn",children:[(0,s.jsx)(h,{}),"  Theo dõi"]}),(0,s.jsx)(i.default,{id:x.__hash,children:x})]})}constructor(e){super(e);let{userId:t,isFollowed:a}=this.props;this.state={userId:t,isFollowed:a}}}let m=n.f.ApiConsumer(p);e.s(["f",0,m],75588)},312493,e=>{var t=e.i(391398),a=e.i(145246);e.i(191788);var s=e.i(704603);let i=new String(".main.jsx-78c4865b3cf4e3ed{background:var(--color-light-0);flex-wrap:wrap;justify-content:space-evenly;min-height:250px;padding:12px 3px;display:flex}.item.jsx-78c4865b3cf4e3ed{padding:3px}@media (max-width:1001px){.main.jsx-78c4865b3cf4e3ed{display:none}}@media (min-width:701px){.main.jsx-78c4865b3cf4e3ed{box-shadow:var(--box-shadow);border-radius:12px}}");i.__hash="78c4865b3cf4e3ed",e.s(["f",0,e=>{let{path:r,size:n}=e;return(0,t.jsxs)("div",{className:"jsx-".concat(i.__hash)+" main",children:[(0,t.jsx)("div",{className:"jsx-".concat(i.__hash)+" item",children:(0,t.jsx)(s.f,{path:r,size:n})}),(0,t.jsx)(a.default,{id:i.__hash,children:i})]})}],312493)},492580,361519,133548,e=>{var t,a,s,i,r=e.i(391398),n=e.i(145246),o=e.i(191788);e.i(966278);var l=e.i(318398),c=e.i(758568),d=e.i(566573);function h(){return(h=Object.assign.bind()).apply(null,arguments)}let u=e=>o.createElement("svg",h({xmlns:"http://www.w3.org/2000/svg",width:167,height:102,viewBox:"0 0 167 102"},e),t||(t=o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("path",{fill:"#E6FCFF",d:"M129 85H46a7 7 0 0 1 0-14H7a7 7 0 0 1 0-14h40a7 7 0 0 0 0-14H22a7 7 0 0 1 0-14h40a7 7 0 0 1 0-14h98a7 7 0 0 1 0 14h-40a7 7 0 0 1 0 14h22a7 7 0 0 1 0 14h-10.174c-4.874 0-8.826 3.134-8.826 7q0 3.865 6 7a7 7 0 0 1 0 14m31-28a7 7 0 1 1 0-14 7 7 0 0 1 0 14"}),o.createElement("path",{fill:"#FFF",stroke:"#00BAD7",strokeLinecap:"round",strokeWidth:2.5,d:"m106.672 14 9.302 67.843.835 6.806a4 4 0 0 1-3.482 4.458l-58.56 7.19a4 4 0 0 1-4.458-3.483l-9.016-73.427a2 2 0 0 1 1.741-2.23q.01 0 .021-.002l4.859-.545m3.928-.44 4.587-.515"}),o.createElement("path",{fill:"#E6FCFF",d:"m104.14 18.27 8.42 61.483.757 6.168c.244 1.987-1.15 3.794-3.114 4.035l-52.442 6.439c-1.963.24-3.753-1.175-3.997-3.162l-8.15-66.376a2 2 0 0 1 1.742-2.23l6.487-.796"}),o.createElement("path",{fill:"#FFF",stroke:"#00BAD7",strokeWidth:2.5,d:"M63.672 1.25A2.75 2.75 0 0 0 60.922 4v76a2.75 2.75 0 0 0 2.75 2.75h59a2.75 2.75 0 0 0 2.75-2.75V17.435c0-.73-.29-1.43-.806-1.945L111.173 2.055a2.75 2.75 0 0 0-1.944-.805z"}),o.createElement("path",{stroke:"#00BAD7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M109.672 2.403V14a3 3 0 0 0 3 3h7.933M71.672 17h26zm0 12h43zm0 13h43zm0 13h43zm0 13h26z"}))));e.s(["f",0,u],361519);var f=e.i(565715),x=e.i(697680),p=e.i(604782),m=e.i(974011),g=e.i(921194),b=e.i(995545),j=o,_=o,v=e.i(251533),y=e.i(230184),w=e.i(612683),k=e.i(693084),N=e.i(75588);function C(){return(C=Object.assign.bind()).apply(null,arguments)}let P=e=>o.createElement("svg",C({xmlns:"http://www.w3.org/2000/svg",width:16,height:17,fill:"none",viewBox:"0 0 16 17"},e),a||(a=o.createElement("path",{fill:"#0768EA",d:"M0 8.188a8 8 0 1 1 16 0 8 8 0 0 1-16 0"})),s||(s=o.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M11.538 4.964a.536.536 0 0 1 .103.75l-4.362 5.74a.536.536 0 0 1-.806.055L4.407 9.443a.536.536 0 1 1 .758-.758l1.632 1.633 3.99-5.252a.536.536 0 0 1 .751-.102",clipRule:"evenodd"})));function E(){return(E=Object.assign.bind()).apply(null,arguments)}let T=e=>o.createElement("svg",E({xmlns:"http://www.w3.org/2000/svg",width:12,height:12,fill:"none",viewBox:"0 0 12 12"},e),i||(i=o.createElement("path",{fill:"#000",fillOpacity:.85,d:"m6.075 2.625-5.85 5.85A.68.68 0 0 0 0 9v2.25c0 .45.3.75.75.75H3a.68.68 0 0 0 .525-.225l5.85-5.85zM11.775 2.475 9.525.225c-.3-.3-.75-.3-1.05 0l-1.35 1.35 3.3 3.3 1.35-1.35c.3-.3.3-.75 0-1.05"}))),I=new String(".blur-effect.jsx-8a39f001da54479c{filter:blur(100px);z-index:1;opacity:.3;background-position:50%;background-repeat:no-repeat;background-size:cover;position:absolute;top:0;bottom:0;left:0;right:0}.floating-buttons.jsx-8a39f001da54479c{z-index:10;visibility:hidden;display:flex;position:absolute;right:12px}.floating-buttons.jsx-8a39f001da54479c>*{margin-left:8px}.edit-button.jsx-8a39f001da54479c{border:1px solid var(--primary-border);border-radius:4px;padding:4px 8px}.profile-header.jsx-8a39f001da54479c{padding:32px 10px;position:relative;overflow:hidden}.profile-header.jsx-8a39f001da54479c:hover .floating-buttons.jsx-8a39f001da54479c{visibility:visible}.profile.jsx-8a39f001da54479c{z-index:10;flex-direction:column;align-items:center;max-width:640px;margin:0 auto;display:flex;position:relative}.profile.jsx-8a39f001da54479c .avatar{margin-right:0}.profile.jsx-8a39f001da54479c .name.jsx-8a39f001da54479c{margin:12px 0 16px;font-size:22px;font-weight:600}.profile.jsx-8a39f001da54479c .name.jsx-8a39f001da54479c .verifyBadge.jsx-8a39f001da54479c{margin-left:4px}.profile.jsx-8a39f001da54479c .name.jsx-8a39f001da54479c .verifyCitizen.jsx-8a39f001da54479c svg>path:first-child{fill:var(--mod-tag-background)}.profile.jsx-8a39f001da54479c .name.jsx-8a39f001da54479c .moderatorContent.jsx-8a39f001da54479c svg>path:first-child{fill:var(--color-moderator-content)}.profile.jsx-8a39f001da54479c .name.jsx-8a39f001da54479c .banned.jsx-8a39f001da54479c{color:red;text-decoration:line-through}.profile.jsx-8a39f001da54479c .mod-tag.jsx-8a39f001da54479c{color:var(--inverse-text);background-color:var(--mod-tag-background);border-radius:11px;margin-top:-15px;padding:2px 8px;font-size:16px;font-weight:600;position:relative}.profile.jsx-8a39f001da54479c .info.jsx-8a39f001da54479c{text-align:center;flex-wrap:wrap;justify-content:center;align-items:center;display:flex}.profile.jsx-8a39f001da54479c .info.jsx-8a39f001da54479c .item.jsx-8a39f001da54479c{align-items:center;padding:0 12px;display:flex}.profile.jsx-8a39f001da54479c .info.jsx-8a39f001da54479c .item.border.jsx-8a39f001da54479c{border-right:0}@media (min-width:576px){.profile.jsx-8a39f001da54479c .info.jsx-8a39f001da54479c .item.border.jsx-8a39f001da54479c{border-right:1px solid var(--primary-border)}}.profile.jsx-8a39f001da54479c .info.jsx-8a39f001da54479c .item.jsx-8a39f001da54479c .label.jsx-8a39f001da54479c{color:var(--secondary-text);margin-right:8px}.profile.jsx-8a39f001da54479c .info.jsx-8a39f001da54479c .item.jsx-8a39f001da54479c strong.jsx-8a39f001da54479c{font-size:16px;font-weight:600}.profile.jsx-8a39f001da54479c .about.jsx-8a39f001da54479c{text-align:center;margin-top:16px}.profile.jsx-8a39f001da54479c .about.jsx-8a39f001da54479c .xfBody{font-size:14px}.profile.jsx-8a39f001da54479c .about.jsx-8a39f001da54479c .LinkExpander{display:none!important}.profile.jsx-8a39f001da54479c .user-action-buttons.jsx-8a39f001da54479c{margin-top:16px;display:flex}.profile.jsx-8a39f001da54479c .user-action-buttons.jsx-8a39f001da54479c>div{margin:0 4px}");I.__hash="8a39f001da54479c";class S extends _.default.Component{componentDidUpdate(e,t){t.userIsIgnored!==this.props.userProfile.isIgnored&&this.setState({userIsIgnored:this.props.userProfile.isIgnored})}render(){let{userIsIgnored:e}=this.state,{currentUserId:t,userProfile:a,followingNumber:s,followerNumber:i,followingTags:o,ranks:l}=this.props,c=l.find(e=>e.rankLevel===a.rank.rankLevel);c&&c.iconsActive;let d=a.isModerator||a.isAdmin||a.isModeratorNews?"var(--color-accent-dark)":a.isModeratorContent||a.isModeratorHonor?"var(--color-moderator-content)":"var(--primary-text)";return(0,r.jsxs)("div",{className:"jsx-".concat(I.__hash)+" profile-header",children:[(0,r.jsx)("div",{style:{backgroundImage:"url(".concat(a.avatarBig,")")},className:"jsx-".concat(I.__hash)+" blur-effect"}),(0,r.jsx)("div",{className:"jsx-".concat(I.__hash)+" floating-buttons",children:a.permissions.edit&&(0,r.jsxs)("a",{href:"https://tinhte.vn/account/personal-details",target:"_blank",rel:"noopener noreferrer",className:"jsx-".concat(I.__hash)+" edit-button dark-theme-icon",children:[(0,r.jsx)(T,{}),"  Chỉnh sửa trang cá nhân"]})}),(0,r.jsxs)("div",{className:"jsx-".concat(I.__hash)+" container profile",children:[(0,r.jsx)(v.f,{src:a.avatarBig,alt:a.name,profile:a.avatarBig,width:"112px",height:"112px",noBorder:!0,noScale:!0}),(a.isModerator||a.isAdmin)&&(0,r.jsx)("div",{className:"jsx-".concat(I.__hash)+" mod-tag",children:"MOD"}),(0,r.jsxs)("h1",{className:"jsx-".concat(I.__hash)+" name",children:[(0,r.jsx)("span",{className:"jsx-".concat(I.__hash)+" "+(a.isBanned&&"banned"||""),children:(0,r.jsx)("span",{style:{color:d},className:"jsx-".concat(I.__hash),children:a.name})}),a.verifiedBadge?(0,r.jsx)("span",{className:"jsx-".concat(I.__hash)+" verifyBadge",children:(0,r.jsx)(P,{})}):(a.isVerifiedPhone||a.isVerifiedCitizen)&&a.isNormalUser?(0,r.jsx)("span",{className:"jsx-".concat(I.__hash)+" verifyBadge verifyCitizen",children:(0,r.jsx)(P,{})}):null]}),(0,r.jsxs)("div",{className:"jsx-".concat(I.__hash)+" info",children:[(0,r.jsxs)("div",{className:"jsx-".concat(I.__hash)+" item border",children:[(0,r.jsx)("span",{className:"jsx-".concat(I.__hash)+" label",children:"Bài đã đăng:"}),(0,r.jsx)("strong",{className:"jsx-".concat(I.__hash),children:(0,r.jsx)(w.f,{value:a.stats.thread})})]}),(0,r.jsxs)("div",{className:"jsx-".concat(I.__hash)+" item",children:[(0,r.jsx)("span",{className:"jsx-".concat(I.__hash)+" label",children:"Tuổi tinhte:"}),(0,r.jsx)("strong",{className:"jsx-".concat(I.__hash),children:(0,r.jsx)(y.f,{value:a.joinedTime,showSpecificTime:!1})})]})]}),(0,r.jsxs)("div",{className:"jsx-".concat(I.__hash)+" info",children:[(0,r.jsxs)("div",{className:"jsx-".concat(I.__hash)+" item border",children:[(0,r.jsx)("span",{className:"jsx-".concat(I.__hash)+" label",children:"Lượt Like:"}),(0,r.jsx)("strong",{className:"jsx-".concat(I.__hash),children:(0,r.jsx)(w.f,{value:a.stats.like})})]}),(0,r.jsxs)("div",{className:"jsx-".concat(I.__hash)+" item",children:[(0,r.jsx)("span",{className:"jsx-".concat(I.__hash)+" label",children:"Lượt theo dõi:"}),(0,r.jsx)("strong",{className:"jsx-".concat(I.__hash),children:(0,r.jsx)(w.f,{value:a.stats.follower})})]})]}),a.intro&&(a.isModerator||a.isAdmin)&&(0,r.jsx)("div",{className:"jsx-".concat(I.__hash)+" about",children:(0,r.jsx)(k.f,{body:a.intro})}),a.permissions.follow&&!e&&(0,r.jsx)("div",{className:"jsx-".concat(I.__hash)+" user-action-buttons",children:(0,r.jsx)(N.f,{userId:a.id,isFollowed:a.isFollowed})})]}),(0,r.jsx)(n.default,{id:I.__hash,children:I})]})}constructor(e){super(e),this.state={userIsIgnored:this.props.userProfile.isIgnored}}}let M=l.f.ApiConsumer(S);var O=e.i(41158),L=e.i(203828);let z=(0,e.i(501584).f)((0,L.withRouter)(e=>{let{router:t,href:a,as:s,childrenPathname:i,children:n}=e,l=n.props.className||"";return t&&(t.pathname===a.pathname||t.pathname===i)&&(l="".concat(l," active")),(0,r.jsx)(O.default,{href:a,as:s,legacyBehavior:!0,children:o.default.cloneElement(n,{className:l})})}),{errorMsg:"Lỗi Menu Link"});e.s(["f",0,z],133548);var A=e.i(94764);let F=new String(".message-button.jsx-54b4a9b28abf70c7{color:var(--text-on-light-button);background-color:var(--light-button);border-radius:4px;padding:10px 24px;font-size:15px;font-weight:600;line-height:17px;display:block}");F.__hash="54b4a9b28abf70c7";let R=e=>{let{userName:t}=e;return(0,r.jsxs)("div",{className:"jsx-".concat(F.__hash),children:[(0,r.jsx)("a",{href:"/conversations/add?to=".concat(t),target:"_blank",rel:"noopener noreferrer",className:"jsx-".concat(F.__hash)+" button message-button",children:(0,r.jsx)("span",{className:"jsx-".concat(F.__hash)+" label",children:"Nhắn tin"})}),(0,r.jsx)(n.default,{id:F.__hash,children:F})]})};var U=o,B=e.i(455404),D=e.i(426923);let q=new String(".ignore-button.jsx-fbe22bf9918d41ea{background-color:var(--secondary-button);border-radius:4px;padding:10px 24px;font-size:15px;font-weight:600;line-height:17px;display:block}");q.__hash="fbe22bf9918d41ea";class V extends U.default.Component{ignoreUser(e){this.props.api.post({uri:"/users/".concat(e,"/ignore")}).then(e=>{"ok"===e.status&&this.setState({isIgnored:!0},()=>{B.c.success(D.f.USERIGNORED),this.props.userIsIgnored(!0)})}).catch(e=>{let{message:t}=(0,d.f)(e);B.c.error(t)})}unIgnoreUser(e){this.props.api.del({uri:"/users/".concat(e,"/ignore")}).then(e=>{"ok"===e.status&&this.setState({isIgnored:!1},()=>{B.c.success(D.f.USERUNIGNORED),this.props.userIsIgnored(!1)})}).catch(e=>{let{message:t}=(0,d.f)(e);B.c.error(t)})}render(){let{userId:e,isIgnored:t}=this.state;return(0,r.jsxs)("div",{className:"jsx-".concat(q.__hash),children:[t?(0,r.jsx)("button",{onClick:()=>this.unIgnoreUser(e),className:"jsx-".concat(q.__hash)+" ignore-button",children:"Huỷ bỏ qua"}):(0,r.jsx)("button",{onClick:()=>this.ignoreUser(e),className:"jsx-".concat(q.__hash)+" ignore-button",children:"Bỏ qua"}),(0,r.jsx)(n.default,{id:q.__hash,children:q})]})}constructor(e){super(e);let{userId:t,isIgnored:a}=this.props;this.state={userId:t,isIgnored:a}}}let H=l.f.ApiConsumer(V),W=new String(".navigation-wrapper.jsx-2406aa93ff31b8a9{padding:15px 20px 0}.navigation.jsx-2406aa93ff31b8a9{border-bottom:1px solid var(--primary-border);flex:1 1 0;justify-content:space-between;display:flex;overflow:hidden}@media (max-width:767px){.navigation.jsx-2406aa93ff31b8a9{flex-direction:column-reverse}}.navigation.jsx-2406aa93ff31b8a9 .first-menu.jsx-2406aa93ff31b8a9{align-items:center;display:flex;overflow:auto}.navigation.jsx-2406aa93ff31b8a9 .second-menu.jsx-2406aa93ff31b8a9{display:flex}@media (max-width:767px){.navigation.jsx-2406aa93ff31b8a9 .second-menu.jsx-2406aa93ff31b8a9{justify-content:center;width:100%;margin:0 auto 16px}}.navigation.jsx-2406aa93ff31b8a9 li.jsx-2406aa93ff31b8a9{white-space:nowrap;margin-right:24px}.navigation.jsx-2406aa93ff31b8a9 li.jsx-2406aa93ff31b8a9:last-child{margin-right:0}.navigation.jsx-2406aa93ff31b8a9 li.jsx-2406aa93ff31b8a9:hover{cursor:pointer}.navigation.jsx-2406aa93ff31b8a9 li.jsx-2406aa93ff31b8a9:hover span.jsx-2406aa93ff31b8a9{opacity:1}.navigation.jsx-2406aa93ff31b8a9 li.jsx-2406aa93ff31b8a9 span.jsx-2406aa93ff31b8a9{color:var(--text-grey);border-bottom:3px solid #0000;font-weight:800;display:inline-block;padding-bottom:20px!important}.navigation.jsx-2406aa93ff31b8a9 li.active.jsx-2406aa93ff31b8a9 span.jsx-2406aa93ff31b8a9{opacity:1;border-bottom:3px solid var(--primary-color);padding:6px 15px}.navigation.jsx-2406aa93ff31b8a9 li.jsx-2406aa93ff31b8a9 .thread-editor .blue-switch{color:var(--text-on-light-button);background-color:var(--light-button);width:auto;margin:0}");W.__hash="2406aa93ff31b8a9";let G=e=>{let{userProfile:t,onCreateThread:a}=e,[s,i]=(0,o.useState)(!1);return(0,r.jsxs)("div",{className:"jsx-".concat(W.__hash)+" container",children:[(0,r.jsx)("div",{className:"jsx-".concat(W.__hash)+" row navigation-wrapper",children:(0,r.jsxs)("div",{className:"jsx-".concat(W.__hash)+" navigation",children:[(0,r.jsxs)("ul",{className:"jsx-".concat(W.__hash)+" first-menu",children:[(0,r.jsx)(z,{href:{pathname:"/profile",query:{userId:t.id}},as:"/profile/".concat(t.id),children:(0,r.jsx)("li",{className:"jsx-".concat(W.__hash),children:(0,r.jsx)("span",{className:"jsx-".concat(W.__hash),children:"Tường nhà"})})}),t.permissions.edit&&(0,r.jsx)(z,{href:{pathname:"/profile/quest",query:{userId:t.id}},as:"/profile/".concat(t.id,"/quest"),childrenPathname:"/profile/reward",children:(0,r.jsx)("li",{className:"jsx-".concat(W.__hash),children:(0,r.jsx)("span",{className:"jsx-".concat(W.__hash),children:"Nhiệm vụ của bạn"})})}),t.permissions.edit&&(0,r.jsx)("li",{className:"jsx-".concat(W.__hash)+" ",children:(0,r.jsx)("a",{href:"/user-analytics/".concat(t.id),className:"jsx-".concat(W.__hash),children:(0,r.jsx)("span",{className:"jsx-".concat(W.__hash),children:"Phân tích"})})})]}),(0,r.jsxs)("ul",{className:"jsx-".concat(W.__hash)+" second-menu",children:[t.permissions.edit&&(0,r.jsx)("li",{className:"jsx-".concat(W.__hash),children:(0,r.jsx)(A.f,{label:"Đăng bài viết ngay",miniMode:!0,inlineMode:!0,newThread:e=>a(e)})}),t.permissions.follow&&(0,r.jsx)("li",{className:"jsx-".concat(W.__hash),children:(0,r.jsx)(R,{userName:t.name})}),t.permissions.follow&&!s&&(0,r.jsx)("li",{className:"jsx-".concat(W.__hash),children:(0,r.jsx)(H,{userId:t.id,isIgnored:t.isIgnored,userIsIgnored:e=>{i(e)}})})]})]})}),(0,r.jsx)(n.default,{id:W.__hash,children:W})]})},K=new String(".top.jsx-7a6510416d4c7114{box-shadow:0 1px 4px 0 var(--box-shadow);background-color:var(--page-background);border-radius:0 0 13px 13px;flex:auto;margin-bottom:4px;font-size:14px}.divider.jsx-7a6510416d4c7114{opacity:.23;background-color:#979797;border:0;height:1px}");K.__hash="7a6510416d4c7114";class X extends j.default.Component{onCreateThread(e){this.props.onCreateThread(e)}render(){let{currentUserId:e,userProfile:t,followingNumber:a,followerNumber:s,followingTags:i,ranks:o}=this.props;return(0,r.jsxs)("div",{className:"jsx-".concat(K.__hash)+" top",children:[(0,r.jsx)(M,{currentUserId:e,userProfile:t,followingNumber:a,followerNumber:s,followingTags:i,ranks:o}),(0,r.jsx)(G,{userProfile:t,onCreateThread:this.onCreateThread}),(0,r.jsx)(n.default,{id:K.__hash,children:K})]})}constructor(e){super(e),this.state={},this.onCreateThread=this.onCreateThread.bind(this)}}let J=l.f.ApiConsumer(X),Q=new String("@media (min-width:1200px){.section.jsx-ff656b99f16eacb3 .container{max-width:960px}.section.jsx-ff656b99f16eacb3 .container .col-left{padding-right:16px}.section.jsx-ff656b99f16eacb3 .container .col-main{padding-left:0}}.empty-state.jsx-ff656b99f16eacb3{padding:150px 50px}.empty-state.jsx-ff656b99f16eacb3 svg.jsx-ff656b99f16eacb3{margin-left:auto;margin-right:auto}.empty-state.jsx-ff656b99f16eacb3 .message.jsx-ff656b99f16eacb3{margin:15px 0}");Q.__hash="ff656b99f16eacb3";class Y extends o.default.Component{componentDidMount(){let{api:e}=this.props;e.onAuthenticated(()=>{this.updateUserProfile()})}onCreateThread(e){this.setState({newThread:e})}updateUserProfile(){let{api:e,userId:t}=this.props;if(!e)return;let a=e.getUserId();e.get({uri:"/users/".concat(t),headers:{"Api-Post-Tree":1}}).then(e=>{let t=(0,f.U)(e.user||{});this.setState({userProfile:t,currentUserId:a})}).catch(e=>{console.log("Error in updateUserProfile function",e);let{message:t}=(0,d.f)(e);this.setState({apiError:t})})}render(){let{userProfile:e,currentUserId:t,apiError:a,newThread:s}=this.state,{error:i,followers:l,followings:c,followingTags:d,followingPages:h,ranks:f,sidebar:x,main:p}=this.props,m=parseInt(this.props.userId,10),j=l.total,_=c.total;return(0,r.jsxs)("div",{className:"jsx-".concat(Q.__hash)+" main",children:[null==e||0===Object.entries(e).length?(0,r.jsx)(b.f,{title:"Trang cá nhân không tồn tại",description:a,ogImageUrl:"https://tinhte.vn/styles/uiflex/dimota/logo.og.png",error:i,reFetching:!0,children:(0,r.jsxs)("div",{className:"jsx-".concat(Q.__hash)+" empty-state text-center",children:[(0,r.jsx)(u,{}),(0,r.jsx)("div",{dangerouslySetInnerHTML:{__html:a},className:"jsx-".concat(Q.__hash)+" message"})]})}):(0,r.jsxs)(b.f,{title:"".concat(e.name||"Profile"," - Trang cá nhân"),description:"Trang cá nhân của ".concat(e.name," trên Tinhte.vn"),ogImageUrl:e.avatarBig,url:e.link,error:i,reFetching:!0,children:[(0,r.jsx)("div",{className:"jsx-".concat(Q.__hash)+" section",children:(0,r.jsx)(J,{currentUserId:t,userProfile:e,followingNumber:_,followerNumber:j,followingTags:d,ranks:f,onCreateThread:this.onCreateThread})}),(0,r.jsx)("div",{className:"jsx-".concat(Q.__hash)+" section",children:(0,r.jsx)(g.f,{darkBg:!1,left:o.default.cloneElement(x,{currentUserId:t,userProfile:e,followingTags:d,followingPages:h,followings:c}),main:o.default.cloneElement(p,{userProfile:e,userId:m,newThread:s})})})]}),(0,r.jsx)(n.default,{id:Q.__hash,children:Q})]})}constructor(e){super(e),this.state={apiError:"Không tìm thấy trang",currentUserId:null,userProfile:this.props.userProfile,newThread:null},this.onCreateThread=this.onCreateThread.bind(this)}}Y.defaultProps={followers:{},followings:{},followingTags:[],followingPages:[],userProfile:null,ranks:[]},Y.apiFetches={userProfile:(e,t)=>{let{userId:a}=t;return{uri:"/users/".concat(a),headers:{"Api-Post-Tree":1},success:e=>(0,f.U)(e.user||{})}},followings:(e,t)=>{let{userId:a}=t;return{uri:"/users/".concat(a,"/followings"),success:e=>({users:e.users,total:e.users_total}),error:e=>(console.log("Error loading followings",e),{users:[],total:0})}},followers:(e,t)=>{let{userId:a}=t;return{uri:"/users/".concat(a,"/followers"),success:e=>({users:e.users,total:e.users_total}),error:e=>(console.log("Error loading followers",e),{users:[],total:0})}},followingTags:(e,t)=>{let{userId:a}=t;return{uri:"tags/followings",params:{page:1,limit:1e3,user_id:a},success:e=>(0,c.default)(e,"tags",[]).map(x.f),error:e=>(console.log(e),[])}},followingPages:(e,t)=>{let{userId:a}=t;return{uri:"feature-pages/followings",params:{user_id:a,_bdImageApiFeaturePageThumbnailSize:"144",_bdImageApiFeaturePageThumbnailMode:"sw"},success:e=>(0,c.default)(e,"pages",[]).map(p.f),error:e=>(console.log(e),[])}},ranks:{uri:"tinhte/ranks",success:e=>(0,c.default)(e,"ranks",[]).map(m.f)}};let Z=l.f.ApiConsumer(Y);e.s(["f",0,Z],492580)},588076,e=>{var t,a=e.i(191788);function s(){return(s=Object.assign.bind()).apply(null,arguments)}e.s(["f",0,e=>a.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",width:15,height:14,viewBox:"0 0 15 14"},e),t||(t=a.createElement("path",{fill:"#232F3D",fillRule:"nonzero",d:"m10.185 8.066 2.502-2.503.112.112a.871.871 0 1 0 1.234-1.234L9.838.246A.873.873 0 1 0 8.604 1.48l.111.111-2.502 2.503c-1.71-.388-3.942.449-5.274 1.78L4 8.934l-2.536 2.534c-.31.31-1.264 1.767-.954 2.077l.225.224c.31.31 1.767-.644 2.076-.954l2.535-2.535 3.06 3.06c1.33-1.332 2.168-3.565 1.78-5.274"})))])},532123,e=>{var t,a=e.i(191788);function s(){return(s=Object.assign.bind()).apply(null,arguments)}e.s(["f",0,e=>a.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",width:512,height:512,viewBox:"0 0 486.4 486.4"},e),t||(t=a.createElement("g",{fill:"#900"},a.createElement("path",{d:"M446 70H344.8V53.5c0-29.5-24-53.5-53.5-53.5h-96.2c-29.5 0-53.5 24-53.5 53.5V70H40.4c-7.5 0-13.5 6-13.5 13.5S32.9 97 40.4 97h24.4v317.2c0 39.8 32.4 72.2 72.2 72.2h212.4c39.8 0 72.2-32.4 72.2-72.2V97H446c7.5 0 13.5-6 13.5-13.5S453.5 70 446 70M168.6 53.5c0-14.6 11.9-26.5 26.5-26.5h96.2c14.6 0 26.5 11.9 26.5 26.5V70H168.6zm226 360.7c0 24.9-20.3 45.2-45.2 45.2H137c-24.9 0-45.2-20.3-45.2-45.2V97h302.9v317.2z",className:"active-path","data-old_color":"#000000","data-original":"#000000"}),a.createElement("path",{d:"M243.2 411c7.5 0 13.5-6 13.5-13.5V158.9c0-7.5-6-13.5-13.5-13.5s-13.5 6-13.5 13.5v238.5c0 7.5 6 13.6 13.5 13.6M155.1 396.1c7.5 0 13.5-6 13.5-13.5V173.7c0-7.5-6-13.5-13.5-13.5s-13.5 6-13.5 13.5v208.9c0 7.5 6.1 13.5 13.5 13.5M331.3 396.1c7.5 0 13.5-6 13.5-13.5V173.7c0-7.5-6-13.5-13.5-13.5s-13.5 6-13.5 13.5v208.9c0 7.5 6 13.5 13.5 13.5",className:"active-path","data-old_color":"#000000","data-original":"#000000"}))))])},525835,e=>{var t=e.i(758568),a=e.i(33989),s=e.i(741309);let i=e=>({544:0,545:1,628:2,546:3})[e.id],r={707:"Tai nghe",711:"Mobile Audio",713:"Loa",712:"DAC/Amp",660:"Thiết bị ảnh",560:"Nhiếp ảnh cơ bản",566:"Cách chụp đẹp",212:"Quay video đẹp"},n=e=>({id:e.forum_id,title:r[e.forum_id]?r[e.forum_id]:e.forum_title,type:({544:"bike",545:"car",628:"bicycle",546:"others",707:"headphone",711:"mobileaudio",713:"speaker",712:"ampli",660:"cameraDevice",560:"photoBasic",566:"takeGoodPicture",212:"cameraVideo"})[e.forum_id],stats:{thread:e.forum_thread_count,post:e.forum_post_count},link:e.links.permalink});e.s(["f",0,e=>{let t=(0,a.default)({},e,s.f);return{id:t.forum_id,title:t.forum_title,description:t.forum_description,thread_count:t.forum_thread_count,post_count:t.forum_post_count,is_followed:t.forum_is_followed,thumbnail:t.forum_thumbnail_url,prefixes:t.forum_prefixes}},"X",0,e=>(0,t.default)(e,"forums",[]).map(e=>(0,a.default)({},e,s.f)).map(n).sort((e,t)=>i(e)-i(t)).slice(0,4),"I",0,e=>(0,t.default)(e,"forums",[]).map(e=>(0,a.default)({},e,s.f)).map(n).sort((e,t)=>i(e)-i(t))])},697680,e=>{var t=e.i(90031),a=e.i(668564),s=e.i(913083);let i={links:{next:null,page:null,pages:null,banner_desktop_url:null,banner_mobile_url:null,banner_target_url:null},tag_id:null,tag_is_followed:!1,tag_text:null,tag_use_count:null,permissions:{follow:!1},latest_thread:null,tag_img:(0,a.f)()};e.s(["f",0,e=>{let r=(0,t.default)(e,i),n=r.latest_thread?(0,s.U)(r.latest_thread):null;r.threads&&(n=(0,s.U)(r.threads[0]));let o=(0,a.f)();return{id:r.tag_id,isFollowed:r.tag_is_followed,tagText:r.tag_text||r.tag_name||"",link:"https://tinhte.vn/tag/".concat(r.tag_url||r.tag_text),bannerDesktop:r.links?r.links.banner_desktop_url:null,bannerMobile:r.links?r.links.banner_mobile_url:null,bannerUrl:r.links?r.links.banner_target_url:null,title:r.tag_text||r.tag_name||"",image:n&&n.image?n.image:r.tag_img||o,stats:{useCount:r.tag_use_count||0},permissions:r.permissions,latestThread:n}}])}],77305,(e,t,a)=>{let s="/profile";(window.__NEXT_P=window.__NEXT_P||[]).push([s,()=>e.r(643764)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push([s])})},90031,(e,t,a)=>{var s=e.r(623428),i=e.r(198373),r=e.r(622986),n=e.r(473140),o=Object.prototype,l=o.hasOwnProperty;t.exports=s(function(e,t){e=Object(e);var a=-1,s=t.length,c=s>2?t[2]:void 0;for(c&&r(t[0],t[1],c)&&(s=1);++a{var s=e.r(979021),i=e.r(903275);t.exports=function(e,t,a){var r=!0,n=!0;if("function"!=typeof e)throw TypeError("Expected a function");return i(a)&&(r="leading"in a?!!a.leading:r,n="trailing"in a?!!a.trailing:n),s(e,t,{leading:r,maxWait:t,trailing:n})}},168489,(e,t,a)=>{t.exports=e.r(425167)},41158,(e,t,a)=>{t.exports=e.r(539149)},171447,e=>{e.q("/_next/static/media/LinkIconOnly.1i790dah1y2qf.png")},617645,e=>{e.q("/_next/static/media/PencilIcon.1lcrcy5oy2l9-.png")},34026,e=>{e.q("/_next/static/media/default.1nbmj46a5j1ye.png")},752445,e=>{e.q("/_next/static/media/TinhteLogo.36yrjhch50d4v.png")},313821,e=>{e.q("/_next/static/media/icon-share-42x42-black.2qz4iezryca0z.png")},395659,e=>{e.q("/_next/static/media/audio.2gg4ns3bj8n-0.png")},174659,e=>{e.q("/_next/static/media/camera.0zh4ovqnoltyd.png")},910474,e=>{e.q("/_next/static/media/xe.3q44dcp7rfq9_.png")},58026,e=>{e.q("/_next/static/media/youtube.0rubkn-rhuf0z.png")}]);