(()=>{"use strict";var e={n:t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},d:(t,n)=>{for(var i in n)e.o(n,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:n[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window.wp.domReady;var n=e.n(t);const i=window.jQuery;var s=e.n(i);const{pluginMainSlug:a,pluginMainCamelCaseName:r}={pluginMainSlug:"gutenify",pluginMainCamelCaseName:"gutenify",pluginMainFunctionPrefix:"gutenify"};n()((function(){s()((function(e){const t=()=>{const t=e("body");e(`.${a}-container-stretch`).each((function(){const n=e(this),i="full-stretched-padded"===n.data("stretch-type")?"":0,s=e(this).children();s.css({"margin-left":0,"margin-right":0,"padding-left":i,"padding-right":i});const r=n.offset().left-t.offset().left,o=t.outerWidth()-r-n.parent().outerWidth();s.css({"margin-left":-r+"px","margin-right":-o+"px","padding-left":r+"px","padding-right":o+"px"}),n.hasClass(`${a}-container-full-width-stretch`)&&s.css({"padding-left":0,"padding-right":0}),e(this).trigger("containerStretched")}))};e(window).on("resize load",(()=>{t()})),window.addEventListener("scroll",(function(){(function(e){if(0==e.length)return;const t=jQuery(window),n=t.scrollTop(),i=t.height(),s=n+i,a=jQuery(e),r=a.offset().top,o=a.height(),l=r+o;return r>=n&&rn&&l<=s||o>i&&r<=n&&l>=s})(e(`.${a}--invisible`))&&e(`.${a}--invisible`).removeClass(`${a}--invisible`)})),setTimeout((()=>{const t=new ScrollMagic.Controller;e(":not(.swiper-slide) .animated").each((function(){const n=e(this)[0];null===n.closest(".swiper-slide")&&new ScrollMagic.Scene({triggerElement:n,triggerHook:"onEnter",offset:50}).addTo(t).on("enter",(function(t){const i=e(t.target.triggerElement());for(let e=0;e{e(".swiper-wrapper .swiper-slide-active .animated").each((function(){const n=e(this)[0];new ScrollMagic.Scene({triggerElement:n,triggerHook:"onEnter",offset:50}).addTo(t).on("enter",(function(t){const i=e(t.target.triggerElement());for(let e=0;e{n()}),!1)}),0)}))}))})();