1"use strict";var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_createClass=function(){function a(t,e){for(var i=0;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,e,i){return e&&a(t.prototype,e),i&&a(t,i),t}}();function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Article=function(){function t(){_classCallCheck(this,t),this.pag=document.getElementById("paginate-article")||null,this.init()}return _createClass(t,[{key:"clonePagination",value:function(){if(this.pag){var t=document.querySelector(".paginate-article .col-xs-12"),e=document.querySelector("#crumbs .col-xs-12"),i=this.pag.cloneNode(!0),a=this.pag.cloneNode(!0);t.appendChild(i),e.appendChild(a),this.pag.remove(),this.pag=null,document.getElementById("crumbs").className+=" has-paginate"}}},{key:"init",value:function(){this.clonePagination()}}]),t}(),Store=function(){function l(){_classCallCheck(this,l),this.gate=document.getElementById("view-gate"),this.ct=document.getElementById("view-count"),this.s1=document.getElementById("fr-s1"),this.s2=document.getElementById("fr-s2"),this.id=parseInt(this.gate.getAttribute("data-id")),this.st=localStorage,this.storeIds=":"+this.id+":",this.storeViews=1,this.remain=4,this.isGated=!1,this.total=5;var t=new Date,e=(this.current_date=t).getDate(),i=t.getMonth()+1,a=t.getFullYear()+"/"+i+"/"+e;this.today_date_formatted=a;var s=t.getDate(),o=t.getMonth()+2,n=t.getFullYear();13===o&&(n+=o=1);var r=n+"/"+o+"/"+s;this.new_expire_date_formatted=r,this.checkDate(localStorage.getItem("storeDate")),this.getStoreVals()}return _createClass(l,[{key:"checkGate",value:function(){if(this.isGated){var t=document.getElementById("paywall-open");t.onclick?t.onclick():t.click&&t.click()}}},{key:"setRemain",value:function(){var t=this,e=this.total-this.storeViews;e<0?(this.remain=-1,this.isGated=!0,setTimeout(function(){t.checkGate()},750)):this.remain=e}},{key:"setViewCount",value:function(){var t=this;this.ct.innerHTML=this.remain,0==this.remain||1==this.remain?(this.s1.innerHTML="",this.s2.innerHTML=""):1<this.remain&&(this.s1.innerHTML="s",this.s2.innerHTML="s"),setTimeout(function(){-1<t.remain&&t.gate.setAttribute("data-active",1)},500)}},{key:"checkDate",value:function(t){if(localStorage.getItem("storeDate")&&"undefined"!==localStorage.getItem("storeDate")){var e=new Date(t);new Date(this.today_date_formatted).getTime()>e.getTime()&&(localStorage.setItem("storeDate",this.new_expire_date_formatted),localStorage.setItem("storeViews",0),localStorage.setItem("storeIds",""))}else localStorage.setItem("storeDate",this.new_expire_date_formatted)}},{key:"setStoreVals",value:function(){localStorage.setItem("storeIds",this.storeIds),localStorage.setItem("storeViews",this.storeViews),this.st=localStorage,this.setViewCount()}},{key:"getStoreVals",value:function(){if(this.st.length){var t=!1;if(this.st.getItem("storeIds")){this.storeIds=this.st.getItem("storeIds");var e=":"+this.id+":";this.storeIds.indexOf(e)<0&&(this.storeIds+=e,t=!0)}this.st.getItem("storeViews")&&(this.storeViews=parseInt(this.st.getItem("storeViews")),t&&this.storeViews++,this.setRemain())}this.setStoreVals()}}]),l}(),article=new Article;if(document.getElementById("view-gate"))var store=new Store;function rudr_favorite(a){var pageTitle=document.title,pageURL=document.location;try{eval("window.external.AddFa-vorite(pageURL, pageTitle)".replace(/-/g,""))}catch(t){try{window.sidebar.addPanel(pageTitle,pageURL,"")}catch(t){if("object"==("undefined"==typeof opera?"undefined":_typeof(opera)))return a.rel="sidebar",a.title=pageTitle,a.url=pageURL,!0;alert("Press "+(-1!=navigator.userAgent.toLowerCase().indexOf("mac")?"Cmd":"Ctrl")+"+D to bookmark this page.")}}return!1} 2//# sourceMappingURL=Article.js.map
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.