angular.module('adaptivePractice').run(['$templateCache', function($templateCache) {
  'use strict';

  $templateCache.put('static/tpl/about.html',
    "<div class=\"how-it-works\"><h2>O projektu</h2><div class=\"col-md-offset-1 col-md-10 col-lg-offset-3 col-lg-6\"><div class=\"works-div\"><h3>Kdo za tím stojí</h3><p>Slepé mapy jsou vyvíjeny na <a href=\"http://www.fi.muni.cz/\">Fakultě informatiky Masarykovy univerzity</a>, konkrétně v rámci skupiny <a href=\"http://www.fi.muni.cz/~xpelanek/proso/\">PROSO</a>. Mezi předchozí projekty této skupiny patří například <a href=\"http://tutor.fi.muni.cz/\">Problem Solving Tutor</a>.</p><p>Na vývoji Slepých map se podílí především Vít Stanislav a Jan Papoušek.</p><p>Pokud studujete na FI a máte zájem se zapojit do vývoje podobného typu systémů, případně pokud máte zájem o výzkumnou spolupráci, kontaktujte <a href=\"http://www.muni.cz/people/4297\">Radka Pelánka</a>.</p><p>Náměty k rozvoji systému zasílejte na <span class=\"email contact\">slepemapy{zavinac}googlegroups.com</span>.</p></div><div class=\"works-div\"><h3>Soukromí</h3>Data o odpovědích jsou ukládána a jsou využívána pro výběr vhodných otázek a pro výzkumné účely. Všechna tato data jsou zpracovávána anonymně. Přihlašovací údaje (Facebook, Google) jsou použity pouze pro určení identity při opakovaných návštěvách, jinak se s nimi nepracuje.</div><div class=\"works-div\"><h3>Zdroje</h3><ul><li><a href=\"http://www.naturalearthdata.com/\">Natural Earth Data</a> - zdroj většiny mapových podkladů (svět, kontinenty, většina států)</li><li><a href=\"http://www.gadm.org/\">Global Administrative Areas</a> - administrativní členění Itálie, Francie a Španělska</li><li><a href=\"http://download.geofabrik.de/\">OpenStreetMap Data Extracts</a> - města České republiky a Slovenska</li></ul><ul><li><a href=\"http://flag-sprites.com/\">Flag sprites</a> - vlaječky států světa a USA</li><li><a href=\"http://en.wikipedia.org/wiki/Template:Flag\">Wikipedia Flags</a> - vlaječky ostatních administrativnách celků</li></ul></div></div><div class=\"clearfix\"></div></div>"
  );


  $templateCache.put('static/tpl/options_tpl.html',
    "<md-radio-group class=\"options\" ng-model=\"question.correct\"><md-radio-button ng-repeat=\"option in question.options\" ng-value=\"option.order\" aria-label=\"{{(option | stripImg) || ''}}\" ng-disabled=\"option.disabled || disabled\" ng-click=\"checkAnswer(option)\" ng-class=\"{\n" +
    "      'correct': !noAnswers && (question.answered || question.points) && option.correct,\n" +
    "      'wrong': !noAnswers && question.answered == option && !option.correct,\n" +
    "      'inline-block': option.images.length\n" +
    "    }\">{{(option | stripImg) || ''}} <img ng-src=\"{{option | imgSrc}}\"></md-radio-button></md-radio-group>"
  );


  $templateCache.put('static/tpl/practice_tpl.html',
    "<div class=\"progress quesions-progress\"><div class=\"progress-bar progress-bar-learned\" style=\"width: {{summary.correctlyAnsweredRatio * 100  }}%\"></div><div class=\"progress-bar progress-bar-danger\" style=\"width: {{showSummary && (1 - summary.correctlyAnsweredRatio) * 100 }}%\"></div><div class=\"progress-bar progress-bar-practice\" style=\"width: {{progress}}%\"></div></div><span ng-hide=\"true\" dynamic-title=\"Procvičování\"></span><div id=\"container\" class=\"practice-container col-lg-12\"><div ng-hide=\"question || showSummary || error\" class=\"loading-indicator\"></div><div ng-show=\"error\" ng-bind=\"error\" class=\"alert alert-danger\"></div><div ng-repeat=\"question in questions\" class=\"practice\"><div class=\"well\" ng-if=\"question|imgSrc\"><img ng-src=\"{{question|imgSrc}}\"></div><div class=\"question\"><div ng-bind=\"question | stripImg\"></div></div><div options=\"question\"></div><div class=\"pull-right\"><button class=\"btn btn-lg next\" ng-class=\"(canNext && 'btn-primary') || 'btn-default'\" ng-click=\"next()\" ng-disabled=\"!canNext\"><i class=\"glyphicon glyphicon-arrow-right\"></i> Další</button></div><div class=\"clearfix\"></div><div debug=\"question\"></div></div><div ng-show=\"showSummary\" class=\"summary\"><div><div class=\"progress-label\">Úspěšnost: {{summary.correctlyAnsweredRatio | percent }}</div><h2 ng-show=\"errorMessage != undefined\" ng-bind=\"errorMessage\"></h2><div questions-list=\"summary.questions\"></div></div><br><span class=\"pull-right\"><a class=\"btn btn-lg btn-default\" href=\"#/refreshpractice/{{categoryId}}\"><i class=\"glyphicon glyphicon-repeat\"></i> Znovu procvičovat</a> <a class=\"btn-continue btn btn-lg btn-primary\" href=\"#/view/{{categoryId}}\">Přehled znalostí</a></span><div class=\"clearfix\"></div><div debug=\"summary\"></div></div><div class=\"clearfix\"></div></div>"
  );


  $templateCache.put('static/tpl/questions_list_tpl.html',
    "<div class=\"questions-list\"><div ng-repeat=\"question in questionsList\"><div class=\"questions-item\" ng-click=\"selectQuestion(question)\"><span class=\"badge badge-default\" title=\"Odhad znalosti {{question.predictionAfter && 'před' || ''}}\"><i class=\"color-indicator\" style=\"background-color: {{question.prediction|probColor}}\"></i> {{question.points || (question.prediction | percent)}}</span> <i class=\"glyphicon glyphicon-circle-arrow-right prediction-shift\" ng-if=\"question.predictionAfter\" style=\"color: {{(question.answered.correct + 0) | probColor}}\"></i> <span class=\"badge badge-default\" title=\"Odhad znalosti po\" ng-if=\"question.predictionAfter\"><i class=\"color-indicator\" style=\"background-color: {{question.predictionAfter|probColor}}\"></i> {{(question.predictionAfter | percent)}}</span> <span ng-repeat=\"cat in question.categories\" ng-if=\"!categoryId\" class=\"badge badge-default pull-right category\" title=\"Kategorie\">{{cat.name}}</span> <span class=\"inline-question\" ng-bind=\"question.html|stripHtml\"></span></div><div class=\"question-details\" ng-if=\"question == selected\" ng-class=\"{'ng-leave' : question != selected}\"><img style=\"display: block\" ng-src=\"{{question | imgSrc}}\"><div options=\"question\" ng-disabled=\"true\"></div><div debug=\"question\"></div></div><md-divider class=\"md-default-theme\"></md-divider></div><br><div ng-click=\"onBottomReached()\" ng-show=\"hasMoreQuestions && !loading\" class=\"btn btn-default btn-block\">Další otázky</div><div class=\"clearfix\"></div></div>"
  );


  $templateCache.put('static/tpl/test_tpl.html',
    "<div id=\"container\" class=\"practice-container\"><div ng-if=\"!started\"><div class=\"ng-view-header hidden-xs\"><h2 dynamic-title=\"Test\">Test</h2></div><br><div ng-include=\"'test_description.html'\" class=\"col-lg-12\"></div><br><div class=\"text-center\"><a href=\"\" class=\"btn btn-primary btn-lg\" ng-click=\"start()\">Spustit test</a></div></div><div ng-if=\"started\" class=\"col-lg-12\"><div ng-if=\"questions\" ng-hide=\"showSummary || error\"><timer countdown=\"30 * 60\" max-time-unit=\"'minute'\" interval=\"1000\" finish-callback=\"evaluate(true);\" title=\"Zývá do konce\" class=\"pull-right\"><i class=\"glyphicon glyphicon-time\"></i> {{minutes}}:{{sseconds}}</timer><ul class=\"progress-indicator\"><li class=\"prev\" ng-click=\"prev()\">&lt;</li><li ng-repeat=\"question in questions\" class=\"question-switcher\" ng-class=\"{ \n" +
    "            'active': ($index == activeQuestionIndex),\n" +
    "            'answered': question.answered !== undefined, \n" +
    "            'correct': question.isCorrect,\n" +
    "            'wrong': question.isWrong\n" +
    "          }\" ng-click=\"activateQuestion($index)\">{{$index}}</li><li class=\"next\" ng-click=\"next()\">&gt;</li></ul></div><div ng-hide=\"questions || showSummary || error\" class=\"loading-indicator\"></div><div ng-show=\"error\" ng-bind=\"error\" class=\"alert alert-danger\"></div><div ng-repeat=\"question in questions\" ng-if=\"$index == activeQuestionIndex\" class=\"practice\"><div class=\"well\" ng-if=\"question|imgSrc\"><img ng-src=\"{{question|imgSrc}}\"></div><div class=\"question\"><div ng-bind=\"question | stripImg\"></div></div><div options=\"question\" no-answers=\"true\"></div><div class=\"pull-right\"><button class=\"btn btn-lg btn-default next {{!canNext || 'btn-primary'}}\" ng-click=\"next()\" ng-disabled=\"questions.length == $index + 1\"><i class=\"glyphicon glyphicon-arrow-right\"></i> Další</button></div><button class=\"btn btn-lg btn-default prev\" ng-click=\"prev()\" ng-disabled=\"$index == 0\"><i class=\"glyphicon glyphicon-arrow-left\"></i> Předchozí</button> <button class=\"btn btn-lg btn-default\" ng-show=\"!showSummary\" ng-click=\"evaluate()\"><i class=\"glyphicon glyphicon-saved\"></i> Vyhodnotit</button><div debug=\"question\"></div></div><div ng-show=\"showSummary\" class=\"summary\"><div class=\"ng-view-header hidden-xs\"><h2 dynamic-title=\"Výsledky testu\"></h2></div><div><h2 ng-show=\"errorMessage != undefined\" ng-bind=\"errorMessage\"></h2><div questions-list=\"summary.questions\"></div><div class=\"progress\" ng-show=\"summary != undefined\"><div class=\"progress-bar progress-bar-success\" style=\"width: {{result.pointsRatio * 100 }}%\"></div><div class=\"progress-bar progress-bar-danger\" style=\"width: {{result.pointsToPassPortion * 100 }}%\"></div></div><div ng-show=\"loading\" class=\"loading-indicator\"></div><div ng-hide=\"loading\"><div class=\"progress-label\"><strong>Celkem získáno</strong> <span class=\"badge badge-default\"><i class=\"color-indicator\" style=\"background-color: {{1|probColor}}\"></i> {{result.score_achieved}} b</span> <span class=\"col-offset-2\" ng-hide=\"result.pointsMissingToPass == 0\">a do úspěšného složení testu chybí <span class=\"badge badge-default\"><i class=\"color-indicator\" style=\"background-color: {{0|probColor}}\"></i> {{result.pointsMissingToPass}} b</span></span></div><br><div class=\"alert alert-success\" ng-show=\"result.pointsMissingToPass == 0\"><h3>Gratulujeme k úspěšnému složení testu!</h3><div></div></div><br><span class=\"pull-right\" ng-if=\"showSummary\"><a class=\"btn-continue btn btn-lg btn-default\" href=\"#/view/\">Přehled znalostí</a> <a class=\"btn-continue btn btn-lg btn-default\" href=\"#/refreshtest/\">Další test</a> <a class=\"btn-continue btn btn-lg btn-primary\" href=\"#/practice/\">Procvičovat</a></span></div><div class=\"clearfix\"></div></div></div></div></div>"
  );


  $templateCache.put('static/tpl/view_tpl.html',
    "<div id=\"container\" infinite-scroll=\"onBottomReached()\" threshold=\"100\" can-load=\"hasMoreQuestions\"><div class=\"view-questions\"><div class=\"ng-view-header\"><a href=\"#/practice/{{categoryId}}\" class=\"btn btn-primary pull-right\"><i class=\"glyphicon glyphicon-check\"></i> Procvičovat</a><h2 ng-if=\"category\" class=\"hidden-xs\" dynamic-title=\"{{category.name}}\">{{category.name}}</h2><span ng-hide=\"true\" dynamic-title=\"Přehled znalostí\"></span><div class=\"clearfix\"></div></div><!--\n" +
    "    <div class=\"category-progress\" count=\"{{type.places.length}}\"  \n" +
    "         skills=\"{{ {\n" +
    "           practiced:(type.places|filter:{practiced:true}).length,\n" +
    "           learned:(type.places|filter:{learned:true}).length\n" +
    "         } }}\"></div>\n" +
    "    --><div questions-list=\"questions\"></div></div><div ng-show=\"loading\" class=\"loading-indicator\"></div><div ng-show=\"error\" ng-bind=\"error\" class=\"alert alert-danger\"></div></div>"
  );

}]);
