Elementor Essential Addons - Version 4.0.3

Version Description

  • 11/06/2020 =
  • Fixed: EA Filterable Gallery Image Overlapping issue with Lazyload- WP Rocket
  • Fixed: EA Feature List Default Arrow Indicator Position issue
  • Fixed: EA Table of Content appearing at the bottom for Gutenberg posts
  • Fixed: EA Post Grid issue with Load More 'Grid' layout becoming Masonry
  • Fixed: EA Post Grid issue with PressForward plugin
  • Fixed: EA Sticky Video Icon overlapping issue
  • Few minor bugfix and improvements
Download this release

Release Info

Developer re_enter_rupok
Plugin Icon 128x128 Elementor Essential Addons
Version 4.0.3
Comparing to
See all releases

Code changes from version 4.0.2 to 4.0.3

assets/front-end/js/view/sticky-video.js CHANGED
@@ -93,7 +93,7 @@
93
  /*! no static exports found */
94
  /***/ (function(module, exports) {
95
 
96
- eval("var eaelsvPosition = '';\nvar eaelsvWidth = 0;\nvar eaelsvHeight = 0;\nvar eaelsvDomHeight = 0;\nvar videoIsActive = 'off';\nvar eaelMakeItSticky = 0;\nvar scrollHeight = 0;\njQuery(window).on('elementor/frontend/init', function () {\n if (isEditMode) {\n elementor.hooks.addAction('panel/open_editor/widget/eael-sticky-video', function (panel, model, view) {\n var interval;\n model.attributes.settings.on('change:eaelsv_sticky_width', function () {\n clearTimeout(interval);\n interval = setTimeout(function () {\n var height = Math.ceil(model.getSetting('eaelsv_sticky_width') / 1.78);\n model.attributes.settings.attributes.eaelsv_sticky_height = height;\n panel.el.querySelector('[data-setting=\"eaelsv_sticky_height\"]').value = height;\n }, 250);\n });\n model.attributes.settings.on('change:eaelsv_sticky_height', function () {\n clearTimeout(interval);\n interval = setTimeout(function () {\n var width = Math.ceil(model.getSetting('eaelsv_sticky_height') * 1.78);\n model.attributes.settings.attributes.eaelsv_sticky_width = width;\n panel.el.querySelector('[data-setting=\"eaelsv_sticky_width\"]').value = width;\n }, 250);\n });\n });\n }\n\n elementorFrontend.hooks.addAction('frontend/element_ready/eael-sticky-video.default', function ($scope, $) {\n $('.eaelsv-sticky-player-close', $scope).hide();\n var element = $scope.find('.eael-sticky-video-player2');\n var sticky = '';\n var autoplay = '';\n var overlay = '';\n sticky = element.data('sticky');\n autoplay = element.data('autoplay');\n eaelsvPosition = element.data('position');\n eaelsvHeight = element.data('sheight');\n eaelsvWidth = element.data('swidth');\n overlay = element.data('overlay');\n scrollHeight = element.data('scroll_height');\n PositionStickyPlayer(eaelsvPosition, eaelsvHeight, eaelsvWidth);\n var playerAbc = new Plyr('#eaelsv-player-' + $scope.data('id')); // If element is Sticky video\n\n if (overlay === 'no') {\n // If autoplay is enable\n if ('yes' === autoplay && sticky === 'yes') {\n eaelsvDomHeight = GetDomElementHeight(element);\n element.attr('id', 'videobox');\n videoIsActive = 'on'; // When play event is cliked\n // Do the sticky process\n\n PlayerPlay(playerAbc, element);\n }\n } // Overlay Operation Started\n\n\n if (overlay === 'yes') {\n var ovrlyElmnt = element.prev();\n videoIsActive = 'off';\n $(ovrlyElmnt).on('click', function () {\n $(this).css('display', 'none');\n\n if ($(this).next().data('autoplay') === 'yes') {\n playerAbc.restart();\n eaelsvDomHeight = GetDomElementHeight(this);\n\n if (sticky === 'yes') {\n $(this).next().attr('id', 'videobox');\n videoIsActive = 'on';\n }\n }\n });\n }\n\n playerAbc.on('pause', function (event) {\n videoIsActive = 'off';\n });\n playerAbc.on('play', function (event) {\n videoIsActive = 'on';\n });\n $('.eaelsv-sticky-player-close').on('click', function () {\n element.removeClass('out').addClass('in');\n $('.eael-sticky-video-player2').removeAttr('style');\n videoIsActive = 'off';\n });\n element.parent().css('height', element.height() + 'px');\n $(window).resize(function () {\n element.parent().css('height', element.height() + 'px');\n });\n });\n});\njQuery(window).scroll(function () {\n var scrollTop = jQuery(window).scrollTop();\n var scrollBottom = jQuery(document).height() - scrollTop;\n\n if (scrollBottom > jQuery(window).height() + 400) {\n if (scrollTop >= eaelsvDomHeight) {\n if (videoIsActive == 'on') {\n jQuery('#videobox').find('.eaelsv-sticky-player-close').css('display', 'block');\n jQuery('#videobox').removeClass('in').addClass('out');\n PositionStickyPlayer(eaelsvPosition, eaelsvHeight, eaelsvWidth);\n }\n } else {\n jQuery('.eaelsv-sticky-player-close').hide();\n jQuery('#videobox').removeClass('out').addClass('in');\n jQuery('.eael-sticky-video-player2').removeAttr('style');\n }\n }\n});\n\nfunction GetDomElementHeight(elem) {\n var contentHeight = jQuery(elem).parent().height();\n var expHeight = scrollHeight * contentHeight / 100;\n var hght = jQuery(elem).parent().offset().top + expHeight;\n return hght;\n}\n\nfunction PositionStickyPlayer(p, h, w) {\n if (p == 'top-left') {\n jQuery('.eael-sticky-video-player2.out').css('top', '40px');\n jQuery('.eael-sticky-video-player2.out').css('left', '40px');\n }\n\n if (p == 'top-right') {\n jQuery('.eael-sticky-video-player2.out').css('top', '40px');\n jQuery('.eael-sticky-video-player2.out').css('right', '40px');\n }\n\n if (p == 'bottom-right') {\n jQuery('.eael-sticky-video-player2.out').css('bottom', '40px');\n jQuery('.eael-sticky-video-player2.out').css('right', '40px');\n }\n\n if (p == 'bottom-left') {\n jQuery('.eael-sticky-video-player2.out').css('bottom', '40px');\n jQuery('.eael-sticky-video-player2.out').css('left', '40px');\n }\n\n jQuery('.eael-sticky-video-player2.out').css('width', w + 'px');\n jQuery('.eael-sticky-video-player2.out').css('height', h + 'px');\n}\n\nfunction PlayerPlay(a, b) {\n a.on('play', function (event) {\n eaelsvDomHeight = GetDomElementHeight(b);\n jQuery('.eael-sticky-video-player2').removeAttr('id');\n jQuery('.eael-sticky-video-player2').removeClass('out');\n b.attr('id', 'videobox');\n videoIsActive = 'on';\n eaelsvPosition = b.data('position');\n eaelsvHeight = b.data('sheight');\n eaelsvWidth = b.data('swidth');\n });\n}\n\nfunction RunStickyPlayer(elem) {\n var ovrplyer = new Plyr('#' + elem);\n ovrplyer.start();\n}\n\n//# sourceURL=webpack:///./src/js/view/sticky-video.js?");
97
 
98
  /***/ })
99
 
93
  /*! no static exports found */
94
  /***/ (function(module, exports) {
95
 
96
+ eval("var eaelsvPosition = '';\nvar eaelsvWidth = 0;\nvar eaelsvHeight = 0;\nvar eaelsvDomHeight = 0;\nvar videoIsActive = 'off';\nvar eaelMakeItSticky = 0;\nvar scrollHeight = 0;\njQuery(window).on('elementor/frontend/init', function () {\n if (isEditMode) {\n elementor.hooks.addAction('panel/open_editor/widget/eael-sticky-video', function (panel, model, view) {\n var interval;\n model.attributes.settings.on('change:eaelsv_sticky_width', function () {\n clearTimeout(interval);\n interval = setTimeout(function () {\n var height = Math.ceil(model.getSetting('eaelsv_sticky_width') / 1.78);\n model.attributes.settings.attributes.eaelsv_sticky_height = height;\n panel.el.querySelector('[data-setting=\"eaelsv_sticky_height\"]').value = height;\n }, 250);\n });\n model.attributes.settings.on('change:eaelsv_sticky_height', function () {\n clearTimeout(interval);\n interval = setTimeout(function () {\n var width = Math.ceil(model.getSetting('eaelsv_sticky_height') * 1.78);\n model.attributes.settings.attributes.eaelsv_sticky_width = width;\n panel.el.querySelector('[data-setting=\"eaelsv_sticky_width\"]').value = width;\n }, 250);\n });\n });\n }\n\n elementorFrontend.hooks.addAction('frontend/element_ready/eael-sticky-video.default', function ($scope, $) {\n $('.eaelsv-sticky-player-close', $scope).hide();\n var element = $scope.find('.eael-sticky-video-player2');\n var sticky = '';\n var autoplay = '';\n var overlay = '';\n sticky = element.data('sticky');\n autoplay = element.data('autoplay');\n eaelsvPosition = element.data('position');\n eaelsvHeight = element.data('sheight');\n eaelsvWidth = element.data('swidth');\n overlay = element.data('overlay');\n scrollHeight = element.data('scroll_height');\n PositionStickyPlayer(eaelsvPosition, eaelsvHeight, eaelsvWidth);\n var playerAbc = new Plyr('#eaelsv-player-' + $scope.data('id')); // If element is Sticky video\n\n if (overlay === 'no') {\n // If autoplay is enable\n if ('yes' === autoplay && sticky === 'yes') {\n eaelsvDomHeight = GetDomElementHeight(element);\n element.attr('id', 'videobox');\n videoIsActive = 'on'; // When play event is cliked\n // Do the sticky process\n\n PlayerPlay(playerAbc, element);\n }\n } // Overlay Operation Started\n\n\n if (overlay === 'yes') {\n var ovrlyElmnt = element.prev();\n videoIsActive = 'off';\n $(ovrlyElmnt).on('click', function () {\n $('.eael-sticky-video-wrapper > i').hide();\n $(this).css('display', 'none');\n\n if ($(this).next().data('autoplay') === 'yes') {\n playerAbc.restart();\n eaelsvDomHeight = GetDomElementHeight(this);\n\n if (sticky === 'yes') {\n $(this).next().attr('id', 'videobox');\n videoIsActive = 'on';\n }\n }\n });\n }\n\n playerAbc.on('pause', function (event) {\n videoIsActive = 'off';\n });\n playerAbc.on('play', function (event) {\n videoIsActive = 'on';\n });\n $('.eaelsv-sticky-player-close').on('click', function () {\n element.removeClass('out').addClass('in');\n $('.eael-sticky-video-player2').removeAttr('style');\n videoIsActive = 'off';\n });\n element.parent().css('height', element.height() + 'px');\n $(window).resize(function () {\n element.parent().css('height', element.height() + 'px');\n });\n });\n});\njQuery(window).scroll(function () {\n var scrollTop = jQuery(window).scrollTop();\n var scrollBottom = jQuery(document).height() - scrollTop;\n\n if (scrollBottom > jQuery(window).height() + 400) {\n if (scrollTop >= eaelsvDomHeight) {\n if (videoIsActive == 'on') {\n jQuery('#videobox').find('.eaelsv-sticky-player-close').css('display', 'block');\n jQuery('#videobox').removeClass('in').addClass('out');\n PositionStickyPlayer(eaelsvPosition, eaelsvHeight, eaelsvWidth);\n }\n } else {\n jQuery('.eaelsv-sticky-player-close').hide();\n jQuery('#videobox').removeClass('out').addClass('in');\n jQuery('.eael-sticky-video-player2').removeAttr('style');\n }\n }\n});\n\nfunction GetDomElementHeight(elem) {\n var contentHeight = jQuery(elem).parent().height();\n var expHeight = scrollHeight * contentHeight / 100;\n var hght = jQuery(elem).parent().offset().top + expHeight;\n return hght;\n}\n\nfunction PositionStickyPlayer(p, h, w) {\n if (p == 'top-left') {\n jQuery('.eael-sticky-video-player2.out').css('top', '40px');\n jQuery('.eael-sticky-video-player2.out').css('left', '40px');\n }\n\n if (p == 'top-right') {\n jQuery('.eael-sticky-video-player2.out').css('top', '40px');\n jQuery('.eael-sticky-video-player2.out').css('right', '40px');\n }\n\n if (p == 'bottom-right') {\n jQuery('.eael-sticky-video-player2.out').css('bottom', '40px');\n jQuery('.eael-sticky-video-player2.out').css('right', '40px');\n }\n\n if (p == 'bottom-left') {\n jQuery('.eael-sticky-video-player2.out').css('bottom', '40px');\n jQuery('.eael-sticky-video-player2.out').css('left', '40px');\n }\n\n jQuery('.eael-sticky-video-player2.out').css('width', w + 'px');\n jQuery('.eael-sticky-video-player2.out').css('height', h + 'px');\n}\n\nfunction PlayerPlay(a, b) {\n a.on('play', function (event) {\n eaelsvDomHeight = GetDomElementHeight(b);\n jQuery('.eael-sticky-video-player2').removeAttr('id');\n jQuery('.eael-sticky-video-player2').removeClass('out');\n b.attr('id', 'videobox');\n videoIsActive = 'on';\n eaelsvPosition = b.data('position');\n eaelsvHeight = b.data('sheight');\n eaelsvWidth = b.data('swidth');\n });\n}\n\nfunction RunStickyPlayer(elem) {\n var ovrplyer = new Plyr('#' + elem);\n ovrplyer.start();\n}\n\n//# sourceURL=webpack:///./src/js/view/sticky-video.js?");
97
 
98
  /***/ })
99
 
