1(window.webpackJsonp=window.webpackJsonp||[]).push([[42],{1008:function(t,e,n){"use strict";n(825)},1133:function(t,e,n){"use strict";n.r(e);n(11),n(8),n(7),n(6),n(10),n(13),n(51),n(18);var o=n(2),r=(n(19),n(21),n(3)),c=n(4),l=n(137),v=n.n(l);function m(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function d(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?m(Object(source),!0).forEach((function(e){Object(r.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):m(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var _={name:"MainNavigation",data:function(){return{pendingActiveTopCategoryId:null,activeTopCategoryId:null,activeCategory:{},loading:!1,fetchFailed:!1,posts:null}},computed:d(d({},Object(c.e)(["page","categories","menuItems"])),{},{newCategories:function(){"".concat(this.page.url,"/videos");var t=v()(this.categories);return["BK-HK","EK-HK"].includes("OT-HK")&&t.unshift({link:"https://www.baby-kingdom.com/forum_home.php",type:"custom_link",name:"è¨è«å",menu_order:0,subcategories:[]}),t}}),methods:d(d(d({},Object(c.b)("articles",["getPostList"])),Object(c.d)(["SET_MENU_EXPAND_SIDEBAR"])),{},{resetActiveCategory:function(){this.activeTopCategoryId=null,this.activeCategory={},this.posts=null},hoverCategory:function(t,e){var n=this;"custom_link"!==t.type&&(e?(this.pendingActiveTopCategoryId=t.id,setTimeout((function(){n.pendingActiveTopCategoryId===t.id&&(n.activeTopCategoryId=t.id,n.initCategory(t))}),this.activeTopCategoryId?0:200)):this.initCategory(t))},initCategory:function(t){t.id!==this.activeCategory.id&&(this.activeCategory=t,this.loading=!1,this.fetchFailed=!1,this.posts=null,this.getPosts(t))},getPosts:function(t){var e=this;return Object(o.a)(regeneratorRuntime.mark((function n(){var o,r;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,e.loading=!0,n.next=4,e.getPostList({limit:4,term:t.id});case 4:o=n.sent,r=o.posts,e.posts=r,n.next=12;break;case 9:n.prev=9,n.t0=n.catch(0),e.fetchFailed=!0;case 12:return n.prev=12,e.loading=!1,n.finish(12);case 15:case"end":return n.stop()}}),n,null,[[0,9,12,15]])})))()},handleMenuClick:function(t,e){"expand_sidebar"===e.action&&this.SET_MENU_EXPAND_SIDEBAR(e);var n=e.order_id;n&&this.$customClick({type:"menu_webpanel",value:n})},getTarget:function(t){return t.link.includes(this.page.url)?"_self":"_blank"},handleClickCategory:function(t,e){var n,o=e?"".concat(e.name," - ").concat(t.name):t.name;null===(n=this.$customClick)||void 0===n||n.call(this,{type:"navigation",value:o})}})},f=(n(1008),n(5)),component=Object(f.a)(_,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"main-navigation",attrs:{id:"main-navigation"},on:{mouseleave:t.resetActiveCategory}},[n("ul",{staticClass:"main-navigation__menu"},[t._l(t.newCategories,(function(e,i){return n("li",{key:i,staticClass:"main-navigation__menu-item"},["custom_link"===e.type?n("a",{staticClass:"main-navigation__menu-link",attrs:{href:e.link,target:t.getTarget(e)},on:{mouseover:function(n){return t.hoverCategory(e,!0)},mouseout:function(e){t.pendingActiveTopCategoryId=null},click:function(n){return t.handleClickCategory(e)}}},[t._v("\n "+t._s(e.name)+"\n ")]):n("nuxt-link",{staticClass:"main-navigation__menu-link",attrs:{to:t.page.path+"/category/"+e.slug},nativeOn:{mouseover:function(n){return t.hoverCategory(e,!0)},mouseout:function(e){t.pendingActiveTopCategoryId=null},click:function(n){return t.handleClickCategory(e)}}},[t._v("\n "+t._s(e.name)+"\n ")]),t._v(" "),n("transition",{attrs:{name:"fade","enter-active-class":"animated fadeIn faster","leave-active-class":"animated fadeOut faster"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.activeTopCategoryId===e.id,expression:"activeTopCategoryId === category.id"}
1],staticClass:"main-navigation__sub-menu-wrap"},[n("ul",{staticClass:"main-navigation__sub-menu"},t._l(e.subcategories,(function(o,r){return n("li",{key:r,staticClass:"main-navigation__sub-menu-item"},[n("nuxt-link",{staticClass:"main-navigation__sub-menu-link",class:{"main-navigation__sub-menu-link--active":t.activeCategory.id===o.id},attrs:{to:t.page.path+"/category/"+o.slug},nativeOn:{mouseover:function(e){return t.hoverCategory(o)},click:function(n){return t.handleClickCategory(o,e)}}},[t._v("\n "+t._s(o.name)+"\n ")])],1)})),0),t._v(" "),t.activeTopCategoryId===e.id?[t.posts?n("PlPostList",{key:"term-post-list-"+t.activeCategory.id,attrs:{posts:t.posts,"error-img":t.$staticHost("/images/[email protected]"),"no-meta":"","no-publish":"","no-preview":"","text-center":"","title-tag":"h2",size:"sm"},on:{click:function(e){t.activeTopCategoryId=null}}}):t.loading||t.fetchFailed?n("div",{staticClass:"main-navigation__sub-menu-status"},[t.loading?n("i",{staticClass:"el-icon-loading"}):t.fetchFailed?n("span",[t._v(t._s(t.$t("post_list.loading_failed")))]):t._e()]):t._e()]:t._e()],2)])],1)})),t._v(" "),t._l(t.menuItems,(function(e){return n("li",{key:"menu-"+e.id,staticClass:"main-navigation__menu-item",on:{mouseover:t.resetActiveCategory}},[n("PlMenuLink",{staticClass:"main-navigation__menu-link",attrs:{item:e,type:"desktop_major"},on:{click:t.handleMenuClick}})],1)}))],2)])}),[],!1,null,null,null);e.default=component.exports},825:function(t,e,n){}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.