PageSourceSearch

https://www.omroeppenm.nl/assets/dist/7.4.3/plugins/mc_programming/1_0/programming.js

js omroeppenm.nl collected 2026-10-04 02:59:46 UTC 8,038 bytes, 1 lines download raw bytes

1var _Programming;function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _regenerator(){var y,e="function"==typeof Symbol?Symbol:{},t=e.iterator||"@@iterator",r=e.toStringTag||"@@toStringTag";function n(e,t,r,n){var i,o,a,s,c,u,f,l,p,t=t&&t.prototype instanceof m?t:m,t=Object.create(t.prototype);return _regeneratorDefine2(t,"_invoke",(i=e,o=r,f=n||[],l=!1,p={p:u=0,n:0,v:y,a:d,f:d.bind(y,4),d:function(e,t){return a=e,s=0,c=y,p.n=t,g}},function(e,t,r){if(1<u)throw TypeError("Generator is already running");for(l&&1===t&&d(t,r),s=t,c=r;(_=s<2?y:c)||!l;){a||(s?s<3?(1<s&&(p.n=-1),d(s,c)):p.n=c:p.v=c);try{if(u=2,a){if(_=a[e=s?e:"next"]){if(!(_=_.call(a,c)))throw TypeError("iterator result is not an object");if(!_.done)return _;c=_.value,s<2&&(s=0)}else 1===s&&(_=a.return)&&_.call(a),s<2&&(c=TypeError("The iterator does not provide a '"+e+"' method"),s=1);a=y}else if((_=(l=p.n<0)?c:i.call(o,p))!==g)break}catch(e){a=y,s=1,c=e}finally{u=1}}return{value:_,done:l}}),!0),t;function d(e,t){for(s=e,c=t,_=0;!l&&u&&!r&&_<f.length;_++){var r,n=f[_],i=p.p,o=n[2];3<e?(r=o===t)&&(c=n[(s=n[4])?5:s=3],n[4]=n[5]=y):n[0]<=i&&((r=e<2&&i<n[1])?(s=0,p.v=t,p.n=n[1]):i<o&&(r=e<3||n[0]>t||o<t)&&(n[4]=e,n[5]=t,p.n=o,s=0))}if(r||1<e)return g;throw l=!0,t}}var g={};function m(){}function i(){}function o(){}var _=Object.getPrototypeOf,e=[][t]?_(_([][t]())):(_regeneratorDefine2(_={},t,function(){return this}),_),a=o.prototype=m.prototype=Object.create(e);function s(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,o):(e.__proto__=o,_regeneratorDefine2(e,r,"GeneratorFunction")),e.prototype=Object.create(a),e}return _regeneratorDefine2(a,"constructor",i.prototype=o),_regeneratorDefine2(o,"constructor",i),_regeneratorDefine2(o,r,i.displayName="GeneratorFunction"),_regeneratorDefine2(a),_regeneratorDefine2(a,r,"Generator"),_regeneratorDefine2(a,t,function(){return this}),_regeneratorDefine2(a,"toString",function(){return"[object Generator]"}),(_regenerator=function(){return{w:n,m:s}})()}function _regeneratorDefine2(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}(_regeneratorDefine2=function(e,t,r,n){function i(t,r){_regeneratorDefine2(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))})(e,t,r,n)}function asyncGeneratorStep(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function _asyncToGenerator(s){return function(){var e=this,a=arguments;return new Promise(function(t,r){var n=s.apply(e,a);function i(e){asyncGeneratorStep(n,t,r,i,o,"next",e)}function o(e){asyncGeneratorStep(n,t,r,i,o,"throw",e)}i(void 0)})}}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_toPropertyKey(n.key),n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!=_typeof(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}MJS.Namespace("Plugins").export("Programming",(_Programming=(()=>{function i(e,t){_classCallCheck(this,i),_defineProperty(this,"node",null),_defineProperty(this,"args",{}),_defineProperty(this,"is_busy",!1),_defineProperty(this,"action_delay",100),_defineProperty(this,"Fetch",MJS.Namespace("Core").import("Fetch")),_defineProperty(this,"Format",MJS.Namespace("Core").import("Format")),_defineProperty(this,"Frontend",MJS.Namespace("Classes").importInstance("Frontend")),this.node=new MJS.Node(e),this.args=t||{}}return _createClass(i,[{key:"__init",value:function(){var e=this,t=(this.node.Classes.has("live")&&null!=(t=this.node)&&null!=(t=t.getElement())&&t.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"}),this.node.Attributes.get("data-identifier"));if(t)switch(t){case i.identifiers.episodes.replay:case i.identifiers.episodes.restart:this.node.Events.set("click:".concat(this.ID,":").concat(this.action_delay),function(){return e.runAction(function(){return e.replayEpisode()})});break;case i.identifiers.guide.filter:this.node.Events.set("click:".concat(this.ID,":").concat(this.action_delay),function(){return e.runAction(function(){return e.filterGuide()})})}}},{key:"runAction",value:(n=_asyncToGenerator(_regenerator().m(function e(t){return _regenerator().w(function(e){for(;;)switch(e.n){case 0:if(i.is_busy)return e.a(2);e.n=1;break;case 1:return i.is_busy=!0,e.n=2,t();case 2:i.is_busy=!1;case 3:return e.a(2)}},e)})),function(e){return n.apply(this,arguments)})},{key:"replayEpisode",value:(r=_asyncToGenerator(_regenerator().m(function e(){var t,r,n;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:if(t=this.node.Attributes.get(i.attributes.episodes.id),r=this.node.Attributes.get(i.attributes.episodes.date),t){e.n=1;break}return e.a(2);case 1:if(n=this.getPlayer()){e.n=2;break}return e.a(2);case 2:return n.togglePlayer("replay"),e.n=3,n.loadStream({type:"tv",id:t,date:r});case 3:e.v&&this.setPlaying();case 4:return e.a(2)}},e,this)})),function(){return r.apply(this,arguments)})},{key:"setPlaying",value:function(){var e=MJS.Node.getNodes("[".concat(i.attributes.episodes.element,"]")),e=(e.length&&e.foreach(function(e){return e.Classes.remove("playing")}),this.node.parentNode("[".concat(i.attributes.episodes.element,"]")));e&&e.Classes.set("playing")}},{key:"filterGuide",value:(t=_asyncToGenerator(_regenerator().m(function e(){var t,r,n;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:if(t=this.node.Attributes.get(i.attributes.guide.filter.startdate),r=this.node.Attributes.get(i.attributes.guide.filter.enddate),(n=MJS.Node.getNodes("[".concat(i.attributes.guide.element,"]"))).length){e.n=1;break}return e.a(2);case 1:n.foreach(function(e){return e.parentNode(".block").Utils.get("Block").refresh({query:{startdate:t,enddate:r}})});case 2:return e.a(2)}},e,this)})),function(){return t.apply(this,arguments)})},{key:"getPlayer",value:function(){var e=null==(e=MJS.Namespace("Plugins").import("Player"))?void 0:e.getPlayer("replay");return e||!1}},{key:"sendRequest",value:(e=_asyncToGenerator(_regenerator().m(function e(){var t,r,n=arguments;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return t=0<n.length&&void 0!==n[0]?n[0]:[],r=1<n.length&&void 0!==n[1]?n[1]:{},e.n=1,new this.Fetch(t,{body:Object.assign(r,{builder_session:this.Frontend.builder_session})}).then(function(e){return e});case 1:return e.a(2,e.v)}},e,this)})),function(){return e.apply(this,arguments)})}]);var e,t,r,n})(),_defineProperty(_Programming,"configuration",{version:"1.0",identifiers:["[mcp]"],base:"plugins\\mc_programming\\v1_0",api_uri:"https://apiservic.es/api.svc/"}),_defineProperty(_Programming,"paths",{filter_guide:["".concat(_Programming.configuration.base,"\\json\\models\\programming"),"filter"]}),_defineProperty(_Programming,"identifiers",{guide:{filter:"mcp-g-filter"},episodes:{replay:"mcp-e-replay",restart:"mcp-e-restart"}}),_defineProperty(_Programming,"attributes",{guide:{element:"mcp-g-element",filter:{startdate:"data-mcp-g-filter-startdate",enddate:"data-mcp-g-filter-enddate"}},episodes:{element:"mcp-e-element",id:"data-mcp-e-id",date:"data-mcp-e-date"}}),_Programming));

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.