(self.webpackChunkfancy_animations_src=self.webpackChunkfancy_animations_src||[]).push([[487],{706:function(e,t,r){"use strict";r(182);let o=!1,s=document.querySelector("#fancy_animations\\:builder-iframe\\.css-css");const n=s.cloneNode(!0);let a=document.createElement("style");a.setAttribute("id","fancy-animations-common-style"),a.appendChild(document.createTextNode("\n    [class^=fb-anim--], [class*=fb-anim--], [class^=fb-anim--]:after, [class*=fb-anim--]:after {\n        opacity: 1 !important;\n    }\n"));const i=a.cloneNode(!0);function l(){let e=document.querySelector(".brx-body.iframe.mounted");return Array.from(e.querySelectorAll('.fb-anim, [class*=" fb-anim--"]')).filter((e=>e.classList.value.split(" ").some(elementFilterCb)))}const c={childList:!0,subtree:!0,attributes:!0,attributeFilter:["class"],attributeOldValue:!0},m=new MutationObserver((function(e){e.forEach((function(e){if(e.addedNodes.forEach((e=>{if(e.nodeType===Node.ELEMENT_NODE&&o){const t=e=>{e.nodeType===Node.ELEMENT_NODE&&(e.classList.value.split(" ").some(elementFilterCb)&&hookElement(e),e.childNodes.forEach((e=>{t(e)})))};t(e)}})),"attributes"===e.type){let t=Array.from(e.target.classList.value.split(" ")),r=Array.from(e.oldValue.split(" "));if(o){const o=new Set(t.filter(elementFilterCb)),s=new Set(r.filter(elementFilterCb));if(e.target.style.removeProperty(cssPropName),o.size>0){const r=t.some((e=>e.startsWith("fb-hover--")));if(r||e.target.style.setProperty("filter",propertyVal),o.size>1&&![...o].every((e=>s.has(e))))setTimeout((()=>{const t=[...o].join(", ");e.target.style.setProperty(cssPropName,t)}),10);else{if(r)return;const t=[...o].join(", ");e.target.style.setProperty(cssPropName,t)}}}}}))}));function u(e){e?(l().forEach((e=>{hookElement(e)})),null===s&&(s=n.cloneNode(!0)),document.head.appendChild(s),null!==a&&(a.remove(),a=null)):(observer.disconnect(),l().forEach((e=>{!function(e){e.style.removeProperty(cssPropName),e.removeEventListener("mouseover",hoverableElement)}(e)})),null!==s&&(s.remove(),s=null),null===a&&(a=i.cloneNode(!0)),document.head.appendChild(a))}(async()=>{await new Promise((e=>{const t=setInterval((()=>{document.querySelector(".brx-body.iframe.mounted")&&(clearInterval(t),e())}),100)})),u(!1),m.observe(document.querySelector(".brx-body.iframe.mounted"),c),window.addEventListener("message",(async function(e){"object"==typeof e.data&&e.data.hasOwnProperty("type")&&"fancy-animations"===e.data.type&&(u(e.data.value),o=e.data.value)}))})()},182:function(){const e=e=>e.startsWith("fb-anim--")&&!e.includes("--delay")&&!e.includes("--t-")&&!e.includes("--infinite")&&!e.includes("--loop"),t="--fb-anim-name",r="1";const o={root:document,rootMargin:"0px 4000px 0px 4000px",threshold:0},s=new IntersectionObserver((function(o){o.forEach((o=>{const s=o.target,n=new Set(Array.from(s.classList).filter(e));o.isIntersecting&&n.size>0&&n.add("fb-anim--visible"),o.isIntersecting||s.style.opacity!==r||fba_execute_once||s.style.removeProperty("opacity"),fba_execute_once&&s.style.getPropertyValue(t)||fba_execute_once&&"true"===s.style.getPropertyValue("--observer-hover")||(s.style.removeProperty(t),o.isIntersecting&&n.size>0&&s.style.setProperty(t,[...n].join(", ")))}))}),o);function n(e){Array.from(e.target.classList).some((e=>e.startsWith("fb-hover--")))&&(e.target.style.removeProperty(t),e.target.style.setProperty("opacity",r),e.target.style.setProperty("--observer-hover","true"))}Array.from(document.querySelectorAll('.fb-anim, [class*=" fb-anim--"]')).filter((t=>t.classList.value.split(" ").some(e))).forEach((e=>{!function(e){s.observe(e),e.addEventListener("mouseover",n)}(e)}))}},function(e){var t;t=706,e(e.s=t)}]);