PageSourceSearch

https://electrondashgame.org/_next/static/chunks/45-8575c05cd14226ef.js

js electrondashgame.org collected 2026-10-05 09:48:04 UTC 12,134 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[45],{3389:(e,t,r)=>{"use strict";r.d(t,{default:()=>o});var l=r(8045),s=r(5177),n=r(5070);function i(e,t){return t?"".concat(e," ").concat(t):e}function o(e){let{slug:t,className:o,lazy:a=!0}=e,c=(0,s.useRef)(null),d=(0,n.usePathname)(),u="https://plantsvsbrainort-comment.vercel.app",[m,h]=(0,s.useState)(!a),[v,x]=(0,s.useState)(!1);return((0,s.useEffect)(()=>{if(!a)return;let e=c.current;if(!e)return;if(!("IntersectionObserver"in window))return void h(!0);let t=new IntersectionObserver(e=>{var r;(null==(r=e[0])?void 0:r.isIntersecting)&&(h(!0),t.disconnect())},{rootMargin:"0px 0px 160px 0px"});return t.observe(e),()=>t.disconnect()},[a]),(0,s.useEffect)(()=>{if(!m||!u)return;let e=c.current;if(!e)return;let l=null,s=!1;return(async()=>{try{let{init:i}=await Promise.all([r.e(115),r.e(485),r.e(314)]).then(r.bind(r,5314)),o=(t?"/games/".concat(t):null!=d?d:"/").replace(/\?.*$/,"").replace(/#.*$/,"").replace(/\/+$/,"")||"/";if(l=i({el:e,serverURL:u,path:o,lang:"en",reaction:!1,meta:["nick","mail"],requiredMeta:["nick","mail"],wordLimit:100,locale:{placeholder:"Share your thoughts about this game…"},login:"disable",dark:"true",imageUploader:!1,search:!1,noCopyright:!0}),s){var n;null==l||null==(n=l.destroy)||n.call(l)}}catch(e){console.error("Failed to init Waline",e),x(!0)}})(),()=>{s=!0,(null==l?void 0:l.destroy)&&l.destroy(),l=null}},[m,t,d,u]),u)?(0,l.jsx)("div",{ref:c,className:i("waline",o),children:v?(0,l.jsx)("p",{className:"text-sm text-rose-400",children:"Failed to load comments. Please try again later."}):m?null:(0,l.jsx)("p",{className:"text-sm text-zinc-400",children:"Loading comments…"})}):(0,l.jsx)("div",{className:i("waline",o),children:(0,l.jsx)("p",{className:"text-sm text-zinc-400",children:"Comments are unavailable because NEXT_PUBLIC_WALINE_SERVER_URL is not configured."})})}},3610:(e,t,r)=>{"use strict";r.d(t,{default:()=>n});var l=r(8045),s=r(5177);function n(e){let{contentId:t,html:r,description:n,faq:i,faqTitle:o,categories:a,categoriesLabel:c,showMoreLabel:d,showLessLabel:u,maxCollapsedHeight:m=700}=e,[h,v]=(0,s.useState)(!1),[x,f]=(0,s.useState)(!1),p=(0,s.useRef)(null);(0,s.useEffect)(()=>{v(!1)},[t]),(0,s.useEffect)(()=>{let e=p.current;if(!e)return;let t=()=>{let e=p.current;e&&f(e.scrollHeight>m+1)};t();let r=new ResizeObserver(t);return r.observe(e),()=>{r.disconnect()}},[m,t]);let b=(0,s.useMemo)(()=>(null==a?void 0:a.length)?a.map(e=>e?e.slice(0,1).toUpperCase()+e.slice(1):"").filter(Boolean).join(", "):"",[a]),g=!!(null==i?void 0:i.length),w=!!b,j=h?void 0:"".concat(m,"px");return(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsxs)("div",{ref:p,className:"overflow-hidden transition-[max-height] duration-300 ease-in-out",style:{maxHeight:j},children:[r?(0,l.jsx)("div",{className:"rich-content",dangerouslySetInnerHTML:{__html:r},suppressHydrationWarning:!0}):(0,l.jsxs)("div",{className:"rich-content",children:[n?(0,l.jsx)("p",{children:n}):null,g?(0,l.jsxs)("div",{children:[(0,l.jsx)("h3",{className:"mt-6",children:o}),(0,l.jsx)("div",{className:"divide-y divide-[--color-border]",children:null==i?void 0:i.map((e,t)=>(0,l.jsxs)("div",{className:"py-3",children:[(0,l.jsx)("div",{className:"font-medium tracking-tight leading-tight text-zinc-100",children:e.q}),(0,l.jsx)("div",{className:"text-zinc-300 leading-relaxed",children:e.a})]},"".concat(e.q,"-").concat(t)))})]}):null]}),w?(0,l.jsxs)("div",{className:"mt-4 text-sm text-zinc-400",children:[c,": ",b]}):null]}),!h&&x?(0,l.jsx)("div",{className:"pointer-events-none absolute inset-x-0 bottom-0 h-16 bg-gradient-to-t from-[#0b0b0f] to-transparent"}):null]}),x?(0,l.jsxs)("button",{type:"button",className:"group mt-4 inline-flex cursor-pointer items-center gap-2 text-sm font-semibold text-[--color-primary] transition-all duration-200 hover:text-[--color-primary] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[--color-primary]",onClick:()=>v(e=>!e),"aria-expanded":h,children:[(0,l.jsx)("span",{className:"group-hover:underline group-focus-visible:underline",children:h?u:d}),(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",className:"size-4 transition-transform duration-200 ".concat(h?"rotate-180":""," group-hover:translate-x-1 group-focus-visible:translate-x-1"),children:(0,l.jsx)("path",{d:"M6 9l6 6 6-6"})})]}):null]})}},5045:(e,t,r)=>{Promise.resolve().then(r.t.bind(r,4429,23)),Promise.resolve().then(r.t.bind(r,3730,23)),Promise.resolve().then(r.bind(r,4409)),Promise.resolve().then(r.bind(r,3610)),Promise.resolve().then(r.bind(r,6242)),Promise.resolve().then(r.bind(r,9928)),Promise.resolve().then(r.bind(r,9800)),Promise.resolve().then(r.bind(r,3389))},6242:(e,t,r)=>{"use strict";r.d(t,{default:()=>i});var l=r(8045),s=r(5177),n=r(4380);function i(e){let{targetId:t,label:r,reloadLabel:i="Reload"}
1=e,[o,a]=(0,s.useState)(!1),[c,d]=(0,s.useState)(!1),[u,m]=(0,s.useState)(""),[h,v]=(0,s.useState)(0);(0,s.useEffect)(()=>{let e=()=>a(!!document.fullscreenElement);return document.addEventListener("fullscreenchange",e),()=>document.removeEventListener("fullscreenchange",e)},[]),(0,s.useEffect)(()=>{if(!c)return;let e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}},[c]),(0,s.useEffect)(()=>{if(!c)return;let e=e=>{"Escape"===e.key&&d(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[c]);let x=()=>document.getElementById(t),f=()=>{let e=x();return e?e.querySelector("iframe"):null},p=()=>{let e=(()=>{var e,t;let r=f();return r instanceof HTMLIFrameElement&&r.src?r.src:null!=(t=null==(e=x())?void 0:e.getAttribute("data-game-src"))?t:""})();e&&(m(e),v(0),d(!0))},b=async()=>{if(c)return void d(!1);let e=x();if(!e)return;if(document.fullscreenElement)return void await document.exitFullscreen().catch(()=>{});let t=e.requestFullscreen||e.webkitRequestFullscreen||e.mozRequestFullScreen||e.msRequestFullscreen;if(!t)return void p();try{await t.call(e)}catch(e){p()}},g=()=>{if(c)return void v(e=>e+1);let e=f();e instanceof HTMLIFrameElement&&(e.src=e.src)},w="group inline-flex cursor-pointer items-center gap-2 rounded-xl border border-[--color-border] bg-transparent/20 px-3 py-2 text-sm font-medium text-zinc-50 transition-all duration-200 ease-out hover:-translate-y-0.5 hover:border-[--color-primary] hover:bg-[--color-primary]/20 hover:text-[--color-primary] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[--color-primary] aria-pressed:border-[--color-primary] aria-pressed:bg-[--color-primary]/15 aria-pressed:text-[--color-primary]",j=o||c;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("button",{type:"button",onClick:g,className:w,"aria-label":i,children:[(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"size-4 transition-transform duration-200 group-hover:rotate-[-50deg]",children:(0,l.jsx)("path",{d:"M12 4a8 8 0 0 1 7.84 6.4h-2.18A6 6 0 1 0 18 13h-2.75l3.5-3.5L22.25 13H20a8 8 0 1 1-8-9Z"})}),i]}),(0,l.jsxs)("button",{type:"button",onClick:b,className:w,"aria-pressed":j,children:[(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"size-4 transition-transform duration-200 group-hover:scale-110 group-aria-pressed:scale-115",children:(0,l.jsx)("path",{d:"M4 9V4h5v2H6v3H4Zm10-5h5v5h-2V6h-3V4ZM6 16h3v2H4v-5h2v3Zm12-3h2v5h-5v-2h3v-3Z"})}),r]}),c&&u?(0,n.createPortal)((0,l.jsxs)("div",{className:"fixed inset-0 z-[100] bg-black",children:[(0,l.jsxs)("div",{className:"absolute inset-x-0 top-0 z-20 flex items-center justify-between p-3 sm:p-4",children:[(0,l.jsxs)("button",{type:"button",onClick:g,className:"inline-flex cursor-pointer items-center gap-2 rounded-xl border border-zinc-600/70 bg-zinc-900/75 px-3 py-2 text-sm font-medium text-zinc-50 transition-all duration-200 ease-out hover:border-zinc-400 hover:bg-zinc-900/90",children:[(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"size-4",children:(0,l.jsx)("path",{d:"M12 4a8 8 0 0 1 7.84 6.4h-2.18A6 6 0 1 0 18 13h-2.75l3.5-3.5L22.25 13H20a8 8 0 1 1-8-9Z"})}),i]}),(0,l.jsxs)("button",{type:"button",onClick:()=>d(!1),className:"inline-flex cursor-pointer items-center gap-2 rounded-xl border border-zinc-600/70 bg-zinc-900/75 px-3 py-2 text-sm font-medium text-zinc-50 transition-all duration-200 ease-out hover:border-zinc-400 hover:bg-zinc-900/90",children:[(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"size-4",children:(0,l.jsx)("path",{d:"M6.7 5.3a1 1 0 0 0-1.4 1.4L10.6 12l-5.3 5.3a1 1 0 1 0 1.4 1.4l5.3-5.3 5.3 5.3a1 1 0 0 0 1.4-1.4L13.4 12l5.3-5.3a1 1 0 0 0-1.4-1.4L12 10.6 6.7 5.3Z"})}),"Exit"]})]}),(0,l.jsx)("iframe",{src:u,title:"Game fullscreen view",className:"h-full w-full border-0 bg-black",allow:"gamepad *; fullscreen *; autoplay; clipboard-write",referrerPolicy:"no-referrer",sandbox:"allow-same-origin allow-scripts allow-pointer-lock allow-popups allow-forms",allowFullScreen:!0},h)]}),document.body):null]})}},9928:(e,t,r)=>{"use strict";r.d(t,{default:()=>i});var l=r(8045),s=r(5177),n=r(2989);function i(e){let{slug:t,embedUrl:r,title:i,clickToPlay:o,cover:a,playLabel:c,id:d}
1=e,[u,m]=(0,s.useState)(!o);if(!r)return(0,l.jsx)("div",{className:"flex h-full items-center justify-center rounded-xl bg-gradient-to-br from-zinc-800 to-zinc-900 text-3xl text-zinc-200",children:i});let h="/embed/".concat(t);return(0,l.jsxs)("div",{id:d,"data-game-src":h,className:"relative h-full w-full overflow-hidden rounded-xl bg-black",children:[a?(0,l.jsx)("div",{className:"absolute inset-0",children:(0,l.jsx)(n.default,{src:a,alt:"",fill:!0,sizes:"100vw",priority:!1,"aria-hidden":"true",className:"pointer-events-none select-none object-cover",style:{transform:"scale(1.35)",filter:"blur(90px) saturate(1.35) brightness(1.05)",opacity:.95}})}):(0,l.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-zinc-800 via-zinc-950 to-black","aria-hidden":"true"}),(0,l.jsx)("div",{className:"absolute inset-0 bg-black/30","aria-hidden":"true"}),(0,l.jsx)("div",{className:"absolute inset-0 bg-gradient-to-b from-white/15 via-transparent to-black/75","aria-hidden":"true"}),u?null:(0,l.jsx)("div",{className:"absolute inset-0 z-10 grid place-items-center pointer-events-none",children:(0,l.jsxs)("div",{className:"flex flex-col items-center gap-5",children:[(0,l.jsx)("div",{className:"overflow-hidden rounded-xl shadow-lg shadow-black/30",children:a?(0,l.jsx)(n.default,{src:a,alt:"".concat(i," cover"),width:140,height:140,className:"object-cover"}):(0,l.jsx)("div",{className:"size-[140px] bg-gradient-to-br from-zinc-700 to-zinc-800"})}),(0,l.jsx)("div",{className:"text-2xl font-semibold tracking-tight text-zinc-200 drop-shadow-sm",children:i}),(0,l.jsxs)("button",{type:"button",onClick:()=>m(!0),className:"pointer-events-auto inline-flex items-center gap-2 rounded-full bg-red-500 px-6 py-3 text-lg font-semibold text-white shadow-md shadow-red-900/30 transition-transform hover:scale-105 focus:outline-none focus:ring-2 focus:ring-red-400 cursor-grab active:cursor-grabbing",children:[(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"size-5","aria-hidden":"true",children:(0,l.jsx)("path",{d:"M6 8a2 2 0 0 0-2 2v4a4 4 0 0 0 4 4h8a4 4 0 0 0 4-4v-4a2 2 0 0 0-2-2h-1.5a2.5 2.5 0 0 0-2.45 2H9.95A2.5 2.5 0 0 0 7.5 8H6Zm2.5 4.75a.75.75 0 1 1 0-1.5.75.75 0 0 1 0 1.5Zm7 0a.75.75 0 1 1 0-1.5.75.75 0 0 1 0 1.5Z"})}),c||"Play"]})]})}),u?(0,l.jsx)("iframe",{src:h,title:i,loading:"lazy",className:"relative z-10 h-full w-full border border-white/10 bg-black/40",allow:"gamepad *; fullscreen *; autoplay; clipboard-write",referrerPolicy:"no-referrer",sandbox:"allow-same-origin allow-scripts allow-pointer-lock allow-popups allow-forms",allowFullScreen:!0}):null]})}}}]);

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.