1_N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[62],{"2akp":function(e,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/quiz",function(){return i("fRj0")}])},fRj0:function(e,n,i){"use strict";i.r(n);var t=i("q1tI"),r=i.n(t),a=i("obyI"),s=i("+m56"),o=i.n(s),c=i("t30L"),u=i("7vrA"),d=i("cWnB"),l=i("nOHt"),w=r.a.createElement,m=(new o.a({endpoint:Object(a.a)().apiUrl}),[{id:1,question:"What is the name of the drink that is made from fermented rice?",answers:[{id:1,answer:"Vodka"},{id:2,answer:"Rum"},{id:3,answer:"Sake"},{id:4,answer:"Whiskey"}],correctAnswer:3,description:"Sake is a Japanese rice wine made from fermented rice."},{id:2,question:"Question 2: What is the name of the drink that is made from fermented rice?",answers:[{id:1,answer:"Vodka 2"},{id:2,answer:"Rum 2"},{id:3,answer:"Sake"},{id:4,answer:"Whiskey"}],correctAnswer:2,description:"Sake is a Japanese rice wine made from fermented rice."},{id:3,question:" Question 3: What is the name of the drink that is made from fermented rice?",answers:[{id:1,answer:"Vodka 3"},{id:2,answer:"Rum 3"},{id:3,answer:"Sake"},{id:4,answer:"Whiskey"}],correctAnswer:1,description:"Sake is a Japanese rice wine made from fermented rice."}]);n.default=function(){var e=Object(l.useRouter)(),n=Object(t.useState)(!1),i=n[0],r=n[1],a=Object(t.useState)(!1),s=a[0],o=a[1],f=Object(t.useState)(1),h=f[0],k=f[1],p=Object(t.useState)(!1),b=p[0],q=p[1],N=Object(t.useState)(0),S=N[0],_=N[1],g=Object(t.useState)(!1),j=g[0],y=g[1],z=h-1,O={marginRight:"1rem",focus:{backgroundColor:"green"}};return w(c.a,null,w(u.a,null,w("br",null),w("br",null),w("br",null),!i&&w("section",{className:"quiz-section"},w("h3",null,"The DRINKiQ quiz will help you find out how much you really know about drinking"),w(d.a,{onClick:function(){return r(!0)}},"Start the Quiz")),i&&s&&w("section",{className:"quiz-section"},w("h2",null,"End of quiz"),w("p",null,"end text "),w(d.a,{onClick:function(){return e.reload()}},"Restart")),i&&!s&&m[z]&&(j?w("section",{className:"quiz-section answer"},w("h3",null,b?"Correct":"Incorrect"),w("p",null,m[z].description),w(d.a,{onClick:function(){return k(h+1),_(0),y(!1),void(m.length===h&&o(!0))}},m.length===h?"Finish":"Next")):w("section",{className:"quiz-section",id:"quiz-section-"+m[z].id},w("span",null,m[z].id+"/"+m.length),w("h3",null,m[z].question),w("div",{className:"answers"},m[z].answers.map((function(e){return w(d.a,{variant:"outline-primary",key:e.id,className:S===e.id?"correct":"incorrect",id:"answer-"+e.id,style:O,onClick:function(){return function(e,n){
1n.id===e?(console.log("correct"),q(!0)):console.log("incorrect"),_(e),setTimeout((function(){y(!0)}),2e3)}(m[z].correctAnswer,e)}},e.answer)})))))))}}},[["2akp",0,2,1,3,4]]]);
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.