| Server IP : 37.27.51.148 / Your IP : 216.73.217.84 Web Server : nginx/1.14.1 System : Linux libra 4.18.0-553.51.1.el8_10.x86_64 #1 SMP Wed Apr 30 20:24:04 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.3.31 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/html/wp-content/plugins/thrive-leads/js/ |
Upload File : |
(()=>{window.TL_Front=window.TL_Front||{},window.ThriveGlobal=window.ThriveGlobal||{$j:jQuery.noConflict()};var e=".thrv_responsive_video iframe, .thrv_custom_html_shortcode iframe",t=".thrv_responsive_video video source",o=!1,r="undefined"!=typeof TL_Const&&TL_Const.trigger_based_form_types?TL_Const.trigger_based_form_types:["lightbox","screen_filler","slide_in","ribbon"],n=["shortcode_"];TL_Front.add_page_css=function(e){ThriveGlobal.$j.each(e,(function(e,t){if(e+="-css",-1!==(t=t.replace(/^http(s)?:\/\//,"//")).indexOf("thrive_flat")){var o=document.createElement("div");if(o.classList.add("tve-cb"),document.body.append(o),"both"===getComputedStyle(o).clear)return void o.remove();o.remove()}ThriveGlobal.$j("#"+e).length||ThriveGlobal.$j('link[href="http:'+t+'"]').length||ThriveGlobal.$j('link[href="https:'+t+'"]').length||ThriveGlobal.$j('<link rel="stylesheet" id="'+e+'" type="text/css" href="'+t+'"/>').prependTo("head")}))},TL_Front.lightspeed_assets=function(e){var t=function(){return ThriveGlobal.$j('link[href*="thrive_flat.css"]').length>0},r=[];if(e.css){if(e.css.files)for(var n in e.css.files){var i="flat"===n;(!t()&&i||!i)&&ThriveGlobal.$j('<link rel="stylesheet" href="'+e.css.files[n]+'"/>').prependTo("head")}e.css.inline&&e.css.inline.length&&e.css.inline.forEach((function(e){t()||ThriveGlobal.$j(e).prependTo("head")}))}if(e.js)for(var s in e.js)TCB_Front&&!TCB_Front.isModuleLoaded(s)&&r.push(s);!function t(){if(r.length){var n=r.shift();TL_Front.add_head_script(e.js[n],"tl-lightspeed-"+n,t)}else o=!0}()},TL_Front.conditional_display=function(e){void 0!==e&&e.lazy_load_conditional_preview&&tcb_condition_sets&&e.lazy_load_conditional_preview.forEach((function(e){-1===tcb_condition_sets.findIndex((function(t){return t.key===e.key}))&&tcb_condition_sets.push(e)}))},TL_Front.$document=ThriveGlobal.$j(document),TL_Front.extendConst=function(e){TL_Const.current_screen&&delete e.current_screen,ThriveGlobal.$j.extend(!0,TL_Const,e)},TL_Front.document_write=function(e){ThriveGlobal.$j("body").append(e)},TL_Front.add_head_script=function(e,t,o){var r=document.createElement("script"),n=ThriveGlobal.$j("head")[0];r.async=!0,"function"==typeof o&&(r.onload=r.onreadystatechange=o),void 0!==t&&(r.id=t),r.src=e,n.insertBefore(r,n.firstChild)},TL_Front.add_page_js=function(e,t){"function"!=typeof t&&(t=function(){});var o=0;ThriveGlobal.$j.each(e,(function(e,t){if("tve_frontend"===e&&"undefined"!=typeof TCB_Front)return!0;if(e+="-js",t&&!ThriveGlobal.$j("#"+e).length&&!ThriveGlobal.$j('script[src="'+t+'"]').length){if(o++,-1!==t.indexOf("connect.facebook.net"))return TL_Front.add_head_script(t,e,(function(){o--})),!0;ThriveGlobal.$j.getScript(t,(function(){o--}))}})),function e(){0!==o?setTimeout(e,50):t()}()},TL_Front.send_impression=function(e,t){if(e){t=t||{};var o={security:TL_Const.security,action:TL_Const.action_impression,tl_data:e,current_screen:TL_Const.current_screen};ThriveGlobal.$j.each(TL_Const.custom_post_data,(function(e,t){o[e]=t})),t.useBatching&&window.TVE_Dash&&!TVE_Dash.ajax_sent?TVE_Dash.add_load_item("tl_impression",o):ThriveGlobal.$j.post(TL_Const.ajax_url,o)}},TL_Front.isViewportBasedForm=function(e){return n.some((function(t){return 0===e.indexOf(t)}))},TL_Front.setupViewportImpressions=function(e){e&&0!==Object.keys(e).length&&(TL_Front.deferred_impressions=TL_Front.deferred_impressions||{},TL_Front.viewport_impressions=TL_Front.viewport_impressions||{},Object.keys(e).forEach((function(t){TL_Front.isViewportBasedForm(t)?TL_Front.viewport_impressions[t]=e[t]:-1!==r.indexOf(t)&&(TL_Front.deferred_impressions[t]=e[t])})))},TL_Front.do_impression=function(){if(TL_Front.impressions_data){var e={},t={};Object.keys(TL_Front.impressions_data).forEach((function(o){-1!==r.indexOf(o)||TL_Front.isViewportBasedForm(o)?t[o]=TL_Front.impressions_data[o]:e[o]=TL_Front.impressions_data[o]})),Object.keys(t).length>0&&(TL_Front.setupViewportImpressions(t),TL_Front.initViewportObservers()),Object.keys(e).length>0&&TL_Front.send_impression(e,{useBatching:!0})}},TL_Front.initViewportObservers=function(){TL_Front.viewport_impressions&&0!==Object.keys(TL_Front.viewport_impressions).length&&("IntersectionObserver"in window?(TL_Front.viewportObserver||(TL_Front.viewportObserverInitialCallbacks=TL_Front.viewportObserverInitialCallbacks||new WeakMap,TL_Front.viewportObservedElements=TL_Front.viewportObservedElements||new WeakSet,TL_Front.viewportObserver=new IntersectionObserver((function(e){e.forEach((function(e){var t=e.target;if(TL_Front.viewportObserverInitialCallbacks.has(t)){if(e.isIntersecting){var o=ThriveGlobal.$j(t),r=o.attr("data-tl-type")||o.closest(".tve-leads-conversion-object").attr("data-tl-type");r&&TL_Front.viewport_impressions[r]&&(TL_Front.trackViewportImpression(r),TL_Front.viewportObserver.unobserve(t),TL_Front.viewportObservedElements.delete(t))}}else TL_Front.viewportObserverInitialCallbacks.set(t,!0)}))}),{threshold:.5})),Object.keys(TL_Front.viewport_impressions).forEach((function(e){if(!TL_Front.viewport_impressions[e]._tracked){var t=ThriveGlobal.$j('.tve-leads-conversion-object[data-tl-type="'+e+'"]');if(t.length){var o=t[0];TL_Front.viewportObservedElements.has(o)||(TL_Front.viewportObservedElements.add(o),TL_Front.viewportObserver.observe(o))}}}))):Object.keys(TL_Front.viewport_impressions).forEach((function(e){TL_Front.trackViewportImpression(e)})))},TL_Front.trackViewportImpression=function(e){if(e&&TL_Front.viewport_impressions&&TL_Front.viewport_impressions[e]&&!TL_Front.viewport_impressions[e]._tracked){TL_Front.viewport_impressions[e]._tracked=!0;var t={};t[e]=TL_Front.viewport_impressions[e],TL_Front.send_impression(t)}},TL_Front.do_trigger_based_impression=function(e){if(e&&TL_Front.deferred_impressions&&TL_Front.deferred_impressions[e]&&!TL_Front.deferred_impressions[e]._tracked){TL_Front.deferred_impressions[e]._tracked=!0;var t={};t[e]=TL_Front.deferred_impressions[e],TL_Front.send_impression(t)}},TL_Front.do_two_step_impression=function(e){if(TL_Const&&TL_Const.forms&&TL_Const.forms[e]){var t=TL_Const.forms[e],o={};o[e]={group_id:t.main_group_id,form_type_id:t.form_type_id,variation_key:t._key,active_test_id:t.active_test_id||null},TL_Front.send_impression(o)}},TL_Front.maybe_track_two_step_impression=function(e){if(e&&-1!==e.indexOf("2step-")&&TL_Const&&TL_Const.forms){var t=e.replace("tve-leads-track-2step-",""),o=Object.keys(TL_Const.forms).find((function(e){return 0===e.indexOf("two_step_")&&TL_Const.forms[e]._key===t}));o&&TL_Front.do_two_step_impression(o)}},ThriveGlobal.$j((function(){if("undefined"!=typeof TL_Const){if(ThriveGlobal.$j(".tve-leads-screen-filler iframe, .tve-leads-ribbon iframe").not(".thrv_social_default iframe").not(".tcb-dr-done").each((function(){var e=ThriveGlobal.$j(this).addClass("tcb-dr-done");e.attr("src")&&e.attr("data-src",e.attr("src")),e.attr("src","")})),"undefined"!=typeof TCB_Front&&ThriveGlobal.$j(TCB_Front).on("content_loaded.thrive",(function(e,t){t.find(".tve-tl-anim").each((function(){var e=ThriveGlobal.$j(this);ThriveGlobal.$j(TL_Front).trigger("showform.thriveleads",{$target:e})}))})),ThriveGlobal.$j(window).on("tcb_after_dom_ready",(function(){if(!tve_frontend_options.is_editor_page){var e=TCB_Front.queryString.get("post_type");e&&"tve_lead_2s_lightbox"===e&&setTimeout((function(){TCB_Front.handleIframes(ThriveGlobal.$j(".tve_p_lb_content"))}),100)}})),ThriveGlobal.$j(TL_Front).on("showform.thriveleads",(function(o,n){var i,s=n.$target?n.$target:ThriveGlobal.$j("."+n.form_id);s.length&&(n.TargetEvent&&"exit"===n.TargetEvent.tve_trigger&&s.data("shown-on-exit")||(n.first&&(s=s.first()),s.attr("data-s-state")&&(s=s.closest(".tl-states-root").find('[data-state="'+s.attr("data-s-state")+'"] .tl-lb-target')),n&&n.$parentStateEl&&s.closest(".tl-style").first().data("parentStateEl",n.$parentStateEl),i=s.hasClass("tve-tl-anim")?s:s.find(".tve-tl-anim"),s.css("display",""),setTimeout((function(){i.addClass("tve-leads-triggered"),TL_Front.handle_typefocus(i,"start"),ThriveGlobal.$j(".tve_post_grid_masonry").length&&TCB_Front.postGridLayout()}),0),TL_Front.maybe_track_two_step_impression(n.form_id),n.form_type&&-1!==r.indexOf(n.form_type)&&TL_Front.do_trigger_based_impression(n.form_type),"function"==typeof TL_Front["open_"+n.form_type]?TL_Front["open_"+n.form_type](s,n.TargetEvent):s.show(),TCB_Front.resizePageSection(),s.on("switchstate",(function(e,t){t.offset().top-ThriveGlobal.$j(window).scrollTop()+t.outerHeight()<0&&ThriveGlobal.$j("html, body").animate({scrollTop:t.offset().top+"px"},50),TCB_Front.resizePageSection()})),setTimeout((function(){s.find(e+", "+t).each((function(){var e=ThriveGlobal.$j(this);e.attr("data-src")&&e.attr("src",e.attr("data-src"))}))}),200)))})),ThriveGlobal.$j("body").on("click",".tve-ribbon-close",(function(){var o=ThriveGlobal.$j(this).closest(".tve-leads-ribbon"),r=o.data("position");o.find(e+", "+t).each((function(){var e=ThriveGlobal.$j(this);e.attr("data-src",e.attr("src")),e.attr("src","")})),o.removeClass("tve-leads-triggered"),"top"===r?ThriveGlobal.$j("body").animate({marginTop:0},200,(function(){document.body.style.removeProperty("margin-top"),TCB_Front&&TCB_Front.$window&&TCB_Front.$window.trigger("scroll")})):"bottom"===r&&ThriveGlobal.$j("body").animate({marginBottom:"0px"},200,(function(){document.body.style.removeProperty("margin-bottom")})),TL_Front.handle_typefocus(o,"pause"),setTimeout((function(){o.css(r,"")}),400),ThriveGlobal.$j("#tve-lg-error-container").hide()})),ThriveGlobal.$j(window).on("conditional_display_loaded",(function(){var e=Object.keys(TL_Front.contentHtml||{});e.length&&e.forEach((function(e){var t=ThriveGlobal.$j(".tl-placeholder-f-type-".concat(e));if(t.length){var o=ThriveGlobal.$j(TL_Front.contentHtml[e]);t.replaceWith(o),setTimeout((function(){ThriveGlobal.$j(TL_Front).trigger("showform.thriveleads",{$target:o})}))}}))})),ThriveGlobal.$j(TCB_Front).on("tl-ajax-loaded",(function(){TL_Front.viewport_impressions&&Object.keys(TL_Front.viewport_impressions).length>0&&(window.requestAnimationFrame?requestAnimationFrame((function(){TL_Front.initViewportObservers()})):TL_Front.initViewportObservers())})),TL_Const.ajax_load||TL_Front.do_impression(),TL_Front.ajax_load_callback=function(e,t){if(t&&TL_Front.conditional_display(t),e&&e.res&&e.js&&e.html){var r,i;if(TL_Front.lightspeed_assets(e.lightspeed||{}),TL_Front.add_page_css(e.res.css),TL_Front.add_page_css(e.res.fonts),e.html&&(e.html.widget||ThriveGlobal.$j(".tl-widget-container").remove(),ThriveGlobal.$j.each(e.html,(function(t,o){if(!o)return!0;if(TL_Front.contentHtml=TL_Front.contentHtml||{},TL_Front.contentHtml[t]=o,"in_content"===t){var r=parseInt(e.in_content_pos),n="after",i=ThriveGlobal.$j(".tve-tl-cnt-wrap");i.length||(i=ThriveGlobal.$j("#tve_editor.tar-main-content")),i.length||(i=ThriveGlobal.$j("#post_content"));var s=i.find("p").filter(":visible").not(".thrv_table p, form p, .tcb-post-list p, .thrv_text_element div p, p.wp-caption-text, .thrv_responsive_video p, .thrv_header p");0===s.length&&0===r?i.prepend(o):(0===r&&(r=1,n="before"),s.eq(r-1)[n](o))}else{var a=ThriveGlobal.$j(".tl-placeholder-f-type-"+t);if(e.js[t]&&e.js[t].content_locking){var l=a.parents(".tve_content_lock").first();if(e.js[t].has_conversion)return a.remove(),l.removeClass("tve_lock_hide"),!0;"tve_lock_blur"===e.js[t].lock&&l.removeClass("tve_lock_hide").addClass(e.js[t].lock)}"widget"===t?a.hasClass("tl-preload-form")?a.first().replaceWith(ThriveGlobal.$j(o).addClass("tve-leads-triggered")):(a.replaceWith(o),ThriveGlobal.$j(".tl-widget-container").children().unwrap()):a.replaceWith(o),0===t.indexOf("two_step")&&(c=t,ThriveGlobal.$j(".tl-2step-trigger-".concat(c.replace("two_step_",""))).show())}var c})),i=-1,"Microsoft Internet Explorer"==navigator.appName?(r=navigator.userAgent,null!==new RegExp("MSIE ([0-9]{1,}[\\.0-9]{0,})").exec(r)&&(i=parseFloat(RegExp.$1))):"Netscape"==navigator.appName&&(r=navigator.userAgent,null!==new RegExp("Trident/.*rv:([0-9]{1,}[\\.0-9]{0,})").exec(r)&&(i=parseFloat(RegExp.$1))),i>0&&setTimeout((function(){var e="";ThriveGlobal.$j("body style.tve_custom_style").each((function(){e=this.innerText,this.innerText=e}))}))),e.body_end){var a=ThriveGlobal.$j(e.body_end);a.find(".tve_wistia_popover").each((function(){ThriveGlobal.$j("#"+this.id).length&&this.parentNode.removeChild(this)})),a.filter("link[href]").each((function(){ThriveGlobal.$j('link[href="'+this.getAttribute("href")+'"]').length&&(a=a.not(this))})),a.filter("script[src]").each((function(){ThriveGlobal.$j('script[src="'+this.getAttribute("src")+'"]').length&&(a=a.not(this))}));try{ThriveGlobal.$j("body").append(a)}catch(e){console.log("Body append: "+e)}}void 0!==e.js.TVO_Form&&(TVO_Form=e.js.TVO_Form),TL_Front.add_page_js(e.res.js,(function(){n=!0})),setTimeout((function e(){n&&o?(TCB_Front.event_triggers(ThriveGlobal.$j("body")),TCB_Front.onDOMReady(),s(),ThriveGlobal.$j(TCB_Front).trigger("tl-ajax-loaded"),TCB_Front.add_scroll_callback((function(){var e=ThriveGlobal.$j('.tve-leads-ribbon[data-position="top"]'),t=e.find(".tve_shortcode_editor"),o=e.is(":visible")&&Number(e.css("opacity"))?Math.max(e.outerHeight(),t.outerHeight()):0,r=ThriveGlobal.$j('[data-elementor-type="header"] .elementor-top-section.elementor-sticky.elementor-sticky--active');r.length||(r=ThriveGlobal.$j(".she-header")),r.length&&r[0].style.setProperty("margin-top",o+"px","important")}))):setTimeout(e,50)}),50),TL_Const.forms=e.js,e.deferred_impressions&&TL_Front.setupViewportImpressions(e.deferred_impressions),setTimeout((function(){ThriveGlobal.$j(".tl-preload-form").remove()}),1e3)}},TL_Const.ajax_load){var n=!1,i=(ThriveGlobal.$j(".tve-leads-two-step-trigger").hide(),{tcb_js:"undefined"!=typeof TCB_Front?1:0,main_group_id:TL_Const.main_group_id,shortcode_ids:TL_Const.shortcode_ids,two_step_ids:TL_Const.two_step_ids,action:"tve_leads_ajax_load_forms",security:TL_Const.security,display_options:TL_Const.display_options,current_screen:TL_Const.current_screen});return ThriveGlobal.$j.each(TL_Const.custom_post_data,(function(e,t){i[e]=t})),void(window.TVE_Dash&&!TVE_Dash.ajax_sent?ThriveGlobal.$j(document).on("tve-dash.load",(function(e){TVE_Dash.add_load_item("tl_lazy_load",i,TL_Front.ajax_load_callback)})):ThriveGlobal.$j.ajax({url:TL_Const.ajax_url,type:"post",dataType:"json",data:i,xhrFields:{withCredentials:!0}}).done(TL_Front.ajax_load_callback))}s()}function s(){if(!TL_Const.forms)return!1;function e(e){if(e.find('[data-validation="email"]').length)return e.find('[data-validation="email"]').val();var t="";return e.find("input").each((function(){if(this.name&&this.name.match(/email/i))return t=this.value,!1})),t}ThriveGlobal.$j("body").on("submit",".tve-leads-conversion-object form",(function(t){var o=ThriveGlobal.$j(this),r=o.parents(".tve-leads-conversion-object").first().attr("data-tl-type"),n={};if(o.data("tve-force-submit")||o.closest(".thrv_custom_html_shortcode").length||o.data("tl-do-submit")||!r||!TL_Const.forms[r]||function(e){var t=e.attr("id"),o=window.fluentFormVars,r=!1;return o&&o.forms&&(r=o.forms.some((function(e){return e.form_id_selector===t}))),r}(o)||function(e){var t=e.attr("id");return t&&t.includes("happyforms")&&window.HappyForms}(o))return!0;o.tve_form_loading(),o.find("input").each((function(){var e=ThriveGlobal.$j(this),t=e.attr("name");void 0!==t&&-1===TL_Const.ignored_fields.indexOf(t)&&(n[e.attr("name")]=e.val())}));var i={security:TL_Const.security,action:TL_Const.action_conversion,type:r,tl_data:TL_Const.forms[r],custom_fields:n,email:e(o),current_screen:TL_Const.current_screen};return ThriveGlobal.$j.each(TL_Const.custom_post_data,(function(e,t){i[e]=t})),ThriveGlobal.$j.ajax({url:TL_Const.ajax_url,data:i,type:"post",xhrFields:{withCredentials:!0}}).always((function(){void 0===o.attr("action")?location.reload():o.data("tve-force-submit",!0).submit()})),!1})),ThriveGlobal.$j("body").on("form_conversion.tcb",".tve-leads-conversion-object form",(function(e){var t=ThriveGlobal.$j(this).parents(".tve-leads-conversion-object").first().attr("data-tl-type");if(!t||!TL_Const.hasOwnProperty("forms")||!TL_Const.forms[t])return!0;var o={type:t,tl_data:TL_Const.forms[t],current_screen:TL_Const.current_screen};ThriveGlobal.$j.each(TL_Const.custom_post_data,(function(e,t){o[e]=t})),e.post_data=e.post_data||{},e.post_data.thrive_leads=o})).on("lead_conversion_success.tcb",".tve_lead_lock_shortcode form, .tve_post_lightbox form",(function(e){var t=ThriveGlobal.$j(this),o=t.parents(".tve_content_lock");if(t.closest(".tve_post_lightbox").length){var r=t.closest(".tve-leads-conversion-object").attr("data-tl-type");TL_Front.parent_state&&TL_Front.parent_state.parent().hasClass("tve-leads-track-"+r)&&(o=TL_Front.parent_state.closest(".tve_content_lock"))}o.length&&o.hasClass("tve_content_lock")&&(o.removeClass("tve_lead_lock").find(".tve_lead_lock_shortcode").remove(),o.find(".tve_lead_locked_overlay").remove(),e.content_unlocked=!0)})).on("leads_states.tcb",".tve-leads-conversion-object form",(function(e,t){var o=ThriveGlobal.$j(this);switch(o.find("#_form_type").val()){case"ribbon":var r=o.parents(".tve-leads-ribbon");o.parents(".tve_shortcode_editor").empty().html(t),TL_Front.open_ribbon(r);break;case"lightbox":case"tve_lead_2s_lightbox":o.parents(".tve_p_lb_control").empty().html(t);break;case"widget":case"in-content":case"post-footer":case"php-insert":o.parents(".tve_shortcode_editor").empty().html(t);break;case"slide-in":var n=o.parents(".tve-leads-slide-in");o.parents(".tve_shortcode_editor").empty().html(t),TL_Front.open_slide_in(n);break;case"screen-filler-lightbox":var i=o.parents(".tve-leads-screen-filler");o.parents(".tve_shortcode_editor").empty().html(t),TL_Front.open_screen_filler(i);break;case"scroll-mat":r=o.parents(".tve-leads-greedy_ribbon"),o.parents(".tve_shortcode_editor").empty().html(t),TL_Front.open_ribbon(r);break;case"tve_lead_shortcode":o.parents(".tve-leads-shortcode").empty().html(t);break;default:e.change_states=!1}e.change_states=!0})).on("leads_messages.tcb",".tve-leads-conversion-object form",(function(e){var t=ThriveGlobal.$j(this);switch(t.find("#_form_type").val()){case"tve_lead_shortcode":e.lightbox_state&&t.parents(".tve-leads-shortcode").hide();break;case"ribbon":t.parents(".thrv-ribbon").find(".tve-ribbon-close").click();break;case"lightbox":case"tve_lead_2s_lightbox":t.parents(".tve_p_lb_content").find(".tve_p_lb_close").click(),t.parents(".tve-leads-screen-filler").find(".tve-screen-filler-close").click();break;case"slide-in":t.parents(".thrv-leads-slide-in").find(".tve-leads-close").click();break;case"screen-filler-lightbox":t.parents(".tve-leads-screen-filler").find(".tve-screen-filler-close").click();break;case"scroll-mat":t.parents(".thrv-greedy-ribbon").find(".tve_et_click").click();break;default:t.find('input:not(:hidden):not([type="checkbox"]):not([type="radio"])').val("")}t.parents(".tve-leads-conversion-object").find(".tve_ea_thrive_leads_form_close").click(),TL_Front.parent_state&&TL_Front.close_form(TL_Front.parent_state)})),TL_Front.$document.on("switchstate",(function(e,t){t.find("script.tcb-lazyload-template").each((function(){ThriveGlobal.$j(this).replaceWith(this.innerHTML)}))}))}})),TL_Front.switch_lightbox_state=function(e,t){return e.find(".tve_p_lb_overlay").css("opacity","0.8"),e.find(".tve_p_lb_content").css("top",t.find(".tve_p_lb_content").css("top")).addClass("tve-leads-triggered"),window.tve_lb_switch_state=!0,TL_Front.open_lightbox(e.find(".tl-lb-target"))},TL_Front.close_lightbox=function(){var o=ThriveGlobal.$j("body"),r=ThriveGlobal.$j("html"),n="tve-o-hidden tve-l-open tve-hide-overflow",i=arguments[0]||o.data("tl-open-lightbox");i&&i.length&&(i.find(".tve-tl-anim").removeClass("tve-leads-triggered"),window.tve_lb_switch_state||(1===ThriveGlobal.$j(".tve_lb_open").length&&(o.removeClass(n).css("padding-right",""),r.removeClass(n),i.data("doc-scroll-top")?(document.documentElement.scrollTop=i.data("doc-scroll-top"),i.data("doc-scroll-top","")):i.data("bdy-scroll-top")&&(document.body.scrollTop=i.data("bdy-scroll-top"),i.data("bdy-scroll-top",""))),r.removeClass(r.data("tl-anim-class"))),window.tve_lb_switch_state=!1,setTimeout((function(){i.addClass("tve_lb_closing"),i.removeClass("tve_lb_open tve_lb_opening tve_lb_closing tve_p_lb_background").css("display","none").find("tve_p_lb_content").trigger("tve.lightbox-close")}),200),i.find(e+", "+t).each((function(){var e=ThriveGlobal.$j(this);"SOURCE"===this.tagName&&e.parent("video").trigger("pause"),e.attr("data-src",e.attr("src")),e.attr("src","")})),TL_Front.handle_typefocus(i,"pause"),ThriveGlobal.$j("#tve-lg-error-container").hide())},TL_Front.open_lightbox=function(o,r){if(!o.hasClass("tve_lb_open")&&!o.hasClass("tve_lb_opening")){var n=window.tve_lb_switch_state;ThriveGlobal.$j.fn.thrive_iphone_placeholder&&o.find("input[placeholder]").thrive_iphone_placeholder(),TL_Front.close_lightbox(ThriveGlobal.$j(".tve_p_lb_background.tve_lb_open")),o.css({visibility:"",position:"",left:"",display:""}).parents(".tl-style").css({visibility:"",position:"",left:"",display:""});var i,s,a,l,c,d=ThriveGlobal.$j("body"),_=ThriveGlobal.$j("html"),v="tve-o-hidden tve-l-open tve-hide-overflow",p=(i=ThriveGlobal.$j,s={border:"none",height:"200px",margin:"0",padding:"0",width:"200px"},a=i("<div>").css(i.extend({},s)),l=i("<div>").css(i.extend({left:"-1000px",overflow:"scroll",position:"absolute",top:"-1000px"},s)).append(a).appendTo("body").scrollLeft(1e3).scrollTop(1e3),c={height:l.offset().top-a.offset().top||0,width:l.offset().left-a.offset().left||0},l.remove(),c).width,h=parseInt(d.css("paddingRight")),f=ThriveGlobal.$j(".tve_p_lb_background.tve_lb_open").length;isNaN(h)&&(h=0),o.find(".tve_p_lb_close").off().on("click",(function(){return TL_Front.close_lightbox(),!1})),d.off("keyup.tve_lb_close").on("keyup.tve_lb_close",(function(e){if(27==e.which)return TL_Front.close_lightbox(),!1})),o.find(".tve_p_lb_overlay").off("click.tve_lb_close").on("click.tve_lb_close",(function(){return TL_Front.close_lightbox(),!1})),d.data("tl-open-lightbox",o),o.addClass("tve_p_lb_background"),o.data("doc-scroll-top",document.documentElement.scrollTop),o.data("bdy-scroll-top",document.body.scrollTop),d.addClass(v),_.addClass(v);var b=window.innerHeight<ThriveGlobal.$j(document).height();!n&&b&&d.css("padding-right",h+p+"px"),o.find(e+", "+t).each((function(){var e=jQuery(this);e.attr("data-src")&&e.attr("src",e.attr("data-src"))})),o.find(".thrv_responsive_video").each((function(){var e=ThriveGlobal.$j(this);TCB_Front.makeAutoplayVideo(e)}));var T="";ThriveGlobal.$j.each(o.parents(".tl-states-root").attr("class").split(" "),(function(e,t){if(0===t.indexOf("tl-anim"))return T=t,!1})),_.addClass(T).data("tl-anim-class",T),setTimeout((function(){function e(){var e=o.find(".tve_p_lb_content").outerHeight(!0)+2*parseInt(o.css("padding-top")),t=o.find(".tve_p_lb_content"),r=window.innerHeight,n=(r-e)/2;o.find(".tve_p_lb_overlay").css({height:e+80+"px","min-height":r+"px"}),f?t.animate({top:n<40?40:n},100):t.css("top",(n<40?40:n)+"px"),e+40>r&&o.addClass("tve-scroll")}setTimeout((function(){o.addClass("tve_lb_opening")}),0),o.find("iframe").not(".thrv_social_default iframe").each((function(){var e=ThriveGlobal.$j(this);!e.data("tve_ifr_loaded")&&e.attr("data-src")&&e.data("tve_ifr_loaded",1).attr("src",e.attr("data-src"))})),TCB_Front.resizePageSection(),e(),ThriveGlobal.$j(window).on("resize",e)}),20),setTimeout((function(){o.removeClass("tve_lb_opening").addClass("tve_lb_open").find(".tve_p_lb_content").trigger("tve.lightbox-open"),o.find("form").each((function(){ThriveGlobal.$j(this).find('input[required], textarea[required], select[required], input[data-required="true"], textarea[data-required="true"], select[data-required="true"]').each((function(){var e=ThriveGlobal.$j(this);"none"===e.css("display")&&e.show(),"hidden"===e.css("visibility")&&e.css("visibility","visible"),e.parentsUntil(".tve_p_lb_content").filter((function(){return"none"===ThriveGlobal.$j(this).css("display")||"hidden"===ThriveGlobal.$j(this).css("visibility")})).show().css("visibility","visible");var t=e.attr("tabindex");t&&parseInt(t)<0&&e.removeAttr("tabindex")}))})),ThriveGlobal.$j(window).trigger("scroll")}),300),r&&r.preventDefault&&(r.preventDefault(),r.stopPropagation()),o.parents(".tl-states-root").off("switchstate").on("switchstate",(function(e,t){var o=Array.prototype.slice.call(arguments,1);TL_Front.switch_lightbox_state.apply(TL_Front,o)})),r&&"exit"===r.tve_trigger&&o.data("shown-on-exit",!0),TCB_Front.$window.trigger("tl_after_lightbox_open",o),setTimeout((function(){TCB_Front.$window.trigger("tve_after_content_toggle",[o])}),500)}},TL_Front.open_two_step_lightbox=TL_Front.open_lightbox,TL_Front.open_ribbon=function(e){function t(){e.addClass("tve-leads-triggered");var t=e.find(".tve_shortcode_editor"),o=t.length?t.outerHeight():0,r=e.attr("data-position")||"top";switch(r){case"above":e.css("bottom","auto");case"top":e.css("top",ThriveGlobal.$j("#wpadminbar").length?"32px":"0px");break;case"bottom":e.css("bottom","0px"),e.css("top","auto")}var n=0,i=Math.max(e.outerHeight(),o),s=setInterval((function(){n++;var t=Math.max(e.outerHeight(),o);t==i&&10!=n||clearInterval(s),"top"===r?(ThriveGlobal.$j("body").animate({"margin-top":t+"px"},200,(function(){document.body.style.setProperty("margin-top",t+"px","important")})),TCB_Front&&TCB_Front.$window&&TCB_Front.$window.trigger("scroll")):"bottom"===r&&ThriveGlobal.$j("body").animate({"margin-bottom":t+"px"},200)}),100),a=ThriveGlobal.$j("body").find(".thrv_header.tve-scroll-sticky");if(a.length&&"top"===r){var l=parseFloat(TCB_Front.inlineCssVariable(a,"--tcb-header-extra-offset"))||0;TCB_Front.inlineCssVariable(a,"--tcb-header-extra-offset",l+i+"px")}e.off("switchstate").on("switchstate",(function(e,t){var o=Array.prototype.slice.call(arguments,1);TL_Front.switch_ribbon_state.apply(TL_Front,o)}))}TL_Const.forms.greedy_ribbon?(TL_Const.close_callbacks=TL_Const.close_callbacks||{},TL_Const.close_callbacks.greedy_ribbon=[t]):t()},TL_Front.switch_ribbon_state=function(e){var t=e.outerHeight(!0),o={};o["top"===e.parent().attr("data-position")?"margin-top":"margin-bottom"]=t+"px",e.find(".tve-tl-anim").removeClass((function(e,t){return(t.match(/(^|\s)tl-anim-\S+/g)||[]).join(" ")})).removeClass("tve-tl-anim"),ThriveGlobal.$j("body").animate(o,200)},TL_Front.open_greedy_ribbon=function(o){var r=ThriveGlobal.$j("body"),n=ThriveGlobal.$j(window),i=r.css("position");n.scrollTop(0),r.css("position","static"),r.addClass("tve-tl-gr-anim"),TCB_Front.$window.trigger("scroll"),o.css("top",ThriveGlobal.$j("#wpadminbar").length?"32px":"0px");var s=o.outerHeight();r[0].style.setProperty("margin-top",s+"px","important");var a=1;setTimeout((function(){ThriveGlobal.$j('.tve-leads-ribbon[data-position="top"]').removeClass("tve-leads-triggered")}),50),n.scroll((function(){var l=r.hasClass("tve-tl-gr-anim");if(a&&l){var c=n.scrollTop();if(c>s){(o.find(".tve_ea_thrive_wistia").length||o.find(".tve_with_wistia_popover"))&&ThriveGlobal.$j(".wistia_placebo_close_button").trigger("click"),r.removeClass("tve-tl-gr-anim"),o.addClass("tve-no-animation");var d=c-s;o.removeClass("tve-leads-triggered"),o.find(e+", "+t).each((function(){var e=ThriveGlobal.$j(this);e.attr("data-src",e.attr("src")),e.attr("src","")})),r.css("margin-top",""),r.css("position",i),n.scrollTop(d),o.removeClass("tve-no-animation"),a=0,TL_Front.form_closed("greedy_ribbon"),TL_Const.forms.greedy_ribbon.allow_callbacks=!1}}})),o.off("switchstate").on("switchstate",(function(e,t){}))},TL_Front.open_screen_filler=function(o,r){var n="tve-so-hidden tve-sl-open tve-s-hide-overflow",i=ThriveGlobal.$j("html,body"),s=ThriveGlobal.$j("html");if(ThriveGlobal.$j.fn.thrive_iphone_placeholder&&o.find("input[placeholder]").thrive_iphone_placeholder(),o.css("top",ThriveGlobal.$j("#wpadminbar").length?"32px":"0px").css("visibility",""),!0===o.hasClass("stl-anim-slip_from_top")){var a=ThriveGlobal.$j(window).scrollTop();o.css("top",a).css("visibility","")}o.find(".tve-screen-filler-close").on("click",(function(){c(o)})),o.data("doc-scroll-top",document.documentElement.scrollTop),o.data("bdy-scroll-top",document.body.scrollTop),"none"!==o.find(".thrv-leads-screen-filler.thrv_wrapper ").css("display")&&i.addClass(n);var l="";function c(o){o.find(e+", "+t).each((function(){var e=ThriveGlobal.$j(this);e.attr("data-src",e.attr("src")),e.attr("src","")})),o.removeClass("tve-leads-triggered"),TL_Front.handle_typefocus(o,"pause"),ThriveGlobal.$j(document).off("keyup.close-screenfiller"),0==ThriveGlobal.$j.find(".tve-leads-ribbon").length&&ThriveGlobal.$j("body").animate({"margin-top":"0px"},200),i.removeClass(n),s.removeClass(s.data("tl-s-anim-class")),setTimeout((function(){o.css("top","").hide(),"none"===o.css("display")&&(i.removeClass(n),o.removeClass("tve-leads-triggered"))}),400),o.data("doc-scroll-top")?(document.documentElement.scrollTop=o.data("doc-scroll-top"),o.data("doc-scroll-top","")):o.data("bdy-scroll-top")&&(document.body.scrollTop=o.data("bdy-scroll-top"),o.data("bdy-scroll-top","")),ThriveGlobal.$j("#tve-lg-error-container").hide()}ThriveGlobal.$j.each(o.attr("class").split(" "),(function(e,t){if(0===t.indexOf("stl-anim"))return l=t,!1})),s.addClass(l).data("tl-s-anim-class",l);var d=o.find("> .tl-style").hide(),_=o.find('> .tl-style[data-form-state="already_subscribed"]');_.length?_.show():d.first().show(),TL_Front.close_screen_filler=c,r&&r.preventDefault&&(r.preventDefault(),r.stopPropagation()),ThriveGlobal.$j(document).off("keyup.close-screenfiller").on("keyup.close-screenfiller",(function(e){27==e.which&&c(o)})),o.find(e+", "+t).each((function(){var e=jQuery(this);e.attr("data-src")&&e.attr("src",e.attr("data-src"))})),setTimeout((function(){TCB_Front.resizePageSection()}),500)},TL_Front.switch_slide_in_state=function(e){e.find(".tve-tl-anim").removeClass((function(e,t){return(t.match(/(^|\s)tl-anim-\S+/g)||[]).join(" ")})).removeClass("tve-tl-anim"),TL_Front.slide_in_position(e.find(".thrv-leads-slide-in"))},TL_Front.slide_in_position=function(e){var t=ThriveGlobal.$j(window),o=e.outerHeight();if(t.width()<=782||t.height()<o){e.parents(".tve-leads-slide-in").addClass("tve-lb");var r=t.height();setTimeout((function(){var t;t=e.parents(".tve-leads-slide-in").is('[class*="bot"]')?r-o:0,e.closest(".tve-leads-slide-in").data("doc-scroll-top",document.documentElement.scrollTop).data("bdy-scroll-top",document.body.scrollTop),e.parents(".tve-leads-conversion-object").first().css({height:o+80+"px","min-height":r+"px"}),e.css("top",(t<40?40:t)+"px"),o+40>r&&e.parents(".tve-leads-slide-in").css("overflow-y","scroll")}),0)}},TL_Front.open_slide_in=function(o,r){var n="tve-o-hidden tve-l-open tve-hide-overflow",i=ThriveGlobal.$j("body"),s=ThriveGlobal.$j("html");function a(r){r.removeClass("tve-leads-triggered"),TL_Front.handle_typefocus(r,"pause"),ThriveGlobal.$j(document).off("keyup.close-slidein"),ThriveGlobal.$j(".tve_lb_open").length||(i.removeClass(n),s.removeClass(n)),r.find(e+", "+t).each((function(){var e=ThriveGlobal.$j(this);e.attr("data-src",e.attr("src")),e.attr("src","")})),ThriveGlobal.$j("#tve-lg-error-container").hide(),o.data("doc-scroll-top")?(document.documentElement.scrollTop=o.data("doc-scroll-top"),o.data("doc-scroll-top","")):o.data("bdy-scroll-top")&&(document.body.scrollTop=o.data("bdy-scroll-top"),o.data("bdy-scroll-top",""))}ThriveGlobal.$j.fn.thrive_iphone_placeholder&&o.find("input[placeholder]").thrive_iphone_placeholder(),TL_Front.slide_in_position(o.find(".thrv-leads-slide-in").filter(":visible")),o.off().on("click",".tve-leads-close",(function(){a(o)})),o.find(".tve_ea_thrive_leads_form_close").on("click",(function(){a(o)})),o.on("switchstate",(function(e,t){var o=Array.prototype.slice.call(arguments,1);TL_Front.switch_slide_in_state.apply(TL_Front,o)})),ThriveGlobal.$j(document).off("keyup.close-slidein").on("keyup.close-slidein",(function(e){27==e.which&&a(o)})),r&&r.preventDefault&&(r.preventDefault(),r.stopPropagation())},TL_Front.close_form=function(o,r,n,i){var s=ThriveGlobal.$j(o).parents(".tve-leads-triggered"),a=s.attr("data-tl-type");if(void 0===a&&s.hasClass("tve-leads-widget"))a="widget";else if(void 0===a&&s.hasClass("tve-leads-post-footer"))a="post-footer";else if(void 0===a&&s.hasClass("tve-leads-slide-in"))a="slide-in";else if(void 0===a&&s.hasClass("tve-leads-in-content"))a="in-content";else if(void 0===a&&s.hasClass("tve-leads-shortcode"))a="shortcode";else if(void 0===a&&s.hasClass("tve-leads-greedy_ribbon"))a="greedy_ribbon";else{if(void 0===a&&s.hasClass("tve_p_lb_content"))return TL_Front.close_lightbox(),!1;if(void 0===a&&s.hasClass("tve-leads-screen-filler"))return TL_Front.close_screen_filler(s),!1}switch(s.removeClass("tve-leads-triggered"),TL_Front.handle_typefocus(s,"pause"),a){case"ribbon":var l=s.find(".tve-ribbon-close");l.length||(l=jQuery('<span class="tve-ribbon-close" style="display: none"></span>').appendTo(s)),l.trigger("click");var c=ThriveGlobal.$j("body").find(".thrv_header.tve-scroll-sticky");if(c.length&&"top"===s.attr("data-position")){var d=parseFloat(TCB_Front.inlineCssVariable(c,"--tcb-header-extra-offset"))-s.outerHeight(!0)+"px";TCB_Front.inlineCssVariable(c,"--tcb-header-extra-offset",d)}break;case"slide-in":s.find(".tve_ea_thrive_leads_form_close").trigger("click"),s.find(e+", "+t).each((function(){var e=ThriveGlobal.$j(this);e.attr("data-src",e.attr("src")),e.attr("src","")}));break;case"post-footer":case"in-content":case"shortcode":s.fadeOut(200,(function(){TL_Front.form_closed(a)}));break;case"widget":s.parent().slideUp(200);break;case"greedy_ribbon":var _=ThriveGlobal.$j("body"),v=ThriveGlobal.$j(window),p=_.css("margin-top");_[0].style.removeProperty("margin-top"),s.find(e+", "+t).each((function(){var e=ThriveGlobal.$j(this);e.attr("data-src",e.attr("src")),e.attr("src","")})),_.css("margin-top",p),v.scrollTop(0),_.animate({"margin-top":"0px"},300,"linear",(function(){TL_Front.form_closed(a)})).removeClass("tve-tl-gr-anim")}},TL_Front.form_closed=function(e){TL_Const.close_callbacks&&TL_Const.close_callbacks[e]&&ThriveGlobal.$j.each(TL_Const.close_callbacks[e],(function(e,t){ThriveGlobal.$j.isFunction(t)&&t()}))},TL_Front.handle_typefocus=function(e,t){e.find(".tve_typefocus").each((function(){jQuery(this).attr("data-typefocus",t)}))}})();