text: /*! elementor-pro - v3.2.2 - 05-05-2021 */
  (self.webpackChunkelementor_pro=self.webpackChunkelementor_pro||[]).push([[838],{5791:(e,t,n)=>{"use strict";var i=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0;var s=i(n(3452));n(513),n(1954);var a=i(n(1959)),l=i(n(9041)),o=i(n(6700)),r=i(n(4263)),c=i(n(7371)),h=i(n(8537)),d=function(e){(0,c.default)(TOCHandler,e);var t=(0,h.default)(TOCHandler);function TOCHandler(){return(0,a.default)(this,TOCHandler),t.apply(this,arguments)}return(0,l.default)(TOCHandler,[{key:"getDefaultSettings",value:function getDefaultSettings(){return{selectors:{widgetContainer:".elementor-widget-container",postContentContainer:'.elementor:not([data-elementor-type="header"]):not([data-elementor-type="footer"]):not([data-elementor-type="popup"])',expandButton:".elementor-toc__toggle-button--expand",collapseButton:".elementor-toc__toggle-button--collapse",body:".elementor-toc__body",headerTitle:".elementor-toc__header-title"},classes:{anchor:"elementor-menu-anchor",listWrapper:"elementor-toc__list-wrapper",listItem:"elementor-toc__list-item",listTextWrapper:"elementor-toc__list-item-text-wrapper",firstLevelListItem:"elementor-toc__top-level",listItemText:"elementor-toc__list-item-text",activeItem:"elementor-item-active",headingAnchor:"elementor-toc__heading-anchor",collapsed:"elementor-toc--collapsed"},listWrapperTag:"numbers"===this.getElementSettings().marker_view?"ol":"ul"}}},{key:"getDefaultElements",value:function getDefaultElements(){var e=this.getSettings();return{$pageContainer:this.getContainer(),$widgetContainer:this.$element.find(e.selectors.widgetContainer),$expandButton:this.$element.find(e.selectors.expandButton),$collapseButton:this.$element.find(e.selectors.collapseButton),$tocBody:this.$element.find(e.selectors.body),$listItems:this.$element.find("."+e.classes.listItem)}}},{key:"getContainer",value:function getContainer(){var e=this.getSettings(),t=this.getElementSettings();if(t.container)return jQuery(t.container);var n=this.$element.parents(".elementor");return"popup"===n.attr("data-elementor-type")?n:jQuery(e.selectors.postContentContainer)}},{key:"bindEvents",value:function bindEvents(){var e=this,t=this.getElementSettings();t.minimize_box&&(this.elements.$expandButton.on("click",(function(){return e.expandBox()})),this.elements.$collapseButton.on("click",(function(){return e.collapseBox()}))),t.collapse_subitems&&this.elements.$listItems.on("hover",(function(e){return jQuery(e.target).slideToggle()}))}},{key:"getHeadings",value:function getHeadings(){var e=this.getElementSettings(),t=e.headings_by_tags.join(","),n=this.getSettings("selectors"),i=e.exclude_headings_by_selector;return this.elements.$pageContainer.find(t).not(n.headerTitle).filter((function(e,t){return!jQuery(t).closest(i).length}))}},{key:"addAnchorsBeforeHeadings",value:function addAnchorsBeforeHeadings(){var e=this,t=this.getSettings("classes");this.elements.$headings.before((function(n){if(!jQuery(e.elements.$headings[n]).data("hasOwnID"))return'<span id="'.concat(t.headingAnchor,"-").concat(n,'" class="').concat(t.anchor,' "></span>')}))}},{key:"activateItem",value:function activateItem(e){var t,n=this.getSettings("classes");(this.deactivateActiveItem(e),e.addClass(n.activeItem),this.$activeItem=e,this.getElementSettings("collapse_subitems"))&&((t=e.hasClass(n.firstLevelListItem)?e.parent().next():e.parents("."+n.listWrapper).eq(-2)).length?(this.$activeList=t,this.$activeList.stop().slideDown()):delete this.$activeList)}},{key:"deactivateActiveItem",value:function deactivateActiveItem(e){if(this.$activeItem&&!this.$activeItem.is(e)){var t=this.getSettings().classes;this.$activeItem.removeClass(t.activeItem),!this.$activeList||e&&this.$activeList[0].contains(e[0])||this.$activeList.slideUp()}}},{key:"followAnchor",value:function followAnchor(e,t){var n,i=this,a=e[0].hash;try{n=jQuery(decodeURIComponent(a))}catch(e){return}elementorFrontend.waypoint(n,(function(s){if(!i.itemClicked){var a=n.attr("id");"down"===s?(i.viewportItems[a]=!0,i.activateItem(e)):(delete i.viewportItems[a],i.activateItem(i.$listItemTexts.eq(t-1)))}}),{offset:"bottom-in-view",triggerOnce:!1}),elementorFrontend.waypoint(n,(function(a){if(!i.itemClicked){var l=n.attr("id");"down"===a?(delete i.viewportItems[l],(0,s.default)(i.viewportItems).length&&i.activateItem(i.$listItemTexts.eq(t+1))):(i.viewportItems[l]=!0,i.activateItem(e))}}),{offset:0,triggerOnce:!1})}},{key:"followAnchors",value:function followAnchors(){var e=this;this.$listItemTexts.each((function(t,n){return e.followAnchor(jQuery(n),t)}))}},{key:"populateTOC",value:function populateTOC(){this.listItemPointer=0,this.getElementSettings().hierarchical_view?this.createNestedList():this.createFlatList(),this.$listItemTexts=this.$element.find(".elementor-toc__list-item-text"),this.$listItemTexts.on("click",this.onListItemClick.bind(this)),elementorFrontend.isEditMode()||this.followAnchors()}},{key:"createNestedList",value:function createNestedList(){var e=this;this.headingsData.forEach((function(t,n){t.level=0;for(var i=n-1;i>=0;i--){var s=e.headingsData[i];if(s.tag<=t.tag){t.level=s.level,s.tag<t.tag&&t.level++;break}}})),this.elements.$tocBody.html(this.getNestedLevel(0))}},{key:"createFlatList",value:function createFlatList(){this.elements.$tocBody.html(this.getNestedLevel())}},{key:"getNestedLevel",value:function getNestedLevel(e){for(var t=this.getSettings(),n=this.getElementSettings(),i=this.getElementSettings("icon"),s="<".concat(t.listWrapperTag,' class="').concat(t.classes.listWrapper,'">');this.listItemPointer<this.headingsData.length;){var a=this.headingsData[this.listItemPointer],l=t.classes.listItemText;if(0===a.level&&(l+=" "+t.classes.firstLevelListItem),e>a.level)break;if(e===a.level){s+='<li class="'.concat(t.classes.listItem,'">'),s+='<div class="'.concat(t.classes.listTextWrapper,'">');var o='<a href="#'.concat(a.anchorLink,'" class="').concat(l,'">').concat(a.text,"</a>");"bullets"===n.marker_view&&i&&(o='<i class="'.concat(i.value,'"></i>').concat(o)),s+=o,s+="</div>",this.listItemPointer++;var r=this.headingsData[this.listItemPointer];r&&e<r.level&&(s+=this.getNestedLevel(r.level)),s+="</li>"}}return s+="</".concat(t.listWrapperTag,">")}},{key:"handleNoHeadingsFound",value:function handleNoHeadingsFound(){var e=elementorProFrontend.config.i18n.toc_no_headings_found;return elementorFrontend.isEditMode()&&(e=elementorPro.translate("toc_no_headings_found")),this.elements.$tocBody.html(e)}},{key:"collapseOnInit",value:function collapseOnInit(){var e=this.getElementSettings("minimized_on"),t=elementorFrontend.getCurrentDeviceMode();("tablet"===e&&"desktop"!==t||"mobile"===e&&"mobile"===t)&&this.collapseBox()}},{key:"getHeadingAnchorLink",value:function getHeadingAnchorLink(e,t){var n=this.elements.$headings[e].id,i=this.elements.$headings[e].closest(".elementor-widget").id,s="";return n?s=n:i&&(s=i),n||i?jQuery(this.elements.$headings[e]).data("hasOwnID",!0):s="".concat(t.headingAnchor,"-").concat(e),s}},{key:"setHeadingsData",value:function setHeadingsData(){var e=this;this.headingsData=[];var t=this.getSettings("classes");this.elements.$headings.each((function(n,i){var s=e.getHeadingAnchorLink(n,t);e.headingsData.push({tag:+i.nodeName.slice(1),text:i.textContent,anchorLink:s})}))}},{key:"run",value:function run(){if(this.elements.$headings=this.getHeadings(),!this.elements.$headings.length)return this.handleNoHeadingsFound();this.setHeadingsData(),elementorFrontend.isEditMode()||this.addAnchorsBeforeHeadings(),this.populateTOC(),this.getElementSettings("minimize_box")&&this.collapseOnInit()}},{key:"expandBox",value:function expandBox(){var e=this.getCurrentDeviceSetting("min_height");this.$element.removeClass(this.getSettings("classes.collapsed")),this.elements.$tocBody.slideDown(),this.elements.$widgetContainer.css("min-height",e.size+e.unit)}},{key:"collapseBox",value:function collapseBox(){this.$element.addClass(this.getSettings("classes.collapsed")),this.elements.$tocBody.slideUp(),this.elements.$widgetContainer.css("min-height","0px")}},{key:"onInit",value:function onInit(){for(var e,t=this,n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];(e=(0,o.default)((0,r.default)(TOCHandler.prototype),"onInit",this)).call.apply(e,[this].concat(i)),this.viewportItems=[],jQuery((function(){return t.run()}))}},{key:"onListItemClick",value:function onListItemClick(e){var t=this;this.itemClicked=!0,setTimeout((function(){return t.itemClicked=!1}),2e3);var n,i=jQuery(e.target),s=i.parent().next(),a=this.getElementSettings("collapse_subitems");a&&i.hasClass(this.getSettings("classes.firstLevelListItem"))&&s.is(":visible")&&(n=!0),this.activateItem(i),a&&n&&s.slideUp()}}]),TOCHandler}(elementorModules.frontend.handlers.Base);t.default=d},5776:(e,t,n)=>{var i=n(5772),s=n(8625),a=n(1622),l=/"/g,createHTML=function(e,t,n,i){var s=String(a(e)),o="<"+t;return""!==n&&(o+=" "+n+'="'+String(i).replace(l,"&quot;")+'"'),o+">"+s+"</"+t+">"};e.exports=function(e,t){var n={};n[e]=t(createHTML),i(i.P+i.F*s((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})),"String",n)}},513:(e,t,n)=>{"use strict";n(5776)("anchor",(function(e){return function anchor(t){return e(this,"a","name",t)}}))}}]);