assets/front-end/js/view/sticky-video.min.js CHANGED
@@ -1 +1 @@
1
- !function(e){var t={};function o(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,o),r.l=!0,r.exports}o.m=e,o.c=t,o.d=function(e,t,i){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(o.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(i,r,function(t){return e[t]}.bind(null,r));return i},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=16)}({16:function(e,t){var o="",i=0,r=0,a=0,s="off",n=0;function l(e){var t=jQuery(e).parent().height(),o=n*t/100;return jQuery(e).parent().offset().top+o}function u(e,t,o){"top-left"==e&&(jQuery(".eael-sticky-video-player2.out").css("top","40px"),jQuery(".eael-sticky-video-player2.out").css("left","40px")),"top-right"==e&&(jQuery(".eael-sticky-video-player2.out").css("top","40px"),jQuery(".eael-sticky-video-player2.out").css("right","40px")),"bottom-right"==e&&(jQuery(".eael-sticky-video-player2.out").css("bottom","40px"),jQuery(".eael-sticky-video-player2.out").css("right","40px")),"bottom-left"==e&&(jQuery(".eael-sticky-video-player2.out").css("bottom","40px"),jQuery(".eael-sticky-video-player2.out").css("left","40px")),jQuery(".eael-sticky-video-player2.out").css("width",o+"px"),jQuery(".eael-sticky-video-player2.out").css("height",t+"px")}jQuery(window).on("elementor/frontend/init",(function(){isEditMode&&elementor.hooks.addAction("panel/open_editor/widget/eael-sticky-video",(function(e,t,o){var i;t.attributes.settings.on("change:eaelsv_sticky_width",(function(){clearTimeout(i),i=setTimeout((function(){var o=Math.ceil(t.getSetting("eaelsv_sticky_width")/1.78);t.attributes.settings.attributes.eaelsv_sticky_height=o,e.el.querySelector('[data-setting="eaelsv_sticky_height"]').value=o}),250)})),t.attributes.settings.on("change:eaelsv_sticky_height",(function(){clearTimeout(i),i=setTimeout((function(){var o=Math.ceil(1.78*t.getSetting("eaelsv_sticky_height"));t.attributes.settings.attributes.eaelsv_sticky_width=o,e.el.querySelector('[data-setting="eaelsv_sticky_width"]').value=o}),250)}))})),elementorFrontend.hooks.addAction("frontend/element_ready/eael-sticky-video.default",(function(e,t){t(".eaelsv-sticky-player-close",e).hide();var c,y,d,p=e.find(".eael-sticky-video-player2");c=p.data("sticky"),y=p.data("autoplay"),o=p.data("position"),r=p.data("sheight"),i=p.data("swidth"),d=p.data("overlay"),n=p.data("scroll_height"),u(o,r,i);var v,f=new Plyr("#eaelsv-player-"+e.data("id"));if("no"===d&&"yes"===y&&"yes"===c&&(a=l(p),p.attr("id","videobox"),s="on",v=p,f.on("play",(function(e){a=l(v),jQuery(".eael-sticky-video-player2").removeAttr("id"),jQuery(".eael-sticky-video-player2").removeClass("out"),v.attr("id","videobox"),s="on",o=v.data("position"),r=v.data("sheight"),i=v.data("swidth")}))),"yes"===d){var h=p.prev();s="off",t(h).on("click",(function(){t(this).css("display","none"),"yes"===t(this).next().data("autoplay")&&(f.restart(),a=l(this),"yes"===c&&(t(this).next().attr("id","videobox"),s="on"))}))}f.on("pause",(function(e){s="off"})),f.on("play",(function(e){s="on"})),t(".eaelsv-sticky-player-close").on("click",(function(){p.removeClass("out").addClass("in"),t(".eael-sticky-video-player2").removeAttr("style"),s="off"})),p.parent().css("height",p.height()+"px"),t(window).resize((function(){p.parent().css("height",p.height()+"px")}))}))})),jQuery(window).scroll((function(){var e=jQuery(window).scrollTop();jQuery(document).height()-e>jQuery(window).height()+400&&(e>=a?"on"==s&&(jQuery("#videobox").find(".eaelsv-sticky-player-close").css("display","block"),jQuery("#videobox").removeClass("in").addClass("out"),u(o,r,i)):(jQuery(".eaelsv-sticky-player-close").hide(),jQuery("#videobox").removeClass("out").addClass("in"),jQuery(".eael-sticky-video-player2").removeAttr("style")))}))}});
1
+ !function(e){var t={};function i(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.m=e,i.c=t,i.d=function(e,t,o){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(i.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(o,r,function(t){return e[t]}.bind(null,r));return o},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=16)}({16:function(e,t){var i="",o=0,r=0,a=0,s="off",n=0;function l(e){var t=jQuery(e).parent().height(),i=n*t/100;return jQuery(e).parent().offset().top+i}function u(e,t,i){"top-left"==e&&(jQuery(".eael-sticky-video-player2.out").css("top","40px"),jQuery(".eael-sticky-video-player2.out").css("left","40px")),"top-right"==e&&(jQuery(".eael-sticky-video-player2.out").css("top","40px"),jQuery(".eael-sticky-video-player2.out").css("right","40px")),"bottom-right"==e&&(jQuery(".eael-sticky-video-player2.out").css("bottom","40px"),jQuery(".eael-sticky-video-player2.out").css("right","40px")),"bottom-left"==e&&(jQuery(".eael-sticky-video-player2.out").css("bottom","40px"),jQuery(".eael-sticky-video-player2.out").css("left","40px")),jQuery(".eael-sticky-video-player2.out").css("width",i+"px"),jQuery(".eael-sticky-video-player2.out").css("height",t+"px")}jQuery(window).on("elementor/frontend/init",(function(){isEditMode&&elementor.hooks.addAction("panel/open_editor/widget/eael-sticky-video",(function(e,t,i){var o;t.attributes.settings.on("change:eaelsv_sticky_width",(function(){clearTimeout(o),o=setTimeout((function(){var i=Math.ceil(t.getSetting("eaelsv_sticky_width")/1.78);t.attributes.settings.attributes.eaelsv_sticky_height=i,e.el.querySelector('[data-setting="eaelsv_sticky_height"]').value=i}),250)})),t.attributes.settings.on("change:eaelsv_sticky_height",(function(){clearTimeout(o),o=setTimeout((function(){var i=Math.ceil(1.78*t.getSetting("eaelsv_sticky_height"));t.attributes.settings.attributes.eaelsv_sticky_width=i,e.el.querySelector('[data-setting="eaelsv_sticky_width"]').value=i}),250)}))})),elementorFrontend.hooks.addAction("frontend/element_ready/eael-sticky-video.default",(function(e,t){t(".eaelsv-sticky-player-close",e).hide();var c,y,d,p=e.find(".eael-sticky-video-player2");c=p.data("sticky"),y=p.data("autoplay"),i=p.data("position"),r=p.data("sheight"),o=p.data("swidth"),d=p.data("overlay"),n=p.data("scroll_height"),u(i,r,o);var v,f=new Plyr("#eaelsv-player-"+e.data("id"));if("no"===d&&"yes"===y&&"yes"===c&&(a=l(p),p.attr("id","videobox"),s="on",v=p,f.on("play",(function(e){a=l(v),jQuery(".eael-sticky-video-player2").removeAttr("id"),jQuery(".eael-sticky-video-player2").removeClass("out"),v.attr("id","videobox"),s="on",i=v.data("position"),r=v.data("sheight"),o=v.data("swidth")}))),"yes"===d){var h=p.prev();s="off",t(h).on("click",(function(){t(".eael-sticky-video-wrapper > i").hide(),t(this).css("display","none"),"yes"===t(this).next().data("autoplay")&&(f.restart(),a=l(this),"yes"===c&&(t(this).next().attr("id","videobox"),s="on"))}))}f.on("pause",(function(e){s="off"})),f.on("play",(function(e){s="on"})),t(".eaelsv-sticky-player-close").on("click",(function(){p.removeClass("out").addClass("in"),t(".eael-sticky-video-player2").removeAttr("style"),s="off"})),p.parent().css("height",p.height()+"px"),t(window).resize((function(){p.parent().css("height",p.height()+"px")}))}))})),jQuery(window).scroll((function(){var e=jQuery(window).scrollTop();jQuery(document).height()-e>jQuery(window).height()+400&&(e>=a?"on"==s&&(jQuery("#videobox").find(".eaelsv-sticky-player-close").css("display","block"),jQuery("#videobox").removeClass("in").addClass("out"),u(i,r,o)):(jQuery(".eaelsv-sticky-player-close").hide(),jQuery("#videobox").removeClass("out").addClass("in"),jQuery(".eael-sticky-video-player2").removeAttr("style")))}))}});
assets/front-end/js/view/table-of-content.js CHANGED
@@ -93,7 +93,7 @@
93
  /*! no static exports found */
94
  /***/ (function(module, exports) {
95
 
96
- eval("(function ($) {\n jQuery(document).ready(function () {\n /**\n * add ID in main content heading tag\n * @param selector\n * @param supportTag\n */\n function eael_toc_content(selector, supportTag) {\n var listId = document.getElementById(\"eael-toc-list\");\n\n if (selector === null || supportTag === undefined || !listId) {\n return null;\n }\n\n var eaelToc = document.getElementById(\"eael-toc\");\n var titleUrl = typeof eaelToc.dataset.titleurl !== 'undefined' ? eaelToc.dataset.titleurl : 'false';\n var excludeArr = typeof eaelToc.dataset.excludeSelector !== 'undefined' ? eaelToc.dataset.excludeSelector.replace(/^,|,$/g, '') : '';\n var allSupportTag = [];\n var mainSelector = document.querySelectorAll(selector),\n listIndex = 0;\n\n for (var j = 0; j < mainSelector.length; j++) {\n var featchTag = mainSelector[j].querySelectorAll(supportTag);\n Array.prototype.push.apply(allSupportTag, featchTag);\n }\n\n allSupportTag = Array.prototype.slice.call(allSupportTag);\n allSupportTag.forEach(function (el) {\n if (eaelTocExclude(excludeArr, el)) {\n return;\n }\n\n el.id = listIndex + \"-\" + eael_build_id(titleUrl, el.textContent);\n el.classList.add(\"eael-heading-content\");\n listIndex++;\n }); //build toc list hierarchy\n\n eael_list_hierarchy(selector, supportTag);\n var firstChild = $(\"ul.eael-toc-list > li\");\n\n if (firstChild.length < 1) {\n document.getElementById(\"eael-toc\").classList.add(\"eael-toc-disable\");\n }\n\n firstChild.each(function () {\n this.classList.add(\"eael-first-child\");\n });\n }\n /**\n * Make toc list\n * @param selector\n * @param supportTag\n */\n\n\n function eael_list_hierarchy(selector, supportTag) {\n var tagList = supportTag;\n var parentLevel = '';\n var allHeadings = [];\n var eaelToc = document.getElementById(\"eael-toc\");\n var titleUrl = typeof eaelToc.dataset.titleurl !== 'undefined' ? eaelToc.dataset.titleurl : 'false';\n var listId = document.getElementById(\"eael-toc-list\");\n var excludeArr = typeof eaelToc.dataset.excludeselector !== 'undefined' ? eaelToc.dataset.excludeselector.replace(/^,|,$/g, '') : '';\n var mainContent = document.querySelectorAll(selector),\n baseTag = parentLevel = tagList.trim().split(\",\")[0].substr(1, 1),\n ListNode = listId;\n listId.innerHTML = \"\";\n\n for (var j = 0; j < mainContent.length; j++) {\n var featchTag = mainContent[j].querySelectorAll(tagList);\n Array.prototype.push.apply(allHeadings, featchTag);\n }\n\n if (allHeadings.length > 0) {\n document.getElementById(\"eael-toc\").classList.remove(\"eael-toc-disable\");\n }\n\n for (var i = 0, len = allHeadings.length; i < len; ++i) {\n var currentHeading = allHeadings[i];\n\n if (eaelTocExclude(excludeArr, currentHeading)) {\n continue;\n }\n\n var latestLavel = parseInt(currentHeading.tagName.substr(1, 1));\n var diff = latestLavel - parentLevel;\n\n if (diff > 0) {\n var containerLiNode = ListNode.lastChild;\n\n if (containerLiNode) {\n var createUlNode = document.createElement(\"UL\");\n containerLiNode.appendChild(createUlNode);\n ListNode = createUlNode;\n parentLevel = latestLavel;\n }\n }\n\n var sequenceParent = false;\n\n if (diff < 0) {\n while (0 !== diff++) {\n if (ListNode.parentNode.parentNode) {\n ListNode = ListNode.parentNode.parentNode;\n }\n }\n\n parentLevel = latestLavel;\n sequenceParent = true;\n }\n\n if (ListNode.tagName !== \"UL\") {\n ListNode = listId;\n }\n\n if (currentHeading.textContent.trim() === \"\") {\n continue;\n }\n\n var liNode = document.createElement(\"LI\");\n var anchorTag = document.createElement(\"A\");\n var spanTag = document.createElement(\"SPAN\");\n\n if (baseTag === parentLevel || sequenceParent) {\n liNode.setAttribute(\"itemscope\", \"\");\n liNode.setAttribute(\"itemtype\", \"http://schema.org/ListItem\");\n liNode.setAttribute(\"itemprop\", \"itemListElement\");\n }\n\n var Linkid = \"#\" + i + \"-\" + eael_build_id(titleUrl, currentHeading.textContent);\n anchorTag.className = \"eael-toc-link\";\n anchorTag.setAttribute(\"itemprop\", \"item\");\n anchorTag.setAttribute(\"href\", Linkid);\n spanTag.appendChild(document.createTextNode(currentHeading.textContent));\n anchorTag.appendChild(spanTag);\n liNode.appendChild(anchorTag);\n ListNode.appendChild(liNode);\n }\n } // expand collapse\n\n\n $(document).on(\"click\", \"ul.eael-toc-list a\", function (e) {\n e.preventDefault();\n $(document).off(\"scroll\");\n var target = this.hash;\n history.pushState(\"\", document.title, window.location.pathname + window.location.search);\n var parentLi = $(this).parent();\n\n if (parentLi.is(\".eael-highlight-parent.eael-highlight-active\")) {\n window.location.hash = target;\n return false;\n }\n\n $(\".eael-highlight-active, .eael-highlight-parent\").removeClass(\"eael-highlight-active eael-highlight-parent\");\n $(this).closest(\".eael-first-child\").addClass(\"eael-highlight-parent\");\n $(this).parent().addClass(\"eael-highlight-active\");\n window.location.hash = target;\n }); //some site not working with **window.onscroll**\n\n window.addEventListener('scroll', function (e) {\n eaelTocSticky();\n });\n var stickyScroll = $('#eael-toc').data('stickyscroll');\n /**\n * Check selector in array\n *\n * @param arr\n * @param el\n * @returns boolean\n */\n\n function eaelTocExclude(excludes, el) {\n return $(el).closest(excludes).length;\n }\n /**\n * check sticky\n */\n\n\n function eaelTocSticky() {\n var eaelToc = document.getElementById(\"eael-toc\");\n\n if (!eaelToc) {\n return;\n }\n\n stickyScroll = stickyScroll !== undefined ? stickyScroll : 200;\n\n if (window.pageYOffset >= stickyScroll && !eaelToc.classList.contains('eael-toc-disable')) {\n eaelToc.classList.add(\"eael-sticky\");\n } else {\n eaelToc.classList.remove(\"eael-sticky\");\n }\n }\n /**\n *\n * @param content\n * @returns {string}\n */\n\n\n function eael_build_id(showTitle, title) {\n if (showTitle == 'true' && title != '') {\n //create slug from Heading text\n return title.toString().toLowerCase().normalize('NFD').trim().replace(/[^a-z0-9 -]/g, '').replace(/\\s+/g, '-').replace(/^-+/, \"\").replace(/-+$/, \"\").replace(/-+/g, '-');\n } else {\n return \"eael-table-of-content\";\n }\n }\n /**\n *\n * @returns {null|selector}\n */\n\n\n function eael_toc_check_content() {\n var eaelToc = document.getElementById(\"eael-toc\");\n\n if (eaelToc && eaelToc.dataset.contentselector) {\n return eaelToc.dataset.contentselector;\n }\n\n var contentSelectro = '.site-content';\n\n if ($(\".site-content\")[0]) {\n contentSelectro = \".site-content\";\n } else if ($(\".elementor-inner\")[0]) {\n contentSelectro = \".elementor-inner\";\n } else if ($(\"#site-content\")[0]) {\n contentSelectro = \"#site-content\";\n }\n\n return contentSelectro;\n } //toc auto collapse\n\n\n $(\"body\").click(function (e) {\n var target = $(e.target);\n var eaToc = $(\"#eael-toc\");\n\n if (eaToc.hasClass(\"eael-toc-auto-collapse\") && eaToc.hasClass(\"eael-sticky\") && !eaToc.hasClass(\"collapsed\") && $(target).closest(\"#eael-toc\").length === 0) {\n eaToc.toggleClass(\"collapsed\");\n }\n });\n $(document).on(\"click\", \".eael-toc-close ,.eael-toc-button\", function (event) {\n event.stopPropagation();\n $(\".eael-toc\").toggleClass(\"collapsed\");\n });\n\n function eael_build_toc($settings) {\n var pageSetting = $settings.settings,\n title = pageSetting.eael_ext_toc_title,\n toc_style_class = \"eael-toc-list eael-toc-list-\" + pageSetting.eael_ext_table_of_content_list_style,\n icon = pageSetting.eael_ext_table_of_content_header_icon.value,\n el_class = pageSetting.eael_ext_toc_position === \"right\" ? \" eael-toc-right\" : \" \";\n toc_style_class += pageSetting.eael_ext_toc_collapse_sub_heading === \"yes\" ? \" eael-toc-collapse\" : \" \";\n toc_style_class += pageSetting.eael_ext_toc_list_icon === \"number\" ? \" eael-toc-number\" : \" eael-toc-bullet\";\n return '<div id=\"eael-toc\" class=\"eael-toc eael-toc-disable ' + el_class + '\">' + '<div class=\"eael-toc-header\"><span class=\"eael-toc-close\">×</span><h2 class=\"eael-toc-title\">' + title + \"</h2></div>\" + '<div class=\"eael-toc-body\"><ul id=\"eael-toc-list\" class=\"' + toc_style_class + '\"></ul></div>' + '<button class=\"eael-toc-button\"><i class=\"' + icon + '\"></i><span>' + title + \"</span></button>\" + \"</div>\";\n }\n\n var intSupportTag = $(\"#eael-toc\").data(\"eaeltoctag\");\n\n if (intSupportTag !== \"\") {\n eael_toc_content(eael_toc_check_content(), intSupportTag);\n } //editor mode\n\n\n if (isEditMode) {\n var eael_toc_list_collapse = function eael_toc_list_collapse(newValue) {\n var list = $(\".eael-toc-list\");\n\n if (newValue === \"yes\") {\n list.addClass(\"eael-toc-collapse\");\n } else {\n list.removeClass(\"eael-toc-collapse\");\n }\n };\n\n var ea_toc_title_change = function ea_toc_title_change(newValue) {\n elementorFrontend.elements.$document.find(\".eael-toc-title\").text(newValue);\n elementorFrontend.elements.$document.find(\".eael-toc-button span\").text(newValue);\n };\n\n elementorFrontend.hooks.addAction('frontend/element_ready/widget', function ($scope, $) {\n var tocLoad = $('#eael-toc #eael-toc-list');\n var TocList = tocLoad.find('li.eael-first-child');\n\n if (TocList.length < 1 && tocLoad.length >= 1) {\n var tagList = $(\"#eael-toc\").data(\"eaeltoctag\");\n\n if (tagList) {\n eael_toc_content(eael_toc_check_content(), tagList);\n }\n }\n });\n elementor.settings.page.addChangeCallback(\"eael_ext_table_of_content\", function (newValue) {\n var tocGlobal = $(\".eael-toc-global\");\n\n if (tocGlobal.length > 0) {\n tocGlobal.attr(\"id\", \"eael-toc-temp\").removeClass(\"eael-toc\").hide();\n $(\".eael-toc-global #eael-toc-list\").attr(\"id\", \"\");\n }\n\n $(\"#eael-toc\").remove();\n\n if (newValue === \"yes\") {\n var $settings = elementor.settings.page.getSettings();\n $(\"body\").append(eael_build_toc($settings));\n eael_toc_content(eael_toc_check_content(), $settings.settings.eael_ext_toc_supported_heading_tag.join(\", \"));\n } else {\n if (tocGlobal.length > 0) {\n tocGlobal.addClass(\"eael-toc\").attr(\"id\", \"eael-toc\").show();\n }\n }\n });\n elementor.settings.page.addChangeCallback(\"eael_ext_toc_position\", function (newValue) {\n if (newValue === \"right\") {\n $(\"#eael-toc\").addClass(\"eael-toc-right\");\n } else {\n $(\"#eael-toc\").removeClass(\"eael-toc-right\");\n }\n });\n elementor.settings.page.addChangeCallback(\"eael_ext_table_of_content_list_style\", function (newValue) {\n var list = $(\".eael-toc-list\");\n list.removeClass(\"eael-toc-list-bar eael-toc-list-arrow\");\n\n if (newValue !== \"none\") {\n list.addClass(\"eael-toc-list-\" + newValue);\n }\n });\n elementor.settings.page.addChangeCallback(\"eael_ext_toc_collapse_sub_heading\", eael_toc_list_collapse);\n elementor.settings.page.addChangeCallback(\"eael_ext_table_of_content_header_icon\", function (newValue) {\n var iconElement = $(\".eael-toc-button i\");\n iconElement.removeClass().addClass(newValue.value);\n });\n elementor.settings.page.addChangeCallback(\"eael_ext_toc_list_icon\", function (newValue) {\n var list = $(\".eael-toc-list\");\n\n if (newValue === \"number\") {\n list.addClass(\"eael-toc-number\").removeClass(\"eael-toc-bullet\");\n } else {\n list.addClass(\"eael-toc-bullet\").removeClass(\"eael-toc-number\");\n }\n });\n elementor.settings.page.addChangeCallback(\"eael_ext_toc_word_wrap\", function (newValue) {\n var list = $(\".eael-toc-list\");\n\n if (newValue === \"yes\") {\n list.addClass(\"eael-toc-word-wrap\");\n } else {\n list.removeClass(\"eael-toc-word-wrap\");\n }\n });\n elementor.settings.page.addChangeCallback(\"eael_ext_toc_close_button_text_style\", function (newValue) {\n var toc = $(\"#eael-toc\");\n\n if (newValue === \"bottom_to_top\") {\n toc.addClass(\"eael-bottom-to-top\");\n } else {\n toc.removeClass(\"eael-bottom-to-top\");\n }\n });\n elementor.settings.page.addChangeCallback(\"eael_ext_toc_box_shadow\", function (newValue) {\n var toc = $(\"#eael-toc\");\n\n if (newValue === \"yes\") {\n toc.addClass(\"eael-box-shadow\");\n } else {\n toc.removeClass(\"eael-box-shadow\");\n }\n });\n elementor.settings.page.addChangeCallback(\"eael_ext_toc_auto_collapse\", function (newValue) {\n var toc = $(\"#eael-toc\");\n\n if (newValue === \"yes\") {\n toc.addClass(\"eael-toc-auto-collapse\");\n } else {\n toc.removeClass(\"eael-toc-auto-collapse\");\n }\n });\n elementor.settings.page.addChangeCallback(\"eael_ext_toc_title\", ea_toc_title_change);\n }\n });\n})(jQuery);\n\n//# sourceURL=webpack:///./src/js/view/table-of-content.js?");
97
 
98
  /***/ })
99
 
93
  /*! no static exports found */
94
  /***/ (function(module, exports) {
95
 
96
+ eval("function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && Symbol.iterator in Object(iter)) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\n(function ($) {\n jQuery(document).ready(function () {\n /**\n * add ID in main content heading tag\n * @param selector\n * @param supportTag\n */\n function eael_toc_content(selector, supportTag) {\n var listId = document.getElementById(\"eael-toc-list\");\n\n if (selector === null || supportTag === undefined || !listId) {\n return null;\n }\n\n var eaelToc = document.getElementById(\"eael-toc\");\n var titleUrl = typeof eaelToc.dataset.titleurl !== 'undefined' ? eaelToc.dataset.titleurl : 'false';\n var excludeArr = typeof eaelToc.dataset.excludeSelector !== 'undefined' ? eaelToc.dataset.excludeSelector.replace(/^,|,$/g, '') : '';\n var allSupportTag = [];\n var mainSelector = document.querySelectorAll(selector),\n listIndex = 0;\n\n for (var j = 0; j < mainSelector.length; j++) {\n allSupportTag = [].concat(_toConsumableArray(allSupportTag), _toConsumableArray(mainSelector[j].querySelectorAll(supportTag)));\n }\n\n allSupportTag = Array.from(new Set(allSupportTag));\n allSupportTag.forEach(function (el) {\n if (eaelTocExclude(excludeArr, el)) {\n return;\n }\n\n el.id = listIndex + \"-\" + eael_build_id(titleUrl, el.textContent);\n el.classList.add(\"eael-heading-content\");\n listIndex++;\n }); //build toc list hierarchy\n\n eael_list_hierarchy(selector, supportTag, allSupportTag);\n var firstChild = $(\"ul.eael-toc-list > li\");\n\n if (firstChild.length < 1) {\n document.getElementById(\"eael-toc\").classList.add(\"eael-toc-disable\");\n }\n\n firstChild.each(function () {\n this.classList.add(\"eael-first-child\");\n });\n }\n /**\n * Make toc list\n * @param selector\n * @param supportTag\n */\n\n\n function eael_list_hierarchy(selector, supportTag, allSupportTagList) {\n var tagList = supportTag;\n var allHeadings = allSupportTagList;\n var eaelToc = document.getElementById(\"eael-toc\");\n var titleUrl = typeof eaelToc.dataset.titleurl !== 'undefined' ? eaelToc.dataset.titleurl : 'false';\n var listId = document.getElementById(\"eael-toc-list\");\n var excludeArr = typeof eaelToc.dataset.excludeselector !== 'undefined' ? eaelToc.dataset.excludeselector.replace(/^,|,$/g, '') : '';\n var parentLevel = '',\n baseTag = parentLevel = tagList.trim().split(\",\")[0].substr(1, 1),\n ListNode = listId;\n listId.innerHTML = \"\";\n\n if (allHeadings.length > 0) {\n document.getElementById(\"eael-toc\").classList.remove(\"eael-toc-disable\");\n }\n\n for (var i = 0, len = allHeadings.length; i < len; ++i) {\n var currentHeading = allHeadings[i];\n\n if (eaelTocExclude(excludeArr, currentHeading)) {\n continue;\n }\n\n var latestLavel = parseInt(currentHeading.tagName.substr(1, 1));\n var diff = latestLavel - parentLevel;\n\n if (diff > 0) {\n var containerLiNode = ListNode.lastChild;\n\n if (containerLiNode) {\n var createUlNode = document.createElement(\"UL\");\n containerLiNode.appendChild(createUlNode);\n ListNode = createUlNode;\n parentLevel = latestLavel;\n }\n }\n\n var sequenceParent = false;\n\n if (diff < 0) {\n while (0 !== diff++) {\n if (ListNode.parentNode.parentNode) {\n ListNode = ListNode.parentNode.parentNode;\n }\n }\n\n parentLevel = latestLavel;\n sequenceParent = true;\n }\n\n if (ListNode.tagName !== \"UL\") {\n ListNode = listId;\n }\n\n if (currentHeading.textContent.trim() === \"\") {\n continue;\n }\n\n var liNode = document.createElement(\"LI\");\n var anchorTag = document.createElement(\"A\");\n var spanTag = document.createElement(\"SPAN\");\n\n if (baseTag === parentLevel || sequenceParent) {\n liNode.setAttribute(\"itemscope\", \"\");\n liNode.setAttribute(\"itemtype\", \"http://schema.org/ListItem\");\n liNode.setAttribute(\"itemprop\", \"itemListElement\");\n }\n\n var Linkid = \"#\" + i + \"-\" + eael_build_id(titleUrl, currentHeading.textContent);\n anchorTag.className = \"eael-toc-link\";\n anchorTag.setAttribute(\"itemprop\", \"item\");\n anchorTag.setAttribute(\"href\", Linkid);\n spanTag.appendChild(document.createTextNode(currentHeading.textContent));\n anchorTag.appendChild(spanTag);\n liNode.appendChild(anchorTag);\n ListNode.appendChild(liNode);\n }\n } // expand collapse\n\n\n $(document).on(\"click\", \"ul.eael-toc-list a\", function (e) {\n e.preventDefault();\n $(document).off(\"scroll\");\n var target = this.hash;\n history.pushState(\"\", document.title, window.location.pathname + window.location.search);\n var parentLi = $(this).parent();\n\n if (parentLi.is(\".eael-highlight-parent.eael-highlight-active\")) {\n window.location.hash = target;\n return false;\n }\n\n $(\".eael-highlight-active, .eael-highlight-parent\").removeClass(\"eael-highlight-active eael-highlight-parent\");\n $(this).closest(\".eael-first-child\").addClass(\"eael-highlight-parent\");\n $(this).parent().addClass(\"eael-highlight-active\");\n window.location.hash = target;\n }); //some site not working with **window.onscroll**\n\n window.addEventListener('scroll', function (e) {\n eaelTocSticky();\n });\n var stickyScroll = $('#eael-toc').data('stickyscroll');\n /**\n * Check selector in array\n *\n * @param arr\n * @param el\n * @returns boolean\n */\n\n function eaelTocExclude(excludes, el) {\n return $(el).closest(excludes).length;\n }\n /**\n * check sticky\n */\n\n\n function eaelTocSticky() {\n var eaelToc = document.getElementById(\"eael-toc\");\n\n if (!eaelToc) {\n return;\n }\n\n stickyScroll = stickyScroll !== undefined ? stickyScroll : 200;\n\n if (window.pageYOffset >= stickyScroll && !eaelToc.classList.contains('eael-toc-disable')) {\n eaelToc.classList.add(\"eael-sticky\");\n } else {\n eaelToc.classList.remove(\"eael-sticky\");\n }\n }\n /**\n *\n * @param content\n * @returns {string}\n */\n\n\n function eael_build_id(showTitle, title) {\n if (showTitle == 'true' && title != '') {\n //create slug from Heading text\n return title.toString().toLowerCase().normalize('NFD').trim().replace(/[^a-z0-9 -]/g, '').replace(/\\s+/g, '-').replace(/^-+/, \"\").replace(/-+$/, \"\").replace(/-+/g, '-');\n } else {\n return \"eael-table-of-content\";\n }\n }\n /**\n *\n * @returns {null|selector}\n */\n\n\n function eael_toc_check_content() {\n var eaelToc = document.getElementById(\"eael-toc\");\n\n if (eaelToc && eaelToc.dataset.contentselector) {\n return eaelToc.dataset.contentselector;\n }\n\n var contentSelectro = '.site-content';\n\n if ($(\".site-content\")[0]) {\n contentSelectro = \".site-content\";\n } else if ($(\".elementor-inner\")[0]) {\n contentSelectro = \".elementor-inner\";\n } else if ($(\"#site-content\")[0]) {\n contentSelectro = \"#site-content\";\n }\n\n return contentSelectro;\n } //toc auto collapse\n\n\n $(\"body\").click(function (e) {\n var target = $(e.target);\n var eaToc = $(\"#eael-toc\");\n\n if (eaToc.hasClass(\"eael-toc-auto-collapse\") && eaToc.hasClass(\"eael-sticky\") && !eaToc.hasClass(\"collapsed\") && $(target).closest(\"#eael-toc\").length === 0) {\n eaToc.toggleClass(\"collapsed\");\n }\n });\n $(document).on(\"click\", \".eael-toc-close ,.eael-toc-button\", function (event) {\n event.stopPropagation();\n $(\".eael-toc\").toggleClass(\"collapsed\");\n });\n\n function eael_build_toc($settings) {\n var pageSetting = $settings.settings,\n title = pageSetting.eael_ext_toc_title,\n toc_style_class = \"eael-toc-list eael-toc-list-\" + pageSetting.eael_ext_table_of_content_list_style,\n icon = pageSetting.eael_ext_table_of_content_header_icon.value,\n el_class = pageSetting.eael_ext_toc_position === \"right\" ? \" eael-toc-right\" : \" \";\n toc_style_class += pageSetting.eael_ext_toc_collapse_sub_heading === \"yes\" ? \" eael-toc-collapse\" : \" \";\n toc_style_class += pageSetting.eael_ext_toc_list_icon === \"number\" ? \" eael-toc-number\" : \" eael-toc-bullet\";\n return '<div id=\"eael-toc\" class=\"eael-toc eael-toc-disable ' + el_class + '\">' + '<div class=\"eael-toc-header\"><span class=\"eael-toc-close\">×</span><h2 class=\"eael-toc-title\">' + title + \"</h2></div>\" + '<div class=\"eael-toc-body\"><ul id=\"eael-toc-list\" class=\"' + toc_style_class + '\"></ul></div>' + '<button class=\"eael-toc-button\"><i class=\"' + icon + '\"></i><span>' + title + \"</span></button>\" + \"</div>\";\n }\n\n var intSupportTag = $(\"#eael-toc\").data(\"eaeltoctag\");\n\n if (intSupportTag !== \"\" && !isEditMode) {\n eael_toc_content(eael_toc_check_content(), intSupportTag);\n } //editor mode\n\n\n if (isEditMode) {\n var eael_toc_list_collapse = function eael_toc_list_collapse(newValue) {\n var list = $(\".eael-toc-list\");\n\n if (newValue === \"yes\") {\n list.addClass(\"eael-toc-collapse\");\n } else {\n list.removeClass(\"eael-toc-collapse\");\n }\n };\n\n var ea_toc_title_change = function ea_toc_title_change(newValue) {\n elementorFrontend.elements.$document.find(\".eael-toc-title\").text(newValue);\n elementorFrontend.elements.$document.find(\".eael-toc-button span\").text(newValue);\n };\n\n elementorFrontend.hooks.addAction('frontend/element_ready/widget', function ($scope, $) {\n var tocLoad = $('#eael-toc #eael-toc-list');\n var TocList = tocLoad.find('li.eael-first-child');\n\n if (TocList.length < 1 && tocLoad.length >= 1) {\n var tagList = $(\"#eael-toc\").data(\"eaeltoctag\");\n\n if (tagList) {\n eael_toc_content(eael_toc_check_content(), tagList);\n }\n }\n });\n elementor.settings.page.addChangeCallback(\"eael_ext_table_of_content\", function (newValue) {\n var tocGlobal = $(\".eael-toc-global\");\n\n if (tocGlobal.length > 0) {\n tocGlobal.attr(\"id\", \"eael-toc-temp\").removeClass(\"eael-toc\").hide();\n $(\".eael-toc-global #eael-toc-list\").attr(\"id\", \"\");\n }\n\n $(\"#eael-toc\").remove();\n\n if (newValue === \"yes\") {\n var $settings = elementor.settings.page.getSettings();\n $(\"body\").append(eael_build_toc($settings));\n eael_toc_content(eael_toc_check_content(), $settings.settings.eael_ext_toc_supported_heading_tag.join(\", \"));\n } else {\n if (tocGlobal.length > 0) {\n tocGlobal.addClass(\"eael-toc\").attr(\"id\", \"eael-toc\").show();\n }\n }\n });\n elementor.settings.page.addChangeCallback(\"eael_ext_toc_position\", function (newValue) {\n if (newValue === \"right\") {\n $(\"#eael-toc\").addClass(\"eael-toc-right\");\n } else {\n $(\"#eael-toc\").removeClass(\"eael-toc-right\");\n }\n });\n elementor.settings.page.addChangeCallback(\"eael_ext_table_of_content_list_style\", function (newValue) {\n var list = $(\".eael-toc-list\");\n list.removeClass(\"eael-toc-list-bar eael-toc-list-arrow\");\n\n if (newValue !== \"none\") {\n list.addClass(\"eael-toc-list-\" + newValue);\n }\n });\n elementor.settings.page.addChangeCallback(\"eael_ext_toc_collapse_sub_heading\", eael_toc_list_collapse);\n elementor.settings.page.addChangeCallback(\"eael_ext_table_of_content_header_icon\", function (newValue) {\n var iconElement = $(\".eael-toc-button i\");\n iconElement.removeClass().addClass(newValue.value);\n });\n elementor.settings.page.addChangeCallback(\"eael_ext_toc_list_icon\", function (newValue) {\n var list = $(\".eael-toc-list\");\n\n if (newValue === \"number\") {\n list.addClass(\"eael-toc-number\").removeClass(\"eael-toc-bullet\");\n } else {\n list.addClass(\"eael-toc-bullet\").removeClass(\"eael-toc-number\");\n }\n });\n elementor.settings.page.addChangeCallback(\"eael_ext_toc_word_wrap\", function (newValue) {\n var list = $(\".eael-toc-list\");\n\n if (newValue === \"yes\") {\n list.addClass(\"eael-toc-word-wrap\");\n } else {\n list.removeClass(\"eael-toc-word-wrap\");\n }\n });\n elementor.settings.page.addChangeCallback(\"eael_ext_toc_close_button_text_style\", function (newValue) {\n var toc = $(\"#eael-toc\");\n\n if (newValue === \"bottom_to_top\") {\n toc.addClass(\"eael-bottom-to-top\");\n } else {\n toc.removeClass(\"eael-bottom-to-top\");\n }\n });\n elementor.settings.page.addChangeCallback(\"eael_ext_toc_box_shadow\", function (newValue) {\n var toc = $(\"#eael-toc\");\n\n if (newValue === \"yes\") {\n toc.addClass(\"eael-box-shadow\");\n } else {\n toc.removeClass(\"eael-box-shadow\");\n }\n });\n elementor.settings.page.addChangeCallback(\"eael_ext_toc_auto_collapse\", function (newValue) {\n var toc = $(\"#eael-toc\");\n\n if (newValue === \"yes\") {\n toc.addClass(\"eael-toc-auto-collapse\");\n } else {\n toc.removeClass(\"eael-toc-auto-collapse\");\n }\n });\n elementor.settings.page.addChangeCallback(\"eael_ext_toc_title\", ea_toc_title_change);\n }\n });\n})(jQuery);\n\n//# sourceURL=webpack:///./src/js/view/table-of-content.js?");
97
 
98
  /***/ })
99
 
assets/front-end/js/view/table-of-content.min.js CHANGED
@@ -1 +1 @@
1
- !function(e){var t={};function a(l){if(t[l])return t[l].exports;var o=t[l]={i:l,l:!1,exports:{}};return e[l].call(o.exports,o,o.exports,a),o.l=!0,o.exports}a.m=e,a.c=t,a.d=function(e,t,l){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:l})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var l=Object.create(null);if(a.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)a.d(l,o,function(t){return e[t]}.bind(null,o));return l},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=17)}({17:function(e,t){var a;a=jQuery,jQuery(document).ready((function(){function e(e,t){var n=document.getElementById("eael-toc-list");if(null===e||void 0===t||!n)return null;for(var s=document.getElementById("eael-toc"),c=void 0!==s.dataset.titleurl?s.dataset.titleurl:"false",i=void 0!==s.dataset.excludeSelector?s.dataset.excludeSelector.replace(/^,|,$/g,""):"",r=[],d=document.querySelectorAll(e),u=0,p=0;p<d.length;p++){var g=d[p].querySelectorAll(t);Array.prototype.push.apply(r,g)}(r=Array.prototype.slice.call(r)).forEach((function(e){l(i,e)||(e.id=u+"-"+o(c,e.textContent),e.classList.add("eael-heading-content"),u++)})),function(e,t){var a=t,n="",s=[],c=document.getElementById("eael-toc"),i=void 0!==c.dataset.titleurl?c.dataset.titleurl:"false",r=document.getElementById("eael-toc-list"),d=void 0!==c.dataset.excludeselector?c.dataset.excludeselector.replace(/^,|,$/g,""):"",u=document.querySelectorAll(e),p=n=a.trim().split(",")[0].substr(1,1),g=r;r.innerHTML="";for(var h=0;h<u.length;h++){var m=u[h].querySelectorAll(a);Array.prototype.push.apply(s,m)}s.length>0&&document.getElementById("eael-toc").classList.remove("eael-toc-disable");for(var _=0,f=s.length;_<f;++_){var v=s[_];if(!l(d,v)){var b=parseInt(v.tagName.substr(1,1)),C=b-n;if(C>0){var y=g.lastChild;if(y){var x=document.createElement("UL");y.appendChild(x),g=x,n=b}}var w=!1;if(C<0){for(;0!=C++;)g.parentNode.parentNode&&(g=g.parentNode.parentNode);n=b,w=!0}if("UL"!==g.tagName&&(g=r),""!==v.textContent.trim()){var k=document.createElement("LI"),E=document.createElement("A"),A=document.createElement("SPAN");(p===n||w)&&(k.setAttribute("itemscope",""),k.setAttribute("itemtype","http://schema.org/ListItem"),k.setAttribute("itemprop","itemListElement"));var L="#"+_+"-"+o(i,v.textContent);E.className="eael-toc-link",E.setAttribute("itemprop","item"),E.setAttribute("href",L),A.appendChild(document.createTextNode(v.textContent)),E.appendChild(A),k.appendChild(E),g.appendChild(k)}}}}(e,t);var h=a("ul.eael-toc-list > li");h.length<1&&document.getElementById("eael-toc").classList.add("eael-toc-disable"),h.each((function(){this.classList.add("eael-first-child")}))}a(document).on("click","ul.eael-toc-list a",(function(e){e.preventDefault(),a(document).off("scroll");var t=this.hash;if(history.pushState("",document.title,window.location.pathname+window.location.search),a(this).parent().is(".eael-highlight-parent.eael-highlight-active"))return window.location.hash=t,!1;a(".eael-highlight-active, .eael-highlight-parent").removeClass("eael-highlight-active eael-highlight-parent"),a(this).closest(".eael-first-child").addClass("eael-highlight-parent"),a(this).parent().addClass("eael-highlight-active"),window.location.hash=t})),window.addEventListener("scroll",(function(e){var a;(a=document.getElementById("eael-toc"))&&(t=void 0!==t?t:200,window.pageYOffset>=t&&!a.classList.contains("eael-toc-disable")?a.classList.add("eael-sticky"):a.classList.remove("eael-sticky"))}));var t=a("#eael-toc").data("stickyscroll");function l(e,t){return a(t).closest(e).length}function o(e,t){return"true"==e&&""!=t?t.toString().toLowerCase().normalize("NFD").trim().replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/^-+/,"").replace(/-+$/,"").replace(/-+/g,"-"):"eael-table-of-content"}function n(){var e=document.getElementById("eael-toc");if(e&&e.dataset.contentselector)return e.dataset.contentselector;var t=".site-content";return a(".site-content")[0]?t=".site-content":a(".elementor-inner")[0]?t=".elementor-inner":a("#site-content")[0]&&(t="#site-content"),t}a("body").click((function(e){var t=a(e.target),l=a("#eael-toc");l.hasClass("eael-toc-auto-collapse")&&l.hasClass("eael-sticky")&&!l.hasClass("collapsed")&&0===a(t).closest("#eael-toc").length&&l.toggleClass("collapsed")})),a(document).on("click",".eael-toc-close ,.eael-toc-button",(function(e){e.stopPropagation(),a(".eael-toc").toggleClass("collapsed")}));var s=a("#eael-toc").data("eaeltoctag");""!==s&&e(n(),s),isEditMode&&(elementorFrontend.hooks.addAction("frontend/element_ready/widget",(function(t,a){var l=a("#eael-toc #eael-toc-list");if(l.find("li.eael-first-child").length<1&&l.length>=1){var o=a("#eael-toc").data("eaeltoctag");o&&e(n(),o)}})),elementor.settings.page.addChangeCallback("eael_ext_table_of_content",(function(t){var l=a(".eael-toc-global");if(l.length>0&&(l.attr("id","eael-toc-temp").removeClass("eael-toc").hide(),a(".eael-toc-global #eael-toc-list").attr("id","")),a("#eael-toc").remove(),"yes"===t){var o=elementor.settings.page.getSettings();a("body").append(function(e){var t=e.settings,a=t.eael_ext_toc_title,l="eael-toc-list eael-toc-list-"+t.eael_ext_table_of_content_list_style,o=t.eael_ext_table_of_content_header_icon.value,n="right"===t.eael_ext_toc_position?" eael-toc-right":" ";return l+="yes"===t.eael_ext_toc_collapse_sub_heading?" eael-toc-collapse":" ",'<div id="eael-toc" class="eael-toc eael-toc-disable '+n+'"><div class="eael-toc-header"><span class="eael-toc-close">×</span><h2 class="eael-toc-title">'+a+'</h2></div><div class="eael-toc-body"><ul id="eael-toc-list" class="'+(l+="number"===t.eael_ext_toc_list_icon?" eael-toc-number":" eael-toc-bullet")+'"></ul></div><button class="eael-toc-button"><i class="'+o+'"></i><span>'+a+"</span></button></div>"}(o)),e(n(),o.settings.eael_ext_toc_supported_heading_tag.join(", "))}else l.length>0&&l.addClass("eael-toc").attr("id","eael-toc").show()})),elementor.settings.page.addChangeCallback("eael_ext_toc_position",(function(e){"right"===e?a("#eael-toc").addClass("eael-toc-right"):a("#eael-toc").removeClass("eael-toc-right")})),elementor.settings.page.addChangeCallback("eael_ext_table_of_content_list_style",(function(e){var t=a(".eael-toc-list");t.removeClass("eael-toc-list-bar eael-toc-list-arrow"),"none"!==e&&t.addClass("eael-toc-list-"+e)})),elementor.settings.page.addChangeCallback("eael_ext_toc_collapse_sub_heading",(function(e){var t=a(".eael-toc-list");"yes"===e?t.addClass("eael-toc-collapse"):t.removeClass("eael-toc-collapse")})),elementor.settings.page.addChangeCallback("eael_ext_table_of_content_header_icon",(function(e){a(".eael-toc-button i").removeClass().addClass(e.value)})),elementor.settings.page.addChangeCallback("eael_ext_toc_list_icon",(function(e){var t=a(".eael-toc-list");"number"===e?t.addClass("eael-toc-number").removeClass("eael-toc-bullet"):t.addClass("eael-toc-bullet").removeClass("eael-toc-number")})),elementor.settings.page.addChangeCallback("eael_ext_toc_word_wrap",(function(e){var t=a(".eael-toc-list");"yes"===e?t.addClass("eael-toc-word-wrap"):t.removeClass("eael-toc-word-wrap")})),elementor.settings.page.addChangeCallback("eael_ext_toc_close_button_text_style",(function(e){var t=a("#eael-toc");"bottom_to_top"===e?t.addClass("eael-bottom-to-top"):t.removeClass("eael-bottom-to-top")})),elementor.settings.page.addChangeCallback("eael_ext_toc_box_shadow",(function(e){var t=a("#eael-toc");"yes"===e?t.addClass("eael-box-shadow"):t.removeClass("eael-box-shadow")})),elementor.settings.page.addChangeCallback("eael_ext_toc_auto_collapse",(function(e){var t=a("#eael-toc");"yes"===e?t.addClass("eael-toc-auto-collapse"):t.removeClass("eael-toc-auto-collapse")})),elementor.settings.page.addChangeCallback("eael_ext_toc_title",(function(e){elementorFrontend.elements.$document.find(".eael-toc-title").text(e),elementorFrontend.elements.$document.find(".eael-toc-button span").text(e)})))}))}});
1
+ !function(e){var t={};function a(l){if(t[l])return t[l].exports;var o=t[l]={i:l,l:!1,exports:{}};return e[l].call(o.exports,o,o.exports,a),o.l=!0,o.exports}a.m=e,a.c=t,a.d=function(e,t,l){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:l})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var l=Object.create(null);if(a.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)a.d(l,o,function(t){return e[t]}.bind(null,o));return l},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=17)}({17:function(e,t){function a(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);"Object"===a&&e.constructor&&(a=e.constructor.name);if("Map"===a||"Set"===a)return Array.from(e);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return l(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,l=new Array(t);a<t;a++)l[a]=e[a];return l}var o;o=jQuery,jQuery(document).ready((function(){function e(e,t){var c=document.getElementById("eael-toc-list");if(null===e||void 0===t||!c)return null;for(var r=document.getElementById("eael-toc"),s=void 0!==r.dataset.titleurl?r.dataset.titleurl:"false",i=void 0!==r.dataset.excludeSelector?r.dataset.excludeSelector.replace(/^,|,$/g,""):"",d=[],u=document.querySelectorAll(e),g=0,m=0;m<u.length;m++)d=[].concat(a(d),a(u[m].querySelectorAll(t)));(d=Array.from(new Set(d))).forEach((function(e){l(i,e)||(e.id=g+"-"+n(s,e.textContent),e.classList.add("eael-heading-content"),g++)})),function(e,t,a){var o=t,c=a,r=document.getElementById("eael-toc"),s=void 0!==r.dataset.titleurl?r.dataset.titleurl:"false",i=document.getElementById("eael-toc-list"),d=void 0!==r.dataset.excludeselector?r.dataset.excludeselector.replace(/^,|,$/g,""):"",u="",g=u=o.trim().split(",")[0].substr(1,1),m=i;i.innerHTML="",c.length>0&&document.getElementById("eael-toc").classList.remove("eael-toc-disable");for(var p=0,f=c.length;p<f;++p){var h=c[p];if(!l(d,h)){var _=parseInt(h.tagName.substr(1,1)),b=_-u;if(b>0){var v=m.lastChild;if(v){var C=document.createElement("UL");v.appendChild(C),m=C,u=_}}var y=!1;if(b<0){for(;0!=b++;)m.parentNode.parentNode&&(m=m.parentNode.parentNode);u=_,y=!0}if("UL"!==m.tagName&&(m=i),""!==h.textContent.trim()){var x=document.createElement("LI"),w=document.createElement("A"),k=document.createElement("SPAN");(g===u||y)&&(x.setAttribute("itemscope",""),x.setAttribute("itemtype","http://schema.org/ListItem"),x.setAttribute("itemprop","itemListElement"));var S="#"+p+"-"+n(s,h.textContent);w.className="eael-toc-link",w.setAttribute("itemprop","item"),w.setAttribute("href",S),k.appendChild(document.createTextNode(h.textContent)),w.appendChild(k),x.appendChild(w),m.appendChild(x)}}}}(0,t,d);var p=o("ul.eael-toc-list > li");p.length<1&&document.getElementById("eael-toc").classList.add("eael-toc-disable"),p.each((function(){this.classList.add("eael-first-child")}))}o(document).on("click","ul.eael-toc-list a",(function(e){e.preventDefault(),o(document).off("scroll");var t=this.hash;if(history.pushState("",document.title,window.location.pathname+window.location.search),o(this).parent().is(".eael-highlight-parent.eael-highlight-active"))return window.location.hash=t,!1;o(".eael-highlight-active, .eael-highlight-parent").removeClass("eael-highlight-active eael-highlight-parent"),o(this).closest(".eael-first-child").addClass("eael-highlight-parent"),o(this).parent().addClass("eael-highlight-active"),window.location.hash=t})),window.addEventListener("scroll",(function(e){var a;(a=document.getElementById("eael-toc"))&&(t=void 0!==t?t:200,window.pageYOffset>=t&&!a.classList.contains("eael-toc-disable")?a.classList.add("eael-sticky"):a.classList.remove("eael-sticky"))}));var t=o("#eael-toc").data("stickyscroll");function l(e,t){return o(t).closest(e).length}function n(e,t){return"true"==e&&""!=t?t.toString().toLowerCase().normalize("NFD").trim().replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/^-+/,"").replace(/-+$/,"").replace(/-+/g,"-"):"eael-table-of-content"}function c(){var e=document.getElementById("eael-toc");if(e&&e.dataset.contentselector)return e.dataset.contentselector;var t=".site-content";return o(".site-content")[0]?t=".site-content":o(".elementor-inner")[0]?t=".elementor-inner":o("#site-content")[0]&&(t="#site-content"),t}o("body").click((function(e){var t=o(e.target),a=o("#eael-toc");a.hasClass("eael-toc-auto-collapse")&&a.hasClass("eael-sticky")&&!a.hasClass("collapsed")&&0===o(t).closest("#eael-toc").length&&a.toggleClass("collapsed")})),o(document).on("click",".eael-toc-close ,.eael-toc-button",(function(e){e.stopPropagation(),o(".eael-toc").toggleClass("collapsed")}));var r=o("#eael-toc").data("eaeltoctag");""===r||isEditMode||e(c(),r),isEditMode&&(elementorFrontend.hooks.addAction("frontend/element_ready/widget",(function(t,a){var l=a("#eael-toc #eael-toc-list");if(l.find("li.eael-first-child").length<1&&l.length>=1){var o=a("#eael-toc").data("eaeltoctag");o&&e(c(),o)}})),elementor.settings.page.addChangeCallback("eael_ext_table_of_content",(function(t){var a=o(".eael-toc-global");if(a.length>0&&(a.attr("id","eael-toc-temp").removeClass("eael-toc").hide(),o(".eael-toc-global #eael-toc-list").attr("id","")),o("#eael-toc").remove(),"yes"===t){var l=elementor.settings.page.getSettings();o("body").append(function(e){var t=e.settings,a=t.eael_ext_toc_title,l="eael-toc-list eael-toc-list-"+t.eael_ext_table_of_content_list_style,o=t.eael_ext_table_of_content_header_icon.value,n="right"===t.eael_ext_toc_position?" eael-toc-right":" ";return l+="yes"===t.eael_ext_toc_collapse_sub_heading?" eael-toc-collapse":" ",'<div id="eael-toc" class="eael-toc eael-toc-disable '+n+'"><div class="eael-toc-header"><span class="eael-toc-close">×</span><h2 class="eael-toc-title">'+a+'</h2></div><div class="eael-toc-body"><ul id="eael-toc-list" class="'+(l+="number"===t.eael_ext_toc_list_icon?" eael-toc-number":" eael-toc-bullet")+'"></ul></div><button class="eael-toc-button"><i class="'+o+'"></i><span>'+a+"</span></button></div>"}(l)),e(c(),l.settings.eael_ext_toc_supported_heading_tag.join(", "))}else a.length>0&&a.addClass("eael-toc").attr("id","eael-toc").show()})),elementor.settings.page.addChangeCallback("eael_ext_toc_position",(function(e){"right"===e?o("#eael-toc").addClass("eael-toc-right"):o("#eael-toc").removeClass("eael-toc-right")})),elementor.settings.page.addChangeCallback("eael_ext_table_of_content_list_style",(function(e){var t=o(".eael-toc-list");t.removeClass("eael-toc-list-bar eael-toc-list-arrow"),"none"!==e&&t.addClass("eael-toc-list-"+e)})),elementor.settings.page.addChangeCallback("eael_ext_toc_collapse_sub_heading",(function(e){var t=o(".eael-toc-list");"yes"===e?t.addClass("eael-toc-collapse"):t.removeClass("eael-toc-collapse")})),elementor.settings.page.addChangeCallback("eael_ext_table_of_content_header_icon",(function(e){o(".eael-toc-button i").removeClass().addClass(e.value)})),elementor.settings.page.addChangeCallback("eael_ext_toc_list_icon",(function(e){var t=o(".eael-toc-list");"number"===e?t.addClass("eael-toc-number").removeClass("eael-toc-bullet"):t.addClass("eael-toc-bullet").removeClass("eael-toc-number")})),elementor.settings.page.addChangeCallback("eael_ext_toc_word_wrap",(function(e){var t=o(".eael-toc-list");"yes"===e?t.addClass("eael-toc-word-wrap"):t.removeClass("eael-toc-word-wrap")})),elementor.settings.page.addChangeCallback("eael_ext_toc_close_button_text_style",(function(e){var t=o("#eael-toc");"bottom_to_top"===e?t.addClass("eael-bottom-to-top"):t.removeClass("eael-bottom-to-top")})),elementor.settings.page.addChangeCallback("eael_ext_toc_box_shadow",(function(e){var t=o("#eael-toc");"yes"===e?t.addClass("eael-box-shadow"):t.removeClass("eael-box-shadow")})),elementor.settings.page.addChangeCallback("eael_ext_toc_auto_collapse",(function(e){var t=o("#eael-toc");"yes"===e?t.addClass("eael-toc-auto-collapse"):t.removeClass("eael-toc-auto-collapse")})),elementor.settings.page.addChangeCallback("eael_ext_toc_title",(function(e){elementorFrontend.elements.$document.find(".eael-toc-title").text(e),elementorFrontend.elements.$document.find(".eael-toc-button span").text(e)})))}))}});
assets/front-end/js/view/view.js CHANGED
@@ -485,7 +485,7 @@ eval("jQuery(document).ready(function () {\n // scroll func\n jQuery(window).s
485
  /*! no static exports found */
486
  /***/ (function(module, exports) {
487
 
488
- eval("var eaelsvPosition = '';\nvar eaelsvWidth = 0;\nvar eaelsvHeight = 0;\nvar eaelsvDomHeight = 0;\nvar videoIsActive = 'off';\nvar eaelMakeItSticky = 0;\nvar scrollHeight = 0;\njQuery(window).on('elementor/frontend/init', function () {\n if (isEditMode) {\n elementor.hooks.addAction('panel/open_editor/widget/eael-sticky-video', function (panel, model, view) {\n var interval;\n model.attributes.settings.on('change:eaelsv_sticky_width', function () {\n clearTimeout(interval);\n interval = setTimeout(function () {\n var height = Math.ceil(model.getSetting('eaelsv_sticky_width') / 1.78);\n model.attributes.settings.attributes.eaelsv_sticky_height = height;\n panel.el.querySelector('[data-setting=\"eaelsv_sticky_height\"]').value = height;\n }, 250);\n });\n model.attributes.settings.on('change:eaelsv_sticky_height', function () {\n clearTimeout(interval);\n interval = setTimeout(function () {\n var width = Math.ceil(model.getSetting('eaelsv_sticky_height') * 1.78);\n model.attributes.settings.attributes.eaelsv_sticky_width = width;\n panel.el.querySelector('[data-setting=\"eaelsv_sticky_width\"]').value = width;\n }, 250);\n });\n });\n }\n\n elementorFrontend.hooks.addAction('frontend/element_ready/eael-sticky-video.default', function ($scope, $) {\n $('.eaelsv-sticky-player-close', $scope).hide();\n var element = $scope.find('.eael-sticky-video-player2');\n var sticky = '';\n var autoplay = '';\n var overlay = '';\n sticky = element.data('sticky');\n autoplay = element.data('autoplay');\n eaelsvPosition = element.data('position');\n eaelsvHeight = element.data('sheight');\n eaelsvWidth = element.data('swidth');\n overlay = element.data('overlay');\n scrollHeight = element.data('scroll_height');\n PositionStickyPlayer(eaelsvPosition, eaelsvHeight, eaelsvWidth);\n var playerAbc = new Plyr('#eaelsv-player-' + $scope.data('id')); // If element is Sticky video\n\n if (overlay === 'no') {\n // If autoplay is enable\n if ('yes' === autoplay && sticky === 'yes') {\n eaelsvDomHeight = GetDomElementHeight(element);\n element.attr('id', 'videobox');\n videoIsActive = 'on'; // When play event is cliked\n // Do the sticky process\n\n PlayerPlay(playerAbc, element);\n }\n } // Overlay Operation Started\n\n\n if (overlay === 'yes') {\n var ovrlyElmnt = element.prev();\n videoIsActive = 'off';\n $(ovrlyElmnt).on('click', function () {\n $(this).css('display', 'none');\n\n if ($(this).next().data('autoplay') === 'yes') {\n playerAbc.restart();\n eaelsvDomHeight = GetDomElementHeight(this);\n\n if (sticky === 'yes') {\n $(this).next().attr('id', 'videobox');\n videoIsActive = 'on';\n }\n }\n });\n }\n\n playerAbc.on('pause', function (event) {\n videoIsActive = 'off';\n });\n playerAbc.on('play', function (event) {\n videoIsActive = 'on';\n });\n $('.eaelsv-sticky-player-close').on('click', function () {\n element.removeClass('out').addClass('in');\n $('.eael-sticky-video-player2').removeAttr('style');\n videoIsActive = 'off';\n });\n element.parent().css('height', element.height() + 'px');\n $(window).resize(function () {\n element.parent().css('height', element.height() + 'px');\n });\n });\n});\njQuery(window).scroll(function () {\n var scrollTop = jQuery(window).scrollTop();\n var scrollBottom = jQuery(document).height() - scrollTop;\n\n if (scrollBottom > jQuery(window).height() + 400) {\n if (scrollTop >= eaelsvDomHeight) {\n if (videoIsActive == 'on') {\n jQuery('#videobox').find('.eaelsv-sticky-player-close').css('display', 'block');\n jQuery('#videobox').removeClass('in').addClass('out');\n PositionStickyPlayer(eaelsvPosition, eaelsvHeight, eaelsvWidth);\n }\n } else {\n jQuery('.eaelsv-sticky-player-close').hide();\n jQuery('#videobox').removeClass('out').addClass('in');\n jQuery('.eael-sticky-video-player2').removeAttr('style');\n }\n }\n});\n\nfunction GetDomElementHeight(elem) {\n var contentHeight = jQuery(elem).parent().height();\n var expHeight = scrollHeight * contentHeight / 100;\n var hght = jQuery(elem).parent().offset().top + expHeight;\n return hght;\n}\n\nfunction PositionStickyPlayer(p, h, w) {\n if (p == 'top-left') {\n jQuery('.eael-sticky-video-player2.out').css('top', '40px');\n jQuery('.eael-sticky-video-player2.out').css('left', '40px');\n }\n\n if (p == 'top-right') {\n jQuery('.eael-sticky-video-player2.out').css('top', '40px');\n jQuery('.eael-sticky-video-player2.out').css('right', '40px');\n }\n\n if (p == 'bottom-right') {\n jQuery('.eael-sticky-video-player2.out').css('bottom', '40px');\n jQuery('.eael-sticky-video-player2.out').css('right', '40px');\n }\n\n if (p == 'bottom-left') {\n jQuery('.eael-sticky-video-player2.out').css('bottom', '40px');\n jQuery('.eael-sticky-video-player2.out').css('left', '40px');\n }\n\n jQuery('.eael-sticky-video-player2.out').css('width', w + 'px');\n jQuery('.eael-sticky-video-player2.out').css('height', h + 'px');\n}\n\nfunction PlayerPlay(a, b) {\n a.on('play', function (event) {\n eaelsvDomHeight = GetDomElementHeight(b);\n jQuery('.eael-sticky-video-player2').removeAttr('id');\n jQuery('.eael-sticky-video-player2').removeClass('out');\n b.attr('id', 'videobox');\n videoIsActive = 'on';\n eaelsvPosition = b.data('position');\n eaelsvHeight = b.data('sheight');\n eaelsvWidth = b.data('swidth');\n });\n}\n\nfunction RunStickyPlayer(elem) {\n var ovrplyer = new Plyr('#' + elem);\n ovrplyer.start();\n}\n\n//# sourceURL=webpack:///./src/js/view/sticky-video.js?");
489
 
490
  /***/ }),
491
 
@@ -496,7 +496,7 @@ eval("var eaelsvPosition = '';\nvar eaelsvWidth = 0;\nvar eaelsvHeight = 0;\nvar
496
  /*! no static exports found */
497
  /***/ (function(module, exports) {
498
 
499
- eval("(function ($) {\n jQuery(document).ready(function () {\n /**\n * add ID in main content heading tag\n * @param selector\n * @param supportTag\n */\n function eael_toc_content(selector, supportTag) {\n var listId = document.getElementById(\"eael-toc-list\");\n\n if (selector === null || supportTag === undefined || !listId) {\n return null;\n }\n\n var eaelToc = document.getElementById(\"eael-toc\");\n var titleUrl = typeof eaelToc.dataset.titleurl !== 'undefined' ? eaelToc.dataset.titleurl : 'false';\n var excludeArr = typeof eaelToc.dataset.excludeSelector !== 'undefined' ? eaelToc.dataset.excludeSelector.replace(/^,|,$/g, '') : '';\n var allSupportTag = [];\n var mainSelector = document.querySelectorAll(selector),\n listIndex = 0;\n\n for (var j = 0; j < mainSelector.length; j++) {\n var featchTag = mainSelector[j].querySelectorAll(supportTag);\n Array.prototype.push.apply(allSupportTag, featchTag);\n }\n\n allSupportTag = Array.prototype.slice.call(allSupportTag);\n allSupportTag.forEach(function (el) {\n if (eaelTocExclude(excludeArr, el)) {\n return;\n }\n\n el.id = listIndex + \"-\" + eael_build_id(titleUrl, el.textContent);\n el.classList.add(\"eael-heading-content\");\n listIndex++;\n }); //build toc list hierarchy\n\n eael_list_hierarchy(selector, supportTag);\n var firstChild = $(\"ul.eael-toc-list > li\");\n\n if (firstChild.length < 1) {\n document.getElementById(\"eael-toc\").classList.add(\"eael-toc-disable\");\n }\n\n firstChild.each(function () {\n this.classList.add(\"eael-first-child\");\n });\n }\n /**\n * Make toc list\n * @param selector\n * @param supportTag\n */\n\n\n function eael_list_hierarchy(selector, supportTag) {\n var tagList = supportTag;\n var parentLevel = '';\n var allHeadings = [];\n var eaelToc = document.getElementById(\"eael-toc\");\n var titleUrl = typeof eaelToc.dataset.titleurl !== 'undefined' ? eaelToc.dataset.titleurl : 'false';\n var listId = document.getElementById(\"eael-toc-list\");\n var excludeArr = typeof eaelToc.dataset.excludeselector !== 'undefined' ? eaelToc.dataset.excludeselector.replace(/^,|,$/g, '') : '';\n var mainContent = document.querySelectorAll(selector),\n baseTag = parentLevel = tagList.trim().split(\",\")[0].substr(1, 1),\n ListNode = listId;\n listId.innerHTML = \"\";\n\n for (var j = 0; j < mainContent.length; j++) {\n var featchTag = mainContent[j].querySelectorAll(tagList);\n Array.prototype.push.apply(allHeadings, featchTag);\n }\n\n if (allHeadings.length > 0) {\n document.getElementById(\"eael-toc\").classList.remove(\"eael-toc-disable\");\n }\n\n for (var i = 0, len = allHeadings.length; i < len; ++i) {\n var currentHeading = allHeadings[i];\n\n if (eaelTocExclude(excludeArr, currentHeading)) {\n continue;\n }\n\n var latestLavel = parseInt(currentHeading.tagName.substr(1, 1));\n var diff = latestLavel - parentLevel;\n\n if (diff > 0) {\n var containerLiNode = ListNode.lastChild;\n\n if (containerLiNode) {\n var createUlNode = document.createElement(\"UL\");\n containerLiNode.appendChild(createUlNode);\n ListNode = createUlNode;\n parentLevel = latestLavel;\n }\n }\n\n var sequenceParent = false;\n\n if (diff < 0) {\n while (0 !== diff++) {\n if (ListNode.parentNode.parentNode) {\n ListNode = ListNode.parentNode.parentNode;\n }\n }\n\n parentLevel = latestLavel;\n sequenceParent = true;\n }\n\n if (ListNode.tagName !== \"UL\") {\n ListNode = listId;\n }\n\n if (currentHeading.textContent.trim() === \"\") {\n continue;\n }\n\n var liNode = document.createElement(\"LI\");\n var anchorTag = document.createElement(\"A\");\n var spanTag = document.createElement(\"SPAN\");\n\n if (baseTag === parentLevel || sequenceParent) {\n liNode.setAttribute(\"itemscope\", \"\");\n liNode.setAttribute(\"itemtype\", \"http://schema.org/ListItem\");\n liNode.setAttribute(\"itemprop\", \"itemListElement\");\n }\n\n var Linkid = \"#\" + i + \"-\" + eael_build_id(titleUrl, currentHeading.textContent);\n anchorTag.className = \"eael-toc-link\";\n anchorTag.setAttribute(\"itemprop\", \"item\");\n anchorTag.setAttribute(\"href\", Linkid);\n spanTag.appendChild(document.createTextNode(currentHeading.textContent));\n anchorTag.appendChild(spanTag);\n liNode.appendChild(anchorTag);\n ListNode.appendChild(liNode);\n }\n } // expand collapse\n\n\n $(document).on(\"click\", \"ul.eael-toc-list a\", function (e) {\n e.preventDefault();\n $(document).off(\"scroll\");\n var target = this.hash;\n history.pushState(\"\", document.title, window.location.pathname + window.location.search);\n var parentLi = $(this).parent();\n\n if (parentLi.is(\".eael-highlight-parent.eael-highlight-active\")) {\n window.location.hash = target;\n return false;\n }\n\n $(\".eael-highlight-active, .eael-highlight-parent\").removeClass(\"eael-highlight-active eael-highlight-parent\");\n $(this).closest(\".eael-first-child\").addClass(\"eael-highlight-parent\");\n $(this).parent().addClass(\"eael-highlight-active\");\n window.location.hash = target;\n }); //some site not working with **window.onscroll**\n\n window.addEventListener('scroll', function (e) {\n eaelTocSticky();\n });\n var stickyScroll = $('#eael-toc').data('stickyscroll');\n /**\n * Check selector in array\n *\n * @param arr\n * @param el\n * @returns boolean\n */\n\n function eaelTocExclude(excludes, el) {\n return $(el).closest(excludes).length;\n }\n /**\n * check sticky\n */\n\n\n function eaelTocSticky() {\n var eaelToc = document.getElementById(\"eael-toc\");\n\n if (!eaelToc) {\n return;\n }\n\n stickyScroll = stickyScroll !== undefined ? stickyScroll : 200;\n\n if (window.pageYOffset >= stickyScroll && !eaelToc.classList.contains('eael-toc-disable')) {\n eaelToc.classList.add(\"eael-sticky\");\n } else {\n eaelToc.classList.remove(\"eael-sticky\");\n }\n }\n /**\n *\n * @param content\n * @returns {string}\n */\n\n\n function eael_build_id(showTitle, title) {\n if (showTitle == 'true' && title != '') {\n //create slug from Heading text\n return title.toString().toLowerCase().normalize('NFD').trim().replace(/[^a-z0-9 -]/g, '').replace(/\\s+/g, '-').replace(/^-+/, \"\").replace(/-+$/, \"\").replace(/-+/g, '-');\n } else {\n return \"eael-table-of-content\";\n }\n }\n /**\n *\n * @returns {null|selector}\n */\n\n\n function eael_toc_check_content() {\n var eaelToc = document.getElementById(\"eael-toc\");\n\n if (eaelToc && eaelToc.dataset.contentselector) {\n return eaelToc.dataset.contentselector;\n }\n\n var contentSelectro = '.site-content';\n\n if ($(\".site-content\")[0]) {\n contentSelectro = \".site-content\";\n } else if ($(\".elementor-inner\")[0]) {\n contentSelectro = \".elementor-inner\";\n } else if ($(\"#site-content\")[0]) {\n contentSelectro = \"#site-content\";\n }\n\n return contentSelectro;\n } //toc auto collapse\n\n\n $(\"body\").click(function (e) {\n var target = $(e.target);\n var eaToc = $(\"#eael-toc\");\n\n if (eaToc.hasClass(\"eael-toc-auto-collapse\") && eaToc.hasClass(\"eael-sticky\") && !eaToc.hasClass(\"collapsed\") && $(target).closest(\"#eael-toc\").length === 0) {\n eaToc.toggleClass(\"collapsed\");\n }\n });\n $(document).on(\"click\", \".eael-toc-close ,.eael-toc-button\", function (event) {\n event.stopPropagation();\n $(\".eael-toc\").toggleClass(\"collapsed\");\n });\n\n function eael_build_toc($settings) {\n var pageSetting = $settings.settings,\n title = pageSetting.eael_ext_toc_title,\n toc_style_class = \"eael-toc-list eael-toc-list-\" + pageSetting.eael_ext_table_of_content_list_style,\n icon = pageSetting.eael_ext_table_of_content_header_icon.value,\n el_class = pageSetting.eael_ext_toc_position === \"right\" ? \" eael-toc-right\" : \" \";\n toc_style_class += pageSetting.eael_ext_toc_collapse_sub_heading === \"yes\" ? \" eael-toc-collapse\" : \" \";\n toc_style_class += pageSetting.eael_ext_toc_list_icon === \"number\" ? \" eael-toc-number\" : \" eael-toc-bullet\";\n return '<div id=\"eael-toc\" class=\"eael-toc eael-toc-disable ' + el_class + '\">' + '<div class=\"eael-toc-header\"><span class=\"eael-toc-close\">×</span><h2 class=\"eael-toc-title\">' + title + \"</h2></div>\" + '<div class=\"eael-toc-body\"><ul id=\"eael-toc-list\" class=\"' + toc_style_class + '\"></ul></div>' + '<button class=\"eael-toc-button\"><i class=\"' + icon + '\"></i><span>' + title + \"</span></button>\" + \"</div>\";\n }\n\n var intSupportTag = $(\"#eael-toc\").data(\"eaeltoctag\");\n\n if (intSupportTag !== \"\") {\n eael_toc_content(eael_toc_check_content(), intSupportTag);\n } //editor mode\n\n\n if (isEditMode) {\n var eael_toc_list_collapse = function eael_toc_list_collapse(newValue) {\n var list = $(\".eael-toc-list\");\n\n if (newValue === \"yes\") {\n list.addClass(\"eael-toc-collapse\");\n } else {\n list.removeClass(\"eael-toc-collapse\");\n }\n };\n\n var ea_toc_title_change = function ea_toc_title_change(newValue) {\n elementorFrontend.elements.$document.find(\".eael-toc-title\").text(newValue);\n elementorFrontend.elements.$document.find(\".eael-toc-button span\").text(newValue);\n };\n\n elementorFrontend.hooks.addAction('frontend/element_ready/widget', function ($scope, $) {\n var tocLoad = $('#eael-toc #eael-toc-list');\n var TocList = tocLoad.find('li.eael-first-child');\n\n if (TocList.length < 1 && tocLoad.length >= 1) {\n var tagList = $(\"#eael-toc\").data(\"eaeltoctag\");\n\n if (tagList) {\n eael_toc_content(eael_toc_check_content(), tagList);\n }\n }\n });\n elementor.settings.page.addChangeCallback(\"eael_ext_table_of_content\", function (newValue) {\n var tocGlobal = $(\".eael-toc-global\");\n\n if (tocGlobal.length > 0) {\n tocGlobal.attr(\"id\", \"eael-toc-temp\").removeClass(\"eael-toc\").hide();\n $(\".eael-toc-global #eael-toc-list\").attr(\"id\", \"\");\n }\n\n $(\"#eael-toc\").remove();\n\n if (newValue === \"yes\") {\n var $settings = elementor.settings.page.getSettings();\n $(\"body\").append(eael_build_toc($settings));\n eael_toc_content(eael_toc_check_content(), $settings.settings.eael_ext_toc_supported_heading_tag.join(\", \"));\n } else {\n if (tocGlobal.length > 0) {\n tocGlobal.addClass(\"eael-toc\").attr(\"id\", \"eael-toc\").show();\n }\n }\n });\n elementor.settings.page.addChangeCallback(\"eael_ext_toc_position\", function (newValue) {\n if (newValue === \"right\") {\n $(\"#eael-toc\").addClass(\"eael-toc-right\");\n } else {\n $(\"#eael-toc\").removeClass(\"eael-toc-right\");\n }\n });\n elementor.settings.page.addChangeCallback(\"eael_ext_table_of_content_list_style\", function (newValue) {\n var list = $(\".eael-toc-list\");\n list.removeClass(\"eael-toc-list-bar eael-toc-list-arrow\");\n\n if (newValue !== \"none\") {\n list.addClass(\"eael-toc-list-\" + newValue);\n }\n });\n elementor.settings.page.addChangeCallback(\"eael_ext_toc_collapse_sub_heading\", eael_toc_list_collapse);\n elementor.settings.page.addChangeCallback(\"eael_ext_table_of_content_header_icon\", function (newValue) {\n var iconElement = $(\".eael-toc-button i\");\n iconElement.removeClass().addClass(newValue.value);\n });\n elementor.settings.page.addChangeCallback(\"eael_ext_toc_list_icon\", function (newValue) {\n var list = $(\".eael-toc-list\");\n\n if (newValue === \"number\") {\n list.addClass(\"eael-toc-number\").removeClass(\"eael-toc-bullet\");\n } else {\n list.addClass(\"eael-toc-bullet\").removeClass(\"eael-toc-number\");\n }\n });\n elementor.settings.page.addChangeCallback(\"eael_ext_toc_word_wrap\", function (newValue) {\n var list = $(\".eael-toc-list\");\n\n if (newValue === \"yes\") {\n list.addClass(\"eael-toc-word-wrap\");\n } else {\n list.removeClass(\"eael-toc-word-wrap\");\n }\n });\n elementor.settings.page.addChangeCallback(\"eael_ext_toc_close_button_text_style\", function (newValue) {\n var toc = $(\"#eael-toc\");\n\n if (newValue === \"bottom_to_top\") {\n toc.addClass(\"eael-bottom-to-top\");\n } else {\n toc.removeClass(\"eael-bottom-to-top\");\n }\n });\n elementor.settings.page.addChangeCallback(\"eael_ext_toc_box_shadow\", function (newValue) {\n var toc = $(\"#eael-toc\");\n\n if (newValue === \"yes\") {\n toc.addClass(\"eael-box-shadow\");\n } else {\n toc.removeClass(\"eael-box-shadow\");\n }\n });\n elementor.settings.page.addChangeCallback(\"eael_ext_toc_auto_collapse\", function (newValue) {\n var toc = $(\"#eael-toc\");\n\n if (newValue === \"yes\") {\n toc.addClass(\"eael-toc-auto-collapse\");\n } else {\n toc.removeClass(\"eael-toc-auto-collapse\");\n }\n });\n elementor.settings.page.addChangeCallback(\"eael_ext_toc_title\", ea_toc_title_change);\n }\n });\n})(jQuery);\n\n//# sourceURL=webpack:///./src/js/view/table-of-content.js?");
500
 
501
  /***/ }),
502
 
485
  /*! no static exports found */
486
  /***/ (function(module, exports) {
487
 
488
+ eval("var eaelsvPosition = '';\nvar eaelsvWidth = 0;\nvar eaelsvHeight = 0;\nvar eaelsvDomHeight = 0;\nvar videoIsActive = 'off';\nvar eaelMakeItSticky = 0;\nvar scrollHeight = 0;\njQuery(window).on('elementor/frontend/init', function () {\n if (isEditMode) {\n elementor.hooks.addAction('panel/open_editor/widget/eael-sticky-video', function (panel, model, view) {\n var interval;\n model.attributes.settings.on('change:eaelsv_sticky_width', function () {\n clearTimeout(interval);\n interval = setTimeout(function () {\n var height = Math.ceil(model.getSetting('eaelsv_sticky_width') / 1.78);\n model.attributes.settings.attributes.eaelsv_sticky_height = height;\n panel.el.querySelector('[data-setting=\"eaelsv_sticky_height\"]').value = height;\n }, 250);\n });\n model.attributes.settings.on('change:eaelsv_sticky_height', function () {\n clearTimeout(interval);\n interval = setTimeout(function () {\n var width = Math.ceil(model.getSetting('eaelsv_sticky_height') * 1.78);\n model.attributes.settings.attributes.eaelsv_sticky_width = width;\n panel.el.querySelector('[data-setting=\"eaelsv_sticky_width\"]').value = width;\n }, 250);\n });\n });\n }\n\n elementorFrontend.hooks.addAction('frontend/element_ready/eael-sticky-video.default', function ($scope, $) {\n $('.eaelsv-sticky-player-close', $scope).hide();\n var element = $scope.find('.eael-sticky-video-player2');\n var sticky = '';\n var autoplay = '';\n var overlay = '';\n sticky = element.data('sticky');\n autoplay = element.data('autoplay');\n eaelsvPosition = element.data('position');\n eaelsvHeight = element.data('sheight');\n eaelsvWidth = element.data('swidth');\n overlay = element.data('overlay');\n scrollHeight = element.data('scroll_height');\n PositionStickyPlayer(eaelsvPosition, eaelsvHeight, eaelsvWidth);\n var playerAbc = new Plyr('#eaelsv-player-' + $scope.data('id')); // If element is Sticky video\n\n if (overlay === 'no') {\n // If autoplay is enable\n if ('yes' === autoplay && sticky === 'yes') {\n eaelsvDomHeight = GetDomElementHeight(element);\n element.attr('id', 'videobox');\n videoIsActive = 'on'; // When play event is cliked\n // Do the sticky process\n\n PlayerPlay(playerAbc, element);\n }\n } // Overlay Operation Started\n\n\n if (overlay === 'yes') {\n var ovrlyElmnt = element.prev();\n videoIsActive = 'off';\n $(ovrlyElmnt).on('click', function () {\n $('.eael-sticky-video-wrapper > i').hide();\n $(this).css('display', 'none');\n\n if ($(this).next().data('autoplay') === 'yes') {\n playerAbc.restart();\n eaelsvDomHeight = GetDomElementHeight(this);\n\n if (sticky === 'yes') {\n $(this).next().attr('id', 'videobox');\n videoIsActive = 'on';\n }\n }\n });\n }\n\n playerAbc.on('pause', function (event) {\n videoIsActive = 'off';\n });\n playerAbc.on('play', function (event) {\n videoIsActive = 'on';\n });\n $('.eaelsv-sticky-player-close').on('click', function () {\n element.removeClass('out').addClass('in');\n $('.eael-sticky-video-player2').removeAttr('style');\n videoIsActive = 'off';\n });\n element.parent().css('height', element.height() + 'px');\n $(window).resize(function () {\n element.parent().css('height', element.height() + 'px');\n });\n });\n});\njQuery(window).scroll(function () {\n var scrollTop = jQuery(window).scrollTop();\n var scrollBottom = jQuery(document).height() - scrollTop;\n\n if (scrollBottom > jQuery(window).height() + 400) {\n if (scrollTop >= eaelsvDomHeight) {\n if (videoIsActive == 'on') {\n jQuery('#videobox').find('.eaelsv-sticky-player-close').css('display', 'block');\n jQuery('#videobox').removeClass('in').addClass('out');\n PositionStickyPlayer(eaelsvPosition, eaelsvHeight, eaelsvWidth);\n }\n } else {\n jQuery('.eaelsv-sticky-player-close').hide();\n jQuery('#videobox').removeClass('out').addClass('in');\n jQuery('.eael-sticky-video-player2').removeAttr('style');\n }\n }\n});\n\nfunction GetDomElementHeight(elem) {\n var contentHeight = jQuery(elem).parent().height();\n var expHeight = scrollHeight * contentHeight / 100;\n var hght = jQuery(elem).parent().offset().top + expHeight;\n return hght;\n}\n\nfunction PositionStickyPlayer(p, h, w) {\n if (p == 'top-left') {\n jQuery('.eael-sticky-video-player2.out').css('top', '40px');\n jQuery('.eael-sticky-video-player2.out').css('left', '40px');\n }\n\n if (p == 'top-right') {\n jQuery('.eael-sticky-video-player2.out').css('top', '40px');\n jQuery('.eael-sticky-video-player2.out').css('right', '40px');\n }\n\n if (p == 'bottom-right') {\n jQuery('.eael-sticky-video-player2.out').css('bottom', '40px');\n jQuery('.eael-sticky-video-player2.out').css('right', '40px');\n }\n\n if (p == 'bottom-left') {\n jQuery('.eael-sticky-video-player2.out').css('bottom', '40px');\n jQuery('.eael-sticky-video-player2.out').css('left', '40px');\n }\n\n jQuery('.eael-sticky-video-player2.out').css('width', w + 'px');\n jQuery('.eael-sticky-video-player2.out').css('height', h + 'px');\n}\n\nfunction PlayerPlay(a, b) {\n a.on('play', function (event) {\n eaelsvDomHeight = GetDomElementHeight(b);\n jQuery('.eael-sticky-video-player2').removeAttr('id');\n jQuery('.eael-sticky-video-player2').removeClass('out');\n b.attr('id', 'videobox');\n videoIsActive = 'on';\n eaelsvPosition = b.data('position');\n eaelsvHeight = b.data('sheight');\n eaelsvWidth = b.data('swidth');\n });\n}\n\nfunction RunStickyPlayer(elem) {\n var ovrplyer = new Plyr('#' + elem);\n ovrplyer.start();\n}\n\n//# sourceURL=webpack:///./src/js/view/sticky-video.js?");
489
 
490
  /***/ }),
491
 
496
  /*! no static exports found */
497
  /***/ (function(module, exports) {
498
 
499
+ eval("function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && Symbol.iterator in Object(iter)) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\n(function ($) {\n jQuery(document).ready(function () {\n /**\n * add ID in main content heading tag\n * @param selector\n * @param supportTag\n */\n function eael_toc_content(selector, supportTag) {\n var listId = document.getElementById(\"eael-toc-list\");\n\n if (selector === null || supportTag === undefined || !listId) {\n return null;\n }\n\n var eaelToc = document.getElementById(\"eael-toc\");\n var titleUrl = typeof eaelToc.dataset.titleurl !== 'undefined' ? eaelToc.dataset.titleurl : 'false';\n var excludeArr = typeof eaelToc.dataset.excludeSelector !== 'undefined' ? eaelToc.dataset.excludeSelector.replace(/^,|,$/g, '') : '';\n var allSupportTag = [];\n var mainSelector = document.querySelectorAll(selector),\n listIndex = 0;\n\n for (var j = 0; j < mainSelector.length; j++) {\n allSupportTag = [].concat(_toConsumableArray(allSupportTag), _toConsumableArray(mainSelector[j].querySelectorAll(supportTag)));\n }\n\n allSupportTag = Array.from(new Set(allSupportTag));\n allSupportTag.forEach(function (el) {\n if (eaelTocExclude(excludeArr, el)) {\n return;\n }\n\n el.id = listIndex + \"-\" + eael_build_id(titleUrl, el.textContent);\n el.classList.add(\"eael-heading-content\");\n listIndex++;\n }); //build toc list hierarchy\n\n eael_list_hierarchy(selector, supportTag, allSupportTag);\n var firstChild = $(\"ul.eael-toc-list > li\");\n\n if (firstChild.length < 1) {\n document.getElementById(\"eael-toc\").classList.add(\"eael-toc-disable\");\n }\n\n firstChild.each(function () {\n this.classList.add(\"eael-first-child\");\n });\n }\n /**\n * Make toc list\n * @param selector\n * @param supportTag\n */\n\n\n function eael_list_hierarchy(selector, supportTag, allSupportTagList) {\n var tagList = supportTag;\n var allHeadings = allSupportTagList;\n var eaelToc = document.getElementById(\"eael-toc\");\n var titleUrl = typeof eaelToc.dataset.titleurl !== 'undefined' ? eaelToc.dataset.titleurl : 'false';\n var listId = document.getElementById(\"eael-toc-list\");\n var excludeArr = typeof eaelToc.dataset.excludeselector !== 'undefined' ? eaelToc.dataset.excludeselector.replace(/^,|,$/g, '') : '';\n var parentLevel = '',\n baseTag = parentLevel = tagList.trim().split(\",\")[0].substr(1, 1),\n ListNode = listId;\n listId.innerHTML = \"\";\n\n if (allHeadings.length > 0) {\n document.getElementById(\"eael-toc\").classList.remove(\"eael-toc-disable\");\n }\n\n for (var i = 0, len = allHeadings.length; i < len; ++i) {\n var currentHeading = allHeadings[i];\n\n if (eaelTocExclude(excludeArr, currentHeading)) {\n continue;\n }\n\n var latestLavel = parseInt(currentHeading.tagName.substr(1, 1));\n var diff = latestLavel - parentLevel;\n\n if (diff > 0) {\n var containerLiNode = ListNode.lastChild;\n\n if (containerLiNode) {\n var createUlNode = document.createElement(\"UL\");\n containerLiNode.appendChild(createUlNode);\n ListNode = createUlNode;\n parentLevel = latestLavel;\n }\n }\n\n var sequenceParent = false;\n\n if (diff < 0) {\n while (0 !== diff++) {\n if (ListNode.parentNode.parentNode) {\n ListNode = ListNode.parentNode.parentNode;\n }\n }\n\n parentLevel = latestLavel;\n sequenceParent = true;\n }\n\n if (ListNode.tagName !== \"UL\") {\n ListNode = listId;\n }\n\n if (currentHeading.textContent.trim() === \"\") {\n continue;\n }\n\n var liNode = document.createElement(\"LI\");\n var anchorTag = document.createElement(\"A\");\n var spanTag = document.createElement(\"SPAN\");\n\n if (baseTag === parentLevel || sequenceParent) {\n liNode.setAttribute(\"itemscope\", \"\");\n liNode.setAttribute(\"itemtype\", \"http://schema.org/ListItem\");\n liNode.setAttribute(\"itemprop\", \"itemListElement\");\n }\n\n var Linkid = \"#\" + i + \"-\" + eael_build_id(titleUrl, currentHeading.textContent);\n anchorTag.className = \"eael-toc-link\";\n anchorTag.setAttribute(\"itemprop\", \"item\");\n anchorTag.setAttribute(\"href\", Linkid);\n spanTag.appendChild(document.createTextNode(currentHeading.textContent));\n anchorTag.appendChild(spanTag);\n liNode.appendChild(anchorTag);\n ListNode.appendChild(liNode);\n }\n } // expand collapse\n\n\n $(document).on(\"click\", \"ul.eael-toc-list a\", function (e) {\n e.preventDefault();\n $(document).off(\"scroll\");\n var target = this.hash;\n history.pushState(\"\", document.title, window.location.pathname + window.location.search);\n var parentLi = $(this).parent();\n\n if (parentLi.is(\".eael-highlight-parent.eael-highlight-active\")) {\n window.location.hash = target;\n return false;\n }\n\n $(\".eael-highlight-active, .eael-highlight-parent\").removeClass(\"eael-highlight-active eael-highlight-parent\");\n $(this).closest(\".eael-first-child\").addClass(\"eael-highlight-parent\");\n $(this).parent().addClass(\"eael-highlight-active\");\n window.location.hash = target;\n }); //some site not working with **window.onscroll**\n\n window.addEventListener('scroll', function (e) {\n eaelTocSticky();\n });\n var stickyScroll = $('#eael-toc').data('stickyscroll');\n /**\n * Check selector in array\n *\n * @param arr\n * @param el\n * @returns boolean\n */\n\n function eaelTocExclude(excludes, el) {\n return $(el).closest(excludes).length;\n }\n /**\n * check sticky\n */\n\n\n function eaelTocSticky() {\n var eaelToc = document.getElementById(\"eael-toc\");\n\n if (!eaelToc) {\n return;\n }\n\n stickyScroll = stickyScroll !== undefined ? stickyScroll : 200;\n\n if (window.pageYOffset >= stickyScroll && !eaelToc.classList.contains('eael-toc-disable')) {\n eaelToc.classList.add(\"eael-sticky\");\n } else {\n eaelToc.classList.remove(\"eael-sticky\");\n }\n }\n /**\n *\n * @param content\n * @returns {string}\n */\n\n\n function eael_build_id(showTitle, title) {\n if (showTitle == 'true' && title != '') {\n //create slug from Heading text\n return title.toString().toLowerCase().normalize('NFD').trim().replace(/[^a-z0-9 -]/g, '').replace(/\\s+/g, '-').replace(/^-+/, \"\").replace(/-+$/, \"\").replace(/-+/g, '-');\n } else {\n return \"eael-table-of-content\";\n }\n }\n /**\n *\n * @returns {null|selector}\n */\n\n\n function eael_toc_check_content() {\n var eaelToc = document.getElementById(\"eael-toc\");\n\n if (eaelToc && eaelToc.dataset.contentselector) {\n return eaelToc.dataset.contentselector;\n }\n\n var contentSelectro = '.site-content';\n\n if ($(\".site-content\")[0]) {\n contentSelectro = \".site-content\";\n } else if ($(\".elementor-inner\")[0]) {\n contentSelectro = \".elementor-inner\";\n } else if ($(\"#site-content\")[0]) {\n contentSelectro = \"#site-content\";\n }\n\n return contentSelectro;\n } //toc auto collapse\n\n\n $(\"body\").click(function (e) {\n var target = $(e.target);\n var eaToc = $(\"#eael-toc\");\n\n if (eaToc.hasClass(\"eael-toc-auto-collapse\") && eaToc.hasClass(\"eael-sticky\") && !eaToc.hasClass(\"collapsed\") && $(target).closest(\"#eael-toc\").length === 0) {\n eaToc.toggleClass(\"collapsed\");\n }\n });\n $(document).on(\"click\", \".eael-toc-close ,.eael-toc-button\", function (event) {\n event.stopPropagation();\n $(\".eael-toc\").toggleClass(\"collapsed\");\n });\n\n function eael_build_toc($settings) {\n var pageSetting = $settings.settings,\n title = pageSetting.eael_ext_toc_title,\n toc_style_class = \"eael-toc-list eael-toc-list-\" + pageSetting.eael_ext_table_of_content_list_style,\n icon = pageSetting.eael_ext_table_of_content_header_icon.value,\n el_class = pageSetting.eael_ext_toc_position === \"right\" ? \" eael-toc-right\" : \" \";\n toc_style_class += pageSetting.eael_ext_toc_collapse_sub_heading === \"yes\" ? \" eael-toc-collapse\" : \" \";\n toc_style_class += pageSetting.eael_ext_toc_list_icon === \"number\" ? \" eael-toc-number\" : \" eael-toc-bullet\";\n return '<div id=\"eael-toc\" class=\"eael-toc eael-toc-disable ' + el_class + '\">' + '<div class=\"eael-toc-header\"><span class=\"eael-toc-close\">×</span><h2 class=\"eael-toc-title\">' + title + \"</h2></div>\" + '<div class=\"eael-toc-body\"><ul id=\"eael-toc-list\" class=\"' + toc_style_class + '\"></ul></div>' + '<button class=\"eael-toc-button\"><i class=\"' + icon + '\"></i><span>' + title + \"</span></button>\" + \"</div>\";\n }\n\n var intSupportTag = $(\"#eael-toc\").data(\"eaeltoctag\");\n\n if (intSupportTag !== \"\" && !isEditMode) {\n eael_toc_content(eael_toc_check_content(), intSupportTag);\n } //editor mode\n\n\n if (isEditMode) {\n var eael_toc_list_collapse = function eael_toc_list_collapse(newValue) {\n var list = $(\".eael-toc-list\");\n\n if (newValue === \"yes\") {\n list.addClass(\"eael-toc-collapse\");\n } else {\n list.removeClass(\"eael-toc-collapse\");\n }\n };\n\n var ea_toc_title_change = function ea_toc_title_change(newValue) {\n elementorFrontend.elements.$document.find(\".eael-toc-title\").text(newValue);\n elementorFrontend.elements.$document.find(\".eael-toc-button span\").text(newValue);\n };\n\n elementorFrontend.hooks.addAction('frontend/element_ready/widget', function ($scope, $) {\n var tocLoad = $('#eael-toc #eael-toc-list');\n var TocList = tocLoad.find('li.eael-first-child');\n\n if (TocList.length < 1 && tocLoad.length >= 1) {\n var tagList = $(\"#eael-toc\").data(\"eaeltoctag\");\n\n if (tagList) {\n eael_toc_content(eael_toc_check_content(), tagList);\n }\n }\n });\n elementor.settings.page.addChangeCallback(\"eael_ext_table_of_content\", function (newValue) {\n var tocGlobal = $(\".eael-toc-global\");\n\n if (tocGlobal.length > 0) {\n tocGlobal.attr(\"id\", \"eael-toc-temp\").removeClass(\"eael-toc\").hide();\n $(\".eael-toc-global #eael-toc-list\").attr(\"id\", \"\");\n }\n\n $(\"#eael-toc\").remove();\n\n if (newValue === \"yes\") {\n var $settings = elementor.settings.page.getSettings();\n $(\"body\").append(eael_build_toc($settings));\n eael_toc_content(eael_toc_check_content(), $settings.settings.eael_ext_toc_supported_heading_tag.join(\", \"));\n } else {\n if (tocGlobal.length > 0) {\n tocGlobal.addClass(\"eael-toc\").attr(\"id\", \"eael-toc\").show();\n }\n }\n });\n elementor.settings.page.addChangeCallback(\"eael_ext_toc_position\", function (newValue) {\n if (newValue === \"right\") {\n $(\"#eael-toc\").addClass(\"eael-toc-right\");\n } else {\n $(\"#eael-toc\").removeClass(\"eael-toc-right\");\n }\n });\n elementor.settings.page.addChangeCallback(\"eael_ext_table_of_content_list_style\", function (newValue) {\n var list = $(\".eael-toc-list\");\n list.removeClass(\"eael-toc-list-bar eael-toc-list-arrow\");\n\n if (newValue !== \"none\") {\n list.addClass(\"eael-toc-list-\" + newValue);\n }\n });\n elementor.settings.page.addChangeCallback(\"eael_ext_toc_collapse_sub_heading\", eael_toc_list_collapse);\n elementor.settings.page.addChangeCallback(\"eael_ext_table_of_content_header_icon\", function (newValue) {\n var iconElement = $(\".eael-toc-button i\");\n iconElement.removeClass().addClass(newValue.value);\n });\n elementor.settings.page.addChangeCallback(\"eael_ext_toc_list_icon\", function (newValue) {\n var list = $(\".eael-toc-list\");\n\n if (newValue === \"number\") {\n list.addClass(\"eael-toc-number\").removeClass(\"eael-toc-bullet\");\n } else {\n list.addClass(\"eael-toc-bullet\").removeClass(\"eael-toc-number\");\n }\n });\n elementor.settings.page.addChangeCallback(\"eael_ext_toc_word_wrap\", function (newValue) {\n var list = $(\".eael-toc-list\");\n\n if (newValue === \"yes\") {\n list.addClass(\"eael-toc-word-wrap\");\n } else {\n list.removeClass(\"eael-toc-word-wrap\");\n }\n });\n elementor.settings.page.addChangeCallback(\"eael_ext_toc_close_button_text_style\", function (newValue) {\n var toc = $(\"#eael-toc\");\n\n if (newValue === \"bottom_to_top\") {\n toc.addClass(\"eael-bottom-to-top\");\n } else {\n toc.removeClass(\"eael-bottom-to-top\");\n }\n });\n elementor.settings.page.addChangeCallback(\"eael_ext_toc_box_shadow\", function (newValue) {\n var toc = $(\"#eael-toc\");\n\n if (newValue === \"yes\") {\n toc.addClass(\"eael-box-shadow\");\n } else {\n toc.removeClass(\"eael-box-shadow\");\n }\n });\n elementor.settings.page.addChangeCallback(\"eael_ext_toc_auto_collapse\", function (newValue) {\n var toc = $(\"#eael-toc\");\n\n if (newValue === \"yes\") {\n toc.addClass(\"eael-toc-auto-collapse\");\n } else {\n toc.removeClass(\"eael-toc-auto-collapse\");\n }\n });\n elementor.settings.page.addChangeCallback(\"eael_ext_toc_title\", ea_toc_title_change);\n }\n });\n})(jQuery);\n\n//# sourceURL=webpack:///./src/js/view/table-of-content.js?");
500
 
501
  /***/ }),
502
 
assets/front-end/js/view/view.min.js CHANGED
@@ -1 +1 @@
1
- !function(e){var t={};function a(o){if(t[o])return t[o].exports;var n=t[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=e,a.c=t,a.d=function(e,t,o){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(a.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)a.d(o,n,function(t){return e[t]}.bind(null,n));return o},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=0)}([function(e,t,a){a(67),a(1),a(2),a(3),a(4),a(5),a(6),a(7),a(8),a(9),a(10),a(11),a(12),a(13),a(14),a(15),a(16),a(17),a(18),a(19),a(20),e.exports=a(21)},function(e,t){var a=function(e,t){var a=e.find(".eael-adv-accordion"),o=e.find(".eael-accordion-header"),n=a.data("accordion-type"),r=a.data("toogle-speed");o.each((function(){t(this).hasClass("active-default")&&(t(this).addClass("show active"),t(this).next().slideDown(r))})),o.unbind("click"),o.click((function(e){e.preventDefault();var a=t(this);"accordion"===n?a.hasClass("show")?(a.removeClass("show active"),a.next().slideUp(r)):(a.parent().parent().find(".eael-accordion-header").removeClass("show active"),a.parent().parent().find(".eael-accordion-content").slideUp(r),a.toggleClass("show active"),a.next().slideToggle(r)):a.hasClass("show")?(a.removeClass("show active"),a.next().slideUp(r)):(a.addClass("show active"),a.next().slideDown(r))}))};jQuery(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/eael-adv-accordion.default",a)}))},function(e,t){function a(e,t){for(var a=0;a<t.length;a++){var o=t[a];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),elementorFrontend.hooks.addAction("frontend/element_ready/eael-advanced-data-table.default",this.initFrontend.bind(this))}var t,o,n;return t=e,(o=[{key:"initFrontend",value:function(e,t){var a=e.context.querySelector(".ea-advanced-data-table"),o=e.context.querySelector(".ea-advanced-data-table-search"),n=e.context.querySelector(".ea-advanced-data-table-pagination"),r={};ea.isEditMode||null===a||(this.initTableSearch(a,o,n),this.initTableSort(a,n,r),this.initTablePagination(a,n,r),this.initWooFeatures(a))}},{key:"initTableSearch",value:function(e,t,a){t&&t.addEventListener("input",(function(t){var o=t.target.value.toLowerCase(),n=e.classList.contains("ea-advanced-data-table-sortable"),r="thead"==e.rows[0].parentNode.tagName.toLowerCase()?1:0;if(e.rows.length>1)if(o.length>0){n&&e.classList.add("ea-advanced-data-table-unsortable"),a&&a.innerHTML.length>0&&(a.style.display="none");for(var i=r;i<e.rows.length;i++){var l=!1;if(e.rows[i].cells.length>0)for(var s=0;s<e.rows[i].cells.length;s++)if(e.rows[i].cells[s].textContent.toLowerCase().indexOf(o)>-1){l=!0;break}e.rows[i].style.display=l?"table-row":"none"}}else if(n&&e.classList.remove("ea-advanced-data-table-unsortable"),a&&a.innerHTML.length>0){a.style.display="";for(var d=a.querySelector(".ea-advanced-data-table-pagination-current").dataset.page,c=(d-1)*e.dataset.itemsPerPage+1,u=d*e.dataset.itemsPerPage,f=1;f<=e.rows.length-1;f++)e.rows[f].style.display=f>=c&&f<=u?"table-row":"none"}else for(var m=1;m<=e.rows.length-1;m++)e.rows[m].style.display="table-row"}))}},{key:"initTableSort",value:function(e,t,a){e.classList.contains("ea-advanced-data-table-sortable")&&e.addEventListener("click",(function(o){if("th"===o.target.tagName.toLowerCase()){var n=o.target.cellIndex,r=1,i=1,l=e.rows.length-1,s="",d=o.target.classList,c=[],u=e.cloneNode(!0);d.contains("asc")?(o.target.classList.remove("asc"),o.target.classList.add("desc"),s="desc"):d.contains("desc")?(o.target.classList.remove("desc"),o.target.classList.add("asc"),s="asc"):(o.target.classList.add("asc"),s="asc"),t&&t.innerHTML.length>0&&(r=t.querySelector(".ea-advanced-data-table-pagination-current").dataset.page,i=(r-1)*e.dataset.itemsPerPage+1,l=l-(r-1)*e.dataset.itemsPerPage>=e.dataset.itemsPerPage?r*e.dataset.itemsPerPage:l),a[r]=[],e.querySelectorAll("th").forEach((function(e){e.cellIndex!=n&&e.classList.remove("asc","desc"),a[r].push(e.classList.contains("asc")?"asc":e.classList.contains("desc")?"desc":"")}));for(var f=i;f<=l;f++){var m=void 0,p=e.rows[f].cells[n];m=isNaN(parseInt(p.innerText))?p.innerText.toLowerCase():parseInt(p.innerText),c.push({index:f,value:m})}"asc"==s?c.sort((function(e,t){return e.value>t.value?1:-1})):"desc"==s&&c.sort((function(e,t){return e.value<t.value?1:-1})),c.forEach((function(t,a){e.rows[i+a].innerHTML=u.rows[t.index].innerHTML}))}}))}},{key:"initTablePagination",value:function(e,t,a){if(e.classList.contains("ea-advanced-data-table-paginated")){var o="",n=t.classList.contains("ea-advanced-data-table-pagination-button")?"button":"select",r=1,i="thead"==e.rows[0].parentNode.tagName.toLowerCase()?1:0,l=r*e.dataset.itemsPerPage,s=Math.ceil((e.rows.length-1)/e.dataset.itemsPerPage);if(s>1)if("button"==n){for(var d=1;d<=s;d++)o+='<a href="#" data-page="'.concat(d,'" class="').concat(1==d?"ea-advanced-data-table-pagination-current":"",'">').concat(d,"</a>");t.insertAdjacentHTML("beforeend",'<a href="#" data-page="1">&laquo;</a>'.concat(o,'<a href="#" data-page="').concat(s,'">&raquo;</a>'))}else{for(var c=1;c<=s;c++)o+='<option value="'.concat(c,'">').concat(c,"</option>");t.insertAdjacentHTML("beforeend","<select>".concat(o,"</select>"))}for(var u=0;u<=l&&!(u>=e.rows.length);u++)e.rows[u].style.display="table-row";"button"==n?t.addEventListener("click",(function(o){if(o.preventDefault(),"a"==o.target.tagName.toLowerCase()){r=o.target.dataset.page,offset="thead"==e.rows[0].parentNode.tagName.toLowerCase()?1:0,i=(r-1)*e.dataset.itemsPerPage+offset,l=r*e.dataset.itemsPerPage,t.querySelectorAll(".ea-advanced-data-table-pagination-current").forEach((function(e){e.classList.remove("ea-advanced-data-table-pagination-current")})),t.querySelectorAll('[data-page="'.concat(r,'"]')).forEach((function(e){e.classList.add("ea-advanced-data-table-pagination-current")}));for(var n=offset;n<=e.rows.length-1;n++)e.rows[n].style.display=n>=i&&n<=l?"table-row":"none";e.querySelectorAll("th").forEach((function(e,t){e.classList.remove("asc","desc"),void 0!==a[r]&&a[r][t]&&e.classList.add(a[r][t])}))}})):t.hasChildNodes()&&t.querySelector("select").addEventListener("input",(function(t){t.preventDefault(),r=t.target.value,offset="thead"==e.rows[0].parentNode.tagName.toLowerCase()?1:0,i=(r-1)*e.dataset.itemsPerPage+offset,l=r*e.dataset.itemsPerPage;for(var o=offset;o<=e.rows.length-1;o++)e.rows[o].style.display=o>=i&&o<=l?"table-row":"none";e.querySelectorAll("th").forEach((function(e,t){e.classList.remove("asc","desc"),void 0!==a[r]&&a[r][t]&&e.classList.add(a[r][t])}))}))}}},{key:"initWooFeatures",value:function(e){e.querySelectorAll(".nt_button_woo").forEach((function(e){e.classList.add("add_to_cart_button","ajax_add_to_cart")})),e.querySelectorAll(".nt_woo_quantity").forEach((function(t){t.addEventListener("input",(function(t){var a=t.target.dataset.product_id,o=t.target.value;$(".nt_add_to_cart_".concat(a),$(e)).data("quantity",o)}))}))}}])&&a(t.prototype,o),n&&a(t,n),e}();ea.hooks.addAction("init","ea",(function(){new o}))},function(e,t){var a=function(e,t){var a="#"+e.find(".eael-advance-tabs").attr("id").toString();t(a+" .eael-tabs-nav ul li").each((function(e){t(this).hasClass("active-default")?(t(a+" .eael-tabs-nav > ul li").removeClass("active").addClass("inactive"),t(this).removeClass("inactive")):0==e&&t(this).removeClass("inactive").addClass("active")})),t(a+" .eael-tabs-content div").each((function(e){t(this).hasClass("active-default")?t(a+" .eael-tabs-content > div").removeClass("active"):0==e&&t(this).removeClass("inactive").addClass("active")})),t(a+" .eael-tabs-nav ul li").click((function(){var e=t(this).index(),a=t(this).closest(".eael-advance-tabs"),o=t(a).children(".eael-tabs-nav").children("ul").children("li"),n=t(a).children(".eael-tabs-content").children("div");t(this).parent("li").addClass("active"),t(o).removeClass("active active-default").addClass("inactive"),t(this).addClass("active").removeClass("inactive"),t(n).removeClass("active").addClass("inactive"),t(n).eq(e).addClass("active").removeClass("inactive");var r=n.eq(e).find(".eael-filter-gallery-container"),i=n.eq(e).find(".eael-post-grid.eael-post-appender"),l=n.eq(e).find(".eael-twitter-feed-masonry"),s=n.eq(e).find(".eael-instafeed"),d=n.eq(e).find(".premium-gallery-container");i.length&&i.isotope("layout"),l.length&&l.isotope("layout"),r.length&&r.isotope("layout"),s.length&&s.isotope("layout"),d.length&&d.each((function(e,a){t(a).isotope("layout")})),t(n).each((function(e){t(this).removeClass("active-default")}))}))};jQuery(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/eael-adv-tabs.default",a)}))},function(e,t){var a=function(e,t){var a=e.find(".eael-content-ticker").eq(0),o=void 0!==a.data("items")?a.data("items"):1,n=void 0!==a.data("items-tablet")?a.data("items-tablet"):1,r=void 0!==a.data("items-mobile")?a.data("items-mobile"):1,i=void 0!==a.data("margin")?a.data("margin"):10,l=void 0!==a.data("margin-tablet")?a.data("margin-tablet"):10,s=void 0!==a.data("margin-mobile")?a.data("margin-mobile"):10,d=void 0!==a.data("effect")?a.data("effect"):"slide",c=void 0!==a.data("speed")?a.data("speed"):400,u=void 0!==a.data("autoplay")?a.data("autoplay"):5e3,f=void 0!==a.data("loop")&&a.data("loop"),m=void 0!==a.data("grab-cursor")&&a.data("grab-cursor"),p=void 0!==a.data("pagination")?a.data("pagination"):".swiper-pagination",g=void 0!==a.data("arrow-next")?a.data("arrow-next"):".swiper-button-next",v=void 0!==a.data("arrow-prev")?a.data("arrow-prev"):".swiper-button-prev",h=void 0!==a.data("pause-on-hover")?a.data("pause-on-hover"):"",y=new Swiper(a,{direction:"horizontal",loop:f,speed:c,effect:d,slidesPerView:o,spaceBetween:i,grabCursor:m,paginationClickable:!0,autoHeight:!0,autoplay:{delay:u},pagination:{el:p,clickable:!0},navigation:{nextEl:g,prevEl:v},breakpoints:{480:{slidesPerView:r,spaceBetween:s},768:{slidesPerView:n,spaceBetween:l}}});0===u&&y.autoplay.stop(),h&&0!==u&&(a.on("mouseenter",(function(){y.autoplay.stop()})),a.on("mouseleave",(function(){y.autoplay.start()})))};jQuery(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/eael-content-ticker.default",a)}))},function(e,t){var a=function(e,t){var a=e.find(".eael-countdown-wrapper").eq(0),o=void 0!==a.data("countdown-id")?a.data("countdown-id"):"",n=void 0!==a.data("expire-type")?a.data("expire-type"):"",r=void 0!==a.data("expiry-text")?a.data("expiry-text"):"",i=void 0!==a.data("expiry-title")?a.data("expiry-title"):"",l=void 0!==a.data("redirect-url")?a.data("redirect-url"):"",s=void 0!==a.data("template")?a.data("template"):"";jQuery(document).ready((function(e){"use strict";var t=e("#eael-countdown-"+o);t.countdown({end:function(){if("text"==n)t.html('<div class="eael-countdown-finish-message"><h4 class="expiry-title">'+i+'</h4><div class="eael-countdown-finish-text">'+r+"</div></div>");else if("url"===n){e("body").find("#elementor").length>0?t.html("Your Page will be redirected to given URL (only on Frontend)."):window.location.href=l}else"template"===n&&t.html(s)}})}))};jQuery(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/eael-countdown.default",a)}))},function(e,t){var a=function(e,t){var a=e.find(".eael-data-table-wrap");a.data("table_id");if("undefined"!=typeof enableProSorter&&t.isFunction(enableProSorter)&&t(document).ready((function(){enableProSorter(jQuery,a)})),1==a.data("custom_responsive")){var o=e.find(".eael-data-table").find("th");e.find(".eael-data-table").find("tbody").find("tr").each((function(e,a){t(a).find("td .td-content-wrapper").each((function(e,a){t(this).prepend('<div class="th-mobile-screen">'+o.eq(e).html()+"</div>")}))}))}},o=function(e,t,a){if("ea:table:export"==event.target.dataset.event){for(var o=a.el.querySelector("#eael-data-table-"+t.attributes.id).querySelectorAll("table tr"),n=[],r=0;r<o.length;r++){for(var i=[],l=o[r].querySelectorAll("th, td"),s=0;s<l.length;s++)i.push(JSON.stringify(l[s].innerText.replace(/(\r\n|\n|\r)/gm," ").trim()));n.push(i.join(","))}var d=new Blob([n.join("\n")],{type:"text/csv"}),c=parent.document.createElement("a");c.classList.add("eael-data-table-download-"+t.attributes.id),c.download="eael-data-table-"+t.attributes.id+".csv",c.href=window.URL.createObjectURL(d),c.style.display="none",parent.document.body.appendChild(c),c.click(),parent.document.querySelector(".eael-data-table-download-"+t.attributes.id).remove()}},n=function(e,t,a){var n=o.bind(this,e,t,a);e.el.addEventListener("click",n),e.currentPageView.on("destroy",(function(){e.el.removeEventListener("click",n)}))};jQuery(window).on("elementor/frontend/init",(function(){isEditMode&&elementor.hooks.addAction("panel/open_editor/widget/eael-data-table",n),elementorFrontend.hooks.addAction("frontend/element_ready/eael-data-table.default",a)}))},function(e,t){var a=function(e,t){var a=FullCalendar.Calendar,o=t(".eael-event-calendar-cls",e),n=t(".eaelec-modal-close",e).eq(0),r=t("#eaelecModal",e),i=o.data("events"),l=o.data("first_day"),s=o.data("cal_id"),d=o.data("locale"),c=o.data("translate"),u=o.data("defaultview"),f=new a(document.getElementById("eael-event-calendar-"+s),{plugins:["dayGrid","timeGrid","list"],editable:!1,selectable:!1,draggable:!1,firstDay:l,eventTimeFormat:{hour:"2-digit",minute:"2-digit",meridiem:"short"},nextDayThreshold:"00:00:00",header:{left:"prev,next today",center:"title",right:"timeGridDay,timeGridWeek,dayGridMonth,listWeek"},events:i,selectHelper:!0,locale:d,eventLimit:3,defaultView:u,eventRender:function(e){var a=t(e.el),o=e.event;void 0!==o.extendedProps.eventHasComplete&&"yes"===o.extendedProps.eventHasComplete&&(a.find("div.fc-content .fc-title").addClass("eael-event-completed"),a.find("td.fc-list-item-title").addClass("eael-event-completed")),c.today=e.event._calendar.dateEnv.locale.options.buttonText.today,a.attr("href","javascript:void(0);"),a.click((function(e){e.preventDefault(),e.stopPropagation();var a=o.start,n="h:mm A",i=o.end,l=t("span.eaelec-event-date-start"),s=t("span.eaelec-event-date-end");"yes"===o.allDay&&(i=moment(i).subtract(1,"days")._d,n=" ");var d=moment(a).format("YYYY"),u=moment(i).format("YYYY"),f=u>d,m="",p="";l.html(" "),s.html(" "),r.addClass("eael-ec-popup-ready").removeClass("eael-ec-modal-removing"),"yes"===o.allDay&&moment(a).format("MM-DD-YYYY")===moment(i).format("MM-DD-YYYY")?(m=moment(a).format("MMM Do"),!0===moment(a).isSame(Date.now(),"day")?m=c.today:moment(a).format("MM-DD-YYYY")===moment(new Date).add(1,"days").format("MM-DD-YYYY")&&(m=c.tomorrow)):(!0===moment(o.start).isSame(Date.now(),"day")&&(m=c.today+" "+moment(o.start).format(n)),moment(a).format("MM-DD-YYYY")===moment(new Date).add(1,"days").format("MM-DD-YYYY")&&(m=c.tomorrow+" "+moment(o.start).format(n)),(moment(a).format("MM-DD-YYYY")<moment(new Date).format("MM-DD-YYYY")||moment(a).format("MM-DD-YYYY")>moment(new Date).add(1,"days").format("MM-DD-YYYY"))&&(m=moment(o.start).format("MMM Do "+n)),m=f?d+" "+m:m,!0===moment(i).isSame(Date.now(),"day")&&(p=!0!==moment(a).isSame(Date.now(),"day")?c.today+" "+moment(i).format(n):moment(i).format(n)),moment(a).format("MM-DD-YYYY")!==moment(new Date).add(1,"days").format("MM-DD-YYYY")&&moment(i).format("MM-DD-YYYY")===moment(new Date).add(1,"days").format("MM-DD-YYYY")&&(p=c.tomorrow+" "+moment(i).format(n)),moment(a).format("MM-DD-YYYY")===moment(new Date).add(1,"days").format("MM-DD-YYYY")&&moment(i).format("MM-DD-YYYY")===moment(new Date).add(1,"days").format("MM-DD-YYYY")&&(p=moment(i).format(n)),moment(i).diff(moment(a),"days")>0&&s.text().trim().length<1&&(p=moment(i).format("MMM Do "+n)),moment(a).format("MM-DD-YYYY")===moment(i).format("MM-DD-YYYY")&&(p=moment(i).format(n)),p=f?u+" "+p:p),void 0!==o.extendedProps.hideEndDate&&"yes"===o.extendedProps.hideEndDate?s.html(" "):s.html(""!=p?"- "+p:""),l.html('<i class="eicon-calendar"></i> '+m),t(".eaelec-modal-header h2").html(o.title),t(".eaelec-modal-body p").html(o.extendedProps.description),o.extendedProps.description.length<1?t(".eaelec-modal-body").css("height","auto"):t(".eaelec-modal-body").css("height","300px"),t(".eaelec-modal-footer a").attr("href",o.url),"on"===o.extendedProps.external&&t(".eaelec-modal-footer a").attr("target","_blank"),"on"===o.extendedProps.nofollow&&t(".eaelec-modal-footer a").attr("rel","nofollow"),""==o.url&&t(".eaelec-modal-footer a").css("display","none"),t(".eaelec-modal-header").css("border-left","5px solid "+o.borderColor)}))}});n.on("click",(function(){event.stopPropagation(),r.addClass("eael-ec-modal-removing").removeClass("eael-ec-popup-ready")})),t(document).on("click",(function(e){e.target.closest(".eaelec-modal-content")||r.hasClass("eael-ec-popup-ready")&&r.addClass("eael-ec-modal-removing").removeClass("eael-ec-popup-ready")})),f.render()};jQuery(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/eael-event-calendar.default",a)}))},function(e,t){var a=function(e,t){isEditMode||($facebook_gallery=t(".eael-facebook-feed",e).isotope({itemSelector:".eael-facebook-feed-item",percentPosition:!0,columnWidth:".eael-facebook-feed-item"}),$facebook_gallery.imagesLoaded().progress((function(){$facebook_gallery.isotope("layout")}))),t(".eael-load-more-button",e).on("click",(function(a){a.preventDefault(),$this=t(this),$settings=$this.attr("data-settings"),$page=$this.attr("data-page"),$loadmore_text=$this.attr("data-loadmore-text"),$this.addClass("button--loading"),t("span",$this).html("Loading..."),t.ajax({url:localize.ajaxurl,type:"post",data:{action:"facebook_feed_load_more",security:localize.nonce,settings:$settings,page:$page},success:function(a){$html=t(a.html),$facebook_gallery=t(".eael-facebook-feed",e).isotope(),t(".eael-facebook-feed",e).append($html),$facebook_gallery.isotope("appended",$html),$facebook_gallery.imagesLoaded().progress((function(){$facebook_gallery.isotope("layout")})),a.num_pages>$page?($this.attr("data-page",parseInt($page)+1),$this.removeClass("button--loading"),t("span",$this).html($loadmore_text)):$this.remove()},error:function(){}})}))};jQuery(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/eael-facebook-feed.default",a)}))},function(e,t){var a=function(e,t){var a=e.find(".eael-fancy-text-container").eq(0),o=void 0!==a.data("fancy-text-id")?a.data("fancy-text-id"):"",n=void 0!==a.data("fancy-text")?a.data("fancy-text"):"",r=void 0!==a.data("fancy-text-transition-type")?a.data("fancy-text-transition-type"):"",i=void 0!==a.data("fancy-text-speed")?a.data("fancy-text-speed"):"",l=void 0!==a.data("fancy-text-delay")?a.data("fancy-text-delay"):"",s="yes"===a.data("fancy-text-cursor"),d=void 0!==a.data("fancy-text-loop")&&"yes"==a.data("fancy-text-loop");n=n.split("|"),"typing"==r&&new Typed("#eael-fancy-text-"+o,{strings:n,typeSpeed:i,backSpeed:0,startDelay:300,backDelay:l,showCursor:s,loop:d}),"typing"!=r&&t("#eael-fancy-text-"+o).Morphext({animation:r,separator:", ",speed:l,complete:function(){}}),jQuery(window).on("load",(function(){setTimeout((function(){t(".eael-fancy-text-strings",e).css("display","inline-block")}),500)})),isEditMode&&setTimeout((function(){t(".eael-fancy-text-strings",e).css("display","inline-block")}),800)};jQuery(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/eael-fancy-text.default",a)}))},function(e,t){var a=function(e,t){var a,o,n,r=e.find(".fg-layout-3-filter-controls").eq(0),i=e.find("#fg-filter-trigger"),l=e.find(".fg-layout-3-search-box"),s=e.find("#fg-search-box-input");if(l.length&&l.on("submit",(function(e){e.preventDefault()})),i.on("click",(function(){r.toggleClass("open-filters")})).blur((function(){r.toggleClass("open-filters")})),!isEditMode){var d=t(".eael-filter-gallery-container",e),c=d.data("settings"),u=d.data("gallery-items"),f="masonry"==c.grid_style?"masonry":"fitRows",m="yes"==c.gallery_enabled,p=t(".eael-filter-gallery-wrapper").data("layout-mode"),g=t(".eael-filter-gallery-wrapper").data("mfp_caption"),v=d.isotope({itemSelector:".eael-filterable-gallery-item-wrap",layoutMode:f,percentPosition:!0,stagger:30,transitionDuration:c.duration+"ms",filter:function(){var n=t(this),r=!a||n.text().match(a);null==o&&(o="layout_3"!=p?e.find(".eael-filter-gallery-control ul li").first().data("filter"):e.find(".fg-layout-3-filter-controls li").first().data("filter"));var i=!o||n.is(o);return r&&i}});t(e).magnificPopup({delegate:".eael-magnific-link",type:"image",gallery:{enabled:m},image:{titleSrc:function(e){if("yes"==g)return e.el.parents(".gallery-item-caption-over").find(".fg-item-title").html()||e.el.parents(".gallery-item-caption-wrap").find(".fg-item-title").html()||e.el.parents(".eael-filterable-gallery-item-wrap").find(".fg-item-title").html()}}}),e.on("click",".control",(function(){var a=t(this);o=t(this).attr("data-filter"),e.find("#fg-filter-trigger > span")&&e.find("#fg-filter-trigger > span").text(a.text()),a.siblings().removeClass("active"),a.addClass("active"),v.isotope()})),s.on("input",(function(){var e=t(this);clearTimeout(n),n=setTimeout((function(){a=new RegExp(e.val(),"gi"),v.isotope()}),600)})),v.imagesLoaded().progress((function(){v.isotope("layout")})),v.on("arrangeComplete",(function(){v.isotope("layout")})),t(window).on("load",(function(){v.isotope("layout")})),e.on("click",".eael-gallery-load-more",(function(a){a.preventDefault();var o=t(this),n=t(".eael-filter-gallery-container",e).children(".eael-filterable-gallery-item-wrap").length,r=d.data("total-gallery-items"),i=d.data("images-per-page"),l=d.data("nomore-item-text"),s=[];n==r&&(o.html('<div class="no-more-items-text">'+l+"</div>"),setTimeout((function(){o.fadeOut("slow")}),600));for(var c=n;c<n+i;c++)s.push(t(u[c])[0]);d.append(s),v.isotope("appended",s),v.imagesLoaded().progress((function(){v.isotope("layout")}))}))}};jQuery(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/eael-filterable-gallery.default",a)}))},function(e,t){var a=function(e,t){var a=e.find(".eael-img-accordion").eq(0),o=void 0!==a.data("img-accordion-id")?a.data("img-accordion-id"):"",n=void 0!==a.data("img-accordion-type")?a.data("img-accordion-type"):"",r=0;"on-click"===n?(t("#eael-img-accordion-"+o+" a").on("click",(function(e){0==t(this).hasClass("overlay-active")&&e.preventDefault(),0==r&&(t("#eael-img-accordion-"+o+" a").hasClass("overlay-active")&&t("#eael-img-accordion-"+o+" a").removeClass("overlay-active"),r+=1),t("#eael-img-accordion-"+o+" a").css("flex","1"),t(this).find(".overlay").parent("a").addClass("overlay-active"),t("#eael-img-accordion-"+o+" a").find(".overlay-inner").removeClass("overlay-inner-show"),t(this).find(".overlay-inner").addClass("overlay-inner-show"),t(this).css("flex","3")})),t("#eael-img-accordion-"+o+" a").on("blur",(function(e){t("#eael-img-accordion-"+o+" a").css("flex","1"),t("#eael-img-accordion-"+o+" a").find(".overlay-inner").removeClass("overlay-inner-show"),t(this).find(".overlay").parent("a").removeClass("overlay-active")}))):t("#eael-img-accordion-"+o+" a").on("hover",(function(){t("#eael-img-accordion-"+o+" a").hasClass("overlay-active")&&(t("#eael-img-accordion-"+o+" a.overlay-active").css("flex","1"),t("#eael-img-accordion-"+o+" a").removeClass("overlay-active"),t("#eael-img-accordion-"+o+" a .overlay .overlay-inner").removeClass("overlay-inner-show"))}))};jQuery(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/eael-image-accordion.default",a)}))},function(e,t){!function(e){"use strict";e(document).on("click",".eael-load-more-button",(function(t){t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation();var a=e(this),o=e("span",a).html(),n=a.data("widget"),r=e(".elementor-element-"+n),i=a.data("class"),l=a.data("args"),s=a.data("settings"),d=a.data("layout"),c=parseInt(a.data("page"))+1;if(void 0!==n&&void 0!==l){var u={},f={action:"load_more",class:i,args:l,settings:s,page:c};if(String(l).split("&").forEach((function(e,t){var a=String(e).split("=");u[a[0]]=a[1]})),"rand"==u.orderby){var m=e(".eael-grid-post");if(m.length){var p=[];m.each((function(t,a){var o=e(a).data("id");p.push(o)})),f.post__not_in=p}}a.addClass("button--loading"),e("span",a).html("Loading..."),e.ajax({url:localize.ajaxurl,type:"post",data:f,success:function(t){var n=e(t);if(n.hasClass("no-posts-found")||0==n.length)a.remove();else{if("Essential_Addons_Elementor\\Elements\\Product_Grid"==f.class)e(".eael-product-grid .products",r).append(n);else if(e(".eael-post-appender",r).append(n),"masonry"==d){var i=e(".eael-post-appender",r).isotope();i.isotope("appended",n).isotope("layout"),i.imagesLoaded().progress((function(){i.isotope("layout")}))}a.removeClass("button--loading"),e("span",a).html(o),a.data("page",c)}},error:function(e){console.log(e)}})}}))}(jQuery)},function(e,t){var a=function(e,t){var a=t(".eael-post-appender",e),o=a.data("layout-mode");"masonry"===o&&(a.isotope({itemSelector:".eael-grid-post",layoutMode:o,percentPosition:!0}),a.imagesLoaded().progress((function(){a.isotope("layout")})))};jQuery(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/eael-post-grid.default",a)}))},function(e,t){var a=function(e,t){if(t.fn.tooltipster){var a,o=e.find(".tooltip");for(a=0;a<o.length;a++){var n=t("#"+t(o[a]).attr("id")),r=void 0!==n.data("side")&&n.data("side"),i=void 0!==n.data("trigger")?n.data("trigger"):"hover",l=void 0!==n.data("animation")?n.data("animation"):"fade",s=void 0!==n.data("animation_duration")?n.data("animation_duration"):300,d=void 0!==n.data("theme")?n.data("theme"):"default",c="yes"==n.data("arrow");n.tooltipster({animation:l,trigger:i,side:r,delay:s,arrow:c,theme:"tooltipster-"+d})}}};jQuery(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/eael-pricing-table.default",a)}))},function(e,t){var a=function(e,t){var a=t(".eael-progressbar",e),o=a.data("layout"),n=a.data("count"),r=a.data("duration");n>100&&(n=100),a.one("inview",(function(){"line"==o?t(".eael-progressbar-line-fill",a).css({width:n+"%"}):"half_circle"==o&&t(".eael-progressbar-circle-half",a).css({transform:"rotate("+1.8*n+"deg)"}),ea.hooks.doAction("progressBar.initValue",a,o,n),t(".eael-progressbar-count",a).prop({counter:0}).animate({counter:n},{duration:r,easing:"linear",step:function(e){if("circle"==o||"circle_fill"==o){var n=3.6*e;t(".eael-progressbar-circle-half-left",a).css({transform:"rotate("+n+"deg)"}),n>180&&(t(".eael-progressbar-circle-pie",a).css({"-webkit-clip-path":"inset(0)","clip-path":"inset(0)"}),t(".eael-progressbar-circle-half-right",a).css({visibility:"visible"}))}t(this).text(Math.ceil(e))}})}))};jQuery(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/eael-progress-bar.default",a)}))},function(e,t){jQuery(document).ready((function(){jQuery(window).scroll((function(){var e=(document.body.scrollTop||document.documentElement.scrollTop)/(document.documentElement.scrollHeight-document.documentElement.clientHeight)*100;jQuery(".eael-reading-progress-fill").css({width:e+"%"})})),isEditMode&&(elementor.settings.page.addChangeCallback("eael_ext_reading_progress",(function(e){var t=elementor.settings.page.getSettings();"yes"==e?(0==jQuery(".eael-reading-progress-wrap").length&&jQuery("body").append('<div class="eael-reading-progress-wrap eael-reading-progress-wrap-local"><div class="eael-reading-progress eael-reading-progress-local eael-reading-progress-'+t.settings.eael_ext_reading_progress_position+'"><div class="eael-reading-progress-fill"></div></div><div class="eael-reading-progress eael-reading-progress-global eael-reading-progress-'+t.settings.eael_ext_reading_progress_position+'"><div class="eael-reading-progress-fill"></div></div></div>'),jQuery(".eael-reading-progress-wrap").addClass("eael-reading-progress-wrap-local").removeClass("eael-reading-progress-wrap-global eael-reading-progress-wrap-disabled")):(jQuery(".eael-reading-progress-wrap").removeClass("eael-reading-progress-wrap-local eael-reading-progress-wrap-global"),1==t.settings.eael_ext_reading_progress_has_global?jQuery(".eael-reading-progress-wrap").addClass("eael-reading-progress-wrap-global"):jQuery(".eael-reading-progress-wrap").addClass("eael-reading-progress-wrap-disabled"))})),elementor.settings.page.addChangeCallback("eael_ext_reading_progress_position",(function(e){elementor.settings.page.setSettings("eael_ext_reading_progress_position",e),jQuery(".eael-reading-progress").removeClass("eael-reading-progress-top eael-reading-progress-bottom").addClass("eael-reading-progress-"+e)})))}))},function(e,t){var a="",o=0,n=0,r=0,i="off",l=0;function s(e){var t=jQuery(e).parent().height(),a=l*t/100;return jQuery(e).parent().offset().top+a}function d(e,t,a){"top-left"==e&&(jQuery(".eael-sticky-video-player2.out").css("top","40px"),jQuery(".eael-sticky-video-player2.out").css("left","40px")),"top-right"==e&&(jQuery(".eael-sticky-video-player2.out").css("top","40px"),jQuery(".eael-sticky-video-player2.out").css("right","40px")),"bottom-right"==e&&(jQuery(".eael-sticky-video-player2.out").css("bottom","40px"),jQuery(".eael-sticky-video-player2.out").css("right","40px")),"bottom-left"==e&&(jQuery(".eael-sticky-video-player2.out").css("bottom","40px"),jQuery(".eael-sticky-video-player2.out").css("left","40px")),jQuery(".eael-sticky-video-player2.out").css("width",a+"px"),jQuery(".eael-sticky-video-player2.out").css("height",t+"px")}jQuery(window).on("elementor/frontend/init",(function(){isEditMode&&elementor.hooks.addAction("panel/open_editor/widget/eael-sticky-video",(function(e,t,a){var o;t.attributes.settings.on("change:eaelsv_sticky_width",(function(){clearTimeout(o),o=setTimeout((function(){var a=Math.ceil(t.getSetting("eaelsv_sticky_width")/1.78);t.attributes.settings.attributes.eaelsv_sticky_height=a,e.el.querySelector('[data-setting="eaelsv_sticky_height"]').value=a}),250)})),t.attributes.settings.on("change:eaelsv_sticky_height",(function(){clearTimeout(o),o=setTimeout((function(){var a=Math.ceil(1.78*t.getSetting("eaelsv_sticky_height"));t.attributes.settings.attributes.eaelsv_sticky_width=a,e.el.querySelector('[data-setting="eaelsv_sticky_width"]').value=a}),250)}))})),elementorFrontend.hooks.addAction("frontend/element_ready/eael-sticky-video.default",(function(e,t){t(".eaelsv-sticky-player-close",e).hide();var c,u,f,m=e.find(".eael-sticky-video-player2");c=m.data("sticky"),u=m.data("autoplay"),a=m.data("position"),n=m.data("sheight"),o=m.data("swidth"),f=m.data("overlay"),l=m.data("scroll_height"),d(a,n,o);var p,g=new Plyr("#eaelsv-player-"+e.data("id"));if("no"===f&&"yes"===u&&"yes"===c&&(r=s(m),m.attr("id","videobox"),i="on",p=m,g.on("play",(function(e){r=s(p),jQuery(".eael-sticky-video-player2").removeAttr("id"),jQuery(".eael-sticky-video-player2").removeClass("out"),p.attr("id","videobox"),i="on",a=p.data("position"),n=p.data("sheight"),o=p.data("swidth")}))),"yes"===f){var v=m.prev();i="off",t(v).on("click",(function(){t(this).css("display","none"),"yes"===t(this).next().data("autoplay")&&(g.restart(),r=s(this),"yes"===c&&(t(this).next().attr("id","videobox"),i="on"))}))}g.on("pause",(function(e){i="off"})),g.on("play",(function(e){i="on"})),t(".eaelsv-sticky-player-close").on("click",(function(){m.removeClass("out").addClass("in"),t(".eael-sticky-video-player2").removeAttr("style"),i="off"})),m.parent().css("height",m.height()+"px"),t(window).resize((function(){m.parent().css("height",m.height()+"px")}))}))})),jQuery(window).scroll((function(){var e=jQuery(window).scrollTop();jQuery(document).height()-e>jQuery(window).height()+400&&(e>=r?"on"==i&&(jQuery("#videobox").find(".eaelsv-sticky-player-close").css("display","block"),jQuery("#videobox").removeClass("in").addClass("out"),d(a,n,o)):(jQuery(".eaelsv-sticky-player-close").hide(),jQuery("#videobox").removeClass("out").addClass("in"),jQuery(".eael-sticky-video-player2").removeAttr("style")))}))},function(e,t){!function(e){jQuery(document).ready((function(){function t(t,a){var r=document.getElementById("eael-toc-list");if(null===t||void 0===a||!r)return null;for(var i=document.getElementById("eael-toc"),l=void 0!==i.dataset.titleurl?i.dataset.titleurl:"false",s=void 0!==i.dataset.excludeSelector?i.dataset.excludeSelector.replace(/^,|,$/g,""):"",d=[],c=document.querySelectorAll(t),u=0,f=0;f<c.length;f++){var m=c[f].querySelectorAll(a);Array.prototype.push.apply(d,m)}(d=Array.prototype.slice.call(d)).forEach((function(e){o(s,e)||(e.id=u+"-"+n(l,e.textContent),e.classList.add("eael-heading-content"),u++)})),function(e,t){var a=t,r="",i=[],l=document.getElementById("eael-toc"),s=void 0!==l.dataset.titleurl?l.dataset.titleurl:"false",d=document.getElementById("eael-toc-list"),c=void 0!==l.dataset.excludeselector?l.dataset.excludeselector.replace(/^,|,$/g,""):"",u=document.querySelectorAll(e),f=r=a.trim().split(",")[0].substr(1,1),m=d;d.innerHTML="";for(var p=0;p<u.length;p++){var g=u[p].querySelectorAll(a);Array.prototype.push.apply(i,g)}i.length>0&&document.getElementById("eael-toc").classList.remove("eael-toc-disable");for(var v=0,h=i.length;v<h;++v){var y=i[v];if(!o(c,y)){var b=parseInt(y.tagName.substr(1,1)),w=b-r;if(w>0){var _=m.lastChild;if(_){var x=document.createElement("UL");_.appendChild(x),m=x,r=b}}var C=!1;if(w<0){for(;0!=w++;)m.parentNode.parentNode&&(m=m.parentNode.parentNode);r=b,C=!0}if("UL"!==m.tagName&&(m=d),""!==y.textContent.trim()){var k=document.createElement("LI"),Y=document.createElement("A"),M=document.createElement("SPAN");(f===r||C)&&(k.setAttribute("itemscope",""),k.setAttribute("itemtype","http://schema.org/ListItem"),k.setAttribute("itemprop","itemListElement"));var A="#"+v+"-"+n(s,y.textContent);Y.className="eael-toc-link",Y.setAttribute("itemprop","item"),Y.setAttribute("href",A),M.appendChild(document.createTextNode(y.textContent)),Y.appendChild(M),k.appendChild(Y),m.appendChild(k)}}}}(t,a);var p=e("ul.eael-toc-list > li");p.length<1&&document.getElementById("eael-toc").classList.add("eael-toc-disable"),p.each((function(){this.classList.add("eael-first-child")}))}e(document).on("click","ul.eael-toc-list a",(function(t){t.preventDefault(),e(document).off("scroll");var a=this.hash;if(history.pushState("",document.title,window.location.pathname+window.location.search),e(this).parent().is(".eael-highlight-parent.eael-highlight-active"))return window.location.hash=a,!1;e(".eael-highlight-active, .eael-highlight-parent").removeClass("eael-highlight-active eael-highlight-parent"),e(this).closest(".eael-first-child").addClass("eael-highlight-parent"),e(this).parent().addClass("eael-highlight-active"),window.location.hash=a})),window.addEventListener("scroll",(function(e){!function(){var e=document.getElementById("eael-toc");if(!e)return;a=void 0!==a?a:200,window.pageYOffset>=a&&!e.classList.contains("eael-toc-disable")?e.classList.add("eael-sticky"):e.classList.remove("eael-sticky")}()}));var a=e("#eael-toc").data("stickyscroll");function o(t,a){return e(a).closest(t).length}function n(e,t){return"true"==e&&""!=t?t.toString().toLowerCase().normalize("NFD").trim().replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/^-+/,"").replace(/-+$/,"").replace(/-+/g,"-"):"eael-table-of-content"}function r(){var t=document.getElementById("eael-toc");if(t&&t.dataset.contentselector)return t.dataset.contentselector;var a=".site-content";return e(".site-content")[0]?a=".site-content":e(".elementor-inner")[0]?a=".elementor-inner":e("#site-content")[0]&&(a="#site-content"),a}e("body").click((function(t){var a=e(t.target),o=e("#eael-toc");o.hasClass("eael-toc-auto-collapse")&&o.hasClass("eael-sticky")&&!o.hasClass("collapsed")&&0===e(a).closest("#eael-toc").length&&o.toggleClass("collapsed")})),e(document).on("click",".eael-toc-close ,.eael-toc-button",(function(t){t.stopPropagation(),e(".eael-toc").toggleClass("collapsed")}));var i=e("#eael-toc").data("eaeltoctag");if(""!==i&&t(r(),i),isEditMode){elementorFrontend.hooks.addAction("frontend/element_ready/widget",(function(e,a){var o=a("#eael-toc #eael-toc-list");if(o.find("li.eael-first-child").length<1&&o.length>=1){var n=a("#eael-toc").data("eaeltoctag");n&&t(r(),n)}})),elementor.settings.page.addChangeCallback("eael_ext_table_of_content",(function(a){var o=e(".eael-toc-global");if(o.length>0&&(o.attr("id","eael-toc-temp").removeClass("eael-toc").hide(),e(".eael-toc-global #eael-toc-list").attr("id","")),e("#eael-toc").remove(),"yes"===a){var n=elementor.settings.page.getSettings();e("body").append(function(e){var t=e.settings,a=t.eael_ext_toc_title,o="eael-toc-list eael-toc-list-"+t.eael_ext_table_of_content_list_style,n=t.eael_ext_table_of_content_header_icon.value,r="right"===t.eael_ext_toc_position?" eael-toc-right":" ";return o+="yes"===t.eael_ext_toc_collapse_sub_heading?" eael-toc-collapse":" ",'<div id="eael-toc" class="eael-toc eael-toc-disable '+r+'"><div class="eael-toc-header"><span class="eael-toc-close">×</span><h2 class="eael-toc-title">'+a+'</h2></div><div class="eael-toc-body"><ul id="eael-toc-list" class="'+(o+="number"===t.eael_ext_toc_list_icon?" eael-toc-number":" eael-toc-bullet")+'"></ul></div><button class="eael-toc-button"><i class="'+n+'"></i><span>'+a+"</span></button></div>"}(n)),t(r(),n.settings.eael_ext_toc_supported_heading_tag.join(", "))}else o.length>0&&o.addClass("eael-toc").attr("id","eael-toc").show()})),elementor.settings.page.addChangeCallback("eael_ext_toc_position",(function(t){"right"===t?e("#eael-toc").addClass("eael-toc-right"):e("#eael-toc").removeClass("eael-toc-right")})),elementor.settings.page.addChangeCallback("eael_ext_table_of_content_list_style",(function(t){var a=e(".eael-toc-list");a.removeClass("eael-toc-list-bar eael-toc-list-arrow"),"none"!==t&&a.addClass("eael-toc-list-"+t)})),elementor.settings.page.addChangeCallback("eael_ext_toc_collapse_sub_heading",(function(t){var a=e(".eael-toc-list");"yes"===t?a.addClass("eael-toc-collapse"):a.removeClass("eael-toc-collapse")})),elementor.settings.page.addChangeCallback("eael_ext_table_of_content_header_icon",(function(t){e(".eael-toc-button i").removeClass().addClass(t.value)})),elementor.settings.page.addChangeCallback("eael_ext_toc_list_icon",(function(t){var a=e(".eael-toc-list");"number"===t?a.addClass("eael-toc-number").removeClass("eael-toc-bullet"):a.addClass("eael-toc-bullet").removeClass("eael-toc-number")})),elementor.settings.page.addChangeCallback("eael_ext_toc_word_wrap",(function(t){var a=e(".eael-toc-list");"yes"===t?a.addClass("eael-toc-word-wrap"):a.removeClass("eael-toc-word-wrap")})),elementor.settings.page.addChangeCallback("eael_ext_toc_close_button_text_style",(function(t){var a=e("#eael-toc");"bottom_to_top"===t?a.addClass("eael-bottom-to-top"):a.removeClass("eael-bottom-to-top")})),elementor.settings.page.addChangeCallback("eael_ext_toc_box_shadow",(function(t){var a=e("#eael-toc");"yes"===t?a.addClass("eael-box-shadow"):a.removeClass("eael-box-shadow")})),elementor.settings.page.addChangeCallback("eael_ext_toc_auto_collapse",(function(t){var a=e("#eael-toc");"yes"===t?a.addClass("eael-toc-auto-collapse"):a.removeClass("eael-toc-auto-collapse")})),elementor.settings.page.addChangeCallback("eael_ext_toc_title",(function(e){elementorFrontend.elements.$document.find(".eael-toc-title").text(e),elementorFrontend.elements.$document.find(".eael-toc-button span").text(e)}))}}))}(jQuery)},function(e,t){var a=function(e,t){isEditMode||($gutter=t(".eael-twitter-feed-masonry",e).data("gutter"),$settings={itemSelector:".eael-twitter-feed-item",percentPosition:!0,masonry:{columnWidth:".eael-twitter-feed-item",gutter:$gutter}},$twitter_feed_gallery=t(".eael-twitter-feed-masonry",e).isotope($settings),$twitter_feed_gallery.imagesLoaded().progress((function(){$twitter_feed_gallery.isotope("layout")})))};jQuery(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/eael-twitter-feed.default",a)}))},function(e,t){var a=function(e,t){if(typeformEmbed){var a=e.find(".eael-typeform"),o=a.attr("id"),n=a.data("typeform");if(void 0!==o&&void 0!==n){var r=document.getElementById(o);n.url&&typeformEmbed.makeWidget(r,n.url,{hideFooter:n.hideFooter,hideHeaders:n.hideHeaders,opacity:n.opacity})}}};jQuery(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/eael-typeform.default",a)}))},function(e,t){var a=function(e,t){function a(){var e=t(".ea-woo-checkout");setTimeout((function(){t(".ea-checkout-review-order-table").addClass("processing").block({message:null,overlayCSS:{background:"#fff",opacity:.6}}),t.ajax({type:"POST",url:localize.ajaxurl,data:{action:"woo_checkout_update_order_review",orderReviewData:e.data("checkout")},success:function(e){t(".ea-checkout-review-order-table").replaceWith(e.order_review),setTimeout((function(){t(".ea-checkout-review-order-table").removeClass("processing").unblock()}),1e5)}})}),2e3)}t.blockUI.defaults.overlayCSS.cursor="default",t(document).on("click",".woocommerce-remove-coupon",(function(e){a()})),t("form.checkout_coupon").submit((function(e){a()}))};jQuery(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/eael-woo-checkout.default",a)}))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){"use strict";a.r(t);var o=function(e){return"string"!=typeof e||""===e?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(e)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)};var n=function(e){return"string"!=typeof e||""===e?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(e)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(e)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)};var r=function(e){return function(t,a,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10;if(n(t)&&o(a))if("function"==typeof r)if("number"==typeof i){var l={callback:r,priority:i,namespace:a};if(e[t]){var s,d=e[t].handlers;for(s=d.length;s>0&&!(i>=d[s-1].priority);s--);s===d.length?d[s]=l:d.splice(s,0,l),(e.__current||[]).forEach((function(e){e.name===t&&e.currentIndex>=s&&e.currentIndex++}))}else e[t]={handlers:[l],runs:0};"hookAdded"!==t&&p("hookAdded",t,a,r,i)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}};var i=function(e,t){return function(a,r){if(n(a)&&(t||o(r))){if(!e[a])return 0;var i=0;if(t)i=e[a].handlers.length,e[a]={runs:e[a].runs,handlers:[]};else for(var l=e[a].handlers,s=function(t){l[t].namespace===r&&(l.splice(t,1),i++,(e.__current||[]).forEach((function(e){e.name===a&&e.currentIndex>=t&&e.currentIndex--})))},d=l.length-1;d>=0;d--)s(d);return"hookRemoved"!==a&&p("hookRemoved",a,r),i}}};var l=function(e){return function(t,a){return void 0!==a?t in e&&e[t].handlers.some((function(e){return e.namespace===a})):t in e}};var s=function(e,t){return function(a){e[a]||(e[a]={handlers:[],runs:0}),e[a].runs++;var o=e[a].handlers;for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];if(!o||!o.length)return t?r[0]:void 0;var l={name:a,currentIndex:0};for(e.__current.push(l);l.currentIndex<o.length;){var s=o[l.currentIndex],d=s.callback.apply(null,r);t&&(r[0]=d),l.currentIndex++}return e.__current.pop(),t?r[0]:void 0}};var d=function(e){return function(){return e.__current&&e.__current.length?e.__current[e.__current.length-1].name:null}};var c=function(e){return function(t){return void 0===t?void 0!==e.__current[0]:!!e.__current[0]&&t===e.__current[0].name}};var u=function(e){return function(t){if(n(t))return e[t]&&e[t].runs?e[t].runs:0}};var f=function(){var e=Object.create(null),t=Object.create(null);return e.__current=[],t.__current=[],{addAction:r(e),addFilter:r(t),removeAction:i(e),removeFilter:i(t),hasAction:l(e),hasFilter:l(t),removeAllActions:i(e,!0),removeAllFilters:i(t,!0),doAction:s(e),applyFilters:s(t,!0),currentAction:d(e),currentFilter:d(t),doingAction:c(e),doingFilter:c(t),didAction:u(e),didFilter:u(t),actions:e,filters:t}},m=f(),p=(m.addAction,m.addFilter,m.removeAction,m.removeFilter,m.hasAction,m.hasFilter,m.removeAllActions,m.removeAllFilters,m.doAction);m.applyFilters,m.currentAction,m.currentFilter,m.doingAction,m.doingFilter,m.didAction,m.didFilter,m.actions,m.filters;window.isEditMode=!1,window.ea={hooks:f(),isEditMode:!1},jQuery(window).on("elementor/frontend/init",(function(){window.isEditMode=elementorFrontend.isEditMode(),window.ea.isEditMode=elementorFrontend.isEditMode(),ea.hooks.doAction("init"),ea.isEditMode&&ea.hooks.doAction("editMode.init")}))}]);
1
+ !function(e){var t={};function a(o){if(t[o])return t[o].exports;var n=t[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=e,a.c=t,a.d=function(e,t,o){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(a.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)a.d(o,n,function(t){return e[t]}.bind(null,n));return o},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=0)}([function(e,t,a){a(67),a(1),a(2),a(3),a(4),a(5),a(6),a(7),a(8),a(9),a(10),a(11),a(12),a(13),a(14),a(15),a(16),a(17),a(18),a(19),a(20),e.exports=a(21)},function(e,t){var a=function(e,t){var a=e.find(".eael-adv-accordion"),o=e.find(".eael-accordion-header"),n=a.data("accordion-type"),r=a.data("toogle-speed");o.each((function(){t(this).hasClass("active-default")&&(t(this).addClass("show active"),t(this).next().slideDown(r))})),o.unbind("click"),o.click((function(e){e.preventDefault();var a=t(this);"accordion"===n?a.hasClass("show")?(a.removeClass("show active"),a.next().slideUp(r)):(a.parent().parent().find(".eael-accordion-header").removeClass("show active"),a.parent().parent().find(".eael-accordion-content").slideUp(r),a.toggleClass("show active"),a.next().slideToggle(r)):a.hasClass("show")?(a.removeClass("show active"),a.next().slideUp(r)):(a.addClass("show active"),a.next().slideDown(r))}))};jQuery(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/eael-adv-accordion.default",a)}))},function(e,t){function a(e,t){for(var a=0;a<t.length;a++){var o=t[a];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),elementorFrontend.hooks.addAction("frontend/element_ready/eael-advanced-data-table.default",this.initFrontend.bind(this))}var t,o,n;return t=e,(o=[{key:"initFrontend",value:function(e,t){var a=e.context.querySelector(".ea-advanced-data-table"),o=e.context.querySelector(".ea-advanced-data-table-search"),n=e.context.querySelector(".ea-advanced-data-table-pagination"),r={};ea.isEditMode||null===a||(this.initTableSearch(a,o,n),this.initTableSort(a,n,r),this.initTablePagination(a,n,r),this.initWooFeatures(a))}},{key:"initTableSearch",value:function(e,t,a){t&&t.addEventListener("input",(function(t){var o=t.target.value.toLowerCase(),n=e.classList.contains("ea-advanced-data-table-sortable"),r="thead"==e.rows[0].parentNode.tagName.toLowerCase()?1:0;if(e.rows.length>1)if(o.length>0){n&&e.classList.add("ea-advanced-data-table-unsortable"),a&&a.innerHTML.length>0&&(a.style.display="none");for(var i=r;i<e.rows.length;i++){var l=!1;if(e.rows[i].cells.length>0)for(var s=0;s<e.rows[i].cells.length;s++)if(e.rows[i].cells[s].textContent.toLowerCase().indexOf(o)>-1){l=!0;break}e.rows[i].style.display=l?"table-row":"none"}}else if(n&&e.classList.remove("ea-advanced-data-table-unsortable"),a&&a.innerHTML.length>0){a.style.display="";for(var d=a.querySelector(".ea-advanced-data-table-pagination-current").dataset.page,c=(d-1)*e.dataset.itemsPerPage+1,u=d*e.dataset.itemsPerPage,f=1;f<=e.rows.length-1;f++)e.rows[f].style.display=f>=c&&f<=u?"table-row":"none"}else for(var m=1;m<=e.rows.length-1;m++)e.rows[m].style.display="table-row"}))}},{key:"initTableSort",value:function(e,t,a){e.classList.contains("ea-advanced-data-table-sortable")&&e.addEventListener("click",(function(o){if("th"===o.target.tagName.toLowerCase()){var n=o.target.cellIndex,r=1,i=1,l=e.rows.length-1,s="",d=o.target.classList,c=[],u=e.cloneNode(!0);d.contains("asc")?(o.target.classList.remove("asc"),o.target.classList.add("desc"),s="desc"):d.contains("desc")?(o.target.classList.remove("desc"),o.target.classList.add("asc"),s="asc"):(o.target.classList.add("asc"),s="asc"),t&&t.innerHTML.length>0&&(r=t.querySelector(".ea-advanced-data-table-pagination-current").dataset.page,i=(r-1)*e.dataset.itemsPerPage+1,l=l-(r-1)*e.dataset.itemsPerPage>=e.dataset.itemsPerPage?r*e.dataset.itemsPerPage:l),a[r]=[],e.querySelectorAll("th").forEach((function(e){e.cellIndex!=n&&e.classList.remove("asc","desc"),a[r].push(e.classList.contains("asc")?"asc":e.classList.contains("desc")?"desc":"")}));for(var f=i;f<=l;f++){var m=void 0,p=e.rows[f].cells[n];m=isNaN(parseInt(p.innerText))?p.innerText.toLowerCase():parseInt(p.innerText),c.push({index:f,value:m})}"asc"==s?c.sort((function(e,t){return e.value>t.value?1:-1})):"desc"==s&&c.sort((function(e,t){return e.value<t.value?1:-1})),c.forEach((function(t,a){e.rows[i+a].innerHTML=u.rows[t.index].innerHTML}))}}))}},{key:"initTablePagination",value:function(e,t,a){if(e.classList.contains("ea-advanced-data-table-paginated")){var o="",n=t.classList.contains("ea-advanced-data-table-pagination-button")?"button":"select",r=1,i="thead"==e.rows[0].parentNode.tagName.toLowerCase()?1:0,l=r*e.dataset.itemsPerPage,s=Math.ceil((e.rows.length-1)/e.dataset.itemsPerPage);if(s>1)if("button"==n){for(var d=1;d<=s;d++)o+='<a href="#" data-page="'.concat(d,'" class="').concat(1==d?"ea-advanced-data-table-pagination-current":"",'">').concat(d,"</a>");t.insertAdjacentHTML("beforeend",'<a href="#" data-page="1">&laquo;</a>'.concat(o,'<a href="#" data-page="').concat(s,'">&raquo;</a>'))}else{for(var c=1;c<=s;c++)o+='<option value="'.concat(c,'">').concat(c,"</option>");t.insertAdjacentHTML("beforeend","<select>".concat(o,"</select>"))}for(var u=0;u<=l&&!(u>=e.rows.length);u++)e.rows[u].style.display="table-row";"button"==n?t.addEventListener("click",(function(o){if(o.preventDefault(),"a"==o.target.tagName.toLowerCase()){r=o.target.dataset.page,offset="thead"==e.rows[0].parentNode.tagName.toLowerCase()?1:0,i=(r-1)*e.dataset.itemsPerPage+offset,l=r*e.dataset.itemsPerPage,t.querySelectorAll(".ea-advanced-data-table-pagination-current").forEach((function(e){e.classList.remove("ea-advanced-data-table-pagination-current")})),t.querySelectorAll('[data-page="'.concat(r,'"]')).forEach((function(e){e.classList.add("ea-advanced-data-table-pagination-current")}));for(var n=offset;n<=e.rows.length-1;n++)e.rows[n].style.display=n>=i&&n<=l?"table-row":"none";e.querySelectorAll("th").forEach((function(e,t){e.classList.remove("asc","desc"),void 0!==a[r]&&a[r][t]&&e.classList.add(a[r][t])}))}})):t.hasChildNodes()&&t.querySelector("select").addEventListener("input",(function(t){t.preventDefault(),r=t.target.value,offset="thead"==e.rows[0].parentNode.tagName.toLowerCase()?1:0,i=(r-1)*e.dataset.itemsPerPage+offset,l=r*e.dataset.itemsPerPage;for(var o=offset;o<=e.rows.length-1;o++)e.rows[o].style.display=o>=i&&o<=l?"table-row":"none";e.querySelectorAll("th").forEach((function(e,t){e.classList.remove("asc","desc"),void 0!==a[r]&&a[r][t]&&e.classList.add(a[r][t])}))}))}}},{key:"initWooFeatures",value:function(e){e.querySelectorAll(".nt_button_woo").forEach((function(e){e.classList.add("add_to_cart_button","ajax_add_to_cart")})),e.querySelectorAll(".nt_woo_quantity").forEach((function(t){t.addEventListener("input",(function(t){var a=t.target.dataset.product_id,o=t.target.value;$(".nt_add_to_cart_".concat(a),$(e)).data("quantity",o)}))}))}}])&&a(t.prototype,o),n&&a(t,n),e}();ea.hooks.addAction("init","ea",(function(){new o}))},function(e,t){var a=function(e,t){var a="#"+e.find(".eael-advance-tabs").attr("id").toString();t(a+" .eael-tabs-nav ul li").each((function(e){t(this).hasClass("active-default")?(t(a+" .eael-tabs-nav > ul li").removeClass("active").addClass("inactive"),t(this).removeClass("inactive")):0==e&&t(this).removeClass("inactive").addClass("active")})),t(a+" .eael-tabs-content div").each((function(e){t(this).hasClass("active-default")?t(a+" .eael-tabs-content > div").removeClass("active"):0==e&&t(this).removeClass("inactive").addClass("active")})),t(a+" .eael-tabs-nav ul li").click((function(){var e=t(this).index(),a=t(this).closest(".eael-advance-tabs"),o=t(a).children(".eael-tabs-nav").children("ul").children("li"),n=t(a).children(".eael-tabs-content").children("div");t(this).parent("li").addClass("active"),t(o).removeClass("active active-default").addClass("inactive"),t(this).addClass("active").removeClass("inactive"),t(n).removeClass("active").addClass("inactive"),t(n).eq(e).addClass("active").removeClass("inactive");var r=n.eq(e).find(".eael-filter-gallery-container"),i=n.eq(e).find(".eael-post-grid.eael-post-appender"),l=n.eq(e).find(".eael-twitter-feed-masonry"),s=n.eq(e).find(".eael-instafeed"),d=n.eq(e).find(".premium-gallery-container");i.length&&i.isotope("layout"),l.length&&l.isotope("layout"),r.length&&r.isotope("layout"),s.length&&s.isotope("layout"),d.length&&d.each((function(e,a){t(a).isotope("layout")})),t(n).each((function(e){t(this).removeClass("active-default")}))}))};jQuery(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/eael-adv-tabs.default",a)}))},function(e,t){var a=function(e,t){var a=e.find(".eael-content-ticker").eq(0),o=void 0!==a.data("items")?a.data("items"):1,n=void 0!==a.data("items-tablet")?a.data("items-tablet"):1,r=void 0!==a.data("items-mobile")?a.data("items-mobile"):1,i=void 0!==a.data("margin")?a.data("margin"):10,l=void 0!==a.data("margin-tablet")?a.data("margin-tablet"):10,s=void 0!==a.data("margin-mobile")?a.data("margin-mobile"):10,d=void 0!==a.data("effect")?a.data("effect"):"slide",c=void 0!==a.data("speed")?a.data("speed"):400,u=void 0!==a.data("autoplay")?a.data("autoplay"):5e3,f=void 0!==a.data("loop")&&a.data("loop"),m=void 0!==a.data("grab-cursor")&&a.data("grab-cursor"),p=void 0!==a.data("pagination")?a.data("pagination"):".swiper-pagination",g=void 0!==a.data("arrow-next")?a.data("arrow-next"):".swiper-button-next",v=void 0!==a.data("arrow-prev")?a.data("arrow-prev"):".swiper-button-prev",h=void 0!==a.data("pause-on-hover")?a.data("pause-on-hover"):"",y=new Swiper(a,{direction:"horizontal",loop:f,speed:c,effect:d,slidesPerView:o,spaceBetween:i,grabCursor:m,paginationClickable:!0,autoHeight:!0,autoplay:{delay:u},pagination:{el:p,clickable:!0},navigation:{nextEl:g,prevEl:v},breakpoints:{480:{slidesPerView:r,spaceBetween:s},768:{slidesPerView:n,spaceBetween:l}}});0===u&&y.autoplay.stop(),h&&0!==u&&(a.on("mouseenter",(function(){y.autoplay.stop()})),a.on("mouseleave",(function(){y.autoplay.start()})))};jQuery(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/eael-content-ticker.default",a)}))},function(e,t){var a=function(e,t){var a=e.find(".eael-countdown-wrapper").eq(0),o=void 0!==a.data("countdown-id")?a.data("countdown-id"):"",n=void 0!==a.data("expire-type")?a.data("expire-type"):"",r=void 0!==a.data("expiry-text")?a.data("expiry-text"):"",i=void 0!==a.data("expiry-title")?a.data("expiry-title"):"",l=void 0!==a.data("redirect-url")?a.data("redirect-url"):"",s=void 0!==a.data("template")?a.data("template"):"";jQuery(document).ready((function(e){"use strict";var t=e("#eael-countdown-"+o);t.countdown({end:function(){if("text"==n)t.html('<div class="eael-countdown-finish-message"><h4 class="expiry-title">'+i+'</h4><div class="eael-countdown-finish-text">'+r+"</div></div>");else if("url"===n){e("body").find("#elementor").length>0?t.html("Your Page will be redirected to given URL (only on Frontend)."):window.location.href=l}else"template"===n&&t.html(s)}})}))};jQuery(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/eael-countdown.default",a)}))},function(e,t){var a=function(e,t){var a=e.find(".eael-data-table-wrap");a.data("table_id");if("undefined"!=typeof enableProSorter&&t.isFunction(enableProSorter)&&t(document).ready((function(){enableProSorter(jQuery,a)})),1==a.data("custom_responsive")){var o=e.find(".eael-data-table").find("th");e.find(".eael-data-table").find("tbody").find("tr").each((function(e,a){t(a).find("td .td-content-wrapper").each((function(e,a){t(this).prepend('<div class="th-mobile-screen">'+o.eq(e).html()+"</div>")}))}))}},o=function(e,t,a){if("ea:table:export"==event.target.dataset.event){for(var o=a.el.querySelector("#eael-data-table-"+t.attributes.id).querySelectorAll("table tr"),n=[],r=0;r<o.length;r++){for(var i=[],l=o[r].querySelectorAll("th, td"),s=0;s<l.length;s++)i.push(JSON.stringify(l[s].innerText.replace(/(\r\n|\n|\r)/gm," ").trim()));n.push(i.join(","))}var d=new Blob([n.join("\n")],{type:"text/csv"}),c=parent.document.createElement("a");c.classList.add("eael-data-table-download-"+t.attributes.id),c.download="eael-data-table-"+t.attributes.id+".csv",c.href=window.URL.createObjectURL(d),c.style.display="none",parent.document.body.appendChild(c),c.click(),parent.document.querySelector(".eael-data-table-download-"+t.attributes.id).remove()}},n=function(e,t,a){var n=o.bind(this,e,t,a);e.el.addEventListener("click",n),e.currentPageView.on("destroy",(function(){e.el.removeEventListener("click",n)}))};jQuery(window).on("elementor/frontend/init",(function(){isEditMode&&elementor.hooks.addAction("panel/open_editor/widget/eael-data-table",n),elementorFrontend.hooks.addAction("frontend/element_ready/eael-data-table.default",a)}))},function(e,t){var a=function(e,t){var a=FullCalendar.Calendar,o=t(".eael-event-calendar-cls",e),n=t(".eaelec-modal-close",e).eq(0),r=t("#eaelecModal",e),i=o.data("events"),l=o.data("first_day"),s=o.data("cal_id"),d=o.data("locale"),c=o.data("translate"),u=o.data("defaultview"),f=new a(document.getElementById("eael-event-calendar-"+s),{plugins:["dayGrid","timeGrid","list"],editable:!1,selectable:!1,draggable:!1,firstDay:l,eventTimeFormat:{hour:"2-digit",minute:"2-digit",meridiem:"short"},nextDayThreshold:"00:00:00",header:{left:"prev,next today",center:"title",right:"timeGridDay,timeGridWeek,dayGridMonth,listWeek"},events:i,selectHelper:!0,locale:d,eventLimit:3,defaultView:u,eventRender:function(e){var a=t(e.el),o=e.event;void 0!==o.extendedProps.eventHasComplete&&"yes"===o.extendedProps.eventHasComplete&&(a.find("div.fc-content .fc-title").addClass("eael-event-completed"),a.find("td.fc-list-item-title").addClass("eael-event-completed")),c.today=e.event._calendar.dateEnv.locale.options.buttonText.today,a.attr("href","javascript:void(0);"),a.click((function(e){e.preventDefault(),e.stopPropagation();var a=o.start,n="h:mm A",i=o.end,l=t("span.eaelec-event-date-start"),s=t("span.eaelec-event-date-end");"yes"===o.allDay&&(i=moment(i).subtract(1,"days")._d,n=" ");var d=moment(a).format("YYYY"),u=moment(i).format("YYYY"),f=u>d,m="",p="";l.html(" "),s.html(" "),r.addClass("eael-ec-popup-ready").removeClass("eael-ec-modal-removing"),"yes"===o.allDay&&moment(a).format("MM-DD-YYYY")===moment(i).format("MM-DD-YYYY")?(m=moment(a).format("MMM Do"),!0===moment(a).isSame(Date.now(),"day")?m=c.today:moment(a).format("MM-DD-YYYY")===moment(new Date).add(1,"days").format("MM-DD-YYYY")&&(m=c.tomorrow)):(!0===moment(o.start).isSame(Date.now(),"day")&&(m=c.today+" "+moment(o.start).format(n)),moment(a).format("MM-DD-YYYY")===moment(new Date).add(1,"days").format("MM-DD-YYYY")&&(m=c.tomorrow+" "+moment(o.start).format(n)),(moment(a).format("MM-DD-YYYY")<moment(new Date).format("MM-DD-YYYY")||moment(a).format("MM-DD-YYYY")>moment(new Date).add(1,"days").format("MM-DD-YYYY"))&&(m=moment(o.start).format("MMM Do "+n)),m=f?d+" "+m:m,!0===moment(i).isSame(Date.now(),"day")&&(p=!0!==moment(a).isSame(Date.now(),"day")?c.today+" "+moment(i).format(n):moment(i).format(n)),moment(a).format("MM-DD-YYYY")!==moment(new Date).add(1,"days").format("MM-DD-YYYY")&&moment(i).format("MM-DD-YYYY")===moment(new Date).add(1,"days").format("MM-DD-YYYY")&&(p=c.tomorrow+" "+moment(i).format(n)),moment(a).format("MM-DD-YYYY")===moment(new Date).add(1,"days").format("MM-DD-YYYY")&&moment(i).format("MM-DD-YYYY")===moment(new Date).add(1,"days").format("MM-DD-YYYY")&&(p=moment(i).format(n)),moment(i).diff(moment(a),"days")>0&&s.text().trim().length<1&&(p=moment(i).format("MMM Do "+n)),moment(a).format("MM-DD-YYYY")===moment(i).format("MM-DD-YYYY")&&(p=moment(i).format(n)),p=f?u+" "+p:p),void 0!==o.extendedProps.hideEndDate&&"yes"===o.extendedProps.hideEndDate?s.html(" "):s.html(""!=p?"- "+p:""),l.html('<i class="eicon-calendar"></i> '+m),t(".eaelec-modal-header h2").html(o.title),t(".eaelec-modal-body p").html(o.extendedProps.description),o.extendedProps.description.length<1?t(".eaelec-modal-body").css("height","auto"):t(".eaelec-modal-body").css("height","300px"),t(".eaelec-modal-footer a").attr("href",o.url),"on"===o.extendedProps.external&&t(".eaelec-modal-footer a").attr("target","_blank"),"on"===o.extendedProps.nofollow&&t(".eaelec-modal-footer a").attr("rel","nofollow"),""==o.url&&t(".eaelec-modal-footer a").css("display","none"),t(".eaelec-modal-header").css("border-left","5px solid "+o.borderColor)}))}});n.on("click",(function(){event.stopPropagation(),r.addClass("eael-ec-modal-removing").removeClass("eael-ec-popup-ready")})),t(document).on("click",(function(e){e.target.closest(".eaelec-modal-content")||r.hasClass("eael-ec-popup-ready")&&r.addClass("eael-ec-modal-removing").removeClass("eael-ec-popup-ready")})),f.render()};jQuery(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/eael-event-calendar.default",a)}))},function(e,t){var a=function(e,t){isEditMode||($facebook_gallery=t(".eael-facebook-feed",e).isotope({itemSelector:".eael-facebook-feed-item",percentPosition:!0,columnWidth:".eael-facebook-feed-item"}),$facebook_gallery.imagesLoaded().progress((function(){$facebook_gallery.isotope("layout")}))),t(".eael-load-more-button",e).on("click",(function(a){a.preventDefault(),$this=t(this),$settings=$this.attr("data-settings"),$page=$this.attr("data-page"),$loadmore_text=$this.attr("data-loadmore-text"),$this.addClass("button--loading"),t("span",$this).html("Loading..."),t.ajax({url:localize.ajaxurl,type:"post",data:{action:"facebook_feed_load_more",security:localize.nonce,settings:$settings,page:$page},success:function(a){$html=t(a.html),$facebook_gallery=t(".eael-facebook-feed",e).isotope(),t(".eael-facebook-feed",e).append($html),$facebook_gallery.isotope("appended",$html),$facebook_gallery.imagesLoaded().progress((function(){$facebook_gallery.isotope("layout")})),a.num_pages>$page?($this.attr("data-page",parseInt($page)+1),$this.removeClass("button--loading"),t("span",$this).html($loadmore_text)):$this.remove()},error:function(){}})}))};jQuery(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/eael-facebook-feed.default",a)}))},function(e,t){var a=function(e,t){var a=e.find(".eael-fancy-text-container").eq(0),o=void 0!==a.data("fancy-text-id")?a.data("fancy-text-id"):"",n=void 0!==a.data("fancy-text")?a.data("fancy-text"):"",r=void 0!==a.data("fancy-text-transition-type")?a.data("fancy-text-transition-type"):"",i=void 0!==a.data("fancy-text-speed")?a.data("fancy-text-speed"):"",l=void 0!==a.data("fancy-text-delay")?a.data("fancy-text-delay"):"",s="yes"===a.data("fancy-text-cursor"),d=void 0!==a.data("fancy-text-loop")&&"yes"==a.data("fancy-text-loop");n=n.split("|"),"typing"==r&&new Typed("#eael-fancy-text-"+o,{strings:n,typeSpeed:i,backSpeed:0,startDelay:300,backDelay:l,showCursor:s,loop:d}),"typing"!=r&&t("#eael-fancy-text-"+o).Morphext({animation:r,separator:", ",speed:l,complete:function(){}}),jQuery(window).on("load",(function(){setTimeout((function(){t(".eael-fancy-text-strings",e).css("display","inline-block")}),500)})),isEditMode&&setTimeout((function(){t(".eael-fancy-text-strings",e).css("display","inline-block")}),800)};jQuery(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/eael-fancy-text.default",a)}))},function(e,t){var a=function(e,t){var a,o,n,r=e.find(".fg-layout-3-filter-controls").eq(0),i=e.find("#fg-filter-trigger"),l=e.find(".fg-layout-3-search-box"),s=e.find("#fg-search-box-input");if(l.length&&l.on("submit",(function(e){e.preventDefault()})),i.on("click",(function(){r.toggleClass("open-filters")})).blur((function(){r.toggleClass("open-filters")})),!isEditMode){var d=t(".eael-filter-gallery-container",e),c=d.data("settings"),u=d.data("gallery-items"),f="masonry"==c.grid_style?"masonry":"fitRows",m="yes"==c.gallery_enabled,p=t(".eael-filter-gallery-wrapper").data("layout-mode"),g=t(".eael-filter-gallery-wrapper").data("mfp_caption"),v=d.isotope({itemSelector:".eael-filterable-gallery-item-wrap",layoutMode:f,percentPosition:!0,stagger:30,transitionDuration:c.duration+"ms",filter:function(){var n=t(this),r=!a||n.text().match(a);null==o&&(o="layout_3"!=p?e.find(".eael-filter-gallery-control ul li").first().data("filter"):e.find(".fg-layout-3-filter-controls li").first().data("filter"));var i=!o||n.is(o);return r&&i}});t(e).magnificPopup({delegate:".eael-magnific-link",type:"image",gallery:{enabled:m},image:{titleSrc:function(e){if("yes"==g)return e.el.parents(".gallery-item-caption-over").find(".fg-item-title").html()||e.el.parents(".gallery-item-caption-wrap").find(".fg-item-title").html()||e.el.parents(".eael-filterable-gallery-item-wrap").find(".fg-item-title").html()}}}),e.on("click",".control",(function(){var a=t(this);o=t(this).attr("data-filter"),e.find("#fg-filter-trigger > span")&&e.find("#fg-filter-trigger > span").text(a.text()),a.siblings().removeClass("active"),a.addClass("active"),v.isotope()})),s.on("input",(function(){var e=t(this);clearTimeout(n),n=setTimeout((function(){a=new RegExp(e.val(),"gi"),v.isotope()}),600)})),v.imagesLoaded().progress((function(){v.isotope("layout")})),v.on("arrangeComplete",(function(){v.isotope("layout")})),t(window).on("load",(function(){v.isotope("layout")})),e.on("click",".eael-gallery-load-more",(function(a){a.preventDefault();var o=t(this),n=t(".eael-filter-gallery-container",e).children(".eael-filterable-gallery-item-wrap").length,r=d.data("total-gallery-items"),i=d.data("images-per-page"),l=d.data("nomore-item-text"),s=[];n==r&&(o.html('<div class="no-more-items-text">'+l+"</div>"),setTimeout((function(){o.fadeOut("slow")}),600));for(var c=n;c<n+i;c++)s.push(t(u[c])[0]);d.append(s),v.isotope("appended",s),v.imagesLoaded().progress((function(){v.isotope("layout")}))}))}};jQuery(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/eael-filterable-gallery.default",a)}))},function(e,t){var a=function(e,t){var a=e.find(".eael-img-accordion").eq(0),o=void 0!==a.data("img-accordion-id")?a.data("img-accordion-id"):"",n=void 0!==a.data("img-accordion-type")?a.data("img-accordion-type"):"",r=0;"on-click"===n?(t("#eael-img-accordion-"+o+" a").on("click",(function(e){0==t(this).hasClass("overlay-active")&&e.preventDefault(),0==r&&(t("#eael-img-accordion-"+o+" a").hasClass("overlay-active")&&t("#eael-img-accordion-"+o+" a").removeClass("overlay-active"),r+=1),t("#eael-img-accordion-"+o+" a").css("flex","1"),t(this).find(".overlay").parent("a").addClass("overlay-active"),t("#eael-img-accordion-"+o+" a").find(".overlay-inner").removeClass("overlay-inner-show"),t(this).find(".overlay-inner").addClass("overlay-inner-show"),t(this).css("flex","3")})),t("#eael-img-accordion-"+o+" a").on("blur",(function(e){t("#eael-img-accordion-"+o+" a").css("flex","1"),t("#eael-img-accordion-"+o+" a").find(".overlay-inner").removeClass("overlay-inner-show"),t(this).find(".overlay").parent("a").removeClass("overlay-active")}))):t("#eael-img-accordion-"+o+" a").on("hover",(function(){t("#eael-img-accordion-"+o+" a").hasClass("overlay-active")&&(t("#eael-img-accordion-"+o+" a.overlay-active").css("flex","1"),t("#eael-img-accordion-"+o+" a").removeClass("overlay-active"),t("#eael-img-accordion-"+o+" a .overlay .overlay-inner").removeClass("overlay-inner-show"))}))};jQuery(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/eael-image-accordion.default",a)}))},function(e,t){!function(e){"use strict";e(document).on("click",".eael-load-more-button",(function(t){t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation();var a=e(this),o=e("span",a).html(),n=a.data("widget"),r=e(".elementor-element-"+n),i=a.data("class"),l=a.data("args"),s=a.data("settings"),d=a.data("layout"),c=parseInt(a.data("page"))+1;if(void 0!==n&&void 0!==l){var u={},f={action:"load_more",class:i,args:l,settings:s,page:c};if(String(l).split("&").forEach((function(e,t){var a=String(e).split("=");u[a[0]]=a[1]})),"rand"==u.orderby){var m=e(".eael-grid-post");if(m.length){var p=[];m.each((function(t,a){var o=e(a).data("id");p.push(o)})),f.post__not_in=p}}a.addClass("button--loading"),e("span",a).html("Loading..."),e.ajax({url:localize.ajaxurl,type:"post",data:f,success:function(t){var n=e(t);if(n.hasClass("no-posts-found")||0==n.length)a.remove();else{if("Essential_Addons_Elementor\\Elements\\Product_Grid"==f.class)e(".eael-product-grid .products",r).append(n);else if(e(".eael-post-appender",r).append(n),"masonry"==d){var i=e(".eael-post-appender",r).isotope();i.isotope("appended",n).isotope("layout"),i.imagesLoaded().progress((function(){i.isotope("layout")}))}a.removeClass("button--loading"),e("span",a).html(o),a.data("page",c)}},error:function(e){console.log(e)}})}}))}(jQuery)},function(e,t){var a=function(e,t){var a=t(".eael-post-appender",e),o=a.data("layout-mode");"masonry"===o&&(a.isotope({itemSelector:".eael-grid-post",layoutMode:o,percentPosition:!0}),a.imagesLoaded().progress((function(){a.isotope("layout")})))};jQuery(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/eael-post-grid.default",a)}))},function(e,t){var a=function(e,t){if(t.fn.tooltipster){var a,o=e.find(".tooltip");for(a=0;a<o.length;a++){var n=t("#"+t(o[a]).attr("id")),r=void 0!==n.data("side")&&n.data("side"),i=void 0!==n.data("trigger")?n.data("trigger"):"hover",l=void 0!==n.data("animation")?n.data("animation"):"fade",s=void 0!==n.data("animation_duration")?n.data("animation_duration"):300,d=void 0!==n.data("theme")?n.data("theme"):"default",c="yes"==n.data("arrow");n.tooltipster({animation:l,trigger:i,side:r,delay:s,arrow:c,theme:"tooltipster-"+d})}}};jQuery(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/eael-pricing-table.default",a)}))},function(e,t){var a=function(e,t){var a=t(".eael-progressbar",e),o=a.data("layout"),n=a.data("count"),r=a.data("duration");n>100&&(n=100),a.one("inview",(function(){"line"==o?t(".eael-progressbar-line-fill",a).css({width:n+"%"}):"half_circle"==o&&t(".eael-progressbar-circle-half",a).css({transform:"rotate("+1.8*n+"deg)"}),ea.hooks.doAction("progressBar.initValue",a,o,n),t(".eael-progressbar-count",a).prop({counter:0}).animate({counter:n},{duration:r,easing:"linear",step:function(e){if("circle"==o||"circle_fill"==o){var n=3.6*e;t(".eael-progressbar-circle-half-left",a).css({transform:"rotate("+n+"deg)"}),n>180&&(t(".eael-progressbar-circle-pie",a).css({"-webkit-clip-path":"inset(0)","clip-path":"inset(0)"}),t(".eael-progressbar-circle-half-right",a).css({visibility:"visible"}))}t(this).text(Math.ceil(e))}})}))};jQuery(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/eael-progress-bar.default",a)}))},function(e,t){jQuery(document).ready((function(){jQuery(window).scroll((function(){var e=(document.body.scrollTop||document.documentElement.scrollTop)/(document.documentElement.scrollHeight-document.documentElement.clientHeight)*100;jQuery(".eael-reading-progress-fill").css({width:e+"%"})})),isEditMode&&(elementor.settings.page.addChangeCallback("eael_ext_reading_progress",(function(e){var t=elementor.settings.page.getSettings();"yes"==e?(0==jQuery(".eael-reading-progress-wrap").length&&jQuery("body").append('<div class="eael-reading-progress-wrap eael-reading-progress-wrap-local"><div class="eael-reading-progress eael-reading-progress-local eael-reading-progress-'+t.settings.eael_ext_reading_progress_position+'"><div class="eael-reading-progress-fill"></div></div><div class="eael-reading-progress eael-reading-progress-global eael-reading-progress-'+t.settings.eael_ext_reading_progress_position+'"><div class="eael-reading-progress-fill"></div></div></div>'),jQuery(".eael-reading-progress-wrap").addClass("eael-reading-progress-wrap-local").removeClass("eael-reading-progress-wrap-global eael-reading-progress-wrap-disabled")):(jQuery(".eael-reading-progress-wrap").removeClass("eael-reading-progress-wrap-local eael-reading-progress-wrap-global"),1==t.settings.eael_ext_reading_progress_has_global?jQuery(".eael-reading-progress-wrap").addClass("eael-reading-progress-wrap-global"):jQuery(".eael-reading-progress-wrap").addClass("eael-reading-progress-wrap-disabled"))})),elementor.settings.page.addChangeCallback("eael_ext_reading_progress_position",(function(e){elementor.settings.page.setSettings("eael_ext_reading_progress_position",e),jQuery(".eael-reading-progress").removeClass("eael-reading-progress-top eael-reading-progress-bottom").addClass("eael-reading-progress-"+e)})))}))},function(e,t){var a="",o=0,n=0,r=0,i="off",l=0;function s(e){var t=jQuery(e).parent().height(),a=l*t/100;return jQuery(e).parent().offset().top+a}function d(e,t,a){"top-left"==e&&(jQuery(".eael-sticky-video-player2.out").css("top","40px"),jQuery(".eael-sticky-video-player2.out").css("left","40px")),"top-right"==e&&(jQuery(".eael-sticky-video-player2.out").css("top","40px"),jQuery(".eael-sticky-video-player2.out").css("right","40px")),"bottom-right"==e&&(jQuery(".eael-sticky-video-player2.out").css("bottom","40px"),jQuery(".eael-sticky-video-player2.out").css("right","40px")),"bottom-left"==e&&(jQuery(".eael-sticky-video-player2.out").css("bottom","40px"),jQuery(".eael-sticky-video-player2.out").css("left","40px")),jQuery(".eael-sticky-video-player2.out").css("width",a+"px"),jQuery(".eael-sticky-video-player2.out").css("height",t+"px")}jQuery(window).on("elementor/frontend/init",(function(){isEditMode&&elementor.hooks.addAction("panel/open_editor/widget/eael-sticky-video",(function(e,t,a){var o;t.attributes.settings.on("change:eaelsv_sticky_width",(function(){clearTimeout(o),o=setTimeout((function(){var a=Math.ceil(t.getSetting("eaelsv_sticky_width")/1.78);t.attributes.settings.attributes.eaelsv_sticky_height=a,e.el.querySelector('[data-setting="eaelsv_sticky_height"]').value=a}),250)})),t.attributes.settings.on("change:eaelsv_sticky_height",(function(){clearTimeout(o),o=setTimeout((function(){var a=Math.ceil(1.78*t.getSetting("eaelsv_sticky_height"));t.attributes.settings.attributes.eaelsv_sticky_width=a,e.el.querySelector('[data-setting="eaelsv_sticky_width"]').value=a}),250)}))})),elementorFrontend.hooks.addAction("frontend/element_ready/eael-sticky-video.default",(function(e,t){t(".eaelsv-sticky-player-close",e).hide();var c,u,f,m=e.find(".eael-sticky-video-player2");c=m.data("sticky"),u=m.data("autoplay"),a=m.data("position"),n=m.data("sheight"),o=m.data("swidth"),f=m.data("overlay"),l=m.data("scroll_height"),d(a,n,o);var p,g=new Plyr("#eaelsv-player-"+e.data("id"));if("no"===f&&"yes"===u&&"yes"===c&&(r=s(m),m.attr("id","videobox"),i="on",p=m,g.on("play",(function(e){r=s(p),jQuery(".eael-sticky-video-player2").removeAttr("id"),jQuery(".eael-sticky-video-player2").removeClass("out"),p.attr("id","videobox"),i="on",a=p.data("position"),n=p.data("sheight"),o=p.data("swidth")}))),"yes"===f){var v=m.prev();i="off",t(v).on("click",(function(){t(".eael-sticky-video-wrapper > i").hide(),t(this).css("display","none"),"yes"===t(this).next().data("autoplay")&&(g.restart(),r=s(this),"yes"===c&&(t(this).next().attr("id","videobox"),i="on"))}))}g.on("pause",(function(e){i="off"})),g.on("play",(function(e){i="on"})),t(".eaelsv-sticky-player-close").on("click",(function(){m.removeClass("out").addClass("in"),t(".eael-sticky-video-player2").removeAttr("style"),i="off"})),m.parent().css("height",m.height()+"px"),t(window).resize((function(){m.parent().css("height",m.height()+"px")}))}))})),jQuery(window).scroll((function(){var e=jQuery(window).scrollTop();jQuery(document).height()-e>jQuery(window).height()+400&&(e>=r?"on"==i&&(jQuery("#videobox").find(".eaelsv-sticky-player-close").css("display","block"),jQuery("#videobox").removeClass("in").addClass("out"),d(a,n,o)):(jQuery(".eaelsv-sticky-player-close").hide(),jQuery("#videobox").removeClass("out").addClass("in"),jQuery(".eael-sticky-video-player2").removeAttr("style")))}))},function(e,t){function a(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);"Object"===a&&e.constructor&&(a=e.constructor.name);if("Map"===a||"Set"===a)return Array.from(e);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return o(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,o=new Array(t);a<t;a++)o[a]=e[a];return o}!function(e){jQuery(document).ready((function(){function t(t,o){var i=document.getElementById("eael-toc-list");if(null===t||void 0===o||!i)return null;for(var l=document.getElementById("eael-toc"),s=void 0!==l.dataset.titleurl?l.dataset.titleurl:"false",d=void 0!==l.dataset.excludeSelector?l.dataset.excludeSelector.replace(/^,|,$/g,""):"",c=[],u=document.querySelectorAll(t),f=0,m=0;m<u.length;m++)c=[].concat(a(c),a(u[m].querySelectorAll(o)));(c=Array.from(new Set(c))).forEach((function(e){n(d,e)||(e.id=f+"-"+r(s,e.textContent),e.classList.add("eael-heading-content"),f++)})),function(e,t,a){var o=t,i=a,l=document.getElementById("eael-toc"),s=void 0!==l.dataset.titleurl?l.dataset.titleurl:"false",d=document.getElementById("eael-toc-list"),c=void 0!==l.dataset.excludeselector?l.dataset.excludeselector.replace(/^,|,$/g,""):"",u="",f=u=o.trim().split(",")[0].substr(1,1),m=d;d.innerHTML="",i.length>0&&document.getElementById("eael-toc").classList.remove("eael-toc-disable");for(var p=0,g=i.length;p<g;++p){var v=i[p];if(!n(c,v)){var h=parseInt(v.tagName.substr(1,1)),y=h-u;if(y>0){var b=m.lastChild;if(b){var w=document.createElement("UL");b.appendChild(w),m=w,u=h}}var _=!1;if(y<0){for(;0!=y++;)m.parentNode.parentNode&&(m=m.parentNode.parentNode);u=h,_=!0}if("UL"!==m.tagName&&(m=d),""!==v.textContent.trim()){var x=document.createElement("LI"),C=document.createElement("A"),k=document.createElement("SPAN");(f===u||_)&&(x.setAttribute("itemscope",""),x.setAttribute("itemtype","http://schema.org/ListItem"),x.setAttribute("itemprop","itemListElement"));var Y="#"+p+"-"+r(s,v.textContent);C.className="eael-toc-link",C.setAttribute("itemprop","item"),C.setAttribute("href",Y),k.appendChild(document.createTextNode(v.textContent)),C.appendChild(k),x.appendChild(C),m.appendChild(x)}}}}(0,o,c);var p=e("ul.eael-toc-list > li");p.length<1&&document.getElementById("eael-toc").classList.add("eael-toc-disable"),p.each((function(){this.classList.add("eael-first-child")}))}e(document).on("click","ul.eael-toc-list a",(function(t){t.preventDefault(),e(document).off("scroll");var a=this.hash;if(history.pushState("",document.title,window.location.pathname+window.location.search),e(this).parent().is(".eael-highlight-parent.eael-highlight-active"))return window.location.hash=a,!1;e(".eael-highlight-active, .eael-highlight-parent").removeClass("eael-highlight-active eael-highlight-parent"),e(this).closest(".eael-first-child").addClass("eael-highlight-parent"),e(this).parent().addClass("eael-highlight-active"),window.location.hash=a})),window.addEventListener("scroll",(function(e){!function(){var e=document.getElementById("eael-toc");if(!e)return;o=void 0!==o?o:200,window.pageYOffset>=o&&!e.classList.contains("eael-toc-disable")?e.classList.add("eael-sticky"):e.classList.remove("eael-sticky")}()}));var o=e("#eael-toc").data("stickyscroll");function n(t,a){return e(a).closest(t).length}function r(e,t){return"true"==e&&""!=t?t.toString().toLowerCase().normalize("NFD").trim().replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/^-+/,"").replace(/-+$/,"").replace(/-+/g,"-"):"eael-table-of-content"}function i(){var t=document.getElementById("eael-toc");if(t&&t.dataset.contentselector)return t.dataset.contentselector;var a=".site-content";return e(".site-content")[0]?a=".site-content":e(".elementor-inner")[0]?a=".elementor-inner":e("#site-content")[0]&&(a="#site-content"),a}e("body").click((function(t){var a=e(t.target),o=e("#eael-toc");o.hasClass("eael-toc-auto-collapse")&&o.hasClass("eael-sticky")&&!o.hasClass("collapsed")&&0===e(a).closest("#eael-toc").length&&o.toggleClass("collapsed")})),e(document).on("click",".eael-toc-close ,.eael-toc-button",(function(t){t.stopPropagation(),e(".eael-toc").toggleClass("collapsed")}));var l=e("#eael-toc").data("eaeltoctag");if(""===l||isEditMode||t(i(),l),isEditMode){elementorFrontend.hooks.addAction("frontend/element_ready/widget",(function(e,a){var o=a("#eael-toc #eael-toc-list");if(o.find("li.eael-first-child").length<1&&o.length>=1){var n=a("#eael-toc").data("eaeltoctag");n&&t(i(),n)}})),elementor.settings.page.addChangeCallback("eael_ext_table_of_content",(function(a){var o=e(".eael-toc-global");if(o.length>0&&(o.attr("id","eael-toc-temp").removeClass("eael-toc").hide(),e(".eael-toc-global #eael-toc-list").attr("id","")),e("#eael-toc").remove(),"yes"===a){var n=elementor.settings.page.getSettings();e("body").append(function(e){var t=e.settings,a=t.eael_ext_toc_title,o="eael-toc-list eael-toc-list-"+t.eael_ext_table_of_content_list_style,n=t.eael_ext_table_of_content_header_icon.value,r="right"===t.eael_ext_toc_position?" eael-toc-right":" ";return o+="yes"===t.eael_ext_toc_collapse_sub_heading?" eael-toc-collapse":" ",'<div id="eael-toc" class="eael-toc eael-toc-disable '+r+'"><div class="eael-toc-header"><span class="eael-toc-close">×</span><h2 class="eael-toc-title">'+a+'</h2></div><div class="eael-toc-body"><ul id="eael-toc-list" class="'+(o+="number"===t.eael_ext_toc_list_icon?" eael-toc-number":" eael-toc-bullet")+'"></ul></div><button class="eael-toc-button"><i class="'+n+'"></i><span>'+a+"</span></button></div>"}(n)),t(i(),n.settings.eael_ext_toc_supported_heading_tag.join(", "))}else o.length>0&&o.addClass("eael-toc").attr("id","eael-toc").show()})),elementor.settings.page.addChangeCallback("eael_ext_toc_position",(function(t){"right"===t?e("#eael-toc").addClass("eael-toc-right"):e("#eael-toc").removeClass("eael-toc-right")})),elementor.settings.page.addChangeCallback("eael_ext_table_of_content_list_style",(function(t){var a=e(".eael-toc-list");a.removeClass("eael-toc-list-bar eael-toc-list-arrow"),"none"!==t&&a.addClass("eael-toc-list-"+t)})),elementor.settings.page.addChangeCallback("eael_ext_toc_collapse_sub_heading",(function(t){var a=e(".eael-toc-list");"yes"===t?a.addClass("eael-toc-collapse"):a.removeClass("eael-toc-collapse")})),elementor.settings.page.addChangeCallback("eael_ext_table_of_content_header_icon",(function(t){e(".eael-toc-button i").removeClass().addClass(t.value)})),elementor.settings.page.addChangeCallback("eael_ext_toc_list_icon",(function(t){var a=e(".eael-toc-list");"number"===t?a.addClass("eael-toc-number").removeClass("eael-toc-bullet"):a.addClass("eael-toc-bullet").removeClass("eael-toc-number")})),elementor.settings.page.addChangeCallback("eael_ext_toc_word_wrap",(function(t){var a=e(".eael-toc-list");"yes"===t?a.addClass("eael-toc-word-wrap"):a.removeClass("eael-toc-word-wrap")})),elementor.settings.page.addChangeCallback("eael_ext_toc_close_button_text_style",(function(t){var a=e("#eael-toc");"bottom_to_top"===t?a.addClass("eael-bottom-to-top"):a.removeClass("eael-bottom-to-top")})),elementor.settings.page.addChangeCallback("eael_ext_toc_box_shadow",(function(t){var a=e("#eael-toc");"yes"===t?a.addClass("eael-box-shadow"):a.removeClass("eael-box-shadow")})),elementor.settings.page.addChangeCallback("eael_ext_toc_auto_collapse",(function(t){var a=e("#eael-toc");"yes"===t?a.addClass("eael-toc-auto-collapse"):a.removeClass("eael-toc-auto-collapse")})),elementor.settings.page.addChangeCallback("eael_ext_toc_title",(function(e){elementorFrontend.elements.$document.find(".eael-toc-title").text(e),elementorFrontend.elements.$document.find(".eael-toc-button span").text(e)}))}}))}(jQuery)},function(e,t){var a=function(e,t){isEditMode||($gutter=t(".eael-twitter-feed-masonry",e).data("gutter"),$settings={itemSelector:".eael-twitter-feed-item",percentPosition:!0,masonry:{columnWidth:".eael-twitter-feed-item",gutter:$gutter}},$twitter_feed_gallery=t(".eael-twitter-feed-masonry",e).isotope($settings),$twitter_feed_gallery.imagesLoaded().progress((function(){$twitter_feed_gallery.isotope("layout")})))};jQuery(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/eael-twitter-feed.default",a)}))},function(e,t){var a=function(e,t){if(typeformEmbed){var a=e.find(".eael-typeform"),o=a.attr("id"),n=a.data("typeform");if(void 0!==o&&void 0!==n){var r=document.getElementById(o);n.url&&typeformEmbed.makeWidget(r,n.url,{hideFooter:n.hideFooter,hideHeaders:n.hideHeaders,opacity:n.opacity})}}};jQuery(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/eael-typeform.default",a)}))},function(e,t){var a=function(e,t){function a(){var e=t(".ea-woo-checkout");setTimeout((function(){t(".ea-checkout-review-order-table").addClass("processing").block({message:null,overlayCSS:{background:"#fff",opacity:.6}}),t.ajax({type:"POST",url:localize.ajaxurl,data:{action:"woo_checkout_update_order_review",orderReviewData:e.data("checkout")},success:function(e){t(".ea-checkout-review-order-table").replaceWith(e.order_review),setTimeout((function(){t(".ea-checkout-review-order-table").removeClass("processing").unblock()}),1e5)}})}),2e3)}t.blockUI.defaults.overlayCSS.cursor="default",t(document).on("click",".woocommerce-remove-coupon",(function(e){a()})),t("form.checkout_coupon").submit((function(e){a()}))};jQuery(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/eael-woo-checkout.default",a)}))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){"use strict";a.r(t);var o=function(e){return"string"!=typeof e||""===e?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(e)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)};var n=function(e){return"string"!=typeof e||""===e?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(e)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(e)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)};var r=function(e){return function(t,a,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10;if(n(t)&&o(a))if("function"==typeof r)if("number"==typeof i){var l={callback:r,priority:i,namespace:a};if(e[t]){var s,d=e[t].handlers;for(s=d.length;s>0&&!(i>=d[s-1].priority);s--);s===d.length?d[s]=l:d.splice(s,0,l),(e.__current||[]).forEach((function(e){e.name===t&&e.currentIndex>=s&&e.currentIndex++}))}else e[t]={handlers:[l],runs:0};"hookAdded"!==t&&p("hookAdded",t,a,r,i)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}};var i=function(e,t){return function(a,r){if(n(a)&&(t||o(r))){if(!e[a])return 0;var i=0;if(t)i=e[a].handlers.length,e[a]={runs:e[a].runs,handlers:[]};else for(var l=e[a].handlers,s=function(t){l[t].namespace===r&&(l.splice(t,1),i++,(e.__current||[]).forEach((function(e){e.name===a&&e.currentIndex>=t&&e.currentIndex--})))},d=l.length-1;d>=0;d--)s(d);return"hookRemoved"!==a&&p("hookRemoved",a,r),i}}};var l=function(e){return function(t,a){return void 0!==a?t in e&&e[t].handlers.some((function(e){return e.namespace===a})):t in e}};var s=function(e,t){return function(a){e[a]||(e[a]={handlers:[],runs:0}),e[a].runs++;var o=e[a].handlers;for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];if(!o||!o.length)return t?r[0]:void 0;var l={name:a,currentIndex:0};for(e.__current.push(l);l.currentIndex<o.length;){var s=o[l.currentIndex],d=s.callback.apply(null,r);t&&(r[0]=d),l.currentIndex++}return e.__current.pop(),t?r[0]:void 0}};var d=function(e){return function(){return e.__current&&e.__current.length?e.__current[e.__current.length-1].name:null}};var c=function(e){return function(t){return void 0===t?void 0!==e.__current[0]:!!e.__current[0]&&t===e.__current[0].name}};var u=function(e){return function(t){if(n(t))return e[t]&&e[t].runs?e[t].runs:0}};var f=function(){var e=Object.create(null),t=Object.create(null);return e.__current=[],t.__current=[],{addAction:r(e),addFilter:r(t),removeAction:i(e),removeFilter:i(t),hasAction:l(e),hasFilter:l(t),removeAllActions:i(e,!0),removeAllFilters:i(t,!0),doAction:s(e),applyFilters:s(t,!0),currentAction:d(e),currentFilter:d(t),doingAction:c(e),doingFilter:c(t),didAction:u(e),didFilter:u(t),actions:e,filters:t}},m=f(),p=(m.addAction,m.addFilter,m.removeAction,m.removeFilter,m.hasAction,m.hasFilter,m.removeAllActions,m.removeAllFilters,m.doAction);m.applyFilters,m.currentAction,m.currentFilter,m.doingAction,m.doingFilter,m.didAction,m.didFilter,m.actions,m.filters;window.isEditMode=!1,window.ea={hooks:f(),isEditMode:!1},jQuery(window).on("elementor/frontend/init",(function(){window.isEditMode=elementorFrontend.isEditMode(),window.ea.isEditMode=elementorFrontend.isEditMode(),ea.hooks.doAction("init"),ea.isEditMode&&ea.hooks.doAction("editMode.init")}))}]);
essential_adons_elementor.php CHANGED
@@ -4,7 +4,7 @@
4
  * Description: The Essential plugin you install after Elementor! 70+ Premium elements, including WooCommerce, Event Calender, Data Table, Post Grid, Instagram Feed.
5
  * Plugin URI: https://essential-addons.com/elementor/
6
  * Author: WPDeveloper
7
- * Version: 4.0.2
8
  * Author URI: https://wpdeveloper.net/
9
  * Text Domain: essential-addons-for-elementor-lite
10
  * Domain Path: /languages
@@ -26,7 +26,7 @@ define('EAEL_PLUGIN_FILE', __FILE__);
26
  define('EAEL_PLUGIN_BASENAME', plugin_basename(__FILE__));
27
  define('EAEL_PLUGIN_PATH', trailingslashit(plugin_dir_path(__FILE__)));
28
  define('EAEL_PLUGIN_URL', trailingslashit(plugins_url('/', __FILE__)));
29
- define('EAEL_PLUGIN_VERSION', '4.0.2');
30
  define('EAEL_ASSET_PATH', wp_upload_dir()['basedir'] . '/essential-addons-elementor');
31
  define('EAEL_ASSET_URL', wp_upload_dir()['baseurl'] . '/essential-addons-elementor');
32
 
4
  * Description: The Essential plugin you install after Elementor! 70+ Premium elements, including WooCommerce, Event Calender, Data Table, Post Grid, Instagram Feed.
5
  * Plugin URI: https://essential-addons.com/elementor/
6
  * Author: WPDeveloper
7
+ * Version: 4.0.3
8
  * Author URI: https://wpdeveloper.net/
9
  * Text Domain: essential-addons-for-elementor-lite
10
  * Domain Path: /languages
26
  define('EAEL_PLUGIN_BASENAME', plugin_basename(__FILE__));
27
  define('EAEL_PLUGIN_PATH', trailingslashit(plugin_dir_path(__FILE__)));
28
  define('EAEL_PLUGIN_URL', trailingslashit(plugins_url('/', __FILE__)));
29
+ define('EAEL_PLUGIN_VERSION', '4.0.3');
30
  define('EAEL_ASSET_PATH', wp_upload_dir()['basedir'] . '/essential-addons-elementor');
31
  define('EAEL_ASSET_URL', wp_upload_dir()['baseurl'] . '/essential-addons-elementor');
32
 
includes/Elements/Feature_List.php CHANGED
@@ -337,6 +337,10 @@ class Feature_List extends Widget_Base {
337
  'max' => 100,
338
  ],
339
  ],
 
 
 
 
340
  'selectors' => [
341
  '{{WRAPPER}} .eael-feature-list-items.connector-type-modern .eael-feature-list-item:after' => 'top: {{SIZE}}{{UNIT}} !important;',
342
  ],
@@ -463,7 +467,8 @@ class Feature_List extends Widget_Base {
463
  'label' => esc_html__( 'Connector Width', 'essential-addons-for-elementor-lite' ),
464
  'type' => Controls_Manager::SLIDER,
465
  'default' => [
466
- 'size' => 1,
 
467
  ],
468
  'range' => [
469
  'px' => [
337
  'max' => 100,
338
  ],
339
  ],
340
+ 'default' => [
341
+ 'unit' => 'px',
342
+ 'size' => 35,
343
+ ],
344
  'selectors' => [
345
  '{{WRAPPER}} .eael-feature-list-items.connector-type-modern .eael-feature-list-item:after' => 'top: {{SIZE}}{{UNIT}} !important;',
346
  ],
467
  'label' => esc_html__( 'Connector Width', 'essential-addons-for-elementor-lite' ),
468
  'type' => Controls_Manager::SLIDER,
469
  'default' => [
470
+ 'unit' => 'px',
471
+ 'size' => 1,
472
  ],
473
  'range' => [
474
  'px' => [
includes/Elements/Filterable_Gallery.php CHANGED
@@ -3001,7 +3001,7 @@ class Filterable_Gallery extends Widget_Base
3001
 
3002
  $html .= '<div class="fg-layout-3-item-thumb">';
3003
 
3004
- $html .= '<img src="' . $item['image'] . '" alt="' . esc_attr(get_post_meta($item['image_id'], '_wp_attachment_image_alt', true)) . '">';
3005
 
3006
  $html .= '<div class="gallery-item-caption-wrap card-hover-bg caption-style-hoverer">';
3007
  $html .= '<div class="fg-caption-head">';
@@ -3104,7 +3104,7 @@ class Filterable_Gallery extends Widget_Base
3104
 
3105
  }
3106
  $html .= '<div class="gallery-item-thumbnail-wrap">';
3107
- $html .= '<img src="' . $item['image'] . '" alt="' . esc_attr(get_post_meta($item['image_id'], '_wp_attachment_image_alt', true)) . '" class="gallery-item-thumbnail">';
3108
 
3109
  if ( empty($settings['eael_section_fg_full_image_clickable']) ) {
3110
 
3001
 
3002
  $html .= '<div class="fg-layout-3-item-thumb">';
3003
 
3004
+ $html .= '<img src="' . $item['image'] . '" data-lazy-src="'.$item['image'].'" alt="' . esc_attr(get_post_meta($item['image_id'], '_wp_attachment_image_alt', true)) . '" class="gallery-item-thumbnail">';
3005
 
3006
  $html .= '<div class="gallery-item-caption-wrap card-hover-bg caption-style-hoverer">';
3007
  $html .= '<div class="fg-caption-head">';
3104
 
3105
  }
3106
  $html .= '<div class="gallery-item-thumbnail-wrap">';
3107
+ $html .= '<img src="' . $item['image'] . '" data-lazy-src="'.$item['image'].'" alt="' . esc_attr(get_post_meta($item['image_id'], '_wp_attachment_image_alt', true)) . '" class="gallery-item-thumbnail">';
3108
 
3109
  if ( empty($settings['eael_section_fg_full_image_clickable']) ) {
3110
 
includes/Elements/Post_Grid.php CHANGED
@@ -1053,7 +1053,7 @@ class Post_Grid extends Widget_Base {
1053
  if ( 'yes' == $settings['show_load_more'] ) {
1054
  if ( $args['posts_per_page'] != '-1' ) {
1055
  echo '<div class="eael-load-more-button-wrap">
1056
- <button class="eael-load-more-button" id="eael-load-more-btn-' . $this->get_id() . '" data-widget="' . $this->get_id() . '" data-class="' . get_class( $this ) . '" data-args="' . http_build_query( $args ) . '" data-settings="' . http_build_query( $settings_arry ) . '" data-layout="masonry" data-page="1">
1057
  <div class="eael-btn-loader button__loader"></div>
1058
  <span>' . esc_html__( $settings['show_load_more_text'], 'essential-addons-for-elementor-lite' ) . '</span>
1059
  </button>
1053
  if ( 'yes' == $settings['show_load_more'] ) {
1054
  if ( $args['posts_per_page'] != '-1' ) {
1055
  echo '<div class="eael-load-more-button-wrap">
1056
+ <button class="eael-load-more-button" id="eael-load-more-btn-' . $this->get_id() . '" data-widget="' . $this->get_id() . '" data-class="' . get_class( $this ) . '" data-args="' . http_build_query( $args ) . '" data-settings="' . http_build_query( $settings_arry ) . '" data-layout="'.$settings['layout_mode'].'" data-page="1">
1057
  <div class="eael-btn-loader button__loader"></div>
1058
  <span>' . esc_html__( $settings['show_load_more_text'], 'essential-addons-for-elementor-lite' ) . '</span>
1059
  </button>
includes/Template/Content/Post_Grid.php CHANGED
@@ -37,7 +37,7 @@ trait Post_Grid {
37
  if ( $settings['eael_show_meta'] ) {
38
  echo '<div class="eael-entry-meta">';
39
  if ( $settings['eael_show_author'] === 'yes' ) {
40
- echo '<span class="eael-posted-by">' . get_the_author_meta( 'display_name' ) . '</span>';
41
  }
42
  if ( $settings['eael_show_date'] === 'yes' ) {
43
  echo '<span class="eael-posted-on"><time datetime="' . get_the_date() . '">' . get_the_date() . '</time></span>';
37
  if ( $settings['eael_show_meta'] ) {
38
  echo '<div class="eael-entry-meta">';
39
  if ( $settings['eael_show_author'] === 'yes' ) {
40
+ echo '<span class="eael-posted-by">' . get_the_author_posts_link() . '</span>';
41
  }
42
  if ( $settings['eael_show_date'] === 'yes' ) {
43
  echo '<span class="eael-posted-on"><time datetime="' . get_the_date() . '">' . get_the_date() . '</time></span>';
includes/Traits/Elements.php CHANGED
@@ -342,7 +342,8 @@ trait Elements
342
  }
343
 
344
  // Table of Contents
345
- if ($this->get_settings('eael-table-of-content') == true) {
 
346
  if ($page_settings_model->get_settings('eael_ext_table_of_content') == 'yes' || isset($global_settings['eael_ext_table_of_content']['enabled'])) {
347
  add_filter('eael/section/after_render', function ($extensions) {
348
  $extensions[] = 'eael-table-of-content';
342
  }
343
 
344
  // Table of Contents
345
+ $elementor_page = \Elementor\Plugin::$instance->db->is_built_with_elementor( get_the_ID() );
346
+ if ($this->get_settings('eael-table-of-content') == true && $elementor_page === true) {
347
  if ($page_settings_model->get_settings('eael_ext_table_of_content') == 'yes' || isset($global_settings['eael_ext_table_of_content']['enabled'])) {
348
  add_filter('eael/section/after_render', function ($extensions) {
349
  $extensions[] = 'eael-table-of-content';
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: elementor, elements, addons, elementor addon, elementor widget, elementor
4
  Requires at least: 4.0
5
  Tested up to: 5.4
6
  Requires PHP: 5.4
7
- Stable tag: 4.0.2
8
  License: GPLv3
9
  License URI: https://opensource.org/licenses/GPL-3.0
10
 
@@ -224,6 +224,15 @@ Your existing elements/content will work with premium version. So you won't lose
224
 
225
  == Changelog ==
226
 
 
 
 
 
 
 
 
 
 
227
  = 4.0.2 - 04/06/2020 =
228
  - Improvement : EA Post Grid | Added margin & padding controls for Thumbnail & Content, and 2 more preset layouts
229
  - Improvement : EA Creative Buttons | Added Gradient background color option, and border radius option
4
  Requires at least: 4.0
5
  Tested up to: 5.4
6
  Requires PHP: 5.4
7
+ Stable tag: 4.0.3
8
  License: GPLv3
9
  License URI: https://opensource.org/licenses/GPL-3.0
10
 
224
 
225
  == Changelog ==
226
 
227
+ = 4.0.3 - 11/06/2020 =
228
+ - Fixed: EA Filterable Gallery Image Overlapping issue with Lazyload- WP Rocket
229
+ - Fixed: EA Feature List Default Arrow Indicator Position issue
230
+ - Fixed: EA Table of Content appearing at the bottom for Gutenberg posts
231
+ - Fixed: EA Post Grid issue with Load More 'Grid' layout becoming Masonry
232
+ - Fixed: EA Post Grid issue with PressForward plugin
233
+ - Fixed: EA Sticky Video Icon overlapping issue
234
+ - Few minor bugfix and improvements
235
+
236
  = 4.0.2 - 04/06/2020 =
237
  - Improvement : EA Post Grid | Added margin & padding controls for Thumbnail & Content, and 2 more preset layouts
238
  - Improvement : EA Creative Buttons | Added Gradient background color option, and border radius option