",{id:"tcb-drop-"+(this.$el.data("view")||this.key()),class:"tcb-drop-panel inline-panel",html:this._template(),"data-view":this.key()}).appendTo("#inline-drop-panels")[0]),e&&e.minWidth&&this.$el.css("min-width",e.minWidth+"px")},after_initialize(){this.__drop_panel_height=this.$(".drop-panel").outerHeight()},open(e,t){this.visible=!0;const s=TVE.$document.add(TVE.inner.$document);return s.on("keydown.drop_panel",_.bind(function(e){27===e.which&&(this.onCancel(),s.off("keydown.drop_panel"))},this)),this.$element=e,this.addToOpened(),this.show(),this.$target=t.jquery?t:t=a(t),this.position(),this.onOpen(e,t),TVE.inner.$window.off("scroll."+this.key()).on("scroll."+this.key(),_.bind(this.on_window_scroll,this)),!1},hide(e,t){i.prototype.hide.call(this,e,t),TVE.inner.$window.off("scroll."+this.key())},onOpen(){},cancel(){},on_window_scroll(){let e=this.offset.top-TVE.inner.$window.scrollTop();e=e<=this.base_offset.top?this.base_offset.top:e,this.$el.css({top:e+"px"})},position(){this.base_offset=TVE.main.$container.offset(),this.offset=this.$target.offset(),this.offset.left+=this.base_offset.left,this.offset.top+=this.base_offset.top+this.$target.outerHeight();const e=this.__drop_panel_height+this.$target.outerHeight()+45;this.offset.top+this.__drop_panel_height-TVE.inner.$window.scrollTop()>TVE.inner.$window.height()?(this.offset.top-=e,this.$element.hasClass("thrive_leads_shortcode")&&(this.offset.top-=e),this.$element.hasClass("thrive-quiz-builder-shortcode")&&(this.offset.top-=2*this.$target.outerHeight()+e),this.$(".tcb-panel-arrow").addClass("arrow-bottom")):(this.$(".tcb-panel-arrow").removeClass("arrow-bottom"),this.offset.top-=this.$target.outerHeight()),this.$el.css({left:this.offset.left+this.$target.outerWidth()/2-this.$el.outerWidth()/2+"px",top:this.offset.top-TVE.inner.$window.scrollTop()+"px"})}})},11212:(e,t,s)=>{!function(t){const i=s(43821);class a{constructor(e,t){this.value=e,this._computed=void 0!==t?t:!e}toString(){return this.value}isComputed(){return this._computed}}e.exports=i.extend({updateOnMouseLeave:!0,extra_states:!0,controls_init(e){const t=this;e.ToggleColor.update=function(){const e=t._read("color",this),s=this.config.config?this.config.config.css_suffix:"",i=TVE.functions.elementForSuffix(TVE.ActiveElement,s);this.setActive(e.toString().includes("inherit")||i.css("color")===TVE.ActiveElement.parent().css("color")?"inherit":"specific"),t.updateGradientControls()},e.ToggleColor.change=function(){t._write("color",this.isActive("inherit")?"inherit":""),e.FontColor.update(),e.ToggleColorControls.update()},e.FontColor.update=function(){this.setValue(t._read("color",this).toString())},e.FontColor.input=function(e){t._write("color",e?e.toString():"")},e.FontColor.clear=function(){this.applyTo().head_css({color:""},null,this.config.css_suffix,!1,this.config.css_prefix)},e.FontColor.change=function(t){this.input(t),e.EffectColor.update()},e.FontFace.update=function(e=TVE.ActiveElement){t.refresh();let s=t._read("--tve-font-family",this).toString();s?s=new a(s,!1):(s=t._read("font-family",this),TVE.state_manager.is_hover()&&0===s.toString().indexOf("var(")&&(s.value=e.css("font-family")));const i=s.toString();this.seems_custom=-1!==String(e.attr("class")).indexOf("ttfm"),this.inherited=s.isComputed()||i.includes("inherit"),this.initial_font=i,this.initial_weight=e.css("font-weight"),this.readFont(e),this.setInputValue(this.initial_font)},e.ToggleFont.update=function(){const e=t._read("font-family",this),s=t.getActive(e);this.setActive(s)},e.ToggleFont.change=function(){t._write("font-family",this.isActive("inherit")?"inherit":TVE.ActiveElement.css("font-family")),e.FontFace.update()},e.ToggleSize.update=function(){const e=t._read("font-size",this),s=t.getActive(e);this.setActive(s)},e.ToggleSize.change=function(){t._write("font-size",this.isActive("inherit")?"inherit":TVE.ActiveElement.css("font-size")),t.controls.FontSize.update()},e.ToggleColorControls&&(e.ToggleColorControls.update=function(){const e=TVE.froala.hasGradient()?"tcb-text-gradient-color":"tcb-text-solid-color";this.clearActive(),this.setActive(e),t.$(".tcb-color-toggle-element").hide(),t.$("."+e).show(),t.updateGradientControls()},e.ToggleColorControls.input=(e,s)=>{const i=s.getAttribute("data-value"),a=i.includes("gradient");this.$(".tcb-color-toggle-element").hide(),this.$("."+i).show(),TVE.froala.toggleGradient(a),t.controls.FontGradient.update(),t.toggleGradientControls(a)}),e.FontGradient&&(e.FontGradient.update=function(){const e=t.read_text_css("--tcb-gradient-text-value");this.updateGradientPreview(e),this.setValue(e)},e.FontGradient.input=function(e){t._write("--tcb-gradient-text-value",e),this.updateGradientPreview(e)},e.FontGradient.change=function(e){TVE.froala.toggleGradient(!0),this.input(e),t.apply_head_css()}),e.FontBaseColor&&(e.FontBaseColor.update=function(){this.$el.find(".tve-color-info").attr({"data-side":"bottom","data-tooltip":"The color will be used for underlines and strikethroughs"}),this.setValue(TVE.froala.get_css("--tcb-text-decoration-color",!0,!1,TVE.apply_filters("wrapper_selector",TVE.CONST.global_css_prefix)+" "))},e.FontBaseColor.input=function(e){e=e?e.toString():"",t._write("--tcb-text-decoration-color",e)},e.FontBaseColor.change=function(e){this.input(e),t.apply_head_css()}),e.FontSize.update=function(){this.setValue(String(t._read("font-size",this)))},e.FontSize.input=function(){t._write("font-size",this.value(!0))},e.FontSize.clear=function(){this.applyTo().head_css({"font-size":""},null,this.config.css_suffix,!1,this.config.css_prefix)},e.BgColor.update=function(){this.setValueOrNull(t._read("background-color",this).toString())},e.BgColor.input=function(e){t._write("background-color",e?e.toString():"initial")},e.BgColor.clear=function(){this.applyTo().head_css({"background-color":""},null,this.config.css_suffix,!1,this.config.css_prefix)},e.TextStyle.writeStyle=function(s,i){"text-decoration-line"!==i||"thin"!==e.EffectPicker.model.selected&&"none"!==e.EffectPicker.model.selected||(s["--eff"]=this.isActive("underline")?"thin":"none",s["text-decoration-color"]="var(--eff-color, currentColor)"),t._write(s),!TVE.editingTypogrpahy&&TVE.state_manager.is_default()&&TVE.froala.editor&&TVE.froala.editor.events.focus(),t.update("TextStyle")},e.TextStyle.clear=function(){this.applyTo().head_css({"text-decoration-color":"","text-decoration-line":""},null,this.config.css_suffix,!1,this.config.css_prefix)},e.Effect.set_drop_panel(e.EffectPicker),e.EffectColor.update=function(){this.setValue(t._read("--eff-color",this).toString()||TVE.ActiveElement.css("color"))},e.EffectColor.input=function(t){e.EffectPicker.setEffectColor(t,!0)},e.EffectSpeed.update=function(){this.setValue(TVE.getComputedStyle(TVE.ActiveElement,"--eff-speed",!0)||this.model.config.default+this.model.config.um[0])},e.EffectSpeed.input=function(){t._write("--eff-speed",this.value(!0))},this.bindEvents()},before_update(){this.refresh()},refresh(){this.elementCSS?this.elementCSS.setElement(TVE.ActiveElement):this.elementCSS=new TVE.CSS(TVE.ActiveElement),TVE.FLAGS.hover_element&&this.elementCSS.setComputedHover(TVE.ActiveElement.css(["text-decoration-line"]))},_read(e,t){const s=TVE.state_manager.is_hover()||TVE.FLAGS.hover_element?":hover":"";let i,l;if(TVE.ActiveElement.parents(TVE.ELEM.headings).length||t&&t.config.read_from&&"head"===t.config.read_from)i=t.applyTo().head_css(e,!1,t.config.css_suffix,!1,t.config.css_prefix).trim(),l=!i;else{const t=this.elementCSS.getComputed(e,s,"",!0);i=t.value,l=!t.pristine}return i||(i=TVE.ActiveElement.tcbCss(e),l=!0),new a(i,l)},_write(e,t=null,s=""){let i={};null===t?i=e:i[e]=t;const a=TVE.editingTypogrpahy?"":" !important",l=TVE.editingTypogrpahy?"":TVE.CONST.global_css_prefix+" ";_.each(i,(e,t)=>{i[t]=e?e.replace("!important","")+a:""}),this.controls.FontColor.applyElementCss(i,TVE.ActiveElement,s,l)},effectPicker:()=>s(93391),clearFormatting(){if(void 0===TVE.ActiveElement.data("froala.editor"))t.each(this.controls,function(e,t){t.clear()});else{if(TVE.froala.has_selection())return TVE.Components.text.clear_formatting();TVE.ActiveElement.removeAttr("data-css").removeClassContaining(TVE.CONST.global_styles.prefix_link),TVE.ActiveElement.children().each(function(){const e=t(this);if(e.hasClass("thrive-inline-shortcode"))return!0;const s=e.find(".thrive-inline-shortcode");if(s.length){for(;!s.parent().is("a");)s.unwrap();return!0}e.replaceWith(e.text())})}this.update()},bindEvents(){const e={strong:"bold",em:"italic",u:"underline",s:"line-through"};TVE.add_filter("tcb.link.format.apply",(t,s,i)=>(s.format.remove(i),this.controls.TextStyle.$(`[data-value="${e[i]}"]`).removeClass("tve-active").trigger("click"),!1)),TVE.add_filter("tcb.link.format.remove",(t,s,i)=>(this.controls.TextStyle.$(`[data-value="${e[i]}"]`).addClass("tve-active").trigger("click"),!1)),TVE.add_action(`tcb.element.selected.${this.key}`,e=>{e.closest(".thrive-inline-shortcode").length&&setTimeout(()=>{TVE.froala.selectNode(e,!0)})}),TVE.main.on("hover_state",function(){if(TVE.ActiveElement.hasClass("thrv-typography-link")){const e=TVE.ActiveElement.attr("data-selector");TVE.ActiveElement.addClass("tve-prevent-content-edit"),TVE.inner_$(e).addClass("tve-state-hover")}}),TVE.main.on("default_state",function(){if(TVE.ActiveElement.hasClass("thrv-typography-link")){const e=TVE.ActiveElement.attr("data-selector");TVE.ActiveElement.removeClass("tve-prevent-content-edit"),TVE.inner_$(e).removeClass("tve-state-hover")}})},getActive:e=>e.isComputed()||e.toString().includes("inherit")?"inherit":"specific",toggleGradientControls(e){this.$(".tcb-effect-wrapper").toggle(!e),this.controls.BgColor.$el.toggle(!e)},updateGradientControls(){this.controls.ToggleColorControls.$el.toggle(!TVE.editingTypogrpahy),this.$(".tcb-text-gradient-color").toggle(!TVE.editingTypogrpahy)}})}(jQuery)},11222:(e,t,s)=>{const i=s(16668);e.exports=i.control.extend({template:"controls/lead-generation/file/allowed-file-types",after_render(){this.$groups=this.$(".file-type-group"),this.$customInput=this.$(".custom-types"),this.$custom=this.$(".custom-container"),this.$err=this.$(".err-missing"),this.$extensionErr=this.$(".err-invalid"),this.$extensionErr.$extensions=this.$extensionErr.find(".invalid-ext-list")},onClick(e,t){const s=this.selectedGroups();if(t.classList.contains("selected")){t.classList.remove("selected");const e=s.indexOf(t.dataset.value);e>-1&&s.splice(e,1)}else t.classList.add("selected"),s.unshift(t.dataset.value);this.checkCustom(!0),this.input()},input(){this.hasSelection()?(this.$err.tcbHide(),this.component.saveSettings()):this.$err.tcbShow()},selectedGroups(){return this.component&&this.component.settings?(this.component.settings.file_types=this.component.settings.file_types||[],this.component.settings.file_types):[]},customTypes(){return this.component&&this.component.settings?(this.component.settings.custom_file_types=this.component.settings.custom_file_types||[],this.component.settings.custom_file_types):[]},hasSelection(){const e=this.selectedGroups();return 1===e.length&&"custom"===e[0]?this.getCustomTypesInputValue(!0).length>0:e.length>0},update(){if(this.$groups.tcbRemoveClass("selected"),this.selectedGroups().length){const e=".group-"+this.selectedGroups().join(",.group-");this.$groups.filter(e).tcbAddClass("selected")}this.$customInput.val(this.customTypes().join(", ")),this.checkCustom(),this.$err.tcbHide()},checkCustom(e=!1){let t=!1;this.selectedGroups().includes("custom")?(this.component.settings.custom_file_types=this.getCustomTypesInputValue(),t=!0):this.component.settings.custom_file_types=[],this.$custom.tcbToggleClass("tcb-hidden",!t),t&&e&&this.$customInput.trigger("focus"),this.checkCustomExtensions()},customChanged(e,t){const s=this.getCustomTypesInputValue();this.component.settings.custom_file_types=s,t.value=s.join(","),this.checkCustomExtensions(),this.input()},checkCustomExtensions(){const e=this.getInvalidExtensions();e.length?this.$extensionErr.tcbShow().$extensions.html(`
${e.join(", ")}`):this.$extensionErr.tcbHide()},getCustomTypesInputValue(e=!1){return this.$customInput.val().split(",").map(e=>e.trim().replace(/\./g,"")).filter(e=>e).filter(t=>!e||!this.model.extension_blacklist.includes(t))},getInvalidExtensions(){return this.getCustomTypesInputValue().filter(e=>this.model.extension_blacklist.includes(e))}})},11462:(e,t,s)=>{const i=s(16668);e.exports=i.component.extend({$tooltip:null,controls_init(){this.initTooltip(),TVE.add_filter("tcb_save_post_data_after",e=>{if(!TVE.CONST.landing_page&&TVE.CONST.theme){const t={};_.each(TVE.CONST.theme.scripts,(e,s)=>{t[`thrive_${s}_scripts`]=e}),e.scripts=t}return e})},focusScripts(e){const t=TVE.inner.$body.removeClass("edit_mode");e.prevent_close(),TVE.Editor_Page.focus_element(t),TVE.main.collapse_components(),this.docked.tcbToggleClass("open"),e.allow_close(),this.addTooltip()},initTooltip(){this.$tooltip||(this.$tooltip=new TVE.Views.other.Tooltip({icon:"custom-scripts",title:"Manage Custom Scripts",info:"Easily manage custom scripts in this area",learnMoreLink:"https://thrivethemes.com/tkb_item/how-to-add-scripts-to-single-pages-and-posts/",type:"custom-scripts"}))},addTooltip(){this.$el.find(".tcb-tooltip-container").length||this.$el.append(this.$tooltip.$el),this.$tooltip.display()},setScript(e,t){const s=t.getAttribute("name");TVE.CONST.landing_page?TVE.CONST.tve_global_scripts[s]=t.value:TVE.CONST.theme.scripts[s]=t.value},hideTooltip(){this.$tooltip&&this.$tooltip.hide()}})},11650:(e,t,s)=>{function i(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),s.push.apply(s,i)}return s}function a(e,t,s){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var s=t.call(e,"string");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}const l=s(16668),o=s(87476),c=s(74144),n=s(14333),r=s(81863);let d=!1;e.exports=l.component.extend({updateOnMouseLeave:!1,$symbols:[],$close_button:null,elements_not_allowed:["symbol","ct_symbol","tl_shortcode","quiz","ultimatum_countdown","ovation_capture","ovation_display","tcb_post_author_bio","thrive_author_box","thrive_author_follow","tcb_post_author_name","tcb_post_author_picture","tcb_post_categories","tcb_post_content","tcb_post_published_date","tcb_post_comments_number","tcb_post_tags","tcb_post_featured_image","tcb_post_title","tcb_post_read_more","thrive_post_meta"],storageKey:"thrive_symbol-",content_preview:s(50717),after_init(){d=TVE.inner_$.find(".tve-symbol-container").length,this.add_common_hooks(),"symbol"===this.key&&(TVE.StorageManager.unset("thrive_symbols"),TVE.add_action("component.update.layout.header",e=>{TVE.ActiveElement.filter(".edit_mode").tcbHasClass("tve-scroll-state")&&e.disable_extra_controls(["top","right","bottom","left"].map(e=>"margin-"+e))}),TVE.add_filter("tve.toc.should_sync",(e,t)=>((t.closest(".thrv_symbol").length||TVE.FLAGS.DURING_SYMBOL_SAVE)&&(e=!1),e)),d?(TVE.main.sidebar_extra.on("drawer_opened",e=>{"elements"===e&&TVE.main.sidebar_toggle_elements(this.get_elements_not_allowed(),!1)}),-1===["footers","headers"].indexOf(TVE.CONST.symbol_type)&&(TVE.add_filter("tcb_head_css_prefix",n.symbolHeadCssPrefix,50),TVE.add_filter("tcb.breadcrumb_click_before",r["tcb.breadcrumb_click_before"]),TVE.add_filter("hover_prefix_selector",r.hover_prefix_selector),TVE.StorageManager.unset(`${this.storageKey}${TVE.CONST.post.ID}`),TVE.add_action("tve.save_post.success",()=>{TVE.StorageManager.set(`${this.storageKey}${TVE.CONST.post.ID}`,!0)})),TVE.add_filter("css_rules_before_insert",n.changeCssRulesBeforeInsert),TVE.add_filter("tqb_change_quiz_before_insert",r.tqb_change_quiz_before_insert),TVE.add_filter("tcb.content_selector_prefix",this.content_selector_prefix),TVE.main.on("tve.tve_save_post",_.bind(this.generate_preview,this)),TVE.add_action("tcb.show_icons",r.actions["tcb.show_icons"]),TVE.$("#tcb-top-nav-list").addClass("tcb-compact-edit-mode")):(TVE.add_filter("tcb_css_rules_before",_.bind(this.process_css_rules_before,this)),TVE.add_filter("tcb_save_post_data_after",_.bind(this.add_css_rules_after_save,this)),TVE.add_filter("allow_dragenter",_.bind(this.filter_dragenter,this)),o.resize_background_section_from_symbol()),TVE.addHooks(s(90131),{}))},add_common_hooks(){this.tcb_editor_undo=_.bind(function(){this.$selected_symbol=TVE.reinitialize_element(this.$selected_symbol)},this)},get_elements_not_allowed(){let e=this.elements_not_allowed;return d||(e=[...e,"block"]),TVE.apply_filters("tcb.cp_elements_not_allowed",e)},placeholder_action(){this.open_modal()},open_modal:()=>(TVE.modal_open("symbols",{element:TVE.ActiveElement}),!1),filter_dragenter(e,t){if(!t.is(".thrv_wrapper"))return e;const s=t.parents(".thrv_symbol");return!(s.length&&!s.hasClass("symbol-edit-mode"))&&e},breadcrumbs_click_before:(e,t,s)=>0!==parseInt(s.dataset.index)&&e,generate_preview(){const e=TVE.Editor_Page.editor.attr("data-symbol-id");this.content_preview.savePreview(TVE.Editor_Page.editor.parent(),{post_id:e,file_name:e+".png"})},process_css_rules_before(e){this.deleted_rules=[];for(let t=0;t
[],hasResetOption:()=>!1,stateChange:TVE.$.noop,mouseOverState:TVE.$.noop,stateReset:TVE.$.noop,prepare_symbol_html_for_edit(){return TVE.ActiveElement.addClass("symbol-edit-mode"),TVE.ActiveElement.find(".thrive-symbol-shortcode.thrive-shortcode-html").addClass("thrive-shortcode-edit tve_editor_main_content ").removeClass("thrive-shortcode-html"),TVE.drag.bind_element(TVE.ActiveElement),TVE.ActiveElement.parents(".thrv-content-box, .thrv-page-section, .thrv-columns").addClass("tve_symbol_inside tcb-no-highlight"),this},add_edit_hooks(){TVE.addHooks(r,{tcb_head_css_prefix:50}),TVE.add_action("tcb.editor.undo",this.tcb_editor_undo)},remove_edit_hooks(){TVE.removeHooks(r,{tcb_head_css_prefix:50}),TVE.remove_action("tcb.editor.undo",this.tcb_editor_undo)},set_symbols(){const e=TVE.ActiveElement.find(".thrive-shortcode-edit");if(e.length){const t=e.attr("data-symbol-id"),s=TVE.inner.jQuery("[data-symbol-id="+t+"]"),i=this;_.each(s,function(e){e.classList.contains("thrive-shortcode-edit")||i.$symbols.push(e)})}return this},move_css_to_head(){const e=TVE.ActiveElement.find("style.tve-symbol-custom-style");e.length&&(TVE.Editor_Page.content_manager.insert_head_css(e.html(),this.moveCssToHeadCallback.bind(this)),e.remove())},moveCssToHeadCallback(){},close_edit_mode(){TVE.Editor_Page.processPreSave(this.$selected_symbol,{forms_filter:(e,t)=>!t.closest(".thrive-shortcode-html"),ignore_post_parent:1}).then(()=>{this.remove_edit_hooks(),this.save_symbol(),TVE.main.active_elem_nav_view.$el.removeClass("tcb-compact-edit-mode"),this.$selected_symbol.parents(".thrv-content-box, .thrv-page-section, .thrv-columns").removeClass("tve_symbol_inside tcb-no-highlight"),"function"==typeof this.after_close_edit_mode&&this.after_close_edit_mode(),TVE.do_action("tcb.symbol.close_edit_mode")}),this.prepare_symbol_html_on_close_edit()},prepare_symbol_html_on_close_edit(){return this.$selected_symbol.removeClass("symbol-edit-mode"),this.$selected_symbol.find(".thrive-shortcode-edit").removeClass("thrive-shortcode-edit tve_editor_main_content").addClass("thrive-shortcode-html"),this},save_symbol(){let e=this.$selected_symbol.find(".thrive-symbol-shortcode");0===e.length&&(e=this.$selected_symbol.find(".thrive-shortcode-html")),e.length||TVE.page_message(TVE.t.symbol_could_not_be_saved),TVE.$savedElement=this.$selected_symbol,TVE.do_action("tcb.symbol.before_save_logic",e),"function"==typeof this.before_save&&this.before_save();const t=TVE.Editor_Page.content_manager.get_clean_content({},e);let s=function(e){for(var t=1;t=0;o--){const c=TVE.stylesheet.cssRules[o];switch(c.type){case CSSRule.MEDIA_RULE:if(c.media&&c.media.length&&this.is_css_for_symbol(c.cssText,e)){const i=TVE.compat.conditionText(c);s[i]="",_.each(c.cssRules,function(a){t.is_good_css_for_symbol(a,e)&&(s[i]+=a.cssText.replace(/\n/g," "))})}break;case CSSRule.IMPORT_RULE:const o=TVE.FontManager.read_font_name(c.cssText),n=JSON.stringify({css:s}).replace(/\\/g,"");TVE.FontManager.is_font_used(o,n)&&void 0===i[o]&&(i[o]=1,a+=c.cssText);break;case CSSRule.STYLE_RULE:t.is_good_css_for_symbol(c,e)&&(l+=c.cssText)}}return{css:s,fonts:a,inline:l}},is_good_css_for_symbol(e,t){const s=c.getRealSelector(e);return TVE.apply_filters("tve.symbol.whitelist.rule",!!(this.is_css_for_symbol(e.cssText,t)&&e.style.length&&TVE.inner_$.find(s).length>0),e.selectorText,e.cssText,t)},is_css_for_symbol(e,t){const s=TVE.apply_filters("save_symbol_css_selector",t?`.thrv_symbol_${t}`:".thrv_symbol"),i=new RegExp(s);return e.match(i)},update_symbols_html(){if(this.$symbols.length){const e=this.$selected_symbol.html();_.each(this.$symbols,function(t){TVE.inner.jQuery(t).parent().html(e)})}return this},unlink_symbol(){return TVE.do_action("tcb.unlink_symbol.before"),this.unlink_element(),TVE.Editor_Page.blur(),TVE.inner.window.TCB_Front.resizePageSection(),TVE.do_action("tcb.unlink_symbol"),this},unlink_element(e,t){const s=e||TVE.ActiveElement,i=s.find(".thrive-symbol-shortcode").attr("data-symbol-id"),a=this.change_css_html_before_unlink(s,i);TVE.Editor_Page.content_manager.insert_head_css(a.css,function(){void 0!==t&&t.resolve()}),s.before(a.html),o.updatePostListIdentifiers(s),s.remove();const l=TVE.inner_$(`${TVE.identifier("post_list")}:not(.${TVE.PostList.constants.FEATURED_LIST_CLASS})`);_.each(l,e=>{o.updatePostListIdentifiers(TVE.inner_$(e))})},change_css_html_before_unlink(e,t){const s=e.find(".symbol-section-in"),i=e.find(".symbol-section-out"),a=i.length>0;let l=TVE.inner_$(e.find(".thrive-shortcode-html").html()).filter(":not(style)");a&&(l=TVE.inner_$(`\n\t\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t
${s.html()}
\n\t\t\t\t\t\t\t\t\t\t
`));const c=e.find("style.tve-symbol-custom-style"),n=o.generate_new_ids(l);let r="";c.length?(r=this.process_css_before_unlink(c.html(),t,n),c.remove()):r=this.change_css_rules_before_unlink(t,n),r=TVE.apply_filters("tcb.symbol.unlink_css",r,t,n),TVE.drag.bind_element(l);let d="";return l&&l.each((e,t)=>{d+=t.outerHTML}),{css:r,html:d}},process_css_before_unlink(e,t,s){const i=".thrv_symbol_"+t;return e=e.replace(TVE.escapedRegEx(i,"g"),""),_.each(s,function(t,s){e=e.replace(new RegExp(s,"g"),t)}),e},change_css_rules_before_unlink(e,t){let s="";return _.each(TVE.stylesheet.cssRules,i=>{let a="";i.type===CSSRule.MEDIA_RULE&&i.media&&i.media.length&&this.is_css_for_symbol(i.cssText,e)&&_.each(i.cssRules,s=>{a+=this.process_css_before_unlink(s.cssText,e,t)+" "}),""!==a&&(s+="@media "+TVE.compat.conditionText(i)+"{"+a+"}")}),_.each(TVE.stylesheet.cssRules,i=>{i.type===CSSRule.STYLE_RULE&&this.is_css_for_symbol(i.cssText,e)&&(s+=this.process_css_before_unlink(i.cssText,e,t))}),s},undo_action(e,t,s){TVE.UndoManager.add({undo(){e.attr("class",t.cls).attr("style",t.style||"")},redo(){e.attr("class",s.cls).attr("style",s.style||"")}})},edit_mode_element_selectable:()=>!1})},11845:e=>{e.exports={RULE_CLASS:".tcb-condition-set-rule",SET_TOOLTIP_DOTS_CLASS:".tcb-condition-set-button",SET_TOOLTIP_CONTAINER_CLASS:".tcb-condition-set-tooltip",TIME_INTERVALS:["minutes","hours","days","months","years"]}},12329:(e,t,s)=>{!function(t){const i=s(7596);e.exports=i.extend({initialize(){const e=this;let s,i;this.render(),this.$el.find(".tve-input").autocomplete({source(a,l){if(s!==a.term){if(/^https?:/.test(a.term)||-1!==a.term.indexOf("."))return e.$text.val(a.term),l();t.post(tcb_main_const.ajax_url,{action:"tve_find_quick_link_contents",json:"1",q:a.term},function(e){i=e,l(e)},"json"),s=a.term}else l(i)},focus(e){e.preventDefault()},select(t,s){e.$el.find(".tve-input").val(s.item.url)}}).data("ui-autocomplete")._renderItem=function(e,s){return t('').append(""+s.label+' '+s.type+"").appendTo(e)}}})}(jQuery)},12476:(e,t,s)=>{e.exports=Backbone.Collection.extend({model:s(20891),comparator:(e,t)=>e.getOrder()-t.getOrder(),generateNewName(e="New display"){let t=1;for(;this.where({name:`${e} #${t}`}).length>0;)t++;return`${e} #${t}`},getActiveDisplay(){return this.findWhere({active:!0})},setDisplayActive(e){var t;null===(t=this.getActiveDisplay())||void 0===t||t.set({active:!1}),this.findWhere({key:e}).set({active:!0}),this.trigger("set-display-active",e)},removeDisplay(e){this.findWhere({key:e}).destroy(),1===this.length&&this.findWhere({key:"default"}).set("hide",0),this.trigger("display-remove",e)},duplicateDisplay(e,t){const s=this.findWhere({key:e}),i=this.generateNewName(s.name()),a=t.createNewDisplay({name:i,copyFromKey:e});this.add({key:a,order:this.length,name:i})}})},12513:(e,t,s)=>{const i=s(93359);e.exports=class extends i{static hasAnimations(){return!1}static isBackgroundSvg(){return!0}}},12564:(e,t,s)=>{const i=s(16668),a=s(85814);e.exports=i.control.extend({ICONS:{video:"video"},template:TVE.tpl("util/file-picker"),config:{type:"image",preselect_full_size:!1},labels:{choose:TVE.t.ChooseFile,title:TVE.t.Files},initialize(e){this.labels=_.defaults(e.labels||{},this.labels),this.config=_.defaults(e.config||{},this.config),this.selection=null,this.picker=new a({title:this.labels.title,library:{type:this.config.type},preselect_full_size:this.config.preselect_full_size}).on_select(this._select,this),e.template_name&&(this.template=TVE.tpl(e.template_name)),this.render()},open_media(){this.picker.open()},set(e){this.selection=_.extend({},e),this.selection&&!this.selection.title&&this.default_title(),this.selection&&this.selection.title&&TVE.isCssVariable(this.selection.title)&&(this.selection.title="Dynamic file"),this.render()},get(){return this.selection||{}},_select(e,t){this.selection=e,!this.selection&&t&&(this.selection=t),this.set(this.selection),this.trigger("select",e,t)},remove(){return this.trigger("remove"),this.selection=null,this.render(),!1},preview_icon(){return"image"===this.config.type?'':TVE.icon(this.ICONS[this.config.type])},default_title(){return this.selection&&this.selection.url?(this.selection.title=this.selection.url.replace(/\/$/,"").split("/").pop(),this.selection.title||(this.selection.title="[no title]"),this):this}})},12824:(e,t,s)=>{e.exports=s(16668).control.extend({template:TVE.tpl("controls/modal-style-picker"),previewItemTpl:"",update:TVE.$.noop,updatePreview:TVE.$.noop,modalInput:TVE.$.noop,panelChange(e){this.updatePreview(this.applyTo(),e)},setDropPanel(e){this.panel=e,this.panel.parentControl=this,this.listenTo(this.panel,"panelUpdate",this.panelChange)},openStyle(e,t){this.panel.open(e,t)},setElementName(e){this.$(".element-name").html(e)},setSelected(e){this.modal.setSelected(e)},setStyle(e){this.$(".style-name").text(e)},onModalApply(e){this.modalInput(this.applyTo(),e)},setModal(e){this.modal=e},openModal(){const e=jQuery.extend(!0,{top:"20%"},{props:this.modalProps||{},top:this.modalTop||"20%"});this.listenTo(this.modal,"save",this.onModalApply),this.modal.open(e)},setControlColor(e){this.panel&&"function"==typeof this.panel.setColor&&(TVE.isCssVariable(e)&&e.includes(TVE.CONST.colors.dynamic_prefix)&&(e=TVE.getCssVariableValue(e)),this.panel.setColor(e)),TVE.state_manager.is_default()&&this.el.style.setProperty("--tve-picker-color",e),this.$el.removeClass("tve-gradient-icon"),this.panel.toggleGradientClass(!1)},setControlGradient(e){this.panel&&"function"==typeof this.panel.setColor&&(TVE.isCssVariable(e)&&e.includes(TVE.CONST.colors.dynamic_prefix)&&(e=TVE.getCssVariableValue(e)),this.panel.setGradient(e)),TVE.state_manager.is_default()&&this.el.style.setProperty("--tve-picker-gradient",e),this.$el.addClass("tve-gradient-icon"),this.panel.toggleGradientClass(!0)}})},13065:e=>{const t={elementAttributes(e,t=[],s=!1,i=!1){e.jquery&&(e=e[0]);const a={};return _.each(e.attributes,e=>{if(-1!==t.indexOf(e.name))return;let l=e.value;i&&(l=l.replace(/\[/g,"|{|").replace(/\]/g,"|}|")),s?0===e.name.indexOf("data-")&&(a[e.name.replace("data-","")]=l):a[e.name]=l}),a},readValue(e,t,s=!1,i=null,a=""){let l=e.attr("data-"+t);return void 0===l&&(l=i&&""===a?i.model.config.default:a,e.attr("data-"+t,l)),s&&i&&i.setValue(l),l},checkForPostListSync(e,t=!0){const s=e.closest(TVE.identifier("article")),i=s.length>0&&!TVE.PostList.utils.isSyncing();return i&&t&&(TVE.PostList.FLAGS.SYNC=!0,TVE.PostList.content.syncPostList(s),TVE.PostList.FLAGS.SYNC=!1),i},isSyncing:()=>TVE.PostList.FLAGS.SYNC,getDropzoneTarget:e=>{if(void 0!==TVE.FLAGS.$dragged_element)return e;if(TVE.main.EditMode.in_edit()&&TVE.main.EditMode.element()&&TVE.main.EditMode.element().is(TVE.identifier("post_list"))){const t=TVE.main.EditMode.element().find(TVE.identifier("article")).first();e=t.length?t.children().last():e}return e},fetchPosts:(e,t)=>{jQuery.ajax({url:TVE.CONST.routes.posts+"/html",method:"POST",data:{args:{query:e}},success(e){TVE.PostList.posts=Object.assign(TVE.PostList.posts,e.posts),"function"==typeof t&&t(e)},error:console.warn})},pseudoSelectorsRegex:()=>new RegExp([":hover",":active",":after",":focus","::after",":before","::before","::placeholder"].join("|"),"gi"),getEventClasses:e=>{const t=[];if(e.includes("tve_evt_manager_listen")){t.push("tve_evt_manager_listen"),e.includes("tve_et_click")||t.push("tve_ea_thrive_animation");const s=e.match(/tve_et_\S*|tve_ea_\S*|tve_anim_\S*/g);null!==s&&t.push(...s)}return _.uniq(t).join(" ")},replaceElementTag:(e,t)=>{const s=TVE.inner_$(t,{html:e.html()});return jQuery.each(e[0].attributes,function(){s.attr(this.name,this.value)}),e.replaceWith(s),s},truncate:(e,t,s=!0)=>(s&&(e=e.replace(/(\n|\s\s+)/g," ")),e.trim().split(" ").splice(0,t).join(" ")),removePostListPrefix(e,t){const s=t.parents(TVE.identifier("post_list"));if(s.length){const t=TVE.CSS_Rule_Cache.uniq_id(s),i=new RegExp(`\\[data-css="${t}"\\]${TVE.identifier("post_list")} `,"g");e=e.replace(i,"")}return e},getPostListSelector(e){const t=e.closest(TVE.identifier("post_list"));let s;return s=t.attr("data-selector")?t.attr("data-selector"):'[data-css="'+TVE.CSS_Rule_Cache.uniq_id(t)+'"]'+TVE.identifier("post_list"),s+" "},replaceDoubleSpacesWithOne:e=>e.replace(/([ ]{2,})/g," "),isInPostListEditMode:()=>TVE.main.EditMode.in_edit()&&TVE.main.EditMode.element()&&TVE.main.EditMode.element().is(TVE.identifier("post_list")),shouldShowDynamicLinks:()=>TVE.apply_filters("tcb.show_dynamic_links",TVE.PostList.utils.isInPostListEditMode()),isInsidePostList:(e=TVE.ActiveElement)=>e.closest(TVE.identifier("post_list")).length>0,hasLinkedArticles:e=>1===parseInt(e.closest(TVE.identifier("post_list")).attr("data-disabled-links")),toggleLinkedArticlesNotice(e,t,s){e.toggleClass("tcb-disabled",s),t.$(".tve-post-list-link-info").toggleClass("tcb-hidden",!s)},wrapPostReadMore(e){TVE.FLAGS.$dragged_element&&!TVE.FLAGS.$dragged_element.static_element||e.wrap('')},getArticleID(e=TVE.ActiveElement){const t=e.closest(TVE.identifier("article")),s=t.length?t.attr("data-id"):TVE.CONST.post_id;return TVE.apply_filters("tcb.post_list.article_id",s,e)},isPostList(e){const t=e.is(TVE.identifier("post_list"))||"post_list"===e.attr("data-tcb-elem-type");return TVE.apply_filters("tcb.element.is_post_list",t,e)},isFeaturedList(e){const t=e.is(TVE.identifier("post_list_featured"))||"post_list_featured"===e.attr("data-tcb-elem-type");return TVE.apply_filters("tcb.element.is_featured_list",t,e)},getPaginationForList(e,t=!1,s=TVE.inner.$document){const i=TVE.apply_filters("tcb.post_list.identifier",e.attr("data-css"),e);let a=s.find(`${TVE.identifier("pagination")}[data-list="${i}"]`).first();return t&&a.parent().hasClass("tcb-clear")&&(a=a.parent()),a},getListForPagination(e,t=TVE.inner.$document){let s=e.attr("data-list");return s=s.includes("tve-u-")?`[data-css=${s}]`:s,t.find(s).first()},updatePaginationIdentifiers(e){let t=e.next();e.parents(".thrv_symbol")&&!t.hasClass("tcb-pagination")&&(t=e.parents(".thrv_symbol").next()),e=e.is(TVE.identifier("post_list"))?e:e.find(TVE.identifier("post_list")),t.hasClass("tcb-pagination")&&"none"!==e.attr("data-pagination-type")&&t.attr("data-list",e.attr("data-css"))},moveElementsNearPostList(e){const t=TVE.PostList.utils.getPaginationForList(e,!0),s=TVE.PostList.utils.getFeaturedPostList(e);t.length&&t.insertAfter(e),s.length&&s.insertBefore(e)},cloneElementsWithPostList(e,t){const s=TVE.PostList.utils.getPaginationForList(e,!0),i=TVE.PostList.utils.getFeaturedPostList(e);if(s.length){let i=s.clone();s.insertAfter(e),i.insertAfter(t),i.hasClass("tcb-clear")&&(i=i.find(TVE.identifier("pagination"))),i.attr("data-list",t.attr("data-css"))}if(i.length){const s=i.clone(),a=TVE.CSS_Rule_Cache.uniq_id(s,!0);i.insertBefore(e),s.insertBefore(t),TVE.head_css_copy(i.attr("data-css"),a),TVE.PostList.dynamicImage.regeneratePostListStyleNodes(s),t.attr("data-featured-list",s.attr("data-css"))}},removeElementsWithPostList(e){const t=TVE.PostList.utils.getPaginationForList(e,!0),s=TVE.PostList.utils.getFeaturedPostList(e);if(t.length>0&&t.remove(),s.length>0)s.remove();else{const e=TVE.inner_$(".tcb-elem-placeholder.tcb-featured-list");e.length>0&&e.remove()}},getFeaturedPostList:e=>TVE.inner.$document.find(`.tcb-featured-list[data-css=${e.attr("data-featured-list")}]`).first(),getPostListForFeatured(e){const t=TVE.apply_filters("tcb.post_list.identifier",TVE.identifier("post_list"),e);return TVE.inner_$(`${t}[data-featured-list=${e.attr("data-css")}]`).first()},toggleControlsForFeature(e){const t=TVE.ActiveElement;e.toggle(t&&!t.hasClass("tcb-featured-list"))},toggleFilterForMainList(e){const t=TVE.PostList.utils.getPostListForFeatured(TVE.ActiveElement).attr("id");e.toggle(!(t&&t.includes("main")))},updateFeaturedIdentifiers(e){const t=e[e.hasClass("tcb-featured-list")?"next":"prev"]();e.hasClass("tcb-featured-list")&&t.attr("data-featured-list",e.attr("data-css"))},readQueryFromElement(e){void 0===e&&(e=TVE.ActiveElement[0]);let t=e.dataset.query;try{t=JSON.parse(t.replace(/'/g,'"'))}catch(e){t={}}return t},applyQuery(e=this.$element,t=null,s=null){0===e.length&&(e=TVE.ActiveElement),t||(t=this.readQueryFromElement(e[0]));const i=JSON.parse(JSON.stringify(t));if(e.addClass("tve-loading"),e.attr("data-featured-list")){const s=[];this.getFeaturedPostList(e).find("article").each((e,t)=>{s.push(t.dataset.id)}),Array.isArray(i.rules)||(i.rules=[]),Array.isArray(t.post_type)?t.post_type.forEach(e=>{i.rules.push({taxonomy:e,terms:s,operator:"NOT IN"})}):i.rules.push({taxonomy:t.post_type,terms:s,operator:"NOT IN"})}e.attr("data-no_posts_text",""),this.fetchPosts(i,i=>{const a=[];if(_.each(i.posts,e=>{a[parseInt(e.order)]=e}),e.toggleClass("empty-list",0===a.length),TVE.do_action("tcb.post_list.apply_query.before_render",e),a.length){if(TVE.PostList.content.syncPostList(e.find(TVE.identifier("article")).first(),e,a),TVE.PostList.content.bindPostListActions(e),e.hasClass("tcb-featured-list")){const t=TVE.PostList.utils.getPostListForFeatured(e);this.applyQuery(t)}TVE.PostList.dynamicImage.regeneratePostListStyleNodes(e)}else TVE.page_message("Current query did not return any posts!",!0,5e3),e.attr("data-no_posts_text",t.no_posts_text);e.removeClass("tve-loading"),TVE.PostList.getComponent(e).controls.NumberOfItems.setValue(t.posts_per_page,!1,!0),e.attr("data-query",JSON.stringify(t).replace(/"/g,"'")),t.dynamic_filter&&e.attr("data-dynamic_filter",JSON.stringify(t.dynamic_filter)),"function"==typeof s&&s(i)})},syncAuthorImages:e=>(e.find(TVE.identifier("article")).each((e,t)=>{const s=TVE.inner_$(t),i=s.attr("data-id");i&&s.length&&s.find(".tcb-post-author-picture")&&TVE.PostList.dynamicImage.syncDynamicImageElements(s,i)}),e),fetchExistingPosts(e=!1){new Promise(t=>{if(TVE.PostList.posts&&Object.keys(TVE.PostList.posts).length&&!e)t({posts:TVE.PostList.posts});else{TVE.PostList.posts={};const e=TVE.inner.$body.find(TVE.apply_filters("tcb.post_list.article_identifier",TVE.identifier("article")));let s=_.uniq(e.map((e,t)=>parseInt(t.dataset.id)));s=TVE.apply_filters("tcb.post_data.existing_post_ids",s);const i=s.filter(e=>void 0===TVE.PostList.posts[e]);TVE.PostList.utils.fetchPosts({get_initial_posts:!0,post_ids:i},s=>{t(s),TVE.do_action("tcb.post_data.fetched",s,e)})}}).then(e=>{TVE.PostList.posts=e.posts,TVE.do_action("tcb.post_list.posts_loaded"),setTimeout(()=>{const e=TVE.ActiveElement;TVE.inner.$body.find(TVE.identifier("post_list")).each((e,t)=>{const s=TVE.inner_$(t);"numeric"!==s.attr("data-pagination-type")&&"load_more"!==s.attr("data-pagination-type")||TVE.PostList.content.renderPaginationForPostList(s),TVE.ActiveElement=s,TVE.PostList.getComponent(s).update(),TVE.PostList.content.updatePostContent(s),TVE.PostList.utils.syncAuthorImages(s),TVE.PostList.dynamicImage.regeneratePostListStyleNodes(s)}),TVE.ActiveElement=e},500)})},refreshPostList:e=>(e.find(".tcb-post-list").each(function(){const e=TVE.inner_$(this);TVE.PostList.content.initAllShortcodes(e),setTimeout(()=>{TVE.PostList.layout.applyLayout(e),TVE.PostList.dynamicImage.regeneratePostListStyleNodes(e)},100)}),e),updatePostListIdentifiers(e){const t=e.find(".tcb-featured-list").length?e.find(".tcb-featured-list"):e.prev(".tcb-post-list.tcb-featured-list"),s=e.hasClass("tcb-post-list")?e:e.find(".tcb-post-list:not(.tcb-featured-list)");this.updateFeaturedIdentifiers(t),this.updatePaginationIdentifiers(s)},getKeyForElementType(e){let t;switch(e){case"rating":case"progressbar":case"fillcounter":t="number";break;case"responsivevideo":t="video";break;default:t=e}return`tcb_post_custom_fields_${t}`},getPlaceholderForElementType(e,t=null,s=null){let i={},a=t?TVE.CONST.dynamic_placeholder_elements[t]:null;const l=s||"external";switch(e){case"rating":case"progressbar":case"fillcounter":i.value=t?parseFloat(t):0;break;case"countodwn":case"countdown":t=t?t.split(":"):null,i=t?{date:t[0],hour:t[1],min:t[2]}:{date:"2020-01-01",hour:0,min:0};break;case"responsivevideo":case"audio":t?"external"===l?a?i={mime_type:"audio"===e?"audio/mp3":"video/mp4",id:a.id,title:a.title,url:a.url,alt:a.alt}:wp.media.attachment(t).fetch().then(function(){TVE.CONST.dynamic_placeholder_elements[t]=wp.media.attachment(t).attributes,a=TVE.CONST.dynamic_placeholder_elements[t],i={mime_type:"audio"===e?"audio/mp3":"video/mp4",id:a.id,title:a.title,url:a.url,alt:a.alt}}):i={id:"0",title:"Placeholder",url:t,value:t,video_src:l}:i={mime_type:"audio"===e?"audio/mp3":"video/mp4",id:"0",title:"Placeholder",url:"",alt:"Placeholder"};break;case"image":t?a?i={alt:a.alt,id:a.id,width:a.width,height:a.height,title:a.title,url:a.url}:wp.media.attachment(t).fetch().then(function(){TVE.CONST.dynamic_placeholder_elements[t]=wp.media.attachment(t).attributes,a=TVE.CONST.dynamic_placeholder_elements[t],i={alt:a.alt,id:a.id,width:a.width,height:a.height,title:a.title,url:a.url}}):i={alt:"Placeholder",id:"0",width:"100",height:"100",title:"Placeholder",url:TVE.CONST.dynamic_image_placeholders.featured}}return i},stringifyAndReplace:e=>JSON.stringify(e).replace(/"/g,"'")};e.exports=t},13469:(e,t,s)=>{const i=s(62204),a=s(11845),l=s(40878),o=s(65295);e.exports=TVE.Views.Base.base_view.extend({template:"conditional-display/modal/condition/operator",beforeInitialize(){this.listenTo(this.model,"change:field",this.renderOperators)},afterInitialize(){this.select=new l({el:this.$(".tcb-operator-select")[0],model:new Backbone.Model({list:[],placeholderText:"Select condition"}),onSelect:e=>this.setOperator(e)})},afterRender(){this.renderOperators()},renderOperators(){const e=this.model.get("field");if(!e||i.getFieldData(e).is_boolean)return void this.hide();this.show();const t=this.$el.closest(a.RULE_CLASS);o.toggleLoading(t,!0,"inline"),this.model.set("is_condition_loading",1),i.getConditionsForField(this.model.get("field")).then(s=>{this.conditionKey=s[0];const a=i.getConditionData(this.conditionKey);let l=this.model.get("condition");this.select.setList(_.map(a.operators,(e,t)=>({value:t,label:e.label})));const c=()=>{a.is_single_operator&&!l&&(l=this.setOperator(Object.keys(a.operators)[0])),l&&l.operator&&this.select.setValue(l.operator),this.manageItemClasses(a),this.$el.attr("data-key",this.conditionKey),o.toggleLoading(t,!1,"inline"),t.attr("data-key",this.conditionKey),this.model.set("is_condition_loading",0)};a.has_options_to_preload?i.getOptionsForField(e).then(c):c()})},setOperator(e){const t={operator:e,key:this.conditionKey,value:""};return this.model.set("condition",t),t},manageItemClasses(e){this.$el.removeClass("tcb-small-size-label tcb-medium-size-label tcb-full-size-label tcb-select-no-dropdown"),this.$el.addClass(`tcb-${e.display_size}-size-label`),e.is_single_operator&&this.$el.addClass("tcb-select-no-dropdown"),this.$el.toggleClass("hidden",e.is_hidden)}})},13617:(e,t,s)=>{const i=s(16668);e.exports=i.component.extend({extra_states:!0,controls_init(e){const t=this;e.ParagraphStyle&&e.ParagraphStyle.set_drop_panel(e.ParagraphStylePicker),e.ToggleControls.update=function(){_.delay(_.bind(function(){const e=this.$(".tve-btn:visible:first").attr("data-value");this.clearActive(),this.setActive(e),t.$(".tcb-typography-toggle-element").hide(),t.$(`.${e}`).show()},this))},e.ToggleControls.input=_.bind(function(t,s){const i=s.getAttribute("data-value");this.$(".tcb-typography-toggle-element").hide(),this.$("."+i).show(),"tcb-typography-line-height"===i&&(e.LineHeight.before_update(e.LineHeight.readFrom()),e.LineHeight.update(e.LineHeight.readFrom()))},this),e.FontFace.update=function(){if($element=this.applyTo(),!TVE.froala.editor)return this.initial_font=$element.head_css("--tve-font-family")||$element.head_css("font-family",!1,this.config.css_suffix,!0,this.config.css_prefix),this.inherited=!this.initial_font||"inherit"===this.initial_font,this.initial_weight=$element.css("font-weight"),this.readFont($element),void this.setInputValue(this.initial_font);this.initial_font=$element.head_css("--tve-font-family")||$element.head_css("font-family",!1,this.config.css_suffix,!0,this.config.css_prefix),this.inherited=!this.initial_font||"inherit"===this.initial_font,this.initial_weight=TVE.froala.get_css("font-weight");const e=TVE.froala.get_selection_element();"bold"===this.initial_weight&&(this.initial_weight=e.closest("p").css("font-weight"));const t=jQuery(TVE.froala.editor.selection.element()).find("strong");t.length?this.initial_bold=t.css("font-weight"):this.initial_bold=TVE.froala.editor.tcb.getBlockElement().head_css("font-weight",null," strong",!0,this.config.css_prefix)||TVE.froala.editor.tcb.getBlockElement().head_css("font-weight",null," strong"),this.readFont($element),this.setInputValue(this.initial_font)},e.FontSize.input=function(e,s){t.applyContainerStyle(this,e,"font-size",s.value+this.getUM())},e.FontSize.update=function(){const e=this.applyTo();this.setValue(e.head_css("--tve-font-size")||e.head_css("font-size",!1,this.config.css_suffix,!0,this.config.css_prefix))},e.FontColor.input=function(e){t.applyContainerStyle(this,this.applyTo(),"color",String(e)),this.applyElementCss({"--tcb-applied-color":e&&String(e).replace("var","var$")||""})},e.FontColor.update=function(){const e=this.applyTo();this.setValue(e.head_css("--tve-color")||e.head_css("color",!1,this.config.css_suffix,!0,this.config.css_prefix))},e.LineHeight.input=function(e,s){t.applyContainerStyle(this,e,"line-height",s.value+this.getUM())},e.LineHeight.update=function(e){let t=this.applyTo().head_css("--tve-line-height")||this.applyTo().head_css("line-height",!1,this.config.css_suffix,!1,this.config.css_prefix);t||(t=e.css("line-height"),this.config.css_suffix&&e.find(this.config.css_suffix).length&&(e=e.find(this.config.css_suffix)),t&&-1!==t.indexOf("px")&&(t=parseFloat(t)/parseFloat(e.css("font-size"))+"em")),"normal"===t&&(t="1.12em"),this.setValue(t)},e.LetterSpacing.input=function(e,s){t.applyContainerStyle(this,e,"letter-spacing",s.value+this.getUM())},e.LetterSpacing.update=function(){const e=this.applyTo();this.setValue(e.head_css("--tve-letter-spacing")||e.head_css("letter-spacing",!1,this.config.css_suffix,!0,this.config.css_prefix))},e.LetterSpacing.prepareValue=e=>(TVE.SKIP_CSS_STATE||(e=parseFloat(e).toFixed(2),isNaN(e)&&(e=0)),e),e.TextAlign.applyStyles=function(e,t){const s={};this.config.property&&this.config.property_val?s[this.config.property]=this.config.property_val[t.getAttribute("data-value")]:s["text-align"]=t.getAttribute("data-value")+(this.config.important?" !important":""),TVE.do_action(`tcb.typography.${TVE._type(e)}.text_align`,this,e,t),this.applyElementCss(s,e)},e.TextAlign.update=function(){let e;this.config.property&&this.config.property_val?(e=this.applyTo().head_css(this.config.property,!1,this.config.css_suffix,!0),e=_.invert(this.config.property_val)[e]):(e=this.applyTo().head_css("text-align",!1,this.config.css_suffix,!0),e="start"===e?"left":e),this.setActive(e)},e.TextTransform.applyStyles=function(e,s){t.applyContainerStyle(this,e,"text-transform",s.dataset.value)},e.TextTransform.update=function(){const e=this.applyTo();this.setActive(e.head_css("--tve-text-transform")||e.head_css("text-transform",!1,this.config.css_suffix,!0)||"none")},_.each(["p","h1","h2","h3"],function(t){e[`${t}_spacing`]&&(e[t+"_spacing"].$(".width-input").attr("placeholder","auto"),e[t+"_spacing"].$(".width-input").on("focusout",function(){e[t+"_spacing"].update()}),e[t+"_spacing"].input=function(e,t){let s=t.value,i=this.getUM();"auto"!==s&&""!==s||(i="",s="auto");const a={padding:"0px 0px "+s+i+" 0px !important",margin:"0px !important"};"auto"===t.value&&(a.margin=a.padding=""),this.applyElementCss(a,e)},e[t+"_spacing"].update=function(e){let t=this.applyTo().head_css("padding-bottom",null,this.config.css_suffix,!1,this.config.css_prefix);t?("auto"===t&&this.$(".tve-input").val("auto"),this.setValue(t.replace("!important",""))):e.length?(t=parseInt(e.css("margin-bottom"))+parseInt(e.css("padding-bottom"))+"px",this.setValue(t)):this.$(".tve-input").val("auto")},e[t+"_spacing"].convertUM=e[t+"_spacing"].pixel_em_conversion)}),e.TextStyle.writeStyle=function(e,s){t.applyContainerStyle(this,this.applyTo(),s,e[s].replace("!important",""))}},clear_formatting(e,t="",s=""){_.each({FontFace:["font-family"],FontSize:["font-size"],FontColor:["color","fill","--tcb-applied-color"],LineHeight:["line-height"],LetterSpacing:["letter-spacing"],TextAlign:["text-align","align-items","justify-content"],TextStyle:["font-weight","font-style","text-decoration"],TextTransform:["text-transform"],p_spacing:["padding","margin"],h1_spacing:["padding","margin"],h2_spacing:["padding","margin"],h3_spacing:["padding","margin"]},(i,a)=>{const l={},o=this.controls[a],c={};o&&(i.forEach(e=>{l[e]="",l[`${TVE.CONST.cssVarPrefix}${e}`]="",c[`--tve-${e}`]="",c[`${TVE.CONST.cssVarPrefix}--tve-${e}`]=""}),e&&e.jquery?(e.head_css(l,!1,t,!1,s).css(l),e.head_css(c).css(c)):(o.applyTo().head_css(l,!1,o.config.css_suffix,!1,o.config.css_prefix).css(l),o.applyTo().head_css(c).tcbCss(c)))}),this.controls.ParagraphStylePicker&&this.controls.ParagraphStylePicker.clear(),TVE.ActiveElement.removeAttr("data-child-styles"),TVE.do_action(`tcb.typography.${TVE._type(TVE.ActiveElement)}.clear_formatting`),this.update(),TVE.Editor_Page.reposition_icons()},paragraphStylePicker:()=>s(58057),applyContainerStyle(e,t,s,i){e.applyElementCss({[s]:e.cssImportant(`var(--tve-${s}, ${i})`)},e.applyTo(),e.config.css_suffix,e.css_prefix),e.applyElementCss({[`--tve-${s}`]:i},t,"","")}})},13699:(e,t,s)=>{const i=s(1331);!function(){const t=s(27416);e.exports=i.extend({controls_init(){this.controls.CheckboxSize.input=function(e,t){this.applyElementCss({"--tcb-checkbox-size":t.value+this.getUM()},e)},this.controls.CheckboxSize.update=function(e){this.setValue(TVE.getComputedStyle(e,"--tcb-checkbox-size",!0)||0)},this.controls.StyleChange.set_drop_panel(this.controls.CheckboxStylePicker),this.controls.CheckboxStylePicker.apply=function(){},TVE.add_action("tcb.update.css.variable.control-v2",(e,s,i,a)=>{t.applyDropdownTemplateColor(this.controls.CheckboxStylePicker,s,i,a,e,"checkbox")}),TVE.add_action("tcb.palettes_v2.update",()=>{this.controls.CheckboxPalettes.update(TVE.ActiveElement)})},checkboxStylePicker:()=>s(8266)})}()},13828:e=>{e.exports=function(e,t,s=!1){s&&!e.is(".thrive-shortcode-config")&&(e=e.find(".thrive-shortcode-config"));const i=`__CONFIG_${t}__`;return{update(e,t){const s=this.get();s[t]=e,this.save(s)},delete_prop(e){this.remove(e)},remove(e){const t=this.get();delete t[e],this.save(t)},save(t){e.html(this.getHTML(t))},get(){if(!e.length)return{};const t=new RegExp(i,"g");let s={};try{s=JSON.parse((e.html().trim()||"{}").replace("%s","{}").replace(/_tveutf8_/g,"\\u").replace(t,"").replace(/\\\'/g,"'").replace(/”|“|″/g,'"').replace(/_tve_quote_/g,'\\"').replace(/\n/g,"\\n").replace(/\t/g,"\\t"))}catch(e){console.log("Invalid JSON")}return s},getHTML:e=>i+JSON.stringify(e).replace(/\\"/g,"_tve_quote_")+i}}},13840:(e,t,s)=>{const i=s(16668),a=".tve_post_lp > div > "+TVE.CONST.global_css_prefix;e.exports=i.component.extend({controls_init(e){const t=this;function s(s,i){t.$(".width-setting")[s?"show":"hide"](),t.$(".max-width-settings")[s?"hide":"show"](),void 0!==i&&i&&e.ContentFullWidth.setChecked(!s)}e.ContentWidth.input=function(e,t){const s=TVE.inner_$(a),i=t.value+this.getUM(),l={"max-width":i,"--lp-layout-max-width":i,padding:"0 20px"};"input"===this.currentEventType?this.applyElementCss(l,s,"","",!0):(TVE.head_css(a,l),TVE.head_css(a,{padding:"0 10px"},TVE.main.media_query_tpl("mobile")),s.removeAttr("style"))},e.ContentWidth.update=function(e){const t=TVE.head_css_get(a,"max-width",null,!0);"none"===t||"100%"===t?s(!1,!0):(s(!0,!0),this.model.config.max=parseInt(e.parent().width()),this.setValue(t))},e.ContentMaxWidth.input=function(e,t){const s=TVE.inner_$(a),i={"--page-section-max-width":t.value+this.getUM()};"input"===this.currentEventType?this.applyElementCss(i,s,"","",!0):(TVE.head_css(a,i),TVE.do_action("tcb.content_layout_max_width.change",e))},e.ContentMaxWidth.update=function(){let e=TVE.head_css_get(a,"--page-section-max-width",null,!0);e||(e=TVE.inner_$(a).outerWidth()),this.setValue(e)},e.ContentFullWidth.change=function(t,i){const l=i.checked,o={"margin-left":"","margin-right":"","max-width":"",padding:"","--lp-layout-max-width":""};s(!l,!1),l?(TVE.inner_$(".tcb-window-width").removeClass("tcb-window-width").css({width:"",left:""}),TVE.head_css(a,{padding:""},TVE.main.media_query_tpl("mobile"))):(o["margin-left"]="auto",o["margin-right"]="auto",o.padding="0 20px",o["max-width"]=o["--lp-layout-max-width"]=e.ContentWidth.value(!0),TVE.head_css(a,{padding:"0 10px"},TVE.main.media_query_tpl("mobile"))),TVE.head_css(a,o),e.PageMap.update(t)},e.ContentFullWidth.update=function(){},TVE.CONST.landing_page&&(TVE.add_filter("tcb.drag.element_to_insert",(e,t)=>{if(TVE.isLPFullWidth()&&(t.is(TVE.Editor_Page.editor)||t.parent().is(TVE.Editor_Page.editor))&&!e.is(".thrv-page-section,.thrv_ct_symbol")&&!e.find(".thrv-page-section").length){const t=TVE.inner_$(TVE.main.static_element("section").clone().find(".thrv-page-section"));t.find(".tve-page-section-in").removeClass("tve_empty_dropzone").append(e),TVE.Components.section.controls.InheritFromLandingPage&&t.attr("data-inherit-lp-settings",1),t.data("focus-after-insert",e),e=t}return e}),TVE.add_filter("tve.imported_content.content",e=>{if(TVE.isLPFullWidth()){let t=TVE.inner_$();e.each((e,s)=>{const i=TVE.inner_$(s);if(i.is(".thrv-page-section,.thrv_ct_symbol")||i.find(".thrv-page-section").length)t=t.add(i);else{const e=TVE.inner_$(TVE.main.static_element("section").clone().find(".thrv-page-section"));e.find(".tve-page-section-in").removeClass("tve_empty_dropzone").append(i.clone()),TVE.Components.section.controls.InheritFromLandingPage&&e.attr("data-inherit-lp-settings",1),t=t.add(e)}}),e=t}return e})),TVE.add_action("component.update.lpfonts",()=>{const e={currentTarget:TVE.main.sidebar_extra.$el.find('[data-toggle="central_style_panel"]')[0]};TVE.main.sidebar_extra.prevent_close(),e.currentTarget&&!e.currentTarget.classList.contains("active")&&(TVE.main.sidebar_extra.toggle_drawer(e),TVE.main.sidebar_extra.central_style_panel.$buttons.filter("[data-value=fonts]").trigger("click")),TVE.main.sidebar_extra.allow_close()})}})},13889:e=>{e.exports={generateShortcode:e=>({extra_params:"",$shortcodeElement:e,shortcodeAttr:["data-date","data-hour","data-min"],key:"countdown"}),customFieldInput(e,t,s=null){const i=TVE.Components.countdown.controls.ExternalFields,a=s||{name:t,date:"2020-01-01",hour:0,min:0};a.name=t;const l=i.getCFValues("countdown",e,t,a);e.attr({"data-c-f-id":l.name,"data-date":l.date,"data-hour":l.hour,"data-min":l.min}),TVE.Components.countdown_old.compute_time_until(e,l.date,l.hour,l.min),i.updatePostList(e)}}},13973:(e,t,s)=>{const i=s(16668);e.exports=i.control.extend({template:TVE.tpl("controls/input-multiple"),after_initialize(){this.listenTo(this.model.get("list_items"),"remove",this.changeCollection),this.listenTo(this.model.get("list_items"),"change",this.changeCollection)},changeCollection(){this.change(this.applyTo(),this.model.get("list_items").toJSON())},render(){if(this.model instanceof Backbone.Model==0){const e=this.model.config;this.model=new Backbone.Model({top_text:e.top_text,add_button_text:e.add_button_text,remove_title:e.remove_title,list_label:e.list_label,list_items:new Backbone.Collection(e.list_items)})}this.$el.html(this.template({model:this.model})),0===this.model.get("list_items").length?this.add_input_row():this.model.get("list_items").each(this.renderOne,this)},renderOne(e){const t=new a({model:e,config:this.model});this.$el.find(".tcb-input-multiple-holder").append(t.render().el)},add_input_row(){const e=new Backbone.Model({value:""});this.model.get("list_items").add(e),this.renderOne(e)},resetCollection(e){this.model.get("list_items").reset(e),this.render()}});const a=i.base_view.extend({template:TVE.tpl("controls/input-multiple-item"),className:"control-grid",initialize(e){this.config=e.config,this.model=e.model},render(){return this.$el.html(this.template({value:this.model.get("value"),label:this.config.get("list_label"),remove_title:this.config.get("remove_title")})),this},_remove(){this.model.destroy(),this.remove()},_changed(e,t){this.model.set({value:t.value}),this.config.get("list_items").trigger("change")}})},14144:e=>{const t={actions:{"tcb.write_css":(e,t)=>{if(e=e.replace(TVE.PostList.utils.pseudoSelectorsRegex(),""),!TVE.FLAGS.drag&&TVE.apply_filters("tcb.write_css.has_post_list_selector",e.includes(TVE.identifier("post_list")),e)){const s=TVE.inner.$document.find(e),i=s.closest(TVE.identifier("article"));if(i.length){const e=TVE.state_manager.get_parent();let a=!1;e&&1===TVE.inner.$body.find('[data-css="'+e.attr("data-css")+'"]').length&&(a=!0),(a||1===TVE.inner.$body.find('[data-css="'+s.attr("data-css")+'"]').length)&&(s.is(i)||TVE.PostList.utils.checkForPostListSync(i)),t["background-image"]&&TVE.PostList.dynamicImage.updateDynamicImages(s,t["background-image"])}}}},filters:{regenerate_css_id:(e,t)=>{const s=TVE.inner.$body.find('[data-css="'+t+'"]');if(s.length){const i=(1===s.length?s:s.first()).closest(TVE.identifier("article"));i.length&&1===i.find('[data-css="'+t+'"]').length&&(e=!1)}return e},"tcb.head_css_new_id":e=>{const t=TVE.inner.$body.find('[data-css="'+e+'"]'),s=t.closest(TVE.identifier("article"));return 1===t.length&&s.length&&!TVE.FLAGS.drag&&TVE.PostList.utils.checkForPostListSync(s),e},hover_prefix_selector:(e,t)=>{const s=TVE.inner_$(t);if(s.hasClass("tve-content-box-background")){const t=s.parents(TVE.identifier("post_list"));t.length&&(e=TVE.PostList.utils.getPostListSelector(t).trim())}return e},"tve.css_variable.selector":(e,t)=>{const s=t.parents(TVE.identifier("post_list"));return s.length&&(e=TVE.PostList.utils.getPostListSelector(s)+e),e},css_rules_before_insert:e=>{const t=TVE.ActiveElement;if(t&&t.length&&t.is(TVE.identifier("post_list")))for(let s=0;s0&&o.includes(l)||(o=a+" "+o,o.includes(TVE.PostList.baseSelector)&&(o=TVE.PostList.baseSelector+" "+o.replace(TVE.PostList.baseSelector,"")),o=TVE.PostList.utils.replaceDoubleSpacesWithOne(o),e[s].deleteRule(i),e[s].insertRule(o,i))}return e},tcb_head_css_prefix:(e,t)=>{const s=t.parents(TVE.identifier("post_list"));if(s.length){const i=TVE.PostList.utils.getPostListSelector(s),a=".thrv-content-box";-1!==(e=(e=-1!==e.indexOf(a)||t.is(".tve-cb")?e.replace(a+" ","")+i+a+" ":(e=0===TVE.inner.$body.find(e+i).length?i+" "+e:e+" "+i).replace(/([ ]{2,})/g," ")).trimStart()).indexOf(TVE.PostList.baseSelector)&&(e=TVE.PostList.baseSelector+" "+e.replace(TVE.PostList.baseSelector,""))}else if(t.is(TVE.identifier("pagination_number_item"))){const s=TVE.CSS_Rule_Cache.uniq_id(t.closest(TVE.identifier("pagination")));e=e.trimStart()+`[data-css="${s}"]${TVE.identifier("pagination")} `}return e},"tcb.css.save.whitelist_rule":(e,t)=>(t.includes(TVE.identifier("post_list"))&&t.includes(":nth-child")&&(t=(t=t.replace(/:not\((:nth-child\(.*\))\)/g,"")).replace(/(:nth-child\(.*\))/g,""),TVE.inner.$body.find(t).length&&(e=!0)),e)}};e.exports=t},14333:e=>{const t={getSymbolPrefix(e,t){const s=TVE.apply_filters("tcb.symbol.get_symbol_parent",t.parent().closest(".thrv_symbol"),t),i=void 0!==s.attr("data-symbol-id")?s.attr("data-symbol-id"):s.find(".thrive-symbol-shortcode").attr("data-symbol-id"),a=".thrv_symbol_"+i;return i&&(s.length&&!e.includes(a)&&(e=e.includes(TVE.CONST.global_css_prefix)?e.replace(TVE.escapedRegEx(TVE.CONST.global_css_prefix,"g"),TVE.CONST.global_css_prefix+" "+a):a+" "+e),TVE.state_manager.is_hover()&&!e.includes(TVE.CONST.global_css_prefix)&&(e=TVE.CONST.global_css_prefix+" "+e)),e},symbolHeadCssPrefix:(e,s)=>TVE.USE_GLOBALSHEET||_.isArray(e)||s.closest(".thrv_header, .thrv_footer").length?e:!TVE.state_manager.is_default()&&TVE.state_manager.needs_hover_state_parent(s)?"":t.getSymbolPrefix(e,s),removeHfCssRules(e){const t=e.attr("data-tcb-elem-type"),s=TVE.main.all_media();if(void 0!==t&&!e.hasClass("symbol-edit-mode")){const e=new RegExp(`thrv_${t}`,"g");let i=0,a=s[i];for(;a;)TVE.CSS_Rule_Cache.removeRuleByMatchingSelector(a,e),a=s[i++]}},changeCssRulesBeforeInsert(e,s){const i=TVE.CSS_Rule_Cache.media_rule(TVE.main.responsive.desktop.media);let a;if(void 0!==s&&s.length||(s=TVE.ActiveElement.closest(".thrv_symbol")),t.removeHfCssRules(s),a=void 0!==s.attr("data-symbol-id")?s.attr("data-symbol-id"):s.find(".thrive-symbol-shortcode").attr("data-symbol-id"),s.length)for(let t=0;t{const i=s(16668),a=".tve-number-wrapper",l=s(87344);e.exports=i.component.extend({setCounterValues(e,t=null,s=null,i=null,l=null,o=null){null===s&&(s=this.controls.ThousandsDivider.getValue()),null===t&&(t=this.controls.DecimalPrecision.getValue()),t=parseInt(t),null===i&&(i=this.controls.EndValue.getValue()),null===l&&(l=this.controls.DecimalCharacter.getValue()),null===o&&(o=this.controls.StartingValue.getValue());const c=this.getFormattedNumber(i,t,s,l),n=this.getFormattedNumber(o,t,s,l);e.find(a).attr({"data-final-number":c,"data-formatted-from":n}).find(".tve-number").html(c)},getFormattedNumber(e,t,s,i){let a=parseFloat(e).toFixed(t).replace(/\B(?=(?:\d{3})+(?!\d))/g,s);const l=`.(?=${new Array(t).fill(".").join("")}$)`;return 0!==t&&(a=a.replace(new RegExp(l),i)),a},after_init(){TVE.add_filter("tcb_filter_html_before_save",e=>(e.find(".tve-number").html(e.find(a).attr("data-from")),e));const e=e=>{const t=TVE.ActiveElement;return t.is(`${TVE.identifier("number_counter")}`)&&t.find('[data-anim="slide"]').length&&(e=e.concat(".typography-button-toggle-controls")),e};TVE.add_filter("tcb.hidden_controls.typography.number_counter",e),TVE.add_filter("tcb.hidden_controls.typography.number_counter",e),TVE.add_action("tcb.after-insert",e=>{const t=e.find(a);t.length&&this.startCounter(t)}),TVE.add_action("tve.imported_content",e=>{e.find(a).addBack(a).each((e,t)=>{this.startCounter(TVE.inner_$(t))})})},controls_init(e){const t=/^-?[0-9]\d{0,11}(\.\d*)?$/,s=this;e.StartingValue.update=function(){const e=s.numberCounter.getData("from");this.setValue(e)},e.StartingValue.change=function(e,t){e.find(a).attr("data-from",t.value),s.setCounterValues(e,null,null,null,null,t.value)},e.StartingValue.validate=function(e){return t.test(e)},e.StartingValue.input=TVE.$.noop,e.EndValue.update=function(){const e=s.numberCounter.getData("to");this.setValue(e)},e.EndValue.change=(e,t)=>{e.find(a).attr("data-to",t.value),this.setCounterValues(e,null,null,t.value)},e.EndValue.validate=function(e){return t.test(e)},e.EndValue.input=TVE.$.noop,e.DecimalPrecision.update=function(){const t=s.numberCounter.getData("decimals");e.DecimalCharacter.toggle("0"!==t),this.setValue(t)},e.DecimalPrecision.input=(t,s)=>{e.DecimalCharacter.toggle(s.value),t.find(a).attr("data-decimals",s.value),this.setCounterValues(t,s.value)},e.DecimalCharacter.update=function(){const e=s.numberCounter.getData("decimal-character");this.setValue(e)},e.DecimalCharacter.input=(e,t)=>{e.find(a).attr("data-decimal-character",t.value),this.setCounterValues(e,null,null,null,t.value)},e.ThousandsDivider.update=function(){const e=s.numberCounter.getData("thousand-divider");this.setValue(e)},e.ThousandsDivider.input=(e,t)=>{e.find(a).attr("data-thousand-divider",t.value),this.setCounterValues(e,null,t.value)},e.ShowLabel.update=function(e){const t="false"!==e.attr("data-label");this.setChecked(t)},e.ShowLabel.change=function(t,s){e.LabelPosition.toggle(!0===s.checked),t.toggleClass("tcb-hide-labels",!0!==s.checked),t.attr("data-label",s.checked)},e.LabelPosition.update=function(t){this.$el.toggle(e.ShowLabel.isChecked()),this.setValue(t.attr("data-label-position"))},e.LabelPosition.input=function(e,t){e.attr("data-label-position",t.value),e.removeClass("tcb-label-top tcb-label-bottom tcb-label-both").addClass(t.value)},e.Prefix.update=function(e){const t=e.find(".tve-number-prefix").text();this.setValue(t)},e.Prefix.input=function(e,t){e.find(".tve-number-prefix").text(t.value),e.find(".tve-mini-label").show()},e.Suffix.update=function(e){const t=e.find(".tve-number-suffix").text();this.setValue(t)},e.Suffix.input=function(e,t){e.find(".tve-number-suffix").text(t.value),e.find(".tve-mini-label").show()},e.Size.update=function(e){this.setValue(e.find(a).css("font-size"))};const i=_.throttle(e=>{this.numberCounter.recalculateDigitWidth(),this.numberCounter.$number.find(".scroller").css({"line-height":e,height:e}).find(".scroller-span").css({"line-height":e,height:e}).filter(".scroller-upper-span").css({top:`-${e}`})},84);e.Size.input=function(e,t){const s=t.value+"px",l=e.find(a);e.head_css({"--tve-font-size":s}),"slide"===l.attr("data-anim")&&i(s)},e.Speed.update=function(){let e=s.numberCounter.getData("speed");["1007","2507","4007"].includes(e)||(e=2e3),this.setValue(e)},e.Speed.input=function(t,s){t.find(a).attr("data-speed",s.value),e.CustomSpeed.$el.toggle(!["1007","2507","4007"].includes(s.value)),e.CustomSpeed.setValue(2e3)},e.CustomSpeed.update=function(){const e=s.numberCounter.getData("speed");this.setValue(e)},e.CustomSpeed.change=function(e,t){let s=parseInt(t.value);(isNaN(s)||s<100)&&(s=100,t.value=100),e.find(a).attr("data-speed",s)},e.CustomSpeed.input=TVE.$.noop,e.CustomSpeed.validate=function(e){return t.test(e)}},startCounter(e){this.numberCounter=new l(e,TVE.inner.window),this.previewAnimation()},previewAnimation(){this.numberCounter.init().render(),this.numberCounter.start()},before_update(){return this.setNumberCounter(),this},setNumberCounter(){return this.numberCounter=new l(TVE.ActiveElement.find(a),TVE.inner.window),this.numberCounter.init(),this.numberCounter},after_update(){const e=this.controls.Speed.getValue();this.controls.CustomSpeed.$el.toggle(!["1007","2507","4007"].includes(e))}})},14454:(e,t,s)=>{!function(t){const i=s(16668),a=s(51106);e.exports=i.component.extend({updateOnMouseLeave:!1,controls_init(e){e.Description.update=function(e){this.setChecked(!!e.filter(".edit_mode").children(TVE.TEXT_BLOCK).length)},e.Description.input=(e,s)=>{e=e.filter(".edit_mode"),a(()=>{if(e.children(TVE.TEXT_BLOCK).remove(),s.checked){const s=t(TVE.CONST.custom_menu.mega_desc_tpl.replace("%s","Click to edit menu description
")).addClass("tve_editable").attr("data-selector",this.menu.getSelectorSpec("mega_desc"));e.children("a").after(s),s.find("p").attr("data-selector",this.menu.getSelectorSpec("mega_desc")+" p")}},e)}},before_update(){TVE.Components.menu.before_update(TVE.ActiveElement.closest(".thrv_widget_menu")),this.menu=TVE.Components.menu.menuView}})}(jQuery)},14699:(e,t,s)=>{!function(){const t=s(1261);e.exports=t.extend({updateOnMouseLeave:!1,controls_init(e){e.ImagePicker.change_image=function(e){this.image_selected=!0;const t=TVE.ActiveElement.filter(".edit_mode");let s,i;const a=t.hasClass("tcb-elem-placeholder");if(a&&(s=t.outerHeight(),i=t.outerWidth()||s),t.empty().css("background-image",`url("${this.picker.clean_url(e.url)}")`),e.customField&&t.attr("data-d-f",e.customField),a){TVE.Editor_Page.selection_manager.select_element(t.removeClass("tcb-elem-placeholder edit_mode"));const e={height:`${s}px`};t.parent()[0]&&!t.parent()[0].className.includes("tcb--column")&&(e["flex-basis"]=`${i}px`),t.head_css(e)}this.update(t)},e.ImagePicker.update=function(e){this.$(".preview").addClass("img").css("background-image",e.filter(".edit_mode").css("background-image"))},e.Height.update=function(e){const t=TVE.ActiveElement.filter(".edit_mode").attr("data-height")||e.head_css("height",!1,"",!0);this.setValue(t)},e.Height.input=function(e){let t=this.getValue(!0);t.includes("auto")&&(t=""),e.attr("data-height",t),this.applyElementCss({height:t,"flex-basis":t},e,"",""),setTimeout(()=>TVE.ActiveElement.parents(".tcb-mega-drop-inner > ul").filter(".tcb-masonry").masonry())}}})}()},14902:(e,t,s)=>{const i=s(16668),a="p-global-thumb",l=TVE.t.gradient;e.exports=i.base_view.extend({template:TVE.tpl("util/edit-global-colors"),step_1:".tcb-favorites-step-1",step_2:".tcb-favorites-step-2",step_3:".tcb-favorites-step-3",enable_remove_color:!0,enable_edit_color:!0,enable_unlink:!0,update_label:TVE.t.global.update_gradient,edit_label:TVE.t.global.edit_gradient,unlink_label:TVE.t.global.unlink_gradient,initialize(e){this.fav_gradient_view=e.favorites_view,"function"==typeof this.after_initialize&&this.after_initialize(e)},render(e){const t=e.attr("data-color"),s=this.fav_gradient_view.gradient_picker.css_variable,i=!!s,o=i&&s.indexOf("--tcb-tpl-")>-1&&TVE.isGlobalVariablePromoted(s);let c=l;e.hasClass(a)&&(c=e.attr("data-name"),this.enable_unlink=!0,this.enable_edit_color=!0,this.enable_remove_color=!0),this.$el.html(this.template({text:c,edit_property_label:TVE.t.gradient,update_tip:this.update_label,undo_tip:TVE.t.global.cancel_update,edit_tip:this.edit_label,unlink_tip:this.unlink_label,enable_remove_color:this.enable_remove_color,enable_edit_color:this.enable_edit_color,enable_unlink:this.enable_unlink})),this.$(".tcb-global-color-preview").toggleClass("tcb-css-variable-identifier",i).toggleClass("tcb-tpl-var",o).css("background-image",e.hasClass(a)?"var("+e.attr("data-var")+")":t),this.after_render(t,e)},after_render(e,t){this.$color_states=this.$(".tcb-favorites-steps"),this.$global_color_name_input=this.$("#tcb_global_color_name"),this.$global_color_label=this.$(".tcb-global-color-label"),this.$thumb=t,this.gradient=e,this.step_to_show(t.hasClass(a)?this.step_2:this.step_1)},step_to_show(e){this.$color_states.addClass("tcb-hidden"),this.$(".global-colors-drop-content").addClass("tcb-hide"),e&&this.$color_states.filter(e).removeClass("tcb-hidden")},remove_favorite(){return this.$thumb&&this.$thumb.length&&(this.fav_gradient_view.remove_color(parseInt(this.$thumb.attr("data-id"))),this.$el.empty(),this.remove_tooltips()),!1},make_global(){jQuery(".tvd-material-tooltip").removeClass("show");const e=this.$thumb.attr("data-color");this.fav_gradient_view.add_global_gradient({gradient:e,name:this.$global_color_name_input.val(),custom_name:0}),this.$thumb.remove(),delete this.$thumb,this.fav_gradient_view.reset_html(),this.fav_gradient_view.select(e,this.fav_gradient_view.$("."+a+'[data-color="'+e+'"]').first()),this.execute_ajax({}),this.$thumb&&(TVE.changeCssVariableValue(this.$thumb.attr("data-var"),e),this.fav_gradient_view.color_click(null,this.$thumb[0]))},unlink_global(){delete this.fav_gradient_view.gradient_picker.picker.gradient_css_variable,this.fav_gradient_view.gradient_picker.setValue(this.gradient),this.fav_gradient_view.gradient_picker.picker.updatePreview(!0),this.$el.empty(),this.remove_tooltips(),this.fav_gradient_view.$(".p-thumb").not(".save-fav").removeClass("active")},go_to_state(e,t){const s=parseInt(t.getAttribute("data-state"));switch(delete this.fav_gradient_view.gradient_picker.edit_css_variable,delete this.cache_gradient,s){case 2:case 3:this.$("#active_color_details").removeClass("remove-view");break;case 31:this.fav_gradient_view.gradient_picker.edit_css_variable=!0,this.cache_gradient=this.gradient,this.fav_gradient_view.allow_user_to_edit(!1);break;case 32:TVE.Editor_Page.disable_clicks({panel_action_btn:!0});break;case 33:this.$("#active_color_details").addClass("remove-view")}this.step_to_show(".tcb-favorites-step-"+s)},update_global(){const e=this.$global_color_name_input.val(),t=this.$thumb.attr("data-id"),s=this.$thumb.attr("data-var"),i=this.$thumb.attr("data-synced-var")||this.gradient,o=e.trim()===l?0:1;this.step_to_show(this.step_2),this.fav_gradient_view.update_global_gradient(t,s,{gradient:i,name:e,custom_name:o}),this.$global_color_label.text(e),this.execute_ajax({id:t,custom_name:o,gradient:i}),this.fav_gradient_view.reset_html(),this.fav_gradient_view.select(this.gradient,this.fav_gradient_view.$("."+a+'[data-var="'+s+'"]')),delete this.fav_gradient_view.gradient_picker.edit_css_variable,this.fav_gradient_view.allow_user_to_edit(!0),this.remove_tooltips()},undo_global(){this.cache_gradient&&(this.gradient=this.cache_gradient,TVE.changeCssVariableValue(this.$thumb.attr("data-var"),this.gradient),this.fav_gradient_view.gradient_picker.setValue(this.gradient),this.fav_gradient_view.gradient_picker.picker.updatePreview(!0));const e=this.$thumb.attr("data-name");this.$global_color_name_input.val(e),this.$global_color_label.text(e),delete this.fav_gradient_view.gradient_picker.edit_css_variable,delete this.cache_gradient,this.step_to_show(this.step_2),this.fav_gradient_view.allow_user_to_edit(!0),this.remove_tooltips()},remove_global(){const e=parseInt(this.$thumb.attr("data-id"));return this.fav_gradient_view.gradient_picker.setValue(this.gradient),this.fav_gradient_view.gradient_picker.picker.updatePreview(!0),this.fav_gradient_view.remove_global_gradient(e),this.execute_ajax({id:e,active:0}),this.$("#active_color_details").removeClass("remove-view"),this.$el.empty(),this.remove_tooltips(),!1},execute_ajax(e){e||(e={}),e.gradient=this.gradient,e.name=this.$global_color_name_input.val(),this.fav_gradient_view.execute_global_gradient_ajax(e)},remove_tooltips(){jQuery(".tvd-material-tooltip").removeClass("show")},toggle_more_options(){this.$(".global-colors-drop-content").toggleClass("tcb-hide")}})},15195:(e,t,s)=>{const i=s(16668),a=s(20583),l=s(40248),o=s(17502);e.exports=i.component.extend({controls_init(){const e=this;this.search=new o({el:this.$("#a-link-main")[0]}),this.search.on("linkchange",function(t){e.data.href=t}),this.modal=new a.base({el:a.get_element("options-post-types")}),this.modal.before_save=function(){const e=TVE.ajax_data("save_link_post_types","post",{post_types:this.checkbox_values(".post-type")});jQuery.ajax(e).done(function(e){TVE.page_message(e.message)})},this.data={}},read_element(e){const t=e&&!e.is("a")?e.parent("a[href]"):e;if(this.$element=null,!t||!t.length)return!1;this.$element=t;let s=this._read(t);return s=TVE.apply_filters("tcb.link_read",s,t),!(!s.href||"javascript:void(0)"===s.href)&&s},_read:e=>({a:"link",t:"link",href:e.attr("data-tcb-href")||e.attr("href"),target:e.attr("target")||null,rel:e.attr("rel")||""}),_apply(e,t){"link"===e.t&&this.component.$edit_mode.hasClass("tcb-col")&&(e.class="tcb-col"),t.attr("href",e.href),t.attr("class",e.class),TVE.do_action("tcb.link_apply",t,e),TVE.preserve_changed_link(t),e.target?t.attr("target",e.target):t.removeAttr("target"),t.removeClass("tve-dynamic-link tve-jump-scroll").removeAttr("data-custom-shortcode data-dynamic-link data-shortcode-id dynamic-postlink jump-animation");let s="";e.rel&&(s+=" "+e.rel),l.set(l.keys.link_new_tab,!_.isEmpty(e.target)),l.set(l.keys.link_no_follow,!_.isEmpty(e.rel)),t.attr("rel",s)},validate(){if(!this.data||!this.data.href)return TVE.page_message(TVE.t.anim.url_miss,!0),!1;if(this.component.$edit_mode.parents("div[data-link-wrap]").parent("a[href]").length||this.component.$edit_mode.find("a[href]").length){const e=this.component.$edit_mode.closest("a[href]").children().first(),t=TVE.t.warning_link_insert_inside_link.split("##split##");return TVE.page_message(t[0]+'"'+TVE.get_element_name(e)+'"'+t[1],!0,1e4),!1}return!0},apply_settings(){if(!this.validate())return!1;this.data.settings_applied=!0,this.model.set(_.extend({},this.data));const e=this,t=this.component.$edit_mode,s=!this.$element||!this.$element.length||!this.$element.attr("href")||"javascript:void(0)"===this.$element.attr("href"),i=!this.$element||!this.$element.length,a=i?null:this._read(this.$element),l=_.extend({},this.data),o=this.model,c=e.component.collection.indexOf(o);let n;return n=this.component.$edit_mode.is("img")?i?this.component.$edit_mode.parent().children().wrapAll('').parent():this.$element:i?this.component.$edit_mode.wrapAll('').parent():this.$element,i&&t.attr("data-link-wrap",1),this._apply(l,n),TVE.UndoManager.add({undo(){i?n.children().first().unwrap():e._apply(a,n);const l=t.data("anim_collection");l.no_preview=l!==e.component.collection,s?l.remove(o):(l.at(c).set(a),l.trigger("add")),delete l.no_preview},redo(){i?(t.wrapAll(''),e.apply(l,t.parent())):e._apply(l,n);const a=t.data("anim_collection");a.no_preview=a!==e.component.collection,s?a.add(o):(a.at(c).set(l),a.trigger("add")),delete a.no_preview}}),!0},remove(e){const t=this.component.$edit_mode,s=t.attr("data-link-wrap"),i=t.closest("a[href]"),a=this,l=this.component.collection.indexOf(e),o=this._read(i);TVE.UndoManager.add({undo(){s?(t.wrap(''),a._apply(o,t.parent())):a._apply(o,i);const c=t.data("anim_collection");c.no_preview=c!==a.component.collection,c.add(e,{at:l}),delete c.no_preview},redo(){s?t.unwrap():i.attr("href","").removeAttr("target").removeAttr("rel");const e=t.data("anim_collection");e.no_preview=e!==a.component.collection,e.remove(e.at(l)),delete e.no_preview}}),t.attr("data-link-wrap")?t.unwrap():i.attr("href","").removeAttr("target").removeAttr("rel"),e.destroy()},attr(e,t){return this.data[t.getAttribute("data-attr")]=t.checked?t.value:null,!1},set_model(e){return this.model=void 0!==e?e:new Backbone.Model,(!this.model.get("href")||this.model.get("href").length<2)&&(l.get(l.keys.link_new_tab)&&this.model.set("target","_blank"),l.get(l.keys.link_no_follow)&&this.model.set("rel","nofollow")),this.data={a:"link",t:"link",href:this.model.get("href")||"",target:this.model.get("target")||null,rel:this.model.get("rel")||""},this.dom(),this},dom(){this.search.set_link(this.data.href),this.$(".target").prop("checked","_blank"===this.data.target),this.$(".rel").prop("checked",this.data.rel&&-1!==this.data.rel.indexOf("nofollow"))},open_settings(){return this.modal.open({top:"20%",complete:_.bind(function(){this.search.focus()},this)}),!1}})},15392:(e,t,s)=>{const i=s(56164);e.exports=i.extend({no_style_class:"rv_style_none",after_initialize(e){i.prototype.after_initialize.apply(this,arguments),TVE.add_filter("tcb_filter_shadow_before_add",e=>(e.is(".thrv_responsive_video")&&(this.remove_video_style_class(e),this.update()),e)),TVE.add_action("tcb_action_corners_added",e=>(e.is(".thrv_responsive_video")&&(this.remove_video_style_class(e),this.update()),e)),TVE.add_action("tcb_action_borders_added",e=>(e.is(".thrv_responsive_video")&&(this.remove_video_style_class(e),this.update()),e)),TVE.add_action("tcb.video.provider_changed",(e,t)=>{e.includes("vooplayer")&&(this.remove_video_style_class(t),this.update())}),TVE.add_action("tcb_action_aspect_ratio_changed",(e,t)=>(t.length&&!t.includes("16:9")?(this.remove_video_style_class(e),this.update(),this.style_picker.disable()):this.style_picker.enable(),e)),this.style_picker=e.component.controls.responsive_video.style_picker},remove_video_style_class(e){e.removeClass(function(e,t){return(t.match(/(^|\s)rv_style_\S+/g)||[]).join(" ")})},item_template:()=>TVE.tpl("controls/responsive-video/style-picker"),container_class:()=>"control-grid wrap video-styles",update(){const e=this.applyTo().attr("class").split(" ");let t=this.model.config.default||this.no_style_class;for(let s=0;s{e.exports=Backbone.Model.extend({idAttribute:"term_id",sync(e,t,s){let i;const a=this.get("rest_nonce")?this.get("rest_nonce"):TVE_Admin.nonce;return(s=s||{}).cache=!1,!t.has("term_id")||"delete"!==e&&"update"!==e||(s.url=this.url()+"/"+t.get("term_id")),_.isUndefined(a)||_.isNull(a)||(i=s.beforeSend,s.beforeSend=function(e){if(e.setRequestHeader("X-WP-Nonce",a),i)return i.apply(this,arguments)}),Backbone.sync(e,t,s)},url(){return this.get("rest_symbol_terms")||TVE_Admin.rest_routes.symbols_terms},parse:e=>(0===e.parent&&delete e.parent,e)})},15846:(e,t,s)=>{const i=s(16668),a=s(10547),l=s(40521);e.exports=i.component.extend({updateOnMouseLeave:!1,controls_init(){this.minTooltip=new l({tooltipPosition:"top",no_buttons:!0,template:TVE.tpl("controls/tooltip/lg-textarea-min"),anim_duration:300,no_callback:!0,validate:()=>!this.minTooltip.FORCE_CLOSE}),this.maxTooltip=new l({tooltipPosition:"top",no_buttons:!0,template:TVE.tpl("controls/tooltip/lg-textarea-max"),anim_duration:300,no_callback:!0,validate:()=>!this.maxTooltip.FORCE_CLOSE}),this.resizeTooltip=new l({tooltipPosition:"top",no_buttons:!0,template:TVE.tpl("controls/tooltip/lg-textarea-resize"),anim_duration:300,no_callback:!0,validate:()=>!this.resizeTooltip.FORCE_CLOSE}),this.controls.placeholder.update=function(e){this.setValue(e.filter(".edit_mode").find("textarea").attr("placeholder"))},this.controls.placeholder.input=function(e){const t=this.getValue();e.filter(".edit_mode").find("textarea").attr("placeholder",t).attr("data-placeholder",t)},this.controls.ShowLabel.update=function(e){this.setChecked(a.labelVisible(e))},this.controls.ShowLabel.change=(e,t)=>{a.toggleFieldLabel(e,t.checked,"textarea"),TVE.ElementEditIcons.show_icons(e)},this.controls.Rows.input=(e,t)=>{e.filter(".edit_mode").find("textarea").attr("rows",t.value)},this.controls.Rows.update=function(e){this.setValue(e.filter(".edit_mode").find("textarea").attr("rows"))},this.controls.MinChar.update=function(e){this.setValue(e.filter(".edit_mode").find("textarea").attr("data-min")||0)},this.controls.MinChar.openTooltip=()=>(this.minTooltip.isOpen()?this.minTooltip.onCancel():(this.resizeTooltip.onCancel(),this.maxTooltip.onCancel(),this.minTooltip.open(null,this.controls.MinChar.$el.find(".tve-input-info"))),!1),this.controls.MinChar.input=(e,t)=>{let s=Number(t.value);const i=e.filter(".edit_mode").find("textarea");isNaN(s)&&(s=0),s=Math.max(0,s),i.attr("data-min",s).attr("data-required",s>0?"1":"0"),this.controls.MaxChar.model.config.min=s},this.controls.MaxChar.update=function(e){this.setValue(e.filter(".edit_mode").find("textarea").attr("maxlength")||0)},this.controls.MaxChar.input=(e,t)=>{let s=Number(t.value);const i=e.filter(".edit_mode").find("textarea");isNaN(s)&&(s=0),s=Math.max(0,s),s?i.attr("maxlength",s):i.removeAttr("maxlength"),e.find(".tve-lg-textarea-counter .tve-fill-text-dynamic").text(s?`0 of ${s}`:0),this.controls.MinChar.model.config.max=s},this.controls.MaxChar.openTooltip=()=>(this.maxTooltip.isOpen()?this.maxTooltip.onCancel():(this.resizeTooltip.onCancel(),this.minTooltip.onCancel(),this.maxTooltip.open(null,this.controls.MaxChar.$el.find(".tve-input-info"))),!1),this.controls.ShowCounter.update=function(e){this.setValue(e.filter(".edit_mode").hasClass("tve-lg-show-counter"))},this.controls.ShowCounter.change=(e,t)=>{(e=e.filter(".edit_mode")).toggleClass("tve-lg-show-counter",t.checked),t.checked&&!e.find(".tve-lg-textarea-counter").length&&e.append('')},this.controls.Resizing.update=function(e){this.setValue(e.filter(".edit_mode").hasClass("no-resize"))},this.controls.Resizing.change=(e,t)=>{e.filter(".edit_mode").toggleClass("no-resize",t.checked)},this.controls.Resizing.openTooltip=()=>(this.resizeTooltip.isOpen()?this.resizeTooltip.onCancel():(this.maxTooltip.onCancel(),this.minTooltip.onCancel(),this.resizeTooltip.open(null,this.controls.Resizing.$el.find(".tve-switch-info"))),!1),TVE.add_action("tve.lg.edit.input",e=>{if(e.hasClass("tve_lg_textarea")){const t=e.find("textarea");t.attr("data-min","1"===t.attr("data-required")?Number(t.attr("data-min"))||10:0),TVE.inner_$(`[data-label-for="${e.attr("data-label")}"]`)}}),TVE.add_action("tve.lg.edit.mode.enter",e=>{e.find(".tve-lg-textarea-counter .tve-fill-text-dynamic").attr("contenteditable",!1)})}})},15887:(e,t,s)=>{e.exports=s(81940).extend({$$type:"lead_generation",categoryId:"form_type",templateName:"form",selectDefault(){"contact_form"===TVE.ActiveElement.attr("data-tcb-lg-type")?this.filter({},this.$typesWrapper.find('[data-item="Contact Forms"]')):this.filter({},this.$typesWrapper.find('[data-item="All Types"]'))},afterTemplateApplied(){this.elementData&&this.elementData.fileSetupId?this.applyTo.attr("data-f-id",this.elementData.fileSetupId):this.applyTo.removeAttr("data-f-id"),this.elementData&&this.elementData.settingsId?this.applyTo.attr("data-settings-id",this.elementData.settingsId):this.applyTo.removeAttr("data-settings-id"),TVE.Components.lead_generation.syncFileUploadSettings(this.applyTo),delete this.elementData},beforeSave(){this.elementData={fileSetupId:this.applyTo.attr("data-f-id"),settingsId:this.applyTo.attr("data-settings-id")}}})},16102:(e,t,s)=>{e.exports=s(515).extend({template:TVE.tpl("controls/switch"),openTooltip(){},getExtraClass(){let e="";return this.get_config("no-space")&&(e+=" no-space"),e},openInstructionsLightbox(e,t){TVE.modal_open("instructions",{element:TVE.ActiveElement,target:t})},redirectToInstructionsUrl(e,t){const s=t.getAttribute("data-link");s?window.open(s,"_blank"):console.error("No URL found in data-link attribute.")}})},16124:(e,t,s)=>{const i=s(16668);e.exports=i.base_view.extend({template:TVE.tpl("util/color-picker/add-color"),initialize(e){this.color_view=e.favorites_view},render(e){this.$el.html(this.template({global_tip:TVE.t.global.save_global_color,favorite_tip:TVE.t.global.save_favorite_color})),this.reset_view_vars(e)},reset_view_vars(e){this.tiny_color_obj=e,this.$(".tcb-global-color-preview").css("background-color",e.toHexString())},add_global(){const e=this.tiny_color_obj.toHexString(),t=this.tiny_color_obj.toRgbString(),s=this.color_view.compute_color_name(e);this.color_view.add_global_color({color:t,name:s,custom_name:0}),this.color_view.reset_html();const i=this.color_view.$('.p-global-thumb[data-color="'+t+'"]').first();this.color_view.execute_global_color_ajax({color:t,name:s}),i&&(TVE.changeCssVariableValue(i.attr("data-var"),t),this.color_view.color_click(null,i[0]),this.empty_el())},add_favorite(){this.color_view.add_color(this.tiny_color_obj),this.empty_el()},empty_el(){this.$el.empty(),jQuery(".tvd-material-tooltip").removeClass("show")}})},16171:(e,t,s)=>{function i(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),s.push.apply(s,i)}return s}function a(e,t,s){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var s=t.call(e,"string");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}const l=s(74144),o=s(13828);var c;c=jQuery,e.exports={TCB_CLS_PAT:TVE.apply_filters("tcb.content.tcb_cls_pat",["thrv_","tve-","tve_","tcb_","tcb-","thrv-","img_style_","mce-","fr-","ttfm"]),cleanup_froala(e,t=!1){const s=this;e.find(".tve-froala").each(function(){const e=c(this);if(e.find(".tve-froala:not(a)").length)return;let i=e.find(".fr-element").last();if(i.length||(i=e.next(".fr-wrapper").find(".fr-element")),i.length?(i.find(".tve-froala").length&&s.cleanup_froala(i),e.html(i.html()).removeClass(function(e,t){return(t.match(/(^|\s)(fr-|tve-froal)\S+/g)||[]).join(" ")}),e.is("p")&&(i.remove(),e.siblings(".fr-wrapper:empty, p:empty").remove())):e.is("a.tve-froala")&&e.removeClass(function(e,t){return(t.match(/(^|\s)(fr-|tve-froal)\S+/g)||[]).join(" ")}),e.is("p.wp-caption-text")){let t=e.children("div");t.length||(t=e.next("div")),t.length&&(t.attr("style")&&e.attr("style",t.attr("style")),e.html(t.html()),t.remove())}t&&e.removeData("froala.editor")}),e.find(".fr-wrapper").each(function(){const e=c(this),t=e.children(".fr-element");c(this).replaceWith(t.length?t.html():e.html())})},get_stripped_content(e){let t="";return e&&(e.find(TVE.apply_filters("tve.get_stripped_content.selectors",".thrv-button, .tve-page-section-out svg, .tve-content-box-background svg, .thrv_countdown_timer, .thrv-credit, .thrv-google-map-embedded-code, .thrv_disqus_comments, .tcb-post-list, .tve-toc,.thrv_widget_menu, .thrv-fill-counter, .thrv_tw_qs, .thrv_social, .thrv_post_grid, .thrv-progress-bar, .thrv-rating, .thrv_contents_table, .tve-countdown, .tve-progress-bar-wrapper, .thrv_tabs_shortcode, .thrv_toggle, .thrv-login-element, .thrv_responsive_video, .thrive_leads_shortcode, .thrive-quiz-builder-shortcode, .thrv_responsive_video, .tve_more_tag, .thrv_lead_generation")).remove(),t=e.html()),TVE.apply_filters("tve.get_stripped_content",t)},get_clean_content(e,t){void 0===e&&(e={}),TVE.inner.window.w3tc_lazyload&&"function"==typeof TVE.inner.window.w3tc_lazyload.loadAdd&&TVE.inner.window.w3tc_lazyload.loadAll(),t=t||TVE.Editor_Page.editor,this.checkCWVElements(t);let s=c("#pre-save-filter");s.length||(s=c('').appendTo("body")),s.empty(),TVE.do_action("tcb.clean_content.root",t);const i=t.children(".tve_content_save").length?t.children(".tve_content_save"):t,a=i.length>0?i.html().replace(/