File "admin.min.js"
Full Path: /home/jlklyejr/public_html/post-date/wp-content/plugins/revslider/admin/assets/js/modules/admin.min.js
File size: 133.57 KB
MIME-type: text/plain
Charset: utf-8
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,window._R_is_Editor="true"===window._R_is_Editor||void 0,window.RS_EASES={default:"Default",none:"none","power0.in":"power0.in","power0.inOut":"power0.inOut","power0.out":"power0.out","power1.in":"power1.in","power1.inOut":"power1.inOut","power1.out":"power1.out","power2.in":"power2.in","power2.inOut":"power2.inOut","power2.out":"power2.out","power3.in":"power3.in","power3.inOut":"power3.inOut","power3.out":"power3.out","power4.in":"power4.in","power4.inOut":"power4.inOut","power4.out":"power4.out","back.in":"back.in","back.inOut":"back.inOut","back.out":"back.out","bounce.in":"bounce.in","bounce.inOut":"bounce.inOut","bounce.out":"bounce.out",BounceLite:"Bounce Lite",BounceSolid:"Bounce Solid",BounceStrong:"Bounce Strong",BounceExtrem:"Bounce Extrem","circ.in":"circ.in","circ.inOut":"circ.inOut","circ.out":"circ.out","elastic.in":"elastic.in","elastic.inOut":"elastic.inOut","elastic.out":"elastic.out","expo.in":"expo.in","expo.inOut":"expo.inOut","expo.out":"expo.out","sine.in":"sine.in","sine.inOut":"sine.inOut","sine.out":"sine.out",slow:"slow",SFXBounceLite:"SFX - Bounce Lite",SFXBounceSolid:"SFX - Bounce Solid",SFXBounceStrong:"SFX - Bounce Strong",SFXBounceExtrem:"SFX - Bounce Extrem"},window.RS_PRESETS={R:"shuffle",C:"create",I:"system_update_alt",SC:"border_inner",SR:"border_left",SB:"border_top",ST:"border_bottom",SL:"border_right",BH:"border_horizontal",BV:"border_vertical",CL:"remove_circle_outline",LI:"link",LO:"local_offer",CA:"compare_arrows",CY:"import_export"},function(){var r,i,a,o,s,n,t,d,c,e,p,S,u,v,R;function V(e){!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=0<=RVS.F._inArray(e.todo.slide,RVS.SLIDER.slideIDs)?e.todo.slide:RVS.SLIDER.slideIDs[0],(e.todo.redrawLayers=!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})),!0===e.todo.SlideList&&RVS.F.reSortSlides();var t=!1;if(("slidelayout"==e.todo.mode&&(e.SlideSettings||""+e.todo.slide!=""+RVS.S.slideId)||"slidelayout"!==e.todo.mode&&void 0!==e.todo.mode)&&(RVS.F.mainMode({mode:e.todo.mode,set:!0,slide:e.todo.slide}),e.todo.redrawLayers=!(t=!0)),"slidelayout"!==e.todo.mode||e.todo.layerAndSlideMode||(void 0!==e.todo.layer?RVS.DOC.trigger("changeToLayerMode"):RVS.DOC.trigger("changeToSlideMode")),t||!e.todo.rebuildLayerList&&!0!==e.todo.LayerSorting||("slidelayout"===e.todo.mode&&!e.todo.forceRebuildLayerList||(RVS.H={},RVS.F.buildLayerLists({force:!0,ignoreSelectLayers:void 0!==e.todo.lastSelectedLayers}),RVS.F.updateLayerToggleActionWaits(),RVS.DOC.trigger("allLayersRebuilt"),e.todo.redrawLayers=!1),RVS.F.reOrderHTMLLayers()),void 0!==e.todo.framesToAdd){for(var i in e.todo.framesToAdd)e.todo.framesToAdd.hasOwnProperty(i)&&(RVS.F.addLayerFrameOnDemand(RVS.L[e.todo.framesToAdd[i].layerid],e.todo.framesToAdd[i].el,e.todo.framesToAdd[i].newframe),RVS.F.getFrameOrder({layerid:e.todo.framesToAdd[i].layerid}),RVS.F.updateFramesZIndexes({layerid:e.todo.framesToAdd[i].layerid}));RVS.DOC.trigger("updateKeyFramesList")}if(void 0!==e.todo.framesToRedraw)for(var i in e.todo.framesToRedraw)e.todo.framesToRedraw.hasOwnProperty(i)&&(RVS.F.updateLayerFrames({layerid:e.todo.framesToRedraw[i]}),RVS.F.renderLayerAnimation({layerid:e.todo.framesToRedraw[i]}));if(void 0!==e.todo.framesToReorder){for(var i in e.todo.framesToReorder)e.todo.framesToReorder.hasOwnProperty(i)&&(RVS.F.getFrameOrder({layerid:e.todo.framesToReorder[i].layerid}),RVS.F.updateFramesZIndexes({layerid:e.todo.framesToReorder[i].layerid}));RVS.DOC.trigger("updateKeyFramesList")}if(void 0!==e.todo.lastSelectedLayers)for(var i in e.todo.lastSelectedLayers)e.todo.lastSelectedLayers.hasOwnProperty(i)&&void 0!==RVS.L[e.todo.lastSelectedLayers[i]]&&(RVS.F.selectLayers({id:e.todo.lastSelectedLayers[i],action:"add"}),e.todo.redrawLayers=!1);for(i in e.todo.updateLayerImageSrcList)e.todo.updateLayerImageSrcList.hasOwnProperty(i)&&RVS.F.updateLayerImageSrc({},{layerid:e.todo.updateLayerImageSrcList[i]});if(e.todo.redrawLayers&&void 0!==e.todo.layers&&0<e.todo.layers.length)for(var i in e.todo.layers)e.todo.layers.hasOwnProperty(i)&&RVS.F.drawHTMLLayer({uid:e.todo.layers[i]});if(void 0!==e.todo.callBack&&e.todo.callBack(),"undo"==e.dir&&e.todo.rebuildLayerList)for(var i in e.todo.step.steps)e.todo.step.steps.hasOwnProperty(i)&&"removeLayer"===e.todo.step.id&&RVS.F.updateTriggeringActionRelations(e.todo.step.steps[i].path);RVS.DOC.trigger("SceneUpdatedAfterRestore",e)}function m(e){var t,i,a=RVS.F.isNumeric(e.path);return 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),a||0!==e.path.indexOf("settings")||(e.todo.SliderSettings=!0,e.todo.mode="sliderlayout"),!a&&0<=e.path.indexOf(".layers.")&&e.path.indexOf(".layers.")<=6&&(e.todo.lastSelectedLayers=RVS.selLayers,e.todo.LayerSettings=!0,t=e.path.split("."),i=jQuery.inArray("layers",t),e.todo.slide=t[i-1],e.todo.layer=t[i+1],e.todo.layers=void 0===e.todo.layers?[]:e.todo.layers,-1===jQuery.inArray(t[i+1],e.todo.layers)&&e.todo.layers.push(t[i+1]),e.todo.mode="slidelayout"),!a&&0<=e.path.indexOf(".slide.")&&e.path.indexOf(".slide.")<=6&&(e.todo.SlideSettings=!0,t=e.path.split("."),i=jQuery.inArray("slide",t),e.todo.slide=t[i-1],e.todo.mode="slidelayout"),!a&&(0<=e.path.indexOf(".slide.timeline.delay")||0<=e.path.indexOf(".slide.slideChange.speed"))&&(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(void 0!==(o="old"===e.valkey?t.steps[t.chngamount-a-1]: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:document.getElementById("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&&RVS.C.slideList.append(o.cache),0<=jQuery.inArray(o.bckpGrType,["addnewslide","duplicateslide"])?i.forceSelectSlide=o.path:i.forceSelectSlide=o.beforeSelected),i.mode="slidelayout";break;case"object":jQuery.isEmptyObject(o[e.valkey])?delete RVS.SLIDER[o.path]:RVS.F.writeDeepPath(RVS.SLIDER,o.path,jQuery.extend(!0,{},o[e.valkey])),i.callBack=o.callBack;break;case"array":void 0!==o[e.valkey]&&(RVS.F.writeDeepPath(RVS.SLIDER,o.path,o[e.valkey]),i.callBack=o.callBack);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=m({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=m({todo:i,path:t.path}),-1===jQuery.inArray(i.slide,i.slides)&&i.slides.push(i.slide)}return i.step=e.step,i}function y(e){void 0!==e&&void 0===e.type&&(e.type=0<=e.path.indexOf(RVS.S.slideId+".layers.")?"layer":e.type);var t=e.path,i=0<=t.indexOf("addOns")?t.split("addOns.")[1]:"none",a="layer"===e.type?"layers":"undo",o=(o=e.path.split("."))[o.length-1];return{txt:"none"!==i?i.replace("revslider-","").replace("-addon."," "+("layer"===e.type?"layer":"Slide")+" "):0<=t.indexOf("settings.size.width")?"Layer Container Width":0<=t.indexOf("settings.size.height")?"Layer Container Height":0<=t.indexOf("settings.size.minHeight")?"Slider Min Height":0<=t.indexOf("settings.size.maxWidth")?"Slider Max Width":0<=t.indexOf("settings.size")?"Slider Size Settings":0<=t.indexOf("settings.carousel")?"Carousel Settings":0<=t.indexOf("slide.bg")?"Slide Background":0<=t.indexOf(".fontWeight")?"Font Weight":0<=t.indexOf(".fontSize")?"Font Size":0<=t.indexOf(".fontFamily")?"Font Family":0<=t.indexOf(".fontStyle")?"Font Style":0<=t.indexOf(".textTransform")?"Text Transform":0<=t.indexOf(".idle.selectable")?"Layer Markable":0<=t.indexOf(".textDecoration")?"Text Decoration":0<=t.indexOf("slide.attributes")?"Slide Attributes":0<=t.indexOf(".media")&&"layer"===e.type?"Media ("+o+")":0<=t.indexOf("alias")&&(0<=t.indexOf(".layers")||"layer"===e.type)?"Layer Alias":0<=t.indexOf("slide.slideChange.speed")?"Slide Transition Speed":0<=t.indexOf("timeline.frames")?"Layer Animation ("+o+")":"slideIDs"===t?"Slide Order Change":t,icon:"none"!==i?"extension":0<=t.indexOf("settings.size.width")||0<=t.indexOf("settings.size.height")?"open_with":0<=t.indexOf("settings.size.minHeight")?"vertical_align_bottom":0<=t.indexOf("settings.size.maxWidth")?"trending_flat":0<=t.indexOf("settings.size")?"exposure":0<=t.indexOf("settings.carousel")?"view_carousel":0<=t.indexOf("slide.bg")?"image":0<=t.indexOf(".fontWeight")?"font_download":0<=t.indexOf(".fontSize")?"text_format":0<=t.indexOf(".fontFamily")?"translate":0<=t.indexOf(".fontStyle")?"format_italic":0<=t.indexOf(".textTransform")?"text_fields":0<=t.indexOf(".idle.selectable")?"select_all":0<=t.indexOf(".textDecoration")?"text_format":0<=t.indexOf("slide.attributes")?"speaker_notes":0<=t.indexOf(".media")&&"layer"===e.type?"videocam":0<=t.indexOf("alias")&&(0<=t.indexOf(".layers")||"layer"===e.type)?"title":0<=t.indexOf("slide.slideChange.speed")?"timelapse":0<=t.indexOf("timeline.frames")?"theaters":"slideIDs"===t?"sort":a,lastkey:e.lastkey}}function f(e){var t,i='<option value="none">'+RVS_LANG.none+"</option>";for(t in e.array)!e.array.hasOwnProperty(t)||void 0!==e.filter&&"all"!==e.filter&&e.filter!==e.array[t].type||void 0!==e.subfilter&&"all"!==e.subfilter&&e.subfilter!==e.array[t].subtype||(i+="<option "+(e.preselected===e.array[t][e.type]?"selected":"")+' value="'+e.array[t][e.type]+'">'+e.array[t].title+"</option>");return i}function h(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">')+('<div class="collectortabwrap"><div id="" class="collectortab form_menu_inside" data-forms=\'["#'+e.d+"\"]'>"+e.title+"</div></div>")+('<div id="'+e.e+'" class="form_inner open"></div>')+"</div>"+"</div>"}function _(e){return"50%"==e.originX&&delete e.originX,"50%"==e.originY&&delete e.originY,"0"==e.originZ&&delete e.originZ,e}RVS.F.initAdmin=function(){RVS.S.isChrome8889=navigator.userAgent.includes("Chrome/88")||navigator.userAgent.includes("Chrome/89");try{jQuery.fn.select2=void 0===jQuery.fn.select2?jQuery.fn.ddTP:jQuery.fn.select2}catch(e){}try{$.fn.select2=void 0===$.fn.select2?$.fn.ddTP:$.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=275,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.editorSize.width=RVS.S.editorSize.w,RVS.S.editorSize.height=RVS.S.editorSize.h,RVS.S.click={x:0,y:0},RVS.JHOOKS={createLayerListElement:[],redrawSlideBG:[],prepareOneSlide:[],layerListElementClicked:[],updateFrameOptionsVisual:[],changeLayerAnimation:[],defaultFrame:[],extendSlideAnimationList:[]},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.editorSize.width=RVS.S.winw-335,RVS.S.editorSize.h=RVS.S.editorSize.height=RVS.S.winh-RVS.V.timeline_minHeight-65,clearTimeout(n),n=setTimeout(function(){RVS.DOC.trigger("windowresized"),!0!==RVS.S.ovMode&&RVS.F.updateAllHTMLLayerPositions(!0),requestAnimationFrame(function(){"function"==typeof RVS.F.CSTRETCH&&RVS.F.CSTRETCH()&&RVS.DOC.trigger("device_area_dimension_update")})},25))}),RVS.DOC.on("mousemove","#builderView",function(e){RVS.S.mP.top=e.pageY,RVS.S.mP.left=e.pageX,t&&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.DOC.on("touchstart mouseenter",".tparrows, .tp-bullets, .tp-bullet, .tp-tab, .tp-thumb, .tp-thumbs, .tp-tabs, .tp-rightarrow, .tp-leftarrow",function(){-1===this.className.indexOf("rs-touchhover")&&(this.className+=" rs-touchhover")}),RVS.DOC.on("touchend mouseleave",".tparrows, .tp-bullets, .tp-bullet, .tp-tab, .tp-thumb, .tp-tabs, .tp-rightarrow, .tp-leftarrow",function(){this.className=this.className.replace("rs-touchhover","")})},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(document.body).hasClass("rs-high-contrast")?jQuery(document.body).removeClass("rs-high-contrast"):jQuery(document.body).addClass("rs-high-contrast"):e?jQuery(document.body).addClass("rs-high-contrast"):jQuery(document.body).removeClass("rs-high-contrast")},RVS.F.getStartSec=function(e){return null==e||""===e||" "===e?0:!RVS.F.isNumeric(e)&&1<e.split(":").length?60*parseInt(e.split(":")[0],0)+parseInt(e.split(":")[1],0):e},RVS.F.videoExtract={init:function(){var e=RVS.F.videoExtract;e.canvas=document.createElement("canvas"),e.ctx=e.canvas.getContext("2d"),e.video=document.createElement("video"),e.inited=!0},get:function(e,t,i,a){void 0!==e&&(void 0===RVS.F.videoExtract.inited&&RVS.F.videoExtract.init(),RVS.F.videoExtract.at=RVS.F.getStartSec(i),RVS.F.videoExtract.callBack=t,RVS.F.videoExtract.video.addEventListener("loadeddata",RVS.F.videoExtract.draw),RVS.F.videoExtract.lastloaded==e&&RVS.F.videoExtract.draw(),RVS.F.videoExtract.video.src=e,RVS.F.videoExtract.param=a)},draw:async function(){return new Promise(async e=>{var t,i=RVS.F.videoExtract;for(i.video.addEventListener("seeked",async function(){t&&t()});(i.video.duration===1/0||isNaN(i.video.duration))&&i.video.readyState<2;)i.video.currentTime=1e7*Math.random();i.lastloaded=i.video.src,i.canvas.width=i.video.videoWidth,i.canvas.height=i.video.videoHeight,i.video.currentTime=void 0===i.at?0:i.at,await new Promise(e=>t=e),i.ctx.drawImage(i.video,0,0,i.video.videoWidth,i.video.videoHeight),i.data=i.canvas.toDataURL("image/jpeg",.75),i.save(),e()})},save:function(){RVS.F.videoExtract;RVS.F.ajaxRequest("create_image_from_raw",{bitmap:RVS.F.videoExtract.data,mpeg:RVS.F.videoExtract.video.src,slideid:(""+RVS.S.slideId).replace("static_","")+("layer"===RVS.F.videoExtract.param?"_layer":"")},function(e){e.success&&RVS.F.videoExtract.callBack(e,RVS.F.videoExtract.param)})}},RVS.F.setBGPosterImage=function(e,t,i){"slide"===i?RVS.F.updateImageSrcFromMedia({evt:"updateslidebasic",evtparam:"double",r:"#slide#.slide.bg.image",rid:"#slide#.slide.bg.imageId",lib:"#slide#.slide.bg.imageLib",sty:"#slide#.slide.bg.imageSourceType",targetType:"slide"},e,t):"layer"===i&&RVS.F.updateImageSrcFromMedia({evt:"updatelayerimagesrc",r:"media.posterUrl",rid:"media.posterId",lib:"media.imageLib",sty:"behavior.imageSourceType",targetType:"layer"},e,t)},RVS.F.updateSliderObj=function(t){if(!(0<=t.path.indexOf("#targetlayer#"))||void 0!==RVS.S.actionTrgtLayerId&&"none"!==RVS.S.actionTrgtLayerId){t.path=RVS.F.getConcVals(t.path,RVS.screen);var e=t.path.split("."),i=!1;try{t.old=RVS.F.getDeepValue(RVS.SLIDER,t.path),RVS.F.writeDeepPath(RVS.SLIDER,t.path,t.val),t.lastkey=e[e.length-1]}catch(e){i=!0,console.log("Object Path Does Not Exists:"+t.path)}if(!0!==i&&!0!==t.ignoreResponsive&&("v"===e[e.length-1]||"v"===e[e.length-2])){if(t.uid=void 0===t.uid?e[jQuery.inArray("layers",e)+1]:t.uid,void 0===t.editedPath){t.editedPath="";for(var a=0;"v"!==e[a]&&a<e.length;)t.editedPath+=e[a]+".",a++;t.editedPath+="e"}t.editedPath.split(".").join('"]["');i=!1;try{void 0!==t.wasEdited&&"undo"===t.undoRedo?RVS.F.writeDeepPath(RVS.SLIDER,t.editedPath,t.wasEdited):(t.wasEdited=RVS.F.getDeepValue(RVS.SLIDER,t.editedPath),RVS.F.writeDeepPath(RVS.SLIDER,t.editedPath,!0))}catch(e){i=!0,console.log(e)}!0!==i&&RVS.F.intelligentUpdate({calcShrink:!0,iii:RVS.F.isIntelligentInherited(t.uid),key:"v"===e[e.length-1]?e[e.length-3]:e[e.length-4],index:e[e.length-1],uid:t.uid,slide:t.slide})}void 0!==t.evt&&!0!==s&&RVS.DOC.trigger(t.evt,t.evtparam),!0!==t.ignoreBackup&&RVS.F.backup(t)}},RVS.F.updateLayerObj=function(e){var t,i,a="none";for(i in!1===RVS.S.bckpGrp&&1<RVS.selLayers.length&&(a=e.path,t={path:e.path,icon:"layers",lastkey:"layer",type:"layer",id:"MultipleLayers"},RVS.F.openBackupGroup(y(t))),RVS.selLayers)RVS.selLayers.hasOwnProperty(i)&&(void 0!==e.evt&&(e.evtparam=void 0===e.evtparam?{}:e.evtparam,e.evtparam.layerid=RVS.selLayers[i]),RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+RVS.selLayers[i]+"."+e.path,val:e.val,evt:e.evt,evtparam:e.evtparam,uid:RVS.selLayers[i],ignoreBackup:e.ignoreBackup}),!0!==e.ignoreRedraw)&&RVS.F.drawHTMLLayer({uid:RVS.selLayers[i]});"none"!==a&&RVS.F.closeBackupGroup({id:"MultipleLayers"})},RVS.F.openBackupGroup=function(e){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(){s=!0},RVS.F.ignoreEventsClose=function(){s=!1},RVS.F.backup=function(e){var t,i;!0===RVS.S.ovMode||!0!==e.force&&!0!==RVS.S.bckpGrp.close&&e.val===e.old||(0!=RVS.S.bckpGrp&&!0!==RVS.S.bckpGrp.close?(RVS.S.bckpGrp.steps.push(e),RVS.S.bckpGrp.chngamount++):(RVS.F.clearRedoList(),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}:y(e),i=document.createElement("span"),e.stepElement=RVS.F.cE({t:"li",cN:"undoredostep toolbar_listelement"}),i.style.display="inline-block",i.style.minWidth="150px",i.textContent=t.txt,e.stepElement.appendChild(RVS.F.cI({c:t.icon})),e.stepElement.appendChild(i),RVS.S.undoList.push(e),30<RVS.S.undoList.length&&(RVS.S.undoList.splice(0,1),RVS.C.undo.removeChild(RVS.C.undo.querySelector("li"))),RVS.C.undo.appendChild(e.stepElement),RVS.S.bckpGrp=!1),RVS.S.need_to_save=!0)},RVS.F.clearRedoList=function(){RVS.S.redoList=[],RVS.C.redo.innerHTML=""},RVS.F.undo=function(e){var t;if((void 0===e||1<=e.step)&&(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"})}V({todo:t,dir:"undo"}),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||1<=e.step)&&(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"})}V({todo:t,dir:"redo"}),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 RVS.C.undo.innerHTML="",RVS.C.redo.innerHTML="",RVS.S.undoList)0<RVS.S.undoList.length&&void 0!==RVS.S.undoList[e]&&RVS.C.undo.appendChild(RVS.S.undoList[e].stepElement);for(var t in RVS.S.redoList)0<RVS.S.redoList.length&&void 0!==RVS.S.redoList[t]&&RVS.C.redo.prepend(RVS.S.redoList[t].stepElement);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,RVS.S.icon_overwrite="true"==e.overwrite||1==e.overwrite,"#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)RVS.LIB.OBJ.items.fonticons.hasOwnProperty(e)&&void 0!==(e=RVS.LIB.OBJ.items.fonticons[e]).tags&&(void 0===RVS.C[e.tags[0]]&&(RVS.C[e.tags[0]]=jQuery('<div id="font_icon_subcontainer_'+e.tags[0]+'" class="font_icon_subcontainer"><div class="font_icon_subcontainer_title">'+e.tags[0]+"</div></div>"),RVS.F.list.append(RVS.C[e.tags[0]])),"MaterialIcons"===e.tags[0]?RVS.C[e.tags[0]].append('<i data-title="'+e.title+'" data-fonticon="true" class="material-icons">'+e.handle.replace(".","")+"</i>"):RVS.C[e.tags[0]].append('<i data-title="'+e.title+'" data-fonticon="true" class="'+e.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(){var e;1<this.value.length?(RVS.F.list.scrollTop(0),e=this.value.toLowerCase(),RVS.F.list.find("i").each(function(){0<=this.dataset.title.toLowerCase().indexOf(e)?this.style.display="inline-block":this.style.display="none"})):RVS.F.list.find("i").each(function(){this.style.display="inline-block"})}),jQuery(document.body).on("click",function(e){if(RVS.F.open&&"rs_iconselector_search"!==e.target.id)if(e.target.dataset.fonticon)RVS.S.icon_shortreturn?RVS.F.insertinto.val(e.target.className):RVS.S.icon_overwrite?RVS.F.insertinto.val('<i class="'+e.target.className+'">'+("material-icons"===e.target.className?e.target.innerHTML:"")+"</i>"):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(!(0<jQuery(e.target).closest("#rs_iconselector_inner").length))return RVS.F.open=!1,RVS.F.container.hide(),!1}))},RVS.DOC.on("addIcontoTextLayer",function(e,t){RVS.F.initIconPicker();t=t.event.currentTarget.dataset;RVS.F.showIconPicker({parent:t.iconparent,classlist:t.classlist,insertinto:t.insertinto,overwrite:t.overwrite,closeafterpick:t.closeafterpick,shortreturn:t.shortreturn})}),RVS.F.addBodyClickListener=function(e){jQuery(document.body).on("click.revbuilderbodyclick",function(e){if(void 0!==RVS.S.waitOnFeedback&&void 0!==RVS.S.waitOnFeedback.allowed){var t,i=!1;for(t in RVS.S.waitOnFeedback.allowed)RVS.S.waitOnFeedback.allowed.hasOwnProperty(t)&&(i=!0===i||0<=jQuery.inArray(RVS.S.waitOnFeedback.allowed[t],e.target.classList));if(!i)return void 0!==RVS.S.waitOnFeedback.closeEvent&&RVS.DOC.trigger(RVS.S.waitOnFeedback.closeEvent),RVS.S.waitOnFeedback=void 0,jQuery(document.body).off("click.revbuilderbodyclick"),!1}})},RVS.F.findUndefineds=function(e,t){for(var i in t=void 0===t?"ROOT":t,e)e.hasOwnProperty(i)&&("object"==typeof e[i]?RVS.F.findUndefineds(e[i],t+"."+i):void 0===e[i]&&console.log(t+"."+i+"="+t+"."+i+'===undefined ? "" : '+t+"."+i+";"))},RVS.F.dragMe=function(i){i.element.data("dragstart",{top:"auto",left:"auto",right:"auto",bottom:"auto"}),i.element.draggable({start:function(e,t){RVS.F.openBackupGroup({id:"elementmovement",txt:"Move "+i.element.attr("id"),icon:"open_with"}),RVS.F.updateContentDeltas(),RVS.S.click.y=e.clientY,RVS.S.click.x=e.clientX,d=[],i.mem={x:0,y:0},i.revert={x:"auto"===this.style.left?-1:1,y:"auto"===this.style.top?-1:1},void 0!==i.input&&void 0!==i.input.x&&(i.mem.x=parseInt(i.input.x.val(),0)),void 0!==i.input&&void 0!==i.input.y&&(i.mem.y=parseInt(i.input.y.val(),0)),i.attribute=void 0===i.attribute?{x:"",y:""}:i.attribute,i.attribute.x=""===i.attribute.x||void 0===i.attribute.x?i.input.x.data("r"):i.attribute.x,i.attribute.y=""===i.attribute.y||void 0===i.attribute.y?i.input.y.data("r"):i.attribute.y,i.pos={x:0,y:0},d.push(i),RVS.C.vW.classList.remove("mode__slidelayout"),RVS.C.vW.classList.add("mode__navlayout"),RVS.F.openSettings({forms:i.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,d){var a;d.hasOwnProperty(i)&&(a=void 0,(a=d[i]).pos.x=a.mem.x+a.revert.x*RVS.S.DaD.dragdelta.x,a.pos.y=a.mem.y+a.revert.y*RVS.S.DaD.dragdelta.y,a.updateInput&&(void 0!==a.input&&void 0!==a.input.x&&a.input.x.val(a.pos.x),void 0!==a.input)&&void 0!==a.input.y&&a.input.y.val(a.pos.y),RVS.F.updateSliderObj({path:a.attributeRoot+a.attribute.x,val:a.pos.x}),RVS.F.updateSliderObj({path:a.attributeRoot+a.attribute.y,val:a.pos.y}),void 0!==a.callEvent)&&jQuery(document.body).trigger(a.callEvent,a.callEventParam)}t.position={}},stop:function(e,t){RVS.F.closeBackupGroup({id:"elementmovement",txt:"Move "+i.element.attr("id"),icon:"open_with"})}})},RVS.F.updateFormPositions=function(r){null!==r.jf&&void 0!==r.jf&&requestAnimationFrame(function(){if(!0===r.uncollapse||"true"===r.uncollapse){var e=RVS.F.closestClass(r.jf,"form_collector"),t=RVS.C.theRightToolbar[0].querySelectorAll(".form_collector .formcontainer");if("form_collector_layerlist"!==e.id)for(var i in t){if(!t.hasOwnProperty(i)||"form_layerlist"===t[i].id||null==t[i].offsetParent)continue;t[i].classList.add("collapsed")}r.jf.classList.remove("collapsed")}var a,o;if(void 0!==r.jf.dataset.unselect)for(o in a=document.querySelectorAll(r.jf.dataset.unselect))a.hasOwnProperty(o)&&a[o].classList.remove("selected");if(void 0!==r.jf.dataset.select)for(o in a=document.querySelectorAll(r.jf.dataset.select))a.hasOwnProperty(o)&&a[o].classList.add("selected");RVS.DOC.trigger("scrollUpdates")})},RVS.F.showForms=function(e,t){var i,a=e.split(":");for(i 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,0<=a[0].indexOf("*sliderlayout*")&&"sliderlayout"!==RVS.S.vWmode&&(e=RVS.S.vWmode,RVS.F.mainMode({mode:"sliderlayout"}),RVS.eMode.top="slider","navlayout"===e)&&requestAnimationFrame(function(){RVS.F.showWaitAMinute({fadeIn:0}),RVS.F.drawHTMLLayers(),RVS.F.showWaitAMinute({fadeOut:100})}),0<=a[0].indexOf("*navlayout*")&&"navlayout"!==RVS.S.vWmode&&(RVS.F.mainMode({mode:"navlayout"}),RVS.eMode.top="navigation"),0<=a[0].indexOf("*slidelayout*")&&"slidelayout"!==RVS.S.vWmode&&(RVS.F.mainMode({mode:"slidelayout"}),RVS.eMode.top="slide"),0<=a[0].indexOf("*mode__slidestyle*")&&(RVS.DOC.trigger("changeToSlideMode"),RVS.eMode.top="slide"),0<=a[0].indexOf("*mode__slidecontent*")&&(RVS.DOC.trigger("changeToLayerMode"),RVS.eMode.top="layer"),a)a.hasOwnProperty(i)&&(a[i]=a[i].replace("*sliderlayout*",""),a[i]=a[i].replace("*navlayout*",""),a[i]=a[i].replace("*slidelayout*",""),a[i]=a[i].replace("*mode__slidestyle*",""),a[i]=a[i].replace("*mode__slidecontent*",""));if(""!==a[0]&&(RVS.eMode.menu=a[0]),void 0!==RVS.S.sliderInputFieldsInitialised||"static"!==window.lastSlideSettingForm&&("slider"!==RVS.eMode.top&&""!==RVS.eMode.top||"#form_module_title"==RVS.eMode.menu)&&"navigation"!==RVS.eMode.top||""===RVS.eMode.menu||RVS.F.updateSliderInputFields(!0),void 0===RVS.S.layerInputFieldsInitialised&&"layer"===RVS.eMode.top&&RVS.F.updateLayerInputFields(!0),void 0===RVS.S.slideInputFieldsInitialised&&"slide"===RVS.eMode.top&&RVS.F.updateSlideInputFields(!0),void 0!==a[0]&&0<a[0].length&&RVS.F.updateFormPositions({jf:document.querySelector(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&&void 0!==RVS.L[RVS.selLayers[0]]&&"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")):(1<=RVS.selLayers.length&&void 0!==RVS.L[RVS.selLayers[0]]&&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 o in RVS.selLayers)RVS.selLayers.hasOwnProperty(o)&&RVS.F.drawHTMLLayer({uid:RVS.selLayers[o]});"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(){var e="slider"===RVS.eMode.top?document.querySelector(".general_submodule_trigger.selected .gso_title"):"navigation"===RVS.eMode.top?document.querySelector(".nav_submodule_trigger.selected .gso_title"):"slide"===RVS.eMode.top?document.querySelector(".slide_submodule_trigger.selected .gso_title"):document.querySelector(".layer_submodule_trigger.selected .gso_title");null!==e&&(RVS.eMode.stickyLeft.textContent=e.textContent,RVS.eMode.stickyLeft.classList.remove("purple"),void 0!==e.dataset.stickycolor)&&"purple"===e.dataset.stickycolor&&RVS.eMode.stickyLeft.classList.add("purple"),RVS.eMode.stickyRight.innerHTML=RVS.eMode.top?RVS_LANG["sticky_"+RVS.eMode.top]:RVS_LANG.sticky_slide},50),RVS.F.manageShapeContentShow()},RVS.F.manageShapeContentShow=function(){requestAnimationFrame(function(){"#form_layer_content"==RVS.eMode.menu?RVS.C.theRightToolbar[0].classList.add("_layer_content_selected_"):RVS.C.theRightToolbar[0].classList.remove("_layer_content_selected_")})},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?0<e.btn.closest(".markable").length?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.classList.remove("mode__sliderlayout"),RVS.C.vW.classList.remove("mode__slidelayout"),RVS.C.vW.classList.remove("mode__navlayout"),RVS.S.vWmode=e.mode,!0!==e.ignoreReDraw&&RVS.DOC.trigger("beforeLayoutModeChange"),e.mode){case"navlayout":RVS.C.vW.classList.add("mode__navlayout"),RVS.F.redrawAllNavigationContainer();break;case"sliderlayout":RVS.C.vW.classList.add("mode__sliderlayout"),RVS.F.redrawAllNavigationContainer();break;case"slidelayout":RVS.C.vW.classList.add("mode__slidelayout"),void 0!==e.slide?RVS.F.setSlideFocus({slideid:e.slide,ignoreUpdateFields:e.ignoreUpdateFields}):RVS.F.updateAllHTMLLayerPositions()}e.set&&void 0!==e.forms&&RVS.F.openSettings({forms:e.forms,uncollapse:e.uncollapse})},RVS.F.setInputTo=function(e){var t=document.getElementById(e.field.replace("#",""));RVS.F.updateEasyInput({el:t,nval:e.val,path:e.path}),"checkbox"===t.type&&RVS.F.turnOnOffVisUpdate({input:t}),t.dispatchEvent(new Event("change",{bubbles:!0}))},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.removeAllOptionsS2=function(e){void 0!==e&&void 0!==e.select&&(e.select.find("option").remove(),e.select.hasClass("nosearchbox"))&&e.select.ddTP("change").ddTP({placeholder:"Enter or Select"})},RVS.F.addOptionS2=function(e){return void 0!==e.val&&void 0!==e.select&&!(0<e.select.find('option[value="'+e.val+'"]').length)&&(e.select.append('<option value="'+e.val+'">'+e.txt+"</option>"),void(e.select.hasClass("nosearchbox")&&e.select.ddTP("change").ddTP({placeholder:"Enter or Select"})))},RVS.F.addOrSelectOption=function(e){if(void 0===e.val||void 0===e.select)return!1;0<e.select.find('option[value="'+e.val+'"]').length&&!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.ddTP({placeholder:"Select From List"}))},RVS.F.setS2Option=function(e){void 0!==e&&(void 0!==e.enableValue&&e.select.find('option[value="'+e.enableValue+'"]').prop("disabled",!1),void 0!==e.disableValue&&e.select.find('option[value="'+e.disableValue+'"]').prop("disabled","disabled"),void 0!==e.selectValue&&(e.select[0].value=e.selectValue),e.select.hasClass("nosearchbox")&&e.select.ddTP("change").ddTP({placeholder:"Enter or Select"}),!0===e.update)&&RVS.F.updateEasyInput({el:e.select[0],path:e.path})},RVS.F.setRadio=function(e){var t;void 0!==e&&void 0!==e.radio&&void 0!==e.radioValue&&((t=jQuery('input:radio[name="'+e.radio+'"]').filter('[value="'+e.radioValue+'"]')).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){if(-1==e.parentNode.className.indexOf("input_presets_wrap")){var t,i,a,o,r=RVS.F.cE({cN:"input_presets_wrap"}),s=RVS.F.cI({cN:"input_presets_dropdown",c:"more_vert"}),n=RVS.F.cE({cN:"input_presets"}),d=e.dataset.presets_val.split("!"),l=e.dataset.presets_text.split("!");for(t in l)l.hasOwnProperty(t)&&(i=0<=l[t].indexOf("$$")?"ipwborder":"",o=2<(a=l[t].split("$")).length&&0<a[2].length,i=RVS.F.cE({cN:"input_preset "+i,ds:{iid:e.id,r:e.dataset.r,val:d[t]}}),o?(o=RVS.F.cI({c:window.RS_PRESETS[a[1]]}),i.innerText=a[2],i.prepend(o)):i.innerText=l[t],n.appendChild(i));r.appendChild(s),r.appendChild(n),(r=e.parentNode.insertBefore(r,e)).appendChild(e)}},RVS.F.initInputsWithPresets=function(e){void 0===e&&jQuery(".input_with_presets").each(function(){RVS.F.prepareOneInputWithPresets(this)})},RVS.F.createSelectOptions=function(i){void 0===(c=void 0===c?{}:c)[i.ctype]?(c[i.ctype]=[],RVS.F.ajaxRequest("get_list_of",{type:i.ctype},function(e){if(e.pages)for(var t in e.pages)e.pages.hasOwnProperty(t)&&c[i.ctype].push({id:t,slug:e.pages[t].slug,title:e.pages[t].title});if(e.sliders)for(var t in e.sliders)e.sliders.hasOwnProperty(t)&&c[i.ctype].push({id:t,slug:e.sliders[t].slug,title:e.sliders[t].title,type:e.sliders[t].type,subtype:e.sliders[t].subtype});if(e.posttypes)for(var t in e.posttypes)e.posttypes.hasOwnProperty(t)&&c[i.ctype].push({slug:e.posttypes[t].slug,title:e.posttypes[t].title});i.select.innerHTML=f({array:c[i.ctype],type:i.select.dataset.valuetype,preselected:i.select.value,filter:i.select.dataset.filter,subfilter:i.select.dataset.subfilter}),jQuery(i.select).ddTP({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>')):(i.select.innerHTML=f({array:c[i.ctype],type:i.select.dataset.valuetype,preselected:i.select.value,filter:i.select.dataset.filter,subfilter:i.select.dataset.subfilter}),jQuery(i.select).ddTP({placeholder:"Select From List"}),RVS.F.updateSelectsWithSpecialOptions())},RVS.F.getCustomPostTypes=function(i){if(void 0!==RVS.LIB.POST_TYPES)return i&&i(),RVS.LIB.POST_TYPES;RVS.LIB.POST_TYPES=[],RVS.F.ajaxRequest("get_list_of",{type:"posttypes"},function(e){if(e.posttypes)for(var t in e.posttypes)e.posttypes.hasOwnProperty(t)&&RVS.LIB.POST_TYPES.push({slug:e.posttypes[t].slug,title:e.posttypes[t].title,tax:e.posttypes[t].tax});return i&&i(),RVS.LIB.POST_TYPES})},RVS.F.updateSelectsWithSpecialOptions=function(){if(void 0===e?e={listofselects:document.getElementsByClassName("select_of_customlist"),curindex:0}:e.curindex++,e.curindex>=e.listofselects.length)return delete e,!0;RVS.F.createSelectOptions({ctype:e.listofselects[e.curindex].dataset.ctype,select:e.listofselects[e.curindex]})},RVS.F.noGradient=function(e){return-1==e.indexOf("slide.bg.color")&&-1==e.indexOf("slider.bg.color")&&-1==e.indexOf(".progressbar.color")&&(0<=e.indexOf(".color")||0<=e.indexOf(".borderColor")||0<=e.indexOf(".strokeColor"))},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=0<=t.currentInput[0].className.indexOf("layerinput")?"layer":0<=t.currentInput[0].className.indexOf("sliderinput")?"slider":0<=t.currentInput[0].className.indexOf("navstyleinput")?"navstyle":0<=t.currentInput[0].className.indexOf("slideinput")?"slide":"na";if("na"!=i&&void 0!==t.currentInput[0].dataset.r){var a=[],o=(o=RVS.F.getConcVals(t.currentInput[0].dataset.r,RVS.screen)).replace("slider.","");switch(i){case"layer":for(var r in RVS.selLayers)RVS.selLayers.hasOwnProperty(r)&&a.push({inpname:t.currentInput[0].name,r:RVS.S.slideId+".layers."+RVS.selLayers[r]+"."+o,layer:RVS.selLayers[r],slide:RVS.S.slideId,type:"layer"});break;case"slide":a.push({inpname:t.currentInput[0].name,r:RVS.S.slideId+".slide."+o,slide:RVS.S.slideId,type:"slide"});break;case"slider":a.push({inpname:t.currentInput[0].name,r:"settings."+o,type:"slider"});break;case"navstyle":a.push({inpname:t.currentInput[0].name,r:o,type:"navstyle",evtparam:t.currentInput[0].dataset.evtparam})}RVS.F.checkGlobalSkinAvail(),jQuery.rsColorPickerApi.showGlobal(t,RVS.SLIDER.settings.skins.colors,a)}}}),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,i,a=[];for(t in RVS.SLIDER.settings.skins.colors[e].ref)RVS.SLIDER.settings.skins.colors[e].ref.hasOwnProperty(t)&&(void 0!==(i=RVS.SLIDER.settings.skins.colors[e].ref[t]).slide&&void 0===RVS.SLIDER[i.slide]||(void 0===i.layer||void 0!==RVS.SLIDER[i.slide]&&void 0!==RVS.SLIDER[i.slide].layers&&void 0!==RVS.SLIDER[i.slide].layers[i.layer])&&a.push(i));RVS.SLIDER.settings.skins.colors[e].ref=a}},RVS.F.initTpColorBoxes=function(e){jQuery(e).rsColorPicker({init:function(e,t,i,a){var o=document.createElement("input");o.type="text",o.className="layerinput",e[0].appendChild(o),t.data("ghost",o)},onRefresh:function(e,t,i,a){e.data("ghost").value=t},onEdit:function(e,t,i,a){e.data("ghost").value=t;i=void 0!==i&&void 0!==a&&-1!==a&&void 0!==i[a]?i[a]:void 0;void 0!==i&&(i.v=t),RVS.DOC.trigger("coloredit",[e,t,void 0,void 0,void 0!==i?i:0<e[0].className.indexOf("skininput")?RVS.SLIDER.settings.skins.colors[e[0].dataset.evtparam]:void 0])},change:function(e,t,i,a,o){e.data("ghost").value=t;var r,s=void 0!==a?a:0<e[0].className.indexOf("skininput")?jQuery.extend(!0,{},RVS.SLIDER.settings.skins.colors):void 0,n=!1;void 0!==s&&(void 0!==s[o=-1==o||void 0===o?e[0].dataset.evtparam:o]&&(s[o].v=t),RVS.F.openBackupGroup({id:"colorchange",txt:void 0!==s[o]?s[o].alias+" Skin Change":("layerTextColorHover"===(r=e[0].name)?"Layer Hover Color":"layerTextColor"===r?"Layer Color":"layerTextColorInFrame"===r?"Layer Color in Frame":"frameColorAnimation"===r?"Layer Color Animation":"frameBGColorAnimation"===r||"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"}),n=!0,RVS.F.updateSliderObj({path:"settings.skins.colors",val:jQuery.extend(!0,{},void 0===a?s:a)}),s=s[o]),RVS.DOC.trigger("coloredit",[e,t,i,!0,s]),void 0===s&&!n||setTimeout(function(){RVS.F.closeBackupGroup({id:"colorchange"})},500)},cancel:function(e,t,i,a,o){e.data("ghost").value=t;a=void 0!==a&&void 0!==o&&-1!==o&&void 0!==a[o]?a[o]:void 0;void 0!==a&&(a.v=t),RVS.DOC.trigger("colorcancel",[e,t,void 0,void 0,void 0!==a?a:0<e[0].className.indexOf("skininput")?RVS.SLIDER.settings.skins.colors[e[0].dataset.evtparam]:void 0])}})},RVS.F.createWPMLOptions=function(e){var t,i=document.createDocumentFragment();if("undefined"!=typeof RS_WPML_LANGS&&void 0!==RS_WPML_LANGS){for(var a in RS_WPML_LANGS)RS_WPML_LANGS.hasOwnProperty(a)&&((t=RVS.F.CO(a,RS_WPML_LANGS[a].title)).dataset.src=RS_WPML_LANGS[a].image,i.appendChild(t));e.appendChild(i)}},RVS.F.convertEase=function(e){return e=0<=(e="none"===(e=void 0===e?"power2.inOut":e)?"none":"slow"===e?"slow":e.replace("easeIn","in").replace("easeOut","out").replace("easeInOut","inOut")).indexOf(".")?e.charAt(0).toLowerCase()+e.slice(1):e},RVS.F.createEaseOptions=function(e){if(e=void 0===e.innerHTML?e[0]:e,void 0===o||""===o)for(var t in o=document.createDocumentFragment(),window.RS_EASES)window.RS_EASES.hasOwnProperty(t)&&o.appendChild(RVS.F.CO(t,window.RS_EASES[t]));void 0!==e.dataset&&"true"==e.dataset.inherit&&o.appendChild(RVS.F.CO("inherit","Inherit")),e.appendChild(o.cloneNode(!0))},RVS.F.createSlideAnimOptions=function(e){var t,i;if(e=void 0===e.innerHTML?e[0]:e,void 0===r||""===r)for(i in(r=document.createDocumentFragment()).appendChild(document.createElement("option")),RVS.LIB.SLTR)if(RVS.LIB.SLTR.hasOwnProperty(i)&&"random"!==i&&"custom"!==i)for(var a in RVS.LIB.SLTR[i])if(RVS.LIB.SLTR[i].hasOwnProperty(a)&&"icon"!=a&&"eclass"!=a){for(var o in(t=document.createElement("optgroup")).label=(void 0===RVS_LANG["sltr_"+i]?i:RVS_LANG["sltr_"+i])+" "+(void 0===RVS_LANG["sltr_"+a]?a:RVS_LANG["sltr_"+a]),RVS.LIB.SLTR[i][a])t.appendChild(RVS.F.CO(o,(void 0===RVS_LANG["sltr_"+i]?"":RVS_LANG["sltr_"+i]+" ")+(o=RVS.LIB.SLTR[i][a][o].title,(o=o.replace("*north*","Up").replace("*south*","Down").replace("*swap_vert*","Vertical").replace("*swap_horiz*","Horizontal").replace("*east*","Right").replace("*east*","Right").replace("*add*","Zoom In").replace("*remove*","Zoom Out").replace("*west*","Left").split("*"))[o.length-1])));r.appendChild(t)}e.appendChild(r.cloneNode(!0))},RVS.F.createDottedOptions=function(e){if(e=void 0===e.innerHTML?e[0]:e,void 0===i||""===i){(i=document.createDocumentFragment()).appendChild(RVS.F.CO("none","No Overlay"));for(var t=1;t<17;t++)i.appendChild(RVS.F.CO(t,RVS_LANG["dov_"+t]))}e.appendChild(i.cloneNode(!0))},RVS.F.createSliderListOptions=function(e){if(e=void 0===e.innerHTML?e[0]:e,void 0===a||""===a)for(var t in a=document.createDocumentFragment(),RVS.LIB.SLIDERS)RVS.LIB.SLIDERS.hasOwnProperty(t)&&a.appendChild(RVS.F.CO(RVS.LIB.SLIDERS[t].alias,RVS.LIB.SLIDERS[t].title));e.appendChild(a.cloneNode(!0))},RVS.F.initialiseGlobalBoxes=function(e){jQuery(".tos2.slideAnimSelect").each(function(){RVS.F.createSlideAnimOptions(this)}),jQuery(".tos2.dottedoverlay").each(function(){RVS.F.createDottedOptions(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)}),"overview"===e&&(jQuery(".tos2.wpml_lang_selector").ddTP({placeholder:"Select From List",pre:'<span><img src="#data#" class="wpml-img-flag" />',preData:"src"}),jQuery(".tos2.nosearchbox").ddTP({placeholder:"Select From List"}),jQuery(".tos2.searchbox").ddTP({placeholder:"Enter or Select"})),jQuery("#tl_gridmanagement_wrap .tos2.nosearchbox").ddTP({placeholder:"Select From List"}),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.updateZoom=function(e){RVS.zoom=e<100?Math.round(100*(.5+.5*e/100))/100:Math.round(100*(1+(e-100)/100))/100,tpGS.gsap.set(RVS.C.UL,{scaleX:RVS.zoom,scaleY:RVS.zoom,transformOrigin:"0px 0px"}),RVS.C.zoomFactor.textContent=Math.round(100*RVS.zoom)+"%",RVS.F.updateContentDeltas(),RVS.F.buildRuler(!0),RVS.F.setRulers()},RVS.F.initialiseInputBoxes=function(e){RVS.DOC.on("gethtml5posterimage",function(e,t){RVS.F.videoExtract.get("slide"===t?RVS.SLIDER[RVS.S.slideId].slide.bg.mpeg:document.getElementById("layer_mpeg_src").value,function(e,t){RVS.F.setBGPosterImage(e.path,e.id,t)},"slide"===t?RVS.SLIDER[RVS.S.slideId].slide.bg.video.startAt:document.getElementById("layer_video_start").value,t)}),"overview"!==e&&(RVS.C.zoomTopWrap=document.getElementById("zoomer_wrap_toolbar"),RVS.C.zoomFactor=document.getElementById("zoomer_factor"),RVS.C.zoomPin=document.getElementById("ezoomer_pin"),jQuery(RVS.C.zoomPin).resizable({handles:"e",minWidth:"none",grid:[10,1],containment:"parent",start:function(){RVS.C.zoomTopWrap.classList.add("inzoommove")},stop:function(){RVS.C.zoomTopWrap.classList.remove("inzoommove")},resize:function(e,t){t.size.width<0&&(t.size.width=0),RVS.F.updateZoom(t.size.width)}}),RVS.DOC.on("click","#zoomer_wrap_toolbar .selected_placeholder",function(){RVS.F.updateZoom(100),RVS.C.zoomPin.style.width="100px"})),RVS.F.initialiseGlobalBoxes(e),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(document.body).trigger(t.evt,{event:e,val:this.value,eventparam:t.evtparam})}),RVS.DOC.on("active focus"," .rsdyn_inp",function(e){var t=RVS.F.closestNode(this,"ROW"),i=RVS.F.closestClass(this,"dyn_inp_wrap");null!=t&&t.classList.add("active_"+i.tagName.toLowerCase())}),RVS.DOC.on("blur"," .rsdyn_inp",function(e){var t=RVS.F.closestNode(this,"ROW");null!=t&&(t.classList.remove("active_onelong"),t.classList.remove("active_oneshort"))}),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(){var e;"###metapicker###"===this.dataset.val?RVS.DOC.trigger("addMetaToLayer",{eventparam:"#"+this.dataset.iid}):((e=jQuery("#"+this.dataset.iid)).val(this.dataset.val),e.trigger("change"),e.trigger("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(){0<=this.className.indexOf("icsw_on")?RVS.F.setInputTo({field:this.dataset.ref,val:!1}):RVS.F.setInputTo({field:this.dataset.ref,val:!0})}),RVS.DOC.on("click",".triggerEvent",function(e){var t=this.dataset;jQuery(document.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}),"redrawSelectedLayersInnerHTML"==this.dataset.evt&&RVS.F.redrawTextLayerInnerHTML(RVS.selLayers[0],!0)}),RVS.DOC.on("click",".screen_selector, .toolkit_selector, .eventcaller, .form_opener_btn, .collectortab, .opensettingstrigger, .extendval, .openmodaltrigger",function(e){0<=e.target.className.indexOf("tponoff")||0<=this.className.indexOf("ssnotavailable")||(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&&(e=jQuery(this.dataset.inp)).val(e.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&&(0<=this.className.indexOf("callEvent")||0<=this.className.indexOf("eventcaller"))&&jQuery(document.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")}),0<jQuery(".copyclipboard").length&&"undefined"!=typeof RSClipboard&&((e=new RSClipboard(".copyclipboard")).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)})),0<jQuery(".inputDatePicker").length&&jQuery(".inputDatePicker").datepicker({dateFormat:"dd-mm-yy 00:00"}),RVS.DOC.on("keydown",".valueduekeyboard",function(e,t){var i=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("click","#timline_process",function(){RVS.F.toggleTimeLine()}),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)){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 i=jQuery(this).data(),a=jQuery(i.target),o=0<=this.className.indexOf("layerinput");RVS.F.openAddVideoDialog(RVS_LANG.choose_video,function(e,t){void 0!==i.r?(RVS.F.openBackupGroup({id:"updateVideo",txt:"Update Video from Media Library",icon:"videocam"}),void 0!==i.rid&&RVS.F.updateSliderObj({path:i.rid,val:t}),RVS.F.updateSliderObj({path:i.r,val:e,evt:i.evt,evtparam:i.evtparam}),RVS.F.closeBackupGroup({id:"updateVideo"})):(void 0!==a&&(a.val(e),RVS.F.openBackupGroup({id:"updateVideo",txt:"Update Video from Media Library",icon:"videocam"}),a.trigger("change"),void 0===i.rid||o||RVS.F.updateSliderObj({path:i.rid,val:t}),0<RVS.selLayers.length&&o&&(RVS.F.updateLayerObj({path:"media.mediaType",val:void 0!==i.mediatype?i.mediatype:"html5"}),void 0!==i.rid&&o&&RVS.F.updateLayerObj({path:i.rid,val:t}),RVS.F.updateEasyInputs({container:jQuery(".layer_settings_collector"),path:RVS.S.slideId+".layers.",trigger:"init",multiselection:!0})),RVS.F.closeBackupGroup({id:"updateVideo"})),void 0!==i.evt&&RVS.DOC.trigger(i.evt,i.evtparam))})}),RVS.DOC.on("click",".getVideoFromObjectLibrary",function(){var e=jQuery(this),t=e.data();t.targetType=e.hasClass("layerinput")?"layer":e.hasClass("sliderinput")?"slider":"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})):"slide"===t.targetType?(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"})):(RVS.F.openBackupGroup({id:"videofromobjlibrary",txt:"Video from OBJ Library",icon:"videocam",lastkey:"mp4Url"}),RVS.F.updateSliderObj({path:"settings."+t.r+".image",val:t.img}),RVS.F.updateSliderObj({path:"settings."+t.r+".imageId",val:void 0}),RVS.F.updateSliderObj({path:"settings."+t.r+".imageLib",val:"objectlibrary"}),RVS.F.updateSliderObj({path:"settings."+t.r+".mpeg",val:t.video,evt:t.evt,evtparam:t.evtparam}),RVS.F.closeBackupGroup({id:"videofromobjlibrary"}),RVS.F.updateEasyInputs({container:jQuery(".slide_settings_collector"),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),i=e.data(),t="true"===this.dataset.multiple||1==this.dataset.multiple;i.targetType=e.hasClass("layerinput")?"layer":"slide",RVS.F.openAddImageDialog(RVS_LANG.choose_image,function(e,t){RVS.F.updateImageSrcFromMedia(i,e,t)},t)}),RVS.F.getMediaWithNewSize=function(t){jQuery(t.target);RVS.F.ajaxRequest("load_wordpress_image",{type:t.size,id:t.id},function(e){RVS.F.updateImageSrcFromMedia(t,e.url,t.id)},!1)},RVS.F.updateImageSrcFromMedia=function(e,t,i){void 0!==e.r?(t=t.split(" ").join("%20"),"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"}))):(void 0!==e.target&&""!==e.target&&((i=jQuery(e.target)).val(t),i.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(t){RVS.F.ajaxRequest("load_library_object",{type:t.size,id:t.url},function(e){e.success&&(t.img=e.url,RVS.DOC.trigger("updateImageSrcFromLibrary",t))})},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=0<=this.className.indexOf("layerinput")?"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",".getImageFromVimeo",function(){var t=jQuery(this).data(),i=jQuery(t.target),e=RVS.F.getDeepVal({path:t.f}),e=location.protocol+"//vimeo.com/api/v2/video/"+e+".json";jQuery.ajax({type:"GET",url:e,success:function(e){void 0!==t.r?(RVS.F.openBackupGroup({id:"UpdateLayerImage",txt:"Update Layer Image",icon:"photo"}),RVS.F.updateSliderObj({path:t.r,val:e[0].thumbnail_large,evt:t.evt,evtparam:t.evtparam}),void 0!==t.rid&&RVS.F.updateSliderObj({path:t.rid,val:"objectlibrary"}),RVS.F.closeBackupGroup({id:"UpdateLayerImage"})):(void 0!==i&&(i.val(e[0].thumbnail_large),i.trigger("change")),void 0!==t.evt&&RVS.DOC.trigger(t.evt,t.evtparam))}})}),RVS.DOC.on("click",".getImageFromYouTube",function(){var e=jQuery(this).data(),t=jQuery(e.target),i=RVS.F.getDeepVal({path:e.f}),i=location.protocol+"//img.youtube.com/vi/"+i+"/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))});e=jQuery(document.body).on("click",".form_menu_level_1_li, .form_menu_level_2_li",function(){var e=jQuery(this),t=e.closest(".form_menu_inside"),t=(e.siblings("li").removeClass("selected"),e.addClass("selected"),e.hasClass("form_menu_level_1_li")||t.find(".form_level_2_inner").hide().removeClass("open"),jQuery(e.data("target")));t.show().addClass("open"),RVS.F.updateFormPositions({jf:RVS.F.closestClass(e[0],"formcontainer"),uncollapse:!0}),void 0!==t.data("evt")&&RVS.DOC.trigger(t.data("evt"),t.data("evtparam"))});e.on("click",".form_intoaccordion",function(){var e=jQuery(this),t=e.closest(".form_inner"),i=e.closest(".formcontainer");if(0<t.length&&t.hasClass("open")||0===t.length&&!i.hasClass("collapsed"))return 0<(t=e).closest(".form_inner").length?t.closest(".form_inner").removeClass("open"):t.closest(".formcontainer").addClass("collapsed"),RVS.DOC.trigger("scrollUpdates"),RVS.DOC.trigger("accordionaction"),!1;void 0!==(i=e).data("trigger")&&jQuery(i.data("trigger")).trigger("click"),i.closest(".formcontainer").removeClass("collapsed"),RVS.DOC.trigger("scrollUpdates"),RVS.DOC.trigger("accordionaction")}),e.on("mouseenter",".form_intoaccordion",function(){this.parentNode.dataset.hovered="on"}),e.on("mouseleave",".form_intoaccordion",function(){this.parentNode.dataset.hovered="off"}),e.on("click",".triggerselect",function(){var e=jQuery(this).data(),t=jQuery(e.select);void 0!==t&&0<t.length&&t.val(e.val),t.trigger("change"),t.ddTP("change")}),e.on("click",".navaligntrigger",function(){var e,t,i=jQuery(this).data(),a=i.select.split(","),o=i.val.split(",");for(e in RVS.F.openBackupGroup({id:"NavigationAlign",txt:i.type+" Align",icon:"navigation",lastkey:"navigation"}),RVS.F.ignoreEventsOpen(),a)a.hasOwnProperty(e)&&void 0!==(t=jQuery(a[e]))&&0<t.length&&(0<o.length?t.val(o[e]):t.val(o[0]),t.trigger("change"));RVS.F.ignoreEventsClose(),RVS.F.closeBackupGroup({id:"NavigationAlign"}),RVS.DOC.trigger("sliderNavPositionUpdate",i.type)}),e.on("click",".progressbar_selector",function(){var e,t,i=jQuery(this).data(),a=i.select.split(","),o=i.val.split(",");for(e in RVS.F.openBackupGroup({id:"progressbar_selector",txt:i.type+" Align",icon:"navigation",lastkey:"navigation"}),RVS.F.ignoreEventsOpen(),a)a.hasOwnProperty(e)&&void 0!==(t=jQuery(a[e]))&&0<t.length&&(0<o.length?t.val(o[e]):t.val(o[0]),t.trigger("change"));RVS.F.ignoreEventsClose(),RVS.F.closeBackupGroup({id:"progressbar_selector"}),RVS.DOC.trigger("sliderProgressUpdate",i.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.C.toggledTextButton=document.getElementById("toggledtextbutton"),RVS.F.updateMetaTranslate();var t,i,a='<div id="mdl_group_images" class="mdl_group_wrap">',a=(a+='<div class="mdl_group">')+('<div class="mdl_group_header"><i class="material-icons">photo</i>'+RVS_LANG.featuredimages+'<i class="material-icons accordiondrop">arrow_drop_down</i></div>');for(t in RVS.ENV.img_sizes)RVS.ENV.img_sizes.hasOwnProperty(t)&&(a+='<div data-val="{{featured_image_url_'+(i=RVS.ENV.img_sizes[t].replace(" ","_").toLowerCase())+'}}" class="mdl_group_member"><div class="mdl_left_content"><i class="material-icons">photo</i>{{featured_image_url_'+i+'}}</div><div class="mdl_right_content">'+i+'</div><div class="mdl_placeholder_content">http://featured.img</div></div>');a+="</div></div>",jQuery("#meta_datas_list").append(jQuery(a)),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",void 0!==this.dataset.hidessm&&jQuery(this.dataset.hidessm+".selected").removeClass("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=1<(e=this.dataset.val.split(":")).length?e[0]+".*?}}":e[0];RVS.LIB.META[e]=jQuery(this).find(".mdl_placeholder_content").text()})},RVS.F.updatePostCategories=function(e){Array.isArray(e.postTypes)||(e.postTypes=e.postTypes.split(",")),Array.isArray(e.postTypes)||((t=[]).push(e.postTypes),e.postTypes=t);var t,i,a="";for(i in e.postTypes)if(e.postTypes.hasOwnProperty(i)){var o,r=RVS.LIB.POST_TYPES_CAT[e.postTypes[i]];for(o in r)r.hasOwnProperty(o)&&(a+="<option "+(0<=o.indexOf("option_disabled")?"disabled":"")+' value="'+o+'">'+r[o]+"</option>")}e.categories[0].innerHTML=a,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,i=0,a="";for(t in a+='<span class="int_inher_title">'+RVS_LANG.intinheriting+"</span>",RVS.V.sizes)RVS.V.sizes.hasOwnProperty(t)&&RVS.V.sizes[t]!==RVS.screen&&RVS.SLIDER.settings.size.custom[RVS.V.sizes[t]]&&(a=(a=(a+='<div style="white-space:nowrap"><i class="material-icons">')+("d"==RVS.V.sizes[t]?"desktop_mac":"n"==RVS.V.sizes[t]?"laptop":"t"==RVS.V.sizes[t]?"tablet_android":"phone_iphone")+"</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[t]})+"</span></div>",i++);0<i?(RVS.S.respInfoBar.toolbar[0].style.display="block",RVS.S.respInfoBar.toolbar[0].innerHTML=a,e=RVS.S.respInfoBar.field.offset(),RVS.S.respInfoBar.toolbar.width(),tpGS.gsap.set(RVS.S.respInfoBar.toolbar,{top:e.top,left:-85})):(RVS.S.respInfoBar.visible=!1,RVS.S.respInfoBar.toolbar[0].style.display="none")}},RVS.F.initCopyClipboard=function(e){0<jQuery(e).length&&-1==jQuery.inArray(e,p)&&((p=void 0===p?[]:p).push(e),(e=new RSClipboard(e)).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"})}),e.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){var t,i,a;null!==e.el&&(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.getPresetIcon=function(e){var t='<i class="material-icons preset_help_icon">';return e.replace("*",t).replace("*","</i>").replace("*",t).replace("*","</i>").replace("*",t).replace("*","</i>")},RVS.F.isOnList=function(e,t){if(void 0===e)return!1;if(Array.isArray(e))return 0<=jQuery.inArray(t,e);if(void 0!==e[t])return!0;var i,a=!1;for(i in e)e.hasOwnProperty(i)&&!1===a&&(a=e[i]===t||a);return a},RVS.F.showHidePresetFavorits=function(e,t){var i,a=RVS.S.allPresets[t];if(void 0!==a&&null!=e&&(Array.isArray(e)||"object"==typeof e)&&0!==e.length){var o,r,s={},n={};for(o in a)if(a.hasOwnProperty(o)&&"object"==typeof a[o])for(var d in void 0===s[o]&&(s[o]={show:!1,id:a[o].id}),a[o])if(a[o].hasOwnProperty(d)&&"object"==typeof a[o][d])for(var l in void 0===n[o+"_"+d]&&(n[o+"_"+d]={show:!1,id:a[o][d].id}),a[o][d].groups)a[o][d].groups.hasOwnProperty(l)&&null!=(i=document.getElementById(a[o][d].groups[l].id))&&(RVS.F.isOnList(e,l)?(s[o].show=!0,n[o+"_"+d].show=!0,i.classList.add("prs_is_favorit")):i.classList.remove("prs_is_favorit"));for(r in s)null!=(i=document.getElementById(s[r].id))&&(s[r].show?i.classList.add("prs_is_favorit"):i.classList.remove("prs_is_favorit"));for(r in n)null!=(i=document.getElementById(n[r].id))&&(n[r].show?i.classList.add("prs_is_favorit"):i.classList.remove("prs_is_favorit"))}},RVS.F.createPresets=function(a){a.groupid=void 0===a.groupid?"preset_list_"+Math.round(1e5*Math.random()):a.groupid,a.groupclass=void 0===a.groupclass?"pres_list_group_"+Math.round(1e5*Math.random()):a.groupclass,a.maingrpclass=void 0===a.maingrpclass?"preslisinner_"+Math.round(1e5*Math.random()):a.maingrpclass,a.ref=void 0===a.ref?Math.round(1e5*Math.random()):a.ref,RVS.S.allPresets=void 0===RVS.S.allPresets?{}:RVS.S.allPresets,RVS.S.allPresets[a.maingrpclass]=void 0===RVS.S.allPresets[a.maingrpclass]?{}:RVS.S.allPresets[a.maingrpclass],RVS.S.allPresets[a.maingrpclass][a.ref]=void 0===RVS.S.allPresets[a.maingrpclass][a.ref]?{}:RVS.S.allPresets[a.maingrpclass][a.ref];var e,t='<div id="'+(void 0===a.groupid?"":a.groupid)+'" class="'+(void 0!==a.eclass?" "+a.eclass:"")+(a.modern?" modern_presets ":" ")+"presets_liste "+(void 0===a.groupclass?"":a.groupclass)+'">',i="",o=void 0===a.prefix?"":a.prefix+"_";for(e in RVS.S.allPresets[a.maingrpclass][a.ref].id=a.groupid,t+='\t<div class="presets_liste_head" data-samemaingroups="'+(void 0!==a.maingrpclass?a.maingrpclass:"")+'" data-igroup="inner_'+(void 0===a.groupid?"":a.groupid)+'" data-samegroups="'+(void 0===a.groupclass?"":a.groupclass)+'"><i class="selected_preset material-icons">check</i>'+(a.modern?'<i class="presets_liste_icon material-icons">'+a.icon+"</i>":"")+'<span class="presets_liste_title">'+a.title+'</span><i class="right-divided-icon material-icons">arrow_drop_down</i></div>',i+='\t<div class="presets_liste_inner'+(void 0!==a.eclass?" "+a.eclass:"")+(a.modern?" modern_preset_list":"")+(void 0!==a.maingrpclass?" "+a.maingrpclass:"")+'" id="inner_'+(void 0===a.groupid?"":a.groupid)+'">',a.groups)if(a.groups.hasOwnProperty(e)&&"grp_title"!=e&&"icon"!=e&&"noSubLevel"!==e&&"eclass"!==e){for(var r in RVS.S.allPresets[a.maingrpclass][a.ref][e]={id:a.groupid+"_"+e,class:a.groups[e].custom||"custom"===e?"custompresetgroup ":""},i=(i+='<div id="'+a.groupid+"_"+e+'" class="presetssgroup '+(a.groups[e].custom||"custom"===e?"custompresetgroup ":"")+" "+(""+a.groups.noSubLevel=="true"?"nosubpresetlevel ":"")+'">')+('\t<div class="presetssgroup_head"><span class="presetssgroup_name">'+a.groups[e].title+'</span><div class="animation_drop_arrow"><i class="material-icons">arrow_drop_down</i></div></div>')+'\t<div class="presets_listelements">',"custom"===e&&(i+='<div data-evt="'+a.customevt+'" data-key="custom" data-grpid="'+a.groupid+'" data-grp="'+e+'" class="'+o+'presetelement presets_listelement dark_btn"><span class="cla_custom_name">'+RVS_LANG.savecurrenttemplate+'</span><input type="text" value="custom" class="cla_entername"><div class="custom_layer_animation_toolbar"><i data-evt="'+a.customevt+'" class="cla_answer_yes material-icons">done</i><i data-evt="'+a.customevt+'" class="cla_answer_no material-icons">close</i><i class="add_custom_layeranimation material-icons">add</i></div></div>'),a.groups[e].elements)a.groups[e].elements.hasOwnProperty(r)&&(RVS.S.allPresets[a.maingrpclass][a.ref][e].groups=void 0===RVS.S.allPresets[a.maingrpclass][a.ref][e].groups?{}:RVS.S.allPresets[a.maingrpclass][a.ref][e].groups,RVS.S.allPresets[a.maingrpclass][a.ref][e].groups[r]={id:a.groupid+"_"+e+"_"+r},i+="custom"===e?'<div id="'+a.groupid+"_"+e+"_"+r+'" data-key="custom_'+o+r+'" data-grpid="'+a.groupid+'" data-main="'+a.groups[e].elements[r].main+'" data-grp="'+e+'" data-custom="true" data-evt="'+a.customevt+'" class="presets_listelement dark_btn"><span class="cla_custom_name">'+a.groups[e].elements[r].title+'</span><div class="cla_message">'+RVS_LANG.overwritetemplate+'</div><input data-evt="'+a.customevt+'" type="text" value="'+a.groups[e].elements[r].title+'" class="cla_entername"><div class="custom_layer_animation_toolbar"><i data-evt="'+a.customevt+'" class="cla_answer_yes material-icons">done</i><i data-evt="'+a.customevt+'" class="cla_answer_no material-icons">close</i><i data-evt="'+a.customevt+'" class="edit_custom_layeranimation material-icons">edit</i><i data-evt="'+a.customevt+'" class="save_custom_layeranimation material-icons">save</i><i data-evt="'+a.customevt+'" class="delete_custom_layeranimation material-icons">delete</i></div></div>':'<div id="'+a.groupid+"_"+e+"_"+r+'" data-key="'+o+r+'" data-grpid="'+a.groupid+'" data-main="'+a.groups[e].elements[r].main+'" data-grp="'+e+("undefined"!==a.groups[e].elements[r].rndgrp?'" data-rndgrp="'+a.groups[e].elements[r].rndgrp+'"':"")+("undefined"!==a.groups[e].elements[r].rndmain?'" data-rndmain="'+a.groups[e].elements[r].rndmain+'"':"")+' class="'+o+'presetelement presets_listelement dark_btn">'+RVS.F.getPresetIcon(a.groups[e].elements[r].title)+(void 0!==a.favoriteAjax?'<i data-key="'+o+r+'" class="material-icons preset_favorite">'+(RVS.F.isOnList(a.favoriteList,o+r)?"star":"star_outline")+"</i>":"")+"</div>");i=i+"\t</div>"+"</div>"}return i+="\t</div>",void 0===RVS.S.allPresets[a.maingrpclass].clickListener&&(RVS.S.allPresets[a.maingrpclass].clickListener=!0,RVS.DOC.on("click","."+a.maingrpclass+" .presets_listelement",function(){var e;if("custom"===this.dataset.key)return e=jQuery(this),this.dataset.mode="create",e.addClass("cla_showentername"),e.find("input").trigger("focus").trigger("select"),RVS.S.waitOnFeedback={allowed:["cla_entername","cla_answer_yes","cla_answer_no"],closeEvent:"hideCustomLayerNameEntering"},RVS.F.addBodyClickListener(),!1;0<=this.className.indexOf("cla_showentername")||a.onclick(this.dataset.key,this.dataset.custom,this.dataset.main,this.dataset.sub,this.dataset.rndgrp,this.dataset.rndmain)})),a.favoriteAjax&&void 0===RVS.S.allPresets[a.maingrpclass].favListener&&(RVS.S.allPresets[a.maingrpclass].favListener=!0,RVS.DOC.on("mouseenter","."+a.maingrpclass+" .presets_listelement",function(){this.offsetLeft<140?(this.classList.add("favleft"),this.classList.remove("favright")):(this.classList.add("favright"),this.classList.remove("favleft"))}),RVS.DOC.on("click","."+a.maingrpclass+" .preset_favorite",function(){var e,t=RVS.F.isOnList(a.favoriteList,this.dataset.key);if(this.innerHTML=t?"star_outline":"star",t){if(Array.isArray(a.favoriteList)){var i=jQuery.inArray(this.dataset.key,a.favoriteList);a.favoriteList.splice(i,1)}else{for(e in a.favoriteList)a.favoriteList[e]==this.dataset.key&&(i=e);void 0!==i&&delete a.favoriteList[i]}RVS.F.showHidePresetFavorits(a.favoriteList,a.maingrpclass)}else Array.isArray(a.favoriteList)?a.favoriteList.push(this.dataset.key):a.favoriteList[this.dataset.key]=this.dataset.key;return RVS.F.ajaxRequest("set_favorite",{do:t?"remove":"add",type:a.favoriteAjax,id:this.dataset.key},function(e){e.success}),!1})),S||(RVS.DOC.on("click",".presets_liste_head",function(){var e=0<=this.parentElement.className.indexOf("open"),t=document.getElementById(this.dataset.igroup);void 0!==this.dataset.samegroups&&""!==this.dataset.samegroups&&jQuery("."+this.dataset.samegroups).removeClass("open"),void 0!==this.dataset.samemaingroups&&""!==this.dataset.samemaingroups&&jQuery("."+this.dataset.samemaingroups).removeClass("open"),e?(this.parentElement.classList.remove("open"),t.classList.remove("open")):(this.parentElement.classList.add("open"),t.classList.add("open"))}),RVS.DOC.on("click",".presetssgroup_head",function(){var e=0<=this.parentElement.className.indexOf("open");jQuery(this).closest(".presets_liste").find(".presetssgroup.open").removeClass("open"),e?this.parentElement.classList.remove("open"):this.parentElement.className+=" open"}),S=!0),a.modern?{inner:i,main:t+"</div>"}:t+i+"</div>"},RVS.F.createMetaGroups=function(e){var t,i,a,o=0!==jQuery("#"+e.id).length,r=o?jQuery("#"+e.id):jQuery('<div id="'+e.id+'" class="mdl_group"></div>');for(t in e.title=void 0===RVS_LANG[e.id]?e.id:RVS_LANG[e.id],o||r.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)e.actions.hasOwnProperty(t)&&(a=void 0!==(i=e.actions[t]).title?i.title:void 0===RVS_LANG["metadata_"+i.val]?i.val:RVS_LANG["metadata_"+i.val],i.inputs=void 0===i.inputs?"":i.inputs,i.inputs=!0===i.layerTarget?"#la_settings_layertarget"+(0<i.inputs.length?", "+i.inputs:""):i.inputs,r.append('<div data-val="'+i.val+'" id="metadata_picker_'+i.val+'" data-inputs="'+i.inputs+'" class="mdl_group_member" data-val="'+i.val+'"><i class="material-icons">'+e.icon+"</i>"+a+"</div>"),i.layerTarget&&RVS.LIB.ACTION_WITH_TRGT.push(i.val),RVS.LIB.ACTIONTYPES[i.val]={inputs:i.inputs,name:a,icon:e.icon,layerTarget:i.layerTarget,media:i.media});o||jQuery("#layeraction_list").append(r)},RVS.F.buildValueSliders=function(){var e,t=document.getElementsByClassName("withvalslider");for(e in t)t.hasOwnProperty(e)&&RVS.F.buildValueSlider(t[e])},RVS.DOC.on("mouseenter",".withvalslider",function(){null==this.dataset.valslideradded&&(RVS.F.buildValueSlider(this),this.dataset.valslideradded=!0);var e=RVS.S.valSliders[this.dataset.inpid];e.done.style.width=(parseFloat(e.inp.value)-e.min)/e.range*e.width+"px",e.pin.style.left=e.done.style.width}),RVS.F.buildValueSlider=function(e){var t=e.getElementsByTagName("INPUT")[0],a=(void 0===t.id&&(t.id="rs_valslider_"+Math.round(1e5*Math.random())),RVS.S.valSliders=void 0===RVS.S.valSliders?{}:RVS.S.valSliders,RVS.S.valSliders[t.id]={inp:t,con:RVS.F.cF(),wrap:RVS.F.cE({cN:"rs_vswrap"}),done:RVS.F.cE({cN:"rs_vsdone"}),rail:RVS.F.cE({cN:"rs_vsrail"}),pin:RVS.F.cE({cN:"rs_vspin"}),field:e},RVS.S.valSliders[t.id]);a.jpin=jQuery(a.pin),a.jwrap=jQuery(a.wrap),a.jinp=jQuery(t),e.dataset.inpid=t.id,a.con.appendChild(a.wrap),a.wrap.appendChild(a.rail),a.wrap.appendChild(a.done),a.wrap.appendChild(a.pin),e.appendChild(a.con),a.max=t.dataset.max||100,a.min=t.dataset.min||0,a.range=a.max-a.min,a.dez=t.dataset.dez||0,a.width=a.wrap.offsetWidth-9,a.isMoving=!1,a.jwrap.on("mousedown",function(e){a.isMoving=!0,a.wrap.classList.add("indrag");e=e.originalEvent.pageX-a.jwrap.offset().left,e>a.width&&(e=a.width),a.done.style.width=e+"px",a.pin.style.left=a.done.style.width,e=parseFloat(a.done.style.width)/a.jwrap.width()*(a.range+1),e=0==a.dez?Math.round(e):1==dez?10*Math.round(e/10):2==dez?100*Math.round(e/100):3==dez?1e3*Math.round(e/1e3):(dez,1e4*Math.round(e/1e4));a.lastprefix=0<=(a.inp.value+"").indexOf("px")?"px":0<=(a.inp.value+"").indexOf("%")?"%":0<=(a.inp.value+"").indexOf("deg")?"deg":"",a.inp.value=e+a.lastprefix,a.jinp.trigger("change")}),a.jwrap.on("mousemove",function(e){a.isMoving&&((e=e.originalEvent.pageX-a.jwrap.offset().left)>a.width&&(e=a.width),a.done.style.width=e+"px",a.pin.style.left=a.done.style.width,e=parseFloat(a.done.style.width)/a.jwrap.width()*(a.range+1),e=0==a.dez?Math.round(e):1==dez?10*Math.round(e/10):2==dez?100*Math.round(e/100):3==dez?1e3*Math.round(e/1e3):(dez,1e4*Math.round(e/1e4)),a.lastprefix=0<=(a.inp.value+"").indexOf("px")?"px":0<=(a.inp.value+"").indexOf("%")?"%":0<=(a.inp.value+"").indexOf("deg")?"deg":"",a.inp.value=e+a.lastprefix,a.jinp.trigger("change"))}),a.jwrap.on("mouseup",function(e){a.isMoving=!1,a.wrap.classList.remove("indrag")}),a.jwrap.on("mousewheel DOMMouseScroll",function(e){var t,i;e.preventDefault(),e.stopPropagation(),a.lastprefix=0<=(a.inp.value+"").indexOf("px")?"px":0<=(a.inp.value+"").indexOf("%")?"%":0<=(a.inp.value+"").indexOf("deg")?"deg":"",0<e.originalEvent.deltaY?(t=parseFloat(a.inp.value)-1,a.inp.value=t+a.lastprefix,a.jinp.trigger("change"),(i=a.width/(a.range+1)*t)>a.width&&(i=a.width),a.done.style.width=i+"px",a.pin.style.left=a.done.style.width):e.originalEvent.deltaY<0&&(t=parseFloat(a.inp.value)+1,a.inp.value=t+a.lastprefix,a.jinp.trigger("change"),(i=a.width/(a.range+1)*t)>a.width&&(i=a.width),a.done.style.width=i+"px",a.pin.style.left=a.done.style.width)})},RVS.F.setUnsetSelected=function(e){void 0!==e.unselect&&RVS.F.setUnsetHelp(e.unselect.split(","),"remove","selected"),void 0!==e.select&&(null!=e.prval&&0<RVS.selLayers.length&&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.split("#parentlayer#").join(RVS.L[RVS.selLayers[0]].group.puid)})||"":e.val=void 0!==e.val?e.val.split("\\").join("-").split(" ").join("-"):"",RVS.F.setUnsetHelp(e.select.split("*val*").join(e.val).split("*RVAL*").join(void 0!==e.rval?RVS.F.getDeepVal({path:e.rval}):"").split(","),"add","selected"))},RVS.F.setUnsetClass=function(e){void 0!==e.class&&void 0!==e.container&&null!==e.container&&(void 0!==e.rval&&e.rval===e.val||e.val?(e.container.classList.add(e.class),e.inversclass&&e.container.classList.remove(e.inversclass)):(e.container.classList.remove(e.class),e.inversclass&&e.container.classList.add(e.inversclass)))},RVS.F.setEnableDisable=function(e){var t,i;void 0!==e.switch?(t="remove",i="add",void 0!==e.enable&&!1===e.val&&(t="add"),void 0!==e.disable&&!1===e.val&&(i="remove"),void 0!==e.enable&&RVS.F.setUnsetHelp(e.enable.split("*val*").join(e.val).split(","),t,"disablecontainer"),void 0!==e.disable&&RVS.F.setUnsetHelp(e.disable.split("*val*").join(e.val).split(","),i,"disablecontainer")):(void 0!==e.enable&&RVS.F.setUnsetHelp(e.enable.split("*val*").join(e.val).split(","),"remove","disablecontainer"),void 0!==e.disable&&RVS.F.setUnsetHelp(e.disable.split("*val*").join(e.val).split(","),"add","disablecontainer"))},RVS.F.setUnAvailable=function(e){void 0!==e.available&&RVS.F.setUnsetHelp(e.available.split("*val*").join(e.val).split(","),"remove","unavailablecontainer"),void 0!==e.unavailable&&RVS.F.setUnsetHelp(e.unavailable.split("*val*").join(e.val).split(","),"add","unavailablecontainer")},RVS.F.initPreDrops=function(e){void 0===e&&jQuery(".predrop_wrap").each(function(){var e=jQuery(this);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){e=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(document.body).append(e),tpGS.gsap.fromTo(e,.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(a){a.textblock='<div id="filedrop" class="'+(1==a.onlydrop?"editordrop _TPRB_":"_TPRB_")+'">',a.textblock+='\t<form id="filedrop_zone">',a.textblock+='\t\t<div class="filedrop_state_idle">',a.textblock+='\t\t\t<input class="uploadfileinput" type="file" name="files[]" id="file" data-multiple-caption="{count} files selected" multiple />',a.textblock+='\t\t\t<i class="big_filedrop_icon material-icons">file_download</i>',a.textblock+='\t\t\t<div class="filedrop_line_1">'+RVS_LANG.dragAndDropFile+"</div>",!0!==a.onlydrop&&(a.textblock+='\t\t\t<div class="filedrop_line_2">'+RVS_LANG.or+"</div>"),!0!==a.onlydrop&&(a.textblock+='\t\t\t<label for="file" class="filedrop_clickbtn">'+RVS_LANG.clickToChoose+"</label>"),a.textblock+="\t\t</div>",a.textblock+='\t\t<div class="filedrop_state_drop">',a.textblock+='\t\t\t<i class="big_filedrop_icon material-icons">file_download</i>',!0!==a.onlydrop?a.textblock+='\t\t\t<div class="filedrop_line_1">'+RVS_LANG.releaseToUpload+"</div>":a.textblock+='\t\t\t<div class="filedrop_line_1">'+RVS_LANG.releaseToAddLayer+"</div>",!0!==a.onlydrop&&(a.textblock+='\t\t\t<div class="filedrop_line_2">'+RVS_LANG.moduleZipFile+"</div>"),a.textblock+="\t\t</div>",a.textblock+='\t\t<div class="filedrop_state_process">',a.textblock+='\t\t\t<i id="file_upload_processicon" class="rotating big_filedrop_icon material-icons">autorenew</i>',a.textblock+='\t\t\t<div id="file_upload_mininfo" class="filedrop_line_1">'+RVS_LANG.importing+"</div>",a.textblock+=' \t\t\t<div id="importing_processing_files">',a.textblock+="\t\t\t</div>",a.textblock+="\t\t</div>",a.textblock+='\t\t<div id="filedrop_close"><i class="material-icons">close</i></div>',a.textblock+="\t</form>",a.textblock+="</div>",RVS.fileDrop=jQuery(a.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(document.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)!==a.onlydrop&&jQuery("#wpwrap").addClass("blurred"),!0===a.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(e){for(var t in RVS.fileDropForm[0].className="is-processing",jQuery("#importing_processing_files").html(""),e.originalEvent.dataTransfer.files){var i;e.originalEvent.dataTransfer.files.hasOwnProperty(t)&&"object"==typeof e.originalEvent.dataTransfer.files[t]&&(i=e.originalEvent.dataTransfer.files[t].name+" ("+Math.round(e.originalEvent.dataTransfer.files[t].size/1024)+"kb)",jQuery("#importing_processing_files").append('<div id="fileprocessing_'+t+'" class="filedrop_line_2">'+i+'<i class="material-icons fileupload_status"></i><span class="fileupload_message"></span></div>'))}"custom"===a.type?a.callBack({files:e.originalEvent.dataTransfer.files,fileindex:0,report:"#fileprocessing_",success:a.success}):RVS.F.uploadFiles({form:RVS.fileDropForm,files:e.originalEvent.dataTransfer.files,fileindex:0,report:"#fileprocessing_",success:a.success,action:a.action})}),jQuery("#file").on("change",function(e){for(var t in RVS.fileDropForm[0].className="is-processing",e.target.files){var i;e.target.files.hasOwnProperty(t)&&"object"==typeof e.target.files[t]&&(i=e.target.files[t].name+" ("+Math.round(e.target.files[t].size/1024)+"kb)",jQuery("#importing_processing_files").append('<div id="fileprocessing_'+t+'" class="filedrop_line_2">'+i+'<i class="material-icons fileupload_status"></i><span class="fileupload_message"></span></div>'))}"custom"===a.type?a.callBack({files:e.target.files,fileindex:0,report:"#fileprocessing_",success:a.success}):RVS.F.uploadFiles({form:RVS.fileDropForm,files:e.target.files,fileindex:0,report:"#fileprocessing_",success:a.success,action:a.action})}))},close:function(){jQuery("#filedrop").remove(),jQuery("#wpwrap").removeClass("blurred")}},RVS.F.uploadFiles=function(t){t.fileindex=void 0===t.fileindex?0:t.fileindex,jQuery(t.report+t.fileindex).find(".fileupload_status").html("autorenew").addClass("rotating");var e=new FormData;e.append("import_file",t.files[t.fileindex]),e.append("action",RVS.ENV.ajax_pre+"_ajax_action"),e.append("client_action",void 0===t.action?"import_slider":t.action),e.append("nonce",RVS.ENV.nonce),void 0!==t.customs&&e.append("customs",JSON.stringify(t.customs)),jQuery.ajax({url:ajaxurl,type:"post",contentType:!1,processData:!1,data:e,success:function(e){(e=JSON.parse(e)).success?(jQuery(t.report+t.fileindex).find(".fileupload_status").html("done").removeClass("rotating").addClass("doneupload"),void 0!==t.success&&RVS.DOC.trigger(t.success,e)):(t.anyError=!0,jQuery(t.report+t.fileindex).find(".fileupload_status").html("priority_high").removeClass("rotating").addClass("errorupload"),jQuery(t.report+t.fileindex).find(".fileupload_message").html(e.message)),t.fileindex++,t.files.length>t.fileindex?RVS.F.uploadFiles(t):!0!==t.anyError?(jQuery("#file_upload_mininfo").html(RVS_LANG.successImportFile),jQuery("#file_upload_processicon").removeClass("rotating").addClass("done").html("done"),void 0!==t.successFinal&&RVS.DOC.trigger(t.successFinal,e),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(e){t.anyError=!0,jQuery(t.report+t.fileindex).find(".fileupload_status").html("priority_high").removeClass("rotating").addClass("errorupload"),jQuery(t.report+t.fileindex).find(".fileupload_message").html(e.message),t.fileindex++,t.files.length>t.fileindex?RVS.F.uploadFiles(t):!0!==t.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(t){if(t.index<t.slides.length){t.order=void 0===t.order?0:t.order,t.order++;var i=t.slides[t.index],e=jQuery.inArray(i+"",RVS.SLIDER.inWork);if(0<=(-1===e?jQuery.inArray(i,RVS.SLIDER.inWork):e)){try{RVS.F.compareLayerAnimPresets(RVS.SLIDER[t.slides[t.index]].layers)}catch(e){console.log(e)}var a=JSON.stringify(RVS.F.simplifySlide(RVS.SLIDER[t.slides[t.index]].slide)),o=JSON.stringify(RVS.F.simplifyAllLayer(RVS.SLIDER[t.slides[t.index]].layers));RVS.F.compareLayerAnimPresets,!0===t.force||void 0===RVS.S.lastSaved||void 0===RVS.S.lastSaved[i]||a!==RVS.S.lastSaved[i].params||o!==RVS.S.lastSaved[i].layers?(e={slider_id:RVS.ENV.sliderID,slide_id:t.slides[t.index],params:a,layers:o,slide_order:t.order},RVS.DOC.trigger("rs_save_slide_params",[e]),RVS.F.ajaxRequest("save_slide",e,function(e){e.success&&(RVS.S.lastSaved=void 0===RVS.S.lastSaved?{}:RVS.S.lastSaved,RVS.S.lastSaved[i]={params:a,layers:o},t.index++,RVS.F.saveSlides(t))},void 0,void 0,RVS_LANG.saveslide+'<br><span style="font-size:17px; line-height:25px;">"'+RVS.SLIDER[t.slides[t.index]].slide.title+'"</span>')):(t.index++,RVS.F.saveSlides(t))}else t.index++,RVS.F.saveSlides(t)}else RVS.SLIDER.inWork=[],RVS.F.slideinWork(RVS.S.slideId),RVS.S.need_to_save=!1,void 0!==t.trigger&&t.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,t=JSON.stringify(RVS.SLIDER.settings),i=RVS.SLIDER.slideIDs.slice(),a=-1;for(e in i)i.hasOwnProperty(e)&&0<=(""+i[e]).indexOf("static")&&(a=e);i.splice(a,1),RVS.F.ajaxRequest("save_slider",{slider_id:RVS.ENV.sliderID,params:t,slide_ids:i},function(e){e.success&&void 0!==e.missing&&0<e.missing.length&&RVS.F.saveSlides({index:0,slides:RVS.SLIDER.slideIDs,works:e.missing}),e.success&&RVS.DOC.trigger("slidersaved")},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,t,i,a={slider:JSON.stringify(RVS.SLIDER.settings),slide_order:JSON.stringify(RVS.SLIDER.slideIDs)},o=RVS.SLIDER.slideIDs.slice();for(e in o)o.hasOwnProperty(e)&&(i=o[e],!(t=!1)!==(t=RVS.SLIDER.settings.general.useWPML&&void 0!==RVS.SLIDER[i]&&void 0!==RVS.SLIDER[i].slide&&void 0!==RVS.SLIDER[i].slide.child&&""!==RVS.SLIDER[i].slide.child.parentId&&void 0!==RVS.SLIDER[i].slide.child.parentId&&-1===jQuery.inArray(""+RVS.SLIDER[i].slide.child.parentId,RVS.SLIDER.slideIDs)?!0:t))&&(a[o[e]]={params:JSON.stringify(RVS.F.simplifySlide(RVS.SLIDER[o[e]].slide)),layers:JSON.stringify(RVS.F.simplifyAllLayer(RVS.SLIDER[o[e]].layers))});return a},RVS.F.addOnContainer={create:function(e){var t;e.slug&&e.icon&&e.alias&&(!(t="")===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+=h({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+=h({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+=h({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})),void 0!==RVS.C.theRightToolbar)&&RVS.C.theRightToolbar.append(t)}},RVS.F.buildSingleAddonElement=function(e,t){var i,a,o;return void 0===e||""===e||0===e?"":(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>'),a=e.active&&RVS.LIB.ADDONS[t].enable?"block":"none",o=RVS_LANG.enabled,(i=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>")+"</div>")+'<div class="rs_ale_title">'+e.title+"</div></div>")},RVS.F.buildAddonList=function(e,t){var i,a="",o=0,r=!0;for(i in RVS.LIB.ADDONS=void 0===RVS.LIB.ADDONS?{}:RVS.LIB.ADDONS,e)e.hasOwnProperty(i)&&(RVS.LIB.ADDONS[i]=void 0===RVS.LIB.ADDONS[i]?{}:RVS.LIB.ADDONS[i],RVS.LIB.ADDONS[i].enable=RVS.S.ovMode?e[i].global?RVS.LIB.ADDONS[i].enable:void 0:e[i].global?RVS.LIB.ADDONS[i].enable:void 0!==RVS.SLIDER.settings.addOns[i]&&RVS.SLIDER.settings.addOns[i].enable,RVS.LIB.ADDONS[i].enable=0!==RVS.LIB.ADDONS[i].enable&&"0"!==RVS.LIB.ADDONS[i].enable&&(1===RVS.LIB.ADDONS[i].enable||"1"===RVS.LIB.ADDONS[i].enable||0===RVS.LIB.ADDONS[i].enable||RVS.LIB.ADDONS[i].enable),"update"!==t&&(void 0!==RVS.LIB.ADDONS[i].sort&&null!=RVS.LIB.ADDONS[i].releaseid||(r=!1),a+=RVS.F.buildSingleAddonElement(e[i],i),delete RVS.LIB.ADDONS[i].el,RVS.LIB.ADDONS[i].el=void 0),RVS.LIB.ADDONS_LIST[i]=jQuery.extend(!0,{},e[i]),RVS.LIB.ADDONS[i].installed=RVS.LIB.ADDONS_LIST[i].installed,RVS.LIB.ADDONS[i].order=o,o++);"update"!==t&&(jQuery("#rbm_addonlist").append(a),RVS.F.RSDialog.center(),r?jQuery("#sel_addon_sorting").val("pop").ddTP("change"):jQuery('.ddTP.ddTP_C.ddTP-fake.ddTP_C--autowidthinmodal[data-refid="sel_addon_sorting"]').hide(),jQuery("#sel_addon_filtering").val("all").ddTP("change"),document.getElementById("searchaddons").value=""),requestAnimationFrame(RVS.F.redrawAddonList)},RVS.F.redrawAddonList=function(){null!=RVS.S.addonPrefilter&&(jQuery("#sel_addon_filtering").val(RVS.S.addonPrefilter).ddTP("change"),requestAnimationFrame(RVS.F.redrawAddonList),delete RVS.S.addonPrefilter);var e=document.getElementById("sel_addon_sorting").value,t=document.getElementById("sel_addon_filtering").value,i=[];for(s in RVS.LIB.ADDONS)i.push(RVS.LIB.ADDONS[s]),i[i.length-1].title=i[i.length-1].title.replace("(","").replace(")","");switch(e){case"popdesc":i.sort(function(e,t){return parseInt(t.sort,0)-parseInt(e.sort,0)});break;case"pop":i.sort(function(e,t){return parseInt(e.sort,0)-parseInt(t.sort,0)});break;case"datedesc":i.sort(function(e,t){return t.releaseid-e.releaseid});break;case"date":i.sort(function(e,t){return e.releaseid-t.releaseid});break;case"title":i.sort(function(e,t){return e.title.toUpperCase().localeCompare(t.title.toUpperCase())});break;case"titledesc":i.sort(function(e,t){return t.title.toUpperCase().localeCompare(e.title.toUpperCase())});break;default:i.sort(function(e,t){return e.order-t.order})}var a,o,r,s,n,d=jQuery("#searchaddons").val().toLowerCase();for(s in i)i.hasOwnProperty(s)&&(a=i[s],o=d.length<3||2<d.length&&(0<=a.title.toLowerCase().indexOf(d)||0<=a.line_1.toString().toLowerCase().indexOf(d)||0<=a.line_1.toString().toLowerCase().indexOf(d)),r="all"==t||"action"==t&&void 0!==RVS.ENV.addOns_to_update[a.slug]&&!0!==RVS.ENV.addOns_to_update[a.slug].updated||a.installed<a.available||"installed"==t&&a.installed||"notinstalled"==t&&!a.installed||"activated"==t&&a.active,a.showinlist=o&&r);for(s in i)i.hasOwnProperty(s)&&(n=i[s].slug,RVS.LIB.ADDONS[n].el=null==RVS.LIB.ADDONS[n].el?document.getElementById("ale_"+n):RVS.LIB.ADDONS[n].el,RVS.LIB.ADDONS[n].el.style.display=i[s].showinlist?"inline-block":"none",document.getElementById("rbm_addonlist").appendChild(RVS.LIB.ADDONS[n].el))},RVS.F.loadAddonList=function(t,i,a){RVS.LIB.ADDONS_LIST={},RVS.F.ajaxRequest("get_addon_list",{},function(e){!e.success||e.addons&&Array.isArray(e.addons)&&1===e.addons.length&&!1===e.addons[0]||(RVS.F.buildAddonList(e.addons,i),t&&"update"!==i&&RVS.F.showAddonInfos(t),"update"===i&&a())})},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?RVS.F.showRegisterSliderInfo():(jQuery(".rs_ale.selected").removeClass("selected"),this.className+=" selected",RVS.F.showAddonInfos(this.dataset.ref))}),RVS.DOC.on("updateAddonsOverview",function(e,t){RVS.F.redrawAddonList()}),RVS.DOC.on("keyup","#searchaddons",function(){clearTimeout(window.searchKeyUp),window.searchKeyUp=setTimeout(function(){RVS.F.redrawAddonList()},200)}),RVS.DOC.on("click",".ale_i_installaddon",function(){var t=this.dataset.slug;RVS.F.ajaxRequest("activate_addon",{addon:t},function(e){e.success&&(RVS.LIB.ADDONS_LIST[t].installed=void 0!==e.version&&!1!==e.version&&"false"!==e.version?e.version:RVS.LIB.ADDONS_LIST[t].available,jQuery("#ale_"+t+" .rs_ale_notinstalled").remove(),RVS.F.showAddonInfos(t))},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(){var t,i,a;"true"!==RVS.ENV.activated&&!0!==RVS.ENV.activated||(t=this.dataset.slug,i=t.replace(/-/g,"_"),a=jQuery("#ale_"+t+" .rs_alethumb_img"),RVS.LIB.ADDONS_LIST[t].global||RVS.S.ovMode||(RVS.SLIDER.settings.addOns[t]=void 0===RVS.SLIDER.settings.addOns[t]?{}:RVS.SLIDER.settings.addOns[t],RVS.SLIDER.settings.addOns[t].enable=!0,RVS.LIB.ADDONS[t].enable=!0),RVS.F.ajaxRequest("activate_addon",{addon:t},function(e){e.success&&(RVS.LIB.ADDONS_LIST[t].active=!0,window[i]=e[t],"undefined"==typeof revbuilder||void 0!==RVS.SLIDER.settings&&RVS.SLIDER.settings.addOns.hasOwnProperty(t)?window[i].enabled=RVS.F._d(RVS.F._truefalse(window[i].enabled),!RVS.S.ovMode&&void 0!==RVS.SLIDER.settings.addOns[t]&&RVS.SLIDER.settings.addOns[t].enable):window[i].enabled=!0,tpGS.gsap.fromTo(a,2,{zIndex:"13",clip:"rect(95px 95px 95px 95px)"},{clip:"rect(0px 190px 190px 0px)"}),jQuery("#ale_"+t+" .rs_ale_enabled").show(),RVS.F.showAddonInfos(t),RVS.F.addonInstalledOnDemand(t),RVS.F.loadCSS(RVS.ENV.wp_plugin_url+t+"/admin/assets/css/"+t+"-admin.css"),jQuery.getScript(RVS.ENV.wp_plugin_url+t+"/admin/assets/js/"+t+"-admin.js",function(){RVS.F.showAddonInfos(t),!RVS.S.ovMode&&RVS.LIB.ADDONS[t].enable&&RVS.DOC.trigger(t+"_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","#process_all_addon_updates",function(){}),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 t=this.dataset.slug;!0!==RVS.LIB.ADDONS_LIST[t].global?(RVS.SLIDER.settings.addOns[t]=void 0===RVS.SLIDER.settings.addOns[t]?{}:RVS.SLIDER.settings.addOns[t],RVS.SLIDER.settings.addOns[t].enable=!0,RVS.LIB.ADDONS[t].enable=!0,RVS.DOC.trigger(t+"_init"),RVS.F.showAddonInfos(t),jQuery("#ale_"+this.dataset.slug+" .rs_ale_enabled").show()):RVS.F.ajaxRequest("wp_ajax_enable_"+t,{},function(e){RVS.LIB.ADDONS[t].enable=!0,RVS.DOC.trigger(t+"_init"),RVS.F.showAddonInfos(t),jQuery("#ale_"+t+" .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 t=this.dataset.slug;RVS.LIB.ADDONS_LIST[t].global?RVS.F.ajaxRequest("wp_ajax_disable_"+t,{},function(e){RVS.LIB.ADDONS[t].active=!1,RVS.LIB.ADDONS[t].enable=!1,RVS.DOC.trigger(t+"_init"),RVS.F.showAddonInfos(t),jQuery("#ale_"+t+" .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[t].enable=!1,RVS.DOC.trigger(t+"_init"),RVS.LIB.ADDONS[t].enable=!1,RVS.F.showAddonInfos(t),jQuery("#ale_"+this.dataset.slug+" .rs_ale_enabled").hide())}),RVS.DOC.on("click",".ale_i_updateaddon",function(){var t=this.dataset.slug;RVS.F.ajaxRequest("activate_addon",{addon:t,update:!0},function(e){e.success&&(void 0!==RVS.ENV.addOns_to_update[t]&&!0!==RVS.ENV.addOns_to_update[t].updated&&(RVS.ENV.addOns_to_update[t].updated=!0),delete RVS.LIB.ADDONS_LIST,document.getElementById("rbm_addonlist").innerHTML="",RVS.F.loadAddonList(t))},void 0,void 0,RVS_LANG.addon+'<br><span style="font-size:17px; line-height:25px;">"'+RVS_LANG.updatingaddon+" "+t+'"</span>')}),RVS.DOC.on("click",".ale_i_allupdateaddon",function(){RVS.F.checkForAddonsActionNeeded(),RVS.F.updateAddonsInRow()}),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.checkForAddonsActionNeeded()},RVS.F.checkForAddonsActionNeeded=function(){for(var e in RVS.S.slugsToUpdate=[],RVS.C.PRALADUP=null==RVS.C.PRALADUP||null==RVS.C.PRALADUP||0==RVS.C.PRALADUP.length?document.getElementById("process_all_addon_updates"):RVS.C.PRALADUP,RVS.LIB.ADDONS)RVS.LIB.ADDONS[e].available>RVS.LIB.ADDONS[e].installed&&RVS.S.slugsToUpdate.push(RVS.LIB.ADDONS[e].slug);0<RVS.S.slugsToUpdate.length?RVS.C.PRALADUP.style.display="inline-block":RVS.C.PRALADUP.style.display="none"},RVS.F.updateAddonsInRow=function(){var t;0<RVS.S.slugsToUpdate.length?(t=RVS.S.slugsToUpdate[0],RVS.F.ajaxRequest("activate_addon",{addon:t,update:!0},function(e){e.success&&(void 0!==RVS.LIB.ADDONS&&void 0!==RVS.LIB.ADDONS[t]&&(RVS.LIB.ADDONS[t].installed=RVS.LIB.ADDONS[t].available),void 0!==RVS.LIB.ADDONS_LIST)&&void 0!==RVS.LIB.ADDONS_LIST[t]&&(RVS.LIB.ADDONS_LIST[t].installed=RVS.LIB.ADDONS_LIST[t].available),RVS.S.slugsToUpdate.splice(0,1),RVS.F.updateAddonsInRow()},void 0,void 0,RVS_LANG.addon+'<br><span style="font-size:17px; line-height:25px;">"'+RVS_LANG.updatingaddon+" "+t+'"</span>')):(delete RVS.LIB.ADDONS_LIST,document.getElementById("rbm_addonlist").innerHTML="",RVS.F.loadAddonList(t),RVS.C.PRALADUP.style.display="none",RVS.F.notifications&&RVS.F.notifications())},RVS.F.showAddonInfos=function(e){var t,i,a,o;void 0!==RVS.LIB.ADDONS_LIST&&void 0!==RVS.LIB.ADDONS_LIST[e]&&(o='<div class="rbm_addon_details_inner">',i=(t=RVS.LIB.ADDONS_LIST[e]).active?t.global?RVS_LANG.enableglobaladdon:RVS_LANG.enableaddon:t.global?RVS_LANG.activateglobaladdon:RVS_LANG.activateaddon,a=t.global?RVS_LANG.disableglobaladdon:RVS_LANG.disableaddon,o=(o=o+'<div class="div20"></div><div class="ale_i_title">'+t.title+"</div>")+'<div class="ale_i_content">'+t.line_1+" "+t.line_2+'</div><div class="div20"></div>',RVS.S.ovMode&&!t.global&&t.active&&t.installed?o+='<div class="basic_action_button_inactive autosize basic_action_button" data-slug="'+t.slug+'" data-global="'+t.global+'"><i class="material-icons">error_outline</i>'+RVS_LANG.addonOnlyInSlider+"</div>":RVS.F.compareVersions(t.version_from,RVS.ENV.revision)?t.installed?t.active?RVS.LIB.ADDONS[e].enable?o+='<div class="ale_i_disableaddon basic_action_coloredbutton autosize basic_action_button" data-global="'+t.global+'" data-slug="'+t.slug+'"><i class="material-icons">remove_circle_outline</i>'+a+"</div>":RVS.S.ovMode&&!t.global?o+="":o+='<div class="ale_i_enableaddon basic_action_coloredbutton autosize basic_action_button" data-global="'+t.global+'" data-slug="'+t.slug+'"><i class="material-icons">power_settings_new</i>'+i+"</div>":o+='<div class="ale_i_activateaddon basic_action_coloredbutton autosize basic_action_button" data-slug="'+t.slug+'" data-global="'+t.global+'"><i class="material-icons">power_settings_new</i>'+i+"</div>":o+='<div class="ale_i_installaddon basic_action_coloredbutton autosize basic_action_button" data-slug="'+t.slug+'" data-global="'+t.global+'"><i class="material-icons">get_app</i>'+RVS_LANG.install_and_activate+"</div>":o+='<div class="ale_i_errorbutton basic_action_button autosize"><i class="material-icons">error_outline</i>'+RVS_LANG.checkforrequirements+"</div>",o=(o+='</div><div class="ale_i_line"></div><div class="rbm_addon_details_inner"><row><onehalf>')+'<div class="ale_i_title">'+RVS_LANG.installedversion+"</div>",!1===t.installed?o+='<div class="ale_i_content">'+RVS_LANG.notinstalled+"</div>":o+='<div class="ale_i_content">'+(!0===t.installed?void 0===t.available?RVS_LANG.availableversion:t.available:t.installed)+"</div>",o=(o=(o=(o+="</onehalf><onehalf>")+'<div class="ale_i_title">'+RVS_LANG.availableversion+"</div>")+'<div class="ale_i_content">'+t.available+'</div></onehalf></row><div class="div20"></div>')+'<div class="ale_i_title">'+RVS_LANG.requirements+"</div>",RVS.F.compareVersions(t.version_from,RVS.ENV.revision)?o+='<div class="ale_i_content"><i class="material-icons">check</i>'+RVS_LANG.sliderrevversion+" "+t.version_from+"</div>":o+='<div class="ale_i_content ale_yellow"><i class="material-icons">error_outline</i>'+RVS_LANG.sliderrevversion+" "+t.version_from+"</div>",!1!==t.installed&&!0===RVS.F.compareVersions(t.installed,t.available,"<")&&(o=(o+='<div class="div20"></div>')+'<div class="ale_i_updateaddon basic_action_coloredbutton autosize basic_action_button" data-global="'+t.global+'" data-slug="'+t.slug+'"><i class="material-icons">get_app</i>'+RVS_LANG.updateNow+"</div>"),o+='</div><div class="ale_i_line"></div><div class="form_collector" id="addon_configuration_subpanel"></div>',document.getElementById("rbm_addon_details").innerHTML=o,RVS.F.configPanelSaveButton({show:!1,slug:e}),t.active)&&RVS.DOC.trigger(t.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.compareVersions=function(e,t,i){if(void 0===e||void 0===t)return!1;var a,o;for(t+="",regExStrip0=/(\.0+)+$/,segmentsA=(e+="").replace(regExStrip0,"").split("."),segmentsB=t.replace(regExStrip0,"").split("."),l=Math.min(segmentsA.length,segmentsB.length),a=0;a<l;a++)if(o=parseInt(segmentsA[a],10)-parseInt(segmentsB[a],10))return void 0===i&&o<=0||"<"===i&&o<0;return e=segmentsA.length-segmentsB.length,void 0===i&&e<=0||"<"===i&&e<0},RVS.F.preloadImage=function(t){var e=new Image;!0!==t.silent&&RVS.F.showWaitAMinute({fadeIn:500,text:RVS_LANG.imageisloading}),e.onload=function(){var e;void 0!==t.slideId&&void 0!==t.uid&&"shape"!=RVS.SLIDER[t.slideId].layers[t.uid].type&&(RVS.SLIDER[t.slideId].layers[t.uid].size.originalWidth=this.width,RVS.SLIDER[t.slideId].layers[t.uid].size.originalHeight=this.height,e=0===parseInt(this.height,0)?0:parseInt(this.width,0)/parseInt(this.height,0),RVS.SLIDER[t.slideId].layers[t.uid].size.aspectRatio=RVS.F.cToResp({default:"1",val:e}),RVS.SLIDER[t.slideId].layers[t.uid].media.loaded=!0),!0!==t.silent&&setTimeout(function(){RVS.F.showWaitAMinute({fadeOut:500})},100),t.callback&&t.callback.call()},e.onerror=function(){void 0!==t.slideId&&void 0!==t.uid&&"shape"!=RVS.SLIDER[t.slideId].layers[t.uid].type&&(RVS.SLIDER[t.slideId].layers[t.uid].media.imageUrl=RVS.ENV.img_ph_url,RVS.SLIDER[t.slideId].layers[t.uid].size.originalWidth=300,RVS.SLIDER[t.slideId].layers[t.uid].size.originalHeight=200,RVS.SLIDER[t.slideId].layers[t.uid].size.aspectRatio=RVS.F.cToResp({default:"1",val:1.5}),RVS.SLIDER[t.slideId].layers[t.uid].media.loaded=!0),!0!==t.silent&&setTimeout(function(){RVS.F.showWaitAMinute({fadeOut:500})},100),t.callback&&t.callback.call()},e.onabort=function(){!0!==t.silent&&setTimeout(function(){RVS.F.showWaitAMinute({fadeOut:500})},100),t.callback&&t.callback.call()},e.src=t.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(document.body).append('<div id="hidden_video_container"></div>'),u=new Vimeo.Player("hidden_video_container",e),v=setTimeout(function(){jQuery("#layer_youtubevimeo_id").addClass("badvalue"),RVS.F.miniPreloaderOut()},3e3),u.ready().then(function(){jQuery("#layer_youtubevimeo_id").removeClass("badvalue"),RVS.F.miniPreloaderOut(),clearTimeout(v)}).catch(function(e){jQuery("#layer_youtubevimeo_id").addClass("badvalue"),RVS.F.miniPreloaderOut(),clearTimeout(v)})},RVS.F.checkYouTubeID=function(e){RVS.F.createMiniPreloader({container:jQuery("#video_id_wrap")}),jQuery("#hidden_video_container").remove(),jQuery(document.body).append('<div id="hidden_video_container"></div>'),v=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(v)},onError:function(){console.log("ERROR"),jQuery("#layer_youtubevimeo_id").addClass("badvalue"),RVS.F.miniPreloaderOut(),clearTimeout(v)}}})},RVS.F.showMouseInfo=function(e){void 0===RVS.C.mouseInfo&&(RVS.C.mouseInfo=jQuery("#mouseInfoBox"),RVS.C.mouseInfo.appendTo(jQuery(document.body))),void 0!==e.html?RVS.C.mouseInfo[0].innerHTML=e.html:void 0!==e.text&&(RVS.C.mouseInfo[0].innerHTML=e.text),t=!0,RVS.C.mouseInfo[0].className=e.classes||""},RVS.F.hideMouseInfo=function(){t=!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},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 0<=window.location.href.indexOf("alias=")?RVS.SLIDER.slideIDs[0]:(e=0<=window.location.href.indexOf("&id=")?window.location.href.split("&id="):0<=window.location.href.indexOf("?id=")?window.location.href.split("?id="):window.location.href.split("id="),e=Array.isArray(e)?e[1]:RVS.SLIDER.slideIDs[0],e=RVS.F.isNumeric(e)?e:e.split("&")[0],RVS.F.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:e.image).width,0),e.image.height=parseInt(("100%"==e.image.height||"auto"==e.image.height?e.viewPort:e.image).height,0),e.viewPort.width=parseInt(("100%"==e.viewPort.width||"auto"==e.viewPort.width?e.image:e.viewPort).width,0),e.viewPort.height=parseInt(("100%"==e.viewPort.height||"auto"==e.viewPort.height?e.image: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":i<t?(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 e=!RVS.F.isNumeric(e)&&!1!==e&&void 0!==e&&!0!==e&&e.match(/%]/g)?e.split("[")[1].split("]")[0]:e},RVS.F.convertHexToRGB=function(e){return[(e=parseInt(-1<e.indexOf("#")?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(/[^-0-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 RVS.F.isNumeric(t)?t:e},RVS.F.htmlToText=function(e){return e.replace(/</g,"<").replace(/>/g,">")},RVS.F.insertTextAtCursor=function(e,t){var e=e.getDoc(),i=e.getCursor();e.replaceRange(t,i)},RVS.F.getResizeDirection=function(e){return e.size.height<e.originalSize.height||e.size.height>e.originalSize.height?"height":e.size.width<e.originalSize.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(!Array.isArray(e)||!Array.isArray(t))return!1;if(e.length!=t.length)return!1;var i=!0;for(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(!Array.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(i>=(e=Array.isArray(e)?e:Object.values(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,i=0;for(t in e)e.hasOwnProperty(t)&&(i+=parseInt(e[t],0));return i},RVS.F.isVaOrPx=function(e){var t=!1;return t=!RVS.F.isNumeric(e)&&0<=e.indexOf("px")||RVS.F.isNumeric(e)?!0:t},RVS.F.retWitSuf=function(e,t){return!RVS.F.isNumeric(e)&&0<=e.indexOf("px")?parseInt(e)+"px":!RVS.F.isNumeric(e)&&0<=e.indexOf("%")?parseInt(e)+"%":!RVS.F.isNumeric(e)&&RVS.F.isNumeric(parseInt(e,0))?parseInt(e)+t:RVS.F.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,a,o={},r=void 0===(e=void 0===e?{default:0,unit:""}:e).default?0:e.default,s=void 0===e.unit?"":e.unit;for(a in RVS.V.sizes)if(RVS.V.sizes.hasOwnProperty(a)){var n=RVS.V.sizes[a],d=RVS.V.sizesold[a];if("object"==typeof(r=Array.isArray(e.val)||void 0!==e.val&&"object"!=typeof e.val?e.val:void 0===e.val||"object"!=typeof e.val||void 0===e.val[d]||null===e.val[d]?r:e.val[d]))for(var l in o[n]=jQuery.extend(!0,{},{v:r,e:!1}),void 0!==e&&void 0!==e.val&&void 0!==e.val[d]&&(o[n].e=!0),r)r.hasOwnProperty(l)&&(o[n].v[l]=0<s.length&&"auto"!==r[l]&&"none"!==r[l]?parseFloat(r[l])+s:r[l],""==s)&&(t=(""+o[n].v[l]).indexOf("%"),i=(""+o[n].v[l]).indexOf("px"),0<=t?o[n].v[l]=parseInt(o[n].v[l],0)+"%":0<=i&&(o[n].v[l]=parseInt(o[n].v[l],0)+"px"));else o[n]=jQuery.extend(!0,{},{v:0<s.length&&"auto"!==r&&"none"!==r&&""!==r?parseFloat(r)+s:r,e:!1,u:s}),void 0!==e&&void 0!==e.val&&void 0!==e.val[d]&&(o[n].e=!0),""===o[n].v&&""!==e.default&&(o[n].v=e.default),""==s&&!1!==o[n].v&&!0!==o[n].v&&(t=(""+o[n].v).indexOf("%"),i=(""+o[n].v).indexOf("px"),0<=t?o[n].v=parseInt(o[n].v,0)+"%":0<=i&&(o[n].v=parseInt(o[n].v,0)+"px"))}return o},RVS.F.cToVandU=function(e){var t={v:e.default,u:e.u},i=(t.v=void 0===e.val?t.v:e.val,0);if("object"==typeof t.v)for(var a in t.v)!t.v.hasOwnProperty(a)||RVS.F.isNumeric(t.v[a])||(t.u=0==i&&0<=t.v[a].indexOf("px")?"px":0==i&&0<=t.v[a].indexOf("%")?"%":t.u,t.v[a]=parseInt(t.v[a],0)+t.u,i++);else RVS.F.isNumeric(t.v)||(t.u=0==i&&0<=t.v.indexOf("px")?"px":0==i&&0<=t.v.indexOf("%")?"%":t.u,t.v=parseInt(t.v,0)+t.u,i++);return t},RVS.F.exportLayerCombo=function(e){void 0===R&&(jQuery(document.body).append('<a style="display:none" id="downloadExportLayerCombo" href="" download></a>'),R=jQuery("#downloadExportLayerCombo"));var t,i,a=RVS.SLIDER[RVS.S.slideId].slide.thumb.customAdminThumbSrcId,o={};for(i in RVS.L)RVS.L.hasOwnProperty(i)&&("video"===RVS.L[i].type&&(t=RVS.L[i].media.id),"video"!==RVS.L[i].type)&&(o[i]=jQuery.extend(!0,{},RVS.L[i]));return delete o.bottom,delete o.top,delete o.middle,o=JSON.stringify(RVS.F.simplifyAllLayer(o)),RVS.F.ajaxRequest("export_layer_group",{videoid:t,thumbid:a,layers:o,title:e.title},function(e){R[0].href=e.url,R[0].click()},!0,!0),"Exporting Layer Combo File"},RVS.F.compare=function(e,t,i){if(e==t)return!0;if(0==e&&0==t)return!0;if("min"===i&&("0"===e||0===e)&&"0px"==t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;var a,o=!0;for(a in e)o&&e[a]!==t[a]&&(o=!1);return o}return!1},RVS.F.simplifyObject=function(e,t,i){if("min"==i)for(var a in t)t.hasOwnProperty(a)&&("frameOrder"!=a&&"sessionFilterUsed"!=a&&"hoverFilterUsed"!=a&&"frameLength"!==a||delete t[a],"object"!=typeof t[a]||Array.isArray(t[a])?"text"!==a&&RVS.F.compare(e[a],t[a],i)&&delete t[a]:(void 0!==e[a]&&(t[a]=jQuery.extend(!0,{},RVS.F.simplifyObject(e[a],t[a],i))),"d"==a&&""+t[a].e=="true"&&null==t.d.v&&delete t[a],"chars"==a&&(t.chars=_(t.chars)),"words"==a&&(t.words=_(t.words)),"lines"==a&&(t.lines=_(t.lines)),"timeline"==a&&"8700"==t.timeline.startRelative&&9e3==t.timeline.start&&(delete t.timeline.startRelative,delete t.timeline.start),jQuery.isEmptyObject(t[a])&&delete t[a]));else for(var a in t)t.hasOwnProperty(a)&&("object"!=typeof t[a]||Array.isArray(t[a])?"text"!==a&&"endWithSlide"!==a&&RVS.F.compare(e[a],t[a],i)&&delete t[a]:(void 0!==e[a]&&"margin"!==a&&"padding"!==a&&(t[a]=jQuery.extend(!0,{},RVS.F.simplifyObject(e[a],t[a],i))),jQuery.isEmptyObject(t[a])&&delete t[a]));return t},RVS.F.removeEmptyChilds=function(e){var t,i={};for(t in e)e.hasOwnProperty(t)&&("object"!=typeof e[t]&&(i[t]=e[t]),jQuery.isEmptyObject(e[t])||(i[t]=jQuery.extend(!0,{},RVS.F.removeEmptyChilds(e[t]))));return i},RVS.F.convertFraction=function(e){var t;return(t=-1!==e.search("/")&&2===(e=e.split("/")).length?parseInt(e[0],10)/parseInt(e[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){e.success?(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.showErrorMessage(e.message),jQuery("#rbm_preview .rbm_close").trigger("click"))},void 0,!0)},RVS.F.updatePreviewSize=function(){var e,t,i,a,o;void 0!==RVS.preview&&void 0!==RVS.preview.sizes&&null!=RVS.preview.sizes.width&&null!=RVS.preview.sizes.height&&(t=function(e,t){var i,a=!1,o={w:parseInt(e.width.d,0),h:e.height.d};for(i in RVS.V.sizes)RVS.V.sizes.hasOwnProperty(i)&&!0!==a&&(e.custom[RVS.V.sizes[i]]&&(o.w=parseInt(e.width[RVS.V.sizes[i]],0),o.h=parseInt(e.height[RVS.V.sizes[i]],0)),RVS.V.sizes[i]===t)&&(a=!0);return o}(RVS.preview.sizes,RVS.preview.selectedSize),!(e={w:parseInt(RVS.preview.sizes.width[RVS.preview.selectedSize],0),h:parseInt(RVS.preview.sizes.height[RVS.preview.selectedSize],0)})===RVS.preview.sizes.custom[RVS.preview.selectedSize]&&(e.w=Math.min(t.w,RVS.ENV.grid_sizes[RVS.preview.selectedSize]),e.h=e.w/t.w*t.h),e.w=e.w-1,t=Math.min(e.w,RVS.S.winw),i=Math.min(e.h+50,RVS.S.winh),a="fullscreen"===RVS.preview.layouttype||"fullwidth"===RVS.preview.layouttype,o="fullscreen"===RVS.preview.layouttype,tpGS.gsap.set(RVS.preview.c,{width:"d"===RVS.preview.selectedSize&&a?"100%":Math.max(690,t),height:"d"===RVS.preview.selectedSize&&o?"100%":i}),tpGS.gsap.set(RVS.preview.iframe,{maxHeight:"100%",maxWidth:"100%",margin:"auto",position:"relative",left:"50%",x:"-50%"}),RVS.preview.iframe.width=!a||"m"===RVS.preview.selectedSize?Math.min(e.w,t):"100%",RVS.preview.iframe.height=o&&"d"===RVS.preview.selectedSize?RVS.S.winh-50:e.h,RVS.F.RSDialog.center())}}();