"use strict";(self.webpackChunkporta_frontend_starter_kit=self.webpackChunkporta_frontend_starter_kit||[]).push([[863],{5863:function(t,e,o){o.r(e),o.d(e,{initTooltips:function(){return r}});const r=()=>{const t=document.querySelectorAll(".tooltip"),e=document.body;for(const o of t){const t=o.querySelector(".tooltip__trig"),r=o.querySelector(".tooltip__popup");if(!t||!r)return;t.addEventListener("click",(t=>{t.preventDefault(),r.classList.toggle("tooltip__popup--active")})),e.addEventListener("click",(t=>{t.target.closest(".tooltip")||r.classList.remove("tooltip__popup--active")}))}}}}]);