(()=>{var e={202(){function e(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ";return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,t)}function t(){const t=document.querySelectorAll("[data-final-value], [data-final-value-com]"),r=new IntersectionObserver(t=>{t.forEach(t=>{const r=t.target,o=r.hasAttribute("data-final-value-com"),s=o?"data-final-value-com":"data-final-value",a=o?",":" ",i=+r.getAttribute(s);t.isIntersecting?r.dataset.animated||(r.textContent=e(0,a),function(t,r){var o;let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1e3,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:" ";const n=+r-+s,l=1e3/60,c=Math.ceil(a/l),d=n/c;let u=s,h=0;const m=null===(o=r.toString().match(/\.(\d+)/))||void 0===o?void 0:o[1].length,f=setInterval(()=>{u+=d,h++,h>=c&&(u=r,clearInterval(f)),t.textContent=e(m?u.toFixed(m):Math.round(u),i)},l)}(r,i,0,1e3,a),r.dataset.animated="true"):(r.textContent=e(0,a),r.dataset.animated="")})},{root:null,threshold:.5});t.forEach(e=>r.observe(e))}document.addEventListener("DOMContentLoaded",()=>{t(),window.addEventListener("scroll",t)})},491(){new class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".img-svg";this.svgSelector=e,this.svg=null,this.init()}init(){this.svg=document.querySelector(this.svgSelector),this.svg&&this.applyFromCSS()}readCSSVars(){const e=getComputedStyle(document.documentElement);return{spread:e.getPropertyValue("--shadow-spread").trim(),x:e.getPropertyValue("--shadow-x").trim(),y:e.getPropertyValue("--shadow-y").trim(),blur:e.getPropertyValue("--shadow-blur").trim(),opacity:e.getPropertyValue("--shadow-opacity").trim()}}applyToFilters(e){const{spread:t,x:r,y:o,blur:s,opacity:a}=e;this.svg.querySelectorAll("feMorphology").forEach(e=>e.setAttribute("radius",t)),this.svg.querySelectorAll("feOffset").forEach(e=>{e.setAttribute("dx",r),e.setAttribute("dy",o)}),this.svg.querySelectorAll("feGaussianBlur").forEach(e=>e.setAttribute("stdDeviation",s)),this.svg.querySelectorAll("filter").forEach(e=>{const t=e.querySelectorAll('feColorMatrix[type="matrix"]'),r=t[t.length-1];r&&r.setAttribute("values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ".concat(a," 0"))})}applyFromCSS(){this.applyToFilters(this.readCSSVars())}onThemeChange(){this.applyFromCSS()}}(".img-svg")},623(){function e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,o)}return r}function t(t){for(var o=1;othis._handleSubmit(e))}async _handleSubmit(e){e.preventDefault(),this._clearErrors();const r=this._validateForm();if(Object.keys(r).length>0)return void Object.entries(r).forEach(e=>{let[t,r]=e;const o=this.form.querySelector("#error-".concat(t));o&&(o.textContent=r)});this._showPreloader(!0,""),this._lockForm(!0),await this._delay(800);const o=new FormData(this.form),s={};o.forEach((e,t)=>s[t]=e),s.lang=this.lang,s.form_ts=this.formTs,s.feedback_form_nonce=s.feedback_form_nonce||this.nonce;const a="".concat(this.ajaxUrl,"?action=").concat(this.action);let i={};try{const e=await fetch(a,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)});i=await e.json()}catch(e){i={success:!1,message:this.t("smtp_failed")}}"object"==typeof i.data&&null!==i.data&&(i=t(t({},i),i.data)),this.spinner.style.display="none";const n=i.success?"success":"error",l=i.message||(i.success?this.t("smtp_success"):this.t("smtp_failed"));this._showPreloader(!0,l,n),i.errors&&Object.entries(i.errors).forEach(e=>{let[t,r]=e;const o=this.form.querySelector("#error-".concat(t));o&&(o.textContent=r)}),await this._delay(2500),this._showPreloader(!1),this.spinner.style.display="block",this._lockForm(!1),i.success&&this.form.reset()}_validateForm(){const e={};return["name","email","subject","message"].forEach(t=>{const r=this.form.querySelector('[name="'.concat(t,'"]'));r&&r.value.trim()?"email"!==t||/^\S+@\S+\.\S+$/.test(r.value.trim())||(e[t]=this.t("invalid_email")):e[t]=this.t("field_required")}),e}_showPreloader(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";this.preloader.style.display=e?"flex":"none",this.messageEl.textContent=t,this.messageEl.classList.remove("success","error"),r&&this.messageEl.classList.add(r)}_lockForm(e){this.form.style.pointerEvents=e?"none":"auto",this.form.style.opacity=e?"0.5":"1"}_clearErrors(){this.form.querySelectorAll(".message-error").forEach(e=>e.textContent="")}_delay(e){return new Promise(t=>setTimeout(t,e))}}document.addEventListener("DOMContentLoaded",()=>{document.querySelectorAll(".feedback-form").forEach(e=>new o(e))})}},t={};function r(o){var s=t[o];if(void 0!==s)return s.exports;var a=t[o]={exports:{}};return e[o](a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";r(623),r(202),r(491)})()})();