text: (this["webpackJsonpwarzone-game"]=this["webpackJsonpwarzone-game"]||[]).push([[0],{24:function(e,r,t){},25:function(e,r,t){},26:function(e,r,t){},35:function(e,r,t){},36:function(e,r,t){},37:function(e,r,t){},38:function(e,r,t){"use strict";t.r(r);var n=t(1),s=t.n(n),c=t(17),i=t.n(c),o=(t(24),t(25),t(13)),a=t(2),u=(t(26),t(0));var l=function(){var e=Object(a.e)();return Object(u.jsx)("div",{className:"center",children:Object(u.jsxs)("div",{className:"gameTitle-box",children:[Object(u.jsx)("div",{className:"gameTitle",children:"The Warzone Sound Game"}),Object(u.jsx)("div",{className:"button-box",children:Object(u.jsx)("div",{onClick:function(){e.push("/Quiz")},type:"button",className:"playButton",children:"PLAY"})})]})})},d=t(10);t(35);var x=function(){var e=localStorage.getItem("LastScore");return Object(u.jsx)("div",{className:"lastScore-box",children:Object(u.jsxs)("div",{className:"lastScore-text",children:["Last score: ",e]})})};t(36);var C=function(e){return 0===e.score?Object(u.jsx)("div",{className:"score-card",children:Object(u.jsxs)("div",{className:"card-body",children:[Object(u.jsxs)("div",{className:"card-text",children:["You scored ",e.score," out of ",e.questions.length]}),Object(u.jsx)("div",{className:"score-responses",children:'"Umm have you even played the game??"'}),Object(u.jsx)("div",{onClick:e.replayGame,type:"button",className:"replay-button",children:"Try Again?"})]})}):1===e.score||2===e.score||3===e.score||4===e.score||5===e.score?Object(u.jsx)("div",{className:"score-card",children:Object(u.jsxs)("div",{className:"card-body",children:[Object(u.jsxs)("div",{className:"card-text",children:["You scored ",e.score," out of ",e.questions.length]}),Object(u.jsx)("div",{className:"score-responses",children:'"Wow major BOT Alert!!!"'}),Object(u.jsx)("div",{onClick:e.replayGame,type:"button",className:"replay-button",children:"Try Again?"})]})}):6===e.score||7===e.score||8===e.score||9===e.score?Object(u.jsx)("div",{className:"score-card",children:Object(u.jsxs)("div",{className:"card-body",children:[Object(u.jsxs)("div",{className:"card-text",children:["You scored ",e.score," out of ",e.questions.length]}),Object(u.jsx)("div",{className:"score-responses",children:'"Chill you\'re dripping in sweat..."'}),Object(u.jsx)("div",{onClick:e.replayGame,type:"button",className:"replay-button",children:"Try Again?"})]})}):10===e.score||11===e.score||12===e.score?Object(u.jsx)("div",{className:"score-card",children:Object(u.jsxs)("div",{className:"card-body",children:[Object(u.jsxs)("div",{className:"card-text",children:["You scored ",e.score," out of ",e.questions.length]}),Object(u.jsx)("div",{className:"score-responses",children:'"This kid is CRACKED!!!"'}),Object(u.jsx)("div",{onClick:e.replayGame,type:"button",className:"replay-button",children:"Try Again?"})]})}):13===e.score?Object(u.jsx)("div",{className:"score-card",children:Object(u.jsxs)("div",{className:"card-body",children:[Object(u.jsxs)("div",{className:"card-text",children:["You scored ",e.score," out of ",e.questions.length]}),Object(u.jsx)("div",{className:"score-responses",children:'"Dude turn your Aimbot offff!!!!"'}),Object(u.jsx)("div",{onClick:e.replayGame,type:"button",className:"replay-button",children:"Try Again?"})]})}):void 0},w=t(19),b=t.n(w),j=t(9),T=t.p+"static/media/HeadShotSound.d1a6258c.mp3",m=t.p+"static/media/TeamateDowned.ee67a503.mp3",O=(t(37),[{questionText:"What gun is this?",audio:t.p+"static/media/Kilo.8b32fab3.mp3",answerOptions:[{answerText:"Kilo",isCorrect:!0},{answerText:"FAL",isCorrect:!1},{answerText:"M4",isCorrect:!1},{answerText:"FR 5.56",isCorrect:!1},{answerText:"Oden",isCorrect:!1},{answerText:"M13",isCorrect:!1},{answerText:"Scar",isCorrect:!1},{answerText:"AK-47",isCorrect:!1},{answerText:"RAM",isCorrect:!1},{answerText:"Grau",isCorrect:!1},{answerText:"AMAX",isCorrect:!1},{answerText:"An-94",isCorrect:!1},{answerText:"AS VAL",isCorrect:!1}]},{questionText:"What gun is this?",audio:t.p+"static/media/FAL.9d280105.mp3",answerOptions:[{answerText:"Kilo",isCorrect:!1},{answerText:"FAL",isCorrect:!0},{answerText:"M4",isCorrect:!1},{answerText:"FR 5.56",isCorrect:!1},{answerText:"Oden",isCorrect:!1},{answerText:"M13",isCorrect:!1},{answerText:"Scar",isCorrect:!1},{answerText:"AK-47",isCorrect:!1},{answerText:"RAM",isCorrect:!1},{answerText:"Grau",isCorrect:!1},{answerText:"AMAX",isCorrect:!1},{answerText:"An-94",isCorrect:!1},{answerText:"AS VAL",isCorrect:!1}]},{questionText:"What gun is this?",audio:t.p+"static/media/M4.d76b84ab.mp3",answerOptions:[{answerText:"Kilo",isCorrect:!1},{answerText:"FAL",isCorrect:!1},{answerText:"M4",isCorrect:!0},{answerText:"FR 5.56",isCorrect:!1},{answerText:"Oden",isCorrect:!1},{answerText:"M13",isCorrect:!1},{answerText:"Scar",isCorrect:!1},{answerText:"AK-47",isCorrect:!1},{answerText:"RAM",isCorrect:!1},{answerText:"Grau",isCorrect:!1},{answerText:"AMAX",isCorrect:!1},{answerText:"An-94",isCorrect:!1},{answerText:"AS VAL",isCorrect:!1}]},{questionText:"What gun is this?",audio:t.p+"static/media/FR-5.56.26f1c40e.mp3",answerOptions:[{answerText:"Kilo",isCorrect:!1},{answerText:"FAL",isCorrect:!1},{answerText:"M4",isCorrect:!1},{answerText:"FR 5.56",isCorrect:!0},{answerText:"Oden",isCorrect:!1},{answerText:"M13",isCorrect:!1},{answerText:"Scar",isCorrect:!1},{answerText:"AK-47",isCorrect:!1},{answerText:"RAM",isCorrect:!1},{answerText:"Grau",isCorrect:!1},{answerText:"AMAX",isCorrect:!1},{answerText:"An-94",isCorrect:!1},{answerText:"AS VAL",isCorrect:!1}]},{questionText:"What gun is this?",audio:t.p+"static/media/Oden.36b457fb.mp3",answerOptions:[{answerText:"Kilo",isCorrect:!1},{answerText:"FAL",isCorrect:!1},{answerText:"M4",isCorrect:!1},{answerText:"FR 5.56",isCorrect:!1},{answerText:"Oden",isCorrect:!0},{answerText:"M13",isCorrect:!1},{answerText:"Scar",isCorrect:!1},{answerText:"AK-47",isCorrect:!1},{answerText:"RAM",isCorrect:!1},{answerText:"Grau",isCorrect:!1},{answerText:"AMAX",isCorrect:!1},{answerText:"An-94",isCorrect:!1},{answerText:"AS VAL",isCorrect:!1}]},{questionText:"What gun is this?",audio:t.p+"static/media/M13.e0693f32.mp3",answerOptions:[{answerText:"Kilo",isCorrect:!1},{answerText:"FAL",isCorrect:!1},{answerText:"M4",isCorrect:!1},{answerText:"FR 5.56",isCorrect:!1},{answerText:"Oden",isCorrect:!1},{answerText:"M13",isCorrect:!0},{answerText:"Scar",isCorrect:!1},{answerText:"AK-47",isCorrect:!1},{answerText:"RAM",isCorrect:!1},{answerText:"Grau",isCorrect:!1},{answerText:"AMAX",isCorrect:!1},{answerText:"An-94",isCorrect:!1},{answerText:"AS VAL",isCorrect:!1}]},{questionText:"What gun is this?",audio:t.p+"static/media/Scar.81e405b5.mp3",answerOptions:[{answerText:"Kilo",isCorrect:!1},{answerText:"FAL",isCorrect:!1},{answerText:"M4",isCorrect:!1},{answerText:"FR 5.56",isCorrect:!1},{answerText:"Oden",isCorrect:!1},{answerText:"M13",isCorrect:!1},{answerText:"Scar",isCorrect:!0},{answerText:"AK-47",isCorrect:!1},{answerText:"RAM",isCorrect:!1},{answerText:"Grau",isCorrect:!1},{answerText:"AMAX",isCorrect:!1},{answerText:"An-94",isCorrect:!1},{answerText:"AS VAL",isCorrect:!1}]},{questionText:"What gun is this?",audio:t.p+"static/media/AK-47.59990b32.mp3",answerOptions:[{answerText:"Kilo",isCorrect:!1},{answerText:"FAL",isCorrect:!1},{answerText:"M4",isCorrect:!1},{answerText:"FR 5.56",isCorrect:!1},{answerText:"Oden",isCorrect:!1},{answerText:"M13",isCorrect:!1},{answerText:"Scar",isCorrect:!1},{answerText:"AK-47",isCorrect:!0},{answerText:"RAM",isCorrect:!1},{answerText:"Grau",isCorrect:!1},{answerText:"AMAX",isCorrect:!1},{answerText:"An-94",isCorrect:!1},{answerText:"AS VAL",isCorrect:!1}]},{questionText:"What gun is this?",audio:t.p+"static/media/RAM.5b8e0b4a.mp3",answerOptions:[{answerText:"Kilo",isCorrect:!1},{answerText:"FAL",isCorrect:!1},{answerText:"M4",isCorrect:!1},{answerText:"FR 5.56",isCorrect:!1},{answerText:"Oden",isCorrect:!1},{answerText:"M13",isCorrect:!1},{answerText:"Scar",isCorrect:!1},{answerText:"AK-47",isCorrect:!1},{answerText:"RAM",isCorrect:!0},{answerText:"Grau",isCorrect:!1},{answerText:"AMAX",isCorrect:!1},{answerText:"An-94",isCorrect:!1},{answerText:"AS VAL",isCorrect:!1}]},{questionText:"What gun is this?",audio:t.p+"static/media/GRAU.ec431b4c.mp3",answerOptions:[{answerText:"Kilo",isCorrect:!1},{answerText:"FAL",isCorrect:!1},{answerText:"M4",isCorrect:!1},{answerText:"FR 5.56",isCorrect:!1},{answerText:"Oden",isCorrect:!1},{answerText:"M13",isCorrect:!1},{answerText:"Scar",isCorrect:!1},{answerText:"AK-47",isCorrect:!1},{answerText:"RAM",isCorrect:!1},{answerText:"Grau",isCorrect:!0},{answerText:"AMAX",isCorrect:!1},{answerText:"An-94",isCorrect:!1},{answerText:"AS VAL",isCorrect:!1}]},{questionText:"What gun is this?",audio:t.p+"static/media/AMAX.454c3e05.mp3",answerOptions:[{answerText:"Kilo",isCorrect:!1},{answerText:"FAL",isCorrect:!1},{answerText:"M4",isCorrect:!1},{answerText:"FR 5.56",isCorrect:!1},{answerText:"Oden",isCorrect:!1},{answerText:"M13",isCorrect:!1},{answerText:"Scar",isCorrect:!1},{answerText:"AK-47",isCorrect:!1},{answerText:"RAM",isCorrect:!1},{answerText:"Grau",isCorrect:!1},{answerText:"AMAX",isCorrect:!0},{answerText:"An-94",isCorrect:!1},{answerText:"AS VAL",isCorrect:!1}]},{questionText:"What gun is this?",audio:t.p+"static/media/AN-94.257e6b5a.mp3",answerOptions:[{answerText:"Kilo",isCorrect:!1},{answerText:"FAL",isCorrect:!1},{answerText:"M4",isCorrect:!1},{answerText:"FR 5.56",isCorrect:!1},{answerText:"Oden",isCorrect:!1},{answerText:"M13",isCorrect:!1},{answerText:"Scar",isCorrect:!1},{answerText:"AK-47",isCorrect:!1},{answerText:"RAM",isCorrect:!1},{answerText:"Grau",isCorrect:!1},{answerText:"AMAX",isCorrect:!1},{answerText:"AN-94",isCorrect:!0},{answerText:"AS VAL",isCorrect:!1}]},{questionText:"What gun is this?",audio:t.p+"static/media/AS-VAL.7cff9ec7.mp3",answerOptions:[{answerText:"Kilo",isCorrect:!1},{answerText:"FAL",isCorrect:!1},{answerText:"M4",isCorrect:!1},{answerText:"FR 5.56",isCorrect:!1},{answerText:"Oden",isCorrect:!1},{answerText:"M13",isCorrect:!1},{answerText:"Scar",isCorrect:!1},{answerText:"AK-47",isCorrect:!1},{answerText:"RAM",isCorrect:!1},{answerText:"Grau",isCorrect:!1},{answerText:"AMAX",isCorrect:!1},{answerText:"An-94",isCorrect:!1},{answerText:"AS VAL",isCorrect:!0}]}]);!function(e){for(var r,t=e.length;0!==t;){r=Math.floor(Math.random()*t),t--;var n=[e[r],e[t]];e[t]=n[0],e[r]=n[1]}}(O),console.log(O);var f=O,p=t.p+"static/media/KILO.971a9354.png";var A=function(e){var r="\n  background-color: none;\n",t=Object(n.useRef)();return Object(u.jsx)("div",{className:"answer-section col",children:e.questions[e.currentQuestion].answerOptions.slice(0,1).map((function(n){return Object(u.jsxs)("button",{ref:t,className:"answer-btn",onClick:function(){e.handleAnswerOptionClick(n.isCorrect),function(n){if(n){if(11===e.currentQuestion||12===e.currentQuestion)return;t.current.style="\n  background-color: green;\n",setTimeout((function(){t.current.style=r}),300)}else{if(11===e.currentQuestion||12===e.currentQuestion)return;t.current.style="\n  background-color: red;\n",setTimeout((function(){t.current.style=r}),300)}}(n.isCorrect),e.buttonClickSound(n.isCorrect)},children:[n.answerText,Object(u.jsx)("img",{className:"gun-pic",src:p,alt:"Kilo"})]})}))})},h=t.p+"static/media/FAL.0d7ade2a.png";var g=function(e){var r="\n  background-color: none;\n",t=Object(n.useRef)();return Object(u.jsx)("div",{className:"answer-section col",children:e.questions[e.currentQuestion].answerOptions.slice(1,2).map((function(n){return Object(u.jsxs)("button",{ref:t,className:"answer-btn",onClick:function(){e.handleAnswerOptionClick(n.isCorrect),function(n){if(n){if(11===e.currentQuestion||12===e.currentQuestion)return;t.current.style="\n  background-color: green;\n",setTimeout((function(){t.current.style=r}),300)}else{if(11===e.currentQuestion||12===e.currentQuestion)return;t.current.style="\n  background-color: red;\n",setTimeout((function(){t.current.style=r}),300)}}(n.isCorrect),e.buttonClickSound(n.isCorrect)},children:[n.answerText,Object(u.jsx)("img",{className:"gun-pic",src:h,alt:"FAL"})]})}))})},k=t.p+"static/media/M4.b04c1383.png";var v=function(e){var r="\n  background-color: none;\n",t=Object(n.useRef)();return Object(u.jsx)("div",{className:"answer-section col",children:e.questions[e.currentQuestion].answerOptions.slice(2,3).map((function(n){return Object(u.jsxs)("button",{ref:t,className:"answer-btn",onClick:function(){e.handleAnswerOptionClick(n.isCorrect),function(n){if(n){if(11===e.currentQuestion||12===e.currentQuestion)return;t.current.style="\n  background-color: green;\n",setTimeout((function(){t.current.style=r}),300)}else{if(11===e.currentQuestion||12===e.currentQuestion)return;t.current.style="\n  background-color: red;\n",setTimeout((function(){t.current.style=r}),300)}}(n.isCorrect),e.buttonClickSound(n.isCorrect)},children:[n.answerText,Object(u.jsx)("img",{className:"gun-pic",src:k,alt:"M4"})]})}))})},y=t.p+"static/media/FR 5.56.b2f0ac86.png";var N=function(e){var r="\n  background-color: none;\n",t=Object(n.useRef)();return Object(u.jsx)("div",{className:"answer-section col",children:e.questions[e.currentQuestion].answerOptions.slice(3,4).map((function(n){return Object(u.jsxs)("button",{ref:t,className:"answer-btn",onClick:function(){e.handleAnswerOptionClick(n.isCorrect),function(n){if(n){if(11===e.currentQuestion||12===e.currentQuestion)return;t.current.style="\n  background-color: green;\n",setTimeout((function(){t.current.style=r}),300)}else{if(11===e.currentQuestion||12===e.currentQuestion)return;t.current.style="\n  background-color: red;\n",setTimeout((function(){t.current.style=r}),300)}}(n.isCorrect),e.buttonClickSound(n.isCorrect)},children:[n.answerText,Object(u.jsx)("img",{className:"gun-pic",src:y,alt:"Fr556"})]})}))})},Q=t.p+"static/media/ODEN.d5e407bc.png";var S=function(e){var r="\n  background-color: none;\n",t=Object(n.useRef)();return Object(u.jsx)("div",{className:"answer-section col",children:e.questions[e.currentQuestion].answerOptions.slice(4,5).map((function(n){return Object(u.jsxs)("button",{ref:t,className:"answer-btn",onClick:function(){e.handleAnswerOptionClick(n.isCorrect),function(n){if(n){if(11===e.currentQuestion||12===e.currentQuestion)return;t.current.style="\n  background-color: green;\n",setTimeout((function(){t.current.style=r}),300)}else{if(11===e.currentQuestion||12===e.currentQuestion)return;t.current.style="\n  background-color: red;\n",setTimeout((function(){t.current.style=r}),300)}}(n.isCorrect),e.buttonClickSound(n.isCorrect)},children:[n.answerText,Object(u.jsx)("img",{className:"gun-pic",src:Q,alt:"Oden"})]})}))})},M=t.p+"static/media/M13.08760cb2.png";var R=function(e){var r="\n  background-color: none;\n",t=Object(n.useRef)();return Object(u.jsx)("div",{className:"answer-section col",children:e.questions[e.currentQuestion].answerOptions.slice(5,6).map((function(n){return Object(u.jsxs)("button",{ref:t,className:"answer-btn",onClick:function(){e.handleAnswerOptionClick(n.isCorrect),function(n){if(n){if(11===e.currentQuestion||12===e.currentQuestion)return;t.current.style="\n  background-color: green;\n",setTimeout((function(){t.current.style=r}),300)}else{if(11===e.currentQuestion||12===e.currentQuestion)return;t.current.style="\n  background-color: red;\n",setTimeout((function(){t.current.style=r}),300)}}(n.isCorrect),e.buttonClickSound(n.isCorrect)},children:[n.answerText,Object(u.jsx)("img",{className:"gun-pic",src:M,alt:"M13"})]})}))})},q=t.p+"static/media/SCAR.520cceef.png";var L=function(e){var r="\n  background-color: none;\n",t=Object(n.useRef)();return Object(u.jsx)("div",{className:"answer-section col",children:e.questions[e.currentQuestion].answerOptions.slice(6,7).map((function(n){return Object(u.jsxs)("button",{ref:t,className:"answer-btn",onClick:function(){e.handleAnswerOptionClick(n.isCorrect),function(n){if(n){if(11===e.currentQuestion||12===e.currentQuestion)return;t.current.style="\n  background-color: green;\n",setTimeout((function(){t.current.style=r}),300)}else{if(11===e.currentQuestion||12===e.currentQuestion)return;t.current.style="\n  background-color: red;\n",setTimeout((function(){t.current.style=r}),300)}}(n.isCorrect),e.buttonClickSound(n.isCorrect)},children:[n.answerText,Object(u.jsx)("img",{className:"gun-pic",src:q,alt:"Scar"})]})}))})},K=t.p+"static/media/AK47.7bc98602.png";var F=function(e){var r="\n  background-color: none;\n",t=Object(n.useRef)();return Object(u.jsx)("div",{className:"answer-section col",children:e.questions[e.currentQuestion].answerOptions.slice(7,8).map((function(n){return Object(u.jsxs)("button",{ref:t,className:"answer-btn",onClick:function(){e.handleAnswerOptionClick(n.isCorrect),function(n){if(n){if(11===e.currentQuestion||12===e.currentQuestion)return;t.current.style="\n  background-color: green;\n",setTimeout((function(){t.current.style=r}),300)}else{if(11===e.currentQuestion||12===e.currentQuestion)return;t.current.style="\n  background-color: red;\n",setTimeout((function(){t.current.style=r}),300)}}(n.isCorrect),e.buttonClickSound(n.isCorrect)},children:[n.answerText,Object(u.jsx)("img",{className:"gun-pic",src:K,alt:"AK-47"})]})}))})},G=t.p+"static/media/RAM.b17defe4.png";var W=function(e){var r="\n  background-color: none;\n",t=Object(n.useRef)();return Object(u.jsx)("div",{className:"answer-section col",children:e.questions[e.currentQuestion].answerOptions.slice(8,9).map((function(n){return Object(u.jsxs)("button",{ref:t,className:"answer-btn",onClick:function(){e.handleAnswerOptionClick(n.isCorrect),function(n){if(n){if(11===e.currentQuestion||12===e.currentQuestion)return;t.current.style="\n  background-color: green;\n",setTimeout((function(){t.current.style=r}),300)}else{if(11===e.currentQuestion||12===e.currentQuestion)return;t.current.style="\n  background-color: red;\n",setTimeout((function(){t.current.style=r}),300)}}(n.isCorrect),e.buttonClickSound(n.isCorrect)},children:[n.answerText,Object(u.jsx)("img",{className:"gun-pic",src:G,alt:"Ram"})]})}))})},V=t.p+"static/media/GRAU.598e2f49.png";var X=function(e){var r="\n  background-color: none;\n",t=Object(n.useRef)();return Object(u.jsx)("div",{className:"answer-section col",children:e.questions[e.currentQuestion].answerOptions.slice(9,10).map((function(n){return Object(u.jsxs)("button",{ref:t,className:"answer-btn",onClick:function(){e.handleAnswerOptionClick(n.isCorrect),function(n){if(n){if(11===e.currentQuestion||12===e.currentQuestion)return;t.current.style="\n  background-color: green;\n",setTimeout((function(){t.current.style=r}),300)}else{if(11===e.currentQuestion||12===e.currentQuestion)return;t.current.style="\n  background-color: red;\n",setTimeout((function(){t.current.style=r}),300)}}(n.isCorrect),e.buttonClickSound(n.isCorrect)},children:[n.answerText,Object(u.jsx)("img",{className:"gun-pic",src:V,alt:"Grau"})]})}))})},z=t.p+"static/media/AMAX.99161e8c.png";var Y=function(e){var r="\n  background-color: none;\n",t=Object(n.useRef)();return Object(u.jsx)("div",{className:"answer-section col",children:e.questions[e.currentQuestion].answerOptions.slice(10,11).map((function(n){return Object(u.jsxs)("button",{ref:t,className:"answer-btn",onClick:function(){e.handleAnswerOptionClick(n.isCorrect),function(n){if(n){if(11===e.currentQuestion||12===e.currentQuestion)return;t.current.style="\n  background-color: green;\n",setTimeout((function(){t.current.style=r}),300)}else{if(11===e.currentQuestion||12===e.currentQuestion)return;t.current.style="\n  background-color: red;\n",setTimeout((function(){t.current.style=r}),300)}}(n.isCorrect),e.buttonClickSound(n.isCorrect)},children:[n.answerText,Object(u.jsx)("img",{className:"gun-pic",src:z,alt:"Amax"})]})}))})},H=t.p+"static/media/AN-94.92e17caa.png";var I=function(e){var r="\n  background-color: none;\n",t=Object(n.useRef)();return Object(u.jsx)("div",{className:"answer-section col",children:e.questions[e.currentQuestion].answerOptions.slice(11,12).map((function(n){return Object(u.jsxs)("button",{ref:t,className:"answer-btn",onClick:function(){e.handleAnswerOptionClick(n.isCorrect),function(n){if(n){if(11===e.currentQuestion||12===e.currentQuestion)return;t.current.style="\n  background-color: green;\n",setTimeout((function(){t.current.style=r}),300)}else{if(11===e.currentQuestion||12===e.currentQuestion)return;t.current.style="\n  background-color: red;\n",setTimeout((function(){t.current.style=r}),300)}}(n.isCorrect),e.buttonClickSound(n.isCorrect)},children:[n.answerText,Object(u.jsx)("img",{className:"gun-pic",src:H,alt:"AN-94"})]})}))})},B=t.p+"static/media/ASVAL.ab5063ac.png";var D=function(e){var r="\n  background-color: none;\n",t=Object(n.useRef)();return Object(u.jsx)("div",{className:"answer-section col",children:e.questions[e.currentQuestion].answerOptions.slice(12,13).map((function(n){return Object(u.jsxs)("button",{ref:t,className:"answer-btn",onClick:function(){e.handleAnswerOptionClick(n.isCorrect),function(n){if(n){if(11===e.currentQuestion||12===e.currentQuestion)return;t.current.style="\n  background-color: green;\n",setTimeout((function(){t.current.style=r}),300)}else{if(11===e.currentQuestion||12===e.currentQuestion)return;t.current.style="\n  background-color: red;\n",setTimeout((function(){t.current.style=r}),300)}}(n.isCorrect),e.buttonClickSound(n.isCorrect)},children:[n.answerText,Object(u.jsx)("img",{className:"gun-pic",src:B,alt:"AS-Val"})]})}))})};var E=function(){var e=Object(n.useState)(0),r=Object(d.a)(e,2),t=r[0],s=r[1],c=Object(n.useState)(!1),i=Object(d.a)(c,2),o=i[0],a=i[1],l=Object(n.useState)(0),w=Object(d.a)(l,2),O=w[0],p=w[1],h=Object(n.useState)(0),k=Object(d.a)(h,2),y=k[0],Q=k[1],M=function(e){e&&p(O+1);var r=t+1;r<f.length?s(r):a(!0)},q=function(e){e?(new j.Howl({src:[T]}).play(),j.Howler.volume(.8)):(new j.Howl({src:[m]}).play(),j.Howler.volume(.8))};return Object(u.jsx)("div",{className:"quiz",children:Object(u.jsx)("div",{className:"container-fluid",children:o?Object(u.jsx)("div",{className:"score-section container-fluid vertical-center",children:Object(u.jsx)(C,{score:O,questions:f,replayGame:function(){window.location.reload(),s(0),p(0),a(!1),Q(0),localStorage.setItem("LastScore",O)}})}):Object(u.jsxs)("div",{children:[Object(u.jsx)(x,{}),Object(u.jsxs)("div",{className:"game-container",children:[Object(u.jsx)("div",{children:Object(u.jsx)("div",{children:Object(u.jsx)("div",{className:"game-question",children:"Can you guess that Modern Warfare AR by sound?"})})}),Object(u.jsxs)("div",{className:"row",children:[Object(u.jsx)("div",{className:"question-text col",children:f[t].questionText}),Object(u.jsxs)("div",{className:"gun-number col",children:["AR number ",t+1,"/13"]}),Object(u.jsx)("div",{className:"mp3-player col",children:function(){var e=f[t].audio,r=y+1;return r<f.length&&Q(r),Object(u.jsx)("div",{children:Object(u.jsx)(b.a,{src:e,controls:!0})})}()})]}),Object(u.jsxs)("div",{className:"answer-container",children:[Object(u.jsxs)("div",{className:"row",children:[Object(u.jsx)(A,{questions:f,currentQuestion:t,handleAnswerOptionClick:M,buttonClickSound:q}),Object(u.jsx)(g,{questions:f,currentQuestion:t,handleAnswerOptionClick:M,buttonClickSound:q}),Object(u.jsx)(v,{questions:f,currentQuestion:t,handleAnswerOptionClick:M,buttonClickSound:q}),Object(u.jsx)(N,{questions:f,currentQuestion:t,handleAnswerOptionClick:M,buttonClickSound:q})]}),Object(u.jsxs)("div",{className:"row",children:[Object(u.jsx)(S,{questions:f,currentQuestion:t,handleAnswerOptionClick:M,buttonClickSound:q}),Object(u.jsx)(R,{questions:f,currentQuestion:t,handleAnswerOptionClick:M,buttonClickSound:q}),Object(u.jsx)(L,{questions:f,currentQuestion:t,handleAnswerOptionClick:M,buttonClickSound:q}),Object(u.jsx)(F,{questions:f,currentQuestion:t,handleAnswerOptionClick:M,buttonClickSound:q})]}),Object(u.jsxs)("div",{className:"row",children:[Object(u.jsx)(W,{questions:f,currentQuestion:t,handleAnswerOptionClick:M,buttonClickSound:q}),Object(u.jsx)(X,{questions:f,currentQuestion:t,handleAnswerOptionClick:M,buttonClickSound:q}),Object(u.jsx)(Y,{questions:f,currentQuestion:t,handleAnswerOptionClick:M,buttonClickSound:q}),Object(u.jsx)(I,{questions:f,currentQuestion:t,handleAnswerOptionClick:M,buttonClickSound:q})]}),Object(u.jsx)("div",{className:"row",children:Object(u.jsx)(D,{questions:f,currentQuestion:t,handleAnswerOptionClick:M,buttonClickSound:q})})]})]})]})})})},U=t.p+"static/media/WarzoneBG.2f3b508c.jpg";var J=function(){return Object(u.jsx)("div",{className:"background",style:{backgroundImage:"url(".concat(U,")")},children:Object(u.jsxs)(o.a,{children:[Object(u.jsx)(a.a,{exact:!0,path:"/",component:l}),Object(u.jsx)(a.a,{exact:!0,path:"/Quiz",component:E})]})})};i.a.render(Object(u.jsx)(s.a.StrictMode,{children:Object(u.jsx)(J,{})}),document.getElementById("root"))}},[[38,1,2]]]);
  //# sourceMappingURL=main.313655e7.chunk.js.map