/** * @license almond 0.3.1 Copyright (c) 2011-2014, The Dojo Foundation All Rights Reserved. * Available via the MIT or new BSD license. * see: http://github.com/jrburke/almond for details */ /*! @source http://purl.eligrey.com/github/l10n.js/blob/master/l10n.js*/ !function(){var e,t,o;!function(i){function s(e,t){return k.call(e,t)}function a(e,t){var o,i,s,a,r,n,l,c,d,u,m,f=t&&t.split("/"),h=x.map,p=h&&h["*"]||{};if(e&&"."===e.charAt(0))if(t){for(e=e.split("/"),r=e.length-1,x.nodeIdCompat&&v.test(e[r])&&(e[r]=e[r].replace(v,"")),e=f.slice(0,f.length-1).concat(e),d=0;d0&&(e.splice(d-1,2),d-=2)}e=e.join("/")}else 0===e.indexOf("./")&&(e=e.substring(2));if((f||p)&&h){for(o=e.split("/"),d=o.length;d>0;d-=1){if(i=o.slice(0,d).join("/"),f)for(u=f.length;u>0;u-=1)if((s=h[f.slice(0,u).join("/")])&&(s=s[i])){a=s,n=d;break}if(a)break;!l&&p&&p[i]&&(l=p[i],c=d)}!a&&l&&(a=l,n=c),a&&(o.splice(0,n,a),e=o.join("/"))}return e}function r(e,t){return function(){var o=w.call(arguments,0);return"string"!=typeof o[0]&&1===o.length&&o.push(null),f.apply(i,o.concat([e,t]))}}function n(e){return function(t){return a(t,e)}}function l(e){return function(t){b[e]=t}}function c(e){if(s(g,e)){var t=g[e];delete g[e],T[e]=!0,m.apply(i,t)}if(!s(b,e)&&!s(T,e))throw new Error("No "+e);return b[e]}function d(e){var t,o=e?e.indexOf("!"):-1;return o>-1&&(t=e.substring(0,o),e=e.substring(o+1,e.length)),[t,e]}function u(e){return function(){return x&&x.config&&x.config[e]||{}}}var m,f,h,p,b={},g={},x={},T={},k=Object.prototype.hasOwnProperty,w=[].slice,v=/\.js$/;h=function(e,t){var o,i=d(e),s=i[0];return e=i[1],s&&(s=a(s,t),o=c(s)),s?e=o&&o.normalize?o.normalize(e,n(t)):a(e,t):(e=a(e,t),i=d(e),s=i[0],e=i[1],s&&(o=c(s))),{f:s?s+"!"+e:e,n:e,pr:s,p:o}},p={require:function(e){return r(e)},exports:function(e){var t=b[e];return void 0!==t?t:b[e]={}},module:function(e){return{id:e,uri:"",exports:b[e],config:u(e)}}},m=function(e,t,o,a){var n,d,u,m,f,x,k=[],w=typeof o;if(a=a||e,"undefined"===w||"function"===w){for(t=!t.length&&o.length?["require","exports","module"]:t,f=0;f=0;e--)s[e].$blocker&&(s[e].$blocker.toggleClass("current",!t).toggleClass("behind",t),t=!0)};e.fbx_modal=function(t,o){var i,r;if(this.$body=e("body"),this.options=e.extend({},e.fbx_modal.defaults,o),this.options.doFade=!isNaN(parseInt(this.options.fadeDuration,10)),this.$blocker=null,this.options.closeExisting)for(;e.fbx_modal.isActive();)e.fbx_modal.close();if(s.push(this),t.is("a"))if(r=t.attr("href"),this.anchor=t,/^#/.test(r)){if(this.$elm=e(r),1!==this.$elm.length)return null;this.$body.append(this.$elm),this.open()}else this.$elm=e("
"),this.$body.append(this.$elm),i=function(e,t){t.elm.remove()},this.showSpinner(),t.trigger(e.fbx_modal.AJAX_SEND),e.get(r).done(function(o){if(e.fbx_modal.isActive()){t.trigger(e.fbx_modal.AJAX_SUCCESS);var s=a();s.$elm.empty().append(o).on(e.fbx_modal.CLOSE,i),s.hideSpinner(),s.open(),t.trigger(e.fbx_modal.AJAX_COMPLETE)}}).fail(function(){t.trigger(e.fbx_modal.AJAX_FAIL),a().hideSpinner(),s.pop(),t.trigger(e.fbx_modal.AJAX_COMPLETE)});else this.$elm=t,this.anchor=t,this.$body.append(this.$elm),this.open()},e.fbx_modal.prototype={constructor:e.fbx_modal,open:function(){var t=this;this.block(),this.anchor.blur(),this.options.doFade?setTimeout(function(){t.show()},this.options.fadeDuration*this.options.fadeDelay):this.show(),e(o).off("keydown.modal").on("keydown.modal",function(e){var t=a();27===e.which&&t.options.escapeClose&&t.close()}),this.options.clickClose&&this.$blocker.click(function(t){t.target===this&&e.fbx_modal.close()})},close:function(){s.pop(),this.unblock(),this.hide(),e.fbx_modal.isActive()||e(o).off("keydown.modal")},block:function(){this.$elm.trigger(e.fbx_modal.BEFORE_BLOCK,[this._ctx()]),this.$blocker=e('
').appendTo(this.options.elementToBlock),r(),this.options.doFade&&this.$blocker.css("opacity",0).animate({opacity:1},this.options.fadeDuration),this.$elm.trigger(e.fbx_modal.BLOCK,[this._ctx()])},unblock:function(t){!t&&this.options.doFade?this.$blocker.fadeOut(this.options.fadeDuration,this.unblock.bind(this,!0)):(this.$blocker.children().appendTo(this.options.elementToBlock),this.$blocker.remove(),this.$blocker=null,r(),e.fbx_modal.isActive()||this.$body.css("overflow",""))},show:function(){this.$elm.trigger(e.fbx_modal.BEFORE_OPEN,[this._ctx()]),this.options.showClose&&(this.closeButton=e(''+this.options.closeText+""),this.$elm.append(this.closeButton)),this.$elm.addClass(this.options.modalClass).appendTo(this.$blocker),this.options.doFade?this.$elm.css({opacity:0,display:"inline-block"}).animate({opacity:1},this.options.fadeDuration):this.$elm.css("display","inline-block"),this.$elm.trigger(e.fbx_modal.OPEN,[this._ctx()])},hide:function(){this.$elm.trigger(e.fbx_modal.BEFORE_CLOSE,[this._ctx()]),this.closeButton&&this.closeButton.remove();var t=this;this.options.doFade?this.$elm.fadeOut(this.options.fadeDuration,function(){t.$elm.trigger(e.fbx_modal.AFTER_CLOSE,[t._ctx()])}):this.$elm.hide(0,function(){t.$elm.trigger(e.fbx_modal.AFTER_CLOSE,[t._ctx()])}),this.$elm.trigger(e.fbx_modal.CLOSE,[this._ctx()])},showSpinner:function(){this.options.showSpinner&&(this.spinner=this.spinner||e('
').append(this.options.spinnerHtml),this.$body.append(this.spinner),this.spinner.show())},hideSpinner:function(){this.spinner&&this.spinner.remove()},_ctx:function(){return{elm:this.$elm,$elm:this.$elm,$blocker:this.$blocker,options:this.options,$anchor:this.anchor}}},e.fbx_modal.close=function(t){if(e.fbx_modal.isActive()){t&&t.preventDefault();var o=a();return o.close(),o.$elm}},e.fbx_modal.isActive=function(){return s.length>0},e.fbx_modal.getCurrent=a,e.fbx_modal.defaults={closeExisting:!0,escapeClose:!0,clickClose:!0,closeText:"Close",closeClass:"",modalClass:"modal",blockerClass:"jquery-modal",elementToBlock:e("body"),spinnerHtml:'
',showSpinner:!0,showClose:!0,fadeDuration:null,fadeDelay:1},e.fbx_modal.BEFORE_BLOCK="modal:before-block",e.fbx_modal.BLOCK="modal:block",e.fbx_modal.BEFORE_OPEN="modal:before-open",e.fbx_modal.OPEN="modal:open",e.fbx_modal.BEFORE_CLOSE="modal:before-close",e.fbx_modal.CLOSE="modal:close",e.fbx_modal.AFTER_CLOSE="modal:after-close",e.fbx_modal.AJAX_SEND="modal:ajax:send",e.fbx_modal.AJAX_SUCCESS="modal:ajax:success",e.fbx_modal.AJAX_FAIL="modal:ajax:fail",e.fbx_modal.AJAX_COMPLETE="modal:ajax:complete",e.fn.fbx_modal=function(t){return 1===this.length&&new e.fbx_modal(this,t),this}}),o("modal",function(){}),function(){"use strict";var e,t,o=self.navigator,i=String,s=Object.prototype.hasOwnProperty,a={},r={},n=/^\s*application\/(?:vnd\.oftn\.|x-)?l10n\+json\s*(?:$|;)/i,l=Array.prototype.indexOf||function(e){for(var t=this.length,o=0;o0&&"number"!=typeof e)if("string"==typeof e)d(c(e));else if(!1===e)r={};else{var t,o,n;for(t in e)if(s.call(e,t)){if(o=e[t],t=t.toLowerCase(),t in r&&!1!==o||(r[t]={}),!1===o)continue;if("string"==typeof o){if(0!==i.locale.toLowerCase().indexOf(t)){t in a||(a[t]=[]),a[t].push(o);continue}o=c(o)}for(n in o)s.call(o,n)&&(r[t][n]=o[n])}}return Function.prototype.toLocaleString.apply(i,arguments)},u=function(e){for(var t,o=a[e],i=0,s=o.length;i"',t.error&&(i+=t.error),t.message&&(i+=": "+t.message),i+='"',a.html(i).addClass("fbxt-email-error-text")):"success"===t.status||"unknown"===t.status?(i="Thanks! You'll be hearing from us soon.".toLocaleString(),s=!0,a.html(i).removeClass("fbxt-email-error-text")):"exists"===t.status&&(i="You're already subscribed to this list. Thanks!".toLocaleString(),s=!0,a.html(i).removeClass("fbxt-email-error-text")),s){this.find("h4,p,.fbxt-name-fields,.fbxt-email-input").hide();var r=this.find(".fbxt-email-action-button");r.data("orig-txt",r.val()),r.css("margin-left","auto").css("margin-right","auto"),r.off("click").click(e.fbx_modal.close).val("Close".toLocaleString())}}function s(t,o,i){e(".fbxt-email-response-text").html("An error occured while signing you up. The message is:".toLocaleString()+'
"'+t.responseJSON.error+": "+t.responseJSON.message+'"')}e(".fbxt-header-text").text(SPT_Transcripts.header_text.toLocaleString()),e(".fbxt-nav-new_tab .fbxt-nav-text").text("New Tab".toLocaleString()),e(".fbxt-nav-download .fbxt-nav-text").text("Download".toLocaleString()),e(".fbxt-content--footer .fbxt-nav-text").text("Scroll back to top".toLocaleString()),e(".fbxt-nav-new_tab").click(function(t){t.preventDefault();var o=e(this).closest("#fbxt-wrap").find(".fbxt-content--inner").html(),i=window.open("about:blank","_blank");i.document.write(o),i.document.write(''),i.document.close()}),e(".fbxt-nav-download").click(function(e){e.preventDefault();var t=SPT_Transcripts.site_url;t+="/index.php?plugin=smart-podcast-transcripts&action=download-pdf",t+="&post-id="+SPT_Transcripts.post_id,window.open(t)}),!SPT_Transcripts||SPT_Transcripts.download&&"false"!=SPT_Transcripts.download||e(".fbxt-nav-download").hide(),e(".fbxt-first-name-input").attr("placeholder","First Name".toLocaleString()),e(".fbxt-last-name-input").attr("placeholder","Last Name".toLocaleString()),e(".fbxt-email-input").attr("placeholder","Email Address".toLocaleString()),e(".fbxt-nav-email").click(function(o){o.preventDefault(),t(e(o.currentTarget))}),e(".fbxt-content--footer").click(function(t){t.preventDefault(),e(this).closest(".fbxt-content").animate({scrollTop:0},"fast")}),e("#fbxt-wrap").each(function(){var o=e(this).data("scroll-trigger");"number"==typeof o&&(o=Math.min(o,99.5),e(this).find(".fbxt-content").scroll(function(){100*(this.scrollTop+this.clientHeight)/this.scrollHeight>=o&&(t(e(this)),e(this).off("scroll"))})),e(this).find(".fbxt-content--inner").height()["auto","scroll","hidden"].includes(e.css("overflow")),i=100;let s;function a(e){return t(e).closest(".thrv_widget_menu")}const r={init(){tve_frontend_options.is_editor_page||r.frontendInit(),r.customMenuSwitchIcon(),s||(s=r.customMenuSwitchIcon.bind(this,!1),n.addResizeCallback(s)),r.zIndexOrder(),t(".thrv_widget_menu").each(((e,t)=>{r.addMutationListener(t)})),r.handleHiddenItems()},handleHiddenItems(){t(".thrv_widget_menu ul").each(((e,n)=>{const o=t(n),i=o.closest("li").find("> a .tve-item-dropdown-trigger"),s=this.hasVisibleItems(o);s||n.style.setProperty("display","none","important"),i.toggle(s)}))},hasVisibleItems(e){let t=!1;return e.find("> li").each(((e,n)=>{getComputedStyle(n).getPropertyValue("display").includes("none")||(t=!0)})),t},zIndexOrder(){const e=t("ul.tve_w_menu");n.highestZIndex=e.length+6;let o=n.highestZIndex;e.each((function(){this.style.zIndex=o+5;const e=t(this),n=e.closest("#content");e.find("ul").css("z-index",o+6).parent().addClass("menu-item-has-children"),e.parentsUntil("body,#wrapper,#tve_editor").each((function(){const e=t(this);let n=parseInt(e.css("z-index"));isNaN(n)&&(n=0),n=800===n&&e.is(".thrv_widget_menu")&&!e.hasClass("tve-mobile-dropdown")?o+7:Math.max(n,o+7),"static"!==e.css("position")&&(this.style.setProperty("z-index",n,"important"),this.classList.add("tcb-mp"))})),n.length&&"static"!==n.css("position")&&n.css("z-index",o+7).addClass("tcb-mp"),o--}))},frontendInit(e){const s=this;function a(e,o){const i=e.attr("href"),s=e[0]?e[0].hash:"",a=e.attr("target");if(s){let o;try{o=t(s)}catch(e){}o&&o.length&&n.jumpScrollTo(o,e[0])}a||o.ctrlKey||o.metaKey?window.open(i,a||"_blank"):location.href=i}(e=e||n.$document).off("click.menu-disable-links").on("click.menu-disable-links",".tve-active-disabled .tve_w_menu .tve-state-active",(function(e){const n=t(this).closest("li");if(!r.isHamburger(this)||!n.hasClass("menu-item-has-children"))return e.tvePreventNavigation=!0,!1})),e.off("menu_item_anchor_clicked").on("menu_item_anchor_clicked",".tve_w_menu li",(function(){const e=t(this);r.isHamburger(e)&&requestAnimationFrame((()=>{r.toggleState(e,!1)}))})),e.off("click.menu_item_click").on("click.menu_item_click",".tve_w_menu li:not(.tve-regular .tcb-mega-drop li)",(function(e){if(e.tvePreventNavigation)return!0;if(e.stopPropagation(),t(e.target).closest(".tve-regular .tcb-mega-drop").length)return!0;const n=t(this),l=n.children("a").first(),d=l[0],c=!!n.find("ul").length,u=t(e.target).closest(".tve-item-dropdown-trigger").length||t(e.clickedTarget).closest(".tve-item-dropdown-trigger").length,h=n.closest(".thrv_widget_menu").attr("class").includes("tve-custom-menu-switch-icon-"),m=n.closest(".tve_w_menu").hasClass("tve_vertical");if((h||m)&&c){if(!u&&n.hasClass("expand-children")&&function(e){const t=e.attr("href");return t&&"#"!==t&&0!==t.indexOf("javascript:")}(l))return l.hasClass("tve-jump-scroll")?l.trigger("click"):a(l,e),!1;n.toggleClass("expand-children");const t=n.find("ul").first(),r=n.hasClass("expand-children");s.hasVisibleItems(t)&&t[r?"slideDown":"slideUp"](i);const d=t.closest(".section-content,.tve-cb");if(o(d)){let e={top:"",left:"",width:""};if(r){const{top:n,left:o,width:i}=t[0].getBoundingClientRect();e={top:n,left:o,width:i},t.data("fixed-position",{top:n,scrollTop:d.scrollTop()})}t.toggleClass("fixed-menu-item",r).css(e)}return!1}if(c&&u)return!1;const g=n.children(".tve_et_click");return g.length>0?(g.trigger("click"),!0):!!l.attr("href")&&(l.hasClass("tve-jump-scroll")?(l.trigger("click"),!0):(a(l,e),void(r.isHamburger(n)&&d.pathname===window.location.pathname&&d.host===window.location.host&&d.protocol===window.location.protocol&&requestAnimationFrame((()=>{r.toggleState(n,!1)})))))})),e.off("click.prevent_navigation").on("click.prevent_navigation",".tve_w_menu li a:not(.thrv_text_element a):not(.tve-regular .tcb-mega-drop a)",(function(e){e.preventDefault()})),e.off("click.custom_menu").on("click.custom_menu",".tve-m-trigger",(function(){return r.toggleState(this),!1})),e.off("mousedown.close_menu").on("mousedown.close_menu",(e=>{t(e.target).closest(".thrv_widget_menu").length||r.closeAll()})),n.addResizeCallback(r.customMenuResponsive),n.addResizeCallback(r.mobileResponsiveToggle),r.customMenuResponsive(),r.refreshActiveStates(e),TCB_Front.$window.off("hashchange.tcb").on("hashchange.tcb",r.refreshActiveStates.bind(r,TCB_Front.$body)),r.positionLogo(e),r.mobileResponsiveToggle(),e.find(".section-content,.tve-cb").each(((e,n)=>{const i=t(n);o(i)&&i.off("scroll.menu").on("scroll.menu",(e=>{i.find(".fixed-menu-item").each(((n,o)=>{const i=t(o),s=i.data("fixed-position"),a=parseInt(s.top)+(s.scrollTop-e.currentTarget.scrollTop);i.css("top",`${a}px`)}))}))}))},mobileResponsiveToggle(){"mobile"===n.getDisplayType()?(n.$body.find(".vmd-right").attr("data-toggle-dir","vmd-right").removeClass("vmd-right").addClass("vmd-toggle"),n.$body.find(".vmd-left").attr("data-toggle-dir","vmd-left").removeClass("vmd-left").addClass("vmd-toggle")):n.$body.find(".vmd-toggle").each(((e,t)=>{const n=t.getAttribute("data-toggle-dir");n&&(t.classList.remove("vmd-toggle"),t.classList.add(n))}))},refreshActiveStates(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:TCB_Front.$body).find(".tve-custom-menu-type li > a").each((function(){if(!this.getAttribute("href")||"#"===this.getAttribute("href")||0===this.getAttribute("href").indexOf("javascript"))return;const e=t(this),n=location.protocol===this.protocol&&location.hostname===this.hostname&&location.pathname===this.pathname&&location.hash===this.hash;e.toggleClass("tve-state-active",n),e.parent().toggleClass("tve-state-active",n)}))},customMenuResponsive(){t(".tve-m-trigger:visible").length?t(".tve-m-trigger").each((function(){const e=t(this).parent().find("> ul");if(!e.data("tve-colors-added")&&e.find("ul a").attr("data-tve-custom-colour")){const n=e.find("ul a").attr("data-tve-custom-colour");e.find("> li > a").each((function(){const e=t(this);e.attr("data-tve-custom-colour")&&(e.attr("data-o-color",e.attr("data-tve-custom-colour")),e.attr("data-tve-custom-colour",n))}))}e.data("tve-colors-added",!0)})):(t(".tve-m-expanded").removeClass("tve-m-expanded"),t(".tve-m-trigger").each((function(){const e=t(this).parent().find("> ul");if(!e.data("tve-colors-added")&&e.find("> li > a").attr("data-o-color")){const t=e.find("> li > a"),n=t.attr("data-o-color");t.attr("data-tve-custom-colour",n).removeAttr("data-o-color")}e.data("tve-colors-added",!1)})))},customMenuSwitchIcon(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const o=n.getDisplayType();t(".thrv_widget_menu").each((function(){const n=t(this),i=n.attr("data-tve-allhoriz");let s=n.attr("data-tve-switch-icon"),a=!1;const l=n.data("tve-frontend-init");n.data("tve-frontend-init",!0),s||i||(s="tablet,mobile");const d=s.split(","),c=n.hasClass("tve-regular")||!l&&!n.find(".tve-m-trigger").is(":visible");if(n.removeClass("tve-custom-menu-switch-icon-desktop tve-custom-menu-switch-icon-tablet tve-custom-menu-switch-icon-mobile"),e&&n.find("ul:not(.tcb-masonry.masonry)").removeAttr("style"),d.includes(o)?n.addClass(`tve-custom-menu-switch-icon-${o}`):a=!0,n.toggleClass("tve-regular",a),n.toggleClass("tve-dropdown",!a),n.find("li.menu-item").toggleClass("tcb-menu-img-hamburger",!a),l&&a&&c)return void r.ensureOnScreenDropdown(n);n.toggleClass("tve-regular",a),n.toggleClass("tve-dropdown",!a);const u=n.find(":not(.tve-ham-wrap) > ul.tve_w_menu, .tve-ham-wrap");if(a)r.ensureRegularLogoSplit(n),n.find("ul").removeAttr("style"),n.find("li").removeClass("expand-children"),n.find(".tve-m-expanded").removeClass("tve-m-expanded"),u.removeAttr("style"),setTimeout((()=>n.find(".tcb-masonry").masonry()),1e3);else{if(r.ensureHamburgerLogoSplit(n),n.find(".tcb-masonry").each((function(){const e=t(this);e.data("masonry")&&e.masonry("destroy")})),!n.data("calc-dimensions")){n.find(".sub-menu").slideDown(0).slideUp(0).removeAttr("style"),n.data("calc-dimensions",!0);const e=u.attr("style","height: auto !important;max-height:none !important").outerHeight();u.removeAttr("style"),n.data("calc-height",e)}e?r.toggleState(n,!1):r.reposition(n)}r.ensureOnScreenDropdown(n)}))},isHamburger(e){const t=a(e);return t.length>0&&t.attr("class").includes("tve-custom-menu-switch-icon-")},isVertical(e){const t=a(e);return t.length>0&&t.find(".tve_vertical").length>0},toggleState(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i;const s=a(e),l=s.find("ul").first();let d=s.find(".tve-ham-wrap");0===d.length&&(d=l);const c=d.hasClass("tve-m-expanded");let u=!c;if(!this.hasVisibleItems(l))return s;if(void 0!==t&&(u=t),u===c)return s;if(s.hasClass("tve-mobile-side-fullscreen")&&n.$body.toggleClass("tve-fullscreen-menu",u),s.find(".tve-m-trigger").toggleClass("tve-triggered-icon",t),u&&s.parents(".tcb-mp").addBack().css("z-index",800),!s.hasClass("tve-mobile-dropdown")){if(u){if(tve_frontend_options.is_editor_page){const e=s.find(".tve-m-trigger");e.hasClass("close-offscreen-icon-available")||e.append(e.find(".tcb-icon-close").clone().removeClass("tcb-icon-close").addClass("tcb-icon-close-offscreen")).addClass("close-offscreen-icon-available ")}}else setTimeout((()=>{r.zIndexOrder()}),i);return d.toggleClass("tve-m-expanded",t).removeAttr("style"),s}if(u){d.css("display","flex");const e=this.getMenuPositionalParent(s),t=parseInt(s.data("calc-height")||"500")+"px",n=e.outerWidth(),i=this.getMenuDropdownPosition(s,d,n);d.attr("style",`visibility: visible;display: flex;margin-left: 0 !important;${i}width:${n}px !important;max-height:${t}px`),d.addClass("tve-m-expanded"),setTimeout((()=>{d.css("max-height","none")}),o)}else s.data("calc-height",d.outerHeight()),d.stop().slideUp(o,(()=>{d.removeClass("tve-m-expanded").removeAttr("style"),d.css("visibility","hidden")}));return s},getMenuDropdownPosition(e,t,o){const i=n.getDisplayType();let s=n.getMediaAttr(e,"data-dropdown-position",i);const a=e.find(".tve-m-trigger .tcb-icon-close"),r=a.offset(),l=e.offset();let d="";switch(t.is("ul")&&(t=this.getMenuPositionalParent(e),s="full"),"mobile"===i&&(s="full"),s){case"left":d=`right: ${parseInt(l.left+e.outerWidth()-r.left-a.outerWidth())}px;left: unset;`;break;case"right":d=`left: ${parseInt(r.left-l.left)}px;right:unset;`;break;case"full":d=`left:${this.getMenuPositionalParent(e).offset().left-l.left}px;`;break;default:if(void 0!==s&&1===parseInt(e.attr("data-offscreen-width-setup"))){let e=t.css("max-width");(e.includes("%")||"none"===e)&&(e=t.outerWidth()),o=Math.min(o,parseInt(e))}d=`left: ${parseInt(r.left-l.left-o/2+a.outerWidth()/2)}px;right:unset;`}return d},getMenuPositionalParent:e=>e.closest(".tve-page-section-in, #tve_editor, #wrapper, .section-content"),reposition(e){const t=a(e),n=t.find(".tve-m-expanded").first(),o=n.length>0;if(t.find(".tve-m-trigger").toggleClass("tve-triggered-icon",o&&t.attr("class").includes("tve-mobile-")),o&&t.hasClass("tve-mobile-dropdown")){const e=this.getMenuPositionalParent(t),o=parseInt(t.data("calc-height")||"500")+"px",s=e.outerWidth(),a=this.getMenuDropdownPosition(t,n,s);let r=n.css("display");"none"===r&&(r="flex"),n.attr("style",`visibility: visible;margin-left: 0 !important;${a}width:${s}px !important;max-height:${o}px;display:${r}`),setTimeout((()=>{n.css("max-height","none")}),i)}return t},closeAll(){t(".thrv_widget_menu").each(((e,t)=>{r.toggleState(t,!1)}))},positionLogo(e){(e||n.$body).find(".tcb-menu-logo-wrap").each(((e,n)=>{const o=t(n),i=o.siblings(),s=Math.floor(i.length/2);i.eq(s).before(o)}))},ensureLogoSplit(e){const t=a(e);t.hasClass("tcb-logo-split")&&(r.isHamburger(t)?r.ensureHamburgerLogoSplit(e):r.ensureRegularLogoSplit(e))},ensureHamburgerLogoSplit(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a(e).find("li.tcb-menu-logo-wrap");const o=a(e);if(n.children().length){o.find(".tcb-hamburger-logo").remove();const e=t('');e.append(n.children()),o.find(".thrive-shortcode-html").prepend(e)}},ensureRegularLogoSplit(e){const t=a(e),n=t.find(".tcb-hamburger-logo .tcb-logo"),o=t.find("li.tcb-menu-logo-wrap");n.length&&o.length&&o.empty().append(n),r.handleLogoOverflow(t)},handleLogoOverflow(e){const t=e.find("li.tcb-menu-logo-wrap");if(t.length)if(r.menuOverflows(e)){const e=t.outerHeight(!0),n=t.outerWidth();t.closest(".thrive-shortcode-html").css("padding-top",e+"px"),t.css({top:`-${e}px`,left:`calc(50% - ${Math.round(n/2)}px)`,position:"absolute"})}else t.removeAttr("style"),t.closest(".thrive-shortcode-html").css("padding-top","");else e.find(".thrive-shortcode-html").css("padding-top","")},menuOverflows(e){let n=0;return e.find(".tve_w_menu > li").each((function(){n+=t(this).outerWidth(!0)})),n>e.parent().width()-5},addMutationListener(e){const t=a(e);let o;const i=()=>{cancelAnimationFrame(o),o=requestAnimationFrame(r.handleLogoOverflow.bind(this,t))};if(window.ResizeObserver){const e=t.find("ul.tve_w_menu")[0];if(!e)return;const o=new ResizeObserver(i);if(!t.data("resize-observer")){o.observe(e),t.data("resize-observer",o);const n=new MutationObserver((e=>{Array.from(e).forEach((e=>{e.target.classList.contains("tcb-menu-logo-wrap")||"UL"===e.target.tagName&&"childList"===e.type&&e.addedNodes.length&&Array.from(e.addedNodes).forEach((e=>n.observe(e,{attributes:!0})))})),t.hasClass("tve-regular")&&i()}));t.find(".tve_w_menu > li:not(.tcb-menu-logo-wrap)").each(((e,t)=>{n.observe(t,{attributes:!0})}))}const s=t.find("li.tcb-menu-logo-wrap");if(s.length&&!s.data("resize-observer")&&(s.data("resize-observer",o),o.observe(s[0])),t.hasClass("tcb-mega-std")&&!t.data("mega-resize-observer")){let e;const o=new ResizeObserver((()=>{cancelAnimationFrame(e),e=requestAnimationFrame(r.handleMegaMenuPosition.bind(this,t))}));t.find(".tcb-mega-drop").each(((e,t)=>{n.inlineCssVariable(t,"top","var(--mega-menu-top,100%)")})),o.observe(t[0]),t.data("mega-resize-observer",o)}}},handleMegaMenuPosition(e){const t=e.find(".tve_w_menu");if(t.length){const o=e[0].getBoundingClientRect().bottom,i=getComputedStyle(t[0]),s=parseInt(i.getPropertyValue("border-bottom-width"));e.find(".menu-item.menu-item-has-children.lvl-0").each(((e,t)=>{const i=t.getBoundingClientRect().bottom,a=o-i-s;a>0?n.inlineCssVariable(t,"--mega-menu-top",`calc(100% - ${a}px)`):n.inlineCssVariable(t,"--mega-menu-top","")}))}},ensureOnScreenDropdown(e){const o=a(e),i=o.hasClass("tve-regular"),s=o.hasClass("tve-vertical-menu"),r=o.offset().left+o.outerWidth();o.find("li:last-child > ul").each(((e,n)=>{const o=t(n),s=o.offset().left+o.outerWidth();Math.ceil(s-r)>=0&&i&&s li li").each(((e,t)=>{let o;s&&(o=t.parentNode.closest("li"),o&&o.classList.add("expand-children"));const a=t.getBoundingClientRect();let r=parseFloat(t.getAttribute("data-init-width"));if(r||(r=a.width,t.setAttribute("data-init-width",r)),r+a.left>document.body.offsetWidth){const e=document.body.offsetWidth-a.left,o=r-e;i&&r>e&&n.inlineCssVariable(t.parentNode,{left:`calc(100% - ${o}px)`})}else n.inlineCssVariable(t,{"max-width":"","min-width":""});o&&o.classList.remove("expand-children")})):o.find(".tve_w_menu > li li").each(((e,t)=>{n.inlineCssVariable(t,{"max-width":"","min-width":""})}))}};t(window).on("tcb_after_dom_ready",(()=>r.init())),window.addEventListener("load",(()=>r.init())),window.TCB_Front.menu=r,e.exports=r,TCB_Front.setModuleLoadedStatus("menu",!0)}(ThriveGlobal.$j,TCB_Front)}},t={};!function n(o){var i=t[o];if(void 0!==i)return i.exports;var s=t[o]={exports:{}};return e[o](s,s.exports,n),s.exports}(4916)}();; !function(){var t={94698:function(t,e,o){((e,n)=>{const s=o(47617),a=o(90333),i={init:()=>{TCB_Front.Utils.isEditorPage()||(e(".thrv_social.thrv_social_custom").each(((t,o)=>i.initUI(e(o)))),i.initButtons(),e("body").on("click",".thrv_social_custom:not(.thrv_social_follow) .tve_s_item",(function(){const t=e(this),o=t.attr("data-s");a[o]&&a[o](t)})),e(".thrv_social_follow").each(((t,o)=>{let n=!0;e(o).find(".tve_s_item").each(((t,o)=>{const s=e(o);s.find("a").attr("href")?n=!1:s.hide()})),n&&o.style.setProperty("display","none","important")}))),s.initShareCounts()},initUI:t=>{const e=n.Utils.jsonParse(t,"data-device-config"),o=n.getDisplayType();if(e[o]){const n=e[o],s=n.button_type||"tve_social_itb",a=1===parseInt(n.isFullWidth),i=n.showCount,r=1===parseInt(n.isVertical),c=t.find(".tve_social_items").attr("class").replace(/(tve_social_items|tve_social_custom)/g,"").match(/(\s+)?tve_social_([a-z]{2,3})/),d=c?"tve_social_"+c[2]:"tve_social_itb";d!==s&&t.find(".tve_social_items").removeClass(d).addClass(s),a&&t.toggleClass("tcb-social-full-width",a),0===parseInt(i)&&t.find(".tve_s_share_count").remove(),n.isVertical&&t.toggleClass("tcb-social-vertical",r)}},initButtons:()=>{window.FB&&setTimeout((function(){e(".thrv_social_default .tve_s_fb_share, .thrv_social_default .tve_s_fb_like").each((function(){FB.XFBML.parse(this)}))}),200)}};window.TCB_Front.onSocialCustomClick=a,t.exports=i})(ThriveGlobal.$j,TCB_Front)},90333:function(t){const e={wnd(t,e,o){const n=void 0!==window.screenLeft?window.screenLeft:screen.left,s=void 0!==window.screenTop?window.screenTop:screen.top;let a,i;a=window.innerWidth?window.innerWidth:document.documentElement.clientWidth?document.documentElement.clientWidth:screen.width,i=window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:screen.height;const r=a/2-e/2+n,c=i/2-o/2+s,d=window.open(t,"Thrive Share","scrollbars=yes,resizable=yes,toolbar=no,menubar=no,scrollbars=no,location=no,directories=no,width="+e+", height="+o+", top="+c+", left="+r);return window.focus&&d.focus(),d},fb_share(t){const o=t.data();if(o.href||(o.href=location.href),o.type&&"feed"!==o.type)e.wnd("https://www.facebook.com/sharer/sharer.php?u="+encodeURIComponent(o.href),650,500);else{let t="";o.name&&(t+="&title="+encodeURIComponent(o.name)),o.description&&(t+="&description="+encodeURIComponent(o.description)),o.href&&(t+="&u="+encodeURIComponent(o.href)),o.caption&&(t+="&caption="+encodeURIComponent(o.caption)),o.image&&(t+="&picture="+encodeURIComponent(o.image)),t="?"+t.substr(1),e.wnd("https://www.facebook.com/sharer.php"+t,650,500)}return!1},t_share(t){const o=t.data();o.href||(o.href=location.href),e.wnd("https://twitter.com/intent/tweet?url="+encodeURIComponent(o.href)+(o.tweet?"&text="+encodeURIComponent(o.tweet):"")+(o.via?"&via="+o.via:""),550,450)},x_share(t){const o=t.data();o.href||(o.href=location.href),e.wnd("https://twitter.com/intent/tweet?url="+encodeURIComponent(o.href)+(o.post?"&text="+encodeURIComponent(o.post):"")+(o.via?"&via="+o.via:""),550,450)},in_share(t){const o=t.data();o.href||(o.href=location.href),e.wnd("https://www.linkedin.com/shareArticle?mini=true&url="+encodeURIComponent(o.href),550,400)},pin_share(t){const o=t.data();o.href||(o.href=location.href),e.wnd("https://pinterest.com/pin/create/button/?url="+encodeURIComponent(o.href)+(o.media?"&media="+encodeURIComponent(o.media):"")+(o.description?"&description="+encodeURIComponent(o.description):""),600,600)},xing_share(t){const o=t.data();o.href||(o.href=location.href),e.wnd("https://www.xing.com/spi/shares/new?url="+encodeURIComponent(o.href),600,500)}};t.exports=e},47617:function(t){(e=>{const o={initShareCounts:()=>{!window.TVE_Dash||TVE_Dash.ajax_sent?o.getShareCounts():TCB_Front.$document.on("tve-dash.load",(function(){const t=o.getShareCounts(e("body"),{},!0);t&&TVE_Dash.add_load_item("tcb_social",t[0],t[1])}))},getShareCounts:(t,o,n)=>{const s=(t=t||e("body")).find(".tve_social_items.tve_social_custom");if(!s.length)return;const a={action:"tve_social_count",for:[]};if(void 0!==o?e.each(o,(function(t,e){a[t]=e})):"undefined"!=typeof tve_path_params&&tve_path_params.post_id&&(a.post_id=tve_path_params.post_id),s.each((function(t){const o=e(this),n={};if(o.data("tve-social-counts")||!o.hasClass("tve_social_cb")&&"1"!==o.parent().attr("data-counts"))return void o.data("tve-social-counts",1);o.data("tve-social-counts",1);const s=o.prev(".tve_s_share_count"),i=o.children(".tve_s_item").each((function(){const t=e(this).addClass("tve_count_loading");n[t.attr("data-s")]=t.attr("data-href")}));if(n.hasOwnProperty("t_share")&&1===i.length)return i.removeClass("tve_count_loading"),s.remove(),void o.parent().removeAttr("data-counts");a.for[t]=n})),!a.for.length)return null;TCB_Front.total_share_counts={};const i=function(t){t&&t.counts&&t.totals&&s.each((function(o){const n=e(this),s=n.prev(".tve_s_share_count"),a=n.children(".tve_s_item");e.each(t.counts[o],(function(t,e){a.filter(".tve_s_"+t).find(".tve_s_count").html(e.formatted)})),a.removeClass("tve_count_loading");let i=s.length?window.getComputedStyle(s[0]).display:"flex";if(t.totals&&t.totals[o]&&"1"===n.parent().attr("data-counts")){let e=parseInt(n.parent().attr("data-minShares"));e=isNaN(e)?0:e,s.find(".tve_s_cnt").html(t.totals[o].formatted),parseInt(tve_frontend_options.is_editor_page)||(i=e{if(TCB_Front.isModuleLoaded("social-share"))return;const e=o(94698);t(window).on("tcb_after_dom_ready",(()=>e.init())),TCB_Front.setModuleLoadedStatus("social-share",!0)})(ThriveGlobal.$j)}();;