PageSourceSearch

https://www.dcthomsonshop.co.uk/_next/static/chunks/958-0614b338fa08ed47.js

js dcthomsonshop.co.uk collected 2026-10-02 12:17:08 UTC 16,269 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[958],{202:(e,r,n)=>{n.d(r,{Go:()=>i,ry:()=>l}),n(3515);var t=n(3436);n(5048);var l=function(e){return e.RecurringSubscriptionNoOffer="recurring-subscription-no-offer",e.RecurringSubscriptionWithOffer="recurring-subscription-with-offer",e.PrePaidSubcription="pre-paid-subcription",e.OneOffPurchase="one-off-purchase",e}({}),i=function(e){return e.ABSPaymentFrame="ABS-SPF",e.ABSDirectDebit="ABS-DD",e.ApplePay="APPLE-PAY",e}({});t.z.object({id:t.z.number(),productId:t.z.number(),slug:t.z.string(),internalName:t.z.string(),sortOrder:t.z.number(),name:t.z.string(),tags:t.z.array(t.z.string()),productType:t.z.enum(["recurring-subscription-no-offer","recurring-subscription-with-offer","pre-paid-subcription","one-off-purchase"]).nullable(),price:t.z.number().nullable(),issuesIncluded:t.z.number().nullable(),recurringPrice:t.z.number().nullable(),recurringFrequency:t.z.number().nullable(),shippingCost:t.z.number(),recommendedRetailPrice:t.z.number().nullable(),originalPricing:t.z.object({price:t.z.number().nullable(),issuesIncluded:t.z.number().nullable(),recurringPrice:t.z.number().nullable(),recurringFrequency:t.z.number().nullable(),shippingCost:t.z.number()}).optional(),description:t.z.string().nullable(),benefits:t.z.array(t.z.object({benefit:t.z.string(),benefitImage:t.z.string().nullable()})),category:t.z.string(),sku:t.z.string(),orderProcessor:t.z.string(),paymentProcessor:t.z.enum(["ABS-SPF","ABS-DD"]).nullable(),externalLink:t.z.string(),externalLinkText:t.z.string(),image:t.z.string().nullable(),currency:t.z.string(),isPromoCode:t.z.boolean(),canBeGifted:t.z.boolean(),goLiveDate:t.z.date().nullable(),expirationDate:t.z.date().nullable(),includeInShoppingFeed:t.z.boolean(),issueDescriptor:t.z.object({singular:t.z.string().nullable(),plural:t.z.string().nullable()}),shoppingFeed:t.z.object({id:t.z.string().nullable(),title:t.z.string().nullable(),url:t.z.string().nullable(),gtin:t.z.string().nullable(),mpn:t.z.string().nullable(),productCategory:t.z.string(),productType:t.z.string(),imageOverride:t.z.string().nullable(),multipackQuantity:t.z.number().nullable(),isBundle:t.z.boolean(),ageGroup:t.z.enum(["newborn","infant","toddler","children","adult"]).nullable(),customLabel0:t.z.string().nullable(),customLabel1:t.z.string().nullable(),customLabel2:t.z.string().nullable(),customLabel3:t.z.string().nullable(),customLabel4:t.z.string().nullable()}).optional()}).strict().refine(e=>u(e),{message:"Product variant pricing data must be null or numbers based on productType constraints"}),t.z.object({id:t.z.number(),productId:t.z.number(),internalName:t.z.string(),name:t.z.string(),productType:t.z.enum(["recurring-subscription-no-offer","recurring-subscription-with-offer","pre-paid-subcription","one-off-purchase"]),price:t.z.number().nullable(),issuesIncluded:t.z.number().nullable(),recurringPrice:t.z.number().nullable(),recurringFrequency:t.z.number().nullable(),shippingCost:t.z.number(),sku:t.z.string(),sortOrder:t.z.number(),goLiveDate:t.z.date().nullable(),expirationDate:t.z.date().nullable(),currency:t.z.string(),issueDescriptor:t.z.object({singular:t.z.string().nullable(),plural:t.z.string().nullable()}),category:t.z.string(),image:t.z.string().nullable(),externalLink:t.z.string(),externalLinkText:t.z.string(),recommendedRetailPrice:t.z.number().nullable(),tags:t.z.array(t.z.string()),isPromoCode:t.z.boolean(),canBeGifted:t.z.boolean(),includeInShoppingFeed:t.z.boolean(),benefits:t.z.array(t.z.object({benefit:t.z.string(),benefitImage:t.z.string().nullable()})),orderProcessor:t.z.string(),paymentProcessor:t.z.enum(["ABS-SPF","ABS-DD"]).nullable()}).strict().refine(e=>u(e),{message:"Promo code product variant pricing data must be null or numbers based on productType constraints"});let u=e=>{if("Digital"!==e.category)switch(e.productType){case"recurring-subscription-no-offer":return s(e.price,e.issuesIncluded)&&a(e.recurringPrice,e.recurringFrequency,e.shippingCost);case"recurring-subscription-with-offer":return a(e.price,e.issuesIncluded,e.recurringPrice,e.recurringFrequency,e.shippingCost);case"pre-paid-subcription":return s(e.recurringPrice,e.recurringFrequency)&&a(e.price,e.issuesIncluded,e.shippingCost);case"one-off-purchase":return s(e.issuesIncluded,e.recurringPrice,e.recurringFrequency)&&a(e.price,e.shippingCost)}return!0},s=function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];return r.every(e=>null===e)},a=function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];return r.every(e=>"number"==typeof e)}},393:(e,r,n)=>{n.d(r,{A:()=>i});var t=n(7834),l=n(4844);function i(e){let{children:r,maxWidth:n,horizontalPadding:i,additionalClasses:u,flex:s=!0}=e,a="mx-auto ".concat(s?"flex justify-center":""," ").concat(u||""," ").concat(i?"px-6 md:px-8":"");return(0,t.jsx)("div",{className:a,style:(0,l.h)(n),children:r})}},3515:(e,r,n)=>{n.d(r,{$4:()=>o,Ii:()=>u,Nf:()=>a,UP:()=>g,YI:()=>c,bg:()=>s,pO:()=>d});var t=n(202);let l=new RegExp("^[A-Z\\d]+-[A-Z\\d]+-[A-Z\\d]+-\\d+-[A-Z\\d]+-(".concat("UK|EUR|ROW|DIG",")$")),i=RegExp("^(DCPP|PMPP)-[A-Z\\d]{3,10}$"),u=e=>e.productType!==t.ry.OneOffPurchase?l.test(e.sku):i.test(e.sku),s=e=>e.productType===t.ry.RecurringSubscriptionWithOffer||e.productType===t.ry.RecurringSubscriptionNoOffer,a=e=>{switch(e.productType){case t.ry.RecurringSubscriptionWithOffer:case t.ry.PrePaidSubcription:return e.issuesIncluded;case t.ry.RecurringSubscriptionNoOffer:return e.recurringFrequency;default:return 1}},c=e=>!!e.recommendedRetailPrice&&e.recommendedRetailPrice>o(e),o=e=>{var r;return null!=(r=e.price)?r:e.recurringPrice},d=e=>o(e)+e.shippingCost,g=e=>e.productType===t.ry.PrePaidSubcription||e.productType===t.ry.OneOffPurchase},3561:(e,r,n)=>{n.r(r),n.d(r,{default:()=>t});let t={src:"/_next/static/media/dct-shop-logo.73530cf4.svg",height:47,width:89,blurWidth:0,blurHeight:0}},4844:(e,r,n)=>{n.d(r,{h:()=>t});let t=e=>{let r={width:"100%"};if(!e)return r;switch(e){case"SMALL":r.maxWidth="413px";break;case"SMALL-MEDIUM":r.maxWidth="513px";break;case"MEDIUM":r.maxWidth="768px";break;case"LARGE":r.maxWidth="1280px";break;default:r.maxWidth="".concat(e,"px")}return r}},5048:(e,r,n)=>{n.d(r,{PC:()=>l});var t=n(3822);let l=function(e,r){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];
1return i((0,t.A)(e).div(100).round(2,t.A.roundHalfUp).toNumber(),r,n)},i=function(e,r){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return new Intl.NumberFormat("en-GB",{style:"currency",currency:r,minimumFractionDigits:2,maximumFractionDigits:2,...n&&{style:"decimal"}}).format(e)}},6973:(e,r,n)=>{n.d(r,{A:()=>u,f:()=>i});var t=n(7834),l=n(4844);function i(e){return(0,t.jsx)("div",{className:"w-full ".concat(e.className||""),children:e.children})}function u(e){let{children:r,maxWidth:n}=e;return(0,t.jsx)("div",{className:"flex flex-col",style:(0,l.h)(n),children:r})}},7040:(e,r,n)=>{n.r(r),n.d(r,{default:()=>w});var t=n(7834),l=n(5156),i=n(393),u=n(1426),s=n(8364),a=n.n(s);let c={src:"/_next/static/media/down-arrow-nav.e2a55066.svg",height:6,width:9,blurWidth:0,blurHeight:0},o={src:"/_next/static/media/up-arrow-white.fa70b329.svg",height:7,width:9,blurWidth:0,blurHeight:0};function d(e){let{heading:r,link:n,expanded:i,onClick:u}=e,s="sub-menu-header-btn bg-[#A0CA63] flex items-center justify-between uppercase font-semibold text-[12px] text-left rounded-full leading-5 mb-4 py-[10px] px-5 w-full lg:px-3 lg:py-1 lg:w-auto ".concat(n?"cursor-pointer hover:underline":"cursor-default"," ").concat(i?"max-lg:bg-[#476022] max-lg:text-white":""),d=(0,t.jsxs)(t.Fragment,{children:[r,(0,t.jsx)(l.default,{className:"w-3 h-auto lg:hidden",src:i?o:c,alt:i?"Up Arrow":"Down Arrow"})]});return n?(0,t.jsx)(a(),{href:n,className:s,onClick:u,children:d}):(0,t.jsx)("button",{type:"button",className:s,onClick:u,children:d})}function g(e){let{heading:r,link:n,links:l}=e,[i,s]=(0,u.useState)(!1);return l.length?(0,t.jsxs)("div",{className:"w-full lg:mb-10",children:[(0,t.jsx)(d,{heading:r,link:n,expanded:i,onClick:()=>s(!i)}),(0,t.jsx)("ul",{className:"mb-4 ml-4 text-sm text-gray-800 space-y-5 lg:space-y-4 lg:ml-0 lg:mb-0 ".concat(i?"block":"max-lg:hidden"),children:l.map(e=>{let{label:r,link:n,external:l}=e;return(0,t.jsx)("li",{className:"sub-menu-li hover:bg-[#8DC044] hover:bg-opacity-15 rounded-sm hover:underline",children:(0,t.jsx)(a(),{className:"inline-block leading-5 text-base lg:text-[15px] px-1 active:ring-2 w-full",href:n,target:l?"_blank":void 0,rel:l?"noopener noreferrer":void 0,children:r})},r)})})]}):null}function p(e){let{subMenus:r}=e;return(0,t.jsx)("div",{className:"lg:grid lg:grid-cols-3 lg:gap-[60px] lg:px-2 lg:w-full lg:mb-10",children:r.map((e,r)=>{let{heading:n,link:l,links:i}=e;return(0,t.jsx)(g,{heading:n,link:l,links:i},"sub-menu-".concat(r))})})}var b=n(8599),m=n(8940);function f(e){let{children:r,expanded:n,onClick:l,onMouseOver:i,onMouseLeave:u}=e;return(0,t.jsxs)("button",{className:"flex flex-row items-center justify-between text-[15px] leading-6 text-left w-full relative z-40 lg:px-2 lg:py-6 active:ring-2 active:ring-offset-0 ".concat(n?"underline font-medium":""),onClick:l,onMouseEnter:i,onMouseLeave:u,children:[r,n?(0,t.jsx)(b.A,{}):(0,t.jsx)(m.A,{})]})}function h(e){let{children:r,href:n,onFocus:l,onMouseOver:i,external:u,onMouseLeave:s}=e;return(0,t.jsx)(a(),{className:"inline-block text-[15px] leading-6 w-full relative z-40 lg:px-2 lg:w-auto lg:py-6 active:ring-2 active:ring-offset-0 hover:underline",href:n,onFocus:l,onMouseOver:i,onMouseLeave:s,target:u?"_blank":void 0,rel:u?"noopener noreferrer":void 0,children:r})}function x(e){let{onLinkItemFocus:r}=e;return(0,t.jsx)("div",{children:(0,t.jsx)("ul",{className:"flex flex-col mb-5 space-y-5 lg:static lg:z-40 lg:mb-0 lg:space-y-0 lg:space-x-2 lg:flex-row lg:py-2",children:(0,t.jsx)("li",{children:(0,t.jsx)(h,{href:"/account",onFocus:()=>r(null),children:"Manage My Subscription"})})})})}let v={src:"/_next/static/media/open-hamburger.a436f967.svg",height:20,width:24,blurWidth:0,blurHeight:0},z={src:"/_next/static/media/close-hamburger.c4b5d03e.svg",height:19,width:24,blurWidth:0,blurHeight:0};function y(e){let{navigationItems:r,activeItemIndex:n,onSubMenuItemClick:l,onSubMenuItemMouseOver:i,onLinkItemFocus:s}=e,a=(0,u.useRef)(null),c=()=>{a.current&&clearTimeout(a.current)},o=e=>{c(),a.current=setTimeout(()=>{null==i||i(e)},200)},d=()=>c();return(0,t.jsx)("ul",{className:"flex flex-col mb-5 space-y-5 lg:static lg:z-40 lg:mb-0 lg:space-y-0 lg:space-x-2 lg:flex-row lg:py-2",onMouseLeave:()=>l(null),children:r.map((e,r)=>{let i="subMenus"in e,u=n===r;return(0,t.jsx)("li",{className:"",children:i?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(f,{expanded:u,onClick:()=>l(u?null:r),onMouseOver:()=>o(r),onMouseLeave:d,children:e.label}),(0,t.jsx)("div",{className:"nav-sub-menu mt-4 lg:absolute lg:border-b lg:border-solid lg:border-grey-200 lg:left-0 lg:bg-white lg:mt-0 lg:pt-2 lg:z-40 lg:w-full ".concat(u?"block":"hidden"),children:(0,t.jsx)("div",{className:"lg:pr-8 lg:max-w-[1280px] lg:pl-[calc(32px+88px+32px)] lg:mx-auto",children:(0,t.jsx)(p,{subMenus:e.subMenus})})})]}):(0,t.jsx)(h,{href:e.link,external:e.external,onFocus:()=>s(r),onMouseOver:()=>o(r),onMouseLeave:d,children:e.label})},"nav-item-".concat(r))})})}function w(e){let{navigationItems:r,logoSrc:n,logoAlt:s}=e,[c,o]=(0,u.useState)(!1),[d,g]=(0,u.useState)(null),p=c||null!==d&&"subMenus"in r[d],b=function(e){let[r,n]=(0,u.useState)(!1),t=e=>{n(!!e.matches)};return(0,u.useEffect)(()=>{let l=window.matchMedia(e);return l.addEventListener("change",t),l.matches!==r&&n(l.matches),(
1)=>{l.removeEventListener("change",t)}},[e,r]),r}("(max-width: 1023px)");return(0,t.jsxs)("div",{className:"top-nav-div",children:[(0,t.jsx)("nav",{id:"top-nav",className:"flex flex-row justify-between w-full text-sm z-30 bg-white",children:(0,t.jsxs)(i.A,{maxWidth:"LARGE",horizontalPadding:!0,additionalClasses:"flex flex-col w-full lg:flex-row lg:justify-start",children:[(0,t.jsxs)("div",{className:"flex flex-row items-center",children:[(0,t.jsx)("button",{className:"lg:hidden",onClick:()=>o(!c),children:(0,t.jsx)(l.default,{priority:!0,className:"w-6 h-auto",src:c?z:v,alt:c?"Close menu icon":"Open menu icon"})}),(0,t.jsx)("div",{className:"flex flex-row justify-center w-full lg:block lg:shrink-0 lg:w-[88px]",children:(0,t.jsx)(a(),{href:"/",className:"block py-2 lg:py-0",children:(0,t.jsx)(l.default,{priority:!0,className:"block w-auto h-[41px] lg:w-full lg:h-auto",src:n,alt:s,width:88,height:46})})})]}),(0,t.jsxs)("div",{id:"top-nav",className:"absolute left-0 top-[57px] bg-white px-7 py-2 w-full flex flex-col lg:static lg:flex-row lg:ml-8 lg:justify-between lg:px-0 lg:py-0 ".concat(!c?"max-lg:hidden":"flex"," ").concat(b?"z-40":""),children:[b&&(0,t.jsx)(x,{onLinkItemFocus:g}),(0,t.jsx)(y,{navigationItems:r,activeItemIndex:d,onSubMenuItemMouseOver:b?void 0:g,onSubMenuItemClick:g,onLinkItemFocus:g}),!b&&(0,t.jsx)(x,{onLinkItemFocus:g})]})]})}),p&&(0,t.jsx)("div",{className:"fixed left-0 w-full h-full z-30 ".concat(b?"":"top-0"),onMouseOver:()=>{g(null),o(!1)}})]})}},8561:(e,r,n)=>{n.d(r,{FP:()=>a,eR:()=>b,c4:()=>s,wx:()=>u,Hd:()=>d,Ys:()=>o,Gt:()=>c});var t=n(202),l=n(5048),i=n(3515);let u=e=>p((0,i.Nf)(e),e.issueDescriptor),s=e=>{let{currency:r,productType:n}=e,s="".concat((0,l.PC)((0,i.$4)(e),r));return n===t.ry.OneOffPurchase?s:"".concat(s," for ").concat(u(e))},a=e=>{let{recurringPrice:r,recurringFrequency:n,currency:i,productType:u,issueDescriptor:s}=e;return u===t.ry.RecurringSubscriptionNoOffer?"Auto-renews ".concat(b(n,s)):"Auto-renews at ".concat((0,l.PC)(r,i)," ").concat(b(n,s))},c=e=>{let{shippingCost:r,currency:n}=e;return"".concat((0,l.PC)(r,n)," shipping")},o=e=>{let{recommendedRetailPrice:r,currency:n}=e;return"RRP ".concat((0,l.PC)(r,n))},d=e=>{let r,{recommendedRetailPrice:n}=e;return"Save ".concat((r=n-(0,i.$4)(e),"".concat(Math.floor(r/n*100),"%")))},g=e=>({singular:(null==e?void 0:e.singular)!==null&&(null==e?void 0:e.singular)!==void 0&&e.singular.length>0?e.singular:"issue",plural:(null==e?void 0:e.plural)!==null&&(null==e?void 0:e.plural)!==void 0&&e.plural.length>0?"".concat(e.plural):"issues"}),p=(e,r)=>{let{singular:n,plural:t}=g(r);return"".concat(e," ").concat(1===e?n:t)},b=(e,r)=>{let{singular:n,plural:t}=g(r);return 1===e?"every ".concat(n):"every ".concat(e," ").concat(t)}},8599:(e,r,n)=>{n.d(r,{A:()=>l});var t=n(7834);function l(){return(0,t.jsx)("div",{className:"ml-2 w-0 h-0 border-l-[8px] border-l-transparent border-r-[8px] border-r-transparent border-b-[10px] border-b-[#B3D582] nav-arrow-up"})}},8875:(e,r,n)=>{n.d(r,{default:()=>i});var t=n(7834),l=n(1426);function i(e){let r=(0,l.useRef)(null);return(0,l.useEffect)(()=>{let e=r.current;if(!e)return;let n=()=>{setTimeout(()=>{if(document.activeElement instanceof HTMLIFrameElement&&e.contains(document.activeElement)){let e=document.getElementById("customer-reviews");if(!e)return;let r=e.querySelector("details");r&&(r.open=!0),e.scrollIntoView({behavior:"smooth",block:"start"}),e.focus({preventScroll:!0})}},0)};return window.addEventListener("blur",n),()=>window.removeEventListener("blur",n)},[]),(0,t.jsxs)("header",{className:"space-y-4 ".concat(e.className||""),children:[(0,t.jsx)("h1",{className:"text-3xl font-bold leading-[42px]",children:e.children}),e.intro?(0,t.jsx)("p",{className:"leading-6",children:e.intro}):null,e.subHeading?(0,t.jsx)("div",{ref:r,children:e.subHeading}):null]})}},8940:(e,r,n)=>{n.d(r,{A:()=>l});var t=n(7834);function l(){return(0,t.jsx)("div",{className:"ml-2 w-0 h-0 border-l-[8px] border-l-transparent border-r-[8px] border-r-transparent border-t-[10px] border-t-[#555] nav-arrow-down"})}},9879:(e,r,n)=>{n.d(r,{default:()=>l});var t=n(1426);function l(e){return(0,t.useEffect)(()=>{"disabled"!==e.trackingID&&function(e){{let r=window;r.dataLayer&&r.dataLayer.push(e)}}(function(e){let r={event:(null==e?void 0:e.eventType)||"page_view",post_type:e.pageType};if((null==e?void 0:e.sku)&&(r.product_sku=e.sku),(null==e?void 0:e.orderNumber)&&(r.order_id=e.orderNumber),null==e?void 0:e.contentGroups)for(let n=0;n<e.contentGroups.length;n++)r["content_group".concat(n+1?n:"")]=e.contentGroups[n];return r}(e))},[e]),e.children}}}]);

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.