1(window.webpackJsonp=window.webpackJsonp||[]).push([[102,54,103,121],{530:function(e,t,r){"use strict";r.r(t);var n={},c=r(0),component=Object(c.a)(n,(function(){var e=this._self._c;return e("div",{staticClass:"flex justify-center my-32 w"},[e("div",{staticClass:"animate-pulse"},[e("Icon",this._b({},"Icon",{icon:"logo",classes:"w-48"},!1))],1)])}),[],!1,null,null,null);t.default=component.exports;installComponents(component,{Icon:r(33).default})},552:function(e,t,r){"use strict";r.r(t);var n={props:{tag:{type:String,default:"h3"}}},c=r(0),component=Object(c.a)(n,(function(){var e=this;return(0,e._self._c)(e.tag,{tag:"component",staticClass:"text-20 lg:text-24 font-semibold leading-lg"},[e._t("default")],2)}),[],!1,null,null,null);t.default=component.exports},679:function(e,t,r){var content=r(723);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,r(29).default)("7e9fa162",content,!0,{sourceMap:!1})},722:function(e,t,r){"use strict";r(679)},723:function(e,t,r){var n=r(28)((function(i){return i[1]}));n.push([e.i,".line[data-v-e0ab666c]{border-color:rgba(var(--color-beta),var(--tw-border-opacity));--tw-border-opacity:1}",""]),n.locals={},e.exports=n},761:function(e,t,r){"use strict";r.r(t);var n=r(6),c=(r(7),r(82),r(45),{props:{streamBlocks:{type:Array}},data:function(){return{activeTeam:null,streamItems:[],fetching:!1}},fetch:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.fetching=!0,e.streamItems=[],r=0;case 3:if(!(r<e.streamBlocks.length)){t.next=14;break}if("LiveStreamItem"!==e.streamBlocks[r].type){t.next=9;break}return t.next=7,e.fetchLiveList(e.streamBlocks[r]);case 7:t.next=11;break;case 9:return t.next=11,e.fetchMediaList(e.streamBlocks[r]);case 11:r++,t.next=3;break;case 14:e.fetching=!1;case 15:case"end":return t.stop()}}),t)})))()},fetchOnServer:!1,computed:{user:function(){return this.$store.getters["auth/user"]},isLoggedIn:function(){return this.$store.getters["auth/isLoggedIn"]},clubs:function(){return this.$store.getters.clubs},translations:function(){return this.$store.getters.translations},userFavoriteClub:function(){var e;return null===(e=this.user)||void 0===e||null===(e=e.metadata)||void 0===e?void 0:e.favoriteClub},hasClosedClubModal:function(){var e;return(null===(e=this.user)||void 0===e||null===(e=e.metadata)||void 0===e?void 0:e.closedClubModal)||!1},totalVideos:function(){return this.streamItems.reduce((function(e,t){return t.items.length+e}),0)}},methods:{fetchMediaList:function(e){var t=this;return Object(n.a)(regeneratorRuntime.mark((function r(){var data,n,c,o;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return data=e.data,n=e.type,r.prev=1,c={mediaType:"1"},data.categoryId&&(c.categoriesIdsMatchAnd=data.categoryId),t.activeTeam&&(c.tagsLike=t.activeTeam),r.next=7,t.$axios.$get("".concat("https://2-division.dk","/api/searchEntry"),{params:c,progress:!1});case 7:o=r.sent,t.streamItems.push({type:n,title:data.title,items:o.objects}),r.next=14;break;case 11:r.prev=11,r.t0=r.catch(1),console.log(r.t0);case 14:case"end":return r.stop()}}),r,null,[[1,11]])})))()},fetchLiveList:function(e){var t=this;return Object(n.a)(regeneratorRuntime.mark((function r(){var data,n,c,o;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return data=e.data,n=e.type,r.prev=1,c={mediaType:"201"},data.categoryId&&(c.categoriesIdsMatchAnd=data.categoryId),t.activeTeam&&(c.tagsLike=t.activeTeam),r.next=7,t.$axios.$get("".concat("https://2-division.dk","/api/searchEntry"),{params:c,progress:!1});case 7:o=r.sent,t.streamItems.push({type:n,title:data.title,items:o.objects}),r.next=14;break;case 11:r.prev=11,r.t0=r.catch(1),console.log(r.t0);case 14:case"end":return r.stop()}}),r,null,[[1,11]])})))()},setActiveTeam:function(e){this.fetching||(this.activeTeam=e,this.$fetch())},userUpdated:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.activeTeam=e.userFavoriteClub,t.next=3,e.$nextTick();case 3:e.$fetch();case 4:case"end":return t.stop()}}),t)})))()}},created:function(){this.userFavoriteClub&&(this.activeTeam=this.userFavoriteClub)},watch:{isLoggedIn:function(e){var t=this;return Object(n.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e||!t.activeTeam){r.next=5;break}return t.activeTeam=null,r.next=4,t.$nextTick();case 4:setTimeout((function(){t.$fetch()}),0);case 5:case"end":return r.stop()}}),r)})))()},userFavoriteClub:function(){this.userUpdated()}}}),o=(r(722),r(0)),component=Object(o.a)(c,(function(){var e=this,t=e._self._c;return t("div",[t("container",[t("div",{staticClass:"mb-12 lg:mb-24"},[t("div",{staticClass:"relative mx-[-20px] md:mx-[-40px] lg:mx-[-60px] xl:mx-0 border-t border-b pt-4 line"},[t("div",{staticClass:"flex justify-between space-x-8 overflow-x-auto flex-nowrap whitespace-nowrap pr-[20px] md:pr-[40px] lg:pr-[60px] xl:pr-0"},[t("a",{staticClass:"flex flex-col items-center flex-shrink-0 transition-colors duration-200 ease-in-out border-b-5 hover:border-secondary ml-[20px] md:ml-[40px] lg:ml-[60px] xl:ml-0",class:{"border-secondary":null===e.activeTeam,"border-tertiary":null!==e.activeTeam,"cursor-wait":e.$fetchState.pending},attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.setActiveTeam(null)}}},[t("div",{staticClass:"w-[60px] h-[60px] rounded-full bg-primary flex justify-center items-center"},[t("Icon",e._b({},"Icon",{icon:"all",classes:"w-5"},!1))],1),e._v(" "),t("div",{staticClass:"pb-2 mt-1 text-black text-10"},[e._v(e._s(e.translations.sso_all))])]),e._v(" "),e._l(e.clubs,(function(r,n){return t("a",{key:n,staticClass:"flex-shrink-0 transition-colors duration-200 ease-in-out border-b-5 hover:border-secondary",class:{"border-secondary":e.activeTeam===r.tagName,"border-tertiary":e.activeTeam!==r.tagName,"cursor-wait":e.$fetchState.pending},attrs:{"data-test":"club-item-".concat(r.tagName),href:"#"},on:{click:function(t){return t.preventDefault(),e.setActiveTeam(r.tagName)}}},[t("ClubThumbnail",e._b({},"ClubThumbnail",{item:r},!1))],1)})),e._v(" "),t("div",{staticClass:"flex-shrink-0 w-1 xl:hidden"})],2)])])]),e._v(" "),e.$fetchState.pending?t("container",[t("div",{staticClass:"relative flex items-center justify-center py-24"},[t("Loader")],1)]):e.$fetchState.error?t("container",[t("p",[e._v("An error occurred :(")]
1)]):t("div",[e.totalVideos?e._l(e.streamItems,(function(r,n){return t(r.type,e._b({key:n,tag:"component"},"component",{title:r.title,items:r.items,activeTeam:e.activeTeam},!1))})):t("container",[t("typo-heading-xs",{staticClass:"text-black"},[e._v("Ingen kampe for den valgte klub")])],1)],2)],1)}),[],!1,null,"e0ab666c",null);t.default=component.exports;installComponents(component,{Icon:r(33).default,ClubThumbnail:r(301).default,Container:r(116).default,Loader:r(530).default,TypoHeadingXs:r(552).default})}}]);
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.