1(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){"use strict";function _typeof(obj){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function _typeof(obj){return typeof obj;};}else{_typeof=function _typeof(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};}return _typeof(obj);} 2function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}} 3function _possibleConstructorReturn(self,call){if(call&&(_typeof(call)==="object"||typeof call==="function")){return call;}return _assertThisInitialized(self);} 4function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return self;} 5function _get(target,property,receiver){if(typeof Reflect!=="undefined"&&Reflect.get){_get=Reflect.get;}else{_get=function _get(target,property,receiver){var base=_superPropBase(target,property);if(!base)return;var desc=Object.getOwnPropertyDescriptor(base,property);if(desc.get){return desc.get.call(receiver);}return desc.value;};}return _get(target,property,receiver||target);} 6function _superPropBase(object,property){while(!Object.prototype.hasOwnProperty.call(object,property)){object=_getPrototypeOf(object);if(object===null)break;}return object;} 7function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o);};return _getPrototypeOf(o);} 8function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}} 9function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);return Constructor;} 10function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function");}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});if(superClass)_setPrototypeOf(subClass,superClass);} 11function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(o,p){o.__proto__=p;return o;};return _setPrototypeOf(o,p);} 12(function(ptv){var VideoCard=function(_ptv$AbstractCard){_inherits(VideoCard,_ptv$AbstractCard);_createClass(VideoCard,null,[{key:"UPDATE_PROGRESS",get:function get(){return"update-progress";}}]);function VideoCard(id,options){var _this;_classCallCheck(this,VideoCard);var OPTIONS_DEFAULT={titleCharsLimit:60,textCharsLimit:40,shaveTitle:true,shaveText:true,progressUpdatableOnDemand:false};var OPTIONS_MANDATORY={watchResize:true,watchResizeTimeout:300};options=$.extend(true,OPTIONS_DEFAULT,options);options=$.extend(true,options,OPTIONS_MANDATORY);_this=_possibleConstructorReturn(this,_getPrototypeOf(VideoCard).call(this,id,options));_this.$progress=_this.$domElement.find(".card-img-top .progress");_this.$progressBar=_this.$progress.find(".progress-bar");_this.$playbackLabel=_this.$domElement.find(".card-img-top .playback-label");_this.$title=_this.$domElement.find(".card-body .card-title > span:last-of-type");_this.$text=_this.$domElement.find(".card-body .card-text");_this.originalTitle=_this.$title.text();_this.originalText=_this.$text.text();_this.relatedVideoMediaID=_this.$progress.attr("data-related-video");if(window.Detectizr.device.type=="desktop"){_this.$domElement.on("pointerenter focusin",function(event){_this.$playbackLabel.attr("force-hover",true);});_this.$domElement.on("pointerleave focusout",function(event){_this.$playbackLabel.removeAttr("force-hover");});} 13if(_this.options.progressUpdatableOnDemand){$(window).on(ptv.VideoCard.UPDATE_PROGRESS+"."+_this.id,_this.updateProgressBar.bind(_assertThisInitialized(_this)));} 14_this.updateProgressBar();return _this;}
15_createClass(VideoCard,[{key:"init",value:function init(){_get(_getPrototypeOf(VideoCard.prototype),"init",this).call(this);this.resizeTimeoutHandler();}},{key:"updateProgressBar",value:function updateProgressBar(){var P_DATA=JSON.parse(ptv.Globals.retrieveVideoProgressData(this.relatedVideoMediaID));if(!P_DATA){return;} 16if(P_DATA.currentTime){this.$progressBar.attr("aria-valuenow",P_DATA.currentTime);this.$progressBar.css({width:parseInt(P_DATA.currentTime/P_DATA.duration*100)+"%"});this.$progress.removeClass("d-none");}else{this.$progress.addClass("d-none");this.$progressBar.css({width:0});this.$progressBar.attr("aria-valuenow",0);}}},{key:"resizeTimeoutHandler",value:function resizeTimeoutHandler(){if(this.options.shaveTitle){this.$title.text(this.originalTitle);this.$title.shave(this.options.titleCharsLimit,{character:ptv.Globals.TEXT_TRUNCATED_ELLIPSIS});} 17if(this.options.shaveText){this.$text.text(this.originalText);this.$text.shave(this.options.textCharsLimit,{character:ptv.Globals.TEXT_TRUNCATED_ELLIPSIS});}}},{key:"dispose",value:function dispose(){if(window.Detectizr.device.type=="desktop"){this.$domElement.off("pointerenter pointerleave focusin focusout");this.$domElement.removeAttr("touch-action");this.$playbackLabel.removeAttr("force-hover");} 18if(this.options.progressUpdatableOnDemand){$(window).off(ptv.VideoCard.UPDATE_PROGRESS+"."+this.id);} 19this.$progress=null;this.$progressBar=null;this.$playbackLabel=null;this.$title=null;this.$text=null;this.originalTitle=null;this.originalText=null;this.relatedVideoMediaID=null;_get(_getPrototypeOf(VideoCard.prototype),"dispose",this).call(this);}}]);return VideoCard;}(ptv.AbstractCard);ptv.VideoCard=VideoCard;})(ptv);},{}]},{},[1]);
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.