(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{"+6xO":function(t,e,n){"use strict";var r=n("mwIZ"),o=n.n(r),i=n("q1tI"),a=n.n(i),c=n("17x9"),u=n.n(c),l=n("dtw8"),s=n("Vg22"),p=n("jY6F"),f=n("8vAd"),d=n("4KmB");function h(t){"@babel/helpers - typeof";return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function m(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n> ",111),s.a.createElement("div",{className:"top10"},s.a.createElement("span",{class:"",style:{padding:"6px 16px",backgroundColor:"#f8bb18",borderRadius:"5px",display:"inline-block"}},"Xem chi tiết",s.a.createElement("img",{src:"https://cdn.vungoi.vn/vungoi/2020/0625/1593049269215_icon-right.png"})))}var Q=function(t){Y(n,s.a.PureComponent);var e=H(n);function n(){var t;U(this,n);for(var r=arguments.length,o=new Array(r),i=0;i12||n<1)&&(n=0),e.open("GET","https://adapi.Conkec.com/v1/countdown/5bc70660ee307f785ba270b4?grade="+n,!0),e.onload=function(){if(200===e.status){var n=JSON.parse(e.responseText);if(n.success){t.setState({countdown_info:n.countdown_info});var r=n.countdown_info,o=r.start_time,i=r.end_time,a=(r.notify_time,r.current_time),c=(r.text1,r.text2,r.target_url,r.title,r.new_tab,a0){var u=Math.floor(c/3600),l=Math.floor((c-3600*u)/60),s=c-3600*u-60*l;t.setState({cd_hour:u,cd_minute:l,cd_second:s,key:1})}}}},e.send()}catch(t){}}},{key:"addQueryParamsToUrl",value:function(t,e){for(var n=!/^https?:\/\//i.test(t),r=t.startsWith("/"),o=new URL(t,"http://dummy-base"),i=new URLSearchParams(o.search),a=0,c=Object.entries(e);ao||i",_+='
',_+='
'+a+"
",_+="

"+c+"

",_+='
'+d+"
",_+='
Xem chi tiết
',_+=" ",_+="",s.a.createElement("div",{id:"countdown",style:{marginTop:"1px",position:"relative"}},s.a.createElement(V,{device:m}),s.a.createElement("div",{dangerouslySetInnerHTML:{__html:_}}),s.a.createElement(Z,null));if(v<86400&&v>0)return s.a.createElement("div",{id:"countdown",style:{marginTop:"1px",position:"relative"}},s.a.createElement(V,{device:m}),s.a.createElement("div",null,s.a.createElement("a",B({style:{height:y},href:u,className:"pc-countdown",title:l},b),s.a.createElement("div",{class:"bg-countdown"}),s.a.createElement("div",{class:"coundown_main_title"},a),s.a.createElement("p",null,c),s.a.createElement("ul",{className:"run-clock"},s.a.createElement("li",null,s.a.createElement("span",null,s.a.createElement("b",null,g))),s.a.createElement(Q,B({},this.state,{key:this.state.key}))),s.a.createElement(G,{cd_hour:this.state.cd_hour}))),s.a.createElement(Z,null));var w=Math.floor(v/86400),O="";return i>=e&&(O=(g="Chỉ còn")+" "+w+" ngày"),i",_+='
',_+='
'+a+"
",_+="

"+c+"

",_+='
'+O+"
",_+='
Xem chi tiết
',_+=" ",_+="",_+="",s.a.createElement("div",{id:"countdown",style:{marginTop:"1px",position:"relative",marginBottom:"MOBI"===m?"5px":"auto"}},s.a.createElement(V,{device:this.props.device}),s.a.createElement("div",{style:{marginTop:"1px"},dangerouslySetInnerHTML:{__html:_}}),s.a.createElement(Z,null))}}]),n}();J($,"propTypes",{device:D.a.string.isRequired});Object(M.a)($);var tt=$;n("7/s4");function et(t){"@babel/helpers - typeof";return(et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function nt(t,e){for(var n=0;n12||e<0)&&(e=0);"".concat(t);console.log({gradeType:t})}},{key:"componentWillReceiveProps",value:function(t){t.params.subjectID!==this.props.params.subjectID&&this.props.fetchQuizChapters(t.params.subjectID)}},{key:"render",value:function(){var t=this,e=this.props,n=e.chapterArrray,r=e.chapterData,i=e.chapter,c=e.menuStatus,u=(e.userInfo,e.userSession,e.notActiveSubjects),l=this.props.gradeType;r&&r.grade&&(l=r.grade.type),l<8||l>=13?Object(E.a)("none"):Object(E.a)("chapter-page-bt"),a()(n)&&o()(i,function(t,e){t.stt=S.a[e],o()(t.childs,function(e,n){n7,x=this.props.params.subjectID,T=function(){return s.a.createElement(v.a,{menuStatusType:c,gradeType:l,_handleChangeChapterButton:t.handleChangeChapterButton,subjectID:t.props.chapterData.subjectMgId,subjectMongoID:t.props.chapterData.subjectMgId,chapterDataSameCats:t.props.chapterData.sameCats,showModalSelectBook:t.props.showModalSelectBook,isTieuHoc:j})},P=j?"list-chapters bg-white mg-top-12 border-ccc border-r-4":"list-chapters";return s.a.createElement("div",null,r.seo?s.a.createElement(d.a,{title:b,meta:[{name:"description",content:"".concat(g)},{name:"robots",content:"index,follow"},{property:"og:title",content:"".concat(b)},{property:"og:description",content:"".concat(g)},{property:"og:url",content:"".concat(p)},{property:"og:image",content:"".concat(O)}],link:[{rel:"alternate",media:"handheld",href:"".concat(f)},{rel:"canonical",href:"".concat(p)},{rel:"image_src",href:"".concat(O)}],script:[]}):s.a.createElement(d.a,{meta:[{name:"robots",content:"noindex,follow"}]}),s.a.createElement("div",{className:"container-fluid ".concat(j?"content":"")},s.a.createElement(tt,{device:"pc",gradeType:l}),s.a.createElement("div",{className:"".concat(j?"row":"")},!j&&T(),s.a.createElement("div",{className:"col-sm-8 custom-col"},r.seo.content_box_above&&s.a.createElement("div",{className:"cat-desc",style:{padding:"10px",backgroundColor:"#fff",marginBottom:"10px"}},s.a.createElement("div",{dangerouslySetInnerHTML:{__html:r.seo.content_box_above}})),j&&T(),s.a.createElement("div",{className:P},function(){if(a()(r.items))return s.a.createElement("h1",{className:"color-red font-size-22 text-center"}," Bài tập đang được cập nhật. Bạn vui lòng quay lại sau! ");if(j)return i.map(function(t,e){return s.a.createElement(m.a,{key:e,title:t.title,chapterItem:t,gradeType:l,subjectID:x,type:"excersise",subject:x})});var e=Object(y.a)(i,2);return!a()(e)&&s.a.createElement("div",{className:"row"},e.map(function(e,n){return s.a.createElement("div",{className:"col-sm-6",key:n},e.map(function(e,n){return s.a.createElement(h.a,{key:n,title:e.title,chapterItem:e,gradeType:l,subjectID:t.props.params.subjectID,type:"excersise",subject:t.props.params.subject})}))}))}()),r.seo.description&&s.a.createElement("div",{className:"cat-desc",style:{padding:"10px",backgroundColor:"#fff",marginBottom:"10px"}},s.a.createElement("div",{dangerouslySetInnerHTML:{__html:r.seo.description}}))),s.a.createElement("div",{className:"col-sm-4 custom-col"},s.a.createElement("div",{className:"info-user-chapter-list-page"}),s.a.createElement("div",{style:{marginTop:"20px",marginBottom:"15px"}},s.a.createElement(_.a,{id:3,device:"PC"})),!a()(u)&&s.a.createElement("div",null)))))}}]),n}();e.default=Object(p.connect)(function(t){return{chapterData:t.chapters,chapter:t.chapters.items,gradeType:t.grade.gradeType,grade:t.user.grade,menuStatus:t.statusmenu.menustatus,userInfo:t.user.userInfo,userSession:t.user.session,notActiveSubjects:t.subjects.items.subjects_not_is_active,gradeData:t.grade.items}},function(t){return{fetchQuizChapters:function(e){return t(Object(b.e)(e))},fetchTopUser:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}(function(e){return t(fetchTopUser(e))}),setMenu:function(e){return t(Object(g.n)(e))}}})(Object(P.a)()(ct))},"8C13":function(t,e,n){"use strict";var r=n("q1tI"),o=n.n(r),i=n("mwIZ"),a=n.n(i),c=n("17x9"),u=n.n(c),l=n("dtw8"),s=n("Vg22"),p=n("jY6F"),f=n("8vAd"),d=n("4KmB");function h(t){"@babel/helpers - typeof";return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function m(t,e){for(var n=0;nr)return!1}return!0}function s(t,e){return t&&0!==t.length?function t(e,n,r,o,i){for(var c=[],s=r;;){if(s>=e.length)return{isOK:!0,sortedItem:[]};var p=e[s];if(s+=1,p.childs&&!u()(p.childs)){if(p.childs.length,c.push(p),!l(o,c))return{isOK:!1};if(s===e.length&&o.length===n-1)return{isOK:!0,sortedItem:[c]};if(o.length!==n-1){var f=t(e,n,s,a()(o,[c]),i);if(f.isOK)return{isOK:!0,sortedItem:a()([c],f.sortedItem)}}}}}(t,e,0,[],Math.floor(o()(t,function(t,e){return t+e.childs.length},0)/e)).sortedItem:[]}},CnBM:function(t,e,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var c=n("q1tI"),u=n("17x9"),l=[],s=[];function p(t){var e=t(),n={loading:!0,loaded:null,error:null};return n.promise=e.then(function(t){return n.loading=!1,n.loaded=t,t}).catch(function(t){throw n.loading=!1,n.error=t,t}),n}function f(t){var e={loading:!1,loaded:{},error:null},n=[];try{Object.keys(t).forEach(function(r){var o=p(t[r]);o.loading?e.loading=!0:(e.loaded[r]=o.loaded,e.error=o.error),n.push(o.promise),o.promise.then(function(t){e.loaded[r]=t}).catch(function(t){e.error=t})})}catch(t){e.error=t}return e.promise=Promise.all(n).then(function(t){return e.loading=!1,t}).catch(function(t){throw e.loading=!1,t}),e}function d(t,e){return c.createElement(function(t){return t&&t.__esModule?t.default:t}(t),e)}function h(t,e){var p,f;if(!e.loading)throw new Error("react-loadable requires a `loading` component");var h=Object.assign({loader:null,loading:null,delay:200,timeout:null,render:d,webpack:null,modules:null},e),m=null;function y(){return m||(m=t(h.loader)),m.promise}return l.push(y),"function"==typeof h.webpack&&s.push(function(){if(function(t){return"object"===r(n.m)&&t().every(function(t){return void 0!==t&&void 0!==n.m[t]})}(h.webpack))return y()}),f=p=function(e){function n(r){o(this,n);var a=i(this,e.call(this,r));return a.retry=function(){a.setState({error:null,loading:!0,timedOut:!1}),m=t(h.loader),a._loadModule()},y(),a.state={error:m.error,pastDelay:!1,timedOut:!1,loading:m.loading,loaded:m.loaded},a}return a(n,e),n.preload=function(){return y()},n.prototype.componentWillMount=function(){this._mounted=!0,this._loadModule()},n.prototype._loadModule=function(){var t=this;if(this.context.loadable&&Array.isArray(h.modules)&&h.modules.forEach(function(e){t.context.loadable.report(e)}),m.loading){"number"==typeof h.delay&&(0===h.delay?this.setState({pastDelay:!0}):this._delay=setTimeout(function(){t.setState({pastDelay:!0})},h.delay)),"number"==typeof h.timeout&&(this._timeout=setTimeout(function(){t.setState({timedOut:!0})},h.timeout));var e=function(){t._mounted&&(t.setState({error:m.error,loaded:m.loaded,loading:m.loading}),t._clearTimeouts())};m.promise.then(function(){e()}).catch(function(t){e()})}},n.prototype.componentWillUnmount=function(){this._mounted=!1,this._clearTimeouts()},n.prototype._clearTimeouts=function(){clearTimeout(this._delay),clearTimeout(this._timeout)},n.prototype.render=function(){return this.state.loading||this.state.error?c.createElement(h.loading,{isLoading:this.state.loading,pastDelay:this.state.pastDelay,timedOut:this.state.timedOut,error:this.state.error,retry:this.retry}):this.state.loaded?h.render(this.state.loaded,this.props):null},n}(c.Component),p.contextTypes={loadable:u.shape({report:u.func.isRequired})},f}function m(t){return h(p,t)}m.Map=function(t){if("function"!=typeof t.render)throw new Error("LoadableMap requires a `render(loaded, props)` function");return h(f,t)};var y=function(t){function e(){return o(this,e),i(this,t.apply(this,arguments))}return a(e,t),e.prototype.getChildContext=function(){return{loadable:{report:this.props.report}}},e.prototype.render=function(){return c.Children.only(this.props.children)},e}(c.Component);function b(t){for(var e=[];t.length;){var n=t.pop();e.push(n())}return Promise.all(e).then(function(){if(t.length)return b(t)})}y.propTypes={report:u.func.isRequired},y.childContextTypes={loadable:u.shape({report:u.func.isRequired}).isRequired},m.Capture=y,m.preloadAll=function(){return new Promise(function(t,e){b(l).then(t,e)})},m.preloadReady=function(){return new Promise(function(t,e){b(s).then(t,t)})},t.exports=m},IWTy:function(t,e,n){var r=n("yue5");t.exports=function(t,e,n){for(var o=-1,i=t.criteria,a=e.criteria,c=i.length,u=n.length;++o=u?l:l*("desc"==n[o]?-1:1)}return t.index-e.index}},JD84:function(t,e,n){var r=n("SKAX");t.exports=function(t,e,n,o){return r(t,function(t,r,i){e(o,t,n(t),i)}),o}},JmpY:function(t,e,n){var r=n("eUgh");t.exports=function(t,e){return r(e,function(e){return t[e]})}},Jw0f:function(t,e,n){var r={"./vi":"KSF8","./vi.js":"KSF8"};function o(t){var e=i(t);return n(e)}function i(t){var e=r[t];if(!(e+1)){var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}return e}o.keys=function(){return Object.keys(r)},o.resolve=i,t.exports=o,o.id="Jw0f"},LStu:function(t,e){t.exports=[{id:1,page:"Trang chủ",ad_unit:"pc_all_right",device:"PC",detail:"Góc bên phải bên dưới mạng xã hội",slot:"5384891456"},{id:1,page:"Trang chủ",ad_unit:"m_common",device:"Mobile",detail:"Ở phần giữa các lớp (vị trí thứ 2 hoặc thứ 3)",slot:"6262858853"},{id:2,page:"Trang lớp",ad_unit:"m_common",device:"Mobile",detail:"Trước phần chọn môn",slot:"6262858853"},{id:3,page:"Trang môn",ad_unit:"pc_all_right",device:"PC",detail:"Dưới box thành viên, phía trên của bảng xếp hạng",slot:"5384891456"},{id:3,page:"Trang môn",ad_unit:"m_common",device:"Mobile",detail:"Ở dưới cuối",slot:"6262858853"},{id:4,page:"Trang trước khi luyện bài tập",ad_unit:"pc_all_right",device:"PC",detail:"Góc bên phải",slot:"5384891456"},{id:4,page:"Trang trước khi luyện bài tập",ad_unit:"m_luyentap_top_cnt",device:"Mobile",detail:"Dưới nút bắt đầu",slot:"8613690022"},{id:5.1,page:"Trang làm câu hỏi chi tiết",ad_unit:"pc_luyentap_top_cnt",device:"PC",detail:"Trên đầu trước câu hỏi",slot:"1254074758"},{id:5.1,page:"Trang trước khi luyện bài tập",ad_unit:"m_luyentap_top_cnt",device:"Mobile",detail:"Phía dưới câu hỏi (đáp án)",slot:"1266494761"},{id:5.2,page:"Trang làm câu hỏi chi tiết",ad_unit:"pc_luyentap_bottom_cnt",device:"PC",detail:"Khi bấm xem lời giải quảng cáo ngay dưới nút xem lời giải",slot:"1062503065"},{id:5.2,page:"Trang làm câu hỏi chi tiết",ad_unit:"m_luyentap_bottom_cnt",device:"Mobile",detail:"Cuối lời giải",slot:"1062503065"},{id:5.3,page:"Trang làm câu hỏi chi tiết",ad_unit:"m_luyentap_top_cnt",device:"Mobile",detail:"Trên nội dung câu hỏi",slot:"1972344769"},{id:6.1,page:"Trang sau khi nộp bài",detail:"Góc bên phải",ad_unit:"pc_all_right",device:"PC",slot:"5384891456"},{id:6.2,page:"Trang sau khi nộp bài",detail:"Khi bấm xem câu hỏi chi tiết",ad_unit:"pc_luyentap_top_cnt",device:"PC",slot:"1254074758"},{id:6.3,page:"Trang sau khi nộp bài",ad_unit:"pc_luyentap_bottom_cnt",device:"PC",detail:"Khi bấm xem lời giải có quảng cáo bên dưới nút xem lời giải (giống khi làm bài)",slot:"1062503065"},{id:7.1,page:"Trang lý thuyết chi tiết",ad_unit:"pc_lythuyet_top_cnt",device:"PC",detail:"Đầu bài viết",slot:"2111984560"},{id:7.2,page:"Trang lý thuyết chi tiết",ad_unit:"pc_lythuyet_bottom_cnt",device:"PC",detail:"Cuối bài viết",slot:"6670052967"},{id:8.1,page:"Trang chủ đề thi",ad_unit:"pc_all_right",device:"PC",detail:"Góc bên phải",slot:"5384891456"},{id:8.2,page:"Trang chủ đề thi",ad_unit:"pc_dethi_top_cnt",device:"PC",detail:"Sau box đầu tiên của phần giữa đề thi",slot:"5165399603"},{id:9,page:"Trước khi làm đề thi",ad_unit:"pc_all_right",device:"PC",detail:"Góc bên phải",slot:"5384891456"},{id:10.1,page:"Trang sau khi nộp đề thi",ad_unit:"pc_all_right",device:"PC",detail:"Góc bên phải",slot:"5384891456"},{id:10.2,page:"Trang sau khi nộp đề thi",ad_unit:"pc_dethi_top_cnt",device:"PC",detail:"Khi bấm xem câu hỏi chi tiết",slot:"5165399603"},{id:10.3,page:"Trang sau khi nộp bài",ad_unit:"pc_dethi_bottom_cnt",device:"PC",detail:"Khi bấm xem lời giải có quảng cáo bên dưới nút xem lời giải",slot:"6454430544"},{id:11,page:"Trang làm bài phần danh sách câu hỏi",ad_unit:"pc_luyentap_list_question",device:"PC",detail:"Bên dưới nút bắt đầu làm bài",slot:"1789899056"},{id:12,page:"Trang thi đấu",ad_unit:"vo_pc_thidau_728x90",device:"PC",detail:"Top trang thi dau",slot:"2240446886"},{id:6.2,page:"Trang sau khi nộp bài",detail:"Khi bấm xem câu hỏi chi tiết",ad_unit:"m_luyentap_top_cnt",device:"Mobile",slot:"8613690022"},{id:7.1,page:"Trang lý thuyết chi tiết",ad_unit:"m_lythuyet_top_cnt",device:"Mobile",detail:"Đầu và cuối bài viết",slot:"1266494761"},{id:7.2,page:"Trang lý thuyết chi tiết",ad_unit:"m_lythuyet_bottom_cnt",device:"Mobile",detail:"Đầu và cuối bài viết",slot:"3253552133"},{id:8.1,page:"Trang chủ đề thi",ad_unit:"m_dethi_top_cnt",device:"Mobile",detail:"Sau tag đầu tiên",slot:"7001225451"},{id:9,page:"Trước khi làm đề thi",ad_unit:"m_dethi_top_cnt",device:"Mobile",detail:"Sau nút bắt đầu làm bài",slot:"7001225451"},{id:10.1,page:"Trang sau khi nộp đề thi",ad_unit:"m_dethi_top_cnt",device:"Mobile",detail:"Góc bên phải",slot:"7001225451"},{id:11,page:"Trang làm bài phần danh sách câu hỏi",ad_unit:"m_luyentap_list_question",device:"Mobile",detail:"Bên dưới nút bắt đầu làm bài",slot:"4938806574"},{id:12,page:"Trang thi đấu",ad_unit:"vo_m_thidau",device:"Mobile",detail:"Bottom trang thi dau",slot:"4675038538"}]},LXxW:function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n=e&&window.scrollY<=i.offsetHeight?(n.style.position="fixed",n.style.top="3px",n.style.bottom="unset"):n.style.position="static",window.scrollY>=i.offsetHeight-(n.offsetHeight-20)?(r.style.height=(i.offsetHeight+10).toString()+"px",n.style.position="absolute",n.style.bottom="0",n.style.top="unset"):r.style.height="auto"}}),o.state={positionAds:1e3},o}return function(t,e,n){e&&a(t.prototype,e),n&&a(t,n)}(n,[{key:"componentDidMount",value:function(){document.getElementById("google-ads-right-sticky");try{(window.adsbygoogle=window.adsbygoogle||[]).push({})}catch(t){console.log("error :",t)}}},{key:"render",value:function(){return o.a.createElement("div",{id:"google-ads-right-sticky",style:{background:"red3"}},"Mobile"==this.props.device&&o.a.createElement("div",{className:"ads_txt"},o.a.createElement("span",null,"Quảng Cáo")),o.a.createElement("ins",{className:"adsbygoogle bn300x600 hd-ads-pc lgh-detail-right-pos-2","data-ad-client":"ca-pub-8730483863942113","data-ad-slot":"3797422607","data-ad-format":"auto",style:{display:"inline-block",height:"600px",width:"300px"}}))}}]),n}()},xaJk:function(t,e,n){var r=n("asDA"),o=n("SKAX"),i=n("ut/Y"),a=n("WPeF"),c=n("Z0cm");t.exports=function(t,e,n){var u=c(t)?r:a,l=arguments.length<3;return u(t,i(e,4),n,l,o)}},yue5:function(t,e,n){var r=n("/9aa");t.exports=function(t,e){if(t!==e){var n=void 0!==t,o=null===t,i=t==t,a=r(t),c=void 0!==e,u=null===e,l=e==e,s=r(e);if(!u&&!s&&!a&&t>e||a&&c&&l&&!u&&!s||o&&c&&l||!n&&l||!i)return 1;if(!o&&!a&&!s&&t