PageSourceSearch

https://www.cupraofficial.co.uk/etc.clientlibs/cupra-website/compo…-bf2e163a0622fe37603b861cff782220-lc.min.js

js cupraofficial.co.uk collected 2026-09-28 06:39:10 UTC 2,941 bytes, 6 lines download raw bytes

1'use strict';const imageTitleCardsComponent=(d,h)=>{const e={container:h+"__slider-container",title:h+"__title",top:h+"__top",items:h+"__slider-wrapper",item:"cmp-image-title-cards-card",itemLink:"cmp-image-title-cards-card__link"};let k=[],f,m,l=CommonUtils.viewports.isMobile();const r=d.querySelector(`.${e.title}`),t=d.querySelector(`.${e.top}`),v=Object.freeze({...SwiperCustom.navigationObj(),loop:!0,pagination:{}}),{ANALYTICS:g}=CommonUtils.analytics,w=b=>Array.from(b).forEach(a=>a.firstElementChild||
2a.remove()),u=b=>{f=d.querySelectorAll(`.${e.item}`).length;var a=CommonUtils.viewports,c=(a.isXS()||a.isS())&&1<f,n=a.isM()&&2<f,p=a.isL()&&3<f,q=(a.isXL()||a.isXXL())&&4<f;m=a.getViewport();c||n||p||q?(5>=f&&x(b),t.classList.add(`${e.top}--left`),SwiperCustom.changeMultiClassSwiper(d,"add",e),b=SwiperCustom,c=b.addSwiper,n=k,p=l?600:5E3,q=l?!1:{delay:0},a=a.isXS()?16:a.isS()?24:a.isM()||a.isL()||a.isXL()?32:48,k=c.call(b,d,n,{...v,speed:p,autoplay:q,spaceBetween:a,allowTouchMove:l}),l||(a=d.querySelector(`.${e.container}`),
3b=k[0],y(a,b),z(a,b))):k[0]?.destroy()},y=(b,a)=>{b.addEventListener("mouseenter",()=>{a.setTranslate(a.getTranslate());a.autoplay.stop();const c=a.wrapperEl;c&&(c.style.transition="transform 500ms ease-out",c.style.transform=getComputedStyle(c).transform);a.params&&(a.params.speed=600)})},z=(b,a)=>{b.addEventListener("mouseleave",()=>{const c=a.wrapperEl;c&&(c.style.transition="");a.params&&(a.params.speed=5E3);a.autoplay.start();a.slideTo(a.activeIndex,2800,!1)})},x=b=>{Array.from(b).forEach(a=>
4a.parentNode.appendChild(a.cloneNode(!0)))},A=()=>{if("undefined"!==typeof buttonComponentGlobalUtils){var b=d.querySelectorAll(`.${CommonUtils.dom.CSS_CLASS.button.container}, .${e.itemLink}`);Array.prototype.forEach.call(b,a=>{a.addEventListener("click",()=>{{const c={[g.elementName]:r?.textContent.trim(),[g.eventName]:g.EventNames.clickCard,[g.ctaType]:g.CtaTypes.card};buttonComponentGlobalUtils.sendAnalytics(d,a,c,a.href)}})})}};window.addEventListener("resize",()=>{if(!(2>f)){var b=CommonUtils.viewports.getViewport();
5l=CommonUtils.viewports.isMobile();{var a=m.label;const c=b.label;a=b!==m&&!("XXL"===c&&"XL"===a)&&!("XL"===c&&"L"===a)&&!("XS"===c&&"S"===a)&&!("S"===c&&"XS"===a)}a&&(t.classList.remove(`${e.top}--left`),m=b,k=SwiperCustom.destroy(k),b=d.getElementsByClassName("cmp-image-title-cards-card"),u(b))}});(()=>{var b=d.getElementsByClassName("cmp-image-title-cards-card");b.length&&(d.querySelector(`.${e.container}`)?.children[0]?.classList.add(e.items),w(b),u(b),A(),"undefined"!==typeof buttonComponentGlobalUtils&&
6(b={[g.elementName]:r?.textContent.trim(),[g.generic]:"bottom center"},buttonComponentGlobalUtils.attachClickHandlersWithSendAnalytics(d,b)))})()};CommonUtils.dom.domReady(d=>{CommonUtils.aem.isAuthorEdit()||(d=d.getElementsByClassName("cmp-image-title-cards"),Array.prototype.forEach.call(d,h=>imageTitleCardsComponent(h,"cmp-image-title-cards")))});

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.