PageSourceSearch

https://www.toonsuniverse.wiki/_next/static/chunks/app/%5Blocale%5D/layout-ae1fa596416f968a.js

js toonsuniverse.wiki collected 2026-10-08 07:50:12 UTC 13,412 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[450],{1967:(e,t,r)=>{"use strict";r.d(t,{default:()=>S});var n=r(9216),a=r(2115),s=r(4663),l=r(3998),i=r(8955),o=r(9406),c=r(9007),d=r(3263),m=r(5666),h=r(2925),u=r(6615),g=r(2241),f=r(6541),p=r(5989),b=r(2784),v=r(5379);function x(){let{theme:e,setTheme:t}=(0,v.D)(),[r,s]=(0,a.useState)(!1),l=(0,i.c)();return((0,a.useEffect)(()=>{s(!0)},[]),r)?(0,n.Y)("button",{onClick:()=>t("dark"===e?"light":"dark"),className:"flex items-center gap-2 px-3 py-2 rounded-lg bg-white/5 hover:bg-white/10 transition border border-border",title:l("dark"===e?"common.lightMode":"common.darkMode"),"aria-label":l("dark"===e?"common.lightMode":"common.darkMode"),children:"dark"===e?(0,n.Y)(p.A,{className:"w-4 h-4"}):(0,n.Y)(b.A,{className:"w-4 h-4"})}):(0,n.Y)("button",{className:"flex items-center gap-2 px-3 py-2 rounded-lg bg-white/5 border border-border",disabled:!0,children:(0,n.Y)("div",{className:"w-4 h-4"})})}var y=r(2941),N=r(6943),w=r(5390),k=r(7187),Y=r(7500),D=r(1825),F=r(1272),C=r(5264);let A=[{key:"codes",path:"/codes",icon:y.A,isContentType:!0},{key:"characters",path:"/characters",icon:N.A,isContentType:!0},{key:"infected",path:"/infected",icon:w.A,isContentType:!0},{key:"guide",path:"/guide",icon:k.A,isContentType:!0},{key:"community",path:"/community",icon:Y.A,isContentType:!0},{key:"emblems",path:"/emblems",icon:D.A,isContentType:!0},{key:"stats",path:"/stats",icon:F.A,isContentType:!0},{key:"cosmetics",path:"/cosmetics",icon:C.A,isContentType:!0}];A.filter(e=>e.isContentType).map(e=>e.path.slice(1));var P=r(4269);function _(e){let{navPreviewData:t,wikiLinks:r}=e,p=(0,i.c)(),b=(0,o.Ym)(),v=(0,s.rd)(),y=(0,s.a8)(),[N,w]=(0,a.useState)(!1),[k,Y]=(0,a.useState)(!1),[D,F]=(0,a.useState)(null),[C,_]=(0,a.useState)(null),[T,S]=(0,a.useState)(!1),[z,E]=(0,a.useState)(!1),[L,M]=(0,a.useState)([]),[j,O]=(0,a.useState)([]),$=(0,a.useRef)(null),R=(0,a.useRef)(null),B=(0,a.useRef)(null),U=function(){let e={};return f.D.locales.forEach(t=>{e[t]=t.toUpperCase()}),e}();(0,a.useEffect)(()=>{let e=e=>{$.current&&!$.current.contains(e.target)&&Y(!1),R.current&&!R.current.contains(e.target)&&F(null),B.current&&!B.current.contains(e.target)&&S(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]);let W=(0,a.useCallback)(e=>{D===e?F(null):(M((t[e]||[]).slice(0,5)),F(e))},[D,t]),q=(0,a.useCallback)(e=>{C===e?_(null):(O((t[e]||[]).slice(0,5)),_(e))},[C,t]),K=A.map(e=>({href:e.path,key:e.path.slice(1),label:p("nav.".concat(e.key)),icon:e.icon}));return(0,n.Y)("nav",{className:"fixed top-0 left-0 right-0 z-50 bg-background/80 backdrop-blur-lg border-b border-border",children:(0,n.FD)("div",{className:"container mx-auto px-4 py-4",children:[(0,n.FD)("div",{className:"flex items-center justify-between",children:[(0,n.FD)(s.N_,{href:"/",className:"flex items-center space-x-2 hover:opacity-80 transition",children:[(0,n.Y)("div",{className:"w-10 h-10 bg-[hsl(var(--nav-theme))] rounded-lg flex items-center justify-center font-bold text-xl",children:"T"}),(0,n.Y)("span",{className:"font-bold text-lg hidden sm:inline",children:"Toons Universe"}),(0,n.Y)("span",{className:"font-bold text-lg sm:hidden",children:"TU"})]}),(0,n.Y)("div",{className:"hidden md:flex items-center space-x-6 text-sm",ref:R,children:K.map(e=>{let r=e.icon,a=t[e.key]||[],l=D===e.key;return(0,n.FD)("div",{className:"relative",children:[(0,n.FD)("button",{onClick:()=>W(e.key),className:"flex items-center gap-2 transition ".concat(l?"text-[hsl(var(--nav-theme-light))]":"hover:text-[hsl(var(--nav-theme-light))]"),children:[(0,n.Y)(r,{className:"w-4 h-4"}),(0,n.Y)("span",{className:"text-xs",children:e.label}),(0,n.Y)(c.A,{className:"w-3 h-3 transition-transform ".concat(l?"rotate-180":"")})]}),l&&(0,n.FD)("div",{className:"absolute left-1/2 -translate-x-1/2 mt-4 w-72 bg-card rounded-lg shadow-lg border border-border z-50 overflow-hidden",children:[(0,n.FD)("div",{className:"py-2",children:[L.map(t=>(0,n.FD)(s.N_,{href:"/".concat(e.key,"/").concat(t.slug),className:"flex items-center gap-2 px-4 py-2.5 hover:bg-white/10 transition-colors text-sm text-foreground",onClick:()=>F(null),children:[(0,n.Y)(d.A,{className:"w-3 h-3 text-[hsl(var(--nav-theme-light))] flex-shrink-0"}),(0,n.Y)("span",{children:(0,P.$)(t.title)})]},t.slug)),0===L.length&&(0,n.Y)("div",{className:"px-4 py-3 text-sm text-muted-foreground text-center",children:p("common.articlesComingSoon")})]}),a.length>1&&(0,n.FD)(s.N_,{href:e.href,className:"flex items-center justify-center gap-1 px-4 py-2.5 border-t border-border text-sm font-medium text-[hsl(var(--nav-theme-light))] hover:bg-white/5 transition-colors",onClick:()=>
1F(null),children:[p("common.readMore"),(0,n.Y)(d.A,{className:"w-3.5 h-3.5"})]})]})]},e.href)})}),(0,n.FD)("div",{className:"flex items-center gap-3",children:[(0,n.Y)(x,{}),(0,n.FD)("div",{className:"relative",ref:$,children:[(0,n.FD)("button",{onClick:()=>Y(!k),className:"flex items-center gap-2 px-3 py-2 rounded-lg bg-white/5 hover:bg-white/10 transition border border-border",title:p("common.switchLanguage"),"aria-expanded":k,"aria-haspopup":"listbox",children:[(0,n.Y)(m.A,{className:"w-4 h-4"}),(0,n.Y)("span",{className:"text-sm font-medium hidden sm:inline",children:U[b]}),(0,n.Y)(c.A,{className:"w-3 h-3 transition-transform ".concat(k?"rotate-180":"")})]}),k&&(0,n.Y)("div",{className:"absolute right-0 mt-2 py-1 w-32 bg-card rounded-lg shadow-lg border border-border z-50",role:"listbox","aria-label":"Select language",children:f.D.locales.map(e=>(0,n.Y)("button",{onClick:()=>(e=>{if(e===b)return void Y(!1);v.replace(y,{locale:e}),Y(!1)})(e),className:"w-full px-4 py-2 text-left text-sm hover:bg-white/10 transition-colors ".concat(e===b?"text-[hsl(var(--nav-theme-light))] font-semibold":"text-foreground"),role:"option","aria-selected":e===b,children:U[e]},e))})]}),(0,n.FD)("div",{className:"relative hidden sm:block",ref:B,children:[(0,n.FD)(l.$,{size:"sm",onClick:()=>S(!T),className:"bg-[hsl(var(--nav-theme))] hover:bg-[hsl(var(--nav-theme)/0.9)] text-white text-xs px-2.5 py-1 h-7","aria-expanded":T,"aria-haspopup":"menu",children:["More Wikis",(0,n.Y)(c.A,{className:"w-3 h-3 ml-1 transition-transform ".concat(T?"rotate-180":"")})]}),T&&(0,n.Y)("div",{className:"absolute right-0 mt-2 py-1 w-72 bg-card rounded-lg shadow-lg border border-border z-50",role:"menu",children:r.map(e=>(0,n.FD)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 px-4 py-2.5 hover:bg-white/10 transition-colors text-sm text-foreground",role:"menuitem",onClick:()=>S(!1),children:[(0,n.Y)(h.A,{className:"w-3.5 h-3.5 text-[hsl(var(--nav-theme-light))] flex-shrink-0"}),(0,n.Y)("span",{className:"line-clamp-1",children:e.name})]},e.url))})]}),(0,n.Y)("button",{onClick:()=>w(!N),className:"md:hidden p-2 hover:bg-white/10 rounded-lg transition",children:N?(0,n.Y)(u.A,{className:"w-6 h-6"}):(0,n.Y)(g.A,{className:"w-6 h-6"})})]})]}),N&&(0,n.Y)("div",{className:"md:hidden mt-4 pb-4 border-t border-border pt-4",children:(0,n.FD)("div",{className:"flex flex-col space-y-1",children:[K.map(e=>{let r=e.icon,a=t[e.key]||[],l=C===e.key;return(0,n.FD)("div",{children:[(0,n.FD)("button",{onClick:()=>q(e.key),className:"flex items-center justify-between w-full px-4 py-2.5 hover:bg-white/5 rounded-lg transition ".concat(l?"text-[hsl(var(--nav-theme-light))]":""),children:[(0,n.FD)("span",{className:"flex items-center gap-3",children:[(0,n.Y)(r,{className:"w-5 h-5"}),e.label]}),(0,n.Y)(c.A,{className:"w-4 h-4 transition-transform ".concat(l?"rotate-180":"")})]}),l&&(0,n.FD)("div",{className:"ml-8 mr-4 mb-2 border-l-2 border-border pl-3",children:[j.map(t=>(0,n.FD)(s.N_,{href:"/".concat(e.key,"/").concat(t.slug),className:"flex items-center gap-2 py-2 text-sm text-foreground hover:text-[hsl(var(--nav-theme-light))] transition-colors",onClick:()=>{w(!1),_(null)},children:[(0,n.Y)(d.A,{className:"w-3 h-3 text-[hsl(var(--nav-theme-light))] flex-shrink-0"}),(0,n.Y)("span",{children:(0,P.$)(t.title)})]},t.slug)),0===j.length&&(0,n.Y)("div",{className:"py-2 text-sm text-muted-foreground",children:p("common.articlesComingSoon")}),a.length>1&&(0,n.FD)(s.N_,{href:e.href,className:"flex items-center gap-1 py-2 text-sm font-medium text-[hsl(var(--nav-theme-light))]",onClick:()=>{w(!1),_(null)},children:[p("common.readMore"),(0,n.Y)(d.A,{className:"w-3.5 h-3.5"})]})]})]},e.href)}),(0,n.Y)("div",{className:"flex items-center gap-3 px-4 pt-2",children:(0,n.Y)(x,{})}),(0,n.FD)("div",{className:"px-4",children:[(0,n.FD)("button",{onClick:()=>E(!z),className:"flex items-center justify-between w-full py-2.5 hover:bg-white/5 rounded-lg transition",children:[(0,n.FD)("span",{className:"flex items-center gap-3 font-medium",children:[(0,n.Y)(h.A,{className:"w-5 h-5"}),"More Wikis"]}),(0,n.Y)(c.A,{className:"w-4 h-4 transition-transform ".concat(z?"rotate-180":"")})]}),z&&(0,n.Y)("div",{className:"ml-8 mr-0 mb-2 border-l-2 border-border pl-3",children:r.map(e=>(0,n.FD)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 py-2 text-sm text-foreground hover:text-[hsl(var(--nav-theme-light))] transition-colors",onClick:()=>{w(!1),E(!1)},children:[(0,n.Y)(d.A,{className:"w-3 h-3 text-[hsl(var(--nav-theme-light))] flex-shrink-0"}),(0,n.Y)("span",{className:"line-clamp-1",children:e.name})]},e.url))})]})]})})]})})}function T(e){let{children:t,...r}=e;return(0,n.Y)(v.N,{...r,children:t})}function S(e){let{children:t,navPreviewData:r,wikiLinks:s}=e;return(0,a.useEffect)(()=>{document.body.className="antialiased"},[]),(0,n.Y)(T,{attribute:"class",defaultTheme:"dark",enableSystem:!1,children:(0,n.FD)("div",{className:"antialiased",children:[(0,n.Y)(_,{navPreviewData:r,wikiLinks:s}),(0,n.Y)("main",{className:"pt-20",children:t})]})})}},3195:(e,t,r)=>{"use strict";r.d(t,{default:()=>s});var n=r(9216),a=r(8321);function s(){let e="G-CTNDLFWPPM",t="wn4oxzd9vv";return(0,n.FD)(n.FK,{children:[e&&(0,n.FD)(n.FK,{children:[(0,n.Y)(a.default,{strategy:"lazyOnload",src:"https://www.googletagmanager.com/gtag/js?i
1d=".concat(e)}),(0,n.Y)(a.default,{id:"google-analytics",strategy:"lazyOnload",children:"\n              window.dataLayer = window.dataLayer || [];\n              function gtag(){dataLayer.push(arguments);}\n              gtag('js', new Date());\n              gtag('config', '".concat(e,"');\n            ")})]}),t&&(0,n.Y)(a.default,{id:"microsoft-clarity",strategy:"lazyOnload",children:'\n            (function(c,l,a,r,i,t,y){\n              c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};\n              t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;\n              y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);\n            })(window, document, "clarity", "script", "'.concat(t,'");\n          ')})]})}},3998:(e,t,r)=>{"use strict";r.d(t,{$:()=>c});var n=r(9216),a=r(2115),s=r(6673),l=r(3101),i=r(4269);let o=(0,l.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),c=a.forwardRef((e,t)=>{let{className:r,variant:a,size:l,asChild:c=!1,...d}=e,m=c?s.DX:"button";return(0,n.Y)(m,{className:(0,i.cn)(o({variant:a,size:l,className:r})),ref:t,...d})});c.displayName="Button"},4269:(e,t,r)=>{"use strict";r.d(t,{$:()=>l,cn:()=>s});var n=r(2821),a=r(5889);function s(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,a.QP)((0,n.$)(t))}function l(e){let t=e.indexOf(" - ");if(-1!==t)return e.substring(0,t).trim();let r=e.lastIndexOf(":"),n=e.indexOf(":");return -1!==r&&r!==n?e.substring(0,r).trim():e}},4663:(e,t,r)=>{"use strict";r.d(t,{N_:()=>s,a8:()=>i,rd:()=>o});var n=r(5251),a=r(6541);let{Link:s,redirect:l,usePathname:i,useRouter:o}=(0,n.A)(a.D)},6147:(e,t,r)=>{Promise.resolve().then(r.bind(r,7088)),Promise.resolve().then(r.bind(r,3809)),Promise.resolve().then(r.t.bind(r,1402,23)),Promise.resolve().then(r.t.bind(r,1741,23)),Promise.resolve().then(r.t.bind(r,9543,23)),Promise.resolve().then(r.bind(r,1967)),Promise.resolve().then(r.bind(r,6741)),Promise.resolve().then(r.bind(r,6582)),Promise.resolve().then(r.bind(r,924)),Promise.resolve().then(r.bind(r,1811)),Promise.resolve().then(r.bind(r,5163)),Promise.resolve().then(r.bind(r,3195)),Promise.resolve().then(r.bind(r,3627))},6541:(e,t,r)=>{"use strict";r.d(t,{D:()=>n});let n=(0,r(4497).A)({locales:["en","pt","es","id"],defaultLocale:"en",localePrefix:"as-needed",localeDetection:!0})}},e=>{e.O(0,[641,619,330,125,920,334,441,255,358],()=>e(e.s=6147)),_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.