(this.webpackJsonp=this.webpackJsonp||[]).push([[0],{1037:function(e,t,n){"use strict";var r=n(1038),o=n(1042);e.exports={create:function(e,t){var n=o.create(e,t);return{factory:r.create(),engine:n}}}},1038:function(e,t,n){"use strict";var r=n(42),o=n(1039);e.exports={create:function(){var e={animations:{},transitions:{},properties:{}};function t(t){this.timeline=e.animations.BaseSequence(t?r.cloneDeep(t):{})}return t.prototype.add=function(e,t,n){return t=void 0===t?"+=0":t,n=n||"normal",this.timeline.add(e,t,n),this},t.prototype.get=function(){return this.timeline},t.prototype.event=function(e,t){for(var n,r=arguments.length,o=Array(r>2?r-2:0),i=2;i1){a=i[1].split("&");var c=r.findIndex(a,function(e){return o.startsWith(e,t+"=")});-1!==c&&(a[c]=t+"="+String(n),s=!0)}return s||a.push(t+"="+String(n)),i[1]=a.join("&"),e=i.join("?")},setUrlParams:function(e,t){var n=f(e);return r.assign(n.query,t),h(n,!0)},isExternalUrl:v,isRelativeUrl:function(e){return/^\/(.*)/.test(e)},isUrlEmptyOrNone:function(e){return!e||!e.trim()||"none"===e.toLowerCase()},updateUrl:function(e){window.history&&window.history.replaceState?window.history.replaceState({},"",e):console.error("window.history is not supported in this OLD browser!")},parseUrl:f,parseUrlParams:m,buildFullUrl:h,isQueryParamOn:function(e,t){return r.has(e.query,t)&&"false"!==e.query[t]},isTrue:function(e,t){return"true"===y(e,t)},isSame:function(e,t){return g(e)===g(t)},joinURL:function(){for(var e=arguments[0],t=1;t0&&n.height>0&&(n.leftr.right&&(r.right=n.right),n.topr.bottom&&(r.bottom=n.bottom));var c=i(e,"div");c.length&&o(e)&&s(e,t,c,r)}),r.width=r.right-r.left,r.height=r.bottom-r.top,r}e.exports={getElementRect:a,getBoundingRect:function(e,t,n){n=n||"undefined"!=typeof window&&window;var r=a(e,t);if(n){var o=n.scrollY||n.scrollTop||0,i=n.scrollX||n.scrollLeft||0;r.top-=o,r.bottom-=o,r.left-=i,r.right-=i}return r},getContentRect:s,getBoundingContentRect:function(e,t,n){n=n||"undefined"!=typeof window&&window;var r=s(e,t);if(n){var o=n.pageYOffset||n.scrollTop||0,i=n.pageXOffset||n.scrollLeft||0;r.top-=o,r.bottom-=o,r.left-=i,r.right-=i}return r}}},1044:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.init=function(e){var t=e.model,n=e.manager,r=e.pageId;return n.setDefinitions(t),n.initAction("screenIn",r),(0,o.default)({model:t,manager:n})};var r,o=(r=n(1045))&&r.__esModule?r:{default:r}},1045:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.model,n=e.manager,r="screenIn",o=.01,i={};function a(e){var t=e.filter(function(e){return e.visible}).map(function(e){return{compId:e.id,action:r}});n.trigger(t)}function s(e,t){var n=i[t]||function(e,t){var n={root:null,rootMargin:"0px",threshold:[t]};return new window.IntersectionObserver(function(t,n){var r=t.map(function(e){return{visible:e.isIntersecting,ratio:e.intersectionRatio,rect:e.intersectionRect,id:e.target.id}});t.forEach(function(e){return e.isIntersecting&&n.unobserve(e.target)}),e(r)},n)}(a,t);n.observe(e),i[t]||(i[t]=n)}return{start:function(){var e=window.innerHeight;Object.keys(t).filter(function(e){return Object.keys(t[e]).indexOf(r)>-1}).forEach(function(i){var a=document.getElementById(i);a&&s(a,a.offsetHeight>e?o:function(e,t,n){var o=t[n][r][0].name;return e.animationProperties[o].viewportThreshold}(n,t,i))})},stop:function(){Object.keys(i).forEach(function(e){return i[e].disconnect()}),i={}}}}},1046:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function o(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:[],n=t.reduce(function(t,n){var r=n.compId,o=n.action,i=(e.definitions[r]||{})[o]||[];return t.concat(i)},[]);n.forEach(function(t){var n=t.action,o=r(t,["action"]);return e.executeAnimation(n,o)})}},{key:"initAction",value:function(e,t){switch(e){case"screenIn":this.stopAnimations([e],{idToKeep:t}),this.clearLocalStore(e,t),this.hideBeforeAnimation(e)}}},{key:"initComponentAction",value:function(e,t,n){var r=n.clearStore;(void 0===r||r)&&this.clearCompLocalStore(e,t),this._shouldHideComponent(e,t)&&this._hideCompBeforeAnimation(e,t)}},{key:"executeAnimation",value:function(e,t){var n=this,r=t.name,o=t.targetId,i=t.pageId,s=t.duration,c=void 0===s?0:s,u=t.delay,l=void 0===u?0:u,d=t.playOnce,f=void 0!==d&&d,p=t.persistOnNav,m=void 0!==p&&p,h=t.params,v=void 0===h?{}:h,g=a(o,e);switch(e){case"screenIn":if(this._shouldSkipPlayedAnimation(g))break;var y=this.animator.sequence({callbacks:{onStart:function(t){return n.sessionState.running.set(t,{targetId:o,action:e,id:i})},onComplete:function(e){return n.sessionState.running.delete(e)},onInterrupt:function(e){return n.sessionState.running.delete(e)}}}),w={props:"clip,clipPath,webkitClipPath,willChange,opacity,transform,transformOrigin",immediateRender:!1},b=document.querySelector("#".concat(o));y.add(this.animator.animate(r,b,c,l,v),0).add(this.animator.animate("BaseClear",b,0,0,w)),this.localState.screenIn.played.set(g,{targetId:o,id:i}),this.sessionState.played.set(g,{playOnce:f,persistOnNav:m})}}},{key:"preventPendingScreenInAnimation",value:function(e){var t=a(e,"screenIn");this.localState.screenIn.played.set(t,{targetId:e}),this._unhideComponent(e)}},{key:"stopAnimations",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.skipPersistent,o=void 0===r||r,i=n.idToKeep;this.sessionState.running.forEach(function(n,r){var s=n.targetId,c=n.action,u=n.id,l=a(s,c),d=!t.length||t.includes(c),f=o&&e.sessionState.played.get(l).persistOnNav;d&&!f&&i!==u&&e.animator.kill(r,1)})}},{key:"clearLocalStore",value:function(e,t){var n=this,r=t.idToKeep,o=this.localState[e];o&&o.played.forEach(function(e,t){var i=e.targetId,a=e.id;n.definitions[i]&&r===a||o.played.delete(t)})}},{key:"clearCompLocalStore",value:function(e,t){var n=this.localState[t];if(n){var r=a(e,t);n.played.delete(r)}}}])&&o(t.prototype,n),s&&o(t,s),e}();t.AnimationManager=s},155:function(e,t,n){"use strict";var r=n(1037),o=n(1044).init,i=n(1046).AnimationManager,a=null;e.exports={runWarmupAnimations:function(e,t,n,s,c){var u,l=e["santa-animations"],d=e.TweenMax,f=e.TimelineMax;return u=function(){var e=r.create(d,f),u=new i({santaAnimations:l,tweenEngineAndFactory:e},t),p=window.warmupData&&!n&&window.warmupData.animationData||{},m=window.rootNavigationInfo?window.rootNavigationInfo.pageId:"",h=!!Object.keys(p).length;a=o({manager:u,model:p,pageId:m}),h&&(a.start(),c(!0)),s(u)},void("loading"===document.readyState?window.document.addEventListener("DOMContentLoaded",u):Promise.resolve().then(u))},stopWarmupAnimations:function(){return a&&a.stop()}}}}]); //# sourceMappingURL=bolt-main-r.animations.js.map