­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ "use strict";(self.webpackChunkelementorFrontend=self.webpackChunkelementorFrontend||[]).push([[396],{9956:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n="e-handles-inside";class HandlesPosition extends elementorModules.frontend.handlers.Base{onInit(){this.$element.on("mouseenter",this.setHandlesPosition.bind(this))}isSectionScrollSnapEnabled(){return elementor.settings.page.model.attributes.scroll_snap}isFirstElement(){return this.$element[0]===document.querySelector(".elementor-section-wrap > .elementor-element:first-child")}isOverflowHidden(){return"hidden"===this.$element.css("overflow")}getOffset(){if("body"===elementor.config.document.container)return this.$element.offset().top;const e=jQuery(elementor.config.document.container);return this.$element.offset().top-e.offset().top}setHandlesPosition(){const e=elementor.documents.getCurrent();if(!e?.container.isEditable())return;if(this.isSectionScrollSnapEnabled())return void this.$element.addClass(n);const{top:t}=this.$element[0].getBoundingClientRect();t<100||this.isOverflowHidden()?this.$element.addClass(n):this.$element.removeClass(n)}}t.default=HandlesPosition}}]);