var ts_restricted_warning={localStorageName:"ts_reswar",redirect_page:baseurl,series_id:null,init:function(){jQuery(document).ready(function(){!1!==ts_restricted_warning.can_i_run()?ts_restricted_warning.run():ts_restricted_warning.getModal().hide()})},run:function(){ts_restricted_warning.attachEvents()},can_i_run:function(){return!1!==ts_localStorage.isSupported()&&(!(ts_restricted_warning.getModal().length<=0)&&(!1!==ts_restricted_warning.getSeriesId()&&!0!==ts_restricted_warning.isUserAgree()))},quickHide:function(){0==ts_restricted_warning.can_i_run()&&ts_restricted_warning.getModal().hide()},isUserAgree:function(){var t=ts_restricted_warning.getSeriesId(),e=ts_localStorage.getLocalStorage(ts_restricted_warning.localStorageName);return parseInt(t)===parseInt(e)},setLocalStorage:function(){var t=ts_restricted_warning.getSeriesId();if(isNaN(t))return!1;ts_localStorage.setLocalStorage(ts_restricted_warning.localStorageName,t)},getModal:function(){return jQuery(document).find(".restrictcontainer")},getSeriesId:function(){if(!isNaN(ts_restricted_warning.series_id)&&ts_restricted_warning.series_id)return ts_restricted_warning.series_id;var t=ts_restricted_warning.getModal().attr("data-id");return!isNaN(t)&&(ts_restricted_warning.series_id=t,t)},getEnterButton:function(){return ts_restricted_warning.getModal().find("div.rescb.enterx")},getExitButton:function(){return ts_restricted_warning.getModal().find("div.rescb.exitx")},attachEvents:function(){ts_restricted_warning.getEnterButton().on("click",function(){ts_restricted_warning.enterBtnOnClick()}),ts_restricted_warning.getExitButton().on("click",function(){window.location.replace(ts_restricted_warning.redirect_page)})},enterBtnOnClick:function(){ts_restricted_warning.getModal().hide(),ts_restricted_warning.setLocalStorage()}};ts_restricted_warning.init();