PageSourceSearch

https://www.geekom.co.uk/_next/static/chunks/1485.cea9ffb4a9b1d006.js

js geekom.co.uk collected 2026-09-25 04:41:59 UTC 6,025 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1485],{1485:(e,t,a)=>{a.r(t),a.d(t,{initNasaProductCarousels:()=>p});var r=a(14959),s=a(83269),i=a(30690),n=a(2991),o=a(68131);let l=s.Ag.common,d=(e,t)=>{let a=Number.parseInt(e??"",10);return Number.isFinite(a)&&a>0?a:t},c=e=>{let t=document.createElement("button");t.type="button",t.className=`gk-nasa-product-navigation gk-nasa-product-${e}`,t.setAttribute("aria-label","next"===e?l.nextSlide:l.previousSlide);let a=document.createElement("span");return a.className="gk-nasa-product-navigation-icon",a.setAttribute("aria-hidden","true"),t.appendChild(a),t},u=async(e,t)=>{var a,r;let s,u,p;if("true"===e.dataset.gkNasaProductCarousel)return;let g=e.querySelector(":scope > .nasa-slick-slider"),m=g?Array.from(g.children).filter(e=>e instanceof HTMLElement&&e.matches(n.X0)):[];if(!g||0===m.length||e.classList.contains("swiper-initialized")||g.classList.contains("slick-initialized"))return;e.dataset.gkNasaProductCarousel="true",e.classList.add("swiper","gk-nasa-product-carousel"),g.classList.add("swiper-wrapper"),m.forEach(e=>e.classList.add("swiper-slide"));let w=m.some(e=>e.classList.contains("item-product-widget")),y=w&&"false"===g.dataset.dot?null:document.createElement("div");y&&(y.className="swiper-pagination gk-nasa-product-pagination",e.appendChild(y));let h=g.classList.contains("nasa-slick-nav")?(s=c("previous"),u=c("next"),e.append(s,u),{previous:s,next:u}):null,v=Number(g.dataset.delay),f=Number.isFinite(v)&&v>0?v:6e3,b=d(g.dataset.columnsSmall,1),M=d(g.dataset.columnsTablet,3),k=d(g.dataset.columns,4),I=w?Math.min(d(g.dataset.columnsSmall,1),m.length):1===m.length?1:b,W=w?Math.min(d(g.dataset.columnsTablet,3),m.length):1===m.length?1:M,E=w?Math.min(d(g.dataset.columns,4),m.length):k,P=w?d(g.dataset.switchTablet,767)+1:768,S=w?d(g.dataset.switchDesktop,1024)+1:1025,L="false"!==g.dataset.autoplay,N="true"===g.dataset.heightAuto,x=w&&"true"===g.dataset.loop,A=(a=g.dataset.initialSlide,r=m.length,Number.isFinite(p=Number.parseInt(a??"",10))&&p>=0?Math.min(p,Math.max(r-1,0)):0),C=window.Swiper??await (0,i.ensureSwiperGlobal)();if(t()||!e.isConnected||!C){y?.remove(),h?.previous.remove(),h?.next.remove(),m.forEach(e=>e.classList.remove("swiper-slide")),g.classList.remove("swiper-wrapper"),e.classList.remove("swiper","gk-nasa-product-carousel"),delete e.dataset.gkNasaProductCarousel;return}let K=new C(e,{slidesPerView:I,slidesPerGroup:1,initialSlide:A,autoHeight:N,spaceBetween:18,loop:x,speed:500,watchOverflow:!0,observer:!0,observeParents:!0,simulateTouch:!0,grabCursor:!0,keyboard:{enabled:!0,onlyInViewport:!0},autoplay:!!L&&{delay:f,disableOnInteraction:!1,pauseOnMouseEnter:!0},pagination:!!y&&{el:y,clickable:!0,dynamicBullets:!1},navigation:!!h&&{prevEl:h.previous,nextEl:h.next},a11y:{enabled:!0,prevSlideMessage:l.previousSlide,nextSlideMessage:l.nextSlide},breakpoints:{[P]:{slidesPerView:W,spaceBetween:20},[S]:{slidesPerView:E,spaceBetween:w?34:20}}});return(0,o.Nr)(K),()=>{K.destroyed||K.destroy?.(!0,!0),y?.remove(),h?.previous.remove(),h?.next.remove(),m.forEach(e=>e.classList.remove("swiper-slide")),g.classList.remove("swiper-wrapper"),e.classList.remove("swiper","gk-nasa-product-carousel"),delete e.dataset.gkNasaProductCarousel}};function p(e){let t=Array.from(e.querySelectorAll(n.Yx));if(0===t.length)return;let a=!1,s=[],i=(e=>{let t;if(!e.querySelector(".yotpo.bottomLine[data-product-id]"))return;let a=!1,s=0,i=()=>{!a&&(s+=1,((0,r.Sr)()||s>=20)&&"number"==typeof t&&(window.clearInterval(t),t=void 0))};return(0,r.j$)().then(i).catch(()=>{}),t=window.setInterval(i,500),()=>{a=!0,"number"==typeof t&&window.clearInterval(t)}})(e);return t.forEach(e=>{u(e,()=>a).then(e=>{if(e){if(a)return void e();s.push(e)}})}),()=>{a=!0,i?.(),s.forEach(e=>e())}}},14959:(e,t,a)=>{a.d(t,{$C:()=>c,Kg:()=>h,Sr:()=>b,TR:()=>v,Vl:()=>l,Wl:()=>w,Y4:()=>m,co:()=>y,h:()=>u,j$:()=>f,x8:()=>d});var r=a(86389);let s={uk:{appKey:"xQW84Kub5sPEYhAphx6eMx7XHdxbEXvqw4Oy5zwg",widgetMode:"instance",reviewsWidgetId:"631430",starRatingsWidgetId:"631432"},us:{appKey:"k3lxqS7toDLm9FaujWAh6K3xCIJPg7GMFDXpAn07",widgetMode:"legacy",reviewsWidgetId:"1066446",starRatingsWidgetId:"1066447"},de:{appKey:"6eT6toGLhGpy70HKKfxgQAkRHj6MTlEgUMm18daI",widgetMode:"legacy",reviewsWidgetId:"967753",starRatingsWidgetId:"1067448"},fr:{appKey:"4FbYPDPqZXc9C68rvX33KGriWSj1abHSNqJrPIBy",widgetMode:"legacy",reviewsWidgetId:"681069",starRatingsWidgetId:"1067427"},es:{appKey:"ZlNZZuJfSf21AMHP0G3hy9ocz7TcWqcrQZoGP53k",widgetMode:"legacy"},it:{appKey:"QZIO7MTNjFMW0CenAeff2JMkyw5pgJpbRZ2S3GYm",widgetMode:"legacy",reviewsWidgetId:"834672",starRatingsWidgetId:"1352219"},au:{appKey:"U2EqZkAMBjywyuzrwR8o7laNdiATxelf0ecrRrKc",widgetMode:"legacy"}}[r.TM.code],i=s?.widgetMode??"instance",n=r.TM.htmlLang??r.TM.locale.split("-")[0]?.toLowerCase()??"en",o=s?.appKey??"",l=s?.reviewsWidgetId??"",d=s?.starRatingsWidgetId??"",c=i,u=n,p="yotpo-reviews-loader",g=null,m=()=>!!(o&&("legacy"===c||l)),w=()=>!!(o&&("legacy"===c||d)),y=e=>{if(0!==e&&null!=e)return"number"==typeof e?String(e):e},h=e=>e?.trim()||void 0,v=e=>{if(!e)return;let t=e.trim().replace(/\s+/g," ");return t.length>300?`${t.slice(0,297)}...`:t},f=()=>{if("u"<typeof document||!o)return Promise.resolve();if(g)return g;let e=document.getElementById(p);return e?.dataset.loaded==="true"?Promise.resolve():g=new Promise((t,a)=>{let r=e??document.createElement("script");r.addEventListener("load",()=>{r.dataset.loaded="true",t()},{once:!0}),r.addEventListener("error",()=>{g=null,a(Error("Failed to load Yotpo reviews script."))},{once:!0}),e||(r.id=p,r.src=`https://staticw2.yotpo.com/${o}/widget.js`,r.async=!0,document.head.appendChild(r))})},b=()=>{let e=window;if(e?.yotpo?.initWidgets)return e.yotpo.initWidgets(),!0;if(e?.yotpo?.widgetsInitializer?.init)return e.yotpo.widgetsInitializer.init(),!0;let t=e?.Yotpo?.API&&e?.yotpo?new e.Yotpo.API(e.yotpo):null;return t?.refreshWidgets?(t.refreshWidgets(),!0):(e?.yotpo?.refreshWidgets&&e.yotpo.refreshWidgets(),!1)}}}]);

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.