403Webshell
Server IP : 185.11.201.71  /  Your IP : 192.168.7.18
Web Server : Apache/2.4.29 (Ubuntu)
System : Linux tech-virtual-machine 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
User : tech ( 1000)
PHP Version : 7.4.28
Disable Function : 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,
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/enaireideas/wp-content/uploads/theplus-addons/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/enaireideas/wp-content/uploads/theplus-addons/theplus-post-5144.min.js
(function(){"use strict";var a=function(a,b){function c(){let a=t[0].querySelectorAll(".tp-tab-play-pause:nth-child(1)"),b=t[0].querySelectorAll(".tp-tab-play-pause:nth-child(2)");a[0].classList.contains("active")?(a[0].classList.remove("active"),b[0].classList.add("active"),this.classList.add("pausecls"),clearInterval(V)):b[0].classList.contains("active")&&(b[0].classList.remove("active"),a[0].classList.add("active"),this.classList.remove("pausecls"),g())}function d(){clearInterval(V);let a=t[0].querySelectorAll(".plus-tab-header.active");if(0<a.length&&(a[0].classList.remove("active"),i(a[0],"remove")),this.parentElement&&(this.parentElement.children[0].classList.contains("active")?this.parentElement.classList.add("active"):this.parentElement.classList.remove("active")),t[0].classList.contains("tp-tab-playpause-button")){let a=t[0].querySelectorAll(".tp-tab-play-pause-wrap");if(0<a.length){a[0].classList.remove("pausecls");let b=t[0].querySelectorAll(".tp-tab-play-pause:nth-child(1)"),c=t[0].querySelectorAll(".tp-tab-play-pause:nth-child(2)");0<b.length&&b[0].classList.remove("active"),0<c.length&&c[0].classList.add("active")}}}function e(){t[0].querySelector(".theplus-accordion-item").classList.add("active");let a=t[0].querySelectorAll(".theplus-accordion-item.plus-tab-header");0<a.length&&(a.forEach(function(b,c){b.firstElementChild.classList.contains("active-default")?(b.classList.add("active"),a[c].classList.add("active")):b.classList.remove("active")}),V=setInterval(function(){B&&t[0].classList.contains("tp-tab-playloop")&&f("active",a);let b=t[0].querySelectorAll(".plus-tab-header.active");0<b.length&&(b[0].classList.remove("active"),i(b[0],"remove"),b[0].nextElementSibling&&b[0].nextElementSibling.classList.contains("plus-tab-header")?(b[0].nextElementSibling.classList.add("active"),i(b[0].nextElementSibling,"add")):(a[0].classList.add("active"),i(a[0],"add")))},1e3*M)),window.removeEventListener("scroll",e)}function f(a,c){if("active"==a)setTimeout(()=>{c.forEach(function(a){if(a.classList.contains("active")){t[0].querySelector(".theplus-accordion-item.tp-acc-disable").classList.remove("tp-acc-disable");let c=b(a).siblings();c&&(a.classList.add("tp-acc-disable"),b(a).find(".plus-content-editor").css("position","absolute").css("width",U),b(a).find(".plus-accordion-content").animate({width:U,opacity:1},E),c.find(".plus-accordion-content").animate({width:0,opacity:0},F),c.find(".plus-content-editor").css("width",U))}})},50);else if("click"==a){let a=b(c).siblings();a&&(c.classList.add("tp-acc-disable"),b(c).find(".plus-content-editor").css("position","absolute").css("width",U),b(c).find(".plus-accordion-content").animate({width:U,opacity:1},E),a.find(".plus-accordion-content").animate({width:0,opacity:0},F),a.find(".plus-content-editor").css("width",U))}}function g(){let a=t[0].querySelectorAll(".plus-tab-header.active"),b=t[0].querySelectorAll(".plus-tab-header");0<a.length?(B&&t[0].classList.contains("tp-tab-playloop")&&f("active",b),a[0].classList.remove("active"),i(a[0],"remove"),a[0].nextElementSibling.classList.add("active"),a[0].nextElementSibling.classList.contains("tp-tab-play-pause-wrap")?h(b):i(a[0].nextElementSibling,"add")):0==a.length&&h(b),V=setInterval(function(){let a=t[0].querySelectorAll(".plus-tab-header"),b=t[0].querySelectorAll(".plus-tab-header.active");B&&t[0].classList.contains("tp-tab-playloop")&&f("active",a),0==b.length?h(a):(b[0].classList.remove("active"),i(b[0],"remove"),b[0].nextElementSibling.classList.contains("plus-tab-header")?(b[0].nextElementSibling.classList.add("active"),i(b[0].nextElementSibling,"add")):h(a))},1e3*M)}function h(a){a[0].classList.add("active"),i(a[0],"add"),document.querySelector(".tp-tab-play-pause-wrap").classList.remove("active")}function i(a,b){if("remove"==b){let b=a.children[0],c=a.children[1];b&&(b.classList.remove("active-default"),b.classList.remove("active")),c&&(c.classList.remove("active-default"),c.classList.remove("active"),c.style.display="none")}else if("add"==b){let b=a.children[0],c=a.children[1];b&&(p(b,300),b.classList.add("active-default"),b.classList.add("active")),c&&(p(c,300),c.classList.add("active-default"),c.classList.add("active"),c.style.display="block")}}function j(a,b,c){k("ecBtn",a),b.forEach(function(b){k("tpClass",a,b)}),c.forEach(function(b){a.classList.contains("active")?(r(b,500),b.classList.add("active")):(b.classList.remove("active"),q(b,500))})}function k(a,b,c){"ecBtn"==a?b.classList.contains("active")?b.classList.remove("active"):b.classList.add("active"):"tpClass"==a&&(b.classList.contains("active")?c.classList.add("active"):c.classList.remove("active")),"tpTitle"==a&&(b.classList.contains("active")?(q(c.nextElementSibling,500),c.nextElementSibling.style.display="none",c.nextElementSibling.classList.add("active")):(c.nextElementSibling.style.display="flex",c.nextElementSibling.classList.remove("active"),r(c.nextElementSibling,500)))}function l(){let a=window.innerHeight,b=t[0].getBoundingClientRect().top;b<a-150&&(z.forEach(function(a,b){setTimeout(function(){p(a,J)},b*K)}),window.removeEventListener("scroll",l))}function m(){let a=t[0].querySelectorAll(".tp-accr-list-slider.tpaccractive"),b=a[0].previousElementSibling?a[0].previousElementSibling:"",c=0;0<a.length&&a[0].classList.contains("tpaccractive")&&a[0].classList.remove("tpaccractive"),0<a.length&&b&&(b.classList.add("tpaccractive"),p(b,200),c=b.dataset&&b.dataset.tabslide?b.dataset.tabslide:0);let d=t[0].querySelectorAll(".tp-aec-slide-page .tpasp-next");0<d.length&&d[0].classList.contains("tpas-disabled")&&d[0].classList.remove("tpas-disabled");let e=t[0].querySelectorAll(".tp-aec-slide-page .tpasp-active-slide");if(0<e.length&&(e[0].innerText=c,e[0].style.cssText=`opacity: 0`,p(e[0],220)),1==+c){let a=t[0].querySelectorAll(".tp-aec-slide-page .tpasp-prev");0<a.length&&a[0].classList.add("tpas-disabled")}}function n(){let a=t[0].querySelectorAll(".tp-accr-list-slider.tpaccractive"),b=a[0].nextElementSibling?a[0].nextElementSibling:"",c=0;0<a.length&&a[0].classList.contains("tpaccractive")&&a[0].classList.remove("tpaccractive"),0<a.length&&b&&(b.classList.add("tpaccractive"),p(b,200),c=b.dataset&&b.dataset.tabslide?b.dataset.tabslide:0);let d=t[0].querySelectorAll(".tp-aec-slide-page .tpasp-prev");0<d.length&&d[0].classList.contains("tpas-disabled")&&d[0].classList.remove("tpas-disabled");let e=t[0].querySelectorAll(".tp-aec-slide-page .tpasp-active-slide");0<e.length&&(e[0].innerText=c,p(e[0],220));let f=t[0].querySelector(".tpasp-total-slide").innerText;if(+c==+f){let a=t[0].querySelectorAll(".tp-aec-slide-page .tpasp-next");0<a.length&&a[0].classList.add("tpas-disabled")}}function o(){let b=this.value,c=t[0].querySelectorAll(".theplus-accordion-item .plus-accordion-content"),d=t[0].querySelectorAll(".theplus-accordion-item .plus-accordion-header");if("click"==event.type&&b)return setTimeout(()=>{jQuery(this).click()},250),!1;if("paste"==event.type)return setTimeout(()=>{this.blur()},250),!1;if(b.length>=C?(" "!=b.value&&O.forEach(function(a){a.childNodes[0].classList.add("active")}),jQuery(".theplus-accordion-wrapper.tp-seachaccr .theplus-accordion-item .plus-accordion-header",a).each(function(){let a="#"+this.id,c="#"+this.nextElementSibling.id,d=jQuery(a+":containsCaseInsensitive("+b+")"),e=jQuery(c+":containsCaseInsensitive("+b+")");this.style.cssText=`display: none`,this.classList.remove("active","active-default"),d.removeClass("active active-default").css("display","none"),e.removeClass("active active-default").css("display","none"),d.addClass("active").css("display","flex"),e.addClass("active").css("display","flex")}),jQuery(".theplus-accordion-wrapper.tp-seachaccr .theplus-accordion-item .plus-accordion-content",a).each(function(){let a="#"+this.id,c="#"+this.previousElementSibling.id;this.style.cssText=`display: none`,this.classList.remove("active","active-default"),jQuery(a+":not(:containsCaseInsensitive("+b+"))").removeClass("active active-default").css("display","none"),jQuery(c+":not(:containsCaseInsensitive("+b+"))").removeClass("active active-default").css("display","none"),jQuery(a+":containsCaseInsensitive("+b+")").addClass("active").css("display","flex"),jQuery(c+":containsCaseInsensitive("+b+")").addClass("active").css("display","flex")}),0<c.length&&c.forEach(function(a){a.classList.contains("active")&&(a.previousElementSibling.style.cssText=`display: flex`,a.previousElementSibling.classList.add("active"))}),0<d.length&&d.forEach(function(a){a.classList.contains("active")&&(a.nextElementSibling.style.cssText=`display: flex`,a.nextElementSibling.classList.add("active"))})):(0<c.length&&c.forEach(function(a){a.style.cssText=`display: none`,a.classList.remove("active","active-default")}),0<d.length&&d.forEach(function(a){a.style.cssText=`display: flex`,a.classList.remove("active","active-default")})),s(),w){let a=this.value,b=t[0].querySelectorAll(".theplus-accordion-item");b.forEach(function(b){let c=b.querySelector(".elementor-tab-content .plus-content-editor"),d=new RegExp(a,"gi"),e=c.querySelectorAll("*");e.forEach(function(a){a.innerHTML=a.outerText.replace(d,`<mark class="tp-highlight">$&</mark>`)})})}}function p(a,b=600){a.style.display="",a.style.opacity=0;var c=+new Date,d=function(){a.style.opacity=+a.style.opacity+(new Date-c)/b,c=+new Date,1>+a.style.opacity&&(window.requestAnimationFrame&&requestAnimationFrame(d)||setTimeout(d,16))};d()}function q(a,b=500){a.style.transitionProperty="height, margin, padding",a.style.transitionDuration=b+"ms",a.style.boxSizing="border-box",a.style.height=a.offsetHeight+"px",a.offsetHeight,a.style.overflow="hidden",a.style.height=0,a.style.paddingTop=0,a.style.paddingBottom=0,a.style.marginTop=0,a.style.marginBottom=0,window.setTimeout(()=>{a.style.display="none",a.style.removeProperty("height"),a.style.removeProperty("padding-top"),a.style.removeProperty("padding-bottom"),a.style.removeProperty("margin-top"),a.style.removeProperty("margin-bottom"),a.style.removeProperty("overflow"),a.style.removeProperty("transition-duration"),a.style.removeProperty("transition-property")},b)}function r(a,b=500){a.style.removeProperty("display");let c=window.getComputedStyle(a).display;"none"===c&&(c="block"),a.style.display=c;let d=a.offsetHeight;a.style.overflow="hidden",a.style.height=0,a.style.paddingTop=0,a.style.paddingBottom=0,a.style.marginTop=0,a.style.marginBottom=0,a.offsetHeight,a.style.boxSizing="border-box",a.style.transitionProperty="height, margin, padding",a.style.transitionDuration=b+"ms",a.style.height=d+"px",a.style.removeProperty("padding-top"),a.style.removeProperty("padding-bottom"),a.style.removeProperty("margin-top"),a.style.removeProperty("margin-bottom"),window.setTimeout(()=>{a.style.removeProperty("height"),a.style.removeProperty("overflow"),a.style.removeProperty("transition-duration"),a.style.removeProperty("transition-property")},b)}function s(){let a=t[0].querySelectorAll(".plus-accordion-header.active"),b=t[0].querySelectorAll(".tp-aec-button");0<a.length?b.forEach(function(a){a.children[0].classList.add("active")}):0==a.length&&b.forEach(function(a){a.children[0].classList.remove("active")})}let t=a[0].querySelectorAll(".theplus-accordion-wrapper"),u=t[0].dataset.accordionType,v=t[0]&&t[0].dataset&&t[0].dataset.accordiannew?JSON.parse(t[0].dataset.accordiannew):"",w=!!v?.search_text_highlight,x=t[0].dataset.connection,y=t[0].dataset.rowBgConn,z=t[0].querySelectorAll(".theplus-accordion-item"),A=t[0].querySelectorAll(".theplus-accordion-item .plus-accordion-header"),B=t[0].classList.contains("tp-acc-hori"),C=t[0].dataset.searchAttrLen,D=t[0].dataset.horiTitleWidth,E=t[0].dataset.horiOpenSpeed,F=t[0].dataset.horiCloseSpeed,G=t[0].dataset.accordionId,H=t[0].dataset.scrollTopSpeedAccr,I=t[0].dataset.scrollTopOffsetAccr,J=t[0].dataset.stagerVdAccr,K=t[0].dataset.stagerGapAccr,L=t[0].dataset.tabAutoplay,M=t[0].dataset.tabAutoplayDuration,N=window.location.hash;if(0<z.length&&z.forEach(function(a){let c=a.querySelector(".plus-accordion-header");if(c.classList.contains("active-default")){let d=a.querySelectorAll(".plus-accordion-content");if(c.classList.add("active"),0<d.length){d[0].classList.add("active"),d[0].style.cssText="display: block;",r(d[0],500);let c=a.querySelector(".plus-accordion-content.active").dataset.tab;if(x&&document.querySelectorAll("."+x).length&&setTimeout(function(){accordion_tabs_connection(c,x)},150),a&&a.nextElementSibling){let c=a.nextElementSibling.querySelectorAll(".list-carousel-slick > .post-inner-loop");0<c.length&&b(c[0]).slick("setPosition")}y&&document.querySelectorAll("#"+y).length&&background_accordion_tabs_conn(c,y)}}}),"accordion"==u){A.forEach(function(a){a.addEventListener("click",function(){let a=this;if(this.classList.contains("active"))this.classList.remove("active"),this.nextElementSibling&&(this.nextElementSibling.classList.remove("active"),q(this.nextElementSibling,500)),s();else{if(z.forEach(function(a){a.children[0].classList.contains("active")&&a.children[0].classList.remove("active"),a.children[1]&&a.children[1].classList.contains("active")&&(a.children[1].classList.remove("active"),q(a.children[1],500))}),this.classList.toggle("active"),this.nextElementSibling){this.nextElementSibling.classList.toggle("active"),"block"!=this.nextElementSibling.style.display&&(r(this.nextElementSibling,500),t[0].classList.contains("tp-scrolltopacc")&&setTimeout(()=>{jQuery("body, html").animate({scrollTop:jQuery(this).offset().top-I-a.clientHeight},H)},400));let c=this.nextElementSibling.querySelectorAll(".list-carousel-slick > .post-inner-loop");0<c.length&&b(c[0]).slick("setPosition")}let c=this.dataset.tab;c&&x&&document.querySelectorAll("."+x).length&&accordion_tabs_connection(c,x);let d=document.querySelectorAll(".tp-carousel-dots"),e=document.querySelectorAll(".theplus-carousel-remote");if(0<d.length&&0<e.length&&e[0].dataset.connection===x){let a=d[0].querySelectorAll(".tp-carodots-item");a.forEach(function(a){a.classList.contains("active")&&(a.classList.remove("active"),a.classList.add("inactive")),a.classList.contains("default-active")&&(a.classList.remove("default-active"),a.classList.add("inactive"))}),a.forEach(function(a){c==+a.dataset.tab+1&&(a.classList.remove("inactive"),a.classList.add("active"))})}y&&document.querySelectorAll("#"+y).length&&background_accordion_tabs_conn(c,y),s()}})});let a=t[0].querySelectorAll(`${N}.plus-accordion-header`);N&&0<a.length&&a.forEach(function(a){a.classList.contains("active")||(document.querySelector("html, body").animate({scrollTop:b(N).offset().top},1500),a.click())}),s()}else"hover"==u&&A.forEach(function(a){a.addEventListener("mouseover",function(){if(this.classList.contains("active"));else{A.forEach(function(a){a.parentElement.classList.remove("active")}),a.parentElement.classList.add("active");let c=t[0].querySelectorAll(".plus-accordion-header.active"),d=this.dataset.tab;if(0<c.length&&(c[0].classList.remove("active"),c[0].nextElementSibling&&(c[0].nextElementSibling.classList.remove("active"),q(c[0].nextElementSibling,500))),this.classList.toggle("active"),this.nextElementSibling){this.nextElementSibling.classList.toggle("active"),"block"!=this.nextElementSibling.style.display&&(r(this.nextElementSibling,500),t[0].classList.contains("tp-scrolltopacc")&&setTimeout(()=>{jQuery("body, html").animate({scrollTop:jQuery(this).offset().top-I-$this.clientHeight},H)},400));let a=this.nextElementSibling.querySelectorAll(".list-carousel-slick > .post-inner-loop");0<a.length&&b(a[0]).slick("setPosition")}x&&document.querySelectorAll("."+x).length&&accordion_tabs_connection(d,x);let e=document.querySelectorAll(".tp-carousel-dots"),f=document.querySelectorAll(".theplus-carousel-remote");if(0<e.length&&0<f.length&&f[0].dataset.connection===x){let a=e[0].querySelectorAll(".tp-carodots-item");a.forEach(function(a){a.classList.contains("active")&&(a.classList.remove("active"),a.classList.add("inactive")),a.classList.contains("default-active")&&(a.classList.remove("default-active"),a.classList.add("inactive"))}),a.forEach(function(a){d==+a.dataset.tab+1&&(a.classList.remove("inactive"),a.classList.add("active"))})}y&&document.querySelectorAll("#"+y).length&&background_accordion_tabs_conn(d,y)}})});let O=t[0].querySelectorAll(".tp-aec-button"),P=t[0].querySelectorAll(".tpacsearchinput");0<O.length&&O[0].querySelector(".tp-toggle-accordion").addEventListener("click",function(){var a=this,b=t[0].querySelectorAll(".elementor-tab-title"),c=t[0].querySelectorAll(".elementor-tab-content"),d=t[0].querySelectorAll(".plus-accordion-header"),e=t[0].querySelectorAll(".plus-accordion-content.active");0<P.length?P.forEach(function(f){0<f.value.length?(b.forEach(function(b){"flex"==b.style.display&&k("tpTitle",a,b)}),k("ecBtn",a),d.forEach(function(b){k("tpClass",a,b)}),e.forEach(function(b){a.classList.contains("active")?(b.style.display="flex",r(b,500)):(b.style.display="none",q(b,500))})):j(a,b,c)}):j(a,b,c)});var Q=document.querySelector(".theplus-accordion-wrapper"),R=t[0].offsetWidth,S=t[0].querySelector(".plus-accordion-header").offsetWidth,T=t[0].querySelectorAll(".theplus-accordion-item").length,U=+R-t[0].querySelector(".theplus-accordion-item").clientWidth*+T;if(B){if(t[0].classList.contains("tp-tab-playloop")){let b=a.closest(".elementor-top-section")[0];b?b.style.overflowX="hidden":""}window.addEventListener("resize",function(){Q.getBoundingClientRect()});let b=t[0].querySelectorAll(".plus-accordion-content.active");if(0<b.length)b[0].style.width=`${U}px`,b[0].querySelector(".plus-content-editor").style.cssText=`position: absolute;left: ${S}px; opacity: 1;width: ${U}px`,t[0].classList.contains("tp-tab-playloop")&&b[0].parentElement.classList.add("tp-acc-disable");else if(0==b.length){let a=t[0].querySelectorAll(".plus-accordion-content");setTimeout(()=>{a[0].previousElementSibling.classList.add("active"),a[0].style.width=`${U}px`,a[0].querySelector(".plus-content-editor").style.cssText=`position: absolute;left: ${S}px; opacity: 1;width: ${U}px`,t[0].classList.contains("tp-tab-playloop")&&b[0].parentElement.classList.add("tp-acc-disable"),a[0].parentElement.classList.add("active")},50)}a.find(".theplus-accordion-item").on("click",function(){let a=t[0].querySelectorAll(".theplus-accordion-item");a.forEach(function(a){a.classList.contains("active")||a.classList.remove("tp-acc-disable")}),f("click",this)})}if(t[0].classList.contains("tp-stageraccr")){let a=window.innerHeight,b=t[0].getBoundingClientRect().top;b<a-150?l():window.addEventListener("scroll",l)}if(t[0].classList.contains("tp-accr-slider")){let a=t[0].querySelectorAll(".tp-accr-list-slider"),b=t[0].querySelectorAll(".tpasp-total-slide");0<b.length&&(b[0].innerText=+a.length);let c=t[0].querySelectorAll(".tpasp-prev");0<c.length&&c[0].addEventListener("click",m);let d=t[0].querySelectorAll(".tpasp-next");0<d.length&&d[0].addEventListener("click",n)}if(t[0].classList.contains("tp-seachaccr")){jQuery.expr[":"].containsCaseInsensitive=function(a,c,b){return 0<=jQuery(a).text().toUpperCase().indexOf(b[3].toUpperCase())};let a=t[0].querySelectorAll("#tpsb"+G);0<a.length&&(a[0].addEventListener("change",o),a[0].addEventListener("keyup",o),a[0].addEventListener("click",o),a[0].addEventListener("paste",o))}var V;if(t[0].classList.contains("tp-tab-playloop")&&"yes"==L){let a=t[0].querySelectorAll(".theplus-accordion-item");if(0<a.length){a.forEach(function(a){a.classList.add("plus-tab-header")});let b=window.innerHeight,c=t[0].getBoundingClientRect().top;c<b-150?e():window.addEventListener("scroll",e)}let b=t[0].querySelectorAll(".theplus-accordion-item .plus-accordion-header");0<b.length&&b.forEach(function(a){a.addEventListener("click",d)})}if(t[0].classList.contains("tp-tab-playpause-button")&&"yes"==L){let a=t[0].querySelectorAll(".tp-tab-play-pause-wrap");0<a.length&&a[0].addEventListener("click",c)}let W=document.querySelectorAll("a");W.forEach(function(a){a.addEventListener("click",function(){jQuery(this.hash).trigger("click")})})};window.addEventListener("elementor/frontend/init",()=>{elementorFrontend.hooks.addAction("frontend/element_ready/tp-accordion.default",a)})})(jQuery);/*Buzz v1.2.1*/!function(a,b){"use strict";"undefined"!=typeof module&&module.exports?module.exports=b():"function"==typeof define&&define.amd?define([],b):a.buzz=b()}(this,function(){"use strict";var a=window.AudioContext||window.webkitAudioContext,b={defaults:{autoplay:!1,crossOrigin:null,duration:5e3,formats:[],loop:!1,placeholder:"--",preload:"metadata",volume:80,webAudioApi:!1,document:window.document},types:{mp3:"audio/mpeg",ogg:"audio/ogg",wav:"audio/wav",aac:"audio/aac",m4a:"audio/x-m4a"},sounds:[],el:document.createElement("audio"),getAudioContext:function(){if(void 0===this.audioCtx)try{this.audioCtx=a?new a:null}catch(b){this.audioCtx=null}return this.audioCtx},sound:function(a,c){function d(a){for(var b=[],c=a.length-1,d=0;c>=d;d++)b.push({start:a.start(d),end:a.end(d)});return b}function e(a){return a.split(".").pop()}c=c||{};var f=c.document||b.defaults.document,g=0,h=[],i={},j=b.isSupported();if(this.load=function(){return j?(this.sound.load(),this):this},this.play=function(){return j?(this.sound.play()["catch"](function(){}),this):this},this.togglePlay=function(){return j?(this.sound.paused?this.sound.play()["catch"](function(){}):this.sound.pause(),this):this},this.pause=function(){return j?(this.sound.pause(),this):this},this.isPaused=function(){return j?this.sound.paused:null},this.stop=function(){return j?(this.sound.pause(),this.setTime(0),this):this},this.isEnded=function(){return j?this.sound.ended:null},this.loop=function(){return j?(this.sound.loop="loop",this.bind("ended.buzzloop",function(){this.currentTime=0,this.play()}),this):this},this.unloop=function(){return j?(this.sound.removeAttribute("loop"),this.unbind("ended.buzzloop"),this):this},this.mute=function(){return j?(this.sound.muted=!0,this):this},this.unmute=function(){return j?(this.sound.muted=!1,this):this},this.toggleMute=function(){return j?(this.sound.muted=!this.sound.muted,this):this},this.isMuted=function(){return j?this.sound.muted:null},this.setVolume=function(a){return j?(0>a&&(a=0),a>100&&(a=100),this.volume=a,this.sound.volume=a/100,this):this},this.getVolume=function(){return j?this.volume:this},this.increaseVolume=function(a){return this.setVolume(this.volume+(a||1))},this.decreaseVolume=function(a){return this.setVolume(this.volume-(a||1))},this.setTime=function(a){if(!j)return this;var b=!0;return this.whenReady(function(){b===!0&&(b=!1,this.sound.currentTime=a)}),this},this.getTime=function(){if(!j)return null;var a=Math.round(100*this.sound.currentTime)/100;return isNaN(a)?b.defaults.placeholder:a},this.setPercent=function(a){return j?this.setTime(b.fromPercent(a,this.sound.duration)):this},this.getPercent=function(){if(!j)return null;var a=Math.round(b.toPercent(this.sound.currentTime,this.sound.duration));return isNaN(a)?b.defaults.placeholder:a},this.setSpeed=function(a){return j?(this.sound.playbackRate=a,this):this},this.getSpeed=function(){return j?this.sound.playbackRate:null},this.getDuration=function(){if(!j)return null;var a=Math.round(100*this.sound.duration)/100;return isNaN(a)?b.defaults.placeholder:a},this.getPlayed=function(){return j?d(this.sound.played):null},this.getBuffered=function(){return j?d(this.sound.buffered):null},this.getSeekable=function(){return j?d(this.sound.seekable):null},this.getErrorCode=function(){return j&&this.sound.error?this.sound.error.code:0},this.getErrorMessage=function(){if(!j)return null;switch(this.getErrorCode()){case 1:return"MEDIA_ERR_ABORTED";case 2:return"MEDIA_ERR_NETWORK";case 3:return"MEDIA_ERR_DECODE";case 4:return"MEDIA_ERR_SRC_NOT_SUPPORTED";default:return null}},this.getStateCode=function(){return j?this.sound.readyState:null},this.getStateMessage=function(){if(!j)return null;switch(this.getStateCode()){case 0:return"HAVE_NOTHING";case 1:return"HAVE_METADATA";case 2:return"HAVE_CURRENT_DATA";case 3:return"HAVE_FUTURE_DATA";case 4:return"HAVE_ENOUGH_DATA";default:return null}},this.getNetworkStateCode=function(){return j?this.sound.networkState:null},this.getNetworkStateMessage=function(){if(!j)return null;switch(this.getNetworkStateCode()){case 0:return"NETWORK_EMPTY";case 1:return"NETWORK_IDLE";case 2:return"NETWORK_LOADING";case 3:return"NETWORK_NO_SOURCE";default:return null}},this.set=function(a,b){return j?(this.sound[a]=b,this):this},this.get=function(a){return j?a?this.sound[a]:this.sound:null},this.bind=function(a,b){if(!j)return this;a=a.split(" ");for(var c=this,d=function(a){b.call(c,a)},e=0;e<a.length;e++){var f=a[e],g=f;f=g.split(".")[0],h.push({idx:g,func:d}),this.sound.addEventListener(f,d,!0)}return this},this.unbind=function(a){if(!j)return this;a=a.split(" ");for(var b=0;b<a.length;b++)for(var c=a[b],d=c.split(".")[0],e=0;e<h.length;e++){var f=h[e].idx.split(".");(h[e].idx===c||f[1]&&f[1]===c.replace(".",""))&&(this.sound.removeEventListener(d,h[e].func,!0),h.splice(e,1))}return this},this.bindOnce=function(a,b){if(!j)return this;var c=this;return i[g++]=!1,this.bind(a+"."+g,function(){i[g]||(i[g]=!0,b.call(c)),c.unbind(a+"."+g)}),this},this.trigger=function(a,b){if(!j)return this;a=a.split(" ");for(var c=0;c<a.length;c++)for(var d=a[c],e=0;e<h.length;e++){var g=h[e].idx.split(".");if(h[e].idx===d||g[0]&&g[0]===d.replace(".","")){var i=f.createEvent("HTMLEvents");i.initEvent(g[0],!1,!0),i.originalEvent=b,this.sound.dispatchEvent(i)}}return this},this.fadeTo=function(a,c,d){function e(){clearTimeout(f),f=setTimeout(function(){a>g&&i.volume<a?(i.setVolume(i.volume+=1),e()):g>a&&i.volume>a?(i.setVolume(i.volume-=1),e()):d instanceof Function&&d.apply(i)},h)}if(!j)return this;c instanceof Function?(d=c,c=b.defaults.duration):c=c||b.defaults.duration;var f,g=this.volume,h=c/Math.abs(g-a),i=this;return this.play(),this.whenReady(function(){e()}),this},this.fadeIn=function(a,b){return j?this.setVolume(0).fadeTo(100,a,b):this},this.fadeOut=function(a,b){return j?this.fadeTo(0,a,b):this},this.fadeWith=function(a,b){return j?(this.fadeOut(b,function(){this.stop()}),a.play().fadeIn(b),this):this},this.whenReady=function(a){if(!j)return null;var b=this;0===this.sound.readyState?this.bind("canplay.buzzwhenready",function(){a.call(b)}):a.call(b)},this.addSource=function(a){var c=this,d=f.createElement("source");return d.src=a,b.types[e(a)]&&(d.type=b.types[e(a)]),this.sound.appendChild(d),d.addEventListener("error",function(a){c.trigger("sourceerror",a)}),d},j&&a){for(var k in b.defaults)b.defaults.hasOwnProperty(k)&&void 0===c[k]&&(c[k]=b.defaults[k]);if(this.sound=f.createElement("audio"),null!==c.crossOrigin&&(this.sound.crossOrigin=c.crossOrigin),c.webAudioApi){var l=b.getAudioContext();l&&(this.source=l.createMediaElementSource(this.sound),this.source.connect(l.destination))}if(a instanceof Array)for(var m in a)a.hasOwnProperty(m)&&this.addSource(a[m]);else if(c.formats.length)for(var n in c.formats)c.formats.hasOwnProperty(n)&&this.addSource(a+"."+c.formats[n]);else this.addSource(a);c.loop&&this.loop(),c.autoplay&&(this.sound.autoplay="autoplay"),c.preload===!0?this.sound.preload="auto":c.preload===!1?this.sound.preload="none":this.sound.preload=c.preload,this.setVolume(c.volume),b.sounds.push(this)}},group:function(a){function b(){for(var b=c(null,arguments),d=b.shift(),e=0;e<a.length;e++)a[e][d].apply(a[e],b)}function c(a,b){return a instanceof Array?a:Array.prototype.slice.call(b)}a=c(a,arguments),this.getSounds=function(){return a},this.add=function(b){b=c(b,arguments);for(var d=0;d<b.length;d++)a.push(b[d])},this.remove=function(b){b=c(b,arguments);for(var d=0;d<b.length;d++)for(var e=0;e<a.length;e++)if(a[e]===b[d]){a.splice(e,1);break}},this.load=function(){return b("load"),this},this.play=function(){return b("play"),this},this.togglePlay=function(){return b("togglePlay"),this},this.pause=function(a){return b("pause",a),this},this.stop=function(){return b("stop"),this},this.mute=function(){return b("mute"),this},this.unmute=function(){return b("unmute"),this},this.toggleMute=function(){return b("toggleMute"),this},this.setVolume=function(a){return b("setVolume",a),this},this.increaseVolume=function(a){return b("increaseVolume",a),this},this.decreaseVolume=function(a){return b("decreaseVolume",a),this},this.loop=function(){return b("loop"),this},this.unloop=function(){return b("unloop"),this},this.setSpeed=function(a){return b("setSpeed",a),this},this.setTime=function(a){return b("setTime",a),this},this.set=function(a,c){return b("set",a,c),this},this.bind=function(a,c){return b("bind",a,c),this},this.unbind=function(a){return b("unbind",a),this},this.bindOnce=function(a,c){return b("bindOnce",a,c),this},this.trigger=function(a){return b("trigger",a),this},this.fade=function(a,c,d,e){return b("fade",a,c,d,e),this},this.fadeIn=function(a,c){return b("fadeIn",a,c),this},this.fadeOut=function(a,c){return b("fadeOut",a,c),this}},all:function(){return new b.group(b.sounds)},isSupported:function(){return!!b.el.canPlayType},isOGGSupported:function(){return!!b.el.canPlayType&&b.el.canPlayType('audio/ogg; codecs="vorbis"')},isWAVSupported:function(){return!!b.el.canPlayType&&b.el.canPlayType('audio/wav; codecs="1"')},isMP3Supported:function(){return!!b.el.canPlayType&&b.el.canPlayType("audio/mpeg;")},isAACSupported:function(){return!!b.el.canPlayType&&(b.el.canPlayType("audio/x-m4a;")||b.el.canPlayType("audio/aac;"))},toTimer:function(a,b){var c,d,e;return c=Math.floor(a/3600),c=isNaN(c)?"--":c>=10?c:"0"+c,d=b?Math.floor(a/60%60):Math.floor(a/60),d=isNaN(d)?"--":d>=10?d:"0"+d,e=Math.floor(a%60),e=isNaN(e)?"--":e>=10?e:"0"+e,b?c+":"+d+":"+e:d+":"+e},fromTimer:function(a){var b=a.toString().split(":");return b&&3===b.length&&(a=3600*parseInt(b[0],10)+60*parseInt(b[1],10)+parseInt(b[2],10)),b&&2===b.length&&(a=60*parseInt(b[0],10)+parseInt(b[1],10)),a},toPercent:function(a,b,c){var d=Math.pow(10,c||0);return Math.round(100*a/b*d)/d},fromPercent:function(a,b,c){var d=Math.pow(10,c||0);return Math.round(b/100*a*d)/d}};return b});(function(a){"use strict";a(document).ready(function(){var b=a(".header-plus-music-toggle");b.on("click",function(b){b.preventDefault();var c=a(this),d=c.attr("data-bgmusic"),e=c.attr("data-bgmusic_load"),f=c.attr("data-bgmusic_volume"),g=new buzz.sound(d,{preload:!1,loop:!0,volume:f});"on"==e?(g.fadeTo(0,1e3,function(){buzz.all().pause()}),c.removeClass("on"),c.attr("data-bgmusic_load","off"),e="off"):(a(".header-plus-music-toggle.on").each(function(){a(this).removeClass("on"),a(this).attr("data-bgmusic_load","off")}),g.fadeTo(50,1e3,function(){buzz.all().pause(),g.play()}),c.addClass("on"),c.attr("data-bgmusic_load","on"),e="on")})}),jQuery(document).on("elementor/popup/show",(b,c)=>{var d=jQuery("#elementor-popup-modal-"+c).find(".header-plus-music-toggle");if(d.length){var e=d.attr("data-bgmusic"),f=d.attr("data-bgmusic_load"),g=d.attr("data-bgmusic_volume");if(e)var h=new buzz.sound(e,{preload:!1,loop:!0,volume:g});d.on("click",function(b){b.preventDefault();var c=a(this);"on"==f?(h.fadeTo(0,1e3,function(){h.pause()}),c.removeClass("on"),c.attr("data-bgmusic_load","off"),f="off"):(jQuery(".header-plus-music-toggle.on").each(function(){jQuery(this).removeClass("on"),jQuery(this).attr("data-bgmusic_load","off")}),h.fadeTo(50,1e3,function(){buzz.all().pause(),h.play()}),c.addClass("on"),c.attr("data-bgmusic_load","on"),f="on")})}}),jQuery(document).on("elementor/popup/hide",(a,b)=>{var c=jQuery("#elementor-popup-modal-"+b).find(".header-plus-music-toggle.on");if(c.length){var d=c.attr("data-bgmusic"),e=c.attr("data-bgmusic_load"),f=c.attr("data-bgmusic_volume");if("on"==e){if(d)var g=new buzz.sound(d,{preload:!1,loop:!0,volume:f});var h=c;g.fadeTo(50,1e3,function(){buzz.all().pause()}),h.removeClass("on"),h.attr("data-bgmusic_load","off")}}});var b=function(a,b){a.find(".header-extra-icons");if(b(".header-extra-toggle-click:not(.open)").on("click",function(a){a.preventDefault(),b(this).hasClass("open")?(b(this).closest(".extra-toggle-icon").find(".header-extra-toggle-click.style-2").removeClass("open"),b(this).closest(".extra-toggle-icon").find(".header-extra-toggle-click.style-3").removeClass("open"),b(this).closest(".extra-toggle-icon").find(".header-extra-toggle-click.style-4").removeClass("open"),b(this).closest(".extra-toggle-icon").find(".header-extra-toggle-content").removeClass("open"),b(this).closest(".extra-toggle-icon").find(".extra-toggle-content-overlay").removeClass("open")):(b(this).closest(".extra-toggle-icon").find(".header-extra-toggle-click.style-2").addClass("open"),b(this).closest(".extra-toggle-icon").find(".header-extra-toggle-click.style-3").addClass("open"),b(this).closest(".extra-toggle-icon").find(".header-extra-toggle-click.style-4").addClass("open"),b(this).closest(".extra-toggle-icon").find(".header-extra-toggle-content").addClass("open"),b(this).closest(".extra-toggle-icon").find(".extra-toggle-content-overlay").addClass("open"))}),b(".extra-toggle-close-menu,.header-extra-toggle-click.open .tp-menu-st3").on("click",function(a){a.preventDefault(),b(this).closest(".extra-toggle-icon").find(".header-extra-toggle-click.style-2").removeClass("open"),b(this).closest(".extra-toggle-icon").find(".header-extra-toggle-click.style-3").removeClass("open"),b(this).closest(".extra-toggle-icon").find(".header-extra-toggle-click.style-4").removeClass("open"),b(this).closest(".extra-toggle-icon").find(".header-extra-toggle-content").removeClass("open"),b(this).closest(".extra-toggle-icon").find(".extra-toggle-content-overlay").removeClass("open")}),b(".extra-toggle-content-overlay").on("click",function(a){a.preventDefault(),b(this).closest(".extra-toggle-icon").find(".header-extra-toggle-click.style-2").removeClass("open"),b(this).closest(".extra-toggle-icon").find(".header-extra-toggle-click.style-3").removeClass("open"),b(this).closest(".extra-toggle-icon").find(".header-extra-toggle-click.style-4").removeClass("open"),b(this).closest(".extra-toggle-icon").find(".header-extra-toggle-content").removeClass("open"),b(this).removeClass("open")}),b(".header-extra-icons .search-icon",a).length){var c=b(".header-extra-icons .search-icon",a),d=c.find(".plus-post-search-icon"),e=c.find(".plus-search-close");d.on("click",function(){var a=b(this),c=a.closest(".search-icon").find(".plus-search-form"),d=c.data("style");"style-1"!=d&&"style-3"!=d||c.hasClass("open")||(c.addClass("open"),c.css({opacity:0,display:"block"}),c.css("transform","perspective(200px) translateZ(30px)"),c.animate({transform:"none",opacity:1},{ease:"easeOutQuart",duration:500,complete:function(){c.css("transform","none")}})),("style-2"==d||"style-4"==d)&&c.toggleClass("open")}),e.on("click",function(){var a=b(this),c=a.closest(".plus-search-form"),d=c.data("style");("style-1"==d||"style-3"==d)&&c.hasClass("open")&&(c.removeClass("open"),c.css("transform","perspective(200px) translateZ(30px)"),c.animate({transform:"perspective(200px) translateZ(30px)",opacity:0},{duration:300,ease:"easeInQuad",complete:function(){c.css("display","none")}})),("style-2"==d||"style-4"==d)&&c.toggleClass("open")}),b(document).mouseup(function(a){var c=b(".plus-search-form.plus-search-form-content.style-3");c.is(a.target)||0!==c.has(a.target).length||c.removeClass("open").css("opacity","0").css("display","none").css("transform","perspective(200px) translateZ(30px)");var d=b(".header-extra-icons .plus-search-form.plus-search-form-content.style-4");d.is(a.target)||0!==d.has(a.target).length||d.removeClass("open");var e=b(".header-extra-icons .plus-search-form.plus-search-form-content.style-2");e.is(a.target)||0!==e.has(a.target).length||e.removeClass("open")})}if(b(".header-extra-icons .mini-cart-icon",a).length){var f;b(".header-extra-icons .mini-cart-icon.style-1",a).length&&(b(".header-extra-icons .mini-cart-icon.style-1 .content-icon-list").on("mouseover",function(){b(".tpmc-header-extra-toggle-content-ext",this).addClass("open"),b(".widget_shopping_cart",this).addClass("open"),clearTimeout(f)}),b("body").on("mouseleave",".header-extra-icons .mini-cart-icon.style-1 .content-icon-list",function(){var a=b(this);setTimeout(function(){a.is(":hover")||(a.find(".widget_shopping_cart").removeClass("open"),a.find(".tpmc-header-extra-toggle-content-ext").removeClass("open"))},50)})),b(".header-extra-icons .mini-cart-icon.style-2",a).length&&(b(".header-extra-icons .mini-cart-icon.style-2 .content-icon-list .plus-cart-icon").on("click",function(a){a.preventDefault(),b(this).addClass("open"),b(this).closest(".mini-cart-icon.style-2").find(".tpmc-header-extra-toggle-content").addClass("open"),b(this).closest(".mini-cart-icon.style-2").find(".tpmc-extra-toggle-content-overlay").addClass("open"),b(this).closest(".mini-cart-icon.style-2").find(".widget.woocommerce.widget_shopping_cart").addClass("open")}),b(".mini-cart-icon.style-2 .tpmc-extra-toggle-close-menu").on("click",function(a){a.preventDefault(),b(this).removeClass("open"),b(this).closest(".mini-cart-icon.style-2").find(".widget.woocommerce.widget_shopping_cart").removeClass("open"),b(this).closest(".mini-cart-icon.style-2").find(".tpmc-header-extra-toggle-content").removeClass("open"),b(this).closest(".mini-cart-icon.style-2").find(".content-icon-list").removeClass("open"),b(this).closest(".mini-cart-icon.style-2").find(".tpmc-extra-toggle-content-overlay").removeClass("open")}),b(".mini-cart-icon.style-2 .tpmc-extra-toggle-content-overlay").on("click",function(a){a.preventDefault(),b(this).closest(".mini-cart-icon.style-2").find(".tpmc-extra-toggle-close-menu").trigger("click"),b(this).removeClass("open")}))}};a(window).on("elementor/frontend/init",function(){elementorFrontend.hooks.addAction("frontend/element_ready/tp-header-extras.default",b)})})(jQuery);

Youez - 2016 - github.com/yon3zu
LinuXploit