File "help.js"
Full Path: /home/jlklyejr/public_html/post-date/wp-content/plugins/revslider/admin/assets/js/modules/help.js
File size: 21.45 KB
MIME-type: text/plain
Charset: utf-8
jQuery(function(){var w,j,d,m,Q,S,c,I,r,L,p,o,e,h,n,u,_,f,y,g,q,i,v,t,b,E,k,F,D,M,z,J,W,s,B,C,U,a,X,K,R,Y,x,T,O,V,Z,H,$,ee,te,se,ae;function ie(){jQuery("head").append('<link rel="stylesheet" type="text/css" href="'+RVS.ENV.plugin_url+'admin/assets/css/help.css" />'),RVS.F.ajaxRequest("get_help_directory",{},function(e){var t;if(e.success){try{t=JSON.stringify(e.data),t=JSON.parse(t)}catch(e){t=!1}if(t){S=t.translations,m=t.helpindex,Y=!0,win=jQuery(window),c=jQuery("body"),e='<div id="help_mode_modal"><div class="help-mode-title"><span id="help_mode_title_wrap" class="help-icon-default"><i class="material-icons">touch_app</i><i class="material-icons">settings</i><i class="material-icons">gamepad</i><i class="material-icons">burst_mode</i><i class="material-icons">layers</i><span id="help_mode_title">'+S.helpMode+'</span></span><span id="help_mode_main_title">'+S.instructions+'</span><div id="help_mode_video_wrap"><video id="help_mode_video" width="520" height="292" muted loop playsinline><source src="'+RVS.ENV.plugin_url+'/admin/assets/videos/hover_tutorial.mp4" type="video/mp4" /></video></div></div><div class="help-mode-description"><div class="help-mode-section"><div id="help_mode_description"></div></div><div id="help-mode-buttons" class="help-mode-section"><div id="help_mode_documentation" class="help-mode-button"><i class="material-icons">library_books</i> '+S.viewDocs+'</div><div id="help_mode_option" class="help-mode-button"><i class="material-icons">near_me</i><i class="material-icons">settings</i><i class="material-icons">gamepad</i><i class="material-icons">burst_mode</i><i class="material-icons">layers</i> '+S.showOption+'</div><div class="tp-clearfix"></div></div></div><div id="help_mode_search_wrap"><div id="help_mode_search" class="help-mode-section"><input id="help_search_input" type="text" placeholder="'+S.search+'\'><span id=\'help_input_clear\'><i class=\'material-icons\'>close</i></span></div><div id="help_search_results"><div class="help-results-container"><div id="help-options-wrap" class="help-results-wrap"><div id="help_options_results" class="help-results"></div></div></div><div class="help-results-container"><div id="help-faqs-wrap" class="help-results-wrap"><div id="help_faq_results" class="help-results"></div></div></div><div class="tp-clearfix"></div></div></div><span id="help_modal_close"><i class="material-icons help-no-drag">close</i></span></div>',jQuery(e).prependTo(jQuery("#the_right_toolbar")),d=jQuery("#help_mode_title"),f=jQuery("#help_mode_title_wrap"),W=jQuery("#help_mode_description"),jQuery("#help-mode-buttons"),k=jQuery("#help_faq_results"),K=jQuery("#help_search_results"),R=jQuery("#help_options_results"),jQuery("#help_mode_search"),Z=jQuery("#help_search_input").on("focus",he).on("keyup",Ge),x=jQuery("#help_input_clear").on("click",function(){Z.val("").trigger("keyup")}),d.data("origtext",d.html()),I=jQuery("#help_mode_modal").draggable({cancel:".help-no-drag, .help-mode-description, #help_mode_search_wrap"}).on("mouseenter",ke).on("mouseleave",we),jQuery("#help_modal_close").on("click",function(){c.removeClass("help-mode-active")}),b=jQuery("#help_mode_documentation").on("click",function(){jQuery(".help-input-focus").removeClass("help-input-focus"),window.open(this.dataset.link)}),C=jQuery("#help_mode_option").on("click",He),V=jQuery(".help-results-wrap").RSScroll({wheelPropagation:!0,suppressScrollX:!0,minScrollbarLength:100}),y=jQuery("#help_mode_video"),q=jQuery("#help_mode_video_wrap"),O=jQuery(".help-mode-description");for(var s=[[".fake_on_button","slider","size.custom.d"],['*[data-r="source.woo.types"]',"slider","source.post.types"],['*[data-r="source.woo.category"]',"slider","source.post.category"],['*[data-r="source.woo.sortBy"]',"slider","source.post.sortBy"],['*[data-r="source.woo.sortDirection"]',"slider","source.post.sortDirection"],['*[data-r="source.woo.maxProducts"]',"slider","source.post.maxPosts"],['*[data-r="source.woo.excerptLimit"]',"slider","source.post.excerptLimit"],["#row_column_structure","layer","row_column_structure"],[".colselector label_bigicon","layer","row_column_structure"],[".layer_rowbreak_icons","layer","group.columnbreakat"],[".modal_hor_selector","slider","modal.horizontal"],[".modal_ver_selector","slider","modal.vertical"]],a=0;a<s.length;a++)jQuery(s[a][0]).attr({"data-helproot":s[a][1],"data-helpkey":s[a][2]});HelpGuide.addOnsHelp.length&&HelpGuide.extendHelpAddOns(HelpGuide.addOnsHelp),w="",Q=0,de(m,' class="help-directory-top"'),HelpGuide.allHelpPaths=jQuery(w),pe(),v=[],D=[],jQuery(".rbm_close").each(function(e){D[e]=jQuery(this)}),L=jQuery("#rbm_slider_api"),E=jQuery("#layeraction_list"),M=jQuery("#rbm_layer_action"),p=jQuery("#add_layer_toolbar_wrap"),U=jQuery("#the_right_toolbar_inner"),g=jQuery("#help_mode_main_title");for(var i,l,r,o,n=0;n<3;n++)for(l in o=0===n?"slider":1===n?"slide":"layer",i=m.editor_settings[o+"_settings"].addons)i.hasOwnProperty(l)&&(l=l.replace("_addon",""),r="revslider-"+l+"-addon",RVS.SLIDER.settings.addOns.hasOwnProperty(r)&&RVS.SLIDER.settings.addOns[r].enable||HelpGuide.deactivate(l+"_addon"));re()}else console.log("help directory error")}else console.log("help directory error")})}function le(){RVS.WIN.trigger("resize")}function re(){clearTimeout(F),t?(clearTimeout(B),clearTimeout(n),clearTimeout(o),clearTimeout(r),T=a=t=!1,RVS.WIN.off(".helpguide"),c.off(".helpguide").removeClass("help-mode-activated help-mode-active"),jQuery(".help-input-focus").removeClass("help-input-focus"),F=setTimeout(G,500)):(t=!0,x.trigger("click"),tpGS.gsap.set(I,{top:50+help_menu.clientHeight,left:"auto",right:"100%",bottom:"auto",height:"auto"}),b.hide(),C.hide(),O.hide(),d.removeClass(l).addClass("help-icon-default").html(d.data("origtext")),c.addClass("help-mode-activated help-mode-active").on("mouseenter.helpguide",se,ve).on("mouseenter.helpguide",ae,ge).on("mouseleave.helpguide",se+","+ae,be).on("mouseover.helpguide",".toolbar_selector_icons",oe).on("mouseout.helpguide",".toolbar_selector_icons",ne),c.on("click.helpguide",".help-button",_e).on("mouseenter.helpguide",".help-hover",Se),n=setTimeout(je,3e3),RVS.WIN.on("resize.helpguide",me),me(),G(!0)),clearTimeout(z),z=setTimeout(le,100)}function G(e){y&&y.length&&(e?(g.text(S.instructions),q.show(),y[0].currentTime=0,y[0].play().then(function(){X=!0}).catch(function(e){X=!1}),y.show()):(g.text(S.selectresult),q.hide(),X&&y[0].pause(),y.hide()))}function oe(){(a=c.hasClass("help-mode-active"))&&(clearTimeout(o),c.removeClass("help-mode-active"))}function ne(){a&&(c.addClass("help-mode-active"),clearTimeout(o),ye())}function de(e,t){var s=Object.keys(e),a=s.length,i=a-1;w+="<ul"+t+">";for(var l=0;l<a;l++){var r=s[l],o=e[r],n=HelpGuide.verifyObject(o)||"addons"===r;if(n){n=n&&o.helpPath;if(n){var d,c,p,h="",u="",_="",m="",f="",y='<i class="material-icons">keyboard_arrow_right</i>',n=!0!==n?S.docs:S.tutorial;if(o.description&&(f='<span class="help-text">'+o.description+"</span>"),o.article&&(u='<span class="basic_action_button longbutton help-article" data-article="'+o.article+'"><i class="material-icons">assignment</i>'+n+"</span>"),o.section)if(Array.isArray(o.section))for(var _="",g=o.section.length,v=0;v<g;v++)_+='<span class="help-section">'+o.section[v].replace(/\-\>/g,y)+"</span>";else _='<span class="help-section">'+o.section.replace(/\-\>/g,y)+"</span>";if(o.highlight&&HelpGuide.verifyObject(o.highlight)&&(p=c=d=n="",k=o.dependency_id?' id="revhelp_'+o.dependency_id+'"':"",(m=o.highlight).menu&&(n=' data-menu="'+m.menu+'"'),m.modal&&(d=' data-modal="'+m.modal+'"'),m.focus&&(c=' data-focus="'+m.focus+'"'),m.scrollTo&&(p=' data-scrollto="'+m.scrollTo+'"'),m.dependencies&&Array.isArray(m.dependencies)&&(p+=" data-dependencies='"+JSON.stringify(m.dependencies)+"'"),m="<span"+k+' class="basic_action_button longbutton help-option"'+n+p+c+d+'><i class="material-icons">settings</i>'+S.option+"</span>"),l===i){for(var b=0;b<Q;b++)h+="</li>";Q=0}w+='<li class="help-directory-menu help-directory-target" data-path="'+r+'"><div class="help-directory-item"><i class="material-icons">'+j+"</i>"+o.title+'</div><ul><li><div class="help-description">'+_+f+u+m+"</div></li></ul></li>"+h}else{switch(r){case"general_how_to":j="help_outline";break;case"slider_settings":j="settings";break;case"navigation_settings":j="gamepad";break;case"slide_settings":j="burst_mode";break;case"layer_settings":j="layers"}var k=r.replace(/\_/g," ").replace(/\b\w/g,function(e){return e.toUpperCase()});w+='<li class="help-directory-menu" data-path="'+r+'"><div class="help-directory-item"><i class="material-icons help-arrow-down">folder</i><i class="material-icons help-arrow-up">folder_open</i><span>'+k+"</span></div>",Q++,de(o,"")}}}w+="</ul>"}function ce(){var e=jQuery(this);return e.html()?e.children("li").not(".help-hide-addon").length:(e.remove(),!1)}function pe(){jQuery('.help-directory-menu[data-path="addons"]').each(function(){var e=jQuery(this);e.children("ul").filter(ce).length?e.show():e.hide()})}function he(){v=[],HelpGuide.allHelpPaths.find(".help-directory-target").each(function(e){for(var t="",s=jQuery(this).parents(".help-directory-menu").not(".help-hide-addon").toArray().reverse(),a=s.length,i=0;i<a;i++)t+=s[i].dataset.path+".";v[v.length]=t+this.dataset.path})}function P(e,t){var s;return 1<(t="string"==typeof t?t.split("."):t).length?(s=t.shift(),!!e.hasOwnProperty(s)&&P(e[s],t)):!!e.hasOwnProperty(t[0])&&e[t[0]]}function ue(e,t,s){if(t&&((s=s||function(e,t){var s=e.attr("class");if(s){if(-1!==s.search(ee))return e.closest(".slider_general_collector").length?"slider":"nav";if(-1!==s.search(te)||-1!==t.search("#slide#"))return"slide";if(-1!==s.search($)||-1!==t.search("#layer#"))return"layer"}return e.closest("#rbm_layer_action").length?"layer":e.closest(".mode__sliderlayout").length?"slider":e.closest(".mode__navlayout").length?"nav":e.closest(".mode__slidecontent").length?"layer":!!e.closest(".mode__slidelayout").length&&"slide"}(e,t))&&("actions"===(e=-1!==t.indexOf("actions.")&&"actions")&&(e=-1!==t.search(/panorama|whiteboard|beforeafter/)?"addons":"actions"),(e=0===t.indexOf("#frame#.")?-1!==t.search("explode")&&"addons":e)||(e="slider"!==s?s:"general",e+="_submodule_trigger",e=jQuery("."+e+".selected").attr("id")),e))){"nav"===s&&(s="navigation");var e=function(e,t){switch(t){case"progress":if("navigation_settings"===e)return"progress_bar";break;case"prev_image":return"preview_image";case"holiday_snow":return"snow"}return t}(s+="_settings",e=RVS.F.trim(e).toLowerCase().replace(".","").replace("&","and").replace(/\-/g,"_").replace(/\s/g,"_")),a=m.editor_settings[s]&&m.editor_settings[s][e];if(a||(e="addons",a=m.editor_settings[s]&&m.editor_settings[s][e]),a){if(h="",!function e(t,s,a){if(!h){if(i=t.helpPath){for(var i,l=(i=i.split(",")).length,r=0;r<l;r++)if(RVS.F.trim(i[r])===a){h=s;break}if(h)return}var o=Object.keys(t);l=o.length;for(var n=0;n<l;n++)HelpGuide.verifyObject(t[o[n]])&&e(t[o[n]],s+"."+o[n],a)}}(m.editor_settings[s][e],"",t),h)return["editor_settings."+s+"."+e+h,m.editor_settings[s][e],h];if(0<=t.indexOf("addOns.tpack"))return["editor_settings.slide_settings.addons.transitionpack."+(a=(a=t.split("."))[a.length-1]),m.editor_settings.slide_settings.addons.transitionpack,"."+a]}}return!1}function N(e,t,s){var a='<span class="help-button',i="";switch(s&&(a+=" help-button-"+s),a+='" data-path="'+t+'">',s){case"slider":i='<i class=" material-icons">settings</i>';break;case"nav":i='<i class=" material-icons">gamepad</i>';break;case"slide":i='<i class=" material-icons">burst_mode</i>';break;case"layer":i='<i class=" material-icons">layers</i>';break;case"doc":i='<i class=" material-icons">library_books</i>';break;default:i='<i class=" material-icons">help_outline</i>'}return a+=i+"<span>"+e+"</span></span>"}function _e(){var e=this.dataset.path;fe(P(m,e),e)}function me(e,t){var s=Math.max(R.height(),k.height()),s=Math.min(RVS.WIN.height()/3,s);V.height(s),V[0].scrollTop=0,V[1].scrollTop=0,V.RSScroll("update")}function l(e,t){return(t.match(/(^|\s)help-\icon-\S+/g)||[]).join(" ")}function fe(e,t){var s=e.highlight,a=e.buttonTitle||e.title;t="general_how_to"!==(t=t.split("."))[0]?t[1].replace("_settings",""):"faq",g.text(a),d.html(t+" "+S.options),f.removeClass(l).addClass("help-icon-"+t),W.html(e.description),O.show(),b.attr("data-link",e.article).css("display","inline-block"),C.removeAttr("data-menu data-modal data-scrollto data-focus data-dependencies").removeClass(l).addClass("help-icon-"+t).css("display","inline-block"),s?(s.menu&&C.attr("data-menu",s.menu),s.modal&&C.attr("data-modal",s.modal),s.scrollTo&&C.attr("data-scrollto",s.scrollTo),s.focus&&C.attr("data-focus",s.focus),s.dependencies&&Array.isArray(s.dependencies)&&C.attr("data-dependencies",JSON.stringify(s.dependencies))):C.hide(),c.addClass("help-mode-active")}function ye(){o=setTimeout(function(){e||u||s||c.removeClass("help-mode-active")},3e3)}function ge(){var e;if(this.className&&-1!==this.className.search("frame_list_title")){var t=jQuery(this).closest(".keyframe_liste").attr("data-frame");if(!t)return;switch(t=t.replace("frame_","")){case"0":e="animation.in.from";break;case"1":e="animation.in.to";break;case"999":e="animation.out.to";break;default:e="animation.keyframe.to"}}else e=this.dataset.evt;this.dataset.helpkey=e,ve.call(this)}function ve(){var t,e,s,a,i,l=jQuery(this);l.hasClass("opensettingstrigger")||l.hasClass("formcontainer")||(clearTimeout(n),clearTimeout(r),jQuery(".help-input-focus").removeClass("help-input-focus"),i=(i=this.dataset.helpkey||this.dataset.r)||(t=(t=l).attr("data-select")?jQuery(t.attr("data-select")):t.hasClass("ddTP")?t.prev("select"):t.hasClass("revbuilder-colorpicker")?t.find(".revbuilder-cpicker-component"):t.find("input[data-r]")).attr("data-helpkey")||t.attr("data-r")||"",t&&t.length||(t=l),s=t,(i=-1!==(e=i).search("parallax.levels")&&3===(e=e.split(".")).length?e[0]+"."+e[1]:-1!==e.search("info.params")&&4===(e=e.split(".")).length?e[0]+"."+e[1]+"."+e[3]:s.hasClass("added_slide_transition")?"added_slide_transition":-1!==e.search(/nav\.|bullets\./)&&(s.closest("#sr_bullets_styles_fieldset, #sr_tabs_styles_fieldset").length||s.closest("#sl_bullets_styles_fieldset, #sl_tabs_styles_fieldset").length)?-1===e.search("def")?"navigation.styles":"navigation.styles.default":e)&&(s=i,"radio"===this.type&&(s+="."+this.value),a=(a=ue(t,s,l.attr("data-helproot")))||("radio"===this.type?ue(t,i,l.attr("data-helproot")):a))&&(T=_=!0,r=setTimeout(function(){var e;_&&(clearTimeout(o),x.trigger("click"),u=!0,G(),fe(P(a[1],a[2].substr(1)),a[0]),(l.hasClass("revbuilder-colorpicker")||l.hasClass("tponoffwrap")?(e=l.closest(".tponoffwrap")).length?e:l:l.attr("class")&&-1===l.attr("class").search(/bg_alignselector|layer_hor_selector|layer_ver_selector|layer_content_hor_selector|layer_content_ver_selector/)?t:l).addClass("help-input-focus"))},500)))}function be(){u=_=!1,ye()}function ke(){clearTimeout(o),e=!0}function we(){e=!1,T&&!s&&ye()}function je(){e||s||(T=!0,we())}function Qe(){jQuery(this).removeClass(function(e,t){return(t.match(/(^|\s)help-\hover-\S+/g)||[]).join(" ")})}function Se(){J&&(J=!1,c.off(".helpguidehover"),jQuery(".help-hover").removeClass("help-hover").each(Qe))}function Ce(){c.off(".helpguidehover").one("click.helpguidehover",Se)}function A(e,t){clearTimeout(i),Se(),"layers"===e?(t=t||"text",p.addClass("help-hover"),p.addClass("help-hover-"+t)):(t=p.prev().addClass("help-hover"),"slideorder"===e?t.addClass("help-hover-slideorder"):"staticlayers"===e&&t.addClass("help-hover-staticlayers")),J=!0,i=setTimeout(Ce,100)}function Re(){var e=jQuery(this);e.hasClass("tponoff")?e=e.closest(".tponoffwrap"):e.hasClass("revbuilder-cpicker-component")&&(e=e.closest(".revbuilder-colorpicker")),e.addClass("help-input-focus")}function xe(e){var t,s,a,i,l,r,o,n,d,c;switch((e=e.split("::"))[0]){case"layerselected":if(c=2===e.length?e[1]:c)for(d="",-1!==(c=(o=c.split("||"))[0]).search("{{")&&(d=" .tp-"+(r=(c=c.split("{{"))[1].split("}}")[0]),c=r),a=o.length,i="",t=0;t<a;t++)0<t&&(i+=", "),s=o[t],i+="._lc_type_"+(s=d?s.split("{{")[0]:s)+d;else i="._lc_";try{l=jQuery(i)}catch(e){l=!1}l&&l.length?n=function(e){for(var t=e[0].className.split(" "),s=t.length;s--;)if(-1!==t[s].search("_lc_type_"))return t[s].replace("_lc_type_","");return!1}(r=(r=(l=l.hasClass("_lc_content_")?l.closest("._lc_"):l).filter(".selected")).length?r:l.eq(0).trigger("click")):A("layers",c);break;case"addlayer":A("layers","text");break;case"addslide":A("slides");break;case"slideorder":A("slideorder");break;case"staticlayers":A("staticlayers");break;default:try{jQuery(e[0]).trigger("click")}catch(e){}}return n}function Te(e){if((e=JSON.parse(e))&&Array.isArray(e))for(var t,s,a,i,l,r,o,n=e.length,d=0;d<n;d++)if(a=e[d],HelpGuide.verifyObject(a)){if(!a.dependency||a.dependency===t){for(l=a.path.split("."),i=RVS.SLIDER,p=l.length,s=!1,h=0;h<p;h++){if(o="#layer#"===(o=l[h])&&void 0!==RVS.selLayers&&Array.isArray(RVS.selLayers)&&RVS.selLayers.length?void 0!==RVS.S.clickedLayer?lastClickedLayer:RVS.selLayers[0].toString():"#slide#"===o&&void 0!==RVS.S.slideId?RVS.S.slideId:"#frame#"===o&&void 0!==RVS.S.keyFrame?RVS.S.keyFrame:"#action#"===o&&void 0!==RVS.S.actionIdx?RVS.S.actionIdx:o,!i.hasOwnProperty(o))return 1;i=i[o]}if(t=i="true"===(r=i)||"on"===r||"false"!==r&&"off"!==r&&r,"string"==typeof a.value&&-1!==a.value.search("::")){for(var c=a.value.split("::"),p=c.length,h=0;h<p;h++)if(c[h]===i){s=!0;break}}else a.value===i&&(s=!0);if(!s)return a.target&&(H="[value='"+a.target+"']"),He.call(HelpGuide.allHelpPaths.find("#revhelp_"+a.option)),1}}else t=xe(e[d])}function Oe(e){for(var t,s=(e=e.split(",")).length,a=0;a<s;a++)(t=jQuery(RVS.F.trim(e[a]))).hasClass("selected")||("gst_layer_5"===t.attr("id")?xe("layerselected")&&!M.is(":visible")&&t.trigger("click"):"gst_sl_11"===t.attr("id")&&(jQuery(".emc_toggle_wrap").removeClass("open"),L.is(":visible"))||t.trigger("click"))}function Ve(){try{this.trigger("click")}catch(e){}}function He(e){e&&e.stopImmediatePropagation(),jQuery(".help-input-focus").removeClass("help-input-focus");var t,s,a,i,e=jQuery(this),l=e.attr("data-modal"),r=l&&"actions"===l,o=e.attr("data-dependencies");!r&&o&&Te(o)||(t=e.attr("data-menu"),s=e.attr("data-focus"),e=e.attr("data-scrollto"),l||jQuery.each(D,Ve),t&&Oe(t),s&&function(e){jQuery(".help-input-focus").removeClass("help-input-focus"),jQuery(".lal_group_member.selected").removeClass("selected"),e=e.replace("*wildcard*",H),H=":checked";var t,s,a,i=-1!==e.search("{first}");-1!==e.search("{frame}")?(s=!0,e=e.replace("{frame}","")):-1!==e.search("{keyframe}")&&(t=!0,e=e.replace("{keyframe}","")),i&&(e=e.replace("{first}",""));try{a=jQuery(e)}catch(e){return}t&&!a.length&&(a=jQuery(".add_frame_after").first()),(s||t)&&a.closest(".keyframe_liste").css("z-index","29"),i?a.eq(0).addClass("help-input-focus"):a.each(Re)}(s),e&&(-1===(l=e).search("{actions}")?(a="offset",i=U):(a="position",i=E,l=l.replace("{actions}","")),(l=jQuery(l).filter(":visible")).length)&&(i.scrollTop(0),i.scrollTop(l[a]().top)),r&&o&&Te(o))}function Ge(){var e,t,s="";if(this.value&&2<this.value.length){for(var a=function(e){e=RVS.F.trim(e);for(var t,s,a,i,l,r,o="",n="",d="",c="",p="",h=v.length,u=[],_=0;_<h;_++)if(t=(s=P(m,v[_])).keywords)for(i=t.length,r=0;r<i;r++){try{l=t[r].search(e)}catch(e){continue}if(-1!==l&&-1===u.indexOf(v[_]))if(u[u.length]=v[_],a=s.buttonTitle||s.title,"general_how_to"===v[_].split(".")[0])o+=N(a,v[_],s.helpPath);else switch(v[_].split(".")[1]){case"slider_settings":n+=N(a,v[_],"slider");break;case"slide_settings":d+=N(a,v[_],"slide");break;case"layer_settings":c+=N(a,v[_],"layer");break;case"navigation_settings":p+=N(a,v[_],"nav")}}return[o,n,p,d,c]}(this.value.toLowerCase()),i=1;i<5;i++)a[i]&&(s+=a[i]);s?(e=!0,R.html(s).show(),c.removeClass("help-options-empty")):(R.hide(),c.addClass("help-options-empty")),a[0]?(t=!0,s=a[0],k.html(s).show(),c.removeClass("help-faqs-empty")):(k.hide(),c.addClass("help-faqs-empty"))}e||t?(d.html(S.helpMode),f.removeClass(l).addClass("help-icon-default"),G(),b.hide(),C.hide(),K.show(),x.css("visibility","visible"),e=Math.max(R.height(),k.height()),t=Math.min(RVS.WIN.height()/3,e),V.height(t),V[0].scrollTop=0,V[1].scrollTop=0,V.RSScroll("update"),clearTimeout(B),B=setTimeout(function(){V.RSScroll("update")},250)):(K.hide(),x.css("visibility","hidden"),G(!0)),O.hide()}"undefined"==typeof jQuery?console.log("jQuery not available"):(H=":checked",$=new RegExp("layerinput|actioninput"),ee=new RegExp("sliderinput|navstyleinput"),te=new RegExp("slideinput|added_slide_transition"),se="*[data-r], *[data-select], *[data-helpkey], .ddTP, .revbuilder-colorpicker, .tponoffwrap, .fake_on_button, .added_slide_transition, .lal_group_member",ae=".frame_list_title, .intelligent_buttons",RVS.DOC.on("click","#help_menu .tponoffwrap",function(e){e.stopImmediatePropagation(),void 0!==RVS.ENV.plugin_url&&"undefined"!=typeof RVS&&"undefined"!=typeof tpGS&&(Y?re:ie)()}),(Y?re:ie)(),showhidehelpdata.checked=!0,RVS.F.turnOnOffVisUpdate({btn:showhidehelpdata,input:showhidehelpdata}),jQuery(".help_wrap").on("mouseenter",function(){tpGS.gsap.set("#help_mode_modal",{inset:50+help_menu.clientHeight+"px 100% auto auto"}),s=!0,t&&(a=!0,ne())}).on("mouseleave",function(){tpGS.gsap.set("#help_mode_modal",{inset:50+help_menu.clientHeight+"px 100% auto auto"}),s=!1}),HelpGuide.toggleHelpAddOn=function(e,t){t=t?"removeClass":"addClass";HelpGuide.allHelpPaths.find('.help-directory-menu[data-path="'+e+'"]')[t]("help-hide-addon"),pe(),x.trigger("click")},HelpGuide.extendHelpAddOns=function(e,t){for(var s=e.length,a=0;a<s;a++){var i=e[a];if(HelpGuide.verifyObject(i))for(var l,r,o,n=i.slug,d=0;d<3;d++)l=i[o=0===d?"slider":1===d?"slide":"layer"],HelpGuide.verifyObject(l)&&((r={})[n]=l,t?(j="extension",de(r,w=""),jQuery('.help-directory-menu[data-path="'+o+'_settings"]').find('.help-directory-menu[data-path="addons"]').append(w)):jQuery.extend(!0,m.editor_settings[o+"_settings"].addons,r))}})});