void 0===TCB_Front.js_modules.divider&&TCB_Front.setModuleLoadedStatus("divider",!1),((t,d)=>{if(TCB_Front.isModuleLoaded("divider"))return;const e={init(){d.addResizeCallback(e.customDividerStyle),e.customDividerStyle()},customDividerStyle(){t(".thrv-divider").each((function(){const i=t(this),s=i.find("hr");TCB_Front.Utils.windowWidth()>1023?e.removeOldClass(s).addClass(d.getMediaAttr(i,"data-style","desktop")):TCB_Front.Utils.windowWidth()>767?e.removeOldClass(s).addClass(d.getMediaAttr(i,"data-style","tablet")):e.removeOldClass(s).addClass(d.getMediaAttr(i,"data-style","mobile"))}))},removeOldClass:t=>(t.removeClass((function(t,d){return(d.match(/(^|\s)tve_sep-\S+/g)||[]).join(" ")})),t)};t(window).on("tcb_after_dom_ready",(()=>e.init())),window.addEventListener("load",(()=>e.init())),TCB_Front.setModuleLoadedStatus("divider",!0)})(ThriveGlobal.$j,TCB_Front);;
void 0===TCB_Front.js_modules["post-list"]&&TCB_Front.setModuleLoadedStatus("post-list",!1),(t=>{if(!TCB_Front.isModuleLoaded("post-list")){t(window).on("tcb_after_dom_ready",(()=>{t(".tcb-post-list").each(((i,s)=>{new e(t(s)).renderPagination()}))}));class e{constructor(e){this.$element=e,this.content="",this.listArgs={};let i=this.getAttr("data-css");const s=t.Event("tcb_post_list_identifier.tcb");if(this.$element.trigger(s),s.identifier&&(i=s.identifier),this.identifier=i,this.listIdentifier="article",tve_frontend_options.is_editor_page?this.editorInit():this.frontendInit(),this.isCarousel()){this.isEditor=tve_frontend_options.is_editor_page;const t=this.$element.find(".tcb-carousel-container");t.attr("data-carousel-settings",decodeURI(t.attr("data-carousel-settings"))),this.carousel=new TCB_Front.Carousel(this),this.carousel.initCarousel()}}getPaginationInstance(){if(this.listArgs&&this.listArgs.attr){const t=this.listArgs.attr["pagination-type"];if(t.length&&"none"!==t&&void 0!==TCB_Front.Pagination)return TCB_Front.Pagination.factory(t,this)}}renderPagination(){this.pagination=this.getPaginationInstance(),this.pagination&&(tve_frontend_options.is_editor_page||this.pagination.addLoadListeners(),this.pagination.render())}editorInit(){this.listArgs={attr:{"pagination-type":this.getAttr("data-pagination-type"),total_post_count:this.getAttr("data-total_post_count")?this.getAttr("data-total_post_count"):100,pages_near_current:this.getAttr("data-pages_near_current")?this.getAttr("data-pages_near_current"):2},query:{posts_per_page:this.getAttr("data-posts_per_page")?this.getAttr("data-posts_per_page"):6,paged:1}}}frontendInit(){"undefined"==typeof tcb_post_lists?console.warn("Error initializing the post list parameters"):(this.listArgs=tcb_post_lists.find((t=>this.$element.is(t.identifier))),this.listArgs&&(this.listArgs.query&&void 0!==this.listArgs.query.offset&&delete this.listArgs.query.offset,this.listArgs.attr.queried_object=0,this.listArgs.query.queried_object=tve_frontend_options.queried_object,this.content=t('.tcb-post-list-template[data-identifier="'+this.listArgs.template+'"]').html()))}getAttr(t){return this.$element.attr(t)}getItems(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.listArgs;TCB_Front.Utils.restAjax({route:tve_frontend_options.routes.posts+"/html",data:{content:this.content,args:e}}).done((e=>{"function"==typeof t&&t(e),this.initItems(),TCB_Front.event_triggers(this.$element)})).fail((()=>{console.warn("There was an error and the content could not be loaded.")}))}insertItems(e){let i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e.count&&e.posts){const s=this.$element.clone().empty();for(const t in e.posts)e.posts.hasOwnProperty(t)&&s.append(e.posts[t]);i?(this.$element.replaceWith(s),this.identifier.includes("tve-u-")?this.$element=t(`.tcb-post-list[data-css=${this.identifier}]`):this.$element=t(this.identifier),t(window).trigger("tcb_post_list_after_item_insert")):this.isCarousel()&&this.carousel?(this.$element.find(".slick-track").append(s.html()),this.carousel.initCarousel(!0)):(this.$element.append(s.html()),this.masonryRedo()),e.total_post_count&&(this.listArgs.attr.total_post_count=e.total_post_count)}}isLoading(){return this.$element.data("loading")}enableLoading(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.$element.addClass("tve-loading"+(t.length?" "+t:"")),this.$element.data("loading",!0)}disableLoading(){setTimeout((()=>this.$element.removeClass("tve-loading load-bot")),100),this.$element.data("loading",!1)}masonryRedo(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.$element;if(t.length&&t.data("masonry")){const e=t.find(`${this.listIdentifier}:not(.masonry-brick)`);t.masonry("appended",e),t.masonry("layout")}}initItems(){(this.$element.find(".tcb-custom-field-source.thrv-rating").length||this.$element.find("[data-shortcode-id*='acf_']").length)&&TCB_Front.dynamicElements.init()}isCarousel(){return"carousel"===this.$element.attr("data-type")}}window.TCB_Front.PostList=e,TCB_Front.setModuleLoadedStatus("post-list",!0)}})(ThriveGlobal.$j);;
void 0===TCB_Front.js_modules["post-grid-compat"]&&TCB_Front.setModuleLoadedStatus("post-grid-compat",!1),(t=>{if(TCB_Front.isModuleLoaded("post-grid-compat"))return;window.addEventListener("load",(function(){o.postGridLayout()}));const o={postGridLayout(){try{t(".tve_post_grid_masonry,.tcb-post-list.masonry").each((function(){const o=this.dataset.masonry?JSON.parse(this.dataset.masonry):{},s=TCB_Front.getDisplayType()[0];void 0!==o[`gutter-${s}`]&&(o.gutter=parseInt(o[`gutter-${s}`])),t(this).masonry(o).css("opacity",1)}))}catch(t){console.log(t)}const o=t(".tve_post_grid_grid");o.length<=0||o.find(".tve_pg_row").each((function(){let o=0;const s=t(this).css("height","");s.find(".tve_post").each((function(){const s=t(this),e=s.outerHeight();e>o&&(o=e),s.css("height","100%")})),s.css("height",o-1+"px")}))}};t(window).on("tcb_after_dom_ready",(()=>{o.postGridLayout(),TCB_Front.Utils.isEditorPage()||TCB_Front.addResizeCallback(o.postGridLayout)})).on("tcb_toggle_open",(()=>o.postGridLayout())).on("tl_form_opened",(()=>o.postGridLayout())).on("tcb_on_content_show",(()=>o.postGridLayout())).on("tcb_before_lightbox_reposition",(()=>o.postGridLayout())).on("tcb_post_list_after_item_insert",(()=>o.postGridLayout())).on("tcb_off_screen_sidebar_toggle",(()=>o.postGridLayout())),window.TCB_Front.postGridLayout=o.postGridLayout,TCB_Front.setModuleLoadedStatus("post-grid-compat",!0)})(ThriveGlobal.$j);;
void 0===TCB_Front.js_modules.dropdown&&TCB_Front.setModuleLoadedStatus("dropdown",!1),(t=>{if(TCB_Front.isModuleLoaded("dropdown"))return;const o=".tve_lg_dropdown, .tcb-form-dropdown, .tve-dynamic-dropdown";t(window).on("tcb_after_dom_ready",(()=>{if(!TCB_Front.Utils.isEditorPage()){const o=t(TCB_Front.Utils.isEditorPage()?"#tve_editor":"body");e.initEvents(o)}t(`${o}`).each((function(o,e){t(e).find("input").attr("readonly","")}))}));const e={initEvents(e){t(".tve-lg-dropdown-trigger").each((function(){t(this).attr("tabindex",-1).removeAttr("href").siblings("input").attr("style","position: absolute; opacity: 0;").attr("autocomplete","off")}));let n="";const d=function(){n="",t(".tve-lg-dropdown-option.tve-state-hover,.tve-dynamic-dropdown-option.tve-state-hover").removeClass("tve-state-hover")};e.off("mousedown.dropdownclick").on("mousedown.dropdownclick",o,(function(e){if(e.stopPropagation(),e.preventDefault(),e.target.classList.contains("tve-lg-dropdown-list"))return!1;const n=t(this).closest(o);n.toggleClass("tve-state-expanded"),n.find("input").trigger("focus")})).off("blur.dropdownblur").on("blur.dropdownblur",".tve_lg_dropdown input, .tcb-form-dropdown input, .tve-dynamic-dropdown input",(function(t){t.stopPropagation(),t.preventDefault(),d(),this.closest(o).classList.remove("tve-state-expanded")})).off("keydown.dropdownkeypress").on("keydown.dropdownkeypress",".tve_lg_dropdown input, .tcb-form-dropdown input, .tve-dynamic-dropdown input",(function(e){const a=t(this).closest(o),i=a.find(".tve-state-active");switch(9!==e.keyCode&&(e.stopPropagation(),e.preventDefault()),e.keyCode){case 13:a.toggleClass("tve-state-expanded"),d();break;case 38:0===i.length?r(a.find(".tve-lg-dropdown-option,.tve-dynamic-dropdown-option").last(),a):i.prev().length&&r(i.prev(),a),d();break;case 40:0===i.length?r(a.find(".tve-lg-dropdown-option,.tve-dynamic-dropdown-option").first(),a):i.next().length&&r(i.next(),a),d();break;case 27:a.removeClass("tve-state-expanded"),d();break;case 8:d();break;default:n+=String.fromCharCode(e.keyCode).toLowerCase(),t(".tve-lg-dropdown-option.tve-state-hover,.tve-dynamic-dropdown-option.tve-state-hover").removeClass("tve-state-hover");const o=a.find(".tve-lg-dropdown-option,.tve-dynamic-dropdown-option").filter((function(){return this.dataset.value.toLowerCase().startsWith(n)})).first();o.length&&(t(".tve-lg-dropdown-list").animate({scrollTop:o.prevAll().length*o.outerHeight()},500),o.addClass("tve-state-hover"))}})),e.off("mousedown.dropdownoptionclick").on("mousedown.dropdownoptionclick",".tve-lg-dropdown-option,.tve-dynamic-dropdown-option",(function(e){e.stopPropagation(),e.preventDefault();const n=t(this),d=n.closest(o);r(n,d),d.removeClass("tve-state-expanded")}));const r=function(t,o){o.find(".tve-lg-dropdown-trigger").find(".tve-disabled-text-inner").html(t.text()),o.find("input").attr("value",t.attr("data-value")).val(t.attr("data-value")),o.find(".tve-state-active").removeClass("tve-state-active"),t.addClass("tve-state-active"),o.trigger("tcb.dropdown_value_changed")}}};TCB_Front.setModuleLoadedStatus("dropdown",!0)})(ThriveGlobal.$j);;
!function(){if(window.TVE_Dash=window.TVE_Dash||{},!e||!e.$j){var a=window.$,e={$j:jQuery.noConflict()};a&&(window.$=a)}!function(a){TVE_Dash.ajax_sent=!1;var t={},s={};TVE_Dash.add_load_item=function(e,n,o){var r;if("function"!=typeof o&&(o=a.noop),TVE_Dash.ajax_sent){var i={},_={};return i[e]=n,_[e]=o,this.send_ajax(i,_),!0}return n?(t[e]&&"function"==typeof(null===(r=console)||void 0===r?void 0:r.warn)&&console.warn(e+" ajax action already defined"),t[e]=n,s[e]=o,!0):(console.error&&console.error("missing ajax data"),!1)},TVE_Dash.ajax_load_css=function(e){a.each(e,(function(e,t){a("link#"+(e+="-css")).length||a('').appendTo("head")}))},TVE_Dash.ajax_load_js=function(e){var t=document.body;a.each(e,(function(s,n){if(-1!==s.indexOf("_before"))return!0;var o=document.createElement("script");e[s+"_before"]&&a('