PATH:
home
/
nappmpmd
/
salepaky.com
/
wp-content
/
plugins
/
elementor-pro
/
assets
/
js
/*! elementor-pro - v3.24.0 - 01-10-2024 */ "use strict";(self.webpackChunkelementor_pro=self.webpackChunkelementor_pro||[]).push([[727],{3556:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=class AnchorLinks{followMenuAnchors(e,t){e.each(((e,n)=>{location.pathname===n.pathname&&""!==n.hash&&this.followMenuAnchor(jQuery(n),t)}))}followMenuAnchor(e,t){const n=e[0].hash,i=t.activeAnchorItem,o=t.anchorItem,s=e.hasClass(o)?e:e.closest(`.${o}`);let r,l="300px 0px -50% 0px";try{r=jQuery(decodeURIComponent(n))}catch(e){return}if(!r.length)return;r.hasClass("elementor-menu-anchor")||(l=this.calculateRootMargin(r));const a={root:null,rootMargin:l,threshold:this.buildThreshold(r)};this.createObserver(s,i,e,a).observe(r[0])}calculateRootMargin(e){const t=jQuery(window).height(),n=e.outerHeight();let i;if(n>t)i=0;else{i=(t-n)/2}return`${i}px`}buildThreshold(e){const t=jQuery(window).height(),n=e.outerHeight();let i=.5;if(n>t){i=t/2/n}return i}createObserver(e,t,n,i){return new IntersectionObserver((i=>{i.forEach((i=>{i.isIntersecting?(e.addClass(t),n.attr("aria-current","location")):(e.removeClass(t),n.attr("aria-current",""))}))}),i)}}},6974:(e,t)=>{function getChildrenWidth(e){let t=0;const n=e[0].parentNode,i=getComputedStyle(n),o=parseFloat(i.gap)||0;for(let n=0;n<e.length;n++)t+=e[n].offsetWidth+o;return t}Object.defineProperty(t,"__esModule",{value:!0}),t.changeScrollStatus=function changeScrollStatus(e,t){"mousedown"===t.type?(e.classList.add("e-scroll"),e.dataset.pageX=t.pageX):(e.classList.remove("e-scroll","e-scroll-active"),e.dataset.pageX="")},t.setHorizontalScrollAlignment=function setHorizontalScrollAlignment(e){let{element:t,direction:n,justifyCSSVariable:i,horizontalScrollStatus:o}=e;if(!t)return;!function isHorizontalScroll(e,t){return e.clientWidth<getChildrenWidth(e.children)&&"enable"===t}(t,o)?t.style.setProperty(i,""):function initialScrollPosition(e,t,n){const i=elementorFrontend.config.is_rtl;if("end"===t)e.style.setProperty(n,"start"),e.scrollLeft=i?-1*getChildrenWidth(e.children):getChildrenWidth(e.children);else e.style.setProperty(n,"start"),e.scrollLeft=0}(t,n,i)},t.setHorizontalTitleScrollValues=function setHorizontalTitleScrollValues(e,t,n){const i=e.classList.contains("e-scroll"),o="enable"===t,s=e.scrollWidth>e.clientWidth;if(!i||!o||!s)return;n.preventDefault();const r=parseFloat(e.dataset.pageX),l=n.pageX-r;let a=0;a=20<l?5:-20>l?-5:l;e.scrollLeft=e.scrollLeft-a,e.classList.add("e-scroll-active")}},3431:(e,t,n)=>{var i=n(6784);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(166),s=i(n(3556)),r=n(6974);class MegaMenu extends elementorModules.frontend.handlers.NestedTabs{constructor(){super(...arguments),elementorFrontend.isEditMode()&&(this.lifecycleChangeListener=null),this.resizeListener=null,this.prevMouseY=null,this.isKeyboardNavigation=!1}getDefaultSettings(){const e=super.getDefaultSettings();return e.selectors.elementorWidgetWrapper=".elementor-widget-n-menu",e.selectors.widgetContainer=".e-n-menu",e.selectors.dropdownMenuToggle=".e-n-menu-toggle",e.selectors.menuWrapper=".e-n-menu-wrapper",e.selectors.headingContainer=".e-n-menu-heading",e.selectors.menuItem=".e-n-menu-item",e.selectors.tabTitle=".e-n-menu-title",e.selectors.tabTitleText=".e-n-menu-title-text",e.selectors.directTabTitle=":scope > .elementor-widget-container > .e-n-menu > .e-n-menu-wrapper > .e-n-menu-heading > .e-n-menu-item > .e-n-menu-title",e.selectors.tabClickableTitle=".e-n-menu-title.e-click",e.selectors.tabDropdown=".e-n-menu-dropdown-icon",e.selectors.menuContent=".e-n-menu-content",e.selectors.tabContent=".e-n-menu-content > .e-con, .e-n-menu-heading > .e-con",e.selectors.directTabContent=":scope > .elementor-widget-container > .e-n-menu > .e-n-menu-wrapper > .e-n-menu-heading > .e-n-menu-item > .e-n-menu-content > .e-con, :scope > .elementor-widget-container > .e-n-menu > .e-n-menu-wrapper > .e-n-menu-heading > .e-con",e.selectors.tabContentBeforeInterlacing="> .elementor-widget-container > .e-n-menu > .e-n-menu-wrapper > .e-n-menu-heading > .e-con",e.selectors.newContainerAfterRepeaterAction="> .elementor-widget-container > .e-n-menu > .e-n-menu-wrapper > .e-n-menu-heading > .e-con, > .elementor-widget-container > .e-n-menu > .e-n-menu-wrapper > .e-n-menu-heading > .e-n-menu-item > .e-n-menu-content > .e-con:nth-child( 2 )",e.selectors.anchorLink=".e-anchor a",e.classes.anchorItem="e-anchor",e.classes.activeAnchorItem="e-current",e.autoExpand=!1,e.autoFocus=!1,e.ariaAttributes.titleStateAttribute="aria-expanded",e.ariaAttributes.activeTitleSelector='[aria-expanded="true"]',e.postUrl="post-url",e.internalUrl="internal-url",e}getDefaultElements(){const e=super.getDefaultElements(),t=this.getSettings("selectors");return e.$widgetContainer=this.$element.find(t.widgetContainer),e.$dropdownMenuToggle=this.$element.find(t.dropdownMenuToggle),e.$menuWrapper=this.$element.find(t.menuWrapper),e.$menuContent=this.$element.find(t.menuContent),e.$headingContainer=this.$element.find(t.headingContainer),e.$menuItems=this.$element.find(t.menuItem),e.$tabTitles=this.$element.find(t.tabTitle),e.$tabDropdowns=this.$element.find(t.tabDropdown),e.$anchorLink=this.$element.find(t.anchorLink),e.$tabContentsBeforeInterlacing=this.$element.find(t.tabContentBeforeInterlacing),e}setKeyboardNavigation(e){"Tab"===e.key&&(this.isKeyboardNavigation=!0)}dropdownMenuHeightControllerConfig(){const e=this.getSettings("selectors");return{elements:{$element:this.$element,$dropdownMenuContainer:this.$element.find(e.menuWrapper),$menuToggle:this.$element.find(e.dropdownMenuToggle)},attributes:{menuToggleState:"aria-expanded"},settings:{dropdownMenuContainerMaxHeight:"auto",menuHeightCssVarName:"--n-menu-dropdown-content-box-height"}}}handleContentContainerPosition(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.resetContentContainersPosition();const t=this.getSettings("ariaAttributes").activeTitleSelector,n=this.elements.$tabDropdowns.filter(t).attr("data-tab-index");e=e||this.elements.$tabContents.filter(this.getTabContentFilterSelector(n)),e.length&&this.setContentContainerAbsolutePosition(e)}setContentContainerAbsolutePosition(e){const t=this.getElementSettings(),n="fit_to_content"===t.content_width;if((0,o.isMenuInDropdownMode)(t))return;if(n){const t=elementorFrontend.config.is_rtl?"right":"left",n=0<this.getMenuItemContainerAbsolutePosition(e)?this.getMenuItemContainerAbsolutePosition(e):0;e.css(t,n)}const i=this.elements.$headingContainer[0].getBoundingClientRect().height;if(this.shouldPositionContentAbove(e,i)){const t=e[0].getBoundingClientRect();e.css({width:n?"max-content":"","max-width":t.width}),this.elements.$widgetContainer.addClass("content-above")}}getMenuItemContainerAbsolutePosition(e){const t=e.data("tab-index"),n=this.elements.$tabDropdowns.filter(this.getTabTitleFilterSelector(t))[0].closest(this.getSettings("selectors").tabTitle).getBoundingClientRect(),i=e[0].clientWidth;let o=null;switch(this.getElementSettings("content_horizontal_position")){case"left":o=this.getLeftDirectionContainerOffset(i,n);break;case"right":o=this.getRightDirectionContainerOffset(i,n);break;default:o=this.getCenteredContainerOffset(i,n)}return o}getCenteredContainerOffset(e,t){const n=e/2,i=elementorFrontend.elements.$body[0].clientWidth;let o=this.adjustForScrollbarIfNeeded(t.left+t.width/2);elementorFrontend.config.is_rtl&&(o=i-o);let s=o-n;return o+n>i?s=i-e:n>o&&(s=0),s}getLeftDirectionContainerOffset(e,t){return elementorFrontend.config.is_rtl?this.getRtlLeftDirectionContainerOffset(e,t):this.getLtrLeftDirectionContainerOffset(e,t)}getRtlLeftDirectionContainerOffset(e,t){const n=elementorFrontend.elements.$body[0].clientWidth;let i=n-this.adjustForScrollbarIfNeeded(t.left)-e;return-i+e>n&&(i=0),i}getLtrLeftDirectionContainerOffset(e,t){let n=this.adjustForScrollbarIfNeeded(t.left);return n=this.adjustStartOffsetToViewport(n,e),n}getRightDirectionContainerOffset(e,t){return elementorFrontend.config.is_rtl?this.getRtlRightDirectionContainerOffset(e,t):this.getLtrRightDirectionContainerOffset(e,t)}getRtlRightDirectionContainerOffset(e,t){let n=elementorFrontend.elements.$body[0].clientWidth-this.adjustForScrollbarIfNeeded(t.right);return n=this.adjustStartOffsetToViewport(n,e),n}adjustStartOffsetToViewport(e,t){const n=elementorFrontend.elements.$body[0].clientWidth;return e+t>n&&(e=n-t),e}getLtrRightDirectionContainerOffset(e,t){return e>t.right?0:t.right-e}adjustForScrollbarIfNeeded(e){if(elementorFrontend.config.is_rtl&&elementorFrontend.isEditMode()){e-=window.innerWidth-elementorFrontend.elements.$body[0].clientWidth}return e}getMenuContainerOffset(){const e=this.elements.$widgetContainer[0].getBoundingClientRect();return elementorFrontend.config.is_rtl?this.getMenuContainerOffsetRtl(e):e.left}getMenuContainerOffsetRtl(e){const t=elementorFrontend.elements.$body[0].clientWidth;let n=t-e.right;if(elementorFrontend.isEditMode()){n+=window.innerWidth-t}return n}resetContentContainersPosition(){this.elements.$tabContents.css({left:"",right:"",bottom:"",position:"var(--position)","max-width":"",width:"var(--width)"}),this.elements.$widgetContainer.removeClass("content-above")}getTabContentFilterSelector(e){return`[data-tab-index="${e}"]`}isActiveTab(e){return"true"===this.elements.$tabDropdowns.filter('[data-tab-index="'+e+'"]').attr(this.getSettings("ariaAttributes").titleStateAttribute)}activateTab(e){const t=this.getSettings(),n=t.classes.active,i=`.elementor-element-${this.getID()} .e-n-menu .e-n-menu .e-n-menu-dropdown-icon`,o=`.elementor-element-${this.getID()} .e-n-menu .e-n-menu .e-n-menu-content > .e-con`,s=this.elements.$tabDropdowns.filter(this.getTabTitleFilterSelector(e)).not(i),r="show"===t.showTabFn?0:400,l=this.elements.$tabContents.filter(this.getTabContentFilterSelector(e)).not(o);this.addAnimationToContentIfNeeded(e),l[t.showTabFn](r,(()=>this.onShowTabContent(l))),s.attr(this.getTitleActivationAttributes()),s.prev(".e-n-menu-title-container").find("a").attr(this.getTitleActivationAttributes("link")),l.addClass(n),l.css({display:"var(--display)"}),l.removeAttr("display"),elementorFrontend.isEditMode()&&l.length&&this.activeContainerWidthListener(l),this.menuHeightController.reassignMenuHeight(l)}deactivateActiveTab(){const e=this.getSettings(),t=e.classes.active,n=e.ariaAttributes.activeTitleSelector,i="."+t,o=this.elements.$tabDropdowns.filter(n),s=this.elements.$tabContents.filter(i);this.setTabDeactivationAttributes(o),s.removeClass(t),s[e.hideTabFn](0,(()=>this.onHideTabContent(s))),this.removeAnimationFromContentIfNeeded(),elementorFrontend.isEditMode()&&s.length&&this.observedContainer?.unobserve(s[0]),this.menuHeightController.resetMenuHeight(s),this.clickInProgress=!0}getTitleActivationAttributes(){const e={};return"tab"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"tab")&&(e["aria-expanded"]="true"),e}setTabDeactivationAttributes(e){const t=this.getSettings("ariaAttributes").titleStateAttribute;e.attr(`${t}`,"false")}shouldPositionContentAbove(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=e[0].getBoundingClientRect();return this.isContentShorterThanItsTopOffset(n,t)&&this.isContentTallerThanItsBottomOffset(n)}isContentShorterThanItsTopOffset(e,t){return e.height<e.top-t}isContentTallerThanItsBottomOffset(e){return window.innerHeight-e.top<e.height}onShowTabContent(e){this.handleContentContainerPosition(e),super.onShowTabContent(e)}onHideTabContent(){this.elements.$widgetContainer.hasClass("content-above")&&this.resetContentContainersPosition()}changeActiveTab(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.clickInProgress&&elementorFrontend.isEditMode()&&!n)return;const i=this.isActiveTab(e);this.deactivateActiveTab(),(!i||i&&!t)&&(this.clickInProgress=!0,this.activateTab(e)),setTimeout((()=>{this.clickInProgress=!1}))}changeActiveTabByKeyboard(e,t){if(t.widgetId.toString()!==this.getID().toString())return;if(!t.titleIndex)return void this.changeActiveTab("",!0,!0);const n=this.$element.find(`[data-focus-index="${t.titleIndex}"]`),i="a"===n[0].tagName.toLowerCase(),o=this.getSettings("selectors.tabDropdown"),s=i?n.next(o):n,r=this.getTabIndex(s[0]);this.changeActiveTab(r,!0,!0),e.stopPropagation()}onTabClick(e){elementorFrontend.isEditMode()&&e.preventDefault();const t=e?.currentTarget?.classList?.contains("link-only"),n=!this.isNeedToOpenOnClick()&&!this.isKeyboardNavigation;if(t||n)return;const i=this.getSettings("selectors"),o=e?.target?.closest(i.elementorWidgetWrapper)?.getAttribute("data-id");if(o!==this.getID().toString())return;const s=e?.currentTarget,r=s?.querySelector(i.tabDropdown),l=this.getTabIndex(r);this.changeActiveTab(l,!0)}bindEvents(){this.elements.$tabTitles.on(this.getTabEvents()),this.elements.$dropdownMenuToggle.on("click",this.onClickToggleDropdownMenu.bind(this)),this.elements.$tabContents.on(this.getContentEvents()),this.elements.$menuContent.on(this.getContentEvents()),this.elements.$headingContainer.on(this.getHeadingEvents()),elementorFrontend.addListenerOnce(this.getModelCID(),"scroll",elementorFrontend.debounce(this.menuHeightController.reassignMobileMenuHeight.bind(this.menuHeightController),250)),elementorFrontend.elements.$window.on("elementor/nested-tabs/activate",this.reInitSwipers),elementorFrontend.elements.$window.on("elementor/nested-elements/activate-by-keyboard",this.changeActiveTabByKeyboard.bind(this)),elementorFrontend.elements.$window.on("elementor/mega-menu/dropdown-toggle-by-keyboard",this.onClickToggleDropdownMenuByKeyboard.bind(this)),elementorFrontend.elements.$window.on("resize",this.resizeEventHandler.bind(this)),elementorFrontend.isEditMode()&&(this.addChildLifeCycleEventListeners(),elementorFrontend.elements.$window.on("elementor/dynamic/url_change",this.changeMegaMenuTitleContainerTag.bind(this))),elementorFrontend.elements.$window.on("elementor/nested-container/atomic-repeater",this.linkContainer.bind(this))}unbindEvents(){this.elements.$tabTitles.off(),this.elements.$menuContent.off(),this.elements.$tabContents.off(),this.elements.$headingContainer.off(),elementorFrontend.elements.$window.off("resize"),elementorFrontend.isEditMode()&&(this.removeChildLifeCycleEventListeners(),elementorFrontend.elements.$window.on("elementor/dynamic/url_change",this.changeMegaMenuTitleContainerTag.bind(this))),elementorFrontend.elements.$window.off("elementor/nested-tabs/activate",this.reInitSwipers),elementorFrontend.elements.$window.off("elementor/nested-elements/activate-by-keyboard",this.changeActiveTabByKeyboard.bind(this)),elementorFrontend.elements.$window.off("elementor/mega-menu/dropdown-toggle-by-keyboard",this.onClickToggleDropdownMenuByKeyboard.bind(this)),elementorFrontend.elements.$window.off("resize",this.resizeEventHandler.bind(this)),elementorFrontend.elements.$window.off("elementor/nested-container/atomic-repeater",this.linkContainer.bind(this))}resizeEventHandler(){this.resizeListener=this.handleContentContainerPosition(),this.setLayoutType(),this.setTouchMode(),this.menuHeightController.reassignMobileMenuHeight(),this.setScrollPosition();const e=this.getSettings("ariaAttributes").activeTitleSelector,t=this.elements.$tabDropdowns.filter(e).attr("data-tab-index"),n=`.elementor-element-${this.getID()} .e-n-menu .e-n-menu .e-n-menu-content > .e-con`,i=this.elements.$tabContents.filter(this.getTabContentFilterSelector(t)).not(n);this.menuHeightController.resetMenuHeight(i),this.menuHeightController.reassignMenuHeight(i)}addChildLifeCycleEventListeners(){this.lifecycleChangeListener=this.handleContentContainerChildrenChanges.bind(this),window.addEventListener("elementor/editor/element-rendered",this.lifecycleChangeListener),window.addEventListener("elementor/editor/element-destroyed",this.lifecycleChangeListener)}removeChildLifeCycleEventListeners(){window.removeEventListener("elementor/editor/element-rendered",this.lifecycleChangeListener),window.removeEventListener("elementor/editor/element-destroyed",this.lifecycleChangeListener)}handleContentContainerChildrenChanges(e){this.isNestedElementRenderedInContentContainer(e.detail.elementView)&&this.handleContentContainerPosition()}isNestedElementRenderedInContentContainer(e){const t=e?.getContainer();if(!t)return!1;return t.getParentAncestry().some((e=>this.getID().toString()===e.model.get("id").toString()))}getTabEvents(){const e=super.getTabEvents();return this.isNeedToOpenOnClick()?e:this.replaceClickWithHover(e)}getContentEvents(){return this.isNeedToOpenOnClick()?{}:{mouseleave:this.onMouseLeave.bind(this),mousemove:this.trackMousePosition.bind(this)}}isNeedToOpenOnClick(){const e=this.getElementSettings();return this.isEdit||this.isMobileDevice()||"hover"!==e.open_on||"dropdown"===e.item_layout}isMobileDevice(){return["mobile","mobile_extra","tablet","tablet_extra"].includes(elementorFrontend.getCurrentDeviceMode())}replaceClickWithHover(e){return e.mouseenter=this.onMouseTitleEnter.bind(this),e.mouseleave=this.onMouseLeave.bind(this),e.keyup=this.setKeyboardNavigation.bind(this),e}onMouseTitleEnter(e){e.preventDefault();const t=this.getSettings(),n=e?.currentTarget,i=n?.closest(t.selectors.elementorWidgetWrapper)?.getAttribute("data-id");if(this.$element[0].getAttribute("data-id")!==i)return;const o=t.ariaAttributes.titleStateAttribute,s=t.selectors.tabDropdown,r=n?.querySelector(s);if("true"===r?.getAttribute(o))return;const l=r?.getAttribute("data-tab-index");this.changeActiveTab(l,!0)}onClickToggleDropdownMenu(e){this.elements.$widgetContainer.attr("data-layout","dropdown");const t=this.getSettings("ariaAttributes").titleStateAttribute,n="true"===this.elements.$dropdownMenuToggle.attr(t);"boolean"!=typeof e&&(e=!n);const i=e?"true":"false";this.elements.$dropdownMenuToggle.attr(t,i),elementorFrontend.utils.events.dispatch(window,"elementor-pro/mega-menu/dropdown-open"),this.menuHeightController.reassignMobileMenuHeight()}onClickOutsideDropdownMenu(e){if(!this.isNeedToOpenOnClick())return;const t=this.getSettings(),n=t.selectors,i=`.elementor-element-${this.getID()}`,o=`> .e-con.${t.classes.active}`,s=0===this.elements.$menuContent.find(o).length,r=elementorFrontend.isEditMode()&&!document.body.contains(e?.target),l=!!e?.target?.closest(`${i} ${n.widgetContainer}`),a=e?.target?.classList?.contains(n.menuContent.replace(".",""));a?this.deactivateActiveTab():s||l||r||this.deactivateActiveTab()}onClickToggleDropdownMenuByKeyboard(e,t){t.widgetId.toString()===this.getID().toString()&&this.onClickToggleDropdownMenu(t.show)}addAnimationToContentIfNeeded(e){const t=this.getElementSettings("open_animation");if("none"===t||""===t)return;this.elements.$tabContents.filter(this.getTabContentFilterSelector(e)).addClass(`animated ${t}`)}removeAnimationFromContentIfNeeded(){const e=this.getElementSettings("open_animation");"none"!==e&&""!==e&&this.elements.$tabContents.removeClass(`animated ${e}`)}trackMousePosition(e){this.prevMouseY=e?.clientY}isMenuContentHovered(){const e=this.getSettings();return this.$element.find(`${e.selectors.menuContent}:hover`).length>0}didCursorMoveSidewaysOrDown(e){return null!==this.prevMouseY&&e?.clientY>=this.prevMouseY}isHoveredDropdownMenu(e,t){return(!e||!this.didCursorMoveSidewaysOrDown(t))&&this.isMenuContentHovered()}onMouseLeave(e){e.preventDefault();const t=e?.currentTarget?.classList?.contains("e-con");this.isHoveredDropdownMenu(t,e)||this.deactivateActiveTab()}onInit(){if(this.menuHeightController=new elementorProFrontend.utils.DropdownMenuHeightController(this.dropdownMenuHeightControllerConfig()),super.onInit(...arguments),!elementorFrontend.isEditMode()){const e=this.getSettings("classes");this.anchorLinks=new s.default,this.anchorLinks.followMenuAnchors(this.elements.$anchorLink,e),elementorFrontend.elements.$window.on("elementor/dynamic/url_change",this.changeMegaMenuTitleContainerTag.bind(this))}this.menuToggleVisibilityListener(this.elements.$dropdownMenuToggle),this.setScrollPosition(),this.onClickOutsideDropdownMenu=this.onClickOutsideDropdownMenu.bind(this),document.addEventListener("click",this.onClickOutsideDropdownMenu),this.clickInProgress=!1,elementorFrontend.isEditMode()&&!elementorCommon.config.experimentalFeatures.e_nested_atomic_repeaters&&this.interlaceContainers()}interlaceContainers(){const{$tabContentsBeforeInterlacing:e,$menuItems:t}=this.getDefaultElements();e.each(((e,n)=>{t[e].querySelector(".e-n-menu-content").append(n)}))}onDestroy(){document.removeEventListener("click",this.onClickOutsideDropdownMenu),elementorFrontend.elements.$window.off("elementor/dynamic/url_change")}setScrollPosition(){const e={element:this.elements.$headingContainer[0],direction:this.getItemPosition(),justifyCSSVariable:"--n-menu-heading-justify-content",horizontalScrollStatus:this.getHorizontalScrollSetting()};(0,r.setHorizontalScrollAlignment)(e)}getPropsThatTriggerContentPositionCalculations(){return["content_horizontal_position","content_position","item_position_horizontal","content_width","item_layout"]}activeContainerWidthListener(e){let t=0;this.observedContainer=new ResizeObserver((e=>{const n=e[0].borderBoxSize?.[0].inlineSize;n&&n!==t&&(t=n,0!==t&&this.handleContentContainerPosition())})),this.observedContainer.observe(e[0])}menuToggleVisibilityListener(e){let t;this.observedContainer=new ResizeObserver((e=>{const n=e[0].borderBoxSize?.[0].inlineSize;n!==t&&(t=n,this.setLayoutType())})),this.observedContainer.observe(e[0])}onElementChange(e){this.getPropsThatTriggerContentPositionCalculations().includes(e)&&this.handleContentContainerPosition(),this.setLayoutType()}onEditSettingsChange(e,t){this.getSettings().autoFocus&&super.onEditSettingsChange(e,t),this.setLayoutType()}setLayoutType(){const e="none"===this.elements.$dropdownMenuToggle.css("display")?"horizontal":"dropdown";this.elements.$widgetContainer.attr("data-layout",e)}getHeadingEvents(){const e=this.elements.$headingContainer[0];return{mousedown:this.changeScrollStatusAndDispatch.bind(this,e),mouseup:this.changeScrollStatusAndDispatch.bind(this,e),mouseleave:this.changeScrollStatusAndDispatch.bind(this,e),mousemove:this.setHorizontalTitleScrollValuesAndDispatch.bind(this,e)}}getHorizontalScrollSetting(){const e=elementorFrontend.getCurrentDeviceMode();return elementorFrontend.utils.controls.getResponsiveControlValue(this.getElementSettings(),"horizontal_scroll","",e)}getItemPosition(){const e=elementorFrontend.getCurrentDeviceMode();return elementorFrontend.utils.controls.getResponsiveControlValue(this.getElementSettings(),"item_position_horizontal","",e)}changeScrollStatusAndDispatch(e,t){(0,r.changeScrollStatus)(e,t),elementorFrontend.elements.$window.trigger("elementor-pro/mega-menu/heading-mouse-event")}setHorizontalTitleScrollValuesAndDispatch(e,t){(0,r.setHorizontalTitleScrollValues)(e,this.getHorizontalScrollSetting(),t),elementorFrontend.elements.$window.trigger("elementor-pro/mega-menu/heading-mouse-event")}linkContainer(e){const{container:t}=e.detail,n=t.model.get("id"),i=String(this.$element.data("id")),o=t.view.$el;n===i&&(this.updateIndexValues(o),this.updateListeners(o))}updateIndexValues(e){const{selectors:{directTabTitle:t,directTabContent:n}}=this.getDefaultSettings(),i=e[0],o=i.querySelectorAll(n),s=i.querySelectorAll(t),r=this.getSettings(),l=s[0].getAttribute("id").slice(0,-1);s.forEach(((e,t)=>{const n=t+1,i=l+n,s=i.replace("e-n-menu-title-","e-n-menu-content-"),a=i.replace("e-n-menu-title-","e-n-menu-dropdown-icon-");e.setAttribute("id",i),e.querySelector(r.selectors.tabDropdown)?.setAttribute("data-tab-index",n),e.querySelector(r.selectors.tabDropdown)?.setAttribute("id",a),e.querySelector(r.selectors.tabDropdown)?.setAttribute("aria-controls",s),e.querySelector(r.selectors.tabTitleText)?.setAttribute("data-binding-index",n),o[t]?.setAttribute("aria-labelledby",a),o[t]?.setAttribute("data-tab-index",n),o[t]?.setAttribute("id",s)}))}updateListeners(e){const{selectors:{tabClickableTitle:t,tabDropdown:n,tabContent:i,tabTitle:o}}=this.getSettings(),s=e.find(o),r=e.find(t);this.elements.$tabTitles=e.find(t),this.elements.$tabDropdowns=e.find(n),this.elements.$tabContents=e.find(i),s.off(),r.on(this.getTabEvents()),this.clickInProgress=!1}changeMegaMenuTitleContainerTag(e){const{element:t,actionName:n,value:i}=e.detail,o=t.parentNode,s=o.parentNode,r=this.maybeCreateNewElement(o,i),l=this.maybeReplaceMenuItemTitleContent(o,r,s),a=t.dataset?.currentUrl||null;this.maybeUpdateNewElementsHref(i,l),this.eCurrentClassHandler(n,s,a===i)}maybeReplaceMenuItemTitleContent(e,t,n){return t?(Array.from(e.attributes).forEach((e=>{t.setAttribute(e.name,e.value)})),"A"===t.tagName?t.classList.add("e-link","e-focus"):"DIV"===t.tagName&&t.classList.remove("e-link","e-focus"),t.innerHTML=e.innerHTML,n.replaceChild(t,e),t):e}maybeCreateNewElement(e,t){return t?t&&"DIV"===e.tagName?document.createElement("a"):void 0:document.createElement("div")}maybeUpdateNewElementsHref(e,t){e?t.setAttribute("href",e):t.removeAttribute("href")}eCurrentClassHandler(e,t,n){const i=this.getSettings(),{classes:{activeAnchorItem:o},postUrl:s,internalUrl:r}=i;switch(e){case s:t.classList.add(o);break;case r:n?t.classList.add(o):t.classList.remove(o);break;default:t.classList.contains(o)&&s!==e&&t.classList.remove(o)}}}t.default=MegaMenu},166:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isMenuInDropdownMode=function isMenuInDropdownMode(e){if("dropdown"===e.item_layout)return!0;const t=elementorFrontend.breakpoints.getActiveBreakpointsList({withDesktop:!0}),n=t.indexOf(e.breakpoint_selector);return t.indexOf(elementorFrontend.getCurrentDeviceMode())<=n}}}]);
[+]
..
[-] off-canvas.bc9ebf2aa5a940324b7b.bundle.min.js
[edit]
[-] editor.js
[edit]
[-] gallery.57d49c99a6212add88bf.bundle.js
[edit]
[-] elements-handlers.js
[edit]
[-] product-add-to-cart.d5883897e035f9c53c5e.bundle.js
[edit]
[-] progress-tracker.8cccdda9737c272489fc.bundle.min.js
[edit]
[-] code-highlight.d86022c8668c4b072592.bundle.min.js
[edit]
[+]
packages
[-] frontend.js
[edit]
[-] table-of-contents.461c83bbf6bdd6aceaf2.bundle.js
[edit]
[-] display-conditions.min.js
[edit]
[-] elements-handlers.min.js
[edit]
[-] gallery.572e8a2bca1a0b7e4f42.bundle.min.js
[edit]
[-] qunit-tests.js
[edit]
[-] popup.f7b15b2ca565b152bf98.bundle.min.js
[edit]
[-] social.ac16c075939dcb93f70c.bundle.js
[edit]
[-] loop-carousel.f8067ec0c24b628c786e.bundle.min.js
[edit]
[-] mega-menu-editor.da8ac1f6ef887046ecf0.bundle.min.js
[edit]
[-] admin.js
[edit]
[-] loop.8130a6b4d3121c5aaaae.bundle.min.js
[edit]
[-] search.8457dd916c5a97a6dc73.bundle.js
[edit]
[-] mega-menu-stretch-content.0d76e4a3b7bf65ff6f9b.bundle.js
[edit]
[-] nested-carousel-editor.6d7500036d0766bbe2fc.bundle.min.js
[edit]
[-] menu-title-keyboard-handler.77332e668c3cf609c924.bundle.js
[edit]
[-] off-canvas-editor.0b71c4c17860dfe25d59.bundle.min.js
[edit]
[-] load-more.376b5bcb2e56386f470e.bundle.min.js
[edit]
[-] archive-posts.6e398ddd4a81a78bcea3.bundle.js
[edit]
[-] editor.min.js
[edit]
[-] mega-menu-stretch-content.480e081cebe071d683e8.bundle.min.js
[edit]
[-] jszip.vendor.eba4ace24dcc63eadac0.bundle.min.js
[edit]
[-] stripe-button.61d93594d6b7865f8b3f.bundle.min.js
[edit]
[-] portfolio.5727b56368be256d0893.bundle.js
[edit]
[-] mega-menu.cd787a5946bfee971978.bundle.min.js
[edit]
[-] carousel.298f1fc9c115422aad0e.bundle.js
[edit]
[-] custom-code.min.js
[edit]
[-] off-canvas.321e93388904636cf8cf.bundle.js
[edit]
[-] nav-menu.997320c05a0d163c76e8.bundle.min.js
[edit]
[-] contact-buttons.5398b922eb2a8fb72fd3.bundle.min.js
[edit]
[-] load-more.141d7f9a8572a75a1d28.bundle.js
[edit]
[-] contact-buttons-var-10.fc383e580d728636b0fa.bundle.js
[edit]
[-] floating-bars-var-2.c6ca10c575bf96977799.bundle.js
[edit]
[+]
notes
[-] app.js
[edit]
[-] e8a5a32d9cd9fad1244f.bundle.js
[edit]
[-] editor.min.js.LICENSE.txt
[edit]
[-] slides.c0029640cbdb48199471.bundle.min.js
[edit]
[-] share-buttons.63d984f8c96d1e053bc0.bundle.min.js
[edit]
[-] carousel.3620fca501cb18163600.bundle.min.js
[edit]
[-] frontend.min.js
[edit]
[-] stripe-button.cf3f67d6b95e0138bb6b.bundle.js
[edit]
[-] paypal-button.f4f64e46173f50701949.bundle.min.js
[edit]
[-] form.a8f0864f4b4fda696ad1.bundle.min.js
[edit]
[-] lottie.e74a53bfa4c0bd939250.bundle.min.js
[edit]
[-] ajax-pagination.2090b5f4906bcda1dcc2.bundle.min.js
[edit]
[-] woocommerce-cart.d0d01530f5be6736b5d2.bundle.min.js
[edit]
[-] form-submission-admin.js
[edit]
[-] admin.min.js
[edit]
[-] animated-headline.3eca5f2deb261b97d554.bundle.js
[edit]
[-] woocommerce-purchase-summary.3676ccd8c29ef0924b84.bundle.min.js
[edit]
[-] progress-tracker.fd1d31a26340ed74e10a.bundle.js
[edit]
[-] gutenberg-woocommerce-notice.js
[edit]
[-] taxonomy-filter.e839f2be32b7ea832b34.bundle.min.js
[edit]
[-] 36c2990924ec9596ffad.bundle.js
[edit]
[-] nested-carousel-editor.0df35e0e1a284d4bd18b.bundle.js
[edit]
[-] video-playlist.af20fd9fd8778929829e.bundle.min.js
[edit]
[-] nested-carousel.e282a75f865e207e8031.bundle.js
[edit]
[-] ajax-pagination.2390838f542f1a8d5ed4.bundle.js
[edit]
[-] preview.js
[edit]
[-] paypal-button.55ffb013a3fe565f55a5.bundle.js
[edit]
[-] search.9686bb2092445d2ad477.bundle.min.js
[edit]
[-] nav-menu.d3c84615b4828c150c34.bundle.js
[edit]
[-] video-playlist.9e1bbc4fcb37864c89d6.bundle.js
[edit]
[-] share-buttons.fda49c1691f4a352c7ef.bundle.js
[edit]
[-] screenshot.min.js
[edit]
[-] jszip.vendor.eba4ace24dcc63eadac0.bundle.min.js.LICENSE.txt
[edit]
[-] hotspot.fa04300164c35a866a51.bundle.min.js
[edit]
[-] c62a5d15e98a98580947.bundle.js
[edit]
[-] woocommerce-my-account.4e940a8b4a52d1c98c5c.bundle.min.js
[edit]
[-] woocommerce-checkout-page.10d97c3a8cb77aebc1bf.bundle.js
[edit]
[-] product-add-to-cart.51a22e1fbd8f914ab3d5.bundle.min.js
[edit]
[-] off-canvas-editor.3501c11d63bc4f4d5b89.bundle.js
[edit]
[-] portfolio.4cd5da34009c30cb5d70.bundle.min.js
[edit]
[-] woocommerce-notices.ee407e8319d2ee060119.bundle.js
[edit]
[-] hotspot.d513dd152bf605a2ffbf.bundle.js
[edit]
[-] page-transitions.js
[edit]
[-] menu-title-keyboard-handler.dff562edd49e93d1658e.bundle.min.js
[edit]
[-] webpack-pro.runtime.js
[edit]
[-] mega-menu-editor.905833fcb6c66b951d7e.bundle.js
[edit]
[-] popup.996738ad83c089bcc0b9.bundle.js
[edit]
[-] form.3b797cf593ad0ec04b83.bundle.js
[edit]
[-] custom-code.js
[edit]
[-] search-form.8941aba5c12cdb05fb7c.bundle.js
[edit]
[-] posts.e99f84b83c36d4568ffe.bundle.js
[edit]
[-] floating-bars-var-2.6e9b0bce703a2a6f2410.bundle.min.js
[edit]
[-] countdown.6e87ca40d36793d92aea.bundle.js
[edit]
[-] gutenberg-woocommerce-notice.min.js
[edit]
[-] woocommerce-my-account.7a9d36b2c12b970c6616.bundle.js
[edit]
[-] loop-carousel.5108cb72ebb124297adb.bundle.js
[edit]
[-] search-form.b7065999d77832a1b764.bundle.min.js
[edit]
[-] woocommerce-menu-cart.eb61fe086245485310a4.bundle.min.js
[edit]
[-] animated-headline.73c41dd605898fe2d075.bundle.min.js
[edit]
[-] slides.bcd16bbde90338846bd7.bundle.js
[edit]
[-] contact-buttons.b9e4576d72aaeeaa8e80.bundle.js
[edit]
[-] form-submission-admin.min.js
[edit]
[-] app.min.js
[edit]
[-] nested-carousel.10dc0cdc82d55919a863.bundle.min.js
[edit]
[-] archive-posts.16a93245d08246e5e540.bundle.min.js
[edit]
[-] preview.min.js
[edit]
[-] woocommerce-menu-cart.81f5bafc26b94cc86238.bundle.js
[edit]
[-] display-conditions.js
[edit]
[-] floating-bars-var-3.f126e30880b01ca9a308.bundle.js
[edit]
[-] woocommerce-cart.79b5dc500681930471c6.bundle.js
[edit]
[-] contact-buttons-var-10.83d4216a4d1a44095e5c.bundle.min.js
[edit]
[-] code-highlight.d4867c919d0858f748df.bundle.js
[edit]
[-] media-carousel.afbaabb756a7c18ddb09.bundle.min.js
[edit]
[-] social.f215e8a3efafbdbeb7ef.bundle.min.js
[edit]
[-] webpack-pro.runtime.min.js
[edit]
[-] screenshot.js
[edit]
[-] media-carousel.04412cb9b4479aa37408.bundle.js
[edit]
[-] 52e03298e7f0852c96a1.bundle.min.js
[edit]
[-] posts.aec59265318492b89cb5.bundle.min.js
[edit]
[-] woocommerce-purchase-summary.c8767542fa302a7f351f.bundle.js
[edit]
[-] qunit-tests.min.js
[edit]
[-] woocommerce-checkout-page.776b4cec45070fe32636.bundle.min.js
[edit]
[-] countdown.0e9e688751d29d07a8d3.bundle.min.js
[edit]
[-] d241154d3774d66da9eb.bundle.min.js
[edit]
[-] jszip.vendor.a3c65615c1de5560962d.bundle.js
[edit]
[-] loop.da32028bc945271f8c7a.bundle.js
[edit]
[-] table-of-contents.1cfda3ead7ac082861dd.bundle.min.js
[edit]
[-] loop-filter-editor.46a4c013b80a381a50c9.bundle.js
[edit]
[-] taxonomy-filter.ce05524d53c2d4c5aa24.bundle.js
[edit]
[-] woocommerce-notices.bcee9b5e1c8f65ac7927.bundle.min.js
[edit]
[-] floating-bars-var-3.e3ae97fbef2242a8b036.bundle.min.js
[edit]
[-] page-transitions.min.js
[edit]
[-] loop-filter-editor.67dfa5d044d7bd86bd6f.bundle.min.js
[edit]
[-] mega-menu.271d46d2e5a8185428d0.bundle.js
[edit]
[-] lottie.a02a01f29c0733918ac7.bundle.js
[edit]
[-] 52e03298e7f0852c96a1.bundle.min.js.LICENSE.txt
[edit]