system-7/index_files/archive.js

21 lines
83 KiB
JavaScript
Raw Normal View History

2018-09-01 05:07:00 +00:00
!function(e){var t={};function n(a){if(t[a])return t[a].exports;var i=t[a]={i:a,l:!1,exports:{}};return e[a].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:a})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=371)}({366:function(e,t,n){e.exports=n.p+"css/archive.min.css"},367:function(e,t,n){
/*!
* clipboard.js v2.0.1
* https://zenorocha.github.io/clipboard.js
*
* Licensed MIT © Zeno Rocha
*/
var a;a=function(){return function(e){var t={};function n(a){if(t[a])return t[a].exports;var i=t[a]={i:a,l:!1,exports:{}};return e[a].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:a})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=3)}([function(e,t,n){var a,i,o;i=[e,n(7)],void 0===(o="function"==typeof(a=function(e,t){"use strict";var n,a=(n=t)&&n.__esModule?n:{default:n},i="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},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),r=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.resolveOptions(t),this.initSelection()}return o(e,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var e=this,t="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,a.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,a.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==(void 0===e?"undefined":i(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._targ
/*!******************************!*\
!*** ./src/scripts/index.js ***!
\******************************/
/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={}},"./src/styles/index.less":
/*!*******************************!*\
!*** ./src/styles/index.less ***!
\*******************************/
/*! no static exports found */function(e,t){},0:
/*!************************************************************!*\
!*** multi ./src/scripts/index.js ./src/styles/index.less ***!
\************************************************************/
/*! no static exports found */function(e,t,n){n(/*! /home-local/petabox/.cache/yarn/v1/.tmp/f85d5c6dbf48ced4703e8bc19ab1e947.5c04a7b880a402fa16e48933f5ca7327747203dc.prepare/src/scripts/index.js */"./src/scripts/index.js"),e.exports=n(/*! /home-local/petabox/.cache/yarn/v1/.tmp/f85d5c6dbf48ced4703e8bc19ab1e947.5c04a7b880a402fa16e48933f5ca7327747203dc.prepare/src/styles/index.less */"./src/styles/index.less")}})},370:function(e,t,n){"use strict";var a=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,i=!1,o=void 0;try{for(var r,s=e[Symbol.iterator]();!(a=(r=s.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){i=!0,o=e}finally{try{!a&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),o=(r(n(369)),r(n(368)));function r(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var l=window.jQuery,c="www-"!==location.host.substr(0,4)?function(){}:console.log.bind(console);var d=function(){function e(){s(this,e)}return i(e,null,[{key:"tvAD",value:function(e){var t=l(e).parents(".shows"),n=void 0,a=void 0,i=void 0;if(t.length){var o=l(e).parent().find(".shows");if(o.length)return o.toggle(),!1;a=t.attr("data-chan"),i=l(e).text()}else{a=l(e).text(),n="menu-chan-".concat(a);var r=l("#"+n);if(r.length)return r.toggle(),!1}var s=location.href+"?channel="+a;return t.length&&(s+="&program=".concat(encodeURIComponent(i))),c(s),l.get(s,function(i){t.length?l(e).parent().append('<div data-chan="'+a+'" class="shows"><h5>Air date</h5><div>'+i+"</div></div>"):l(e).parent().append('<div id="'+n+'" data-chan="'+a+'" class="shows"><h4>Show</h4><div>'+i+"</div></div>")}),!1}},{key:"nav_tophat_setup",value:function(){l("#nav-tophat").length&&(e.isTouchDevice()?l("body").addClass("touch"):e.logoText(),l("#nav-tophat").on("show.bs.collapse",function(){return l("#navwrap1").addClass("hatted")}).on("hide.bs.collapse",function(){return l("#navwrap1").removeClass("hatted")}),l(".navbar a.navia-link").on("click",function(t){var n=!l("#nav-tophat-helper:visible").length,a=l("#nav-tophat").hasClass("in"),i=this,o=l(t.target).attr("data-top-kind")||l(t.currentTarget).attr("data-top-kind"),r=l(".navbar .dropdown-ia.hatted a").attr("data-top-kind");return n&&a&&r!==o||(l(".toprow").hide(),l(".toprow."+o).show()),a||(l("#nav-tophat").collapse("show"),e.tophat_dont_count_first_open?delete e.tophat_dont_count_first_open:"undefined"!=typeof archive_analytics&&archive_analytics.send_ping({kind:"event",ec:"page_action",ea:"nav_tophat_galactica",el:location.pathname,cache_bust:Math.random()})),void 0!==r&&c("isnow",r),c("shouldB",o),r===o?(l("#nav-tophat").collapse("hide"),!1):n&&a&&r!==o?(l("#nav-tophat").one("hidden.bs.collapse",function(){setTimeout(function(){return l(i).click()},100)}),l("#nav-tophat").collapse("hide"),!1):(l(".navbar .dropdown-ia").removeClass("hatted").has("."+o).addClass("hatted"),l("#nav-tophat").on("hidden.bs.collapse",function(){return l(".navbar .dropdown-ia").removeClass("hatted")}),l(document).one("click.tophat.nixer",function(e){var t=l(e.target);"nav-wb-url"!==t.attr("id")&&(t.is("a")||t.hasClass("item-img")||t.hasClass("item-ia")||l("#nav-tophat.in").collapse("hide"))}),!1)}))}},{key:"isTouchDevice",value:function(){return"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch}},{key:"footer",value:function(){e.isTouchDevice()||void 0===l.fn.tooltip||l('.navbar [data-toggle="tooltip"], .container-ia [data-toggle="tooltip"], #cols [data-toggle="tooltip"], #tvbanner [data-toggle="tooltip"]').tooltip({})}},{key:"wrapdark_watcher",value:function(){if(e.$sharedown||(e.$sharedown=l("#sharedown"),e.$wrapdark=l("
//# sourceMappingURL=archive.min.js.map