(window.webpackJsonp=window.webpackJsonp||[]).push([[76],{1561:function(t,e,r){"use strict";r(14),r(13),r(11),r(15),r(10),r(16);var n=r(3);r(8);function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}e.a={data:function(){return{isLoading:!1}},computed:{roomRoute:function(){var t=this.resource,e=t.room_id;return 1===t.room_type?"/room/ability_".concat(e):"/room/".concat(e)}},methods:{clickFavorite:function(){var t=this;this.isLoading=!0;var e=new Promise((function(e){return t.$emit("click-favorite",function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?o(Object(r),!0).forEach((function(e){Object(n.a)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},t.resource),e)}));e.then((function(){t.isLoading=!1}))},toClassRoom:function(){this.$router.push(this.roomRoute)}}}},1828:function(t,e,r){t.exports={}},1829:function(t,e,r){t.exports={}},1830:function(t,e,r){t.exports={}},2027:function(t,e,r){"use strict";r(1828)},2028:function(t,e,r){"use strict";r(1829)},2029:function(t,e,r){"use strict";r(1830)},2227:function(t,e,r){"use strict";r.r(e);r(37),r(34),r(13),r(68),r(14),r(15),r(10),r(16);var n=r(31),o=r(23),c=r(3),l=r(5),d=(r(8),r(50),r(51),r(30),r(74),r(87),r(11),r(22),r(110),r(27),r(113)),m=r.n(d),f=r(558),v=r(569),h=r(256),_=r(36);function k(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function x(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?k(Object(r),!0).forEach((function(e){Object(c.a)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):k(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var y={data:function(){return{recommendJobCatData:{initial:!1,data:{}},nabiJobCookie:"",nabiJobFromJBCookie:""}},computed:x(x({},Object(_.c)(["isLogin"])),{},{jobCat:function(){var t,e=this.recommendJobCatData.data,data=void 0===e?{}:e,r=data.present,o=void 0===r?{}:r,c=data.expect,l=void 0===c?{}:c,d=data.expect2,m=void 0===d?{}:d,f=data.recommend,v=void 0===f?{}:f,h=data.appoint,_=void 0===h?{}:h,k=data.customs,x=void 0===k?[]:k,y=x.length>0?x[0]:void 0;if(y)t=y;else if(0!==Object.keys(o).length)t=o;else if(0!==Object.keys(l).length)t=l;else if(0!==Object.keys(m).length)t=m;else if(0!==Object.keys(v).length)t=v;else if(0!==Object.keys(_).length)t=_;else if(this.nabiJobCookie){var C=this.nabiJobCookie.split("_"),w=Object(n.a)(C,2);t={indcatName:"",jobcat:w[0],pr:"-1",jobTitle:"",indcat:w[1]}}else if(this.nabiJobFromJBCookie){var O=decodeURIComponent(this.nabiJobFromJBCookie).split(","),j=Object(n.a)(O,2)[1];t={indcatName:"",jobcat:void 0===j?"":j,pr:"-1",jobTitle:"",indcat:""}}else t={indcatName:"",jobcat:"2004001005",pr:"-1",jobTitle:"行銷企劃人員",indcat:""};return t}}),methods:{processSetJobcat:function(t){var e=this;return Object(l.a)(regeneratorRuntime.mark((function r(){var n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!e.isLogin){r.next=6;break}return r.next=3,e.$api.nabi.getRecommendJobcat();case 3:n=r.sent,e.recommendJobCatData.initial=!0,e.recommendJobCatData.data=n;case 6:e.nabiJobCookie=e.$getCookie("choicedJobcat",t)||"",e.nabiJobFromJBCookie=e.$getCookie("c_job_view_job_info_nabi",t)||"";case 8:case"end":return r.stop()}}),r)})))()}}},C=r(255),w=r(1561),O={components:{Button:C.default,Img:h.a},mixins:[w.a],props:{resource:{type:Object,default:function(){return{}}}},data:function(){return{}},methods:{}},j=(r(2027),r(38)),component=Object(j.a)(O,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"resource"},[t._t("default",(function(){return[e("div",{staticClass:"img",attrs:{"data-gtm-content":"room"}},[e("Img",{attrs:{"img-src":t.resource.photo_small_file_url,"onerror-img":t.$getDefaultImgByHash(t.resource.room_title)}})],1),t._v(" "),e("div",{staticClass:"info",attrs:{"data-gtm-content":"room"}},[e("div",{staticClass:"title"},[t._v(t._s(t.resource.room_title))]),t._v(" "),e("div",{staticClass:"desc"},[t._v(t._s(t.resource.description))])]),t._v(" "),e("div",{staticClass:"follow"},[e("Button",{staticClass:"bkOrange_fontWhite",class:{bkOrange_fontWhite:!t.resource.is_favorite,bkOrange_fontOrange:t.resource.is_favorite},attrs:{"data-gtm-btn":"關注",msg:t.resource.is_favorite?"關注中":"關注"},nativeOn:{click:function(e){return e.preventDefault(),t.clickFavorite.apply(null,arguments)}}})],1)]}),{clickFavorite:t.clickFavorite})],2)}),[],!1,null,"79043b24",null),R=component.exports,L=r(1333),B=r.n(L),S=(r(1334),r(1335),{components:{Button:C.default,VueSlickCarousel:B.a},data:function(){return{resovle:void 0,value:!1,settings:{infinite:!0,slidesToShow:1,speed:500,autoplay:!0,arrows:!1,dots:!0,autoplaySpeed:3e3,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!1}}},methods:{openModal:function(){this.value=!1;var t=this;return this.$refs.modal&&this.$refs.modal.show(),new Promise((function(e){t.resovle=e}))},hideModal:function(){this.$refs.modal&&this.$refs.modal.hide()},onHidden:function(t){this.resovle&&(this.resovle(this.value),this.resovle=void 0)},onCancelClick:function(){this.value=!1,this.hideModal()},onOkClick:function(){this.value=!0,this.hideModal()}}}),D=(r(2028),Object(j.a)(S,(function(){var t=this,e=t._self._c;return e("b-modal",{ref:"modal",attrs:{centered:"",scrollable:"","hide-footer":"","no-close-on-backdrop":!0,"dialog-class":"feedSubscribeModal","body-class":""},on:{hidden:t.onHidden},scopedSlots:t._u([{key:"modal-header",fn:function(r){var n=r.close;return[e("h4",{staticClass:"title"},[t._v("關注學習社群")]),t._v(" "),e("button",{staticClass:"close jb_icon_delete h3",attrs:{type:"button"},on:{click:n}})]}},{key:"default",fn:function(){return[e("div",{staticClass:"sliderBox"},[e("VueSlickCarousel",t._b({},"VueSlickCarousel",t.settings,!1),[e("div",[e("div",{staticClass:"contentBox"},[e("div",{staticClass:"title"},[t._v("和大家一起學習")]),t._v(" "),e("div",{staticClass:"hr"}),t._v(" "),e("div",{staticClass:"content"},[t._v("加入你的第一個教室，和其他同學交流學習吧！")]),t._v(" "),e("div",{staticClass:"img"},[e("img",{attrs:{src:r(825),alt:""}})])])]),t._v(" "),e("div",[e("div",{staticClass:"contentBox"},[e("div",{staticClass:"title"},[t._v("分享觀點，互相交流")]),t._v(" "),e("div",{staticClass:"hr"}),t._v(" "),e("div",{staticClass:"content"},[t._v("我們有超過5,000位學習者，一起在這裡教學相長")]),t._v(" "),e("div",{staticClass:"img"},[e("img",{attrs:{src:r(826),alt:""}})])])]),t._v(" "),e("div",[e("div",{staticClass:"contentBox"},[e("div",{staticClass:"title"},[t._v("分享愈多學得愈好")]),t._v(" "),e("div",{staticClass:"hr"}),t._v(" "),e("div",{staticClass:"content"},[t._v("\n                            分享知識能加強自己對內容的理解，比獨自學習的效果更好！\n                        ")]),t._v(" "),e("div",{staticClass:"img"},[e("img",{attrs:{src:r(827),alt:""}})])])])])],1),t._v(" "),e("Button",{staticClass:"bkOrange_fontWhite",attrs:{msg:"開始關注","data-gtm-btn":"開始關注"},on:{click:t.onOkClick}})]},proxy:!0}])})}),[],!1,null,"d4793122",null).exports),$=r(120),P=r(12);function I(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function J(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?I(Object(r),!0).forEach((function(e){Object(c.a)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):I(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var T={name:"Feed",components:{BigClassNavBar:f.a,SeoContainer:v.a,Img:h.a,RoomCardRow:R,Button:C.default,FeedSubscribeModal:D,MessageBox:$.a},mixins:[y],fetch:function(){var t=this;return Object(l.a)(regeneratorRuntime.mark((function e(){var r,n,o,c,d,m,f,v,h,_;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.$nuxt.context,n=r.params,o=r.redirect,c=r.req,d=r.query,m=n.type,t.isLogin||"hot"===m){e.next=6;break}o("/feed/hot",J({},d)),e.next=6;break;case 6:return f=[],t.isLogin&&(f.push(Object(l.a)(regeneratorRuntime.mark((function e(){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$api.user.getUserInfo();case 2:r=e.sent,t.userInfo=r;case 4:case"end":return e.stop()}}),e)})))()),f.push(Object(l.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.processSetJobcat(c);case 2:return e.next=4,t.$api.nabi.getTop10CapabilityByJobcat(t.jobCat.jobcat);case 4:t.skillList=e.sent;case 5:case"end":return e.stop()}}),e)})))())),"hot"===m&&f.push(t.fetchHot()),e.next=11,Promise.all(f);case 11:if(!t.isLogin){e.next=29;break}if(v=t.userInfo,h=v.coldstart_state,(_=v.viewlog_state)||0!==h){e.next=19;break}o("/feed/start",J({},d)),e.next=17;break;case 17:e.next=29;break;case 19:if(!_&&1!==h||"recommend"===m||"subscribe"===m||"hot"===m){e.next=25;break}o("/feed/recommend",J({},d)),e.next=23;break;case 23:e.next=29;break;case 25:if(_||2!==h||"hot"===m||"subscribe"===m){e.next=29;break}o("/feed/hot",J({},d)),e.next=29;break;case 29:return f=[],"subscribe"===m&&f.push(t.getSubscribe()),"recommend"===m&&f.push(t.getRecommend()),f.push(t.getRecommendRoom(1)),e.next=35,Promise.all(f);case 35:m&&(t.riverType=m);case 36:case"end":return e.stop()}}),e)})))()},asyncData:function(){return Object(l.a)(regeneratorRuntime.mark((function t(){var e,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,m()({method:"get",url:"".concat("https://nabi.104.com.tw","/static/json/subjects_explains.json")});case 3:return e=t.sent,r=e.data,t.abrupt("return",{topicList:Object(o.a)(r)});case 8:return t.prev=8,t.t0=t.catch(0),t.abrupt("return",{topicList:[]});case 11:case"end":return t.stop()}}),t,null,[[0,8]])})))()},data:function(){return{hot:{course:[],activity:[],initial:!1,loading:!1},recommend:{course_list:[],order_list:[],post_list:[],initial:!1,loading:!1},subscribe:{data:[],showInitPage:!1,fixedBar:!1,initial:!1,loading:!1},riverType:"",promoteList:{promiteInitial:!1,showStart:1,promoteData:[],next:1,last:!1},hotRoomListData:{data:[],next:1,last:!1,loading:!1},recommendByJobcatSkillRoomListData:{data:[],next:1,last:!1,loading:!1},userInfo:{},topicList:[],hint:{title:"",msg:"",confirmText:"",cancelText:"",noCancel:!1,noConfirm:!1,noXBtn:!1},skillList:[],lastScrollTop:0,scrollDirection:1}},computed:J(J(J({},Object(_.e)("updatelist",["activityUpdate","taiwinUpdate","thirdUpdate","roomUpdate"])),Object(_.c)(["isLogin"])),{},{riverLoading:function(){return"hot"===this.riverType?this.hot.loading:"recommend"===this.riverType?this.recommend.loading:"subscribe"===this.riverType&&this.subscribe.loading},resourceList:function(){var t=[];if("hot"===this.riverType)for(var e=0,r=this.hot.course.length,n=this.hot.activity.length;e<r||e<n;)e<n&&t.push(this.hot.activity[e]),e<r&&t.push(this.hot.course[e]),e+=1;if("recommend"===this.riverType){var c=this.recommend,l=c.order_list,d=void 0===l?[]:l,m=c.post_list,f=void 0===m?[]:m,v=c.course_list,h=void 0===v?[]:v;t=d.map((function(t){return t.startsWith("nabi_post")?f.find((function(p){return p.key===t})):h.find((function(e){return e.resource_id===t}))}))}return"subscribe"===this.riverType&&(t=Object(o.a)(this.subscribe.data)),t},recommendRoom:function(){var t=[];if((t=this.isLogin?[].concat(Object(o.a)(this.promoteList.promoteData),Object(o.a)(this.recommendByJobcatSkillRoomListData.data)).filter((function(t){return!1===t.is_favorite})):[].concat(Object(o.a)(this.promoteList.promoteData),Object(o.a)(this.hotRoomListData.data)).filter((function(t){return!1===t.is_favorite}))).length<=3)return Object(o.a)(t);var e=this.promoteList.showStart+2;if(e<=t.length)return t.slice(this.promoteList.showStart-1,this.promoteList.showStart+2);var r=e%t.length;return 0===r?[t[t.length-3],t[t.length-2],t[t.length-1]]:1===r?[t[t.length-2],t[t.length-1],t[0]]:2===r?[t[t.length-1],t[0],t[1]]:[t[r-3],t[r-2],t[r-1]]},tabList:function(){var t=this.userInfo,e=t.viewlog_state,r=t.coldstart_state,n=[];return this.isLogin&&(e||1===r)&&n.push({type:"recommend",name:"推薦"}),this.isLogin&&n.push({type:"subscribe",name:"關注"}),n.push({type:"hot",name:"熱門"}),n},showInitPage:function(){return"subscribe"===this.riverType&&this.subscribe.showInitPage},favoriteRoomListCount:function(){var t=this.promoteList.promoteData,e=void 0===t?[]:t,r=this.hotRoomListData.data,n=void 0===r?[]:r,c=this.recommendByJobcatSkillRoomListData.data,l=void 0===c?[]:c;return[].concat(Object(o.a)(e),Object(o.a)(n),Object(o.a)(l)).filter((function(t){return!0===t.is_favorite})).length},tabListTop:function(){return 1===this.scrollDirection?44:((null===(t=this.$refs.BigClassNavBar)||void 0===t||null===(t=t.$el)||void 0===t||null===(t=t.querySelector(".bigClassContainer"))||void 0===t?void 0:t.offsetHeight)||0)+44;var t}}),watch:{$route:{handler:function(t,e){var r=this;return Object(l.a)(regeneratorRuntime.mark((function n(){var o,c,l,d,m,f,v,h,_,k,x;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(t.path.startsWith("/feed")){n.next=2;break}return n.abrupt("return");case 2:if(o=r.$nuxt.context,c=o.redirect,l=o.query,!e||e.path.startsWith("/feed")){n.next=7;break}if(!r.riverType){n.next=7;break}return c("/feed/".concat(r.riverType),J({},l)),n.abrupt("return");case 7:if(d=t.params,m=d.type){n.next=32;break}if(r.isLogin){n.next=15;break}return c("/feed/hot",J({},l)),n.abrupt("return");case 15:if(!r.isLogin){n.next=30;break}if(f=r.userInfo,v=f.coldstart_state,(h=f.viewlog_state)||0!==v){n.next=22;break}return c("/feed/start",J({},l)),n.abrupt("return");case 22:if(!h&&1!==v||"recommend"===m||"subscribe"===m||"hot"===m){n.next=27;break}return c("/feed/recommend",J({},l)),n.abrupt("return");case 27:if(h||2!==v||"hot"===m||"subscribe"===m){n.next=30;break}return c("/feed/hot",J({},l)),n.abrupt("return");case 30:n.next=43;break;case 32:if(r.riverType=m,"hot"!==m||r.hot.initial){n.next=36;break}return n.next=36,r.fetchHot();case 36:if("recommend"!==m||r.recommend.initial){n.next=39;break}return n.next=39,r.getRecommend();case 39:if("subscribe"!==m||r.subscribe.initial){n.next=42;break}return n.next=42,r.getSubscribe();case 42:r.$scrollTo("body",0);case 43:if("subscribe"!==m){n.next=49;break}if(_=r.$getLocalStorage("feedSubscribe")||{},k=_.isfirst,x=void 0===k||k,!r.subscribe.showInitPage||!x){n.next=49;break}return n.next=48,r.$refs.feedSubscribeModal.openModal();case 48:r.$setLocalStorage("feedSubscribe",{isfirst:!1});case 49:case"end":return n.stop()}}),n)})))()},deep:!0},activityUpdate:function(t){},taiwinUpdate:function(){},thirdUpdate:function(){},roomUpdate:function(){this.roomUpdateProcess()}},mounted:function(){window.addEventListener("scroll",this.handleScroll)},beforeDestroy:function(){window.removeEventListener("scroll",this.handleScroll)},methods:J(J(J({},Object(_.b)("user",["updateFavorite"])),Object(_.b)("updatelist",["getActivityUpdate","getTaiwainUpdate","getThirdUpdate","getRoomUpdate"])),{},{toClassroom:function(){this.$router.push("/classroom")},roomClick:function(data){var t=data.room_id;this.$router.push("/room/".concat(t))},toLogin:function(){var t=this.$route.fullPath.split("?")[1];window.location.href="/oidc/login?next=".concat(encodeURIComponent("/feed".concat(t?"?".concat(t):"")))},fetchHot:function(){var t=this;return Object(l.a)(regeneratorRuntime.mark((function e(){var r,c,d,m;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.hot.loading=!0,e.next=3,Promise.all([Object(l.a)(regeneratorRuntime.mark((function e(){var r,n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$api.wall.getCourseByCenterAll({start:1,size:50});case 2:return r=e.sent,n=r.result,o=void 0===n?[]:n,e.abrupt("return",o);case 6:case"end":return e.stop()}}),e)})))(),Object(l.a)(regeneratorRuntime.mark((function e(){var r,n,data;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$api.wall.getActivityHot({size:50});case 2:return r=e.sent,n=r.data,data=void 0===n?[]:n,e.abrupt("return",data);case 6:case"end":return e.stop()}}),e)})))()]);case 3:r=e.sent,c=Object(n.a)(r,2),d=c[0],m=c[1],t.hot=J(J({},t.hot),{},{course:Object(o.a)(d),activity:Object(o.a)(m)}),t.hot.loading=!1,t.hot.initial=!0;case 10:case"end":return e.stop()}}),e)})))()},getRecommendRoom:function(t){var e=this;return Object(l.a)(regeneratorRuntime.mark((function r(){var n,data,c,l,d,m,f,v,h,_,k,x,y,C,w;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e.promoteList.showStart=t,e.promoteList.promiteInitial){r.next=9;break}return r.next=4,e.$api.cls.getRoomPromoteList();case 4:n=r.sent,data=n.data,c=data.promote_1,l=data.promote_2,e.promoteList.promoteData=[].concat(Object(o.a)(c),Object(o.a)(l)),e.promoteList.promiteInitial=!0;case 9:if(d=[],d=e.isLogin?[].concat(Object(o.a)(e.promoteList.promoteData),Object(o.a)(e.recommendByJobcatSkillRoomListData.data)).filter((function(t){return!1===t.is_favorite})):[].concat(Object(o.a)(e.promoteList.promoteData),Object(o.a)(e.hotRoomListData.data)).filter((function(t){return!1===t.is_favorite})),m=d.length,e.isLogin||e.hotRoomListData.last||!(m-e.promoteList.showStart<5)||e.hotRoomListData.loading){r.next=25;break}return e.hotRoomListData.loading=!0,r.next=16,e.$api.cls.getClassroomList({size:10,start:e.hotRoomListData.next,query_type:4});case 16:f=r.sent,v=f.result,h=f.has_next,_=f.next,e.hotRoomListData.last=!h,e.hotRoomListData.next=_,e.hotRoomListData.data=[].concat(Object(o.a)(e.hotRoomListData.data),Object(o.a)(v)),e.hotRoomListData.loading=!1,e.getRecommendRoom(t);case 25:if(!(e.isLogin&&!e.recommendByJobcatSkillRoomListData.last&&m-e.promoteList.showStart<5)||e.recommendByJobcatSkillRoomListData.loading){r.next=39;break}return e.recommendByJobcatSkillRoomListData.loading=!0,k=e.skillList.map((function(t){return t.capability})),r.next=30,e.$api.cls.getRoomRecommends({size:10,start:e.recommendByJobcatSkillRoomListData.next,tags:k});case 30:x=r.sent,y=x.result,C=x.has_next,w=x.next,e.recommendByJobcatSkillRoomListData.last=!C,e.recommendByJobcatSkillRoomListData.next=w,e.recommendByJobcatSkillRoomListData.data=[].concat(Object(o.a)(e.recommendByJobcatSkillRoomListData.data),Object(o.a)(y)),e.recommendByJobcatSkillRoomListData.loading=!1,e.getRecommendRoom(t);case 39:case"end":return r.stop()}}),r)})))()},getRecommend:function(){var t=this;return Object(l.a)(regeneratorRuntime.mark((function e(){var r,n,o,c,l,data,d,m,f;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.isLogin){e.next=2;break}return e.abrupt("return");case 2:if(t.recommend.loading=!0,r=t.userInfo,n=r.viewlog_state,o=r.coldstart_state,c=r.coldstart_themes,!n){e.next=12;break}return e.next=7,t.$api.wall.getPersonalizedRecommend({});case 7:l=e.sent,data=l.data,t.recommend=data,e.next=20;break;case 12:if(1!==o){e.next=20;break}return d=(d=c.map((function(e){var r=t.topicList.find((function(t){return t.subject===e}));if(r)return{subject:r.subject,description:r.explain}}))).filter((function(t){return!!t})),e.next=17,t.$api.wall.getColdstartRecommend({themes:d});case 17:m=e.sent,f=m.data,t.recommend=f;case 20:t.recommend.loading=!1,t.recommend.initial=!0;case 22:case"end":return e.stop()}}),e)})))()},getSubscribe:function(){var t=this;return Object(l.a)(regeneratorRuntime.mark((function e(){var r,n,c,l,d,m,f,v,h,_,k;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.isLogin){e.next=34;break}return t.subscribe.loading=!0,e.next=4,t.$api.user.getUserAllFavorClassroom();case 4:if(r=e.sent,0!==r.filter((function(t){return 2===t.room_type})).length){e.next=24;break}if(t.subscribe.showInitPage=!0,t.recommendByJobcatSkillRoomListData.last||!(t.recommendByJobcatSkillRoomListData.data.length<9)||t.recommendByJobcatSkillRoomListData.loading){e.next=22;break}return t.recommendByJobcatSkillRoomListData.loading=!0,n=t.skillList.map((function(t){return t.capability})),e.next=13,t.$api.cls.getRoomRecommends({size:9,start:t.recommendByJobcatSkillRoomListData.next,tags:n});case 13:c=e.sent,l=c.result,d=void 0===l?[]:l,m=c.has_next,f=c.next,t.recommendByJobcatSkillRoomListData.data=[].concat(Object(o.a)(t.recommendByJobcatSkillRoomListData.data),Object(o.a)(d)),t.recommendByJobcatSkillRoomListData.last=!m,t.recommendByJobcatSkillRoomListData.next=f,t.recommendByJobcatSkillRoomListData.loading=!1;case 22:e.next=32;break;case 24:return t.subscribe.showInitPage=!1,e.next=27,t.$api.wall.getFavoriteRoomsActivityList({size:50,start:1});case 27:v=e.sent,h=v.data,_=(void 0===h?{}:h).result,k=void 0===_?[]:_,t.subscribe.data=Object(o.a)(k);case 32:t.subscribe.loading=!1,t.subscribe.initial=!0;case 34:case"end":return e.stop()}}),e)})))()},changeTab:function(t){this.$router.push("/feed/".concat(t))},handleScroll:function(t){var e=document.documentElement.scrollTop;e>this.lastScrollTop&&(this.scrollDirection=1),e<this.lastScrollTop&&(this.scrollDirection=0),this.lastScrollTop=e;var r=(window.innerWidth>0?window.innerWidth:screen.width)>1023?220:120;window.scrollY>r?this.subscribe.fixedBar=!0:this.subscribe.fixedBar=!1},clickFavorite:function(t,e){var r=this;return Object(l.a)(regeneratorRuntime.mark((function n(){var o,c,l,d,m,f,v,h,_,k,x,y,C,w,O,j,R,L,B,S,D,$,P;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r.isLogin){n.next=8;break}return o={title:"Hi 我們先登入好嗎？",msg:"收藏需要登入才能使用喔～",confirmText:"確定",cancelText:"取消",noCancel:!1,noConfirm:!1,noXBtn:!1},r.hint=o,n.next=5,r.$refs.hint.openModal();case 5:return n.sent&&r.toLogin(),n.abrupt("return");case 8:if(c=t.resourceType,l=void 0===c?"":c,d=t.favorite,m=t.type,f=t.key,v=t.resourceId,"activity"!==l){n.next=36;break}if(!d){n.next=23;break}return n.prev=11,n.next=14,r.$api.wall.deleteActivityFavorite({activity_type:m,activity_key:f});case 14:r.$toast.show("已移除收藏囉！"),n.next=21;break;case 17:return n.prev=17,n.t0=n.catch(11),r.$toast.show("移除收藏失敗！"),n.abrupt("return");case 21:n.next=34;break;case 23:if(d){n.next=34;break}return n.prev=24,n.next=27,r.$api.wall.addActivityFavorite({activity_type:m,activity_key:f});case 27:r.$toast.show('已收藏至<a href="/mynabi/saving" class="text-white" style="text-decoration: underline">我的收藏</a>！'),n.next=34;break;case 30:return n.prev=30,n.t1=n.catch(24),r.$toast.show("收藏失敗！"),n.abrupt("return");case 34:n.next=51;break;case 36:if("course"!==l){n.next=51;break}return _={resourceId:v,favoriteState:h=d?"0":"1"},n.prev=39,n.next=42,r.updateFavorite(_);case 42:"1"===h&&r.$toast.show('已收藏至<a href="/mynabi/saving" class="text-white" style="text-decoration: underline">我的收藏</a>！'),"0"===h&&r.$toast.show("已移除收藏囉！"),n.next=51;break;case 46:return n.prev=46,n.t2=n.catch(39),"1"===h&&r.$toast.show("收藏失敗！"),"0"===h&&r.$toast.show("移除收藏失敗！"),n.abrupt("return",n.t2);case 51:"course"===l?(k=r.hot.course,(y=(x=void 0===k?[]:k).findIndex((function(t){var e=t.resource_id;return(void 0===e?"":e)===v})))>-1&&(x[y].is_favorite=!d),C=r.recommend.course_list,(y=(w=void 0===C?[]:C).findIndex((function(t){var e=t.resource_id;return(void 0===e?"":e)===v})))>-1&&(w[y].is_favorite=!d),O=r.subscribe.data,(y=(j=void 0===O?[]:O).findIndex((function(t){var e=t.resource_id;return(void 0===e?"":e)===v})))>-1&&(j[y].is_favorite=!d)):"activity"===l&&(R=r.hot.activity,(B=(L=void 0===R?[]:R).findIndex((function(t){var e=t.key;return(void 0===e?"":e)===f})))>-1&&(L[B].social_do.favorite=!d,L[B].social_count.favorite+=d?-1:1),S=r.recommend.post_list,(B=(D=void 0===S?[]:S).findIndex((function(t){var e=t.key;return(void 0===e?"":e)===f})))>-1&&(D[B].social_do.favorite=!d,D[B].social_count.favorite+=d?-1:1),$=r.subscribe.data,(B=(P=void 0===$?[]:$).findIndex((function(t){var e=t.key;return(void 0===e?"":e)===f})))>-1&&(P[B].social_do.favorite=!d,P[B].social_count.favorite+=d?-1:1)),e&&e();case 53:case"end":return n.stop()}}),n,null,[[11,17],[24,30],[39,46]])})))()},handlerEventClassroom:function(t,e){var r=this;return Object(l.a)(regeneratorRuntime.mark((function n(){var o,c,l,d,m,f,v,h,_,k,x,y,C,w,O,j,R,L;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r.isLogin){n.next=8;break}return o={title:"Hi 我們先登入好嗎？",msg:"關注需要登入才能使用喔～",confirmText:"確定",cancelText:"取消",noCancel:!1,noConfirm:!1,noXBtn:!1},r.hint=o,n.next=5,r.$refs.hint.openModal();case 5:return n.sent&&r.toLogin(),n.abrupt("return");case 8:if(c=t.room_id,l=t.is_favorite,d=t.room_type,n.prev=9,!l){n.next=29;break}if(2!==d){n.next=14;break}return n.next=14,r.$api.cls.cancelRoomFavorite({roomId:c});case 14:if(1!==d){n.next=17;break}return n.next=17,r.$api.user.updateSkillFavorite({capabilityId:String(c),favoriteState:"0"});case 17:m=r.promoteList.promoteData,(v=(f=void 0===m?[]:m).findIndex((function(t){var e=t.room_id;return(void 0===e?"":e)===c})))>-1&&(f[v].is_favorite=!l,f[v].favorite_count+=-1),h=r.hotRoomListData.data,(v=(_=void 0===h?[]:h).findIndex((function(t){var e=t.room_id;return(void 0===e?"":e)===c})))>-1&&(_[v].is_favorite=!l,_[v].favorite_count+=-1),k=r.recommendByJobcatSkillRoomListData.data,(v=(x=void 0===k?[]:k).findIndex((function(t){var e=t.room_id;return(void 0===e?"":e)===c})))>-1&&(x[v].is_favorite=!l,x[v].favorite_count+=-1),r.$toast.show("已取消關注囉！"),n.next=45;break;case 29:if(2!==d){n.next=32;break}return n.next=32,r.$api.cls.setRoomFavorite({room_id:c});case 32:if(1!==d){n.next=35;break}return n.next=35,r.$api.user.updateSkillFavorite({capabilityId:String(c),favoriteState:"1"});case 35:y=r.promoteList.promoteData,(w=(C=void 0===y?[]:y).findIndex((function(t){var e=t.room_id;return(void 0===e?"":e)===c})))>-1&&(C[w].is_favorite=!l,C[w].favorite_count+=1),O=r.hotRoomListData.data,(w=(j=void 0===O?[]:O).findIndex((function(t){var e=t.room_id;return(void 0===e?"":e)===c})))>-1&&(j[w].is_favorite=!l,j[w].favorite_count+=1),R=r.recommendByJobcatSkillRoomListData.data,(w=(L=void 0===R?[]:R).findIndex((function(t){var e=t.room_id;return(void 0===e?"":e)===c})))>-1&&(L[w].is_favorite=!l,L[w].favorite_count+=1),r.$toast.show('已關注到<a href="/mynabi/classroom" class="text-white" style="text-decoration: underline">我的教室</a>！');case 45:e&&e(),n.next=51;break;case 48:n.prev=48,n.t0=n.catch(9),console.log(n.t0);case 51:case"end":return n.stop()}}),n,null,[[9,48]])})))()},roomUpdateProcess:function(){var t=this;return Object(l.a)(regeneratorRuntime.mark((function e(){var r,n,o,c,l,d,m,f,v,h,_,k,x,y,C,w,O,j;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=t.promoteList.promoteData,n=void 0===r?[]:r,o=0;case 2:if(!(o<n.length)){e.next=16;break}if(!(c=n[o])){e.next=10;break}return e.next=7,t.getRoomUpdate(c.room_id);case 7:e.t0=e.sent,e.next=11;break;case 10:e.t0=void 0;case 11:(l=e.t0)&&(d=t.$deepUpdate(c,l),P.default.set(t.promoteList.promoteData,o,d));case 13:o++,e.next=2;break;case 16:m=t.hotRoomListData.data,f=void 0===m?[]:m,v=0;case 18:if(!(v<f.length)){e.next=32;break}if(!(h=f[v])){e.next=26;break}return e.next=23,t.getRoomUpdate(h.room_id);case 23:e.t1=e.sent,e.next=27;break;case 26:e.t1=void 0;case 27:(_=e.t1)&&(k=t.$deepUpdate(h,_),P.default.set(t.hotRoomListData.data,v,k));case 29:v++,e.next=18;break;case 32:x=t.recommendByJobcatSkillRoomListData.data,y=void 0===x?[]:x,C=0;case 34:if(!(C<y.length)){e.next=48;break}if(!(w=y[C])){e.next=42;break}return e.next=39,t.getRoomUpdate(w.room_id);case 39:e.t2=e.sent,e.next=43;break;case 42:e.t2=void 0;case 43:(O=e.t2)&&(j=t.$deepUpdate(w,O),P.default.set(t.recommendByJobcatSkillRoomListData.data,C,j));case 45:C++,e.next=34;break;case 48:case"end":return e.stop()}}),e)})))()}})},M=(r(2029),Object(j.a)(T,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"newFeed"},[e("SeoContainer"),t._v(" "),e("BigClassNavBar",{ref:"BigClassNavBar",attrs:{"no-fixed":1===t.scrollDirection,"hide-announcement-fiexed":!0}}),t._v(" "),e("div",{staticClass:"pageContainer bigClass"},[e("div",{staticClass:"leftContainer"},[e("div",{staticClass:"flexBox"},[e("div",{ref:"tabList",staticClass:"tabList",style:{top:"".concat(t.tabListTop,"px")}},t._l(t.tabList,(function(r){return e("span",{key:r.type,staticClass:"tab",class:{active:t.$nuxt.context.params.type===r.type},on:{click:function(e){return t.changeTab(r.type)}}},[t._v(t._s(r.name))])})),0),t._v(" "),t.showInitPage?"subscribe"===t.$nuxt.context.params.type?e("div",{staticClass:"subscribeInit"},[e("div",{staticClass:"headerBox"},[e("img",{staticClass:"bk_Bunny_04",attrs:{src:r(685),alt:""}}),t._v(" "),e("img",{staticClass:"bk_Group_14",attrs:{src:r(686),alt:""}}),t._v(" "),t.favoriteRoomListCount<3?e("div",{staticClass:"hintBox"},[t._v("\n                            關注 3 間教室，即可查看教室最新動態\n                        ")]):e("div",{staticClass:"hintBox go",attrs:{"data-gtm-btn":"查看教室最新動態"},on:{click:function(e){return t.getSubscribe()}}},[t._v("\n                            馬上看教室最新動態\n                        ")])]),t._v(" "),e("div",{staticClass:"promote"},[e("div",{staticClass:"titleBlock"},[e("span",{staticClass:"title"},[t._v("精選推薦")]),e("span",{staticClass:"subTitle"},[t._v("內容優質又豐富的教室")])]),t._v(" "),e("div",{staticClass:"roomList"},t._l(t.promoteList.promoteData.slice(0,3),(function(r){return e("router-link",{key:r.room_title,attrs:{to:"/room/".concat(r.room_id)}},[e("RoomCardRow",{attrs:{resource:r},on:{"click-favorite":t.handlerEventClassroom}})],1)})),1)]),t._v(" "),e("div",{staticClass:"promote"},[e("div",{staticClass:"titleBlock"},[e("span",{staticClass:"title"},[t._v("猜你喜歡")]),e("span",{staticClass:"subTitle"},[t._v("從你的工作推薦")])]),t._v(" "),e("div",{staticClass:"roomList"},t._l(t.recommendByJobcatSkillRoomListData.data.slice(0,9),(function(r){return e("router-link",{key:r.room_title,attrs:{to:"/room/".concat(r.room_id)}},[e("RoomCardRow",{attrs:{resource:r},on:{"click-favorite":t.handlerEventClassroom}})],1)})),1)]),t._v(" "),e("Button",{staticClass:"bkTransparent_fontGray",attrs:{msg:"查看所有教室"},on:{click:t.toClassroom}}),t._v(" "),e("div",{staticClass:"fixedBar",class:{fixed:t.subscribe.fixedBar}},[t.favoriteRoomListCount<3?e("div",{staticClass:"hintBox"},[t._v("\n                            關注 3 間教室，即可查看教室最新動態\n                        ")]):e("div",{staticClass:"hintBox go",attrs:{"data-gtm-btn":"查看教室最新動態"},on:{click:function(e){return t.getSubscribe()}}},[t._v("\n                            馬上看教室最新動態\n                        ")])])],1):t._e():e("nuxt-child",{key:t.$nuxt.context.params.type,attrs:{"resource-list":t.resourceList,"keep-alive":""},on:{"click-favorite":t.clickFavorite,"room-click":t.roomClick}}),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:t.riverLoading,expression:"riverLoading"}],staticClass:"loading"},[e("img",{staticClass:"loader-icon w-100 m-0",attrs:{src:r(375)}})])],1),t._v(" "),t.isLogin?t._e():e("div",{staticClass:"maskBlock"},[e("img",{staticClass:"bk",attrs:{src:r(824),alt:""}}),t._v(" "),e("img",{staticClass:"bk-md",attrs:{src:r(823),alt:""}}),t._v(" "),e("img",{staticClass:"feedMaskImgLeft",attrs:{src:r(822),alt:""}}),t._v(" "),e("img",{staticClass:"feedMaskImgRight",attrs:{src:r(821),alt:""}}),t._v(" "),e("div",{staticClass:"contentBox"},[e("div",{staticClass:"title"},[t._v("登入查看專屬你的學習資源")]),t._v(" "),t._m(0),t._v(" "),e("Button",{staticClass:"bkOrange_fontWhite",attrs:{msg:"馬上登入"},on:{click:t.toLogin}})],1)])]),t._v(" "),e("div",{staticClass:"rightContainer"},[e("div",{directives:[{name:"show",rawName:"v-show",value:!("subscribe"===t.riverType&&t.showInitPage)||0===t.recommendRoom.length,expression:"\n                    !(riverType === 'subscribe' && showInitPage) || recommendRoom.length === 0\n                "}],staticClass:"followContainer"},[e("div",{staticClass:"headerBlock"},[e("div",{staticClass:"title"},[t._v("值得關注")]),t._v(" "),e("div",{staticClass:"more",attrs:{"data-gtm-btn":"首頁_值得推薦_換一批"},on:{click:function(e){return t.getRecommendRoom(t.promoteList.showStart+3)}}},[t._v("\n                        換一批\n                    ")])]),t._v(" "),e("div",{staticClass:"contentBlock"},t._l(t.recommendRoom,(function(r){return e("router-link",{key:r.room_id,attrs:{to:"/room/".concat(r.room_id)}},[e("RoomCardRow",{staticClass:"item",attrs:{resource:r},on:{"click-favorite":t.handlerEventClassroom},scopedSlots:t._u([{key:"default",fn:function(n){var o=n.clickFavorite;return[e("Img",{attrs:{"data-gtm-content":"room","img-src":r.photo_small_file_url,"onerror-img":t.$getDefaultImgByHash(r.room_title)}}),t._v(" "),e("div",{staticClass:"content",attrs:{"data-gtm-content":"room"}},[e("div",{staticClass:"title"},[t._v(t._s(r.room_title))]),t._v(" "),e("div",{staticClass:"desc"},[t._v(t._s(r.description))])]),t._v(" "),e("div",{staticClass:"followBlock"},[e("span",{staticClass:"follow",attrs:{"data-gtm-btn":"關注"},on:{click:function(t){return t.preventDefault(),o.apply(null,arguments)}}},[t._v(t._s(r.is_favorite?"已關注":"關注"))])])]}}],null,!0)})],1)})),1)])]),t._v(" "),e("FeedSubscribeModal",{ref:"feedSubscribeModal"}),t._v(" "),e("MessageBox",{ref:"hint",attrs:{title:t.hint.title,msg:t.hint.msg,"confirm-text":t.hint.confirmText,"cancel-text":t.hint.cancelText,"no-cancel":t.hint.noCancel,"no-confirm":t.hint.noConfirm,"no-x-btn":t.hint.noXBtn}})],1)],1)}),[function(){var t=this,e=t._self._c;return e("div",{staticClass:"contentInfo"},[e("div",{staticClass:"content"},[t._v("只推薦你想學的內容")]),t._v(" "),e("div",{staticClass:"content"},[t._v("隨時隨地觀看、學習")]),t._v(" "),e("div",{staticClass:"content"},[t._v("找到適合你的課程")])])}],!1,null,"a6231b5e",null));e.default=M.exports},558:function(t,e,r){"use strict";r(74),r(14),r(13),r(11),r(8),r(15),r(10),r(16);var n=r(5),o=r(3),c=(r(54),r(65),r(27),r(36)),l=r(257),d=r(567);function m(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function f(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?m(Object(r),!0).forEach((function(e){Object(o.a)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var v=r(39)("src/client/components/page/BigClassroom/BigClassNavBar.vue").error,h={components:{BulletinModal:l.a},props:{noFixed:{type:Boolean,default:function(){return!1}},hideAnnouncementFiexed:{type:Boolean,default:function(){return!1}}},data:function(){return{isShowBulletinModal:!1,bulletinModalContent:{},announcementShow:!1,onlineBulletin:{},hideAnnouncement:!1}},computed:f(f({},Object(c.e)("user",["hadFavorRoom"])),{},{classroomName:function(){var t=String(this.cjcatKey.jobcat||"");return d.a[t.substr(0,7)]||"職業教室"},routePath:function(){return this.$route.path}}),fetch:function(){var t=this;return Object(n.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.checkHadFavorRoom();case 2:case"end":return e.stop()}}),e)})))()},mounted:function(){this.checkAnnouncement()},beforeDestroy:function(){window.removeEventListener("scroll",this.handleScroll),this.setBigClassNavIsHandle(!1)},beforeMount:function(){var t=this;setTimeout((function(){window.addEventListener("scroll",t.handleScroll),t.setBigClassNavIsHandle(!0)}),1e3)},methods:f(f(f({},Object(c.d)(["setBigClassNavIsHandle"])),Object(c.b)("user",["checkHadFavorRoom"])),{},{checkAnnouncement:function(){var t=this;return Object(n.a)(regeneratorRuntime.mark((function e(){var r,n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$api.nabi.getOnlineBulletin();case 2:r=e.sent,n=new Date(Number(r.updateTime)),o=new Date(Number(t.$cookies.get("announcement")||0)),n>o&&(t.onlineBulletin=r,t.announcementShow=!0);case 6:case"end":return e.stop()}}),e)})))()},closeAnnouncement:function(){this.$cookies.set("announcement",Date.now()),this.$data.announcementShow=!1},bulletin_show:function(t){var e=this;return Object(n.a)(regeneratorRuntime.mark((function r(){var n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,e.$api.nabi.getBulletin(t.bulletinId);case 3:n=r.sent,e.openBulletinModal(n),r.next=10;break;case 7:r.prev=7,r.t0=r.catch(0),v("error on show bulletin",r.t0);case 10:case"end":return r.stop()}}),r,null,[[0,7]])})))()},openBulletinModal:function(content){this.bulletinModalContent=content,this.isShowBulletinModal=!0},handleScroll:function(t){var e=document.getElementsByClassName("bigClass")[0],r=document.getElementById("bigClassNavBar"),n=document.getElementById("heybarContainer"),o=n.offsetHeight?n.offsetHeight:0,c=document.getElementById("addShadow");r&&e&&((t.target.scrollTop>10||window.scrollY>10)&&!this.noFixed?(r.style.position="fixed",r.style.width="calc(100% - var(--scrollBarWidth))",r.classList.add("fixedMode"),n&&(r.style.top=o+"px"),this.announcementShow?e.style.paddingTop="88px":e.style.paddingTop="52px",this.hideAnnouncementFiexed&&(this.hideAnnouncement=!0)):(r.style.position="relative",r.style.width="100%",r.classList.remove("fixedMode"),n&&(r.style.top="0px"),e.style.paddingTop="0px",c&&(c.style.display="block"),this.hideAnnouncement=!1))}})},_=(r(568),r(38)),component=Object(_.a)(h,(function(){var t=this,e=t._self._c;return e("div",{ref:"bigClassNavBar",staticClass:"bigClassNavBar",attrs:{id:"bigClassNavBar"}},[t.announcementShow&&!t.hideAnnouncement?e("div",{ref:"announcement",staticClass:"announcement"},[e("span",[t._v(t._s(t.onlineBulletin.subject)+"\n            "),e("span",{staticClass:"link",on:{click:function(e){return t.openBulletinModal(t.onlineBulletin)}}},[t._v("了解更多")])]),t._v(" "),e("i",{on:{click:t.closeAnnouncement}}),t._v(" "),e("div",{attrs:{id:"addShadow"}})]):t._e(),t._v(" "),e("div",{staticClass:"bigClassContainer d-flex align-items-center pt-0"},[e("div",{staticClass:"bigClassNavBarWrap"},[e("router-link",{staticClass:"bigClassNavBar--link feed",class:{"bigClassNavBar--link-active":t.routePath.startsWith("/feed")},attrs:{to:"/feed","aria-label":"feed"}}),t._v(" "),e("router-link",{staticClass:"bigClassNavBar--link course",class:{"bigClassNavBar--link-active":"/course"===t.routePath},attrs:{to:"/course","aria-label":"course"}},[e("div",{staticClass:"isHint"})]),t._v(" "),e("router-link",{staticClass:"bigClassNavBar--link classroom",class:{"bigClassNavBar--link-active":"/classroom"===t.routePath},attrs:{to:"/classroom","aria-label":"classroom"}}),t._v(" "),e("router-link",{staticClass:"bigClassNavBar--link certify",class:{"bigClassNavBar--link-active":"/certify"===t.routePath},attrs:{to:"/certify","aria-label":"certify"}})],1)]),t._v(" "),e("BulletinModal",t._b({attrs:{"is-show":t.isShowBulletinModal,title:"系統通知"},on:{"click-close":function(e){t.isShowBulletinModal=!1}}},"BulletinModal",t.bulletinModalContent,!1))],1)}),[],!1,null,"e65a4f44",null);e.a=component.exports},560:function(t,e,r){t.exports={}},562:function(t,e,r){t.exports={}},567:function(t,e,r){"use strict";r.d(e,"a",(function(){return n})),r.d(e,"b",(function(){return o}));var n={2001001:"經營教室",2001002:"人資教室",2002001:"行政教室",2002002:"法務教室",2003001:"財會教室",2003002:"金融教室",2004001:"行銷教室",2004002:"企劃教室",2004003:"專案教室",2005001:"客服教室",2005002:"門市教室",2005003:"業務教室",2005004:"貿易教室",2006001:"餐飲教室",2006002:"休閒教室",2006003:"美容教室",2007001:"軟體教室",2007002:"網管教室",2008001:"研發教室",2008002:"化材教室",2008003:"生技教室",2009001:"生管教室",2009002:"製程教室",2009003:"品管教室",2009004:"環安教室",2010001:"技術教室",2010002:"維修教室",2011001:"採購教室",2011002:"物流教室",2012001:"營建教室",2012002:"營造教室",2012003:"製圖教室",2013001:"設計教室",2013002:"傳播教室",2014001:"編輯教室",2014002:"記者教室",2015001:"醫療教室",2015002:"保健教室",2016001:"學術教室",2016002:"輔導教室",2017001:"軍警消教室",2017002:"保全教室",2018001:"農牧教室",2018002:"職業教室","":"職業教室"},o=[{2004001:"行銷推廣"},{2007001:"軟體工程"},{2004002:"產品企劃"},{2013002:"傳播藝術"},{2001002:"人力資源"},{2016001:"學術研究"},{2002001:"行政總務"},{2010001:"技術操作"},{2005003:"業務銷售"},{2013001:"設計美編"},{2007002:"資訊網管"},{2014001:"文字編譯"},{2009003:"品保品管"},{2016002:"教育輔導"},{2014002:"記者採訪"},{2004003:"專案管理"},{2008001:"工程研發"},{2003002:"金融專業"},{2010002:"維修技術"},{2001001:"經營幕僚"},{2012003:"製圖測量"},{2003001:"財稅會計"},{2005002:"門市營業"},{2006002:"旅遊休閒"},{2012002:"營建施作"},{2005001:"客戶服務"},{2009001:"生產管理"},{2015001:"醫療專業"},{2011001:"採購倉管"},{2011002:"運輸物流"},{2012001:"營建規劃"},{2006001:"餐飲廚師"},{2009002:"製程規劃"},{2002002:"法務智財"},{2015002:"醫療保健"},{2009004:"環境衛生"},{2008003:"生技醫療"},{2006003:"美容美髮"},{2005004:"貿易船務"},{2017002:"保全管理"},{2018001:"農林漁牧"},{2008002:"化工材料"},{2017001:"軍警消防"},{2018002:"其他"}]},568:function(t,e,r){"use strict";r(560)},569:function(t,e,r){"use strict";r(22),r(14),r(13),r(11),r(8),r(15),r(10),r(16);var n=r(23),o=r(33),c=r(3),l=r(36);function d(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function m(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?d(Object(r),!0).forEach((function(e){Object(c.a)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var f={computed:m(m({},Object(l.e)(["h1","h2","h3"])),{},{h2Data:function(){if(this.h2){if("string"==typeof this.h2)return[this.h2];if("object"===Object(o.a)(this.h2)&&Array.isArray(this.h2))return Object(n.a)(this.h2)}return[]},h3Data:function(){if(this.h3){if("string"==typeof this.h3)return[this.h3];if("object"===Object(o.a)(this.h3)&&Array.isArray(this.h3))return Object(n.a)(this.h3)}return[]}})},v=(r(570),r(38)),component=Object(v.a)(f,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"h1nh2"},[t.h1?e("h1",[t._v(t._s(t.h1))]):t._e(),t._v(" "),t._l(t.h2Data,(function(h2,r){return e("h2",{key:"".concat(h2,"-h2-").concat(r)},[t._v(t._s(h2))])})),t._v(" "),t._l(t.h3Data,(function(h3,r){return e("h3",{key:"".concat(h3,"-h3-").concat(r)},[t._v(t._s(h3))])}))],2)}),[],!1,null,null,null);e.a=component.exports},570:function(t,e,r){"use strict";r(562)},685:function(t,e,r){t.exports=r.p+"img/Bunny_04.1df17d8.png"},686:function(t,e,r){t.exports=r.p+"img/Group 14.69e4498.png"},821:function(t,e,r){t.exports=r.p+"img/feedMaskImg-Right.9cb1956.png"},822:function(t,e,r){t.exports=r.p+"img/feedMaskImg-left.84860d9.png"},823:function(t,e,r){t.exports=r.p+"img/feedMask_1260.bb04087.png"},824:function(t,e,r){t.exports=r.p+"img/feedMask_1440.b95333d.png"},825:function(t,e,r){t.exports=r.p+"img/feedSubscribeModalImgA.86eaa28.png"},826:function(t,e,r){t.exports=r.p+"img/feedSubscribeModalImgB.c106ec5.png"},827:function(t,e,r){t.exports=r.p+"img/feedSubscribeModalImgC.420576e.png"}}]);