Elementor Essential Addons - Version 5.2.0

Version Description

  • 11/08/2022 =

  • Improved: Asset loading mechanism for better performance

  • Few minor bug fixes & improvements

Download this release

Release Info

Developer wpdevteam
Plugin Icon 128x128 Elementor Essential Addons
Version 5.2.0
Comparing to
See all releases

Code changes from version 5.1.9 to 5.2.0

assets/front-end/js/view/event-calendar.js CHANGED
@@ -93,7 +93,7 @@
93
  /*! no static exports found */
94
  /***/ (function(module, exports) {
95
 
96
- eval("var EventCalendar = function EventCalendar($scope, $) {\n var Calendar = FullCalendar.Calendar;\n var element = $(\".eael-event-calendar-cls\", $scope),\n CloseButton = $(\".eaelec-modal-close\", $scope).eq(0),\n ecModal = $(\"#eaelecModal\", $scope),\n eventAll = element.data(\"events\"),\n firstDay = element.data(\"first_day\"),\n calendarID = element.data(\"cal_id\"),\n locale = element.data(\"locale\"),\n translate = element.data(\"translate\"),\n defaultView = element.data(\"defaultview\"),\n defaultDate = element.data(\"defaultdate\"),\n time_format = element.data(\"time_format\") == \"yes\" ? true : false;\n var calendar = new Calendar($scope[0].querySelector(\".eael-event-calendar-cls\"), {\n plugins: [\"dayGrid\", \"timeGrid\", \"list\"],\n editable: false,\n selectable: false,\n draggable: false,\n firstDay: firstDay,\n eventTimeFormat: {\n hour: \"2-digit\",\n minute: \"2-digit\",\n hour12: !time_format\n },\n nextDayThreshold: \"00:00:00\",\n header: {\n left: \"prev,next today\",\n center: \"title\",\n right: \"timeGridDay,timeGridWeek,dayGridMonth,listMonth\"\n },\n events: eventAll,\n selectHelper: true,\n locale: locale,\n eventLimit: 3,\n defaultView: defaultView,\n defaultDate: defaultDate,\n eventRender: function eventRender(info) {\n var element = $(info.el),\n event = info.event;\n moment.locale(locale); // when event is finished event text are cross\n\n if (event.extendedProps.eventHasComplete !== undefined && event.extendedProps.eventHasComplete === \"yes\") {\n element.find(\"div.fc-content .fc-title\").addClass(\"eael-event-completed\");\n element.find(\"td.fc-list-item-title\").addClass(\"eael-event-completed\");\n }\n\n translate.today = info.event._calendar.dateEnv.locale.options.buttonText.today;\n\n if (event.extendedProps.is_redirect == 'yes') {\n element.attr(\"href\", event.url);\n\n if (event.extendedProps.external === \"on\") {\n element.attr(\"target\", \"_blank\");\n element.find(\"td.fc-list-item-title a\").attr(\"target\", \"_blank\");\n }\n\n if (event.extendedProps.nofollow === \"on\") {\n element.attr(\"rel\", \"nofollow\");\n element.find(\"td.fc-list-item-title a\").attr(\"rel\", \"nofollow\");\n }\n\n if (event.extendedProps.custom_attributes != '') {\n $.each(event.extendedProps.custom_attributes, function (index, item) {\n element.attr(item.key, item.value);\n element.find(\"td.fc-list-item-title a\").attr(item.key, item.value);\n });\n }\n\n if (element.hasClass('fc-list-item')) {\n element.removeAttr(\"href target rel\");\n element.removeClass(\"fc-has-url\");\n element.css('cursor', 'default');\n }\n } else {\n element.attr(\"href\", \"javascript:void(0);\");\n element.click(function (e) {\n e.preventDefault();\n e.stopPropagation();\n var startDate = event.start,\n timeFormate = time_format ? \"H:mm\" : \"h:mm A\",\n endDate = event.end,\n startSelector = $(\"span.eaelec-event-date-start\"),\n endSelector = $(\"span.eaelec-event-date-end\");\n\n if (event.allDay === \"yes\") {\n var newEnd = moment(endDate).subtract(1, \"days\");\n endDate = newEnd._d;\n timeFormate = \" \";\n }\n\n var startYear = moment(startDate).format(\"YYYY\"),\n endYear = moment(endDate).format(\"YYYY\"),\n yearDiff = endYear > startYear,\n startView = \"\",\n endView = \"\";\n startSelector.html(\" \");\n endSelector.html(\" \");\n ecModal.addClass(\"eael-ec-popup-ready\").removeClass(\"eael-ec-modal-removing\");\n\n if (event.allDay === \"yes\" && moment(startDate).format(\"MM-DD-YYYY\") === moment(endDate).format(\"MM-DD-YYYY\")) {\n startView = moment(startDate).format(\"MMM Do\");\n\n if (moment(startDate).isSame(Date.now(), \"day\") === true) {\n startView = translate.today;\n } else if (moment(startDate).format(\"MM-DD-YYYY\") === moment(new Date()).add(1, \"days\").format(\"MM-DD-YYYY\")) {\n startView = translate.tomorrow;\n }\n } else {\n if (moment(event.start).isSame(Date.now(), \"day\") === true) {\n startView = translate.today + \" \" + moment(event.start).format(timeFormate);\n }\n\n if (moment(startDate).format(\"MM-DD-YYYY\") === moment(new Date()).add(1, \"days\").format(\"MM-DD-YYYY\")) {\n startView = translate.tomorrow + \" \" + moment(event.start).format(timeFormate);\n }\n\n if (moment(startDate).format(\"MM-DD-YYYY\") < moment(new Date()).format(\"MM-DD-YYYY\") || moment(startDate).format(\"MM-DD-YYYY\") > moment(new Date()).add(1, \"days\").format(\"MM-DD-YYYY\")) {\n startView = moment(event.start).format(\"MMM Do \" + timeFormate);\n }\n\n startView = yearDiff ? startYear + \" \" + startView : startView;\n\n if (moment(endDate).isSame(Date.now(), \"day\") === true) {\n if (moment(startDate).isSame(Date.now(), \"day\") !== true) {\n endView = translate.today + \" \" + moment(endDate).format(timeFormate);\n } else {\n endView = moment(endDate).format(timeFormate);\n }\n }\n\n if (moment(startDate).format(\"MM-DD-YYYY\") !== moment(new Date()).add(1, \"days\").format(\"MM-DD-YYYY\") && moment(endDate).format(\"MM-DD-YYYY\") === moment(new Date()).add(1, \"days\").format(\"MM-DD-YYYY\")) {\n endView = translate.tomorrow + \" \" + moment(endDate).format(timeFormate);\n }\n\n if (moment(startDate).format(\"MM-DD-YYYY\") === moment(new Date()).add(1, \"days\").format(\"MM-DD-YYYY\") && moment(endDate).format(\"MM-DD-YYYY\") === moment(new Date()).add(1, \"days\").format(\"MM-DD-YYYY\")) {\n endView = moment(endDate).format(timeFormate);\n }\n\n if (moment(endDate).diff(moment(startDate), \"days\") > 0 && endSelector.text().trim().length < 1) {\n endView = moment(endDate).format(\"MMM Do \" + timeFormate);\n }\n\n if (moment(startDate).format(\"MM-DD-YYYY\") === moment(endDate).format(\"MM-DD-YYYY\")) {\n endView = moment(endDate).format(timeFormate);\n }\n\n endView = yearDiff ? endYear + \" \" + endView : endView;\n }\n\n if (event.extendedProps.hideEndDate !== undefined && event.extendedProps.hideEndDate === \"yes\") {\n endSelector.html(\" \");\n } else {\n endSelector.html(endView != \"\" ? \"- \" + endView : \"\");\n }\n\n startSelector.html('<i class=\"eicon-calendar\"></i> ' + startView);\n $(\".eaelec-modal-header h2\").html(event.title);\n $(\".eaelec-modal-body p\").html(event.extendedProps.description);\n\n if (event.extendedProps.description.length < 1) {\n $(\".eaelec-modal-body\").css(\"height\", \"auto\");\n } else {\n $(\".eaelec-modal-body\").css(\"height\", \"300px\");\n }\n\n $(\".eaelec-modal-footer a\").attr(\"href\", event.url);\n\n if (event.extendedProps.external === \"on\") {\n $(\".eaelec-modal-footer a\").attr(\"target\", \"_blank\");\n }\n\n if (event.extendedProps.nofollow === \"on\") {\n $(\".eaelec-modal-footer a\").attr(\"rel\", \"nofollow\");\n }\n\n if (event.extendedProps.custom_attributes != '') {\n $.each(event.extendedProps.custom_attributes, function (index, item) {\n $(\".eaelec-modal-footer a\").attr(item.key, item.value);\n });\n }\n\n if (event.url == \"\") {\n $(\".eaelec-modal-footer a\").css(\"display\", \"none\");\n } else {\n $(\".eaelec-modal-footer a\").css(\"display\", \"block\");\n } // Popup color\n\n\n $(\".eaelec-modal-header\").css(\"border-left\", \"5px solid \" + event.borderColor); // Popup color\n\n $(\".eaelec-modal-header\").css(\"border-left\", \"5px solid \" + event.borderColor);\n });\n }\n }\n });\n CloseButton.on(\"click\", function (event) {\n event.stopPropagation();\n ecModal.addClass(\"eael-ec-modal-removing\").removeClass(\"eael-ec-popup-ready\");\n });\n $(document).on(\"click\", function (event) {\n if (event.target.closest(\".eaelec-modal-content\")) return;\n\n if (ecModal.hasClass(\"eael-ec-popup-ready\")) {\n ecModal.addClass(\"eael-ec-modal-removing\").removeClass(\"eael-ec-popup-ready\");\n }\n });\n calendar.render();\n ea.hooks.addAction(\"eventCalendar.reinit\", \"ea\", function () {\n calendar.today();\n });\n};\n\njQuery(window).on(\"elementor/frontend/init\", function () {\n elementorFrontend.hooks.addAction(\"frontend/element_ready/eael-event-calendar.default\", EventCalendar);\n});\n\n//# sourceURL=webpack:///./src/js/view/event-calendar.js?");
97
 
98
  /***/ })
99
 
93
  /*! no static exports found */
94
  /***/ (function(module, exports) {
95
 
96
+ eval("var EventCalendar = function EventCalendar($scope, $) {\n var Calendar = FullCalendar.Calendar;\n var element = $(\".eael-event-calendar-cls\", $scope),\n CloseButton = $(\".eaelec-modal-close\", $scope).eq(0),\n ecModal = $(\"#eaelecModal\", $scope),\n eventAll = element.data(\"events\"),\n firstDay = element.data(\"first_day\"),\n calendarID = element.data(\"cal_id\"),\n locale = element.data(\"locale\"),\n translate = element.data(\"translate\"),\n defaultView = element.data(\"defaultview\"),\n defaultDate = element.data(\"defaultdate\"),\n time_format = element.data(\"time_format\") == \"yes\" ? true : false;\n var calendar = new Calendar($scope[0].querySelector(\".eael-event-calendar-cls\"), {\n plugins: [\"dayGrid\", \"timeGrid\", \"list\"],\n editable: false,\n selectable: false,\n draggable: false,\n firstDay: firstDay,\n eventTimeFormat: {\n hour: \"2-digit\",\n minute: \"2-digit\",\n hour12: !time_format\n },\n nextDayThreshold: \"00:00:00\",\n header: {\n left: \"prev,next today\",\n center: \"title\",\n right: \"timeGridDay,timeGridWeek,dayGridMonth,listMonth\"\n },\n events: eventAll,\n selectHelper: true,\n locale: locale,\n eventLimit: 3,\n defaultView: defaultView,\n defaultDate: defaultDate,\n eventRender: function eventRender(info) {\n var element = $(info.el),\n event = info.event;\n moment.locale(locale); // when event is finished event text are cross\n\n if (event.extendedProps.eventHasComplete !== undefined && event.extendedProps.eventHasComplete === \"yes\") {\n element.find(\"div.fc-content .fc-title\").addClass(\"eael-event-completed\");\n element.find(\"td.fc-list-item-title\").addClass(\"eael-event-completed\");\n }\n\n translate.today = info.event._calendar.dateEnv.locale.options.buttonText.today;\n\n if (event.extendedProps.is_redirect == 'yes') {\n element.attr(\"href\", event.url);\n\n if (event.extendedProps.external === \"on\") {\n element.attr(\"target\", \"_blank\");\n element.find(\"td.fc-list-item-title a\").attr(\"target\", \"_blank\");\n }\n\n if (event.extendedProps.nofollow === \"on\") {\n element.attr(\"rel\", \"nofollow\");\n element.find(\"td.fc-list-item-title a\").attr(\"rel\", \"nofollow\");\n }\n\n if (event.extendedProps.custom_attributes != '') {\n $.each(event.extendedProps.custom_attributes, function (index, item) {\n element.attr(item.key, item.value);\n element.find(\"td.fc-list-item-title a\").attr(item.key, item.value);\n });\n }\n\n if (element.hasClass('fc-list-item')) {\n element.removeAttr(\"href target rel\");\n element.removeClass(\"fc-has-url\");\n element.css('cursor', 'default');\n }\n } else {\n element.attr(\"href\", \"javascript:void(0);\");\n element.click(function (e) {\n e.preventDefault();\n e.stopPropagation();\n var startDate = event.start,\n timeFormate = time_format ? \"H:mm\" : \"h:mm A\",\n endDate = event.end,\n startSelector = $(\"span.eaelec-event-date-start\"),\n endSelector = $(\"span.eaelec-event-date-end\");\n\n if (event.allDay === \"yes\") {\n var newEnd = moment(endDate).subtract(1, \"days\");\n endDate = newEnd._d;\n timeFormate = \" \";\n }\n\n var startYear = moment(startDate).format(\"YYYY\"),\n endYear = moment(endDate).format(\"YYYY\"),\n yearDiff = endYear > startYear,\n startView = \"\",\n endView = \"\";\n startSelector.html(\" \");\n endSelector.html(\" \");\n ecModal.addClass(\"eael-ec-popup-ready\").removeClass(\"eael-ec-modal-removing\");\n\n if (event.allDay === \"yes\" && moment(startDate).format(\"MM-DD-YYYY\") === moment(endDate).format(\"MM-DD-YYYY\")) {\n startView = moment(startDate).format(\"MMM Do\");\n\n if (moment(startDate).isSame(Date.now(), \"day\") === true) {\n startView = translate.today;\n } else if (moment(startDate).format(\"MM-DD-YYYY\") === moment(new Date()).add(1, \"days\").format(\"MM-DD-YYYY\")) {\n startView = translate.tomorrow;\n }\n } else {\n if (moment(event.start).isSame(Date.now(), \"day\") === true) {\n startView = translate.today + \" \" + moment(event.start).format(timeFormate);\n }\n\n if (moment(startDate).format(\"MM-DD-YYYY\") === moment(new Date()).add(1, \"days\").format(\"MM-DD-YYYY\")) {\n startView = translate.tomorrow + \" \" + moment(event.start).format(timeFormate);\n }\n\n if (moment(startDate).format(\"MM-DD-YYYY\") < moment(new Date()).format(\"MM-DD-YYYY\") || moment(startDate).format(\"MM-DD-YYYY\") > moment(new Date()).add(1, \"days\").format(\"MM-DD-YYYY\")) {\n startView = moment(event.start).format(\"MMM Do \" + timeFormate);\n }\n\n startView = yearDiff ? startYear + \" \" + startView : startView;\n\n if (moment(endDate).isSame(Date.now(), \"day\") === true) {\n if (moment(startDate).isSame(Date.now(), \"day\") !== true) {\n endView = translate.today + \" \" + moment(endDate).format(timeFormate);\n } else {\n endView = moment(endDate).format(timeFormate);\n }\n }\n\n if (moment(startDate).format(\"MM-DD-YYYY\") !== moment(new Date()).add(1, \"days\").format(\"MM-DD-YYYY\") && moment(endDate).format(\"MM-DD-YYYY\") === moment(new Date()).add(1, \"days\").format(\"MM-DD-YYYY\")) {\n endView = translate.tomorrow + \" \" + moment(endDate).format(timeFormate);\n }\n\n if (moment(startDate).format(\"MM-DD-YYYY\") === moment(new Date()).add(1, \"days\").format(\"MM-DD-YYYY\") && moment(endDate).format(\"MM-DD-YYYY\") === moment(new Date()).add(1, \"days\").format(\"MM-DD-YYYY\")) {\n endView = moment(endDate).format(timeFormate);\n }\n\n if (moment(endDate).diff(moment(startDate), \"days\") > 0 && endSelector.text().trim().length < 1) {\n endView = moment(endDate).format(\"MMM Do \" + timeFormate);\n }\n\n if (moment(startDate).format(\"MM-DD-YYYY\") === moment(endDate).format(\"MM-DD-YYYY\")) {\n endView = moment(endDate).format(timeFormate);\n }\n\n endView = yearDiff ? endYear + \" \" + endView : endView;\n }\n\n if (event.extendedProps.hideEndDate !== undefined && event.extendedProps.hideEndDate === \"yes\") {\n endSelector.html(\" \");\n } else {\n endSelector.html(endView != \"\" ? \"- \" + endView : \"\");\n }\n\n startSelector.html('<i class=\"eicon-calendar\"></i> ' + startView);\n $(\".eaelec-modal-header h2\").html(event.title);\n $(\".eaelec-modal-body p\").html(event.extendedProps.description);\n\n if (event.extendedProps.description.length < 1) {\n $(\".eaelec-modal-body\").css(\"height\", \"auto\");\n } else {\n $(\".eaelec-modal-body\").css(\"height\", \"300px\");\n }\n\n $(\".eaelec-modal-footer a\").attr(\"href\", event.url);\n\n if (event.extendedProps.external === \"on\") {\n $(\".eaelec-modal-footer a\").attr(\"target\", \"_blank\");\n }\n\n if (event.extendedProps.nofollow === \"on\") {\n $(\".eaelec-modal-footer a\").attr(\"rel\", \"nofollow\");\n }\n\n if (event.extendedProps.custom_attributes != '') {\n $.each(event.extendedProps.custom_attributes, function (index, item) {\n $(\".eaelec-modal-footer a\").attr(item.key, item.value);\n });\n }\n\n if (event.url == \"\") {\n $(\".eaelec-modal-footer a\").css(\"display\", \"none\");\n } else {\n $(\".eaelec-modal-footer a\").css(\"display\", \"block\");\n } // Popup color\n\n\n $(\".eaelec-modal-header\").css(\"border-left\", \"5px solid \" + event.borderColor); // Popup color\n\n $(\".eaelec-modal-header\").css(\"border-left\", \"5px solid \" + event.borderColor);\n });\n }\n }\n });\n CloseButton.on(\"click\", function (event) {\n event.stopPropagation();\n ecModal.addClass(\"eael-ec-modal-removing\").removeClass(\"eael-ec-popup-ready\");\n });\n $(document).on(\"click\", function (event) {\n if (event.target.closest(\".eaelec-modal-content\")) return;\n\n if (ecModal.hasClass(\"eael-ec-popup-ready\")) {\n ecModal.addClass(\"eael-ec-modal-removing\").removeClass(\"eael-ec-popup-ready\");\n }\n });\n calendar.render();\n ea.hooks.addAction(\"eventCalendar.reinit\", \"ea\", function () {\n calendar.today();\n });\n};\n\njQuery(window).on(\"elementor/frontend/init\", function () {\n if (ea.elementStatusCheck('eaelEventCalendar')) {\n return false;\n }\n\n elementorFrontend.hooks.addAction(\"frontend/element_ready/eael-event-calendar.default\", EventCalendar);\n});\n\n//# sourceURL=webpack:///./src/js/view/event-calendar.js?");
97
 
98
  /***/ })
99
 
