1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1562],{51562:(e,t,n)=>{n.d(t,{LandscapeOnlyGate:()=>k,MinSizeGate:()=>P,PhoneBlock:()=>W,PhoneGate:()=>A,k:()=>g});var i=n(95155),a=n(20063),r=n(12115);function o(){return"undefined"!=typeof navigator&&/PixelGameLabApp/i.test(navigator.userAgent||"")}async function l(){try{return{P:(await Promise.all([n.e(4968),n.e(3796)]).then(n.bind(n,13796))).ScreenOrientation}}catch(e){return null}}async function s(){if(!o())return;let e=await l();try{await (null==e?void 0:e.P.lock({orientation:"landscape"}))}catch(e){}}async function c(){if(!o())return;let e=await l();try{await (null==e?void 0:e.P.unlock())}catch(e){}}async function d(){o()&&(function(){var e,t;if(!o())return!1;let n=(null==(e=window.screen)?void 0:e.width)||window.innerWidth||1,i=(null==(t=window.screen)?void 0:t.height)||window.innerHeight||1;return Math.max(n,i)/Math.max(1,Math.min(n,i))>=1.75}()?await c():await s())}var h=n(2561),p=n(40932);let x="var(--font-barlow)";function g(){let[e,t]=(0,r.useState)({ready:!1,isPhone:!1,isNative:!1,inApp:!1,isTouch:!1,w:0,h:0});return(0,r.useEffect)(()=>{let e=()=>{var e,n,i,a,r,o;let l=Math.max((null==(e=window.screen)?void 0:e.width)||0,(null==(n=window.screen)?void 0:n.height)||0,window.innerWidth,window.innerHeight),s=(navigator.maxTouchPoints||0)>0||(null==(i=(a=window).matchMedia)?void 0:i.call(a,"(pointer: coarse)").matches),c=/PixelGameLabApp/i.test(navigator.userAgent||""),d=(null==(r=window.screen)?void 0:r.width)||window.innerWidth||1,h=(null==(o=window.screen)?void 0:o.height)||window.innerHeight||1,p=Math.max(d,h)/Math.max(1,Math.min(d,h)),x=c&&p>=1.75;t({ready:!0,isPhone:x||!c&&l<1e3,isNative:c&&!x,inApp:c,isTouch:!!s,w:window.innerWidth,h:window.innerHeight})};return e(),window.addEventListener("resize",e),window.addEventListener("orientationchange",e),()=>{window.removeEventListener("resize",e),window.removeEventListener("orientationchange",e)}},[]),e}let u={position:"fixed",inset:0,zIndex:9999,background:"white",display:"grid",gridTemplateColumns:"minmax(0, 1fr)",placeItems:"center",padding:"16px 20px",textAlign:"center",overflowX:"hidden",fontFamily:x,color:"#26323D",overflowY:"auto"};function w(e){let{w:t=260}=e;return(0,i.jsx)("img",{src:"/pixelgamelab_logo_transparent.png",alt:"Pixel Game Lab",style:{width:"min(".concat(t,"px, 72vw)"),maxHeight:"30vh",objectFit:"contain",display:"block"}})}function f(e){let{prefix:t,big:n}=e;return(0,i.jsxs)("a",{href:"".concat(t,"/games"),style:{display:"inline-flex",alignItems:"center",gap:n?10:8,textDecoration:"none",background:"#F7931E",color:"#fff",fontWeight:900,letterSpacing:"-0.01em",fontSize:n?20:16.5,padding:n?"13px 26px":"11px 20px",borderRadius:15,boxShadow:"0 5px 0 #D97A12, 0 10px 24px rgba(0,0,0,0.28)"},children:[(0,i.jsx)("svg",{width:n?24:20,height:n?24:20,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:(0,i.jsx)("path",{d:"M8 5.5a1 1 0 0 1 1.54-.84l8.2 5.34a1 1 0 0 1 0 1.68l-8.2 5.34A1 1 0 0 1 8 16.18Z"})}),"Games Catalog"]})}function m(e){let{big:t}=e,n=p.Ts.filter(e=>!!e.url);return n.length?(0,i.jsx)("div",{style:{display:"flex",justifyContent:"center",gap:t?16:10,flexWrap:"wrap"},children:n.map(e=>(0,i.jsx)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",style:{display:"inline-flex",border:"2.5px solid #6DDCA7",borderRadius:16,padding:t?7:5,background:"#fff",boxShadow:"0 3px 10px rgba(20,30,40,0.12)"},children:(0,i.jsx)("img",{src:e.img,alt:e.alt,style:{height:t?60:44,width:"auto",display:"block"}})},e.key))}):null}function y(e){let{prefix:t,row:n}=e,a={fontSize:16,fontWeight:700,color:"#3A4A5A",textDecoration:"none",whiteSpace:"nowrap"};return(0,i.jsxs)("nav",{style:{display:"flex",flexDirection:n?"row":"column",flexWrap:"wrap",gap:n?"clamp(18px, 5vw, 52px)":13,alignItems:"center",justifyContent:"center"},children:[(0,i.jsx)("a",{href:"".concat(t,"/what-is-pixel-game-lab"),style:a,children:"What is Pixel Game Lab?"}),(0,i.jsx)("a",{href:"".concat(t,"/about"),style:a,children:"About Us"}),(0,i.jsx)("a",{href:"".concat(t,"/school-partnerships"),style:a,children:"School Partnerships"})]})}function b(e){let{prefix:t,landscape:n,inApp:a}=e;return(0,i.jsx)("div",{style:{position:"fixed",inset:0,zIndex:9999,background:"#fff",overflowY:"auto",fontFamily:x,color:"#26323D"},children:(0,i.jsxs)("div",{style:{minHeight:"100%",display:"flex",flexDirection:"column"},children:[(0,i.jsxs)("div",{style:{background:"#16332A",color:"white",textAlign:"center",padding:n?"12px 22px":"20px 22px"},children:[(0,i.jsx)("div",{style:{fontWeight:800,fontSize:n?18:21,marginBottom:7},children:"â ï¸ You're not seeing the full Pixel Game Lab!"}),(0,i.jsxs)("p",{style:{fontSize:n?14.5:16.5,lineHeight:1.5,color:"rgba(255,255,255,0.9)",margin:"0 auto",maxWidth:n?700:380},children:["The Pixel Game Lab ",(0,i.jsx)("strong",{style:{color:"#6DDCA7"},children:"Tools"})," and ",(0,i.jsx)("strong",{style:{color:"#6DDCA7"},children:"Login"})," need a ",(0,i.jsx)("strong",{style:{color:"#6DDCA7"},children:"tablet-size or larger screen"}),". On a mobile phone you can only play games made by Pixel Game Lab. Want to make your own games? Please open Pixel Game Lab on a computer or tablet."]})]}),(0,i.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:8,padding:n?"14px 20px 10px":"24px 22px 14px"},children:[(0,i.jsx)(w,{w:300}),(0,i.jsxs)("h2",{style:{margin:"6px 0 0",textAlign:"center",fontWeight:900,letterSpacing:"-0.02em",lineHeight:1.2,fontSize:n?20:23,maxWidth:440},children:["The ",(0,i.jsx)("span",{style:{color:"#2FA36B"},children:"game creation tool"})," we use in our schools, now available for everyone."]}),(0,i.jsx)("p",{style:{margin:0,textAlign:"center",fontSize:n?14:15.5,lineHeight:1.5,color:"#4A5A6A",maxWidth:420},children:"Kids design their own characters, build levels, and publish real games their friends can play. Best on a tablet or computer."})]}),(0,i.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:n?12:16,padding:n?"14px 20px 16px":"20px 20px 26px"},children:[!a&&(0,i.jsx)(m,{big:!n}),(0,i.jsx)("div",{style:{margin:n?"6px 0":"12px 0"},children:(0,i.jsx)(f,{prefix:t,big:!0})}),(0,i.jsx)(y,{prefix:t,row:n})]})]})})}let v={phone:{src:"/rotate-phone.png",alt:"Turn your phone sidew
1ays â rotate to landscape to start playing."},tablet:{src:"/rotate-tablet.png",alt:"Turn your tablet sideways â rotate to landscape to start playing."},window:{src:"/rotate-window.png",alt:"Make your window bigger â expand your browser window to start playing."}};function j(e){let{variant:t}=e,n=v[t];return(0,i.jsx)("div",{style:u,children:(0,i.jsx)("img",{src:n.src,alt:n.alt,style:{width:"min(460px, 84vw)",maxHeight:"88vh",height:"auto",objectFit:"contain"}})})}function A(e){let{children:t}=e,n=g(),o=(0,a.usePathname)()||"/",l=(0,h.RS)(),s=o.replace(/^\/maker/,"")||"/",c=n.ready&&n.isPhone&&!("/games"===s||s.startsWith("/games/")||"/about"===s||"/learn"===s||"/what-is-pixel-game-lab"===s||"/school-partnerships"===s||"/terms"===s||"/privacy"===s||"/verify-email"===s||"/reset-password"===s||"/forgot-password"===s),p=s.endsWith("/play");return(0,r.useEffect)(()=>{n.ready&&!p&&d()},[n.ready,p]),(0,i.jsxs)(i.Fragment,{children:[t,c&&(0,i.jsx)(b,{prefix:l,landscape:n.w>n.h,inApp:n.inApp})]})}function P(e){let{children:t}=e,n=g();if(!n.ready)return(0,i.jsx)(i.Fragment,{children:t});let a=n.h>n.w,r=!n.isNative&&n.w<1e3;return a||r?(0,i.jsxs)(i.Fragment,{children:[t,(0,i.jsx)(j,{variant:n.isTouch?"tablet":"window"})]}):(0,i.jsx)(i.Fragment,{children:t})}function k(e){let{children:t}=e,n=g(),a=n.ready&&n.h>n.w;(0,r.useEffect)(()=>(s(),()=>{d()}),[]);let o=n.isPhone?"phone":n.isTouch?"tablet":"window";return(0,i.jsxs)(i.Fragment,{children:[t,a&&(0,i.jsx)(j,{variant:o})]})}function W(e){let{children:t}=e,n=g(),a=n.ready&&n.isPhone;return(0,i.jsxs)(i.Fragment,{children:[t,a&&(0,i.jsx)("div",{style:u,children:(0,i.jsxs)("div",{style:{maxWidth:420},children:[(0,i.jsx)(w,{}),(0,i.jsx)("h1",{style:{fontWeight:900,fontSize:23,margin:"0 0 10px"},children:"Use a computer or tablet"}),(0,i.jsx)("p",{style:{fontSize:15,lineHeight:1.5,color:"rgba(255,255,255,0.82)",margin:0},children:"The Education Portal isn't available on phones. Please open it on a computer or tablet."})]})})]})}}}]);
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.