!function(i){"use strict";i(window).on("elementor/frontend/init",function(){t.init(),e.init(),o.init(),a.init(),n.init()});var t={init:function(){if(Boolean(elementorFrontend.isEditMode()))for(var e in qodefCore.shortcodes)for(var o in qodefCore.shortcodes[e])t.reInitShortcode(e,o)},reInitShortcode:function(o,t){elementorFrontend.hooks.addAction("frontend/element_ready/"+o+".default",function(e){void 0===qodefCore.shortcodes[o][t]?console.log(t):"function"==typeof qodefCore.shortcodes[o][t].initSlider&&e.find(".qodef-instagram-swiper-container").length?qodefCore.shortcodes[o][t].initSlider(e.find(".qodef-instagram-swiper-container"),!1):"function"==typeof qodefCore.shortcodes[o][t].initSlider?e.find(".qodef-swiper-container").length&&qodefCore.shortcodes[o][t].initSlider(e.find(".qodef-swiper-container")):"function"==typeof qodefCore.shortcodes[o][t].initPopup&&e.find(".qodef-magnific-popup").length?qodefCore.shortcodes[o][t].initPopup(e.find(".qodef-magnific-popup")):"function"==typeof qodefCore.shortcodes[o][t].initItem&&e.find(".qodef-shortcode").length?qodefCore.shortcodes[o][t].initItem(e.find(".qodef-shortcode")):qodefCore.shortcodes[o][t].init()})}},e={init:function(){elementorFrontend.hooks.addAction("frontend/element_ready/section",o.init)}},o={init:function(e){var o=e;Boolean(elementorFrontend.isEditMode())&&void 0!==e?d.editModeInit(o):(e=qodefElementorGlobal.vars.elementorSectionHandler,d.frontendModeInit(o,e))}},a={init:function(){elementorFrontend.hooks.addAction("frontend/element_ready/container",n.init)}},n={init:function(e){var o=e;Boolean(elementorFrontend.isEditMode())&&void 0!==e?d.editModeInit(o):(e=qodefElementorContainerGlobal.vars.elementorContainerHandler,d.frontendModeInit(o,e))}},d={editModeInit:function(e){var o=window.elementor.elements,t=e.data("id"),a=e.hasClass("e-con--column")||e.hasClass("elementor-inner-section"),n=[],r={};i.each(o.models,function(e,o){t==o.id?r=o.attributes.settings.attributes:a&&void 0!==o.attributes.elements.models&&o.attributes.elements.models.length&&i.each(o.attributes.elements.models,function(e,o){void 0!==o.attributes.settings.attributes&&t==o.attributes.id&&(r=o.attributes.settings.attributes)})}),void 0!==r.qodef_parallax_type&&(n.enable_parallax=r.qodef_parallax_type),void 0!==r.qodef_parallax_image&&r.qodef_parallax_image.url&&(n.parallax_image_url=r.qodef_parallax_image.url),void 0!==r.qodef_offset_type&&(n.enable_offset=r.qodef_offset_type),void 0!==r.qodef_offset_image&&r.qodef_offset_image.url&&(n.offset_image_url=r.qodef_offset_image.url),void 0!==r.qodef_offset_top&&(n.offset_top=r.qodef_offset_top),void 0!==r.qodef_offset_left&&(n.offset_left=r.qodef_offset_left),void 0!==r.qodef_enable_background_text&&(n.enable_background_text=r.qodef_enable_background_text),void 0!==r.qodef_background_text&&(n.background_text=r.qodef_background_text),void 0!==r.qodef_background_text_top&&(n.background_text_top=r.qodef_background_text_top),void 0!==r.qodef_background_text_appear_animation&&(n.enable_background_text_appear_animation=r.qodef_background_text_appear_animation),void 0!==e&&d.generateOutput(e,n)},frontendModeInit:function(t,e){var a=[],o=qodefElementorGlobal.vars.elementorBackgroundTextSection;i.each(e,function(o,e){e.forEach(function(e){void 0!==e.parallax_type&&"parallax"===e.parallax_type&&(t=i('[data-id="'+o+'"]'),a.parallax_type=e.parallax_type,a.parallax_image_url=e.parallax_image.url,void 0!==a.parallax_image_url&&(a.enable_parallax="parallax")),void 0!==e.offset_type&&"offset"===e.offset_type&&(t=i('[data-id="'+o+'"]'),a.offset_type=e.offset_type,a.offset_image_url=e.offset_image.url,a.offset_top=e.offset_top,a.offset_left=e.offset_left,void 0!==a.offset_image_url&&(a.enable_offset="offset"))}),void 0===t||t.hasClass("qodef-parallax--init")||(d.generateOutput(t,a),a=[])}),i.each(o,function(e,o){t=i('[data-id="'+e+'"]'),a.background_text=o[0],a.background_text_top=o[1],a.background_text_appear_animation=o[2],void 0!==a.background_text&&(a.enable_background_text="yes"),void 0!==t&&t.length&&d.generateBackgroundTextOutput(t,a)})},generateOutput:function(e,o){var t;void 0!==o.enable_parallax&&"parallax"===o.enable_parallax&&void 0!==o.parallax_image_url&&(i(".qodef-parallax-row-holder",e).remove(),e.removeClass("qodef-parallax qodef--parallax-row"),e.addClass("qodef-parallax qodef--parallax-row"),i('<div class="qodef-parallax-row-holder"><div class="qodef-parallax-img-holder"><div class="qodef-parallax-img-wrapper"><img class="qodef-parallax-img" src="'+o.parallax_image_url+'" alt="Parallax Image"></div></div></div>').prependTo(e),(t=new Image).onload=function(){e.find("img.qodef-parallax-img").attr("src",this.src),qodefCore.qodefParallaxBackground.ready(e)},t.src=o.parallax_image_url),void 0!==o.enable_offset&&"offset"===o.enable_offset&&void 0!==o.offset_image_url&&(i(".qodef-offset-image-holder",e).remove(),e.removeClass("qodef-offset-image"),e.addClass("qodef-offset-image"),i('<div class="qodef-offset-image-holder" style="position: absolute; z-index: 5; top:'+o.offset_top+"; left:"+o.offset_left+'"><div class="qodef-offset-image-wrapper"><img src="'+o.offset_image_url+'" alt="Offset Image"></div></div>').prependTo(e))},generateBackgroundTextOutput:function(e,o){void 0!==o.background_text&&""!==o.background_text&&"no"!==o.enable_background_text&&(i(".qodef-background-text-inner",e).remove(),e.css({overflow:"visible"}),i(".qodef-parallax-img-holder",e).remove(),e.removeClass("qodef-parallax qodef--parallax-row"),e.css({overflow:"hidden"}),(""!==o.background_text_top?i('<div class="qodef-background-text-inner"  style="top:'+o.background_text_top+'"><span>'+o.background_text+'</span><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="87px" height="87px" viewBox="0 0 87 87" style="enable-background:new 0 0 87 87;" xml:space="preserve"><g><g><circle cx="43.5" cy="43.5" r="43.5"/><circle cx="43.5" cy="43.5" r="43"/></g></g></svg></div>'):i('<div class="qodef-background-text-inner"><span>'+o.background_text+'</span><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="87px" height="87px" viewBox="0 0 87 87" style="enable-background:new 0 0 87 87;" xml:space="preserve"><g><g><circle cx="43.5" cy="43.5" r="43.5"/><circle cx="43.5" cy="43.5" r="43"/></g></g></svg></div>')).prependTo(e),void 0!==o.background_text_appear_animation&&"yes"===o.background_text_appear_animation&&(e.addClass("qodef-background-text-appear-animation--yes"),setTimeout(()=>{d.appearAnimation()},100)))},appearAnimation(){var e=i(".qodef-background-text-inner");e.length&&e.each((e,o)=>{const t=i(o);t.parent().hasClass("qodef-background-text-appear-animation--yes")&&qodefCore.qodefIsInViewport.check(t,()=>{t.addClass("qodef--appeared")})})}}}(jQuery);