assets/front-end/js/view/event-calendar.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=8)}({8: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),d=o.data("events"),l=o.data("first_day"),m=(o.data("cal_id"),o.data("locale")),s=o.data("translate"),i=o.data("defaultview"),c=o.data("defaultdate"),f="yes"==o.data("time_format"),Y=new a(e[0].querySelector(".eael-event-calendar-cls"),{plugins:["dayGrid","timeGrid","list"],editable:!1,selectable:!1,draggable:!1,firstDay:l,eventTimeFormat:{hour:"2-digit",minute:"2-digit",hour12:!f},nextDayThreshold:"00:00:00",header:{left:"prev,next today",center:"title",right:"timeGridDay,timeGridWeek,dayGridMonth,listMonth"},events:d,selectHelper:!0,locale:m,eventLimit:3,defaultView:i,defaultDate:c,eventRender:function(e){var a=t(e.el),o=e.event;moment.locale(m),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")),s.today=e.event._calendar.dateEnv.locale.options.buttonText.today,"yes"==o.extendedProps.is_redirect?(a.attr("href",o.url),"on"===o.extendedProps.external&&(a.attr("target","_blank"),a.find("td.fc-list-item-title a").attr("target","_blank")),"on"===o.extendedProps.nofollow&&(a.attr("rel","nofollow"),a.find("td.fc-list-item-title a").attr("rel","nofollow")),""!=o.extendedProps.custom_attributes&&t.each(o.extendedProps.custom_attributes,(function(e,t){a.attr(t.key,t.value),a.find("td.fc-list-item-title a").attr(t.key,t.value)})),a.hasClass("fc-list-item")&&(a.removeAttr("href target rel"),a.removeClass("fc-has-url"),a.css("cursor","default"))):(a.attr("href","javascript:void(0);"),a.click((function(e){e.preventDefault(),e.stopPropagation();var a=o.start,n=f?"H:mm":"h:mm A",d=o.end,l=t("span.eaelec-event-date-start"),m=t("span.eaelec-event-date-end");"yes"===o.allDay&&(d=moment(d).subtract(1,"days")._d,n=" ");var i=moment(a).format("YYYY"),c=moment(d).format("YYYY"),Y=c>i,u="",p="";l.html(" "),m.html(" "),r.addClass("eael-ec-popup-ready").removeClass("eael-ec-modal-removing"),"yes"===o.allDay&&moment(a).format("MM-DD-YYYY")===moment(d).format("MM-DD-YYYY")?(u=moment(a).format("MMM Do"),!0===moment(a).isSame(Date.now(),"day")?u=s.today:moment(a).format("MM-DD-YYYY")===moment(new Date).add(1,"days").format("MM-DD-YYYY")&&(u=s.tomorrow)):(!0===moment(o.start).isSame(Date.now(),"day")&&(u=s.today+" "+moment(o.start).format(n)),moment(a).format("MM-DD-YYYY")===moment(new Date).add(1,"days").format("MM-DD-YYYY")&&(u=s.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"))&&(u=moment(o.start).format("MMM Do "+n)),u=Y?i+" "+u:u,!0===moment(d).isSame(Date.now(),"day")&&(p=!0!==moment(a).isSame(Date.now(),"day")?s.today+" "+moment(d).format(n):moment(d).format(n)),moment(a).format("MM-DD-YYYY")!==moment(new Date).add(1,"days").format("MM-DD-YYYY")&&moment(d).format("MM-DD-YYYY")===moment(new Date).add(1,"days").format("MM-DD-YYYY")&&(p=s.tomorrow+" "+moment(d).format(n)),moment(a).format("MM-DD-YYYY")===moment(new Date).add(1,"days").format("MM-DD-YYYY")&&moment(d).format("MM-DD-YYYY")===moment(new Date).add(1,"days").format("MM-DD-YYYY")&&(p=moment(d).format(n)),moment(d).diff(moment(a),"days")>0&&m.text().trim().length<1&&(p=moment(d).format("MMM Do "+n)),moment(a).format("MM-DD-YYYY")===moment(d).format("MM-DD-YYYY")&&(p=moment(d).format(n)),p=Y?c+" "+p:p),void 0!==o.extendedProps.hideEndDate&&"yes"===o.extendedProps.hideEndDate?m.html(" "):m.html(""!=p?"- "+p:""),l.html('<i class="eicon-calendar"></i> '+u),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.extendedProps.custom_attributes&&t.each(o.extendedProps.custom_attributes,(function(e,a){t(".eaelec-modal-footer a").attr(a.key,a.value)})),""==o.url?t(".eaelec-modal-footer a").css("display","none"):t(".eaelec-modal-footer a").css("display","block"),t(".eaelec-modal-header").css("border-left","5px solid "+o.borderColor),t(".eaelec-modal-header").css("border-left","5px solid "+o.borderColor)})))}});n.on("click",(function(e){e.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")})),Y.render(),ea.hooks.addAction("eventCalendar.reinit","ea",(function(){Y.today()}))};jQuery(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/eael-event-calendar.default",a)}))}});
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=8)}({8: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),d=o.data("events"),l=o.data("first_day"),m=(o.data("cal_id"),o.data("locale")),s=o.data("translate"),i=o.data("defaultview"),c=o.data("defaultdate"),f="yes"==o.data("time_format"),Y=new a(e[0].querySelector(".eael-event-calendar-cls"),{plugins:["dayGrid","timeGrid","list"],editable:!1,selectable:!1,draggable:!1,firstDay:l,eventTimeFormat:{hour:"2-digit",minute:"2-digit",hour12:!f},nextDayThreshold:"00:00:00",header:{left:"prev,next today",center:"title",right:"timeGridDay,timeGridWeek,dayGridMonth,listMonth"},events:d,selectHelper:!0,locale:m,eventLimit:3,defaultView:i,defaultDate:c,eventRender:function(e){var a=t(e.el),o=e.event;moment.locale(m),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")),s.today=e.event._calendar.dateEnv.locale.options.buttonText.today,"yes"==o.extendedProps.is_redirect?(a.attr("href",o.url),"on"===o.extendedProps.external&&(a.attr("target","_blank"),a.find("td.fc-list-item-title a").attr("target","_blank")),"on"===o.extendedProps.nofollow&&(a.attr("rel","nofollow"),a.find("td.fc-list-item-title a").attr("rel","nofollow")),""!=o.extendedProps.custom_attributes&&t.each(o.extendedProps.custom_attributes,(function(e,t){a.attr(t.key,t.value),a.find("td.fc-list-item-title a").attr(t.key,t.value)})),a.hasClass("fc-list-item")&&(a.removeAttr("href target rel"),a.removeClass("fc-has-url"),a.css("cursor","default"))):(a.attr("href","javascript:void(0);"),a.click((function(e){e.preventDefault(),e.stopPropagation();var a=o.start,n=f?"H:mm":"h:mm A",d=o.end,l=t("span.eaelec-event-date-start"),m=t("span.eaelec-event-date-end");"yes"===o.allDay&&(d=moment(d).subtract(1,"days")._d,n=" ");var i=moment(a).format("YYYY"),c=moment(d).format("YYYY"),Y=c>i,u="",p="";l.html(" "),m.html(" "),r.addClass("eael-ec-popup-ready").removeClass("eael-ec-modal-removing"),"yes"===o.allDay&&moment(a).format("MM-DD-YYYY")===moment(d).format("MM-DD-YYYY")?(u=moment(a).format("MMM Do"),!0===moment(a).isSame(Date.now(),"day")?u=s.today:moment(a).format("MM-DD-YYYY")===moment(new Date).add(1,"days").format("MM-DD-YYYY")&&(u=s.tomorrow)):(!0===moment(o.start).isSame(Date.now(),"day")&&(u=s.today+" "+moment(o.start).format(n)),moment(a).format("MM-DD-YYYY")===moment(new Date).add(1,"days").format("MM-DD-YYYY")&&(u=s.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"))&&(u=moment(o.start).format("MMM Do "+n)),u=Y?i+" "+u:u,!0===moment(d).isSame(Date.now(),"day")&&(p=!0!==moment(a).isSame(Date.now(),"day")?s.today+" "+moment(d).format(n):moment(d).format(n)),moment(a).format("MM-DD-YYYY")!==moment(new Date).add(1,"days").format("MM-DD-YYYY")&&moment(d).format("MM-DD-YYYY")===moment(new Date).add(1,"days").format("MM-DD-YYYY")&&(p=s.tomorrow+" "+moment(d).format(n)),moment(a).format("MM-DD-YYYY")===moment(new Date).add(1,"days").format("MM-DD-YYYY")&&moment(d).format("MM-DD-YYYY")===moment(new Date).add(1,"days").format("MM-DD-YYYY")&&(p=moment(d).format(n)),moment(d).diff(moment(a),"days")>0&&m.text().trim().length<1&&(p=moment(d).format("MMM Do "+n)),moment(a).format("MM-DD-YYYY")===moment(d).format("MM-DD-YYYY")&&(p=moment(d).format(n)),p=Y?c+" "+p:p),void 0!==o.extendedProps.hideEndDate&&"yes"===o.extendedProps.hideEndDate?m.html(" "):m.html(""!=p?"- "+p:""),l.html('<i class="eicon-calendar"></i> '+u),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.extendedProps.custom_attributes&&t.each(o.extendedProps.custom_attributes,(function(e,a){t(".eaelec-modal-footer a").attr(a.key,a.value)})),""==o.url?t(".eaelec-modal-footer a").css("display","none"):t(".eaelec-modal-footer a").css("display","block"),t(".eaelec-modal-header").css("border-left","5px solid "+o.borderColor),t(".eaelec-modal-header").css("border-left","5px solid "+o.borderColor)})))}});n.on("click",(function(e){e.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")})),Y.render(),ea.hooks.addAction("eventCalendar.reinit","ea",(function(){Y.today()}))};jQuery(window).on("elementor/frontend/init",(function(){if(ea.elementStatusCheck("eaelEventCalendar"))return!1;elementorFrontend.hooks.addAction("frontend/element_ready/eael-event-calendar.default",a)}))}});
assets/front-end/js/view/fancy-text.js CHANGED
@@ -93,7 +93,7 @@
93
  /*! no static exports found */
94
  /***/ (function(module, exports) {
95
 
96
- eval("var FancyText = function FancyText($scope, $) {\n var $fancyText = $scope.find(\".eael-fancy-text-container\").eq(0),\n $id = $fancyText.data(\"fancy-text-id\") !== undefined ? $fancyText.data(\"fancy-text-id\") : \"\",\n $fancy_text = $fancyText.data(\"fancy-text\") !== undefined ? $fancyText.data(\"fancy-text\") : \"\",\n $transition_type = $fancyText.data(\"fancy-text-transition-type\") !== undefined ? $fancyText.data(\"fancy-text-transition-type\") : \"\",\n $fancy_text_speed = $fancyText.data(\"fancy-text-speed\") !== undefined ? $fancyText.data(\"fancy-text-speed\") : \"\",\n $fancy_text_delay = $fancyText.data(\"fancy-text-delay\") !== undefined ? $fancyText.data(\"fancy-text-delay\") : \"\",\n $fancy_text_cursor = $fancyText.data(\"fancy-text-cursor\") === \"yes\" ? true : false,\n $fancy_text_loop = $fancyText.data(\"fancy-text-loop\") !== undefined ? $fancyText.data(\"fancy-text-loop\") == \"yes\" ? true : false : false;\n $fancy_text = $fancy_text.split(\"|\");\n\n if ($transition_type == \"typing\") {\n new Typed(\"#eael-fancy-text-\" + $id, {\n strings: $fancy_text,\n typeSpeed: $fancy_text_speed,\n backSpeed: 0,\n startDelay: 300,\n backDelay: $fancy_text_delay,\n showCursor: $fancy_text_cursor,\n loop: $fancy_text_loop\n });\n }\n\n if ($transition_type != \"typing\") {\n $(\"#eael-fancy-text-\" + $id).Morphext({\n animation: $transition_type,\n separator: \", \",\n speed: $fancy_text_delay,\n complete: function complete() {// Overrides default empty function\n }\n });\n }\n\n jQuery(document).ready(function () {\n setTimeout(function () {\n $(\".eael-fancy-text-strings\", $scope).css(\"display\", \"inline-block\");\n }, 500);\n });\n\n if (isEditMode) {\n setTimeout(function () {\n $(\".eael-fancy-text-strings\", $scope).css(\"display\", \"inline-block\");\n }, 800);\n }\n};\n\njQuery(window).on(\"elementor/frontend/init\", function () {\n elementorFrontend.hooks.addAction(\"frontend/element_ready/eael-fancy-text.default\", FancyText);\n});\n\n//# sourceURL=webpack:///./src/js/view/fancy-text.js?");
97
 
98
  /***/ })
99
 
93
  /*! no static exports found */
94
  /***/ (function(module, exports) {
95
 
96
+ eval("var FancyText = function FancyText($scope, $) {\n var $fancyText = $scope.find(\".eael-fancy-text-container\").eq(0),\n $id = $fancyText.data(\"fancy-text-id\") !== undefined ? $fancyText.data(\"fancy-text-id\") : \"\",\n $fancy_text = $fancyText.data(\"fancy-text\") !== undefined ? $fancyText.data(\"fancy-text\") : \"\",\n $transition_type = $fancyText.data(\"fancy-text-transition-type\") !== undefined ? $fancyText.data(\"fancy-text-transition-type\") : \"\",\n $fancy_text_speed = $fancyText.data(\"fancy-text-speed\") !== undefined ? $fancyText.data(\"fancy-text-speed\") : \"\",\n $fancy_text_delay = $fancyText.data(\"fancy-text-delay\") !== undefined ? $fancyText.data(\"fancy-text-delay\") : \"\",\n $fancy_text_cursor = $fancyText.data(\"fancy-text-cursor\") === \"yes\" ? true : false,\n $fancy_text_loop = $fancyText.data(\"fancy-text-loop\") !== undefined ? $fancyText.data(\"fancy-text-loop\") == \"yes\" ? true : false : false;\n $fancy_text = $fancy_text.split(\"|\");\n\n if ($transition_type == \"typing\") {\n new Typed(\"#eael-fancy-text-\" + $id, {\n strings: $fancy_text,\n typeSpeed: $fancy_text_speed,\n backSpeed: 0,\n startDelay: 300,\n backDelay: $fancy_text_delay,\n showCursor: $fancy_text_cursor,\n loop: $fancy_text_loop\n });\n }\n\n if ($transition_type != \"typing\") {\n $(\"#eael-fancy-text-\" + $id).Morphext({\n animation: $transition_type,\n separator: \", \",\n speed: $fancy_text_delay,\n complete: function complete() {// Overrides default empty function\n }\n });\n }\n\n jQuery(document).ready(function () {\n setTimeout(function () {\n $(\".eael-fancy-text-strings\", $scope).css(\"display\", \"inline-block\");\n }, 500);\n });\n\n if (isEditMode) {\n setTimeout(function () {\n $(\".eael-fancy-text-strings\", $scope).css(\"display\", \"inline-block\");\n }, 800);\n }\n};\n\njQuery(window).on(\"elementor/frontend/init\", function () {\n if (ea.elementStatusCheck('eaelFancyTextLoad')) {\n return false;\n }\n\n elementorFrontend.hooks.addAction(\"frontend/element_ready/eael-fancy-text.default\", FancyText);\n});\n\n//# sourceURL=webpack:///./src/js/view/fancy-text.js?");
97
 
98
  /***/ })
99
 
assets/front-end/js/view/fancy-text.min.js CHANGED
@@ -1 +1 @@
1
- !function(e){var t={};function n(a){if(t[a])return t[a].exports;var o=t[a]={i:a,l:!1,exports:{}};return e[a].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(a,o,function(t){return e[t]}.bind(null,o));return a},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=10)}({10:function(e,t){var n=function(e,t){var n=e.find(".eael-fancy-text-container").eq(0),a=void 0!==n.data("fancy-text-id")?n.data("fancy-text-id"):"",o=void 0!==n.data("fancy-text")?n.data("fancy-text"):"",r=void 0!==n.data("fancy-text-transition-type")?n.data("fancy-text-transition-type"):"",i=void 0!==n.data("fancy-text-speed")?n.data("fancy-text-speed"):"",d=void 0!==n.data("fancy-text-delay")?n.data("fancy-text-delay"):"",c="yes"===n.data("fancy-text-cursor"),f=void 0!==n.data("fancy-text-loop")&&"yes"==n.data("fancy-text-loop");o=o.split("|"),"typing"==r&&new Typed("#eael-fancy-text-"+a,{strings:o,typeSpeed:i,backSpeed:0,startDelay:300,backDelay:d,showCursor:c,loop:f}),"typing"!=r&&t("#eael-fancy-text-"+a).Morphext({animation:r,separator:", ",speed:d,complete:function(){}}),jQuery(document).ready((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",n)}))}});
1
+ !function(e){var t={};function n(a){if(t[a])return t[a].exports;var o=t[a]={i:a,l:!1,exports:{}};return e[a].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(a,o,function(t){return e[t]}.bind(null,o));return a},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=10)}({10:function(e,t){var n=function(e,t){var n=e.find(".eael-fancy-text-container").eq(0),a=void 0!==n.data("fancy-text-id")?n.data("fancy-text-id"):"",o=void 0!==n.data("fancy-text")?n.data("fancy-text"):"",r=void 0!==n.data("fancy-text-transition-type")?n.data("fancy-text-transition-type"):"",i=void 0!==n.data("fancy-text-speed")?n.data("fancy-text-speed"):"",d=void 0!==n.data("fancy-text-delay")?n.data("fancy-text-delay"):"",c="yes"===n.data("fancy-text-cursor"),f=void 0!==n.data("fancy-text-loop")&&"yes"==n.data("fancy-text-loop");o=o.split("|"),"typing"==r&&new Typed("#eael-fancy-text-"+a,{strings:o,typeSpeed:i,backSpeed:0,startDelay:300,backDelay:d,showCursor:c,loop:f}),"typing"!=r&&t("#eael-fancy-text-"+a).Morphext({animation:r,separator:", ",speed:d,complete:function(){}}),jQuery(document).ready((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(){if(ea.elementStatusCheck("eaelFancyTextLoad"))return!1;elementorFrontend.hooks.addAction("frontend/element_ready/eael-fancy-text.default",n)}))}});
assets/front-end/js/view/general.js CHANGED
@@ -310,7 +310,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/**\n * Validate a namespace
310
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
311
 
312
  "use strict";
313
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/hooks */ \"./node_modules/@wordpress/hooks/build-module/index.js\");\n\nwindow.isEditMode = false;\nwindow.ea = {\n hooks: Object(_wordpress_hooks__WEBPACK_IMPORTED_MODULE_0__[\"createHooks\"])(),\n isEditMode: false\n};\nea.hooks.addAction(\"widgets.reinit\", \"ea\", function ($content) {\n var filterGallery = jQuery(\".eael-filter-gallery-container\", $content);\n var postGridGallery = jQuery(\".eael-post-grid:not(.eael-post-carousel)\", $content);\n var twitterfeedGallery = jQuery(\".eael-twitter-feed-masonry\", $content);\n var instaGallery = jQuery(\".eael-instafeed\", $content);\n var paGallery = jQuery(\".premium-gallery-container\", $content);\n var eventCalendar = jQuery(\".eael-event-calendar-cls\", $content);\n var testimonialSlider = jQuery(\".eael-testimonial-slider\", $content);\n var teamMemberCarousel = jQuery(\".eael-tm-carousel\", $content);\n var postCarousel = jQuery(\".eael-post-carousel:not(.eael-post-grid)\", $content);\n var logoCarousel = jQuery(\".eael-logo-carousel\", $content);\n var twitterCarousel = jQuery(\".eael-twitter-feed-carousel\", $content);\n\n if (filterGallery.length) {\n filterGallery.isotope(\"layout\");\n }\n\n if (postGridGallery.length) {\n postGridGallery.isotope(\"layout\");\n }\n\n if (twitterfeedGallery.length) {\n twitterfeedGallery.isotope(\"layout\");\n }\n\n if (instaGallery.length) {\n instaGallery.isotope(\"layout\");\n }\n\n if (paGallery.length) {\n paGallery.isotope(\"layout\");\n }\n\n if (eventCalendar.length) {\n ea.hooks.doAction(\"eventCalendar.reinit\");\n }\n\n if (testimonialSlider.length) {\n ea.hooks.doAction(\"testimonialSlider.reinit\");\n }\n\n if (teamMemberCarousel.length) {\n ea.hooks.doAction(\"teamMemberCarousel.reinit\");\n }\n\n if (postCarousel.length) {\n ea.hooks.doAction(\"postCarousel.reinit\");\n }\n\n if (logoCarousel.length) {\n ea.hooks.doAction(\"logoCarousel.reinit\");\n }\n\n if (twitterCarousel.length) {\n ea.hooks.doAction(\"twitterCarousel.reinit\");\n }\n});\njQuery(window).on(\"elementor/frontend/init\", function () {\n window.isEditMode = elementorFrontend.isEditMode();\n window.ea.isEditMode = elementorFrontend.isEditMode(); // hooks\n\n ea.hooks.doAction(\"init\"); // init edit mode hook\n\n if (ea.isEditMode) {\n ea.hooks.doAction(\"editMode.init\");\n }\n});\n\n(function ($) {\n ea.getToken = function () {\n if (localize.nonce && !ea.noncegenerated) {\n ea.noncegenerated = true;\n $.ajax({\n url: localize.ajaxurl,\n type: \"post\",\n data: {\n action: \"eael_get_token\"\n },\n success: function success(response) {\n if (response.success) {\n localize.nonce = response.data.nonce;\n }\n }\n });\n }\n };\n\n $('a').on('click', function (e) {\n var hashURL = $(this).attr('href'),\n isStartWithHash;\n hashURL = hashURL === undefined ? '' : hashURL;\n isStartWithHash = hashURL.startsWith('#');\n\n if (!isStartWithHash) {\n hashURL = hashURL.replace(localize.page_permalink, '');\n isStartWithHash = hashURL.startsWith('#');\n } // we will try and catch the error but not show anything just do it if possible\n\n\n try {\n if (isStartWithHash && ($(hashURL).hasClass('eael-tab-item-trigger') || $(hashURL).hasClass('eael-accordion-header'))) {\n $(hashURL).trigger('click');\n }\n } catch (err) {// nothing to do\n }\n });\n})(jQuery);\n\n(function ($) {\n $(document).on('click', '.theme-savoy .eael-product-popup .nm-qty-minus, .theme-savoy .eael-product-popup .nm-qty-plus', function (e) {\n // Get elements and values\n var $this = $(this),\n $qty = $this.closest('.quantity').find('.qty'),\n currentVal = parseFloat($qty.val()),\n max = parseFloat($qty.attr('max')),\n min = parseFloat($qty.attr('min')),\n step = $qty.attr('step'); // Format values\n\n if (!currentVal || currentVal === '' || currentVal === 'NaN') currentVal = 0;\n if (max === '' || max === 'NaN') max = '';\n if (min === '' || min === 'NaN') min = 0;\n if (step === 'any' || step === '' || step === undefined || parseFloat(step) === 'NaN') step = 1; // Change the value\n\n if ($this.hasClass('nm-qty-plus')) {\n if (max && (max == currentVal || currentVal > max)) {\n $qty.val(max);\n } else {\n $qty.val(currentVal + parseFloat(step));\n }\n } else {\n if (min && (min == currentVal || currentVal < min)) {\n $qty.val(min);\n } else if (currentVal > 0) {\n $qty.val(currentVal - parseFloat(step));\n }\n }\n });\n})(jQuery);\n\n//# sourceURL=webpack:///./src/js/view/general.js?");
314
 
315
  /***/ })
316
 
310
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
311
 
312
  "use strict";
313
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/hooks */ \"./node_modules/@wordpress/hooks/build-module/index.js\");\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n\nwindow.isEditMode = false;\nwindow.ea = {\n hooks: Object(_wordpress_hooks__WEBPACK_IMPORTED_MODULE_0__[\"createHooks\"])(),\n isEditMode: false,\n elementStatusCheck: function elementStatusCheck(name) {\n if (window.eaElementList && name in window.eaElementList) {\n return true;\n } else {\n window.eaElementList = _objectSpread(_objectSpread({}, window.eaElementList), {}, _defineProperty({}, name, true));\n }\n\n return false;\n }\n};\nea.hooks.addAction(\"widgets.reinit\", \"ea\", function ($content) {\n var filterGallery = jQuery(\".eael-filter-gallery-container\", $content);\n var postGridGallery = jQuery(\".eael-post-grid:not(.eael-post-carousel)\", $content);\n var twitterfeedGallery = jQuery(\".eael-twitter-feed-masonry\", $content);\n var instaGallery = jQuery(\".eael-instafeed\", $content);\n var paGallery = jQuery(\".premium-gallery-container\", $content);\n var eventCalendar = jQuery(\".eael-event-calendar-cls\", $content);\n var testimonialSlider = jQuery(\".eael-testimonial-slider\", $content);\n var teamMemberCarousel = jQuery(\".eael-tm-carousel\", $content);\n var postCarousel = jQuery(\".eael-post-carousel:not(.eael-post-grid)\", $content);\n var logoCarousel = jQuery(\".eael-logo-carousel\", $content);\n var twitterCarousel = jQuery(\".eael-twitter-feed-carousel\", $content);\n\n if (filterGallery.length) {\n filterGallery.isotope(\"layout\");\n }\n\n if (postGridGallery.length) {\n postGridGallery.isotope(\"layout\");\n }\n\n if (twitterfeedGallery.length) {\n twitterfeedGallery.isotope(\"layout\");\n }\n\n if (instaGallery.length) {\n instaGallery.isotope(\"layout\");\n }\n\n if (paGallery.length) {\n paGallery.isotope(\"layout\");\n }\n\n if (eventCalendar.length) {\n ea.hooks.doAction(\"eventCalendar.reinit\");\n }\n\n if (testimonialSlider.length) {\n ea.hooks.doAction(\"testimonialSlider.reinit\");\n }\n\n if (teamMemberCarousel.length) {\n ea.hooks.doAction(\"teamMemberCarousel.reinit\");\n }\n\n if (postCarousel.length) {\n ea.hooks.doAction(\"postCarousel.reinit\");\n }\n\n if (logoCarousel.length) {\n ea.hooks.doAction(\"logoCarousel.reinit\");\n }\n\n if (twitterCarousel.length) {\n ea.hooks.doAction(\"twitterCarousel.reinit\");\n }\n});\njQuery(window).on(\"elementor/frontend/init\", function () {\n window.isEditMode = elementorFrontend.isEditMode();\n window.ea.isEditMode = elementorFrontend.isEditMode(); // hooks\n\n ea.hooks.doAction(\"init\"); // init edit mode hook\n\n if (ea.isEditMode) {\n ea.hooks.doAction(\"editMode.init\");\n }\n});\n\n(function ($) {\n ea.getToken = function () {\n if (localize.nonce && !ea.noncegenerated) {\n ea.noncegenerated = true;\n $.ajax({\n url: localize.ajaxurl,\n type: \"post\",\n data: {\n action: \"eael_get_token\"\n },\n success: function success(response) {\n if (response.success) {\n localize.nonce = response.data.nonce;\n }\n }\n });\n }\n };\n\n $('a').on('click', function (e) {\n var hashURL = $(this).attr('href'),\n isStartWithHash;\n hashURL = hashURL === undefined ? '' : hashURL;\n isStartWithHash = hashURL.startsWith('#');\n\n if (!isStartWithHash) {\n hashURL = hashURL.replace(localize.page_permalink, '');\n isStartWithHash = hashURL.startsWith('#');\n } // we will try and catch the error but not show anything just do it if possible\n\n\n try {\n if (isStartWithHash && ($(hashURL).hasClass('eael-tab-item-trigger') || $(hashURL).hasClass('eael-accordion-header'))) {\n $(hashURL).trigger('click');\n }\n } catch (err) {// nothing to do\n }\n });\n})(jQuery);\n\n(function ($) {\n $(document).on('click', '.theme-savoy .eael-product-popup .nm-qty-minus, .theme-savoy .eael-product-popup .nm-qty-plus', function (e) {\n // Get elements and values\n var $this = $(this),\n $qty = $this.closest('.quantity').find('.qty'),\n currentVal = parseFloat($qty.val()),\n max = parseFloat($qty.attr('max')),\n min = parseFloat($qty.attr('min')),\n step = $qty.attr('step'); // Format values\n\n if (!currentVal || currentVal === '' || currentVal === 'NaN') currentVal = 0;\n if (max === '' || max === 'NaN') max = '';\n if (min === '' || min === 'NaN') min = 0;\n if (step === 'any' || step === '' || step === undefined || parseFloat(step) === 'NaN') step = 1; // Change the value\n\n if ($this.hasClass('nm-qty-plus')) {\n if (max && (max == currentVal || currentVal > max)) {\n $qty.val(max);\n } else {\n $qty.val(currentVal + parseFloat(step));\n }\n } else {\n if (min && (min == currentVal || currentVal < min)) {\n $qty.val(min);\n } else if (currentVal > 0) {\n $qty.val(currentVal - parseFloat(step));\n }\n }\n });\n})(jQuery);\n\n//# sourceURL=webpack:///./src/js/view/general.js?");
314
 
315
  /***/ })
316
 
assets/front-end/js/view/general.min.js CHANGED
@@ -1 +1 @@
1
- !function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=90)}({90:function(e,t,n){"use strict";n.r(t);var r=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 o=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 i=function(e,t){return function(n,i,a){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10,l=e[t];if(o(n)&&r(i))if("function"==typeof a)if("number"==typeof s){var c={callback:a,priority:s,namespace:i};if(l[n]){var u,d=l[n].handlers;for(u=d.length;u>0&&!(s>=d[u-1].priority);u--);u===d.length?d[u]=c:d.splice(u,0,c),l.__current.forEach((function(e){e.name===n&&e.currentIndex>=u&&e.currentIndex++}))}else l[n]={handlers:[c],runs:0};"hookAdded"!==n&&e.doAction("hookAdded",n,i,a,s)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}};var a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(i,a){var s=e[t];if(o(i)&&(n||r(a))){if(!s[i])return 0;var l=0;if(n)l=s[i].handlers.length,s[i]={runs:s[i].runs,handlers:[]};else for(var c=s[i].handlers,u=function(e){c[e].namespace===a&&(c.splice(e,1),l++,s.__current.forEach((function(t){t.name===i&&t.currentIndex>=e&&t.currentIndex--})))},d=c.length-1;d>=0;d--)u(d);return"hookRemoved"!==i&&e.doAction("hookRemoved",i,a),l}}};var s=function(e,t){return function(n,r){var o=e[t];return void 0!==r?n in o&&o[n].handlers.some((function(e){return e.namespace===r})):n in o}};var l=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(r){var o=e[t];o[r]||(o[r]={handlers:[],runs:0}),o[r].runs++;var i=o[r].handlers;for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];if(!i||!i.length)return n?s[0]:void 0;var c={name:r,currentIndex:0};for(o.__current.push(c);c.currentIndex<i.length;){var u=i[c.currentIndex],d=u.callback.apply(null,s);n&&(s[0]=d),c.currentIndex++}return o.__current.pop(),n?s[0]:void 0}};var c=function(e,t){return function(){var n,r,o=e[t];return null!==(n=null===(r=o.__current[o.__current.length-1])||void 0===r?void 0:r.name)&&void 0!==n?n:null}};var u=function(e,t){return function(n){var r=e[t];return void 0===n?void 0!==r.__current[0]:!!r.__current[0]&&n===r.__current[0].name}};var d=function(e,t){return function(n){var r=e[t];if(o(n))return r[n]&&r[n].runs?r[n].runs:0}},h=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.actions=Object.create(null),this.actions.__current=[],this.filters=Object.create(null),this.filters.__current=[],this.addAction=i(this,"actions"),this.addFilter=i(this,"filters"),this.removeAction=a(this,"actions"),this.removeFilter=a(this,"filters"),this.hasAction=s(this,"actions"),this.hasFilter=s(this,"filters"),this.removeAllActions=a(this,"actions",!0),this.removeAllFilters=a(this,"filters",!0),this.doAction=l(this,"actions"),this.applyFilters=l(this,"filters",!0),this.currentAction=c(this,"actions"),this.currentFilter=c(this,"filters"),this.doingAction=u(this,"actions"),this.doingFilter=u(this,"filters"),this.didAction=d(this,"actions"),this.didFilter=d(this,"filters")};var f,p=function(){return new h},v=p();v.addAction,v.addFilter,v.removeAction,v.removeFilter,v.hasAction,v.hasFilter,v.removeAllActions,v.removeAllFilters,v.doAction,v.applyFilters,v.currentAction,v.currentFilter,v.doingAction,v.doingFilter,v.didAction,v.didFilter,v.actions,v.filters;window.isEditMode=!1,window.ea={hooks:p(),isEditMode:!1},ea.hooks.addAction("widgets.reinit","ea",(function(e){var t=jQuery(".eael-filter-gallery-container",e),n=jQuery(".eael-post-grid:not(.eael-post-carousel)",e),r=jQuery(".eael-twitter-feed-masonry",e),o=jQuery(".eael-instafeed",e),i=jQuery(".premium-gallery-container",e),a=jQuery(".eael-event-calendar-cls",e),s=jQuery(".eael-testimonial-slider",e),l=jQuery(".eael-tm-carousel",e),c=jQuery(".eael-post-carousel:not(.eael-post-grid)",e),u=jQuery(".eael-logo-carousel",e),d=jQuery(".eael-twitter-feed-carousel",e);t.length&&t.isotope("layout"),n.length&&n.isotope("layout"),r.length&&r.isotope("layout"),o.length&&o.isotope("layout"),i.length&&i.isotope("layout"),a.length&&ea.hooks.doAction("eventCalendar.reinit"),s.length&&ea.hooks.doAction("testimonialSlider.reinit"),l.length&&ea.hooks.doAction("teamMemberCarousel.reinit"),c.length&&ea.hooks.doAction("postCarousel.reinit"),u.length&&ea.hooks.doAction("logoCarousel.reinit"),d.length&&ea.hooks.doAction("twitterCarousel.reinit")})),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")})),f=jQuery,ea.getToken=function(){localize.nonce&&!ea.noncegenerated&&(ea.noncegenerated=!0,f.ajax({url:localize.ajaxurl,type:"post",data:{action:"eael_get_token"},success:function(e){e.success&&(localize.nonce=e.data.nonce)}}))},f("a").on("click",(function(e){var t,n=f(this).attr("href");(t=(n=void 0===n?"":n).startsWith("#"))||(t=(n=n.replace(localize.page_permalink,"")).startsWith("#"));try{t&&(f(n).hasClass("eael-tab-item-trigger")||f(n).hasClass("eael-accordion-header"))&&f(n).trigger("click")}catch(e){}})),function(e){e(document).on("click",".theme-savoy .eael-product-popup .nm-qty-minus, .theme-savoy .eael-product-popup .nm-qty-plus",(function(t){var n=e(this),r=n.closest(".quantity").find(".qty"),o=parseFloat(r.val()),i=parseFloat(r.attr("max")),a=parseFloat(r.attr("min")),s=r.attr("step");o&&""!==o&&"NaN"!==o||(o=0),""!==i&&"NaN"!==i||(i=""),""!==a&&"NaN"!==a||(a=0),"any"!==s&&""!==s&&void 0!==s&&"NaN"!==parseFloat(s)||(s=1),n.hasClass("nm-qty-plus")?i&&(i==o||o>i)?r.val(i):r.val(o+parseFloat(s)):a&&(a==o||o<a)?r.val(a):o>0&&r.val(o-parseFloat(s))}))}(jQuery)}});
1
+ !function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=90)}({90:function(e,t,n){"use strict";n.r(t);var r=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 o=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 i=function(e,t){return function(n,i,a){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10,l=e[t];if(o(n)&&r(i))if("function"==typeof a)if("number"==typeof s){var c={callback:a,priority:s,namespace:i};if(l[n]){var u,d=l[n].handlers;for(u=d.length;u>0&&!(s>=d[u-1].priority);u--);u===d.length?d[u]=c:d.splice(u,0,c),l.__current.forEach((function(e){e.name===n&&e.currentIndex>=u&&e.currentIndex++}))}else l[n]={handlers:[c],runs:0};"hookAdded"!==n&&e.doAction("hookAdded",n,i,a,s)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}};var a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(i,a){var s=e[t];if(o(i)&&(n||r(a))){if(!s[i])return 0;var l=0;if(n)l=s[i].handlers.length,s[i]={runs:s[i].runs,handlers:[]};else for(var c=s[i].handlers,u=function(e){c[e].namespace===a&&(c.splice(e,1),l++,s.__current.forEach((function(t){t.name===i&&t.currentIndex>=e&&t.currentIndex--})))},d=c.length-1;d>=0;d--)u(d);return"hookRemoved"!==i&&e.doAction("hookRemoved",i,a),l}}};var s=function(e,t){return function(n,r){var o=e[t];return void 0!==r?n in o&&o[n].handlers.some((function(e){return e.namespace===r})):n in o}};var l=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(r){var o=e[t];o[r]||(o[r]={handlers:[],runs:0}),o[r].runs++;var i=o[r].handlers;for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];if(!i||!i.length)return n?s[0]:void 0;var c={name:r,currentIndex:0};for(o.__current.push(c);c.currentIndex<i.length;){var u=i[c.currentIndex],d=u.callback.apply(null,s);n&&(s[0]=d),c.currentIndex++}return o.__current.pop(),n?s[0]:void 0}};var c=function(e,t){return function(){var n,r,o=e[t];return null!==(n=null===(r=o.__current[o.__current.length-1])||void 0===r?void 0:r.name)&&void 0!==n?n:null}};var u=function(e,t){return function(n){var r=e[t];return void 0===n?void 0!==r.__current[0]:!!r.__current[0]&&n===r.__current[0].name}};var d=function(e,t){return function(n){var r=e[t];if(o(n))return r[n]&&r[n].runs?r[n].runs:0}},h=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.actions=Object.create(null),this.actions.__current=[],this.filters=Object.create(null),this.filters.__current=[],this.addAction=i(this,"actions"),this.addFilter=i(this,"filters"),this.removeAction=a(this,"actions"),this.removeFilter=a(this,"filters"),this.hasAction=s(this,"actions"),this.hasFilter=s(this,"filters"),this.removeAllActions=a(this,"actions",!0),this.removeAllFilters=a(this,"filters",!0),this.doAction=l(this,"actions"),this.applyFilters=l(this,"filters",!0),this.currentAction=c(this,"actions"),this.currentFilter=c(this,"filters"),this.doingAction=u(this,"actions"),this.doingFilter=u(this,"filters"),this.didAction=d(this,"actions"),this.didFilter=d(this,"filters")};var f,p=function(){return new h},v=p();v.addAction,v.addFilter,v.removeAction,v.removeFilter,v.hasAction,v.hasFilter,v.removeAllActions,v.removeAllFilters,v.doAction,v.applyFilters,v.currentAction,v.currentFilter,v.doingAction,v.doingFilter,v.didAction,v.didFilter,v.actions,v.filters;function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}window.isEditMode=!1,window.ea={hooks:p(),isEditMode:!1,elementStatusCheck:function(e){return!(!window.eaElementList||!(e in window.eaElementList))||(window.eaElementList=m(m({},window.eaElementList),{},g({},e,!0)),!1)}},ea.hooks.addAction("widgets.reinit","ea",(function(e){var t=jQuery(".eael-filter-gallery-container",e),n=jQuery(".eael-post-grid:not(.eael-post-carousel)",e),r=jQuery(".eael-twitter-feed-masonry",e),o=jQuery(".eael-instafeed",e),i=jQuery(".premium-gallery-container",e),a=jQuery(".eael-event-calendar-cls",e),s=jQuery(".eael-testimonial-slider",e),l=jQuery(".eael-tm-carousel",e),c=jQuery(".eael-post-carousel:not(.eael-post-grid)",e),u=jQuery(".eael-logo-carousel",e),d=jQuery(".eael-twitter-feed-carousel",e);t.length&&t.isotope("layout"),n.length&&n.isotope("layout"),r.length&&r.isotope("layout"),o.length&&o.isotope("layout"),i.length&&i.isotope("layout"),a.length&&ea.hooks.doAction("eventCalendar.reinit"),s.length&&ea.hooks.doAction("testimonialSlider.reinit"),l.length&&ea.hooks.doAction("teamMemberCarousel.reinit"),c.length&&ea.hooks.doAction("postCarousel.reinit"),u.length&&ea.hooks.doAction("logoCarousel.reinit"),d.length&&ea.hooks.doAction("twitterCarousel.reinit")})),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")})),f=jQuery,ea.getToken=function(){localize.nonce&&!ea.noncegenerated&&(ea.noncegenerated=!0,f.ajax({url:localize.ajaxurl,type:"post",data:{action:"eael_get_token"},success:function(e){e.success&&(localize.nonce=e.data.nonce)}}))},f("a").on("click",(function(e){var t,n=f(this).attr("href");(t=(n=void 0===n?"":n).startsWith("#"))||(t=(n=n.replace(localize.page_permalink,"")).startsWith("#"));try{t&&(f(n).hasClass("eael-tab-item-trigger")||f(n).hasClass("eael-accordion-header"))&&f(n).trigger("click")}catch(e){}})),function(e){e(document).on("click",".theme-savoy .eael-product-popup .nm-qty-minus, .theme-savoy .eael-product-popup .nm-qty-plus",(function(t){var n=e(this),r=n.closest(".quantity").find(".qty"),o=parseFloat(r.val()),i=parseFloat(r.attr("max")),a=parseFloat(r.attr("min")),s=r.attr("step");o&&""!==o&&"NaN"!==o||(o=0),""!==i&&"NaN"!==i||(i=""),""!==a&&"NaN"!==a||(a=0),"any"!==s&&""!==s&&void 0!==s&&"NaN"!==parseFloat(s)||(s=1),n.hasClass("nm-qty-plus")?i&&(i==o||o>i)?r.val(i):r.val(o+parseFloat(s)):a&&(a==o||o<a)?r.val(a):o>0&&r.val(o-parseFloat(s))}))}(jQuery)}});
assets/front-end/js/view/quick-view.js CHANGED
@@ -93,7 +93,7 @@
93
  /*! no static exports found */
