// source --> https://www.onefamilyyogafitness.com.au/wp-content/themes/Avada/assets/min/js/general/avada-to-top.js?ver=7.11.9 
function avadaUpdateToTopPostion(){var o=avadaToTopVars.totop_position.split("_");o=2===o.length?"to-top-"+o[0]+" to-top-"+o[1]:"to-top-"+o[0],jQuery(".to-top-container").attr("class","to-top-container"),jQuery(".to-top-container").addClass(o)}jQuery(document).ready(function(){var o=0,a=jQuery("html").hasClass("ua-edge")||jQuery("html").hasClass("ua-safari-12")||jQuery("html").hasClass("ua-safari-11")||jQuery("html").hasClass("ua-safari-10")?"body":"html";jQuery(".fusion-top-top-link").on("click",function(o){o.preventDefault(),(cssua.ua.mobile&&-1!==avadaToTopVars.status_totop.indexOf("mobile")||!cssua.ua.mobile)&&jQuery(a).animate({scrollTop:0},1200,"easeInOutExpo")}),jQuery(window).on("scroll",function(){var a=jQuery(this).scrollTop();200<a&&(a>=o||1!==parseInt(avadaToTopVars.totop_scroll_down_only))?jQuery(".fusion-top-top-link").addClass("fusion-to-top-active"):jQuery(".fusion-top-top-link").removeClass("fusion-to-top-active"),o=a}),jQuery(window).on("updateToTopPostion",avadaUpdateToTopPostion)});
// source --> https://www.onefamilyyogafitness.com.au/wp-content/themes/Avada/assets/min/js/library/bootstrap.scrollspy.js?ver=7.11.9 
!function(t){"use strict";function s(e,i){this.processWithBind=t.proxy(this.process,this),this.$body=t("body"),this.$scrollElement=t(e).is("body")?t(window):t(e),this.options=t.extend({},s.DEFAULTS,i),this.selector=(this.options.target||"")+" li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",this.processWithBind),this.refresh(),this.process()}function e(e){return this.each(function(){var i=t(this),o=i.data("bs.scrollspy"),r="object"==typeof e&&e;o||i.data("bs.scrollspy",o=new s(this,r)),"string"==typeof e&&o[e]()})}s.VERSION="3.3.2",s.DEFAULTS={offset:10},s.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},s.prototype.refresh=function(){var s="offset",e=0;fusion.isWindow(this.$scrollElement[0])||(s="position",e=this.$scrollElement.scrollTop()),this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight();var i=this;this.$body.find(this.selector).map(function(){var i=t(this),o=i.data("target")||i.attr("href"),r=/^#./.test(o)&&t(o);return r&&r.length&&r.is(":visible")&&[[r[s]().top+e,o]]||null}).sort(function(t,s){return t[0]-s[0]}).each(function(){i.offsets.push(this[0]),i.targets.push(this[1])})},s.prototype.process=function(){var t,s=this.$scrollElement.scrollTop()+this.options.offset,e=this.getScrollHeight(),i=this.options.offset+e-this.$scrollElement.height(),o=this.offsets,r=this.targets,l=this.activeTarget;if(this.scrollHeight!=e&&this.refresh(),s>=i)return l!=(t=r[r.length-1])&&this.activate(t);if(l&&s<o[0])return this.activeTarget=null,this.clear();for(t=o.length;t--;)l!=r[t]&&s>=o[t]&&(!o[t+1]||s<=o[t+1])&&this.activate(r[t])},s.prototype.activate=function(s){this.activeTarget=s,this.clear();var e=this.options.currentItemClass?this.options.currentItemClass:"current-menu-item",i=window.location.href.split("#"),o="/"==i[0].charAt(i[0].length-1)?i[0]:i[0]+"/",r=this.selector+'[data-target="'+s+'"],'+this.selector+'[href="'+s+'"],'+this.selector+'[href="'+o+s+'"]',l=t(r).parents("li").addClass(e);l.parent(".sub-menu").length&&(l=l.closest("li.fusion-dropdown-menu").addClass(e)),l.trigger("activate.bs.scrollspy"),l&&t(this.selector).blur()},s.prototype.clear=function(){var s=this.options.currentItemClass?this.options.currentItemClass:"current-menu-item";t(this.selector).parentsUntil(this.options.target,"."+s).removeClass(s),t(this.selector).parentsUntil(this.options.target,".current-menu-parent").removeClass("current-menu-parent")},s.prototype.stopListening=function(){this.$scrollElement.off("scroll.bs.scrollspy",this.processWithBind)},window.awbScrollSpy=s;var i=t.fn.scrollspy;t.fn.scrollspy=e,t.fn.scrollspy.Constructor=s,t.fn.scrollspy.noConflict=function(){return t.fn.scrollspy=i,this},t(window).on("load.bs.scrollspy.data-api",function(){t('[data-spy="scroll"]').each(function(){var s=t(this);e.call(s,s.data())})})}(jQuery);
// source --> https://www.onefamilyyogafitness.com.au/wp-content/themes/Avada/assets/min/js/general/avada-scrollspy.js?ver=7.11.9 
function fusionGetScrollOffset(){var t,o=fusion.getAdminbarHeight(),e="function"==typeof getStickyHeaderHeight?getStickyHeaderHeight():0,s=parseInt(o+e+1,10);return jQuery(".fusion-tb-header").length&&"function"==typeof fusionGetStickyOffset?(t=fusionGetStickyOffset())?t+1:o:s}jQuery(document).ready(function(){jQuery("body").scrollspy({target:".fusion-menu",offset:fusionGetScrollOffset()}),jQuery(window).on("load fusion-sticky-change fusion-sticky-scroll-change",function(){"object"==typeof jQuery("body").data()["bs.scrollspy"]&&(jQuery("body").data()["bs.scrollspy"].options.offset=fusionGetScrollOffset())}),jQuery(window).on("fusion-sticky-transition-change",function(){setTimeout(function(){"object"==typeof jQuery("body").data()["bs.scrollspy"]&&(jQuery("body").data()["bs.scrollspy"].options.offset=fusionGetScrollOffset())},300)})});
// source --> https://www.onefamilyyogafitness.com.au/wp-content/themes/Avada/assets/min/js/general/avada-woo-products.js?ver=7.11.9 
jQuery(window).on("load",function(){jQuery(".product-images").each(function(){!jQuery(this).find("img").length&&jQuery(this).find(".onsale").length&&jQuery(this).css("min-height","45px")})}),jQuery(document).ready(function(){var e,t,a,r;for(jQuery("body").on("click",".add_to_cart_button.ajax_add_to_cart:not(.disabled), .add_to_cart_button.ajax_variation_add_to_cart:not(.disabled)",function(){var e=jQuery(this).closest(".product, li, .swiper-slide"),t=e.find(".cart-loading"),a=!!e.hasClass("post-card")&&e.find(".fusion-image-wrapper");a&&a.addClass("hover"),t.find("i").removeClass("awb-icon-check-square-o").addClass("awb-icon-spinner"),t.fadeIn(),setTimeout(function(){t.find("i").hide().removeClass("awb-icon-spinner").addClass("awb-icon-check-square-o").fadeIn(),t.closest(".fusion-clean-product-image-wrapper, li").addClass("fusion-item-in-cart"),a&&a.removeClass("hover")},2e3)}).on("click",".add_to_cart_button.ajax_variation_add_to_cart:not(.disabled)",function(e){var t=jQuery(this),a=t.closest("form.cart"),r=a.find('input:not([name="product_id"]), select, button, textarea').serializeArray()||0,i=-1!==a.attr("action").indexOf("?")?a.attr("action")+"&wc-ajax=get_refreshed_fragments":a.attr("action")+"?wc-ajax=get_refreshed_fragments";e.preventDefault(),t.hasClass("disabled_ajax_add_to_cart")?a.trigger("submit"):(jQuery(document.body).trigger("adding_to_cart",[t,r]),jQuery.ajax({type:"POST",url:i,data:r,success:function(e){e.error&&e.product_url?window.location=e.product_url:jQuery(document.body).trigger("added_to_cart",[e.fragments,e.cart_hash,t])}}))}),jQuery("body").on("should_send_ajax_request.adding_to_cart",function(e,t){return!jQuery(t).hasClass("disabled")}),jQuery("body").on("mouseenter mouseleave",".products .product, .fusion-woo-slider .swiper-slide, .post-card.product",function(e){var t=jQuery(this).find(".cart-loading");t.find("i").hasClass("awb-icon-check-square-o")&&("mouseenter"===e.type?t.fadeIn():t.fadeOut())}),e=avadaWooCommerceVars.title_style_type.split(" "),t="","",a="title-heading-left",r=0;r<e.length;r++)t+=" sep-"+e[r];t.indexOf("underline"),jQuery("body").hasClass("rtl")&&(a="title-heading-right"),jQuery(".woocommerce.single-product .related.products > h2").each(function(){jQuery(this).replaceWith(function(){return'<div class="fusion-title title'+t+'"><h'+avadaWooCommerceVars.related_products_heading_size+' class="'+a+'">'+jQuery(this).html()+"</h"+avadaWooCommerceVars.related_products_heading_size+'><span class="awb-title-spacer"></span><div class="title-sep-container"><div class="title-sep'+t+' "></div></div></div>'})}),jQuery(".woocommerce.single-product .upsells.products > h2").each(function(){jQuery(this).replaceWith(function(){return'<div class="fusion-title title'+t+'"><h3 class="'+a+'">'+jQuery(this).html()+'</h3><span class="awb-title-spacer"></span><div class="title-sep-container"><div class="title-sep'+t+' "></div></div></div>'})}),jQuery(".products-6 li, .products-5 li, .products-4 li, .products-3 li, .products-2 li").removeClass("last"),jQuery(document).on("change",".fusion-post-card-cart .qty",function(e){void 0!==this.value&&jQuery(e.target).closest(".fusion-post-card-cart").find(".ajax_add_to_cart").attr("data-quantity",this.value)})}),jQuery(window).on("wcpf_after_ajax_filtering",function(){var e=new URLSearchParams(window.location.search);jQuery(".catalog-ordering").find("a").each(function(){var t,a=jQuery(this).attr("href");if(void 0!==a){for(t of e.entries())-1===a.indexOf(t[0])&&(a+="&"+t[0]+"="+t[1]);jQuery(this).attr("href",a)}})});