(this.webpackJsonp=this.webpackJsonp||[]).push([[1],{1355:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.init=function(e){var n=e.model,t=e.manager,i=e.pageId;return t.setDefinitions(n),t.initAction("screenIn",i),(0,a.default)({model:n,manager:t})};var i,a=(i=t(1356))&&i.__esModule?i:{default:i}},1356:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n=e.model,t=e.manager,i="screenIn",a=.01,o={};function r(e){var n=e.filter(function(e){return e.visible}).map(function(e){return{compId:e.id,action:i}});t.trigger(n)}function s(e,n){var t=o[n]||function(e,n){var t={root:null,rootMargin:"0px",threshold:[n]};return new window.IntersectionObserver(function(n,t){var i=n.map(function(e){return{visible:e.isIntersecting,ratio:e.intersectionRatio,rect:e.intersectionRect,id:e.target.id}});n.forEach(function(e){return e.isIntersecting&&t.unobserve(e.target)}),e(i)},t)}(r,n);t.observe(e),o[n]||(o[n]=t)}return{start:function(){var e=window.innerHeight;Object.keys(n).filter(function(e){return Object.keys(n[e]).indexOf(i)>-1}).forEach(function(o){var r=document.getElementById(o);r&&s(r,r.offsetHeight>e?a:function(e,n,t){var a=n[t][i][0].name;return e.animationProperties[a].viewportThreshold}(t,n,o))})},stop:function(){Object.keys(o).forEach(function(e){return o[e].disconnect()}),o={}}}}},1357:function(e,n,t){"use strict";function i(e,n){if(null==e)return{};var t,i,a=function(e,n){if(null==e)return{};var t,i,a={},o=Object.keys(e);for(i=0;i=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}function a(e,n){for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:[],t=n.reduce(function(n,t){var i=t.compId,a=t.action,o=(e.definitions[i]||{})[a]||[];return n.concat(o)},[]);t.forEach(function(n){var t=n.action,a=i(n,["action"]);return e.executeAnimation(t,a)})}},{key:"initAction",value:function(e,n){switch(e){case"screenIn":this.stopAnimations([e],{idToKeep:n}),this.clearLocalStore(e,n),this.hideBeforeAnimation(e)}}},{key:"initComponentAction",value:function(e,n,t){var i=t.clearStore;(void 0===i||i)&&this.clearCompLocalStore(e,n),this._shouldHideComponent(e,n)&&this._hideCompBeforeAnimation(e,n)}},{key:"executeAnimation",value:function(e,n){var t=this,i=n.name,a=n.targetId,o=n.pageId,s=n.duration,c=void 0===s?0:s,u=n.delay,l=void 0===u?0:u,d=n.playOnce,f=void 0!==d&&d,v=n.persistOnNav,m=void 0!==v&&v,p=n.params,h=void 0===p?{}:p,y=r(a,e);switch(e){case"screenIn":if(this._shouldSkipPlayedAnimation(y))break;var g={props:"clip,clipPath,webkitClipPath,willChange,opacity,transform,transform-origin",immediateRender:!1},w=document.querySelector("#".concat(a)),S=function(n){t.sessionState.running.delete(n),t._removeAnimatingFlag(w,e)},k=S;this.animator.sequence({callbacks:{onStart:function(n){t.sessionState.running.set(n,{targetId:a,action:e,id:o})},onComplete:S,onInterrupt:k}}).add(this.animator.animate(i,w,c,l,h),0).add(this.animator.animate("BaseClear",w,0,0,g)),this.localState.screenIn.played.set(y,{targetId:a,id:o}),this.sessionState.played.set(y,{playOnce:f,persistOnNav:m})}}},{key:"preventPendingScreenInAnimation",value:function(e){var n=r(e,"screenIn");this.localState.screenIn.played.set(n,{targetId:e}),this._unhideComponent(e,"screenIn")}},{key:"stopAnimations",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.skipPersistent,a=void 0===i||i,o=t.idToKeep;this.sessionState.running.forEach(function(t,i){var s=t.targetId,c=t.action,u=t.id,l=r(s,c),d=!n.length||n.includes(c),f=a&&e.sessionState.played.get(l).persistOnNav;d&&!f&&o!==u&&e.animator.kill(i,1)})}},{key:"clearLocalStore",value:function(e,n){var t=this,i=n.idToKeep,a=this.localState[e];a&&a.played.forEach(function(e,n){var o=e.targetId,r=e.id;t.definitions[o]&&i===r||a.played.delete(n)})}},{key:"clearCompLocalStore",value:function(e,n){var t=this.localState[n];if(t){var i=r(e,n);t.played.delete(i)}}}])&&a(n.prototype,t),s&&a(n,s),e}();n.AnimationManager=s},147:function(e,n,t){"use strict";var i=t(1351),a=t(1353),o=t(1355).init,r=t(1357).AnimationManager,s=null;e.exports={runWarmupAnimations:function(e,n,t,c,u,l){var d,f=e["santa-animations"],v=e.gsap3,m=e.TweenMax,p=e.TimelineMax,h=e.ScrollToPlugin3;return d=function(){var e=l?i.create(v.gsap,[h.ScrollToPlugin]):a.create(m,p),d=new r({santaAnimations:f,tweenEngineAndFactory:e},n),y=window.warmupData&&!t&&window.warmupData.animationData||{},g=window.rootNavigationInfo?window.rootNavigationInfo.pageId:"",w=!!Object.keys(y).length;s=o({manager:d,model:y,pageId:g}),w&&(s.start(),u(!0)),c(d)},void("loading"===document.readyState?window.document.addEventListener("DOMContentLoaded",d):Promise.resolve().then(d))},stopWarmupAnimations:function(){return s&&s.stop()}}}}]); //# sourceMappingURL=bolt-main-r.animations.js.map