94
  /***/ (function(module, exports) {
95
 
96
- eval("function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nvar QuickView = {\n quickViewAddMarkup: function quickViewAddMarkup($scope, jq) {\n var popupMarkup = \"<div style=\\\"display: none\\\" class=\\\"eael-woocommerce-popup-view eael-product-popup eael-product-zoom-in woocommerce\\\">\\n \\t\\t\\t<div class=\\\"eael-product-modal-bg\\\"></div>\\n \\t\\t\\t<div class=\\\"eael-popup-details-render eael-woo-slider-popup\\\"><div class=\\\"eael-preloader\\\"></div></div>\\n \\t\\t\\t\\t </div>\";\n\n if (!jq('body > .eael-woocommerce-popup-view').length) {\n jq('body').prepend(popupMarkup);\n }\n },\n openPopup: function openPopup($scope, $) {\n // Quick view\n $scope.on(\"click\", \".open-popup-link\", function (e) {\n e.preventDefault();\n e.stopPropagation();\n var $this = $(this);\n var quickview_setting = $this.data('quickview-setting');\n var popup_view = $(\".eael-woocommerce-popup-view\");\n popup_view.find(\".eael-popup-details-render\").html('<div class=\"eael-preloader\"></div>');\n popup_view.addClass(\"eael-product-popup-ready\").removeClass(\"eael-product-modal-removing\");\n popup_view.show();\n $.ajax({\n url: localize.ajaxurl,\n type: \"post\",\n data: _objectSpread(_objectSpread({\n action: \"eael_product_quickview_popup\"\n }, quickview_setting), {}, {\n security: localize.nonce\n }),\n success: function success(response) {\n if (response.success) {\n var product_preview = $(response.data);\n var popup_details = product_preview.children(\".eael-product-popup-details\");\n popup_details.find(\".variations_form\").wc_variation_form();\n var popup_view_render = popup_view.find(\".eael-popup-details-render\");\n popup_view.find(\".eael-popup-details-render\").html(popup_details);\n var product_gallery = popup_view.find(\".woocommerce-product-gallery\");\n popup_view_render.addClass(\"elementor-\" + quickview_setting.page_id);\n popup_view_render.children().addClass(\"elementor-element elementor-element-\" + quickview_setting.widget_id);\n\n if (popup_details.height() > 400) {\n popup_details.css(\"height\", \"75vh\");\n } else {\n popup_details.css(\"height\", \"auto\");\n }\n\n setTimeout(function () {\n var setHeight = product_gallery.find('.woocommerce-product-gallery__image').height();\n $('body').prepend('<style class=\"eael-quick-view-dynamic-css\">.woocommerce-product-gallery .flex-viewport { height: ' + setHeight + 'px; }</style>');\n product_gallery.wc_product_gallery();\n product_gallery.closest('.eael-product-image-wrap').css('background', 'none');\n }, 500);\n setTimeout(function () {\n $('.eael-quick-view-dynamic-css').remove();\n }, 1500);\n }\n }\n });\n });\n },\n closePopup: function closePopup($scope, jq) {\n jq(document).on(\"click\", \".eael-product-popup-close\", function (event) {\n event.stopPropagation();\n QuickView.remove_product_popup(jq);\n });\n jq(document).on(\"click\", function (event) {\n if (event.target.closest(\".eael-product-popup-details\")) return;\n QuickView.remove_product_popup(jq);\n });\n },\n singlePageAddToCartButton: function singlePageAddToCartButton($scope, $) {\n $(document).on(\"click\", \".eael-woo-slider-popup .single_add_to_cart_button\", function (e) {\n e.preventDefault();\n e.stopImmediatePropagation();\n var $this = $(this),\n product_id = $(this).val(),\n variation_id = $this.closest(\"form.cart\").find('input[name=\"variation_id\"]').val() || \"\",\n quantity = $this.closest(\"form.cart\").find('input[name=\"quantity\"]').val(),\n items = $this.closest(\"form.cart.grouped_form\"),\n form = $this.closest(\"form.cart\"),\n product_data = [];\n items = items.serializeArray();\n\n if (form.hasClass(\"variations_form\")) {\n product_id = form.find('input[name=\"product_id\"]').val();\n }\n\n if (items.length > 0) {\n items.forEach(function (item, index) {\n var p_id = parseInt(item.name.replace(/[^\\d.]/g, \"\"), 10);\n\n if (item.name.indexOf(\"quantity[\") >= 0 && item.value != \"\" && p_id > 0) {\n product_data[product_data.length] = {\n product_id: p_id,\n quantity: item.value,\n variation_id: 0\n };\n }\n });\n } else {\n product_data[0] = {\n product_id: product_id,\n quantity: quantity,\n variation_id: variation_id\n };\n }\n\n $this.removeClass(\"eael-addtocart-added\");\n $this.addClass(\"eael-addtocart-loading\");\n $.ajax({\n url: localize.ajaxurl,\n type: \"post\",\n data: {\n action: \"eael_product_add_to_cart\",\n product_data: product_data,\n eael_add_to_cart_nonce: localize.nonce,\n cart_item_data: form.serializeArray()\n },\n success: function success(response) {\n if (response.success) {\n $(document.body).trigger(\"wc_fragment_refresh\");\n $this.removeClass(\"eael-addtocart-loading\");\n $this.addClass(\"eael-addtocart-added\");\n\n if (localize.cart_redirectition == 'yes') {\n window.location.href = localize.cart_page_url;\n }\n }\n }\n });\n });\n },\n preventStringInNumberField: function preventStringInNumberField($scope, $) {\n $(document).on(\"keypress\", \".eael-product-details-wrap input[type=number]\", function (e) {\n var keyValue = e.keyCode || e.which;\n var regex = /^[0-9]+$/;\n var isValid = regex.test(String.fromCharCode(keyValue));\n\n if (!isValid) {\n return false;\n }\n\n return isValid;\n });\n },\n remove_product_popup: function remove_product_popup(jq) {\n var selector = jq(\".eael-product-popup.eael-product-zoom-in.eael-product-popup-ready\");\n selector.addClass(\"eael-product-modal-removing\").removeClass(\"eael-product-popup-ready\");\n selector.find('.eael-popup-details-render').html('');\n }\n};\nea.hooks.addAction('quickViewAddMarkup', 'ea', QuickView.quickViewAddMarkup, 10);\nea.hooks.addAction('quickViewPopupViewInit', 'ea', QuickView.openPopup, 10);\nea.hooks.addAction('quickViewPopupViewInit', 'ea', QuickView.closePopup, 10);\nea.hooks.addAction('quickViewPopupViewInit', 'ea', QuickView.singlePageAddToCartButton, 10);\nea.hooks.addAction('quickViewPopupViewInit', 'ea', QuickView.preventStringInNumberField, 10);\n\n//# sourceURL=webpack:///./src/js/view/quick-view.js?");
97
 
98
  /***/ })
99
 
93
  /*! no static exports found */
94
  /***/ (function(module, exports) {
95
 
96
+ eval("function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nvar QuickView = {\n quickViewAddMarkup: function quickViewAddMarkup($scope, jq) {\n var popupMarkup = \"<div style=\\\"display: none\\\" class=\\\"eael-woocommerce-popup-view eael-product-popup eael-product-zoom-in woocommerce\\\">\\n \\t\\t\\t<div class=\\\"eael-product-modal-bg\\\"></div>\\n \\t\\t\\t<div class=\\\"eael-popup-details-render eael-woo-slider-popup\\\"><div class=\\\"eael-preloader\\\"></div></div>\\n \\t\\t\\t\\t </div>\";\n\n if (!jq('body > .eael-woocommerce-popup-view').length) {\n jq('body').prepend(popupMarkup);\n }\n },\n openPopup: function openPopup($scope, $) {\n // Quick view\n $scope.on(\"click\", \".open-popup-link\", function (e) {\n e.preventDefault();\n e.stopPropagation();\n var $this = $(this);\n var quickview_setting = $this.data('quickview-setting');\n var popup_view = $(\".eael-woocommerce-popup-view\");\n popup_view.find(\".eael-popup-details-render\").html('<div class=\"eael-preloader\"></div>');\n popup_view.addClass(\"eael-product-popup-ready\").removeClass(\"eael-product-modal-removing\");\n popup_view.show();\n $.ajax({\n url: localize.ajaxurl,\n type: \"post\",\n data: _objectSpread(_objectSpread({\n action: \"eael_product_quickview_popup\"\n }, quickview_setting), {}, {\n security: localize.nonce\n }),\n success: function success(response) {\n if (response.success) {\n var product_preview = $(response.data);\n var popup_details = product_preview.children(\".eael-product-popup-details\");\n popup_details.find(\".variations_form\").wc_variation_form();\n var popup_view_render = popup_view.find(\".eael-popup-details-render\");\n popup_view.find(\".eael-popup-details-render\").html(popup_details);\n var product_gallery = popup_view.find(\".woocommerce-product-gallery\");\n popup_view_render.addClass(\"elementor-\" + quickview_setting.page_id);\n popup_view_render.children().addClass(\"elementor-element elementor-element-\" + quickview_setting.widget_id);\n\n if (popup_details.height() > 400) {\n popup_details.css(\"height\", \"75vh\");\n } else {\n popup_details.css(\"height\", \"auto\");\n }\n\n setTimeout(function () {\n var setHeight = product_gallery.find('.woocommerce-product-gallery__image').height();\n $('body').prepend('<style class=\"eael-quick-view-dynamic-css\">.woocommerce-product-gallery .flex-viewport { height: ' + setHeight + 'px; }</style>');\n product_gallery.wc_product_gallery();\n product_gallery.closest('.eael-product-image-wrap').css('background', 'none');\n }, 500);\n setTimeout(function () {\n $('.eael-quick-view-dynamic-css').remove();\n }, 1500);\n }\n }\n });\n });\n },\n closePopup: function closePopup($scope, jq) {\n jq(document).on(\"click\", \".eael-product-popup-close\", function (event) {\n event.stopPropagation();\n QuickView.remove_product_popup(jq);\n });\n jq(document).on(\"click\", function (event) {\n if (event.target.closest(\".eael-product-popup-details\")) return;\n QuickView.remove_product_popup(jq);\n });\n },\n singlePageAddToCartButton: function singlePageAddToCartButton($scope, $) {\n $(document).on(\"click\", \".eael-woo-slider-popup .single_add_to_cart_button\", function (e) {\n e.preventDefault();\n e.stopImmediatePropagation();\n var $this = $(this),\n product_id = $(this).val(),\n variation_id = $this.closest(\"form.cart\").find('input[name=\"variation_id\"]').val() || \"\",\n quantity = $this.closest(\"form.cart\").find('input[name=\"quantity\"]').val(),\n items = $this.closest(\"form.cart.grouped_form\"),\n form = $this.closest(\"form.cart\"),\n product_data = [];\n items = items.serializeArray();\n\n if (form.hasClass(\"variations_form\")) {\n product_id = form.find('input[name=\"product_id\"]').val();\n }\n\n if (items.length > 0) {\n items.forEach(function (item, index) {\n var p_id = parseInt(item.name.replace(/[^\\d.]/g, \"\"), 10);\n\n if (item.name.indexOf(\"quantity[\") >= 0 && item.value != \"\" && p_id > 0) {\n product_data[product_data.length] = {\n product_id: p_id,\n quantity: item.value,\n variation_id: 0\n };\n }\n });\n } else {\n product_data[0] = {\n product_id: product_id,\n quantity: quantity,\n variation_id: variation_id\n };\n }\n\n $this.removeClass(\"eael-addtocart-added\");\n $this.addClass(\"eael-addtocart-loading\");\n $.ajax({\n url: localize.ajaxurl,\n type: \"post\",\n data: {\n action: \"eael_product_add_to_cart\",\n product_data: product_data,\n eael_add_to_cart_nonce: localize.nonce,\n cart_item_data: form.serializeArray()\n },\n success: function success(response) {\n if (response.success) {\n $(document.body).trigger(\"wc_fragment_refresh\");\n $this.removeClass(\"eael-addtocart-loading\");\n $this.addClass(\"eael-addtocart-added\");\n\n if (localize.cart_redirectition == 'yes') {\n window.location.href = localize.cart_page_url;\n }\n }\n }\n });\n });\n },\n preventStringInNumberField: function preventStringInNumberField($scope, $) {\n $(document).on(\"keypress\", \".eael-product-details-wrap input[type=number]\", function (e) {\n var keyValue = e.keyCode || e.which;\n var regex = /^[0-9]+$/;\n var isValid = regex.test(String.fromCharCode(keyValue));\n\n if (!isValid) {\n return false;\n }\n\n return isValid;\n });\n },\n remove_product_popup: function remove_product_popup(jq) {\n var selector = jq(\".eael-product-popup.eael-product-zoom-in.eael-product-popup-ready\");\n selector.addClass(\"eael-product-modal-removing\").removeClass(\"eael-product-popup-ready\");\n selector.find('.eael-popup-details-render').html('');\n }\n};\n\nif (!ea.elementStatusCheck('eaelQuickView')) {\n ea.hooks.addAction('quickViewAddMarkup', 'ea', QuickView.quickViewAddMarkup, 10);\n ea.hooks.addAction('quickViewPopupViewInit', 'ea', QuickView.openPopup, 10);\n ea.hooks.addAction('quickViewPopupViewInit', 'ea', QuickView.closePopup, 10);\n ea.hooks.addAction('quickViewPopupViewInit', 'ea', QuickView.singlePageAddToCartButton, 10);\n ea.hooks.addAction('quickViewPopupViewInit', 'ea', QuickView.preventStringInNumberField, 10);\n}\n\n//# sourceURL=webpack:///./src/js/view/quick-view.js?");
97
 
98
  /***/ })
99
 
assets/front-end/js/view/quick-view.min.js CHANGED
@@ -1 +1 @@
1
- !function(e){var t={};function o(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,o),a.l=!0,a.exports}o.m=e,o.c=t,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)o.d(r,a,function(t){return e[t]}.bind(null,a));return r},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=20)}({20:function(e,t){function o(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,r)}return o}function r(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function a(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var n={quickViewAddMarkup:function(e,t){t("body > .eael-woocommerce-popup-view").length||t("body").prepend('<div style="display: none" class="eael-woocommerce-popup-view eael-product-popup eael-product-zoom-in woocommerce">\n \t\t\t<div class="eael-product-modal-bg"></div>\n \t\t\t<div class="eael-popup-details-render eael-woo-slider-popup"><div class="eael-preloader"></div></div>\n \t\t\t\t </div>')},openPopup:function(e,t){e.on("click",".open-popup-link",(function(e){e.preventDefault(),e.stopPropagation();var o=t(this).data("quickview-setting"),a=t(".eael-woocommerce-popup-view");a.find(".eael-popup-details-render").html('<div class="eael-preloader"></div>'),a.addClass("eael-product-popup-ready").removeClass("eael-product-modal-removing"),a.show(),t.ajax({url:localize.ajaxurl,type:"post",data:r(r({action:"eael_product_quickview_popup"},o),{},{security:localize.nonce}),success:function(e){if(e.success){var r=t(e.data).children(".eael-product-popup-details");r.find(".variations_form").wc_variation_form();var n=a.find(".eael-popup-details-render");a.find(".eael-popup-details-render").html(r);var i=a.find(".woocommerce-product-gallery");n.addClass("elementor-"+o.page_id),n.children().addClass("elementor-element elementor-element-"+o.widget_id),r.height()>400?r.css("height","75vh"):r.css("height","auto"),setTimeout((function(){var e=i.find(".woocommerce-product-gallery__image").height();t("body").prepend('<style class="eael-quick-view-dynamic-css">.woocommerce-product-gallery .flex-viewport { height: '+e+"px; }</style>"),i.wc_product_gallery(),i.closest(".eael-product-image-wrap").css("background","none")}),500),setTimeout((function(){t(".eael-quick-view-dynamic-css").remove()}),1500)}}})}))},closePopup:function(e,t){t(document).on("click",".eael-product-popup-close",(function(e){e.stopPropagation(),n.remove_product_popup(t)})),t(document).on("click",(function(e){e.target.closest(".eael-product-popup-details")||n.remove_product_popup(t)}))},singlePageAddToCartButton:function(e,t){t(document).on("click",".eael-woo-slider-popup .single_add_to_cart_button",(function(e){e.preventDefault(),e.stopImmediatePropagation();var o=t(this),r=t(this).val(),a=o.closest("form.cart").find('input[name="variation_id"]').val()||"",n=o.closest("form.cart").find('input[name="quantity"]').val(),i=o.closest("form.cart.grouped_form"),c=o.closest("form.cart"),p=[];i=i.serializeArray(),c.hasClass("variations_form")&&(r=c.find('input[name="product_id"]').val()),i.length>0?i.forEach((function(e,t){var o=parseInt(e.name.replace(/[^\d.]/g,""),10);e.name.indexOf("quantity[")>=0&&""!=e.value&&o>0&&(p[p.length]={product_id:o,quantity:e.value,variation_id:0})})):p[0]={product_id:r,quantity:n,variation_id:a},o.removeClass("eael-addtocart-added"),o.addClass("eael-addtocart-loading"),t.ajax({url:localize.ajaxurl,type:"post",data:{action:"eael_product_add_to_cart",product_data:p,eael_add_to_cart_nonce:localize.nonce,cart_item_data:c.serializeArray()},success:function(e){e.success&&(t(document.body).trigger("wc_fragment_refresh"),o.removeClass("eael-addtocart-loading"),o.addClass("eael-addtocart-added"),"yes"==localize.cart_redirectition&&(window.location.href=localize.cart_page_url))}})}))},preventStringInNumberField:function(e,t){t(document).on("keypress",".eael-product-details-wrap input[type=number]",(function(e){var t=e.keyCode||e.which,o=/^[0-9]+$/.test(String.fromCharCode(t));return o||!1}))},remove_product_popup:function(e){var t=e(".eael-product-popup.eael-product-zoom-in.eael-product-popup-ready");t.addClass("eael-product-modal-removing").removeClass("eael-product-popup-ready"),t.find(".eael-popup-details-render").html("")}};ea.hooks.addAction("quickViewAddMarkup","ea",n.quickViewAddMarkup,10),ea.hooks.addAction("quickViewPopupViewInit","ea",n.openPopup,10),ea.hooks.addAction("quickViewPopupViewInit","ea",n.closePopup,10),ea.hooks.addAction("quickViewPopupViewInit","ea",n.singlePageAddToCartButton,10),ea.hooks.addAction("quickViewPopupViewInit","ea",n.preventStringInNumberField,10)}});
1
+ !function(e){var t={};function o(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,o),a.l=!0,a.exports}o.m=e,o.c=t,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)o.d(r,a,function(t){return e[t]}.bind(null,a));return r},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=20)}({20:function(e,t){function o(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,r)}return o}function r(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function a(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var n={quickViewAddMarkup:function(e,t){t("body > .eael-woocommerce-popup-view").length||t("body").prepend('<div style="display: none" class="eael-woocommerce-popup-view eael-product-popup eael-product-zoom-in woocommerce">\n \t\t\t<div class="eael-product-modal-bg"></div>\n \t\t\t<div class="eael-popup-details-render eael-woo-slider-popup"><div class="eael-preloader"></div></div>\n \t\t\t\t </div>')},openPopup:function(e,t){e.on("click",".open-popup-link",(function(e){e.preventDefault(),e.stopPropagation();var o=t(this).data("quickview-setting"),a=t(".eael-woocommerce-popup-view");a.find(".eael-popup-details-render").html('<div class="eael-preloader"></div>'),a.addClass("eael-product-popup-ready").removeClass("eael-product-modal-removing"),a.show(),t.ajax({url:localize.ajaxurl,type:"post",data:r(r({action:"eael_product_quickview_popup"},o),{},{security:localize.nonce}),success:function(e){if(e.success){var r=t(e.data).children(".eael-product-popup-details");r.find(".variations_form").wc_variation_form();var n=a.find(".eael-popup-details-render");a.find(".eael-popup-details-render").html(r);var i=a.find(".woocommerce-product-gallery");n.addClass("elementor-"+o.page_id),n.children().addClass("elementor-element elementor-element-"+o.widget_id),r.height()>400?r.css("height","75vh"):r.css("height","auto"),setTimeout((function(){var e=i.find(".woocommerce-product-gallery__image").height();t("body").prepend('<style class="eael-quick-view-dynamic-css">.woocommerce-product-gallery .flex-viewport { height: '+e+"px; }</style>"),i.wc_product_gallery(),i.closest(".eael-product-image-wrap").css("background","none")}),500),setTimeout((function(){t(".eael-quick-view-dynamic-css").remove()}),1500)}}})}))},closePopup:function(e,t){t(document).on("click",".eael-product-popup-close",(function(e){e.stopPropagation(),n.remove_product_popup(t)})),t(document).on("click",(function(e){e.target.closest(".eael-product-popup-details")||n.remove_product_popup(t)}))},singlePageAddToCartButton:function(e,t){t(document).on("click",".eael-woo-slider-popup .single_add_to_cart_button",(function(e){e.preventDefault(),e.stopImmediatePropagation();var o=t(this),r=t(this).val(),a=o.closest("form.cart").find('input[name="variation_id"]').val()||"",n=o.closest("form.cart").find('input[name="quantity"]').val(),i=o.closest("form.cart.grouped_form"),c=o.closest("form.cart"),p=[];i=i.serializeArray(),c.hasClass("variations_form")&&(r=c.find('input[name="product_id"]').val()),i.length>0?i.forEach((function(e,t){var o=parseInt(e.name.replace(/[^\d.]/g,""),10);e.name.indexOf("quantity[")>=0&&""!=e.value&&o>0&&(p[p.length]={product_id:o,quantity:e.value,variation_id:0})})):p[0]={product_id:r,quantity:n,variation_id:a},o.removeClass("eael-addtocart-added"),o.addClass("eael-addtocart-loading"),t.ajax({url:localize.ajaxurl,type:"post",data:{action:"eael_product_add_to_cart",product_data:p,eael_add_to_cart_nonce:localize.nonce,cart_item_data:c.serializeArray()},success:function(e){e.success&&(t(document.body).trigger("wc_fragment_refresh"),o.removeClass("eael-addtocart-loading"),o.addClass("eael-addtocart-added"),"yes"==localize.cart_redirectition&&(window.location.href=localize.cart_page_url))}})}))},preventStringInNumberField:function(e,t){t(document).on("keypress",".eael-product-details-wrap input[type=number]",(function(e){var t=e.keyCode||e.which,o=/^[0-9]+$/.test(String.fromCharCode(t));return o||!1}))},remove_product_popup:function(e){var t=e(".eael-product-popup.eael-product-zoom-in.eael-product-popup-ready");t.addClass("eael-product-modal-removing").removeClass("eael-product-popup-ready"),t.find(".eael-popup-details-render").html("")}};ea.elementStatusCheck("eaelQuickView")||(ea.hooks.addAction("quickViewAddMarkup","ea",n.quickViewAddMarkup,10),ea.hooks.addAction("quickViewPopupViewInit","ea",n.openPopup,10),ea.hooks.addAction("quickViewPopupViewInit","ea",n.closePopup,10),ea.hooks.addAction("quickViewPopupViewInit","ea",n.singlePageAddToCartButton,10),ea.hooks.addAction("quickViewPopupViewInit","ea",n.preventStringInNumberField,10))}});
assets/front-end/js/view/simple-menu.js CHANGED
@@ -93,7 +93,7 @@
93
  /*! no static exports found */
