1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5504,1333],{42967:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return countDown}});var r=t(2784),o=t(83458),i=t(60013),a=t(81734),l=t(6896),u=t(57904),c=t(92517),s=t.n(c),d=t(69575),f=t.n(d),p=t(39113),h=t(62194),m=t(21026),v=t(52322);function CountDown(){var e=(0,l.t)(),n=(0,p.useAppSelector)(function(e){return e.spyFallGame.currentPlayer}),t=(0,u.Z)({initialTime:3}).countdown;return(0,r.useEffect)(function(){if("web"!==f().OS){var e=s().addEventListener("hardwareBackPress",function(){return!0});return function(){return e.remove()}}},[]),(0,r.useEffect)(function(){1===t&&setTimeout(function(){return(null==n?void 0:n.role)==="Spy"?e.push("/spy/spy"):(null==n?void 0:n.role)==="Non-spy"?e.push("/spy/location"):void 0},1e3)},[t]),(0,v.jsx)(h.Z,{color:a.Z.COLORS.black,children:(0,v.jsx)(m.M,{children:(0,v.jsxs)(o.G,{flex:1,paddingHorizontal:24,marginTop:100,children:[(0,v.jsxs)(o.G,{children:[(0,v.jsx)(i.Z,{style:{fontSize:42,lineHeight:46,fontWeight:"500",fontFamily:a.Z.FONTS.recoletaMedium,color:"#fff"},numberOfLines:2,ellipsizeMode:"tail",children:"Game beginning..."}),(0,v.jsx)(o.G,{pt:50,children:(0,v.jsx)(i.Z,{textAlign:"center",fontFamily:a.Z.FONTS.recoletaMedium,color:"#fff",fontSize:300,lineHeight:400,children:t})})]}),(0,v.jsxs)(o.G,{justifyContent:"flex-end",flex:1,children:[(0,v.jsx)(i.Z,{textAlign:"center",fontFamily:a.Z.FONTS.circularBold,color:"#fff",opacity:.6,fontSize:22,letterSpacing:-.66,children:"Assigning you a role ..."}),(0,v.jsx)(i.Z,{mt:27,pb:40,textAlign:"center",fontFamily:a.Z.FONTS.circularBook,color:"#fff",fontSize:18,letterSpacing:-.54,children:"If other players are nearby, ensure they can't see your screen!"})]})]})})})}var countDown=function(){return(0,v.jsx)(CountDown,{})}},48040:function(e,n,t){"use strict";t.d(n,{x:function(){return i}});var r=t(9330),o=t.n(r),i=(0,t(69929).zo)(o(),{},{componentName:"Box"})},60013:function(e,n,t){"use strict";var r=t(77413),o=t.n(r),i=t(69929);n.Z=(0,i.zo)(o(),{},{componentName:"Text"})},83458:function(e,n,t){"use strict";t.d(n,{G:function(){return i}});var r=t(9330),o=t.n(r),i=(0,t(69929).zo)(o(),{},{componentName:"View"})},6896:function(e,n,t){"use strict";t.d(n,{t:function(){return useRouter}});var r=t(2784),o=t(69575),i=t.n(o),a=t(76613),l=t(62180),u=t(87720),c=t(39910),s=t(5632);function useRouter(){var e=(0,u.Z)(),n=(0,c.H)(),t=(0,s.useRouter)(),o=(0,r.useContext)(l.og);return(0,r.useMemo)(function(){return{push:function(n,r,o){if("web"===i().OS)null==t||t.push(n,r,o);else{var l=(0,a.G)(r||n);l&&e(l)}},replace:function(r,u,c){if("web"===i().OS)null==t||t.replace(r,u,c);else{var s=(0,a.G)(u||r);if(s){if((null==c||null===(h=c.experimental)||void 0===h?void 0:h.nativeBehavior)==="stack-replace"){if(null!=o&&o.options){var d=o.options,f=null!=d&&d.getStateFromPath?d.getStateFromPath(s,d.config):(0,l.cT)(s,null==d?void 0:d.config);if(f){var p=(0,l.ft)(f,null==d?void 0:d.config);if(void 0!==p){if("payload"in p&&p.payload&&"name"in p.payload&&p.payload.name){var h,m,v=p.payload,y=v.name,g=v.params;null!=c&&null!==(m=c.experimental)&&void 0!==m&&m.isNestedNavigator&&g&&"screen"in g&&g.screen?null==n||n.dispatch(l.cs.replace(g.screen,g.params)):null==n||n.dispatch(l.cs.replace(y,g))}else null==n||n.dispatch(p)}else null==n||n.reset(f)}}else console.warn('[solito] replace("'.concat(s,"\") faced an issue. You should still see your new screen, but it probably didn't replace the previous one. This may be due to a breaking change in React Navigation. \n Please open an issue at https://github.com/nandorojo/solito and report how this happened. Thanks!")),e(s)}else e(s)}}},back:function(){"web"===i().OS?null==t||t.back():null==n||n.goBack()},parseNextPath:a.G}},[e,n])}},57678:function(e,n,t){"use strict";t.d(n,{E:function(){return i},R:function(){return a}});var r=t(57948),o=t.n(r),i=900,a=Math.min(o().get("window").width,i)},81734:function(e,n,t){"use strict";t.d(n,{C:function(){return r}});var r={COLORS:{primary:"#9F32E5",primaryDark:"#8613CF",primaryDarker:"#5e2882",primaryLight:"#C584EF",primaryLighter:"#b675e0",primaryLightest:"#E6D9F2",secondary:"#FFF845",secondary
1Dark:"#EAE224",secondaryLight:"#FFF845",black:"#1E1E1E",white:"#FFFFFF",whiteLighter:"#bfbebc",whiteDim:"#FAF9F7",grey:"#D9D9D9",error:"#FFB7B7",green:"#00A410",blue:"#0862CB",darkGrey:"#4F4F4F",pink:"#e7cef7",orange:"#E38800",errorDark:"#E22E2E",red:"#FF0000"},FONTS:{circularBook:"circular-book",circularBold:"circular-bold",circularMediumItalic:"circular-mediumItalic",glikerBold:"gliker-bold",glikerRegular:"gliker-regular",glikerBlack:"gliker-black",glikerSemiBold:"gliker-semibold",boldMarket:"bold-market",recoletaMedium:"recoleta-medium",circularBoldItalic:"circular-bold-italic"}};n.Z=r},49381:function(e,n,t){"use strict";t.d(n,{d:function(){return useModal}});var r=t(2784),o=(0,r.createContext)({feedbackModal:!1,setFeedbackModal:function(){},spyFallPinModal:!1,setSpyFallPinModal:function(){},interruptedModal:!1,setInterruptedModal:function(){},modalOpen:!1,setmodalOpen:function(){},data:null,setData:function(){},ugcModal:!1,setUGCModal:function(){},syncingTimeModal:!1,setSyncingTimeModal:function(){},showSFDModal:!1,setShowSFDModal:function(){},showSFDModal2:!1,setShowSFDModal2:function(){},showYearlySubModal:!1,setShowYearlySubModal:function(){},showYearlyDiscountSubModal:!1,setShowYearlyDiscountSubModal:function(){},showCamera:!1,setShowCamera:function(){},cameraConfig:{cameraType:"back",cameraPosition:"right",data:void 0},setCameraConfig:function(){},showEveryLoadPopup:!1,setShowEveryLoadPopup:function(){},showWeeklyPopup:!1,setShowWeeklyPopup:function(){},setCanShowModal:function(){},showMicrophoneModal:!1,setShowMicrophoneModal:function(){},microphoneData:null,setMicrophoneData:function(){},isShowFloatingOnlineModal:!1,setShowFloatingOnlineModal:function(){},showLifetimePopup:!1,setShowLifetimePopup:function(){},showPremiumGamePopup:!0,setShowPremiumGamePopup:function(){},appInstallModal:!1,setAppInstallModal:function(){},appInstallBanner:!1,setAppInstallBanner:function(){},modalOutOfContent:{isOpen:!1},setModalOutOfContent:function(){},isHostAssignmentModalOpen:!1,setIsHostAssignmentModalOpen:function(){},showEndThisGameModal:!1,setShowEndThisGameModal:function(){}}),useModal=function(){return(0,r.useContext)(o)};n.Z=o},21026:function(e,n,t){"use strict";t.d(n,{M:function(){return SpyFallGameProvider}});var r=t(32711),o=t(76321),i=t(39113),a=t(70277),l=t(2784),u=t(6896),c=t(49381),s=t(52322),d=(0,l.createContext)({});function SpyFallGameProvider(e){var n=(0,u.t)(),t=(0,i.useAppDispatch)(),f=(0,i.useAppSelector)(function(e){return e.auth}),p=(0,i.useAppSelector)(function(e){return e.spyFallGame}),h=p.game,m=p.room,v=p.isRoleAssigned,y=p.isAllPlayersReady,g=(0,l.useRef)(v),w=(0,l.useRef)(y),S=(0,l.useRef)(h);(0,l.useEffect)(function(){g.current=v},[v]),(0,l.useEffect)(function(){w.current=y},[y]),(0,l.useEffect)(function(){S.current=h},[h]);var onGameClosed=function(){return t((0,o.pR)()),S.current=null,n.push("/spy")},onHostChange=function(e){var r;return e===(null==f||null===(r=f.user)||void 0===r?void 0:r.userId)?(alert("You are the new host"),t((0,o.KX)(!0)),n.push("/spy/connect-host")):(t((0,o.KX)(!1)),n.push("/spy/lobby"))},b=(0,c.d)(),F=(b.interruptedModal,b.setInterruptedModal),handleGameData=function(e){(null==e?void 0:e.status)==="cancelled"&&((null==h?void 0:h.hostId)!==(null==f||null===(c=f.user)||void 0===c?void 0:c.userId)&&F(!0),onGameClosed()),(null==e?void 0:e.status)==="started"&&null!=e&&null!==(r=e.players)&&void 0!==r&&r.every(function(e){return e.role})&&!1===g.current&&(t((0,o.xP)(!0)),g.current=!0,n.push("/spy/countDown")),(null==e?void 0:e.status)==="started"&&null!=e&&null!==(i=e.players)&&void 0!==i&&i.every(function(e){return e.isReady})&&!1===w.current&&(t((0,o.Ii)(!0)),w.current=!0,n.push("/spy/gameplay-setup")),(null==e?void 0:e.status)==="waiting"&&(null==e?void 0:e.hostId)!==(null===(a=S.current)||void 0===a?void 0:a.hostId)&&(null===(l=S.current)||void 0===l?void 0:l.hostId)!==void 0&&(null===(u=S.current)||void 0===u?void 0:u.hostId)!==null&&onHostChange(null==e?void 0:e.hostId),t((0,o.g4)(e));var r,i,a,l,u,c,s=null==e?void 0:e.players.find(function(e){var n;return e.playerId===(null==f||null===(n=f.user)||void 0===n?void 0:n.userId)});s&&t((0,o.nl)(s))},gameLister=function(){var e=(0,a.IO)((0,a.hJ)((0,r.getDB)(),"rooms"),(0,a.ar)("roomId","==",null==m?void 0:m.roomId));
1return(0,a.cf)(e,function(e){e.docChanges().forEach(function(e){var n=e.doc.data();try{switch(e.type){case"added":case"modified":handleGameData(n);break;case"removed":onGameClosed()}}catch(e){console.error("Error handling game data:",e)}})},function(e){console.error("Error fetching game data:",e)})};return(0,l.useEffect)(function(){if(null!=m&&m.roomId){var e=gameLister();return function(){S.current=null,g.current=!1,w.current=!1,e()}}},[null==m?void 0:m.roomId]),(0,s.jsx)(d.Provider,{value:{},children:e.children})}},57904:function(e,n,t){"use strict";var r=t(2784);n.Z=function(e){var n=e.initialTime,t=e.onComplete,o=e.onStart,i=e.onStop,a=(0,r.useState)(0),l=a[0],u=a[1],c=(0,r.useRef)(null);(0,r.useEffect)(function(){return startTimer(),function(){handleTimerStop()}},[]);var startTimer=function(){u(n),c.current=setInterval(function(){u(function(e){var n=e-1;return o&&o(),0===parseInt(n)&&(t&&t(),handleTimerStop()),parseInt(n)})},1e3)},handleTimerStop=function(){clearInterval(c.current),c.current=null,i&&i(),u(0)};return{countdown:l,stop:handleTimerStop,start:startTimer,reset:function(){clearInterval(c.current),c.current=null,startTimer()},pause:function(){clearInterval(c.current),c.current=null}}}},62194:function(e,n,t){"use strict";t.d(n,{Z:function(){return GuestLayout}});var r,o=t(2784),i=t(81734),a=t(57948),l=t.n(a),u=t(69575),c=t.n(u),s=t(29650),d=t.n(s),f=t(79914),p=t.n(f),h=t(62272),m=t.n(h),v=t(48040),y=t(57678),g=t(52322),w=null!==(r=p().currentHeight)&&void 0!==r?r:0;function GuestLayout(e){var n,t,r=e.children,a=e.isPaddingTop,u=e.isSafeArea,s=m()(),f=s.width,h=s.height,S="web"===c().OS,b=f>y.E&&S,F=null!==(n=null==e?void 0:e.color)&&void 0!==n?n:i.Z.COLORS.primary;return(0,g.jsxs)(o.Fragment,{children:[(0,g.jsx)(p(),{barStyle:null!==(t=null==e?void 0:e.statusBarStyle)&&void 0!==t?t:"light-content",translucent:!0,backgroundColor:"transparent"}),(0,g.jsxs)(v.x,{style:{paddingTop:w,backgroundColor:F,width:f,height:h,minHeight:l().get("window").height},flex:1,children:[(void 0===u||u)&&!S&&(0,g.jsx)(d(),{}),b?(0,g.jsx)(v.x,{flex:1,children:(0,g.jsx)(v.x,{maxWidth:y.E,width:"100%",height:"100%",mx:"auto",pt:"web"===c().OS&&void 0!==a&&a?20:0,position:"relative",children:r})}):(0,g.jsx)(v.x,{flex:1,children:r})]})]})}},40561:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/spy/countDown",function(){return t(42967)}])},64034:function(e,n,t){"use strict";function _arrayWithHoles(e){if(Array.isArray(e))return e}t.d(n,{Z:function(){return _arrayWithHoles}})},42330:function(e,n,t){"use strict";function _nonIterableRest(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}t.d(n,{Z:function(){return _nonIterableRest}})},81333:function(e,n,t){"use strict";t.d(n,{Z:function(){return _slicedToArray}});var r=t(64034),o=t(57211),i=t(42330);function _slicedToArray(e,n){return(0,r.Z)(e)||function(e,n){var t,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(t=o.next()).done)&&(i.push(t.value),!n||i.length!==n);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw r}}return i}}(e,n)||(0,o.Z)(e,n)||(0,i.Z)()}}},function(e){e.O(0,[2316,9791,7706,8614,1155,4794,4599,2711,9113,9774,2888,179],function(){return e(e.s=40561)}),_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.