HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux WebLive 5.15.0-79-generic #86-Ubuntu SMP Mon Jul 10 16:07:21 UTC 2023 x86_64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/wpyourdayfloraldesign/wp-content/themes/vamtam-fiore/vamtam/assets/js/all.min.js
(()=>{var t=window.VAMTAM=window.VAMTAM||{},o=(t.debounce=function(a,n=300,i=!1){var r;return function(){var e=this,t=arguments,o=i&&!r;clearTimeout(r),r=setTimeout(function(){r=null,i||a.apply(e,t)},n),o&&a.apply(e,t)}},t.offset=function(e){var e=e.getBoundingClientRect(),t=window.pageXOffset||document.documentElement.scrollLeft,o=window.pageYOffset||document.documentElement.scrollTop;return{top:e.top+o,left:e.left+t}},t.scroll_handlers=[],t.latestKnownScrollY=0,!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,o||(o=!0,requestAnimationFrame(function(){for(var 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);o=!1}))},window.addEventListener("scroll",t.onScroll,{passive:!0}),t.load_script=function(e,t){var o=document.createElement("script");o.type="text/javascript",o.async=!0,o.src=e,t&&(o.onload=t),document.getElementsByTagName("script")[0].before(o)},t.load_style=function(e,t,o,a){var n=document.createElement("link");n.rel="stylesheet",n.type="text/css",n.media=t,n.href=e,o&&(n.onload=o),a?a.after(n):document.getElementsByTagName("link")[0].before(n)},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.isMediumDeviceOrWider=function(){return window.matchMedia("(min-width: "+VAMTAM_FRONT.medium_breakpoint+"px)").matches},t.isSmallDeviceWidth=function(){return window.matchMedia("(max-width: "+(VAMTAM_FRONT.medium_breakpoint-1)+"px)").matches},t.isMobileBrowser=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Windows Phone/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&2<navigator.maxTouchPoints;let a=!(t.getScrollbarWidth=()=>window.innerWidth-document.documentElement.clientWidth);t.waitForLoad=function(e){a?e():window.addEventListener("load",e)},window.addEventListener("load",function(){a=!0})})(),((s,n,t)=>{function i(o,e,a){requestAnimationFrame(function(){var e=o.offset().top,t=(n.blockStickyHeaderAnimation=!0,c.height()||0),e=e-n.adminBarHeight-t;r=a,window.addEventListener("scroll",l,{passive:!0}),window.scroll({left:0,top:e,behavior:"smooth"}),o.attr("id")&&(history.pushState?history.pushState(null,null,"#"+o.attr("id")):window.location.hash=o.attr("id")),d&&d.classList.remove("mega-menu-open"),m&&m.classList.remove("mega-menu-open")})}var e,r,o,c=s("header.main-header").find(".header-contents"),d=document.getElementById("vamtam-fallback-main-menu-toggle"),m=document.querySelector("#main-menu > .mega-menu-wrap > .mega-menu-toggle"),l=function(){clearTimeout(e),e=setTimeout(a,200)},a=function(){window.removeEventListener("scroll",l,{passive:!0}),n.blockStickyHeaderAnimation=!1,r&&r()};s(document.body).on("click",".vamtam-animated-page-scroll[href], .vamtam-animated-page-scroll [href], .vamtam-animated-page-scroll [data-href]",function(e){var t=s(this).prop("href")||s(this).data("href"),o=s("#"+t.split("#")[1]),a=document.createElement("a");a.href=t,o.length&&a.pathname===window.location.pathname&&(d&&d.classList.remove("mega-menu-open"),m&&m.classList.remove("mega-menu-open"),i(o),e.preventDefault())}),""!==window.location.hash&&(s('.vamtam-animated-page-scroll[href*="'+window.location.hash+'"]').length||s('.vamtam-animated-page-scroll [href*="'+window.location.hash+'"]').length||s('.vamtam-animated-page-scroll [data-href*="'+window.location.hash+'"]').length)&&(0<(o=s(window.location.hash)).length&&s(window).add("html, body, #page").scrollTop(0),setTimeout(function(){i(o)},400)),document.addEventListener("DOMContentLoaded",function(){if("elementorFrontend"in window&&!window.elementorFrontend.isEditMode()){var e=document.querySelectorAll(".vamtam-menu-click-on-hover a");let o=document.querySelector(".elementor-location-header"),a,n,i=!1,r=null,c=function(){o.style.zIndex=t,o.style.position=t,i&&s(document.body).click(),r=null,i=!1};s(document.body).on("mouseenter",".dialog-widget-content",function(){clearTimeout(a)}),s(document.body).on("mouseleave",".dialog-widget-content",function(){a=setTimeout(c,500)}),s(document.body).on("mouseenter",".elementor-nav-menu > .menu-item-has-children, .vamtam-menu-click-on-hover",function(e){e.target!==r&&(clearTimeout(a),clearTimeout(n),c())}),e.forEach(function(t){t.addEventListener("mouseenter",function(e){e.preventDefault(),e.stopPropagation(),r===t||i?clearTimeout(a):(r=t,n=setTimeout(()=>{o.style.zIndex=9999,o.style.position="relative",i=!0,s(t).click()},200))}),t.addEventListener("mouseleave",function(){clearTimeout(n),i?a=setTimeout(c,500):(r=null,i=!1)}),t.innerHTML+='<span class="sub-arrow"><i class="fas fa-chevron-down"></i></span>'})}})})(jQuery,window.VAMTAM),(r=>{function e(){function e(){var e=window.VAMTAM.isBelowMaxDeviceWidth();n!==e&&(a.forEach(function(e){e.isActive&&e.closeTrigger.click()}),n=e)}function o(e){var t=e.currentTarget;if(r(t).hasClass("elementor-menu-toggle")){var e=r(t).closest(".elementor-row");if((e=e.length?e:r(t).closest(".elementor-container")).hasClass("vamtam-menu-nav-overlay-inside")||(e.addClass("vamtam-menu-nav-overlay-inside"),r(e).find(".vamtam-overlay-element").css("top",r(e)[0].getBoundingClientRect().top+r(e).height()+"px")),e.hasClass("vamtam-overlay-trigger--overlay"))return;e.addClass("vamtam-overlay-trigger--overlay"),a.forEach(function(e){e.overlayTarget!==t&&e.closeTrigger!==t||(e.isActive=!0)})}r("html, body").addClass("vamtam-disable-scroll"),r("#scroll-to-top").addClass("hidden"),r(e=t).hasClass("elementor-menu-toggle")&&(e.removeEventListener("click",i),e.addEventListener("click",i))}var t=document.querySelectorAll(".vamtam-overlay-trigger"),a=[],n=window.VAMTAM.isBelowMaxDeviceWidth(),i=function(e){var t=e.currentTarget;r(t).hasClass("elementor-menu-toggle")&&(e=(e=r(t).closest(".elementor-row")).length?e:r(t).closest(".elementor-container")).hasClass("vamtam-overlay-trigger--overlay")&&(e.removeClass("vamtam-overlay-trigger--overlay"),t.removeEventListener("click",i),a.forEach(function(e){e.overlayTarget!==t&&e.closeTrigger!==t||(e.isActive=!1)})),r(".vamtam-overlay-trigger--overlay .vamtam-overlay-element:visible").length<2&&(r("html, body").removeClass("vamtam-disable-scroll"),r("#scroll-to-top").removeClass("hidden"))};t.forEach(function(e){var t;r(e).hasClass("elementor-widget-nav-menu")&&((t=r(e).find(".elementor-menu-toggle")[0]).removeEventListener("click",o),t.addEventListener("click",o),a.push({overlayTarget:e,closeTrigger:t,isActive:!1}),(t=r(e).closest(".elementor-row")).length||(t=r(e).closest(".elementor-container")),r('<span class="vamtam-overlay-element"></span>').appendTo(t))}),t.length&&(document.addEventListener("click",function(t){a.forEach(function(e){!e.isActive||t.target===e.overlayTarget||e.overlayTarget.contains(t.target)||e.closeTrigger.click()})},!0),window.addEventListener("resize",window.VAMTAM.debounce(e,200),!1))}window.VAMTAM=window.VAMTAM||{},r(function(){var e,t;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")}),t=document.body,window.addEventListener("scroll",function(){clearTimeout(e),requestAnimationFrame(function(){t.classList.add("disable-hover"),e=setTimeout(function(){t.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(){r("#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 e=this.offsetWidth;this.style.width="100%","0"===this.width&&"0"===this.height?this.style.height=9*e/16+"px":this.style.height=this.height*e/this.width+"px",r(this).trigger("vamtam-video-resized")}.bind(this))}.bind(this),50)}),setTimeout(function(){requestAnimationFrame(function(){r(".mejs-time-rail").css("width","-=1px")})},100)},window.addEventListener("resize",window.VAMTAM.debounce(window.VAMTAM.resizeElements,100),!1),window.VAMTAM.resizeElements(),r(document).ajaxSuccess(function(e,t,o){o.data&&"wishlist_remove"===o.data.split("&").map(e=>e.split("=")).reduce((e,t)=>(e[t[0]]=t[1],e),{}).action&&1===(o=JSON.parse(t.responseText)).status&&0===o.count&&(r(".vamtam-empty-wishlist-notice").show(),r("table.woosw-items").hide())})}),document.addEventListener("DOMContentLoaded",function(){window.VAMTAM.load_script(VAMTAM_FRONT.jspath+"low-priority.js"),e(),jQuery("html").css("--vamtam-scrollbar-width",window.VAMTAM.getScrollbarWidth()+"px")},{passive:!0})})(jQuery),((_,n)=>{window.Cookies=window.Cookies||{get:function(e){e=("; "+document.cookie).split("; "+e+"=");if(2===e.length)return e.pop().split(";").shift()}},_(function(){var s=_(".fixed-header-box .cart-dropdown"),e=_(".vamtam-cart-dropdown-link"),d=_(".products",e),m=_(".elementor-widget-woocommerce-menu-cart"),v=m.length,l=v&&_(m).find(".vamtam-elementor-menu-cart__header .item-count"),t="wc_add_to_cart_params"in window&&window.wc_add_to_cart_params.is_cart;function u(){t&&document.querySelectorAll(".woocommerce-cart-form__contents").forEach(function(e){_(e).hasClass("shop_table")||_(e).parent().hasClass("vamtam-cart-main")||_(e).removeClass("woocommerce-cart-form__contents")})}function p(){var e=_("#elementor-menu-cart__toggle_button:visible");_.each(e,function(e,t){t.click()})}_(document.body).on("applied_coupon_in_checkout",function(){var e=document.querySelector(".woocommerce-error");e&&e.scrollIntoView({block:"center",behavior:"smooth"})});function o(o){var e=_(".elementor-widget-woocommerce-menu-cart.vamtam-has-theme-widget-styles .elementor-menu-cart__toggle_button");let a=!1;if(_.each(e,function(e,t){if(_(t).is(o.target)||_(t).has(o.target).length)return!(a=!0)}),a)return o.preventDefault(),t?(o.stopImmediatePropagation(),!1):window.VAMTAM.isMobileBrowser?(o.stopImmediatePropagation(),window.location=window.wc_add_to_cart_params.cart_url,!1):(_("body").addClass("vamtam-disable-scroll"),_("#scroll-to-top").addClass("hidden"),void _(o.target).closest(".elementor-top-section").css("z-index","1000"))}function w(e,t){(_(e.target).is(".elementor-menu-cart__container, .vamtam-close-cart, .e-close-cart-custom-icon")||"no-target"===e&&t)&&(_("body").removeClass("vamtam-disable-scroll"),_("#scroll-to-top").removeClass("hidden"),_(e.target).closest("section.elementor-element").css("z-index",""))}function h(){document.querySelectorAll(".elementor-widget-woocommerce-menu-cart.vamtam-has-theme-widget-styles .elementor-menu-cart__toggle_wrapper").forEach(function(e){e.removeEventListener("click",o),e.addEventListener("click",o,!0)}),document.querySelectorAll(".elementor-widget-woocommerce-menu-cart.vamtam-has-theme-widget-styles .elementor-menu-cart__container .elementor-menu-cart__close-button, .elementor-widget-woocommerce-menu-cart.vamtam-has-theme-widget-styles .elementor-menu-cart__container").forEach(function(e){e.removeEventListener("click",w),e.addEventListener("click",w)})}function f(e){var t=_("#scroll-to-top.vamtam-scroll-to-top"),o=_(".woocommerce-notices-wrapper .woocommerce-message");t.length&&(e?t.css("bottom","10px"):o.length?t.css("bottom",o.outerHeight()+10+"px"):t.css("bottom","95px"))}h();var a,e=v?"vamtam_elementor_menu_cart_fragments wc_fragments_loaded":"added_to_cart removed_from_cart wc_fragments_refreshed wc_fragments_loaded";function g(e){var t;e&&(_(".woocommerce-notices-wrapper").empty().append(e),(t=_(".woocommerce-notices-wrapper").find(".vamtam-close-notice-btn")).length)&&(t[0].addEventListener("click",function(){var e=_(this).closest(".woocommerce-message");e.fadeOut("fast"),f(!0),setTimeout(function(){e.remove()},2e3)}),setTimeout(function(){var e=t.closest(".woocommerce-message");e.fadeOut("fast"),setTimeout(function(){e.remove(),f(!0)},2e3)},1e4))}_(document.body).on(e,function(){var e=parseInt(Cookies.get("woocommerce_items_in_cart")||0,10);if(0<e)if(v){m.removeClass("hidden");var t=m[0].querySelectorAll(".cart_item .quantity select, .cart_item .quantity .vamtam-quantity-input"),o=!1,a=m.find("#elementor-menu-cart__toggle_button .elementor-button-icon-qty"),n=(t.length||(t=m[0].querySelectorAll(".cart_item .product-quantity"),o=!0),0);t.forEach(function(e){e=o?e.textContent:e.value;n+=parseInt(e,10)}),l.text("("+n+")"),_.each(a,function(e,t){var o=parseInt(_(t).attr("data-counter"),10);n!==o&&_(t).attr("data-counter",n)})}else{var i=0,t=document.querySelector(".widget_shopping_cart"),r=t?t.querySelectorAll("li .quantity"):[];if(t){for(var c=0;c<r.length;c++)i+=parseInt(r[c].innerHTML.split("<span")[0].replace(/[^\d]/g,""),10);d.text(i=0<=i?i:""),d.removeClass("cart-empty"),s.removeClass("hidden")}}else v?(a=m.hasClass("elementor-menu-cart--empty-indicator-hide"),m.toggleClass("hidden",a),l.text("(0)"),w("no-target",!0)):(t=s.hasClass("show-if-empty"),d.addClass("cart-empty"),d.text("0"),s.toggleClass("hidden",!t));document.body.classList.toggle("vamtam-wc-cart-empty",0===e),!!_("body").hasClass("single-product")&&_(".woocommerce-notices-wrapper .woocommerce-message").length&&f(),h(),u()}),_("body").hasClass("single-product")&&!_(".sold-individually").length&&(e=_(".stock.in-stock"),a=_('input[name="quantity"][max="1"][min="1"]'),e.length)&&a.length&&e.addClass("last-one"),_(document).on("click",'.woocommerce-cart button[name="apply_coupon"]:not(".e-apply-coupon"):visible',function(e){e.preventDefault(),_('input[type="submit"][name="apply_coupon"]').trigger("click")}),document.body.classList.contains("vamtam-limited-layout")||(_(document).on("click",".single_add_to_cart_button, .products.vamtam-wc.table-layout .add_to_cart_button:not(.product_type_variable)",function(e){var t=_(this),a=t.closest("form.cart"),o=t.val(),n=a.find("input[name=quantity]").val()||1,i=a.find("input[name=product_id]").val()||o,r=a.find("input[name=variation_id]").val()||0,c=r,s=a.find("input[name=add-to-cart].wc-booking-product-id").val(),d=a.hasClass("grouped_form"),m=a.parent(".elementor-product-external").length&&"get"===a.attr("method"),l=t.closest(".products.vamtam-wc.table-layout").length,u=a.find(".thwepo-extra-options").length,w={},h=t.parents(".elementor-widget-woocommerce-product-add-to-cart.vamtam-has-disable-theme-ajax-atc").length;if(!h)if(e.preventDefault(),m)window.open(a.attr("action"),"_blank");else{if(d&&(i=parseInt(a.find("input[name=add-to-cart]").val()),h=a.find('[id^="product-"]'),_.each(h,function(e,t){var o=_(t).find(".add_to_cart_button"),a=_(t).attr("id").substr(8),o=o.length?parseInt(o.attr("data-quantity"))||0:parseInt(_(t).find("input.qty").val())||0;w[a]=o})),l){if("yes"!==window.VAMTAM_FRONT.enable_ajax_add_to_cart)return void a.submit();e=t.closest("tr.vamtam-product");e.length&&(n=e.find("input[name=quantity]").val()||1,i=t.attr("data-product_id")||o)}if(window.wc_add_to_cart_params){var f={};if(s){let o=new FormData(a[0]);o.forEach(function(e,t){"add-to-cart"===t?f.product_id=e:f[t.replace("wc_bookings_field","")]=e,t.includes("[]")?f[t]=o.getAll(t):f[t]=e}),f.is_wc_booking=!0}else if(d){f={product_id:i,products:w,is_grouped:!0};u&&new FormData(a[0]).forEach(function(e,t){"add-to-cart"!==t&&(f[t]=e)})}else if(c){f={product_id:i,is_variable:!0};let o=new FormData(a[0]);o.forEach(function(e,t){"add-to-cart"===t?f.product_id=e:t.includes("[]")?f[t]=o.getAll(t):f[t]=e})}else{f={product_id:i};let o=new FormData(a[0]);o.forEach(function(e,t){"add-to-cart"===t?f.product_id||(f.product_id=e):t.includes("[]")?f[t]=o.getAll(t):f[t]=e})}return f.product_sku="",f.quantity=n,f.variation_id=r,f.action="woocommerce_ajax_add_to_cart",_(document.body).trigger("adding_to_cart",[t,f]),_.ajax({type:"post",url:window.wc_add_to_cart_params.ajax_url,data:f,beforeSend:function(){t.removeClass("added").addClass("loading")},complete:function(e){(e.error?t:t.addClass("added")).removeClass("loading")},success:function(e){e.error?(g(e.notice),_(document.body).trigger("wc_fragments_refreshed")):e.redirect_to_cart?window.location=window.wc_add_to_cart_params.cart_url:(v?l?!window.VAMTAM.isMobileBrowser&&t.parents('.vamtam-has-adc-triggers-menu-cart[data-widget_type="woocommerce-products.products_table_layout"]').length&&setTimeout(()=>{p()},500):window.VAMTAM.isMobileBrowser||setTimeout(()=>{p()},500):g(e.fragments.notice),_(document.body).trigger("added_to_cart",[e.fragments,e.cart_hash,t]))}}),!1}}}),_(document).on("click",".woocommerce-mini-cart .woocommerce-cart-form__cart-item .product-remove > a",function(){_(this).parents(".woocommerce-cart-form__cart-item").css({"pointer-events":"none",transition:"opacity .3s ease",opacity:"0.5"})}),window.wc_add_to_cart_params&&_(document).on("click",".mini_cart_item a.remove, .woocommerce-mini-cart .woocommerce-cart-form__cart-item .product-remove > a:not([class])",function(e){e.preventDefault();var t=_(this),e=_(this).attr("data-product_id"),o=_(this).attr("data-cart_item_key"),a=_(this).parents(".mini_cart_item, .woocommerce-cart-form__cart-item");_.ajax({type:"post",dataType:"json",url:window.wc_add_to_cart_params.ajax_url,data:{action:"product_remove",product_id:e,cart_item_key:o},beforeSend:function(){a.css("pointer-events","none").css("opacity","0.5"),_("body").css("cursor","wait")},complete:function(){_("body").css("cursor","default")},success:function(e){e&&e.fragments?_(document.body).trigger("removed_from_cart",[e.fragments,e.cart_hash,t]):window.location=t.attr("href")},error:function(){window.location=t.attr("href")}})}),a=".woocommerce-cart-form__cart-item .vamtam-quantity",_(document).on("change",a+` select, ${a} input`,n.debounce(function(e){e.preventDefault();var e=_(".woocommerce-cart").length,t=_(this).val(),o=_(this).attr("data-product_id"),a=_(this).attr("data-cart_item_key"),n=_(this).parents(".mini_cart_item, .woocommerce-cart-form__cart-item");e?((e=_('input[type="submit"][name="update_cart"]')).prop("disabled",!1),e.trigger("click")):window.wc_add_to_cart_params&&_.ajax({type:"post",dataType:"json",url:window.wc_add_to_cart_params.ajax_url,data:{action:"update_item_from_cart",product_id:o,cart_item_key:a,product_quantity:t},beforeSend:function(){n.css("pointer-events","none").css("opacity","0.5"),_("body").css("cursor","wait")},complete:function(){n.css("pointer-events","auto").css("opacity","1"),_("body").css("cursor","default")},success:function(e){e&&e.fragments&&_(document.body).trigger("wc_fragment_refresh")},error:function(){}})}))),window.addEventListener("load",function(){{let e=_(document.body).hasClass("woocommerce-checkout"),t=e&&_("form.checkout"),o=e&&_(".woocommerce > .woocommerce-notices-wrapper").first();e&&t.length&&o.length&&_(document.body).on("checkout_error",function(){var e=t.find(".woocommerce-NoticeGroup.woocommerce-NoticeGroup-checkout");o.append(e)})}v&&(h(),u())}),v&&_(document).ajaxComplete((e,t,o)=>{t=t.responseJSON,t=t&&t.fragments,o=o.data&&-1!==o.data.indexOf("action=elementor_menu_cart_fragments");t&&o&&_(document.body).trigger("vamtam_elementor_menu_cart_fragments")})}),document.addEventListener("DOMContentLoaded",function(){{let o=new URLSearchParams({action:"vamtam_get_woosw_buttons"}),a={};document.querySelectorAll(".woosw-btn").forEach(e=>{var t=parseInt(e.dataset.id,10);o.append("id[]",t),a[t]=e}),fetch(VAMTAM_FRONT.ajaxurl,{method:"POST",body:o}).then(e=>e.json()).then(e=>{for(var t in e)a[t].outerHTML=e[t]})}})})(jQuery,window.VAMTAM),(f=>{window.VAMTAM=window.VAMTAM||{},window.VAMTAM.CUSTOM_ANIMATIONS={},window.VAMTAM.CUSTOM_ANIMATIONS={init:function(){},onDomReady:function(){this.VamtamCustomAnimations.init(),this.VamtamCustomAnimations.scrollBasedAnims()},VamtamCustomAnimations:{init:function(){this.registerAnimations(),this.utils.watchScrollDirection()},registerAnimations:function(){var t=this;["stickyHeader"].forEach(function(e){t[e].apply(t)})},stickyHeader:function(){var a=f(".vamtam-sticky-header"),n=this;if(a.length){1<a.length&&(a=a[0]);{function i(){f(a).removeClass("vamtam-sticky-header--fixed-shown"),f(a).hasClass("vamtam-sticky-header--fixed-hidden")||f(a).addClass("vamtam-sticky-header--fixed-hidden"),s="fixedHiddenState"}function r(){f(a).removeClass("vamtam-sticky-header--fixed-hidden"),f(a).hasClass("vamtam-sticky-header--fixed-shown")||f(a).addClass("vamtam-sticky-header--fixed-shown"),s="fixedShownState"}function c(){f(a).removeClass("vamtam-sticky-header--fixed-shown"),f(a).removeClass("vamtam-sticky-header--fixed-hidden"),s="noAnimState"}var s,e,o,d,m=f(a).hasClass("vamtam-sticky-header--transparent-header"),l=f(a).innerHeight();e=f("body").css("padding-left"),o=f("body").css("padding-right"),(d=f(a).parents('[data-elementor-type="header"]').first()).length&&(parseInt(e)&&d.css("--vamtam-sticky-mleft","-"+e),parseInt(o))&&d.css("--vamtam-sticky-mright","-"+o);let t=(e=!1)=>{10<=window.pageYOffset?i():e||window.addEventListener("load",function(){s||setTimeout(()=>{t(!0)},10)})};t();var u,w=null,h=window.scrollY;window.addEventListener("scroll",function(o){null!==w&&clearTimeout(w),w=setTimeout(function(){h=window.scrollY},500);var e=window.VAMTAM.debounce(function(){var e,t;"#document"===o.target.nodeName&&(f(a).find("a:hover").length||f(".vamtam-header-mega-menu:visible").length?m&&"fixedShownState"!==s&&r():(e=n.utils.getScrollDirection(),u!==e&&(h=window.scrollY),u=e,t=Math.abs(window.scrollY-h),window.scrollY>l&&t<20||("up"===e?10<=window.pageYOffset?"fixedShownState"!==s&&r():"noAnimState"!==s&&c():"down"===e&&(10<=window.pageYOffset||m)&&(t=!f(a).find(".elementor-menu-cart--shown").length,"fixedHiddenState"!==s)&&t&&i())))},25);window.VAMTAM.isMaxDeviceWidth()?requestAnimationFrame(e):"noAnimState"!==s&&c()},{passive:!0})}}},scrollBasedAnims:function(){var e=document.querySelectorAll(['[data-settings*="growFromLeftScroll"]','[data-settings*="growFromRightScroll"]'].join(", "));if(e.length){var n,s={},d=this,i=function(e){e.forEach(function(e){function t(){window.requestAnimationFrame(function(){c.style.setProperty("--vamtam-scroll-ratio",i+"%")})}var o=e.boundingClientRect.y,a=e.isIntersecting,n=e.target,i=Math.abs(parseFloat((100*e.intersectionRatio).toFixed(2))),e=s[n.dataset.vamtam_anim_id].lastScrollPercentage,r=s[n.dataset.vamtam_anim_id].lastScrollY,c=s[n.dataset.vamtam_anim_id].animateEl;a&&r!==o&&("down"!==d.utils.getScrollDirection()||e<i)&&t(),s[n.dataset.vamtam_anim_id].lastScrollY=o,s[n.dataset.vamtam_anim_id].lastScrollPercentage=i})};let a=(()=>{for(var e=[],t=1;t<=50;t++)e.push(t/50);return e.push(0),e})();e.forEach(function(e){var t,o;n||(o={root:null,rootMargin:"20% 0% 20% 0%",threshold:a},n=new IntersectionObserver(i,o)),e.style.setProperty("--vamtam-scroll-ratio","1%"),e.classList.contains("elementor-widget")||e.classList.contains("elementor-column")?(t=e.parentElement).setAttribute("data-vamtam_anim_id",e.dataset.id):(f(e).before('<div class="vamtam-scroll-anim-wrap" data-vamtam_anim_id="'+e.dataset.id+'"></div>'),o=f(e).prev(".vamtam-scroll-anim-wrap"),f(o).append(e),t=o[0]),s[e.dataset.id]={lastScrollY:"",lastScrollPercentage:"",observeEl:t,animateEl:e},n.observe(t)})}},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(){var e=" -webkit- -moz- -o- -ms- ".split(" ");return!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)||(e=["(",e.join("touch-enabled),("),"heartz",")"].join(""),window.matchMedia(e).matches)}}}},window.VAMTAM.CUSTOM_ANIMATIONS.init(),document.addEventListener("DOMContentLoaded",function(){window.VAMTAM.CUSTOM_ANIMATIONS.onDomReady()},!0)})(jQuery);