PageSourceSearch

https://www.carsupermarket.com/_nuxt/afbed5d.js

js carsupermarket.com collected 2026-09-25 06:51:35 UTC 10,551 bytes, 1 lines download raw bytes

1(window.webpackJsonp=window.webpackJsonp||[]).push([[936,99,100,102],{1471:function(t,e,n){t.exports={}},1832:function(t,e,n){"use strict";n.r(e);n(482);var l=n(112),o=(n(1471),{name:"manufacturer-models-carousel",mixins:[l.a],props:{componentName:{default:"manufacturer-models-carousel",type:String},content:{default:{theme:null,main_heading:"Manufacturer models carousel",sub_heading:"Amet eius eligendi est nihil non odio quis quos ullam veritatis voluptatum? Molestias nulla perferendis sunt",button:{url:"#",text:"View all",newTab:"_blank"},image_sets:[{image:{src:"https://images.unsplash.com/photo-1599840688938-6758b38102c0?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxzZWFyY2h8MjJ8fGNhciUyMHN0dW50fGVufDB8fDB8fA%3D%3D&auto=format&fit=crop&w=500&q=60",alt_text:"Image alt text"},title:"",label:"",link:{url:"#",button_text:"Link"}}]},type:Object}},computed:{slidesToShow:function(){var t,e=null===(t=this.content)||void 0===t||null===(t=t.image_sets)||void 0===t?void 0:t.length;return e?Math.min(e,6):6}}}),r=n(0),component=Object(r.a)(o,(function(){var t=this,e=t._self._c;return t.content?e("section",{class:[t.componentName,{dark:t.content.theme&&"dark"===t.content.theme}]},[e("carousel",{attrs:{content:{theme:t.content.theme,heading:t.content.main_heading,subheading:t.content.sub_heading,button:t.content.button,slideLength:t.content.image_sets.length,slidesToShowTablet:3,slidesToShowXlTablet:3,slidesToShow:t.slidesToShow},data:t.content.image_sets}},t._l(t.content.image_sets,(function(n,l){var o,r,c,d,h,v,f,m,_;return e("article",{key:"set-"+l,staticClass:"card-wrapper splide__slide"},[e(null!=n&&null!==(o=n.link)&&void 0!==o&&o.url?t.isExternalUrl(n.link.url)?"a":"NuxtLink":"div",{tag:"component",staticClass:"image-container",attrs:{to:null!=n&&null!==(r=n.link)&&void 0!==r&&r.url&&!t.isExternalUrl(n.link.url)?n.link.url:void 0,href:null!=n&&null!==(c=n.link)&&void 0!==c&&c.url&&t.isExternalUrl(n.link.url)?n.link.url:void 0,target:null!=n&&null!==(d=n.link)&&void 0!==d&&d.url&&t.isExternalUrl(n.link.url)?"_blank":null,rel:null!=n&&null!==(h=n.link)&&void 0!==h&&h.url&&t.isExternalUrl(n.link.url)?"noopener noreferrer":null,title:null!=n&&null!==(v=n.link)&&void 0!==v&&v.url?"View more":null}},[null!=n&&null!==(f=n.image)&&void 0!==f&&null!==(f=f.src)&&void 0!==f&&f.length?e("img",{attrs:{src:t.$store.state.imageLink+n.image.src,alt:n.image.alt_text?n.image.alt_text:"Image representing the link"}}):t._e(),t._v(" "),null!=n&&null!==(m=n.title)&&void 0!==m&&m.length?e("p",[e("strong",[t._v("\n                        "+t._s(n.title)+"\n                    ")])]):t._e(),t._v(" "),null!=n&&null!==(_=n.label)&&void 0!==_&&_.length?e("p",[t._v("\n                    "+t._s(n.label)+"\n                ")]):t._e()])],1)})),0)],1):t._e()}),[],!1,null,null,null);e.default=component.exports;installComponents(component,{Carousel:n(520).default})},482:function(t,e,n){"use strict";var l=n(3),o=n(483);l({target:"String",proto:!0,forced:n(484)("link")},{link:function(t){return o(this,"a","href",t)}})},483:function(t,e,n){"use strict";var l=n(7),o=n(36),r=n(22),c=/"/g,d=l("".replace);t.exports=function(t,e,n,l){var h=r(o(t)),v="<"+e;return""!==n&&(v+=" "+n+'="'+d(r(l),c,"&quot;")+'"'),v+">"+h+"</"+e+">"}},484:function(t,e,n){"use strict";var l=n(8);t.exports=function(t){return l((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))}},515:function(t,e,n){"use strict";n.r(e);var l=n(0),component=Object(l.a)({},(function(){var t=this._self._c;return t("svg",{staticClass:"icon carousel-icon-left",attrs:{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M8.63986 6L3.13332 11.4C2.79541 11.7314 2.79542 12.2687 3.13333 12.6L8.63989 18",stroke:"#222627","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}}),this._v(" "),t("path",{attrs:{d:"M21.1201 11.9999L5.04012 12",stroke:"#222627","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}})])}),[],!1,null,null,null);e.default=component.exports},516:function(t,e,n){"use strict";n.r(e);var l=n(0),component=Object(l.a)({},(function(){var t=this._self._c;return t("svg",{staticClass:"icon carousel-icon-right",attrs:{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M15.3601 6L20.8667 11.4C21.2046 11.7314 21.2046 12.2687 20.8667 12.6L15.3601 18",stroke:"#222627","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}}),this._v(" "),t("path",{attrs:{d:"M2.87988 11.9999L18.9599 12",stroke:"#222627","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}})])}),[],!1,null,null,null);e.default=component.exports},518:function(t,e,n){t.exports={}},520:function(t,e,n){"use strict";n.r(e);n(50),n(28),n(23),n(31),n(35),n(518);var l=n(528),o=(n(529),{components:{Splide:l.a},props:{componentName:{default:"carousel",type:String},content:{default:function(){return{theme:null,heading:"Carousel",subheading:"optional section description",button:{url:"#",text:"View all",newTab:"_blank"},slidesToShow:3,slideLength:3,slidesToShowTablet:1,slidesToShowXlTablet:2}}},position:{default:"centre",type:String},data:[]},data:function(){return{perPageTablet:this.content.slidesToShowTablet?this.content.slidesToShowTablet:2,perPageTabletLarge:this.content.slidesToShowXlTablet?this.content.slidesToShowXlTablet:2,perPage:this.content.slidesToShow?this.content.slidesToShow:3,screenWidth:0,currentSlideIndex:0}},computed:{responsivePerPage:function(){return this.screenWidth<=767?1:this.screenWidth<=1025?this.content.slidesToShowTablet:this.screenWidth<=1339?this.content.slidesToShowXlTablet:this.perPage},isDarkTheme:function(){var t,e;return("string"==typeof(null===(t=this.content)||void 0===t?void 0:t.theme)||Array.isArray(null===(e=this.content)||void 0===e?void 0:e.theme))&&this.content.theme.includes("dark")?"dark":""},isValidButtonUrl:function(){var t,e=null===(t=this.content)||void 0===t||null===(t=t.button)||void 0===t?void 0:t.url;return!!e&&"/"!==e&&"#"!==e}},mounted:function(){var t=this;this.$nextTick((function(){t.initializeSplide()})),"undefined"!=typeof window&&(this.updateScreenWidth(),window.addEventListener("resize",this.updateScreenWidth))},beforeDestroy:function(){"undefined"!=typeof window&&window.removeEventListener("resize",this.updateScreenWidth)},methods:{fireGtm:function(t){var e;null===(e=this.fireGtmEvent)||void 0===e||e.call(this,t)},generateGtmEventName:function(){var t,e=this.$route.path.replace(/^\//,"")||"",n=(null===(t=this.content)||void 0===t||null===(t=t.button)||void 0===t?void 0:t.text)||"default";return"carousel".concat(e?"_".concat(e):"","_").concat(n.replace(/\s+/g,"_").toLowerCase())},initializeSplide:function(){var t=this,e=new l.a(this.$refs.splide,{start:0,gap:15,type:"slide",perPage:this.perPage,perMove:this.perPage,pagination:!1,autoplay:!1,clones:0,drag:!0,keyboard:!0,lazyLoad:!0,trimSpace
1:!1,breakpoints:{1339:{perPage:this.perPageTabletLarge,perMove:this.perPageTabletLarge},1024:{perPage:this.perPageTablet,perMove:this.perPageTablet},767:{perPage:1,perMove:1}}}),n=e.root.querySelector(".progress-bar");n&&e.on("mounted move",(function(){t.updateProgressBar(e,n)})),e.mount()},updateProgressBar:function(t,e){var n=t.length-t.options.perPage,progress=Math.min(t.index/n,1);this.currentSlideIndex=t.index,e.style.transform="translateX(".concat(100*progress,"%)"),e.style.width="50%"},updateScreenWidth:function(){this.screenWidth=window.innerWidth}},watch:{data:{handler:function(){var t=this;this.$nextTick((function(){t.initializeSplide()}))},deep:!0}}}),r=n(0),component=Object(r.a)(o,(function(){var t,e,n,l,o,r=this,c=r._self._c;return c("section",{class:[r.componentName,"theme-"+r.content.theme]},[c("div",{staticClass:"sw carousel-content"},[c("div",{ref:"splide",staticClass:"splide"},[c("div",{staticClass:"carousel-heading-container"},[null!==(t=r.content)&&void 0!==t&&null!==(t=t.heading)&&void 0!==t&&t.length||null!==(e=r.content)&&void 0!==e&&null!==(e=e.subheading)&&void 0!==e&&e.length?c("section-heading-primary",{class:["theme-"+r.content.theme,{centred:r.content.slideLength<=r.responsivePerPage&&!(null!==(n=r.content)&&void 0!==n&&null!==(n=n.button)&&void 0!==n&&null!==(n=n.url)&&void 0!==n&&n.length)}],attrs:{content:{theme:r.content.theme,heading:r.content.heading,sub_heading:r.content.subheading}}}):r._e(),r._v(" "),r._t("header"),r._v(" "),c("div",{staticClass:"ctas",class:{rightAligned:!(null!==(l=r.content)&&void 0!==l&&null!==(l=l.heading)&&void 0!==l&&l.length&&null!==(o=r.content)&&void 0!==o&&null!==(o=o.subheading)&&void 0!==o&&o.length)}},[r.isValidButtonUrl?c("a",{staticClass:"main-cta button tertiary outline mobile-padding to-tablet",class:r.isDarkTheme,attrs:{href:r.content.button.url,target:r.content.button.newTab,title:r.content.button.text?r.content.button.text:"Visit for more",rel:"noopener noreferrer nofollow"},on:{click:function(t){r.fireGtm(r.generateGtmEventName())}}},[r._v("\n                        "+r._s(r.content.button.text)+"\n                    ")]):r._e(),r._v(" "),r._t("cta"),r._v(" "),c("div",{staticClass:"splide__arrows",class:[{"right-aligned":!r.content.button},{hide:r.content.slideLength<=r.responsivePerPage}
1]},[c("button",{staticClass:"splide__arrow splide__arrow--prev button tertiary outline mobile-padding to-tablet",class:r.isDarkTheme,attrs:{type:"button","aria-label":"Previous slide","aria-controls":"splide01-track"}},[c("carousel-icon-left")],1),r._v(" "),c("button",{staticClass:"splide__arrow splide__arrow--next button tertiary outline mobile-padding to-tablet",class:r.isDarkTheme,attrs:{type:"button","aria-label":"Next slide","aria-controls":"splide01-track"}},[c("carousel-icon-right")],1)])],2)],2),r._v(" "),r._t("filters"),r._v(" "),c("div",{staticClass:"splide__track",attrs:{role:"region","aria-label":"Carousel"}},[c("ul",{staticClass:"splide__list",class:{centre:r.content.slideLength<r.responsivePerPage&&"centre"===r.position,left:"left"===r.position}},[r._t("default")],2)]),r._v(" "),r.content.slideLength>r.responsivePerPage?c("div",{staticClass:"progress",attrs:{role:"progressbar","aria-live":"polite","aria-valuemin":0,"aria-valuemax":r.content.slideLength-1,"aria-valuenow":r.currentSlideIndex,"aria-label":"Carousel Progress"}},[c("div",{staticClass:"progress-bar"})]):r._e()],2)])])}),[],!1,null,null,null);e.default=component.exports;installComponents(component,{SectionHeadingPrimary:n(306).default,CarouselIconLeft:n(515).default,CarouselIconRight:n(516).default})}}]);

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.