Blame view

public/js/dist/028d.ebf3fe8b67249db14806.js 1.91 KB
e77200db5   nologostudio.ru   Initial commit
1
  (window.webpackJsonp=window.webpackJsonp||[]).push([["028d"],{KZ2r:function(e,t,o){"use strict";o("UfGu"),o("mxFJ");angular.module("footyroom").component("frMediaViewer",{templateUrl:"media-viewer-template",bindings:{r16x9:"<"},controller:["mediaEmbedder","mediaData",function(e,t){var o,i=this;function n(t,n){i.selectedMedia=t,e.embed(t,"#video"),o&&o.destroy(),$("#video iframe").length&&window.RollerInlineTag&&(o=new RollerInlineTag("#video iframe","https://pubads.g.doubleclick.net/gampad/ads?sz=575x400&iu=/1873845/FR_Match_Video&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&url=[referrer_url]&description_url="+encodeURIComponent(window.location.href)+"&correlator=[timestamp]")),setTimeout(function(){n&&$("body").scrollTo(".videos-wrap",300)},100)}i.$onInit=function(){t.onSelect(function(e,t){n(e,t)}),i.selectedMedia=t.getSelected(),i.selectedMedia&&n(i.selectedMedia)}}]})},KupW:function(e,t,o){"use strict";o("UfGu");angular.module("footyroom").component("frMediaList",{templateUrl:"media-list-template",controller:["$scope","mediaData",function(e,t){var o=this;function i(e){o.media=_(e).map(function(e){return function(e){e.url&&(e.payload=e.url,delete e.url);void 0===e.payloadType&&(e.payloadType="flash");return e.title=function(e){return"goal"===e.type&&void 0!==e.scorer&&void 0!==e.min?e.label+": "+e.scorer+" on "+e.min+"' minute":"partial"===e.type&&void 0!==e.note?e.note:e.title||e.label}(e),e}(e)}),o.media.length>0&&!o.selectedMedia&&o.showMedia(o.media[0])}o.showMedia=function(e,i){o.selectedMedia=e,t.setSelected(e,i)},o.$onInit=function(){i(t.getMedia()),e.$on("match-media",function(e,t){i(t)})}}]})},UfGu:function(e,t){angular.module("footyroom").service("mediaData",["$window",function(e){var t,o=[];this.getMedia=function(){return e.DataStore.media},this.onSelect=function(e){o.push(e)},this.getSelected=function(){return t},this.setSelected=function(e,i){t=e,o.forEach(function(t){t(e,i)})}}])}}]);