"use strict";(self.webpackChunkporta_frontend_starter_kit=self.webpackChunkporta_frontend_starter_kit||[]).push([[260],{260:function(e,t,o){o.r(t),o.d(t,{initPopups:function(){return l},popupSelector:function(){return r}});var n=o(128),c=o.n(n);const r=".modal-trigger, .glightbox",l=()=>{var e;e=".glightbox",c()({selector:e,loop:!0,zoomable:!1,openEffect:"fade",closeEffect:"fade"}),function(e){const t=c()({selector:e,openEffect:"fade",closeEffect:"fade",skin:"clean glightbox-modal",height:"auto",width:"auto",closeButton:!1});t.on("slide_after_load",(e=>{const o=e.slideNode,n=o.querySelector(".modal__close"),c=o.querySelector(".modal__prev"),r=o.querySelector(".modal__next");n&&n.addEventListener("click",(()=>{t.close()})),c&&c.addEventListener("click",(()=>{t.prevSlide()})),r&&r.addEventListener("click",(()=>{t.nextSlide()}))})),t.on("open",(()=>{const e=document.querySelector(".glightbox-container");e.addEventListener("click",(o=>{const n=e.querySelector(".current .modal"),c=o.target.classList;o.target===n||n.contains(o.target)||c.contains("modal__btn-icon")||c.contains("modal__btn")||t.close()}))}))}(".modal-trigger")}}}]);