PageSourceSearch

https://www.hubspot.es/hubfs/hub_generated/template_assets/1/19447…/template_logo-carousel.min.js

js hubspot.es collected 2026-10-01 07:58:17 UTC 3,951 bytes, 2 lines download raw bytes

1(()=>{"use strict";function t(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function e(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function r(t){var e=function(t){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var a=r.call(t,"string");if("object"!=n(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==n(e)?e:e+""}function a(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,r(a.key),a)}}var o=function(){return t=function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.element=e,this.playPauseButton=e.querySelector('[data-carousel-control="play-pause"]'),this.prefersReducedMotion=window.matchMedia("(prefers-reduced-motion: reduce)").matches;var r="false"!==e.dataset.autoPlay;this.isPlaying=r&&!this.prefersReducedMotion,e.setAttribute("data-auto-play",this.isPlaying.toString()),r&&this.prefersReducedMotion&&this.announceState(this.playPauseButton.dataset.announcementMotionDisabled),this.playPauseButton.addEventListener("click",function(){n.toggle()}),window.requestAnimationFrame(function(){return n.fillTrack()}),window.addEventListener("load",function(){return n.fillTrack()},{once:!0})},(n=[{key:"fillTrack",value:function(){var t=this.element.querySelector("[data-carousel-track]"),n=this.element.querySelector(".csl-logo-carousel__track-wrapper");if(t&&null!=n&&n.clientWidth){if(!this.prefersReducedMotion&&t.scrollWidth<2*n.clientWidth){for(var r=parseFloat(window.getComputedStyle(t).getPropertyValue("--carousel-duration"))||20,a=1,o=e(t.children),i=0;t.scrollWidth<2*n.clientWidth&&i++<64;)o.forEach(function(e){var n=e.cloneNode(!0);n.classList.add("csl-logo-carousel__slide--duplicate"),n.setAttribute("aria-hidden","true"),n.querySelectorAll("img").forEach(function(t){t.alt="",t.loading="lazy"}),t.appendChild(n)}),a++;t.style.setProperty("--carousel-duration","".concat(r*a,"s"))}this.element.setAttribute("data-carousel-ready","")}}},{key:"toggle",value:function(){this.isPlaying=!this.isPlaying;var t=this.isPlaying?this.playPauseButton.dataset.labelPause:this.playPauseButton.dataset.labelPlay;this.playPauseButton.setAttribute("aria-label",t),this.element.setAttribute("data-auto-play",this.isPlaying.toString());var e=this.isPlaying?this.playPauseButton.dataset.announcementPlaying:this.playPauseButton.dataset.announcementPaused;this.announceState(e)}},{key:"announceState",value:function(t){var e=this.element.querySelector(".csl-logo-carousel__status");e&&(e.textContent=t)}}])&&a(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n}(),i=function(){return e(document.querySelectorAll(".csl-logo-carousel")).map(function(t){return new o(t)})};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",i):i()})();
2//# sourceURL=https://53.fs1.hubspotusercontent-na1.net/hubfs/53/hub_generated/template_assets/1/194475328910/1786554943863/template_logo-carousel.js

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.