94
  /***/ (function(module, exports) {
95
 
96
- eval("var SimpleMenu = function SimpleMenu($scope, $) {\n var $indicator_class = $('.eael-simple-menu-container', $scope).data('indicator-class');\n var $hamburger_icon = $('.eael-simple-menu-container', $scope).data('hamburger-icon');\n var $indicator_icon = $('.eael-simple-menu-container', $scope).data('indicator');\n var $dropdown_indicator_icon = $('.eael-simple-menu-container', $scope).data('dropdown-indicator');\n var $dropdown_indicator_class = $('.eael-simple-menu-container', $scope).data('dropdown-indicator-class');\n var $horizontal = $('.eael-simple-menu', $scope).hasClass('eael-simple-menu-horizontal');\n var $fullWidth = $('.eael-simple-menu--stretch');\n\n if ($horizontal) {\n // insert indicator\n if ($indicator_icon == 'svg') {\n $('.eael-simple-menu > li.menu-item-has-children', $scope).each(function () {\n $('> a', $(this)).append('<span class=\"indicator-svg\">' + $indicator_class + '</span>');\n });\n } else {\n $('.eael-simple-menu > li.menu-item-has-children', $scope).each(function () {\n $('> a', $(this)).append('<span class=\"' + $indicator_class + '\"></span>');\n });\n }\n\n if ($dropdown_indicator_icon == 'svg') {\n $('.eael-simple-menu > li ul li.menu-item-has-children', $scope).each(function () {\n $('> a', $(this)).append('<span class=\"dropdown-indicator-svg\">' + $dropdown_indicator_class + '</span>');\n });\n } else {\n $('.eael-simple-menu > li ul li.menu-item-has-children', $scope).each(function () {\n $('> a', $(this)).append('<span class=\"' + $dropdown_indicator_class + '\"></span>');\n });\n } // insert responsive menu toggle, text\n\n\n $('.eael-simple-menu-horizontal', $scope).before('<span class=\"eael-simple-menu-toggle-text\"></span>').after('<button class=\"eael-simple-menu-toggle\">' + $hamburger_icon + '<span class=\"eael-simple-menu-toggle-text\"></span></button>');\n eael_menu_resize(); // responsive menu slide\n\n $('.eael-simple-menu-container', $scope).on('click', '.eael-simple-menu-toggle', function (e) {\n e.preventDefault();\n var $siblings = $(this).siblings('nav').children('.eael-simple-menu-horizontal');\n $siblings.css('display') == 'none' ? $siblings.slideDown(300) : $siblings.slideUp(300);\n }); // clear responsive props\n\n $(window).on('resize load', function () {\n eael_menu_resize();\n });\n }\n\n function eael_menu_resize() {\n if (window.matchMedia('(max-width: 1024px)').matches) {\n $('.eael-simple-menu-container', $scope).addClass('eael-simple-menu-hamburger');\n $('.eael-simple-menu-horizontal', $scope).addClass('eael-simple-menu-responsive');\n $('.eael-simple-menu-toggle-text', $scope).text($('.eael-simple-menu-horizontal .current-menu-item a', $scope).eq(0).text());\n\n if ($('.eael-simple-menu-container', $scope).hasClass('eael-simple-menu--stretch')) {\n var css = {};\n\n if (!$('.eael-simple-menu-horizontal', $scope).parent().hasClass('eael-nav-menu-wrapper')) {\n $('.eael-simple-menu-horizontal', $scope).wrap('<nav class=\"eael-nav-menu-wrapper\"></nav>');\n }\n\n var $navMenu = $(\".eael-simple-menu-container nav\", $scope);\n menu_size_reset($navMenu);\n css.width = parseFloat($('.elementor').width()) + 'px';\n css.left = -parseFloat($navMenu.offset().left) + 'px';\n css.position = 'absolute';\n $navMenu.css(css);\n } else {\n var _css = {};\n\n if (!$('.eael-simple-menu-horizontal', $scope).parent().hasClass('eael-nav-menu-wrapper')) {\n $('.eael-simple-menu-horizontal', $scope).wrap('<nav class=\"eael-nav-menu-wrapper\"></nav>');\n }\n\n var _$navMenu = $(\".eael-simple-menu-container nav\", $scope);\n\n menu_size_reset(_$navMenu);\n _css.width = '';\n _css.left = '';\n _css.position = 'inherit';\n\n _$navMenu.css(_css);\n }\n } else {\n $('.eael-simple-menu-container', $scope).removeClass('eael-simple-menu-hamburger');\n $('.eael-simple-menu-horizontal', $scope).removeClass('eael-simple-menu-responsive');\n $('.eael-simple-menu-horizontal, .eael-simple-menu-horizontal ul', $scope).css('display', '');\n $(\".eael-simple-menu-container nav\", $scope).removeAttr('style');\n }\n }\n\n function menu_size_reset(selector) {\n var css = {};\n css.width = '';\n css.left = '';\n css.position = 'inherit';\n selector.css(css);\n }\n\n $('.eael-simple-menu > li.menu-item-has-children', $scope).each(function () {\n // indicator position\n if ($indicator_icon == 'svg') {\n var $height = parseInt($('a', this).css('line-height')) / 2;\n $(this).append('<span class=\"eael-simple-menu-indicator\"> ' + $indicator_class + '</span>');\n } else {\n var $height = parseInt($('a', this).css('line-height')) / 2;\n $(this).append('<span class=\"eael-simple-menu-indicator ' + $indicator_class + '\"></span>');\n } // if current, keep indicator open\n // $(this).hasClass('current-menu-ancestor') ? $(this).addClass('eael-simple-menu-indicator-open') : ''\n\n });\n $('.eael-simple-menu > li ul li.menu-item-has-children', $scope).each(function (e) {\n // indicator position\n if ($dropdown_indicator_icon == 'svg') {\n var $height = parseInt($('a', this).css('line-height')) / 2;\n $(this).append('<span class=\"eael-simple-menu-indicator\"> ' + $dropdown_indicator_class + '</span>');\n } else {\n var $height = parseInt($('a', this).css('line-height')) / 2;\n $(this).append('<span class=\"eael-simple-menu-indicator ' + $dropdown_indicator_class + '\"></span>');\n } // if current, keep indicator open\n // $(this).hasClass('current-menu-ancestor') ? $(this).addClass('eael-simple-menu-indicator-open') : ''\n\n }); // menu indent\n\n $('.eael-simple-menu-dropdown-align-left .eael-simple-menu-vertical li.menu-item-has-children').each(function () {\n var $padding_left = parseInt($('a', $(this)).css('padding-left'));\n $('ul li a', this).css({\n 'padding-left': $padding_left + 20 + 'px'\n });\n });\n $('.eael-simple-menu-dropdown-align-right .eael-simple-menu-vertical li.menu-item-has-children').each(function () {\n var $padding_right = parseInt($('a', $(this)).css('padding-right'));\n $('ul li a', this).css({\n 'padding-right': $padding_right + 20 + 'px'\n });\n }); // menu dropdown toggle\n\n $('.eael-simple-menu', $scope).on('click', '.eael-simple-menu-indicator', function (e) {\n e.preventDefault();\n $(this).toggleClass('eael-simple-menu-indicator-open');\n $(this).hasClass('eael-simple-menu-indicator-open') ? $(this).siblings('ul').slideDown(300) : $(this).siblings('ul').slideUp(300);\n }); // main menu toggle\n\n $('.eael-simple-menu-container', $scope).on('click', '.eael-simple-menu-responsive li a', function (e) {\n $(this).parents('.eael-simple-menu-horizontal').slideUp(300);\n });\n};\n\njQuery(window).on('elementor/frontend/init', function () {\n elementorFrontend.hooks.addAction('frontend/element_ready/eael-simple-menu.default', SimpleMenu);\n});\n\n//# sourceURL=webpack:///./src/js/view/simple-menu.js?");
97
 
98
  /***/ })
99
 
93
  /*! no static exports found */
94
  /***/ (function(module, exports) {
95
 
96
+ eval("var SimpleMenu = function SimpleMenu($scope, $) {\n var $indicator_class = $('.eael-simple-menu-container', $scope).data('indicator-class');\n var $hamburger_icon = $('.eael-simple-menu-container', $scope).data('hamburger-icon');\n var $indicator_icon = $('.eael-simple-menu-container', $scope).data('indicator');\n var $dropdown_indicator_icon = $('.eael-simple-menu-container', $scope).data('dropdown-indicator');\n var $dropdown_indicator_class = $('.eael-simple-menu-container', $scope).data('dropdown-indicator-class');\n var $horizontal = $('.eael-simple-menu', $scope).hasClass('eael-simple-menu-horizontal');\n var $fullWidth = $('.eael-simple-menu--stretch');\n\n if ($horizontal) {\n // insert indicator\n if ($indicator_icon == 'svg') {\n $('.eael-simple-menu > li.menu-item-has-children', $scope).each(function () {\n $('> a', $(this)).append('<span class=\"indicator-svg\">' + $indicator_class + '</span>');\n });\n } else {\n $('.eael-simple-menu > li.menu-item-has-children', $scope).each(function () {\n $('> a', $(this)).append('<span class=\"' + $indicator_class + '\"></span>');\n });\n }\n\n if ($dropdown_indicator_icon == 'svg') {\n $('.eael-simple-menu > li ul li.menu-item-has-children', $scope).each(function () {\n $('> a', $(this)).append('<span class=\"dropdown-indicator-svg\">' + $dropdown_indicator_class + '</span>');\n });\n } else {\n $('.eael-simple-menu > li ul li.menu-item-has-children', $scope).each(function () {\n $('> a', $(this)).append('<span class=\"' + $dropdown_indicator_class + '\"></span>');\n });\n } // insert responsive menu toggle, text\n\n\n $('.eael-simple-menu-horizontal', $scope).before('<span class=\"eael-simple-menu-toggle-text\"></span>').after('<button class=\"eael-simple-menu-toggle\">' + $hamburger_icon + '<span class=\"eael-simple-menu-toggle-text\"></span></button>');\n eael_menu_resize(); // responsive menu slide\n\n $('.eael-simple-menu-container', $scope).on('click', '.eael-simple-menu-toggle', function (e) {\n e.preventDefault();\n var $siblings = $(this).siblings('nav').children('.eael-simple-menu-horizontal');\n $siblings.css('display') == 'none' ? $siblings.slideDown(300) : $siblings.slideUp(300);\n }); // clear responsive props\n\n $(window).on('resize load', function () {\n eael_menu_resize();\n });\n }\n\n function eael_menu_resize() {\n if (window.matchMedia('(max-width: 1024px)').matches) {\n $('.eael-simple-menu-container', $scope).addClass('eael-simple-menu-hamburger');\n $('.eael-simple-menu-horizontal', $scope).addClass('eael-simple-menu-responsive');\n $('.eael-simple-menu-toggle-text', $scope).text($('.eael-simple-menu-horizontal .current-menu-item a', $scope).eq(0).text());\n\n if ($('.eael-simple-menu-container', $scope).hasClass('eael-simple-menu--stretch')) {\n var css = {};\n\n if (!$('.eael-simple-menu-horizontal', $scope).parent().hasClass('eael-nav-menu-wrapper')) {\n $('.eael-simple-menu-horizontal', $scope).wrap('<nav class=\"eael-nav-menu-wrapper\"></nav>');\n }\n\n var $navMenu = $(\".eael-simple-menu-container nav\", $scope);\n menu_size_reset($navMenu);\n css.width = parseFloat($('.elementor').width()) + 'px';\n css.left = -parseFloat($navMenu.offset().left) + 'px';\n css.position = 'absolute';\n $navMenu.css(css);\n } else {\n var _css = {};\n\n if (!$('.eael-simple-menu-horizontal', $scope).parent().hasClass('eael-nav-menu-wrapper')) {\n $('.eael-simple-menu-horizontal', $scope).wrap('<nav class=\"eael-nav-menu-wrapper\"></nav>');\n }\n\n var _$navMenu = $(\".eael-simple-menu-container nav\", $scope);\n\n menu_size_reset(_$navMenu);\n _css.width = '';\n _css.left = '';\n _css.position = 'inherit';\n\n _$navMenu.css(_css);\n }\n } else {\n $('.eael-simple-menu-container', $scope).removeClass('eael-simple-menu-hamburger');\n $('.eael-simple-menu-horizontal', $scope).removeClass('eael-simple-menu-responsive');\n $('.eael-simple-menu-horizontal, .eael-simple-menu-horizontal ul', $scope).css('display', '');\n $(\".eael-simple-menu-container nav\", $scope).removeAttr('style');\n }\n }\n\n function menu_size_reset(selector) {\n var css = {};\n css.width = '';\n css.left = '';\n css.position = 'inherit';\n selector.css(css);\n }\n\n $('.eael-simple-menu > li.menu-item-has-children', $scope).each(function () {\n // indicator position\n if ($indicator_icon == 'svg') {\n var $height = parseInt($('a', this).css('line-height')) / 2;\n $(this).append('<span class=\"eael-simple-menu-indicator\"> ' + $indicator_class + '</span>');\n } else {\n var $height = parseInt($('a', this).css('line-height')) / 2;\n $(this).append('<span class=\"eael-simple-menu-indicator ' + $indicator_class + '\"></span>');\n } // if current, keep indicator open\n // $(this).hasClass('current-menu-ancestor') ? $(this).addClass('eael-simple-menu-indicator-open') : ''\n\n });\n $('.eael-simple-menu > li ul li.menu-item-has-children', $scope).each(function (e) {\n // indicator position\n if ($dropdown_indicator_icon == 'svg') {\n var $height = parseInt($('a', this).css('line-height')) / 2;\n $(this).append('<span class=\"eael-simple-menu-indicator\"> ' + $dropdown_indicator_class + '</span>');\n } else {\n var $height = parseInt($('a', this).css('line-height')) / 2;\n $(this).append('<span class=\"eael-simple-menu-indicator ' + $dropdown_indicator_class + '\"></span>');\n } // if current, keep indicator open\n // $(this).hasClass('current-menu-ancestor') ? $(this).addClass('eael-simple-menu-indicator-open') : ''\n\n }); // menu indent\n\n $('.eael-simple-menu-dropdown-align-left .eael-simple-menu-vertical li.menu-item-has-children').each(function () {\n var $padding_left = parseInt($('a', $(this)).css('padding-left'));\n $('ul li a', this).css({\n 'padding-left': $padding_left + 20 + 'px'\n });\n });\n $('.eael-simple-menu-dropdown-align-right .eael-simple-menu-vertical li.menu-item-has-children').each(function () {\n var $padding_right = parseInt($('a', $(this)).css('padding-right'));\n $('ul li a', this).css({\n 'padding-right': $padding_right + 20 + 'px'\n });\n }); // menu dropdown toggle\n\n $('.eael-simple-menu', $scope).on('click', '.eael-simple-menu-indicator', function (e) {\n e.preventDefault();\n $(this).toggleClass('eael-simple-menu-indicator-open');\n $(this).hasClass('eael-simple-menu-indicator-open') ? $(this).siblings('ul').slideDown(300) : $(this).siblings('ul').slideUp(300);\n }); // main menu toggle\n\n $('.eael-simple-menu-container', $scope).on('click', '.eael-simple-menu-responsive li a', function (e) {\n $(this).parents('.eael-simple-menu-horizontal').slideUp(300);\n });\n};\n\njQuery(window).on('elementor/frontend/init', function () {\n if (ea.elementStatusCheck('eaelSimpleMenu')) {\n return false;\n }\n\n elementorFrontend.hooks.addAction('frontend/element_ready/eael-simple-menu.default', SimpleMenu);\n});\n\n//# sourceURL=webpack:///./src/js/view/simple-menu.js?");
97
 
98
  /***/ })
99
 
