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B,CAAoC,CACnC,QAAQ,CAAC,SAAT,CAAmB,GAAnB,CAAuB,2BAAvB,EACA,CAFD,IAEO,CACN,QAAQ,CAAC,SAAT,CAAmB,GAAnB,CAAuB,0BAAvB,EACA,CAED,gBAAgB,CAAC,aAAjB,CAA+B,UAAY,CAG1C,GAAI,QAAQ,CAAC,SAAT,CAAmB,QAAnB,CAA4B,2BAA5B,CAAJ,CAA8D,QAAQ,CAAC,SAAT,CAAmB,MAAnB,CAA0B,2BAA1B,EAE9D,GAAI,gBAAgB,CAAC,eAArB,CAAsC,CACrC,QAAQ,CAAC,SAAT,CAAmB,GAAnB,CAAuB,0BAAvB,EACA,CAFD,IAEO,CACN,QAAQ,CAAC,SAAT,CAAmB,GAAnB,CAAuB,0BAAvB,EAEA,GAAI,CAAC,GAAK,CAAV,CAAa,QAAQ,CAAC,SAAT,CAAmB,GAAnB,CAAuB,6BAAvB,EACb,CACD,CAZD,EAaA,gBAAgB,CAAC,YAAjB,CAA8B,UAAY,CAEzC,QAAQ,CAAC,SAAT,CAAmB,MAAnB,CAA0B,0BAA1B,EACA,QAAQ,CAAC,SAAT,CAAmB,GAAnB,CAAuB,2BAAvB,EACA,CAJD,EAKH,CA9DA,CAAD","file":"sc_al4~sc_al4.min.js","sourcesContent":["$(function(){\n var n = 0;\n \n var $animation = document.querySelector('.av-animation');\n var $section = $animation.parentNode;\n var $items = $animation.querySelectorAll('.av-animation-item');\n var $texts = $animation.querySelectorAll('.av-animation-text');\n \n function initAfterEntryAnimationEnds() {\n \tn += 1;\n \n \t// show text on hover over icons\n \t$items.forEach(function (item, index, array) {\n \t\titem.addEventListener('mouseenter', function (event) {\n \t\t\titemMouseEnterListener(index);\n \t\t});\n \t});\n \t// remove text only when leave the whole animation area\n \t$animation.addEventListener('mouseleave', itemMouseLeaveListener);\n \t// remove listener because we need it to run only once\n \t$animation.removeEventListener('animationend', initAfterEntryAnimationEnds);\n }\n \n function itemMouseEnterListener(index) {\n \t$section.setAttribute('data-av-animation', index + 1);\n }\n \n function itemMouseLeaveListener(index) {\n \t$section.setAttribute('data-av-animation', 'all');\n }\n \n // run once the entry animation finishes\n $animation.addEventListener('animationend', initAfterEntryAnimationEnds);\n \n //\n // scrollMonitor.js\n var animationWatcher = scrollMonitor.create($animation, { top: -100, bottom: -100 });\n \n if (!animationWatcher.isInViewport) {\n \t$section.classList.add('av-animation-out-viewport');\n } else {\n \t$section.classList.add('av-animation-in-viewport');\n }\n \n animationWatcher.enterViewport(function () {\n \t// console.log( 'I have entered the viewport' );\n \n \tif ($section.classList.contains('av-animation-out-viewport')) $section.classList.remove('av-animation-out-viewport');\n \n \tif (animationWatcher.isAboveViewport) {\n \t\t$section.classList.add('av-animation-in-viewport');\n \t} else {\n \t\t$section.classList.add('av-animation-in-viewport');\n \n \t\tif (n === 0) $section.classList.add('av-animation-entry-animated');\n \t}\n });\n animationWatcher.exitViewport(function () {\n \t// console.log( 'I have left the viewport' );\n \t$section.classList.remove('av-animation-in-viewport');\n \t$section.classList.add('av-animation-out-viewport');\n });\n});"]}