Current File : /home/kelaby89/jrncommunityhousing.charity/wp-content/themes/caridad/vamtam/assets/js/all.min.js
!function(e){"use strict";var t=window.VAMTAM=window.VAMTAM||{};t.debounce=function(e,t=300,n=!1){var o;return function(){var a=this,i=arguments,r=n&&!o;clearTimeout(o),o=setTimeout(function(){o=null,n||e.apply(a,i)},t),r&&e.apply(a,i)}},t.offset=function(e){var t=e.getBoundingClientRect(),n=window.pageXOffset||document.documentElement.scrollLeft,o=window.pageYOffset||document.documentElement.scrollTop;return{top:t.top+o,left:t.left+n}},t.scroll_handlers=[],t.latestKnownScrollY=0;var n=!1;t.addScrollHandler=function(e){requestAnimationFrame(function(){e.init(),t.scroll_handlers.push(e),e.measure(t.latestKnownScrollY),e.mutate(t.latestKnownScrollY)})},t.onScroll=function(){t.latestKnownScrollY=window.pageYOffset,n||(n=!0,requestAnimationFrame(function(){var e;for(e=0;e<t.scroll_handlers.length;e++)t.scroll_handlers[e].measure(t.latestKnownScrollY);for(e=0;e<t.scroll_handlers.length;e++)t.scroll_handlers[e].mutate(t.latestKnownScrollY);n=!1}))},window.addEventListener("scroll",t.onScroll,{passive:!0}),t.load_script=function(e,t){var n=document.createElement("script");n.type="text/javascript",n.async=!0,n.src=e,t&&(n.onload=t),document.getElementsByTagName("script")[0].before(n)},t.load_style=function(e,t,n,o){var a=document.createElement("link");a.rel="stylesheet",a.type="text/css",a.media=t,a.href=e,n&&(a.onload=n),o?o.after(a):document.getElementsByTagName("link")[0].before(a)},t.isBelowMaxDeviceWidth=function(){return!window.matchMedia("(min-width: "+VAMTAM_FRONT.max_breakpoint+"px)").matches},t.isMaxDeviceWidth=function(){return window.matchMedia("(min-width: "+VAMTAM_FRONT.max_breakpoint+"px)").matches},t.isMobileBrowser=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Windows Phone/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2,t.getScrollbarWidth=(()=>window.innerWidth-document.documentElement.clientWidth)}(),function(e,t,n){"use strict";var o,a,i=e("header.main-header").find(".header-contents"),r=document.getElementById("vamtam-fallback-main-menu-toggle"),s=document.querySelector("#main-menu > .mega-menu-wrap > .mega-menu-toggle"),c=function(){clearTimeout(o),o=setTimeout(d,200)},d=function(){window.removeEventListener("scroll",c,{passive:!0}),t.blockStickyHeaderAnimation=!1,a&&a()},m=function(e,n,o){requestAnimationFrame(function(){var n=e.offset().top;t.blockStickyHeaderAnimation=!0;var d;d=i.height()||0;var m=n-t.adminBarHeight-d;a=o,window.addEventListener("scroll",c,{passive:!0}),window.scroll({left:0,top:m,behavior:"smooth"}),e.attr("id")&&(history.pushState?history.pushState(null,null,"#"+e.attr("id")):window.location.hash=e.attr("id")),r&&r.classList.remove("mega-menu-open"),s&&s.classList.remove("mega-menu-open")})};if(e(document.body).on("click",".vamtam-animated-page-scroll[href], .vamtam-animated-page-scroll [href], .vamtam-animated-page-scroll [data-href]",function(t){var n=e(this).prop("href")||e(this).data("href"),o=e("#"+n.split("#")[1]),a=document.createElement("a");a.href=n,o.length&&a.pathname===window.location.pathname&&(r&&r.classList.remove("mega-menu-open"),s&&s.classList.remove("mega-menu-open"),m(o),t.preventDefault())}),""!==window.location.hash&&(e('.vamtam-animated-page-scroll[href*="'+window.location.hash+'"]').length||e('.vamtam-animated-page-scroll [href*="'+window.location.hash+'"]').length||e('.vamtam-animated-page-scroll [data-href*="'+window.location.hash+'"]').length)){var l=e(window.location.hash);l.length>0&&e(window).add("html, body, #page").scrollTop(0),setTimeout(function(){m(l)},400)}}(jQuery,window.VAMTAM),function(e,t){"use strict";window.VAMTAM=window.VAMTAM||{},e(function(){var t,n;window.VAMTAM.adminBarHeight=document.body.classList.contains("admin-bar")?32:0,/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream&&requestAnimationFrame(function(){document.documentElement.classList.add("ios-safari")}),navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")&&requestAnimationFrame(function(){document.documentElement.classList.add("safari")}),navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")&&requestAnimationFrame(function(){document.documentElement.classList.add("safari")}),n=document.body,window.addEventListener("scroll",function(){clearTimeout(t),requestAnimationFrame(function(){n.classList.add("disable-hover"),t=setTimeout(function(){n.classList.remove("disable-hover")},300)})},{passive:!0}),document.addEventListener("click",function(e){e.target.closest(".vamtam-trigger-print")&&(window.print(),e.preventDefault())}),window.VAMTAM.resizeElements=function(){e("#page .media-inner,\t\t\t\t.wp-block-embed-vimeo:not(.wp-has-aspect-ratio),\t\t\t\t:not(.wp-block-embed__wrapper) > .vamtam-video-frame").find("iframe, object, embed, video").each(function(){setTimeout(function(){requestAnimationFrame(function(){var t=this.offsetWidth;this.style.width="100%","0"===this.width&&"0"===this.height?this.style.height=9*t/16+"px":this.style.height=this.height*t/this.width+"px",e(this).trigger("vamtam-video-resized")}.bind(this))}.bind(this),50)}),setTimeout(function(){requestAnimationFrame(function(){e(".mejs-time-rail").css("width","-=1px")})},100)},window.addEventListener("resize",window.VAMTAM.debounce(window.VAMTAM.resizeElements,100),!1),window.VAMTAM.resizeElements()});var n=function(){var t=document.querySelectorAll(".vamtam-overlay-trigger"),n=[],o=window.VAMTAM.isBelowMaxDeviceWidth(),a=function(t){var o=t.currentTarget;if(e(o).hasClass("elementor-menu-toggle")){var i=e(o).closest(".elementor-row");i.length||(i=e(o).closest(".elementor-container")),i.hasClass("vamtam-overlay-trigger--overlay")&&(i.removeClass("vamtam-overlay-trigger--overlay"),o.removeEventListener("click",a),n.forEach(function(e){e.overlayTarget!==o&&e.closeTrigger!==o||(e.isActive=!1)}))}e(".vamtam-overlay-trigger--overlay .vamtam-overlay-element:visible").length<2&&(e("html, body").removeClass("vamtam-disable-scroll"),e("#scroll-to-top").removeClass("hidden"))},i=function(t){var o=t.currentTarget;if(e(o).hasClass("elementor-menu-toggle")){var i=e(o).closest(".elementor-row");if(i.length||(i=e(o).closest(".elementor-container")),i.hasClass("vamtam-menu-nav-overlay-inside")||(i.addClass("vamtam-menu-nav-overlay-inside"),e(i).find(".vamtam-overlay-element").css("top",e(i)[0].getBoundingClientRect().top+e(i).height()+"px")),i.hasClass("vamtam-overlay-trigger--overlay"))return;i.addClass("vamtam-overlay-trigger--overlay"),n.forEach(function(e){e.overlayTarget!==o&&e.closeTrigger!==o||(e.isActive=!0)})}e("html, body").addClass("vamtam-disable-scroll"),e("#scroll-to-top").addClass("hidden"),function(t){if(e(t).hasClass("elementor-menu-toggle"))t.removeEventListener("click",a),t.addEventListener("click",a)}(o)};if(t.forEach(function(t){if(e(t).hasClass("elementor-widget-nav-menu")){var o=e(t).find(".elementor-menu-toggle")[0];o.removeEventListener("click",i),o.addEventListener("click",i),n.push({overlayTarget:t,closeTrigger:o,isActive:!1});var a=e(t).closest(".elementor-row");return a.length||(a=e(t).closest(".elementor-container")),void e('<span class="vamtam-overlay-element"></span>').appendTo(a)}}),t.length){document.addEventListener("click",function(e){n.forEach(function(t){t.isActive&&(e.target===t.overlayTarget||t.overlayTarget.contains(e.target)||t.closeTrigger.click())})},!0),window.addEventListener("resize",window.VAMTAM.debounce(function(){var e=window.VAMTAM.isBelowMaxDeviceWidth();o!==e&&(n.forEach(function(e){e.isActive&&e.closeTrigger.click()}),o=e)},200),!1)}};document.addEventListener("DOMContentLoaded",function(){window.VAMTAM.load_script(VAMTAM_FRONT.jspath+"low-priority.js"),n(),jQuery("html").css("--vamtam-scrollbar-width",window.VAMTAM.getScrollbarWidth()+"px")},{passive:!0})}(jQuery),function(e,t,n){"use strict";window.Cookies=window.Cookies||{get:function(e){var t=("; "+document.cookie).split("; "+e+"=");if(2===t.length)return t.pop().split(";").shift()}};var o=function(){document.querySelectorAll('input[type="number"]:not([max="1"])').forEach(function(t){if(!t.closest(".vamtam-count-wrap")){var n=e(t).parent();n.append('<div class="vamtam-count-wrap"></div>'),n.append("<span class=\"vamtam-increment\"  onclick=\"this.parentNode.querySelector('input[type=number]').stepUp();this.parentNode.querySelector('input[type=number]').dispatchEvent(new Event('change', {bubbles: true}))\">+</span>"),n.append("<span class=\"vamtam-decrement\"  onclick=\"this.parentNode.querySelector('input[type=number]').stepDown();this.parentNode.querySelector('input[type=number]').dispatchEvent(new Event('change', {bubbles: true}))\">-</span>");var o=n.find(".vamtam-count-wrap"),a=n.find(".vamtam-increment"),i=n.find(".vamtam-decrement");e(i).appendTo(o),e(t).appendTo(o),e(a).appendTo(o)}})};e(function(){var n=e(".fixed-header-box .cart-dropdown"),a=e(".vamtam-cart-dropdown-link"),i=e(".products",a),r=e(".elementor-widget-woocommerce-menu-cart"),s=r.length,c=s&&e(r).find(".vamtam-elementor-menu-cart__header .item-count"),d="wc_add_to_cart_params"in window&&window.wc_add_to_cart_params.is_cart;function m(){d&&document.querySelectorAll(".woocommerce-cart-form__contents").forEach(function(t){!e(t).hasClass("shop_table")&&!e(t).parent().hasClass("vamtam-cart-main")&&e(t).removeClass("woocommerce-cart-form__contents")})}function l(){const t=e("#elementor-menu-cart__toggle_button:visible");e.each(t,function(e,t){t.click()})}e(document.body).on("applied_coupon_in_checkout",function(){let e=document.querySelector(".woocommerce-error");e&&e.scrollIntoView({block:"center",behavior:"smooth"})}),window.VAMTAM.bijouxCustomNumericInputs=o,!("elementorFrontend"in window&&window.elementorFrontend.isEditMode())?e(document).ready(function(){o()}):e(window).on("elementor/frontend/init",function(){window.elementor.on("document:loaded",function(){setTimeout(function(){o()},1e3)})});var u=function(t){const n=e(".elementor-widget-woocommerce-menu-cart .elementor-menu-cart__toggle_button");let o=!1;if(e.each(n,function(n,a){if(e(a).is(t.target)||e(a).has(t.target).length)return o=!0,!1}),o){if(t.preventDefault(),d)return t.stopImmediatePropagation(),!1;if(window.VAMTAM.isMobileBrowser)return t.stopImmediatePropagation(),window.location=window.wc_add_to_cart_params.cart_url,!1;e("body").addClass("vamtam-disable-scroll"),e("#scroll-to-top").addClass("hidden");var a=e(t.target).closest(".elementor-section-wrap").find("section.elementor-element").first();a.css("will-change","transform"),a.css("z-index","1000")}},f=function(t,n){(e(t.target).is(".elementor-menu-cart__container, .vamtam-close-cart, .e-close-cart-custom-icon")||"no-target"===t&&n)&&(e("body").removeClass("vamtam-disable-scroll"),e("#scroll-to-top").removeClass("hidden"),e(t.target).closest("section.elementor-element").css("z-index",""))};function w(){document.querySelectorAll(".elementor-widget-woocommerce-menu-cart .elementor-menu-cart__toggle_wrapper").forEach(function(e){e.removeEventListener("click",u),e.addEventListener("click",u,!0)}),document.querySelectorAll(".elementor-widget-woocommerce-menu-cart .elementor-menu-cart__container .elementor-menu-cart__close-button, .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__container").forEach(function(e){e.removeEventListener("click",f),e.addEventListener("click",f)})}function v(t){const n=e("#scroll-to-top.vamtam-scroll-to-top"),o=e(".woocommerce-notices-wrapper .woocommerce-message");n.length&&(t?n.css("bottom","10px"):o.length?n.css("bottom",o.outerHeight()+10+"px"):n.css("bottom","95px"))}w();const h=s?"vamtam_elementor_menu_cart_fragments wc_fragments_loaded":"added_to_cart removed_from_cart wc_fragments_refreshed wc_fragments_loaded";function p(t){if(t){e(".woocommerce-notices-wrapper").empty().append(t);var n=e(".woocommerce-notices-wrapper").find(".vamtam-close-notice-btn");if(!n.length)return;n[0].addEventListener("click",function(){var t=e(this).closest(".woocommerce-message");t.fadeOut("fast"),v(!0),setTimeout(function(){t.remove()},2e3)}),setTimeout(function(){var e=n.closest(".woocommerce-message");e.fadeOut("fast"),setTimeout(function(){e.remove(),v(!0)},2e3)},1e4)}}e(document.body).on(h,function(){var t=parseInt(Cookies.get("woocommerce_items_in_cart")||0,10);if(t>0)if(s){r.removeClass("hidden");var a=r[0].querySelectorAll(".cart_item .quantity select, .cart_item .quantity .vamtam-quantity-input"),d=!1,l=r.find("#elementor-menu-cart__toggle_button .elementor-button-icon-qty");a.length||(a=r[0].querySelectorAll(".cart_item .product-quantity"),d=!0);var u=0;a.forEach(function(e){const t=d?e.textContent:e.value;u+=parseInt(t,10)}),c.text("("+u+")"),e.each(l,function(t,n){const o=parseInt(e(n).attr("data-counter"),10);u!==o&&e(n).attr("data-counter",u)})}else{var h=0,p=document.querySelector(".widget_shopping_cart"),g=p?p.querySelectorAll("li .quantity"):[];if(p){for(var _=0;_<g.length;_++)h+=parseInt(g[_].innerHTML.split("<span")[0].replace(/[^\d]/g,""),10);h=h>=0?h:"",i.text(h),i.removeClass("cart-empty"),n.removeClass("hidden")}}else if(s){var y=r.hasClass("elementor-menu-cart--empty-indicator-hide");r.toggleClass("hidden",y),c.text("(0)"),f("no-target",!0)}else{var A=n.hasClass("show-if-empty");i.addClass("cart-empty"),i.text("0"),n.toggleClass("hidden",!A)}document.body.classList.toggle("vamtam-wc-cart-empty",0===t),!!e("body").hasClass("single-product")&&e(".woocommerce-notices-wrapper .woocommerce-message").length&&v(),o(),w(),m()}),function(){if(e("body").hasClass("single-product")&&!e(".sold-individually").length){const t=e(".stock.in-stock"),n=e('input[name="quantity"][max="1"][min="1"]');t.length&&n.length&&t.addClass("last-one")}}(),e(document).on("click",'.woocommerce-cart button[name="apply_coupon"]:not(".e-apply-coupon"):visible',function(t){t.preventDefault(),e('input[type="submit"][name="apply_coupon"]').trigger("click")}),"yes"===window.VAMTAM_FRONT.enable_ajax_add_to_cart&&e(document).on("click",".single_add_to_cart_button, .products.vamtam-wc.table-layout .add_to_cart_button:not(.product_type_variable)",function(t){var n=e(this),o=n.closest("form.cart"),a=n.val(),i=o.find("input[name=quantity]").val()||1,r=o.find("input[name=product_id]").val()||a,c=o.find("input[name=variation_id]").val()||0,d=c,m=o.find("input[name=add-to-cart].wc-booking-product-id").val(),u=o.hasClass("grouped_form"),f=o.parent(".elementor-product-external").length&&"get"===o.attr("method"),w=n.closest(".products.vamtam-wc.table-layout").length,v={};if(d){if(n.parents(".elementor-widget-woocommerce-product-add-to-cart.vamtam-has-disable-theme-ajax-vars").length)return}if(t.preventDefault(),f)window.open(o.attr("action"),"_blank");else if(window.wc_add_to_cart_params){if(u){r=parseInt(o.find("input[name=add-to-cart]").val());var h=o.find('[id^="product-"]');e.each(h,function(t,n){var o,a=e(n).find(".add_to_cart_button"),i=e(n).attr("id").substr(8);o=a.length?parseInt(a.attr("data-quantity"))||0:parseInt(e(n).find("input.qty").val())||0,v[i]=o})}if(w){const e=n.closest("tr.vamtam-product");e.length&&(i=e.find("input[name=quantity]").val()||1,r=n.attr("data-product_id")||a)}var g={};if(m){const e=new FormData(o[0]);e.forEach(function(t,n){"add-to-cart"===n?g.product_id=t:g[n.replace("wc_bookings_field","")]=t,n.includes("[]")?g[n]=e.getAll(n):g[n]=t}),g.is_wc_booking=!0}else if(u)g={product_id:r,products:v,is_grouped:!0};else if(d){g={product_id:r,is_variable:!0};const e=new FormData(o[0]);e.forEach(function(t,n){"add-to-cart"===n?g.product_id=t:n.includes("[]")?g[n]=e.getAll(n):g[n]=t})}else{g={product_id:r};const e=new FormData(o[0]);e.forEach(function(t,n){"add-to-cart"===n?g.product_id||(g.product_id=t):n.includes("[]")?g[n]=e.getAll(n):g[n]=t})}return g.product_sku="",g.quantity=i,g.variation_id=c,g.action="woocommerce_ajax_add_to_cart",e(document.body).trigger("adding_to_cart",[n,g]),e.ajax({type:"post",url:window.wc_add_to_cart_params.ajax_url,data:g,beforeSend:function(){n.removeClass("added").addClass("loading")},complete:function(e){e.error?n.removeClass("loading"):n.addClass("added").removeClass("loading")},success:function(t){if(t.error)p(t.notice),e(document.body).trigger("wc_fragments_refreshed");else{if(t.redirect_to_cart)return void(window.location=window.wc_add_to_cart_params.cart_url);if(s)if(w){!window.VAMTAM.isMobileBrowser&&n.parents('.vamtam-has-adc-triggers-menu-cart[data-widget_type="woocommerce-products.products_table_layout"]').length&&setTimeout(()=>{l()},500)}else{!window.VAMTAM.isMobileBrowser&&setTimeout(()=>{l()},500)}else p(t.fragments.notice);e(document.body).trigger("added_to_cart",[t.fragments,t.cart_hash,n])}}}),!1}}),window.wc_add_to_cart_params&&e(document).on("click",".mini_cart_item a.remove, .woocommerce-mini-cart .woocommerce-cart-form__cart-item .product-remove > a:not([class])",function(t){t.preventDefault();var n=e(this),o=e(this).attr("data-product_id"),a=e(this).attr("data-cart_item_key"),i=e(this).parents(".mini_cart_item, .woocommerce-cart-form__cart-item");e.ajax({type:"post",dataType:"json",url:window.wc_add_to_cart_params.ajax_url,data:{action:"product_remove",product_id:o,cart_item_key:a},beforeSend:function(){i.css("pointer-events","none").css("opacity","0.5"),e("body").css("cursor","wait")},complete:function(){e("body").css("cursor","default")},success:function(t){t&&t.fragments?e(document.body).trigger("removed_from_cart",[t.fragments,t.cart_hash,n]):window.location=n.attr("href")},error:function(){window.location=n.attr("href")}})});const g=".woocommerce-cart-form__cart-item .vamtam-quantity";e(document).on("change",`${g} select, ${g} input`,t.debounce(function(t){t.preventDefault();var n=e(".woocommerce-cart").length,o=e(this).val(),a=e(this).attr("data-product_id"),i=e(this).attr("data-cart_item_key"),r=e(this).parents(".mini_cart_item, .woocommerce-cart-form__cart-item");if(n){var s=e('input[type="submit"][name="update_cart"]');return s.prop("disabled",!1),void s.trigger("click")}window.wc_add_to_cart_params&&e.ajax({type:"post",dataType:"json",url:window.wc_add_to_cart_params.ajax_url,data:{action:"update_item_from_cart",product_id:a,cart_item_key:i,product_quantity:o},beforeSend:function(){r.css("pointer-events","none").css("opacity","0.5"),e("body").css("cursor","wait")},complete:function(){r.css("pointer-events","auto").css("opacity","1"),e("body").css("cursor","default")},success:function(t){t&&t.fragments&&e(document.body).trigger("wc_fragment_refresh")},error:function(){}})})),window.addEventListener("load",function(){!function(){const t=e(document.body).hasClass("woocommerce-checkout"),n=t&&e("form.checkout"),o=t&&e(".woocommerce > .woocommerce-notices-wrapper").first();if(!t||!n.length||!o.length)return;e(document.body).on("checkout_error",function(){const e=n.find(".woocommerce-NoticeGroup.woocommerce-NoticeGroup-checkout");o.append(e)})}(),s&&(w(),m())}),s&&e(document).ajaxComplete((t,n,o)=>{const a=n.responseJSON,i=a&&a.fragments,r=o.data&&-1!==o.data.indexOf("action=elementor_menu_cart_fragments");i&&r&&e(document.body).trigger("vamtam_elementor_menu_cart_fragments")})})}(jQuery,window.VAMTAM),function(e,t){"use strict";window.VAMTAM=window.VAMTAM||{},window.VAMTAM.CUSTOM_ANIMATIONS={},e(function(){window.VAMTAM.CUSTOM_ANIMATIONS={init:function(){this.VamtamCustomAnimations.init()},onDomReady:function(){this.VamtamCustomAnimations.scrollBasedAnims()},VamtamCustomAnimations:{init:function(){this.registerAnimations(),this.utils.watchScrollDirection()},registerAnimations:function(){var e=this;["stickyHeader","cursorAnimation"].forEach(function(t){e[t].apply(e)})},stickyHeader:function(){var t=e(".vamtam-sticky-header"),n=this;t.length&&(t.length>1&&(t=t[0]),function(){var o,a=e(t).hasClass("vamtam-sticky-header--transparent-header"),i=!window.elementorFrontend.isEditMode(),r=function(){e(t).removeClass("vamtam-sticky-header--fixed-shown"),e(t).hasClass("vamtam-sticky-header--fixed-hidden")||e(t).addClass("vamtam-sticky-header--fixed-hidden"),o="fixedHiddenState"},s=function(){e(t).removeClass("vamtam-sticky-header--fixed-hidden"),e(t).hasClass("vamtam-sticky-header--fixed-shown")||e(t).addClass("vamtam-sticky-header--fixed-shown"),o="fixedShownState"},c=function(){e(t).removeClass("vamtam-sticky-header--fixed-shown"),e(t).removeClass("vamtam-sticky-header--fixed-hidden"),o="noAnimState"};function d(){if(i){var n=e(t).innerHeight();e(t).css("margin-bottom","-"+n+"px"),e(t).next(".vamtam-prevent-scroll-jumps").css("padding-top",n+"px")}}i&&e(t).after('<div class="vamtam-prevent-scroll-jumps"></div>'),window.VAMTAM.isMaxDeviceWidth()&&d();const m=(e=!1)=>{window.pageYOffset>=300?r():e||window.addEventListener("load",function(){o||setTimeout(()=>{m(!0)},10)})};m();var l,u=null,f=window.scrollY;window.addEventListener("scroll",function(i){null!==u&&clearTimeout(u),u=setTimeout(function(){f=window.scrollY},500);var m=window.VAMTAM.debounce(function(){if("#document"===i.target.nodeName){if(!(()=>!e(t).find("a:hover").length&&!e(".vamtam-header-mega-menu:visible").length)())return void(a&&"fixedShownState"!==o&&s());var d=n.utils.getScrollDirection();if(l!==d&&(f=window.scrollY),l=d,Math.abs(window.scrollY-f)<80&&window.scrollY>80)return;if("up"===d)return void(window.pageYOffset>=300?"fixedShownState"!==o&&s():"noAnimState"!==o&&c());if("down"===d&&(window.pageYOffset>=300||a)){var m=!e(t).find(".elementor-menu-cart--shown").length;"fixedHiddenState"!==o&&m&&r()}}},200);window.VAMTAM.isMaxDeviceWidth()?(d(),requestAnimationFrame(m)):"noAnimState"!==o&&c()},{passive:!0})}())},observedAnims:function(){var t="vamtam-animate",n=document.querySelectorAll(".vamtam-observe");if(n.length){var o,a=function(n,o){n.forEach(function(n){var a=!1,i=n.target,r=i&&e(i);n.isIntersecting&&(a=!0),a?(r.hasClass(t)||(r.addClass(t),r.trigger("vamtam:animate")),r.hasClass("vamtam-looped")||o&&o.unobserve&&o.unobserve(i)):r.hasClass(t)&&r.removeClass(t)})};n.forEach(function(n){e(n).removeClass(t),o||(o=new IntersectionObserver(a)),o.observe(n)})}},scrollBasedAnims:function(){var t=document.querySelectorAll(['[data-settings*="growFromLeftScroll"]','[data-settings*="growFromRightScroll"]'].join(", "));if(!t.length)return;var n,o={},a=this,i=function(e){e.forEach(function(e){var t=e.boundingClientRect.y,n=e.isIntersecting,i=e.target,r=Math.abs(parseFloat((100*e.intersectionRatio).toFixed(2))),s=o[i.dataset.vamtam_anim_id].lastScrollPercentage,c=o[i.dataset.vamtam_anim_id].lastScrollY,d=o[i.dataset.vamtam_anim_id].animateEl,m=function(){window.requestAnimationFrame(function(){d.style.setProperty("--vamtam-scroll-ratio",r+"%")})};n&&c!==t&&("down"===a.utils.getScrollDirection()?s<r&&m():m()),o[i.dataset.vamtam_anim_id].lastScrollY=t,o[i.dataset.vamtam_anim_id].lastScrollPercentage=r})};const r=function(){var e,t=[];for(e=1;e<=50;e++){var n=e/50;t.push(n)}return t.push(0),t}();t.forEach(function(t){var a;n||(n=new IntersectionObserver(i,{root:null,rootMargin:"20% 0% 20% 0%",threshold:r}));if(t.style.setProperty("--vamtam-scroll-ratio","1%"),t.classList.contains("elementor-widget")||t.classList.contains("elementor-column"))(a=t.parentElement).setAttribute("data-vamtam_anim_id",t.dataset.id);else{e(t).before('<div class="vamtam-scroll-anim-wrap" data-vamtam_anim_id="'+t.dataset.id+'"></div>');var s=e(t).prev(".vamtam-scroll-anim-wrap");e(s).append(t),a=s[0]}o[t.dataset.id]={lastScrollY:"",lastScrollPercentage:"",observeEl:a,animateEl:t},n.observe(a)})},cursorAnimation:function(){if(!(window.elementorFrontend.isEditMode()||this.utils.isTouchDevice()||e("body").filter(".no-theme-cursor, .no-caridad-cursor").length)&&"elementorFrontendConfig"in window&&window.elementorFrontendConfig.kit.vamtam_theme_has_theme_cursor){e("body").append('<span id="mouseDot" class="mouse-dot"></span>').addClass("has-mouse-dot");var t,n=e("#mouseDot"),o=0,a=0,i=0,r=0;e(document).on("mousemove mouseenter",function(e){clearTimeout(t),window.VAMTAM.isBelowMaxDeviceWidth()||(n.hasClass("moving")||n.addClass("moving"),o=e.clientX,a=e.clientY,t=setTimeout(function(){n.removeClass("moving")},500))}),window.requestAnimationFrame(function(){setInterval(function(){i+=(o-i)/6,r+=(a-r)/6,n.css({transform:"translate("+i+"px, "+r+"px)"})},20)});e(document).on("mouseover",window.VAMTAM.debounce(function(t){let o,a;t.target.href?o=!0:"IFRAME"===t.target.tagName?a=!0:(e(t.target).parent("a[href]").length&&(o=!0),e(t.target).closest("a.elementor-button-link[href]").length&&(o=!0)),o?window.requestAnimationFrame(function(){n.addClass("over-link")}):window.requestAnimationFrame(function(){n.removeClass("over-link")}),a?window.requestAnimationFrame(function(){n.addClass("over-iframe")}):window.requestAnimationFrame(function(){n.removeClass("over-iframe")})},100))}},utils:{getAdminBarHeight:function(){return window.VAMTAM.adminBarHeight},watchScrollDirection:function(){var e=function(){return this.lastScrollTop=0,this.utils=this,{init:function(){},measure:function(e){this.direction=e>this.lastScrollTop?"down":"up"}.bind(this),mutate:function(e){this.utils.getScrollDirection=function(){return this.direction},this.lastScrollTop=e<=0?0:e}.bind(this)}}.bind(this);window.VAMTAM.addScrollHandler(e())},isTouchDevice:function(){const e=" -webkit- -moz- -o- -ms- ".split(" ");return!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)||function(e){return window.matchMedia(e).matches}(["(",e.join("touch-enabled),("),"heartz",")"].join(""))}}}},window.VAMTAM.CUSTOM_ANIMATIONS.init(),e(window).ready(function(){window.VAMTAM.CUSTOM_ANIMATIONS.onDomReady()})})}(jQuery);
Page not found – Hello World !