assets/front-end/js/view/simple-menu.min.js CHANGED
@@ -1 +1 @@
1
- !function(e){var n={};function a(i){if(n[i])return n[i].exports;var l=n[i]={i:i,l:!1,exports:{}};return e[i].call(l.exports,l,l.exports,a),l.l=!0,l.exports}a.m=e,a.c=n,a.d=function(e,n,i){a.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:i})},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,n){if(1&n&&(e=a(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(a.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var l in e)a.d(i,l,function(n){return e[n]}.bind(null,l));return i},a.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(n,"a",n),n},a.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},a.p="",a(a.s=23)}({23:function(e,n){var a=function(e,n){var a=n(".eael-simple-menu-container",e).data("indicator-class"),i=n(".eael-simple-menu-container",e).data("hamburger-icon"),l=n(".eael-simple-menu-container",e).data("indicator"),s=n(".eael-simple-menu-container",e).data("dropdown-indicator"),t=n(".eael-simple-menu-container",e).data("dropdown-indicator-class"),r=n(".eael-simple-menu",e).hasClass("eael-simple-menu-horizontal");n(".eael-simple-menu--stretch");function o(){if(window.matchMedia("(max-width: 1024px)").matches)if(n(".eael-simple-menu-container",e).addClass("eael-simple-menu-hamburger"),n(".eael-simple-menu-horizontal",e).addClass("eael-simple-menu-responsive"),n(".eael-simple-menu-toggle-text",e).text(n(".eael-simple-menu-horizontal .current-menu-item a",e).eq(0).text()),n(".eael-simple-menu-container",e).hasClass("eael-simple-menu--stretch")){var a={};n(".eael-simple-menu-horizontal",e).parent().hasClass("eael-nav-menu-wrapper")||n(".eael-simple-menu-horizontal",e).wrap('<nav class="eael-nav-menu-wrapper"></nav>');var i=n(".eael-simple-menu-container nav",e);p(i),a.width=parseFloat(n(".elementor").width())+"px",a.left=-parseFloat(i.offset().left)+"px",a.position="absolute",i.css(a)}else{var l={};n(".eael-simple-menu-horizontal",e).parent().hasClass("eael-nav-menu-wrapper")||n(".eael-simple-menu-horizontal",e).wrap('<nav class="eael-nav-menu-wrapper"></nav>');var s=n(".eael-simple-menu-container nav",e);p(s),l.width="",l.left="",l.position="inherit",s.css(l)}else n(".eael-simple-menu-container",e).removeClass("eael-simple-menu-hamburger"),n(".eael-simple-menu-horizontal",e).removeClass("eael-simple-menu-responsive"),n(".eael-simple-menu-horizontal, .eael-simple-menu-horizontal ul",e).css("display",""),n(".eael-simple-menu-container nav",e).removeAttr("style")}function p(e){var n={width:"",left:"",position:"inherit"};e.css(n)}r&&("svg"==l?n(".eael-simple-menu > li.menu-item-has-children",e).each((function(){n("> a",n(this)).append('<span class="indicator-svg">'+a+"</span>")})):n(".eael-simple-menu > li.menu-item-has-children",e).each((function(){n("> a",n(this)).append('<span class="'+a+'"></span>')})),"svg"==s?n(".eael-simple-menu > li ul li.menu-item-has-children",e).each((function(){n("> a",n(this)).append('<span class="dropdown-indicator-svg">'+t+"</span>")})):n(".eael-simple-menu > li ul li.menu-item-has-children",e).each((function(){n("> a",n(this)).append('<span class="'+t+'"></span>')})),n(".eael-simple-menu-horizontal",e).before('<span class="eael-simple-menu-toggle-text"></span>').after('<button class="eael-simple-menu-toggle">'+i+'<span class="eael-simple-menu-toggle-text"></span></button>'),o(),n(".eael-simple-menu-container",e).on("click",".eael-simple-menu-toggle",(function(e){e.preventDefault();var a=n(this).siblings("nav").children(".eael-simple-menu-horizontal");"none"==a.css("display")?a.slideDown(300):a.slideUp(300)})),n(window).on("resize load",(function(){o()}))),n(".eael-simple-menu > li.menu-item-has-children",e).each((function(){if("svg"==l){parseInt(n("a",this).css("line-height"));n(this).append('<span class="eael-simple-menu-indicator"> '+a+"</span>")}else{parseInt(n("a",this).css("line-height"));n(this).append('<span class="eael-simple-menu-indicator '+a+'"></span>')}})),n(".eael-simple-menu > li ul li.menu-item-has-children",e).each((function(e){if("svg"==s){parseInt(n("a",this).css("line-height"));n(this).append('<span class="eael-simple-menu-indicator"> '+t+"</span>")}else{parseInt(n("a",this).css("line-height"));n(this).append('<span class="eael-simple-menu-indicator '+t+'"></span>')}})),n(".eael-simple-menu-dropdown-align-left .eael-simple-menu-vertical li.menu-item-has-children").each((function(){var e=parseInt(n("a",n(this)).css("padding-left"));n("ul li a",this).css({"padding-left":e+20+"px"})})),n(".eael-simple-menu-dropdown-align-right .eael-simple-menu-vertical li.menu-item-has-children").each((function(){var e=parseInt(n("a",n(this)).css("padding-right"));n("ul li a",this).css({"padding-right":e+20+"px"})})),n(".eael-simple-menu",e).on("click",".eael-simple-menu-indicator",(function(e){e.preventDefault(),n(this).toggleClass("eael-simple-menu-indicator-open"),n(this).hasClass("eael-simple-menu-indicator-open")?n(this).siblings("ul").slideDown(300):n(this).siblings("ul").slideUp(300)})),n(".eael-simple-menu-container",e).on("click",".eael-simple-menu-responsive li a",(function(e){n(this).parents(".eael-simple-menu-horizontal").slideUp(300)}))};jQuery(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/eael-simple-menu.default",a)}))}});
1
+ !function(e){var n={};function a(i){if(n[i])return n[i].exports;var l=n[i]={i:i,l:!1,exports:{}};return e[i].call(l.exports,l,l.exports,a),l.l=!0,l.exports}a.m=e,a.c=n,a.d=function(e,n,i){a.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:i})},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,n){if(1&n&&(e=a(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(a.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var l in e)a.d(i,l,function(n){return e[n]}.bind(null,l));return i},a.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(n,"a",n),n},a.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},a.p="",a(a.s=23)}({23:function(e,n){var a=function(e,n){var a=n(".eael-simple-menu-container",e).data("indicator-class"),i=n(".eael-simple-menu-container",e).data("hamburger-icon"),l=n(".eael-simple-menu-container",e).data("indicator"),s=n(".eael-simple-menu-container",e).data("dropdown-indicator"),t=n(".eael-simple-menu-container",e).data("dropdown-indicator-class"),r=n(".eael-simple-menu",e).hasClass("eael-simple-menu-horizontal");n(".eael-simple-menu--stretch");function o(){if(window.matchMedia("(max-width: 1024px)").matches)if(n(".eael-simple-menu-container",e).addClass("eael-simple-menu-hamburger"),n(".eael-simple-menu-horizontal",e).addClass("eael-simple-menu-responsive"),n(".eael-simple-menu-toggle-text",e).text(n(".eael-simple-menu-horizontal .current-menu-item a",e).eq(0).text()),n(".eael-simple-menu-container",e).hasClass("eael-simple-menu--stretch")){var a={};n(".eael-simple-menu-horizontal",e).parent().hasClass("eael-nav-menu-wrapper")||n(".eael-simple-menu-horizontal",e).wrap('<nav class="eael-nav-menu-wrapper"></nav>');var i=n(".eael-simple-menu-container nav",e);p(i),a.width=parseFloat(n(".elementor").width())+"px",a.left=-parseFloat(i.offset().left)+"px",a.position="absolute",i.css(a)}else{var l={};n(".eael-simple-menu-horizontal",e).parent().hasClass("eael-nav-menu-wrapper")||n(".eael-simple-menu-horizontal",e).wrap('<nav class="eael-nav-menu-wrapper"></nav>');var s=n(".eael-simple-menu-container nav",e);p(s),l.width="",l.left="",l.position="inherit",s.css(l)}else n(".eael-simple-menu-container",e).removeClass("eael-simple-menu-hamburger"),n(".eael-simple-menu-horizontal",e).removeClass("eael-simple-menu-responsive"),n(".eael-simple-menu-horizontal, .eael-simple-menu-horizontal ul",e).css("display",""),n(".eael-simple-menu-container nav",e).removeAttr("style")}function p(e){var n={width:"",left:"",position:"inherit"};e.css(n)}r&&("svg"==l?n(".eael-simple-menu > li.menu-item-has-children",e).each((function(){n("> a",n(this)).append('<span class="indicator-svg">'+a+"</span>")})):n(".eael-simple-menu > li.menu-item-has-children",e).each((function(){n("> a",n(this)).append('<span class="'+a+'"></span>')})),"svg"==s?n(".eael-simple-menu > li ul li.menu-item-has-children",e).each((function(){n("> a",n(this)).append('<span class="dropdown-indicator-svg">'+t+"</span>")})):n(".eael-simple-menu > li ul li.menu-item-has-children",e).each((function(){n("> a",n(this)).append('<span class="'+t+'"></span>')})),n(".eael-simple-menu-horizontal",e).before('<span class="eael-simple-menu-toggle-text"></span>').after('<button class="eael-simple-menu-toggle">'+i+'<span class="eael-simple-menu-toggle-text"></span></button>'),o(),n(".eael-simple-menu-container",e).on("click",".eael-simple-menu-toggle",(function(e){e.preventDefault();var a=n(this).siblings("nav").children(".eael-simple-menu-horizontal");"none"==a.css("display")?a.slideDown(300):a.slideUp(300)})),n(window).on("resize load",(function(){o()}))),n(".eael-simple-menu > li.menu-item-has-children",e).each((function(){if("svg"==l){parseInt(n("a",this).css("line-height"));n(this).append('<span class="eael-simple-menu-indicator"> '+a+"</span>")}else{parseInt(n("a",this).css("line-height"));n(this).append('<span class="eael-simple-menu-indicator '+a+'"></span>')}})),n(".eael-simple-menu > li ul li.menu-item-has-children",e).each((function(e){if("svg"==s){parseInt(n("a",this).css("line-height"));n(this).append('<span class="eael-simple-menu-indicator"> '+t+"</span>")}else{parseInt(n("a",this).css("line-height"));n(this).append('<span class="eael-simple-menu-indicator '+t+'"></span>')}})),n(".eael-simple-menu-dropdown-align-left .eael-simple-menu-vertical li.menu-item-has-children").each((function(){var e=parseInt(n("a",n(this)).css("padding-left"));n("ul li a",this).css({"padding-left":e+20+"px"})})),n(".eael-simple-menu-dropdown-align-right .eael-simple-menu-vertical li.menu-item-has-children").each((function(){var e=parseInt(n("a",n(this)).css("padding-right"));n("ul li a",this).css({"padding-right":e+20+"px"})})),n(".eael-simple-menu",e).on("click",".eael-simple-menu-indicator",(function(e){e.preventDefault(),n(this).toggleClass("eael-simple-menu-indicator-open"),n(this).hasClass("eael-simple-menu-indicator-open")?n(this).siblings("ul").slideDown(300):n(this).siblings("ul").slideUp(300)})),n(".eael-simple-menu-container",e).on("click",".eael-simple-menu-responsive li a",(function(e){n(this).parents(".eael-simple-menu-horizontal").slideUp(300)}))};jQuery(window).on("elementor/frontend/init",(function(){if(ea.elementStatusCheck("eaelSimpleMenu"))return!1;elementorFrontend.hooks.addAction("frontend/element_ready/eael-simple-menu.default",a)}))}});
assets/front-end/js/view/woo-product-carousel.js CHANGED
@@ -93,7 +93,7 @@
93
  /*! no static exports found */
94
  /***/ (function(module, exports) {
95
 
96
- eval("ea.hooks.addAction(\"init\", \"ea\", function () {\n var wooProductCarousel = function wooProductCarousel($scope, $) {\n ea.hooks.doAction(\"quickViewAddMarkup\", $scope, $);\n var $wooProductCarousel = $scope.find(\".eael-woo-product-carousel\").eq(0),\n $type = $wooProductCarousel.data(\"type\"),\n $autoplay = $wooProductCarousel.data(\"autoplay\") !== undefined ? $wooProductCarousel.data(\"autoplay\") : 999999,\n $pagination = $wooProductCarousel.data(\"pagination\") !== undefined ? $wooProductCarousel.data(\"pagination\") : \".swiper-pagination\",\n $arrow_next = $wooProductCarousel.data(\"arrow-next\") !== undefined ? $wooProductCarousel.data(\"arrow-next\") : \".swiper-button-next\",\n $arrow_prev = $wooProductCarousel.data(\"arrow-prev\") !== undefined ? $wooProductCarousel.data(\"arrow-prev\") : \".swiper-button-prev\",\n $items = $wooProductCarousel.data(\"items\") !== undefined ? $wooProductCarousel.data(\"items\") : 3,\n $items_tablet = $wooProductCarousel.data(\"items-tablet\") !== undefined ? $wooProductCarousel.data(\"items-tablet\") : 3,\n $items_mobile = $wooProductCarousel.data(\"items-mobile\") !== undefined ? $wooProductCarousel.data(\"items-mobile\") : 3,\n $margin = $wooProductCarousel.data(\"margin\") !== undefined ? $wooProductCarousel.data(\"margin\") : 10,\n $margin_tablet = $wooProductCarousel.data(\"margin-tablet\") !== undefined ? $wooProductCarousel.data(\"margin-tablet\") : 10,\n $margin_mobile = $wooProductCarousel.data(\"margin-mobile\") !== undefined ? $wooProductCarousel.data(\"margin-mobile\") : 0,\n $effect = $wooProductCarousel.data(\"effect\") !== undefined ? $wooProductCarousel.data(\"effect\") : \"slide\",\n $speed = $wooProductCarousel.data(\"speed\") !== undefined ? $wooProductCarousel.data(\"speed\") : 400,\n $loop = $wooProductCarousel.data(\"loop\") !== undefined ? $wooProductCarousel.data(\"loop\") : 0,\n $grab_cursor = $wooProductCarousel.data(\"grab-cursor\") !== undefined ? $wooProductCarousel.data(\"grab-cursor\") : 0,\n $pause_on_hover = $wooProductCarousel.data(\"pause-on-hover\") !== undefined ? $wooProductCarousel.data(\"pause-on-hover\") : \"\",\n $centeredSlides = $effect == \"coverflow\" ? true : false,\n $depth = $wooProductCarousel.data(\"depth\") !== undefined ? $wooProductCarousel.data(\"depth\") : 100,\n $rotate = $wooProductCarousel.data(\"rotate\") !== undefined ? $wooProductCarousel.data(\"rotate\") : 50,\n $stretch = $wooProductCarousel.data(\"stretch\") !== undefined ? $wooProductCarousel.data(\"stretch\") : 10;\n var $carouselOptions = {\n direction: \"horizontal\",\n speed: $speed,\n effect: $effect,\n centeredSlides: $centeredSlides,\n grabCursor: $grab_cursor,\n autoHeight: true,\n loop: $loop,\n slidesPerGroup: 1,\n autoplay: {\n delay: $autoplay,\n disableOnInteraction: false\n },\n pagination: {\n el: $pagination,\n clickable: true\n },\n navigation: {\n nextEl: $arrow_next,\n prevEl: $arrow_prev\n },\n slidesPerView: $items\n };\n\n if ($effect === 'slide') {\n $carouselOptions.breakpoints = {\n 1024: {\n slidesPerView: $items,\n spaceBetween: $margin\n },\n 768: {\n slidesPerView: $items_tablet,\n spaceBetween: $margin_tablet\n },\n 320: {\n slidesPerView: $items_mobile,\n spaceBetween: $margin_mobile\n }\n };\n }\n\n if ($effect === 'coverflow') {\n // $carouselOptions.slidesPerView = 'auto';\n $carouselOptions.coverflowEffect = {\n rotate: $rotate,\n stretch: $stretch,\n depth: $depth,\n modifier: 1,\n slideShadows: false\n };\n $carouselOptions.breakpoints = {\n 1024: {\n slidesPerView: 3\n },\n 768: {\n slidesPerView: 1\n },\n 320: {\n slidesPerView: 1\n }\n };\n }\n\n if ($autoplay === 0) {\n $carouselOptions.autoplay = false;\n }\n\n swiperLoader($wooProductCarousel, $carouselOptions).then(function (eaelWooProductCarousel) {\n if ($autoplay === 0) {\n eaelWooProductCarousel.autoplay.stop();\n }\n\n if ($pause_on_hover && $autoplay !== 0) {\n $wooProductCarousel.on(\"mouseenter\", function () {\n eaelWooProductCarousel.autoplay.stop();\n });\n $wooProductCarousel.on(\"mouseleave\", function () {\n eaelWooProductCarousel.autoplay.start();\n });\n } //gallery pagination\n\n\n var $paginationGallerySelector = $scope.find('.eael-woo-product-carousel-container .eael-woo-product-carousel-gallary-pagination').eq(0);\n\n if ($paginationGallerySelector.length > 0) {\n swiperLoader($paginationGallerySelector, {\n spaceBetween: 20,\n centeredSlides: $centeredSlides,\n touchRatio: 0.2,\n slideToClickedSlide: true,\n loop: $loop,\n slidesPerGroup: 1,\n // loopedSlides: $items,\n slidesPerView: 3\n }).then(function ($paginationGallerySlider) {\n eaelWooProductCarousel.controller.control = $paginationGallerySlider;\n $paginationGallerySlider.controller.control = eaelWooProductCarousel;\n });\n }\n });\n ea.hooks.doAction(\"quickViewPopupViewInit\", $scope, $);\n\n if (isEditMode) {\n $(\".eael-product-image-wrap .woocommerce-product-gallery\").css(\"opacity\", \"1\");\n }\n\n var eael_popup = $(document).find(\".eael-woocommerce-popup-view\");\n\n if (eael_popup.length < 1) {\n eael_add_popup();\n }\n\n function eael_add_popup() {\n var markup = \"<div style=\\\"display: none\\\" class=\\\"eael-woocommerce-popup-view eael-product-popup eael-product-zoom-in woocommerce\\\">\\n <div class=\\\"eael-product-modal-bg\\\"></div>\\n <div class=\\\"eael-popup-details-render eael-woo-slider-popup\\\"><div class=\\\"eael-preloader\\\"></div></div>\\n </div>\";\n $(\"body\").append(markup);\n }\n\n var WooProductCarouselLoader = function WooProductCarouselLoader($src) {\n if ($($src).find('.eael-woo-product-carousel').length) {\n swiperLoader($wooProductCarousel, $carouselOptions);\n }\n };\n\n ea.hooks.addAction(\"ea-lightbox-triggered\", \"ea\", WooProductCarouselLoader);\n ea.hooks.addAction(\"ea-advanced-tabs-triggered\", \"ea\", WooProductCarouselLoader);\n ea.hooks.addAction(\"ea-advanced-accordion-triggered\", \"ea\", WooProductCarouselLoader);\n };\n\n var swiperLoader = function swiperLoader(swiperElement, swiperConfig) {\n if ('undefined' === typeof Swiper || 'function' === typeof Swiper) {\n var asyncSwiper = elementorFrontend.utils.swiper;\n return new asyncSwiper(swiperElement, swiperConfig).then(function (newSwiperInstance) {\n return newSwiperInstance;\n });\n } else {\n return swiperPromise(swiperElement, swiperConfig);\n }\n };\n\n var swiperPromise = function swiperPromise(swiperElement, swiperConfig) {\n return new Promise(function (resolve, reject) {\n var swiperInstance = new Swiper(swiperElement, swiperConfig);\n resolve(swiperInstance);\n });\n };\n\n elementorFrontend.hooks.addAction(\"frontend/element_ready/eael-woo-product-carousel.default\", wooProductCarousel);\n});\n\n//# sourceURL=webpack:///./src/js/view/woo-product-carousel.js?");
97
 
98
  /***/ })
99
 
93
  /*! no static exports found */
94
  /***/ (function(module, exports) {
95
 
96
+ eval("ea.hooks.addAction(\"init\", \"ea\", function () {\n var wooProductCarousel = function wooProductCarousel($scope, $) {\n ea.hooks.doAction(\"quickViewAddMarkup\", $scope, $);\n var $wooProductCarousel = $scope.find(\".eael-woo-product-carousel\").eq(0),\n $type = $wooProductCarousel.data(\"type\"),\n $autoplay = $wooProductCarousel.data(\"autoplay\") !== undefined ? $wooProductCarousel.data(\"autoplay\") : 999999,\n $pagination = $wooProductCarousel.data(\"pagination\") !== undefined ? $wooProductCarousel.data(\"pagination\") : \".swiper-pagination\",\n $arrow_next = $wooProductCarousel.data(\"arrow-next\") !== undefined ? $wooProductCarousel.data(\"arrow-next\") : \".swiper-button-next\",\n $arrow_prev = $wooProductCarousel.data(\"arrow-prev\") !== undefined ? $wooProductCarousel.data(\"arrow-prev\") : \".swiper-button-prev\",\n $items = $wooProductCarousel.data(\"items\") !== undefined ? $wooProductCarousel.data(\"items\") : 3,\n $items_tablet = $wooProductCarousel.data(\"items-tablet\") !== undefined ? $wooProductCarousel.data(\"items-tablet\") : 3,\n $items_mobile = $wooProductCarousel.data(\"items-mobile\") !== undefined ? $wooProductCarousel.data(\"items-mobile\") : 3,\n $margin = $wooProductCarousel.data(\"margin\") !== undefined ? $wooProductCarousel.data(\"margin\") : 10,\n $margin_tablet = $wooProductCarousel.data(\"margin-tablet\") !== undefined ? $wooProductCarousel.data(\"margin-tablet\") : 10,\n $margin_mobile = $wooProductCarousel.data(\"margin-mobile\") !== undefined ? $wooProductCarousel.data(\"margin-mobile\") : 0,\n $effect = $wooProductCarousel.data(\"effect\") !== undefined ? $wooProductCarousel.data(\"effect\") : \"slide\",\n $speed = $wooProductCarousel.data(\"speed\") !== undefined ? $wooProductCarousel.data(\"speed\") : 400,\n $loop = $wooProductCarousel.data(\"loop\") !== undefined ? $wooProductCarousel.data(\"loop\") : 0,\n $grab_cursor = $wooProductCarousel.data(\"grab-cursor\") !== undefined ? $wooProductCarousel.data(\"grab-cursor\") : 0,\n $pause_on_hover = $wooProductCarousel.data(\"pause-on-hover\") !== undefined ? $wooProductCarousel.data(\"pause-on-hover\") : \"\",\n $centeredSlides = $effect == \"coverflow\" ? true : false,\n $depth = $wooProductCarousel.data(\"depth\") !== undefined ? $wooProductCarousel.data(\"depth\") : 100,\n $rotate = $wooProductCarousel.data(\"rotate\") !== undefined ? $wooProductCarousel.data(\"rotate\") : 50,\n $stretch = $wooProductCarousel.data(\"stretch\") !== undefined ? $wooProductCarousel.data(\"stretch\") : 10;\n var $carouselOptions = {\n direction: \"horizontal\",\n speed: $speed,\n effect: $effect,\n centeredSlides: $centeredSlides,\n grabCursor: $grab_cursor,\n autoHeight: true,\n loop: $loop,\n slidesPerGroup: 1,\n autoplay: {\n delay: $autoplay,\n disableOnInteraction: false\n },\n pagination: {\n el: $pagination,\n clickable: true\n },\n navigation: {\n nextEl: $arrow_next,\n prevEl: $arrow_prev\n },\n slidesPerView: $items\n };\n\n if ($effect === 'slide') {\n $carouselOptions.breakpoints = {\n 1024: {\n slidesPerView: $items,\n spaceBetween: $margin\n },\n 768: {\n slidesPerView: $items_tablet,\n spaceBetween: $margin_tablet\n },\n 320: {\n slidesPerView: $items_mobile,\n spaceBetween: $margin_mobile\n }\n };\n }\n\n if ($effect === 'coverflow') {\n // $carouselOptions.slidesPerView = 'auto';\n $carouselOptions.coverflowEffect = {\n rotate: $rotate,\n stretch: $stretch,\n depth: $depth,\n modifier: 1,\n slideShadows: false\n };\n $carouselOptions.breakpoints = {\n 1024: {\n slidesPerView: 3\n },\n 768: {\n slidesPerView: 1\n },\n 320: {\n slidesPerView: 1\n }\n };\n }\n\n if ($autoplay === 0) {\n $carouselOptions.autoplay = false;\n }\n\n swiperLoader($wooProductCarousel, $carouselOptions).then(function (eaelWooProductCarousel) {\n if ($autoplay === 0) {\n eaelWooProductCarousel.autoplay.stop();\n }\n\n if ($pause_on_hover && $autoplay !== 0) {\n $wooProductCarousel.on(\"mouseenter\", function () {\n eaelWooProductCarousel.autoplay.stop();\n });\n $wooProductCarousel.on(\"mouseleave\", function () {\n eaelWooProductCarousel.autoplay.start();\n });\n } //gallery pagination\n\n\n var $paginationGallerySelector = $scope.find('.eael-woo-product-carousel-container .eael-woo-product-carousel-gallary-pagination').eq(0);\n\n if ($paginationGallerySelector.length > 0) {\n swiperLoader($paginationGallerySelector, {\n spaceBetween: 20,\n centeredSlides: $centeredSlides,\n touchRatio: 0.2,\n slideToClickedSlide: true,\n loop: $loop,\n slidesPerGroup: 1,\n // loopedSlides: $items,\n slidesPerView: 3\n }).then(function ($paginationGallerySlider) {\n eaelWooProductCarousel.controller.control = $paginationGallerySlider;\n $paginationGallerySlider.controller.control = eaelWooProductCarousel;\n });\n }\n });\n ea.hooks.doAction(\"quickViewPopupViewInit\", $scope, $);\n\n if (isEditMode) {\n $(\".eael-product-image-wrap .woocommerce-product-gallery\").css(\"opacity\", \"1\");\n }\n\n var eael_popup = $(document).find(\".eael-woocommerce-popup-view\");\n\n if (eael_popup.length < 1) {\n eael_add_popup();\n }\n\n function eael_add_popup() {\n var markup = \"<div style=\\\"display: none\\\" class=\\\"eael-woocommerce-popup-view eael-product-popup eael-product-zoom-in woocommerce\\\">\\n <div class=\\\"eael-product-modal-bg\\\"></div>\\n <div class=\\\"eael-popup-details-render eael-woo-slider-popup\\\"><div class=\\\"eael-preloader\\\"></div></div>\\n </div>\";\n $(\"body\").append(markup);\n }\n\n var WooProductCarouselLoader = function WooProductCarouselLoader($src) {\n if ($($src).find('.eael-woo-product-carousel').length) {\n swiperLoader($wooProductCarousel, $carouselOptions);\n }\n };\n\n ea.hooks.addAction(\"ea-lightbox-triggered\", \"ea\", WooProductCarouselLoader);\n ea.hooks.addAction(\"ea-advanced-tabs-triggered\", \"ea\", WooProductCarouselLoader);\n ea.hooks.addAction(\"ea-advanced-accordion-triggered\", \"ea\", WooProductCarouselLoader);\n };\n\n var swiperLoader = function swiperLoader(swiperElement, swiperConfig) {\n if ('undefined' === typeof Swiper || 'function' === typeof Swiper) {\n var asyncSwiper = elementorFrontend.utils.swiper;\n return new asyncSwiper(swiperElement, swiperConfig).then(function (newSwiperInstance) {\n return newSwiperInstance;\n });\n } else {\n return swiperPromise(swiperElement, swiperConfig);\n }\n };\n\n var swiperPromise = function swiperPromise(swiperElement, swiperConfig) {\n return new Promise(function (resolve, reject) {\n var swiperInstance = new Swiper(swiperElement, swiperConfig);\n resolve(swiperInstance);\n });\n };\n\n if (ea.elementStatusCheck('eaelWooProductSliderLoad')) {\n return false;\n }\n\n elementorFrontend.hooks.addAction(\"frontend/element_ready/eael-woo-product-carousel.default\", wooProductCarousel);\n});\n\n//# sourceURL=webpack:///./src/js/view/woo-product-carousel.js?");
97
 
98
  /***/ })
99
 
assets/front-end/js/view/woo-product-carousel.min.js CHANGED
@@ -1 +1 @@
1
- !function(e){var o={};function t(a){if(o[a])return o[a].exports;var r=o[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,t),r.l=!0,r.exports}t.m=e,t.c=o,t.d=function(e,o,a){t.o(e,o)||Object.defineProperty(e,o,{enumerable:!0,get:a})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,o){if(1&o&&(e=t(e)),8&o)return e;if(4&o&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(t.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&o&&"string"!=typeof e)for(var r in e)t.d(a,r,function(o){return e[o]}.bind(null,r));return a},t.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(o,"a",o),o},t.o=function(e,o){return Object.prototype.hasOwnProperty.call(e,o)},t.p="",t(t.s=30)}({30:function(e,o){ea.hooks.addAction("init","ea",(function(){var e=function(e,t){return"undefined"==typeof Swiper||"function"==typeof Swiper?new(0,elementorFrontend.utils.swiper)(e,t).then((function(e){return e})):o(e,t)},o=function(e,o){return new Promise((function(t,a){t(new Swiper(e,o))}))};elementorFrontend.hooks.addAction("frontend/element_ready/eael-woo-product-carousel.default",(function(o,t){ea.hooks.doAction("quickViewAddMarkup",o,t);var a=o.find(".eael-woo-product-carousel").eq(0),r=(a.data("type"),void 0!==a.data("autoplay")?a.data("autoplay"):999999),i=void 0!==a.data("pagination")?a.data("pagination"):".swiper-pagination",n=void 0!==a.data("arrow-next")?a.data("arrow-next"):".swiper-button-next",d=void 0!==a.data("arrow-prev")?a.data("arrow-prev"):".swiper-button-prev",l=void 0!==a.data("items")?a.data("items"):3,c=void 0!==a.data("items-tablet")?a.data("items-tablet"):3,s=void 0!==a.data("items-mobile")?a.data("items-mobile"):3,p=void 0!==a.data("margin")?a.data("margin"):10,u=void 0!==a.data("margin-tablet")?a.data("margin-tablet"):10,f=void 0!==a.data("margin-mobile")?a.data("margin-mobile"):0,v=void 0!==a.data("effect")?a.data("effect"):"slide",w=void 0!==a.data("speed")?a.data("speed"):400,m=void 0!==a.data("loop")?a.data("loop"):0,g=void 0!==a.data("grab-cursor")?a.data("grab-cursor"):0,b=void 0!==a.data("pause-on-hover")?a.data("pause-on-hover"):"",y="coverflow"==v,h=void 0!==a.data("depth")?a.data("depth"):100,P=void 0!==a.data("rotate")?a.data("rotate"):50,k=void 0!==a.data("stretch")?a.data("stretch"):10,S={direction:"horizontal",speed:w,effect:v,centeredSlides:y,grabCursor:g,autoHeight:!0,loop:m,slidesPerGroup:1,autoplay:{delay:r,disableOnInteraction:!1},pagination:{el:i,clickable:!0},navigation:{nextEl:n,prevEl:d},slidesPerView:l};"slide"===v&&(S.breakpoints={1024:{slidesPerView:l,spaceBetween:p},768:{slidesPerView:c,spaceBetween:u},320:{slidesPerView:s,spaceBetween:f}}),"coverflow"===v&&(S.coverflowEffect={rotate:P,stretch:k,depth:h,modifier:1,slideShadows:!1},S.breakpoints={1024:{slidesPerView:3},768:{slidesPerView:1},320:{slidesPerView:1}}),0===r&&(S.autoplay=!1),e(a,S).then((function(t){0===r&&t.autoplay.stop(),b&&0!==r&&(a.on("mouseenter",(function(){t.autoplay.stop()})),a.on("mouseleave",(function(){t.autoplay.start()})));var i=o.find(".eael-woo-product-carousel-container .eael-woo-product-carousel-gallary-pagination").eq(0);i.length>0&&e(i,{spaceBetween:20,centeredSlides:y,touchRatio:.2,slideToClickedSlide:!0,loop:m,slidesPerGroup:1,slidesPerView:3}).then((function(e){t.controller.control=e,e.controller.control=t}))})),ea.hooks.doAction("quickViewPopupViewInit",o,t),isEditMode&&t(".eael-product-image-wrap .woocommerce-product-gallery").css("opacity","1"),t(document).find(".eael-woocommerce-popup-view").length<1&&t("body").append('<div style="display: none" class="eael-woocommerce-popup-view eael-product-popup eael-product-zoom-in woocommerce">\n <div class="eael-product-modal-bg"></div>\n <div class="eael-popup-details-render eael-woo-slider-popup"><div class="eael-preloader"></div></div>\n </div>');var V=function(o){t(o).find(".eael-woo-product-carousel").length&&e(a,S)};ea.hooks.addAction("ea-lightbox-triggered","ea",V),ea.hooks.addAction("ea-advanced-tabs-triggered","ea",V),ea.hooks.addAction("ea-advanced-accordion-triggered","ea",V)}))}))}});
1
+ !function(e){var o={};function t(a){if(o[a])return o[a].exports;var r=o[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,t),r.l=!0,r.exports}t.m=e,t.c=o,t.d=function(e,o,a){t.o(e,o)||Object.defineProperty(e,o,{enumerable:!0,get:a})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,o){if(1&o&&(e=t(e)),8&o)return e;if(4&o&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(t.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&o&&"string"!=typeof e)for(var r in e)t.d(a,r,function(o){return e[o]}.bind(null,r));return a},t.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(o,"a",o),o},t.o=function(e,o){return Object.prototype.hasOwnProperty.call(e,o)},t.p="",t(t.s=30)}({30:function(e,o){ea.hooks.addAction("init","ea",(function(){var e=function(e,t){return"undefined"==typeof Swiper||"function"==typeof Swiper?new(0,elementorFrontend.utils.swiper)(e,t).then((function(e){return e})):o(e,t)},o=function(e,o){return new Promise((function(t,a){t(new Swiper(e,o))}))};if(ea.elementStatusCheck("eaelWooProductSliderLoad"))return!1;elementorFrontend.hooks.addAction("frontend/element_ready/eael-woo-product-carousel.default",(function(o,t){ea.hooks.doAction("quickViewAddMarkup",o,t);var a=o.find(".eael-woo-product-carousel").eq(0),r=(a.data("type"),void 0!==a.data("autoplay")?a.data("autoplay"):999999),i=void 0!==a.data("pagination")?a.data("pagination"):".swiper-pagination",n=void 0!==a.data("arrow-next")?a.data("arrow-next"):".swiper-button-next",d=void 0!==a.data("arrow-prev")?a.data("arrow-prev"):".swiper-button-prev",l=void 0!==a.data("items")?a.data("items"):3,c=void 0!==a.data("items-tablet")?a.data("items-tablet"):3,s=void 0!==a.data("items-mobile")?a.data("items-mobile"):3,u=void 0!==a.data("margin")?a.data("margin"):10,p=void 0!==a.data("margin-tablet")?a.data("margin-tablet"):10,f=void 0!==a.data("margin-mobile")?a.data("margin-mobile"):0,v=void 0!==a.data("effect")?a.data("effect"):"slide",w=void 0!==a.data("speed")?a.data("speed"):400,m=void 0!==a.data("loop")?a.data("loop"):0,g=void 0!==a.data("grab-cursor")?a.data("grab-cursor"):0,b=void 0!==a.data("pause-on-hover")?a.data("pause-on-hover"):"",y="coverflow"==v,h=void 0!==a.data("depth")?a.data("depth"):100,P=void 0!==a.data("rotate")?a.data("rotate"):50,k=void 0!==a.data("stretch")?a.data("stretch"):10,S={direction:"horizontal",speed:w,effect:v,centeredSlides:y,grabCursor:g,autoHeight:!0,loop:m,slidesPerGroup:1,autoplay:{delay:r,disableOnInteraction:!1},pagination:{el:i,clickable:!0},navigation:{nextEl:n,prevEl:d},slidesPerView:l};"slide"===v&&(S.breakpoints={1024:{slidesPerView:l,spaceBetween:u},768:{slidesPerView:c,spaceBetween:p},320:{slidesPerView:s,spaceBetween:f}}),"coverflow"===v&&(S.coverflowEffect={rotate:P,stretch:k,depth:h,modifier:1,slideShadows:!1},S.breakpoints={1024:{slidesPerView:3},768:{slidesPerView:1},320:{slidesPerView:1}}),0===r&&(S.autoplay=!1),e(a,S).then((function(t){0===r&&t.autoplay.stop(),b&&0!==r&&(a.on("mouseenter",(function(){t.autoplay.stop()})),a.on("mouseleave",(function(){t.autoplay.start()})));var i=o.find(".eael-woo-product-carousel-container .eael-woo-product-carousel-gallary-pagination").eq(0);i.length>0&&e(i,{spaceBetween:20,centeredSlides:y,touchRatio:.2,slideToClickedSlide:!0,loop:m,slidesPerGroup:1,slidesPerView:3}).then((function(e){t.controller.control=e,e.controller.control=t}))})),ea.hooks.doAction("quickViewPopupViewInit",o,t),isEditMode&&t(".eael-product-image-wrap .woocommerce-product-gallery").css("opacity","1"),t(document).find(".eael-woocommerce-popup-view").length<1&&t("body").append('<div style="display: none" class="eael-woocommerce-popup-view eael-product-popup eael-product-zoom-in woocommerce">\n <div class="eael-product-modal-bg"></div>\n <div class="eael-popup-details-render eael-woo-slider-popup"><div class="eael-preloader"></div></div>\n </div>');var V=function(o){t(o).find(".eael-woo-product-carousel").length&&e(a,S)};ea.hooks.addAction("ea-lightbox-triggered","ea",V),ea.hooks.addAction("ea-advanced-tabs-triggered","ea",V),ea.hooks.addAction("ea-advanced-accordion-triggered","ea",V)}))}))}});
assets/front-end/js/view/woo-product-gallery.js CHANGED
@@ -93,7 +93,7 @@
93
  /*! no static exports found */
94
  /***/ (function(module, exports) {
95
 
96
- eval("ea.hooks.addAction(\"init\", \"ea\", function () {\n var wooProductGallery = function wooProductGallery($scope, $) {\n // category\n ea.hooks.doAction(\"quickViewAddMarkup\", $scope, $);\n var $post_cat_wrap = $('.eael-cat-tab', $scope);\n $('.eael-cat-tab li:first a', $scope).addClass('active');\n $post_cat_wrap.on('click', 'a', function (e) {\n e.preventDefault();\n var $this = $(this);\n\n if ($this.hasClass('active')) {\n return false;\n } // tab class\n\n\n $('.eael-cat-tab li a', $scope).removeClass('active');\n $this.addClass('active');\n localStorage.setItem('eael-cat-tab', 'true'); // collect props\n\n var $class = $post_cat_wrap.data('class'),\n $widget_id = $post_cat_wrap.data(\"widget\"),\n $page_id = $post_cat_wrap.data(\"page-id\"),\n $nonce = $post_cat_wrap.data(\"nonce\"),\n $args = $post_cat_wrap.data('args'),\n $layout = $post_cat_wrap.data('layout'),\n $widget_class = \".elementor-element-\" + $widget_id,\n $page = 1,\n $template_info = $post_cat_wrap.data('template'),\n $taxonomy = {\n taxonomy: $('.eael-cat-tab li a.active', $scope).data('taxonomy'),\n field: 'term_id',\n terms: $('.eael-cat-tab li a.active', $scope).data('id')\n }; // ajax\n\n $.ajax({\n url: localize.ajaxurl,\n type: 'POST',\n data: {\n action: 'eael_product_gallery',\n \"class\": $class,\n args: $args,\n taxonomy: $taxonomy,\n template_info: $template_info,\n page: $page,\n page_id: $page_id,\n widget_id: $widget_id,\n nonce: $nonce\n },\n beforeSend: function beforeSend() {\n $($widget_class + ' .woocommerce').addClass(\"eael-product-loader\");\n },\n success: function success(response) {\n var $content = $(response);\n\n if ($content.hasClass('no-posts-found') || $content.length == 0) {\n $('.elementor-element-' + $widget_id + ' .eael-product-gallery .woocommerce' + ' .eael-post-appender').empty().append(\"<h2 class=\\\"eael-product-not-found\\\">No Product Found</h2>\");\n $('.eael-load-more-button', $scope).addClass('hide-load-more');\n } else {\n $('.elementor-element-' + $widget_id + ' .eael-product-gallery .woocommerce' + ' .eael-post-appender').empty().append($content);\n $('.eael-load-more-button', $scope).removeClass('hide-load-more');\n\n if ($layout === 'masonry') {\n var $products = $('.eael-product-gallery .products', $scope);\n $products.isotope('destroy'); // init isotope\n\n var $isotope_products = $products.isotope({\n itemSelector: \"li.product\",\n layoutMode: $layout,\n percentPosition: true\n });\n $isotope_products.imagesLoaded().progress(function () {\n $isotope_products.isotope('layout');\n });\n }\n }\n },\n complete: function complete() {\n $($widget_class + ' .woocommerce').removeClass(\"eael-product-loader\");\n },\n error: function error(response) {\n console.log(response);\n }\n });\n });\n ea.hooks.doAction(\"quickViewPopupViewInit\", $scope, $);\n\n if (isEditMode) {\n $(\".eael-product-image-wrap .woocommerce-product-gallery\").css(\"opacity\", \"1\");\n }\n };\n\n elementorFrontend.hooks.addAction(\"frontend/element_ready/eael-woo-product-gallery.default\", wooProductGallery);\n});\n\n//# sourceURL=webpack:///./src/js/view/woo-product-gallery.js?");
97
 
98
  /***/ })
99
 
93
  /*! no static exports found */
94
  /***/ (function(module, exports) {
95
 
96
+ eval("ea.hooks.addAction(\"init\", \"ea\", function () {\n var wooProductGallery = function wooProductGallery($scope, $) {\n // category\n ea.hooks.doAction(\"quickViewAddMarkup\", $scope, $);\n var $post_cat_wrap = $('.eael-cat-tab', $scope);\n $('.eael-cat-tab li:first a', $scope).addClass('active');\n $post_cat_wrap.on('click', 'a', function (e) {\n e.preventDefault();\n var $this = $(this);\n\n if ($this.hasClass('active')) {\n return false;\n } // tab class\n\n\n $('.eael-cat-tab li a', $scope).removeClass('active');\n $this.addClass('active');\n localStorage.setItem('eael-cat-tab', 'true'); // collect props\n\n var $class = $post_cat_wrap.data('class'),\n $widget_id = $post_cat_wrap.data(\"widget\"),\n $page_id = $post_cat_wrap.data(\"page-id\"),\n $nonce = $post_cat_wrap.data(\"nonce\"),\n $args = $post_cat_wrap.data('args'),\n $layout = $post_cat_wrap.data('layout'),\n $widget_class = \".elementor-element-\" + $widget_id,\n $page = 1,\n $template_info = $post_cat_wrap.data('template'),\n $taxonomy = {\n taxonomy: $('.eael-cat-tab li a.active', $scope).data('taxonomy'),\n field: 'term_id',\n terms: $('.eael-cat-tab li a.active', $scope).data('id')\n }; // ajax\n\n $.ajax({\n url: localize.ajaxurl,\n type: 'POST',\n data: {\n action: 'eael_product_gallery',\n \"class\": $class,\n args: $args,\n taxonomy: $taxonomy,\n template_info: $template_info,\n page: $page,\n page_id: $page_id,\n widget_id: $widget_id,\n nonce: $nonce\n },\n beforeSend: function beforeSend() {\n $($widget_class + ' .woocommerce').addClass(\"eael-product-loader\");\n },\n success: function success(response) {\n var $content = $(response);\n\n if ($content.hasClass('no-posts-found') || $content.length == 0) {\n $('.elementor-element-' + $widget_id + ' .eael-product-gallery .woocommerce' + ' .eael-post-appender').empty().append(\"<h2 class=\\\"eael-product-not-found\\\">No Product Found</h2>\");\n $('.eael-load-more-button', $scope).addClass('hide-load-more');\n } else {\n $('.elementor-element-' + $widget_id + ' .eael-product-gallery .woocommerce' + ' .eael-post-appender').empty().append($content);\n $('.eael-load-more-button', $scope).removeClass('hide-load-more');\n\n if ($layout === 'masonry') {\n var $products = $('.eael-product-gallery .products', $scope);\n $products.isotope('destroy'); // init isotope\n\n var $isotope_products = $products.isotope({\n itemSelector: \"li.product\",\n layoutMode: $layout,\n percentPosition: true\n });\n $isotope_products.imagesLoaded().progress(function () {\n $isotope_products.isotope('layout');\n });\n }\n }\n },\n complete: function complete() {\n $($widget_class + ' .woocommerce').removeClass(\"eael-product-loader\");\n },\n error: function error(response) {\n console.log(response);\n }\n });\n });\n ea.hooks.doAction(\"quickViewPopupViewInit\", $scope, $);\n\n if (isEditMode) {\n $(\".eael-product-image-wrap .woocommerce-product-gallery\").css(\"opacity\", \"1\");\n }\n };\n\n if (ea.elementStatusCheck('productGalleryLoad')) {\n return false;\n }\n\n elementorFrontend.hooks.addAction(\"frontend/element_ready/eael-woo-product-gallery.default\", wooProductGallery);\n});\n\n//# sourceURL=webpack:///./src/js/view/woo-product-gallery.js?");
97
 
98
  /***/ })
99
 
assets/front-end/js/view/woo-product-gallery.min.js CHANGED
@@ -1 +1 @@
1
- !function(e){var t={};function o(a){if(t[a])return t[a].exports;var r=t[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,o),r.l=!0,r.exports}o.m=e,o.c=t,o.d=function(e,t,a){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},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 a=Object.create(null);if(o.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(a,r,function(t){return e[t]}.bind(null,r));return a},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=31)}({31:function(e,t){ea.hooks.addAction("init","ea",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/eael-woo-product-gallery.default",(function(e,t){ea.hooks.doAction("quickViewAddMarkup",e,t);var o=t(".eael-cat-tab",e);t(".eael-cat-tab li:first a",e).addClass("active"),o.on("click","a",(function(a){a.preventDefault();var r=t(this);if(r.hasClass("active"))return!1;t(".eael-cat-tab li a",e).removeClass("active"),r.addClass("active"),localStorage.setItem("eael-cat-tab","true");var n=o.data("class"),l=o.data("widget"),c=o.data("page-id"),d=o.data("nonce"),i=o.data("args"),u=o.data("layout"),s=".elementor-element-"+l,p=o.data("template"),f={taxonomy:t(".eael-cat-tab li a.active",e).data("taxonomy"),field:"term_id",terms:t(".eael-cat-tab li a.active",e).data("id")};t.ajax({url:localize.ajaxurl,type:"POST",data:{action:"eael_product_gallery",class:n,args:i,taxonomy:f,template_info:p,page:1,page_id:c,widget_id:l,nonce:d},beforeSend:function(){t(s+" .woocommerce").addClass("eael-product-loader")},success:function(o){var a=t(o);if(a.hasClass("no-posts-found")||0==a.length)t(".elementor-element-"+l+" .eael-product-gallery .woocommerce .eael-post-appender").empty().append('<h2 class="eael-product-not-found">No Product Found</h2>'),t(".eael-load-more-button",e).addClass("hide-load-more");else if(t(".elementor-element-"+l+" .eael-product-gallery .woocommerce .eael-post-appender").empty().append(a),t(".eael-load-more-button",e).removeClass("hide-load-more"),"masonry"===u){var r=t(".eael-product-gallery .products",e);r.isotope("destroy");var n=r.isotope({itemSelector:"li.product",layoutMode:u,percentPosition:!0});n.imagesLoaded().progress((function(){n.isotope("layout")}))}},complete:function(){t(s+" .woocommerce").removeClass("eael-product-loader")},error:function(e){console.log(e)}})})),ea.hooks.doAction("quickViewPopupViewInit",e,t),isEditMode&&t(".eael-product-image-wrap .woocommerce-product-gallery").css("opacity","1")}))}))}});
1
+ !function(e){var t={};function o(a){if(t[a])return t[a].exports;var r=t[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,o),r.l=!0,r.exports}o.m=e,o.c=t,o.d=function(e,t,a){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},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 a=Object.create(null);if(o.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(a,r,function(t){return e[t]}.bind(null,r));return a},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=31)}({31:function(e,t){ea.hooks.addAction("init","ea",(function(){if(ea.elementStatusCheck("productGalleryLoad"))return!1;elementorFrontend.hooks.addAction("frontend/element_ready/eael-woo-product-gallery.default",(function(e,t){ea.hooks.doAction("quickViewAddMarkup",e,t);var o=t(".eael-cat-tab",e);t(".eael-cat-tab li:first a",e).addClass("active"),o.on("click","a",(function(a){a.preventDefault();var r=t(this);if(r.hasClass("active"))return!1;t(".eael-cat-tab li a",e).removeClass("active"),r.addClass("active"),localStorage.setItem("eael-cat-tab","true");var n=o.data("class"),l=o.data("widget"),c=o.data("page-id"),d=o.data("nonce"),i=o.data("args"),u=o.data("layout"),s=".elementor-element-"+l,p=o.data("template"),f={taxonomy:t(".eael-cat-tab li a.active",e).data("taxonomy"),field:"term_id",terms:t(".eael-cat-tab li a.active",e).data("id")};t.ajax({url:localize.ajaxurl,type:"POST",data:{action:"eael_product_gallery",class:n,args:i,taxonomy:f,template_info:p,page:1,page_id:c,widget_id:l,nonce:d},beforeSend:function(){t(s+" .woocommerce").addClass("eael-product-loader")},success:function(o){var a=t(o);if(a.hasClass("no-posts-found")||0==a.length)t(".elementor-element-"+l+" .eael-product-gallery .woocommerce .eael-post-appender").empty().append('<h2 class="eael-product-not-found">No Product Found</h2>'),t(".eael-load-more-button",e).addClass("hide-load-more");else if(t(".elementor-element-"+l+" .eael-product-gallery .woocommerce .eael-post-appender").empty().append(a),t(".eael-load-more-button",e).removeClass("hide-load-more"),"masonry"===u){var r=t(".eael-product-gallery .products",e);r.isotope("destroy");var n=r.isotope({itemSelector:"li.product",layoutMode:u,percentPosition:!0});n.imagesLoaded().progress((function(){n.isotope("layout")}))}},complete:function(){t(s+" .woocommerce").removeClass("eael-product-loader")},error:function(e){console.log(e)}})})),ea.hooks.doAction("quickViewPopupViewInit",e,t),isEditMode&&t(".eael-product-image-wrap .woocommerce-product-gallery").css("opacity","1")}))}))}});
essential_adons_elementor.php CHANGED
@@ -4,13 +4,13 @@
4
  * Description: The Essential plugin you install after Elementor! Packed with 40+ stunning free elements including Advanced Data Table, Event Calendar, Filterable Gallery, WooCommerce, and many more.
5
  * Plugin URI: https://essential-addons.com/elementor/
6
  * Author: WPDeveloper
7
- * Version: 5.1.9
8
  * Author URI: https://wpdeveloper.com/
9
  * Text Domain: essential-addons-for-elementor-lite
10
  * Domain Path: /languages
11
  *
12
- * WC tested up to: 6.7.0
13
- * Elementor tested up to: 3.6.8
14
  * Elementor Pro tested up to: 3.7.3
15
  */
16
 
@@ -27,7 +27,7 @@ define('EAEL_PLUGIN_FILE', __FILE__);
27
  define('EAEL_PLUGIN_BASENAME', plugin_basename(__FILE__));
28
  define('EAEL_PLUGIN_PATH', trailingslashit(plugin_dir_path(__FILE__)));
29
  define('EAEL_PLUGIN_URL', trailingslashit(plugins_url('/', __FILE__)));
30
- define('EAEL_PLUGIN_VERSION', '5.1.9');
31
  define('EAEL_ASSET_PATH', wp_upload_dir()['basedir'] . '/essential-addons-elementor');
32
  define('EAEL_ASSET_URL', wp_upload_dir()['baseurl'] . '/essential-addons-elementor');
33
  /**
4
  * Description: The Essential plugin you install after Elementor! Packed with 40+ stunning free elements including Advanced Data Table, Event Calendar, Filterable Gallery, WooCommerce, and many more.
5
  * Plugin URI: https://essential-addons.com/elementor/
6
  * Author: WPDeveloper
7
+ * Version: 5.2.0
8
  * Author URI: https://wpdeveloper.com/
9
  * Text Domain: essential-addons-for-elementor-lite
10
  * Domain Path: /languages
11
  *
12
+ * WC tested up to: 6.8.0
13
+ * Elementor tested up to: 3.7.0
14
  * Elementor Pro tested up to: 3.7.3
15
  */
16
 
27
  define('EAEL_PLUGIN_BASENAME', plugin_basename(__FILE__));
28
  define('EAEL_PLUGIN_PATH', trailingslashit(plugin_dir_path(__FILE__)));
29
  define('EAEL_PLUGIN_URL', trailingslashit(plugins_url('/', __FILE__)));
30
+ define('EAEL_PLUGIN_VERSION', '5.2.0');
31
  define('EAEL_ASSET_PATH', wp_upload_dir()['basedir'] . '/essential-addons-elementor');
32
  define('EAEL_ASSET_URL', wp_upload_dir()['baseurl'] . '/essential-addons-elementor');
33
  /**
includes/Classes/Asset_Builder.php ADDED
@@ -0,0 +1,477 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace Essential_Addons_Elementor\Classes;
4
+
5
+ if ( ! defined( 'ABSPATH' ) ) {
6
+ exit;
7
+ } // Exit if accessed directly
8
+ use Elementor\Core\Files\CSS\Post as Post_CSS;
9
+ use Elementor\Plugin;
10
+ use Essential_Addons_Elementor\Classes\Elements_Manager;
11
+ use Essential_Addons_Elementor\Traits\Library;
12
+
13
+ class Asset_Builder {
14
+
15
+ /**
16
+ * @theTraitAnnotation Library
17
+ */
18
+ use Library;
19
+
20
+ /**
21
+ * Post ID
22
+ * @var int
23
+ */
24
+ protected $post_id;
25
+
26
+ /**
27
+ * @var string
28
+ */
29
+ protected $custom_js = '';
30
+
31
+ /**
32
+ * @var string
33
+ */
34
+ protected $css_strings = '';
35
+
36
+ /**
37
+ * @var \Essential_Addons_Elementor\Classes\Elements_Manager
38
+ */
39
+ protected $elements_manager;
40
+
41
+ /**
42
+ * @var false|mixed|string|void
43
+ */
44
+ protected $css_print_method = '';
45
+
46
+ /**
47
+ * @var false|mixed|string|void
48
+ */
49
+ protected $js_print_method = '';
50
+
51
+ /**
52
+ * @var array
53
+ */
54
+ protected $registered_elements;
55
+
56
+ /**
57
+ * @var array
58
+ */
59
+ protected $registered_extensions;
60
+
61
+ /**
62
+ * @var object
63
+ */
64
+ protected $localize_objects;
65
+
66
+ /**
67
+ * @var int|int[]|mixed|string[]
68
+ */
69
+ protected $custom_js_enable;
70
+
71
+ /**
72
+ * @var bool
73
+ */
74
+ protected $main_page;
75
+
76
+ /**
77
+ * construct
78
+ *
79
+ * @param array $registered_elements
80
+ * @param array $registered_extensions
81
+ */
82
+ public function __construct( $registered_elements, $registered_extensions ) {
83
+
84
+ $this->registered_elements = $registered_elements;
85
+ $this->registered_extensions = $registered_extensions;
86
+ $this->elements_manager = new Elements_Manager( $this->registered_elements, $this->registered_extensions );
87
+ $this->elements_manager->css_print_method = $this->css_print_method = get_option( 'elementor_css_print_method' );
88
+ $this->elements_manager->js_print_method = $this->js_print_method = get_option( 'eael_js_print_method' );
89
+
90
+ $this->init_hook();
91
+
92
+ $this->custom_js_enable = $this->get_settings( 'custom-js' );
93
+
94
+ }
95
+
96
+ /**
97
+ * init_hook
98
+ * Load Hook
99
+ */
100
+ protected function init_hook() {
101
+ add_action( 'wp_footer', [ $this, 'add_inline_js' ], 100 );
102
+ add_action( 'wp_footer', [ $this, 'add_inline_css' ], 15 );
103
+ add_action( 'after_delete_post', [ $this, 'delete_cache_data' ], 10, 2 );
104
+
105
+ add_action( 'wp_enqueue_scripts', [ $this, 'frontend_asset_load' ] );
106
+ add_action( 'elementor/frontend/before_enqueue_styles', [ $this, 'ea_before_enqueue_styles' ] );
107
+ add_action( 'elementor/theme/register_locations', [ $this, 'load_asset_per_location' ], 20 );
108
+ add_filter( 'elementor/files/file_name', [ $this, 'load_asset_per_file' ] );
109
+ }
110
+
111
+ /**
112
+ * frontend_asset_load
113
+ * Load asset as per condition
114
+ * @return false|void
115
+ */
116
+ public function frontend_asset_load() {
117
+ $handle = 'eael';
118
+ $this->post_id = get_the_ID();
119
+
120
+ $this->elements_manager->get_element_list( $this->post_id );
121
+ $this->load_commnon_asset();
122
+ $this->register_script();
123
+
124
+ if ( ! $this->is_edit() ) {
125
+ wp_enqueue_script( 'eael-general' );
126
+ wp_enqueue_style( 'eael-general' );
127
+ $handle = 'eael-general';
128
+ $this->load_custom_js( $this->post_id );
129
+ } else {
130
+ $elements = $this->get_settings();
131
+
132
+ if ( empty( $elements ) ) {
133
+ return false;
134
+ }
135
+
136
+ if ( $this->js_print_method == 'internal' ) {
137
+ wp_enqueue_script( 'eael-general' );
138
+ }
139
+
140
+ if ( $this->css_print_method == 'internal' ) {
141
+ wp_enqueue_style( 'eael-general' );
142
+ }
143
+
144
+ do_action( 'eael/before_enqueue_styles', $elements );
145
+ do_action( 'eael/before_enqueue_scripts', $elements );
146
+
147
+ $this->enqueue_asset( null, $elements, 'edit' );
148
+ }
149
+
150
+ wp_localize_script( $handle, 'localize', $this->localize_objects );
151
+ }
152
+
153
+ /**
154
+ * ea_before_enqueue_styles
155
+ * @return false|void
156
+ */
157
+ public function ea_before_enqueue_styles() {
158
+
159
+ if ( $this->is_edit() ) {
160
+ return false;
161
+ }
162
+
163
+ $this->post_id = get_the_ID();
164
+ $this->set_main_page( $this->post_id );
165
+ $this->elements_manager->get_element_list( $this->post_id );
166
+ $elements = get_post_meta( $this->post_id, '_eael_widget_elements', true );
167
+
168
+ if ( ! empty( $elements ) ) {
169
+ $this->enqueue_asset( $this->post_id, $elements );
170
+ }
171
+
172
+ if ( ! $this->main_page ) {
173
+ $this->load_custom_js( $this->post_id );
174
+ }
175
+ }
176
+
177
+ /**
178
+ * load_asset_per_location
179
+ *
180
+ * @param $instance
181
+ *
182
+ * @return false|void
183
+ */
184
+ public function load_asset_per_location( $instance ) {
185
+
186
+ if( is_admin() ){
187
+ return false;
188
+ }
189
+
190
+ $locations = $instance->get_locations();
191
+
192
+ foreach ( $locations as $location => $settings ) {
193
+
194
+ $documents = \ElementorPro\Modules\ThemeBuilder\Module::instance()->get_conditions_manager()->get_documents_for_location( $location );
195
+ foreach ( $documents as $document ) {
196
+ $post_id = $document->get_post()->ID;
197
+
198
+ $this->post_id = $post_id;
199
+ $this->set_main_page( $this->post_id );
200
+ $this->elements_manager->get_element_list( $this->post_id );
201
+ $elements = get_post_meta( $this->post_id, '_eael_widget_elements', true );
202
+
203
+ if ( ! empty( $elements ) ) {
204
+ do_action( 'eael/before_enqueue_styles', $elements );
205
+ do_action( 'eael/before_enqueue_scripts', $elements );
206
+ $this->enqueue_asset( $this->post_id, $elements );
207
+ }
208
+
209
+ if ( ! $this->main_page ) {
210
+ $this->load_custom_js( $this->post_id );
211
+ }
212
+ }
213
+ }
214
+ }
215
+
216
+ /**
217
+ * load_asset_per_file
218
+ * @param $file_name
219
+ *
220
+ * @return mixed
221
+ */
222
+ public function load_asset_per_file( $file_name ) {
223
+
224
+ if( empty( $file_name ) ){
225
+ return $file_name;
226
+ }
227
+
228
+ $post_id = preg_replace( '/[^0-9]/', '', $file_name );
229
+
230
+ if ( $post_id < 1 ) {
231
+ return $file_name;
232
+ }
233
+
234
+ $this->post_id = $post_id;
235
+ $type = get_post_meta( $this->post_id, '_elementor_template_type', true );
236
+ $template_list = ['popup'];
237
+
238
+ $this->set_main_page( $this->post_id );
239
+ $this->elements_manager->get_element_list( $this->post_id );
240
+ $elements = get_post_meta( $this->post_id, '_eael_widget_elements', true );
241
+
242
+ if ( ! empty( $elements ) ) {
243
+ do_action( 'eael/before_enqueue_styles', $elements );
244
+ do_action( 'eael/before_enqueue_scripts', $elements );
245
+ $this->enqueue_asset( $this->post_id, $elements );
246
+ }
247
+
248
+ return $file_name;
249
+ }
250
+
251
+ /**
252
+ * add_inline_js
253
+ * Load inline js data
254
+ */
255
+ public function add_inline_js() {
256
+
257
+ if ( $this->is_edit_mode() || $this->is_preview_mode() ) {
258
+ if ( $this->custom_js ) {
259
+ printf( '<script>%1$s</script>', 'var localize =' . wp_json_encode( $this->localize_objects ) );
260
+ printf( '<script id="eael-inline-js">%s</script>', $this->custom_js );
261
+ }
262
+ }
263
+ }
264
+
265
+ /**
266
+ * add_inline_css
267
+ * Load inline css file
268
+ */
269
+ public function add_inline_css() {
270
+ if ( $this->is_edit_mode() || $this->is_preview_mode() ) {
271
+ if ( $this->css_strings ) {
272
+ printf( '<style id="eael-inline-css">%s</style>', $this->css_strings );
273
+ }
274
+ }
275
+ }
276
+
277
+ public function register_script() {
278
+ wp_register_script( 'eael-general', EAEL_PLUGIN_URL . 'assets/front-end/js/view/general.min.js', [ 'jquery' ], 10, true );
279
+ wp_register_style( 'eael-general', EAEL_PLUGIN_URL . "assets/front-end/css/view/general.min.css", [ 'elementor-frontend' ], 10, true );
280
+ }
281
+
282
+ /**
283
+ * load_common_asset
284
+ * Load common asset file
285
+ */
286
+ public function load_commnon_asset() {
287
+ wp_register_style(
288
+ 'font-awesome-5-all',
289
+ ELEMENTOR_ASSETS_URL . 'lib/font-awesome/css/all.min.css',
290
+ false,
291
+ EAEL_PLUGIN_VERSION
292
+ );
293
+
294
+ wp_register_style(
295
+ 'font-awesome-4-shim',
296
+ ELEMENTOR_ASSETS_URL . 'lib/font-awesome/css/v4-shims.min.css',
297
+ false,
298
+ EAEL_PLUGIN_VERSION
299
+ );
300
+
301
+ wp_register_script(
302
+ 'font-awesome-4-shim',
303
+ ELEMENTOR_ASSETS_URL . 'lib/font-awesome/js/v4-shims.min.js',
304
+ false,
305
+ EAEL_PLUGIN_VERSION
306
+ );
307
+
308
+ // register reading progress assets
309
+ wp_register_style(
310
+ 'eael-reading-progress',
311
+ EAEL_PLUGIN_URL . 'assets/front-end/css/view/reading-progress.min.css',
312
+ false,
313
+ EAEL_PLUGIN_VERSION
314
+ );
315
+
316
+ wp_register_script(
317
+ 'eael-reading-progress',
318
+ EAEL_PLUGIN_URL . 'assets/front-end/js/view/reading-progress.min.js',
319
+ [ 'jquery' ],
320
+ EAEL_PLUGIN_VERSION
321
+ );
322
+
323
+ // register Table of contents assets
324
+ wp_register_style(
325
+ 'eael-table-of-content',
326
+ EAEL_PLUGIN_URL . 'assets/front-end/css/view/table-of-content.min.css',
327
+ false,
328
+ EAEL_PLUGIN_VERSION
329
+ );
330
+
331
+ wp_register_script(
332
+ 'eael-table-of-content',
333
+ EAEL_PLUGIN_URL . 'assets/front-end/js/view/table-of-content.min.js',
334
+ [ 'jquery' ],
335
+ EAEL_PLUGIN_VERSION
336
+ );
337
+
338
+ // register scroll to top assets
339
+ wp_register_style(
340
+ 'eael-scroll-to-top',
341
+ EAEL_PLUGIN_URL . 'assets/front-end/css/view/scroll-to-top.min.css',
342
+ false,
343
+ EAEL_PLUGIN_VERSION
344
+ );
345
+
346
+ wp_register_script(
347
+ 'eael-scroll-to-top',
348
+ EAEL_PLUGIN_URL . 'assets/front-end/js/view/scroll-to-top.min.js',
349
+ [ 'jquery' ],
350
+ EAEL_PLUGIN_VERSION
351
+ );
352
+
353
+ // localize object
354
+ $this->localize_objects = apply_filters( 'eael/localize_objects', [
355
+ 'ajaxurl' => admin_url( 'admin-ajax.php' ),
356
+ 'nonce' => wp_create_nonce( 'essential-addons-elementor' ),
357
+ 'i18n' => [
358
+ 'added' => __( 'Added ', 'essential-addons-for-elementor-lite' ),
359
+ 'compare' => __( 'Compare', 'essential-addons-for-elementor-lite' ),
360
+ 'loading' => esc_html__( 'Loading...', 'essential-addons-for-elementor-lite' )
361
+ ],
362
+ 'page_permalink' => get_the_permalink(),
363
+ ] );
364
+ }
365
+
366
+
367
+
368
+
369
+
370
+ /**
371
+ * enqueue_asset
372
+ *
373
+ * @param int $post_id
374
+ * @param array $elements
375
+ * @param string $context
376
+ */
377
+ public function enqueue_asset( $post_id = null, $elements, $context = 'view' ) {
378
+ $dynamic_asset_id = ( $post_id ? '-' . $post_id : '' );
379
+
380
+ if ( $this->css_print_method == 'internal' ) {
381
+ $this->css_strings .= $this->elements_manager->generate_strings( $elements, $context, 'css' );
382
+ } else {
383
+ if ( ! $this->has_asset( $post_id, 'css' ) ) {
384
+ $this->elements_manager->generate_script( $post_id, $elements, $context, 'css' );
385
+ }
386
+
387
+ wp_enqueue_style(
388
+ 'eael' . $dynamic_asset_id,
389
+ $this->safe_url( EAEL_ASSET_URL . '/' . 'eael' . $dynamic_asset_id . '.css' ),
390
+ [ 'eael-general' ],
391
+ get_post_modified_time()
392
+ );
393
+ }
394
+
395
+ if ( $this->js_print_method == 'internal' ) {
396
+ $this->custom_js .= $this->elements_manager->generate_strings( $elements, $context, 'js' );
397
+ } else {
398
+ if ( ! $this->has_asset( $post_id, 'js' ) ) {
399
+ $this->elements_manager->generate_script( $post_id, $elements, $context, 'js' );
400
+ }
401
+
402
+ wp_enqueue_script(
403
+ 'eael' . $dynamic_asset_id,
404
+ $this->safe_url( EAEL_ASSET_URL . '/' . 'eael' . $dynamic_asset_id . '.js' ),
405
+ [ 'eael-general' ],
406
+ get_post_modified_time(),
407
+ true
408
+ );
409
+ }
410
+ }
411
+
412
+ /**
413
+ * delete_cache_data
414
+ *
415
+ * @param int $post_id
416
+ * @param array $post
417
+ */
418
+ public function delete_cache_data( $post_id, $post ) {
419
+ $this->elements_manager->remove_files( $post_id );
420
+
421
+ delete_post_meta( $post_id, '_eael_custom_js' );
422
+ delete_post_meta( $post_id, '_eael_widget_elements' );
423
+
424
+ }
425
+
426
+ /**
427
+ * has_asset
428
+ *
429
+ * @param int $post_id
430
+ * @param string $file
431
+ *
432
+ * @return bool
433
+ */
434
+ public function has_asset( $post_id, $file = 'css' ) {
435
+ if ( file_exists( $this->safe_path( EAEL_ASSET_PATH . '/' . 'eael' . ( $post_id ? '-' . $post_id : '' ) . '.' . $file ) ) ) {
436
+ return true;
437
+ }
438
+
439
+ return false;
440
+ }
441
+
442
+ public function load_custom_js( $post_id ) {
443
+
444
+ if ( ! $this->custom_js_enable ) {
445
+ return false;
446
+ }
447
+
448
+ $custom_js = get_post_meta( $post_id, '_eael_custom_js', true );
449
+ if ( $custom_js ) {
450
+ // add semicolon if someone misses adding this in custom js code .
451
+ $this->custom_js .= $custom_js.';';
452
+ }
453
+ }
454
+
455
+ /**
456
+ * is_edit
457
+ * check is edit page
458
+ * @return bool
459
+ */
460
+ public function is_edit() {
461
+ return (
462
+ Plugin::instance()->editor->is_edit_mode() ||
463
+ Plugin::instance()->preview->is_preview_mode() ||
464
+ is_preview()
465
+ );
466
+ }
467
+
468
+ /**
469
+ * set_main_page
470
+ *
471
+ * @param $post_id
472
+ */
473
+ protected function set_main_page( $post_id ) {
474
+ $this->main_page = get_post_meta( $post_id, '_elementor_template_type', true ) == 'wp-page';
475
+ }
476
+
477
+ }
includes/Classes/Bootstrap.php CHANGED
@@ -10,22 +10,19 @@ use Essential_Addons_Elementor\Traits\Admin;
10
  use Essential_Addons_Elementor\Traits\Core;
11
  use Essential_Addons_Elementor\Traits\Elements;
12
  use Essential_Addons_Elementor\Traits\Enqueue;
13
- use Essential_Addons_Elementor\Traits\Generator;
14
  use Essential_Addons_Elementor\Traits\Helper;
15
  use Essential_Addons_Elementor\Traits\Library;
16
  use Essential_Addons_Elementor\Traits\Login_Registration;
17
  use Essential_Addons_Elementor\Traits\Woo_Product_Comparable;
18
  use Essential_Addons_Elementor\Traits\Controls;
19
  use Essential_Addons_Elementor\Traits\Facebook_Feed;
 
20
  use Essential_Addons_Elementor\Traits\Ajax_Handler;
21
-
22
-
23
  class Bootstrap
24
  {
25
  use Library;
26
  use Core;
27
  use Helper;
28
- use Generator;
29
  use Enqueue;
30
  use Admin;
31
  use Elements;
@@ -126,6 +123,11 @@ class Bootstrap
126
  // register hooks
127
  $this->register_hooks();
128
 
 
 
 
 
 
129
 
130
  }
131
 
@@ -142,15 +144,9 @@ class Bootstrap
142
 
143
  // Enqueue
144
  add_action('eael/before_enqueue_styles', [$this, 'before_enqueue_styles']);
145
- add_action('wp_enqueue_scripts', [$this, 'enqueue_scripts']);
146
  add_action('elementor/editor/before_enqueue_scripts', [$this, 'editor_enqueue_scripts']);
147
- add_action('wp_head', [$this, 'enqueue_inline_styles']);
148
- add_action('wp_footer', [$this, 'enqueue_inline_scripts']);
149
 
150
  // Generator
151
- add_action('wp', [$this, 'init_request_data']);
152
- add_filter('elementor/frontend/builder_content_data', [$this, 'collect_loaded_templates'], 10, 2);
153
- add_action('wp_print_footer_scripts', [$this, 'update_request_data']);
154
 
155
  $this->init_ajax_hooks();
156
 
@@ -272,5 +268,7 @@ class Bootstrap
272
 
273
  // beehive theme compatibility
274
  add_filter( 'beehive_scripts', array( $this, 'beehive_theme_swiper_slider_compatibility' ), 999 );
 
 
275
  }
276
  }
10
  use Essential_Addons_Elementor\Traits\Core;
11
  use Essential_Addons_Elementor\Traits\Elements;
12
  use Essential_Addons_Elementor\Traits\Enqueue;
 
13
  use Essential_Addons_Elementor\Traits\Helper;
14
  use Essential_Addons_Elementor\Traits\Library;
15
  use Essential_Addons_Elementor\Traits\Login_Registration;
16
  use Essential_Addons_Elementor\Traits\Woo_Product_Comparable;
17
  use Essential_Addons_Elementor\Traits\Controls;
18
  use Essential_Addons_Elementor\Traits\Facebook_Feed;
19
+ use Essential_Addons_Elementor\Classes\Asset_Builder;
20
  use Essential_Addons_Elementor\Traits\Ajax_Handler;
 
 
21
  class Bootstrap
22
  {
23
  use Library;
24
  use Core;
25
  use Helper;
 
26
  use Enqueue;
27
  use Admin;
28
  use Elements;
123
  // register hooks
124
  $this->register_hooks();
125
 
126
+ if ( defined( 'ELEMENTOR_VERSION' ) ) {
127
+ new Asset_Builder( $this->registered_elements, $this->registered_extensions );
128
+ }
129
+
130
+
131
 
132
  }
133
 
144
 
145
  // Enqueue
146
  add_action('eael/before_enqueue_styles', [$this, 'before_enqueue_styles']);
 
147
  add_action('elementor/editor/before_enqueue_scripts', [$this, 'editor_enqueue_scripts']);
 
 
148
 
149
  // Generator
 
 
 
150
 
151
  $this->init_ajax_hooks();
152
 
268
 
269
  // beehive theme compatibility
270
  add_filter( 'beehive_scripts', array( $this, 'beehive_theme_swiper_slider_compatibility' ), 999 );
271
+
272
+
273
  }
