Edit File: themify.builder.loader.min.js
/* Themify Builder - Asynchronous Script and Styles Loader */ var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(c,h,a){c instanceof String&&(c=String(c));for(var e=c.length,k=0;k<e;k++){var w=c[k];if(h.call(a,w,k,c))return{i:k,v:w}}return{i:-1,v:void 0}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(c,h,a){c!=Array.prototype&&c!=Object.prototype&&(c[h]=a.value)};$jscomp.getGlobal=function(c){return"undefined"!=typeof window&&window===c?c:"undefined"!=typeof global&&null!=global?global:c}; $jscomp.global=$jscomp.getGlobal(this);$jscomp.polyfill=function(c,h,a,e){if(h){a=$jscomp.global;c=c.split(".");for(e=0;e<c.length-1;e++){var k=c[e];k in a||(a[k]={});a=a[k]}c=c[c.length-1];e=a[c];h=h(e);h!=e&&null!=h&&$jscomp.defineProperty(a,c,{configurable:!0,writable:!0,value:h})}};$jscomp.polyfill("Array.prototype.find",function(c){return c?c:function(c,a){return $jscomp.findInternal(this,c,a).v}},"es6-impl","es3"); (function(c,h,a,e,k){c(a).ready(function(){function w(){if(tinymce!==k&&tinyMCE){tinyMCEPreInit.mceInit.tb_lb_hidden_editor.wp_autoresize_on=!1;var a=tinyMCEPreInit.mceInit.tb_lb_hidden_editor.content_css.split(",");tinyMCEPreInit.mceInit.tb_lb_hidden_editor.content_css=a[1]!==k?a[1]:a[0];tinyMCEPreInit.mceInit.tb_lb_hidden_editor.plugins="charmap,colorpicker,hr,lists,media,paste,tabfocus,textcolor,fullscreen,wordpress,wpautoresize,wpeditimage,wpemoji,wpgallery,wpdialogs,wptextpattern,wpview,wplink"; tinyMCEPreInit.mceInit.tb_lb_hidden_editor.indent="simple";tinyMCEPreInit.mceInit.tb_lb_hidden_editor.ie7_compat=!1;tinyMCEPreInit.mceInit.tb_lb_hidden_editor.root_name="div";tinyMCEPreInit.mceInit.tb_lb_hidden_editor.relative_urls=!0;tinyMCE.execCommand("mceRemoveEditor",!0,"tb_lb_hidden_editor");c("#wp-tb_lb_hidden_editor-editor-container,#wp-tb_lb_hidden_editor-editor-tools").remove()}}function A(){e.body.one("click.tbloader",".toggle_tb_builder > a, a.js-turn-on-builder",function(d){d.preventDefault(); d.stopPropagation();var b=e.body.hasClass("tb_restriction");e.LoadAsync(tbLocalScript.builder_url+"/js/themify-ticks.js",function(){b&&(TB_Ticks.init(tbLocalScript.ticks).show(),A())},null,null,function(){return"undefined"!==typeof TB_Ticks});if(!b&&!this.parentNode.classList.contains("tb_disabled_turn_on")){var g=this.classList.contains("js-turn-on-builder")?this.childNodes[0].getAttribute("data-id"):x;setTimeout(w,1);var l=e.body.children(),f=a.createDocumentFragment();for(d=tbLoaderVars.styles.length- 1;-1<d;--d)if(""!==tbLoaderVars.styles[d]){var m=a.createElement("link");m.href=tbLoaderVars.styles[d]+"?ver="+tbLocalScript.version;m.rel="preload";m.setAttribute("as","style");f.appendChild(m)}a.head.appendChild(f);var t,r=[],p=c(a).scrollTop(),q=Array.prototype.slice.call(a.head.getElementsByTagName("link")),u=Array.prototype.slice.call(a.head.getElementsByTagName("script")).concat(Array.prototype.slice.call(a.head.getElementsByTagName("style"))),y=a.createElement("div");d=a.createElement("div"); var f=a.createElement("div"),m=a.createElement("div"),v=a.createElement("div"),n=a.createElement("iframe");y.className="tb_workspace_container";d.className="tb_vertical_bars";f.id="tb_left_bar";m.id="tb_right_bar";f.className=m.className="tb_middle_bar";v.className="tb_vertical_change_tooltip";n.className="tb_iframe";n.id=n.name="tb_iframe";n.scrolling=B?"no":"yes";n.src=z+"&id="+g;d.appendChild(f);d.appendChild(n);d.appendChild(m);d.appendChild(v);y.appendChild(d);a.body.appendChild(y);d=0;for(f= tbLoaderVars.styles.length;d<f;++d)""!==tbLoaderVars.styles[d]&&(e.LoadCss(tbLoaderVars.styles[d]),r[tbLoaderVars.styles[d]+"?ver="+tbLocalScript.version]=1);tbLoaderVars.styles=null;setTimeout(function(){t=a.createElement("div");var c=a.createElement("div"),e=a.createElement("div"),b=a.getElementsByClassName("tb_front_icon")[0];t.id="tb_alert";t.className="tb_busy";c.id="tb_fixed_bottom_scroll";c.className="tb_fixed_scroll";e.id="builder_progress";e.appendChild(a.createElement("div"));a.body.insertAdjacentElement("afterbegin", c);a.body.appendChild(t);b!==k&&b.parentNode.appendChild(e)},1);e.body.off("builder_load_module_partial themify_builder_ready");c(a).off("ajaxComplete");n.addEventListener("load",function(){var b=this;e.body.one("themify_builder_ready",function(b){c(t).fadeOut(100,function(){this.classList.remove("tb_busy")});e.body[0].className="themify_builder_active builder-breakpoint-desktop";e.body[0].removeAttribute("style");B&&(e.body[0].className+=" tb_touch");"1"===tbLoaderVars.isGlobalStylePost&&(e.body[0].className+= " gs_post");y.style.display="block";f.scrollTo(0,p);e.iframe=n;e.is_builder_active=!0;setTimeout(function(){l.hide();for(var b=0,d=u.length;b<d;++b)u[b]&&u[b].parentNode&&u[b].parentNode.removeChild(u[b]);u=null;for(b=q.length-1;-1<b;--b)q[b]&&q[b].parentNode&&(d=q[b].href,r[d]===k&&-1===d.indexOf("wp-includes")&&-1===d.indexOf("admin-bar")&&(q[b].setAttribute("disabled",!0),q[b].parentNode.removeChild(q[b])));q=r=tbLoaderVars=t=null;c(".themify_builder_content,#wpadminbar,header").remove();l.filter("ul,a,video,audio").filter(":not(:has(link))").remove(); for(var d="scroll tfsmartresize debouncedresize throttledresize resize mouseenter keydown keyup mousedown assignVideo".split(" "),g=c(h),n=c(a),b=d.length-1;-1<b;--b)g.off(d[b]),n.off(d[b]),e.body.off(d[b]);a.documentElement.removeAttribute("style");a.documentElement.removeAttribute("class");var p=tbLocalScript.ticks;m.hasClass("tb_restriction")?setTimeout(function(){a.body.appendChild(m.find("#tmpl-builder-restriction")[0]);TB_Ticks.init(p,f).show()},1E3):setTimeout(function(){TB_Ticks.init(p,f).ticks()}, 5E3);setTimeout(function(){"undefined"!==typeof Rellax&&(Rellax.disableCheckPosition(),Rellax.destroy());for(var a="ThemifyBuilderModuleJs c _wpemojiSettings twemoji themifyScript tbLocalScript themify_vars tbScrollHighlight google ThemifyGallery Animation $f Froogaloop SliderProSlide SliderProUtils ThemifySlider FixedHeader LayoutAndFilter WOW Waypoint $slidernav google Microsoft Rellax module$contents$MapsEvent_MapsEvent module$contents$mapsapi$overlay$OverlayView_OverlayView wc_add_to_cart_params woocommerce_params wc_cart_fragments_params wc_single_product_params tf_mobile_menu_trigger_point themifyMobileMenuTrigger".split(" "), b=0,c=a.length;b<c;++b)"undefined"!==typeof h[a[b]]&&(h[a[b]]=null);h.wp.emoji=null},3E3)},800)});if("__rocketLoaderLoadProgressSimulator"in b.contentWindow)var d=setInterval(function(){"complete"===b.contentWindow.__rocketLoaderLoadProgressSimulator.simulatedReadyState&&(clearInterval(d),f=b.contentWindow,m=f.jQuery("body"),f.themifyBuilder.post_ID=g,m.trigger("builderiframeloaded.themify",b))},10);else{var f=b.contentWindow;var m=f.jQuery("body");f.themifyBuilder.post_ID=g;m.trigger("builderiframeloaded.themify", b)}},{once:!0})}})}var B=tbLoaderVars.isTouch?!0:!1;if(wp===k||wp.customize===k){var g=a.getElementsByClassName("themify_builder_content");var l=a.getElementsByClassName("toggle_tb_builder")[0];var x=l!==k?l.getElementsByClassName("tb_front_icon")[0].getAttribute("data-id"):!1;for(var r=!1,b=g.length-1;-1<b;--b){var p=g[b].getAttribute("data-postid");p===x&&(r=!0);if(null!==g[b].firstElementChild&&!g[b].classList.contains("not_editable_builder")){var f=a.createElement("a"),v=a.createElement("span"); f.href="javascript:void(0);";f.className="tb_turn_on js-turn-on-builder";v.className="dashicons dashicons-edit";v.setAttribute("data-id",p);f.appendChild(v);f.appendChild(a.createTextNode(g[b].parentNode.classList.contains("tbp_template")?tbLoaderVars.editTemplate:tbLoaderVars.turnOnBuilder));g[b].insertAdjacentElement("afterEnd",f)}}l===k&&(l=a.getElementsByClassName("js-turn-on-builder")[0],l!==k&&(x=l.getElementsByClassName("dashicons-edit")[0].getAttribute("data-id")));!1===r?(x=null,l.classList.add("tb_disabled_turn_on")): l.classList.remove("tb_disabled_turn_on");g=l=null}var z=0<h.location.href.indexOf("?")?"&":"?",z=h.location.href.replace(h.location.hash,"").replace("#","")+z+"tb-preview=1&ver="+tbLocalScript.version;A();if(!a.body.classList.contains("tb_restriction"))if("#builder_active"===h.location.hash)c(".toggle_tb_builder > a").first().trigger("click"),h.location.hash="";else{l=a.createDocumentFragment();b=a.createElement("link");g=tinyMCEPreInit.mceInit.tb_lb_hidden_editor.content_css;r=tinyMCEPreInit.mceInit.tb_lb_hidden_editor.cache_suffix; b.href=z;b.rel="prerender prefetch";l.appendChild(b);if(g)for(g=g.split(","),b=0,p=g.length;b<p;++b)g[b]+=(-1<g[b].indexOf("?")?"&":"?")+r,f=a.createElement("link"),f.href=g[b],f.rel="prefetch",f.setAttribute("crossorigin",!0),l.appendChild(f);a.head.appendChild(l)}})})(jQuery,window,document,Themify,void 0);
Back to File Manager