"use strict";(self.webpackChunk_brizy_builder_free=self.webpackChunk_brizy_builder_free||[]).push([["680"],{6995(t,e,i){i.r(e),i.d(e,{default:()=>o});var s=i(1669),n=i.n(s);let h={events:["load","scroll"],listeners:[],framePending:!1,addEvents(){this.notifyListeners=this.notifyListeners.bind(this),this.events.forEach(t=>{window.addEventListener(t,this.notifyListeners)})},removeEvents(){this.events.forEach(t=>{window.removeEventListener(t,this.notifyListeners)})},addListener(t){0===this.listeners.length&&this.addEvents(),this.listeners.push(t)},removeListener(t){this.listeners.splice(this.listeners.indexOf(t),1),0===this.listeners.length&&this.removeEvents()},notifyListeners(){this.framePending||(requestAnimationFrame(()=>{this.framePending=!1,this.listeners.forEach(t=>t())}),this.framePending=!0)}};window,document;let r="brzSticky",a={type:"animated",refNode:function(){throw Error("brzSticky refNode must be specified")},onStickyChange:function(){}};function d(t,e){this.element=t,this.settings=n().extend({},a,e),this._defaults=a,this._name=r,this.init()}function o(){}n().extend(d.prototype,{init:function(){this.isSticky=!1,this._hasEmittedInitial=!1,h.addListener(this.checkSticky.bind(this))},checkSticky:function(){let t=this.settings.type,e=this.settings.refNode.call(this.element),i=this.element.ownerDocument.defaultView.scrollY,s=e.getBoundingClientRect(),n="animated"===t?-s.top>=s.height:s.top<=0;i>=0&&(n===this.isSticky&&this._hasEmittedInitial||(this._hasEmittedInitial=!0,this.isSticky=n,"animated"===t&&(this.isSticky?(this.element.removeAttribute("aria-hidden"),this.element.removeAttribute("inert")):(this.element.setAttribute("aria-hidden","true"),this.element.setAttribute("inert",""))),this.settings.onStickyChange.call(this.element,this.isSticky)))}}),n().fn[r]=function(t){return this.each(function(){n().data(this,"plugin_"+r)||n().data(this,"plugin_"+r,new d(this,t))})}}}]);