mirror of
https://github.com/lubuntu-team/lubuntu.me.git
synced 2025-02-23 08:11:08 +00:00
2 lines
33 KiB
JavaScript
2 lines
33 KiB
JavaScript
/*! elementor - v1.9.3 - 21-01-2018 */
|
|
!function e(t,n,i){function o(s,a){if(!n[s]){if(!t[s]){var l="function"==typeof require&&require;if(!a&&l)return l(s,!0);if(r)return r(s,!0);var d=new Error("Cannot find module '"+s+"'");throw d.code="MODULE_NOT_FOUND",d}var c=n[s]={exports:{}};t[s][0].call(c.exports,function(e){var n=t[s][1][e];return o(n||e)},c,c.exports,e,t,n,i)}return n[s].exports}for(var r="function"==typeof require&&require,s=0;s<i.length;s++)o(i[s]);return o}({1:[function(e,t,n){var i;i=function(t){var n=this,i={section:e("elementor-frontend/handlers/section"),"accordion.default":e("elementor-frontend/handlers/accordion"),"alert.default":e("elementor-frontend/handlers/alert"),"counter.default":e("elementor-frontend/handlers/counter"),"progress.default":e("elementor-frontend/handlers/progress"),"tabs.default":e("elementor-frontend/handlers/tabs"),"toggle.default":e("elementor-frontend/handlers/toggle"),"video.default":e("elementor-frontend/handlers/video"),"image-carousel.default":e("elementor-frontend/handlers/image-carousel"),"text-editor.default":e("elementor-frontend/handlers/text-editor")};this.initHandlers=function(){elementorFrontend.hooks.addAction("frontend/element_ready/global",e("elementor-frontend/handlers/global")),elementorFrontend.hooks.addAction("frontend/element_ready/widget",e("elementor-frontend/handlers/widget")),t.each(i,function(e,t){elementorFrontend.hooks.addAction("frontend/element_ready/"+e,t)}),(elementorFrontend.isEditMode()?jQuery(".elementor-element",".elementor:not(.elementor-edit-mode)"):t(".elementor-element")).each(function(){n.runReadyTrigger(t(this))})},this.getHandlers=function(e){return e?i[e]:i},this.runReadyTrigger=function(e){var n=e.attr("data-element_type");if(n){e=jQuery(e),elementorFrontend.hooks.doAction("frontend/element_ready/global",e,t);-1===["section","column"].indexOf(n)&&elementorFrontend.hooks.doAction("frontend/element_ready/widget",e,t),elementorFrontend.hooks.doAction("frontend/element_ready/"+n,e,t)}},elementorFrontend.isEditMode()||n.initHandlers()},t.exports=i},{"elementor-frontend/handlers/accordion":4,"elementor-frontend/handlers/alert":5,"elementor-frontend/handlers/counter":7,"elementor-frontend/handlers/global":8,"elementor-frontend/handlers/image-carousel":9,"elementor-frontend/handlers/progress":10,"elementor-frontend/handlers/section":11,"elementor-frontend/handlers/tabs":12,"elementor-frontend/handlers/text-editor":13,"elementor-frontend/handlers/toggle":14,"elementor-frontend/handlers/video":15,"elementor-frontend/handlers/widget":16}],2:[function(e,t,n){!function(t){var n={},i=e("../utils/hooks"),o=e("./handler-module"),r=e("elementor-frontend/elements-handler"),s=e("elementor-frontend/utils/youtube"),a=e("elementor-frontend/utils/anchors"),l=e("elementor-frontend/utils/lightbox");window.elementorFrontend=new function(){var d,c=this;this.config=elementorFrontendConfig,this.Module=o;var u=function(){n.$body.attr("data-elementor-device-mode",c.getCurrentDeviceMode())},h=function(e,t){var n=c.isEditMode()?elementor.settings[e].model.attributes:c.config.settings[e];return t?n[t]:n};this.init=function(){c.hooks=new i,n.window=window,n.$window=t(window),n.$document=t(document),n.$body=t("body"),n.$elementor=n.$document.find(".elementor"),n.$window.on("resize",u),u(),n.$window.trigger("elementor/frontend/init"),c.isEditMode()||(c.hotKeys=e("elementor-utils/hot-keys"),c.hotKeys.bindListener(n.$window)),c.utils={youtube:new s,anchors:new a,lightbox:new l},c.modules={StretchElement:e("elementor-frontend/modules/stretch-element")},c.elementsHandler=new r(t)},this.getElements=function(e){return e?n[e]:n},this.getDialogsManager=function(){return d||(d=new DialogsManager.Instance),d},this.getPageSettings=function(e){return h("page",e)},this.getGeneralSettings=function(e){return h("general",e)},this.isEditMode=function(){return c.config.isEditMode},this.throttle=function(e,t){var n,i,o,r,s=0,a=function(){s=Date.now(),n=null,r=e.apply(i,o),n||(i=o=null)};return function(){var l=Date.now(),d=t-(l-s);return i=this,o=arguments,d<=0||d>t?(n&&(clearTimeout(n),n=null),s=l,r=e.apply(i,o),n||(i=o=null)):n||(n=setTimeout(a,d)),r}},this.addListenerOnce=function(e,t,n,i){if(i||(i=c.getElements("$window")),c.isEditMode())if(i instanceof jQuery){var o=t+"."+e;i.off(o).on(o,n)}else i.off(t,null,e).on(t,n,e);else i.on(t,n)},this.getCurrentDeviceMode=function(){return getComputedStyle(n.$elementor[0],":after").content.replace(/"/g,"")},this.waypoint=function(e,n,i){return i=t.extend({offset:"100%",triggerOnce:!0},i),e.elementorWaypoint(function(){var e=this.element||this,t=n.apply(e,arguments);return i.triggerOnce&&this.destroy&&this.destroy(),t},i)}}}(jQuery),elementorFrontend.isEditMode()||jQuery(elementorFrontend.init)},{"../utils/hooks":21,"./handler-module":3,"elementor-frontend/elements-handler":1,"elementor-frontend/modules/stretch-element":17,"elementor-frontend/utils/anchors":18,"elementor-frontend/utils/lightbox":19,"elementor-frontend/utils/youtube":20,"elementor-utils/hot-keys":22}],3:[function(e,t,n){var i;i=e("../utils/view-module").extend({$element:null,onElementChange:null,onEditSettingsChange:null,onGeneralSettingsChange:null,onPageSettingsChange:null,isEdit:null,__construct:function(e){this.$element=e.$element,this.isEdit=this.$element.hasClass("elementor-element-edit-mode"),this.isEdit&&this.addEditorListener()},findElement:function(e){var t=this.$element;return t.find(e).filter(function(){return jQuery(this).closest(".elementor-element").is(t)})},getUniqueHandlerID:function(e,t){return e||(e=this.getModelCID()),t||(t=this.$element),e+t.attr("data-element_type")+this.getConstructorID()},addEditorListener:function(){var e=this,t=e.getUniqueHandlerID();if(e.onElementChange){var n=e.getElementName(),i="change";"global"!==n&&(i+=":"+n),elementorFrontend.addListenerOnce(t,i,function(n,i){e.getUniqueHandlerID(i.model.cid,i.$el)===t&&e.onElementChange(n.model.get("name"),n,i)},elementor.channels.editor)}e.onEditSettingsChange&&elementorFrontend.addListenerOnce(t,"change:editSettings",function(t,n){n.model.cid===e.getModelCID()&&e.onEditSettingsChange(Object.keys(t.changed)[0])},elementor.channels.editor),["page","general"].forEach(function(n){var i="on"+n.charAt(0).toUpperCase()+n.slice(1)+"SettingsChange";e[i]&&elementorFrontend.addListenerOnce(t,"change",function(t){e[i](t.changed)},elementor.settings[n].model)})},getElementName:function(){return this.$element.data("element_type").split(".")[0]},getID:function(){return this.$element.data("id")},getModelCID:function(){return this.$element.data("model-cid")},getElementSettings:function(e){var t={},n=this.getModelCID();if(this.isEdit&&n){var i=elementorFrontend.config.elements.data[n],o=elementorFrontend.config.elements.keys[i.attributes.widgetType||i.attributes.elType];jQuery.each(i.getActiveControls(),function(e){-1!==o.indexOf(e)&&(t[e]=i.attributes[e])})}else t=this.$element.data("settings")||{};return this.getItems(t,e)},getEditSettings:function(e){var t={};return this.isEdit&&(t=elementorFrontend.config.elements.editSettings[this.getModelCID()].attributes),this.getItems(t,e)}}),t.exports=i},{"../utils/view-module":24}],4:[function(e,t,n){var i=e("elementor-frontend/handlers/base-tabs");t.exports=function(e){new i({$element:e,showTabFn:"slideDown",hideTabFn:"slideUp"})}},{"elementor-frontend/handlers/base-tabs":6}],5:[function(e,t,n){t.exports=function(e,t){e.find(".elementor-alert-dismiss").on("click",function(){t(this).parent().fadeOut()})}},{}],6:[function(e,t,n){var i=e("elementor-frontend/handler-module");t.exports=i.extend({$activeContent:null,getDefaultSettings:function(){return{selectors:{tabTitle:".elementor-tab-title",tabContent:".elementor-tab-content"},classes:{active:"elementor-active"},showTabFn:"show",hideTabFn:"hide",toggleSelf:!0,hidePrevious:!0,autoExpand:!0}},getDefaultElements:function(){var e=this.getSettings("selectors");return{$tabTitles:this.findElement(e.tabTitle),$tabContents:this.findElement(e.tabContent)}},activateDefaultTab:function(){var e=this.getSettings();if(e.autoExpand&&("editor"!==e.autoExpand||this.isEdit)){var t=this.getEditSettings("activeItemIndex")||1,n={showTabFn:e.showTabFn,hideTabFn:e.hideTabFn};this.setSettings({showTabFn:"show",hideTabFn:"hide"}),this.changeActiveTab(t),this.setSettings(n)}},deactivateActiveTab:function(e){var t=this.getSettings(),n=t.classes.active,i=e?'[data-tab="'+e+'"]':"."+n,o=this.elements.$tabTitles.filter(i),r=this.elements.$tabContents.filter(i);o.add(r).removeClass(n),r[t.hideTabFn]()},activateTab:function(e){var t=this.getSettings(),n=t.classes.active,i=this.elements.$tabTitles.filter('[data-tab="'+e+'"]'),o=this.elements.$tabContents.filter('[data-tab="'+e+'"]');i.add(o).addClass(n),o[t.showTabFn]()},isActiveTab:function(e){return this.elements.$tabTitles.filter('[data-tab="'+e+'"]').hasClass(this.getSettings("classes.active"))},bindEvents:function(){var e=this;e.elements.$tabTitles.on("focus",function(t){e.changeActiveTab(t.currentTarget.dataset.tab)}),e.getSettings("toggleSelf")&&e.elements.$tabTitles.on("mousedown",function(t){jQuery(t.currentTarget).is(":focus")&&e.changeActiveTab(t.currentTarget.dataset.tab)})},onInit:function(){i.prototype.onInit.apply(this,arguments),this.activateDefaultTab()},onEditSettingsChange:function(e){"activeItemIndex"===e&&this.activateDefaultTab()},changeActiveTab:function(e){var t=this.isActiveTab(e),n=this.getSettings();!n.toggleSelf&&t||!n.hidePrevious||this.deactivateActiveTab(),!n.hidePrevious&&t&&this.deactivateActiveTab(e),t||this.activateTab(e)}})},{"elementor-frontend/handler-module":3}],7:[function(e,t,n){t.exports=function(e,t){elementorFrontend.waypoint(e.find(".elementor-counter-number"),function(){var e=t(this),n=e.data(),i=n.toValue.toString().match(/\.(.*)/);i&&(n.rounding=i[1].length),e.numerator(n)})}},{}],8:[function(e,t,n){var i,o=e("elementor-frontend/handler-module");i=o.extend({getElementName:function(){return"global"},animate:function(){var e=this.$element,t=this.getAnimation(),n=this.getElementSettings(),i=n._animation_delay||n.animation_delay||0;e.removeClass(t),setTimeout(function(){e.removeClass("elementor-invisible").addClass(t)},i)},getAnimation:function(){var e=this.getElementSettings();return e.animation||e._animation},onInit:function(){o.prototype.onInit.apply(this,arguments);var e=this.getAnimation();e&&(this.$element.removeClass(e),elementorFrontend.waypoint(this.$element,this.animate.bind(this)))},onElementChange:function(e){/^_?animation/.test(e)&&this.animate()}}),t.exports=function(e){new i({$element:e})}},{"elementor-frontend/handler-module":3}],9:[function(e,t,n){var i,o=e("elementor-frontend/handler-module");i=o.extend({getDefaultSettings:function(){return{selectors:{carousel:".elementor-image-carousel"}}},getDefaultElements:function(){var e=this.getSettings("selectors");return{$carousel:this.$element.find(e.carousel)}},onInit:function(){o.prototype.onInit.apply(this,arguments);var e=this.getElementSettings(),t=+e.slides_to_show||3,n=1===t,i={slidesToShow:t,autoplay:"yes"===e.autoplay,autoplaySpeed:e.autoplay_speed,infinite:"yes"===e.infinite,pauseOnHover:"yes"===e.pause_on_hover,speed:e.speed,arrows:-1!==["arrows","both"].indexOf(e.navigation),dots:-1!==["dots","both"].indexOf(e.navigation),rtl:"rtl"===e.direction,responsive:[{breakpoint:1025,settings:{slidesToShow:+e.slides_to_show_tablet||(n?1:2),slidesToScroll:1}},{breakpoint:768,settings:{slidesToShow:+e.slides_to_show_mobile||1,slidesToScroll:1}}]};n?i.fade="fade"===e.effect:i.slidesToScroll=+e.slides_to_scroll,this.elements.$carousel.slick(i)}}),t.exports=function(e){new i({$element:e})}},{"elementor-frontend/handler-module":3}],10:[function(e,t,n){t.exports=function(e,t){elementorFrontend.waypoint(e.find(".elementor-progress-bar"),function(){var e=t(this);e.css("width",e.data("max")+"%")})}},{}],11:[function(e,t,n){var i=e("elementor-frontend/handler-module"),o=i.extend({player:null,isYTVideo:null,getDefaultSettings:function(){return{selectors:{backgroundVideoContainer:".elementor-background-video-container",backgroundVideoEmbed:".elementor-background-video-embed",backgroundVideoHosted:".elementor-background-video-hosted"}}},getDefaultElements:function(){var e=this.getSettings("selectors"),t={$backgroundVideoContainer:this.$element.find(e.backgroundVideoContainer)};return t.$backgroundVideoEmbed=t.$backgroundVideoContainer.children(e.backgroundVideoEmbed),t.$backgroundVideoHosted=t.$backgroundVideoContainer.children(e.backgroundVideoHosted),t},calcVideosSize:function(){var e=this.elements.$backgroundVideoContainer.outerWidth(),t=this.elements.$backgroundVideoContainer.outerHeight(),n="16:9".split(":"),i=n[0]/n[1],o=e/t>i;return{width:o?e:t*i,height:o?e/i:t}},changeVideoSize:function(){var e=this.isYTVideo?jQuery(this.player.getIframe()):this.elements.$backgroundVideoHosted,t=this.calcVideosSize();e.width(t.width).height(t.height)},prepareYTVideo:function(e,t){var n=this,i=n.elements.$backgroundVideoContainer;i.addClass("elementor-loading elementor-invisible"),n.player=new e.Player(n.elements.$backgroundVideoEmbed[0],{videoId:t,events:{onReady:function(){n.player.mute(),n.changeVideoSize(),n.player.playVideo()},onStateChange:function(t){switch(t.data){case e.PlayerState.PLAYING:i.removeClass("elementor-invisible elementor-loading");break;case e.PlayerState.ENDED:n.player.seekTo(0)}}},playerVars:{controls:0,showinfo:0,rel:0}}),elementorFrontend.getElements("$window").on("resize",n.changeVideoSize)},activate:function(){var e=this,t=e.getElementSettings("background_video_link"),n=elementorFrontend.utils.youtube.getYoutubeIDFromURL(t);e.isYTVideo=!!n,n?elementorFrontend.utils.youtube.onYoutubeApiReady(function(t){setTimeout(function(){e.prepareYTVideo(t,n)},1)}):e.elements.$backgroundVideoHosted.attr("src",t).one("canplay",e.changeVideoSize)},deactivate:function(){this.isYTVideo&&this.player.getIframe()?this.player.destroy():this.elements.$backgroundVideoHosted.removeAttr("src")},run:function(){var e=this.getElementSettings();"video"===e.background_background&&e.background_video_link?this.activate():this.deactivate()},onInit:function(){i.prototype.onInit.apply(this,arguments),this.run()},onElementChange:function(e){"background_background"===e&&this.run()}}),r=i.extend({stretchElement:null,bindEvents:function(){elementorFrontend.addListenerOnce(this.$element.data("model-cid"),"resize",this.stretchSection)},initStretch:function(){this.stretchElement=new elementorFrontend.modules.StretchElement({element:this.$element})},stretchSection:function(){var e=this.$element.hasClass("elementor-section-stretched");(elementorFrontend.isEditMode()||e)&&this.stretchElement.reset(),e&&(this.stretchElement.setSettings("selectors.container",elementorFrontend.getGeneralSettings("elementor_stretched_section_container")||window),this.stretchElement.stretch())},onInit:function(){i.prototype.onInit.apply(this,arguments),this.initStretch(),this.stretchSection()},onGeneralSettingsChange:function(e){"elementor_stretched_section_container"in e&&this.stretchSection()}}),s=i.extend({getDefaultSettings:function(){return{selectors:{container:"> .elementor-shape-%s"},svgURL:elementorFrontend.config.urls.assets+"shapes/"}},getDefaultElements:function(){var e={},t=this.getSettings("selectors");return e.$topContainer=this.$element.find(t.container.replace("%s","top")),e.$bottomContainer=this.$element.find(t.container.replace("%s","bottom")),e},buildSVG:function(e){var t="shape_divider_"+e,n=this.getElementSettings(t),i=this.elements["$"+e+"Container"];if(i.empty().attr("data-shape",n),n){var o=n;this.getElementSettings(t+"_negative")&&(o+="-negative");var r=this.getSettings("svgURL")+o+".svg";jQuery.get(r,function(e){i.append(e.childNodes[0])}),this.setNegative(e)}},setNegative:function(e){this.elements["$"+e+"Container"].attr("data-negative",!!this.getElementSettings("shape_divider_"+e+"_negative"))},onInit:function(){var e=this;i.prototype.onInit.apply(e,arguments),["top","bottom"].forEach(function(t){e.getElementSettings("shape_divider_"+t)&&e.buildSVG(t)})},onElementChange:function(e){var t=e.match(/^shape_divider_(top|bottom)$/);if(t)this.buildSVG(t[1]);else{var n=e.match(/^shape_divider_(top|bottom)_negative$/);n&&(this.buildSVG(n[1]),this.setNegative(n[1]))}}});t.exports=function(e){(elementorFrontend.isEditMode()||e.hasClass("elementor-section-stretched"))&&new r({$element:e}),elementorFrontend.isEditMode()&&new s({$element:e}),new o({$element:e})}},{"elementor-frontend/handler-module":3}],12:[function(e,t,n){var i=e("elementor-frontend/handlers/base-tabs");t.exports=function(e){new i({$element:e,toggleSelf:!1})}},{"elementor-frontend/handlers/base-tabs":6}],13:[function(e,t,n){var i,o=e("elementor-frontend/handler-module");i=o.extend({dropCapLetter:"",getDefaultSettings:function(){return{selectors:{paragraph:"p:first"},classes:{dropCap:"elementor-drop-cap",dropCapLetter:"elementor-drop-cap-letter"}}},getDefaultElements:function(){var e=this.getSettings("selectors"),t=this.getSettings("classes"),n=jQuery("<span>",{class:t.dropCap}),i=jQuery("<span>",{class:t.dropCapLetter});return n.append(i),{$paragraph:this.$element.find(e.paragraph),$dropCap:n,$dropCapLetter:i}},getElementName:function(){return"text-editor"},wrapDropCap:function(){if(this.getElementSettings("drop_cap")){var e=this.elements.$paragraph;if(e.length){var t=e.html().replace(/ /g," "),n=t.match(/^ *([^ ] ?)/);if(n){var i=n[1],o=i.trim();if("<"!==o){this.dropCapLetter=i,this.elements.$dropCapLetter.text(o);var r=t.slice(i.length).replace(/^ */,function(e){return new Array(e.length+1).join(" ")});e.html(r).prepend(this.elements.$dropCap)}}}}else this.dropCapLetter&&(this.elements.$dropCap.remove(),this.elements.$paragraph.prepend(this.dropCapLetter),this.dropCapLetter="")},onInit:function(){o.prototype.onInit.apply(this,arguments),this.wrapDropCap()},onElementChange:function(e){"drop_cap"===e&&this.wrapDropCap()}}),t.exports=function(e){new i({$element:e})}},{"elementor-frontend/handler-module":3}],14:[function(e,t,n){var i=e("elementor-frontend/handlers/base-tabs");t.exports=function(e){new i({$element:e,showTabFn:"slideDown",hideTabFn:"slideUp",hidePrevious:!1,autoExpand:"editor"})}},{"elementor-frontend/handlers/base-tabs":6}],15:[function(e,t,n){var i,o=e("elementor-frontend/handler-module");i=o.extend({getDefaultSettings:function(){return{selectors:{imageOverlay:".elementor-custom-embed-image-overlay",videoWrapper:".elementor-wrapper",videoFrame:"iframe"}}},getDefaultElements:function(){var e=this.getSettings("selectors"),t={$imageOverlay:this.$element.find(e.imageOverlay),$videoWrapper:this.$element.find(e.videoWrapper)};return t.$videoFrame=t.$videoWrapper.find(e.videoFrame),t},getLightBox:function(){return elementorFrontend.utils.lightbox},handleVideo:function(){this.getElementSettings("lightbox")||(this.elements.$imageOverlay.remove(),this.playVideo())},playVideo:function(){var e=this.elements.$videoFrame,t=e[0].src.replace("&autoplay=0","");e[0].src=t+"&autoplay=1"},animateVideo:function(){this.getLightBox().setEntranceAnimation(this.getElementSettings("lightbox_content_animation"))},handleAspectRatio:function(){this.getLightBox().setVideoAspectRatio(this.getElementSettings("aspect_ratio"))},bindEvents:function(){this.elements.$imageOverlay.on("click",this.handleVideo)},onElementChange:function(e){if("lightbox_content_animation"!==e){var t=this.getElementSettings("lightbox");"lightbox"!==e||t?"aspect_ratio"===e&&t&&this.handleAspectRatio():this.getLightBox().getModal().hide()}else this.animateVideo()}}),t.exports=function(e){new i({$element:e})}},{"elementor-frontend/handler-module":3}],16:[function(e,t,n){t.exports=function(e,t){elementorFrontend.isEditMode()&&(e.hasClass("elementor-widget-edit-disabled")||e.find(".elementor-element").each(function(){elementorFrontend.elementsHandler.runReadyTrigger(t(this))}))}},{}],17:[function(e,t,n){var i=e("../../utils/view-module");t.exports=i.extend({getDefaultSettings:function(){return{element:null,direction:elementorFrontend.config.is_rtl?"right":"left",selectors:{container:window}}},getDefaultElements:function(){return{$element:jQuery(this.getSettings("element"))}},stretch:function(){var e=this.getSettings("selectors.container"),t=this.elements.$element,n=jQuery(e),i=window!==n[0];this.reset();var o=n.outerWidth(),r=t.outerWidth(),s=t.offset().left,a=s;if(i){var l=n.offset().left;a=s>l?s-l:0}elementorFrontend.config.is_rtl&&(a=o-(r+a));var d={};d.width=o+"px",d[this.getSettings("direction")]=-a+"px",t.css(d)},reset:function(){var e={};e.width="auto",e[this.getSettings("direction")]=0,this.elements.$element.css(e)}})},{"../../utils/view-module":24}],18:[function(e,t,n){var i=e("../../utils/view-module");t.exports=i.extend({getDefaultSettings:function(){return{scrollDuration:500,selectors:{links:'a[href*="#"]',targets:".elementor-element, .elementor-menu-anchor",scrollable:"html, body",wpAdminBar:"#wpadminbar"}}},getDefaultElements:function(){var e=jQuery,t=this.getSettings("selectors");return{$scrollable:e(t.scrollable),$wpAdminBar:e(t.wpAdminBar)}},bindEvents:function(){elementorFrontend.getElements("$document").on("click",this.getSettings("selectors.links"),this.handleAnchorLinks)},handleAnchorLinks:function(e){var t=e.currentTarget,n=location.pathname===t.pathname;if(location.hostname===t.hostname&&n&&!(t.hash.length<2)){var i=jQuery(t.hash).filter(this.getSettings("selectors.targets"));if(i.length){var o=1<=this.elements.$wpAdminBar.length,r=i.offset().top;o&&(r-=this.elements.$wpAdminBar.height()),e.preventDefault(),r=elementorFrontend.hooks.applyFilters("frontend/handlers/menu_anchor/scroll_top_distance",r),this.elements.$scrollable.animate({scrollTop:r},this.getSettings("scrollDuration"),"linear")}}},onInit:function(){i.prototype.onInit.apply(this,arguments),this.bindEvents()}})},{"../../utils/view-module":24}],19:[function(e,t,n){var i,o=e("../../utils/view-module");i=o.extend({oldAspectRatio:null,oldAnimation:null,swiper:null,getDefaultSettings:function(){return{classes:{aspectRatio:"elementor-aspect-ratio-%s",item:"elementor-lightbox-item",image:"elementor-lightbox-image",videoContainer:"elementor-video-container",videoWrapper:"elementor-fit-aspect-ratio",playButton:"elementor-custom-embed-play",playButtonIcon:"fa",playing:"elementor-playing",hidden:"elementor-hidden",invisible:"elementor-invisible",preventClose:"elementor-lightbox-prevent-close",slideshow:{container:"swiper-container",slidesWrapper:"swiper-wrapper",prevButton:"elementor-swiper-button elementor-swiper-button-prev",nextButton:"elementor-swiper-button elementor-swiper-button-next",prevButtonIcon:"eicon-chevron-left",nextButtonIcon:"eicon-chevron-right",slide:"swiper-slide"}},selectors:{links:"a, [data-elementor-lightbox]",slideshow:{activeSlide:".swiper-slide-active",prevSlide:".swiper-slide-prev",nextSlide:".swiper-slide-next"}},modalOptions:{id:"elementor-lightbox",entranceAnimation:"zoomIn",videoAspectRatio:169,position:{enable:!1}}}},getModal:function(){return i.modal||this.initModal(),i.modal},initModal:function(){var e=i.modal=elementorFrontend.getDialogsManager().createWidget("lightbox",{className:"elementor-lightbox",closeButton:!0,closeButtonClass:"eicon-close",selectors:{preventClose:"."+this.getSettings("classes.preventClose")},hide:{onClick:!0}});e.on("hide",function(){e.setMessage("")})},showModal:function(e){var t=this,n=t.getDefaultSettings().modalOptions;t.setSettings("modalOptions",jQuery.extend(n,e.modalOptions));var i=t.getModal();switch(i.setID(t.getSettings("modalOptions.id")),i.onShow=function(){DialogsManager.getWidgetType("lightbox").prototype.onShow.apply(i,arguments),setTimeout(function(){t.setEntranceAnimation()},10)},i.onHide=function(){DialogsManager.getWidgetType("lightbox").prototype.onHide.apply(i,arguments),i.getElements("widgetContent").removeClass("animated")},e.type){case"image":t.setImageContent(e.url);break;case"video":t.setVideoContent(e.url);break;case"slideshow":t.setSlideshowContent(e.slideshow);break;default:t.setHTMLContent(e.html)}i.show()},setHTMLContent:function(e){this.getModal().setMessage(e)},setImageContent:function(e){var t=this.getSettings("classes"),n=jQuery("<div>",{class:t.item}),i=jQuery("<img>",{src:e,class:t.image+" "+t.preventClose});n.append(i),this.getModal().setMessage(n)},setVideoContent:function(e){e=e.replace("&autoplay=0","")+"&autoplay=1";var t=this.getSettings("classes"),n=jQuery("<div>",{class:t.videoContainer}),i=jQuery("<div>",{class:t.videoWrapper}),o=jQuery("<iframe>",{src:e,allowfullscreen:1}),r=this.getModal();n.append(i),i.append(o),r.setMessage(n),this.setVideoAspectRatio();var s=r.onHide;r.onHide=function(){s(),r.getElements("message").removeClass("elementor-fit-aspect-ratio")}},setSlideshowContent:function(e){var t=jQuery,n=this,i=n.getSettings("classes"),o=i.slideshow,r=t("<div>",{class:o.container}),s=t("<div>",{class:o.slidesWrapper}),a=t("<div>",{class:o.prevButton+" "+i.preventClose}).html(t("<i>",{class:o.prevButtonIcon})),l=t("<div>",{class:o.nextButton+" "+i.preventClose}).html(t("<i>",{class:o.nextButtonIcon}));e.slides.forEach(function(e){var n=o.slide+" "+i.item;e.video&&(n+=" "+i.video);var r=t("<div>",{class:n});if(e.video){r.attr("data-elementor-slideshow-video",e.video);var a=t("<div>",{class:i.playButton}).html(t("<i>",{class:i.playButtonIcon}));r.append(a)}else{var l=t("<div>",{class:"swiper-zoom-container"}),d=t("<img>",{class:i.image+" "+i.preventClose}).attr("src",e.image);l.append(d),r.append(l)}s.append(r)}),r.append(s,a,l);var d=n.getModal();d.setMessage(r);var c=d.onShow;d.onShow=function(){c();var i={prevButton:a,nextButton:l,paginationClickable:!0,grabCursor:!0,onSlideChangeEnd:n.onSlideChange,runCallbacksOnInit:!1,loop:!0,keyboardControl:!0};e.swiper&&t.extend(i,e.swiper),n.swiper=new Swiper(r,i),n.setVideoAspectRatio(),n.playSlideVideo()}},setVideoAspectRatio:function(e){e=e||this.getSettings("modalOptions.videoAspectRatio");var t=this.getModal().getElements("widgetContent"),n=this.oldAspectRatio,i=this.getSettings("classes.aspectRatio");this.oldAspectRatio=e,n&&t.removeClass(i.replace("%s",n)),e&&t.addClass(i.replace("%s",e))},getSlide:function(e){return this.swiper.slides.filter(this.getSettings("selectors.slideshow."+e+"Slide"))},playSlideVideo:function(){var e=this.getSlide("active"),t=e.data("elementor-slideshow-video");if(t){var n=this.getSettings("classes"),i=jQuery("<div>",{class:n.videoContainer+" "+n.invisible}),o=jQuery("<div>",{class:n.videoWrapper}),r=jQuery("<iframe>",{src:t}),s=e.children("."+n.playButton);i.append(o),o.append(r),e.append(i),s.addClass(n.playing).removeClass(n.hidden),r.on("load",function(){s.addClass(n.hidden),i.removeClass(n.invisible)})}},setEntranceAnimation:function(e){e=e||this.getSettings("modalOptions.entranceAnimation");var t=this.getModal().getElements("message");this.oldAnimation&&t.removeClass(this.oldAnimation),this.oldAnimation=e,e&&t.addClass("animated "+e)},isLightboxLink:function(e){if("A"===e.tagName&&!/\.(png|jpe?g|gif|svg)$/i.test(e.href))return!1;var t=elementorFrontend.getGeneralSettings("elementor_global_image_lightbox"),n=e.dataset.elementorOpenLightbox;return"yes"===n||t&&"no"!==n},openLink:function(e){var t=e.currentTarget,n=jQuery(e.target),i=elementorFrontend.isEditMode(),o=!!n.closest("#elementor").length;if(this.isLightboxLink(t)){if(e.preventDefault(),!elementorFrontend.isEditMode()||elementorFrontend.getGeneralSettings("elementor_enable_lightbox_in_editor")){var r={};if(t.dataset.elementorLightbox&&(r=JSON.parse(t.dataset.elementorLightbox)),r.type&&"slideshow"!==r.type)this.showModal(r);else if(t.dataset.elementorLightboxSlideshow){var s=t.dataset.elementorLightboxSlideshow,a=jQuery(this.getSettings("selectors.links")).filter(function(){return s===this.dataset.elementorLightboxSlideshow}),l=[],d={};a.each(function(){if(!d[this.href]){d[this.href]=!0;var e=this.dataset.elementorLightboxIndex;void 0===e&&(e=a.index(this));var t={image:this.href,index:e};this.dataset.elementorLightboxVideo&&(t.video=this.dataset.elementorLightboxVideo),l.push(t)}}),l.sort(function(e,t){return e.index-t.index});var c=t.dataset.elementorLightboxIndex;void 0===c&&(c=a.index(t)),this.showModal({type:"slideshow",modalOptions:{id:"elementor-lightbox-slideshow-"+s},slideshow:{slides:l,swiper:{initialSlide:+c}}})}else this.showModal({type:"image",url:t.href})}}else i&&o&&e.preventDefault()},bindEvents:function(){elementorFrontend.getElements("$document").on("click",this.getSettings("selectors.links"),this.openLink)},onInit:function(){o.prototype.onInit.apply(this,arguments),elementorFrontend.isEditMode()&&elementor.settings.general.model.on("change",this.onGeneralSettingsChange)},onGeneralSettingsChange:function(e){"elementor_lightbox_content_animation"in e.changed&&(this.setSettings("modalOptions.entranceAnimation",e.changed.elementor_lightbox_content_animation),this.setEntranceAnimation())},onSlideChange:function(){this.getSlide("prev").add(this.getSlide("next")).add(this.getSlide("active")).find("."+this.getSettings("classes.videoWrapper")).remove(),this.playSlideVideo()}}),t.exports=i},{"../../utils/view-module":24}],20:[function(e,t,n){var i=e("../../utils/view-module");t.exports=i.extend({getDefaultSettings:function(){return{isInserted:!1,APISrc:"https://www.youtube.com/iframe_api",selectors:{firstScript:"script:first"}}},getDefaultElements:function(){return{$firstScript:jQuery(this.getSettings("selectors.firstScript"))}},insertYTAPI:function(){this.setSettings("isInserted",!0),this.elements.$firstScript.before(jQuery("<script>",{src:this.getSettings("APISrc")}))},onYoutubeApiReady:function(e){var t=this;t.getSettings("IsInserted")||t.insertYTAPI(),window.YT&&YT.loaded?e(YT):setTimeout(function(){t.onYoutubeApiReady(e)},350)},getYoutubeIDFromURL:function(e){var t=e.match(/^(?:https?:\/\/)?(?:www\.)?(?:m\.)?(?:youtu\.be\/|youtube\.com\/(?:(?:watch)?\?(?:.*&)?vi?=|(?:embed|v|vi|user)\/))([^?&"'>]+)/);return t&&t[1]}})},{"../../utils/view-module":24}],21:[function(e,t,n){"use strict";t.exports=function(){var e,t=Array.prototype.slice,n={actions:{},filters:{}};function i(e,t,i,o){var r,s,a;if(n[e][t])if(i)if(r=n[e][t],o)for(a=r.length;a--;)(s=r[a]).callback===i&&s.context===o&&r.splice(a,1);else for(a=r.length;a--;)r[a].callback===i&&r.splice(a,1);else n[e][t]=[]}function o(e,t,i,o,r){var s={callback:i,priority:o,context:r},a=n[e][t];if(a){var l=!1;if(jQuery.each(a,function(){if(this.callback===i)return l=!0,!1}),l)return;a.push(s),a=function(e){for(var t,n,i,o=1,r=e.length;o<r;o++){for(t=e[o],n=o;(i=e[n-1])&&i.priority>t.priority;)e[n]=e[n-1],--n;e[n]=t}return e}(a)}else a=[s];n[e][t]=a}function r(e,t,i){var o,r,s=n[e][t];if(!s)return"filters"===e&&i[0];if(r=s.length,"filters"===e)for(o=0;o<r;o++)i[0]=s[o].callback.apply(s[o].context,i);else for(o=0;o<r;o++)s[o].callback.apply(s[o].context,i);return"filters"!==e||i[0]}return e={removeFilter:function(t,n){return"string"==typeof t&&i("filters",t,n),e},applyFilters:function(){var n=t.call(arguments),i=n.shift();return"string"==typeof i?r("filters",i,n):e},addFilter:function(t,n,i,r){return"string"==typeof t&&"function"==typeof n&&o("filters",t,n,i=parseInt(i||10,10),r),e},removeAction:function(t,n){return"string"==typeof t&&i("actions",t,n),e},doAction:function(){var n=t.call(arguments),i=n.shift();return"string"==typeof i&&r("actions",i,n),e},addAction:function(t,n,i,r){return"string"==typeof t&&"function"==typeof n&&o("actions",t,n,i=parseInt(i||10,10),r),e}}}},{}],22:[function(e,t,n){t.exports=new function(){var e=this.hotKeysHandlers={},t=function(t){var n=e[t.which];n&&jQuery.each(n,function(){this.isWorthHandling&&!this.isWorthHandling(t)||!this.allowAltKey&&t.altKey||(t.preventDefault(),this.handle(t))})};this.isControlEvent=function(e){return e[-1!==navigator.userAgent.indexOf("Mac OS X")?"metaKey":"ctrlKey"]},this.addHotKeyHandler=function(t,n,i){e[t]||(e[t]={}),e[t][n]=i},this.bindListener=function(e){e.on("keydown",t)}}},{}],23:[function(e,t,n){var i=function(){var e,t=jQuery,n=arguments,i=this,o={};this.getItems=function(e,t){if(t){var n=t.split("."),i=n.splice(0,1);if(!n.length)return e[i];if(!e[i])return;return this.getItems(e[i],n.join("."))}return e},this.getSettings=function(t){return this.getItems(e,t)},this.setSettings=function(n,o,r){if(r||(r=e),"object"==typeof n)return t.extend(r,n),i;var s=n.split("."),a=s.splice(0,1);return s.length?(r[a]||(r[a]={}),i.setSettings(s.join("."),o,r[a])):(r[a]=o,i)},this.forceMethodImplementation=function(e){var t=e.callee.name;throw new ReferenceError("The method "+t+" must to be implemented in the inheritor child.")},this.on=function(e,t){return o[e]||(o[e]=[]),o[e].push(t),i},this.off=function(e,t){if(!o[e])return i;if(!t)return delete o[e],i;var n=o[e].indexOf(t);return-1!==n&&delete o[e][n],i},this.trigger=function(e){var n="on"+e[0].toUpperCase()+e.slice(1),r=Array.prototype.slice.call(arguments,1);i[n]&&i[n].apply(i,r);var s=o[e];return s?(t.each(s,function(e,t){t.apply(i,r)}),i):i},i.__construct.apply(i,n),t.each(i,function(e){var t=i[e];"function"==typeof t&&(i[e]=function(){return t.apply(i,arguments)})}),function(){e=i.getDefaultSettings();var o=n[0];o&&t.extend(e,o)}(),i.trigger("init")};i.prototype.__construct=function(){},i.prototype.getDefaultSettings=function(){return{}},i.extendsCount=0,i.extend=function(e){var t=jQuery,n=this,o=function(){return n.apply(this,arguments)};t.extend(o,n),(o.prototype=Object.create(t.extend({},n.prototype,e))).constructor=o;var r=++i.extendsCount;return o.prototype.getConstructorID=function(){return r},o.__super__=n.prototype,o},t.exports=i},{}],24:[function(e,t,n){var i;i=e("./module").extend({elements:null,getDefaultElements:function(){return{}},bindEvents:function(){},onInit:function(){this.initElements(),this.bindEvents()},initElements:function(){this.elements=this.getDefaultElements()}}),t.exports=i},{"./module":23}]},{},[2]); |