t?this._utilsIsValidNumber(o):this._utilsIsPossibleNumber(o),i=this._getFullNumber(),n=i.search(B.ALPHA_UNICODE);if(n>-1&&!this.options.allowPhonewords){let o=i.substring(0,n),l=e(o),d=e(i);return l&&d}return e(i)}_utilsIsValidNumber(t){return u.utils?u.utils.isValidNumber(t,this.selectedCountryData.iso2,this.options.validationNumberTypes):null}setCountry(t){let e=t?.toLowerCase();if(!Z(e))throw new Error(`Invalid country code: '${e}'`);let i=this.selectedCountryData.iso2;(t&&e!==i||!t&&i)&&(this._setCountry(e),this._updateDialCode(this.selectedCountryData.dialCode),this.options.formatOnDisplay&&this._updateValFromNumber(this.ui.telInput.value),this._triggerCountryChange())}setNumber(t){let e=this._updateCountryFromNumber(t);this._updateValFromNumber(t),e&&this._triggerCountryChange(),this._trigger(P.INPUT,{isSetNumber:!0})}setPlaceholderNumberType(t){this.options.placeholderNumberType=t,this._updatePlaceholder()}setDisabled(t){this.ui.telInput.disabled=t,t?this.ui.selectedCountry.setAttribute("disabled","true"):this.ui.selectedCountry.removeAttribute("disabled")}},Mt=s=>{if(!u.utils&&!u.startedLoadingUtilsScript){let t;if(typeof s=="function")try{t=Promise.resolve(s())}catch(e){return Promise.reject(e)}else return Promise.reject(new TypeError(`The argument passed to attachUtils must be a function that returns a promise for the utilities module, not ${typeof s}`));return u.startedLoadingUtilsScript=!0,t.then(e=>{let i=e?.default;if(!i||typeof i!="object")throw new TypeError("The loader function passed to attachUtils did not resolve to a module object with utils as its default export.");return u.utils=i,$("handleUtils"),!0}).catch(e=>{throw $("rejectUtilsScriptPromise",e),e})}return null},$=(s,...t)=>{Object.values(u.instances).forEach(e=>{let i=e[s];typeof i=="function"&&i.apply(e,t)})},u=Object.assign((s,t)=>{let e=new lt(s,t);return u.instances[e.id]=e,s.iti=e,e},{defaults:st,documentReady:()=>document.readyState==="complete",getCountryData:()=>v,getInstance:s=>{let t=s.dataset.intlTelInputId;return t?u.instances[t]:null},instances:{},attachUtils:Mt,startedLoadingUtilsScript:!1,startedLoadingAutoCountry:!1,version:"25.12.5"}),Bt=u;return F(S)})();return a.default})});var ut=()=>{let a=document.querySelector("[el-menu-nav]"),C=document.querySelectorAll("[menu-dark]"),g=document.querySelectorAll("[menu-light]"),_=document.querySelector("[el-menu-logo-dark]"),y=document.querySelector("[el-menu-logo-light]");if(!a||C.length===0&&g.length===0)return;let D=a;D.style.transition="background-color 100ms ease",_&&(_.style.transition="opacity 100ms ease"),y&&(y.style.transition="opacity 100ms ease");let k=!1,F="default",S=()=>{let G=a.getBoundingClientRect(),H=G.top+window.scrollY,v=H+G.height,U=!1,W=!1;for(let x of C){let M=x.getBoundingClientRect(),T=M.top+window.scrollY,P=T+M.height;if(HT){U=!0,x.getAttribute("menu-dark")==="logo-light"&&(W=!0);break}}if(!U)for(let x of g){let M=x.getBoundingClientRect(),T=M.top+window.scrollY,P=T+M.height;if(H
T){x.getAttribute("menu-light")==="logo-light"&&(W=!0);break}}U!==k&&(k=U,k?D.style.backgroundColor="rgba(2, 39, 31, 0.29)":D.style.backgroundColor="");let V=W?"light":"default";V!==F&&(F=V,_&&y&&(F==="light"?(_.style.opacity="0",y.style.opacity="1"):(_.style.opacity="",y.style.opacity="")))};return S(),window.addEventListener("scroll",S),window.addEventListener("resize",S),()=>{window.removeEventListener("scroll",S),window.removeEventListener("resize",S)}};var dt=()=>{let a=document.getElementById("current-year");if(!a)return;let C=new Date().getFullYear();a.textContent=C.toString()};var ct=()=>{let a=document.querySelector(".colored-cards-grid");if(!a)return;let C=a.querySelectorAll(".colored-cards-grid_item");if(!C.length)return;let g=a.getAttribute("colored-cards-grid-data"),_;g&&g.trim()?_=g.split(",").map(y=>{let D=y.trim();return D.startsWith("#")?D:`#${D}`}):_=["#E8E9EA","#FEFCE8","#E0F2FE","#FCE7F3","#E0F2E9","#D1D5DB"],C.forEach((y,D)=>{let k=D%_.length;y.style.backgroundColor=_[k]})};var Ct=jt(pt(),1),mt=()=>{let a=document.querySelector("#phone");if(!a)return;Yt();let C=(0,Ct.default)(a,{utilsScript:"https://cdn.jsdelivr.net/npm/intl-tel-input@25.12.5/build/js/utils.js",preferredCountries:["ua","us","gb","de"],nationalMode:!1,autoPlaceholder:"aggressive",separateDialCode:!0,showFlags:!0,i18n:{searchPlaceholder:"Search country"}});a.addEventListener("blur",()=>{a.value.trim()&&(C.isValidNumber()?(a.classList.remove("error"),a.classList.add("valid")):(a.classList.remove("valid"),a.classList.add("error")))}),a.addEventListener("focus",()=>{a.classList.remove("error","valid")});let g=a.closest("form");return g&&g.addEventListener("submit",_=>{let y=C.getNumber();a.dataset.fullNumber=y,C.isValidNumber()||(_.preventDefault(),a.classList.add("error"),console.warn("Invalid phone number"))}),()=>{C.destroy()}},Kt="https://cdn.jsdelivr.net/npm/intl-tel-input@25.12.5/build/css/intlTelInput.min.css";function Yt(){if(!document.getElementById("intl-tel-input-css")){let a=document.createElement("link");a.id="intl-tel-input-css",a.rel="stylesheet",a.href=Kt,a.media="all",document.head.appendChild(a)}if(!document.getElementById("phone-country-custom-style")){let a=document.createElement("style");a.id="phone-country-custom-style",a.textContent=`
.iti {
width: 100%;
}
.iti__tel-input {
width: 100%;
}
.iti--allow-dropdown .iti__country-container {
inset-inline-start: 8px;
}
.iti__selected-country {
border-radius: 6px 0 0 6px;
}
`,document.head.appendChild(a)}}window.Webflow||(window.Webflow=[]);window.Webflow.push(()=>{ut(),dt(),ct(),mt()});})();