PageSourceSearch

https://media.consumeraffairs.com/static/js/ca_homepage_animated.0cf0dd1864e3.js

js consumeraffairs.com collected 2026-09-24 06:23:31 UTC 3,425 bytes, 1 lines download raw bytes

1(()=>{var e={5190:e=>{(()=>{"use strict";var t={d:(e,s)=>{for(var n in s)t.o(s,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:s[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},s={};t.d(s,{default:()=>n});const n={CAPTURE_EXCEPTION_EVENT:"com.consumeraffairs.styleguide.logger.captureException",CAPTURE_MESSAGE_EVENT:"com.consumeraffairs.styleguide.logger.captureMessage"};e.exports=s.default})()}},t={};function s(n){var o=t[n];if(void 0!==o)return o.exports;var r=t[n]={exports:{}};return e[n](r,r.exports,s),r.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=s(5190),t=s.n(e);const n={SELECTORS:{animateText:".js-animate-text",howWeWorkScroll:".js-how-we-work-scroll"},CSS_VARS:{progress:"--progress"},CYCLING_TEXTS:["Brands","Resources","News","Reviews"]};class o{constructor(e){this._container=e,this._cachedValues={startPos:0,endPos:0,distance:0},this._container&&this._init()}_init(){this._bindMethods(),this._bindEvents(),this._updateOnScroll(),this._updateCachedValues()}_bindMethods(){this._throttledUpdateOnScroll=this._throttle(this._updateOnScroll.bind(this)),this._throttledUpdateCachedValues=this._throttle(this._updateCachedValues.bind(this))}_bindEvents(){window.addEventListener("scroll",this._throttledUpdateOnScroll,{passive:!0}),window.addEventListener("resize",this._throttledUpdateCachedValues,{passive:!0})}_throttle(e){let t=0,s=null;return(...n)=>{const o=Date.now();if(o-t<10)return s&&clearTimeout(s),void(s=setTimeout(()=>{t=o,e(...n)},10-(o-t)));t=o,e(...n)}}_updateCachedValues(){const e=window.innerHeight,{offsetTop:t,offsetHeight:s}=this._container,n=t+s-e,o=n-0;this._cachedValues={startPos:0,endPos:n,distance:o},this._updateOnScroll()}_getProgress(){const{startPos:e,endPos:t,distance:s}=this._cachedValues,n=window.scrollY;if(n<=e)return 0;if(n>=t)return 1;return(n-e)/s}_updateOnScroll(){const e=this._getProgress(),t=Math.min(e,.99);this._lastProgress!==t&&(this._lastProgress=t,this._container.style.setProperty(n.CSS_VARS.progress,t.toString()))}}new class{constructor(){this._setElements(),this._bindMethods(),this._init()}_setElements(){this._heroText=document.querySelector(n.SELECTORS.animateText)}_bindMethods(){this._typeSentence=this._typeSentence.bind(this),this._deleteSentence=this._deleteSentence.bind(this),this._cycle=this._cycle.bind(this)}_init(){this._heroText&&setTimeout(()=>{this._deleteSentence(this._heroText,()=>{this._cycle(n.CYCLING_TEXTS,this._heroText)})},1e3)}_typeSentence(e,t,s){const n=e.split("");let o=0;const r=()=>{o<n.length?(t.textContent+=n[o],o+=1,setTimeout(r,100)):s&&s()};r()}_deleteSentence(e,t){const s=e.textContent.split(""),n=()=>{s.length>0?(s.pop(),e.textContent=s.join(""),setTimeout(n,100)):t&&t()};n()}_cycle(e,t){try{let s=0;const n=()=>{s<e.length&&this._typeSentence(e[s],t,()=>{setTimeout(()=>{this._deleteSentence(t,()=>{setTimeout(()=>{s+=1,s>=e.length&&(s=0),n()},500)})},1500)})};n()}catch(e){this._dispatchErrorEvent(`[AnimateHeroText]: Error cycling through text. ${e.message}`)}}_dispatchErrorEvent(e){const s=new CustomEvent(t().CAPTURE_EXCEPTION_EVENT,{detail:{message:e}});window.dispatchEvent(s)}};document.querySelectorAll(n.SELECTORS.howWeWorkScroll).forEach(e=>{new o(e)})})()})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.