File "overview.min.js"
Full Path: /home/jlklyejr/public_html/post-date/wp-content/plugins/revslider/admin/assets/js/modules/overview.min.js
File size: 82.56 KB
MIME-type: text/plain
Charset: utf-8
function showPluginInfos(){}!function(){RVS.F.initOverView=function(){RVS.F.initAdmin(),RVS.C.rsOVM=jQuery("#rs_overview_menu"),RVS.S.ovMode=!0,RVS.F.initialiseInputBoxes("overview"),initLocalListeners(),jQuery("#plugin_history").RSScroll({wheelPropagation:!0,suppressScrollX:!1,minScrollbarLength:30}),sliderLibrary.output=jQuery("#existing_sliders"),sliderLibrary.sfw=jQuery("#slider_folders_wrap"),sliderLibrary.sfw.appendTo(jQuery(document.body)),sliderLibrary.sfwu=jQuery("#slider_folders_wrap_underlay"),sliderLibrary.backOneLevel=jQuery('<div id="back_one_folder" class="new_slider_block"><i class="material-icons">more_horiz</i><span class="nsb_title">Back</span></div>'),sliderLibrary.selectedFolder=-1,sliderLibrary.selectedPage=1,sliderLibrary.slidesContainer=jQuery(".overview_slide_elements"),updateParentAttributes(),sliderLibrary.filters=buildModuleFilters(),window.ov_scroll_targets=[],e=0,jQuery(".rso_scrollmenuitem").each(function(){void 0!==this.dataset.ref&&(window.ov_scroll_targets.push({obj:jQuery(this.dataset.ref),top:jQuery(this.dataset.ref).offset().top,height:jQuery(this.dataset.ref).height(),menu:jQuery(this),menu_js:this}),this.dataset.ostref=e,e++)}),jQuery("#adminmenuwrap").append('<div id="wpadmin_overlay"></div>'),jQuery("#wpcontent").append('<div id="wpadmin_overlay_top"></div>'),tpGS.gsap.to(["#wpadmin_overlay","#wpadmin_overlay_top"],.6,{opacity:1,ease:"power3.inOut"}),tpGS.gsap.to(["#adminmenuback","#adminmenuwrap","#wpadminbar"],.6,{filter:"grayscale(100%)",ease:"power3.inOut"}),jQuery("#adminmenuback, #adminmenuwrap, #wpadminbar").on("mouseenter",function(){tpGS.gsap.to(["#wpadmin_overlay","#wpadmin_overlay_top"],.3,{opacity:0,ease:"power3.inOut"}),tpGS.gsap.to(["#adminmenuback","#adminmenuwrap","#wpadminbar"],.6,{filter:"grayscale(0%)",ease:"power3.inOut"})}).on("mouseleave",function(){tpGS.gsap.to(["#wpadmin_overlay","#wpadmin_overlay_top"],.3,{opacity:1,ease:"power3.inOut"}),tpGS.gsap.to(["#adminmenuback","#adminmenuwrap","#wpadminbar"],.6,{filter:"grayscale(100%)",ease:"power3.inOut"})}),l(),u(),tpGS.gsap.to("#rs_overview_menu",1,{opacity:1,ease:"power3.out"}),RVS.F.updateDraw(),RVS.F.isActivated(),updateOVFilteredList(),updateSysChecks(),initBasics(),a(),RVS.F.handleDeactivatedwarning(),RVS.F.handleAddonsWarning(),RVS.F.activeNotActive(),RVS.ENV.updated&&RVS.F.welcome(),RVS.F.generateAttachmentMetaData(),checkAddOnVersions(),RVS.ENV.newTemplatesCounter=document.getElementById("new_templates_counter"),RVS.ENV.newAddonsCounter=document.getElementById("new_addons_counter");var e,i={i:0},r={i:0},t=(void 0!==RVS.ENV.newTemplatesAmount&&0<RVS.ENV.newTemplatesAmount&&(tpGS.gsap.fromTo(i,Math.min(1.5,Math.max(.2,.02*RVS.ENV.newTemplatesAmount)),{i:0},{i:RVS.ENV.newTemplatesAmount,ease:"none",onUpdate:function(){RVS.ENV.newTemplatesCounter.innerHTML="+ "+Math.round(i.i)}}),RVS.ENV.newTemplatesCounter.style.display="block"),void 0!==RVS.ENV.newAddonsAmount&&0<RVS.ENV.newAddonsAmount&&(tpGS.gsap.fromTo(r,Math.min(1.5,Math.max(.2,.02*RVS.ENV.newAddonsAmount)),{i:0},{i:RVS.ENV.newAddonsAmount,ease:"none",onUpdate:function(){RVS.ENV.newAddonsCounter.innerHTML="+ "+Math.round(r.i)}}),RVS.ENV.newAddonsCounter.style.display="block"),RVS.F.getCookie("rs6_shortly_edited_slider")+"");if(0<t.length){RVS.F.setCookie("rs6_shortly_edited_slider","",0);var s,d=!1;for(s in sliderLibrary.sliders)!1===d&&(d=sliderLibrary.sliders[s].id==t?sliderLibrary.sliders[s].parent:d);!1!==d&&-1!==d&&"-1"!==d&&RVS.F.changeOVToFolder(d)}RVS.F.notifications(),document.location.href.includes("#template_library")&&new_slider_from_template.click(),document.location.href.includes("#global_settings")&&globalsettings.click()},RVS.F.addonInstalledFromWarning=function(e,i){RVS.LIB.OBJ.addonsToInstall.splice(0,1),RVS.LIB.ADDONS[i].active=!0},RVS.F.installAddonOneByOne=function(){var i;0<RVS.LIB.OBJ.addonsToInstall.length?(i=RVS.LIB.OBJ.addonsToInstall[0],RVS.F.ajaxRequest("activate_addon",{addon:i},function(e){void 0!==RVS.LIB.ADDONS&&void 0!==RVS.LIB.ADDONS[i]&&1==RVS.LIB.ADDONS[i].installed?RVS.F.addonInstalledFromWarning(e,i):RVS.LIB.ADDONS[i].installed=!0,RVS.F.installAddonOneByOne()},void 0,void 0,RVS_LANG.installingaddon+'<br><span style="font-size:17px; line-height:25px;">'+RVS.LIB.OBJ.addonsToInstall[0]+"</span>")):(RVS.F.handleAddonsWarning(),RVS.F.notifications())},RVS.F.handleAddonsWarning=function(){var e;RVS.ENV.activated&&(void 0===RVS.S.handleADDWAR&&(RVS.S.handleADDWAR=!0,RVS.C.addwarlist=document.getElementById("list_of_deactivated_addons"),RVS.DOC.on("click","#rbm_notactiveaddon_warning .rbm_close",function(){RVS.F.RSDialog.close(),RVS.S.addonWarningOpen=!1}),RVS.DOC.on("click",".de_add_fix",function(){RVS.LIB.OBJ.addonsToInstall=RVS.S.addFixRefList[this.dataset.fixref],RVS.F.installAddonOneByOne()}),RVS.DOC.on("click","#naa_install_all",function(){for(var e in RVS.LIB.OBJ.addonsToInstall=[],RVS.S.addFixRefList)if(RVS.S.addFixRefList.hasOwnProperty(e))for(var i in RVS.S.addFixRefList[e])RVS.S.addFixRefList[e].hasOwnProperty(i)&&-1==RVS.LIB.OBJ.addonsToInstall.indexOf(RVS.S.addFixRefList[e][i])&&RVS.LIB.OBJ.addonsToInstall.push(RVS.S.addFixRefList[e][i]);RVS.F.installAddonOneByOne()}),RVS.C.missingAddonLists=jQuery("#list_of_deactivated_addons").RSScroll({wheelPropagation:!0,suppressScrollX:!0,minScrollbarLength:100})),""!==(e=RVS.F.createNotActivatedAddonsList())?(RVS.C.addwarlist.innerHTML=e,RVS.F.showAddonWarning(),RVS.C.missingAddonLists.RSScroll("update")):RVS.S.addonWarningOpen&&(RVS.S.addonWarningOpen=!1,RVS.F.RSDialog.close()))},RVS.F.createNotActivatedAddonsList=function(){var e,i,r,t,s="",d=0;for(e in RVS.S.addFixRefList={},sliderLibrary.sliders)if(d++,sliderLibrary.sliders.hasOwnProperty(e)&&void 0!==sliderLibrary.sliders[e].addons&&0!=sliderLibrary.sliders[e].addons.length){for(i in r="",t=0,RVS.S.addFixRefList[d]=[],sliderLibrary.sliders[e].addons)!sliderLibrary.sliders[e].addons.hasOwnProperty(i)||null==RVS.LIB.ADDONS[sliderLibrary.sliders[e].addons[i]]||RVS.LIB.ADDONS[sliderLibrary.sliders[e].addons[i]].active&&RVS.LIB.ADDONS[sliderLibrary.sliders[e].addons[i]].installed||(r+=(0<t?", ":"")+RVS.LIB.ADDONS[sliderLibrary.sliders[e].addons[i]].title,RVS.S.addFixRefList[d].push(sliderLibrary.sliders[e].addons[i]),t++);""!=r&&(34<r.length&&(r=r.substring(0,31)+"..."),s=(s=(s=(s+='<div class="deactivated_addon">')+'<div class="de_add_stitle">'+sliderLibrary.sliders[e].alias+"</div>")+'<div class="de_add_needs">'+RVS_LANG.needsd+'</div><div class="de_add_needs_adds">'+r+"</div>")+'<div class="de_add_fix" data-fixref="'+d+'">'+RVS_LANG.fix+"</div></div>")}return s},RVS.F.showAddonWarning=function(){RVS.F.RSDialog.create({modalid:"#rbm_notactiveaddon_warning",bgopacity:.25}),RVS.S.addonWarningOpen=!0},RVS.F.handleDeactivatedwarning=function(){void 0===RVS.S.handleDEWAR&&(RVS.S.handleDEWAR=!0,RVS.DOC.on("click","#rbm_notactive_warning",function(){RVS.F.ajaxRequest("close_deregister_popup",{},function(e){},void 0,void 0,void 0,!0)}),RVS.ENV.deregisterPopup)&&RVS.F.showDeactivatedWarning()},RVS.F.scrollToOvRegister=function(){u();var e={val:window.scroll_top};tpGS.gsap.to(e,.6,{val:window.ov_scroll_targets[2].top-200,onUpdate:function(){RVS.WIN.scrollTop(e.val)},ease:"power3.out"}),u()},RVS.F.showDeactivatedWarning=function(){RVS.F.RSDialog.create({modalid:"#rbm_notactive_warning",bgopacity:.25}),null==RVS.S.pwcandreg&&(RVS.DOC.on("click","#pb_closeandregister",function(){RVS.F.RSDialog.close(),RVS.F.scrollToOvRegister()}),RVS.DOC.on("click","#rbm_notactive_warning .rbm_close",function(){RVS.F.RSDialog.close()}),RVS.S.pwcandreg=!0)},RVS.F.getBackupList=function(){return RVS.F.ajaxRequest("get_v5_slider_list",{},function(e){e.success?console.log(e.slider):console.log("Response Error")},!1,!1,void 0,!0),"Getting Slide List from Backup Database..."},RVS.F.reImportBackup=function(e){return RVS.F.ajaxRequest("reimport_v5_slider",{id:e},function(e){console.log(e)},!1,!1,void 0,!0),"Importing Slider "+e+" from the Backup Database..."},RVS.F.setObjBg=function(e,i){var r=void 0!==e.bg.src&&3<e.bg.src.length?e.bg.src:RVS.ENV.plugin_url+"admin/assets/images/sources/"+e.source+".png",t=void 0!==e.bg.style?e.bg.style:{};switch(Array.isArray(t)&&(t=RVS.F.toObject(t)),e.bg.type){case"image":void 0!==t&&void 0!==t.css?t.css.backgroundImage="url("+r+")":void 0!==t&&(t.backgroundImage="url("+r+")"),tpGS.gsap.set(i,t);break;case"color":case"colored":case"solid":var s=window.RSColor.get(t["background-color"]);0<=s.indexOf("gradient")?tpGS.gsap.set(i,{backgroundImage:s}):tpGS.gsap.set(i,{backgroundColor:s});break;case"transparent":tpGS.gsap.set(i,{backgroundImage:"url("+RVS.ENV.plugin_url+"admin/assets/images/sources/"+e.source+".png)",backgroundRepeat:"no-repeat",backgroundSize:"cover"})}},RVS.F.notifications=function(){var e={0:"",1:"",2:""},i=2,r=jQuery("#rso_menu_notices"),t=document.getElementById("rs_notices_wrapper"),s=document.getElementById("rs_notice_bell"),d=document.getElementById("rs_notice_counter"),a=document.getElementById("rs_notice_the_bell"),l=new Array,o=(t.innerHTML="",RVS.ENV.notices=void 0===RVS.ENV.notices?new Array:RVS.ENV.notices,RVS.ENV.noticeCache=void 0===RVS.ENV.noticeCache?RVS.ENV.notices.slice():RVS.ENV.noticeCache,RVS.ENV.notices=RVS.ENV.noticeCache.slice(),"true"!==RVS.ENV.activated&&!0!==RVS.ENV.activated&&RVS.ENV.notices.push({function:"registerPlugin",additional:[],code:"INTERN",disable:!0,icon:"style",is_global:!1,text:RVS_LANG.notRegNoAll,type:1}),void 0!==RVS.ENV.addOns_to_updateArray&&0<RVS.ENV.addOns_to_updateArray.length&&RVS.ENV.notices.push({function:"checkAddOnVersions",additional:[],code:"INTERN",disable:!0,icon:"extension",is_global:!1,text:RVS_LANG.addonsmustbeupdated,type:0}),0<RVS.F.compareVersion(RVS.ENV.latest_version,RVS.ENV.revision)&&RVS.ENV.notices.push({function:"updatePluginNow",additional:[],code:"INTERN",disable:!0,icon:"new_releases",is_global:!1,text:RVS_LANG.newVersionAvailable,type:1}),0<RVS.F.createNotActivatedAddonsList().length&&RVS.ENV.notices.push({function:"fixMissingAddons",additional:[],code:"INTERN",disable:!0,icon:"new_releases",is_global:!1,text:RVS_LANG.fixMissingAddons,type:1}),!1);for(n in RVS.LIB.ADDONS)o||RVS.LIB.ADDONS[n].available>RVS.LIB.ADDONS[n].installed&&(o=!0,RVS.ENV.notices.push({function:"addonNotUptodate",additional:[],code:"INTERN",disable:!0,icon:"extension",is_global:!1,text:RVS_LANG.someAddonnewVersionAvailable,type:1}));var n,c=0;for(n in RVS.S.advert=void 0===RVS.S.advert?[]:RVS.S.advert,RVS.ENV.notices)if("3"!==RVS.ENV.notices[n].type&&c++,"2"===RVS.ENV.notices[n].type&&l.push(RVS.ENV.notices[n].code),"3"===RVS.ENV.notices[n].type){var u,p=!1;for(u in RVS.S.advert)RVS.S.advert[u].code==RVS.ENV.notices[n].code&&(p=!0);p||RVS.S.advert.push(jQuery.extend({},!0,RVS.ENV.notices[n]))}else{var S=void 0!==RVS.ENV.notices[n].function&&0<RVS.ENV.notices[n].function.length?"notification_function_"+RVS.ENV.notices[n].function:"no_notification_function";e[RVS.ENV.notices[n].type]+='<li data-code="'+RVS.ENV.notices[n].code+'" class="'+S+" notice_level_"+RVS.ENV.notices[n].type+'"><i class="material-icons">'+RVS.ENV.notices[n].icon+"</i>"+RVS.ENV.notices[n].text+"</li>",i=i>parseInt(RVS.ENV.notices[n].type)?parseInt(RVS.ENV.notices[n].type):i}if(0<c?(r.show(),0<e[0].length&&(t.innerHTML+=e[0]),0<e[1].length&&(t.innerHTML+=e[1]),0<e[2].length&&(t.innerHTML+=e[2]),s.classList.remove("notice_level_1"),s.classList.remove("notice_level_2"),s.classList.remove("notice_level_3"),d.classList.remove("notice_level_1"),d.classList.remove("notice_level_2"),d.classList.remove("notice_level_3"),s.className+=" notice_level_"+i,d.className+=" notice_level_"+i,d.innerHTML=c,0<t.innerHTML.length&&0<l.length&&(t.innerHTML+='<li id="remove_notifications" class="notice_level_2"><i class="material-icons">close</i>'+RVS_LANG.dismissmessages+"</li>"),jQuery(".notification_function_checkAddOnVersions").on("click",checkAddOnVersions),jQuery(".notification_function_registerPlugin").on("click",function(){RVS.F.scrollToOvRegister()}),jQuery(".notification_function_fixMissingAddons").on("click",function(){RVS.F.handleAddonsWarning()}),jQuery(".notification_function_addonNotUptodate").on("click",function(){RVS.S.addonPrefilter="action",RVS.F.openAddonModal()}),jQuery(".notification_function_updatePluginNow").on("click",function(){!0===RVS.ENV.activated?RVS.F.RSDialog.create({bgopacity:.85,modalid:"rbm_decisionModal",icon:"update",title:RVS_LANG.updateplugin,maintext:RVS_LANG.areyousureupdateplugin,subtext:RVS_LANG.updatingtakes,do:{icon:"check_circle",text:RVS_LANG.updatenow,event:"updateThePlugin"},cancel:{icon:"cancel",text:RVS_LANG.cancel},swapbuttons:!0}):RVS.F.showRegisterSliderInfo()}),jQuery("#remove_notifications").on("click",function(){RVS.F.ajaxRequest("dismiss_dynamic_notice",{id:l},function(e){},!1,!1,void 0,!0)}),void 0===RVS.S.noticesListener&&(RVS.S.noticesListener=!0,s=tpGS.gsap.timeline({repeat:-1}),tpGS.CustomWiggle.create("myWiggle",{wiggles:8,type:"uniform"}),s.add(tpGS.gsap.to("#rs_notice_the_bell",.5,{transformOrigin:"50% 0%",x:5,rotationZ:10,ease:"myWiggle",onComplete:function(){a.innerHTML="notifications"},onStart:function(){a.innerHTML="notifications_active"}}),2))):r.hide(),void 0!==RVS.S.advert&&0<RVS.S.advert.length)for(var _ in RVS.S.advert)RVS.S.advert[_].id=void 0===RVS.S.advert[_].id?"rs_advert_"+Math.round(1e7*Math.random()):RVS.S.advert[_].id,null!==RVS.S.advert[_].container&&void 0!==RVS.S.advert[_].container||(jQuery("#rs_welcome_h3").after('<div style="display:block;position:relative;" id="'+RVS.S.advert[_].id+'"></div>'),RVS.S.advert[_].container=document.getElementById(RVS.S.advert[_].id),RVS.S.advert[_].container.innerHTML=RVS.S.advert[_].text,RVS.S.advert[_].mwrap=RVS.S.advert[_].container.getElementsByTagName("RS-MODULE-WRAP"),void 0===RVS.S.advert[_].mwrap[0]&&(RVS.S.advert[_].mwrap=RVS.S.advert[_].container),jQuery(RVS.S.advert[_].mwrap).append('<div id="rs_close_advert_'+_+'" data-ai="'+_+'" class="rs_close_advert" ><i class="material-icons">close</i>'+RVS_LANG.closeNews+"</div>"),RVS.S.advert[_].revmodule=RVS.S.advert[_].container.getElementsByTagName("RS-MODULE")[0],void 0!==RVS.S.advert[_].revmodule?(RVS.S.advert[_].rsoptions=JSON.parse(RVS.S.advert[_].script),jQuery("#"+RVS.S.advert[_].revmodule.id).show().revolutionInit(RVS.S.advert[_].rsoptions)):RVS.S.advert[_].mwrap.style.marginTop="50px",tpGS.gsap.fromTo(jQuery("#rs_close_advert_"+_),1,{opacity:0},{opacity:1,delay:2}),tpGS.gsap.set(RVS.S.advert[_].mwrap,{boxShadow:"0px 0px 0px 0px rgba(0,0,0,0.2)"}),tpGS.gsap.to(RVS.S.advert[_].mwrap,1,{boxShadow:"0px 0px 20px 10px rgba(0,0,0,0.2)",delay:2}),jQuery("#rs_close_advert_"+_).on("click",function(){tpGS.gsap.to(RVS.S.advert[this.dataset.ai].mwrap,1,{marginTop:0,marginBottom:0,overflow:"hidden",height:0,ease:"power3.inOut",onComplete:function(){RVS.S.advert[this.dataset.ai].container.innerHTML=""}}),tpGS.gsap.to(RVS.S.advert[this.dataset.ai].container,1,{autoAlpha:0});var e=new Array;e.push(RVS.S.advert[this.dataset.ai].code),RVS.F.ajaxRequest("dismiss_dynamic_notice",{id:e},function(e){},!1,!1,void 0,!0)}))},RVS.F.welcome=function(){RVS.F.dontShowTracking=!0,RVS.F.RSDialog.create({modalid:"rbm_welcomeModal",bgopacity:.85}),jQuery("#rbm_welcomeModal .rbm_close").on("click",RVS.F.RSDialog.close),RVS.ENV.activated?jQuery("#open_welcome_register_form").on("click",RVS.F.RSDialog.close):jQuery("#open_welcome_register_form").on("click",RVS.F.showRegisterSliderInfo)},RVS.F.changeOVToFolder=function(e){sliderLibrary.selectedFolder=e,resetAllOVFilters(),updateOVFilteredList()},RVS.F.getOVSliderIndex=function(e){var i,r=-1;for(i in sliderLibrary.sliders)sliderLibrary.sliders.hasOwnProperty(i)&&sliderLibrary.sliders[i].id==e&&(r=i);return r},RVS.F.getOVSlideIndex=function(e,i){var r,t=-1;for(r in sliderLibrary.slides[i])sliderLibrary.slides[i].hasOwnProperty(r)&&""+sliderLibrary.slides[i][r].id==""+e&&(t=r);return t},RVS.F.updateDraw=function(){0<RVS.F.compareVersion(RVS.ENV.latest_version,RVS.ENV.revision)?(jQuery("#available_version_icon").addClass("warning"),jQuery("#available_version_content").addClass("warning")):(jQuery("#available_version_icon").removeClass("warning"),jQuery("#available_version_content").removeClass("warning"))},RVS.F.isActivated=function(){"true"==RVS.ENV.activated||1==RVS.ENV.activated?(jQuery("#rs_register_to_unlock").text(RVS_LANG.premium_features_unlocked),jQuery("#purchasekey").val(RVS.ENV.code),RVS.ENV.allow_update?jQuery("#updateplugin").removeClass("halfdisabled").text(RVS_LANG.securityupdate):jQuery("#updateplugin").removeClass("halfdisabled").text(RVS_LANG.updateNow),jQuery("#activated_ornot_box").removeClass("not_activated").html('<i class="material-icons">done</i>'+RVS_LANG.registered),RVS.ENV.selling?jQuery("#activateplugin").text(RVS_LANG.deregisterKey):jQuery("#activateplugin").text(RVS_LANG.deregisterCode),RVS.ENV.selling?jQuery("#activateplugintitle").text(RVS_LANG.registeredlicensekey):jQuery("#activateplugintitle").text(RVS_LANG.registeredpurchasecode),jQuery("#purchasekey_wrap").addClass("activated"),jQuery(".activate_to_unlock").hide(),jQuery("#buynow_notregistered").hide()):(jQuery("#rs_register_to_unlock").text(RVS_LANG.register_to_unlock),jQuery("#purchasekey").val(),RVS.ENV.allow_update?jQuery("#updateplugin").removeClass("halfdisabled").text(RVS_LANG.securityupdate):jQuery("#updateplugin").addClass("halfdisabled").text(RVS_LANG.activateToUpdate),jQuery("#activated_ornot_box").addClass("not_activated").html('<i class="material-icons">do_not_disturb</i>'+RVS_LANG.notRegisteredNow),RVS.ENV.selling?jQuery("#activateplugin").text(RVS_LANG.registerKey):jQuery("#activateplugin").text(RVS_LANG.registerCode),RVS.ENV.selling?jQuery("#activateplugintitle").text(RVS_LANG.registerlicensekey):jQuery("#activateplugintitle").text(RVS_LANG.registerpurchasecode),jQuery("#purchasekey_wrap").removeClass("activated"),jQuery(".activate_to_unlock").show(),jQuery("#buynow_notregistered").show()),RVS.F.compareVersion(RVS.ENV.latest_version,RVS.ENV.revision)<=0&&!0!==RVS.ENV.allow_update?jQuery("#updateplugin").hide():jQuery("#updateplugin").show()},RVS.F.createNewFolder=function(i){o({keepOverlay:!1});var e=void 0!==i&&void 0!==i.foldername?{title:i.foldername}:{};-1!==sliderLibrary.selectedFolder&&(e.parentFolder=sliderLibrary.selectedFolder),RVS.F.ajaxRequest("create_slider_folder",e,function(e){e.folder.parent=sliderLibrary.selectedFolder,-1!==sliderLibrary.selectedFolder&&sliderLibrary.sliders[RVS.F.getOVSliderIndex(sliderLibrary.selectedFolder)].children.push(e.folder.id),e.success&&sliderLibrary.sliders.push(e.folder),resetAllOVFilters(),void 0!==i&&i.enter?(sliderLibrary.selectedFolder=e.folder.id,sliderLibrary.filters=buildModuleFilters()):(sliderLibrary.filters=buildModuleFilters(),jQuery("#slider_id_"+e.folder.id).addClass("selected")),e.success&&void 0!==i&&void 0!==i.callBack&&RVS.DOC.trigger(i.callBack,i.callBackParam)})};function i(){var e,i="";for(RVS.S.glob_cus_fonts=void 0===RVS.S.glob_cus_fonts?jQuery("#global_custom_fonts"):RVS.S.glob_cus_fonts,e=0;e<RVS.SLIDER.globals.customFontList.length;e++)i+=r(e);RVS.S.glob_cus_fonts[0].innerHTML=i,RVS.C.rbgf=void 0===RVS.C.rbgf?jQuery("#rbm_globalfontsettings"):RVS.C.rbgf,RVS.F.initOnOff(RVS.C.rbgf),RVS.F.updateEasyInputs({container:RVS.C.rbgf,path:"",trigger:"init"})}var r=function(e){var i='<div id="global_custom_font_row_'+e+'" class="global_custom_font_row">';return(i+='<input type="text" style="width:180px; margin-right:20px;" data-r="globals.customFontList.'+e+'.family" class="easyinit globalinput" placeholder="ie. font-family-name">')+('<input type="text" data-r="globals.customFontList.'+e+'.url" style="width:180px; margin-right:20px;" class="easyinit globalinput" placeholder="ie. https://customfont.css">')+('<input type="text" style="width:180px; margin-right:20px;" data-r="globals.customFontList.'+e+'.weights" class="easyinit globalinput" placeholder="ie. 400,600,800">')+('<div style="width:75px;margin-left:10px;display:inline-block"><input type="checkbox" class="easyinit globalinput" data-r="globals.customFontList.'+e+'.frontend"></div>')+('<div style="width:75px;display:inline-block"><input type="checkbox" class="easyinit globalinput" data-r="globals.customFontList.'+e+'.backend"></div>')+('<div data-todelete="'+e+'" class="deletecustomglobalfont basic_action_button onlyicon "><i class="material-icons">delete</i></div>')+"</div>"},a=function(e){void 0===RVS.C.trust&&(RVS.C.trust=document.getElementById("register_trustpilot_wrap"),RVS.DOC.on("click","#trust_closer, #trustpilotlink",function(){RVS.C.trust.dataset.state="close",RVS.F.ajaxRequest("deactivate_trustpilot",{},function(e){a("close")},void 0,void 0,void 0,!0)})),RVS.ENV.activated?void 0===e&&""===RVS.C.trust.dataset.state||void 0===RVS.C.trust.dataset.state?RVS.C.trust.style.display="block":"show"===RVS.C.trust.dataset.state||"show"===e?(RVS.C.trust.style.display="block",tpGS.gsap.fromTo(RVS.C.trust,.3,{marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0,scaleY:0,overflow:"hidden"},{marginBottom:"100px",paddingTop:"30px",paddingBottom:"30px",opacity:1,scaleY:1}),RVS.C.trust.dataset.state="show"):"close"===RVS.C.trust.dataset.state||"close"===e?(tpGS.gsap.to(RVS.C.trust,.3,{marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0,scaleY:0,overflow:"hidden",onComplete:function(){RVS.C.trust.style.display="none"}}),RVS.C.trust.dataset.state="close"):RVS.C.trust.style.display="none":RVS.C.trust.style.display="none"};function t(){for(var e in sliderLibrary.slidesOrder=void 0===sliderLibrary.slidesOrder?{}:sliderLibrary.slidesOrder,sliderLibrary.slidesOrder[sliderLibrary.selectedSlider]=new Array(500),sliderLibrary.slides[sliderLibrary.selectedSlider])sliderLibrary.slides[sliderLibrary.selectedSlider].hasOwnProperty(e)&&(sliderLibrary.slidesOrder[sliderLibrary.selectedSlider][parseInt(sliderLibrary.slides[sliderLibrary.selectedSlider][e].order,0)]=sliderLibrary.slides[sliderLibrary.selectedSlider][e].id)}function u(){window.scroll_top=RVS.WIN.scrollTop();var e,i=-1;for(e in window.cacheOMT=jQuery("#rs_overview").offset().top,tpGS.gsap.set(RVS.C.rsOVM,{top:Math.max(32,window.cacheOMT-window.scroll_top)}),window.ov_scroll_targets)window.ov_scroll_targets.hasOwnProperty(e)&&0<window.ov_scroll_targets[e].obj.length&&(window.ov_scroll_targets[e].top=window.ov_scroll_targets[e].obj.offset().top,!window.ov_scroll_targets[e].shown&&window.ov_scroll_targets[e].top<window.scroll_top+window.outerHeight-200&&(tpGS.gsap.to(window.ov_scroll_targets[e].obj[0],1,{autoAlpha:1,ease:"power3.inOut"}),window.ov_scroll_targets[e].shown=!0),window.ov_scroll_targets[e].height=window.ov_scroll_targets[e].obj.height(),window.scroll_top+200>=window.ov_scroll_targets[e].top)&&window.scroll_top<=window.ov_scroll_targets[e].top+window.ov_scroll_targets[e].height&&(i=e);i=-1===i?window.ov_scroll_targets.length-1:i,jQuery(".rso_scrollmenuitem").removeClass("active"),window.ov_scroll_targets[i].menu.addClass("active")}function l(){tpGS.gsap.set("#rs_overview_menu",{width:jQuery("#wpbody").width()}),jQuery("#wpadmin_overlay").width(jQuery("#adminmenuback").width()),jQuery("#wpadmin_overlay_top").height(jQuery("#wpadminbar").height()),u()}function o(i){i.keepOverlay||jQuery(".overview_elements").removeClass("infocus"),jQuery(".rs_library_el_next").hide(),jQuery(".rs_library_element.selected").each(function(){var e=jQuery(this);void 0!==i.id&&e.id===i.id||(tpGS.gsap.to(e.find(".rsle_tbar"),.3,{y:"-100%",transformOrigin:"50% 0%",ease:"power3.out"}),e.removeClass("menuopen"),setTimeout(function(){window.lastBreacCrumbText="",jQuery("#rsl_bread_selected").html(window.lastBreacCrumbText),e.removeClass("selected")},300))})}function d(e,i){if(void 0!==i&&void 0!==e)if(Array.isArray(i))for(var r in i)i.hasOwnProperty(r)&&-1==jQuery.inArray(i[r],e)&&e.push(i[r]);else-1==jQuery.inArray(i,e)&&e.push(i);return e}function n(e){if(void 0!==e.array&&0<e.array.length)for(var i in e.array)e.array.hasOwnProperty(i)&&((i=e.sanitize?new Option(RVS.F.sanitize_input(RVS.F.capitalise(e.array[i])),e.array[i],!1,e.old===e.array[i]):new Option(RVS.F.capitalise(e.array[i]),e.array[i],!1,e.old===e.array[i])).className="dynamicadded",e.select.append(i))}updateGoogleFontRequirements=function(){RVS.F.askForGoogleFontUpdateNow=function(){RVS.F.RSDialog.create({bgopacity:.85,modalid:"rbm_decisionModal",icon:"font_download",title:RVS_LANG.gfontsprecache,maintext:RVS_LANG.gfontsprecachenote,subtext:RVS_LANG.gfontsprecachenotesub,do:{icon:"check_circle",text:RVS_LANG.processnow,event:"preLoadCacheButtonClick",keepDialog:!0},cancel:{icon:"cancel",text:RVS_LANG.processlater},swapbuttons:!0})},RVS.DOC.on("preLoadCacheButtonClick",function(){RVS.F.RSDialog.close(),setTimeout(RVS.F.preLoadCacheButtonFunction,50)}),RVS.F.precacheNextGoogleFont=function(){RVS.S.precachedListIndex<RVS.S.precachedList.length?(RVS.C.precachecurrent.innerHTML=RVS.S.precachedList[RVS.S.precachedListIndex],RVS.S.precachedListIndex++,RVS.C.precacheamount.innerHTML=RVS.S.precachedListIndex+" of "+RVS.S.precachedList.length,RVS.C.precacheAvarage=((new Date).getTime()-RVS.C.precacheRunningTime)/1e3,RVS.C.precacheAvarage=0==RVS.C.precacheAvarage||RVS.S.precachedListIndex<2?4.8:RVS.C.precacheAvarage/RVS.S.precachedListIndex,RVS.C.precacheRemain.innerHTML=Math.max(1,Math.round((RVS.S.precachedList.length-RVS.S.precachedListIndex)*RVS.C.precacheAvarage)),RVS.F.ajaxRequest("load_google_font",{font:RVS.S.precachedList[RVS.S.precachedListIndex-1]},function(e){RVS.C.precacheamount.innerHTML=RVS.S.precachedListIndex+" of "+RVS.S.precachedList.length,RVS.F.precacheNextGoogleFont()},!0)):RVS.F.RSDialog.close()},RVS.F.checkPreloadCacheButtons=function(e){void 0!==RVS&&void 0!==RVS.SLIDER&&null!=RVS.SLIDER.globals&&("preload"===RVS.SLIDER.globals.fontdownload?(RVS.C.deletFullCacheButton.show(),RVS.C.preLoadCacheButton.show(),!0!==e&&RVS.F.askForGoogleFontUpdateNow()):(RVS.C.deletFullCacheButton.hide(),RVS.C.preLoadCacheButton.hide()))},RVS.C.deletFullCacheButton=jQuery("#rs-grid-delete-fonts-cache"),RVS.C.preLoadCacheButton=jQuery("#rs-grid-preload-fonts-cache"),RVS.C.gFontSelect=document.getElementById("fontdownload"),RVS.C.precacheAvarage=4.8,RVS.C.precacheRemain=document.getElementById("aproxgloadtime"),RVS.F.collectGoogleFonts=function(i){i=null==i?1:parseInt(i),RVS.F.ajaxRequest("collect_google_fonts",{page:i},function(e){void 0!==e&&void 0!==e.fonts?(RVS.S.precachedListOriginal=jQuery.extend(!0,RVS.S.precachedListOriginal,e.fonts),e.more?(i++,RVS.F.collectGoogleFonts(i)):(RVS.F.showWaitAMinute({fadeOut:500,text:RVS_LANG.collectinggooglefonts}),setTimeout(function(){for(var e in RVS.S.precachedListOriginal)RVS.S.precachedListOriginal.hasOwnProperty(e)&&RVS.S.precachedList.push(e);RVS.F.RSDialog.create({modalid:"rbm_googleprecaching",bgopacity:.85}),RVS.C.precacheamount=document.getElementById("rs-fontprecache-amount"),RVS.C.precachecurrent=document.getElementById("rs-fontprecaching"),RVS.C.precacheamount.innerHTML="0 of "+RVS.S.precachedList.length,RVS.C.precacheRemain.innerHTML=Math.round(RVS.S.precachedList.length*RVS.C.precacheAvarage),RVS.C.precacheRunningTime=(new Date).getTime(),RVS.F.precacheNextGoogleFont()},100))):RVS.F.showWaitAMinute({fadeOut:500})},!0)},RVS.F.preLoadCacheButtonFunction=function(){RVS.S.precachedListOriginal,RVS.S.precachedList=[],RVS.S.precachedListIndex=0,RVS.F.showWaitAMinute({fadeIn:500,text:RVS_LANG.collectinggooglefonts}),RVS.F.collectGoogleFonts(1)},RVS.C.deletFullCacheButton.on("click",function(){RVS.F.ajaxRequest("delete_full_fonts_cache",{},function(){RVS.F.preLoadCacheButtonFunction()},!0)}),RVS.C.preLoadCacheButton.on("click",RVS.F.preLoadCacheButtonFunction),RVS.DOC.on("click","#rbm_googleprecaching .rbm_close",function(){RVS.S.precachedListIndex=1e3}),null!=RVS.C.gFontSelect&&null!==RVS.C.gFontSelect&&null==RVS.C.gfontSelectListener&&(RVS.C.gfontSelectListener=!0,RVS.F.checkPreloadCacheButtons(!0),jQuery(RVS.C.gFontSelect).on("change",function(){RVS.SLIDER.globals.fontdownload=this.value,RVS.F.checkPreloadCacheButtons()}))},openGlobalSettings=function(){window.initGlobalSettings||(RVS.C.rbgf=void 0===RVS.C.rbgf?jQuery("#rbm_globalfontsettings"):RVS.C.rbgf,RVS.C.rbgs=void 0===RVS.C.rbgs?jQuery("#rbm_globalsettings"):RVS.C.rbgs,RVS.F.initOnOff(RVS.C.rbgs),window.revbuilder=void 0===window.revbuilder?{}:window.revbuilder,RVS.SLIDER=void 0===RVS.SLIDER?{}:RVS.SLIDER,RVS.F.ajaxRequest("get_global_settings",{},function(e){e.success&&(RVS.SLIDER.globals=RVS.F.getNewGlobalObject(e.global_settings),window.initGlobalSettings=!0,RVS.F.updateEasyInputs({container:RVS.C.rbgs,path:"",trigger:"init"}),updateGoogleFontRequirements())}),RVS.DOC.on("click",".deletecustomglobalfont",function(e){RVS.SLIDER.globals.customFontList.splice(this.dataset.todelete,1),i()}),RVS.DOC.on("click","#add_new_custom_font",function(){RVS.SLIDER.globals.customFontList.length<9&&(RVS.S.glob_cus_fonts[0].innerHTML+=r(RVS.SLIDER.globals.customFontList.length),RVS.SLIDER.globals.customFontList.push({family:"",url:"",frontend:!1,backend:!0,weights:"200,300,400,500,600,700,800,900"}),RVS.F.initOnOff(RVS.C.rbgf),RVS.F.updateEasyInputs({container:RVS.C.rbgf,path:"",trigger:"init"}))}),RVS.DOC.on("click","#rs_gl_custom_fonts",function(){i(),RVS.F.RSDialog.create({modalid:"rbm_globalfontsettings",bgopacity:.85})}),RVS.DOC.on("click","#rbm_globalfontsettings .rbm_close",function(){RVS.F.RSDialog.close()}),jQuery("#rbm_globalsettings_savebtn").off("click").on("click",function(){RVS.F.ajaxRequest("update_global_settings",{global_settings:RVS.SLIDER.globals},function(e){RVS.F.RSDialog.close()})}),jQuery("#add_custom_global_fonts").off("click").on("click",function(){RVS.SLIDER.globals.customfonts[RVS.SLIDER.globals.customfonts.length]="",jQuery("#general_custom_fonts_list").append('<label_a></label_a><input type="text" class="easyinit globalinput" data-r="globals.customfonts.'+(RVS.SLIDER.globals.customfonts.length-1)+'" placeholder="font-family, style1, style2"><span class="linebreak"></span>')})),RVS.F.RSDialog.create({modalid:"rbm_globalsettings",bgopacity:.85})},initBasics=function(){jQuery("#newsletter_mail").val(""),tpGS.gsap.set(".plugin_inforow",{autoAlpha:0}),window.tp_twitter=initTwitter("twitter_timeline"),initFeatureSliders()},initFeatureSliders=function(){jQuery(".feature_slider").each(function(){jQuery(this).show().revolutionInit({jsliderType:"hero",visibilityLevels:"9999,9999,9999,9999",gridwidth:380,gridheight:430,perspective:600,perspectiveType:"global",lazyloaddata:"lazy-src",editorheight:"330",responsiveLevels:"9999,9999,9999,9999",progressBar:{disableProgressBar:!0},navigation:{onHoverStop:!1},viewPort:{enable:!0},fallbacks:{allowHTML5AutoPlayOnAndroid:!0}})})},drawOVOverview=function(e){e=void 0===e?{noanimation:!1}:e;var i=sliderLibrary.output.find(".overview_elements");if(i.find(".rsl_breadcrumb_wrap").remove(),-1!==sliderLibrary.selectedFolder||sliderLibrary.inSlideMode){var r=(r='<div class="rsl_breadcrumb_wrap">')+('<div class="rsl_breadcrumb" data-folderid="-1"><i class="material-icons">apps</i>'+RVS_LANG.simproot+"</div>")+'<i class="rsl_breadcrumb_div material-icons">keyboard_arrow_right</i>';if(-1!==sliderLibrary.selectedFolder){for(var t="",s=sliderLibrary.selectedFolder;-1!==s;)var d=RVS.F.getOVSliderIndex(s),t='<div class="rsl_breadcrumb" data-folderid="'+s+'"><i class="material-icons">folder_open</i>'+sliderLibrary.sliders[d].title+'</div><i class="rsl_breadcrumb_div material-icons">keyboard_arrow_right</i>'+t,s=sliderLibrary.sliders[d].parent||-1;r+=t}sliderLibrary.inSlideMode&&(r+='<div class="rsl_breadcrumb" data-folderid="'+sliderLibrary.sliders[RVS.F.getOVSliderIndex(sliderLibrary.selectedSlider)].parent+'"><i class="material-icons">burst_mode</i>'+sliderLibrary.sliders[RVS.F.getOVSliderIndex(sliderLibrary.selectedSlider)].title+'</div><i class="rsl_breadcrumb_div material-icons">keyboard_arrow_right</i>'),i.append(r=r+'<div id="rsl_bread_selected" class="rsl_breadcrumb"></div>'+"</div>")}sliderLibrary.inSlideMode,-1!=sliderLibrary.selectedFolder||sliderLibrary.inSlideMode?sliderLibrary.backOneLevel.appendTo(i):sliderLibrary.backOneLevel.detach();var a=0;if(!0!==sliderLibrary.inSlideMode)for(var l in sliderLibrary.sliders)sliderLibrary.sliders.hasOwnProperty(l)&&(o=sliderLibrary.sliders[l],void 0===sliderLibrary.pages||0<=jQuery.inArray(o.id,sliderLibrary.pages[sliderLibrary.selectedPage-1])?(a++,void 0!==o.ref&&o.folder&&o.ref.remove(),0===o.slide_id&&!0===o.folder&&(o.slide_id=Math.round(1e8*Math.random())),o.ref=void 0===o.ref||o.folder?buildOVElement(o):o.ref,e.noanimation||tpGS.gsap.fromTo(o.ref,.4,{autoAlpha:0,scale:.8,transformOrigin:"50% 50%",force3D:!0},{scale:1,autoAlpha:1,ease:"power3.inOut",delay:.02*a}),o.ref.appendTo(i),doOVDraggable(o.ref)):void 0!==o.ref&&o.ref.detach());else{i.find(".rs_library_element").detach(),tpGS.gsap.to("#modulesoverviewheader, #modulesoverviewfooter",.5,{autoAlpha:0,opacity:0,ease:"power3.inOut"});var o,n,c=1;for(l in sliderLibrary.slidesOrder[sliderLibrary.selectedSlider])void 0!==(d=sliderLibrary.slidesOrder[sliderLibrary.selectedSlider][l])&&sliderLibrary.slides[sliderLibrary.selectedSlider].hasOwnProperty(d)&&(o=sliderLibrary.slides[sliderLibrary.selectedSlider][d],a++,n=getSliderObjFromList(sliderLibrary.selectedSlider),o.ref=void 0===o.ref?buildOVElement({premium:void 0!==n?n.premium:void 0,order:c,title:o.title,bg:o.customAdminThumbSrc,id:sliderLibrary.selectedSlider,slide_id:o.id,type:"slide",state:o.state}):o.ref,o.ref.appendTo(i),c++,e.noanimation||tpGS.gsap.fromTo(o.ref,.4,{autoAlpha:0,scale:.8,transformOrigin:"50% 50%",force3D:!0},{scale:1,autoAlpha:1,ease:"power3.inOut",delay:.02*a}));doOVSortable(i)}u()},getSliderObjFromList=function(e){var i,r;for(r in sliderLibrary.sliders)void 0===i&&sliderLibrary.sliders.hasOwnProperty(r)&&""+sliderLibrary.sliders[r].id==""+e&&(i=sliderLibrary.sliders[r]);return i},buildOVElement=function(e,i){var r=e.folder?"folder_library_element":"",t=jQuery('<div class="image_container_underlay"></div>'),s=e.premium?'<div class="rs_lib_premium_wrap"><div class="rs_lib_premium_lila">'+RVS_LANG.premium+'</div><div class="rs_lib_premium_red"><i class="material-icons">visibility_off</i>'+RVS_LANG.premium+'</div><div class="rs_lib_premium_red_hover"><i class="material-icons">visibility_off</i>'+RVS_LANG.premiumunlock+"</div></div>":"";if((obj=i?jQuery('<div data-itemtype="'+e.type+'" data-sliderid="'+e.id+'" data-slideid="'+e.slide_id+'" class="folder_in_list rs_library_element '+r+'">'+s+'<div class="rsle_footer"><input class="title_container" value="'+e.title+'""><i class="show_rsle material-icons">keyboard_arrow_down</i></div></div>'):jQuery('<div data-itemtype="'+e.type+'" data-sliderid="'+e.id+'" id="slider_id_'+e.id+'" data-slideid="slide_id_'+e.slide_id+'" class="'+("unpublished"===e.state?"unpublished":"")+" rs_library_element "+r+'">'+s+'<div class="rsle_footer">'+("slide"===e.type?'<div id="slide_order_number'+e.slide_id+'" class="slide_order_number">#'+e.order+"</div>":"")+'<div class="rs_library_el_next"></div><input data-id="'+e.id+'" data-slideid="'+e.slide_id+'" id="slider_title_'+e.slide_id+'" class="title_container '+("slide"===e.type?"slide_with_number":"")+'" value="'+e.title+'""><i class="material-icons iconofunpublished">visibility_off</i><i class="show_rsle material-icons">arrow_drop_down</i></div></div>')).append(t),!i){var d='<div class="rsle_tbar">',r=e.folder?jQuery('<div class="link_to_slideadmin enter_into_folder" data-info="'+RVS_LANG.openFolder+'" data-folderid="'+e.id+'"></div>'):jQuery('<div class="link_to_slideadmin '+("slide"!==e.type&&1<e.slide_ids.length?"pull_icon_left":"")+'" data-title="'+e.title+'" data-info="'+RVS_LANG.openInEditor+'"><div class="link_to_quickeditor" data-info="'+RVS_LANG.openQuickEditor+'"><i class="material-icons">text_format</i></div><div class="link_to_quickstyleeditor" data-info="'+RVS_LANG.openQuickStyleEditor+'"><i class="material-icons">style</i></div><a class="link_to_slideadmin_a" data-title="'+e.title+'" data-info="'+RVS_LANG.openInEditor+'" href="'+RVS.ENV.admin_url+"&view=slide&id="+e.slide_id+'"><i class="material-icons">edit</i></a></div>'),s=e.folder||"slide"===e.type||e.slide_ids.length<2?"":jQuery('<div class="link_to_slides_overview" data-info="'+RVS_LANG.showSlides+'" data-title="'+e.title+'" data-id="'+e.id+'"><i class="material-icons">burst_mode</i></div>');if("slide"!==e.type&&(d+='<div class="rsle_tool embedslider" data-id="'+e.id+'"><i class="material-icons">add_to_queue</i><span class="rsle_ttitle">'+RVS_LANG.embed+"</span></div>"),"slide"!==e.type&&(d+='<div class="rsle_tool exportslider" data-id="'+e.id+'" ><i class="material-icons">file_download</i><span class="rsle_ttitle">'+RVS_LANG.export+"</span></div>"),"slide"!==e.type&&(d+='<div class="rsle_tool exporthtmlslider" data-id="'+e.id+'" ><i class="material-icons">code</i><span class="rsle_ttitle">'+RVS_LANG.exporthtml+"</span></div>"),"slide"!==e.type&&(d+='<div class="rsle_tool duplicateslider" data-id="'+e.id+'" ><i class="material-icons">content_copy</i><span class="rsle_ttitle">'+RVS_LANG.duplicate+"</span></div>"),"slide"!==e.type&&(d+='<div class="rsle_tool previewslider" data-title="'+e.title+'" data-id="'+e.id+'" ><i class="material-icons">search</i><span class="rsle_ttitle">'+RVS_LANG.preview+"</span></div>"),"slide"!==e.type&&(d+='<div class="rsle_tool tagsslider" data-id="'+e.id+'" ><i class="material-icons">local_offer</i><span class="rsle_ttitle">'+RVS_LANG.tags+"</span></div>"),d+='<div class="rsle_tool renameslider" data-id="'+e.id+'" ><i class="material-icons">title</i><span class="rsle_ttitle">'+RVS_LANG.rename+"</span></div>","slide"===e.type&&(d+='<div class="rsle_tool publishslide" data-id="'+e.id+'" data-slideid="'+e.slide_id+'" ><i class="material-icons">visibility</i><span class="rsle_ttitle">'+RVS_LANG.publish+"</span></div>"),"slide"===e.type&&(d+='<div class="rsle_tool unpublishslide" data-id="'+e.id+'" data-slideid="'+e.slide_id+'"><i class="material-icons">visibility_off</i><span class="rsle_ttitle">'+RVS_LANG.unpublish+"</span></div>"),"slide"===e.type&&(d+='<div class="rsle_tool duplicateslide" data-id="'+e.id+'" data-slideid="'+e.slide_id+'"><i class="material-icons">content_copy</i><span class="rsle_ttitle">'+RVS_LANG.duplicate+"</span></div>"),"slide"===e.type&&(d+='<div class="rsle_tool deleteslider" data-id="'+e.id+'" data-slideid="'+e.slide_id+'"><i class="material-icons">delete</i><span class="rsle_ttitle">'+RVS_LANG.delete+"</span></div>"),e.folder||(d+='<div class="rsle_tool adminthumb" data-id="'+e.id+'" data-slideid="'+e.slide_id+'" ><i class="material-icons">photo</i><span class="rsle_ttitle">'+RVS_LANG.thumbnail+"</span></div>"),"slide"===e.type||e.folder||(d+='<div class="rsle_tool optimizeslider" data-id="'+e.id+'" ><i class="material-icons">flash_on</i><span class="rsle_ttitle">'+RVS_LANG.optimize+"</span></div>"),"slide"!==e.type&&(d+='<div class="rsle_tool deleteslider" data-id="'+e.id+'" ><i class="material-icons">delete</i><span class="rsle_ttitle">'+RVS_LANG.delete+"</span></div>"),"slide"!==e.type){for(var a in d+='<div class="rsle_tool_tagwrap"><select data-id="'+e.id+'" id="tags_'+e.id+'" class="elementtags searchbox" multiple="multiple" data-theme="blue">',sliderLibrary.filters.tags)sliderLibrary.filters.tags.hasOwnProperty(a)&&(d+="<option "+(0<=jQuery.inArray(sliderLibrary.filters.tags[a].toLowerCase(),e.tags)?' selected="selected" ':"")+'value="'+RVS.F.sanitize_input(sliderLibrary.filters.tags[a].toLowerCase())+'">'+RVS.F.sanitize_input(sliderLibrary.filters.tags[a])+"</option>");d+="</select></div></div>"}d=jQuery(d),obj.append(r),e.folder||obj.append(s),obj.append(d),d.find(".elementtags").ddTP({tags:!0,tokenSeparators:[","," "]}),d.find(".elementfolders").ddTP(),e.folder||obj.append('<div class="rsle_move_and_edit" data-info="'+RVS_LANG.moveToFolder+'"></div>')}if(e.children&&0<e.children.length){var l=[],o=!1;for(a in e.children)if(e.children.hasOwnProperty(a)){for(var n in o=!1,sliderLibrary.sliders)if(sliderLibrary.sliders.hasOwnProperty(n)&&sliderLibrary.sliders[n].id==e.children[a]){o=!0;break}o&&l.push(e.children[a])}e.children=l}if(e.folder)if(-1!=e.id&&"root"!=e.quicktype||(obj.addClass("rootlevel_wrap"),t.append('<div class="rootfolder"><i class="material-icons">apps</i><span class="nsb_title">'+RVS_LANG.root+"</span></div>")),"parent"===e.quicktype)obj.addClass("rootlevel_wrap"),t.append('<div class="rootfolder"><i class="material-icons">reply</i><span class="nsb_title">'+RVS_LANG.parent+"</span></div>"),obj.append(jQuery('<div class="rsle_folder"><i class="material-icons">folder_open</i></div>'));else{obj.append(jQuery('<div class="rsle_folder"><i class="material-icons">folder_open</i></div>'));for(a=1;a<=4;a++){var c,u=jQuery('<div class="folder_img_placeholder folder_img_'+a+'"></div>');void 0!==e.children&&e.children.length>=a&&-1!==(c=findRekursiveChildImage(RVS.F.getOVSliderIndex(e.children[e.children.length-a])))&&!1!==c&&RVS.F.setObjBg(sliderLibrary.sliders[c],u),t.append(u)}}else{i=jQuery('<div class="image_container"></div>');obj.append(i),RVS.F.setObjBg(e,i)}return obj},findRekursiveChildImage=function(e,i){if(i=void 0!==i&&i,!0===sliderLibrary.sliders[e].folder&&!0!==i){var r,t,s=sliderLibrary.sliders[e].children.length-1;for(r in sliderLibrary.sliders[e].children)!1===i&&(t=RVS.F.getOVSliderIndex(sliderLibrary.sliders[e].children[s-r]),void 0!==sliderLibrary.sliders[t]&&!0===sliderLibrary.sliders[t].folder?i=findRekursiveChildImage(t,i):void 0!==sliderLibrary.sliders[t]&&""!==sliderLibrary.sliders[t].bg&&(i=t))}else void 0!==sliderLibrary.sliders[e]&&""!==sliderLibrary.sliders[e].bg&&(i=e);return i},buildOVPagination=function(e){if(sliderLibrary.inSlideMode)tpGS.gsap.to("#modulesoverviewheader, #modulesoverviewfooter",.5,{autoAlpha:0,opacity:0,ease:"power3.inOut"});else{var i=Math.max(1,Math.floor((sliderLibrary.output.width()+30)/290)),r=i,t=RVS.F.getCookie("rs6_overview_pagination");if(sliderLibrary.maxAmountPerPage!==i){jQuery("#pagination_select_2").ddTP("destroy"),sliderLibrary.maxAmountPerPage=i;for(var s=0;s<=4;s++){var d=document.getElementById("page_per_page_"+s);d.value=r,d.selected=d.value===t,d.innerHTML=RVS_LANG.show+" "+r+" "+RVS_LANG.perpage,r*=2}jQuery("#pagination_select_2").ddTP()}sliderLibrary.inited=!0,sliderLibrary.sliders.length<=i?(sliderLibrary.output.find(".overview_header_footer").hide(),sliderLibrary.output.find(".overview_pagination").val("all")):sliderLibrary.output.find(".overview_header_footer").show(),sliderLibrary.selectedPage=e.keeppage&&0<jQuery(".page_button.global_library_pagination.selected").length?jQuery(".page_button.global_library_pagination.selected").data("page"):1;var a,l,o=sliderLibrary.output.find(".ov-pagination"),i=sliderLibrary.output.find(".overview_pagination")[0].value||4,n=0,e=sliderLibrary.filteredList.length,e=-1!=sliderLibrary.selectedFolder?e+Math.ceil(e/parseInt(i)):e;if(sliderLibrary.pageAmount="all"===i?1:Math.ceil(e/parseInt(i)),sliderLibrary.itemPerPage="all"===i?99999:parseInt(i),sliderLibrary.itemPerPage=-1!=sliderLibrary.selectedFolder?sliderLibrary.itemPerPage-1:sliderLibrary.itemPerPage,o[0].innerHTML="",sliderLibrary.selectedPage=sliderLibrary.selectedPage>sliderLibrary.pageAmount?sliderLibrary.pageAmount:sliderLibrary.selectedPage,1<sliderLibrary.pageAmount)for(s=1;s<=sliderLibrary.pageAmount;s++)a=s!==sliderLibrary.selectedPage?"":"selected",o[0].innerHTML+='<div data-page="'+s+'" class="'+a+' page_button global_library_pagination">'+s+"</div>",1===s?o[0].innerHTML+='<div data-page="-9999" class="page_button global_library_pagination">...</div>':s===sliderLibrary.pageAmount-1&&(o[0].innerHTML+='<div data-page="9999" class="page_button global_library_pagination">...</div>');for(l in smartPagination(),sliderLibrary.pages=[],sliderLibrary.pages.push([]),sliderLibrary.filteredList)sliderLibrary.filteredList.hasOwnProperty(l)&&(sliderLibrary.pages[sliderLibrary.pages.length-1].push(sliderLibrary.filteredList[l]),++n===sliderLibrary.itemPerPage)&&(n=0,sliderLibrary.pages.push([]))}},resetAllOVFilters=function(){sliderLibrary.selectedPage=1,jQuery("#sel_overview_sorting").val("datedesc").ddTP("change"),jQuery("#sel_overview_filtering").val("all").ddTP("change"),RVS.DOC.trigger("updateSlidersOverview",{val:"datedesc",eventparam:"#reset_sorting",ignoreRebuild:!0,ignoreCookie:!0}),RVS.DOC.trigger("updateSlidersOverview",{val:"all",eventparam:"#reset_filtering",ignoreCookie:!0})},smartPagination=function(){sliderLibrary.pageAmount=parseInt(sliderLibrary.pageAmount,0),sliderLibrary.selectedPage=parseInt(sliderLibrary.selectedPage,0),jQuery(".page_button.global_library_pagination").each(function(){var e=parseInt(this.dataset.page,0),i=!1;1!==e&&e!==sliderLibrary.pageAmount||(i=!0),sliderLibrary.selectedPage<4&&0<e&&e<5&&(i=!0),sliderLibrary.selectedPage>sliderLibrary.pageAmount-3&&e>sliderLibrary.pageAmount-4&&e<9999&&(i=!0),e<9999&&e>=sliderLibrary.selectedPage-1&&e<=sliderLibrary.selectedPage+1&&0<e&&(i=!0),(4<=sliderLibrary.selectedPage&&-9999===e||sliderLibrary.selectedPage<=sliderLibrary.pageAmount-3&&9999===e)&&(i=!0),sliderLibrary.pageAmount<8&&(i=9999!=e&&-9999!=e),this.style.display=i?"inline-block":"none"})},filterMatch=function(e){return e.filter===e.o.source||e.filter===e.o.type||e.filter===e.o.size||0<=jQuery.inArray(e.filter,e.o.tags)},getParentPath=function(e){var i=[],r=0;for(i.push(e);-1!==e&&r<1e4;){r++;var t=RVS.F.getOVSliderIndex(e);e=-1!==t&&void 0!==sliderLibrary.sliders[t]&&sliderLibrary.sliders[t].parent||-1,i.push(e)}return i},updateOVFilteredList=function(e){e=void 0===e?{force:!1,keeppage:!1,noanimation:!1,focusItem:!1}:e;var i=sliderLibrary.output.find(".overview_filterby")[0].value;switch(sliderLibrary.output.find(".overview_sortby")[0].value){case"datedesc":sliderLibrary.sliders.sort(function(e,i){return i.id-e.id});break;case"title":sliderLibrary.sliders.sort(function(e,i){return e.title.toUpperCase().localeCompare(i.title.toUpperCase())});break;case"titledesc":sliderLibrary.sliders.sort(function(e,i){return i.title.toUpperCase().localeCompare(e.title.toUpperCase())});break;default:sliderLibrary.sliders.sort(function(e,i){return e.id-i.id})}sliderLibrary.oldlist=sliderLibrary.filteredList,sliderLibrary.filteredList=[];var r,t,s,d,a,l=jQuery("#searchmodules").val().toLowerCase();for(r in sliderLibrary.sliders)sliderLibrary.sliders.hasOwnProperty(r)&&((t=sliderLibrary.sliders[r]).parent=void 0===t.parent?-1:t.parent,a=getParentPath(t.parent),s=2<l.length&&0<=jQuery.inArray(sliderLibrary.selectedFolder,a)&&(0<=t.title.toLowerCase().indexOf(l)||0<=t.tags.toString().toLowerCase().indexOf(l))&&("all"==i||filterMatch({o:t,filter:i})),d=l.length<3&&"all"==i&&t.parent==sliderLibrary.selectedFolder,a=l.length<3&&filterMatch({o:t,filter:i})&&0<=jQuery.inArray(sliderLibrary.selectedFolder,a),s||d||a)&&sliderLibrary.filteredList.push(t.id);sliderLibrary.filteredList.length<1&&-1===sliderLibrary.selectedFolder&&0===l.length?tpGS.gsap.to("#modulesoverviewheader, #modulesoverviewfooter",.5,{autoAlpha:0,opacity:0,ease:"power3.inOut"}):tpGS.gsap.to("#modulesoverviewheader, #modulesoverviewfooter",.5,{autoAlpha:1,opacity:1,ease:"power3.inOut"}),sliderLibrary.isSlideMode&&tpGS.gsap.to("#modulesoverviewheader, #modulesoverviewfooter",.5,{autoAlpha:0,opacity:0,ease:"power3.inOut"}),!e.force&&JSON.stringify(sliderLibrary.oldlist)===JSON.stringify(sliderLibrary.filteredList)||(buildOVPagination({keeppage:e.keeppage,focusItem:e.focusitem}),drawOVOverview({noanimation:e.noanimation,focusItem:e.focusItem}))},updateParentAttributes=function(){for(var e in sliderLibrary.sliders)if(sliderLibrary.sliders.hasOwnProperty(e)&&sliderLibrary.sliders[e].folder)for(var i in sliderLibrary.sliders[e].children)sliderLibrary.sliders[e].children.hasOwnProperty(i)&&(0<=sliderLibrary.sliders[e].children.indexOf(sliderLibrary.sliders[e].parent)?sliderLibrary.sliders[e].parent=-1:-1!==(i=RVS.F.getOVSliderIndex(sliderLibrary.sliders[e].children[i]))&&(sliderLibrary.sliders[i].parent=sliderLibrary.sliders[e].id))},buildModuleFilters=function(){var e,i,r={folders:[],tags:[],types:[],sources:[],sizes:[]};for(e in r.folders.push({id:-1,title:"Root"}),sliderLibrary.sliders)sliderLibrary.sliders.hasOwnProperty(e)&&(i=sliderLibrary.sliders[e],r.tags=d(r.tags,i.tags),r.types=d(r.types,i.type),r.sources=d(r.sources,i.source),r.sizes=d(r.sizes,i.size),i.folder)&&r.folders.push({id:i.id});var t=sliderLibrary.output.find(".overview_filterby"),s=t.val();return t.find(".dynamicadded").remove(),n({select:t,array:r.tags,group:"Tags",old:s,sanitize:!0}),n({select:t,array:r.types,group:"Types",old:s}),n({select:t,array:r.sources,group:"Sources",old:s}),n({select:t,array:r.size,group:"Sizes",old:s}),t.ddTP({placeholder:"Select From List"}),r},drawFolderListSideBar=function(e){sliderLibrary.filters=buildModuleFilters(),window.showFolderOverview=tpGS.gsap.timeline(),sliderLibrary.sfw[0].innerHTML="",window.showFolderOverview.add(tpGS.gsap.fromTo(sliderLibrary.sfw,.6,{display:"none",x:-400},{display:"block",x:0,ease:"power3.out"}),.1),window.showFolderOverview.add(tpGS.gsap.fromTo(sliderLibrary.sfwu,.3,{display:"none",autoAlpha:0},{display:"block",autoAlpha:.5,ease:"power3.out"}),0);var i,r,t=void 0===e?void 0:sliderLibrary.sliders[RVS.F.getOVSliderIndex(e)],s="first_fwlt",d=(-1!==sliderLibrary.selectedFolder&&(sliderLibrary.sfw.append('<div class="folder_wrap_level_title '+s+'">'+RVS_LANG.toplevels+"</div>"),buildDroppableList(buildOVElement({id:-1,title:"Root",quicktype:"root",folder:!0,children:[]},!0),0),s=""),void 0!==t&&-1!==t.parent&&-1!==t.parent&&void 0!==(e=sliderLibrary.sliders[RVS.F.getOVSliderIndex(t.parent)])&&-1!==e.parent&&buildDroppableList(buildOVElement({id:e.parent,title:"Parent",quicktype:"parent",folder:!0,children:[]},!0),0),!1);for(i in sliderLibrary.filters.folders)sliderLibrary.filters.folders.hasOwnProperty(i)&&(r=RVS.F.getOVSliderIndex(sliderLibrary.filters.folders[i].id),void 0!==t&&void 0!==sliderLibrary.sliders[r]&&t.parent!==sliderLibrary.sliders[r].parent||-1!==r&&(!1===d&&(sliderLibrary.sfw.append('<div class="folder_wrap_level_title '+s+'">'+RVS_LANG.siblings+"</div>"),d=!0,s=""),buildDroppableList(buildOVElement({id:sliderLibrary.filters.folders[i].id,title:sliderLibrary.sliders[r].title,folder:!0,children:sliderLibrary.sliders[r].children},!0),i)));for(i in d=!1,sliderLibrary.filters.folders)sliderLibrary.filters.folders.hasOwnProperty(i)&&(r=RVS.F.getOVSliderIndex(sliderLibrary.filters.folders[i].id),void 0!==t&&void 0!==sliderLibrary.sliders[r]&&t.parent===sliderLibrary.sliders[r].parent||void 0!==t&&t.parent===sliderLibrary.filters.folders[i].id||-1!==r&&(!1===d&&(sliderLibrary.sfw.append('<div class="folder_wrap_level_title '+s+'">'+RVS_LANG.otherfolders+"</div>"),d=!0,s=""),buildDroppableList(buildOVElement({id:sliderLibrary.filters.folders[i].id,title:sliderLibrary.sliders[r].title,folder:!0,children:sliderLibrary.sliders[r].children},!0),i)));sliderLibrary.sfw.RSScroll({wheelPropagation:!1})},buildDroppableList=function(e,i){window.showFolderOverview.add(tpGS.gsap.from(e,.2,{x:"-150%",ease:"power3.out"}),.2+.04*i),doOVDroppable(e),sliderLibrary.sfw.append(e)},doOVDroppable=function(a){a.droppable({drop:function(e,i){var r,t=this.dataset.sliderid,i=i.draggable[0].dataset.sliderid,s=RVS.F.getOVSliderIndex(t),d=RVS.F.getOVSliderIndex(i);return t!==i&&(-1!=sliderLibrary.sliders[d].parent&&(r=RVS.F.getOVSliderIndex(sliderLibrary.sliders[d].parent),sliderLibrary.sliders[r].children.splice(jQuery.inArray(i,sliderLibrary.sliders[r].children),1),RVS.F.ajaxRequest("save_slider_folder",{id:sliderLibrary.sliders[r].id,children:sliderLibrary.sliders[r].children},function(e){})),-1!=a&&-1!==s&&(sliderLibrary.sliders[s].children=void 0===sliderLibrary.sliders[s].children||0===sliderLibrary.sliders[s].children.length?[]:sliderLibrary.sliders[s].children,sliderLibrary.sliders[s].children.push(i),RVS.F.ajaxRequest("save_slider_folder",{id:t,children:sliderLibrary.sliders[s].children},function(e){})),sliderLibrary.filters=buildModuleFilters(),sliderLibrary.sliders[d].parent=t,o({keepOverlay:!1}),updateOVFilteredList({force:!0,keeppage:!0,noanimation:!1})),window.showFolderOverview.reverse(),!(window.droppedIntoFolder=!0)}})},doOVDraggable=function(e){e.data("draggable")&&e.draggable("destroy"),e.draggable({distance:20,helper:"clone",appendTo:"body",revert:"invalid",start:function(e,i){window.droppedIntoFolder=!1,drawFolderListSideBar(i.helper[0].dataset.sliderid)},stop:function(e,i){!1===window.droppedIntoFolder&&(window.showFolderOverview.reverse(),o({keepOverlay:!1}),updateOVFilteredList({force:!0,keeppage:!0,noanimation:!1}))}})},doOVSortable=function(r){r.data("sortable")&&r.sortable("destroy"),r.sortable({items:".rs_library_element",start:function(){o({keepOverlay:!1}),RVS.S.OVslidesOldOrder=[],r.find(".rs_library_element").each(function(e){var i=(""+this.dataset.slideid).replace("slide_id_","");void 0!==i&&"undefined"!==i&&RVS.S.OVslidesOldOrder.push(i)})},stop:function(e,i){RVS.S.OVslidesNeworder=[],r.find(".rs_library_element").each(function(e){var i=(""+this.dataset.slideid).replace("slide_id_","");(slide=sliderLibrary.slides[this.dataset.sliderid][i]).order=e+1,slide.ref.find(".slide_order_number").html("#"+(e+1)),RVS.S.OVslidesNeworder.push(i),0===e&&(i=RVS.F.getOVSliderIndex(this.dataset.sliderid),sliderLibrary.sliders[i].bg.type=(void 0===slide.bg?slide.customAdminThumbSrc:slide.bg).type,sliderLibrary.sliders[i].bg.src=(void 0===slide.bg?slide.customAdminThumbSrc:slide.bg).src,sliderLibrary.sliders[i].bg.style=(void 0===slide.bg?slide.customAdminThumbSrc:slide.bg).style,RVS.F.setObjBg(sliderLibrary.sliders[i],sliderLibrary.sliders[i].ref.find(".image_container")))}),RVS.S.OVslidesOldOrder.toString()!==RVS.S.OVslidesNeworder.toString()&&RVS.F.ajaxRequest("update_slide_order",{slide_ids:RVS.S.OVslidesNeworder},function(e){})}})},initTwitter=function(e){var i=document.getElementsByTagName("script")[0],r=RVS.F.cE({t:"script"});return r.id=e,r.src="https://platform.twitter.com/widgets.js",i.parentNode.insertBefore(r,i),window.waitForTwitter=setInterval(function(){var e;0<jQuery("#twitter_wrapper iframe").contents().find(".timeline-Widget").length&&((e=jQuery("#twitter_wrapper iframe").contents()).find(".timeline-Widget").css({backgroundColor:"transparent"}),e.find(".timeline-Body").css({borderColor:"#323438"}),e.find(".timeline-Tweet-text").css({fontSize:"14px",lineHeight:"22px"}),e.find(".timeline-Header").hide(),e.find(".timeline-TweetList-tweet").css({borderColor:"#323438",paddingTop:"20px"}),e.find(".timeline-Tweet--isRetweet").closest("li").remove(),e.find(".timeline-LoadMore").remove(),e.find(".TwitterCard-container").css({borderColor:"#323438"}),clearInterval(window.waitForTwitter))},100),{}},updateSysChecks=function(){for(var e in window.rs_system){var i;window.rs_system.hasOwnProperty(e)&&("object"==typeof(i=window.rs_system[e])&&1==i.good||!0===i||"1"===i?jQuery("#syscheck_"+e).removeClass("warning"):jQuery("#syscheck_"+e).addClass("warning"))}},checkAddOnVersions=function(){if("true"===RVS.ENV.activated||!0===RVS.ENV.activated){var e,i="";for(e in RVS.ENV.addOns_to_update=void 0===RVS.ENV.addOns_to_update?{}:RVS.ENV.addOns_to_update,RVS.ENV.addOns_to_updateArray=[],window.addOnUpdateCounter=0,RVS.ENV.addOns_to_update)RVS.ENV.addOns_to_updateArray.push(e),i+='<div id="need_update_'+e+'" class="addonlist_to_update">'+RVS.ENV.addOns_to_update[e].title+" "+RVS_LANG.from+" "+RVS.ENV.addOns_to_update[e].old+" "+RVS_LANG.to+" "+RVS.ENV.addOns_to_update[e].new+'<div class="addonlist_to_update_single_status circle-loader"><div class="checkmark draw"></div></div></div>';""!==i&&RVS.F.RSDialog.create({bgopacity:.85,modalid:"rbm_decisionModal",icon:"extension",title:RVS_LANG.addonsupdatetitle,maintext:RVS_LANG.addonsupdatemain,subtext:i,do:{icon:"check_circle",text:RVS_LANG.updateallnow,event:"updateAddonsNow",keepDialog:!0},cancel:{icon:"cancel",text:RVS_LANG.updatelater},swapbuttons:!0})}},updateNextRequiredAddon=function(){var e,i,r;window.addOnUpdateCounter<RVS.ENV.addOns_to_updateArray.length?(e=RVS.ENV.addOns_to_updateArray[window.addOnUpdateCounter],i=RVS.ENV.addOns_to_update[e],(r=jQuery("#need_update_"+e)).find(".addonlist_to_update_single_status").addClass("inload"),RVS.F.ajaxRequest("activate_addon",{addon:e,update:!0},function(e){e.success?(r.find(".addonlist_to_update_single_status").removeClass("inload").addClass("load-complete"),i.updated=!0):r.find(".addonlist_to_update_single_status").removeClass("inload").addClass("load-complete").addClass("failure"),window.addOnUpdateCounter++,updateNextRequiredAddon()},!1)):jQuery("#decmod_do_btn").html('<i id="decmod_do_icon" class="material-icons">done</i><span id="decmod_do_txt">'+RVS_LANG.updatedoneexist,NaN).show().off("click").on("click",function(){RVS.F.RSDialog.close(),RVS.F.RSDialog.close()})},initLocalListeners=function(){RVS.WIN.on("resize",function(){clearTimeout(window.resizedOverviewTimeOut),window.resizedOverviewTimeOut=setTimeout(function(){var e=(e=Math.floor((sliderLibrary.output.width()+30)/290))<1?1:e;sliderLibrary.maxAmountPerPage!==e&&updateOVFilteredList({force:!0,keeppage:!0,noanimation:!0})},10)}),RVS.DOC.on("updateAddonsNow",function(){updateNextRequiredAddon(),jQuery("#decmod_dont_btn").hide(),jQuery("#decmod_do_btn").hide()}),RVS.DOC.on("click",".rs_lib_premium_red_hover",function(){RVS.F.scrollToOvRegister()}),RVS.DOC.on("updateThePlugin",function(){wp.updates.maybeRequestFilesystemCredentials(),RVS.F.showWaitAMinute({fadeIn:500,text:RVS_LANG.updatingplugin});var e={plugin:RVS.ENV.slug_path,slug:RVS.ENV.slug,checkforupdates:!0,success:function(e){RVS.F.showWaitAMinute({fadeOut:0}),RVS.F.RSDialog.create({bgopacity:.85,modalid:"rbm_decisionModal",icon:"update",title:RVS_LANG.updateplugin,maintext:"",subtext:RVS_LANG.updatepluginsuccesssubtext+" <strong>"+e.newVersion+"</strong>",do:{icon:"check_circle",text:RVS_LANG.reloadpage,event:"reloadpagenow"}})},error:function(e){RVS.F.showWaitAMinute({fadeOut:0});var i,r="<br>";for(i in e.debug)r+="<span style='white-space: nowrap;overflow: hidden;width: 400px;margin-bottom: 5px;font-size: 12px;display: block;'>- "+e.debug[i]+"</span>";r+="<span style='white-space: nowrap;overflow: hidden;width: 400px;margin-bottom: 5px;font-size: 12px;display: block;'>"+RVS_LANG.tryagainlater+"</span>",RVS.F.RSDialog.create({bgopacity:.85,modalid:"rbm_decisionModal",icon:"update",title:RVS_LANG.updatepluginfailed,maintext:RVS_LANG.updatepluginfailure,subtext:(void 0!==e&&void 0!==e.errorMessage&&0<=e.errorMessage.indexOf("PCLZIP_ERR_BAD_FORMAT")?RVS_LANG.licenseissue:e.errorMessage)+"<br>"+r,do:{icon:"error",text:RVS_LANG.leave,event:""}})}};wp.updates.ajax("update-plugin",e)}),RVS.DOC.on("click","#updateplugin, #updateplugin_sc",function(){var e;!0!==RVS.ENV.allow_update&&RVS.F.compareVersion(RVS.ENV.latest_version,RVS.ENV.revision)<=0||(0<=this.className.indexOf("halfdisabled")?(u(),e={val:window.scroll_top},tpGS.gsap.to(e,.6,{val:window.ov_scroll_targets[2].top-200,onUpdate:function(){RVS.WIN.scrollTop(e.val)},ease:"power3.out"}),u()):RVS.F.RSDialog.create({bgopacity:.85,modalid:"rbm_decisionModal",icon:"update",title:RVS_LANG.updateplugin,maintext:RVS_LANG.areyousureupdateplugin,subtext:RVS_LANG.updatingtakes,do:{icon:"check_circle",text:RVS_LANG.updatenow,event:"updateThePlugin"},cancel:{icon:"cancel",text:RVS_LANG.cancel},swapbuttons:!0}))}),RVS.F.clearSlidesOverview=function(e){if(void 0!==sliderLibrary.slides[e]){for(var i in sliderLibrary.slides[e])sliderLibrary.slides[e].hasOwnProperty(i)&&sliderLibrary.slides[e][i].ref.remove();sliderLibrary.slides[e]=void 0}},RVS.F.buildSlidesOverview=function(e){sliderLibrary.selectedSlider=e,o({keepOverlay:!1});jQuery(".overview_elements");sliderLibrary.slides=void 0===sliderLibrary.slides?{}:sliderLibrary.slides,sliderLibrary.inSlideMode=!0,void 0===sliderLibrary.slides[sliderLibrary.selectedSlider]?(sliderLibrary.slides[sliderLibrary.selectedSlider]={},RVS.F.ajaxRequest("get_slides_by_slider_id",{id:e},function(e){if(e.success){for(var i in e.slides)e.slides.hasOwnProperty(i)&&(sliderLibrary.slides[sliderLibrary.selectedSlider][e.slides[i].id]=jQuery.extend(!0,{},e.slides[i]));t(),drawOVOverview()}})):(t(),drawOVOverview())},RVS.DOC.on("click",".link_to_slides_overview",function(){RVS.F.buildSlidesOverview(this.dataset.id)}),RVS.DOC.on("reloadpagenow",function(){tpGS.gsap.to(jQuery("#wpwrap"),.5,{opacity:0}),jQuery("#waitaminute").appendTo("body"),RVS.F.showWaitAMinute({fadeIn:500,text:RVS_LANG.reLoading}),window.location.reload()}),RVS.DOC.on("click",".link_to_slideadmin_a",function(){"A"==this.tagName&&void 0!==this.href&&(tpGS.gsap.to(jQuery("#wpwrap"),.5,{opacity:0}),jQuery("#waitaminute").appendTo("body"),RVS.F.showWaitAMinute({fadeIn:500,text:RVS_LANG.editorisLoading+"<span style='display:block;font-size:20px;line-height:25px'>"+RVS_LANG.opening+" "+this.dataset.title+"</span>"}))}),RVS.DOC.on("click",".link_to_quickeditor",function(){var e=jQuery(this).closest(".rs_library_element");RVS.F.openQuickContent({sliderid:e[0].dataset.sliderid})}),RVS.DOC.on("mouseenter",".link_to_slideadmin, .link_to_slides_overview",function(){var e=jQuery(this).closest(".rs_library_element"),i=e.find(".rs_library_el_next");e.find(".title_container")[0]!==document.activeElement&&(i.show(),i.html(this.dataset.info))}),RVS.DOC.on("mousemove",".link_to_quickeditor, .link_to_quickstyleeditor, .link_to_slideadmin_a",function(){var e=jQuery(this).closest(".rs_library_element"),i=e.find(".rs_library_el_next");e.find(".title_container")[0]!==document.activeElement&&(i.show(),i.html(this.dataset.info))}),RVS.DOC.on("mouseleave",".link_to_slideadmin, .link_to_slides_overview",function(){var e=jQuery(this);e.closest(".rs_library_element").find(".rs_library_el_next").hide(),clearTimeout(e.data("tlcount")),void 0!==e.data("tl")&&e.data("tlcount",setTimeout(function(){e.data("tl").reverse()},200))}),RVS.DOC.on("click","#back_one_folder",function(){var e;sliderLibrary.inSlideMode?(sliderLibrary.inSlideMode=!1,sliderLibrary.output.find(".overview_elements").find(".rs_library_element").detach()):(e=RVS.F.getOVSliderIndex(sliderLibrary.selectedFolder),sliderLibrary.selectedFolder=sliderLibrary.sliders[e].parent||-1),resetAllOVFilters(),updateOVFilteredList({force:!0,keeppage:!1,noanimation:!1})}),RVS.DOC.on("click",".rsl_breadcrumb",function(){sliderLibrary.inSlideMode&&(sliderLibrary.inSlideMode=!1,sliderLibrary.output.find(".overview_elements").find(".rs_library_element").detach()),sliderLibrary.selectedFolder=parseInt(this.dataset.folderid,0),updateOVFilteredList({force:!0,keeppage:!1,noanimation:!1})}),RVS.DOC.on("click","#slider_folders_wrap_underlay",function(){window.showFolderOverview.reverse()}),RVS.DOC.on("click","#add_folder",function(e,i){RVS.F.createNewFolder(i)}),RVS.DOC.on("click","#rs_db_force_create",function(e,i){RVS.F.ajaxRequest("fix_database_issues",{},function(e){},!1)}),RVS.DOC.on("click","#rs_force_clear_cache",function(e,i){RVS.F.ajaxRequest("clear_internal_cache",{},function(e){},!1)}),RVS.DOC.on("click","#rs_trigger_font_deletion",function(e,i){RVS.F.ajaxRequest("trigger_font_deletion",{},function(e){},!1)}),RVS.DOC.on("click","#reset_sorting",function(){jQuery("#sel_overview_sorting").val("datedesc").ddTP("change"),RVS.DOC.trigger("updateSlidersOverview",{val:"datedesc",eventparam:"#reset_sorting",ignoreCookie:!0})}),RVS.DOC.on("click","#reset_filtering",function(){jQuery("#sel_overview_filtering").val("all").ddTP("change"),RVS.DOC.trigger("updateSlidersOverview",{val:"all",eventparam:"#reset_filtering",ignoreCookie:!0})}),RVS.DOC.on("updateSlidersOverview",function(e,i){var r;void 0!==i&&void 0!==i.eventparam&&(r="#reset_sorting"===i.eventparam?"datedesc"===i.val?0:1:"all"===i.val?0:1,tpGS.gsap.set(i.eventparam,{autoAlpha:r,display:1==r?"inline-block":"none"})),void 0===i||i.ignoreRebuild||(void 0!==i.val&&!0!==i.ignoreCookie&&RVS.F.setCookie("rs6_overview_pagination",i.val,360),o({keepOverlay:!1}),updateOVFilteredList({force:!0,keeppage:!1,noanimation:!1}))}),RVS.DOC.on("click",".global_library_pagination",function(){o({keepOverlay:!1}),jQuery(".global_library_pagination.selected").removeClass("selected"),jQuery(this).addClass("selected"),sliderLibrary.selectedPage=-9999===parseInt(this.dataset.page,0)?sliderLibrary.selectedPage=parseInt(sliderLibrary.selectedPage,0)-3:9999===parseInt(this.dataset.page,0)?sliderLibrary.selectedPage=parseInt(sliderLibrary.selectedPage,0)+3:this.dataset.page,smartPagination(),drawOVOverview()}),RVS.DOC.on("keyup","#searchmodules",function(){o({keepOverlay:!1}),clearTimeout(window.searchKeyUp),window.searchKeyUp=setTimeout(function(){updateOVFilteredList()},200)}),RVS.DOC.on("ddTP:select ddTP:unselect",".elementtags",function(e){var i,r=RVS.F.getOVSliderIndex(e.target.dataset.id);for(i in sliderLibrary.sliders[r].tags=[],e.target.options)e.target.options.hasOwnProperty(i)&&void 0!==e.target.options[i]&&e.target.options[i].selected&&sliderLibrary.sliders[r].tags.push(RVS.F.sanitize_input(e.target.options[i].value.toLowerCase()));RVS.F.ajaxRequest("update_slider_tags",{id:sliderLibrary.sliders[r].id,tags:sliderLibrary.sliders[r].tags},function(e){},!1),sliderLibrary.filters=buildModuleFilters(),jQuery(".elementtags").each(function(){var e,i,r,t=jQuery(this);this.dataset.id;for(e in t.find("option").remove(),sliderLibrary.filters.tags)sliderLibrary.filters.tags.hasOwnProperty(e)&&(i=RVS.F.sanitize_input(sliderLibrary.filters.tags[e].toLowerCase()),r=RVS.F.getOVSliderIndex(this.dataset.id),r=0<=jQuery.inArray(i,sliderLibrary.sliders[r].tags)?' selected="selected" ':"",t.append('<option value="'+i+'" '+r+">"+i+"</option>"));t.ddTP("update")})}),RVS.DOC.on("keyup",".title_container",function(e){13===e.keyCode&&(jQuery(document.activeElement).blur(),o({keepOverlay:!1}))}),RVS.DOC.on("click",".show_rsle, .rsle_folder",function(){var e=jQuery(this).closest(".rs_library_element"),i=e.find(".rsle_tbar"),r=e.hasClass("selected"),t=e.attr("id"),s=e[0].dataset.sliderid,d=(""+e[0].dataset.slideid).replace("slide_id_","");r?(o({keepOverlay:!1}),window.lastBreacCrumbText=""):(o({keepOverlay:!0,id:t}),clearTimeout(window.unsetFocusOverviewOverlay),e.addClass("selected").addClass("menuopen"),tpGS.gsap.fromTo(i,.3,{y:"-100%"},{opacity:1,y:"0%",ease:"power3.out"}),jQuery(".overview_elements").addClass("infocus"),window.lastBreacCrumbText=(sliderLibrary.inSlideMode?sliderLibrary.slides[s][d]:sliderLibrary.sliders[RVS.F.getOVSliderIndex(s)]).title),jQuery("#rsl_bread_selected").html(window.lastBreacCrumbText)}),RVS.DOC.on("mouseenter",".rs_library_element",function(){sliderLibrary.inSlideMode?jQuery("#rsl_bread_selected").html(sliderLibrary.slides[this.dataset.sliderid][(""+this.dataset.slideid).replace("slide_id_","")].title):-1!=this.dataset.sliderid&&jQuery("#rsl_bread_selected").html(sliderLibrary.sliders[RVS.F.getOVSliderIndex(this.dataset.sliderid)].title)}),RVS.DOC.on("mouseleave",".rs_library_element",function(){window.lastBreacCrumbText=void 0===window.lastBreacCrumbText?"":window.lastBreacCrumbText,jQuery("#rsl_bread_selected").html(window.lastBreacCrumbText)}),RVS.DOC.on("click",".overview_elements_overlay",function(){o({keepOverlay:!1})}),RVS.DOC.on("click",".tagsslider",function(){var e=jQuery(this).closest(".rs_library_element");e.toggleClass("in_tag_view"),e.removeClass("in_folder_view")}),RVS.DOC.on("click",".renameslider",function(){jQuery(this).closest(".rs_library_element").find(".title_container").trigger("focus")}),RVS.DOC.on("click",".unpublishslide",function(){var i=jQuery(this).closest(".rs_library_element"),e=this.dataset.id,r=this.dataset.slideid;sliderLibrary.inSlideMode&&RVS.F.ajaxRequest("save_slide_advanced",{slide_id:r,params:{publish:{state:"unpublished"}},slider_id:e},function(e){e.success&&i.addClass("unpublished")})}),RVS.DOC.on("click",".duplicateslide",function(){jQuery(this).closest(".rs_library_element");var i=this.dataset.id,e=this.dataset.slideid;sliderLibrary.inSlideMode&&RVS.F.ajaxRequest("duplicate_slide",{slide_id:e,slider_id:i},function(e){e.success&&(RVS.F.clearSlidesOverview(i),RVS.F.buildSlidesOverview(i))})}),RVS.DOC.on("click",".publishslide",function(){var i=jQuery(this).closest(".rs_library_element");sliderId=this.dataset.id,slideId=this.dataset.slideid,sliderLibrary.inSlideMode&&RVS.F.ajaxRequest("save_slide_advanced",{slide_id:slideId,params:{publish:{state:"published"}},slider_id:sliderId},function(e){e.success&&i.removeClass("unpublished")})}),RVS.DOC.on("click",".adminthumb",function(){jQuery(this).closest(".rs_library_element");var r=RVS.F.getOVSliderIndex(this.dataset.id),t=this.dataset.id,s=this.dataset.slideid;RVS.F.openAddImageDialog(RVS_LANG.choose_image,function(i,e){RVS.F.ajaxRequest("save_slide_advanced",{slide_id:s,params:{thumb:{customAdminThumbSrc:i,customAdminThumbSrcId:e}},slider_id:t},function(e){o({keepOverlay:!1}),e.success&&(sliderLibrary.sliders[r].bg.type="image",sliderLibrary.sliders[r].bg.src=i,RVS.F.setObjBg(sliderLibrary.sliders[r],sliderLibrary.sliders[r].ref.find(".image_container")),void 0!==sliderLibrary.slides)&&void 0!==sliderLibrary.slides[t]&&void 0!==sliderLibrary.slides[t][s]&&(sliderLibrary.slides[t][s].bg={type:"image",src:i},RVS.F.setObjBg(sliderLibrary.slides[t][s],sliderLibrary.slides[t][s].ref.find(".image_container")))})},!1)}),RVS.DOC.on("change",".title_container",function(){var i=this,r=RVS.F.getOVSliderIndex(this.dataset.id),t=this.dataset.id,s=this.dataset.slideid,d=this.value;sliderLibrary.inSlideMode?RVS.F.ajaxRequest("save_slide_advanced",{slide_id:s,params:{title:this.value},slider_id:t},function(e){e.success&&(i.value=d),sliderLibrary.slides[t][s].title=d}):RVS.F.ajaxRequest("update_slider_name",{id:this.dataset.id,title:this.value},function(e){e.success&&(i.value=e.title),sliderLibrary.sliders[r].title=e.title})}),RVS.DOC.on("click",".optimizeslider",function(){RVS.F.openOptimizer({sliderid:this.dataset.id})}),RVS.DOC.on("click",".deleteslider",function(){if(sliderLibrary.inSlideMode){window.deleteSlide=this.dataset.slideid,window.deleteSlide_sliderId=this.dataset.id,o({keepOverlay:!1});var e,i=0;for(e in sliderLibrary.slides[sliderLibrary.selectedSlider])sliderLibrary.slides[sliderLibrary.selectedSlider].hasOwnProperty(e)&&i++;i<2?RVS.F.showInfo({content:RVS_LANG.lastslidenodelete,type:"error",showdelay:0,hidedelay:2,hideon:"",event:""}):RVS.F.RSDialog.create({bgopacity:.85,modalid:"rbm_decisionModal",icon:"delete",title:RVS_LANG.deleteslide,maintext:RVS_LANG.cannotbeundone,subtext:RVS_LANG.areyousuretodelete+"<strong>"+sliderLibrary.slides[sliderLibrary.selectedSlider][window.deleteSlide].title+"</strong> ?",do:{icon:"delete",text:RVS_LANG.yesdeleteslide,event:"deletemarkedslide"},cancel:{icon:"cancel",text:RVS_LANG.cancel},swapbuttons:!0})}else{var r=RVS.F.getOVSliderIndex(this.dataset.id);o({keepOverlay:!1}),window.deleteSlidersIndex=0,sliderLibrary.sliders[r].folder?(window.deleteSliders=function e(i,r){i=void 0===i?[]:i;var t,s,d=sliderLibrary.sliders[r];for(t in d.children)d.children.hasOwnProperty(t)&&(s=RVS.F.getOVSliderIndex(d.children[t]),sliderLibrary.sliders[s]&&sliderLibrary.sliders[s].folder&&(i=e(i,s)),sliderLibrary.sliders[s])&&i.push(d.children[t]);return i}([],r),window.deleteSliders.push(this.dataset.id),RVS.F.RSDialog.create({bgopacity:.85,modalid:"rbm_decisionModal",icon:"delete",title:RVS_LANG.deleteslider,maintext:RVS_LANG.cannotbeundone,subtext:RVS_LANG.areyousuretodeleteeverything+" <strong>"+sliderLibrary.sliders[RVS.F.getOVSliderIndex(this.dataset.id)].title+"</strong> ?",do:{icon:"delete",text:RVS_LANG.yesdeleteall,event:"deletemarkedslider"},cancel:{icon:"cancel",text:RVS_LANG.cancel},swapbuttons:!0})):(window.deleteSliders=[this.dataset.id],RVS.F.RSDialog.create({bgopacity:.85,modalid:"rbm_decisionModal",icon:"delete",title:RVS_LANG.deleteslider,maintext:RVS_LANG.cannotbeundone,subtext:RVS_LANG.areyousuretodelete+" <strong>"+sliderLibrary.sliders[RVS.F.getOVSliderIndex(this.dataset.id)].title+"</strong> ?",do:{icon:"delete",text:RVS_LANG.yesdelete,event:"deletemarkedslider"},cancel:{icon:"cancel",text:RVS_LANG.cancel},swapbuttons:!0}))}}),RVS.DOC.on("deletemarkedslide",function(){RVS.F.ajaxRequest("delete_slide",{slide_id:window.deleteSlide,slider_id:window.deleteSlide_sliderId},function(e){e.success&&void 0!==sliderLibrary.slides[sliderLibrary.selectedSlider][window.deleteSlide]&&(RVS.F.clearSlidesOverview(window.deleteSlide_sliderId),RVS.F.buildSlidesOverview(window.deleteSlide_sliderId))},void 0,void 0,RVS_LANG.deletingsingleslide+"<span style='display:block;font-size:20px;line-height:25px'>"+sliderLibrary.slides[sliderLibrary.selectedSlider][window.deleteSlide].title+"</span>")}),RVS.DOC.on("deletemarkedslider",function(){window.deletedSliderSINDEX=RVS.F.getOVSliderIndex(window.deleteSliders[window.deleteSlidersIndex]),window.mayDeleteFolder=sliderLibrary.sliders[window.deletedSliderSINDEX],RVS.F.ajaxRequest("delete_slider",{id:window.deleteSliders[window.deleteSlidersIndex]},function(e){e.success&&(void 0!==window.mayDeleteFolder&&-1!=window.mayDeleteFolder.parent&&(e=RVS.F.getOVSliderIndex(window.mayDeleteFolder.parent),sliderLibrary.sliders[e]?sliderLibrary.sliders[e].children.splice(jQuery.inArray(window.mayDeleteFolder.id,sliderLibrary.sliders[e].children),1):console.log("Info:Folder with Index "+e+" is not existing any more.")),sliderLibrary.sliders[window.deletedSliderSINDEX]&&sliderLibrary.sliders[window.deletedSliderSINDEX].ref&&sliderLibrary.sliders[window.deletedSliderSINDEX].ref.remove(),jQuery("#slide_id_"+window.deleteSliders[window.deleteSlidersIndex]).remove(),sliderLibrary.sliders.splice(window.deletedSliderSINDEX,1)),window.deleteSlidersIndex++,window.deleteSlidersIndex<window.deleteSliders.length?RVS.DOC.trigger("deletemarkedslider"):(sliderLibrary.filters=buildModuleFilters(),updateOVFilteredList({force:!0,keeppage:!0,noanimation:!1}))},void 0,void 0,RVS_LANG.deletingslider+"<span style='display:block;font-size:20px;line-height:25px'>"+(sliderLibrary.sliders[window.deletedSliderSINDEX]?sliderLibrary.sliders[window.deletedSliderSINDEX].alias:window.deletedSliderSINDEX)+"</span>")}),RVS.DOC.on("click",".exportslider, .exporthtmlslider",function(){var e=0<=this.className.indexOf("exportslider")?"export_slider":"export_slider_html";window.exportSliders=[this.dataset.id],window.exportSlidersIndex=0,RVS.F.RSDialog.create({bgopacity:.85,modalid:"rbm_decisionModal",icon:"cloud_download",title:RVS_LANG.exportslider+("export_slider_html"==e?" "+RVS_LANG.ashtmlexport:""),maintext:RVS_LANG.exportslidertxt,subtext:RVS_LANG.areyousuretoexport+sliderLibrary.sliders[RVS.F.getOVSliderIndex(this.dataset.id)].alias,do:{icon:"cloud_download",text:RVS_LANG.yesexport,event:"exportmarkedslider",eventparam:e},cancel:{icon:"cancel",text:RVS_LANG.cancel},swapbuttons:!0})}),RVS.DOC.on("exportmarkedslider",function(e,i){o({keepOverlay:!1}),window.lastBreacCrumbText="",jQuery("#rsl_bread_selected").html(window.lastBreacCrumbText),location.href=ajaxurl+(-1===ajaxurl.indexOf("?")?"?":"&")+"action="+RVS.ENV.ajax_pre+"_ajax_action&client_action="+i+"&nonce="+RVS.ENV.nonce+"&id="+window.exportSliders[window.exportSlidersIndex]}),RVS.DOC.on("click","#collapse-button",l),RVS.DOC.on("click","#rbm_globalsettings .rbm_close",function(){RVS.F.RSDialog.close()}),RVS.DOC.on("click",".rso_scrollmenuitem",function(){if("globalsettings"===this.id)openGlobalSettings();else if("rso_menu_notices"!==this.id&&"rso_menu_updatewarning"!==this.id){if("contactsupport"===this.id)return"true"!==RVS.ENV.activated&&!0!==RVS.ENV.activated?void RVS.F.showRegisterSliderInfo():void window.open("https://support.sliderrevolution.com/?utm_source=admin&utm_medium=button&utm_campaign=srusers&utm_content=support","_blank");var e;"linktodocumentation"===this.id?window.open("https://www.sliderrevolution.com/help-center/?utm_source=admin&utm_medium=button&utm_campaign=srusers&utm_content=faq","_blank"):"buynow_notregistered"===this.id?window.open("https://account.sliderrevolution.com/portal/pricing/","_blank"):(u(),e={val:window.scroll_top},tpGS.gsap.to(e,.6,{val:window.ov_scroll_targets[this.dataset.ostref].top-200,onUpdate:function(){RVS.WIN.scrollTop(e.val)},ease:"power3.out"}),u())}}),RVS.WIN.on("resize",l).on("scroll",u),RVS.DOC.on("click",".enter_into_folder",function(){sliderLibrary.selectedFolder=this.dataset.folderid,resetAllOVFilters(),updateOVFilteredList()}),RVS.DOC.on("click","#new_blank_slider",function(){tpGS.gsap.to(jQuery("#wpwrap"),.5,{opacity:0}),jQuery("#waitaminute").appendTo("body"),RVS.F.showWaitAMinute({fadeIn:500,text:RVS_LANG.editorisLoading+"<span style='display:block;font-size:20px;line-height:25px'>"+RVS_LANG.addingnewblankmodule+"</span>"}),RVS.F.ajaxRequest("create_slider",{},function(e){var i,r;e.success&&(-1!==(i=RVS.F.getOVSliderIndex(sliderLibrary.selectedFolder))?(sliderLibrary.sliders[i].children.push(e.slider_id),r=e.slide_id,RVS.F.ajaxRequest("save_slider_folder",{id:sliderLibrary.selectedFolder,children:sliderLibrary.sliders[i].children},function(e){window.location.href=RVS.ENV.admin_url+"&view=slide&id="+r})):window.location.href=RVS.ENV.admin_url+"&view=slide&id="+e.slide_id)})}),RVS.DOC.on("highContrast",function(e,i){void 0!==i&&void 0!==i.val&&(!0===i.val?jQuery(document.body).addClass("rs-high-contrast"):jQuery(document.body).removeClass("rs-high-contrast"))}),RVS.DOC.on("addNewSlider",function(e,i){var r;void 0!==i&&void 0!==i.slider&&(i.slider.parent=sliderLibrary.selectedFolder,sliderLibrary.sliders.push(i.slider),-1!==sliderLibrary.selectedFolder&&-1!==(r=RVS.F.getOVSliderIndex(sliderLibrary.selectedFolder))&&(sliderLibrary.sliders[r].children.push(i.slider.id),i.ignoreAjaxFolderMove||RVS.F.ajaxRequest("save_slider_folder",{id:sliderLibrary.selectedFolder,children:sliderLibrary.sliders[r].children},function(e){},i.silent)),sliderLibrary.filters=buildModuleFilters(),resetAllOVFilters(),jQuery("#pagination_select_2").ddTP("change"))}),RVS.DOC.on("addDraftPage",function(e,i){RVS.F.ajaxRequest("create_draft_page",{slider_ids:i.pages,modals:i.modals,additions:i.additions},function(e){e.success&&(window.visitURLCreatedPage=e.open,setTimeout(function(){RVS.F.RSDialog.create({bgopacity:.85,modalid:"rbm_decisionModal",icon:"fiber_new",title:RVS_LANG.blank_page_added,maintext:RVS_LANG.blank_page_created,subtext:void 0!==e.edit&&0<e.edit.length?RVS_LANG.edit_page+': <a class="blankpagelink" href="'+e.edit+'" target="_blank" rel="noopener">'+e.edit+"</a>":"",do:{icon:"exit_to_app",text:RVS_LANG.visit_page,event:"visitcreatedpage"},cancel:{icon:"cancel",text:RVS_LANG.closeandstay},swapbuttons:!0})},200))})}),RVS.DOC.on("visitcreatedpage",function(){window.open(window.visitURLCreatedPage,"_blank")}),RVS.DOC.on("click","#new_slider_import",function(){jQuery("#filedrop").remove(),RVS.F.browserDroppable.init({success:"addNewSlider"})}),RVS.DOC.on("click",".duplicateslider",function(){var e=RVS.F.getOVSliderIndex(this.dataset.id),i=-1==e?-1:sliderLibrary.sliders[e].parent,r=RVS.F.getOVSliderIndex(i);RVS.F.ajaxRequest("duplicate_slider",{id:this.dataset.id},function(e){e.success&&(e.slider.parent=i,sliderLibrary.sliders.push(e.slider),-1!==r&&(sliderLibrary.sliders[r].children.push(e.slider.id),RVS.F.ajaxRequest("save_slider_folder",{id:i,children:sliderLibrary.sliders[r].children},function(e){})),sliderLibrary.filters=buildModuleFilters(),resetAllOVFilters())})}),RVS.DOC.on("dragstart dragend",function(e){"dragstart"===e.type&&(RVS.S.dragginginside=!0),"dragend"===e.type&&(RVS.S.dragginginside=!1)}),jQuery("#rs_overview").on(" dragover dragenter ",function(e){RVS.S.dragginginside||0!==jQuery("#filedrop").length||RVS.F.browserDroppable.init({success:"addNewSlider"})}),RVS.DOC.on("click","#activateplugin",function(){var i;"true"==RVS.ENV.activated||1==RVS.ENV.activated?RVS.F.ajaxRequest("deactivate_plugin",{},function(e){e.success&&(RVS.ENV.activated=!1,RVS.ENV.code="",RVS.F.updateDraw(),RVS.F.isActivated(),RVS.F.notifications(),a("close"),RVS.F.showDeactivatedWarning(),RVS.F.activeNotActive())}):(i=jQuery("#purchasekey").val(),RVS.F.ajaxRequest("activate_plugin",{code:i},function(e){e.success&&(RVS.ENV.activated=!0,RVS.ENV.code=i,RVS.F.updateDraw(),RVS.F.isActivated(),RVS.F.notifications(),a("show"),RVS.F.activeNotActive())}))}),RVS.F.activeNotActive=function(){RVS.C.existing_sliders=void 0===RVS.C.existing_sliders?document.getElementById("existing_sliders"):RVS.C.existing_sliders,RVS.ENV.activated?RVS.C.existing_sliders.classList.remove("rs_n_ac_n"):RVS.C.existing_sliders.classList.add("rs_n_ac_n")},RVS.DOC.on("click","#check_for_updates",function(){RVS.F.ajaxRequest("check_for_updates",{},function(e){e.success&&(RVS.ENV.latest_version=e.version,jQuery(".available_latest_version").html(RVS.ENV.latest_version),RVS.F.updateDraw(),RVS.F.isActivated())})}),RVS.DOC.on("click",".previewslider",function(){var e=sliderLibrary.sliders[RVS.F.getOVSliderIndex(this.dataset.id)];RVS.F.openPreivew({title:this.dataset.title,alias:e.alias,id:this.dataset.id}),o({keepOverlay:!1}),window.lastBreacCrumbText="",jQuery("#rsl_bread_selected").html(window.lastBreacCrumbText)}),RVS.DOC.on("click","#signuptonewsletter",function(){var e=jQuery("#newsletter_mail").val();0<e.length&&0<=e.indexOf("@")&&RVS.F.ajaxRequest("subscribe_to_newsletter",{email:e},function(e){})}),RVS.DOC.on("click","#check_for_themepunchserver",function(){RVS.F.ajaxRequest("check_system",{},function(e){e.success&&(window.rs_system=jQuery.extend(!0,{},e.system),updateSysChecks())})}),RVS.DOC.on("click",".embedslider",function(){var e=sliderLibrary.sliders[RVS.F.getOVSliderIndex(this.dataset.id)],i='<i class="material-icons fullpage_main_icon">playlist_add</i>',i=(i=(i=(i=(i=(i=(i=(i=(i=(i=(i=(i=(i=(i=(i=(i=(i=(i+='<div class="fullpage_title">'+RVS_LANG.embedingLine1+"</div>")+('<div class="fullpage_content">'+RVS_LANG.embedingLine2+"</div>")+'<div class="inputrow">')+("<input class='inputtocopy' id='embed_shortcode_a' readonly value='[rev_slider alias=\""+e.alias+"\"][/rev_slider]'/>")+'<div class="basic_action_button onlyicon copyshortcode" data-clipboard-action="copy" data-clipboard-target="#embed_shortcode_a"><i class="material-icons">content_copy</i></div>')+"</div>"+'<div class="div20"></div>')+('<div class="fullpage_content">'+RVS_LANG.embedingLine2a+"</div>")+'<div class="inputrow">')+("<input class='inputtocopy' id='embed_shortcode_modal' readonly value='[rev_slider usage=\"modal\" alias=\""+e.alias+"\"][/rev_slider]'/>")+'<div class="basic_action_button onlyicon copyshortcode" data-clipboard-action="copy" data-clipboard-target="#embed_shortcode_modal"><i class="material-icons">content_copy</i></div>')+"</div>"+'<div class="div20"></div>')+('<div class="fullpage_content">'+RVS_LANG.embedingLine3+"</div>")+'<div class="div40"></div>')+('<div class="fullpage_title">'+RVS_LANG.embedingLine4+"</div>"))+('<div class="fullpage_content">'+RVS_LANG.embedingLine5+"</div>")+'<div class="inputrow">')+('<input class="inputtocopy" readonly id="embed_shortcode_b" value="<?php add_revslider(\''+e.alias+"'); ?>\">")+'<div class="basic_action_button onlyicon copyshortcode" data-clipboard-action="copy" data-clipboard-target="#embed_shortcode_b"><i class="material-icons">content_copy</i></div>')+"</div>"+'<div class="div15"></div>')+('<div class="fullpage_content">'+RVS_LANG.embedingLine6+"</div>")+'<div class="inputrow">')+('<input class="inputtocopy" readonly id="embed_shortcode_c" value="<?php add_revslider(\''+e.alias+"','homepage'); ?>\">")+'<div class="basic_action_button onlyicon copyshortcode" data-clipboard-action="copy" data-clipboard-target="#embed_shortcode_c"><i class="material-icons">content_copy</i></div>')+"</div>"+'<div class="div15"></div>')+('<div class="fullpage_content">'+RVS_LANG.embedingLine7+"</div>"))+'<div class="inputrow">'+('<input class="inputtocopy" readonly id="embed_shortcode_d" value="<?php add_revslider(\''+e.alias+"','2,10'); ?>\">"))+'<div class="basic_action_button onlyicon copyshortcode" data-clipboard-action="copy" data-clipboard-target="#embed_shortcode_d"><i class="material-icons">content_copy</i></div>'+"</div>";RVS.F.fullPageInfo.init({content:i}),RVS.F.initCopyClipboard(".copyshortcode"),o({keepOverlay:!1}),window.lastBreacCrumbText="",jQuery("#rsl_bread_selected").html(window.lastBreacCrumbText)}),RVS.DOC.on("click","#new_slider_from_template",function(){RVS.ENV.newTemplatesCounter.style.display="none",RVS.F.openObjectLibrary({types:["moduletemplates"],filter:"all",selected:["moduletemplates"],success:{slider:"addNewSlider",draftpage:"addDraftPage"}})})}}();