mirror of
https://github.com/Sea-Haven-Industries/seahaven-site.git
synced 2026-10-06 16:51:56 +00:00
2 lines
14 KiB
JavaScript
2 lines
14 KiB
JavaScript
|
|
/*! elementor-pro - v3.27.0 - 03-02-2025 */
|
||
|
|
"use strict";(self.webpackChunkelementor_pro=self.webpackChunkelementor_pro||[]).push([[249],{9744:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=class FloatingBarDomHelper{constructor(e){this.$element=e}maybeMoveToTop(){const e=this.$element[0],t=e.querySelector(".e-floating-bars");if(elementorFrontend.isEditMode())t.classList.add("is-sticky");else if(e.dataset.widget_type.startsWith("floating-bars")&&t.classList.contains("has-vertical-position-top")&&!t.classList.contains("is-sticky")){const t=document.getElementById("wpadminbar"),n=e.closest(".elementor");t?t.after(n):document.body.prepend(n)}}}},2319:(e,t,n)=>{var s=n(6784);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=s(n(8562)),o=s(n(9744)),l=s(n(8243));class FloatingBarsHandler extends i.default{getDefaultSettings(){return{selectors:{main:".e-floating-bars",closeButton:".e-floating-bars__close-button",playButton:".e-floating-bars__play-button",pauseButton:".e-floating-bars__pause-button",headline:".e-floating-bars__headline",headlines:".e-floating-bars__headlines",headlinesInner:".e-floating-bars__headlines-inner",overlay:".e-floating-bars__overlay"},constants:{isHidden:"is-hidden",isSticky:"is-sticky",hasVerticalPositionTop:"has-vertical-position-top",hasVerticalPositionBottom:"has-vertical-position-bottom",isPaused:"is-paused",animationTypeControl:"style_ticker_animation_type",autoplay:"autoplay"}}}onElementChange(e){["style_headline_text_typography_font_size","style_headlines_icon_size","style_floating_bar_padding","style_floating_bar_controls_size","style_floating_bar_element_spacing"].includes(e)&&this.initDefaultState()}getDefaultElements(){const e=this.getSettings("selectors");return{main:this.$element[0].querySelector(e.main),closeButton:this.$element[0].querySelector(e.closeButton),pauseButton:this.$element[0].querySelector(e.pauseButton),playButton:this.$element[0].querySelector(e.playButton),headlineAll:this.$element[0].querySelectorAll(e.headline),headlines:this.$element[0].querySelector(e.headlines),headlinesInner:this.$element[0].querySelector(e.headlinesInner),overlay:this.$element[0].querySelector(e.overlay)}}getResponsiveSetting(e){const t=elementorFrontend.getCurrentDeviceMode();return elementorFrontend.utils.controls.getResponsiveControlValue(this.getElementSettings(),e,"",t)}bindEvents(){this.elements.closeButton&&this.elements.closeButton.addEventListener("click",this.closeFloatingBar.bind(this)),this.elements.pauseButton&&this.elements.pauseButton.addEventListener("click",this.pauseCarousel.bind(this)),this.elements.playButton&&this.elements.playButton.addEventListener("click",this.playCarousel.bind(this)),this.hasStickyElements()&&window.addEventListener("resize",this.handleStickyElements.bind(this))}isMobileDevice(){return["mobile","mobile_extra"].includes(elementorFrontend.getCurrentDeviceMode())}isStickyTop(){const{isSticky:e,hasVerticalPositionTop:t}=this.getSettings("constants");return this.elements.main.classList.contains(e)&&this.elements.main.classList.contains(t)}isStickyBottom(){const{isSticky:e,hasVerticalPositionBottom:t}=this.getSettings("constants");return this.elements.main.classList.contains(e)&&this.elements.main.classList.contains(t)}hasStickyElements(){return document.querySelectorAll(".elementor-sticky").length>0}pauseCarousel(){const{isPaused:e}=this.getSettings("constants");this.elements.headlines.classList.add(e),this.elements.playButton&&this.elements.pauseButton&&(this.elements.playButton.setAttribute("aria-hidden","false"),this.elements.pauseButton.setAttribute("aria-hidden","true"))}playCarousel(){const{isPaused:e}=this.getSettings("constants");this.elements.headlines.classList.remove(e),this.elements.playButton&&this.elements.pauseButton&&(this.elements.pauseButton.setAttribute("aria-hidden","false"),this.elements.playButton.setAttribute("aria-hidden","true"))}closeFloatingBar(){const{isHidden:e}=this.getSettings("constants");elementorFrontend.isEditMode()||(this.elements.main.classList.add(e),this.hasStickyElements()?this.handleStickyElements():this.
|