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