"use strict";(self.webpackChunkporta_frontend_starter_kit=self.webpackChunkporta_frontend_starter_kit||[]).push([[385],{226:function(e,t,n){document.addEventListener("DOMContentLoaded",(function(){(()=>{const e=document.body,t=document.querySelectorAll(".dropdown__trig"),n=document.querySelectorAll(".dropdown__menu"),o=document.querySelectorAll(".menu-trigger");for(const t of o)t.addEventListener("click",(t=>{t.preventDefault(),s(),e.classList.toggle("body--menu-open")}));if(!t||!n)return;for(const e of t){const t=e.getAttribute("data-dropdown"),n=document.querySelector("#"+t);n&&e.addEventListener("click",(t=>{if(window.innerWidth>992){const t=n.classList.contains("dropdown__menu--open");s(),t||l(n,e)}else r(n,e)}))}e.addEventListener("click",(e=>{e.target.closest(".main-nav, .services-nav, .x-layer")||s()}));const s=()=>{for(const e of n)e.classList.remove("dropdown__menu--open");for(const e of t)e.classList.remove("dropdown__trig--active")},l=(e,t)=>{e.classList.add("dropdown__menu--open"),t.classList.add("dropdown__trig--active")},r=(e,t)=>{e.classList.toggle("dropdown__menu--open"),t.classList.toggle("dropdown__trig--active")}})(),(()=>{const e=document.querySelectorAll(".flash-message__close");for(const t of e)t.addEventListener("click",(()=>{t.closest(".flash-message").classList.add("flash-message--hidden")}));const t=document.querySelectorAll(".flash-message");t.length&&setTimeout((()=>{for(const e of t)e.getAttribute("data-hide")&&e.classList.add("flash-message--hidden")}),5e3)})();document.querySelectorAll(".sh-trig, .show-more").length&&n.e(717).then(n.bind(n,717)).then((({initTogglers:e})=>{e()}));document.querySelectorAll(".equal-height").length&&n.e(222).then(n.bind(n,222)).then((({initMatchHeight:e})=>{e()}));document.querySelectorAll(".slider").length&&Promise.all([n.e(756),n.e(502)]).then(n.bind(n,502)).then((({initSliders:e})=>{e()}));document.querySelectorAll(".modal-trigger, .glightbox").length&&Promise.all([n.e(128),n.e(260)]).then(n.bind(n,260)).then((({initPopups:e})=>{e()}));document.querySelectorAll(".tabs").length&&n.e(318).then(n.bind(n,318)).then((({initTabs:e})=>{e()}));document.querySelectorAll(".accordion").length&&n.e(466).then(n.bind(n,466)).then((({initAccordions:e})=>{e()}));document.querySelectorAll(".tooltip").length&&n.e(863).then(n.bind(n,863)).then((({initTooltips:e})=>{e()}))}))}},function(e){var t;t=226,e(e.s=t)}]);