/*!
 * REVOLUTION 6.0.0 BUILDER JS
 * @version: 1.0 (01.07.2019)
 * @author ThemePunch
*/
window.RVS=void 0===window.RVS?{}:window.RVS,RVS.F=void 0===RVS.F?{}:RVS.F,RVS.ENV=void 0===RVS.ENV?{}:RVS.ENV,RVS.LIB=void 0===RVS.LIB?{}:RVS.LIB,RVS.V=void 0===RVS.V?{}:RVS.V,RVS.S=void 0===RVS.S?{}:RVS.S,RVS.C=void 0===RVS.C?{}:RVS.C,RVS.WIN=void 0===RVS.WIN?jQuery(window):RVS.WIN,RVS.DOC=void 0===RVS.DOC?jQuery(document):RVS.DOC,function(){var e,t,i,a,o,r,s,n,l,d,c,p,u,S;function v(){RVS.C.undo=void 0===RVS.C.undo?jQuery("#undolist"):RVS.C.undo,RVS.C.redo=void 0===RVS.C.redo?jQuery("#redolist"):RVS.C.redo}function R(e){if(!0===e.todo.SliderSettings&&(RVS.F.sliderUpdateAllFields(!0),jQuery(".sliderinput").trigger("init")),e.todo.slide=void 0!==e.todo.forceSelectSlide?e.todo.forceSelectSlide:e.todo.slide,e.todo.slide=void 0===e.todo.slide?RVS.S.slideId:e.todo.slide,e.todo.slide=RVS.F._inArray(e.todo.slide,RVS.SLIDER.slideIDs)>=0?e.todo.slide:RVS.SLIDER.slideIDs[0],!0===e.todo.SlideSettings&&(0===jQuery(".slide_list_element.sortable_slide_list_element").length?e.todo.mode="sliderlayout":(RVS.F.setSlideFocus({slideid:e.todo.slide}),e.todo.LayerSettings=!1)),!0===e.todo.SlideList&&RVS.F.reSortSlides(),void 0!==e.todo.mode&&RVS.F.mainMode({mode:e.todo.mode,set:!0,slide:e.todo.slide}),e.todo.LayerSettings=!1,"slidelayout"!==e.todo.mode||e.todo.layerAndSlideMode||(void 0!==e.todo.layer?RVS.DOC.trigger("changeToLayerMode"):RVS.DOC.trigger("changeToSlideMode")),!0===e.todo.LayerSettings&&RVS.F.updateAllLayerFrames(),(e.todo.rebuildLayerList||!0===e.todo.LayerSorting)&&(("slidelayout"!==e.todo.mode||e.todo.forceRebuildLayerList)&&(RVS.H={},RVS.F.buildLayerLists({force:!0}),RVS.F.updateLayerToggleActionWaits()),RVS.F.reOrderHTMLLayers()),void 0!==e.todo.framesToAdd){for(var t in e.todo.framesToAdd)e.todo.framesToAdd.hasOwnProperty(t)&&(RVS.F.addLayerFrameOnDemand(RVS.L[e.todo.framesToAdd[t].layerid],e.todo.framesToAdd[t].el,e.todo.framesToAdd[t].newframe),RVS.F.getFrameOrder({layerid:e.todo.framesToAdd[t].layerid}),RVS.F.updateFramesZIndexes({layerid:e.todo.framesToAdd[t].layerid}));RVS.DOC.trigger("updateKeyFramesList")}if(void 0!==e.todo.framesToRedraw)for(var t in e.todo.framesToRedraw)e.todo.framesToRedraw.hasOwnProperty(t)&&(RVS.F.updateLayerFrames({layerid:e.todo.framesToRedraw[t]}),RVS.F.renderLayerAnimation({layerid:e.todo.framesToRedraw[t]}));if(void 0!==e.todo.framesToReorder){for(var t in e.todo.framesToReorder)e.todo.framesToReorder.hasOwnProperty(t)&&(RVS.F.getFrameOrder({layerid:e.todo.framesToReorder[t].layerid}),RVS.F.updateFramesZIndexes({layerid:e.todo.framesToReorder[t].layerid}));RVS.DOC.trigger("updateKeyFramesList")}if(void 0!==e.todo.lastSelectedLayers)for(var t in e.todo.lastSelectedLayers)e.todo.lastSelectedLayers.hasOwnProperty(t)&&void 0!==RVS.L[e.todo.lastSelectedLayers[t]]&&RVS.F.selectLayers({id:e.todo.lastSelectedLayers[t],action:"add"});for(var t in e.todo.updateLayerImageSrcList)e.todo.updateLayerImageSrcList.hasOwnProperty(t)&&RVS.F.updateLayerImageSrc({},{layerid:e.todo.updateLayerImageSrcList[t]});RVS.DOC.trigger("SceneUpdatedAfterRestore")}function V(e){var t=jQuery.isNumeric(e.path);if(void 0!==e.backupType&&(e.todo.SlideList=!0,e.todo.SliderSettings=!0,e.todo.SlideSettings=!0,e.todo.LayerSettings=!0,e.todo.LayerSorting=!0,e.todo.layerAndSlideMode=!1),t||0!==e.path.indexOf("settings")||(e.todo.SliderSettings=!0,e.todo.mode="sliderlayout"),!t&&e.path.indexOf(".layers.")>=0&&e.path.indexOf(".layers.")<=6){e.todo.lastSelectedLayers=RVS.selLayers,e.todo.LayerSettings=!0;var i=e.path.split("."),a=jQuery.inArray("layers",i);e.todo.slide=i[a-1],e.todo.layer=i[a+1],e.todo.mode="slidelayout"}if(!t&&e.path.indexOf(".slide.")>=0&&e.path.indexOf(".slide.")<=6){e.todo.SlideSettings=!0;i=e.path.split("."),a=jQuery.inArray("slide",i);e.todo.slide=i[a-1],e.todo.mode="slidelayout"}return!t&&(e.path.indexOf(".slide.timeline.delay")>=0||e.path.indexOf(".slide.timeline.duration.0")>=0)&&(e.todo.layerAndSlideMode=!0),"slideIDs"===e.path&&(e.todo.SlideList=!0),"layersorting"!==e.groupid&&"layersorting_layermovement"!==e.groupid||(e.todo.LayerSorting=!0,e.todo.slide=e.path.split(".")[0]),e.todo}function g(e){var t=e.step,i=void 0===e.todo?{SlideList:!1,SliderSettings:!1,SlideSettings:!1,LayerSettings:!1,LayerSorting:!1}:e.todo;if(i.updateLayerImageSrcList=void 0===i.updateLayerImageSrcList?[]:i.updateLayerImageSrcList,i.slides=void 0===i.slides?[]:i.slides,void 0!==t.chngamount){for(var a in t.steps)if(t.steps.hasOwnProperty(a)){var o=t.steps[a];if("old"===e.valkey)o=t.steps[t.chngamount-a-1];if(void 0!==o.backupType)switch("addlayer"!==o.bckpGrType&&"removelayer"!==o.bckpGrType&&"layerTemplateAnimation"!==o.bckpGrType||(i.forceRebuildLayerList=!0),o.backupType){case"layerFrames":jQuery.isEmptyObject(o[e.valkey])||(RVS.SLIDER[o.slide].layers[o.layer].timeline.frames=jQuery.extend(!0,{},o[e.valkey]),i.framesToRedraw=void 0===i.framesToRedraw?[]:i.framesToRedraw,i.framesToRedraw.push(o.layer));break;case"clipPath":jQuery.isEmptyObject(o[e.valkey])||(RVS.SLIDER[o.slide].layers[o.layer].timeline.clipPath=jQuery.extend(!0,{},o[e.valkey]),i.framesToRedraw=void 0===i.framesToRedraw?[]:i.framesToRedraw,i.framesToRedraw.push(o.layer));break;case"singleFrame":jQuery.isEmptyObject(o[e.valkey])||(RVS.SLIDER[o.slide].layers[o.layer].timeline.frames[o.frame]=jQuery.extend(!0,{},o[e.valkey]),i.framesToRedraw=void 0===i.framesToRedraw?[]:i.framesToRedraw,i.framesToRedraw.push(o.layer));break;case"layerLoop":jQuery.isEmptyObject(o[e.valkey])||(RVS.SLIDER[o.slide].layers[o.layer].timeline.loop=jQuery.extend(!0,{},o[e.valkey]),i.framesToRedraw=void 0===i.framesToRedraw?[]:i.framesToRedraw,i.framesToRedraw.push(o.layer));break;case"frame":jQuery.isEmptyObject(o[e.valkey])?(delete RVS.SLIDER[o.slide].layers[o.layer].timeline.frames[o.frame],jQuery("#"+o.slide+"_"+o.layer+"_"+o.frame).remove(),i.framesToReorder=void 0===i.framesToReorder?[]:i.framesToReorder,i.framesToReorder.push({layerid:o.layer})):(RVS.SLIDER[o.slide].layers[o.layer].timeline.frames[o.frame]=jQuery.extend(!0,{},o[e.valkey]),i.framesToAdd=void 0===i.framesToAdd?[]:i.framesToAdd,i.framesToAdd.push({layerid:o.layer,el:jQuery("#tllayerlist_element_"+o.slide+"_"+o.layer),newframe:o.frame}));break;case"slide":jQuery.isEmptyObject(o[e.valkey])?(delete RVS.SLIDER[o.path],o.cache=jQuery("#slide_list_element_"+o.path).removeClass("selected").detach(),i.forceSelectSlide=o.beforeSelected):(RVS.SLIDER[o.path]=jQuery.extend(!0,{},o[e.valkey]),void 0!==o.cache&&jQuery("#slidelist").append(o.cache),jQuery.inArray(o.bckpGrType,["addnewslide","duplicateslide"])>=0?i.forceSelectSlide=o.path:i.forceSelectSlide=o.beforeSelected),i.mode="slidelayout";break;case"layer":jQuery.isEmptyObject(o[e.valkey])?(delete RVS.SLIDER[void 0!==o.slideid?o.slideid:RVS.S.slideId].layers[o.path],jQuery("#_lc_"+(void 0!==o.slideid?o.slideid:RVS.S.slideId)+"_"+o.path+"_").remove()):RVS.SLIDER[void 0!==o.slideid?o.slideid:RVS.S.slideId].layers[o.path]=jQuery.extend(!0,{},o[e.valkey]),i.rebuildLayerList=!0,i.layer=!0;break;case"full":RVS.SLIDER=jQuery.extend(!0,{},o[e.valkey])}else RVS.F.updateSliderObj({path:o.path,val:o[e.valkey],ignoreBackup:!0,ignoreResponsive:o.ignoreResponsive,wasEdited:o.wasEdited,editedPath:o.editedPath,undoRedo:"old"===e.valkey?"undo":"redo"});"updatelayerimagesrc"===o.evt&&-1===jQuery.inArray(i.updateLayerImageSrcList.indexOf,o.uid)&&i.updateLayerImageSrcList.push(o.uid),i=V({todo:i,path:o.path,groupid:t.id})}-1===jQuery.inArray(i.slide,i.slides)&&i.slides.push(i.slide),"layersorting_layermovement"==t.id&&(i.forceRebuildLayerList=!0)}else{if(void 0!==t.backupType)switch(t.backupType){case"slide":jQuery.isEmptyObject(t[e.valkey])?delete RVS.SLIDER[t.path]:RVS.SLIDER[t.path]=jQuery.extend(!0,{},t[e.valkey]);break;case"full":RVS.SLIDER=jQuery.extend(!0,{},t[e.valkey])}else RVS.F.updateSliderObj({path:t.path,val:t[e.valkey],ignoreBackup:!0,evt:t.evt,evtparam:t.evtparam,undoRedo:"old"===e.valkey?"undo":"redo",ignoreResponsive:t.ignoreResponsive,wasEdited:t.wasEdited,editedPath:t.editedPath});i=V({todo:i,path:t.path}),-1===jQuery.inArray(i.slide,i.slides)&&i.slides.push(i.slide)}return i}function m(e){void 0!==e&&void 0===e.type&&(e.type=e.path.indexOf(RVS.S.slideId+".layers.")>=0?"layer":e.type);var t=e.path,i=t.indexOf("addOns")>=0?t.split("addOns.")[1]:"none",a="layer"===e.type?"layers":"undo",o=e.path.split(".");return o=o[o.length-1],{txt:"none"!==i?i.replace("revslider-","").replace("-addon."," "+("layer"===e.type?"layer":"Slide")+" "):t.indexOf("settings.size.width")>=0?"Layer Container Width":t.indexOf("settings.size.height")>=0?"Layer Container Height":t.indexOf("settings.size.minHeight")>=0?"Slider Min Height":t.indexOf("settings.size.maxWidth")>=0?"Slider Max Width":t.indexOf("settings.size")>=0?"Slider Size Settings":t.indexOf("settings.carousel")>=0?"Carousel Settings":t.indexOf("slide.bg")>=0?"Slide Background":t.indexOf(".fontWeight")>=0?"Font Weight":t.indexOf(".fontSize")>=0?"Font Size":t.indexOf(".fontFamily")>=0?"Font Family":t.indexOf(".fontStyle")>=0?"Font Style":t.indexOf(".textTransform")>=0?"Text Transform":t.indexOf(".idle.selectable")>=0?"Layer Markable":t.indexOf(".textDecoration")>=0?"Text Decoration":t.indexOf("slide.attributes")>=0?"Slide Attributes":t.indexOf(".media")>=0&&"layer"===e.type?"Media ("+o+")":t.indexOf("alias")>=0&&(t.indexOf(".layers")>=0||"layer"===e.type)?"Layer Alias":t.indexOf("slide.timeline.duration")>=0?"Slide Transition Speed":t.indexOf("timeline.frames")>=0?"Layer Animation ("+o+")":"slideIDs"===t?"Slide Order Change":t,icon:a="none"!==i?"extension":t.indexOf("settings.size.width")>=0?"open_with":t.indexOf("settings.size.height")>=0?"open_with":t.indexOf("settings.size.minHeight")>=0?"vertical_align_bottom":t.indexOf("settings.size.maxWidth")>=0?"trending_flat":t.indexOf("settings.size")>=0?"exposure":t.indexOf("settings.carousel")>=0?"view_carousel":t.indexOf("slide.bg")>=0?"image":t.indexOf(".fontWeight")>=0?"font_download":t.indexOf(".fontSize")>=0?"text_format":t.indexOf(".fontFamily")>=0?"translate":t.indexOf(".fontStyle")>=0?"format_italic":t.indexOf(".textTransform")>=0?"text_fields":t.indexOf(".idle.selectable")>=0?"select_all":t.indexOf(".textDecoration")>=0?"text_format":t.indexOf("slide.attributes")>=0?"speaker_notes":t.indexOf(".media")>=0&&"layer"===e.type?"videocam":t.indexOf("alias")>=0&&(t.indexOf(".layers")>=0||"layer"===e.type)?"title":t.indexOf("slide.timeline.duration")>=0?"timelapse":t.indexOf("timeline.frames")>=0?"theaters":"slideIDs"===t?"sort":a,lastkey:e.lastkey}}function y(e){e.pos.x=e.mem.x+e.revert.x*RVS.S.DaD.dragdelta.x,e.pos.y=e.mem.y+e.revert.y*RVS.S.DaD.dragdelta.y,e.updateInput&&(void 0!==e.input&&void 0!==e.input.x&&e.input.x.val(e.pos.x),void 0!==e.input&&void 0!==e.input.y&&e.input.y.val(e.pos.y)),RVS.F.updateSliderObj({path:e.attributeRoot+e.attribute.x,val:e.pos.x}),RVS.F.updateSliderObj({path:e.attributeRoot+e.attribute.y,val:e.pos.y}),void 0!==e.callEvent&&jQuery("body").trigger(e.callEvent,e.callEventParam)}function f(e){var t='<option value="none">'+RVS_LANG.none+"</option>";for(var i in e.array)e.array.hasOwnProperty(i)&&(void 0!==e.filter&&"all"!==e.filter&&e.filter!==e.array[i].type||void 0!==e.subfilter&&"all"!==e.subfilter&&e.subfilter!==e.array[i].subtype||(t+="<option "+(e.preselected===e.array[i][e.type]?"selected":"")+' value="'+e.array[i][e.type]+'">'+e.array[i].title+"</option>"));return t}function h(e){return e.id?jQuery('<span><img src="'+jQuery(e.element)[0].dataset.src+'" class="wpml-img-flag" />'+e.text+"</span>"):e.text}function _(e){var t='<div class="form_collector '+e.a+'" data-type="'+e.b+'" data-pcontainer="#'+e.c+'" data-offset="#rev_builder_wrapper">';return t+='<div id="'+e.d+'"  data-select="'+e.f+e.slug+'" class="formcontainer form_menu_inside collapsed">',t+='<div class="collectortabwrap"><div id="" class="collectortab form_menu_inside" data-forms=\'["#'+e.d+"\"]'>"+e.title+"</div></div>",t+='<div id="'+e.e+'" class="form_inner open"></div>',t+="</div>",t+="</div>"}RVS.F.initAdmin=function(){try{jQuery.fn.select2=void 0===jQuery.fn.select2?jQuery.fn.select2RS:jQuery.fn.select2}catch(e){}try{$.fn.select2=void 0===$.fn.select2?$.fn.select2RS:$.fn.select2}catch(e){}RVS.screen="d",RVS.S.bckpGrp=!1,RVS.S.winh=RVS.WIN.height(),RVS.S.winw=RVS.WIN.width(),RVS.ENV.youtubeargs="hd=1&wmode=opaque&showinfo=0&rel=0;",RVS.ENV.vimeoargs="title=0&byline=0&portrait=0&api=1",RVS.V.sizes=["d","n","t","m"],RVS.V.dirs=["top","bottom","left","right"],RVS.V.sizesold=["desktop","notebook","tablet","mobile"],RVS.ENV.grid_sizes={d:1240,n:1024,t:778,m:480,none:"none"},RVS.ENV.globVerOffset=75,RVS.S.shrink={d:1,m:.625,n:.82580645,t:.75},RVS.S.mP={top:0,left:0},RVS.S.redoList=[],RVS.S.undoList=[],RVS.S.layer_wrap_offset={x:0,y:0},RVS.S.navOffset={thumbs:{top:0,bottom:0,left:0,right:0},tabs:{top:0,bottom:0,left:0,right:0}},RVS.S.rb_ScrollX=0,RVS.S.rb_ScrollY=0,RVS.eMode=void 0===RVS.eMode?{top:"",menu:"",mode:""}:RVS.eMode,RVS.S.respInfoBar={},RVS.V.timeline_height="auto",RVS.V.timeline_minHeight=275,RVS.V.timeline_minOpenHeight=275,RVS.S.editorSize={w:RVS.WIN.width()-335,h:RVS.WIN.height()-RVS.V.timeline_minHeight-65},RVS.S.click={x:0,y:0},RVS.JHOOKS={createLayerListElement:[],redrawSlideBG:[],prepareOneSlide:[],layerListElementClicked:[],updateFrameOptionsVisual:[],changeLayerAnimation:[],defaultFrame:[]},RVS.S.DaD={},RVS.S.DaD.dragdelta={x:0,y:0},RVS.WIN.on("resize",function(){var e=RVS.WIN.width(),t=RVS.WIN.height();RVS.S.winw==e&&RVS.S.winh==t||(RVS.S.winh=t,RVS.S.winw=e,RVS.S.editorSize.w=RVS.S.winw-335,RVS.S.editorSize.h=RVS.S.winh-RVS.V.timeline_minHeight-65,clearTimeout(o),o=setTimeout(function(){RVS.DOC.trigger("windowresized")},25))}),RVS.DOC.on("mousemove","#builderView",function(e){RVS.S.mP.top=e.pageY,RVS.S.mP.left=e.pageX,r&&tpGS.gsap.set(RVS.C.mouseInfo,{top:RVS.S.mP.top-40,left:RVS.S.mP.left+40,display:"block"}),void 0!==RVS.S.builderHover&&!1!==RVS.S.builderHover&&RVS.F.setRulerMarkers({x:RVS.S.mP.left,y:RVS.S.mP.top})})},RVS.F.get_browser=function(){var e,t=navigator.userAgent,i=t.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];return/trident/i.test(i[1])?(e=/\brv[ :]+(\d+)/g.exec(t)||[],"IE"):"Chrome"===i[1]&&null!=(e=t.match(/\b(OPR|Edge)\/(\d+)/))?e[1].replace("OPR","Opera"):(i=i[2]?[i[1],i[2]]:[navigator.appName,navigator.appVersion,"-?"],null!=(e=t.match(/version\/(\d+)/i))&&i.splice(1,1,e[1]),i[0])},RVS.F.isFirefox=function(e){return RVS.ENV.isFirefox=void 0===RVS.ENV.isFirefox?"Firefox"===RVS.F.get_browser():RVS.ENV.isFirefox,RVS.ENV.isFirefox},RVS.F.HighContrast=function(e){"toggle"===e?jQuery("body").hasClass("rs-high-contrast")?jQuery("body").removeClass("rs-high-contrast"):jQuery("body").addClass("rs-high-contrast"):e?jQuery("body").addClass("rs-high-contrast"):jQuery("body").removeClass("rs-high-contrast")},RVS.F.updateSliderObj=function(e){if(!(e.path.indexOf("#targetlayer#")>=0)||void 0!==RVS.S.actionTrgtLayerId&&"none"!==RVS.S.actionTrgtLayerId){e.path=RVS.F.getConcVals(e.path,RVS.screen);var t=e.path.split("."),i=!1;try{e.old=RVS.F.getDeepValue(RVS.SLIDER,e.path),RVS.F.writeDeepPath(RVS.SLIDER,e.path,e.val),e.lastkey=t[t.length-1]}catch(t){i=!0,console.log("Object Path Does Not Exists:"+e.path)}if(!0!==i&&!0!==e.ignoreResponsive&&("v"===t[t.length-1]||"v"===t[t.length-2])){if(e.uid=void 0===e.uid?t[jQuery.inArray("layers",t)+1]:e.uid,void 0===e.editedPath){e.editedPath="";for(var o=0;"v"!==t[o]&&o<t.length;)e.editedPath+=t[o]+".",o++;e.editedPath+="e"}e.editedPath.split(".").join('"]["'),i=!1;try{void 0!==e.wasEdited&&"undo"===e.undoRedo?RVS.F.writeDeepPath(RVS.SLIDER,e.editedPath,e.wasEdited):(e.wasEdited=RVS.F.getDeepValue(RVS.SLIDER,e.editedPath),RVS.F.writeDeepPath(RVS.SLIDER,e.editedPath,!0))}catch(e){i=!0,console.log(e)}!0!==i&&RVS.F.intelligentUpdate({calcShrink:!0,iii:RVS.F.isIntelligentInherited(e.uid),key:"v"===t[t.length-1]?t[t.length-3]:t[t.length-4],index:t[t.length-1],uid:e.uid,slide:e.slide})}void 0!==e.evt&&!0!==a&&RVS.DOC.trigger(e.evt,e.evtparam),!0!==e.ignoreBackup&&RVS.F.backup(e)}},RVS.F.updateLayerObj=function(e){var t="none";if(!1===RVS.S.bckpGrp&&RVS.selLayers.length>1){t=e.path;var i={path:e.path,icon:"layers",lastkey:"layer",type:"layer",id:"MultipleLayers"};RVS.F.openBackupGroup(m(i))}for(var a in RVS.selLayers)RVS.selLayers.hasOwnProperty(a)&&(void 0!==e.evt&&(e.evtparam=void 0===e.evtparam?{}:e.evtparam,e.evtparam.layerid=RVS.selLayers[a]),RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+RVS.selLayers[a]+"."+e.path,val:e.val,evt:e.evt,evtparam:e.evtparam,uid:RVS.selLayers[a],ignoreBackup:e.ignoreBackup}),!0!==e.ignoreRedraw&&RVS.F.drawHTMLLayer({uid:RVS.selLayers[a]}));"none"!==t&&RVS.F.closeBackupGroup({id:"MultipleLayers"})},RVS.F.openBackupGroup=function(e){v(),e.steps=[],RVS.S.bckpGrp=e,RVS.S.bckpGrp.chngamount=0},RVS.F.closeBackupGroup=function(e){e.ignore||(RVS.S.bckpGrp.close=!0,RVS.F.backup(RVS.S.bckpGrp))},RVS.F.ignoreEventsOpen=function(){a=!0},RVS.F.ignoreEventsClose=function(){a=!1},RVS.F.backup=function(e){if(!0===e.force||!0===RVS.S.bckpGrp.close||e.val!==e.old){if(v(),0!=RVS.S.bckpGrp&&!0!==RVS.S.bckpGrp.close)RVS.S.bckpGrp.steps.push(e),RVS.S.bckpGrp.chngamount++;else{RVS.F.clearRedoList();var t=0!=RVS.S.bckpGrp?{icon:RVS.S.bckpGrp.icon,txt:RVS.S.bckpGrp.txt,lastkey:RVS.S.bckpGrp.chngamount}:void 0!==e.icon&&void 0!==e.txt?{icon:e.icon,txt:e.txt,lastkey:e.lastkey}:m(e);e.stepMarkup='<li id="" class="undoredostep toolbar_listelement">',e.stepMarkup+='<i class="material-icons">'+t.icon+"</i>",e.stepMarkup+='<span style="display:inline-block;min-width:150px;">'+t.txt+"</span>",e.stepMarkup+="</li>",RVS.S.undoList.push(e),RVS.S.undoList.length>30&&(RVS.S.undoList.splice(0,1),RVS.C.undo.find("li").first().remove()),RVS.C.undo.append(e.stepMarkup),RVS.S.bckpGrp=!1}1,RVS.S.need_to_save=!0}},RVS.F.clearRedoList=function(){RVS.S.redoList=[],RVS.C.redo.html("")},RVS.F.undo=function(e){var t;if((void 0===e||e.step>=1)&&(e.step=void 0===e.step?1:e.step,RVS.S.undoList.length>e.step-1)){for(var i=0;i<e.step;i++){var a=RVS.S.undoList.pop();RVS.S.redoList.push(a),t=g({todo:t,step:a,valkey:"old"})}R({todo:t}),RVS.F.showInfo({content:"Succesfully Undone "+e.step+" Steps.",type:"success",showdelay:0,hidedelay:1,hideon:"",event:""})}RVS.F.updateBackupList()},RVS.F.redo=function(e){var t;if((void 0===e||e.step>=1)&&(e.step=void 0===e.step?1:e.step,RVS.S.redoList.length>e.step-1)){for(var i=0;i<e.step;i++){var a=RVS.S.redoList.pop();RVS.S.undoList.push(a),t=g({todo:t,step:a,valkey:"val"})}R({todo:t}),RVS.F.showInfo({content:"Succesfully Redone "+e.step+" Steps.",type:"success",showdelay:0,hidedelay:1,hideon:"",event:""})}RVS.F.updateBackupList()},RVS.F.updateBackupList=function(){for(var e in v(),RVS.C.undo.html(""),RVS.C.redo.html(""),RVS.S.undoList)RVS.S.undoList.length>0&&void 0!==RVS.S.undoList[e]&&RVS.C.undo.append(RVS.S.undoList[e].stepMarkup);for(var t in RVS.S.redoList)RVS.S.redoList.length>0&&void 0!==RVS.S.redoList[t]&&RVS.C.redo.prepend(RVS.S.redoList[t].stepMarkup);jQuery("#undoredowrap").RSScroll("update")},RVS.F.showIconPicker=function(e){RVS.F.container=void 0===RVS.F.container?jQuery('<div id="rs_iconselector"><div class="rs_iconselector_header"><input type="text" placeholder="'+RVS_LANG.searcforicon+'" id="rs_iconselector_search"><i class="material-icons closers_iconselector">close</i></i></div>'):RVS.F.container,void 0===RVS.F.list&&(RVS.F.list=jQuery('<div id="rs_iconselector_inner"></div>'),RVS.F.container.append(RVS.F.list)),void 0!==e.parent&&jQuery(e.parent).append(RVS.F.container),void 0!==e.classlist&&(RVS.F.container[0].className=e.classlist),RVS.F.insertinto=jQuery(e.insertinto),RVS.S.icon_closeafterpick=e.closeafterpick,RVS.S.icon_shortreturn=e.shortreturn,"#ta_layertext"===e.insertinto&&"none"===RVS.F.insertinto[0].style.display&&(RVS.F.insertinto=jQuery("#ta_toggletext")),null==RVS.LIB.OBJ||void 0===RVS.LIB.OBJ.items||void 0===RVS.LIB.OBJ.items.fonticons?RVS.F.openObjectLibrary({types:["fonticons"],filter:"all",selected:["fonticons"],event:"showIconToTextLayerForm",silent:!0}):RVS.DOC.trigger("showIconToTextLayerForm")},RVS.F.initIconPicker=function(){RVS.F.initialized||(RVS.F.initialized=!0,RVS.DOC.on("showIconToTextLayerForm",function(){if(RVS.F.open=!0,!RVS.V.buildIconPicker)for(var e in RVS.V.buildIconPicker=!0,RVS.LIB.OBJ.items.fonticons)if(RVS.LIB.OBJ.items.fonticons.hasOwnProperty(e)){var t=RVS.LIB.OBJ.items.fonticons[e];void 0!==t.tags&&(void 0===RVS.C[t.tags[0]]&&(RVS.C[t.tags[0]]=jQuery('<div id="font_icon_subcontainer_'+t.tags[0]+'" class="font_icon_subcontainer"><div class="font_icon_subcontainer_title">'+t.tags[0]+"</div></div>"),RVS.F.list.append(RVS.C[t.tags[0]])),"MaterialIcons"===t.tags[0]?RVS.C[t.tags[0]].append('<i data-title="'+t.title+'" data-fonticon="true" class="material-icons">'+t.handle.replace(".","")+"</i>"):RVS.C[t.tags[0]].append('<i data-title="'+t.title+'" data-fonticon="true" class="'+t.handle.replace(".","")+'"></i>'))}RVS.F.container.show(),RVS.F.list.RSScroll({wheelPropagation:!1,suppressScrollX:!0})}),RVS.DOC.on("click",".closers_iconselector",function(){RVS.F.open=!1,RVS.F.container.hide()}),RVS.DOC.on("keyup","#rs_iconselector_search",function(){if(this.value.length>1){RVS.F.list.scrollTop(0);var e=this.value.toLowerCase();RVS.F.list.find("i").each(function(){this.dataset.title.toLowerCase().indexOf(e)>=0?this.style.display="inline-block":this.style.display="none"})}else RVS.F.list.find("i").each(function(){this.style.display="inline-block"})}),jQuery("body").on("click",function(e){if(RVS.F.open)if("rs_iconselector_search"===e.target.id);else if(e.target.dataset.fonticon)RVS.S.icon_shortreturn?RVS.F.insertinto.val(e.target.className):RVS.F.insertinto.val(RVS.F.insertinto.val()+'<i class="'+e.target.className+'">'+("material-icons"===e.target.className?e.target.innerHTML:"")+"</i>"),RVS.F.insertinto.trigger("change"),RVS.S.icon_closeafterpick&&(RVS.F.open=!1,RVS.F.container.hide());else if(!(jQuery(e.target).closest("#rs_iconselector_inner").length>0))return RVS.F.open=!1,RVS.F.container.hide(),!1}))},RVS.DOC.on("addIcontoTextLayer",function(e,t){RVS.F.initIconPicker();var i=t.event.currentTarget.dataset;RVS.F.showIconPicker({parent:i.iconparent,classlist:i.classlist,insertinto:i.insertinto,closeafterpick:i.closeafterpick,shortreturn:i.shortreturn})}),RVS.F.addBodyClickListener=function(e){jQuery("body").on("click.revbuilderbodyclick",function(e){if(void 0!==RVS.S.waitOnFeedback&&void 0!==RVS.S.waitOnFeedback.allowed){var t=!1;for(var i in RVS.S.waitOnFeedback.allowed)RVS.S.waitOnFeedback.allowed.hasOwnProperty(i)&&(t=!0===t||jQuery.inArray(RVS.S.waitOnFeedback.allowed[i],e.target.classList)>=0);if(!t)return void 0!==RVS.S.waitOnFeedback.closeEvent&&RVS.DOC.trigger(RVS.S.waitOnFeedback.closeEvent),RVS.S.waitOnFeedback=void 0,jQuery("body").unbind("click.revbuilderbodyclick"),!1}})},RVS.F.findUndefineds=function(e,t){var i="";for(var a in t=void 0===t?"ROOT":t,e)e.hasOwnProperty(a)&&("object"==typeof e[a]?(i=t+"."+a,RVS.F.findUndefineds(e[a],i)):void 0===e[a]&&console.log(t+"."+a+"="+t+"."+a+'===undefined ? "" : '+t+"."+a+";"))},RVS.F.dragMe=function(e){e.element.data("dragstart",{top:"auto",left:"auto",right:"auto",bottom:"auto"}),e.element.draggable({start:function(t,i){RVS.F.openBackupGroup({id:"elementmovement",txt:"Move "+e.element.attr("id"),icon:"open_with"}),RVS.F.updateContentDeltas(),RVS.S.click.y=t.clientY,RVS.S.click.x=t.clientX,s=[],e.mem={x:0,y:0},e.revert={x:"auto"===this.style.left?-1:1,y:"auto"===this.style.top?-1:1},void 0!==e.input&&void 0!==e.input.x&&(e.mem.x=parseInt(e.input.x.val(),0)),void 0!==e.input&&void 0!==e.input.y&&(e.mem.y=parseInt(e.input.y.val(),0)),e.attribute=void 0===e.attribute?{x:"",y:""}:e.attribute,e.attribute.x=""===e.attribute.x||void 0===e.attribute.x?e.input.x.data("r"):e.attribute.x,e.attribute.y=""===e.attribute.y||void 0===e.attribute.y?e.input.y.data("r"):e.attribute.y,e.pos={x:0,y:0},s.push(e),RVS.C.vW.removeClass("mode__slidelayout"),RVS.C.vW.addClass("mode__navlayout"),RVS.F.openSettings({forms:e.forms,uncollapse:!0})},drag:function(e,t){for(var i in RVS.S.DaD.dragdelta.x=e.clientX-RVS.S.click.x,RVS.S.DaD.dragdelta.y=e.clientY-RVS.S.click.y,s)s.hasOwnProperty(i)&&y(s[i]);t.position={}},stop:function(t,i){RVS.F.closeBackupGroup({id:"elementmovement",txt:"Move "+e.element.attr("id"),icon:"open_with"})}})},RVS.F.updateFormPositions=function(e){var t=e.jf.closest(".form_collector"),i=e.jf.closest("#the_right_toolbar_inner"),a=t.data();if(!0===e.uncollapse||"true"===e.uncollapse){var o=i.find(".form_collector:visible .formcontainer");if("form_collector_layerlist"!==t.attr("id"))for(var r=0;r<o.length;r++)"form_layerlist"!==o[r].id&&jQuery(o[r]).addClass("collapsed");e.jf.removeClass("collapsed")}void 0!==e.jf[0]&&void 0!==e.jf[0].dataset&&(void 0!==e.jf[0].dataset.unselect&&jQuery(e.jf[0].dataset.unselect).removeClass("selected"),void 0!==e.jf[0].dataset.select&&jQuery(e.jf[0].dataset.select).addClass("selected")),a&&void 0!==a.underlay&&(tpGS.gsap.set("#the_container",{filter:"blur(5px)"}),jQuery(a.underlay).show()),RVS.DOC.trigger("scrollUpdates")},RVS.F.showForms=function(e,t){var i,a=e.split(":");for(var o in RVS.eMode.lo_container=void 0===RVS.eMode.lo_container?document.getElementById("mmbw_loptions"):RVS.eMode.lo_container,RVS.eMode.sticky_container=void 0===RVS.eMode.sticky_container?document.getElementById("settings_sticky_info"):RVS.eMode.sticky_container,RVS.eMode.stickyLeft=void 0===RVS.eMode.stickyLeft?document.getElementById("settings_sticky_left"):RVS.eMode.stickyLeft,RVS.eMode.stickyRight=void 0===RVS.eMode.stickyRight?document.getElementById("settings_sticky_right"):RVS.eMode.stickyRight,a[0].indexOf("*sliderlayout*")>=0&&"sliderlayout"!==RVS.S.vWmode&&(RVS.F.mainMode({mode:"sliderlayout"}),RVS.eMode.top="slider",i=jQuery(".general_submodule_trigger.selected")),a[0].indexOf("*navlayout*")>=0&&"navlayout"!==RVS.S.vWmode&&(RVS.F.mainMode({mode:"navlayout"}),RVS.eMode.top="navigation",i=jQuery(".nav_submodule_trigger.selected")),a[0].indexOf("*slidelayout*")>=0&&"slidelayout"!==RVS.S.vWmode&&(RVS.F.mainMode({mode:"slidelayout"}),RVS.eMode.top="slide",i=jQuery(".slide_submodule_trigger.selected")),a[0].indexOf("*mode__slidestyle*")>=0&&(RVS.DOC.trigger("changeToSlideMode"),RVS.eMode.top="slide",i=jQuery(".slide_submodule_trigger.selected")),a[0].indexOf("*mode__slidecontent*")>=0&&(RVS.DOC.trigger("changeToLayerMode"),RVS.eMode.top="layer",i=jQuery(".layer_submodule_trigger.selected")),void 0!==i&&i.length>=1&&void 0!==i.data("forms")&&(RVS.eMode.menu=i.data("forms")[0]),a)a.hasOwnProperty(o)&&(a[o]=a[o].replace("*sliderlayout*",""),a[o]=a[o].replace("*navlayout*",""),a[o]=a[o].replace("*slidelayout*",""),a[o]=a[o].replace("*mode__slidestyle*",""),a[o]=a[o].replace("*mode__slidecontent*",""));if(""!==a[0]&&(RVS.eMode.menu=a[0]),RVS.F.updateFormPositions({jf:jQuery(a[0]),focus:!0,uncollapse:t}),RVS.eMode.preMode=RVS.eMode.mode,"layer"===RVS.eMode.top&&"#form_layer_content"===RVS.eMode.menu&&1===RVS.selLayers.length&&"audio"===RVS.L[RVS.selLayers[0]].type&&RVS.F.checkForAudioLayer(),"layer"!==RVS.eMode.top||"#form_layer_animation"!==RVS.eMode.menu&&"#form_layer_loop"!==RVS.eMode.menu?"layer"===RVS.eMode.top&&"#form_layer_hover"===RVS.eMode.menu&&"hover"!==RVS.eMode.mode?(RVS.eMode.mode="hover",RVS.eMode.lo_container.className="mmbw_hover",RVS.eMode.sticky_container.className="sticky_in_animation",RVS.F.animationMode(!1),RVS.S.shwLayerAnim&&(RVS.S.shwLayerAnim=!1,RVS.F.changeSwitchState({el:document.getElementById("layer_simulator"),state:"play"}),RVS.F.changeSwitchState({el:document.getElementById("layer_simulator_loop"),state:"play"})),RVS.F.updateSelectedLayersIdleHover(),RVS.TL.TL.removeClass("inAnimationMode"),RVS.C.rb.removeClass("inAnimationMode")):"idle"!==RVS.eMode.mode&&(RVS.eMode.mode="idle",RVS.eMode.lo_container.className="mmbw_idle",RVS.eMode.sticky_container.className="",RVS.F.animationMode(!1),RVS.S.shwLayerAnim&&(RVS.S.shwLayerAnim=!1,RVS.F.changeSwitchState({el:document.getElementById("layer_simulator"),state:"play"}),RVS.F.changeSwitchState({el:document.getElementById("layer_simulator_loop"),state:"play"})),RVS.F.updateSelectedLayersIdleHover(),RVS.TL.TL.removeClass("inAnimationMode"),RVS.C.rb.removeClass("inAnimationMode")):(RVS.selLayers.length>=1&&RVS.F.selectLayers({id:RVS.L[RVS.selLayers[0]].uid,overwrite:!0,action:"add"}),RVS.eMode.mode="animation",RVS.eMode.lo_container.className="mmbw_animation",RVS.eMode.sticky_container.className="sticky_in_animation",RVS.F.animationMode(!0),RVS.TL.TL.addClass("inAnimationMode"),RVS.C.rb.addClass("inAnimationMode")),"idle"===RVS.eMode.mode&&"idle"!==RVS.S.keyFrame&&(RVS.S.keyFrame="idle",RVS.F.animationMode(!1)),"hover"===RVS.eMode.preMode&&"hover"!==RVS.eMode.mode)for(var r in RVS.selLayers)RVS.selLayers.hasOwnProperty(r)&&RVS.F.drawHTMLLayer({uid:RVS.selLayers[r]});"slide"===RVS.eMode.top&&"#form_slide_loops"==RVS.eMode.menu?(RVS.TL.TL.addClass("slideloopedit"),RVS.TL.slideLoopEdit=!0):RVS.TL.slideLoopEdit&&(RVS.TL.TL.removeClass("slideloopedit"),RVS.TL.slideLoopEdit=!1),RVS.F.checkForFixedScroll(),RVS.DOC.trigger("editorViewModeChange"),clearTimeout(RVS.eMode.stickytimer),RVS.eMode.stickytimer=setTimeout(function(e){var t=(e=void 0===e?"slider"===RVS.eMode.top?jQuery(".general_submodule_trigger.selected"):"navigation"===RVS.eMode.top?jQuery(".nav_submodule_trigger.selected"):"slide"===RVS.eMode.top?jQuery(".slide_submodule_trigger.selected"):jQuery(".layer_submodule_trigger.selected"):e).find(".gso_title")[0];void 0!==t&&(RVS.eMode.stickyLeft.innerHTML=t.innerHTML,RVS.eMode.stickyLeft.classList.remove("purple"),void 0!==t.dataset.stickycolor&&"purple"===t.dataset.stickycolor&&(RVS.eMode.stickyLeft.className+=" purple")),RVS.eMode.stickyRight.innerHTML=RVS_LANG["sticky_"+RVS.eMode.top]},50,i)},RVS.F.openSettings=function(e){if(void 0!==e.btn&&void 0===e.forms&&(e.forms=e.btn.data("forms"),e.forms=void 0===e.forms?e.btn.closest(".markable").length>0?e.btn.closest(".markable").data("forms"):[]:e.forms),void 0!==e.forms)if("string"==typeof e.forms)RVS.F.showForms(e.forms,e.uncollapse);else for(var t in e.forms)e.forms.hasOwnProperty(t)&&RVS.F.showForms(e.forms[t],e.uncollapse)},RVS.F.mainMode=function(e){switch(RVS.C.vW.removeClass("mode__sliderlayout"),RVS.C.vW.removeClass("mode__slidelayout"),RVS.C.vW.removeClass("mode__navlayout"),RVS.S.vWmode=e.mode,!0!==e.ignoreReDraw&&RVS.DOC.trigger("beforeLayoutModeChange"),e.mode){case"navlayout":RVS.C.vW.addClass("mode__navlayout"),RVS.F.redrawAllNavigationContainer();break;case"sliderlayout":jQuery("#theslidermodule").addClass("selected"),RVS.C.vW.addClass("mode__sliderlayout"),RVS.F.redrawAllNavigationContainer();break;case"slidelayout":RVS.C.vW.addClass("mode__slidelayout"),void 0!==e.slide?RVS.F.setSlideFocus({slideid:e.slide}):RVS.F.updateAllHTMLLayerPositions()}e.set&&void 0!==e.forms&&RVS.F.openSettings({forms:e.forms,uncollapse:e.uncollapse})},RVS.F.setInputTo=function(e){jQuery.each(e.field,function(t,i){i=jQuery(i),RVS.F.updateEasyInput({el:i[0],nval:e.val,path:e.path}),"checkbox"===i[0].type&&RVS.F.turnOnOffVisUpdate({input:i}),i.trigger("change")})},RVS.F.generateAttachmentMetaData=function(){RVS.ENV.create_img_meta&&RVS.F.ajaxRequest("generate_attachment_metadata",{},function(){},!0,!0)},RVS.F.updateInputBoxes=function(){jQuery(".tos2, .slideinput, .sliderinput").trigger("init")},RVS.F.reInitInputBoxes=function(){jQuery(".tos2, .slideinput, .sliderinput").trigger("init")},RVS.F.checkAvailableTagS2=function(e){return void 0!==e.val&&void 0!==e.select&&(!(e.select.find('option[value="'+e.val+'"]').length>0)&&(e.select.append('<option value="'+e.val+'">'+e.val+"</option>"),e.select.trigger("change.select2RS").select2RS({tags:!0}),!0))},RVS.F.removeAllOptionsS2=function(e){void 0!==e&&void 0!==e.select&&(e.select.find("option").remove(),e.select.hasClass("nosearchbox")?e.select.trigger("change.select2RS").select2RS({minimumResultsForSearch:"Infinity",placeholder:"Enter or Select"}):e.select.hasClass("setboxes")&&e.select.trigger("change.select2RS").select2RS({tags:!0,placeholder:"Enter or Select"}))},RVS.F.addOptionS2=function(e){return void 0!==e.val&&void 0!==e.select&&(!(e.select.find('option[value="'+e.val+'"]').length>0)&&(e.select.append('<option value="'+e.val+'">'+e.txt+"</option>"),void(e.select.hasClass("nosearchbox")?e.select.trigger("change.select2RS").select2RS({minimumResultsForSearch:"Infinity",placeholder:"Enter or Select"}):e.select.hasClass("setboxes")&&e.select.trigger("change.select2RS").select2RS({tags:!0,placeholder:"Enter or Select"}))))},RVS.F.addOrSelectOption=function(e){if(void 0===e.val||void 0===e.select)return!1;e.select.find('option[value="'+e.val+'"]').length>0&&!1!==e.selected?e.select.val(e.val).trigger("change"):(!1!==e.selected?e.select.append('<option selected value="'+e.val+'">'+e.val+"</option>"):e.select.append('<option value="'+e.val+'">'+e.val+"</option>"),e.select.select2RS({minimumResultsForSearch:"Infinity",placeholder:"Select From List"}))},RVS.F.setS2Option=function(e){void 0!==e&&(void 0!==e.enableValue&&e.select.find('option[value="'+e.enableValue+'"]').removeAttr("disabled"),void 0!==e.disableValue&&e.select.find('option[value="'+e.disableValue+'"]').attr("disabled","disabled"),void 0!==e.selectValue&&e.select.val(e.selectValue),e.select.hasClass("nosearchbox")?e.select.trigger("change.select2RS").select2RS({minimumResultsForSearch:"Infinity",placeholder:"Enter or Select"}):e.select.hasClass("setboxes")&&e.select.trigger("change.select2RS").select2RS({tags:!0,placeholder:"Enter or Select"}),!0===e.update&&RVS.F.updateEasyInput({el:e.select[0],path:e.path}))},RVS.F.setRadio=function(e){if(void 0!==e&&void 0!==e.radio&&void 0!==e.radioValue){var t=jQuery('input:radio[name="'+e.radio+'"]').filter('[value="'+e.radioValue+'"]');t.prop("checked",!0),!0===e.change&&t.trigger("change"),!0===e.update&&RVS.F.updateEasyInput({el:e.select[0],path:e.path})}},RVS.F.insertAfter=function(e,t){var i=t.parentNode;i.lastChild==t?i.appendChild(e):i.insertBefore(e,t.nextSibling)},RVS.F.prepareOneInputWithPresets=function(e){var t=jQuery(e);if(!t.parent().hasClass("input_presets_wrap")){t.wrap('<div class="input_presets_wrap"></div>');var i=t.parent(),a=jQuery('<div class="input_presets"></div>'),o=e.dataset.presets_val.split("!"),r=e.dataset.presets_text.split("!"),s="";for(var n in i.append('<i class="material-icons input_presets_dropdown">more_vert</i>'),r)r.hasOwnProperty(n)&&(s=r[n].indexOf("$$")>=0?"ipwborder":"",r[n]=r[n].replace("$R$",'<i class="material-icons">shuffle</i>').replace("$C$",'<i class="material-icons">create</i>').replace("$I$",'<i class="material-icons">system_update_alt</i>').replace("$SC$",'<i class="material-icons">fullscreen_exit</i>').replace("$SR$",'<i class="material-icons">arrow_back</i>').replace("$SB$",'<i class="material-icons">arrow_upward</i>').replace("$ST$",'<i class="material-icons">arrow_downward</i>').replace("$SL$",'<i class="material-icons">arrow_forward</i>').replace("$CL$",'<i class="material-icons">remove_circle_outline</i>').replace("$LI$",'<i class="material-icons">link</i>').replace("$LO$",'<i class="material-icons">local_offer</i>').replace("$CY$",'<i class="material-icons">import_export</i>'),a.append('<div class="input_preset '+s+'" data-iid="'+e.id+'" data-r="'+e.dataset.r+'" data-val="'+o[n]+'">'+r[n]+"</div>"));i.append(a)}},RVS.F.initInputsWithPresets=function(e){void 0===e&&jQuery(".input_with_presets").each(function(){RVS.F.prepareOneInputWithPresets(this)})},RVS.F.createSelectOptions=function(e){void 0===(n=void 0===n?{}:n)[e.ctype]?(n[e.ctype]=[],RVS.F.ajaxRequest("get_list_of",{type:e.ctype},function(t){if(t.pages)for(var i in t.pages)t.pages.hasOwnProperty(i)&&n[e.ctype].push({id:i,slug:t.pages[i].slug,title:t.pages[i].title});if(t.sliders)for(var i in t.sliders)t.sliders.hasOwnProperty(i)&&n[e.ctype].push({id:i,slug:t.sliders[i].slug,title:t.sliders[i].title,type:t.sliders[i].type,subtype:t.sliders[i].subtype});if(t.posttypes)for(var i in t.posttypes)t.posttypes.hasOwnProperty(i)&&n[e.ctype].push({slug:t.posttypes[i].slug,title:t.posttypes[i].title});e.select.innerHTML=f({array:n[e.ctype],type:e.select.dataset.valuetype,preselected:e.select.value,filter:e.select.dataset.filter,subfilter:e.select.dataset.subfilter}),jQuery(e.select).select2RS({minimumResultsForSearch:"Infinity",placeholder:"Select From List"}),RVS.F.updateSelectsWithSpecialOptions()},void 0,void 0,RVS_LANG.updateselects+'<br><span style="font-size:17px; line-height:25px;">"'+RVS_LANG.buildingSelects+'"</span>')):(e.select.innerHTML=f({array:n[e.ctype],type:e.select.dataset.valuetype,preselected:e.select.value,filter:e.select.dataset.filter,subfilter:e.select.dataset.subfilter}),jQuery(e.select).select2RS({minimumResultsForSearch:"Infinity",placeholder:"Select From List"}),RVS.F.updateSelectsWithSpecialOptions())},RVS.F.getCustomPostTypes=function(e){if(void 0!==RVS.LIB.POST_TYPES)return e&&e(),RVS.LIB.POST_TYPES;RVS.LIB.POST_TYPES=[],RVS.F.ajaxRequest("get_list_of",{type:"posttypes"},function(t){if(t.posttypes)for(var i in t.posttypes)t.posttypes.hasOwnProperty(i)&&RVS.LIB.POST_TYPES.push({slug:t.posttypes[i].slug,title:t.posttypes[i].title,tax:t.posttypes[i].tax});return e&&e(),RVS.LIB.POST_TYPES})},RVS.F.updateSelectsWithSpecialOptions=function(){if(void 0===l?l={listofselects:document.getElementsByClassName("select_of_customlist"),curindex:0}:l.curindex++,l.curindex>=l.listofselects.length)return delete l,!0;RVS.F.createSelectOptions({ctype:l.listofselects[l.curindex].dataset.ctype,select:l.listofselects[l.curindex]})},RVS.F.noGradient=function(e){return-1==e.indexOf("slide.bg.color")&&-1==e.indexOf("slider.bg.color")&&-1==e.indexOf(".progressbar.color")&&(e.indexOf(".color")>=0||e.indexOf(".borderColor")>=0||e.indexOf(".strokeColor")>=0)},RVS.DOC.on("RSCOLOR.OPEN",function(e,t){if(jQuery.rsColorPickerApi.hideGlobal(),null!=t&&void 0!==t.currentInput&&void 0!==t.currentInput[0]){var i=t.currentInput[0].className.indexOf("layerinput")>=0?"layer":t.currentInput[0].className.indexOf("sliderinput")>=0?"slider":t.currentInput[0].className.indexOf("navstyleinput")>=0?"navstyle":t.currentInput[0].className.indexOf("slideinput")>=0?"slide":"na";if("na"!==i){var a=RVS.F.getConcVals(t.currentInput[0].dataset.r,RVS.screen),o=[];switch(a=a.replace("slider.",""),i){case"layer":for(var r in RVS.selLayers)RVS.selLayers.hasOwnProperty(r)&&o.push({inpname:t.currentInput[0].name,r:RVS.S.slideId+".layers."+RVS.selLayers[r]+"."+a,layer:RVS.selLayers[r],slide:RVS.S.slideId,type:"layer"});break;case"slide":o.push({inpname:t.currentInput[0].name,r:RVS.S.slideId+".slide."+a,slide:RVS.S.slideId,type:"slide"});break;case"slider":o.push({inpname:t.currentInput[0].name,r:"settings."+a,type:"slider"});break;case"navstyle":o.push({inpname:t.currentInput[0].name,r:a,type:"navstyle",evtparam:t.currentInput[0].dataset.evtparam})}RVS.F.checkGlobalSkinAvail(),jQuery.rsColorPickerApi.showGlobal(t,RVS.SLIDER.settings.skins.colors,o)}}}),RVS.DOC.on("click","#edit_skin_colors",function(){jQuery.rsColorPickerApi.closeColorPicker(),RVS.F.openColorSkinApi()}),RVS.F.checkGlobalSkinAvail=function(){for(var e in RVS.SLIDER.settings.skins.colors)if(RVS.SLIDER.settings.skins.colors.hasOwnProperty(e)){var t=[];for(var i in RVS.SLIDER.settings.skins.colors[e].ref)if(RVS.SLIDER.settings.skins.colors[e].ref.hasOwnProperty(i)){var a=RVS.SLIDER.settings.skins.colors[e].ref[i];void 0!==a.slide&&void 0===RVS.SLIDER[a.slide]||(void 0===a.layer||void 0!==RVS.SLIDER[a.slide]&&void 0!==RVS.SLIDER[a.slide].layers&&void 0!==RVS.SLIDER[a.slide].layers[a.layer])&&t.push(a)}RVS.SLIDER.settings.skins.colors[e].ref=t}},RVS.F.initTpColorBoxes=function(e){jQuery(e).rsColorPicker({init:function(e,t,i,a){var o=jQuery('<input type="text" class="layerinput">').appendTo(e);t.data("ghost",o).hide()},onRefresh:function(e,t,i,a){e.data("ghost").val(t)},onEdit:function(e,t,i,a){e.data("ghost").val(t);var o=void 0!==i&&void 0!==a&&-1!==a&&void 0!==i[a]?i[a]:void 0;void 0!==o&&(o.v=t),RVS.DOC.trigger("coloredit",[e,t,void 0,void 0,void 0!==o?o:e[0].className.indexOf("skininput")>0?RVS.SLIDER.settings.skins.colors[e[0].dataset.evtparam]:void 0])},change:function(e,t,i,a,o){e.data("ghost").val(t);var r,s=void 0!==a?a:e[0].className.indexOf("skininput")>0?jQuery.extend(!0,{},RVS.SLIDER.settings.skins.colors):void 0;if(void 0!==s){var n=-1==o||void 0===o?e[0].dataset.evtparam:o;void 0!==s[n]&&(s[n].v=t),RVS.F.openBackupGroup({id:"colorchange",txt:void 0!==s[n]?s[n].alias+" Skin Change":(r=e[0].name,("layerTextColorHover"===r?"Layer  Hover Color":"layerTextColor"===r?"Layer Color":"layerTextColorInFrame"===r?"Layer  Color in Frame":"frameColorAnimation"===r?"Layer Color Animation":"frameBGColorAnimation"===r?"Frame BG Color Animation":"frameBGColorAnimationDouble"===r?"Frame BG Color Animation":"layerBGColor"===r?"Layer Background Color":"layerBorderColor"===r?"Layer Border Color":"layerSVGColor"===r?"SVG Color":"layerStrokeColor"===r?"Stroke Color":"slide_bg_color"===r?"Slide Background Color":"sliderprogresscolor"===r?"Progress Bar Color":"sliderTabBgColor"===r?"Tab Wrap Color":"sliderThumbBgColor"===r?"Thumbnails BG Color":"sliderbgcolor"===r?"Slider Bakground Color":"Color Change")+" "),icon:"style"}),RVS.F.updateSliderObj({path:"settings.skins.colors",val:jQuery.extend(!0,{},void 0===a?s:a)}),s=s[n]}RVS.DOC.trigger("coloredit",[e,t,i,!0,s]),void 0!==s&&setTimeout(function(){RVS.F.closeBackupGroup({id:"colorchange"})},500)},cancel:function(e,t,i,a,o){e.data("ghost").val(t);var r=void 0!==a&&void 0!==o&&-1!==o&&void 0!==a[o]?a[o]:void 0;void 0!==r&&(r.v=t),RVS.DOC.trigger("colorcancel",[e,t,void 0,void 0,void 0!==r?r:e[0].className.indexOf("skininput")>0?RVS.SLIDER.settings.skins.colors[e[0].dataset.evtparam]:void 0])}})},RVS.F.createWPMLOptions=function(e){var t="";if("undefined"!=typeof RS_WPML_LANGS&&void 0!==RS_WPML_LANGS){for(var i in RS_WPML_LANGS)RS_WPML_LANGS.hasOwnProperty(i)&&(t+='<option value="'+i+'" data-src="'+RS_WPML_LANGS[i].image+'" data-select2RS-id="'+i+'">'+RS_WPML_LANGS[i].title+"</option>");e.innerHTML=t}},RVS.F.convertEase=function(e){return e=(e="none"===(e=void 0===e?"power2.inOut":e)?"none":"slow"===e?"slow":e.replace("easeIn","in").replace("easeOut","out").replace("easeInOut","inOut")).indexOf(".")>=0?e.charAt(0).toLowerCase()+e.slice(1):e},RVS.F.createEaseOptions=function(e){e=void 0===e.innerHTML?e[0]:e,void 0!==i&&""!==i||(i='<option value="default">Default</option>',i+='<option value="none">none</option>',i+='<option value="power0.in">power0.in</option>',i+='<option value="power0.inOut">power0.inOut</option>',i+='<option value="power0.out">power0.out</option>',i+='<option value="power1.in">power1.in</option>',i+='<option value="power1.inOut">power1.inOut</option>',i+='<option value="power1.out">power1.out</option>',i+='<option value="power2.in">power2.in</option>',i+='<option value="power2.inOut">power2.inOut</option>',i+='<option value="power2.out">power2.out</option>',i+='<option value="power3.in">power3.in</option>',i+='<option value="power3.inOut">power3.inOut</option>',i+='<option value="power3.out">power3.out</option>',i+='<option value="power4.in">power4.in</option>',i+='<option value="power4.inOut">power4.inOut</option>',i+='<option value="power4.out">power4.out</option>',i+='<option value="back.in">back.in</option>',i+='<option value="back.inOut">back.inOut</option>',i+='<option value="back.out">back.out</option>',i+='<option value="bounce.in">bounce.in</option>',i+='<option value="bounce.inOut">bounce.inOut</option>',i+='<option value="bounce.out">bounce.out</option>',i+='<option value="BounceLite">Bounce Lite</option>',i+='<option value="BounceSolid">Bounce Solid</option>',i+='<option value="BounceStrong">Bounce Strong</option>',i+='<option value="BounceExtrem">Bounce Extrem</option>',i+='<option value="circ.in">circ.in</option>',i+='<option value="circ.inOut">circ.inOut</option>',i+='<option value="circ.out">circ.out</option>',i+='<option value="elastic.in">elastic.in</option>',i+='<option value="elastic.inOut">elastic.inOut</option>',i+='<option value="elastic.out">elastic.out</option>',i+='<option value="expo.in">expo.in</option>',i+='<option value="expo.inOut">expo.inOut</option>',i+='<option value="expo.out">expo.out</option>',i+='<option value="sine.in">sine.in</option>',i+='<option value="sine.inOut">sine.inOut</option>',i+='<option value="sine.out">sine.out</option>',i+='<option value="slow">slow</option>',i+='<option value="SFXBounceLite">SFX - Bounce Lite</option>',i+='<option value="SFXBounceSolid">SFX - Bounce Solid</option>',i+='<option value="SFXBounceStrong">SFX - Bounce Strong</option>',i+='<option value="SFXBounceExtrem">SFX - Bounce Extrem</option>'),e.innerHTML=i,void 0!==e.dataset&&!0===e.dataset.inherit&&(e.innerHTML+='<option value="inherit">Inherit</option>'+thisease)},RVS.F.createSlideAnimOptions=function(t){if(t=void 0===t.innerHTML?t[0]:t,void 0===e||""===e)for(var i in RVS.LIB.SLIDEANIMS)if(RVS.LIB.SLIDEANIMS.hasOwnProperty(i)){var a='<optgroup label="'+RVS.LIB.SLIDEANIMS[i].alias+'">';for(var o in RVS.LIB.SLIDEANIMS[i])RVS.LIB.SLIDEANIMS[i].hasOwnProperty(o)&&"alias"!==o&&(a+='<option value="'+o+'">'+RVS.LIB.SLIDEANIMS[i][o]+"</option>");e+=a+"</optgoup>"}t.innerHTML=e},RVS.F.createSliderListOptions=function(e){if(e=void 0===e.innerHTML?e[0]:e,void 0===t||""===t)for(var i in t="",RVS.LIB.SLIDERS)RVS.LIB.SLIDERS.hasOwnProperty(i)&&(t+='<option value="'+RVS.LIB.SLIDERS[i].alias+'">'+RVS.LIB.SLIDERS[i].title+"</option>");e.innerHTML=t},RVS.F.initialiseGlobalBoxes=function(){jQuery(".tos2.slideAnimSelect").each(function(){RVS.F.createSlideAnimOptions(this)}),jQuery(".tos2.selectsliderlist").each(function(){RVS.F.createSliderListOptions(this)}),jQuery(".tos2.easingSelect").each(function(){RVS.F.createEaseOptions(this)}),jQuery(".tos2.wpml_lang_selector").each(function(){RVS.F.createWPMLOptions(this)}),jQuery(".tos2.nosearchbox").select2RS({minimumResultsForSearch:"Infinity",placeholder:"Select From List"}),jQuery(".tos2.searchbox").select2RS({placeholder:"Enter or Select"}),jQuery(".tos2.setboxes").select2RS({tags:!0,placeholder:"Enter or Select"}),jQuery(".tos2.wpml_lang_selector").select2RS({minimumResultsForSearch:"Infinity",placeholder:"Select From List",templateResult:h}),RVS.DOC.on("click","#add_on_management",function(){void 0!==RVS.ENV.newAddonsCounter&&(RVS.ENV.newAddonsCounter.style.display="none"),RVS.F.openAddonModal()}),RVS.DOC.on("openAddonModal",RVS.F.openAddonModal)},RVS.F.initialiseInputBoxes=function(){if(RVS.F.initialiseGlobalBoxes(),RVS.F.initTpColorBoxes(".my-color-field"),RVS.F.initPreDrops(),RVS.F.initInputsWithPresets(),RVS.DOC.on("keyup focus change",".livechange",function(e){var t=this.dataset;RVS.S.inputField=this.id,RVS.S.inputFieldCursorAt=this.selectionStart,void 0!==t&&void 0!==t.evt&&jQuery("body").trigger(t.evt,{event:e,val:this.value,eventparam:t.evtparam})}),RVS.DOC.on("focus","textarea, input",function(e){RVS.S.inFocus=e.currentTarget,RVS.S.inFocusValue=e.currentTarget.value}),RVS.DOC.on("blur","textarea, input",function(e){"ta_layertext"===e.target.id&&RVS.F.redrawEditedTextLayerwhenPlaceholder(),RVS.S.inFocus="none"}),RVS.DOC.on("click","#filedrop_close",RVS.F.browserDroppable.close),RVS.DOC.on("click","#fullpage_close",RVS.F.fullPageInfo.close),RVS.DOC.on("mouseleave",".input_presets_wrap",function(){jQuery(this).removeClass("infocus")}),RVS.DOC.on("click",".input_preset",function(){if("###metapicker###"===this.dataset.val)RVS.DOC.trigger("addMetaToLayer",{eventparam:"#"+this.dataset.iid});else{var e=jQuery("#"+this.dataset.iid);e.val(this.dataset.val),e.trigger("change"),e.focus()}}),RVS.DOC.on("click",".show_more_toggle",function(){jQuery(this).toggleClass("showlesson"),jQuery(this.dataset.toggle).toggle()}),RVS.DOC.on("click",".icon_switcher",function(){this.className.indexOf("icsw_on")>=0?RVS.F.setInputTo({field:jQuery(this.dataset.ref),val:!1}):RVS.F.setInputTo({field:jQuery(this.dataset.ref),val:!0})}),RVS.DOC.on("click",".triggerEvent",function(e){var t=this.dataset;jQuery("body").trigger(t.evt,{event:e,eventparam:t.evtparam})}),RVS.DOC.on("click",".vs-item",function(){jQuery(this.parentNode).find(".vs-item").removeClass("selected"),this.className+=" selected",RVS.F.showHideGroups({hide:this.dataset.hide,show:this.dataset.show,showprio:this.dataset.showprio})}),RVS.DOC.on("click",".screen_selector, .toolkit_selector, .eventcaller, .form_opener_btn, .collectortab, .opensettingstrigger, .extendval, .openmodaltrigger",function(e){if(e.target.className.indexOf("tponoff")>=0||this.className.indexOf("ssnotavailable")>=0);else{if(void 0!==this.dataset.triggerinp&&jQuery(this.dataset.triggerinp).val(this.dataset.triggerinpval).trigger("change"),void 0!==this.dataset.forms&&RVS.F.openSettings({forms:jQuery(this).data("forms"),uncollapse:this.dataset.collapse}),void 0!==this.dataset.unselect&&jQuery(this.dataset.unselect).removeClass("selected"),void 0!==this.dataset.select&&jQuery(this.dataset.select).addClass("selected"),void 0!==this.dataset.extendval){var t=jQuery(this.dataset.inp);t.val(t.val()+" "+this.dataset.extendval).trigger("change")}void 0!==this.dataset.screenicon&&(jQuery("#screen_selector_ph_icon").html(this.dataset.screenicon),jQuery("#screen_selector_ph_icon_sr").html(this.dataset.screenicon)),void 0!==this.dataset.evt&&(this.className.indexOf("callEvent")>=0||this.className.indexOf("eventcaller")>=0)&&jQuery("body").trigger(this.dataset.evt,this.dataset.evtparam),void 0!==this.dataset.modal&&RVS.F.RSDialog.create({modalid:this.dataset.modal})}RVS.DOC.trigger("previewStopLayerAnimation")}),jQuery(".copyclipboard").length>0&&"undefined"!=typeof RSClipboard){var e=new RSClipboard(".copyclipboard");e.on("success",function(e){tpGS.gsap.fromTo(jQuery(e.trigger),.4,{autoAlpha:0},{autoAlpha:1,ease:"power3.inOut"})}),e.on("error",function(e){(e=jQuery(e.trigger)).addClass("errorcopy"),setTimeout(function(){e.removeClass("errorcopy")},400)})}jQuery(".inputDatePicker").length>0&&jQuery(".inputDatePicker").datepicker({dateFormat:"dd-mm-yy 00:00"}),RVS.F.reInitInputBoxes(),RVS.DOC.on("keydown",".valueduekeyboard",function(e,t){var i=e.keyCode?e.keyCode:e.which,a=null!=e.currentTarget.dataset.steps?parseFloat(e.currentTarget.dataset.steps):1,o=null!=e.currentTarget.dataset.min?e.currentTarget.dataset.min:-99999,r=null!=e.currentTarget.dataset.max?e.currentTarget.dataset.max:99999,s=parseFloat(e.currentTarget.value)||0;switch(e.shiftKey&&(a*=10),i){case 38:e.currentTarget.value=Math.min(s+a,r),e.currentTarget.value!==Math.round(e.currentTarget.value)&&(e.currentTarget.value=Math.round(100*e.currentTarget.value)/100);break;case 40:e.currentTarget.value=Math.max(s-a,o),e.currentTarget.value!==Math.round(e.currentTarget.value)&&(e.currentTarget.value=Math.round(100*e.currentTarget.value)/100)}38!==i&&40!==i||jQuery(e.currentTarget).trigger("change")}),RVS.DOC.on("keyup",".losefocusonenter",function(e,t){13===e.keyCode&&jQuery(document.activeElement).blur()}),RVS.DOC.on("keyup","input, textarea",function(e,t){13===e.keyCode&&(RVS.S.inFocusValue=this.value)}),RVS.DOC.on("keyup keydown",function(e,t){"9"==e.keyCode&&jQuery("#builderView").scrollTop(0)}),RVS.DOC.on("keydown",function(e,t){if("27"==e.keyCode&&(void 0!==RVS.S.inFocus&&"none"!==RVS.S.inFocus&&RVS.S.inFocus.value!==RVS.S.inFocusValue&&(RVS.S.inFocus.value=RVS.S.inFocusValue,void 0!==RVS.S.inFocus.dataset.evt&&RVS.DOC.trigger(RVS.S.inFocus.dataset.evt,{val:RVS.S.inFocusValue,eventparam:RVS.S.inFocus.dataset.evtparam})),void 0!==RVS.S.inFocus&&"none"!==RVS.S.inFocus&&jQuery(RVS.S.inFocus).trigger("blur")),!0!==RVS.S.ovMode&&"32"==e.keyCode&&("none"===RVS.S.inFocus||void 0===RVS.S.inFocus))return RVS.F.toggleTimeLine(),!1}),RVS.DOC.on("click",".resettodefault",function(){var e=jQuery(this),t=e.data(),i=jQuery(t.target);void 0!==t.r?e.hasClass("layerinput")?(RVS.F.updateLayerObj({path:t.r,val:t.default,evt:t.evt,evtparam:t.evtparam}),void 0!==t.lib&&RVS.F.updateLayerObj({path:t.lib,val:""})):(RVS.F.updateSliderObj({path:t.r,val:t.default,evt:t.evt,evtparam:t.evtparam}),void 0!==t.lib&&RVS.F.updateSliderObj({path:t.lib,val:""})):(void 0!==i&&(i.val(t.default),i.trigger("change")),void 0!==t.evt&&RVS.DOC.trigger(t.evt,t.evtparam))}),RVS.DOC.on("getNewImageSize",function(e,t){if(void 0!==t){var i=t.split(".");if("slidebg"!==i[0]&&"slider"!==i[0]&&RVS.selLayers.length<=0)return;var a="slidebg"===i[0]?{r:"#slide#.slide.bg.image",rid:"#slide#.slide.bg.imageId",lib:"#slide#.slide.bg.imageLib",targetType:"slide",evt:"updateslidebasic",size:RVS.SLIDER[RVS.S.slideId].slide.bg.imageSourceType,url:RVS.SLIDER[RVS.S.slideId].slide.bg.image,id:RVS.SLIDER[RVS.S.slideId].slide.bg.imageId}:"slider"===i[0]?{r:"settings.layout.bg.image",rid:"settings.layout.bg.imageId",lib:"settings.layout.bg.imageLib",targetType:"slide",evt:"sliderBGUpdate",size:RVS.SLIDER.settings.layout.bg.imageSourceType,url:RVS.SLIDER.settings.layout.bg.image,id:RVS.SLIDER.settings.layout.bg.imageId}:{lib:"media.imageLib",targetType:"layer",evt:"updatelayerimagesrc",size:RVS.L[RVS.selLayers[0]].behavior.imageSourceType};switch(i[0]){case"slider":break;case"slidebg":a.evtparam="object"===i[1]?"double":"kenburnupdate";break;case"image":case"poster":a.rid="media."+i[0]+"Id",a.r="media."+i[0]+"Url",a.url=RVS.L[RVS.selLayers[0]].media[i[0]+"Url"],a.id=RVS.L[RVS.selLayers[0]].media[i[0]+"Id"];break;case"bg":a.rid="idle.backgroundImageId",a.r="idle.backgroundImage",a.lib="idle.bgimagelib",a.evt="updatelayerbgimage",a.url=RVS.L[RVS.selLayers[0]].idle.backgroundImage,a.id=RVS.L[RVS.selLayers[0]].idle.backgroundImageId}switch(i[1]){case"media":RVS.F.getMediaWithNewSize(a);break;case"object":RVS.F.getObjectWithNewSize(a)}}}),RVS.DOC.on("click",".removePosterImage",function(){var e=jQuery(this),t=e.data(),i=jQuery(t.target);"true"===this.dataset.multiple||this.dataset.multiple;void 0!==t.r?e.hasClass("layerinput")?(RVS.F.openBackupGroup({id:"UpdateLayerImage",txt:"Update Layer Image",icon:"photo"}),void 0!==t.rid&&RVS.F.updateLayerObj({path:t.rid,val:""}),void 0!==t.lib&&RVS.F.updateLayerObj({path:t.lib,val:"nothing"}),RVS.F.updateLayerObj({path:t.r,val:"",evt:t.evt,evtparam:t.evtparam}),RVS.F.closeBackupGroup({id:"UpdateLayerImage"})):(RVS.F.openBackupGroup({id:"UpdateSlideImage",txt:"Update Slide Image",icon:"photo"}),void 0!==t.rid&&RVS.F.updateSliderObj({path:t.rid,val:""}),void 0!==t.lib&&RVS.F.updateSliderObj({path:t.lib,val:"nothing"}),RVS.F.updateSliderObj({path:t.r,val:"",evt:t.evt,evtparam:t.evtparam}),RVS.F.closeBackupGroup({id:"UpdateSlideImage"}),RVS.F.updateEasyInputs({container:jQuery("#form_slidebg_source"),path:RVS.S.slideId+".slide.",trigger:"init"})):(void 0!==i&&(i.val(""),i.trigger("change")),t.evtparam=void 0===t.evtparam?{}:t.evtparam,t.evtparam.urlImage="",void 0!==t.evt&&RVS.DOC.trigger(t.evt,t.evtparam))}),RVS.DOC.on("click",".getVideoFromMediaLibrary",function(){var e=jQuery(this).data(),t=jQuery(e.target),i=this.className.indexOf("layerinput")>=0;RVS.F.openAddVideoDialog(RVS_LANG.choose_video,function(a,o){void 0!==e.r?(RVS.F.openBackupGroup({id:"updateVideo",txt:"Update Video from Media Library",icon:"videocam"}),void 0!==e.rid&&RVS.F.updateSliderObj({path:e.rid,val:o}),RVS.F.updateSliderObj({path:e.r,val:a,evt:e.evt,evtparam:e.evtparam}),RVS.F.closeBackupGroup({id:"updateVideo"})):(void 0!==t&&(t.val(a),RVS.F.openBackupGroup({id:"updateVideo",txt:"Update Video from Media Library",icon:"videocam"}),t.trigger("change"),void 0===e.rid||i||RVS.F.updateSliderObj({path:e.rid,val:o}),RVS.selLayers.length>0&&i&&(RVS.F.updateLayerObj({path:"media.mediaType",val:void 0!==e.mediatype?e.mediatype:"html5"}),void 0!==e.rid&&i&&RVS.F.updateLayerObj({path:e.rid,val:o}),RVS.F.updateEasyInputs({container:jQuery(".layer_settings_collector"),path:RVS.S.slideId+".layers.",trigger:"init",multiselection:!0})),RVS.F.closeBackupGroup({id:"updateVideo"})),void 0!==e.evt&&RVS.DOC.trigger(e.evt,e.evtparam))})}),RVS.DOC.on("click",".getVideoFromObjectLibrary",function(){var e=jQuery(this),t=e.data();t.targetType=e.hasClass("layerinput")?"layer":"slide",RVS.F.openObjectLibrary({types:["videos"],filter:"all",selected:["videos"],data:t,success:{video:"updateVideoSrcFromLibrary"}})}),RVS.DOC.on("updateVideoSrcFromLibrary",function(e,t){void 0!==t.r?"layer"===t.targetType?(RVS.F.openBackupGroup({id:"videofromobjlibrary",txt:"Video from OBJ Library",icon:"videocam",lastkey:"mp4Url"}),RVS.F.updateLayerObj({path:"media.imageLib",val:"objectlibrary"}),RVS.F.updateLayerObj({path:"media.mediaType",val:"html5"}),RVS.F.updateLayerObj({path:"media.posterUrl",val:t.img}),RVS.F.updateLayerObj({path:"media.mp4Url",val:t.video,evt:t.evt,evtparam:t.evtparam}),RVS.F.closeBackupGroup({id:"videofromobjlibrary"}),RVS.F.updateEasyInputs({container:jQuery(".layer_settings_collector"),path:RVS.S.slideId+".layers.",trigger:"init",multiselection:!0})):(RVS.F.openBackupGroup({id:"videofromobjlibrary",txt:"Video from OBJ Library",icon:"videocam",lastkey:"mp4Url"}),RVS.F.updateSliderObj({path:RVS.S.slideId+".slide.bg.image",val:t.img}),RVS.F.updateSliderObj({path:RVS.S.slideId+".slide.bg.imageId",val:void 0}),RVS.F.updateSliderObj({path:RVS.S.slideId+".slide.bg.imageLib",val:"objectlibrary"}),RVS.F.updateSliderObj({path:RVS.S.slideId+".slide.bg.mpeg",val:t.video,evt:t.evt,evtparam:t.evtparam}),RVS.F.closeBackupGroup({id:"videofromobjlibrary"}),RVS.F.updateEasyInputs({container:jQuery(".slide_settings_collector"),path:RVS.S.slideId+".slide.",trigger:"init"})):(void 0!==t.target&&(t.target.val(t.img),t.target.trigger("change")),void 0!==t.evt&&RVS.DOC.trigger(t.evt,t.evtparam))}),RVS.DOC.on("click",".getImageFromMediaLibrary",function(){var e=jQuery(this),t=e.data(),i="true"===this.dataset.multiple||1==this.dataset.multiple;t.targetType=e.hasClass("layerinput")?"layer":"slide",RVS.F.openAddImageDialog(RVS_LANG.choose_image,function(e,i){RVS.F.updateImageSrcFromMedia(t,e,i)},i)}),RVS.F.getMediaWithNewSize=function(e){jQuery(e.target);RVS.F.ajaxRequest("load_wordpress_image",{type:e.size,id:e.id},function(t){RVS.F.updateImageSrcFromMedia(e,t.url,e.id)},!1)},RVS.F.updateImageSrcFromMedia=function(e,t,i){if(void 0!==e.r)"layer"===e.targetType?(RVS.F.openBackupGroup({id:"UpdateLayerImage",txt:"Update Layer Image",icon:"photo"}),void 0!==e.lib&&RVS.F.updateLayerObj({path:e.lib,val:"medialibrary"}),void 0!==e.rid&&RVS.F.updateLayerObj({path:e.rid,val:i}),void 0!==e.sty&&RVS.F.updateLayerObj({path:e.sty,val:"full"}),RVS.F.updateLayerObj({path:e.r,val:t,evt:e.evt,evtparam:e.evtparam}),RVS.F.closeBackupGroup({id:"UpdateLayerImage"})):(RVS.F.openBackupGroup({id:"UpdateSlideImage",txt:"Update Slide Image",icon:"photo"}),void 0!==e.lib&&RVS.F.updateSliderObj({path:e.lib,val:"medialibrary"}),void 0!==e.rid&&RVS.F.updateSliderObj({path:e.rid,val:i}),void 0!==e.sty&&RVS.F.updateSliderObj({path:e.sty,val:"full"}),RVS.F.updateSliderObj({path:e.r,val:t,evt:e.evt,evtparam:e.evtparam}),RVS.F.closeBackupGroup({id:"UpdateSlideImage"}),RVS.F.updateEasyInputs({container:jQuery("#form_slidebg_source"),path:RVS.S.slideId+".slide.",trigger:"init"}));else{if(void 0!==e.target&&""!==e.target){var a=jQuery(e.target);a.val(t),a.trigger("change")}e.evtparam=void 0===e.evtparam?{}:e.evtparam,e.evtparam.urlImage=t,void 0!==e.evt&&RVS.DOC.trigger(e.evt,e.evtparam)}},RVS.F.getObjectWithNewSize=function(e){RVS.F.ajaxRequest("load_library_object",{type:e.size,id:e.url},function(t){t.success&&(e.img=t.url,RVS.DOC.trigger("updateImageSrcFromLibrary",e))})},RVS.DOC.on("click",".getImageFromObjectLibrary",function(){var e=jQuery(this),t=e.data();t.targetType=e.hasClass("layerinput")?"layer":"slide",RVS.F.openObjectLibrary({types:["images","objects"],filter:"all",selected:["images"],data:t,success:{image:"updateImageSrcFromLibrary"}})}),RVS.DOC.on("updateImageSrcFromLibrary",function(e,t){void 0!==t.r?"layer"===t.targetType?(RVS.F.openBackupGroup({id:"UpdateLayerImage",txt:"Update Layer Image",icon:"photo"}),void 0!==t.sty&&RVS.F.updateLayerObj({path:t.sty,val:t.size}),void 0!==t.rid&&RVS.F.updateLayerObj({path:t.rid,val:"objectlibrary"}),void 0!==t.lib&&RVS.F.updateLayerObj({path:t.lib,val:"objectlibrary"}),RVS.F.updateLayerObj({path:t.r,val:t.img,evt:t.evt,evtparam:t.evtparam}),RVS.F.closeBackupGroup({id:"UpdateLayerImage"})):(RVS.F.openBackupGroup({id:"UpdateSlideImage",txt:"Update Slide(r) Image",icon:"photo"}),void 0!==t.rid&&RVS.F.updateSliderObj({path:t.rid,val:"objectlibrary"}),void 0!==t.sty&&RVS.F.updateSliderObj({path:t.sty,val:t.size}),void 0!==t.lib&&RVS.F.updateSliderObj({path:t.lib,val:"objectlibrary"}),RVS.F.updateSliderObj({path:t.r,val:t.img,evt:t.evt,evtparam:t.evtparam}),RVS.F.closeBackupGroup({id:"UpdateSlideImage"}),RVS.F.updateEasyInputs({container:jQuery("#form_slidebg_source"),path:RVS.S.slideId+".slide.",trigger:"init"})):(void 0!==t.target&&(t.target.val(t.img),t.target.trigger("change")),void 0!==t.evt&&RVS.DOC.trigger(t.evt,t.evtparam))}),RVS.DOC.on("click",".getImageFromStream",function(){var e=this.dataset;e.targetType=this.className.indexOf("layerinput")>=0?"layer":"slide",void 0!==e.r?"layer"===e.targetType?(RVS.F.openBackupGroup({id:"UpdateLayerImage",txt:"Update Layer Image",icon:"photo"}),RVS.F.updateLayerObj({path:"media.imageLib",val:"stream"}),RVS.F.updateLayerObj({path:e.rid,val:"stream"}),RVS.F.updateLayerObj({path:e.r,val:RVS.ENV.img_ph_url,evt:e.evt,evtparam:e.evtparam}),RVS.F.closeBackupGroup({id:"UpdateLayerImage"})):(RVS.F.openBackupGroup({id:"UpdateSlideImage",txt:"Update Slide Image",icon:"photo"}),RVS.F.updateSliderObj({path:e.rid,val:"stream"}),RVS.F.updateSliderObj({path:e.r,val:RVS.ENV.img_ph_url,evt:e.evt,evtparam:e.evtparam}),RVS.F.closeBackupGroup({id:"UpdateSlideImage"})):(void 0!==e.target&&(e.target.val("stream"),e.target.trigger("change")),void 0!==e.evt&&RVS.DOC.trigger(e.evt,e.evtparam))}),RVS.DOC.on("click",".getImageFromYouTube",function(){var e=jQuery(this).data(),t=jQuery(e.target),i="https://img.youtube.com/vi/"+RVS.F.getDeepVal({path:e.f})+"/sddefault.jpg";void 0!==e.r?(RVS.F.openBackupGroup({id:"UpdateLayerImage",txt:"Update Layer Image",icon:"photo"}),RVS.F.updateSliderObj({path:e.r,val:i,evt:e.evt,evtparam:e.evtparam}),void 0!==e.rid&&RVS.F.updateSliderObj({path:e.rid,val:"objectlibrary"}),RVS.F.closeBackupGroup({id:"UpdateLayerImage"})):(void 0!==t&&(t.val(i),t.trigger("change")),void 0!==e.evt&&RVS.DOC.trigger(e.evt,e.evtparam))});var t=jQuery("body").on("click",".form_menu_level_1_li, .form_menu_level_2_li",function(){var e=jQuery(this),t=e.closest(".form_menu_inside");e.siblings("li").removeClass("selected"),e.addClass("selected"),e.hasClass("form_menu_level_1_li")||t.find(".form_level_2_inner").hide().removeClass("open");var i=jQuery(e.data("target"));i.show().addClass("open"),RVS.F.updateFormPositions({jf:e.closest(".formcontainer"),uncollapse:!0}),void 0!==i.data("evt")&&RVS.DOC.trigger(i.data("evt"),i.data("evtparam"))});t.on("click",".form_intoaccordion",function(){var e=jQuery(this),t=e.closest(".form_inner"),i=e.closest(".formcontainer");if(t.length>0&&t.hasClass("open")||0===t.length&&!i.hasClass("collapsed"))return function(e){e.closest(".form_inner").length>0?e.closest(".form_inner").removeClass("open"):e.closest(".formcontainer").addClass("collapsed"),RVS.DOC.trigger("scrollUpdates"),RVS.DOC.trigger("accordionaction")}(e),!1;!function(e){void 0!==e.data("trigger")&&jQuery(e.data("trigger")).click(),e.closest(".formcontainer").removeClass("collapsed"),RVS.DOC.trigger("scrollUpdates"),RVS.DOC.trigger("accordionaction")}(e)}),t.on("mouseenter",".form_intoaccordion",function(){this.parentNode.dataset.hovered="on"}),t.on("mouseleave",".form_intoaccordion",function(){this.parentNode.dataset.hovered="off"}),t.on("click",".triggerselect",function(){var e=jQuery(this).data(),t=jQuery(e.select);void 0!==t&&t.length>0&&t.val(e.val),t.trigger("change")}),t.on("click",".navaligntrigger",function(){var e=jQuery(this).data(),t=e.select.split(","),i=e.val.split(",");for(var a in RVS.F.openBackupGroup({id:"NavigationAlign",txt:e.type+" Align",icon:"navigation",lastkey:"navigation"}),RVS.F.ignoreEventsOpen(),t)if(t.hasOwnProperty(a)){var o=jQuery(t[a]);void 0!==o&&o.length>0&&(i.length>0?o.val(i[a]):o.val(i[0]),o.trigger("change"))}RVS.F.ignoreEventsClose(),RVS.F.closeBackupGroup({id:"NavigationAlign"}),RVS.DOC.trigger("sliderNavPositionUpdate",e.type)}),t.on("click",".progressbar_selector",function(){var e=jQuery(this).data(),t=e.select.split(","),i=e.val.split(",");for(var a in RVS.F.openBackupGroup({id:"progressbar_selector",txt:e.type+" Align",icon:"navigation",lastkey:"navigation"}),RVS.F.ignoreEventsOpen(),t)if(t.hasOwnProperty(a)){var o=jQuery(t[a]);void 0!==o&&o.length>0&&(i.length>0?o.val(i[a]):o.val(i[0]),o.trigger("change"))}RVS.F.ignoreEventsClose(),RVS.F.closeBackupGroup({id:"progressbar_selector"}),RVS.DOC.trigger("sliderProgressUpdate",e.type)}),RVS.DOC.on("click",".mdl_group_wrap_menuitem",function(){jQuery(".mdl_group_wrap_menuitem.selected, .mdl_group_wrap.selected").removeClass("selected"),jQuery(this).addClass("selected"),jQuery("#"+this.dataset.show).addClass("selected"),jQuery("#meta_rbm_content").scrollTop(0).RSScroll("update")}),RVS.F.updateMetaTranslate();var i='<div id="mdl_group_images" class="mdl_group_wrap">';for(var a in i+='<div class="mdl_group">',i+='<div class="mdl_group_header"><i class="material-icons">photo</i>'+RVS_LANG.featuredimages+'<i class="material-icons accordiondrop">arrow_drop_down</i></div>',RVS.ENV.img_sizes)if(RVS.ENV.img_sizes.hasOwnProperty(a)){var o=RVS.ENV.img_sizes[a].replace(" ","_").toLowerCase();i+='<div data-val="{{featured_image_url_'+o+'}}" class="mdl_group_member"><div class="mdl_left_content"><i class="material-icons">photo</i>{{featured_image_url_'+o+'}}</div><div class="mdl_right_content">'+o+'</div><div class="mdl_placeholder_content">http://featured.img</div></div>'}i+="</div>",i+="</div>",jQuery("#meta_datas_list").append(jQuery(i)),jQuery("#mdl_group_wrap_menu").append('<div data-show="mdl_group_images" class="mdl_group_wrap_menuitem">'+RVS_LANG.images+"</div>"),RVS.DOC.trigger("extendmetas"),RVS.DOC.on("click",".ssmbtn",function(){jQuery(this.dataset.inside).find(".ssmbtn.selected, .ssm_content.selected").removeClass("selected"),this.className+=" selected",jQuery(this.dataset.showssm).addClass("selected"),void 0!==this.dataset.evt&&RVS.DOC.trigger(this.dataset.evt,this.dataset.evtparam)}),RVS.DOC.on("click",".input_presets_dropdown",function(){jQuery(".input_presets_wrap.infocus").removeClass("infocus"),this.parentElement.className+=" infocus"}),RVS.DOC.on("blur","input",function(){RVS.S.respInfoBar.toolbar&&(RVS.S.respInfoBar.visible=!1,RVS.S.respInfoBar.toolbar[0].style.display="none")})},RVS.F.updateMetaTranslate=function(e){RVS.LIB.META={},jQuery(".mdl_group_member").each(function(){var e=this.dataset.val.split(":");e=e.length>1?e[0]+".*?}}":e[0],RVS.LIB.META[e]=jQuery(this).find(".mdl_placeholder_content").text()})},RVS.F.updatePostCategories=function(e){if(jQuery.isArray(e.postTypes)||(e.postTypes=e.postTypes.split(",")),!jQuery.isArray(e.postTypes)){var t=[];t.push(e.postTypes),e.postTypes=t}e.categories.html(""),jQuery(e.postTypes).each(function(t,i){var a=RVS.LIB.POST_TYPES_CAT[i];for(var o in a)if(a.hasOwnProperty(o)){var r=a[o],s=new Option(r,o);0==o.indexOf("option_disabled")&&jQuery(s).prop("disabled","disabled"),0==e.categories.find('option[value="'+o+'"]').length&&e.categories.append(s)}}),RVS.F.setS2Option({select:e.categories,update:!0})},RVS.F.showFieldResponsiveValues=function(e){if(RVS.S.respInfoBar.field=void 0!==e?jQuery(e):RVS.S.respInfoBar.field,"slider"===RVS.eMode.top||1===RVS.selLayers.length&&void 0!==RVS.S.respInfoBar.field&&RVS.S.respInfoBar.visible){RVS.S.respInfoBar.toolbar||(RVS.S.respInfoBar.toolbar=jQuery('<div id="responsive_infos_toolbar"></div>'),jQuery("#the_right_toolbar").append(RVS.S.respInfoBar.toolbar));var t=0,i="";for(var a in i+='<span class="int_inher_title">'+RVS_LANG.intinheriting+"</span>",RVS.V.sizes)RVS.V.sizes.hasOwnProperty(a)&&RVS.V.sizes[a]!==RVS.screen&&RVS.SLIDER.settings.size.custom[RVS.V.sizes[a]]&&(i+='<div style="white-space:nowrap">',i+='<i class="material-icons">',i+="d"==RVS.V.sizes[a]?"desktop_mac":"n"==RVS.V.sizes[a]?"laptop":"t"==RVS.V.sizes[a]?"tablet_android":"phone_iphone",i+="</i>",i+='<span class="responsive_info_value">'+RVS.F.getDeepVal({path:"slider"===RVS.eMode.top?"settings."+RVS.S.respInfoBar.field[0].dataset.r:RVS.S.slideId+".layers."+RVS.selLayers[0]+"."+RVS.S.respInfoBar.field[0].dataset.r,screen:RVS.V.sizes[a]})+"</span>",i+="</div>",t++);if(t>0){RVS.S.respInfoBar.toolbar[0].style.display="block",RVS.S.respInfoBar.toolbar[0].innerHTML=i;var o=RVS.S.respInfoBar.field.offset();RVS.S.respInfoBar.toolbar.width();tpGS.gsap.set(RVS.S.respInfoBar.toolbar,{top:o.top,left:-85})}else RVS.S.respInfoBar.visible=!1,RVS.S.respInfoBar.toolbar[0].style.display="none"}},RVS.F.initCopyClipboard=function(e){if(jQuery(e).length>0&&-1==jQuery.inArray(e,d)){(d=void 0===d?[]:d).push(e);var t=new RSClipboard(e);t.on("success",function(e){jQuery(":focus").blur(),RVS.F.showInfo({content:"Copied To Clipboard",type:"success",showdelay:0,hidedelay:1,hideon:"",event:""}),tpGS.gsap.fromTo(jQuery(e.trigger),.4,{autoAlpha:0},{autoAlpha:1,ease:"power3.inOut"})}),t.on("error",function(e){(e=jQuery(e.trigger)).addClass("errorcopy"),setTimeout(function(){e.removeClass("errorcopy")},400)})}},RVS.F.switchButtonInit=function(e){(e=void 0===e?{}:e).container=void 0===e.container?"#builderView":e.container,e.init=void 0===e.init||e.init,e.init&&jQuery(e.container).find(".switch_button").each(function(){var e=jQuery(this),t=this.dataset;e.hasClass("activeswitch")||(e.addClass("activeswitch"),RVS.F.changeSwitchState({el:this,state:t.start_state})),e.on("click",function(){RVS.F.changeSwitchState({el:this,callEvent:!0})})})},RVS.F.changeSwitchState=function(e){if(null!==e.el){var t=e.el.dataset,i=jQuery(e.el),a=t.states.split(",");t.state=void 0!==e.state?e.state:t.state===a[0]?a[1]:a[0],i.find(".switch_button_state").html(t[t.state+"_state"]),i.find(".switch_button_icon").html(t[t.state+"_icon"]),void 0!==e.callEvent&&RVS.DOC.trigger(t[t.state])}},RVS.F.createPresets=function(e){e.groupid=void 0===e.groupid?"preset_list_"+Math.round(1e5*Math.random()):e.groupid;var t='<div id="'+e.groupid+'" class="presets_liste">',i=void 0===e.prefix?"":e.prefix+"_";for(var a in t+='\t<div class="presets_liste_head"><span class="presets_liste_title">'+e.title+'</span><i class="right-divided-icon material-icons">arrow_drop_down</i></div>',t+='\t<div class="presets_liste_inner">',e.groups)if(e.groups.hasOwnProperty(a)){for(var o in t+='<div class="presetssgroup">',t+='\t<div class="presetssgroup_head"><span class="presetssgroup_name">'+e.groups[a].title+'</span><div class="animation_drop_arrow"><i class="material-icons">arrow_drop_down</i></div></div>',t+='\t<div class="presets_listelements">',"custom"===a&&(t+='<div data-evt="'+e.customevt+'" data-key="custom" class="'+i+'presetelement presets_listelement dark_btn"><span class="cla_custom_name">Save Current Template</span><input type="text" value="custom" class="cla_entername"><div class="custom_layer_animation_toolbar"><i data-evt="'+e.customevt+'" class="cla_answer_yes material-icons">done</i><i data-evt="'+e.customevt+'" class="cla_answer_no material-icons">close</i><i class="add_custom_layeranimation material-icons">add</i></div></div>'),e.groups[a].elements)e.groups[a].elements.hasOwnProperty(o)&&(t+="custom"===a?'<div data-key="'+i+o+'" data-custom="true" data-evt="'+e.customevt+'" class="presets_listelement dark_btn"><span class="cla_custom_name">'+e.groups[a].elements[o].title+'</span><div class="cla_message">'+RVS_LANG.overwritetemplate+'</div><input data-evt="'+e.customevt+'" type="text" value="'+e.groups[a].elements[o].title+'" class="cla_entername"><div class="custom_layer_animation_toolbar"><i data-evt="'+e.customevt+'" class="cla_answer_yes material-icons">done</i><i data-evt="'+e.customevt+'" class="cla_answer_no material-icons">close</i><i data-evt="'+e.customevt+'" class="edit_custom_layeranimation material-icons">edit</i><i data-evt="'+e.customevt+'" class="save_custom_layeranimation material-icons">save</i><i data-evt="'+e.customevt+'" class="delete_custom_layeranimation material-icons">delete</i></div></div>':'<div data-key="'+i+o+'" class="'+i+'presetelement presets_listelement dark_btn">'+e.groups[a].elements[o].title+"</div>");t+="\t</div>",t+="</div>"}return t+="\t</div>",t+="</div>",RVS.DOC.on("click","#"+e.groupid+" .presets_listelement",function(){if("custom"===this.dataset.key){var t=jQuery(this);return this.dataset.mode="create",t.addClass("cla_showentername"),t.find("input").focus().select(),RVS.S.waitOnFeedback={allowed:["cla_entername","cla_answer_yes","cla_answer_no"],closeEvent:"hideCustomLayerNameEntering"},RVS.F.addBodyClickListener(),!1}this.className.indexOf("cla_showentername")>=0||e.onclick(this.dataset.key,this.dataset.custom)}),c||(RVS.DOC.on("click",".presets_liste_head",function(){jQuery(this.parentElement).toggleClass("open")}),RVS.DOC.on("click",".presetssgroup_head",function(){var e=this.parentElement.className.indexOf("open")>=0;jQuery(this).closest(".presets_liste").find(".presetssgroup.open").removeClass("open"),e||(this.parentElement.className+=" open")}),c=!0),t},RVS.F.createMetaGroups=function(e){var t=0!==jQuery("#"+e.id).length,i=t?jQuery("#"+e.id):jQuery('<div id="'+e.id+'" class="mdl_group"></div>');for(var a in e.title=void 0===RVS_LANG[e.id]?e.id:RVS_LANG[e.id],t||i.append('<div class="mdl_group_header"><i class="material-icons">'+e.icon+"</i>"+e.title+'<i class="material-icons accordiondrop">arrow_drop_down</i></div>'),e.actions)if(e.actions.hasOwnProperty(a)){var o=e.actions[a],r=void 0!==o.title?o.title:void 0===RVS_LANG["metadata_"+o.val]?o.val:RVS_LANG["metadata_"+o.val];o.inputs=void 0===o.inputs?"":o.inputs,o.inputs=!0===o.layerTarget?"#la_settings_layertarget"+(o.inputs.length>0?", "+o.inputs:""):o.inputs,i.append('<div data-val="'+o.val+'" id="metadata_picker_'+o.val+'" data-inputs="'+o.inputs+'" class="mdl_group_member" data-val="'+o.val+'"><i class="material-icons">'+e.icon+"</i>"+r+"</div>"),o.layerTarget&&RVS.LIB.ACTION_WITH_TRGT.push(o.val),RVS.LIB.ACTIONTYPES[o.val]={inputs:o.inputs,name:r,icon:e.icon,layerTarget:o.layerTarget,media:o.media}}t||jQuery("#layeraction_list").append(i)},RVS.F.setUnsetSelected=function(e){if(void 0!==e.unselect&&jQuery(e.unselect).removeClass("selected"),void 0!==e.select){e.val=void 0!==e.val?e.val.replace(/\s/g,"-"):e.val,null!=e.prval&&RVS.selLayers.length>0&&void 0!==RVS.L[RVS.selLayers[0]]&&(void 0===e.prvalif||RVS.L[RVS.selLayers[0]].type===e.prvalif)&&(e.val=RVS.F.getDeepVal({path:e.prval.replace("#parentlayer#",RVS.L[RVS.selLayers[0]].group.puid)})||"");var t=e.select.replace("*val*",e.val),i=void 0!==e.rval?RVS.F.getDeepVal({path:e.rval}):"";t=t.replace("*RVAL*",i),jQuery(t).addClass("selected")}},RVS.F.setUnsetClass=function(e){void 0!==e.class&&void 0!==e.container&&(void 0!==e.rval&&e.rval===e.val||e.val?(jQuery(e.container).addClass(e.class),e.inversclass&&jQuery(e.container).removeClass(e.inversclass)):(jQuery(e.container).removeClass(e.class),e.inversclass&&jQuery(e.container).addClass(e.inversclass)))},RVS.F.setEnableDisable=function(e){void 0!==e.enable&&jQuery(e.enable.replace("*val*",e.val)).removeClass("disablecontainer"),void 0!==e.disable&&jQuery(e.disable.replace("*val*",e.val)).addClass("disablecontainer")},RVS.F.setUnAvailable=function(e){void 0!==e.available&&jQuery(e.available.replace("*val*",e.val)).removeClass("unavailablecontainer"),void 0!==e.unavailable&&jQuery(e.unavailable.replace("*val*",e.val)).addClass("unavailablecontainer")},RVS.F.initPreDrops=function(e){void 0===e&&jQuery(".predrop_wrap").each(function(){var e=jQuery(this);if(!e.hasClass("inited")){e.append('<div class="predrop"><ul class="predrop_ul"></ul></div>');e.data(),e.find(".predrop_ul")}})},RVS.F.fullPageInfo={init:function(e){var t=jQuery('<div id="fullpageinfo"><div id="fullpageinfo_zone">'+e.content+'<div id="fullpage_close"><i class="material-icons">close</i></div></div></div>');jQuery("#wpwrap").addClass("blurred"),jQuery("body").append(t),tpGS.gsap.fromTo(t,.4,{autoAlpha:0,scale:.9},{autoAlpha:1,scale:1,ease:"power3.inOut"})},close:function(){jQuery("#fullpageinfo").remove(),jQuery("#wpwrap").removeClass("blurred")}},RVS.F.browserDroppable={init:function(e){e.textblock='<div id="filedrop" class="'+(1==e.onlydrop?"editordrop _TPRB_":"_TPRB_")+'">',e.textblock+='\t<form id="filedrop_zone">',e.textblock+='\t\t<div class="filedrop_state_idle">',e.textblock+='\t\t\t<input class="uploadfileinput" type="file" name="files[]" id="file" data-multiple-caption="{count} files selected" multiple />',e.textblock+='\t\t\t<i class="big_filedrop_icon material-icons">file_download</i>',e.textblock+='\t\t\t<div class="filedrop_line_1">'+RVS_LANG.dragAndDropFile+"</div>",!0!==e.onlydrop&&(e.textblock+='\t\t\t<div class="filedrop_line_2">'+RVS_LANG.or+"</div>"),!0!==e.onlydrop&&(e.textblock+='\t\t\t<label for="file"  class="filedrop_clickbtn">'+RVS_LANG.clickToChoose+"</label>"),e.textblock+="\t\t</div>",e.textblock+='\t\t<div class="filedrop_state_drop">',e.textblock+='\t\t\t<i class="big_filedrop_icon material-icons">file_download</i>',!0!==e.onlydrop?e.textblock+='\t\t\t<div class="filedrop_line_1">'+RVS_LANG.releaseToUpload+"</div>":e.textblock+='\t\t\t<div class="filedrop_line_1">'+RVS_LANG.releaseToAddLayer+"</div>",!0!==e.onlydrop&&(e.textblock+='\t\t\t<div class="filedrop_line_2">'+RVS_LANG.moduleZipFile+"</div>"),e.textblock+="\t\t</div>",e.textblock+='\t\t<div class="filedrop_state_process">',e.textblock+='\t\t\t<i id="file_upload_processicon" class="rotating big_filedrop_icon material-icons">autorenew</i>',e.textblock+='\t\t\t<div id="file_upload_mininfo" class="filedrop_line_1">'+RVS_LANG.importing+"</div>",e.textblock+=' \t\t\t<div id="importing_processing_files">',e.textblock+="\t\t\t</div>",e.textblock+="\t\t</div>",e.textblock+='\t\t<div id="filedrop_close"><i class="material-icons">close</i></div>',e.textblock+="\t</form>",e.textblock+="</div>",RVS.fileDrop=jQuery(e.textblock),RVS.fileDropForm=RVS.fileDrop.find("#filedrop_zone"),tpGS.gsap.fromTo(RVS.fileDrop,.3,{autoAlpha:0,scale:.9},{zIndex:5e6,autoAlpha:1,scale:1,ease:"power3.inOut"}),jQuery("body").append(RVS.fileDrop),void 0===RVS.fileDropListener&&(jQuery("html").on("dragover drop dragleave dragend",function(e){clearTimeout(window.htmldragout),"drop"===e.type?(jQuery("#filedrop").remove(),jQuery("#wpwrap").removeClass("blurred")):"dragleave"===e.type&&(window.htmldragout=setTimeout(function(){0==RVS.S.overFileDropZone&&(tpGS.gsap.to(RVS.fileDrop,.3,{autoAlpha:0,scale:.9,ease:"power3.inOut"}),jQuery("#wpwrap").removeClass("blurred"))},50)),e.preventDefault(),e.stopPropagation()}).on("dragenter",function(){RVS.S.overFileDropZone=!1,!0!==e.onlydrop&&jQuery("#wpwrap").addClass("blurred"),!0===e.onlydrop&&(tpGS.gsap.set(RVS.fileDropForm,{width:RVS.S.editorSize.w-50,height:RVS.S.editorSize.h-50,top:90,left:41,xPercent:0,yPercent:0}),tpGS.gsap.set(RVS.fileDrop,{background:"transparent"})),tpGS.gsap.to(RVS.fileDrop,.3,{autoAlpha:1,scale:1,ease:"power3.inOut"})}),RVS.fileDropForm.on("drag dragstart dragend dragover dragenter dragleave drop",function(e){e.preventDefault(),e.stopPropagation()}).on("dragover dragenter",function(e){RVS.S.overFileDropZone=!0,RVS.fileDropForm[0].className="is-dragover"}).on("dragleave dragend",function(){RVS.S.overFileDropZone=!1,RVS.fileDropForm[0].className=""}).on("drop",function(t){for(var i in RVS.fileDropForm[0].className="is-processing",jQuery("#importing_processing_files").html(""),t.originalEvent.dataTransfer.files)if(t.originalEvent.dataTransfer.files.hasOwnProperty(i)&&"object"==jQuery.type(t.originalEvent.dataTransfer.files[i])){var a=t.originalEvent.dataTransfer.files[i].name+" ("+Math.round(t.originalEvent.dataTransfer.files[i].size/1024)+"kb)";jQuery("#importing_processing_files").append('<div id="fileprocessing_'+i+'" class="filedrop_line_2">'+a+'<i class="material-icons fileupload_status"></i><span class="fileupload_message"></span></div>')}RVS.F.uploadFiles({form:RVS.fileDropForm,files:t.originalEvent.dataTransfer.files,fileindex:0,report:"#fileprocessing_",success:e.success,action:e.action})}),jQuery("#file").on("change",function(t){for(var i in RVS.fileDropForm[0].className="is-processing",t.target.files)if(t.target.files.hasOwnProperty(i)&&"object"==jQuery.type(t.target.files[i])){var a=t.target.files[i].name+" ("+Math.round(t.target.files[i].size/1024)+"kb)";jQuery("#importing_processing_files").append('<div id="fileprocessing_'+i+'" class="filedrop_line_2">'+a+'<i class="material-icons fileupload_status"></i><span class="fileupload_message"></span></div>')}RVS.F.uploadFiles({form:RVS.fileDropForm,files:t.target.files,fileindex:0,report:"#fileprocessing_",success:e.success,action:e.action})}))},close:function(){jQuery("#filedrop").remove(),jQuery("#wpwrap").removeClass("blurred")}},RVS.F.uploadFiles=function(e){e.fileindex=void 0===e.fileindex?0:e.fileindex,jQuery(e.report+e.fileindex).find(".fileupload_status").html("autorenew").addClass("rotating");var t=new FormData;t.append("import_file",e.files[e.fileindex]),t.append("action",RVS.ENV.plugin_dir+"_ajax_action"),t.append("client_action",void 0===e.action?"import_slider":e.action),t.append("nonce",RVS.ENV.nonce),jQuery.ajax({url:ajaxurl,type:"post",contentType:!1,processData:!1,data:t,success:function(t){(t=JSON.parse(t)).success?(jQuery(e.report+e.fileindex).find(".fileupload_status").html("done").removeClass("rotating").addClass("doneupload"),void 0!==e.success&&RVS.DOC.trigger(e.success,t)):(e.anyError=!0,jQuery(e.report+e.fileindex).find(".fileupload_status").html("priority_high").removeClass("rotating").addClass("errorupload"),jQuery(e.report+e.fileindex).find(".fileupload_message").html(t.message)),e.fileindex++,e.files.length>e.fileindex?RVS.F.uploadFiles(e):!0!==e.anyError?(jQuery("#file_upload_mininfo").html(RVS_LANG.successImportFile),jQuery("#file_upload_processicon").removeClass("rotating").addClass("done").html("done"),setTimeout(function(){RVS.F.browserDroppable.close()},500)):(jQuery("#file_upload_mininfo").html(RVS_LANG.importReport),jQuery("#file_upload_processicon").removeClass("rotating").addClass("error").html("error"))},error:function(t){e.anyError=!0,jQuery(e.report+e.fileindex).find(".fileupload_status").html("priority_high").removeClass("rotating").addClass("errorupload"),jQuery(e.report+e.fileindex).find(".fileupload_message").html(t.message),e.fileindex++,e.files.length>e.fileindex?RVS.F.uploadFiles(e):!0!==e.anyError?(jQuery("#file_upload_mininfo").html(RVS_LANG.successImportFile),jQuery("#file_upload_processicon").removeClass("rotating").addClass("done").html("done"),setTimeout(function(){RVS.F.browserDroppable.close()},500)):(jQuery("#file_upload_mininfo").html(RVS_LANG.importReport),jQuery("#file_upload_processicon").removeClass("rotating").addClass("error").html("error"))}})},RVS.F.slideinWork=function(e){RVS.SLIDER.inWork=void 0===RVS.SLIDER.inWork?[]:RVS.SLIDER.inWork,-1===jQuery.inArray(e,RVS.SLIDER.inWork)&&-1===jQuery.inArray(""+e,RVS.SLIDER.inWork)&&RVS.SLIDER.inWork.push(""+e)},RVS.F.convertIDStoTxt=function(){for(var e in RVS.SLIDER.slideIDs)RVS.SLIDER.slideIDs.hasOwnProperty(e)&&(RVS.SLIDER.slideIDs[e]=""+RVS.SLIDER.slideIDs[e]);for(var e in RVS.SLIDER.inWork)RVS.SLIDER.inWork.hasOwnProperty(e)&&(RVS.SLIDER.inWork[e]=""+RVS.SLIDER.inWork[e])},RVS.F.saveSlides=function(e){if(e.index<e.slides.length){e.order=void 0===e.order?0:e.order,e.order++;var t=e.slides[e.index],i=jQuery.inArray(t+"",RVS.SLIDER.inWork);if((i=-1===i?jQuery.inArray(t,RVS.SLIDER.inWork):i)>=0){var a=JSON.stringify(RVS.F.simplifySlide(RVS.SLIDER[e.slides[e.index]].slide)),o=JSON.stringify(RVS.F.simplifyAllLayer(RVS.SLIDER[e.slides[e.index]].layers));if(!0===e.force||void 0===RVS.S.lastSaved||void 0===RVS.S.lastSaved[t]||a!==RVS.S.lastSaved[t].params||o!==RVS.S.lastSaved[t].layers){var r={slider_id:RVS.ENV.sliderID,slide_id:e.slides[e.index],params:a,layers:o,slide_order:e.order};RVS.DOC.trigger("rs_save_slide_params",[r]),RVS.F.ajaxRequest("save_slide",r,function(i){i.success&&(RVS.S.lastSaved=void 0===RVS.S.lastSaved?{}:RVS.S.lastSaved,RVS.S.lastSaved[t]={params:a,layers:o},e.index++,RVS.F.saveSlides(e))},void 0,void 0,RVS_LANG.saveslide+'<br><span style="font-size:17px; line-height:25px;">"'+RVS.SLIDER[e.slides[e.index]].slide.title+'"</span>')}else e.index++,RVS.F.saveSlides(e)}else e.index++,RVS.F.saveSlides(e)}else RVS.SLIDER.inWork=[],RVS.F.slideinWork(RVS.S.slideId),RVS.S.need_to_save=!1,void 0!==e.trigger&&e.trigger()},RVS.F.convertArrayToObjects=function(){RVS.SLIDER.settings.nav.arrows.presets=Object.assign({},RVS.SLIDER.settings.nav.arrows.presets),RVS.SLIDER.settings.nav.bullets.presets=Object.assign({},RVS.SLIDER.settings.nav.bullets.presets),RVS.SLIDER.settings.nav.thumbs.presets=Object.assign({},RVS.SLIDER.settings.nav.thumbs.presets),RVS.SLIDER.settings.nav.tabs.presets=Object.assign({},RVS.SLIDER.settings.nav.tabs.presets),void 0!==RVS.SLIDER.settings.skins&&void 0!==RVS.SLIDER.settings.skins.colors&&(RVS.SLIDER.settings.skins.colors=Object.assign({},RVS.SLIDER.settings.skins.colors))},RVS.F.saveSliderSettings=function(){var e=JSON.stringify(RVS.SLIDER.settings),t=RVS.SLIDER.slideIDs.slice(),i=-1;for(var a in t)t.hasOwnProperty(a)&&(""+t[a]).indexOf("static")>=0&&(i=a);t.splice(i,1),RVS.F.ajaxRequest("save_slider",{slider_id:RVS.ENV.sliderID,params:e,slide_ids:t},function(e){e.success&&void 0!==e.missing&&e.missing.length>0&&RVS.F.saveSlides({index:0,slides:RVS.SLIDER.slideIDs,works:e.missing})},void 0,void 0,RVS_LANG.saveslide+'<br><span style="font-size:17px; line-height:25px;">'+RVS_LANG.slidersettings+"</span>")},RVS.F.getAllSliderDatas=function(){RVS.F.convertIDStoTxt();var e={slider:JSON.stringify(RVS.SLIDER.settings),slide_order:JSON.stringify(RVS.SLIDER.slideIDs)},t=RVS.SLIDER.slideIDs.slice();for(var i in t)t.hasOwnProperty(i)&&(e[t[i]]={params:JSON.stringify(RVS.F.simplifySlide(RVS.SLIDER[t[i]].slide)),layers:JSON.stringify(RVS.F.simplifyAllLayer(RVS.SLIDER[t[i]].layers))});return e},RVS.F.addOnContainer={create:function(e){if(e.slug&&e.icon&&e.alias){var t="";!0===e.slider&&(jQuery("#gst_sl_collector").append('<div id="gst_sl_'+e.slug+'" data-select="#gst_sl_'+e.slug+'" data-unselect=".general_submodule_trigger" class="general_submodule_trigger opensettingstrigger" style="display:none" data-collapse="true" data-forms=\'["#form_module_'+e.slug+'"]\'><i class="material-icons">'+e.icon+'</i><span class="gso_title">'+e.alias+"</span></div>"),t+=_({a:"slider_general_collector",f:"#gst_sl_",b:"sliderconfig",c:"slider_settings",d:"form_module_"+e.slug,title:e.title,e:"form_slidergeneral_"+e.slug,slug:e.slug})),!0===e.layer&&(jQuery("#gst_layer_collector").append('<div id="gst_layer_'+e.slug+'" data-select="#gst_layer_'+e.slug+'" data-unselect=".layer_submodule_trigger" class="layer_submodule_trigger opensettingstrigger" style="display:none" data-collapse="true" data-forms=\'["#form_layer_'+e.slug+'"]\'><i class="material-icons">'+e.icon+'</i><span class="gso_title">'+e.alias+"</span></div>"),t+=_({a:"layer_settings_collector",f:"#gst_layer_",b:"layersconfig",c:"layer_settings",d:"form_layer_"+e.slug,title:e.title,e:"form_layerinner_"+e.slug,slug:e.slug})),!0===e.slide&&(jQuery("#slide_menu_gso_wrap").append('<div id="gst_slide_'+e.slug+'" data-select="#gst_slide_'+e.slug+'" data-unselect=".slide_submodule_trigger" class="slide_submodule_trigger opensettingstrigger" style="display:none" data-collapse="true" data-forms=\'["#form_slide_'+e.slug+'"]\'><i class="material-icons">'+e.icon+'</i><span class="gso_title">'+e.alias+"</span></div>"),t+=_({a:"slide_settings_collector",f:"#gst_slide_",b:"slideconfig",c:"slide_settings",d:"form_slide_"+e.slug,title:e.title,e:"form_slidegeneral_"+e.slug,slug:e.slug})),jQuery("#the_right_toolbar_inner").append(t)}}},RVS.F.buildSingleAddonElement=function(e,t){if(void 0===e||""===e||0===e)return"";var i='<div id="ale_'+t+'" data-ref="'+t+'" class="rs_ale">';i+='<div class="rs_alethumb"><div class="rs_alecbg" style="'+(void 0!==e.logo.color&&""!==e.logo.color&&!1!==e.installed?"background-color:"+e.logo.color:"")+'">',""===e.logo.img&&(i+='<div class="rs_alethumb_title">'+e.logo.text+"</div>"),i+="</div>",""!==e.logo.img&&(i+='<div class="rs_alethumb_img" style="background-image:url('+e.logo.img+')"></div>'),e.installed&&e.active||(e.installed?i+="":i+='<div class="rs_ale_notinstalled">'+RVS_LANG.notinstalled+"</div>",i+='<div class="rs_alethumb_notinstalledimg" style="background-image:url('+e.logo.img+')"></div>');var a=e.active&&RVS.LIB.ADDONS[t].enable?"block":"none",o=RVS_LANG.enabled;return i+=void 0!==RVS.ENV.addOns_to_update[t]&&!0!==RVS.ENV.addOns_to_update[t].updated||e.installed<e.available?'<div class="rs_ale_actionneeded" style="display:block">'+RVS_LANG.actionneeded+"</div>":'<div class="rs_ale_enabled" style="display:'+a+'">'+o+"</div>",i+="</div>",i+='<div class="rs_ale_title">'+e.title+"</div>",i+="</div>"},RVS.F.buildAddonList=function(e,t){var i="";for(var a in RVS.LIB.ADDONS=void 0===RVS.LIB.ADDONS?{}:RVS.LIB.ADDONS,e)e.hasOwnProperty(a)&&(RVS.LIB.ADDONS[a]=void 0===RVS.LIB.ADDONS[a]?{}:RVS.LIB.ADDONS[a],RVS.LIB.ADDONS[a].enable=RVS.S.ovMode?e[a].global?RVS.LIB.ADDONS[a].enable:void 0:e[a].global?RVS.LIB.ADDONS[a].enable:void 0!==RVS.SLIDER.settings.addOns[a]&&RVS.SLIDER.settings.addOns[a].enable,RVS.LIB.ADDONS[a].enable=0!==RVS.LIB.ADDONS[a].enable&&"0"!==RVS.LIB.ADDONS[a].enable&&(1===RVS.LIB.ADDONS[a].enable||"1"===RVS.LIB.ADDONS[a].enable||(0===RVS.LIB.ADDONS[a].enable||RVS.LIB.ADDONS[a].enable)),"update"!==t&&(i+=RVS.F.buildSingleAddonElement(e[a],a)),RVS.LIB.ADDONS_LIST[a]=jQuery.extend(!0,{},e[a]));"update"!==t&&(jQuery("#rbm_addonlist").append(i),RVS.F.RSDialog.center())},RVS.F.loadAddonList=function(e,t,i){RVS.LIB.ADDONS_LIST={},RVS.F.ajaxRequest("get_addon_list",{},function(a){if(a.success){if(a.addons&&Array.isArray(a.addons)&&1===a.addons.length&&!1===a.addons[0])return;RVS.F.buildAddonList(a.addons,t),e&&"update"!==t&&RVS.F.showAddonInfos(e),"update"===t&&i()}})},RVS.F.loadCSS=function(e){var t=document.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("type","text/css"),t.setAttribute("href",e),document.getElementsByTagName("head")[0].appendChild(t)},RVS.F.openAddonModal=function(){RVS.LIB.ADDONS_LIST||(RVS.F.loadAddonList(),RVS.DOC.on("click","#rbm_addons .rbm_close",function(){RVS.F.RSDialog.close()}),RVS.DOC.on("click",".rs_ale",function(){"false"!=RVS.ENV.activated&&0!=RVS.ENV.activated?(jQuery(".rs_ale.selected").removeClass("selected"),this.className+=" selected",RVS.F.showAddonInfos(this.dataset.ref)):RVS.F.showRegisterSliderInfo()}),RVS.DOC.on("click",".ale_i_installaddon",function(){var e=this.dataset.slug;RVS.F.ajaxRequest("activate_addon",{addon:e},function(t){t.success&&(RVS.LIB.ADDONS_LIST[e].installed=!0,jQuery("#ale_"+e+" .rs_ale_notinstalled").remove(),RVS.F.showAddonInfos(e))},void 0,void 0,RVS_LANG.addon+'<br><span style="font-size:17px; line-height:25px;">"'+RVS_LANG.installingaddon+'"</span>')}),RVS.DOC.on("click",".ale_i_activateaddon",function(){if("true"===RVS.ENV.activated||!0===RVS.ENV.activated){var e=this.dataset.slug,t=e.replace(/-/g,"_"),i=jQuery("#ale_"+e+" .rs_alethumb_img");RVS.LIB.ADDONS_LIST[e].global||RVS.S.ovMode||(RVS.SLIDER.settings.addOns[e]=void 0===RVS.SLIDER.settings.addOns[e]?{}:RVS.SLIDER.settings.addOns[e],RVS.SLIDER.settings.addOns[e].enable=!0,RVS.LIB.ADDONS[e].enable=!0),RVS.F.ajaxRequest("activate_addon",{addon:e},function(a){a.success&&(RVS.LIB.ADDONS_LIST[e].active=!0,window[t]=a[e],"undefined"==typeof revbuilder||RVS.SLIDER.settings.addOns.hasOwnProperty(e)?window[t].enabled=RVS.F._d(RVS.F._truefalse(window[t].enabled),!RVS.S.ovMode&&(void 0!==RVS.SLIDER.settings.addOns[e]&&RVS.SLIDER.settings.addOns[e].enable)):window[t].enabled=!0,tpGS.gsap.fromTo(i,2,{zIndex:"13",clip:"rect(95px 95px 95px 95px)"},{clip:"rect(0px 190px 190px 0px)"}),jQuery("#ale_"+e+" .rs_ale_enabled").show(),RVS.F.showAddonInfos(e),RVS.F.addonInstalledOnDemand(e),RVS.F.loadCSS(RVS.ENV.wp_plugin_url+e+"/admin/assets/css/"+e+"-admin.css"),jQuery.getScript(RVS.ENV.wp_plugin_url+e+"/admin/assets/js/"+e+"-admin.js",function(){RVS.F.showAddonInfos(e),!RVS.S.ovMode&&RVS.LIB.ADDONS[e].enable&&RVS.DOC.trigger(e+"_init")}).fail(function(e,t,i){console.log(i)}))},void 0,void 0,RVS_LANG.addon+'<br><span style="font-size:17px; line-height:25px;">"'+RVS_LANG.activatingaddon+'"</span>')}}),RVS.DOC.on("click","#check_addon_updates",function(){RVS.F.ajaxRequest("check_for_updates",{},function(e){e.success&&(RVS.ENV.latest_version=e.version,delete RVS.LIB.ADDONS_LIST,document.getElementById("rbm_addonlist").innerHTML="",RVS.F.loadAddonList())})}),RVS.DOC.on("click",".ale_i_enableaddon",function(){var e=this.dataset.slug;!0!==RVS.LIB.ADDONS_LIST[e].global?(RVS.SLIDER.settings.addOns[e]=void 0===RVS.SLIDER.settings.addOns[e]?{}:RVS.SLIDER.settings.addOns[e],RVS.SLIDER.settings.addOns[e].enable=!0,RVS.LIB.ADDONS[e].enable=!0,RVS.DOC.trigger(e+"_init"),RVS.F.showAddonInfos(e),jQuery("#ale_"+this.dataset.slug+" .rs_ale_enabled").show()):RVS.F.ajaxRequest("wp_ajax_enable_"+e,{},function(t){RVS.LIB.ADDONS[e].enable=!0,RVS.DOC.trigger(e+"_init"),RVS.F.showAddonInfos(e),jQuery("#ale_"+e+" .rs_ale_enabled").show()},void 0,void 0,RVS_LANG.addon+'<br><span style="font-size:17px; line-height:25px;">"'+RVS_LANG.enablingaddon+'"</span>')}),RVS.DOC.on("click",".ale_i_disableaddon",function(){var e=this.dataset.slug;RVS.LIB.ADDONS_LIST[e].global?RVS.F.ajaxRequest("wp_ajax_disable_"+e,{},function(t){RVS.LIB.ADDONS[e].active=!1,RVS.LIB.ADDONS[e].enable=!1,RVS.DOC.trigger(e+"_init"),RVS.F.showAddonInfos(e),jQuery("#ale_"+e+" .rs_ale_enabled").hide()},void 0,void 0,RVS_LANG.addon+'<br><span style="font-size:17px; line-height:25px;">"'+RVS_LANG.disablingaddon+'"</span>'):(RVS.SLIDER.settings.addOns[e].enable=!1,RVS.DOC.trigger(e+"_init"),RVS.LIB.ADDONS[e].enable=!1,RVS.F.showAddonInfos(e),jQuery("#ale_"+this.dataset.slug+" .rs_ale_enabled").hide())}),RVS.DOC.on("click",".ale_i_updateaddon",function(){var e=this.dataset.slug;RVS.F.ajaxRequest("activate_addon",{addon:e,update:!0},function(t){t.success&&(void 0!==RVS.ENV.addOns_to_update[e]&&!0!==RVS.ENV.addOns_to_update[e].updated&&(RVS.ENV.addOns_to_update[e].updated=!0),delete RVS.LIB.ADDONS_LIST,document.getElementById("rbm_addonlist").innerHTML="",RVS.F.loadAddonList(e))},void 0,void 0,RVS_LANG.addon+'<br><span style="font-size:17px; line-height:25px;">"'+RVS_LANG.updatingaddon+" "+e+'"</span>')}),RVS.DOC.on("click","#rbm_configpanel_savebtn",function(){RVS.DOC.trigger("save_"+this.dataset.slug)})),RVS.F.RSDialog.create({modalid:"rbm_addons",bgopacity:.85}),jQuery("#rbm_addonlist, #rbm_addon_details").RSScroll({suppressScrollX:!0})},RVS.F.showAddonInfos=function(e){var t='<div class="rbm_addon_details_inner">',i=RVS.LIB.ADDONS_LIST[e],a=i.active?i.global?RVS_LANG.enableglobaladdon:RVS_LANG.enableaddon:i.global?RVS_LANG.activateglobaladdon:RVS_LANG.activateaddon,o=i.global?RVS_LANG.disableglobaladdon:RVS_LANG.disableaddon;t+='<div class="div20"></div>',t+='<div class="ale_i_title">'+i.title+"</div>",t+='<div class="ale_i_content">'+i.line_1+" "+i.line_2+"</div>",t+='<div class="div20"></div>',RVS.S.ovMode&&!i.global&&i.active&&i.installed?t+='<div class="basic_action_button_inactive autosize basic_action_button" data-slug="'+i.slug+'" data-global="'+i.global+'"><i class="material-icons">error_outline</i>'+RVS_LANG.addonOnlyInSlider+"</div>":RVS.ENV.revision<i.version_from?t+='<div class="ale_i_errorbutton basic_action_button autosize"><i class="material-icons">error_outline</i>'+RVS_LANG.checkforrequirements+"</div>":i.installed?i.active?RVS.LIB.ADDONS[e].enable?t+='<div class="ale_i_disableaddon basic_action_coloredbutton autosize basic_action_button" data-global="'+i.global+'" data-slug="'+i.slug+'"><i class="material-icons">remove_circle_outline</i>'+o+"</div>":RVS.S.ovMode&&!i.global?t+="":t+='<div class="ale_i_enableaddon basic_action_coloredbutton autosize basic_action_button" data-global="'+i.global+'" data-slug="'+i.slug+'"><i class="material-icons">power_settings_new</i>'+a+"</div>":t+='<div class="ale_i_activateaddon basic_action_coloredbutton autosize basic_action_button" data-slug="'+i.slug+'" data-global="'+i.global+'"><i class="material-icons">power_settings_new</i>'+a+"</div>":t+='<div class="ale_i_installaddon basic_action_coloredbutton autosize basic_action_button" data-slug="'+i.slug+'" data-global="'+i.global+'"><i class="material-icons">get_app</i>'+RVS_LANG.install_and_activate+"</div>",t+="</div>",t+='<div class="ale_i_line"></div>',t+='<div class="rbm_addon_details_inner">',t+="<row>",t+="<onehalf>",t+='<div class="ale_i_title">'+RVS_LANG.installedversion+"</div>",!1===i.installed?t+='<div class="ale_i_content">'+RVS_LANG.notinstalled+"</div>":t+='<div class="ale_i_content">'+i.installed+"</div>",t+="</onehalf>",t+="<onehalf>",t+='<div class="ale_i_title">'+RVS_LANG.availableversion+"</div>",t+='<div class="ale_i_content">'+i.available+"</div>",t+="</onehalf>",t+="</row>",t+='<div class="div20"></div>',t+='<div class="ale_i_title">'+RVS_LANG.requirements+"</div>",RVS.ENV.revision>=i.version_from?t+='<div class="ale_i_content"><i class="material-icons">check</i>'+RVS_LANG.sliderrevversion+" "+i.version_from+"</div>":t+='<div class="ale_i_content ale_yellow"><i class="material-icons">error_outline</i>'+RVS_LANG.sliderrevversion+" "+i.version_from+"</div>",!1!==i.installed&&i.installed<i.available&&(t+='<div class="div20"></div>',t+='<div class="ale_i_updateaddon  basic_action_coloredbutton autosize basic_action_button" data-global="'+i.global+'" data-slug="'+i.slug+'"><i class="material-icons">get_app</i>'+RVS_LANG.updateNow+"</div>"),t+="</div>",t+='<div class="ale_i_line"></div>',t+='<div class="form_collector" id="addon_configuration_subpanel"></div>',document.getElementById("rbm_addon_details").innerHTML=t,RVS.F.configPanelSaveButton({show:!1,slug:e}),i.active&&RVS.DOC.trigger(i.slug+"_config",{container:"addon_configuration_subpanel"})},RVS.F.configPanelSaveButton=function(e){var t=document.getElementById("rbm_configpanel_savebtn");!0===e.show?(t.style.display="block",t.dataset.slug=e.slug):t.style.display="none"},RVS.F.preloadImage=function(e){var t=new Image;!0!==e.silent&&RVS.F.showWaitAMinute({fadeIn:500,text:RVS_LANG.imageisloading}),t.onload=function(){if(void 0!==e.slideId&&void 0!==e.uid){RVS.SLIDER[e.slideId].layers[e.uid].size.originalWidth=this.width,RVS.SLIDER[e.slideId].layers[e.uid].size.originalHeight=this.height;var t=0===parseInt(this.height,0)?0:parseInt(this.width,0)/parseInt(this.height,0);RVS.SLIDER[e.slideId].layers[e.uid].size.aspectRatio=RVS.F.cToResp({default:"1",val:t}),RVS.SLIDER[e.slideId].layers[e.uid].media.loaded=!0}!0!==e.silent&&setTimeout(function(){RVS.F.showWaitAMinute({fadeOut:500})},100),e.callback&&e.callback.call()},t.onerror=function(){void 0!==e.slideId&&void 0!==e.uid&&(RVS.SLIDER[e.slideId].layers[e.uid].media.imageUrl=RVS.ENV.img_ph_url,RVS.SLIDER[e.slideId].layers[e.uid].size.originalWidth=300,RVS.SLIDER[e.slideId].layers[e.uid].size.originalHeight=200,RVS.SLIDER[e.slideId].layers[e.uid].size.aspectRatio=RVS.F.cToResp({default:"1",val:1.5}),RVS.SLIDER[e.slideId].layers[e.uid].media.loaded=!0),!0!==e.silent&&setTimeout(function(){RVS.F.showWaitAMinute({fadeOut:500})},100),e.callback&&e.callback.call()},t.onabort=function(){!0!==e.silent&&setTimeout(function(){RVS.F.showWaitAMinute({fadeOut:500})},100),e.callback&&e.callback.call()},t.src=e.image},RVS.F.createMiniPreloader=function(e){jQuery("#font_minipreloader").remove(),e.container.append(jQuery('<div id="font_minipreloader" style="position:absolute; top:5px;right:5px; width:20px:height:20px"><svg  height="20" width="20"><circle style="visibility:visible; color:#fff;" class="circle-fill" cx="10" cy="10" r="8" stroke="white" stroke-width="3" fill="none" /></svg>')),RVS.S.miniPreloaderTL=tpGS.gsap.timeline({repeat:-1,delay:.3}),RVS.S.miniPreloaderTL.add(tpGS.gsap.fromTo(".circle-fill",.7,{drawSVG:"0%"},{drawSVG:"80%",ease:"none",force3D:!0}),0),RVS.S.miniPreloaderTL.add(tpGS.gsap.to(".circle-fill",.7,{drawSVG:"0%",ease:"none"}),1),RVS.S.miniPreloaderTL.add(tpGS.gsap.to(".circle-fill",.7,{rotation:360,ease:"none",transformOrigin:"50% 50%"}),0),RVS.S.miniPreloaderTL.add(tpGS.gsap.to(".circle-fill",.7,{rotation:0,ease:"none",transformOrigin:"50% 50%"}),.7)},RVS.F.miniPreloaderOut=function(e){RVS.S.miniPreloaderTL.reverse(),tpGS.gsap.to("#font_minipreloader",1,{scale:0,transformOrigin:"50% 50%",ease:"power3.inOut",overwrite:"all",force3D:!0,delay:.5,onComplete:e?function(){jQuery("#font_minipreloader").remove()}:function(){}})},RVS.F.miniPreloaderKill=function(){setTimeout(function(){jQuery("#font_minipreloader").remove()},2e3)},RVS.F.checkVimeoID=function(e){RVS.F.createMiniPreloader({container:jQuery("#video_id_wrap")}),jQuery("#hidden_video_container").remove(),jQuery("body").append('<div id="hidden_video_container"></div>'),p=new Vimeo.Player("hidden_video_container",e),u=setTimeout(function(){jQuery("#layer_youtubevimeo_id").addClass("badvalue"),RVS.F.miniPreloaderOut()},3e3),p.ready().then(function(){jQuery("#layer_youtubevimeo_id").removeClass("badvalue"),RVS.F.miniPreloaderOut(),clearTimeout(u)}).catch(function(e){jQuery("#layer_youtubevimeo_id").addClass("badvalue"),RVS.F.miniPreloaderOut(),clearTimeout(u)})},RVS.F.checkYouTubeID=function(e){RVS.F.createMiniPreloader({container:jQuery("#video_id_wrap")}),jQuery("#hidden_video_container").remove(),jQuery("body").append('<div id="hidden_video_container"></div>'),u=setTimeout(function(){jQuery("#layer_youtubevimeo_id").addClass("badvalue"),RVS.F.miniPreloaderOut()},3e3),window._youtubeplayer_=new YT.Player("hidden_video_container",{videoId:e.id,events:{onReady:function(){jQuery("#layer_youtubevimeo_id").removeClass("badvalue"),RVS.F.miniPreloaderOut(),clearTimeout(u)},onError:function(){console.log("ERROR"),jQuery("#layer_youtubevimeo_id").addClass("badvalue"),RVS.F.miniPreloaderOut(),clearTimeout(u)}}})},RVS.F.showMouseInfo=function(e){void 0===RVS.C.mouseInfo&&(RVS.C.mouseInfo=jQuery("#mouseInfoBox"),RVS.C.mouseInfo.appendTo(jQuery("body"))),void 0!==e.html?RVS.C.mouseInfo[0].innerHTML=e.html:void 0!==e.text&&(RVS.C.mouseInfo[0].innerHTML=e.text),r=!0,RVS.C.mouseInfo[0].className=e.classes||""},RVS.F.hideMouseInfo=function(){r=!1,void 0!==RVS.C.mouseInfo&&tpGS.gsap.set(RVS.C.mouseInfo,{display:"none"})},RVS.F.os=function(){var e="Unknown OS";return-1!=navigator.appVersion.indexOf("Win")?e="Windows":-1!=navigator.appVersion.indexOf("Mac")?e="MacOS":-1!=navigator.appVersion.indexOf("X11")?e="UNIX":-1!=navigator.appVersion.indexOf("Linux")&&(e="Linux"),RVS.S.OSName=e,e},RVS.F.setEditorUrl=function(e){window.history&&window.history.pushState&&(window.lastUrlState=window.location.href,window.history.pushState({},null,window.location.origin+window.location.pathname+"?page=revslider&view=slide&id="+e),RVS.WIN.on("popstate",function(e){window.location.href=window.lastUrlState}))},RVS.F.getEditorUrl=function(){var e;window.location.href;return window.location.href.indexOf("alias=")>=0?RVS.SLIDER.slideIDs[0]:(e=window.location.href.indexOf("&id=")>=0?window.location.href.split("&id="):window.location.href.indexOf("?id=")>=0?window.location.href.split("?id="):window.location.href.split("id="),e=jQuery.isArray(e)?e[1]:RVS.SLIDER.slideIDs[0],e=jQuery.isNumeric(e)?e:e.split("&")[0],e=jQuery.isNumeric(e)?e:e.split("#")[0])},RVS.F.backToOverview=function(){window.location.href=window.location.origin+window.location.pathname+"?page=revslider"},RVS.F.getProportionalSizes=function(e){e.image.width=parseInt("100%"==e.image.width||"auto"==e.image.width?e.viewPort.width:e.image.width,0),e.image.height=parseInt("100%"==e.image.height||"auto"==e.image.height?e.viewPort.height:e.image.height,0),e.viewPort.width=parseInt("100%"==e.viewPort.width||"auto"==e.viewPort.width?e.image.width:e.viewPort.width,0),e.viewPort.height=parseInt("100%"==e.viewPort.height||"auto"==e.viewPort.height?e.image.height:e.viewPort.height,0);var t=e.image.width/e.image.height,i=e.viewPort.width/e.viewPort.height,a={width:e.image.width,height:e.image.height};switch(e.type){case"fit":t>i?(a.width=e.viewPort.width,a.height=e.viewPort.width/t):(a.width=e.viewPort.height*t,a.height=e.viewPort.height);break;case"cover-proportional":t<=i?(a.width=e.viewPort.width,a.height=e.viewPort.width/t):(a.width=e.viewPort.height*t,a.height=e.viewPort.height);break;case"fullwidth":a.width=e.viewPort.width,a.height=e.proportional?a.width/t:e.image.height;break;case"fullheight":a.height=e.viewPort.height,a.width=e.proportional?a.height/t:e.image.width;break;case"cover":a.width=e.viewPort.width,a.height=e.viewPort.height}return a},RVS.F.convPercVals=function(e){return!jQuery.isNumeric(e)&&!1!==e&&void 0!==e&&!0!==e&&e.match(/%]/g)&&(e=e.split("[")[1].split("]")[0]),e},RVS.F.convertHexToRGB=function(e){return[(e=parseInt(e.indexOf("#")>-1?e.substring(1):e,16))>>16,(65280&e)>>8,255&e]},RVS.F.sanitize_input_ws=function(e){return e.replace(/[^-0-9a-zA-Z_ -]/g,"")},RVS.F.sanitize_columns=function(e){return e.replace(/[^-1-9+\/]/g,"")},RVS.F.sanitize_input=function(e){if(null!==e)return e.replace(/ /g,"-").replace(/[^-0-9a-zA-Z_-]/g,"")},RVS.F.sanitize_alias=function(e){if(null!==e)return(e=e.replace(/ +(?= )/g,"")).replace(/ /g,"-").replace(/[^-0-9a-zA-Z_-]/g,"")},RVS.F.fontNameConvert=function(e){return e.replace(/"/g,"")},RVS.F.sanitize_input_lc=function(e){return e.replace(/ /g,"-").replace(/[^-0-9a-z_-]/g,"")},RVS.F.parseIntPlus=function(e){var t=parseInt(e,0);return jQuery.isNumeric(t)?t:e},RVS.F.htmlToText=function(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;")},RVS.F.insertTextAtCursor=function(e,t){var i=e.getDoc(),a=i.getCursor();i.replaceRange(t,a)},RVS.F.getResizeDirection=function(e){return e.size.height<e.originalSize.height?"height":e.size.height>e.originalSize.height?"height":e.size.width<e.originalSize.width?"width":e.size.width>e.originalSize.width?"width":"none"},RVS.F.whichBGPos=function(e){return"custom"===e.position?e.positionX+"% "+e.positionY+"%":e.position},RVS.F.matchArray=function(e,t){if(!jQuery.isArray(e)||!jQuery.isArray(t))return!1;if(e.length!=t.length)return!1;var i=!0;for(var a in e)if(e.hasOwnProperty(a)&&-1===jQuery.inArray(e[a],t)){i=!1;break}if(i)for(var a in t)if(t.hasOwnProperty(a)&&-1===jQuery.inArray(t[a],e)){i=!1;break}return i},RVS.F.mergeArrays=function(e,t){for(var i in t)t.hasOwnProperty(i)&&-1===jQuery.inArray(t[i],e)&&e.push(t[i]);return e},RVS.F.makeArray=function(e,t){if(!jQuery.isArray(e)){for(var i=[],a=0;a<t;a++)i.push(e);e=i}return e},RVS.F.amove=function(e,t,i){if(jQuery.isArray(e)||(e=Object.values(e)),i>=e.length)for(var a=i-e.length+1;a--;)e.push(void 0);return e.splice(i,0,e.splice(t,1)[0]),e},RVS.F.rArray=function(e,t){return jQuery.grep(e,function(e){return e!=t})},RVS.F._inArray=function(e,t){for(var i=-1,a=0;a<t.length&&-1===i;)t[a]==e&&(i=a),a++;return i},RVS.F.addT=function(e){var t=0;for(var i in e)e.hasOwnProperty(i)&&(t+=parseInt(e[i],0));return t},RVS.F.isVaOrPx=function(e){var t=!1;return!jQuery.isNumeric(e)&&e.indexOf("px")>=0?t=!0:jQuery.isNumeric(e)&&(t=!0),t},RVS.F.retWitSuf=function(e,t){return!jQuery.isNumeric(e)&&e.indexOf("px")>=0?parseInt(e)+"px":!jQuery.isNumeric(e)&&e.indexOf("%")>=0?parseInt(e)+"%":!jQuery.isNumeric(e)&&jQuery.isNumeric(parseInt(e,0))?parseInt(e)+t:jQuery.isNumeric(e)?e+t:void 0},RVS.F.firstCharUppercase=function(e){return e.substr(0,1).toUpperCase()+e.substr(1).toLowerCase()},RVS.F._d=function(e,t){return null==e?t:e},RVS.F._truefalse=function(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},RVS.F.cToResp=function(e){var t={},i=void 0===(e=void 0===e?{default:0,unit:""}:e).default?0:e.default,a=void 0===e.unit?"":e.unit;for(var o in RVS.V.sizes)if(RVS.V.sizes.hasOwnProperty(o)){var r=RVS.V.sizes[o],s=RVS.V.sizesold[o];if("object"==typeof(i=jQuery.isArray(e.val)?e.val:void 0!==e.val&&"object"!=typeof e.val?e.val:void 0===e.val||"object"!=typeof e.val||void 0===e.val[s]||null===e.val[s]?i:e.val[s]))for(var n in t[r]=jQuery.extend(!0,{},{v:i,e:!1}),void 0!==e&&void 0!==e.val&&void 0!==e.val[s]&&(t[r].e=!0),i)i.hasOwnProperty(n)&&(t[r].v[n]=a.length>0&&"auto"!==i[n]&&"none"!==i[n]?parseFloat(i[n])+a:i[n],""!=a||jQuery.isNumeric(t[r].v[n])||(t[r].v[n].indexOf("%")>=0?t[r].v[n]=parseInt(t[r].v[n],0)+"%":t[r].v[n].indexOf("px")>=0&&(t[r].v[n]=parseInt(t[r].v[n],0)+"px")));else t[r]=jQuery.extend(!0,{},{v:a.length>0&&"auto"!==i&&"none"!==i&&""!==i?parseFloat(i)+a:i,e:!1,u:a}),void 0!==e&&void 0!==e.val&&void 0!==e.val[s]&&(t[r].e=!0),""===t[r].v&&""!==e.default&&(t[r].v=e.default),""!=a||jQuery.isNumeric(t[r].v)||!1===t[r].v||!0===t[r].v||(t[r].v.indexOf("%")>=0?t[r].v=parseInt(t[r].v,0)+"%":t[r].v.indexOf("px")>=0&&(t[r].v=parseInt(t[r].v,0)+"px"))}return t},RVS.F.cToVandU=function(e){var t={v:e.default,u:e.u};t.v=void 0===e.val?t.v:e.val;var i=0;if("object"==typeof t.v)for(var a in t.v)t.v.hasOwnProperty(a)&&(jQuery.isNumeric(t.v[a])||(t.u=0==i&&t.v[a].indexOf("px")>=0?"px":0==i&&t.v[a].indexOf("%")>=0?"%":t.u,t.v[a]=parseInt(t.v[a],0)+t.u,i++));else jQuery.isNumeric(t.v)||(t.u=0==i&&t.v.indexOf("px")>=0?"px":0==i&&t.v.indexOf("%")>=0?"%":t.u,t.v=parseInt(t.v,0)+t.u,i++);return t},RVS.F.exportLayerCombo=function(e){void 0===S&&(jQuery("body").append('<a style="display:none" id="downloadExportLayerCombo" href="" download></a>'),S=jQuery("#downloadExportLayerCombo"));var t,i=RVS.SLIDER[RVS.S.slideId].slide.thumb.customAdminThumbSrcId,a={};for(var o in RVS.L)RVS.L.hasOwnProperty(o)&&("video"===RVS.L[o].type&&(t=RVS.L[o].media.id),"video"!==RVS.L[o].type&&(a[o]=jQuery.extend(!0,{},RVS.L[o])));return delete a.bottom,delete a.top,delete a.middle,a=JSON.stringify(RVS.F.simplifyAllLayer(a)),RVS.F.ajaxRequest("export_layer_group",{videoid:t,thumbid:i,layers:a,title:e.title},function(e){S[0].href=e.url,S[0].click()},!0,!0),"Exporting Layer Combo File"},RVS.F.simplifyObject=function(e,t){for(var i in t)t.hasOwnProperty(i)&&("object"!=typeof t[i]||jQuery.isArray(t[i])?e[i]==t[i]&&"text"!==i&&"endWithSlide"!==i&&delete t[i]:(void 0!==e[i]&&"margin"!==i&&"padding"!==i&&(t[i]=jQuery.extend(!0,{},RVS.F.simplifyObject(e[i],t[i]))),jQuery.isEmptyObject(t[i])&&delete t[i]));return t},RVS.F.removeEmptyChilds=function(e){var t={};for(var i in e)e.hasOwnProperty(i)&&("object"!=typeof e[i]&&(t[i]=e[i]),jQuery.isEmptyObject(e[i])||(t[i]=jQuery.extend(!0,{},RVS.F.removeEmptyChilds(e[i]))));return t},RVS.F.convertFraction=function(e){var t,i;return-1!==e.search("/")&&2===(i=e.split("/")).length&&(t=parseInt(i[0],10)/parseInt(i[1],10)),t||1/3},RVS.F.openPreivew=function(e){RVS.preview=void 0===RVS.preview?{selectedSize:"d",inited:!1,c:jQuery("#rbm_preview")}:RVS.preview,jQuery("#wpwrap").addClass("inRS_RSpreview"),document.getElementById("rbm_preview_moduletitle").innerHTML=e.title,document.getElementById("copy_shortcode_from_preview").value='[rev_slider alias="'+e.alias+'"][/rev_slider]',RVS.preview.open=!0,RVS.preview.inited||(RVS.preview.inited=!0,RVS.DOC.on("click",".rbm_prev_size_sel",function(){jQuery(".rbm_prev_size_sel.selected").removeClass("selected"),this.className+=" selected",RVS.preview.selectedSize=this.dataset.ref,RVS.F.updatePreviewSize()}),RVS.DOC.on("click","#rbm_preview .rbm_close",function(){jQuery("#wpwrap").removeClass("inRS_RSpreview"),RVS.F.RSDialog.close(),RVS.preview.open=!1,document.getElementById("rbm_preview_live").innerHTML=""}),RVS.F.initCopyClipboard(".copypreviewshortcode"),RVS.DOC.on("windowresized",function(){RVS.preview.open&&RVS.F.updatePreviewSize()})),RVS.preview.iframe=document.createElement("iframe"),document.getElementById("rbm_preview_live").appendChild(RVS.preview.iframe),RVS.F.RSDialog.create({modalid:"rbm_preview",bgopacity:.85});var t={id:e.id};"editor"===e.mode&&(t.data=RVS.F.getAllSliderDatas()),RVS.F.ajaxRequest("preview_slider",t,function(e){RVS.preview.layouttype=e.layouttype,RVS.preview.sizes=e.size,RVS.preview.iframe.contentWindow.document.open(),RVS.preview.iframe.contentWindow.document.write(e.html),RVS.preview.iframe.contentWindow.document.close(),RVS.F.updatePreviewSize()})},RVS.F.updatePreviewSize=function(){if(void 0!==RVS.preview&&void 0!==RVS.preview.sizes&&null!=RVS.preview.sizes.width&&null!=RVS.preview.sizes.height){var e=function(e,t){var i=!1,a={w:parseInt(e.width.d,0),h:e.height.d};for(var o in RVS.V.sizes)RVS.V.sizes.hasOwnProperty(o)&&!0!==i&&(e.custom[RVS.V.sizes[o]]&&(a.w=parseInt(e.width[RVS.V.sizes[o]],0),a.h=parseInt(e.height[RVS.V.sizes[o]],0)),RVS.V.sizes[o]===t&&(i=!0));return a}(RVS.preview.sizes,RVS.preview.selectedSize),t={w:parseInt(RVS.preview.sizes.width[RVS.preview.selectedSize],0),h:parseInt(RVS.preview.sizes.height[RVS.preview.selectedSize],0)};!1===RVS.preview.sizes.custom[RVS.preview.selectedSize]&&(t.w=Math.min(e.w,RVS.ENV.grid_sizes[RVS.preview.selectedSize]),t.h=t.w/e.w*e.h),t.w=t.w-1;var i=Math.min(t.w,RVS.S.winw),a=Math.min(t.h+50,RVS.S.winh),o="fullscreen"===RVS.preview.layouttype||"fullwidth"===RVS.preview.layouttype,r="fullscreen"===RVS.preview.layouttype;tpGS.gsap.set(RVS.preview.c,{width:"d"===RVS.preview.selectedSize&&o?"100%":Math.max(690,i),height:"d"===RVS.preview.selectedSize&&r?"100%":a}),tpGS.gsap.set(RVS.preview.iframe,{maxHeight:"100%",maxWidth:"100%",margin:"auto",position:"relative",left:"50%",x:"-50%"}),RVS.preview.iframe.width=o?"m"===RVS.preview.selectedSize?Math.min(t.w,i):"100%":Math.min(t.w,i),RVS.preview.iframe.height=r&&"d"===RVS.preview.selectedSize?RVS.S.winh-50:t.h,RVS.F.RSDialog.center()}}}();