274
  }
includes/Classes/Elements_Manager.php ADDED
@@ -0,0 +1,367 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace Essential_Addons_Elementor\Classes;
4
+
5
+ if ( ! defined( 'ABSPATH' ) ) {
6
+ exit;
7
+ } // Exit if accessed directly
8
+
9
+ use Elementor\Plugin;
10
+ use Essential_Addons_Elementor\Traits\Library;
11
+
12
+ class Elements_Manager {
13
+ use Library;
14
+
15
+ /**
16
+ * custom key name which are used for store widget list in option table
17
+ */
18
+ const ELEMENT_KEY = '_eael_widget_elements';
19
+
20
+ /**
21
+ * This is hold custom js data in option table
22
+ */
23
+ const JS_KEY = '_eael_custom_js';
24
+
25
+ /**
26
+ * Post id
27
+ * @var string
28
+ */
29
+ protected $post_id;
30
+
31
+ /**
32
+ * registered element list from essential addons settings
33
+ * @var array
34
+ */
35
+ protected $registered_elements;
36
+
37
+ /**
38
+ * registered extensions list from essential addons settings
39
+ * @var array
40
+ */
41
+ protected $registered_extensions;
42
+
43
+ /**
44
+ * __construct
45
+ * @param array $registered_elements
46
+ * @param array $registered_extensions
47
+ */
48
+ public function __construct( $registered_elements, $registered_extensions ) {
49
+ $this->registered_elements = $registered_elements;
50
+ $this->registered_extensions = $registered_extensions;
51
+ add_action( 'elementor/editor/after_save', array( $this, 'eael_elements_cache' ), 10, 2 );
52
+ }
53
+
54
+ /**
55
+ * eael_elements_cache
56
+ * Save widget name list in option table for improve performance.
57
+ * @param int $post_id
58
+ * @param array $data
59
+ */
60
+ public function eael_elements_cache( $post_id, $data ) {
61
+ $widget_list = $this->get_widget_list( $data );
62
+ $page_setting = get_post_meta( $post_id, '_elementor_page_settings', true );
63
+ $custom_js = isset( $page_setting['eael_custom_js'] ) ? trim( $page_setting['eael_custom_js'] ) : '';
64
+ $this->save_widgets_list( $post_id, $widget_list, $custom_js );
65
+ }
66
+
67
+ /**
68
+ * get_widget_list
69
+ * get widget names
70
+ * @param array $data
71
+ *
72
+ * @return array
73
+ */
74
+ public function get_widget_list( $data ) {
75
+ $widget_list = [];
76
+ $replace = $this->replace_widget_name();
77
+ Plugin::$instance->db->iterate_data( $data, function ( $element ) use ( &$widget_list, $replace ) {
78
+
79
+ if ( empty( $element['widgetType'] ) ) {
80
+ $type = $element['elType'];
81
+ } else {
82
+ $type = $element['widgetType'];
83
+ }
84
+
85
+ if ( ! empty( $element['widgetType'] ) && $element['widgetType'] === 'global' ) {
86
+ $document = Plugin::$instance->documents->get( $element['templateID'] );
87
+ $type = current( $this->get_widget_list( $document->get_elements_data() ) );
88
+
89
+ if ( ! empty( $type ) ) {
90
+ $type = 'eael-' . $type;
91
+ }
92
+ }
93
+
94
+ if ( ! empty( $type ) && ! is_array( $type ) ) {
95
+
96
+ if ( isset( $replace[ $type ] ) ) {
97
+ $type = $replace[ $type ];
98
+ }
99
+
100
+ if ( strpos( $type, 'eael-' ) !== false ) {
101
+
102
+ $type = str_replace( 'eael-', '', $type );
103
+ if ( ! isset( $widget_list[ $type ] ) ) {
104
+ $widget_list[ $type ] = $type;
105
+ }
106
+ }
107
+
108
+ $widget_list += $this->get_extension_list( $element );
109
+ }
110
+
111
+ } );
112
+
113
+ return $widget_list;
114
+ }
115
+
116
+ /**
117
+ * get_element_list
118
+ * get cached widget list
119
+ * @param $post_id
120
+ *
121
+ * @return bool
122
+ */
123
+ public function get_element_list( $post_id ) {
124
+
125
+ if ( Plugin::instance()->editor->is_edit_mode() ) {
126
+ return false;
127
+ }
128
+
129
+ if ( $this->has_exist( $post_id ) ) {
130
+ return false;
131
+ }
132
+
133
+ $document = Plugin::$instance->documents->get( $post_id );
134
+ $data = $document ? $document->get_elements_data() : [];
135
+ $data = $this->get_widget_list( $data );
136
+ $custom_js = $document ? $document->get_settings( 'eael_custom_js' ) : '';
137
+ $this->save_widgets_list( $post_id, $data, $custom_js );
138
+
139
+ return true;
140
+ }
141
+
142
+ /**
143
+ * get_extension_list
144
+ * get extension name those name had been changed for some reason.
145
+ * @param array $element
146
+ *
147
+ * @return array
148
+ */
149
+ public function get_extension_list( $element ) {
150
+ $list = [];
151
+ if ( isset( $element['elType'] ) && $element['elType'] == 'section' ) {
152
+ if ( ! empty( $element['settings']['eael_particle_switch'] ) ) {
153
+ $list['section-particles'] = 'section-particles';
154
+ }
155
+ if ( ! empty( $element['settings']['eael_parallax_switcher'] ) ) {
156
+ $list['section-parallax'] = 'section-parallax';
157
+ }
158
+ } else {
159
+ if ( ! empty( $element['settings']['eael_tooltip_section_enable'] ) ) {
160
+ $list['tooltip-section'] = 'tooltip-section';
161
+ }
162
+ if ( ! empty( $element['settings']['eael_ext_content_protection'] ) ) {
163
+ $list['content-protection'] = 'content-protection';
164
+ }
165
+ }
166
+
167
+ return $list;
168
+ }
169
+
170
+ /*
171
+ * replace_widget_name
172
+ * Added backward compatibility
173
+ */
174
+ public function replace_widget_name() {
175
+ return [
176
+ 'eicon-woocommerce' => 'eael-product-grid',
177
+ 'eael-countdown' => 'eael-count-down',
178
+ 'eael-creative-button' => 'eael-creative-btn',
179
+ 'eael-team-member' => 'eael-team-members',
180
+ 'eael-testimonial' => 'eael-testimonials',
181
+ 'eael-weform' => 'eael-weforms',
182
+ 'eael-cta-box' => 'eael-call-to-action',
183
+ 'eael-dual-color-header' => 'eael-dual-header',
184
+ 'eael-pricing-table' => 'eael-price-table',
185
+ 'eael-filterable-gallery' => 'eael-filter-gallery',
186
+ 'eael-one-page-nav' => 'eael-one-page-navigation',
187
+ 'eael-interactive-card' => 'eael-interactive-cards',
188
+ 'eael-image-comparison' => 'eael-img-comparison',
189
+ 'eael-dynamic-filterable-gallery' => 'eael-dynamic-filter-gallery',
190
+ 'eael-google-map' => 'eael-adv-google-map',
191
+ 'eael-instafeed' => 'eael-instagram-gallery',
192
+ ];
193
+ }
194
+
195
+ /**
196
+ * save_widgets_list
197
+ * save widget list and custom js data in option table
198
+ * @param int $post_id
199
+ * @param array $list
200
+ * @param string $custom_js
201
+ *
202
+ * @return bool|mixed
203
+ */
204
+ public function save_widgets_list( $post_id, $list, $custom_js = '' ) {
205
+
206
+ if ( \defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) {
207
+ return $post_id;
208
+ }
209
+
210
+ if ( get_post_status( $post_id ) !== 'publish' || ! Plugin::$instance->documents->get( $post_id )->is_built_with_elementor() ) {
211
+ return false;
212
+ }
213
+
214
+ if ( in_array( get_post_meta( $post_id, '_elementor_template_type', true ), $this->excluded_template_type() ) ) {
215
+ return false;
216
+ }
217
+
218
+ update_post_meta( $post_id, '_eael_custom_js', $custom_js );
219
+
220
+ if ( md5( implode( '', (array) $list ) ) == md5( implode( '', (array) get_post_meta( $post_id, self::ELEMENT_KEY, true ) ) ) ) {
221
+ return false;
222
+ }
223
+
224
+ try {
225
+ update_post_meta( $post_id, self::ELEMENT_KEY, $list );
226
+ $this->remove_files( $post_id );
227
+
228
+ if ( $this->has_exist( $post_id ) ) {
229
+ $this->update_asset( $post_id, $list );
230
+ }
231
+
232
+ return true;
233
+ } catch ( \Exception $e ) {
234
+ return false;
235
+ }
236
+ }
237
+
238
+ /**
239
+ * generate_script
240
+ * create js/css file as per widget loaded in page
241
+ * @param int $post_id
242
+ * @param array $elements
243
+ * @param string $context
244
+ * @param string $ext
245
+ */
246
+ public function generate_script( $post_id, $elements, $context, $ext ) {
247
+ // if folder not exists, create new folder
248
+ if ( ! file_exists( EAEL_ASSET_PATH ) ) {
249
+ wp_mkdir_p( EAEL_ASSET_PATH );
250
+ }
251
+
252
+ // naming asset file
253
+ $file_name = 'eael' . ( $post_id ? '-' . $post_id : '' ) . '.' . $ext;
254
+
255
+ // output asset string
256
+ $output = $this->generate_strings( $elements, $context, $ext );
257
+
258
+ // write to file
259
+ $file_path = $this->safe_path( EAEL_ASSET_PATH . DIRECTORY_SEPARATOR . $file_name );
260
+ file_put_contents( $file_path, $output );
261
+ }
262
+
263
+ /**
264
+ * generate_strings
265
+ * Load assets for inline loading
266
+ * @param string $elements
267
+ * @param string $context
268
+ * @param string $ext
269
+ *
270
+ * @return string
271
+ */
272
+ public function generate_strings( $elements, $context, $ext ) {
273
+ $output = '';
274
+
275
+ $paths = $this->generate_dependency( $elements, $context, $ext );
276
+
277
+ if ( ! empty( $paths ) ) {
278
+ foreach ( $paths as $path ) {
279
+ $output .= file_get_contents( $this->safe_path( $path ) );
280
+ }
281
+ }
282
+
283
+ return $output;
284
+ }
285
+
286
+ /**
287
+ * generate_dependency
288
+ * Load core library for widget list which are defined on config.php file
289
+ * @param array $elements
290
+ * @param string $context
291
+ * @param string $type
292
+ *
293
+ * @return array
294
+ */
295
+ public function generate_dependency( $elements, $context, $type ) {
296
+ $lib = [ 'view' => [], 'edit' => [] ];
297
+ $self = [ 'general' => [], 'view' => [], 'edit' => [] ];
298
+
299
+ if ( $type == 'js' ) {
300
+ $self['general'][] = EAEL_PLUGIN_PATH . 'assets/front-end/js/view/general.min.js';
301
+ $self['edit'][] = EAEL_PLUGIN_PATH . 'assets/front-end/js/edit/promotion.min.js';
302
+ } else if ( $type == 'css' && ! $this->is_edit_mode() ) {
303
+ $self['view'][] = EAEL_PLUGIN_PATH . "assets/front-end/css/view/general.min.css";
304
+ }
305
+ foreach ( $elements as $element ) {
306
+
307
+ if ( isset( $this->registered_elements[ $element ] ) ) {
308
+ if ( ! empty( $this->registered_elements[ $element ]['dependency'][ $type ] ) ) {
309
+ foreach ( $this->registered_elements[ $element ]['dependency'][ $type ] as $file ) {
310
+ ${$file['type']}[ $file['context'] ][] = $file['file'];
311
+ }
312
+ }
313
+ } elseif ( isset( $this->registered_extensions[ $element ] ) ) {
314
+ if ( ! empty( $this->registered_extensions[ $element ]['dependency'][ $type ] ) ) {
315
+ foreach ( $this->registered_extensions[ $element ]['dependency'][ $type ] as $file ) {
316
+ ${$file['type']}[ $file['context'] ][] = $file['file'];
317
+ }
318
+ }
319
+ }
320
+ }
321
+
322
+ if ( $context == 'view' ) {
323
+ return array_unique( array_merge( $lib['view'], $self['view'] ) );
324
+ }
325
+
326
+ return array_unique( array_merge( $lib['view'], $lib['edit'], $self['edit'], $self['view'] ) );
327
+ }
328
+
329
+ /**
330
+ * has_exist
331
+ * @param $post_id
332
+ * check widget list already saved in option table weather load or not
333
+ * @return bool
334
+ */
335
+ public function has_exist( $post_id ) {
336
+ $status = get_post_meta( $post_id, self::ELEMENT_KEY, true );
337
+
338
+ return ! empty( $status );
339
+ }
340
+
341
+ /**
342
+ * update_asset
343
+ * @param int $post_id
344
+ * @param $elements
345
+ */
346
+ public function update_asset( $post_id, $elements ) {
347
+
348
+ if ( $this->css_print_method != 'internal' ) {
349
+ $this->generate_script( $post_id, $elements, 'view', 'css' );
350
+ }
351
+
352
+ if ( $this->js_print_method != 'internal' ) {
353
+ $this->generate_script( $post_id, $elements, 'view', 'js' );
354
+ }
355
+
356
+ }
357
+
358
+ /**
359
+ * excluded_template_type
360
+ * @return string[]
361
+ */
362
+ public function excluded_template_type() {
363
+ return [
364
+ 'kit',
365
+ ];
366
+ }
367
+ }
includes/Traits/Ajax_Handler.php CHANGED
@@ -915,8 +915,14 @@ trait Ajax_Handler {
915
  } else {
916
  // clear cache files
917
  $this->empty_dir( EAEL_ASSET_PATH );
 
 
 
918
  }
