text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-52e46bce"],{"12a2":function(t,i,e){"use strict";var s=e("453f"),n=e.n(s);n.a},2762:function(t,i,e){"use strict";e.r(i);var s=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"container"},[t.activeQuestion?e("b-card",{attrs:{title:"Title","img-src":t.activeQuestion.source,"img-alt":"Image","img-top":""}},[e("b-card-text",{staticClass:"d-flex flex-column flex-md-row align-items-center evently"},[e("button",{staticClass:"btn btn-md btn-primary",attrs:{type:"button"},on:{click:function(i){return t.next(t.activeQuestion.id,"carnivorous")}}},[t._v(" Это плотоядная! ")]),e("button",{staticClass:"btn btn-md btn-info",attrs:{type:"button"},on:{click:function(i){return t.next(t.activeQuestion.id,"herbivorous")}}},[t._v(" Нет, это травоядная! ")])])],1):t._e()],1)},n=[],o={name:"test",data:function(){return{tryMode:!0,activeQuestion:null,activeQuestionNo:-1,questions:[]}},methods:{startQuiz:function(){this.questions=[{id:1,source:"https://cs11.pikabu.ru/post_img/2019/02/27/8/1551270225127649968.jpg"},{id:2,source:"https://cs13.pikabu.ru/post_img/2019/02/27/8/1551270304145087855.jpg"},{id:3,source:"https://cs10.pikabu.ru/post_img/2019/02/27/8/1551270372174123922.jpg"}],this.nextQuestion()},saveAnswer:function(){},nextQuestion:function(){this.activeQuestionNo++,this.questions.length>this.activeQuestionNo?this.activeQuestion=this.questions[+this.activeQuestionNo]:this.$bvModal.show("modal-finish")},next:function(t,i){console.log(t,i),this.saveAnswer({id:t,answer:i}),this.nextQuestion()}},beforeMount:function(){this.tryMode=this.$route.meta.tryMode,console.log("tryMode",this.tryMode),this.startQuiz()}},u=o,c=(e("12a2"),e("2877")),a=Object(c["a"])(u,s,n,!1,null,"f8992748",null);i["default"]=a.exports},"453f":function(t,i,e){}}]);
  //# sourceMappingURL=chunk-52e46bce.1e4a705e.js.map