!function(e,t){"use strict";const s={presetClasses:["ekit-liquid-glass-preset1","ekit-liquid-glass-preset2","ekit-liquid-glass-preset3","ekit-liquid-glass-preset4","ekit-liquid-glass-preset5","ekit-liquid-glass-preset6","ekit-liquid-glass-preset7","ekit-liquid-glass-preset8","ekit-liquid-glass-preset9","ekit-liquid-glass-preset10"],presetParams:{1:{frequency:"0.02 0.02",scale:80,name:"Soft Ripple"},2:{frequency:"0.004 0.004",scale:125,name:"Deep Glass"},3:{frequency:"0.007 0.007",scale:110,name:"Crystal Flow"},4:{frequency:"0.015 0.015",scale:180,name:"Heavy Distortion"},5:{frequency:"0.01 0.01",scale:95,name:"Liquid Mist"},6:{frequency:"0.003 0.008",scale:140,name:"Vertical Wave"},7:{frequency:"0.008 0.003",scale:130,name:"Horizontal Flow"},8:{frequency:"0.006 0.006",scale:100,name:"Balanced Blur"},9:{frequency:"0.012 0.02",scale:120,name:"Glass Storm"},10:{frequency:"0.005 0.015",scale:160,name:"Molten Glass"}},init(){t.hooks.addAction("frontend/element_ready/global",this.onElementReady.bind(this))},onElementReady(e){const t=this.getLiquidGlassClass(e);t.length&&t.forEach((e=>{const t=this.getPresetNumber(e);t&&this.renderSVG(t)}))},getLiquidGlassClass(e){const t=[];for(const s of this.presetClasses)e.hasClass(s)&&t.push(s),e.find("."+s).each((function(){t.push(s)}));return[...new Set(t)]},getPresetNumber(e){const t=e.match(/preset(\d+)/);return t?parseInt(t[1]):null},renderSVG(t){if(!e("body").length||!this.presetParams[t])return;const s=`glass-distortion-${t}`,n=`ekit-liquid-glass-svg-${t}`;if(e(`.${n}`).length)return;const{frequency:i,scale:l}=this.presetParams[t],a=`\n\t\t\t\t<svg class="${n}" xmlns="http://www.w3.org/2000/svg" width="0" height="0" style="position:absolute; overflow:hidden">\n\t\t\t\t\t<defs>\n\t\t\t\t\t\t<filter id="${s}" x="0%" y="0%" width="100%" height="100%">\n\t\t\t\t\t\t\t<feTurbulence type="fractalNoise" baseFrequency="${i}" numOctaves="2" seed="92" result="noise" />\n\t\t\t\t\t\t\t<feGaussianBlur in="noise" stdDeviation="2" result="blurred" />\n\t\t\t\t\t\t\t<feDisplacementMap in="SourceGraphic" in2="blurred" scale="${l}" xChannelSelector="R" yChannelSelector="G" />\n\t\t\t\t\t\t</filter>\n\t\t\t\t\t</defs>\n\t\t\t\t</svg>\n\t\t\t`;e("body").append(a)}};e(window).on("elementor/frontend/init",(()=>s.init()))}(jQuery,window.elementorFrontend);