919
 
 
 
 
920
  wp_send_json( true );
921
  }
922
 
915
  } else {
916
  // clear cache files
917
  $this->empty_dir( EAEL_ASSET_PATH );
918
+ if ( defined( 'ELEMENTOR_VERSION' ) ) {
919
+ \Elementor\Plugin::$instance->files_manager->clear_cache();
920
+ }
921
  }
922
 
923
+ // Purge All LS Cache
924
+ do_action( 'litespeed_purge_all', '3rd Essential Addons for Elementor' );
925
+
926
  wp_send_json( true );
927
  }
928
 
includes/Traits/Core.php CHANGED
@@ -304,6 +304,10 @@ trait Core
304
  return;
305
  }
306
 
 
 
 
 
307
  $document = Plugin::$instance->documents->get($post_id, false);
308
  $global_settings = get_option('eael_global_settings');
309
 
304
  return;
305
  }
306
 
307
+ if ( !defined( 'ELEMENTOR_VERSION' ) ) {
308
+ return false;
309
+ }
310
+
311
  $document = Plugin::$instance->documents->get($post_id, false);
312
  $global_settings = get_option('eael_global_settings');
313
 
includes/Traits/Enqueue.php CHANGED
@@ -60,251 +60,6 @@ trait Enqueue
60
  }
61
  }
62
 
63
- public function enqueue_scripts()
64
- {
65
- if (!apply_filters('eael/is_plugin_active', 'elementor/elementor.php')) {
66
- return;
67
- }
68
-
69
- if ($this->is_running_background()) {
70
- return;
71
- }
72
-
73
- if ($this->uid === null) {
74
- return;
75
- }
76
- //fix asset loading issue if no custom elementor css is not used.
77
- $this->loaded_templates[] = get_the_ID();
78
- // register fontawesome as fallback
79
- wp_register_style(
80
- 'font-awesome-5-all',
81
- ELEMENTOR_ASSETS_URL . 'lib/font-awesome/css/all.min.css',
82
- false,
83
- EAEL_PLUGIN_VERSION
84
- );
85
-
86
- wp_register_style(
87
- 'font-awesome-4-shim',
88
- ELEMENTOR_ASSETS_URL . 'lib/font-awesome/css/v4-shims.min.css',
89
- false,
90
- EAEL_PLUGIN_VERSION
91
- );
92
-
93
- wp_register_script(
94
- 'font-awesome-4-shim',
95
- ELEMENTOR_ASSETS_URL . 'lib/font-awesome/js/v4-shims.min.js',
96
- false,
97
- EAEL_PLUGIN_VERSION
98
- );
99
-
100
- // register reading progress assets
101
- wp_register_style(
102
- 'eael-reading-progress',
103
- EAEL_PLUGIN_URL . 'assets/front-end/css/view/reading-progress.min.css',
104
- false,
105
- EAEL_PLUGIN_VERSION
106
- );
107
-
108
- wp_register_script(
109
- 'eael-reading-progress',
110
- EAEL_PLUGIN_URL . 'assets/front-end/js/view/reading-progress.min.js',
111
- ['jquery'],
112
- EAEL_PLUGIN_VERSION
113
- );
114
-
115
- // register Table of contents assets
116
- wp_register_style(
117
- 'eael-table-of-content',
118
- EAEL_PLUGIN_URL . 'assets/front-end/css/view/table-of-content.min.css',
119
- false,
120
- EAEL_PLUGIN_VERSION
121
- );
122
-
123
- wp_register_script(
124
- 'eael-table-of-content',
125
- EAEL_PLUGIN_URL . 'assets/front-end/js/view/table-of-content.min.js',
126
- ['jquery'],
127
- EAEL_PLUGIN_VERSION
128
- );
129
-
130
- // register scroll to top assets
131
- wp_register_style(
132
- 'eael-scroll-to-top',
133
- EAEL_PLUGIN_URL . 'assets/front-end/css/view/scroll-to-top.min.css',
134
- false,
135
- EAEL_PLUGIN_VERSION
136
- );
137
-
138
- wp_register_script(
139
- 'eael-scroll-to-top',
140
- EAEL_PLUGIN_URL . 'assets/front-end/js/view/scroll-to-top.min.js',
141
- ['jquery'],
142
- EAEL_PLUGIN_VERSION
143
- );
144
-
145
- // localize object
146
- $this->localize_objects = apply_filters( 'eael/localize_objects', [
147
- 'ajaxurl' => admin_url( 'admin-ajax.php' ),
148
- 'nonce' => wp_create_nonce( 'essential-addons-elementor' ),
149
- 'i18n' => [
150
- 'added' => __( 'Added ', 'essential-addons-for-elementor-lite' ),
151
- 'compare' => __( 'Compare', 'essential-addons-for-elementor-lite' ),
152
- 'loading' => esc_html__( 'Loading...', 'essential-addons-for-elementor-lite' )
153
- ],
154
- 'page_permalink' => get_the_permalink(),
155
- 'cart_redirectition' => get_option( 'woocommerce_cart_redirect_after_add' ),
156
- 'cart_page_url' => function_exists( 'wc_get_cart_url' ) ? wc_get_cart_url() : '',
157
- ] );
158
-
159
- // edit mode
160
- if ($this->is_edit_mode()) {
161
- $elements = $this->get_settings();
162
-
163
- // if no widget in page, return
164
- if (empty($elements)) {
165
- return;
166
- }
167
-
168
- // run hook before enqueue styles
169
- do_action('eael/before_enqueue_styles', $elements);
170
-
171
- // css
172
- if (get_option('elementor_css_print_method') == 'internal') {
173
- $this->css_strings = $this->generate_strings($elements, 'edit', 'css');
174
- } else {
175
- // generate editor style
176
- if (!$this->has_assets_files($this->uid, 'css')) {
177
- $this->generate_script($this->uid, $elements, 'edit', 'css');
178
- }
179
-
180
- // enqueue
181
- wp_enqueue_style(
182
- $this->uid,
183
- $this->safe_url(EAEL_ASSET_URL . '/' . $this->uid . '.min.css'),
184
- false,
185
- time()
186
- );
187
- }
188
-
189
- // run hook before enqueue scripts
190
- do_action('eael/before_enqueue_scripts', $elements);
191
-
192
- // js
193
- if (get_option('eael_js_print_method') == 'internal') {
194
- $this->js_strings = $this->generate_strings($elements, 'edit', 'js');
195
- } else {
196
- // generate editor script
197
- if (!$this->has_assets_files($this->uid, 'js')) {
198
- $this->generate_script($this->uid, $elements, 'edit', 'js');
199
- }
200
-
201
- // enqueue
202
- wp_enqueue_script(
203
- $this->uid,
204
- $this->safe_url(EAEL_ASSET_URL . '/' . $this->uid . '.min.js'),
205
- ['jquery'],
206
- time(),
207
- true
208
- );
209
-
210
- // localize
211
- wp_localize_script($this->uid, 'localize', $this->localize_objects);
212
- }
213
- }
214
-
215
- // view mode
216
- if ($this->is_preview_mode()) {
217
-
218
- if ($this->request_requires_update) {
219
- $elements = $this->get_settings();
220
- $tmp_uid = $this->get_temp_uid();
221
- } else {
222
- $elements = get_option($this->uid . '_eael_elements');
223
- }
224
-
225
- // if no widget in page, return
226
- if (empty($elements)) {
227
- return;
228
- }
229
- // run hook before enqueue styles
230
- do_action('eael/before_enqueue_styles', $elements);
231
-
232
- // css
233
- if (get_option('elementor_css_print_method') == 'internal') {
234
- $this->css_strings = $this->generate_strings($elements, 'view', 'css');
235
- } else {
236
- if ($this->request_requires_update) {
237
- // generate script if not exists
238
- if (!$this->has_assets_files($tmp_uid, 'css')) {
239
- $this->generate_script($tmp_uid, $elements, 'view', 'css');
240
- }
241
-
242
- // enqueue
243
- wp_enqueue_style(
244
- $this->uid,
245
- $this->safe_url(EAEL_ASSET_URL . '/' . $tmp_uid . '.min.css'),
246
- false,
247
- time()
248
- );
249
- } else {
250
- // generate script if not exists
251
- if (!$this->has_assets_files($this->uid, 'css')) {
252
- $this->generate_script($this->uid, $elements, 'view', 'css');
253
- }
254
-
255
- // enqueue
256
- wp_enqueue_style(
257
- $this->uid,
258
- $this->safe_url(EAEL_ASSET_URL . '/' . $this->uid . '.min.css'),
259
- false,
260
- time()
261
- );
262
- }
263
- }
264
-
265
- // run hook before enqueue scripts
266
- do_action('eael/before_enqueue_scripts', $elements);
267
-
268
- // js
269
- if (get_option('eael_js_print_method') == 'internal') {
270
- $this->js_strings = $this->generate_strings($elements, 'view', 'js');
271
- } else {
272
- if ($this->request_requires_update) {
273
- // generate script if not exists
274
- if (!$this->has_assets_files($tmp_uid, 'js')) {
275
- $this->generate_script($tmp_uid, $elements, 'view', 'js');
276
- }
277
-
278
- // enqueue
279
- wp_enqueue_script(
280
- $this->uid,
281
- $this->safe_url(EAEL_ASSET_URL . '/' . $tmp_uid . '.min.js'),
282
- ['jquery'],
283
- time(),
284
- true
285
- );
286
- } else {
287
- // generate script if not exists
288
- if (!$this->has_assets_files($this->uid, 'js')) {
289
- $this->generate_script($this->uid, $elements, 'view', 'js');
290
- }
291
-
292
- // enqueue
293
- wp_enqueue_script(
294
- $this->uid,
295
- $this->safe_url(EAEL_ASSET_URL . '/' . $this->uid . '.min.js'),
296
- ['jquery'],
297
- time(),
298
- true
299
- );
300
- }
301
-
302
- // localize script
303
- wp_localize_script($this->uid, 'localize', $this->localize_objects);
304
- }
305
- }
306
- }
307
-
308
  // editor styles
