"use strict";(self.webpackChunk_brizy_builder_free=self.webpackChunk_brizy_builder_free||[]).push([["724"],{5743(e,p,t){t.r(p),t.d(p,{default:()=>l});var n=t(1669),r=t.n(n),i=t(2540);function l(e){function p(e){r()(e).removeClass("brz-popup--opened"),r()("html").removeClass("brz-ow-hidden"),r()(document).trigger("brz.popup.close",[e]),window.Brz.emit("elements.popup.close",e)}e.find((0,i.pk)({name:"link-type",value:"popup"})).on("click",function(e){e.preventDefault();let p=this.getAttribute("href").slice(1);if(p){var t;let e=r()((0,i.pk)({name:"popup",value:p}));e.hasClass("brz-popup")&&(r()(t=e.get(0)).addClass("brz-popup--opened"),r()("html").addClass("brz-ow-hidden"),window.Brz.emit("elements.popup.open",t))}}),e.find(".brz-popup:not(.brz-initialized)").click(function(e){0===r()(e.target).closest(".brz-container").length&&p(this)}),r()(".brz-popup").addClass("brz-initialized"),window.Brz.on("elements.anchor.startScrolled",e=>{let t=r()(e).closest(".brz-popup");t.length>0&&p(t.get(0))})}}}]);