!function(f){"use strict";f(window).on("elementor/frontend/init",function(){o.init(),e.init(),i.init(),t.init(),n.init()});var o={init:function(){if(Boolean(elementorFrontend.isEditMode()))for(var e in qodefCore.shortcodes)for(var t in qodefCore.shortcodes[e])o.reInitShortcode(e,t)},reInitShortcode:function(t,o){elementorFrontend.hooks.addAction("frontend/element_ready/"+t+".default",function(e){void 0===qodefCore.shortcodes[t][o]?console.log(o):"function"==typeof qodefCore.shortcodes[t][o].initSlider&&e.find(".qodef-instagram-swiper-container").length?qodefCore.shortcodes[t][o].initSlider(e.find(".qodef-instagram-swiper-container"),!1):"function"==typeof qodefCore.shortcodes[t][o].initSlider&&e.find(".qodef-swiper-container").length?qodefCore.shortcodes[t][o].initSlider(e.find(".qodef-swiper-container")):"function"==typeof qodefCore.shortcodes[t][o].initPopup&&e.find(".qodef-magnific-popup").length?qodefCore.shortcodes[t][o].initPopup(e.find(".qodef-magnific-popup")):"function"==typeof qodefCore.shortcodes[t][o].initItem&&e.find(".qodef-shortcode").length?qodefCore.shortcodes[t][o].initItem(e.find(".qodef-shortcode")):qodefCore.shortcodes[t][o].init()})}},e={init:function(){elementorFrontend.hooks.addAction("frontend/element_ready/section",i.init)}},i={init:function(e){var o,a,t,_=e,d=Boolean(elementorFrontend.isEditMode()),r=[],n={};d&&void 0!==e?(t=window.elementor.elements,o=_.data("id"),a=_.hasClass("elementor-inner-section"),f.each(t.models,function(e,t){o==t.id?n=t.attributes.settings.attributes:a&&void 0!==t.attributes.elements.models[0].attributes.elements.models[0].attributes.settings.attributes&&o==t.attributes.elements.models[0].attributes.elements.models[0].attributes.id&&(n=t.attributes.elements.models[0].attributes.elements.models[0].attributes.settings.attributes)}),void 0!==n.qodef_parallax_type&&(r.enable_parallax=n.qodef_parallax_type),void 0!==n.qodef_parallax_image&&n.qodef_parallax_image.url&&(r.parallax_image_url=n.qodef_parallax_image.url),void 0!==n.qodef_offset_type&&(r.enable_offset=n.qodef_offset_type),void 0!==n.qodef_offset_image&&n.qodef_offset_image.url&&(r.offset_image_url=n.qodef_offset_image.url),void 0!==n.qodef_offset_top&&(r.offset_top=n.qodef_offset_top),void 0!==n.qodef_offset_left&&(r.offset_left=n.qodef_offset_left),void 0!==_&&i.generateOutput(_,r)):(t=qodefElementorGlobal.vars.elementorSectionHandler,f.each(t,function(t,e){e.forEach(function(e){void 0!==e.parallax_type&&"parallax"===e.parallax_type&&(_=f('[data-id="'+t+'"]'),r.parallax_type=e.parallax_type,r.parallax_image_url=e.parallax_image.url,void 0!==r.parallax_image_url&&(r.enable_parallax="parallax")),void 0!==e.offset_type&&"offset"===e.offset_type&&(_=f('[data-id="'+t+'"]'),r.offset_type=e.offset_type,r.offset_image_url=e.offset_image.url,r.offset_top=e.offset_top,r.offset_left=e.offset_left,void 0!==r.offset_image_url&&(r.enable_offset="offset")),void 0!==_&&(i.generateOutput(_,r),r=[])})}))},generateOutput:function(e,t){var o;void 0!==t.enable_parallax&&"parallax"===t.enable_parallax&&void 0!==t.parallax_image_url&&(f(".qodef-parallax-row-holder",e).remove(),e.removeClass("qodef-parallax qodef--parallax-row"),e.addClass("qodef-parallax qodef--parallax-row"),f('<div class="qodef-parallax-row-holder"><div class="qodef-parallax-img-holder"><div class="qodef-parallax-img-wrapper"><img class="qodef-parallax-img" src="'+t.parallax_image_url+'" alt="Parallax Image"></div></div></div>').prependTo(e),(o=new Image).onload=function(){e.find("img.qodef-parallax-img").attr("src",this.src),qodefCore.qodefParallaxBackground.init()},o.src=t.parallax_image_url),void 0!==t.enable_offset&&"offset"===t.enable_offset&&void 0!==t.offset_image_url&&(f(".qodef-offset-image-holder",e).remove(),e.removeClass("qodef-offset-image"),e.addClass("qodef-offset-image"),f('<div class="qodef-offset-image-holder" style="position: absolute; z-index: 5; top:'+t.offset_top+"; left:"+t.offset_left+'"><div class="qodef-offset-image-wrapper"><img src="'+t.offset_image_url+'" alt="Offset Image"></div></div>').prependTo(e))}},t={init:function(){elementorFrontend.hooks.addAction("frontend/element_ready/column",n.init)}},n={init:function(e){var o=e,t=Boolean(elementorFrontend.isEditMode()),a=[],_={};if(t&&void 0!==e){var d=window.elementor.elements,r=o.data("id");if(!d.models)return!1;f.each(d.models,function(e,t){f.each(t.attributes.elements.models,function(e,t){r==t.id&&(_=t.attributes.settings.attributes)})}),void 0!==_.qodef_background_text_enable&&_.qodef_background_text_enable.length&&(a.background_text_enable=_.qodef_background_text_enable),void 0!==_.qodef_background_text&&_.qodef_background_text.length&&(a.background_text=_.qodef_background_text),void 0!==_.qodef_background_text_color&&_.qodef_background_text_color.length&&(a.background_text_color=_.qodef_background_text_color),void 0!==_.qodef_background_text_size&&_.qodef_background_text_size.length&&(a.background_text_size=_.qodef_background_text_size),void 0!==_.qodef_background_text_size_1440&&_.qodef_background_text_size_1440.length&&(a.background_text_size_1440=_.qodef_background_text_size_1440),void 0!==_.qodef_background_text_size_1366&&_.qodef_background_text_size_1366.length&&(a.background_text_size_1366=_.qodef_background_text_size_1366),void 0!==_.qodef_background_text_size_1024&&_.qodef_background_text_size_1024.length&&(a.background_text_size_1024=_.qodef_background_text_size_1024),void 0!==_.qodef_background_text_horizontal_offset&&_.qodef_background_text_horizontal_offset.length&&(a.background_text_horizontal_offset=_.qodef_background_text_horizontal_offset),void 0!==_.qodef_background_text_horizontal_offset_1440&&_.qodef_background_text_horizontal_offset_1440.length&&(a.background_text_horizontal_offset_1440=_.qodef_background_text_horizontal_offset_1440),void 0!==_.qodef_background_text_horizontal_offset_1366&&_.qodef_background_text_horizontal_offset_1366.length&&(a.background_text_horizontal_offset_1366=_.qodef_background_text_horizontal_offset_1366),void 0!==_.qodef_background_text_horizontal_offset_1024&&_.qodef_background_text_horizontal_offset_1024.length&&(a.background_text_horizontal_offset_1024=_.qodef_background_text_horizontal_offset_1024),void 0!==_.qodef_background_text_vertical_offset&&_.qodef_background_text_vertical_offset.length&&(a.background_text_vertical_offset=_.qodef_background_text_vertical_offset),void 0!==_.qodef_background_text_vertical_offset_1440&&_.qodef_background_text_vertical_offset_1440.length&&(a.background_text_vertical_offset_1440=_.qodef_background_text_vertical_offset_1440),void 0!==_.qodef_background_text_vertical_offset_1366&&_.qodef_background_text_vertical_offset_1366.length&&(a.background_text_vertical_offset_1366=_.qodef_background_text_vertical_offset_1366),void 0!==_.qodef_background_text_vertical_offset_1024&&_.qodef_background_text_vertical_offset_1024.length&&(a.background_text_vertical_offset_1024=_.qodef_background_text_vertical_offset_1024),void 0!==_.qodef_background_text_horizontal_align&&_.qodef_background_text_horizontal_align.length&&(a.background_text_horizontal_align=_.qodef_background_text_horizontal_align),void 0!==_.qodef_background_text_vertical_align&&_.qodef_background_text_vertical_align.length&&(a.background_text_vertical_align=_.qodef_background_text_vertical_align)}else{d=qodefElementorGlobal.vars.elementorColumnHandler;f.each(d,function(e,t){o=f('[data-id="'+e+'"]'),a.background_text=t[0],a.background_text_color=t[1],a.background_text_size=t[2],a.background_text_size_1440=t[3],a.background_text_size_1366=t[4],a.background_text_size_1024=t[5],a.background_text_horizontal_offset=t[6],a.background_text_horizontal_offset_1440=t[7],a.background_text_horizontal_offset_1366=t[8],a.background_text_horizontal_offset_1024=t[9],a.background_text_vertical_offset=t[10],a.background_text_vertical_offset_1440=t[11],a.background_text_vertical_offset_1366=t[12],a.background_text_vertical_offset_1024=t[13],a.background_text_horizontal_align=t[14],a.background_text_vertical_align=t[15],void 0!==a.background_text&&(a.background_text_enable="yes"),void 0!==o&&o.length&&n.generateOutput(o,a)})}void 0!==o&&n.generateOutput(o,a)},generateOutput:function(e,t){void 0!==t.background_text_enable&&"yes"==t.background_text_enable&&void 0!==t.background_text&&(f(".qodef-m-background-text-holder",e).remove(),e.removeClass("qodef-background-text"),e.addClass("qodef-background-text"),f('<div class="qodef-m-background-text-holder"><span class="qodef-m-background-text">'+t.background_text+"</span></div>").prependTo(e),e.find(".qodef-m-background-text").css({color:t.background_text_color}),e.find(".qodef-m-background-text-holder").css({"justify-content":t.background_text_horizontal_align,"align-items":t.background_text_vertical_align}),e.find(".qodef-m-background-text").attr("data-size-3840",t.background_text_size),e.find(".qodef-m-background-text").attr("data-size-1440",t.background_text_size_1440),e.find(".qodef-m-background-text").attr("data-size-1366",t.background_text_size_1366),e.find(".qodef-m-background-text").attr("data-size-1024",t.background_text_size_1024),e.find(".qodef-m-background-text").attr("data-horizontal-offset-3840",t.background_text_horizontal_offset),e.find(".qodef-m-background-text").attr("data-horizontal-offset-1440",t.background_text_horizontal_offset_1440),e.find(".qodef-m-background-text").attr("data-horizontal-offset-1366",t.background_text_horizontal_offset_1366),e.find(".qodef-m-background-text").attr("data-horizontal-offset-1024",t.background_text_horizontal_offset_1024),e.find(".qodef-m-background-text").attr("data-vertical-offset-3840",t.background_text_vertical_offset),e.find(".qodef-m-background-text").attr("data-vertical-offset-1440",t.background_text_vertical_offset_1440),e.find(".qodef-m-background-text").attr("data-vertical-offset-1366",t.background_text_vertical_offset_1366),e.find(".qodef-m-background-text").attr("data-vertical-offset-1024",t.background_text_vertical_offset_1024),qodefBackgroundText.init())}}}(jQuery);