309
  public function editor_enqueue_scripts()
310
  {
@@ -324,28 +79,6 @@ trait Enqueue
324
  );
325
  }
326
 
327
- // inline enqueue styles
328
- public function enqueue_inline_styles()
329
- {
330
- if ($this->is_edit_mode() || $this->is_preview_mode()) {
331
- if ($this->css_strings) {
332
- printf( '<style id="%1$s">%2$s</style>', esc_attr( $this->uid ), $this->css_strings );
333
- }
334
- }
335
- }
336
-
337
- // inline enqueue scripts
338
- public function enqueue_inline_scripts()
339
- {
340
- // view/edit mode mode
341
- if ($this->is_edit_mode() || $this->is_preview_mode()) {
342
- if ($this->js_strings) {
343
- printf('<script>%1$s</script>','var localize ='.wp_json_encode($this->localize_objects));
344
- printf( '<script id="%1$s">%2$s</script>', esc_attr( $this->uid ), $this->js_strings );
345
- }
346
- }
347
- }
348
-
349
  // templately promo enqueue scripts
350
  public function templately_promo_enqueue_scripts(){
351
  // enqueue
60
  }
61
  }
62
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
63
  // editor styles
64
  public function editor_enqueue_scripts()
65
  {
79
  );
80
  }
81
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
82
  // templately promo enqueue scripts
83
  public function templately_promo_enqueue_scripts(){
84
  // enqueue
includes/Traits/Generator.php DELETED
@@ -1,392 +0,0 @@
1
- <?php
2
-
3
- namespace Essential_Addons_Elementor\Traits;
4
-
5
- if ( !defined( 'ABSPATH' ) ) {
6
- exit;
7
- } // Exit if accessed directly
8
-
9
- use \Elementor\Plugin;
10
-
11
- trait Generator {
12
- public function init_request_data() {
13
- if ( !apply_filters( 'eael/is_plugin_active', 'elementor/elementor.php' ) ) {
14
- return;
15
- }
16
-
17
- if ( is_admin() ) {
18
- return;
19
- }
20
-
21
- if ( $this->is_running_background() ) {
22
- return;
23
- }
24
-
25
- $uid = null;
26
-
27
- if ( $this->is_preview_mode() ) {
28
- if ( is_front_page() ) {
29
- $uid = 'front-page';
30
- } else if ( is_home() ) {
31
- $uid = 'home';
32
- } else if ( is_post_type_archive() ) {
33
- $post_type = get_query_var( 'post_type' );
34
-
35
- if ( is_array( $post_type ) ) {
36
- $post_type = reset( $post_type );
37
- }
38
-
39
- $uid = 'post-type-archive-' . $post_type;
40
- } else if ( is_category() ) {
41
- $uid = 'category-' . get_queried_object_id();
42
- } else if ( is_tag() ) {
43
- $uid = 'tag-' . get_queried_object_id();
44
- } else if ( is_tax() ) {
45
- $uid = 'tax-' . get_queried_object_id();
46
- } else if ( is_author() ) {
47
- $uid = 'author-' . get_queried_object_id();
48
- } elseif ( is_year() ) {
49
- $uid = 'year-' . get_the_date( 'y' );
50
- } elseif ( is_month() ) {
51
- $uid = 'month-' . get_the_date( 'm-y' );
52
- } elseif ( is_day() ) {
53
- $uid = 'day-' . get_the_date( 'j-m-y' );
54
- } else if ( is_archive() ) {
55
- $uid = 'archive-' . get_queried_object_id();
56
- } else if ( is_search() ) {
57
- $uid = 'search';
58
- } else if ( is_single() || is_page() || is_singular() ) {
59
- $uid = 'singular-' . get_queried_object_id();
60
- } else if ( is_404() ) {
61
- $uid = 'error-404';
62
- }
63
- } elseif ( $this->is_edit_mode() ) {
64
- $uid = 'eael-edit';
65
- }
66
-
67
- // set request uid
68
- if ( $uid && $this->uid == null ) {
69
- $this->uid = $this->generate_uid( $uid );
70
- $this->request_requires_update = $this->request_requires_update();
71
- }
72
- //exit;
73
- }
74
-
75
- public function generate_uid( $str ) {
76
- return substr( md5( $str ), 0, 9 );
77
- }
78
-
79
- public function get_temp_uid() {
80
- return $this->generate_uid( 'eael-view' );
81
- }
82
-
83
- public function request_requires_update() {
84
- $elements = get_option( $this->uid . '_eael_elements' );
85
- $editor_updated_at = get_option( 'eael_editor_updated_at' );
86
- $post_updated_at = get_option( $this->uid . '_eael_updated_at' );
87
-
88
- // remove old cache value from options table
89
- $this->remove_old_cache();
90
-
91
- if ( $editor_updated_at === false ) {
92
- update_option( 'eael_editor_updated_at', strtotime( 'now' ) );
93
- }
94
-
95
- if ( $elements === false && $post_updated_at === false ) {
96
- return true;
97
- }
98
-
99
- if ( $this->check_password_protected_post() ) {
100
- return true;
101
- }
102
-
103
- if ( $post_updated_at === false ) {
104
- return true;
105
- }
106
-
107
- if ( $editor_updated_at != $post_updated_at ) {
108
- return true;
109
- }
110
-
111
- return false;
112
- }
113
-
114
- public function collect_loaded_templates( $content, $post_id ) {
115
- if ( $this->is_running_background() ) {
116
- return $content;
117
- }
118
-
119
- if ( $this->request_requires_update && $this->is_preview_mode() ) {
120
- // loaded template stack
121
- $this->loaded_templates[] = $post_id;
122
-
123
- // loaded elements stack
124
- $this->loaded_elements = array_merge( $this->loaded_elements, $this->collect_elements_in_content( $content ) );
125
-
126
- // loaded custom js string
127
- $this->collect_elements_in_document( $post_id );
128
- }
129
-
130
- return $content;
131
- }
132
-
133
- public function collect_elements_in_content( $elements ) {
134
- $collections = [];
135
-
136
- foreach ( $elements as $element ) {
137
- // collect extensions for section
138
- if ( isset( $element[ 'elType' ] ) && $element[ 'elType' ] == 'section' ) {
139
- if ( isset( $element[ 'settings' ][ 'eael_particle_switch' ] ) && $element[ 'settings' ][ 'eael_particle_switch' ] == 'yes' ) {
140
- $collections[] = 'eael-section-particles';
141
- }
142
- if ( isset( $element[ 'settings' ][ 'eael_parallax_switcher' ] ) && $element[ 'settings' ][ 'eael_parallax_switcher' ] == 'yes' ) {
143
- $collections[] = 'eael-section-parallax';
144
- }
145
- }
146
-
147
- // collect widget
148
- if ( isset( $element[ 'elType' ] ) && $element[ 'elType' ] == 'widget' ) {
149
- // collect extensions for widget
150
- if ( isset( $element[ 'settings' ][ 'eael_tooltip_section_enable' ] ) && $element[ 'settings' ][ 'eael_tooltip_section_enable' ] == 'yes' ) {
151
- $collections[] = 'eael-tooltip-section';
152
- }
153
- if ( isset( $element[ 'settings' ][ 'eael_ext_content_protection' ] ) && $element[ 'settings' ][ 'eael_ext_content_protection' ] == 'yes' ) {
154
- $collections[] = 'eael-content-protection';
155
- }
156
-
157
- if ( $element[ 'widgetType' ] === 'global' ) {
158
- $document = Plugin::$instance->documents->get( $element[ 'templateID' ] );
159
-
160
- if ( is_object( $document ) ) {
161
- $collections = array_merge( $collections, $this->collect_elements_in_content( $document->get_elements_data() ) );
162
- }
163
- } else {
164
- $collections[] = $element[ 'widgetType' ];
165
- }
166
- }
167
-
168
- if ( !empty( $element[ 'elements' ] ) ) {
169
- $collections = array_merge( $collections, $this->collect_elements_in_content( $element[ 'elements' ] ) );
170
- }
171
- }
172
-
173
- return $collections;
174
- }
175
-
176
- public function collect_elements_in_document( $post_id ) {
177
- if ( !Plugin::$instance->documents->get( $post_id )->is_built_with_elementor() ) {
178
- return;
179
- }
180
-
181
- $document = Plugin::$instance->documents->get( $post_id );
182
-
183
- if ( $document->get_settings( 'eael_custom_js' ) ) {
184
- $this->custom_js_strings .= $document->get_settings( 'eael_custom_js' );
185
- }
186
- }
187
-
188
- public function update_request_data() {
189
- if ( !apply_filters( 'eael/is_plugin_active', 'elementor/elementor.php' ) ) {
190
- return;
191
- }
192
-
193
- if ( $this->is_running_background() ) {
194
- return;
195
- }
196
-
197
- if ( $this->uid === null ) {
198
- return;
199
- }
200
-
201
- if ( !$this->is_preview_mode() ) {
202
- return;
203
- }
204
-
205
- if ( !$this->request_requires_update ) {
206
- return;
207
- }
208
-
209
- // check if already updated
210
- if ( get_option( 'eael_editor_updated_at' ) == get_option( $this->uid . '_eael_updated_at' ) ) {
211
- return;
212
- }
213
-
214
- // parse loaded elements
215
- $this->loaded_elements = $this->parse_elements( $this->loaded_elements );
216
-
217
- // push custom js as element so that it prints to page if elements is empty
218
- if ( $this->custom_js_strings ) {
219
- $this->loaded_elements[] = 'custom-js';
220
- }
221
-
222
- if ( ( get_the_ID() > 0 && !Plugin::$instance->documents->get( get_the_ID() )->is_built_with_elementor() ) ) {
223
- if ( empty( $this->loaded_elements ) ) {
224
- return;
225
- }
226
- }
227
-
228
- // update page data
229
- update_option( $this->uid . '_eael_elements', $this->loaded_elements, false );
230
- update_option( $this->uid . '_eael_custom_js', $this->custom_js_strings, false );
231
- update_option( $this->uid . '_eael_updated_at', get_option( 'eael_editor_updated_at' ), false );
232
-
233
- // remove old cache files
234
- $this->remove_files( $this->uid );
235
-
236
-
237
- // output custom js as fallback
238
- if ( $this->custom_js_strings ) {
239
- printf( '<script>%1$s</script>', $this->custom_js_strings );
240
- }
241
- }
242
-
243
- /**
244
- * Parse widgets from page data
245
- *
246
- * @since 3.0.0
247
- */
248
- public function parse_elements( $widgets ) {
249
- $replace = [
250
- 'eicon-woocommerce' => 'eael-product-grid',
251
- 'eael-countdown' => 'eael-count-down',
252
- 'eael-creative-button' => 'eael-creative-btn',
253
- 'eael-team-member' => 'eael-team-members',
254
- 'eael-testimonial' => 'eael-testimonials',
255
- 'eael-weform' => 'eael-weforms',
256
- 'eael-cta-box' => 'eael-call-to-action',
257
- 'eael-dual-color-header' => 'eael-dual-header',
258
- 'eael-pricing-table' => 'eael-price-table',
259
- 'eael-filterable-gallery' => 'eael-filter-gallery',
260
- 'eael-one-page-nav' => 'eael-one-page-navigation',
261
- 'eael-interactive-card' => 'eael-interactive-cards',
262
- 'eael-image-comparison' => 'eael-img-comparison',
263
- 'eael-dynamic-filterable-gallery' => 'eael-dynamic-filter-gallery',
264
- 'eael-google-map' => 'eael-adv-google-map',
265
- 'eael-instafeed' => 'eael-instagram-gallery',
266
- ];
267
-
268
- $widgets = array_map( function ( $val ) use ( $replace ) {
269
- if ( array_key_exists( $val, $replace ) ) {
270
- $val = $replace[ $val ];
271
- }
272
- return ( strpos( $val, 'eael-' ) !== false ? preg_replace( '/^eael-/', '', $val ) : null );
273
- }, $widgets );
274
-
275
- return array_filter( array_unique( $widgets ) );
276
- }
277
-
278
- /**
279
- * Generate scripts file.
280
- *
281
- * @since 3.0.0
282
- */
283
- public function generate_script( $uid, $elements, $context, $ext ) {
284
- // if folder not exists, create new folder
285
- if ( !file_exists( EAEL_ASSET_PATH ) ) {
286
- wp_mkdir_p( EAEL_ASSET_PATH );
287
- }
288
-
289
- // naming asset file
290
- $file_name = $uid . '.min.' . $ext;
291
-
292
- // output asset string
293
- $output = $this->generate_strings( $elements, $context, $ext );
294
-
295
- // write to file
296
- $file_path = $this->safe_path( EAEL_ASSET_PATH . DIRECTORY_SEPARATOR . $file_name );
297
- file_put_contents( $file_path, $output );
298
- do_action( 'eael_generate_assets', $uid, $file_path );
299
- }
300
-
301
- /**
302
- * Generate scripts strings.
303
- *
304
- * @since 3.0.0
305
- */
306
- public function generate_strings( $elements, $context, $ext ) {
307
- $output = '';
308
- $paths = $this->generate_dependency( $elements, $context, $ext );
309
-
310
- if ( !empty( $paths ) ) {
311
- foreach ( $paths as $path ) {
312
- $output .= file_get_contents( $this->safe_path( $path ) );
313
- }
314
- }
315
-
316
- if ( $this->request_requires_update == false && $context == 'view' && $ext == 'js' ) {
317
- $output .= get_option( $this->uid . '_eael_custom_js' );
318
- }
319
-
320
- return $output;
321
- }
322
-
323
- /**
324
- * Collect dependencies for modules
325
- *
326
- * @since 3.0.0
327
- */
328
- public function generate_dependency( array $elements, $context, $type ) {
329
- $lib = [ 'view' => [], 'edit' => [] ];
330
- $self = [ 'general' => [], 'view' => [], 'edit' => [] ];
331
-
332
- if ( $type == 'js' ) {
333
- $self[ 'general' ][] = EAEL_PLUGIN_PATH . 'assets/front-end/js/view/general.min.js';
334
- $self[ 'edit' ][] = EAEL_PLUGIN_PATH . 'assets/front-end/js/edit/promotion.min.js';
335
- } else if ( $type == 'css' ) {
336
- $self[ 'view' ][] = EAEL_PLUGIN_PATH . "assets/front-end/css/view/general.min.css";
337
- }
338
-
339
- foreach ( $elements as $element ) {
340
- if ( isset( $this->registered_elements[ $element ] ) ) {
341
- if ( ! empty( $this->registered_elements[ $element ]['dependency'][ $type ] ) ) {
342
- foreach ( (array) $this->registered_elements[ $element ]['dependency'][ $type ] as $file ) {
343
- if ( ! empty( $file['type'] ) && ! empty( $file['context'] ) && ! empty( $file['file'] ) ) {
344
- ${$file['type']}[ $file['context'] ][] = $file['file'];
345
- }
346
- }
347
- }
348
- } elseif ( isset( $this->registered_extensions[ $element ] ) ) {
349
- if ( ! empty( $this->registered_extensions[ $element ]['dependency'][ $type ] ) ) {
350
- foreach ( (array) $this->registered_extensions[ $element ]['dependency'][ $type ] as $file ) {
351
- if ( ! empty( $file['type'] ) && ! empty( $file['context'] ) && ! empty( $file['file'] ) ) {
352
- ${$file['type']}[ $file['context'] ][] = $file['file'];
353
- }
354
- }
355
- }
356
- }
357
- }
358
-
359
- if ( $context == 'view' ) {
360
- return array_unique( array_merge( $lib[ 'view' ], $self[ 'general' ], $self[ 'view' ] ) );
361
- }
362
-
363
- return array_unique( array_merge( $lib[ 'view' ], $lib[ 'edit' ], $self[ 'general' ], $self[ 'edit' ], $self[ 'view' ] ) );
364
- }
365
-
366
- /**
367
- * If Page are protected by password, EA dynamic widget asset not loading properly
368
- * Update _updated_at field to regenerated asset
369
- */
370
- public function check_password_protected_post() {
371
- if ( $this->is_preview_mode() ) {
372
- if ( $this->check_third_party_cookie_status() || isset( $_COOKIE[ 'wp-postpass_' . COOKIEHASH ] ) || $this->check_protected_content_status() ) {
373
- update_option( $this->uid . '_eael_updated_at', strtotime( 'now' ), false );
374
- return true;
375
- }
376
- }
377
- return false;
378
- }
379
-
380
- /**
381
- * Added eael_ prefix in options field that's why need to delete old cache value
382
- * for optimize options table
383
- */
384
- public function remove_old_cache() {
385
- $old_post_updated_at = get_option( $this->uid . '_updated_at' );
386
- if ( $old_post_updated_at ) {
387
- delete_option( $this->uid . '_updated_at' );
388
- delete_option( $this->uid . '_custom_js' );
389
- delete_option( $this->uid . '_elements' );
390
- }
391
- }
392
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
includes/Traits/Library.php CHANGED
@@ -111,22 +111,20 @@ trait Library
111
  return true;
112
  }
113
 
114
- /**
115
- * Remove files
116
- *
117
- * @since 3.0.0
118
- */
119
- public function remove_files($uid = null, $ext = ['css', 'js'])
120
- {
121
- foreach ($ext as $e) {
122
- $path = EAEL_ASSET_PATH . DIRECTORY_SEPARATOR . ($uid ? $uid : 'eael') . '.min.' . $e;
123
-
124
- if (file_exists($path)) {
125
- unlink($path);
126
- }
127
- }
128
- do_action( 'eael_remove_assets', $uid, $ext );
129
- }
130
 
131
  /**
132
  * Remove files in dir
111
  return true;
112
  }
113
 
114
+ /**
115
+ * Remove files
116
+ *
117
+ * @since 3.0.0
118
+ */
119
+ public function remove_files( $post_id = null, $ext = [ 'css', 'js' ] ) {
120
+ foreach ( $ext as $e ) {
121
+ $path = EAEL_ASSET_PATH . DIRECTORY_SEPARATOR . 'eael' . ( $post_id ? '-' . $post_id : '' ) . '.' . $e;
122
+ if ( file_exists( $path ) ) {
123
+ unlink( $path );
124
+ }
125
+ }
126
+ do_action( 'eael_remove_assets', $post_id, $ext );
127
+ }
 
 
128
 
129
  /**
130
  * Remove files in dir
languages/essential-addons-for-elementor-lite.pot CHANGED
@@ -6,7 +6,7 @@ msgstr ""
6
  "MIME-Version: 1.0\n"
7
  "Content-Type: text/plain; charset=UTF-8\n"
8
  "Content-Transfer-Encoding: 8bit\n"
9
- "POT-Creation-Date: 2022-08-01 05:33+0000\n"
10
  "X-Poedit-Basepath: ..\n"
11
  "X-Poedit-KeywordsList: __;_e;_ex:1,2c;_n:1,2;_n_noop:1,2;_nx:1,2,4c;_nx_noop:1,2,3c;_x:1,2c;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n"
12
  "X-Poedit-SearchPath-0: .\n"
@@ -14,6 +14,18 @@ msgstr ""
14
  "X-Poedit-SourceCharset: UTF-8\n"
15
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
16
 
 
 
 
 
 
 
 
 
 
 
 
 
17
  #: ../includes/Classes/Helper.php:205, ../includes/Elements/Adv_Accordion.php:397, ../includes/Elements/Adv_Tabs.php:333, ../includes/Elements/Contact_Form_7.php:270, ../includes/Elements/Content_Ticker.php:306, ../includes/Elements/Countdown.php:467, ../includes/Elements/Creative_Button.php:188, ../includes/Elements/Cta_Box.php:397, ../includes/Elements/Data_Table.php:482, ../includes/Elements/Dual_Color_Header.php:214, ../includes/Elements/Fancy_Text.php:269, ../includes/Elements/Filterable_Gallery.php:797, ../includes/Elements/Flip_Box.php:733, ../includes/Elements/Info_Box.php:493, ../includes/Elements/Login_Register.php:1041, ../includes/Elements/Pricing_Table.php:702, ../includes/Elements/Progress_Bar.php:271, ../includes/Elements/Team_Member.php:237, ../includes/Elements/Testimonial.php:214, ../includes/Elements/Tooltip.php:513, ../includes/Elements/Twitter_Feed.php:349, ../includes/Elements/WeForms.php:110
18
  msgid "Go Premium for More Features"
19
  msgstr ""
@@ -62,7 +74,7 @@ msgstr ""
62
  msgid "Install Now!"
63
  msgstr ""
64
 
65
- #: ../includes/Classes/WPDeveloper_Plugin_Installer.php:151, ../includes/Classes/WPDeveloper_Plugin_Installer.php:169, ../includes/Classes/WPDeveloper_Plugin_Installer.php:188, ../includes/Classes/WPDeveloper_Setup_Wizard.php:517, ../includes/Classes/WPDeveloper_Setup_Wizard.php:543, ../includes/Traits/Ajax_Handler.php:799, ../includes/Traits/Ajax_Handler.php:906, ../includes/Traits/Ajax_Handler.php:927, ../includes/Traits/Ajax_Handler.php:944, ../includes/Traits/Helper.php:307
66
  msgid "you are not allowed to do this action"
67
  msgstr ""
68
 
@@ -8348,18 +8360,6 @@ msgstr ""
8348
  msgid "Advanced Search"
8349
  msgstr ""
8350
 
8351
- #: ../includes/Traits/Enqueue.php:150
8352
- msgid "Added "
8353
- msgstr ""
8354
-
8355
- #: ../includes/Traits/Enqueue.php:151, ../includes/Traits/Woo_Product_Comparable.php:2112
8356
- msgid "Compare"
8357
- msgstr ""
8358
-
8359
- #: ../includes/Traits/Enqueue.php:152
8360
- msgid "Loading..."
8361
- msgstr ""
8362
-
8363
  #: ../includes/Traits/Facebook_Feed.php:31
8364
  msgid "Post ID is missing"
8365
  msgstr ""
6
  "MIME-Version: 1.0\n"
7
  "Content-Type: text/plain; charset=UTF-8\n"
8
  "Content-Transfer-Encoding: 8bit\n"
9
+ "POT-Creation-Date: 2022-08-11 03:07+0000\n"
10
  "X-Poedit-Basepath: ..\n"
11
  "X-Poedit-KeywordsList: __;_e;_ex:1,2c;_n:1,2;_n_noop:1,2;_nx:1,2,4c;_nx_noop:1,2,3c;_x:1,2c;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n"
12
  "X-Poedit-SearchPath-0: .\n"
14
  "X-Poedit-SourceCharset: UTF-8\n"
15
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
16
 
17
+ #: ../includes/Classes/Asset_Builder.php:358
18
+ msgid "Added "
19
+ msgstr ""
20
+
21
+ #: ../includes/Classes/Asset_Builder.php:359, ../includes/Traits/Woo_Product_Comparable.php:2112
22
+ msgid "Compare"
23
+ msgstr ""
24
+
25
+ #: ../includes/Classes/Asset_Builder.php:360
26
+ msgid "Loading..."
27
+ msgstr ""
28
+
29
  #: ../includes/Classes/Helper.php:205, ../includes/Elements/Adv_Accordion.php:397, ../includes/Elements/Adv_Tabs.php:333, ../includes/Elements/Contact_Form_7.php:270, ../includes/Elements/Content_Ticker.php:306, ../includes/Elements/Countdown.php:467, ../includes/Elements/Creative_Button.php:188, ../includes/Elements/Cta_Box.php:397, ../includes/Elements/Data_Table.php:482, ../includes/Elements/Dual_Color_Header.php:214, ../includes/Elements/Fancy_Text.php:269, ../includes/Elements/Filterable_Gallery.php:797, ../includes/Elements/Flip_Box.php:733, ../includes/Elements/Info_Box.php:493, ../includes/Elements/Login_Register.php:1041, ../includes/Elements/Pricing_Table.php:702, ../includes/Elements/Progress_Bar.php:271, ../includes/Elements/Team_Member.php:237, ../includes/Elements/Testimonial.php:214, ../includes/Elements/Tooltip.php:513, ../includes/Elements/Twitter_Feed.php:349, ../includes/Elements/WeForms.php:110
30
  msgid "Go Premium for More Features"
31
  msgstr ""
74
  msgid "Install Now!"
75
  msgstr ""
76
 
77
+ #: ../includes/Classes/WPDeveloper_Plugin_Installer.php:151, ../includes/Classes/WPDeveloper_Plugin_Installer.php:169, ../includes/Classes/WPDeveloper_Plugin_Installer.php:188, ../includes/Classes/WPDeveloper_Setup_Wizard.php:517, ../includes/Classes/WPDeveloper_Setup_Wizard.php:543, ../includes/Traits/Ajax_Handler.php:799, ../includes/Traits/Ajax_Handler.php:906, ../includes/Traits/Ajax_Handler.php:933, ../includes/Traits/Ajax_Handler.php:950, ../includes/Traits/Helper.php:307
78
  msgid "you are not allowed to do this action"
79
  msgstr ""
80
 
8360
  msgid "Advanced Search"
8361
  msgstr ""
8362
 
 
 
 
 
 
 
 
 
 
 
 
 
8363
  #: ../includes/Traits/Facebook_Feed.php:31
8364
  msgid "Post ID is missing"
8365
  msgstr ""
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: elementor, elements, addons, elementor addons, elementor widget, elementor
4
  Requires at least: 5.0
5
  Tested up to: 6.0
6
  Requires PHP: 5.6
7
- Stable tag: 5.1.9
8
  License: GPLv3
9
  License URI: https://opensource.org/licenses/GPL-3.0
10
 
@@ -242,6 +242,12 @@ Your existing elements/content will work with premium version. So you won't lose
242
 
243
  == Changelog ==
244
 
 
 
 
 
 
 
245
  = 5.1.9 - 01/08/2022 =
246
 
247
  - Fixed: Throwing wc_get_cart_url deprecated error after activating Essential Addons
4
  Requires at least: 5.0
5
  Tested up to: 6.0
6
  Requires PHP: 5.6
7
+ Stable tag: 5.2.0
8
  License: GPLv3
9
  License URI: https://opensource.org/licenses/GPL-3.0
10
 
242
 
243
  == Changelog ==
244
 
245
+ = 5.2.0 - 11/08/2022 =
246
+
247
+ - Improved: Asset loading mechanism for better performance
248
+ - Few minor bug fixes & improvements
249
+
250
+
251
  = 5.1.9 - 01/08/2022 =
252
 
253
  - Fixed: Throwing wc_get_cart_url deprecated error after activating Essential Addons