PageSourceSearch

https://www.splashmedia.cc/_next/static/chunks/pages/admin/news-pointed/seed-e227b5a758520a2a.js

js splashmedia.cc collected 2026-10-03 01:10:13 UTC 2,130 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8974],{59072:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/news-pointed/seed",function(){return a(22907)}])},14064:function(e,t,a){"use strict";a.d(t,{Z:function(){return s}});const s=(0,a(97979).Z)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},22907:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return l}});var s=a(52676),n=a(75271),i=a(88433),r=a(41853),c=a(2571),o=a(75071),d=a(14064);function l(){const e=(0,o.useRouter)(),[t,a]=(0,n.useState)(!1);return(0,s.jsx)("div",{className:"container mx-auto py-8",children:(0,s.jsxs)(i.Zb,{children:[(0,s.jsxs)(i.Ol,{children:[(0,s.jsx)(i.ll,{children:"Seed News Pointed Game"}),(0,s.jsx)(i.SZ,{children:"Create a new active News Pointed game with sample data for today"})]}),(0,s.jsxs)(i.aY,{children:[(0,s.jsx)("p",{className:"mb-4",children:"This will create a new News Pointed game with the following:"}),(0,s.jsxs)("ul",{className:"list-disc pl-5 space-y-2 mb-4",children:[(0,s.jsx)("li",{children:"4 groups: Technology, Sports, Environment, and Politics"}),(0,s.jsx)("li",{children:"3 news items per group"}),(0,s.jsx)("li",{children:"Set as active for today's date"})]}),(0,s.jsx)("p",{className:"text-amber-600",children:"Note: If there's already an active game for today, you may want to deactivate it first."})]}),(0,s.jsx)(i.eW,{children:(0,s.jsx)(r.z,{onClick:async()=>{try{a(!0);const t=await fetch("/api/admin/news-pointed/seed",{method:"POST"});if(!t.ok)throw new Error("Failed to seed game");await t.json();(0,c.toast)({title:"Success",description:"Game created successfully!"}),e.push("/admin/news-pointed")}catch(t){console.error("Error seeding game:",t),(0,c.toast)({title:"Error",description:"Failed to seed game. Please try again.",variant:"destructive"})}finally{a(!1)}},disabled:t,children:t?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(d.Z,{className:"mr-2 h-4 w-4 animate-spin"}),"Creating Game..."]}):"Create Sample Game"})})]})})}}},function(e){e.O(0,[2888,9774,179],(function(){return t=59072,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

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.