PageSourceSearch

https://www.cambrian-news.co.uk/_next/static/chunks/pages/puzzles/[type]-d315c07866a8fd48.js

js cambrian-news.co.uk collected 2026-10-02 07:03:57 UTC 15,779 bytes, 56 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9466],{15383:(e,t,o)=>{"use strict";o.d(t,{A:()=>s});var n=o(66352),r=o(43524),i=o.n(r);let a="https://cdn.privacy-mgmt.com",s=({canonicalUrl:e})=>(0,n.jsxs)(i(),{children:[(0,n.jsx)("script",{type:"text/javascript",dangerouslySetInnerHTML:{__html:'"use strict";function _typeof(t){return(_typeof="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})(t)}!function(){var t=function(){var t,e,o=[],n=window,r=n;for(;r;){try{if(r.frames.__tcfapiLocator){t=r;break}}catch(t){}if(r===n.top)break;r=r.parent}t||(!function t(){var e=n.document,o=!!n.frames.__tcfapiLocator;if(!o)if(e.body){var r=e.createElement("iframe");r.style.cssText="display:none",r.name="__tcfapiLocator",e.body.appendChild(r)}else setTimeout(t,5);return!o}(),n.__tcfapi=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return o;"setGdprApplies"===n[0]?n.length>3&&2===parseInt(n[1],10)&&"boolean"==typeof n[3]&&(e=n[3],"function"==typeof n[2]&&n[2]("set",!0)):"ping"===n[0]?"function"==typeof n[2]&&n[2]({gdprApplies:e,cmpLoaded:!1,cmpStatus:"stub"}):o.push(n)},n.addEventListener("message",(function(t){var e="string"==typeof t.data,o={};if(e)try{o=JSON.parse(t.data)}catch(t){}else o=t.data;var n="object"===_typeof(o)&&null!==o?o.__tcfapiCall:null;n&&window.__tcfapi(n.command,n.version,(function(o,r){var a={__tcfapiReturn:{returnValue:o,success:r,callId:n.callId}};t&&t.source&&t.source.postMessage&&t.source.postMessage(e?JSON.stringify(a):a,"*")}),n.parameter)}),!1))};"undefined"!=typeof module?module.exports=t:t()}();'}}),(0,n.jsx)("script",{type:"text/javascript",dangerouslySetInnerHTML:{__html:`
2            window.__sp_debug = /[?&]spdebug=1/.test(window.location.search);
3            function __spLog(name, args) {
4              if (window.__sp_debug) console.log('[sp] ' + name, args);
5            }
6            window._sp_queue = [];
7            window._sp_ = {
8              config: {
9                accountId: 2054,
10                baseEndpoint: '${a}',
11                gdpr: {},
12                events: {
13                  onMessageReady: function() { __spLog('onMessageReady', arguments); },
14                  onMessageReceiveData: function() { __spLog('onMessageReceiveData', arguments); },
15                  onSPReady: function() { __spLog('onSPReady', arguments); },
16                  onError: function() { __spLog('onError', arguments); },
17                  onMessageChoiceSelect: function() { __spLog('onMessageChoiceSelect', arguments); },
18                  onConsentReady: function(consentUUID, euconsent) { __spLog('onConsentReady', arguments); },
19                  onPrivacyManagerAction: function() { __spLog('onPrivacyManagerAction', arguments); },
20                  onPMCancel: function() { __spLog('onPMCancel', arguments); }
21                }
22              }
23            };
24            // On any host that is not the publication's canonical registered
25            // domain (staging/preview hosts like piano.<pub>.com or
26            // tindle-web-piano.brightsites.co.uk, and bare apex domains), point
27            // the Sourcepoint wrapper at the registered prod property; otherwise
28            // get_site_data 400s for the unregistered host and the CMP never
29            // loads. No-op on the canonical prod host, so live sites keep their
30            // normal domain-detection behaviour untouched.
31            try {
32              var _canon = ${JSON.stringify(e??"")};
33              if (_canon) {
34                var _cu = new URL(_canon);
35                _cu.protocol = 'https:';
36                if (window.location.origin !== _cu.origin) {
37                  window._sp_.config.propertyHref = _cu.origin;
38                }
39              }
40            } catch (e) {}
41          `}}),(0,n.jsx)("script",{src:`${a}/unified/wrapperMessagingWithoutDetection.js`,async:!0}),(0,n.jsx)("script",{type:"text/javascript",dangerouslySetInnerHTML:{__html:`
42            !function(){
43              if (document.getElementById('idward-plugin-js')) return;
44              var d=window.location.hostname,s=document.createElement('script');
45              s.async=!0;
46              s.src='https://static.anonymised.io/light/loader.js?ref=native&d='+encodeURIComponent(d);
47              s.id='idward-plugin-js';
48              document.head.appendChild(s);
49            }();
50          `}})]})},24281:(e,t,o)=>{"use strict";o.r(t),o.d(t,{__N_SSP:()=>S,default:()=>I});var n=o(66352),r=o(54533),i=o(71924),a=o(44258);let s=i.Ay.div.withConfig({componentId:"sc-7b8931e7-0"})(["display:flex;justify-content:center;justify-items:center;min-height:250px;margin-bottom:20px;@media (max-width:1020px){min-height:90px;margin-bottom:0;}@media (max-width:755px){min-height:50px;}&.desktop_banner{@media (max-width:754px){display:none;}}&.mobile_banner{@media (min-width:755px){display:none;}}.topbar{margin:auto;display:flex;justify-self:center;justify-content:center;justify-items:center;@media (max-width:","){max-width:100vw;overflow-x:hidden;}}
50"],a.KL.large),l=({type:e,className:t,queryId:o})=>"Commercial"===e?null:(0,n.jsx)(s,{className:t,children:(0,n.jsx)(r.default,{className:"topbar",id:o?`leaderboard${o}`:"leaderboard",width:"100%",height:"200"})});var d=o(38420),c=o(86735),p=o(95132);i.Ay.section.withConfig({componentId:"sc-6b89c30a-0"})(["margin:32px auto;max-width:1200px;padding:0 16px;"]),i.Ay.h2.withConfig({componentId:"sc-6b89c30a-1"})(["font-size:24px;font-weight:600;color:",";margin:16px 0;"],({theme:e})=>e.default.color.primary),i.Ay.div.withConfig({componentId:"sc-6b89c30a-2"})(["display:flex;flex-direction:column;"]),i.Ay.div.withConfig({componentId:"sc-6b89c30a-3"})(["border:1px solid ","33;background:",";box-shadow:0 4px 12px rgba(0,0,0,0.06);overflow:hidden;"],({theme:e})=>e.default.color.text.light,({theme:e})=>e.default.color.backgrounds.white),i.Ay.button.withConfig({componentId:"sc-6b89c30a-4"})(["width:100%;display:flex;justify-content:space-between;align-items:center;padding:16px 20px;font-size:16px;text-align:left;background:transparent;border:none;color:",";cursor:pointer;transition:background-color 0.2s ease,color 0.2s ease;&:hover,&:focus-visible{background-color:",";outline:none;}"],({theme:e,$isOpen:t})=>t?e.default.color.primary:e.default.color.text.dark,({theme:e})=>e.default.color.backgrounds.light),i.Ay.span.withConfig({componentId:"sc-6b89c30a-5"})(["display:flex;align-items:center;justify-content:center;margin-left:auto;color:",";transition:transform 0.2s ease;transform:",";flex-shrink:0;svg{width:20px;height:20px;}"],({theme:e})=>e.default.color.text.dark,({$isOpen:e})=>e?"rotate(180deg)":"rotate(0deg)"),i.Ay.div.withConfig({componentId:"sc-6b89c30a-6"})(["padding:16px 20px;border-top:1px solid ","1f;color:",";font-size:15px;line-height:1.6;"],({theme:e})=>e.default.color.text.light,({theme:e})=>e.default.color.text.medium),i.Ay.div.withConfig({componentId:"sc-6b89c30a-7"})(["display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;@media (max-width:992px){grid-template-columns:repeat(3,minmax(0,1fr));}@media (max-width:768px){grid-template-columns:repeat(2,minmax(0,1fr));}@media (max-width:480px){gap:8px;}"]),i.Ay.div.withConfig({componentId:"sc-6b89c30a-8"})(["display:flex;flex-direction:column;align-items:center;gap:12px;cursor:pointer;transition:transform 0.2s ease,opacity 0.2s ease;padding:12px;background:",";&:hover{transform:translateY(-2px);opacity:0.9;}@media (max-width:480px){gap:8px;}"],({theme:e})=>e.default.color.primary),i.Ay.img.withConfig({componentId:"sc-6b89c30a-9"})(["width:100%;height:auto;object-fit:cover;aspect-ratio:1;border:1px solid ","33;"],({theme:e})=>e.default.color.text.light),i.Ay.h3.withConfig({componentId:"sc-6b89c30a-10"})(["font-size:16px;line-height:1.2;font-weight:600;color:",";margin:0;text-align:center;"],({theme:e})=>e.default.color.text.white),i.Ay.button.withConfig({componentId:"sc-6b89c30a-11"})(["background:",";color:",";border:none;padding:8px 16px;font-size:14px;font-weight:600;border-radius:6px;cursor:pointer;transition:all 0.2s ease;white-space:nowrap;width:100%;&:hover{background-color:",";transform:translateY(-1px);}&:active{transform:translateY(0);}"],({theme:e})=>e.default.color.text.white,({theme:e})=>e.default.color.primary,({theme:e})=>e.default.color.backgrounds.light);let u=()=>{let[e,t]=(0,p.useState)(null);return(0,p.useMemo)(()=>{let e=new Date,t=[];for(let o=1;o<=14;o++){let n,r=new Date(e);r.setDate(r.getDate()-o),r.setHours(0,0,0,0);let i=r.toISOString();if(1===o)n="Yesterday's puzzles";else{let e=new Intl.DateTimeFormat("en-GB",{weekday:"long"}),t=r.getDate(),o=1===t||21===t||31===t?"st":2===t||22===t?"nd":3===t||23===t?"rd":"th",i=new Intl.DateTimeFormat("en-GB",{month:"long"});n=`${e.format(r)}, ${t}${o} ${i.format(r)}`}t.push({isoDate:i,label:n})}return t},[]),null},m=i.Ay.div.withConfig({componentId:"sc-5ec28f7a-0"})(["width:100%;max-width:1200px;margin:32px auto;padding:0 16px;"]),f=i.Ay.div.withConfig({componentId:"sc-5ec28f7a-1"})(["display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;"]),g=i.Ay.h1.withConfig({componentId:"sc-5ec28f7a-2"})(["font-size:32px;line-height:1.2;font-weight:600;color:",";margin:0;@media (max-width:768px){font-size:24px;}"],({theme:e})=>e.default.color.text.dark),h=i.Ay.button.withConfig({componentId:"sc-5ec28f7a-3"})(["background:",";color:",";border:1px solid ","4d;padding:8px 12px;font-size:14px;font-weight:500;border-radius:8px;
50cursor:pointer;transition:all 0.2s ease;text-decoration:none;display:inline-flex;align-items:center;&:hover{background:",";border-color:",";}&:active{transform:translateY(1px);}"],({theme:e})=>e.default.color.backgrounds.light,({theme:e})=>e.default.color.text.darkGrey,({theme:e})=>e.default.color.text.light,({theme:e})=>e.default.color.backgrounds.offWhite,({theme:e})=>e.default.color.text.light),x=i.Ay.div.withConfig({componentId:"sc-5ec28f7a-4"})(["background:",";border-radius:16px;margin-bottom:32px;"],({theme:e})=>e.default.color.backgrounds.white),w=i.Ay.div.withConfig({componentId:"sc-5ec28f7a-5"})(["width:100%;height:800px;position:relative;@media (max-width:768px){height:700px;}@media (max-width:480px){height:600px;}"]),y=i.Ay.div.withConfig({componentId:"sc-5ec28f7a-6"})(["display:flex;flex-direction:column;align-items:center;justify-content:center;height:400px;gap:16px;"]),b=i.Ay.p.withConfig({componentId:"sc-5ec28f7a-7"})(["font-size:18px;color:",";"],({theme:e})=>e.default.color.text.medium),_=i.Ay.div.withConfig({componentId:"sc-5ec28f7a-8"})(["background:",";border:2px solid ","44;border-radius:12px;padding:32px;text-align:center;color:",";"],({theme:e})=>e.default.color.backgrounds.offWhite,({theme:e})=>e.default.color.secondary,({theme:e})=>e.default.color.secondary),v=i.Ay.h2.withConfig({componentId:"sc-5ec28f7a-9"})(["font-size:24px;margin-bottom:8px;color:",";"],({theme:e})=>e.default.color.text.dark),z=i.Ay.p.withConfig({componentId:"sc-5ec28f7a-10"})(["font-size:16px;margin-bottom:24px;color:",";"],({theme:e})=>e.default.color.text.darkGrey),j=(0,i.Ay)(w).withConfig({componentId:"sc-5ec28f7a-11"})([".pml-sdk{opacity:1 !important;transition:opacity 0.3s ease-out;}.pml-sdk .menu-bar button:not(#timer),.puzzle-su button{transition:background-color 0.2s ease,color 0.2s ease,box-shadow 0.2s ease;}.pml-sdk .puzzle-grid.sudoku-grid .cell,.pml-sdk .menu-bar button,.pml-sdk .pml-puzzle-root .btn-keyboard,.puzzle-su button,.pml-sdk .menu-bar button#timer{cursor:pointer;}.pml-sdk .menu-bar button:not(#timer):hover,.pml-sdk .menu-bar button:not(#timer):focus-visible{background-color:",";color:",";}.pml-sdk .menu-bar button:not(#timer):focus-visible{outline:none;}.word-list-scroll{border-bottom:1px solid #000;}.pml-sdk .menu-bar button{border-radius:6px;}"],({theme:e})=>e.default.color.primary,({theme:e})=>e.default.color.text.white),k=({puzzleTitle:e,puzzleData:t})=>{let o=(0,p.useRef)(null),[r,i]=(0,p.useState)(!0),[a,s]=(0,p.useState)(null);return((0,p.useEffect)(()=>{let e=async()=>{try{if(!window.pml){console.error("PuzzleSDK not loaded"),s("Puzzle SDK failed to load. Please refresh the page."),i(!1);return}if(!t){s("No puzzle data available. Please try again later."),i(!1);return}window.pml.startGame("puzzleCanvas",{deviceType:"web",useZipPuzzles:!1,scriptPath:"/PuzzleSDK/Bundle",resourceZipName:"/PuzzleSDK/Bundle/res.zip",useAudio:!1,allow_hints:!0,allow_timer:!0,allow_dates:!1,localStorage_prefix:"tindle_puzzle_",starting_puzzle:t}),i(!1)}catch(e){console.error("Error initialising puzzle:",e),s("Failed to initialise puzzle. Please try again."),i(!1)}},o=setTimeout(()=>{e()},100);return()=>clearTimeout(o)},[t]),a)?(0,n.jsxs)(m,{children:[(0,n.jsxs)(f,{children:[(0,n.jsx)(g,{children:e}),(0,n.jsxs)(h,{as:"a",href:"/puzzles",children:[(0,n.jsx)(C,{}),"All Puzzles"]})]}),(0,n.jsxs)(_,{children:[(0,n.jsx)(v,{children:"Oops! Something went wrong"}),(0,n.jsx)(z,{children:a}),(0,n.jsx)(h,{as:"a",href:"/puzzles",children:"Return to Puzzles"})]})]}):(0,n.jsxs)(m,{children:[(0,n.jsxs)(f,{children:[(0,n.jsx)(g,{children:e}),(0,n.jsxs)(h,{as:"a",href:"/puzzles",children:[(0,n.jsx)(C,{}),"All Puzzles"]})]}),(0,n.jsxs)(x,{children:[r&&(0,n.jsx)(y,{children:(0,n.jsxs)(b,{children:["Loading ",e,"..."]})}),(0,n.jsx)(j,{id:"puzzleCanvas",ref:o})]})]})},C=()=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{marginRight:"6px",verticalAlign:"middle"},children:(0,n.jsx)("path",{d:"M15 18l-6-6 6-6"})});var S=!0;let I=({menus:e,puzzleTitle:t,puzzleData:o})=>(0,n.jsxs)(d.A,{data:e,title:t,children:[(0,n.jsx)(c.A,{}),(0,n.jsx)(l,{}),(0,n.jsx)(k,{puzzleTitle:t,puzzleData:o}),(0,n.jsx)(u,{})]})},25582:(e,t,o)=>{"use strict";o.d(t,{V:()=>n});let n={createSlots:(e,t)=>{},showSlot:e=>{},removeSlots:()=>{}}},54533:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>s});var n=o(66352),r=o(95132),i=o(35514),a=o(25582);let s=({id:e,className:t,width:o=350,height:s=250})=>{let{isLoading:l}=(0,i.N)();return(0,r.useEffect)(()=>{!l&&e&&a.V.showSlot(e)},[l,e]),(0,n.jsx)("div",{id:e,className:t,style:{width:o,height:s}})}},86592:(e,t,o)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/puzzles/[type]",function(){return o(24281)}])},86735:(e,t,o)=>{"use strict";o.d(t,{A:()=>d});var n=o(66352),r=o(59085),i=o(43524),a=o.n(i),s=o(95132),l=o(15383);let d=()=>{let{config:e}=(0,s.useContext)(r.I);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.A,{canonicalUrl:e.url}),(0,n.jsx)(a(),{children:(0,n.jsx)("script",{dangerouslySetInnerHTML:{__html:`
51        (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
52        new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
53        j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
54        'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
55        })(window,document,'script','dataLayer','${e.gtm_id}');
56      `}})})]})}},88283:(e,t,o)=>{"use strict";o.d(t,{Y0:()=>d,fb:()=>l,zz:()=>s});var n=o(95132),r=o(44258),i=o(62812);let a=()=>()=>{},s=()=>(0,n.useSyncExternalStore)(a,()=>!0,()=>!1),l=e=>{let t=(0,i.Ub)(e);return s()&&t},d=()=>{let e=(0,n.useSyncExternalStore)(a,()=>void 0!==navigator.share,()=>!1);return{screenSize:{extra_large:l({query:`(max-width: ${r.KL.huge})`}),large:l({query:`(max-width: ${r.KL.large})`}),medium:l({query:`(max-width: ${r.KL.medium})`}),small:l({query:`(max-width: ${r.KL.small})`})},nativeSharing:e}}}},e=>{e.O(0,[8186,8767,9820,7638,9902,8420,636,6593,8792],()=>e(e.s=86592)),_N_E=e.O()}]);

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.