(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[245,683],{1831:(e,t,n)=>{"use strict";n.d(t,{J:()=>i});var o="https://static.gamezop.com/astro-v2/assets/images",i={collectionFallback:"".concat(o,"/collection_fallback_color.png"),collectionFallbackBig:"".concat(o,"/collection_fallback_color_big.png"),collectionNotFound:"".concat(o,"/404.png"),collectionTagUp:"".concat(o,"/tape-up.png"),collectionTagDown:"".concat(o,"/tape-down.png")}},4692:(e,t,n)=>{"use strict";n.d(t,{default:()=>a});var o=n(1831),i=n(20563),r=n(12187),l=n(43267),s=n(84427);let a=function(){var e=(0,i.A)().customRoutePush;return(0,s.jsx)(l.default,{children:(0,s.jsxs)("div",{className:"antialiased bg-primary-color h-dvh w-full relative overflow-auto flex justify-center items-center",children:[(0,s.jsx)("div",{className:"fixed -left-2.5 top-0",children:(0,s.jsx)(r.default,{src:o.J.collectionTagUp,alt:"quiz collection thumbnail",className:"object-cover w-52 h-40 md:w-72 md:h-64",unoptimized:!0,quality:100,width:290,height:261})}),(0,s.jsxs)("div",{className:"flex-col flex justify-center items-center text-center z-50",children:[(0,s.jsx)(r.default,{src:o.J.collectionNotFound,alt:"quiz collection thumbnail",className:"object-cover md:w-460 md:h-460 w-[280px] h-[280px]",unoptimized:!0,quality:100,width:461,height:458}),(0,s.jsxs)("div",{className:"text-notfound-text mt-6 px-4",children:[(0,s.jsx)("h3",{className:"font-bold md:text-2xl text-xl mb-3",children:"404 - Quiz Not Found"}),(0,s.jsx)("p",{className:" lg:text-xl md:text-lg text-base max-w-3xl",children:"The quiz you’re looking for doesn’t exist or has been removed."}),(0,s.jsx)("button",{className:"text-notfound-button-text md:py-7 py-4 px-14 md:px-24 bg-notfound-button-bg rounded-border-radius lg:text-22 text-lg my-6 inline-block",onClick:function(){e({route:"/collections/latest",removeParams:["config"]})},children:"Go Back to Quiz List"})]})]}),(0,s.jsx)("div",{className:"fixed right-0 bottom-0",children:(0,s.jsx)(r.default,{src:o.J.collectionTagDown,alt:"quiz collection thumbnail",className:"object-cover w-40 h-40 md:w-52 md:h-52",unoptimized:!0,quality:100,width:218,height:218})})]})})}},20563:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(11296),i=n(66480);let r=function(){var e=(0,i.useSearchParams)(),t=(0,i.useRouter)(),n=function(t,n){var i=new URLSearchParams(null==e?void 0:e.toString());return null==n||n.forEach(function(e){i.delete(e)}),null==t||t.forEach(function(e){var t=(0,o.A)(e,2),n=t[0],r=t[1];i.append(n,r)}),Object.fromEntries(i)};return{customRoutePush:function(e){var o=e.route,i=e.query,r=e.removeParams,l=e.refresh,s=new URLSearchParams(n(i,r)).toString();t.push("".concat(o,"?").concat(s)),l&&t.refresh()}}}},35802:(e,t,n)=>{Promise.resolve().then(n.bind(n,4692))},39481:(e,t,n)=>{"use strict";n.d(t,{D:()=>a});var o=n(11296),i=n(12135),r={primaryColor:"--primary-color",secondaryColor:"--secondary-color",borderRadius:"--border-radius",listing:{border:"--listing-border",title:"--listing-title",description:"--listing-description",svgFill:"--listing-svg-fill"},loader:{title:"--loader-title",subtitle:"--loader-subtitle",progressBarFill:"--loader-fill",progressBarUnFill:"--loader-unfill"},notFound:{text:"--notfound-text",buttonBg:"--notfound-button-bg",buttonText:"--notfound-button-text"},loadMore:{text:"--load-more-text",background:"--load-more-bg",border:"--load-more-border",hover:"--load-more-hover"},footerText:"--footer-text"};function l(e){return e.colorValue}var s=new Set;function a(){return{updateTheme:function(e){var t,n,a;t=document.documentElement,Object.entries((n={},!e||(void 0===e?"undefined":(0,i._)(e))!=="object"||Object.entries(e).forEach(function(e){var t=(0,o.A)(e,2),s=t[0],a=t[1],c=r[s];if(c){if("borderRadius"===s){"string"==typeof c&&"string"==typeof a&&(n[c]=a);return}if("string"==typeof c){n[c]=l(a),void 0!==a.fontWeight&&(n["".concat(c,"-weight")]=String(a.fontWeight));return}a&&(void 0===a?"undefined":(0,i._)(a))==="object"&&Object.entries(a).forEach(function(e){var t=(0,o.A)(e,2),i=t[0],r=t[1],s=c[i];s&&(n[s]=l(r),void 0!==r.fontWeight&&(n["".concat(s,"-weight")]=String(r.fontWeight)))})}}),n)).forEach(function(e){var n=(0,o.A)(e,2),i=n[0],r=n[1];t.style.setProperty(i,r)}),(a={name:e.fontName,url:e.fontUrl}).name&&a.url&&function(e){if(null!=e&&e.name&&null!=e&&e.url){var t=e.url.includes("fonts.googleapis.com")||e.url.endsWith(".css");if(!s.has(e.url)){if(t){var n=document.createElement("link");n.href=e.url,n.rel="stylesheet",document.head.appendChild(n)}else{var o,i=document.createElement("style"),r=(o=e.url).endsWith(".woff2")?"woff2":o.endsWith(".woff")?"woff":o.endsWith(".ttf")?"truetype":o.endsWith(".otf")?"opentype":"woff2";i.textContent="\n @font-face {\n font-family: '".concat(e.name,"';\n src: url('").concat(e.url,"') format('").concat(r,"');\n font-display: swap;\n }\n "),document.head.appendChild(i)}s.add(e.url)}document.documentElement.style.setProperty("--font-family",e.name)}}(a)}}}},43267:(e,t,n)=>{"use strict";n.d(t,{default:()=>s});var o=n(78299),i=n(39481),r=n(86691),l=n(84427);let s=function(e){var t=e.children,n=(0,i.D)().updateTheme;return(0,o.useEffect)(function(){var e=r.O.subscribe("gzp-custom-config",function(e){var t=e.payload,o=document.getElementById("game");null!=o&&o.contentWindow&&r.O.publish(o.contentWindow,{type:"gzp-custom-config",payload:t});var i=t||{},l=i.method,s=i.params;"SET_THEME"===l&&s&&(console.log("Received Theme data:",e),n(s))});return function(){e()}},[n]),(0,l.jsx)("div",{children:t})}},86691:(e,t,n)=>{"use strict";n.d(t,{O:()=>s});var o=n(12135),i=n(24159),r=n(64289),l=n(38153),s=new((0,r.A)(function e(){var t=this;(0,i.A)(this,e),(0,l.A)(this,"handlers",new Map),(0,l.A)(this,"isListening",!1),(0,l.A)(this,"handleMessage",function(e){var n,i,r=e.data;null==(n=t.handlers.get("*"))||n.forEach(function(t){return t(r,e)}),r&&(void 0===r?"undefined":(0,o._)(r))==="object"&&"string"==typeof r.type&&(null==(i=t.handlers.get(r.type))||i.forEach(function(t){return t(r,e)}))})},[{key:"ensureListener",value:function(){this.isListening||(this.isListening=!0,window.addEventListener("message",this.handleMessage))}},{key:"removeListenerIfUnused",value:function(){this.isListening&&!(this.handlers.size>0)&&(this.isListening=!1,window.removeEventListener("message",this.handleMessage))}},{key:"subscribe",value:function(e,t){var n=this;this.ensureListener();var o=this.handlers.get(e);return o?o.add(t):this.handlers.set(e,new Set([t])),function(){var o=n.handlers.get(e);o&&(o.delete(t),0===o.size&&n.handlers.delete(e),n.removeListenerIfUnused())}}},{key:"publish",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"*";e.postMessage(t,n)}}]))}},e=>{e.O(0,[487,918,607,855,358],()=>e(e.s=35802)),_N_E=e.O()}]);