1/*! Thrive Architect - 2020-12-16 2* http://www.thrivethemes.com/ 3* Copyright (c) 2020 Thrive Themes */ 4 5"use strict";function ownKeys(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,a)}return i}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(i,!0).forEach(function(t){_defineProperty(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):ownKeys(i).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}function _possibleConstructorReturn(t,e){return!e||"object"!==_typeof(e)&&"function"!=typeof e?_assertThisInitialized(t):e}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _get(t,e,i){return(_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,i){var a=_superPropBase(t,e);if(a){var n=Object.getOwnPropertyDescriptor(a,e);return n.get?n.get.call(i):n.value}})(t,e,i||t)}function _superPropBase(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=_getPrototypeOf(t)););return t}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var i=0;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function _createClass(t,e,i){return e&&_defineProperties(t.prototype,e),i&&_defineProperties(t,i),t}function _defineProperty(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(c){var u,f,n,p,v,o={".js":[],".json":[],".css":[],".html":[]},l="function"==typeof require?require:null;return p=function(t){var e=new Error("Could not find module '"+t+"'");return e.code="MODULE_NOT_FOUND",e},v=function(t,e,i){var a,n;if("function"==typeof t[e+i])return e+i;for(a=0;n=o[i][a];++a)if("function"==typeof t[e+n])return e+n;return null},u=function(t,e,i,a,n,o){var r,s,c,l,d,h;for("."!==(r=(i=i.split("/")).pop())&&".."!==r||(i.push(r),r="");null!=(s=i.shift());)if(s&&"."!==s&&(".."===s?(t=e.pop(),o=o.slice(0,o.lastIndexOf("/"))):(e.push(t),t=t[s],o+="/"+s),!t))throw p(a);if(r&&"function"!=typeof t[r]&&((h=(h=(h=(h=v(t,r,".js"))||v(t,r,".json"))||v(t,r,".css"))||v(t,r,".html"))?r=h:2!==n&&"object"===_typeof(t[r])&&(e.push(t),t=t[r],o+="/"+r,r="")),!r)return 1!==n&&t[":mainpath:"]?u(t,e,t[":mainpath:"],a,1,o):u(t,e,"index",a,2,o);if(!(d=t[r]))throw p(a);return d.hasOwnProperty("module")?d.module.exports:(c={},d.module=l={exports:c,id:o+"/"+r},d.call(c,c,l,f(t,e,o)),l.exports)},n=function(t,e,i,a){var n,o=i,r=i.charAt(0),s=0;if("/"===r){if(o=o.slice(1),!(t=c["/"])){if(l)return l(i);throw p(i)}a="/",e=[]}else if("."!==r){if(n=o.split("/",1)[0],!(t=c[n])){if(l)return l(i);throw p(i)}a=n,e=[],(o=o.slice(n.length+1))||(s=(o=t[":mainpath:"])?1:(o="index",2))}return u(t,e,o,i,s,a)},(f=function(e,i,a){return function(t){return n(e,[].concat(i),t,a)}})(c,[],"")}({workspace:{editor:{js:{frontend:{elements:{
5"countdown.js":function(t,e,i){var l,d,h,s;l=ThriveGlobal.$j,d=TCB_Front,s=["days","hours","minutes","seconds"],e.exports=function(){function c(t,e){var i=this;if(_classCallCheck(this,c),_defineProperty(this,"$el",l()),_defineProperty(this,"eventDate",new Date),_defineProperty(this,"$_days",l()),_defineProperty(this,"$_hours",l()),_defineProperty(this,"$_minutes",l()),_defineProperty(this,"$_seconds",l()),_defineProperty(this,"daysChanged",!1),_defineProperty(this,"hoursChanged",!1),_defineProperty(this,"minutesChanged",!1),_defineProperty(this,"secondsChanged",!1),_defineProperty(this,"daysValue",0),_defineProperty(this,"hoursValue",0),_defineProperty(this,"minutesValue",0),_defineProperty(this,"secondsValue",0),_defineProperty(this,"daysPrev",0),_defineProperty(this,"hoursPrev",0),_defineProperty(this,"minutesPrev",0),_defineProperty(this,"secondsPrev",0),_defineProperty(this,"isEvergreen",!1),_defineProperty(this,"isEditor",!1),_defineProperty(this,"interval",void 0),_defineProperty(this,"anim",""),_defineProperty(this,"cfg",{}),_defineProperty(this,"isNoRestart",0),_defineProperty(this,"cookie",void 0),!e&&h||(h=d.getDisplayType()),!t.data("tcb.countdown")||e){var a=new Date;if(this.isEditor=e,this.$el=t,this.readDomData(),this.isEvergreen=this.$el.hasClass("tve-countdown-evergreen"),this.isNoRestart=this.$el.attr("data-norestart"),this.eventDate=new Date("".concat(this.$el.attr("data-date"),"T").concat(this.$el.attr("data-hour"),":").concat(this.$el.attr("data-min"),":").concat(this.$el.attr("data-sec")||"00").concat(this.$el.attr("data-timezone"))),this.isEditor?this.addMutationListener():setTimeout(function(){i.handleOverflow()},1e3),this.isEvergreen){var n=!(this.isEditor||"true"===d.queryString.get("preview"));if(this.eventDate=new Date,this.cookie=d.getCookie(this.$el.attr("data-id")),this.cookie&&n)this.cookie=this.cookie.split("-"),this.eventDate.setTime(new Date(this.cookie[0],this.cookie[1]-1,this.cookie[2],this.cookie[3],this.cookie[4],this.cookie[5]));else if(this.eventDate.setTime(a.getTime()+24*this.$el.attr("data-day")*3600*1e3+3600*this.$el.attr("data-hour")*1e3+60*this.$el.attr("data-min")*1e3+1e3*this.$el.attr("data-sec")),n){var o="".concat(this.eventDate.getFullYear(),"-").concat(this.eventDate.getMonth()+1,"-").concat(this.eventDate.getDate(),"-").concat(this.eventDate.getHours(),"-").concat(this.eventDate.getMinutes(),"-").concat(this.eventDate.getSeconds()),r=new Date("2030-01-01");if(!this.isNoRestart){var s=new Date(this.eventDate.getTime());r=s.setDate(this.eventDate.getDate()+parseInt(this.$el.attr("data-expday"))),r=s.setHours(this.eventDate.getHours()+parseInt(this.$el.attr("data-exphour"))),r=new Date(r)}TCB_Front.setCookie(this.$el.attr("data-id"),o,{expires:r})}}!this.isEditor&&(a>=this.eventDate||isNaN(this.eventDate.getTime()))?this.finish():(this.onStateChange(),this.anim&&"function"==typeof this["render".concat(this.anim)]&&this["render".concat(this.anim)](),this.isEditor||(this.interval=setInterval(this.onStateChange.bind(this),1e3))),t.data("tcb.countdown",this)}}return _createClass(c,[{key:"finish",value:function(){var e=this;if(s.forEach(function(t){e["update".concat(e.anim)]("00","00",e["$_".concat(t)])}),!this.isEditor){this.$el.addClass("expired"),clearInterval(this.interval);var t=ThriveGlobal.$j.Event("tve.countdown-finished");this.$el.trigger(t)}}},{key:"onStateChange",value:function(){this.updateValues(),this.updateDom(),this.daysValue<=0&&this.hoursValue<=0&&this.minutesValue<=0&&this.secondsValue<=0&&(this.daysValue=this.hoursValue=this.minutesValue=this.secondsValue=0,this.finish())}},{key:"renderDefault",value:function(){var i=this;s.forEach(function(t){var e=i["".concat(t,"Value")].toString();1===e.length&&(e="0".concat(e)),i["$_".concat(t)].html('<div class="t-digit-part"><span>'.concat(e,"</span></div>"))})}},{key:"renderSlideDown",value:function(){var r=this;s.forEach(function(t){var e,i,a=r["".concat(t,"Value")].toString(),n=l('<div class="t-digit-part"></div>');1===a.length&&(a="0".concat(a));for(var o=0;o<a.length;o++)n.append((e=a.length-o,i=a[o],l('<span class="t-slide-part-digit" data-index="'.concat(e,'"><span class="part-p ct-d-placeholder"> </span><span class="part-').concat(e,'">').concat(i,"</span></span>"))));r["$_".concat(t)].html('<div class="t-digit-part"><span class="t-digits" >
5'.concat(n[0].innerHTML,"</span></div>"))})}},{key:"renderFlipTile",value:function(){var a=this;s.forEach(function(t){var e=a["".concat(t,"Value")].toString();1===e.length&&(e="0".concat(e));var i={"--digits-number":e.length,"--digit-width-percent":"".concat(2<e.length?.55:.65)};d.inlineCssVariable(a["$_".concat(t)],i),a["$_".concat(t)].html('<div class="flip-clock__card t-digit-part"><span class="card__top"></span><span class="card__bottom"></span><span class="card__back"><span class="card__bottom"></span></span></div>'),a.updateFlipTile(e,new Array(e.length).fill(0).join(""),a["$_".concat(t)])})}},{key:"updateDefault",value:function(t,e,i){i.find("span").text(t)}},{key:"updateSlideDown",value:function(t,e,i){function a(t,e){if(t.html()===e)return t;t.removeClass("next").css("display","");var i=t.clone().removeClass("go-down").addClass("next").html(e);return t.before(i).next(".go-down").remove(),t.addClass("go-down"),setTimeout(function(){i.addClass("go-down")},20),setTimeout(function(){t[0].style.setProperty("display","none","important")},220),t}var n=i.find(".t-digit-part");n.removeClass("tcb-permanently-hidden");for(var o=0;o<n.length-t.length;o++)n.filter('[data-index="'.concat(n.length-o,'"]')).addClass("tcb-permanently-hidden");for(var r=0;r<t.length;r++){var s=t.length-r,c=i.find(".part-".concat(s));c.length&&a(c.first(),t[r])}}},{key:"updateFlipTile",value:function(t,e,i){var a=i.find(".card__top"),n=i.find(".card__bottom"),o=i.find(".card__back"),r=i.find(".card__back .card__bottom");0<=Number(e)&&(o.attr("data-value",e),n.attr("data-value",e)),a.html(t),r.attr("data-value",t),i.removeClass("flip"),i[0].offsetWidth,i.addClass("flip")}},{key:"readDomData",value:function(){var o=this,t=this.$el.attr("data-anim")||"default";this.anim=t.charAt(0).toUpperCase()+t.slice(1),this.parseConfig(),s.forEach(function(t,e){var i=o.$el.find(".tve-countdown-".concat(t)),a=!1;if(o["$_".concat(t)]=i.find(".tve-countdown-digit"),i.toggleClass("tcb-permanently-hidden",!o.cfg[t]),o.cfg[t]&&o.cfg[h])for(var n=e+1;n<s.length;n++)o.cfg[s[n]]&&(a=!0);i.next(".tve-countdown-tile-separator").toggleClass("tcb-permanently-hidden",!a)})}},{key:"updateDom",value:function(){var a=this;s.forEach(function(t){if(a["".concat(t,"Changed")]){var e=a["".concat(t,"Value")].toString(),i=a["".concat(t,"Prev")].toString();1===e.length&&(e="0".concat(e)),1===i.length&&(i="0".concat(i)),a["update".concat(a.anim)](e,i,a["$_".concat(t)])}})}},{key:"updateValues",value:function(){var e=this,t=new Date;
5s.forEach(function(t){e["".concat(t,"Prev")]=e["".concat(t,"Value")]}),this.secondsValue=Math.floor((this.eventDate.getTime()-t.getTime())/1e3),this.minutesValue=Math.floor(this.secondsValue/60),this.secondsValue=this.secondsValue%60,this.hoursValue=Math.floor(this.minutesValue/60),this.minutesValue=this.minutesValue%60,this.daysValue=Math.floor(this.hoursValue/24),this.hoursValue=this.hoursValue%24,this.cfg.days||(this.hoursValue+=24*this.daysValue),this.cfg.hours||(this.minutesValue+=60*this.hoursValue),this.cfg.minutes||(this.secondsValue+=60*this.minutesValue),s.forEach(function(t){e["".concat(t,"Changed")]=e["".concat(t,"Value")]!==e["".concat(t,"Prev")]})}},{key:"parseConfig",value:function(){var e,i={days:!0,minutes:!0,hours:!0,seconds:!0};try{e=JSON.parse(this.$el.attr("data-visible")||JSON.stringify(i))}catch(t){console.warn("Could not get json data for element:",this),e=i}this.cfg=e}},{key:"handleOverflow",value:function(){if(this.$el[0].parentNode&&this.$el.find(".tve-countdown-content").length&&!this.$el.hasClass("expired")){var t=this.$el.find(".tve-countdown-content")[0].offsetWidth,e=this.$el.parent().width();if(e<(t+=parseInt(this.$el.css("padding-left"))+parseInt(this.$el.css("padding-right")))){var i=e/t*parseInt(getComputedStyle(this.$el[0]).getPropertyValue("--tve-countdown-size").replace("px",""));this.isEditor?TVE.Components.countdown.handleOverflow(this.$el,i):(i=Math.max(i,15),this.$el[0].style.setProperty("--tve-countdown-size","".concat(i,"px"),"important"))}}}},{key:"addMutationListener",value:function(){function e(){cancelAnimationFrame(t),t=requestAnimationFrame(i.handleOverflow.bind(i))}var t,i=this;if(window.ResizeObserver&&!this.$el.data("resize-observer")){var a=new ResizeObserver(e);this.$el.data("resize-observer",a),a.observe(this.$el[0]);var n=new MutationObserver(function(t){Array.from(t).forEach(function(t){"attributes"===t.type&&["class","data-value","id"].includes(t.attributeName)||t.target.classList.contains("tve-countdown")&&"attributes"===t.type&&!["data-visible","data-resize"].includes(t.attributeName)||TVE._.debounce(e,100)})});n.observe(this.$el[0],{attributes:!0}),this.$el.find(".tve-countdown-data .tcb-plain-text, .tve-countdown-data span").each(function(t,e){n.observe(e,{attributes:!0})})}}}]),c}()},
5"login.js":function(t,e,i){!function(a,t){TCB_Front.loginCallbacks={redirect:function(t,e){if(e.success&&!0===e.success&&t.redirect_url.length){var i=tve_add_http(t.redirect_url);t.urlParams&&t.urlParams.length&&(i=TCB_Front.appendFormParamsToURL(i,t.urlParams)),TCB_Front.loginKeepLoader=!0,document.location.href=tve_add_http(i)}},refresh:function(){TCB_Front.loginKeepLoader=!0,location.reload()},noRedirect:function(t,e){},showMessage:function(t,e){e.success&&!0===e.success&&TCB_Front.toast(t.success_message,!1)}};var n=function(){function e(t){var i=this;_classCallCheck(this,e),this.$wrapper=t,this.data={action:"tve_login_submit"},this._config=tve_unserialize(TCB_Front.Base64.decode(this.$wrapper.find('input[name="config"]').val())),this._config.form_type=t.attr("data-type")||"login",this.initStates(),this.switchState(tve_frontend_options.current_user.user_email?"logged_in":this.determineDefaultState()),this.$wrapper.find("[data-state]").on("tcb.change_state",function(t,e){i.switchState(e.state)}),this.$wrapper.fadeIn("slow"),a(window).on("hashchange",function(){var t=i.getStateFromHash();t&&i.switchState(t)})}return _createClass(e,[{key:"hasState",value:function(t){return"both"===this._config.form_type||this._config.form_type===t}},{key:"getStateFromHash",value:function(){if(window.location.hash){var t=window.location.hash.replace("#tcb-","");if(["login","register"].includes(t)&&this.hasState(t))return t}return null}},{key:"determineDefaultState",value:function(){var t=this.$wrapper.attr("data-default-state")||"login";return this.getStateFromHash()||t}},{key:"initStates",value:function(){var i=this;this.states={},this.$wrapper.find("[data-state]").each(function(t,e){return i.states[e.dataset.state]=i.stateFactory(e.dataset.state)})}},{key:"stateFactory",value:function(t){var e,i={form:this.$wrapper.find('[data-state="'.concat(t,'"]')),config:this._config};switch(t){case"login":e=new r(i);break;case"forgot_password":e=new s(i);break;case"register":e=new c(i);break;default:e=new o(i)}return e}},{key:"getAjaxData",value:function(){var t=this.activeState.getAjaxData();return"string"==typeof t?a.param(this.data)+"&"+t:a.extend({},this.data,t)}},{key:"switchState",value:function(t){this.activeState&&this.activeState.resetErrors().clearForm(),this.$wrapper.find(".tcb-login-form-wrapper").removeClass("tve-active-state").addClass("tcb-permanently-hidden"),this.$wrapper.find('[data-state="'+t+'"]').removeClass("tcb-permanently-hidden").addClass("tve-active-state"),this.activeState=this.states[t],requestAnimationFrame(this.activeState.focusFirstInput.bind(this.activeState))}},{key:"bindEvents",value:function(){var e=this;return this.$wrapper.find(".tar-login-submit").off("click").on("click",function(){return e.activeState.getForm().trigger("submit"),!1}),this.$wrapper.find(".tve-dynamic-link:not(.tar-login-submit *)").off("click").on("click",function(t){if(e._onSwitchState(t),"logout"!==t.currentTarget.dataset.shortcodeId)return!1}),this.$wrapper.find("form").off("submit.tar_login_element thrive_submit user_loggedin").on("submit.tar_login_element thrive_submit",function(t){e._onSubmit(t)}).on("user_loggedin",function(t){TCB_Front.$body.addClass("logged-in").find(".tcb-hide-logged-in").remove()}),a.each(this.states,function(t,e){return e.afterInit()}),this}},{key:"_getStateToSwitch",value:function(t){var e=null;switch(t){case"bk_to_login":case"login":e="login";break;case"forgot_password":e="forgot_password";break;case"register":e="register"}return e}},{key:"_onSwitchState",value:function(t){var e=this.$wrapper.find(t.currentTarget);if("thrive_login_form_shortcode"===e.data("dynamic-link")){var i=this._getStateToSwitch(e.data("shortcode-id"));i&&(t.preventDefault(),this.switchState(i))}}},{key:"_onSubmit",value:function(t){if(t.preventDefault(),t.stopPropagation(),!0!==this.validate())return this.error();this.send()}},{key:"validate",value:function(){return this.activeState.validate()}},{key:"error",value:function(){return this.activeState.showErrors()}},{key:"send",value:function(){var e=this.activeState;e.beforeSend(),delete TCB_Front.loginKeepLoader,a.ajax({type:"post",x
5hrFields:{withCredentials:!0},url:tve_frontend_options.ajaxurl,data:this.getAjaxData()}).fail(function(t){return e.onFail(t)}).done(function(t){return e.onSuccess(t)}).always(function(){TCB_Front.loginKeepLoader||e.removeLoader()})}}]),e}(),o=function(){function e(t){_classCallCheck(this,e),this.$form=t.form,this.config=t.config,this.attributes={},this.action="",this.errors=[],this.init(),this._dataBind()}return _createClass(e,[{key:"getForm",value:function(){return this.$form.find("form").first()}},{key:"init",value:function(){}},{key:"afterInit",value:function(){}},{key:"_dataBind",value:function(){var i=this;Object.keys(this.attributes).forEach(function(t){var e=i.$form.find('input[name="'+t+'"]');"checkbox"===e.attr("type")?e.on("change",function(){i.attributes[t]=e.attr("checked")?1:0}):e.on("input",function(){i.attributes[t]=e.val()})})}},{key:"getAjaxData",value:function(){return a.extend({},this.attributes,{custom_action:this.action})}},{key:"removeLoader",value:function(){this.loader(!0),this.$form.find("button[type=submit]").hide()}},{key:"onSuccess",value:function(t){}},{key:"onFail",value:function(t){}},{key:"beforeSend",value:function(){this.loader()}},{key:"loader",value:function(t){return!0===(0<arguments.length&&void 0!==t&&t)?this.$form.find(".tcb-form-loader").remove():(a('<div class="tcb-form-loader"><span class="tcb-form-loader-icon thrv-icon-spinner9"></span></div>').appendTo(this.$form).show(),this.$form.find("input,a,button").blur()),this}},{key:"clearForm",value:function(){var e=this;return Object.keys(this.attributes).forEach(function(t){e.attributes[t]="",e.$form.find('input[name="'+t+'"]').val("")}),this}},{key:"resetErrors",value:function(){return this.errors=[],this.$form.find(".tcb-form-error").remove(),this.$form.find(".tcb-form-input-error").removeClass("tcb-form-input-error"),this}},{key:"validate",value:function(){return this.resetErrors(),!0}},{key:"showErrors",value:function(){var i=this;this.$form.find(".tcb-form-error").remove(),Object.keys(this.attributes).forEach(function(t){var e="empty_"+t;i.errors.includes(e)&&"string"==typeof tve_frontend_options.translations[e]&&i.showError(i.$form.find('input[name="'+t+'"]'),tve_frontend_options.translations[e])})}},{key:"showError",value:function(t,e){var i=this;t.is(":radio,:checkbox")&&(t=t.parents(".tve_lg_input_container").first()),t.hasClass("tcb-form-input-error")||(t.addClass("tcb-form-input-error").parent().addClass("tcb-form-input-error").after('<span class="tcb-form-error">'.concat(e,"</span>")),setTimeout(function(){i.resetErrors()},5e3))}},{key:"focusFirstInput",value:function(){TCB_Front.isInViewport(this.$form)&&this.$form.find("input:visible").first().focus()}}]),e}(),r=function(){function a(){return _classCallCheck(this,a),_possibleConstructorReturn(this,_getPrototypeOf(a).apply(this,arguments))}return _inherits(a,o),_createClass(a,[{key:"init",value:function(){var e=this;_get(_getPrototypeOf(a.prototype),"init",this).call(this),this.attributes={username:"",password:"",remember_me:""},this.action="login",this.$form.find(".tcb-remember-me-item").off("click").on("click",function(t){"checkbox"!==t.target.type&&e.$form.find('input[name="remember_me"]:not(.checkbox-update)').click()})}},{key:"onSuccess",value:function(t){_get(_getPrototypeOf(a.prototype),"onSuccess",this).call(this,t);var e=t.errors&&t.errors.length;if(e){var i="";t.errors.forEach(function(t){i+=t+"<br />"}),TCB_Front.toast(i,!0)}else"function"==typeof TCB_Front.loginCallbacks[this.config.submit_action]&&TCB_Front.loginCallbacks[this.config.submit_action](this.config,t);e||"noRedirect"!==this.config.submit_action&&"showMessage"!==this.config.submit_action||(this.$form.trigger("tcb.change_state",{state:"logged_in"}),this.getForm().trigger("user_loggedin")),TCB_Front.loginKeepLoader||this.clearForm()}},{key:"validate",value:function(){return this.resetErrors(),this.attributes.username.length||this.errors.push("empty_username"),this.attributes.password.length||this.errors.push("empty_password"),0===this.errors.length}}]),a}(),s=function(){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,_getPrototypeOf(t).apply(this,arguments))}return _inherits(t,o),_createClass(t,[{key:"init",value:function(){_get(_getPrototypeOf(t.prototype),"init",this).call(this),this.attributes={login:""},this.action="recover_password"}},{key:"onSuccess",value:function(e){if(_get(_getPrototypeOf(t.prototype),"onSuccess",this).call(this,e),e.errors&&Object.keys(e.errors).length){var i="";
5Object.keys(e.errors).forEach(function(t){i+=e.errors[t]+"<br />"}),TCB_Front.toast(i,!0)}else this.clearForm(),this.$form.trigger("tcb.change_state",{state:"reset_confirmation"})}},{key:"validate",value:function(){return this.resetErrors(),this.attributes.login.length||this.errors.push("empty_login"),0===this.errors.length}}]),t}(),c=function(){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,_getPrototypeOf(t).apply(this,arguments))}return _inherits(t,o),_createClass(t,[{key:"init",value:function(){_get(_getPrototypeOf(t.prototype),"init",this).call(this),this.attributes={},this.action="register",this.config.error_messages=tve_frontend_options.translations.registration_err;try{this.config.error_messages=_objectSpread({},this.config.error_messages,{},JSON.parse(this.$form.find(".tve-lg-err-msg").val()))}catch(t){}}},{key:"hasLoginState",value:function(){return"register"!==this.config.form_type}},{key:"getAjaxData",value:function(){var t=this.getForm().serialize()+"&custom_action=".concat(this.action,"&_tcb_id=").concat(this.$form.find(".tcb-registration-form").attr("data-settings-id")||"","&tcb_token=").concat((10*Date.now()).toString(32));return this.uploader.appendExtraData(t)}},{key:"afterInit",value:function(){var o=this;this.getForm().off("submit.tar_login_element").attr("action","#");var t=this.$form.find(".tcb-registration-form").tve_front_lead_generation({renderError:function(t,e,i){var a,n;switch(t.length||(t=o.$form.find(".tar-login-submit")),i){case"captcha":n=e,t=t.children().first();break;case"upload":t=t.children().first(),n=e;break;case"email":a="invalid_email";break;case"passwordmismatch":a="passwordmismatch";break;default:a=i+"_"+t.attr("name")}n=n||(o.config.error_messages[a]||o.config.error_messages.required_field||"Please check this field"),o.showError(t,n)},clearErrors:function(){o.resetErrors()},showFormLoader:function(){o.loader()},submitHandler:function(t,e){t.preventDefault();var i=o.getForm();return e.token&&i.find(".tve-recaptcha-response").remove().end().append('<input type="hidden" name="g-recaptcha-response" value="'.concat(e.token,'" class="tve-recaptcha-response">')),i.trigger("thrive_submit"),!1}});this.uploader=t.data("tcb-file-upload")}},{key:"onFail",value:function(t){var e;t.responseJSON&&t.responseJSON.error&&(t.responseJSON.field&&(e=this.getForm().find('[name="'.concat(t.responseJSON.field,'"]')),"email"===t.responseJSON.field&&this.getForm().find('[name*="password"]').val("").trigger("keyup")),e&&e.length||(e=this.getForm().find(".tar-login-submit .tcb-button-link").first()),this.showError(e,t.responseJSON.error),"undefined"!=typeof grecaptcha&&"function"==typeof grecaptcha.reset&&(!tve_dash_front.recaptcha.connection||tve_dash_front.recaptcha.connection&&"v3"!==tve_dash_front.recaptcha.connection.version)&&grecaptcha.reset())}},{key:"onSuccess",value:function(t){switch(this.uploader.clear(),this.config.post_register_action){case"refresh":TCB_Front.loginKeepLoader=!0,location.reload();break;case"showMessage":TCB_Front.toast(this.config["post_register_action.success_message"]);var e="login";t.logged_in&&(TCB_Front.$body.addClass("logged-in"),e="logged_in"),"login"!==e||this.hasLoginState()?this.$form.trigger("tcb.change_state",{state:e}):this.$form.closest(".thrv-login-element").hide();break;default:var i=TCB_Front.loginCallbacks[this.config.post_register_action],a=1===parseInt(this.config["register.send_form_values"])?TCB_Front.buildFormParams(this.getForm()):[];"function"==typeof i&&i.call(TCB_Front.loginCallbacks,{redirect_url:this.config["post_register_action.redirect_url"],submit_action:this.config.post_register_action,success_message:this.config["post_register_action.success_message"],urlParams:a},t)}TCB_Front.loginKeepLoader||(this.getForm()[0].reset(),"undefined"!=typeof grecaptcha&&"function"==typeof grecaptcha.reset&&(!tve_dash_front.recaptcha.connection||tve_dash_front.recaptcha.connection&&"v3"!==tve_dash_front.recaptcha.connection.version)&&grecaptcha.reset(),this.$form.find('input[type="password"]').trigger("keyup"))}}]),t}(),l=!tve_frontend_options.is_editor_page&&tve_frontend_options.current_user&&tve_frontend_options.current_user.id;t.tve_login_element=function(){return this.hasClass("thrv-login-element")?this.each(function(t,e){var i=a(e);l&&i.hasClass("tcb-hide-logged-in")?i.remove():i.data("tcbLoginForm")||i.data("tcbLoginForm",new n(i).bindEvents())}):this}}(ThriveGlobal.$j,TVE_jQFn)},
5"toc.js":function(t,e,i){function a(o,t,e){s.each(function(t,e){var i=_(e),a=e.dataset.highlight,n=i.data("headers");Object.keys(n).sort(function(t,e){return t-e}).forEach(function(t){var e=i.find(n[t].join(",")).parent();"heading"===a?t<=o?(i.find(".tve-toc-heading.tve-state-expanded").removeClass("tve-state-expanded"),e.addClass("tve-state-expanded")):e.removeClass("tve-state-expanded"):"section"===a?t<=o?(i.find(".tve-toc-heading.tve-state-expanded").removeClass("tve-state-expanded"),e.is(".tve-toc-heading-level0")||(e.prevUntil(".tve-toc-heading-level0").addClass("tve-state-expanded"),e.prevAll(".tve-toc-heading-level0").first().addClass("tve-state-expanded")),e.addClass("tve-state-expanded")):e.removeClass("tve-state-expanded"):e.toggleClass("tve-state-expanded",t<=o)})}),b.isBottomScroll(o)&&a(o+window.innerHeight)}var _,b,n,y,s,o,w;_=ThriveGlobal.$j,b=TCB_Front,y=!(n={}),s=_(),o=!1,w=(new Date).getTime(),_.fn.tableOfContents=function(){var p=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},v={target:"#tve_editor.tar-main-content",columns:1,headers:"h1,h2,h3",distribute:"",itemCallback:jQuery.noop,hideEmpty:!0,numbering:"none",emptyText:window.tve_frontend_options&&tve_frontend_options.translations?tve_frontend_options.translations.no_headings:"No headings found",itemsFilter:function(t){return t}},g=!1,m={level0:0,level1:0,level2:0};return this.each(function(){var e=this,t=_(this);if(t.is(".thrv_contents_table,.tve-toc")){(g=t.hasClass("thrv_contents_table"))||(m={level0:0,level1:0,level2:0},["headingStyle","bulletStyle","numberStyle","numberSuffix"].forEach(function(t){p[t]={};try{p[t]=JSON.parse(e.dataset[t])}catch(t){}}));var i=t.find(".tve_ct_content").empty(),r=_objectSpread({},v,{},this.dataset,{},p);r.distribute=1===parseInt(r.distribute)||"true"===r.distribute||!0===r.distribute,r.columns=Number(b.getMediaAttr(t,"data-columns")||1);var a,n=r.headers.split(",").map(function(t){return t.toUpperCase()}),s=n.shift(),o=_(r.target);if(o.length||(o=_("#tve_editor")),a=o.find(r.headers),a=r.itemsFilter(a),y&&t.hasClass("tve-dynamic-toc")||(a=a.filter(":visible")),(a=a.filter(':not([data-hide="true"], .tve-toc *)')).length){for(;s&&n.length&&0===a.filter(s).length;)s=n.shift();var c=a.length/r.columns;r.distribute||(c=a.filter(s).length/r.columns);var l=new Array(r.columns).fill("",0,r.columns),d=0,h=-1;a.each(function(){var t=_(this),e=t.attr("data-alt-text")||t.text();r.distribute?h++:this.tagName===s&&h++,(1+d)*c<=h&&d++;var i=0<t.closest(".tcb-post-list").length&&!y&&!this.classList.contains("tve-id-regenerated"),a=this.id&&!i?this.id:this.id="t-"+w++,n=r.headers.split(",").indexOf(this.tagName.toLowerCase()),o=function(t,e,i,a,n){var o;if(g)o='<div class="tve_ct_level'.concat(i,'"><a href="#').concat(e,'" rel="nofollow">').concat(a,"</a></div>");else{var r="",s="",c="",l=t.numbering.includes("bullet"),d=t.numbering.includes("advance");if("none"!==t.numbering){if(l)0!==i&&!d||(c="toc-bullet-".concat(i));else if(0===i||d){m["level".concat(i)]+=1;for(var h=m["level".concat(i+1)]=0;h<i+1;h++)r+="".concat(m["level".concat(h)]).concat(h===i?"":".")}l&&c?s=c?'<div class="thrv_wrapper tve-toc-bullet tve-toc-bullet'.concat(i,' tve_no_icons tve-jump-scroll" data-target="#').concat(e,'" jump-animation="smooth" data-icon-target="').concat(c,'" data-element-name="Icon Level ').concat(i+1,'" data-css="').concat(t.bulletStyle[i]||"",'"><svg class="tcb-icon"><use xlink:href="#').concat(c,'"/></svg></div>'):"":r&&(s='<div class="thrv_wrapper tve-toc-number tve-toc-number'.concat(i,' tve_no_icons tve-jump-scroll" data-target="#').concat(e,'" jump-animation="smooth" data-element-name="Number Level ').concat(i+1,'" data-level="').concat(i,'" data-css="').concat(t.numberStyle[i]||"",'"><span class="tve-toc-disabled">').concat(r).concat(t.numberSuffix[i]||"","</span></div>"))}o='<div class="thrv_wrapper tve-toc-heading tve-toc-heading-level'.concat(i,' tve_no_icons" data-tag="').concat(n,'" data-css="').concat(t.headingStyle[i]||"",'" data-element-name="Heading Level ').concat(i+1,'">').concat(s,'<a href="#').concat(e,'" class="tve-toc-anchor tve-jump-scroll" jump-animation="smooth">').concat(a,"</a></div>")}return o}(r,a,n,e,this.tagName);i&&this.classList.add("tve-id-regenerated"),r.itemCallback(t,n,r),l[d]+=o});var u="";if(!g){var f=t.children(".tve-toc-divider");u=f.length?f.html():'<div class="thrv_wrapper thrv-divider tve-vert-divider" data-style="tve_sep-1" data-color-d="rgb(217, 217, 217)" data-thickness-d="1"><hr class="tve_sep tve_sep-1" style=""></div>'}i.html(l.map(function(t){return'<div class="ct_column">'.concat(t,"</div>").concat(u)}).join(""))}else r.hideEmpty?t.hide():i.html('<div class="tve-empty-toc">'.concat(r.emptyText,"</div>"))}})},n.initToc=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:b.$body;
5(y=1<arguments.length&&void 0!==arguments[1]&&arguments[1])||(o||(function(t){t.find(".tve-toc:not(.tve-dynamic-toc)").tableOfContents()}(t),function(t){var r=_(".thrv_header.tve-scroll-sticky").outerHeight()||0;t.find(".tve-toc.tve-elem-scroll").each(function(t,e){var i=_(e),o={};i.is(".tve-toc-dynamic:not(.tve-rendered)")||(i.find(".tve-toc-heading .tve-jump-scroll").each(function(t,e){var i=e.getAttribute("href")||e.getAttribute("data-target"),a=_("".concat(i));if(a.length){var n=Math.max(0,a.offset().top-100-r);_(e).data("targetOffset",n),o[n]?o[n].push('[href="'.concat(i,'"]')):o[n]=['[href="'.concat(i,'"]')]}}),i.data("headers",o),s=s.add(i))})}(t),o=!0),b.add_scroll_callback(a),b.$body.off(".tcb-jumplink-done").on("tcb-jumplink-done",function(t,e,i){(i.classList.contains("tve-toc-anchor")||i.classList.contains("tve-toc-number")||i.classList.contains("tve-toc-bullet"))&&setTimeout(function(){a(_(i).data("targetOffset"))},500)}))},e.exports=n}},events:{
5"resize.js":function(t,e,i){var a,n,o;a=ThriveGlobal.$j,n=TCB_Front,o=[],n.addResizeCallback=function(t,e){return-1===o.indexOf(t)&&(t.$$scope=e,o.push(t)),n},e.exports=function(){var t=n.$window.width();n.$window.off("resize.tar").on("resize.tar",function(){n.$window.width()!==t&&(a.each(o,function(t,e){e.call(e.$$scope||this)}),t=n.$window.width())})}},
5"scroll.js":function(t,e,i){var o,r,s;o=ThriveGlobal.$j,r=TCB_Front,s=[],r.add_scroll_callback=function(t,e){return-1===s.indexOf(t)&&(t.$$scope=e,s.push(t)),r},e.exports=function(){var t=r.$document.scrollTop(),e="";r.$window.off("scroll.tar").on("scroll.tar",function(){var i=r.$document.scrollTop(),a=t<=i?"down":"up",n=e!==a;t=i,e=a,o.each(s,function(t,e){e.call(e.$$scope||this,i,a,n)})}),r.$window.trigger("scroll")}}},
5"thrive_content_builder_frontend.js":function(t,e,i){if(!window.ThriveGlobal||!window.ThriveGlobal.$j){var a=window.$;window.ThriveGlobal={$j:jQuery.noConflict()},a&&(window.$=a)}void 0===Array.prototype.includes&&(Array.prototype.includes=function(t){return-1!==this.indexOf(t)}),void 0===String.prototype.includes&&(String.prototype.includes=function(t){return-1!==this.indexOf(t)}),window.TVE_jQFn={},window.TCB_Front={},window.addEventListener("load",function(){TCB_Front.menu.init(),TCB_Front.divider.init(),TCB_Front.toc.initToc(TCB_Front.$body,!!tve_frontend_options.is_editor_page),tve_frontend_options.is_editor_page||(TCB_Front.sticky.initSticky(TCB_Front.$body,!!tve_frontend_options.is_editor_page),TCB_Front.add_scroll_callback(TCB_Front.show_data_elemements,TCB_Front)),TCB_Front.postGridLayout(),TCB_Front.$body.find(".tve-countdown").each(function(t,e){new TCB_Front.Countdown(ThriveGlobal.$j(e),!!tve_frontend_options.is_editor_page)})}),ThriveGlobal.$j.extend(window.TCB_Front,{browser:null,detectBrowser:function(){var t,e,i={},a=(e=-1,"Microsoft Internet Explorer"===navigator.appName?(t=navigator.userAgent,null!==new RegExp("MSIE ([0-9]{1,}[\\.0-9]{0,})").exec(t)&&(e=parseFloat(RegExp.$1))):"Netscape"===navigator.appName&&(t=navigator.userAgent,null!==new RegExp("Trident/.*rv:([0-9]{1,}[\\.0-9]{0,})").exec(t)&&(e=parseFloat(RegExp.$1))),e);if(0<a)i.msie=!0;else{var n=navigator.userAgent.toLowerCase(),o=/(edge)[ \/]([\w.]+)/.exec(n)||/(chrome)[ \/]([\w.]+)/.exec(n)||/(webkit)[ \/]([\w.]+)/.exec(n)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(n)||/(msie) ([\w.]+)/.exec(n)||n.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(n)||[],r=o[1]||"";o[2];o[1]&&(i[r]=!0),i.chrome?i.webkit=!0:i.webkit&&(i.safari=!0)}return i.msie&&(i.version=a),i.ios=["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document,i},tableSort:function(d){d.append('<span class="tva-t-sort thrv-svg-icon">'+this.icons.get("sort")+this.icons.get("sort-desc")+this.icons.get("sort-asc")),d.on("click",function(){var t,e=ThriveGlobal.$j(this),n=e.index(),i=e.parents(".tve_make_sortable"),a=i.find("tbody"),o=[],r=[],s="down"==e.attr("data-direction")?"up":"down";function c(t,e){return t.text==e.text?t.oText>e.oText?1:t.oText<e.oText?-1:0:t.text>e.text?1:-1}function l(t,e){return t.text==e.text?t.oText>e.oText?-1:t.oText<e.oText?1:0:t.text>e.text?-1:1}e.attr("data-direction",s),ThriveGlobal.$j(i).find("tbody tr").each(function(){var t=ThriveGlobal.$j(this),e=t.find("> td").eq(n).text().trim().replace(/\u200B/g,"").toLowerCase(),i=/[$£â¬]/.test(e),a=i?e:parseFloat(e);isNaN(a)&&!i?o.push({tr:t,text:e,oText:e}):(i&&(a=parseFloat(a.replace(/[$£â¬]/,""))),r.push({tr:t,text:a,oText:e}))}),"down"==s?o.sort(c):o.sort(l),"down"==s?r.sort(c):r.sort(l),t="down"==s?r.concat(o):o.concat(r),ThriveGlobal.$j.each(t,function(t,e){a.append(e.tr)}),d.attr("data-direction",""),e.attr("data-direction",s)})},getCookie:function(t){for(var e=t+"=",i=document.cookie.split(";"),a=0;a<i.length;a++){for(var n=i[a];" "==n.charAt(0);)n=n.substring(1,n.length);if(0==n.indexOf(e))return n.substring(e.length,n.length)}return null},setCookie:function(t,e,i){if("number"==typeof i.expires){var a=i.expires,n=i.expires=new Date;n.setTime(+n+864e5*a)}return document.cookie=[encodeURIComponent(t),"=",encodeURIComponent(e),i.expires?"; expires="+i.expires.toUTCString():"",i.path?"; path="+i.path:"",i.domain?"; domain="+i.domain:"",i.secure?"; secure":""].join("")},isInViewport:function(t,e){var i=1<arguments.length&&void 0!==e?e:0;(t instanceof ThriveGlobal.$j||t.jquery)&&(t=t[0]);var a=t.getBoundingClientRect();return!(a.bottom<0||a.top>window.innerHeight-i)},isBottomScroll:function(t){return 0<window.innerHeight&&t+window.innerHeight===ThriveGlobal.$j(document).height()},inlineCssVariable:function(e,i,t,a){e=e.jquery?e[0]:e;var n=window.getComputedStyle(e,a);if(Array.isArray(i)){var o={};return i.forEach(function(t){return o[t]=n.getPropertyValue(t)}),o}if("string"==typeof i)return void 0!==t?void e.style.setProperty(i,t):n.getPropertyValue(i);
5ThriveGlobal.$j.isPlainObject(i)&&Object.keys(i).forEach(function(t){return e.style.setProperty(t,i[t])})},postGridLayout:function(){var t=ThriveGlobal.$j(".tve_post_grid_masonry");if(0<t.length)try{t.each(function(){ThriveGlobal.$j(this).masonry(this.dataset.masonry?JSON.parse(this.dataset.masonry):{}).css("opacity",1)})}catch(t){console.log(t)}var e=ThriveGlobal.$j(".tve_post_grid_grid");e.length<=0||e.find(".tve_pg_row").each(function(){var i=0,t=ThriveGlobal.$j(this).css("height","");t.find(".tve_post").each(function(){var t=ThriveGlobal.$j(this),e=t.outerHeight();i<e&&(i=e),t.css("height","100%")}),t.css("height",i-1+"px")})},bodyOffsetTop:function(){var t=TCB_Front.$body.find("#mm-preview-settings-bar"),e=TCB_Front.$body.offset().top;return t.length&&(e+=t.height()),e||0},handleIframes:function(t,e){var i=0<arguments.length&&void 0!==t?t:TCB_Front.$body,a=!(1<arguments.length&&void 0!==e)||e,n=a?"src":"data-src",o=a?"data-src":"src",r=a?"remove":"add";i.find("iframe:visible").not(".thrv_social_default iframe").each(function(){if(a||!this.classList.contains("tcb-dr-done")){var t=this.getAttribute(o);t&&this.setAttribute(n,t),this.removeAttribute(o),this.classList[r]("tcb-dr-done")}})},getMediaAttr:function(t,e,i){var a=2<arguments.length&&void 0!==i?i:this.getDisplayType(),n=[a],o=t.attr(e+a.charAt(0));switch(a){case"tablet":n.push("desktop");break;case"mobile":n.push("tablet"),n.push("desktop")}for(;void 0===o&&n.length;)o=t.attr("".concat(e,"-").concat(n.shift().charAt(0)));return void 0===o&&(o=t.attr(e)),o},changeAutoplayAudio:function(t){var i=this,e=0<arguments.length&&void 0!==t?t:ThriveGlobal.$j("body");tve_frontend_options.is_editor_page||e.find('.thrv_audio:not([data-type="dynamic"]) audio, .thrv_audio[data-type="soundcloud"][data-auto_play="1"]').each(function(t,e){ThriveGlobal.$j(e).parents(".tve_p_lb_content").length||i.makeAutoplayAudio(e)})},makeAutoplayAudio:function(t){if("audio"===t.tagName.toLowerCase()&&t.hasAttribute("data-autoplay")){var e=t.play();null!==e&&e.catch(function(){t.play()})}else ThriveGlobal.$j(t).find("iframe").each(function(){var t=(this.getAttribute("src")||this.getAttribute("data-src")).replace("&auto_play=0","")+"&auto_play=1";this.setAttribute("src",t)})},changeAutoplayVideo:function(t){var e=this;(void 0===t?ThriveGlobal.$j('.thrv_responsive_video:not([data-type="dynamic"])'):t.find('.thrv_responsive_video:not([data-type="dynamic"])')).each(function(){if(!tve_frontend_options.is_editor_page){var t=ThriveGlobal.$j(this);t.parents(".tve_p_lb_content").length||e.makeAutoplayVideo(t)}})},makeAutoplayVideo:function(t){var e,i,a,n=t.attr("data-type");this.browser;if("1"===t.attr("data-autoplay")){switch(n){case"youtube":i="&autoplay=1&mute=1";break;case"vimeo":i="&autoplay=1&muted=1";break;case"wistia":i="&autoPlay=true&muted=true"}if(["youtube","vimeo","wistia"].includes(n))(a=(e=t.find("iframe")).attr("src")||e.attr("data-src"))&&0!==a.length&&-1===a.indexOf(i)&&(e.attr("src",a+i),e.attr("data-src",a+i));else if(["self","external","custom"].includes(n)){var o=t.find("video").get(0);o&&(o.muted=!0,o.paused&&o.play())}}},getDisplayType:function(){var t="desktop";if(tve_frontend_options.is_editor_page)TCB_Front.$body.is(".preview-tablet")?t="tablet":TCB_Front.$body.is(".preview-mobile")&&(t="mobile");else{var e=this.$window.width();e<=767?t="mobile":e<=1023&&(t="tablet")}return t},isValidUrl:function(t){return/(http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/.test(t)},pageSectionHeight:function(){var t=TCB_Front.$window;ThriveGlobal.$j(".pdfbg.pdwbg").css({"box-sizing":"border-box",height:t.height()+"px"}),ThriveGlobal.$j(".pddbg").css("max-width",t.width()+"px"),ThriveGlobal.$j(".pddbg.pdfbg").each(function(){var t=ThriveGlobal.$j(this).css("height",""),e=t.attr("data-height"),i=t.attr("data-width");if(void 0!==e&&void 0!==i){var a=t.parent().width(),n=a*e/i;a<=i?t.css("min-height",n+"px"):t.css({"min-height":e+"px"})}})},getBrowserScrollSize:function(){var t=ThriveGlobal.$j,e={border:"none",height:"200px",margin:"0",padding:"0",width:"200px"},i=t("<div>").css(t.extend({}
5,e)),a=t("<div>").css(t.extend({left:"-1000px",overflow:"scroll",position:"absolute",top:"-1000px"},e)).append(i).appendTo("body").scrollLeft(1e3).scrollTop(1e3),n={height:a.offset().top-i.offset().top||0,width:a.offset().left-i.offset().left||0};return a.remove(),n},openLightbox:function(r,t){var i=this;if(!r.hasClass("tve_lb_open")&&!r.hasClass("tve_lb_opening")){var a=ThriveGlobal.$j("body"),n=ThriveGlobal.$j("html"),o="tve-o-hidden tve-l-open tve-hide-overflow",e=this.getBrowserScrollSize().width,s=this,c=parseInt(a.css("padding-right")),l=r.find("input[placeholder]").not(":radio").not(":checkbox");if(l.length&&ThriveGlobal.$j(l).thrive_iphone_placeholder(),r.find('.thrv_responsive_video:not([data-type="dynamic"])').each(function(){var t=ThriveGlobal.$j(this);s.makeAutoplayVideo(t)}),r.find('.thrv_audio:not([data-type="dynamic"]) audio, .thrv_audio[data-type="soundcloud"][data-auto_play="1"]').each(function(t,e){i.makeAutoplayAudio(e)}),r.off().on("click",".tve_p_lb_close",function(){return h(r),!1}),a.off("keyup.tve_lb_close").on("keyup.tve_lb_close",function(t){if(27==t.which)return h(r),!1}),r.children(".tve_p_lb_overlay").off("click.tve_lb_close").on("click.tve_lb_close",function(){return h(r),!1}),h(ThriveGlobal.$j(".tve_p_lb_background.tve_lb_open"),!0),r.addClass("tve_p_lb_background tve_lb_anim_"+t),r.data("doc-scroll-top",document.documentElement.scrollTop),r.data("bdy-scroll-top",document.body.scrollTop),a.addClass(o),n.addClass(o),TCB_Front.$window.height()<TCB_Front.$document.height()&&a.css("padding-right",c+e+"px"),r.find(".tve_scT").length?tve_frontend_options.is_editor_page||r.find(".tve_scT").each(function(){var t=ThriveGlobal.$j(this),e=parseInt(t.attr("data-selected"));if(!tve_frontend_options.is_editor_page){var i=t.find("> ul li").eq(isNaN(e)?0:e);i.length||(i=t.find("> ul li").first()),i.tcbTabsToggle()}}):TCB_Front.handleIframes(r),setTimeout(function(){r.css("display",""),r.addClass("tve_lb_opening"),setTimeout(function(){u()},0)},20),r.find(".tve_p_lb_content").trigger("tve.before-lightbox-open"),"none"!==r.css("display")?setTimeout(function(){r.removeClass("tve_lb_opening").addClass("tve_lb_open").find(".tve_p_lb_content").trigger("tve.lightbox-open")},300):(r.removeClass("tve_lb_open"),a.removeClass(o).css("padding-right",""),n.removeClass(o)),TCB_Front.$window.resize(function(){u()}),r.on("lbresize",function(){u(!0)}),"undefined"!=typeof ResizeObserver){var d=new ResizeObserver(function(){u(!0)});r.find("iframe").each(function(){d.observe(this)})}else r.find("iframe").each(function(){this.src=this.src,this.onload=function(){u(!0)}})}function h(t,e){TCB_Front.handleIframes(t,!1),t.find("video, audio").each(function(){ThriveGlobal.$j(this)[0].pause()}),void 0===e&&1===ThriveGlobal.$j(".tve_lb_open").length&&(a.removeClass(o).css("padding-right",""),n.removeClass(o),t.data("doc-scroll-top")?(document.documentElement.scrollTop=t.data("doc-scroll-top"),t.data("doc-scroll-top","")):t.data("bdy-scroll-top")&&(document.body.scrollTop=t.data("bdy-scroll-top"),t.data("doc-scroll-top",""))),t.removeClass("tve_lb_open tve_lb_opening").addClass("tve_lb_closing"),setTimeout(function(){t.removeClass("tve_lb_closing").css("display","none").find("tve_p_lb_content").trigger("tve.lightbox-close")},300),ThriveGlobal.$j("#tve-lg-error-container").hide()}function u(t){var e,i,a=r.find(".tve_p_lb_content"),n=TCB_Front.$window.height(),o=void 0!==t&&t?"animate":"css";TCB_Front.postGridLayout(),i=(n-(e=a.outerHeight(!0)))/2,r.find(".tve_p_lb_overlay")[o]({height:e+80+"px","min-height":n+"px"},200),a[o]({top:(i<40?40:i)+"px"},200),n<e+40&&r.addClass("tve-scroll")}},event_triggers:function(t){window.TVE_Event_Manager_Registered_Callbacks&&t.find(".tve_evt_manager_listen").each(function(){var a=ThriveGlobal.$j(this),t=a.attr("data-tcb-events");if(!(t=t||a.closest(".thrv_wrapper").attr("data-tcb-events")))return!0;try{t=ThriveGlobal.$j.parseJSON(t.replace("__TCB_EVENT_","").replace("_TNEVE_BCT__","")),ThriveGlobal.$j.each(t,function(t,e){if(TVE_Event_Manager_Registered_Callbacks[e.a]){var i="mouseover"===e.t?"mouseenter":e.t;a.off(i+".tcbevt"+e.t).on(i+".tcbevt"+e.t,function(){return TVE_Event_Manager_Registered_Callbacks[e.a].call(a[0],e.t,e.a,e.config||e.c||{})})}})}catch(t){console.log("Could not parse events"),console.log(t)}})},show_data_elemements:function(i){ThriveGlobal.$j(".thrv_data_element").not(".thrv_data_element_start").each(function(){var t=ThriveGlobal.$j(this),e=TCB_Front.$
5window.height();i+e>=t.offset().top+t.outerHeight()&&"hidden"!==t.css("visibility")&&t.addClass("thrv_data_element_start").trigger("tve.start-animation")})},onDOMReady:function(i){var e=this;if(this.dynamicElements.init(),this.$body=ThriveGlobal.$j("body"),this.body_offset=this.$body.offset(),void 0===i&&(i=this.$body),TCB_Front.handleIframes(i,!0),this.icons.migrate(i),this.$body.addClass("tve-".concat(this.getDisplayType(),"-browser")),Object.keys(TCB_Front.browser).length&&Object.keys(TCB_Front.browser).forEach(function(t){-1===t.indexOf("webkit")&&TCB_Front.browser[t]&&e.$body.addClass("tve-".concat(t,"-browser"))}),this.smartComplete.init(i),this.menu.init(),this.divider.init(),this.toc.initToc(i,!!tve_frontend_options.is_editor_page),i.find(".tve-countdown").each(function(t,e){new TCB_Front.Countdown(ThriveGlobal.$j(e),!!tve_frontend_options.is_editor_page)}),tve_frontend_options.is_editor_page||(this.sticky.initSticky(i,!!tve_frontend_options.is_editor_page),this.add_scroll_callback(this.show_data_elemements,this),this.header(i)),this.fix_compat_issues(i),ThriveGlobal.$j(".tcb-video-background-el").each(function(){this.parentNode.classList.add("tcb-video-background-parent")}),this.replaceDynamicContent(),tve_frontend_options.is_editor_page?ThriveGlobal.$j(".tcb-video-background-el iframe.tcb-voo-bg").each(function(){var t=TVE.inner_$(this),e=t.attr("src");t.attr("src",e)}):ThriveGlobal.$j('.thrv_responsive_video[data-type="vooplayer"]').each(function(){var t=ThriveGlobal.$j(this);t.find(".video_overlay_image").length&&t.find(".video-skin-player").css("z-index","-1")}),this.initSocial(i,tve_frontend_options.is_editor_page),!window.TVE_Dash||TVE_Dash.ajax_sent?this.getShareCounts():TCB_Front.$document.on("tve-dash.load",function(t){var e=TCB_Front.getShareCounts(ThriveGlobal.$j("body"),{},!0);e&&TVE_Dash.add_load_item("tcb_social",e[0],e[1])}),document.addEventListener("vooPlayerReady",this.playBackgroundVoo,!1),document.addEventListener("vooPlayerReady",this.changeVooOnPlay,!1),tve_frontend_options.is_editor_page||this.floating.init(),ThriveGlobal.$j.each(TVE_jQFn,function(t,e){ThriveGlobal.$j.fn[t]=e}),ThriveGlobal.$j(".tve_scT").each(function(){var t=ThriveGlobal.$j(this),e=parseInt(t.attr("data-selected"));if(!t.data("initDone")){t.data("initDone",!0);var i=t.find("> ul li").eq(isNaN(e)?0:e);i.length||(i=t.find("> ul li").first()),i.tcbTabsToggle()}}),ThriveGlobal.$j(".tve-toc-expandable").each(function(){var t=ThriveGlobal.$j(this),e=TCB_Front.getMediaAttr(t,"data-state-default");t.data("tcbTocDone")||(t.find(".tve-toc-title").tocToggle("expanded"===e?"show":"hide"),t.data("tcbTocDone",!0))}),ThriveGlobal.$j(".thrv_toggle_shortcode").each(function(){TCB_Front.handleIframes(ThriveGlobal.$j(this))}),ThriveGlobal.$j(".thrv_toggle").each(function(){var t=ThriveGlobal.$j(this);if(!t.data("tcbToggleInit")){var e=t.find(".thrv_toggle_item").filter(".tve-default-state-expanded");t.hasClass("tve-toggle-auto-collapse")&&(e=e.first()),e.find(".thrv_toggle_title").tcbToggle("show"),t.data("tcbToggleInit",1)}}),tve_frontend_options.is_editor_page)try{ThriveGlobal.$j("html").getNiceScroll().remove()}catch(t){}else{if(location.hash)try{var t=ThriveGlobal.$j(location.hash);t.closest(".thrv_toggle").length&&!t.hasClass("tve-state-expanded")&&t.trigger("click")}catch(t){}if(void 0===window.tcb_autofill){window.tcb_autofill=TCB_Front.getCookie("account_create_fields");try{window.tcb_autofill&&(window.tcb_autofill=decodeURIComponent(window.tcb_autofill),window.tcb_autofill=JSON.parse(window.tcb_autofill))}catch(t){window.tcb_autofill=null}window.tcb_autofill||(window.tcb_autofill=null)}if(window.tcb_autofill&&ThriveGlobal.$j.isArray(window.tcb_autofill)){ThriveGlobal.$j.each(window.tcb_autofill,function(t,e){-1===e.name.indexOf("[]")&&i.find("input[name="+e.name+"]").each(function(){var t=ThriveGlobal.$j(this);t.data("tcb-autofill")||(t.val(e.value).hide(),t.parent().append('<div class="tve-editable-field"><p>'+e.value+'</p><span class="tve_sc_icon icon-lock tve-edit-field"></span></div>'),t.data("tcb-autofill",1))})}),setTimeout(function(){TCB_Front.setCookie("account_create_fields",null,{path:"/"})},2500)}ThriveGlobal.$j("input[type=password], input[name=confirm_password]").on("keyup",function(){var t=this.value.trim(),e=ThriveGlobal.$j(this),i=r(t),a=e.siblings(".tve-password-strength-wrapper"),n="#e3ecef",o="";a.find(".tve-password-strength").css({"background-color":"#e3ecef"}),t?((i<30?(n="#ef5350",o="Weak",a.find(".tve-password-strength:lt(1)")):30<=i&&i<60?(n="#ffa726",o="So-so",a.find(".tve-password-strength:lt(2)")):60<=i&&i<80?(n="#8bc34a",o="Good",a.find(".tve-password-strength:lt(3)")):(n="#4caf50",o="Great!",a.find(".tve-password-strength:lt(4)"))).each(function(){ThriveGlobal.$j(this).css({"background-color":n})}),a.find(".tve-password-strength-text").text(o).css({color:n})):a.find(".tve-password-strength").css("background-color","")});var r=function(t){var e,i=0,a={},n=0;if(!t)return i;for(var o=0;o<t.length;o++)a[t[o]]=(a[t[o]]||0)+1,i+=5/a[t[o]];
5for(var r in e={digits:/\d/.test(t),lower:/[a-z]/.test(t),upper:/[A-Z]/.test(t),nonWords:/\W/.test(t)})n+=1==e[r]?1:0;return i+=10*(n-1),parseInt(i)};TCB_Front.$document.on("click",".tve-edit-field",function(){ThriveGlobal.$j(this).parent().hide().prev().show()}),TCB_Front.$document.on("click",".tve-close-error-message",function(){ThriveGlobal.$j(this).parent().hide().prev().show()}),TCB_Front.$document.on("click",".tve-image-overlay",function(){var t=ThriveGlobal.$j(this).parent();t.is("a")||t.find("img").trigger("click")}),TCB_Front.$document.on("mouseenter mouseout",".tve-image-overlay",function(t){ThriveGlobal.$j(this).parent().find("img").trigger(t.type)}),ThriveGlobal.$j(".thrv_fill_counter").each(function(){var n=ThriveGlobal.$j(this);n.one("tve.start-animation",function(){var t=n.find(".tve_fill_counter").attr("data-fill"),e=2*t,i=["-webkit-transform","-ms-transform","transform"];for(var a in i)ThriveGlobal.$j(".tve_fill_c_in, .tve_fill_circle.tve_fill_circle1",this).css(i[a],"rotate("+t+"deg)"),ThriveGlobal.$j(".tve_fill_c_in-d",this).css(i[a],"rotate("+e+"deg)")})}),ThriveGlobal.$j(".thrv_number_counter").each(function(){ThriveGlobal.$j(this).on("tve.start-animation",function(){var a=ThriveGlobal.$j(".tve_numberc_text",this),t=a.attr("data-counter"),e=a.attr("data-counter-start")?a.attr("data-counter-start"):0,i=parseInt(e),n=null,o=Math.ceil((i<t?t:i)/100);o=o||1,i<t?function t(e,i){e<=i?(a.text(e),i<(e+=o)+o&&(a.text(i),clearTimeout(n)),n=setTimeout(function(){t(e,i)},50)):clearTimeout(n)}(i,t):function t(e,i){i<=e?(a.text(e),(e-=o)-o<i&&(a.text(i),clearTimeout(n)),n=setTimeout(function(){t(e,i)},50)):clearTimeout(n)}(i,t)})}),ThriveGlobal.$j(".tve_p_lb_content").find("video").each(function(){ThriveGlobal.$j(this)[0].pause()}),TCB_Front.handleIframes(ThriveGlobal.$j(".tve_p_lb_content"),!1),ThriveGlobal.$j(".thrv_content_reveal").each(function(){var t=ThriveGlobal.$j(this).find(".thrlider-slider");0<t.length&&t.each(function(){ThriveGlobal.$j(this).parent().attr("data-no-init","true")});var e=ThriveGlobal.$j(this),i=parseInt(e.attr("data-after")),a=e.parents(".tve_p_lb_content"),n=e.children("thrv_tabs_shortcode").length,o=e.children(".thrv_toggle_shortcode").length;i=isNaN(i)?0:i,TCB_Front.handleIframes(e,!1);function r(){setTimeout(function(){e.slideDown(200,function(){e.trigger("lbresize")}),e.data("scroll")&&jQuery("html, body").animate({scrollTop:e.offset().top-270}),e.parents("#tve_editor").length&&"1"!==tve_frontend_options.is_single||"string"!=typeof e.attr("data-redirect-url")||!e.attr("data-redirect-url").length||!TCB_Front.isValidUrl(e.attr("data-redirect-url"))||(window.location=e.attr("data-redirect-url")),e.find("iframe").not(".thrv_social_default iframe").each(function(){var t=ThriveGlobal.$j(this);t.attr("src")||n&&o||t.attr("src",t.attr("data-src"))}),TCB_Front.changeAutoplayVideo(e),e.find(".thrlider-slider").each(function(){ThriveGlobal.$j(this).parent().thrlider("init_elements")}),e.trigger("tve-content-revealed")},1e3*i)}a.length?a.bind("tve.lightbox-open",r):r()}),ThriveGlobal.$j(".thrv_tw_qs").tve_front_tw_qs(),ThriveGlobal.$j(".thrv-countdown_timer_evergreen, .tve_countdown_timer_evergreen").thrive_tcb_timer(),ThriveGlobal.$j(".thrv-countdown_timer_plain, .thrv_countdown_timer:not(.tve_countdown_timer_evergreen)").thrive_tcb_timer(),ThriveGlobal.$j(".thrv_lead_generation").tve_front_lead_generation(),ThriveGlobal.$j(".thrv-contact-form").tve_contact_form(),ThriveGlobal.$j(".thrv-pricing-table").tve_pricing_table(),ThriveGlobal.$j(".thrv-login-element").tve_login_element(),this.init_typefocus(i),i.find(".thrv_responsive_video").off().click(function(){var t,e,i,a,n=ThriveGlobal.$j(this),o=n.find(".video_overlay_image"),r=n.find(".tcb-responsive-video").attr("data-provider"),s=n.attr("data-controls"),c=n.attr("data-overlay"),l=n.find(".tcb-video-float-container.tcb-float-closed");switch(r=r||n.attr("data-type")){case"youtube":case"vimeo":e="&autoplay=1";break;case"wistia":e="&autoPlay=true"}if("vooplayer"===r&&n.find(".video-skin-player").css("z-index",""),0===l.length)if(["youtube","vimeo","wistia"].includes(r))0!==(i=(t=n.find("iframe")).attr("src")).length&&t.attr("src",i+e);else if((!TCB_Front.browser.safari||0===parseInt(s)&&1===parseInt(c))&&["custom","self","external"].includes(r)){var d=n.find("video").get(0);a=d.paused?"play":"pause",setTimeout(function(){d[a]()})}0<o.length&&o.fadeOut()})}if(TCB_Front.changeAutoplayVideo(),ThriveGlobal.$j(".thrv_responsive_video:hidden").find("video").each(function(){ThriveGlobal.$j(this)[0].pause()}),TCB_Front.changeAutoplayAudio(i),TCB_Front.postGridLayout(),TCB_Front.remove_empty_symbols(i),TCB_Front.header_styling(i),TCB_Front.footer_styling(i),window.FB&&setTimeout(function(){ThriveGlobal.$j(".thrv_social_default .tve_s_fb_share, .thrv_social_default .tve_s_fb_like").each(function(){FB.XFBML.parse(this)})},200),!tve_frontend_options.is_editor_page){var a=ThriveGlobal.$j(".tve-captcha-container");if(a.length){var n=function t(){"undefined"!=typeof grecaptcha&&grecaptcha.render?function(){var i=100;a.filter(":not(.tve-recapcha-rendered)").each(function(){this.id=this.id+"-"+ ++i;var t=ThriveGlobal.$j(this),e=window.innerWidth<400?"compact":t.attr("data-size");t.addClass("tve-recaptcha-rendered"),t.data("grecaptcha-render")||tve_dash_front.recaptcha.connection&&(!tve_dash_front.recaptcha.connection||"v3"===tve_dash_front.recaptcha.connection.version)||(t.data("grecaptcha-render",!0),grecaptcha.render(this.id,{sitekey:tve_dash_front.recaptcha.site_key||t.attr("data-site-key"),theme:t.attr("data-theme"),type:t.attr("data-type"),size:e}))})}():setTimeout(t,50)},o=!1,s=tve_dash_front.recaptcha.connection&&"v3"===tve_dash_front.recaptcha.connection.version&&!tve_dash_front.recaptcha.connection.browsing_history?tve_dash_front.recaptcha.site_key:"explicit";window.tve_gapi_loaded||(ThriveGlobal.$j.getScript("https://www.google.com/recaptcha/api.js?render="+s,n),o=!0,window.tve_gapi_loaded=!0),o||n()}var c=ThriveGlobal.$j(".tve-fb-comments");c.length&&(ThriveGlobal.$j("#fb-root").length&&ThriveGlobal.$j("head").append('<div id="fb-root"></div>'),c.each(function(){var t=this.parentNode;""===this.getAttribute("data-href")&&(this.setAttribute("data-href",window.location.href.split("?")[0]),this.setAttribute("data-width","100%")),this.classList.add("fb-comments"),setTimeout(function(){FB.XFBML.parse(t)},200)}));var l=ThriveGlobal.$j(".thrv_disqus_comments #disqus_thread");l.length&&(window.disqus_shortname=l.attr("data-disqus_shortname"),""==l.attr("data-disqus_url")?window.disqus_url=window.location:window.disqus_url=l.attr("data-disqus_url"),window.disqus_identifier=window.disqus_url,"undefined"==typeof DISQUS&&ThriveGlobal.$j.getScript("//"+disqus_shortname+".disqus.com/embed.js"))}window.mejs&&ThriveGlobal.$j(".tcb-video-shortcode").not(".mejs-container").filter(function(){return!ThriveGlobal.$j(this).parent().hasClass(".mejs-mediaelement")}).mediaelementplayer(),this.resizePageSection(),setTimeout(function(){try{window.dispatchEvent(new Event("resize"))}catch(t){}}
5),this.playBackgroundYoutube(ThriveGlobal.$j("div.tcb-yt-bg:visible")),this.init_scroll(),this.initResize()},replaceDynamicContent:function(){var e=TCB_Front.detectBrowser();ThriveGlobal.$j(".tve-browser-data").text(Object.keys(e).filter(function(t){return e[t]&&"webkit"!==t}).toString())},resizePageSection:function(t){void 0===t&&(t=ThriveGlobal.$j(".tcb-window-width")),t.each(function(){var t=ThriveGlobal.$j(this),e=t.css("left");e="auto"===e?0:Number(t.css("left").replace("px","")),t.css({width:TCB_Front[tve_frontend_options.is_editor_page?"$body":"$window"].width()+"px",left:-t.offset().left+e+"px"})})},onSocialCustomClick:{wnd:function(t,e,i){var a=void 0!==window.screenLeft?window.screenLeft:screen.left,n=void 0!==window.screenTop?window.screenTop:screen.top,o=(window.innerWidth?window.innerWidth:document.documentElement.clientWidth?document.documentElement.clientWidth:screen.width)/2-e/2+a,r=(window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:screen.height)/2-i/2+n,s=window.open(t,"Thrive Share","scrollbars=yes,resizable=yes,toolbar=no,menubar=no,scrollbars=no,location=no,directories=no,width="+e+", height="+i+", top="+r+", left="+o);return window.focus&&s.focus(),s},fb_share:function(t){var e=t.data();if(e.href||(e.href=location.href),e.type&&"feed"!=e.type)this.wnd("https://www.facebook.com/sharer/sharer.php?u="+encodeURIComponent(e.href),650,500);else{var i="";e.name&&(i+="&title="+encodeURIComponent(e.name)),e.description&&(i+="&description="+encodeURIComponent(e.description)),e.href&&(i+="&u="+encodeURIComponent(e.href)),e.caption&&(i+="&caption="+encodeURIComponent(e.caption)),e.image&&(i+="&picture="+encodeURIComponent(e.image)),i="?"+i.substr(1),this.wnd("https://www.facebook.com/sharer.php"+i,650,500)}return!1},t_share:function(t){var e=t.data();e.href||(e.href=location.href),this.wnd("https://twitter.com/intent/tweet?url="+encodeURIComponent(e.href)+(e.tweet?"&text="+encodeURIComponent(e.tweet):"")+(e.via?"&via="+e.via:""),550,450)},in_share:function(t){var e=t.data();e.href||(e.href=location.href),this.wnd("https://www.linkedin.com/shareArticle?mini=true&url="+encodeURIComponent(e.href),550,400)},pin_share:function(t){var e=t.data();e.href||(e.href=location.href),this.wnd("https://pinterest.com/pin/create/button/?url="+encodeURIComponent(e.href)+(e.media?"&media="+encodeURIComponent(e.media):"")+(e.description?"&description="+encodeURIComponent(e.description):""),600,600)},xing_share:function(t){var e=t.data();e.href||(e.href=location.href),this.wnd("https://www.xing.com/spi/shares/new?url="+encodeURIComponent(e.href),600,500)}},getShareCounts:function(t,e,i){var a=(t=t||ThriveGlobal.$j("body")).find(".tve_social_items.tve_social_custom");if(a.length){var o={action:"tve_social_count",for:[]};if(void 0!==e?ThriveGlobal.$j.each(e,function(t,e){o[t]=e}):"undefined"!=typeof tve_path_params&&tve_path_params.post_id&&(o.post_id=tve_path_params.post_id),a.each(function(t){var e=ThriveGlobal.$j(this),i={};if(e.data("tve-social-counts")||!e.hasClass("tve_social_cb")&&"1"!==e.parent().attr("data-counts"))e.data("tve-social-counts",1);else{e.data("tve-social-counts",1);var a=e.prev(".tve_s_share_count"),n=e.children(".tve_s_item").each(function(){var t=ThriveGlobal.$j(this).addClass("tve_count_loading");i[t.attr("data-s")]=t.attr("data-href")});if(i.hasOwnProperty("t_share")&&1===n.length)return n.removeClass("tve_count_loading"),a.remove(),void e.parent().removeAttr("data-counts");o.for[t]=i}}),!o.for.length)return null;TCB_Front.total_share_counts={};var n=function(r){r&&r.counts&&r.totals&&a.each(function(t){var e=ThriveGlobal.$j(this),i=e.prev(".tve_s_share_count"),a=e.children(".tve_s_item");ThriveGlobal.$j.each(r.counts[t],function(t,e){a.filter(".tve_s_"+t).find(".tve_s_count").html(e.formatted)}),a.removeClass("tve_count_loading");var n=i.length?window.getComputedStyle(i[0]).display:"flex";if(r.totals&&r.totals[t]&&"1"===e.parent().attr("data-counts")){var o=parseInt(e.parent().attr("data-min_shares"));o=isNaN(o)?0:o,i.find(".tve_s_cnt").html(r.totals[t].formatted),parseInt(tve_frontend_options.is_editor_page)||(n=o<r.totals[t].value?"flex"===n?"flex":"inl
5ine-block":"none",i.css("display",n))}r.totals&&r.totals[t]&&(TCB_Front.total_share_counts[a.attr("data-href")]=r.totals[t])})};if(void 0!==i&&i)return[o,n];ThriveGlobal.$j.ajax({type:"post",xhrFields:{withCredentials:!0},url:tve_frontend_options.ajaxurl,data:o,dataType:"json"}).done(n)}},playBackgroundVoo:function(){ThriveGlobal.$j("iframe.tcb-voo-bg").each(function(t,e){!function t(){vooAPI(e.dataset.playerid,"onEnded",null,t),vooAPI(e.dataset.playerid,"play"),vooAPI(e.dataset.playerid,"volume",[0])}()})},changeVooOnPlay:function(){ThriveGlobal.$j("iframe.video-player-container").each(function(t,e){function i(){ThriveGlobal.$j(e).css("pointer-events",""),ThriveGlobal.$j(e).parent().find("#theImg").remove()}e.src?i():vooAPI(e.dataset.playerid,"onPlay",null,function(){i()})})},playBackgroundYoutube:function(t){if(t.length){var e=this;void 0!==window.YT&&window.YT.Player?this._playYTBackground(t):(window.onYouTubeIframeAPIReady=function(){e._playYTBackground(t)},ThriveGlobal.$j.ajax({url:"https://www.youtube.com/iframe_api",type:"get",crossDomain:!0,cache:!0,dataType:"script"}))}},_playYTBackground:function(t){t.each(function(){var t,e=this.getAttribute("data-yt-id");t=34===e.length?new YT.Player(this.id,{playerVars:{autoplay:1,cc_load_policy:0,controls:0,disablekb:1,fs:0,iv_load_policy:0,modestbranding:1,loop:1,playsinline:1,rel:0,showinfo:0,listType:"playlist",list:e},events:{onReady:function(t){t.target.mute()},onStateChange:function(t){t.target.mute()}}}):new YT.Player(this.id,{videoId:e,playerVars:{autoplay:1,cc_load_policy:0,controls:0,disablekb:1,fs:0,iv_load_policy:0,modestbranding:1,loop:1,playsinline:1,rel:0,showinfo:0,playlist:e},events:{onReady:function(t){t.target.mute(),t.target.playVideo()},onStateChange:function(t){t.target&&t.target.mute&&t.target.mute()}}}),ThriveGlobal.$j(t.getIframe()).data("tcb-yt-player",t)})},refreshBackgroundYoutube:function(){if(window.YT&&window.YT.Player){var e=this;ThriveGlobal.$j("iframe.tcb-yt-bg").each(function(){var t=ThriveGlobal.$j(this);t.data("tcb-yt-player")||e._playYTBackground(t)})}},remove_empty_symbols:function(t){t.find("div.thrv_symbol").each(function(){var t=jQuery(this),e=t.clone();t.closest(".tve-symbol-container").length||(e.find(".thrive-shortcode-config").remove(),""===e.html()&&jQuery(this).remove())})},toast:function(t,e,i){"string"!=typeof t&&(t=t.message||t.error||t.success);var a="checkmark",n="";(e=e||!1)&&(a="cross",n=" tve-toast-error"),jQuery("body").slideDown("fast",function(){jQuery("body").prepend('<div class="tvd-toast tve-fe-message"><div class="tve-toast-message"><div class="tve-toast-icon-container'+n+'"><span class="tve_tick thrv-svg-icon">'+TCB_Front.icons.get(a)+'</span></div><div class="tve-toast-message-container">'+t+"</div></div></div>")}),setTimeout(function(){jQuery(".tvd-toast").hide(),"function"==typeof i&&i()},3e3)},footer_styling:function(t){var e=0<arguments.length&&void 0!==t?t:TCB_Front.$body;if(!tve_frontend_options.is_editor_page){var i=ThriveGlobal.$j("#wpadminbar").height()||0,a=e.find(".thrv_footer"),n=a.parents("#tve_editor"),o=function(){var t=a.height();a.length&&0<e.height()&&(a.css({position:"",top:""}),n.css({"min-height":"","padding-bottom":"","box-sizing":""}),e.height()+i<document.documentElement.clientHeight&&(a.css({position:"absolute",bottom:0,"padding-bottom":0,"z-index":3}),n.css({"min-height":"calc( 100vh - "+t+"px ) ","padding-bottom":t,"box-sizing":"unset"}),e.css("overflow-x","visible")))};if("undefined"!=typeof ResizeObserver)new ResizeObserver(function(){o()}).observe(window.document.body);else o()}},header_styling:function(t){},windowWidth:function(){var e,i;try{e=(i=window.parent&&window.parent.TVE&&window.parent.TVE.main)&&window.parent.TVE.main.$frame.width()||this.$window[0].innerWidth}catch(t){e=this.$window[0].innerWidth,i=!1}var t=window.screen.width;return window.matchMedia("(orientation:landscape)").matches&&window.screen.height>t&&(t=window.screen.height),i||t+20<e&&e>window.outerWidth+20&&(e=t),e},buildFormParams:function(t){var n=[];return t.find(".tve_lg_input_container input:not([name=user_consent]), .tve_lg_input_container textarea").not("input[type=hidden]").not("input[type=password]").each(function(t,e){var i=ThriveGlobal.$j(e).serializeArray();if(i[0]){e.dataset.name&&(i[0].name=e.dataset.name),TCB_Front.reservedTerms.includes(i[0].name)&&(i[0].name="tve_"+i[0].name);var a=n.findIndex(function(t){return t.name===i[0].name});0<=a?n[a].value=n[a].value+", "+i[0].value:n=n.concat(i)}}),n},appendFormParamsToURL:function(t,e){return!Array.isArray(e)&&e.jquery&&(e=this.buildFormParams(e)),t+(t.split("?")[1]?"&":"?")+jQuery.param(e)},hasAdminBar:function(){return 0<ThriveGlobal.$j("#wpadminbar").length},init_scroll:i("./events/scroll"),initResize:i("./events/resize"),sticky:i("./util/sticky"),toc:i("./elements/toc"),fix_compat_issues:i("./util/compat"),reservedTerms:i("./util/reserved-terms"),init_typefocus:i("./util/typefocus"),menu:i("./util/menu"),dynamicElements:i("./util/dynamic-elements"),divider:i("./util/divider"),header:i("./util/header"),queryString:i("./util/query-string"),smartComplete:i("./util/smartcomplete"),floating:i("./util/floating"),wo
5ocommerce:i("./woo/main")(ThriveGlobal.$j,window),FileUpload:i("./util/file-upload"),Countdown:i("./elements/countdown"),initSocial:i("./util/social-share"),icons:i("./util/svg-icons")}),TVE_jQFn.tve_front_tw_qs=function(){return this.each(function(){var i=ThriveGlobal.$j(this);if(i.data("tve_front_tw_qs_done"))return this;i.data("tve_front_tw_qs_done",!0),i.click(function(){window.open(t(),"_blank")});var t=function(){var t=i.attr("data-use_custom_url")&&i.attr("data-custom_url")?i.attr("data-custom_url"):window.location.href,e=i.data("url")+"?text="+encodeURIComponent(i.find("p").text())+"&url="+encodeURIComponent(t);return 0<i.data("via").length&&(e+="&via="+i.data("via")),e}})},TVE_jQFn.tve_pricing_table=function(){function e(t){t.stopPropagation(),t.preventDefault();var e=ThriveGlobal.$j(this),i=e.closest(".thrv-pricing-table");i.find(".tcb-active-state").removeClass("tcb-active-state"),i.find(".tcb-pricing-table-box-container").addClass("tcb-permanently-hidden"),e.addClass("tcb-active-state"),i.find('.tcb-pricing-table-box-container[data-instance="'+e.attr("data-instance")+'"]').removeClass("tcb-permanently-hidden")}return this.each(function(){var t=ThriveGlobal.$j(this);!function(t){t.off("click.thrv-button-group-item").on("click.thrv-button-group-item",".thrv-button-group-item",e)}(t.find(".thrv-button-group")),t.find('.thrv-button-group-item[data-default="true"]').click()})},TVE_jQFn.tve_front_lead_generation=function(){var F=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return window.TCB_PAGE_INDEX=window.TCB_PAGE_INDEX||1,this.each(function(){var u=ThriveGlobal.$j(this),y=u.find("form"),t=y.find(".tve-f-a-hidden").val();if(0==y.length&&(u.find(".thrv_lead_generation_container").wrapInner('<form method="post"></form>'),y=u.find("form")),y.find(".tve_lg_textarea.tve-lg-show-counter textarea").off("input.textarea").on("input.textarea",function(){var t=ThriveGlobal.$j(this),e=t.val().length,i=Number(t.attr("maxlength")),a=Number(t.attr("data-min")),n=t.next().find(".tve-fill-text-dynamic");n.text(i?"".concat(e," of ").concat(i):e),n.toggleClass("tve-counter-error",!!(e&&a&&e<a))}),y.find('input[type="checkbox"],input[type="radio"]').each(function(){if(!this.id)return!0;ThriveGlobal.$j("#"+this.id).not(this).length&&(this.id=this.id+"-"+window.TCB_PAGE_INDEX++,ThriveGlobal.$j(this).next("label").attr("for",this.id))}),void 0!==t&&"#"==y.attr("action")&&y.attr("action",t),u.data("tve_lg_done"))return this;if(u.data("tve_lg_done",!0),void 0!==window.SegMet&&SegMet&&-1!==y[0].action.indexOf("infusionsoft")&&!y.data("tve-segmet-submit")){y.data("tve-segmet-submit",1);var e=y[0].submit;y[0].submit=function(){return y.data("tve-segmet-submitted")?e.call(y[0]):(y.data("tve-segmet-submitted",1),y.submit())}}function w(t,e){var i=ThriveGlobal.$j.extend({success:"Success!",error:"Error!"},e),a=y.find("#_form_type").val(),n=y.find("input[name=name]").val()?y.find("input[name=name]").val():"",o=y.find("input[name=email]").val();if(t){y.parents(".tl-style").first().find(".tve_p_lb_close").trigger("click");var r=ThriveGlobal.$j.Event("leads_messages.tcb");y.trigger(r),"lead_generation"==a&&(y.find("input").val(""),y.parents(".tve_p_lb_content").find(".tve_p_lb_close").click()),i.success=i.success.replace("[lead_email]",o),i.success=i.success.replace("[lead_name]",n),jQuery("body").slideDown("fast",function(){jQuery("body").prepend('<div class="tvd-toast tve-fe-message"><div class="tve-toast-message"><div class="tve-toast-icon-container"><span class="tve_tick thrv-svg-icon">'+TCB_Front.icons.get("checkmark")+'</span></div><div class="tve-toast-message-container">'+i.success+"</div></div></div>")}),setTimeout(function(){jQuery(".tvd-toast").hide()},6e3)}else{var s=y.parent(),c=s.parent(),l=c.find(".tve-error-wrapper");1==y.find("#_error_message_option").val()?(s.hide(),0==l.length?(c.append('<div class="tve-error-wrapper"><div class="tve-error-content"></div><button class="tve-close-error-message">Retry</button></div>'),i.error=i.error.replace("[lead_email]",o),i.error=i.error.replace("[lead_name]",n),c.find(".tve-error-content").append(i.error)):c.find(".tve-error-wrapper").show()):location.reload()}y.tve_form_loading(!0)}var C={errClass:"tve-lg-error",errClassMultiple:"tve-lg-error-multiple",init:function(){this.container=ThriveGlobal.$j("#tve-lg-error-container"),this.container.length||(this.container=ThriveGlobal.$j('<div id="tve-lg-error-container"></div>').appendTo("body"),this.container.on("click",".tve-lg-err-close",ThriveGlobal.$j.proxy(this.close,this))),this.container.empty().hide(),this.clear()},close:function(){this.container.fadeOut(200);var t=y.find("."+this.errClass);return t.length||(t=y.find("input,select,textarea")),t.first().focus(),!1},clear:function(){y.find("input,select,textarea").removeClass(this.errClass),y.find('[class^="tve_lg_"]').removeClass(this.errClassMultiple+" "+this.errClass),"function"==typeof F.clearErrors&&F.clearErrors.apply(this,arguments)}
5,markApiError:function(t,e,i){var a=1<arguments.length&&void 0!==e?e:ThriveGlobal.$j(),n=2<arguments.length&&void 0!==i?i:"";return"function"==typeof F.renderError?F.renderError(a,t,n):this.container.append('<div class="tve-lg-err-item tve-lg-ext-err">'+t+"</div>"),this},_markError:function(t,e,i){if("function"==typeof F.renderError)return F.renderError.call(this,t,e,i);if(t){var a=t.parent();a.removeClass("tcb-permanently-hidden"),a.closest("form").find('[data-label-for="'.concat(a.attr("data-label"),'"]')).removeClass("tcb-permanently-hidden"),t.addClass(this.errClass);var n=t.attr("data-field")?t.attr("data-field").replace("mapping_",""):t.attr("type");"gdpr"===n&&(n="checkbox"),["radio","checkbox"].includes(n)?t.closest(".tve_lg_"+n).addClass(this.errClassMultiple):"select"===n&&t.closest(".tve_lg_dropdown").addClass(this.errClass)}"required"===i&&this.container.find(".tve-lg-required").length||this.container.append('<div class="tve-lg-err-item tve-lg-'+i+'">'+e+"</div>")},show:function(){if("function"!=typeof F.renderError){this.container.append('<a href="javascript:void(0)" class="tve-lg-err-close" title="Close"><span class="thrv-icon thrv-svg-icon">'+TCB_Front.icons.get("cross")+"</span></a>");var n=this;setTimeout(function(){var t=y.offset(),e=parseInt(y.css("margin-top")),i=parseInt(y.css("margin-left")),a=t.top-10-n.container.outerHeight(!0)-(isNaN(e)?0:e);y.parents(".thrv-ribbon").length&&("bottom"==y.parents(".tve-leads-ribbon").attr("data-position")?a+=7:a=t.top+y.outerHeight()),n.container.css({top:a+"px",left:t.left-(isNaN(i)?0:i),width:y.outerWidth()}).fadeIn(200)},50)}},phone:function(t,e){return!0},required:function(t,e){var i=!0,a="required";if("radio"===t.attr("type"))i=ThriveGlobal.$j('input[name="'+t.attr("name")+'"]').is(":checked");else if("checkbox"===t.attr("type"))i=ThriveGlobal.$j('input[name="'+t.attr("name")+'"]').is(":checked");else if(t.is("textarea[data-min]")){var n=ThriveGlobal.$j.trim(t.val()).length;!(i=n>=t.attr("data-min"))&&n&&(a="min-chars",e=tve_frontend_options.translations.min_chars.replace("%s",t.attr("data-min")))}else{var o=t.attr("value")?t.attr("value"):t.val();i=0<ThriveGlobal.$j.trim(o).length}return!!i||(this._markError(t,e,a),!1)},password:function(t,e){var i=!0;return t.val()||1!==t.data("required")||(i=!1),!!i||(this._markError(t,e,"password"),!1)},mismatch:function(t,e){var i=!0;return t.password&&t.password.val()!==t.confirm_password.val()&&(i=!1),!!i||(this._markError(t.confirm_password,e,"passwordmismatch"),!1)},email:function(t,e){return!!/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(t.val())||(this._markError(t,e,"email"),!1)},getErrors:function(t){try{return JSON.parse(t.find(".tve-lg-err-msg").val())}catch(t){return{file_extension:"Sorry, {fileextension} files are not allowed",file_size:"{file} exceeds the maximum file size of {filelimit}",required:"Please fill in all of the required fields",phone:"The phone number is not valid",email:"The email address is not valid"}}}},T=new TCB_Front.FileUpload(u),f=function(t){return t&&0<t.length?t+",":""},k=function(){var n="";return"true"===y.find(".tve_lg_radio").attr("data-answer-tag")?y.find(".tve_lg_radio input[type=radio]").each(function(t,e){if(e.checked)if(e.attributes["data-custom-tag"]){var i=e.attributes["data-custom-tag"].value;n=0<n.length?n+","+i:i}else{var a=e.value;n=0<n.length?n+","+a:a}}):y.find(".tve_lg_radio input[type=radio]").each(function(t,e){e.checked&&e.attributes["data-custom-tag"]&&(n=e.attributes["data-custom-tag"].value)}),n},$=function(){var n="";return"true"===y.find(".tve_lg_checkbox:not(.tcb-lg-consent)").attr("data-answer-tag")?y.find(".tve_lg_checkbox input[type=checkbox]").each(function(t,e){if(e.checked)if(e.attributes["data-custom-tag"]){var i=e.attributes["data-custom-tag"].value;n=0<n.length?n+","+i:i}else{var a=e.value;n=0<n.length?n+","+a:a}}):y.find(".tve_lg_checkbox input[type=checkbox]").each(function(t,e){if(e.checked&&e.attributes["data-custom-tag"]){var i=e.attributes["data-custom-tag"].value;n=0<n.length?n+","+i:i}}),n},x=function(){var t=y.find(".tve_lg_dropdown"),e=t.find(".tve-lg-dropdown-option.tve-state-active");return"true"===t.attr("data-answer-tag")?e.attr("data-custom-tag")?0<e.length?e.attr("data-custom-tag"):"":0<e.length?e.attr("data-value"):"":0<e.length?e.attr("data-custom-tag"):""},j=function(a){["activecampaign","aweber","convertkit","drip","klicktipp","mailchimp","
5sendlane","zapier"].forEach(function(t){var e=y.find("input[type=hidden]#".concat(t,"_tags")),i=0<e.length?e.attr("value"):"";e.length&&(0===i.length&&","===a.slice(-1)&&(a=a.slice(0,-1)),i=a.replace(/['"`\\]/g,"")+i,e.attr("value",i))})};u.data("form-target")&&u.data("form-target").length&&u.find("form").attr("target",u.data("form-target")),function(){var t=TCB_Front.queryString.get("affiliate");if(t){var e=ThriveGlobal.$j("<input/>");e.attr("type","hidden").attr("name","tve_affiliate").val(t),y.append(e)}}(),u.find(".tve-lg-err-msg").length&&function(){y.find(".tve_submit_container .thrv_icon").click(function(){y.submit()}),y.find(".tve-form-button .tve-form-button-submit").click(function(t){return t.preventDefault(),t.stopPropagation(),y.submit(),!1});function a(p,t,e){if(y.data("tve-force-submit"))return!0;var i=y.find(".consent-config");i.length&&!i.attr("value")&&"none"!==y.find(".tcb-lg-consent").css("display")&&y.find('[name="user_consent"]').attr("data-required",1);var n=!0,a=ThriveGlobal.$j(t),o={};C.init(),a.find("input, select, textarea").each(function(){var t=ThriveGlobal.$j(this),e=t.data("validation"),i=parseInt(this.dataset.required),a=t.data("iphone-placeholder");""!==a&&t.val()===a&&t.val(""),"password"==t.attr("type")&&(o[t.attr("name")]=t),1===i&&(C.required(t,b.required)||(n=!1)),void 0!==e&&"none"!==e&&C[e]&&(C[e](t,b[e])||(n=!1))});var r=a.find('textarea[name="g-recaptcha-response"]');0<r.length&&(r.first().val()||(C.markApiError("Please validate captcha form",a.find(".tve-captcha-container"),"captcha"),setTimeout(function(){ThriveGlobal.$j("#tve-lg-error-container").fadeOut("slow")},5e3),n=!1)),2==Object.keys(o).length&&(C.mismatch(o,b.passwordmismatch)||(n=!1));var s=T.isValid();if(!0!==s&&(n=!1,C.markApiError(s,T.$el,"upload")),!n)return C.show(),y.find("."+C.errClass).first().focus(),!1;if("function"==typeof F.showFormLoader?F.showFormLoader():y.tve_form_loading(),"api"===y.parents(".thrv_lead_generation").attr("data-connection")||y.parents(".tcb-registration-form").length){var v=y.find("#_autofill").val(),g=v?y.find("input").not("input[type=hidden],input[type=password]").serializeArray():"";if(u.attr("data-settings-id")||function(){var t=k(),e=$(),i=x(),a=f(t)+f(e)+f(i);a.length&&j(a)}(),"function"==typeof F.submitHandler)return F.submitHandler.call(null,p,{uploader:T,autofillValues:g,token:e});var m={};jQuery.each(y.serializeArray(),function(t,e){m[e.name]=e.value});var c=y.serialize()+"&action=tve_api_form_submit&url="+encodeURIComponent(location.href),_=y.find("#_submit_option").val();c+="&_tcb_id="+(u.attr("data-settings-id")||"")+"&tcb_token="+(10*Date.now()).toString(32);var l=ThriveGlobal.$j.Event("form_conversion.tcb");return y.trigger(l),l.post_data&&(c+="&"+ThriveGlobal.$j.param(l.post_data)),tve_frontend_options.post_id&&(c+="&post_id="+tve_frontend_options.post_id),e&&(c+="&g-recaptcha-response="+e),c=T.appendExtraData(c),ThriveGlobal.$j.ajax({type:"post",x
5hrFields:{withCredentials:!0},url:tve_frontend_options.ajaxurl,dataType:"json",data:c}).fail(function(){C.markApiError("An error occurred while submitting your data. Please try again").show(),y.tve_form_loading(!0)}).done(function(t){T.clear(),y.find('input[type="password"]').trigger("keyup");try{var e=t.form_messages||{},i="";if(t.redirect&&(i=t.redirect,delete t.redirect),delete t.form_messages,t.variation){t.variation;delete t.variation}if(t.back_url){var a=t.back_url;delete t.back_url}var n=0<Object.keys(t).length&&!t.error;if(t.wordpress&&!0!==t.wordpress)return TCB_Front.toast(t.wordpress,!0),void y.tve_form_loading(!0);if(t.error){if("captcha"===t.field){var o=b.recaptcha||t.error;C.markApiError(o).show(),y.tve_form_loading(!0)}else w(n,e);return p.preventDefault(),!1}}catch(t){console.log(t)}var r=ThriveGlobal.$j.Event("lead_conversion_success.tcb",{form_data:m});if(y.trigger(r),r.content_unlocked&&"message"!==_&&"state"!==_)return p.preventDefault(),!1;var s=y.find("#_error_message_option").val();if(_&&("reload"!==_||!n&&1==s)){if("redirect"===_){var c=y.find("#_back_url").val();if(c=tve_add_http(c),v&&g&&!function(t){function e(t){return t.replace("http://","").replace("https://","").split("/")[0]}return e(location.href)!==e(t)}(c)&&TCB_Front.setCookie("account_create_fields",JSON.stringify(g),{path:"/"}),"1"===y.find("#_sendParams").val()&&(c=TCB_Front.appendFormParamsToURL(c,y)),c&&TCB_Front.isValidUrl(c)&&(n||1!=s))return void(location.href=c)}else{if("state"===_&&n){var l=TL_Front.parent_state,d=y.find(".tve-switch-state-trigger"),h=-1!==d.attr("data-tcb-events").indexOf("tl_state_lightbox"),u=0<y.parents(".tve_post_lightbox").length;if(d.trigger("click"),y.tve_form_loading(!0),h)if(u)l&&(TL_Front.close_form(l),delete TL_Front.parent_state);else{var f=ThriveGlobal.$j.Event("leads_messages.tcb");f.lightbox_state=!0,y.trigger(f)}return void(TL_Front.parent_state&&(y.parents(".tl-style").first().find(".tve_p_lb_close").trigger("click"),delete TL_Front.parent_state))}if("klicktipp-redirect"==_&&n){if(i&&TCB_Front.isValidUrl(i))return void(location.href=i)}else if("page"==_&&n&&a&&TCB_Front.isValidUrl(a))return void(location.href=a)}return ThriveGlobal.$j(".tve_p_lb_background.tve_lb_open .tve_p_lb_close").click(),y.find(".tve-state-expanded").removeClass("tve-state-expanded"),y.find(".tve_lg_dropdown").each(function(){var t=ThriveGlobal.$j(this),e=t.attr("data-show-placeholder"),i=t.find('[data-default="1"]'),a=i.length?i:t.find(".tve-lg-dropdown-option").first(),n=t.find("input");e?(t.find(".tve-lg-dropdown-trigger .tve-disabled-text-inner").html(n.attr("data-placeholder")),n.removeAttr("value")):(t.find(".tve-lg-dropdown-trigger .tve-disabled-text-inner").html(a.text()),n.attr("value",a.attr("data-value")))}),w(n,e),y[0].reset(),y.find("textarea").trigger("input"),y.find('input[type="radio"][data-default="1"], input[type="checkbox"][data-default="1"] ').attr("checked","checked").closest(".tve_lg_radio_wrapper, .tve_lg_checkbox_wrapper").addClass("tve-state-expanded"),TCB_Front.smartComplete.handleSmartComplete(y),!0}location.reload()}).always(function(){"undefined"!=typeof grecaptcha&&"function"==typeof grecaptcha.reset&&(!tve_dash_front.recaptcha.connection||tve_dash_front.recaptcha.connection&&"v3"!==tve_dash_front.recaptcha.connection.version)&&grecaptcha.reset()}),p.stopPropagation(),!1}var d,h=ThriveGlobal.$j.Event("should_submit_form.tcb");return y.trigger(h),"1"!==y.find("input#_asset_option").val()&&!h.flag_need_data||(c=y.serialize()+"&action=tve_custom_form_submit&email="+function(t){if(t.find('[data-validation="email"]').length)return t.find('[data-validation="email"]').val();var e="";return t.find("input").each(function(){if(this.name&&this.name.match(/email/i))return e=this.value,!1}),e}(y)+"&name="+(d=!1,y.find("input").each(function(){var t=ThriveGlobal.$j(this),e=t.attr("placeholder"),i=t.attr("name");if(e&&-1!==e.toLowerCase().indexOf("name")||i&&-1!==i.toLowerCase().indexOf("name"))return d=t,!1}),!1!==d?d.val():""),l=ThriveGlobal.$j.Event("form_conversion.tcb"),y.trigger(l),l.post_data&&(c+="&"+ThriveGlobal.$j.param(l.post_data)),tve_frontend_options.post_id&&(c+="&post_id="+tve_frontend_options.post_id),ThriveGlobal.$j.ajax({type:"post",x
5hrFields:{withCredentials:!0},url:tve_frontend_options.ajaxurl,data:c}).always(function(t){y.find("input,select,textarea").removeAttr("disabled"),y.find(".tve-form-button").removeClass("tar-disabled"),y.data("tve-force-submit",!0).submit()}),!1)}var b=C.getErrors(u);y.submit(function(e){var i=this;return ThriveGlobal.$j(this).find(".tve-captcha-container").length&&tve_dash_front.recaptcha.connection&&"v3"===tve_dash_front.recaptcha.connection.version?(grecaptcha.ready(function(){grecaptcha.execute(tve_dash_front.recaptcha.site_key,{action:"submit"}).then(function(t){a(e,i,t)})}),!1):a(e,i)})}()})},TVE_jQFn.tve_form_loading=function(t){var e=this,i=e.find("[type=submit]").parent(),a=e.find(".tcb-form-loader");return void 0!==t&&t?(a.fadeOut(),e.find("input,select,textarea").removeAttr("disabled"),i.find("button").fadeIn(),e.find(".tve-form-button .tve-form-button-submit").fadeIn(),i.find(".thrv_icon").fadeIn()):(a.length||(a=ThriveGlobal.$j('<div class="tcb-form-loader"><span class="tcb-form-loader-icon thrv-svg-icon">'+TCB_Front.icons.get("spinner9")+"</span></div>").appendTo(i),i.css({position:"relative",width:i.width()+"px",height:i.height()+"px"})),i.find("button").hide(),e.find(".tve-form-button .tve-form-button-submit").hide(),i.find(".thrv_icon").hide(),a.show()),this},TVE_jQFn.thrive_tcb_timer=function(){return this.each(function(){var t,n=ThriveGlobal.$j(this),e=new Date,i=new Date(n.attr("data-date")+"T"+n.attr("data-hour")+":"+n.attr("data-min")+":"+(n.attr("data-sec")||"00")+n.attr("data-timezone")),o=0,r=0,s=0,c=0,l=2,a=n.attr("data-text"),d=n.hasClass("thrv-countdown_timer_evergreen")||n.hasClass("tve_countdown_timer_evergreen"),h=n.attr("data-norestart"),u=parseInt(n.attr("data-day")),f=parseInt(n.attr("data-hour")),p=parseInt(n.attr("data-min")),v=parseInt(n.attr("data-sec"));if(n.data("tcb_timer_done"))return this;if(n.data("tcb_timer_done",!0),d){i=new Date;var g=TCB_Front.getCookie(n.attr("data-id"));if(g){g=g.split("-");var m=new Date(g[0],g[1]-1,g[2],g[3],g[4],g[5]);i.setTime(m)}else{i.setTime(e.getTime()+24*u*3600*1e3+3600*f*1e3+60*p*1e3+1e3*v);var _=i.getFullYear()+"-"+(i.getMonth()+1)+"-"+i.getDate()+"-"+i.getHours()+"-"+i.getMinutes()+"-"+i.getSeconds(),b=new Date("2034-01-01");if(!parseInt(h)){var y=new Date(i.getTime());b=y.setDate(i.getDate()+parseInt(n.attr("data-expday"))),b=y.setHours(i.getHours()+parseInt(n.attr("data-exphour"))),b=new Date(b)}TCB_Front.setCookie(n.attr("data-id"),_,{expires:b})}}function w(){setTimeout(function(){n.find(".tve_t_day .t-digits").css("min-width",n.find(".tve_t_sec .t-digits > span").outerWidth()*l+"px")},10)}n.parents(".thrv_content_reveal").on("tve-content-revealed",w),n.parents(".tve_p_lb_content").on("tve.before-lightbox-open",w);function C(t,e){if(t.html()==e)return t;t.removeClass("next");var i=t.clone().removeClass("go-down").addClass("next").html(e);return t.before(i).next(".go-down").remove(),t.addClass("go-down"),setTimeout(function(){i.addClass("go-down")},20),t}function T(t,e,i){void 0===i&&(i=!1);var a=0;if(e<=99)C(t.find(".part-1").first(),e%10),C(t.find(".part-2").first(),Math.floor(e/10)),a=2;else for(;e;)a++,C(t.find(".part-"+a).first(),e%10),e=Math.floor(e/10);if(!1!==i&&a<i)for(var n=a+1;n<=i;n++)C(t.find(".part-"+n).first(),0)}var k=function(){n.addClass("tve_cd_expired"),n.find(".t-digits span").html("0"),a&&(n.find(".tve_t_part").addClass("ct_finished"),n.find(".tve_t_text").html(a).fadeIn(200));var t=ThriveGlobal.$j.Event("tve.countdown-finished");n.trigger(t),setTimeout(function(){n.find(".t-digits span:not(.ct-d-placeholder)").hide()},100)},$=function(){e=new Date,c=Math.floor((i.getTime()-e.getTime())/1e3),s=Math.floor(c/60),c%=60,r=Math.floor(s/60),s%=60,o=Math.floor(r/24),r%=24,99<o&&(l=o.toString().length)};!d&&i<=e?k():($(),function(){function t(t,e){return ThriveGlobal.$j('<span class="part-p ct-d-placeholder"> </span><span class="part-'+t+'">'+e+"</span>")}n.find(".tve_t_sec .t-digits").empty().append(t(2,Math.floor(c/10))).append(t(1,c%10)),n.find(".tve_t_min .t-digits").empty().append(t(2,Math.floor(s/10))).append(t(1,s%10)),n.find(".tve_t_hour .t-digits").empty().append(t(2,Math.floor(r/10))).append(t(1,r%10));for(var e=n.find(".tve_t_day .t-digits").empty(),i=o,a=1;a<=l;a++)e.append(t(a,i%10)),i=Math.floor(i/10);e.css("min-width","")}(),n.addClass("init_done"),t=setInterval(function(){$(),T(n.find(".tve_t_sec .t-digits"),c),T(n.find(".tve_t_min .t-digits"),s),T(n.find(".tve_t_hour .t-digits"),r),T(n.find(".tve_t_day .t-digits"),o,l),o<=0&&r<=0&&s<=0&&c<=0&&(o=r=s=c=0,clearInterval(t),k())},1e3)),d&&i<=e&&(clearInterval(t),k())})},TVE_jQFn.thrive_iphone_placeholder=function(){if(!0===(/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream))return this.each(function(){var t=ThriveGlobal.$j(this),e=t.attr("placeholder");return t.data("tcb-autofill")||"password"===t.attr("type")||"hidden"===this.type||"checkbox"===this.type||"radio"===this.type?this:t.data("iphone-placeholder")?this:(t.attr("placeholder","").val(e),void t.on("focus",function(){t.val()===e&&t.val("")}
5).on("blur",function(){""===t.val()&&t.val(e)}).data("iphone-placeholder",e))})},"undefined"!=typeof ThriveGlobal&&(TCB_Front.$window=ThriveGlobal.$j(window),TCB_Front.$document=ThriveGlobal.$j(document),TCB_Front.$body=ThriveGlobal.$j("body"),TCB_Front.browser=TCB_Front.detectBrowser(),TCB_Front.$document.ready(function(){setTimeout(function(){var t=ThriveGlobal.$j(tve_frontend_options.is_editor_page?"#tve_editor":"body");if("undefined"!=typeof TVE&&"function"==typeof TVE.apply_filters&&(t=TVE.apply_filters("editor_wrapper",t)),TCB_Front.handleIframes(t,!0),t.on("click",".tve_scT > ul li",function(t){var e=ThriveGlobal.$j(this);e.hasClass("tve_tab_title_item")&&tve_frontend_options.is_editor_page&&!e.closest(".tve-prevent-content-edit").length||e.tcbTabsToggle()}),t.off("click.tvetoggleelemold").on("click.tvetoggleelemold",".thrv_toggle_shortcode .tve_faqB",function(){var t=ThriveGlobal.$j(this).closest(".tve_faq"),e=ThriveGlobal.$j(this),i=ThriveGlobal.$j(e).siblings(".tve_faqC");i.is(":visible")?(TCB_Front.handleIframes(i,!1),i.find("video").each(function(){ThriveGlobal.$j(this)[0].pause()}),i.slideUp("fast",function(){i.trigger("lbresize")}),t.removeClass("tve_oFaq"),t.find(".tve_toggle").first().removeClass("tve_toggle_open"),t.find("h4").first().removeClass("tve_toggle_open_text")):(TCB_Front.handleIframes(i,!0),i.slideDown("fast",function(){i.trigger("lbresize")}),TCB_Front.postGridLayout(),TCB_Front.changeAutoplayVideo(i),t.addClass("tve_oFaq"),t.find(".tve_toggle").first().addClass("tve_toggle_open"),t.find("h4").first().addClass("tve_toggle_open_text"))}).on("click",".thrv_social_custom .tve_s_link",function(){var t=ThriveGlobal.$j(this).parents(".tve_s_item"),e=t.attr("data-s");tve_frontend_options.is_editor_page||TCB_Front.onSocialCustomClick[e]&&TCB_Front.onSocialCustomClick[e](t)}),t.off("click.tvetoggleelem").on("click.tvetoggleelem",".thrv_toggle:not(.toggle-edit-mode) .thrv_toggle_title",function(t){var e=ThriveGlobal.$j(this),i=e.closest(".thrv_toggle");!e.hasClass("tve-state-expanded")&&i.hasClass("tve-toggle-auto-collapse")&&i.find(".thrv_toggle_title").tcbToggle("hide"),e.tcbToggle()}),t.off("change.inputradio").on("change.inputradio",".tve_lg_radio_wrapper input",function(t){var e=ThriveGlobal.$j(this).closest(".tve_lg_radio_wrapper");e.siblings(".tve-state-expanded").removeClass("tve-state-expanded"),e.addClass("tve-state-expanded")}),t.off("change.inputcheckbox").on("change.inputcheckbox",".tve_lg_checkbox_wrapper input",function(t){var e=ThriveGlobal.$j(this);e.closest(".tve_lg_checkbox_wrapper").toggleClass("tve-state-expanded",e.prop("checked"))}),t.off("click.tvetoc").on("click.tvetoc",".tve-toc-expandable .tve-toc-title, .tve-toc-expandable .tve-toc-title *",function(t){var e=ThriveGlobal.$j(this).closest(".tve-toc-title");tve_frontend_options.is_editor_page&&!e.hasClass("tve-prevent-content-edit")||(e.tocToggle(e.hasClass("tve-state-expanded")?"show":"hide"),t.preventDefault(),t.stopPropagation())}),TCB_Front.PostList=i("./util/post-list"),TCB_Front.Pagination=i("./util/pagination"),!tve_frontend_options.is_editor_page){ThriveGlobal.$j(".tve-lg-dropdown-trigger").each(function(){ThriveGlobal.$j(this).attr("tabindex",-1).removeAttr("href").siblings("input").attr("style","position: absolute; opacity: 0;").attr("autocomplete","off")});var n="",o=function(){n="",ThriveGlobal.$j(".tve-lg-dropdown-option.tve-state-hover").removeClass("tve-state-hover")};t.off("mousedown.dropdownclick").on("mousedown.dropdownclick",".tve_lg_dropdown",function(t){if(t.stopPropagation(),t.preventDefault(),t.target.classList.contains("tve-lg-dropdown-list"))return!1;var e=ThriveGlobal.$j(this).closest(".tve_lg_dropdown");e.toggleClass("tve-state-expanded"),e.find("input").focus()}).off("blur.dropdownblur").on("blur.dropdownblur",".tve_lg_dropdown input",function(t){t.stopPropagation(),t.preventDefault(),o(),this.closest(".tve_lg_dropdown").classList.remove("tve-state-expanded")}).off("keydown.dropdownkeypress").on("keydown.dropdownkeypress",".tve_lg_dropdown input",function(t){var e=ThriveGlobal.$j(this).closest(".tve_lg_dropdown"),i=e.find(".tve-state-active");switch(9!==t.keyCode&&(t.stopPropagation(),t.preventDefault()),t.keyCode){case 13:e.toggleClass("tve-state-expanded"),o();break;case 38:0===i.length?r(e.find(".tve-lg-dropdown-option").last(),e):i.prev().length&&r(i.prev(),e),o();break;case 40:0===i.length?r(e.find(".tve-lg-dropdown-option").first(),e):i.next().length&&r(i.next(),e),o();break;case 27:e.removeClass("tve-state-expanded"),o();break;case 8:o();break;default:n+=String.fromCharCode(t.keyCode).toLowerCase(),ThriveGlobal.$j(".tve-lg-dropdown-option.tve-state-hover").removeClass("tve-state-hover");var a=e.find(".tve-lg-dropdown-option").filter(function(t){return this.dataset.value.toLowerCase().startsWith(n)}).first();if(a.length)ThriveGlobal.$j(".tve-lg-dropdown-list").animate({scrollTop:a.prevAll().length*a.outerHeight()},500),a.addClass("tve-state-hover")}}),t.off("mousedown.dropdownoptionclick").on("mousedown.dropdownoptionclick",".tve-lg-dropdown-option",function(t){t.stopPropagation(),t.preventDefault();var e=ThriveGlobal.$j(this),i=e.closest(".tve_lg_dropdown");r(e,i),i.removeClass("tve-state-expanded")});var r=function(t,e){e.find(".tve-lg-dropdown-trigger").find(".tve-disabled-text-inner").html(t.text()),e.find("input").attr("value",t.attr("data-value")).val(t.attr("data-value")),e.find(".tve-state-active").removeClass("tve-state-active"),t.addClass("tve-state-active")};t.on("click",".thrv_contents_table a",function(t){var e=this;try{var i=ThriveGlobal.$j(this.getAttribute("href"));if(i.length)return ThriveGlobal.$j("html, body").animate({scrollTop:i.offset().top-130},200),setTimeout(function(){location.href=e.getAttribute("href")},200),!1}catch(t){console.warn("ToC exception",t)}}),"undefined"!=typeof TVE_Event_Manager_Registered_Callbacks&&(TCB_Front.event_triggers(t),tve_frontend_options.page_events&&ThriveGlobal.$j.each(tve_frontend_options.page_events,function(t,a){TVE_Event_Manager_Registered_Callbacks[a.a]&&TCB_Front.$document.on("tve-page-event-"+a.t,function(t,e){var i=!0;return"timer"===a.t&&e&&a.config&&a.config.t_delay!==e&&(i=!1),!!i&&TVE_Event_Manager_Registered_Callbacks[a.a].call(document,a.t,a.a,a.config?a.config:{})})})),ThriveGlobal.$j(".tcb-post-list").each(function(){new TCB_Front.PostList(ThriveGlobal.$j(this)).renderPagination()}),TCB_Front.addResizeCallback(TCB_Front.postGridLayout)}"undefined"==typeof ThriveApp&&(TCB_Front.pageSectionHeight(),TCB_Front.addResizeCallback(TCB_Front.pageSectionHeight)),TCB_Front.addResizeCallback(TCB_Front.resizePageSection),TCB_Front.onDOMReady(),TCB_Front.tableSort(ThriveGlobal.$j(".tve_make_sortable tr:last-child th")),TCB_Front.woocommerce.Main.init()})})),TVE_jQFn.tve_contact_form=function(){var i="tcb-cf-error";function c(t,e,i){this.default_response={success:!0,data:{errors:["Something went wrong. Please try again later!"]}},this.$form=t,this.config=e,this.isZapier=i,this.validator=new a(this.$form,e),this.fail=function(){TCB_Front.toast(this.default_response.data.errors[0],!0)},this.done=function(t){var e=ThriveGlobal.$j.extend({},this.default_response,t);"function"!=typeof this[this.config.submit.action+"_action"]||this.isZapier||this[this.config.submit.action+"_action"](e),i&&this.notification_action(e),this.$form[0].reset()},this.notification_action=function(t){TCB_Front.toast(!0===t.success?this.config.submit.notification:t.data.errors[0],!t.success,ThriveGlobal.$j.proxy(function(){this.$form.find("button").removeAttr("disabled"),this.$form.find(".tve-form-button").removeClass("tar-disabled"),this.try_close_parent()},this))},this.redirect_action=function(t){if(!0===t.success)return window.location=this.config.submit.url},this.reload_action=function(t){window.location.reload()},this.try_close_parent=function(){this.$form.closest(".tve-leads-conversion-object, .tve_p_lb_inner, .tve-ult-design").find(".tve_ea_thrive_leads_form_close, .tve_ea_close_lightbox, .tve-ult-bar-close").click()}}function r(){var e=[];this.length=0,this.add=function(t){if(!(t.input&&t.input instanceof HTMLElement&&t.error))throw new Error("Invalid item to be pushed into invali
5d items");e.push(t),this.length++},this.display_errors=function(){e.forEach(function(t){t.input.classList.contains(i)&&t.input.nextSibling.remove(),t.input.classList.add(i);var e=document.createElement("span");e.classList.add(i),e.innerText=t.error,t.input.parentElement.classList.remove("tcb-permanently-hidden"),t.input.parentElement.previousElementSibling.classList.remove("tcb-permanently-hidden"),ThriveGlobal.$j(t.input).after(e)})}}function a(e,t){var a=ThriveGlobal.$j.extend({},t.error_messages||{}),n=new r;function o(t){return"required"===t.getAttribute("required")}this.validate_text_field=function(t){var e=!0,i=t.value.trim();return o(t)&&i.length<=0&&(e=!1,n.add({input:t,error:a.required})),e},this.validate_email_field=function(t){var e=!0,i=t.value.trim();return o(t)&&i.length<=0&&(e=!1,n.add({input:t,error:a.required})),e&&0<i.length&&!function(t){return tve_is_email(t)}(i)&&(e=!1,n.add({input:t,error:a.email})),e},this.validate_textarea_field=function(t){var e=!0,i=t.value.trim();return"g-recaptcha-response"===t.name?this.validate_recaptcha(t):(o(t)&&i.length<=0&&(e=!1,n.add({input:t,error:a.required})),e)},this.validate_recaptcha=function(t){var e=!0;return t.value.trim().length<=0&&(e=!1,n.add({input:t,error:a.required})),e},this.validate_tel_field=function(t){var e=!0,i=t.value.trim();return o(t)&&i.length<=0&&(e=!1,n.add({input:t,error:a.required})),e&&0<i.length&&!function(t){return t.match(/^[+]?[0-9\(\)/ -]*$/)&&t.length<=15}(i)&&(e=!1,n.add({input:t,error:a.phone})),e},this.validate_url_field=function(t){var e=!0,i=t.value.trim();return o(t)&&i.length<=0&&(e=!1,n.add({input:t,error:a.required})),e&&0<i.length&&!function(t){return!!(t=tve_add_http(t)).match(/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&=]*)/g)}(i)&&(e=!1,n.add({input:t,error:a.url})),e},this.validation_exists=function(t){return"function"==typeof this[t]},this.is_field_valid=function(t){var e=!0,i="validate_"+t.type+"_field";if(this.validation_exists(i))try{e=this[i](t)}catch(t){console.error(t),e=!1}return e},this.is_valid=function(){var t=this;return e.find("input, select, textarea").each(function(){t.is_field_valid(this)}),0===n.length},this.display_errors=function(){n.display_errors()}}function t(t){t.stopPropagation(),t.preventDefault();var e=ThriveGlobal.$j(this),i=e.find('input[name="config"]').val();if(!i)return!1;var a=function(t){return tve_unserialize(TCB_Front.Base64.decode(t))}(i),n=e.find("#__tcb_cf_conn"),o=new c(e,a,n.length&&"zapier"===TCB_Front.Base64.decode(n.val()));try{if(!o.validator.is_valid())return console.log("form invalid"),o.validator.display_errors(),!1;console.log("valid form; continue by sending ajax")}catch(t){console.error(t)}e.find("button").attr("disabled","disabled"),e.find(".tve-form-button").addClass("tar-disabled");var r=e.serializeArray(),s="object"===("undefined"==typeof tve_frontend_options?"undefined":_typeof(tve_frontend_options))?tve_frontend_options.post_id:0;return r.push({name:"action",value:"tve_cf_submit"}),r.push({name:"post_id",value:s}),r.push({name:"security",value:JSON.stringify({check:1,has_recaptcha:e.find(".g-recaptcha").length})}
5),ThriveGlobal.$j.ajax({type:"post",xhrFields:{withCredentials:!0},url:tve_frontend_options.ajaxurl,data:r}).fail(ThriveGlobal.$j.proxy(o.fail,o)).done(ThriveGlobal.$j.proxy(o.done,o)),!0}function n(t){var e=t.currentTarget;e.classList.contains(i)&&(e.nextSibling.remove(),e.classList.remove(i))}function o(){this.placeholder=""}function s(){this.placeholder=this.getAttribute("data-placeholder")}return this.each(function(){!function(e){if(e.is("form")){e.find(".tve-cf-submit .thrv_icon").click(function(){e.find("button").trigger("click")}),e.find(".tve-form-button .tve-form-button-submit").click(function(t){return t.preventDefault(),t.stopPropagation(),e.submit(),!1}),e.off("submit").on("submit",t);e.find(['input[type="text"]','input[type="email"]','input[type="tel"]','input[type="url"]',"textarea"].join(",")).on("input",n).on("focus",o).on("blur",s)}}(ThriveGlobal.$j(this).find("form").first())})},window.tve_add_http=function(t){return!(t=t.trim())||0===t.indexOf("#")||/^mailto/.test(t)||/^tel/.test(t)||/^(?:f|ht)tps?\:\/\//.test(t)||(t="http://"+t),t},window.tve_is_email=function(t){return/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(t).toLowerCase())},window.tve_unserialize=function(t){function r(t){for(var e=t.length,i=t.length-1;0<=i;i--){var a=t.charCodeAt(i);127<a&&a<=2047?e++:2047<a&&a<=65535&&(e+=2),56320<=a&&a<=57343&&i--}return e-1}var n="undefined"!=typeof window?window:global,T=function(t,e,i,a){throw new n[t](e,i,a)},k=function(t,e,i){for(var a=2,n=[],o=t.slice(e,e+1);o!==i;)a+e>t.length&&T("Error","Invalid"),n.push(o),o=t.slice(e+(a-1),e+a),a+=1;return[n.length,n.join("")]},$=function(t,e,i){var a,n,o=[];for(a=0;a<i;a++)n=t.slice(e+(a-1),e+a),o.push(n),i-=r(n);return[o.length,o.join("")]};return function t(e,i){var a,n,o,r,s,c,l,d,h,u,f,p,v,g,m,_,b,y,w=0,C=function(t){return t};switch(n=(i=i||0)+2,a=e.slice(i,i+1).toLowerCase()){case"i":C=function(t){return parseInt(t,10)},w=(h=k(e,n,";"))[0],d=h[1],n+=w+1;break;case"b":C=function(t){return 0!==parseInt(t,10)},w=(h=k(e,n,";"))[0],d=h[1],n+=w+1;break;case"d":C=function(t){return parseFloat(t)},w=(h=k(e,n,";"))[0],d=h[1],n+=w+1;break;case"n":d=null;break;case"s":w=(u=k(e,n,":"))[0],f=u[1],w=(h=$(e,(n+=w+2)+1,parseInt(f,10)))[0],d=h[1],n+=w+2,w!==parseInt(f,10)&&w!==d.length&&T("SyntaxError","String length mismatch");break;case"a":for(d={},w=(o=k(e,n,":"))[0],r=o[1],n+=w+2,c=parseInt(r,10),s=!0,p=0;p<c;p++)m=(g=t(e,n))[1],v=g[2],b=(_=t(e,n+=m))[1],y=_[2],n+=b,v!==p&&(s=!1),d[v]=y;if(s){for(l=new Array(c),p=0;p<c;p++)l[p]=d[p];d=l}n+=1;break;default:T("SyntaxError","Unknown / Unhandled data type(s): "+a)}return[a,n-i,C(d)]}(t+"",0)[2]},TCB_Front.Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(t){var e,i,a,n,o,r,s,c="",l=0;for(t=this._utf8_encode(t);l<t.length;)n=(e=t.charCodeAt(l++))>>2,o=(3&e)<<4|(i=t.charCodeAt(l++))>>4,r=(15&i)<<2|(a=t.charCodeAt(l++))>>6,s=63&a,isNaN(i)?r=s=64:isNaN(a)&&(s=64),c=c+this._keyStr.charAt(n)+this._keyStr.charAt(o)+this._keyStr.charAt(r)+this._keyStr.charAt(s);return c},decode:function(t){var e,i,a,n,o,r,s="",c=0;for(t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");c<t.length;)e=this._keyStr.indexOf(t.charAt(c++))<<2|(n=this._keyStr.indexOf(t.charAt(c++)))>>4,i=(15&n)<<4|(o=this._keyStr.indexOf(t.charAt(c++)))>>2,a=(3&o)<<6|(r=this._keyStr.indexOf(t.charAt(c++))),s+=String.fromCharCode(e),64!=o&&(s+=String.fromCharCode(i)),64!=r&&(s+=String.fromCharCode(a));return s=this._utf8_decode(s)},_utf8_encode:function(t){t=t.replace(/\r\n/g,"\n");for(var e="",i=0;i<t.length;i++){var a=t.charCodeAt(i);a<128?e+=String.fromCharCode(a):(127<a&&a<2048?e+=String.fromCharCode(a>>6|192):(e+=String.fromCharCode(a>>12|224),e+=String.fromCharCode(a>>6&63|128)),e+=String.fromCharCode(63&a|128))}return e},_utf8_decode:function(t){for(var e="",i=0,a=0,n=0,o=0;i<t.length;)(a=t.charCodeAt(i))<128?(e+=String.fromCharCode(a),i++):191<a&&a<224?(n=t.charCodeAt(i+1),e+=String.fromCharCode((31&a)<<6|63&n),i+=2):(n=t.charCodeAt(i+1),o=t.charCodeAt(i+2),e+=String.fromCharCode((1
55&a)<<12|(63&n)<<6|63&o),i+=3);return e}},i("./typed"),i("./util/jumplink"),i("./util/jquery-plugins"),i("./elements/login")},
5"typed.js":function(t,e,i){function n(t,e){this.el=c(t),this.options=c.extend({},c.fn.typed.defaults,e),this.isInput=this.el.is("input"),this.attr=this.options.attr,this.showCursor=!this.isInput&&this.options.showCursor,this.elContent=this.attr?this.el.attr(this.attr):this.el.text(),this.contentType=this.options.contentType,this.typeSpeed=this.options.typeSpeed,this.startDelay=this.options.startDelay,this.backSpeed=this.options.backSpeed,this.backDelay=this.options.backDelay,this.stringsElement=this.options.stringsElement,this.strings=this.options.strings,this.strPos=0,this.arrayPos=0,this.stopNum=0,this.loop=this.options.loop,this.loopCount=this.options.loopCount,this.curLoop=0,this.stop=!1,this.cursorChar=this.options.cursorChar,this.shuffle=this.options.shuffle,this.sequence=[],this.build()}var c;c=window.jQuery,n.prototype={constructor:n,init:function(e){void 0===e&&(e="delete");var i=this;function t(){for(var t=0;t<i.strings.length;++t)i.sequence[t]=t;i.shuffle&&(i.sequence=i.shuffleArray(i.sequence)),"delete"===e?(i.strPos=i.strings[i.sequence[i.arrayPos]].length,i.options.highlightClass?i.highlight(i.strings[i.sequence[i.arrayPos]],i.strPos):i.backspace(i.strings[i.sequence[i.arrayPos]],i.strPos)):(i.strPos=0,i.typewrite(i.strings[i.sequence[i.arrayPos]],i.strPos))}"delete"===e?i.timeout=setTimeout(t,i.startDelay):t()},build:function(){var i=this;if(!0===this.showCursor&&(this.cursor=c('<span class="typed-cursor">'+this.cursorChar+"</span>"),this.el.after(this.cursor)),this.stringsElement){i.strings=[],this.stringsElement.hide();var t=this.stringsElement.find("p");c.each(t,function(t,e){i.strings.push(c(e).html())})}this.init()},typewrite:function(o,r){if(!0!==this.stop){var t=this.typeSpeed,s=this;c(this.el),s.timeout=setTimeout(function(){var t=0,e=o.substr(r);
5if("^"===e.charAt(0)){var i=1;/^\^\d+/.test(e)&&(i+=(e=/\d+/.exec(e)[0]).length,t=parseInt(e)),o=o.substring(0,r)+o.substring(r+i)}if("html"===s.contentType){var a=o.substr(r).charAt(0);if("<"===a||"&"===a){var n="";for(n="<"===a?">":";";o.substr(r).charAt(0)!==n;)o.substr(r).charAt(0),r++;r++}}s.timeout=setTimeout(function(){if(r===o.length){if(s.options.onStringTyped(s.arrayPos),s.arrayPos===s.strings.length-1&&(s.options.callback(),s.curLoop++,!1===s.loop||s.curLoop===s.loopCount))return;s.timeout=setTimeout(function(){s.options.highlightClass?s.highlight(o,r):s.backspace(o,r)},s.backDelay)}else{0===r&&s.options.preStringTyped(s.arrayPos);var t=o.substr(0,r+1);s.attr?s.el.attr(s.attr,t):s.isInput?s.el.val(t):"html"===s.contentType?s.el.html(t):s.el.text(t),r++,s.typewrite(o,r)}},t)},t)}},highlight:function(i,a){if(!0!==this.stop){var t=this.backSpeed,n=this;c(n.el),c("<span/>"),n.timeout=setTimeout(function(){if("html"===n.contentType&&">"===i.substr(a).charAt(0)){for(;"<"!==i.substr(a).charAt(0);)i.substr(a).charAt(0),a--;a--}var t=i.substr(0,a),e=i.substr(a);n.attr?n.el.attr(n.attr,t):n.el.html(t+'<span class="'+n.options.highlightClass+'" style="'+(n.options.highlightStyle||"")+'">'+e+"</span>"),a>n.stopNum?(a--,n.highlight(i,a)):a<=n.stopNum&&setTimeout(function(){n.arrayPos++,n.arrayPos===n.strings.length?(n.arrayPos=0,n.init("write")):n.typewrite(n.strings[n.sequence[n.arrayPos]],a)},200)},t)}},backspace:function(e,i){if(!0!==this.stop){var t=this.backSpeed,a=this,n=c(a.el);a.timeout=setTimeout(function(){if("html"===a.contentType&&">"===e.substr(i).charAt(0)){for(;"<"!==e.substr(i).charAt(0);)e.substr(i).charAt(0),i--;i--}var t=e.substr(0,i);a.attr?a.el.attr(a.attr,t):a.isInput?a.el.val(t):"html"===a.contentType?a.el.html(t):a.el.text(t),i>a.stopNum?(i--,a.backspace(e,i)):i<=a.stopNum&&(a.arrayPos++,a.arrayPos===a.strings.length?(a.arrayPos=0,a.shuffle&&(a.sequence=a.shuffleArray(a.sequence)),a.init("write")):a.typewrite(a.strings[a.sequence[a.arrayPos]],i),a.options.highlightClass&&n.is("."+a.options.highlightClass)&&n.removeClass(a.options.highlightClass))},t)}},shuffleArray:function(t){var e,i,a=t.length;if(a)for(;--a;)e=t[i=Math.floor(Math.random()*(a+1))],t[i]=t[a],t[a]=e;return t},pause:function(){this.stop=!0,clearInterval(this.timeout)},start:function(){!1!==this.stop&&(this.stop=!1,this.init())},reset:function(){clearInterval(this.timeout);var t=this.el.attr("id");this.el.after('<span id="'+t+'"/>'),this.el.remove(),void 0!==this.cursor&&this.cursor.remove(),this.options.resetCallback()}},c.fn.typed=function(a){return this.each(function(){var t=c(this),e=t.data("typed"),i="object"==_typeof(a)&&a;e||t.data("typed",e=new n(this,i)),"string"==typeof a&&e[a]()})},c.fn.typed.defaults={strings:["These are the default values...","You know what you should do?","Use your own!","Have a great day!"],stringsElement:null,typeSpeed:0,startDelay:0,backSpeed:0,shuffle:!1,backDelay:500,loop:!1,loopCount:!1,showCursor:!0,cursorChar:"|",attr:null,contentType:"html",callback:function(){},preStringTyped:function(){},onStringTyped:function(){},resetCallback:function(){}}},util:{
5"compat.js":function(t,e,i){function a(t){if(!this.dataset.href)return!0;if("_blank"===this.dataset.target)window.open(this.dataset.href,"_blank","noopener");else{var e;if(this.dataset.hash)try{e=n(this.dataset.hash)}catch(t){}e&&e.length?TCB_Front.jumpScrollTo(e,this):location.href=this.dataset.href}return!1}var n;n=ThriveGlobal.$j,e.exports=function(t){tve_frontend_options.is_editor_page||(function(t){t.find(".thrv_wrapper > div[data-clip-id]").parent().addClass("safari-ios-decoration-fix")}(t),function(t){t.find("a > .tcb-col, a > .thrv-content-box").each(function(){var t=this.parentNode;n(this).unwrap().css("cursor","pointer").off("click.tcb-block").on("click.tcb-block",a).toggleClass("tve-jump-scroll",t.classList.contains("tve-jump-scroll")).attr({"data-href":t.href,"data-hash":t.hash,"jump-animation":t.getAttribute("jump-animation"),"data-target":t.getAttribute("target")||""})})}(t))}},
5"divider.js":function(t,e,i){var a,n,o;a=ThriveGlobal.$j,n=TCB_Front,o={init:function(){n.addResizeCallback(this.customDividerStyle.bind(this,!!tve_frontend_options.is_editor_page)),this.customDividerStyle()},customDividerStyle:function(){a(".thrv-divider").each(function(){var t=a(this),e=t.find("hr");1023<TCB_Front.windowWidth()?o.removeOldClass(e).addClass(n.getMediaAttr(t,"data-style","desktop")):767<TCB_Front.windowWidth()?o.removeOldClass(e).addClass(n.getMediaAttr(t,"data-style","tablet")):o.removeOldClass(e).addClass(n.getMediaAttr(t,"data-style","mobile"))})},removeOldClass:function(t){return t.removeClass(function(t,e){return(e.match(/(^|\s)tve_sep-\S+/g)||[]).join(" ")}),t}},e.exports=o},
5"dynamic-elements.js":function(t,e,i){var s,d;s=ThriveGlobal.$j,TCB_Front,d={init:function(){var t=!!tve_frontend_options.is_editor_page;s("[data-tar-shortcode-attr]").each(function(){var t=this.getAttribute("data-tar-shortcode-attr");try{var e=JSON.parse(t);for(var i in e)this.setAttribute(e[i].prop,e[i].value);this.removeAttribute("data-tar-shortcode-attr")}catch(t){}}),this.updateStarRating(t),this.updatePrograssBar(t),this.updateFillCounter(t),this.countdownTimer(t),this.hidePlaceholderElements(t),this.updateAnimations(t),this.updateVideos(t),this.lazyLoadPlaceholders(t),this.hideEmptyLinks(t)},updateStarRating:function(t){s(".tcb-custom-field-source.thrv-rating").each(function(){var t=s(this);t.html(d.getStarHtml(t))})},getStarHtml:function(t){t=t[0];for(var e=parseFloat(t.dataset.max),i=parseFloat(t.dataset.value)>e?e:d.getClosestRating(t.dataset.value,e),a=t.dataset.style,n="",o=this.templates[a].viewbox||"-6 -6 70 70",r=Math.floor(i),s=Math.round(i-r),c=1;c<=e;c++){var l="full";r<c&&c<=r+s?l="half":r+s<c&&(l="empty"),n+='<svg viewBox="'+o+'" class="">'+d.templates[a][l]+"</svg>"}return n},getClosestRating:function(t,e){var i=0;t=parseFloat(t);for(var a=0;a<=e&&a<=t;a+=.5)i=a;return i},templates:{style1:{empty:'<path class="sr-background" fill="transparent" d="M46.976,57.227c-0.422,0-0.834-0.104-1.228-0.312l-13.167-6.921c-0.663-0.349-1.409-0.533-2.158-0.533s-1.495,0.185-2.158,0.533L15.1,56.915c-0.393,0.208-0.807,0.312-1.229,0.312c-0.765,0-1.524-0.358-2.03-0.958c-0.501-0.595-0.703-1.353-0.569-2.134l2.515-14.661c0.258-1.505-0.241-3.039-1.334-4.105L1.8,24.985c-0.736-0.717-0.985-1.728-0.668-2.704c0.318-0.977,1.114-1.649,2.13-1.796l14.72-2.139c1.512-0.22,2.817-1.168,3.493-2.537L28.059,2.47C28.513,1.55,29.396,1,30.423,1c1.027,0,1.911,0.55,2.365,1.471l6.584,13.339c0.676,1.369,1.98,2.317,3.492,2.537l14.721,2.139c1.016,0.147,1.813,0.819,2.129,1.795c0.317,0.977,0.068,1.988-0.668,2.705L48.394,35.369c-1.092,1.065-1.59,2.6-1.334,4.105l2.516,14.661c0.134,0.781-0.068,1.539-0.569,2.134C48.5,56.869,47.743,57.227,46.976,57.227"/><path class="sr-outline" fill="#fbb040" d="M30.424,2c0.307,0,1.063,0.089,1.471,0.913l6.582,13.339c0.82,1.664,2.408,2.817,4.246,3.084l14.719,2.139c0.91,0.132,1.229,0.824,1.324,1.115c0.094,0.291,0.242,1.038-0.416,1.679L47.697,34.652c-1.328,1.295-1.934,3.16-1.621,4.99l2.516,14.662c0.105,0.622-0.131,1.061-0.35,1.318c-0.318,0.378-0.791,0.604-1.264,0.604c-0.26,0-0.518-0.066-0.764-0.197l-13.166-6.922c-0.807-0.422-1.715-0.646-2.625-0.646s-1.816,0.225-2.623,0.646l-13.166,6.922c-0.248,0.131-0.504,0.197-0.764,0.197c-0.473,0-0.947-0.226-1.266-0.
5604c-0.217-0.258-0.455-0.696-0.348-1.318l2.516-14.662c0.313-1.83-0.293-3.695-1.623-4.99L2.498,24.269c-0.656-0.641-0.508-1.388-0.414-1.679c0.096-0.291,0.414-0.983,1.322-1.115l14.721-2.139c1.838-0.267,3.424-1.42,4.246-3.084l6.582-13.339C29.363,2.089,30.117,2,30.424,2 M30.424,0c-1.297,0-2.594,0.676-3.262,2.027l-6.584,13.339c-0.529,1.074-1.553,1.819-2.738,1.99l-14.721,2.14c-2.984,0.434-4.176,4.101-2.016,6.205l10.65,10.383c0.859,0.836,1.25,2.04,1.047,3.221l-2.514,14.66c-0.404,2.352,1.465,4.262,3.584,4.262c0.561,0,1.137-0.134,1.695-0.426l13.166-6.923c0.529-0.278,1.111-0.417,1.691-0.417c0.582,0,1.164,0.139,1.693,0.417l13.166,6.923c0.559,0.293,1.135,0.426,1.695,0.426c2.119,0,3.986-1.91,3.584-4.262l-2.516-14.66c-0.201-1.181,0.189-2.385,1.047-3.221l10.652-10.383c2.158-2.104,0.967-5.771-2.016-6.205l-14.723-2.14c-1.184-0.171-2.209-0.916-2.738-1.99L33.688,2.027C33.02,0.676,31.723,0,30.424,0"/>',half:'<path class="sr-background" fill="transparent" d="M46.976,57.227c-0.422,0-0.834-0.104-1.228-0.312l-13.167-6.921c-0.663-0.349-1.409-0.533-2.158-0.533s-1.495,0.185-2.158,0.533L15.1,56.915c-0.393,0.208-0.807,0.312-1.229,0.312c-0.765,0-1.524-0.358-2.03-0.958c-0.501-0.595-0.703-1.353-0.569-2.134l2.515-14.661c0.258-1.505-0.241-3.039-1.334-4.105L1.8,24.985c-0.736-0.717-0.985-1.728-0.668-2.704c0.318-0.977,1.114-1.649,2.13-1.796l14.72-2.139c1.512-0.22,2.817-1.168,3.493-2.537L28.059,2.47C28.513,1.55,29.396,1,30.423,1c1.027,0,1.911,0.55,2.365,1.471l6.584,13.339c0.676,1.369,1.98,2.317,3.492,2.537l14.721,2.139c1.016,0.147,1.813,0.819,2.129,1.795c0.317,0.977,0.068,1.988-0.668,2.705L48.394,35.369c-1.092,1.065-1.59,2.6-1.334,4.105l2.516,14.661c0.134,0.781-0.068,1.539-0.569,2.134C48.5,56.869,47.743,57.227,46.976,57.227"/><path class="sr-fill" fill="#F0C419" d="M28.731,50.878l-13.166,6.923c-2.67,1.402-5.789-0.863-5.279-3.836l2.517-14.66c0.201-1.181-0.188-2.385-1.047-3.221L1.104,25.701c-2.16-2.104-0.968-5.771,2.016-6.205l14.721-2.139c1.186-0.172,2.209-0.917,2.74-1.991l6.582-13.339C27.829,0.676,29.126,0,30.423,0l0.002,50.461C29.843,50.46,29.261,50.6,28.731,50.878"/><path class="sr-outline" fill="#FBB040" d="M30.423,2c0.307,0,1.063,0.089,1.471,0.913l6.582,13.339c0.822,1.664,2.408,2.817,4.246,3.084l14.721,2.139c0.908,0.132,1.228,0.824,1.322,1.115c0.094,0.291,0.242,1.038-0.414,1.679L47.698,34.652c-1.33,1.295-1.936,3.16-1.623,4.99l2.517,14.662c0.106,0.622-0.131,1.061-0.349,1.318c-0.319,0.378-0.793,0.604-1.266,0.604c-0.26,0-0.516-0.066-0.764-0.197l-13.166-6.922c-0.807-0.422-1.713-0.646-2.625-0.646c-0.908,0-1.816,0.225-2.623,0.646l-13.166,6.922c-0.248,0.131-0.504,0.197-0.764,0.197c-0.473,0-0.947-0.226-1.264-0.604c-0.22-0.258-0.455-0.696-0.351-1.318l2.517-14.662c0.313-1.83-0.293-3.695-1.621-4.99L2.499,24.269c-0.658-0.641-0.51-1.388-0.416-1.679c0.096-0.291,0.414-0.983,1.322-1.115l14.721-2.139c1.838-0.267,3.424-1.42,4.246-3.084l6.582-13.339C29.362,2.089,30.118,2,30.423,2 M30.423,0c-1.297,0-2.594,0.676-3.262,2.027l-6.582,13.339c-0.531,1.074-1.555,1.819-2.74,1.99l-14.721,2.14c-2.984,0.434-4.174,4.101-2.016,6.205l10.651,10.383c0.856,0.836,1.248,2.04,1.045,3.221l-2.515,14.66c-0.403,2.352,1.466,4.262,3.584,4.262c0.562,0,1.138-0.134,1.695-0.426l13.166-6.923c0.529-0.278,1.109-0.417,1.691-0.417s1.164,0.139,1.693,0.417l13.166,6.923c0.559,0.293,1.135,0.426,1.694,0.426c2.119,0,3.988-1.91,3.584-4.262l-2.514-14.66c-0.203-1.181,0.188-2.385,1.045-3.221l10.651-10.383c2.16-2.104,0.97-5.771-2.016-6.205l-14.721-2.14c-1.186-0.171-2.211-0.916-2.738-1.99L33.683,2.027C33.019,0.676,31.722,0,30.423,0"/>',full:'<path class="sr-fill" fill="#F0C419" d="M46.976,57.227c-0.422,0-0.834-0.104-1.228-0.312l-13.167-6.921c-0.663-0.349-1.409-0.533-2.158-0.533s-1.495,0.185-2.158,0.533L15.1,56.915c-0.393,0.208-0.807,0.312-1.229,0.312c-0.765,0-1.524-0.358-2.03-0.958c-0.501-0.595-0.703-1.353-0.569-2.134l2.515-14.661c0.258-1.505-0.241-3.039-1.334-4.105L1.8,24.985c-0.736-0.717-0.985-1.728-0.668-2.704c0.318-0.977,1.114-1.649,2.13-1.796l14.72-2.139c1.512-0.22,2.817-1.168,3.493-2.537L28.059,2.47C28.513,1.55,29.396,1,30.423,1c1.027,0,1.911,0.55,2.365,1.471l6.584,13.339c0.676,1.369,1.98,2.317,3.492,2.537l14.721,2.139c1.016,0.147,1.813,0.819,2.129,1.795c0.317,0.977,0.068,1.988-0.668,2.705L48.394,35.369c-1.092,1.065-1.59,2.6-1.334,4.105l2.516,14.661c0.134,0.781-0.068,1.539-0.569,2.134C48.5,56.869,47.743,57.227,46.976,57.227"/><path class="sr-outline" fill="#FBB040" d="M30.423,2c0.306,0,1.063,0.089,1.469,0.913l6.584,13.339c0.821,1.664,2.407,2.817,4.244,3.084l14.721,2.139c0.91,0.132,1.228,0.824,1.322,1.115c0.096,0.291,0.243,1.038-0.414,1.679L47.697,34.652c-1.329,1.295-1.936,3.161-1.621,4.991l2.515,14.661c0.106,0.623-0.131,1.061-0.349,1.319c-0.318,0.378-0.791,0.604-1.266,0.604
5c-0.259,0-0.515-0.067-0.763-0.197l-13.166-6.922c-0.806-0.423-1.713-0.647-2.624-0.647c-0.911,0-1.818,0.224-2.624,0.647L14.633,56.03c-0.248,0.13-0.504,0.197-0.763,0.197c-0.474,0-0.948-0.226-1.266-0.604c-0.218-0.258-0.454-0.696-0.348-1.319l2.515-14.661c0.314-1.83-0.292-3.696-1.621-4.991L2.5,24.269c-0.659-0.641-0.51-1.388-0.415-1.679c0.095-0.291,0.413-0.983,1.322-1.115l14.721-2.139c1.837-0.267,3.423-1.42,4.245-3.084l6.583-13.339C29.361,2.089,30.118,2,30.423,2 M30.423,0c-1.297,0-2.595,0.676-3.262,2.027l-6.584,13.339c-0.53,1.074-1.554,1.819-2.739,1.99l-14.72,2.14c-2.984,0.434-4.175,4.101-2.016,6.205l10.652,10.383c0.857,0.836,1.248,2.04,1.045,3.221l-2.514,14.66c-0.403,2.351,1.465,4.262,3.585,4.262c0.559,0,1.136-0.134,1.694-0.426l13.166-6.923c0.53-0.278,1.111-0.417,1.693-0.417s1.163,0.139,1.693,0.417l13.166,6.923c0.558,0.293,1.135,0.426,1.693,0.426c2.121,0,3.988-1.911,3.586-4.262l-2.515-14.66c-0.202-1.181,0.188-2.385,1.045-3.221l10.652-10.383c2.159-2.104,0.968-5.771-2.017-6.205l-14.72-2.14c-1.185-0.171-2.21-0.916-2.739-1.99L33.687,2.027C33.019,0.676,31.72,0,30.423,0"/>'},style2:{viewbox:"-4 -4 60 60",empty:'<path class="sr-outline" fill="#D3DADF" d="M27.999,2.318l5.307,15.909c0.52,1.562,1.977,2.621,3.623,2.633l16.77,0.13l-13.49,9.962c-1.324,0.979-1.881,2.691-1.385,4.261l5.059,15.988L30.239,41.45c-0.658
5-0.471-1.432-0.719-2.24-0.719s-1.584,0.248-2.24,0.719l-13.643,9.751l5.059-15.988c0.496-1.569-0.061-3.282-1.385-4.261L2.3,20.99l16.77-0.13c1.646-0.012,3.104-1.071,3.623-2.633L27.999,2.318 M27.999,0c-0.738,0-1.477,0.422-1.758,1.266l-5.445,16.328c-0.25,0.751-0.951,1.26-1.742,1.266L1.843,18.993c-1.781,0.015-2.52,2.285-1.086,3.343l13.846,10.226c0.637,0.469,0.904,1.293,0.666,2.047l-5.193,16.412c-0.41,1.295,0.619,2.418,1.773,2.418c0.357,0,0.727-0.107,1.07-0.353l14.004-10.009c0.32-0.23,0.699-0.346,1.076-0.346s0.756,0.115,1.076,0.346l14.004,10.009c0.344,0.245,0.713,0.353,1.07,0.353c1.154,0,2.182-1.125,1.773-2.418l-5.193-16.412c-0.238-0.754,0.029-1.578,0.666-2.047l13.846-10.226c1.434-1.058,0.695-3.328-1.086-3.343L36.944,18.86c-0.791-0.006-1.492-0.515-1.742-1.266L29.757,1.266C29.476,0.422,28.737,0,27.999,0"/><path class="sr-background" fill="transparent" d="M17.178,35.213L12.12,51.202l13.644-9.752c0.656-0.47,1.432-0.719,2.239-0.719\tc0.809,0,1.583,0.249,2.24,0.719l13.644,9.752l-5.059-15.988c-0.497-1.57,0.06-3.282,1.384-4.262l13.49-9.961L36.933,20.86\tc-1.647-0.012-3.104-1.07-3.624-2.633L28.002,2.318l-5.306,15.909c-0.521,1.563-1.977,2.621-3.624,2.633L2.304,20.991l13.489,9.961\tC17.119,31.931,17.675,33.643,17.178,35.213z"/>',half:'<path class="sr-outline" fill="#D3DADF" d="M27.999,2.318l5.307,15.909c0.52,1.562,1.977,2.621,3.623,2.633l16.77,0.13l-13.49,9.962c-1.324,0.979-1.881,2.691-1.385,4.261l5.059,15.988L30.239,41.45c-0.658
5-0.471-1.432-0.719-2.24-0.719s-1.584,0.248-2.24,0.719l-13.643,9.751l5.059-15.988c0.496-1.569-0.061-3.282-1.385-4.261L2.3,20.99l16.77-0.13c1.646-0.012,3.104-1.071,3.623-2.633L27.999,2.318 M27.999,0c-0.738,0-1.477,0.422-1.758,1.266l-5.445,16.328c-0.25,0.751-0.951,1.26-1.742,1.266L1.843,18.993c-1.781,0.015-2.52,2.285-1.086,3.343l13.846,10.226c0.637,0.469,0.904,1.293,0.666,2.047l-5.193,16.412c-0.41,1.295,0.619,2.418,1.773,2.418c0.357,0,0.727-0.107,1.07-0.353l14.004-10.009c0.32-0.23,0.699-0.346,1.076-0.346s0.756,0.115,1.076,0.346l14.004,10.009c0.344,0.245,0.713,0.353,1.07,0.353c1.154,0,2.182-1.125,1.773-2.418l-5.193-16.412c-0.238-0.754,0.029-1.578,0.666-2.047l13.846-10.226c1.434-1.058,0.695-3.328-1.086-3.343L36.944,18.86c-0.791-0.006-1.492-0.515-1.742-1.266L29.757,1.266C29.476,0.422,28.737,0,27.999,0"/><path class="sr-background" fill="transparent" d="M17.178,35.213L12.12,51.202l13.644-9.752c0.656-0.47,1.432-0.719,2.239-0.719\tc0.809,0,1.583,0.249,2.24,0.719l13.644,9.752l-5.059-15.988c-0.497-1.57,0.06-3.282,1.384-4.262l13.49-9.961L36.933,20.86\tc-1.647-0.012-3.104-1.07-3.624-2.633L28.002,2.318l-5.306,15.909c-0.521,1.563-1.977,2.621-3.624,2.633L2.304,20.991l13.489,9.961\tC17.119,31.931,17.675,33.643,17.178,35.213z"/><path class="sr-fill" fill="#EFC319" d="M26.242,1.265l-5.445,16.329c-0.251,0.751-0.951,1.26-1.743,1.266L1.841,18.993c-1.78,0.015-2.518,2.285-1.086,3.343l13.846,10.225c0.638,0.471,0.905,1.293,0.666,2.049l-5.191,16.41c-0.537,1.697,1.395,3.102,2.844,2.066l14.002-10.009c0.32-0.229,0.694-0.343,1.069-0.345V0C27.255,0.003,26.522,0.424,26.242,1.265z"/>',full:'<path class="sr-fill" fill="#EFC319" d="M26.921,43.078L12.919,53.086c-1.449,1.035-3.381-0.369-2.844-2.066l5.191-16.41c0.239-0.756-0.028-1.578-0.666-2.049L0.755,22.336c-1.432-1.058-0.694-3.328,1.086-3.343l17.212-0.133c0.792-0.006,1.492-0.515,1.743-1.266l5.445-16.329c0.563-1.688,2.95-1.688,3.514,0l5.446,16.329c0.251,0.751,0.95,1.26,1.742,1.266l17.212,0.133c1.78,0.015,2.518,2.285,1.087,3.343L41.396,32.561c-0.638,0.471-0.904,1.293-0.666,2.049l5.191,16.41c0.538,1.697-1.396,3.102-2.843,2.066L29.076,43.078C28.431,42.617,27.566,42.617,26.921,43.078"/>'},style3:{viewbox:"-6 -6 80 80",empty:'<path class="def-shadow" fill="#B9C1C5" d="M14.874,40.174c0.101-0.583-0.094-1.178-0.518-1.591L0.544,25.12\tc-0.121-0.118-0.214-0.248-0.293-0.382c-0.308,0.541-0.339,1.225,0,1.798c-0.308,0.54-0.339,1.224,0,1.797\tc-0.38,0.667-0.344,1.559,0.293,2.18l13.696,13.35L14.874,40.174z"/><path class="def-shadow" fill="#B9C1C5" d="M50.038,61.079l-17.071-8.976c-0.524-0.275-1.149-0.275-1.674,0l-17.071,8.976\tc-0.98,0.514-2.079,0.027-2.478-0.858l-0.13,0.76c-0.065,0.378-0.008,0.73,0.13,1.038l-0.13,0.76\tc-0.065,0.377-0.008,0.73,0.13,1.037l-0.13,0.76c-0.252,1.469,1.289,2.589,2.608,1.896l17.071-8.976\tc0.524-0.275,1.149-0.275,1.674,0l17.071,8.976c1.318,0.693,2.86-0.427,2.608-1.896l-0.13-0.76c0.138-0.307,0.195-0.659,0.13-1.037\tl-0.13-0.761c0.138-0.307,0.195-0.659,0.13-1.037l-0.13-0.761C52.116,61.106,51.017,61.593,50.038,61.079z"/><path class="def-shadow" fill="#B9C1C5" d="M64.008,24.738c-0.079,0.134-0.172,0.264-0.293,0.382L49.903,38.583\tc-0.424,0.413-0.617,1.008-0.517,1.591l0.632,3.688l13.696-13.349c0.637-0.621,0.673-1.513,0.293-2.18\tc0.339-0.573,0.308-1.257,0-1.797C64.347,25.962,64.316,25.278,64.008,24.738z"/><path class="sr-background" fill="#D3DADF" d="M49.386,40.174c-0.101-0.583,0.093-1.178,0.517-1.591L63.714,25.12\tc0.121-0.118,0.214-0.248,0.293-0.382c0.622-1.05,0.017-2.495-1.29-2.684L43.63,19.28c-0.586-0.085-1.092-0.453-1.354-0.983\tL33.742,1.001c-0.66-1.335-2.564-1.335-3.224,0l-8.537,17.296c-0.261,0.53-0.767,0.898-1.354,0.983L1.542,22.054\tc-1.308,0.189-1.912,1.634-1.291,2.684c0.079,0.134,0.173,0.265,0.293,0.382l13.812,13.463c0.424,0.413,0.618,1.008,0.518,1.591\tl-0.633,3.688l-2.628,15.321c-0.065,0.378-0.008,0.73,0.13,1.038c0.399,0.885,1.498,1.372,2.478,0.858l17.071-8.976\tc0.524-0.275,1.149-0.275,1.674,0l17.071,8.976c0.979,0.514,2.079,0.027,2.478-0.858c0.138-0.307,0.195-0.659,0.13-1.037\tl-2.627-15.322L49.386,40.174z"/>',half:'<path class="sr-outline" fill="#F2A261" d="M31.163,55.698C31.425,55.561,32,55.492,32,55.492v-1.797c0,0-0.575,0.069-0.837,0.207\tC31.425,53.764,32,53.694,32,53.694v-1.797c0,0-0.51,0.069-0.772,0.207l-17.04,8.975c-0.979,0.515-2.062,0.028-2.461-0.857\tl-0.123,0.76c-0.065,0.378-0.003,0.73,0.135,1.038l-0.128,0.76c-0.065,0.377-0.007,0.73,0.131,1.037l-0.13,0.76\tc-0.252,1.469,1.289,2.589,2.607,1.896l17.073-8.976c0.262-0.138,0.485-0.206,0.772-0.206l-0.065,0v-1.797\tC32,55.492,31.425,55.561,31.163,55.698z"/><path class="sr-outline" fill="#F2A261" d="M14.874,40.174c0.1-0.583-0.094-1.178-0.519-1.591L0.545,25.12\tc-0.121-0.118-0.214-0.248-0.294-0.382c-0.308,0.541-0.339,1.225,0,1.798c-0.308,0.54-0.339,1.224,0,1.797\tc-0.38,0.667-0.344,1.559,0.294,2.18l13.696,13.351L14.874,40.174z"/>
5<path class="def-shadow" fill="#B9C1C5" d="M64.008,24.737c-0.08,0.135-0.173,0.265-0.294,0.383L49.903,38.583\tc-0.425,0.413-0.617,1.008-0.518,1.591l0.632,3.688l13.696-13.35c0.638-0.621,0.674-1.513,0.294-2.18\tc0.34-0.573,0.308-1.257,0-1.797C64.348,25.962,64.316,25.278,64.008,24.737z"/><path class="def-shadow" fill="#B9C1C5" d="M50.038,61.079l-17.137-8.976C32.639,51.966,32,51.897,32,51.897v1.797c0,0-0.575,0.069-0.837,0.207\tC31.425,53.764,32,53.695,32,53.695v1.797c0,0-0.575,0.068-0.837,0.206C31.425,55.561,32,55.492,32,55.492v1.797\tc0,0,0.639,0.069,0.901,0.207l17.105,8.976c1.317,0.693,2.875-0.427,2.624-1.896l-0.123-0.76c0.138-0.307,0.2-0.659,0.135-1.037\tl-0.128-0.761c0.138-0.307,0.196-0.659,0.131-1.037l-0.13-0.761C52.115,61.106,51.017,61.593,50.038,61.079z"/><path class="sr-background" fill="#D3DADF" d="M49.386,40.174c-0.1-0.583,0.093-1.178,0.518-1.591L63.714,25.12\tc0.121-0.118,0.215-0.248,0.294-0.383c0.622-1.05,0.017-2.494-1.291-2.684L43.631,19.28c-0.586-0.085-1.092-0.453-1.354-0.983\tL33.742,1.001c-0.413-0.834-1.376-1.147-2.153-0.938C31.744,0.021,32,0,32,0v51.896c0,0-0.51,0.069-0.772,0.207\tc0.262-0.138,0.583-0.207,0.87-0.207s0.59,0.069,0.852,0.207l17.08,8.976c0.979,0.514,2.082,0.027,2.481-0.858\tc0.138-0.307,0.197-0.659,0.132-1.037l-2.626-15.321L49.386,40.174z"/><path class="sr-fill" fill="#EFC319" d="M14.221,61.078l17.007-8.975C31.49,51.966,32,51.896,32,51.896V0c0,0-0.256,0.021-0.411,0.063\tc-0.466,0.125-0.856,0.438-1.104,0.938l-8.521,17.296c-0.261,0.53-0.758,0.898-1.344,0.983L1.538,22.054\tc-1.308,0.189-1.911,1.634-1.289,2.684c0.08,0.134,0.174,0.265,0.295,0.382l13.811,13.463c0.425,0.413,0.618,1.008,0.519,1.591\tl-0.632,3.689l-2.628,15.32c-0.065,0.378-0.008,0.73,0.13,1.038C12.143,61.106,13.242,61.593,14.221,61.078z"/>',full:'<path class="sr-outline" fill="#F2A261" d="M14.874,40.174c0.1-0.583-0.094-1.178-0.518-1.591L0.544,25.12\tc-0.121-0.118-0.214-0.248-0.294-0.382c-0.308,0.541-0.339,1.225,0,1.798c-0.308,0.54-0.339,1.224,0,1.797\tc-0.38,0.667-0.344,1.559,0.293,2.18l13.696,13.35L14.874,40.174z"/><path class="sr-outline" fill="#F2A261" d="M50.037,61.078l-17.071-8.975c-0.524-0.275-1.149-0.275-1.674,0L14.22,61.078\tc-0.979,0.515-2.079,0.028-2.478-0.857l-0.13,0.76c-0.065,0.378-0.008,0.73,0.13,1.037l-0.13,0.761\tc-0.065,0.377-0.008,0.73,0.13,1.037l-0.13,0.76c-0.252,1.469,1.289,2.589,2.608,1.896l17.072-8.976\tc0.524-0.275,1.149-0.275,1.674,0l17.071,8.976c1.318,0.693,2.86-0.427,2.608-1.896l-0.13-0.76c0.138-0.307,0.195-0.659,0.13-1.037\tl-0.13-0.761c0.138-0.307,0.195-0.659,0.13-1.037l-0.13-0.761C52.116,61.106,51.016,61.593,50.037,61.078z"/><path class="sr-outline" fill="#F2A261" d="M64.008,24.738c-0.08,0.134-0.173,0.264-0.294,0.382L49.902,38.583\tc-0.424,0.413-0.617,1.008-0.517,1.591l0.632,3.688l13.696-13.349c0.637-0.621,0.674-1.513,0.293-2.18\tc0.339-0.573,0.308-1.257,0-1.797C64.347,25.962,64.315,25.278,64.008,24.738z"/><path class="sr-fill" fill="#EFC319" d="M49.386,40.174c-0.101-0.583,0.093-1.178,0.517-1.591L63.714,25.12\tc0.121-0.118,0.214-0.248,0.294-0.382c0.621-1.05,0.017-2.495-1.29-2.684L43.631,19.28c-0.586-0.085-1.093-0.453-1.354-0.983\tL33.741,1.001c-0.66-1.335-2.564-1.335-3.224,0L21.98,18.297c-0.261,0.53-0.767,0.898-1.353,0.983L1.542,22.054\tc-1.308,0.189-1.913,1.634-1.291,2.684c0.08,0.134,0.173,0.264,0.294,0.382l13.811,13.463c0.424,0.413,0.618,1.008,0.518,1.591\tl-0.633,3.689l-2.628,15.321c-0.065,0.378-0.008,0.73,0.13,1.038c0.399,0.885,1.498,1.372,2.478,0.857l17.072-8.975\tc0.524-0.275,1.149-0.275,1.674,0l17.071,8.975c0.979,0.515,2.079,0.028,2.478-0.857c0.138-0.307,0.195-0.659,0.13-1.037\tl-2.627-15.322L49.386,40.174z"/>'},style4:{viewbox:"-6 -6 68 68",empty:'<path class="sr-background" fill="#D3DADF" d="M29.322,0C13.127,0,0,13.129,0,29.323c0,16.195,13.127,29.323,29.322,29.323s29.324-13.128,29.324-29.323C58.646,13.129,45.518,0,29.322,0 M46.717,26.696l-7.082,6.902c-0.346,0.337-0.504,0.822-0.422,1.298l1.672,9.747c0.205,1.199-1.051,2.111-2.127,1.546l-8.754-4.602c-0.426-0.225-0.936-0.225-1.363,0l-8.754,4.602c-1.074,0.565-2.334-0.347-2.127-1.546l1.672-9.747c0.08-0.476-0.076-0.961-0.422-1.298l-7.082-6.902c-0.869-0.849-0.391-2.326,0.813-2.501l9.787-1.422c0.477-0.069,0.891-0.369,1.104-0.802l4.377-8.868c0.537-1.09,2.092-1.09,2.629,0l4.377,8.868c0.215,0.433,0.627,0.732,1.104,0.802l9.787,1.422C47.107,24.37,47.586,25.848,46.717,26.696"/>',half:'<path class="sr-background" fill="#D3DADF" d="M29.322,0C13.127,0,0,13.129,0,29.323c0,16.195,13.127,29.323,29.322,29.323s29.324-13.128,29.324-29.323C58.646,13.129,45.518,0,29.322,0 M46.717,26.696l-7.082,6.902c-0.346,0.337-0.504,0.822-0.422,1.298l1.672,9.747c0.205,1.199-1.051,2.111-2.127,1.546l-8.754-4.602c-0.426-0.225-0.936-0.225-1.363,0l-8.754,4.602c-1.074,0.565-2.334-0.347-2.127-1.546l1.672-9.747c0.08-0.476-0.076-0.961-0.422-1.298l-7.082-6.902c-0.869-0.849-0.391-2.326,0.813-2.501l9.787-1.422c0.477-0.069,0.891-0.369,1.104-0.802l4.377-8.868c0.537-1.09,2.092-1.09,2.629,0l4.377,8.868c0.215,0.433,0.627,0.732,1.104,0.802l9.787,1.422C47.107,24.37,47.586,25.848,46.717,26.696"/><path class="sr-fill" fill="#EFC319" d="M29.324,41.419c-0.236,0-0.469,0.056-0.684,0.169l-8.754,4.602c-1.074,0.565-2.332-0.348-2.127-1.546l1.672-9.747c0.082-0.476-0.076-0.961-0.422-1.298l-7.082-6.902c-0.869-0.849-0.389-2.326,0.814-2.501l9.785-1.423c0.479-0.068,0.891-0.368,1.104-0.801l4.377-8.868c0.27-0.545,0.791-0.817,1.314-0.817L29.324,0C13.129,0,0,13.129,0,29.323c0,16.195,13.129,29.323,29.324,29.323V41.419z"/>',full:'<path class="sr-fill" fill="#EFC319" d="M29.322,0C13.128,0,0,13.129,0,29.323c0,16.195,13.128,29.323,29.322,29.323c16.195,0,29.324-13.128,29.324-29.323C58.646,13.129,45.517,0,29.322,0 M46.717,26.696l-7.082,6.902c-0.345,0.337-0.503,0.822-0.421,1.298l1.671,9.747c0.206,1.199-1.051,2.111-2.127,1.546l-8.753-4.602c-0.427-0.225-0.938-0.225-1.365,0l-8.753,4.602c-1.075,0.565-2.333-0.347-2.127-1.546l1.672-9.747c0.081-0.476-0.076-0.961-0.422-1.298l-7.082-6.902c-0.87-0.849-0.39-2.326,0.813-2.501l9.787-1.422c0.477-0.069,0.89-0.369,1.104-0.802l4.376-8.868c0.538-1.09,2.092-1.09,2.629,0l4.377,8.868c0.214,0.433,0.626,0.732,1.104,0.802l9.786,1.422C47.107,24.37,47.587,25.848,46.717,26.696"/>'}},updatePrograssBar:function(e){s(".tcb-custom-field-source .tve_progress_bar_fill_wrapper").each(function(){var t=s(this);e&&!t.attr("data-post-list")?(t.css({width:""}),t.head_css({width:t.attr("data-fill")+"%"})):t.css({width:t.attr("data-fill")+"%"})})},updateFillCounter:function(i){s(".tcb-custom-field-source .tve_fill_counter_n").each(function(){var t=s(this),e=t.find(".tve_fill_text");
5d.applyFill(t,t[0].dataset.fill,i),e.find(".tve-fill-text-dynamic").length&&e.html('<div class="tve-fill-text-dynamic" '.concat(i?' contenteditable="false"':"",">").concat(t[0].dataset.fill,"%</div>"))})},applyFill:function(t,e,i){var a=Number(e),n=t.find(".tve_fill_counter_circle circle").attr("r"),o=Math.PI*(2*n);t.attr("data-fill",a),a<0&&(a=0),100<a&&(a=100);var r=a/100*o;i&&!t.attr("data-post-list")?(t.css({"stroke-dasharray":""}),t.head_css({"stroke-dasharray":r+" "+o})):t.css({"stroke-dasharray":r+" "+o})},countdownTimer:function(t){s(".tcb-custom-field-source.thrv_countdown_timer").each(function(){t&&TVE.Components.countdown_old.compute_time_until(s(this),this.dataset.date,this.dataset.hour,this.dataset.min,!1)}),s(".tcb-custom-field-source.tve-countdown").each(function(){t&&TVE.Components.countdown.updateElement(s(this))})},hidePlaceholderElements:function(t){if(!t){var i=s(".tcb-custom-field-source");i.filter("[data-c-f-hidden=1]").hide(),[".tve_progress_bar_fill_wrapper",".tve_fill_counter_n","iframe"].forEach(function(t){i.find(t).filter("[data-c-f-hidden=1]").hide()}),s.each({".tcb-responsive-video":".thrv_responsive_video",audio:".thrv_audio",img:".tve_image_caption"},function(e,t){i.filter(t).each(function(){var t=s(this);0===t.find(e).length&&t.hide()})})}},updateAnimationElement:function(t,e){var i=s(t);i.find(e).attr("data-tcb-events",i.attr("data-tcb-events")),i.attr("data-tcb-events",""),TCB_Front.event_triggers(i)},updateAnimations:function(t){var i=s(".tcb-custom-field-source"),e=s(".tcb-dynamic-field-source"),a=this;s.each({".thrv_responsive_video":".tcb-responsive-video",".thrv_audio":"audio",".tve_image_caption":"img"},function(t,e){i.filter(t).each(function(){a.updateAnimationElement(this,e)})}),e.each(function(){a.updateAnimationElement(this,"img")})},updateVideos:function(o){var r=this;s(".tcb-custom-field-source.thrv_responsive_video").each(function(t,e){var i=s(e),a=i.find(".tcb-responsive-video"),n=a.attr("data-c-f-id");i.attr("data-type")!==a.attr("data-provider")&&(!i.attr("data-placeholder-el")&&"0"!==a.attr("data-id")||i.attr("data-placeholder-el")&&"Placeholder"!==a.attr("data-title"))&&(i.attr("data-url",a.attr("data-src")),i.attr("data-type",a.attr("data-provider")),o?(TVE.Components.responsivevideo.controls.responsive_video.activeElement=i,TVE.PostList.utils.isInsidePostList(i)?(TVE.page_message(TVE.t.invalidVideo,!0),i.attr("data-url",""),i.attr("data-type","external"),TVE.Components.responsivevideo.controls.ExternalFields.customFieldInput.responsivevideo(i,"",null,!0)):(TVE.Components.responsivevideo.controls.ExternalFields.customFieldInput.responsivevideo(i,n,null,!0),i.find(".tcb-responsive-video").attr("data-c-f-id",n)),i.find(".tcb-responsive-video").attr("data-c-f-id",n)):0===a.closest("article").length?r.frontendVideoFunctions(i,i.attr("data-url")?i.attr("data-url"):""):(i.attr("data-url",""),i.attr("data-type","external"),i[0].innerHTML='<div class="tve_responsive_video_container" style="padding-bottom: 56.25%;">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="tcb-video-float-container">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="video_overlay"></div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<video style="width: 100%;" class="tcb-responsive-video" controlslist="nodownload" data-c-f-id="'.concat(a.attr("data-c-f-id"),'" data-title="Placeholder" data-id="">\n\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t<source src="" type="video/mp4">\n\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t</video>\n\t\t\t\t\t\t\t\t\t\t\t\t </div>\n\t\t\t\t\t\t\t\t\t\t\t\t <div>'))),a=i.find(".tcb-responsive-video"),"vooplayer"===i.attr("data-type")&&"vooplayer"!==a.attr("data-provider")&&i.find(".tve_responsive_video_container").html(a)})},videoRegex:function(t,e){var i=!1,a=!1;switch(e){case"youtube":(i=!!t.match(/^(?:https?:\/\/)?(?:www\.)?(?:youtu\.be\/|(youtube-nocookie|youtube)\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})(?:\S+)?$/)&&RegExp.$1)||(i=!!t.match(/^(?:https?:\/\/)?(?:www\.)?(?:youtu\.be\/|(youtube-nocookie|youtube)\.com\/(?:embed\/|list\/|playlist\?list=|playlist\?.+&list=))((\w|-){34})(?:\S+)?$/)&&RegExp.$1,a=!0);break;case"vimeo":i=t.match(/(http|https)?:\/\/(www\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|)(\d+)(?:|\/\?)/)?RegExp.$4:!!t.match(new RegExp("https?://(.+)?player.vimeo.com/video/(.+?)\\?"))&&RegExp.$2;break;case"wistia":i=t.match(new RegExp("https?://(.+)?(wistia.com|wi.st)/(medias|embed)/(.+)"))?RegExp.$4:!!t.match(new RegExp("https?://(.+)?fast.wistia.net/embed/(.+?)/(.+)"))&&RegExp.$3;break;case"vooplayer":i=!!t.match(new RegExp("https?://(.+).(cdn.(vooplayer|spotlightr).com)/publish/(.+)"))&&RegExp.$4}return{url:t,id:i,isPlaylist:a}},queryString:function(t,e){var i,a="?";switch(e){case"youtube":a+=(i=["rel="+(t.attr("data-rel")||"1"),"modestbranding="+(t.attr("data-modestbranding")||"0"),"controls="+(t.attr("data-controls")||"1"),"showinfo="+(t.attr("data-showinfo")||"1"),"fs="+(t.attr("data-fs")||"1"),"wmode=transparent"]).join("&");break;case"wistia":i=["chromeless=false","controlsVisibleOnLoad="+("0"!==t.attr("data-onload-controls")),"playbar="+("0"!==t.attr("data-play-bar")),"fullscreenButton="+("0"!==t.attr("data-fs")),"playerColor="+(t.attr("data-video-color")||"fff"),"videoFoam=true"],"popover"===t.attr("data-embed_type")?(i.push("popover=true popoverAnimateThumbnail=true"),a+=i.join(" ")):a+=i.join("&");break;case"vimeo":a+=(i=["portrait="+(t.attr("data-modestbranding")||"1"),"title="+(t.attr("data-showinfo")||"1"),"color="+(t.attr("data-video-color")||"fff"),"byline="+(t.attr("data-byline")||"1"),"autopause=0"]).join("&");break;
5case"external":case"custom":a="",void 0!==t.attr("data-controls")&&"1"!==t.attr("data-controls")||(a+=' controls="controls" '),void 0!==t.attr("data-loop")&&"1"===t.attr("data-loop")&&(a+=" loop "),void 0!==t.attr("data-no-download")&&"1"===t.attr("data-no-download")&&(a+=' controlsList="nodownload" ');break;case"vooplayer":default:a=""}return a},getEmbedCode:function(t,e,i,a){switch(i){case"external":return'<video style="width: 100%;" playsinline class="tcb-responsive-video" data-title="ACF Video" data-id="123" '.concat(e," >")+'<source src="'.concat(t.url,'" type="<#= attachment.mime #>">')+"</video>";case"youtube":var n="1"===a.attr("data-no-cookie")?"youtube-nocookie":"youtube";return t.isPlaylist?'<iframe title="Responsive Video" class="tcb-responsive-video" data-code="'.concat(t.id,'" data-provider="').concat(i,'" src="https://www.youtube.com/embed?listType=playlist&list=').concat(t.id+e,'" data-src="https://www.').concat(n,".com/embed?listType=playlist&list=").concat(t.id+e,'" frameborder="0" allowfullscreen></iframe>'):'<iframe title="Responsive Video" class="tcb-responsive-video" data-code="'.concat(t.id,'" data-provider="').concat(i,'" src="https://www.youtube.com/embed/').concat(t.id+e,'" data-src="https://www.').concat(n,".com/embed/").concat(t.id+e,'" frameborder="0" allowfullscreen></iframe>');case"vimeo":return'<iframe title="Responsive Video" class="tcb-responsive-video" data-code="'.concat(t.id,'" data-provider="').concat(i,'" src="https://player.vimeo.com/video/').concat(t.id+e,'" data-src="https://player.vimeo.com/video/').concat(t.id+e,'" frameborder="0" allowfullscreen></iframe>');case"wistia":return'<iframe title="Responsive Video" class="tcb-responsive-video" data-code="'.concat(t.id,'" data-provider="').concat(i,'" src="https://fast.wistia.net/embed/iframe/').concat(t.id+e,'" data-src="https://fast.wistia.net/embed/iframe/').concat(t.id+e,'" frameborder="0" allowfullscreen></iframe>');case"vooplayer":return'<iframe title="Responsive Video" allow="autoplay" data-code="'.concat(t.id,'" data-provider="').concat(i,'" class="tcb-responsive-video video-player-container vooplayer" data-playerId="').concat(t.id,'" url-params="" allowtransparency="true" name="vooplayerframe" frameborder="0" allowfullscreen="true" scrolling="no" src="" style="max-width: 100%; position:relative; opacity: 1; min-width: 100%; height:100% !important; width: auto; top: auto;"> </iframe>')}},clearVideoEl:function(t){t.removeClass("tcb-elem-placeholder"),t.find(".tve_responsive_video_container").removeAttr("style"),t.find(".tcb-inline-placeholder-action, .tve_responsive_video-no_video, iframe, video, script, .wistia_embed, .voo-id.video-skin-player").remove()},frontendVideoFunctions:function(t,e){var i,a=t.attr("data-type");i=this.videoRegex(e,a);var n=this.getEmbedCode(i,this.queryString(t,a),a,t),o=t.find("[data-c-f-id]").attr("data-c-f-id"),r=t.find(".tve_responsive_video_container"),s=t.find(".tcb-video-float-container");this.clearVideoEl(t),n?(r.append(n),0<s.length&&0===s.find("iframe, video").length&&s.prepend(t.find("iframe, video")[0]),"function"==typeof window.initVooPlayer&&window.initVooPlayer(),t.find(".tcb-responsive-video").attr("data-c-f-id",o)):r.append('<div class="tve_responsive_video-no_video"><div class="thrv_wrapper thrv_icon tcb-icon-display"><svg id="tcb-icon" viewBox="0 0 32 32" data-id="icon-video-player"><path d="M21.224 18.053l-8-4c-0.155-0.077-0.339-0.070-0.486 0.022s-0.237 0.252-0.237 0.425v8c0 0.173 0.090 0.334 0.237 0.425 0.080 0.050 0.171 0.075 0.263 0.075 0.077 0 0.153-0.018 0.224-0.053l8-4c0.169-0.085 0.276-0.258 0.276-0.447s-0.107-0.362-0.276-0.447zM13.5 21.691v-6.382l6.382 3.191-6.382 3.191z"></path><path d="M30 2.5h-28c-1.105 0-2 0.895-2 2v23c0 1.105 0.895 2 2 2h28c1.105 0 2-0.895 2-2v-23c0-1.105-0.895-2-2-2zM31 4.5v4h-4.164l1.34-5h1.825c0.551 0 1 0.449 1 1zM10.64 3.5l-1.339 5h-4.475l1.339-5h4.475zM11.675 3.5h4.465l-1.339 5h-4.465l1.339-5zM17.175 3.5h4.465l-1.34 5h-4.465l1.34-5zM22.675 3.5h4.465l-1.34 5h-4.465l1.34-5zM2 3.5h3.13l-1.339 5h-2.79v-4c0-0.551 0.449-1 1-1zM30 28.5h-28c-0.551 0-1-0.449-1-1v-18h30v18c0 0.551-0.449 1-1 1z"></path></svg></div></div>')},lazyLoadPlaceholders:function(t){t&&s(".tcb-custom-field-source.thrv_responsive_video[data-placeholder-el], .tcb-custom-field-source.thrv_audio[data-placeholder-el] ").each(function(t,e){TVE.PostList.utils.getPlaceholderForElementType(TVE._type(TVE.inner_$(e)),e.dataset.placeholderEl)})},hideEmptyLinks:function(t){t||(s('.thrv_text_element a[data-shortcode-id^="acf_"]').each(function(t,e){var i=s(e);i.attr("href")||i.hide()}),s(".thrv-button").each(function(t,e){var i=s(e),a=i.find('a[data-shortcode-id^="acf_"]');a.attr("href")||(i.hide(),a.hide())}),s(".thrv_social_follow .tve_s_item").each(function(t,e){var i=s(e),a=i.find("a");a.attr("href")||(i.hide(),a.hide())}))}},e.exports=d},
5"file-upload.js":function(t,e,i){var n;n=ThriveGlobal.$j,e.exports=function(){function e(t){if(_classCallCheck(this,e),_defineProperty(this,"config",{}),_defineProperty(this,"$wrapper",n()),_defineProperty(this,"$el",n()),_defineProperty(this,"el",null),_defineProperty(this,"fileId",0),_defineProperty(this,"$fileList",n()),_defineProperty(this,"deleteIcon",'<svg width="12" height="14" viewBox="0 0 18 20"><path fill="#6D7A86" d="M17.188 2.5h-4.063L11.812.75c-.354-.472-.91-.75-1.5-.75H7.188c-.59 0-1.146.278-1.5.75L4.375 2.5H.312C.14 2.5 0 2.64 0 2.813v.624c0 .173.14.313.313.313h.738l1.297 14.543c.087.966.897 1.707 1.867 1.707h9.07c.97 0 1.78-.74 1.867-1.707L16.45 3.75h.738c.173 0 .313-.14.313-.313v-.624c0-.173-.14-.313-.313-.313zm-10.5-1c.118-.157.303-.25.5-.25h3.125c.196 0 .381.093.5.25l.75 1H5.936l.75-1zm7.218 16.68c-.026.323-.297.57-.62.57H4.214c-.324 0-.595-.247-.621-.57L2.304 3.75h12.891l-1.289 14.43z"/></svg>'),_defineProperty(this,"uploader",null),_defineProperty(this,"errorTemplates",{}),_defineProperty(this,"files",{}),_defineProperty(this,"uploadInProgress",!1),_defineProperty(this,"fieldName",""),_defineProperty(this,"fieldMapping",""),!t.data("tcb-file-upload")&&(this.$wrapper=t,this.$el=this.$wrapper.find(".tve_lg_file"),this.$wrapper.data("tcb-file-upload",this),this.$el.length)){this.el=this.$el[0];try{this.readConfig()}catch(t){return this.$el.remove(),void console.log("File upload error",t)}this.dom(),this.plupload()}}function t(){return i.apply(this,arguments)}var i;return _createClass(e,[{key:"isValid",value:function(){return!this.el||(this.uploadInProgress?"File upload in progress. Please wait for the upload to finish and try again.":!(this.config.required&&!this.fileCount)||this.errorTemplates.required_field||"At least one file is required")}},{key:"dom",value:function(){var e=this,t=this.$el.find('input[type="file"]').remove();function i(){return e.el.classList.remove(a)}this.fieldName=t.attr("name"),this.fieldMapping=t.attr("data-mapping"),this.$fileList=n('<div class="tcb-file-list tcb-plain-text"></div>').insertAfter(this.$el),this.$fileList.on("click.tcb",".tcb-file-remove",function(t){e.removeFile(t.currentTarget.dataset.fileId)});var a="tve-state-active";return this.$el.off("dragover.tcb dragenter.tcb dragleave.tcb drop.tcb").on("dragenter.tcb",function(){return e.el.classList.add(a)}).on("dragover.tcb",function(t){return t.originalEvent.dataTransfer.dropEffect="copy"}).on("drop.tcb dragend.tcb",i).on("dragleave.tcb",function(t){t.originalEvent.relatedTarget&&!n.contains(e.el,t.originalEvent.relatedTarget)&&i()}),this}},{key:"readConfig",value:function(){if(this.fileId=parseInt(this.$wrapper.attr("data-f-id")||0),this.$wrapper.removeAttr("data-f-id"),this.config=JSON.parse(this.el.dataset.fileSetup),this.$el.removeAttr("data-file-setup"),!this.fileId||!this.config)throw new Error("Missing file ID / setup");try{this.errorTemplates=JSON.parse(this.$wrapper.find(".tve-lg-err-msg").val())}catch(t){this.errorTemplates={}}this.errorTemplates=_objectSpread({},{file_extension:"Sorry, {fileextension} files are not allowed",file_size:"{file} exceeds the maximum file size of {filelimit}",max_files:"Sorry, the maximum number of files is {maxfiles}"},{},this.errorTemplates)}},{key:"$fileItem",value:function(t){return"string"!=typeof t&&t.id&&(t=t.id),this.$fileList.children('[data-id="'.concat(t,'"]'))}},{key:"formatFileSize",value:function(t){if(!t.origSize)return"";var e="B",i=t.origSize;return 1e3<i&&(i/=1024,e="KB"),1e3<i&&(i/=1024,e="MB"),i!==parseInt(i)&&(i=i.toFixed(1)),i+" "+e}},{key:"template",value:function(t){var e=this.$fileItem(t.id),i='<div class="tcb-file-info"><span class="tcb-file-name">'.concat(t.name,'</span><span class="tcb-file-size">').concat(this.formatFileSize(t),"</span></div>"),a='<button data-file-id="'.concat(t.id,'" type="button" class="tcb-file-remove">').concat(this.deleteIcon,"</button>");return e.length||(e=n('<div class="tcb-file-item" data-id="'.concat(t.id,'">').concat(i).concat('<span class="tcb-upload-progress"><span class="progress-bg"></span></span>').concat(a).concat('<div class="tcb-file-loader"><span class="tcb-form-loader-icon thrv-icon-spinner9"></span></div>',"</div>")).appendTo(this.$fileList)),e}},{key:"clearErrors",value:function(){this.$fileList.children(".tcb-error").remove()}},{key:"plupload",value:(i=function(){var n,t=this;
5if(plupload.addFileFilter("max_files",function(t,e,i){var a=this;this._tcbInstance.fileCount>=t?(clearTimeout(n),n=setTimeout(function(){a._tcbInstance.clearErrors(),a._tcbInstance.uploader.trigger("Error",{code:800,message:a._tcbInstance.getErrorMessage("max_files",e),file:e})},100),i(!1)):i(!0)}),this.uploader=new plupload.Uploader({runtimes:"html5,html4",dragdrop:!0,drop_element:this.el,browse_button:this.$el.find(".tcb-file-upload-trigger")[0],container:this.el,url:tve_frontend_options.ajaxurl+"?action=tcb_file_upload&id="+encodeURIComponent(this.fileId),filters:{max_files:this.config.max_files||1,max_file_size:this.maxFileSize,mime_types:[{title:"Custom",extensions:this.config.allowed.join(",")}]},init:{FilesAdded:this.onFilesAdded.bind(this),FilesRemoved:this.onFilesRemoved.bind(this),UploadFile:this.onUploadStart.bind(this),UploadProgress:this.onUploadProgress.bind(this),FileUploaded:this.onFileUploaded.bind(this),Error:this.onUploadError.bind(this),FileFiltered:this.onFileFiltered.bind(this),UploadComplete:this.onUploadComplete.bind(this)}}),(this.uploader._tcbInstance=this).uploader.init(),TCB_Front.browser.ios){var e=this.$wrapper.find(".tcb-file-upload-trigger");e.replaceWith(e.clone()),this.$wrapper.on("click",".tcb-file-upload-trigger",function(){t.$wrapper.find("input[type=file]")[0].click()})}},t.toString=function(){return i.toString()},t)},{key:"markFileError",value:function(t,e){return this.template(t).removeClass("tcb-uploading tcb-done").addClass("tcb-error").find(".tcb-file-info").html(e),this}},{key:"isUploaded",value:function(t){return t="string"==typeof t?t:t.id,this.$wrapper.find("input#file-".concat(t)).length}},{key:"getUploadedFileId",value:function(t){return t="string"==typeof t?t:t.id,this.$wrapper.find("input#file-".concat(t)).val()}},{key:"getUploadedFileNonce",value:function(t){return t="string"==typeof t?t:t.id,this.$wrapper.find("input#file-".concat(t)).attr("data-key")}},{key:"removeFile",value:function(t){t="string"==typeof t?t:t.id,delete this.files[t],this.uploader.removeFile(t),this.$fileItem(t).remove();var e=this.getUploadedFileId(t);e&&n.ajax({url:tve_frontend_options.ajaxurl,type:"post",data:{action:"tcb_file_remove",id:this.fileId,file_id:e,nonce:this.getUploadedFileNonce(t)}}),this.$wrapper.find("input#file-".concat(t)).remove()}},{key:"appendExtraData",value:function(t){return this.fieldName&&(t+="&tcb_file_field="+encodeURIComponent(this.fieldName)+"&tcb_file_id="+this.fileId),t}},{key:"getErrorMessage",value:function(t,e){if(!this.errorTemplates[t])return"Unknown error";var i=e.name.split(".").pop();return this.errorTemplates[t].replace(/({file})/g,e.name).replace(/{filelimit}/g,this.maxFileSize.toUpperCase()).replace(/{fileextension}/g,i).replace(/{maxfiles}/g,this.config.max_files||1)}},{key:"clear",value:function(){this.$fileList.empty(),this.files={},this.uploader&&(this.uploader.files=[])}},{key:"onFilesAdded",value:function(t,e){var i=this;plupload.each(e,function(t){i.$fileList.append(i.template(t))});var a=this.$wrapper.find('input[type="email"]').val();this.uploader.setOption("url",tve_frontend_options.ajaxurl+"?action=tcb_file_upload&id="+encodeURIComponent(this.fileId)+"&email="+encodeURIComponent(a)),this.uploader.start()}},{key:"onFilesRemoved",value:function(t,e){var i=this;plupload.each(e,function(t){delete i.files[t.id],i.$fileItem(t).remove()})}},{key:"onUploadStart",value:function(t,e){this.$el.removeClass("tcb-form-input-error").next(".tcb-form-error").remove(),this.uploadInProgress=!0,this.$fileItem(e).addClass("tcb-uploading")}},{key:"onUploadProgress",value:function(t,e){var i="".concat(e.percent,"%");this.template(e).addClass("tcb-uploading").find(".progress-bg").attr("data-percent",i).css("width",i)}},{key:"onUploadError",value:function(t,e){if(!e.file)throw new Error("missing file data");var i=e.response||e.message;if(e.response)try{var a=JSON.parse(a.response);a.error&&(i=a.error)}catch(t){}switch(e.code){case plupload.FILE_SIZE_ERROR:i=this.getErrorMessage("file_size",e.file);break;case plupload.FILE_EXTENSION_ERROR:i=this.getErrorMessage("file_extension",e.file)+" (".concat(e.file.name,")");break;default:i+=" (".concat(e.file.name,")")}delete this.files[e.file.id],this.markFileError(e.file,i)}},{key:"onFileFiltered",value:function(t,e){this.files[e.id]=e}}
5,{key:"onFileUploaded",value:function(t,e,i){this.template(e).removeClass("tcb-uploading").addClass("tcb-done");try{if(200!==i.status)throw new Error("Something went wrong. Response was: "+i.response);var a=JSON.parse(i.response);if(!a.file_id)throw new Error("Something went wrong while uploading the file");this.$wrapper.find("form").append('<input data-mapping="'.concat(this.fieldMapping,'" type="hidden" data-key="').concat(a.nonce,'" id="file-').concat(e.id,'" name="_tcb_files[').concat(a.nonce,']" value="').concat(a.file_id,'">'))}catch(t){this.markFileError(e,t.message)}}},{key:"onUploadComplete",value:function(){this.uploadInProgress=!1}},{key:"maxFileSize",get:function(){return(this.config.max_size||1)+"mb"}},{key:"fileCount",get:function(){return Object.keys(this.files).length}}]),e}()},
5"floating.js":function(t,e,i){function v(t,e){var i=e?t.parents(".safari-ios-decoration-fix"):t.parents(".safari-ios-decoration-fix-none");t.toggleClass("tcb-no-perspective",e),i.toggleClass("safari-ios-decoration-fix",!e).toggleClass("safari-ios-decoration-fix-none",e)}var a,n,o,g;a=ThriveGlobal.$j,g=!(o={}),o.init=function(){var i=this;n=o.videoScrolled.bind(this),document.addEventListener("scroll",n),a(".tcb-float-close-button").each(function(t,e){e.addEventListener("click",o.closeFloatVideo.bind(i,e),!1)})},o.destroyFloating=function(){var i=this;document.removeEventListener("scroll",n),a(".tcb-float-close-button").each(function(t,e){e.removeEventListener("click",o.closeFloatVideo.bind(i,e))})},o.closeFloatVideo=function(t){ThriveGlobal.$j(t).parent(".tcb-video-float-container").addClass("tcb-float-closed"),o.videoScrolled()},o.videoScrolled=function(){ThriveGlobal.$j('.thrv_responsive_video[data-float="true"] .tcb-video-float-container iframe, .thrv_responsive_video[data-float="true"] .tcb-video-float-container video, .thrv_responsive_video[data-float="true"] .tcb-video-float-container .tve_responsive_video-no_video').each(function(t,e){var i=ThriveGlobal.$j(e),a=i.parents(".tcb-video-float-container"),n=i.parents(".thrv_responsive_video"),o=n.attr("data-float-position"),r=n.find(".video_overlay_image").attr("style")||"",s=TCB_Front.getDisplayType()[0],c=parseInt(ThriveGlobal.$j("#wpadminbar").height());if(a.hasClass("tcb-float-closed")||!function(t){var e="true"===t.attr("data-float"),i=t.attr("data-float-visibility"),a=TCB_Front.getDisplayType();return!t.parents(".tcb-post-list").length&&(e&&!i||-1===i.indexOf(a))}(n)||TCB_Front.isInViewport(i.parents(".thrv_responsive_video"),parseInt(i.width))){if(a.removeClass(o).css({width:"",height:"","margin-top":""}).parents(".tcb-col,.thrv-content-box,.thrv-page-section,#content,.theme-section").css("z-index",""),n.find(".video_overlay_image").removeClass(o).css({cssText:r,height:"",width:""}),!g){var l=n.position().left,d={left:l,right:l+n.width()};o.includes("top")||o.includes("keep")?(d.top=-parseInt(n.attr("data-float-width-".concat(s))),a.css(d)):o.includes("bottom")&&(d.bottom=parseInt(TCB_Front.windowWidth()),a.css(d)),n.find(".video_overlay_image").css({top:"",left:"",bottom:"",right:"","margin-top":""}),g=!0}v(n,!1)}else{void 0===n.attr("data-float-width-".concat(s))&&("m"===s&&(n.attr("data-float-width-m",TCB_Front.$window.width()+"px;"),n.attr("data-float-padding1-m",0),n.attr("data-float-padding2-m",0),c=0),"t"===s&&(s="d"));var h="height: "+function(t){var e=parseFloat(t.height()/t.width()).toFixed(2),i=TCB_Front.getDisplayType()[0],a=t.attr("data-float-width-".concat(i))||t.attr("data-float-width-d"),n=parseInt(a)*e;return a.includes("px")?n+"px":n*TCB_Front.$body.width()/100+"px"}(n)+" !important;",u="width: "+n.attr("data-float-width-".concat(s))+" !important;",f="";if(o.includes("keep-original")){var p=n.attr("data-float-padding1-".concat(s));TCB_Front.hasAdminBar()&&c&&(f+="margin-top: ".concat(c,"px;")),f+="top: ".concat(p," !important; ")}else o.split("-").forEach(function(t,e){var i=n.attr("data-float-padding".concat(e+1,"-").concat(s));TCB_Front.hasAdminBar()&&t.includes("top")&&c&&(f+="margin-top: ".concat(c,"px;")),f+="".concat(t,": ").concat(i," !important; ")});o&&(a.addClass(o).css({cssText:u+h+f}).parents(".tcb-col,.thrv-content-box,.thrv-page-section,#content,.theme-section").css("z-index",(TCB_Front.highestZIndex||0)+10),i.css("height",""),n.find("video").length&&function(t){t.find("video").css({"object-fit":"cover",height:"100%"})}(n),n.find(".video_overlay_image").addClass(o).css({cssText:r+u+h+"z-index:100000 !important; top:inherit; left:inherit; bottom:inherit; right: inherit; margin-top: inherit;"}),v(n,!0),g=!1)}})},o.restoreFloatingVideos=function(){ThriveGlobal.$j(".thrv_responsive_video").each(function(t,e){var i=ThriveGlobal.$j(e),a=i.find(".tcb-video-float-container"),n=i.attr("data-float-position"),o=i.find(".video_overlay_image").attr("style")||"";a.removeClass(n).css({width:"",height:""}),i.find(".video_overlay_image").removeClass(n).css({cssText:o,height:"",width:"",top:"",left:"",bottom:"",right:"","margin-top":""})})},e.exports=o},
5"header.js":function(t,e,i){function a(t){var e={opacity:0,"z-index":h-1,overflow:"hidden"},i={opacity:1,"z-index":h,overflow:"",top:0},a="";c<=t?(d.css(e),l.css(i),a=l.outerHeight()):(l.css(e),d.css(i)),v[0]&&v[0].style.setProperty("height","".concat(a,"px"))}function n(){c=s.getMediaAttr(d,"data-switch-on-scroll",TCB_Front.getDisplayType()),s.add_scroll_callback(a)}function o(t){0===parseInt(t.currentTarget.style.opacity)&&(t.currentTarget.style.top=p)}var r,s,c,l,d,h,u,f,p,v;r=ThriveGlobal.$j,s=TCB_Front,u="tve-default-state",f="tve-scroll-state",p="-1000px",v=r(),e.exports=function(t){if(!(v=t.find(".thrv_header")).data("init")&&v.length){v.data("init",1),d=v.find(".thrive-symbol-shortcode"),l=d.clone(),d.addClass(u),h=d.css("z-index")||15;var e=s.getMediaAttr(d,"data-switch-on-scroll",TCB_Front.getDisplayType());if(e&&!isNaN(e)){l.addClass(f);var i={position:"absolute",opacity:0,width:"100%","box-sizing":"border-box",left:0,top:p};l.css(i).addClass("thrive-symbol-shortcode-scroll").insertAfter(d),(l=v.find(".thrive-symbol-shortcode.thrive-symbol-shortcode-scroll")).find(".".concat(u)).remove(),l.find(".".concat(f)).css("display",""),d.find(".".concat(f)).remove(),v.addClass("".concat(u," ").concat(f)),v.find(".thrive-symbol-shortcode").css("transition","opacity .4s ease-in-out").on("transitionend webkitTransitionEnd oTransitionEnd",o),s.addResizeCallback(n),n()}TCB_Front.event_triggers(v)}}},
5"jquery-plugins.js":function(t,e,i){function v(t,e){var i=!(1<arguments.length&&void 0!==e)||e;i?(a.postGridLayout(),a.changeAutoplayVideo(t)):t.find("video").each(function(){d(this)[0].pause()}),a.handleIframes(t,i)}function g(t,a){var e,i;switch(t){case"appear":e=function(t){return t.children(".tve-cb").removeAttr("style"),t.show()},i=function(t){return t.hide()};break;case"fade":e=function(t,e){return t.removeAttr("style").fadeIn(e)},i=function(t,e){return t.fadeOut(e)};break;case"slide-up":e=function(t){return t.children(".tve-cb").removeAttr("style").css({bottom:"100%",opacity:"0"}).animate({bottom:"0",opacity:"1"}).show(),t.show()},i=function(t){return t.children(".tve-cb").css({bottom:"0",opacity:"1"}).animate({bottom:"100%",opacity:"0"}).hide(),t.hide()};break;case"slide-down":e=function(t){return t.children(".tve-cb").removeAttr("style").css({top:"100%",opacity:"0"}).animate({top:"0",opacity:"1"}).show(),t.show()},i=function(t){return t.children(".tve-cb").css({top:"0",opacity:"1"}).animate({top:"100%",opacity:"0"}).hide(),t.hide()};break;case"slide":e=function(t,e){return t.removeAttr("style").slideDown(e)},i=function(t,e){return t.slideUp(e)};break;case"slide-right":e=function(t){return t.children(".tve-cb").removeAttr("style").css({opacity:"0",left:"100%"}).animate({left:"0",opacity:"1"}).show(),t.show()},i=function(t){return t.children(".tve-cb").css({opacity:"1",left:"0"}).animate({left:"100%",opacity:"0"}).hide(),t.hide()};break;case"slide-left":e=function(t){return t.children(".tve-cb").removeAttr("style").css({opacity:"0",right:"100%"}).animate({right:"0",opacity:"1"}).show(),t.show()},i=function(t){return t.children(".tve-cb").css({opacity:"1",right:"100%"}).animate({right:"0",opacity:"0"}).hide(),t.hide()};break;case"smooth-resize":e=function(t){var e=t.children(),i=t.data("contentHeight")||t.height();return e.css({height:a}).animate({height:i},500).promise().done(function(){e.css("height","100%")}),t.show()},i=function(t){return t.data("contentHeight",t.height()),t.hide()};break;case"swing-up":e=function(t){return t.css({transform:"rotateX(-20deg)",opacity:0}
5).animate({transform:"rotateX(0)",opacity:1},300).promise().done(function(){t.css({transform:"rotateX(0)",opacity:1})}),t.show()},i=function(t){return t.hide()};break;case"slide-fade":e=function(t,e){return t.animate({opacity:"toggle",height:"toggle"},e)},i=function(t,e){return t.animate({opacity:"hide",height:"hide"},e)};break;default:e=function(t){return t.show()},i=function(t){return t.hide()}}return{show:e,hide:i}}var d,a;d=ThriveGlobal.$j,a=TCB_Front,d.fn.tcbToggle=function(l){return this.each(function(){var t=d(this),e=t.closest(".thrv_toggle_title"),i=t.closest(".thrv_toggle"),a=e.next(),n=i.attr("data-animation-speed"),o=i.attr("data-animation"),r=t.hasClass("tve-state-expanded");void 0===l&&(l=r?"hide":"show");var s=g(o),c=i.data("tcbToggleInit");t.toggleClass("tve-state-expanded","show"===l),s[l](a,n).promise().done(function(){c&&t.hasClass("tve-state-expanded")&&!TCB_Front.isInViewport(t)&&d("html, body").scrollTop(t.offset().top),v(a,"show"===l)})})},d.fn.tcbTabsToggle=function(){var t=this.parents(".thrv-tabbed-content").first(),e="1"===t.attr("data-progress-style");if(!this.is(".tve_tS.tve-state-expanded")||e){var i,a=this,n=a.closest(".tve_scT"),o=n.find("> ul .tve_tS"),r=a.index(),s=n.find("> ul li"),c=o.index(),l=n.find('> .tve_scTC[style*="block"]'),d=l.data("contentHeight")||l.height(),h=n.find("> .tve_scTC").eq(r),u=o.attr("data-tve-custom-colour"),f=a.attr("data-tve-custom-colour"),p=t.attr("data-animation");p&&0<=c&&"carousel"===p&&(p=c<r?"slide-left":"slide-right"),i=g(p,d),a.attr("data-tve-custom-colour",void 0!==u&&!1!==u?u:""),o.attr("data-tve-custom-colour",void 0!==f&&!1!==f?f:""),l.is(":animated")&&setTimeout(function(){l.finish().hide()}),s.removeClass("tve_tS tve-state-expanded"),l.removeClass("tve-tc-visible"),a.siblings().removeClass("tve_tS tve-state-expanded"),v(l,!1),a.addClass("tve_tS tve-state-expanded"),h.addClass("tve-tc-visible"),i.hide(l,"medium").promise().done(function(){i.show(h,"medium"),v(h)}),e&&s.filter(function(t){return t<r}).addClass("tve-state-expanded")}else this.siblings().removeClass("tve_tS tve-state-expanded")},d.fn.tocToggle=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"show",e=d(this),i=e.closest(".tve-toc"),a=e.siblings(".tve-toc-content"),n=i.attr("data-animation-speed"),o=g(i.attr("data-animation"));e.toggleClass("tve-state-expanded","show"!==t),o[t](a,n),i.toggleClass("tve-toc-collapsed","show"!==t)}},
5"jumplink.js":function(t,e,i){var s,c;s=ThriveGlobal.$j,(c=TCB_Front).$document.on("click","a.tve-jump-scroll",function(t){if(this.hash.includes("comments")&&this.href!==this.hash)return!0;t.preventDefault(),t.stopPropagation();var e,i=s(this),a=s(t.target).closest(".tve-item-dropdown-trigger").length,n=i.closest("li.menu-item");try{e=s(this.hash)}catch(t){}if(n.length){if(a){var o=s.Event("click");return o.clickedTarget=t.target,void n.trigger(o)}n.trigger("menu_item_anchor_clicked")}if(e&&e.length){if(history&&history.pushState){var r=location.href;-1<r.indexOf("#")&&(r=r.substring(0,r.lastIndexOf("#"))),history.pushState({},document.title,r+this.hash)}return c.jumpScrollTo(e,this),!1}}),c.$document.on("click",".tve-jump-scroll[data-target]",function(t){t.preventDefault(),t.stopPropagation();var e,i=this.getAttribute("data-target");try{e=s(i)}catch(t){}if(e&&e.length){if(history&&history.pushState){var a=location.href;-1<a.indexOf("#")&&(a=a.substring(0,a.lastIndexOf("#"))),history.pushState({},document.title,a+i)}return c.jumpScrollTo(e,this),!1}}),TCB_Front.jumpScrollTo=function(i,t){var e="smooth"===t.getAttribute("jump-animation")?1500:100,a=null,n=0,o=s();function r(){o.each(function(){var t=s(this);n=Math.max(n,t.data("scroll_config").top+t.outerHeight())}),a&&(a.end=a.initial_end-n)}c.$body.off("tcb-sticky-remove tcb-sticky-add tcb-sticky-scroll-down").on("tcb-sticky-add",function(t,e){0<(e=e.filter(":not(.tve-toc)")).length&&0<i.closest(e.data("$parent")).length&&(o=o.add(e)),r()}).on("tcb-sticky-remove",function(t,e){o=o.not(e),r()}),function(t){if(0===t.closest(".tve-state-expanded").length&&t.hasClass("thrv_toggle_title")){var e=t.closest(".thrv_toggle");e.hasClass("tve-toggle-auto-collapse")&&e.find(".thrv_toggle_title").tcbToggle("hide")}else if(t.closest(".tve_tab_content:not(.tve-tc-visible)").length){var i=t.closest(".tve_tab_content:not(.tve-tc-visible)").index();t.closest(".thrv-tabbed-content").find(".tve_scT li").eq(i-1).tcbTabsToggle()}}(i),s("html, body").animate({scrollTop:i.offset().top-c.$body.offset().top},{duration:e,step:function(t,e){e.initial_end=e.initial_end||e.end,a=a||e}}).promise().then(function(){0===i.closest(".tve-state-expanded").length&&(i.hasClass("thrv_toggle_title")?i.trigger("click"):i.is(".tve_tab_title_item")&&i.tcbTabsToggle()),c.$body.trigger("tcb-jumplink-done",[i,t])})}},
5"menu.js":function(t,e,i){function f(t){return h(t).closest(".thrv_widget_menu")}var h,a,n,u;h=ThriveGlobal.$j,a=TCB_Front,u={init:function(){var i=this;tve_frontend_options.is_editor_page||this.frontendInit(),this.customMenuSwitchIcon(),n||(n=this.customMenuSwitchIcon.bind(this,!!tve_frontend_options.is_editor_page),a.addResizeCallback(n)),this.zIndexOrder(),h(".thrv_widget_menu").each(function(t,e){i.addMutationListener(e)})},zIndexOrder:function(){var t=h("ul.tve_w_menu.tve_horizontal");a.highestZIndex=t.length+6;var i=a.highestZIndex;t.each(function(){this.style.zIndex=i+5;var t=h(this),e=t.closest("#content");t.find("ul").css("z-index",i+6).parent().addClass("menu-item-has-children"),t.parentsUntil("body,#wrapper,#tve_editor").each(function(){var t=h(this);"static"===t.css("position")||t.hasClass("thrv_header")||t.css("z-index",i+7).addClass("tcb-mp")}),e.length&&"static"!==e.css("position")&&e.css("z-index",i+7).addClass("tcb-mp"),i--})},frontendInit:function(t){var e=this;function r(t,e){var i=t.attr("href"),a=t.attr("target");a||e.ctrlKey||e.metaKey?window.open(i,a||"_blank"):location.href=i}(t=t||a.$document).off("click.menu-disable-links").on("click.menu-disable-links",".tve-active-disabled .tve_w_menu .tve-state-active",function(t){var e=h(this).closest("li");if(!u.isHamburger(this)||!e.hasClass("menu-item-has-children"))return!(t.tvePreventNavigation=!0)}),t.off("menu_item_anchor_clicked").on("menu_item_anchor_clicked",".tve_w_menu li",function(t){var e=h(this);u.isHamburger(e)&&requestAnimationFrame(function(){u.toggleState(e,!1)})}),t.off("click.menu_item_click").on("click.menu_item_click",".tve_w_menu li:not(.tve-regular .tcb-mega-drop li)",function(t){if(t.tvePreventNavigation)return!0;if(t.stopPropagation(),h(t.target).closest(".tve-regular .tcb-mega-drop").length)return!0;var e=h(this),i=e.children("a").first(),a=i[0],n=!!e.find("ul").length,o=h(t.target).closest(".tve-item-dropdown-trigger").length||h(t.clickedTarget).closest(".tve-item-dropdown-trigger").length;return-1!==e.closest(".thrv_widget_menu").attr("class").indexOf("tve-custom-menu-switch-icon-")&&n?(!o&&e.hasClass("expand-children")&&function(t){var e=t.attr("href");return e&&"#"!==e&&0!==e.indexOf("javascript:")}(i)?i.hasClass("tve-jump-scroll")?i.trigger("click"):r(i,t):(e.toggleClass("expand-children"),e.find("ul").first()[e.hasClass("expand-children")?"slideDown":"slideUp"](100)),!1):(!n||!o)&&(!!i.attr("href")&&(i.hasClass("tve-jump-scroll")?(i.trigger("click"),!0):(r(i,t),void(u.isHamburger(e)&&a.pathname===window.location.pathname&&a.host===window.location.host&&a.protocol===window.location.protocol&&requestAnimationFrame(function(){u.toggleState(e,!1)})))))}),t.off("click.prevent_navigation").on("click.prevent_navigation",".tve_w_menu li a:not(.thrv_text_element a):not(.tve-regular .tcb-mega-drop a)",function(t){t.preventDefault()}),t.off("click.custom_menu").on("click.custom_menu",".tve-m-trigger",function(){return u.toggleState(this),!1}),t.off("mousedown.close_menu").on("mousedown.close_menu",function(t){h(t.target).closest(".thrv_widget_menu").length||e.closeAll()}),a.addResizeCallback(this.customMenuResponsive),this.customMenuResponsive(),this.refreshActiveStates(t),TCB_Front.$window.off("hashchange.tcb").on("hashchange.tcb",this.refreshActiveStates.bind(this,TCB_Front.$body)),this.positionLogo(t)},refreshActiveStates:function(t){(0<arguments.length&&void 0!==t?t:TCB_Front.$body).find(".tve-custom-menu-type li > a").each(function(){if(this.getAttribute("href")&&"#"!==this.getAttribute("href")&&0!==this.getAttribute("href").indexOf("javascript")){var t=h(this),e=location.protocol===this.protocol&&location.hostname===this.hostname&&location.pathname===this.pathname&&location.hash===this.hash;t.toggleClass("tve-state-active",e),t.parent().toggleClass("tve-state-active",e)}})},customMenuResponsive:function(){h(".tve-m-trigger:visible").length?h(".tve-m-trigger").each(function(){var t=h(this).parent().find("> ul");if(!t.data("tve-colors-added")&&t.find("ul a").attr("data-tve-custom-colour")){var e=t.find("ul a").attr("data-tve-custom-colour");t.find("> li > a").each(function(){var t=h(this);t.attr("data-tve-custom-colour")&&(t.attr("data-o-color",t.attr("data-tve-custom-colour")),t.attr("data-tve-custom-colour",e))})}t.data("tve-colors-added",!0)}):(h(".tve-m-expanded").removeClass("tve-m-expanded"),h(".tve-m-trigger").each(function(){var t=h(this).parent().find("> ul");if(!t.data("tve-colors-added")&&t.find("> li > a").attr("data-o-color")){var e=t.find("> li > a"),i=e.attr("data-o-color");e.attr("data-tve-custom-colour",i).removeAttr("data-o-color")}t.data("tve-colors-added",!1)}))},customMenuSwitchIcon:function(t){var l=!(0<arguments.length&&void 0!==t)||t,d=a.getDisplayType();h(".thrv_widget_menu").each(function(){var t,e=h(this),i=e.attr("data-tve-switch-icon"),a=e.attr("data-tve-allhoriz"),n=!1,o=e.find(".thrive-shortcode-html > ul"),r=e.data("tve-frontend-init");e.data("tve-frontend-init",!0),i||a||(i="tablet,mobile"),t=i.split(",");var s=e.hasClass("tve-regular")||!r&&!e.find(".tve-m-trigger").is(":visible");if(e.removeClass("tve-custom-menu-switch-icon-desktop tve-custom-menu-switch-icon-tablet tve-custom-menu-switch-icon-mobile"),l&&e.find("ul:not(.tcb-masonry.masonry)").removeAttr("style"),t.includes(d)?e.addClass("tve-custom-menu-switch-icon-".concat(d)):n=!0,e.toggleClass("tve-regular",n),e.toggleClass("tve-dropdown",!n),r&&n&&s)u.ensureOnScreenDropdown(e);else{if(e.toggleClass("tve-regular",n),e.toggleClass("tve-dropdown",!n),n)u.ensureRegularLogoSplit(e),e.find("ul").removeAttr("style"),e.find("li").removeClass("expand-children"),o.removeAttr("style"),setTimeout(function(){return e.find(".tcb-masonry").masonry()},1e3);else{if(u.ensureHamburgerLogoSplit(e),e.find(".tcb-masonry").each(function(){var t=h(this);t.data("masonry")&&t.masonry("destroy")}),!e.data("calc-dimensions")){e.find(".sub-menu").slideDown(0).slideUp(0).removeAttr("style"),e.data("calc-dimensions",!0);var c=o.attr("style","height: auto !important;max-height:none !important").outerHeight();o.removeAttr("style"),e.data("calc-height",c)}l?u.toggleState(e,!1):u.reposition(e)}u.ensureOnScreenDropdown(e)}})},isHamburger:function(t){var e=f(t);return e.length&&-1!==e.attr("class").indexOf("tve-custom-menu-switch-icon-")}
5,toggleState:function(t,e,i){var a=this,n=2<arguments.length&&void 0!==i?i:100,o=f(t),r=o.find("ul").first(),s=r.hasClass("tve-m-expanded"),c=!s;if(void 0!==e&&(c=e),c===s)return o;if(o.find(".tve-m-trigger").toggleClass("tve-triggered-icon",e),!o.hasClass("tve-mobile-dropdown"))return c?o.parents(".tcb-mp").addBack().css("z-index",800):setTimeout(function(){a.zIndexOrder()},100),r.toggleClass("tve-m-expanded",e).removeAttr("style"),o;if(c){var l=o.closest(".tve-page-section-in, #tve_editor, #wrapper"),d=r.offsetParent().offset(),h=l.offset(),u=parseInt(o.data("calc-height")||"500")+"px";r.attr("style","visibility: visible;margin-left: 0 !important;left: "+(h.left-d.left)+"px;width:"+l.width()+"px !important;max-height:"+u+"px"),r.addClass("tve-m-expanded"),setTimeout(function(){r.css("max-height","none")},n)}else o.data("calc-height",r.outerHeight()),r.stop().slideUp(n,function(){r.removeClass("tve-m-expanded").removeAttr("style"),r.css("visibility","hidden")});return o},reposition:function(t){var e=f(t),i=e.find("ul").first();if(!i.hasClass("tve-m-expanded")||!e.hasClass("tve-mobile-dropdown"))return e;var a=e.closest(".tve-page-section-in, #tve_editor, #wrapper"),n=i.offsetParent().offset(),o=a.offset(),r=parseInt(e.data("calc-height")||"500")+"px";return i.attr("style","visibility: visible;margin-left: 0 !important;left: "+(o.left-n.left)+"px;width:"+a.width()+"px !important;max-height:"+r+"px"),setTimeout(function(){i.css("max-height","none")},100),e},closeAll:function(){var i=this;h(".thrv_widget_menu").each(function(t,e){i.toggleState(e,!1)})},positionLogo:function(t){(t||a.$body).find(".tcb-menu-logo-wrap").each(function(t,e){var i=h(e),a=i.siblings(),n=Math.floor(a.length/2);a.eq(n).before(i)})},ensureLogoSplit:function(t){var e=f(t);e.hasClass("tcb-logo-split")&&(this.isHamburger(e)?this.ensureHamburgerLogoSplit(t):this.ensureRegularLogoSplit(t))},ensureHamburgerLogoSplit:function(t,e){var i=1<arguments.length&&void 0!==e?e:f(t).find("li.tcb-menu-logo-wrap"),a=f(t);if(i.children().length){a.find(".tcb-hamburger-logo").remove();var n=h('<div class="tcb-hamburger-logo"></div>');n.append(i.children()),a.find(".thrive-shortcode-html").prepend(n)}},ensureRegularLogoSplit:function(t){var e=f(t),i=e.find(".tcb-hamburger-logo .tcb-logo"),a=e.find("li.tcb-menu-logo-wrap");i.length&&a.length&&a.empty().append(i),this.handleLogoOverflow(e)},handleLogoOverflow:function(t){var e=t.find("li.tcb-menu-logo-wrap");if(e.length)if(this.menuOverflows(t)){var i=e.outerHeight(!0),a=e.outerWidth();e.closest(".thrive-shortcode-html").css("padding-top",i+"px"),e.css({top:"-".concat(i,"px"),left:"calc(50% - ".concat(Math.round(a/2),"px)"),position:"absolute"})}else e.removeAttr("style"),e.closest(".thrive-shortcode-html").css("padding-top","");else t.find(".thrive-shortcode-html").css("padding-top","")},menuOverflows:function(t){var e=0;return t.find(".tve_w_menu > li").each(function(){e+=h(this).outerWidth(!0)}),e>t.parent().width()-5},addMutationListener:function(t){function e(){cancelAnimationFrame(i),i=requestAnimationFrame(a.handleLogoOverflow.bind(a,n))}var i,a=this,n=f(t);if(window.ResizeObserver){var o=n.find("ul.tve_w_menu")[0];if(!o)return;var r=new ResizeObserver(e);if(!n.data("resize-observer")){r.observe(o),n.data("resize-observer",r);var s=new MutationObserver(function(t){Array.from(t).forEach(function(t){t.target.classList.contains("tcb-menu-logo-wrap")||"UL"===t.target.tagName&&"childList"===t.type&&t.addedNodes.length&&Array.from(t.addedNodes).forEach(function(t){return s.observe(t,{attributes:!0})})}),n.hasClass("tve-regular")&&e()});n.find(".tve_w_menu > li:not(.tcb-menu-logo-wrap)").each(function(t,e){s.observe(e,{attributes:!0})})}var c=n.find("li.tcb-menu-logo-wrap");c.length&&!c.data("resize-observer")&&(c.data("resize-observer",r),r.observe(c[0]))}},ensureOnScreenDropdown:function(t){var e=f(t),a=e.hasClass("tve-regular"),n=e.offset().left+e.outerWidth();e.find("li:last-child > ul").each(function(t,e){var i=h(e);0<=Math.ceil(i.offset().left+i.outerWidth()-n)&&a?i.css({left:"auto",right:"0px"}):i.css({left:"",right:""})})}},e.exports=u},
5"pagination.js":function(t,e,i){var o,r,s,c,l,n,d,h,u,f;o=ThriveGlobal.$j,r="tcb-pagination-number",s="tcb-pagination-current",c="tcb-pagination-dots",l="tcb-pagination-link",n="tcb-pagination-button",d="tcb-permanently-hidden",h=function(){function i(t,e){_classCallCheck(this,i),this.type=t,this.postList=e,this.$element=o('.tcb-pagination[data-list="'.concat(this.postList.identifier,'"]'))}return _createClass(i,[{key:"addLoadListeners",value:function(){console.warn("Overwrite this function!")}},{key:"load",value:function(){console.warn("Overwrite this function!")}},{key:"render",value:function(){console.warn("Overwrite this function!")}},{key:"isLoading",value:function(){return this.postList.isLoading()}},{key:"enableLoading",value:function(t){var e=0<arguments.length&&void 0!==t?t:"";this.postList.enableLoading(e)}},{key:"disableLoading",value:function(){this.postList.disableLoading()}},{key:"getTotalPostCount",value:function(){var t=0;return t+=Number(this.postList.listArgs.attr.total_post_count)||0,t+=Number(this.postList.listArgs.attr.total_sticky_count)||0}}],[{key:"factory",value:function(t,e){var i,a={load_more:f,numeric:u},n=ThriveGlobal.$j.Event("tcb_pagination_extra_classes.tcb");return e.$element.trigger(n),n.paginationClasses&&(a=_objectSpread({},a,{},n.paginationClasses)),void 0===a[t]?console.warn("A pagination class for this type does not exist!"):i=a[t],new i(t,e)}}]),i}(),u=function(){function a(t,e){var i;return _classCallCheck(this,a),(i=_possibleConstructorReturn(this,_getPrototypeOf(a).call(this,t,e))).firstPage=1,i.postsPerPage=parseInt(i.postList.listArgs.query.posts_per_page),i.lastPage=Math.ceil(i.getTotalPostCount()/i.postsPerPage),i.currentPage=parseInt(i.postList.listArgs.query.paged),i.pagesAroundCurrent=parseInt(i.postList.listArgs.attr.pages_near_current),i.totalPages=i.lastPage,i.buttons={},i.$element.attr("data-ct")||i.$element.attr("data-ct","pagination-123"),["first","last","prev","next"].forEach(function(t){var e=i.$element.find(".".concat(n,".tcb-pagination-").concat(t));switch(t){case"first":case"last":e.attr("data-page",i["".concat(t,"Page")])}i.buttons["$"+t]=e}),i.$pageNumberContainer=i.$element.find(".tcb-pagination-numbers-wrapper"),i.$label=i.$element.find(".tcb-pagination-label"),i}return _inherits(a,h),_createClass(a,[{key:"addLoadListeners",value:function(){var i=this;this.$element.on("click",".".concat(n),function(t){var e=o(t.target).closest(".".concat(n));i.load(e.attr("data-page"))}),this.$element.on("click",".".concat(r,":not(.").concat(s,", .").concat(c,")"),function(t){return i.load(t.currentTarget.dataset.page)})}},{key:"load",value:function(t){var e=this;if(t&&!this.isLoading()){this.enableLoading(),this.currentPage=parseInt(t);var i=this.postList.listArgs;i.query.paged=this.currentPage,this.postList.getPosts(function(t){e.postList.insertPosts(t,!0),e.render(),e.disableLoading()},i)}}},{key:"render",value:function(){this.renderButtons(),this.renderLabel(),this.renderPageNumbers(),this.$element.trigger("tcb_after_numeric_pagination_render",this),this.$element.removeClass(d)}},{key:"renderButtons",value:function(){var e=this;this.buttons.$prev.attr("data-page",this.currentPage-1),this.buttons.$next.attr("data-page",this.currentPage+1);var i=1===parseInt(tve_frontend_options.is_editor_page);[this.buttons.$first,this.buttons.$prev].forEach(function(t){t.hasClass(d)||t.toggleClass("tcb-disabled-pagination-button",!i&&e.currentPage<=e.firstPage)}),[this.buttons.$last,this.buttons.$next].forEach(function(t){t.hasClass(d)||t.toggleClass("tcb-disabled-pagination-button",!i&&e.currentPage>=e.lastPage)})}},{key:"renderLabel",value:function(){var a=this;this.$label.find(".thrive-shortcode-content").each(function(t,e){var i=e.dataset.shortcode;e.innerText=" ".concat(a.getLabelValue(i)," ")})}},{key:"getLabelValue",value:function(t){var e;switch(t){case"tcb_pagination_current_page":e=this.currentPage;break;case"tcb_pagination_total_pages":e=this.totalPages;break;case"tcb_pagination_current_posts":e=(this.currentPage-1)*this.postsPerPage+1+"-"+this.currentPage*this.postsPerPage;break;case"tcb_pagination_total_posts":e=this.totalPages*this.postsPerPage;break;default:e=""}return e}},{key:"renderPageNumbers",value:function(){this.$pageNumberContainer.empty();for(var t=!0,e=1;e<=this.totalPages;e++){var i=void 0;if(e===this.currentPage)i="current";else if(1===e||e>=this.currentPage-this.pagesAroundCurrent&&e<=this.currentPage+this.pagesAroundCurrent||e===this.totalPages)i="link",t=!0;else{if(i="dots",!t)continue;t=!1}
5this.$pageNumberContainer.append(a.renderPageNumber(e,i))}}}],[{key:"renderPageNumber",value:function(t,e){var i,a=[r,"thrv_wrapper"],n={};switch(1<arguments.length&&void 0!==e?e:""){case"current":a.push(s),i=".".concat(s);break;case"dots":a.push(c),i=".".concat(c),t="...";break;case"link":a.push(l),i=".".concat(l),n={"data-page":t},t='<a href="javascript:void(0)">'.concat(t,"</a>")}return n["data-selector"]=i,o("<p>".concat(t,"</p>")).addClass(a.join(" ")).attr(n)}}]),a}(),f=function(){function a(t,e){var i;return _classCallCheck(this,a),(i=_possibleConstructorReturn(this,_getPrototypeOf(a).call(this,t,e))).$button=i.$element.find(".tcb-pagination-load-more-button"),i}return _inherits(a,h),_createClass(a,[{key:"addLoadListeners",value:function(){this.$button.on("click",this.load.bind(this))}},{key:"load",value:function(){var e=this;if(!this.isLoading()){this.enableLoading("load-bot");var t=this.postList.listArgs;t.query.paged+=1,this.postList.getPosts(function(t){e.postList.insertPosts(t),e.render(),e.disableLoading()},t)}}},{key:"render",value:function(){var t=this.postList.listArgs;!(1===parseInt(tve_frontend_options.is_editor_page))&&t.query.paged*t.query.posts_per_page>=this.getTotalPostCount()&&this.$element.hide(),this.$element.removeClass(d)}}]),a}(),e.exports=h},
5"post-list.js":function(t,e,i){var o,n,a;o=ThriveGlobal.$j,n=i("./pagination"),a=function(){function a(t){_classCallCheck(this,a),this.$element=t,this.content="",this.listArgs={};var e=this.getAttr("data-css"),i=ThriveGlobal.$j.Event("tcb_post_list_identifier.tcb");this.$element.trigger(i),i.identifier&&(e=i.identifier),this.identifier=e,this.setArgs()}return _createClass(a,[{key:"getPaginationInstance",value:function(){if(this.listArgs){var t=this.listArgs.attr["pagination-type"];if(t.length&&"none"!==t)return n.factory(t,this)}}},{key:"renderPagination",value:function(){this.pagination=this.getPaginationInstance(),this.pagination&&(tve_frontend_options.is_editor_page||this.pagination.addLoadListeners(),this.pagination.render())}},{key:"setArgs",value:function(){var e=this;tve_frontend_options.is_editor_page?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}}:"undefined"!=typeof tcb_post_lists?(this.listArgs=tcb_post_lists.find(function(t){return e.$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.content=o('.tcb-post-list-template[data-identifier="'+this.listArgs.template+'"]').html()),TCB_Front.$document.on("mousedown",'.tcb-post-list[data-disabled-links="1"] > article',function(t){switch(t.button){case 0:window.open(o(this).attr("data-permalink"),"_self");break;case 1:window.open(o(this).attr("data-permalink"),"_blank")}})):console.warn("Error initializing the post list parameters")}},{key:"getAttr",value:function(t){return this.$element.attr(t)}},{key:"getPosts",value:function(e,t){var i=this,a=1<arguments.length&&void 0!==t?t:this.listArgs;o.ajax({url:tve_frontend_options.routes.posts+"/html",method:"POST",data:{content:this.content,args:a},success:function(t){"function"==typeof e&&e(t),i.masonryRedo(),i.initStarRating(),TCB_Front.event_triggers(i.$element)},error:function(){console.warn("There was an error and the content could not be loaded.")}})}},{key:"insertPosts",value:function(t,e){var i=1<arguments.length&&void 0!==e&&e;if(t.count&&t.posts){var a=this.$element.clone().empty();for(var n in t.posts)t.posts.hasOwnProperty(n)&&a.append(t.posts[n]);i?(this.$element.replaceWith(a),this.identifier.includes("tve-u-")?this.$element=o(".tcb-post-list[data-css=".concat(this.identifier,"]")):this.$element=o(this.identifier)):this.$element.append(a.html())}}},{key:"isLoading",value:function(){return this.$element.data("loading")}},{key:"enableLoading",value:function(t){var e=0<arguments.length&&void 0!==t?t:"";this.$element.addClass("tve-loading"+(e.length?" "+e:"")),this.$element.data("loading",!0)}},{key:"disableLoading",value:function(){var t=this;setTimeout(function(){return t.$element.removeClass("tve-loading load-bot")},100),this.$element.data("loading",!1)}},{key:"masonryRedo",value:function(t){var e=0<arguments.length&&void 0!==t?t:this.$element;if(e.length&&e.data("masonry")){var i=e.find("article:not(.masonry-brick)");e.masonry("appended",i),e.masonry("layout")}}},{key:"initStarRating",value:function(){this.$element.find(".tcb-custom-field-source.thrv-rating").length&&TCB_Front.dynamicElements.init()}}],[{key:"repositionFooter",value:function(){var t=o(".thrv_footer"),e=document.body,i=document.documentElement,a=Math.max(e.scrollHeight,e.offsetHeight,i.clientHeight,i.scrollHeight,i.offsetHeight);t.length&&a>e.offsetHeight&&t.css({position:"",top:""})}}]),a}(),e.exports=a},
5"query-string.js":function(t,i,e){!function(){"undefined"==typeof URLSearchParams&&(window.URLSearchParams=function(t){var i=this;i.searchString=t,i.get=function(t){var e=new RegExp("[?&]"+t+"=([^&#]*)").exec(i.searchString);return null==e?null:decodeURI(e[1])||0}});var e=new URLSearchParams(window.location.search);i.exports={get:function(t){return"string"!=typeof t&&(t=""),e.get(t)}}}(ThriveGlobal.$j,TCB_Front)},
5"reserved-terms.js":function(t,e,i){ThriveGlobal.$j,TCB_Front,e.exports=["attachment","attachment_id","author","author_name","calendar","cat","category","category__and","category__in","category__not_in","category_name","comments_per_page","comments_popup","custom","customize_messenger_channel","customized","cpage","day","debug","embed","error","exact","feed","fields","hour","link_category","m","minute","monthnum","more","name","nav_menu","nonce","nopaging","offset","order","orderby","p","page","page_id","paged","pagename","pb","perm","post","post__in","post__not_in","post_format","post_mime_type","post_status","post_tag","post_type","posts","posts_per_archive_page","posts_per_page","preview","robots","s","search","second","sentence","showposts","static","status","subpost","subpost_id","tag","tag__and","tag__in","tag__not_in","tag_id","tag_slug__and","tag_slug__in","taxonomy","tb","term","terms","theme","title","type","types","w","withcomments","withoutcomments","year"]},
5"smartcomplete.js":function(t,e,i){var o;ThriveGlobal.$j,o=TCB_Front,e.exports={init:function(t){var i=this;tve_frontend_options.is_editor_page?t.find("input[data-hide],textarea[data-hide]").each(function(t,e){i.handleInput(e,!1)}):setTimeout(function(){return i.handleSmartComplete(t)})},handleSmartComplete:function(t){var n=this;t.find("[default-value]:not([data-complete-type])").each(function(t,e){e.value=e.getAttribute("default-value")}),t.find("[data-complete-type]").each(function(t,e){var i=e.dataset.completeValue;switch(e.dataset.completeType){case"user":if(e.dataset.completeValue)if(e.dataset.completeValue.includes("wp"))i=tve_frontend_options.current_user[e.dataset.completeValue.replace("wp.","")];else if("ip"===e.dataset.completeValue)i=tve_frontend_options.ip;else{var a=TCB_Front.detectBrowser();(i=Object.keys(a).filter(function(t){return a[t]&&"webkit"!==t}).toString()).includes("version")&&(i=i.replace("version",TCB_Front.browser.version))}break;case"time":i=n.convertDate((e.dataset.completeValue||"")+" HH:mm:ss");break;case"query":i=TCB_Front.queryString.get(e.dataset.completeValue);break;case"post":i=tve_frontend_options.post_request_data[e.dataset.completeValue];break;case"cookie":i=o.getCookie(e.dataset.completeValue);break;case"content":i=tve_frontend_options[e.dataset.completeValue];break;case"source":i=document.referrer;break;case"shortcode":e.parentNode.dataset.completeValue&&(i=e.parentNode.dataset.completeValue),i=i.replace(/\[(.*?)\]/g,"")}!i&&e.getAttribute("data-hide")&&n.handleInput(e,!1),(i=i||e.getAttribute("default-value"))&&(e.value=i)}),t.find('[type="radio"][default-value]').each(function(){this.checked=this.value===this.getAttribute("default-value")}),t.find('[type="checkbox"][default-value]').each(function(){this.checked="checked"===this.getAttribute("default-value")})},handleInput:function(t,e){var i=1<arguments.length&&void 0!==e&&!e?"remove":"add",a=t.closest("form").querySelector('[data-label-for="'.concat(t.parentElement.getAttribute("data-label"),'"]'));t.parentElement.classList[i]("tcb-permanently-hidden"),t.parentElement.previousElementSibling&&"label"===t.parentElement.previousElementSibling.tagName.toLowerCase()&&t.parentElement.previousElementSibling.classList[i]("tcb-permanently-hidden"),a&&a.classList[i]("tcb-permanently-hidden")},convertDate:function(t){var e=new Date;function i(t,e){var i=t+"";for(e=e||2;i.length<e;)i="0"+i;return i}var a=e.getFullYear();t=(t=(t=t.replace(/(^|[^\\])yyyy+/g,"$1"+a)).replace(/(^|[^\\])yy/g,"$1"+a.toString().substr(2,2))).replace(/(^|[^\\])y/g,"$1"+a);var n=e.getMonth()+1;t=(t=(t=(t=t.replace(/(^|[^\\])MMMM+/g,"$1"+["\0","January","February","March","April","May","June","July","August","September","October","November","December"][n])).replace(/(^|[^\\])MMM/g,"$1"+["�","Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][n])).replace(/(^|[^\\])MM/g,"$1"+i(n))).replace(/(^|[^\\])M/g,"$1"+n);var o=e.getDate();t=(t=(t=(t=t.replace(/(^|[^\\])dddd+/g,"$1"+["�","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][o])).replace(/(^|[^\\])ddd/g,"$1"+["�","Sun","Mon","Tue","Wed","Thu","Fri","Sat"][o])).replace(/(^|[^\\])dd/g,"$1"+i(o))).replace(/(^|[^\\])d/g,"$1"+o);var r=e.getHours(),s=12<r?r-12:0==r?12:r;t=(t=(t=t.replace(/(^|[^\\])HH+/g,"$1"+i(r))).replace(/(^|[^\\])H/g,"$1"+r)).replace(/(^|[^\\])hh+/g,"$1"+i(s));var c=e.getMinutes();t=t.replace(/(^|[^\\])mm+/g,"$1"+i(c));var l=e.getSeconds();return t=t.replace(/(^|[^\\])ss+/g,"$1"+i(l))}}},
5"social-share.js":function(t,e,i){var u,a;u=ThriveGlobal.$j,a=TCB_Front,e.exports=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:a.$body;if(!(1<arguments.length&&void 0!==arguments[1]&&arguments[1])){var e=t.find(".thrv_social.thrv_social_custom"),h=TCB_Front.getDisplayType();e.each(function(t,e){var i=u(e),a=i.attr("data-device-config"),n=a&&a.length?JSON.parse(a):{};if(n[h]){var o=n[h].button_type||"tve_social_itb",r="1"===n[h].isFullWidth,s=n[h].showCount,c="1"===n[h].isVertical,l=i.find(".tve_social_items").attr("class").replace(/(tve_social_items|tve_social_custom)/g,"").match(/(\s+)?tve_social_([a-z]{2,3})/),d=l?"tve_social_"+l[2]:"tve_social_itb";d!==o&&i.find(".tve_social_items").removeClass(d).addClass(o),n[h].isFullWidth&&i.toggleClass("tcb-social-full-width",r),"0"===s&&i.find(".tve_s_share_count").remove(),n[h].isVertical&&i.toggleClass("tcb-social-vertical",c)}})}}},
5"sticky.js":function(t,k,e){!function(l,d){d.identifiers=_objectSpread({},d.identifiers||{},{parentStickyParent:".tcb-col,.tve-cb,.tve-page-section-in,#tve_editor",pageStickyParent:"#tve_editor,.symbol-section-in,.thrv_wrapper.section,.thrive-symbol-shortcode,.tcb-post-list",stickyParentType:".tcb-col,.tve-cb,.tve-page-section-in"});function t(e,i){var a;return function(){clearTimeout(a);var t=!a||n;a=setTimeout(function(){a=null},i),t&&e.apply(this,arguments)}}var h,u,f,p,v,g,r,o={boxSizing:"",marginTop:"",marginLeft:"",height:"",top:"",bottom:"",position:"",opacity:"",minWidth:"",maxWidth:"",textDecoration:"",zIndex:""},m=t(function(t,e){t.stop().animate(e,200)},200),s=l(),n=!1,c={},e={},a=!1;function _(t){return Math.min(u.top+h.data("$$position").top+t-g.top+h.data("marginTop"),(h.data("append-target")||h.parent()).height()-h.outerHeight())}function i(t,e){(t=t[1<arguments.length&&void 0!==e&&e?"filter":"find"]("[data-tve-scroll]")).each(function(){try{var t=JSON.parse(this.dataset.tveScroll),e=l(this);if(e.hasClass("thrive-symbol-shortcode")&&(e=e.parent()),e.addClass("tve-scroll-".concat(t.mode)),"parallax"===t.mode){if(!t.parallax||!Object.keys(t.parallax).length)return;var i=e.offset(),a=e.outerHeight(),n={width:e.outerWidth(),height:a,top:i.top,left:i.left,elementRange:a+window.innerHeight};e.data("parallaxSettings",t.parallax),e.data("elem_data",n)}else if(r)return;if(e.data("$parent",e.parent()),t.top=parseInt(t.top||"0"),t.end=t.end||"default",t.stickyPosition=t.stickyPosition||"top","bottom"===t.stickyPosition){var o=e.css("display").trim();"none"===o&&(o="block"),e.data("defaultTop",t.top),e.data("defaultDisplay",o),t.top=window.innerHeight-t.top-e.outerHeight()}else t.top+=d.body_offset?d.body_offset.top:l("body").offset().top;e.data("scroll_config",t).data("append-target",function(t,e){if(t.find("iframe,video").length||t.find(".tcb-video-background-el").length||t.hasClass("thrv_header"))return!1;switch(e){case"parent":return t.parent().closest(d.identifiers.parentStickyParent);case"page":default:return t.closest(d.identifiers.pageStickyParent)}}(e,t.end)),"element"===t.end&&e.data("stop-target",l("#"+(t.el_id&&t.el_id.replace("#","")||"some-not-found-id"))),r||delete this.dataset.tveScroll,s=s.add(e)}catch(t){console.error(t)}})}function b(t,e,i){n=i,s.each(function(){if(C(this),!function(){if(!u.disabled||!u.disabled.length)return!0;if(r){var e=!0;return u.disabled.forEach(function(t){"desktop"!==t||TCB_Front.$body.is(".preview-tablet,.preview-mobile")?d.$body.hasClass("preview-".concat(t))&&(e=!1):e=!1}),e}var t=d.$window.width();return t<=767?-1===u.disabled.indexOf("mobile"):t<=1023?-1===u.disabled.indexOf("tablet"):-1===u.disabled.indexOf("desktop")}()||a)return c.on_scroll_up_default(t,!0),"parallax"===u.mode&&y(h,a),void h.removeClass("tve-scroll-".concat(u.mode));"parallax"!==u.mode&&(p||(h.data("$$offset",h.offset()),h.data("marginTop",Number(h.css("margin-top").replace("px",""))),h.data("$$position",h.position()),h.data("$$scroll",t),"element"===u.end&&h.data("$$stop-offset",h.data("stop-target").offset()||{top:1e6})),g=h.data("$$offset")),c["on_scroll_"+e+"_"+u.end].call(c,t)})}function y(t,e){var i=0<arguments.length&&void 0!==t?t:d.$body,a=1<arguments.length&&void 0!==e&&e;i.each(function(t,e){d.inlineCssVariable(e,{"--parallaxR":a?"":"0","--parallaxB":a?"":"0","--parallaxS":a?"":"1","--parallaxO":a?"":"1","--parallaxTX":a?"":"0","--parallaxTY":a?"":"0","--parallaxRY":a?"":"0","--parallaxP":a?"":"1000px"})})}function w(t,e){var i=!(0<arguments.length&&void 0!==t)||t,a=1<arguments.length&&void 0!==e?e:"default",n=i?"addClass":"removeClass";i&&h.hasClass("tve-sticky-".concat(a,"-hidden"))?h[0].style.setProperty("display","none","important"):h[n]("tve-sticky-".concat(a,"-hidden"))["".concat(i?"fadeOut":"fadeIn")]({duration:600,complete:function(){h[0].style.setProperty("display","".concat(i?"none":"".concat(h.data("defaultDisplay"))),"important")}})}function C(t){h=l(t),"parallax"!==(u=h.data("scroll_config")).mode&&("bottom"===u.stickyPosition&&(u.top=window.innerHeight-h.data("defaultTop")-h.outerHeight(),h.data("scroll_config",u)),f="tve-sticky-"+u.end,p=t.classList.contains(f),v=h.data("clone-sticky"))}c.on_scroll_down_default=function(t,e){var i=0,a=(e=e||{}).position||"fixed",n=!0;"appear"===u.mode&&(e.top=-h.outerHeight(),i=-e.top);var o=t+u.top>g.top+i;if("bottom"===u.stickyPosition&&(o=t+window.innerHeight>g.top+h.height()+Number(h.data("defaultTop")),n=!1,d.isBottomScroll(t)&&w(!0,"default")),p)return"appear"===u.mode&&m(h,e),void(n&&d.$body.trigger("tcb-sticky-add",[h]));if(o){!function(){if(!(v=h.data("clone-sticky"))){var t=h.outerHeight();h.parent().hasClass("tcb-clear")&&(t=h.parent().outerHeight()),v=l('<div class="thrv_wrapper"></div>').css({boxSizing:"border-box",padding:0,width:h.outerWidth(),height:t,marginTop:h.css("margin-top"),marginBottom:h.css("margin-bottom"),marginLeft:h.css("margin-left"),marginRight:h.css("margin-right"),position:h.css("position")}),h.data("clone-sticky",v),h.trigger("tcb.sticky.ensure_placeholder")}}(),h.addClass(f),delete e.position,h.data("saved_props",{offset:g,width:h[0].style.width||"",left:h[0].style.left||""}),h.css(l.extend({width:h.width(),height:h.height(),top:u.top+"px",left:g.left+"px"},e)),h.before(v);var r="0px";if("parent"===u.end){var s=h.css("margin-left");s===h.css("margin-left")&&(r=s)}h[0].style.setProperty("margin-top","0px","important"),h[0].style.setProperty("margin-left",r,"important"),h[0].style.setProperty("min-width","0","important"),h[0].style.setProperty("max-width","none","important"),h[0].style.setProperty("position",a,"important"),h[0].style.setProperty("box-sizing","content-box","important");var c=Number(h.css("z-index"));h[0].style.setProperty("z-index",isNaN(c)?"14":Math.max(c,14),"important"),p=!0,h.data("append-target")&&(h.appendTo(h.data("append-target")),h.data("$parent").is("a")&&(h.wrap(h.data("$parent").clone().empty().addClass("tcb-sticky-anchor")),h[0].style.setProperty("text-decoration","inherit","
5important"))),h.hasClass("thrv_header")&&h[0].style.setProperty("z-index",90),n&&d.$body.trigger("tcb-sticky-add",[h]),h.trigger("tcb.sticky.is_sticky")}},c.on_scroll_up_default=function(t,e){if(v&&p){(e=!!e)||"appear"!==u.mode||m(h,{top:u.top});var i=v.offset().top||h.data("saved_props").offset.top,a=t+u.top<=i,n=!0;"bottom"===u.stickyPosition&&(a=t+window.innerHeight<=i+h.height()+Number(h.data("defaultTop")),n=!1,h.hasClass("tve-sticky-default-hidden")&&w(!1)),e||a?(p=!1,h.removeClass(f).stop().css(Object.assign({},o,h.data("saved_props"))),document.contains(v[0])&&h.data("append-target")&&v.before(h),v.detach(),d.$body.find(".tcb-sticky-anchor:empty").remove(),n&&d.$body.trigger("tcb-sticky-remove",h)):n&&d.$body.trigger("tcb-sticky-add",[h])}},c.on_scroll_down_parent=function(t){var e=h.data("prevTop"),i=e||0,a=_(t);t&&"bottom"===u.stickyPosition&&a&&a===i&&(w(!0,"parent"),h.data("hideTop",a)),e?h.data("prevTop",a):h.data("prevTop","0"),p?(h.css({top:a}),"bottom"!==u.stickyPosition&&d.$body.trigger("tcb-sticky-add",[h])):c.on_scroll_down_default(t,{position:"absolute",left:h.data(h.data("appendTarget").is(d.identifiers.stickyParentType)?"$$position":"$$offset").left,top:a})},c.on_scroll_up_parent=function(t){if(c.on_scroll_up_default(t),p){var e=_(t);"bottom"===u.stickyPosition&&h.hasClass("tve-sticky-parent-hidden")&&(h.data("hideTop")!==e?(w(!1,"parent"),h.data("prevTop",0),h.data("hideTop",0)):h[0].style.setProperty("display","none","important")),h.css("top",e)}},c.on_scroll_down_element=function(t){var e=h.data("$$stop-offset").top-t-h.outerHeight(),i=Math.min(u.top,e),a={top:i};t&&"bottom"===u.stickyPosition&&i&&i===e&&w(!0,"element"),p?(h.css("top",a.top),"bottom"!==u.stickyPosition&&d.$body.trigger("tcb-sticky-add",[h])):c.on_scroll_down_default(t,a)},c.on_scroll_up_element=function(t){if(c.on_scroll_up_default(t),p){var e=Math.min(u.top,h.data("$$stop-offset").top-t-h.outerHeight());h.css("top",e),"bottom"===u.stickyPosition?h.hasClass("tve-sticky-element-hidden")&&e===u.top&&w(!1,"element"):d.$body.trigger("tcb-sticky-add",[h])}},c.on_scroll_down_parallax=c.on_scroll_up_parallax=function(t){var e=h.data("elem_data"),o=h.data("parallaxSettings");if(o&&Object.keys(o).length&&e){var r,s=[],c=function(t,e){var i=e.top-t-window.innerHeight;return 100/e.elementRange*(-1*i)}(t,e);Object.keys(o).forEach(function(t){var e,i=o[t],a=function(t,e){var i=0,a=e.direction;if(["in-out","out-in"].includes(a)&&(a=a.split("-")[t<=e.middle?"0":"1"],"in-out"===e.direction)){var n=e.middle-e.start;"in"===a?t+=n:t-=n,t===e.middle&&(t="in"===a?-1:101)}t<e.start?i="in"===a?0:100:t<e.end?(i=function(t,e){return+(e/t*100).toFixed(2)}(e.end-e.start,t-e.start),"out"===a&&(i=100-i)):i="out"===a?0:100;return i}(r=Number(c<i.start?i.start:c>i.end?i.end:c),i);switch(t){case"vertical":case"horizontal":case"rotate":e=function(t,e){return-(t-50)*e}(r="in"===i.direction?r:100-r,i.speed);break;case"scale":e=1+i.speed*a/1e3;break;case"blur":e=i.speed-l(i.speed,a);break;case"transparency":var n=i.speed/10;e=1-n+l(n,a);break;case"3dperspective":i.perspective=Number(i.perspective),e="from"===i.direction?(1e3-i.perspective)*(r-i.start)/100*i.speed+i.perspective:(r=100-r,Math.max(i.perspective,i.perspective*r/100*i.speed)),e=Math.max(e,100),d.inlineCssVariable(h,"--parallaxRY")!=="".concat(i.degrees,"deg")&&s.push({key:"RY",value:"".concat(i.degrees,"deg")})}s.push({key:i.settings.key,value:"".concat(e).concat(i.settings.um)})}),s.length&&s.forEach(function(t){d.inlineCssVariable(h,"--parallax".concat(t.key),t.value)})}function l(t,e){return t*e/100}};var T=t(function(){s.each(function(){C(this),c.on_scroll_up_default(0,!0)}),b(d.$document.scrollTop(),"down",!0)},50);e.initSticky=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:d.$body;r=1<arguments.length&&void 0!==arguments[1]&&arguments[1],i(t),s.length&&(y(),r||(d.$body[0].style.overflowX="hidden")),d.add_scroll_callback(b),d.addResizeCallback(T)},e.destroyScrollBehavior=function(){a=!0,TCB_Front.$window.trigger("scroll"),s=l(),a=!1},e.forceAddElement=function(t){s=s.add(t)},k.exports=e}(ThriveGlobal.$j,TCB_Front)},
5"svg-icons.js":function(t,e,i){var o,a;o=ThriveGlobal.$j,TCB_Front,a={get:function(t){var e=this.icons[t]||"";return e?'<svg xmlns="http://www.w3.org/2000/svg" class="tcb-{icon}" viewBox="{viewbox}">{html}</svg>'.replace("{viewbox}",e.viewbox||"0 0 32 32").replace("{icon}",t).replace("{html}",e.html||e):""},render:function(t,e,i,a){var n=!(3<arguments.length&&void 0!==a)||a;t[2<arguments.length&&void 0!==i?i:"html"](this.get(e)),n&&t.addClass("thrv-svg-icon")},migrate:function(t){var i=this,a=["cross","forward"],n={tve_s_fb_share:"facebook",tve_s_t_share:"twitter",tve_s_in_share:"linkedin",tve_s_pin_share:"pinterest",tve_s_xing_share:"xing"};t.find('[class^="thrv-icon-"], [class*=" thrv-icon-"], .tve_s_item').not(".thrv-svg-icon").each(function(t,e){a.some(function(t){if(e.className.includes(t))return i.render(o(e),t),!0})||Object.keys(n).some(function(t){e.className.includes(t)&&!e.querySelector(".tcb-icon")&&i.render(o(e).find(".tve_s_icon"),n[t])})}),this.render(t.find(".rv_button_rounded_rectangle_light .overlay_play_button:empty"),"yt-play")},icons:{spinner9:'<path d="M16 0c-8.711 0-15.796 6.961-15.995 15.624 0.185-7.558 5.932-13.624 12.995-13.624 7.18 0 13 6.268 13 14 0 1.657 1.343 3 3 3s3-1.343 3-3c0-8.837-7.163-16-16-16zM16 32c8.711 0 15.796-6.961 15.995-15.624-0.185 7.558-5.932 13.624-12.995 13.624-7.18 0-13-6.268-13-14 0-1.657-1.343-3-3-3s-3 1.343-3 3c0 8.837 7.163 16 16 16z"></path>',cross:'<path d="M31.708 25.708c-0-0-0-0-0-0l-9.708-9.708 9.708-9.708c0-0 0-0 0-0 0.105-0.105 0.18-0.227 0.229-0.357 0.133-0.356 0.057-0.771-0.229-1.057l-4.586-4.586c-0.286-0.286-0.702-0.361-1.057-0.229-0.13 0.048-0.252 0.124-0.357 0.228 0 0-0 0-0 0l-9.708 9.708-9.708-9.708c-0-0-0-0-0-0-0.105-0.104-0.227-0.18-0.357-0.228-0.356-0.133-0.771-0.057-1.057 0.229l-4.586 4.586c-0.286 0.286-0.361 0.702-0.229 1.057 0.049 0.13 0.124 0.252 0.229 0.357 0 0 0 0 0 0l9.708 9.708-9.708 9.708c-0 0-0 0-0 0-0.104 0.105-0.18 0.227-0.229 0.357-0.133 0.355-0.057 0.771 0.229 1.057l4.586 4.586c0.286 0.286 0.702 0.361 1.057 0.229 0.13-0.049 0.252-0.124 0.357-0.229 0-0 0-0 0-0l9.708-9.708 9.708 9.708c0 0 0 0 0 0 0.105 0.105 0.227 0.18 0.357 0.229 0.356 0.133 0.771 0.057 1.057-0.229l4.586-4.586c0.286-0.286 0.362-0.702 0.229-1.057-0.049-0.13-0.124-0.252-0.229-0.357z"></path>',checkmark:'<path d="M27 4l-15 15-7-7-5 5 12 12 20-20z"></path>',forward:{viewbox:"0 0 18 18",html:'<path d="M16.711 8.29l-6-5.996c-0.391-0.391-1.026-0.391-1.417 0s-0.391 1.025 0 1.417l4.293 4.29h-11.59c-0.553 0-1.001 0.448-1.001 1s0.448 1 1.001 1h11.59l-4.292 4.29c-0.391 0.391-0.391 1.025 0.001 1.417s1.026 0.391 1.417 0l6-5.997c0.196-0.196 0.294-0.453 0.294-0.71s-0.097-0.514-0.294-0.71z"></path>'},sort:{viewbox:"0 0 16 28",html:'<path d="M16 17q0 0.406-0.297 0.703l-7 7q-0.297 0.297-0.703 0.297t-0.703-0.297l-7-7q-0.297-0.297-0.297-0.703t0.297-0.703 0.703-0.297h14q0.406 0 0.703 0.297t0.297 0.703zM16 11q0 0.406-0.297 0.703t-0.703 0.297h-14q-0.406 0-0.703-0.297t-0.297-0.703 0.297-0.703l7-7q0.297-0.297 0.703-0.297t0.703 0.297l7 7q0.297 0.297 0.297 0.703z"></path>'},"sort-desc":{viewbox:"0 0 16 28",html:'<path d="M16 17q0 0.406-0.297 0.703l-7 7q-0.297 0.297-0.703 0.297t-0.703-0.297l-7-7q-0.297-0.297-0.297-0.703t0.297-0.703 0.703-0.297h14q0.406 0 0.703 0.297t0.297 0.703z"></path>'},"sort-asc":{viewbox:"0 0 16 28",html:'<path d="M16 11q0 0.406-0.297 0.703t-0.703 0.297h-14q-0.406 0-0.703-0.297t-0.297-0.703 0.297-0.703l7-7q0.297-0.297 0.703-0.297t0.703 0.297l7 7q0.297 0.297 0.297 0.703z"></path>'},facebook:{viewbox:"0 0 16 28",html:'<path d="M14.984 0.187v4.125h-2.453q-1.344 0-1.813 0.562t-0.469 1.687v2.953h4.578l-0.609 4.625h-3.969v11.859h-4.781v-11.859h-3.984v-4.625h3.984v-3.406q0-2.906 1.625-4.508t4.328-1.602q2.297 0 3.563 0.187z"></path>'},twitter:{viewbox:"0 0 26 28",html:'<path d="M25.312 6.375q-1.047 1.531-2.531 2.609 0.016 0.219 0.016 0.656 0 2.031-0.594 4.055t-1.805 3.883-2.883 3.289-4.031 2.281-5.047 0.852q-4.234 0-7.75-2.266 0.547 0.063 1.219 0.063 3.516 0 6.266-2.156-1.641-0.031-2.938-1.008t-1.781-2.492q0.516 0.078 0.953 0.078 0.672 0 1.328-0.172-1.75-0.359-2.898-1.742t-1.148-3.211v-0.063q1.062 0.594 2.281 0.641-1.031-0.688-1.641-1.797t-0.609-2.406q0-1.375 0.688-2.547 1.891 2.328 4.602 3.727t5.805 1.555q-0.125-0.594-0.125-1.156 0-2.094 1.477-3.57t3.57-1.477q2.188 0 3.687 1.594 1.703-0.328 3.203-1.219-0.578 1.797-2.219 2.781 1.453-0.156 2.906-0.781z"></path>'},linkedin:{viewbox:"0 0 28 28",html:'<path d="M5.453 9.766v15.484h-5.156v-15.484h5.156zM5.781 4.984q0.016 1.141-0.789 1.906t-2.117 0.766h-0.031q-1.281 0-2.063-0.766t-0.781-1.906q0-1.156 0.805-1.914t2.102-0.758 2.078 0.758 0.797 1.914zM24 16.375v8.875h-5.141v-8.281q0-1.641-0.633-2.57t-1.977-0.93q-0.984 0-1.648 0.539t-0.992 1.336q-0.172 0.469-0.172 1.266v8.641h-5.141q0.031-6.234 0.031-10.109t-0.016-4.625l-0.016-0.75h5.141v2.25h-0.031q0.313
5-0.5 0.641-0.875t0.883-0.812 1.359-0.68 1.789-0.242q2.672 0 4.297 1.773t1.625 5.195z"></path>'},pinterest:'<path d="M16 0c-8.837 0-16 7.163-16 16 0 6.778 4.217 12.568 10.169 14.899-0.14-1.266-0.266-3.208 0.055-4.59 0.291-1.249 1.876-7.953 1.876-7.953s-0.479-0.958-0.479-2.375c0-2.225 1.29-3.886 2.895-3.886 1.365 0 2.024 1.025 2.024 2.254 0 1.373-0.874 3.425-1.325 5.327-0.377 1.593 0.799 2.892 2.369 2.892 2.844 0 5.030-2.999 5.030-7.327 0-3.831-2.753-6.509-6.683-6.509-4.552 0-7.225 3.415-7.225 6.943 0 1.375 0.53 2.85 1.191 3.651 0.131 0.158 0.15 0.297 0.111 0.459-0.121 0.506-0.391 1.593-0.444 1.815-0.070 0.293-0.232 0.355-0.535 0.214-1.998-0.93-3.248-3.852-3.248-6.198 0-5.047 3.667-9.682 10.572-9.682 5.55 0 9.864 3.955 9.864 9.241 0 5.514-3.477 9.952-8.302 9.952-1.621 0-3.145-0.842-3.667-1.837 0 0-0.802 3.055-0.997 3.803-0.361 1.39-1.337 3.132-1.989 4.195 1.497 0.463 3.088 0.713 4.738 0.713 8.836-0 16-7.163 16-16s-7.163-16-16-16z"></path>',xing:{viewbox:"0 0 22 28",html:'<path d="M9.328 10.422q-0.156 0.281-4.016 7.125-0.422 0.719-1.016 0.719h-3.734q-0.328 0-0.484-0.266t0-0.562l3.953-7q0.016 0 0-0.016l-2.516-4.359q-0.187-0.344-0.016-0.578 0.141-0.234 0.5-0.234h3.734q0.625 0 1.031 0.703zM21.922 0.391q0.172 0.25 0 0.578l-8.25 14.594v0.016l5.25 9.609q0.172 0.313 0.016 0.578-0.156 0.234-0.5 0.234h-3.734q-0.656 0-1.031-0.703l-5.297-9.719q0.281-0.5 8.297-14.719 0.391-0.703 1-0.703h3.766q0.344 0 0.484 0.234z"></path>'},"yt-play":{viewbox:"0 0 28 28",html:'<path d="M20 14q0-0.578-0.469-0.844l-8-5q-0.484-0.313-1.016-0.031-0.516 0.281-0.516 0.875v10q0 0.594 0.516 0.875 0.25 0.125 0.484 0.125 0.313 0 0.531-0.156l8-5q0.469-0.266 0.469-0.844zM28 14q0 1.5-0.016 2.344t-0.133 2.133-0.352 2.305q-0.25 1.141-1.078 1.922t-1.937 0.906q-3.469 0.391-10.484 0.391t-10.484-0.391q-1.109-0.125-1.945-0.906t-1.086-1.922q-0.219-1.016-0.336-2.305t-0.133-2.133-0.016-2.344 0.016-2.344 0.133-2.133 0.352-2.305q0.25-1.141 1.078-1.922t1.937-0.906q3.469-0.391 10.484-0.391t10.484 0.391q1.109 0.125 1.945 0.906t1.086 1.922q0.219 1.016 0.336 2.305t0.133 2.133 0.016 2.344z"></path>'}}},e.exports=a},
5"typefocus.js":function(t,e,i){function a(i){try{r.each(function(){var t=n(this),e=o.$window.height();t.data("typed")&&(i+e>=t.offset().top&&t.offset().top>i||"start"===t.attr("data-typefocus")?t.typed("start"):(t.attr("data-typefocus"),t.typed("pause")))})}catch(t){console.log(t)}}var n,o,r;n=ThriveGlobal.$j,o=TCB_Front,r=n(),e.exports=function(t){r=r.add(t.find(".tve_typefocus")),setTimeout(function(){try{r.each(function(){var t=n(this),e=[],i=parseInt(t.attr("data-speed")),a=t.attr("data-colors");0!==t.attr("data-typist").length&&(e.push(t.text()),e=e.concat(t.attr("data-typist").split("|")),t.typed({strings:e,loop:!0,typeSpeed:125,backSpeed:50,highlightClass:1===parseInt(t.attr("data-highlight"))?"tve_selected_typist":"",highlightStyle:1===parseInt(t.attr("data-highlight"))&&a?"background-color:"+a:"",backDelay:i,contentType:"text",startDelay:800,showCursor:t.hasClass("tve_typefocus_cursor")}))})}catch(t){console.log(t)}},1e3),o.add_scroll_callback(a)}}},woo:{
5"events.js":function(t,e,i){e.exports=function(t){return{added_to_cart:function(t,e,i,a){var n=3<arguments.length&&void 0!==a?a:"";if(n&&0!==n.length){if("_blank"===n.attr("target")){var o=n.attr("href").replace(/\?.*/,"");window.open(o,"_blank")}var r,s=n.parent().find(".added_to_cart"),c=s.attr("style");if(0<s.length&&(void 0===c||!c.includes("--tve-view-cart-arrow-color")))s.css("border-width").includes("0px")||(r=s.css("border-left-color")),void 0===r&&(r=s.css("background-image").includes("none")?s.css("background-color"):"transparent"),void 0!==r&&s[0].style.setProperty("--tve-view-cart-arrow-color",r,"important");setTimeout(function(){n[0].style.setProperty("color","")},1700)}},adding_to_cart:function(t,e,i){e[0].style.setProperty("color","transparent","important")}}}},
5"main.js":function(t,e,r){e.exports=function(a,t){var e=r("./events")(a),n=r("./models/mini-cart")(a,t),o=r("./models/shop")(a,t),i=r("./models/product-categories")(a,t);return{Main:function(){function i(){_classCallCheck(this,i)}return _createClass(i,null,[{key:"init",value:function(){tve_frontend_options.is_editor_page||(i.updateAddToCartButtons(),a(document.body).on("added_to_cart",e.added_to_cart).on("adding_to_cart",e.adding_to_cart),a(t.document).find(n.selector).each(function(t,e){new n(a(e))}),a(t.document).find(o.selector).each(function(t,e){new o(a(e))}))}},{key:"updateAddToCartButtons",value:function(){a('[data-dynamic-link="thrive_woo_link_shortcode"][data-shortcode-id="add_to_cart"]').each(function(t,e){e.classList.add(i.wooButtonClassName,i.ajaxButtonClassName),e.setAttribute("data-quantity",1),e.setAttribute("data-product_id",i.getPostIdFromElement(e))})}},{key:"getPostIdFromElement",value:function(t){var e=tve_frontend_options.post_id,i=t.closest(".post-wrapper");if(i){var a=i.getAttribute("class").match(/post-(\d+)/);a&&2===a.length&&(e=a[1])}return e}},{key:"ajaxButtonClassName",get:function(){return"ajax_add_to_cart"}},{key:"wooButtonClassName",get:function(){return"add_to_cart_button"}}]),i}(),Shop:o,ProductCategories:i,MiniCart:n,AbstractWoo:r("./models/abstract")(a)}}},models:{
5"abstract.js":function(t,e,i){e.exports=function(e){return function(){function i(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null;_classCallCheck(this,i),this.$template=t&&t.length?t:e(this.constructor.selector)}return _createClass(i,null,[{key:"getProductsSectionSelector",value:function(t){var e=0<arguments.length&&void 0!==t?t:"";return"".concat(e?".".concat(e):"").concat(i.defaultProductsSelector)}},{key:"selector",get:function(){return""}},{key:"imageWidthVar",get:function(){return"--tve-woo-image-size"}},{key:"defaultProductsSelector",get:function(){return".products"}}]),_createClass(i,[{key:"getProductsSection",value:function(t){var e=0<arguments.length&&void 0!==t?t:"";return this.$template.find(i.getProductsSectionSelector(e))}},{key:"loading",value:function(t){var e=!(0<arguments.length&&void 0!==t)||t;this.$template.toggleClass("tve-loader-square",e)}},{key:"getData",value:function(t,e){var i=1<arguments.length&&void 0!==e?e:"",a="data-".concat(t);i&&(a="data-".concat(i,"-").concat(t));var n=this.$template.attr(a);return void 0===n?this.constructor.defaultAttr(t):n}},{key:"setData",value:function(t,e,i){var a=2<arguments.length&&void 0!==i?i:"",n="data-".concat(t);return a&&(n="data-".concat(a,"-").concat(t)),this.$template.attr(n,e),this}}],[{key:"defaultAttr",value:function(t){var e=0<arguments.length&&void 0!==t?t:"",i={"align-items":"left",columns:4,limit:8,orderby:"date",order:"desc",ids:"",category:"",cat_operator:"in",taxonomy:"",terms:"",terms_operator:"in",tag:"",tag_operator:"in"};return e?i[e]:i}}]),i}()}},
5"mini-cart.js":function(t,e,i){e.exports=function(f,p){return function(){function u(t){_classCallCheck(this,u),this.$cart=t,u.isEditorPage()&&this.initSelectors(),this.initEvents()}return _createClass(u,[{key:"getAttr",value:function(t){var e=this.$cart.attr("data-".concat(t));return void 0===e&&(e=u.defaultAttr(t)),e}},{key:"setAttr",value:function(t,e){return this.$cart.attr("data-".concat(t),e)}},{key:"initEvents",value:function(){var i=this;if(f(p.document.body).on("wc_fragments_loaded",this.onCartFragmentsLoaded.bind(this)),u.isEditorPage())f(p.document.body).on("wc_fragments_loaded",this.initSelectors.bind(this));else{switch(this.getAttr("trigger")){case"click":this.$cart.on("click",this.toggle.bind(this));break;case"hover":this.$cart.on("mouseenter",this.toggle.bind(this))}f(p.document.body).on("click",function(e){setTimeout(function(){var t=e.target;"tcb-cart-close-icon"!==t.className&&null!==t.closest(".tcb-woo-mini-cart-content")||null!==t.closest(u.selector)||null!==t.closest(".add_to_cart_button")||i.isOpen()&&i.toggle(!1)})})}}},{key:"initSelectors",value:function(){var i=this;["wc-cart-item","wc-cart-item-image","wc-cart-item-properties","wc-cart-item-title","wc-cart-total","wc-view-cart-button","wc-checkout-button","wc-cart-wrapper","wc-empty-cart"].forEach(function(t){var e=TVE.Elements[t].identifier.split(",").map(function(t){return"".concat(i.dataSelector," ").concat(t)}).join(",").trim().replace(/ {2,}/g," ");i.$content.find(TVE.Elements[t].identifier).attr("data-selector",e).addClass("tve_no_icons tve_editable")}),["wc-cart-icon","wc-cart-count"].forEach(function(t){i.$cart.find(TVE.Elements[t].identifier).attr("data-selector","".concat(i.dataSelector," ").concat(TVE.Elements[t].identifier)).addClass("tve_no_icons tve_editable")})}},{key:"onCartFragmentsLoaded",value:function(){u.isEditorPage()||(this.updateCartItemsCount(),this.updateCartTotalAmount(),u.toggleEmptyCartClass(this.$content)),this.addCloseIcon()}},{key:"addCloseIcon",value:function(t){var e=0<arguments.length&&void 0!==t?t:this.$content;0===e.find(".tcb-cart-close-icon").length&&e.find(".widget_shopping_cart_content").prepend('<span class="tcb-cart-close-icon"></span>')}},{key:"updateCartItemsCount",value:function(){var i=0;this.$content.find(".woocommerce-mini-cart-item .quantity").each(function(t,e){i+=parseInt(e.innerText)}),0===i&&(i=""),this.$cart.find(".tcb-woo-mini-cart-count").html(i)}},{key:"updateCartTotalAmount",value:function(){this.$cart.find(".tcb-woo-mini-cart-amount").html(this.$content.find(".woocommerce-mini-cart__total .woocommerce-Price-amount").text())}},{key:"toggle",value:function(t){"boolean"!=typeof t&&(t=!this.isOpen()),this.positionCart(t),this.refreshContentSelector()}},{key:"isOpen",value:function(){return this.$content.hasClass("open")}},{key:"hasSideAnimation",value:function(){var t=this.getAttr("direction");return"left"===t||"right"===t}},{key:"positionCart",value:function(t){var e=this,i=!(0<arguments.length&&void 0!==t)||t;if(this.$content.toggleClass("full-height",this.hasSideAnimation()),i&&this.$content.addClass("open"),u.isEditorPage()&&this.$content.css({left:"",right:"",top:"",opacity:"","max-height":"","max-width":""}).find(".cart_list > li").css({opacity:"",left:""}),this.hasSideAnimation()){var a,n=this.getAttr("direction");window.document.body.closest("html").classList.add("tve-hide-x-overflow"),this.$content.css(_defineProperty({opacity:i?"0":"1"},n,i?u.animationPosition:"0")),this.$content.animate((_defineProperty(a={},n,i?"0":u.animationPosition),_defineProperty(a,"opacity",i?"1":"0"),a),{complete:function(){e.$content.toggleClass("open",i),window.document.body.closest("html").classList.remove("tve-hide-x-overflow")}})}else{var o=this.$cart.offset(),r=o.top+this.$cart.height(),s=f(p).width(),c=this.$content.width(),l=s-o.left-this.$cart.width();o.left<c&&(l-=c-o.left+50),this.$content.css({top:r,right:l,"max-width":i?"0":"100%","max-height":i?"0":"100%"});var d=this.$content.find(".cart_list").addClass("animate-cart"),h=d.children();h.each(function(t,e){i&&(e.style.left="200px",e.style.opacity="0"),setTimeout(function(){e.style.left=i?"0":"200px",e.style.opacity=i?"1":"0"},50*(t+1))}),setTimeout(function(){d.removeClass("animate-cart"),i||e.$content.removeClass("open")},50*h.length+(i?500:200)),this.$content.css({"max-height":i?"100%":"
50","max-width":i?"100%":"0"})}}},{key:"refreshContentSelector",value:function(){var t=this.$cart.closest('[class*="thrv_symbol_"]');if(void 0===this.$cartContentWrapper&&(this.$cartContentWrapper=this.$content),t.length){var e=t.attr("class").match(/(thrv_symbol_\d*)/g);e&&this.$cartContentWrapper.addClass(e[0]).attr("data-symbol-id",e[0])}else this.$cart.trigger("tcb_mini_cart_content_generated",this)}},{key:"dataSelector",get:function(){var t=this.getAttr("css");return void 0===t&&(t=TVE.CSS_Rule_Cache.uniq_id(this.$cart)),'[data-css="'.concat(t,'"]')}},{key:"$content",get:function(){if(!this.$cart.data("content")){var t=f('<div class="tcb-woo-mini-cart-content woocommerce"></div>'),e=this.getAttr("css");void 0===e&&u.isEditorPage()&&(e=TVE.CSS_Rule_Cache.uniq_id(this.$cart)),t.attr("data-css",e),this.$cart.find(u.isEditorPage()?".tcb-woo-mini-cart-items":".widget_shopping_cart_content").addClass("widget_shopping_cart_content").appendTo(t),u.isEditorPage()?f('<div class="tcb-woo-mini-cart-no-products">'+TVE.inner_$("#tve-woocommerce-mini-cart-no-products").html()+"</div>").appendTo(t):u.toggleEmptyCartClass(t),this.addCloseIcon(t),this.$cartContentWrapper=t.wrap('<div class="tcb-woo-mini-cart-content-wrapper"></div>').parent(),this.$cartContentWrapper.data("source",this.$cart).appendTo(this.$cart.closest("body")),this.refreshContentSelector(),this.$cart.data("content",this.$cartContentWrapper)}return this.$cart.data("content")}}],[{key:"isEditorPage",value:function(){return p.tve_frontend_options.is_editor_page}},{key:"defaultAttr",value:function(t){var e={trigger:"click",direction:"under",text:"Cart"};return t?e[t]:e}},{key:"toggleEmptyCartClass",value:function(t){var e=t.find(".woocommerce-mini-cart__empty-message");t.find(".widget_shopping_cart_content").toggleClass("tcb-woo-no-items",0<e.length)}},{key:"selector",get:function(){return".tcb-woo-mini-cart"}},{key:"animationPosition",get:function(){return"-1000px"}}]),u}()}},
5"product-categories.js":function(t,e,i){e.exports=function(r,t){var e=i("./abstract")(r);return function(){function o(){return _classCallCheck(this,o),_possibleConstructorReturn(this,_getPrototypeOf(o).apply(this,arguments))}return _inherits(o,e),_createClass(o,[{key:"render",value:function(t,e){var i=this,a=1<arguments.length&&void 0!==e?e:Object.keys(o.defaultAttr()),n={};return a.forEach(function(t){n[t]=i.getData(t)}),this.ajaxRenderFunction(n).success(function(t){t.content&&(i.$template.html(r(t.content).html()),i.toggleSubElementVisibility(),TVE.WooCommerceFn.content.initProductCategorySubElements(i.$template))})}},{key:"toggleSubElementVisibility",value:function(t,e){var i=this;void 0===t&&(t=Object.keys(o.subElementSelectors)),t.forEach(function(t){i.$template.find(o.subElementSelectors[t]).toggle(void 0===e?!Number(i.getData("hide-".concat(t))):e)})}},{key:"ajaxRenderFunction",value:function(t){var e=this;return this.loading(!0),TVE.$.ajax({url:tve_frontend_options.woo_rest_routes.product_categories,type:"POST",data:{args:t},headers:{"X-WP-Nonce":TVE.CONST.rest_nonce}}).always(function(t){e.loading(!1)})}}],[{key:"defaultAttr",value:function(t){var e=0<arguments.length&&void 0!==t?t:"",i={limit:4,columns:4,parent:"",hide_empty:1,orderby:"id",ids:"",order:"desc","align-items":"left","text-layout":"text_on_image","text-position":"center"};return e?i[e]:i}},{key:"subElementSelectors",get:function(){return{title:".woocommerce-loop-category__title","product-number":".thrive-product-category-count"}}},{key:"selector",get:function(){return".tcb-woo-product-categories"}}]),o}()}},
5"shop.js":function(t,e,a){e.exports=function(n,i){var t=a("./abstract")(n),o=["columns","limit","orderby","order","ids","category","cat_operator","taxonomy","terms","terms_operator","tag","tag_operator"];return function(){function a(t){var e;return _classCallCheck(this,a),e=_possibleConstructorReturn(this,_getPrototypeOf(a).call(this,t)),i.tve_frontend_options.is_editor_page||t.find(".prev,.next").addClass("tcb-prev-next"),e}return _inherits(a,t),_createClass(a,[{key:"updateProductsSection",value:function(t,e){var i=this,a={};return(1<arguments.length&&void 0!==e?e:o).forEach(function(t){a[t]=i.getData(t)}),this.ajaxRenderFunction(a).success(function(t){t.content&&(i.$template.html(n(t.content).html()),i.toggleProductElements(),i.initializeCartButtons(i.$template),TVE.WooCommerceFn.content.initShopSubElements(i.$template))})}},{key:"initializeCartButtons",value:function(t){t.find(".ajax_add_to_cart").removeClass("ajax_add_to_cart"),0===t.find("a.added_to_cart").length&&t.find(TVE.CONST.woocommerce.sub_element_identifiers["product-button"]).after('<a class="added_to_cart" style="display:none;"></div>')}},{key:"toggleProductElements",value:function(t,e){var i=this;void 0===t&&(t=Object.keys(a.productElementSelectors)),t.forEach(function(t){i.$template.find(a.productElementSelectors[t]).toggle(void 0===e?!Number(i.getData("hide-".concat(t))):e)})}},{key:"ajaxRenderFunction",value:function(t,e,i){var a=this,n=2<arguments.length&&void 0!==i?i:"POST";return this.loading(!0),TVE.$.ajax({url:tve_frontend_options.woo_rest_routes.shop,type:n,data:{args:t},headers:{"X-WP-Nonce":TVE.CONST.rest_nonce}}).always(function(t){a.loading(!1)})}}],[{key:"productElementSelectors",get:function(){return{"result-count":".woocommerce-result-count","catalog-ordering":".woocommerce-ordering","sale-flash":".onsale",title:".woocommerce-loop-product__title",rating:".star-rating",price:".price",cart:".button",pagination:".woocommerce-pagination"}}},{key:"selector",get:function(){return".tcb-woo-shop"}}]),a}()}}
5}}}}}}})("workspace/editor/js/frontend/thrive_content_builder_frontend");
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.