/*! elementor-pro - v3.27.0 - 27-01-2025 */
"use strict";(self.webpackChunkelementor_pro=self.webpackChunkelementor_pro||[]).push([[334],{3556:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=class AnchorLinks{observer=null;constructor(e,t){this.$anchorLinks=e,this.activeAnchorClass=t.activeAnchorItem,this.anchorClass=t.anchorItem}getViewportHeight(){return window.innerHeight}bindEvents(){this.onResize=this.onResize.bind(this),window.addEventListener("resize",this.onResize)}initialize(){this.viewPortHeight=this.getViewportHeight(),this.followMenuAnchors(),this.bindEvents()}followMenuAnchors(){this.$anchorLinks.each(((e,t)=>{location.pathname===t.pathname&&""!==t.hash&&this.followMenuAnchor(jQuery(t))}))}followMenuAnchor(e){const t=e.hasClass(this.anchorClass)?e:e.closest(`.${this.anchorClass}`),n=this.getAnchorElement(e);if(!n)return;const i=this.getObserverOptions(n);this.observer=this.createObserver(t,e,i),this.observer.observe(n)}getAnchorElement(e){const t=e[0].hash;try{const e=decodeURIComponent(t);return document.querySelector(e)}catch(e){return null}}getObserverOptions(e){return{root:null,rootMargin:this.calculateRootMargin(e)}}calculateRootMargin(e){const t=(e?.offsetHeight||0)>this.viewPortHeight/2,n=-1*this.viewPortHeight/2;return`${t?n:0}px 0px ${n}px 0px`}createObserver(e,t,n){return new IntersectionObserver((n=>{n.forEach((n=>{e.toggleClass(this.activeAnchorClass,n.isIntersecting),t.attr("aria-current",n.isIntersecting?"location":"")}))}),n)}onResize(){this.viewPortHeight=this.getViewportHeight(),this.observer&&this.observer.disconnect(),this.followMenuAnchors()}}},757:(e,t,n)=>{var i=n(6784);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=i(n(3556));t.default=elementorModules.frontend.handlers.Base.extend({stretchElement:null,getDefaultSettings:()=>({selectors:{menu:".elementor-nav-menu",anchorLink:".elementor-nav-menu--main .elementor-item-anchor",dropdownMenu:".elementor-nav-menu__container.elementor-nav-menu--dropdown",menuToggle:".elementor-menu-toggle"},classes:{anchorItem:"elementor-item-anchor",activeAnchorItem:"elementor-item-active"}}),getDefaultElements(){var e=this.getSettings("selectors"),t={};return t.$menu=this.$element.find(e.menu),t.$anchorLink=this.$element.find(e.anchorLink),t.$dropdownMenu=this.$element.find(e.dropdownMenu),t.$dropdownMenuFinalItems=t.$dropdownMenu.find(".menu-item:not(.menu-item-has-children) > a"),t.$menuToggle=this.$element.find(e.menuToggle),t.$links=t.$dropdownMenu.find("a.elementor-item"),t},dropdownMenuHeightControllerConfig(){const e=this.getSettings("selectors");return{elements:{$element:this.$element,$dropdownMenuContainer:this.$element.find(e.dropdownMenu),$menuToggle:this.$element.find(e.menuToggle)},attributes:{menuToggleState:"aria-expanded"},settings:{dropdownMenuContainerMaxHeight:"1000vmax",menuHeightCssVarName:"--menu-height"}}},bindEvents(){this.elements.$menu.length&&(this.elements.$menuToggle.on("click",this.toggleMenu.bind(this)).on("keyup",this.triggerClickOnEnterSpace.bind(this)),this.getElementSettings("full_width")&&this.elements.$dropdownMenuFinalItems.on("click",this.toggleMenu.bind(this,!1)).on("keyup",this.triggerClickOnEnterSpace.bind(this)),elementorFrontend.addListenerOnce(this.$element.data("model-cid"),"resize",this.stretchMenu),elementorFrontend.addListenerOnce(this.$element.data("model-cid"),"scroll",elementorFrontend.debounce(this.menuHeightController.reassignMobileMenuHeight.bind(this.menuHeightController),250)))},initStretchElement(){this.stretchElement=new elementorModules.frontend.tools.StretchElement({element:this.elements.$dropdownMenu})},toggleNavLinksTabIndex(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.elements.$links.attr("tabindex",e?0:-1)},toggleMenu(e){var t=this.elements.$menuToggle.hasClass("elementor-active");"boolean"!=typeof e&&(e=!t),this.elements.$menuToggle.attr("aria-expanded",e),this.elements.$dropdownMenu.attr("aria-hidden",!e),this.elements.$menuToggle.toggleClass("elementor-active",e),this.toggleNavLinksTabIndex(e),this.menuHeightController.reassignMobileMenuHeight(this),e&&this.getElementSettings("full_width")&&this.stretchElement.stretch()},triggerClickOnEnterSpace(e){13!==e.keyCode&&32!==e.keyCode||(e.currentTarget.click(),e.stopPropagation())},stretchMenu(){this.getElementSettings("full_width")?(this.stretchElement.stretch(),this.elements.$dropdownMenu.css("top",this.elements.$menuToggle.outerHeight())):this.stretchElement.reset()},onInit(){if(this.menuHeightController=new elementorProFrontend.utils.DropdownMenuHeightController(this.dropdownMenuHeightControllerConfig()),elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),!this.elements.$menu.length)return;const e=this.getElementSettings().submenu_icon.value;let t="";if(e&&(t=e.indexOf("<")>-1?e:``),this.elements.$menu.smartmenus({subIndicators:""!==t,subIndicatorsText:t,subIndicatorsPos:"append",subMenusMaxWidth:"1000px"}),this.initStretchElement(),this.stretchMenu(),!elementorFrontend.isEditMode()){const e=this.getSettings("classes");this.anchorLinks=new s.default(this.elements.$anchorLink,e),this.anchorLinks.initialize()}},onElementChange(e){"full_width"===e&&this.stretchMenu()}})}}]);/* global jQuery, document, redux, ajaxurl, ImportExport */
// noinspection JSUnresolvedReference
(function ( $ ) {
'use strict';
redux.field_objects = redux.field_objects || {};
redux.field_objects.import_export = redux.field_objects.import_export || {};
redux.field_objects.import_export.copy_text = function ( $text ) {
const copyFrom = document.createElement( 'textarea' );
document.body.appendChild( copyFrom );
copyFrom.textContent = $text;
copyFrom.select();
document.execCommand( 'copy' );
copyFrom.remove();
};
redux.field_objects.import_export.get_options = function ( $secret ) {
const $el = $( '#redux-export-code-copy' );
const url = ajaxurl + '?download=0&action=redux_download_options-' + redux.optName.args.opt_name + '&secret=' + $secret;
$el.addClass( 'disabled' ).attr( 'disabled', 'disabled' );
$el.text( $el.data( 'copy' ) );
$.get(
url,
function ( data ) {
redux.field_objects.import_export.copy_text( data );
$el.removeClass( 'disabled' );
$el.text( $el.data( 'copied' ) );
setTimeout(
function () {
$el.text( $el.data( 'copy' ) ).removeClass( 'disabled' ).prop( 'disabled', false );
},
2000
);
}
);
};
redux.field_objects.import_export.init = function ( selector ) {
selector = $.redux.getSelector( selector, 'import_export' );
$( selector ).each(
function () {
let textBox1;
let textBox2;
const el = $( this );
let parent = el;
if ( ! el.hasClass( 'redux-field-container' ) ) {
parent = el.parents( '.redux-field-container:first' );
}
if ( parent.is( ':hidden' ) ) {
return;
}
if ( parent.hasClass( 'redux-field-init' ) ) {
parent.removeClass( 'redux-field-init' );
} else {
return;
}
el.each(
function () {
$( '#redux-import' ).on(
'click',
function ( e ) {
if ( '' === $( '#import-code-value' ).val() ) {
e.preventDefault();
return false;
}
}
);
$( this ).find( '#redux-import-code-button' ).on(
'click',
function () {
const $el = $( '#redux-import-code-wrapper' );
if ( $el.is( ':visible' ) ) {
$( '#import-link-value' ).val( '' );
$( '#redux-import-link-wrapper' ).fadeOut(
'fast',
function () {
$el.fadeIn(
'fast',
function () {
$( '#import-code-value' ).trigger( 'focus' );
}
);
}
);
} else {
if ( $el.is( ':visible' ) ) {
$el.fadeOut();
} else {
$el.fadeIn(
'medium',
function () {
$( '#import-code-value' ).trigger( 'focus' );
}
);
}
}
}
);
$( this ).find( '#redux-export-code-dl' ).on(
'click',
function ( e ) {
e.preventDefault();
if ( ! ! window.onbeforeunload ) {
if ( confirm( ImportExport.unchanged_values ) ) {
$( '#redux_top_save' ).on( 'click' );
setTimeout(
function () {
window.open( $( this ).attr( 'href' ) );
},
2000
);
}
} else {
window.open( $( this ).attr( 'href' ) );
}
}
);
$( this ).find( '#redux-import-upload' ).on(
'click',
function () {
$( '#redux-import-upload-file' ).trigger( 'click' );
}
);
document.getElementById( 'redux-import-upload-file' ).addEventListener(
'change',
function () {
const file_to_read = document.getElementById( 'redux-import-upload-file' ).files[0];
const fileread = new FileReader();
$( '#redux-import-upload span' ).text( ': ' + file_to_read.name );
fileread.onload = function () {
const content = fileread.result;
$( '#import-code-value' ).val( content );
};
fileread.readAsText( file_to_read );
}
);
$( this ).find( '#redux-export-code-copy' ).on(
'click',
function ( e ) {
const $el = $( '#redux-export-code' );
const $secret = $( this ).data( 'secret' );
e.preventDefault();
if ( ! ! window.onbeforeunload ) {
if ( confirm( ImportExport.unchanged_values ) ) {
$( '#redux_top_save' ).trigger( 'click' );
setTimeout(
function () {
redux.field_objects.import_export.get_options( $secret, $el );
},
2000
);
}
} else {
redux.field_objects.import_export.get_options( $secret, $el );
}
}
);
$( this ).find( 'textarea' ).on(
'focusout',
function () {
const $id = $( this ).attr( 'id' );
const $el = $( this );
let $container = $el;
if ( 'import-link-value' === $id || 'import-code-value' === $id ) {
$container = $( this ).parent();
}
$container.fadeOut(
'medium',
function () {
if ( 'redux-export-link-value' !== $id ) {
$el.text( '' );
}
}
);
}
);
textBox1 = document.getElementById( 'redux-export-code' );
textBox1.onfocus = function () {
textBox1.select();
// Work around Chrome's little problem.
textBox1.onmouseup = function () {
// Prevent further mouseup intervention.
textBox1.onmouseup = null;
return false;
};
};
textBox2 = document.getElementById( 'import-code-value' );
textBox2.onfocus = function () {
textBox2.select();
// Work around Chrome's little problem.
textBox2.onmouseup = function () {
// Prevent further mouseup intervention.
textBox2.onmouseup = null;
return false;
};
};
}
);
}
);
};
})( jQuery );
No direct script access allowed