HEX
Server: LiteSpeed
System: Linux venus 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
User: axxoncom (1007)
PHP: 8.3.19
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/axxoncom/domains/maxvin.pk/public_html/wp-content/themes/jolie/vamtam/assets/js/all.min.js
!function(e){"use strict";var t=window.VAMTAM=window.VAMTAM||{};t.debounce=function(e,t,o){var n;return function(){var a=this,i=arguments,r=o&&!n;clearTimeout(n),n=setTimeout(function(){n=null,o||e.apply(a,i)},t),r&&e.apply(a,i)}},t.offset=function(e){var t=e.getBoundingClientRect(),o=window.pageXOffset||document.documentElement.scrollLeft,n=window.pageYOffset||document.documentElement.scrollTop;return{top:t.top+n,left:t.left+o}},t.scroll_handlers=[],t.latestKnownScrollY=0;var o=!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(){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);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,n){var a=document.createElement("link");a.rel="stylesheet",a.type="text/css",a.media=t,a.href=e,o&&(a.onload=o),n?n.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.isMediumDeviceOrWider=function(){return window.matchMedia("(min-width: "+VAMTAM_FRONT.medium_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);let n=!1;t.waitForLoad=function(e){n?e():window.addEventListener("load",e)},window.addEventListener("load",function(){n=!0})}(),function(e,t,o){"use strict";var n,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(n),n=setTimeout(d,200)},d=function(){window.removeEventListener("scroll",c,{passive:!0}),t.blockStickyHeaderAnimation=!1,a&&a()},l=function(e,o,n){requestAnimationFrame(function(){var o=e.offset().top;t.blockStickyHeaderAnimation=!0;var d;d=i.height()||0;var l=o-t.adminBarHeight-d;a=n,window.addEventListener("scroll",c,{passive:!0}),window.scroll({left:0,top:l,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 o=e(this).prop("href")||e(this).data("href"),n=e("#"+o.split("#")[1]),a=document.createElement("a");a.href=o,n.length&&a.pathname===window.location.pathname&&(r&&r.classList.remove("mega-menu-open"),s&&s.classList.remove("mega-menu-open"),l(n),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 m=e(window.location.hash);m.length>0&&e(window).add("html, body, #page").scrollTop(0),setTimeout(function(){l(m)},400)}document.addEventListener("DOMContentLoaded",function(){if("elementorFrontend"in window&&!window.elementorFrontend.isEditMode()){let t,o,n=document.querySelectorAll(".vamtam-menu-click-on-hover a"),a=document.querySelector(".elementor-location-header"),i=!1,r=null;const s=function(){a.style.zIndex=void 0,a.style.position=void 0,i&&e(document.body).click(),r=null,i=!1};e(document.body).on("mouseenter",".dialog-widget-content",function(){clearTimeout(t)}),e(document.body).on("mouseleave",".dialog-widget-content",function(){t=setTimeout(s,500)}),e(document.body).on("mouseenter",".elementor-nav-menu > .menu-item-has-children, .vamtam-menu-click-on-hover",function(e){e.target!==r&&(clearTimeout(t),clearTimeout(o),s())}),n.forEach(function(n){n.addEventListener("mouseenter",function(s){s.preventDefault(),s.stopPropagation(),r===n||i?clearTimeout(t):(r=n,o=setTimeout(()=>{a.style.zIndex=9999,a.style.position="relative",i=!0,e(n).click(),e(".dialog-close-button i.eicon-close").addClass("vamtamtheme- vamtam-theme-close")},200))}),n.addEventListener("mouseleave",function(){clearTimeout(o),i?t=setTimeout(s,500):(r=null,i=!1)})})}})}(jQuery,window.VAMTAM),function(e,t){"use strict";window.VAMTAM=window.VAMTAM||{},e(function(){var t,o;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")}),o=document.body,window.addEventListener("scroll",function(){clearTimeout(t),requestAnimationFrame(function(){o.classList.add("disable-hover"),t=setTimeout(function(){o.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 o=function(){var t=document.querySelectorAll(".vamtam-overlay-trigger"),o=[],n=window.VAMTAM.isBelowMaxDeviceWidth(),a=function(t){var n=t.currentTarget;if(e(n).hasClass("elementor-menu-toggle")){var i=e(n).closest(".elementor-row");i.length||(i=e(n).closest(".elementor-container")),i.hasClass("vamtam-overlay-trigger--overlay")&&(i.removeClass("vamtam-overlay-trigger--overlay"),n.removeEventListener("click",a),o.forEach(function(e){e.overlayTarget!==n&&e.closeTrigger!==n||(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 n=t.currentTarget;if(e(n).hasClass("elementor-menu-toggle")){var i=e(n).closest(".elementor-row");if(i.length||(i=e(n).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"),o.forEach(function(e){e.overlayTarget!==n&&e.closeTrigger!==n||(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)}(n)};if(t.forEach(function(t){if(e(t).hasClass("elementor-widget-nav-menu")){var n=e(t).find(".elementor-menu-toggle")[0];n.removeEventListener("click",i),n.addEventListener("click",i),o.push({overlayTarget:t,closeTrigger:n,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){o.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();n!==e&&(o.forEach(function(e){e.isActive&&e.closeTrigger.click()}),n=e)},200),!1)}};document.addEventListener("DOMContentLoaded",function(){window.VAMTAM.load_script(VAMTAM_FRONT.jspath+"low-priority.js"),o(),jQuery("html").css("--vamtam-scrollbar-width",window.VAMTAM.getScrollbarWidth()+"px")},{passive:!0})}(jQuery),function(e,t,o){"use strict";window.Cookies=window.Cookies||{get:function(e){var t=("; "+document.cookie).split("; "+e+"=");if(2===t.length)return t.pop().split(";").shift()}},e(function(){var t=e(".fixed-header-box .cart-dropdown"),o=e(".vamtam-cart-dropdown-link"),n=e(".products",o),a=e(".elementor-widget-woocommerce-menu-cart"),i=a.length,r=i&&e(a).find(".vamtam-elementor-menu-cart__header .item-count"),s="wc_add_to_cart_params"in window&&window.wc_add_to_cart_params.is_cart;function c(){s&&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 d(){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"})});var l=function(t){const o=e(".elementor-widget-woocommerce-menu-cart.vamtam-has-theme-widget-styles .elementor-menu-cart__toggle_button");let n=!1;if(e.each(o,function(o,a){if(e(a).is(t.target)||e(a).has(t.target).length)return n=!0,!1}),n)return t.preventDefault(),s?(t.stopImmediatePropagation(),!1):window.VAMTAM.isMobileBrowser?(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"),void e(t.target).closest(".elementor-top-section").css("z-index","1000"))},m=function(t,o){(e(t.target).is(".elementor-menu-cart__container, .vamtam-close-cart, .e-close-cart-custom-icon")||"no-target"===t&&o)&&(e("body").removeClass("vamtam-disable-scroll"),e("#scroll-to-top").removeClass("hidden"),e(t.target).closest("section.elementor-element").css("z-index",""))};function u(){document.querySelectorAll(".elementor-widget-woocommerce-menu-cart.vamtam-has-theme-widget-styles .elementor-menu-cart__toggle_wrapper").forEach(function(e){e.removeEventListener("click",l),e.addEventListener("click",l,!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",m),e.addEventListener("click",m)})}function f(t){var o=e("#scroll-to-top.vamtam-scroll-to-top");o.length&&(t?o.css("bottom","10px"):o.css("bottom","95px"))}u();const h=i?"vamtam_elementor_menu_cart_fragments wc_fragments_loaded":"added_to_cart removed_from_cart wc_fragments_refreshed wc_fragments_loaded";function v(t){if(t){e(".woocommerce-notices-wrapper").empty().append(t);var o=e(".woocommerce-notices-wrapper").find(".vamtam-close-notice-btn");if(!o.length)return;o[0].addEventListener("click",function(){var t=e(this).closest(".woocommerce-message");t.fadeOut("fast"),f(!0),setTimeout(function(){t.remove()},2e3)}),setTimeout(function(){var e=o.closest(".woocommerce-message");e.fadeOut("fast"),setTimeout(function(){e.remove(),f(!0)},2e3)},1e4)}}e(document.body).on(h,function(){var o=parseInt(Cookies.get("woocommerce_items_in_cart")||0,10);if(o>0)if(i){a.removeClass("hidden");var s=a[0].querySelectorAll(".cart_item .quantity select"),d=!1,l=a.find("#elementor-menu-cart__toggle_button .elementor-button-icon-qty");s.length||(s=a[0].querySelectorAll(".cart_item .product-quantity"),d=!0);var h=0;s.forEach(function(e){const t=d?e.textContent:e.value;h+=parseInt(t,10)}),r.text("("+h+")"),e.each(l,function(t,o){const n=parseInt(e(o).attr("data-counter"),10);h!==n&&e(o).attr("data-counter",h)})}else{var v=0,w=document.querySelector(".widget_shopping_cart"),p=w?w.querySelectorAll("li .quantity"):[];if(w){for(var g=0;g<p.length;g++)v+=parseInt(p[g].innerHTML.split("<span")[0].replace(/[^\d]/g,""),10);v=v>=0?v:"",n.text(v),n.removeClass("cart-empty"),t.removeClass("hidden")}}else if(i){var _=a.hasClass("elementor-menu-cart--empty-indicator-hide");a.toggleClass("hidden",_),r.text("(0)"),m("no-target",!0)}else{var y=t.hasClass("show-if-empty");n.addClass("cart-empty"),n.text("0"),t.toggleClass("hidden",!y)}document.body.classList.toggle("vamtam-wc-cart-empty",0===o),!!e("body").hasClass("single-product")&&e(".woocommerce-notices-wrapper .woocommerce-message").length&&f(),u(),c()}),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")}),document.body.classList.contains("vamtam-limited-layout")||(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 o=e(this),n=o.closest("form.cart"),a=o.val(),r=n.find("input[name=quantity]").val()||1,s=n.find("input[name=product_id]").val()||a,c=n.find("input[name=variation_id]").val()||0,l=c,m=n.find("input[name=add-to-cart].wc-booking-product-id").val(),u=n.hasClass("grouped_form"),f=n.parent(".elementor-product-external").length&&"get"===n.attr("method"),h=o.closest(".products.vamtam-wc.table-layout").length,w={};if(!o.parents(".elementor-widget-woocommerce-product-add-to-cart.vamtam-has-disable-theme-ajax-atc").length)if(t.preventDefault(),f)window.open(n.attr("action"),"_blank");else{if(u){s=parseInt(n.find("input[name=add-to-cart]").val());var p=n.find('[id^="product-"]');e.each(p,function(t,o){var n,a=e(o).find(".add_to_cart_button"),i=e(o).attr("id").substr(8);n=a.length?parseInt(a.attr("data-quantity"))||0:parseInt(e(o).find("input.qty").val())||0,w[i]=n})}if(h){if("yes"!==window.VAMTAM_FRONT.enable_ajax_add_to_cart)return void n.submit();{const e=o.closest("tr.vamtam-product");e.length&&(r=e.find("input[name=quantity]").val()||1,s=o.attr("data-product_id")||a)}}if(window.wc_add_to_cart_params){var g={};if(m){const e=new FormData(n[0]);e.forEach(function(t,o){"add-to-cart"===o?g.product_id=t:g[o.replace("wc_bookings_field","")]=t,o.includes("[]")?g[o]=e.getAll(o):g[o]=t}),g.is_wc_booking=!0}else if(u)g={product_id:s,products:w,is_grouped:!0};else if(l){g={product_id:s,is_variable:!0};const e=new FormData(n[0]);e.forEach(function(t,o){"add-to-cart"===o?g.product_id=t:o.includes("[]")?g[o]=e.getAll(o):g[o]=t})}else{g={product_id:s};const e=new FormData(n[0]);e.forEach(function(t,o){"add-to-cart"===o?g.product_id||(g.product_id=t):o.includes("[]")?g[o]=e.getAll(o):g[o]=t})}return g.product_sku="",g.quantity=r,g.variation_id=c,g.action="woocommerce_ajax_add_to_cart",e(document.body).trigger("adding_to_cart",[o,g]),e.ajax({type:"post",url:window.wc_add_to_cart_params.ajax_url,data:g,beforeSend:function(){o.removeClass("added").addClass("loading")},complete:function(e){e.error?o.removeClass("loading"):o.addClass("added").removeClass("loading")},success:function(t){if(t.error)v(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(i)if(h){!window.VAMTAM.isMobileBrowser&&o.parents('.vamtam-has-adc-triggers-menu-cart[data-widget_type="woocommerce-products.products_table_layout"]').length&&setTimeout(()=>{d()},500)}else{!window.VAMTAM.isMobileBrowser&&setTimeout(()=>{d()},500)}else v(t.fragments.notice);e(document.body).trigger("added_to_cart",[t.fragments,t.cart_hash,o])}}}),!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 o=e(this),n=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:n,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,o]):window.location=o.attr("href")},error:function(){window.location=o.attr("href")}})}),e(document).on("change",".woocommerce-cart-form__cart-item .vamtam-quantity > select",function(t){t.preventDefault();var o=e(".woocommerce-cart").length,n=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(o){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:n},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"),o=t&&e("form.checkout"),n=t&&e(".woocommerce > .woocommerce-notices-wrapper").first();if(!t||!o.length||!n.length)return;e(document.body).on("checkout_error",function(){const e=o.find(".woocommerce-NoticeGroup.woocommerce-NoticeGroup-checkout");n.append(e)})}(),i&&(u(),c())}),i&&e(document).ajaxComplete((t,o,n)=>{const a=o.responseJSON,i=a&&a.fragments,r=n.data&&-1!==n.data.indexOf("action=elementor_menu_cart_fragments");i&&r&&e(document.body).trigger("vamtam_elementor_menu_cart_fragments")})})}(jQuery,window.VAMTAM),function(e,t,o){"use strict";document.addEventListener("DOMContentLoaded",function(){!function(){let e=document.querySelector(".woocommerce-product-gallery");if(!e)return;let o,n,a,i,r=new MutationObserver(e=>{for(let t of e)"attributes"===t.type&&"class"===t.attributeName&&t.target.matches("img.flex-active")&&t.target.scrollIntoView({block:"nearest",inline:"nearest",behavior:"smooth"})}),s=new MutationObserver(e=>{for(let o of e)if("childList"===o.type&&"addedNodes"in o)for(let e of o.addedNodes)e.matches(".flex-control-thumbs")&&t.waitForLoad(f)});const c=getComputedStyle(e).getPropertyValue("--vamtam-single-product-vertical-thumbs")||4,d=document.createElement("div");d.classList.add("vamtam-product-gallery-thumbs-prev"),d.addEventListener("click",()=>{let e=o.scrollTop-a;m(e),o.scrollTo({top:e,behavior:"smooth"})});const l=document.createElement("div");function m(e){d.classList.toggle("hidden",e<=0),l.classList.toggle("hidden",e+a>=i)}function u(){requestAnimationFrame(()=>{m(n=o.scrollTop)})}function f(){requestAnimationFrame(()=>{o=e.querySelector(".flex-control-thumbs"),n=o.scrollTop,a=o.offsetHeight,i=o.scrollHeight,o.childElementCount<=c&&(d.style.display="none",l.style.display="none"),o.classList.add("vamtam-thumbs-loaded"),m(n),o.addEventListener("scroll",t.debounce(u,100),{passive:!0}),e.append(d,l),o.addEventListener("touchstart",e=>{e.stopPropagation()});let r=!1;const s=e=>{r&&(e.preventDefault(),e.stopPropagation(),r=!1)};o.querySelectorAll("img, a").forEach(e=>{e.addEventListener("click",s),e.addEventListener("touchend",s),e.addEventListener("keyup",s)});let f=function(e){e.stopPropagation(),e.preventDefault(),o.removeEventListener("touchend",f)};o.addEventListener("touchmove",e=>{e.stopPropagation(),r=!0,o.addEventListener("touchend",f)})})}l.classList.add("vamtam-product-gallery-thumbs-next"),l.addEventListener("click",()=>{let e=o.scrollTop+a;m(e),o.scrollTo({top:e,behavior:"smooth"})}),r.observe(e,{attributes:!0,subtree:!0}),s.observe(e,{childList:!0,subtree:!0})}()})}(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"),o=this;t.length&&(t.length>1&&(t=t[0]),function(){var n,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"),n="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"),n="fixedShownState"},c=function(){e(t).removeClass("vamtam-sticky-header--fixed-shown"),e(t).removeClass("vamtam-sticky-header--fixed-hidden"),n="noAnimState"};(()=>{const o=e("body").css("padding-left"),n=e("body").css("padding-right"),a=e(t).parents('[data-elementor-type="header"]').first();a.length&&(parseInt(o)&&a.css("--vamtam-sticky-mleft",`-${o}`),parseInt(n)&&a.css("--vamtam-sticky-mright",`-${n}`))})();function d(){if(i){var o=e(t).innerHeight();e(t).css("margin-bottom","-"+o+"px"),e(t).next(".vamtam-prevent-scroll-jumps").css("padding-top",o+"px")}}i&&e(t).after('<div class="vamtam-prevent-scroll-jumps"></div>'),window.VAMTAM.isMaxDeviceWidth()&&(d(),setTimeout(()=>{!function(){if(!e("body").hasClass("e--ua-webkit"))return;const t=e(".vamtam-sticky-header").find(".elementor-icon-wrapper > .elementor-icon");e.each(t,function(t,o){const n=e(o),a=n.height(),i=n.parent(),r=n.parent().height();Math.abs(a-r)>5&&i.css("height",r-1+"px")})}(),d()},50));const l=(e=!1)=>{window.pageYOffset>=300?r():e||window.addEventListener("load",function(){n||setTimeout(()=>{l(!0)},10)})};l();var m,u=null,f=window.scrollY;window.addEventListener("scroll",function(i){null!==u&&clearTimeout(u),u=setTimeout(function(){f=window.scrollY},500);var l=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"!==n&&s());var d=o.utils.getScrollDirection();if(m!==d&&(f=window.scrollY),m=d,Math.abs(window.scrollY-f)<80&&window.scrollY>80)return;if("up"===d)return void(window.pageYOffset>=300?"fixedShownState"!==n&&s():"noAnimState"!==n&&c());if("down"===d&&(window.pageYOffset>=300||a)){var l=!e(t).find(".elementor-menu-cart--shown").length;"fixedHiddenState"!==n&&l&&r()}}},200);window.VAMTAM.isMaxDeviceWidth()?(d(),requestAnimationFrame(l)):"noAnimState"!==n&&c()},{passive:!0})}())},observedAnims:function(){var t="vamtam-animate",o=document.querySelectorAll(".vamtam-observe");if(o.length){var n,a=function(o,n){o.forEach(function(o){var a=!1,i=o.target,r=i&&e(i);o.isIntersecting&&(a=!0),a?(r.hasClass(t)||(r.addClass(t),r.trigger("vamtam:animate")),r.hasClass("vamtam-looped")||n&&n.unobserve&&n.unobserve(i)):r.hasClass(t)&&r.removeClass(t)})};o.forEach(function(o){e(o).removeClass(t),n||(n=new IntersectionObserver(a)),n.observe(o)})}},scrollBasedAnims:function(){var t=document.querySelectorAll(['[data-settings*="growFromLeftScroll"]','[data-settings*="growFromRightScroll"]'].join(", "));if(!t.length)return;var o,n={},a=this,i=function(e){e.forEach(function(e){var t=e.boundingClientRect.y,o=e.isIntersecting,i=e.target,r=Math.abs(parseFloat((100*e.intersectionRatio).toFixed(2))),s=n[i.dataset.vamtam_anim_id].lastScrollPercentage,c=n[i.dataset.vamtam_anim_id].lastScrollY,d=n[i.dataset.vamtam_anim_id].animateEl,l=function(){window.requestAnimationFrame(function(){d.style.setProperty("--vamtam-scroll-ratio",r+"%")})};o&&c!==t&&("down"===a.utils.getScrollDirection()?s<r&&l():l()),n[i.dataset.vamtam_anim_id].lastScrollY=t,n[i.dataset.vamtam_anim_id].lastScrollPercentage=r})};const r=function(){var e,t=[];for(e=1;e<=50;e++){var o=e/50;t.push(o)}return t.push(0),t}();t.forEach(function(t){var a;o||(o=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]}n[t.dataset.id]={lastScrollY:"",lastScrollPercentage:"",observeEl:a,animateEl:t},o.observe(a)})},cursorAnimation:function(){if(!(window.elementorFrontend.isEditMode()||this.utils.isTouchDevice()||e("body").filter(".no-theme-cursor, .no-jolie-cursor").length)&&"elementorFrontendConfig"in window&&window.elementorFrontendConfig.kit.vamtam_theme_has_theme_cursor){e("body").append('<span id="mouseCircle" class="mouse-circle"></span>').addClass("has-mouse-circle").append('<span id="mouseDot" class="mouse-dot"></span>').addClass("has-mouse-dot");var t,o=e("#mouseCircle"),n=e("#mouseDot"),a=0,i=0,r=0,s=0;e(document).on("mousemove mouseenter",function(e){clearTimeout(t),window.VAMTAM.isBelowMaxDeviceWidth()||(o.hasClass("moving")||o.addClass("moving"),a=e.clientX,i=e.clientY,n.css({transform:"translate("+a+"px, "+i+"px)"}),t=setTimeout(function(){o.removeClass("moving")},500))}),setInterval(function(){r+=(a-r)/6,s+=(i-s)/6,o.css({transform:"translate("+r+"px, "+s+"px)"})},20);e(document).on("mouseover",window.VAMTAM.debounce(function(t){let n;t.target.href?n=!0:(e(t.target).parent("a[href]").length&&(n=!0),e(t.target).closest("a.elementor-button-link[href]").length&&(n=!0)),n?o.hasClass("small")||window.requestAnimationFrame(function(){o.addClass("small")}):o.hasClass("small")&&window.requestAnimationFrame(function(){o.removeClass("small")})},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);