| Server IP : 104.26.4.103 / Your IP : 216.73.216.4 Web Server : nginx/1.27.1 System : Linux in-5 5.15.0-143-generic #153-Ubuntu SMP Fri Jun 13 19:10:45 UTC 2025 x86_64 User : arabianexpress ( 1872) PHP Version : 8.0.30 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /storage/v9321/cleanlinefmsv3/public_html/wp-content/themes/clanyeco/vamtam/assets/js/ |
Upload File : |
(()=>{var t=window.VAMTAM=window.VAMTAM||{},n=(t.debounce=function(a,i=300,o=!1){var s;return function(){var e=this,t=arguments,n=o&&!s;clearTimeout(s),s=setTimeout(function(){s=null,o||a.apply(e,t)},i),n&&a.apply(e,t)}},t.offset=function(e){var e=e.getBoundingClientRect(),t=window.pageXOffset||document.documentElement.scrollLeft,n=window.pageYOffset||document.documentElement.scrollTop;return{top:e.top+n,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,n||(n=!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);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,a){var i=document.createElement("link");i.rel="stylesheet",i.type="text/css",i.media=t,i.href=e,n&&(i.onload=n),a?a.after(i):document.getElementsByTagName("link")[0].before(i)},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&&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})})(),((i,o)=>{function s(n,e,a){requestAnimationFrame(function(){var e=n.offset().top,t=(o.blockStickyHeaderAnimation=!0,l.height()||0),e=e-o.adminBarHeight-t;r=a,window.addEventListener("scroll",m,{passive:!0}),window.scroll({left:0,top:e,behavior:"smooth"}),n.attr("id")&&(history.pushState?history.pushState(null,null,"#"+n.attr("id")):window.location.hash=n.attr("id")),d&&d.classList.remove("mega-menu-open"),c&&c.classList.remove("mega-menu-open")})}var e,r,t,l=i("header.main-header").find(".header-contents"),d=document.getElementById("vamtam-fallback-main-menu-toggle"),c=document.querySelector("#main-menu > .mega-menu-wrap > .mega-menu-toggle"),m=function(){clearTimeout(e),e=setTimeout(n,200)},n=function(){window.removeEventListener("scroll",m,{passive:!0}),o.blockStickyHeaderAnimation=!1,r&&r()};i(document.body).on("click",".vamtam-animated-page-scroll[href], .vamtam-animated-page-scroll [href], .vamtam-animated-page-scroll [data-href]",function(e){var t=i(this).prop("href")||i(this).data("href"),n=i("#"+t.split("#")[1]),a=document.createElement("a");a.href=t,n.length&&a.pathname===window.location.pathname&&(d&&d.classList.remove("mega-menu-open"),c&&c.classList.remove("mega-menu-open"),s(n),e.preventDefault())}),""!==window.location.hash&&(i('.vamtam-animated-page-scroll[href*="'+window.location.hash+'"]').length||i('.vamtam-animated-page-scroll [href*="'+window.location.hash+'"]').length||i('.vamtam-animated-page-scroll [data-href*="'+window.location.hash+'"]').length)&&(0<(t=i(window.location.hash)).length&&i(window).add("html, body, #page").scrollTop(0),setTimeout(function(){s(t)},400))})(jQuery,window.VAMTAM),(s=>{function e(){function e(){var e=window.VAMTAM.isBelowMaxDeviceWidth();i!==e&&(a.forEach(function(e){e.isActive&&e.closeTrigger.click()}),i=e)}function n(e){var t=e.currentTarget;if(s(t).hasClass("elementor-menu-toggle")){var e=s(t).closest(".elementor-row");if((e=e.length?e:s(t).closest(".elementor-container")).hasClass("vamtam-menu-nav-overlay-inside")||(e.addClass("vamtam-menu-nav-overlay-inside"),s(e).find(".vamtam-overlay-element").css("top",s(e)[0].getBoundingClientRect().top+s(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)})}s("html, body").addClass("vamtam-disable-scroll"),s("#scroll-to-top").addClass("hidden"),s(e=t).hasClass("elementor-menu-toggle")&&(e.removeEventListener("click",o),e.addEventListener("click",o))}var t=document.querySelectorAll(".vamtam-overlay-trigger"),a=[],i=window.VAMTAM.isBelowMaxDeviceWidth(),o=function(e){var t=e.currentTarget;s(t).hasClass("elementor-menu-toggle")&&(e=(e=s(t).closest(".elementor-row")).length?e:s(t).closest(".elementor-container")).hasClass("vamtam-overlay-trigger--overlay")&&(e.removeClass("vamtam-overlay-trigger--overlay"),t.removeEventListener("click",o),a.forEach(function(e){e.overlayTarget!==t&&e.closeTrigger!==t||(e.isActive=!1)})),s(".vamtam-overlay-trigger--overlay .vamtam-overlay-element:visible").length<2&&(s("html, body").removeClass("vamtam-disable-scroll"),s("#scroll-to-top").removeClass("hidden"))};t.forEach(function(e){var t;s(e).hasClass("elementor-widget-nav-menu")&&((t=s(e).find(".elementor-menu-toggle")[0]).removeEventListener("click",n),t.addEventListener("click",n),a.push({overlayTarget:e,closeTrigger:t,isActive:!1}),(t=s(e).closest(".elementor-row")).length||(t=s(e).closest(".elementor-container")),s('<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||{},s(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(){s("#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",s(this).trigger("vamtam-video-resized")}.bind(this))}.bind(this),50)}),setTimeout(function(){requestAnimationFrame(function(){s(".mejs-time-rail").css("width","-=1px")})},100)},window.addEventListener("resize",window.VAMTAM.debounce(window.VAMTAM.resizeElements,100),!1),window.VAMTAM.resizeElements(),s(document).ajaxSuccess(function(e,t,n){"wishlist_remove"===n.data.split("&").map(e=>e.split("=")).reduce((e,t)=>(e[t[0]]=t[1],e),{}).action&&1===(n=JSON.parse(t.responseText)).status&&0===n.count&&(s(".vamtam-empty-wishlist-notice").show(),s("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),(v=>{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=v(".vamtam-sticky-header"),i=this;if(a.length){1<a.length&&(a=a[0]);{function o(){v(a).removeClass("vamtam-sticky-header--fixed-shown"),v(a).hasClass("vamtam-sticky-header--fixed-hidden")||v(a).addClass("vamtam-sticky-header--fixed-hidden"),l="fixedHiddenState"}function s(){v(a).removeClass("vamtam-sticky-header--fixed-hidden"),v(a).hasClass("vamtam-sticky-header--fixed-shown")||v(a).addClass("vamtam-sticky-header--fixed-shown"),l="fixedShownState"}function r(){v(a).removeClass("vamtam-sticky-header--fixed-shown"),v(a).removeClass("vamtam-sticky-header--fixed-hidden"),l="noAnimState"}var l,e,n,d,c=v(a).hasClass("vamtam-sticky-header--transparent-header"),m=v(a).innerHeight();e=v("body").css("padding-left"),n=v("body").css("padding-right"),(d=v(a).parents('[data-elementor-type="header"]').first()).length&&(parseInt(e)&&d.css("--vamtam-sticky-mleft","-"+e),parseInt(n))&&d.css("--vamtam-sticky-mright","-"+n);let t=(e=!1)=>{10<=window.pageYOffset?o():e||window.addEventListener("load",function(){l||setTimeout(()=>{t(!0)},10)})};t();var u,h=null,w=window.scrollY;window.addEventListener("scroll",function(n){null!==h&&clearTimeout(h),h=setTimeout(function(){w=window.scrollY},500);var e=window.VAMTAM.debounce(function(){var e,t;"#document"===n.target.nodeName&&(v(a).find("a:hover").length||v(".vamtam-header-mega-menu:visible").length?c&&"fixedShownState"!==l&&s():(e=i.utils.getScrollDirection(),u!==e&&(w=window.scrollY),u=e,t=Math.abs(window.scrollY-w),window.scrollY>m&&t<20||("up"===e?10<=window.pageYOffset?"fixedShownState"!==l&&s():"noAnimState"!==l&&r():"down"===e&&(10<=window.pageYOffset||c)&&(t=!v(a).find(".elementor-menu-cart--shown").length,"fixedHiddenState"!==l)&&t&&o())))},25);window.VAMTAM.isMaxDeviceWidth()?requestAnimationFrame(e):"noAnimState"!==l&&r()},{passive:!0})}}},scrollBasedAnims:function(){var e=document.querySelectorAll(['[data-settings*="growFromLeftScroll"]','[data-settings*="growFromRightScroll"]'].join(", "));if(e.length){var i,l={},d=this,o=function(e){e.forEach(function(e){function t(){window.requestAnimationFrame(function(){r.style.setProperty("--vamtam-scroll-ratio",o+"%")})}var n=e.boundingClientRect.y,a=e.isIntersecting,i=e.target,o=Math.abs(parseFloat((100*e.intersectionRatio).toFixed(2))),e=l[i.dataset.vamtam_anim_id].lastScrollPercentage,s=l[i.dataset.vamtam_anim_id].lastScrollY,r=l[i.dataset.vamtam_anim_id].animateEl;a&&s!==n&&("down"!==d.utils.getScrollDirection()||e<o)&&t(),l[i.dataset.vamtam_anim_id].lastScrollY=n,l[i.dataset.vamtam_anim_id].lastScrollPercentage=o})};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,n;i||(n={root:null,rootMargin:"20% 0% 20% 0%",threshold:a},i=new IntersectionObserver(o,n)),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):(v(e).before('<div class="vamtam-scroll-anim-wrap" data-vamtam_anim_id="'+e.dataset.id+'"></div>'),n=v(e).prev(".vamtam-scroll-anim-wrap"),v(n).append(e),t=n[0]),l[e.dataset.id]={lastScrollY:"",lastScrollPercentage:"",observeEl:t,animateEl:e},i.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);